import{_ as R,d as T,m as V,aO as j,aP as I,w as u,ag as K,ba as O,x as U,r as f,o as i,c as v,b as _,l as h,C as k,F as q,D as A,u as F,G as w,I as G,bw as H}from"./index.42bf163d.js";import{h as N}from"./index.21554586.js";import{Q as n}from"./query.a5f38a91.js";import{i as Q}from"./context.bdf6d636.js";import S from"./anchor.79b84e7c.js";import"./index.bdd5698b.js";import"./purchase.02f3601e.js";import"./types.21bca7f8.js";import"./porder.386fe03e.js";import"./tootip.bb80052f.js";import"./status.d6b2a53d.js";import"./basic-descriptions.bd1e983e.js";import"./index.e0b507e8.js";import"./reconciliation.94a7f78b.js";import"./index.3d26752b.js";import"./index.0b02b01c.js";import"./sale.d9e59cfd.js";import"./sale.2656258c.js";import"./index.206a7659.js";import"./payment.d48842ab.js";import"./purchPay.76956403.js";import"./index.662da746.js";import"./ticket-return.2b26efad.js";import"./ticketReturn.58915008.js";import"./index.aa5a12a2.js";import"./tradelog.e4e29178.js";import"./tragelog.f3ef66d3.js";import"./index.6a10cd14.js";import"./trade.930312f4.js";import"./index.b737e659.js";import"./refund.64c0f531.js";import"./index.a81fb1b8.js";import"./inv-return.25478fe9.js";import"./inv-return.7bd3210e.js";import"./index.cac8bb6a.js";import"./inv-open.ff1d00ad.js";import"./inv-open.73670b7a.js";const L={class:"main flex h-full w-full"},Y={"bg-white":"","min-w-230px":""},z={"bg-white":"","flex-1":""},J=T({__name:"detail",setup(W){const{query:y}=V(),D=j(),p=I([]),l=u([]),r=u(new Map),d=u({}),g=K(()=>y.id),C=(e,t)=>{var s;const o=n[e].responseKey;return t[o]&&((s=n[e])==null?void 0:s.detail)&&t[o].length!==0};function x(e){return Object.keys(n).filter(o=>C(o,e)).map(o=>{const{api:s,component:a,requesetProp:m,responseKey:c,detail:M}=n[o],P=e[c];return{component:a,prop:m,title:M,api:s,value:P,key:o}})}async function E(){const{code:e,message:t,data:o}=await N({id:g.value});D({code:e,message:t,handler:()=>p.value=x(o)})}async function b(){await E(),p.value.forEach((e,t)=>{l.value.push(e.key),r.value.set(e.title,{top:"",index:t})})}function B(e,t){const o=r.value.get(t);r.value.set(t,{...o,top:e})}return O(Q,{goodData:d,setGoodData:e=>d.value=e}),U(()=>b()),(e,t)=>{const o=f("ElCollapseItem"),s=f("ElCollapse");return i(),v("div",L,[_("div",Y,[h(S,{map:r.value},null,8,["map"])]),_("div",z,[h(s,{modelValue:l.value,"onUpdate:modelValue":t[1]||(t[1]=a=>l.value=a)},{default:k(()=>[(i(!0),v(q,null,A(F(p),a=>(i(),w(o,{title:a.title,name:a.key,key:a.key},{default:k(()=>[(i(),w(G(a.component),H(a,{onMapOffsetTop:t[0]||(t[0]=({top:m,title:c})=>B(m,c))}),null,16))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])])}}});var Ie=R(J,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/search/standBook/detail.vue"]]);export{Ie as default};