import{a as $,C as w,b as _,m as E,g as N,p as k,P as S,D as A}from"./convert-case-to-camel-case.utils-DDUpNI96.js";const P={class:"ccb-pdf-layout__item--wrapper top_text_block","data-id":"top_text_block"},V=$({__name:"TopTextBlock",props:{pdf:{},item:{}},setup(z){const B=z,{pdf:m,item:t}=w(B),j=_(()=>{var l,s,o,i,d,n,u,r,c;const a={},e=(l=m.value.document)==null?void 0:l.tabs;return(i=(o=(s=e==null?void 0:e.body)==null?void 0:s.data)==null?void 0:o.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}),D=_(()=>{var l,s,o,i,d,n,u,r,c,v,g,b,p,f,x,y,C;const a={},e=(l=m.value.document)==null?void 0:l.tabs;return(i=(o=(s=e==null?void 0:e.body)==null?void 0:s.data)==null?void 0:o.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),(p=(b=(g=(v=t.value.tabs)==null?void 0:v.design)==null?void 0:g.data)==null?void 0:b.textAlign)!=null&&p.value&&(a.textAlign=t.value.tabs.design.data.textAlign.value==="justified"?"justify":t.value.tabs.design.data.textAlign.value),(C=(y=(x=(f=t.value.tabs)==null?void 0:f.design)==null?void 0:x.data)==null?void 0:y.titleFontSize)!=null&&C.value&&(a.fontSize=`${t.value.tabs.design.data.titleFontSize.value}px`),a}),h=_(()=>t.value.tabs.text.data.title.value),F=_(()=>{var l,s,o,i,d,n,u,r,c,v,g,b,p,f,x,y,C;const a={},e=(l=m.value.document)==null?void 0:l.tabs;return(i=(o=(s=e==null?void 0:e.body)==null?void 0:s.data)==null?void 0:o.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),(p=(b=(g=(v=t.value.tabs)==null?void 0:v.design)==null?void 0:g.data)==null?void 0:b.textAlign)!=null&&p.value&&(a.textAlign=t.value.tabs.design.data.textAlign.value==="justified"?"justify":t.value.tabs.design.data.textAlign.value),(C=(y=(x=(f=t.value.tabs)==null?void 0:f.design)==null?void 0:x.data)==null?void 0:y.fontSize)!=null&&C.value&&(a.fontSize=`${t.value.tabs.design.data.fontSize.value}px`),a}),T=_(()=>t.value.tabs.text.data.description.value);return(a,e)=>(N(),E("div",{class:"ccb-pdf-layout__item",style:S(j.value)},[k("div",P,[k("span",{class:"ccb-pdf-item-title",style:S(D.value)},A(h.value),5),k("span",{class:"ccb-pdf-item-description",style:S(F.value)},A(T.value),5)])],4))}});export{V as default};
//# sourceMappingURL=TopTextBlock-BlIfERu-.js.map
