"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("element-plus");function h(l,n){if(typeof Symbol<"u"){const t={...l};return Object.defineProperty(t,Symbol.iterator,{enumerable:!1,value(){let r=0;return{next:()=>({value:n[r++],done:r>n.length})}}}),t}else return Object.assign([...n],l)}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function p(l){const n=Object.create(null);return t=>n[t]||(n[t]=l(t))}const m=/-(\w)/g,w=p(l=>l.replace(m,(n,t)=>t?t.toUpperCase():""));function _(l={}){const{inheritAttrs:n=!0}=l,t=e.shallowRef(),r=e.defineComponent({setup(a,{slots:o}){return()=>{t.value=o.default}}}),c=e.defineComponent({inheritAttrs:n,setup(a,{attrs:o,slots:f}){return()=>{var d;if(!t.value&&process.env.NODE_ENV!=="production")throw new Error("[VueUse] Failed to find the definition of reusable template");const u=(d=t.value)==null?void 0:d.call(t,{...C(o),$slots:f});return n&&(u==null?void 0:u.length)===1?u[0]:u}}});return h({define:r,reuse:c},[r,c])}function C(l){const n={};for(const t in l)n[w(t)]=l[t];return n}const i=e.defineComponent({name:"If",__name:"If",props:{when:{}},setup(l){const n=t=>t;return(t,r)=>t.when?e.renderSlot(t.$slots,"default",{key:0,value:n(t.when)}):e.renderSlot(t.$slots,"fallback",{key:1})}}),k=e.defineComponent({name:"For",inheritAttrs:!1,__name:"For",props:{echo:{},rowKey:{}},setup(l){const n=l,t=e.computed(()=>n.echo);return(r,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.echo,(a,o)=>e.renderSlot(r.$slots,"default",{key:r.rowKey,item:a,index:o})),128)),e.createVNode(i,{when:!t.value||!t.value.length||t.value.length===0},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"fallback")]),_:3},8,["when"])],64))}}),x=e.defineComponent({name:"FsSideBarItem",__name:"Item",props:{items:{}},setup(l){const[n,t]=_();return(r,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(n),null,{default:e.withCtx(({list:a})=>[e.createVNode(e.unref(k),{echo:a,"row-key":"path"},{default:e.withCtx(({item:o})=>[e.createVNode(e.unref(i),{when:o.children&&o.children.length},{fallback:e.withCtx(()=>[e.createVNode(e.unref(s.ElMenuItem),{class:"fast-start-menu-item",index:o.path},{default:e.withCtx(()=>[e.createVNode(e.unref(i),{when:o.icon},{default:e.withCtx(()=>[e.createVNode(e.unref(s.ElIcon),null,{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.icon)))]),_:2},1024)]),_:2},1032,["when"]),e.createTextVNode(" "+e.toDisplayString(o.name),1)]),_:2},1032,["index"])]),default:e.withCtx(()=>[e.createVNode(e.unref(s.ElSubMenu),{class:"fast-start-menu-item-title",index:o.path},{title:e.withCtx(()=>[e.createVNode(e.unref(i),{when:o.icon},{default:e.withCtx(()=>[e.createVNode(e.unref(s.ElIcon),null,{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.icon)))]),_:2},1024)]),_:2},1032,["when"]),e.createTextVNode(" "+e.toDisplayString(o.name),1)]),default:e.withCtx(()=>[e.createVNode(e.unref(t),{list:o.children||[]},null,8,["list"])]),_:2},1032,["index"])]),_:2},1032,["when"])]),_:2},1032,["echo"])]),_:1}),e.createVNode(e.unref(t),{list:r.items},null,8,["list"])],64))}});exports.default=x;
//# sourceMappingURL=Item.js.map
