{"version":3,"file":"SignupLayout.DMFZEGIP.mjs","names":["__esmMin","init_npm_react_18_3_1","init_jsx_runtime","J","c","p","init_UnifiedFormValidation","useValidationHTML","withSignupSpace","html","props","copy","name","styles","Component","init_SignupLayout"],"sources":["https:/framerusercontent.com/modules/QK08oHivL6cHotv8AWeg/jXi8ld9Pr16RgtlbAhfq/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\";// 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\");return /*#__PURE__*/_jsxs(\"div\",{className:\"pf-signup-space\",style:{...props.style,position:\"relative\"},children:[/*#__PURE__*/_jsx(\"style\",{children: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 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,mLAGA,SAAgBQ,EAAgB,EAAU,CAAC,MAAoB,gBAAW,SAAqB,EAAM,EAAI,CAAC,IAAMC,EAAKF,EAAkBG,EAAM,MAAM,EAAE,EAAQC,EAAK,IAAOF,EAAK,MAAU,OAAO,wBAAwBG,EAAK,YAAY,CAAC,CAAC,GAAG,IAAI,GAAA,CAAI,QAAQ,UAAU,MAAM,EAAE,MAAoB,gBAAM,MAAM,CAAC,UAAU,kBAAkB,MAAM,CAAC,GAAGF,EAAM,MAAM,SAAS,UAAU,EAAE,SAAS,CAAc,gBAAK,QAAQ,CAAC,SAASG,CAAM,CAAC,EAAe,gBAAK,MAAM,CAAC,UAAU,2BAA2B,cAAc,OAAO,SAAsB,gBAAM,MAAM,CAAC,UAAU,wBAAwB,SAAS,CAAc,gBAAK,IAAI,CAAC,UAAU,yBAAyB,SAASF,EAAK,OAAO,CAAC,CAAC,EAAe,gBAAK,IAAI,CAAC,UAAU,wBAAwB,SAASA,EAAK,MAAM,CAAC,CAAC,EAAe,gBAAK,MAAM,CAAC,UAAU,yBAAyB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAe,gBAAKG,EAAU,CAAC,GAAGJ,EAAW,OAAS,MAAI,MAAM,CAAC,GAAGA,EAAM,MAAM,MAAM,OAAO,OAAO,IAAA,GAAU,QAAQ,QAAQ,SAAS,QAAQ,UAAU,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC,CAAE,C,gDAAO,EAAO"}