@me-framework/me-ui 1.0.57 → 1.0.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,7 +16,7 @@ import{defineComponent as i1,computed as p1,openBlock as B,createElementBlock as
16
16
  * vue-router v5.0.3
17
17
  * (c) 2026 Eduardo San Martin Morote
18
18
  * @license MIT
19
- */function Hp(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}function eX(e,t,i){const r=e.value;if(!r){process.env.NODE_ENV!=="production"&&Hp("No active route record was found when calling `onBeforeRouteLeave()`. Make sure you call this function inside a component child of <router-view>. Maybe you called it inside of App.vue?");return}let o=r;const n=()=>{o[t].delete(i)};sl(n),Tw(n),Ow(()=>{const a=e.value;process.env.NODE_ENV!=="production"&&!a&&Hp("No active route record was found when reactivating component with navigation guard. This is likely a bug in vue-router. Please report it."),a&&(o=a),o[t].add(i)}),o[t].add(i)}function tX(e){if(process.env.NODE_ENV!=="production"&&!Y7()){Hp("getCurrentInstance() returned null. onBeforeRouteLeave() must be called at the top of a setup function");return}eX(q0(YY,{}),"leaveGuards",e)}const iX={style:{"font-size":"18px","font-weight":"700"}},rX={style:{width:"auto"}},oX={key:0,style:{display:"flex","justify-content":"flex-end",width:"100%","align-items":"center"}},nX={key:0,style:{"margin-right":"10px"}},aX=i1({name:"me-dialog"});var lX=i1({...aX,props:E2({showFullscreen:{type:Boolean,required:!1},showClose:{type:Boolean,required:!1,default:!0},showCancelButton:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:"\u6807\u9898"},line:{type:String,required:!1,default:""},confirmHandler:{type:Function,required:!1},cancelHandler:{type:Function,required:!1},closeHandler:{type:Function,required:!1},isScroll:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1}},{modelValue:{default:!1},modelModifiers:{}}),emits:E2(["closeEvent","fullScreenChangeEvent"],["update:modelValue"]),setup(e,{emit:t}){const i=e,r=t,o=W2(e,"modelValue"),n=p1(()=>C.value?"100%":"90%"),a=QY();let l=a?.fullPath,s=!1;tX((H,h)=>{console.log("\u{1F680} ~ onBeforeRouteLeave:",h),l=h?.fullPath,s=o.value,o.value=!1}),D2(()=>a?.fullPath,H=>{console.log("\u{1F680} ~ path:",l),l===H&&s&&(o.value=!0)});let C=r1(!1),u=r1("ri-fullscreen-line"),d=p1(()=>i.line==""||i.line=="none"?"0px":"10px");D2(o,async H=>{H||(C.value=!1,u.value="ri-fullscreen-line")});const c=()=>{o.value=!1,r("closeEvent")},p=()=>{i.closeHandler?mp(i.closeHandler,H=>{H&&c()}):c()},L=()=>{i.cancelHandler?mp(i.cancelHandler,H=>{H&&c()}):c()},m=()=>{i.confirmHandler?mp(i.confirmHandler,H=>{H&&c()}):c()},f=()=>{C.value=!C.value,u.value=C.value?"ri-fullscreen-exit-line":"ri-fullscreen-line",r("fullScreenChangeEvent",C.value)};return(H,h)=>{const V=he("me-flex-box");return B(),C1(M(jw),I1({ref:"dialogRef",modelValue:o.value,"onUpdate:modelValue":h[0]||(h[0]=y=>o.value=y),class:"me-dialog","append-to-body":"","show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0,fullscreen:M(C),"align-center":""},H.$attrs,{style:[{"border-radius":"8px"},{maxHeight:n.value}],"modal-class":"me-dialog-modal"}),{header:R(({close:y,titleId:v,titleClass:g})=>[_("div",{class:"me-dialog-header",style:w1({borderBottom:e.line,paddingBottom:M(d)})},[l1(H.$slots,"me-dialog-header",{},()=>[_("span",iX,[l1(H.$slots,"title",{},()=>[P1(b1(i.title),1)])])]),_("div",rX,[i.showFullscreen?(B(),C1(M(Q7),{key:0,hover:"",icon:M(u),style:{cursor:"pointer","font-size":"20px",color:"var(--el-text-color-primary)"},onClick:f},null,8,["icon"])):G("v-if",!0),i.showClose?(B(),C1(M(Q7),{key:1,hover:"",icon:"ri-close-line","icon-size":20,style:{cursor:"pointer","font-size":"20px",color:"var(--el-text-color-primary)"},onClick:p})):G("v-if",!0)])],4)]),footer:R(()=>[_("div",{class:"me-dialog-footer",style:w1([{},{borderTop:e.line,paddingTop:M(d)}])},[H.$slots["me-dialog-footer-right"]?(B(),j("div",oX,[l1(H.$slots,"me-dialog-footer-right")])):G("v-if",!0),H.$slots["me-dialog-footer-right"]?G("v-if",!0):l1(H.$slots,"me-dialog-footer",{key:1},()=>[F(V,{end:!0},{default:R(()=>[H.$props.showCancelButton?(B(),j("div",nX,[F(M(n5),{onClick:L},{default:R(()=>[...h[1]||(h[1]=[P1("\u53D6\u6D88",-1)])]),_:1})])):G("v-if",!0),_("div",null,[F(M(n5),{type:"primary",onClick:m},{default:R(()=>[...h[2]||(h[2]=[P1("\u786E\u5B9A",-1)])]),_:1})])]),_:1})])],4)]),default:R(()=>[e.loading?(B(),C1(M(Lp),{key:0,style:{width:"100%",height:"100%"},show:e.loading},null,8,["show"])):G("v-if",!0),_("div",{style:w1([{flex:"1"},e.isScroll?{overflow:"auto"}:{overflow:"hidden"}]),class:"me-div-scroller"},[l1(H.$slots,"default")],4)]),_:3},16,["modelValue","fullscreen","style"])}}});const Ai=_1(lX),sX=i1({name:"me-label"});var CX=i1({...sX,props:{title:{type:String,required:!1,default:""},desc:{type:String,required:!1,default:""},radio:{type:Boolean,required:!1,default:!1},width:{type:String,required:!1,default:"150px"},top:{type:Boolean,required:!1,default:!1},gap:{type:String,required:!1,default:"30px"},size:{type:String,required:!1,default:"normal"},disabled:{type:Boolean,required:!1,default:!1}},setup(e){const t=e,i=p1(()=>({"--me-label-padding":t.size=="small"?"4px":"10px","--el-radio-input-display":t.radio?"flex":"none","--is-checked-display":t.radio?"none":"flex","--is-checked-before-width":t.size=="small"?"10px":"14px","--is-checked-before-height":t.size=="small"?"4px":"6px","--is-checked-before-top":t.top?"0":"auto","--is-checked-before-bottom":t.size=="small"?"5px":"7px","--is-checked-before-right":t.size=="small"?"0":"2px","--is-checked-border-bottom":o.value,"--is-checked-border-top":n.value,"--is-checked-border-width":r.value,"margin-right":t.gap})),r=p1(()=>t.size=="small"?"20px":"30px"),o=p1(()=>t.disabled?t.top?"0":`${r.value} solid var(--el-disabled-border-color)`:t.top?"0":`${r.value} solid #206bc4`),n=p1(()=>t.disabled?t.top?`${r.value} solid var(--el-disabled-border-color)`:"0":t.top?`${r.value} solid #206bc4`:"0"),a=p1(()=>{if(t.disabled)return{backgroundColor:"var(--el-disabled-bg-color)",color:"var(--el-disabled-text-color)",borderColor:"var(--el-disabled-border-color)",boxShadow:"none"}});return(l,s)=>(B(),C1(M(ap),I1(l.$attrs,{class:"me-label",style:{width:e.width,...a.value,...i.value}}),{default:R(()=>[_("div",{class:"text-primary",style:w1({...a.value})},b1(e.title),5),_("div",{class:"text-secondary",style:w1({...a.value})},b1(e.desc),5)]),_:1},16,["style"]))}});const Hx=_1(CX),uX=i1({name:"me-form-radio"});var dX=i1({...uX,props:{title:{type:String,required:!0,default:""},desc:{type:String,required:!0,default:""},radio:{type:Boolean,required:!0,default:!1},width:{type:String,required:!0,default:"150px"},top:{type:Boolean,required:!0,default:!1},gap:{type:String,required:!0,default:"30px"},size:{type:String,required:!1,default:"normal"},disabled:{type:Boolean,required:!1,default:!1}},setup(e){const t=e,i=p1(()=>({"--me-form-radio-padding":t.size=="small"?"4px":"10px","--el-radio-input-display":t.radio?"flex":"none","--is-checked-display":t.radio?"none":"flex","--is-checked-before-width":t.size=="small"?"10px":"14px","--is-checked-before-height":t.size=="small"?"4px":"6px","--is-checked-before-top":t.top?"0":"auto","--is-checked-before-bottom":t.size=="small"?"5px":"7px","--is-checked-before-right":t.size=="small"?"0":"2px","--is-checked-border-bottom":o.value,"--is-checked-border-top":n.value,"--is-checked-border-width":r.value,"margin-right":t.gap})),r=p1(()=>t.size=="small"?"20px":"30px"),o=p1(()=>t.disabled?t.top?"0":`${r.value} solid var(--el-disabled-border-color)`:t.top?"0":`${r.value} solid #206bc4`),n=p1(()=>t.disabled?t.top?`${r.value} solid var(--el-disabled-border-color)`:"0":t.top?`${r.value} solid #206bc4`:"0"),a=p1(()=>{if(t.disabled)return{backgroundColor:"var(--el-disabled-bg-color)",color:"var(--el-disabled-text-color)",borderColor:"var(--el-disabled-border-color)",boxShadow:"none"}});return(l,s)=>(B(),C1(M(ap),I1(l.$attrs,{class:"me-form-radio",style:{width:e.width,...a.value,...i.value}}),{default:R(()=>[_("div",{class:"text-primary",style:w1({...a.value})},b1(e.title),5),_("div",{class:"text-secondary",style:w1({...a.value})},b1(e.desc),5)]),_:1},16,["style"]))}});const Vx=_1(dX),cX={class:"me-page-result"},pX={class:"container"},hX={class:"empty"},fX={class:"empty-header"},mX=["src"],LX={class:"empty-title"},HX={class:"empty-subtitle"},VX={class:"empty-action"},yX=i1({name:"me-page-result"});var vX=i1({...yX,props:{title:{type:String,required:!1,default:"\u9519\u8BEF\u64CD\u4F5C"},desc:{type:String,required:!1,default:"We are sorry but our server encountered an internal error"},btnText:{type:String,required:!1,default:"\u8FD4\u56DE\u4E0A\u4E00\u9875"},btnClickHandler:{type:Function,required:!1},img:{type:String,required:!1,default:""}},setup(e){const t=e,i=Lx(),r=()=>{i&&i.back()},o=()=>{t.btnClickHandler?t.btnClickHandler():r()};return(n,a)=>(B(),j("div",cX,[_("div",pX,[_("div",hX,[_("div",fX,[_("img",{alt:"",style:{height:"36px"},src:e.img},null,8,mX)]),_("div",LX,b1(e.title),1),_("div",HX,b1(e.desc),1),_("div",VX,[l1(n.$slots,"action",{},()=>[_("div",{class:"empty-action__btn",onClick:o},[_("div",null,[F(M(E1),{style:{width:"1.25rem",height:"1.25rem",margin:"0 12px 0 -4px"},name:"ri-arrow-left-line"})]),P1(" "+b1(e.btnText),1)])])])])])]))}});const Vp=_1(vX),bX={key:0,style:{width:"100%",height:"100%",overflow:"hidden",display:"flex"}},gX=["space"],MX=["space"],ZX={style:{height:"100%",padding:"15px","box-sizing":"border-box"}},wX={key:3,class:"me-body-container"},xX={key:4,style:{width:"100%",height:"100%",overflow:"hidden",display:"flex"},class:"me-body-container"},BX={style:{}},EX={style:{overflow:"auto",height:"100%"},class:"me-div-scroller"},kX={style:{}},SX=i1({name:"me-body"});var DX=i1({...SX,props:{background:{type:String,required:!1,default:"#fff"},space:{type:Number,required:!1,default:0},mode:{type:String,required:!1,default:"normal"},fullScreen:{type:Boolean,required:!1,default:!1},error:{type:Boolean,required:!1,skipCheck:!0,default:!1},loading:{type:Boolean,required:!1,default:!1},result:{type:null,required:!1,default:void 0},title:{type:String,required:!1},subTitle:{type:String,required:!1}},setup(e){const t=e;let i=p1(()=>t.fullScreen?0:t.space);const r=p1(()=>{let o="100%";return t.loading||t.mode=="full"?o="100%":o="fit-content",{height:o}});return D2(()=>t.fullScreen,o=>{console.log(`fullScreen is: ${o}`)}),(o,n)=>(B(),j("div",{class:"me-body",style:w1(r.value)},[t.loading&&!t.error?(B(),j("div",bX,[_("div",{style:w1([{width:"100%",overflow:"hidden",display:"flex","flex-direction":"column","align-items":"center","justify-content":"center",background:"rgb(255, 255, 255)"},{margin:t.space+"px"}])},[...n[0]||(n[0]=[_("div",{class:"me-body__loader"},null,-1),_("div",null,"loading...",-1)])],4)])):G("v-if",!0),t.error?(B(),j("div",{key:1,space:t.space},[l1(o.$slots,"me-body-error",{},()=>[F(M(Vp))])],8,gX)):G("v-if",!0),t.result?(B(),j("div",{key:2,space:t.space,style:{height:"100%"}},[_("div",ZX,[F(M(_G),{style:{height:"100%",background:"#fff"},icon:t.result,title:t.title,"sub-title":t.subTitle},{extra:R(()=>[l1(o.$slots,"me-body-result",{},()=>[l1(o.$slots,"default")])]),_:3},8,["icon","title","sub-title"])])],8,MX)):G("v-if",!0),G(" mode normal "),!t.loading&&!t.error&&!t.result&&t.mode=="normal"?(B(),j("div",wX,[_("div",{style:w1({background:t.background,margin:`${M(i)}px`})},[l1(o.$slots,"me-body-header"),l1(o.$slots,"me-body-main"),l1(o.$slots,"me-body-footer")],4)])):G("v-if",!0),G(" mode full "),!t.loading&&!t.error&&!t.result&&t.mode=="full"?(B(),j("div",xX,[_("div",{style:w1([{width:"100%",flex:"1",overflow:"hidden",display:"flex","flex-direction":"column"},{background:t.background,margin:`${M(i)}px`}])},[_("div",BX,[l1(o.$slots,"me-body-header")]),_("div",EX,[l1(o.$slots,"me-body-main")]),_("div",kX,[l1(o.$slots,"me-body-footer")])],4)])):G("v-if",!0)],4))}});const yx=_1(DX),AX={style:{display:"flex",width:"fit-content",flex:"1","align-items":"center"}},OX={style:{display:"flex","align-items":"center",cursor:"pointer"}},TX={class:"card-text",style:{height:"100%"}},FX=i1({name:"me-card"});var _X=i1({...FX,props:{title:{type:String,required:!1},headerBorder:{type:Boolean,required:!1,default:!0},footerBorder:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!0},titleSize:{type:String,required:!1,default:"16px"},bgColor:{type:String,required:!1},width:{type:String,required:!1},height:{type:String,required:!1},bodyHeight:{type:String,required:!1},bodyStyle:{type:null,required:!1},mode:{type:String,required:!1,default:"normal"},round:{type:Boolean,required:!1,default:!0},customStyle:{type:null,required:!1},fullscreen:{type:Boolean,required:!1,default:!1},showCollapse:{type:Boolean,required:!1,default:!0},shadow:{type:String,required:!1,default:"never"},headerStyle:{type:Object,required:!1},expand:{type:Boolean,required:!1,default:!0}},emits:["closeEvent","changeEvent"],setup(e,{emit:t}){const i=e,r=r1(),o=r1(0);S0(()=>{o.value=r.value?.getBoundingClientRect()?.width});const n=t,a=x8(),l=r1(i.bodyHeight),s=r1(i.expand);D2(()=>i.expand,h=>{s.value=h});const C=p1(()=>({"border-bottom":i.headerBorder?"var(--card-border-width) solid var(--card-border-color)":"0"})),u=p1(()=>({"border-top":i.footerBorder?"var(--card-border-width) solid var(--card-border-color)":"0"})),d=p1(()=>({border:i.border?"var(--card-border-width) solid var(--card-border-color)":"0",height:i.mode==="full"?"100%":i.height,borderRadius:i.round?"calc(4px - (1px))":"0",backgroundColor:i.bgColor,...i.customStyle})),c=r1(!1),p=r1(null),L=r1(0),m=r1("ri-expand-diagonal-line"),f=r1({width:"",margin:"",height:i.height});window.addEventListener("resize",()=>{c.value||(o.value=r.value?.getBoundingClientRect()?.width)});const H=async()=>{oK.toggle(p.value,{teleport:!0,pageOnly:!0,callback:h=>{c.value=h,console.log(h,"isFullscreen"),n("changeEvent",h),h?(L.value=1e3,f.value={width:"100vw",margin:"0",height:"100vh"},m.value="ri-collapse-diagonal-line",l.value="100%"):(L.value=0,f.value={width:"",margin:"",height:"100%"},m.value="ri-expand-diagonal-line",l.value=i.bodyHeight)}})};return(h,V)=>(B(),j("div",{class:v0(["me-card",{"is-hover-shadow":i.shadow=="hover","is-always-shadow":i.shadow=="always"}]),ref_key:"meCardRef",ref:p,style:w1({...d.value,zIndex:L.value,...f.value})},[G(" header "),M(a)?.header||M(a)["header-left-btn"]||M(a)["header-right-btn"]||e.title?(B(),j("div",{key:0,class:"card-header",style:w1({...C.value,...e.headerStyle})},[_("div",AX,[l1(h.$slots,"header"),_("div",null,[l1(h.$slots,"header-left-btn",{},()=>[_("div",{class:"card-title",style:w1({fontSize:e.titleSize})},b1(e.title),5)])])]),_("div",OX,[l1(h.$slots,"header-right-btn"),i.showCollapse?(B(),j("div",{key:0,onClick:V[0]||(V[0]=y=>s.value=!s.value),style:{"margin-left":"10px"}},[F(M(Q7),{hover:"",icon:s.value?"ri-subtract-line":"ri-add-line"},null,8,["icon"])])):G("v-if",!0),i.fullscreen?(B(),j("div",{key:1,onClick:H,style:{"margin-left":"10px"}},[F(M(Q7),{hover:"",icon:m.value},null,8,["icon"])])):G("v-if",!0)])],4)):G("v-if",!0),G(" body "),v4(_("div",{ref_key:"bodyRef",ref:r,style:w1([{"overflow-y":"auto",padding:"10px 0"},{height:l.value,...e.bodyStyle}])},[v4(_("div",{class:"card-body",style:w1({height:c.value?"100%":`calc(${i.bodyHeight} - 20px)`,...e.bodyStyle})},[_("div",TX,[l1(h.$slots,"default")])],4),[[N4,!0]])],4),[[N4,s.value]]),G(" footer "),M(a)?.footer&&s.value?(B(),j("div",{key:1,style:w1(u.value),class:"card-footer"},[l1(h.$slots,"footer")],4)):G("v-if",!0)],6))}});const vx=_1(_X),PX={class:"me-swiper"},IX=i1({name:"me-swiper"});var jX=i1({...IX,props:{moveOffset:{type:Number,required:!1,default:100},customStyle:{type:Object,required:!1}},setup(e){const t=e,i=r1(),r=r1(),o=r1(0);let n=0;const a=r1(1);let l=r1(0),s=r1(0);const C=r1("");bl(r,d=>{const c=d[0],{width:p,height:L}=c.contentRect;l.value=p,C.value=`width: ${p}, height: ${L}`}),bl(i,d=>{const c=d[0],{width:p,height:L}=c.contentRect;s.value=p}),Cl(()=>{a.value=s.value-l.value});const u=d=>{const c=a.value,p=t.moveOffset;d==="left"&&(n+p>0?n=0:n+=p),d==="right"&&(n-p<=c?n=c:n-=p),o.value=n};return(d,c)=>(B(),j("div",PX,[_("div",{ref_key:"wrapperRef",ref:i,class:"wrapper"},[o.value<0?(B(),j("div",{key:0,onClick:c[0]||(c[0]=p=>u("left")),class:"toggle toggle-left"},[l1(d.$slots,"left",{},()=>[F(M(E1),{size:24,color:"#dcdfe6",name:"ri-arrow-right-s-line"})])])):G("v-if",!0),o.value>a.value?(B(),j("div",{key:1,onClick:c[1]||(c[1]=p=>u("right")),class:"toggle toggle-right"},[l1(d.$slots,"right",{},()=>[F(M(E1),{size:24,color:"#dcdfe6",name:"ri-arrow-right-s-line"})])])):G("v-if",!0),_("div",{style:w1({transform:`translateX(${o.value}px)`,...e.customStyle}),ref_key:"listRef",ref:r,class:"coupon-list"},[l1(d.$slots,"default")],4)],512)]))}});const bx=_1(jX),NX={class:"me-resource-card"},$X={class:"header"},RX={key:0,class:"body"},zX={class:"value"},qX={class:"label"},UX=i1({name:"me-resource-card"});var WX=i1({...UX,props:{footerList:{type:Array,required:!1,default:()=>[]}},setup(e){return(t,i)=>(B(),j("div",NX,[_("div",$X,[l1(t.$slots,"header"),l1(t.$slots,"header-menu")]),e.footerList?.length?(B(),j("div",RX,[l1(t.$slots,"footer",{},()=>[(B(!0),j(J1,null,Z2(e.footerList,(r,o)=>(B(),j("div",{class:"item",key:r?.id||o},[_("div",zX,b1(r.value)+" "+b1(r.unit),1),_("div",qX,b1(r.label),1)]))),128))])])):G("v-if",!0)]))}});const gx=_1(WX),GX=i1({name:"me-expand-menu"});var KX=i1({...GX,props:{top:{type:String,required:!1,default:"210px"},customStyle:{type:Object,required:!1,default:()=>({})},target:{type:null,required:!1},autoHide:{type:Boolean,required:!1,default:!1},expand:{type:Boolean,required:!1,default:!0}},emits:["expandChangeEvent"],setup(e,{emit:t}){const i=e,r=t,o=r1(i.expand),n=16,a="rgb(78, 89, 105)",l=r1(!i.autoHide);D2(()=>i.expand,c=>{o.value=c});const s=()=>{i.autoHide&&(l.value=!0)},C=()=>{!o.value||!i.autoHide||(l.value=!1)},u=Cl(()=>{i.target?.addEventListener("mouseenter",s),i.target?.addEventListener("mouseleave",C)});sl(()=>{u(),i.target?.removeEventListener("mouseenter",s),i.target?.removeEventListener("mouseleave",C)});const d=()=>{o.value=!o.value,r("expandChangeEvent",o.value)};return(c,p)=>(B(),C1(ul,null,{default:R(()=>[l.value?(B(),j("div",{key:0,class:"me-expand-menu",style:w1({top:i.top,...i.customStyle}),onClick:d},[o.value?(B(),C1(M(E1),{key:0,color:a,name:"ri-arrow-left-s-line",size:n})):(B(),C1(M(E1),{key:1,name:"ri-arrow-right-s-line",color:a,size:n}))],4)):G("v-if",!0)]),_:1}))}});const yp=_1(KX),YX=i1({name:"me-flex-box"});var XX=i1({...YX,props:{row:{type:Boolean,required:!1,default:!1},column:{type:Boolean,required:!1,default:!1},auto:{type:Boolean,required:!1,default:!1},end:{type:Boolean,required:!1,default:!1},scrollbar:{type:Boolean,required:!1,default:!1}},setup(e){const t=e,i=p1(()=>{let r={boxSizing:"border-box"};return t.row&&(r.flexDirection="row"),t.column&&(r.flexDirection="column"),t.end&&(r.justifyContent="flex-end"),r.display="flex",t.auto&&(r.flex=1),r});return(r,o)=>(B(),j("div",{style:w1(i.value),class:v0(["me-flex-box",{"me-div-scroller":t.scrollbar}])},[l1(r.$slots,"default")],6))}});const S8=_1(XX),vp=document.createElement("div");document.body.appendChild(vp);const JX=e=>typeof e=="string"?{"url-list":[e]}:Array.isArray(e)?{"url-list":e}:e,bp=(e,t={})=>{const i=F(PG,{...JX(e),onClose:()=>{p7(null,vp)},...t});p7(i,vp)};/*! Element Plus Icons Vue v2.3.2 */var QX=i1({name:"Picture",__name:"picture",setup(e){return(t,i)=>(B(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),_("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64-64-64 64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"})]))}}),eJ=QX;const tJ={style:{display:"flex","align-items":"center","justify-content":"center",height:"100%","font-size":"1rem"}},iJ=i1({name:"me-resource-image"});var rJ=i1({...iJ,props:E2({request:{type:Function,required:!1},width:{type:Number,required:!1,default:100},height:{type:Number,required:!1,default:100},preview:{type:Boolean,required:!1,default:!1},style:{type:[String,Object],required:!1}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,i=r1(""),r=r1(!1),o=r1(!1),n=W2(e,"modelValue");D2(()=>n.value,l=>{l?a(l)?i.value=n.value||"":t.request?t.request({id:n.value}).then(s=>{s.code!=0?o.value=!0:(o.value=!1,i.value=s.data[0].url)}).catch(()=>{o.value=!0}):o.value=!0:o.value=!0},{immediate:!0});function a(l){try{return new URL(l),!0}catch{return!1}}return(l,s)=>(B(),j("div",{class:"me-resource-image",style:w1([{width:t.width+"px",height:t.height+"px"},e.style])},[!r.value&&!o.value?(B(),C1(M(IG),{key:0,animated:""},{template:R(()=>[F(M(jG),{variant:"image",style:w1([{width:t.width+"px",height:t.height+"px"}])},null,8,["style"])]),_:1})):G("v-if",!0),v4(F(M(fl),I1({style:[{width:"100%",height:"100%"},[{cursor:e.preview?"zoom-in":"default"}]],src:i.value,fit:"cover",onLoad:s[0]||(s[0]=C=>r.value=!0),onError:s[1]||(s[1]=C=>o.value=!0)},l.$attrs,{onClick:s[2]||(s[2]=C=>e.preview&&M(bp)(i.value))}),{error:R(()=>[l1(l.$slots,"error",{},()=>[_("div",tJ,[F(M(NG),null,{default:R(()=>[F(M(eJ))]),_:1})])])]),_:3},16,["style","src"]),[[N4,r.value||o.value]])],4))}});const gp=_1(rJ),oJ={style:{display:"flex","align-items":"center",cursor:"pointer"}},nJ={style:{display:"flex","justify-content":"center","align-items":"center",height:"100%"}},aJ=["src"],lJ={style:{"margin-left":"10px"}},sJ={style:{"font-weight":"bold","line-height":"24px"}},CJ={style:{"font-size":"11px",color:"#909399","line-height":"24px"}},uJ=i1({name:"me-avatar"});var dJ=i1({...uJ,props:{defaultImage:{type:String,required:!1,default:"https://resource.mini-enjoy.com/saas/images/avatar-visitor.png"},size:{type:String,required:!1,default:"44px"},image:{type:String,required:!0},name:{type:String,required:!1},desc:{type:String,required:!1},style:{type:Object,required:!1}},setup(e){return(t,i)=>(B(),j("div",oJ,[_("div",null,[F(M(gp),{style:w1([{"border-radius":"50%",border:"2px solid #fff","box-shadow":"0 2px 8px #0000000a",overflow:"hidden"},[{width:e.size,height:e.size},e.style]]),modelValue:e.image},{error:R(()=>[l1(t.$slots,"error",{},()=>[_("div",nJ,[_("img",{style:{width:"100%"},src:e.defaultImage,alt:""},null,8,aJ)])])]),_:3},8,["style","modelValue"])]),_("div",lJ,[l1(t.$slots,"name",{},()=>[_("div",sJ,b1(e.name),1)]),l1(t.$slots,"desc",{},()=>[_("div",CJ,b1(e.desc),1)])])]))}});const Mx=_1(dJ),cJ=i1({name:"me-overlay"});var pJ=i1({...cJ,props:E2({center:{type:Boolean,required:!1,default:!0},top:{type:String,required:!1,default:"0px"},background:{type:String,required:!1,default:"rgba(0, 0, 0, 0.7)"},appendToBody:{type:Boolean,required:!1,default:!1},showClose:{type:Boolean,required:!1,default:!0},escClose:{type:Boolean,required:!1,default:!0}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:E2(["close"],["update:modelValue"]),setup(e,{emit:t}){const i=e,r=t,o=W2(e,"modelValue"),n=a=>{i.escClose&&a.key==="Escape"&&(o.value=!1)};return D2(()=>o.value,a=>{a?(document.body.style.overflow="hidden",document.addEventListener("keyup",n)):(document.body.style.overflow="auto",document.removeEventListener("keyup",n),r("close"))}),(a,l)=>(B(),j("div",{class:"me-overlay",onKeyup:l[1]||(l[1]=_w(s=>o.value=!1,["esc"]))},[(B(),C1(np,{to:"body",disabled:!e.appendToBody},[F(ul,{name:"fade"},{default:R(()=>[o.value?(B(),j("div",I1({key:0},a.$attrs,{class:"maskLayer-overlay",style:{background:e.background}}),[_("div",{class:"maskLayer-content",style:w1({marginTop:i.center?0:i.top,alignItems:i.center?"center":"stretch"})},[e.showClose?(B(),j("div",{key:0,class:"close",onClick:l[0]||(l[0]=s=>o.value=!1)},[F(M(E1),{color:"#fff",name:"ri-close-large-line"})])):G("v-if",!0),l1(a.$slots,"default")],4)],16)):G("v-if",!0)]),_:3})],8,["disabled"]))],32))}});const Zx=_1(pJ),hJ={class:"me-more-dropdown"},fJ={style:{cursor:"pointer",height:"fit-content"}},mJ=i1({name:"me-more-dropdown"});var LJ=i1({...mJ,props:{data:{type:Array,required:!0,default:()=>[]},menuIcon:{type:String,required:!1,default:"ri-more-2-line"},placement:{type:String,required:!1,default:"bottom-end"},disableTransitions:{type:Boolean,required:!1,default:!1},buttonStyle:{type:String,required:!1},style:{type:String,required:!1},activeLabel:{type:String,required:!1}},setup(e){const t=Lx(),i=(r,o)=>{const{toPath:n,onClick:a}=o;a&&a(r),n&&t&&t.push(n)};return(r,o)=>(B(),j("div",hJ,[F(M(Hl),I1({"hide-on-click":!0,placement:e.placement,trigger:"click"},r.$attrs,{style:e.style}),{dropdown:R(()=>[F(M(Vl),null,{default:R(()=>[(B(!0),j(J1,null,Z2(e.data,(n,a)=>(B(),j(J1,{key:a},[n.hidden?G("v-if",!0):(B(),C1(M(Si),{key:0,divided:n.divided,disabled:n.disabled,onClick:l=>i(l,n),style:w1({color:n.label===e.activeLabel?"var(--el-color-primary)":""})},{default:R(()=>[P1(b1(n.label),1)]),_:2},1032,["divided","disabled","onClick","style"]))],64))),128))]),_:1})]),default:R(()=>[_("div",fJ,[l1(r.$slots,"default",{},()=>[_("div",{style:w1(e.buttonStyle),class:v0([{transition:!e.disableTransitions},"button flex-center"])},[F(M(E1),{class:"icon",name:e.menuIcon},null,8,["name"])],6)])])]),_:3},16,["placement","style"])]))}});const wx=_1(LJ),HJ={style:{cursor:"pointer","margin-top":"3px",display:"flex"}},VJ={key:2},yJ=i1({name:"me-breadcrumb"});var vJ=i1({...yJ,props:{modelValue:{type:Array},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=W2(e,"modelValue");return(i,r)=>(B(),C1(M($G),I1(i.$attrs,{style:{"margin-bottom":"0px",display:"flex","align-items":"center"}}),{default:R(()=>[(B(!0),j(J1,null,Z2(t.value,o=>(B(),C1(M(RG),{key:o.label,to:o.to},{default:R(()=>[o.type=="select"?(B(),C1(M(Nw),{key:0,modelValue:o.value,"onUpdate:modelValue":n=>o.value=n,style:{width:"240px","margin-bottom":"0px"},onChange:o.change,options:o.options,props:o.props},null,8,["modelValue","onUpdate:modelValue","onChange","options","props"])):o.type=="menu"?(B(),C1(M(Hl),{key:1,trigger:"click"},{dropdown:R(()=>[F(M(Vl),null,{default:R(()=>[(B(!0),j(J1,null,Z2(o.options,n=>(B(),C1(M(Si),{onClick:n.click},{default:R(()=>[_("span",{style:w1({color:o.name===n.label?"#409eff":""})},b1(n.label),5)]),_:2},1032,["onClick"]))),256))]),_:2},1024)]),default:R(()=>[_("div",HJ,[P1(b1(o.name)+" ",1),F(M(E1),{name:"ri-arrow-down-s-fill"})])]),_:2},1024)):(B(),j("span",VJ,b1(o.label),1))]),_:2},1032,["to"]))),128))]),_:1},16))}});const xx=_1(vJ);let e3=null;function bJ(){return e3!==null}function gJ(e){e3&&Ex(),e3=e}function Bx(e){e===e3&&(e3=null)}function Ex(){e3&&(e3.closeMenu(),e3=null)}const Z9={defaultDirection:"br",defaultMinWidth:100,defaultMaxWidth:600,defaultZindex:100,defaultZoom:1,defaultAdjustPadding:{x:0,y:10}};function Oi(e,t){let i=e.offsetTop;return e.offsetParent!=null&&e.offsetParent!=t&&(i-=e.offsetParent.scrollTop,i+=Oi(e.offsetParent,t)),i}function Ti(e,t){let i=e.offsetLeft;return e.offsetParent!=null&&e.offsetParent!=t&&(i-=e.offsetParent.scrollLeft,i+=Ti(e.offsetParent,t)),i}function MJ(e,t,i,r){return{x:Ti(e,r)+t,y:Oi(e,r)+i}}const Mp="mx-menu-default-container",ZJ="mx-menu-container-";let wJ=0;function kx(e){const{getContainer:t,zIndex:i}=e;if(t){const o=typeof t=="function"?t():t;if(o){let n=o.getAttribute("id");return n||(n=ZJ+wJ++,o.setAttribute("id",n)),{eleId:n,container:o,isNew:!1}}}let r=document.getElementById(Mp);return r||(r=document.createElement("div"),r.setAttribute("id",Mp),r.setAttribute("class","mx-menu-ghost-host fullscreen"),document.body.appendChild(r)),r.style.zIndex=i?.toString()||Z9.defaultZindex.toString(),{eleId:Mp,container:r,isNew:!0}}function xJ(e){let t=0;for(let i=0;i<e.length;i++){const r=e.charCodeAt(i);t=(t<<5)-t+r,t|=0}return t}function Sx(e){return typeof e=="number"?`${e}px`:e}const w9=i1({props:{vnode:{type:null},data:{type:null,default:null}},setup(e){const{vnode:t,data:i}=B8(e);return()=>typeof t.value=="function"?t.value(i.value):t.value}});function BJ(e,t){const i={...e};return delete i[t],i}var EJ=Object.defineProperty,kJ=(e,t,i)=>t in e?EJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Dx=(e,t,i)=>kJ(e,typeof t!="symbol"?t+"":t,i);let Ax=class{constructor(t,i){Dx(this,"x",0),Dx(this,"y",0),this.x=t||0,this.y=i||0}set(t,i){this.x=t,this.y=i}substract(t){this.x-=t.x,this.y-=t.y}};function Ox(e){const{onDown:t,onMove:i,onUp:r}=e,o=new Ax,n=new Ax;let a;function l(C){C.stopPropagation(),n.set(C.x,C.y),n.substract(o),i(o,n,C,a)}function s(C){r(C,a),o.set(0,0),document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",s)}return(C,u)=>t(C,u)?(a=u,o.set(C.x,C.y),document.addEventListener("mousemove",l),document.addEventListener("mouseup",s),C.stopPropagation(),!0):!1}function SJ(e,t){let i=0;return{start(){i>0&&clearInterval(i),i=setInterval(()=>{i=0,t()},e)},stop(){i>0&&(clearInterval(i),i=0)}}}const Fi=[],Tx=SJ(100,()=>{for(const e of Fi)e()});function DJ(e,t,i,r){let o=0,n=0;function a(){e.value&&(t&&o!==e.value.offsetWidth&&t(e.value.offsetWidth),i&&n!==e.value.offsetHeight&&i(e.value.offsetHeight),o=e.value.offsetWidth,n=e.value.offsetHeight)}return{startResizeChecker(){Tx.start(),Fi.push(a)},stopResizeChecker(){const l=Fi.indexOf(a);l>=0&&Fi.splice(l,1),Fi.length===0&&Tx.stop()}}}const Fx=140,AJ=70,OJ=i1({__name:"ScrollRect",props:{scroll:{type:String,default:"both"},scrollBarAlwaysShow:{type:Boolean,default:!1},scrollBarBackgroundClickable:{type:Boolean,default:!1},height:{type:Number,default:void 0},width:{type:Number,default:void 0},maxHeight:{type:Number,default:void 0},maxWidth:{type:Number,default:void 0},containerClass:{type:String,default:""},containerStyle:{type:null}},emits:["scroll","resized"],setup(e,{expose:t,emit:i}){const r=e,o=i,n=r1(),a=r1(),l=r1(),s=r1(),C=r1(),u=r1(),d=r1(!1),c=p1(()=>r.scroll==="horizontal"||r.scroll==="both"),p=p1(()=>r.scroll==="vertical"||r.scroll==="both"),L=X7({show:!1,size:0,sizeRaw:0,pos:0}),m=X7({show:!1,size:0,sizeRaw:0,pos:0});let f=0,H=0,h=0,V=0,y=null;const v={attributes:!0,childList:!0};function g(){if(n.value){if(L.show){const I=n.value.offsetWidth/n.value.scrollWidth;L.sizeRaw=I*n.value.offsetWidth,L.size=I*100,L.pos=n.value.scrollLeft/(n.value.scrollWidth-n.value.offsetWidth)*(100-L.size),I>=1&&(L.show=!1)}if(m.show){const I=n.value.offsetHeight/n.value.scrollHeight;m.sizeRaw=I*n.value.offsetHeight,m.size=I*100,m.pos=n.value.scrollTop/(n.value.scrollHeight-n.value.offsetHeight)*(100-m.size),I>=1&&(m.show=!1)}o("scroll",n.value.scrollLeft,n.value.scrollTop)}}function b(I=!1){if(!n.value)return;let J=c.value,t1=p.value;const x1=J&&(f!==n.value.scrollWidth||h!==n.value.offsetWidth),A1=p&&(H!==n.value.scrollHeight||V!==n.value.offsetHeight);if(!I&&!x1&&!A1)return;const O1=window.getComputedStyle(n.value);(O1.overflow==="hidden"||O1.overflowX==="hidden")&&(J=!1),(O1.overflow==="hidden"||O1.overflowY==="hidden")&&(t1=!1),L.show=J,m.show=t1,g(),h=n.value.offsetWidth,V=n.value.offsetHeight,f=n.value.scrollWidth,H=n.value.scrollHeight,o("resized",f,H)}function x(I){var J;r.scroll=="horizontal"&&(I.deltaMode==0&&((J=n.value)==null||J.scrollTo({left:n.value.scrollLeft+(I.deltaY>0?Fx:-140),behavior:"smooth"})),I.preventDefault(),I.stopPropagation())}function w(I){var J;I.deltaMode==0&&((J=n.value)==null||J.scrollTo({left:n.value.scrollLeft+(I.deltaY>0?Fx:-140),behavior:"smooth"}),I.preventDefault(),I.stopPropagation())}function E(I){var J;I.deltaMode==0&&((J=n.value)==null||J.scrollTo({top:n.value.scrollTop+(I.deltaY>0?AJ:-70),behavior:"smooth"}),I.preventDefault(),I.stopPropagation())}let N=0,O=0,Q=0,Y=0;const P=Ox({onDown(I){return!l.value||!C.value?!1:(N=I.offsetX,O=I.x-I.offsetX-C.value.offsetLeft,I.preventDefault(),d.value=!0,!0)},onMove(I,J,t1){n.value&&l.value&&(c1(t1.x-N-O),t1.preventDefault(),t1.stopPropagation())},onUp(){d.value=!1}}),U=Ox({onDown(I){return!s.value||!u.value?!1:(Q=I.offsetY,Y=I.y-I.offsetY-u.value.offsetTop,I.preventDefault(),d.value=!0,!0)},onMove(I,J,t1){n.value&&s.value&&(f1(t1.y-Q-Y),t1.preventDefault(),t1.stopPropagation())},onUp(){d.value=!1}});function e1(I){n.value&&(n.value.scrollLeft=I/100*(n.value.scrollWidth-n.value.offsetWidth))}function u1(I){n.value&&(n.value.scrollLeft=I/100*(n.value.scrollHeight-n.value.offsetHeight))}function c1(I){n.value&&(n.value.scrollLeft=I/(n.value.offsetWidth-L.sizeRaw)*(n.value.scrollWidth-n.value.offsetWidth))}function f1(I){n.value&&(n.value.scrollTop=I/(n.value.offsetHeight-m.sizeRaw)*(n.value.scrollHeight-n.value.offsetHeight))}function D(I){r.scrollBarBackgroundClickable&&c1(I.offsetX-L.sizeRaw/2)}function S(I){r.scrollBarBackgroundClickable&&f1(I.offsetY-m.sizeRaw/2)}const{startResizeChecker:z,stopResizeChecker:K}=DJ(n,()=>b(),()=>b());return S0(()=>{B5(()=>{setTimeout(()=>b(!0),200),b(!0),z(),y=new MutationObserver(()=>b()),y.observe(n.value,v)})}),ki(()=>{K(),y&&(y.disconnect(),y=null)}),t({refreshScrollState(){b(!0)},getScrollContainer(){return n.value},scrollTo(I,J){var t1;(t1=n.value)==null||t1.scrollTo(I,J)},scrollToTop(){var I;(I=n.value)==null||I.scrollTo(0,0)},scrollToBottom(){var I;(I=n.value)==null||I.scrollTo(n.value.scrollWidth,n.value.scrollHeight)}}),(I,J)=>(B(),j("div",{ref_key:"scrollrect",ref:a,class:v0(["vue-scroll-rect",e.scrollBarAlwaysShow?"always-show-scrollbar":"",e.scrollBarBackgroundClickable?"background-clickable":"",d.value?"dragging":""]),style:w1({width:e.width?`${e.width}px`:void 0,height:e.height?`${e.height}px`:void 0}),onWheel:x},[_("div",{ref_key:"container",ref:n,class:v0(["scroll-content",e.scroll,e.containerClass]),style:w1({maxWidth:e.maxWidth?`${e.maxWidth}px`:void 0,maxHeight:e.maxHeight?`${e.maxHeight}px`:void 0,...e.containerStyle}),onScroll:g},[l1(I.$slots,"default")],38),L.show?l1(I.$slots,"scrollBarX",{key:0,scrollBarValue:L,onScroll:e1},()=>[_("div",{ref_key:"scrollBarRefX",ref:l,class:"scrollbar horizontal",onClick:D,onWheel:w},[_("div",{class:"thumb",ref_key:"scrollBarThumbRefX",ref:C,style:w1({left:`${L.pos}%`,width:`${L.size}%`}),onMousedown:J[0]||(J[0]=(...t1)=>M(P)&&M(P)(...t1)),onWheel:w},null,36)],544)]):G("",!0),m.show?l1(I.$slots,"scrollBarY",{key:1,scrollBarValue:m,onScroll:u1},()=>[m.show?(B(),j("div",{key:0,ref_key:"scrollBarRefY",ref:s,class:"scrollbar vertical",onClick:S,onWheel:E},[_("div",{class:"thumb",ref_key:"scrollBarThumbRefY",ref:u,style:w1({top:`${m.pos}%`,height:`${m.size}%`}),onMousedown:J[1]||(J[1]=(...t1)=>M(U)&&M(U)(...t1)),onWheel:E},null,36)],544)):G("",!0)]):G("",!0)],38))}}),Zp=(e,t)=>{const i=e.__vccOpts||e;for(const[r,o]of t)i[r]=o;return i},TJ={},FJ={class:"mx-checked-mark","aria-hidden":"true",viewBox:"0 0 1024 1024"},_J=_("path",{d:"M129.3,428.6L52,512l345,372.5l575-620.8l-69.5-75L400.4,718.2L129.3,428.6z"},null,-1),PJ=[_J];function IJ(e,t){return B(),j("svg",FJ,PJ)}const jJ=Zp(TJ,[["render",IJ]]),NJ={},$J={class:"mx-right-arrow","aria-hidden":"true",viewBox:"0 0 1024 1024"},RJ=_("path",{d:"M307.018 49.445c11.517 0 23.032 4.394 31.819 13.18L756.404 480.18c8.439 8.438 13.181 19.885 13.181 31.82s-4.741 23.38-13.181 31.82L338.838 961.376c-17.574 17.573-46.065 17.573-63.64-0.001-17.573-17.573-17.573-46.065 0.001-63.64L660.944 512 275.198 126.265c-17.574-17.573-17.574-46.066-0.001-63.64C283.985 53.839 295.501 49.445 307.018 49.445z"},null,-1),zJ=[RJ];function qJ(e,t){return B(),j("svg",$J,zJ)}const UJ=Zp(NJ,[["render",qJ]]),WJ={class:"mx-item-row"},GJ=["xlink:href"],KJ={key:1,class:"label"},YJ={class:"mx-item-row"},XJ={class:"mx-shortcut"},wp=i1({__name:"ContextMenuItem",props:{disabled:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},customRender:{type:Function,default:null},customClass:{type:String,default:""},clickHandler:{type:Function,default:null},label:{type:[String,Object,Function],default:""},icon:{type:[String,Object,Function],default:""},iconFontClass:{type:String,default:"iconfont"},checked:{type:Boolean,default:!1},shortcut:{type:String,default:""},svgIcon:{type:String,default:""},svgProps:{type:Object,default:null},preserveIconWidth:{type:Boolean,default:!0},showRightArrow:{type:Boolean,default:!1},hasChildren:{type:Boolean,default:!1},clickClose:{type:Boolean,default:!0},clickableWhenHasChildren:{type:Boolean,default:!1},rawMenuItem:{type:Object,default:void 0}},emits:["click","subMenuOpen","subMenuClose"],setup(e,{expose:t,emit:i}){const r=e,o=i,{clickHandler:n,clickClose:a,clickableWhenHasChildren:l,disabled:s,hidden:C,label:u,icon:d,iconFontClass:c,showRightArrow:p,shortcut:L,hasChildren:m}=B8(r),f=r1(!1),H=r1(!1),h=r1(),V=q0("globalOptions"),y=q0("globalHasSlot"),v=q0("globalRenderSlot"),g=q0("globalCloseMenu"),b=q0("menuContext"),x=p1(()=>typeof u.value=="string"?u.value:typeof u.value=="function"?xJ(u.value.toString()):"MenuItem[unknow]");e9("MenuItemName",x);const w={getSubMenuInstance:()=>{},showSubMenu:()=>f.value?(b.markActiveMenuItem(w,!0),!0):m.value?(N(),!0):!1,hideSubMenu:()=>{b.closeOtherSubMenu()},isDisabledOrHidden:()=>s.value||C.value,getElement:()=>h.value,focus:()=>H.value=!0,blur:()=>H.value=!1,click:E};e9("menuItemInstance",w),S0(()=>{b.isMenuItemDataCollectedFlag()?B5(()=>{let Y=0;const P=b.getElement();if(P){let U=0;for(let e1=0;e1<P.children.length;e1++){const u1=P.children[e1];if(u1.getAttribute("data-type")==="ContextMenuItem"){if(u1===h.value){Y=U;break}U++}}}b.addChildMenuItem(w,Y)}):b.addChildMenuItem(w)}),ki(()=>{b.removeChildMenuItem(w)});function E(Y){if(!s.value){if(Y){const P=Y.target;if(P.classList.contains("mx-context-no-clickable")||V.value.ignoreClickClassName&&P.classList.contains(V.value.ignoreClickClassName))return;if(V.value.clickCloseClassName&&P.classList.contains(V.value.clickCloseClassName)){Y.stopPropagation(),g(r.rawMenuItem);return}}m.value?l.value?(typeof n.value=="function"&&n.value(Y),o("click",Y)):f.value||N():(typeof n.value=="function"&&n.value(Y),o("click",Y),a.value&&g(r.rawMenuItem))}}function N(Y){H.value=!1,b.checkCloseOtherSubMenuTimeOut()||b.closeOtherSubMenu(),s.value||(b.markActiveMenuItem(w),m.value&&(Y||b.markThisOpenedByKeyBoard(),b.addOpenedSubMenu(O),f.value=!0,B5(()=>o("subMenuOpen",w))))}function O(){H.value=!1,f.value=!1,o("subMenuClose",w)}function Q(){return{disabled:s.value,label:u.value,icon:d.value,iconFontClass:c.value,showRightArrow:p.value,clickClose:a.value,clickableWhenHasChildren:l.value,shortcut:L.value,theme:V.value.theme,isOpen:f,hasChildren:m,onClick:E,onMouseEnter:N,closeMenu:g}}return t(w),(Y,P)=>{var U;return M(C)?G("",!0):(B(),j("div",I1({key:0,class:"mx-context-menu-item-wrapper",ref_key:"menuItemRef",ref:h,"data-type":"ContextMenuItem"},{...Y.$attrs,...((U=e.rawMenuItem)==null?void 0:U.attrs)||{}}),[M(y)("itemRender")?(B(),C1(M(w9),{key:0,vnode:()=>M(v)("itemRender",Q())},null,8,["vnode"])):e.customRender?(B(),C1(M(w9),{key:1,vnode:e.customRender,data:Q()},null,8,["vnode","data"])):(B(),j("div",{key:2,class:v0(["mx-context-menu-item",M(s)?"disabled":"",H.value?"keyboard-focus":"",e.customClass?" "+e.customClass:"",f.value?"open":""]),onClick:E,onMouseenter:N},[l1(Y.$slots,"default",{},()=>[_("div",WJ,[_("div",{class:v0(["mx-icon-placeholder",e.preserveIconWidth?"preserve-width":""])},[l1(Y.$slots,"icon",{},()=>[M(y)("itemIconRender")?(B(),C1(M(w9),{key:0,vnode:()=>M(v)("itemIconRender",Q())},null,8,["vnode"])):typeof e.svgIcon=="string"&&e.svgIcon?(B(),j("svg",I1({key:1,class:"icon svg"},e.svgProps),[_("use",{"xlink:href":e.svgIcon},null,8,GJ)],16)):typeof M(d)!="string"?(B(),C1(M(w9),{key:2,vnode:M(d),data:M(d)},null,8,["vnode","data"])):typeof M(d)=="string"&&M(d)!==""?(B(),j("i",{key:3,class:v0(M(d)+" icon "+M(c)+" "+M(V).iconFontClass)},null,2)):G("",!0)]),e.checked?l1(Y.$slots,"check",{key:0},()=>[M(y)("itemCheckRender")?(B(),C1(M(w9),{key:0,vnode:()=>M(v)("itemCheckRender",Q())},null,8,["vnode"])):G("",!0),F(jJ)]):G("",!0)],2),l1(Y.$slots,"label",{},()=>[M(y)("itemLabelRender")?(B(),C1(M(w9),{key:0,vnode:()=>M(v)("itemLabelRender",Q())},null,8,["vnode"])):typeof M(u)=="string"?(B(),j("span",KJ,b1(M(u)),1)):(B(),C1(M(w9),{key:2,vnode:M(u),data:M(u)},null,8,["vnode","data"]))])]),_("div",YJ,[M(L)||Y.$slots.shortcut?l1(Y.$slots,"shortcut",{key:0},()=>[M(y)("itemShortcutRender")?(B(),C1(M(w9),{key:0,vnode:()=>M(v)("itemShortcutRender",Q())},null,8,["vnode"])):G("",!0),_("span",XJ,b1(M(L)),1)]):G("",!0),M(p)?l1(Y.$slots,"rightArrow",{key:1},()=>[M(y)("itemRightArrowRender")?(B(),C1(M(w9),{key:0,vnode:()=>M(v)("itemRightArrowRender",Q())},null,8,["vnode"])):G("",!0),F(UJ)]):G("",!0)])])],34)),l1(Y.$slots,"submenu",{context:w,show:f.value})],16))}}}),JJ=i1({name:"ContextMenuSperator",components:{VNodeRender:w9},setup(){const e=q0("globalHasSlot"),t=q0("globalRenderSlot");return{globalHasSlot:e,globalRenderSlot:t}}}),QJ={key:1,class:"mx-context-menu-item-sperator mx-context-no-clickable"};function eQ(e,t,i,r,o,n){const a=he("VNodeRender");return e.globalHasSlot("separatorRender")?(B(),C1(a,{key:0,vnode:()=>e.globalRenderSlot("separatorRender",{})},null,8,["vnode"])):(B(),j("div",QJ))}const _i=Zp(JJ,[["render",eQ]]),xp=i1({__name:"ContextSubMenu",props:{items:{type:Object,default:null},show:{type:Boolean,default:!1},destroyOnClose:{type:Boolean,default:!0},maxHeight:{type:Number,default:0},maxWidth:{type:[String,Number],default:0},minWidth:{type:[String,Number],default:0},adjustPosition:{type:Boolean,default:!0},direction:{type:String,default:"br"},parentMenuItemContext:{type:Object,default:null}},emits:["closeAnimFinished"],setup(e,{expose:t,emit:i}){const r=e,o=i,n=r1(!1),a=q0("globalGetMenuHostId",""),l=q0("menuContext"),s=q0("globalOptions");q0("globalHasSlot"),q0("globalRenderSlot");const C=r1("UnknowOrRoot"),u=q0("MenuItemName",C),{zIndex:d,getParentWidth:c,getParentHeight:p,getZoom:L}=l,{adjustPosition:m}=B8(r),f=r1(),H=r1(),h=r1(),V=[],y=q0("globalSetCurrentSubMenu"),v=[];let g=null,b=0;function x(){g&&g.blur()}function w(K,I){if(K){for(let J=I!==void 0?I:0;J<v.length;J++)if(!v[J].isDisabledOrHidden()){E(J);break}}else for(let J=I!==void 0?I:v.length-1;J>=0;J--)if(!v[J].isDisabledOrHidden()){E(J);break}}function E(K){if(g&&x(),K!==void 0&&(g=v[Math.max(0,Math.min(K,v.length-1))]),!g)return;g.focus();const I=g.getElement();I&&I.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})}function N(){y(O)}const O={el:h,name:u,isTopLevel:()=>l.getParentContext()===null,closeSelfAndActiveParent:()=>{const K=P.getParentContext();if(K){K.closeOtherSubMenu();const I=K.getSubMenuInstanceContext();if(I)return I.focusCurrentItem(),!0}return!1},closeCurrentSubMenu:()=>{var K;return(K=P.getParentContext())==null?void 0:K.closeOtherSubMenu()},moveCurrentItemFirst:()=>w(!0),moveCurrentItemLast:()=>w(!1),moveCurrentItemDown:()=>w(!0,g?v.indexOf(g)+1:0),moveCurrentItemUp:()=>w(!1,g?v.indexOf(g)-1:0),focusCurrentItem:()=>E(),openCurrentItemSubMenu:()=>g?g?.showSubMenu():!1,triggerCurrentItemClick:K=>g?.click(K)};let Q=!1,Y=!1;const P={zIndex:d+1,container:l.container,adjustPadding:s.value.adjustPadding||Z9.defaultAdjustPadding,getParentWidth:()=>{var K;return((K=h.value)==null?void 0:K.offsetWidth)||0},getParentHeight:()=>{var K;return((K=h.value)==null?void 0:K.offsetHeight)||0},getPositon:()=>[D.value.x,D.value.y],getZoom:()=>s.value.zoom||Z9.defaultZoom,addOpenedSubMenu(K){V.push(K)},closeOtherSubMenu(){V.forEach(K=>K()),V.splice(0,V.length),y(O)},checkCloseOtherSubMenuTimeOut(){return b?(clearTimeout(b),b=0,!0):!1},closeOtherSubMenuWithTimeOut(){b=setTimeout(()=>{b=0,this.closeOtherSubMenu()},200)},addChildMenuItem:(K,I)=>{I===void 0?v.push(K):v.splice(I,0,K)},removeChildMenuItem:K=>{v.splice(v.indexOf(K),1),K.getSubMenuInstance=()=>{}},markActiveMenuItem:(K,I=!1)=>{x(),g=K,I&&E()},markThisOpenedByKeyBoard:()=>{Q=!0},isOpenedByKeyBoardFlag:()=>Q?(Q=!1,!0):!1,isMenuItemDataCollectedFlag:()=>Y,getElement:()=>h.value||null,getParentContext:()=>l,getSubMenuInstanceContext:()=>O};e9("menuContext",P);const U={getChildItem:K=>v[K],getMenuDimensions:()=>H.value?{width:H.value.offsetWidth,height:H.value.offsetHeight}:{width:0,height:0},getSubmenuRoot:()=>H.value,getMenu:()=>h.value,getScrollValue:()=>{var K,I;return((I=(K=f.value)==null?void 0:K.getScrollContainer())==null?void 0:I.scrollTop)||0},setScrollValue:K=>{var I;return(I=f.value)==null?void 0:I.scrollTo(0,K)},getScrollHeight:()=>u1.value,adjustPosition:()=>{S()},getMaxHeight:()=>c1.value,getPosition:()=>D.value,setPosition:(K,I)=>{D.value.x=K,D.value.y=I}},e1=q0("menuItemInstance",void 0);e1&&(e1.getSubMenuInstance=()=>U);const u1=r1(0),c1=r1(0),f1=r1(!1),D=r1({x:0,y:0});function S(){B5(()=>{var K;const I=h.value,J=H.value;if(I&&J&&f.value){const{container:t1}=l,x1=c?.()??0,A1=p?.()??0,O1=getComputedStyle(J),s1=parseFloat(O1.paddingLeft),t2=parseFloat(O1.paddingTop),z1=A1>0?t2:0,k1=document.documentElement.scrollHeight/L(),Y1=document.documentElement.scrollWidth/L(),o0=Math.min(Y1,t1.offsetWidth),c2=Math.min(k1,t1.offsetHeight);let M2=Ti(I,t1),P2=Oi(I,t1);if(r.direction.includes("l")?D.value.x-=I.offsetWidth+s1:r.direction.includes("r")?D.value.x+=x1+s1:(D.value.x+=x1/2,D.value.x-=(I.offsetWidth+s1)/2),r.direction.includes("t")){const h0=(K=r.parentMenuItemContext)==null?void 0:K.getElement();h0&&(D.value.y+=h0.offsetHeight),D.value.y-=(I.offsetHeight+t2)/L()}else r.direction.includes("b")?D.value.y-=t2/L():D.value.y-=I.offsetHeight/2/L();B5(()=>{var h0,s2;M2=Ti(I,t1),P2=Oi(I,t1);const C4=((s2=(h0=f.value)==null?void 0:h0.getScrollContainer())==null?void 0:s2.scrollHeight)||0,e5=r.maxHeight;u1.value=r.maxHeight?Math.min(C4,r.maxHeight):C4;const Z5=M2+I.offsetWidth-o0,a7=P2+u1.value+z1*2-c2;if(f1.value=a7>0,m.value&&Z5>0){const t5=x1+I.offsetWidth-s1,u4=M2;t5>u4?D.value.x-=u4:D.value.x-=t5}if(f1.value){if(m.value){const t5=a7,u4=P2;t5>u4?D.value.y-=u4-z1:D.value.y-=t5-z1}c1.value=c2-(D.value.y+t2)}else c1.value=e5||0})}})}function z(){var K;const I=(K=r.parentMenuItemContext)==null?void 0:K.getElement();if(I){const J=Ti(I,l.container),t1=Oi(I,l.container);D.value.x=J,D.value.y=t1}else{const[J,t1]=l.getPositon();D.value.x=J,D.value.y=t1}B5(()=>{var J;y(O),(J=h.value)==null||J.focus({preventScroll:!0}),l.isOpenedByKeyBoardFlag()&&B5(()=>w(!0)),Y=!0}),S()}return D2(()=>r.show,K=>{K&&z()}),S0(()=>{n.value=!0,r.show?z():S()}),ki(()=>{n.value=!1,e1&&(e1.getSubMenuInstance=()=>{})}),t(U),(K,I)=>{const J=he("ContextSubMenu",!0);return n.value?(B(),C1(np,{key:0,to:`#${M(a)}`},[F(ul,I1({appear:""},M(s).menuTransitionProps||{duration:10},{onAfterLeave:I[0]||(I[0]=t1=>o("closeAnimFinished"))}),{default:R(()=>[!e.destroyOnClose||e.show?v4((B(),j("div",I1({key:0,ref_key:"submenuRoot",ref:H},K.$attrs,{class:["mx-context-menu",M(s).customClass?M(s).customClass:"",M(s).theme??""],style:{maxWidth:e.maxWidth?M(Sx)(e.maxWidth):`${M(Z9).defaultMaxWidth}px`,minWidth:e.minWidth?M(Sx)(e.minWidth):`${M(Z9).defaultMinWidth}px`,zIndex:M(d),left:`${D.value.x}px`,top:`${D.value.y}px`},"data-type":"ContextSubMenu",onClick:N}),[F(M(OJ),{ref_key:"scrollRectRef",ref:f,scroll:"vertical",maxHeight:c1.value,containerClass:"mx-context-menu-scroll"},{default:R(()=>[_("div",{class:v0(["mx-context-menu-items"]),ref_key:"menu",ref:h},[l1(K.$slots,"default",{},()=>[(B(!0),j(J1,null,Z2(e.items,(t1,x1)=>(B(),j(J1,{key:x1},[t1.hidden!==!0&&t1.divided==="up"?(B(),C1(_i,{key:0})):G("",!0),t1.hidden!==!0&&t1.divided==="self"?(B(),C1(_i,{key:1})):(B(),C1(wp,{key:2,clickHandler:t1.onClick?A1=>t1.onClick(A1):void 0,disabled:typeof t1.disabled=="object"?t1.disabled.value:t1.disabled,hidden:typeof t1.hidden=="object"?t1.hidden.value:t1.hidden,icon:t1.icon,iconFontClass:t1.iconFontClass,svgIcon:t1.svgIcon,svgProps:t1.svgProps,label:t1.label,customRender:t1.customRender,customClass:t1.customClass,checked:typeof t1.checked=="object"?t1.checked.value:t1.checked,shortcut:t1.shortcut,clickClose:t1.clickClose,clickableWhenHasChildren:t1.clickableWhenHasChildren,preserveIconWidth:t1.preserveIconWidth!==void 0?t1.preserveIconWidth:M(s).preserveIconWidth,showRightArrow:t1.children&&t1.children.length>0,hasChildren:t1.children&&t1.children.length>0,rawMenuItem:t1,onSubMenuOpen:A1=>{var O1;return(O1=t1.onSubMenuOpen)==null?void 0:O1.call(t1,A1)},onSubMenuClose:A1=>{var O1;return(O1=t1.onSubMenuClose)==null?void 0:O1.call(t1,A1)}},dl({_:2},[t1.children&&t1.children.length>0?{name:"submenu",fn:R(({context:A1,show:O1})=>[F(J,{show:O1,destroyOnClose:e.destroyOnClose,parentMenuItemContext:A1,items:t1.children,maxWidth:t1.maxWidth,minWidth:t1.minWidth,maxHeight:t1.maxHeight,adjustPosition:t1.adjustSubMenuPosition!==void 0?t1.adjustSubMenuPosition:M(s).adjustPosition,direction:t1.direction!==void 0?t1.direction:M(s).direction},null,8,["show","destroyOnClose","parentMenuItemContext","items","maxWidth","minWidth","maxHeight","adjustPosition","direction"])]),key:"0"}:void 0]),1032,["clickHandler","disabled","hidden","icon","iconFontClass","svgIcon","svgProps","label","customRender","customClass","checked","shortcut","clickClose","clickableWhenHasChildren","preserveIconWidth","showRightArrow","hasChildren","rawMenuItem","onSubMenuOpen","onSubMenuClose"])),t1.hidden!==!0&&(t1.divided==="down"||t1.divided===!0)?(B(),C1(_i,{key:3})):G("",!0)],64))),128))])],512)]),_:3},8,["maxHeight"])],16)),[[N4,e.show]]):G("",!0)]),_:3},16)],8,["to"])):G("",!0)}}}),_x=i1({__name:"ContextSubMenuWrapper",props:{options:{type:Object,default:null},show:{type:null,default:null},destroyOnClose:{type:Boolean,default:!0},container:{type:Object,default:null},isFullScreenContainer:{type:Boolean,default:!0}},emits:["close","closeAnimFinished"],setup(e,{expose:t,emit:i}){const r=e,o=i,n=x8(),a=r1(),{options:l,show:s,destroyOnClose:C,container:u}=B8(r);S0(()=>{s.value&&p()}),ki(()=>{H()}),D2(s,b=>{b?p():(Bx(d),H())});const d={closeMenu:L,isClosed:m,getMenuRef:()=>a.value,getMenuDimensions:()=>{var b;return((b=a.value)==null?void 0:b.getMenuDimensions())??{width:0,height:0}}};let c=!1;function p(){f(),gJ(d)}function L(b){c=!0,o("close",b),l.value.menuTransitionProps||o("closeAnimFinished"),Bx(d)}function m(){return c}function f(){setTimeout(()=>{document.addEventListener("click",v,!0),document.addEventListener("contextmenu",v,!0),document.addEventListener("scroll",y,!0),!r.isFullScreenContainer&&u.value&&u.value.addEventListener("scroll",y,!0),l.value.keyboardControl!==!1&&document.addEventListener("keydown",V,!0)},50)}function H(){document.removeEventListener("contextmenu",v,!0),document.removeEventListener("click",v,!0),document.removeEventListener("scroll",y,!0),!r.isFullScreenContainer&&u.value&&u.value.removeEventListener("scroll",y,!0),l.value.keyboardControl!==!1&&document.removeEventListener("keydown",V,!0)}const h=r1();e9("globalSetCurrentSubMenu",b=>h.value=b),e9("globalGetMenuHostId",u.value.id);function V(b){var x,w,E,N,O,Q,Y,P,U,e1,u1,c1,f1;let D=!0;switch(b.key){case"Escape":{((x=h.value)==null?void 0:x.isTopLevel())===!1?(w=h.value)==null||w.closeCurrentSubMenu():L();break}case"ArrowDown":(E=h.value)==null||E.moveCurrentItemDown();break;case"ArrowUp":(N=h.value)==null||N.moveCurrentItemUp();break;case"Home":(O=h.value)==null||O.moveCurrentItemFirst();break;case"End":(Q=h.value)==null||Q.moveCurrentItemLast();break;case"ArrowLeft":{(Y=h.value)!=null&&Y.closeSelfAndActiveParent()||(U=(P=l.value).onKeyFocusMoveLeft)==null||U.call(P);break}case"ArrowRight":(e1=h.value)!=null&&e1.openCurrentItemSubMenu()||(c1=(u1=l.value).onKeyFocusMoveRight)==null||c1.call(u1);break;case"Enter":(f1=h.value)==null||f1.triggerCurrentItemClick(b);break;default:D=!1;break}D&&h.value&&(b.stopPropagation(),b.preventDefault())}function y(b){l.value.closeWhenScroll!==!1&&g(b.target,null)}function v(b){g(b.target,b)}function g(b,x){for(var w,E;b;){if(b.classList&&b.classList.contains("mx-context-menu"))return;b=b.parentNode}x?l.value.clickCloseOnOutside!==!1?(H(),L()):(E=(w=l.value).onClickOnOutside)==null||E.call(w,x):(H(),L())}return e9("globalOptions",l),e9("globalCloseMenu",L),e9("globalIsFullScreenContainer",r.isFullScreenContainer),e9("globalHasSlot",b=>n[b]!==void 0),e9("globalRenderSlot",(b,x)=>l1(n,b,{...x},()=>[r5("span","Render slot failed")],!1)),e9("menuContext",{zIndex:l.value.zIndex||Z9.defaultZindex,container:u.value,adjustPadding:{x:0,y:0},getZoom:()=>l.value.zoom||Z9.defaultZoom,getParentWidth:()=>0,getParentHeight:()=>0,getPositon:()=>[l.value.x,l.value.y],closeOtherSubMenuWithTimeOut:()=>{},checkCloseOtherSubMenuTimeOut:()=>!1,addOpenedSubMenu:()=>{},closeOtherSubMenu:()=>{},getParentContext:()=>null,getSubMenuInstanceContext:()=>null,getElement:()=>null,addChildMenuItem:()=>{},removeChildMenuItem:()=>{},markActiveMenuItem:()=>{},markThisOpenedByKeyBoard:()=>{},isOpenedByKeyBoardFlag:()=>!1,isMenuItemDataCollectedFlag:()=>!1}),t(d),(b,x)=>(B(),C1(xp,{ref_key:"submenuInstance",ref:a,show:M(s),destroyOnClose:M(C),items:M(l).items,adjustPosition:M(l).adjustPosition,maxWidth:M(l).maxWidth||M(Z9).defaultMaxWidth,minWidth:M(l).minWidth||M(Z9).defaultMinWidth,maxHeight:M(l).maxHeight,direction:M(l).direction||M(Z9).defaultDirection,onCloseAnimFinished:x[0]||(x[0]=w=>o("closeAnimFinished"))},{default:R(()=>[l1(b.$slots,"default")]),_:3},8,["show","destroyOnClose","items","adjustPosition","maxWidth","minWidth","maxHeight","direction"]))}}),tQ=i1({__name:"ContextMenu",props:{options:{type:Object,default:null},show:{type:Boolean,default:!1},destroyOnClose:{type:Boolean,default:!0}},emits:["update:show","close"],setup(e,{expose:t,emit:i}){const r=i,o=e,{options:n,show:a,destroyOnClose:l}=B8(o),{isNew:s,container:C,eleId:u}=kx(n.value),d=r1(null),c=x8();function p(L){var m,f;r("update:show",!1),r("close"),(f=(m=n.value).onClose)==null||f.call(m,L)}return t({closeMenu:()=>r("update:show",!1),isClosed:()=>!a.value,getMenuRef:()=>{var L;return(L=d.value)==null?void 0:L.getMenuRef()},getMenuDimensions:()=>{var L;return((L=d.value)==null?void 0:L.getMenuDimensions())??{width:0,height:0}}}),(L,m)=>(B(),C1(np,{to:`#${M(u)}`},[F(_x,{ref_key:"menuRef",ref:d,options:M(n),show:M(a),destroyOnClose:M(l),container:M(C),isFullScreenContainer:!M(s),onClose:p},dl({_:2},[Z2(M(c),(f,H)=>({name:H,fn:R(h=>[l1(L.$slots,H,cl(pl(h)))])}))]),1032,["options","show","destroyOnClose","container","isFullScreenContainer"])],8,["to"]))}}),iQ=i1({name:"ContextMenuGroup",props:{disabled:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},clickHandler:{type:Function,default:null},label:{type:String,default:""},icon:{type:String,default:""},iconFontClass:{type:String,default:"iconfont"},checked:{type:Boolean,default:!1},shortcut:{type:String,default:""},svgIcon:{type:String,default:""},svgProps:{type:Object,default:null},preserveIconWidth:{type:Boolean,default:!0},showRightArrow:{type:Boolean,default:!1},clickClose:{type:Boolean,default:!0},adjustSubMenuPosition:{type:Boolean,default:void 0},maxHeight:{type:[String,Number],default:0},maxWidth:{type:[String,Number],default:0},minWidth:{type:[String,Number],default:0}},setup(e,t){const i=q0("globalOptions"),{adjustSubMenuPosition:r,maxWidth:o,minWidth:n,maxHeight:a}=B8(e),l=typeof r.value<"u"?r.value:i.value.adjustPosition,s=r1(),C=r1();return t.expose({getSubMenuRef:()=>s.value,getMenuItemRef:()=>C.value}),()=>r5(wp,{...e,ref:C,showRightArrow:!0,maxWidth:void 0,minWidth:void 0,maxHeight:void 0,adjustSubMenuPosition:void 0,hasChildren:typeof t.slots.default!==void 0},t.slots.default?{submenu:u=>r5(xp,{ref:s,show:u.show,maxWidth:o.value,minWidth:n.value,maxHeight:a.value,adjustPosition:l,parentMenuItemContext:u.context},{default:t.slots.default}),...BJ(t.slots,"default")}:t.slots)}});function rQ(e,t,i,r){const o=r1(!0),n=r5(_x,{options:e,show:o,container:t,isFullScreenContainer:!i,onCloseAnimFinished:()=>{p7(null,t)},onClose:a=>{var l;(l=e.onClose)==null||l.call(e,a),o.value=!1}},r);return p7(n,t),n.component}function Px(e,t){const i=kx(e);return rQ(e,i.container,i.isNew,t).exposed}const Ix={install(e){e.config.globalProperties.$contextmenu=Px,e.component("ContextMenu",tQ),e.component("ContextMenuItem",wp),e.component("ContextMenuGroup",iQ),e.component("ContextMenuSperator",_i),e.component("ContextMenuSeparator",_i),e.component("ContextSubMenu",xp)},showContextMenu(e,t){return Px(e,t)},isAnyContextMenuOpen(){return bJ()},closeContextMenu:Ex,transformMenuPosition:MJ},oQ={class:"me-nav"},nQ=["onContextmenu"],aQ=i1({name:"me-nav"});var lQ=i1({...aQ,props:E2({tabList:{type:Array,required:!0,default:()=>[]},menuHandle:{type:Function,required:!1,default:()=>null},tabProps:{type:Object,required:!1,default:()=>({key:"path",name:"path",label:"title"})}},{modelValue:{type:[String,Number]},modelModifiers:{}}),emits:E2(["changeTabEmit","removeTabEmit"],["update:modelValue"]),setup(e,{emit:t}){const i=e,r=t,o=W2(e,"modelValue"),n=r1(""),a=o.value?o:n.value,l=(u,d,c)=>{u.preventDefault();const p=i.menuHandle(d,c)||[];d.isHome||p.splice(0,0,{label:d.lock?"\u89E3\u9501":"\u9501\u5B9A",icon:r5(E1,{name:d.lock?"ri-lock-unlock-line":"ri-lock-line"}),divided:!0,onClick:()=>{d.lock=!d.lock}}),Ix.showContextMenu({theme:"default",x:u.x,y:u.y,items:p})},s=u=>{r("removeTabEmit",u.toString())},C=u=>{r("changeTabEmit",u)};return(u,d)=>(B(),j("div",oQ,[F(M($w),{modelValue:M(a),"onUpdate:modelValue":d[0]||(d[0]=c=>hl(a)?a.value=c:null),type:"card",class:"me-tabs",onTabChange:C,onTabRemove:s},{default:R(()=>[(B(!0),j(J1,null,Z2(e.tabList,(c,p)=>(B(),C1(M(Rw),I1({key:c[e.tabProps.key],label:c[e.tabProps.label],name:c[e.tabProps.name],closable:!c.isHome&&!c.lock,style:{"vertical-align":"middle"}},{ref_for:!0},u.$attrs),{label:R(()=>[_("div",{class:"tabs-item-label",onContextmenu:L=>l(L,c,p)},[c.icon?(B(),C1(M(E1),{key:0,style:{"margin-right":"3px"},name:c.icon},null,8,["name"])):G("v-if",!0),_("span",null,b1(c.title),1),c.lock?(B(),C1(M(E1),{key:1,size:12,style:{"padding-left":"3px"},name:"ri-lock-line"})):G("v-if",!0)],40,nQ)]),_:2},1040,["label","name","closable"]))),128))]),_:1},8,["modelValue"])]))}});const jx=_1(lQ);function Nx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gl={exports:{}},sQ=gl.exports,$x;function CQ(){return $x||($x=1,(function(e,t){(function(i,r){e.exports=r()})(sQ,(function(){var i="day";return function(r,o,n){var a=function(C){return C.add(4-C.isoWeekday(),i)},l=o.prototype;l.isoWeekYear=function(){return a(this).year()},l.isoWeek=function(C){if(!this.$utils().u(C))return this.add(7*(C-this.isoWeek()),i);var u,d,c,p,L=a(this),m=(u=this.isoWeekYear(),d=this.$u,c=(d?n.utc:n)().year(u).startOf("year"),p=4-c.isoWeekday(),c.isoWeekday()>4&&(p+=7),c.add(p,i));return L.diff(m,"week")+1},l.isoWeekday=function(C){return this.$utils().u(C)?this.day()||7:this.day(this.day()%7?C:C-7)};var s=l.startOf;l.startOf=function(C,u){var d=this.$utils(),c=!!d.u(u)||u;return d.p(C)==="isoweek"?c?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):s.bind(this)(C,u)}}}))})(gl)),gl.exports}var uQ=CQ(),dQ=Nx(uQ);const cQ={class:"week-day-list"},pQ={class:"list"},hQ=["onClick"],fQ={class:"week-name"},mQ={class:"day"};var LQ=i1({__name:"week-day-list",props:{modelValue:{type:String,required:!0,default:""},prevWeekLabel:{type:String,required:!1,default:"\u4E0A\u4E00\u5468"},nextWeekLabel:{type:String,required:!1,default:"\u4E0B\u4E00\u5468"},weekLabels:{type:Array,required:!1,default:()=>["\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D","\u5468\u65E5"]}},emits:["update:modelValue","change"],setup(e,{emit:t}){o5.extend(dQ);const i=t,r=e,o=r1(3),n=r1(0),a=r1([]),l=p1(()=>a.value[o.value]?.day);function s(){const c=r.weekLabels,p=o5().startOf("isoWeek").add(n.value,"week"),L=c?.map((m,f)=>({label:m,day:p.add(f,"day").format("YYYY-MM-DD")}));if(console.log(p.format("YYYY-MM-DD"),L),!a.value.length){const m=o5().format("YYYY-MM-DD"),f=L.findIndex(H=>H.day===m);o.value=f||0}a.value=L}function C(c,p=!0){const L=o5(c);if(!L.isValid())throw new Error("\u4F20\u5165\u7684\u65E5\u671F\u683C\u5F0F\u65E0\u6548\uFF0C\u8BF7\u4F7F\u7528 YYYY-MM-DD \u683C\u5F0F");let m;p?m=L.day()===0?L.subtract(6,"day"):L.subtract(L.day()-1,"day"):m=L.subtract(L.day(),"day");const f=[];for(let H=0;H<7;H++){const h=m.add(H,"day");f.push(h.format("YYYY-MM-DD"))}return f}const u=()=>{n.value--,s()},d=()=>{n.value++,s()};return D2(()=>r.modelValue,c=>{const p=C(c);a.value=p?.map((m,f)=>({label:r.weekLabels[f],day:m}));const L=a.value.findIndex(m=>m.day==c);o.value=L||0}),D2(l,c=>{i("update:modelValue",c),i("change",c)}),TG(()=>{s()}),(c,p)=>(B(),j("div",cQ,[F(M(n5),{onClick:u},{default:R(()=>[F(M(E1),{name:"ri-arrow-left-s-fill"}),P1(" "+b1(e.prevWeekLabel),1)]),_:1}),_("div",pQ,[(B(!0),j(J1,null,Z2(a.value,(L,m)=>(B(),j("div",{key:m,class:v0(["item",{active:m===o.value}]),onClick:f=>o.value=m},[_("div",fQ,b1(L.label),1),_("div",mQ,b1(M(o5)(L.day).format("MM-DD")),1)],10,hQ))),128))]),F(M(n5),{onClick:d},{default:R(()=>[P1(b1(e.nextWeekLabel)+" ",1),F(M(E1),{name:"ri-arrow-right-s-fill"})]),_:1})]))}});const HQ={class:"me-week-calendar"},VQ={class:"first-td"},yQ={colspan:"2"},vQ={key:0},bQ={colspan:"3"},gQ={key:0,style:{"margin-top":"10px"}},MQ=i1({name:"me-week-calendar"});var ZQ=i1({...MQ,props:E2({data:{type:Array,required:!1,default:()=>[]},loading:{type:Boolean,required:!1,default:!1},rowHeaderLabel:{type:String,required:!1,default:"\u65F6\u95F4"},colHeaderLabel:{type:String,required:!1,default:"\u5458\u5DE5"},prevWeekLabel:{type:String,required:!1},nextWeekLabel:{type:String,required:!1},weekLabels:{type:Array,required:!1}},{modelValue:{type:null},modelModifiers:{}}),emits:E2(["change"],["update:modelValue"]),setup(e,{emit:t}){const i=e,r=W2(e,"modelValue"),o=t,n=()=>{o("change",r.value)};return(a,l)=>{const s=Fw("loading");return B(),j("table",HQ,[l[2]||(l[2]=_("colgroup",null,[_("col",{style:{width:"170px"}}),_("col"),_("col",{style:{width:"100px"}})],-1)),_("thead",null,[_("tr",null,[_("td",VQ,[l[1]||(l[1]=_("svg",{class:"thead-svg",height:"100%",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[_("line",{stroke:"var(--border-color)","stroke-width":"1",x1:"0",x2:"100%",y1:"0",y2:"100%"})],-1)),_("span",null,[l1(a.$slots,"colHeader",{},()=>[P1(b1(e.colHeaderLabel),1)])]),_("span",null,[l1(a.$slots,"rowHeader",{},()=>[P1(b1(e.rowHeaderLabel),1)])])]),_("td",yQ,[F(LQ,I1(a.$attrs,{modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=C=>r.value=C),onChange:n}),null,16,["modelValue"])])])]),v4((B(),j("tbody",null,[i.data.length?(B(!0),j(J1,{key:1},Z2(i.data,(C,u)=>(B(),j("tr",{key:C.id},[l1(a.$slots,"row",{row:C,index:u})]))),128)):(B(),j("tr",vQ,[_("td",bQ,[F(M(zG))])]))])),[[s,i.loading]]),a.$slots.footer?(B(),j("div",gQ,[l1(a.$slots,"footer")])):G("v-if",!0)])}}}),wQ=(e,t)=>{const i=e.__vccOpts||e;for(const[r,o]of t)i[r]=o;return i};const xQ={};function BQ(e,t){return B(),j("td",null,[l1(e.$slots,"default")])}var EQ=wQ(xQ,[["render",BQ]]);const Rx=_1(ZQ),zx=_1(EQ);function kQ(e){return{name:"element-tree-line",props:{node:{type:Object,required:!0},data:{type:Object},treeData:{type:Array},indent:{type:Number,default(){return 16}},showLabelLine:{type:Boolean,default:!0}},render(t){const i=e||t,r=this.getScopedSlot("default"),o=this.getScopedSlot("node-label"),n=this.getScopedSlot("after-node-label"),a=r?this.getScopedSlotValue(r,{node:this.node,data:this.data}):[o?this.getScopedSlotValue(o,{node:this.node,data:this.data}):i("span",{class:"element-tree-node-label"},this.node.label),this.showLabelLine?i("span",{class:"element-tree-node-label-line"}):null,this.getScopedSlotValue(n,{node:this.node,data:this.data})],l=[];let s=this.node;for(;s;){let u=s.parent;if(s.level===1&&!s.parent){if(!this.treeData||!Array.isArray(this.treeData))throw Error("if you using el-tree-v2 (Virtualized Tree) of element-plus,element-tree-line required data.");u={children:Array.isArray(this.treeData)?this.treeData.map(d=>({...d,key:d.id})):[],level:0,key:"node-0",parent:null}}if(u){const d=(u.children||u.childNodes).findIndex(c=>(c.key||c.id)===(s.key||s.id));l.unshift(d===(u.children||u.childNodes).length-1)}s=u}const C=[];for(let u=0;u<this.node.level;u++)l[u]&&this.node.level-1!==u||C.push(i("span",{class:{"element-tree-node-line-ver":!0,"last-node-isLeaf-line":l[u]&&this.node.level-1===u},style:{left:this.indent*u+"px"}}));return i("span",{class:"element-tree-node-label-wrapper"},[a].concat(C).concat([i("span",{class:"element-tree-node-line-hor",style:{width:(this.node.isLeaf?24:8)+"px",left:(this.node.level-1)*this.indent+"px"}})]))},methods:{getScopedSlot(t){if(!t)return null;const i=t.split("||");let r=null;for(let o=0;o<i.length;o++){const n=i[o],a=(this.$slots||{})[n];if(a){r=a;break}if(r=(this.$scopedSlots||{})[n],r)break}return r},getScopedSlotValue(t,i,r=null){return typeof t=="function"?t(i)||r:t||r}}}}function Bp(e){const t=kQ(e);return e&&(t.methods.getScopedSlot=function(r){if(!r)return null;const o=r.split("||");let n=null;for(let a=0;a<o.length;a++){const l=o[a],s=(this.$slots||{})[l];if(s){n=s;break}}return n}),t}Bp();const SQ={class:"title flex-center"};var DQ=i1({__name:"tree-menu-card",props:{title:{type:String,default:""},icon:{type:String,default:""}},setup(e){return(t,i)=>(B(),C1(M(qG),I1({class:"me-tree-menu-card"},t.$attrs,{shadow:"never"}),{header:R(()=>[_("span",SQ,[e.icon?(B(),C1(M(E1),{key:0,name:e.icon,prefix:"",style:{"margin-right":"5px"}},null,8,["name"])):G("v-if",!0),P1(" "+b1(e.title),1)]),_("div",null,[l1(t.$slots,"header-right")])]),default:R(()=>[l1(t.$slots,"default")]),_:3},16))}});const AQ={class:"me-icon-selector"},OQ={style:{display:"flex","align-items":"center"}},TQ={class:"me-icon-selector__list"},FQ=["onClick"],_Q=i1({name:"me-icon-selector"});var PQ=i1({..._Q,props:E2({iconfontData:{type:Array,required:!1,default:()=>[]},localData:{type:Array,required:!1,default:()=>[]}},{modelValue:{type:String,default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,i=new XMLHttpRequest;i.open("GET",ix,!1),i.send();var r=new DOMParser,o=r.parseFromString(i.responseText,"text/html");const n=o.querySelectorAll('[id^="ri-"]'),a=Array.from(n).map(f=>f.getAttribute("id")),l=r1("remix"),s=r1(),C=W2(e,"modelValue"),u={remix:{label:"remix",data:a},iconfont:{label:"iconfont",data:t.iconfontData},local:{label:"\u672C\u5730\u56FE\u6807",data:t.localData}},d=r1(""),c=r1({pageIndex:1,pageSize:30}),p=p1(()=>u[l.value].data.filter(f=>f.indexOf(d.value)!==-1)),L=p1(()=>{const{pageIndex:f,pageSize:H}=c.value;return p.value.slice((f-1)*H,f*H)}),m=f=>{C.value=f,s.value.hide()};return(f,H)=>(B(),j("div",AQ,[F(M(D0),{modelValue:C.value,"onUpdate:modelValue":H[3]||(H[3]=h=>C.value=h),clearable:"",placeholder:"\u9009\u62E9\u56FE\u6807"},{prepend:R(()=>[F(M(E1),{name:C.value},null,8,["name"])]),append:R(()=>[F(M(Ll),{ref_key:"popoverRef",ref:s,"hide-after":0,"popper-class":"icon-selector-popper",trigger:"click",width:280},{reference:R(()=>[l1(f.$slots,"default",{},()=>[F(M(n5),null,{default:R(()=>[...H[4]||(H[4]=[P1(" \u9009\u62E9 ",-1)])]),_:1})])]),default:R(()=>[_("div",OQ,[F(M(D0),{modelValue:d.value,"onUpdate:modelValue":H[0]||(H[0]=h=>d.value=h),clearable:"",placeholder:"\u641C\u7D22\u56FE\u6807"},null,8,["modelValue"])]),F(M($w),{modelValue:l.value,"onUpdate:modelValue":H[1]||(H[1]=h=>l.value=h),class:"demo-tabs"},{default:R(()=>[(B(),j(J1,null,Z2(u,(h,V)=>F(M(Rw),{key:V,label:h.label,name:V},null,8,["label","name"])),64))]),_:1},8,["modelValue"]),_("div",TQ,[(B(!0),j(J1,null,Z2(L.value,(h,V)=>(B(),j("div",{key:V,class:"icon-item flex-center",onClick:y=>m(h)},[F(M(E1),{name:h},null,8,["name"])],8,FQ))),128))]),l.value==="remix"?(B(),C1(M(UG),{key:0,href:"https://www.remixicon.cn/",target:"_blank",type:"primary"},{default:R(()=>[...H[5]||(H[5]=[P1("https://www.remixicon.cn",-1)])]),_:1})):G("v-if",!0),F(M(zw),{background:"","current-page":c.value.pageIndex,layout:"total, prev, next","page-size":c.value.pageSize,total:u[l.value].data.length,onCurrentChange:H[2]||(H[2]=h=>c.value.pageIndex=h)},null,8,["current-page","page-size","total"])]),_:3},512)]),_:3},8,["modelValue"])]))}});const Ep=_1(PQ);var IQ=Object.defineProperty,Ml=Object.getOwnPropertySymbols,qx=Object.prototype.hasOwnProperty,Ux=Object.prototype.propertyIsEnumerable,Wx=(e,t,i)=>t in e?IQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,ye=(e,t)=>{for(var i in t||(t={}))qx.call(t,i)&&Wx(e,i,t[i]);if(Ml)for(var i of Ml(t))Ux.call(t,i)&&Wx(e,i,t[i]);return e},Gx=(e,t)=>{var i={};for(var r in e)qx.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(e!=null&&Ml)for(var r of Ml(e))t.indexOf(r)<0&&Ux.call(e,r)&&(i[r]=e[r]);return i};const Kx="[vue-draggable-plus]: ";function jQ(e){console.warn(Kx+e)}function NQ(e){console.error(Kx+e)}function Yx(e,t,i){return i>=0&&i<e.length&&e.splice(i,0,e.splice(t,1)[0]),e}function $Q(e){return e.replace(/-(\w)/g,(t,i)=>i?i.toUpperCase():"")}function RQ(e){return Object.keys(e).reduce((t,i)=>(typeof e[i]<"u"&&(t[$Q(i)]=e[i]),t),{})}function Xx(e,t){return Array.isArray(e)&&e.splice(t,1),e}function Jx(e,t,i){return Array.isArray(e)&&e.splice(t,0,i),e}function zQ(e){return typeof e>"u"}function qQ(e){return typeof e=="string"}function Qx(e,t,i){const r=e.children[i];e.insertBefore(t,r)}function kp(e){e.parentNode&&e.parentNode.removeChild(e)}function UQ(e,t=document){var i;let r=null;return typeof t?.querySelector=="function"?r=(i=t?.querySelector)==null?void 0:i.call(t,e):r=document.querySelector(e),r||jQ(`Element not found: ${e}`),r}function WQ(e,t,i=null){return function(...r){return e.apply(i,r),t.apply(i,r)}}function GQ(e,t){const i=ye({},e);return Object.keys(t).forEach(r=>{i[r]?i[r]=WQ(e[r],t[r]):i[r]=t[r]}),i}function KQ(e){return e instanceof HTMLElement}function eB(e,t){Object.keys(e).forEach(i=>{t(i,e[i])})}function YQ(e){return e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97)}const XQ=Object.assign;/**!
19
+ */function Hp(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}function eX(e,t,i){const r=e.value;if(!r){process.env.NODE_ENV!=="production"&&Hp("No active route record was found when calling `onBeforeRouteLeave()`. Make sure you call this function inside a component child of <router-view>. Maybe you called it inside of App.vue?");return}let o=r;const n=()=>{o[t].delete(i)};sl(n),Tw(n),Ow(()=>{const a=e.value;process.env.NODE_ENV!=="production"&&!a&&Hp("No active route record was found when reactivating component with navigation guard. This is likely a bug in vue-router. Please report it."),a&&(o=a),o[t].add(i)}),o[t].add(i)}function tX(e){if(process.env.NODE_ENV!=="production"&&!Y7()){Hp("getCurrentInstance() returned null. onBeforeRouteLeave() must be called at the top of a setup function");return}eX(q0(YY,{}),"leaveGuards",e)}const iX={style:{"font-size":"18px","font-weight":"700"}},rX={style:{width:"auto"}},oX={key:0,style:{display:"flex","justify-content":"flex-end",width:"100%","align-items":"center"}},nX={key:0,style:{"margin-right":"10px"}},aX=i1({name:"me-dialog"});var lX=i1({...aX,props:E2({showFullscreen:{type:Boolean,required:!1},showClose:{type:Boolean,required:!1,default:!0},showCancelButton:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:"\u6807\u9898"},line:{type:String,required:!1,default:""},confirmHandler:{type:Function,required:!1},cancelHandler:{type:Function,required:!1},closeHandler:{type:Function,required:!1},isScroll:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1}},{modelValue:{default:!1},modelModifiers:{}}),emits:E2(["closeEvent","fullScreenChangeEvent"],["update:modelValue"]),setup(e,{emit:t}){const i=e,r=t,o=W2(e,"modelValue"),n=p1(()=>C.value?"100%":"90%"),a=QY();let l=a?.fullPath,s=!1;tX((H,h)=>{console.log("\u{1F680} ~ onBeforeRouteLeave:",h),l=h?.fullPath,s=o.value,o.value=!1}),D2(()=>a?.fullPath,H=>{console.log("\u{1F680} ~ path:",l),l===H&&s&&(o.value=!0)});let C=r1(!1),u=r1("ri-fullscreen-line"),d=p1(()=>i.line==""||i.line=="none"?"0px":"10px");D2(o,async H=>{H||(C.value=!1,u.value="ri-fullscreen-line")});const c=()=>{o.value=!1,r("closeEvent")},p=()=>{i.closeHandler?mp(i.closeHandler,H=>{H&&c()}):c()},L=()=>{i.cancelHandler?mp(i.cancelHandler,H=>{H&&c()}):c()},m=()=>{i.confirmHandler?mp(i.confirmHandler,H=>{H&&c()}):c()},f=()=>{C.value=!C.value,u.value=C.value?"ri-fullscreen-exit-line":"ri-fullscreen-line",r("fullScreenChangeEvent",C.value)};return(H,h)=>{const V=he("me-flex-box");return B(),C1(M(jw),I1({ref:"dialogRef",modelValue:o.value,"onUpdate:modelValue":h[0]||(h[0]=y=>o.value=y),class:"me-dialog","append-to-body":"","show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1,"destroy-on-close":!0,fullscreen:M(C),"align-center":""},H.$attrs,{style:[{"border-radius":"8px"},{maxHeight:n.value}],"modal-class":"me-dialog-modal"}),{header:R(({close:y,titleId:v,titleClass:g})=>[_("div",{class:"me-dialog-header",style:w1({borderBottom:e.line,paddingBottom:M(d)})},[l1(H.$slots,"me-dialog-header",{},()=>[_("span",iX,[l1(H.$slots,"title",{},()=>[P1(b1(i.title),1)])])]),_("div",rX,[i.showFullscreen?(B(),C1(M(Q7),{key:0,hover:"",icon:M(u),style:{cursor:"pointer","font-size":"20px",color:"var(--el-text-color-primary)"},onClick:f},null,8,["icon"])):G("v-if",!0),i.showClose?(B(),C1(M(Q7),{key:1,hover:"",icon:"ri-close-line","icon-size":20,style:{cursor:"pointer","font-size":"20px",color:"var(--el-text-color-primary)"},onClick:p})):G("v-if",!0)])],4)]),footer:R(()=>[_("div",{class:"me-dialog-footer",style:w1([{},{borderTop:e.line,paddingTop:M(d)}])},[H.$slots["me-dialog-footer-right"]?(B(),j("div",oX,[l1(H.$slots,"me-dialog-footer-right")])):G("v-if",!0),H.$slots["me-dialog-footer-right"]?G("v-if",!0):l1(H.$slots,"me-dialog-footer",{key:1},()=>[F(V,{end:!0},{default:R(()=>[H.$props.showCancelButton?(B(),j("div",nX,[F(M(n5),{onClick:L},{default:R(()=>[...h[1]||(h[1]=[P1("\u53D6\u6D88",-1)])]),_:1})])):G("v-if",!0),_("div",null,[F(M(n5),{type:"primary",onClick:m},{default:R(()=>[...h[2]||(h[2]=[P1("\u786E\u5B9A",-1)])]),_:1})])]),_:1})])],4)]),default:R(()=>[e.loading?(B(),C1(M(Lp),{key:0,style:{width:"100%",height:"100%"},show:e.loading},null,8,["show"])):G("v-if",!0),_("div",{style:w1([{flex:"1"},e.isScroll?{overflow:"auto"}:{overflow:"hidden"}]),class:"me-div-scroller"},[l1(H.$slots,"default")],4)]),_:3},16,["modelValue","fullscreen","style"])}}});const Ai=_1(lX),sX=i1({name:"me-label"});var CX=i1({...sX,props:{title:{type:String,required:!1,default:""},desc:{type:String,required:!1,default:""},radio:{type:Boolean,required:!1,default:!1},width:{type:String,required:!1,default:"150px"},top:{type:Boolean,required:!1,default:!1},gap:{type:String,required:!1,default:"30px"},size:{type:String,required:!1,default:"normal"},disabled:{type:Boolean,required:!1,default:!1}},setup(e){const t=e,i=p1(()=>({"--me-label-padding":t.size=="small"?"4px":"10px","--el-radio-input-display":t.radio?"flex":"none","--is-checked-display":t.radio?"none":"flex","--is-checked-before-width":t.size=="small"?"10px":"14px","--is-checked-before-height":t.size=="small"?"4px":"6px","--is-checked-before-top":t.top?"0":"auto","--is-checked-before-bottom":t.size=="small"?"5px":"7px","--is-checked-before-right":t.size=="small"?"0":"2px","--is-checked-border-bottom":o.value,"--is-checked-border-top":n.value,"--is-checked-border-width":r.value,"margin-right":t.gap})),r=p1(()=>t.size=="small"?"20px":"30px"),o=p1(()=>t.disabled?t.top?"0":`${r.value} solid var(--el-disabled-border-color)`:t.top?"0":`${r.value} solid #206bc4`),n=p1(()=>t.disabled?t.top?`${r.value} solid var(--el-disabled-border-color)`:"0":t.top?`${r.value} solid #206bc4`:"0"),a=p1(()=>{if(t.disabled)return{backgroundColor:"var(--el-disabled-bg-color)",color:"var(--el-disabled-text-color)",borderColor:"var(--el-disabled-border-color)",boxShadow:"none"}});return(l,s)=>(B(),C1(M(ap),I1(l.$attrs,{class:"me-label",style:{width:e.width,...a.value,...i.value}}),{default:R(()=>[_("div",{class:"text-primary",style:w1({...a.value})},b1(e.title),5),_("div",{class:"text-secondary",style:w1({...a.value})},b1(e.desc),5)]),_:1},16,["style"]))}});const Hx=_1(CX),uX=i1({name:"me-form-radio"});var dX=i1({...uX,props:{title:{type:String,required:!0,default:""},desc:{type:String,required:!0,default:""},radio:{type:Boolean,required:!0,default:!1},width:{type:String,required:!0,default:"150px"},top:{type:Boolean,required:!0,default:!1},gap:{type:String,required:!0,default:"30px"},size:{type:String,required:!1,default:"normal"},disabled:{type:Boolean,required:!1,default:!1}},setup(e){const t=e,i=p1(()=>({"--me-form-radio-padding":t.size=="small"?"4px":"10px","--el-radio-input-display":t.radio?"flex":"none","--is-checked-display":t.radio?"none":"flex","--is-checked-before-width":t.size=="small"?"10px":"14px","--is-checked-before-height":t.size=="small"?"4px":"6px","--is-checked-before-top":t.top?"0":"auto","--is-checked-before-bottom":t.size=="small"?"5px":"7px","--is-checked-before-right":t.size=="small"?"0":"2px","--is-checked-border-bottom":o.value,"--is-checked-border-top":n.value,"--is-checked-border-width":r.value,"margin-right":t.gap})),r=p1(()=>t.size=="small"?"20px":"30px"),o=p1(()=>t.disabled?t.top?"0":`${r.value} solid var(--el-disabled-border-color)`:t.top?"0":`${r.value} solid #206bc4`),n=p1(()=>t.disabled?t.top?`${r.value} solid var(--el-disabled-border-color)`:"0":t.top?`${r.value} solid #206bc4`:"0"),a=p1(()=>{if(t.disabled)return{backgroundColor:"var(--el-disabled-bg-color)",color:"var(--el-disabled-text-color)",borderColor:"var(--el-disabled-border-color)",boxShadow:"none"}});return(l,s)=>(B(),C1(M(ap),I1(l.$attrs,{class:"me-form-radio",style:{width:e.width,...a.value,...i.value}}),{default:R(()=>[_("div",{class:"text-primary",style:w1({...a.value})},b1(e.title),5),_("div",{class:"text-secondary",style:w1({...a.value})},b1(e.desc),5)]),_:1},16,["style"]))}});const Vx=_1(dX),cX={class:"me-page-result"},pX={class:"container"},hX={class:"empty"},fX={class:"empty-header"},mX=["src"],LX={class:"empty-title"},HX={class:"empty-subtitle"},VX={class:"empty-action"},yX=i1({name:"me-page-result"});var vX=i1({...yX,props:{title:{type:String,required:!1,default:"\u9519\u8BEF\u64CD\u4F5C"},desc:{type:String,required:!1,default:"We are sorry but our server encountered an internal error"},btnText:{type:String,required:!1,default:"\u8FD4\u56DE\u4E0A\u4E00\u9875"},btnClickHandler:{type:Function,required:!1},img:{type:String,required:!1,default:""}},setup(e){const t=e,i=Lx(),r=()=>{i&&i.back()},o=()=>{t.btnClickHandler?t.btnClickHandler():r()};return(n,a)=>(B(),j("div",cX,[_("div",pX,[_("div",hX,[_("div",fX,[_("img",{alt:"",style:{height:"36px"},src:e.img},null,8,mX)]),_("div",LX,b1(e.title),1),_("div",HX,b1(e.desc),1),_("div",VX,[l1(n.$slots,"action",{},()=>[_("div",{class:"empty-action__btn",onClick:o},[_("div",null,[F(M(E1),{style:{width:"1.25rem",height:"1.25rem",margin:"0 12px 0 -4px"},name:"ri-arrow-left-line"})]),P1(" "+b1(e.btnText),1)])])])])])]))}});const Vp=_1(vX),bX={key:0,style:{width:"100%",height:"100%",overflow:"hidden",display:"flex"}},gX=["space"],MX=["space"],ZX={style:{height:"100%",padding:"15px","box-sizing":"border-box"}},wX={key:3,class:"me-body-container"},xX={key:4,style:{width:"100%",height:"100%",overflow:"hidden",display:"flex"},class:"me-body-container"},BX={style:{}},EX={style:{overflow:"auto",height:"100%"},class:"me-div-scroller"},kX={style:{}},SX=i1({name:"me-body"});var DX=i1({...SX,props:{background:{type:String,required:!1,default:"#fff"},space:{type:Number,required:!1,default:0},mode:{type:String,required:!1,default:"normal"},fullScreen:{type:Boolean,required:!1,default:!1},error:{type:Boolean,required:!1,skipCheck:!0,default:!1},loading:{type:Boolean,required:!1,default:!1},result:{type:null,required:!1,default:void 0},title:{type:String,required:!1},subTitle:{type:String,required:!1}},setup(e){const t=e;let i=p1(()=>t.fullScreen?0:t.space);const r=p1(()=>{let o="100%";return t.loading||t.mode=="full"?o="100%":o="fit-content",{height:o}});return D2(()=>t.fullScreen,o=>{console.log(`fullScreen is: ${o}`)}),(o,n)=>(B(),j("div",{class:"me-body",style:w1(r.value)},[t.loading&&!t.error?(B(),j("div",bX,[_("div",{style:w1([{width:"100%",overflow:"hidden",display:"flex","flex-direction":"column","align-items":"center","justify-content":"center",background:"rgb(255, 255, 255)"},{margin:t.space+"px"}])},[...n[0]||(n[0]=[_("div",{class:"me-body__loader"},null,-1),_("div",null,"loading...",-1)])],4)])):G("v-if",!0),t.error?(B(),j("div",{key:1,space:t.space},[l1(o.$slots,"me-body-error",{},()=>[F(M(Vp))])],8,gX)):G("v-if",!0),t.result?(B(),j("div",{key:2,space:t.space,style:{height:"100%"}},[_("div",ZX,[F(M(_G),{style:{height:"100%",background:"#fff"},icon:t.result,title:t.title,"sub-title":t.subTitle},{extra:R(()=>[l1(o.$slots,"me-body-result",{},()=>[l1(o.$slots,"default")])]),_:3},8,["icon","title","sub-title"])])],8,MX)):G("v-if",!0),G(" mode normal "),!t.loading&&!t.error&&!t.result&&t.mode=="normal"?(B(),j("div",wX,[_("div",{style:w1({background:t.background,margin:`${M(i)}px`})},[l1(o.$slots,"me-body-header"),l1(o.$slots,"me-body-main"),l1(o.$slots,"me-body-footer")],4)])):G("v-if",!0),G(" mode full "),!t.loading&&!t.error&&!t.result&&t.mode=="full"?(B(),j("div",xX,[_("div",{style:w1([{width:"100%",flex:"1",overflow:"hidden",display:"flex","flex-direction":"column"},{background:t.background,margin:`${M(i)}px`}])},[_("div",BX,[l1(o.$slots,"me-body-header")]),_("div",EX,[l1(o.$slots,"me-body-main")]),_("div",kX,[l1(o.$slots,"me-body-footer")])],4)])):G("v-if",!0)],4))}});const yx=_1(DX),AX={style:{display:"flex",width:"fit-content",flex:"1","align-items":"center"}},OX={style:{display:"flex","align-items":"center",cursor:"pointer"}},TX={class:"card-text",style:{height:"100%"}},FX=i1({name:"me-card"});var _X=i1({...FX,props:{title:{type:String,required:!1},headerBorder:{type:Boolean,required:!1,default:!0},footerBorder:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!0},titleSize:{type:String,required:!1,default:"16px"},bgColor:{type:String,required:!1},width:{type:String,required:!1},height:{type:String,required:!1},bodyHeight:{type:String,required:!1},bodyStyle:{type:null,required:!1},mode:{type:String,required:!1,default:"normal"},round:{type:Boolean,required:!1,default:!0},customStyle:{type:null,required:!1},fullscreen:{type:Boolean,required:!1,default:!1},showCollapse:{type:Boolean,required:!1,default:!0},shadow:{type:String,required:!1,default:"never"},headerStyle:{type:Object,required:!1},expand:{type:Boolean,required:!1,default:!0}},emits:["closeEvent","changeEvent"],setup(e,{emit:t}){const i=e,r=r1(),o=r1(0);S0(()=>{o.value=r.value?.getBoundingClientRect()?.width});const n=t,a=x8(),l=r1(i.bodyHeight),s=r1(i.expand);D2(()=>i.expand,h=>{s.value=h});const C=p1(()=>({"border-bottom":i.headerBorder?"var(--card-border-width) solid var(--card-border-color)":"0"})),u=p1(()=>({"border-top":i.footerBorder?"var(--card-border-width) solid var(--card-border-color)":"0"})),d=p1(()=>({border:i.border?"var(--card-border-width) solid var(--card-border-color)":"0",height:i.mode==="full"?"100%":i.height,borderRadius:i.round?"calc(4px - (1px))":"0",backgroundColor:i.bgColor,...i.customStyle})),c=r1(!1),p=r1(null),L=r1(0),m=r1("ri-expand-diagonal-line"),f=r1({width:"",margin:"",height:i.height});window.addEventListener("resize",()=>{c.value||(o.value=r.value?.getBoundingClientRect()?.width)});const H=async()=>{oK.toggle(p.value,{teleport:!0,pageOnly:!0,callback:h=>{c.value=h,console.log(h,"isFullscreen"),n("changeEvent",h),h?(L.value=1e3,f.value={width:"100vw",margin:"0",height:"100vh"},m.value="ri-collapse-diagonal-line",l.value="100%"):(L.value=0,f.value={width:"",margin:"",height:"100%"},m.value="ri-expand-diagonal-line",l.value=i.bodyHeight)}})};return(h,V)=>(B(),j("div",{class:v0(["me-card",{"is-hover-shadow":i.shadow=="hover","is-always-shadow":i.shadow=="always"}]),ref_key:"meCardRef",ref:p,style:w1({...d.value,zIndex:L.value,...f.value})},[G(" header "),M(a)?.header||M(a)["header-left-btn"]||M(a)["header-right-btn"]||e.title?(B(),j("div",{key:0,class:"card-header",style:w1({...C.value,...e.headerStyle})},[_("div",AX,[l1(h.$slots,"header"),_("div",null,[l1(h.$slots,"header-left-btn",{},()=>[_("div",{class:"card-title",style:w1({fontSize:e.titleSize})},b1(e.title),5)])])]),_("div",OX,[l1(h.$slots,"header-right-btn"),i.showCollapse?(B(),j("div",{key:0,onClick:V[0]||(V[0]=y=>s.value=!s.value),style:{"margin-left":"10px"}},[F(M(Q7),{hover:"",icon:s.value?"ri-subtract-line":"ri-add-line"},null,8,["icon"])])):G("v-if",!0),i.fullscreen?(B(),j("div",{key:1,onClick:H,style:{"margin-left":"10px"}},[F(M(Q7),{hover:"",icon:m.value},null,8,["icon"])])):G("v-if",!0)])],4)):G("v-if",!0),G(" body "),v4(_("div",{ref_key:"bodyRef",ref:r,style:w1([{"overflow-y":"auto",padding:"10px 0"},{height:l.value,...e.bodyStyle}])},[v4(_("div",{class:"card-body",style:w1({height:c.value?"100%":`calc(${i.bodyHeight} - 20px)`,...e.bodyStyle})},[_("div",TX,[l1(h.$slots,"default")])],4),[[N4,!0]])],4),[[N4,s.value]]),G(" footer "),M(a)?.footer&&s.value?(B(),j("div",{key:1,style:w1(u.value),class:"card-footer"},[l1(h.$slots,"footer")],4)):G("v-if",!0)],6))}});const vx=_1(_X),PX={class:"me-swiper"},IX=i1({name:"me-swiper"});var jX=i1({...IX,props:{moveOffset:{type:Number,required:!1,default:100},customStyle:{type:Object,required:!1}},setup(e){const t=e,i=r1(),r=r1(),o=r1(0);let n=0;const a=r1(1);let l=r1(0),s=r1(0);const C=r1("");bl(r,d=>{const c=d[0],{width:p,height:L}=c.contentRect;l.value=p,C.value=`width: ${p}, height: ${L}`}),bl(i,d=>{const c=d[0],{width:p,height:L}=c.contentRect;s.value=p}),Cl(()=>{a.value=s.value-l.value});const u=d=>{const c=a.value,p=t.moveOffset;d==="left"&&(n+p>0?n=0:n+=p),d==="right"&&(n-p<=c?n=c:n-=p),o.value=n};return(d,c)=>(B(),j("div",PX,[_("div",{ref_key:"wrapperRef",ref:i,class:"wrapper"},[o.value<0?(B(),j("div",{key:0,onClick:c[0]||(c[0]=p=>u("left")),class:"toggle toggle-left"},[l1(d.$slots,"left",{},()=>[F(M(E1),{size:24,color:"#dcdfe6",name:"ri-arrow-right-s-line"})])])):G("v-if",!0),o.value>a.value?(B(),j("div",{key:1,onClick:c[1]||(c[1]=p=>u("right")),class:"toggle toggle-right"},[l1(d.$slots,"right",{},()=>[F(M(E1),{size:24,color:"#dcdfe6",name:"ri-arrow-right-s-line"})])])):G("v-if",!0),_("div",{style:w1({transform:`translateX(${o.value}px)`,...e.customStyle}),ref_key:"listRef",ref:r,class:"coupon-list"},[l1(d.$slots,"default")],4)],512)]))}});const bx=_1(jX),NX={class:"me-resource-card"},$X={class:"header"},RX={key:0,class:"body"},zX={class:"value"},qX={class:"label"},UX=i1({name:"me-resource-card"});var WX=i1({...UX,props:{footerList:{type:Array,required:!1,default:()=>[]}},setup(e){return(t,i)=>(B(),j("div",NX,[_("div",$X,[l1(t.$slots,"header"),l1(t.$slots,"header-menu")]),e.footerList?.length?(B(),j("div",RX,[l1(t.$slots,"footer",{},()=>[(B(!0),j(J1,null,Z2(e.footerList,(r,o)=>(B(),j("div",{class:"item",key:r?.id||o},[_("div",zX,b1(r.value)+" "+b1(r.unit),1),_("div",qX,b1(r.label),1)]))),128))])])):G("v-if",!0)]))}});const gx=_1(WX),GX=i1({name:"me-expand-menu"});var KX=i1({...GX,props:{top:{type:String,required:!1,default:"210px"},customStyle:{type:Object,required:!1,default:()=>({})},target:{type:null,required:!1},autoHide:{type:Boolean,required:!1,default:!1},expand:{type:Boolean,required:!1,default:!0}},emits:["expandChangeEvent"],setup(e,{emit:t}){const i=e,r=t,o=r1(i.expand),n=16,a="rgb(78, 89, 105)",l=r1(!i.autoHide);D2(()=>i.expand,c=>{o.value=c});const s=()=>{i.autoHide&&(l.value=!0)},C=()=>{!o.value||!i.autoHide||(l.value=!1)},u=Cl(()=>{i.target?.addEventListener("mouseenter",s),i.target?.addEventListener("mouseleave",C)});sl(()=>{u(),i.target?.removeEventListener("mouseenter",s),i.target?.removeEventListener("mouseleave",C)});const d=()=>{o.value=!o.value,r("expandChangeEvent",o.value)};return(c,p)=>(B(),C1(ul,null,{default:R(()=>[l.value?(B(),j("div",{key:0,class:"me-expand-menu",style:w1({top:i.top,...i.customStyle}),onClick:d},[o.value?(B(),C1(M(E1),{key:0,color:a,name:"ri-arrow-left-s-line",size:n})):(B(),C1(M(E1),{key:1,name:"ri-arrow-right-s-line",color:a,size:n}))],4)):G("v-if",!0)]),_:1}))}});const yp=_1(KX),YX=i1({name:"me-flex-box"});var XX=i1({...YX,props:{row:{type:Boolean,required:!1,default:!1},column:{type:Boolean,required:!1,default:!1},auto:{type:Boolean,required:!1,default:!1},end:{type:Boolean,required:!1,default:!1},scrollbar:{type:Boolean,required:!1,default:!1}},setup(e){const t=e,i=p1(()=>{let r={boxSizing:"border-box"};return t.row&&(r.flexDirection="row"),t.column&&(r.flexDirection="column"),t.end&&(r.justifyContent="flex-end"),r.display="flex",t.auto&&(r.flex=1),r});return(r,o)=>(B(),j("div",{style:w1(i.value),class:v0(["me-flex-box",{"me-div-scroller":t.scrollbar}])},[l1(r.$slots,"default")],6))}});const S8=_1(XX),vp=document.createElement("div");document.body.appendChild(vp);const JX=e=>typeof e=="string"?{"url-list":[e]}:Array.isArray(e)?{"url-list":e}:e,bp=(e,t={})=>{const i=F(PG,{...JX(e),onClose:()=>{p7(null,vp)},...t});p7(i,vp)};/*! Element Plus Icons Vue v2.3.2 */var QX=i1({name:"Picture",__name:"picture",setup(e){return(t,i)=>(B(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[_("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),_("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64-64-64 64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"})]))}}),eJ=QX;const tJ={style:{display:"flex","align-items":"center","justify-content":"center",height:"100%","font-size":"1rem"}},iJ=i1({name:"me-resource-image"});var rJ=i1({...iJ,props:E2({request:{type:Function,required:!1},width:{type:Number,required:!1,default:100},height:{type:Number,required:!1,default:100},preview:{type:Boolean,required:!1,default:!1},style:{type:[String,Object],required:!1}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,i=r1(""),r=r1(!1),o=r1(!1),n=W2(e,"modelValue");D2(()=>n.value,l=>{l?a(l)?i.value=n.value||"":t.request?t.request({id:n.value}).then(s=>{s.code!=0?o.value=!0:(o.value=!1,i.value=s.data.url)}).catch(()=>{o.value=!0}):o.value=!0:o.value=!0},{immediate:!0});function a(l){try{return new URL(l),!0}catch{return!1}}return(l,s)=>(B(),j("div",{class:"me-resource-image",style:w1([{width:t.width+"px",height:t.height+"px"},e.style])},[!r.value&&!o.value?(B(),C1(M(IG),{key:0,animated:""},{template:R(()=>[F(M(jG),{variant:"image",style:w1([{width:t.width+"px",height:t.height+"px"}])},null,8,["style"])]),_:1})):G("v-if",!0),v4(F(M(fl),I1({style:[{width:"100%",height:"100%"},[{cursor:e.preview?"zoom-in":"default"}]],src:i.value,fit:"cover",onLoad:s[0]||(s[0]=C=>r.value=!0),onError:s[1]||(s[1]=C=>o.value=!0)},l.$attrs,{onClick:s[2]||(s[2]=C=>e.preview&&M(bp)(i.value))}),{error:R(()=>[l1(l.$slots,"error",{},()=>[_("div",tJ,[F(M(NG),null,{default:R(()=>[F(M(eJ))]),_:1})])])]),_:3},16,["style","src"]),[[N4,r.value||o.value]])],4))}});const gp=_1(rJ),oJ={style:{display:"flex","align-items":"center",cursor:"pointer"}},nJ={style:{display:"flex","justify-content":"center","align-items":"center",height:"100%"}},aJ=["src"],lJ={style:{"margin-left":"10px"}},sJ={style:{"font-weight":"bold","line-height":"24px"}},CJ={style:{"font-size":"11px",color:"#909399","line-height":"24px"}},uJ=i1({name:"me-avatar"});var dJ=i1({...uJ,props:{defaultImage:{type:String,required:!1,default:"https://resource.mini-enjoy.com/saas/images/avatar-visitor.png"},size:{type:String,required:!1,default:"44px"},image:{type:String,required:!0},name:{type:String,required:!1},desc:{type:String,required:!1},style:{type:Object,required:!1}},setup(e){return(t,i)=>(B(),j("div",oJ,[_("div",null,[F(M(gp),{style:w1([{"border-radius":"50%",border:"2px solid #fff","box-shadow":"0 2px 8px #0000000a",overflow:"hidden"},[{width:e.size,height:e.size},e.style]]),modelValue:e.image},{error:R(()=>[l1(t.$slots,"error",{},()=>[_("div",nJ,[_("img",{style:{width:"100%"},src:e.defaultImage,alt:""},null,8,aJ)])])]),_:3},8,["style","modelValue"])]),_("div",lJ,[l1(t.$slots,"name",{},()=>[_("div",sJ,b1(e.name),1)]),l1(t.$slots,"desc",{},()=>[_("div",CJ,b1(e.desc),1)])])]))}});const Mx=_1(dJ),cJ=i1({name:"me-overlay"});var pJ=i1({...cJ,props:E2({center:{type:Boolean,required:!1,default:!0},top:{type:String,required:!1,default:"0px"},background:{type:String,required:!1,default:"rgba(0, 0, 0, 0.7)"},appendToBody:{type:Boolean,required:!1,default:!1},showClose:{type:Boolean,required:!1,default:!0},escClose:{type:Boolean,required:!1,default:!0}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:E2(["close"],["update:modelValue"]),setup(e,{emit:t}){const i=e,r=t,o=W2(e,"modelValue"),n=a=>{i.escClose&&a.key==="Escape"&&(o.value=!1)};return D2(()=>o.value,a=>{a?(document.body.style.overflow="hidden",document.addEventListener("keyup",n)):(document.body.style.overflow="auto",document.removeEventListener("keyup",n),r("close"))}),(a,l)=>(B(),j("div",{class:"me-overlay",onKeyup:l[1]||(l[1]=_w(s=>o.value=!1,["esc"]))},[(B(),C1(np,{to:"body",disabled:!e.appendToBody},[F(ul,{name:"fade"},{default:R(()=>[o.value?(B(),j("div",I1({key:0},a.$attrs,{class:"maskLayer-overlay",style:{background:e.background}}),[_("div",{class:"maskLayer-content",style:w1({marginTop:i.center?0:i.top,alignItems:i.center?"center":"stretch"})},[e.showClose?(B(),j("div",{key:0,class:"close",onClick:l[0]||(l[0]=s=>o.value=!1)},[F(M(E1),{color:"#fff",name:"ri-close-large-line"})])):G("v-if",!0),l1(a.$slots,"default")],4)],16)):G("v-if",!0)]),_:3})],8,["disabled"]))],32))}});const Zx=_1(pJ),hJ={class:"me-more-dropdown"},fJ={style:{cursor:"pointer",height:"fit-content"}},mJ=i1({name:"me-more-dropdown"});var LJ=i1({...mJ,props:{data:{type:Array,required:!0,default:()=>[]},menuIcon:{type:String,required:!1,default:"ri-more-2-line"},placement:{type:String,required:!1,default:"bottom-end"},disableTransitions:{type:Boolean,required:!1,default:!1},buttonStyle:{type:String,required:!1},style:{type:String,required:!1},activeLabel:{type:String,required:!1}},setup(e){const t=Lx(),i=(r,o)=>{const{toPath:n,onClick:a}=o;a&&a(r),n&&t&&t.push(n)};return(r,o)=>(B(),j("div",hJ,[F(M(Hl),I1({"hide-on-click":!0,placement:e.placement,trigger:"click"},r.$attrs,{style:e.style}),{dropdown:R(()=>[F(M(Vl),null,{default:R(()=>[(B(!0),j(J1,null,Z2(e.data,(n,a)=>(B(),j(J1,{key:a},[n.hidden?G("v-if",!0):(B(),C1(M(Si),{key:0,divided:n.divided,disabled:n.disabled,onClick:l=>i(l,n),style:w1({color:n.label===e.activeLabel?"var(--el-color-primary)":""})},{default:R(()=>[P1(b1(n.label),1)]),_:2},1032,["divided","disabled","onClick","style"]))],64))),128))]),_:1})]),default:R(()=>[_("div",fJ,[l1(r.$slots,"default",{},()=>[_("div",{style:w1(e.buttonStyle),class:v0([{transition:!e.disableTransitions},"button flex-center"])},[F(M(E1),{class:"icon",name:e.menuIcon},null,8,["name"])],6)])])]),_:3},16,["placement","style"])]))}});const wx=_1(LJ),HJ={style:{cursor:"pointer","margin-top":"3px",display:"flex"}},VJ={key:2},yJ=i1({name:"me-breadcrumb"});var vJ=i1({...yJ,props:{modelValue:{type:Array},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=W2(e,"modelValue");return(i,r)=>(B(),C1(M($G),I1(i.$attrs,{style:{"margin-bottom":"0px",display:"flex","align-items":"center"}}),{default:R(()=>[(B(!0),j(J1,null,Z2(t.value,o=>(B(),C1(M(RG),{key:o.label,to:o.to},{default:R(()=>[o.type=="select"?(B(),C1(M(Nw),{key:0,modelValue:o.value,"onUpdate:modelValue":n=>o.value=n,style:{width:"240px","margin-bottom":"0px"},onChange:o.change,options:o.options,props:o.props},null,8,["modelValue","onUpdate:modelValue","onChange","options","props"])):o.type=="menu"?(B(),C1(M(Hl),{key:1,trigger:"click"},{dropdown:R(()=>[F(M(Vl),null,{default:R(()=>[(B(!0),j(J1,null,Z2(o.options,n=>(B(),C1(M(Si),{onClick:n.click},{default:R(()=>[_("span",{style:w1({color:o.name===n.label?"#409eff":""})},b1(n.label),5)]),_:2},1032,["onClick"]))),256))]),_:2},1024)]),default:R(()=>[_("div",HJ,[P1(b1(o.name)+" ",1),F(M(E1),{name:"ri-arrow-down-s-fill"})])]),_:2},1024)):(B(),j("span",VJ,b1(o.label),1))]),_:2},1032,["to"]))),128))]),_:1},16))}});const xx=_1(vJ);let e3=null;function bJ(){return e3!==null}function gJ(e){e3&&Ex(),e3=e}function Bx(e){e===e3&&(e3=null)}function Ex(){e3&&(e3.closeMenu(),e3=null)}const Z9={defaultDirection:"br",defaultMinWidth:100,defaultMaxWidth:600,defaultZindex:100,defaultZoom:1,defaultAdjustPadding:{x:0,y:10}};function Oi(e,t){let i=e.offsetTop;return e.offsetParent!=null&&e.offsetParent!=t&&(i-=e.offsetParent.scrollTop,i+=Oi(e.offsetParent,t)),i}function Ti(e,t){let i=e.offsetLeft;return e.offsetParent!=null&&e.offsetParent!=t&&(i-=e.offsetParent.scrollLeft,i+=Ti(e.offsetParent,t)),i}function MJ(e,t,i,r){return{x:Ti(e,r)+t,y:Oi(e,r)+i}}const Mp="mx-menu-default-container",ZJ="mx-menu-container-";let wJ=0;function kx(e){const{getContainer:t,zIndex:i}=e;if(t){const o=typeof t=="function"?t():t;if(o){let n=o.getAttribute("id");return n||(n=ZJ+wJ++,o.setAttribute("id",n)),{eleId:n,container:o,isNew:!1}}}let r=document.getElementById(Mp);return r||(r=document.createElement("div"),r.setAttribute("id",Mp),r.setAttribute("class","mx-menu-ghost-host fullscreen"),document.body.appendChild(r)),r.style.zIndex=i?.toString()||Z9.defaultZindex.toString(),{eleId:Mp,container:r,isNew:!0}}function xJ(e){let t=0;for(let i=0;i<e.length;i++){const r=e.charCodeAt(i);t=(t<<5)-t+r,t|=0}return t}function Sx(e){return typeof e=="number"?`${e}px`:e}const w9=i1({props:{vnode:{type:null},data:{type:null,default:null}},setup(e){const{vnode:t,data:i}=B8(e);return()=>typeof t.value=="function"?t.value(i.value):t.value}});function BJ(e,t){const i={...e};return delete i[t],i}var EJ=Object.defineProperty,kJ=(e,t,i)=>t in e?EJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Dx=(e,t,i)=>kJ(e,typeof t!="symbol"?t+"":t,i);let Ax=class{constructor(t,i){Dx(this,"x",0),Dx(this,"y",0),this.x=t||0,this.y=i||0}set(t,i){this.x=t,this.y=i}substract(t){this.x-=t.x,this.y-=t.y}};function Ox(e){const{onDown:t,onMove:i,onUp:r}=e,o=new Ax,n=new Ax;let a;function l(C){C.stopPropagation(),n.set(C.x,C.y),n.substract(o),i(o,n,C,a)}function s(C){r(C,a),o.set(0,0),document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",s)}return(C,u)=>t(C,u)?(a=u,o.set(C.x,C.y),document.addEventListener("mousemove",l),document.addEventListener("mouseup",s),C.stopPropagation(),!0):!1}function SJ(e,t){let i=0;return{start(){i>0&&clearInterval(i),i=setInterval(()=>{i=0,t()},e)},stop(){i>0&&(clearInterval(i),i=0)}}}const Fi=[],Tx=SJ(100,()=>{for(const e of Fi)e()});function DJ(e,t,i,r){let o=0,n=0;function a(){e.value&&(t&&o!==e.value.offsetWidth&&t(e.value.offsetWidth),i&&n!==e.value.offsetHeight&&i(e.value.offsetHeight),o=e.value.offsetWidth,n=e.value.offsetHeight)}return{startResizeChecker(){Tx.start(),Fi.push(a)},stopResizeChecker(){const l=Fi.indexOf(a);l>=0&&Fi.splice(l,1),Fi.length===0&&Tx.stop()}}}const Fx=140,AJ=70,OJ=i1({__name:"ScrollRect",props:{scroll:{type:String,default:"both"},scrollBarAlwaysShow:{type:Boolean,default:!1},scrollBarBackgroundClickable:{type:Boolean,default:!1},height:{type:Number,default:void 0},width:{type:Number,default:void 0},maxHeight:{type:Number,default:void 0},maxWidth:{type:Number,default:void 0},containerClass:{type:String,default:""},containerStyle:{type:null}},emits:["scroll","resized"],setup(e,{expose:t,emit:i}){const r=e,o=i,n=r1(),a=r1(),l=r1(),s=r1(),C=r1(),u=r1(),d=r1(!1),c=p1(()=>r.scroll==="horizontal"||r.scroll==="both"),p=p1(()=>r.scroll==="vertical"||r.scroll==="both"),L=X7({show:!1,size:0,sizeRaw:0,pos:0}),m=X7({show:!1,size:0,sizeRaw:0,pos:0});let f=0,H=0,h=0,V=0,y=null;const v={attributes:!0,childList:!0};function g(){if(n.value){if(L.show){const I=n.value.offsetWidth/n.value.scrollWidth;L.sizeRaw=I*n.value.offsetWidth,L.size=I*100,L.pos=n.value.scrollLeft/(n.value.scrollWidth-n.value.offsetWidth)*(100-L.size),I>=1&&(L.show=!1)}if(m.show){const I=n.value.offsetHeight/n.value.scrollHeight;m.sizeRaw=I*n.value.offsetHeight,m.size=I*100,m.pos=n.value.scrollTop/(n.value.scrollHeight-n.value.offsetHeight)*(100-m.size),I>=1&&(m.show=!1)}o("scroll",n.value.scrollLeft,n.value.scrollTop)}}function b(I=!1){if(!n.value)return;let J=c.value,t1=p.value;const x1=J&&(f!==n.value.scrollWidth||h!==n.value.offsetWidth),A1=p&&(H!==n.value.scrollHeight||V!==n.value.offsetHeight);if(!I&&!x1&&!A1)return;const O1=window.getComputedStyle(n.value);(O1.overflow==="hidden"||O1.overflowX==="hidden")&&(J=!1),(O1.overflow==="hidden"||O1.overflowY==="hidden")&&(t1=!1),L.show=J,m.show=t1,g(),h=n.value.offsetWidth,V=n.value.offsetHeight,f=n.value.scrollWidth,H=n.value.scrollHeight,o("resized",f,H)}function x(I){var J;r.scroll=="horizontal"&&(I.deltaMode==0&&((J=n.value)==null||J.scrollTo({left:n.value.scrollLeft+(I.deltaY>0?Fx:-140),behavior:"smooth"})),I.preventDefault(),I.stopPropagation())}function w(I){var J;I.deltaMode==0&&((J=n.value)==null||J.scrollTo({left:n.value.scrollLeft+(I.deltaY>0?Fx:-140),behavior:"smooth"}),I.preventDefault(),I.stopPropagation())}function E(I){var J;I.deltaMode==0&&((J=n.value)==null||J.scrollTo({top:n.value.scrollTop+(I.deltaY>0?AJ:-70),behavior:"smooth"}),I.preventDefault(),I.stopPropagation())}let N=0,O=0,Q=0,Y=0;const P=Ox({onDown(I){return!l.value||!C.value?!1:(N=I.offsetX,O=I.x-I.offsetX-C.value.offsetLeft,I.preventDefault(),d.value=!0,!0)},onMove(I,J,t1){n.value&&l.value&&(c1(t1.x-N-O),t1.preventDefault(),t1.stopPropagation())},onUp(){d.value=!1}}),U=Ox({onDown(I){return!s.value||!u.value?!1:(Q=I.offsetY,Y=I.y-I.offsetY-u.value.offsetTop,I.preventDefault(),d.value=!0,!0)},onMove(I,J,t1){n.value&&s.value&&(f1(t1.y-Q-Y),t1.preventDefault(),t1.stopPropagation())},onUp(){d.value=!1}});function e1(I){n.value&&(n.value.scrollLeft=I/100*(n.value.scrollWidth-n.value.offsetWidth))}function u1(I){n.value&&(n.value.scrollLeft=I/100*(n.value.scrollHeight-n.value.offsetHeight))}function c1(I){n.value&&(n.value.scrollLeft=I/(n.value.offsetWidth-L.sizeRaw)*(n.value.scrollWidth-n.value.offsetWidth))}function f1(I){n.value&&(n.value.scrollTop=I/(n.value.offsetHeight-m.sizeRaw)*(n.value.scrollHeight-n.value.offsetHeight))}function D(I){r.scrollBarBackgroundClickable&&c1(I.offsetX-L.sizeRaw/2)}function S(I){r.scrollBarBackgroundClickable&&f1(I.offsetY-m.sizeRaw/2)}const{startResizeChecker:z,stopResizeChecker:K}=DJ(n,()=>b(),()=>b());return S0(()=>{B5(()=>{setTimeout(()=>b(!0),200),b(!0),z(),y=new MutationObserver(()=>b()),y.observe(n.value,v)})}),ki(()=>{K(),y&&(y.disconnect(),y=null)}),t({refreshScrollState(){b(!0)},getScrollContainer(){return n.value},scrollTo(I,J){var t1;(t1=n.value)==null||t1.scrollTo(I,J)},scrollToTop(){var I;(I=n.value)==null||I.scrollTo(0,0)},scrollToBottom(){var I;(I=n.value)==null||I.scrollTo(n.value.scrollWidth,n.value.scrollHeight)}}),(I,J)=>(B(),j("div",{ref_key:"scrollrect",ref:a,class:v0(["vue-scroll-rect",e.scrollBarAlwaysShow?"always-show-scrollbar":"",e.scrollBarBackgroundClickable?"background-clickable":"",d.value?"dragging":""]),style:w1({width:e.width?`${e.width}px`:void 0,height:e.height?`${e.height}px`:void 0}),onWheel:x},[_("div",{ref_key:"container",ref:n,class:v0(["scroll-content",e.scroll,e.containerClass]),style:w1({maxWidth:e.maxWidth?`${e.maxWidth}px`:void 0,maxHeight:e.maxHeight?`${e.maxHeight}px`:void 0,...e.containerStyle}),onScroll:g},[l1(I.$slots,"default")],38),L.show?l1(I.$slots,"scrollBarX",{key:0,scrollBarValue:L,onScroll:e1},()=>[_("div",{ref_key:"scrollBarRefX",ref:l,class:"scrollbar horizontal",onClick:D,onWheel:w},[_("div",{class:"thumb",ref_key:"scrollBarThumbRefX",ref:C,style:w1({left:`${L.pos}%`,width:`${L.size}%`}),onMousedown:J[0]||(J[0]=(...t1)=>M(P)&&M(P)(...t1)),onWheel:w},null,36)],544)]):G("",!0),m.show?l1(I.$slots,"scrollBarY",{key:1,scrollBarValue:m,onScroll:u1},()=>[m.show?(B(),j("div",{key:0,ref_key:"scrollBarRefY",ref:s,class:"scrollbar vertical",onClick:S,onWheel:E},[_("div",{class:"thumb",ref_key:"scrollBarThumbRefY",ref:u,style:w1({top:`${m.pos}%`,height:`${m.size}%`}),onMousedown:J[1]||(J[1]=(...t1)=>M(U)&&M(U)(...t1)),onWheel:E},null,36)],544)):G("",!0)]):G("",!0)],38))}}),Zp=(e,t)=>{const i=e.__vccOpts||e;for(const[r,o]of t)i[r]=o;return i},TJ={},FJ={class:"mx-checked-mark","aria-hidden":"true",viewBox:"0 0 1024 1024"},_J=_("path",{d:"M129.3,428.6L52,512l345,372.5l575-620.8l-69.5-75L400.4,718.2L129.3,428.6z"},null,-1),PJ=[_J];function IJ(e,t){return B(),j("svg",FJ,PJ)}const jJ=Zp(TJ,[["render",IJ]]),NJ={},$J={class:"mx-right-arrow","aria-hidden":"true",viewBox:"0 0 1024 1024"},RJ=_("path",{d:"M307.018 49.445c11.517 0 23.032 4.394 31.819 13.18L756.404 480.18c8.439 8.438 13.181 19.885 13.181 31.82s-4.741 23.38-13.181 31.82L338.838 961.376c-17.574 17.573-46.065 17.573-63.64-0.001-17.573-17.573-17.573-46.065 0.001-63.64L660.944 512 275.198 126.265c-17.574-17.573-17.574-46.066-0.001-63.64C283.985 53.839 295.501 49.445 307.018 49.445z"},null,-1),zJ=[RJ];function qJ(e,t){return B(),j("svg",$J,zJ)}const UJ=Zp(NJ,[["render",qJ]]),WJ={class:"mx-item-row"},GJ=["xlink:href"],KJ={key:1,class:"label"},YJ={class:"mx-item-row"},XJ={class:"mx-shortcut"},wp=i1({__name:"ContextMenuItem",props:{disabled:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},customRender:{type:Function,default:null},customClass:{type:String,default:""},clickHandler:{type:Function,default:null},label:{type:[String,Object,Function],default:""},icon:{type:[String,Object,Function],default:""},iconFontClass:{type:String,default:"iconfont"},checked:{type:Boolean,default:!1},shortcut:{type:String,default:""},svgIcon:{type:String,default:""},svgProps:{type:Object,default:null},preserveIconWidth:{type:Boolean,default:!0},showRightArrow:{type:Boolean,default:!1},hasChildren:{type:Boolean,default:!1},clickClose:{type:Boolean,default:!0},clickableWhenHasChildren:{type:Boolean,default:!1},rawMenuItem:{type:Object,default:void 0}},emits:["click","subMenuOpen","subMenuClose"],setup(e,{expose:t,emit:i}){const r=e,o=i,{clickHandler:n,clickClose:a,clickableWhenHasChildren:l,disabled:s,hidden:C,label:u,icon:d,iconFontClass:c,showRightArrow:p,shortcut:L,hasChildren:m}=B8(r),f=r1(!1),H=r1(!1),h=r1(),V=q0("globalOptions"),y=q0("globalHasSlot"),v=q0("globalRenderSlot"),g=q0("globalCloseMenu"),b=q0("menuContext"),x=p1(()=>typeof u.value=="string"?u.value:typeof u.value=="function"?xJ(u.value.toString()):"MenuItem[unknow]");e9("MenuItemName",x);const w={getSubMenuInstance:()=>{},showSubMenu:()=>f.value?(b.markActiveMenuItem(w,!0),!0):m.value?(N(),!0):!1,hideSubMenu:()=>{b.closeOtherSubMenu()},isDisabledOrHidden:()=>s.value||C.value,getElement:()=>h.value,focus:()=>H.value=!0,blur:()=>H.value=!1,click:E};e9("menuItemInstance",w),S0(()=>{b.isMenuItemDataCollectedFlag()?B5(()=>{let Y=0;const P=b.getElement();if(P){let U=0;for(let e1=0;e1<P.children.length;e1++){const u1=P.children[e1];if(u1.getAttribute("data-type")==="ContextMenuItem"){if(u1===h.value){Y=U;break}U++}}}b.addChildMenuItem(w,Y)}):b.addChildMenuItem(w)}),ki(()=>{b.removeChildMenuItem(w)});function E(Y){if(!s.value){if(Y){const P=Y.target;if(P.classList.contains("mx-context-no-clickable")||V.value.ignoreClickClassName&&P.classList.contains(V.value.ignoreClickClassName))return;if(V.value.clickCloseClassName&&P.classList.contains(V.value.clickCloseClassName)){Y.stopPropagation(),g(r.rawMenuItem);return}}m.value?l.value?(typeof n.value=="function"&&n.value(Y),o("click",Y)):f.value||N():(typeof n.value=="function"&&n.value(Y),o("click",Y),a.value&&g(r.rawMenuItem))}}function N(Y){H.value=!1,b.checkCloseOtherSubMenuTimeOut()||b.closeOtherSubMenu(),s.value||(b.markActiveMenuItem(w),m.value&&(Y||b.markThisOpenedByKeyBoard(),b.addOpenedSubMenu(O),f.value=!0,B5(()=>o("subMenuOpen",w))))}function O(){H.value=!1,f.value=!1,o("subMenuClose",w)}function Q(){return{disabled:s.value,label:u.value,icon:d.value,iconFontClass:c.value,showRightArrow:p.value,clickClose:a.value,clickableWhenHasChildren:l.value,shortcut:L.value,theme:V.value.theme,isOpen:f,hasChildren:m,onClick:E,onMouseEnter:N,closeMenu:g}}return t(w),(Y,P)=>{var U;return M(C)?G("",!0):(B(),j("div",I1({key:0,class:"mx-context-menu-item-wrapper",ref_key:"menuItemRef",ref:h,"data-type":"ContextMenuItem"},{...Y.$attrs,...((U=e.rawMenuItem)==null?void 0:U.attrs)||{}}),[M(y)("itemRender")?(B(),C1(M(w9),{key:0,vnode:()=>M(v)("itemRender",Q())},null,8,["vnode"])):e.customRender?(B(),C1(M(w9),{key:1,vnode:e.customRender,data:Q()},null,8,["vnode","data"])):(B(),j("div",{key:2,class:v0(["mx-context-menu-item",M(s)?"disabled":"",H.value?"keyboard-focus":"",e.customClass?" "+e.customClass:"",f.value?"open":""]),onClick:E,onMouseenter:N},[l1(Y.$slots,"default",{},()=>[_("div",WJ,[_("div",{class:v0(["mx-icon-placeholder",e.preserveIconWidth?"preserve-width":""])},[l1(Y.$slots,"icon",{},()=>[M(y)("itemIconRender")?(B(),C1(M(w9),{key:0,vnode:()=>M(v)("itemIconRender",Q())},null,8,["vnode"])):typeof e.svgIcon=="string"&&e.svgIcon?(B(),j("svg",I1({key:1,class:"icon svg"},e.svgProps),[_("use",{"xlink:href":e.svgIcon},null,8,GJ)],16)):typeof M(d)!="string"?(B(),C1(M(w9),{key:2,vnode:M(d),data:M(d)},null,8,["vnode","data"])):typeof M(d)=="string"&&M(d)!==""?(B(),j("i",{key:3,class:v0(M(d)+" icon "+M(c)+" "+M(V).iconFontClass)},null,2)):G("",!0)]),e.checked?l1(Y.$slots,"check",{key:0},()=>[M(y)("itemCheckRender")?(B(),C1(M(w9),{key:0,vnode:()=>M(v)("itemCheckRender",Q())},null,8,["vnode"])):G("",!0),F(jJ)]):G("",!0)],2),l1(Y.$slots,"label",{},()=>[M(y)("itemLabelRender")?(B(),C1(M(w9),{key:0,vnode:()=>M(v)("itemLabelRender",Q())},null,8,["vnode"])):typeof M(u)=="string"?(B(),j("span",KJ,b1(M(u)),1)):(B(),C1(M(w9),{key:2,vnode:M(u),data:M(u)},null,8,["vnode","data"]))])]),_("div",YJ,[M(L)||Y.$slots.shortcut?l1(Y.$slots,"shortcut",{key:0},()=>[M(y)("itemShortcutRender")?(B(),C1(M(w9),{key:0,vnode:()=>M(v)("itemShortcutRender",Q())},null,8,["vnode"])):G("",!0),_("span",XJ,b1(M(L)),1)]):G("",!0),M(p)?l1(Y.$slots,"rightArrow",{key:1},()=>[M(y)("itemRightArrowRender")?(B(),C1(M(w9),{key:0,vnode:()=>M(v)("itemRightArrowRender",Q())},null,8,["vnode"])):G("",!0),F(UJ)]):G("",!0)])])],34)),l1(Y.$slots,"submenu",{context:w,show:f.value})],16))}}}),JJ=i1({name:"ContextMenuSperator",components:{VNodeRender:w9},setup(){const e=q0("globalHasSlot"),t=q0("globalRenderSlot");return{globalHasSlot:e,globalRenderSlot:t}}}),QJ={key:1,class:"mx-context-menu-item-sperator mx-context-no-clickable"};function eQ(e,t,i,r,o,n){const a=he("VNodeRender");return e.globalHasSlot("separatorRender")?(B(),C1(a,{key:0,vnode:()=>e.globalRenderSlot("separatorRender",{})},null,8,["vnode"])):(B(),j("div",QJ))}const _i=Zp(JJ,[["render",eQ]]),xp=i1({__name:"ContextSubMenu",props:{items:{type:Object,default:null},show:{type:Boolean,default:!1},destroyOnClose:{type:Boolean,default:!0},maxHeight:{type:Number,default:0},maxWidth:{type:[String,Number],default:0},minWidth:{type:[String,Number],default:0},adjustPosition:{type:Boolean,default:!0},direction:{type:String,default:"br"},parentMenuItemContext:{type:Object,default:null}},emits:["closeAnimFinished"],setup(e,{expose:t,emit:i}){const r=e,o=i,n=r1(!1),a=q0("globalGetMenuHostId",""),l=q0("menuContext"),s=q0("globalOptions");q0("globalHasSlot"),q0("globalRenderSlot");const C=r1("UnknowOrRoot"),u=q0("MenuItemName",C),{zIndex:d,getParentWidth:c,getParentHeight:p,getZoom:L}=l,{adjustPosition:m}=B8(r),f=r1(),H=r1(),h=r1(),V=[],y=q0("globalSetCurrentSubMenu"),v=[];let g=null,b=0;function x(){g&&g.blur()}function w(K,I){if(K){for(let J=I!==void 0?I:0;J<v.length;J++)if(!v[J].isDisabledOrHidden()){E(J);break}}else for(let J=I!==void 0?I:v.length-1;J>=0;J--)if(!v[J].isDisabledOrHidden()){E(J);break}}function E(K){if(g&&x(),K!==void 0&&(g=v[Math.max(0,Math.min(K,v.length-1))]),!g)return;g.focus();const I=g.getElement();I&&I.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})}function N(){y(O)}const O={el:h,name:u,isTopLevel:()=>l.getParentContext()===null,closeSelfAndActiveParent:()=>{const K=P.getParentContext();if(K){K.closeOtherSubMenu();const I=K.getSubMenuInstanceContext();if(I)return I.focusCurrentItem(),!0}return!1},closeCurrentSubMenu:()=>{var K;return(K=P.getParentContext())==null?void 0:K.closeOtherSubMenu()},moveCurrentItemFirst:()=>w(!0),moveCurrentItemLast:()=>w(!1),moveCurrentItemDown:()=>w(!0,g?v.indexOf(g)+1:0),moveCurrentItemUp:()=>w(!1,g?v.indexOf(g)-1:0),focusCurrentItem:()=>E(),openCurrentItemSubMenu:()=>g?g?.showSubMenu():!1,triggerCurrentItemClick:K=>g?.click(K)};let Q=!1,Y=!1;const P={zIndex:d+1,container:l.container,adjustPadding:s.value.adjustPadding||Z9.defaultAdjustPadding,getParentWidth:()=>{var K;return((K=h.value)==null?void 0:K.offsetWidth)||0},getParentHeight:()=>{var K;return((K=h.value)==null?void 0:K.offsetHeight)||0},getPositon:()=>[D.value.x,D.value.y],getZoom:()=>s.value.zoom||Z9.defaultZoom,addOpenedSubMenu(K){V.push(K)},closeOtherSubMenu(){V.forEach(K=>K()),V.splice(0,V.length),y(O)},checkCloseOtherSubMenuTimeOut(){return b?(clearTimeout(b),b=0,!0):!1},closeOtherSubMenuWithTimeOut(){b=setTimeout(()=>{b=0,this.closeOtherSubMenu()},200)},addChildMenuItem:(K,I)=>{I===void 0?v.push(K):v.splice(I,0,K)},removeChildMenuItem:K=>{v.splice(v.indexOf(K),1),K.getSubMenuInstance=()=>{}},markActiveMenuItem:(K,I=!1)=>{x(),g=K,I&&E()},markThisOpenedByKeyBoard:()=>{Q=!0},isOpenedByKeyBoardFlag:()=>Q?(Q=!1,!0):!1,isMenuItemDataCollectedFlag:()=>Y,getElement:()=>h.value||null,getParentContext:()=>l,getSubMenuInstanceContext:()=>O};e9("menuContext",P);const U={getChildItem:K=>v[K],getMenuDimensions:()=>H.value?{width:H.value.offsetWidth,height:H.value.offsetHeight}:{width:0,height:0},getSubmenuRoot:()=>H.value,getMenu:()=>h.value,getScrollValue:()=>{var K,I;return((I=(K=f.value)==null?void 0:K.getScrollContainer())==null?void 0:I.scrollTop)||0},setScrollValue:K=>{var I;return(I=f.value)==null?void 0:I.scrollTo(0,K)},getScrollHeight:()=>u1.value,adjustPosition:()=>{S()},getMaxHeight:()=>c1.value,getPosition:()=>D.value,setPosition:(K,I)=>{D.value.x=K,D.value.y=I}},e1=q0("menuItemInstance",void 0);e1&&(e1.getSubMenuInstance=()=>U);const u1=r1(0),c1=r1(0),f1=r1(!1),D=r1({x:0,y:0});function S(){B5(()=>{var K;const I=h.value,J=H.value;if(I&&J&&f.value){const{container:t1}=l,x1=c?.()??0,A1=p?.()??0,O1=getComputedStyle(J),s1=parseFloat(O1.paddingLeft),t2=parseFloat(O1.paddingTop),z1=A1>0?t2:0,k1=document.documentElement.scrollHeight/L(),Y1=document.documentElement.scrollWidth/L(),o0=Math.min(Y1,t1.offsetWidth),c2=Math.min(k1,t1.offsetHeight);let M2=Ti(I,t1),P2=Oi(I,t1);if(r.direction.includes("l")?D.value.x-=I.offsetWidth+s1:r.direction.includes("r")?D.value.x+=x1+s1:(D.value.x+=x1/2,D.value.x-=(I.offsetWidth+s1)/2),r.direction.includes("t")){const h0=(K=r.parentMenuItemContext)==null?void 0:K.getElement();h0&&(D.value.y+=h0.offsetHeight),D.value.y-=(I.offsetHeight+t2)/L()}else r.direction.includes("b")?D.value.y-=t2/L():D.value.y-=I.offsetHeight/2/L();B5(()=>{var h0,s2;M2=Ti(I,t1),P2=Oi(I,t1);const C4=((s2=(h0=f.value)==null?void 0:h0.getScrollContainer())==null?void 0:s2.scrollHeight)||0,e5=r.maxHeight;u1.value=r.maxHeight?Math.min(C4,r.maxHeight):C4;const Z5=M2+I.offsetWidth-o0,a7=P2+u1.value+z1*2-c2;if(f1.value=a7>0,m.value&&Z5>0){const t5=x1+I.offsetWidth-s1,u4=M2;t5>u4?D.value.x-=u4:D.value.x-=t5}if(f1.value){if(m.value){const t5=a7,u4=P2;t5>u4?D.value.y-=u4-z1:D.value.y-=t5-z1}c1.value=c2-(D.value.y+t2)}else c1.value=e5||0})}})}function z(){var K;const I=(K=r.parentMenuItemContext)==null?void 0:K.getElement();if(I){const J=Ti(I,l.container),t1=Oi(I,l.container);D.value.x=J,D.value.y=t1}else{const[J,t1]=l.getPositon();D.value.x=J,D.value.y=t1}B5(()=>{var J;y(O),(J=h.value)==null||J.focus({preventScroll:!0}),l.isOpenedByKeyBoardFlag()&&B5(()=>w(!0)),Y=!0}),S()}return D2(()=>r.show,K=>{K&&z()}),S0(()=>{n.value=!0,r.show?z():S()}),ki(()=>{n.value=!1,e1&&(e1.getSubMenuInstance=()=>{})}),t(U),(K,I)=>{const J=he("ContextSubMenu",!0);return n.value?(B(),C1(np,{key:0,to:`#${M(a)}`},[F(ul,I1({appear:""},M(s).menuTransitionProps||{duration:10},{onAfterLeave:I[0]||(I[0]=t1=>o("closeAnimFinished"))}),{default:R(()=>[!e.destroyOnClose||e.show?v4((B(),j("div",I1({key:0,ref_key:"submenuRoot",ref:H},K.$attrs,{class:["mx-context-menu",M(s).customClass?M(s).customClass:"",M(s).theme??""],style:{maxWidth:e.maxWidth?M(Sx)(e.maxWidth):`${M(Z9).defaultMaxWidth}px`,minWidth:e.minWidth?M(Sx)(e.minWidth):`${M(Z9).defaultMinWidth}px`,zIndex:M(d),left:`${D.value.x}px`,top:`${D.value.y}px`},"data-type":"ContextSubMenu",onClick:N}),[F(M(OJ),{ref_key:"scrollRectRef",ref:f,scroll:"vertical",maxHeight:c1.value,containerClass:"mx-context-menu-scroll"},{default:R(()=>[_("div",{class:v0(["mx-context-menu-items"]),ref_key:"menu",ref:h},[l1(K.$slots,"default",{},()=>[(B(!0),j(J1,null,Z2(e.items,(t1,x1)=>(B(),j(J1,{key:x1},[t1.hidden!==!0&&t1.divided==="up"?(B(),C1(_i,{key:0})):G("",!0),t1.hidden!==!0&&t1.divided==="self"?(B(),C1(_i,{key:1})):(B(),C1(wp,{key:2,clickHandler:t1.onClick?A1=>t1.onClick(A1):void 0,disabled:typeof t1.disabled=="object"?t1.disabled.value:t1.disabled,hidden:typeof t1.hidden=="object"?t1.hidden.value:t1.hidden,icon:t1.icon,iconFontClass:t1.iconFontClass,svgIcon:t1.svgIcon,svgProps:t1.svgProps,label:t1.label,customRender:t1.customRender,customClass:t1.customClass,checked:typeof t1.checked=="object"?t1.checked.value:t1.checked,shortcut:t1.shortcut,clickClose:t1.clickClose,clickableWhenHasChildren:t1.clickableWhenHasChildren,preserveIconWidth:t1.preserveIconWidth!==void 0?t1.preserveIconWidth:M(s).preserveIconWidth,showRightArrow:t1.children&&t1.children.length>0,hasChildren:t1.children&&t1.children.length>0,rawMenuItem:t1,onSubMenuOpen:A1=>{var O1;return(O1=t1.onSubMenuOpen)==null?void 0:O1.call(t1,A1)},onSubMenuClose:A1=>{var O1;return(O1=t1.onSubMenuClose)==null?void 0:O1.call(t1,A1)}},dl({_:2},[t1.children&&t1.children.length>0?{name:"submenu",fn:R(({context:A1,show:O1})=>[F(J,{show:O1,destroyOnClose:e.destroyOnClose,parentMenuItemContext:A1,items:t1.children,maxWidth:t1.maxWidth,minWidth:t1.minWidth,maxHeight:t1.maxHeight,adjustPosition:t1.adjustSubMenuPosition!==void 0?t1.adjustSubMenuPosition:M(s).adjustPosition,direction:t1.direction!==void 0?t1.direction:M(s).direction},null,8,["show","destroyOnClose","parentMenuItemContext","items","maxWidth","minWidth","maxHeight","adjustPosition","direction"])]),key:"0"}:void 0]),1032,["clickHandler","disabled","hidden","icon","iconFontClass","svgIcon","svgProps","label","customRender","customClass","checked","shortcut","clickClose","clickableWhenHasChildren","preserveIconWidth","showRightArrow","hasChildren","rawMenuItem","onSubMenuOpen","onSubMenuClose"])),t1.hidden!==!0&&(t1.divided==="down"||t1.divided===!0)?(B(),C1(_i,{key:3})):G("",!0)],64))),128))])],512)]),_:3},8,["maxHeight"])],16)),[[N4,e.show]]):G("",!0)]),_:3},16)],8,["to"])):G("",!0)}}}),_x=i1({__name:"ContextSubMenuWrapper",props:{options:{type:Object,default:null},show:{type:null,default:null},destroyOnClose:{type:Boolean,default:!0},container:{type:Object,default:null},isFullScreenContainer:{type:Boolean,default:!0}},emits:["close","closeAnimFinished"],setup(e,{expose:t,emit:i}){const r=e,o=i,n=x8(),a=r1(),{options:l,show:s,destroyOnClose:C,container:u}=B8(r);S0(()=>{s.value&&p()}),ki(()=>{H()}),D2(s,b=>{b?p():(Bx(d),H())});const d={closeMenu:L,isClosed:m,getMenuRef:()=>a.value,getMenuDimensions:()=>{var b;return((b=a.value)==null?void 0:b.getMenuDimensions())??{width:0,height:0}}};let c=!1;function p(){f(),gJ(d)}function L(b){c=!0,o("close",b),l.value.menuTransitionProps||o("closeAnimFinished"),Bx(d)}function m(){return c}function f(){setTimeout(()=>{document.addEventListener("click",v,!0),document.addEventListener("contextmenu",v,!0),document.addEventListener("scroll",y,!0),!r.isFullScreenContainer&&u.value&&u.value.addEventListener("scroll",y,!0),l.value.keyboardControl!==!1&&document.addEventListener("keydown",V,!0)},50)}function H(){document.removeEventListener("contextmenu",v,!0),document.removeEventListener("click",v,!0),document.removeEventListener("scroll",y,!0),!r.isFullScreenContainer&&u.value&&u.value.removeEventListener("scroll",y,!0),l.value.keyboardControl!==!1&&document.removeEventListener("keydown",V,!0)}const h=r1();e9("globalSetCurrentSubMenu",b=>h.value=b),e9("globalGetMenuHostId",u.value.id);function V(b){var x,w,E,N,O,Q,Y,P,U,e1,u1,c1,f1;let D=!0;switch(b.key){case"Escape":{((x=h.value)==null?void 0:x.isTopLevel())===!1?(w=h.value)==null||w.closeCurrentSubMenu():L();break}case"ArrowDown":(E=h.value)==null||E.moveCurrentItemDown();break;case"ArrowUp":(N=h.value)==null||N.moveCurrentItemUp();break;case"Home":(O=h.value)==null||O.moveCurrentItemFirst();break;case"End":(Q=h.value)==null||Q.moveCurrentItemLast();break;case"ArrowLeft":{(Y=h.value)!=null&&Y.closeSelfAndActiveParent()||(U=(P=l.value).onKeyFocusMoveLeft)==null||U.call(P);break}case"ArrowRight":(e1=h.value)!=null&&e1.openCurrentItemSubMenu()||(c1=(u1=l.value).onKeyFocusMoveRight)==null||c1.call(u1);break;case"Enter":(f1=h.value)==null||f1.triggerCurrentItemClick(b);break;default:D=!1;break}D&&h.value&&(b.stopPropagation(),b.preventDefault())}function y(b){l.value.closeWhenScroll!==!1&&g(b.target,null)}function v(b){g(b.target,b)}function g(b,x){for(var w,E;b;){if(b.classList&&b.classList.contains("mx-context-menu"))return;b=b.parentNode}x?l.value.clickCloseOnOutside!==!1?(H(),L()):(E=(w=l.value).onClickOnOutside)==null||E.call(w,x):(H(),L())}return e9("globalOptions",l),e9("globalCloseMenu",L),e9("globalIsFullScreenContainer",r.isFullScreenContainer),e9("globalHasSlot",b=>n[b]!==void 0),e9("globalRenderSlot",(b,x)=>l1(n,b,{...x},()=>[r5("span","Render slot failed")],!1)),e9("menuContext",{zIndex:l.value.zIndex||Z9.defaultZindex,container:u.value,adjustPadding:{x:0,y:0},getZoom:()=>l.value.zoom||Z9.defaultZoom,getParentWidth:()=>0,getParentHeight:()=>0,getPositon:()=>[l.value.x,l.value.y],closeOtherSubMenuWithTimeOut:()=>{},checkCloseOtherSubMenuTimeOut:()=>!1,addOpenedSubMenu:()=>{},closeOtherSubMenu:()=>{},getParentContext:()=>null,getSubMenuInstanceContext:()=>null,getElement:()=>null,addChildMenuItem:()=>{},removeChildMenuItem:()=>{},markActiveMenuItem:()=>{},markThisOpenedByKeyBoard:()=>{},isOpenedByKeyBoardFlag:()=>!1,isMenuItemDataCollectedFlag:()=>!1}),t(d),(b,x)=>(B(),C1(xp,{ref_key:"submenuInstance",ref:a,show:M(s),destroyOnClose:M(C),items:M(l).items,adjustPosition:M(l).adjustPosition,maxWidth:M(l).maxWidth||M(Z9).defaultMaxWidth,minWidth:M(l).minWidth||M(Z9).defaultMinWidth,maxHeight:M(l).maxHeight,direction:M(l).direction||M(Z9).defaultDirection,onCloseAnimFinished:x[0]||(x[0]=w=>o("closeAnimFinished"))},{default:R(()=>[l1(b.$slots,"default")]),_:3},8,["show","destroyOnClose","items","adjustPosition","maxWidth","minWidth","maxHeight","direction"]))}}),tQ=i1({__name:"ContextMenu",props:{options:{type:Object,default:null},show:{type:Boolean,default:!1},destroyOnClose:{type:Boolean,default:!0}},emits:["update:show","close"],setup(e,{expose:t,emit:i}){const r=i,o=e,{options:n,show:a,destroyOnClose:l}=B8(o),{isNew:s,container:C,eleId:u}=kx(n.value),d=r1(null),c=x8();function p(L){var m,f;r("update:show",!1),r("close"),(f=(m=n.value).onClose)==null||f.call(m,L)}return t({closeMenu:()=>r("update:show",!1),isClosed:()=>!a.value,getMenuRef:()=>{var L;return(L=d.value)==null?void 0:L.getMenuRef()},getMenuDimensions:()=>{var L;return((L=d.value)==null?void 0:L.getMenuDimensions())??{width:0,height:0}}}),(L,m)=>(B(),C1(np,{to:`#${M(u)}`},[F(_x,{ref_key:"menuRef",ref:d,options:M(n),show:M(a),destroyOnClose:M(l),container:M(C),isFullScreenContainer:!M(s),onClose:p},dl({_:2},[Z2(M(c),(f,H)=>({name:H,fn:R(h=>[l1(L.$slots,H,cl(pl(h)))])}))]),1032,["options","show","destroyOnClose","container","isFullScreenContainer"])],8,["to"]))}}),iQ=i1({name:"ContextMenuGroup",props:{disabled:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},clickHandler:{type:Function,default:null},label:{type:String,default:""},icon:{type:String,default:""},iconFontClass:{type:String,default:"iconfont"},checked:{type:Boolean,default:!1},shortcut:{type:String,default:""},svgIcon:{type:String,default:""},svgProps:{type:Object,default:null},preserveIconWidth:{type:Boolean,default:!0},showRightArrow:{type:Boolean,default:!1},clickClose:{type:Boolean,default:!0},adjustSubMenuPosition:{type:Boolean,default:void 0},maxHeight:{type:[String,Number],default:0},maxWidth:{type:[String,Number],default:0},minWidth:{type:[String,Number],default:0}},setup(e,t){const i=q0("globalOptions"),{adjustSubMenuPosition:r,maxWidth:o,minWidth:n,maxHeight:a}=B8(e),l=typeof r.value<"u"?r.value:i.value.adjustPosition,s=r1(),C=r1();return t.expose({getSubMenuRef:()=>s.value,getMenuItemRef:()=>C.value}),()=>r5(wp,{...e,ref:C,showRightArrow:!0,maxWidth:void 0,minWidth:void 0,maxHeight:void 0,adjustSubMenuPosition:void 0,hasChildren:typeof t.slots.default!==void 0},t.slots.default?{submenu:u=>r5(xp,{ref:s,show:u.show,maxWidth:o.value,minWidth:n.value,maxHeight:a.value,adjustPosition:l,parentMenuItemContext:u.context},{default:t.slots.default}),...BJ(t.slots,"default")}:t.slots)}});function rQ(e,t,i,r){const o=r1(!0),n=r5(_x,{options:e,show:o,container:t,isFullScreenContainer:!i,onCloseAnimFinished:()=>{p7(null,t)},onClose:a=>{var l;(l=e.onClose)==null||l.call(e,a),o.value=!1}},r);return p7(n,t),n.component}function Px(e,t){const i=kx(e);return rQ(e,i.container,i.isNew,t).exposed}const Ix={install(e){e.config.globalProperties.$contextmenu=Px,e.component("ContextMenu",tQ),e.component("ContextMenuItem",wp),e.component("ContextMenuGroup",iQ),e.component("ContextMenuSperator",_i),e.component("ContextMenuSeparator",_i),e.component("ContextSubMenu",xp)},showContextMenu(e,t){return Px(e,t)},isAnyContextMenuOpen(){return bJ()},closeContextMenu:Ex,transformMenuPosition:MJ},oQ={class:"me-nav"},nQ=["onContextmenu"],aQ=i1({name:"me-nav"});var lQ=i1({...aQ,props:E2({tabList:{type:Array,required:!0,default:()=>[]},menuHandle:{type:Function,required:!1,default:()=>null},tabProps:{type:Object,required:!1,default:()=>({key:"path",name:"path",label:"title"})}},{modelValue:{type:[String,Number]},modelModifiers:{}}),emits:E2(["changeTabEmit","removeTabEmit"],["update:modelValue"]),setup(e,{emit:t}){const i=e,r=t,o=W2(e,"modelValue"),n=r1(""),a=o.value?o:n.value,l=(u,d,c)=>{u.preventDefault();const p=i.menuHandle(d,c)||[];d.isHome||p.splice(0,0,{label:d.lock?"\u89E3\u9501":"\u9501\u5B9A",icon:r5(E1,{name:d.lock?"ri-lock-unlock-line":"ri-lock-line"}),divided:!0,onClick:()=>{d.lock=!d.lock}}),Ix.showContextMenu({theme:"default",x:u.x,y:u.y,items:p})},s=u=>{r("removeTabEmit",u.toString())},C=u=>{r("changeTabEmit",u)};return(u,d)=>(B(),j("div",oQ,[F(M($w),{modelValue:M(a),"onUpdate:modelValue":d[0]||(d[0]=c=>hl(a)?a.value=c:null),type:"card",class:"me-tabs",onTabChange:C,onTabRemove:s},{default:R(()=>[(B(!0),j(J1,null,Z2(e.tabList,(c,p)=>(B(),C1(M(Rw),I1({key:c[e.tabProps.key],label:c[e.tabProps.label],name:c[e.tabProps.name],closable:!c.isHome&&!c.lock,style:{"vertical-align":"middle"}},{ref_for:!0},u.$attrs),{label:R(()=>[_("div",{class:"tabs-item-label",onContextmenu:L=>l(L,c,p)},[c.icon?(B(),C1(M(E1),{key:0,style:{"margin-right":"3px"},name:c.icon},null,8,["name"])):G("v-if",!0),_("span",null,b1(c.title),1),c.lock?(B(),C1(M(E1),{key:1,size:12,style:{"padding-left":"3px"},name:"ri-lock-line"})):G("v-if",!0)],40,nQ)]),_:2},1040,["label","name","closable"]))),128))]),_:1},8,["modelValue"])]))}});const jx=_1(lQ);function Nx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gl={exports:{}},sQ=gl.exports,$x;function CQ(){return $x||($x=1,(function(e,t){(function(i,r){e.exports=r()})(sQ,(function(){var i="day";return function(r,o,n){var a=function(C){return C.add(4-C.isoWeekday(),i)},l=o.prototype;l.isoWeekYear=function(){return a(this).year()},l.isoWeek=function(C){if(!this.$utils().u(C))return this.add(7*(C-this.isoWeek()),i);var u,d,c,p,L=a(this),m=(u=this.isoWeekYear(),d=this.$u,c=(d?n.utc:n)().year(u).startOf("year"),p=4-c.isoWeekday(),c.isoWeekday()>4&&(p+=7),c.add(p,i));return L.diff(m,"week")+1},l.isoWeekday=function(C){return this.$utils().u(C)?this.day()||7:this.day(this.day()%7?C:C-7)};var s=l.startOf;l.startOf=function(C,u){var d=this.$utils(),c=!!d.u(u)||u;return d.p(C)==="isoweek"?c?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):s.bind(this)(C,u)}}}))})(gl)),gl.exports}var uQ=CQ(),dQ=Nx(uQ);const cQ={class:"week-day-list"},pQ={class:"list"},hQ=["onClick"],fQ={class:"week-name"},mQ={class:"day"};var LQ=i1({__name:"week-day-list",props:{modelValue:{type:String,required:!0,default:""},prevWeekLabel:{type:String,required:!1,default:"\u4E0A\u4E00\u5468"},nextWeekLabel:{type:String,required:!1,default:"\u4E0B\u4E00\u5468"},weekLabels:{type:Array,required:!1,default:()=>["\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D","\u5468\u65E5"]}},emits:["update:modelValue","change"],setup(e,{emit:t}){o5.extend(dQ);const i=t,r=e,o=r1(3),n=r1(0),a=r1([]),l=p1(()=>a.value[o.value]?.day);function s(){const c=r.weekLabels,p=o5().startOf("isoWeek").add(n.value,"week"),L=c?.map((m,f)=>({label:m,day:p.add(f,"day").format("YYYY-MM-DD")}));if(console.log(p.format("YYYY-MM-DD"),L),!a.value.length){const m=o5().format("YYYY-MM-DD"),f=L.findIndex(H=>H.day===m);o.value=f||0}a.value=L}function C(c,p=!0){const L=o5(c);if(!L.isValid())throw new Error("\u4F20\u5165\u7684\u65E5\u671F\u683C\u5F0F\u65E0\u6548\uFF0C\u8BF7\u4F7F\u7528 YYYY-MM-DD \u683C\u5F0F");let m;p?m=L.day()===0?L.subtract(6,"day"):L.subtract(L.day()-1,"day"):m=L.subtract(L.day(),"day");const f=[];for(let H=0;H<7;H++){const h=m.add(H,"day");f.push(h.format("YYYY-MM-DD"))}return f}const u=()=>{n.value--,s()},d=()=>{n.value++,s()};return D2(()=>r.modelValue,c=>{const p=C(c);a.value=p?.map((m,f)=>({label:r.weekLabels[f],day:m}));const L=a.value.findIndex(m=>m.day==c);o.value=L||0}),D2(l,c=>{i("update:modelValue",c),i("change",c)}),TG(()=>{s()}),(c,p)=>(B(),j("div",cQ,[F(M(n5),{onClick:u},{default:R(()=>[F(M(E1),{name:"ri-arrow-left-s-fill"}),P1(" "+b1(e.prevWeekLabel),1)]),_:1}),_("div",pQ,[(B(!0),j(J1,null,Z2(a.value,(L,m)=>(B(),j("div",{key:m,class:v0(["item",{active:m===o.value}]),onClick:f=>o.value=m},[_("div",fQ,b1(L.label),1),_("div",mQ,b1(M(o5)(L.day).format("MM-DD")),1)],10,hQ))),128))]),F(M(n5),{onClick:d},{default:R(()=>[P1(b1(e.nextWeekLabel)+" ",1),F(M(E1),{name:"ri-arrow-right-s-fill"})]),_:1})]))}});const HQ={class:"me-week-calendar"},VQ={class:"first-td"},yQ={colspan:"2"},vQ={key:0},bQ={colspan:"3"},gQ={key:0,style:{"margin-top":"10px"}},MQ=i1({name:"me-week-calendar"});var ZQ=i1({...MQ,props:E2({data:{type:Array,required:!1,default:()=>[]},loading:{type:Boolean,required:!1,default:!1},rowHeaderLabel:{type:String,required:!1,default:"\u65F6\u95F4"},colHeaderLabel:{type:String,required:!1,default:"\u5458\u5DE5"},prevWeekLabel:{type:String,required:!1},nextWeekLabel:{type:String,required:!1},weekLabels:{type:Array,required:!1}},{modelValue:{type:null},modelModifiers:{}}),emits:E2(["change"],["update:modelValue"]),setup(e,{emit:t}){const i=e,r=W2(e,"modelValue"),o=t,n=()=>{o("change",r.value)};return(a,l)=>{const s=Fw("loading");return B(),j("table",HQ,[l[2]||(l[2]=_("colgroup",null,[_("col",{style:{width:"170px"}}),_("col"),_("col",{style:{width:"100px"}})],-1)),_("thead",null,[_("tr",null,[_("td",VQ,[l[1]||(l[1]=_("svg",{class:"thead-svg",height:"100%",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[_("line",{stroke:"var(--border-color)","stroke-width":"1",x1:"0",x2:"100%",y1:"0",y2:"100%"})],-1)),_("span",null,[l1(a.$slots,"colHeader",{},()=>[P1(b1(e.colHeaderLabel),1)])]),_("span",null,[l1(a.$slots,"rowHeader",{},()=>[P1(b1(e.rowHeaderLabel),1)])])]),_("td",yQ,[F(LQ,I1(a.$attrs,{modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=C=>r.value=C),onChange:n}),null,16,["modelValue"])])])]),v4((B(),j("tbody",null,[i.data.length?(B(!0),j(J1,{key:1},Z2(i.data,(C,u)=>(B(),j("tr",{key:C.id},[l1(a.$slots,"row",{row:C,index:u})]))),128)):(B(),j("tr",vQ,[_("td",bQ,[F(M(zG))])]))])),[[s,i.loading]]),a.$slots.footer?(B(),j("div",gQ,[l1(a.$slots,"footer")])):G("v-if",!0)])}}}),wQ=(e,t)=>{const i=e.__vccOpts||e;for(const[r,o]of t)i[r]=o;return i};const xQ={};function BQ(e,t){return B(),j("td",null,[l1(e.$slots,"default")])}var EQ=wQ(xQ,[["render",BQ]]);const Rx=_1(ZQ),zx=_1(EQ);function kQ(e){return{name:"element-tree-line",props:{node:{type:Object,required:!0},data:{type:Object},treeData:{type:Array},indent:{type:Number,default(){return 16}},showLabelLine:{type:Boolean,default:!0}},render(t){const i=e||t,r=this.getScopedSlot("default"),o=this.getScopedSlot("node-label"),n=this.getScopedSlot("after-node-label"),a=r?this.getScopedSlotValue(r,{node:this.node,data:this.data}):[o?this.getScopedSlotValue(o,{node:this.node,data:this.data}):i("span",{class:"element-tree-node-label"},this.node.label),this.showLabelLine?i("span",{class:"element-tree-node-label-line"}):null,this.getScopedSlotValue(n,{node:this.node,data:this.data})],l=[];let s=this.node;for(;s;){let u=s.parent;if(s.level===1&&!s.parent){if(!this.treeData||!Array.isArray(this.treeData))throw Error("if you using el-tree-v2 (Virtualized Tree) of element-plus,element-tree-line required data.");u={children:Array.isArray(this.treeData)?this.treeData.map(d=>({...d,key:d.id})):[],level:0,key:"node-0",parent:null}}if(u){const d=(u.children||u.childNodes).findIndex(c=>(c.key||c.id)===(s.key||s.id));l.unshift(d===(u.children||u.childNodes).length-1)}s=u}const C=[];for(let u=0;u<this.node.level;u++)l[u]&&this.node.level-1!==u||C.push(i("span",{class:{"element-tree-node-line-ver":!0,"last-node-isLeaf-line":l[u]&&this.node.level-1===u},style:{left:this.indent*u+"px"}}));return i("span",{class:"element-tree-node-label-wrapper"},[a].concat(C).concat([i("span",{class:"element-tree-node-line-hor",style:{width:(this.node.isLeaf?24:8)+"px",left:(this.node.level-1)*this.indent+"px"}})]))},methods:{getScopedSlot(t){if(!t)return null;const i=t.split("||");let r=null;for(let o=0;o<i.length;o++){const n=i[o],a=(this.$slots||{})[n];if(a){r=a;break}if(r=(this.$scopedSlots||{})[n],r)break}return r},getScopedSlotValue(t,i,r=null){return typeof t=="function"?t(i)||r:t||r}}}}function Bp(e){const t=kQ(e);return e&&(t.methods.getScopedSlot=function(r){if(!r)return null;const o=r.split("||");let n=null;for(let a=0;a<o.length;a++){const l=o[a],s=(this.$slots||{})[l];if(s){n=s;break}}return n}),t}Bp();const SQ={class:"title flex-center"};var DQ=i1({__name:"tree-menu-card",props:{title:{type:String,default:""},icon:{type:String,default:""}},setup(e){return(t,i)=>(B(),C1(M(qG),I1({class:"me-tree-menu-card"},t.$attrs,{shadow:"never"}),{header:R(()=>[_("span",SQ,[e.icon?(B(),C1(M(E1),{key:0,name:e.icon,prefix:"",style:{"margin-right":"5px"}},null,8,["name"])):G("v-if",!0),P1(" "+b1(e.title),1)]),_("div",null,[l1(t.$slots,"header-right")])]),default:R(()=>[l1(t.$slots,"default")]),_:3},16))}});const AQ={class:"me-icon-selector"},OQ={style:{display:"flex","align-items":"center"}},TQ={class:"me-icon-selector__list"},FQ=["onClick"],_Q=i1({name:"me-icon-selector"});var PQ=i1({..._Q,props:E2({iconfontData:{type:Array,required:!1,default:()=>[]},localData:{type:Array,required:!1,default:()=>[]}},{modelValue:{type:String,default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,i=new XMLHttpRequest;i.open("GET",ix,!1),i.send();var r=new DOMParser,o=r.parseFromString(i.responseText,"text/html");const n=o.querySelectorAll('[id^="ri-"]'),a=Array.from(n).map(f=>f.getAttribute("id")),l=r1("remix"),s=r1(),C=W2(e,"modelValue"),u={remix:{label:"remix",data:a},iconfont:{label:"iconfont",data:t.iconfontData},local:{label:"\u672C\u5730\u56FE\u6807",data:t.localData}},d=r1(""),c=r1({pageIndex:1,pageSize:30}),p=p1(()=>u[l.value].data.filter(f=>f.indexOf(d.value)!==-1)),L=p1(()=>{const{pageIndex:f,pageSize:H}=c.value;return p.value.slice((f-1)*H,f*H)}),m=f=>{C.value=f,s.value.hide()};return(f,H)=>(B(),j("div",AQ,[F(M(D0),{modelValue:C.value,"onUpdate:modelValue":H[3]||(H[3]=h=>C.value=h),clearable:"",placeholder:"\u9009\u62E9\u56FE\u6807"},{prepend:R(()=>[F(M(E1),{name:C.value},null,8,["name"])]),append:R(()=>[F(M(Ll),{ref_key:"popoverRef",ref:s,"hide-after":0,"popper-class":"icon-selector-popper",trigger:"click",width:280},{reference:R(()=>[l1(f.$slots,"default",{},()=>[F(M(n5),null,{default:R(()=>[...H[4]||(H[4]=[P1(" \u9009\u62E9 ",-1)])]),_:1})])]),default:R(()=>[_("div",OQ,[F(M(D0),{modelValue:d.value,"onUpdate:modelValue":H[0]||(H[0]=h=>d.value=h),clearable:"",placeholder:"\u641C\u7D22\u56FE\u6807"},null,8,["modelValue"])]),F(M($w),{modelValue:l.value,"onUpdate:modelValue":H[1]||(H[1]=h=>l.value=h),class:"demo-tabs"},{default:R(()=>[(B(),j(J1,null,Z2(u,(h,V)=>F(M(Rw),{key:V,label:h.label,name:V},null,8,["label","name"])),64))]),_:1},8,["modelValue"]),_("div",TQ,[(B(!0),j(J1,null,Z2(L.value,(h,V)=>(B(),j("div",{key:V,class:"icon-item flex-center",onClick:y=>m(h)},[F(M(E1),{name:h},null,8,["name"])],8,FQ))),128))]),l.value==="remix"?(B(),C1(M(UG),{key:0,href:"https://www.remixicon.cn/",target:"_blank",type:"primary"},{default:R(()=>[...H[5]||(H[5]=[P1("https://www.remixicon.cn",-1)])]),_:1})):G("v-if",!0),F(M(zw),{background:"","current-page":c.value.pageIndex,layout:"total, prev, next","page-size":c.value.pageSize,total:u[l.value].data.length,onCurrentChange:H[2]||(H[2]=h=>c.value.pageIndex=h)},null,8,["current-page","page-size","total"])]),_:3},512)]),_:3},8,["modelValue"])]))}});const Ep=_1(PQ);var IQ=Object.defineProperty,Ml=Object.getOwnPropertySymbols,qx=Object.prototype.hasOwnProperty,Ux=Object.prototype.propertyIsEnumerable,Wx=(e,t,i)=>t in e?IQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,ye=(e,t)=>{for(var i in t||(t={}))qx.call(t,i)&&Wx(e,i,t[i]);if(Ml)for(var i of Ml(t))Ux.call(t,i)&&Wx(e,i,t[i]);return e},Gx=(e,t)=>{var i={};for(var r in e)qx.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(e!=null&&Ml)for(var r of Ml(e))t.indexOf(r)<0&&Ux.call(e,r)&&(i[r]=e[r]);return i};const Kx="[vue-draggable-plus]: ";function jQ(e){console.warn(Kx+e)}function NQ(e){console.error(Kx+e)}function Yx(e,t,i){return i>=0&&i<e.length&&e.splice(i,0,e.splice(t,1)[0]),e}function $Q(e){return e.replace(/-(\w)/g,(t,i)=>i?i.toUpperCase():"")}function RQ(e){return Object.keys(e).reduce((t,i)=>(typeof e[i]<"u"&&(t[$Q(i)]=e[i]),t),{})}function Xx(e,t){return Array.isArray(e)&&e.splice(t,1),e}function Jx(e,t,i){return Array.isArray(e)&&e.splice(t,0,i),e}function zQ(e){return typeof e>"u"}function qQ(e){return typeof e=="string"}function Qx(e,t,i){const r=e.children[i];e.insertBefore(t,r)}function kp(e){e.parentNode&&e.parentNode.removeChild(e)}function UQ(e,t=document){var i;let r=null;return typeof t?.querySelector=="function"?r=(i=t?.querySelector)==null?void 0:i.call(t,e):r=document.querySelector(e),r||jQ(`Element not found: ${e}`),r}function WQ(e,t,i=null){return function(...r){return e.apply(i,r),t.apply(i,r)}}function GQ(e,t){const i=ye({},e);return Object.keys(t).forEach(r=>{i[r]?i[r]=WQ(e[r],t[r]):i[r]=t[r]}),i}function KQ(e){return e instanceof HTMLElement}function eB(e,t){Object.keys(e).forEach(i=>{t(i,e[i])})}function YQ(e){return e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97)}const XQ=Object.assign;/**!
20
20
  * Sortable 1.15.2
21
21
  * @author RubaXa <trash@rubaxa.org>
22
22
  * @author owenm <owen23355@gmail.com>