import{a as C,C as k,b as u,m as S,g as A,p as r,P as v,D as f}from"./convert-case-to-camel-case.utils-DDUpNI96.js";const z={class:"ccb-pdf-layout__item--wrapper additional_text_block","data-id":"additional_text_block"},j=C({__name:"AdditionalTextBlock",props:{pdf:{},item:{}},setup(g){const b=g,{pdf:c,item:o}=k(b),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),_=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}),m=u(()=>o.value.tabs.text.data.description.value);return(a,e)=>(A(),S("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(_.value)},f(m.value),5)])],4))}});export{j as default};
//# sourceMappingURL=AdditionalTextBlock-D15JND_P.js.map
