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