1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1510],{91510:function(e,l,t){t.r(l),t.d(l,{StandaloneForm:function(){return g}});var n=t(48282),a=t(49759),o=t(30123),s=t(15852),r=t(88694),i=t(65662),u=t(32284),m=t.n(u),d=t(18529),c=t(13867),h=t(57612),x=t(55247);let g=e=>{var l,t,u,g;let{model:b,onSubmit:v}=e,[p,k]=(0,d.useState)(!1),f=JSON.parse(b.elements.hubspotFormSnippetForm.value),j=b.elements.headline.value,I=b.elements.backgroundColor.value,w=null===(l=b.elements.alternativeText)||void 0===l?void 0:l.value,y=(0,c.AG)(null===(t=b.elements.frontifyThankYouImage)||void 0===t?void 0:t.value,w),F=i.Ul[I[0].codename].base,S={formId:f.FormGUID,portalId:f.PortalID,headline:j,backgroundColor:F,thankYouImage:y,submittedMessageAlignment:"center",fieldColor:"white"===F?"gray.98":"white",autoTranslate:(null===(g=b.elements.hubspotFormSnippetAutomaticallyTranslateTheFormInAllLocales)||void 0===g?void 0:null===(u=g.value[0])||void 0===u?void 0:u.codename)==="yes"};return(0,n.jsxs)(a.W,{px:"0",id:b.system.codename,bg:S.backgroundColor,children:[(0,n.jsx)(o.xu,{ml:"40px",children:(0,n.jsx)(h.Z,{color:"mountain.base"})}),(0,n.jsx)(s.k,{alignItems:"center",w:"100%",flexDir:"column",p:{base:"s",lg:"l"},children:(0,n.jsxs)(s.k,{gap:{base:"s",lg:"m"},flexDir:"column",w:{base:"100%",lg:"50%",xl:"60%"},children:[!p&&(0,n.jsx)(r.X,{textAlign:"center",as:"h1",color:"mountain.base",textStyle:{base:"mobile.h4",lg:"desktop.h4"},children:S.headline}),(0,n.jsxs)(o.xu,{children:[p&&S.thankYouImage&&(0,n.jsx)(o.xu,{my:"l",w:"fit-content",h:"fit-content",mx:"auto",children:(0,n.jsx)(m(),{style:{objectFit:"cover"},width:80,height:70,src:S.thankYouImage.src,alt:S.thankYouImage.alt})}),(0,n.jsx)(x.n,{data:S,onSubmit:()=>{k(!0),v&&v()}})]})]})})]})}}}]);
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.