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