{"version":3,"file":"Validation.CfzApN9C.mjs","names":["callApi","t","callClintApi","Component","t","Component","Component"],"sources":["https:/framerusercontent.com/modules/MQV6UN4ZybS7LzDFjDD2/24CCVBnFMcWqfWwLzOGC/Zspr1YMZV.js","https:/framerusercontent.com/modules/94NB7gPJFCNI2z6wyoeZ/q5fKbvm6lCQx1AzHIWDH/Redirect_anual.js","https:/framerusercontent.com/modules/zNmYufVPwJPHbUaQGOdS/FbkF1nBdKmxaJj6ZHKQY/Redirect_mensal.js","https:/framerusercontent.com/modules/puq4WBnDWwaKPL3fz3NR/7O82MQ5qPVQrMBhjhiTl/Validation.js"],"sourcesContent":["// Generated by Framer (47ebf4a)\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\";const MotionDivWithFX=withFX(motion.div);const enabledGestures={MgvkUqbHG:{hover:true,pressed:true}};const cycleOrder=[\"MgvkUqbHG\",\"tiWuUYix7\",\"qmSpsMJNV\",\"prIQciICf\",\"mZvA9jMcl\"];const serializationHash=\"framer-6Ff8T\";const variantClassNames={MgvkUqbHG:\"framer-v-16vcw2t\",mZvA9jMcl:\"framer-v-wlphlw\",prIQciICf:\"framer-v-k1bgp2\",qmSpsMJNV:\"framer-v-155txy0\",tiWuUYix7:\"framer-v-13c36pd\"};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 Variants=motion.create(React.Fragment);const humanReadableVariantMap={Default:\"MgvkUqbHG\",Disabled:\"qmSpsMJNV\",Error:\"mZvA9jMcl\",Loading:\"tiWuUYix7\",Success:\"prIQciICf\"};const getProps=({height,id,width,...props})=>{return{...props,variant:humanReadableVariantMap[props.variant]??props.variant??\"MgvkUqbHG\"};};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:\"MgvkUqbHG\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const isDisplayed=()=>{if(baseVariant===\"tiWuUYix7\")return false;return true;};const isDisplayed1=()=>{if(baseVariant===\"tiWuUYix7\")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-16vcw2t\",className,classNames),\"data-framer-name\":\"Default\",\"data-reset\":\"button\",layoutDependency:layoutDependency,layoutId:\"MgvkUqbHG\",ref:refBinding,style:{background:\"linear-gradient(180deg, rgb(255, 36, 36) -123%, rgb(51, 51, 51) 578%)\",borderBottomLeftRadius:40,borderBottomRightRadius:40,borderTopLeftRadius:40,borderTopRightRadius:40,opacity:1,...style},variants:{\"MgvkUqbHG-hover\":{opacity:1},\"MgvkUqbHG-pressed\":{opacity:1},mZvA9jMcl:{opacity:1},prIQciICf:{opacity:1},qmSpsMJNV:{opacity:.5}},...addPropertyOverrides({\"MgvkUqbHG-hover\":{\"data-framer-name\":undefined},\"MgvkUqbHG-pressed\":{\"data-framer-name\":undefined},mZvA9jMcl:{\"data-framer-name\":\"Error\"},prIQciICf:{\"data-framer-name\":\"Success\"},qmSpsMJNV:{\"data-framer-name\":\"Disabled\"},tiWuUYix7:{\"data-framer-name\":\"Loading\"}},baseVariant,gestureVariant),children:[isDisplayed()&&/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-family\":'\"Inter\", \"Inter Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Continuar inscri\\xe7\\xe3o →\"})}),className:\"framer-1nfqypv\",fonts:[\"Inter-SemiBold\"],layoutDependency:layoutDependency,layoutId:\"zFXm2qztu\",style:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},variants:{mZvA9jMcl:{\"--extracted-r6o4lv\":\"rgb(255, 34, 68)\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({mZvA9jMcl:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-family\":'\"Inter\", \"Inter Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 34, 68))\"},children:\"Something went wrong\"})})},prIQciICf:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-family\":'\"Inter\", \"Inter Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Enviado com sucesso\"})})}},baseVariant,gestureVariant)}),isDisplayed1()&&/*#__PURE__*/_jsx(motion.div,{className:\"framer-14u2lde\",\"data-framer-name\":\"Spinner\",layoutDependency:layoutDependency,layoutId:\"eDCEjjhoE\",style:{mask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg') 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-12kb8fk\",\"data-framer-name\":\"Conic\",layoutDependency:layoutDependency,layoutId:\"ocx_d5Y2G\",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:{tiWuUYix7:{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') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg') alpha no-repeat center / cover add\"}},children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-1bj7sud\",\"data-framer-name\":\"Rounding\",layoutDependency:layoutDependency,layoutId:\"FzW4yZ0_I\",style:{backgroundColor:\"rgb(255, 255, 255)\",borderBottomLeftRadius:1,borderBottomRightRadius:1,borderTopLeftRadius:1,borderTopRightRadius:1},transformTemplate:transformTemplate1})})})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-6Ff8T.framer-hr3d9h, .framer-6Ff8T .framer-hr3d9h { display: block; }\",\".framer-6Ff8T.framer-16vcw2t { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: 40px; justify-content: center; overflow: visible; padding: 0px; position: relative; width: 240px; }\",\".framer-6Ff8T .framer-1nfqypv { -webkit-user-select: none; flex: none; height: auto; position: relative; user-select: none; white-space: pre; width: auto; }\",\".framer-6Ff8T .framer-14u2lde { aspect-ratio: 1 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 20px); overflow: hidden; position: relative; width: 20px; }\",\".framer-6Ff8T .framer-12kb8fk { bottom: 0px; flex: none; left: 0px; overflow: visible; position: absolute; right: 0px; top: 0px; }\",\".framer-6Ff8T .framer-1bj7sud { aspect-ratio: 1 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 2px); left: 50%; overflow: visible; position: absolute; top: 0px; width: 2px; }\",\"@supports (background: -webkit-named-image(i)) and (not (font-palette:dark)) { .framer-6Ff8T.framer-16vcw2t { gap: 0px; } .framer-6Ff8T.framer-16vcw2t > * { margin: 0px; margin-left: calc(0px / 2); margin-right: calc(0px / 2); } .framer-6Ff8T.framer-16vcw2t > :first-child { margin-left: 0px; } .framer-6Ff8T.framer-16vcw2t > :last-child { margin-right: 0px; } }\",\".framer-6Ff8T.framer-v-13c36pd.framer-16vcw2t, .framer-6Ff8T.framer-v-155txy0.framer-16vcw2t, .framer-6Ff8T.framer-v-k1bgp2.framer-16vcw2t, .framer-6Ff8T.framer-v-wlphlw.framer-16vcw2t { cursor: unset; }\",\".framer-6Ff8T.framer-v-13c36pd .framer-12kb8fk { overflow: hidden; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 40\n * @framerIntrinsicWidth 240\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"tiWuUYix7\":{\"layout\":[\"fixed\",\"fixed\"]},\"qmSpsMJNV\":{\"layout\":[\"fixed\",\"fixed\"]},\"prIQciICf\":{\"layout\":[\"fixed\",\"fixed\"]},\"mZvA9jMcl\":{\"layout\":[\"fixed\",\"fixed\"]},\"PbCIDOY0B\":{\"layout\":[\"fixed\",\"fixed\"]},\"DvDybcyWI\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerComponentViewportWidth true\n */const FramerZspr1YMZV=withCSS(Component,css,\"framer-6Ff8T\");export default FramerZspr1YMZV;FramerZspr1YMZV.displayName=\"Button\";FramerZspr1YMZV.defaultProps={height:40,width:240};addPropertyControls(FramerZspr1YMZV,{variant:{options:[\"MgvkUqbHG\",\"tiWuUYix7\",\"qmSpsMJNV\",\"prIQciICf\",\"mZvA9jMcl\"],optionTitles:[\"Default\",\"Loading\",\"Disabled\",\"Success\",\"Error\"],title:\"Variant\",type:ControlType.Enum}});addFonts(FramerZspr1YMZV,[{explicitInter:true,fonts:[{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/hyOgCu0Xnghbimh0pE8QTvtt2AU.woff2\",weight:\"600\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/NeGmSOXrPBfEFIy5YZeHq17LEDA.woff2\",weight:\"600\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/oYaAX5himiTPYuN8vLWnqBbfD2s.woff2\",weight:\"600\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/lEJLP4R0yuCaMCjSXYHtJw72M.woff2\",weight:\"600\"},{family:\"Inter\",source:\"framer\",style:\"normal\",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/cRJyLNuTJR5jbyKzGi33wU9cqIQ.woff2\",weight:\"600\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/1ZFS7N918ojhhd0nQWdj3jz4w.woff2\",weight:\"600\"},{family:\"Inter\",source:\"framer\",style:\"normal\",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/A0Wcc7NgXMjUuFdquHDrIZpzZw0.woff2\",weight:\"600\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerZspr1YMZV\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"240\",\"framerIntrinsicHeight\":\"40\",\"framerComponentViewportWidth\":\"true\",\"framerContractVersion\":\"1\",\"framerImmutableVariables\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"tiWuUYix7\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"qmSpsMJNV\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"prIQciICf\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"mZvA9jMcl\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"PbCIDOY0B\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"DvDybcyWI\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Zspr1YMZV.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export async function callApi(t,a,n){const o=new Headers;o.append(\"Authorization\",`Basic IXJiIXB5WENGOXptWFZtIVVOV3oldyYqZFFEdVRjT2N1R0glRFpXNDgwNiNjZzREOXY6V1gxeGZrOUE2b1VAUVVIUENTXnFpRG10bm84MXpmZnZ0ZCN6XipHM3pXJHZZQm5XTUI`),o.append(\"Content-Type\",\"application/json\");const e={name:t,email:a,phone:n};try{const t=await fetch(\"https://filtrify.xyz/user/filtripack-cart-abandons-modal\",{method:\"POST\",body:JSON.stringify(e),headers:o});if(!t.ok)throw new Error(`Erro ${t.status}: ${t.statusText}`);return await t.json();}catch(t){throw t;}}export async function callClintApi(t,a,n){const o=new Headers;o.append(\"Content-Type\",\"application/json\");const e={contact_name:t,contact_email:a,contact_phone:n,product:\"filtripack\",plan:\"anual\"};try{const t=await fetch(\"https://functions-api.clint.digital/endpoints/integration/webhook/7dcebb94-edf9-47ee-84cd-2963dc0ea650\",{method:\"POST\",body:JSON.stringify(e),headers:o});if(!t.ok)throw new Error(`Erro ${t.status}: ${t.statusText}`);return await t.json();}catch(t){throw t;}}export function customRedirectAnual(Component){return props=>{useEffect(()=>{if(typeof window!==\"undefined\"){let form=null;const handleSubmit=event=>{const formData=new FormData(event.target);const queryParams=new URLSearchParams;formData.forEach((value,key)=>{queryParams.append(key,value.toString());});callApi(queryParams.get(\"name\"),queryParams.get(\"email\"),queryParams.get(\"phoneac\"));callClintApi(queryParams.get(\"name\"),queryParams.get(\"email\"),queryParams.get(\"phoneac\"));const redirectUrl=`https://pay.hotmart.com/R96400531N?off=11ollbzt&bid=1737411432379&${queryParams.toString()}`;// Abre a nova aba imediatamente\nwindow.open(redirectUrl,\"_blank\");// Não cancela o submit!\n};const interval=setInterval(()=>{form=document.querySelector(`form.${props.className}`);if(form){form.removeEventListener(\"submit\",handleSubmit);form.addEventListener(\"submit\",handleSubmit);clearInterval(interval);}},500);return()=>{clearInterval(interval);if(form){form.removeEventListener(\"submit\",handleSubmit);}};}},[props.className]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"callApi\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"callClintApi\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"customRedirectAnual\":{\"type\":\"reactHoc\",\"name\":\"customRedirectAnual\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Redirect_anual.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export async function callApi(t,a,n){const o=new Headers;o.append(\"Authorization\",`Basic IXJiIXB5WENGOXptWFZtIVVOV3oldyYqZFFEdVRjT2N1R0glRFpXNDgwNiNjZzREOXY6V1gxeGZrOUE2b1VAUVVIUENTXnFpRG10bm84MXpmZnZ0ZCN6XipHM3pXJHZZQm5XTUI`),o.append(\"Content-Type\",\"application/json\");const e={name:t,email:a,phone:n};try{const t=await fetch(\"https://filtrify.xyz/user/filtripack-cart-abandons-modal\",{method:\"POST\",body:JSON.stringify(e),headers:o});if(!t.ok)throw new Error(`Erro ${t.status}: ${t.statusText}`);return await t.json();}catch(t){throw t;}}export async function callClintApi(t,a,n){const o=new Headers;o.append(\"Content-Type\",\"application/json\");const e={contact_name:t,contact_email:a,contact_phone:n,product:\"filtripack\",plan:\"mensal\"};try{const t=await fetch(\"https://functions-api.clint.digital/endpoints/integration/webhook/7dcebb94-edf9-47ee-84cd-2963dc0ea650\",{method:\"POST\",body:JSON.stringify(e),headers:o});if(!t.ok)throw new Error(`Erro ${t.status}: ${t.statusText}`);return await t.json();}catch(t){throw t;}}export function customRedirectMensal(Component){return props=>{useEffect(()=>{if(typeof window!==\"undefined\"){let form=null;const handleSubmit=event=>{const formData=new FormData(event.target);const queryParams=new URLSearchParams;formData.forEach((value,key)=>{queryParams.append(key,value.toString());});callApi(queryParams.get(\"name\"),queryParams.get(\"email\"),queryParams.get(\"phoneac\"));callClintApi(queryParams.get(\"name\"),queryParams.get(\"email\"),queryParams.get(\"phoneac\"));const redirectUrl=`https://pay.hotmart.com/R96400531N?off=pmbr9kjz&bid=1737219811956&${queryParams.toString()}`;// Abre a nova aba imediatamente\nwindow.open(redirectUrl,\"_blank\");// Não cancela o submit!\n};const interval=setInterval(()=>{form=document.querySelector(`form.${props.className}`);if(form){form.removeEventListener(\"submit\",handleSubmit);form.addEventListener(\"submit\",handleSubmit);clearInterval(interval);}},500);return()=>{clearInterval(interval);if(form){form.removeEventListener(\"submit\",handleSubmit);}};}},[props.className]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"callApi\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"customRedirectMensal\":{\"type\":\"reactHoc\",\"name\":\"customRedirectMensal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"callClintApi\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Redirect_mensal.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";/**\n@framerDisableUnlink\n@framerIntrinsicWidth 100\n@framerIntrinsicHeight 100\n*/export function withPhoneMaskAndNameValidation(Component){return props=>{useEffect(()=>{const applyPhoneMask=event=>{const matrix=\"(__) _____-______\"// Removido o código do país\n;let i=0;const def=matrix.replace(/\\D/g,\"\");let currentValue=event.target.value.replace(/\\D/g,\"\");if(def.length>=currentValue.length){currentValue=def;}const newValue=matrix.replace(/./g,function(a){return/[_\\d]/.test(a)&&i<currentValue.length?currentValue.charAt(i++):i>=currentValue.length?\"\":a;});event.target.value=newValue;};const handleBlur=event=>{const currentValue=event.target.value.replace(/\\D/g,\"\");if(currentValue.length===0){event.target.value=\"\";const customEvent=new Event(\"change\");event.target.dispatchEvent(customEvent);}};const restrictNameInput=event=>{const regex=/^[a-zA-Z\\u0400-\\u04FF\\s]*$/// Permite apenas caracteres latinos, cirílicos e espaços\n;if(!regex.test(event.target.value)){event.target.value=event.target.value.replace(/[^a-zA-Z\\u0400-\\u04FF\\s]/g,\"\");}};const phoneFields=document.querySelectorAll('input[type=\"tel\"]');const nameFields=document.querySelectorAll('input[name=\"name\"]');phoneFields.forEach(phoneField=>{phoneField.addEventListener(\"input\",applyPhoneMask);phoneField.addEventListener(\"blur\",handleBlur);});nameFields.forEach(nameField=>{nameField.addEventListener(\"input\",restrictNameInput);});// Cleanup ao desmontar\nreturn()=>{phoneFields.forEach(phoneField=>{phoneField.removeEventListener(\"input\",applyPhoneMask);phoneField.removeEventListener(\"blur\",handleBlur);});nameFields.forEach(nameField=>{nameField.removeEventListener(\"input\",restrictNameInput);});};},[]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withPhoneMaskAndNameValidation\":{\"type\":\"reactHoc\",\"name\":\"withPhoneMaskAndNameValidation\",\"annotations\":{\"framerDisableUnlink\":\"@framerIntrinsicWidth 100\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"100\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Validation.map"],"mappings":"mlBACgsB,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,CAAE,EAAsF,MAArF,IAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,CAAe,kDAQpe,AARnZ,GAAyD,IAA2I,IAAkE,IAA4B,CAAgC,EAAgB,EAAO,EAAO,IAAI,CAAO,EAAgB,CAAC,UAAU,CAAC,OAAM,EAAK,SAAQ,CAAK,CAAC,EAAO,EAAW,CAAC,YAAY,YAAY,YAAY,YAAY,WAAY,EAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,mBAAmB,UAAU,kBAAkB,UAAU,kBAAkB,UAAU,mBAAmB,UAAU,kBAAmB,EAA8L,EAAY,CAAC,MAAM,EAAE,SAAS,GAAG,KAAK,CAAC,IAAI,EAAE,IAAI,CAAE,EAAC,KAAK,OAAQ,EAAO,EAAY,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,EAAE,EAAE,CAAE,EAAC,KAAK,OAAQ,EAAO,EAAU,CAAC,QAAQ,EAAE,OAAO,IAAI,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAE,EAAO,EAAmB,CAAC,EAAE,KAAK,mBAAmB,IAAU,EAAW,CAAC,CAAC,QAAM,WAAS,GAAG,CAAC,IAAM,EAAO,EAAiB,EAAoB,CAAO,EAAW,GAAO,EAAO,WAAiB,EAAa,EAAc,KAAK,CAAC,GAAG,EAAO,YAAW,GAAE,CAAC,KAAK,UAAU,EAAW,AAAC,EAAC,CAAC,MAAoB,GAAK,EAAoB,SAAS,CAAC,MAAM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