import{_ as f,d as k,n as x,ah as C,u as D,dB as h,x as V,r as u,aD as y,o as t,G as a,D as s,c as E,F as b,E as w,m as B,dC as R,I as g,a as c,H as I,h as P,dD as _}from"./index.js";const A={class:"h-[300px] w-full"},L=k({__name:"index",setup(N){const{query:i}=x(),m={invoiceRelation_collection:()=>_(()=>import("./index.246855.js"),["assets/index.246855.js","assets/index.js","assets/index.20e37f3e.css","assets/index.ae4dabde.js","assets/invoice-modal.5313fb.js","assets/index.47e512cd.js","assets/index.71c4bb27.css","assets/xlsx.ed122d16.js","assets/index.3bf35e.js","assets/index.91bccc98.css","assets/execl-upload.ab941f73.js","assets/execl-upload.13f2c477.css","assets/index.80104a95.js","assets/index.9ea7c5.js","assets/index.37d0fc.js","assets/index.c3f0d3e0.css"]),unInvoiceRelation_collection:()=>_(()=>import("./index.122228.js"),["assets/index.122228.js","assets/index.js","assets/index.20e37f3e.css","assets/index.b1b475a3.js","assets/invoice-modal.711d97.js","assets/index.47e512cd.js","assets/index.71c4bb27.css"])},l=C(()=>{const{collections:r}=D();return(r.purchase||[]).map(o=>({...o,component:h(m[o.menu_route])}))}),n=V(i.tab||l.value[0].menu_route);return(r,o)=>{const p=u("el-tab-pane"),d=u("el-tabs"),v=y("loading");return t(),a(d,{modelValue:n.value,"onUpdate:modelValue":o[0]||(o[0]=e=>n.value=e),class:"bg-[#f4f7fc]"},{default:s(()=>[(t(!0),E(b,null,w(B(l),e=>(t(),a(p,{label:e.menu_name,name:e.menu_route,key:e.menu_route},{default:s(()=>[e.menu_route===n.value?(t(),a(R,{key:0},{default:s(()=>[e.menu_route===n.value?(t(),a(g(e.component),{key:0})):c("v-if",!0)]),fallback:s(()=>[I(P("div",A,null,512),[[v,!0]])]),_:2},1024)):c("v-if",!0)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])}}});var H=f(L,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/purchaseNew/purchaseCollection/index.vue"]]);export{H as default};
