import{d as C,e as u,f as k,i as S,x as r}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as A}from"./vendor-vue-reactivity-CheHbvBM.js";import{b as v,t as f}from"./vendor-vue-shared-DrzsEcag.js";const z={class:"ccb-pdf-layout__item--wrapper additional_text_block","data-id":"additional_text_block"},D=C({__name:"AdditionalTextBlock",props:{pdf:{},item:{}},setup(b){const g=b,{pdf:c,item:o}=A(g),p=u(()=>{var l,s,i,n,d;const a={},e=(l=c.value.document)==null?void 0:l.tabs;if(e!=null&&e.body){const t=e.body;a.backgroundColor=((i=(s=t.data)==null?void 0:s.backgroundColor)==null?void 0:i.value)??""}if((d=(n=o.value)==null?void 0:n.tabs)!=null&&d.design){const t=o.value.tabs.design;t.data.backgroundColor.data.status?a.backgroundColor=t.data.backgroundColor.value:a.backgroundColor="transparent"}return a}),y=u(()=>{var l,s,i,n,d;const a={},e=(l=c.value.document)==null?void 0:l.tabs;if(e!=null&&e.body){const t=e.body;a.color=((i=(s=t.data)==null?void 0:s.titleColor)==null?void 0:i.value)??""}if((n=o.value.tabs)!=null&&n.design){const t=o.value.tabs.design;t.data.titleColor.data.status&&(a.color=t.data.titleColor.value),t.data.textAlign.value&&(a.textAlign=t.data.textAlign.value==="justified"?"justify":t.data.textAlign.value),(d=t.data.titleFontSize)!=null&&d.value&&(a.fontSize=`${t.data.titleFontSize.value}px`)}return a}),x=u(()=>o.value.tabs.text.data.title.value),m=u(()=>{var l,s,i,n,d;const a={},e=(l=c.value.document)==null?void 0:l.tabs;if(e!=null&&e.body&&o.value.isBody){const t=e.body;a.color=((i=(s=t.data)==null?void 0:s.textColor)==null?void 0:i.value)??""}if((n=o.value.tabs)!=null&&n.design){const t=o.value.tabs.design;t.data.textColor.data.status&&(a.color=t.data.textColor.value),t.data.textAlign.value&&(a.textAlign=t.data.textAlign.value==="justified"?"justify":t.data.textAlign.value),(d=t.data.fontSize)!=null&&d.value&&(a.fontSize=`${t.data.fontSize.value}px`)}return a}),_=u(()=>o.value.tabs.text.data.description.value);return(a,e)=>(S(),k("div",{class:"ccb-pdf-layout__item",style:v(p.value)},[r("div",z,[r("span",{class:"ccb-pdf-item-title",style:v(y.value)},f(x.value),5),r("span",{class:"ccb-pdf-item-description",style:v(m.value)},f(_.value),5)])],4))}});export{D as default};
//# sourceMappingURL=AdditionalTextBlock-DWZUfyi3.js.map
