1import{a1 as Z,c as n,r as d,ce as O,a3 as ee,D as B,Y as D,a$ as oe,cf as te,cg as le,ch as V,ci as ne,M as U,N as _,ag as H,aA as s,a5 as ae,cj as re,ck as ie,cl as ue}from"./CqWH0BZP.js";const se=Z({__name:"ThanksMessage",props:["payload"],setup(N){const l=N,j=o=>{if(typeof o=="string"){const e=o.trim();if(!e)return;if(e.toLowerCase()==="auto")return"auto";const t=Number(e);return Number.isFinite(t)?t:void 0}if(typeof o=="number"&&Number.isFinite(o))return o},i=(o,e)=>{const t=o?.margin??{},a=`margin${e.charAt(0).toUpperCase()}${e.slice(1)}`;return j(t?.[e]??o?.[a])},X=n(()=>{var o,e;const t=((e=(o=l?.payload)==null?void 0:o.style)==null?void 0:e.padding)||{},a=typeof t.top=="number"?`${t.top}px`:"0px",r=typeof t.right=="number"?`${t.right}px`:"0px",u=typeof t.bottom=="number"?`${t.bottom}px`:"0px",h=typeof t.left=="number"?`${t.left}px`:"0px";return`${a} ${r} ${u} ${h}`}),m=d(!1),A=n(()=>m.value&&(window.innerWidth<500||/iPhone|Android/i.test(navigator.userAgent))),f=n(()=>O()),W=()=>{try{const o=window?.parentIFrame;o&&typeof o.size=="function"&&o.size()}catch{}},S=d(0),M=d(0),R=d(null),Y=()=>{S.value=re()},T=()=>{M.value=ie(R.value)},b=n(()=>{var o;const e=((o=l?.payload)==null?void 0:o.style)||{},t=Number(e.cornerRadius??10);return Number.isFinite(t)?`${t}px`:"10px"}),g=n(()=>{var o;const e=((o=l?.payload)==null?void 0:o.style)||{},t=i(e,"top"),a=i(e,"bottom"),r=i(e,"left"),u=i(e,"right"),h=[e?.margin,t,a,r,u].some(c=>c!=null&&c!==""),p=![t,a,r,u].some(c=>c!==void 0),x=t??(p?"auto":void 0),C=a??(p?"auto":void 0),F=r??(p?"auto":void 0),w=u??(p?"auto":void 0),I=x==="auto",$=C==="auto",k=F==="auto",z=w==="auto";return{topIsAuto:I,bottomIsAuto:$,leftIsAuto:k,rightIsAuto:z,topValue:I?0:typeof x=="number"?x:0,bottomValue:$?0:typeof C=="number"?C:0,leftValue:k?0:typeof F=="number"?F:0,rightValue:z?0:typeof w=="number"?w:0,verticalCenter:I&&$,horizontalCenter:k&&z,marginDefined:h}}),E=n(()=>{var o;const e=((o=l?.payload)==null?void 0:o.style)||{};return typeof i(e,"top")=="number"}),y=d(null),L=()=>{m.value&&(y.value=ue(E.value,y.value))};ee(()=>{m.value=!0,Y(),B(T),L(),f.value&&B(()=>W())}),D(()=>{var o;return(o=l?.payload)==null?void 0:o.message},()=>{B(()=>{T(),f.value&&W()})}),D(E,()=>{L()}),oe(()=>{te(y.value)});const q=n(()=>{var o;const e=g.value;let t="flex-start";
1e.verticalCenter?t="center":e.topIsAuto&&!e.bottomIsAuto&&(t="flex-end");const a="center",r=le({isIframe:f.value,payloadHeight:(o=l?.payload)==null?void 0:o.height,viewportHeight:S.value,contentHeight:M.value,centerUsingViewport:e.marginDefined&&e.verticalCenter&&e.horizontalCenter});return{minHeight:r>0?`${r}px`:void 0,width:"100%",boxSizing:"border-box",paddingTop:`${e.topValue}px`,paddingRight:`${e.rightValue}px`,paddingBottom:`${e.bottomValue}px`,paddingLeft:`${e.leftValue}px`,display:"flex",flexDirection:"column",justifyContent:t,alignItems:a,overflowY:"auto",overflowX:"hidden"}}),G=n(()=>{var o;const e=((o=l?.payload)==null?void 0:o.style)||{};g.value;const t=A.value&&e.mobileBgColor?e.mobileBgColor:e.bgColor;return{backgroundColor:v.value?"transparent":V(t,t||"#FFFFFF"),color:V(e.color,"#000000"),fontFamily:e.fontFamily?`'${e.fontFamily}'`:"inherit",fontWeight:Number(e.fontWeight??500),position:"relative",zIndex:1,maxWidth:"100%",width:"fit-content",display:"block",padding:X.value,minHeight:"auto",boxSizing:"border-box",borderRadius:b.value,border:"none",boxShadow:"none",outline:"none",lineHeight:"1.2"}}),J=n(()=>({width:"fit-content",flexGrow:g.value.verticalCenter?0:1,border:"none",boxShadow:"none",overflow:"auto"})),v=n(()=>{var o;return(((o=l?.payload)==null?void 0:o.style)||{}).autoBgFromImage===!0}),K=n(()=>{var o;const e=((o=l?.payload)==null?void 0:o.style)||{};if(e.overlayColor)return e.overlayColor;const t=A.value&&e.mobileBgColor?e.mobileBgColor:e.bgColor;if(t){const a=V(t,"#FFFFFF");return ne(a,.32)}return"rgba(0, 0, 0, 0.32)"}),Q=n(()=>({position:v.value?"relative":void 0,overflow:v.value?"hidden":void 0,borderRadius:b.value,border:"none",maxWidth:"100%",boxSizing:"border-box",display:"inline-block"})),P=n(()=>({position:"absolute",inset:0,backgroundColor:K.value,backdropFilter:"blur(40px)",WebkitBackdropFilter:"blur(40px)",filter:"saturate(1.25)",pointerEvents:"none",zIndex:0,borderRadius:b.value}));return(o,e)=>(U(),_("div",{ref_key:"rootEl",ref:R,style:s(q.value)},[H("div",{class:"col-md-12 col-sm-12 col-lg-12 text-center thank-you-message",style:s(J.value)},[H("div",{style:s(Q.value)},[v.value?(U(),_("div",{key:0,style:s(P.value)},null,4)):ae("",!0),H("div",{innerHTML:N.payload.message,style:s(G.value)},null,12,["innerHTML"])],4)],4)],4))}});export{se as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.