1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9778],{81451:function(e,n,t){"use strict";t.d(n,{n:function(){return g}});var l=t(74023),o=t(12173),r=t(83641),a=t(84358),i=t(72122),s=t(36294),c=t.n(s),u=t(93420);let d=e=>e.length>7,g=e=>{var n;let{languageCode:t,languageName:s,className:g,logoVariant:h=i.YY.Dark,...f}=e,m=null==s?void 0:null===(n=s.split(" "))||void 0===n?void 0:n[0],v=(0,r.useMemo)(()=>["en","bs"].includes(t),[t]),{logoSrc:x,lightClassNames:p}=(0,r.useMemo)(()=>{let e;e=v?"/svg/new-channels/".concat(t).concat(h===i.YY.Light?"-dark":"",".svg"):"/svg/new-channels/".concat(t,".svg");let n="".concat(e,"?v=").concat(u.i9);return v?{logoSrc:n,lightClassNames:{}}:{logoSrc:n,lightClassNames:{[c().lightChannelLogoFilterEffect]:h===i.YY.Light}}},[t,v,h]);return(0,l.jsx)("object",{type:"image/svg+xml",data:x,"data-name":t,width:"150",height:"150","aria-label":"Icon",className:(0,o.cn)("pointer-events-none w-auto text-lg flex justify-center align-center",a.H$,{"md:text-sm text-lg h-auto":d(m),"md:text-lg text-xl h-auto":!d(m),...p},g),...f})}},84358:function(e,n,t){"use strict";t.d(n,{DK:function(){return u},H$:function(){return i},Mv:function(){return s},Zs:function(){return r},cc:function(){return a},g9:function(){return c},uM:function(){return o},zX:function(){return l}});let l="TRT-STICKY-HEADER",o="TRT-STICKY-HEADER-WRAPPER",r="TRT-CAROUSEL-BREAKING-NEWS",a="TRT-SECONDARY-MENU-HEADER",i="trt-channel-logo-container",s="trt-channel-logo-multicolor",c="TRT-BREKINGNEWS-WRAPPER",u="TRT-TV-SCHEDULE-CURRENT-PROGRAM-ID"},757:function(e,n,t){"use strict";t.d(n,{A:function(){return i}});var l=t(74023),o=t(73765),r=t(12173),a=t(53387);let i=e=>{var n,t,i,s,c,u,d,g,h,f,m,v;let{children:x,menu:p,sideMenu:b,disabled:y,variant:j}=e;return!1===p.isClickable||"placeholder"===p.linkType?(0,l.jsx)("span",{children:x}):"custom"===p.linkType?(0,l.jsx)("a",{href:p.url,rel:"noreferrer",target:"_blank",className:(0,r.cn)({"pointer-events-none cursor-not-allowed":y}),children:x},p.id):"tv_show"===p.linkType&&(null==p?void 0:null===(n=p.tvShow)||void 0===n?void 0:n.id)?(0,l.jsx)(a.TVShowLink,{slug:null==p?void 0:null===(u=p.tvShow)||void 0===u?void 0:u.id,className:(0,r.cn)({"pointer-events-none cursor-not-allowed":y}),children:x},p.id):"live_coverage"===p.linkType&&(null===(t=p.liveCoverage)||void 0===t?void 0:t.id)?(0,l.jsxs)(o.LinkWithChannelLink,{className:(0,r.cn)("[&_*]:!text-red-1 flex items-center",{"pointer-events-none cursor-not-allowed":y}),href:"/live/".concat(null===(d=p.liveCoverage)||void 0===d?void 0:d.id),children:[b||"secondary"===j?null:(0,l.jsx)("span",{className:"bg-red-1 rounded-full w-[6px] h-[6px] mr-[6px]"}),x]},"".concat(p.id)):"content"===p.linkType&&p.content?(0,l.jsx)(o.LinkWithChannelLink,{href:"/".concat(null===(g=p.content)||void 0===g?void 0:g.type,"/").concat(null===(h=p.content)||void 0===h?void 0:h.slug),className:(0,r.cn)({"pointer-events-none cursor-not-allowed":y}),children:x},"".concat(p.id)):"topic"===p.linkType&&(null==p?void 0:null===(s=p.topic)||void 0===s?void 0:null===(i=s.page)||void 0===i?void 0:i.slug)?(0,l.jsx)(o.LinkWithChannelLink,{href:"/".concat(null==p?void 0:null===(m=p.topic)||void 0===m?void 0:null===(f=m.page)||void 0===f?void 0:f.slug),className:(0,r.cn)({"pointer-events-none cursor-not-allowed":y}),children:x},"".concat(p.id)):"page"===p.linkType&&(null===(c=p.page)||void 0===c?void 0:c.slug)?(0,l.jsx)(o.LinkWithChannelLink,{href:"/".concat(null===(v=p.page)||void 0===v?void 0:v.slug),className:(0,r.cn)({"pointer-events-none cursor-not-allowed":y}),children:x},"".concat(p.id)):p.slug?(0,l.jsx)(o.LinkWithChannelLink,{href:"/".concat(p.slug),className:(0,r.cn)({"pointer-events-none cursor-not-allowed":y}),children:x},"".concat(p.id)):null}},73765:function(e,n,t){"use strict";t.r(n),t.d(n,{LinkWithChannelLink:function(){return u},useGetChannelLink:function(){return d}});var l=t(74023),o=t(90733),r=t(53883),a=t(61845),i=t(44314),s=t(72542),c=t(2889);let u=e=>{let{href:n,...t}=e,r=(0,o.MS)(),{channelsOriginMap:i}=(0,o.HA)();return(0,l.jsx)(a.default,{...t,href:(0,c.mi)(i,n.toString(),r)})};function d(){let e=(0,o.MS)();return function(n){let t=(0,s.Z)((0,r.cG)(e));return t&&t in i.gY?"/".concat(i.gY[t]).concat(n):n}}},53387:function(e,n,t){"use strict";
1t.r(n),t.d(n,{TVShowLink:function(){return s},TVShowPlayLink:function(){return c}});var l=t(74023),o=t(61845),r=t(83641),a=t(2889),i=t(73765);let s=(0,r.forwardRef)((e,n)=>{let t=(0,i.useGetChannelLink)();return e.slug?(0,l.jsx)(o.default,{ref:n,...e,href:t((0,a.mK)(e.slug))}):(0,l.jsx)("div",{ref:n,style:e.style,className:e.className,children:e.children})}),c=e=>{let{contentSlug:n,slug:t,...r}=e,s=(0,i.useGetChannelLink)();return t?(0,l.jsx)(o.default,{...r,href:s((0,a.mK)(t,n))}):(0,l.jsx)("div",{style:r.style,className:r.className,children:r.children})}},2889:function(e,n,t){"use strict";t.d(n,{As:function(){return g},VB:function(){return s},_S:function(){return u},c3:function(){return a},mK:function(){return c},mi:function(){return d},rp:function(){return i}});var l=t(44314),o=t(53883),r=t(72542);function a(e,n){return"/article/".concat(e).concat(n?"?".concat(new URLSearchParams(n).toString()):"")}function i(e,n,t){let l=new URLSearchParams(t);return n&&l.set("subType",n),"/video/".concat(e).concat(l.toString()?"?".concat(l.toString()):"")}function s(e,n){let t=new URLSearchParams(n);return"/audio/".concat(e).concat(t.toString()?"?".concat(t.toString()):"")}function c(e,n,t){return n?"/video/tv/shows/".concat(e,"/play/").concat(n).concat(t?"?".concat(new URLSearchParams(t).toString()):""):"/video/tv/shows/".concat(e).concat(t?"?".concat(new URLSearchParams(t).toString()):"")}function u(e,n,t){let a=(0,r.Z)((0,o.cG)(n));return a&&a in l.gY?"/".concat(l.gY[a]).concat(e).concat(t?"?".concat(new URLSearchParams(t).toString()):""):e}function d(e,n,t,a){let i=(0,r.Z)((0,o.cG)(t));if(!i||!(i in l.gY)){let t="".concat(e[i]);return"".concat(t).concat(n).concat(a?"?".concat(new URLSearchParams(a).toString()):"")}let s="".concat(e[i],"/").concat(l.gY[i]);return"".concat(s).concat(n).concat(a?"?".concat(new URLSearchParams(a).toString()):"")}function g(e,n){var t,l,o;let r=e.id,a=null==e?void 0:null===(t=e.seriesEpisode)||void 0===t?void 0:t.series;return(null==a?void 0:a.id)?(n?n.s=null===(l=e.seriesEpisode)||void 0===l?void 0:l.seasonNumber.toString():n={s:null===(o=e.seriesEpisode)||void 0===o?void 0:o.seasonNumber.toString()},"/video/tv/vod/".concat(null==a?void 0:a.id).concat(n?"?".concat(new URLSearchParams(n).toString()):"")):"/video/tv/vod/".concat(r).concat(n?"?".concat(new URLSearchParams(n).toString()):"")}},43755:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return c}});var l=t(74023),o=t(83641),r=t(94970),a=t(31652),i=t(12173),s=t(73765);function c(e){let{onCloseMenu:n,parentClassName:t,onInputHover:c}=e,u=(0,a.useTranslations)(""),[d,g]=(0,o.useState)(""),h=(0,s.useGetChannelLink)(),f=()=>{window.location.href="".concat(h("/search?q=".concat(d))),null==n||n()},m=e=>{"Enter"===e&&""!==d.trim()&&f()};return(0,l.jsxs)("div",{className:(0,i.cn)("px-4 py-6 flex flex-row w-full bg-grey-2",t),children:[(0,l.jsx)("input",{onKeyDown:e=>m(e.key),onChange:e=>g(e.target.value),onMouseEnter:c,value:d,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:u("search-placeholder")}),(0,l.jsx)("div",{onClick:""===d?void 0:f,className:(0,i.cn)("p-2 flex items-center justify-center min-w-12 h-12",""===d.trim()?"bg-primary-2 !cursor-default":"bg-primary-2 hover:bg-primary-1 active:bg-primary-2 cursor-pointer"),children:(0,l.jsx)(r.W1,{color:"#FFFFFF"})})]})}},24119:function(e,n,t){"use strict";t.d(n,{E:function(){return l}});let l={name:"trt-global-network"}},79132:function(e,n,t){"use strict";t.d(n,{xc:function(){return N}});var l,o=t(74023),r=t(83641),a=t(757),i=t(12173);function s(e){let{menuItems:n,onCloseMenu:t,firstMenuItem:l=!1}=e,r=null==n?void 0:n.map(e=>e);return(0,o.jsx)("div",{dir:"inherit",className:(0,i.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,o.jsx)("div",{className:"flex gap-4 w-[332px] p-4 flex-col bg-grey-3",children:null==r?void 0:r.map(e=>(0,o.jsx)(a.A,{menu:e,children:(0,o.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),u=t(36754),d=t(9003),g=t(72122),h=t(36294),f=t.n(h),m=t(43755),v=t(31930),x=t(94970),p=t(31652),b=t(24119);let y=e=>{let{name:n,hasSubmenu:t,isOpen:l,className:r,children:a,...s}=e,c=(0,p.useTranslations)(),u="trt-global-network"===n;return(0,o.jsxs)("div",{className:(0,i.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",r,{"bg-grey-3 hover:bg-grey-3 hover:scale-105 transition-all duration-300 text-grey-13":u}),onClick:e=>{e.preventDefault()},...s,children:[u&&(0,o.jsx)(x.VD,{color:"#000000"}),(0,o.jsx)("div",{className:(0,i.cn)("w-full",{"ps-2":u}),children:u?c(b.E.name):n}),a||t?(0,o.jsx)(x.XC,{width:"28",className:(0,i.cn)("origin-center hover:scale-105 rtl:rotate-180",{"rotate-180 rtl:rotate-0":l})}):null,(0,o.jsx)("div",{dir:"inherit",className:(0,i.cn)("pl-2 sm:group-hover:flex hidden z-20 absolute start-full pb-10",{flex:l}
1),children:!u&&(0,o.jsx)(x.OW,{color:"#F1F1F1"})}),a]})};(l||(l={})).Channel="channel";let j=e=>{let{onCloseMenu:n,className:t}=e;return(0,o.jsx)("div",{dir:"inherit",onClick:n,style:{backgroundColor:"rgba(0, 0, 0, 0.16)"},className:(0,i.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,o.jsx)("div",{className:(0,i.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:u,isArticlePage:d,noChannelList:g,sideMenuClassName:h}=e,f=[...(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))||[]],[x,p]=(0,r.useState)(void 0),N=(0,r.useRef)(),C=(0,r.useCallback)((e,n)=>()=>{if(N.current&&clearTimeout(N.current),n){N.current=setTimeout(()=>{p(e)},Math.min(n,300));return}p(e)},[]);return(0,r.useEffect)(()=>()=>{N.current&&clearTimeout(N.current)},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:(0,i.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":!u&&!d,"sm:top-[84px] top-20":u,"xl:top-globalTopHeaderXlH lg:top-globalTopHeaderLgH top-globalTopHeaderH":d},h),children:(0,o.jsxs)("div",{className:"w-full overflow-y-scroll scrollbar-none",children:[(0,o.jsx)(w,{onMouseLeave:C(void 0,300),children:(0,o.jsx)(m.default,{onCloseMenu:l,onInputHover:C(void 0,300)})}),(0,o.jsx)(j,{onCloseMenu:l,className:(0,i.cn)({"sm:top-[84px] top-20":u,isArticlePage:d})}),(0,o.jsx)("div",{className:"hidden sm:block fixed sm:w-sidebarWidth w-full bg-white h-screen z-[21]"}),(0,o.jsxs)(w,{className:"grid bg-white scrollbar-none pb-[150px]",onMouseLeave:()=>C(void 0),children:[(0,o.jsx)(y,{...b.E,onMouseEnter:C("channel"),hasSubmenu:!0,isOpen:"channel"===x}),null==f?void 0:f.map((e,n)=>{var t,l;return e.menuItems&&(null==e?void 0:null===(t=e.menuItems)||void 0===t?void 0:t.filter(v.zi).length)&&(null==e?void 0:null===(l=e.menuItems)||void 0===l?void 0:l.length)>0?(0,o.jsx)(y,{onMouseEnter:C(void 0),name:e.name,children:(0,o.jsx)(s,{onCloseMenu:C(void 0),menuItems:null==e?void 0:e.menuItems,firstMenuItem:0===n})},"".concat(e.id,"-").concat(n)):(0,o.jsx)(a.A,{menu:e,sideMenu:!0,children:(0,o.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))})]})]})}),!g&&"channel"===x&&(0,o.jsx)("div",{className:(0,i.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":u,"xl:top-globalTopHeaderXlH lg:top-globalTopHeaderLgH top-globalTopHeaderH":d},h),children:(0,o.jsx)(R,{handleMouseEnter:C,onCloseMenu:l})})]})}var C=t(84358),k=t(81451),L=t(72542),S=t(97213),T=t(58845),E=t(2889),M=t(61845);let R=(0,r.forwardRef)((e,n)=>{let{onCloseMenu:t,handleMouseEnter:a,channelsWrapperClassName:s,mainWrapperClassName:h,currentChannel:m}=e,v=(0,p.useTranslations)(""),{groupedChannels:x,channels:b,channelsOriginMap:y}=(0,c.HA)(),j=(0,d.U)(y),[w,N]=(0,r.useState)(""),[R,H]=(0,r.useState)([]),A=(0,r.useRef)(null),Y=(0,r.useMemo)(()=>(0,L.RW)(b),[b]);(0,r.useEffect)(()=>{A.current&&A.current.focus()},[]);let I=e=>{j(e,m),null==t||t()},U=e=>{if(N(e),!e){H([]);return}let n=(0,L.Z)(e);H((0,L.Lr)(Y,n)||[])},P=(0,r.useMemo)(()=>w?(0,L.Yq)(R):x,[w,R,x]);return(0,o.jsxs)("div",{ref:n,dir:"inherit",onMouseLeave:null==a?void 0:a(void 0),onMouseEnter:null==a?void 0:a(l.Channel),className:(0,i.cn)("absolute hidden sm:block start-0 bg-grey-3 top-0 z-[30] h-full w-full p-10 pb-15 overflow-scroll",h),children:[(0,o.jsx)("div",{className:"mb-7 w-full",children:(0,o.jsx)("input",{ref:A,type:"text",onChange:e=>U(e.target.value),value:w,autoFocus:!0,placeholder:v("channel-search-placeholder"),className:"bg-transparent w-full border-b border-grey-9 outline-none text-black"})}),(null==P?void 0:P.length)>0&&(0,o.jsx)("div",{className:(0,i.cn)("rounded-custom_4 gap-2.5 grid xl:grid-cols-5 lg:grid-cols-3 grid-cols-2 pb-10",s),children:null==P?void 0:P.map(e=>{var n,t,l,r;let a=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,T.k)(n,t,e.name));
1return(0,o.jsx)(u.Provider,{delayDuration:0,children:(0,o.jsxs)(u.Root,{children:[(0,o.jsx)(u.Trigger,{asChild:!0,children:(0,o.jsx)("button",{onClick:()=>I(e),className:(0,i.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,f().dynamicChannelLogoFilterEffect),children:(0,o.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==a?void 0:a.length)?(0,o.jsx)(u.Content,{sideOffset:5,style:{zIndex:99,marginTop:-90},side:"bottom",children:(0,o.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,o.jsx)(M.default,{href:(0,E.mi)(y,"/",e),children:(0,o.jsx)(k.n,{languageName:e.name,languageCode:e.languageCode,logoVariant:g.YY.Light,className:"mb-2 px-2",src:null===(r=e.websiteLogo)||void 0===r?void 0:r.originalUrl})}),(0,o.jsx)("div",{className:"h-[1px] w-full bg-grey-8 mb-2"}),(0,o.jsx)("div",{className:"grid grid-cols-2 gap-[10px]",children:null==a?void 0:a.map((n,t)=>(0,o.jsx)("button",{onClick:()=>I(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,o.jsx)(S.V,{children:n.name})},"".concat(e.languageCode,"-").concat(t)))})]})}):null]})},e.languageCode)})}),(null==P?void 0:P.length)===0&&(0,o.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){"use strict";t.d(n,{b:function(){return i}});var l=t(74023),o=t(83641),r=t(94970),a=t(96037);function i(e){let{title:n,listType:t,onCloseMenu:i,menuItems:s}=e,c=null==s?void 0:s.map(e=>e),[u,d]=(0,o.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:()=>{d(e=>!e)},children:[(0,l.jsx)("div",{className:"text-grey-8 font-body text-base leading-normal",children:n}),u?(0,l.jsx)(r.c5,{color:"#303232"}):(0,l.jsx)(r.Bl,{color:"#303232"})]}),u&&(0,l.jsxs)(l.Fragment,{children:["list"===t&&(0,l.jsx)(a.ej,{menuItems:c,onCloseMenu:i}),"channel"===t&&(0,l.jsx)(a.f1,{onCloseMenu:i})]})]})}},79522:function(e,n,t){"use strict";t.d(n,{J:function(){return u}});
1var l=t(74023),o=t(43755),r=t(96731),a=t(24119),i=t(31652),s=t(757),c=t(12173);function u(e){var n,t;let{menu:u,noChannelList:d,onCloseMenu:g,className:h,wrapperClassName:f}=e,m=(0,i.useTranslations)(),v=[...(null==u?void 0:null===(n=u.primaryMenuItems)||void 0===n?void 0:n.map(e=>e))||[],...(null==u?void 0:null===(t=u.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",h),children:[(0,l.jsx)(o.default,{onCloseMenu:g}),(0,l.jsxs)("div",{className:(0,c.cn)("flex flex-col bg-white h-full overflow-y-scroll scrollbar-none pb-15",f),children:[d?null:(0,l.jsx)(r.b,{onCloseMenu:g,listType:"channel",title:m(a.E.name)}),null==v?void 0:v.map((e,n)=>{var t;return e.menuItems&&(null===(t=e.menuItems)||void 0===t?void 0:t.length)>0?(0,l.jsx)(r.b,{onCloseMenu:g,listType:"list",menuItems:e.menuItems,title:e.name},"".concat(e.id,"-").concat(n)):(0,l.jsx)(s.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){"use strict";t.d(n,{f1:function(){return b},JH:function(){return y.J},ej:function(){return N}});var l=t(74023),o=t(83641),r=t(90733),a=t(52331),i=t(36754),s=t(9003),c=t(72122),u=t(31652),d=t(12173),g=t(84358),h=t(81451),f=t(72542),m=t(97213),v=t(58845),x=t(61845),p=t(2889);function b(e){let{onCloseMenu:n,mainWrapperClassName:t,currentChannel:b}=e,y=(0,u.useTranslations)(""),{groupedChannels:j,channels:w,channelsOriginMap:N}=(0,r.HA)(),C=(0,o.useMemo)(()=>(0,f.RW)(w),[w]),[k,L]=(0,o.useState)(),S=(0,s.U)(N),[T,E]=(0,o.useState)(""),[M,R]=(0,o.useState)([]),H=e=>{if(E(e),!e){R([]);return}let n=(0,f.Z)(e);R((0,f.Lr)(C,n)||[])},A=e=>{S(e,b),null==n||n()},Y=(0,o.useMemo)(()=>T?(0,f.Yq)(M):j,[T,M,j]);return(0,l.jsxs)("div",{className:(0,d.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=>H(e.target.value),value:T,autoFocus:!0,placeholder:y("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==Y?void 0:Y.map(e=>{var n,t,o,r;let s=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,v.k)(n,t,e.name)),u=(null==k?void 0:k.languageCode)===e.languageCode;return(0,l.jsx)(i.Provider,{delayDuration:0,children:(0,l.jsxs)(i.Root,{open:u,onOpenChange:()=>L(e),children:[(0,l.jsx)(i.Trigger,{asChild:!0,children:(0,l.jsx)("button",{onClick:(null==s?void 0:s.length)?()=>L(e):()=>A(e),className:(0,d.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",g.Mv),children:(0,l.jsx)(h.n,{languageName:e.name,languageCode:e.languageCode,src:null===(o=e.websiteLogo)||void 0===o?void 0:o.originalUrl})},e.languageCode)}),(null==s?void 0:s.length)?(0,l.jsx)(i.Content,{sideOffset:5,style:{zIndex:99,margin:20,marginTop:-40},side:"bottom",children:(0,l.jsxs)("div",{className:(0,a.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)(x.default,{href:(0,p.mi)(N,"/",e),children:(0,l.jsx)(h.n,{languageName:e.name,languageCode:e.languageCode,className:"mb-2 px-2",src:null===(r=e.websiteLogo)||void 0===r?void 0:r.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==s?void 0:s.map((e,n)=>(0,l.jsx)("button",{onClick:()=>A(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)(m.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."})]})}t(96731);var y=t(79522),j=t(757),w=t(69234);function N(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)(j.A,{menu:e,children:(0,l.jsx)(w.LocaleUppercase,{children:e.name})})},e.id))}):null}},97213:function(e,n,t){"use strict";t.d(n,{V:function(){return l}});let l=e=>{let{children:n}=e;return n.replace("Balkan","").replace("Afrika","").replace("Nigerian","")}},69234:function(e,n,t){"use strict";t.r(n),t.d(n,{LocaleUppercase:function(){return r}});
1var l=t(90733);let o=/türkiye|turkiye|TÃRKIYE/gi;function r(e){let{children:n}=e,{languageCode:t}=(0,l.MS)();if(!n||"string"!=typeof n)return"";let r=n.replace(o,"T\xdcRKİYE");return t?r.toLocaleUpperCase(t):r.toUpperCase()}},58845:function(e,n,t){"use strict";t.d(n,{k:function(){return r}});let l=["Afrika English","Afrika Fran\xe7ais","Afrika Hausa","Afrika Swahili","Afrika Somali","Afrika Nigerian Pidgin"],o=["Balkan Macedonian","Balkan Albanian","Balkan BHSC","Balkan Romana","Balkan Ellinika","Balkan Bulgarski"];function r(e,n,t){return t.includes("Afrika")?l.indexOf(e.name)-l.indexOf(n.name):o.indexOf(e.name)-o.indexOf(n.name)}},68947:function(e,n,t){"use strict";t.d(n,{Y:function(){return l}});let l={aiSearch:!1,splashScreen:!0,vodSearch:!1,vodCategory:!1,verticalButtons:!1}},9003:function(e,n,t){"use strict";t.d(n,{U:function(){return c}});var l=t(25491),o=t(72542),r=t(53883),a=t(94780),i=t(83641),s=t(2889);function c(e){return(0,i.useCallback)((n,t)=>{("https://trt.global"===window.location.origin||"https://trt-global.com"===window.location.origin)&&(a.Z.set(l.rP,n.languageCode,{expires:365}),a.Z.set(l.M,(0,o.Z)((0,r.cG)(n)),{expires:365}));let i=n&&t&&n.id===(null==t?void 0:t.id);if("/"===window.location.pathname&&i)return;let c=(0,s.mi)(e,"/",n);c!=="".concat(window.location.href,"/")&&(window.location.href=c)},[e])}},72122:function(e,n,t){"use strict";var l,o;t.d(n,{YY:function(){return l}}),(o=l||(l={})).Light="light",o.Dark="dark",o.Dynamic="dynamic"},36294:function(e){e.exports={dynamicChannelLogoFilterEffect:"channelStyle_dynamicChannelLogoFilterEffect__ZOKQA",lightChannelLogoFilterEffect:"channelStyle_lightChannelLogoFilterEffect__PutQl"}}}]);
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.