{"version":3,"file":"KitInvisibleLoadAuditEmbed.DSaWOsM9.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/Hqjso8D3AdAVtkMviygh/rHGH6XqIKBMCWAy71Lna/KitInvisibleLoadAuditEmbed.js"],"sourcesContent":["// User request: Create a new Framer code component named KitInvisibleLoadAuditEmbed that renders the user's exact Kit form embed inside Framer, loads Kit script on mount, uses the specified form attributes/content/success message/styling, fills width with auto height, exposes minimal controls, and remains safe for SSR/preview/browser rendering.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useMemo}from\"react\";// @ts-ignore Framer runtime provides this module in the editor/runtime environment.\nimport{addPropertyControls,ControlType}from\"framer\";const KIT_SCRIPT_SRC=\"https://f.convertkit.com/ckjs/ck.5.js\";const SUCCESS_MESSAGE=\"Check your inbox, your Audit is on its way.\\nIf it doesn't arrive within a few minutes, check your spam folder.\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function KitInvisibleLoadAuditEmbed(props){const{formId=\"9583392\",uid=\"08b0cfd683\",apiKey=\"\",submitLabel=\"Subscribe\",showPoweredBy=true}=props;useEffect(()=>{if(typeof document===\"undefined\")return;const hasScript=Boolean(document.querySelector(`script[src=\"${KIT_SCRIPT_SRC}\"]`));if(hasScript)return;const script=document.createElement(\"script\");script.async=true;script.src=KIT_SCRIPT_SRC;document.body.appendChild(script);},[]);const dataOptions=useMemo(()=>{return JSON.stringify({settings:{success_message:SUCCESS_MESSAGE},after_subscribe:{action:\"message\",success_message:SUCCESS_MESSAGE}});},[]);return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"auto\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .kit-audit-wrap {\n                    width: 100%;\n                    display: flex;\n                    justify-content: center;\n                    box-sizing: border-box;\n                }\n                .kit-audit-wrap .formkit-form {\n                    background: #f9fafb;\n                    border: 1px solid #e3e3e3;\n                    border-radius: 4px;\n                    max-width: 700px;\n                    padding: 40px 48px;\n                    width: 100%;\n                    box-sizing: border-box;\n                    font-family: Inter, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n                }\n                .kit-audit-wrap .formkit-header {\n                    margin: 0 0 12px 0;\n                    text-align: center;\n                    font-size: 36px;\n                    line-height: 1.15;\n                    font-weight: 700;\n                    color: #111827;\n                }\n                .kit-audit-wrap .formkit-subheader {\n                    margin: 0 0 24px 0;\n                    text-align: center;\n                    font-size: 18px;\n                    line-height: 1.4;\n                    color: #5f6368;\n                }\n                .kit-audit-wrap .formkit-fields {\n                    display: flex;\n                    flex-direction: column;\n                    gap: 12px;\n                    width: 100%;\n                }\n                .kit-audit-wrap .formkit-input {\n                    width: 100%;\n                    box-sizing: border-box;\n                    border: 1px solid #e3e3e3;\n                    border-radius: 4px;\n                    background: #ffffff;\n                    padding: 12px 14px;\n                    font-size: 15px;\n                    color: #1f2937;\n                }\n                .kit-audit-wrap .formkit-submit {\n                    width: 100%;\n                    border: none;\n                    border-radius: 4px;\n                    background: #7fa69b;\n                    color: #ffffff;\n                    padding: 12px 16px;\n                    font-size: 15px;\n                    font-weight: 600;\n                    cursor: pointer;\n                }\n                .kit-audit-wrap .formkit-divider {\n                    position: relative;\n                    margin: 6px 0;\n                    height: 18px;\n                }\n                .kit-audit-wrap .formkit-divider::before {\n                    content: \"\";\n                    position: absolute;\n                    left: 0;\n                    right: 0;\n                    top: 50%;\n                    transform: translateY(-50%);\n                    border-top: 1px solid #e3e3e3;\n                }\n                .kit-audit-wrap .formkit-divider span {\n                    position: absolute;\n                    left: 50%;\n                    top: 50%;\n                    transform: translate(-50%, -50%);\n                    width: 18px;\n                    height: 18px;\n                    border-radius: 999px;\n                    border: 1px solid #e3e3e3;\n                    background: #ffffff;\n                    color: #8b8b8b;\n                    font-size: 12px;\n                    line-height: 16px;\n                    text-align: center;\n                }\n                .kit-audit-wrap .formkit-guarantee {\n                    margin-top: 12px;\n                    text-align: center;\n                    font-size: 13px;\n                    line-height: 1.35;\n                    color: #4d4d4d;\n                }\n                .kit-audit-wrap .formkit-powered-by-convertkit-container {\n                    margin-top: 10px;\n                    text-align: center;\n                    font-size: 12px;\n                    color: #1f2937;\n                }\n                .kit-audit-wrap .formkit-powered-by-convertkit {\n                    color: inherit;\n                }\n                @media (max-width: 760px) {\n                    .kit-audit-wrap .formkit-form {\n                        padding: 28px 20px;\n                    }\n                    .kit-audit-wrap .formkit-header {\n                        font-size: 30px;\n                    }\n                }\n            `}),/*#__PURE__*/_jsx(\"div\",{className:\"kit-audit-wrap\",children:/*#__PURE__*/_jsxs(\"form\",{action:`https://app.kit.com/forms/${formId}/subscriptions`,className:\"seva-form formkit-form\",\"data-sv-form\":formId,\"data-uid\":uid,\"data-format\":\"inline\",\"data-version\":\"5\",\"data-options\":dataOptions,method:\"post\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"formkit-header\",children:[\"Get The Free\",/*#__PURE__*/_jsx(\"br\",{}),\"Invisible Load Audit\"]}),/*#__PURE__*/_jsx(\"div\",{className:\"formkit-subheader\",children:\"Find out where you are with your own capacity at work.\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"formkit-fields\",children:[/*#__PURE__*/_jsx(\"input\",{\"aria-label\":\"Email Address\",className:\"formkit-input\",name:\"email_address\",placeholder:\"Email Address\",required:true,type:\"email\"}),/*#__PURE__*/_jsx(\"input\",{\"aria-label\":\"First Name\",className:\"formkit-input\",name:\"fields[first_name]\",placeholder:\"First Name\",required:true,type:\"text\"}),/*#__PURE__*/_jsx(\"div\",{className:\"formkit-divider\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"span\",{children:\"+\"})}),/*#__PURE__*/_jsx(\"button\",{className:\"formkit-submit\",type:\"submit\",children:submitLabel})]}),/*#__PURE__*/_jsx(\"div\",{className:\"formkit-guarantee\",children:\"We won't send you spam. Unsubscribe at any time.\"}),showPoweredBy?/*#__PURE__*/_jsx(\"div\",{className:\"formkit-powered-by-convertkit-container\",children:/*#__PURE__*/_jsx(\"a\",{className:\"formkit-powered-by-convertkit\",href:\"https://kit.com/features/forms?utm_campaign=poweredby&utm_content=form&utm_medium=referral&utm_source=dynamic\",target:\"_blank\",rel:\"noreferrer\",children:\"Built with Kit\"})}):null,apiKey?/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:\"api_key\",value:apiKey,readOnly:true}):null]})})]});}addPropertyControls(KitInvisibleLoadAuditEmbed,{formId:{type:ControlType.String,title:\"Form ID\",defaultValue:\"9583392\"},uid:{type:ControlType.String,title:\"UID\",defaultValue:\"08b0cfd683\"},apiKey:{type:ControlType.String,title:\"API Key\",defaultValue:\"\",placeholder:\"Optional\"},submitLabel:{type:ControlType.String,title:\"Submit\",defaultValue:\"Subscribe\"},showPoweredBy:{type:ControlType.Boolean,title:\"Powered By\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"KitInvisibleLoadAuditEmbed\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./KitInvisibleLoadAuditEmbed.map"],"mappings":"mLAKG,SAAwB,EAA2B,EAAM,CAAC,GAAK,CAAC,SAAO,UAAU,MAAI,aAAa,SAAO,GAAG,cAAY,YAAY,gBAAc,IAAM,EAAM,MAAc,CAA4H,GAAxH,OAAO,SAAW,KAA2C,SAAS,cAAc,eAAe,EAAe,GAAG,EAAgB,OAAO,IAAM,EAAO,SAAS,cAAc,QAAQ,EAAE,EAAO,MAAM,GAAK,EAAO,IAAI,EAAe,SAAS,KAAK,YAAY,CAAM,CAAE,EAAE,CAAC,CAAC,EAAE,IAAM,EAAYA,MAAoB,KAAK,UAAU,CAAC,SAAS,CAAC,gBAAgB,CAAe,EAA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