{"version":3,"file":"Data_Layer.8fDIQuUW.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/ewI6FFpMpxqzrrzHgu3L/65V7wYTeu8EIYFMp9ryH/Data_Layer.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";// Configuración de datos por página según la URL\nconst pageDataMap={\"/\":{page_type:\"Portada\",facultad:\"ThePower IA\",programa:\"\",hasViewItem:false},\"/power-ia\":{page_type:\"Programa\",facultad:\"ThePower IA\",programa:\"ThePower IA\",item_name:\"ThePower IA\",item_brand:\"ThePower IA\",item_category:\"Programa\",price:999,currency:\"EUR\",hasViewItem:true},\"/power-ia-consulting\":{page_type:\"Programa\",facultad:\"ThePower IA\",programa:\"Power IA Consulting\",item_name:\"Power IA Consulting\",item_brand:\"ThePower IA\",item_category:\"Programa\",price:999,currency:\"EUR\",hasViewItem:true},\"/faqs\":{page_type:\"Contenido\",facultad:\"ThePower IA\",programa:\"ThePower IA\",hasViewItem:false},\"/ty/reg_dossier-power-ia\":{page_type:\"Gracias\",facultad:\"ThePower IA\",programa:\"ThePower IA\",hasViewItem:false},\"/ty/reg_recursos-ia\":{page_type:\"Gracias\",facultad:\"ThePower IA\",programa:\"ThePower IA\",hasViewItem:false},\"/ty/reg_ia_beca-danone\":{page_type:\"Gracias\",facultad:\"ThePower IA\",programa:\"ThePower IA\",hasViewItem:false},\"/ty/reg_solicitud-programas\":{page_type:\"Gracias\",facultad:\"ThePower IA\",programa:\"ThePower IA\",hasViewItem:false},\"/ty/reg_solicitud-informacion\":{page_type:\"Gracias\",facultad:\"ThePower IA\",programa:\"ThePower IA\",hasViewItem:false},\"/ty/reg_ia-consulting-dossier\":{page_type:\"Gracias\",facultad:\"ThePower IA\",programa:\"ThePower IA Consulting \",hasViewItem:false},\"/ty/reg_ia-consulting-solicitud\":{page_type:\"Gracias\",facultad:\"ThePower IA\",programa:\"ThePower IA Consulting \",hasViewItem:false},\"/ty/reg_sept-2025\":{page_type:\"Gracias\",facultad:\"ThePower IA\",programa:\"ThePower IA evento Sep 2025\",hasViewItem:false},\"/ty/sept-2025\":{page_type:\"Gracias\",facultad:\"ThePower IA\",programa:\"ThePower IA evento Sep 2025\",hasViewItem:false},\"/lp/power-ia\":{page_type:\"Programa\",facultad:\"ThePower IA\",programa:\"ThePower IA\",item_name:\"ThePower IA\",item_brand:\"ThePower IA\",item_category:\"Programa\",price:999,currency:\"EUR\",hasViewItem:true},\"/lp/power-ia-consulting\":{page_type:\"Programa\",facultad:\"ThePower IA\",programa:\"ThePower IA\",item_name:\"ThePower IA\",item_brand:\"ThePower IA\",item_category:\"Programa\",price:999,currency:\"EUR\",hasViewItem:true},\"/lp/eventos/sept-2025\":{page_type:\"Programa\",facultad:\"ThePower IA\",programa:\"ThePower IA Evento sept 2025\",item_name:\"ThePower IA Evento sept 2025\",item_brand:\"ThePower IA Evento sept 2025\",item_category:\"Programa\",price:799,currency:\"EUR\",hasViewItem:true},\"/lp/eventos/sept-2025-rrss\":{page_type:\"Programa\",facultad:\"ThePower IA\",programa:\"ThePower IA Evento sept 2025\",item_name:\"ThePower IA Evento sept 2025\",item_brand:\"ThePower IA Evento sept 2025\",item_category:\"Programa\",price:799,currency:\"EUR\",hasViewItem:true},\"/lp/eventos/sept-2025-emp\":{page_type:\"Programa\",facultad:\"ThePower IA\",programa:\"ThePower IA Evento sept 2025\",item_name:\"ThePower IA Evento sept 2025\",item_brand:\"ThePower IA Evento sept 2025\",item_category:\"Programa\",price:799,currency:\"EUR\",hasViewItem:true},\"/lp/eventos/sept-2025-ambicion\":{page_type:\"Programa\",facultad:\"ThePower IA\",programa:\"ThePower IA Evento sept 2025\",item_name:\"ThePower IA Evento sept 2025\",item_brand:\"ThePower IA Evento sept 2025\",item_category:\"Programa\",price:799,currency:\"EUR\",hasViewItem:true},\"/lp/eventos/sept-2025-vip\":{page_type:\"Gracias\",facultad:\"ThePower IA\",programa:\"ThePower IA evento Sep 2025\",hasViewItem:false},\"/lp/eventos/sept-2025-contenido\":{page_type:\"Contenido\",facultad:\"ThePower IA\",programa:\"ThePower IA evento Sep 2025\",hasViewItem:false},\"/lp/eventos/sept-2025-clases\":{page_type:\"Contenido\",facultad:\"ThePower IA\",programa:\"ThePower IA evento Sep 2025\",hasViewItem:false},\"/lp/eventos/power-ia-2025\":{page_type:\"Programa\",facultad:\"ThePower IA\",programa:\"ThePower IA Evento sept 2025\",item_name:\"ThePower IA Evento sept 2025\",item_brand:\"ThePower IA Evento sept 2025\",item_category:\"Programa\",price:799,currency:\"EUR\",hasViewItem:true},\"/lp/eventos/webinar-octubre-2025\":{page_type:\"Programa\",facultad:\"ThePower IA\",programa:\"Webinar Octubre 2025\",item_name:\"Webinar Octubre 2025\",item_brand:\"Webinar Octubre 2025\",item_category:\"Programa\",price:0,currency:\"EUR\",hasViewItem:true}};// Lógica para empujar los eventos a dataLayer\nconst pushPageEvents=path=>{const pageData=pageDataMap[path];if(pageData){// Inicializa el dataLayer si no está definido\nwindow.dataLayer=window.dataLayer||[];// Evento \"page_info\"\nwindow.dataLayer.push({event:\"page_info\",page_type:pageData.page_type,facultad:pageData.facultad,programa:pageData.programa});// Evento \"view_item\" (si aplica)\nif(pageData.hasViewItem){window.dataLayer.push({event:\"view_item\",ecommerce:{value:pageData.price,currency:pageData.currency,items:[{item_name:pageData.item_name,item_brand:pageData.item_brand,item_category:pageData.item_category,price:pageData.price}]}});}console.log(`DataLayer events pushed for path: ${path}`,pageData);}else{console.warn(`No page data found for path: ${path}`);}};// Code Override para disparar eventos en base a la URL\nexport const pageDataLayerOverride=()=>{useEffect(()=>{// Obtén la URL actual del navegador\nconst currentPath=window.location.pathname;// Llama a la función para empujar los eventos\npushPageEvents(currentPath);},[])// Solo ejecuta una vez al cargar la página\n;return{}// Este override no necesita devolver props adicionales\n;};import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withpageDataLayerOverride(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...pageDataLayerOverride(props)});};}withpageDataLayerOverride.displayName=\"pageDataLayerOverride\";\nexport const __FramerMetadata__ = {\"exports\":{\"withpageDataLayerOverride\":{\"type\":\"reactHoc\",\"name\":\"withpageDataLayerOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"pageDataLayerOverride\":{\"type\":\"override\",\"name\":\"pageDataLayerOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Data_Layer.map"],"mappings":"oLAUsJ,SAAgB,EAA0B,EAAE,CAAC,MAAO,KAAQ,EAA+BA,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAsB,EAAM,CAAC,CAAC,6BAVxS,IAA6B,IAU8E,CAThJ,EAAY,CAAC,IAAI,CAAC,UAAU,UAAU,SAAS,cAAc,SAAS,GAAG,YAAY,GAAM,CAAC,YAAY,CAAC,UAAU,WAAW,SAAS,cAAc,SAAS,cAAc,UAAU,cAAc,WAAW,cAAc,cAAc,WAAW,MAAM,IAAI,SAAS,MAAM,YAAY,GAAK,CAAC,uBAAuB,CAAC,UAAU,WAAW,SAAS,cAAc,SAAS,sBAAsB,UAAU,sBAAsB,WAAW,cAAc,cAAc,WAAW,MAAM,IAAI,SAAS,MAAM,YAAY,GAAK,CAAC,QAAQ,CAAC,UAAU,YAAY,SAAS,cAAc,SAAS,cAAc,YAAY,GAAM,CAAC,2BAA2B,CAAC,UAAU,UAAU,SAAS,cAAc,SAAS,cAAc,YAAY,GAAM,CAAC,sBAAsB,CAAC,UAAU,UAAU,SAAS,cAAc,SAAS,cAAc,YAAY,GAAM,CAAC,yBAAyB,CAAC,UAAU,UAAU,SAAS,cAAc,SAAS,cAAc,YAAY,GAAM,CAAC,8BAA8B,CAAC,UAAU,UAAU,SAAS,cAAc,SAAS,cAAc,YAAY,G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