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 B,m as R,dC as g,I as w,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(F){const{query:i}=x(),m={invoiceRelation_collection:()=>_(()=>import("./index.246855.js"),["assets/index.246855.js","assets/index.js","assets/index.20e37f3e.css","assets/index.ff7eb665.js","assets/invoice-modal.5313fb.js","assets/index.bf16817a.js","assets/index.71c4bb27.css","assets/xlsx.ed122d16.js","assets/index.3bf35e.js","assets/index.91bccc98.css","assets/execl-upload.7c83427b.js","assets/execl-upload.13f2c477.css","assets/index.26d6ac45.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.f590779a.js","assets/invoice-modal.711d97.js","assets/index.bf16817a.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,B(R(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(g,{key:0},{default:s(()=>[e.menu_route===n.value?(t(),a(w(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 N=f(L,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/purchase/purchaseCollection/index.vue"]]);export{N as default};