{"version":3,"file":"Form_Phone_Validation.DBsTirjS.mjs","names":["React.Fragment","localizedValues","React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId","RichText","useRef","__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/8vM0sZkuUiM1B7QsE38E/3SaUCUm9mqJbtmDknkBQ/wrmpdkR1V-0.js","https:/framerusercontent.com/modules/8vM0sZkuUiM1B7QsE38E/3SaUCUm9mqJbtmDknkBQ/wrmpdkR1V.js","https:/framerusercontent.com/modules/HQP66HuueWfXnyq0of6U/2A6UhUM7fxA0OW0ifRBl/wrmpdkR1V.js","https:/framerusercontent.com/modules/pyDqXB5OIxDKgg8wWbYj/uVYDYVQEQXA2m6cKNDuQ/Form_Phone_Validation.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import*as React from\"react\";export const v0=/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--font-selector\":\"R0Y7R2Vpc3QtcmVndWxhcg==\",\"--framer-font-family\":'\"Geist\", \"Geist Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-line-height\":\"140%\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-dd715bc7-7df6-4e7f-98f7-e1e2ac9f0680, rgb(255, 255, 254)))\"},children:\"Submit\"})});export const v1=/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--framer-font-size\":\"14px\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Message sent\"})});export const v2=/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--font-selector\":\"R0Y7R2Vpc3QtcmVndWxhcg==\",\"--framer-font-family\":'\"Geist\", \"Geist Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 34, 68))\"},children:\"Something went wrong\"})});\nexport const __FramerMetadata__ = {\"exports\":{\"v0\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"v2\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"v1\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (a322632)\nimport*as localizedValues from\"./wrmpdkR1V-0.js\";const valuesByLocaleId={l7Y1XRinm:localizedValues};export default function getLocalizedValue(key,locale){while(locale){const values=valuesByLocaleId[locale.id];if(values){const value=values[key];if(value)return value;}locale=locale.fallback;}}export function usePreloadLocalizedValues(){}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"usePreloadLocalizedValues\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (a322632)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS,withFX}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";import getLocalizedValue from\"https://framerusercontent.com/modules/8vM0sZkuUiM1B7QsE38E/3SaUCUm9mqJbtmDknkBQ/wrmpdkR1V.js\";const MotionDivWithFX=withFX(motion.div);const enabledGestures={KtgGFhoSP:{hover:true,pressed:true}};const cycleOrder=[\"KtgGFhoSP\",\"xMxPmdS7B\",\"JpBRYBL1y\",\"opZhzPj75\",\"nbsJ9x9e6\"];const serializationHash=\"framer-uLY79\";const variantClassNames={JpBRYBL1y:\"framer-v-q1tlj3\",KtgGFhoSP:\"framer-v-1n62yc0\",nbsJ9x9e6:\"framer-v-1vyzue4\",opZhzPj75:\"framer-v-wo9d0a\",xMxPmdS7B:\"framer-v-nozl11\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={delay:0,duration:.2,ease:[.44,0,.56,1],type:\"tween\"};const transition2={delay:0,duration:1,ease:[0,0,1,1],type:\"tween\"};const animation={opacity:1,rotate:360,rotateX:0,rotateY:0,scale:1,skewX:0,skewY:0,x:0,y:0};const transformTemplate1=(_,t)=>`translateX(-50%) ${t}`;const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const humanReadableVariantMap={Default:\"KtgGFhoSP\",Disabled:\"JpBRYBL1y\",Error:\"nbsJ9x9e6\",Loading:\"xMxPmdS7B\",Success:\"opZhzPj75\"};const Variants=motion.create(React.Fragment);const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"KtgGFhoSP\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"KtgGFhoSP\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const isDisplayed=()=>{if(baseVariant===\"xMxPmdS7B\")return false;return true;};const isDisplayed1=()=>{if(baseVariant===\"xMxPmdS7B\")return true;return false;};return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsxs(motion.button,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-1n62yc0\",className,classNames),\"data-framer-name\":\"Default\",\"data-reset\":\"button\",layoutDependency:layoutDependency,layoutId:\"KtgGFhoSP\",ref:refBinding,style:{backgroundColor:\"rgb(51, 51, 51)\",opacity:1,...style},variants:{\"KtgGFhoSP-hover\":{backgroundColor:\"rgba(51, 51, 51, 0.85)\",opacity:1},\"KtgGFhoSP-pressed\":{opacity:1},JpBRYBL1y:{opacity:.5},nbsJ9x9e6:{backgroundColor:\"rgba(255, 34, 68, 0.15)\",opacity:1},opZhzPj75:{backgroundColor:\"var(--token-1387553f-8b62-4bf0-96da-236d18bc5300, rgb(67, 111, 255))\",opacity:1}},...addPropertyOverrides({JpBRYBL1y:{\"data-framer-name\":\"Disabled\"},nbsJ9x9e6:{\"data-framer-name\":\"Error\"},opZhzPj75:{\"data-framer-name\":\"Success\"},xMxPmdS7B:{\"data-framer-name\":\"Loading\"}},baseVariant,gestureVariant),children:[isDisplayed()&&/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:getLocalizedValue(\"v0\",activeLocale)??/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--font-selector\":\"R0Y7R2Vpc3QtcmVndWxhcg==\",\"--framer-font-family\":'\"Geist\", \"Geist Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-line-height\":\"140%\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-dd715bc7-7df6-4e7f-98f7-e1e2ac9f0680, rgb(255, 255, 254)))\"},children:\"Abschicken\"})}),className:\"framer-1ag84ku\",fonts:[\"GF;Geist-regular\"],layoutDependency:layoutDependency,layoutId:\"fbbvthv1u\",style:{\"--extracted-r6o4lv\":\"var(--token-dd715bc7-7df6-4e7f-98f7-e1e2ac9f0680, rgb(255, 255, 254))\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},variants:{nbsJ9x9e6:{\"--extracted-r6o4lv\":\"rgb(255, 34, 68)\"},opZhzPj75:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({nbsJ9x9e6:{children:getLocalizedValue(\"v2\",activeLocale)??/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--font-selector\":\"R0Y7R2Vpc3QtcmVndWxhcg==\",\"--framer-font-family\":'\"Geist\", \"Geist Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 34, 68))\"},children:\"Etwas hat nicht geklappt\"})})},opZhzPj75:{children:getLocalizedValue(\"v1\",activeLocale)??/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--framer-font-size\":\"14px\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Nachricht \\xfcbermittelt\"})}),fonts:[\"Inter\"]}},baseVariant,gestureVariant)}),isDisplayed1()&&/*#__PURE__*/_jsx(motion.div,{className:\"framer-6zb1i4\",\"data-framer-name\":\"Spinner\",layoutDependency:layoutDependency,layoutId:\"xKu4eba8F\",style:{mask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\"},children:/*#__PURE__*/_jsx(MotionDivWithFX,{__framer__loop:animation,__framer__loopEffectEnabled:true,__framer__loopRepeatDelay:0,__framer__loopRepeatType:\"loop\",__framer__loopTransition:transition2,__perspectiveFX:false,__smartComponentFX:true,__targetOpacity:1,className:\"framer-okws0t\",\"data-framer-name\":\"Conic\",layoutDependency:layoutDependency,layoutId:\"GNUhczzrp\",style:{background:\"conic-gradient(from 180deg at 50% 50%, rgb(68, 204, 255) 0deg, rgb(68, 204, 255) 360deg)\",backgroundColor:\"rgb(68, 204, 255)\",mask:\"none\",WebkitMask:\"none\"},variants:{xMxPmdS7B:{background:\"conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0) 7.208614864864882deg, rgb(255, 255, 255) 342deg)\",backgroundColor:\"rgba(0, 0, 0, 0)\",mask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\"}},children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-1ghvgti\",\"data-framer-name\":\"Rounding\",layoutDependency:layoutDependency,layoutId:\"UjZRP0NNC\",style:{backgroundColor:\"rgb(255, 255, 255)\",borderBottomLeftRadius:1,borderBottomRightRadius:1,borderTopLeftRadius:1,borderTopRightRadius:1},transformTemplate:transformTemplate1})})})]})})})});});const css=[\".framer-uLY79.framer-1qaojcy, .framer-uLY79 .framer-1qaojcy { display: block; }\",\".framer-uLY79.framer-1n62yc0 { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: min-content; justify-content: center; overflow: visible; padding: 8px 12px 8px 12px; position: relative; width: min-content; }\",\".framer-uLY79 .framer-1ag84ku { -webkit-user-select: none; flex: none; height: auto; position: relative; user-select: none; white-space: pre; width: auto; }\",\".framer-uLY79 .framer-6zb1i4 { aspect-ratio: 1 / 1; flex: none; gap: 10px; height: auto; overflow: hidden; position: relative; width: 20px; }\",\".framer-uLY79 .framer-okws0t { bottom: 0px; flex: none; left: 0px; overflow: visible; position: absolute; right: 0px; top: 0px; }\",\".framer-uLY79 .framer-1ghvgti { aspect-ratio: 1 / 1; flex: none; height: auto; left: 50%; overflow: visible; position: absolute; top: 0px; width: 2px; }\",\".framer-uLY79.framer-v-nozl11.framer-1n62yc0, .framer-uLY79.framer-v-q1tlj3.framer-1n62yc0, .framer-uLY79.framer-v-wo9d0a.framer-1n62yc0, .framer-uLY79.framer-v-1vyzue4.framer-1n62yc0 { cursor: unset; }\",\".framer-uLY79.framer-v-nozl11 .framer-okws0t { overflow: hidden; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 36\n * @framerIntrinsicWidth 98\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"xMxPmdS7B\":{\"layout\":[\"auto\",\"auto\"]},\"JpBRYBL1y\":{\"layout\":[\"auto\",\"auto\"]},\"opZhzPj75\":{\"layout\":[\"auto\",\"auto\"]},\"nbsJ9x9e6\":{\"layout\":[\"auto\",\"auto\"]},\"Vu8yCfRCN\":{\"layout\":[\"auto\",\"auto\"]},\"PjEE2KzFY\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerwrmpdkR1V=withCSS(Component,css,\"framer-uLY79\");export default FramerwrmpdkR1V;FramerwrmpdkR1V.displayName=\"Form Button\";FramerwrmpdkR1V.defaultProps={height:36,width:98};addPropertyControls(FramerwrmpdkR1V,{variant:{options:[\"KtgGFhoSP\",\"xMxPmdS7B\",\"JpBRYBL1y\",\"opZhzPj75\",\"nbsJ9x9e6\"],optionTitles:[\"Default\",\"Loading\",\"Disabled\",\"Success\",\"Error\"],title:\"Variant\",type:ControlType.Enum}});addFonts(FramerwrmpdkR1V,[{explicitInter:true,fonts:[{cssFamilyName:\"Geist\",source:\"google\",style:\"normal\",uiFamilyName:\"Geist\",url:\"https://fonts.gstatic.com/s/geist/v5/gyBhhwUxId8gMGYQMKR3pzfaWI_RnOM4mJPby1QNtA.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/5vvr9Vy74if2I6bQbJvbw7SY1pQ.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/EOr0mi4hNtlgWNn9if640EZzXCo.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/Y9k9QrlZAqio88Klkmbd8VoMQc.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/OYrD2tBIBPvoJXiIHnLoOXnY9M.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/JeYwfuaPfZHQhEG8U5gtPDZ7WQ.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/GrgcKwrN6d3Uz8EwcLHZxwEfC4.woff2\",weight:\"400\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/b6Y37FthZeALduNqHicBT6FutY.woff2\",weight:\"400\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerwrmpdkR1V\",\"slots\":[],\"annotations\":{\"framerComponentViewportWidth\":\"true\",\"framerImmutableVariables\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"xMxPmdS7B\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"JpBRYBL1y\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"opZhzPj75\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"nbsJ9x9e6\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"Vu8yCfRCN\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"PjEE2KzFY\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerIntrinsicWidth\":\"98\",\"framerContractVersion\":\"1\",\"framerAutoSizeImages\":\"true\",\"framerIntrinsicHeight\":\"36\",\"framerColorSyntax\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./wrmpdkR1V.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";const PHONE_PATTERN=/^\\+[1-9][\\d\\s\\-]{5,17}$/;const PHONE_SELECTORS=['input[type=\"tel\"]','input[name=\"Mobil\"]','input[name=\"mobil\"]','input[name=\"Phone\"]','input[name=\"phone\"]','input[name=\"Telefon\"]','input[name=\"telefon\"]'].join(\", \");const ERROR_DE=\"Bitte geben Sie eine g\\xfcltige Telefonnummer ein (z.B. +49 151 23456789)\";const SUCCESS_LABEL_PRIMARY=\"nachricht \\xfcbermittelt\";const REDIRECT_PATH=\"/kontakt/danke\";export function withPhoneValidation(){const uid=useRef(\"pf-\"+Math.random().toString(36).slice(2,8));useEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\"){return;}let remove=null;requestAnimationFrame(()=>{const wrapper=document.querySelector('[data-pf=\"'+uid.current+'\"]');if(!wrapper)return;const form=wrapper.tagName===\"FORM\"?wrapper:wrapper.querySelector(\"form\");if(!form)return;let submitPending=false;let pendingSince=0;let didRedirect=false;const PENDING_TIMEOUT_MS=25e3;let pendingTimeoutId=0;const endPending=()=>{submitPending=false;pendingSince=0;if(pendingTimeoutId){window.clearTimeout(pendingTimeoutId);pendingTimeoutId=0;}};const onSubmit=e=>{const inputs=form.querySelectorAll(PHONE_SELECTORS);for(let i=0;i<inputs.length;i++){const input=inputs[i];const val=input.value.trim();if(!val)continue;if(!PHONE_PATTERN.test(val)){e.preventDefault();e.stopPropagation();input.setCustomValidity(ERROR_DE);input.reportValidity();return;}input.setCustomValidity(\"\");}submitPending=true;pendingSince=Date.now();if(pendingTimeoutId){window.clearTimeout(pendingTimeoutId);}pendingTimeoutId=window.setTimeout(()=>{endPending();},PENDING_TIMEOUT_MS);};const onInput=e=>{const t=e.target;if(t&&t.tagName===\"INPUT\"){t.setCustomValidity(\"\");}};const normalizeText=value=>value.normalize(\"NFD\").replace(/[\\u0300-\\u036f]/g,\"\").toLowerCase().replace(/\\s+/g,\" \").trim();const matchesSuccessLabel=value=>{const normalized=normalizeText(value);if(!normalized)return false;return normalized.includes(normalizeText(SUCCESS_LABEL_PRIMARY));};const collectRenderedEvidence=node=>{const parts=[];parts.push(node.textContent||\"\");if(node instanceof HTMLInputElement){parts.push(node.value||\"\");}if(node instanceof HTMLElement){parts.push(node.getAttribute(\"aria-label\")||\"\");parts.push(node.getAttribute(\"title\")||\"\");}const nested=node.querySelectorAll('input[type=\"submit\"], [aria-label], [title]');nested.forEach(el=>{parts.push(el.textContent||\"\");if(el instanceof HTMLInputElement){parts.push(el.value||\"\");}if(el instanceof HTMLElement){parts.push(el.getAttribute(\"aria-label\")||\"\");parts.push(el.getAttribute(\"title\")||\"\");}});return parts.join(\" \");};const findSubmitControl=()=>{const direct=form.querySelector('button[type=\"submit\"], input[type=\"submit\"]');if(direct)return direct;const roleButton=form.querySelector('[role=\"button\"][type=\"submit\"], [role=\"button\"][aria-label*=\"submit\" i], [role=\"button\"][aria-label*=\"senden\" i]');if(roleButton)return roleButton;return null;};let submitButtonNode=null;let submitButtonObserver=null;const redirectOnce=()=>{if(didRedirect)return;didRedirect=true;endPending();window.location.assign(REDIRECT_PATH);};const checkForSuccessAndRedirect=()=>{if(!submitPending||didRedirect)return;const elapsed=Date.now()-pendingSince;if(elapsed>PENDING_TIMEOUT_MS){endPending();return;}if(submitButtonNode){const evidence=collectRenderedEvidence(submitButtonNode);if(matchesSuccessLabel(evidence)){redirectOnce();}}};const bindSubmitButtonObserver=()=>{const nextNode=findSubmitControl();if(nextNode===submitButtonNode)return;if(submitButtonObserver){submitButtonObserver.disconnect();submitButtonObserver=null;}submitButtonNode=nextNode;if(!submitButtonNode)return;submitButtonObserver=new MutationObserver(()=>{checkForSuccessAndRedirect();});submitButtonObserver.observe(submitButtonNode,{subtree:true,childList:true,characterData:true,attributes:true});checkForSuccessAndRedirect();};const formObserver=new MutationObserver(()=>{bindSubmitButtonObserver();checkForSuccessAndRedirect();});form.addEventListener(\"submit\",onSubmit,true);form.addEventListener(\"input\",onInput);formObserver.observe(form,{subtree:true,childList:true,attributes:true,characterData:true});bindSubmitButtonObserver();remove=()=>{form.removeEventListener(\"submit\",onSubmit,true);form.removeEventListener(\"input\",onInput);formObserver.disconnect();if(submitButtonObserver){submitButtonObserver.disconnect();}endPending();};});return()=>{if(remove){remove();}};},[]);return{\"data-pf\":uid.current};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withwithPhoneValidation(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...withPhoneValidation(props)});};}withwithPhoneValidation.displayName=\"withPhoneValidation\";\nexport const __FramerMetadata__ = {\"exports\":{\"withPhoneValidation\":{\"type\":\"override\",\"name\":\"withPhoneValidation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withwithPhoneValidation\":{\"type\":\"reactHoc\",\"name\":\"withwithPhoneValidation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Form_Phone_Validation.map"],"mappings":"scAA0C,IAAkC,IAA4B,EAAc,EAAgB,EAAKA,EAAe,CAAC,SAAsB,EAAK,EAAO,EAAE,CAAC,IAAI,OAAO,MAAM,CAAC,kBAAkB,2BAA2B,uBAAuB,2CAA2C,qBAAqB,OAAO,uBAAuB,OAAO,sBAAsB,gGAAgG,EAAE,SAAS,QAAQ,CAAC,CAAC,CAAC,EAAe,EAAgB,EAAKA,EAAe,CAAC,SAAsB,EAAK,EAAO,EAAE,CAAC,IAAI,OAAO,MAAM,CAAC,qBAAqB,OAAO,sBAAsB,6CAA6C,EAAE,SAAS,cAAc,CAAC,CAAC,CAAC,EAAe,EAAgB,EAAKA,EAAe,CAAC,SAAsB,EAAK,EAAO,EAAE,CAAC,IAAI,OAAO,MAAM,CAAC,kBAAkB,2BAA2B,uBAAuB,2CAA2C,qBAAqB,OAAO,sBAAsB,2CAA2C,EAAE,SAAS,sBAAs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