{"version":3,"file":"UTM_sinQuery.DnjqFcSy.mjs","names":["React.forwardRef","useState","__esmMin","init_npm_react_18_3_1","window","ce","init_jsx_runtime","J","c","_e","init_ssg_sandbox_shims","motion","addPropertyControls","withCSS","useSVGTemplate","cx","init_framer_D6uXRwWs","ControlType","mask","Base","MotionSVG","SVG","svg","getProps","Icon","init_NUwpEu4Uy","props","rest","animated","color","width1","alpha","restProps","href","className","qxTvv_EBh","ezTt3ayMo","lschgej4H","style","withUTMTracking","utmParams","setUtmParams","previoussource","setprevioussource","utms","getUTMParams","previousSourcePrefix","Component","withTags","withTagsAndUTMTracking","getCookie","formatQueryParams","init_UTM_sinQuery","parts","name","paramsArray","params","key","value","searchParams","cookie","cookieMba","utmKeyMap","utmKey","error"],"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":"A,mUACgM,EAAK,0BAAgC,EAAkB,gBAAW,SAAS,EAAM,EAAI,CAAC,MAAoB,gBAAK,MAAM,CAAC,GAAG0B,EAAU,MAAI,SAASA,EAAM,QAAQ,CAAC,CAAE,CAAC,EAAQ,EAAUf,EAAO,OAAOQ,CAAI,EAAQ,EAAiB,iBAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAGQ,GAAMD,EAAM,OAAOE,EAAsB,gBAAKR,EAAU,CAAC,GAAGO,EAAc,WAAa,MAAa,UAAQ,CAAC,EAAe,gBAAK,MAAM,CAAC,GAAGA,EAAS,MAAa,UAAQ,CAAC,CAAE,CAAC,EAAQ,EAAI,6rCAAmsC,GAAU,CAAC,QAAM,QAAM,SAAO,KAAG,QAAM,SAAO,GAAGD,MAAgB,CAAC,GAAGA,EAAM,UAAUG,GAAOH,E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