{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/PbqfH4lKXeXvmJoToOFS/OhtVUaHqjoZgntmbWfLc/Data_Layer.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={\"/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\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\":{\"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": "yIACA,IAAMA,EAAY,CAAC,iCAAiC,CAAC,UAAU,WAAW,SAAS,qBAAqB,SAAS,qDAAqD,UAAU,qDAAqD,WAAW,qBAAqB,cAAc,WAAW,MAAM,EAAE,SAAS,MAAM,YAAY,EAAI,EAAE,gBAAgB,CAAC,UAAU,YAAY,SAAS,qBAAqB,SAAS,GAAG,YAAY,EAAK,EAAE,IAAI,CAAC,UAAU,UAAU,SAAS,qBAAqB,SAAS,OAAO,YAAY,EAAK,EAAE,qBAAqB,CAAC,UAAU,WAAW,SAAS,qBAAqB,SAAS,uBAAuB,UAAU,uBAAuB,WAAW,qBAAqB,cAAc,WAAW,MAAM,EAAE,SAAS,MAAM,YAAY,EAAI,EAAE,eAAe,CAAC,UAAU,iBAAiB,SAAS,qBAAqB,SAAS,GAAG,YAAY,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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"]
}
