PageSourceSearch

https://mytelevision.tv/_next/static/chunks/2t0oldqu42rxw.js

js mytelevision.tv collected 2026-10-09 21:56:55 UTC 29,240 bytes, 16 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,521207,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={cancelIdleCallback:function(){return i},requestIdleCallback:function(){return n}};for(var a in s)Object.defineProperty(r,a,{enumerable:!0,get:s[a]});let n="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},i="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},224299,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={ESCAPE_REGEX:function(){return i},htmlEscapeAttributeString:function(){return d},htmlEscapeJsonString:function(){return c}};for(var a in s)Object.defineProperty(r,a,{enumerable:!0,get:s[a]});let n={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},i=/[&><\u2028\u2029]/g,l={"&":"&amp;",'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;"},o=/[&"'<>]/g;function c(e){return e.replace(i,e=>n[e])}function d(e){return e.replace(o,e=>l[e])}},779192,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={default:function(){return v},handleClientScriptLoad:function(){return b},initScriptLoader:function(){return g}};for(var a in s)Object.defineProperty(r,a,{enumerable:!0,get:s[a]});let n=e.r(836437),i=e.r(56421),l=e.r(827675),o=n._(e.r(879221)),c=i._(e.r(679724)),d=e.r(747881),u=e.r(462006),f=e.r(521207),m=e.r(224299),p=new Map,x=new Set,h=e=>{let{src:t,id:r,onLoad:s=()=>{},onReady:a=null,dangerouslySetInnerHTML:n,children:i="",strategy:l="afterInteractive",onError:c,stylesheets:d}=e,f=r||t;if(f&&x.has(f))return;if(p.has(t)){x.add(f),p.get(t).then(s,c);return}let m=()=>{a&&a(),x.add(f)},h=document.createElement("script"),b=new Promise((e,t)=>{h.addEventListener("load",function(t){e(),s&&s.call(this,t),m()}),h.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});n?(h.innerHTML=n.__html||"",m()):i?(h.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",m()):t&&(h.src=t,p.set(t,b)),(0,u.setAttributesFromProps)(h,e),"worker"===l&&h.setAttribute("type","text/partytown"),h.setAttribute("data-nscript",l),d&&(e=>{if(o.default.preinit)return e.forEach(e=>{o.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(d),document.body.appendChild(h)};function b(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>h(e))}):h(e)}function g(e){e.forEach(b),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");x.add(t)})}function y(e){let{id:t,src:r="",onLoad:s=()=>{},onReady:a=null,strategy:n="afterInteractive",onError:i,stylesheets:u,...p}=e,{updateScripts:b,scripts:g,getIsSsr:y,appDir:v,nonce:j}=(0,c.useContext)(d.HeadManagerContext);j=p.nonce||j;let w=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||r;w.current||(a&&e&&x.has(e)&&a(),w.current=!0)},[a,t,r]);let k=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!k.current){if("afterInteractive"===n)h(e);else"lazyOnload"===n&&("complete"===document.readyState?(0,f.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>h(e))}));k.current=!0}},[e,n]),("beforeInteractive"===n||"worker"===n)&&(b?(g[n]=(g[n]||[]).concat([{id:t,src:r,onLoad:s,onReady:a,onError:i,...p,nonce:j}]),b(g)):y&&y()?x.add(t||r):y&&!y()&&h({...e,nonce:j})),v){if(u&&u.forEach(e=>{o.default.preinit(e,{as:"style"})}),"beforeInteractive"===n)if(!r)return p.dangerouslySetInnerHTML&&(p.children=p.dangerouslySetInnerHTML.__html,delete p.dangerouslySetInnerHTML),(0,l.jsx)("script",{nonce:j,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,m.htmlEscapeJsonString)(JSON.stringify([0,{...p,id:t}]))})`}});else return o.default.preload(r,p.integrity?{as:"script",integrity:p.integrity,nonce:j,crossOrigin:p.crossOrigin}:{as:"script",nonce:j,crossOrigin:p.crossOrigin}),(0,l.jsx)("script",{nonce:j,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,m.htmlEscapeJsonString)(JSON.stringify([r,{...p,id:t}]))})`}});"afterInteractive"===n&&r&&o.default.preload(r,p.integrity?{as:"script",integrity:p.integrity,nonce:j,crossOrigin:p.crossOrigin}:{as:"script",nonce:j,crossOrigin:p.crossOrigin})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let v=y;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},722451,(e,t,r)=>{t.exports=e.r(779192)},937486,e=>{"use strict";var t=e.i(827675),r=e.i(679724),s=e.i(722451),a=e.i(116970),n=e.i(456989);function i(e){return(e||"").trim().replace(/\/+$/,"")}function l({matomo:e,countly:t}){let s=(0,a.usePathname)(),n=(0,r.useRef)(!0);return(0,r.useEffect)(()=>{if(n.current){n.current=!1;return}let r=window,s=window.location.href;e&&r._paq&&(r._paq.push(["setCustomUrl",s]),r._paq.push(["setDocumentTitle",document.title]),r._paq.push(["trackPageView"])),t&&r.Countly?.q&&r.Countly.q.push(["track_pageview",window.location.pathname])},[s,e,t]),null}e.s(["default",0,function(){let e,a,o,c,{ready:d,prefs:u}=(0,n.useCookieConsent)(),f=(e=i("https://matomo.mytelevision.tv"),a="1".trim(),o=i(""),c="".trim(),{matomo:e&&a?{url:e,siteId:a}:null,countly:o&&c?{url:o,appKey:c}:null}),m=d&&u.analytics,p=!!f.matomo,x=!!f.countly;return((0,r.useEffect)(()=>{if(m)return;let e=window;e._paq&&(e._paq.push(["forgetConsentGiven"]),e._paq.push(["optUserOut"])),e.Countly?.q&&e.Countly.q.push(["opt_out"])},[m]),m&&(p||x))?(0,t.jsxs)(t.Fragment,{children:[p&&f.matomo&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.default,{id:"matomo-init",strategy:"afterInteractive",children:`
2              var _paq = window._paq = window._paq || [];
3              _paq.push(['enableLinkTracking']);
4              _paq.push(['setTrackerUrl', ${JSON.stringify(`${f.matomo.url}/matomo.php`)}]);
5              _paq.push(['setSiteId', ${JSON.stringify(f.matomo.siteId)}]);
6              _paq.push(['setCustomUrl', window.location.href]);
7              _paq.push(['trackPageView']);
8            `}),(0,t.jsx)(s.default,{id:"matomo-sdk",src:`${f.matomo.url}/matomo.js`,strategy:"afterInteractive"})]}),x&&f.countly&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.default,{id:"countly-init",strategy:"afterInteractive",children:`
9              var Countly = window.Countly = window.Countly || {};
10              Countly.q = Countly.q || [];
11              Countly.app_key = ${JSON.stringify(f.countly.appKey)};
12              Countly.url = ${JSON.stringify(f.countly.url)};
13              Countly.q.push(['track_sessions']);
14              Countly.q.push(['track_pageview']);
15              Countly.q.push(['track_clicks']);
16            `}),(0,t.jsx)(s.default,{id:"countly-sdk",src:`${f.countly.url}/sdk/web/countly.min.js`,strategy:"afterInteractive"})]}),(0,t.jsx)(l,{matomo:p,countly:x})]}):null}],937486)},285148,e=>{"use strict";var t=e.i(827675),r=e.i(679724),s=e.i(423228),a=e.i(272064),n=e.i(456989);function i({locale:e,dict:r}){let{ready:s,showBanner:a,isModalOpen:c,openPreferences:d}=(0,n.useCookieConsent)();return s?(0,t.jsxs)(t.Fragment,{children:[a&&!c&&(0,t.jsx)(l,{dict:r,locale:e,onCustomize:d}),c&&(0,t.jsx)(o,{dict:r})]}):null}function l({dict:e,locale:r,onCustomize:a}){let{acceptAll:i,rejectAll:o}=(0,n.useCookieConsent)(),c=e.cookies;return(0,t.jsx)("div",{className:"pointer-events-none fixed inset-x-0 bottom-0 z-[60] p-3 sm:p-4",children:(0,t.jsx)("div",{role:"region","aria-label":c.title,className:"cookie-surface pointer-events-auto w-full border border-border px-4 py-3 shadow-[var(--mytv-shadow-elevation-4)] sm:max-w-[440px]",children:(0,t.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-sm font-bold text-base-text",children:c.title}),(0,t.jsxs)("p",{className:"mt-0.5 text-xs leading-snug text-light-text",children:[c.description," ",(0,t.jsx)(s.default,{href:`/${r}/legal/cookies`,className:"text-primary hover:underline",children:c.policyLinkLabel})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-3 gap-2",children:[(0,t.jsx)("button",{onClick:a,className:"rounded-xl border border-border px-2 py-2 text-xs font-bold text-base-text transition-colors hover:bg-surface-glass",children:c.customize}),(0,t.jsx)("button",{onClick:o,className:"rounded-xl border border-border px-2 py-2 text-xs font-bold text-base-text transition-colors hover:bg-surface-glass",children:c.rejectAll}),(0,t.jsx)("button",{onClick:i,className:"rounded-xl bg-primary px-2 py-2 text-xs font-bold text-white transition-colors hover:bg-primary-hover",children:c.acceptAll})]})]})})})}function o({dict:e}){let{prefs:s,savePreferences:i,acceptAll:l,closeModal:c}=(0,n.useCookieConsent)(),d=e.cookies,[u,f]=(0,r.useState)(s.analytics),[m,p]=(0,r.useState)(s.marketing),[x,h]=(0,r.useState)(s.preferences),b=[{key:"necessary",title:d.necessary,desc:d.necessaryDesc,value:!0,locked:!0},{key:"analytics",title:d.analytics,desc:d.analyticsDesc,value:u,set:f},{key:"marketing",title:d.marketing,desc:d.marketingDesc,value:m,set:p},{key:"preferences",title:d.preferences,desc:d.preferencesDesc,value:x,set:h}];return(0,t.jsxs)("div",{className:"fixed inset-0 z-[70] flex items-center justify-center p-4",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/60",onClick:c}),(0,t.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":d.manageTitle,className:"cookie-surface relative w-full max-w-lg rounded-2xl border border-border p-6 shadow-[var(--mytv-shadow-elevation-4)]",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-lg font-semibold text-base-text",children:d.manageTitle}),(0,t.jsx)("p",{className:"mt-1 text-sm text-light-text",children:d.manageDescription})]}),(0,t.jsx)("button",{onClick:c,"aria-label":d.close,className:"inline-flex size-8 items-center justify-center rounded-lg text-muted-text hover:bg-surface-glass hover:text-base-text",children:(0,t.jsx)(a.X,{size:18})})]}),(0,t.jsx)("div",{className:"mt-5 max-h-[50vh] space-y-3 overflow-y-auto pr-1",children:b.map(e=>(0,t.jsxs)("div",{className:"rounded-xl border border-border bg-surface-glass p-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,t.jsx)("h3",{className:"text-sm font-semibold text-base-text",children:e.title}),e.locked?(0,t.jsx)("span",{className:"text-xs font-medium text-success",children:d.alwaysActive}):(0,t.jsx)("button",{type:"button",role:"switch","aria-checked":e.value,onClick:()=>e.set?.(!e.value),className:`relative h-6 w-11 shrink-0 rounded-full transition-colors ${e.value?"bg-primary":"bg-border"}`,children:(0,t.jsx)("span",{className:`absolute top-0.5 size-5 rounded-full bg-white transition-transform ${e.value?"translate-x-5":"translate-x-0.5"}`})})]}),(0,t.jsx)("p",{className:"mt-1.5 text-xs text-muted-text",children:e.desc})]},e.key))}),(0,t.jsxs)("div",{className:"mt-6 flex flex-col gap-2 sm:flex-row sm:justify-end",children:[(0,t.jsx)("button",{onClick:()=>i({analytics:u,marketing:m,preferences:x}),className:"rounded-xl border border-border px-4 py-2.5 text-sm font-semibold text-base-text transition-colors hover:bg-surface-glass",children:d.save}),(0,t.jsx)("button",{onClick:l,className:"rounded-xl bg-primary px-4 py-2.5 text-sm font-semibold text-white transition-colors hover:bg-primary-hover",children:d.acceptAll})]})]})]})}e.s(["default",0,function({locale:e,dict:r}){return(0,t.jsx)(i,{locale:e,dict:r})}])},538179,e=>{"use strict";var t=e.i(827675),r=e.i(679724),s=e.i(423228),a=e.i(116970),n=e.i(272064),i=e.i(870053),l=e.i(88372),o=e.i(618071),c=e.i(975157);let d={fr:{name:"Français",flag:"/assets/flags/fr.png"},en:{name:"English",flag:"/assets/flags/en.png"}};function u({locale:e}){return(0,t.jsx)("span",{className:"relative h-3.5 w-5 shrink-0 overflow-hidden ring-1 ring-black/20",children:(0,t.jsx)(l.default,{src:d[e].flag,alt:"",fill:!0,sizes:"20px",className:"object-cover"})})}function f({current:e,className:r}){let s=(0,a.usePathname)(),n=(0,a.useRouter)();return(0,t.jsx)("div",{role:"group","aria-label":"Langue",className:(0,
16c.cn)("inline-flex items-stretch border border-border p-0.5",r),children:o.locales.map(r=>{let a=r===e;return(0,t.jsxs)("button",{type:"button","aria-pressed":a,"aria-label":d[r].name,onClick:()=>(t=>{if(t===e)return;let r=(s||`/${e}`).split("/");r[1]=t,n.push(r.join("/")||`/${t}`)})(r),className:(0,c.cn)("inline-flex items-center gap-1.5 px-2.5 py-1.5 font-label text-xs font-bold uppercase tracking-[0.08em] transition-colors duration-200","focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/40",a?"text-base-text shadow-[inset_0_-2px_0_var(--color-primary)]":"text-muted-text hover:text-base-text"),children:[(0,t.jsx)(u,{locale:r}),(0,t.jsx)("span",{className:(0,c.cn)(!a&&"opacity-80"),children:r})]},r)})})}var m=e.i(874741);function p({labels:e,className:s}){let{resolvedTheme:a,toggleTheme:i}=(0,m.useTheme)(),l=function(){let[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>t(!0),[]),e}()&&"dark"===a;return(0,t.jsxs)("button",{type:"button",onClick:i,"aria-label":e.toggle,title:l?e.light:e.dark,className:(0,c.cn)("relative flex items-center justify-center size-9 rounded-xl overflow-hidden","text-light-text hover:text-base-text hover:bg-surface-glass","transition-all duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary/50",s),children:[(0,t.jsx)(n.Sun,{size:18,className:(0,c.cn)("absolute transition-all duration-300",l?"opacity-0 scale-50 rotate-90":"opacity-100 scale-100 rotate-0")}),(0,t.jsx)(n.Moon,{size:18,className:(0,c.cn)("absolute transition-all duration-300",l?"opacity-100 scale-100 rotate-0":"opacity-0 scale-50 -rotate-90")})]})}n.Sun,n.Moon,n.Monitor;let x={home:n.Home,sport:n.Trophy,family:n.Users,features:n.LayoutGrid,devices:n.MonitorSmartphone,"live-tv":n.Tv,radio:n.Radio,replay:n.RotateCcw,"live-event":n.Zap,movie:n.Clapperboard,series:n.MonitorPlay,podcast:n.Mic,news:n.Newspaper,creators:n.Sparkles,partners:n.Handshake,contact:n.Mail,pricing:n.Tag,about:n.Info};function h(e){var t;return e.iconKey&&x[e.iconKey]?x[e.iconKey]:(t=e.href,/^\/[a-z]{2}\/?$/.test(t)?n.Home:t.includes("live-tv")?n.Tv:t.includes("radio")?n.Radio:t.includes("replay")?n.RotateCcw:t.includes("lives")||t.includes("live-event")?n.Zap:t.includes("movie")?n.Clapperboard:t.includes("series")?n.MonitorPlay:t.includes("podcast")?n.Mic:t.includes("news")?n.Newspaper:t.includes("creator")?n.Sparkles:t.includes("partner")?n.Handshake:t.includes("contact")?n.Mail:t.includes("pricing")?n.Tag:t.includes("sport")?n.Trophy:t.includes("family")?n.Users:t.includes("features")?n.LayoutGrid:t.includes("devices")?n.MonitorSmartphone:t.includes("trust")||t.includes("about")?n.Info:n.Sparkles)}function b(e,t){let r=e.split(/[?#]/)[0].replace(/\/+$/,"");return!(r.split("/").filter(Boolean).length<2)&&(t===r||t.startsWith(`${r}/`))}let g=["download","telecharger","legal","error"];function y({link:e,pathname:r}){let a=b(e.href,r);return(0,t.jsx)(s.default,{href:e.href,"aria-current":a?"page":void 0,className:(0,c.cn)("whitespace-nowrap rounded-lg px-3 py-2 text-sm uppercase tracking-wide underline-grow transition-colors",a?"font-black text-primary":"font-bold text-light-text hover:text-base-text"),children:e.label})}function v({label:e,items:r,pathname:a}){if(!r.length)return null;let i=r.some(e=>b(e.href,a));return(0,t.jsxs)("div",{className:"group relative",children:[(0,t.jsxs)("button",{type:"button","aria-haspopup":"true","aria-current":i?"page":void 0,className:(0,c.cn)("underline-grow inline-flex items-center gap-1 whitespace-nowrap rounded-lg px-3 py-2 text-sm uppercase tracking-wide transition-colors hover:text-base-text group-focus-within:text-base-text",i?"font-black text-primary":"font-bold text-light-text"),children:[e,(0,t.jsx)(n.ChevronDown,{size:15,className:"transition-transform duration-300 group-hover:rotate-180"})]}),(0,t.jsx)("div",{className:(0,c.cn)("invisible absolute left-0 top-full translate-y-1 pt-2 opacity-0 transition-all duration-200","group-hover:visible group-hover:translate-y-0 group-hover:opacity-100","group-focus-within:visible group-focus-within:translate-y-0 group-focus-within:opacity-100"),children:(0,t.jsx)("ul",{className:"min-w-[15rem] border border-border bg-[var(--scene)] px-7 py-5 shadow-2xl",children:r.map(e=>
16{let r=b(e.href,a);return(0,t.jsx)("li",{children:(0,t.jsx)(s.default,{href:e.href,"aria-current":r?"page":void 0,className:(0,c.cn)("block whitespace-nowrap py-2 font-display text-[1.1rem] uppercase leading-none tracking-[0.04em] transition-colors duration-150",r?"text-primary":"text-base-text hover:text-primary focus-visible:text-primary"),children:e.label})},e.href+e.label)})})})]})}function j({data:e,dict:r,locale:l,themeLabels:o,authed:d,openLabel:u,onClose:m}){let x=(0,a.usePathname)();return(0,t.jsxs)("div",{className:"fixed inset-0 z-50 lg:hidden",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/60 animate-fade-in",onClick:m}),(0,t.jsxs)("div",{className:"animate-slide-in-bottom absolute inset-x-3 top-3 flex max-h-[calc(100vh-1.5rem)] flex-col overflow-hidden rounded-3xl border border-border bg-background shadow-[var(--mytv-shadow-elevation-4)]",children:[(0,t.jsxs)("div",{className:"grid grid-cols-[1fr_auto_1fr] items-center border-b border-border p-4",children:[(0,t.jsx)("span",{"aria-hidden":!0}),(0,t.jsx)(i.default,{href:`/${l}`,siteName:e.siteName,src:e.logoUrl,className:"justify-self-center"}),(0,t.jsx)("button",{type:"button","aria-label":r.common.close,onClick:m,className:"inline-flex size-10 items-center justify-center justify-self-end rounded-xl border border-border bg-surface-glass text-base-text hover:bg-surface-elevated",children:(0,t.jsx)(n.X,{size:18})})]}),(0,t.jsxs)("div",{className:"flex-1 space-y-6 overflow-y-auto p-5",children:[e.mainLinks.length>0&&(0,t.jsx)("div",{className:"space-y-1",children:e.mainLinks.map(e=>{let r=h(e),a=b(e.href,x);return(0,t.jsxs)(s.default,{href:e.href,onClick:m,"aria-current":a?"page":void 0,className:(0,c.cn)("flex items-center gap-3 rounded-xl px-3 py-2.5 text-base transition-colors",a?"bg-primary/10 font-black text-primary":"font-bold text-base-text hover:bg-surface-glass"),children:[(0,t.jsx)("span",{className:(0,c.cn)("inline-flex size-8 shrink-0 items-center justify-center rounded-lg transition-colors",a?"bg-primary text-white":"bg-primary/12 text-primary"),children:(0,t.jsx)(r,{size:16})}),e.label]},e.href+e.label)})}),(0,t.jsxs)("div",{className:"space-y-6 border-t border-border pt-4",children:[(0,t.jsx)(w,{title:r.common.explore,items:e.explore,withIcons:!0,pathname:x,onNavigate:m}),(0,t.jsx)(w,{title:r.common.discover,items:e.discover,withIcons:!0,pathname:x,onNavigate:m}),(0,t.jsx)(w,{title:r.common.professionals,items:e.professionals,withIcons:!0,pathname:x,onNavigate:m})]})]}),(0,t.jsxs)("div",{className:"space-y-3 border-t border-border p-5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[e.showLanguageSwitcher&&(0,t.jsx)(f,{current:l,direction:"up"}),e.showThemeToggle&&(0,t.jsx)(p,{labels:o})]}),d?(0,t.jsx)(s.default,{href:e.openHref,onClick:m,className:"block rounded-xl bg-primary px-4 py-3 text-center text-sm font-semibold text-white shadow-2xl transition-all duration-300 hover:scale-[1.03] hover:bg-primary-hover",children:u}):(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,t.jsx)(s.default,{href:e.loginHref,onClick:m,className:"rounded-xl border border-border px-4 py-3 text-center text-sm font-semibold text-base-text hover:bg-surface-glass",children:e.loginLabel}),(0,t.jsx)(s.default,{href:e.ctaHref,onClick:m,className:"rounded-xl bg-primary px-4 py-3 text-center text-sm font-semibold text-white shadow-2xl transition-all duration-300 hover:scale-[1.03] hover:bg-primary-hover",children:r.common.joinFree})]})]})]})]})}function w({title:e,items:a,withIcons:i,pathname:l,onNavigate:o}){let[d,u]=(0,r.useState)(!1);if(!a.length)return null;let f=a.some(e=>b(e.href,l));return(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{type:"button",onClick:()=>u(e=>!e),"aria-expanded":d,className:(0,c.cn)("flex w-full items-center justify-between rounded-lg px-3 py-2 text-xs uppercase tracking-wider transition-colors hover:text-base-text",f?"font-black text-base-text":"font-bold text-muted-text"),children:[e,(0,t.jsx)(n.ChevronDown,{size:15,className:(0,c.cn)("transition-transform duration-300",d&&"rotate-180")}
16)]}),d&&(0,t.jsx)("div",{className:"mt-1 grid grid-cols-1 gap-1",children:a.map(e=>{let r=i?h(e):null,a=b(e.href,l);return(0,t.jsxs)(s.default,{href:e.href,onClick:o,"aria-current":a?"page":void 0,className:(0,c.cn)("flex items-center gap-3 rounded-xl px-3 py-2.5 text-base transition-colors",a?"bg-primary/10 font-black text-primary":"font-bold text-base-text hover:bg-surface-glass"),children:[r&&(0,t.jsx)("span",{className:(0,c.cn)("inline-flex size-8 shrink-0 items-center justify-center rounded-lg transition-colors",a?"bg-primary text-white":"bg-primary/12 text-primary"),children:(0,t.jsx)(r,{size:16})}),e.label]},e.href+e.label)})})]})}e.s(["default",0,function({data:e,dict:n,locale:l,authState:o="guest"}){let d,u=(0,a.usePathname)(),m="authenticated"===o,x="en"===l?"Open MyTelevision":"Ouvrir MyTelevision",h=e.mainLinks.filter(e=>!e.href.includes("pricing")),b=e.mainLinks.filter(e=>e.href.includes("pricing")),[w,k]=(0,r.useState)(!1),[N,C]=(0,r.useState)(!1),_=!(d=u.split("/").filter(Boolean)[1])||!g.includes(d);(0,r.useEffect)(()=>{let e=()=>k(window.scrollY>8);return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),(0,r.useEffect)(()=>(document.body.style.overflow=N?"hidden":"",()=>{document.body.style.overflow=""}),[N]),(0,r.useEffect)(()=>{if(!N)return;let e=e=>"Escape"===e.key&&C(!1);return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[N]);let S={label:n.theme.label,light:n.theme.light,dark:n.theme.dark,system:n.theme.system,toggle:n.theme.toggle};return(0,t.jsxs)("header",{className:(0,c.cn)("fixed inset-x-0 top-0 z-50 transform-gpu transition-colors duration-300 [-webkit-backface-visibility:hidden] [backface-visibility:hidden]","max-lg:border-b max-lg:border-border max-lg:bg-background",_&&!w?"navbar-hero-scrim lg:border-b lg:border-transparent dark:lg:bg-gradient-to-b dark:lg:from-[#00031c]/85 dark:lg:via-[#00031c]/45 dark:lg:to-transparent":"lg:border-b lg:border-border lg:bg-background"),children:[(0,t.jsxs)("nav",{className:"mx-auto h-16 max-w-7xl px-4 sm:px-6 lg:h-[4.25rem] lg:px-8",children:[(0,t.jsxs)("div",{className:"hidden h-full items-center justify-between gap-4 lg:flex",children:[(0,t.jsx)(i.default,{href:`/${l}`,siteName:e.siteName,src:e.logoUrl}),(0,t.jsxs)("div",{className:"flex items-center gap-0.5",children:[h.map(e=>(0,t.jsx)(y,{link:e,pathname:u},e.href+e.label)),(0,t.jsx)(v,{label:n.common.explore,items:e.explore,pathname:u}),(0,t.jsx)(v,{label:n.common.discover,items:e.discover,pathname:u}),(0,t.jsx)(v,{label:n.common.professionals,items:e.professionals,pathname:u}),b.map(e=>(0,t.jsx)(y,{link:e,pathname:u},e.href+e.label))]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[e.showLanguageSwitcher&&(0,t.jsx)(f,{current:l}),e.showThemeToggle&&(0,t.jsx)(p,{labels:S}),(0,t.jsx)("span",{className:"mx-1 h-5 w-px bg-border"}),m?(0,t.jsx)(s.default,{href:e.openHref,className:"rounded-xl bg-primary px-5 py-2.5 text-sm font-semibold text-white shadow-2xl transition-all duration-300 hover:scale-[1.03] hover:bg-primary-hover",children:x}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.default,{href:e.loginHref,className:"rounded-lg px-3 py-2 text-sm font-semibold text-base-text transition-colors hover:text-primary",children:e.loginLabel}),(0,t.jsx)(s.default,{href:e.ctaHref,className:"rounded-xl bg-primary px-5 py-2.5 text-sm font-semibold text-white shadow-2xl transition-all duration-300 hover:scale-[1.03] hover:bg-primary-hover",children:n.common.joinFree})]})]})]}),(0,t.jsxs)("div",{className:"grid h-full grid-cols-[1fr_auto_1fr] items-center lg:hidden",children:[(0,t.jsx)("div",{className:"justify-self-start",children:(0,t.jsxs)("button",{type:"button","aria-label":n.common.menu,"aria-expanded":N,onClick:()=>C(e=>!e),className:"relative inline-flex size-10 items-center justify-center rounded-xl border border-border bg-surface-glass text-base-text transition-colors hover:bg-surface-elevated",children:[(0,t.jsx)("span",{className:"sr-only",children:n.common.menu}
16),(0,t.jsxs)("span",{"aria-hidden":!0,className:"relative block h-3.5 w-5",children:[(0,t.jsx)("span",{className:(0,c.cn)("absolute left-0 block h-0.5 w-5 rounded-full bg-current transition-all duration-300",N?"top-1.5 rotate-45":"top-0")}),(0,t.jsx)("span",{className:(0,c.cn)("absolute left-0 top-1.5 block h-0.5 w-5 rounded-full bg-current transition-all duration-200",N?"opacity-0":"opacity-100")}),(0,t.jsx)("span",{className:(0,c.cn)("absolute left-0 block h-0.5 w-5 rounded-full bg-current transition-all duration-300",N?"top-1.5 -rotate-45":"top-3")})]})]})}),(0,t.jsx)(i.default,{href:`/${l}`,siteName:e.siteName,src:e.logoUrl,className:"justify-self-center"}),(0,t.jsx)("div",{className:"justify-self-end",children:e.showThemeToggle&&(0,t.jsx)(p,{labels:S})})]})]}),N&&(0,t.jsx)(j,{data:e,dict:n,locale:l,themeLabels:S,authed:m,openLabel:x,onClose:()=>C(!1)})]})}],538179)},458694,e=>{"use strict";var t=e.i(827675),r=e.i(679724),s=e.i(423228),a=e.i(272064),n=e.i(639197);e.s(["default",0,function({registerHref:e,registerLabel:i,plansHref:l,plansLabel:o}){let c=(0,n.useControls)(),[d,u]=(0,r.useState)(!1),[f,m]=(0,r.useState)(!0);return((0,r.useEffect)(()=>{if("1"===sessionStorage.getItem("mytv-sticky-cta-dismissed"))return;m(!1);let e=()=>u(window.scrollY>480);return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),f)?null:(0,t.jsx)("div",{className:`pointer-events-none fixed inset-x-0 bottom-0 z-40 flex justify-center px-4 pb-4 lg:hidden transition-transform duration-300 motion-reduce:transition-none ${d?"translate-y-0":"translate-y-[150%]"}`,role:"region","aria-label":i,children:(0,t.jsxs)("div",{className:"pointer-events-auto flex max-w-[calc(100vw-2rem)] items-center gap-1.5 rounded-full border border-border bg-surface-elevated/95 p-1.5 pl-2.5 shadow-[var(--mytv-shadow-glow-red)] ring-1 ring-black/5",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"inline-flex size-8 shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-primary/25 to-primary/5 text-primary",children:(0,t.jsx)(a.Sparkles,{size:15})}),(0,t.jsxs)(s.default,{href:e,className:"inline-flex min-w-0 items-center gap-1.5 truncate rounded-xl bg-primary px-5 py-2.5 text-sm font-semibold text-white transition-colors hover:bg-primary-hover",children:[(0,t.jsx)("span",{className:"truncate",children:i}),(0,t.jsx)(a.ArrowRight,{size:15,className:"shrink-0"})]}),l&&o&&(0,t.jsx)(s.default,{href:l,className:"hidden items-center rounded-xl px-3 py-2.5 text-sm font-semibold text-base-text transition-colors hover:text-primary min-[420px]:inline-flex",children:o}),(0,t.jsx)("button",{type:"button",onClick:()=>{sessionStorage.setItem("mytv-sticky-cta-dismissed","1"),m(!0)},"aria-label":c.close,className:"inline-flex size-8 shrink-0 items-center justify-center rounded-full text-muted-text transition-colors hover:bg-surface hover:text-base-text",children:(0,t.jsx)(a.X,{size:16})})]})})}])},824814,e=>{"use strict";var t=e.i(679724),r=e.i(116970);async function s(e={}){let t={url:"/api/proxy/api/v2/feature-flags",headers:{}};if(!t)return null;try{let r=await fetch(t.url,{headers:{accept:"application/json",...t.headers},signal:AbortSignal.timeout(e.timeoutMs??4e3),...null!=e.revalidate?{next:{revalidate:e.revalidate}}:{cache:"no-store"}});if(!r.ok)return null;let s=await r.json();if(!s||"object"!=typeof s)return null;return s}catch{return null}}let a="subMaskedLast";e.s(["default",0,function({masked:e}){let n=(0,r.useRouter)(),i=(0,t.useRef)(e);return(0,t.useEffect)(()=>{i.current=e;try{localStorage.setItem(a,e?"1":"0")}catch{}},[e]),(0,t.useEffect)(()=>{let e=!0,t=setInterval(async()=>{let t,r=await s();if(!e||!r)return;let l=(t=r?.data?.find(e=>"subscription"===e.key),t?.enabled===!0);try{localStorage.setItem(a,l?"1":"0")}catch{}l!==i.current&&(i.current=l,n.refresh())},6e4);return()=>{e=!1,clearInterval(t)}},[n]),null}],824814)}]);

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.