moreShopAdmin/dist/admin/assets/element-plus.573d45d4.js

21 lines
450 KiB
JavaScript
Raw Normal View History

2024-06-18 18:49:49 +08:00
import{m as je,p as He,q as ht,v as Pu,x as er,y as zt,z as Mu,N as ct,A as rt,B as tn,b as y,f as _e,w as ae,u as l,i as xe,k as hn,C as Ct,D as ke,r as T,j as dn,E as Ou,e as Ru,s as jt,F as fa,G as Ye,d as J,H as oe,o as w,c as L,I as ft,J as Jt,K as ee,L as Y,M as De,a as W,O as k,P as Ue,Q as X,R as ot,S as ce,T as Me,U as j,V as Ze,W as Ht,X as pt,Y as Oo,Z as vt,_ as cn,$ as uo,n as Ne,a0 as Ae,a1 as tr,a2 as jn,a3 as Pe,a4 as Au,a5 as nr,a6 as or,a7 as yl,l as lr,a8 as Du,a9 as Qe,aa as at,ab as $o,ac as Xa,t as rl,ad as il,ae as ar,h as Ee,af as Re,ag as Bu,ah as Wl,ai as sr,aj as Lu,ak as Fu,al as _u,am as Ja,an as Vu,ao as Ml,ap as pa,aq as Pn,ar as Za,as as zu,at as Ku,au as Hu}from"./@vue.18505fe0.js";import{g as sn,s as xu,f as ul,c as dl,a as Qa,i as $t,b as rr,d as kn,e as Ut,u as Ol,p as No,h as Wu,j as cl,k as ju,t as Rl,l as Uu,m as Yu,n as qu}from"./lodash-es.f52bd8b1.js";import{S as Gu}from"./async-validator.fb49d0f5.js";import{i as Ge,t as Xu,u as Lt,a as Tt,r as Ju,b as ir,o as va,c as Zu,d as to,e as Qu,f as ed,g as td,h as nd,j as es,k as od}from"./@vueuse.fbc6a400.js";import{l as Bn,c as ha,a as co,s as ur,w as ma,b as dr,i as cr,d as gn,v as ld,h as ad,e as sd,f as rd,g as ga,j as Ln,k as Cl,m as un,n as no,o as oo,p as lo,q as id,r as ud,z as dd,t as fr,u as cd,x as fd,y as pd,A as pr,B as vd,C as hd,D as ts,E as md,F as gd,G as bd}from"./@element-plus.edbd5a83.js";import{d as Be,c as vr,l as yd,a as Cd,w as kd,b as wd,e as Sd,i as Ed,f as $d}from"./dayjs.8ae0c638.js";import{T as hr}from"./@ctrl.b082b0c1.js";import{Y as Nd}from"./normalize-wheel-es.8aeb3683.js";import{y as Td,E as mr}from"./@popperjs.36402333.js";const Id='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Pd=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,ns=e=>Array.from(e.querySelectorAll(Id)).filter(t=>Md(t)&&Pd(t)),Md=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Wo=function(e,t,...n){let o;t.includes("mouse")||t.includes("click")?o="MouseEvents":t.includes("key")?o="KeyboardEvent":o="HTMLEvents";const a=document.createEvent(o);return a.initEvent(t,...n),e.dispatchEvent(a),e},gr=e=>!e.getAttribute("aria-owns"),br=(e,t,n)=>{const{parentNode:o}=e;if(!o)return null;const a=o.querySelectorAll(n),r=Array.prototype.indexOf.call(a,e);return a[r+t]||null},jo=e=>{!e||(e.focus(),!gr(e)&&e.click())},yt=(e,t,{checkForDefaultPrevented:n=!0}={})=>a=>{const r=e==null?void 0:e(a);if(n===!1||!r)return t==null?void 0:t(a)},os=e=>t=>t.pointerType==="mouse"?e(t):void 0,Od=()=>Ge&&/firefox/i.test(window.navigator.userAgent),Rd=(e,t)=>{if(!Ge||!e||!t)return!1;const n=e.getBoundingClientRect();let o;return t instanceof Element?o=t.getBoundingClientRect():o={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.top<o.bottom&&n.bottom>o.top&&n.right>o.left&&n.left<o.right},ba=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},Vt=e=>e===void 0,Mt=e=>typeof e=="boolean",Ve=e=>typeof e=="number",To=e=>!e&&e!==0||He(e)&&e.length===0||ht(e)&&!Object.keys(e).length,nn=e=>typeof Element>"u"?!1:e instanceof Element,Ad=e=>je(e)?!Number.isNaN(Number(e)):!1,yr=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),pn=e=>Pu(e),fl=e=>Object.keys(e),Dd=e=>Object.entries(e),Uo=(e,t,n)=>({get value(){return sn(e,t,n)},set value(o){xu(e,t,o)}});class Bd extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ot(e,t){throw new Bd(`[${e}] ${t}`)}const Cr=(e="")=>e.split(" ").filter(t=>!!t.trim()),yn=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className
2024-06-06 18:16:08 +08:00
height:0 !important;
visibility:hidden !important;
${Od()?"":"overflow:hidden !important;"}
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
2024-06-18 18:49:49 +08:00
`,Hc=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function xc(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),a=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Hc.map(s=>`${s}:${t.getPropertyValue(s)}`).join(";"),paddingSize:o,borderSize:a,boxSizing:n}}function cs(e,t=1,n){var o;an||(an=document.createElement("textarea"),document.body.appendChild(an));const{paddingSize:a,borderSize:r,boxSizing:s,contextStyle:i}=xc(e);an.setAttribute("style",`${i};${Kc}`),an.value=e.value||e.placeholder||"";let u=an.scrollHeight;const d={};s==="border-box"?u=u+r:s==="content-box"&&(u=u-a),an.value="";const p=an.scrollHeight-a;if(Ve(t)){let c=p*t;s==="border-box"&&(c=c+a+r),u=Math.max(c,u),d.minHeight=`${c}px`}if(Ve(n)){let c=p*n;s==="border-box"&&(c=c+a+r),u=Math.min(c,u)}return d.height=`${u}px`,(o=an.parentNode)==null||o.removeChild(an),an=void 0,d}const Wc=be({id:{type:String,default:void 0},size:Gt,disabled:Boolean,modelValue:{type:ne([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:ne([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:ut},prefixIcon:{type:ut},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:ne([Object,Array,String]),default:()=>It({})},autofocus:{type:Boolean,default:!1}}),jc={[We]:e=>je(e),input:e=>je(e),change:e=>je(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},Uc=["role"],Yc=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],qc=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],Gc=J({name:"ElInput",inheritAttrs:!1}),Xc=J({...Gc,props:Wc,emits:jc,setup(e,{expose:t,emit:n}){const o=e,a=jn(),r=Jt(),s=y(()=>{const he={};return o.containerRole==="combobox"&&(he["aria-haspopup"]=a["aria-haspopup"],he["aria-owns"]=a["aria-owns"],he["aria-expanded"]=a["aria-expanded"]),he}),i=y(()=>[o.type==="textarea"?g.b():m.b(),m.m(f.value),m.is("disabled",h.value),m.is("exceed",fe.value),{[m.b("group")]:r.prepend||r.append,[m.bm("group","append")]:r.append,[m.bm("group","prepend")]:r.prepend,[m.m("prefix")]:r.prefix||o.prefixIcon,[m.m("suffix")]:r.suffix||o.suffixIcon||o.clearable||o.showPassword,[m.bm("suffix","password-clear")]:O.value&&_.value},a.class]),u=y(()=>[m.e("wrapper"),m.is("focus",K.value)]),d=wa({excludeKeys:y(()=>Object.keys(s.value))}),{form:p,formItem:c}=ln(),{inputId:v}=Un(o,{formItemContext:c}),f=At(),h=Zt(),m=re("input"),g=re("textarea"),C=jt(),E=jt(),S=T(!1),b=T(!1),P=T(!1),I=T(),$=jt(o.inputStyle),M=y(()=>C.value||E.value),{wrapperRef:A,isFocused:K,handleFocus:x,handleBlur:V}=$a(M,{afterBlur(){var he;o.validateEvent&&((he=c==null?void 0:c.validate)==null||he.call(c,"blur").catch(ze=>void 0))}}),Z=y(()=>{var he;return(he=p==null?void 0:p.statusIcon)!=null?he:!1}),B=y(()=>(c==null?void 0:c.validateState)||""),U=y(()
2024-06-06 18:16:08 +08:00
Add an empty element to avoid render label,
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
2024-06-18 18:49:49 +08:00
`),lh]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(w(),ee(d,{key:2,class:k(e.ns.e("prefix"))},{default:Y(()=>[j(u)]),_:1},8,["class"])):X("v-if",!0),X(" content "),j(p),X(" postfix "),e.isLeaf?X("v-if",!0):(w(),L(Me,{key:3},[e.node.loading?(w(),ee(d,{key:0,class:k([e.ns.is("loading"),e.ns.e("postfix")])},{default:Y(()=>[j(c)]),_:1},8,["class"])):(w(),ee(d,{key:1,class:k(["arrow-right",e.ns.e("postfix")])},{default:Y(()=>[j(v)]),_:1},8,["class"]))],64))],42,oh)}var sh=ve(nh,[["render",ah],["__file","node.vue"]]);const rh=J({name:"ElCascaderMenu",components:{Loading:Bn,ElIcon:Ce,ElScrollbar:_n,ElCascaderNode:sh},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=_e(),n=re("cascader-menu"),{t:o}=et(),a=qt();let r=null,s=null;const i=ke(Oa),u=T(null),d=y(()=>!e.nodes.length),p=y(()=>!i.initialLoaded),c=y(()=>`${a.value}-${e.index}`),v=g=>{r=g.target},f=g=>{if(!(!i.isHoverMenu||!r||!u.value))if(r.contains(g.target)){h();const C=t.vnode.el,{left:E}=C.getBoundingClientRect(),{offsetWidth:S,offsetHeight:b}=C,P=g.clientX-E,I=r.offsetTop,$=I+r.offsetHeight;u.value.innerHTML=`
2024-06-06 18:16:08 +08:00
<path style="pointer-events: auto;" fill="transparent" d="M${P} ${I} L${S} 0 V${I} Z" />
<path style="pointer-events: auto;" fill="transparent" d="M${P} ${$} L${S} ${b} V${$} Z" />
2024-06-18 18:49:49 +08:00
`}else s||(s=window.setTimeout(m,i.config.hoverThreshold))},h=()=>{!s||(clearTimeout(s),s=null)},m=()=>{!u.value||(u.value.innerHTML="",h())};return{ns:n,panel:i,hoverZone:u,isEmpty:d,isLoading:p,menuId:c,t:o,handleExpand:v,handleMouseMove:f,clearHoverZone:m}}});function ih(e,t,n,o,a,r){const s=Re("el-cascader-node"),i=Re("loading"),u=Re("el-icon"),d=Re("el-scrollbar");return w(),ee(d,{key:e.menuId,tag:"ul",role:"menu",class:k(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:Y(()=>{var p;return[(w(!0),L(Me,null,Qe(e.nodes,c=>(w(),ee(s,{key:c.uid,node:c,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(w(),L("div",{key:0,class:k(e.ns.e("empty-text"))},[j(u,{size:"14",class:k(e.ns.is("loading"))},{default:Y(()=>[j(i)]),_:1},8,["class"]),ot(" "+ce(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(w(),L("div",{key:1,class:k(e.ns.e("empty-text"))},ce(e.t("el.cascader.noData")),3)):(p=e.panel)!=null&&p.isHoverMenu?(w(),L("svg",{key:2,ref:"hoverZone",class:k(e.ns.e("hover-zone"))},null,2)):X("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var uh=ve(rh,[["render",ih],["__file","menu.vue"]]);let dh=0;const ch=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};class ao{constructor(t,n,o,a=!1){this.data=t,this.config=n,this.parent=o,this.root=a,this.uid=dh++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:r,label:s,children:i}=n,u=t[i],d=ch(this);this.level=a?0:o?o.level+1:1,this.value=t[r],this.label=t[s],this.pathNodes=d,this.pathValues=d.map(p=>p.value),this.pathLabels=d.map(p=>p.label),this.childrenData=u,this.children=(u||[]).map(p=>new ao(p,n,this)),this.loaded=!n.lazy||this.isLeaf||!To(u)}get isDisabled(){const{data:t,parent:n,config:o}=this,{disabled:a,checkStrictly:r}=o;return(rt(a)?a(t,this):!!t[a])||!r&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:o,loaded:a}=this,{lazy:r,leaf:s}=n,i=rt(s)?s(t,this):t[s];return Vt(i)?r&&!a?!1:!(Array.isArray(o)&&o.length):!!i}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:o}=this,a=new ao(t,this.config,this);return Array.isArray(n)?n.push(t):this.childrenData=[t],o.push(a),a}calcText(t,n){const o=t?this.pathLabels.join(n):this.label;return this.text=o,o}broadcast(t,...n){const o=`onParent${pn(t)}`;this.children.forEach(a=>{a&&(a.broadcast(t,...n),a[o]&&a[o](...n))})}emit(t,...n){const{parent:o}=this,a=`onChild${pn(t)}`;o&&(o[a]&&o[a](...n),o.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(a=>!a.isDisabled),o=n.length?n.every(a=>a.checked):!1;this.setCheckState(o)}setCheckState(t){const n=this.children.length,o=this.children.reduce((a,r)=>{const s=r.checked?1:r.indeterminate?.5:0;return a+s},0);this.checked=this.loaded&&this.children.filter(a=>!a.isDisabled).every(a=>a.loaded&&a.checked)&&t,this.indeterminate=this.loaded&&o!==n&&o>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:o}=this.config;n||!o?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}}const Xl=(e,t)=>e.reduce((n,o)=>(o.isLeaf?n.push(o):(!t&&n.push(o),n=n.concat(Xl(o.children,t))),n),[]);class Ps{constructor(t,n){this.config=n;const o=(t||[]).map(a=>new ao(a,this.config));this.nodes=o,this.allNodes=Xl(o,!1),this.leafNodes=Xl(o,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const o=n?n.appendChild(t):new ao(t,this.config);n||this.nodes.push(o),this.allNodes.push(o),o.isLeaf&&this.leafNodes.push(o)}appendNodes(t,n){t.forEach(o=>this.appendNode(o,n))}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(a=>Ut(a.value,t)||Ut(a.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:o,level:a})=>Ut(t.value,o)&&t.level===a)||null}}const wi=be({mode
2024-06-06 18:16:08 +08:00
M 50 50
m 0 ${b?"":"-"}${S}
a ${S} ${S} 0 1 1 0 ${b?"-":""}${S*2}
a ${S} ${S} 0 1 1 0 ${b?"":"-"}${S*2}
2024-06-22 19:15:19 +08:00
`}),u=y(()=>2*Math.PI*s.value),d=y(()=>t.type==="dashboard"?.75:1),p=y(()=>`${-1*u.value*(1-d.value)/2}px`),c=y(()=>({strokeDasharray:`${u.value*d.value}px, ${u.value}px`,strokeDashoffset:p.value})),v=y(()=>({strokeDasharray:`${u.value*d.value*(t.percentage/100)}px, ${u.value}px`,strokeDashoffset:p.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),f=y(()=>{let S;return t.color?S=E(t.percentage):S=n[t.status]||n.default,S}),h=y(()=>t.status==="warning"?ma:t.type==="line"?t.status==="success"?ha:co:t.status==="success"?Cl:gn),m=y(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),g=y(()=>t.format(t.percentage));function C(S){const b=100/S.length;return S.map((I,$)=>je(I)?{color:I,percentage:($+1)*b}:I).sort((I,$)=>I.percentage-$.percentage)}const E=S=>{var b;const{color:P}=t;if(rt(P))return P(S);if(je(P))return P;{const I=C(P);for(const $ of I)if($.percentage>S)return $.color;return(b=I[I.length-1])==null?void 0:b.color}};return(S,b)=>(w(),L("div",{class:k([l(o).b(),l(o).m(S.type),l(o).is(S.status),{[l(o).m("without-text")]:!S.showText,[l(o).m("text-inside")]:S.textInside}]),role:"progressbar","aria-valuenow":S.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[S.type==="line"?(w(),L("div",{key:0,class:k(l(o).b("bar"))},[W("div",{class:k(l(o).be("bar","outer")),style:Ae({height:`${S.strokeWidth}px`})},[W("div",{class:k([l(o).be("bar","inner"),{[l(o).bem("bar","inner","indeterminate")]:S.indeterminate},{[l(o).bem("bar","inner","striped")]:S.striped},{[l(o).bem("bar","inner","striped-flow")]:S.stripedFlow}]),style:Ae(l(a))},[(S.showText||S.$slots.default)&&S.textInside?(w(),L("div",{key:0,class:k(l(o).be("bar","innerText"))},[oe(S.$slots,"default",{percentage:S.percentage},()=>[W("span",null,ce(l(g)),1)])],2)):X("v-if",!0)],6)],6)],2)):(w(),L("div",{key:1,class:k(l(o).b("circle")),style:Ae({height:`${S.width}px`,width:`${S.width}px`})},[(w(),L("svg",hC,[W("path",{class:k(l(o).be("circle","track")),d:l(i),stroke:`var(${l(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":S.strokeLinecap,"stroke-width":l(r),fill:"none",style:Ae(l(c))},null,14,mC),W("path",{class:k(l(o).be("circle","path")),d:l(i),stroke:l(f),fill:"none",opacity:S.percentage?1:0,"stroke-linecap":S.strokeLinecap,"stroke-width":l(r),style:Ae(l(v))},null,14,gC)]))],6)),(S.showText||S.$slots.default)&&!S.textInside?(w(),L("div",{key:2,class:k(l(o).e("text")),style:Ae({fontSize:`${l(m)}px`})},[oe(S.$slots,"default",{percentage:S.percentage},()=>[S.status?(w(),ee(l(Ce),{key:1},{default:Y(()=>[(w(),ee(Ue(l(h))))]),_:1})):(w(),L("span",bC,ce(l(g)),1))])],6)):X("v-if",!0)],10,vC))}});var kC=ve(CC,[["__file","progress.vue"]]);const wC=Xe(kC),SC=be({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:Nr},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:ut},activeActionIcon:{type:ut},activeIcon:{type:ut},inactiveIcon:{type:ut},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:ne(Function)},id:String,tabindex:{type:[String,Number]},value:{type:[Boolean,String,Number],default:!1},label:{type:String,default:void 0}}),EC={[We]:e=>Mt(e)||je(e)||Ve(e),[Kt]:e=>Mt(e)||je(e)||Ve(e),[mn]:e=>Mt(e)||je(e)||Ve(e)},$C=["onClick"],NC=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"],TC=["aria-hidden"],IC=["aria-hidden"],PC=["aria-hidden"],oa="ElSwitch",MC=J({name:oa}),OC=J({...MC,props:SC,emits:EC,setup(e,{expose:t,emit:n}){const o=e,a=_e(),{formItem:r}=ln(),s=At(),i=re("switch");(M=>{M.forEach(A=>{On({from:A[0],replacement:A[1],scope:oa,version:"2.3.0",ref:"https://e