import{_ as T,d as V,m as P,aL as j,b1 as I,w as u,ag as K,b9 as U,x as q,r as f,o as i,c as v,b as _,l as h,C as k,F as A,D as F,u as G,G as w,I as H,bw as L}from"./index.3f1ca816.js";import{h as N}from"./index.c8ad0bef.js";import{Q as n}from"./query.b713c825.js";import{i as O}from"./context.bdf6d636.js";import Q from"./anchor.f43d5e43.js";import"./index.3e23d14a.js";import"./purchase.d7431a29.js";import"./types.d4889712.js";import"./porder.d16f24ea.js";import"./tootip.1805b3e1.js";import"./status.d6b2a53d.js";import"./basic-descriptions.78acbb1a.js";import"./index.b8874ffe.js";import"./reconciliation.a20dac0d.js";import"./index.61c4ab3f.js";import"./index.3cfe9797.js";import"./sale.51f7a30a.js";import"./sale.cceac1a1.js";import"./index.1b6aea11.js";import"./payment.78805de6.js";import"./purchPay.fb46e27b.js";import"./index.e0c74124.js";import"./ticket-return.646d8d3b.js";import"./ticketReturn.214155c0.js";import"./index.ea8cc409.js";import"./tradelog.bfc52e63.js";import"./tragelog.2a260772.js";import"./index.cfdf86b7.js";import"./trade.383c9220.js";import"./index.ce5b6768.js";import"./refund.ec32668b.js";import"./index.8fb64d83.js";import"./inv-return.341dbe77.js";import"./inv-return.1ee2fdac.js";import"./index.db675051.js";import"./inv-open.89342d60.js";import"./inv-open.89d8f8fa.js";const S={class:"main flex h-full w-full"},Y={"bg-white":"","min-w-230px":""},z={"bg-white":"","flex-1":""},J=V({__name:"detail",setup(W){const{query:y}=P(),D=j(),p=I([]),l=u([]),r=u(new Map),d=u({}),g=K(()=>y.id),C=(e,t)=>{var a;const o=n[e].responseKey;return t[o]&&((a=n[e])==null?void 0:a.detail)&&t[o].length!==0};function x(e){return Object.keys(n).filter(o=>C(o,e)).map(o=>{const{api:a,component:s,requesetProp:m,responseKey:c,detail:M}=n[o],R=e[c];return{component:s,prop:m,title:M,api:a,value:R,key:o}})}async function b(){const{code:e,message:t,data:o}=await N({id:g.value});D({code:e,message:t,handler:()=>p.value=x(o)})}async function E(){await b(),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 U(O,{goodData:d,setGoodData:e=>d.value=e}),q(()=>E()),(e,t)=>{const o=f("ElCollapseItem"),a=f("ElCollapse");return i(),v("div",S,[_("div",Y,[h(Q,{map:r.value},null,8,["map"])]),_("div",z,[h(a,{modelValue:l.value,"onUpdate:modelValue":t[1]||(t[1]=s=>l.value=s)},{default:k(()=>[(i(!0),v(A,null,F(G(p),s=>(i(),w(o,{title:s.title,name:s.key,key:s.key},{default:k(()=>[(i(),w(H(s.component),L(s,{onMapOffsetTop:t[0]||(t[0]=({top:m,title:c})=>B(m,c))}),null,16))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])])}}});var Ie=T(J,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/search/standBook/detail.vue"]]);export{Ie as default};