import{y as d,c as v,z as s,A as t,B as e,P as i,Q as m,a4 as _,M as n,E as f,u as D}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";import{_ as x}from"./index-b309bf9f-1782729249161v=1.0.0.js";import"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";const E={class:"title"},F={key:0,class:"field"},b={class:"label"},B={class:"example"},y=d({__name:"CertificatePreview",props:{value:{default:{}}},emits:[],setup(o,{emit:C}){const a=o,c=v(()=>{const l=JSON.parse(a.value.certificateCoverUrl||"[]");return l.length>0?l[0].url:""}),p=[{label:"\u8D5B\u4E8B\u540D\u79F0",value:"isEventName",example:"\u9AD8\u6821\u8FD0\u52A8\u4F1A"},{label:"\u9879\u76EE\u4E0E\u7EC4\u522B",value:"isEventGroup",example:"\u672C\u79D1\u7537\u7532"},{label:"\u5355\u4F4D\u4E0E\u59D3\u540D",value:"isUnitName",example:"\u8BA1\u7B97\u673A\u5B66\u9662-\u5F20\u4E09"},{label:"\u53C2\u8D5B\u8005\u59D3\u540D",value:"isTsName",example:"\u5F20\u4E09"},{label:"\u5956\u9879\u540D\u79F0",value:"isDictName",example:"\u4E00\u7B49\u5956"},{label:"\u88C1\u5224\u957F",value:"isReferee",example:"",exampleKey:"referee"},{label:"\u9881\u53D1\u5355\u4F4D",value:"isAwardUnit",example:"",exampleKey:"awardUnit"},{label:"\u9881\u53D1\u65F6\u95F4",value:"isAwardDate"}];return(l,r)=>(s(),t("div",null,[e("div",{class:"preBox",style:f({backgroundImage:`url(${D(c)})`})},[e("div",E,i(a.value.title),1),(s(),t(m,null,_(p,u=>e("div",{class:"fieldsBox",key:u.value},[a.value.content&&a.value.content.includes(u.value)?(s(),t("div",F,[e("span",b,i(u.label)+":",1),e("span",B,i(u.example||a.value[u.exampleKey]),1)])):n("v-if",!0)])),64)),n(' <div class="awardUnit" v-if="props.value.awardUnit">\u9881\u53D1\u5355\u4F4D\uFF1A{{ props.value.awardUnit }}</div> '),r[0]||(r[0]=e("div",{class:"referee"},null,-1))],4)]))}});const N=x(y,[["__scopeId","data-v-fd85d59b"]]);export{N as default};
