import{y as d,c as v,z as s,A as t,M as e,P as o,B as r,O as p,E as m,u as _}from"./vendor-866bb149-1782572373740v=1.0.0.js";import{_ as f}from"./index-f6f689f9-1782572373740v=1.0.0.js";import"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";const F={key:0,class:"certificateNo"},B={key:1,class:"avater"},y={class:"content"},x={key:0,class:"management indent-2"},E={class:"flexBox line2"},g={key:0,class:"name"},k={key:1,class:"tsNo"},C={class:"flexBox"},D={key:0,class:"project"},A={key:1,class:"gradeDeterm"},N=d({__name:"CertificatePreview",props:{value:{default:{}}},emits:[],setup(l,{emit:b}){const n=l,c=v(()=>{const u=JSON.parse(n.value.certificateCoverUrl||"[]");return u.length>0?u[0].url:""}),a=u=>{var i;return(i=n.value.content)==null?void 0:i.includes(u)};return(u,i)=>(s(),t("div",{class:"preBox",style:m({backgroundImage:`url(${_(c)})`})},[e(' <div class="title">{{ props.value.title }}</div> '),e(` <div class="fieldsBox" v-for="item in certificateOptions" :key="item.value">\r
			<div v-if="props.value.content && props.value.content.includes(item.value)" class="field">\r
				<span class="label">{{ item.label }}:</span>\r
				<span class="example">{{ item.example || props.value[item.exampleKey] }}</span>\r
			</div>\r
		</div> `),a("isNumber")?(s(),t("div",F,"\u8BC1\u4E66\u7F16\u53F7\uFF1A"+o(n.value.isCertificateNo),1)):e("v-if",!0),a("isAvatar")?(s(),t("div",B,"\u7167\u7247")):e("v-if",!0),r("div",y,[e(" \u534E\u4E2D\u79D1\u6280\u5927\u5B66\u8FD0\u52A8\u5458\u6280\u80FD\u7B49\u7EA7\u7BA1\u7406\u529E\u6CD5 "),a("isManagement")?(s(),t("div",x,"\u4F9D\u636E\u300A"+o(n.value.management)+"\u300B\uFF0C",1)):e("v-if",!0),r("div",E,[a("isName")?(s(),t("div",g,"\u6388\u4E88")):e("v-if",!0),a("isTsNo")?(s(),t("div",k,i[0]||(i[0]=[p("\uFF08\u5B66\u53F7\uFF1A",-1),r("span",{style:{"margin-left":"120px"}},"\uFF09",-1)]))):e("v-if",!0)]),r("div",C,[a("isProject")?(s(),t("div",D,"\u9879\u76EE")):e("v-if",!0),a("isGradeDeterm")?(s(),t("div",A,"\u8363\u8A89\u79F0\u53F7\u3002")):e("v-if",!0)]),i[1]||(i[1]=r("div",{class:"indent-2"},"\u7279\u9881\u6B64\u8BC1\uFF0C\u4EE5\u8D44\u9F13\u52B1\uFF01",-1))]),e(' <div class="awardUnit" v-if="props.value.awardUnit">\u9881\u53D1\u5355\u4F4D\uFF1A{{ props.value.awardUnit }}</div> '),e(' <div class="referee"></div> ')],4))}});const U=f(N,[["__scopeId","data-v-f029abba"]]);export{U as default};
