@vtj/ui 0.6.10 → 0.6.11
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.
- package/cdn/index.js +1 -1
- package/cdn/style.css +1 -1
- package/lib/index.js +774 -634
- package/lib/style.css +1 -1
- package/package.json +5 -5
- package/types/components/field/Field.d.ts +88 -2
- package/types/components/field/editors/SelectEditor.d.ts +3 -0
- package/types/components/field/hooks/index.d.ts +1 -0
- package/types/components/field/hooks/useEditor.d.ts +8 -0
- package/types/components/field/types.d.ts +45 -5
- package/types/version.d.ts +1 -1
package/cdn/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(c,E){typeof exports=="object"&&typeof module!="undefined"?E(exports):typeof define=="function"&&define.amd?define(["exports"],E):(c=typeof globalThis!="undefined"?globalThis:c||self,E(c.VtjUI={}))})(this,function(c){"use strict";var Lt=Object.defineProperty,Xt=Object.defineProperties;var Ht=Object.getOwnPropertyDescriptors;var Le=Object.getOwnPropertySymbols;var Wt=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable;var be=(c,E,S)=>E in c?Lt(c,E,{enumerable:!0,configurable:!0,writable:!0,value:S}):c[E]=S,N=(c,E)=>{for(var S in E||(E={}))Wt.call(E,S)&&be(c,S,E[S]);if(Le)for(var S of Le(E))Qt.call(E,S)&&be(c,S,E[S]);return c},D=(c,E)=>Xt(c,Ht(E));var $=(c,E,S)=>(be(c,typeof E!="symbol"?E+"":E,S),S);var P=(c,E,S)=>new Promise((L,G)=>{var le=R=>{try{X(S.next(R))}catch(Q){G(Q)}},ae=R=>{try{X(S.throw(R))}catch(Q){G(Q)}},X=R=>R.done?L(R.value):Promise.resolve(R.value).then(le,ae);X((S=S.apply(c,E)).next())});const E="";function S(o){return typeof o=="string"?o:`${o}px`}function L(o=0,e){if(typeof o=="number")return o;if(/(%|vh|vw)$/i.test(o)){const n=Number.parseInt(o);return Math.floor(e*n/100)}return Number.parseInt(o)}function G(o,e){const t={};return Object.keys(o).forEach(n=>{e.includes(n)||(t[n]=o[n])}),t}function le(o,e){const t={};return Object.keys(o).forEach(n=>{e.includes(n)&&(t[n]=o[n])}),t}const ae=()=>{},X=Symbol("INSTALLED_KEY"),R=(o=[])=>({install:t=>{t[X]||(t[X]=!0,o.forEach(n=>{n.name&&t.component(n.name,n)}))}}),Q="data:image/png;base64,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",Xe={class:"x-startup"},He={class:"brand"},We=["src"],Qe=Vue.createElementVNode("h3",null,[Vue.createTextVNode("基于 "),Vue.createElementVNode("span",null,"Vue3 + TypeScript"),Vue.createTextVNode(" 的低代码设计器引擎")],-1),Ke={class:"btn"},Ze=Vue.createElementVNode("div",{class:"ba"},[Vue.createElementVNode("a",{href:"http://beian.miit.gov.cn/"},"粤ICP备2023104074号")],-1),we=Vue.defineComponent({name:"XStartup",__name:"Startup",props:{text:{default:"VTJ.PRO"},link:{default:"/"},example:{}},setup(o){const e=o,t=()=>{location.href=e.link+"#/?startup"},n=()=>{e.example&&e.example(e.link)};return(l,r)=>(Vue.openBlock(),Vue.createElementBlock("div",Xe,[Vue.renderSlot(l.$slots,"default",{},()=>[Vue.createElementVNode("div",null,[Vue.createElementVNode("div",He,[Vue.createElementVNode("img",{src:Vue.unref(Q)},null,8,We),Vue.createElementVNode("h1",null,Vue.toDisplayString(e.text),1)]),Vue.createVNode(Vue.unref(ElementPlus.ElDivider)),Qe,Vue.createElementVNode("div",Ke,[Vue.createVNode(Vue.unref(ElementPlus.ElButton),{onClick:t,type:"primary",round:"",size:"large",icon:Vue.unref(ElementPlusIconsVue.VideoPlay)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 立即开始体验 ")]),_:1},8,["icon"]),e.example?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElButton),{key:0,onClick:n,type:"default",round:"",size:"large",icon:Vue.unref(ElementPlusIconsVue.Document)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 加载示例项目 ")]),_:1},8,["icon"])):Vue.createCommentVNode("",!0)])])]),Ze]))}}),Kt="",Ce={default:14,small:12,large:18},_e={icon:{type:[String,Object]},color:{type:String},size:{type:[Number,String],default:"inherit"},src:{type:String}},Je=["src"],O=Vue.defineComponent({name:"XIcon",__name:"Icon",props:_e,setup(o){const e=o,t=Vue.useAttrs(),n=Vue.getCurrentInstance(),l=Vue.computed(()=>{if(!e.icon)return null;const s=n==null?void 0:n.appContext.app;return typeof e.icon=="object"?Vue.markRaw(e.icon):(s==null?void 0:s.component(e.icon))||e.icon}),r=Vue.computed(()=>{const s={"is-pointer":!!t.onClick};return!l.value&&e.icon&&(s[e.icon]=!0),s}),u=Vue.computed(()=>{var s;return typeof e.size=="number"?e.size:(s=Ce[e.size])!=null?s:void 0});return(s,a)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElIcon),{class:Vue.normalizeClass(["x-icon",r.value]),color:e.color,size:u.value},{default:Vue.withCtx(()=>[Vue.renderSlot(s.$slots,"default",{},()=>[l.value?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(l.value),{key:0})):Vue.createCommentVNode("",!0),e.src?(Vue.openBlock(),Vue.createElementBlock("img",{key:1,src:e.src},null,8,Je)):Vue.createCommentVNode("",!0)])]),_:3},8,["class","color","size"]))}}),Ye={class:"x-menu__wrapper"},Ge={key:1,class:"x-menu__title"},qe=Vue.createElementVNode("i",null,null,-1),et={key:0,class:"x-menu__title"},tt=Vue.createElementVNode("i",null,null,-1),Be=Vue.defineComponent({inheritAttrs:!1,name:"XMenuItem",__name:"MenuItem",props:{item:{},subMenu:{},defaultIcon:{type:[Object,Function]}},setup(o){const e=o,t=Vue.getCurrentInstance(),n=u=>{if(u){if(typeof u=="string"){const s=t==null?void 0:t.appContext.app;return(s==null?void 0:s.component(u))||e.defaultIcon||u}return u}},l=u=>typeof u=="object"?u:{value:u},r=(u=[])=>u.filter(s=>!s.hidden);return(u,s)=>e.item.children?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElSubMenu),Vue.mergeProps({key:0,disabled:e.item.disabled},e.subMenu,{index:String(e.item.id)}),{title:Vue.withCtx(()=>[Vue.createElementVNode("div",Ye,[e.item.icon?(Vue.openBlock(),Vue.createBlock(Vue.unref(O),{key:0,icon:n(e.item.icon)},null,8,["icon"])):Vue.createCommentVNode("",!0),e.item.title?(Vue.openBlock(),Vue.createElementBlock("span",Ge,Vue.toDisplayString(e.item.title),1)):Vue.createCommentVNode("",!0),e.item.badge?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElBadge),Vue.mergeProps({key:2,class:"x-menu__badge"},l(e.item.badge)),{default:Vue.withCtx(()=>[qe]),_:1},16)):Vue.createCommentVNode("",!0)])]),default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(r(e.item.children),a=>(Vue.openBlock(),Vue.createBlock(Vue.unref(Be),{key:a.id,item:a,subMenu:e.subMenu,defaultIcon:e.defaultIcon},null,8,["item","subMenu","defaultIcon"]))),128))]),_:1},16,["disabled","index"])):(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElMenuItem),{key:1,index:String(e.item.id),disabled:e.item.disabled},{title:Vue.withCtx(()=>[e.item.title?(Vue.openBlock(),Vue.createElementBlock("span",et,Vue.toDisplayString(e.item.title),1)):Vue.createCommentVNode("",!0),e.item.badge?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElBadge),Vue.mergeProps({key:1,class:"x-menu__badge"},l(e.item.badge)),{default:Vue.withCtx(()=>[tt]),_:1},16)):Vue.createCommentVNode("",!0)]),default:Vue.withCtx(()=>[e.item.icon?(Vue.openBlock(),Vue.createBlock(Vue.unref(O),{key:0,icon:n(e.item.icon)},null,8,["icon"])):Vue.createCommentVNode("",!0)]),_:1},8,["index","disabled"]))}}),F=Vue.defineComponent({inheritAttrs:!1,name:"XMenu",__name:"Menu",props:{data:{default:()=>[]},subMenu:{},defaultIcon:{}},emits:["select"],setup(o,{emit:e}){const t=o,n=Vue.computed(()=>t.data.filter(u=>!u.hidden)),l=(u,s)=>{const a=(i,d=[])=>{var m;for(const g of d){if(g.id.toString()===i.toString())return g;if((m=g.children)!=null&&m.length){const B=a(i,g.children);if(B)return B}}};return a(s,u)},r=u=>{const s=l(n.value,u);s&&e("select",s)};return(u,s)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElMenu),Vue.mergeProps({class:"x-menu"},u.$attrs,{onSelect:r}),{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.value,a=>(Vue.openBlock(),Vue.createBlock(Vue.unref(Be),{item:D(N({},a),{icon:a.icon||Vue.unref(ElementPlusIconsVue.Menu)}),defaultIcon:t.defaultIcon,subMenu:t.subMenu},null,8,["item","defaultIcon","subMenu"]))),256))]),_:1},16))}}),nt={class:"x-simple-mask__brand"},ot={class:"x-simple-mask__aciton"},Ee=Vue.defineComponent({name:"XSimpleMask",__name:"SimpleMask",props:{preview:{type:Boolean},project:{default:()=>({name:"Logo",home:"/"})},menu:{}},setup(o,{expose:e}){const t=o,n=VueRouter.useRouter(),l=VueRouter.useRoute(),r=Vue.computed(()=>l.params.id),u=()=>{const a=t.project.home;a&&n.push(a)},s=a=>{const i=a==null?void 0:a.id;if(i){const m=`${t.preview?"/preview":t.project.page}/${i}`;n.push(m)}};return e({goHome:u}),(a,i)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElContainer),{class:"x-simple-mask"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ElementPlus.ElHeader),{class:"x-simple-mask__header"},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",nt,[Vue.createElementVNode("span",{class:"x-simple-mask__logo",onClick:u},[Vue.renderSlot(a.$slots,"logo",{},()=>[Vue.createTextVNode(Vue.toDisplayString(t.project.name),1)])])]),Vue.createElementVNode("div",ot,[Vue.renderSlot(a.$slots,"action")])]),_:3}),Vue.createVNode(Vue.unref(ElementPlus.ElContainer),null,{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ElementPlus.ElAside),{class:"x-simple-mask__aside"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(F),Vue.mergeProps(t.menu,{"default-active":r.value,onSelect:s}),null,16,["default-active"])]),_:1}),Vue.createVNode(Vue.unref(ElementPlus.ElMain),{class:"x-simple-mask__main"},{default:Vue.withCtx(()=>[Vue.renderSlot(a.$slots,"default",{},()=>[Vue.createVNode(Vue.unref(VueRouter.RouterView))])]),_:3})]),_:3}),a.$slots.footer?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElFooter),{key:0,class:"x-simple-mask__footer",height:"40px"},{default:Vue.withCtx(()=>[Vue.renderSlot(a.$slots,"footer")]),_:3})):Vue.createCommentVNode("",!0)]),_:3}))}}),re={name:{type:String},label:{type:String},value:{type:[String,Number,Object,Array,Boolean]},icon:{type:[String,Object]},mode:{type:String,default:"button"},menus:{type:Array},tooltip:{type:[String,Object]},badge:{type:[String,Number,Object]},dropdown:{type:Object},button:{type:Object},disabled:{type:[Boolean,Function]},size:{type:String,default:"default"},type:{type:String,default:"primary"},background:{type:String,default:"always"},circle:{type:Boolean}};function ut(o){return Vue.computed(()=>{const e=o.tooltip;if(e)return typeof e=="string"?{content:e}:e})}function lt(o){return Vue.computed(()=>{const e=o.badge;if(e)return typeof e=="object"?e:{value:e}})}function at(o){return Vue.computed(()=>{const{dropdown:e,menus:t}=o;if(t&&t.length>0)return Object.assign({popperClass:"x-action__menus",size:o.size},e||{})})}function Se(o){const e=Vue.getCurrentInstance();return Vue.computed(()=>{const t=Vue.unref(o);if(t)if(typeof t=="string"||t.setup||t.render||Vue.isVNode(t)){const n=e==null?void 0:e.appContext.app;return{icon:typeof t=="string"&&(n==null?void 0:n.component(t))||t}}else return t;return null})}function J(o){const e=Se(o);return e.value?Vue.markRaw(Vue.defineComponent({render:()=>Vue.h(O,e.value)})):null}function q(o,e){return Vue.computed(()=>{const t=Vue.unref(o);return typeof t=="function"?t(e):!!t})}const rt={key:0},st=Vue.defineComponent({__name:"Trigger",props:re,emits:["click"],setup(o,{emit:e}){const t=o,n=J(Vue.toRef(t,"icon")),l=q(Vue.toRef(t,"disabled")),r=Vue.computed(()=>({[`is-${t.mode}`]:!!t.mode,[`is-${t.type}`]:!!t.type,[`is-${t.size}`]:!!t.size&&t.size!=="default",[`is-background-${t.background}`]:t.mode==="icon"&&!!t.background,"is-disabled":!!t.disabled,"is-circle":!!t.circle})),u=()=>{e("click")};return(s,a)=>t.mode==="button"?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElButton),Vue.mergeProps({key:0,icon:Vue.unref(n),type:t.type,size:t.size,disabled:Vue.unref(l)},t.button,{onClick:u}),{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(s.label),1)]),_:1},16,["icon","type","size","disabled"])):(Vue.openBlock(),Vue.createElementBlock("div",{key:1,class:Vue.normalizeClass(["x-action__inner",r.value]),onClick:u},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(n)))),s.label?(Vue.openBlock(),Vue.createElementBlock("span",rt,Vue.toDisplayString(s.label),1)):Vue.createCommentVNode("",!0)],2))}}),M=Vue.defineComponent({name:"XAction",__name:"Action",props:re,emits:["click","command"],setup(o,{emit:e}){const t=o,n=Vue.useSlots(),l=ut(t),r=lt(t),u=at(t),s=q(Vue.toRef(t,"disabled")),a=Vue.computed(()=>({[`x-action--${t.mode}`]:!!t.mode})),i=()=>{e("click",t)},d=f=>{var _;const w=(_=t.menus)==null?void 0:_.find(V=>V.command===f);w&&e("command",w)},m=f=>Vue.h(ElementPlus.ElBadge,r.value,()=>[].concat(f)),g=f=>Vue.h(ElementPlus.ElDropdown,D(N({},u.value),{disabled:s.value,onCommand:d}),{default:()=>[f],dropdown:()=>[Vue.h(ElementPlus.ElDropdownMenu,()=>(t.menus||[]).map(w=>Vue.h(ElementPlus.ElDropdownItem,w,()=>n.item?n.item({item:w}):w.label)))]}),B=f=>Vue.h(ElementPlus.ElTooltip,D(N({},l.value),{disabled:s.value}),()=>[f]),h=Vue.computed(()=>{let f=n.default?n.default()[0]:Vue.h(Vue.markRaw(st),D(N({},t),{onClick:i}));return r.value&&(f=m(f)),u.value&&(f=g(f)),l.value&&(f=B(f)),f});return(f,w)=>(Vue.openBlock(),Vue.createElementBlock("div",{class:Vue.normalizeClass(["x-action",a.value])},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(h.value)))],2))}}),xe={items:{type:Array},mode:{type:String,default:"button"},size:{type:String,default:"default"},type:{type:String,default:"primary"},background:{type:String,default:"always"},circle:{type:Boolean},disabled:{type:[Boolean,Function]},tooltip:{type:Object},badge:{type:Object},dropdown:{type:Object},button:{type:Object}},ee=Vue.defineComponent({name:"XActionBar",__name:"ActionBar",props:xe,emits:["click","command"],setup(o,{emit:e}){const t=o,n=Vue.computed(()=>(t.items||[]).map(u=>u==="|"?u:D(N({},u),{badge:u.badge?N(N({},t.badge),typeof u.badge=="object"?u.badge||{}:{value:u.badge}):void 0,tooltip:u.tooltip?N(N({},t.tooltip),typeof u.tooltip=="object"?u.tooltip||{}:{content:u.tooltip}):void 0}))),l=u=>{e("click",u)},r=(u,s)=>{e("command",u,s)};return(u,s)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(y),{class:"x-action-bar",align:"center"},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.value,a=>(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,[a==="|"?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElDivider),{key:0,direction:"vertical",class:"x-action-bar__divider"})):(Vue.openBlock(),Vue.createBlock(Vue.unref(M),Vue.mergeProps({key:1,mode:t.mode,size:t.size,type:t.type,circle:t.circle,background:t.background,button:t.button,dropdown:t.dropdown,disabled:Vue.unref(q)(t.disabled,a).value},a,{onClick:l,onCommand:i=>r(a,i)}),null,16,["mode","size","type","circle","background","button","dropdown","disabled","onCommand"]))],64))),256))]),_:1}))}}),ze={tag:{type:String,default:"div"},fit:{type:Boolean,default:!1},width:{type:[String,Number]},height:{type:[String,Number]},flex:{type:Boolean,default:!0},inline:{type:Boolean},direction:{type:String,default:"row"},wrap:{type:String,default:"nowrap"},justify:{type:String,default:"flex-start"},align:{type:String,default:"flex-start"},alignContent:{type:String,default:"stretch"},grow:{type:Boolean,default:!1},shrink:{type:Boolean,default:!1},alignSelf:{type:String,default:"auto"},overflow:{type:String},padding:{type:Boolean,default:!1}},y=Vue.defineComponent({name:"XContainer",__name:"Container",props:ze,setup(o){const e=o,t=Vue.getCurrentInstance(),n=Vue.computed(()=>{const u=t==null?void 0:t.parent;if(!u)return!1;const s=u.proxy;return s.$options.name==="XContainer"||!!s.flex}),l=Vue.computed(()=>{var u;return{"is-fit":e.fit,"is-flex":e.flex&&!e.inline,"is-inline-flex":e.flex&&e.inline,[`is-direction-${e.direction}`]:e.flex&&e.direction!=="row",[`is-wrap-${e.wrap}`]:e.flex&&e.wrap!=="nowrap",[`is-justify-${e.justify}`]:e.flex&&e.justify!=="flex-start",[`is-align-${e.align}`]:e.flex&&e.align!=="flex-start",[`is-align-content-${e.alignContent}`]:e.flex&&e.alignContent!=="stretch","is-grow":(u=e.grow)!=null?u:n.value,"is-shrink":n.value&&e.shrink,[`is-align-self-${e.alignSelf}`]:n.value&&e.alignSelf!=="auto",[`is-overflow-${e.overflow}`]:!!e.overflow,"is-padding":!!e.padding}}),r=Vue.computed(()=>{const{width:u,height:s,fit:a}=e;return a?null:{width:u?S(u):void 0,height:s?S(s):void 0}});return(u,s)=>(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(e.tag),{class:Vue.normalizeClass(["x-container",l.value]),style:Vue.normalizeStyle(r.value)},{default:Vue.withCtx(()=>[Vue.renderSlot(u.$slots,"default")]),_:3},8,["class","style"]))}}),Ne={size:{type:String,default:"default"},content:{type:String,default:""},subtitle:{type:String},icon:{type:[String,Object]},border:{type:Boolean},more:{type:Boolean}},it={key:2,class:"x-header__subtitle"},ct={key:0,class:"x-header__actions"},se=Vue.defineComponent({name:"XHeader",inheritAttrs:!1,__name:"Header",props:Ne,setup(o){const e=o,t=Vue.useAttrs(),n=J(Vue.toRef(e,"icon")),l=Vue.computed(()=>({[`is-size-${e.size}`]:!!e.size&&e.size!=="default","is-border":e.border,"is-pointer":!!t.onClick}));return(r,u)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(y),{class:Vue.normalizeClass(["x-header",l.value]),justify:"space-between",align:"center"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(y),{align:"center",class:Vue.normalizeClass(["x-header__wrapper",l.value]),grow:""},{default:Vue.withCtx(()=>[Vue.unref(n)?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(n)),{key:0,class:"x-header__icon"})):Vue.createCommentVNode("",!0),Vue.createElementVNode("span",Vue.mergeProps({class:"x-header__content"},r.$attrs),[Vue.renderSlot(r.$slots,"default",{},()=>[Vue.createTextVNode(Vue.toDisplayString(e.content),1)])],16),e.more?(Vue.openBlock(),Vue.createBlock(Vue.unref(O),{key:1,class:"x-header__more",icon:Vue.unref(ElementPlusIconsVue.ArrowRight)},null,8,["icon"])):Vue.createCommentVNode("",!0),e.subtitle||r.$slots.subtitle?(Vue.openBlock(),Vue.createElementBlock("span",it,[Vue.renderSlot(r.$slots,"subtitle",{},()=>[Vue.createTextVNode(Vue.toDisplayString(e.subtitle),1)])])):Vue.createCommentVNode("",!0)]),_:3},8,["class"]),r.$slots.actions?(Vue.openBlock(),Vue.createElementBlock("div",ct,[Vue.renderSlot(r.$slots,"actions")])):Vue.createCommentVNode("",!0)]),_:3},8,["class"]))}}),Pe={fit:{type:Boolean,default:!1},width:{type:[String,Number]},height:{type:[String,Number]},border:{type:Boolean,default:!0},radius:{type:Boolean,default:!0},card:{type:Boolean},size:{type:String},shadow:{type:String},header:{type:[String,Object]},bodyPadding:{type:Boolean,default:!0},footerPadding:{type:Boolean,default:!0},body:{type:Object},footer:{type:Object}},ie=Vue.defineComponent({name:"XPanel",__name:"Panel",props:Pe,setup(o,{expose:e}){const t=o,n=Vue.ref(),l=Vue.computed(()=>({"x-panel--card":!!t.card,"x-panel--default":!t.card,[`is-${t.size}`]:!!t.size&&t.size!=="default","is-border":!!t.border,"is-radius":!!t.radius,[`is-shadow-${t.shadow}`]:!!t.shadow&&t.shadow!=="none"})),r=Vue.computed(()=>t.header===null?null:typeof t.header=="string"?{content:t.header,size:t.size}:D(N({},t.header),{size:t.size})),u=Vue.computed(()=>t.fit||t.height?"auto":void 0);return e({bodyRef:n}),(s,a)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(y),{class:Vue.normalizeClass(["x-panel",l.value]),direction:"column",fit:t.fit,width:t.width,height:t.height},{default:Vue.withCtx(()=>[r.value?(Vue.openBlock(),Vue.createBlock(Vue.unref(y),{key:0,flex:!1,class:"x-panel__header"},{default:Vue.withCtx(()=>[Vue.renderSlot(s.$slots,"header",{},()=>[Vue.createVNode(Vue.unref(se),Vue.normalizeProps(Vue.guardReactiveProps(r.value)),{default:Vue.withCtx(()=>[Vue.renderSlot(s.$slots,"title")]),actions:Vue.withCtx(()=>[Vue.renderSlot(s.$slots,"actions")]),_:3},16)])]),_:3})):Vue.createCommentVNode("",!0),Vue.createVNode(Vue.unref(y),Vue.mergeProps({ref_key:"bodyRef",ref:n,flex:!1,overflow:u.value,grow:"",padding:"",class:"x-panel__body"},t.body),{default:Vue.withCtx(()=>[Vue.renderSlot(s.$slots,"default")]),_:3},16,["overflow"]),s.$slots.footer?(Vue.openBlock(),Vue.createBlock(Vue.unref(y),Vue.mergeProps({key:1,flex:!1,padding:"",class:"x-panel__footer"},t.footer),{default:Vue.withCtx(()=>[Vue.renderSlot(s.$slots,"footer")]),_:3},16)):Vue.createCommentVNode("",!0)]),_:3},8,["class","fit","width","height"]))}}),Te="user-select-none";class ce{constructor(e,t={}){$(this,"scope");$(this,"dragging",!1);this.el=e,this.options=t,this.scope=Vue.effectScope(),this.scope.run(()=>{this.init()})}getHandle(){const{selector:e,handle:t}=this.options;return e?this.el.querySelector(e):t}getTarget(){const{target:e="body"}=this.options;return typeof e=="string"?document.querySelector(e):Vue.unref(e)||document.body}init(){const{el:e,options:t}=this,{disabled:n,delay:l=150,onStart:r,onEnd:u}=t;if(n)return;let s=null;const a=this.getHandle(),i=this.getTarget();let d=e.getBoundingClientRect(),m=null;const{x:g,y:B}=VueUse.useDraggable(e,D(N({initialValue:{x:d.x,y:d.y}},t),{handle:a,onStart:(h,f)=>{document.body.classList.add(Te),clearTimeout(s),s=setTimeout(()=>{this.dragging=!0,d=e.getBoundingClientRect(),m=i==null?void 0:i.getBoundingClientRect(),r&&r(h,f)},l)},onEnd:(h,f)=>{if(clearTimeout(s),document.body.classList.remove(Te),this.dragging&&m){this.dragging=!1;const{x:w,y:_}=h,V=this.getPosition(m,d,w,_);u&&u(V,f),m=null}}}));Vue.watch([g,B],()=>{if(this.dragging&&m){const h=this.getPosition(m,d,g.value,B.value);e.style.left=`${h.x}px`,e.style.top=`${h.y}px`}})}getPosition(e,t,n,l){const{edge:r=50}=this.options,u=-t.width+r,s=e.width-r,a=0,i=e.height-r,d=Math.min(s,Math.max(n,u)),m=Math.min(i,Math.max(l,a));return{x:d,y:m}}destory(){this.scope.stop()}}const Ie={mounted(o,e){const t=e.value||{},n=new ce(o,t);o.__draggable__=n},updated(o,e){const t=e.value||{};let n=o.__draggable__;n&&!VtjUtils.isEqual(n.options,t)&&(n.destory(),o.__draggable__=new ce(o,t))},unmounted(o){const e=o.__draggable__;e&&(e.destory(),o.__draggable__=null)}},de="user-select-none";class Ve{constructor(e,t={}){$(this,"scope");$(this,"resizing",Vue.ref(!1));$(this,"direction",Vue.ref(""));$(this,"MIE",null);$(this,"cleanMousedown");$(this,"cleanMouseup");this.el=e,this.options=t,this.scope=Vue.effectScope(),this.scope.run(()=>{this.init()})}init(){const{el:e,options:t}=this,{disabled:n,onStart:l,onEnd:r}=t;if(n)return;this.MIE=VueUse.useMouseInElement(e),this.cleanMousedown=VueUse.useEventListener(document,"mousedown",()=>{var a;(a=this.direction)!=null&&a.value&&this.MIE&&(this.resizing.value=!0,e.classList.add("is-resizing",`is-${this.direction.value}-resizing`),l&&l(this.direction.value,this.MIE))}),this.cleanMouseup=VueUse.useEventListener(document,"mouseup",()=>{var a;this.resizing.value&&((a=this.direction)!=null&&a.value)&&this.MIE&&(e.classList.remove("is-resizing",`is-${this.direction.value}-resizing`),r&&r(this.direction.value,this.MIE)),this.resizing.value=!1}),Vue.watch(this.direction,a=>{const i=document.body;i.style.cursor=a?`${a}-resize`:"",a?i.classList.add(de):i.classList.remove(de)});const{x:u,y:s}=this.MIE;Vue.watch([u,s],()=>{this.resizing.value?this.resize():this.direction.value=this.getDirection()})}resize(){const{MIE:e,direction:t,resizing:n,options:l,el:r}=this,u=(t==null?void 0:t.value)||"";if(!e||!n.value||!u)return;const{x:s,y:a,elementX:i,elementY:d,elementHeight:m,elementWidth:g}=e,{onResizing:B}=l,{minWidth:h=0,minHeight:f=0,maxWidth:w=99999,maxHeight:_=99999}=l;if(u.includes("e")){const V=Math.min(Math.max(i.value,h),w);r.style.width=`${V}px`}if(u.includes("s")){const V=Math.min(Math.max(d.value,f),_);r.style.height=`${V}px`}if(u.includes("w")){const V=Math.min(Math.max(g.value-i.value,h),w);r.style.width=`${V}px`,r.style.left=`${s.value}px`}if(u.includes("n")){const V=Math.min(Math.max(m.value-d.value,f),_);this.el.style.height=`${V}px`,this.el.style.top=`${a.value}px`}B&&B(u,e)}getDirection(){if(!this.MIE)return"";const{elementX:e,elementY:t,elementHeight:n,elementWidth:l,isOutside:r}=this.MIE;if(r.value)return"";const{dirs:u=["n","s","w","e"],edge:s=5}=this.options;let a="";return u.includes("n")&&t.value<=s?a+="n":u.includes("s")&&t.value>n.value-s&&(a+="s"),u.includes("w")&&e.value<=s?a+="w":u.includes("e")&&e.value>l.value-s&&(a+="e"),a}destory(){var t;const e=document.body;e.style.cursor="",e.classList.remove(de),this.cleanMousedown&&this.cleanMousedown(),this.cleanMouseup&&this.cleanMouseup(),(t=this.MIE)==null||t.stop(),this.scope.stop()}}const me={mounted(o,e){const t=e.value||{},n=new Ve(o,t);o.__resizable__=n},updated(o,e){const t=e.value||{};let n=o.__resizable__;n&&!VtjUtils.isEqual(n.options,t)&&(n.destory(),o.__resizable__=new Ve(o,t))},unmounted(o){const e=o.__resizable__;e&&(e.destory(),o.__resizable__=null)}},De={modelValue:{type:Boolean,default:!0},title:{type:String},subtitle:{type:String},icon:{type:[String,Object]},size:{type:String,default:"default"},width:{type:[Number,String],default:"70%"},height:{type:[Number,String],default:"70%"},left:{type:[Number,String]},top:{type:[Number,String]},modal:{type:Boolean,default:!0},draggable:{type:[Boolean,Object],default:!0},resizable:{type:[Boolean,Object]},closable:{type:Boolean,default:!0},maximizable:{type:Boolean,default:!0},minimizable:{type:Boolean,default:!0},mode:{type:String,default:"normal"},content:{type:Object},src:{type:String},componentInstance:{type:Object},beforeClose:{type:Function},submit:{type:[Boolean,String]},cancel:{type:[Boolean,String]},bodyPadding:{type:Boolean,default:!0},primary:{type:Boolean}};let K=1e3;function dt(o,e){const{width:t,height:n}=VueUse.useElementSize(e),l=Vue.reactive({mode:o.mode||"normal",wrapperWidth:0,wrapperHeight:0,width:0,height:0,top:0,left:0,zIndex:++K,dragging:!1,resizing:!1});return Vue.watch([t,n],([r,u])=>{l.wrapperWidth=r,l.wrapperHeight=u,l.width=L(o.width,r),l.height=L(o.height,u),l.left=o.left?L(o.left,r)-l.width/2:Math.max(Math.floor((r-l.width)/2),0),l.top=o.top?L(o.top,u):Math.max(Math.floor((u-l.height)/2),0)}),Vue.watch(l,r=>{K=Math.max(r.zIndex,K)}),{state:l,normal:Vue.computed(()=>l.mode==="normal"),maximized:Vue.computed(()=>l.mode==="maximized"),minimized:Vue.computed(()=>l.mode==="minimized")}}function Vt(o,e){const t=Vue.computed(()=>{const{width:u,height:s,top:a,left:i,zIndex:d}=e;return{width:`${u}px`,height:`${s}px`,top:`${a}px`,left:`${i}px`,zIndex:d}}),n=Vue.computed(()=>({[`is-${e.mode}`]:!!e.mode,"is-draggable":!!o.draggable,"is-resizable":!!o.resizable,"is-primary":!!o.primary})),l=Vue.computed(()=>({[`is-${e.mode}`]:!!e.mode,"is-dragging":e.dragging,"is-resizing":e.resizing})),r=Vue.computed(()=>({zIndex:e.zIndex}));return{styles:t,classes:n,wrapperClass:l,modalStyle:r}}function mt(o,e,t){const n=d=>{e.mode=d,["maximized","minimized","normal"].includes(d)&&t(d),t("modeChange",d)},l=()=>P(this,null,function*(){(!o.beforeClose||(yield o.beforeClose()))&&(t("update:modelValue",!1),t("close"),t("destroy"))});return{close:l,changeMode:n,show:()=>n("normal"),hide:()=>n("minimized"),active:()=>{e.zIndex=Math.max(e.zIndex,++K)},submit:()=>t("submit"),cancel:()=>{t("cancel"),l()}}}function ft(o,e,t,n){return Vue.computed(()=>{var r;const l=typeof o.draggable=="boolean"?!o.draggable:!!((r=o.draggable)!=null&&r.disabled);return D(N({},VtjUtils.isObject(o.draggable)?o.draggable:{}),{disabled:l,target:n,selector:".x-panel__header",onStart(u){e.dragging=!0,e.zIndex=Math.max(e.zIndex,++K),t("dragStart",u)},onMove(u){t("dragging",u)},onEnd(u){if(e.mode==="maximized")return;const{x:s,y:a}=u;e.left=s,e.top=a,e.dragging=!1,t("dragEnd",u)}})})}function pt(o,e,t){return Vue.computed(()=>{var l;const n=typeof o.resizable=="boolean"?!o.resizable:!!((l=o.resizable)!=null&&l.disabled);return D(N({minWidth:200,minHeight:150},VtjUtils.isObject(o.resizable)?o.resizable:{}),{disabled:n,dirs:["e","s","w"],onStart(r,u){e.resizing=!0,e.zIndex=Math.max(e.zIndex,++K),t("resizeStart",r,u)},onResizing(r,u){t("resizing",r,u)},onEnd(r,u){e.left=u.elementPositionX.value,e.top=u.elementPositionY.value,e.width=u.elementWidth.value,e.height=u.elementHeight.value,e.resizing=!1,t("resizeEnd",r,u)}})})}function ht(o,e){const t=o.componentInstance;if(!t)return;let n=null;return Vue.onMounted(()=>{const l=Vue.unref(e),r=Vue.unref(l==null?void 0:l.bodyRef);n=t.$el,r&&r.$el&&r.$el.appendChild(n)}),Vue.onUnmounted(()=>{n&&n.parentNode&&n.parentNode.removeChild(n)}),{componentInstance:t}}const gt=["src"],fe=Vue.defineComponent({name:"XDialog",__name:"Dialog",props:De,emits:["update:modelValue","open","close","destroy","maximized","minimized","normal","modeChange","dragStart","dragging","dragEnd","resizeStart","resizeEnd","resizing","submit","cancel"],setup(o,{expose:e,emit:t}){const n=o,l=Vue.getCurrentInstance(),r=Vue.ref(),u=Vue.ref(),{state:s,maximized:a,minimized:i,normal:d}=dt(n,r),{styles:m,classes:g,wrapperClass:B,modalStyle:h}=Vt(n,s),{changeMode:f,active:w,close:_,show:V,hide:C,submit:k,cancel:z}=mt(n,s,t),T=ft(n,s,t,r),H=pt(n,s,t),W=ht(n,u);return Vue.watchEffect(()=>P(this,null,function*(){n.modelValue&&(yield Vue.nextTick(),l&&t("open",l))})),e({panelRef:u,state:s,maximized:a,minimized:i,changeMode:f,show:V,hide:C,submit:k,cancel:z,componentInstance:W}),(I,A)=>n.modelValue?(Vue.openBlock(),Vue.createBlock(Vue.Teleport,{key:0,to:"body"},[Vue.createElementVNode("div",{ref_key:"wrapper",ref:r,class:Vue.normalizeClass(["x-dialog__wrapper",Vue.unref(B)])},[n.modal?(Vue.openBlock(),Vue.createElementBlock("div",{key:0,class:"x-dialog__modal",style:Vue.normalizeStyle(Vue.unref(h))},null,4)):Vue.createCommentVNode("",!0),Vue.withDirectives((Vue.openBlock(),Vue.createBlock(Vue.unref(ie),{ref_key:"panelRef",ref:u,class:Vue.normalizeClass(["x-dialog",Vue.unref(g)]),card:"",shadow:"always",header:{icon:n.icon,subtitle:n.subtitle},width:"800px",height:"600px",footer:{justify:"space-between",flex:!0,align:"center"},style:Vue.normalizeStyle(Vue.unref(m)),size:n.size,body:{padding:n.bodyPadding},onClick:Vue.unref(w)},Vue.createSlots({title:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(n.title),1)]),actions:Vue.withCtx(()=>[Vue.renderSlot(I.$slots,"actions"),n.minimizable?(Vue.openBlock(),Vue.createBlock(Vue.unref(M),{key:0,icon:Vue.unref(VtjIcons.Minimize),size:n.size,mode:"icon",type:"primary",background:"hover",onClick:A[0]||(A[0]=Z=>Vue.unref(f)("minimized"))},null,8,["icon","size"])):Vue.createCommentVNode("",!0),n.maximizable?(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:1},[Vue.unref(d)?(Vue.openBlock(),Vue.createBlock(Vue.unref(M),{key:1,icon:Vue.unref(VtjIcons.Maximize),size:n.size,mode:"icon",type:"primary",background:"hover",onClick:A[2]||(A[2]=Z=>Vue.unref(f)("maximized"))},null,8,["icon","size"])):(Vue.openBlock(),Vue.createBlock(Vue.unref(M),{key:0,icon:Vue.unref(VtjIcons.Popup),size:n.size,mode:"icon",type:"primary",background:"hover",onClick:A[1]||(A[1]=Z=>Vue.unref(f)("normal"))},null,8,["icon","size"]))],64)):Vue.createCommentVNode("",!0),n.closable?(Vue.openBlock(),Vue.createBlock(Vue.unref(M),{key:2,icon:Vue.unref(VtjIcons.RawClose),size:n.size,mode:"icon",type:"danger",background:"hover",onClick:Vue.unref(_)},null,8,["icon","size","onClick"])):Vue.createCommentVNode("",!0)]),default:Vue.withCtx(()=>[Vue.renderSlot(I.$slots,"default",{},()=>[n.content?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(n.content),{key:0})):Vue.createCommentVNode("",!0),n.src?(Vue.openBlock(),Vue.createElementBlock("iframe",{key:1,src:n.src,class:"x-dialog__frame"},null,8,gt)):Vue.createCommentVNode("",!0)])]),_:2},[n.cancel||n.submit||I.$slots.footer||I.$slots.extra||I.$slots.handle?{name:"footer",fn:Vue.withCtx(()=>[Vue.renderSlot(I.$slots,"footer",{},()=>[Vue.createVNode(Vue.unref(y),null,{default:Vue.withCtx(()=>[Vue.renderSlot(I.$slots,"extra")]),_:3}),Vue.createVNode(Vue.unref(y),null,{default:Vue.withCtx(()=>[Vue.renderSlot(I.$slots,"handle"),n.cancel?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElButton),{key:0,type:"default",size:n.size,onClick:Vue.unref(z)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(typeof n.cancel=="string"?n.cancel:"取消"),1)]),_:1},8,["size","onClick"])):Vue.createCommentVNode("",!0),n.submit?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElButton),{key:1,type:"primary",size:n.size,onClick:Vue.unref(k)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(typeof n.submit=="string"?n.cancel:"确定"),1)]),_:1},8,["size","onClick"])):Vue.createCommentVNode("",!0)]),_:3})])]),key:"0"}:void 0]),1032,["header","class","style","size","body","onClick"])),[[Vue.unref(Ie),Vue.unref(T)],[Vue.unref(me),Vue.unref(H)]])],2)])):Vue.createCommentVNode("",!0)}});function te(o,e){const t=document.createElement("div"),n=Vue.createVNode(fe,o);n.appContext=e!=null?e:te._context,Vue.render(n,t);const l=()=>{var r;Vue.render(null,t),(r=t.parentNode)==null||r.removeChild(t)};return n.props.onDestroy=()=>{l()},document.body.appendChild(t),{vnode:n,destroy:l}}const vt=Vue.createElementVNode("div",{class:"x-mask-sidebar__helper"},null,-1),yt=Vue.defineComponent({__name:"Sidebar",props:{collapsed:{type:Boolean}},setup(o){const e=o;return(t,n)=>Vue.withDirectives((Vue.openBlock(),Vue.createBlock(Vue.unref(y),{class:Vue.normalizeClass(["x-mask-sidebar",{"is-collapsed":e.collapsed}]),grow:!1,flex:"",direction:"column"},{default:Vue.withCtx(()=>[Vue.renderSlot(t.$slots,"brand"),Vue.createVNode(Vue.unref(y),{class:"x-mask-sidebar__wrapper",flex:"",grow:"",direction:"column",justify:"space-between",align:"center"},{default:Vue.withCtx(()=>[Vue.renderSlot(t.$slots,"default"),vt]),_:3})]),_:3},8,["class"])),[[Vue.unref(me),{dirs:["e"],disabled:e.collapsed,maxWidth:500,minWidth:200}]])}}),kt=Vue.defineComponent({__name:"SwitchBar",props:{collasped:{type:Boolean,default:!1},favorite:{type:Boolean,default:!1},keyword:{}},emits:["update:collasped","update:keyword","update:favorite"],setup(o,{emit:e}){const t=o,n=Vue.ref(!1),l=Vue.ref(""),r=Vue.ref(!1),u=()=>{n.value=!0},s=()=>{l.value="",n.value=!1,e("update:keyword",l.value)},a=()=>{e("update:collasped",!t.collasped)},i=()=>{e("update:keyword",l.value)},d=()=>{e("update:favorite",r.value)};return(m,g)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(y),{class:"x-mask-switch-bar",justify:"space-between",align:"center"},{default:Vue.withCtx(()=>[t.collasped?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(Vue.unref(y),{key:0,class:"x-mask-switch-bar__left",grow:""},{default:Vue.withCtx(()=>[n.value?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElSwitch),{key:0,modelValue:r.value,"onUpdate:modelValue":g[0]||(g[0]=B=>r.value=B),class:"x-mask-switch-bar__switch","active-icon":Vue.unref(ElementPlusIconsVue.StarFilled),"inactive-icon":Vue.unref(ElementPlusIconsVue.Menu),onChange:d},null,8,["modelValue","active-icon","inactive-icon"])),n.value?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElInput),{key:1,modelValue:l.value,"onUpdate:modelValue":g[1]||(g[1]=B=>l.value=B),class:"x-mask-switch-bar__input",size:"small",placeholder:"请输入查询关键字",onInput:i,"prefix-icon":Vue.unref(ElementPlusIconsVue.Search)},{suffix:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(O),{icon:Vue.unref(ElementPlusIconsVue.Close),onClick:s},null,8,["icon"])]),_:1},8,["modelValue","prefix-icon"])):Vue.createCommentVNode("",!0)]),_:1})),Vue.createVNode(Vue.unref(y),{class:Vue.normalizeClass(["x-mask-switch-bar__right",{"is-collasped":t.collasped}]),flex:"",align:"center",justify:"center"},{default:Vue.withCtx(()=>[!n.value&&!t.collasped?(Vue.openBlock(),Vue.createBlock(Vue.unref(M),{key:0,icon:Vue.unref(ElementPlusIconsVue.Search),mode:"icon",background:"hover",size:"default",circle:"",onClick:u},null,8,["icon"])):Vue.createCommentVNode("",!0),t.collasped?(Vue.openBlock(),Vue.createBlock(Vue.unref(M),{key:1,icon:Vue.unref(ElementPlusIconsVue.Expand),mode:"icon",size:"default",background:"hover",onClick:a,circle:""},null,8,["icon"])):Vue.createCommentVNode("",!0),t.collasped?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(Vue.unref(M),{key:2,icon:Vue.unref(ElementPlusIconsVue.Fold),mode:"icon",size:"default",background:"hover",circle:"",onClick:a},null,8,["icon"]))]),_:1},8,["class"])]),_:1}))}}),bt=["src"],wt={key:0},Ct=Vue.defineComponent({__name:"Brand",props:{collapsed:{type:Boolean,default:!1},logo:{},title:{},url:{}},setup(o){const e=o,t=VueRouter.useRouter(),n=()=>{e.url&&t.push(e.url)};return(l,r)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(y),{class:Vue.normalizeClass(["x-mask-brand",{"is-collapsed":e.collapsed}]),align:"center"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(y),{class:"x-mask-brand__logo",flex:"",justify:"center",align:"center",onClick:n},{default:Vue.withCtx(()=>[Vue.renderSlot(l.$slots,"logo",{},()=>[e.logo?(Vue.openBlock(),Vue.createElementBlock("img",{key:0,src:e.logo},null,8,bt)):Vue.createCommentVNode("",!0)])]),_:3}),Vue.createVNode(Vue.unref(y),{class:"x-mask-brand__title",flex:"",align:"center"},{default:Vue.withCtx(()=>[e.title?(Vue.openBlock(),Vue.createElementBlock("span",wt,[Vue.renderSlot(l.$slots,"title",{},()=>[Vue.createTextVNode(Vue.toDisplayString(e.title),1)])])):Vue.createCommentVNode("",!0)]),_:3})]),_:3},8,["class"]))}}),ne="__favorites__",oe="__search__",_t=Vue.defineComponent({__name:"Menu",props:{collapse:{type:Boolean,default:!1},keyword:{},favorite:{type:Boolean},favorites:{},flatMenus:{},menus:{},active:{}},emits:["select"],setup(o,{emit:e}){const t=o,n=Vue.computed(()=>t.menus||[]),l=Vue.computed(()=>{var a;return String((a=t.active)==null?void 0:a.id)}),r=Vue.computed(()=>{var a;return[{id:ne,title:"收藏",icon:ElementPlusIconsVue.Star,children:(a=t.favorites)!=null&&a.length?t.favorites:[{id:ne+"empty",disabled:!0,title:"暂无收藏菜单"}]}]}),u=Vue.computed(()=>{const a=(t.keyword||"").trim(),i=a?(t.flatMenus||[]).filter(d=>{var m;return(m=d.title)==null?void 0:m.includes(a)}):[];return[{id:oe,title:"搜索",icon:ElementPlusIconsVue.Search,children:i!=null&&i.length?i:[{id:oe+"empty",disabled:!0,title:"查询匹配不到菜单项"}]}]}),s=a=>{e("select",a)};return(a,i)=>(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,[Vue.withDirectives(Vue.createVNode(Vue.unref(y),{class:"x-mask-menu",grow:"",flex:!1,overflow:"auto"},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createVNode(Vue.unref(F),{subMenu:{popperClass:"x-mask-menu-popper",teleported:!0,showTimeout:200,hideTimeout:200},data:n.value,"default-icon":Vue.unref(ElementPlusIconsVue.Document),collapse:!0,"collapse-transition":!1,"default-active":l.value,onSelect:s},null,8,["data","default-icon","default-active"]),[[Vue.vShow,t.collapse]]),Vue.withDirectives(Vue.createVNode(Vue.unref(F),{subMenu:{popperClass:"x-mask-menu-popper",teleported:!0},data:n.value,"default-icon":Vue.unref(ElementPlusIconsVue.Document),collapse:!1,"collapse-transition":!1,"default-active":l.value,onSelect:s},null,8,["data","default-icon","default-active"]),[[Vue.vShow,!t.collapse]]),n.value.length?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElEmpty),{key:0,description:"暂无菜单数据"}))]),_:1},512),[[Vue.vShow,!t.favorite&&!t.keyword]]),Vue.withDirectives(Vue.createVNode(Vue.unref(y),{class:"x-mask-menu",grow:"",flex:!1,overflow:"auto"},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createVNode(Vue.unref(F),{class:"x-mask-menu__favorites",subMenu:{popperClass:"x-mask-menu-popper",teleported:!0,showTimeout:200,hideTimeout:200},data:r.value,"default-icon":Vue.unref(ElementPlusIconsVue.Document),collapse:!0,"collapse-transition":!1,"default-active":l.value,"default-openeds":[ne],onSelect:s},null,8,["data","default-icon","default-active","default-openeds"]),[[Vue.vShow,t.collapse]]),Vue.withDirectives(Vue.createVNode(Vue.unref(F),{class:"x-mask-menu__favorites",subMenu:{popperClass:"x-mask-menu-popper",teleported:!0,showTimeout:200,hideTimeout:200},data:r.value,"default-icon":Vue.unref(ElementPlusIconsVue.Document),collapse:!1,"collapse-transition":!1,"default-active":l.value,"default-openeds":[ne],onSelect:s},null,8,["data","default-icon","default-active","default-openeds"]),[[Vue.vShow,!t.collapse]])]),_:1},512),[[Vue.vShow,t.favorite&&!t.keyword]]),t.keyword?Vue.withDirectives((Vue.openBlock(),Vue.createBlock(Vue.unref(y),{key:0,class:"x-mask-menu",grow:"",flex:!1,overflow:"auto"},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createVNode(Vue.unref(F),{class:"x-mask-menu__search",subMenu:{popperClass:"x-mask-menu-popper",teleported:!0,showTimeout:200,hideTimeout:200},data:u.value,"default-icon":Vue.unref(ElementPlusIconsVue.Document),collapse:!0,"collapse-transition":!1,"default-active":l.value,"default-openeds":[oe],onSelect:s},null,8,["data","default-icon","default-active","default-openeds"]),[[Vue.vShow,t.collapse]]),Vue.withDirectives(Vue.createVNode(Vue.unref(F),{class:"x-mask-menu__search",subMenu:{popperClass:"x-mask-menu-popper",teleported:!0,showTimeout:200,hideTimeout:200},data:u.value,"default-icon":Vue.unref(ElementPlusIconsVue.Document),collapse:!1,"collapse-transition":!1,"default-active":l.value,"default-openeds":[oe],onSelect:s},null,8,["data","default-icon","default-active","default-openeds"]),[[Vue.vShow,!t.collapse]])]),_:1},512)),[[Vue.vShow,!!t.keyword]]):Vue.createCommentVNode("",!0)],64))}}),Bt={class:"x-mask-tabs__trigger"},Et={key:1},St=["onDragstart","onDragend"],xt={key:1},zt=Vue.defineComponent({__name:"Tabs",props:{tabs:{},home:{},isActiveTab:{type:Function},value:{},favorites:{}},emits:["click","remove","refresh","toggleFavorite","dialog"],setup(o,{emit:e}){const t=o,n=i=>{const d=!!t.favorites.find(m=>{var g;return m===i.menu||m.id===((g=i.menu)==null?void 0:g.id)});return[{icon:ElementPlusIconsVue.Refresh,label:"刷新",name:"refresh",value:i},"|",{icon:d?ElementPlusIconsVue.StarFilled:ElementPlusIconsVue.Star,label:"收藏",name:"favorite",value:i.menu,disabled:!i.menu},"|",{icon:ElementPlusIconsVue.CopyDocument,label:"弹窗",name:"dialog",value:i}]},l=i=>{const d=i.paneName;if(d===t.home.id){e("click",t.home);return}const m=t.tabs.find(g=>g.id===d);m&&e("click",m)},r=i=>{const d=t.tabs.find(m=>m.id===i);d&&e("remove",d)},u=i=>{switch(i.name){case"refresh":e("refresh",i.value);break;case"favorite":e("toggleFavorite",i.value);break;case"dialog":e("dialog",i.value);break}},s=(i,d)=>{d.dataTransfer&&(d.dataTransfer.setData("tab",i.id),d.target&&d.target.classList.add("is-dagging"))},a=(i,d)=>{d.target&&d.target.classList.remove("is-dagging")};return(i,d)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(y),{ref:"tabsRef",class:"x-mask-tabs",height:"100%",grow:"",flex:"",justify:"flex-end",direction:"column"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ElementPlus.ElTabs),{type:"card","model-value":t.value,onTabRemove:r,onTabClick:l},{default:Vue.withCtx(()=>[t.home?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElTabPane),{key:0,name:t.home.id},{label:Vue.withCtx(()=>[Vue.createElementVNode("div",Bt,[t.home.icon?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(J)(t.home.icon)),{key:0})):Vue.createCommentVNode("",!0),t.home.title?(Vue.openBlock(),Vue.createElementBlock("span",Et,Vue.toDisplayString(t.home.title),1)):Vue.createCommentVNode("",!0)])]),_:1},8,["name"])):Vue.createCommentVNode("",!0),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(t.tabs,m=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElTabPane),{key:m.id,name:m.id,lazy:"",closable:""},{label:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ElementPlus.ElPopover),{"open-delay":500,placement:"bottom",trigger:"hover",width:"200px",disabled:m.id!==t.value},{reference:Vue.withCtx(()=>[Vue.createElementVNode("div",{class:"x-mask-tabs__trigger",draggable:"true",onDragstart:g=>s(m,g),onDragend:g=>a(m,g)},[m.icon?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(J)(m.icon)),{key:0})):Vue.createCommentVNode("",!0),m.title?(Vue.openBlock(),Vue.createElementBlock("span",xt,Vue.toDisplayString(m.title),1)):Vue.createCommentVNode("",!0)],40,St)]),default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ee),{items:n(m),mode:"text",size:"small",type:"info",onClick:u},null,8,["items"])]),_:2},1032,["disabled"])]),_:2},1032,["name"]))),128))]),_:1},8,["model-value"])]),_:1},512))}}),Nt=Vue.defineComponent({__name:"ThemeSwitch",setup(o){const e=VueUse.useDark();return(t,n)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElSwitch),{class:"x-mask-theme-switch",modelValue:Vue.unref(e),"onUpdate:modelValue":n[0]||(n[0]=l=>Vue.isRef(e)?e.value=l:null),size:"default","active-action-icon":Vue.unref(ElementPlusIconsVue.Moon),"inactive-action-icon":Vue.unref(ElementPlusIconsVue.Sunny)},null,8,["modelValue","active-action-icon","inactive-action-icon"]))}}),Pt={class:"x-mask-toolbar__menu-item"},Tt=Vue.defineComponent({__name:"Toolbar",props:{tabs:{default:()=>[]},actions:{},theme:{type:Boolean}},emits:["closeOtherTabs","closeAllTabs","closeTab","clickTab","actionClick","actionCommand"],setup(o,{emit:e}){const t=o,n=Vue.computed(()=>{const a=t.tabs.map((i,d)=>({divided:d===0,label:i.title,command:i}));return[{label:"关闭其他",command:"other"},{label:"关闭全部",command:"all"},...a]}),l=a=>{e("closeTab",a.command)},r=a=>{switch(a.command){case"all":e("closeAllTabs");break;case"other":e("closeOtherTabs");break;default:e("clickTab",a.command);break}},u=a=>{e("actionClick",a)},s=(a,i)=>{e("actionCommand",a,i)};return(a,i)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(y),{class:"x-mask-toolbar",align:"center"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(M),{icon:Vue.unref(ElementPlusIconsVue.MoreFilled),menus:n.value,dropdown:{size:"small"},mode:"icon",circle:"",background:"hover",onCommand:r},{item:Vue.withCtx(({item:d})=>[Vue.createElementVNode("span",Pt,[Vue.createTextVNode(Vue.toDisplayString(d.label)+" ",1),["other","all"].includes(d.command)?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(Vue.unref(O),{key:0,onClick:Vue.withModifiers(m=>l(d),["stop"]),icon:Vue.unref(ElementPlusIconsVue.Close)},null,8,["onClick","icon"]))])]),_:1},8,["icon","menus"]),Vue.createVNode(Vue.unref(ElementPlus.ElDivider),{direction:"vertical"}),t.actions?(Vue.openBlock(),Vue.createBlock(Vue.unref(ee),{key:0,circle:"",mode:"icon",size:"default",background:"hover",items:a.actions,onClick:u,onCommand:s},null,8,["items"])):Vue.createCommentVNode("",!0),t.actions?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElDivider),{key:1,direction:"vertical"})):Vue.createCommentVNode("",!0),t.theme?(Vue.openBlock(),Vue.createBlock(Nt,{key:2})):Vue.createCommentVNode("",!0),t.theme?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElDivider),{key:3,direction:"vertical"})):Vue.createCommentVNode("",!0),Vue.renderSlot(a.$slots,"default")]),_:3}))}}),It=Vue.defineComponent({__name:"Avatar",props:{avatar:{}},setup(o){const e=o;return(t,n)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElPopover),{width:200,"popper-class":"x-mask-avatar__popper",disabled:!t.$slots.default},{reference:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ElementPlus.ElAvatar),{class:"x-mask-avatar",shape:"circle",icon:Vue.unref(ElementPlusIconsVue.UserFilled),src:e.avatar,size:26},null,8,["icon","src"])]),default:Vue.withCtx(()=>[t.$slots.default?Vue.renderSlot(t.$slots,"default",{key:0}):Vue.createCommentVNode("",!0)]),_:3},8,["disabled"]))}}),Me=Vue.defineComponent({__name:"Content",props:{createView:{type:Function},exclude:{}},setup(o){const e=o;return(t,n)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(y),{class:"x-mask__content",flex:!1,grow:"",padding:!1},{default:Vue.withCtx(()=>[Vue.renderSlot(t.$slots,"default"),Vue.createVNode(Vue.unref(VueRouter.RouterView),null,{default:Vue.withCtx(({Component:l,route:r})=>[(Vue.openBlock(),Vue.createBlock(Vue.KeepAlive,{exclude:e.exclude},[l?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(e.createView(l,r)),{key:r.fullPath})):Vue.createCommentVNode("",!0)],1032,["exclude"]))]),_:1})]),_:3}))}}),Ae=140,Re={logo:{type:String,default:Q},title:{type:String,default:"VTJ.PRO"},menus:{type:[Array,Function],default(){return[]}},favorites:{type:[Array,Function],default(){return[]}},menuAdapter:{type:Function},home:{type:[String,Object],default:"/"},tabs:{type:Number,default:20},actions:{type:Array},avatar:{type:String},theme:{type:Boolean},disabled:{type:Boolean},addFavorite:{type:Function},removeFavorite:{type:Function}},pe=Symbol(),he=Symbol();function Dt(o){const e=Vue.ref(!1),t=Vue.ref(""),n=Vue.ref(!1);return{collapsed:e,keyword:t,favorite:n}}function Mt(o){const e=VtjUtils.uid();return Vue.computed(()=>{const t=o.home;return Object.assign({id:e,url:"/",name:"MaskHome",icon:ElementPlusIconsVue.HomeFilled,closable:!1},typeof t=="string"?{url:t}:t||{})})}function Fe(o,e){let t=[];return o.forEach(n=>{n=e?e(n):n,n.children?t=t.concat(Fe(n.children,e)):t.push(n)}),t}function At(o,e){const t=VueRouter.useRouter(),n=Vue.shallowRef([]),l=Vue.shallowRef([]),r=Vue.computed(()=>Fe(n.value,o.menuAdapter)),u=Vue.computed(()=>VtjUtils.arrayToMap(r.value,"id")),s=Vue.ref(null),a=h=>{const f=typeof h=="object"?h.id:h,w=u.value.get(f);if(!w){console.warn("找不到菜单",h);return}const{type:_="route",url:V,title:C,icon:k}=w;if(!V){s.value=w,e("select",w);return}if(_==="route"){VtjUtils.isUrl(V)||V.startsWith("//")?window.open(V):(s.value=w,t.push(V).catch(z=>z));return}if(_==="window"){window.open(V);return}_==="dialog"&&te({resizable:!0,bodyPadding:!1,width:"80%",height:"80%",title:C,icon:k,src:V})},i=()=>P(this,null,function*(){var h,f;n.value=typeof o.menus=="function"?(yield o.menus())||[]:(h=o.menus)!=null?h:[],l.value=typeof o.favorites=="function"?(yield o.favorites())||[]:(f=o.favorites)!=null?f:[]}),d=h=>{l.value=[h,...l.value],o.addFavorite&&o.addFavorite(h)},m=h=>{l.value=l.value.filter(f=>f.id!==h.id),o.removeFavorite&&o.removeFavorite(h)},g=h=>!!l.value.find(f=>f===h||f.id===h.id),B=h=>{g(h)?m(h):d(h)};return Vue.watchEffect(i),{menus:n,favorites:l,flatMenus:r,active:s,select:a,toggleFavorite:B}}function Rt(o,e,t,n,l){const r=VueRouter.useRoute(),u=VueRouter.useRouter(),s={},a=Vue.ref([]),i=Vue.ref(),{width:d}=VueUse.useElementSize(i),m=Vue.computed(()=>Math.floor(d.value/Ae)),g=Vue.computed(()=>a.value.slice(0,m.value).filter(p=>!p.dialog)),B=Vue.computed(()=>a.value.slice(m.value)),h=p=>t.value.find(v=>v.url===p),f=p=>r.fullPath===p.url,w=p=>l.value.id===p?l.value:a.value.find(v=>v.id===p),_=Vue.ref(""),V=Vue.computed(()=>w(_.value)),C=p=>{u.push(p.url).catch(v=>v)},k=p=>{_.value=p.id,r.fullPath!==p.url&&C(p)},z=()=>{C(l.value)},T=p=>{const v=a.value.find(b=>b.url===p.url||b.id===p.id);v?k(v):(a.value.unshift(p),k(p))},H=p=>P(this,null,function*(){const{url:v=r.fullPath,icon:b,title:ve="新建标签页"}=p||{},ue=s[v],ye=VtjUtils.uid(),ke=VtjUtils.upperFirstCamelCase(v);return N({id:ye,name:ke,url:v,icon:b,title:ve,closable:!0,menu:p},ue?yield ue():{})}),W=p=>P(this,null,function*(){if(yield ElementPlus.ElMessageBox.confirm("是否关闭页签","提示",{type:"warning"}).catch(b=>!1)){if(a.value=a.value.filter(b=>b.id!==p.id),_.value===p.id){const b=a.value[0];C(b||l.value)}return p}}),I=p=>{const v=a.value.findIndex(b=>b.id===p.id);if(v>=0){const b=a.value[v];a.value.splice(v,1,Object.assign(b,p))}},A=()=>P(this,null,function*(){if(!(yield ElementPlus.ElMessageBox.confirm("是否关闭全部页签","提示",{type:"warning"}).catch(b=>!1)))return;const v=a.value;return a.value=[],k(l.value),v}),Z=()=>P(this,null,function*(){if(!(yield ElementPlus.ElMessageBox.confirm("是否关闭其他页签","提示",{type:"warning"}).catch(b=>!1)))return;const v=a.value.filter(b=>b.id!==_.value);return a.value=a.value.filter(b=>b.id===_.value),v}),ge=p=>{const v=a.value.filter(b=>b.id!==p.id);a.value=[p,...v],k(p)},Y=()=>P(this,null,function*(){yield Vue.nextTick();const p=l.value.url===r.fullPath,v=h(r.fullPath);if(p)_.value=l.value.id;else{const b=yield H(v);T(b)}yield Vue.nextTick(),n.value=v||null});return Vue.watch(t,Y),Vue.watch(r,Y,{immediate:!0}),Vue.provide(pe,s),{tabRef:i,tabs:a,showTabs:g,currentTab:V,changeTab:C,removeTab:W,updateTab:I,addTab:T,home:l,tabValue:_,isCurrentTab:f,activeHome:z,activeTab:k,dropdownTabs:B,removeAllTabs:A,removeOtherTabs:Z,moveToShow:ge}}function Ft(o){const e=new Map,t=Vue.ref([]),n=Vue.reactive({}),l={},{updateTab:r,isCurrentTab:u,activeHome:s,tabs:a}=o,i=(V,C)=>{const k=C.fullPath;if(e.has(k))return e.get(k);{const z=VtjUtils.upperFirstCamelCase(k),T={name:z,setup(){const H=Vue.computed(()=>n[k]||document.body),W=Vue.computed(()=>!n[k]),I=Vue.computed(()=>!t.value.includes(z));return Vue.provide(VueRouter.routeLocationKey,Vue.toRaw(N({},C))),()=>I.value?Vue.h(Vue.Teleport,{to:H.value,disabled:W.value},[Vue.h(V)]):null}};return e.set(k,T),T}},d=V=>{V.dialog=void 0,delete n[V.url];const C=l[V.id];C&&(C.destroy(),delete l[V.id],r(V))},m=(V=[])=>{V.forEach(C=>{d(C)})},g=V=>P(this,null,function*(){V.dialog=D(N({},V.dialog),{onMinimized:()=>{d(V)},onClose:()=>P(this,null,function*(){d(V),a.value=a.value.filter(k=>k.id!==V.id)})}),r(V);const C=te(D(N({title:V.title,icon:V.icon,modal:!1,resizable:!0,draggable:!0},V.dialog),{onOpen(k){var z,T;n[V.url]=(T=(z=k.refs.panelRef)==null?void 0:z.bodyRef)==null?void 0:T.$el}}));return yield Vue.nextTick(),u(V)&&s(),l[V.id]=C,C}),B=V=>P(this,null,function*(){t.value=[V.name],yield Vue.nextTick(),t.value=[]}),h=V=>P(this,null,function*(){t.value=V.map(C=>C.name),yield Vue.nextTick(),t.value=[]}),f=V=>(V.preventDefault(),!1),w=V=>{if(V.dataTransfer){const C=V.dataTransfer.getData("tab"),k=a.value.find(z=>z.id===C);if(k){const{clientX:z,clientY:T}=V;k.dialog={left:z,top:T},g(k)}}},_=V=>!!n[V];return VueUse.useEventListener(document,"dragover",f),VueUse.useEventListener(document,"drop",w),{createView:i,openDialog:g,refresh:B,exclude:t,cleanCache:h,hasDialog:_,closeDialog:d,closeDialogs:m}}const je=Vue.defineComponent({name:"XMask",__name:"Mask",props:Re,emits:["select","actionClick","actionCommand"],setup(o,{emit:e}){const t=o,n=Mt(t),{collapsed:l,keyword:r,favorite:u}=Dt(),{menus:s,favorites:a,flatMenus:i,active:d,select:m,toggleFavorite:g}=At(t,e),{tabRef:B,showTabs:h,currentTab:f,changeTab:w,removeTab:_,tabs:V,updateTab:C,isCurrentTab:k,activeHome:z,removeAllTabs:T,removeOtherTabs:H,dropdownTabs:W,moveToShow:I}=Rt(t,e,i,d,n),{createView:A,openDialog:Z,refresh:ge,exclude:Y,cleanCache:p,closeDialogs:v}=Ft({tabs:V,updateTab:C,isCurrentTab:k,activeHome:z}),b=x=>P(this,null,function*(){(yield _(x))&&(yield p([x]))}),ve=()=>P(this,null,function*(){const x=yield T();x&&(v(x),yield p(x))}),ue=()=>P(this,null,function*(){const x=yield H();x&&(v(x),yield p(x))}),ye=x=>{e("actionClick",x)},ke=(x,j)=>{e("actionCommand",x,j)};return Vue.provide(he,{tabs:V,flatMenus:i,favorites:a,updateTab:C,active:d,currentTab:f}),(x,j)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(y),{class:"x-mask"},{default:Vue.withCtx(()=>[t.disabled?(Vue.openBlock(),Vue.createBlock(Me,{key:1,createView:Vue.unref(A),exclude:Vue.unref(Y)},{default:Vue.withCtx(()=>[x.$slots.default?Vue.renderSlot(x.$slots,"default",{key:0}):Vue.createCommentVNode("",!0)]),_:3},8,["createView","exclude"])):(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:0},[Vue.createVNode(yt,{collapsed:Vue.unref(l)},{brand:Vue.withCtx(()=>[Vue.createVNode(Ct,{logo:t.logo,title:t.title,url:Vue.unref(n).url,collapsed:Vue.unref(l)},null,8,["logo","title","url","collapsed"])]),default:Vue.withCtx(()=>[Vue.createVNode(kt,{collasped:Vue.unref(l),"onUpdate:collasped":j[0]||(j[0]=U=>Vue.isRef(l)?l.value=U:null),favorite:Vue.unref(u),"onUpdate:favorite":j[1]||(j[1]=U=>Vue.isRef(u)?u.value=U:null),keyword:Vue.unref(r),"onUpdate:keyword":j[2]||(j[2]=U=>Vue.isRef(r)?r.value=U:null)},null,8,["collasped","favorite","keyword"]),Vue.createVNode(_t,{collapse:Vue.unref(l),keyword:Vue.unref(r),favorite:Vue.unref(u),favorites:Vue.unref(a),flatMenus:Vue.unref(i),menus:Vue.unref(s),active:Vue.unref(d),onSelect:Vue.unref(m)},null,8,["collapse","keyword","favorite","favorites","flatMenus","menus","active","onSelect"])]),_:1},8,["collapsed"]),Vue.createVNode(Vue.unref(y),{class:"x-mask__main",grow:"",shrink:"",flex:"",direction:"column"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(y),{class:"x-mask-topbar",justify:"space-between",align:"center"},{default:Vue.withCtx(()=>{var U;return[Vue.createVNode(zt,{ref_key:"tabRef",ref:B,favorites:Vue.unref(a),tabs:Vue.unref(h),home:Vue.unref(n),value:(U=Vue.unref(f))==null?void 0:U.id,onClick:Vue.unref(w),onToggleFavorite:Vue.unref(g),onRemove:b,onDialog:Vue.unref(Z),onRefresh:Vue.unref(ge)},null,8,["favorites","tabs","home","value","onClick","onToggleFavorite","onDialog","onRefresh"]),Vue.createVNode(Tt,{tabs:Vue.unref(W),actions:t.actions,theme:t.theme,onCloseOtherTabs:ue,onCloseAllTabs:ve,onCloseTab:b,onClickTab:Vue.unref(I),onActionClick:ye,onActionCommand:ke},{default:Vue.withCtx(()=>[Vue.createVNode(It,{avatar:t.avatar},Vue.createSlots({_:2},[x.$slots.user?{name:"default",fn:Vue.withCtx(()=>[Vue.renderSlot(x.$slots,"user")]),key:"0"}:void 0]),1032,["avatar"])]),_:3},8,["tabs","actions","theme","onClickTab"])]}),_:3}),Vue.createVNode(Me,{createView:Vue.unref(A),exclude:Vue.unref(Y)},{default:Vue.withCtx(()=>[x.$slots.default?Vue.renderSlot(x.$slots,"default",{key:0}):Vue.createCommentVNode("",!0)]),_:3},8,["createView","exclude"])]),_:3})],64))]),_:3}))}});function jt(o={}){const e=VueRouter.useRoute(),t=Vue.inject(pe,null),n=Vue.inject(he,null);if(t){const r=typeof o=="function"?o:()=>P(this,null,function*(){return o});t[e.fullPath]=r}return{tab:Vue.computed(()=>n?n.tabs.value.find(r=>r.url===e.fullPath):null),mask:n}}const $e=Vue.defineComponent({__name:"Field",setup(o){return(e,t)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElFormItem),Vue.normalizeProps(Vue.guardReactiveProps(e.$attrs)),{default:Vue.withCtx(()=>[Vue.renderSlot(e.$slots,"default")]),_:3},16))}}),$t={editor:{type:[String,Object]}},Ot=Vue.defineComponent({__name:"Form",setup(o){return(e,t)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElForm),Vue.normalizeProps(Vue.guardReactiveProps(e.$attrs)),{default:Vue.withCtx(()=>[Vue.renderSlot(e.$slots,"default")]),_:3},16))}}),Oe=[we,O,F,Ee,M,ee,y,se,ie,fe,je,$e],Ut="0.6.10",Ue=R(Oe).install;c.Draggable=ce,c.INSTALLED_KEY=X,c.MASK_KEY=he,c.NOOP=ae,c.Resizable=Ve,c.TAB_CREATORS_KEY=pe,c.TAB_ITEM_WIDTH=Ae,c.XAction=M,c.XActionBar=ee,c.XContainer=y,c.XDialog=fe,c.XField=$e,c.XForm=Ot,c.XHeader=se,c.XIcon=O,c.XMask=je,c.XMenu=F,c.XPanel=ie,c.XSimpleMask=Ee,c.XStartup=we,c.actionBarProps=xe,c.actionProps=re,c.components=Oe,c.containerProps=ze,c.createDialog=te,c.default=Ue,c.defineTab=jt,c.dialogProps=De,c.fieldProps=$t,c.getSizeValue=S,c.headerProps=Ne,c.iconProps=_e,c.iconSizeMap=Ce,c.install=Ue,c.makeInstaller=R,c.maskProps=Re,c.omit=G,c.panelProps=Pe,c.parseSize=L,c.pick=le,c.useDisabled=q,c.useIcon=J,c.useIconProps=Se,c.vDraggable=Ie,c.vResizable=me,c.version=Ut,Object.defineProperties(c,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(c,E){typeof exports=="object"&&typeof module!="undefined"?E(exports):typeof define=="function"&&define.amd?define(["exports"],E):(c=typeof globalThis!="undefined"?globalThis:c||self,E(c.VtjUI={}))})(this,function(c){"use strict";var Wt=Object.defineProperty,Kt=Object.defineProperties;var Qt=Object.getOwnPropertyDescriptors;var He=Object.getOwnPropertySymbols;var Zt=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable;var we=(c,E,S)=>E in c?Wt(c,E,{enumerable:!0,configurable:!0,writable:!0,value:S}):c[E]=S,P=(c,E)=>{for(var S in E||(E={}))Zt.call(E,S)&&we(c,S,E[S]);if(He)for(var S of He(E))Jt.call(E,S)&&we(c,S,E[S]);return c},D=(c,E)=>Kt(c,Qt(E));var O=(c,E,S)=>(we(c,typeof E!="symbol"?E+"":E,S),S);var N=(c,E,S)=>new Promise((L,G)=>{var ae=A=>{try{X(S.next(A))}catch(K){G(K)}},re=A=>{try{X(S.throw(A))}catch(K){G(K)}},X=A=>A.done?L(A.value):Promise.resolve(A.value).then(ae,re);X((S=S.apply(c,E)).next())});const E="";function S(o){return typeof o=="string"?o:`${o}px`}function L(o=0,t){if(typeof o=="number")return o;if(/(%|vh|vw)$/i.test(o)){const n=Number.parseInt(o);return Math.floor(t*n/100)}return Number.parseInt(o)}function G(o,t){const e={};return Object.keys(o).forEach(n=>{t.includes(n)||(e[n]=o[n])}),e}function ae(o,t){const e={};return Object.keys(o).forEach(n=>{t.includes(n)&&(e[n]=o[n])}),e}const re=()=>{},X=Symbol("INSTALLED_KEY"),A=(o=[])=>({install:e=>{e[X]||(e[X]=!0,o.forEach(n=>{n.name&&e.component(n.name,n)}))}}),K="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAQd0lEQVR4nO2dCXRVxRnHf/clIPsekBgIS1hFdqVoZbGLFNTWWgQ3bLVurRYJcTuntbW22qooKKWl2toWquygIFa01doqmBBWWcomIkhACLIKyXvcnu/eefiSNzd57y4vAfI/553wuPfNzJ3/nW9m/t83M4Yx6iTVGOlAC6AD0Bs4F2gGtFT/lmtNgLpABDgMFAN7gCJgH3AQ2ACsAz5V91RbpFfDguUAg4EewBCgLdAQqJXAb5sD7RyuHVGfpcBy4AOgADjkc/k9obq0kP7AN4CrgK7qrQ8aJrALeAt4Q/3dV7XVULWEtAauBq5ThNSpqoIo7AReBWYA/6mqQlQFId2AW4HRwHmpzjwBSMv5N/BHYAHwRSozTyUhQsS9iohGqcrUI1YDE4GXgROpyDAVhMiIKBe4I0V9QxCQgcCvgdeCzigUcPo/BN4HHjiNyRAMBBYBs4BOQWYUFCFdgIXA80DHgPKoCowE3gHuCirvIAj5AfAmcEUAaVcHZAJTgHlqjuQr/CREJm/PAH8G2pyWVZ0crlbzl8v8TNQvQrLVGP5en9I7XdBV9S0/9qu8fhDSC1isZI6zEaKjTQYe8aM+vSZwqeq8u5+lZMTiYeA5oLaXRLwQMhSYe5b0F4niR8BUL6S4VXsvAWYCGZ6Kf2bi+8oVcDuQ9KzbTQvpqQS4GjKcIVrdU25+mCwhbZWuk+WhsGcLxgEPJvusyRAi84xpNR14UhD9a1QyP0iGkEeBQcGV/YyE1O+zwPnJ/CARSEc1NrBin9kQtftFoHEiT5kIIeLj/s3ZXqsecSHwUCJJVEZIGjAJaFXVT3QG4D7ga5U9RmWEiHI7/GyvSZ8QUkPhhhUlVxEhLZUcUAP/ILFld7slJK9GFgkEuRXEjjkSIh6/O0+fZzyt0EK5tLVwIiSvMltXA0+4yWluoiOkqwrVqUFwqA/ckygholI2SCUZZhjM4/bflOYrn1IwT4AZSW3eSlLpUP4/yxPSKtWtwyyBnPPgioHQtpX93Zd0TVXZEbviddcJQ59OMHwAZDTxL+8EIWFRN5a/tTwh31UxtymBtIrhF8GiBwwWPmDw2oMGg3t5rxghIi0NLugAbcRJUKoIiEUYbhwCrz9k57sgz6BvZ7u1pBBjlPk6hdjIRSHnXeV8ChzmF3DlJfDyWIP653yZ28ZP4dKHTfYdBCPNHRndsuGpmwwGdYNjJ2DiYpMnFtheI8OwTWPnLCh43KBR3S9/u/0z+N4Ek8KNYKQu9PvbKkDEQmwL6QP0S0UJhIxhA2D6PWXJEHTNhN7t7Tc46XQj0KQRzBhrMLwPNKgDLRvDY9cZfFOeLtrywjC0B2XIELTLgNm5Br072603RRgZm00sIcNSsSRAyBjSF6b/xIirEMHRE7D7gEtfZhiG9YGe2fGXLuwY41A1oOhzfRLtW8LMcQbnd0wZKd9UC40shGL+Xhl0zkLGwJ4w816D5g7juKlvwbqPwEhkvVRs2thPcfWFhvb62h02ERZqw+vL4e//1afVuTXMGW/QpV1KSMmIDaGKEtI+GSeKGwgZ/brZZLR08AzMWgY/e8l03TqyW8PXesRf2roH3t3w5aI46UdKwnDnVJNXC/XJiemcPd4gp03gpMhr8tXol+ijDwly7iFk9Opiv3VtmuvvmZsPtzxnWp2wm85cCBnRB5pr9IXFK2F/sXImKBjpcOQY3DTJ5LWV+iQvaGOTkp0Z+Ojr8mjoUJSQnkHlJG9X9xyYO96wOk0dFq6AHzxncvS4XVFJ52FCWh24+qJ4cxU5Ca8WmpZNK39VzOKhIzDmWZO31+nT7t0OZuUaZGYESkrbaOB2SMVmBeIrlwfo0h7mjTfo6ODikrdzzCSTw8eS7zdOIQzd28JXNCs3pO94f6PzGl6jNhQfhOsnmrz3P/09F+XAy7kGGc0CmzzWV2tQLEJaqD7EVwgZHdvA/DyDLpn6lN9aCzc/a/L5YfdkWJ15BIb1soe55TEv3+SYpF9BvySkFO2D6yeZrNyuv2dQV3hpnEHTRvZcJwB0jRIieko9X8kogQ5ZMC/PoJvDss531sMNE032H7QrxDVOQq168F2NuZIh9PyCsn2HE4xzYMduuPZpk3U79Td9vQdMG2vQqF4gpAgPTUPKi+XWWMRByDivpW13ezosZ/lgC9w4yWRvsUcysGWRAZ3UPKMclm6CDTsSD5gVUrbssEnZskd/jwwc/ibqQl3fSZGl4e1DakWQLxAyWjW3Z7v9HIygmIRRT5vs2mtXgBdE9SmZe6RpTJKYq8gJe5ibKEQyWb8NrnnS5KPP9D/6dn948W6DunV8JUVc5i1Dfi3GFDKaNYaX7zUY2Fl/z4ZdMPoZk493eyfDwklo2Bgu7x1/af8ReH1VYuaqPISUNZvhe0+ZfLJff8/Ir8Cff2xwTm3f3AZS0mYhxYwnCBkNG9id3lCH6aWYgJETTDZ97BMZ2Obqki5o+6klq2H7LveDBaMurNhoi427HWSW0RfDCz8ySE/3hRSplcyQ2lXHNaQg9evB9LEGlzvMZiwV9SmTddv8U1Etc2XYc4+QxiTN+cB0sRigLISU/HU2KZ85bFFz46Uw9Q5FijcnV3qUkBZuUzBPQnoaTLnd4CoHnViavDzQ6s0+S9oRaJkBwzXm6qO98M46f/Y6ElLeXwM3PGty4Kj+nluGwiOjDatMcX6X5HCutz6kFAb1gDEO08pPDyj/woYA/Aul8PULIEsjxSxaAcX73c36dRBS3iyAMZNNDjvsfJI7Avp2scvlAVYfohHBE0QELu+lH8KImbr2GdNq8ob7HLSw3sJaemW3NAxzlml0Eq+oA4veh9ummhQfiU+rTi3VWr2ZrXohT0mY0NbB4P1qnsl7+f6TYSEM7VrDEM0AYvUOyN/i/9Zs1tC5Dsx8A/70tv6erOae34JwyNOWdwbscNjyK3eEQe+eAUnXYfttbKFRdhcWmhw/7FIxrgzH4VuD4Iav6u/bVeytA5Hd7UJqj0J3SIf5+SZhTRvrrqSTCzra8rtfkIGEKLvXDIh/G4+VJC6VJAt5hqF9Ydo9BplN4398vNTuuzzm/VlIbRjpDrVg2Qb45Vz9myHu0Hn3++wOVcruAI2y+98N8OF2/82VkHFJT5hRgafzyYWwcpMnEUoq8dOQ2r3TFSy7mgaPzoDHFuhTyGkF8+4z6OqXOzSCNcQuHxwhmP2BaanMFSm7yULI6NvV1uacPJ3P/xMemWladZGMTFMO4m3ZJUV3EAcSg/XwafDT6SYTF+t/Ij7q+fcbdMn2RoqYqzoN4Dua0dWeg7BkjZ8yqU1Gz072C6UzU4KX3oO7nzeJRDz3WzJg3ivV6SAMJA4piGlA3l9MJr+h/5n4qOfeZ9C5rQdSSuGiTtBHI1z+60PYUeRf/2F5OjvaZc52GEnOWQa3TTEt/7wPcx5pIQdCapNhzxBSIibkvmjygsOw8PwsmDXesHwlrtyhJlzV31nZlf7Fg8n4Mpvj0Dkb5uYZlsnVQYIjbplicsyl21mD9SJshNSOzw6iQHIQUkojcPcfTaY5bLTaKxvm5CUfOCA6UcMmcEXf+Gtbimzvox/mSsjIaav6PQfHxOJVth/+8FEPbud4iMHdGfJ7+20h5UQp3PUHk9nL9Pf0aWcHo2W1SoKUsK3sdtJEHr+yHD53G1wXAylL+yw70uR8h70qpJ+6aaLJwSO+kiEQV1pJdGK41M+UpQlLBMmtk00WOsQ9DciBmbkG52YkGDhgwKiB8cqutMgFBfaw24u5EjKyzrXNVG9N5KPg3xtst3PxId/JKFVbn596p1b4mrwKsREhTpq2NfrR4OLOtkOrRdOKSRGJP7OV6Gbx11Zth8Jt3syV5enMgFnjDKv16rB0M4yaYLLvcx/czvGQAwM+JIaQpZ5lMQ2EFIkokbfqPxv19wzpDjPGGTRpXIE7NGJHJLbWDD1fKTD54rB7cyVkNG1im1AnT6fldp5gsmd/IGQIlkUVk+hjFHiZIFYEeYB9B2w/+vJt+hulsl8aa9CgfjwplrKbbo+uyuPIcZi/3B7qurFWklcD8XT+xGBwN/0963fans5Pinz0dMbj1Lg0SsghdTpAIJAH2b3XJuXDT/Q5fKt3DCmxbTUCHVrDZRplV2z6+iSiSmIhZrBeXTsKf5jGyYUavUkEytZPAl0vIkrfv6JfYhv6PwLLUgUObFNv26bd+nuu7AeTbzVID8V43kTZ7QPNNBrSPHHTliTfmVuhp2nwu9sMK4JEB/HnjJQYra2BL96ReeDa6JdYQpaoIXBgkAfbuN1+67Y5SJo3D4b+nWKWoaVLKKeDVLLWpZBYCiP6w/cH6y+LS0HKuGpTQP6cspgZ23/HElKsdhgNFEKK+NdHTzLZ6aCi1a6ltE/DLuqWong1WUJ8dha5JOSkPUHVQRYLSUhpQRBu53gcjV3OhmZsMt2zVzgByIMWrFeklPPGyIx7xRZ7GGu1i3T4wxLKBELvPwwTF6m5h5sCpMGba+wJbCyk1V03yeS9tSlbYyh9R5nxZ5rR4+ex33eqLYQc3h//IJNHiaV9ax00bWBw0oRFhTDur2UXfIqafPQYvFIIoZBhEZg3zSR/o/shqKS9cw98XAz9OthL6wq22v7yd9ekdMHneGBzmbJpzg8ZpXYdTQmsCWEte3Hm3gO2qdKJddbIy1RtOux9PmD1T6XQvb3tSFu+FfbsC2yeoUOhWvFcRjzSEVJXTVQCW8RTHlblnLQru6IRU3Tk5YeieyrNUpV3ekB+eGfcDPyt/FXd/FbGxRNSWTKpYCMBb5t1n8/hPaImyDwpxWTIUUpzdBecBIeZUbGrBoHgcYnJSIYQsWu/CELfqoGliMx2qoaKJLl/qGPjauAfpMf6WUV7wlemkcrOZw7LVmrgAhPVgMkRlRGytWYjTN8gXqHHKkssES/C8zWmyzPCamfwSiN8EiEkorY23VT1z3Xa4qfquL1KkaifbZfapTR1mxadOZiTzLwuGcfn20p7qUHiWKlOcEt4BWKynugp6tiKGlSObUoX3JtMXbkJDXhYEVMDZxSpzUQ3J1tHbkPLZMTwlxpCtNinDu0vcPNjt4SE1XHcf3L5+zMV0jKuTXREpYOX4MsSNfJ6+myt/XKQSfR3YkN63MDr0pawGnkldHrMGYxCdc6KZ4Xcr7VGv1F2M9ColWoKOfR+hF8TZz+P756htprN9zHN6oxSdU7hdZ7WaZaD3wfcS6TUN1SLOZN9KavVxpW/dXO8akXwmxBUWOpDyqauCiD9qkSJImGo187bCUEQEsUSdbz3A3426SrEEhUiJWbqQFDFCJIQgewK8oTacfN36vvpBmnl10s8uCyFD7rsujCgINFDnTl+bex+59UUMtP+vQr40AYkBIFUExKFbFl5gzqLKacqCuCAQ6pveEGZqNQe8VKFhEQhiwwuA66RXVj93JAzCRxTSwJmqWBzX5aJu0VVExILWZ4vCwQuVvY6M9EDfZNERAmABao1vKP6iWpREdWJkFjUUgHfMhjopD79Vb9TW20YWdlChOPK5JSoRflr1NLjfDVfcr8LUoDwed8c3yCzYFmUIB9BM3U6prQi+UjrkY9s4CnXZGdu0dWkD5CwJZFwxO0sw20JLJCFdPIJfKmFJwD/B4g2wB0X86iqAAAAAElFTkSuQmCC",We={class:"x-startup"},Ke={class:"brand"},Qe=["src"],Ze=Vue.createElementVNode("h3",null,[Vue.createTextVNode("基于 "),Vue.createElementVNode("span",null,"Vue3 + TypeScript"),Vue.createTextVNode(" 的低代码设计器引擎")],-1),Je={class:"btn"},Ye=Vue.createElementVNode("div",{class:"ba"},[Vue.createElementVNode("a",{href:"http://beian.miit.gov.cn/"},"粤ICP备2023104074号")],-1),Ce=Vue.defineComponent({name:"XStartup",__name:"Startup",props:{text:{default:"VTJ.PRO"},link:{default:"/"},example:{}},setup(o){const t=o,e=()=>{location.href=t.link+"#/?startup"},n=()=>{t.example&&t.example(t.link)};return(l,r)=>(Vue.openBlock(),Vue.createElementBlock("div",We,[Vue.renderSlot(l.$slots,"default",{},()=>[Vue.createElementVNode("div",null,[Vue.createElementVNode("div",Ke,[Vue.createElementVNode("img",{src:Vue.unref(K)},null,8,Qe),Vue.createElementVNode("h1",null,Vue.toDisplayString(t.text),1)]),Vue.createVNode(Vue.unref(ElementPlus.ElDivider)),Ze,Vue.createElementVNode("div",Je,[Vue.createVNode(Vue.unref(ElementPlus.ElButton),{onClick:e,type:"primary",round:"",size:"large",icon:Vue.unref(ElementPlusIconsVue.VideoPlay)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 立即开始体验 ")]),_:1},8,["icon"]),t.example?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElButton),{key:0,onClick:n,type:"default",round:"",size:"large",icon:Vue.unref(ElementPlusIconsVue.Document)},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 加载示例项目 ")]),_:1},8,["icon"])):Vue.createCommentVNode("",!0)])])]),Ye]))}}),Yt="",_e={default:14,small:12,large:18},Be={icon:{type:[String,Object]},color:{type:String},size:{type:[Number,String],default:"inherit"},src:{type:String}},Ge=["src"],F=Vue.defineComponent({name:"XIcon",__name:"Icon",props:Be,setup(o){const t=o,e=Vue.useAttrs(),n=Vue.getCurrentInstance(),l=Vue.computed(()=>{if(!t.icon)return null;const s=n==null?void 0:n.appContext.app;return typeof t.icon=="object"?Vue.markRaw(t.icon):(s==null?void 0:s.component(t.icon))||t.icon}),r=Vue.computed(()=>{const s={"is-pointer":!!e.onClick};return!l.value&&t.icon&&(s[t.icon]=!0),s}),u=Vue.computed(()=>{var s;return typeof t.size=="number"?t.size:(s=_e[t.size])!=null?s:void 0});return(s,a)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElIcon),{class:Vue.normalizeClass(["x-icon",r.value]),color:t.color,size:u.value},{default:Vue.withCtx(()=>[Vue.renderSlot(s.$slots,"default",{},()=>[l.value?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(l.value),{key:0})):Vue.createCommentVNode("",!0),t.src?(Vue.openBlock(),Vue.createElementBlock("img",{key:1,src:t.src},null,8,Ge)):Vue.createCommentVNode("",!0)])]),_:3},8,["class","color","size"]))}}),qe={class:"x-menu__wrapper"},et={key:1,class:"x-menu__title"},tt=Vue.createElementVNode("i",null,null,-1),nt={key:0,class:"x-menu__title"},ot=Vue.createElementVNode("i",null,null,-1),Ee=Vue.defineComponent({inheritAttrs:!1,name:"XMenuItem",__name:"MenuItem",props:{item:{},subMenu:{},defaultIcon:{type:[Object,Function]}},setup(o){const t=o,e=Vue.getCurrentInstance(),n=u=>{if(u){if(typeof u=="string"){const s=e==null?void 0:e.appContext.app;return(s==null?void 0:s.component(u))||t.defaultIcon||u}return u}},l=u=>typeof u=="object"?u:{value:u},r=(u=[])=>u.filter(s=>!s.hidden);return(u,s)=>t.item.children?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElSubMenu),Vue.mergeProps({key:0,disabled:t.item.disabled},t.subMenu,{index:String(t.item.id)}),{title:Vue.withCtx(()=>[Vue.createElementVNode("div",qe,[t.item.icon?(Vue.openBlock(),Vue.createBlock(Vue.unref(F),{key:0,icon:n(t.item.icon)},null,8,["icon"])):Vue.createCommentVNode("",!0),t.item.title?(Vue.openBlock(),Vue.createElementBlock("span",et,Vue.toDisplayString(t.item.title),1)):Vue.createCommentVNode("",!0),t.item.badge?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElBadge),Vue.mergeProps({key:2,class:"x-menu__badge"},l(t.item.badge)),{default:Vue.withCtx(()=>[tt]),_:1},16)):Vue.createCommentVNode("",!0)])]),default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(r(t.item.children),a=>(Vue.openBlock(),Vue.createBlock(Vue.unref(Ee),{key:a.id,item:a,subMenu:t.subMenu,defaultIcon:t.defaultIcon},null,8,["item","subMenu","defaultIcon"]))),128))]),_:1},16,["disabled","index"])):(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElMenuItem),{key:1,index:String(t.item.id),disabled:t.item.disabled},{title:Vue.withCtx(()=>[t.item.title?(Vue.openBlock(),Vue.createElementBlock("span",nt,Vue.toDisplayString(t.item.title),1)):Vue.createCommentVNode("",!0),t.item.badge?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElBadge),Vue.mergeProps({key:1,class:"x-menu__badge"},l(t.item.badge)),{default:Vue.withCtx(()=>[ot]),_:1},16)):Vue.createCommentVNode("",!0)]),default:Vue.withCtx(()=>[t.item.icon?(Vue.openBlock(),Vue.createBlock(Vue.unref(F),{key:0,icon:n(t.item.icon)},null,8,["icon"])):Vue.createCommentVNode("",!0)]),_:1},8,["index","disabled"]))}}),$=Vue.defineComponent({inheritAttrs:!1,name:"XMenu",__name:"Menu",props:{data:{default:()=>[]},subMenu:{},defaultIcon:{}},emits:["select"],setup(o,{emit:t}){const e=o,n=Vue.computed(()=>e.data.filter(u=>!u.hidden)),l=(u,s)=>{const a=(i,d=[])=>{var m;for(const f of d){if(f.id.toString()===i.toString())return f;if((m=f.children)!=null&&m.length){const k=a(i,f.children);if(k)return k}}};return a(s,u)},r=u=>{const s=l(n.value,u);s&&t("select",s)};return(u,s)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElMenu),Vue.mergeProps({class:"x-menu"},u.$attrs,{onSelect:r}),{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.value,a=>(Vue.openBlock(),Vue.createBlock(Vue.unref(Ee),{item:D(P({},a),{icon:a.icon||Vue.unref(ElementPlusIconsVue.Menu)}),defaultIcon:e.defaultIcon,subMenu:e.subMenu},null,8,["item","defaultIcon","subMenu"]))),256))]),_:1},16))}}),ut={class:"x-simple-mask__brand"},lt={class:"x-simple-mask__aciton"},Se=Vue.defineComponent({name:"XSimpleMask",__name:"SimpleMask",props:{preview:{type:Boolean},project:{default:()=>({name:"Logo",home:"/"})},menu:{}},setup(o,{expose:t}){const e=o,n=VueRouter.useRouter(),l=VueRouter.useRoute(),r=Vue.computed(()=>l.params.id),u=()=>{const a=e.project.home;a&&n.push(a)},s=a=>{const i=a==null?void 0:a.id;if(i){const m=`${e.preview?"/preview":e.project.page}/${i}`;n.push(m)}};return t({goHome:u}),(a,i)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElContainer),{class:"x-simple-mask"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ElementPlus.ElHeader),{class:"x-simple-mask__header"},{default:Vue.withCtx(()=>[Vue.createElementVNode("div",ut,[Vue.createElementVNode("span",{class:"x-simple-mask__logo",onClick:u},[Vue.renderSlot(a.$slots,"logo",{},()=>[Vue.createTextVNode(Vue.toDisplayString(e.project.name),1)])])]),Vue.createElementVNode("div",lt,[Vue.renderSlot(a.$slots,"action")])]),_:3}),Vue.createVNode(Vue.unref(ElementPlus.ElContainer),null,{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ElementPlus.ElAside),{class:"x-simple-mask__aside"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref($),Vue.mergeProps(e.menu,{"default-active":r.value,onSelect:s}),null,16,["default-active"])]),_:1}),Vue.createVNode(Vue.unref(ElementPlus.ElMain),{class:"x-simple-mask__main"},{default:Vue.withCtx(()=>[Vue.renderSlot(a.$slots,"default",{},()=>[Vue.createVNode(Vue.unref(VueRouter.RouterView))])]),_:3})]),_:3}),a.$slots.footer?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElFooter),{key:0,class:"x-simple-mask__footer",height:"40px"},{default:Vue.withCtx(()=>[Vue.renderSlot(a.$slots,"footer")]),_:3})):Vue.createCommentVNode("",!0)]),_:3}))}}),se={name:{type:String},label:{type:String},value:{type:[String,Number,Object,Array,Boolean]},icon:{type:[String,Object]},mode:{type:String,default:"button"},menus:{type:Array},tooltip:{type:[String,Object]},badge:{type:[String,Number,Object]},dropdown:{type:Object},button:{type:Object},disabled:{type:[Boolean,Function]},size:{type:String,default:"default"},type:{type:String,default:"primary"},background:{type:String,default:"always"},circle:{type:Boolean}};function at(o){return Vue.computed(()=>{const t=o.tooltip;if(t)return typeof t=="string"?{content:t}:t})}function rt(o){return Vue.computed(()=>{const t=o.badge;if(t)return typeof t=="object"?t:{value:t}})}function st(o){return Vue.computed(()=>{const{dropdown:t,menus:e}=o;if(e&&e.length>0)return Object.assign({popperClass:"x-action__menus",size:o.size},t||{})})}function xe(o){const t=Vue.getCurrentInstance();return Vue.computed(()=>{const e=Vue.unref(o);if(e)if(typeof e=="string"||e.setup||e.render||Vue.isVNode(e)){const n=t==null?void 0:t.appContext.app;return{icon:typeof e=="string"&&(n==null?void 0:n.component(e))||e}}else return e;return null})}function J(o){const t=xe(o);return t.value?Vue.markRaw(Vue.defineComponent({render:()=>Vue.h(F,t.value)})):null}function q(o,t){return Vue.computed(()=>{const e=Vue.unref(o);return typeof e=="function"?e(t):!!e})}const it={key:0},ct=Vue.defineComponent({__name:"Trigger",props:se,emits:["click"],setup(o,{emit:t}){const e=o,n=J(Vue.toRef(e,"icon")),l=q(Vue.toRef(e,"disabled")),r=Vue.computed(()=>({[`is-${e.mode}`]:!!e.mode,[`is-${e.type}`]:!!e.type,[`is-${e.size}`]:!!e.size&&e.size!=="default",[`is-background-${e.background}`]:e.mode==="icon"&&!!e.background,"is-disabled":!!e.disabled,"is-circle":!!e.circle})),u=()=>{t("click")};return(s,a)=>e.mode==="button"?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElButton),Vue.mergeProps({key:0,icon:Vue.unref(n),type:e.type,size:e.size,disabled:Vue.unref(l)},e.button,{onClick:u}),{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(s.label),1)]),_:1},16,["icon","type","size","disabled"])):(Vue.openBlock(),Vue.createElementBlock("div",{key:1,class:Vue.normalizeClass(["x-action__inner",r.value]),onClick:u},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(n)))),s.label?(Vue.openBlock(),Vue.createElementBlock("span",it,Vue.toDisplayString(s.label),1)):Vue.createCommentVNode("",!0)],2))}}),M=Vue.defineComponent({name:"XAction",__name:"Action",props:se,emits:["click","command"],setup(o,{emit:t}){const e=o,n=Vue.useSlots(),l=at(e),r=rt(e),u=st(e),s=q(Vue.toRef(e,"disabled")),a=Vue.computed(()=>({[`x-action--${e.mode}`]:!!e.mode})),i=()=>{t("click",e)},d=h=>{var B;const C=(B=e.menus)==null?void 0:B.find(V=>V.command===h);C&&t("command",C)},m=h=>Vue.h(ElementPlus.ElBadge,r.value,()=>[].concat(h)),f=h=>Vue.h(ElementPlus.ElDropdown,D(P({},u.value),{disabled:s.value,onCommand:d}),{default:()=>[h],dropdown:()=>[Vue.h(ElementPlus.ElDropdownMenu,()=>(e.menus||[]).map(C=>Vue.h(ElementPlus.ElDropdownItem,C,()=>n.item?n.item({item:C}):C.label)))]}),k=h=>Vue.h(ElementPlus.ElTooltip,D(P({},l.value),{disabled:s.value}),()=>[h]),p=Vue.computed(()=>{let h=n.default?n.default()[0]:Vue.h(Vue.markRaw(ct),D(P({},e),{onClick:i}));return r.value&&(h=m(h)),u.value&&(h=f(h)),l.value&&(h=k(h)),h});return(h,C)=>(Vue.openBlock(),Vue.createElementBlock("div",{class:Vue.normalizeClass(["x-action",a.value])},[(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(p.value)))],2))}}),ze={items:{type:Array},mode:{type:String,default:"button"},size:{type:String,default:"default"},type:{type:String,default:"primary"},background:{type:String,default:"always"},circle:{type:Boolean},disabled:{type:[Boolean,Function]},tooltip:{type:Object},badge:{type:Object},dropdown:{type:Object},button:{type:Object}},ee=Vue.defineComponent({name:"XActionBar",__name:"ActionBar",props:ze,emits:["click","command"],setup(o,{emit:t}){const e=o,n=Vue.computed(()=>(e.items||[]).map(u=>u==="|"?u:D(P({},u),{badge:u.badge?P(P({},e.badge),typeof u.badge=="object"?u.badge||{}:{value:u.badge}):void 0,tooltip:u.tooltip?P(P({},e.tooltip),typeof u.tooltip=="object"?u.tooltip||{}:{content:u.tooltip}):void 0}))),l=u=>{t("click",u)},r=(u,s)=>{t("command",u,s)};return(u,s)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(y),{class:"x-action-bar",align:"center"},{default:Vue.withCtx(()=>[(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.value,a=>(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,[a==="|"?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElDivider),{key:0,direction:"vertical",class:"x-action-bar__divider"})):(Vue.openBlock(),Vue.createBlock(Vue.unref(M),Vue.mergeProps({key:1,mode:e.mode,size:e.size,type:e.type,circle:e.circle,background:e.background,button:e.button,dropdown:e.dropdown,disabled:Vue.unref(q)(e.disabled,a).value},a,{onClick:l,onCommand:i=>r(a,i)}),null,16,["mode","size","type","circle","background","button","dropdown","disabled","onCommand"]))],64))),256))]),_:1}))}}),Pe={tag:{type:String,default:"div"},fit:{type:Boolean,default:!1},width:{type:[String,Number]},height:{type:[String,Number]},flex:{type:Boolean,default:!0},inline:{type:Boolean},direction:{type:String,default:"row"},wrap:{type:String,default:"nowrap"},justify:{type:String,default:"flex-start"},align:{type:String,default:"flex-start"},alignContent:{type:String,default:"stretch"},grow:{type:Boolean,default:!1},shrink:{type:Boolean,default:!1},alignSelf:{type:String,default:"auto"},overflow:{type:String},padding:{type:Boolean,default:!1}},y=Vue.defineComponent({name:"XContainer",__name:"Container",props:Pe,setup(o){const t=o,e=Vue.getCurrentInstance(),n=Vue.computed(()=>{const u=e==null?void 0:e.parent;if(!u)return!1;const s=u.proxy;return s.$options.name==="XContainer"||!!s.flex}),l=Vue.computed(()=>{var u;return{"is-fit":t.fit,"is-flex":t.flex&&!t.inline,"is-inline-flex":t.flex&&t.inline,[`is-direction-${t.direction}`]:t.flex&&t.direction!=="row",[`is-wrap-${t.wrap}`]:t.flex&&t.wrap!=="nowrap",[`is-justify-${t.justify}`]:t.flex&&t.justify!=="flex-start",[`is-align-${t.align}`]:t.flex&&t.align!=="flex-start",[`is-align-content-${t.alignContent}`]:t.flex&&t.alignContent!=="stretch","is-grow":(u=t.grow)!=null?u:n.value,"is-shrink":n.value&&t.shrink,[`is-align-self-${t.alignSelf}`]:n.value&&t.alignSelf!=="auto",[`is-overflow-${t.overflow}`]:!!t.overflow,"is-padding":!!t.padding}}),r=Vue.computed(()=>{const{width:u,height:s,fit:a}=t;return a?null:{width:u?S(u):void 0,height:s?S(s):void 0}});return(u,s)=>(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(t.tag),{class:Vue.normalizeClass(["x-container",l.value]),style:Vue.normalizeStyle(r.value)},{default:Vue.withCtx(()=>[Vue.renderSlot(u.$slots,"default")]),_:3},8,["class","style"]))}}),Ne={size:{type:String,default:"default"},content:{type:String,default:""},subtitle:{type:String},icon:{type:[String,Object]},border:{type:Boolean},more:{type:Boolean}},dt={key:2,class:"x-header__subtitle"},Vt={key:0,class:"x-header__actions"},ie=Vue.defineComponent({name:"XHeader",inheritAttrs:!1,__name:"Header",props:Ne,setup(o){const t=o,e=Vue.useAttrs(),n=J(Vue.toRef(t,"icon")),l=Vue.computed(()=>({[`is-size-${t.size}`]:!!t.size&&t.size!=="default","is-border":t.border,"is-pointer":!!e.onClick}));return(r,u)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(y),{class:Vue.normalizeClass(["x-header",l.value]),justify:"space-between",align:"center"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(y),{align:"center",class:Vue.normalizeClass(["x-header__wrapper",l.value]),grow:""},{default:Vue.withCtx(()=>[Vue.unref(n)?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(n)),{key:0,class:"x-header__icon"})):Vue.createCommentVNode("",!0),Vue.createElementVNode("span",Vue.mergeProps({class:"x-header__content"},r.$attrs),[Vue.renderSlot(r.$slots,"default",{},()=>[Vue.createTextVNode(Vue.toDisplayString(t.content),1)])],16),t.more?(Vue.openBlock(),Vue.createBlock(Vue.unref(F),{key:1,class:"x-header__more",icon:Vue.unref(ElementPlusIconsVue.ArrowRight)},null,8,["icon"])):Vue.createCommentVNode("",!0),t.subtitle||r.$slots.subtitle?(Vue.openBlock(),Vue.createElementBlock("span",dt,[Vue.renderSlot(r.$slots,"subtitle",{},()=>[Vue.createTextVNode(Vue.toDisplayString(t.subtitle),1)])])):Vue.createCommentVNode("",!0)]),_:3},8,["class"]),r.$slots.actions?(Vue.openBlock(),Vue.createElementBlock("div",Vt,[Vue.renderSlot(r.$slots,"actions")])):Vue.createCommentVNode("",!0)]),_:3},8,["class"]))}}),Te={fit:{type:Boolean,default:!1},width:{type:[String,Number]},height:{type:[String,Number]},border:{type:Boolean,default:!0},radius:{type:Boolean,default:!0},card:{type:Boolean},size:{type:String},shadow:{type:String},header:{type:[String,Object]},bodyPadding:{type:Boolean,default:!0},footerPadding:{type:Boolean,default:!0},body:{type:Object},footer:{type:Object}},ce=Vue.defineComponent({name:"XPanel",__name:"Panel",props:Te,setup(o,{expose:t}){const e=o,n=Vue.ref(),l=Vue.computed(()=>({"x-panel--card":!!e.card,"x-panel--default":!e.card,[`is-${e.size}`]:!!e.size&&e.size!=="default","is-border":!!e.border,"is-radius":!!e.radius,[`is-shadow-${e.shadow}`]:!!e.shadow&&e.shadow!=="none"})),r=Vue.computed(()=>e.header===null?null:typeof e.header=="string"?{content:e.header,size:e.size}:D(P({},e.header),{size:e.size})),u=Vue.computed(()=>e.fit||e.height?"auto":void 0);return t({bodyRef:n}),(s,a)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(y),{class:Vue.normalizeClass(["x-panel",l.value]),direction:"column",fit:e.fit,width:e.width,height:e.height},{default:Vue.withCtx(()=>[r.value?(Vue.openBlock(),Vue.createBlock(Vue.unref(y),{key:0,flex:!1,class:"x-panel__header"},{default:Vue.withCtx(()=>[Vue.renderSlot(s.$slots,"header",{},()=>[Vue.createVNode(Vue.unref(ie),Vue.normalizeProps(Vue.guardReactiveProps(r.value)),{default:Vue.withCtx(()=>[Vue.renderSlot(s.$slots,"title")]),actions:Vue.withCtx(()=>[Vue.renderSlot(s.$slots,"actions")]),_:3},16)])]),_:3})):Vue.createCommentVNode("",!0),Vue.createVNode(Vue.unref(y),Vue.mergeProps({ref_key:"bodyRef",ref:n,flex:!1,overflow:u.value,grow:"",padding:"",class:"x-panel__body"},e.body),{default:Vue.withCtx(()=>[Vue.renderSlot(s.$slots,"default")]),_:3},16,["overflow"]),s.$slots.footer?(Vue.openBlock(),Vue.createBlock(Vue.unref(y),Vue.mergeProps({key:1,flex:!1,padding:"",class:"x-panel__footer"},e.footer),{default:Vue.withCtx(()=>[Vue.renderSlot(s.$slots,"footer")]),_:3},16)):Vue.createCommentVNode("",!0)]),_:3},8,["class","fit","width","height"]))}}),Ie="user-select-none";class de{constructor(t,e={}){O(this,"scope");O(this,"dragging",!1);this.el=t,this.options=e,this.scope=Vue.effectScope(),this.scope.run(()=>{this.init()})}getHandle(){const{selector:t,handle:e}=this.options;return t?this.el.querySelector(t):e}getTarget(){const{target:t="body"}=this.options;return typeof t=="string"?document.querySelector(t):Vue.unref(t)||document.body}init(){const{el:t,options:e}=this,{disabled:n,delay:l=150,onStart:r,onEnd:u}=e;if(n)return;let s=null;const a=this.getHandle(),i=this.getTarget();let d=t.getBoundingClientRect(),m=null;const{x:f,y:k}=VueUse.useDraggable(t,D(P({initialValue:{x:d.x,y:d.y}},e),{handle:a,onStart:(p,h)=>{document.body.classList.add(Ie),clearTimeout(s),s=setTimeout(()=>{this.dragging=!0,d=t.getBoundingClientRect(),m=i==null?void 0:i.getBoundingClientRect(),r&&r(p,h)},l)},onEnd:(p,h)=>{if(clearTimeout(s),document.body.classList.remove(Ie),this.dragging&&m){this.dragging=!1;const{x:C,y:B}=p,V=this.getPosition(m,d,C,B);u&&u(V,h),m=null}}}));Vue.watch([f,k],()=>{if(this.dragging&&m){const p=this.getPosition(m,d,f.value,k.value);t.style.left=`${p.x}px`,t.style.top=`${p.y}px`}})}getPosition(t,e,n,l){const{edge:r=50}=this.options,u=-e.width+r,s=t.width-r,a=0,i=t.height-r,d=Math.min(s,Math.max(n,u)),m=Math.min(i,Math.max(l,a));return{x:d,y:m}}destory(){this.scope.stop()}}const De={mounted(o,t){const e=t.value||{},n=new de(o,e);o.__draggable__=n},updated(o,t){const e=t.value||{};let n=o.__draggable__;n&&!VtjUtils.isEqual(n.options,e)&&(n.destory(),o.__draggable__=new de(o,e))},unmounted(o){const t=o.__draggable__;t&&(t.destory(),o.__draggable__=null)}},Ve="user-select-none";class me{constructor(t,e={}){O(this,"scope");O(this,"resizing",Vue.ref(!1));O(this,"direction",Vue.ref(""));O(this,"MIE",null);O(this,"cleanMousedown");O(this,"cleanMouseup");this.el=t,this.options=e,this.scope=Vue.effectScope(),this.scope.run(()=>{this.init()})}init(){const{el:t,options:e}=this,{disabled:n,onStart:l,onEnd:r}=e;if(n)return;this.MIE=VueUse.useMouseInElement(t),this.cleanMousedown=VueUse.useEventListener(document,"mousedown",()=>{var a;(a=this.direction)!=null&&a.value&&this.MIE&&(this.resizing.value=!0,t.classList.add("is-resizing",`is-${this.direction.value}-resizing`),l&&l(this.direction.value,this.MIE))}),this.cleanMouseup=VueUse.useEventListener(document,"mouseup",()=>{var a;this.resizing.value&&((a=this.direction)!=null&&a.value)&&this.MIE&&(t.classList.remove("is-resizing",`is-${this.direction.value}-resizing`),r&&r(this.direction.value,this.MIE)),this.resizing.value=!1}),Vue.watch(this.direction,a=>{const i=document.body;i.style.cursor=a?`${a}-resize`:"",a?i.classList.add(Ve):i.classList.remove(Ve)});const{x:u,y:s}=this.MIE;Vue.watch([u,s],()=>{this.resizing.value?this.resize():this.direction.value=this.getDirection()})}resize(){const{MIE:t,direction:e,resizing:n,options:l,el:r}=this,u=(e==null?void 0:e.value)||"";if(!t||!n.value||!u)return;const{x:s,y:a,elementX:i,elementY:d,elementHeight:m,elementWidth:f}=t,{onResizing:k}=l,{minWidth:p=0,minHeight:h=0,maxWidth:C=99999,maxHeight:B=99999}=l;if(u.includes("e")){const V=Math.min(Math.max(i.value,p),C);r.style.width=`${V}px`}if(u.includes("s")){const V=Math.min(Math.max(d.value,h),B);r.style.height=`${V}px`}if(u.includes("w")){const V=Math.min(Math.max(f.value-i.value,p),C);r.style.width=`${V}px`,r.style.left=`${s.value}px`}if(u.includes("n")){const V=Math.min(Math.max(m.value-d.value,h),B);this.el.style.height=`${V}px`,this.el.style.top=`${a.value}px`}k&&k(u,t)}getDirection(){if(!this.MIE)return"";const{elementX:t,elementY:e,elementHeight:n,elementWidth:l,isOutside:r}=this.MIE;if(r.value)return"";const{dirs:u=["n","s","w","e"],edge:s=5}=this.options;let a="";return u.includes("n")&&e.value<=s?a+="n":u.includes("s")&&e.value>n.value-s&&(a+="s"),u.includes("w")&&t.value<=s?a+="w":u.includes("e")&&t.value>l.value-s&&(a+="e"),a}destory(){var e;const t=document.body;t.style.cursor="",t.classList.remove(Ve),this.cleanMousedown&&this.cleanMousedown(),this.cleanMouseup&&this.cleanMouseup(),(e=this.MIE)==null||e.stop(),this.scope.stop()}}const fe={mounted(o,t){const e=t.value||{},n=new me(o,e);o.__resizable__=n},updated(o,t){const e=t.value||{};let n=o.__resizable__;n&&!VtjUtils.isEqual(n.options,e)&&(n.destory(),o.__resizable__=new me(o,e))},unmounted(o){const t=o.__resizable__;t&&(t.destory(),o.__resizable__=null)}},Me={modelValue:{type:Boolean,default:!0},title:{type:String},subtitle:{type:String},icon:{type:[String,Object]},size:{type:String,default:"default"},width:{type:[Number,String],default:"70%"},height:{type:[Number,String],default:"70%"},left:{type:[Number,String]},top:{type:[Number,String]},modal:{type:Boolean,default:!0},draggable:{type:[Boolean,Object],default:!0},resizable:{type:[Boolean,Object]},closable:{type:Boolean,default:!0},maximizable:{type:Boolean,default:!0},minimizable:{type:Boolean,default:!0},mode:{type:String,default:"normal"},content:{type:Object},src:{type:String},componentInstance:{type:Object},beforeClose:{type:Function},submit:{type:[Boolean,String]},cancel:{type:[Boolean,String]},bodyPadding:{type:Boolean,default:!0},primary:{type:Boolean}};let Q=1e3;function mt(o,t){const{width:e,height:n}=VueUse.useElementSize(t),l=Vue.reactive({mode:o.mode||"normal",wrapperWidth:0,wrapperHeight:0,width:0,height:0,top:0,left:0,zIndex:++Q,dragging:!1,resizing:!1});return Vue.watch([e,n],([r,u])=>{l.wrapperWidth=r,l.wrapperHeight=u,l.width=L(o.width,r),l.height=L(o.height,u),l.left=o.left?L(o.left,r)-l.width/2:Math.max(Math.floor((r-l.width)/2),0),l.top=o.top?L(o.top,u):Math.max(Math.floor((u-l.height)/2),0)}),Vue.watch(l,r=>{Q=Math.max(r.zIndex,Q)}),{state:l,normal:Vue.computed(()=>l.mode==="normal"),maximized:Vue.computed(()=>l.mode==="maximized"),minimized:Vue.computed(()=>l.mode==="minimized")}}function ft(o,t){const e=Vue.computed(()=>{const{width:u,height:s,top:a,left:i,zIndex:d}=t;return{width:`${u}px`,height:`${s}px`,top:`${a}px`,left:`${i}px`,zIndex:d}}),n=Vue.computed(()=>({[`is-${t.mode}`]:!!t.mode,"is-draggable":!!o.draggable,"is-resizable":!!o.resizable,"is-primary":!!o.primary})),l=Vue.computed(()=>({[`is-${t.mode}`]:!!t.mode,"is-dragging":t.dragging,"is-resizing":t.resizing})),r=Vue.computed(()=>({zIndex:t.zIndex}));return{styles:e,classes:n,wrapperClass:l,modalStyle:r}}function pt(o,t,e){const n=d=>{t.mode=d,["maximized","minimized","normal"].includes(d)&&e(d),e("modeChange",d)},l=()=>N(this,null,function*(){(!o.beforeClose||(yield o.beforeClose()))&&(e("update:modelValue",!1),e("close"),e("destroy"))});return{close:l,changeMode:n,show:()=>n("normal"),hide:()=>n("minimized"),active:()=>{t.zIndex=Math.max(t.zIndex,++Q)},submit:()=>e("submit"),cancel:()=>{e("cancel"),l()}}}function ht(o,t,e,n){return Vue.computed(()=>{var r;const l=typeof o.draggable=="boolean"?!o.draggable:!!((r=o.draggable)!=null&&r.disabled);return D(P({},VtjUtils.isObject(o.draggable)?o.draggable:{}),{disabled:l,target:n,selector:".x-panel__header",onStart(u){t.dragging=!0,t.zIndex=Math.max(t.zIndex,++Q),e("dragStart",u)},onMove(u){e("dragging",u)},onEnd(u){if(t.mode==="maximized")return;const{x:s,y:a}=u;t.left=s,t.top=a,t.dragging=!1,e("dragEnd",u)}})})}function gt(o,t,e){return Vue.computed(()=>{var l;const n=typeof o.resizable=="boolean"?!o.resizable:!!((l=o.resizable)!=null&&l.disabled);return D(P({minWidth:200,minHeight:150},VtjUtils.isObject(o.resizable)?o.resizable:{}),{disabled:n,dirs:["e","s","w"],onStart(r,u){t.resizing=!0,t.zIndex=Math.max(t.zIndex,++Q),e("resizeStart",r,u)},onResizing(r,u){e("resizing",r,u)},onEnd(r,u){t.left=u.elementPositionX.value,t.top=u.elementPositionY.value,t.width=u.elementWidth.value,t.height=u.elementHeight.value,t.resizing=!1,e("resizeEnd",r,u)}})})}function vt(o,t){const e=o.componentInstance;if(!e)return;let n=null;return Vue.onMounted(()=>{const l=Vue.unref(t),r=Vue.unref(l==null?void 0:l.bodyRef);n=e.$el,r&&r.$el&&r.$el.appendChild(n)}),Vue.onUnmounted(()=>{n&&n.parentNode&&n.parentNode.removeChild(n)}),{componentInstance:e}}const yt=["src"],pe=Vue.defineComponent({name:"XDialog",__name:"Dialog",props:Me,emits:["update:modelValue","open","close","destroy","maximized","minimized","normal","modeChange","dragStart","dragging","dragEnd","resizeStart","resizeEnd","resizing","submit","cancel"],setup(o,{expose:t,emit:e}){const n=o,l=Vue.getCurrentInstance(),r=Vue.ref(),u=Vue.ref(),{state:s,maximized:a,minimized:i,normal:d}=mt(n,r),{styles:m,classes:f,wrapperClass:k,modalStyle:p}=ft(n,s),{changeMode:h,active:C,close:B,show:V,hide:_,submit:b,cancel:z}=pt(n,s,e),T=ht(n,s,e,r),H=gt(n,s,e),W=vt(n,u);return Vue.watchEffect(()=>N(this,null,function*(){n.modelValue&&(yield Vue.nextTick(),l&&e("open",l))})),t({panelRef:u,state:s,maximized:a,minimized:i,changeMode:h,show:V,hide:_,submit:b,cancel:z,componentInstance:W}),(I,R)=>n.modelValue?(Vue.openBlock(),Vue.createBlock(Vue.Teleport,{key:0,to:"body"},[Vue.createElementVNode("div",{ref_key:"wrapper",ref:r,class:Vue.normalizeClass(["x-dialog__wrapper",Vue.unref(k)])},[n.modal?(Vue.openBlock(),Vue.createElementBlock("div",{key:0,class:"x-dialog__modal",style:Vue.normalizeStyle(Vue.unref(p))},null,4)):Vue.createCommentVNode("",!0),Vue.withDirectives((Vue.openBlock(),Vue.createBlock(Vue.unref(ce),{ref_key:"panelRef",ref:u,class:Vue.normalizeClass(["x-dialog",Vue.unref(f)]),card:"",shadow:"always",header:{icon:n.icon,subtitle:n.subtitle},width:"800px",height:"600px",footer:{justify:"space-between",flex:!0,align:"center"},style:Vue.normalizeStyle(Vue.unref(m)),size:n.size,body:{padding:n.bodyPadding},onClick:Vue.unref(C)},Vue.createSlots({title:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(n.title),1)]),actions:Vue.withCtx(()=>[Vue.renderSlot(I.$slots,"actions"),n.minimizable?(Vue.openBlock(),Vue.createBlock(Vue.unref(M),{key:0,icon:Vue.unref(VtjIcons.Minimize),size:n.size,mode:"icon",type:"primary",background:"hover",onClick:R[0]||(R[0]=Z=>Vue.unref(h)("minimized"))},null,8,["icon","size"])):Vue.createCommentVNode("",!0),n.maximizable?(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:1},[Vue.unref(d)?(Vue.openBlock(),Vue.createBlock(Vue.unref(M),{key:1,icon:Vue.unref(VtjIcons.Maximize),size:n.size,mode:"icon",type:"primary",background:"hover",onClick:R[2]||(R[2]=Z=>Vue.unref(h)("maximized"))},null,8,["icon","size"])):(Vue.openBlock(),Vue.createBlock(Vue.unref(M),{key:0,icon:Vue.unref(VtjIcons.Popup),size:n.size,mode:"icon",type:"primary",background:"hover",onClick:R[1]||(R[1]=Z=>Vue.unref(h)("normal"))},null,8,["icon","size"]))],64)):Vue.createCommentVNode("",!0),n.closable?(Vue.openBlock(),Vue.createBlock(Vue.unref(M),{key:2,icon:Vue.unref(VtjIcons.RawClose),size:n.size,mode:"icon",type:"danger",background:"hover",onClick:Vue.unref(B)},null,8,["icon","size","onClick"])):Vue.createCommentVNode("",!0)]),default:Vue.withCtx(()=>[Vue.renderSlot(I.$slots,"default",{},()=>[n.content?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(n.content),{key:0})):Vue.createCommentVNode("",!0),n.src?(Vue.openBlock(),Vue.createElementBlock("iframe",{key:1,src:n.src,class:"x-dialog__frame"},null,8,yt)):Vue.createCommentVNode("",!0)])]),_:2},[n.cancel||n.submit||I.$slots.footer||I.$slots.extra||I.$slots.handle?{name:"footer",fn:Vue.withCtx(()=>[Vue.renderSlot(I.$slots,"footer",{},()=>[Vue.createVNode(Vue.unref(y),null,{default:Vue.withCtx(()=>[Vue.renderSlot(I.$slots,"extra")]),_:3}),Vue.createVNode(Vue.unref(y),null,{default:Vue.withCtx(()=>[Vue.renderSlot(I.$slots,"handle"),n.cancel?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElButton),{key:0,type:"default",size:n.size,onClick:Vue.unref(z)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(typeof n.cancel=="string"?n.cancel:"取消"),1)]),_:1},8,["size","onClick"])):Vue.createCommentVNode("",!0),n.submit?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElButton),{key:1,type:"primary",size:n.size,onClick:Vue.unref(b)},{default:Vue.withCtx(()=>[Vue.createTextVNode(Vue.toDisplayString(typeof n.submit=="string"?n.cancel:"确定"),1)]),_:1},8,["size","onClick"])):Vue.createCommentVNode("",!0)]),_:3})])]),key:"0"}:void 0]),1032,["header","class","style","size","body","onClick"])),[[Vue.unref(De),Vue.unref(T)],[Vue.unref(fe),Vue.unref(H)]])],2)])):Vue.createCommentVNode("",!0)}});function te(o,t){const e=document.createElement("div"),n=Vue.createVNode(pe,o);n.appContext=t!=null?t:te._context,Vue.render(n,e);const l=()=>{var r;Vue.render(null,e),(r=e.parentNode)==null||r.removeChild(e)};return n.props.onDestroy=()=>{l()},document.body.appendChild(e),{vnode:n,destroy:l}}const kt=Vue.createElementVNode("div",{class:"x-mask-sidebar__helper"},null,-1),bt=Vue.defineComponent({__name:"Sidebar",props:{collapsed:{type:Boolean}},setup(o){const t=o;return(e,n)=>Vue.withDirectives((Vue.openBlock(),Vue.createBlock(Vue.unref(y),{class:Vue.normalizeClass(["x-mask-sidebar",{"is-collapsed":t.collapsed}]),grow:!1,flex:"",direction:"column"},{default:Vue.withCtx(()=>[Vue.renderSlot(e.$slots,"brand"),Vue.createVNode(Vue.unref(y),{class:"x-mask-sidebar__wrapper",flex:"",grow:"",direction:"column",justify:"space-between",align:"center"},{default:Vue.withCtx(()=>[Vue.renderSlot(e.$slots,"default"),kt]),_:3})]),_:3},8,["class"])),[[Vue.unref(fe),{dirs:["e"],disabled:t.collapsed,maxWidth:500,minWidth:200}]])}}),wt=Vue.defineComponent({__name:"SwitchBar",props:{collasped:{type:Boolean,default:!1},favorite:{type:Boolean,default:!1},keyword:{}},emits:["update:collasped","update:keyword","update:favorite"],setup(o,{emit:t}){const e=o,n=Vue.ref(!1),l=Vue.ref(""),r=Vue.ref(!1),u=()=>{n.value=!0},s=()=>{l.value="",n.value=!1,t("update:keyword",l.value)},a=()=>{t("update:collasped",!e.collasped)},i=()=>{t("update:keyword",l.value)},d=()=>{t("update:favorite",r.value)};return(m,f)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(y),{class:"x-mask-switch-bar",justify:"space-between",align:"center"},{default:Vue.withCtx(()=>[e.collasped?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(Vue.unref(y),{key:0,class:"x-mask-switch-bar__left",grow:""},{default:Vue.withCtx(()=>[n.value?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElSwitch),{key:0,modelValue:r.value,"onUpdate:modelValue":f[0]||(f[0]=k=>r.value=k),class:"x-mask-switch-bar__switch","active-icon":Vue.unref(ElementPlusIconsVue.StarFilled),"inactive-icon":Vue.unref(ElementPlusIconsVue.Menu),onChange:d},null,8,["modelValue","active-icon","inactive-icon"])),n.value?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElInput),{key:1,modelValue:l.value,"onUpdate:modelValue":f[1]||(f[1]=k=>l.value=k),class:"x-mask-switch-bar__input",size:"small",placeholder:"请输入查询关键字",onInput:i,"prefix-icon":Vue.unref(ElementPlusIconsVue.Search)},{suffix:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(F),{icon:Vue.unref(ElementPlusIconsVue.Close),onClick:s},null,8,["icon"])]),_:1},8,["modelValue","prefix-icon"])):Vue.createCommentVNode("",!0)]),_:1})),Vue.createVNode(Vue.unref(y),{class:Vue.normalizeClass(["x-mask-switch-bar__right",{"is-collasped":e.collasped}]),flex:"",align:"center",justify:"center"},{default:Vue.withCtx(()=>[!n.value&&!e.collasped?(Vue.openBlock(),Vue.createBlock(Vue.unref(M),{key:0,icon:Vue.unref(ElementPlusIconsVue.Search),mode:"icon",background:"hover",size:"default",circle:"",onClick:u},null,8,["icon"])):Vue.createCommentVNode("",!0),e.collasped?(Vue.openBlock(),Vue.createBlock(Vue.unref(M),{key:1,icon:Vue.unref(ElementPlusIconsVue.Expand),mode:"icon",size:"default",background:"hover",onClick:a,circle:""},null,8,["icon"])):Vue.createCommentVNode("",!0),e.collasped?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(Vue.unref(M),{key:2,icon:Vue.unref(ElementPlusIconsVue.Fold),mode:"icon",size:"default",background:"hover",circle:"",onClick:a},null,8,["icon"]))]),_:1},8,["class"])]),_:1}))}}),Ct=["src"],_t={key:0},Bt=Vue.defineComponent({__name:"Brand",props:{collapsed:{type:Boolean,default:!1},logo:{},title:{},url:{}},setup(o){const t=o,e=VueRouter.useRouter(),n=()=>{t.url&&e.push(t.url)};return(l,r)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(y),{class:Vue.normalizeClass(["x-mask-brand",{"is-collapsed":t.collapsed}]),align:"center"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(y),{class:"x-mask-brand__logo",flex:"",justify:"center",align:"center",onClick:n},{default:Vue.withCtx(()=>[Vue.renderSlot(l.$slots,"logo",{},()=>[t.logo?(Vue.openBlock(),Vue.createElementBlock("img",{key:0,src:t.logo},null,8,Ct)):Vue.createCommentVNode("",!0)])]),_:3}),Vue.createVNode(Vue.unref(y),{class:"x-mask-brand__title",flex:"",align:"center"},{default:Vue.withCtx(()=>[t.title?(Vue.openBlock(),Vue.createElementBlock("span",_t,[Vue.renderSlot(l.$slots,"title",{},()=>[Vue.createTextVNode(Vue.toDisplayString(t.title),1)])])):Vue.createCommentVNode("",!0)]),_:3})]),_:3},8,["class"]))}}),ne="__favorites__",oe="__search__",Et=Vue.defineComponent({__name:"Menu",props:{collapse:{type:Boolean,default:!1},keyword:{},favorite:{type:Boolean},favorites:{},flatMenus:{},menus:{},active:{}},emits:["select"],setup(o,{emit:t}){const e=o,n=Vue.computed(()=>e.menus||[]),l=Vue.computed(()=>{var a;return String((a=e.active)==null?void 0:a.id)}),r=Vue.computed(()=>{var a;return[{id:ne,title:"收藏",icon:ElementPlusIconsVue.Star,children:(a=e.favorites)!=null&&a.length?e.favorites:[{id:ne+"empty",disabled:!0,title:"暂无收藏菜单"}]}]}),u=Vue.computed(()=>{const a=(e.keyword||"").trim(),i=a?(e.flatMenus||[]).filter(d=>{var m;return(m=d.title)==null?void 0:m.includes(a)}):[];return[{id:oe,title:"搜索",icon:ElementPlusIconsVue.Search,children:i!=null&&i.length?i:[{id:oe+"empty",disabled:!0,title:"查询匹配不到菜单项"}]}]}),s=a=>{t("select",a)};return(a,i)=>(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,null,[Vue.withDirectives(Vue.createVNode(Vue.unref(y),{class:"x-mask-menu",grow:"",flex:!1,overflow:"auto"},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createVNode(Vue.unref($),{subMenu:{popperClass:"x-mask-menu-popper",teleported:!0,showTimeout:200,hideTimeout:200},data:n.value,"default-icon":Vue.unref(ElementPlusIconsVue.Document),collapse:!0,"collapse-transition":!1,"default-active":l.value,onSelect:s},null,8,["data","default-icon","default-active"]),[[Vue.vShow,e.collapse]]),Vue.withDirectives(Vue.createVNode(Vue.unref($),{subMenu:{popperClass:"x-mask-menu-popper",teleported:!0},data:n.value,"default-icon":Vue.unref(ElementPlusIconsVue.Document),collapse:!1,"collapse-transition":!1,"default-active":l.value,onSelect:s},null,8,["data","default-icon","default-active"]),[[Vue.vShow,!e.collapse]]),n.value.length?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElEmpty),{key:0,description:"暂无菜单数据"}))]),_:1},512),[[Vue.vShow,!e.favorite&&!e.keyword]]),Vue.withDirectives(Vue.createVNode(Vue.unref(y),{class:"x-mask-menu",grow:"",flex:!1,overflow:"auto"},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createVNode(Vue.unref($),{class:"x-mask-menu__favorites",subMenu:{popperClass:"x-mask-menu-popper",teleported:!0,showTimeout:200,hideTimeout:200},data:r.value,"default-icon":Vue.unref(ElementPlusIconsVue.Document),collapse:!0,"collapse-transition":!1,"default-active":l.value,"default-openeds":[ne],onSelect:s},null,8,["data","default-icon","default-active","default-openeds"]),[[Vue.vShow,e.collapse]]),Vue.withDirectives(Vue.createVNode(Vue.unref($),{class:"x-mask-menu__favorites",subMenu:{popperClass:"x-mask-menu-popper",teleported:!0,showTimeout:200,hideTimeout:200},data:r.value,"default-icon":Vue.unref(ElementPlusIconsVue.Document),collapse:!1,"collapse-transition":!1,"default-active":l.value,"default-openeds":[ne],onSelect:s},null,8,["data","default-icon","default-active","default-openeds"]),[[Vue.vShow,!e.collapse]])]),_:1},512),[[Vue.vShow,e.favorite&&!e.keyword]]),e.keyword?Vue.withDirectives((Vue.openBlock(),Vue.createBlock(Vue.unref(y),{key:0,class:"x-mask-menu",grow:"",flex:!1,overflow:"auto"},{default:Vue.withCtx(()=>[Vue.withDirectives(Vue.createVNode(Vue.unref($),{class:"x-mask-menu__search",subMenu:{popperClass:"x-mask-menu-popper",teleported:!0,showTimeout:200,hideTimeout:200},data:u.value,"default-icon":Vue.unref(ElementPlusIconsVue.Document),collapse:!0,"collapse-transition":!1,"default-active":l.value,"default-openeds":[oe],onSelect:s},null,8,["data","default-icon","default-active","default-openeds"]),[[Vue.vShow,e.collapse]]),Vue.withDirectives(Vue.createVNode(Vue.unref($),{class:"x-mask-menu__search",subMenu:{popperClass:"x-mask-menu-popper",teleported:!0,showTimeout:200,hideTimeout:200},data:u.value,"default-icon":Vue.unref(ElementPlusIconsVue.Document),collapse:!1,"collapse-transition":!1,"default-active":l.value,"default-openeds":[oe],onSelect:s},null,8,["data","default-icon","default-active","default-openeds"]),[[Vue.vShow,!e.collapse]])]),_:1},512)),[[Vue.vShow,!!e.keyword]]):Vue.createCommentVNode("",!0)],64))}}),St={class:"x-mask-tabs__trigger"},xt={key:1},zt=["onDragstart","onDragend"],Pt={key:1},Nt=Vue.defineComponent({__name:"Tabs",props:{tabs:{},home:{},isActiveTab:{type:Function},value:{},favorites:{}},emits:["click","remove","refresh","toggleFavorite","dialog"],setup(o,{emit:t}){const e=o,n=i=>{const d=!!e.favorites.find(m=>{var f;return m===i.menu||m.id===((f=i.menu)==null?void 0:f.id)});return[{icon:ElementPlusIconsVue.Refresh,label:"刷新",name:"refresh",value:i},"|",{icon:d?ElementPlusIconsVue.StarFilled:ElementPlusIconsVue.Star,label:"收藏",name:"favorite",value:i.menu,disabled:!i.menu},"|",{icon:ElementPlusIconsVue.CopyDocument,label:"弹窗",name:"dialog",value:i}]},l=i=>{const d=i.paneName;if(d===e.home.id){t("click",e.home);return}const m=e.tabs.find(f=>f.id===d);m&&t("click",m)},r=i=>{const d=e.tabs.find(m=>m.id===i);d&&t("remove",d)},u=i=>{switch(i.name){case"refresh":t("refresh",i.value);break;case"favorite":t("toggleFavorite",i.value);break;case"dialog":t("dialog",i.value);break}},s=(i,d)=>{d.dataTransfer&&(d.dataTransfer.setData("tab",i.id),d.target&&d.target.classList.add("is-dagging"))},a=(i,d)=>{d.target&&d.target.classList.remove("is-dagging")};return(i,d)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(y),{ref:"tabsRef",class:"x-mask-tabs",height:"100%",grow:"",flex:"",justify:"flex-end",direction:"column"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ElementPlus.ElTabs),{type:"card","model-value":e.value,onTabRemove:r,onTabClick:l},{default:Vue.withCtx(()=>[e.home?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElTabPane),{key:0,name:e.home.id},{label:Vue.withCtx(()=>[Vue.createElementVNode("div",St,[e.home.icon?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(J)(e.home.icon)),{key:0})):Vue.createCommentVNode("",!0),e.home.title?(Vue.openBlock(),Vue.createElementBlock("span",xt,Vue.toDisplayString(e.home.title),1)):Vue.createCommentVNode("",!0)])]),_:1},8,["name"])):Vue.createCommentVNode("",!0),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(e.tabs,m=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElTabPane),{key:m.id,name:m.id,lazy:"",closable:""},{label:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ElementPlus.ElPopover),{"open-delay":500,placement:"bottom",trigger:"hover",width:"200px",disabled:m.id!==e.value},{reference:Vue.withCtx(()=>[Vue.createElementVNode("div",{class:"x-mask-tabs__trigger",draggable:"true",onDragstart:f=>s(m,f),onDragend:f=>a(m,f)},[m.icon?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(J)(m.icon)),{key:0})):Vue.createCommentVNode("",!0),m.title?(Vue.openBlock(),Vue.createElementBlock("span",Pt,Vue.toDisplayString(m.title),1)):Vue.createCommentVNode("",!0)],40,zt)]),default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ee),{items:n(m),mode:"text",size:"small",type:"info",onClick:u},null,8,["items"])]),_:2},1032,["disabled"])]),_:2},1032,["name"]))),128))]),_:1},8,["model-value"])]),_:1},512))}}),Tt=Vue.defineComponent({__name:"ThemeSwitch",setup(o){const t=VueUse.useDark();return(e,n)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElSwitch),{class:"x-mask-theme-switch",modelValue:Vue.unref(t),"onUpdate:modelValue":n[0]||(n[0]=l=>Vue.isRef(t)?t.value=l:null),size:"default","active-action-icon":Vue.unref(ElementPlusIconsVue.Moon),"inactive-action-icon":Vue.unref(ElementPlusIconsVue.Sunny)},null,8,["modelValue","active-action-icon","inactive-action-icon"]))}}),It={class:"x-mask-toolbar__menu-item"},Dt=Vue.defineComponent({__name:"Toolbar",props:{tabs:{default:()=>[]},actions:{},theme:{type:Boolean}},emits:["closeOtherTabs","closeAllTabs","closeTab","clickTab","actionClick","actionCommand"],setup(o,{emit:t}){const e=o,n=Vue.computed(()=>{const a=e.tabs.map((i,d)=>({divided:d===0,label:i.title,command:i}));return[{label:"关闭其他",command:"other"},{label:"关闭全部",command:"all"},...a]}),l=a=>{t("closeTab",a.command)},r=a=>{switch(a.command){case"all":t("closeAllTabs");break;case"other":t("closeOtherTabs");break;default:t("clickTab",a.command);break}},u=a=>{t("actionClick",a)},s=(a,i)=>{t("actionCommand",a,i)};return(a,i)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(y),{class:"x-mask-toolbar",align:"center"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(M),{icon:Vue.unref(ElementPlusIconsVue.MoreFilled),menus:n.value,dropdown:{size:"small"},mode:"icon",circle:"",background:"hover",onCommand:r},{item:Vue.withCtx(({item:d})=>[Vue.createElementVNode("span",It,[Vue.createTextVNode(Vue.toDisplayString(d.label)+" ",1),["other","all"].includes(d.command)?Vue.createCommentVNode("",!0):(Vue.openBlock(),Vue.createBlock(Vue.unref(F),{key:0,onClick:Vue.withModifiers(m=>l(d),["stop"]),icon:Vue.unref(ElementPlusIconsVue.Close)},null,8,["onClick","icon"]))])]),_:1},8,["icon","menus"]),Vue.createVNode(Vue.unref(ElementPlus.ElDivider),{direction:"vertical"}),e.actions?(Vue.openBlock(),Vue.createBlock(Vue.unref(ee),{key:0,circle:"",mode:"icon",size:"default",background:"hover",items:a.actions,onClick:u,onCommand:s},null,8,["items"])):Vue.createCommentVNode("",!0),e.actions?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElDivider),{key:1,direction:"vertical"})):Vue.createCommentVNode("",!0),e.theme?(Vue.openBlock(),Vue.createBlock(Tt,{key:2})):Vue.createCommentVNode("",!0),e.theme?(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElDivider),{key:3,direction:"vertical"})):Vue.createCommentVNode("",!0),Vue.renderSlot(a.$slots,"default")]),_:3}))}}),Mt=Vue.defineComponent({__name:"Avatar",props:{avatar:{}},setup(o){const t=o;return(e,n)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElPopover),{width:200,"popper-class":"x-mask-avatar__popper",disabled:!e.$slots.default},{reference:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ElementPlus.ElAvatar),{class:"x-mask-avatar",shape:"circle",icon:Vue.unref(ElementPlusIconsVue.UserFilled),src:t.avatar,size:26},null,8,["icon","src"])]),default:Vue.withCtx(()=>[e.$slots.default?Vue.renderSlot(e.$slots,"default",{key:0}):Vue.createCommentVNode("",!0)]),_:3},8,["disabled"]))}}),Re=Vue.defineComponent({__name:"Content",props:{createView:{type:Function},exclude:{}},setup(o){const t=o;return(e,n)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(y),{class:"x-mask__content",flex:!1,grow:"",padding:!1},{default:Vue.withCtx(()=>[Vue.renderSlot(e.$slots,"default"),Vue.createVNode(Vue.unref(VueRouter.RouterView),null,{default:Vue.withCtx(({Component:l,route:r})=>[(Vue.openBlock(),Vue.createBlock(Vue.KeepAlive,{exclude:t.exclude},[l?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(t.createView(l,r)),{key:r.fullPath})):Vue.createCommentVNode("",!0)],1032,["exclude"]))]),_:1})]),_:3}))}}),Ae=140,Fe={logo:{type:String,default:K},title:{type:String,default:"VTJ.PRO"},menus:{type:[Array,Function],default(){return[]}},favorites:{type:[Array,Function],default(){return[]}},menuAdapter:{type:Function},home:{type:[String,Object],default:"/"},tabs:{type:Number,default:20},actions:{type:Array},avatar:{type:String},theme:{type:Boolean},disabled:{type:Boolean},addFavorite:{type:Function},removeFavorite:{type:Function}},he=Symbol(),ge=Symbol();function Rt(o){const t=Vue.ref(!1),e=Vue.ref(""),n=Vue.ref(!1);return{collapsed:t,keyword:e,favorite:n}}function At(o){const t=VtjUtils.uid();return Vue.computed(()=>{const e=o.home;return Object.assign({id:t,url:"/",name:"MaskHome",icon:ElementPlusIconsVue.HomeFilled,closable:!1},typeof e=="string"?{url:e}:e||{})})}function $e(o,t){let e=[];return o.forEach(n=>{n=t?t(n):n,n.children?e=e.concat($e(n.children,t)):e.push(n)}),e}function Ft(o,t){const e=VueRouter.useRouter(),n=Vue.shallowRef([]),l=Vue.shallowRef([]),r=Vue.computed(()=>$e(n.value,o.menuAdapter)),u=Vue.computed(()=>VtjUtils.arrayToMap(r.value,"id")),s=Vue.ref(null),a=p=>{const h=typeof p=="object"?p.id:p,C=u.value.get(h);if(!C){console.warn("找不到菜单",p);return}const{type:B="route",url:V,title:_,icon:b}=C;if(!V){s.value=C,t("select",C);return}if(B==="route"){VtjUtils.isUrl(V)||V.startsWith("//")?window.open(V):(s.value=C,e.push(V).catch(z=>z));return}if(B==="window"){window.open(V);return}B==="dialog"&&te({resizable:!0,bodyPadding:!1,width:"80%",height:"80%",title:_,icon:b,src:V})},i=()=>N(this,null,function*(){var p,h;n.value=typeof o.menus=="function"?(yield o.menus())||[]:(p=o.menus)!=null?p:[],l.value=typeof o.favorites=="function"?(yield o.favorites())||[]:(h=o.favorites)!=null?h:[]}),d=p=>{l.value=[p,...l.value],o.addFavorite&&o.addFavorite(p)},m=p=>{l.value=l.value.filter(h=>h.id!==p.id),o.removeFavorite&&o.removeFavorite(p)},f=p=>!!l.value.find(h=>h===p||h.id===p.id),k=p=>{f(p)?m(p):d(p)};return Vue.watchEffect(i),{menus:n,favorites:l,flatMenus:r,active:s,select:a,toggleFavorite:k}}function $t(o,t,e,n,l){const r=VueRouter.useRoute(),u=VueRouter.useRouter(),s={},a=Vue.ref([]),i=Vue.ref(),{width:d}=VueUse.useElementSize(i),m=Vue.computed(()=>Math.floor(d.value/Ae)),f=Vue.computed(()=>a.value.slice(0,m.value).filter(g=>!g.dialog)),k=Vue.computed(()=>a.value.slice(m.value)),p=g=>e.value.find(v=>v.url===g),h=g=>r.fullPath===g.url,C=g=>l.value.id===g?l.value:a.value.find(v=>v.id===g),B=Vue.ref(""),V=Vue.computed(()=>C(B.value)),_=g=>{u.push(g.url).catch(v=>v)},b=g=>{B.value=g.id,r.fullPath!==g.url&&_(g)},z=()=>{_(l.value)},T=g=>{const v=a.value.find(w=>w.url===g.url||w.id===g.id);v?b(v):(a.value.unshift(g),b(g))},H=g=>N(this,null,function*(){const{url:v=r.fullPath,icon:w,title:ye="新建标签页"}=g||{},le=s[v],ke=VtjUtils.uid(),be=VtjUtils.upperFirstCamelCase(v);return P({id:ke,name:be,url:v,icon:w,title:ye,closable:!0,menu:g},le?yield le():{})}),W=g=>N(this,null,function*(){if(yield ElementPlus.ElMessageBox.confirm("是否关闭页签","提示",{type:"warning"}).catch(w=>!1)){if(a.value=a.value.filter(w=>w.id!==g.id),B.value===g.id){const w=a.value[0];_(w||l.value)}return g}}),I=g=>{const v=a.value.findIndex(w=>w.id===g.id);if(v>=0){const w=a.value[v];a.value.splice(v,1,Object.assign(w,g))}},R=()=>N(this,null,function*(){if(!(yield ElementPlus.ElMessageBox.confirm("是否关闭全部页签","提示",{type:"warning"}).catch(w=>!1)))return;const v=a.value;return a.value=[],b(l.value),v}),Z=()=>N(this,null,function*(){if(!(yield ElementPlus.ElMessageBox.confirm("是否关闭其他页签","提示",{type:"warning"}).catch(w=>!1)))return;const v=a.value.filter(w=>w.id!==B.value);return a.value=a.value.filter(w=>w.id===B.value),v}),ve=g=>{const v=a.value.filter(w=>w.id!==g.id);a.value=[g,...v],b(g)},Y=()=>N(this,null,function*(){yield Vue.nextTick();const g=l.value.url===r.fullPath,v=p(r.fullPath);if(g)B.value=l.value.id;else{const w=yield H(v);T(w)}yield Vue.nextTick(),n.value=v||null});return Vue.watch(e,Y),Vue.watch(r,Y,{immediate:!0}),Vue.provide(he,s),{tabRef:i,tabs:a,showTabs:f,currentTab:V,changeTab:_,removeTab:W,updateTab:I,addTab:T,home:l,tabValue:B,isCurrentTab:h,activeHome:z,activeTab:b,dropdownTabs:k,removeAllTabs:R,removeOtherTabs:Z,moveToShow:ve}}function jt(o){const t=new Map,e=Vue.ref([]),n=Vue.reactive({}),l={},{updateTab:r,isCurrentTab:u,activeHome:s,tabs:a}=o,i=(V,_)=>{const b=_.fullPath;if(t.has(b))return t.get(b);{const z=VtjUtils.upperFirstCamelCase(b),T={name:z,setup(){const H=Vue.computed(()=>n[b]||document.body),W=Vue.computed(()=>!n[b]),I=Vue.computed(()=>!e.value.includes(z));return Vue.provide(VueRouter.routeLocationKey,Vue.toRaw(P({},_))),()=>I.value?Vue.h(Vue.Teleport,{to:H.value,disabled:W.value},[Vue.h(V)]):null}};return t.set(b,T),T}},d=V=>{V.dialog=void 0,delete n[V.url];const _=l[V.id];_&&(_.destroy(),delete l[V.id],r(V))},m=(V=[])=>{V.forEach(_=>{d(_)})},f=V=>N(this,null,function*(){V.dialog=D(P({},V.dialog),{onMinimized:()=>{d(V)},onClose:()=>N(this,null,function*(){d(V),a.value=a.value.filter(b=>b.id!==V.id)})}),r(V);const _=te(D(P({title:V.title,icon:V.icon,modal:!1,resizable:!0,draggable:!0},V.dialog),{onOpen(b){var z,T;n[V.url]=(T=(z=b.refs.panelRef)==null?void 0:z.bodyRef)==null?void 0:T.$el}}));return yield Vue.nextTick(),u(V)&&s(),l[V.id]=_,_}),k=V=>N(this,null,function*(){e.value=[V.name],yield Vue.nextTick(),e.value=[]}),p=V=>N(this,null,function*(){e.value=V.map(_=>_.name),yield Vue.nextTick(),e.value=[]}),h=V=>(V.preventDefault(),!1),C=V=>{if(V.dataTransfer){const _=V.dataTransfer.getData("tab"),b=a.value.find(z=>z.id===_);if(b){const{clientX:z,clientY:T}=V;b.dialog={left:z,top:T},f(b)}}},B=V=>!!n[V];return VueUse.useEventListener(document,"dragover",h),VueUse.useEventListener(document,"drop",C),{createView:i,openDialog:f,refresh:k,exclude:e,cleanCache:p,hasDialog:B,closeDialog:d,closeDialogs:m}}const je=Vue.defineComponent({name:"XMask",__name:"Mask",props:Fe,emits:["select","actionClick","actionCommand"],setup(o,{emit:t}){const e=o,n=At(e),{collapsed:l,keyword:r,favorite:u}=Rt(),{menus:s,favorites:a,flatMenus:i,active:d,select:m,toggleFavorite:f}=Ft(e,t),{tabRef:k,showTabs:p,currentTab:h,changeTab:C,removeTab:B,tabs:V,updateTab:_,isCurrentTab:b,activeHome:z,removeAllTabs:T,removeOtherTabs:H,dropdownTabs:W,moveToShow:I}=$t(e,t,i,d,n),{createView:R,openDialog:Z,refresh:ve,exclude:Y,cleanCache:g,closeDialogs:v}=jt({tabs:V,updateTab:_,isCurrentTab:b,activeHome:z}),w=x=>N(this,null,function*(){(yield B(x))&&(yield g([x]))}),ye=()=>N(this,null,function*(){const x=yield T();x&&(v(x),yield g(x))}),le=()=>N(this,null,function*(){const x=yield H();x&&(v(x),yield g(x))}),ke=x=>{t("actionClick",x)},be=(x,j)=>{t("actionCommand",x,j)};return Vue.provide(ge,{tabs:V,flatMenus:i,favorites:a,updateTab:_,active:d,currentTab:h}),(x,j)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(y),{class:"x-mask"},{default:Vue.withCtx(()=>[e.disabled?(Vue.openBlock(),Vue.createBlock(Re,{key:1,createView:Vue.unref(R),exclude:Vue.unref(Y)},{default:Vue.withCtx(()=>[x.$slots.default?Vue.renderSlot(x.$slots,"default",{key:0}):Vue.createCommentVNode("",!0)]),_:3},8,["createView","exclude"])):(Vue.openBlock(),Vue.createElementBlock(Vue.Fragment,{key:0},[Vue.createVNode(bt,{collapsed:Vue.unref(l)},{brand:Vue.withCtx(()=>[Vue.createVNode(Bt,{logo:e.logo,title:e.title,url:Vue.unref(n).url,collapsed:Vue.unref(l)},null,8,["logo","title","url","collapsed"])]),default:Vue.withCtx(()=>[Vue.createVNode(wt,{collasped:Vue.unref(l),"onUpdate:collasped":j[0]||(j[0]=U=>Vue.isRef(l)?l.value=U:null),favorite:Vue.unref(u),"onUpdate:favorite":j[1]||(j[1]=U=>Vue.isRef(u)?u.value=U:null),keyword:Vue.unref(r),"onUpdate:keyword":j[2]||(j[2]=U=>Vue.isRef(r)?r.value=U:null)},null,8,["collasped","favorite","keyword"]),Vue.createVNode(Et,{collapse:Vue.unref(l),keyword:Vue.unref(r),favorite:Vue.unref(u),favorites:Vue.unref(a),flatMenus:Vue.unref(i),menus:Vue.unref(s),active:Vue.unref(d),onSelect:Vue.unref(m)},null,8,["collapse","keyword","favorite","favorites","flatMenus","menus","active","onSelect"])]),_:1},8,["collapsed"]),Vue.createVNode(Vue.unref(y),{class:"x-mask__main",grow:"",shrink:"",flex:"",direction:"column"},{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(y),{class:"x-mask-topbar",justify:"space-between",align:"center"},{default:Vue.withCtx(()=>{var U;return[Vue.createVNode(Nt,{ref_key:"tabRef",ref:k,favorites:Vue.unref(a),tabs:Vue.unref(p),home:Vue.unref(n),value:(U=Vue.unref(h))==null?void 0:U.id,onClick:Vue.unref(C),onToggleFavorite:Vue.unref(f),onRemove:w,onDialog:Vue.unref(Z),onRefresh:Vue.unref(ve)},null,8,["favorites","tabs","home","value","onClick","onToggleFavorite","onDialog","onRefresh"]),Vue.createVNode(Dt,{tabs:Vue.unref(W),actions:e.actions,theme:e.theme,onCloseOtherTabs:le,onCloseAllTabs:ye,onCloseTab:w,onClickTab:Vue.unref(I),onActionClick:ke,onActionCommand:be},{default:Vue.withCtx(()=>[Vue.createVNode(Mt,{avatar:e.avatar},Vue.createSlots({_:2},[x.$slots.user?{name:"default",fn:Vue.withCtx(()=>[Vue.renderSlot(x.$slots,"user")]),key:"0"}:void 0]),1032,["avatar"])]),_:3},8,["tabs","actions","theme","onClickTab"])]}),_:3}),Vue.createVNode(Re,{createView:Vue.unref(R),exclude:Vue.unref(Y)},{default:Vue.withCtx(()=>[x.$slots.default?Vue.renderSlot(x.$slots,"default",{key:0}):Vue.createCommentVNode("",!0)]),_:3},8,["createView","exclude"])]),_:3})],64))]),_:3}))}});function Ot(o={}){const t=VueRouter.useRoute(),e=Vue.inject(he,null),n=Vue.inject(ge,null);if(e){const r=typeof o=="function"?o:()=>N(this,null,function*(){return o});e[t.fullPath]=r}return{tab:Vue.computed(()=>n?n.tabs.value.find(r=>r.url===t.fullPath):null),mask:n}}const Ut=Vue.defineComponent({__name:"SelectEditor",setup(o){return(t,e)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElSelect),null,{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(ElementPlus.ElOption),{label:"Label",value:"label"})]),_:1}))}}),ue={text:{name:ElementPlus.ElInput,props:{clearable:!0}},textarea:{name:ElementPlus.ElInput,props:{type:"textarea",rows:2,autosize:{minRows:2,maxRows:5}}},select:{name:Ut,props:{clearable:!0}}},Oe={label:{type:String},editor:{type:[String,Object],default:"text"},modelValue:{type:[String,Number,Boolean,Object,Array],default:""},size:{type:String},tooltipMessage:{type:[Boolean,Object],default:!0},tooltipPosition:{type:[String,Number],default:"outer"},placeholder:{type:String},disabled:{type:Boolean},options:{type:[Array,Function]}};function Lt(o){return Vue.computed(()=>{const{editor:t="text",placeholder:e,label:n,disabled:l}=o,r={placeholder:e||(e===null?void 0:`请输入${n}`),disabled:l};return VtjUtils.merge(typeof t=="string"?ue[t]||ue.text:ue[t.name]||{},{props:r},t)})}const Ue=Vue.defineComponent({name:"XField",__name:"Field",props:Oe,emits:["update:modelValue","change"],setup(o,{expose:t,emit:e}){const n=o,l=Vue.inject(ElementPlus.formContextKey,null),r=Lt(n),u=Vue.ref(n.modelValue),s=Vue.ref(),a=Vue.ref(),i=Vue.computed(()=>n.size||(l==null?void 0:l.size)||"default"),d=Vue.computed(()=>({[`is-tooltip-${n.tooltipPosition}`]:!!n.tooltipPosition})),m=Vue.computed(()=>({right:typeof n.tooltipPosition=="number"?`${n.tooltipPosition}px`:void 0}));return Vue.watch(u,f=>{e("update:modelValue",f),e("change",f)}),t({fieldValue:u,itemRef:s,editorRef:a}),(f,k)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElFormItem),Vue.mergeProps({class:["x-field",d.value],ref_key:"itemRef",ref:s,label:f.label,size:i.value},f.$attrs),Vue.createSlots({error:Vue.withCtx(({error:p})=>[Vue.renderSlot(f.$slots,"error",{error:p},()=>[n.tooltipMessage?(Vue.openBlock(),Vue.createElementBlock("div",{key:0,class:"x-field__info",style:Vue.normalizeStyle(m.value)},[Vue.createVNode(Vue.unref(ElementPlus.ElTooltip),Vue.mergeProps({content:p},n.tooltipMessage),{default:Vue.withCtx(()=>[Vue.createVNode(Vue.unref(F),{class:"x-field__trigger",icon:Vue.unref(ElementPlusIconsVue.WarningFilled),size:i.value},null,8,["icon","size"])]),_:2},1040,["content"])],4)):Vue.createCommentVNode("",!0)])]),default:Vue.withCtx(()=>[Vue.renderSlot(f.$slots,"default"),Vue.unref(r).name?(Vue.openBlock(),Vue.createBlock(Vue.resolveDynamicComponent(Vue.unref(r).name),Vue.mergeProps({key:0,ref_key:"editorRef",ref:a,modelValue:u.value,"onUpdate:modelValue":k[0]||(k[0]=p=>u.value=p)},Vue.unref(r).props),null,16,["modelValue"])):Vue.createCommentVNode("",!0)]),_:2},[f.$slots.label?{name:"label",fn:Vue.withCtx(()=>[Vue.renderSlot(f.$slots,"label")]),key:"0"}:void 0]),1040,["label","size","class"]))}}),Xt=Vue.defineComponent({__name:"Form",setup(o){return(t,e)=>(Vue.openBlock(),Vue.createBlock(Vue.unref(ElementPlus.ElForm),Vue.normalizeProps(Vue.guardReactiveProps(t.$attrs)),{default:Vue.withCtx(()=>[Vue.renderSlot(t.$slots,"default")]),_:3},16))}}),Le=[Ce,F,$,Se,M,ee,y,ie,ce,pe,je,Ue],Ht="0.6.11",Xe=A(Le).install;c.BuiltinEditors=ue,c.Draggable=de,c.INSTALLED_KEY=X,c.MASK_KEY=ge,c.NOOP=re,c.Resizable=me,c.TAB_CREATORS_KEY=he,c.TAB_ITEM_WIDTH=Ae,c.XAction=M,c.XActionBar=ee,c.XContainer=y,c.XDialog=pe,c.XField=Ue,c.XForm=Xt,c.XHeader=ie,c.XIcon=F,c.XMask=je,c.XMenu=$,c.XPanel=ce,c.XSimpleMask=Se,c.XStartup=Ce,c.actionBarProps=ze,c.actionProps=se,c.components=Le,c.containerProps=Pe,c.createDialog=te,c.default=Xe,c.defineTab=Ot,c.dialogProps=Me,c.fieldProps=Oe,c.getSizeValue=S,c.headerProps=Ne,c.iconProps=Be,c.iconSizeMap=_e,c.install=Xe,c.makeInstaller=A,c.maskProps=Fe,c.omit=G,c.panelProps=Te,c.parseSize=L,c.pick=ae,c.useDisabled=q,c.useIcon=J,c.useIconProps=xe,c.vDraggable=De,c.vResizable=fe,c.version=Ht,Object.defineProperties(c,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/cdn/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";body{padding:0;margin:0;font-family:var(--el-font-family);background-color:var(--el-bg-color)}body.user-select-none{user-select:none;overflow:hidden!important}body.user-select-none iframe{pointer-events:none}body::-webkit-scrollbar,div::-webkit-scrollbar{z-index:11;width:6px}body::-webkit-scrollbar:horizontal,div::-webkit-scrollbar:horizontal{height:6px}body::-webkit-scrollbar-thumb,div::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:rgba(0,0,0,.1)}body::-webkit-scrollbar-corner,div::-webkit-scrollbar-corner{background:transparent}body::-webkit-scrollbar-track,div::-webkit-scrollbar-track{background:transparent}body::-webkit-scrollbar-track-piece,div::-webkit-scrollbar-track-piece{background:transparent;width:6px}body.is-dragging,body.is-resizing{user-select:none}body.is-dragging iframe,body.is-resizing iframe{user-select:none;pointer-events:none}.x-icon{line-height:1;display:inline-block;vertical-align:middle;font-size:inherit;width:1em;height:1em;overflow:hidden}.x-icon>svg{width:1em;height:1em}.x-icon.is-pointer{cursor:pointer}.x-icon.is-pointer:hover{opacity:.7}.x-icon img{width:100%;height:100%;transform:translateY(1px)}.x-icon+.x-icon{margin-left:10px}.x-menu{border-right:none!important}.x-menu .x-icon{font-size:inherit;width:14px}.x-menu__wrapper{display:inline-flex;justify-content:flex-start;align-items:center}.x-menu__badge{font-size:12px;zoom:.9;margin-left:14px}.x-menu.el-menu--collapse .x-menu__wrapper{position:relative}.x-menu.el-menu--collapse .x-menu__badge{position:absolute;right:20px;top:5px}.x-simple-mask{height:100%;background-color:#fff}.x-simple-mask__header{border-bottom:1px solid #dcdfe6;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.x-simple-mask__aside{border-right:1px solid #dcdfe6}.x-simple-mask__footer{border-top:1px solid #dcdfe6;display:flex;flex-direction:row;justify-content:center;align-items:center}.x-simple-mask__logo{font-size:20px;color:#337ecc;font-weight:700;cursor:pointer}.x-simple-mask__logo:hover{opacity:.7}.x-action{display:inline-flex;vertical-align:middle}.x-action+.x-action{margin-left:10px}.x-action .el-dropdown,.x-action .el-tooltip__trigger,.x-action .el-badge{outline:none}.x-action .el-badge__content{zoom:.9}.x-action--icon+.x-action--icon{margin-left:5px}.x-action__inner{cursor:pointer;color:var(--el-text-color-regular);display:inline-flex;justify-content:center;align-items:center;line-height:1;white-space:nowrap;font-size:14px}.x-action__inner>.x-icon+span{margin-left:.2em}.x-action__inner>span{display:inline-flex;align-items:center}.x-action__inner:hover{opacity:.7}.x-action__inner.is-disabled{cursor:not-allowed;opacity:.6}.x-action__inner.is-primary{color:var(--el-color-primary)}.x-action__inner.is-warning{color:var(--el-color-warning)}.x-action__inner.is-success{color:var(--el-color-success)}.x-action__inner.is-danger{color:var(--el-color-danger)}.x-action__inner.is-info{color:var(--el-text-color-regular)}.x-action__inner.is-icon{padding:5px;border-radius:3px}.x-action__inner.is-icon.is-background-hover{color:var(--el-text-color-regular)}.x-action__inner.is-icon.is-background-hover:hover.is-primary{background-color:var(--el-color-primary-light-8);color:var(--el-color-primary)}.x-action__inner.is-icon.is-background-hover:hover.is-success{background-color:var(--el-color-success-light-8);color:var(--el-color-success)}.x-action__inner.is-icon.is-background-hover:hover.is-warning{background-color:var(--el-color-warning-light-8);color:var(--el-color-warning)}.x-action__inner.is-icon.is-background-hover:hover.is-danger{background-color:var(--el-color-danger-light-8);color:var(--el-color-danger)}.x-action__inner.is-icon.is-background-hover:hover.is-info{background-color:var(--el-color-info-light-8);color:var(--el-text-color-regular)}.x-action__inner.is-icon.is-background-always.is-primary{background-color:var(--el-color-primary-light-9)}.x-action__inner.is-icon.is-background-always.is-success{background-color:var(--el-color-success-light-9)}.x-action__inner.is-icon.is-background-always.is-warning{background-color:var(--el-color-warning-light-9)}.x-action__inner.is-icon.is-background-always.is-danger{background-color:var(--el-color-danger-light-9)}.x-action__inner.is-icon.is-background-always.is-info{background-color:var(--el-color-info-light-9)}.x-action__inner.is-icon.is-circle{border-radius:50%}.x-action__inner.is-icon.is-large{font-size:16px;padding:6px}.x-action__inner.is-icon.is-small{font-size:12px;padding:4px}.x-action__inner.is-text.is-large{font-size:16px}.x-action__inner.is-text.is-small{font-size:12px}.x-action-bar{white-space:nowrap}.x-action-bar__divider{margin:0 1em!important}.x-container{flex-shrink:0;box-sizing:border-box}.x-container.is-fit{width:100%;height:100%}.x-container.is-flex{display:flex}.x-container.is-inline-flex{display:inline-flex}.x-container.is-direction-column{flex-direction:column}.x-container.is-direction-row-reverse{flex-direction:row-reverse}.x-container.is-direction-column-reverse{flex-direction:column-reverse}.x-container.is-justify-flex-end{justify-content:flex-end}.x-container.is-justify-center{justify-content:center}.x-container.is-justify-space-between{justify-content:space-between}.x-container.is-justify-space-around{justify-content:space-around}.x-container.is-align-center{align-items:center}.x-container.is-flex-end{align-items:flex-end}.x-container.is-baseline{align-items:baseline}.x-container.is-stretch{align-items:stretch}.x-container.is-align-content-flex-start{align-content:flex-start}.x-container.is-align-content-flex-end{align-content:flex-end}.x-container.is-align-content-enter{align-content:center}.x-container.is-align-content-space-between{align-content:space-between}.x-container.is-align-content-space-around{align-content:space-around}.x-container.is-align-content-stretch{align-content:stretch}.x-container.is-wrap-wrap{flex-wrap:wrap}.x-container.is-wrap-wrap-reverse{flex-wrap:wrap-reverse}.x-container.is-grow{flex-grow:1}.x-container.is-shrink{flex-shrink:1}.x-container.is-align-self-flex-start{align-self:flex-start}.x-container.is-align-self-flex-end{align-self:flex-end}.x-container.is-align-self-center{align-self:center}.x-container.is-align-self-baseline{align-self:baseline}.x-container.is-align-self-stretch{align-self:stretch}.x-container.is-overflow-hidden{overflow:hidden}.x-container.is-overflow-visible{overflow:visible}.x-container.is-overflow-auto{overflow:auto}.x-container.is-padding{padding:10px}.x-header{height:32px}.x-header.is-size-large{height:40px}.x-header.is-size-small{height:28px}.x-header.is-border{border-bottom:1px solid var(--el-border-color-light)}.x-header__wrapper{line-height:1.5;font-size:14px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:1px}.x-header__wrapper.is-size-large{font-size:16px}.x-header__wrapper.is-size-large .x-header__subtitle,.x-header__wrapper.is-size-large .x-header__more{font-size:14px}.x-header__wrapper.is-size-small,.x-header__wrapper.is-size-small .x-header__subtitle,.x-header__wrapper.is-size-small .x-header__more{font-size:12px}.x-header__wrapper.is-pointer .x-header__content{cursor:pointer}.x-header__wrapper.is-pointer .x-header__content:hover{opacity:.7}.x-header__icon{margin-right:5px;flex-shrink:0}.x-header__content{color:var(--el-text-color-primary);font-weight:700}.x-header__more{color:var(--el-text-color-secondary)!important;margin-left:3px}.x-header__subtitle{margin-left:.5em;font-size:12px;color:var(--el-text-color-secondary)}.x-header__actions{white-space:nowrap}.x-panel--default.is-radius{border-radius:var(--el-border-radius-base)}.x-panel--default .x-panel__header{margin-bottom:4px}.x-panel--default.is-border .x-panel__body{border:1px solid var(--el-border-color-light)}.x-panel--default.is-radius .x-panel__body{border-radius:var(--el-border-radius-base)}.x-panel--default.is-shadow-always .x-panel__body,.x-panel--default.is-shadow-hover .x-panel__body:hover{box-shadow:var(--el-box-shadow-lighter)}.x-panel--card.is-border{border:1px solid var(--el-border-color-light)}.x-panel--card.is-radius{border-radius:var(--el-border-radius-base)}.x-panel--card .x-panel__header{padding:0 5px 0 10px;background-color:var(--el-fill-color-lighter)}.x-panel--card.is-shadow-always,.x-panel--card.is-shadow-hover:hover{box-shadow:var(--el-box-shadow-lighter)}.x-panel__body.is-grow.is-overflow-auto{height:1px}.x-dialog{background-color:var(--el-bg-color);position:absolute;pointer-events:initial}.x-dialog.is-draggable>.x-panel__header{cursor:move}.x-dialog.is-maximized{width:100%!important;height:100%!important;left:0!important;top:0!important}.x-dialog.is-minimized{display:none}.x-dialog__wrapper{position:absolute;inset:0;pointer-events:none;overflow:hidden}.x-dialog__wrapper.is-minimized{display:none}.x-dialog__wrapper.is-dragging{user-select:none}.x-dialog__wrapper.is-dragging iframe{user-select:none;pointer-events:none}.x-dialog__modal{position:absolute;inset:0;background-color:var(--el-mask-color-extra-light);pointer-events:initial}.x-dialog__frame{width:100%;height:100%;display:block;border:none}.x-dialog.is-primary{border:2px solid var(--el-color-primary);border-top:none}.x-dialog.is-primary>.x-panel__header{background-color:var(--el-color-primary);color:var(--el-color-white)}.x-dialog.is-primary>.x-panel__header .x-header__content{color:var(--el-color-white)}.x-dialog.is-primary>.x-panel__header .x-action__inner.is-icon.is-background-hover{color:var(--el-color-white)}.x-dialog.is-primary>.x-panel__header .x-action__inner.is-icon.is-background-hover:hover.is-primary{background-color:#ffffff4d;opacity:1}.x-dialog.is-primary>.x-panel__header .x-action__inner.is-icon.is-background-hover:hover.is-danger{background-color:var(--el-color-danger);opacity:1}.x-dialog.is-primary>.x-panel__header .x-action__inner.is-icon.is-background-hover:hover.is-warning{background-color:var(--el-color-warning);opacity:1}.x-mask{--el-mask-brand-color: #0157fe;--el-mask-content-bg-color: var(--el-bg-color);--el-mask-topbar-bg-color: var(--el-fill-color-lighter);--el-mask-sidebar-bg-color: var(--el-fill-color-lighter);--el-mask-sidebar-border-color: var(--el-border-color-lighter);width:100%;height:100%;background-color:var(--el-mask-content-bg-color);overflow:hidden}.x-mask__content{height:1px;overflow:auto;padding:10px}.x-mask-brand{height:40px;overflow:hidden}.x-mask-brand__logo{height:26px;width:60px;text-align:center;cursor:pointer}.x-mask-brand__logo:hover{opacity:.7}.x-mask-brand__logo>img{height:100%}.x-mask-brand__title{font-size:16px;font-weight:700;color:var(--el-mask-brand-color);font-family:Microsoft YaHei,微软雅黑,Arial,sans-serif}.x-mask-brand__title>span{position:relative;transform:translate(-10px)}.x-mask-brand.is-collapsed .x-mask-brand__title{display:none}.x-mask-topbar{height:40px;background-color:var(--el-mask-topbar-bg-color);border-bottom:1px solid var(--el-mask-sidebar-border-color)}.x-mask-menu{--el-menu-bg-color: transparent;--el-menu-item-height: 36px;--el-menu-sub-item-height: 34px;--el-font-size-base: 14px;--el-menu-item-font-size: 14px;--el-menu-icon-width: 20px;--el-menu-base-level-padding: 10px;--el-menu-level-padding: 20px;width:100%;height:1px;overflow-x:hidden!important}.x-mask-menu::-webkit-scrollbar{width:2px!important}.x-mask-menu::-webkit-scrollbar-thumb{background:transparent!important}.x-mask-menu:hover::-webkit-scrollbar-thumb{background:rgba(0,0,0,.1)!important}.x-mask-menu .el-menu .el-menu-item [class^=el-icon],.x-mask-menu .el-menu .el-sub-menu .el-icon{font-size:16px}.x-mask-menu .el-menu .el-sub-menu .el-sub-menu__icon-arrow{font-size:12px;color:var(--el-text-color-secondary)}.x-mask-menu .el-menu .el-menu-item.is-active{background-color:var(--el-menu-hover-bg-color)}.x-mask-menu .el-menu .el-sub-menu.is-active>.el-sub-menu__title{color:var(--el-color-primary)}.x-mask-menu .el-menu--collapse{--el-menu-item-height: 50px;width:100%}.x-mask-menu .el-menu--collapse>.el-menu-item{flex-wrap:wrap;justify-content:center;position:relative;margin:5px;border-radius:var(--el-border-radius-base);align-items:center;text-align:center}.x-mask-menu .el-menu--collapse>.el-menu-item .x-menu__title{height:auto;width:auto;visibility:visible;font-size:12px;line-height:1;zoom:.9;position:absolute;left:0;bottom:10px;width:100%;text-align:center;color:var(--el-text-color-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.x-mask-menu .el-menu--collapse>.el-menu-item .el-menu-tooltip__trigger{width:100%;height:100%;display:block}.x-mask-menu .el-menu--collapse>.el-menu-item.is-active{background-color:var(--el-menu-hover-bg-color)}.x-mask-menu .el-menu--collapse>.el-menu-item.is-active .x-menu__title{color:var(--el-color-primary)}.x-mask-menu .el-menu--collapse>.el-sub-menu{margin:5px;border-radius:var(--el-border-radius-base)}.x-mask-menu .el-menu--collapse>.el-sub-menu>.el-sub-menu__title{width:100%;display:flex;border-radius:var(--el-border-radius-base);line-height:1;padding-left:0;padding-right:0}.x-mask-menu .el-menu--collapse>.el-sub-menu>.el-sub-menu__title>.x-menu__wrapper{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;height:100%;width:100%}.x-mask-menu .el-menu--collapse>.el-sub-menu>.el-sub-menu__title>.x-menu__wrapper .x-menu__title{font-size:12px;zoom:.9;left:0;bottom:10px;width:100%;text-align:center;display:block;position:relative;top:-5px;color:var(--el-text-color-secondary);overflow:hidden}.x-mask-menu .el-menu--collapse>.el-sub-menu.is-active{background-color:var(--el-menu-hover-bg-color)}.x-mask-menu .el-menu--collapse>.el-sub-menu.is-active .x-menu__wrapper{color:var(--el-color-primary)}.x-mask-menu .el-menu--collapse>.el-sub-menu.is-active .x-menu__wrapper .x-menu__title{color:var(--el-color-primary)}.x-mask-menu .el-menu--collapse>.el-sub-menu.is-opened{background-color:var(--el-menu-hover-bg-color)}.x-mask-menu .el-menu--collapse .el-menu-item [class^=el-icon],.x-mask-menu .el-menu--collapse .el-sub-menu .el-icon{font-size:20px;margin-right:0}.x-mask-menu__favorites .el-sub-menu__title .x-icon{color:var(--el-color-warning)}.x-mask-menu__search .el-sub-menu__title .x-icon{color:var(--el-color-success)}.x-mask-menu-popper{--el-menu-item-height: 36px;--el-menu-sub-item-height: 34px;--el-font-size-base: 12px;--el-menu-item-font-size: 12px;--el-menu-icon-width: 20px;--el-menu-base-level-padding: 14px;max-height:calc(100% - 10px);overflow:auto}.x-mask-menu-popper .el-menu-item [class^=el-icon],.x-mask-menu-popper .el-sub-menu .el-icon{font-size:14px;margin-right:0}.x-mask-menu-popper .el-sub-menu .el-sub-menu__icon-arrow{font-size:12px;color:var(--el-text-color-secondary)}.x-mask-menu-popper .el-menu-item.is-active{background-color:var(--el-menu-hover-bg-color)}.x-mask-menu-popper .el-sub-menu.is-active>.el-sub-menu__title{color:var(--el-color-primary)}.x-mask-menu-popper::-webkit-scrollbar{width:2px!important}.x-mask-menu-popper::-webkit-scrollbar-thumb{background:rgba(0,0,0,.1)!important}.x-mask-sidebar{width:200px;background-color:var(--el-mask-sidebar-bg-color)}.x-mask-sidebar:not(.is-resizing){transition:width .2s}.x-mask-sidebar__wrapper{position:relative;border-right:1px solid var(--el-mask-sidebar-border-color)}.x-mask-sidebar__wrapper>.el-divider{margin:0}.x-mask-sidebar__expander{padding:5px 0;width:100%;background-color:var(--el-mask-sidebar-border-color);text-align:center;cursor:pointer}.x-mask-sidebar__expander:hover{opacity:.7}.x-mask-sidebar__helper{position:absolute;width:8px;font-size:0;right:0;top:0;bottom:0;border-right:2px solid transparent}.x-mask-sidebar.is-resizing .x-mask-sidebar__helper{border-right:2px solid var(--el-color-primary)}.x-mask-sidebar.is-collapsed{width:60px}.x-mask-sidebar.is-collapsed .x-mask-avatar__wrapper{overflow:hidden;height:0;width:0;visibility:hidden}.x-mask-topbar{height:40px}.x-mask-tabs{width:1px}.x-mask-tabs .el-tabs{--el-tabs-header-height: 30px;--el-font-size-base: 12px;position:relative;left:-1px}.x-mask-tabs .el-tabs__header{margin:0;border-bottom:none!important}.x-mask-tabs .el-tabs__header .el-tabs__item.is-active{background-color:var(--el-bg-color)}.x-mask-tabs .el-tabs__header .x-icon{pointer-events:none}.x-mask-tabs .el-tabs__content{display:none}.x-mask-tabs__trigger{height:100%;display:flex;align-items:center}.x-mask-tabs__trigger>.x-icon+span{margin-left:5px}.x-mask-toolbar{padding-right:10px}.x-mask-toolbar>.x-action{margin:0 5px}.x-mask-toolbar__menu-item{position:relative;display:inline-block;padding-right:20px;width:100%}.x-mask-toolbar__menu-item .x-icon{position:absolute;right:-10px;top:50%;transform:translateY(-50%)}.x-mask-switch-bar{width:100%;height:40px;padding:10px 5px;border-top:1px solid var(--el-mask-sidebar-border-color);position:relative;top:-1px;box-sizing:border-box}.x-mask-switch-bar__left{width:1px;padding-right:5px}.x-mask-switch-bar__right.is-collasped{width:100%;padding-right:5px}.x-mask-switch-bar__switch{height:28px!important;line-height:1!important;width:60px!important;position:relative;display:block!important}.x-mask-switch-bar__switch .el-switch__core{--el-switch-off-color: var(--el-mask-content-bg-color);--el-switch-on-color: var(--el-mask-content-bg-color);border:1px solid var(--el-mask-sidebar-border-color)!important;height:28px;width:60px;border-radius:14px}.x-mask-switch-bar__switch .el-switch__core .el-switch__action{width:28px;height:24px;border-radius:14px;background-color:var(--el-color-primary-light-8)}.x-mask-switch-bar__switch .el-switch__label--left{position:absolute;top:6px;left:9px;z-index:1;margin-right:0;height:14px;color:var(--el-text-color-regular)}.x-mask-switch-bar__switch .el-switch__label--right{position:absolute;top:6px;right:9px;z-index:1;margin-right:0;height:14px;color:var(--el-text-color-regular)}.x-mask-switch-bar__switch .el-switch__label.is-active{color:var(--el-color-primary)}.x-mask-switch-bar__switch.is-checked .el-switch__core .el-switch__action{left:calc(100% - 29px)!important}.x-mask-switch-bar__input .el-input__wrapper{padding:0!important;border-radius:12px}.x-mask-switch-bar__input .el-input__prefix-inner>:last-child{margin-right:0;width:20px}.x-mask-switch-bar__input .el-input__suffix{cursor:pointer;transition:color .1s}.x-mask-switch-bar__input .el-input__suffix:hover{color:var(--el-color-warning)}.x-mask-switch-bar__input .el-input__suffix .x-icon{width:20px;margin-left:0!important}.x-mask-switch-bar__input .el-input__inner{height:28px!important}.x-mask-avatar{margin-left:5px}.x-mask-theme-switch.el-switch{--el-switch-on-color: var(--el-fill-color-dark);--el-switch-off-color: var(--el-fill-color-dark)}.x-mask-theme-switch .el-switch__core .el-switch__action{color:var(--el-text-color-regular)!important;background-color:var(--el-bg-color)!important}.x-startup{height:100%;background-color:#ecf5ff;display:flex;justify-content:center;align-items:center;flex-direction:column;position:relative}.x-startup .brand{display:flex;justify-content:center;align-items:center}.x-startup .brand img{width:100px;height:100px;margin-right:20px}.x-startup h1{font-size:100px;font-weight:700;color:#0157fe;text-shadow:0 0 6px rgba(0,0,0,.3);margin:0;text-align:center;line-height:1}.x-startup h3{font-size:28px;color:#666;text-align:center}.x-startup .ba{position:absolute;height:30px;line-height:30px;text-align:center;bottom:0;width:100%;left:0}.x-startup .ba a{color:#b1b3b8}.x-startup .btn{text-align:center;padding-top:20px}.x-startup .btn button{width:200px}
|
|
1
|
+
@charset "UTF-8";body{padding:0;margin:0;font-family:var(--el-font-family);background-color:var(--el-bg-color)}body.user-select-none{user-select:none;overflow:hidden!important}body.user-select-none iframe{pointer-events:none}body::-webkit-scrollbar,div::-webkit-scrollbar{z-index:11;width:6px}body::-webkit-scrollbar:horizontal,div::-webkit-scrollbar:horizontal{height:6px}body::-webkit-scrollbar-thumb,div::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:rgba(0,0,0,.1)}body::-webkit-scrollbar-corner,div::-webkit-scrollbar-corner{background:transparent}body::-webkit-scrollbar-track,div::-webkit-scrollbar-track{background:transparent}body::-webkit-scrollbar-track-piece,div::-webkit-scrollbar-track-piece{background:transparent;width:6px}body.is-dragging,body.is-resizing{user-select:none}body.is-dragging iframe,body.is-resizing iframe{user-select:none;pointer-events:none}.x-icon{line-height:1;display:inline-block;vertical-align:middle;font-size:inherit;width:1em;height:1em;overflow:hidden}.x-icon>svg{width:1em;height:1em}.x-icon.is-pointer{cursor:pointer}.x-icon.is-pointer:hover{opacity:.7}.x-icon img{width:100%;height:100%;transform:translateY(1px)}.x-icon+.x-icon{margin-left:10px}.x-menu{border-right:none!important}.x-menu .x-icon{font-size:inherit;width:14px}.x-menu__wrapper{display:inline-flex;justify-content:flex-start;align-items:center}.x-menu__badge{font-size:12px;zoom:.9;margin-left:14px}.x-menu.el-menu--collapse .x-menu__wrapper{position:relative}.x-menu.el-menu--collapse .x-menu__badge{position:absolute;right:20px;top:5px}.x-simple-mask{height:100%;background-color:#fff}.x-simple-mask__header{border-bottom:1px solid #dcdfe6;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.x-simple-mask__aside{border-right:1px solid #dcdfe6}.x-simple-mask__footer{border-top:1px solid #dcdfe6;display:flex;flex-direction:row;justify-content:center;align-items:center}.x-simple-mask__logo{font-size:20px;color:#337ecc;font-weight:700;cursor:pointer}.x-simple-mask__logo:hover{opacity:.7}.x-action{display:inline-flex;vertical-align:middle}.x-action+.x-action{margin-left:10px}.x-action .el-dropdown,.x-action .el-tooltip__trigger,.x-action .el-badge{outline:none}.x-action .el-badge__content{zoom:.9}.x-action--icon+.x-action--icon{margin-left:5px}.x-action__inner{cursor:pointer;color:var(--el-text-color-regular);display:inline-flex;justify-content:center;align-items:center;line-height:1;white-space:nowrap;font-size:14px}.x-action__inner>.x-icon+span{margin-left:.2em}.x-action__inner>span{display:inline-flex;align-items:center}.x-action__inner:hover{opacity:.7}.x-action__inner.is-disabled{cursor:not-allowed;opacity:.6}.x-action__inner.is-primary{color:var(--el-color-primary)}.x-action__inner.is-warning{color:var(--el-color-warning)}.x-action__inner.is-success{color:var(--el-color-success)}.x-action__inner.is-danger{color:var(--el-color-danger)}.x-action__inner.is-info{color:var(--el-text-color-regular)}.x-action__inner.is-icon{padding:5px;border-radius:3px}.x-action__inner.is-icon.is-background-hover{color:var(--el-text-color-regular)}.x-action__inner.is-icon.is-background-hover:hover.is-primary{background-color:var(--el-color-primary-light-8);color:var(--el-color-primary)}.x-action__inner.is-icon.is-background-hover:hover.is-success{background-color:var(--el-color-success-light-8);color:var(--el-color-success)}.x-action__inner.is-icon.is-background-hover:hover.is-warning{background-color:var(--el-color-warning-light-8);color:var(--el-color-warning)}.x-action__inner.is-icon.is-background-hover:hover.is-danger{background-color:var(--el-color-danger-light-8);color:var(--el-color-danger)}.x-action__inner.is-icon.is-background-hover:hover.is-info{background-color:var(--el-color-info-light-8);color:var(--el-text-color-regular)}.x-action__inner.is-icon.is-background-always.is-primary{background-color:var(--el-color-primary-light-9)}.x-action__inner.is-icon.is-background-always.is-success{background-color:var(--el-color-success-light-9)}.x-action__inner.is-icon.is-background-always.is-warning{background-color:var(--el-color-warning-light-9)}.x-action__inner.is-icon.is-background-always.is-danger{background-color:var(--el-color-danger-light-9)}.x-action__inner.is-icon.is-background-always.is-info{background-color:var(--el-color-info-light-9)}.x-action__inner.is-icon.is-circle{border-radius:50%}.x-action__inner.is-icon.is-large{font-size:16px;padding:6px}.x-action__inner.is-icon.is-small{font-size:12px;padding:4px}.x-action__inner.is-text.is-large{font-size:16px}.x-action__inner.is-text.is-small{font-size:12px}.x-action-bar{white-space:nowrap}.x-action-bar__divider{margin:0 1em!important}.x-container{flex-shrink:0;box-sizing:border-box}.x-container.is-fit{width:100%;height:100%}.x-container.is-flex{display:flex}.x-container.is-inline-flex{display:inline-flex}.x-container.is-direction-column{flex-direction:column}.x-container.is-direction-row-reverse{flex-direction:row-reverse}.x-container.is-direction-column-reverse{flex-direction:column-reverse}.x-container.is-justify-flex-end{justify-content:flex-end}.x-container.is-justify-center{justify-content:center}.x-container.is-justify-space-between{justify-content:space-between}.x-container.is-justify-space-around{justify-content:space-around}.x-container.is-align-center{align-items:center}.x-container.is-flex-end{align-items:flex-end}.x-container.is-baseline{align-items:baseline}.x-container.is-stretch{align-items:stretch}.x-container.is-align-content-flex-start{align-content:flex-start}.x-container.is-align-content-flex-end{align-content:flex-end}.x-container.is-align-content-enter{align-content:center}.x-container.is-align-content-space-between{align-content:space-between}.x-container.is-align-content-space-around{align-content:space-around}.x-container.is-align-content-stretch{align-content:stretch}.x-container.is-wrap-wrap{flex-wrap:wrap}.x-container.is-wrap-wrap-reverse{flex-wrap:wrap-reverse}.x-container.is-grow{flex-grow:1}.x-container.is-shrink{flex-shrink:1}.x-container.is-align-self-flex-start{align-self:flex-start}.x-container.is-align-self-flex-end{align-self:flex-end}.x-container.is-align-self-center{align-self:center}.x-container.is-align-self-baseline{align-self:baseline}.x-container.is-align-self-stretch{align-self:stretch}.x-container.is-overflow-hidden{overflow:hidden}.x-container.is-overflow-visible{overflow:visible}.x-container.is-overflow-auto{overflow:auto}.x-container.is-padding{padding:10px}.x-header{height:32px}.x-header.is-size-large{height:40px}.x-header.is-size-small{height:28px}.x-header.is-border{border-bottom:1px solid var(--el-border-color-light)}.x-header__wrapper{line-height:1.5;font-size:14px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:1px}.x-header__wrapper.is-size-large{font-size:16px}.x-header__wrapper.is-size-large .x-header__subtitle,.x-header__wrapper.is-size-large .x-header__more{font-size:14px}.x-header__wrapper.is-size-small,.x-header__wrapper.is-size-small .x-header__subtitle,.x-header__wrapper.is-size-small .x-header__more{font-size:12px}.x-header__wrapper.is-pointer .x-header__content{cursor:pointer}.x-header__wrapper.is-pointer .x-header__content:hover{opacity:.7}.x-header__icon{margin-right:5px;flex-shrink:0}.x-header__content{color:var(--el-text-color-primary);font-weight:700}.x-header__more{color:var(--el-text-color-secondary)!important;margin-left:3px}.x-header__subtitle{margin-left:.5em;font-size:12px;color:var(--el-text-color-secondary)}.x-header__actions{white-space:nowrap}.x-panel--default.is-radius{border-radius:var(--el-border-radius-base)}.x-panel--default .x-panel__header{margin-bottom:4px}.x-panel--default.is-border .x-panel__body{border:1px solid var(--el-border-color-light)}.x-panel--default.is-radius .x-panel__body{border-radius:var(--el-border-radius-base)}.x-panel--default.is-shadow-always .x-panel__body,.x-panel--default.is-shadow-hover .x-panel__body:hover{box-shadow:var(--el-box-shadow-lighter)}.x-panel--card.is-border{border:1px solid var(--el-border-color-light)}.x-panel--card.is-radius{border-radius:var(--el-border-radius-base)}.x-panel--card .x-panel__header{padding:0 5px 0 10px;background-color:var(--el-fill-color-lighter)}.x-panel--card.is-shadow-always,.x-panel--card.is-shadow-hover:hover{box-shadow:var(--el-box-shadow-lighter)}.x-panel__body.is-grow.is-overflow-auto{height:1px}.x-dialog{background-color:var(--el-bg-color);position:absolute;pointer-events:initial}.x-dialog.is-draggable>.x-panel__header{cursor:move}.x-dialog.is-maximized{width:100%!important;height:100%!important;left:0!important;top:0!important}.x-dialog.is-minimized{display:none}.x-dialog__wrapper{position:absolute;inset:0;pointer-events:none;overflow:hidden}.x-dialog__wrapper.is-minimized{display:none}.x-dialog__wrapper.is-dragging{user-select:none}.x-dialog__wrapper.is-dragging iframe{user-select:none;pointer-events:none}.x-dialog__modal{position:absolute;inset:0;background-color:var(--el-mask-color-extra-light);pointer-events:initial}.x-dialog__frame{width:100%;height:100%;display:block;border:none}.x-dialog.is-primary{border:2px solid var(--el-color-primary);border-top:none}.x-dialog.is-primary>.x-panel__header{background-color:var(--el-color-primary);color:var(--el-color-white)}.x-dialog.is-primary>.x-panel__header .x-header__content{color:var(--el-color-white)}.x-dialog.is-primary>.x-panel__header .x-action__inner.is-icon.is-background-hover{color:var(--el-color-white)}.x-dialog.is-primary>.x-panel__header .x-action__inner.is-icon.is-background-hover:hover.is-primary{background-color:#ffffff4d;opacity:1}.x-dialog.is-primary>.x-panel__header .x-action__inner.is-icon.is-background-hover:hover.is-danger{background-color:var(--el-color-danger);opacity:1}.x-dialog.is-primary>.x-panel__header .x-action__inner.is-icon.is-background-hover:hover.is-warning{background-color:var(--el-color-warning);opacity:1}.x-mask{--el-mask-brand-color: #0157fe;--el-mask-content-bg-color: var(--el-bg-color);--el-mask-topbar-bg-color: var(--el-fill-color-lighter);--el-mask-sidebar-bg-color: var(--el-fill-color-lighter);--el-mask-sidebar-border-color: var(--el-border-color-lighter);width:100%;height:100%;background-color:var(--el-mask-content-bg-color);overflow:hidden}.x-mask__content{height:1px;overflow:auto;padding:10px}.x-mask-brand{height:40px;overflow:hidden}.x-mask-brand__logo{height:26px;width:60px;text-align:center;cursor:pointer}.x-mask-brand__logo:hover{opacity:.7}.x-mask-brand__logo>img{height:100%}.x-mask-brand__title{font-size:16px;font-weight:700;color:var(--el-mask-brand-color);font-family:Microsoft YaHei,微软雅黑,Arial,sans-serif}.x-mask-brand__title>span{position:relative;transform:translate(-10px)}.x-mask-brand.is-collapsed .x-mask-brand__title{display:none}.x-mask-topbar{height:40px;background-color:var(--el-mask-topbar-bg-color);border-bottom:1px solid var(--el-mask-sidebar-border-color)}.x-mask-menu{--el-menu-bg-color: transparent;--el-menu-item-height: 36px;--el-menu-sub-item-height: 34px;--el-font-size-base: 14px;--el-menu-item-font-size: 14px;--el-menu-icon-width: 20px;--el-menu-base-level-padding: 10px;--el-menu-level-padding: 20px;width:100%;height:1px;overflow-x:hidden!important}.x-mask-menu::-webkit-scrollbar{width:2px!important}.x-mask-menu::-webkit-scrollbar-thumb{background:transparent!important}.x-mask-menu:hover::-webkit-scrollbar-thumb{background:rgba(0,0,0,.1)!important}.x-mask-menu .el-menu .el-menu-item [class^=el-icon],.x-mask-menu .el-menu .el-sub-menu .el-icon{font-size:16px}.x-mask-menu .el-menu .el-sub-menu .el-sub-menu__icon-arrow{font-size:12px;color:var(--el-text-color-secondary)}.x-mask-menu .el-menu .el-menu-item.is-active{background-color:var(--el-menu-hover-bg-color)}.x-mask-menu .el-menu .el-sub-menu.is-active>.el-sub-menu__title{color:var(--el-color-primary)}.x-mask-menu .el-menu--collapse{--el-menu-item-height: 50px;width:100%}.x-mask-menu .el-menu--collapse>.el-menu-item{flex-wrap:wrap;justify-content:center;position:relative;margin:5px;border-radius:var(--el-border-radius-base);align-items:center;text-align:center}.x-mask-menu .el-menu--collapse>.el-menu-item .x-menu__title{height:auto;width:auto;visibility:visible;font-size:12px;line-height:1;zoom:.9;position:absolute;left:0;bottom:10px;width:100%;text-align:center;color:var(--el-text-color-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.x-mask-menu .el-menu--collapse>.el-menu-item .el-menu-tooltip__trigger{width:100%;height:100%;display:block}.x-mask-menu .el-menu--collapse>.el-menu-item.is-active{background-color:var(--el-menu-hover-bg-color)}.x-mask-menu .el-menu--collapse>.el-menu-item.is-active .x-menu__title{color:var(--el-color-primary)}.x-mask-menu .el-menu--collapse>.el-sub-menu{margin:5px;border-radius:var(--el-border-radius-base)}.x-mask-menu .el-menu--collapse>.el-sub-menu>.el-sub-menu__title{width:100%;display:flex;border-radius:var(--el-border-radius-base);line-height:1;padding-left:0;padding-right:0}.x-mask-menu .el-menu--collapse>.el-sub-menu>.el-sub-menu__title>.x-menu__wrapper{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;height:100%;width:100%}.x-mask-menu .el-menu--collapse>.el-sub-menu>.el-sub-menu__title>.x-menu__wrapper .x-menu__title{font-size:12px;zoom:.9;left:0;bottom:10px;width:100%;text-align:center;display:block;position:relative;top:-5px;color:var(--el-text-color-secondary);overflow:hidden}.x-mask-menu .el-menu--collapse>.el-sub-menu.is-active{background-color:var(--el-menu-hover-bg-color)}.x-mask-menu .el-menu--collapse>.el-sub-menu.is-active .x-menu__wrapper{color:var(--el-color-primary)}.x-mask-menu .el-menu--collapse>.el-sub-menu.is-active .x-menu__wrapper .x-menu__title{color:var(--el-color-primary)}.x-mask-menu .el-menu--collapse>.el-sub-menu.is-opened{background-color:var(--el-menu-hover-bg-color)}.x-mask-menu .el-menu--collapse .el-menu-item [class^=el-icon],.x-mask-menu .el-menu--collapse .el-sub-menu .el-icon{font-size:20px;margin-right:0}.x-mask-menu__favorites .el-sub-menu__title .x-icon{color:var(--el-color-warning)}.x-mask-menu__search .el-sub-menu__title .x-icon{color:var(--el-color-success)}.x-mask-menu-popper{--el-menu-item-height: 36px;--el-menu-sub-item-height: 34px;--el-font-size-base: 12px;--el-menu-item-font-size: 12px;--el-menu-icon-width: 20px;--el-menu-base-level-padding: 14px;max-height:calc(100% - 10px);overflow:auto}.x-mask-menu-popper .el-menu-item [class^=el-icon],.x-mask-menu-popper .el-sub-menu .el-icon{font-size:14px;margin-right:0}.x-mask-menu-popper .el-sub-menu .el-sub-menu__icon-arrow{font-size:12px;color:var(--el-text-color-secondary)}.x-mask-menu-popper .el-menu-item.is-active{background-color:var(--el-menu-hover-bg-color)}.x-mask-menu-popper .el-sub-menu.is-active>.el-sub-menu__title{color:var(--el-color-primary)}.x-mask-menu-popper::-webkit-scrollbar{width:2px!important}.x-mask-menu-popper::-webkit-scrollbar-thumb{background:rgba(0,0,0,.1)!important}.x-mask-sidebar{width:200px;background-color:var(--el-mask-sidebar-bg-color)}.x-mask-sidebar:not(.is-resizing){transition:width .2s}.x-mask-sidebar__wrapper{position:relative;border-right:1px solid var(--el-mask-sidebar-border-color)}.x-mask-sidebar__wrapper>.el-divider{margin:0}.x-mask-sidebar__expander{padding:5px 0;width:100%;background-color:var(--el-mask-sidebar-border-color);text-align:center;cursor:pointer}.x-mask-sidebar__expander:hover{opacity:.7}.x-mask-sidebar__helper{position:absolute;width:8px;font-size:0;right:0;top:0;bottom:0;border-right:2px solid transparent}.x-mask-sidebar.is-resizing .x-mask-sidebar__helper{border-right:2px solid var(--el-color-primary)}.x-mask-sidebar.is-collapsed{width:60px}.x-mask-sidebar.is-collapsed .x-mask-avatar__wrapper{overflow:hidden;height:0;width:0;visibility:hidden}.x-mask-topbar{height:40px}.x-mask-tabs{width:1px}.x-mask-tabs .el-tabs{--el-tabs-header-height: 30px;--el-font-size-base: 12px;position:relative;left:-1px}.x-mask-tabs .el-tabs__header{margin:0;border-bottom:none!important}.x-mask-tabs .el-tabs__header .el-tabs__item.is-active{background-color:var(--el-bg-color)}.x-mask-tabs .el-tabs__header .x-icon{pointer-events:none}.x-mask-tabs .el-tabs__content{display:none}.x-mask-tabs__trigger{height:100%;display:flex;align-items:center}.x-mask-tabs__trigger>.x-icon+span{margin-left:5px}.x-mask-toolbar{padding-right:10px}.x-mask-toolbar>.x-action{margin:0 5px}.x-mask-toolbar__menu-item{position:relative;display:inline-block;padding-right:20px;width:100%}.x-mask-toolbar__menu-item .x-icon{position:absolute;right:-10px;top:50%;transform:translateY(-50%)}.x-mask-switch-bar{width:100%;height:40px;padding:10px 5px;border-top:1px solid var(--el-mask-sidebar-border-color);position:relative;top:-1px;box-sizing:border-box}.x-mask-switch-bar__left{width:1px;padding-right:5px}.x-mask-switch-bar__right.is-collasped{width:100%;padding-right:5px}.x-mask-switch-bar__switch{height:28px!important;line-height:1!important;width:60px!important;position:relative;display:block!important}.x-mask-switch-bar__switch .el-switch__core{--el-switch-off-color: var(--el-mask-content-bg-color);--el-switch-on-color: var(--el-mask-content-bg-color);border:1px solid var(--el-mask-sidebar-border-color)!important;height:28px;width:60px;border-radius:14px}.x-mask-switch-bar__switch .el-switch__core .el-switch__action{width:28px;height:24px;border-radius:14px;background-color:var(--el-color-primary-light-8)}.x-mask-switch-bar__switch .el-switch__label--left{position:absolute;top:6px;left:9px;z-index:1;margin-right:0;height:14px;color:var(--el-text-color-regular)}.x-mask-switch-bar__switch .el-switch__label--right{position:absolute;top:6px;right:9px;z-index:1;margin-right:0;height:14px;color:var(--el-text-color-regular)}.x-mask-switch-bar__switch .el-switch__label.is-active{color:var(--el-color-primary)}.x-mask-switch-bar__switch.is-checked .el-switch__core .el-switch__action{left:calc(100% - 29px)!important}.x-mask-switch-bar__input .el-input__wrapper{padding:0!important;border-radius:12px}.x-mask-switch-bar__input .el-input__prefix-inner>:last-child{margin-right:0;width:20px}.x-mask-switch-bar__input .el-input__suffix{cursor:pointer;transition:color .1s}.x-mask-switch-bar__input .el-input__suffix:hover{color:var(--el-color-warning)}.x-mask-switch-bar__input .el-input__suffix .x-icon{width:20px;margin-left:0!important}.x-mask-switch-bar__input .el-input__inner{height:28px!important}.x-mask-avatar{margin-left:5px}.x-mask-theme-switch.el-switch{--el-switch-on-color: var(--el-fill-color-dark);--el-switch-off-color: var(--el-fill-color-dark)}.x-mask-theme-switch .el-switch__core .el-switch__action{color:var(--el-text-color-regular)!important;background-color:var(--el-bg-color)!important}.x-field__info{position:absolute!important;right:0;cursor:pointer}.x-field__trigger{--color: getCssVar("color-error") !important;color:var(--el-color-error)!important}.x-field.is-tooltip-outer.el-form-item--small .el-form-item__content{padding-right:16px}.x-field.is-tooltip-outer.el-form-item--default .el-form-item__content{padding-right:20px}.x-field.is-tooltip-outer.el-form-item--large .el-form-item__content{padding-right:24px}.x-field.is-tooltip-inner.el-form-item--small .x-field__info{right:5px}.x-field.is-tooltip-inner.el-form-item--default .x-field__info{right:8px}.x-field.is-tooltip-inner.el-form-item--large .x-field__info{right:10px}.x-startup{height:100%;background-color:#ecf5ff;display:flex;justify-content:center;align-items:center;flex-direction:column;position:relative}.x-startup .brand{display:flex;justify-content:center;align-items:center}.x-startup .brand img{width:100px;height:100px;margin-right:20px}.x-startup h1{font-size:100px;font-weight:700;color:#0157fe;text-shadow:0 0 6px rgba(0,0,0,.3);margin:0;text-align:center;line-height:1}.x-startup h3{font-size:28px;color:#666;text-align:center}.x-startup .ba{position:absolute;height:30px;line-height:30px;text-align:center;bottom:0;width:100%;left:0}.x-startup .ba a{color:#b1b3b8}.x-startup .btn{text-align:center;padding-top:20px}.x-startup .btn button{width:200px}
|