{"version":3,"file":"ApplicationForm.CnMsJ2Uw.mjs","names":["useState","useMemo","useCallback"],"sources":["https:/framerusercontent.com/modules/arodJFz6oUHQOaJjWMch/mpLUECswQ1cAzqHU12O3/ApplicationForm.js"],"sourcesContent":["// Application Form component for Framer with single/multi-step modes, URL/storage prefill, and integrations\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useEffect,useMemo,useCallback,useRef,startTransition}from\"react\";const STORAGE_KEY=\"lead_form_data\";const UTM_STORAGE_KEY=\"form_utms\";// Helper functions for PhoneBR input\nfunction formatPhoneBR(digits){if(!digits)return\"\";// Format: (XX) XXXXX-XXXX or (XX) XXXX-XXXX\nif(digits.length<=2){return`(${digits}`;}else if(digits.length<=6){return`(${digits.slice(0,2)}) ${digits.slice(2)}`;}else if(digits.length<=10){return`(${digits.slice(0,2)}) ${digits.slice(2,6)}-${digits.slice(6)}`;}else{return`(${digits.slice(0,2)}) ${digits.slice(2,7)}-${digits.slice(7,11)}`;}}function safeSetCaret(input,position){if(!input)return;requestAnimationFrame(()=>{try{input.setSelectionRange(position,position);}catch(e){// Ignore errors\n}});}function mapDisplayPositionToDigitIndex(displayValue,cursorPos){// Map cursor position in display string to digit index\n// Display format: \"+55 (XX) XXXXX-XXXX\"\n// We need to count only digits before cursor position\nconst beforeCursor=displayValue.slice(0,cursorPos);const digitsBeforeCursor=beforeCursor.replace(/\\D/g,\"\");// Remove leading \"55\" from count (country code)\nlet digitCount=digitsBeforeCursor.length;if(digitsBeforeCursor.startsWith(\"55\")){digitCount=Math.max(0,digitCount-2);}return digitCount;}function mapDigitIndexToDisplayPosition(digits,digitIndex){// Map digit index to cursor position in display string\n// Format: \"+55 (XX) XXXXX-XXXX\"\nconst formatted=formatPhoneBR(digits);const fullDisplay=\"+55 \"+formatted;// Count characters until we've seen digitIndex digits\nlet digitsFound=0;let position=4// Start after \"+55 \"\n;for(let i=0;i<formatted.length;i++){if(/\\d/.test(formatted[i])){if(digitsFound>=digitIndex){return position;}digitsFound++;}position++;}return position;}/**\n * Application Form\n *\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 600\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ApplicationForm(props){const{fields=[],mode=\"Single\",submitButtonText=\"Enviar\",enableUrlPrefill=false,urlPrefillFields=[],enableStoragePrefill=false,enableWebhook=false,webhookUrl=\"\",enableGoogleSheets=false,sheetsWebhookUrl=\"\",redirectMode=\"External URL\",redirectUrl=\"\",redirectRoute=\"\",passValuesInRedirect=false,passValuesWhitelist=[],passUtmInRedirect=false,backgroundColor=\"#1a1a1a\",textColor=\"#ffffff\",inputBackground=\"#2a2a2a\",inputBorder=\"#3a3a3a\",buttonBackground=\"#0099FF\",buttonText=\"#ffffff\",errorColor=\"#FF5588\",labelFont,inputFont,buttonFont,labelToFieldGap=8,fieldsGap=16}=props;const[formValues,setFormValues]=useState({});const[errors,setErrors]=useState({});const[formError,setFormError]=useState(\"\");const[currentStepIndex,setCurrentStepIndex]=useState(0);const[isSubmitting,setIsSubmitting]=useState(false);const[utmParams,setUtmParams]=useState({utm_source:null,utm_medium:null,utm_campaign:null,utm_content:null,utm_term:null});// Group fields by stepGroup for multi-step mode with comprehensive safeguards\nconst steps=useMemo(()=>{// 1) Treat fields as safe array\nconst safeFields=Array.isArray(fields)?fields:[];// Ensure each field has a stable id\nconst fieldsWithIds=safeFields.map((field,index)=>({...field,id:field.id||`field_${index}`}));// 2) Filter enabled fields safely (enabled defaults to true)\nconst enabledFields=fieldsWithIds.filter(field=>{const isEnabled=field.enabled!==false;return isEnabled;});if(mode===\"Single\"){return[{group:null,fields:enabledFields}];}// 3) Build steps safely using Map (no overwrites)\nconst groupedMap=new Map;const ungroupedFields=[];enabledFields.forEach(field=>{const g=field.stepGroup;const hasGroup=g!==null&&g!==undefined&&String(g).trim()!==\"\";if(hasGroup){const groupNum=Number(g);// Only treat as grouped if it's a finite number\nif(Number.isFinite(groupNum)){// Get existing array or create new one\nconst existing=groupedMap.get(groupNum)||[];existing.push(field);groupedMap.set(groupNum,existing);}else{// Invalid stepGroup, treat as ungrouped\nungroupedFields.push(field);}}else{// No stepGroup, treat as ungrouped\nungroupedFields.push(field);}});// 4) Sort steps numerically and create final steps array with group info\nconst groupedKeys=Array.from(groupedMap.keys()).sort((a,b)=>a-b);const result=[];// Add grouped steps in numeric order\ngroupedKeys.forEach(key=>{const fieldsInGroup=groupedMap.get(key)??[];if(fieldsInGroup.length>0){result.push({group:key,fields:fieldsInGroup});}});// Add ungrouped fields as individual steps\nungroupedFields.forEach(field=>{result.push({group:null,fields:[field]});});// Remove any empty steps\nconst nonEmptySteps=result.filter(step=>Array.isArray(step.fields)&&step.fields.length>0);return nonEmptySteps.length>0?nonEmptySteps:[];},[fields,mode]);// 5) Clamp step index (prevents out-of-range crash)\nconst totalSteps=steps.length;const safeStepIndex=useMemo(()=>{if(totalSteps===0)return 0;return Math.max(0,Math.min(currentStepIndex,totalSteps-1));},[currentStepIndex,totalSteps]);// Auto-clamp when steps length changes\nuseEffect(()=>{if(totalSteps>0&&currentStepIndex>=totalSteps){startTransition(()=>setCurrentStepIndex(totalSteps-1));}},[totalSteps,currentStepIndex]);// 6) Rendering safety\nconst currentStep=steps[safeStepIndex];const currentStepFields=currentStep?.fields||[];const currentGroup=currentStep?.group??null;const isLastStep=safeStepIndex===totalSteps-1;// Capture UTM parameters on mount\nuseEffect(()=>{if(typeof window===\"undefined\")return;// Try to load UTMs from sessionStorage first\nlet capturedUtms=null;try{const storedUtms=sessionStorage.getItem(UTM_STORAGE_KEY);if(storedUtms){capturedUtms=JSON.parse(storedUtms);}}catch(e){// Ignore storage errors\n}// If no stored UTMs, capture from URL\nif(!capturedUtms){const params=new URLSearchParams(window.location.search);capturedUtms={utm_source:params.get(\"utm_source\")||null,utm_medium:params.get(\"utm_medium\")||null,utm_campaign:params.get(\"utm_campaign\")||null,utm_content:params.get(\"utm_content\")||null,utm_term:params.get(\"utm_term\")||null};// Persist to sessionStorage\ntry{sessionStorage.setItem(UTM_STORAGE_KEY,JSON.stringify(capturedUtms));}catch(e){// Ignore storage errors\n}}startTransition(()=>setUtmParams(capturedUtms));},[]);// Initialize form values with prefill\nuseEffect(()=>{if(typeof window===\"undefined\")return;const initialValues={};// Only process enabled fields\nconst enabledFields=fields.filter(field=>{const isEnabled=field.enabled!==false;return isEnabled;});// Step 1: Storage prefill (base defaults)\nif(enableStoragePrefill){try{const stored=sessionStorage.getItem(STORAGE_KEY);if(stored){const parsed=JSON.parse(stored);// Only apply to enabled fields\nenabledFields.forEach(field=>{if(parsed[field.id]!==undefined){initialValues[field.id]=parsed[field.id];}});}}catch(e){console.warn(\"Failed to parse storage prefill\",e);}}else{// Clear storage if prefill is disabled\ntry{sessionStorage.removeItem(STORAGE_KEY);}catch(e){// Ignore\n}}// Step 2: URL prefill (overrides storage for selected fields)\nif(enableUrlPrefill){const params=new URLSearchParams(window.location.search);// Alias mapping (removed phone aliases)\nconst aliases={name:[\"name\",\"nome\"],email:[\"email\"],revenue:[\"revenue\",\"receita\"]};enabledFields.forEach(field=>{// Only prefill if field is in whitelist (or whitelist is empty = all)\nif(urlPrefillFields.length>0&&!urlPrefillFields.includes(field.id)){return;}// Check direct param match\nlet value=params.get(field.id);// Check aliases\nif(!value){const fieldAliases=aliases[field.id]||[];for(const alias of fieldAliases){value=params.get(alias);if(value)break;}}if(value){initialValues[field.id]=value;}});}startTransition(()=>setFormValues(initialValues));},[fields,enableUrlPrefill,urlPrefillFields,enableStoragePrefill]);// Persist to storage on value change\nuseEffect(()=>{if(typeof window===\"undefined\")return;if(!enableStoragePrefill)return;try{sessionStorage.setItem(STORAGE_KEY,JSON.stringify(formValues));}catch(e){console.warn(\"Failed to persist to storage\",e);}},[formValues,enableStoragePrefill]);const validateField=useCallback((field,value)=>{if(field.required&&(!value||Array.isArray(value)&&value.length===0)){if(field.type===\"SelectSingle\")return\"Selecione uma op\\xe7\\xe3o.\";if(field.type===\"SelectMulti\")return\"Selecione pelo menos uma op\\xe7\\xe3o.\";return\"Este campo \\xe9 obrigat\\xf3rio.\";}// Validate \"Outros\" text input for SelectMulti\nif(field.type===\"SelectMulti\"&&field.enableOtherOption){const otherLabel=field.otherOptionLabel||\"Outros\";const isOtherSelected=Array.isArray(value)&&value.includes(otherLabel);const otherText=formValues[field.id+\"_other\"]||\"\";if(isOtherSelected&&field.otherRequiredWhenSelected&&!otherText.trim()){return\"Digite o que voc\\xea quis dizer em 'Outros'.\";}}if(value&&field.type===\"Email\"){const emailRegex=/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;if(!emailRegex.test(value)){return\"Digite um e-mail v\\xe1lido.\";}}if(value&&field.type===\"PhoneBR\"){// Extract digits only\nconst digits=value.replace(/\\D/g,\"\");// Valid if 10 or 11 digits\nif(digits.length!==10&&digits.length!==11){return\"Digite um WhatsApp v\\xe1lido com DDD.\";}}if(value&&field.type===\"Phone\"){// Normalize: extract digits and leading + if present\nconst normalized=value.replace(/[^\\d+]/g,\"\");const hasPlus=normalized.startsWith(\"+\");const digits=normalized.replace(/\\D/g,\"\");// Validate digit count\nconst minDigits=field.minDigits??7;const maxDigits=field.maxDigits??15;if(digits.length<minDigits||digits.length>maxDigits){return\"Digite um n\\xfamero de telefone v\\xe1lido.\";}// Validate plus sign position (only at start if allowPlus)\nconst allowPlus=field.allowPlus??true;if(!allowPlus&&hasPlus){return\"Digite um n\\xfamero de telefone v\\xe1lido.\";}}if(value&&field.type===\"Number\"){const num=Number(value);if(isNaN(num)){return\"Digite um n\\xfamero v\\xe1lido.\";}if(field.min!==undefined&&num<field.min){return`Valor m\\xednimo: ${field.min}`;}if(field.max!==undefined&&num>field.max){return`Valor m\\xe1ximo: ${field.max}`;}}return\"\";},[formValues]);const validateStep=useCallback(stepFields=>{const newErrors={};let isValid=true;stepFields.forEach(field=>{const error=validateField(field,formValues[field.id]);if(error){newErrors[field.id]=error;isValid=false;}});startTransition(()=>setErrors(newErrors));return isValid;},[formValues,validateField]);const handleFieldChange=useCallback((fieldId,value,fieldType)=>{startTransition(()=>{setFormValues(prev=>({...prev,[fieldId]:value}));setErrors(prev=>{const newErrors={...prev};delete newErrors[fieldId];return newErrors;});});},[]);const handleOtherTextChange=useCallback((fieldId,otherText)=>{startTransition(()=>{setFormValues(prev=>({...prev,[fieldId+\"_other\"]:otherText}));setErrors(prev=>{const newErrors={...prev};delete newErrors[fieldId];return newErrors;});});},[]);// 7) Navigation safety\nconst handleNext=useCallback(()=>{if(validateStep(currentStepFields)){if(safeStepIndex<totalSteps-1){startTransition(()=>{setCurrentStepIndex(prev=>Math.min(prev+1,totalSteps-1));setFormError(\"\");});}}},[currentStepFields,validateStep,totalSteps,safeStepIndex]);const handleBack=useCallback(()=>{if(safeStepIndex>0){startTransition(()=>{setCurrentStepIndex(prev=>Math.max(prev-1,0));setFormError(\"\");});}},[safeStepIndex]);const handleSubmit=useCallback(async()=>{if(typeof window===\"undefined\")return;// Only validate enabled fields\nconst enabledFields=fields.filter(field=>{const isEnabled=field.enabled!==false;return isEnabled;});// Validate all enabled fields\nconst allErrors={};let isValid=true;enabledFields.forEach(field=>{const error=validateField(field,formValues[field.id]);if(error){allErrors[field.id]=error;isValid=false;}});if(!isValid){startTransition(()=>{setErrors(allErrors);setFormError(\"Verifique os campos e tente novamente.\");});return;}// Build filtered values with only enabled fields\nconst enabledFieldIds=new Set(enabledFields.map(f=>f.id));const filteredValues={};Object.keys(formValues).forEach(key=>{// Include main field values and \"_other\" suffixed values\nconst isOtherKey=key.endsWith(\"_other\");const baseFieldId=isOtherKey?key.slice(0,-6):key;if(enabledFieldIds.has(baseFieldId)||isOtherKey&&enabledFieldIds.has(baseFieldId)){const field=enabledFields.find(f=>f.id===baseFieldId);let value=formValues[key];// Normalize Phone field values for submission\nif(field&&field.type===\"Phone\"&&value&&!isOtherKey){const allowPlus=field.allowPlus??true;const normalized=value.replace(/[^\\d+]/g,\"\");const hasPlus=normalized.startsWith(\"+\");const digits=normalized.replace(/\\D/g,\"\");// Keep leading + if allowed and present, otherwise just digits\nvalue=allowPlus&&hasPlus?\"+\"+digits:digits;}filteredValues[key]=value;}});startTransition(()=>{setIsSubmitting(true);setFormError(\"\");});// Build payload with UTM parameters\nconst payload={values:filteredValues,utm:{utm_source:utmParams.utm_source,utm_medium:utmParams.utm_medium,utm_campaign:utmParams.utm_campaign,utm_content:utmParams.utm_content,utm_term:utmParams.utm_term},meta:{timestampISO:new Date().toISOString(),pageUrl:window.location.href,referrer:document.referrer,userAgent:navigator.userAgent}};let hasError=false;// Send to webhook with timeout\nif(enableWebhook&&webhookUrl){try{const controller=new AbortController;const timeoutId=setTimeout(()=>controller.abort(),1e4);const response=await fetch(webhookUrl,{method:\"POST\",headers:{\"Content-Type\":\"application/json\",Accept:\"application/json\"},body:JSON.stringify(payload),signal:controller.signal});clearTimeout(timeoutId);if(!response.ok){throw new Error(`HTTP ${response.status}`);}}catch(e){hasError=true;const errorMsg=e.name===\"AbortError\"?\"Tempo esgotado ao enviar. Tente novamente.\":\"N\\xe3o foi poss\\xedvel enviar seus dados agora. Tente novamente.\";startTransition(()=>{setFormError(errorMsg);});}}// Send to Google Sheets with timeout\nif(!hasError&&enableGoogleSheets&&sheetsWebhookUrl){try{const controller=new AbortController;const timeoutId=setTimeout(()=>controller.abort(),1e4);const response=await fetch(sheetsWebhookUrl,{method:\"POST\",headers:{\"Content-Type\":\"application/json\",Accept:\"application/json\"},body:JSON.stringify(payload),signal:controller.signal});clearTimeout(timeoutId);if(!response.ok){throw new Error(`HTTP ${response.status}`);}}catch(e){hasError=true;const errorMsg=e.name===\"AbortError\"?\"Tempo esgotado ao enviar. Tente novamente.\":\"N\\xe3o foi poss\\xedvel salvar seus dados agora. Tente novamente.\";startTransition(()=>{setFormError(errorMsg);});}}startTransition(()=>setIsSubmitting(false));if(hasError)return;// Persist to storage on success (only enabled fields)\nif(enableStoragePrefill){try{sessionStorage.setItem(STORAGE_KEY,JSON.stringify(filteredValues));}catch(e){// Ignore\n}}// Redirect\nlet targetUrl=redirectMode===\"External URL\"?redirectUrl:redirectRoute;if(passValuesInRedirect&&targetUrl){const params=new URLSearchParams;passValuesWhitelist.forEach(fieldId=>{// Only pass enabled fields\nif(enabledFieldIds.has(fieldId)){const value=filteredValues[fieldId];if(value!==undefined&&value!==null&&value!==\"\"){params.set(fieldId,String(value));}}});// Append UTM parameters if passUtmInRedirect is enabled\nif(passUtmInRedirect){if(utmParams.utm_source)params.set(\"utm_source\",utmParams.utm_source);if(utmParams.utm_medium)params.set(\"utm_medium\",utmParams.utm_medium);if(utmParams.utm_campaign)params.set(\"utm_campaign\",utmParams.utm_campaign);if(utmParams.utm_content)params.set(\"utm_content\",utmParams.utm_content);if(utmParams.utm_term)params.set(\"utm_term\",utmParams.utm_term);}const queryString=params.toString();if(queryString){targetUrl+=(targetUrl.includes(\"?\")?\"&\":\"?\")+queryString;}}if(targetUrl){window.location.href=targetUrl;}},[fields,formValues,validateField,enableWebhook,webhookUrl,enableGoogleSheets,sheetsWebhookUrl,redirectMode,redirectUrl,redirectRoute,passValuesInRedirect,passValuesWhitelist,passUtmInRedirect,enableStoragePrefill,utmParams]);// Render field function\nconst renderField=useCallback(field=>{const value=formValues[field.id]||\"\";const error=errors[field.id];const inputStyle={width:\"100%\",padding:\"12px 16px\",backgroundColor:inputBackground,border:`1px solid ${error?errorColor:inputBorder}`,borderRadius:8,color:textColor,outline:\"none\",...inputFont};const labelStyle={display:\"block\",marginBottom:labelToFieldGap,color:textColor,...labelFont};return /*#__PURE__*/_jsxs(\"div\",{style:{marginBottom:fieldsGap},children:[/*#__PURE__*/_jsxs(\"label\",{htmlFor:field.id,style:labelStyle,children:[field.label,field.required&&/*#__PURE__*/_jsx(\"span\",{style:{color:errorColor},children:\" *\"})]}),field.type===\"Text\"&&/*#__PURE__*/_jsx(\"input\",{id:field.id,type:\"text\",placeholder:field.placeholder,value:value,onChange:e=>handleFieldChange(field.id,e.target.value,field.type),style:inputStyle,\"aria-invalid\":!!error,\"aria-describedby\":error?`${field.id}-error`:undefined}),field.type===\"Email\"&&/*#__PURE__*/_jsx(\"input\",{id:field.id,type:\"email\",placeholder:field.placeholder,value:value,onChange:e=>handleFieldChange(field.id,e.target.value,field.type),style:inputStyle,\"aria-invalid\":!!error,\"aria-describedby\":error?`${field.id}-error`:undefined}),field.type===\"PhoneBR\"&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:8,alignItems:\"stretch\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{padding:\"12px 16px\",backgroundColor:inputBackground,border:`1px solid ${inputBorder}`,borderRadius:8,color:textColor,display:\"flex\",alignItems:\"center\",...inputFont,opacity:.7,userSelect:\"none\"},children:\"+55\"}),/*#__PURE__*/_jsx(\"input\",{id:field.id,type:\"tel\",placeholder:field.placeholder||\"(00) 00000-0000\",value:value,onChange:e=>{// Strip non-digits\nlet digits=e.target.value.replace(/\\D/g,\"\");// Remove leading 55 if user pasted it\nif(digits.startsWith(\"55\")&&digits.length>2){digits=digits.slice(2);}// Cap to 11 digits\ndigits=digits.slice(0,11);handleFieldChange(field.id,digits,field.type);},style:{...inputStyle,flex:1},\"aria-invalid\":!!error,\"aria-describedby\":error?`${field.id}-error`:undefined})]}),field.type===\"Phone\"&&/*#__PURE__*/_jsx(\"input\",{id:field.id,type:\"tel\",placeholder:field.placeholder,value:value,onChange:e=>{const input=e.target.value;const allowPlus=field.allowPlus??true;// Allow digits, spaces, hyphens, parentheses, and optionally leading +\nlet filtered=input.replace(/[^\\d\\s\\-()]/g,\"\");if(allowPlus&&input.startsWith(\"+\")){// Keep leading + if allowed\nfiltered=\"+\"+filtered;}handleFieldChange(field.id,filtered,field.type);},style:inputStyle,\"aria-invalid\":!!error,\"aria-describedby\":error?`${field.id}-error`:undefined}),field.type===\"Number\"&&/*#__PURE__*/_jsx(\"input\",{id:field.id,type:\"number\",placeholder:field.placeholder,value:value,onChange:e=>handleFieldChange(field.id,e.target.value,field.type),min:field.min,max:field.max,style:inputStyle,\"aria-invalid\":!!error,\"aria-describedby\":error?`${field.id}-error`:undefined}),field.type===\"Textarea\"&&/*#__PURE__*/_jsx(\"textarea\",{id:field.id,placeholder:field.placeholder,value:value,onChange:e=>handleFieldChange(field.id,e.target.value,field.type),style:{...inputStyle,minHeight:100,resize:\"vertical\",fontFamily:\"inherit\"},\"aria-invalid\":!!error,\"aria-describedby\":error?`${field.id}-error`:undefined}),field.type===\"SelectSingle\"&&/*#__PURE__*/_jsxs(\"select\",{id:field.id,value:value,onChange:e=>handleFieldChange(field.id,e.target.value,field.type),style:inputStyle,\"aria-invalid\":!!error,\"aria-describedby\":error?`${field.id}-error`:undefined,children:[/*#__PURE__*/_jsx(\"option\",{value:\"\",children:field.placeholder||\"Selecione...\"}),(field.options||[]).map(option=>/*#__PURE__*/_jsx(\"option\",{value:option,children:option},option))]}),field.type===\"SelectMulti\"&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:field.optionGap||0},children:[(field.options||[]).map(option=>{const isChecked=Array.isArray(value)&&value.includes(option);const checkboxId=`${field.id}-${option}`;return /*#__PURE__*/_jsxs(\"label\",{htmlFor:checkboxId,style:{display:\"flex\",alignItems:\"center\",gap:8,cursor:\"pointer\",fontSize:field.optionFontSize||18,color:textColor},children:[/*#__PURE__*/_jsx(\"input\",{id:checkboxId,type:\"checkbox\",checked:isChecked,onChange:e=>{let newValue;if(e.target.checked){if(field.allowSingleOnly){newValue=[option];}else{newValue=Array.isArray(value)?[...value,option]:[option];}}else{newValue=Array.isArray(value)?value.filter(v=>v!==option):[];// Clear \"Outros\" text if clearOtherOnUnselect is true (default)\nconst shouldClear=field.clearOtherOnUnselect!==false;if(shouldClear){handleOtherTextChange(field.id,\"\");}}handleFieldChange(field.id,newValue,field.type);},style:{width:field.checkboxSize||20,height:field.checkboxSize||20,cursor:\"pointer\",accentColor:buttonBackground}}),/*#__PURE__*/_jsx(\"span\",{children:option})]},option);}),field.enableOtherOption&&(()=>{const otherLabel=field.otherOptionLabel||\"Outros\";const isOtherChecked=Array.isArray(value)&&value.includes(otherLabel);const otherCheckboxId=`${field.id}-other`;const otherText=formValues[field.id+\"_other\"]||\"\";return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:8},children:[/*#__PURE__*/_jsxs(\"label\",{htmlFor:otherCheckboxId,style:{display:\"flex\",alignItems:\"center\",gap:8,cursor:\"pointer\",fontSize:field.optionFontSize||18,color:textColor},children:[/*#__PURE__*/_jsx(\"input\",{id:otherCheckboxId,type:\"checkbox\",checked:isOtherChecked,onChange:e=>{let newValue;if(e.target.checked){if(field.allowSingleOnly){newValue=[otherLabel];}else{newValue=Array.isArray(value)?[...value,otherLabel]:[otherLabel];}}else{newValue=Array.isArray(value)?value.filter(v=>v!==otherLabel):[];// Clear \"Outros\" text if clearOtherOnUnselect is true (default)\nconst shouldClear=field.clearOtherOnUnselect!==false;if(shouldClear){handleOtherTextChange(field.id,\"\");}}handleFieldChange(field.id,newValue,field.type);},style:{width:field.checkboxSize||20,height:field.checkboxSize||20,cursor:\"pointer\",accentColor:buttonBackground}}),/*#__PURE__*/_jsx(\"span\",{children:otherLabel})]}),isOtherChecked&&/*#__PURE__*/_jsx(\"input\",{type:\"text\",placeholder:field.otherPlaceholder||\"Digite aqui...\",value:otherText,onChange:e=>handleOtherTextChange(field.id,e.target.value),style:{...inputStyle,marginLeft:(field.checkboxSize||20)+8,fontSize:(field.optionFontSize||18)*.9},\"aria-label\":`${otherLabel} text input`})]},\"outros-option\");})()]}),error&&/*#__PURE__*/_jsx(\"div\",{id:`${field.id}-error`,style:{marginTop:8,color:errorColor,fontSize:13},children:error})]},field.id);},[formValues,errors,inputBackground,inputBorder,errorColor,textColor,inputFont,labelFont,labelToFieldGap,fieldsGap,buttonBackground,handleFieldChange]);/**\n * PhoneBR Input Component - Stable Brazilian phone mask\n * Manages phoneDigits (stored) and phoneDisplay (visual) separately\n */function PhoneBRInput({fieldId,placeholder,value,onChange,inputStyle,error}){const inputRef=useRef(null);// Store only digits WITHOUT country code (e.g. \"11987654321\")\n// Derive display value from this\nconst phoneDigits=useMemo(()=>{if(!value)return\"\";// Extract digits from value\nlet digits=value.replace(/\\D/g,\"\");// Remove leading 55 if present (country code)\nif(digits.startsWith(\"55\")&&digits.length>2){digits=digits.slice(2);}// Limit to 11 digits (DDD + number)\nreturn digits.slice(0,11);},[value]);// Display value: always \"+55 \" + formatted\nconst displayValue=useMemo(()=>{return\"+55 \"+formatPhoneBR(phoneDigits);},[phoneDigits]);// Handle input change\nconst handleChange=useCallback(e=>{const input=e.target;const newValue=input.value;const cursorPos=input.selectionStart||0;// Prevent deletion of \"+55 \" prefix\nif(!newValue.startsWith(\"+55 \")){// User tried to delete prefix - prevent and restore\ne.preventDefault();safeSetCaret(input,4);return;}// Extract digits from the new value (after \"+55 \")\nconst afterPrefix=newValue.slice(4);let newDigits=afterPrefix.replace(/\\D/g,\"\");// Remove leading 55 if user pasted it\nif(newDigits.startsWith(\"55\")&&newDigits.length>2){newDigits=newDigits.slice(2);}// Limit to 11 digits\nnewDigits=newDigits.slice(0,11);// Only update if changed\nif(newDigits===phoneDigits){return;}// Calculate digit index at cursor position\nconst digitIndex=mapDisplayPositionToDigitIndex(displayValue,cursorPos);// Determine if user is adding or removing digits\nconst isAdding=newDigits.length>phoneDigits.length;// Calculate new digit index after change\nlet newDigitIndex=digitIndex;if(isAdding){// User typed a digit - move cursor after it\nnewDigitIndex=Math.min(digitIndex+(newDigits.length-phoneDigits.length),newDigits.length);}else{// User deleted - keep cursor at same digit position\nnewDigitIndex=Math.min(digitIndex,newDigits.length);}// Update parent with normalized value (\"+55\" + digits)\nonChange(\"+55\"+newDigits);// Set caret position after state update\nconst newCaretPos=mapDigitIndexToDisplayPosition(newDigits,newDigitIndex);safeSetCaret(inputRef.current,newCaretPos);},[phoneDigits,displayValue,onChange]);// Handle Backspace/Delete keys\nconst handleKeyDown=useCallback(e=>{const input=e.target;const cursorPos=input.selectionStart||0;const prefixEnd=4// \"+55 \".length\n;// Prevent caret from going before prefix\nif(cursorPos<=prefixEnd){if(e.key===\"Backspace\"||e.key===\"Delete\"||e.key===\"ArrowLeft\"||e.key===\"Home\"){e.preventDefault();safeSetCaret(input,prefixEnd);return;}}// Handle Backspace\nif(e.key===\"Backspace\"){if(cursorPos<prefixEnd){e.preventDefault();return;}e.preventDefault();// Calculate digit index at cursor\nconst digitIndex=mapDisplayPositionToDigitIndex(displayValue,cursorPos);// Remove digit BEFORE cursor\nif(digitIndex>0){const newDigits=phoneDigits.slice(0,digitIndex-1)+phoneDigits.slice(digitIndex);// Update parent\nonChange(\"+55\"+newDigits);// Set caret after deletion\nconst newCaretPos=mapDigitIndexToDisplayPosition(newDigits,digitIndex-1);safeSetCaret(inputRef.current,newCaretPos);}return;}// Handle Delete\nif(e.key===\"Delete\"){if(cursorPos<prefixEnd){e.preventDefault();return;}e.preventDefault();// Calculate digit index at cursor\nconst digitIndex=mapDisplayPositionToDigitIndex(displayValue,cursorPos);// Remove digit AT cursor\nif(digitIndex<phoneDigits.length){const newDigits=phoneDigits.slice(0,digitIndex)+phoneDigits.slice(digitIndex+1);// Update parent\nonChange(\"+55\"+newDigits);// Set caret (stays at same position)\nconst newCaretPos=mapDigitIndexToDisplayPosition(newDigits,digitIndex);safeSetCaret(inputRef.current,newCaretPos);}return;}},[phoneDigits,displayValue,onChange]);// Handle paste\nconst handlePaste=useCallback(e=>{e.preventDefault();const pastedText=e.clipboardData.getData(\"text\");let digits=pastedText.replace(/\\D/g,\"\");// Remove leading 55 if present\nif(digits.startsWith(\"55\")&&digits.length>2){digits=digits.slice(2);}// Limit to 11 digits\ndigits=digits.slice(0,11);// Update parent\nonChange(\"+55\"+digits);// Set caret to end\nconst formatted=formatPhoneBR(digits);const endPos=4+formatted.length;safeSetCaret(inputRef.current,endPos);},[onChange]);// Handle focus - ensure caret is never before prefix\nconst handleFocus=useCallback(e=>{const input=e.target;const cursorPos=input.selectionStart||0;if(cursorPos<4){safeSetCaret(input,4);}},[]);// Handle click - prevent clicking before prefix\nconst handleClick=useCallback(e=>{const input=e.target;const cursorPos=input.selectionStart||0;if(cursorPos<4){safeSetCaret(input,4);}},[]);return /*#__PURE__*/_jsx(\"input\",{ref:inputRef,id:fieldId,type:\"tel\",placeholder:placeholder,value:displayValue,onChange:handleChange,onKeyDown:handleKeyDown,onPaste:handlePaste,onFocus:handleFocus,onClick:handleClick,style:inputStyle,\"aria-invalid\":!!error,\"aria-describedby\":error?`${fieldId}-error`:undefined});}// 9) Error fallback rendering\nif(totalSteps===0){return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,backgroundColor,padding:24,borderRadius:12,display:\"flex\",flexDirection:\"column\",gap:20},children:/*#__PURE__*/_jsx(\"div\",{style:{padding:12,backgroundColor:inputBackground,border:`1px solid ${inputBorder}`,borderRadius:8,color:textColor,fontSize:14,opacity:.7},children:\"Nenhum campo habilitado para exibir.\"})});}return /*#__PURE__*/_jsxs(\"div\",{style:{...props.style,backgroundColor,padding:24,borderRadius:12,display:\"flex\",flexDirection:\"column\",gap:20},children:[currentStepFields.map(renderField),formError&&/*#__PURE__*/_jsx(\"div\",{style:{padding:12,backgroundColor:errorColor+\"20\",border:`1px solid ${errorColor}`,borderRadius:8,color:errorColor,fontSize:14},children:formError}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:12},children:[mode===\"Multi-step\"&&safeStepIndex>0&&/*#__PURE__*/_jsx(\"button\",{onClick:handleBack,disabled:isSubmitting,style:{flex:1,padding:\"12px 24px\",backgroundColor:\"transparent\",border:`1px solid ${buttonBackground}`,borderRadius:8,color:buttonBackground,cursor:isSubmitting?\"not-allowed\":\"pointer\",opacity:isSubmitting?.5:1,...buttonFont},children:\"Voltar\"}),mode===\"Multi-step\"&&!isLastStep&&safeStepIndex<totalSteps-1&&/*#__PURE__*/_jsx(\"button\",{onClick:handleNext,disabled:isSubmitting,style:{flex:1,padding:\"12px 24px\",backgroundColor:buttonBackground,border:\"none\",borderRadius:8,color:buttonText,cursor:isSubmitting?\"not-allowed\":\"pointer\",opacity:isSubmitting?.5:1,...buttonFont},children:\"Pr\\xf3ximo\"}),(mode===\"Single\"||isLastStep)&&/*#__PURE__*/_jsx(\"button\",{onClick:handleSubmit,disabled:isSubmitting,style:{flex:1,padding:\"12px 24px\",backgroundColor:buttonBackground,border:\"none\",borderRadius:8,color:buttonText,cursor:isSubmitting?\"not-allowed\":\"pointer\",opacity:isSubmitting?.5:1,...buttonFont},children:isSubmitting?\"Enviando...\":submitButtonText})]})]});}addPropertyControls(ApplicationForm,{fields:{type:ControlType.Array,title:\"Fields\",control:{type:ControlType.Object,controls:{id:{type:ControlType.String,title:\"ID\",defaultValue:\"field\"},label:{type:ControlType.String,title:\"Label\",defaultValue:\"Field Label\"},placeholder:{type:ControlType.String,title:\"Placeholder\",defaultValue:\"Enter value...\"},required:{type:ControlType.Boolean,title:\"Required\",defaultValue:false},type:{type:ControlType.Enum,title:\"Type\",options:[\"Text\",\"Email\",\"PhoneBR\",\"Phone\",\"Number\",\"SelectSingle\",\"SelectMulti\",\"Textarea\"],defaultValue:\"Text\"},options:{type:ControlType.Array,title:\"Options\",control:{type:ControlType.String}},allowSingleOnly:{type:ControlType.Boolean,title:\"Permitir apenas 1 op\\xe7\\xe3o\",defaultValue:false,enabledTitle:\"Sim\",disabledTitle:\"N\\xe3o\",hidden:({type})=>type!==\"SelectMulti\"},minDigits:{type:ControlType.Number,title:\"Min Digits\",defaultValue:7,min:1,max:20,step:1,unit:\"px\",hidden:({type})=>type!==\"Phone\"},maxDigits:{type:ControlType.Number,title:\"Max Digits\",defaultValue:15,min:1,max:20,step:1,unit:\"px\",hidden:({type})=>type!==\"Phone\"},allowPlus:{type:ControlType.Boolean,title:\"Allow +\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\",hidden:({type})=>type!==\"Phone\"},min:{type:ControlType.Number,title:\"Min\"},max:{type:ControlType.Number,title:\"Max\"},stepGroup:{type:ControlType.String,title:\"Step Group\"},enabled:{type:ControlType.Boolean,title:\"Enabled\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},enableOtherOption:{type:ControlType.Boolean,title:\"Ativar op\\xe7\\xe3o Outros\",defaultValue:false,enabledTitle:\"Sim\",disabledTitle:\"N\\xe3o\",hidden:({type})=>type!==\"SelectMulti\"},otherOptionLabel:{type:ControlType.String,title:\"Texto da op\\xe7\\xe3o Outros\",defaultValue:\"Outros\",hidden:({type,enableOtherOption})=>type!==\"SelectMulti\"||!enableOtherOption},otherPlaceholder:{type:ControlType.String,title:\"Placeholder do Outros\",defaultValue:\"Digite aqui...\",hidden:({type,enableOtherOption})=>type!==\"SelectMulti\"||!enableOtherOption},otherRequiredWhenSelected:{type:ControlType.Boolean,title:\"Obrigat\\xf3rio quando selecionar Outros\",defaultValue:false,enabledTitle:\"Sim\",disabledTitle:\"N\\xe3o\",hidden:({type,enableOtherOption})=>type!==\"SelectMulti\"||!enableOtherOption},clearOtherOnUnselect:{type:ControlType.Boolean,title:\"Limpar texto ao desmarcar Outros\",defaultValue:true,enabledTitle:\"Sim\",disabledTitle:\"N\\xe3o\",hidden:({type,enableOtherOption})=>type!==\"SelectMulti\"||!enableOtherOption},optionGap:{type:ControlType.Number,title:\"Option Gap\",defaultValue:0,min:0,max:32,step:1,unit:\"px\",hidden:({type})=>type!==\"SelectMulti\"},checkboxSize:{type:ControlType.Number,title:\"Checkbox Size\",defaultValue:20,min:14,max:40,step:1,unit:\"px\",hidden:({type})=>type!==\"SelectMulti\"},optionFontSize:{type:ControlType.Number,title:\"Option Font Size\",defaultValue:18,min:14,max:32,step:1,unit:\"px\",hidden:({type})=>type!==\"SelectMulti\"}}},defaultValue:[{id:\"name\",label:\"Nome\",placeholder:\"Seu nome completo\",required:true,type:\"Text\"},{id:\"email\",label:\"E-mail\",placeholder:\"seu@email.com\",required:true,type:\"Email\"}]},mode:{type:ControlType.Enum,title:\"Mode\",options:[\"Single\",\"Multi-step\"],defaultValue:\"Single\",displaySegmentedControl:true},submitButtonText:{type:ControlType.String,title:\"Submit Button\",defaultValue:\"Enviar\"},enableUrlPrefill:{type:ControlType.Boolean,title:\"URL Prefill\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},urlPrefillFields:{type:ControlType.Array,title:\"Prefill Fields\",control:{type:ControlType.String},hidden:({enableUrlPrefill})=>!enableUrlPrefill},enableStoragePrefill:{type:ControlType.Boolean,title:\"Storage Prefill\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},enableWebhook:{type:ControlType.Boolean,title:\"Webhook\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},webhookUrl:{type:ControlType.String,title:\"Webhook URL\",defaultValue:\"\",hidden:({enableWebhook})=>!enableWebhook},enableGoogleSheets:{type:ControlType.Boolean,title:\"Google Sheets\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},sheetsWebhookUrl:{type:ControlType.String,title:\"Sheets URL\",defaultValue:\"\",hidden:({enableGoogleSheets})=>!enableGoogleSheets},redirectMode:{type:ControlType.Enum,title:\"Redirect Mode\",options:[\"External URL\",\"Framer Route\"],defaultValue:\"External URL\",displaySegmentedControl:true},redirectUrl:{type:ControlType.String,title:\"Redirect URL\",defaultValue:\"\",hidden:({redirectMode})=>redirectMode!==\"External URL\"},redirectRoute:{type:ControlType.String,title:\"Redirect Route\",defaultValue:\"\",hidden:({redirectMode})=>redirectMode!==\"Framer Route\"},passValuesInRedirect:{type:ControlType.Boolean,title:\"Pass Values\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},passValuesWhitelist:{type:ControlType.Array,title:\"Pass Fields\",control:{type:ControlType.String},hidden:({passValuesInRedirect})=>!passValuesInRedirect},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#1a1a1a\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#ffffff\"},inputBackground:{type:ControlType.Color,title:\"Input Background\",defaultValue:\"#2a2a2a\"},inputBorder:{type:ControlType.Color,title:\"Input Border\",defaultValue:\"#3a3a3a\"},buttonBackground:{type:ControlType.Color,title:\"Button Background\",defaultValue:\"#0099FF\"},buttonText:{type:ControlType.Color,title:\"Button Text\",defaultValue:\"#ffffff\"},errorColor:{type:ControlType.Color,title:\"Error Color\",defaultValue:\"#FF5588\"},labelFont:{type:ControlType.Font,title:\"Label Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"14px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}},inputFont:{type:ControlType.Font,title:\"Input Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}},buttonFont:{type:ControlType.Font,title:\"Button Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}},labelToFieldGap:{type:ControlType.Number,title:\"Label to Field Gap\",defaultValue:8,min:0,max:32,step:1,unit:\"px\"},fieldsGap:{type:ControlType.Number,title:\"Fields Gap\",defaultValue:16,min:0,max:64,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ApplicationForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"400\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"600\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ApplicationForm.map"],"mappings":"6NAoBG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,SAAO,CAAC,EAAE,OAAK,SAAS,mBAAiB,SAAS,mBAAiB,GAAM,mBAAiB,CAAC,EAAE,uBAAqB,GAAM,gBAAc,GA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