{"version":3,"file":"MarketoForm.COtZ95IT.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/z8AQc1aL3qDYqx9nw0Q7/BWPxamd3RHYmLjaPgkoH/MarketoForm.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function MarketoForm({// Form configuration\nformId=\"1001\",munchkinId=\"931-YSS-357\",baseUrl=\"//live.smithrx.com\",// Container styling\nbackgroundColor=\"#FFFFFF\",width=\"100%\",height=\"auto\",padding=\"20px\",borderRadius=4,// Form styling\nformGap=28,// Label styling\nlabelFont={fontFamily:\"Aeonik Pro Medium, Aeonik Pro Medium Placeholder, sans-serif\",fontSize:16,fontWeight:400},labelColor=\"#2b2927\",// Input styling\ninputFont={fontFamily:\"Aeonik Pro Medium, Aeonik Pro Medium Placeholder, sans-serif\",fontSize:20,fontWeight:400},inputColor=\"#2b2927\",inputBorderColor=\"#2b2927\",inputBorderWidth=1.5,inputPadding=\"16px 16px 16px 0px\",// Button styling\nbuttonFont={fontFamily:\"Aeonik Pro Medium, Aeonik Pro Medium Placeholder, sans-serif\",fontSize:20,fontWeight:700},buttonBackgroundColor=\"#2b2927\",buttonHoverColor=\"#242220\",buttonTextColor=\"#FFFFFF\",buttonPadding=\"16px 24px 16px 24px\",buttonBorderRadius=1e3,buttonWidth=\"100%\",// Error styling\nerrorFont={fontFamily:\"inherit\",fontSize:16},errorFontColor=\"#DC2828\",errorColor=\"#FF3B30\",errorFontSize=14,// Focus styling\nfocusOutlineColor=\"#F65E00\",focusOutlineWidth=2,focusOutlineOffset=2,// Success message configuration\nshowSuccessMessage=false,successMessageText=\"Thank you! Your submission has been received.\",successMessageBackgroundColor=\"#F0F9FF\",successMessageTextColor=\"#2b2927\",successMessageBorderRadius=8,successMessagePadding=\"24px\",successMessageFont={fontFamily:\"Aeonik Pro Medium, Aeonik Pro Medium Placeholder, sans-serif\",fontSize:18,fontWeight:400},// Success CTA configuration\nshowSuccessCTA=false,successCTAText=\"Continue\",successCTALink=\"#\",successCTABackgroundColor=\"#2b2927\",successCTATextColor=\"#FFFFFF\",successCTABorderRadius=1e3,successCTAPadding=\"12px 24px\",successCTAFont={fontFamily:\"Aeonik Pro Medium, Aeonik Pro Medium Placeholder, sans-serif\",fontSize:16,fontWeight:600},// Preview toggle (Framer only)\nshowPreviewForm=false}){const formContainerRef=useRef(null);const instanceKey=useRef(Math.random().toString(36).substring(2,9));const[isFramerDesigner,setIsFramerDesigner]=useState(false);const[isInitialized,setIsInitialized]=useState(false);const[showSuccess,setShowSuccess]=useState(false);// Track if this instance set the global flag\nconst didSetGlobalFlag=useRef(false);// Check if we're in Framer's design mode\nuseEffect(()=>{const isDesigner=typeof window!==\"undefined\"&&(window.location.href.includes(\"framer.com/projects/\")||window.location.href.includes(\"framer.cloud/\"));setIsFramerDesigner(isDesigner);if(isDesigner){if(window.__marketoFormInitialized){setIsInitialized(false);return;}else{window.__marketoFormInitialized=true;didSetGlobalFlag.current=true;setIsInitialized(true);}}else{setIsInitialized(true);}},[]);// --- Preview toggle logic ---\nif(isFramerDesigner&&!showPreviewForm){// Only the first instance should show the form, others show a placeholder\nif(window&&window.__marketoFormInitialized&&!didSetGlobalFlag.current){return /*#__PURE__*/_jsx(\"div\",{style:{width:width,backgroundColor:backgroundColor,padding:padding,borderRadius:`${borderRadius}px`,minHeight:typeof height===\"number\"?`${height}px`:height,display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",alignItems:\"center\"},children:/*#__PURE__*/_jsx(\"div\",{style:{textAlign:\"center\",fontFamily:labelFont.fontFamily,color:labelColor},children:\"Marketo Form (hidden duplicate)\"})});}// Otherwise, show the normal preview placeholder\nreturn /*#__PURE__*/_jsx(\"div\",{style:{width:width,backgroundColor:backgroundColor,padding:padding,borderRadius:`${borderRadius}px`,minHeight:typeof height===\"number\"?`${height}px`:height,display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",alignItems:\"center\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{textAlign:\"center\",fontFamily:labelFont.fontFamily,color:labelColor},children:[\"Marketo Form\",/*#__PURE__*/_jsx(\"br\",{}),/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"14px\",opacity:.7},children:\"(Toggle 'Preview form' to show/hide the form in Framer)\"})]})});}useEffect(()=>{// Only proceed if we should initialize this instance\nif(!isInitialized||typeof window===\"undefined\"||!formContainerRef.current)return;const containerId=`mktoFormContainer_${instanceKey.current}`;formContainerRef.current.id=containerId;// Remove all child nodes before adding a new form\nconst formContainer=formContainerRef.current;while(formContainer.firstChild){formContainer.removeChild(formContainer.firstChild);}formContainer.innerHTML=`<form id=\"mktoForm_${formId}\"></form>`;// Create a clean script element for this specific instance\nconst uniqueScriptId=`mkto-script-${instanceKey.current}`;// Remove any old instance of our script\nconst oldScript=document.getElementById(uniqueScriptId);if(oldScript)oldScript.remove();// Remove any old style element\nconst oldStyle=document.getElementById(`mkto-style-${instanceKey.current}`);if(oldStyle)oldStyle.remove();// Add custom styles for the form using props\nconst style=document.createElement(\"style\");style.id=`mkto-style-${instanceKey.current}`;style.innerHTML=`\n            .mktoForm {\n                width: 100% !important;\n            }\n            \n            .mktoForm .mktoFormCol, .mktoForm .mktoFieldWrap {\n                width: 100% !important;\n            }\n\n            .mktoForm {\n                display: flex;\n                flex-direction: column;\n                gap: ${formGap}px;\n            }\n\n            .mktoOffset {\n                display: none;\n            }\n\n            .mktoGutter.mktoHasWidth {\n                display: none;\n            }\n\n            .mktoForm .mktoLabel {\n                font-family: ${labelFont.fontFamily} !important;\n                font-size: ${typeof labelFont.fontSize===\"number\"?labelFont.fontSize+\"px\":labelFont.fontSize} !important;\n                font-weight: ${labelFont.fontWeight||400} !important;\n                ${labelFont.lineHeight!==undefined?`line-height: ${typeof labelFont.lineHeight===\"number\"?labelFont.lineHeight+\"px\":labelFont.lineHeight} !important;`:\"\"}\n                color: ${labelColor} !important;\n                width: 100% !important;\n            }\n\n            .mktoForm .mktoRequiredField label.mktoLabel {\n                display: flex !important;\n                flex-direction: row-reverse !important;\n                justify-content: flex-end !important;\n            }\n\n            .mktoForm input {\n                font-family: ${inputFont.fontFamily} !important;\n                font-size: ${typeof inputFont.fontSize===\"number\"?inputFont.fontSize+\"px\":inputFont.fontSize} !important;\n                font-weight: ${inputFont.fontWeight||400} !important;\n                ${inputFont.lineHeight!==undefined?`line-height: ${typeof inputFont.lineHeight===\"number\"?inputFont.lineHeight+\"px\":inputFont.lineHeight} !important;`:\"\"}\n                color: ${inputColor} !important;\n            }\n\n            .mktoButtonWrap {\n                margin-left: 0px !important;\n            }\n\n            .mktoForm input {\n                background-color: transparent !important;\n                border-bottom: ${inputBorderWidth}px solid ${inputBorderColor} !important;\n                border-top: none !important;\n                border-left: none !important;\n                border-right: none !important;\n                padding: ${inputPadding} !important;\n                width: 100% !important;\n            }\n\n            .mktoForm textarea.mktoField {\n                font-family: ${inputFont.fontFamily} !important;\n                font-size: ${typeof inputFont.fontSize===\"number\"?inputFont.fontSize+\"px\":inputFont.fontSize} !important;\n                font-weight: ${inputFont.fontWeight||400} !important;\n                ${inputFont.lineHeight!==undefined?`line-height: ${typeof inputFont.lineHeight===\"number\"?inputFont.lineHeight+\"px\":inputFont.lineHeight} !important;`:\"\"}\n                color: ${inputColor} !important;\n                background-color: transparent !important;\n                border-bottom: ${inputBorderWidth}px solid ${inputBorderColor} !important;\n                border-top: none !important;\n                border-left: none !important;\n                border-right: none !important;\n                padding: ${inputPadding} !important;\n                width: 100% !important;\n            }\n\n            .mktoForm select {\n                background-color: transparent !important;\n                border-bottom: 1.5px solid rgb(43, 41, 39) !important;\n                border-top: none !important;\n                border-left: none !important;\n                border-right: none !important;\n                padding: 16px 16px 16px 0px !important;\n                width: 100% !important;\n                font-family: \"Aeonik Pro Regular\", \"Aeonik Pro Regular Placeholder\", sans-serif !important;\n                font-size: 24px !important;\n                font-weight: 400 !important;\n                line-height: 100% !important;\n                color: rgb(43, 41, 39) !important;\n            }\n\n            .mktoForm input::placeholder {\n                font-family: ${inputFont.fontFamily} !important;\n            }\n\n            .mktoForm .mktoButtonWrap.mktoSimple .mktoButton {\n                border: none !important;\n                background-color: ${buttonBackgroundColor} !important;\n                color: ${buttonTextColor} !important;\n                padding: ${buttonPadding} !important;\n                border-radius: ${buttonBorderRadius}px;\n                background-image: none !important;\n                font-family: ${buttonFont.fontFamily} !important;\n                font-size: ${typeof buttonFont.fontSize===\"number\"?buttonFont.fontSize+\"px\":buttonFont.fontSize} !important;\n                font-weight: ${buttonFont.fontWeight||700} !important;\n                ${buttonFont.lineHeight!==undefined?`line-height: ${typeof buttonFont.lineHeight===\"number\"?buttonFont.lineHeight+\"px\":buttonFont.lineHeight} !important;`:\"\"}\n                width: ${buttonWidth} !important;\n                min-height: 48px !important;\n                transition: ease .3s;\n            }\n\n            .mktoForm .mktoButtonWrap.mktoSimple .mktoButton:hover {\n                background-color: ${buttonHoverColor} !important;\n            }\n\n            .mktoForm .mktoError {\n                position: relative !important;\n                z-index: 99 !important;\n                color: #bf0000 !important;\n                display: inline-block !important;\n                right: auto !important;\n                bottom: auto !important;\n                border: none !important;\n            }\n\n            /* Validation Styles */\n            .mktoError {\n                border-bottom: ${inputBorderWidth}px solid ${errorColor} !important;\n            }\n\n            .mktoError .mktoErrorMsg {\n                background: none !important;\n                border: none !important;\n                box-shadow: none !important;\n                font-family: ${errorFont.fontFamily} !important;\n                font-size: ${typeof errorFont.fontSize===\"number\"?errorFont.fontSize+\"px\":errorFont.fontSize} !important;\n                color: ${errorFontColor} !important;\n                flex-direction: row !important;\n                white-space: nowrap !important;\n                text-shadow: none !important;\n            }\n            .mktoError .mktoErrorMsg br,\n            .mktoError .mktoErrorMsg span:not(:first-child),\n            .mktoError .mktoErrorMsg div:not(:first-child) {\n                display: none !important;\n            }\n            .mktoError .mktoErrorArrowWrap,\n            .mktoError .mktoErrorArrow {\n                display: none !important;\n            }\n            .mktoForm .mktoError .mktoErrorMsg {\n                padding: 0 !important;\n            }\n            .mktoForm .mktoError .mktoErrorMsg .mktoErrorDetail {\n                display: inline-block !important;\n            }\n            .mktoError .mktoErrorMsg:before {\n                content: '';\n                display: inline-block;\n                width: 18px;\n                height: 18px;\n                margin-right: 4px;\n                margin-bottom: -4px;\n                background-image: url('data:image/svg+xml;utf8,<svg width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M8.00003 7.92057C8.36822 7.92057 8.6667 8.21905 8.6667 8.58724V11.2539C8.6667 11.6221 8.36822 11.9206 8.00003 11.9206C7.63184 11.9206 7.33336 11.6221 7.33336 11.2539V8.58724C7.33336 8.21905 7.63184 7.92057 8.00003 7.92057Z\" fill=\"%23DC2828\"/><path d=\"M8.00003 5.25391C7.63184 5.25391 7.33336 5.55238 7.33336 5.92057C7.33336 6.28876 7.63184 6.58724 8.00003 6.58724H8.0067C8.37489 6.58724 8.67336 6.28876 8.67336 5.92057C8.67336 5.55238 8.37489 5.25391 8.0067 5.25391H8.00003Z\" fill=\"%23DC2828\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0.666687 8.58724C0.666687 4.53715 3.94993 1.25391 8.00002 1.25391C12.0501 1.25391 15.3334 4.53715 15.3334 8.58724C15.3334 12.6373 12.0501 15.9206 8.00002 15.9206C3.94993 15.9206 0.666687 12.6373 0.666687 8.58724ZM8.00002 2.58724C4.68631 2.58724 2.00002 5.27353 2.00002 8.58724C2.00002 11.9009 4.68631 14.5872 8.00002 14.5872C11.3137 14.5872 14 11.9009 14 8.58724C14 5.27353 11.3137 2.58724 8.00002 2.58724Z\" fill=\"%23DC2828\"/></svg>');\n                background-size: contain;\n                background-repeat: no-repeat;\n            }\n\n            .mktoForm .mktoErrorMsg {\n                display: block !important;\n                margin-top: 0px !important;\n            }\n\n            .mktoForm .mktoField {\n                margin-bottom: 8px !important;\n            }\n            :root {\n                --focus-outline: ${focusOutlineWidth}px solid ${focusOutlineColor} !important;\n                --focus-offset: ${focusOutlineOffset}px !important;\n            }\n\n            .mktoForm input:focus,\n            .mktoForm textarea:focus,\n            .mktoForm select:focus,\n            .mktoForm .mktoField:focus,\n            .mktoForm input:focus-visible,\n            .mktoForm textarea:focus-visible,\n            .mktoForm select:focus-visible,\n            .mktoForm .mktoField:focus-visible,\n            .mktoForm .mktoField.mktoFocused {\n                outline: none !important;\n                box-shadow: none !important;\n            }\n            .mktoHtmlText.mktoHasWidth {\n                width: 100% !important;\n            }\n            .mktoFormRow._hide-row {\n                display: none !important;\n            }\n            \n            /* Checkbox styling and layout */\n            .mktoForm .mktoFormRow:has(.mktoCheckboxList) {\n                display: flex !important;\n                align-items: flex-start !important;\n                gap: 12px !important;\n                flex-wrap: nowrap !important;\n            }\n            \n            .mktoForm .mktoFormRow:has(.mktoCheckboxList) .mktoFormCol:first-child {\n                flex-shrink: 0 !important;\n                width: auto !important;\n                margin-bottom: 0 !important;\n            }\n            \n            .mktoForm .mktoFormRow:has(.mktoCheckboxList) .mktoFormCol:last-child {\n                flex: 1 !important;\n                width: auto !important;\n                margin-bottom: 0 !important;\n            }\n            \n            .mktoForm .mktoCheckboxList {\n                width: auto !important;\n                margin: 0 !important;\n            }\n            \n            .mktoForm .mktoCheckboxList input[type=\"checkbox\"] {\n                width: 18px !important;\n                height: 18px !important;\n                min-width: 18px !important;\n                min-height: 18px !important;\n                max-width: 18px !important;\n                max-height: 18px !important;\n                margin: 0 !important;\n                padding: 0 !important;\n                border: ${inputBorderWidth}px solid ${inputBorderColor} !important;\n                border-radius: 3px !important;\n                background-color: transparent !important;\n                cursor: pointer !important;\n                appearance: none !important;\n                -webkit-appearance: none !important;\n                -moz-appearance: none !important;\n                position: relative !important;\n                box-sizing: border-box !important;\n                flex-shrink: 0 !important;\n            }\n            \n            .mktoForm .mktoCheckboxList input[type=\"checkbox\"]:checked {\n                background-color: ${buttonBackgroundColor} !important;\n                border-color: ${buttonBackgroundColor} !important;\n            }\n            \n            .mktoForm .mktoCheckboxList input[type=\"checkbox\"]:checked::after {\n                content: '✓' !important;\n                position: absolute !important;\n                top: 50% !important;\n                left: 50% !important;\n                transform: translate(-50%, -50%) !important;\n                color: ${buttonTextColor} !important;\n                font-size: 12px !important;\n                font-weight: bold !important;\n            }\n            \n            .mktoForm .mktoCheckboxList input[type=\"checkbox\"]:focus {\n                outline: ${focusOutlineWidth}px solid ${focusOutlineColor} !important;\n                outline-offset: ${focusOutlineOffset}px !important;\n            }\n            \n            /* Hide the default checkbox label since we're using the HTML text */\n            .mktoForm .mktoCheckboxList label[for] {\n                display: none !important;\n            }\n            \n            /* Style the HTML text content */\n            .mktoForm .mktoFormRow:has(.mktoCheckboxList) .mktoHtmlText {\n                font-family: ${labelFont.fontFamily} !important;\n                font-size: ${typeof labelFont.fontSize===\"number\"?labelFont.fontSize+\"px\":labelFont.fontSize} !important;\n                font-weight: ${labelFont.fontWeight||400} !important;\n                color: ${labelColor} !important;\n                line-height: 1.4 !important;\n                margin: 0 !important;\n                padding: 0 !important;\n            }\n            \n            .mktoForm .mktoFormRow:has(.mktoCheckboxList) .mktoHtmlText a {\n                color: ${buttonBackgroundColor} !important;\n                text-decoration: underline !important;\n            }\n            \n            .mktoForm .mktoFormRow:has(.mktoCheckboxList) .mktoHtmlText a:hover {\n                color: ${buttonHoverColor} !important;\n            }\n            \n            /* Override Marketo's mobile padding */\n            @media only screen and (max-width: 480px) {\n                .mktoForm, .mktoForm * {\n                    padding: 0 !important;\n                }\n            }\n            \n            /* Radio button form row spacing */\n.mktoForm .mktoFormRow:has(.mktoRadioList) {\n    display: flex !important;\n    flex-direction: column !important;\n    gap: 16px !important;\n}\n\n.mktoForm .mktoFormRow:has(.mktoRadioList) .mktoFormCol:first-child {\n    width: 100% !important;\n    margin-bottom: 0 !important;\n}\n\n.mktoForm .mktoFormRow:has(.mktoRadioList) .mktoFormCol:last-child {\n    width: 100% !important;\n    margin-bottom: 0 !important;\n}\n\n/* Radio button horizontal layout styling */\n.mktoForm .mktoRadioList {\n    display: grid !important;\n    grid-template-columns: repeat(5, 1fr) !important;\n    grid-template-rows: auto auto !important;\n    gap: 8px 16px !important;\n    width: 100% !important;\n    margin: 0 !important;\n    padding: 16px 0px 0px 0px !important;\n    align-items: start !important;\n}\n\n.mktoForm .mktoRadioList input[type=\"radio\"] {\n    width: 20px !important;\n    height: 20px !important;\n    min-width: 20px !important;\n    min-height: 20px !important;\n    max-width: 20px !important;\n    max-height: 20px !important;\n    margin: 0 !important;\n    padding: 0 !important;\n    border: ${inputBorderWidth}px solid ${inputBorderColor} !important;\n    border-radius: 50% !important;\n    background-color: transparent !important;\n    cursor: pointer !important;\n    appearance: none !important;\n    -webkit-appearance: none !important;\n    -moz-appearance: none !important;\n    position: relative !important;\n    box-sizing: border-box !important;\n    display: block !important;\n    justify-self: center !important;\n    grid-row: 1 !important;\n}\n\n.mktoForm .mktoRadioList input[type=\"radio\"]:nth-of-type(1) { grid-column: 1 !important; }\n.mktoForm .mktoRadioList input[type=\"radio\"]:nth-of-type(2) { grid-column: 2 !important; }\n.mktoForm .mktoRadioList input[type=\"radio\"]:nth-of-type(3) { grid-column: 3 !important; }\n.mktoForm .mktoRadioList input[type=\"radio\"]:nth-of-type(4) { grid-column: 4 !important; }\n.mktoForm .mktoRadioList input[type=\"radio\"]:nth-of-type(5) { grid-column: 5 !important; }\n\n.mktoForm .mktoRadioList input[type=\"radio\"]:checked {\n    background-color: ${buttonBackgroundColor} !important;\n    border-color: ${buttonBackgroundColor} !important;\n}\n\n.mktoForm .mktoRadioList input[type=\"radio\"]:checked::after {\n    content: '' !important;\n    position: absolute !important;\n    top: 50% !important;\n    left: 50% !important;\n    transform: translate(-50%, -50%) !important;\n    width: 8px !important;\n    height: 8px !important;\n    border-radius: 50% !important;\n    background-color: ${buttonTextColor} !important;\n}\n\n.mktoForm .mktoRadioList input[type=\"radio\"]:focus {\n    outline: ${focusOutlineWidth}px solid ${focusOutlineColor} !important;\n    outline-offset: ${focusOutlineOffset}px !important;\n}\n\n.mktoForm .mktoRadioList label {\n    text-align: center !important;\n    cursor: pointer !important;\n    font-family: ${labelFont.fontFamily} !important;\n    font-size: ${typeof labelFont.fontSize===\"number\"?labelFont.fontSize+\"px\":labelFont.fontSize} !important;\n    font-weight: ${labelFont.fontWeight||400} !important;\n    color: ${labelColor} !important;\n    margin: 0 !important;\n    padding: 0 !important;\n    justify-self: center !important;\n    display: block !important;\n    grid-row: 2 !important;\n}\n\n.mktoForm .mktoRadioList label:nth-of-type(1) { grid-column: 1 !important; }\n.mktoForm .mktoRadioList label:nth-of-type(2) { grid-column: 2 !important; }\n.mktoForm .mktoRadioList label:nth-of-type(3) { grid-column: 3 !important; }\n.mktoForm .mktoRadioList label:nth-of-type(4) { grid-column: 4 !important; }\n.mktoForm .mktoRadioList label:nth-of-type(5) { grid-column: 5 !important; }\n        `;document.head.appendChild(style);// Create a fresh container to hold our form\nconst container=formContainerRef.current;container.innerHTML=`<form id=\"mktoForm_${formId}\"></form>`;// Create our Marketo script element\nconst script=document.createElement(\"script\");script.id=uniqueScriptId;script.type=\"text/javascript\";script.innerHTML=`\n            if (typeof MktoForms2 !== 'undefined') {\n                try {\n                    const oldForm = MktoForms2.getForm('${formId}');\n                    if (oldForm) oldForm.destroy();\n                } catch(e) {}\n                MktoForms2.loadForm('${baseUrl}', '${munchkinId}', ${formId}, function(form) {\n                    function hideRowsWithOnlyHiddenInputs() {\n                        var rows = document.querySelectorAll('.mktoFormRow');\n                        rows.forEach(function(row) {\n                            var inputs = Array.from(row.querySelectorAll('input'));\n                            var visibleInputs = inputs.filter(function(input) { return input.type !== 'hidden'; });\n                            if (inputs.length > 0 && visibleInputs.length === 0) {\n                                row.classList.add('_hide-row');\n                            }\n                        });\n                    }\n                    form.onSubmit(function() {\n                        console.log('[MarketoForm] onSubmit called');\n                        var isValid = form.validate();\n                        console.log('[MarketoForm] form.validate() result:', isValid);\n                        var vals = form.vals();\n                        console.log('[MarketoForm] field values:', vals);\n                        if (!isValid) {\n                            console.log('[MarketoForm] Submission blocked: form is invalid');\n                            return false;\n                        }\n                        const currentPageUrl = window.location.href;\n                        form.addHiddenFields({ \"pageURL\": currentPageUrl });\n                        console.log('[MarketoForm] Submission allowed: form is valid');\n                        return true;\n                    });\n\n                    ${showSuccessMessage?`\n                    form.onSuccess(function(values, followUpUrl) {\n                        console.log('[MarketoForm] onSuccess called - showing internal success message');\n                        \n                        // Trigger React state update to show success message\n                        window.dispatchEvent(new CustomEvent('marketoFormSuccess_${instanceKey.current}'));\n                        \n                        // Return false to stay on page\n                        return false;\n                    });\n                    `:\"\"}\n                    \n                    hideRowsWithOnlyHiddenInputs();\n                    setTimeout(hideRowsWithOnlyHiddenInputs, 100);\n                });\n            } else {\n                const loadScript = function() {\n                    const s = document.createElement('script');\n                    s.src = '${baseUrl}/js/forms2/js/forms2.min.js';\n                    s.onload = function() {\n                        MktoForms2.loadForm('${baseUrl}', '${munchkinId}', ${formId}, function(form) {\n                            function hideRowsWithOnlyHiddenInputs() {\n                                var rows = document.querySelectorAll('.mktoFormRow');\n                                rows.forEach(function(row) {\n                                    var inputs = Array.from(row.querySelectorAll('input'));\n                                    var visibleInputs = inputs.filter(function(input) { return input.type !== 'hidden'; });\n                                    if (inputs.length > 0 && visibleInputs.length === 0) {\n                                        row.classList.add('_hide-row');\n                                    }\n                                });\n                            }\n                            form.onSubmit(function() {\n                                console.log('[MarketoForm] onSubmit called');\n                                var isValid = form.validate();\n                                console.log('[MarketoForm] form.validate() result:', isValid);\n                                var vals = form.vals();\n                                console.log('[MarketoForm] field values:', vals);\n                                if (!isValid) {\n                                    console.log('[MarketoForm] Submission blocked: form is invalid');\n                                    return false;\n                                }\n                                const currentPageUrl = window.location.href;\n                                form.addHiddenFields({ \"pageURL\": currentPageUrl });\n                                console.log('[MarketoForm] Submission allowed: form is valid');\n                                return true;\n                            });\n\n                            ${showSuccessMessage?`\n                            form.onSuccess(function(values, followUpUrl) {\n                                console.log('[MarketoForm] onSuccess called - showing internal success message');\n                                \n                                // Trigger React state update to show success message\n                                window.dispatchEvent(new CustomEvent('marketoFormSuccess_${instanceKey.current}'));\n                                \n                                // Return false to stay on page\n                                return false;\n                            });\n                            `:\"\"}\n                            \n                            hideRowsWithOnlyHiddenInputs();\n                            setTimeout(hideRowsWithOnlyHiddenInputs, 100);\n                        });\n                    };\n                    document.head.appendChild(s);\n                };\n                loadScript();\n            }\n        `;// Append the script to the document body to execute it\ndocument.body.appendChild(script);// Listen for success event if success message is enabled\nif(showSuccessMessage){const handleSuccess=()=>{setShowSuccess(true);// Clear the form container when showing success message\nif(formContainerRef.current){formContainerRef.current.innerHTML=\"\";}};window.addEventListener(`marketoFormSuccess_${instanceKey.current}`,handleSuccess);// Clean up event listener\nreturn()=>{window.removeEventListener(`marketoFormSuccess_${instanceKey.current}`,handleSuccess);if(document.getElementById(uniqueScriptId)){document.getElementById(uniqueScriptId)?.remove();}if(document.getElementById(`mkto-style-${instanceKey.current}`)){document.getElementById(`mkto-style-${instanceKey.current}`)?.remove();}// Try to destroy the form through Marketo's API if it exists\nif(window.MktoForms2){try{const form=window.MktoForms2.getForm(formId);if(form)form.destroy();}catch(e){// Ignore errors during cleanup\n}}// Only reset the global flag if this instance set it\nif(isFramerDesigner&&didSetGlobalFlag.current){window.__marketoFormInitialized=false;}};}// Clean up on unmount\nreturn()=>{if(document.getElementById(uniqueScriptId)){document.getElementById(uniqueScriptId)?.remove();}if(document.getElementById(`mkto-style-${instanceKey.current}`)){document.getElementById(`mkto-style-${instanceKey.current}`)?.remove();}// Try to destroy the form through Marketo's API if it exists\nif(window.MktoForms2){try{const form=window.MktoForms2.getForm(formId);if(form)form.destroy();}catch(e){// Ignore errors during cleanup\n}}// Only reset the global flag if this instance set it\nif(isFramerDesigner&&didSetGlobalFlag.current){window.__marketoFormInitialized=false;}};},[isInitialized,formId,munchkinId,baseUrl,formGap,JSON.stringify(labelFont),labelColor,JSON.stringify(inputFont),inputColor,inputBorderColor,inputBorderWidth,inputPadding,JSON.stringify(buttonFont),buttonBackgroundColor,buttonHoverColor,buttonTextColor,buttonPadding,buttonBorderRadius,buttonWidth,errorFont,errorFontColor,errorColor,errorFontSize,focusOutlineColor,focusOutlineWidth,focusOutlineOffset,showSuccessMessage]);const handleCTAClick=()=>{if(successCTALink&&successCTALink!==\"#\"){window.open(successCTALink,\"_blank\");}};return /*#__PURE__*/_jsx(\"div\",{style:{width:width,backgroundColor:backgroundColor,padding:padding,borderRadius:`${borderRadius}px`,minHeight:typeof height===\"number\"?`${height}px`:height,overflow:\"visible\"},children:showSuccessMessage&&showSuccess?/*#__PURE__*/_jsxs(\"div\",{style:{backgroundColor:successMessageBackgroundColor,borderRadius:`${successMessageBorderRadius}px`,padding:successMessagePadding,textAlign:\"center\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:showSuccessCTA?\"20px\":\"0\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:successMessageFont.fontFamily,fontSize:typeof successMessageFont.fontSize===\"number\"?`${successMessageFont.fontSize}px`:successMessageFont.fontSize,fontWeight:successMessageFont.fontWeight||400,lineHeight:typeof successMessageFont.lineHeight===\"number\"?`${successMessageFont.lineHeight}px`:successMessageFont.lineHeight||\"1.4\",color:successMessageTextColor},children:successMessageText}),showSuccessCTA&&/*#__PURE__*/_jsx(\"button\",{onClick:handleCTAClick,style:{backgroundColor:successCTABackgroundColor,color:successCTATextColor,borderRadius:`${successCTABorderRadius}px`,padding:successCTAPadding,border:\"none\",cursor:\"pointer\",fontFamily:successCTAFont.fontFamily,fontSize:typeof successCTAFont.fontSize===\"number\"?`${successCTAFont.fontSize}px`:successCTAFont.fontSize,fontWeight:successCTAFont.fontWeight||600,lineHeight:typeof successCTAFont.lineHeight===\"number\"?`${successCTAFont.lineHeight}px`:successCTAFont.lineHeight||\"1.4\",transition:\"opacity 0.2s ease\"},onMouseEnter:e=>{e.currentTarget.style.opacity=\"0.8\";},onMouseLeave:e=>{e.currentTarget.style.opacity=\"1\";},children:successCTAText})]}):/*#__PURE__*/_jsx(\"div\",{ref:formContainerRef,style:{width:\"100%\"}})});}// Add property controls for Framer with categorized sections\naddPropertyControls(MarketoForm,{// Form configuration section\nformId:{type:ControlType.String,title:\"Form ID\",defaultValue:\"1001\",section:\"Form Configuration\"},munchkinId:{type:ControlType.String,title:\"Munchkin ID\",defaultValue:\"931-YSS-357\",section:\"Form Configuration\"},baseUrl:{type:ControlType.String,title:\"Marketo Base URL\",defaultValue:\"//live.smithrx.com\",section:\"Form Configuration\"},// Container styling section\nbackgroundColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"#FFFFFF\",section:\"Container\"},width:{type:ControlType.String,title:\"Width\",defaultValue:\"100%\",section:\"Container\"},height:{type:ControlType.String,title:\"Height\",defaultValue:\"auto\",section:\"Container\"},padding:{type:ControlType.String,title:\"Padding\",defaultValue:\"20px\",section:\"Container\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:4,min:0,max:50,step:1,section:\"Container\"},// Form layout section\nformGap:{type:ControlType.Number,title:\"Form Gap\",defaultValue:28,min:0,max:100,step:1,section:\"Form Layout\"},// Label styling section\nlabelFont:{type:ControlType.Font,controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontFamily:\"Aeonik Pro Medium, Aeonik Pro Medium Placeholder, sans-serif\",fontSize:16,fontWeight:400},section:\"Labels\"},labelColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"#2b2927\",section:\"Labels\"},// Input styling section\ninputFont:{type:ControlType.Font,controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontFamily:\"Aeonik Pro Medium, Aeonik Pro Medium Placeholder, sans-serif\",fontSize:20,fontWeight:400},section:\"Inputs\"},inputColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#2b2927\",section:\"Inputs\"},inputBorderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#2b2927\",section:\"Inputs\"},inputBorderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:1.5,min:0,max:10,step:.5,section:\"Inputs\"},inputPadding:{type:ControlType.String,title:\"Padding\",defaultValue:\"16px 16px 16px 0px\",section:\"Inputs\"},// Button styling section\nbuttonFont:{type:ControlType.Font,controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontFamily:\"Aeonik Pro Medium, Aeonik Pro Medium Placeholder, sans-serif\",fontSize:20,fontWeight:700},section:\"Button\"},buttonBackgroundColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"#2b2927\",section:\"Button\"},buttonHoverColor:{type:ControlType.Color,title:\"Hover Color\",defaultValue:\"#242220\",section:\"Button\"},buttonTextColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\",section:\"Button\"},buttonPadding:{type:ControlType.String,title:\"Padding\",defaultValue:\"20px\",section:\"Button\"},buttonBorderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:1e3,min:0,max:1e3,step:1,section:\"Button\"},buttonWidth:{type:ControlType.String,title:\"Width\",defaultValue:\"100%\",section:\"Button\"},// Error styling section\nerrorFont:{type:ControlType.Font,controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontFamily:\"inherit\",fontSize:16},section:\"Validation\"},errorFontColor:{type:ControlType.Color,title:\"Font Color\",defaultValue:\"#DC2828\",section:\"Validation\"},errorColor:{type:ControlType.Color,title:\"Error Color\",defaultValue:\"#FF3B30\",section:\"Validation\"},errorFontSize:{type:ControlType.Number,title:\"Error Font Size\",defaultValue:14,min:8,max:24,step:1,section:\"Validation\"},// Focus styling section\nfocusOutlineColor:{type:ControlType.Color,title:\"Outline Color\",defaultValue:\"#F65E00\",section:\"Focus States\"},focusOutlineWidth:{type:ControlType.Number,title:\"Outline Width\",defaultValue:2,min:0,max:10,step:1,section:\"Focus States\"},focusOutlineOffset:{type:ControlType.Number,title:\"Outline Offset\",defaultValue:2,min:0,max:10,step:1,section:\"Focus States\"},// Success Message section\nshowSuccessMessage:{type:ControlType.Boolean,title:\"Enable Success Message\",defaultValue:false,section:\"Success Message\"},successMessageText:{type:ControlType.String,title:\"Success Message Text\",defaultValue:\"Thank you! Your submission has been received.\",section:\"Success Message\",hidden:props=>!props.showSuccessMessage},successMessageFont:{type:ControlType.Font,controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontFamily:\"Aeonik Pro Medium, Aeonik Pro Medium Placeholder, sans-serif\",fontSize:18,fontWeight:400},section:\"Success Message\",hidden:props=>!props.showSuccessMessage},successMessageTextColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#2b2927\",section:\"Success Message\",hidden:props=>!props.showSuccessMessage},successMessageBackgroundColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"#F0F9FF\",section:\"Success Message\",hidden:props=>!props.showSuccessMessage},successMessageBorderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:8,min:0,max:50,step:1,section:\"Success Message\",hidden:props=>!props.showSuccessMessage},successMessagePadding:{type:ControlType.String,title:\"Padding\",defaultValue:\"24px\",section:\"Success Message\",hidden:props=>!props.showSuccessMessage},// Success CTA section\nshowSuccessCTA:{type:ControlType.Boolean,title:\"Enable CTA Button\",defaultValue:false,section:\"Success CTA\",hidden:props=>!props.showSuccessMessage},successCTAText:{type:ControlType.String,title:\"Button Text\",defaultValue:\"Continue\",section:\"Success CTA\",hidden:props=>!props.showSuccessMessage||!props.showSuccessCTA},successCTALink:{type:ControlType.String,title:\"Button Link\",defaultValue:\"#\",section:\"Success CTA\",hidden:props=>!props.showSuccessMessage||!props.showSuccessCTA},successCTAFont:{type:ControlType.Font,controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontFamily:\"Aeonik Pro Medium, Aeonik Pro Medium Placeholder, sans-serif\",fontSize:16,fontWeight:600},section:\"Success CTA\",hidden:props=>!props.showSuccessMessage||!props.showSuccessCTA},successCTABackgroundColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"#2b2927\",section:\"Success CTA\",hidden:props=>!props.showSuccessMessage||!props.showSuccessCTA},successCTATextColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\",section:\"Success CTA\",hidden:props=>!props.showSuccessMessage||!props.showSuccessCTA},successCTABorderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:1e3,min:0,max:1e3,step:1,section:\"Success CTA\",hidden:props=>!props.showSuccessMessage||!props.showSuccessCTA},successCTAPadding:{type:ControlType.String,title:\"Padding\",defaultValue:\"12px 24px\",section:\"Success CTA\",hidden:props=>!props.showSuccessMessage||!props.showSuccessCTA},// Preview toggle (Framer only)\nshowPreviewForm:{type:ControlType.Boolean,title:\"Preview form\",defaultValue:false,description:\"Show the real Marketo form in Framer preview\",section:\"Preview\",hidden:props=>typeof window===\"undefined\"||!window.location.href.includes(\"framer.com/projects/\")&&!window.location.href.includes(\"framer.cloud/\")}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MarketoForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MarketoForm.map"],"mappings":"iUAA0J,SAAwB,EAAY,CAC9L,SAAO,OAAO,aAAW,cAAc,UAAQ,qBAC/C,kBAAgB,UAAU,QAAM,OAAO,SAAO,OAAO,UAAQ,OAAO,eAAa,EACjF,UAAQ,GACR,YAAU,CAAC,WAAW,+DAA+D,SAAS,GAAG,WAAW,IAAI,CAAC,aAAW,UAC5H,YAAU,CAAC,WAAW,+DAA+D,SAAS,GAAG,WAAW,IAAI,CAAC,aAAW,UAAU,mBAAiB,UAAU,mBAAiB,IAAI,eAAa,qBACnM,aAAW,CAAC,WAAW,+DAA+D,SAAS,GAAG,WAAW,IAAI,CAAC,wBAAsB,UAAU,mBAAiB,UAAU,kBAAgB,UAAU,gBAAc,sBAAsB,qBAAmB,IAAI,cAAY,OAC9Q,YAAU,CAAC,WAAW,UAAU,SAAS,GAAG,CAAC,iBAAe,UAAU,aAAW,UAAU,gBAAc,GACzG,oBAAkB,UAAU,oB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