import{_ as f,d as v,m as k,ag as C,E as b,ck as w,w as y,r as i,aC as x,o,G as s,C as u,c as h,F as D,D as g,u as V,cl as B,I as q,a as m,H as E,b as U}from"./index.56c69f5a.js";function F(r){switch(r){default:return new Promise(function(l,t){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(t.bind(null,new Error("Unknown variable dynamic import: "+r)))})}}const H={class:"h-[300px] w-full"},I=v({__name:"index",setup(r){const{query:l}=k(),t=C(()=>{const{collections:c}=b();return(c.purchase||[]).map(n=>({component:w(()=>F(`../../${n.menu_url}.vue`)),...n}))}),a=y(l.tab||t.value[0].menu_route);return(c,n)=>{const _=i("el-tab-pane"),p=i("el-tabs"),d=x("loading");return o(),s(p,{modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=e=>a.value=e),class:"bg-[#f4f7fc]"},{default:u(()=>[(o(!0),h(D,null,g(V(t),e=>(o(),s(_,{label:e.menu_name,name:e.menu_route,key:e.menu_route},{default:u(()=>[e.menu_route===a.value?(o(),s(B,{key:0},{default:u(()=>[e.menu_route===a.value?(o(),s(q(e.component),{key:0})):m("v-if",!0)]),fallback:u(()=>[E(U("div",H,null,512),[[d,!0]])]),_:2},1024)):m("v-if",!0)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])}}});var N=f(I,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/purchase/purchaseCollection/index.vue"]]);export{N as default};
