{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/mQXM37whIkKtevHZPWak/tGdKYjbwAxUpMHTd1O6x/Data_Layer_en.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";// Configuraci\u00F3n de datos por p\u00E1gina seg\u00FAn la URL\nconst pageDataMap={\"/en\":{page_type:\"Portada\",facultad:\"ThePowerMBA Global\",programa:\"\",hasViewItem:false},\"/en/scholarships\":{page_type:\"Contenido\",facultad:\"ThePowerMBA Global\",programa:\"\",hasViewItem:false},\"/en/our-programs\":{page_type:\"Contenido\",facultad:\"ThePowerMBA Global\",programa:\"\",hasViewItem:false},\"/en/thepowermba\":{page_type:\"Programa\",facultad:\"ThePowerMBA Global\",programa:\"ThePowerMBA Global\",item_name:\"ThePowerMBA Global\",item_brand:\"ThePowerMBA Global\",item_category:\"Programa\",price:999,currency:\"EUR\",hasViewItem:true},\"/en/the-power-digital-marketing\":{page_type:\"Programa\",facultad:\"ThePowerMBA Global\",programa:\"Digital Marketing Global\",item_name:\"Digital Marketing Global\",item_brand:\"ThePowerMBA Global\",item_category:\"Programa\",price:999,currency:\"EUR\",hasViewItem:true},\"/en/powersales\":{page_type:\"Programa\",facultad:\"ThePowerMBA Global\",programa:\"PowerSales Global\",item_name:\"PowerSales Global\",item_brand:\"ThePowerMBA Global\",item_category:\"Programa\",price:999,currency:\"EUR\",hasViewItem:true},\"/en/enroll-thepowermba-advanced\":{page_type:\"Programa\",facultad:\"ThePowerMBA Global\",programa:\"ThePowerMBA + Digital Marketing Global\",item_name:\"ThePowerMBA + Digital Marketing Global\",item_brand:\"ThePowerMBA Global\",item_category:\"Programa\",price:1499,currency:\"EUR\",hasViewItem:true},\"/en/masterthepowermba-powersales\":{page_type:\"Programa\",facultad:\"ThePowerMBA Global\",programa:\"ThePowerMBA + PowerSales Global\",item_name:\"ThePowerMBA + PowerSales Global\",item_brand:\"ThePowerMBA Global\",item_category:\"Programa\",price:1499,currency:\"EUR\",hasViewItem:true},\"/en/powersales-marketing-digital\":{page_type:\"Programa\",facultad:\"ThePowerMBA Global\",programa:\"PowerSales + Digital Marketing Global\",item_name:\"PowerSales + Digital Marketing Global\",item_brand:\"ThePowerMBA Global\",item_category:\"Programa\",price:1499,currency:\"EUR\",hasViewItem:true},\"/en/mba-sales-marketing\":{page_type:\"Programa\",facultad:\"ThePowerMBA Global\",programa:\"ThePowerMBA + PowerSales + Digital Marketing Global\",item_name:\"ThePowerMBA + PowerSales + Digital Marketing Global\",item_brand:\"ThePowerMBA Global\",item_category:\"Programa\",price:1999,currency:\"EUR\",hasViewItem:true},\"/en/artificial-intelligence\":{page_type:\"Programa\",facultad:\"ThePowerMBA Global\",programa:\"Power AI Global\",item_name:\"Power AI Global\",item_brand:\"ThePowerMBA Global\",item_category:\"Programa\",price:999,currency:\"EUR\",hasViewItem:true},\"/en/about-us\":{page_type:\"Contenido\",facultad:\"ThePowerMBA Global\",programa:\"\",hasViewItem:false},\"/en/learn-from-the-best\":{page_type:\"Contenido\",facultad:\"ThePowerMBA Global\",programa:\"\",hasViewItem:false},\"/en/for-companies\":{page_type:\"Contenido\",facultad:\"ThePowerMBA Global\",programa:\"\",hasViewItem:false},\"/en/faq\":{page_type:\"Contenido\",facultad:\"ThePowerMBA Global\",programa:\"\",hasViewItem:false},\"/en/blog\":{page_type:\"Contenido\",facultad:\"ThePowerMBA Global\",programa:\"\",hasViewItem:false},\"/en/blog/business\":{page_type:\"Contenido\",facultad:\"ThePowerMBA Global\",programa:\"\",hasViewItem:false},\"/en/blog/marketing\":{page_type:\"Contenido\",facultad:\"ThePowerMBA Global\",programa:\"\",hasViewItem:false},\"/en/blog/programming\":{page_type:\"Contenido\",facultad:\"ThePowerMBA Global\",programa:\"\",hasViewItem:false},\"/en/blog/entrepreneurship\":{page_type:\"Contenido\",facultad:\"ThePowerMBA Global\",programa:\"\",hasViewItem:false},\"/en/blog/tools\":{page_type:\"Contenido\",facultad:\"ThePowerMBA Global\",programa:\"\",hasViewItem:false},\"/en/blog/social-media\":{page_type:\"Contenido\",facultad:\"ThePowerMBA Global\",programa:\"\",hasViewItem:false},\"/en/blog/digital-transformation\":{page_type:\"Contenido\",facultad:\"ThePowerMBA Global\",programa:\"\",hasViewItem:false},\"/en/login-app\":{page_type:\"Contenido\",facultad:\"ThePowerMBA Global\",programa:\"\",hasViewItem:false}};// L\u00F3gica para empujar los eventos a dataLayer\nconst pushPageEvents=path=>{const pageData=pageDataMap[path];if(pageData){// Inicializa el dataLayer si no est\u00E1 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\u00E9n la URL actual del navegador\nconst currentPath=window.location.pathname;// Llama a la funci\u00F3n para empujar los eventos\npushPageEvents(currentPath);},[])// Solo ejecuta una vez al cargar la p\u00E1gina\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\":{\"pageDataLayerOverride\":{\"type\":\"override\",\"name\":\"pageDataLayerOverride\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withpageDataLayerOverride\":{\"type\":\"reactHoc\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,UAAUA,EAAO,WAAW,CAAC,EACpCA,EAAO,UAAU,KAAK,CAAC,MAAM,YAAY,UAAUD,EAAS,UAAU,SAASA,EAAS,SAAS,SAASA,EAAS,QAAQ,CAAC,EACzHA,EAAS,aAAaC,EAAO,UAAU,KAAK,CAAC,MAAM,YAAY,UAAU,CAAC,MAAMD,EAAS,MAAM,SAASA,EAAS,SAAS,MAAM,CAAC,CAAC,UAAUA,EAAS,UAAU,WAAWA,EAAS,WAAW,cAAcA,EAAS,cAAc,MAAMA,EAAS,KAAK,CAAC,CAAC,CAAC,CAAC,EAAG,QAAQ,IAAI,qCAAqCD,CAAI,GAAGC,CAAQ,GAAQ,QAAQ,KAAK,gCAAgCD,CAAI,EAAE,CAAG,EAClXG,EAAsB,KAAKC,EAAU,IAAI,CACtD,IAAMC,EAAYH,EAAO,SAAS,SAClCH,EAAeM,CAAW,CAAE,EAAE,CAAC,CAAC,EACzB,CAAC,GACqJ,SAASC,EAA0BC,EAAE,CAAC,OAAOC,IAAQC,EAA+BC,CAAuC,EAASC,EAAKJ,EAAE,CAAC,GAAGC,EAAM,GAAGL,EAAsBK,CAAK,CAAC,CAAC,EAAI,CAACF,EAA0B,YAAY",
  "names": ["pageDataMap", "pushPageEvents", "path", "pageData", "window", "pageDataLayerOverride", "ue", "currentPath", "withpageDataLayerOverride", "C", "props", "re", "DataObserverContext", "p"]
}
