| 1 |
- !function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=i(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var l=0,o=function(){};return{s:o,n:function(){return l>=e.length?{done:!0}:{done:!1,value:e[l++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw r}}}}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,l)}return n}function l(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{};t%2?n(Object(l),!0).forEach((function(t){o(e,t,l[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):n(Object(l)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,l=new Array(t);n<t;n++)l[n]=e[n];return l}System.register(["./index-legacy.bb126a0d.js","./index2-legacy.caff4ee1.js"],(function(n){"use strict";var i,a,u,s,c,p,d,f,v,m,h,b,y,g,S,w,C,O,x,L,I,T,z,k,E,M,P,B,V,A,D,W,_,q,H,F,j,K,R,N,$,Q,G,X,Y,U,J,Z,ee,te,ne,le,oe,re,ie,ae,ue,se,ce,pe,de,fe,ve,me,he,be,ye,ge,Se,we,Ce,Oe,xe,Le,Ie,Te,ze,ke,Ee;return{setters:[function(e){i=e.t,a=e.u,u=e.v,s=e.d,c=e.x,p=e.y,d=e.z,f=e.e,v=e.j,m=e.g,h=e.A,b=e.B,y=e.C,g=e.D,S=e.G,w=e.H,C=e.I,O=e.J,x=e.K,L=e.L,I=e.M,T=e.T,z=e._,k=e.N,E=e.O,M=e.c,P=e.F,B=e.P,V=e.Q,A=e.R,D=e.w,W=e.S,_=e.n,q=e.p,H=e.r,F=e.o,j=e.f,K=e.U,R=e.V,N=e.W,$=e.X,Q=e.Y,G=e.Z,X=e.$,Y=e.a0,U=e.a1,J=e.a2,Z=e.a3,ee=e.a4,te=e.a5,ne=e.a6,le=e.a7,oe=e.a8,re=e.a9,ie=e.aa,ae=e.ab,ue=e.ac,se=e.ad,ce=e.ae,pe=e.af,de=e.ag,fe=e.ah,ve=e.ai,me=e.aj,he=e.E,be=e.ak,ye=e.m,ge=e.al,Se=e.am,we=e.an,Ce=e.k,Oe=e.ao,xe=e.ap,Le=e.aq,Ie=e.ar,Te=e.as,ze=e.at},function(e){ke=e.E,Ee=e.t}],execute:function(){var Me,Pe=n("i",(function(e){return[""].concat(r(a)).includes(e)})),Be=Symbol("scrollbarContextKey"),Ve={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},Ae=u({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),De=z(s({__name:"thumb",props:Ae,setup:function(e){var t=e,n=c(Be),l=p("scrollbar");n||d("Thumb","can not inject scrollbar context");var r=f(),i=f(),a=f({}),u=f(!1),s=!1,z=!1,E=k?document.onselectstart:null,M=v((function(){return Ve[t.vertical?"vertical":"horizontal"]})),P=v((function(){return function(e){var t,n=e.move,l=e.size,r=e.bar;return o(t={},r.size,l),o(t,"transform","translate".concat(r.axis,"(").concat(n,"%)")),t}({size:t.size,move:t.move,bar:M.value})})),B=v((function(){return Math.pow(r.value[M.value.offset],2)/n.wrapElement[M.value.scrollSize]/t.ratio/i.value[M.value.offset]})),V=function(e){var t;if(e.stopPropagation(),!e.ctrlKey&&![1,2].includes(e.button)){null==(t=window.getSelection())||t.removeAllRanges(),D(e);var n=e.currentTarget;n&&(a.value[M.value.axis]=n[M.value.offset]-(e[M.value.client]-n.getBoundingClientRect()[M.value.direction]))}},A=function(e){if(i.value&&r.value&&n.wrapElement){var t=100*(Math.abs(e.target.getBoundingClientRect()[M.value.direction]-e[M.value.client])-i.value[M.value.offset]/2)*B.value/r.value[M.value.offset];n.wrapElement[M.value.scroll]=t*n.wrapElement[M.value.scrollSize]/100}},D=function(e){e.stopImmediatePropagation(),s=!0,document.addEventListener("mousemove",W),document.addEventListener("mouseup",_),E=document.onselectstart,document.onselectstart=function(){return!1}},W=function(e){if(r.value&&i.value&&!1!==s){var t=a.value[M.value.axis];if(t){var l=100*(-1*(r.value.getBoundingClientRect()[M.value.direction]-e[M.value.client])-(i.value[M.value.offset]-t))*B.value/r.value[M.value.offset];n.wrapElement[M.value.scroll]=l*n.wrapElement[M.value.scrollSize]/100}}},_=function e(){s=!1,a.value[M.value.axis]=0,document.removeEventListener("mousemove",W),document.removeEventListener("mouseup",e),q(),z&&(u.value=!1)};m((function(){q(),document.removeEventListener("mouseup",_)}));var q=function(){document.onselectstart!==E&&(document.onselectstart=E)};return h(b(n,"scrollbarElement"),"mousemove",(function(){z=!1,u.value=!!t.size})),h(b(n,"scrollbarElement"),"mouseleave",(function(){z=!0,u.value=s})),function(e,t){return y(),g(T,{name:L(l).b("fade"),persisted:""},{default:S((function(){return[w(O("div",{ref_key:"instance",ref:r,class:x([L(l).e("bar"),L(l).is(L(M).key)]),onMousedown:A},[O("div",{ref_key:"thumb",ref:i,class:x(L(l).e("thumb")),style:I(L(P)),onMousedown:V},null,38)],34),[[C,e.always||u.value]])]})),_:1},8,["name"])}}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]),We=u({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),_e=z(s({__name:"bar",props:We,setup:function(e,t){var n=t.expose,l=e,o=f(0),r=f(0);return n({handleScroll:function(e){if(e){var t=e.offsetHeight-4,n=e.offsetWidth-4;r.value=100*e.scrollTop/t*l.ratioY,o.value=100*e.scrollLeft/n*l.ratioX}}}),function(e,t){return y(),E(P,null,[M(De,{move:o.value,ratio:e.ratioX,size:e.width,always:e.always},null,8,["move","ratio","size","always"]),M(De,{move:r.value,ratio:e.ratioY,size:e.height,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64)}}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]),qe=u({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:B([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),He={scroll:function(e){var t=e.scrollTop,n=e.scrollLeft;return V(t)&&V(n)}},Fe=s(l(l({},{name:"ElScrollbar"}),{},{props:qe,emits:He,setup:function(e,t){var n=t.expose,l=t.emit,r=e,i=p("scrollbar"),a=void 0,u=void 0,s=f(),c=f(),d=f(),m=f("0"),b=f("0"),w=f(),C=f(1),T=f(1),z=v((function(){var e={};return r.height&&(e.height=A(r.height)),r.maxHeight&&(e.maxHeight=A(r.maxHeight)),[r.wrapStyle,e]})),k=function(){var e;c.value&&(null==(e=w.value)||e.handleScroll(c.value),l("scroll",{scrollTop:c.value.scrollTop,scrollLeft:c.value.scrollLeft}))};var M=function(){if(c.value){var e=c.value.offsetHeight-4,t=c.value.offsetWidth-4,n=Math.pow(e,2)/c.value.scrollHeight,l=Math.pow(t,2)/c.value.scrollWidth,o=Math.max(n,r.minSize),i=Math.max(l,r.minSize);C.value=n/(e-n)/(o/(e-o)),T.value=l/(t-l)/(i/(t-i)),b.value=o+4<e?"".concat(o,"px"):"",m.value=i+4<t?"".concat(i,"px"):""}};return D((function(){return r.noresize}),(function(e){if(e)null==a||a(),null==u||u();else{var t=W(d,M);a=t.stop,u=h("resize",M)}}),{immediate:!0}),D((function(){return[r.maxHeight,r.height]}),(function(){r.native||_((function(){var e;M(),c.value&&(null==(e=w.value)||e.handleScroll(c.value))}))})),q(Be,H({scrollbarElement:s,wrapElement:c})),F((function(){r.native||_((function(){return M()}))})),j((function(){return M()})),n({wrap$:c,update:M,scrollTo:function(e,t){$(e)?c.value.scrollTo(e):V(e)&&V(t)&&c.value.scrollTo(e,t)},setScrollTop:function(e){V(e)&&(c.value.scrollTop=e)},setScrollLeft:function(e){V(e)&&(c.value.scrollLeft=e)},handleScroll:k}),function(e,t){return y(),E("div",{ref_key:"scrollbar$",ref:s,class:x(L(i).b())},[O("div",{ref_key:"wrap$",ref:c,class:x([e.wrapClass,L(i).e("wrap"),o({},L(i).em("wrap","hidden-default"),!e.native)]),style:I(L(z)),onScroll:k},[(y(),g(R(e.tag),{ref_key:"resize$",ref:d,class:x([L(i).e("view"),e.viewClass]),style:I(e.viewStyle)},{default:S((function(){return[K(e.$slots,"default")]})),_:3},8,["class","style"]))],38),e.native?N("v-if",!0):(y(),g(_e,{key:0,ref_key:"barRef",ref:w,height:b.value,width:m.value,always:e.always,"ratio-x":T.value,"ratio-y":C.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2)}}})),je=n("b",Q(z(Fe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]))),Ke=new Map;function Re(e,t){var n=[];return Array.isArray(t.arg)?n=t.arg:G(t.arg)&&n.push(t.arg),function(l,o){var r=t.instance.popperRef,i=l.target,a=null==o?void 0:o.target,u=!t||!t.instance,s=!i||!a,c=e.contains(i)||e.contains(a),p=e===i,d=n.length&&n.some((function(e){return null==e?void 0:e.contains(i)}))||n.length&&n.includes(a),f=r&&(r.contains(i)||r.contains(a));u||s||c||p||d||f||t.value(l,o)}}k&&(document.addEventListener("mousedown",(function(e){return Me=e})),document.addEventListener("mouseup",(function(e){var n,l=t(Ke.values());try{for(l.s();!(n=l.n()).done;){var o,r=t(n.value);try{for(r.s();!(o=r.n()).done;){(0,o.value.documentHandler)(e,Me)}}catch(i){r.e(i)}finally{r.f()}}}catch(i){l.e(i)}finally{l.f()}})));var Ne=n("C",{beforeMount:function(e,t){Ke.has(e)||Ke.set(e,[]),Ke.get(e).push({documentHandler:Re(e,t),bindingFn:t.value})},updated:function(e,t){Ke.has(e)||Ke.set(e,[]);var n=Ke.get(e),l=n.findIndex((function(e){return e.bindingFn===t.oldValue})),o={documentHandler:Re(e,t),bindingFn:t.value};l>=0?n.splice(l,1,o):n.push(o)},unmounted:function(e){Ke.delete(e)}}),$e="ElSelectGroup",Qe="ElSelect";var Ge=s({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup:function(t){var n=p("select"),l=H({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),o=function(t,n){var l=c(Qe),o=c($e,{disabled:!1}),r=v((function(){return"[object object]"===Object.prototype.toString.call(t.value).toLowerCase()})),i=v((function(){return l.props.multiple?f(l.props.modelValue,t.value):m(t.value,l.props.modelValue)})),a=v((function(){if(l.props.multiple){var e=l.props.modelValue||[];return!i.value&&e.length>=l.props.multipleLimit&&l.props.multipleLimit>0}return!1})),u=v((function(){return t.label||(r.value?"":t.value)})),s=v((function(){return t.value||t.label||""})),p=v((function(){return t.disabled||n.groupDisabled||a.value})),d=U(),f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(r.value){var n=l.props.valueKey;return e&&e.some((function(e){return X(e,n)===X(t,n)}))}return e&&e.includes(t)},m=function(e,t){if(r.value){var n=l.props.valueKey;return X(e,n)===X(t,n)}return e===t};D((function(){return u.value}),(function(){t.created||l.props.remote||l.setSelected()})),D((function(){return t.value}),(function(n,o){var r=l.props,i=r.remote,a=r.valueKey;if(!t.created&&!i){if(a&&"object"===e(n)&&"object"===e(o)&&n[a]===o[a])return;l.setSelected()}})),D((function(){return o.disabled}),(function(){n.groupDisabled=o.disabled}),{immediate:!0});var h=Y(l).queryChange;return D(h,(function(e){var o=L(e).query,r=new RegExp(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(o),"i");n.visible=r.test(u.value)||t.created,n.visible||l.filteredOptionsCount--})),{select:l,currentLabel:u,currentValue:s,itemSelected:i,isDisabled:p,hoverItem:function(){t.disabled||o.disabled||(l.hoverIndex=l.optionsArray.indexOf(d.proxy))}}}(t,l),r=o.currentLabel,i=o.itemSelected,a=o.isDisabled,u=o.select,s=o.hoverItem,d=J(l),f=d.visible,h=d.hover,b=U().proxy,y=b.value;return u.onOptionCreate(b),m((function(){var e=u.selected,t=(u.props.multiple?e:[e]).some((function(e){return e.value===b.value}));u.cachedOptions.get(y)!==b||t||_((function(){u.cachedOptions.delete(y)})),u.onOptionDestroy(y,b)})),{ns:n,currentLabel:r,itemSelected:i,isDisabled:a,select:u,hoverItem:s,visible:f,hover:h,selectOptionClick:function(){!0!==t.disabled&&!0!==l.groupDisabled&&u.handleOptionSelect(b,!0)},states:l}}});var Xe=z(Ge,[["render",function(e,t,n,l,o,r){return w((y(),E("li",{class:x([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=function(){return e.hoverItem&&e.hoverItem.apply(e,arguments)}),onClick:t[1]||(t[1]=ee((function(){return e.selectOptionClick&&e.selectOptionClick.apply(e,arguments)}),["stop"]))},[K(e.$slots,"default",{},(function(){return[O("span",null,Z(e.currentLabel),1)]}))],34)),[[C,e.visible]])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]),Ye=s({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup:function(){var e=c(Qe),t=p("select"),n=v((function(){return e.props.popperClass})),l=v((function(){return e.props.multiple})),o=v((function(){return e.props.fitInputWidth})),r=f("");function i(){var t;r.value="".concat(null==(t=e.selectWrapper)?void 0:t.getBoundingClientRect().width,"px")}return F((function(){i(),W(e.selectWrapper,i)})),{ns:t,minWidth:r,popperClass:n,isMultiple:l,isFitInputWidth:o}}});var Ue=function(e,n,l){var o=te().t,r=p("select"),a=f(null),u=f(null),s=f(null),d=f(null),m=f(null),h=f(null),b=f(-1),y=ne({query:""}),g=ne(""),S=c(le,{}),w=c(oe,{}),C=v((function(){return!e.filterable||e.multiple||!n.visible})),O=v((function(){return e.disabled||S.disabled})),x=v((function(){var t=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:void 0!==e.modelValue&&null!==e.modelValue&&""!==e.modelValue;return e.clearable&&!O.value&&n.inputHovering&&t})),L=v((function(){return e.remote&&e.filterable?"":e.suffixIcon})),I=v((function(){return r.is("reverse",L.value&&n.visible)})),T=v((function(){return e.remote?300:0})),z=v((function(){return e.loading?e.loadingText||o("el.select.loading"):(!e.remote||""!==n.query||0!==n.options.size)&&(e.filterable&&n.query&&n.options.size>0&&0===n.filteredOptionsCount?e.noMatchText||o("el.select.noMatch"):0===n.options.size?e.noDataText||o("el.select.noData"):null)})),E=v((function(){return Array.from(n.options.values())})),M=v((function(){return Array.from(n.cachedOptions.values())})),P=v((function(){var t=E.value.filter((function(e){return!e.created})).some((function(e){return e.currentLabel===n.query}));return e.filterable&&e.allowCreate&&""!==n.query&&!t})),B=re(),V=v((function(){return["small"].includes(B.value)?"small":"default"})),A=v({get:function(){return n.visible&&!1!==z.value},set:function(e){n.visible=e}});D([function(){return O.value},function(){return B.value},function(){return S.size}],(function(){_((function(){W()}))})),D((function(){return e.placeholder}),(function(e){n.cachedPlaceHolder=n.currentPlaceholder=e})),D((function(){return e.modelValue}),(function(t,l){var o;e.multiple&&(W(),t&&t.length>0||u.value&&""!==n.query?n.currentPlaceholder="":n.currentPlaceholder=n.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(n.query="",q(n.query))),j(),e.filterable&&!e.multiple&&(n.inputLength=20),ie(t,l)||null==(o=w.validate)||o.call(w,"change").catch((function(e){return ae()}))}),{flush:"post",deep:!0}),D((function(){return n.visible}),(function(t){var o,r,i;t?(null==(r=null==(o=s.value)?void 0:o.updatePopper)||r.call(o),e.filterable&&(n.filteredOptionsCount=n.optionsCount,n.query=e.remote?"":n.selectedLabel,e.multiple?null==(i=u.value)||i.focus():n.selectedLabel&&(n.currentPlaceholder="".concat(n.selectedLabel),n.selectedLabel=""),q(n.query),e.multiple||e.remote||(y.value.query="",ue(y),ue(g)))):(u.value&&u.value.blur(),n.query="",n.previousQuery=null,n.selectedLabel="",n.inputLength=20,n.menuVisibleOnFocus=!1,R(),_((function(){u.value&&""===u.value.value&&0===n.selected.length&&(n.currentPlaceholder=n.cachedPlaceHolder)})),e.multiple||(n.selected&&(e.filterable&&e.allowCreate&&n.createdSelected&&n.createdLabel?n.selectedLabel=n.createdLabel:n.selectedLabel=n.selected.currentLabel,e.filterable&&(n.query=n.selectedLabel)),e.filterable&&(n.currentPlaceholder=n.cachedPlaceHolder))),l.emit("visible-change",t)})),D((function(){return n.options.entries()}),(function(){var t,l,o;if(k){null==(l=null==(t=s.value)?void 0:t.updatePopper)||l.call(t),e.multiple&&W();var r=(null==(o=m.value)?void 0:o.querySelectorAll("input"))||[];Array.from(r).includes(document.activeElement)||j(),e.defaultFirstOption&&(e.filterable||e.remote)&&n.filteredOptionsCount&&F()}}),{flush:"post"}),D((function(){return n.hoverIndex}),(function(e){"number"==typeof e&&e>-1&&(b.value=E.value[e]||{}),E.value.forEach((function(e){e.hover=b.value===e}))}));var W=function(){e.collapseTags&&!e.filterable||_((function(){var e,t;if(a.value){var l,o=a.value.$el.querySelector("input"),r=d.value,u=(l=B.value||S.size,i[l||"default"]);o.style.height="".concat(0===n.selected.length?u:Math.max(r?r.clientHeight+(r.clientHeight>u?6:0):0,u)-2,"px"),n.tagInMultiLine=Number.parseFloat(o.style.height)>=u,n.visible&&!1!==z.value&&(null==(t=null==(e=s.value)?void 0:e.updatePopper)||t.call(e))}}))},q=function(t){n.previousQuery===t||n.isOnComposition||(null!==n.previousQuery||"function"!=typeof e.filterMethod&&"function"!=typeof e.remoteMethod?(n.previousQuery=t,_((function(){var e,t;n.visible&&(null==(t=null==(e=s.value)?void 0:e.updatePopper)||t.call(e))})),n.hoverIndex=-1,e.multiple&&e.filterable&&_((function(){var t=15*u.value.value.length+20;n.inputLength=e.collapseTags?Math.min(50,t):t,H(),W()})),e.remote&&"function"==typeof e.remoteMethod?(n.hoverIndex=-1,e.remoteMethod(t)):"function"==typeof e.filterMethod?(e.filterMethod(t),ue(g)):(n.filteredOptionsCount=n.optionsCount,y.value.query=t,ue(y),ue(g)),e.defaultFirstOption&&(e.filterable||e.remote)&&n.filteredOptionsCount&&F()):n.previousQuery=t)},H=function(){""!==n.currentPlaceholder&&(n.currentPlaceholder=u.value.value?"":n.cachedPlaceHolder)},F=function(){var e=E.value.filter((function(e){return e.visible&&!e.disabled&&!e.states.groupDisabled})),t=e.find((function(e){return e.created})),l=e[0];n.hoverIndex=Z(E.value,t||l)},j=function(){var t;if(!e.multiple){var l=K(e.modelValue);return(null==(t=l.props)?void 0:t.created)?(n.createdLabel=l.props.value,n.createdSelected=!0):n.createdSelected=!1,n.selectedLabel=l.currentLabel,n.selected=l,void(e.filterable&&(n.query=n.selectedLabel))}n.selectedLabel="";var o=[];Array.isArray(e.modelValue)&&e.modelValue.forEach((function(e){o.push(K(e))})),n.selected=o,_((function(){W()}))},K=function(t){for(var l,o="object"===se(t).toLowerCase(),r="null"===se(t).toLowerCase(),i="undefined"===se(t).toLowerCase(),a=n.cachedOptions.size-1;a>=0;a--){var u=M.value[a];if(o?X(u.value,e.valueKey)===X(t,e.valueKey):u.value===t){l={value:t,currentLabel:u.currentLabel,isDisabled:u.isDisabled};break}}if(l)return l;var s={value:t,currentLabel:o?t.label:r||i?"":t};return e.multiple&&(s.hitState=!1),s},R=function(){setTimeout((function(){var t=e.valueKey;e.multiple?n.selected.length>0?n.hoverIndex=Math.min.apply(null,n.selected.map((function(e){return E.value.findIndex((function(n){return X(n,t)===X(e,t)}))}))):n.hoverIndex=-1:n.hoverIndex=E.value.findIndex((function(e){return ge(e)===ge(n.selected)}))}),300)},N=function(){var e;n.inputWidth=null==(e=a.value)?void 0:e.$el.getBoundingClientRect().width},Q=ce((function(){e.filterable&&n.query!==n.selectedLabel&&(n.query=n.selectedLabel,q(n.query))}),T.value),G=ce((function(e){q(e.target.value)}),T.value),Y=function(t){ie(e.modelValue,t)||l.emit(me,t)},U=function(o){o.stopPropagation();var r=e.multiple?[]:"";if("string"!=typeof r){var i,a=t(n.selected);try{for(a.s();!(i=a.n()).done;){var u=i.value;u.isDisabled&&r.push(u.value)}}catch(s){a.e(s)}finally{a.f()}}l.emit(pe,r),Y(r),n.visible=!1,l.emit("clear")},J=function(t,o){var r;if(e.multiple){var i=(e.modelValue||[]).slice(),a=Z(i,t.value);a>-1?i.splice(a,1):(e.multipleLimit<=0||i.length<e.multipleLimit)&&i.push(t.value),l.emit(pe,i),Y(i),t.created&&(n.query="",q(""),n.inputLength=20),e.filterable&&(null==(r=u.value)||r.focus())}else l.emit(pe,t.value),Y(t.value),n.visible=!1;n.isSilentBlur=o,ee(),n.visible||_((function(){he(t)}))},Z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;if(!$(n))return t.indexOf(n);var l=e.valueKey,o=-1;return t.some((function(e,t){return X(e,l)===X(n,l)&&(o=t,!0)})),o},ee=function(){n.softFocus=!0;var e=u.value||a.value;e&&(null==e||e.focus())},he=function(e){var t,n,l,o,i,a=Array.isArray(e)?e[0]:e,u=null;if(null==a?void 0:a.value){var c=E.value.filter((function(e){return e.value===a.value}));c.length>0&&(u=c[0].$el)}if(s.value&&u){var p=null==(o=null==(l=null==(n=null==(t=s.value)?void 0:t.popperRef)?void 0:n.contentRef)?void 0:l.querySelector)?void 0:o.call(l,".".concat(r.be("dropdown","wrap")));p&&de(p,u)}null==(i=h.value)||i.handleScroll()},be=function(e){if(Array.isArray(n.selected)){var t=n.selected[n.selected.length-1];if(t)return!0===e||!1===e?(t.hitState=e,e):(t.hitState=!t.hitState,t.hitState)}},ye=function(){var t;e.automaticDropdown||O.value||(n.menuVisibleOnFocus?n.menuVisibleOnFocus=!1:n.visible=!n.visible,n.visible&&(null==(t=u.value||a.value)||t.focus()))},ge=function(t){return $(t.value)?X(t.value,e.valueKey):t.value},Se=v((function(){return E.value.filter((function(e){return e.visible})).every((function(e){return e.disabled}))}));return{optionsArray:E,selectSize:B,handleResize:function(){var t,n;N(),null==(n=null==(t=s.value)?void 0:t.updatePopper)||n.call(t),e.multiple&&!e.filterable&&W()},debouncedOnInputChange:Q,debouncedQueryChange:G,deletePrevTag:function(t){if(t.target.value.length<=0&&!be()){var o=e.modelValue.slice();o.pop(),l.emit(pe,o),Y(o)}1===t.target.value.length&&0===e.modelValue.length&&(n.currentPlaceholder=n.cachedPlaceHolder)},deleteTag:function(t,o){var r=n.selected.indexOf(o);if(r>-1&&!O.value){var i=e.modelValue.slice();i.splice(r,1),l.emit(pe,i),Y(i),l.emit("remove-tag",o.value)}t.stopPropagation()},deleteSelected:U,handleOptionSelect:J,scrollToOption:he,readonly:C,resetInputHeight:W,showClose:x,iconComponent:L,iconReverse:I,showNewOption:P,collapseTagSize:V,setSelected:j,managePlaceholder:H,selectDisabled:O,emptyText:z,toggleLastOptionHitState:be,resetInputState:function(e){e.code!==fe.backspace&&be(!1),n.inputLength=15*u.value.value.length+20,W()},handleComposition:function(e){var t=e.target.value;if("compositionend"===e.type)n.isOnComposition=!1,_((function(){return q(t)}));else{var l=t[t.length-1]||"";n.isOnComposition=!ve(l)}},onOptionCreate:function(e){n.optionsCount++,n.filteredOptionsCount++,n.options.set(e.value,e),n.cachedOptions.set(e.value,e)},onOptionDestroy:function(e,t){n.options.get(e)===t&&(n.optionsCount--,n.filteredOptionsCount--,n.options.delete(e))},handleMenuEnter:function(){_((function(){return he(n.selected)}))},handleFocus:function(t){n.softFocus?n.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!n.visible&&(n.menuVisibleOnFocus=!0),n.visible=!0),l.emit("focus",t))},blur:function(){var e;n.visible=!1,null==(e=a.value)||e.blur()},handleBlur:function(e){_((function(){n.isSilentBlur?n.isSilentBlur=!1:l.emit("blur",e)})),n.softFocus=!1},handleClearClick:function(e){U(e)},handleClose:function(){n.visible=!1},handleKeydownEscape:function(e){n.visible&&(e.preventDefault(),e.stopPropagation(),n.visible=!1)},toggleMenu:ye,selectOption:function(){n.visible?E.value[n.hoverIndex]&&J(E.value[n.hoverIndex],void 0):ye()},getValueKey:ge,navigateOptions:function e(t){if(n.visible){if(0!==n.options.size&&0!==n.filteredOptionsCount&&!n.isOnComposition&&!Se.value){"next"===t?(n.hoverIndex++,n.hoverIndex===n.options.size&&(n.hoverIndex=0)):"prev"===t&&(n.hoverIndex--,n.hoverIndex<0&&(n.hoverIndex=n.options.size-1));var l=E.value[n.hoverIndex];!0!==l.disabled&&!0!==l.states.groupDisabled&&l.visible||e(t),_((function(){return he(b.value)}))}}else n.visible=!0},dropMenuVisible:A,queryChange:y,groupQueryChange:g,reference:a,input:u,tooltipRef:s,tags:d,selectWrapper:m,scrollbar:h}},Je="ElSelect",Ze=s({name:Je,componentName:Je,components:{ElInput:he,ElSelectMenu:z(Ye,[["render",function(e,t,n,l,r,i){return y(),E("div",{class:x([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:I(o({},e.isFitInputWidth?"width":"minWidth",e.minWidth))},[K(e.$slots,"default")],6)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]),ElOption:Xe,ElTag:ke,ElScrollbar:je,ElTooltip:be,ElIcon:ye},directives:{ClickOutside:Ne},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:Pe},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},teleported:ge.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:[String,Object],default:Se},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:[String,Object],default:we},tagType:l(l({},Ee.type),{},{default:"info"})},emits:[pe,me,"remove-tag","clear","visible-change","focus","blur"],setup:function(e,t){var n,l=p("select"),o=p("input"),r=te().t,i=function(e){var t=te().t;return H({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1})}(e),a=Ue(e,i,t),u=a.optionsArray,s=a.selectSize,c=a.readonly,d=a.handleResize,f=a.collapseTagSize,m=a.debouncedOnInputChange,h=a.debouncedQueryChange,b=a.deletePrevTag,y=a.deleteTag,g=a.deleteSelected,S=a.handleOptionSelect,w=a.scrollToOption,C=a.setSelected,O=a.resetInputHeight,x=a.managePlaceholder,I=a.showClose,T=a.selectDisabled,z=a.iconComponent,k=a.iconReverse,E=a.showNewOption,M=a.emptyText,P=a.toggleLastOptionHitState,B=a.resetInputState,V=a.handleComposition,A=a.onOptionCreate,D=a.onOptionDestroy,j=a.handleMenuEnter,K=a.handleFocus,R=a.blur,N=a.handleBlur,$=a.handleClearClick,Q=a.handleClose,G=a.handleKeydownEscape,X=a.toggleMenu,Y=a.selectOption,U=a.getValueKey,Z=a.navigateOptions,ee=a.dropMenuVisible,ne=a.reference,le=a.input,oe=a.tooltipRef,re=a.tags,ie=a.selectWrapper,ae=a.scrollbar,ue=a.queryChange,se=a.groupQueryChange,ce=(n=ne,{focus:function(){var e,t;null==(t=null==(e=n.value)?void 0:e.focus)||t.call(e)}}).focus,de=J(i),fe=de.inputWidth,ve=de.selected,me=de.inputLength,he=de.filteredOptionsCount,be=de.visible,ye=de.softFocus,ge=de.selectedLabel,Se=de.hoverIndex,we=de.query,Ce=de.inputHovering,Oe=de.currentPlaceholder,xe=de.menuVisibleOnFocus,Le=de.isOnComposition,Ie=de.isSilentBlur,Te=de.options,ze=de.cachedOptions,ke=de.optionsCount,Ee=de.prefixWidth,Me=de.tagInMultiLine,Pe=v((function(){var t=[l.b()],n=L(s);return n&&t.push(l.m(n)),e.disabled&&t.push(l.m("disabled")),t})),Be=v((function(){return{maxWidth:"".concat(L(fe)-32,"px"),width:"100%"}}));q(Qe,H({props:e,options:Te,optionsArray:u,cachedOptions:ze,optionsCount:ke,filteredOptionsCount:he,hoverIndex:Se,handleOptionSelect:S,onOptionCreate:A,onOptionDestroy:D,selectWrapper:ie,selected:ve,setSelected:C,queryChange:ue,groupQueryChange:se})),F((function(){i.cachedPlaceHolder=Oe.value=e.placeholder||r("el.select.placeholder"),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(Oe.value=""),W(ie,d),e.remote&&e.multiple&&O(),_((function(){var e=ne.value&&ne.value.$el;if(e&&(fe.value=e.getBoundingClientRect().width,t.slots.prefix)){var n=e.querySelector(".".concat(o.e("prefix")));Ee.value=Math.max(n.getBoundingClientRect().width+5,30)}})),C()})),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(pe,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(pe,"");var Ve=v((function(){var e,t;return null==(t=null==(e=oe.value)?void 0:e.popperRef)?void 0:t.contentRef}));return{tagInMultiLine:Me,prefixWidth:Ee,selectSize:s,readonly:c,handleResize:d,collapseTagSize:f,debouncedOnInputChange:m,debouncedQueryChange:h,deletePrevTag:b,deleteTag:y,deleteSelected:g,handleOptionSelect:S,scrollToOption:w,inputWidth:fe,selected:ve,inputLength:me,filteredOptionsCount:he,visible:be,softFocus:ye,selectedLabel:ge,hoverIndex:Se,query:we,inputHovering:Ce,currentPlaceholder:Oe,menuVisibleOnFocus:xe,isOnComposition:Le,isSilentBlur:Ie,options:Te,resetInputHeight:O,managePlaceholder:x,showClose:I,selectDisabled:T,iconComponent:z,iconReverse:k,showNewOption:E,emptyText:M,toggleLastOptionHitState:P,resetInputState:B,handleComposition:V,handleMenuEnter:j,handleFocus:K,blur:R,handleBlur:N,handleClearClick:$,handleClose:Q,handleKeydownEscape:G,toggleMenu:X,selectOption:Y,getValueKey:U,navigateOptions:Z,dropMenuVisible:ee,focus:ce,reference:ne,input:le,tooltipRef:oe,popperPaneRef:Ve,tags:re,selectWrapper:ie,scrollbar:ae,wrapperKls:Pe,selectTagsStyle:Be,nsSelect:l}}}),et={class:"select-trigger"},tt=["disabled","autocomplete"],nt={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};var lt=z(Ze,[["render",function(e,t,n,l,o,r){var i=Ce("el-tag"),a=Ce("el-tooltip"),u=Ce("el-icon"),s=Ce("el-input"),c=Ce("el-option"),p=Ce("el-scrollbar"),d=Ce("el-select-menu"),f=Oe("click-outside");return w((y(),E("div",{ref:"selectWrapper",class:x(e.wrapperKls),onClick:t[23]||(t[23]=ee((function(){return e.toggleMenu&&e.toggleMenu.apply(e,arguments)}),["stop"]))},[M(a,{ref:"tooltipRef",visible:e.dropMenuVisible,"onUpdate:visible":t[22]||(t[22]=function(t){return e.dropMenuVisible=t}),placement:"bottom-start",teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:"".concat(e.nsSelect.namespace.value,"-zoom-in-top"),"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:S((function(){return[O("div",et,[e.multiple?(y(),E("div",{key:0,ref:"tags",class:x(e.nsSelect.e("tags")),style:I(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(y(),E("span",{key:0,class:x([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[M(i,{closable:!e.selectDisabled&&!e.selected[0].isDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:e.tagType,"disable-transitions":"",onClose:t[0]||(t[0]=function(t){return e.deleteTag(t,e.selected[0])})},{default:S((function(){return[O("span",{class:x(e.nsSelect.e("tags-text")),style:I({maxWidth:e.inputWidth-123+"px"})},Z(e.selected[0].currentLabel),7)]})),_:1},8,["closable","size","hit","type"]),e.selected.length>1?(y(),g(i,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:S((function(){return[e.collapseTagsTooltip?(y(),g(a,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:S((function(){return[O("span",{class:x(e.nsSelect.e("tags-text"))},"+ "+Z(e.selected.length-1),3)]})),content:S((function(){return[O("div",{class:x(e.nsSelect.e("collapse-tags"))},[(y(!0),E(P,null,xe(e.selected,(function(t,n){return y(),E("div",{key:n,class:x(e.nsSelect.e("collapse-tag"))},[(y(),g(i,{key:e.getValueKey(t),class:"in-tooltip",closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,hit:t.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:function(n){return e.deleteTag(n,t)}},{default:S((function(){return[O("span",{class:x(e.nsSelect.e("tags-text")),style:I({maxWidth:e.inputWidth-75+"px"})},Z(t.currentLabel),7)]})),_:2},1032,["closable","size","hit","type","onClose"]))],2)})),128))],2)]})),_:1},8,["disabled","effect"])):(y(),E("span",{key:1,class:x(e.nsSelect.e("tags-text"))},"+ "+Z(e.selected.length-1),3))]})),_:1},8,["size","type"])):N("v-if",!0)],2)):N("v-if",!0),N(" <div> "),e.collapseTags?N("v-if",!0):(y(),g(T,{key:1,onAfterLeave:e.resetInputHeight},{default:S((function(){return[O("span",{class:x([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(y(!0),E(P,null,xe(e.selected,(function(t){return y(),g(i,{key:e.getValueKey(t),closable:!e.selectDisabled&&!t.isDisabled,size:e.collapseTagSize,hit:t.hitState,type:e.tagType,"disable-transitions":"",onClose:function(n){return e.deleteTag(n,t)}},{default:S((function(){return[O("span",{class:x(e.nsSelect.e("tags-text")),style:I({maxWidth:e.inputWidth-75+"px"})},Z(t.currentLabel),7)]})),_:2},1032,["closable","size","hit","type","onClose"])})),128))],2)]})),_:1},8,["onAfterLeave"])),N(" </div> "),e.filterable?w((y(),E("input",{key:2,ref:"input","onUpdate:modelValue":t[1]||(t[1]=function(t){return e.query=t}),type:"text",class:x([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:I({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?"".concat(e.prefixWidth,"px"):"",flexGrow:1,width:"".concat(e.inputLength/(e.inputWidth-32),"%"),maxWidth:"".concat(e.inputWidth-42,"px")}),onFocus:t[2]||(t[2]=function(){return e.handleFocus&&e.handleFocus.apply(e,arguments)}),onBlur:t[3]||(t[3]=function(){return e.handleBlur&&e.handleBlur.apply(e,arguments)}),onKeyup:t[4]||(t[4]=function(){return e.managePlaceholder&&e.managePlaceholder.apply(e,arguments)}),onKeydown:[t[5]||(t[5]=function(){return e.resetInputState&&e.resetInputState.apply(e,arguments)}),t[6]||(t[6]=Le(ee((function(t){return e.navigateOptions("next")}),["prevent"]),["down"])),t[7]||(t[7]=Le(ee((function(t){return e.navigateOptions("prev")}),["prevent"]),["up"])),t[8]||(t[8]=Le((function(){return e.handleKeydownEscape&&e.handleKeydownEscape.apply(e,arguments)}),["esc"])),t[9]||(t[9]=Le(ee((function(){return e.selectOption&&e.selectOption.apply(e,arguments)}),["stop","prevent"]),["enter"])),t[10]||(t[10]=Le((function(){return e.deletePrevTag&&e.deletePrevTag.apply(e,arguments)}),["delete"])),t[11]||(t[11]=Le((function(t){return e.visible=!1}),["tab"]))],onCompositionstart:t[12]||(t[12]=function(){return e.handleComposition&&e.handleComposition.apply(e,arguments)}),onCompositionupdate:t[13]||(t[13]=function(){return e.handleComposition&&e.handleComposition.apply(e,arguments)}),onCompositionend:t[14]||(t[14]=function(){return e.handleComposition&&e.handleComposition.apply(e,arguments)}),onInput:t[15]||(t[15]=function(){return e.debouncedQueryChange&&e.debouncedQueryChange.apply(e,arguments)})},null,46,tt)),[[Ie,e.query]]):N("v-if",!0)],6)):N("v-if",!0),M(s,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=function(t){return e.selectedLabel=t}),type:"text",placeholder:e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:x([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=Le(ee((function(t){return e.navigateOptions("next")}),["stop","prevent"]),["down"])),t[18]||(t[18]=Le(ee((function(t){return e.navigateOptions("prev")}),["stop","prevent"]),["up"])),Le(ee(e.selectOption,["stop","prevent"]),["enter"]),Le(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=Le((function(t){return e.visible=!1}),["tab"]))],onMouseenter:t[20]||(t[20]=function(t){return e.inputHovering=!0}),onMouseleave:t[21]||(t[21]=function(t){return e.inputHovering=!1})},Te({suffix:S((function(){return[e.iconComponent&&!e.showClose?(y(),g(u,{key:0,class:x([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:S((function(){return[(y(),g(R(e.iconComponent)))]})),_:1},8,["class"])):N("v-if",!0),e.showClose&&e.clearIcon?(y(),g(u,{key:1,class:x([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:S((function(){return[(y(),g(R(e.clearIcon)))]})),_:1},8,["class","onClick"])):N("v-if",!0)]})),_:2},[e.$slots.prefix?{name:"prefix",fn:S((function(){return[O("div",nt,[K(e.$slots,"prefix")])]}))}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])])]})),content:S((function(){return[M(d,null,{default:S((function(){return[w(M(p,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:x([e.nsSelect.is("empty",!e.allowCreate&&Boolean(e.query)&&0===e.filteredOptionsCount)])},{default:S((function(){return[e.showNewOption?(y(),g(c,{key:0,value:e.query,created:!0},null,8,["value"])):N("v-if",!0),K(e.$slots,"default")]})),_:3},8,["wrap-class","view-class","class"]),[[C,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.size)?(y(),E(P,{key:0},[e.$slots.empty?K(e.$slots,"empty",{key:0}):(y(),E("p",{key:1,class:x(e.nsSelect.be("dropdown","empty"))},Z(e.emptyText),3))],64)):N("v-if",!0)]})),_:3})]})),_:3},8,["visible","teleported","popper-class","effect","transition","persistent","onShow"])],2)),[[f,e.handleClose,e.popperPaneRef]])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]),ot=s({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup:function(e){var t=p("select"),n=f(!0),o=U(),i=f([]);q($e,H(l({},J(e))));var a=c(Qe);F((function(){i.value=u(o.subTree)}));var u=function e(t){var n=[];return Array.isArray(t.children)&&t.children.forEach((function(t){var l;t.type&&"ElOption"===t.type.name&&t.component&&t.component.proxy?n.push(t.component.proxy):(null==(l=t.children)?void 0:l.length)&&n.push.apply(n,r(e(t)))})),n},s=Y(a).groupQueryChange;return D(s,(function(){n.value=i.value.some((function(e){return!0===e.visible}))})),{visible:n,ns:t}}});var rt=z(ot,[["render",function(e,t,n,l,o,r){return w((y(),E("ul",{class:x(e.ns.be("group","wrap"))},[O("li",{class:x(e.ns.be("group","title"))},Z(e.label),3),O("li",null,[O("ul",{class:x(e.ns.b("group"))},[K(e.$slots,"default")],2)])],2)),[[C,e.visible]])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);n("E",Q(lt,{Option:Xe,OptionGroup:rt})),n("a",ze(Xe)),n("c",ze(rt))}}}))}();
|