1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,180282,e=>{"use strict";var a=e.i(843476),t=e.i(271645),n=e.i(437453),i=e.i(56771);let r=({target:e,currentRate:t,percentage:n})=>(0,a.jsxs)("div",{className:"h-5xl sm:h-[35px] w-fit flex gap-[6px] sm:gap-2 items-center",children:[(0,a.jsx)("span",{className:"text-secondary-500 dark:text-secondary-100 text-trim-aux font-normal text-xs sm:text-s leading-l",children:e}),(0,a.jsx)("span",{className:"text-secondary-300 dark:text-secondary-50 text-trim-aux font-normal text-xs sm:text-s leading-m font-franklingothic-book",children:t.toFixed(3)}),(0,a.jsxs)("span",{className:(0,i.cn)("font-medium text-xs sm:text-s leading-l font-franklingothic-medium",n>=0?"!text-green-200 text-trim-aux":"!text-primary text-trim-aux"),children:[n,"%"]})]});var s=e.i(956606);let l=()=>(0,a.jsx)("div",{className:"overflow-hidden h-3s grid grid-cols-2 w-fit m-auto gap-x-3s sm:gap-x-13xl gap-y-[12px] py-2 md:py-2s",children:[void 0,void 0].map((e,t)=>(0,a.jsxs)("div",{className:"h-fit w-fit flex gap-1 sm:gap-2 items-center",children:[(0,a.jsx)(s.Skeleton,{className:"h-[0.75rem] w-[3.5rem]"}),(0,a.jsx)(s.Skeleton,{className:"h-[0.75rem] w-[2.5rem]"}),(0,a.jsx)(s.Skeleton,{className:"h-[0.75rem] w-[2rem]"})]},`exchange-rate-skeleton-${t}`))}),o=` 2 query GetExchangeRate { 3 getExchangeRate { 4 baseCode 5 targetCode 6 currentRate 7 percentageChange 8 } 9 } 10`;e.s(["default",0,()=>{let[e,i]=(0,t.useState)(null),[s,c]=(0,t.useState)(0),[d,m]=(0,t.useState)(!0),u=(0,t.useRef)(null),x=(0,t.useRef)(0);(0,t.useEffect)(()=>{(async()=>{let{data:e}=await (0,n.queryClient)({query:o});i(e?.getExchangeRate||null)})()},[]);let h=[];if(e)for(let a=0;a<e.length;a+=2)h.push(e.slice(a,a+2));let f=h.length;if((0,t.useEffect)(()=>{if(!u.current||!f)return;let e=u.current.firstElementChild;e&&(x.current=e.offsetHeight)},[f]),(0,t.useEffect)(()=>{if(f<=1)return;let e=setInterval(()=>{m(!0),c(e=>e+1)},5500);return()=>clearInterval(e)},[f]),(0,t.useEffect)(()=>{if(s!==f||f<=1)return;let e=setTimeout(()=>{m(!1),c(0)},1e3);return()=>clearTimeout(e)},[s,f]),!e)return(0,a.jsx)(l,{});let g=(e,t)=>h.map((n,i)=>(0,a.jsx)("div",{className:"grid grid-cols-2 h-5xl sm:h-[35px] gap-y-2s gap-x-3.5 sm:gap-x-13xl w-fit m-auto","aria-hidden":t,children:n.map((t,n)=>(0,a.jsx)(r,{target:`${t.baseCode}/${t.targetCode}`,currentRate:t.currentRate,percentage:t.percentageChange},`${e}-item-${i}-${n}`))},`${e}-${i}`));return(0,a.jsx)("div",{className:"max-w-[90rem] m-auto font-franklingothic-book leading-m text-trim-aux font-normal",children:(0,a.jsx)("div",{className:"h-5xl md:h-[35px] overflow-hidden w-fit m-auto",children:(0,a.jsxs)("div",{ref:u,style:{transform:`translateY(-${s*x.current}px)`,transition:d?"transform 1000ms ease-in-out":"none"},children:[g("row"),g("dup",!0)]})})})}],180282)},930114,e=>{e.v({"to-center-move":"nplus-animation-icon-module__weSJia__to-center-move","to-move":"nplus-animation-icon-module__weSJia__to-move","to-rotate":"nplus-animation-icon-module__weSJia__to-rotate","wrapper-nplus-icon":"nplus-animation-icon-module__weSJia__wrapper-nplus-icon"})},494316,e=>{e.v({compactHeader:"header-module__bInc5q__compactHeader",darkTheme:"header-module__bInc5q__darkTheme",header:"header-module__bInc5q__header","header-transition-container":"header-module__bInc5q__header-transition-container",headerWrapper:"header-module__bInc5q__headerWrapper",mainHeader:"header-module__bInc5q__mainHeader","secondary-header-set":"header-module__bInc5q__secondary-header-set"})},677800,e=>{"use strict";var a=e.i(843476),t=e.i(271645),n=e.i(354438),i=e.i(817084),r=n.default.registerPlugin(i.default)||n.default;r.core.Tween;var s=e.i(883495),l=e.i(365747),o=e.i(770703),c=e.i(215813),d=e.i(322631),m=e.i(610980),u=e.i(956606),x=e.i(56771),h=e.i(174080),f=e.i(1714),g=e.i(487350),p=e.i(167412),b=e.i(465522);function y({onCloseAction:e,handleLogout:t}){return(0,a.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-black/50",onClick:e}),(0,a.jsxs)("div",{className:"relative p-2xl bg-header rounded-xl w-auto max-w-md",children:[(0,a.jsx)(p.default,{tag:"h2",variant:"title-4",className:"mb-s text-center",children:"Cerrar sesión"}),(0,a.jsx)(p.default,{tag:"p",variant:"body-4",className:"mb-8xl text-center",children:"¿Estás seguro de que quieres cerrar sesión? Deberás iniciar sesión nuevamente para acceder a tu cuenta"}),(0,a.jsxs)("div",{className:"flex gap-4 justify-center",children:[(0,a.jsx)(b.Button,{variant:"primary-outline",label:"Cancelar",onClick:e,size:"large",className:"flex-1 block"}),(0,a.jsx)(b.Button,{variant:"primary-filled",label:"Cerrar sesión",size:"large",onClick:t,className:"flex-1 block py-xs px-2xl"})]})]})]})}var j=e.i(902341),v=e.i(320815),k=e.i(437453),N=e.i(547790),C=e.i(384044),w=e.i(616346),_=e.i(108616),M=e.i(910091),T=e.i(217255),I=e.i(618566),E=e.i(673314);async function S(e,a){let t=(0,E.getThemeCookie)();N.useProfileStore.getState().clearProfile(),localStorage.removeItem("nextauth.message"),localStorage.removeItem("user-profile-storage"),sessionStorage.clear(),(0,M.setSessionCache)(null),await (0,T.signOut)({redirect:!1}),t&&(0,E.setThemeCookie)(t),a?.closeModal?.(),window.location.assign(e)}function D({onCloseAction:e,pageMetadata:n,trackingData:i}
10){let[r,s]=(0,t.useState)(null),{openModal:l,closeModal:o}=(0,f.useModal)(),{profile:u}=(0,N.useProfileStore)(),x=(0,T.useSession)(),h=(0,I.usePathname)(),g=async()=>{let e=x?.data?.refreshToken,a=async()=>{try{await S(h,{closeModal:o})}catch(e){console.error("Logout failed:",e)}},t=localStorage.getItem("indigitall.repository.DEVICE_ID");if(!e)return void(0,_.showErrorToast)("No se pudo cerrar sesión. Vuelve a iniciar sesión e inténtalo de nuevo.");let n=await (0,k.queryClient)({query:v.LOGOUT_MUTATION,variables:{deviceId:t||null}},{"x-mfa-token":`Bearer ${e}`}),i=n?.errors?.[0]?.extensions?.message||n?.errors?.[0]?.message;i?(0,_.showErrorToast)(i):n?.data?.logout?.result?await a():(0,_.showErrorToast)("Error al cerrar sesión")};return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("aside",{className:"flex flex-col h-full w-full min-h-screen",children:[(0,a.jsxs)("section",{className:"flex justify-between items-center w-full border-b border-secondary-500 pb-2xl mb-6xl",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(p.default,{tag:"h2",variant:"title-3",className:"mb-2s",children:(0,w.getTimeBasedGreeting)()}),(0,a.jsx)(p.default,{tag:"p",variant:"body-1",className:"text-box-edge-cap-alphabetic text-box-both",children:u?.email})]}),(0,a.jsx)(d.IconButton,{icon:(0,a.jsx)(c.Icon,{name:"close",size:"lg",iconWeight:400}),onClick:()=>{(0,C.default)({content_name:"ic_close black",content_type:"ic_close black",organisms:"Account Option | Menú lateral",content_action:"click"},!1),e()},"aria-label":"Cerrar barra lateral",type:"button",className:"bg-transparent"})]}),(0,a.jsxs)("div",{className:"flex-1 overflow-y-auto custom-scroll pr-2",children:[(0,a.jsx)("nav",{className:"border-b border-text-50 mb-6xl",children:(0,a.jsx)("ul",{className:"flex flex-col",children:j.MENUS.map((t,l)=>(0,a.jsx)("li",{className:l===j.MENUS.length-1?"mb-6xl":"mb-4xl",children:(0,a.jsx)(L,{icon:t.icon,label:t.label,route:t.route,onClick:()=>{var e,a;return e=t.label,a=!!t.route,void(!a?s(e):(0,C.default)({content_name:e,content_type:`Account Option_${l}`,organisms:"Menú lateral",content_action:"click"},!1))},isActive:r===t.label,onCloseAction:e,pageMetadata:n,trackingData:i?{...i,content_name:t.label,content_type:`Account Option_${l+1}`}:void 0})},t.key))})}),(0,a.jsx)(m.LinkCta,{onClick:()=>{l((0,a.jsx)(y,{onCloseAction:o,handleLogout:g}),{zIndex:55})},className:"block text-box-none text-box-both text-box-edge-cap-alphabetic menu-text items-center gap-4s pr-5s cursor-pointer font-franklingothic-medium w-full",label:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.Icon,{name:"logout",size:"base",className:"!font-extralight"}),(0,a.jsx)("span",{className:"block text-box-both text-box-edge-cap-alphabetic menu-text ",children:"Cerrar sesión"})]}),variant:"neutral"})]})]})})}function L({icon:e,label:t,route:n,onClick:i,onCloseAction:r,pageMetadata:s,trackingData:l}){let o=(0,I.useRouter)();return(0,a.jsx)(m.LinkCta,{onClick:()=>{i&&i(),n&&o.push(n),r&&r()},variant:"neutral",className:"items-center gap-4s! pr-5s cursor-pointer font-franklingothic-medium w-full",label:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.Icon,{name:e,size:"base"}),(0,a.jsx)("span",{className:"block text-box-both text-box-edge-cap-alphabetic menu-text ",children:t}),(0,a.jsx)(c.Icon,{name:"chevron_right",size:"base",iconWeight:400,className:"ml-auto"})]}),pageMetadata:s,trackingData:l})}function R({isOpen:e=!1,onCloseAction:t,isDarkMode:n=!1,pageMetadata:i,trackingData:r}){(0,g.useLockBodyScroll)(e);let s=()=>{t?.()};return(0,h.createPortal)((0,a.jsxs)("div",{"aria-hidden":!e,className:(0,x.cn)("fixed inset-0 transition-[visibility] duration-300",e?"visible":"invisible pointer-events-none"),style:{zIndex:55},children:[(0,a.jsx)("div",{className:(0,x.cn)("fixed inset-0 bg-black/30 transition-opacity duration-300",e?"opacity-100":"opacity-0"),onClick:s}),(0,a.jsx)("div",{className:(0,x.cn)("fixed right-0 top-0 h-screen lg:w-[24.25rem] xl:w-[24.25rem] sm:w-[23.5rem] xs:w-full shadow-xl transform transition-transform duration-300 ease-in-out px-10xl py-14xl sidebar-container",e?"translate-x-0":"translate-x-full",n?"dar
10k":"light"),style:{zIndex:54},children:(0,a.jsx)(f.ModalProvider,{children:(0,a.jsx)(D,{onCloseAction:s,pageMetadata:i,trackingData:r})})})]}),document.body)}let A=({size:e=24,...t})=>(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",...t,children:(0,a.jsx)("path",{d:"M12 11.6699C12.5575 11.6699 13.0306 11.4719 13.4193 11.0758C13.8081 10.6797 14.0024 10.2103 14.0024 9.66748C14.0024 9.11002 13.8081 8.63692 13.4193 8.24817C13.0306 7.85941 12.5575 7.66504 12 7.66504C11.4572 7.66504 10.9878 7.85941 10.5917 8.24817C10.1956 8.63692 9.99755 9.11002 9.99755 9.66748C9.99755 10.2103 10.1956 10.6797 10.5917 11.0758C10.9878 11.4719 11.4572 11.6699 12 11.6699ZM12 12.3301C11.2665 12.3301 10.6357 12.0697 10.1076 11.5489C9.57946 11.0281 9.3154 10.401 9.3154 9.66748C9.3154 8.91932 9.57946 8.28484 10.1076 7.76406C10.6357 7.24328 11.2665 6.98288 12 6.98288C12.7482 6.98288 13.3826 7.24328 13.9034 7.76406C14.4242 8.28484 14.6846 8.91932 14.6846 9.66748C14.6846 10.401 14.4242 11.0281 13.9034 11.5489C13.3826 12.0697 12.7482 12.3301 12 12.3301ZM12 21C10.7384 21 9.56479 20.7653 8.47922 20.2958C7.39364 19.8264 6.44376 19.1846 5.62958 18.3704C4.8154 17.5562 4.17359 16.6064 3.70416 15.5208C3.23472 14.4352 3 13.2616 3 12C3 10.7384 3.23472 9.56479 3.70416 8.47922C4.17359 7.39364 4.8154 6.44376 5.62958 5.62958C6.44376 4.8154 7.39364 4.17359 8.47922 3.70416C9.56479 3.23472 10.7384 3 12 3C13.2616 3 14.4352 3.23472 15.5208 3.70416C16.6064 4.17359 17.5562 4.8154 18.3704 5.62958C19.1846 6.44376 19.8264 7.39364 20.2958 8.47922C20.7653 9.56479 21 10.7384 21 12C21 13.2616 20.7653 14.4352 20.2958 15.5208C19.8264 16.6064 19.1846 17.5562 18.3704 18.3704C17.5562 19.1846 16.6064 19.8264 15.5208 20.2958C14.4352 20.7653 13.2616 21 12 21ZM12 20.3178C12.9829 20.3178 13.9438 20.1455 14.8826 19.8007C15.8215 19.456 16.7017 18.9535 17.5232 18.2934C16.9658 17.6773 16.2103 17.1308 15.2567 16.654C14.3032 16.1773 13.2176 15.9389 12 15.9389C10.7824 15.9389 9.69682 16.1773 8.74328 16.654C7.78973 17.1308 7.04156 17.6773 6.49878 18.2934C7.30562 18.9535 8.17848 19.456 9.11736 19.8007C10.0562 20.1455 11.0171 20.3178 12 20.3178ZM5.99267 17.8093C6.68215 17.0611 7.55134 16.4487 8.60024 15.9719C9.64914 15.4951 10.7824 15.2567 12 15.2567C13.2176 15.2567 14.3509 15.4951 15.3998 15.9719C16.4487 16.4487 17.3105 17.0611 17.9853 17.8093C18.6895 16.9731 19.2543 16.0599 19.6797 15.0697C20.1051 14.0795 20.3178 13.0562 20.3178 12C20.3178 10.8411 20.1051 9.7555 19.6797 8.74328C19.2543 7.73105 18.6601 6.84719 17.8973 6.09169C17.1345 5.33619 16.2506 4.74572 15.2457 4.32029C14.2408 3.89487 13.1589 3.68215 12 3.68215C10.8411 3.68215 9.75917 3.89487 8.75428 4.32029C7.74939 4.74572 6.86553 5.33985 6.10269 6.10269C5.33985 6.86553 4.74572 7.74939 4.32029 8.75428C3.89487 9.75917 3.68215 10.8411 3.68215 12C3.68215 13.1736 3.89487 14.2335 4.32029 15.1797C4.74572 16.1259 5.30318 17.0024 5.99267 17.8093Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.3"})});var P=e.i(60649),$=e.i(929573);let H=({isDarkMode:e=!1,className:n="",pageMetadata:i,trackingDataIniciarSesion:r,trackingDataProfile:s})=>{let l=(0,P.useIsMobileOrTablet)(),{data:o,status:x}=(0,T.useSession)(),h=(0,I.useRouter)(),f=(0,I.usePathname)(),[g,y]=(0,t.useState)(!1),j=()=>{i&&s&&(0,C.default)({...i,...s},!1)},v=()=>{i&&r&&(0,C.default)({...i,...r},!1)},{profile:k}=(0,N.useProfileStore)(),w=k?.name?.last?`${k?.name?.first??""} ${k?.name?.last??""}`:k?.name?.first??"";return"loading"===x?(0,a.jsxs)("div",{className:"flex items-center gap-4 sm:w-[180px] lg:w-[375px] min-[375px] justify-end",children:[(0,a.jsx)(u.Skeleton,{width:40,height:40,className:"sm:hidden"}),(0,a.jsx)(u.Skeleton,{width:230,height:40,className:"hidden sm:block min-[375px] justify-end"})]}):"authenticated"===x&&o?.authToken?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:`flex justify-end flex-1 items-center p-1 ${n}`,children:[(0,a.jsx)(m.LinkCta,{label:w&&""!==w?(0,a.jsx)(p.default,{tag:"span",className:"text-secondary-600 text-box-trim-edge-none h-full inline-flex items-end dark:text-secondary",children:w}):(0,a.jsx)(p.default,{tag:"span",className:"text-secondary-600 h-full inline-flex items-end dark:text-secondary",children:"Mi Cuenta"}),variant:"neutral",className:`hidden justify-end lg:py-[6px] lg:flex items-center gap-4s font-franklingothic-medium text-s h-[2.5rem] px-2xl cursor-pointer ${e?"text-secondary-100":"text-secondary-500"}`,onClick:()=>{j(),y(!0)},icon:(0,a.jsx)(c.Icon,{name:"expand_more",className:"dark:text-white",size:"lg",iconWeight:400}),iconPlacement:"right","aria-label":"Mi Cuenta",pageMetadata:i,trackingData:s}),(0,a.jsx)(d.IconButton,{icon:(0,a.jsx)(A,{className:"",size:32}),className:"profile-icon lg:hidden bg-transparent! w-[unset]! h-[unset]! rounded-[.25rem]",onClick:()=>{j(),y(!0)},"aria-label":"Perfil de usuario"})]}),(0,a.jsx)(R,{isOpen:g,onCloseAction:()=>y(!1),isDarkMode:e,pageMetadata:i,trackingData:{organisms:"Menú lateral",content_action:"click"}})]}):(0,a.jsxs)(a.Fragment,{children:[l&&(0,a.jsx)("div",{className:"p-1 cursor-pointer",onClick:()=>{h.push("/iniciar-sesion/"),localStorage.setItem($.REDIRECT_URL_KEY,f),v()},children:(0,a.jsx)(d.IconButton,{icon:(0,a.jsx)(A,{size:32}),className:"profile-icon !p-0 flex-shrink-0 bg-transparent! rounded-[.25rem] w-[unset]! h-[unset]!","aria-label":"Iniciar sesión"})}),!l&&(0,a.jsx)("div",{className:"lg:w-[180px] flex justify-end gap-2s auth-button-wrapper",children:(0,a.jsx)(b.Button,{variant:"grey-outline",label:"Inicia sesión N+",onClick:()=>{h.push("/iniciar-sesion/"),localStorage.setItem($.REDIRECT_URL_KEY,f),v()},"aria-label":"Inicia sesión N+",className:"rounded-[0.5rem] leading-4"})})]})},O={full:{day:"numeric",month:"long",year:"numeric"},short:{day:"numeric",month:"short",year:"numeric"},numeric:{year:"numeric",month:"2-digit",day:"2-digit"},"month-year":{year:"numeric",month:"long"},time:{hour:"2-digit",minute:"2-digit"},"date-time":{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"},"live-entry":{hour:"2-digit",minute:"2-digit",year:"numeric",month:"short",day:"numeric"},medium:{day:"numeric",month:"short",year:"numeric"},long:{day:"numeric",month:"long",year:"numeric"}};var U=e.i(522016);let B=({children:e="En Vivo",className:t,onClick:n,href:i="/en-vivo/?canal=forotv",pageMetadata:r,trackingData:s,isActive:l=!0})=>l?(0,a.jsx)(U.default,{href:i,className:(0,x.cn)("live-cta__link","p-1.5 pl-[11px] sm:py-2 sm:pr-4 sm:pl-4 lg:px-4xl lg:py-[13px] rounded-[44px] border-[.3px] border-solid border-text-100 w-fit cursor-pointer flex items-center ","text-primary transition-[background]","hover:bg-primary-50 hover:text-secondary-500 hover:border-primary-50","active:bg-primary-200 active:border-primary-200 active:text-white active:[&>span]:before:bg-white","dark:text-secondary-600 dark:border-white dark:bg-white","dark:hover:bg-primary-50 dark:hover:border-primary-50 dark:hover:text-secondary-500","dark:active:bg-white dark:active:border-secondary-100 dark:active:text-primary dark:active:[&>span]:before:bg-primary","dark:active:bg-secondary-100",t),onClick:()=>void(r&&s&&(0,C.default)({...r,...s},!0),n?.()),children:(0,a.jsx)("span",{className:(0,x.cn)("live-cta__label","relative font-franklingothic-demi","font-normal tracking-[0.056px] leading-5 text-xs capitalize",'before:content-[""] before:absolute before:bg-primary',"before:h-1.5 before:w-1.5 before:rounded-full before:left-0","before:animate-ping block"),children:e})}):(0,a.jsx)("div",{className:(0,x.cn)("live-cta__link","p-1.5 pl-[11px] sm:py-2 sm:pr-4 sm:pl-4 lg:px-4xl lg:py-[13px] rounded-[44px] border-[.3px] border-solid border-text-100 w-fit cursor-not-allowed flex items-center","text-secondary-200"),children:(0,a.jsx)("span",{className:(0,x.cn)("live-cta__label","relative font-franklingothic-demi","font-normal tracking-[0.056px] leading-5 text-xs capitalize",'before:content-[""] before:absolute before:bg-secondary-200',"before:h-1.5 before:w-1.5 before:rounded-full before:left-0","block"),children:e})});var z=e.i(665613),q=e.i(908034);let F=(0,t.forwardRef)(({items:e,className:n,isDarkMode:i=!1},r)=>e&&e?.length>0?(0,a.jsx)("nav",{ref:r,className:`parent-magic-sticky ${n??""} ${i?"dark":"light"}`,"data-latest-updates":!0,"aria-label":"Ãltimas actualizaciones",children:(0,a.jsxs)("ul",{className:"flex lg:gap-15xl sm:gap-13xl xs:gap-4s justify-center items-center",role:"list",children:[(0,a.jsx)("li",{className:"hidden sm:block",children:(0,a.jsx)(p.default,{tag:"p",variant:"menu-pills-active",className:"text-box-trim-none whitespace-nowrap",children:"EN DESARROLLO"})}),(0,a.jsx)("li",{className:"flex divide-x-1 divide-text-50 gap-s overflow-x-auto lg:overflow-x-visible sm:overflow-x-auto scrollbar-hide",children:e?.map(e=>{var n;let i,r,s,l,o;return(0,a.jsx)(t.Fragment,{children:(0,a.jsx)(m.LinkCta,{href:(e=>{if(e?.customUrl)return e.customUrl;let a=e?.fullPath;if(!a){let a=e?.contentSource;return(0,q.mapRelationToBasePath)(a)||"/"}return a||"/"})(e),title:e.label,label:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(z.default,{type:"label-placeholder",variant:"text-field-label",children:e.label}),(0,a.jsx)("span",{className:"pl-4s",children:e.selectedItem?.value?.updatedAt&&(0,a.jsx)("time",{dateTime:new Date(e.selectedItem?.value?.updatedAt).toISOString(),children:(0,a.jsx)(z.default,{type:"label-placeholder",variant:"helper-time",children:(i="str
10ing"==typeof(n=e.selectedItem?.value?.updatedAt)?new Date(n):n,s=Math.floor((r=new Date().getTime()-i.getTime())/1e3),l=Math.floor(r/6e4),o=Math.floor(r/36e5),s<60?"hace un momento":r<=432e5?`hace ${l} min`:`hace ${o} ${1===o?"hora":"horas"}`)})})})]}),variant:"neutral",className:"typography-label-variant-1 rounded-none font-[500] pr-s text-box-trim-none shrink-0",..."custom"===e.linkType&&e.openInNewTab?{target:"_blank",rel:"noopener noreferrer"}:{}})},e.id)})})]})}):null);function V({items:e,pageMetadata:t,trackingData:n}){return e&&0!==e.length?e.map((e,i)=>(0,a.jsx)("li",{className:`block ${4===i||5===i?"hidden xl:block":""}`,children:(0,a.jsx)(m.LinkCta,{href:(e=>{if(e?.customUrl)return e.customUrl;let a=e?.fullPath;if(!a){let a=e?.contentSource;return(0,q.mapRelationToBasePath)(a)||"/"}return a||"/"})(e),className:"typography-body-4 text-box-trim-edge-none",variant:"neutral",..."custom"===e.linkType&&e.openInNewTab?{target:"_blank",rel:"noopener noreferrer"}:{},label:e.label,"aria-label":e.selectedItem?.value?.title,pageMetadata:t,trackingData:n?{...n,content_name:e.label}:void 0})},e.id||i)):null}F.displayName="HeaderLatestUpdates";var Z=e.i(262692),W=e.i(298715),Y=e.i(732555),G=e.i(749988),J=e.i(828292),K=e.i(817747),Q=e.i(280573);function X({pageMetadata:e,trackingData:n}={}){let{data:i}=(0,T.useSession)(),r=(0,I.useRouter)(),[s,l]=(0,t.useState)({unreadCount:0,pagination:{nextCursor:null,hasNext:!1},notifications:[]}),[o,d]=(0,t.useState)(!1),m=(0,t.useCallback)(async(e=null)=>{d(!0);let a=await (0,k.queryClient)({query:K.GET_ALL_USER_NOTIFICATIONS_QUERY,variables:{input:{nextCursor:e,isRead:null,limit:4}}});a&&a.data?.getUserNotifications&&l(a.data?.getUserNotifications),d(!1)},[]);(0,t.useEffect)(()=>{let e=e=>{let a=e.detail;a?.type&&("markAllRead"===a.type||"deleteAll"===a.type)&&l(e=>({...e,unreadCount:0,notifications:"deleteAll"===a.type?[]:e.notifications.map(e=>({...e,isRead:!0}))}))};return window.addEventListener("nmas:notifications-changed",e),()=>window.removeEventListener("nmas:notifications-changed",e)},[]);let u=a=>{e&&n&&(0,C.default)({...e,...n},!1),a&&a(),r.push("/mi-cuenta/notificaciones/")};if((0,t.useEffect)(()=>{i?.authToken&&m()},[i?.authToken,m]),!i?.authToken)return(0,a.jsx)("div",{className:"h-9 w-9 bg-transparent hidden","aria-hidden":"true"});let x=({unread:e})=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.Icon,{name:"notifications",className:"text-secondary-600! dark:text-white! cursor-pointer rounded",size:"xl"}),e&&(0,a.jsx)(W.RedDot,{className:"translate-y-[10px] translate-x-[23px] sm:-translate-y-2 sm:translate-x-[5px] absolute lg:top-[0.75rem] lg:right-[0.75rem] lg:translate-x-[5px] lg:-translate-y-[5px]"})]});if(i?.authToken)return(0,a.jsxs)("li",{className:"w-10xl",children:[(0,a.jsx)(J.Menu,{position:"right-bottom",className:"xs:hidden sm:block p-1",menuId:"notification-menu",useFixedPosition:!0,trigger:(0,a.jsx)("span",{onClick:()=>{m(),e&&n&&(0,C.default)({...e,...n},!1)},className:"relative text-secondary rounded-[.5rem] flex justify-center items-center ",children:(0,a.jsx)(x,{unread:s.unreadCount>0})}),children:i=>(0,a.jsxs)("div",{className:"w-[30rem] bg-white rounded-m shadow-[0_2px_10px_0_rgba(0,0,0,0.1)] overflow-hidden dark-card",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between p-m border-b border-gray-200 dark:border-secondary-200",children:[(0,a.jsx)(p.default,{tag:"p",className:"text-m text-secondary-600 font-franklingothic-medium dark:text-secondary!",children:"Notificaciones"}),(0,a.jsx)(c.Icon,{name:"settings",size:"lg",onClick:()=>u(i)})]}),o?(0,a.jsx)("div",{className:"flex justify-center items-center h-[12rem]",children:(0,a.jsx)(Z.default,{size:"sm"})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("ul",{className:"pt-s px-l flex flex-col gap-s",children:s.notifications.map((n,r)=>(0,a.jsx)(t.Fragment,{children:(0,a.jsx)("li",{className:`cursor-pointer pb-s flex justify-between items-stretch ${r!==s.notifications.length-1&&"border-b border-gray-200 dark:border-secondary-300"}`,children:(0,a.jsx)(Y.NotificationCard,{contentWidth:"w-full",className:"gap-s",notification:n,onClick:i,pageMetadata:e,cardIndex:r+1})})},n.id))}),s.notifications.length<=0&&(0,a.jsx)("div",{className:"text-center w-[21.3125rem] mx-auto flex flex-col gap-y-s py-16xl px-6xl items-center justify-center",children:(0,a.jsx)(G.EmptyNotifications,{titleText:"No tienes notificaciones",subText:"Te avisaremos en cuanto tengamos novedades que te interesen."})}),s.pagination.hasNext&&(0,a.jsx)("div",{className:"bg-secondary-50 dark:bg-secondary-500! py-m px-s mt-4s leading-[0.875]",onClick:()=>u(i),children:(0,a.jsx)(Q.default,{href:"/mi-cuenta/notificaciones/",label:"Ver todas las notificaciones",pageMetadata:e,trackingData:{...n,organisms:"Notificaciones drop down",content_name:"Ver todas las notificaciones",content_action:"click",content_type:"Action_Button_Primary_Ver todas las notificaciones"}})})]})]})}),(0,a.jsx)("div",{onClick:()=>u(()=>{}),className:"sm:hidden xs:grid relative text-secondary p-1 grid place-content-center cursor-pointer",children:(0,a.jsx)(x,{unread:s.unreadCount>0})})]})}var ee=e.i(930114);let ea=({className:e,hasAnimation:n=!0})=>{let i=(0,t.useRef)(null),r=(0,t.useRef)([]),s=(0,t.useRef)(null),l=e=>a=>{r.current[e]=a},o=(0,t.useCallback)(()=>[i.current,...r.current].filter(e=>null!==e),[]),c=(0,t.useCallback)(()=>{let e=o();
100!==e.length&&(e.forEach(e=>{e.style.animation="none"}),e[0].getBoundingClientRect(),e.forEach(e=>{e.style.animation=""}))},[o]),d=(0,t.useCallback)(()=>{s.current=setTimeout(()=>{c(),d()},((e=!1)=>e?Number((5001*Math.random()+2e4).toFixed(2)):Math.floor(5001*Math.random())+2e4)())},[c]);return(0,t.useEffect)(()=>{if(n&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches)return d(),()=>{s.current&&clearTimeout(s.current)}},[n,d]),(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100",height:"60",viewBox:"0 0 100 60",fill:"none",className:(0,x.cn)(ee.default["wrapper-nplus-icon"],e),children:[(0,a.jsx)("path",{ref:i,d:"M86.6062 32.8571V19.3506H77.6425V32.8571H65.1813V41.8442H77.6425V55.3506H86.6062V41.8442H99.0933V32.8571H86.6062Z",fill:"currentColor",className:`${ee.default["to-rotate"]}`,style:{"--rotate":"90deg",animation:"none"}}),(0,a.jsx)("path",{ref:l(0),d:"M50.2072 1.37665L39.2228 45.5325L53.9119 58.6234L68.1606 1.37665H50.2072Z",fill:"currentColor",className:ee.default["to-move"],style:{"--translate":`translate( 11 calc(cos(90deg) * var(--distance)), 12 calc(sin(90deg) * var(--distance)) 13 )`,"--delay":"400ms",animation:"none"}}),(0,a.jsx)("path",{ref:l(1),d:"M0.932617 55.3247H17.3575H33.8083L35.9585 46.6234L9.04143 22.6494L0.932617 55.3247Z",fill:"currentColor",className:ee.default["to-move"],style:{"--translate":`translate( 14 calc(cos(45deg) * (-1 * var(--distance))), 15 calc(sin(45deg) * (-1 * var(--distance))) 16 )`,"--delay":"0ms",animation:"none"}}),(0,a.jsx)("path",{ref:l(2),d:"M12.0985 10.3636L9.87048 19.3507L36.7876 43.3507L44.9741 10.3636H12.0985Z",fill:"currentColor",className:ee.default["to-move"],style:{"--translate":"translateY(calc(-1 * var(--movement)))","--delay":"200ms",animation:"none"}})]})};var et=e.i(352385),en=e.i(415033);let ei=function(){let{setProfile:e,clearProfile:a}=(0,N.useProfileStore)(),{data:n,status:i}=(0,T.useSession)(),r=(0,t.useRef)(null);return(0,t.useEffect)(()=>{if(!n&&i===en.UNAUTHENTICATED){a(),r.current=null;return}if(n?.authToken&&i===en.AUTHENTICATED){let a=n.authToken;r.current!==a&&(r.current=a,(async()=>{try{let a=await (0,k.queryClient)({query:et.MY_PROFILE_QUERY});a?.data?.myProfile&&e(a.data.myProfile)}catch(e){throw Error(`No se pudo obtener el perfil: ${e instanceof Error?e.message:String(e)}`)}})())}},[n,e,i,a]),null},er=function(){let{data:e}=(0,T.useSession)();return(0,t.useEffect)(()=>{e?.authToken&&(async()=>{try{let e=await (0,E.getThemePreference)();e&&((0,E.setThemeCookie)(e),"u">typeof document&&document.documentElement.removeAttribute("data-theme-waiting"))}catch(e){throw Error(`Failed to fetch theme preference:, ${e}`)}})()},[e?.authToken]),null};var es=e.i(494316);r.registerPlugin(s.ScrollTrigger);let el={pages:"Header"},eo={content_name:"Logo",content_action:"click",content_type:"Logo"},ec={content_name:"Search",content_action:"click",content_type:"Search"},ed={content_name:"Menú",content_action:"click"},em={content_name:"Live CTA Botón_En vivo",content_action:"click",content_type:"Live CTA Botón | En vivo"},eu={content_name:"Profile",content_action:"click",content_type:"Profile"},ex={content_name:"Action_Button_Iniciar sesión",content_action:"click",content_type:"Button_grey_Iniciar sesión"},eh={content_name:"Notificaciones",content_action:"click",content_type:"Notificaciones"},ef={content_action:"click"},eg={content_name:"Más",content_action:"click",content_type:"Menú"},ep={content_action:"click"},eb={content_name:"Más",content_action:"click"},ey={content_action:"click"},ej=(0,o.default)(()=>e.A(139429),{loadableGenerated:{modules:[474132]}}),ev=(0,o.default)(()=>e.A(179402),{loadableGenerated:{modules:[741885]}});e.s(["default",0,function({className:e,isDarkMode:n=!1,navItems:i=[],specialNavItems:s=[],secondaryHeaderData:o,pageMetadata:d,trackingData:u,isLoggedIn:h=!1,generatedAt:f}){let g=d??el,p=h?"Header Logged In":"Header Logged Out",b=(0,t.useRef)(null),y=(0,t.useRef)(null);return(0,l.useGSAP)(()=>{r.to(y.current,{scrollTrigger:{trigger:b.current,start:"bottom top",end:"center top",toggleActions:"play none none reverse",onEnter:()=>{y.current?.classList.add("compact-visible")},onLeaveBack:()=>{y.current?.classList.remove("compact-visible")}},y:0,duration:.3,ease:"linear"})}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("header",{className:`${e} ${n?"dark":"light"} ${n?es.default.darkTheme:""}`,ref:b,children:(0,a.jsxs)("div",{className:"max-w-[90rem] m-auto",children:[(0,a.jsx)(ei,{}),(0,a.jsx)(er,{}),(0,a.jsxs)("div",{className:"mx-3 sm:mx-8 flex items-center sm:items-end justify-between py-4s lg:py-s pt-s",children:[(0,a.jsx)("div",{className:"hidden lg:flex flex-shrink-0 w-[250px] lg:w-[300px]",children:(0,a.jsx)("div",{className:"flex items-center gap-x-4s",children:(0,a.jsxs)("div",{className:"flex items-center justify-center bg-muted-foreground rounded gap-x-2s",children:[(0,a.jsx)(m.LinkCta,{label:"",ariaLabel:"Buscar contenido",icon:(0,a.jsx)(c.Icon,{name:"search",className:`search-button-icon ${n?"text-secondary":"text-secondary-600"}`,size:"xl",iconWeight:200}),href:"/buscar/",variant:"neutral",className:"p-4s search-button flex-shrink-0 rounded-[.5rem]! w-[2.5rem] h-[2.5rem]",pageMetadata:g,trackingData:{...ec,organisms:p}}),(0,a.jsx)("time",{dateTime:new Intl.DateTimeFormat("sv-SE",{timeZone:"America/Mexico_City",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date(f)).replace(" ","T"),children:(0,a.jsx)(z.default,{type:"info-label",variant:"info-1",children:(({date:e,timeZone:a,format:t="medium",locale:n="es-MX"})=>e.toLocaleDateString(n,{...O[t],timeZone:a}
16))({date:new Date(f),timeZone:"America/Mexico_City",format:"full"})})})]})})}),(0,a.jsx)("nav",{className:"flex items-center gap-2s lg:hidden","aria-label":"Navegación móvil",children:(0,a.jsxs)("ul",{className:"flex items-center gap-2 list-none",children:[(0,a.jsx)("li",{children:(0,a.jsx)("div",{className:"flex justify-center flex-grow xs:flex-none",children:(0,a.jsx)(m.LinkCta,{label:(0,a.jsx)(ea,{className:"w-15xl h-9 xl:h-[4.6875rem] xl:w-[8.5rem] lg:h-[4.6875rem] lg:w-[8rem] xs:h-[2.125rem] xs:w-[3.75rem] text-secondary-600 dark:text-secondary"}),href:$.ROUTES.HOME,variant:"neutral",className:"focus:outline-none rounded",ariaLabel:"Nmas - Ir al inicio",pageMetadata:g,trackingData:{...eo,organisms:p}})})}),(0,a.jsx)("li",{className:"self-end",children:(0,a.jsx)(B,{pageMetadata:g,trackingData:{...em,organisms:p}})})]})}),(0,a.jsx)(m.LinkCta,{label:(0,a.jsx)(ea,{className:"hidden lg:block lg:w-[77px] lg:h-[43px] text-secondary-600 dark:text-secondary"}),href:$.ROUTES.HOME,variant:"neutral",className:"focus:outline-none rounded",ariaLabel:"Nmas - Ir al inicio",pageMetadata:g,trackingData:{...eo,organisms:p}}),(0,a.jsx)("nav",{className:"flex justify-end items-center gap-4s flex-shrink-0 lg:min-w-[300px]","aria-label":"Acciones del usuario",children:(0,a.jsxs)("ul",{className:"justify-end flex items-center list-none lg:w-[375px] min-[375px]:gap-2.5",children:[(0,a.jsx)("li",{children:(0,a.jsx)(H,{className:"lg:w-[375px] min-[375px]:gap-2.5",isDarkMode:n,pageMetadata:g,trackingDataIniciarSesion:{...ex,organisms:p},trackingDataProfile:{...eu,organisms:p}})}),(0,a.jsx)(X,{pageMetadata:g,trackingData:{...eh,organisms:p}}),(0,a.jsx)(ev,{isDarkMode:n,data:o,pageMetadata:g,trackingData:{...ed,organisms:p},isPrincipalHeader:!0})]})})]}),(0,a.jsxs)("div",{className:"relative lg:px-8 h-full text-secondary-foreground hidden lg:flex justify-between lg:justify-center lg:gap-17 items-center font-franklingothic-book py-4s",children:[(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsx)(B,{pageMetadata:g,trackingData:{...em,organisms:p}})}),(0,a.jsx)("nav",{className:"flex-1 flex justify-center lg:flex-none lg:justify-center","aria-label":"Navegación principal",children:(0,a.jsxs)("ul",{className:"flex items-center justify-center lg:gap-11xl font-normal",children:[(0,a.jsx)(V,{items:i,pageMetadata:g,trackingData:u??{...ef,organisms:p}}),(0,a.jsx)(ej,{data:o,isDarkMode:n,pageMetadata:g,trackingData:{...eg,organisms:p},categoriesTrackingData:{...ep,organisms:p}})]})})]}),(0,a.jsx)(F,{isDarkMode:n,items:s,className:"px-3 py-2 sm:px-16xl-1 "})]})}),(0,a.jsx)("div",{ref:y,className:(0,x.cn)("fixed top-0 left-0 right-0 z-50",es.default["secondary-header-set"]),style:{transform:"translateY(-120%)"},"aria-label":"Navegación compacta",id:"secondary-header",children:(0,a.jsxs)("div",{"aria-label":"Navegación compacta",children:[(0,a.jsx)("div",{className:"max-w-[90rem] mx-auto",children:(0,a.jsxs)("div",{className:"mx-3 sm:mx-8 flex lg:justify-center items-center justify-between py-4s lg:py-2 pt-s ",children:[(0,a.jsx)("nav",{className:"flex items-center gap-2s ","aria-label":"Navegación móvil",children:(0,a.jsxs)("ul",{className:"flex items-center gap-2 list-none",children:[(0,a.jsx)("li",{children:(0,a.jsx)("div",{className:"flex justify-center flex-grow xs:flex-none",children:(0,a.jsx)(m.LinkCta,{label:(0,a.jsx)(ea,{className:"h-[34px] lg:h-[40px] w-[3.75rem] text-secondary-600 dark:text-secondary"}),href:$.ROUTES.HOME,variant:"neutral",className:"focus:outline-none rounded",ariaLabel:"Nmas - Ir al inicio",pageMetadata:g,trackingData:{...eo,organisms:p}})})}),(0,a.jsx)("li",{className:"self-end",children:(0,a.jsx)(B,{pageMetadata:g,trackingData:{...em,organisms:p},className:"bg-white"})})]})}),(0,a.jsx)("div",{className:"flex-1 flex justify-center",children:(0,a.jsx)("nav",{"aria-label":"Navegación de scroll",children:(0,a.jsxs)("ul",{className:"hidden lg:flex items-center gap-6 font-franklingothic-book text-sm",children:[(0,a.jsx)(V,{items:i,pageMetadata:g,trackingData:u??{...ef,organisms:p}}),o&&(0,a.jsx)(ej,{data:o,pageMetadata:g,trackingData:{...eb,organisms:p},categoriesTrackingData:{...ey,organisms:p}})]})})}),(0,a.jsx)("nav",{className:"flex justify-end items-center gap-4s flex-shrink-0","aria-label":"Acciones del usuario",children:(0,a.jsxs)("ul",{className:"justify-end flex items-center list-none min-[375px]:gap-2.5",children:[(0,a.jsx)("li",{children:(0,a.jsx)(H,{className:"min-[375px]:gap-2.5",isDarkMode:n,pageMetadata:g,trackingDataIniciarSesion:{...ex,organisms:p},trackingDataProfile:{...eu,organisms:p}})}),(0,a.jsx)(X,{pageMetadata:g,trackingData:{...eh,organisms:p}}),(0,a.jsx)(ev,{isDarkMode:n,data:o,pageMetadata:g,trackingData:{...ed,organisms:p},isPrincipalHeader:!1})]})})]})}),s.length>0&&(0,a.jsx)(F,{isDarkMode:n,items:s,className:"px-3 py-2 sm:px-16xl-1"})]})})]})}],677800)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.