import{d as N,e as f,f as R,i as V,x as B}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as $}from"./vendor-vue-reactivity-CheHbvBM.js";import{b as h,t as q}from"./vendor-vue-shared-DrzsEcag.js";const G={class:"ccb-pdf-layout__item--wrapper additional_text_block","data-id":"footer_text"},K=N({__name:"FooterText",props:{pdf:{},item:{},content:{}},setup(j){const D=j,{pdf:p,item:e}=$(D),w=f(()=>{var o,s,l,d,n,i,r,u,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=(u=(r=(i=e.value)==null?void 0:i.tabs)==null?void 0:r.design)==null?void 0:u.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=f(()=>{var o,s,l,d,n,i,r,u,c,v,b,g,m,x,y,_,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=(u=(r=(i=e.value)==null?void 0:i.tabs)==null?void 0:r.design)==null?void 0:u.data)==null?void 0:c.textColor)==null?void 0:v.data)!=null&&b.status&&(t.color=e.value.tabs.design.data.textColor.value),(_=(y=(x=(m=(g=e.value)==null?void 0:g.tabs)==null?void 0:m.design)==null?void 0:x.data)==null?void 0:y.textAlign)!=null&&_.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=f(()=>{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:h(w.value)},[B("div",G,[B("span",{class:"ccb-pdf-item-description",style:h(E.value.value)},q(F.value),5)])],4))}});export{K as default};
//# sourceMappingURL=FooterText-CX5dsUYv.js.map
