import{_ as R,d as T,m as V,az as j,b9 as I,w as u,a6 as K,bn as U,x as q,r as f,o as n,c as v,b as _,l as h,C as y,F as A,D as F,u as G,G as k,I as H,b2 as N}from"./index.bdb20a8d.js";import{h as O}from"./index.4b0d4420.js";import{Q as i}from"./query.2e93b58e.js";import{i as Q}from"./context.bdf6d636.js";import S from"./anchor.52f554ad.js";import"./index.1f61d9d7.js";import"./purchase.5b32d38c.js";import"./types.ee5cf120.js";import"./porder.e85d6a80.js";import"./tootip.78fee380.js";import"./status.73dc9f3e.js";import"./basic-descriptions.e00b8e50.js";import"./index.f49500cb.js";import"./reconciliation.d539ad6f.js";import"./index.13198c5f.js";import"./index.58b5b53c.js";import"./sale.2fb35704.js";import"./sale.712fcfa5.js";import"./index.9e1f7f35.js";import"./payment.22e34852.js";import"./purchPay.4bf55c47.js";import"./index.23625bd5.js";import"./ticket-return.d983ec7f.js";import"./ticketReturn.7ffee0a6.js";import"./index.8ef1c0f6.js";import"./tradelog.d281ed21.js";import"./tragelog.96495fcf.js";import"./index.80449270.js";import"./trade.b554be09.js";import"./index.0d59e845.js";import"./refund.7642b8cb.js";import"./index.ec5cff40.js";import"./inv-return.df583a53.js";import"./inv-return.5f0b2d44.js";import"./index.15031407.js";import"./inv-open.cdf6ab95.js";import"./inv-open.4902b496.js";const z={class:"main flex h-full"},L={"bg-white":"","min-w-230px":""},Y={"bg-white":"","flex-1":""},J=T({__name:"detail",setup(W){const{query:D}=V(),g=j(),p=I([]),l=u([]),r=u(new Map),d=u({}),w=K(()=>D.id),C=(e,t)=>{var s;const o=i[e].responseKey;return t[o]&&((s=i[e])==null?void 0:s.detail)&&t[o].length!==0};function x(e){return Object.keys(i).filter(o=>C(o,e)).map(o=>{const{api:s,component:a,requesetProp:m,responseKey:c,detail:M}=i[o],P=e[c];return{component:a,prop:m,title:M,api:s,value:P,key:o}})}async function b(){const{code:e,message:t,data:o}=await O({id:w.value});g({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(Q,{goodData:d,setGoodData:e=>d.value=e}),q(()=>E()),(e,t)=>{const o=f("ElCollapseItem"),s=f("ElCollapse");return n(),v("div",z,[_("div",L,[h(S,{map:r.value},null,8,["map"])]),_("div",Y,[h(s,{modelValue:l.value,"onUpdate:modelValue":t[1]||(t[1]=a=>l.value=a)},{default:y(()=>[(n(!0),v(A,null,F(G(p),a=>(n(),k(o,{title:a.title,name:a.key,key:a.key},{default:y(()=>[(n(),k(H(a.component),N(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","/Users/apple/Desktop/CompanyProjects/accout-vue3-ui/src/views/search/standBook/detail.vue"]]);export{Ie as default};