var P=Object.defineProperty,T=Object.defineProperties;var B=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable;var m=(e,l,s)=>l in e?P(e,l,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[l]=s,y=(e,l)=>{for(var s in l||(l={}))I.call(l,s)&&m(e,s,l[s]);if(b)for(var s of b(l))M.call(l,s)&&m(e,s,l[s]);return e},g=(e,l)=>T(e,B(l));var C=(e,l,s)=>new Promise((v,r)=>{var c=d=>{try{t(s.next(d))}catch(f){r(f)}},a=d=>{try{t(s.throw(d))}catch(f){r(f)}},t=d=>d.done?v(d.value):Promise.resolve(d.value).then(c,a);t((s=s.apply(e,l)).next())});import{X as U}from"./XTUpload.vue_vue_type_style_index_0_scoped_61a00cd1_lang-bad913d6.js";import{u as V}from"./index-985aa6f5.js";import{a as R}from"./index-981858ed.js";import{d as z,o,m as n,af as p,q as x,y as h,v as F,w as i,f as u,bv as S,t as _,g as N,F as k,D as w,bw as $,ah as X,s as D,ad as j,bg as q,bh as E,j as L}from"./index-610a1d46.js";const A=e=>(q("data-v-0fe7523d"),e=e(),E(),e),G={class:"desc"},H={key:0,class:"desc-item_label"},J={class:"desc-item_value"},K={key:0},O=["title"],Q={key:2},W=["title","onClick"],Y=A(()=>p("i",{class:"iconfont icon-xt-annex"},null,-1)),Z=z({__name:"XTDesc",props:{wrapSpan:{default:4},title:null,data:{default:()=>[]}},setup(e){const[l,{openModal:s}]=V();function v(r){return C(this,null,function*(){const c=yield R(r.id);g(y({},r),{previewUrl:c}),c&&s(!0,g(y({},r),{previewUrl:c}))})}return(r,c)=>(o(),n("div",null,[p("div",G,[e.title?(o(),x(u(S),{key:0,class:"desc-tit"},{default:h(()=>[F(i(e.title),1)]),_:1})):_("",!0),N(u(S),null,{default:h(()=>[(o(!0),n(k,null,w(e.data,a=>(o(),x(u($),{span:(a==null?void 0:a.span)||e.wrapSpan,class:"desc-item",key:a.label,style:X({display:a.hidden?"none":"block"})},{default:h(()=>[a.label?(o(),n("div",H,i(a.label),1)):_("",!0),p("div",J,[a.value||a.value==0?(o(),n("div",K,i(a.value),1)):_("",!0),a.tags?(o(),n("div",{key:1,class:D(["flex",a.value?" ml-3":""])},[(o(!0),n(k,null,w(a.tags,t=>(o(),n("div",{key:t.id,class:D(["desc-item_tag",t.type?"desc-item_tag--"+t.type:""]),style:X({color:t.fontColor,backgroundColor:t.bgColor}),title:t.label},i(t.label),15,O))),128))],2)):_("",!0),a.files?(o(),n("div",Q,[(o(!0),n(k,null,w(a.files,t=>(o(),n("div",{key:t.id,class:"desc-item_file",title:t.realName,onClick:d=>v(t)},[Y,p("span",null,i(t.realName),1)],8,W))),128))])):_("",!0),p("div",null,[j(r.$slots,"value",{},void 0,!0)])])]),_:2},1032,["span","style"]))),128))]),_:3})]),N(u(U),{onRegister:u(l)},null,8,["onRegister"])]))}});const oe=L(Z,[["__scopeId","data-v-0fe7523d"]]);export{oe as X};