import{d as z,e as d,f as y,i as b,x as r,F as j,r as B}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as h}from"./vendor-vue-reactivity-CheHbvBM.js";import{b as c,t as v,a as F}from"./vendor-vue-shared-DrzsEcag.js";const D={class:"ccb-pdf-layout__item--wrapper company_block","data-id":"company_block"},$={class:"ccb-pdf-item-info",style:{"flex-direction":"column !important"}},N=z({__name:"CompanyBlock",props:{pdf:{},item:{}},setup(g){const m=g,{pdf:p,item:n}=h(m),x=d(()=>{var l,a,o,i,u;const t={},s=(l=p.value.document)==null?void 0:l.tabs;if(s!=null&&s.body){const e=s.body;t.backgroundColor=((o=(a=e.data)==null?void 0:a.backgroundColor)==null?void 0:o.value)??""}if((u=(i=n.value)==null?void 0:i.tabs)!=null&&u.design){const e=n.value.tabs.design;e.data.backgroundColor.data.status?t.backgroundColor=e.data.backgroundColor.value:t.backgroundColor="transparent"}return t}),k=d(()=>{var l,a,o,i,u;const t={},s=(l=p.value.document)==null?void 0:l.tabs;if(s!=null&&s.body){const e=s.body;t.color=((o=(a=e.data)==null?void 0:a.titleColor)==null?void 0:o.value)??""}if((i=n.value.tabs)!=null&&i.design){const e=n.value.tabs.design;e.data.titleColor.data.status&&(t.color=e.data.titleColor.value),e.data.textAlign.value&&(t.textAlign=e.data.textAlign.value==="justified"?"justify":e.data.textAlign.value),(u=e.data.titleFontSize)!=null&&u.value&&(t.fontSize=`${e.data.titleFontSize.value}px`)}return t}),C=d(()=>n.value.tabs.text.data.title.value),f=d(()=>{var l,a,o,i,u;const t={},s=(l=p.value.document)==null?void 0:l.tabs;if(s!=null&&s.body&&n.value.isBody){const e=s.body;t.color=((o=(a=e.data)==null?void 0:a.textColor)==null?void 0:o.value)??""}if((i=n.value.tabs)!=null&&i.design){const e=n.value.tabs.design;e.data.textColor.data.status&&(t.color=e.data.textColor.value),e.data.textAlign.value&&(t.textAlign=e.data.textAlign.value==="justified"?"justify":e.data.textAlign.value),(u=e.data.fontSize)!=null&&u.value&&(t.fontSize=`${e.data.fontSize.value}px`)}return t}),_=d(()=>n.value.tabs.text.data.description.value),S=d(()=>{var s,l;const t=(l=(s=n.value.tabs)==null?void 0:s.contacts)==null?void 0:l.data;return Object.values(t||{}).map(a=>{var o,i;return a.key==="description"?null:{key:a.key,status:a.data.status,label:a.key!=="address"?(o=a==null?void 0:a.data)==null?void 0:o.label:a.value,value:a.key!=="address"?a.value:(i=t==null?void 0:t.description)==null?void 0:i.value}}).filter(a=>a!==null&&a.status)}),A=d(()=>{var l;const t={left:"flex-start",right:"flex-end",center:"center"},s=((l=f.value)==null?void 0:l.textAlign)||"left";return{justifyContent:t[s]}});return(t,s)=>(b(),y("div",{class:"ccb-pdf-layout__item",style:c(x.value)},[r("div",D,[r("span",{class:"ccb-pdf-item-title",style:c(k.value)},v(C.value),5),r("span",{class:"ccb-pdf-item-description",style:c(f.value)},v(_.value),5),r("span",$,[(b(!0),y(j,null,B(S.value,l=>(b(),y("span",{key:l.key,class:F(["ccb-pdf-item-info--item",l.key]),style:c(A.value)},[r("span",{class:"ccb-pdf-item-info--item-label",style:c(f.value)},v(l.label)+":",5),r("span",{class:"ccb-pdf-item-info--item-value",style:c(f.value)},v(l.value),5)],6))),128))])])],4))}});export{N as default};
//# sourceMappingURL=CompanyBlock-BmTn2u4b.js.map
