PageSourceSearch

https://www.teliaplay.se/oneweb/epg-view.c6260baf.js

js teliaplay.se collected 2026-10-01 15:57:47 UTC 73,994 bytes, 90 lines download raw bytes

1"use strict";(globalThis.webpackChunk_telia_company_tv_web_logged_in=globalThis.webpackChunk_telia_company_tv_web_logged_in||[]).push([[211],{"./src/cdp/Context/CdpFilterContext.tsx"(e,t,n){n.d(t,{E:()=>i,G:()=>l});var o=n("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),a=n("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");const r=(0,o.createContext)({filter:null,setFilter:()=>{}}),s=({children:e})=>{const[t,n]=(0,o.useState)(null);return(0,a.Y)(r.Provider,{value:{filter:t,setFilter:n},children:e})},i=e=>t=>(0,a.Y)(s,{children:(0,a.Y)(e,{...t})}),l=()=>(0,o.useContext)(r)},"./src/cdp/utils/getCDPLink.ts"(e,t,n){n.d(t,{w:()=>a});var o=n("../../libs/error-monitoring/dist/index.mjs");const a=e=>{if((e=>{switch(e?.__typename){case"Episode":case"Movie":case"Series":case"SportEvent":return!0}return!1})(e))switch(e.__typename){case"Episode":return`/episode/${e.id}`;case"Movie":return`/movie/${e.id}`;case"Series":return`/series/${e.id}`;case"SportEvent":return`/sportEvent/${e.id}`}else(0,o.vV)(new Error(`Can't create CDP link for item type ${e.__typename}.`),{context:"getCDPLink"})}},"./src/epg/hooks/useGetRegionalChannelsSelection.ts"(e,t,n){n.d(t,{j:()=>r});var o=n("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),a=n("./src/epg/utils/getRegionalChannelsSelection.ts");const r=()=>{const[e,t]=(0,o.useState)(!0),[n,r]=(0,o.useState)([]);return(0,o.useEffect)(()=>{(async()=>{try{r(await(0,a.A)())}finally{t(!1)}})()},[]),{isLoadingRegionalChannelsSelection:e,regionalChannelsSelection:n}}},"./src/epg/utils/elementScroller/setSmoothScroll.ts"(e,t,n){n.d(t,{O:()=>o});const o=e=>{const t=document.scrollingElement.style.scrollBehavior,n=!window.matchMedia("(prefers-reduced-motion: no-preference)").matches;"smooth"!==t&&e&&!n&&(document.scrollingElement.style.scrollBehavior="smooth"),("smooth"===t&&!e||"smooth"===t&&n&&e)&&(document.scrollingElement.style.scrollBehavior="")}},"./src/epg/utils/getRegionalChannelsSelection.ts"(e,t,n){n.d(t,{A:()=>l});var o=n("./src/codegen/graphql.ts"),a=n("./src/core/apollo/client.ts"),r=n("../../../node_modules/.pnpm/@[email protected]_@telia-company+tv.common-sdk-authenticat_eff6e477fccb3c1035e3d63ff0e72c04/node_modules/@telia-company/tv.common-sdk-legacy-pack/dist/PreferredRegionalChannels.js"),s=n("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/Config.js"),i=n("../../libs/error-monitoring/dist/index.mjs");const l=async()=>{if(s.Config.get("epg/regionalChannelsSelection/enabled"))try{const e=await r.Z.instance().getPreferredRegionalChannels();return await(async e=>{try{const{data:t}=await a.S.query({fetchPolicy:"cache-first",query:o.Lu9}),n=t?.channels?.channelItems;if(!n)return Object.values(e);let s=!1;const i={};for(const[t,o]of Object.entries(e)){const e=n.find(e=>e.id===t);e?.regionalChannels?.regionalChannelItems?.some(e=>e.id===o)?i[t]=o:s=!0}return s&&await r.Z.instance().setPreferredRegionalChannels(i),Object.values(i)}catch(t){return(0,i.vV)(new Error("Failed to clean up stale regional channel preferences",{cause:t}),{context:"cleanupStalePreferences"}
1),Object.values(e)}})(e)}catch(e){(0,i.vV)(new Error("Failed to get regional channels selection from PreferredRegionalChannels",{cause:e}),{context:"getRegionalChannelsSelection"})}return[]}},"./src/epg/views/EpgView/EpgView.tsx"(e,t,n){n.r(t),n.d(t,{default:()=>On});var o=n("./src/core/router/hooks/useIsModalRouteOpen/index.ts"),a=n("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected]_support_a0dcb4b0ae680db98626d6fd11a2b9d9/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),r=n("../../../node_modules/.pnpm/@[email protected]/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"),s=n("./src/shared/components/custom/Portal/index.ts"),i=n("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),l=n("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/react-i18next/dist/es/index.js"),d=n("./src/shared/components/custom/SmartLink/index.ts"),c=n("./src/shared/constants/zindex.ts"),p=n("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js"),m=n("./src/shared/components/ui/Button/Button.tsx");const u=(0,a.A)("div",{target:"e15a1j0u9"})(p.ue.typography.textSecondary," color:",p.ue.color.background.primary,";position:absolute;top:0;left:0;opacity:0;width:342px;transition:opacity 0.6s linear;z-index:",c.M.TOOLTIP,";"),h=(0,a.A)("div",{target:"e15a1j0u8"})("transition:transform 0.3s ease-out;position:absolute;width:16px;height:16px;&::before{position:absolute;width:16px;height:16px;top:-8px;content:'';background-color:",p.ue.color.background.light,";transform:rotate(45deg);}"),g=(0,a.A)("div",{target:"e15a1j0u7"})("width:100%;height:calc(100% - 13px);border-radius:4px;background-color:",p.ue.color.background.light,";"),_=(0,a.A)("div",{target:"e15a1j0u6"})({name:"xpuvqj",styles:"padding-top:12px;padding-bottom:12px;padding-left:16px;padding-right:9px"}),f=(0,a.A)("div",{target:"e15a1j0u5"})(p.ue.typography.textPrimaryEmphasis,";"),x=(0,a.A)("div",{target:"e15a1j0u4"})({name:"hkh81z",styles:"margin-top:8px"}),b=(0,a.A)("div",{target:"e15a1j0u3"})("margin-top:16px;",p.ue.typography.textFootnote," display:flex;align-items:center;"),y=(0,a.A)("button",{target:"e15a1j0u2"})({name:"iv6h8m",styles:"user-select:none;font-size:1.4rem;background:transparent;border:none;padding:0;display:block;&:hover{text-decoration-line:underline;cursor:pointer;}"}),v=(0,a.A)(m.$,{target:"e15a1j0u1"})({name:"1bsxby0",styles:"user-select:none;width:107px;height:34px;margin-left:auto"}),E=(0,a.A)(d.i,{target:"e15a1j0u0"})(p.ue.typography.textLinkUnderlined," color:",p.ue.color.background.primary,";");var C=n("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");const k=(0,i.forwardRef)((e,t)=>{const{t:n}=(0,l.Bd)();return(0,C.FD)(u,{ref:t,...e,onKeyDown:e.onKeyDown,children:[(0,C.Y)(h,{id:"popperUpArrow",style:e.arrowStyles??{}}),(0,C.Y)(g,{children:(0,C.FD)(_,{children:[(0,C.Y)(f,{children:e.header}),(0,C.Y)(x,{children:e.content}),e.href&&(0,C.Y)(E,{href:e.href,children:e.linkText||e.href}),(0,C.FD)(b,{children:[e.skipClick&&(0,C.Y)(y,{onClick:e.skipClick,children:n("CLOSE")}),(0,C.Y)(v,{onClick:e.nextClick,variant:"primary",children:e.nextText})]})]})})]})});k.displayName="Tooltip";var w=n("./src/shared/hooks/useLockRootElement.ts"),I=n("./src/shared/hooks/usePrevious.ts"),N=n("../../../node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]__@[email protected]._ce78ac614378806cf95aa75fb2ec3035/node_modules/focus-trap-react/dist/focus-trap-react.js"),A=n("../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_react-_23af7fe1a84405345a895683eefe299d/node_modules/@apollo/client/cache/inmemory/reactiveVars.js"),S=n("../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_react-_23af7fe1a84405345a895683eefe299d/node_modules/@apollo/client/react/hooks/useReactiveVar.js"),T=n("./src/shared/utils/webStorage/getLocalStorage.ts"),L=n("./src/shared/utils/webStorage/setLocalStorage.ts"),O=n("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.oneapp-web-analytics/dist/tracking/trackTutorial/index.js");const P=({addedOnVersion:e,stepId:t,tutorialName:n})=>{const o=(0,T.L)(j,{}),a=o[n]?.version,r=a>=e&&-1===o[n].activeStep,s=o[n]?.completedSteps?.[t]||!1;return r||s};var Y=n("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/Config.js");const R={EPG_CHANNELS:{name:"EPG_CHANNELS",steps:[{addClassToElement:"tutorial-highlighted",id:"epg-channelpicker-description",placement:"bottom-end",selector:'[data-tutorial-id="right-most-channel-button"]',selectorIndex:0,skipIf:()=>P({addedOnVersion:1,stepId:"epg-channelpicker-description",tutorialName:"EPG_CHANNELS"}),text:"CHANNELPICKER_DESCRIPTION"},{addClassToElement:"tutorial-highlighted",id:"epg-play-channel",placement:"bottom",selector:'[data-tutorial-id="epg-channel-header-btn"]',
1selectorIndex:0,skipIf:()=>P({addedOnVersion:1,stepId:"epg-play-channel",tutorialName:"EPG_CHANNELS"}),text:"TOOLTIP_PLAY_CHANNEL"},{addClassToElement:"tutorial-highlighted",href:`${Y.Config.get("shared/services/account/host")}/settings`,id:"epg-find-regional-channels-settings",linkText:"CHOOSE_REGIONAL_CHANNEL_NOW",placement:"bottom",selector:'[data-tutorial-id="epg-channel-header-btn"]',selectorIndex:0,skipIf:()=>P({addedOnVersion:3,stepId:"epg-find-regional-channels-settings",tutorialName:"EPG_CHANNELS"}),text:"FIND_REGIONAL_CHANNELS_SETTINGS"},{addClassToElement:"tutorial-highlighted",id:"epg-favorite-channel-button",placement:"bottom",selector:'[data-tutorial-id="epg-favorite-channel-btn"]',selectorIndex:0,skipIf:()=>P({addedOnVersion:2,stepId:"epg-favorite-channel-button",tutorialName:"EPG_CHANNELS"}),text:"FAVORITE_CHANNEL_BUTTON_DESCRIPTION"},{addClassToElement:"tutorial-highlighted",id:"epg-favorite-in-channel-picker-description",placement:"bottom-end",selector:'[data-tutorial-id="left-most-channel-button"]',selectorIndex:0,skipIf:()=>P({addedOnVersion:2,stepId:"epg-favorite-in-channel-picker-description",tutorialName:"EPG_CHANNELS"}),text:"FAVORITE_IN_CHANNEL_PICKER_DESCRIPTION"},{addClassToElement:"tutorial-highlighted",id:"epg-all-channels-button",placement:"top-end",selector:'[data-tutorial-id="all-channels-button"]',selectorIndex:0,skipIf:()=>P({addedOnVersion:1,stepId:"epg-all-channels-button",tutorialName:"EPG_CHANNELS"}),text:"ALL_CHANNELS_BUTTON_DESCRIPTION"}],version:3},EPG_CHANNELS_FEW:{name:"EPG_CHANNELS_FEW",steps:[{addClassToElement:"tutorial-highlighted",id:"epg-play-channel",placement:"bottom",selector:'[data-tutorial-id="epg-channel-header-btn"]',selectorIndex:0,skipIf:()=>P({addedOnVersion:1,stepId:"epg-play-channel",tutorialName:"EPG_CHANNELS_FEW"}),text:"TOOLTIP_PLAY_CHANNEL"},{addClassToElement:"tutorial-highlighted",id:"epg-favorite-channel-button",placement:"bottom",selector:'[data-tutorial-id="epg-favorite-channel-btn"]',selectorIndex:0,skipIf:()=>P({addedOnVersion:2,stepId:"epg-favorite-channel-button",tutorialName:"EPG_CHANNELS_FEW"}),text:"FAVORITE_CHANNEL_BUTTON_DESCRIPTION"},{addClassToElement:"tutorial-highlighted",href:`${Y.Config.get("shared/services/account/host")}/settings`,id:"epg-find-regional-channels-settings",linkText:"CHOOSE_REGIONAL_CHANNEL_NOW",placement:"bottom",selector:'[data-tutorial-id="epg-channel-header-btn"]',selectorIndex:0,skipIf:()=>P({addedOnVersion:3,stepId:"epg-find-regional-channels-settings",tutorialName:"EPG_CHANNELS_FEW"}),text:"FIND_REGIONAL_CHANNELS_SETTINGS"}],version:3},EPG_OVERVIEW:{name:"EPG_OVERVIEW",steps:[{addClassToElement:"tutorial-highlighted",id:"epg-play-channel",placement:"bottom",selector:'[data-tutorial-id="epg-channel-header-btn"]',selectorIndex:0,skipIf:()=>P({addedOnVersion:1,stepId:"epg-play-channel",tutorialName:"EPG_OVERVIEW"}),text:"TOOLTIP_PLAY_CHANNEL"},{addClassToElement:"tutorial-highlighted",id:"epg-favorite-channel-button",placement:"bottom",selector:'[data-tutorial-id="epg-favorite-channel-btn"]',selectorIndex:0,skipIf:()=>P({addedOnVersion:1,stepId:"epg-favorite-channel-button",tutorialName:"EPG_OVERVIEW"}),text:"FAVORITE_CHANNEL_BUTTON_DESCRIPTION"},{addClassToElement:"tutorial-highlighted",href:`${Y.Config.get("shared/services/account/host")}/settings`,id:"epg-find-regional-channels-settings",linkText:"CHOOSE_REGIONAL_CHANNEL_NOW",placement:"bottom",selector:'[data-tutorial-id="epg-channel-header-btn"]',selectorIndex:0,skipIf:()=>P({addedOnVersion:2,stepId:"epg-find-regional-channels-settings",tutorialName:"EPG_OVERVIEW"}),text:"FIND_REGIONAL_CHANNELS_SETTINGS"}],version:2}},j="TUTORIAL_PROGRESS",D=(0,A.UT)(void 0),H=(0,A.UT)(0),M=(e,t)=>t&&e[t.name]&&t.version>e[t.name].version?0:e[t.name]?.activeStep??0,B=e=>{const t=(0,T.L)(j,{});return t[e.name]?.version>=e.version&&-1===t[e.name].activeStep},G=(e,t)=>{(0,i.useEffect)(()=>{const n=R[e],o=(e,t)=>{if(e){const n=(0,T.L)(j,{}),o=M(n,e);(0,O.trackTutorial)({at_step_nr:o,event:"tutorial_close",name:e.name,timestamp:Date.now(),total_steps:e.steps.length,version:e.version}),t||D(void 0)}};if(t.skip||!n||B(n)){if(t.skip&&n){const e=D()?.tutorial;e?.name===n.name&&o(e)}}else{const e={name:n.name,steps:n.steps.filter(e=>!e.skipIf||!e.skipIf()),version:n.version},t=D()?.tutorial;t&&t.name!==n.name&&o(t,!0);const a=(0,T.L)(j,{}),r=M(a,e);(0,O.trackTutorial)({at_step_nr:r,event:"tutorial_open",name:e.name,timestamp:Date.now(),total_steps:e.steps.length,version:e.version}),H(H()+1),D({...D(),startStep:r,tutorial:e})}return()=>{const e=D()?.tutorial;n&&e?.name===n.name&&o(e)}},[e,t.skip])},F=(0,a.A)("div",{target:"edlruev0"})("z-index:",c.M.TUTORIAL,";position:fixed;top:0;left:0;width:100%;height:100%;background-color:",p.ue.color.background.overlay40,";display:",({skipRender:e})=>e?"none":"block",";"),V=()=>{const{activeStep:e,activeTutorial:t,nextStep:n,skipAll:a,startStep:d}=(()=>{const e=(0,S.q)(D),t=(0,S.q)(H),n=e?.tutorial,o=e?.startStep,[a,r]=(0,i.useState)((0,T.L)(j,{})),s=n?M(a,n):0,l=e=>{const t=(0,T.L)(j,{});if(n){const o=t[n.name]?.completedSteps??{},a=n.steps[s]?.id;t[n.name]={activeStep:e,completedSteps:a?{...o,[a]:!0}:o,version:n.version},r(t),(0,L.Z)(j,t)}},d=e=>{const t=D()?.tutorial;t&&!e&&((0,O.trackTutorial)({at_step_nr:s,event:"tutorial_click_skip_all",name:t.name,timestamp:Date.now(),total_steps:t.steps.length,version:t.version}
1),(0,O.trackTutorial)({at_step_nr:s,event:"tutorial_close",name:t.name,timestamp:Date.now(),total_steps:t.steps.length,version:t.version})),l(-1),D(void 0)};return{activeStep:s,activeTutorial:n,nextStep:()=>{const e=D()?.tutorial;if(!e)return;const t=e.steps.length;s<t-1?((0,O.trackTutorial)({at_step_nr:s,event:"tutorial_click_next",name:e.name,timestamp:Date.now(),total_steps:e.steps.length,version:e.version}),l(s+1)):(d(!0),(0,O.trackTutorial)({at_step_nr:s,event:"tutorial_click_done",name:e.name,timestamp:Date.now(),total_steps:e.steps.length,version:e.version}),(0,O.trackTutorial)({at_step_nr:s,event:"tutorial_close",name:e.name,timestamp:Date.now(),total_steps:e.steps.length,version:e.version}))},skipAll:d,startStep:o,updateCounter:t}})(),{t:c}=(0,l.Bd)(),{isModalRouteOpen:p}=(0,o.u)(),[m,u]=(0,i.useState)(!1),h=t?.steps[e],g=e===(t?.steps.length??0)-1,[_,f]=(0,i.useState)(null),x=(0,i.useRef)(null),{locked:b,lockRootElement:y,unlockRootElement:v}=(0,w.X)({skipOnMount:!1});(0,i.useEffect)(()=>{if(t&&_&&x.current&&h){return(0,r.ll)(_,x.current,()=>{const t=document.querySelector("#popperUpArrow");x.current&&t&&(0,r.rD)(_,x.current,{middleware:[(0,r.UU)(),(0,r.UE)({element:t}),(0,r.jD)({strategy:"referenceHidden"})],placement:h.placement}).then(({middlewareData:t,placement:n,x:o,y:a})=>{if(x.current){const r=o<=0&&a<=0;if(Object.assign(x.current.style,{opacity:r?0:1,transform:`translate3d(${o}px, ${a}px, 0)`,transition:e!==d?"transform 0.6s ease-out, opacity 0.6s linear":r?"unset":"opacity 0.6s linear"}),x.current.focus(),t.arrow){const{x:e,y:o}=t.arrow;let a=o||0,r=e;const s=document.getElementById("popperUpArrow");s&&(n.startsWith("top")?a=x.current.clientHeight:n.startsWith("left")?(r=x.current.clientWidth-s.clientWidth/2,a+=s.clientHeight/2):n.startsWith("right")&&(r=-s.clientWidth/2,a+=s.clientHeight/2),s.style.transform=`translate3d(${null!=r?Math.round(r)+"px":0}, ${null!=a?Math.round(a)+"px":0}, 0)`)}u(!!t?.hide?.referenceHidden)}})})}t||f(null)},[t,h,_,e,d]);const E=(0,I.Z)(_);(0,i.useEffect)(()=>{document.body.classList.remove("tutorial-active"),E?.classList.remove("tutorial-highlighted");const n=()=>
1{if(h){const n=document.querySelectorAll(h.selector)[h.selectorIndex];if(n){if(t&&e>=0){const o=t.steps[e].addClassToElement;o&&(document.body.classList.add("tutorial-active"),n.classList.add(o))}f(n)}else f(null)}};let o;return n(),t&&(o=setInterval(n,1200)),()=>{o&&(clearInterval(o),o=void 0)}},[t,h,_,e,E?.classList]);const A=null===_||void 0===h||!!m||!t;(0,i.useEffect)(()=>{A||b?A&&b&&!p&&v():y()},[A,b,y,v,p]);return(0,C.Y)(s.Z,{children:(0,C.Y)(N.FocusTrap,{active:!A,focusTrapOptions:{allowOutsideClick:!0},children:(0,C.Y)(F,{skipRender:A,children:(0,C.Y)(k,{"aria-label":c("ACCESSIBILITY_EPG_TUTORIAL_LABEL"),"aria-modal":"true",content:h?c(h.text):"",header:c("STEP_X_OF_Y",{activeStep:e+1,interpolation:{escapeValue:!1},totalSteps:t?.steps.length}),href:h?.href,linkText:h?.linkText?c(h.linkText):"",nextClick:n,nextText:c(g?"DONE":"NEXT"),onKeyDown:e=>{"Escape"===e.key&&x.current?.contains(document.activeElement)&&a()},ref:x,role:"dialog",skipClick:g?void 0:()=>{a()},tabIndex:-1})})})})};var q=n("./src/shared/components/custom/DecoratedHelmet.tsx"),$=n("./src/shared/components/custom/MarginContainer/index.ts"),z=n("./src/shared/components/custom/Navbar/index.ts"),W=n("./src/shared/components/ui/Modal/index.ts"),U=n("./src/shared/hooks/useCallbackAt.ts"),K=n("./src/shared/hooks/useResizeObserver.ts"),Z=n("./src/shared/hooks/useTrackPageViewEvent.ts"),J=n("./src/shared/hooks/useWindowSize.ts"),X=n("./src/shared/utils/breakpoints/useBreakpoints.ts"),Q=n("./src/shared/utils/date/constants.ts"),ee=n("../../../node_modules/.pnpm/[email protected]/node_modules/date-fns/startOfDay.js");const te=(e=new Date)=>(0,ee.o)(e).getTime();var ne=n("../../../node_modules/.pnpm/[email protected]/node_modules/date-fns/differenceInDays.js"),oe=n("../../../node_modules/.pnpm/[email protected]/node_modules/date-fns/addHours.js"),ae=n("../../../node_modules/.pnpm/[email protected][email protected]/node_modules/i18next/dist/esm/i18next.js"),re=n("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]__@typ_208c15ae729122632d926888ccf5cf22/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs"),se=n("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-62JRHF6Z.mjs");const ie=()=>{let e=-1;const t=n=>{const o=document.getElementById(n);o?o.scrollIntoView({behavior:"auto"}):e=window.requestAnimationFrame(()=>t(n))};return{deactivate:()=>{window.cancelAnimationFrame(e)},scrollTo:n=>{e>-1&&window.cancelAnimationFrame(e),setTimeout(t,300,n)}}};var le=n("./src/epg/utils/elementScroller/setSmoothScroll.ts"),de=n("./src/core/analytics/tracker.ts"),ce=n("./src/shared/components/custom/SkipNav/index.ts"),pe=n("./src/shared/components/ui/Button/index.ts"),me=n("./src/shared/utils/date/getReadableTime.ts"),ue=n("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.one-core-tracking-web/dist/esm/index.js"),he=n("../../../node_modules/.pnpm/[email protected]/node_modules/date-fns/addDays.js"),ge=n("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/dist/emotion-react.browser.esm.js");const _e=(0,a.A)("button",{target:"e18q0izf0"})("z-index:1;position:fixed;top:calc(50% + ",({width:e})=>e/2,"px);bottom:50%;background:none;display:flex;align-items:center;justify-content:center;border:none;padding:0;",({direction:e,width:t})=>(0,ge.css)("width:",t,"px;left:","left"===e?0:"auto",";right:","right"===e?0:"auto",";")," ",({visible:e})=>(0,ge.css)("visibility:",e?"visible":"hidden",";cursor:",e?"pointer":"auto",";")," svg{transition:transform 0.2s ease-in-out;}&:hover{svg{transform:scale(1.125);}}"),fe=({direction:e,onClick:t,visible:n,width:o,...a})=>(0,C.Y)(_e,{direction:e,onClick:n?()=>t(e):void 0,visible:n,width:o,...a,children:"left"===e?(0,C.Y)(p.PA,{color:"white",fontSize:60,name:"ChevronLeft"}):(0,C.Y)(p.PA,{color:"white",fontSize:60,name:"ChevronRight"})});var xe=n("./src/epg/views/EpgView/components/Epg/components/ProgramBlock/ProgramBlock.tsx"),be=n("./src/epg/views/EpgView/components/Epg/EpgGuideContext.tsx"),ye=n("./src/epg/views/EpgView/components/Epg/EpgProgramsContext.tsx"),ve=n("./src/epg/views/EpgView/components/Epg/utils/epg.utils.ts"),Ee=n("./src/epg/views/EpgView/components/Epg/constants.ts"),Ce=n("./src/shared/components/custom/SkipNav/SkipNav.tsx"),ke=n("./src/shared/utils/breakpoints/mq.ts");const we=(0,a.A)("section",{target:"e7rw6q13"})("position:relative;display:block;background-color:",p.ue.color.background.surface,";width:100%;flex-grow:1;flex-shrink:0;",ke.mq.S`
2      width: ${Ee.zS}px;
3  `,({onlyChannel:e})=>e&&(0,ge.css)(ke.mq.S`
4        width: 100%;
5      `," ",ke.mq.M`
6        width: ${Ee.zS}px;
7      `,";"),";"),Ie=(0,a.A)("section",{target:"e7rw6q12"})("display:flex;position:relative;flex-direction:row;margin-top:",({index:e})=>0===e?16:0,"px;& ",Ce.H,"{margin-top:",({index:e})=>0===e?70:8,"px;}& ",we,"{margin:0 12px 0 0;}",we,":last-child{margin:0;}"),Ne=(0,a.A)("time",{target:"e7rw6q11"})("display:flex;align-items:center;height:",Ee.RP,"px;padding:0 16px;",p.ue.typography.textFootnote," color:",p.ue.color.text.secondary,";"),Ae=(0,a.A)("a",{target:"e7rw6q10"})({name:"yhptkg",styles:"display:block;position:relative;top:-250px;visibility:hidden"}),Se=({endTime:e,index:t,nextTimeBlockRowId:n,nextTimeBlockRowName:o,numberOfChannels:a,programBlocks:r,startTime:s,timeBlockRowId:i})=>{const{t:d}=(0,l.Bd)(),{epgTodayDate:c}=(0,be.N)(),p=ie(),m=1===r.length,u=(0,ve.iz)(c,s,"").map(e=>(0,C.Y)(Ae,{className:"time-block-anchor",id:e}
7,e)),h=r.slice(0,a),g=`${(0,me.g)(s)}–${(0,me.g)(e)}`,_=({analytics:e,index:n})=>{(0,ue.L)(e)&&de.F.trackAssetClick({content_id:e.contentId,content_in_list_index:n,content_type:e.contentType,link_type:e.linkType,panel_row_index:t})},f=d("ACCESSIBILITY_TIMEBLOCK_HEADER",{start:(0,me.g)(s),stop:(0,me.g)(e)});return(0,C.FD)(Ie,{"aria-label":f,index:t,children:[n&&(0,C.Y)(ce.p,{id:`${i}-skip-link`,label:d("GO_TO",{value:o}),onClick:()=>{if(!n)return;const e=document.querySelector(`#${n}-skip-link`),t=document.querySelector(`#${n} ~ ol li:first-child a`);(0,le.O)(!0),p.scrollTo(n),e?e.focus():t&&t.focus()}}),h.map((e,t)=>(0,C.FD)(we,{"aria-label":`${e.channelName} ${g}`,onlyChannel:m,children:[u,(0,C.Y)(Ne,{"aria-hidden":!0,children:0===t&&g}),(0,C.Y)(ye.t,{programs:e.epgPrograms,children:(0,C.Y)(xe.g,{onlyChannel:m,programItems:e.epgPrograms,trackOnClick:_})})]},t))]})},Te=(0,a.A)("div",{target:"e18q1r7j1"})("display:flex;width:100%;height:",({ghostHeight:e})=>e||10,"px;"),Le=(0,a.A)("div",{target:"e18q1r7j0"})("width:100%;flex-shrink:0;flex-grow:1;height:100%;background-color:",p.ue.color.background.surface,";margin:0 12px 0 0;:last-child{margin:0;}",ke.mq.S`
8    width: ${Ee.zS}px;
9    flex-shrink: 0;
10  `,({onlyChannel:e})=>e&&(0,ge.css)(ke.mq.S`
11      width: 100%;
12    `,";"),";"),Oe=({numberOfChannels:e})=>{const t=Array(e).fill(0),{height:n}=(0,J.l)(),o=n-56,a=1===e;return(0,C.Y)(Te,{ghostHeight:o,children:t.map((e,t)=>(0,C.Y)(Le,{onlyChannel:a},t))})};var Pe=n("./src/epg/views/EpgView/components/Epg/components/EpgChannelHeader/EpgChannelHeader.tsx");const Ye=(0,a.A)(Pe.f,{target:"eg0wdm64"})("position:relative;overflow:visible;::after{content:'';position:absolute;flex-shrink:0;bottom:-7px;height:7px;left:0;width:100%;background-image:linear-gradient(\n      ",p.ue.color.background.primary,",\n      transparent\n    );}"),Re=(0,a.A)("section",{target:"eg0wdm63"})("display:flex;flex-direction:row;position:sticky;z-index:",c.M.EPG.CHANNEL_HEADER_CONTAINER,";top:0px;background-color:",p.ue.color.background.primary,";width:100%;",Ye,"{margin:0 12px 0 0;}",Ye,":last-child{margin:0;}.skip-link{z-index:",c.M.EPG.CHANNEL_HEADER_SKIP_LINK,";}"),je=(0,a.A)("ol",{target:"eg0wdm62"})({name:"g0mbu3",styles:"width:100%;list-style-type:none;margin:0;padding:0;display:flex;gap:12px;justify-content:space-between"}),De=(0,a.A)("section",{target:"eg0wdm61"})("display:block;>",Re,"+",Ie,">",we,"{padding-top:64px;}");var He={name:"1jjwe7g",styles:"margin-top:42px"},Me={name:"iww6hy",styles:"margin-top:116px;margin-bottom:24px"};const Be=(0,a.A)("div",{target:"eg0wdm60"})("display:flex;justify-content:center;align-items:center;",({position:e})=>"top"===e&&Me," ",({position:e})=>"bottom"===e&&He,";"),Ge=({channels:e,channelsHeaderRef:t,className:n,loadingChannels:o,loadingTimeBlocks:a,timeBlocks:r})=>{const{t:s}=(0,l.Bd)(),d=e.length,{allChannels:c,epgNavDates:p,selectedChannelIndex:m,selectedChannels:u,selectedTime:h,setSelectedChannelIndex:g}=(0,be.N)(),_=r.length>0&&!1===a,f=Array(d).fill(0),x=(0,ee.o)(new Date).setHours(1),b=(0,ee.o)((0,he.f)(new Date,1)).setHours(1),y=(0,ee.o)(h).setHours(1),v=h>=x&&h<b,E=ie(),k=(0,i.useMemo)(()=>{if(!r.length)return;const e=r[0];return`${(0,me.g)(e.startTime)}–${(0,me.g)(e.endTime)}`},[r]),w=r.flatMap(e=>e.programBlocks.flatMap(e=>e.epgPrograms)),I=p.findIndex(e=>e?.from>=y),N=p[p.length-1]?.from===h,A=`/epg/${Ee.Cc}/`,S=N?null:`${A}${p[I+1]?.name}`,T=(0,i.useId)(),L=(0,i.useId)(),O=m<d?m:d,P=c.length-(m+1+d)<d?c.length-(m+1+d):d;return(0,C.FD)(De,{"aria-label":s("TV_GUIDE"),className:n,children:[(0,C.Y)(fe,{"aria-describedby":T,"aria-label":s("ACCESSIBILITY_EPG_CHANNEL_PAGINATION_PREV_BUTTON"),direction:"left",onClick:()=>g(0===m?c.length-d:m-d<=0?0:m-u.length),visible:!0,width:70}),(0,C.Y)("span",{hidden:!0,id:T,children:O>1?s("ACCESSIBILITY_EPG_CHANNEL_PAGINATION_PREV_BUTTON_HINT_other",{numberOfChannels:O}):s("ACCESSIBILITY_EPG_CHANNEL_PAGINATION_PREV_BUTTON_HINT_one")}),(0,C.Y)(fe,{"aria-describedby":L,"aria-label":s("ACCESSIBILITY_EPG_CHANNEL_PAGINATION_NEXT_BUTTON"),direction:"right",onClick:()=>m+u.length>=c.length?g(0):m+u.length>c.length-d?g(c.length-d):g(m+u.length),visible:!0,width:70}),(0,C.Y)("span",{hidden:!0,id:L,children:P>1?s("ACCESSIBILITY_EPG_CHANNEL_PAGINATION_NEXT_BUTTON_HINT_other",{numberOfChannels:P}):s("ACCESSIBILITY_EPG_CHANNEL_PAGINATION_NEXT_BUTTON_HINT_one")}),(0,C.FD)(ye.t,{programs:w,children:[(0,C.FD)(Re,{"aria-label":s("ACCESSIBILITY_BROADCASTS_NOW"),id:Ee.AO,ref:t,children:[k&&(0,C.Y)(ce.p,{id:Ee.og,label:s("GO_TO",{value:k}),onClick:()=>{const e=document.querySelectorAll(".skip-link"),t=e[Array.from(e).findIndex(e=>e.getAttribute("id")===Ee.og)+1],n=document.querySelector(".time-block-anchor");if(n){const e=n.getAttribute("id");(0,le.O)(!0),e&&E.scrollTo(e)}t&&t.focus()}}),(0,C.Y)(je,{role:"list",children:o?f.map((e,t)=>(0,C.Y)(Ye,{index:t},t)):e.map((e,t)=>(0,C.Y)(Ye,{channel:e,index:t,numberOfChannelsToDisplay:d,onClick:()=>{(0,ue.L)(e.analytics)&&de.F.trackAssetClick({content_id:e.analytics.contentId,content_in_list_index:t,content_type:e.analytics.contentType,link_type:e.analytics.linkType,panel_id:"",panel_row_index:0})},showOngoingProgramPoster:v},t))})]}),_&&r.map((e,t)=>{const n=`t${e.startTime}`,o=r.length>=t+1?r[t+1]:void 0,a=o&&`t${o.startTime}`,s=o&&`${(0,me.g)(o.startTime)}–${(0,me.g)(o.endTime)}`,i=e.programBlocks.map(e=>({channelName:e.channelName,epgPrograms:e.epgPrograms}));return(0,C.Y)(Se,{endTime:e.endTime,index:t,nextTimeBlockRowId:a,nextTimeBlockRowName:s,numberOfChannels:d,programBlocks:i,startTime:e.startTime,timeBlockRowId:n},t)}),!_&&(0,C.Y)(Oe,{numberOfChannels:d}),S?(0,C.Y)(Be,{position:"bottom",children:(0,C.Y)(pe.$,{as:"a",href:S,variant:"secondary",children:s("SHOW_PROGRAMS_OF_NEXT_DAY")})}):null]})]})};var Fe=n("./src/shared/components/custom/MediaDetails/components/MediaModal/index.ts");const Ve=(0,a.A)("ul",{target:"e1li4zvs1"})("list-style:none;padding:0;margin:0;display:grid;",({columnGap:e,columnGapSmall:t,minColumnWidth:n,rowGap:o,rowGapSmall:a})=>(0,ge.css)("grid-template-columns:repeat(auto-fill, minmax(",n,", 1fr));row-gap:",a,";column-gap:",t,";",ke.mq.M`
13      row-gap: ${o};
14      column-gap: ${e};
15    `,";"),";"),qe=(0,a.A)("li",{target:"e1li4zvs0"})({name:"1u4hpl4",styles:"display:inline"});function $e({renderItem:e,...t}){const n=(0,i.useRef)(null),[o,a]=(0,i.useState)(1),r=(0,J.l)();let s=0,l=!0;return"totalItemsToRender"in t&&void 0!==t.totalItemsToRender?(l=!1,s=t.totalItemsToRender):"totalRowsToRender"in t&&(s=o*t.totalRowsToRender),(0,i.useLayoutEffect)(()=>
15{if(l){const e=n.current?.children.item(0),t=e?.children.item(0),o=t?.children.item(0);if(n.current&&o){const e=o.clientWidth,t=Math.floor(n.current.clientWidth/e);a(t)}}},[l,r]),(0,C.Y)("div",{ref:n,children:(0,C.Y)(Ve,{...t,role:"list",children:new Array(s).fill({}).map((t,n)=>(0,C.Y)(qe,{children:e()},n))})})}const ze=({data:e,renderItem:t})=>(0,C.Y)(C.FK,{children:e?.map((e,n)=>(0,C.Y)(qe,{children:t(e,n)},n))}),We=(0,i.memo)(ze);function Ue({children:e,columnGap:t="16px",columnGapSmall:n="12px",data:o,minColumnWidth:a,renderItem:r,rowGap:s="32px",rowGapSmall:i="24px",...l}){const d={columnGap:t,columnGapSmall:n,minColumnWidth:a,rowGap:s,rowGapSmall:i};if(l.asPlaceholder){const{totalPlaceholderItemsToRender:e,totalPlaceholderRowsToRender:t,...n}=l;return(0,C.Y)($e,{renderItem:r,totalItemsToRender:e,totalRowsToRender:t,...d,...n})}return(0,C.FD)(Ve,{...d,...l,role:"list",children:[(0,C.Y)(We,{data:o,renderItem:r}),e]})}var Ke=n("./src/shared/utils/isDefined.ts");var Ze=n("./src/shared/components/custom/IconImage/index.ts"),Je=n("../../../node_modules/.pnpm/@[email protected]/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js");const Xe=60;const Qe=(0,a.A)(p.PA,{target:"e1st8gkd2"})("color:",p.ue.color.text.primary,";position:absolute;top:2px;right:2px;width:16px;height:16px;"),et=(0,a.A)(Qe,{shouldForwardProp:e=>"isFavorite"!==e,target:"e1st8gkd1"})("display:",({isFavorite:e})=>e?"block":"none",";left:2px;width:12px;height:12px;*[fill]{fill:",p.ue.color.background.light,";}"),tt=(0,a.A)("button",{shouldForwardProp:Je.A,target:"e1st8gkd0"})("position:relative;display:flex;justify-content:center;align-items:center;width:",Xe,"px;height:",Xe,"px;padding:0;margin:0;background:0;border:1px solid transparent;border-radius:4px;cursor:pointer;user-select:none;&:active{background-color:",p.ue.color.background.surface,";}&.tutorial-highlighted ",et,"{display:",({isFirstChannel:e})=>e?"block":"none",";}",ke.mq.M`
16    &:hover, &.tutorial-highlighted {
17      background-color: ${p.ue.color.background.surface};
18    }
19
20  `," &:focus-visible,.is-tabbing &:focus{background-color:",p.ue.color.navigation.currentSecondary,";}"),nt=(0,ge.css)("filter:invert(25%) grayscale(100%);opacity:0.5;&+svg{color:",p.ue.color.text.primary,";position:absolute;top:2px;right:2px;width:16px;height:16px;}"),ot={name:"je8g23",styles:"pointer-events:none"},at=(0,i.forwardRef)(({channelIndex:e,icons:t,imageSize:n,isFavorite:o,label:a,locked:r,onPress:s,...i},l)=>{const d=[ot];r&&d.push(nt);const c=0===e;return(0,C.FD)(tt,{...i,"aria-label":a,isFirstChannel:c,onClick:s,ref:l,type:"button",children:[(0,C.Y)(Ze.d,{"aria-hidden":!0,css:d,maxHeight:n||32,maxWidth:n||32,src:t.compactSrc||t.largeSrc||""}),(0,C.Y)(et,{"aria-hidden":!0,isFavorite:o,name:"HeartFill"}),r&&(0,C.Y)(Qe,{"aria-hidden":!0,name:"LockLocked"})]})});at.displayName="ChannelButton";const rt=(0,a.A)(at,{target:"e11u1rst3"})(({active:e,imageSize:t})=>(0,ge.css)("height:",t+16,"px;width:",t+16,"px;transition:transform 0.2s ease-in-out,background-color 0.2s ease-in-out;background-color:",p.ue.color.background.surface,";padding:6px;border:1px solid ",e?p.ue.color.border.inputfieldHover:"transparent",";",ke.mq.M`
21      &:hover {
22        background-color: ${e?p.ue.color.navigation.currentSecondary:p.ue.color.button.secondaryHover};
23        transform: ${e?"scale(1)":"scale(1.3)"};
24      }
25    `,";"),";"),st=(0,a.A)("div",{target:"e11u1rst2"})("display:flex;flex-direction:column;position:absolute;background-color:",p.ue.color.background.secondary,";max-width:",916,"px;width:100vw;border-top-left-radius:10px;border-top-right-radius:10px;overflow:hidden;bottom:calc(-50vh + 36px);left:calc((100% / 2) - 50vw);",ke.mq.M`
26    position: relative;
27    border-radius: 10px;
28    left: initial;
29    bottom: initial;
30    width: 75vw;
31    
32  `,";"),it=(0,a.A)("h1",{target:"e11u1rst1"})("display:flex;padding-top:16px;",p.ue.typography.headingTertiary," justify-content:center;color:",p.ue.color.text.primary,";"),lt=(0,a.A)("div",{target:"e11u1rst0"})("padding:0 ",16,"px 34px ",16,"px;max-height:65vh;overflow:auto;",ke.mq.M`
33    padding: 16px ${62}px 34px ${62}PX;
34  `,";"),dt=({channels:e,closeModal:t})=>{const{selectedChannelIndex:n,setSelectedChannelIndex:o}=(0,be.N)(),{t:a}=(0,l.Bd)(),r=(0,z.wA)(),s="mobile"===r?46:48,d="mobile"===r?62:64,c=(0,i.useRef)(null);return(0,i.useEffect)(()=>{c.current&&setTimeout(()=>c.current?.scrollIntoView({behavior:"smooth",block:"center"}),100)},[]),(0,C.FD)(st,{children:[(0,C.Y)(it,{children:a("CHANNELS")}),(0,C.Y)(Fe.K,{"aria-label":a("CLOSE"),icon:"Close",onClick:()=>t(),variant:"ghost"}
34),(0,C.Y)(lt,{children:(0,C.Y)(Ue,{columnGap:"24px",columnGapSmall:"8px",data:e,minColumnWidth:`${d}px`,renderItem:(e,r)=>{if((0,Ke.O)(e)&&(0,Ke.O)(r)){const i=()=>{t(),o(r)},l=n===r,d=`${a("CHANNEL_PICKER_SELECT_CHANNEL")} ${e.name}. ${e.isFavorite?a("ACCESSIBILITY_IS_FAVORITE_CHANNEL"):a("ACCESSIBILITY_IS_NOT_FAVORITE_CHANNEL")}`;return(0,C.Y)(rt,{active:l,icons:e.icons,id:e.id,imageSize:s,isFavorite:e.isFavorite,label:d,locked:e.locked,onPress:i,ref:l?c:null,title:d},e.id)}return null},rowGap:"24px",rowGapSmall:"8px"})})]})};var ct=n("../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_react-_23af7fe1a84405345a895683eefe299d/node_modules/@apollo/client/core/networkStatus.js"),pt=n("../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_react-_23af7fe1a84405345a895683eefe299d/node_modules/@apollo/client/react/hooks/useQuery.js"),mt=n("./src/codegen/graphql.ts"),ut=n("./src/shared/components/custom/FetchMoreAnchor/index.ts"),ht=n("./src/shared/components/custom/NoDataPlaceholder/NoDataPlaceholder.tsx"),gt=n("./src/epg/hooks/useGetRegionalChannelsSelection.ts"),_t=n("./src/epg/utils/setProgramChangeTimeout.ts"),ft=n("./src/epg/views/EpgView/EpgView.constants.ts"),xt=n("./src/epg/views/EpgView/components/Epg/hooks/useEpgNpvrEventListener.ts"),bt=n("./src/epg/views/EpgView/components/Epg/hooks/useFavoriteChannelsEventListener.ts"),yt=n("./src/epg/views/EpgView/components/Epg/components/ChannelEpgItem/index.ts");const vt=(0,a.A)(ht.t,{target:"e1s38mmv1"})({name:"oi3z9x",styles:"height:50vh"}),Et=(0,a.A)("section",{target:"e1s38mmv0"})("margin-top:",ft.MJ,"px;",ke.mq.M`
35  margin-top: ${ft.Hw}px;
36  `,";"),Ct=({channel:e,index:t,programs:n})=>(0,C.Y)(yt.p,{channel:e,index:t,programs:n,trackOnClick:({analytics:e,index:t})=>{(0,ue.L)(e)&&de.F.trackAssetClick({content_id:e.contentId,content_in_list_index:t,content_type:e.contentType,link_type:e.linkType,panel_row_index:0})}}),kt=()=>{const{t:e}=(0,l.Bd)(),{isModalRouteOpen:t}=(0,o.u)(),[n,a]=(0,i.useState)(Date.now()),[r]=(0,i.useState)(n),[s,c]=(0,i.useState)(!1),{isLoadingRegionalChannelsSelection:p,regionalChannelsSelection:m}=(0,gt.j)(),{isBreakpointS:u}=(0,X.G)();(0,Z.z)();const{data:h,fetchMore:g,loading:_,networkStatus:f,refetch:x}
36=(0,pt.I)(mt.FIg,{fetchPolicy:"cache-first",notifyOnNetworkStatusChange:!0,skip:p,variables:{numberOfChannels:16,numberOfPrograms:3,offset:0,regionalChannelsSelection:m,timestamp:r}});(0,Z.z)({id:"tv_channels"},t);const b=(0,i.useMemo)(()=>h?h.channels.channelItems.filter(Ke.O).map(e=>({channel:(0,ve.mE)(e),programs:(0,ve.d6)(e)})):[],[h]);(0,xt.K)(h?.channels.channelItems),(0,bt.y)({refetchQueries:[()=>x({numberOfChannels:b.length,offset:0})]});const y=f===ct.p.fetchMore,v=h&&!_?h.channels:null,E=v?.pageInfo.hasNextPage||!1,k=v?.pageInfo.nextPageOffset,[w,N]=(0,i.useState)(!1);(0,i.useEffect)(()=>{h&&w&&N(!1)},[h,w]),(0,i.useEffect)(()=>{if(b.length){const e=()=>{const e=Date.now();x({numberOfChannels:b.length,numberOfPrograms:3,offset:0,timestamp:e}),a(e)};return(0,_t.M)(e,b)}},[v,n,x,b]);const A=(0,i.useCallback)(()=>{_||y||!E||!k||w||g({variables:{numberOfChannels:16,offset:k,timestamp:n}}).catch(()=>{N(!0)})},[_,y,E,k,w,g,n]),S=(0,I.Z)(v);if((0,i.useEffect)(()=>{c(!(!_||h||S))},[h,_,S]),G("EPG_OVERVIEW",{skip:B(R.EPG_CHANNELS)||!u||"/epg/tv-channels"!==window.location.pathname||0===b.length}),!_&&0===b.length)return null;return!b.length&&!_?(0,C.Y)(vt,{title:(0,C.Y)(l.x6,{i18nKey:"EPG_NO_CHANNELS",children:(0,C.Y)(d.i,{href:e("branding:UPGRADE_TV_PACKAGE_URL")})})}):(0,C.FD)(Et,{"aria-label":e("TV_CHANNELS"),children:[(0,C.Y)(Ue,{asPlaceholder:s,columnGapSmall:"8px",data:b,minColumnWidth:`${Ee.zS}px`,renderItem:(e,t)=>(0,C.Y)(Ct,{channel:e?.channel,index:t||0,programs:e?.programs},e?.channel?.id),totalPlaceholderRowsToRender:1}),(0,C.Y)(ut.P,{hasNextPage:E,loading:_||y||w,onFetchMore:A,threshold:"30%"})]})};var wt=n("./src/epg/routes.tsx"),It=n("./src/shared/components/custom/ChevronButton/index.ts"),Nt=n("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]__@types+react@_c50f0c0243c085226dd2db3fe4767e30/node_modules/@radix-ui/react-select/dist/index.mjs");const At=(0,a.A)(Nt.l9,{target:"eubiiyz7"})("position:absolute;width:100%;border:none;border-radius:4px;height:40px;background:transparent;color:",p.ue.color.text.primary,";",p.ue.typography.navigationTextEmphasis," &:focus{outline:none;background:",p.ue.color.button.ghostHover,";box-shadow:0 0 0 3px ",p.ue.color.border.buttonGhostFocus,";}"),St=(0,a.A)("div",{target:"eubiiyz6"})({name:"hw8jsy",styles:"position:relative;display:inline-flex;gap:5px;align-items:center;justify-content:center;padding:12px 16px"}),Tt=(0,a.A)(Nt.UC,{target:"eubiiyz5"})("z-index:2;overflow:hidden;border-radius:6px;border:none;padding:8px;min-width:var(--radix-select-trigger-width);background:",p.ue.color.background.tertiary,";"),Lt=(0,a.A)(Nt.LM,{target:"eubiiyz4"})({name:"urqszi",styles:"display:flex;flex-direction:column;gap:4px"}),Ot=(0,a.A)(Nt.q7,{target:"eubiiyz3"})("user-select:none;display:flex;align-items:center;justify-content:space-between;padding:4px 8px;border-radius:6px;color:",p.ue.color.text.primary,";",p.ue.typography.navigationText," ",ke.mq.S`
37    padding: 8px 16px;
38  `," :hover{background:",p.ue.color.button.ghostHover,";transition:background 0.3s ease;}&[data-state='checked']{background:",p.ue.color.button.ghostHover,";transition:background 0.3s ease;}"),Pt=(0,a.A)(p.PA,{target:"eubiiyz2"})("margin-right:0;",ke.mq.S`
39    margin-right: 8px;
40  `,";"),Yt=(0,a.A)(p.PA,{target:"eubiiyz1"})("margin-left:8px;",ke.mq.S`
41    margin-right: unset;
42  `,";"),Rt=(0,a.A)("div",{target:"eubiiyz0"})("display:none;",ke.mq.S`
43    display: inline-block;
44  `,";"),jt=({activeDay:e,epgDays:t})=>{const{t:n}=(0,l.Bd)(),[o,a]=(0,i.useState)(!1),r=(0,se.Zp)(),s=t.find(({from:t})=>t===e),d=s?.label,c=s?.name;return(0,C.FD)(Nt.bL,{defaultValue:c,onOpenChange:()=>{a(!o)},onValueChange:e=>{const t=(0,se.tW)(wt.R.EPG_FILTERED,{filterBarType:e,selectedEpgView:Ee.Cc});r(t)},open:o,value:c,children:[(0,C.FD)(St,{children:[(0,C.Y)(At,{"aria-label":n("ACCESSIBILITY_GRID_EPG_DATEPICKER",{dayselect:d})}),(0,C.Y)(Nt.In,{children:(0,C.Y)(Pt,{name:"Calendar"})}),(0,C.Y)(Rt,{children:(0,C.Y)(Nt.WT,{"aria-hidden":"true"})}),(0,C.Y)(Rt,{children:(0,C.Y)(Nt.In,{children:(0,C.Y)(It.k,{as:"div",isOpen:o,onClick:()=>a(e=>!e)})})})]}),(0,C.Y)(Nt.ZL,{children:(0,C.Y)(Tt,{align:"center",position:"popper",side:"bottom",children:(0,C.Y)(Lt,{children:t.map(({label:e,name:t},n)=>(0,C.FD)(Ot,{value:t,children:[(0,C.Y)(Nt.p4,{children:e}),d===e?(0,C.Y)(Yt,{fontSize:16,name:"Check"}):null]},n))})})})]})};var Dt=n("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs");const Ht=(0,a.A)("div",{target:"e1keot0x4"})({name:"8irbms",styles:"display:inline-flex;align-items:center"}),Mt=(0,a.A)("input",{target:"e1keot0x3"})({name:"eivff4",styles:"display:none"}),Bt=(0,a.A)("div",{target:"e1keot0x2"})("cursor:pointer;position:relative;display:flex;border-radius:8px;background:",p.ue.color.background.surface,";box-sizing:border-box;"),Gt=(0,a.A)(Dt.P.div,{target:"e1keot0x1"})("position:absolute;box-sizing:border-box;border:0;top:0;padding:12px 16px;width:50%;height:100%;background:",p.ue.color.navigation.currentSecondary,";border-radius:6px;text-align:center;"),Ft=(0,a.A)(d.i,{shouldForwardProp:Je.A,target:"e1keot0x0"})(p.ue.typography.navigationText," box-sizing:border-box;padding:12px 16px;border:0;border-radius:6px;opacity:1;text-align:center;font-weight:",({hide:e})=>e?p.ue.typography.navigationText.fontWeight:p.ue.typography.navigationTextEmphasis.fontWeight,";color:",({hide:e})=>e?p.ue.color.text.secondary:p.ue.color.text.primary,";line-height:1;transition:font-weight 0.2s linear color 0.2s linear;transition-delay:0.1s;&:after{display:block;content:attr(data-text-fill);font-weight:",p.ue.typography.navigationTextEmphasis.fontWeight,";color:transparent;overflow:hidden;visibility:hidden;height:0;}"),Vt={left:{left:0,right:"auto"},right:{left:"auto",right:0}},qt=({alternatives:e,id:t,name:n,onValueChange:o,value:a,...r})=>{const{t:s}=(0,l.Bd)(),d=()=>{o(!a)},c=e.alt1.name.length>e.alt2.name.length?e.alt1.name+"-":e.alt2.name+"-",p=(0,i.useId)(),m=(0,i.useId)();return(0,C.FD)(Ht,{...r,children:[(0,C.Y)(Mt,{defaultChecked:a,id:t,name:n,type:"checkbox"}),(0,C.FD)(Bt,{children:[(0,C.Y)(Ft,{"aria-describedby":p,"data-text-fill":c,exact:!0,hide:!a,href:e.alt1.url,navLink:!0,onClick:d,children:e.alt1.name}),(0,C.Y)("span",{hidden:!0,id:p,children:s("ACCESSIBILITY_EPG_TIMELINE_VIEW_BUTTON_HINT")}),(0,C.Y)(Ft,{"aria-describedby":m,"data-text-fill":c,exact:!0,hide:a,href:e.alt2.url,navLink:!0,onClick:d,children:e.alt2.name}),(0,C.Y)("span",{hidden:!0,id:m,children:s("ACCESSIBILITY_EPG_GRID_VIEW_BUTTON_HINT")}),(0,C.Y)(Gt,{animate:a?"left":"right",initial:a?"left":"right",value:a,variants:Vt})]})]})};var $t=n("../../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/index.js"),zt=n("./src/epg/views/EpgView/components/Epg/utils/date.utils.ts");const Wt=(e,t)=>{const{epgNavDates:n,epgTodayDate:o}=(0,be.N)(),a=n.find(({name:e})=>t===e),r=e.trim();if(e){const e=decodeURIComponent(r.replace("#","")),t=(s=e,Object.keys(ve.od).find(e=>(0,ae.t)(e)===s));if(t&&t!==Ee.NM.DATE)return[t,ve.od[t](o)]}var s;return a&&a.from!==o?[Ee.NM.DATE,a.from]:[Ee.NM.NOW_AND_LATER,(0,zt.Q8)(o)]};const Ut={name:"1wb33nr",styles:"display:flex;flex-flow:row wrap"},Kt=(0,a.A)("div",{target:"e3myje83"})("display:flex;background-color:",p.ue.color.background.primary,";column-gap:8px;padding-bottom:17px;justify-content:space-between;",ke.mq.M`
45    flex-wrap: no-wrap;
46    column-gap: 40px;
47
48  `,";"),Zt=(0,a.A)("div",{target:"e3myje82"})(Ut," column-gap:8px;flex:1 0 auto;padding:8px 0;border-bottom:1px solid ",p.ue.color.border.subtle,";",ke.mq.M`
49    padding: 0;
50    flex: 0 0 auto;
51    border-bottom: 0;
52  `,";"),Jt=(0,a.A)(Zt,{target:"e3myje81"})(),Xt=(0,a.A)("div",{target:"e3myje80"})("padding:8px 0;",ke.mq.M`
53    padding: 0;
54    display: block;
55    width: auto;
56  `,";"),Qt="epg-nav-date-picker-container",en=({className:e,showOverview:t})=>{const{t:n}=(0,l.Bd)(),[o,a]=(0,i.useState)(!t),r={alt1:{name:n("TV_GUIDE"),url:`/epg/${Ee.Cc}`},alt2:{name:n("TV_CHANNELS"),url:`/epg/${Ee.Ml}`}};return(0,C.FD)(Kt,{className:e,children:[(0,C.Y)(Jt,{id:Qt}),(0,C.Y)(Xt,{children:(0,C.Y)(qt,{alternatives:r,onValueChange:a,value:o})})]})},tn=({datePickerDates:e,onSelectionChanged:t,today:n})=>{const[o,a]=(0,i.useState)(!1),[r,s]=(()=>{const{hash:e}=(0,se.zy)(),{filterBarType:t}=(0,se.g)(),[n,o]=Wt(e,t);return[n,o]})(),{t:d}=(0,l.Bd)();if((0,i.useEffect)(()=>{t({selectedTime:s,timeSelection:r})},[r,t,s]),(0,i.useEffect)(()=>{a(!0)},[]),!o)return null;const c=document.getElementById(Qt);return c?(0,C.Y)(C.FK,{children:(0,$t.createPortal)((0,C.FD)(C.FK,{children:[(0,C.Y)(ce.p,{id:Ee.N6,label:d("GO_TO",{value:d("CHANNELS")}),onClick:()=>{const e=document.querySelector(`#${Ee.jf}`);e&&e.focus()}}),e.length>0&&(0,C.Y)(jt,{activeDay:Ee.NM.DATE===r?s:n,epgDays:e})]}),c)}):(console.error(`Element with ID ${Qt} not found.`),null)},nn=({direction:e,width:t=0})=>{const n=(0,p.N8)(p.ue.color.background.primary),o=(0,ge.css)(e,":0;background-image:linear-gradient(\n      to ",e,",\n      ",n,"00 0%,\n      ",n,"00 5%,\n      ",n," 100%\n    );");return(0,C.Y)(Dt.P.div,{css:o,style:{width:t}})};var on=n("../../../node_modules/.pnpm/[email protected]/node_modules/lodash.debounce/index.js"),an=n.n(on);const rn=(0,a.A)("button",{target:"ec7x8d1"})("display:flex;justify-content:center;align-items:center;width:",Xe,"px;height:",Xe,"px;padding:0;margin:0;background:0;border:0;border-radius:0;background-color:",p.ue.color.background.primary,";cursor:pointer;&:hover,&.tutorial-highlighted{>
56svg{background-color:",p.ue.color.button.secondaryDefault,";}}"),sn=(0,a.A)(p.PA,{target:"ec7x8d0"})("background-color:",p.ue.color.background.surface,";color:",p.ue.color.text.primary,";width:",24,"px;height:",24,"px;border-radius:50%;"),ln=({direction:e,onPress:t})=>{const{t:n}=(0,l.Bd)(),o="left"===e?n("CHANNEL_PICKER_PREVIOUS_CHANNELS",{defaultValue:"Show previous channels"}):n("CHANNEL_PICKER_NEXT_CHANNELS",{defaultValue:"Show more channels"}),a="right"===e?"ChevronRight":"ChevronLeft";return(0,C.Y)(rn,{"aria-label":o,"data-tutorial-id":`${e}Arrow`,onClick:t,children:(0,C.Y)(sn,{"aria-hidden":!0,name:a})})};const dn=(0,a.A)("section",{target:"etwgu792"})("background-color:",p.ue.color.background.primary,";>",rn,"{flex:0 0 auto;}"),cn=(0,a.A)("ul",{target:"etwgu791"})("margin:0;padding:0;list-style:none;position:relative;display:flex;flex-flow:row no-wrap;overflow-x:auto;&::-webkit-scrollbar{display:none;}",tt,"{flex:0 0 auto;}");var pn={name:"1wf8jf",styles:"right:0"},mn={name:"1ode3cm",styles:"left:0"};const un=(0,a.A)("div",{shouldForwardProp:Je.A,target:"etwgu790"})("position:absolute;z-index:",c.M.EPG.CHANNEL_PICKER_NAV_BUTTONS,";top:0;",({position:e})=>"left"===e?mn:pn,";display:flex;transform:",({isVisible:e,position:t})=>e?"translateX(0)":`translateX(${"left"===t?-30:30}px)`,";visibility:",({isVisible:e})=>e?"visible":"hidden",";transition:all 0.35s ease-in-out;pointer-events:",({isVisible:e})=>e?"auto":"none",";");var hn=n("./src/epg/views/EpgView/components/Epg/components/ChannelPicker/ChannelPicker.utils.ts");const gn=(0,a.A)(Dt.P.div,{target:"ezd917n1"})("height:",Xe,"px;width:100%;display:flex;flex-flow:row no-wrap;align-items:center;"),_n=ge.keyframes`
57    0% {
58        background-color: rgba(255, 255, 255, 0.14);
59    }
60    100% {
61        background-color: rgba(255, 255, 255, 0.03);
62    }
63`,fn=(0,a.A)("span",{target:"ezd917n0"})("position:relative;display:block;flex:0 0 ",Xe,"px;width:",Xe,"px;height:",Xe,"px;&::before{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:block;width:",34,"px;height:",34,"px;border-radius:50%;background-color:rgba(255, 255, 255, 0.14);",({animate:e})=>e&&(0,ge.css)("animation:",_n," 1s ease infinite alternate;"),";}"),xn=({className:e})=>(0,C.Y)(gn,{animate:{opacity:1},className:e,initial:{opacity:0}
63,transition:{duration:.2},children:Array(12).fill(0).map((e,t)=>(0,C.Y)(fn,{animate:!0},t))},"skeleton-loader"),bn=({channels:e,fullyVisibleChannels:t,numberOfSelectedChannels:n,onChannelSelected:o,selectedChannelIndex:a})=>{const{t:r}=(0,l.Bd)();return(0,C.Y)(C.FK,{children:e.length>0?e.map((s,i)=>{const l=i>=a&&i<a+n,d=i===Math.min(t-1,e.length-1)?"right-most-channel-button":0===i?"left-most-channel-button":"",c=`${r("CHANNEL_PICKER_SELECT_CHANNEL")} ${s.name}. ${s.isFavorite?r("ACCESSIBILITY_IS_FAVORITE_CHANNEL"):r("ACCESSIBILITY_IS_NOT_FAVORITE_CHANNEL")}`;return(0,C.Y)("li",{children:(0,C.Y)(at,{...s,"aria-current":l,channelIndex:i,"data-tutorial-id":d,label:c,onPress:()=>o(i),title:c})},i)}):(0,C.Y)(xn,{},"skeleton-loader")})},yn=(0,a.A)("div",{target:"esvmc590"})("position:absolute;left:0;top:0;height:",Xe,"px;background-color:",p.ue.color.navigation.currentSecondary,";border:1px solid ",p.ue.color.border.inputfieldHover,";border-radius:4px;pointer-events:none;box-sizing:border-box;"),vn=(0,i.memo)(({selectCount:e,selectedChannelIndex:t})=>{const n={left:t*Xe,width:e*Xe};return(0,C.Y)(yn,{style:n})},(e,t)=>e.selectCount===t.selectCount&&e.selectedChannelIndex===t.selectedChannelIndex);vn.displayName="ChannelSelectionWindow";const En=({allLoaded:e,channels:t,className:n,onChannelSelected:o,selectCount:a})=>{const{selectedChannelIndex:r,setSelectedChannelIndex:s}=(0,be.N)(),{t:d}=(0,l.Bd)(),c=(0,i.useRef)(null),[p,m]=(0,i.useState)({left:!1,right:!1}),{width:u=1}=(0,K.w)({ref:c}),{isBreakpointS:h}=(0,X.G)(),g=(0,i.useRef)(!1),_=Math.floor(u/Xe),f=(0,i.useMemo)(()=>an()(e=>{if(e){const n=e.scrollLeft>0,o=e.scrollLeft<e.scrollWidth-e.clientWidth&&_<t.length;m({left:n,right:o})}},200),[t.length,_]);(0,i.useEffect)(()=>{const e=c.current;if(!e)return;const t=e=>{const t=e.target;t&&f(t)};return e.addEventListener("scroll",t),()=>{e.removeEventListener("scroll",t)}},[f]);const x=(0,i.useCallback)(e=>{s(e),(0,hn.Z)({selectedIndex:e});const n=t.slice(e,e+a).map(({id:e})=>e);n.length&&setTimeout(()=>{o({limit:n.length,offset:e})},50)},[s,t,a,o]),b=(0,i.useCallback)(({animate:e,newChannelIndex:t})=>{const n=_*Xe,o=-n/2+t*Xe-(u-n)/2+a/2*Xe;c.current?.scrollTo({behavior:e?"smooth":"auto",left:o}),x(t)},[_,u,a,x]);(0,i.useEffect)(()=>{if(1!==u&&!g.current&&e){const e=(0,hn.M)();b({animate:!1,newChannelIndex:e?.selectedIndex||0}),g.current=!0}},[u,e,b]),(0,i.useEffect)(()=>{g.current&&(!B(R.EPG_CHANNELS)&&h||r>t.length?b({animate:!1,newChannelIndex:0}):b({animate:!0,newChannelIndex:r}))},[t.length,h,b,r]);(0,i.useEffect)(()=>{g.current&&f(c.current)},[f]);const y=p.right&&h,v=p.left&&h,E=t.slice(r,r+a).map(({name:e})=>e).join(", ");return(0,C.FD)(dn,{"aria-label":`${d("ACCESSIBILITY_CHANNEL_PICKER_BUTTON_LABEL")}. ${d("ACCESSIBILITY_SHOWING_THE_TV_GUIDE_FOR_CHANNELS_X_AT_DATE_ANNOUNCEMENT",{channelName:E,day:""})}`,"aria-live":"polite",className:n,children:[(0,C.Y)(ce.p,{id:Ee.jf,label:d("GO_TO",{value:d("ACCESSIBILITY_BROADCASTS_NOW")}),onClick:()=>{const e=document.querySelector(`#${Ee.AO} .skip-link`);e&&e?.focus()}}),(0,C.FD)(un,{"aria-hidden":!v,isVisible:v,position:"left",children:[(0,C.Y)(ln,{direction:"left",onPress:()=>{c.current?.scrollBy({behavior:"smooth",left:-a*Xe})}}),(0,C.Y)(nn,{direction:"left",width:20})]}),(0,C.FD)(cn,{ref:c,role:"list",children:[(0,C.Y)(bn,{channels:t,fullyVisibleChannels:_-(p.left?1:0)-(p.right?1:0),numberOfSelectedChannels:a,onChannelSelected:e=>{const n=e+a>=t.length;return b(n?{animate:!0,newChannelIndex:t.length-a}:{animate:!0,newChannelIndex:e})},selectedChannelIndex:r},"channel-row"),t.length>0&&(0,C.Y)(vn,{selectCount:Math.min(t.length-r,a),selectedChannelIndex:r})]}),(0,C.FD)(un,{"aria-hidden":!y,isVisible:y,position:"right",children:[(0,C.Y)(nn,{direction:"right",width:20}),(0,C.Y)(ln,{direction:"right",onPress:()=>{c.current?.scrollBy({behavior:"smooth",left:a*Xe})}})]})]})};var Cn=n("./src/shared/components/custom/MarginContainer/MarginContainer.tsx");const kn=(0,a.A)(ht.t,{target:"ebi47z44"})({name:"oi3z9x",styles:"height:50vh"}),wn=(0,a.A)(en,{target:"ebi47z43"})("padding-top:12px;padding-bottom:17px;",ke.mq.M`
64      padding-bottom: 16px;
65    `," ",ke.mq.L`
66      padding-bottom: 16px;
67    `,";"),In=(0,a.A)(En,{target:"ebi47z42"})({name:"1dabe76",styles:"padding-bottom:24px"}),Nn=(0,a.A)(Cn._9,{target:"ebi47z41"})("min-height:100vh;",wn,"{position:sticky;top:",({pageOffset:e})=>e+ft.Cn,"px;z-index:",c.M.EPG.NAVBAR,";",({pageOffset:e})=>(0,ge.css)("top:",e+ft.Cn,"px;",ke.mq.M`
68        top: ${e+ft.Wi}
68px;
69      `,";",ke.mq.L`
70        top: ${e+ft.Cd}px;
71      `,";"),";}",In,"{position:sticky;top:",({pageOffset:e})=>e+ft.Mn,"px;z-index:",c.M.EPG.CHANNEL_PICKER,";",({pageOffset:e})=>(0,ge.css)("top:",e+ft.Mn,"px;",ke.mq.M`
72        top: ${e+ft.Wi+ft.MJ}px;
73      `,";",ke.mq.L`
74        top: ${e+ft.Cd+ft.MJ}px;
75      `,";"),";}",Re,"{",({pageOffset:e})=>(0,ge.css)("top:",e+ft.Mn+ft.Hw,"px;",ke.mq.M`
76        top: ${e+ft.Wi+ft.MJ+ft.Hw}px;
77      `,";",ke.mq.L`
78        top: ${e+ft.Cd+ft.MJ+ft.Hw}px;
79      `,";"),";}",Ae,"{",({channelsHeaderHeight:e,pageOffset:t})=>(0,ge.css)("top:-",t+ft.Mn+ft.Hw+e,"px;",ke.mq.M`
80        top: -${t+ft.Wi+ft.MJ+ft.Hw+e}px;
81      `,";",ke.mq.L`
82        top: -${t+ft.Cd+ft.MJ+ft.Hw+e}px;
83      `,";"),";}"),An=(0,a.A)(m.$,{target:"ebi47z40"})("position:fixed;bottom:44px;right:16px;z-index:",c.M.EPG.ALL_CHANNELS_BUTTON,";background-color:",p.ue.color.button.primaryPressed,";"),Sn=ie(),Tn=({channelsHeaderRef:e,pagename:t})=>{const{epgTimeBlocks:n,epgTodayDate:o,isLoadingEpgTimeBlocks:a,isLoadingSelectedChannels:r,refetchEpgDateList:s,selectedChannels:l,selectedTime:d}=(0,be.N)(),c=a,p=l,m=r;(0,i.useEffect)(()=>{c||((0,le.O)(!0),Sn.scrollTo((0,ve.Kh)(o,d,"")))},[o,c,d]),(0,i.useEffect)(()=>Sn.deactivate,[]),(0,i.useEffect)(()=>()=>(0,le.O)(!1),[]);const u=1e3*Math.floor(10*Math.random())*60,h=((e=te())=>e+30*Q.MA)()+u;return(0,U.s)(h,s),(0,C.Y)(Ge,{channels:p,channelsHeaderRef:e,loadingChannels:m,loadingTimeBlocks:c,pagename:t,timeBlocks:n})},Ln=({channelsHeaderRef:e,numberOfChannelsToDisplay:t})=>{const{allChannels:n,epgNavDates:a,epgTodayDate:r,isLoadingAllChannels:c,isLoadingEpgTimeBlocks:p,isLoadingSelectedChannels:m,loadNewChannels:u,loadNewTimeSelection:h,selectedTime:g}=(0,be.N)(),_=!n.length&&!c,f=n.length||0,[x,b]=(0,i.useState)(!1),{isBreakpointS:y}=(0,X.G)(),{isModalRouteOpen:v}=(0,o.u)(),E=f>t?"EPG_CHANNELS":"EPG_CHANNELS_FEW",k=c||p||m||v||0===g,w=0===g?0:(0,ne.c)((0,ee.o)((0,oe.L)(g,12)),(0,ee.o)(new Date)),I=(0,i.useMemo)(()=>{return(e=w)<0?{id:"tv_guide_day",params:{dayDifference:String(e)}}:e>0?{id:"tv_guide_day",params:{dayDifference:`+${e}`}}:{id:"tv_guide"};var e},[w]);G(E,{skip:!y||"/epg/tv-guide"!==window.location.pathname||0===f}),(0,Z.z)(I,k);const N=(0,i.useCallback)(e=>{u(e)},[u]),A=(0,i.useCallback)(({selectedTime:e,timeSelection:t})=>{h({timeSelection:t,timestamp:e})},[h]);return _?(0,C.Y)(kn,{title:(0,C.Y)(l.x6,{i18nKey:"EPG_NO_CHANNELS",children:(0,C.Y)(d.i,{href:(0,ae.t)("branding:UPGRADE_TV_PACKAGE_URL")})})}):(0,C.FD)(C.FK,{children:[(0,C.Y)(tn,{datePickerDates:a,onSelectionChanged:A,today:r}),(0,C.Y)(In,{allLoaded:!c,channels:n,onChannelSelected:N,selectCount:t}),(0,C.Y)(Tn,{channelsHeaderRef:e,pagename:I.id}),(0,C.Y)(s.Z,{children:(0,C.Y)(W.aF,{disableHeader:!0,dismissable:!1,isConfirmDialog:!1,onHide:()=>b(!1),overlayEventTrackingData:{overlay_title:"Channel Selector Grid",page_name:I.id},visible:x,children:(0,C.Y)(dt,{channels:n,closeModal:()=>b(!1)})})}),n.length?(0,C.Y)(An,{"aria-label":(0,ae.t)("ACCESSIBILITY_CHANNEL_PICKER_BUTTON_LABEL"),"data-tutorial-id":"all-channels-button",icon:"ProgramGuide",onClick:()=>b(!0),variant:"primary",children:(0,ae.t)("CHANNELS")}):null]})},On=()=>{const{selectedEpgView:e}=(0,se.g)(),t=(0,i.useRef)(null),{width:n}=(0,J.l)(),o=(0,$.I)(n),a=(0,z.yq)(),r=n-2*o,s=Math.floor((r-Ee.zS)/(Ee.CQ+Ee.zS)+1),l=e===Ee.Ml,{height:d=1}=(0,K.w)({ref:t});return(0,z.st)({solidBackground:!0}),(0,i.useEffect)(()=>{e&&(0,L.Z)("epgView",e)},[e]),(0,i.useEffect)(()=>(document.body.style.overscrollBehaviorY="none",()=>{document.body.style.overscrollBehaviorY="auto"}),[]),(0,C.FD)(C.FK,{children:[(0,C.Y)(q.J,{title:(0,ae.t)("TV")}),(0,C.Y)(re.bL,{children:(0,C.Y)("h1",{children:(0,ae.t)("TV")})}),(0,C.FD)(Nn,{channelsHeaderHeight:d,"data-testid":"tv-page",pageOffset:a,children:[(0,C.Y)(wn,{showOverview:l}),l?(0,C.Y)(kt,{}):(0,C.Y)(be.U,{children:(0,C.Y)(Ln,{channelsHeaderRef:t,numberOfChannelsToDisplay:s})})]}),(0,C.Y)(V,{})]})}},"./src/shared/components/custom/ChevronButton/index.ts"(e,t,n){n.d(t,{k:()=>m});var o=n("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected]_support_a0dcb4b0ae680db98626d6fd11a2b9d9/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),a=n("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js"),r=n("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs"),s=n("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");const i=(0,o.A)("button",{target:"exa6sxv3"})("font-size:inherit;font-family:inherit;line-height:inherit;cursor:pointer;background:none;border:0;outline:0;display:inline-block;position:relative;display:flex;flex-direction:row;align-items:center;transition:color ease 0.2s;padding:0;color:",a.ue.color.text.primary,";"),l=(0,o.A)("div",{target:"exa6sxv2"})({name:"ho1qnd",styles:"display:flex;flex-direction:row"}),d=(0,o.A)(r.P.div,{target:"exa6sxv1"})({name:"2s335u",styles:"margin-left:8px;display:flex;align-items:center;justify-content:center;height:20px;width:20px;border-radius:50%;transition:background-color ease 0.2s"}),c=(0,o.A)(a.PA,{target:"exa6sxv0"})("width:24px;height:24px;path{transition:stroke ease 0.2s;stroke:",a.ue.color.text.primary,";}"),p={duration:.3},m=({isOpen:e,onClick:t,title:n,...o})=>(0,s.FD)(i,{onClick:t?()=>t(!e):void 0,...o,children:[n&&(0,s.Y)(l,{children:n}),(0,s.Y)(d,{animate:e?"open":"closed",initial:"closed",variants:{closed:{rotate:0,transition:p},open:{rotate:-180,transition:p}},children:(0,s.Y)(c,{name:"ChevronDown"})})]})},"./src/shared/components/custom/FadeInImage/index.ts"(e,t,n){n.d(t,{D:()=>m});var o=n("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected]_support_a0dcb4b0ae680db98626d6fd11a2b9d9/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),a=n("./src/shared/utils/platform/isMobileSafari.ts"),r=n("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs"),s=n("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),i=n("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");const l={name:"1rdt7r5",styles:"width:100%;height:auto;margin:auto 0"},d={name:"me6kw9",styles:"width:auto;height:100%;margin:0 auto"},c=(0,o.A)(r.P.img,{target:"el1x4jf0"})("will-change:opacity;display:block;",({orientation:e})=>"vertical"===e?d:l,";"),p={hidden:{opacity:0}
83,visible:{opacity:1,transition:{duration:.38},transitionEnd:{opacity:""}}},m=({alt:e="",className:t,fallbackSrc:n,imageOrientation:o,isVerticalInHorizontal:r=!1,onAnimationComplete:l,onErrorLoadingImage:d,onLoad:m,src:u,srcSet:h,...g})=>{const _=u||n,[f,x]=(0,s.useState)(_===n),[b,y]=(0,s.useState)(!1),v="vertical"===o?"vertical":f&&r?"horizontal":"vertical";return(0,i.Y)(c,{alt:e,animate:b?"visible":"hidden",className:t,decoding:a.H?"sync":"auto",initial:"hidden",onAnimationComplete:l?e=>{"visible"===e&&l()}:void 0,onError:()=>{!f&&n?(x(!0),d?.(!0)):n||d?.(!0)},onLoad:e=>{m?.(e),y(!0)},orientation:v,src:f&&n?n:_,srcSet:f?void 0:h,variants:p,...g})}},"./src/shared/components/custom/FetchMoreAnchor/index.ts"(e,t,n){n.d(t,{P:()=>s});var o=n("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),a=n("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-intersection-observer/dist/index.mjs"),r=n("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");const s=({containerRef:e,hasNextPage:t,loading:n,loadingComponent:s,onFetchMore:i,threshold:l="0%"})=>{const[d,c]=(0,a.Wx)({root:e?.current,rootMargin:l});return(0,o.useEffect)(()=>{c&&t&&!n&&i()},[t,c,n,i]),t?n?s||null:(0,r.Y)("div",{"data-testid":"fetch-more-anchor",ref:d}):null}},"./src/shared/components/custom/IconImage/index.ts"(e,t,n){n.d(t,{d:()=>c});var o=n("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected]_support_a0dcb4b0ae680db98626d6fd11a2b9d9/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),a=n("../../../node_modules/.pnpm/@[email protected]/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js"),r=n("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),s=n("./src/shared/utils/image/getImageSources.ts"),i=(n("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),n("./src/shared/components/custom/FadeInImage/index.ts")),l=n("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");const d=(0,o.A)(i.D,{shouldForwardProp:a.A,target:"eiw70cm0"})("display:inline-block;height:auto;",({maxHeight:e,maxWidth:t})=>(0,r.css)("max-height:",e,"px;max-width:",t,"px;"),";"),c=({className:e,maxHeight:t=80,maxWidth:n=152,onErrorLoadingImage:o,onFinishedLoadingImage:a,src:r,title:i,...c})=>{const p=`icon-image-${i}`,m=(0,s.C)({height:t,uri:r,width:n});return(0,l.Y)(d,{...c,alt:i||"",className:e,"data-testid":p,imageOrientation:"horizontal",maxHeight:t,maxWidth:n,onErrorLoadingImage:o,onLoad:()=>{a?.(!0)},src:m.src,srcSet:m.srcSet})}},"./src/shared/components/custom/Image/index.ts"(e,t,n){n.d(t,{_:()=>o._});var o=n("./src/shared/components/custom/Image/Image.tsx")},"./src/shared/components/custom/Label/utils.ts"(e,t,n){n.d(t,{q:()=>a});var o=n("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js");const a=e=>{const t=e?.textStyle,n=e?.textColor,a=e?.backgroundColor,r=o.ue.typography[t]||{},s=n&&(0,o.ND)(n);return{backgroundColor:a&&(0,o.ND)(a),color:s,...r}}},"./src/shared/components/custom/MediaDetails/components/MediaModal/index.ts"(e,t,n){n.d(t,{q:()=>C,K:()=>b});var o=n("./src/shared/hooks/usePrevious.ts"),a=n("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.oneapp-web-analytics/dist/index.js"),r=n("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs"),s=n("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),i=n("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/react-i18next/dist/es/index.js"),l=n("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-62JRHF6Z.mjs"),d=n("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected]_support_a0dcb4b0ae680db98626d6fd11a2b9d9/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),c=n("./src/shared/components/ui/Button/Button.tsx"),p=n("./src/shared/constants/zindex.ts"),m=n("./src/shared/utils/breakpoints/mq.ts"),u=n("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js"),h=n("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs");const g=(0,d.A)(h.P.div,{target:"e1vaf3jp4"})("box-sizing:border-box;display:flex;justify-content:center;left:0;position:absolute;top:0;will-change:scroll-position;height:100%;width:100%;z-index:",p.M.CDP.MODAL_CONTAINER,";"),_=(0,d.A)("div",{target:"e1vaf3jp3"})({name:"1qg9gy1",styles:"display:flex;position:absolute;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:flex-start"}),f=(0,d.A)(h.P.div,{target:"e1vaf3jp2"})("display:flex;z-index:",p.M.CDP.MODAL_CONTENT,";will-change:transform;position:absolute;",m.mq.S`
84    border-radius: 8px;
85    margin-top: 40px;
86    width: calc(100% - 30px);
87  `," ",m.mq.L`
88    margin-top: 80px;
89    width: initial;
90  `," background-color:",u.ue.color.background.primary,";"),x=(0,d.A)("div",{target:"e1vaf3jp1"})("top:0;left:0;right:0;bottom:0;position:fixed;z-index:",p.M.CDP.MODAL_BACKDROP,";background-color:",u.ue.color.background.overlay60,";"),b=(0,d.A)(c.$,{target:"e1vaf3jp0"})("position:absolute;right:12px;top:12px;z-index:",p.M.CDP.MODAL_CLOSE_BUTTON,";");var y=n("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");const v={enter:{opacity:1,scale:1,transition:{duration:.3,ease:"anticipate",type:"tween"}},entering:{opacity:0,scale:.9},leave:{opacity:0,scale:.9,transition:{duration:.3}}},E={hidden:{opacity:0,transition:{duration:.3}},visible:{opacity:1,transition:{duration:.3}}},C=({children:e,onClose:t,...n})=>
90{const d=(0,l.zy)(),[c,p]=(0,s.useState)(!0),m=(0,s.useRef)(null),u=(0,o.Z)(d),{t:h}=(0,i.Bd)();(0,s.useEffect)(()=>{m.current?.contains(document.activeElement)||m.current?.focus()},[]),(0,s.useEffect)(()=>{u?.key&&d.key!==u?.key&&(p(!0),setTimeout(()=>m.current?.focus()))},[d.key,u?.key]);return(0,y.Y)(r.N,{children:c&&(0,y.Y)(g,{animate:"visible","data-testid":"media-modal-container",exit:"hidden",initial:"hidden",onKeyDown:e=>{"Escape"===e.key&&m.current?.contains(document.activeElement)&&((0,a.trackModalClose)({modal_close_action:"escape key",page_name:d.pathname}),p(!1))},ref:m,tabIndex:0,variants:E,...n,children:(0,y.FD)(_,{children:[(0,y.Y)(x,{"data-testid":"media-modal-backdrop",onClick:()=>{(0,a.trackModalClose)({modal_close_action:"click outside modal",page_name:d.pathname}),p(!1)}}),(0,y.FD)(f,{animate:"enter",exit:"leave",initial:"entering",onAnimationComplete:e=>{"leave"===e&&t()},variants:v,children:[e,(0,y.Y)(b,{"aria-label":h("CLOSE"),"data-testid":"media-modal-close-button",icon:"Close",onClick:()=>{(0,a.trackModalClose)({modal_close_action:"close button",page_name:d.pathname}),p(!1)},variant:"ghost"})]})]})})})}},"./src/shared/components/ui/ProgressBar/ProgressBar.tsx"(e,t,n){n.d(t,{z:()=>g});var o=n("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected]_support_a0dcb4b0ae680db98626d6fd11a2b9d9/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),a=n("../../../node_modules/.pnpm/@[email protected]/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js"),r=n("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js"),s=n("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]__@types+reac_4ee85bf68976ddc17bc976f28622fb4e/node_modules/@radix-ui/react-progress/dist/index.mjs"),i=n("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected][email protected][email protected]/node_modules/react-i18next/dist/es/index.js"),l=n("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js");const d=e=>"number"==typeof e?e||null:"object"==typeof e&&e.startTime&&e.endTime?((e,t)=>{if(!e||!t)return 0;const n=Date.now();if(t<n)return 100;if(n<e)return 0;const o=Math.max(n-e,0)/(t-e);return Math.round(100*o)})(e.startTime,e.endTime):null;var c=n("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");const p=e=>`${Math.max(Math.min(e,100),0)}%`;var m={name:"51l2f1",styles:"position:absolute;bottom:0;left:0;right:0"};const u=(0,o.A)(s.bL,{shouldForwardProp:a.A,target:"eqld7xx1"})("width:100%;height:4px;background-color:",r.ue.color.content.progressDuration,";overflow:hidden;border-radius:",({rounded:e})=>e?"10px":"initial",";",({position:e})=>"bottom"===e?m:null,";"),h=(0,o.A)(s.C1,{target:"eqld7xx0"})("height:100%;background-color:",({color:e})=>e||r.ue.color.content.progressElapsed,";transition:width 1s;border-top-right-radius:10px;border-bottom-right-radius:10px;"),g=({color:e,position:t="default",progress:n,progressId:o,...a})=>{const r=(e=>{const[t,n]=(0,l.useState)(d(e)),o="object"==typeof e?e.startTime:void 0,a="object"==typeof e?e.endTime:void 0,r="number"==typeof e?e:void 0;return(0,l.useEffect)(()=>{if(o&&a){const t=setInterval(()=>n(d(e)),1e3);return()=>clearInterval(t)}e!==t&&n(d(e))},[o,a,r,e,t]),t})(n),{t:s}=(0,i.Bd)();return null!==r?(0,c.Y)(u,{"aria-label":s("ACCESSIBILITY_CONTENT_PROGRESS"),getValueLabel:()=>s("ACCESSIBILITY_ELAPSED_PERCENT",{percent:r}),id:o,position:t,value:r,...a,children:(0,c.Y)(h,{color:e,style:{width:p(r)}})}):null}},"./src/shared/components/ui/ProgressBar/index.ts"(e,t,n){n.d(t,{z:()=>o.z});var o=n("./src/shared/components/ui/ProgressBar/ProgressBar.tsx")},"./src/shared/hooks/useConfirmDialog.ts"(e,t,n){n.d(t,{G:()=>s});var o=n("./src/shared/components/ui/Modal/index.ts"),a=n("../../../node_modules/.pnpm/[email protected][email protected]/node_modules/i18next/dist/esm/i18next.js"),r=n("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js");const s=()=>{const{closeModal:e,showModal:t}=(0,o.k3)();return{showConfirmDialog:(0,r.useCallback)(({confirmButtonText:n,text:o,title:r})=>new Promise(s=>{t({actions:[{label:(0,a.t)("CANCEL"),onClick:()=>{e(()=>s(!1))},variant:"secondary"},{label:n,onClick:()=>{e(()=>s(!0))}}
90],children:o,dismissable:!0,onClose:()=>s(!1),overlayEventTrackingData:{overlay_title:r},title:r})}),[e,t])}}},"./src/shared/hooks/useMutationError.ts"(e,t,n){n.d(t,{n:()=>s});var o=n("./src/shared/components/ui/Snackbar/index.ts"),a=n("./src/shared/utils/getRequestErrorMessage.ts"),r=n("../../../node_modules/.pnpm/[email protected][email protected]/node_modules/i18next/dist/esm/i18next.js");const s=()=>{const{addSnackbar:e}=(0,o.k)(),t=t=>e({actionButtonText:(0,r.t)("CLOSE"),content:t,dismissOnActionClick:!0,variant:"negative"});return{showMutationError:e=>{"object"==typeof e&&e&&"__typename"in e&&"message"in e&&"string"==typeof e.message?t(e.message):e instanceof Error?t((0,a.v)(e)):t((0,r.t)("ERRORS_DEFAULT_MESSAGE"))}}}},"./src/shared/hooks/useTrackPageViewEvent.ts"(e,t,n){n.d(t,{z:()=>s});var o=n("./src/core/analytics/tracker.ts"),a=n("./src/core/router/hooks/useIsModalRouteOpen/index.ts"),r=n("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js");const s=(e,t)=>{const{isModalRouteOpen:n}=(0,a.u)(),s=(0,r.useRef)("");(0,r.useLayoutEffect)(()=>{const a=e&&s.current===JSON.stringify(e);n||a||t||!e||(o.F.trackPage({page_name:e,page_variant:"page"}),s.current=JSON.stringify(e))},[n,e,t])}},"./src/shared/utils/date/constants.ts"(e,t,n){n.d(t,{CZ:()=>s,MA:()=>r,OY:()=>o,iW:()=>a});const o=1e3,a=60*o,r=60*a,s=24*r},"./src/shared/utils/date/getReadableTime.ts"(e,t,n){n.d(t,{g:()=>a});var o=n("../../../node_modules/.pnpm/[email protected]/node_modules/date-fns/format.js");const a=e=>e?(0,o.GP)(e,"HH:mm"):"—:—"},"./src/shared/utils/getRequestErrorMessage.ts"(e,t,n){n.d(t,{v:()=>r});var o=n("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/ErrorTypes.js"),a=n("../../../node_modules/.pnpm/[email protected][email protected]/node_modules/i18next/dist/esm/i18next.js");const r=(e,t)=>{if(e instanceof o.RequestError&&e.responseText){const n=e.responseText?JSON.parse(e.responseText):{};if(n.errorCode)return t?.[n.errorCode]||(0,a.t)(`ERRORS_S_${n.errorCode}`)}return(0,a.t)("AN_UNKNOWN_ERROR_HAS_OCCURRED")}},"./src/shared/utils/getResponsivePosterImage.utils.ts"(e,t,n){n.d(t,{V:()=>l});var o=n("./src/shared/images/fallback-landscape-default.png");const a=n.p+"oneweb/images/fallback-portrait-default-2c52974b.png?v=1.208.1";var r=n("./src/shared/utils/image/getImageSources.ts");const s={bigLandscape:[462,258],landscape:[308,172],portrait:[200,300],square:[200,200]},i={bigLandscape:o,landscape:o,portrait:a,square:void 0},l=({displayType:e,uri:t})=>{const n=s[e];if(!t||!n)return{fallbackSrc:i[e],src:void 0,srcSet:void 0};const o=(0,r.C)({fit:"crop",height:n[1],scale:1,uri:t,width:n[0]});return{fallbackSrc:i[e],src:o.src,srcSet:o.srcSet}}},"./src/shared/utils/logMutationError.ts"(e,t,n){n.d(t,{O:()=>a});var o=n("../../libs/error-monitoring/dist/index.mjs");const a=({action:e,at:t,error:n,id:a,mediaType:r})=>{const s=`Could not ${e} ${r}: ${a}`,i="object"==typeof n&&null!==n&&"code"in n?n.code:"unknown";(0,o.vV)(new Error(n instanceof Error?s:`${s}, Error-code: ${i}`,{cause:n instanceof Error?n:void 0}),{context:t,metadata:{action:e,errorCode:i,id:a,mediaType:r}})}},"./src/shared/images/fallback-landscape-default.png"(e,t,n){e.exports=n.p+"oneweb/images/fallback-landscape-default-0aa52ecb.png?v=1.208.1"}}]);

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.