{"version":3,"file":"Data_Layer.DY0ARmxu.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/PbqfH4lKXeXvmJoToOFS/OhtVUaHqjoZgntmbWfLc/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={\"/administradores-union-europea\":{page_type:\"Programa\",facultad:\"Supera Oposiciones\",programa:\"Oposiciones Administradores de la Uni\\xf3n Europea\",item_name:\"Oposiciones Administradores de la Uni\\xf3n Europea\",item_brand:\"Supera Oposiciones\",item_category:\"Programa\",price:0,currency:\"EUR\",hasViewItem:true},\"/sobre-supera\":{page_type:\"Contenido\",facultad:\"Supera Oposiciones\",programa:\"\",hasViewItem:false},\"/\":{page_type:\"Portada\",facultad:\"Supera Oposiciones\",programa:\"Home\",hasViewItem:false},\"/controlador-aereo\":{page_type:\"Programa\",facultad:\"Supera Oposiciones\",programa:\"Controlador A\\xe9reo\",item_name:\"Controlador A\\xe9reo\",item_brand:\"Supera Oposiciones\",item_category:\"Programa\",price:0,currency:\"EUR\",hasViewItem:true},\"/oposiciones\":{page_type:\"Distribuidoras\",facultad:\"Supera Oposiciones\",programa:\"\",hasViewItem:false},\"/oposiciones-administracion\":{page_type:\"Distribuidoras\",facultad:\"Supera Oposiciones\",programa:\"\",hasViewItem:false},\"/oposiciones-administracion/administrativos-del-estado\":{page_type:\"Programa\",facultad:\"Supera Oposiciones\",programa:\"Oposiciones Administrativo del Estado\",item_name:\"Oposiciones Administrativo del Estado\",item_brand:\"Supera Oposiciones\",item_category:\"Programa\",price:0,currency:\"EUR\",hasViewItem:true},\"/oposiciones-administracion/auxiliar-administrativo-del-estado\":{page_type:\"Programa\",facultad:\"Supera Oposiciones\",programa:\"Oposiciones Auxiliares Administrativo del Estado\",item_name:\"Oposiciones Auxiliares Administrativo del Estado\",item_brand:\"Supera Oposiciones\",item_category:\"Programa\",price:0,currency:\"EUR\",hasViewItem:true},\"/oposiciones-administracion/auxiliar-administrativo-ayuntamiento-madrid\":{page_type:\"Programa\",facultad:\"Supera Oposiciones\",programa:\"Oposiciones Auxiliares Administrativos del Ayuntamiento de Madrid\",item_name:\"Oposiciones Auxiliares Administrativos del Ayuntamiento de Madrid\",item_brand:\"Supera Oposiciones\",item_category:\"Programa\",price:0,currency:\"EUR\",hasViewItem:true},\"/oposiciones-administracion/auxiliar-administrativos-junta-andalucia\":{page_type:\"Programa\",facultad:\"Supera Oposiciones\",programa:\"Auxiliar Administrativos Junta de Andaluc\\xeda\",item_name:\"Auxiliar Administrativos Junta de Andaluc\\xeda\",item_brand:\"Supera Oposiciones\",item_category:\"Programa\",price:0,currency:\"EUR\",hasViewItem:true},\"/oposiciones-administracion/gestion-administracion-civil-del-estado\":{page_type:\"Programa\",facultad:\"Supera Oposiciones\",programa:\"Oposiciones Gesti\\xf3n de la Administraci\\xf3n Civil del Estado\",item_name:\"Oposiciones Gesti\\xf3n de la Administraci\\xf3n Civil del Estado\",item_brand:\"Supera Oposiciones\",item_category:\"Programa\",price:0,currency:\"EUR\",hasViewItem:true},\"/oposiciones-justicia\":{page_type:\"Distribuidoras\",facultad:\"Supera Oposiciones\",programa:\"\",hasViewItem:false},\"/oposiciones-justicia/auxilio-judicial\":{page_type:\"Programa\",facultad:\"Supera Oposiciones\",programa:\"Oposiciones Auxilio Judicial\",item_name:\"Oposiciones Auxilio Judicial\",item_brand:\"Supera Oposiciones\",item_category:\"Programa\",price:0,currency:\"EUR\",hasViewItem:true},\"/oposiciones-justicia/tramitacion-procesal\":{page_type:\"Programa\",facultad:\"Supera Oposiciones\",programa:\"Oposiciones Tramitaci\\xf3n Procesal\",item_name:\"Oposiciones Tramitaci\\xf3n Procesal\",item_brand:\"Supera Oposiciones\",item_category:\"Programa\",price:0,currency:\"EUR\",hasViewItem:true},\"/oposiciones-justicia/gestion-procesal\":{page_type:\"Programa\",facultad:\"Supera Oposiciones\",programa:\"Oposiciones Gesti\\xf3n Procesal\",item_name:\"Oposiciones Gesti\\xf3n Procesal\",item_brand:\"Supera Oposiciones\",item_category:\"Programa\",price:0,currency:\"EUR\",hasViewItem:true},\"/agente-hacienda\":{page_type:\"Programa\",facultad:\"Supera Oposiciones\",programa:\"Oposiciones Agentes de Hacienda\",item_name:\"Oposiciones Agentes de Hacienda\",item_brand:\"Supera Oposiciones\",item_category:\"Programa\",price:0,currency:\"EUR\",hasViewItem:true},\"/tecnico-hacienda\":{page_type:\"Programa\",facultad:\"Supera Oposiciones\",programa:\"Oposiciones Tecnico de Hacienda\",item_name:\"Oposiciones Tecnico de Hacienda\",item_brand:\"Supera Oposiciones\",item_category:\"Programa\",price:0,currency:\"EUR\",hasViewItem:true},\"/oposiciones-hacienda\":{page_type:\"Distribuidoras\",facultad:\"Supera Oposiciones\",programa:\"\",hasViewItem:false},\"/administrativos-seguridad-social\":{page_type:\"Programa\",facultad:\"Supera Oposiciones\",programa:\"Oposiciones Administrativo de la Seguridad Socia\",item_name:\"Oposiciones Administrativo de la Seguridad Socia\",item_brand:\"Supera Oposiciones\",item_category:\"Programa\",price:0,currency:\"EUR\",hasViewItem:true},\"/preparadores-oposiciones\":{page_type:\"Contenido\",facultad:\"Supera Oposiciones\",programa:\"\",hasViewItem:false},\"/ope-2024\":{page_type:\"Contenido\",facultad:\"Supera Oposiciones\",programa:\"\",hasViewItem:false}};// 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":"mLAUsJ,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,iCAAiC,CAAC,UAAU,WAAW,SAAS,qBAAqB,SAAS,kDAAqD,UAAU,kDAAqD,WAAW,qBAAqB,cAAc,WAAW,MAAM,EAAE,SAAS,MAAM,YAAY,GAAK,CAAC,gBAAgB,CAAC,UAAU,YAAY,SAAS,qBAAqB,SAAS,GAAG,YAAY,GAAM,CAAC,IAAI,CAAC,UAAU,UAAU,SAAS,qBAAqB,SAAS,OAAO,YAAY,GAAM,CAAC,qBAAqB,CAAC,UAAU,WAAW,SAAS,qBAAqB,SAAS,oBAAuB,UAAU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