{"version":3,"file":"SignupLayout.CDZAp4OL.mjs","names":["__esmMin","init_npm_react_18_3_1","init_jsx_runtime","J","c","p","init_UnifiedFormValidation","useValidationHTML","PFCForm","init_PFCForm","init_PFCFormPreview","useSiteSource","withSignupSpace","html","props","copy","name","source","formId","offerId","placement","newsletterStyles","styles","Component","init_SignupLayout"],"sources":["https:/framerusercontent.com/modules/QK08oHivL6cHotv8AWeg/YGYuPoADEz1eArZYDmoa/SignupLayout.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useValidationHTML}from\"https://framerusercontent.com/modules/GtdkTMyubwe3iXMVl5Sm/sgo9zXXKTqsq6EI7oyrq/UnifiedFormValidation.js\";import{forwardRef}from\"react\";import PFCForm from\"https://framerusercontent.com/modules/d43A0go4Ec4Dkr9W1uEo/OcBt1FGoqtqBx1ioHFaO/PFCForm.js\";import{useSiteSource}from\"https://framerusercontent.com/modules/zmxdCRYAPohWNzZNAst3/ywIsppETtrWRvikzhypq/PFCFormPreview.js\";// Reserve the subscription embed's natural layout in the server-rendered page.\n// The iframe and ActiveCampaign can then load independently without moving\n// content below them. Keep auto height so validation messages can still grow.\nexport function withSignupSpace(Component){return /*#__PURE__*/forwardRef(function SignupSpace(props,ref){const html=useValidationHTML(props.html||\"\");const copy=name=>(html.match(new RegExp(`<p class=\"pf-signup__${name}\">(.*?)</p>`))?.[1]||\"\").replace(/&nbsp;/g,\"\\xa0\");const source=useSiteSource();// Newsletter blocks (media 366, Jobs Digest 233) run on PFC Forms with the same copy and card look.\nconst formId=Number(html.match(/_form_(\\d+)/)?.[1]);const offerId={366:\"peoplefirst-media-subscription-newsletter\",233:\"jobs-digest-subscription-newsletter\"}[formId];if(offerId){const placement=html.match(/data-placement=\"([^\"]+)\"/)?.[1]||\"page-end\";return /*#__PURE__*/_jsxs(\"div\",{ref:ref,className:\"pf-newsletter\",style:{...props.style,height:\"auto\"},children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:newsletterStyles}}),/*#__PURE__*/_jsx(PFCForm,{submission:\"activecampaign\",id:\"newsletter-\"+placement,formId:formId,purpose:\"subscription\",offerType:\"newsletter\",offerId:offerId,placement:placement,mode:\"inline\",horizontal:formId===366,title:copy(\"title\"),description:copy(\"text\"),label:\"Підписатися\",source:source,style:{width:\"100%\"}})]});}return /*#__PURE__*/_jsxs(\"div\",{className:\"pf-signup-space\",style:{...props.style,position:\"relative\"},children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:styles}}),/*#__PURE__*/_jsx(\"div\",{className:\"pf-signup-space__measure\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsxs(\"div\",{className:\"pf-signup-space__card\",children:[/*#__PURE__*/_jsx(\"p\",{className:\"pf-signup-space__title\",children:copy(\"title\")}),/*#__PURE__*/_jsx(\"p\",{className:\"pf-signup-space__text\",children:copy(\"text\")}),/*#__PURE__*/_jsx(\"div\",{className:\"pf-signup-space__fields\"})]})}),/*#__PURE__*/_jsx(Component,{...props,html:html,ref:ref,style:{...props.style,width:\"100%\",height:undefined,display:\"block\",gridArea:\"1 / 1\",alignSelf:\"start\"}})]});});}const newsletterStyles=`\n.pf-newsletter { width: 100%; max-width: 680px; }\n.pf-newsletter .pfc-form-surface { margin: 40px 0; padding: 28px; background: var(--token-fae98b8a-0924-454a-8e7c-1cd184b14fda, #f2f2f2); border: 0; border-radius: 14px; }\n.pf-newsletter .pfc-form-heading { margin-bottom: 6px; }\n.pf-newsletter .pfc-form-heading h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }\n.pf-newsletter .pfc-form-surface > p { margin: 0 0 18px !important; font-size: 15.2px !important; color: #5a6370; }\n.pf-newsletter .pfc-form-horizontal { gap: 10px; }\n@media (max-width: 560px) { .pf-newsletter .pfc-form-surface { padding: 22px 18px; } }\n`;const styles=`\n.pf-signup-space { display: grid; grid-template-columns: minmax(0, 1fr); container-type: inline-size; }\n.pf-signup-space__measure { grid-area: 1 / 1; visibility: hidden; pointer-events: none; padding-bottom: 1px; }\n.pf-signup-space__card { box-sizing: border-box; width: 100%; margin: 40px 0; padding: 28px; font-family: \"Open Sans\", Arial, Helvetica, sans-serif; }\n.pf-signup-space__title { margin: 0 0 6px; font-size: 20px; line-height: 1.3; font-weight: 700; }\n.pf-signup-space__text { margin: 0 0 18px; font-size: 15.2px; line-height: 1.5; font-weight: 400; }\n.pf-signup-space__fields { height: 50px; }\n@container (max-width: 560px) {\n    .pf-signup-space__card { padding: 22px 18px; }\n    .pf-signup-space__fields { height: 110px; }\n}\n`;\nexport const __FramerMetadata__ = {\"exports\":{\"withSignupSpace\":{\"type\":\"reactHoc\",\"name\":\"withSignupSpace\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,iNAGA,SAAgBY,EAAgB,EAAU,CAAC,MAAoB,gBAAW,SAAqB,EAAM,EAAI,CAAC,IAAMC,EAAKN,EAAkBO,EAAM,MAAM,EAAE,EAAQC,EAAK,IAAOF,EAAK,MAAU,OAAO,wBAAwBG,EAAK,YAAY,CAAC,CAAC,GAAG,IAAI,GAAA,CAAI,QAAQ,UAAU,MAAM,EAAQC,EAAON,EAAc,EACpSO,EAAO,OAAOL,EAAK,MAAM,aAAa,CAAC,GAAG,EAAE,EAAQM,EAAQ,CAAC,IAAI,4CAA4C,IAAI,qCAAqC,EAAED,GAAQ,GAAGC,EAAQ,CAAC,IAAMC,EAAUP,EAAK,MAAM,0BAA0B,CAAC,GAAG,IAAI,WAAW,MAAoB,gBAAM,MAAM,CAAK,MAAI,UAAU,gBAAgB,MAAM,CAAC,GAAGC,EAAM,MAAM,OAAO,MAAM,EAAE,SAAS,CAAc,gBAAK,QAAQ,CAAC,wBAAwB,CAAC,OAAOO,CAAgB,CAAC,CAAC,EAAe,gBAAKb,EAAQ,CAAC,WAAW,iBAAiB,GAAG,cAAcY,EAAiB,SAAO,QAAQ,eAAe,UAAU,aAAqB,UAAkB,Y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