import{a as z,C as j,b as d,m as y,g as b,p as r,P as c,D as f,F as B,H as h,I as F}from"./convert-case-to-camel-case.utils-DDUpNI96.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"}},E=z({__name:"CompanyBlock",props:{pdf:{},item:{}},setup(g){const m=g,{pdf:p,item:i}=j(m),x=d(()=>{var l,a,o,n,u;const e={},s=(l=p.value.document)==null?void 0:l.tabs;if(s!=null&&s.body){const t=s.body;e.backgroundColor=((o=(a=t.data)==null?void 0:a.backgroundColor)==null?void 0:o.value)??""}if((u=(n=i.value)==null?void 0:n.tabs)!=null&&u.design){const t=i.value.tabs.design;t.data.backgroundColor.data.status?e.backgroundColor=t.data.backgroundColor.value:e.backgroundColor="transparent"}return e}),k=d(()=>{var l,a,o,n,u;const e={},s=(l=p.value.document)==null?void 0:l.tabs;if(s!=null&&s.body){const t=s.body;e.color=((o=(a=t.data)==null?void 0:a.titleColor)==null?void 0:o.value)??""}if((n=i.value.tabs)!=null&&n.design){const t=i.value.tabs.design;t.data.titleColor.data.status&&(e.color=t.data.titleColor.value),t.data.textAlign.value&&(e.textAlign=t.data.textAlign.value==="justified"?"justify":t.data.textAlign.value),(u=t.data.titleFontSize)!=null&&u.value&&(e.fontSize=`${t.data.titleFontSize.value}px`)}return e}),C=d(()=>i.value.tabs.text.data.title.value),v=d(()=>{var l,a,o,n,u;const e={},s=(l=p.value.document)==null?void 0:l.tabs;if(s!=null&&s.body&&i.value.isBody){const t=s.body;e.color=((o=(a=t.data)==null?void 0:a.textColor)==null?void 0:o.value)??""}if((n=i.value.tabs)!=null&&n.design){const t=i.value.tabs.design;t.data.textColor.data.status&&(e.color=t.data.textColor.value),t.data.textAlign.value&&(e.textAlign=t.data.textAlign.value==="justified"?"justify":t.data.textAlign.value),(u=t.data.fontSize)!=null&&u.value&&(e.fontSize=`${t.data.fontSize.value}px`)}return e}),_=d(()=>i.value.tabs.text.data.description.value),S=d(()=>{var s,l;const e=(l=(s=i.value.tabs)==null?void 0:s.contacts)==null?void 0:l.data;return Object.values(e||{}).map(a=>{var o,n;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:(n=e==null?void 0:e.description)==null?void 0:n.value}}).filter(a=>a!==null&&a.status)}),A=d(()=>{var l;const e={left:"flex-start",right:"flex-end",center:"center"},s=((l=v.value)==null?void 0:l.textAlign)||"left";return{justifyContent:e[s]}});return(e,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)},f(C.value),5),r("span",{class:"ccb-pdf-item-description",style:c(v.value)},f(_.value),5),r("span",$,[(b(!0),y(B,null,h(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(v.value)},f(l.label)+":",5),r("span",{class:"ccb-pdf-item-info--item-value",style:c(v.value)},f(l.value),5)],6))),128))])])],4))}});export{E as default};
//# sourceMappingURL=CompanyBlock-rtFWZwou.js.map
