{"version":3,"file":"Validation.DRbGSMe2.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","RichText","callApi","t","callClintApi","t"],"sources":["https:/framerusercontent.com/modules/MQV6UN4ZybS7LzDFjDD2/24CCVBnFMcWqfWwLzOGC/Zspr1YMZV.js","https:/framerusercontent.com/modules/94NB7gPJFCNI2z6wyoeZ/VxG5fsX0lGX5vegioorU/Redirect_anual.js","https:/framerusercontent.com/modules/zNmYufVPwJPHbUaQGOdS/CThhYe9j3ii0YLNboMgD/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://proxy-157330662204.europe-west1.run.app/?targetUrl=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/A103396349S?off=qquewzjo&${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\":{\"customRedirectAnual\":{\"type\":\"reactHoc\",\"name\":\"customRedirectAnual\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"callClintApi\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"callApi\":{\"type\":\"function\",\"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://proxy-157330662204.europe-west1.run.app/?targetUrl=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/A103396349S?off=1jpkb5v8&${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\"}},\"customRedirectMensal\":{\"type\":\"reactHoc\",\"name\":\"customRedirectMensal\",\"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":"+VACgsB,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,mDAA/yB,IAA2I,IAAkE,IAA4B,CAAgC,EAAgB,EAAO,EAAO,IAAI,CAAO,EAAgB,CAAC,UAAU,CAAC,MAAM,GAAK,QAAQ,GAAK,CAAC,CAAO,EAAW,CAAC,YAAY,YAAY,YAAY,YAAY,YAAY,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,mBAAmB,UAAU,kBAAkB,UAAU,kBAAkB,UAAU,mBAAmB,UAAU,mBAAmB,CAA8L,EAAY,CAAC,MAAM,EAAE,SAAS,GAAG,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,KAAK,QAAQ,CAAO,EAAY,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,KAAK,QAAQ,CAAO,EAAU,CAAC,QAAQ,EAAE,OAAO,IAAI,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,CAAO,GAAoB,EAAE,IAAI,oBAAoB,IAAU,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOA,EAAiB,EAAoB,CAAO,EAAW,GAAO,EAAO,WAAiB,EAAaC,OAAmB,CAAC,GAAG,EAAO,aAAW,EAAE,CAAC,KAAK,UAAU,EAAW,CAAC,CAAC,CAAC,OAAoB,EA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