1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5575],{64439:function(e,n,t){t.d(n,{I:function(){return b}});var l=t(74023),r=t(94970),a=t(90733),o=t(53883),s=t(72122),i=t(12173),c=t(97213);function d(e){let{isLanguageSelectionOpen:n,setIsLanguageSelectionOpen:t,isMainLogoInView:d,isSticky:u,logoVariant:x}=e,g=(0,a.MS)(),{groupedChannels:m}=(0,a.HA)(),{subDomainSubPath:p,firstPathHalfName:h}=(0,o.mX)((0,o.cG)(g)),f=null==m?void 0:m.find(e=>e.languageCode===h);return(null==f?void 0:f.children)?(0,l.jsxs)("div",{onClick:()=>t(e=>!e),className:(0,i.cn)("py-1.5 pe-2 gap-1 whitespace-nowrap flex-row items-center justify-center cursor-pointer group transition-all ease-out duration-120 sm:flex hidden z-10",{"me-[35px]":d&&!p}),children:[(0,l.jsxs)("div",{className:(0,i.cn)("font-body text-grey-13 text-base font-regular uppercase leading-4",{"text-grey-1":x===s.YY.Light}),children:[(0,l.jsxs)("span",{className:(0,i.cn)("text-grey-7",{"opacity-0":u}),children:[" ","|"," "]})," ",(0,l.jsx)(c.V,{children:g.name})]}),n?(0,l.jsx)(r.wy,{color:"currentColor",className:(0,i.cn)("group-hover:text-grey-13 text-grey-6",{"group-hover:text-grey-1":x===s.YY.Light})}):(0,l.jsx)(r.XC,{width:16,height:16,color:"currentColor",className:(0,i.cn)("group-hover:text-grey-13 text-grey-6",{"group-hover:text-grey-1":x===s.YY.Light})})]}):null}var u=t(52331),x=t(83641),g=t(9003),m=t(58845);function p(e){var n,t,d;let{isSticky:p,logoVariant:h}=e,f=(0,a.MS)(),{groupedChannels:v,channelsOriginMap:y}=(0,a.HA)(),{firstPathHalfName:b}=(0,o.mX)((0,o.cG)(f)),[j,w]=(0,x.useState)(!1),N=(0,g.U)(y),C=null==v?void 0:v.find(e=>e.languageCode===b),{currentChannel:k,worldChannel:L}=(0,a.ML)();return(null==C?void 0:C.children)?(0,l.jsxs)("div",{className:(0,u.Z)("flex-row rounded items-center justify-center max-h-10 cursor-pointer sm:hidden flex relative overflow-hidden"),children:[!j&&C&&(0,l.jsxs)("div",{onClick:()=>w(!0),className:(0,u.Z)("flex items-center justify-center py-1.5 pl-2 pr-1 rounded"),children:[(0,l.jsxs)("span",{className:(0,i.cn)("text-grey-13 font-body text-sm font-regular whitespace-nowrap uppercase leading-4 ",{"text-grey-13 sm:text-grey-1":h===s.YY.Light}),children:[(0,l.jsxs)("span",{className:(0,i.cn)("text-grey-7",{"sm:opacity-100 sm:w-auto opacity-0 max-w-[0px] max-h-[0px] sm:static absolute":p}),children:[" ","|"," "]})," ",(0,l.jsx)(c.V,{children:f.name})]}),(0,l.jsx)(r.XC,{width:16,height:16,color:"currentColor",className:"text-grey-13"})]}),j&&C&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"flex flex-row gap-2 items-center py-1.5 relative opacity-80 overflow-x-scroll scrollbar-none",children:null==C?void 0:null===(d=C.children)||void 0===d?void 0:null===(t=d.sort((e,n)=>(0,m.k)(e,n,f.name)))||void 0===t?void 0:null===(n=t.filter(e=>e.languageCode!==f.languageCode))||void 0===n?void 0:n.map((e,n)=>(0,l.jsx)("button",{className:"text-grey-13 font-body text-xs font-bold",onClick:()=>N(e,k||L),children:(0,l.jsx)(c.V,{children:e.name})},"".concat(e.name,"-").concat(n)))}),(0,l.jsx)("div",{className:"invisible",children:(0,l.jsx)(r.wy,{onClick:()=>w(!1),color:"#C2C3C3",className:"z-10 pointer-events-auto"})}),(0,l.jsx)("div",{className:"absolute end-0 w-24 h-full flex justify-end items-center pointer-events-none",children:(0,l.jsx)(r.wy,{onClick:()=>w(!1),color:"#C2C3C3",className:"z-10 pointer-events-auto"})})]})]}):null}var h=t(45450),f=t(73765),v=t(18806),y=t(12882);function b(e){let{pageTitle:n,wrapperClassName:t,ChannelLogo:c,isSticky:u,logoVariant:x,landing:g,newDesign:m=!1,svgClassName:b}=e,{isLanguageSelectionOpen:j,setIsLanguageSelectionOpen:w,isMenuOpen:N,isVisible:C,onMenuClick:k}=(0,v.X)(),{isMobile:L}=(0,h.B)(),M=(0,a.MS)(),{subDomainSubPath:H}=(0,o.mX)((0,o.cG)(M));return(0,l.jsxs)("div",{id:y.a4,className:(0,i.cn)("sm:min-w-fit w-fit sm:start-0 end-4 flex flex-row gap-2 lg:justify-center justify-start items-center py-2.5 xl:px-10 sm:ps-8 ps-4 pe-4 z-20 sm:rounded-none rounded sm:max-w-none max-w-[calc(100%-32px)] cursor-pointer transition-all duration-300","shadow-hamburgerMenu sm:shadow-none bg-grey-1 sm:bg-transparent roun
1ded-[3px]",{"lg:absolute sm:relative sm:bottom-[-1px] sm:top-[-1px] fixed bottom-16":!n&&!j&&!m,"sm:absolute sm:bottom-[-1px] sm:top-[-1px] fixed bottom-16":n,"sm:!relative !fixed sm:bottom-[-1px] bottom-16":j&&!m,"xl:pe-[5px] pe-0":C&&!H,"pe-4 gap-0":L&&N||u,"bottom-4":g,"bottom-4 sm:bottom-0 sm:p-0":m},t),children:[(0,l.jsx)("div",{onClick:()=>k(),className:(0,i.cn)("text-grey-11 w-8 h-8 flex items-center justify-center cursor-pointer z-[12]",{"sm:text-grey-1":x===s.YY.Light},b),children:N?(0,l.jsx)(r.Tw,{className:"cursor-pointer",width:18,height:18}):(0,l.jsx)(r.RY,{className:"cursor-pointer",width:32,height:32})}),g?null:(0,l.jsx)(f.LinkWithChannelLink,{href:"/",className:(0,i.cn)("flex items-center justify-center cursor-pointer max-w-40 max-h-10 font-body uppercase font-bold h-full group transition-all ease-out duration-120",{"sm:opacity-100 sm:w-auto opacity-0 max-w-[0px] max-h-[0px] sm:max-h-10 sm:static absolute":N||u}),children:c}),!m&&H&&(0,l.jsx)(d,{isLanguageSelectionOpen:j,setIsLanguageSelectionOpen:w,isMainLogoInView:C,isSticky:u,logoVariant:x}),!N&&H&&(0,l.jsx)(p,{isSticky:!!u,logoVariant:x})]})}},74322:function(e,n,t){t.d(n,{Q:function(){return b}});var l=t(74023),r=t(52331),a=t(61845);t(83641);var o=t(74618),s=t(53422),i=t(9003),c=t(90733),d=t(94970),u=t(757),x=t(68947),g=t(69234),m=t(12173),p=t(18806),h=t(31930),f=t(18460),v=t(58845),y=t(72122);function b(e){var n,t,b,j,w;let{pageTitle:N,titleClassName:C,parentTitle:k,menu:L,variant:M,iconColor:H,languageSelectionWrapperClassName:Y,className:S}=e,F=(0,c.MS)(),{groupedChannels:E,channelsOriginMap:T}=(0,c.HA)(),I=(0,i.U)(T),z=(0,s.cG)(F),{firstPathHalfName:A}=(0,s.mX)(z),X=null==E?void 0:E.find(e=>e.languageCode===A),{isLanguageSelectionOpen:V,setIsLanguageSelectionOpen:U}=(0,p.X)(),D=null==L?void 0:null===(n=L.primaryMenuItems)||void 0===n?void 0:n.map(e=>e),B=null==L?void 0:L.liveMenu,O=null==B?void 0:null===(t=B.menuItems)||void 0===t?void 0:t.map(e=>e),{currentChannel:P,worldChannel:_}=(0,c.ML)(),R=e=>{I(e,P||_),U(!1)};return V?(0,l.jsx)("div",{className:"flex flex-row sm:ms-10 ms-8 overflow-x-auto scrollbar-none text-nowrap",children:null==X?void 0:null===(w=X.children)||void 0===w?void 0:null===(j=w.sort((e,n)=>(0,v.k)(e,n,F.name)))||void 0===j?void 0:null===(b=j.filter(e=>e.languageCode!==F.languageCode))||void 0===b?void 0:b.map((e,n)=>(0,l.jsx)("button",{className:(0,m.cn)("text-grey-12 p-3 flex items-center justify-center font-body text-sm font-bold uppercase leading-4 cursor-pointer",Y),onClick:()=>R(e),children:e.name},"".concat(e.languageCode,"-").concat(n)))}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:(0,r.Z)("flex sm:gap-x-6 gap-x-4 text-nowrap xl:mx-8 mx-4 items-center w-full h-6",S,{"justify-center":N,"lg:justify-center justify-start overflow-x-auto scrollbar-none":!N}),children:N?(0,l.jsx)(o.P,{pageTitle:N,titleClassName:C,parentTitle:k}):(0,l.jsxs)(l.Fragment,{children:[null==D?void 0:D.map((e,n)=>{var t,r;return e.menuItems&&(null==e?void 0:null===(t=e.menuItems)||void 0===t?void 0:t.filter(h.zi).length)?(0,l.jsx)(f.Y,{Parent:(0,l.jsx)("span",{className:"cursor-pointer font-body text-sm font-bold leading-4",children:(0,l.jsx)(g.LocaleUppercase,{children:e.name})}),secondaryClassName:(0,m.cn)({"text-grey-1":M===y.YY.Light}),withHoverEffect:!0,children:null==e?void 0:null===(r=e.menuItems)||void 0===r?void 0:r.map(e=>(0,l.jsx)(u.A,{menu:e,children:(0,l.jsx)("div",{className:"bg-grey-1 hover:bg-grey-3 text-grey-12 rounded-custom text-sm leading-4.5 font-medium px-2 py-3",children:e.name})},e.id))},"".concat(e.id,"-").concat(n)):(0,l.jsx)(u.A,{menu:e,children:(0,l.jsx)("span",{id:"primary-menu-item",className:(0,m.cn)("text-grey-12 hover:text-primary-4 font-body text-sm font-bold leading-4 whitespace-nowrap",{"text-grey-1":M===y.YY.Light}),children:(0,l.jsx)(g.LocaleUppercase,{children:e.name})})},"".concat(e.id,"-").concat(n))}),(null==B?void 0:B.active)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"min-w-[1px] h-4 bg-grey-6"}),(0,l.jsxs)("div",{className:"flex flex-row gap-1.5 items-center",children:[(0,l.jsx)("div",{className:"rounded-full w-1.5 h-1.5 bg-[#FF3F3F]"}),(0,l.jsx)("div",{className:(0,r.Z)("text-[#FF3F3F] font-bold font-body text-sm leading-4"),children:(0,l.jsx)(g.LocaleUppercase,{children:B.label})})]})]}),(null==B?void 0:B.active)&&(null==O?void 0:O.map((e,n)=>(0,l.jsx)(u.A,{menu:e,children:(0,l.jsx)("span",{className:"flex flex-row gap-1.5 items-center text-grey-12 font-body text-sm leading-4",children:(0,l.jsx)(g.LocaleUppercase,{children:e.name})})},"".concat(e.id,"-").concat(n))))]})}),x.Y.aiSearch?(0,l.jsx)(a.default,{dir:"inherit",href:"/ai-search",className:(0,r.Z)("cursor-pointer xl:end-[57px] end-5 sm:flex hidden items-center justify-center lg:absolute p-2",{absolute:N}),children:(0,l.jsx)(d.W1,{className:null!=H?H:"text-grey-11"})}):null]})}}
1,2668:function(e,n,t){t.d(n,{V:function(){return s}});var l=t(74023),r=t(79132),a=t(96037),o=t(18806);let s=e=>{let{menu:n,sideMenu:t,sideMenuClassName:s,mobileSideMenuClassName:i}=e,{isMenuOpen:c,onMenuClick:d}=(0,o.X)();return(0,l.jsxs)(l.Fragment,{children:[c&&(0,l.jsx)(r.xc,{menu:t||n,onCloseMenu:d,sideMenuClassName:s}),c&&(0,l.jsx)(a.JH,{onCloseMenu:d,menu:t||n,className:i})]})}},18806:function(e,n,t){t.d(n,{X:function(){return c},p:function(){return i}});var l=t(74023),r=t(95488),a=t(83641),o=t(84358);let s=(0,a.createContext)({}),i=e=>{let{children:n}=e,[t,i]=(0,a.useState)(!1),[c,d]=(0,a.useState)(!1),u=(0,r.Z)({target:o.uM,threshold:0});return(0,l.jsx)(s.Provider,{value:{isMenuOpen:t,isLanguageSelectionOpen:c,setIsLanguageSelectionOpen:d,isVisible:u,onMenuClick:()=>{i(e=>!e)}},children:n})};function c(){return(0,a.useContext)(s)}},74618:function(e,n,t){t.d(n,{P:function(){return o}});var l=t(74023),r=t(12173),a=t(69234);function o(e){let{className:n,pageTitle:t,titleClassName:o,parentTitle:s,parentTitleClassName:i}=e;return(0,l.jsxs)("div",{className:(0,r.cn)("flex flex-col justify-center items-center",n),children:[s?(0,l.jsx)("p",{className:(0,r.cn)("font-body text-sm text-grey-8",i),children:(0,l.jsx)(a.LocaleUppercase,{children:s})}):null,(0,l.jsx)("div",{className:(0,r.cn)("text-opinion-gold font-primary xl:text-4.5xl md:text-4xl lg:text-3.5xl text-2xl leading-9 font-bold uppercase",o),children:(0,l.jsx)(a.LocaleUppercase,{children:t})})]})}t(83641)},72058:function(e,n,t){t.d(n,{r:function(){return g}});var l=t(74023),r=t(94970),a=t(90733),o=t(53883),s=t(72122),i=t(12173),c=t(9003),d=t(83641),u=t(97213),x=t(58845);function g(e){var n,t;let{isLanguageSelectionOpen:g,setIsLanguageSelectionOpen:m,isMainLogoInView:p,isSticky:h,logoVariant:f}=e,v=(0,a.MS)(),{groupedChannels:y,channelsOriginMap:b}=(0,a.HA)(),{subDomainSubPath:j,firstPathHalfName:w}=(0,o.mX)((0,o.cG)(v)),N=(0,c.U)(b),{currentChannel:C,worldChannel:k}=(0,a.ML)(),L=(0,d.useRef)(null),[M,H]=(0,d.useState)(!1),[Y,S]=(0,d.useState)(0),[F,E]=(0,d.useState)(0),T=()=>{H(!1)},I=e=>{N(e,C||k),m(!1)},z=null==y?void 0:y.find(e=>e.languageCode===w),A=null==y?void 0:y.find(e=>e.languageCode===w);return(null==z?void 0:z.children)?(0,l.jsxs)("div",{onClick:()=>m(e=>!e),className:(0,i.cn)("py-1.5 pe-2 gap-1 whitespace-nowrap grid-cols-[auto_auto_1fr] items-center justify-center cursor-pointer group transition-all ease-out duration-120 sm:grid hidden z-10",{"me-[35px]":p&&!j}),children:[(0,l.jsxs)("div",{className:(0,i.cn)("font-body text-grey-13 text-base font-regular uppercase leading-4",{"text-grey-1":f===s.YY.Light}),children:[(0,l.jsxs)("span",{className:(0,i.cn)("text-grey-7",{"opacity-0":h}),children:[" ","|"," "]})," ",(0,l.jsx)(u.V,{children:v.name})]}),g?(0,l.jsx)(r.wy,{color:"currentColor",className:(0,i.cn)("group-hover:text-grey-13 text-grey-6",{"group-hover:text-grey-1":f===s.YY.Light})}):(0,l.jsx)(r.XC,{width:16,height:16,color:"currentColor",className:(0,i.cn)("group-hover:text-grey-13 text-grey-6",{"group-hover:text-grey-1":f===s.YY.Light})}),g?(0,l.jsx)("div",{ref:L,className:(0,i.cn)("flex flex-row overflow-x-auto scrollbar-none bg-grey-1 md:bg-transparent select-none",M?"cursor-grabbing":"cursor-grab",{"bg-grey-13":f===s.YY.Light}),onMouseDown:e=>{L.current&&(H(!0),S(e.pageX-L.current.offsetLeft),E(L.current.scrollLeft))},onMouseMove:e=>{if(!M||!L.current)return;e.preventDefault();let n=e.pageX-L.current.offsetLeft;L.current.scrollLeft=F-(n-Y)*2},onMouseUp:T,onMouseLeave:T,children:null==A?void 0:null===(t=A.children)||void 0===t?void 0:null===(n=t.sort((e,n)=>(0,x.k)(e,n,v.name)))||void 0===n?void 0:n.filter(e=>(0,o.cG)(e)!==(0,o.cG)(v)).map((e,n)=>(0,l.jsx)("button",{className:(0,i.cn)("text-grey-12 p-3 flex items-center justify-center font-body text-sm font-bold uppercase leading-4 cursor-pointer",{"text-grey-6 hover:text-grey-1":f===s.YY.Light}),onClick:()=>I(e),children:(0,l.jsx)(u.V,{children:e.name})},n))}):(0,l.jsx)("div",{})]}):null}},55575:function(e,n,t){t.d(n,{E:function(){return T}});
1var l=t(74023),r=t(72122),a=t(40015),o=t(90733),s=t(83641),i=t(12173),c=t(45450),d=t(84358),u=t(18806),x=t(74922),g=t(74322);let m=e=>{let{menu:n,pageTitle:t,parentTitle:a,titleClassName:o,languageSelectionWrapperClassName:s,isSecondary:c,stickyClassName:m,className:p,variant:h,nonSticky:f}=e;return(0,l.jsx)("div",{id:d.zX,className:(0,i.cn)("sticky bg-grey-2 z-[10] w-full items-center flex flex-row border-y border-y-[#E9E9E9]","xl:h-header2xlH lg:h-headerLgH h-headerDefaultH","xl:top-globalTopHeaderXlH lg:top-globalTopHeaderLgH top-globalTopHeaderH",m,{"bg-grey-13 !border-y-[#484848]":h===r.YY.Light,"!static":f}),children:(0,l.jsx)(u.p,{children:c?(0,l.jsx)(x.SecondRowMenuWrapper,{menu:n,withMarginBottom:!1,className:(0,i.cn)("block !top-0 border-none",p,{"bg-grey-13":h===r.YY.Light}),theme:h===r.YY.Light?"dark":"light"}):(0,l.jsx)(g.Q,{pageTitle:t,parentTitle:a,languageSelectionWrapperClassName:s,menu:n,variant:h,titleClassName:o,className:p,iconColor:h===r.YY.Light?"text-grey-2":void 0})})})};var p=t(64439),h=t(2668),f=t(61845),v=t(94970),y=t(72058),b=t(53883),j=t(31652),w=t(93420),N=t(22188),C=t(72862),k=t(34360),L=t(43388),M=t(93882);function H(e){var n;let{className:t,liveClassName:r}=e,a=(0,j.useTranslations)(),{setStaticData:o,setPaused:s}=(0,N.qC)(),{playerRef:c}=(0,N.qC)(),{channel:d,liveStream:u,program:x,epgRadio:g}=(0,C.j)();return(null==d?void 0:null===(n=d.streamingOptions)||void 0===n?void 0:n.active)?(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("button",{className:(0,i.cn)("flex gap-2 !text-xxs2 rounded-lg leading-normal font-bold items-center text-grey-1 bg-categories-live font-body leading-4 px-2 py-[6px]",r),onClick:()=>{var e,n,t,l,r,a,i,m,p;if((0,L.R)(M.w,"1"),null==c?void 0:c.current){c.current.requestFullscreen(),c.current.on("fullscreenchange",(0,k.v)(c));return}let h=document.getElementById(w.ie);if(h){h.click();return}let f=document.getElementById(w.E5);if(f){let e=f.querySelector("svg");if(e){let n=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});e.dispatchEvent(n)}else{let e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});f.dispatchEvent(e)}return}o({videoSrc:null==u?void 0:u.streamUrl,title:null!==(a=null!==(r=null==x?void 0:x.programName)&&void 0!==r?r:null==g?void 0:null===(e=g.now_playing.song)||void 0===e?void 0:e.custom_fields.title)&&void 0!==a?a:d.name,description:null!==(m=null!==(i=null==x?void 0:x.synopsis)&&void 0!==i?i:null==g?void 0:null===(n=g.now_playing.song)||void 0===n?void 0:n.custom_fields.description)&&void 0!==m?m:d.name,background:null!==(p=null==x?void 0:null===(l=x.programMedias)||void 0===l?void 0:null===(t=l[0])||void 0===t?void 0:t.link)&&void 0!==p?p:"",closed:!1}
1),setTimeout(()=>{s(!1)},500)},children:[(0,l.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("circle",{cx:"6",cy:"6",r:"6",fill:"white"})}),a("live-tv")]})}):null}var Y=t(73765);let S=e=>{var n;let{liveClassName:t,variant:a}=e,s=(0,o.MS)(),c=(0,j.useTranslations)();if(!s)return null;let d=window.location.host.includes("trtglobal.io")||window.location.host.includes("localhost");return(0,l.jsxs)(l.Fragment,{children:[d?(0,l.jsxs)(Y.LinkWithChannelLink,{href:"/video/tv/vod",className:(0,i.cn)("flex uppercase gap-1 text-xxs2 rounded-lg leading-normal hover:opacity-80 font-bold items-center text-grey-13 font-body text-sm leading-4 py-[6px]",{"text-grey-2":a===r.YY.Light}),children:[(0,l.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M6.66699 5.68295V14.3163C6.66699 14.9746 7.39199 15.3746 7.95033 15.0163L14.7337 10.6996C14.8524 10.6245 14.9502 10.5205 15.018 10.3974C15.0858 10.2742 15.1214 10.136 15.1214 9.99545C15.1214 9.8549 15.0858 9.71664 15.018 9.59353C14.9502 9.47041 14.8524 9.36644 14.7337 9.29128L7.95033 4.98295C7.82463 4.90165 7.67933 4.85579 7.52974 4.85019C7.38015 4.8446 7.23183 4.87948 7.10041 4.95116C6.969 5.02284 6.85937 5.12866 6.78308 5.25746C6.7068 5.38626 6.66669 5.53325 6.66699 5.68295Z",fill:a===r.YY.Light?"#FFFFFF":"#0C0E0E"})}),c("watch")]}):null,(null==s?void 0:null===(n=s.streamingOptions)||void 0===n?void 0:n.liveStream)?(0,l.jsx)(H,{liveClassName:t}):null]})};var F=t(2889);let E=e=>{let{menu:n,sideMenu:t,pageTitle:a,parentTitle:s,hamburgerMenuWrapperClassName:c,stickyClassName:x,logoVariant:g,variant:m,ChannelLogo:j,isSticky:w,landing:N,newDesign:C=!1}=e,{isLanguageSelectionOpen:k,setIsLanguageSelectionOpen:L,isVisible:M}=(0,u.X)(),H=(0,o.MS)(),{channelsOriginMap:Y}=(0,o.HA)(),{subDomainSubPath:E}=(0,b.mX)((0,b.cG)(H));return(0,l.jsx)("div",{className:(0,i.cn)("w-full bg-grey-2 sticky top-0 z-[11] w-full items-center justify-center flex flex-row border-y border-y-[#E9E9E9]","xl:h-globalTopHeaderXlH lg:h-globalTopHeaderLgH h-globalTopHeaderH",x,{"bg-grey-13 border-y-[1]":m===r.YY.Light}),style:m===r.YY.Light?{borderColor:"#303232"}:{},children:(0,l.jsx)("div",{id:d.zX,className:(0,i.cn)("section-container"),children:(0,l.jsxs)("div",{className:"w-full flex justify-between items-center p",children:[(0,l.jsxs)("div",{className:"flex gap-4 items-center justify-center",children:[(0,l.jsx)(p.I,{pageTitle:a,parentTitle:s,wrapperClassName:(0,i.cn)(c,"!fixed sm:!relative !px-4 sm:!px-0 py-3 rounded-[4px]"),ChannelLogo:j,isSticky:w,logoVariant:g,landing:N,newDesign:C}),(0,l.jsx)(h.V,{menu:n,sideMenu:t,sideMenuClassName:"absolute left-0 xl:!top-mainHeaderXl lg:!top-mainHeaderLg !top-mainHeader pb-10",mobileSideMenuClassName:"xl:!top-mainHeaderXl lg:!top-mainHeaderLg !top-mainHeader pb-20"}),(0,l.jsx)(f.default,{href:"/",children:j}),E&&(0,l.jsx)(y.r,{isLanguageSelectionOpen:k,setIsLanguageSelectionOpen:L,isMainLogoInView:M,isSticky:w,logoVariant:g})]}),(0,l.jsxs)("div",{className:"flex gap-6",children:[(0,l.jsx)(S,{variant:m}),(0,l.jsx)(f.default,{href:(0,F.mi)(Y,"/search",H),className:(0,i.cn)("cursor-pointer flex items-center justify-center opacity-50 hover:opacity-100"),children:(0,l.jsx)(v.W1,{className:(0,i.cn)({"text-grey-2":m===r.YY.Light})})})]})]})})})};function T(e){let{logoVariant:n,nonSticky:t,...d}=e,x=(0,o.MS)(),{isMobile:g}=(0,c.B)(),p=(0,s.useMemo)(()=>g&&d.variant!==r.YY.Light?r.YY.Dark:n,[g,d.variant,n]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.p,{children:(0,l.jsx)(E,{...d,logoVariant:p,ChannelLogo:(0,l.jsx)(a.n,{languageName:x.name,languageCode:x.languageCode,className:(0,i.cn)("transform scale-110"),logoVariant:p}),landing:!0,newDesign:!0})}),(0,l.jsx)(m,{...d,nonSticky:t,className:"section-container !mx-auto",logoVariant:p,ChannelLogo:(0,l.jsx)(a.n,{languageName:x.name,languageCode:x.languageCode,className:(0,i.cn)("w-fit sm:w-full text-white h-[20px] [&_svg]:w-[70%] [&_svg]:h-full w-auto"),logoVariant:p})})]})}},18460:function(e,n,t){t.d(n,{Y:function(){return c}});
1var l=t(74023),r=t(45450),a=t(36754),o=t(69577),s=t(83641),i=t(12173);let c=e=>{let{Parent:n,children:t,secondaryClassName:c,withHoverEffect:d}=e,{isMobile:u}=(0,r.B)(),[x,g]=(0,s.useState)(!1);return(0,l.jsx)(a.Provider,{delayDuration:0,skipDelayDuration:500,children:(0,l.jsxs)(a.Root,{open:x,onOpenChange:g,children:[(0,l.jsx)(a.Trigger,{onMouseEnter:()=>g(!0),onFocus:()=>g(!0),onBlur:()=>g(!1),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&g(!x)},onKeyUp:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),e.stopPropagation())},asChild:!0,onClick:()=>{g(!x)},children:(0,l.jsxs)("div",{onClick:e=>{u?g(!x):(e.stopPropagation(),e.preventDefault())},className:(0,i.cn)("flex items-center gap-x-1",c,{"text-grey-11 data-[state=delayed-open]:!text-primary-4 data-[state=instant-open]:!text-primary-4 data-[state=open]:!text-primary-4 hover:text-primary-4 group-hover:text-primary-4 select-none":!c," data-[state=delayed-open]:!text-primary-4 data-[state=instant-open]:!text-primary-4 data-[state=open]:!text-primary-4 hover:text-primary-4 group-hover:text-primary-4":d}),children:[n,(0,l.jsx)(o.Z,{className:"w-6 h-6"})]})}),(0,l.jsx)(a.Portal,{children:(0,l.jsx)(a.Content,{sideOffset:8,side:"bottom",align:"start",style:{filter:"drop-shadow(0 0 9.4px rgba(0, 0, 0, 0.10))"},className:(0,i.cn)("w-52 relative z-[100] max-w-[150px] bg-white p-5 gap-3 rounded-lg"),children:t})})]})})}},74922:function(e,n,t){t.r(n),t.d(n,{SecondRowMenuWrapper:function(){return g}});var l=t(74023),r=t(12173),a=t(84358),o=t(31930),s=t(18460),i=t(757),c=t(69234),d=t(97769),u=t(90733),x=t(53883);function g(e){let{menu:n,className:t,withMarginBottom:g=!0,itemsWrapperClassName:m,theme:p="light",...h}=e,f=(0,o.A$)(n),v=(0,d.usePathname)(),y=(0,u.MS)(),{containerClassname:b}={light:{containerClassname:"bg-grey-2 border-b-grey-4 border-t-grey-4"},dark:{containerClassname:"bg-grey-13 border-b-grey-4"}}[p];return(0,l.jsx)(l.Fragment,{children:f&&f.length>0&&(0,l.jsx)("div",{className:(0,r.cn)("w-full flex sticky xl:top-header2xlH lg:top-headerLgH top-headerDefaultH z-[10] translate-y-[-1px] lg:justify-center justify-start items-center scrollbar-none overflow-scroll","border-b border-t-2",t,g?"mb-8 lg:mb-10 xl:mb-12 xl:mb-16":"",b),id:a.cc,...h,children:(0,l.jsx)("ul",{className:(0,r.cn)('px-5 m-auto w-max flex overflow-x-auto gap-3.5 py-1.5 scrollbar-none [html[lang="ur"]_&]:font-bold items-center',m),children:f.map((e,n)=>{if(e.menuItems&&e.menuItems.filter(o.zi).length>0){var t;return(0,l.jsx)(s.Y,{secondaryClassName:(0,r.cn)({"text-grey-7 data-[state=delayed-open]:!text-grey-7 data-[state=instant-open]:!text-grey-7 data-[state=open]:!text-grey-7 hover:text-grey-7 group-hover:text-grey-7 select-none":"light"===p,"text-grey-1 data-[state=delayed-open]:!text-grey-1 data-[state=instant-open]:!text-grey-1 data-[state=open]:!text-grey-1 hover:text-grey-1 group-hover:text-grey-1 select-none":"dark"===p}),Parent:(0,l.jsxs)("span",{className:"flex justify-center items-center gap-3",children:[n>0&&(0,l.jsx)("span",{className:(0,r.cn)("w-1 h-1 rounded-full my-3.5",{"bg-grey-7":"light"===p,"bg-grey-1":"dark"===p})}),(0,l.jsx)("span",{className:(0,r.cn)("font-body text-sm leading-8 article-hover-effect whitespace-nowrap",{"text-grey-10":"light"===p,"text-grey-1":"dark"===p}),children:(0,l.jsx)(c.LocaleUppercase,{children:e.name||e.title})})]}),children:null===(t=e.menuItems)||void 0===t?void 0:t.map(e=>(0,l.jsx)(i.A,{menu:e,children:(0,l.jsx)("div",{className:(0,r.cn)("text-sm leading-4.5 font-medium px-2 py-3 rounded-custom",{"bg-grey-1 hover:bg-grey-3 text-grey-12":"light"===p,"bg-grey-13 hover:bg-grey-11 text-grey-1":"dark"===p}),children:e.name})},e.id))},e.id)}let a="/".concat((0,x.cG)(y)).concat((0,o.W6)(e))===v;return(0,l.jsx)(i.A,{menu:e,variant:"secondary",disabled:a,children:(0,l.jsxs)("span",{className:"flex justify-center items-center gap-3",children:[n>0&&(0,l.jsx)("span",{className:(0,r.cn)("w-1 h-1 rounded-full my-3.5",{"bg-grey-7":"light"===p,"bg-grey-1":"dark"===p})}),(0,l.jsx)("span",{className:(0,r.cn)("font-body text-sm leading-8 article-hover-effect",{"text-grey-10":"light"===p,"text-grey-1":"dark"===p}),children:(0,l.jsx)("span",{className:(0,r.cn)("opacity-85 whitespace-nowrap",{"underline opacity-85":a}),children:(0,l.jsx)(c.LocaleUppercase,{children:e.name||e.title})})})]})},e.id)})})})})}},43755:function(e,n,t){t.r(n),t.d(n,{default:function(){return c}});
1var l=t(74023),r=t(83641),a=t(94970),o=t(31652),s=t(12173),i=t(73765);function c(e){let{onCloseMenu:n,parentClassName:t,onInputHover:c}=e,d=(0,o.useTranslations)(""),[u,x]=(0,r.useState)(""),g=(0,i.useGetChannelLink)(),m=()=>{window.location.href="".concat(g("/search?q=".concat(u))),null==n||n()},p=e=>{"Enter"===e&&""!==u.trim()&&m()};return(0,l.jsxs)("div",{className:(0,s.cn)("px-4 py-6 flex flex-row w-full bg-grey-2",t),children:[(0,l.jsx)("input",{onKeyDown:e=>p(e.key),onChange:e=>x(e.target.value),onMouseEnter:c,value:u,className:"h-12 px-4 w-full bg-grey-1 border border-grey-5 text-base font-body text-grey-8 leading-normal outline-none",placeholder:d("search-placeholder")}),(0,l.jsx)("div",{onClick:""===u?void 0:m,className:(0,s.cn)("p-2 flex items-center justify-center min-w-12 h-12",""===u.trim()?"bg-primary-2 !cursor-default":"bg-primary-2 hover:bg-primary-1 active:bg-primary-2 cursor-pointer"),children:(0,l.jsx)(a.W1,{color:"#FFFFFF"})})]})}},24119:function(e,n,t){t.d(n,{E:function(){return l}});let l={name:"trt-global-network"}},79132:function(e,n,t){t.d(n,{xc:function(){return N}});var l,r=t(74023),a=t(83641),o=t(757),s=t(12173);function i(e){let{menuItems:n,onCloseMenu:t,firstMenuItem:l=!1}=e,a=null==n?void 0:n.map(e=>e);return(0,r.jsx)("div",{dir:"inherit",className:(0,s.cn)("ps-4 flex transition-all opacity-0 invisible ease-out duration-160 delay-480 group-hover:opacity-100 group-hover:visible absolute start-full",{"mt-10":l}),children:(0,r.jsx)("div",{className:"flex gap-4 w-[332px] p-4 flex-col bg-grey-3",children:null==a?void 0:a.map(e=>(0,r.jsx)(o.A,{menu:e,children:(0,r.jsx)("div",{className:"bg-grey-1 hover:bg-grey-2 hover:text-grey-13 text-grey-8 px-4 py-3",onClick:t,children:e.name})},e.id))})})}var c=t(90733),d=t(36754),u=t(9003),x=t(72122),g=t(36294),m=t.n(g),p=t(43755),h=t(31930),f=t(94970),v=t(31652),y=t(24119);let b=e=>{let{name:n,hasSubmenu:t,isOpen:l,className:a,children:o,...i}=e,c=(0,v.useTranslations)(),d="trt-global-network"===n;return(0,r.jsxs)("div",{className:(0,s.cn)("group hover:bg-grey-2 hover:text-grey-13 cursor-pointer relative pl-8 pr-4 py-4 text-grey-8 font-body text-base leading-normal flex flex-row items-center justify-between last:mb-6",a,{"bg-grey-3 hover:bg-grey-3 hover:scale-105 transition-all duration-300 text-grey-13":d}),onClick:e=>{e.preventDefault()},...i,children:[d&&(0,r.jsx)(f.VD,{color:"#000000"}),(0,r.jsx)("div",{className:(0,s.cn)("w-full",{"ps-2":d}),children:d?c(y.E.name):n}),o||t?(0,r.jsx)(f.XC,{width:"28",className:(0,s.cn)("origin-center hover:scale-105 rtl:rotate-180",{"rotate-180 rtl:rotate-0":l})}):null,(0,r.jsx)("div",{dir:"inherit",className:(0,s.cn)("pl-2 sm:group-hover:flex hidden z-20 absolute start-full pb-10",{flex:l}),children:!d&&(0,r.jsx)(f.OW,{color:"#F1F1F1"})}),o]})};(l||(l={})).Channel="channel";let j=e=>{let{onCloseMenu:n,className:t}=e;return(0,r.jsx)("div",{dir:"inherit",onClick:n,style:{backgroundColor:"rgba(0, 0, 0, 0.16)"},className:(0,s.cn)("w-full absolute h-screen z-[20] bottom-0 start-0 end-0 !top-0 sm:block hidden",t)})},w=e=>{let{children:n,className:t,...l}=e;return(0,r.jsx)("div",{className:(0,s.cn)("sm:w-sidebarWidth w-full relative z-[22]",t),...l,children:n})};function N(e){var n,t;let{onCloseMenu:l,menu:c,isMainFeaturesLayout:d,isArticlePage:u,noChannelList:x,sideMenuClassName:g}=e,m=[...(null==c?void 0:null===(n=c.primaryMenuItems)||void 0===n?void 0:n.map(e=>e))||[],...(null==c?void 0:null===(t=c.secondaryMenuItems)||void 0===t?void 0:t.map(e=>e))||[]],[f,v]=(0,a.useState)(void 0),N=(0,a.useRef)(),C=(0,a.useCallback)((e,n)=>()=>{if(N.current&&clearTimeout(N.current),n){N.current=setTimeout(()=>{v(e)},Math.min(n,300));return}v(e)},[]);return(0,a.useEffect)(()=>()=>{N.current&&clearTimeout(N.current)},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:(0,s.cn)("w-full h-full min-h-screen absolute start-0 z-[22] sm:flex flex-col mt-[-2px] hidden",{"sm:top-headerDefaultH lg:top-headerLgH xl:top-header2xlH":!d&&!u,"sm:top-[84px] top-20":d,"xl:top-globalTopHeaderXlH lg:top-globalTopHeaderLgH top-globalTopHeaderH":u},g),children:(0,r.jsxs)("div",{className:"w-full overflow-y-scroll scrollbar-none",children:[(0,r.jsx)(w,{onMouseLeave:C(void 0,300),children:(0,r.jsx)(p.default,{onCloseMenu:l,onInputHover:C(void 0,300)})}),(0,r.jsx)(j,{onCloseMenu:l,className:(0,s.cn)({"sm:top-[84px] top-20":d,isArticlePage:u})}),(0,r.jsx)("div",{className:"hidden sm:block fixed sm:w-sidebarWidth w-full bg-white h-screen z-[21]"}),(0,r.jsxs)(w,{className:"grid bg-white scrollbar-none pb-[150px]",onMouseLeave:()=>C(void 0),children:[(0,r.jsx)(b,{...y.E,onMouseEnter:C("channel"),hasSubmenu:!0,isOpen:"channel"===f}),null==m?void 0:m.map((e,n)=>{var t,l;return e.menuItems&&(null==e?void 0:null===(t=e.menuItems)||void 0===t?void 0:t.filter(h.zi).length)&&(null==e?void 0:null===(l=e.menuItems)||void 0===l?void 0:l.length)>0?(0,r.jsx)(b,{onMouseEnter:C(void 0),name:e.name,children:(0,r.jsx)(i,{onCloseMenu:C(void 0),menuItems:null==e?void 0:e.menuItems,firstMenuItem:0===n})},"".concat(e.id,"-").concat(n)):(0,r.jsx)(o.A,{menu:e,sideMenu:!0,children:(0,r.jsx)("div",{onMouseEnter:C(void 0,300),className:"hover:bg-grey-2 hover:text-grey-13 pl-8 pr-4 py-4 text-grey-8 font-body text-base leading-normal",children:e.name})},"".concat(e.id,"-").concat(n))})]})]})}),!x&&"channel"===f&&(0,r.jsx)("div",{className:(0,s.cn)("absolute mt-[-2px] top-headerDefaultH lg:top-headerLgH xl:top-header2xlH w-[calc(100vw-136px)] md:w-[calc(100vw-388px)] h-screen bg-grey-3 start-[136px] md:start-sidebarWidth z-[30]",{"sm:!top-[84px] !top-20":d,"xl:top-globalTopHeaderXlH lg:top-globalTopHeaderLgH top-globalTopHeaderH":u},g),children:(0,r.jsx)(F,{handleMouseEnter:C,onCloseMenu:l})})]})}var C=t(84358),k=t(40015),L=t(72542),M=t(97213),H=t(58845),Y=t(2889),S=t(61845);let F=(0,a.forwardRef)((e,n)=>{let{onCloseMenu:t,handleMouseEnter:o,channelsWrapperClassName:i,mainWrapperClassName:g,currentChannel:p}=e,h=(0,v.useTranslations)(""),{groupedChannels:f,channels:y,channelsOriginMap:b}
1=(0,c.HA)(),j=(0,u.U)(b),[w,N]=(0,a.useState)(""),[F,E]=(0,a.useState)([]),T=(0,a.useRef)(null),I=(0,a.useMemo)(()=>(0,L.RW)(y),[y]);(0,a.useEffect)(()=>{T.current&&T.current.focus()},[]);let z=e=>{j(e,p),null==t||t()},A=e=>{if(N(e),!e){E([]);return}let n=(0,L.Z)(e);E((0,L.Lr)(I,n)||[])},X=(0,a.useMemo)(()=>w?(0,L.Yq)(F):f,[w,F,f]);return(0,r.jsxs)("div",{ref:n,dir:"inherit",onMouseLeave:null==o?void 0:o(void 0),onMouseEnter:null==o?void 0:o(l.Channel),className:(0,s.cn)("absolute hidden sm:block start-0 bg-grey-3 top-0 z-[30] h-full w-full p-10 pb-15 overflow-scroll",g),children:[(0,r.jsx)("div",{className:"mb-7 w-full",children:(0,r.jsx)("input",{ref:T,type:"text",onChange:e=>A(e.target.value),value:w,autoFocus:!0,placeholder:h("channel-search-placeholder"),className:"bg-transparent w-full border-b border-grey-9 outline-none text-black"})}),(null==X?void 0:X.length)>0&&(0,r.jsx)("div",{className:(0,s.cn)("rounded-custom_4 gap-2.5 grid xl:grid-cols-5 lg:grid-cols-3 grid-cols-2 pb-10",i),children:null==X?void 0:X.map(e=>{var n,t,l,a;let o=null===(t=e.children)||void 0===t?void 0:null===(n=t.map(e=>e))||void 0===n?void 0:n.sort((n,t)=>(0,H.k)(n,t,e.name));return(0,r.jsx)(d.Provider,{delayDuration:0,children:(0,r.jsxs)(d.Root,{children:[(0,r.jsx)(d.Trigger,{asChild:!0,children:(0,r.jsx)("button",{onClick:()=>z(e),className:(0,s.cn)("bg-white group/image w-full col-span-1 rounded-custom h-[80px] px-6 flex items-center justify-center text-xl font-body uppercase font-bold text-[#4F5657]",C.Mv,m().dynamicChannelLogoFilterEffect),children:(0,r.jsx)(k.n,{languageName:e.name,languageCode:e.languageCode,src:null===(l=e.websiteLogo)||void 0===l?void 0:l.originalUrl,className:"px-2"})})}),(null==o?void 0:o.length)?(0,r.jsx)(d.Content,{sideOffset:5,style:{zIndex:99,marginTop:-90},side:"bottom",children:(0,r.jsxs)("div",{className:"flex flex-col bg-grey-13 h-[168px] rounded-custom w-[320px] py-4 px-4 mb-2 justify-center items-center text-xl font-body uppercase font-bold text-white",children:[(0,r.jsx)(S.default,{href:(0,Y.mi)(b,"/",e),children:(0,r.jsx)(k.n,{languageName:e.name,languageCode:e.languageCode,logoVariant:x.YY.Light,className:"mb-2 px-2",src:null===(a=e.websiteLogo)||void 0===a?void 0:a.originalUrl})}),(0,r.jsx)("div",{className:"h-[1px] w-full bg-grey-8 mb-2"}),(0,r.jsx)("div",{className:"grid grid-cols-2 gap-[10px]",children:null==o?void 0:o.map((n,t)=>(0,r.jsx)("button",{onClick:()=>z(n),className:"px-2 py-1 font-base-notosans text-sm leading-4 font-medium uppercase text-grey-1 hover:text-grey-8",children:(0,r.jsx)(M.V,{children:n.name})},"".concat(e.languageCode,"-").concat(t)))})]})}):null]})},e.languageCode)})}),(null==X?void 0:X.length)===0&&(0,r.jsx)("div",{className:"w-full text-grey-12 font-body text-xl",children:"No results found. Please try searching with a different channel name."})]})})},96731:function(e,n,t){t.d(n,{b:function(){return s}});var l=t(74023),r=t(83641),a=t(94970),o=t(96037);function s(e){let{title:n,listType:t,onCloseMenu:s,menuItems:i}=e,c=null==i?void 0:i.map(e=>e),[d,u]=(0,r.useState)(!1);return(0,l.jsxs)("div",{className:"flex flex-col w-full",children:[(0,l.jsxs)("div",{className:"flex flex-row items-center justify-between w-full cursor-pointer py-4 px-4",onClick:()=>{u(e=>!e)},children:[(0,l.jsx)("div",{className:"text-grey-8 font-body text-base leading-normal",children:n}),d?(0,l.jsx)(a.c5,{color:"#303232"}):(0,l.jsx)(a.Bl,{color:"#303232"})]}),d&&(0,l.jsxs)(l.Fragment,{children:["list"===t&&(0,l.jsx)(o.ej,{menuItems:c,onCloseMenu:s}),"channel"===t&&(0,l.jsx)(o.f1,{onCloseMenu:s})]})]})}},79522:function(e,n,t){t.d(n,{J:function(){return d}});var l=t(74023),r=t(43755),a=t(96731),o=t(24119),s=t(31652),i=t(757),c=t(12173);function d(e){var n,t;let{menu:d,noChannelList:u,onCloseMenu:x,className:g,wrapperClassName:m}=e,p=(0,s.useTranslations)(),h=[...(null==d?void 0:null===(n=d.primaryMenuItems)||void 0===n?void 0:n.map(e=>e))||[],...(null==d?void 0:null===(t=d.secondaryMenuItems)||void 0===t?void 0:t.map(e=>e))||[]];return(0,l.jsxs)("div",{className:(0,c.cn)("w-full pb-6 absolute xl:top-header2xlH lg:top-headerLgH top-headerDefaultH h-full bg-grey-2 z-[4] left-0 min-h-screen sm:hidden flex flex-col",g),children:[(0,l.jsx)(r.default,{onCloseMenu:x}
1),(0,l.jsxs)("div",{className:(0,c.cn)("flex flex-col bg-white h-full overflow-y-scroll scrollbar-none pb-15",m),children:[u?null:(0,l.jsx)(a.b,{onCloseMenu:x,listType:"channel",title:p(o.E.name)}),null==h?void 0:h.map((e,n)=>{var t;return e.menuItems&&(null===(t=e.menuItems)||void 0===t?void 0:t.length)>0?(0,l.jsx)(a.b,{onCloseMenu:x,listType:"list",menuItems:e.menuItems,title:e.name},"".concat(e.id,"-").concat(n)):(0,l.jsx)(i.A,{menu:e,sideMenu:!0,children:(0,l.jsx)("div",{className:"flex flex-col justify-between text-grey-8 font-body text-base leading-normal py-4 px-4",children:e.name})},"".concat("".concat(e.id,"-").concat(n)))})]})]})}},96037:function(e,n,t){t.d(n,{f1:function(){return y},bn:function(){return b.b},JH:function(){return j.J},ej:function(){return C}});var l=t(74023),r=t(83641),a=t(90733),o=t(52331),s=t(36754),i=t(9003),c=t(72122),d=t(31652),u=t(12173),x=t(84358),g=t(40015),m=t(72542),p=t(97213),h=t(58845),f=t(61845),v=t(2889);function y(e){let{onCloseMenu:n,mainWrapperClassName:t,currentChannel:y}=e,b=(0,d.useTranslations)(""),{groupedChannels:j,channels:w,channelsOriginMap:N}=(0,a.HA)(),C=(0,r.useMemo)(()=>(0,m.RW)(w),[w]),[k,L]=(0,r.useState)(),M=(0,i.U)(N),[H,Y]=(0,r.useState)(""),[S,F]=(0,r.useState)([]),E=e=>{if(Y(e),!e){F([]);return}let n=(0,m.Z)(e);F((0,m.Lr)(C,n)||[])},T=e=>{M(e,y),null==n||n()},I=(0,r.useMemo)(()=>H?(0,m.Yq)(S):j,[H,S,j]);return(0,l.jsxs)("div",{className:(0,u.cn)("p-6 sm:pb-6 pb-15 rounded-custom_4 overflow-y-scroll bg-grey-3 gap-2.5 grid grid-cols-2",t),children:[(0,l.jsx)("div",{className:"mb-4 w-full col-span-full mt-3",children:(0,l.jsx)("input",{type:"text",onChange:e=>E(e.target.value),value:H,autoFocus:!0,placeholder:b("channel-search-placeholder"),className:"bg-transparent w-full border-b border-grey-9 outline-none text-grey-7 font-body text-lg leading-8 ps-4 pb-4"})}),null==I?void 0:I.map(e=>{var n,t,r,a;let i=null===(t=e.children)||void 0===t?void 0:null===(n=t.map(e=>e))||void 0===n?void 0:n.sort((n,t)=>(0,h.k)(n,t,e.name)),d=(null==k?void 0:k.languageCode)===e.languageCode;return(0,l.jsx)(s.Provider,{delayDuration:0,children:(0,l.jsxs)(s.Root,{open:d,onOpenChange:()=>L(e),children:[(0,l.jsx)(s.Trigger,{asChild:!0,children:(0,l.jsx)("button",{onClick:(null==i?void 0:i.length)?()=>L(e):()=>T(e),className:(0,u.cn)("bg-white px-6 flex items-center justify-center h-[58px] rounded-custom text-xl font-body uppercase font-bold text-[#4F5657] hover:text-white",x.Mv),children:(0,l.jsx)(g.n,{languageName:e.name,languageCode:e.languageCode,src:null===(r=e.websiteLogo)||void 0===r?void 0:r.originalUrl})},e.languageCode)}),(null==i?void 0:i.length)?(0,l.jsx)(s.Content,{sideOffset:5,style:{zIndex:99,margin:20,marginTop:-40},side:"bottom",children:(0,l.jsxs)("div",{className:(0,o.Z)("flex flex-col h-[168px] m-auto bg-grey-13 rounded-custom w-[320px] px-4 py-4 justify-center items-center text-xl font-body uppercase font-bold text-white"),children:[(0,l.jsx)(f.default,{href:(0,v.mi)(N,"/",e),children:(0,l.jsx)(g.n,{languageName:e.name,languageCode:e.languageCode,className:"mb-2 px-2",src:null===(a=e.websiteLogo)||void 0===a?void 0:a.originalUrl,logoVariant:c.YY.Light})}),(0,l.jsx)("div",{className:"h-[1px] w-full bg-grey-8 mb-2"}),(0,l.jsx)("div",{className:"grid grid-cols-2 gap-[10px]",children:null==i?void 0:i.map((e,n)=>(0,l.jsx)("button",{onClick:()=>T(e),className:"px-2 py-1 font-base-notosans text-sm leading-4 font-medium uppercase text-grey-1 hover:text-grey-8",children:(0,l.jsx)(p.V,{children:e.name})},"".concat(e.languageCode,"-").concat(n)))})]})}):null]})},e.languageCode)}),(null==w?void 0:w.length)===0&&(0,l.jsx)("div",{className:"w-full text-grey-12 font-body text-xl col-span-full",children:"No results found. Please try searching with a different channel name."})]})}var b=t(96731),j=t(79522),w=t(757),N=t(69234);function C(e){let{menuItems:n,onCloseMenu:t}=e;return n&&(null==n?void 0:n.length)!==0?(0,l.jsx)("div",{className:"px-6 py-3 flex flex-col bg-grey-3 rounded-custom_4",children:null==n?void 0:n.map(e=>(0,l.jsx)("div",{onClick:t,className:"flex px-4 py-3 text-grey-8 font-body text-base leading-normal",children:(0,l.jsx)(w.A,{menu:e,children:(0,l.jsx)(N.LocaleUppercase,{children:e.name})})},e.id))}):null}},58845:function(e,n,t){t.d(n,{k:function(){return a}});let l=["Afrika English","Afrika Fran\xe7ais","Afrika Hausa","Afrika Swahili","Afrika Somali","Afrika Nigerian Pidgin"],r=["Balkan Macedonian","Balkan Albanian","Balkan BHSC","Balkan Romana","Balkan Ellinika","Balkan Bulgarski"];function a(e,n,t){return t.includes("Afrika")?l.indexOf(e.name)-l.indexOf(n.name):r.indexOf(e.name)-r.indexOf(n.name)}},9003:function(e,n,t){t.d(n,{U:function(){return c}});
1var l=t(25491),r=t(72542),a=t(53883),o=t(94780),s=t(83641),i=t(2889);function c(e){return(0,s.useCallback)((n,t)=>{("https://trt.global"===window.location.origin||"https://trt-global.com"===window.location.origin)&&(o.Z.set(l.rP,n.languageCode,{expires:365}),o.Z.set(l.M,(0,r.Z)((0,a.cG)(n)),{expires:365}));let s=n&&t&&n.id===(null==t?void 0:t.id);if("/"===window.location.pathname&&s)return;let c=(0,i.mi)(e,"/",n);c!=="".concat(window.location.href,"/")&&(window.location.href=c)},[e])}}}]);
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.