{"version":3,"file":"UTM_sinQuery.BKzD-uII.mjs","names":["React.forwardRef","useState"],"sources":["https:/framerusercontent.com/modules/4fYri5wn9FltYLXRioDN/ivsQrISPlRWqRbNb9GcQ/NUwpEu4Uy.js","https:/framerusercontent.com/modules/Dd7XqOmhcYgGfaOkctjb/KASa77adaY6FG2b0IOWb/UTM_sinQuery.js"],"sourcesContent":["// Generated by Framer (6ca5d98)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,useSVGTemplate,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask=\"var(--framer-icon-mask)\";const Base=/*#__PURE__*/forwardRef(function(props,ref){return /*#__PURE__*/_jsx(\"svg\",{...props,ref:ref,children:props.children});});const MotionSVG=motion.create(Base);const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(MotionSVG,{...rest,layoutId:layoutId,ref:ref,children:children}):/*#__PURE__*/_jsx(\"svg\",{...rest,ref:ref,children:children});});const svg='<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 0 9 C 0 4.029 4.029 0 9 0 C 13.971 0 18 4.029 18 9 C 18 13.971 13.971 18 9 18 C 4.029 18 0 13.971 0 9 Z\" fill-opacity=\"var(--1m6trwb, 0)\" fill=\"var(--21h8s6, rgb(0, 0, 0))\" height=\"18px\" id=\"i3KPAYlLi\" transform=\"translate(3 3)\" width=\"18px\"/><path d=\"M 0 9 C 0 4.029 4.029 0 9 0 C 13.971 0 18 4.029 18 9 C 18 13.971 13.971 18 9 18 C 4.029 18 0 13.971 0 9 Z\" fill=\"transparent\" height=\"18px\" id=\"MiQY0gIfA\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--pgex8v, 1.5)\" stroke=\"var(--21h8s6, rgb(0, 0, 0))\" transform=\"translate(3 3)\" width=\"18px\"/><path d=\"M 0 0 L 7.5 0\" fill=\"transparent\" height=\"1px\" id=\"gS21x0NA0\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--pgex8v, 1.5)\" stroke=\"var(--21h8s6, rgb(0, 0, 0))\" transform=\"translate(8.25 12)\" width=\"7.5px\"/><path d=\"M 3 0 L 0 3 L 3 6\" fill=\"transparent\" height=\"6px\" id=\"o_E97wRJz\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--pgex8v, 1.5)\" stroke=\"var(--21h8s6, rgb(0, 0, 0))\" transform=\"translate(8.25 9)\" width=\"3px\"/></svg>';const getProps=({alpha,color,height,id,width,width1,...props})=>{return{...props,ezTt3ayMo:color??props.ezTt3ayMo??\"rgb(0, 0, 0)\",lschgej4H:width1??props.lschgej4H??1.5,qxTvv_EBh:alpha??props.qxTvv_EBh};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,ezTt3ayMo,lschgej4H,qxTvv_EBh,...restProps}=getProps(props);const href=useSVGTemplate(\"2369130246\",svg);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-2VBr1\",className),layoutId:layoutId,ref:ref,role:\"presentation\",style:{\"--1m6trwb\":qxTvv_EBh,\"--21h8s6\":ezTt3ayMo,\"--pgex8v\":lschgej4H,...style},viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"use\",{href:href})});});const css=[`.framer-2VBr1 { -webkit-mask: ${mask}; aspect-ratio: 1; display: block; mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"ezTt3ayMo\":\"color\",\"lschgej4H\":\"width1\",\"qxTvv_EBh\":\"alpha\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Arrow Circle Left\",\"color\":{\"type\":\"variable\",\"value\":\"21h8s6\"},\"set\":{\"localId\":\"vectorSet/NGVKdicsm\",\"id\":\"NGVKdicsm\",\"moduleId\":\"omX0gWFPqDwhaiWwf6ab\"}}\n * @framerDisableUnlink true\n */const Icon=withCSS(Component,css,\"framer-2VBr1\");Icon.displayName=\"Arrow Circle Left\";export default Icon;addPropertyControls(Icon,{ezTt3ayMo:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Color\",type:ControlType.Color},lschgej4H:{defaultValue:1.5,displayStepper:true,hidden:false,max:6,min:0,step:.5,title:\"Width\",type:ControlType.Number},qxTvv_EBh:{defaultValue:0,displayStepper:true,hidden:false,max:1,min:0,step:.1,title:\"Alpha\",type:ControlType.Number}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"24\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"true\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerImmutableVariables\":\"true\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerVariables\":\"{\\\"ezTt3ayMo\\\":\\\"color\\\",\\\"lschgej4H\\\":\\\"width1\\\",\\\"qxTvv_EBh\\\":\\\"alpha\\\"}\",\"framerIntrinsicWidth\":\"24\",\"framerVector\":\"{\\\"name\\\":\\\"Arrow Circle Left\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"21h8s6\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/NGVKdicsm\\\",\\\"id\\\":\\\"NGVKdicsm\\\",\\\"moduleId\\\":\\\"omX0gWFPqDwhaiWwf6ab\\\"}}\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";const getCookie=name=>{if(typeof document===\"undefined\"){return null;}const value=`; ${document.cookie}`;const parts=value.split(`; ${name}=`);if(parts.length===2)return parts.pop()?.split(\";\").shift()||null;return null;};const formatQueryParams=params=>{const paramsArray=Object.entries(params).map(([key,value])=>`${key}=${value}`);return paramsArray.length>0?\"?\"+paramsArray.join(\"&\"):\"\";};const getUTMParams=()=>{let utmParams={};if(typeof window!==\"undefined\"&&window.location&&window.location.search){const searchParams=new URLSearchParams(window.location.search);for(let[key,value]of searchParams){if(key?.includes(\"utm\")&&!!value){utmParams[key]=value;}}}const cookie=getCookie(\"cookie_utms\");if(cookie){try{const cookieMba=JSON.parse(cookie);const utmKeyMap={source:\"utm_source\",medium:\"utm_medium\",campaign:\"utm_campaign\",variant:\"utm_variant\",country:\"utm_country\",product:\"utm_product\",placement:\"utm_placement\",custmpers:\"utm_custmpers\",page:\"utm_page\"};Object.keys(utmKeyMap).forEach(key=>{const utmKey=utmKeyMap[key];if(cookieMba[key]&&!utmParams[utmKey]){utmParams[utmKey]=cookieMba[key];}});}catch(error){console.error(\"Error parsing cookie_utms:\",error);}}return formatQueryParams(utmParams);};export function withUTMTracking(Component){return({href,...rest})=>{const[utmParams,setUtmParams]=useState(\"\");const[previoussource,setprevioussource]=useState(\"\");useEffect(()=>{const utms=getUTMParams();if(utms.length>0){setUtmParams(utms);}setprevioussource(window.location.pathname);},[]);// Determina el prefijo correcto para previoussource\nconst previousSourcePrefix=utmParams.length>0?\"&\":\"?\";return /*#__PURE__*/_jsx(Component,{\"data-over\":\"withUTMTracking\",...href?{href:href+utmParams+previousSourcePrefix+\"previoussource=\"+previoussource}:{},...rest});};}export function withTags(Component){return props=>{props.className=props.className?`${props.className} clickinforeqplace`:\"clickinforeqplace\";return /*#__PURE__*/_jsx(Component,{...props});};}export function withTagsAndUTMTracking(Component){const ComponentWithTags=withTags(Component);const ComponentWithTagsAndUTMTracking=withUTMTracking(ComponentWithTags);return ComponentWithTagsAndUTMTracking;}\nexport const __FramerMetadata__ = {\"exports\":{\"withTagsAndUTMTracking\":{\"type\":\"reactHoc\",\"name\":\"withTagsAndUTMTracking\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTags\":{\"type\":\"reactHoc\",\"name\":\"withTags\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withUTMTracking\":{\"type\":\"reactHoc\",\"name\":\"withUTMTracking\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./UTM_sinQuery.map"],"mappings":"qSAC0C,IAAqF,IAA4B,EAAqC,EAAK,0BAAgC,EAAkB,EAAW,SAAS,EAAM,EAAI,CAAC,OAAoB,EAAK,MAAM,CAAC,GAAG,EAAU,MAAI,SAAS,EAAM,QAAQ,CAAC,CAAE,CAAC,EAAQ,EAAU,EAAO,OAAO,CAAI,EAAQ,EAAiB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAG,GAAM,EAAM,OAAO,EAAsB,EAAK,EAAU,CAAC,GAAG,EAAc,WAAa,MAAa,UAAQ,CAAC,EAAe,EAAK,MAAM,CAAC,GAAG,EAAS,MAAa,UAAQ,CAAC,CAAE,CAAC,EAAQ,EAAI,6rCAAmsC,GAAU,CAAC,QAAM,QAAM,SAAO,KAAG,QAAM,SAAO,GAAG,MAAgB,CAAC,GAAG,EAAM,UAAU,GAAO,EAAM,WAAW,eAAe,UAAU,GAAQ,EAAM,WAAW,IAAI,UAAU,GAAO,EAAM,SAAS,GAUlhE,EAAK,EAV8iEA,EAAiB,SAAS,EAAM,EAAI,CAAC,GAAK,CAAC,QAAM,YAAU,WAAS,UAAQ,YAAU,YAAU,YAAU,GAAG,GAAW,EAAS,CAAK,EAAQ,EAAK,EAAe,aAAa,CAAG,EAAE,OAAoB,EAAK,EAAI,CAAC,GAAG,EAAU,UAAU,EAAG,eAAe,CAAS,EAAW,WAAa,MAAI,KAAK,eAAe,MAAM,CAAC,YAAY,EAAU,WAAW,EAAU,WAAW,EAAU,GAAG,CAAK,EAAE,QAAQ,YAAY,S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