{"version":3,"file":"FormKitTextarea.CrmSb3nC.mjs","names":["useState","useState","useRef","useState","useRef","useCallback","useState","useState","useRef","useRef","cloneElement","useState","useRef","useState","__esmMin","z","init_ssg_sandbox_shims","ne","window","_e","p","c","init_jsx_runtime","ce","init_npm_react_18_3_1","de","addPropertyControls","RenderTarget","init_framer_Bf4_tcb2","Data","ControlType","useObserveData","createStore","dataStore","state1","setDataStore","newState","storeState","storeSetters","setStoreState","setter","useStore","state","setState","init_createStore","init_store_js__1","initializedForms","formStores","getFormStore","getFormStoreKey","clearFormFromLocalStorage","isPreview","init_Store_management","formId","newStore","manualStoreKey","key","error","validateRequired","validateEmail","validateURL","validateMinLength","validateMaxLength","validatePattern","validateMin","validateMax","validatePhone","validateFileSize","validateFileType","validateField","init_Validation","value","message","fieldName","minLength","maxLength","pattern","min","max","file","maxSize","accept","acceptedTypes","t","fileType","fileExtension","type","category","props","requiredError","arr","minError","maxError","typeError","sizeError","minLengthError","maxLengthError","patternError","useFormField","config","actualFormId","storeKey","localValue","setLocalValue","name","isValidating","setIsValidating","hasValidated","setHasValidated","validationTimeoutRef","isStateReady","storeValue","normalizedStoreValue","currentErrors","prev","_","otherErrors","skipValidation","validation","newErrors","validate","valueToValidate","onChange","validateOnChange","validateOnBlur","init_Hooks","normalizeConditionValue","isFilled","evaluateRule","evaluateFieldState","getConditionalBadge","init_Conditions","trimmed","numeric","rule","field","left","data","right","operator","v","i","l","r","showIf","conditionMet","keys","values","results","match","action","wouldBeHidden","fieldState","wouldBeDisabled","showIfAction","createStylingControl","SHOW_IF_CONTROL","MULTI_STEP_CONDITION_CONTROL","MULTI_STEP_MATCH_CONTROL","MULTI_STEP_NEXT_RULES_CONTROL","SHOW_IF_MATCH_CONTROL","SHOW_IF_ACTION_CONTROL","STORE_CONFIG_CONTROL","VALIDATION_CONTROLS","BASE_INPUT_STYLE_CONTROLS","LABEL_STYLE_CONTROLS","CHECKBOX_LABEL_STYLE_CONTROLS","ERROR_STYLE_CONTROLS","SUCCESS_STYLE_CONTROLS","FOCUS_STYLE_CONTROLS","CHECKBOX_STYLE_CONTROLS","CHECKBOX_VALIDATION_CONTROLS","init_Property_controls","HIDDEN_FIELD_CSS","cssInjected","injectHiddenFieldCSS","HiddenFieldMarker","init_HiddenFieldMarker","style","IconCheck","IconAlert","ChevronIcon","renderIcon","init_Icons","iconType","customIcon","processedSvg","svg","attrs","filteredStyle","styleValue","propStyle","restHtmlProps","DefaultIcon","getFormKitDirection","explicitDirection","sample","textSamples","text","RTL_TEXT_PATTERN","LTR_TEXT_PATTERN","documentDirection","documentLanguage","RTL_LANG_PATTERN","getTextAlignForDirection","textAlign","direction","init_Direction","FormKitSelect","isOpen","setIsOpen","setDirection","selectedValue","setSelectedValue","highlightedIndex","setHighlightedIndex","wrapperRef","dropdownRef","rawSelectStyles","styling","selectStyles","dropdownStyles","validationConfig","isCanvas","showIfMatch","isVisible","isDisabled","showBadge","badgeText","badge","handleClickOutside","event","handleKeyDown","option","options","handleOptionSelect","toggleDropdown","optionValue","handleChange","handleBlur","rect","spaceBelow","spaceAbove","getSelectedLabel","opt","shouldShowSuccess","successMessage","successDisplayMode","successStyles","showInlineSuccessIcon","showSuccessMessage","componentDirection","label","placeholder","isDropdownVisible","openDropdownOnCanvas","triggerTextAlign","arrowPosition","hasArrow","rawTriggerPadding","parseHorizontalPadding","paddingValue","parts","getNumeric","part","parsed","side","triggerPaddingLeft","triggerPaddingRight","leftInset","rightInset","successIconOffset","triggerStyle","focusStyles","isTouched","isUp","dropdownStyle","labelStyle","labelStyles","errorStyle","errorStyles","successStyle","getOptionStyle","isSelected","isHighlighted","index","usePlaceholderStyles","groupHeaderStyle","groupHeaderStyles","firstGroupHeaderStyle","renderGroupedOptions","items","showPlaceholderOption","grouped","ungrouped","elements","isFirstGroup","originalIndex","groupName","groupOptions","fieldId","required","SELECT_STYLE_CONTROLS","DROPDOWN_STYLE_CONTROLS","GROUP_HEADER_STYLE_CONTROLS","SELECT_VALIDATION_CONTROLS","init_FormKitSelect","FormKitEmail","isFocused","setIsFocused","resolvedInputTextAlign","inputStyles","resolvedLabelTextAlign","inputStyle","EMAIL_VALIDATION_CONTROLS","init_FormKitEmail","FormKitCheckbox","isChecked","setIsChecked","defaultChecked","requiredMessage","firstUpdate","checkedValue","uncheckedValue","checkboxSize","checkboxStyles","iconColor","renderCheckIcon","iconSize","checkboxWrapperStyle","containerStyle","handleCheckboxSelect","newValue","init_FormKitCheckbox","navigationRegistry","getFormKitNavigation","init_Form_navigation","FormKitSubmit","rest","buttonCustomStyles","stateRef","isLastStep","isSubmitting","submitState","isCompleted","stepsInitialized","validationCheckRef","containerRef","loadingText","successText","errorText","parentForm","checkNativeValidation","nativeInputs","isValid","input","handleClick","disabled","errorDuration","timer","successDuration","hasFormKitErrors","nativeValid","navigation","wait","resolve","ms","loadingDuration","resetData","getResetData","showOnlyOnLastStep","getCurrentVariant","variantMappings","extractActualComponent","element","children","chain","detectVariantProperty","component","propertyControls","propName","control","renderSlotWithVariant","slotComponent","actualComponent","variantProp","constrainedStyle","result","variantName","wrapper","renderCustomButtonPlaceholder","renderCustomButton","customButton","currentVariant","buttonType","currentStyles","buttonStyles","hoverStyles","init_FormKitSubmit","currentData","FormKitText","validationType","hasTextValue","init_FormKitText","FormKitTextarea","textareaRef","autoResize","el","scrollHeight","minHeightPx","autoResizeMinHeight","maxHeightPx","autoResizeMaxHeight","nextHeight","charCount","textareaStyle","showCharCount","rows","init_FormKitTextarea"],"sources":["https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0","https:/framerusercontent.com/modules/W9pGMfwOEUT2E0G0vdr3/42YKtSLeppXsa3v6m16i/Store_management.js","https:/framerusercontent.com/modules/CkzWOzYsjkSH8b0Md9Dz/jFAHTs0VED1zTLOHkBsH/Validation.js","https:/framerusercontent.com/modules/QcJOsISgPpDHi68MFiJ7/iSwiu9OhhEpwJ9bUO8oz/Hooks.js","https:/framerusercontent.com/modules/YQMwVuIkIDYjLHJOwEnu/E43Ih1OWNh9ZYDxH2sAu/Conditions.js","https:/framerusercontent.com/modules/gWXlNkIcFnVLxXMR7ktn/JtLdSfrUYaW9eElJLaFM/Property_controls.js","https:/framerusercontent.com/modules/zT6ckO4RKI5zB9JzgGVW/5pPr41RBexGJfYLsBNcj/HiddenFieldMarker.js","https:/framerusercontent.com/modules/hSeRQvQLiNwfAzfTZN4C/2faSrR7PxMT7RJTYjc17/Icons.js","https:/framerusercontent.com/modules/TnGeMluKUv3ZoPWbVX5z/6AL0m280OlZ8wllCKODq/Direction.js","https:/framerusercontent.com/modules/2zbBcO4Vc6grbG7sZeIX/opIg3Di5HtqYW4tvs3mB/FormKitSelect.js","https:/framerusercontent.com/modules/6fwcFKMgRD58JesnLcVn/52r23U4HyxlPBPcvyFFI/FormKitEmail.js","https:/framerusercontent.com/modules/7HyWoEAIg0K9jZAxeRjB/DtqGrvKHGieawdzZShqq/FormKitCheckbox.js","https:/framerusercontent.com/modules/3iJH2tW5QUFgpH9So3nO/UF4nz2hAgJN545Fau7sS/Form_navigation.js","https:/framerusercontent.com/modules/gVWLXt4kvvwEWptOmj1b/ePNSADvgSMpIujXik2Ax/FormKitSubmit.js","https:/framerusercontent.com/modules/LZi5STmjgrgLRHYHNLR6/ezTn56cKkIdWM2BqzDQg/FormKitText.js","https:/framerusercontent.com/modules/PjsrZgCWPClCYDNEVduk/AkPPsJCqOoB7isDxcblX/FormKitTextarea.js"],"sourcesContent":["import{useState,useEffect}from\"react\";import{Data,useObserveData}from\"framer\";export function createStore(state1){// Use Data so that a Preview reload resets the state\nconst dataStore=Data({state:Object.freeze({...state1})});// Create a set function that updates the state\nconst setDataStore=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(dataStore.state);}dataStore.state=Object.freeze({...dataStore.state,...newState});};// Store the initial state, copy the object if it's an object\nlet storeState=typeof state1===\"object\"?Object.freeze({...state1}):state1;// Keep a list of all the listeners, in the form of React hook setters\nconst storeSetters=new Set();// Create a set function that updates all the listeners / setters\nconst setStoreState=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(storeState);}storeState=typeof newState===\"object\"?Object.freeze({...storeState,...newState}):newState;// Update all the listeners / setters with the new value\nstoreSetters.forEach(setter=>setter(storeState));};// Create the actual hook based on everything above\nfunction useStore(){// Create the hook we are going to use as a listener\nconst[state,setState]=useState(storeState);// If we unmount the component using this hook, we need to remove the listener\n// @ts-ignore\nuseEffect(()=>{// But right now, we need to add the listener\nstoreSetters.add(setState);return()=>storeSetters.delete(setState);},[]);// If Data context exists, use Data, otherwise use vanilla React state\nif(useObserveData()===true){useObserveData();return[dataStore.state,setDataStore];}else{// Return the state and a function to update the central store\nreturn[state,setStoreState];}}return useStore;}\nexport const __FramerMetadata__ = {\"exports\":{\"createStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./createStore.map","/*\n * createStore (framer/store@1.0.1)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js\"\n","// Store management for FormKit\n// Based on CMS Filter pattern\nimport{createStore}from\"https://framer.com/m/framer/store.js@^1.0\";import{RenderTarget}from\"framer\";// Track initialized forms (simple Set, no hooks)\nconst initializedForms=new Set;// Helper to check if a form has been initialized\nexport const isFormInitialized=formId=>{return initializedForms.has(formId);};// Global stores per form ID\nconst formStores=new Map;// Helper to get or create store for form\nexport const getFormStore=formId=>{if(!formStores.has(formId)){const newStore=createStore({currentStep:0,totalSteps:1,stepsInitialized:false,data:{},errors:{},touched:{},visitedSteps:[0],stepHistory:[0],completedSteps:[],isSubmitting:false,isCompleted:false,submitAttempted:false,submitState:\"idle\",nextRules:[],previousRules:[],submitSuccessRules:[]});formStores.set(formId,newStore);// Track initialization without using hooks (hooks cannot be called in regular functions!)\ninitializedForms.add(formId);}return formStores.get(formId);};// Helper to get store key - prioritizes manual storeKey over formId\nexport const getFormStoreKey=(formId,manualStoreKey)=>{// If manual store key is provided and not \"auto\", use it\nif(manualStoreKey&&manualStoreKey.trim()!==\"\"&&manualStoreKey!==\"auto\"){return manualStoreKey.trim();}// Otherwise use formId or default\nreturn formId||\"default\";};// Helper to save form to localStorage\nexport const saveFormToLocalStorage=(formId,state)=>{try{const key=`formkit:${formId}`;const data={currentStep:state.currentStep,data:state.data,visitedSteps:state.visitedSteps,stepHistory:state.stepHistory,completedSteps:state.completedSteps,lastSaved:Date.now()};localStorage.setItem(key,JSON.stringify(data));}catch(error){console.error(\"Failed to save form to localStorage:\",error);}};// Helper to load form from localStorage\nexport const loadFormFromLocalStorage=formId=>{try{const key=`formkit:${formId}`;const saved=localStorage.getItem(key);if(saved){return JSON.parse(saved);}}catch(error){console.error(\"Failed to load form from localStorage:\",error);}return null;};// Helper to clear form from localStorage\nexport const clearFormFromLocalStorage=formId=>{try{const key=`formkit:${formId}`;localStorage.removeItem(key);}catch(error){console.error(\"Failed to clear form from localStorage:\",error);}};// Helper to parse URL parameters for prefill\nexport const parseUrlParams=()=>{const params={};try{const urlParams=new URLSearchParams(window.location.search);urlParams.forEach((value,key)=>{params[key]=value;});}catch(error){console.error(\"Failed to parse URL parameters:\",error);}return params;};// Utility function to generate random strings (for unique IDs)\nexport function generateRandomId(length=8){const chars=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";let result=\"\";for(let i=0;i<length;i++){result+=chars.charAt(Math.floor(Math.random()*chars.length));}return result;}// RenderTarget helpers\nexport const isPreview=RenderTarget.current()===RenderTarget.preview;export const isCanvas=RenderTarget.current()===RenderTarget.canvas;export const isExport=RenderTarget.current()===RenderTarget.export;\nexport const __FramerMetadata__ = {\"exports\":{\"isCanvas\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getFormStore\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getFormStoreKey\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"generateRandomId\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isPreview\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isFormInitialized\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"parseUrlParams\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"loadFormFromLocalStorage\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"saveFormToLocalStorage\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isExport\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"clearFormFromLocalStorage\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FormKitStore\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Store_management.map","// Validation utilities for FormKit\nexport const validateRequired=(value,fieldName,message)=>{if(value===null||value===undefined||Array.isArray(value)&&value.length===0){return message||`${fieldName} is required`;}if(typeof value===\"string\"&&value.trim()===\"\"){return message||`${fieldName} is required`;}return null;};export const validateEmail=(value,message)=>{if(!value)return null;const emailRegex=/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;if(!emailRegex.test(value)){return message||\"Please enter a valid email address\";}return null;};export const validateURL=value=>{if(!value)return null;try{new URL(value);return null;}catch{return\"Please enter a valid URL\";}};export const validateMinLength=(value,minLength,message)=>{if(!value)return null;if(value.length<minLength){// Support {x} template placeholder\nconst finalMessage=message?message.replace(/{x}/g,minLength.toString()):`Minimum ${minLength} characters required`;return finalMessage;}return null;};export const validateMaxLength=(value,maxLength,message)=>{if(!value)return null;if(value.length>maxLength){// Support {x} template placeholder\nconst finalMessage=message?message.replace(/{x}/g,maxLength.toString()):`Maximum ${maxLength} characters allowed`;return finalMessage;}return null;};export const validatePattern=(value,pattern,message)=>{if(!value)return null;const regex=new RegExp(pattern);if(!regex.test(value)){return message||\"Invalid format\";}return null;};export const validateMin=(value,min,message)=>{if(value===null||value===undefined)return null;if(value<min){return message||`Minimum value is ${min}`;}return null;};export const validateMax=(value,max,message)=>{if(value===null||value===undefined)return null;if(value>max){return message||`Maximum value is ${max}`;}return null;};export const validatePhone=value=>{if(!value)return null;// Basic phone validation (adjust regex as needed)\nconst phoneRegex=/^[\\d\\s\\-\\+\\(\\)]+$/;if(!phoneRegex.test(value)){return\"Please enter a valid phone number\";}return null;};export const validateFileSize=(file,maxSize)=>{if(file.size>maxSize){const maxSizeMB=(maxSize/(1024*1024)).toFixed(2);return`File size must be less than ${maxSizeMB}MB`;}return null;};export const validateFileType=(file,accept)=>{if(!accept)return null;const acceptedTypes=accept.split(\",\").map(t=>t.trim());const fileType=file.type;const fileName=file.name;const fileExtension=`.${fileName.split(\".\").pop()?.toLowerCase()}`;const isValid=acceptedTypes.some(type=>{if(type.startsWith(\".\")){return fileExtension===type.toLowerCase();}if(type.endsWith(\"/*\")){const category=type.split(\"/\")[0];return fileType.startsWith(category);}return fileType===type;});if(!isValid){return`File type not accepted. Allowed: ${accept}`;}return null;};// Combined validator for fields\nexport const validateField=(value,props)=>{const fieldName=props.label||props.name;// Required validation - Checkbox vs others\nif(props.required){// Special handling for checkbox: must be strictly true if required\nif(props.type===\"checkbox\"){if(value!==true){return props.requiredMessage||`${fieldName} must be checked`;}}else if(props.type===\"rating\"||props.type===\"scale\"){// Rating/Scale: 0 means no selection, treat as empty\nif(value===null||value===undefined||value===\"\"||value===0){return props.requiredMessage||`${fieldName} is required`;}}else{const requiredError=validateRequired(value,fieldName,props.requiredMessage);if(requiredError)return requiredError;}}// Skip other validations if value is empty and not required (except checkbox and checkboxGroup which handled separately)\nif(!value&&props.type!==\"checkbox\"&&props.type!==\"checkboxGroup\")return null;// CheckboxGroup validation - handle before type switch for empty arrays\nif(props.type===\"checkboxGroup\"){const arr=Array.isArray(value)?value:[];if(props.minSelected!==undefined&&arr.length<props.minSelected){return props.minMessage?props.minMessage.replace(/{min}/g,props.minSelected.toString()):`Select at least ${props.minSelected} options`;}if(props.maxSelected!==undefined&&arr.length>props.maxSelected){return props.maxMessage?props.maxMessage.replace(/{max}/g,props.maxSelected.toString()):`Select at most ${props.maxSelected} options`;}return null;}// Type-specific validation\nswitch(props.type){case\"email\":return validateEmail(value,props.emailMessage);case\"url\":return validateURL(value);case\"phone\":return validatePhone(value);case\"number\":if(props.min!==undefined){const minError=validateMin(value,props.min,props.minMessage);if(minError)return minError;}if(props.max!==undefined){const maxError=validateMax(value,props.max,props.maxMessage);if(maxError)return maxError;}break;case\"file\":if(value instanceof File){if(props.accept){const typeError=validateFileType(value,props.accept);if(typeError)return typeError;}if(props.maxSize){const sizeError=validateFileSize(value,props.maxSize);if(sizeError)return sizeError;}}break;}// String validation\nif(typeof value===\"string\"){if(props.minLength!==undefined){const minLengthError=validateMinLength(value,props.minLength,props.minLengthMessage);if(minLengthError)return minLengthError;}if(props.maxLength!==undefined){const maxLengthError=validateMaxLength(value,props.maxLength,props.maxLengthMessage);if(maxLengthError)return maxLengthError;}if(props.pattern){const patternError=validatePattern(value,props.pattern,props.patternMessage||props.errorMessage);if(patternError)return patternError;}}return null;};\nexport const __FramerMetadata__ = {\"exports\":{\"validateEmail\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"validateMax\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"validateRequired\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"validateMinLength\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"validatePhone\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"validateFileType\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"validateFileSize\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"validateMin\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"validateURL\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"validateField\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"validateMaxLength\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"validatePattern\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Validation.map","// Custom hooks for FormKit components\n// This eliminates code duplication across field components\nimport{useState,useEffect,useRef}from\"react\";import{RenderTarget}from\"framer\";import{getFormStore,getFormStoreKey}from\"https://framerusercontent.com/modules/W9pGMfwOEUT2E0G0vdr3/42YKtSLeppXsa3v6m16i/Store_management.js\";import{validateField}from\"https://framerusercontent.com/modules/CkzWOzYsjkSH8b0Md9Dz/jFAHTs0VED1zTLOHkBsH/Validation.js\";/**\r\n * Custom hook to manage form field state and validation\r\n * Eliminates code duplication across all field components\r\n *\r\n * @example\r\n * ```tsx\r\n * const {\r\n *   value,\r\n *   error,\r\n *   handleChange,\r\n *   handleBlur\r\n * } = useFormField({\r\n *   name: \"email\",\r\n *   formId: \"default\",\r\n *   validation: {\r\n *     required: true,\r\n *     type: \"email\"\r\n *   },\r\n *   validateOnBlur: true,\r\n *   validateOnChange: false\r\n * })\r\n * ```\r\n */export function useFormField(config){// Correct usage\nconst{name,formId=\"default\",storeKey=\"auto\",validation={},validateOnBlur=true,validateOnChange=false,skipValidation=false,label,onChange}=config;// Get store\nconst actualFormId=getFormStoreKey(formId,storeKey);const useStore=getFormStore(actualFormId);const[state,setState]=useStore()// This hook must be stable\n;// Local value for controlled input - check state existence\nconst[localValue,setLocalValue]=useState(()=>{return state?.data?.[name]??\"\";});// Validation state\nconst[isValidating,setIsValidating]=useState(false);const[hasValidated,setHasValidated]=useState(false);// Timeout refs for debouncing\nconst validationTimeoutRef=useRef();// Safety check for state\nconst isStateReady=!!state;// Sync local value from store (for external updates)\nuseEffect(()=>{if(!state?.data)return;const storeValue=state.data[name];const normalizedStoreValue=storeValue===undefined?\"\":storeValue;// Keep local UI in sync for both set and clear mutations\nif(normalizedStoreValue!==localValue){setLocalValue(normalizedStoreValue);}},[state?.data?.[name]])// Only re-run if this specific value changes\n;// Cleanup timeout on unmount\nuseEffect(()=>{return()=>{if(validationTimeoutRef.current){clearTimeout(validationTimeoutRef.current);}};},[]);// Reset errors on load in Preview mode\nuseEffect(()=>{if(RenderTarget.current()===RenderTarget.preview&&isStateReady){setState(prev=>{const currentErrors=prev?.errors||{};if(currentErrors[name]){const{[name]:_,...otherErrors}=currentErrors;return{...prev,errors:otherErrors};}return prev;});}},[isStateReady]);// Clear errors when field becomes hidden/disabled\nuseEffect(()=>{if(skipValidation&&isStateReady){setState(prev=>{const currentErrors=prev?.errors||{};if(currentErrors[name]){const{[name]:_,...otherErrors}=currentErrors;return{...prev,errors:otherErrors};}return prev;});}},[skipValidation]);// Validate when submitAttempted is true or submitState enters validating\nuseEffect(()=>{if(!isStateReady||skipValidation)return;const shouldValidateFromSubmit=state?.submitAttempted||state?.submitState===\"validating\";if(!shouldValidateFromSubmit)return;// Run validation when submit is attempted\nconst error=validateField(localValue,{name,label,...validation});setState(prev=>{const currentErrors=prev?.errors||{};const{[name]:_,...otherErrors}=currentErrors;const newErrors=error?{...otherErrors,[name]:error}:otherErrors;return{...prev,errors:newErrors};});setHasValidated(true);},[state?.submitAttempted,state?.submitState]);/**\r\n     * Validate the current value\r\n     * Returns null (no error) if skipValidation is true\r\n     */const validate=valueToValidate=>{// Skip validation for hidden/disabled fields\nif(skipValidation){return null;}const val=valueToValidate!==undefined?valueToValidate:localValue;const error=validateField(val,{name,label,...validation});return error;};/**\r\n     * Handle value change\r\n     * Updates both local state and store\r\n     * Optionally triggers real-time validation (debounced)\r\n     */const handleChange=value=>{setLocalValue(value);if(!isStateReady)return;setState(prev=>({...prev,data:{...prev?.data||{},[name]:value},touched:{...prev?.touched||{},[name]:true}}));// Call onChange callback if provided\nonChange?.(value);// Real-time validation (debounced) if enabled and field has been touched\n// ALSO validate if submit has been attempted (immediate feedback mode)\nif(validateOnChange||state?.submitAttempted){setIsValidating(true);if(validationTimeoutRef.current){clearTimeout(validationTimeoutRef.current);}validationTimeoutRef.current=setTimeout(()=>{// Determine value to validate - use latest localValue which might be stale in closure?\n// Better pass 'value' directly\nconst error=validate(value);setState(prev=>{const currentErrors=prev?.errors||{};const{[name]:_,...otherErrors}=currentErrors;const newErrors=error?{...otherErrors,[name]:error}:otherErrors;return{...prev,errors:newErrors};});setIsValidating(false);setHasValidated(true);},500)// 500ms debounce\n;}};/**\r\n     * Handle blur event\r\n     * Triggers validation if validateOnBlur is enabled\r\n     * Skips validation and clears errors if skipValidation is true\r\n     */const handleBlur=valueToValidate=>{if(!isStateReady)return;// If field is hidden/disabled, clear any existing errors and skip validation\nif(skipValidation){setState(prev=>{const currentErrors=prev?.errors||{};if(currentErrors[name]){const{[name]:_,...otherErrors}=currentErrors;return{...prev,errors:otherErrors};}return prev;});return;}if(!validateOnBlur)return;const error=validate(valueToValidate);setState(prev=>{const currentErrors=prev?.errors||{};const{[name]:_,...otherErrors}=currentErrors;const newErrors=error?{...otherErrors,[name]:error}:otherErrors;return{...prev,errors:newErrors,touched:{...prev?.touched||{},[name]:true}};});setHasValidated(true);};return{value:localValue,error:state?.errors?.[name]||null,isTouched:state?.touched?.[name]||false,isValidating,hasValidated,setHasValidated,state:state||{},setState,handleChange,handleBlur,validate};}/**\r\n * Hook to access form store directly without field-specific logic\r\n * Useful for components like FormKitProgress, FormKitNext, etc.\r\n */export function useFormStore(formId=\"default\",storeKey=\"auto\"){const actualFormId=getFormStoreKey(formId,storeKey);const useStore=getFormStore(actualFormId);return useStore();}\nexport const __FramerMetadata__ = {\"exports\":{\"UseFormFieldConfig\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useFormField\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useFormStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"UseFormFieldReturn\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","export const normalizeConditionValue=value=>{if(typeof value!==\"string\")return value;const trimmed=value.trim();if(trimmed===\"\")return value;if(trimmed.toLowerCase()===\"true\")return true;if(trimmed.toLowerCase()===\"false\")return false;const numeric=Number(trimmed);if(!Number.isNaN(numeric))return numeric;return trimmed;};const isFilled=value=>{if(value===null||value===undefined)return false;if(typeof value===\"string\")return value.trim()!==\"\";if(Array.isArray(value))return value.length>0;return true;};const evaluateRule=(rule,data)=>{const{field,operator=\"equals\",value}=rule;if(!field)return true;const left=data[field];const right=normalizeConditionValue(value);switch(operator){case\"equals\":{if(Array.isArray(left)){if(Array.isArray(right)){return left.length===right.length&&left.every((v,i)=>v===right[i]);}return left.includes(right);}return left===right;}case\"notEquals\":{if(Array.isArray(left)){if(Array.isArray(right)){return!(left.length===right.length&&left.every((v,i)=>v===right[i]));}return!left.includes(right);}return left!==right;}case\"contains\":{if(Array.isArray(left))return left.includes(right);if(typeof left===\"string\"&&typeof right===\"string\"){return left.toLowerCase().includes(right.toLowerCase());}return false;}case\"notContains\":{if(Array.isArray(left))return!left.includes(right);if(typeof left===\"string\"&&typeof right===\"string\"){return!left.toLowerCase().includes(right.toLowerCase());}return true;}case\"greaterThan\":{const l=Number(left);const r=Number(right);if(Number.isNaN(l)||Number.isNaN(r))return false;return l>r;}case\"lessThan\":{const l=Number(left);const r=Number(right);if(Number.isNaN(l)||Number.isNaN(r))return false;return l<r;}case\"greaterThanOrEqual\":{const l=Number(left);const r=Number(right);if(Number.isNaN(l)||Number.isNaN(r))return false;return l>=r;}case\"lessThanOrEqual\":{const l=Number(left);const r=Number(right);if(Number.isNaN(l)||Number.isNaN(r))return false;return l<=r;}case\"isFilled\":return isFilled(left);case\"isEmpty\":return!isFilled(left);default:return true;}};export const evaluateFieldState=(showIf,data,match=\"all\",action=\"show\")=>{// Default state\nif(!showIf||Array.isArray(showIf)&&showIf.length===0||typeof showIf===\"string\"&&showIf.trim()===\"\"){return{isVisible:true,isDisabled:false};}try{let conditionMet;if(typeof showIf===\"string\"){const keys=Object.keys(data);const values=Object.values(data);// Note: new Function is intentional here for user-defined conditions in Framer\nconst fn=new Function(...keys,`return ${showIf}`);conditionMet=Boolean(fn(...values));}else{const results=showIf.map(rule=>evaluateRule(rule,data));conditionMet=match===\"any\"?results.some(Boolean):results.every(Boolean);}switch(action){case\"show\":return{isVisible:conditionMet,isDisabled:false};case\"hide\":return{isVisible:!conditionMet,isDisabled:false};case\"enable\":return{isVisible:true,isDisabled:!conditionMet};case\"disable\":return{isVisible:true,isDisabled:conditionMet};default:return{isVisible:true,isDisabled:false};}}catch(error){console.error(\"Error evaluating conditions:\",error);return{isVisible:true,isDisabled:false};}};/**\r\n * Helper function to determine conditional badge state for canvas mode\r\n * Returns whether to show a badge and what text to display\r\n */export const getConditionalBadge=(showIf,fieldState,showIfAction=\"show\")=>{if(!showIf||showIf.length===0){return{showBadge:false,badgeText:\"\"};}const wouldBeHidden=!fieldState.isVisible;const wouldBeDisabled=fieldState.isDisabled;if(showIfAction===\"show\"&&wouldBeHidden){return{showBadge:true,badgeText:\"Hidden in preview\"};}else if(showIfAction===\"hide\"&&!wouldBeHidden){return{showBadge:true,badgeText:\"Shown in preview\"};}else if(showIfAction===\"enable\"&&wouldBeDisabled){return{showBadge:true,badgeText:\"Disabled in preview\"};}else if(showIfAction===\"disable\"&&!wouldBeDisabled){return{showBadge:true,badgeText:\"Enabled in preview\"};}return{showBadge:false,badgeText:\"\"};};// Backward compatibility wrapper (deprecated but kept for safety if needed)\nexport const evaluateShowIf=(showIf,data,match=\"all\",action=\"show\")=>{const{isVisible}=evaluateFieldState(showIf,data,match,action);return isVisible;};export const evaluateRuleGroup=(rules,data,match=\"all\")=>{if(!rules||rules.length===0)return false;const results=rules.map(rule=>evaluateRule(rule,data));return match===\"any\"?results.some(Boolean):results.every(Boolean);};export const findFirstMatchingMultiStepRule=(rules,data)=>{if(!Array.isArray(rules)||rules.length===0)return null;for(const rule of rules){if(evaluateRuleGroup(rule.conditions,data,rule.match||\"all\")){return rule;}}return null;};export const findMatchingMultiStepRules=(rules,data)=>{if(!Array.isArray(rules)||rules.length===0)return[];return rules.filter(rule=>evaluateRuleGroup(rule.conditions,data,rule.match||\"all\"));};export const normalizeTargetStep=(targetStep,totalSteps)=>{if(!Number.isFinite(targetStep))return null;const requestedStep=Math.max(1,Math.floor(Number(targetStep)));const zeroBasedStep=requestedStep-1;const maxStepIndex=Math.max(0,totalSteps-1);return Math.max(0,Math.min(zeroBasedStep,maxStepIndex));};\nexport const __FramerMetadata__ = {\"exports\":{\"findFirstMatchingMultiStepRule\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"evaluateFieldState\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"findMatchingMultiStepRules\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"evaluateShowIf\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"normalizeConditionValue\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"evaluateRuleGroup\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getConditionalBadge\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ShowIfRule\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"normalizeTargetStep\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Conditions.map","// Shared Property Control Definitions for FormKit\n// These are reusable control definitions to maintain consistency across components\nimport{ControlType}from\"framer\";/**\r\n * Shared control for conditional visibility using Array/Object format\r\n * NO string expressions - only structured rules\r\n */export const SHOW_IF_CONTROL={type:ControlType.Array,title:\"Conditions\",description:\"Add conditions to control when this field is visible\",control:{type:ControlType.Object,controls:{field:{type:ControlType.String,title:\"Field Name\",description:\"Name of the field to check\",placeholder:\"fieldName\"},operator:{type:ControlType.Enum,title:\"Operator\",options:[\"equals\",\"notEquals\",\"contains\",\"notContains\",\"greaterThan\",\"lessThan\",\"greaterThanOrEqual\",\"lessThanOrEqual\",\"isFilled\",\"isEmpty\"],displaySegmentedControl:false,defaultValue:\"equals\"},value:{type:ControlType.String,title:\"Value\",description:\"Value to compare against\",placeholder:\"compareValue\",hidden:props=>props.operator===\"isFilled\"||props.operator===\"isEmpty\"}}}};export const MULTI_STEP_CONDITION_CONTROL={type:ControlType.Array,title:\"Conditions\",description:\"Add field rules for this branch.\",control:{type:ControlType.Object,controls:{field:{type:ControlType.String,title:\"Field Name\",placeholder:\"fieldName\"},operator:{type:ControlType.Enum,title:\"Operator\",options:[\"equals\",\"notEquals\",\"contains\",\"notContains\",\"greaterThan\",\"lessThan\",\"greaterThanOrEqual\",\"lessThanOrEqual\",\"isFilled\",\"isEmpty\"],optionTitles:[\"Equals\",\"Not Equals\",\"Contains\",\"Not Contains\",\"Greater Than\",\"Less Than\",\"Greater Or Equal\",\"Less Or Equal\",\"Is Filled\",\"Is Empty\"],defaultValue:\"equals\",displaySegmentedControl:false},value:{type:ControlType.String,title:\"Value\",placeholder:\"compareValue\",hidden:props=>props.operator===\"isFilled\"||props.operator===\"isEmpty\"}}}};export const MULTI_STEP_MATCH_CONTROL={type:ControlType.Enum,title:\"Match\",options:[\"all\",\"any\"],optionTitles:[\"All (AND)\",\"Any (OR)\"],defaultValue:\"all\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\"};export const MULTI_STEP_NEXT_RULES_CONTROL={type:ControlType.Array,title:\"Next Rules\",description:\"Check rules before the next step action runs.\",control:{type:ControlType.Object,controls:{match:MULTI_STEP_MATCH_CONTROL,conditions:MULTI_STEP_CONDITION_CONTROL,action:{type:ControlType.Enum,title:\"Action\",options:[\"goToStep\",\"setFieldValue\",\"clearFieldValue\"],optionTitles:[\"Go To Step\",\"Set Field Value\",\"Clear Field Value\"],defaultValue:\"goToStep\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},targetStep:{type:ControlType.Number,title:\"Step Number\",description:\"1-based step number to jump to.\",defaultValue:2,min:1,step:1,displayStepper:true,hidden:props=>props.action!==\"goToStep\"},targetField:{type:ControlType.String,title:\"Field Name\",placeholder:\"leadType\",hidden:props=>props.action!==\"setFieldValue\"&&props.action!==\"clearFieldValue\"},targetValue:{type:ControlType.String,title:\"Field Value\",placeholder:\"enterprise\",hidden:props=>props.action!==\"setFieldValue\"}}},defaultValue:[]};export const MULTI_STEP_PREVIOUS_RULES_CONTROL={...MULTI_STEP_NEXT_RULES_CONTROL,title:\"Previous Rules\",description:\"Check rules before the previous step action runs.\",hidden:props=>props.previousBehavior!==\"rules\"};export const MULTI_STEP_SUBMIT_RULES_CONTROL={type:ControlType.Array,title:\"Submit Rules\",description:\"Set or clear fields before submit. Redirect actions run after a successful submission.\",control:{type:ControlType.Object,controls:{match:MULTI_STEP_MATCH_CONTROL,conditions:MULTI_STEP_CONDITION_CONTROL,action:{type:ControlType.Enum,title:\"Action\",options:[\"redirect\"],optionTitles:[\"Redirect\"],defaultValue:\"redirect\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},redirectUrl:{type:ControlType.String,title:\"Redirect URL\",placeholder:\"https://example.com/thank-you\",hidden:props=>props.action!==\"redirect\"}}},defaultValue:[]};/**\r\n * Shared control for showIf match mode (all/any)\r\n */export const SHOW_IF_MATCH_CONTROL={type:ControlType.Enum,title:\"Match Mode\",description:\"How to combine multiple conditions\",options:[\"all\",\"any\"],optionTitles:[\"All (AND)\",\"Any (OR)\"],defaultValue:\"all\"};/**\r\n * Control for conditional visibility action (show/hide when conditions pass)\r\n */export const SHOW_IF_ACTION_CONTROL={type:ControlType.Enum,title:\"When Conditions Pass\",description:\"Control field visibility or enabled state based on conditions\",options:[\"show\",\"hide\",\"enable\",\"disable\"],optionTitles:[\"Show Field\",\"Hide Field\",\"Enable Field\",\"Disable Field\"],defaultValue:\"show\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\"};/**\r\n * Shared control for store configuration\r\n * Note: storeKey has been removed - formId handles all use cases\r\n */export const STORE_CONFIG_CONTROL={formId:{type:ControlType.String,title:\"Form ID\",defaultValue:\"default\",description:\"📋 Which form this field belongs to. Use 'default' for single form. For multiple forms on same page, use unique IDs like 'signup', 'contact', or 'newsletter'. Powered by [framerformkit](https://framerformkit.com)\"}};/**\r\n * Validation toggle controls - built-in validation only\r\n */export const VALIDATION_TOGGLE_CONTROLS={validateOnBlur:{type:ControlType.Boolean,title:\"Validate on Blur\",description:\"Validate when user leaves the field\",defaultValue:true},validateOnChange:{type:ControlType.Boolean,title:\"Validate on Change\",description:\"Validate in real-time as user types (debounced)\",defaultValue:true}};/**\r\n * Complete validation controls - grouped for nested object\r\n * Includes type selector, toggles, rules, and messages all in one place\r\n */export const VALIDATION_CONTROLS={// Timing toggles\nvalidateOnBlur:{type:ControlType.Boolean,title:\"On Blur\",description:\"Validate when user leaves field\",defaultValue:true},validateOnChange:{type:ControlType.Boolean,title:\"On Change\",description:\"Real-time validation (debounced)\",defaultValue:true},// Validation type selector\nvalidationType:{type:ControlType.Enum,title:\"Validation Type\",options:[\"built-in\",\"pattern\"],optionTitles:[\"Built-in\",\"Custom Pattern\"],defaultValue:\"built-in\",description:\"Choose validation method\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},// Built-in validation rules\nminLength:{type:ControlType.Number,title:\"Min Length\",min:0,defaultValue:0,step:1,displayStepper:true,description:\"Minimum characters (0 = no minimum)\",hidden:props=>props.validationType===\"pattern\"},maxLength:{type:ControlType.Number,title:\"Max Length\",min:0,defaultValue:0,step:1,displayStepper:true,description:\"Maximum characters (0 = no limit)\",hidden:props=>props.validationType===\"pattern\"},// Custom pattern validation\npattern:{type:ControlType.String,title:\"Pattern (Regex)\",displayTextArea:true,description:\"Example: ^[a-zA-Z0-9]+$ (alphanumeric only)\",hidden:props=>props.validationType===\"built-in\"},// Error messages\nrequiredMessage:{type:ControlType.String,title:\"Required Error\",placeholder:\"This field is required\"},minLengthMessage:{type:ControlType.String,title:\"Min Length Error\",placeholder:\"Please enter at least {x} characters\",description:\"Use {x} for dynamic value\",hidden:props=>props.validationType===\"pattern\"},maxLengthMessage:{type:ControlType.String,title:\"Max Length Error\",placeholder:\"Maximum {x} characters allowed\",description:\"Use {x} for dynamic value\",hidden:props=>props.validationType===\"pattern\"},patternMessage:{type:ControlType.String,title:\"Pattern Error\",placeholder:\"Invalid format\",hidden:props=>props.validationType===\"built-in\"},successMessage:{type:ControlType.String,title:\"Success Message\",placeholder:\"Looks good!\"}};/**\r\n * Base styling controls - can be extended per component\r\n */export const BASE_INPUT_STYLE_CONTROLS={backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"rgba(187, 187, 187, 0.15)\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#333333\"},placeholderColor:{type:ControlType.Color,title:\"Placeholder Color\",defaultValue:\"#999999\"},border:{type:ControlType.Border,title:\"Border\",defaultValue:{borderWidth:1,borderColor:\"rgba(187, 187, 187, 0.15)\",borderStyle:\"solid\"}},shadows:{type:ControlType.BoxShadow,title:\"Shadows\",optional:true},borderRadius:{type:ControlType.BorderRadius,title:\"Border Radius\",defaultValue:12},padding:{type:ControlType.Padding,title:\"Padding\",defaultValue:\"12px\"},textAlign:{type:ControlType.Enum,title:\"Text Align\",options:[\"left\",\"center\",\"right\"],optionIcons:[\"text-align-left\",\"text-align-center\",\"text-align-right\"],defaultValue:\"left\",displaySegmentedControl:true},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",displayFontSize:true,displayTextAlignment:false,defaultValue:{fontSize:14,fontWeight:400}},// State styles\nfocusBorderColor:{type:ControlType.Color,title:\"Focus Border\",defaultValue:\"#0099FF\"},errorBorderColor:{type:ControlType.Color,title:\"Error Border\",defaultValue:\"#FF4444\"},disabledOpacity:{type:ControlType.Number,title:\"Disabled Opacity\",min:0,max:1,step:.1,defaultValue:.5,displayStepper:true}};/**\r\n * Label styling controls\r\n */export const LABEL_STYLE_CONTROLS={color:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#888888\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",displayFontSize:true,displayTextAlignment:false,defaultValue:{fontSize:12,fontWeight:500}},textAlign:{type:ControlType.Enum,title:\"Text Align\",options:[\"left\",\"center\",\"right\"],optionIcons:[\"text-align-left\",\"text-align-center\",\"text-align-right\"],defaultValue:\"left\",displaySegmentedControl:true},textTransform:{type:ControlType.Enum,title:\"Text Transform\",options:[\"none\",\"uppercase\",\"lowercase\",\"capitalize\"],optionTitles:[\"None\",\"UPPERCASE\",\"lowercase\",\"Capitalize\"],defaultValue:\"none\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},marginBottom:{type:ControlType.Number,title:\"Bottom Spacing\",min:0,max:24,step:1,defaultValue:8,displayStepper:true}};/**\r\n * Checkbox label styling controls (includes checked state)\r\n */export const CHECKBOX_LABEL_STYLE_CONTROLS={...LABEL_STYLE_CONTROLS,marginBottom:{...LABEL_STYLE_CONTROLS.marginBottom,hidden:()=>true},checkedLabelColor:{type:ControlType.Color,title:\"Checked Color\",optional:true}};/**\r\n * Error message styling controls\r\n */export const ERROR_STYLE_CONTROLS={color:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FF4444\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",displayFontSize:true,displayTextAlignment:false,defaultValue:{fontSize:12,fontWeight:400}},marginTop:{type:ControlType.Number,title:\"Top Spacing\",min:0,max:24,step:1,defaultValue:4,displayStepper:true},iconType:{type:ControlType.Enum,title:\"Icon Type\",options:[\"default\",\"custom\"],optionTitles:[\"Default\",\"Icon Svg\"],defaultValue:\"default\",displaySegmentedControl:true},customIcon:{type:ControlType.String,title:\"Custom Icon\",description:\"Paste SVG code here\",displayTextArea:true,hidden:props=>props.iconType!==\"custom\"}};/**\r\n * Success message styling controls\r\n */export const SUCCESS_STYLE_CONTROLS={displayMode:{type:ControlType.Enum,title:\"Display\",options:[\"both\",\"icon\",\"message\"],optionTitles:[\"Both\",\"Icon Only\",\"Message Only\"],defaultValue:\"both\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},// Message text styling\nmessageFont:{type:ControlType.Font,title:\"Message Font\",controls:\"extended\",displayFontSize:true,displayTextAlignment:false,defaultValue:{fontSize:12,fontWeight:400}},messageColor:{type:ControlType.Color,title:\"Message Color\",optional:true},iconColor:{type:ControlType.Color,title:\"Icon Color\",optional:true},marginTop:{type:ControlType.Number,title:\"Message Top Spacing\",min:0,max:24,step:1,defaultValue:4,displayStepper:true},// Input styling on success\ninputBorderColor:{type:ControlType.Color,title:\"Input Border Color\",optional:true},inputTextColor:{type:ControlType.Color,title:\"Input Text Color\",optional:true},inputFont:{type:ControlType.Font,title:\"Input Font\",controls:\"extended\",displayFontSize:true,displayTextAlignment:false,defaultValue:{fontSize:14,fontWeight:400}},// Label styling on success\nlabelColor:{type:ControlType.Color,title:\"Label Color\",optional:true},labelFont:{type:ControlType.Font,title:\"Label Font\",controls:\"extended\",displayFontSize:true,displayTextAlignment:false,defaultValue:{fontSize:14,fontWeight:600}},iconType:{type:ControlType.Enum,title:\"Icon Type\",options:[\"default\",\"custom\"],optionTitles:[\"Default\",\"Icon Svg\"],defaultValue:\"default\",displaySegmentedControl:true},customIcon:{type:ControlType.String,title:\"Custom Icon\",description:\"Paste SVG code here\",displayTextArea:true,hidden:props=>props.iconType!==\"custom\"}};/**\r\n * Focus state styling controls\r\n */export const FOCUS_STYLE_CONTROLS={backgroundColor:{type:ControlType.Color,title:\"Fill\",optional:true},textColor:{type:ControlType.Color,title:\"Text Color\",optional:true},placeholderColor:{type:ControlType.Color,title:\"Placeholder Color\",optional:true},border:{type:ControlType.Border,title:\"Border\",optional:true},shadows:{type:ControlType.BoxShadow,title:\"Shadows\",optional:true},transition:{type:ControlType.Transition,title:\"Transition\",optional:true}};/**\r\n * Helper to create nested styling control group\r\n * Usage: styling: createStylingControl({ inputStyles, labelStyles, errorStyles })\r\n */export function createStylingControl(controls){return{type:ControlType.Object,buttonTitle:\"Styles\",optional:true,controls};}/**\r\n * Single checkbox style controls\r\n */export const CHECKBOX_STYLE_CONTROLS={// Checkbox box styling\nsize:{type:ControlType.Number,title:\"Size\",min:12,max:40,step:1,defaultValue:20,displayStepper:true},borderRadius:{type:ControlType.BorderRadius,title:\"Border Radius\",defaultValue:4},border:{type:ControlType.Border,title:\"Border\",defaultValue:{borderWidth:2,borderColor:\"#E8E8E8\",borderStyle:\"solid\"}},checkedColor:{type:ControlType.Color,title:\"Checked Color\",defaultValue:\"#0099FF\"},// Checkbox visibility\nshowCheckbox:{type:ControlType.Boolean,title:\"Show Checkbox\",defaultValue:true,description:\"Hide to show text only\"},// Icon options\niconType:{type:ControlType.Enum,title:\"Icon Type\",options:[\"check\",\"circle\",\"x\",\"hidden\",\"custom\"],optionTitles:[\"Check ✓\",\"Circle ●\",\"X ✗\",\"Hidden\",\"Custom SVG\"],defaultValue:\"check\"},checkmarkColor:{type:ControlType.Color,title:\"Icon Color\",defaultValue:\"#FFFFFF\"},customIcon:{type:ControlType.String,title:\"Custom Icon SVG\",description:\"Paste SVG code here\",displayTextArea:true,hidden:props=>props.iconType!==\"custom\"},// Container styling\ncontainerBackground:{type:ControlType.Color,title:\"Container Background\",optional:true},containerBorder:{type:ControlType.Border,title:\"Container Border\",optional:true},containerBorderRadius:{type:ControlType.BorderRadius,title:\"Container Radius\",defaultValue:0},containerPadding:{type:ControlType.Padding,title:\"Container Padding\",defaultValue:\"0px\"},// Checked state container styling\ncheckedContainerBackground:{type:ControlType.Color,title:\"Checked Background\",optional:true},checkedContainerBorder:{type:ControlType.Border,title:\"Checked Border\",optional:true},checkboxLabelGap:{type:ControlType.Number,title:\"Checkbox-Label Gap\",min:0,max:24,step:1,defaultValue:10,displayStepper:true}};/**\r\n * Single checkbox validation controls\r\n */export const CHECKBOX_VALIDATION_CONTROLS={requiredMessage:{type:ControlType.String,title:\"Required Error\",placeholder:\"This field must be checked\"},successMessage:{type:ControlType.String,title:\"Success Message\",placeholder:\"Checked!\"}};/**\r\n * Checkbox group style controls (includes gap)\r\n */export const CHECKBOX_GROUP_STYLE_CONTROLS={selectionBox:{type:ControlType.Object,title:\"Selection Box\",description:\"Style the square checkbox and check icon.\",optional:true,controls:{size:{type:ControlType.Number,title:\"Box Size\",min:12,max:40,step:1,defaultValue:20,displayStepper:true,description:\"Size of the checkbox square.\"},borderRadius:{type:ControlType.BorderRadius,title:\"Corner Roundness\",defaultValue:4,description:\"Roundness of the checkbox corners.\"},border:{type:ControlType.Border,title:\"Border\",defaultValue:{borderWidth:2,borderColor:\"#E8E8E8\",borderStyle:\"solid\"}},checkedColor:{type:ControlType.Color,title:\"Checked Color\",defaultValue:\"#0099FF\",description:\"Color when selected.\"},hoverCheckedColor:{type:ControlType.Color,title:\"Checked Hover Color\",optional:true,description:\"Optional color when selected and hovered.\"},showCheckbox:{type:ControlType.Boolean,title:\"Show Checkbox\",defaultValue:true,description:\"Turn off for text-only choices.\"},iconType:{type:ControlType.Enum,title:\"Icon Type\",options:[\"check\",\"circle\",\"x\",\"hidden\",\"custom\"],optionTitles:[\"Check\",\"Circle\",\"X\",\"Hidden\",\"Custom SVG\"],defaultValue:\"check\",description:\"Icon shown inside checked box.\"},checkmarkColor:{type:ControlType.Color,title:\"Icon Color\",defaultValue:\"#FFFFFF\"},customIcon:{type:ControlType.String,title:\"Custom Icon SVG\",description:\"Paste SVG code if Icon Type is Custom SVG.\",displayTextArea:true,hidden:props=>props.iconType!==\"custom\"}}},optionCard:{type:ControlType.Object,title:\"Option Card\",description:\"Style the row/card that holds each option.\",optional:true,controls:{background:{type:ControlType.Color,title:\"Background\",optional:true},border:{type:ControlType.Border,title:\"Border\",optional:true},borderRadius:{type:ControlType.BorderRadius,title:\"Corner Roundness\",defaultValue:0},padding:{type:ControlType.Padding,title:\"Padding\",defaultValue:\"0px\"},hoverBackground:{type:ControlType.Color,title:\"Hover Bg\",optional:true},hoverBorder:{type:ControlType.Border,title:\"Hover Border\",optional:true},checkedBackground:{type:ControlType.Color,title:\"Checked Background\",optional:true},checkedBorder:{type:ControlType.Border,title:\"Checked Border\",optional:true},checkedHoverBackground:{type:ControlType.Color,title:\"Checked Hover Bg\",optional:true},checkedHoverBorder:{type:ControlType.Border,title:\"Checked Hover Border\",optional:true}}},optionText:{type:ControlType.Object,title:\"Option Text\",description:\"Typography and colors for option labels.\",optional:true,controls:{font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",displayFontSize:true,displayTextAlignment:false,defaultValue:{fontSize:12,fontWeight:400}},color:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#999999\"},checkedColor:{type:ControlType.Color,title:\"Checked Text Color\",optional:true},hoverColor:{type:ControlType.Color,title:\"Hover Color\",optional:true},checkedHoverColor:{type:ControlType.Color,title:\"Checked Hover\",optional:true},prefixColor:{type:ControlType.Color,title:\"Prefix Color\",optional:true},suffixColor:{type:ControlType.Color,title:\"Suffix Color\",optional:true},prefixFont:{type:ControlType.Font,title:\"Prefix Font\",controls:\"extended\",displayFontSize:true,displayTextAlignment:false,defaultValue:{fontSize:12,fontWeight:400}},suffixFont:{type:ControlType.Font,title:\"Suffix Font\",controls:\"extended\",displayFontSize:true,displayTextAlignment:false,defaultValue:{fontSize:12,fontWeight:400}}}},spacing:{type:ControlType.Object,title:\"Spacing\",description:\"Control distances between items and text.\",optional:true,controls:{optionGap:{type:ControlType.Number,title:\"Gap Between Choices\",defaultValue:12,displayStepper:true},checkboxLabelGap:{type:ControlType.Number,title:\"Box to Label Gap\",defaultValue:10,displayStepper:true},prefixSuffixGap:{type:ControlType.Number,title:\"Prefix/Suffix Gap\",defaultValue:4,displayStepper:true}}}};/**\r\n * Checkbox group validation controls (includes min/max selection)\r\n */export const CHECKBOX_GROUP_VALIDATION_CONTROLS={requiredMessage:{type:ControlType.String,title:\"Required Error\",placeholder:\"Please select at least one option\"},minSelected:{type:ControlType.Number,title:\"Min Selections\",min:0,description:\"Minimum number of selections required\"},maxSelected:{type:ControlType.Number,title:\"Max Selections\",min:1,description:\"Maximum number of selections allowed\"},minMessage:{type:ControlType.String,title:\"Min Error\",placeholder:\"Select at least {min} options\"},maxMessage:{type:ControlType.String,title:\"Max Error\",placeholder:\"Select at most {max} options\"},successMessage:{type:ControlType.String,title:\"Success Message\",placeholder:\"Great choice!\"}};\nexport const __FramerMetadata__ = {\"exports\":{\"MULTI_STEP_NEXT_RULES_CONTROL\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"BASE_INPUT_STYLE_CONTROLS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FOCUS_STYLE_CONTROLS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"VALIDATION_TOGGLE_CONTROLS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CHECKBOX_GROUP_VALIDATION_CONTROLS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CHECKBOX_LABEL_STYLE_CONTROLS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"MULTI_STEP_MATCH_CONTROL\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SHOW_IF_MATCH_CONTROL\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ERROR_STYLE_CONTROLS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"MULTI_STEP_CONDITION_CONTROL\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"MULTI_STEP_PREVIOUS_RULES_CONTROL\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"MULTI_STEP_SUBMIT_RULES_CONTROL\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CHECKBOX_STYLE_CONTROLS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"createStylingControl\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SHOW_IF_ACTION_CONTROL\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"LABEL_STYLE_CONTROLS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CHECKBOX_VALIDATION_CONTROLS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"VALIDATION_CONTROLS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SUCCESS_STYLE_CONTROLS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SHOW_IF_CONTROL\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CHECKBOX_GROUP_STYLE_CONTROLS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"STORE_CONFIG_CONTROL\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Property_controls.map","/**\r\n * HiddenField - Utility component to hide Framer's container wrapper\r\n * \r\n * When a FormKit field is conditionally hidden, this component returns\r\n * a marker element with CSS that hides the parent Framer container.\r\n * This prevents empty gaps in the layout.\r\n */// CSS to hide Framer container wrapper when field is hidden\nimport{jsx as _jsx}from\"react/jsx-runtime\";const HIDDEN_FIELD_CSS=`\r\n[class*=\"-container\"]:has([data-formkit-hidden=\"true\"]) {\r\n    margin: 0 !important;\r\n    padding: 0 !important;\r\n    min-height: 0 !important;\r\n    min-width: 0 !important;\r\n}\r\n\r\n[class*=\"-container\"]:has([data-formkit-hidden=\"true\"]):not(:has([class*=\"-container\"] [data-formkit-hidden=\"true\"])) {\r\n    display: none !important;\r\n}\r\n    \r\n`;// Track if CSS has been injected (singleton pattern)\nlet cssInjected=false;/**\r\n * Injects global CSS once to hide Framer containers with hidden FormKit fields\r\n */export const injectHiddenFieldCSS=()=>{if(cssInjected)return;if(typeof document===\"undefined\")return;const style=document.createElement(\"style\");style.setAttribute(\"data-formkit-hidden-css\",\"true\");style.textContent=HIDDEN_FIELD_CSS;document.head.appendChild(style);cssInjected=true;};/**\r\n * Returns a hidden marker element that triggers CSS to hide parent container.\r\n * Use this instead of `return null` when conditionally hiding a field.\r\n * \r\n * @example\r\n * if (!isVisible) return <HiddenFieldMarker />\r\n */export const HiddenFieldMarker=()=>{// Inject CSS on first render (if not already injected)\ninjectHiddenFieldCSS();return /*#__PURE__*/_jsx(\"div\",{className:\"sithick\",\"data-formkit-hidden\":\"true\",style:{display:\"none\"},\"aria-hidden\":\"true\"});};export default HiddenFieldMarker;\nexport const __FramerMetadata__ = {\"exports\":{\"HiddenFieldMarker\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"injectHiddenFieldCSS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HiddenFieldMarker.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";export const IconCheck=props=>/*#__PURE__*/_jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",...props,children:/*#__PURE__*/_jsx(\"polyline\",{points:\"20 6 9 17 4 12\"})});export const IconAlert=props=>/*#__PURE__*/_jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"14\",height:\"14\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",...props,children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"12\",cy:\"12\",r:\"10\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"12\",y1:\"8\",x2:\"12\",y2:\"12\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"12\",y1:\"16\",x2:\"12.01\",y2:\"16\"})]});export const ClockIcon=props=>/*#__PURE__*/_jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",...props,children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"12\",cy:\"12\",r:\"10\"}),/*#__PURE__*/_jsx(\"polyline\",{points:\"12 6 12 12 16 14\"})]});export const CalendarIcon=props=>/*#__PURE__*/_jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",...props,children:[/*#__PURE__*/_jsx(\"rect\",{x:\"3\",y:\"4\",width:\"18\",height:\"18\",rx:\"2\",ry:\"2\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"16\",y1:\"2\",x2:\"16\",y2:\"6\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"8\",y1:\"2\",x2:\"8\",y2:\"6\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"3\",y1:\"10\",x2:\"21\",y2:\"10\"})]});export const ChevronIcon=props=>/*#__PURE__*/_jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"12\",height:\"12\",viewBox:\"0 0 12 12\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\",...props,children:/*#__PURE__*/_jsx(\"path\",{d:\"M2.5 4.5L6 8L9.5 4.5\"})});export const renderIcon=({iconType=\"default\",customIcon,DefaultIcon,props={}})=>{if(iconType===\"custom\"&&customIcon){// If it looks like an SVG tag, render as HTML\nif(customIcon.trim().startsWith(\"<svg\")){const normalizeSvgSize=svg=>svg.replace(/<svg\\b([^>]*)>/i,(_match,attrs)=>{let cleanedAttrs=attrs.replace(/\\s(width|height)=[\"'][^\"']*[\"']/gi,\"\").replace(/\\sstyle=[\"']([^\"']*)[\"']/i,(_styleMatch,styleValue)=>{const filteredStyle=String(styleValue).replace(/(?:^|;)\\s*(width|height)\\s*:\\s*[^;]+;?/gi,\"\").trim();return filteredStyle?` style=\"${filteredStyle}\"`:\"\";});return`<svg${cleanedAttrs} width=\"100%\" height=\"100%\" preserveAspectRatio=\"xMidYMid meet\">`;});// Process SVG to replace hardcoded colors with currentColor\n// This allows the icon to inherit color from the parent element\nconst processedSvg=normalizeSvgSize(customIcon// Replace fill colors (hex, rgb, named colors) with currentColor\n.replace(/fill=[\"']#[0-9a-fA-F]{3,6}[\"']/gi,'fill=\"currentColor\"').replace(/fill=[\"']rgb\\([^)]+\\)[\"']/gi,'fill=\"currentColor\"').replace(/fill=[\"'](black|white|red|blue|green|gray|grey)[\"']/gi,'fill=\"currentColor\"')// Replace stroke colors with currentColor\n.replace(/stroke=[\"']#[0-9a-fA-F]{3,6}[\"']/gi,'stroke=\"currentColor\"').replace(/stroke=[\"']rgb\\([^)]+\\)[\"']/gi,'stroke=\"currentColor\"').replace(/stroke=[\"'](black|white|red|blue|green|gray|grey)[\"']/gi,'stroke=\"currentColor\"'));const htmlProps=props||{};const{style:propStyle,...restHtmlProps}=htmlProps;return /*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:\"100%\",height:\"100%\",overflow:\"hidden\",color:\"currentColor\",...propStyle||{}},dangerouslySetInnerHTML:{__html:processedSvg},...restHtmlProps});}// Assume it's an image URL\nreturn /*#__PURE__*/_jsx(\"img\",{src:customIcon,alt:\"Icon\",style:{width:\"100%\",height:\"100%\",objectFit:\"contain\"},...props});}// Default\nreturn /*#__PURE__*/_jsx(DefaultIcon,{...props});};\nexport const __FramerMetadata__ = {\"exports\":{\"CalendarIcon\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ChevronIcon\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"IconAlert\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ClockIcon\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"IconCheck\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"renderIcon\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Icons.map","const RTL_LANG_PATTERN=/^(ar|fa|he|ku|ps|sd|ug|ur)\\b/i;const RTL_TEXT_PATTERN=/[\\u0590-\\u05FF\\u0600-\\u06FF\\u0750-\\u077F\\u08A0-\\u08FF\\uFB1D-\\uFDFF\\uFE70-\\uFEFF]/;const LTR_TEXT_PATTERN=/[A-Za-z\\u00C0-\\u024F]/;export function getFormKitDirection(style,textSamples=[]){const explicitDirection=style?.direction;if(explicitDirection===\"rtl\"||explicitDirection===\"ltr\"){return explicitDirection;}// In Framer Canvas, translated content can change before the page/document\n// direction updates. Prefer the field's own content when we have it.\nfor(const sample of textSamples){if(sample===null||sample===undefined)continue;const text=String(sample).trim();if(!text)continue;if(RTL_TEXT_PATTERN.test(text))return\"rtl\";if(LTR_TEXT_PATTERN.test(text))return\"ltr\";}if(typeof document!==\"undefined\"){const documentDirection=document.documentElement?.dir||document.body?.dir;if(documentDirection===\"rtl\"||documentDirection===\"ltr\"){return documentDirection;}const documentLanguage=document.documentElement?.lang||document.body?.lang||\"\";if(RTL_LANG_PATTERN.test(documentLanguage)){return\"rtl\";}}return\"ltr\";}export function getTextAlignForDirection(textAlign,direction){if(textAlign)return textAlign;return direction===\"rtl\"?\"right\":\"left\";}\nexport const __FramerMetadata__ = {\"exports\":{\"getTextAlignForDirection\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FormKitDirection\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getFormKitDirection\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Direction.map","/**\r\n * FormKitSelect - Custom Select Dropdown Field\r\n *\r\n * A fully customizable select dropdown with complete color styling control.\r\n *\r\n * Features:\r\n * - Custom dropdown (not native select) for full styling control\r\n * - Dropdown background, option colors, hover states all configurable\r\n * - Click outside to close\r\n * - Keyboard navigation (arrow keys, enter, escape)\r\n * - Portal rendering to avoid overflow clipping\r\n * - Auto-sync with form store via useFormField hook\r\n * - Conditional visibility (Array/Object format only)\r\n *\r\n*/import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useEffect,useState,useRef,useCallback}from\"react\";import{useFormField}from\"https://framerusercontent.com/modules/QcJOsISgPpDHi68MFiJ7/iSwiu9OhhEpwJ9bUO8oz/Hooks.js\";import{getFormStore,getFormStoreKey}from\"https://framerusercontent.com/modules/W9pGMfwOEUT2E0G0vdr3/42YKtSLeppXsa3v6m16i/Store_management.js\";import{evaluateFieldState,getConditionalBadge}from\"https://framerusercontent.com/modules/YQMwVuIkIDYjLHJOwEnu/E43Ih1OWNh9ZYDxH2sAu/Conditions.js\";import{SHOW_IF_CONTROL,SHOW_IF_MATCH_CONTROL,SHOW_IF_ACTION_CONTROL,STORE_CONFIG_CONTROL,LABEL_STYLE_CONTROLS,ERROR_STYLE_CONTROLS,SUCCESS_STYLE_CONTROLS,FOCUS_STYLE_CONTROLS,createStylingControl}from\"https://framerusercontent.com/modules/gWXlNkIcFnVLxXMR7ktn/JtLdSfrUYaW9eElJLaFM/Property_controls.js\";import{HiddenFieldMarker}from\"https://framerusercontent.com/modules/zT6ckO4RKI5zB9JzgGVW/5pPr41RBexGJfYLsBNcj/HiddenFieldMarker.js\";import{IconCheck,IconAlert,ChevronIcon,renderIcon}from\"https://framerusercontent.com/modules/hSeRQvQLiNwfAzfTZN4C/2faSrR7PxMT7RJTYjc17/Icons.js\";import{getFormKitDirection,getTextAlignForDirection}from\"https://framerusercontent.com/modules/TnGeMluKUv3ZoPWbVX5z/6AL0m280OlZ8wllCKODq/Direction.js\";/**\r\n * @framerIntrinsicWidth 300\r\n * @framerSupportedLayoutHeight auto\r\n * @framerSupportedLayoutWidth any-prefer-fixed\r\n * @framerDisableUnlink\r\n */export default function FormKitSelect(props){const{// Main props\nname,label,placeholder=\"Select an option\",required=false,// Select-specific\noptions=[{label:\"Option 1\"},{label:\"Option 2\"},{label:\"Option 3\"}],// Validation\nvalidation={},// Styling\nstyling={},// Conditional visibility\nshowIf,showIfMatch=\"all\",showIfAction=\"show\",// Store\nformId=\"default\",// Placeholder\nshowPlaceholderOption=false,openDropdownOnCanvas=false,// Framer\nstyle}=props;// Local state\nconst[isOpen,setIsOpen]=useState(false);const[direction,setDirection]=useState(\"down\");const[selectedValue,setSelectedValue]=useState(\"\");const[highlightedIndex,setHighlightedIndex]=useState(-1);// Refs\nconst wrapperRef=useRef(null);const dropdownRef=useRef(null);// Destructure validation options\nconst{validateOnBlur=true,validateOnChange=false,requiredMessage,successMessage}=validation;// Extract nested styling with defaults\nconst{selectStyles:rawSelectStyles={},dropdownStyles={},labelStyles={},errorStyles={},successStyles={},focusStyles={},groupHeaderStyles={}}=styling;// Merge selectStyles and dropdownStyles for easier access\nconst selectStyles={...rawSelectStyles,...dropdownStyles};// Warn if name contains spaces\nuseEffect(()=>{if(name.includes(\" \")){console.warn(`FormKit Warning: Field name \"${name}\" contains spaces. `+`Use camelCase (firstName) or snake_case (first_name) instead.`);}},[name]);// Build validation config\nconst validationConfig={required,requiredMessage};// Get store state first to evaluate conditions before useFormField\nconst actualFormId=formId||\"default\";const useStore=getFormStore(getFormStoreKey(actualFormId,\"auto\"));const[storeState]=useStore();// Detect render mode\nconst isCanvas=RenderTarget.current()===RenderTarget.canvas;// Evaluate field state BEFORE useFormField to determine skipValidation\nconst fieldState=evaluateFieldState(showIf,storeState?.data||{},showIfMatch,showIfAction);// Determine visibility and disabled state\nlet isVisible=true;let isDisabled=false;let showBadge=false;let badgeText=\"\";if(isCanvas){isVisible=true;isDisabled=false;// Use helper function for badge logic\nconst badge=getConditionalBadge(showIf,fieldState,showIfAction);showBadge=badge.showBadge;badgeText=badge.badgeText;}else{isVisible=fieldState.isVisible;isDisabled=fieldState.isDisabled;}// Skip validation if field is hidden or disabled\nconst shouldSkipValidation=!isCanvas&&(!isVisible||isDisabled);// Use custom hook for form field logic\nconst{value,error,isTouched,isValidating,hasValidated,state,handleChange,handleBlur}=useFormField({name,formId,storeKey:\"auto\",validation:validationConfig,validateOnBlur,validateOnChange,skipValidation:shouldSkipValidation,label});// Sync local state with store value\nuseEffect(()=>{if(value===undefined||value===null||value===\"\"){setSelectedValue(\"\");return;}setSelectedValue(String(value));},[value]);// Close dropdown when clicking outside\nuseEffect(()=>{const handleClickOutside=event=>{if(wrapperRef.current&&!wrapperRef.current.contains(event.target)){setIsOpen(false);}};if(isOpen){document.addEventListener(\"mousedown\",handleClickOutside);}return()=>{document.removeEventListener(\"mousedown\",handleClickOutside);};},[isOpen]);// Keyboard navigation\nconst handleKeyDown=useCallback(e=>{if(isDisabled)return;switch(e.key){case\"Enter\":case\" \":e.preventDefault();if(isOpen&&highlightedIndex>=0){const option=options[highlightedIndex];handleOptionSelect(option.value||option.label);}else{toggleDropdown();}break;case\"Escape\":setIsOpen(false);break;case\"ArrowDown\":e.preventDefault();if(!isOpen){toggleDropdown();}else{setHighlightedIndex(prev=>prev<options.length-1?prev+1:0);}break;case\"ArrowUp\":e.preventDefault();if(isOpen){setHighlightedIndex(prev=>prev>0?prev-1:options.length-1);}break;}},[isOpen,highlightedIndex,options,isDisabled]);// Handle option selection\nconst handleOptionSelect=optionValue=>{setSelectedValue(optionValue);handleChange(optionValue);setTimeout(()=>handleBlur(optionValue),0);setIsOpen(false);setHighlightedIndex(-1);};// Toggle dropdown with auto-direction\nconst toggleDropdown=()=>{if(isDisabled)return;if(!isOpen&&wrapperRef.current){const rect=wrapperRef.current.getBoundingClientRect();const spaceBelow=window.innerHeight-rect.bottom;const spaceAbove=rect.top;const maxHeight=(selectStyles.dropdownMaxHeight??240)+(selectStyles.dropdownMarginTop??4);if(spaceBelow<maxHeight&&spaceAbove>spaceBelow){setDirection(\"up\");}else{setDirection(\"down\");}}setIsOpen(!isOpen);};// Get selected label\nconst getSelectedLabel=()=>{const selectedOption=options.find(opt=>(opt.value||opt.label)===selectedValue);return selectedOption?.label||selectedValue||\"\";};if(!isVisible)return /*#__PURE__*/_jsx(HiddenFieldMarker,{});// Determine if we should show success message\nconst shouldShowSuccess=hasValidated&&!isValidating&&!error&&successMessage&&value&&value!==\"\";const successDisplayMode=successStyles.displayMode??\"both\";const showInlineSuccessIcon=shouldShowSuccess&&(successDisplayMode===\"both\"||successDisplayMode===\"icon\");const showSuccessMessage=shouldShowSuccess&&successMessage&&(successDisplayMode===\"both\"||successDisplayMode===\"message\");const componentDirection=getFormKitDirection(style,[label,placeholder,successMessage,selectedValue,...options.flatMap(option=>[option.label,option.value,option.group])]);const isDropdownVisible=isOpen||isCanvas&&openDropdownOnCanvas;const triggerTextAlign=getTextAlignForDirection(selectStyles.textAlign,componentDirection);const arrowPosition=selectStyles.arrowPosition??(componentDirection===\"rtl\"?\"left\":\"right\");const hasArrow=selectStyles.arrowIcon?.type!==\"none\";const rawTriggerPadding=selectStyles.padding??\"12px\";const parseHorizontalPadding=(paddingValue,side)=>{if(typeof paddingValue===\"number\")return paddingValue;if(typeof paddingValue!==\"string\")return 12;const parts=paddingValue.trim().split(/\\s+/);const getNumeric=part=>{if(!part)return 12;const parsed=parseFloat(part);return Number.isFinite(parsed)?parsed:12;};if(parts.length===1)return getNumeric(parts[0]);if(parts.length===2)return getNumeric(parts[1]);if(parts.length===3)return getNumeric(parts[1]);return side===\"left\"?getNumeric(parts[3]):getNumeric(parts[1]);};const triggerPaddingLeft=parseHorizontalPadding(rawTriggerPadding,\"left\");const triggerPaddingRight=parseHorizontalPadding(rawTriggerPadding,\"right\");const leftInset=hasArrow&&arrowPosition===\"left\"?16:0;const rightInset=(hasArrow&&arrowPosition===\"right\"?16:0)+(showInlineSuccessIcon?24:0);const successIconOffset=componentDirection===\"rtl\"?triggerPaddingLeft+(hasArrow&&arrowPosition===\"left\"?24:0):triggerPaddingRight+(hasArrow&&arrowPosition===\"right\"?24:0);// === STYLING ===\n// Trigger button styles\nconst triggerStyle={width:\"100%\",padding:rawTriggerPadding,fontSize:selectStyles.font?.fontSize??12,fontFamily:selectStyles.font?.fontFamily??\"Inter\",fontWeight:selectStyles.font?.fontWeight??400,lineHeight:selectStyles.font?.lineHeight??undefined,letterSpacing:selectStyles.font?.letterSpacing??undefined,color:selectedValue?selectStyles.textColor??\"#999999\":isDropdownVisible&&selectStyles.placeholderActiveColor?selectStyles.placeholderActiveColor:selectStyles.placeholderColor??\"#999999\",backgroundColor:isDropdownVisible&&focusStyles.backgroundColor?focusStyles.backgroundColor:isDisabled?\"#F5F5F5\":selectStyles.backgroundColor??\"rgba(187, 187, 187, 0.15)\",borderWidth:\"1px\",borderStyle:\"solid\",...isDropdownVisible&&focusStyles.border?focusStyles.border:selectStyles.border,borderColor:isCanvas?selectStyles.border?.borderColor??\"rgba(187, 187, 187, 0.15)\":shouldShowSuccess&&successStyles.inputBorderColor?successStyles.inputBorderColor:error&&(isTouched||state?.submitAttempted)?selectStyles.errorBorderColor??\"#FF4444\":isDropdownVisible?focusStyles.border?.borderColor??selectStyles.focusBorderColor??\"#0099FF\":selectStyles.border?.borderColor??\"rgba(187, 187, 187, 0.15)\",borderRadius:selectStyles.borderRadius??12,outline:\"none\",cursor:isDisabled?\"not-allowed\":\"pointer\",opacity:isDisabled?selectStyles.disabledOpacity??.5:1,boxSizing:\"border-box\",textAlign:triggerTextAlign,display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",transition:focusStyles.transition??\"border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease\",position:\"relative\",boxShadow:isDropdownVisible&&focusStyles.shadows?Array.isArray(focusStyles.shadows)?focusStyles.shadows.join(\", \"):focusStyles.shadows:undefined};// Dropdown styles\nconst isUp=direction===\"up\";const dropdownStyle={position:\"absolute\",top:isUp?\"auto\":\"100%\",bottom:isUp?\"100%\":\"auto\",left:0,right:0,marginTop:isUp?0:selectStyles.dropdownMarginTop??4,marginBottom:isUp?selectStyles.dropdownMarginTop??4:0,padding:selectStyles.dropdownPadding??\"0px\",backgroundColor:selectStyles.dropdownBackgroundColor??\"#FFFFFF\",...selectStyles.dropdownBorder,borderRadius:selectStyles.dropdownBorderRadius??12,boxShadow:selectStyles.dropdownShadow??(isUp?\"0 -4px 12px rgba(0,0,0,0.15)\":\"0 4px 12px rgba(0,0,0,0.15)\"),maxHeight:selectStyles.dropdownMaxHeight??240,overflowY:\"auto\",zIndex:9999,direction:componentDirection};// Label styles\nconst labelStyle={display:\"block\",fontSize:shouldShowSuccess&&successStyles.labelFont?.fontSize?successStyles.labelFont.fontSize:labelStyles.font?.fontSize??12,fontWeight:shouldShowSuccess&&successStyles.labelFont?.fontWeight?successStyles.labelFont.fontWeight:labelStyles.font?.fontWeight??\"500\",fontFamily:shouldShowSuccess&&successStyles.labelFont?.fontFamily?successStyles.labelFont.fontFamily:labelStyles.font?.fontFamily??\"Inter\",lineHeight:labelStyles.font?.lineHeight??undefined,letterSpacing:labelStyles.font?.letterSpacing??undefined,textAlign:getTextAlignForDirection(labelStyles.textAlign,componentDirection),textTransform:labelStyles.textTransform??\"none\",color:shouldShowSuccess&&successStyles.labelColor?successStyles.labelColor:labelStyles.color??\"#888888\",marginBottom:labelStyles.marginBottom??8,transition:\"color 0.2s ease\"};// Error styles\nconst errorStyle={fontSize:errorStyles.font?.fontSize??12,fontWeight:errorStyles.font?.fontWeight??undefined,fontFamily:errorStyles.font?.fontFamily??\"inherit\",color:errorStyles.color??\"#FF4444\",marginTop:errorStyles.marginTop??4};// Success styles\nconst successStyle={fontSize:successStyles.messageFont?.fontSize??12,fontWeight:successStyles.messageFont?.fontWeight??undefined,fontFamily:successStyles.messageFont?.fontFamily??undefined,color:successStyles.messageColor??\"#22C55E\",marginTop:successStyles.marginTop??4};// Option styles helper\nconst getOptionStyle=(optionValue,index)=>{const isSelected=optionValue===selectedValue;const isHighlighted=index===highlightedIndex;const isPlaceholder=index===-2;const usePlaceholderStyles=isPlaceholder&&selectStyles.showPlaceholderOptionControl===true;return{padding:selectStyles.optionPadding??\"10px 12px 10px 12px\",fontSize:selectStyles.optionFont?.fontSize??12,fontFamily:selectStyles.optionFont?.fontFamily??\"inherit\",fontWeight:selectStyles.optionFont?.fontWeight??400,lineHeight:selectStyles.optionFont?.lineHeight??undefined,letterSpacing:selectStyles.optionFont?.letterSpacing??undefined,textAlign:triggerTextAlign,cursor:\"pointer\",transition:\"background-color 0.15s, color 0.15s\",color:isSelected?selectStyles.optionSelectedTextColor??\"#FFFFFF\":isHighlighted?usePlaceholderStyles?selectStyles.placeholderOptionHoverTextColor??selectStyles.optionHoverTextColor??\"#333333\":selectStyles.optionHoverTextColor??\"#333333\":usePlaceholderStyles?selectStyles.placeholderOptionTextColor??selectStyles.optionTextColor??\"#333333\":selectStyles.optionTextColor??\"#333333\",backgroundColor:isSelected?selectStyles.optionSelectedBackgroundColor??\"#0099FF\":isHighlighted?usePlaceholderStyles?selectStyles.placeholderOptionHoverBackgroundColor??selectStyles.optionHoverBackgroundColor??\"#F0F0F0\":selectStyles.optionHoverBackgroundColor??\"#F0F0F0\":usePlaceholderStyles?selectStyles.placeholderOptionBackgroundColor??selectStyles.optionBackgroundColor??\"transparent\":selectStyles.optionBackgroundColor??\"transparent\"};};// Group header styles\nconst groupHeaderStyle={padding:groupHeaderStyles.groupHeaderPadding??\"8px 12px 4px 12px\",fontSize:groupHeaderStyles.groupHeaderFont?.fontSize??(selectStyles.optionFont?.fontSize??12)-2,fontFamily:groupHeaderStyles.groupHeaderFont?.fontFamily??selectStyles.optionFont?.fontFamily??\"inherit\",fontWeight:groupHeaderStyles.groupHeaderFont?.fontWeight??600,color:groupHeaderStyles.groupHeaderColor??(selectStyles.optionTextColor?`${selectStyles.optionTextColor}99`// Add some transparency\n:\"#666666\"),textTransform:groupHeaderStyles.groupHeaderTextTransform??\"uppercase\",letterSpacing:groupHeaderStyles.groupHeaderFont?.letterSpacing??\"0.5px\",borderTopWidth:groupHeaderStyles.groupHeaderBorderTop?.borderTopWidth??groupHeaderStyles.groupHeaderBorderTop?.borderWidth,borderTopColor:groupHeaderStyles.groupHeaderBorderTop?.borderTopColor??groupHeaderStyles.groupHeaderBorderTop?.borderColor,borderTopStyle:groupHeaderStyles.groupHeaderBorderTop?.borderTopStyle??groupHeaderStyles.groupHeaderBorderTop?.borderStyle,marginTop:groupHeaderStyles.groupHeaderMarginTop??4,pointerEvents:\"none\"};// First group header doesn't need top border/margin\nconst firstGroupHeaderStyle={...groupHeaderStyle,borderTop:\"none\",marginTop:0};// Render grouped options\nconst renderGroupedOptions=()=>{// Check if any options have groups\nconst hasGroups=options.some(opt=>opt.group);if(!hasGroups){// Simple rendering without groups\nconst items=options.map((option,index)=>{const optionValue=option.value||option.label;return /*#__PURE__*/_jsx(\"div\",{role:\"option\",\"aria-selected\":optionValue===selectedValue,onClick:()=>handleOptionSelect(optionValue),onMouseEnter:()=>setHighlightedIndex(index),onMouseLeave:()=>setHighlightedIndex(-1),style:getOptionStyle(optionValue,index),children:option.label},`${optionValue}-${index}`);});if(showPlaceholderOption&&placeholder){items.unshift(/*#__PURE__*/_jsx(\"div\",{role:\"option\",\"aria-selected\":selectedValue===\"\",onClick:()=>handleOptionSelect(\"\"),onMouseEnter:()=>setHighlightedIndex(-2),onMouseLeave:()=>setHighlightedIndex(-1),style:getOptionStyle(\"\",-2),children:placeholder},\"placeholder-option\"));}return items;}// Group options by their group name\nconst grouped={};const ungrouped=[];options.forEach((option,index)=>{if(option.group){if(!grouped[option.group]){grouped[option.group]=[];}grouped[option.group].push({option,originalIndex:index});}else{ungrouped.push({option,originalIndex:index});}});const elements=[];let isFirstGroup=true;// Render placeholder option if enabled\nif(showPlaceholderOption&&placeholder){elements.push(/*#__PURE__*/_jsx(\"div\",{role:\"option\",\"aria-selected\":selectedValue===\"\",onClick:()=>handleOptionSelect(\"\"),onMouseEnter:()=>setHighlightedIndex(-2),onMouseLeave:()=>setHighlightedIndex(-1),style:getOptionStyle(\"\",-2),children:placeholder},\"placeholder-option\"));isFirstGroup=false// Preceding group (if any) is no longer technically \"first\" in layout\n;}// Render ungrouped options first (if any)\nungrouped.forEach(({option,originalIndex})=>{const optionValue=option.value||option.label;elements.push(/*#__PURE__*/_jsx(\"div\",{role:\"option\",\"aria-selected\":optionValue===selectedValue,onClick:()=>handleOptionSelect(optionValue),onMouseEnter:()=>setHighlightedIndex(originalIndex),onMouseLeave:()=>setHighlightedIndex(-1),style:getOptionStyle(optionValue,originalIndex),children:option.label},`ungrouped-${optionValue}-${originalIndex}`));});// Render groups\nObject.entries(grouped).forEach(([groupName,groupOptions])=>{// Group header\nelements.push(/*#__PURE__*/_jsx(\"div\",{style:isFirstGroup&&ungrouped.length===0?firstGroupHeaderStyle:groupHeaderStyle,role:\"presentation\",children:groupName},`group-header-${groupName}`));isFirstGroup=false;// Group options\ngroupOptions.forEach(({option,originalIndex})=>{const optionValue=option.value||option.label;elements.push(/*#__PURE__*/_jsx(\"div\",{role:\"option\",\"aria-selected\":optionValue===selectedValue,onClick:()=>handleOptionSelect(optionValue),onMouseEnter:()=>setHighlightedIndex(originalIndex),onMouseLeave:()=>setHighlightedIndex(-1),style:getOptionStyle(optionValue,originalIndex),children:option.label},`${groupName}-${optionValue}-${originalIndex}`));});});return elements;};const fieldId=`${formId}-${name}`;return /*#__PURE__*/_jsxs(\"div\",{ref:wrapperRef,style:{...style,display:\"flex\",flexDirection:\"column\",width:\"100%\",position:\"relative\",direction:componentDirection},children:[isCanvas&&showBadge&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:-8,insetInlineEnd:-8,backgroundColor:\"#FF6B00\",color:\"white\",fontSize:10,fontWeight:600,padding:\"2px 6px\",borderRadius:4,zIndex:1e3,pointerEvents:\"none\",boxShadow:\"0 2px 4px rgba(0,0,0,0.2)\"},children:badgeText}),label&&/*#__PURE__*/_jsxs(\"label\",{htmlFor:fieldId,style:labelStyle,children:[label,required&&/*#__PURE__*/_jsx(\"span\",{style:{color:\"#FF4444\",marginInlineStart:4},children:\"*\"})]}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\"},children:[/*#__PURE__*/_jsxs(\"button\",{type:\"button\",id:fieldId,onClick:toggleDropdown,onKeyDown:handleKeyDown,onBlur:()=>{// Delay blur to allow option click\nsetTimeout(()=>{if(!isDropdownVisible)handleBlur();},150);},disabled:isDisabled,style:triggerStyle,\"aria-haspopup\":\"listbox\",\"aria-expanded\":isDropdownVisible,children:[/*#__PURE__*/_jsx(\"span\",{style:{flex:1,minWidth:0,textAlign:triggerTextAlign,overflow:\"hidden\",textOverflow:\"ellipsis\",whiteSpace:\"nowrap\",paddingLeft:triggerTextAlign===\"center\"?Math.max(leftInset,rightInset):leftInset,paddingRight:triggerTextAlign===\"center\"?Math.max(leftInset,rightInset):rightInset},children:selectedValue&&getSelectedLabel()?getSelectedLabel():placeholder||\"Select an option\"}),showInlineSuccessIcon&&/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",...componentDirection===\"rtl\"?{left:successIconOffset}:{right:successIconOffset},display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:successStyles.iconColor??successStyles.inputTextColor??\"#0099FF\",pointerEvents:\"none\",width:16,height:16},children:renderIcon({iconType:successStyles.iconType,customIcon:successStyles.customIcon,DefaultIcon:IconCheck})}),/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",left:arrowPosition===\"left\"?triggerPaddingLeft:\"auto\",right:arrowPosition===\"right\"?triggerPaddingRight:\"auto\",transform:`rotate(${isDropdownVisible?180:0}deg)`,transition:\"transform 0.2s ease\",display:\"flex\",alignItems:\"center\"},children:selectStyles.arrowIcon?.type!==\"none\"&&/*#__PURE__*/_jsx(\"div\",{style:{width:selectStyles.arrowIcon?.size??12,height:selectStyles.arrowIcon?.size??12,color:selectStyles.arrowIcon?.color??\"#666666\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:renderIcon({iconType:selectStyles.arrowIcon?.type===\"custom\"?\"custom\":\"default\",customIcon:selectStyles.arrowIcon?.customIcon,DefaultIcon:ChevronIcon,props:{width:\"100%\",height:\"100%\"}})})})]}),isDropdownVisible&&/*#__PURE__*/_jsx(\"div\",{ref:dropdownRef,role:\"listbox\",style:dropdownStyle,children:renderGroupedOptions()})]}),/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:name,value:value||\"\"}),error&&(isTouched||state?.submitAttempted)&&/*#__PURE__*/_jsxs(\"div\",{style:{...errorStyle,display:\"flex\",alignItems:\"center\",textTransform:\"lowercase\",gap:6},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:14,height:14},children:renderIcon({iconType:errorStyles.iconType,customIcon:errorStyles.customIcon,DefaultIcon:IconAlert})}),error]}),showSuccessMessage&&/*#__PURE__*/_jsx(\"div\",{style:successStyle,children:successMessage})]});}// === PROPERTY CONTROLS ===\n// Select-specific style controls with full color support\nconst SELECT_STYLE_CONTROLS={// Trigger button\nbackgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#F5F5F5\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#999999\"},placeholderColor:{type:ControlType.Color,title:\"Placeholder\",defaultValue:\"#999999\"},textAlign:{type:ControlType.Enum,title:\"Text Align\",options:[\"left\",\"center\",\"right\"],optionIcons:[\"text-align-left\",\"text-align-center\",\"text-align-right\"],defaultValue:\"left\",displaySegmentedControl:true},placeholderActiveColor:{type:ControlType.Color,title:\"Placeholder (Active)\",defaultValue:\"#999999\",description:\"Color of placeholder when dropdown is open\"},// Border\nborder:{type:ControlType.Border,title:\"Border\",defaultValue:{borderWidth:1,borderColor:\"rgba(187, 187, 187, 0.15)\",borderStyle:\"solid\"}},focusBorderColor:{type:ControlType.Color,title:\"Focus Border\",defaultValue:\"#0099FF\",hidden:()=>true},errorBorderColor:{type:ControlType.Color,title:\"Error Border\",defaultValue:\"#FF4444\"},borderRadius:{type:ControlType.Number,title:\"Radius\",min:0,max:50,step:1,defaultValue:12,displayStepper:true},padding:{type:ControlType.Padding,title:\"Padding\",defaultValue:\"12px 12px 12px 12px\"},arrowPosition:{type:ControlType.Enum,title:\"Arrow Position\",options:[\"right\",\"left\"],optionTitles:[\"Right\",\"Left\"],defaultValue:\"right\",displaySegmentedControl:true},arrowIcon:{type:ControlType.Object,title:\"Arrow Icon\",controls:{type:{type:ControlType.Enum,title:\"Type\",options:[\"default\",\"custom\",\"none\"],optionTitles:[\"Default\",\"Custom SVG\",\"None\"],defaultValue:\"default\"},customIcon:{type:ControlType.String,title:\"SVG Code\",defaultValue:\"\",displayTextArea:true,hidden:props=>props.type!==\"custom\"},size:{type:ControlType.Number,title:\"Size\",defaultValue:12,min:8,max:48,displayStepper:true},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#666666\"}}},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",displayFontSize:true,displayTextAlignment:false,defaultValue:{fontSize:12,fontWeight:400}},icon:{type:ControlType.ComponentInstance,title:\"Icon\",optional:true}};// Dropdown menu style controls\nconst DROPDOWN_STYLE_CONTROLS={dropdownPadding:{type:ControlType.Padding,title:\"Wrap Padding\",defaultValue:\"0px\"},dropdownMarginTop:{type:ControlType.Number,title:\"Margin\",min:-100,max:100,step:1,defaultValue:4,displayStepper:true},dropdownBackgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},dropdownBorder:{type:ControlType.Border,title:\"Border\",defaultValue:{borderWidth:1,borderColor:\"#E8E8E8\",borderStyle:\"solid\"}},dropdownBorderRadius:{type:ControlType.Number,title:\"Radius\",min:0,max:50,step:1,defaultValue:12,displayStepper:true},dropdownMaxHeight:{type:ControlType.Number,title:\"Max Height\",min:100,max:500,step:20,defaultValue:240,displayStepper:true},optionTextColor:{type:ControlType.Color,title:\"Option Text\",defaultValue:\"#333333\"},optionBackgroundColor:{type:ControlType.Color,title:\"Option BG\",defaultValue:\"#FFFFFF\"},optionHoverTextColor:{type:ControlType.Color,title:\"Hover Text\",defaultValue:\"#333333\"},optionHoverBackgroundColor:{type:ControlType.Color,title:\"Hover BG\",defaultValue:\"#F0F0F0\"},optionSelectedTextColor:{type:ControlType.Color,title:\"Selected Text\",defaultValue:\"#FFFFFF\"},optionSelectedBackgroundColor:{type:ControlType.Color,title:\"Selected BG\",defaultValue:\"#0099FF\"},optionPadding:{type:ControlType.Padding,title:\"Option Padding\",defaultValue:\"10px 12px 10px 12px\"},optionFont:{type:ControlType.Font,title:\"Option Font\",controls:\"extended\",displayFontSize:true,displayTextAlignment:false,defaultValue:{fontSize:12,fontWeight:400}},showPlaceholderOptionControl:{type:ControlType.Boolean,title:\"Show Placeholder Option\",defaultValue:false},placeholderOptionTextColor:{type:ControlType.Color,title:\"Placeholder Text\",defaultValue:\"#333333\",hidden:props=>props.showPlaceholderOptionControl!==true},placeholderOptionBackgroundColor:{type:ControlType.Color,title:\"Placeholder BG\",defaultValue:\"#FFFFFF\",hidden:props=>props.showPlaceholderOptionControl!==true},placeholderOptionHoverTextColor:{type:ControlType.Color,title:\"Placeholder Hover Text\",defaultValue:\"#333333\",hidden:props=>props.showPlaceholderOptionControl!==true},placeholderOptionHoverBackgroundColor:{type:ControlType.Color,title:\"Placeholder Hover BG\",defaultValue:\"#F0F0F0\",hidden:props=>props.showPlaceholderOptionControl!==true}};// Group header style controls\nconst GROUP_HEADER_STYLE_CONTROLS={groupHeaderFont:{type:ControlType.Font,title:\"Font\",controls:\"extended\",displayFontSize:true,displayTextAlignment:false,defaultValue:{fontSize:12,fontWeight:600}},groupHeaderColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"#666666\"},groupHeaderTextTransform:{type:ControlType.Enum,title:\"Transform\",options:[\"none\",\"uppercase\",\"lowercase\",\"capitalize\"],optionTitles:[\"None\",\"UPPERCASE\",\"lowercase\",\"Capitalize\"],defaultValue:\"uppercase\"},groupHeaderPadding:{type:ControlType.Padding,title:\"Padding\",defaultValue:\"8px 12px 4px 12px\"},groupHeaderMarginTop:{type:ControlType.Number,title:\"Margin Top\",min:0,max:50,step:1,defaultValue:4,displayStepper:true},// Border\ngroupHeaderBorderTop:{type:ControlType.Border,title:\"Border Top\",defaultValue:{borderWidth:1,borderColor:\"rgba(187, 187, 187, 0.15)\",borderStyle:\"solid\"}}};// Validation controls\nconst SELECT_VALIDATION_CONTROLS={validateOnBlur:{type:ControlType.Boolean,title:\"On Blur\",description:\"Validate when user leaves field\",defaultValue:true},validateOnChange:{type:ControlType.Boolean,title:\"On Change\",description:\"Real-time validation as user selects\",defaultValue:false},requiredMessage:{type:ControlType.String,title:\"Required Error\",placeholder:\"Please select an option\"},successMessage:{type:ControlType.String,title:\"Success Message\",placeholder:\"Great choice!\"}};// Property Controls\naddPropertyControls(FormKitSelect,{// FLAT - Main options\nname:{type:ControlType.String,title:\"Name\",defaultValue:\"selection\",description:\"Use camelCase or snake_case, NO SPACES\",placeholder:\"field-name\"},label:{type:ControlType.String,title:\"Label\",defaultValue:\"Selection\"},placeholder:{type:ControlType.String,title:\"Placeholder\",defaultValue:\"Select an option\"},showPlaceholderOption:{type:ControlType.Boolean,title:\"Show Placeholder\",defaultValue:false,description:\"Add an option to the list to clear selection\"},openDropdownOnCanvas:{type:ControlType.Boolean,title:\"Open in Canvas\",defaultValue:false,description:\"Keep dropdown open in Canvas for easy styling\"},// OPTIONS - Array of items\noptions:{type:ControlType.Array,title:\"Options\",control:{type:ControlType.Object,controls:{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Option\"},value:{type:ControlType.String,title:\"Value\",description:\"Optional - uses label if empty\"},group:{type:ControlType.String,title:\"Group\",description:\"Optional group name for organizing options\",placeholder:\"e.g. Category A\"}}},defaultValue:[{label:\"Option 1\"},{label:\"Option 2\"},{label:\"Option 3\"}]},required:{type:ControlType.Boolean,title:\"Required\",defaultValue:false},// NESTED - Validation\nvalidation:{type:ControlType.Object,buttonTitle:\"Validation\",optional:true,controls:SELECT_VALIDATION_CONTROLS},// NESTED - Styling organized into groups\nstyling:createStylingControl({selectStyles:{type:ControlType.Object,buttonTitle:\"Select Input\",optional:true,controls:SELECT_STYLE_CONTROLS},dropdownStyles:{type:ControlType.Object,buttonTitle:\"Dropdown & Options\",optional:true,controls:DROPDOWN_STYLE_CONTROLS},groupHeaderStyles:{type:ControlType.Object,buttonTitle:\"Group Headers\",optional:true,controls:GROUP_HEADER_STYLE_CONTROLS},labelStyles:{type:ControlType.Object,buttonTitle:\"Label\",optional:true,controls:LABEL_STYLE_CONTROLS},errorStyles:{type:ControlType.Object,buttonTitle:\"Error\",optional:true,controls:ERROR_STYLE_CONTROLS},successStyles:{type:ControlType.Object,buttonTitle:\"Success\",optional:true,controls:SUCCESS_STYLE_CONTROLS},focusStyles:{type:ControlType.Object,buttonTitle:\"Focus\",optional:true,controls:FOCUS_STYLE_CONTROLS}}),// Conditional visibility\nshowIf:SHOW_IF_CONTROL,showIfMatch:{...SHOW_IF_MATCH_CONTROL,hidden:props=>!props.showIf||props.showIf.length===0},showIfAction:{...SHOW_IF_ACTION_CONTROL,hidden:props=>!props.showIf||props.showIf.length===0},// Store connection\n...STORE_CONFIG_CONTROL});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FormKitSelect\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"300\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormKitSelect.map","/**\r\n * FormKitEmail - Email Input Field\r\n *\r\n * An email input field with validation, conditional visibility, and form store integration.\r\n *\r\n * Features:\r\n * - Hybrid prop structure (flat main options, nested styling)\r\n * - Auto-sync with form store via useFormField hook\r\n * - Configurable validation timing (onBlur, onChange)\r\n * - Built-in email format validation (NOT minLength/maxLength!)\r\n * - Error display with validation\r\n * - Conditional visibility (Array/Object format only)\r\n * - Optional success message\r\n *\r\n*/import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useEffect,useState}from\"react\";import{useFormField}from\"https://framerusercontent.com/modules/QcJOsISgPpDHi68MFiJ7/iSwiu9OhhEpwJ9bUO8oz/Hooks.js\";import{getFormStore,getFormStoreKey}from\"https://framerusercontent.com/modules/W9pGMfwOEUT2E0G0vdr3/42YKtSLeppXsa3v6m16i/Store_management.js\";import{evaluateFieldState,getConditionalBadge}from\"https://framerusercontent.com/modules/YQMwVuIkIDYjLHJOwEnu/E43Ih1OWNh9ZYDxH2sAu/Conditions.js\";import{SHOW_IF_CONTROL,SHOW_IF_MATCH_CONTROL,SHOW_IF_ACTION_CONTROL,STORE_CONFIG_CONTROL,BASE_INPUT_STYLE_CONTROLS,LABEL_STYLE_CONTROLS,ERROR_STYLE_CONTROLS,SUCCESS_STYLE_CONTROLS,FOCUS_STYLE_CONTROLS,createStylingControl}from\"https://framerusercontent.com/modules/gWXlNkIcFnVLxXMR7ktn/JtLdSfrUYaW9eElJLaFM/Property_controls.js\";import{HiddenFieldMarker}from\"https://framerusercontent.com/modules/zT6ckO4RKI5zB9JzgGVW/5pPr41RBexGJfYLsBNcj/HiddenFieldMarker.js\";import{IconCheck,IconAlert,renderIcon}from\"https://framerusercontent.com/modules/hSeRQvQLiNwfAzfTZN4C/2faSrR7PxMT7RJTYjc17/Icons.js\";import{getFormKitDirection,getTextAlignForDirection}from\"https://framerusercontent.com/modules/TnGeMluKUv3ZoPWbVX5z/6AL0m280OlZ8wllCKODq/Direction.js\";/**\r\n * @framerIntrinsicWidth 300\r\n * @framerSupportedLayoutHeight auto\r\n * @framerSupportedLayoutWidth any-prefer-fixed\r\n * @framerDisableUnlink\r\n */export default function FormKitEmail(props){const{// Main props\nname,label,placeholder=\"email@example.com\",required=false,// disabled prop removed\n// Validation (nested)\nvalidation={},// Styling\nstyling={},// Conditional visibility\nshowIf,showIfMatch=\"all\",showIfAction=\"show\",// Store (simplified!)\nformId=\"default\",// Framer\nstyle}=props;// Destructure validation options (email-specific - NO minLength/maxLength)\nconst{validateOnBlur=true,validateOnChange=false,emailMessage,requiredMessage,successMessage}=validation;// Extract nested styling with defaults\nconst{inputStyles={},labelStyles={},errorStyles={},successStyles={},focusStyles={}}=styling;// Warn if name contains spaces\nuseEffect(()=>{if(name.includes(\" \")){console.warn(`FormKit Warning: Field name \"${name}\" contains spaces. `+`This may cause issues. Use camelCase (firstName) or snake_case (first_name) instead.`);}},[name]);// Build validation config for email type\nconst validationConfig={required,requiredMessage,type:\"email\",emailMessage};// Get store state first to evaluate conditions before useFormField\nconst actualFormId=formId||\"default\";const useStore=getFormStore(getFormStoreKey(actualFormId,\"auto\"));const[storeState]=useStore();// Detect render mode\nconst isCanvas=RenderTarget.current()===RenderTarget.canvas;// Evaluate field state BEFORE useFormField to determine skipValidation\nconst fieldState=evaluateFieldState(showIf,storeState?.data||{},showIfMatch,showIfAction);// Determine visibility and disabled state\nlet isVisible=true;let isDisabled=false;let showBadge=false;let badgeText=\"\";if(isCanvas){isVisible=true;isDisabled=false;// Use helper function for badge logic\nconst badge=getConditionalBadge(showIf,fieldState,showIfAction);showBadge=badge.showBadge;badgeText=badge.badgeText;}else{isVisible=fieldState.isVisible;isDisabled=fieldState.isDisabled;}// Skip validation if field is hidden or disabled (in preview/live mode)\nconst shouldSkipValidation=!isCanvas&&(!isVisible||isDisabled);// Use custom hook for form field logic\nconst{value,error,isTouched,isValidating,hasValidated,state,handleChange,handleBlur}=useFormField({name,formId,storeKey:\"auto\",validation:validationConfig,validateOnBlur,validateOnChange,skipValidation:shouldSkipValidation,label});// Track focus state for border color\nconst[isFocused,setIsFocused]=useState(false);const componentDirection=getFormKitDirection(style,[label,placeholder,successMessage,value,name]);const resolvedInputTextAlign=getTextAlignForDirection(inputStyles.textAlign,componentDirection);const resolvedLabelTextAlign=getTextAlignForDirection(labelStyles.textAlign,componentDirection);if(!isVisible)return /*#__PURE__*/_jsx(HiddenFieldMarker,{});// Determine if we should show success message\n// Only show success AFTER validation has completed at least once\nconst shouldShowSuccess=hasValidated&&// Validation must have run at least once\n!isValidating&&// Not currently validating\n!error&&// No validation errors\nsuccessMessage&&// User provided success message\nvalue&&// Field has a value\n(required?value.trim()!==\"\":true)// If required, must not be empty\n;// Build input styles - use success overrides when applicable\nconst successDisplayMode=successStyles.displayMode??\"both\";const showInlineSuccessIcon=shouldShowSuccess&&(successDisplayMode===\"both\"||successDisplayMode===\"icon\");const showSuccessMessage=shouldShowSuccess&&successMessage&&(successDisplayMode===\"both\"||successDisplayMode===\"message\");const inputStyle={width:\"100%\",padding:inputStyles.padding??\"12px\",fontSize:shouldShowSuccess&&successStyles.inputFont?.fontSize?successStyles.inputFont.fontSize:inputStyles.font?.fontSize??14,fontFamily:shouldShowSuccess&&successStyles.inputFont?.fontFamily?successStyles.inputFont.fontFamily:inputStyles.font?.fontFamily??\"inherit\",fontWeight:shouldShowSuccess&&successStyles.inputFont?.fontWeight?successStyles.inputFont.fontWeight:inputStyles.font?.fontWeight??undefined,lineHeight:inputStyles.font?.lineHeight??undefined,letterSpacing:inputStyles.font?.letterSpacing??undefined,textAlign:resolvedInputTextAlign,color:shouldShowSuccess&&successStyles.inputTextColor?successStyles.inputTextColor:isFocused&&focusStyles.textColor?focusStyles.textColor:value?inputStyles.textColor??\"#999999\":inputStyles.placeholderColor??\"#999999\",backgroundColor:isFocused&&focusStyles.backgroundColor?focusStyles.backgroundColor:isDisabled?\"#F5F5F5\":inputStyles.backgroundColor??\"rgba(187, 187, 187, 0.15)\",borderWidth:\"1px\",borderStyle:\"solid\",...isFocused&&focusStyles.border?focusStyles.border:inputStyles.border,borderColor:isCanvas?inputStyles.border?.borderColor??\"rgba(187, 187, 187, 0.15)\":shouldShowSuccess&&successStyles.inputBorderColor?successStyles.inputBorderColor:error&&(isTouched||state?.submitAttempted)?inputStyles.errorBorderColor??\"#FF4444\":isFocused?focusStyles.border?.borderColor??inputStyles.focusBorderColor??\"#0099FF\":inputStyles.border?.borderColor??\"rgba(187, 187, 187, 0.15)\",borderRadius:inputStyles.borderRadius??12,outline:\"none\",transition:focusStyles.transition??\"border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease\",cursor:isDisabled?\"not-allowed\":\"text\",opacity:isDisabled?inputStyles.disabledOpacity??.5:1,boxSizing:\"border-box\",boxShadow:isFocused&&focusStyles.shadows?focusStyles.shadows:inputStyles.shadows};// Build label styles - use success overrides when applicable\nconst labelStyle={display:\"block\",fontSize:shouldShowSuccess&&successStyles.labelFont?.fontSize?successStyles.labelFont.fontSize:labelStyles.font?.fontSize??12,fontWeight:shouldShowSuccess&&successStyles.labelFont?.fontWeight?successStyles.labelFont.fontWeight:labelStyles.font?.fontWeight??\"500\",fontFamily:shouldShowSuccess&&successStyles.labelFont?.fontFamily?successStyles.labelFont.fontFamily:labelStyles.font?.fontFamily??\"Inter\",lineHeight:labelStyles.font?.lineHeight??undefined,letterSpacing:labelStyles.font?.letterSpacing??undefined,textAlign:resolvedLabelTextAlign,textTransform:labelStyles.textTransform??\"none\",color:shouldShowSuccess&&successStyles.labelColor?successStyles.labelColor:labelStyles.color??\"#888888\",marginBottom:labelStyles.marginBottom??8,transition:\"color 0.2s ease\"};// Build error styles\nconst errorStyle={fontSize:errorStyles.font?.fontSize??12,fontWeight:errorStyles.font?.fontWeight??undefined,fontFamily:errorStyles.font?.fontFamily??\"Inter\",lineHeight:errorStyles.font?.lineHeight??undefined,letterSpacing:errorStyles.font?.letterSpacing??undefined,color:errorStyles.color??\"#FF4444\",marginTop:errorStyles.marginTop??4};// Build success message styles\nconst successStyle={fontSize:successStyles.messageFont?.fontSize??12,fontWeight:successStyles.messageFont?.fontWeight??undefined,fontFamily:successStyles.messageFont?.fontFamily??undefined,color:successStyles.messageColor??\"#22C55E\",marginTop:successStyles.marginTop??4};// Generate unique ID for accessibility\nconst fieldId=`${formId}-${name}`;return /*#__PURE__*/_jsxs(\"div\",{...style,style:{...style,display:\"flex\",flexDirection:\"column\",width:\"100%\",position:\"relative\",direction:componentDirection},children:[isCanvas&&showBadge&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:-8,insetInlineEnd:-8,backgroundColor:\"#FF6B00\",color:\"white\",fontSize:10,fontWeight:600,padding:\"2px 6px\",borderRadius:4,zIndex:1e3,pointerEvents:\"none\",boxShadow:\"0 2px 4px rgba(0,0,0,0.2)\"},children:badgeText}),label&&/*#__PURE__*/_jsxs(\"label\",{htmlFor:fieldId,style:labelStyle,children:[label,required&&/*#__PURE__*/_jsx(\"span\",{style:{color:\"#FF4444\",marginInlineStart:4},children:\"*\"})]}),/*#__PURE__*/_jsx(\"style\",{children:`\r\n                #${fieldId} {\r\n                    -webkit-text-fill-color: ${shouldShowSuccess&&successStyles.inputTextColor?successStyles.inputTextColor:isFocused&&focusStyles.textColor?focusStyles.textColor:value?inputStyles.textColor??\"#999999\":inputStyles.placeholderColor??\"#999999\"};\r\n                }\r\n                #${fieldId}::placeholder {\r\n                    color: ${isFocused&&focusStyles.placeholderColor?focusStyles.placeholderColor:inputStyles.placeholderColor??\"#999999\"};\r\n                    -webkit-text-fill-color: ${isFocused&&focusStyles.placeholderColor?focusStyles.placeholderColor:inputStyles.placeholderColor??\"#999999\"};\r\n                    text-align: ${resolvedInputTextAlign};\r\n                    opacity: 1;\r\n                }\r\n                #${fieldId}:-webkit-autofill,\r\n                #${fieldId}:-webkit-autofill:hover,\r\n                #${fieldId}:-webkit-autofill:focus,\r\n                #${fieldId}:-webkit-autofill:active,\r\n                #${fieldId}:autofill,\r\n                #${fieldId}:autofill:hover,\r\n                #${fieldId}:autofill:focus,\r\n                #${fieldId}:autofill:active {\r\n                    -webkit-box-shadow: 0 0 0 1000px ${inputStyles.backgroundColor??\"#F5F5F5\"} inset !important;\r\n                    box-shadow: 0 0 0 1000px ${inputStyles.backgroundColor??\"#F5F5F5\"} inset !important;\r\n                    -webkit-text-fill-color: ${inputStyles.textColor??\"#999999\"} !important;\r\n                    caret-color: ${inputStyles.textColor??\"#999999\"} !important;\r\n                    transition: background-color 5000s ease-in-out 0s !important;\r\n                }\r\n            `}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\"},children:[/*#__PURE__*/_jsx(\"input\",{id:fieldId,type:\"email\",name:name,value:value||\"\",onChange:e=>handleChange(e.target.value),onBlur:()=>{setIsFocused(false);handleBlur();},onFocus:()=>setIsFocused(true),placeholder:placeholder,disabled:isDisabled,required:required,\"data-formkit\":\"true\",style:inputStyle}),showInlineSuccessIcon&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",insetInlineEnd:12,top:\"50%\",transform:\"translateY(-50%)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:successStyles.iconColor??successStyles.inputTextColor??\"#0099FF\",pointerEvents:\"none\",width:16,height:16},children:renderIcon({iconType:successStyles.iconType,customIcon:successStyles.customIcon,DefaultIcon:IconCheck})})]}),error&&(isTouched||state?.submitAttempted)&&/*#__PURE__*/_jsxs(\"div\",{style:{...errorStyle,display:\"flex\",alignItems:\"center\",textTransform:\"lowercase\",gap:6},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:14,height:14},children:renderIcon({iconType:errorStyles.iconType,customIcon:errorStyles.customIcon,DefaultIcon:IconAlert})}),error]}),showSuccessMessage&&/*#__PURE__*/_jsx(\"div\",{style:successStyle,children:successMessage})]});}// Email validation controls - specific for email fields (NO minLength/maxLength/pattern)\nconst EMAIL_VALIDATION_CONTROLS={// Timing toggles\nvalidateOnBlur:{type:ControlType.Boolean,title:\"On Blur\",description:\"Validate when user leaves field\",defaultValue:true},validateOnChange:{type:ControlType.Boolean,title:\"On Change\",description:\"Real-time validation (debounced)\",defaultValue:false},// Email-specific error message\nemailMessage:{type:ControlType.String,title:\"Email Error\",placeholder:\"Please enter a valid email\",description:\"Custom error for invalid email format\"},// Standard messages\nrequiredMessage:{type:ControlType.String,title:\"Required Error\",placeholder:\"This field is required\"},successMessage:{type:ControlType.String,title:\"Success Message\",placeholder:\"Looks good!\"}};// Property Controls - Hybrid structure\naddPropertyControls(FormKitEmail,{// FLAT - Main options (easy to access and update)\nname:{type:ControlType.String,title:\"Name\",defaultValue:\"email\",description:\"Use camelCase or snake_case, NO SPACES. Examples: email, user_email, contact_email\",placeholder:\"field-name\"},label:{type:ControlType.String,title:\"Label\",defaultValue:\"Email\",description:\"Field label displayed above input\"},placeholder:{type:ControlType.String,title:\"Placeholder\",defaultValue:\"email@example.com\",description:\"Placeholder text shown when empty\"},required:{type:ControlType.Boolean,title:\"Required\",defaultValue:false},// disabled prop removed - use showIfAction with \"Enable Field\" / \"Disable Field\"\n// NESTED - Validation (organized!) - Email-specific controls\nvalidation:{type:ControlType.Object,buttonTitle:\"Validation\",optional:true,controls:EMAIL_VALIDATION_CONTROLS},// NESTED - Styling (organized group)\nstyling:createStylingControl({inputStyles:{type:ControlType.Object,buttonTitle:\"Input\",optional:true,controls:{...BASE_INPUT_STYLE_CONTROLS,focusBorderColor:{type:ControlType.Color,hidden:()=>true}}},labelStyles:{type:ControlType.Object,buttonTitle:\"Label\",optional:true,controls:LABEL_STYLE_CONTROLS},errorStyles:{type:ControlType.Object,buttonTitle:\"Error\",optional:true,controls:ERROR_STYLE_CONTROLS},successStyles:{type:ControlType.Object,buttonTitle:\"Success\",optional:true,controls:SUCCESS_STYLE_CONTROLS},focusStyles:{type:ControlType.Object,buttonTitle:\"Focus\",optional:true,controls:FOCUS_STYLE_CONTROLS}}),// Conditional visibility\nshowIf:SHOW_IF_CONTROL,showIfMatch:{...SHOW_IF_MATCH_CONTROL,hidden:props=>!props.showIf||props.showIf.length===0},showIfAction:{...SHOW_IF_ACTION_CONTROL,hidden:props=>!props.showIf||props.showIf.length===0},// Store connection (flat)\n...STORE_CONFIG_CONTROL});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FormKitEmail\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"300\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormKitEmail.map","/**\r\n * FormKitCheckbox - Checkbox Input Field\r\n *\r\n * A checkbox input field with validation, conditional visibility, and form store integration.\r\n *\r\n * Features:\r\n * - Hybrid prop structure (flat main options, nested styling)\r\n * - Auto-sync with form store via useFormField hook\r\n * - Boolean value (true/false)\r\n * - Custom styled checkbox with SVG checkmark\r\n * - Error display with validation\r\n * - Conditional visibility (Array/Object format only)\r\n */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useEffect,useState,useRef}from\"react\";import{useFormField}from\"https://framerusercontent.com/modules/QcJOsISgPpDHi68MFiJ7/iSwiu9OhhEpwJ9bUO8oz/Hooks.js\";import{getFormStore,getFormStoreKey}from\"https://framerusercontent.com/modules/W9pGMfwOEUT2E0G0vdr3/42YKtSLeppXsa3v6m16i/Store_management.js\";import{evaluateFieldState,getConditionalBadge}from\"https://framerusercontent.com/modules/YQMwVuIkIDYjLHJOwEnu/E43Ih1OWNh9ZYDxH2sAu/Conditions.js\";import{SHOW_IF_CONTROL,SHOW_IF_MATCH_CONTROL,SHOW_IF_ACTION_CONTROL,STORE_CONFIG_CONTROL,CHECKBOX_LABEL_STYLE_CONTROLS,ERROR_STYLE_CONTROLS,SUCCESS_STYLE_CONTROLS,CHECKBOX_STYLE_CONTROLS,CHECKBOX_VALIDATION_CONTROLS,createStylingControl}from\"https://framerusercontent.com/modules/gWXlNkIcFnVLxXMR7ktn/JtLdSfrUYaW9eElJLaFM/Property_controls.js\";import{HiddenFieldMarker}from\"https://framerusercontent.com/modules/zT6ckO4RKI5zB9JzgGVW/5pPr41RBexGJfYLsBNcj/HiddenFieldMarker.js\";import{IconCheck,IconAlert,renderIcon}from\"https://framerusercontent.com/modules/hSeRQvQLiNwfAzfTZN4C/2faSrR7PxMT7RJTYjc17/Icons.js\";import{getFormKitDirection,getTextAlignForDirection}from\"https://framerusercontent.com/modules/TnGeMluKUv3ZoPWbVX5z/6AL0m280OlZ8wllCKODq/Direction.js\";/**\r\n * @framerIntrinsicWidth 300\r\n * @framerSupportedLayoutHeight auto\r\n * @framerSupportedLayoutWidth any-prefer-fixed\r\n * @framerDisableUnlink\r\n */export default function FormKitCheckbox(props){const{// Main props\nname,label,required=false,// disabled prop removed\ndefaultChecked=false,checkedValue=\"yes\",uncheckedValue=\"no\",// Validation (nested)\nvalidation={},// Styling\nstyling={},// Conditional visibility\nshowIf,showIfMatch=\"all\",showIfAction=\"show\",// Store (simplified!)\nformId=\"default\",// Framer\nstyle}=props;// Local state for immediate UI response (same pattern as FormKitRadio)\nconst[isChecked,setIsChecked]=useState(defaultChecked);// Destructure validation options\n// Destructure validation options\nconst{requiredMessage,successMessage}=validation;// Extract nested styling with defaults\nconst{checkboxStyles={},labelStyles={},errorStyles={},successStyles={}}=styling;// Warn if name contains spaces\nuseEffect(()=>{if(name.includes(\" \")){console.warn(`FormKit Warning: Field name \"${name}\" contains spaces. `+`This may cause issues. Use camelCase (firstName) or snake_case (first_name) instead.`);}},[name]);// Build validation config - for checkbox, required means must be checked\nconst validationConfig={required,requiredMessage:requiredMessage||\"This field must be checked\",type:\"checkbox\"};// Get store state first to evaluate conditions before useFormField\nconst actualFormId=formId||\"default\";const useStore=getFormStore(getFormStoreKey(actualFormId,\"auto\"));const[storeState]=useStore();// Detect render mode\nconst isCanvas=RenderTarget.current()===RenderTarget.canvas;// Evaluate field state BEFORE useFormField to determine skipValidation\nconst fieldState=evaluateFieldState(showIf,storeState?.data||{},showIfMatch,showIfAction);// Determine visibility and disabled state\nlet isVisible=true;let isDisabled=false;let showBadge=false;let badgeText=\"\";if(isCanvas){isVisible=true;isDisabled=false;// Use helper function for badge logic\nconst badge=getConditionalBadge(showIf,fieldState,showIfAction);showBadge=badge.showBadge;badgeText=badge.badgeText;}else{isVisible=fieldState.isVisible;isDisabled=fieldState.isDisabled;}// Skip validation if field is hidden or disabled (in preview/live mode)\nconst shouldSkipValidation=!isCanvas&&(!isVisible||isDisabled);// Use custom hook for form field logic\nconst{value,error,isTouched,state,setState,handleChange,handleBlur}=useFormField({name,formId,storeKey:\"auto\",validation:validationConfig,validateOnBlur:true,validateOnChange:true,skipValidation:shouldSkipValidation,label});// Sync local state with store value (same pattern as FormKitRadio)\nuseEffect(()=>{if(value!==undefined&&value!==\"\"){setIsChecked(Boolean(value));}},[value]);// Initialize with defaultChecked if no value exists\n// IMPORTANT: Use setState directly (not handleChange) to avoid setting touched=true\n// This prevents the validation error from showing on component insert\nuseEffect(()=>{if(value===undefined||value===\"\"){setIsChecked(defaultChecked);// Set value in store without marking as touched\nif(state){setState({data:{...state.data||{},[name]:defaultChecked}});}}},[]);// React to defaultChecked prop changes (Update behavior)\nconst firstUpdate=useRef(true);useEffect(()=>{if(firstUpdate.current){firstUpdate.current=false;return;}// Force update when prop changes\nsetIsChecked(defaultChecked);if(state){setState({data:{...state.data||{},[name]:defaultChecked}});}},[defaultChecked]);// Success state\nconst shouldShowSuccess=!error&&state&&isChecked&&// Only show success if checked? Or if interaction happened?\nsuccessMessage;const componentDirection=getFormKitDirection(style,[label,successMessage,checkedValue,uncheckedValue,name]);if(!isVisible)return /*#__PURE__*/_jsx(HiddenFieldMarker,{});if(!isVisible)return /*#__PURE__*/_jsx(HiddenFieldMarker,{});// Checkbox styling\nconst checkboxSize=checkboxStyles.size??20;const iconType=checkboxStyles.iconType??\"check\";const iconColor=checkboxStyles.checkmarkColor??\"white\";// Render icon based on type\nconst renderCheckIcon=()=>{const iconSize=checkboxSize*.6;switch(iconType){case\"circle\":return /*#__PURE__*/_jsx(\"svg\",{width:iconSize,height:iconSize,viewBox:\"0 0 12 12\",fill:\"none\",children:/*#__PURE__*/_jsx(\"circle\",{cx:\"6\",cy:\"6\",r:\"4\",fill:iconColor})});case\"x\":return /*#__PURE__*/_jsx(\"svg\",{width:iconSize,height:iconSize,viewBox:\"0 0 12 12\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M3 3L9 9M9 3L3 9\",stroke:iconColor,strokeWidth:\"2\",strokeLinecap:\"round\"})});case\"hidden\":return null;case\"custom\":if(checkboxStyles.customIcon){return /*#__PURE__*/_jsx(\"div\",{dangerouslySetInnerHTML:{__html:checkboxStyles.customIcon},style:{width:iconSize,height:iconSize,display:\"flex\",alignItems:\"center\",justifyContent:\"center\"}});}return null;case\"check\":default:return /*#__PURE__*/_jsx(\"svg\",{width:iconSize,height:iconSize,viewBox:\"0 0 12 12\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M2 6L5 9L10 3\",stroke:iconColor,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});}};const checkboxWrapperStyle={width:checkboxSize,height:checkboxSize,borderRadius:checkboxStyles.borderRadius??4,...checkboxStyles.border,borderWidth:checkboxStyles.border?.borderWidth??2,borderStyle:checkboxStyles.border?.borderStyle??\"solid\",borderColor:isChecked?checkboxStyles.checkedColor??\"#0099FF\":checkboxStyles.border?.borderColor??\"rgba(187, 187, 187, 0.15)\",backgroundColor:isChecked?checkboxStyles.checkedColor??\"#0099FF\":\"transparent\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",transition:\"all 0.2s ease\",cursor:isDisabled?\"not-allowed\":\"pointer\",opacity:isDisabled?.5:1,flexShrink:0};// Container styling\nconst containerStyle={display:\"flex\",alignItems:\"center\",width:\"100%\",gap:checkboxStyles.checkboxLabelGap??10,direction:componentDirection,cursor:isDisabled?\"not-allowed\":\"pointer\",outline:\"none\",backgroundColor:isChecked&&checkboxStyles.checkedContainerBackground?checkboxStyles.checkedContainerBackground:checkboxStyles.containerBackground??\"transparent\",borderRadius:checkboxStyles.containerBorderRadius??0,padding:checkboxStyles.containerPadding??0,...isChecked&&checkboxStyles.checkedContainerBorder?{borderWidth:checkboxStyles.checkedContainerBorder.borderWidth,borderStyle:checkboxStyles.checkedContainerBorder.borderStyle,borderColor:checkboxStyles.checkedContainerBorder.borderColor}:checkboxStyles.containerBorder?{borderWidth:checkboxStyles.containerBorder.borderWidth,borderStyle:checkboxStyles.containerBorder.borderStyle,borderColor:checkboxStyles.containerBorder.borderColor}:{},transition:\"all 0.2s ease\"};// Build label styles\nconst labelStyle={fontSize:shouldShowSuccess&&successStyles.labelFont?.fontSize?successStyles.labelFont.fontSize:labelStyles.font?.fontSize??12,fontWeight:shouldShowSuccess&&successStyles.labelFont?.fontWeight?successStyles.labelFont.fontWeight:labelStyles.font?.fontWeight??\"500\",fontFamily:shouldShowSuccess&&successStyles.labelFont?.fontFamily?successStyles.labelFont.fontFamily:labelStyles.font?.fontFamily??\"Inter\",lineHeight:labelStyles.font?.lineHeight??undefined,letterSpacing:labelStyles.font?.letterSpacing??undefined,textAlign:getTextAlignForDirection(labelStyles.textAlign,componentDirection),textTransform:labelStyles.textTransform??\"none\",color:shouldShowSuccess&&successStyles.labelColor?successStyles.labelColor:isChecked&&labelStyles.checkedLabelColor?labelStyles.checkedLabelColor:labelStyles.color??\"#999999\",cursor:isDisabled?\"not-allowed\":\"pointer\",transition:\"color 0.2s ease\"};// Build error styles\nconst errorStyle={fontSize:errorStyles.font?.fontSize??12,fontWeight:errorStyles.font?.fontWeight??undefined,fontFamily:errorStyles.font?.fontFamily??\"Inter\",lineHeight:errorStyles.font?.lineHeight??undefined,letterSpacing:errorStyles.font?.letterSpacing??undefined,color:errorStyles.color??\"#FF4444\",marginTop:errorStyles.marginTop??4};// Generate unique ID for accessibility\nconst fieldId=`${formId}-${name}`;// Handle checkbox toggle - SAME PATTERN AS FormKitRadio\nconst handleCheckboxSelect=newValue=>{if(!isDisabled){setIsChecked(newValue);handleChange(newValue);}};return /*#__PURE__*/_jsxs(\"div\",{...style,style:{...style,display:\"flex\",flexDirection:\"column\",width:\"100%\",position:\"relative\",direction:componentDirection},children:[isCanvas&&showBadge&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:-8,insetInlineEnd:-8,backgroundColor:\"#FF6B00\",color:\"white\",fontSize:10,fontWeight:600,padding:\"2px 6px\",borderRadius:4,zIndex:1e3,pointerEvents:\"none\",boxShadow:\"0 2px 4px rgba(0,0,0,0.2)\"},children:badgeText}),/*#__PURE__*/_jsxs(\"div\",{style:containerStyle,onClick:()=>handleCheckboxSelect(!isChecked),onBlur:handleBlur,children:[/*#__PURE__*/_jsx(\"input\",{id:fieldId,type:\"checkbox\",name:name,checked:isChecked,onChange:()=>handleCheckboxSelect(!isChecked),disabled:isDisabled,required:required,value:checkedValue,\"data-formkit\":\"true\",style:{position:\"absolute\",opacity:0,width:0,height:0,pointerEvents:\"none\"}}),checkboxStyles.showCheckbox!==false&&/*#__PURE__*/_jsx(\"div\",{style:checkboxWrapperStyle,children:isChecked&&renderCheckIcon()}),label&&/*#__PURE__*/_jsxs(\"span\",{style:{...labelStyle,flex:1},children:[label,required&&/*#__PURE__*/_jsx(\"span\",{style:{color:\"#FF4444\",marginInlineStart:4},children:\"*\"})]}),!isChecked&&/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:name,value:uncheckedValue,disabled:isDisabled})]}),error&&(isTouched||state?.submitAttempted)&&/*#__PURE__*/_jsxs(\"div\",{style:{...errorStyle,display:\"flex\",alignItems:\"center\",textTransform:\"lowercase\",gap:6},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:14,height:14},children:renderIcon({iconType:errorStyles.iconType,customIcon:errorStyles.customIcon,DefaultIcon:IconAlert})}),error]}),shouldShowSuccess&&successStyles&&/*#__PURE__*/_jsxs(\"div\",{style:{fontSize:successStyles.messageFont?.fontSize??12,fontWeight:successStyles.messageFont?.fontWeight??undefined,fontFamily:successStyles.messageFont?.fontFamily??\"inherit\",color:successStyles.messageColor??\"#0099FF\",marginTop:successStyles.marginTop??4,display:\"flex\",alignItems:\"center\",gap:6},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:14,height:14},children:renderIcon({iconType:successStyles.iconType,customIcon:successStyles.customIcon,DefaultIcon:IconCheck})}),successMessage]})]});}// Property Controls - Hybrid structure\naddPropertyControls(FormKitCheckbox,{// FLAT - Main options (easy to access and update)\nname:{type:ControlType.String,title:\"Name\",defaultValue:\"agreement\",description:\"Use camelCase or snake_case, NO SPACES. Examples: terms, newsletter, remember_me\",placeholder:\"field-name\"},label:{type:ControlType.String,title:\"Label\",defaultValue:\"I agree to the terms\",description:\"Text displayed next to checkbox\"},defaultChecked:{type:ControlType.Boolean,title:\"Default Checked\",defaultValue:false},checkedValue:{type:ControlType.String,title:\"Checked Value\",defaultValue:\"yes\",description:\"Value when checked\"},uncheckedValue:{type:ControlType.String,title:\"Unchecked Value\",defaultValue:\"no\",description:\"Value when unchecked\"},required:{type:ControlType.Boolean,title:\"Required\",defaultValue:false},// disabled prop removed - use showIfAction with \"Enable Field\" / \"Disable Field\"\n// NESTED - Validation (organized!)\nvalidation:{type:ControlType.Object,buttonTitle:\"Validation\",optional:true,controls:CHECKBOX_VALIDATION_CONTROLS},// NESTED - Styling (organized group)\nstyling:createStylingControl({checkboxStyles:{type:ControlType.Object,buttonTitle:\"Checkbox\",optional:true,controls:CHECKBOX_STYLE_CONTROLS},labelStyles:{type:ControlType.Object,buttonTitle:\"Label\",optional:true,controls:CHECKBOX_LABEL_STYLE_CONTROLS},errorStyles:{type:ControlType.Object,buttonTitle:\"Error\",optional:true,controls:ERROR_STYLE_CONTROLS},successStyles:{type:ControlType.Object,buttonTitle:\"Success\",optional:true,controls:SUCCESS_STYLE_CONTROLS}}),// Conditional visibility\nshowIf:SHOW_IF_CONTROL,showIfMatch:{...SHOW_IF_MATCH_CONTROL,hidden:props=>!props.showIf||props.showIf.length===0},showIfAction:{...SHOW_IF_ACTION_CONTROL,hidden:props=>!props.showIf||props.showIf.length===0},// Store connection (flat)\n...STORE_CONFIG_CONTROL});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FormKitCheckbox\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"300\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormKitCheckbox.map","const navigationRegistry=new Map;export const registerFormKitNavigation=(formId,handlers)=>{navigationRegistry.set(formId,handlers);};export const unregisterFormKitNavigation=formId=>{navigationRegistry.delete(formId);};export const getFormKitNavigation=formId=>{return navigationRegistry.get(formId)||null;};\nexport const __FramerMetadata__ = {\"exports\":{\"unregisterFormKitNavigation\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"registerFormKitNavigation\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getFormKitNavigation\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FormKitNavigationHandlers\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Form_navigation.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useEffect,useRef,cloneElement}from\"react\";import{getFormStore,getFormStoreKey,isPreview,clearFormFromLocalStorage}from\"https://framerusercontent.com/modules/W9pGMfwOEUT2E0G0vdr3/42YKtSLeppXsa3v6m16i/Store_management.js\";import{getFormKitNavigation}from\"https://framerusercontent.com/modules/3iJH2tW5QUFgpH9So3nO/UF4nz2hAgJN545Fau7sS/Form_navigation.js\";import{HiddenFieldMarker}from\"https://framerusercontent.com/modules/zT6ckO4RKI5zB9JzgGVW/5pPr41RBexGJfYLsBNcj/HiddenFieldMarker.js\";import{getFormKitDirection}from\"https://framerusercontent.com/modules/TnGeMluKUv3ZoPWbVX5z/6AL0m280OlZ8wllCKODq/Direction.js\";const getResetData=currentData=>{const resetData={};Object.keys(currentData||{}).forEach(key=>{const value=currentData[key];if(typeof value===\"boolean\"){resetData[key]=false;}else if(Array.isArray(value)){resetData[key]=[];}else{resetData[key]=\"\";}});return resetData;};/**\r\n * FormKitSubmit - Submit Form Button\r\n *\r\n * Button to submit the form data.\r\n *\r\n * Features:\r\n * - Auto-connects to form submission\r\n * - Loading state during submission\r\n * - Validates all fields before submit\r\n * - Shows success message after submission\r\n * - Customizable styling OR custom component with variants\r\n * - Shows only on last step (optional)\r\n *\r\n/**\r\n * @framerIntrinsicWidth 300\r\n * @framerSupportedLayoutHeight auto\r\n * @framerSupportedLayoutWidth any\r\n * @framerDisableUnlink\r\n */export default function FormKitSubmit(props){const{formId=\"default\",// Button type\nbuttonType=\"default\",customButton,variantMappings={defaultVariant:\"default\",loadingVariant:\"loading\",successVariant:\"success\",errorVariant:\"error\"},// Default mode props\ntext=\"Submit\",loadingText=\"Submitting...\",successText=\"Form submitted successfully!\",errorText=\"Please fix the errors above\",showOnlyOnLastStep=true,disabled=false,loadingDuration=1e3,successDuration=3e3,errorDuration=3e3,style,buttonStyles={},styling={},...rest}=props;const{buttonStyles:buttonCustomStyles={},hoverStyles={},successStyles={},errorStyles={}}=styling;const actualFormId=getFormStoreKey(formId,\"auto\");const useStore=getFormStore(actualFormId);const[state,setState]=useStore();// Create a ref to hold the latest state for async operations\n// This fixes the \"stale state\" issue in setTimeout\nconst stateRef=useRef(state);useEffect(()=>{stateRef.current=state;},[state]);const isLastStep=state.currentStep>=state.totalSteps-1;const isSubmitting=state.isSubmitting;const submitState=state.submitState||\"idle\";const isCompleted=!!state.isCompleted;const stepsInitialized=!!state.stepsInitialized;// Track if we're waiting to check validation\nconst validationCheckRef=useRef(false);const containerRef=useRef(null);const isCanvas=RenderTarget.current()===RenderTarget.canvas;const componentDirection=getFormKitDirection(style,[text,loadingText,successText,errorText]);// Disable native browser validation tooltips on the parent <form>\n// FormKit handles all validation UI, so the browser's default\n// \"Please fill out this field.\" popups are not needed.\nuseEffect(()=>{const parentForm=containerRef.current?.closest(\"form\");if(parentForm){parentForm.setAttribute(\"novalidate\",\"\");}},[]);// Check native HTML5 validation for non-FormKit inputs\nconst checkNativeValidation=()=>{// Find the closest form or container\nconst container=containerRef.current?.closest(\"form\")||document.body;// Find all required inputs that don't have FormKit data attributes\nconst nativeInputs=container.querySelectorAll(\"input[required]:not([data-formkit]), textarea[required]:not([data-formkit]), select[required]:not([data-formkit])\");let isValid=true;for(const input of nativeInputs){if(!input.checkValidity()){// Don't use reportValidity() — it triggers the browser's default\n// tooltip (\"Please fill out this field.\"). FormKit's own error\n// messages handle validation UI instead.\nisValid=false;break;// Stop at first invalid element\n}}return isValid;};// Handle click - trigger validation\nconst handleClick=()=>{if(disabled||isSubmitting||submitState===\"validating\")return;console.log(\"[FormKitSubmit] handleClick\",{formId:actualFormId,currentStep:state.currentStep+1,totalSteps:state.totalSteps,submitRulesCount:state.submitSuccessRules?.length||0});// Always trigger validation on click (don't require double-click after error)\n// Reset first, then trigger validation after a tick\nsetState({submitAttempted:false,submitState:\"idle\"});// Wait a tick, then trigger validation\nsetTimeout(()=>{setState({submitAttempted:true,submitState:\"validating\"});validationCheckRef.current=true;},10);};// Effect to auto-reset error state after errorDuration\nuseEffect(()=>{if(submitState===\"error\"&&errorDuration>0){const timer=setTimeout(()=>{setState({submitState:\"idle\",submitAttempted:false});},errorDuration);return()=>clearTimeout(timer);}},[submitState,errorDuration]);// Effect to auto-reset success state after successDuration\nuseEffect(()=>{if(submitState===\"success\"&&successDuration>0){const timer=setTimeout(()=>{setState({submitState:\"idle\",submitAttempted:false});},successDuration);return()=>clearTimeout(timer);}},[submitState,successDuration]);// Effect to auto-reset error state when all errors are cleared (user filled form correctly)\nuseEffect(()=>{if(submitState===\"error\"){const hasErrors=Object.keys(state.errors||{}).length>0;if(!hasErrors){// All errors cleared - reset button to idle\nsetState({submitState:\"idle\"});}}},[state.errors,submitState]);// useEffect to check errors after validation (runs after re-render with fresh state)\nuseEffect(()=>{if(submitState!==\"validating\"||!validationCheckRef.current)return;// Wait for fields to validate\nconst timer=setTimeout(()=>{validationCheckRef.current=false;// Check FormKit errors (using REF ensuring fresh state)\nconst hasFormKitErrors=Object.keys(stateRef.current.errors||{}).length>0;// Check native HTML5 validation\nconst nativeValid=checkNativeValidation();if(hasFormKitErrors||!nativeValid){setState({submitState:\"error\"});}else{const navigation=getFormKitNavigation(actualFormId);console.log(\"[FormKitSubmit] validation passed\",{formId:actualFormId,hasNavigation:!!navigation,currentStep:(stateRef.current.currentStep||0)+1,totalSteps:stateRef.current.totalSteps});// No errors, proceed with submission\n// Helper for minimum delay\nconst wait=ms=>new Promise(resolve=>setTimeout(resolve,ms));if(navigation?.handleSubmit){// Use FormKit navigation handler (e.g. from FormKitMultiStep)\nPromise.all([navigation.handleSubmit(),wait(loadingDuration)]).then(()=>{const resetData=getResetData(stateRef.current.data);// Reset native form if exists\nconst parentForm=containerRef.current?.closest(\"form\");if(parentForm)parentForm.reset();clearFormFromLocalStorage(actualFormId);setState({currentStep:0,visitedSteps:[0],stepHistory:[0],completedSteps:[],submitState:\"success\",submitAttempted:false,isSubmitting:false,data:resetData,errors:{},touched:{}});}).catch(()=>{setState({submitState:\"error\"});});}else{console.warn(\"[FormKitSubmit] Missing navigation handler, using fallback submit path\",{formId:actualFormId,currentStep:(stateRef.current.currentStep||0)+1,totalSteps:stateRef.current.totalSteps});// No navigation handler found.\n// Fallback 1: Try to submit a parent <form> natively\nconst parentForm=containerRef.current?.closest(\"form\");if(parentForm){setState({isSubmitting:true});wait(loadingDuration).then(()=>{// Reset state before submitting because page might reload\n// or if it's an AJAX form, we want to show success.\n// However, native submit usually reloads.\n// Let's try requestSubmit first which triggers onSubmit handlers.\nif(typeof parentForm.requestSubmit===\"function\"){parentForm.requestSubmit();}else{parentForm.submit();}// If page doesn't reload immediately, show success\nconst resetData=getResetData(stateRef.current.data);// Reset native form if exists\nif(parentForm)parentForm.reset();clearFormFromLocalStorage(actualFormId);setState({currentStep:0,visitedSteps:[0],stepHistory:[0],completedSteps:[],submitState:\"success\",submitAttempted:false,isSubmitting:false,data:resetData,errors:{},touched:{}});});}else{// Fallback 2: Just simulate loading then success (Legacy/Demo behavior)\nsetState({isSubmitting:true})// Manually show loading\n;wait(loadingDuration).then(()=>{const resetData=getResetData(stateRef.current.data);// Reset native form if exists\nconst parentForm=containerRef.current?.closest(\"form\");if(parentForm)parentForm.reset();clearFormFromLocalStorage(actualFormId);setState({currentStep:0,visitedSteps:[0],stepHistory:[0],completedSteps:[],submitState:\"success\",submitAttempted:false,isSubmitting:false,data:resetData,errors:{},touched:{}});});}}}},100);return()=>clearTimeout(timer);},[submitState,state.errors])// state.errors dependency still good to re-trigger if logic changes, but ref covers value access\n;// Hide if not on last step in preview/live (always show on canvas for editing)\nif(showOnlyOnLastStep&&(!stepsInitialized||!isLastStep)&&!isCanvas){// [DEBUG] Log reason for hiding to help debugging\nif(isPreview){console.warn(`[FormKitSubmit] Button Hidden (${actualFormId})\n`+`Reason: 'Show Only On Last Step' is enabled and step metadata is ${stepsInitialized?`current step is ${state.currentStep+1} of ${state.totalSteps}`:\"still initializing\"}.\n`+`If this is unexpected, check if your 'Form ID' matches your other form components.`);}return /*#__PURE__*/_jsx(HiddenFieldMarker,{});}// When MultiStep shows success state, hide submit button in preview/live.\nif(isCompleted&&!isCanvas){return /*#__PURE__*/_jsx(HiddenFieldMarker,{});}// ========================================================================\n// CUSTOM COMPONENT HELPERS\n// ========================================================================\n/**\r\n     * Get current variant based on button state\r\n     */const getCurrentVariant=()=>{if(isSubmitting||submitState===\"validating\"){return variantMappings.loadingVariant||\"loading\";}if(submitState===\"success\"){return variantMappings.successVariant||\"success\";}if(submitState===\"error\"){return variantMappings.errorVariant||\"error\";}return variantMappings.defaultVariant||\"default\";};/**\r\n     * Walk down the React element tree to find the actual Framer component\r\n     * (the one with propertyControls). Returns { component, chain } where\r\n     * chain is the array of wrapper elements from root to the component.\r\n     * Works across both canvas and preview wrapper structures.\r\n     */const extractActualComponent=(element,chain=[])=>{// Check if this element itself has propertyControls\nif(element?.type?.propertyControls){return{component:element,chain};}// Try to go deeper via children (single child)\nconst children=element?.props?.children;if(children&&typeof children===\"object\"&&!Array.isArray(children)){return extractActualComponent(children,[...chain,element]);}// Can't go deeper, return the element itself as fallback\nreturn{component:element,chain};};/**\r\n     * Auto-detect variant property from a component\r\n     */const detectVariantProperty=component=>{if(!component)return null;const propertyControls=component?.type?.propertyControls;if(!propertyControls)return null;// Look for variant/state properties\nfor(const[propName,control]of Object.entries(propertyControls)){if(control.type===\"enum\"&&(propName.toLowerCase().includes(\"variant\")||propName.toLowerCase().includes(\"state\")||control.title?.toLowerCase().includes(\"variant\")||control.title?.toLowerCase().includes(\"state\"))){return propName;}}return null;};/**\r\n     * Render slot component with variant applied\r\n     */const renderSlotWithVariant=(slotComponent,variantName)=>{if(!slotComponent)return null;// Extract the actual component from whatever wrapper depth\nconst{component:actualComponent,chain}=extractActualComponent(slotComponent);// Auto-detect variant property on the actual component\nconst variantProp=detectVariantProperty(actualComponent);const constrainedStyle={width:\"100%\",maxWidth:\"100%\",alignSelf:\"stretch\",boxSizing:\"border-box\"};// If no variant prop found, just render as-is (safe fallback)\nif(!variantProp){return /*#__PURE__*/cloneElement(slotComponent,{...slotComponent.props,style:{...slotComponent.props?.style||{},...constrainedStyle}});}// Clone the actual component with the variant prop set\nconst modifiedComponent=/*#__PURE__*/cloneElement(actualComponent,{...actualComponent.props,[variantProp]:variantName,style:{...actualComponent.props?.style||{},...constrainedStyle}});// Re-wrap with the original wrapper chain (rebuild from inside out)\nlet result=modifiedComponent;for(let i=chain.length-1;i>=0;i--){const wrapper=chain[i];result=/*#__PURE__*/cloneElement(wrapper,{...wrapper.props,style:{...wrapper.props?.style||{},...constrainedStyle},children:result});}return result;};/**\r\n     * Render canvas placeholder for custom button mode\r\n     */const renderCustomButtonPlaceholder=()=>{return /*#__PURE__*/_jsxs(\"div\",{style:{padding:\"24px\",textAlign:\"center\",...buttonCustomStyles.border,borderColor:buttonCustomStyles.border?.borderColor??\"transparent\",color:\"#6c757d\",width:\"100%\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"16px\",fontWeight:500,marginBottom:\"8px\",color:\"#495057\"},children:\"Connect Custom Button\"}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"14px\"},children:\"Add a component with 4 variants: default, loading, success, error\"})]});};/**\r\n     * Render custom button with variant\r\n     */const renderCustomButton=()=>{const hasCustomButton=customButton&&Array.isArray(customButton)&&customButton.length>0;if(!hasCustomButton){// Show placeholder in canvas mode\nif(isCanvas){return renderCustomButtonPlaceholder();}// In preview/live, show error if no component connected\nreturn /*#__PURE__*/_jsx(\"div\",{style:{padding:12,border:\"1px dashed red\",borderRadius:8,color:\"red\",fontSize:12,background:\"rgba(255,0,0,0.1)\",textAlign:\"center\"},children:\"[FormKit] Custom Button Missing\"});}const currentVariant=getCurrentVariant();return renderSlotWithVariant(customButton[0],currentVariant);};// ========================================================================\n// RENDER\n// ========================================================================\n// Custom button mode\nif(buttonType===\"custom\"){const hasCustomButton=customButton&&Array.isArray(customButton)&&customButton.length>0;return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{...style,display:\"flex\",flexDirection:\"column\",position:\"relative\",direction:componentDirection,width:\"100%\",maxWidth:\"100%\",alignSelf:\"stretch\",minWidth:0,boxSizing:\"border-box\"},children:/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:handleClick,disabled:disabled||isSubmitting,style:{// Reset all browser button styles\nall:\"unset\",display:\"block\",width:\"100%\",maxWidth:\"100%\",cursor:disabled||isSubmitting?\"not-allowed\":\"pointer\",opacity:disabled?.5:1,boxSizing:\"border-box\"},children:renderCustomButton()})});}// Default button mode\nconst getButtonStyles=()=>{if(submitState===\"success\"){return{color:successStyles.color||\"#2E7D32\",backgroundColor:successStyles.backgroundColor||\"#E8F5E9\",...successStyles};}if(submitState===\"error\"){return{color:errorStyles.color||\"#C62828\",backgroundColor:errorStyles.backgroundColor||\"#FFEBEE\",...errorStyles};}return{};};const currentStyles=getButtonStyles();return /*#__PURE__*/_jsx(\"div\",{ref:containerRef,style:{...style,display:\"flex\",flexDirection:\"column\",position:\"relative\",direction:componentDirection,width:\"100%\",maxWidth:\"100%\",alignSelf:\"stretch\",minWidth:0,boxSizing:\"border-box\"},children:/*#__PURE__*/_jsxs(\"button\",{type:\"button\",onClick:handleClick,disabled:disabled||isSubmitting,style:{width:\"100%\",maxWidth:\"100%\",padding:buttonCustomStyles.padding??\"12px 24px\",fontFamily:buttonCustomStyles.font?.fontFamily??\"inherit\",fontSize:buttonCustomStyles.font?.fontSize??14,fontWeight:buttonCustomStyles.font?.fontWeight??600,letterSpacing:buttonCustomStyles.font?.letterSpacing??undefined,lineHeight:buttonCustomStyles.font?.lineHeight??undefined,color:buttonCustomStyles.color??\"#FFFFFF\",backgroundColor:buttonCustomStyles.backgroundColor??\"rgb(51, 51, 51)\",...buttonCustomStyles.border,borderColor:buttonCustomStyles.border?.borderColor??\"transparent\",borderRadius:`${buttonCustomStyles.borderRadius??6}px`,cursor:disabled||isSubmitting?\"not-allowed\":\"pointer\",opacity:disabled||isSubmitting?.7:1,transition:\"opacity 0.2s, transform 0.1s, background-color 0.2s, color 0.2s\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:\"8px\",direction:componentDirection,...buttonStyles,...currentStyles},onMouseEnter:e=>{if(!disabled&&!isSubmitting&&submitState!==\"success\"&&submitState!==\"error\"){if(hoverStyles.backgroundColor){e.currentTarget.style.backgroundColor=hoverStyles.backgroundColor;}if(hoverStyles.color){e.currentTarget.style.color=hoverStyles.color;}if(hoverStyles.borderColor){e.currentTarget.style.borderColor=hoverStyles.borderColor;}if(hoverStyles.opacity!==undefined){e.currentTarget.style.opacity=String(hoverStyles.opacity);}else if(!hoverStyles.backgroundColor){e.currentTarget.style.opacity=\"0.9\";}if(hoverStyles.scale){e.currentTarget.style.transform=`scale(${hoverStyles.scale})`;}}},onMouseLeave:e=>{if(!disabled&&!isSubmitting&&submitState!==\"success\"&&submitState!==\"error\"){e.currentTarget.style.backgroundColor=buttonCustomStyles.backgroundColor??\"rgb(51, 51, 51)\";e.currentTarget.style.color=buttonCustomStyles.color??\"#FFFFFF\";e.currentTarget.style.borderColor=buttonCustomStyles.border?.borderColor??\"transparent\";e.currentTarget.style.opacity=\"1\";e.currentTarget.style.transform=\"scale(1)\";}},onMouseDown:e=>{if(!disabled&&!isSubmitting&&submitState!==\"success\"&&submitState!==\"error\"){e.currentTarget.style.transform=\"scale(0.98)\";}},onMouseUp:e=>{if(!disabled&&!isSubmitting&&submitState!==\"success\"&&submitState!==\"error\"){e.currentTarget.style.transform=\"scale(1)\";}},children:[isSubmitting&&/*#__PURE__*/_jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"18\",height:\"18\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"3\",strokeLinecap:\"round\",strokeLinejoin:\"round\",style:{animation:\"spin 1s linear infinite\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M21 12a9 9 0 1 1-6.219-8.56\"})}),isSubmitting?loadingText:submitState===\"success\"?successText:submitState===\"error\"?errorText:text,/*#__PURE__*/_jsx(\"style\",{children:`\r\n                    @keyframes spin {\r\n                        0% { transform: rotate(0deg); }\r\n                        100% { transform: rotate(360deg); }\r\n                    }\r\n                `})]})});}addPropertyControls(FormKitSubmit,{formId:{type:ControlType.String,title:\"Form ID\",defaultValue:\"default\"},// === BUTTON TYPE ===\nbuttonType:{type:ControlType.Enum,title:\"Button Type\",options:[\"default\",\"custom\"],optionTitles:[\"Default (Built-in)\",\"Your Component\"],defaultValue:\"default\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},// === CUSTOM BUTTON SLOT ===\ncustomButton:{type:ControlType.Slot,title:\"Custom Button\",description:\"Connect a component with 4 variants: default, loading, success, error\",maxCount:1,hidden:props=>props.buttonType!==\"custom\"},// === VARIANT MAPPINGS ===\nvariantMappings:{type:ControlType.Object,title:\"Variant Names\",description:\"Map your component's variant names to button states\",hidden:props=>props.buttonType!==\"custom\",controls:{defaultVariant:{type:ControlType.String,title:\"Default\",defaultValue:\"default\"},loadingVariant:{type:ControlType.String,title:\"Loading\",defaultValue:\"loading\"},successVariant:{type:ControlType.String,title:\"Success\",defaultValue:\"success\"},errorVariant:{type:ControlType.String,title:\"Error\",defaultValue:\"error\"}}},// === DEFAULT BUTTON TEXT ===\ntext:{type:ControlType.String,title:\"Button Text\",defaultValue:\"Submit\",hidden:props=>props.buttonType===\"custom\"},loadingText:{type:ControlType.String,title:\"Loading Text\",defaultValue:\"Submitting...\",hidden:props=>props.buttonType===\"custom\"},successText:{type:ControlType.String,title:\"Success Text\",defaultValue:\"Form submitted successfully!\",hidden:props=>props.buttonType===\"custom\"},errorText:{type:ControlType.String,title:\"Error Text\",defaultValue:\"Please fix the errors above\",hidden:props=>props.buttonType===\"custom\"},// === DEFAULT BUTTON STYLING ===\nstyling:{type:ControlType.Object,buttonTitle:\"Styles\",hidden:props=>props.buttonType===\"custom\",controls:{buttonStyles:{type:ControlType.Object,buttonTitle:\"Button\",controls:{backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"rgb(51, 51, 51)\"},color:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",displayFontSize:true,displayTextAlignment:false,defaultValue:{fontSize:14,fontWeight:600}},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:10,min:0,max:100},border:{type:ControlType.Border,title:\"Border\",defaultValue:{borderWidth:0,borderColor:\"transparent\",borderStyle:\"solid\"}},padding:{type:ControlType.Padding,title:\"Padding\",defaultValue:\"12px 24px 12px 24px\"}}},hoverStyles:{type:ControlType.Object,buttonTitle:\"Hover\",optional:true,controls:{backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#0099FF\"},color:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"rgba(0, 153, 255, 0)\"},opacity:{type:ControlType.Number,title:\"Opacity\",min:0,max:1,step:.1,defaultValue:1,displayStepper:true},scale:{type:ControlType.Number,title:\"Scale\",min:.9,max:1.1,step:.01,defaultValue:1,displayStepper:true}}},successStyles:{type:ControlType.Object,title:\"Success Styles\",optional:true,controls:{backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#E8F5E9\"},color:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#2E7D32\"}}},errorStyles:{type:ControlType.Object,title:\"Error Styles\",optional:true,controls:{backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFEBEE\"},color:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#C62828\"}}}}},// === TIMING ===\nloadingDuration:{type:ControlType.Number,title:\"Loading Duration (ms)\",defaultValue:1e3,min:0,max:1e4,step:100},successDuration:{type:ControlType.Number,title:\"Success Duration (ms)\",defaultValue:3e3,min:0,max:1e4,step:100},errorDuration:{type:ControlType.Number,title:\"Error Duration (ms)\",defaultValue:3e3,min:0,max:1e4,step:100},// === BEHAVIOR ===\nshowOnlyOnLastStep:{type:ControlType.Boolean,title:\"Show Only On Last Step\",defaultValue:false},disabled:{type:ControlType.Boolean,title:\"Disabled\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FormKitSubmit\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"300\",\"framerSupportedLayoutWidth\":\"any\",\"framerDisableUnlink\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormKitSubmit.map","/**\r\n * FormKitText - Text Input Field\r\n *\r\n * A text input field with validation, conditional visibility, and form store integration.\r\n *\r\n * Features:\r\n * - Hybrid prop structure (flat main options, nested styling)\r\n * - Auto-sync with form store via useFormField hook\r\n * - Configurable validation timing (onBlur, onChange)\r\n * - Error display with validation\r\n * - Conditional visibility (Array/Object format only)\r\n * - Min/max length validation\r\n * - Pattern matching\r\n * - Optional success message\r\n *\r\n */import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useEffect,useState}from\"react\";import{useFormField}from\"https://framerusercontent.com/modules/QcJOsISgPpDHi68MFiJ7/iSwiu9OhhEpwJ9bUO8oz/Hooks.js\";import{getFormStore,getFormStoreKey}from\"https://framerusercontent.com/modules/W9pGMfwOEUT2E0G0vdr3/42YKtSLeppXsa3v6m16i/Store_management.js\";import{evaluateFieldState,getConditionalBadge}from\"https://framerusercontent.com/modules/YQMwVuIkIDYjLHJOwEnu/E43Ih1OWNh9ZYDxH2sAu/Conditions.js\";import{SHOW_IF_CONTROL,SHOW_IF_MATCH_CONTROL,SHOW_IF_ACTION_CONTROL,STORE_CONFIG_CONTROL,VALIDATION_CONTROLS,BASE_INPUT_STYLE_CONTROLS,LABEL_STYLE_CONTROLS,ERROR_STYLE_CONTROLS,SUCCESS_STYLE_CONTROLS,FOCUS_STYLE_CONTROLS,createStylingControl}from\"https://framerusercontent.com/modules/gWXlNkIcFnVLxXMR7ktn/JtLdSfrUYaW9eElJLaFM/Property_controls.js\";import{HiddenFieldMarker}from\"https://framerusercontent.com/modules/zT6ckO4RKI5zB9JzgGVW/5pPr41RBexGJfYLsBNcj/HiddenFieldMarker.js\";import{IconCheck,IconAlert,renderIcon}from\"https://framerusercontent.com/modules/hSeRQvQLiNwfAzfTZN4C/2faSrR7PxMT7RJTYjc17/Icons.js\";import{getFormKitDirection,getTextAlignForDirection}from\"https://framerusercontent.com/modules/TnGeMluKUv3ZoPWbVX5z/6AL0m280OlZ8wllCKODq/Direction.js\";/**\r\n * @framerIntrinsicWidth 300\r\n * @framerSupportedLayoutHeight auto\r\n * @framerSupportedLayoutWidth any-prefer-fixed\r\n * @framerDisableUnlink\r\n */export default function FormKitText(props){const{// Main props\nname,label,placeholder=\"\",required=false,// disabled prop removed\n// Validation (nested)\nvalidation={},// Styling\nstyling={},// Conditional visibility\nshowIf,showIfMatch=\"all\",showIfAction=\"show\",// Store (simplified!)\nformId=\"default\",// storeKey removed\n// Framer\nstyle}=props;// Destructure validation options\nconst{validateOnBlur=true,validateOnChange=false,validationType=\"built-in\",minLength,maxLength,pattern,requiredMessage,minLengthMessage,maxLengthMessage,patternMessage,successMessage}=validation;// Extract nested styling with defaults\nconst{inputStyles={},labelStyles={},errorStyles={},successStyles={},focusStyles={}}=styling;// Warn if name contains spaces\nuseEffect(()=>{if(name.includes(\" \")){console.warn(`FormKit Warning: Field name \"${name}\" contains spaces. `+`This may cause issues. Use camelCase (firstName) or snake_case (first_name) instead.`);}},[name]);// Build validation config based on validationType\nconst validationConfig={required,requiredMessage,type:\"text\",// Only include validations based on validationType\n...validationType===\"built-in\"&&{minLength:minLength||undefined,minLengthMessage,maxLength:maxLength||undefined,maxLengthMessage},...validationType===\"pattern\"&&{pattern:pattern||undefined,patternMessage}};// Get store state first to evaluate conditions before useFormField\n// This allows us to pass skipValidation based on field visibility\nconst actualFormId=formId||\"default\";const useStore=getFormStore(getFormStoreKey(actualFormId,\"auto\"));const[storeState]=useStore();// Detect render mode\nconst isCanvas=RenderTarget.current()===RenderTarget.canvas;// Evaluate field state BEFORE useFormField to determine skipValidation\nconst fieldState=evaluateFieldState(showIf,storeState?.data||{},showIfMatch,showIfAction);// Determine visibility and disabled state\nlet isVisible=true;let isDisabled=false;let showBadge=false;let badgeText=\"\";if(isCanvas){isVisible=true;isDisabled=false;// Use helper function for badge logic\nconst badge=getConditionalBadge(showIf,fieldState,showIfAction);showBadge=badge.showBadge;badgeText=badge.badgeText;}else{isVisible=fieldState.isVisible;isDisabled=fieldState.isDisabled;}// Skip validation if field is hidden or disabled (in preview/live mode)\nconst shouldSkipValidation=!isCanvas&&(!isVisible||isDisabled);// Use custom hook for form field logic\nconst{value,error,isTouched,isValidating,hasValidated,state,handleChange,handleBlur}=useFormField({name,formId,storeKey:\"auto\",validation:validationConfig,validateOnBlur,validateOnChange,skipValidation:shouldSkipValidation,label});// Track focus state for border color\nconst[isFocused,setIsFocused]=useState(false);const componentDirection=getFormKitDirection(style,[label,placeholder,successMessage,value,name]);const resolvedInputTextAlign=getTextAlignForDirection(inputStyles.textAlign,componentDirection);const resolvedLabelTextAlign=getTextAlignForDirection(labelStyles.textAlign,componentDirection);if(!isVisible)return /*#__PURE__*/_jsx(HiddenFieldMarker,{});const hasTextValue=typeof value===\"string\"&&value.trim()!==\"\";const shouldShowSuccess=Boolean(hasValidated&&!isValidating&&!error&&successMessage&&(required?hasTextValue:value));const successDisplayMode=successStyles.displayMode??\"both\";const showInlineSuccessIcon=shouldShowSuccess&&(successDisplayMode===\"both\"||successDisplayMode===\"icon\");const showSuccessMessage=shouldShowSuccess&&(successDisplayMode===\"both\"||successDisplayMode===\"message\");// Build input styles - use success overrides when applicable\nconst inputStyle={width:\"100%\",padding:inputStyles.padding??\"12px\",fontSize:shouldShowSuccess&&successStyles.inputFont?.fontSize?successStyles.inputFont.fontSize:inputStyles.font?.fontSize??14,fontFamily:shouldShowSuccess&&successStyles.inputFont?.fontFamily?successStyles.inputFont.fontFamily:inputStyles.font?.fontFamily??\"inherit\",fontWeight:shouldShowSuccess&&successStyles.inputFont?.fontWeight?successStyles.inputFont.fontWeight:inputStyles.font?.fontWeight??undefined,lineHeight:inputStyles.font?.lineHeight??undefined,letterSpacing:inputStyles.font?.letterSpacing??undefined,textAlign:resolvedInputTextAlign,color:shouldShowSuccess&&successStyles.inputTextColor?successStyles.inputTextColor:isFocused&&focusStyles.textColor?focusStyles.textColor:value?inputStyles.textColor??\"#999999\":inputStyles.placeholderColor??\"#999999\",backgroundColor:isFocused&&focusStyles.backgroundColor?focusStyles.backgroundColor:isDisabled?\"#F5F5F5\":inputStyles.backgroundColor??\"rgba(187, 187, 187, 0.15)\",borderWidth:\"1px\",borderStyle:\"solid\",...isFocused&&focusStyles.border?focusStyles.border:inputStyles.border,borderColor:isCanvas?inputStyles.border?.borderColor??\"rgba(187, 187, 187, 0.15)\":shouldShowSuccess&&successStyles.inputBorderColor?successStyles.inputBorderColor:error&&(isTouched||state?.submitAttempted)?inputStyles.errorBorderColor??\"#FF4444\":isFocused?focusStyles.border?.borderColor??inputStyles.focusBorderColor??\"#0099FF\":inputStyles.border?.borderColor??\"rgba(187, 187, 187, 0.15)\",borderRadius:inputStyles.borderRadius??12,outline:\"none\",transition:focusStyles.transition??\"border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease\",cursor:isDisabled?\"not-allowed\":\"text\",opacity:isDisabled?inputStyles.disabledOpacity??.5:1,boxSizing:\"border-box\",boxShadow:isFocused&&focusStyles.shadows?focusStyles.shadows:inputStyles.shadows};// Build label styles - use success overrides when applicable\nconst labelStyle={display:\"block\",fontSize:shouldShowSuccess&&successStyles.labelFont?.fontSize?successStyles.labelFont.fontSize:labelStyles.font?.fontSize??12,fontWeight:shouldShowSuccess&&successStyles.labelFont?.fontWeight?successStyles.labelFont.fontWeight:labelStyles.font?.fontWeight??\"500\",fontFamily:shouldShowSuccess&&successStyles.labelFont?.fontFamily?successStyles.labelFont.fontFamily:labelStyles.font?.fontFamily??\"Inter\",lineHeight:labelStyles.font?.lineHeight??undefined,letterSpacing:labelStyles.font?.letterSpacing??undefined,textAlign:resolvedLabelTextAlign,textTransform:labelStyles.textTransform??\"none\",color:shouldShowSuccess&&successStyles.labelColor?successStyles.labelColor:labelStyles.color??\"#888888\",marginBottom:labelStyles.marginBottom??8,transition:\"color 0.2s ease\"};// Build error styles\nconst errorStyle={fontSize:errorStyles.font?.fontSize??12,fontWeight:errorStyles.font?.fontWeight??undefined,fontFamily:errorStyles.font?.fontFamily??\"Inter\",lineHeight:errorStyles.font?.lineHeight??undefined,letterSpacing:errorStyles.font?.letterSpacing??undefined,color:errorStyles.color??\"#FF4444\",marginTop:errorStyles.marginTop??4};// Build success message styles\nconst successStyle={fontSize:successStyles.messageFont?.fontSize??12,fontWeight:successStyles.messageFont?.fontWeight??undefined,fontFamily:successStyles.messageFont?.fontFamily??undefined,color:successStyles.messageColor??\"#22C55E\",marginTop:successStyles.marginTop??4};// Generate unique ID for accessibility\nconst fieldId=`${formId}-${name}`;return /*#__PURE__*/_jsxs(\"div\",{...style,style:{...style,display:\"flex\",flexDirection:\"column\",width:\"100%\",position:\"relative\",direction:componentDirection},children:[isCanvas&&showBadge&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:-8,insetInlineEnd:-8,backgroundColor:\"#FF6B00\",color:\"white\",fontSize:10,fontWeight:600,padding:\"2px 6px\",borderRadius:4,zIndex:1e3,pointerEvents:\"none\",boxShadow:\"0 2px 4px rgba(0,0,0,0.2)\"},children:badgeText}),label&&/*#__PURE__*/_jsxs(\"label\",{htmlFor:fieldId,style:labelStyle,children:[label,required&&/*#__PURE__*/_jsx(\"span\",{style:{color:\"#FF4444\",marginInlineStart:4},children:\"*\"})]}),/*#__PURE__*/_jsx(\"style\",{children:`\r\n                #${fieldId} {\r\n                    -webkit-text-fill-color: ${shouldShowSuccess&&successStyles.inputTextColor?successStyles.inputTextColor:isFocused&&focusStyles.textColor?focusStyles.textColor:value?inputStyles.textColor??\"#999999\":inputStyles.placeholderColor??\"#999999\"};\r\n                }\r\n                #${fieldId}::placeholder {\r\n                    color: ${isFocused&&focusStyles.placeholderColor?focusStyles.placeholderColor:inputStyles.placeholderColor??\"#999999\"};\r\n                    -webkit-text-fill-color: ${isFocused&&focusStyles.placeholderColor?focusStyles.placeholderColor:inputStyles.placeholderColor??\"#999999\"};\r\n                    text-align: ${resolvedInputTextAlign};\r\n                    opacity: 1;\r\n                }\r\n                #${fieldId}:-webkit-autofill,\r\n                #${fieldId}:-webkit-autofill:hover,\r\n                #${fieldId}:-webkit-autofill:focus,\r\n                #${fieldId}:-webkit-autofill:active,\r\n                #${fieldId}:autofill,\r\n                #${fieldId}:autofill:hover,\r\n                #${fieldId}:autofill:focus,\r\n                #${fieldId}:autofill:active {\r\n                    -webkit-box-shadow: 0 0 0 1000px ${inputStyles.backgroundColor??\"#F5F5F5\"} inset !important;\r\n                    box-shadow: 0 0 0 1000px ${inputStyles.backgroundColor??\"#F5F5F5\"} inset !important;\r\n                    -webkit-text-fill-color: ${inputStyles.textColor??\"#999999\"} !important;\r\n                    caret-color: ${inputStyles.textColor??\"#999999\"} !important;\r\n                    transition: background-color 5000s ease-in-out 0s !important;\r\n                }\r\n            `}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\"},children:[/*#__PURE__*/_jsx(\"input\",{id:fieldId,type:\"text\",name:name,value:value||\"\",onChange:e=>handleChange(e.target.value),onBlur:()=>{setIsFocused(false);handleBlur();},onFocus:()=>setIsFocused(true),placeholder:placeholder,disabled:isDisabled,required:required,\"data-formkit\":\"true\",minLength:validationType===\"built-in\"&&minLength?minLength:undefined,pattern:validationType===\"pattern\"&&pattern?pattern:undefined,style:inputStyle}),showInlineSuccessIcon&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",insetInlineEnd:12,top:\"50%\",transform:\"translateY(-50%)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:successStyles.iconColor??successStyles.inputTextColor??\"#0099FF\",pointerEvents:\"none\",width:16,height:16},children:renderIcon({iconType:successStyles.iconType,customIcon:successStyles.customIcon,DefaultIcon:IconCheck})})]}),error&&(isTouched||state?.submitAttempted)&&/*#__PURE__*/_jsxs(\"div\",{style:{...errorStyle,display:\"flex\",alignItems:\"center\",textTransform:\"lowercase\",gap:6},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:14,height:14},children:renderIcon({iconType:errorStyles.iconType,customIcon:errorStyles.customIcon,DefaultIcon:IconAlert})}),error]}),showSuccessMessage&&/*#__PURE__*/_jsx(\"div\",{style:{...successStyle},children:successMessage})]});}// Property Controls - Hybrid structure\naddPropertyControls(FormKitText,{// FLAT - Main options (easy to access and update)\nname:{type:ControlType.String,title:\"Name\",defaultValue:\"name\",description:\"Use camelCase or snake_case, NO SPACES. Examples: firstName, user_email, phone_number\",placeholder:\"field-name\"},label:{type:ControlType.String,title:\"Label\",defaultValue:\"Name\",description:\"Field label displayed above input\"},placeholder:{type:ControlType.String,title:\"Placeholder\",defaultValue:\"Enter the name\",description:\"Placeholder text shown when empty\"},required:{type:ControlType.Boolean,title:\"Required\",defaultValue:false},// disabled prop removed\n// NESTED - Validation (organized!)\nvalidation:{type:ControlType.Object,buttonTitle:\"Validation\",optional:true,controls:VALIDATION_CONTROLS},// NESTED - Styling (organized group)\nstyling:createStylingControl({inputStyles:{type:ControlType.Object,buttonTitle:\"Input\",optional:true,controls:{...BASE_INPUT_STYLE_CONTROLS,focusBorderColor:{type:ControlType.Color,hidden:()=>true}}},labelStyles:{type:ControlType.Object,buttonTitle:\"Label\",optional:true,controls:LABEL_STYLE_CONTROLS},errorStyles:{type:ControlType.Object,buttonTitle:\"Error\",optional:true,controls:ERROR_STYLE_CONTROLS},successStyles:{type:ControlType.Object,buttonTitle:\"Success\",optional:true,controls:SUCCESS_STYLE_CONTROLS},focusStyles:{type:ControlType.Object,buttonTitle:\"Focus\",optional:true,controls:FOCUS_STYLE_CONTROLS}}),// Conditional visibility\nshowIf:SHOW_IF_CONTROL,showIfMatch:{...SHOW_IF_MATCH_CONTROL,hidden:props=>!props.showIf||props.showIf.length===0},showIfAction:{...SHOW_IF_ACTION_CONTROL,hidden:props=>!props.showIf||props.showIf.length===0},// Store connection (flat)\n...STORE_CONFIG_CONTROL});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FormKitText\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"300\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerDisableUnlink\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormKitText.map","/**\r\n * FormKitTextarea - Multi-line Text Input Field\r\n *\r\n * A textarea input field with validation, conditional visibility, and form store integration.\r\n *\r\n * Features:\r\n * - Hybrid prop structure (flat main options, nested styling)\r\n * - Auto-sync with form store via useFormField hook\r\n * - Configurable validation timing (onBlur, onChange)\r\n * - Error display with validation\r\n * - Conditional visibility (Array/Object format only)\r\n * - Min/max length validation\r\n * - Pattern matching\r\n * - Optional success message\r\n * - Auto-resize capability\r\n * - Character counter\r\n **/import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useEffect,useRef,useState}from\"react\";import{useFormField}from\"https://framerusercontent.com/modules/QcJOsISgPpDHi68MFiJ7/iSwiu9OhhEpwJ9bUO8oz/Hooks.js\";import{getFormStore,getFormStoreKey}from\"https://framerusercontent.com/modules/W9pGMfwOEUT2E0G0vdr3/42YKtSLeppXsa3v6m16i/Store_management.js\";import{evaluateFieldState,getConditionalBadge}from\"https://framerusercontent.com/modules/YQMwVuIkIDYjLHJOwEnu/E43Ih1OWNh9ZYDxH2sAu/Conditions.js\";import{SHOW_IF_CONTROL,SHOW_IF_MATCH_CONTROL,SHOW_IF_ACTION_CONTROL,STORE_CONFIG_CONTROL,VALIDATION_CONTROLS,BASE_INPUT_STYLE_CONTROLS,LABEL_STYLE_CONTROLS,ERROR_STYLE_CONTROLS,SUCCESS_STYLE_CONTROLS,FOCUS_STYLE_CONTROLS,createStylingControl}from\"https://framerusercontent.com/modules/gWXlNkIcFnVLxXMR7ktn/JtLdSfrUYaW9eElJLaFM/Property_controls.js\";import{HiddenFieldMarker}from\"https://framerusercontent.com/modules/zT6ckO4RKI5zB9JzgGVW/5pPr41RBexGJfYLsBNcj/HiddenFieldMarker.js\";import{IconCheck,IconAlert,renderIcon}from\"https://framerusercontent.com/modules/hSeRQvQLiNwfAzfTZN4C/2faSrR7PxMT7RJTYjc17/Icons.js\";import{getFormKitDirection,getTextAlignForDirection}from\"https://framerusercontent.com/modules/TnGeMluKUv3ZoPWbVX5z/6AL0m280OlZ8wllCKODq/Direction.js\";/**\r\n * @framerIntrinsicWidth 300\r\n * @framerSupportedLayoutHeight auto\r\n * @framerSupportedLayoutWidth any-prefer-fixed\r\n * @framerDisableUnlink\r\n */export default function FormKitTextarea(props){const{// Main props\nname,label,placeholder=\"\",required=false,// disabled prop removed\n// Textarea-specific\nrows=4,autoResize=false,autoResizeMinHeight=100,autoResizeMaxHeight,showCharCount=false,// Validation (nested)\nvalidation={},// Styling\nstyling={},// Conditional visibility\nshowIf,showIfMatch=\"all\",showIfAction=\"show\",// Store (simplified!)\nformId=\"default\",// storeKey removed\n// Framer\nstyle}=props;// Destructure validation options\nconst{validateOnBlur=true,validateOnChange=false,validationType=\"built-in\",minLength,maxLength,pattern,requiredMessage,minLengthMessage,maxLengthMessage,patternMessage,successMessage}=validation;// Extract nested styling with defaults\nconst{inputStyles={},labelStyles={},errorStyles={},successStyles={},focusStyles={}}=styling;// Textarea ref for auto-resize\nconst textareaRef=useRef(null);// Warn if name contains spaces\nuseEffect(()=>{if(name.includes(\" \")){console.warn(`FormKit Warning: Field name \"${name}\" contains spaces. `+`This may cause issues. Use camelCase (firstName) or snake_case (first_name) instead.`);}},[name]);// Build validation config based on validationType\nconst validationConfig={required,requiredMessage,type:\"text\",// Only include validations based on validationType\n...validationType===\"built-in\"&&{minLength:minLength||undefined,minLengthMessage,maxLength:maxLength||undefined,maxLengthMessage},...validationType===\"pattern\"&&{pattern:pattern||undefined,patternMessage}};// Get store state first to evaluate conditions before useFormField\nconst actualFormId=formId||\"default\";const useStore=getFormStore(getFormStoreKey(actualFormId,\"auto\"));const[storeState]=useStore();// Detect render mode\nconst isCanvas=RenderTarget.current()===RenderTarget.canvas;// Evaluate field state BEFORE useFormField to determine skipValidation\nconst fieldState=evaluateFieldState(showIf,storeState?.data||{},showIfMatch,showIfAction);// Determine visibility and disabled state\nlet isVisible=true;let isDisabled=false;let showBadge=false;let badgeText=\"\";if(isCanvas){isVisible=true;isDisabled=false;// Use helper function for badge logic\nconst badge=getConditionalBadge(showIf,fieldState,showIfAction);showBadge=badge.showBadge;badgeText=badge.badgeText;}else{isVisible=fieldState.isVisible;isDisabled=fieldState.isDisabled;}// Skip validation if field is hidden or disabled (in preview/live mode)\nconst shouldSkipValidation=!isCanvas&&(!isVisible||isDisabled);// Use custom hook for form field logic\nconst{value,error,isTouched,isValidating,hasValidated,state,handleChange,handleBlur}=useFormField({name,formId,storeKey:\"auto\",validation:validationConfig,validateOnBlur,validateOnChange,skipValidation:shouldSkipValidation,label});// Auto-resize effect\nuseEffect(()=>{if(autoResize&&textareaRef.current){const el=textareaRef.current;el.style.height=\"auto\";const scrollHeight=el.scrollHeight;const minHeightPx=autoResizeMinHeight?Number(autoResizeMinHeight):100;const maxHeightPx=autoResizeMaxHeight?Number(autoResizeMaxHeight):undefined;const nextHeight=Math.max(scrollHeight,minHeightPx);el.style.height=maxHeightPx?`${Math.min(nextHeight,maxHeightPx)}px`:`${nextHeight}px`;if(maxHeightPx&&nextHeight>maxHeightPx){el.style.overflowY=\"auto\";}else{el.style.overflowY=\"hidden\";}}else if(textareaRef.current){// Reset height when auto-resize is disabled\nconst el=textareaRef.current;el.style.height=\"\";el.style.overflowY=\"\";}},[value,autoResize,autoResizeMinHeight,autoResizeMaxHeight]);// Track focus state for border color\nconst[isFocused,setIsFocused]=useState(false);const componentDirection=getFormKitDirection(style,[label,placeholder,successMessage,value,name]);const resolvedInputTextAlign=getTextAlignForDirection(inputStyles.textAlign,componentDirection);const resolvedLabelTextAlign=getTextAlignForDirection(labelStyles.textAlign,componentDirection);if(!isVisible)return /*#__PURE__*/_jsx(HiddenFieldMarker,{});// Determine if we should show success message\n// Only show success AFTER validation has completed at least once\nconst shouldShowSuccess=hasValidated&&// Validation must have run at least once\n!isValidating&&// Not currently validating\n!error&&// No validation errors\nsuccessMessage&&// User provided success message\nvalue&&// Field has a value\n(required?value.trim()!==\"\":true)// If required, must not be empty\n;// Character count\nconst successDisplayMode=successStyles.displayMode??\"both\";const showInlineSuccessIcon=shouldShowSuccess&&(successDisplayMode===\"both\"||successDisplayMode===\"icon\");const showSuccessMessage=shouldShowSuccess&&successMessage&&(successDisplayMode===\"both\"||successDisplayMode===\"message\");const charCount=(value||\"\").length;// Build textarea styles - use success overrides when applicable\nconst textareaStyle={width:\"100%\",padding:inputStyles.padding??\"12px\",fontSize:shouldShowSuccess&&successStyles.inputFont?.fontSize?successStyles.inputFont.fontSize:inputStyles.font?.fontSize??14,fontFamily:shouldShowSuccess&&successStyles.inputFont?.fontFamily?successStyles.inputFont.fontFamily:inputStyles.font?.fontFamily??\"inherit\",fontWeight:shouldShowSuccess&&successStyles.inputFont?.fontWeight?successStyles.inputFont.fontWeight:inputStyles.font?.fontWeight??undefined,lineHeight:inputStyles.font?.lineHeight??undefined,letterSpacing:inputStyles.font?.letterSpacing??undefined,textAlign:resolvedInputTextAlign,color:shouldShowSuccess&&successStyles.inputTextColor?successStyles.inputTextColor:isFocused&&focusStyles.textColor?focusStyles.textColor:value?inputStyles.textColor??\"#999999\":inputStyles.placeholderColor??\"#999999\",backgroundColor:isFocused&&focusStyles.backgroundColor?focusStyles.backgroundColor:isDisabled?\"#F5F5F5\":inputStyles.backgroundColor??\"rgba(187, 187, 187, 0.15)\",borderWidth:\"1px\",borderStyle:\"solid\",...isFocused&&focusStyles.border?focusStyles.border:inputStyles.border,borderColor:isCanvas?inputStyles.border?.borderColor??\"rgba(187, 187, 187, 0.15)\":shouldShowSuccess&&successStyles.inputBorderColor?successStyles.inputBorderColor:error&&(isTouched||state?.submitAttempted)?inputStyles.errorBorderColor??\"#FF4444\":isFocused?focusStyles.border?.borderColor??inputStyles.focusBorderColor??\"#0099FF\":inputStyles.border?.borderColor??\"rgba(187, 187, 187, 0.15)\",borderRadius:inputStyles.borderRadius??12,outline:\"none\",transition:focusStyles.transition??\"border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease\",cursor:isDisabled?\"not-allowed\":\"text\",opacity:isDisabled?inputStyles.disabledOpacity??.5:1,boxSizing:\"border-box\",resize:autoResize?\"none\":\"vertical\",boxShadow:isFocused&&focusStyles.shadows?focusStyles.shadows:inputStyles.shadows,minHeight:autoResize?autoResizeMinHeight||100:undefined};// Build label styles - use success overrides when applicable\nconst labelStyle={display:\"block\",fontSize:shouldShowSuccess&&successStyles.labelFont?.fontSize?successStyles.labelFont.fontSize:labelStyles.font?.fontSize??12,fontWeight:shouldShowSuccess&&successStyles.labelFont?.fontWeight?successStyles.labelFont.fontWeight:labelStyles.font?.fontWeight??\"500\",fontFamily:shouldShowSuccess&&successStyles.labelFont?.fontFamily?successStyles.labelFont.fontFamily:labelStyles.font?.fontFamily??\"Inter\",lineHeight:labelStyles.font?.lineHeight??undefined,letterSpacing:labelStyles.font?.letterSpacing??undefined,textAlign:resolvedLabelTextAlign,textTransform:labelStyles.textTransform??\"none\",color:shouldShowSuccess&&successStyles.labelColor?successStyles.labelColor:labelStyles.color??\"#888888\",marginBottom:labelStyles.marginBottom??8,transition:\"color 0.2s ease\"};// Build error styles\nconst errorStyle={fontSize:errorStyles.font?.fontSize??12,fontWeight:errorStyles.font?.fontWeight??undefined,fontFamily:errorStyles.font?.fontFamily??\"inherit\",lineHeight:errorStyles.font?.lineHeight??undefined,letterSpacing:errorStyles.font?.letterSpacing??undefined,color:errorStyles.color??\"#FF4444\",marginTop:errorStyles.marginTop??4};// Build success message styles\nconst successStyle={fontSize:successStyles.messageFont?.fontSize??12,fontWeight:successStyles.messageFont?.fontWeight??undefined,fontFamily:successStyles.messageFont?.fontFamily??undefined,color:successStyles.messageColor??\"#22C55E\",marginTop:successStyles.marginTop??4};// Generate unique ID for accessibility\nconst fieldId=`${formId}-${name}`;return /*#__PURE__*/_jsxs(\"div\",{...style,style:{...style,display:\"flex\",flexDirection:\"column\",width:\"100%\",position:\"relative\",direction:componentDirection},children:[isCanvas&&showBadge&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:-8,insetInlineEnd:-8,backgroundColor:\"#FF6B00\",color:\"white\",fontSize:10,fontWeight:600,padding:\"2px 6px\",borderRadius:4,zIndex:1e3,pointerEvents:\"none\",boxShadow:\"0 2px 4px rgba(0,0,0,0.2)\"},children:badgeText}),label&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",gap:12,width:\"100%\"},children:[/*#__PURE__*/_jsxs(\"label\",{htmlFor:fieldId,style:{...labelStyle,flex:1},children:[label,required&&/*#__PURE__*/_jsx(\"span\",{style:{color:\"#FF4444\",marginInlineStart:4},children:\"*\"})]}),showCharCount&&maxLength&&validationType===\"built-in\"&&/*#__PURE__*/_jsxs(\"span\",{style:{fontSize:12,color:\"#666666\"},children:[charCount,\"/\",maxLength]})]}),/*#__PURE__*/_jsx(\"style\",{children:`\r\n                #${fieldId} {\r\n                    -webkit-text-fill-color: ${shouldShowSuccess&&successStyles.inputTextColor?successStyles.inputTextColor:isFocused&&focusStyles.textColor?focusStyles.textColor:value?inputStyles.textColor??\"#999999\":inputStyles.placeholderColor??\"#999999\"};\r\n                }\r\n                #${fieldId}::placeholder {\r\n                    color: ${isFocused&&focusStyles.placeholderColor?focusStyles.placeholderColor:inputStyles.placeholderColor??\"#999999\"};\r\n                    -webkit-text-fill-color: ${isFocused&&focusStyles.placeholderColor?focusStyles.placeholderColor:inputStyles.placeholderColor??\"#999999\"};\r\n                    text-align: ${resolvedInputTextAlign};\r\n                    opacity: 1;\r\n                }\r\n                #${fieldId}:-webkit-autofill,\r\n                #${fieldId}:-webkit-autofill:hover,\r\n                #${fieldId}:-webkit-autofill:focus,\r\n                #${fieldId}:-webkit-autofill:active,\r\n                #${fieldId}:autofill,\r\n                #${fieldId}:autofill:hover,\r\n                #${fieldId}:autofill:focus,\r\n                #${fieldId}:autofill:active {\r\n                    -webkit-box-shadow: 0 0 0 1000px ${inputStyles.backgroundColor??\"#F5F5F5\"} inset !important;\r\n                    box-shadow: 0 0 0 1000px ${inputStyles.backgroundColor??\"#F5F5F5\"} inset !important;\r\n                    -webkit-text-fill-color: ${inputStyles.textColor??\"#999999\"} !important;\r\n                    caret-color: ${inputStyles.textColor??\"#999999\"} !important;\r\n                    transition: background-color 5000s ease-in-out 0s !important;\r\n                }\r\n            `}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\"},children:[/*#__PURE__*/_jsx(\"textarea\",{ref:textareaRef,id:fieldId,name:name,value:value||\"\",onChange:e=>handleChange(e.target.value),onBlur:()=>{setIsFocused(false);handleBlur();},onFocus:()=>setIsFocused(true),onInvalid:e=>e.preventDefault(),placeholder:placeholder,disabled:isDisabled,required:required,\"data-formkit\":\"true\",minLength:validationType===\"built-in\"&&minLength?minLength:undefined,maxLength:validationType===\"built-in\"&&maxLength?maxLength:undefined,rows:autoResize?1:rows,style:textareaStyle}),showInlineSuccessIcon&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",insetInlineEnd:12,top:12,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:successStyles.iconColor??successStyles.inputTextColor??\"#0099FF\",pointerEvents:\"none\",width:16,height:16},children:renderIcon({iconType:successStyles.iconType,customIcon:successStyles.customIcon,DefaultIcon:IconCheck})})]}),error&&(isTouched||state?.submitAttempted)&&/*#__PURE__*/_jsxs(\"div\",{style:{...errorStyle,display:\"flex\",alignItems:\"center\",textTransform:\"lowercase\",gap:6},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:14,height:14},children:renderIcon({iconType:errorStyles.iconType,customIcon:errorStyles.customIcon,DefaultIcon:IconAlert})}),error]}),showSuccessMessage&&/*#__PURE__*/_jsx(\"div\",{style:successStyle,children:successMessage})]});}// Property Controls - Hybrid structure (matching FormKitText pattern)\naddPropertyControls(FormKitTextarea,{// FLAT - Main options (easy to access and update)\nname:{type:ControlType.String,title:\"Name\",defaultValue:\"message\",description:\"Use camelCase or snake_case, NO SPACES. Examples: message, user_bio, comments\",placeholder:\"field-name\"},label:{type:ControlType.String,title:\"Label\",defaultValue:\"Message\",description:\"Field label displayed above textarea\"},placeholder:{type:ControlType.String,title:\"Placeholder\",defaultValue:\"Message\",description:\"Placeholder text shown when empty\"},required:{type:ControlType.Boolean,title:\"Required\",defaultValue:false},// disabled prop removed - use showIfAction with \"Enable Field\" / \"Disable Field\"\n// FLAT - Textarea-specific options\nrows:{type:ControlType.Number,title:\"Rows\",defaultValue:4,min:1,max:20,step:1,displayStepper:true,hidden:props=>props.autoResize},autoResize:{type:ControlType.Boolean,title:\"Auto Resize\",description:\"Automatically grow as user types\",defaultValue:false},autoResizeMinHeight:{type:ControlType.Number,title:\"Min Height (px)\",min:40,max:500,step:10,defaultValue:100,displayStepper:true,description:\"Minimum height when auto-resizing\",hidden:props=>!props.autoResize},autoResizeMaxHeight:{type:ControlType.Number,title:\"Max Height (px)\",min:50,max:1200,step:10,displayStepper:true,description:\"Maximum height when auto-resizing\",hidden:props=>!props.autoResize},showCharCount:{type:ControlType.Boolean,title:\"Show Char Count\",description:\"Display character counter (requires Max Length)\",defaultValue:false,hidden:props=>!props.validation?.maxLength||props.validation?.validationType===\"pattern\"},// NESTED - Validation (organized!)\nvalidation:{type:ControlType.Object,buttonTitle:\"Validation\",optional:true,controls:VALIDATION_CONTROLS},// NESTED - Styling (organized group)\nstyling:createStylingControl({inputStyles:{type:ControlType.Object,buttonTitle:\"Textarea\",optional:true,controls:{...BASE_INPUT_STYLE_CONTROLS,focusBorderColor:{type:ControlType.Color,hidden:()=>true}}},labelStyles:{type:ControlType.Object,buttonTitle:\"Label\",optional:true,controls:LABEL_STYLE_CONTROLS},errorStyles:{type:ControlType.Object,buttonTitle:\"Error\",optional:true,controls:ERROR_STYLE_CONTROLS},successStyles:{type:ControlType.Object,buttonTitle:\"Success\",optional:true,controls:SUCCESS_STYLE_CONTROLS},focusStyles:{type:ControlType.Object,buttonTitle:\"Focus\",optional:true,controls:FOCUS_STYLE_CONTROLS}}),// Conditional visibility\nshowIf:SHOW_IF_CONTROL,showIfMatch:{...SHOW_IF_MATCH_CONTROL,hidden:props=>!props.showIf||props.showIf.length===0},showIfAction:{...SHOW_IF_ACTION_CONTROL,hidden:props=>!props.showIf||props.showIf.length===0},// Store connection (flat)\n...STORE_CONFIG_CONTROL});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FormKitTextarea\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"300\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormKitTextarea.map"],"mappings":"A,oPAA8E,SAAg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