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.e4510b68.js";import{h as O}from"./index.6d365368.js";import{Q as i}from"./query.59e102a0.js";import{i as Q}from"./context.bdf6d636.js";import S from"./anchor.8353438a.js";import"./index.a418bf02.js";import"./purchase.da36cca4.js";import"./types.391023f9.js";import"./porder.6068bd9a.js";import"./tootip.9cf564b4.js";import"./status.73dc9f3e.js";import"./basic-descriptions.25e2fb11.js";import"./index.1bd2554a.js";import"./reconciliation.d9412d61.js";import"./index.4b8f4f01.js";import"./index.557fcc58.js";import"./sale.63a8e607.js";import"./sale.b2756ae2.js";import"./index.556f0410.js";import"./payment.3fed98ec.js";import"./purchPay.23e684fd.js";import"./index.c80b4947.js";import"./ticket-return.a8b2947e.js";import"./ticketReturn.ca10efe4.js";import"./index.dd791e9e.js";import"./tradelog.7ebb4ad4.js";import"./tragelog.7e07bd3a.js";import"./index.2f3e7372.js";import"./trade.feae7dcd.js";import"./index.a161fc18.js";import"./refund.3b047ad1.js";import"./index.651f76d6.js";import"./inv-return.d141ec0f.js";import"./inv-return.b4694943.js";import"./index.aaaca09e.js";import"./inv-open.6d0c5813.js";import"./inv-open.80953936.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};