1(globalThis.webpackChunk_telia_company_tv_web_logged_in=globalThis.webpackChunk_telia_company_tv_web_logged_in||[]).push([[411],{"./src/__dev__/routes.tsx"(e,t,o){"use strict";o.d(t,{o:()=>i,q:()=>c});var r=o("./src/core/router/constants.ts"),n=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),a=o("../../../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=(0,n.lazy)(()=>o.e(757).then(o.bind(o,"./src/__dev__/views/ConfigView/ConfigView.tsx")));let i=function(e){return e.CONFIG="/__config__",e}({});const c=[{contentType:r.R.ADULT_ONLY,element:(0,a.Y)(s,{}),path:i.CONFIG,scope:r.rp.PUBLIC,type:r.fk.PAGE}]},"./src/auth/providers/AuthProvider.tsx"(e,t,o){"use strict";o.d(t,{O:()=>g,Z:()=>h});var r=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@telia-company/tv.common-sdk-authentication/dist/Account.js"),n=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@telia-company/tv.common-sdk-authentication/dist/Authentication.js"),a=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/ServiceMessages.js"),s=o("../../libs/error-monitoring/dist/index.mjs"),i=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),c=o("./src/auth/routes.tsx"),d=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.oneapp-web-analytics/dist/index.js"),l=o("./src/auth/utils/getCleanUrl.ts"),p=o("./src/auth/utils/goToOAuthLoginUrl.ts");var m=o("../../../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 u=(0,i.createContext)({isLoggedIn:!1}),g=({children:e})=>{const[t,o]=(0,i.useState)("Unknown"),g=(0,i.useMemo)(()=>new URLSearchParams(window.location.search).get("code"),[]);(0,i.useEffect)(()=>{g&&(async()=>{await(async e=>{try{const t=n.Authentication.instance();await t.login({authorizationGrant:e,autoLogin:!0,type:"OAUTH"});const o=new URLSearchParams(window.location.search),r=o.get("return_url")||o.get("returnUrl");if(r)window.location.href=r;else{const e=(0,l.b)();window.location.href=e.href}}catch(e){throw(0,d.trackLoginFail)({login_message:e instanceof Error?e.message:"Failed to login with OAuth."}),await(0,p.n)(),e}})(g)})()},[g]),(0,i.useEffect)(()=>{g||(async()=>{const e=n.Authentication.instance(),t=await e.isLoggedin();o(t?"LoggedIn":"LoggedOut")})()},[g]),(0,i.useEffect)(()=>{if(g)return;const e=n.Authentication.statics.events.authentication.on(({loggedin:e})=>o(e?"LoggedIn":"LoggedOut"));return()=>n.Authentication.statics.events.authentication.off(e)},[g]),(0,i.useEffect)(()=>{if(g)return;const e=a.ServiceMessages.statics.events.logout.on(()=>{o("LoggedOut"),location.href=c.F.LOGOUT});return()=>a.ServiceMessages.statics.events.logout.off(e)},[g]),(0,i.useEffect)(()=>{if("Unknown"!==t)if("LoggedIn"===t){if(!(0,s.OC)())return;(async()=>{const e=r.Account.instance(),{id:t}=await e.getAccountInformation();t&&(0,s.g0)(t)})()}else(0,s.c6)()},[t,g]);if(!(!g&&"Unknown"!==t))return null;const h="LoggedIn"===t;return(0,m.Y)(u.Provider,{value:{isLoggedIn:h},children:e})},h=()=>(0,i.useContext)(u)},"./src/auth/routes.tsx"(e,t,o){"use strict";o.d(t,{F:()=>c,J:()=>d});var r=o("./src/core/router/constants.ts"),n=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),a=o("../../../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=(0,n.lazy)(()=>o.e(232).then(o.bind(o,"./src/auth/views/LoginView.tsx"))),i=(0,n.lazy)(()=>o.e(532).then(o.bind(o,"./src/auth/views/LogoutAndRedirectView.tsx")));let c=function(e){return e.LOGIN="/login",e.LOGOUT="/logout",e}({});
1const d=[{contentType:r.R.ALL_ALLOWED,element:(0,a.Y)(s,{}),path:c.LOGIN,scope:r.rp.PUBLIC,type:r.fk.PAGE},{contentType:r.R.ALL_ALLOWED,element:(0,a.Y)(i,{}),path:c.LOGOUT,scope:r.rp.PUBLIC,type:r.fk.PAGE}]},"./src/auth/utils/getCleanUrl.ts"(e,t,o){"use strict";o.d(t,{b:()=>a});var r=o("./src/auth/routes.tsx");const n=[r.F.LOGIN,r.F.LOGOUT],a=()=>new URL(n.some(e=>window.location.pathname.startsWith(e))?window.location.origin:window.location.href.split(/[?#]/)[0])},"./src/auth/utils/goToOAuthLoginUrl.ts"(e,t,o){"use strict";o.d(t,{n:()=>s});var r=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@telia-company/tv.common-sdk-authentication/dist/Authentication.js"),n=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.oneapp-web-analytics/dist/index.js"),a=o("./src/auth/utils/getCleanUrl.ts");const s=async({fromPathname:e}={})=>{try{const t=(0,a.b)(),o=new URLSearchParams(window.location.search),n=(o.get("return_url")||o.get("returnUrl"))??e;n&&t.searchParams.append("return_url",decodeURIComponent(n));const s=r.Authentication.instance(),{loginUrl:i}=await s.getOAuthInfo({returnUrl:t.href});window.location.replace(i)}catch(e){throw(0,n.trackLoginFail)({login_message:e instanceof Error?e.message:"Failed to go to OAuth login url."}),e}}},"./src/cdp/routes.tsx"(e,t,o){"use strict";o.d(t,{I:()=>l,S:()=>p});var r=o("./src/core/router/constants.ts"),n=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),a=o("../../../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=(0,n.lazy)(()=>Promise.all([o.e(249),o.e(644),o.e(96),o.e(47),o.e(954),o.e(670),o.e(309),o.e(749),o.e(852)]).then(o.bind(o,"./src/cdp/views/CdpEpisodeView/CdpEpisodeView.tsx"))),i=(0,n.lazy)(()=>Promise.all([o.e(249),o.e(644),o.e(96),o.e(47),o.e(954),o.e(670),o.e(309),o.e(617)]).then(o.bind(o,"./src/cdp/views/CdpMovieView/CdpMovieView.tsx"))),c=(0,n.lazy)(()=>Promise.all([o.e(249),o.e(644),o.e(96),o.e(47),o.e(954),o.e(670),o.e(309),o.e(749),o.e(26)]).then(o.bind(o,"./src/cdp/views/CdpSeriesView.tsx"))),d=(0,n.lazy)(()=>Promise.all([o.e(249),o.e(644),o.e(96),o.e(47),o.e(954),o.e(670),o.e(309),o.e(498)]).then(o.bind(o,"./src/cdp/views/CdpSportEventView/CdpSportEventView.tsx")));let l=function(e){return e.EPISODE="/episode/:id",e.MOVIE="/movie/:id",e.SERIES="/series/:id",e.SPORT_EVENT="/sportEvent/:id",e}({});const p=[{contentType:r.R.ALL_ALLOWED,element:(0,a.Y)(s,{}),path:l.EPISODE,scope:r.rp.PRIVATE,type:r.fk.MODAL},{contentType:r.R.ALL_ALLOWED,element:(0,a.Y)(i,{}),path:l.MOVIE,scope:r.rp.PRIVATE,type:r.fk.MODAL},{contentType:r.R.ALL_ALLOWED,element:(0,a.Y)(c,{}),path:l.SERIES,scope:r.rp.PRIVATE,type:r.fk.MODAL},{contentType:r.R.ALL_ALLOWED,element:(0,a.Y)(d,{}),path:l.SPORT_EVENT,scope:r.rp.PRIVATE,type:r.fk.MODAL}]},"./src/cdp/utils/getMediaPageById.ts"(e,t,o){"use strict";o.d(t,{Q:()=>c});var r=o("./src/cdp/routes.tsx"),n=o("./src/codegen/graphql.ts"),a=o("./src/core/apollo/client.ts"),s=o("./src/page/routes.tsx"),i=o("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-62JRHF6Z.mjs");const c=async(e,t=s.q.HOME)=>{const{data:o}=await a.S.query({query:n.Dp,variables:{id:e}});if(!o)return t;switch(o.media?.__typename){case"Episode":return(0,i.tW)(r.I.EPISODE,{id:e});case"Movie":return(0,i.tW)(r.I.MOVIE,{id:e});case"SportEvent":return(0,i.tW)(r.I.SPORT_EVENT,{id:e});default:return t}}},"./src/core/analytics/tracker.ts"(e,t,o){"use strict";o.d(t,{F:()=>c});var r=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@telia-company/tv.common-sdk-authentication/dist/Authentication.js"),n=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/abstractions/client/ClientInformationIF.js"),a=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/Config.js"),s=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.one-core-tracking-web/dist/esm/index.js"),i=o("../../libs/error-monitoring/dist/index.mjs");const c=new s.J(async e=>
1{try{const t=await n.ClientInformationIF.resolve().getClientInformation();await fetch(a.Config.get("analytics/tracking/url"),{body:e.map(e=>JSON.stringify(e)).join("\n"),headers:{client:t.client},method:"POST"})}catch(e){(0,i.vV)(new Error("Event tracker POST error",{cause:e}),{context:"tracker"})}},{appVersion:"1.208.1",debug:!1,onError:e=>{(0,i.vV)(new Error("Tracker has encountered an error",{cause:e}),{context:"tracker"})}});let d=!1;const l=globalThis.OptanonWrapper;globalThis.OptanonWrapper=()=>{l?.(),(()=>{const e=globalThis.OptanonActiveGroups,t=e?.split(",").includes("C0002")??!1;t?c.consent(!0):!t&&d&&(globalThis.dataLayer=[],c.consent(!1)),d=!0})()};r.Authentication.statics.events.authentication.on(({loggedin:e})=>{e||c.clearGlobalProperties()});globalThis.__tracker=c},"./src/core/apollo/client.ts"(e,t,o){"use strict";o.d(t,{S:()=>f});var r=o("../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_react-_23af7fe1a84405345a895683eefe299d/node_modules/@apollo/client/cache/inmemory/inMemoryCache.js"),n=o("./src/codegen/fragment-matcher.json"),a=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_graphql-ws@_e1aa4566d905a07d2ff969d0d950473e/node_modules/@telia-company/tv.common-sdk-apollo-react-client/dist/index.js"),s=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/Config.js"),i=o("../../libs/error-monitoring/dist/index.mjs");const c=(e=[],t=[],o)=>{const r=e?e.slice(0):[];return 0===o&&Array.isArray(t)?t:t?.length?(r.splice(o,t.length,...t),r.filter((e,t,o)=>t===o.findIndex(t=>t.__ref===e.__ref))):r},d=(e=[],t,o)=>{const{variables:r}=o;return c(e,t,r?.config?.offset||r?.offset||r?.input?.offset||r?.panelContentOffset||0)},l={fields:{programsTimetable:{merge:(e={},t={},o)=>{const r=d(e?.programs||[],t?.programs||[],o);return{...t,programs:r}}}}},p={keyArgs:!1,merge(e={},t,o){const r=o.variables?.timestamp,n={...e},a=d(n[r]?.channelItems,t?.channelItems,o);return n[r]={...t,channelItems:a},n},read:(e={},{variables:t})=>e[t?.timestamp]},m={fields:{channels:p,channelsContent:p}},u=({field:e})=>(t,o,r)=>{const n=r?.args?.offset||r?.args?.config?.offset||r?.args?.input?.offset||0,a=c(t?.[e]||[],o?.[e]||[],n);return{...o,[e]:a}},g={Channel:l,ChannelsPanel:m,ChannelsPanelX:m,ContinueWatchingPanelContent:{keyFields:!1},Episode:{fields:{availability:{merge:!0},cdp:{merge:!0},episodeNumber:{merge:!0},images:{merge:!0},labels:{merge:!0},seasonNumber:{merge:!0}}},MediaPanelContent:{keyFields:!1},Movie:{fields:{availability:{merge:!0},cdp:{merge:!0},images:{merge:!0}}},MyListPanelContent:{keyFields:!1},PageLink:{keyFields:["link3","name"]},PagePanels:{fields:{items:{merge:(e=[],t,o)=>{const r=o.variables?.pagePanelsOffset;return void 0===r?((0,i.vV)(new Error("PagePanel tried to merge without offset"),{context:"commonTypePolicies"}),t??e):c(e,t,r)}},panels:{merge:(e=[],t,o)=>{const r=o.variables?.pagePanelsOffset;return void 0===r?((0,i.vV)(new Error("PagePanel tried to merge without offset"),{context:"commonTypePolicies"}),t??e):c(e,t,r)}}},keyFields:["id"]},Panel:{fields:{continueWatchingContent:{keyArgs:!1,merge:u({field:"items"})},mediaContent:{keyArgs:!1,merge:u({field:"items"})},myListContent:{keyArgs:!1,merge:u({field:"items"})},recordingsContent:{keyArgs:["input",["sort",["key","order"]]],merge:u({field:"items"})},rentalsContent:{keyArgs:!1,merge:u({field:"items"})},selectionMediaContent:{keyArgs:["config",["sort",["key","order"]]],merge:u({field:"items"})},timelineContent:{keyArgs:!1,merge:u({field:"items"})}}},Poster:{fields:{labels:{merge:!0}}},PosterListPanel:{fields:{posters:{keyArgs:e=>e?.config.sort?["config",["sort",["key","order"]]]:!!e?.config.filter2&&["config",["filter2",["key","selected"]]],merge:u({field:"items"})}}},Query:{fields:{channels:{keyArgs:(e,t)=>null!==e&&(t?.variables&&"timestamp"in t.variables?"timestamp":[t.fieldName,...Object.keys(e)]),merge:(e={},t,o)=>{const r=o.variables?.timestamp;if(r){const n={...e},a=d(n[r]?.channelItems,t?.channelItems,o);return n[r]={...t,channelItems:a},n}return t},read:(e={},{storeFieldName:t,variables:o})=>t.includes("timestamp")?e[o?.timestamp]:e},continueWatchingList:{keyArgs:!1,merge:u({field:"items"})},episode:{merge:!0},movie:{merge:!0},myList:{keyArgs:!1,merge:u({field:"items"})},search2:{keyArgs:["input",["q","includeOutOfEngagement","searchType"]]},series:{merge:!0}}},RecordingsPanelContent:{keyFields:!1},RentalsPanelContent:{keyFields:!1},SearchResult:{fields:{posters:{merge:d},searchItems:{merge:d}}},Season:{fields:{episodes2:{keyArgs:!1,merge:(e,t,o)=>{const r=d(e?.episodeList||[],t?.episodeList||[],o);return{...t,episodeList:r}}}}},SelectionMediaPanelContent:{keyFields:!1},Series:{fields:{cdp:{merge:!0},images:{merge:!0},numberOfSeasons:{merge:!0},seasonLinks:{keyArgs:!1}}},SportEvent:{fields:{availability:{merge:!0},cdp:{merge:!0},images:{merge:!0}}},SubscriptionPanelItemV2:{keyFields:!1},TimelinePanelContent:{keyFields:!1}},{v:h}=n,y=new r.D({possibleTypes:h,typePolicies:g}
1),f=(0,a.createApolloClient)({cache:y,graphqlUrl:localStorage.getItem("dev-graphql")||s.Config.get("apollo/graphql/url"),onError:e=>{if("status"in e&&0===e.status)return;const t=`${"name"in e?e.name:""}, ${"status"in e?`status: ${e.status}`:e.message}`;(0,i.vV)(new Error(t),{context:"ApolloClient",metadata:{error:e}})},persistedQueryOptions:{enabled:s.Config.get("apollo/persistedQueries/enabled")},showRequestLogs:!1})},"./src/core/router/Router.tsx"(e,t,o){"use strict";o.d(t,{I:()=>re,h:()=>oe});var r=o("../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_react-_23af7fe1a84405345a895683eefe299d/node_modules/@apollo/client/cache/inmemory/reactiveVars.js"),n=o("./src/shared/hooks/useOnAppInteraction.ts"),a=o("./src/shared/utils/isDefined.ts"),s=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),i=o("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-62JRHF6Z.mjs"),c=o("./src/shared/components/custom/ErrorBoundary.tsx"),d=o("./src/shared/errors/InvalidInputError.ts");const l=[/ChunkLoadError/i,/Loading chunk [\w-]+ failed/i,/Failed to fetch dynamically imported module/i,/Importing a module script failed/i],p=e=>"string"==typeof e&&l.some(t=>t.test(e));var m=o("./src/shared/errors/NotFoundError.ts"),u=o("../../../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"),g=o("./src/shared/components/custom/NoDataPlaceholder/NoDataPlaceholder.tsx"),h=o("../../../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"),y=o("../../../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 f=(0,u.A)(g.t,{target:"ekmersa0"})({name:"s1n8ed",styles:"height:100vh"}),b=()=>{const{t:e}=(0,h.Bd)();return(0,s.useEffect)(()=>{requestAnimationFrame(()=>{scrollTo({top:0})})},[]),(0,y.Y)(f,{onClickRetry:()=>{document.location.reload()},title:e("ERRORS_DEFAULT_MESSAGE")})};var _=o("./src/core/analytics/tracker.ts"),v=o("./src/page/routes.tsx"),x=o("./src/shared/components/custom/DefaultBanner/index.ts"),k=o("./src/shared/components/custom/FadeContainer/index.ts"),w=o("./src/shared/hooks/useRunIfPathChanges.ts");const E=o.p+"oneweb/images/hotspots-379d10ef.png?v=1.208.1",A=({clearError:e})=>{const{t:t}=(0,h.Bd)();(0,w.M)(e);const o=t("PAGE_NOT_FOUND_HEADER"),r=t("PAGE_NOT_FOUND_DESCRIPTION");return(0,s.useEffect)(()=>{_.F.trackUserDistraction({distraction_style:"inline",message_body:r,message_title:o})},[r,o]),(0,y.Y)(k.y,{"data-testid":"page-not-found-view",children:(0,y.Y)(x.E,{"data-testid":"page-not-found",description:r,imageSrc:E,primaryLink:v.q.HOME,primaryLinkText:t("TO_START_PAGE"),title:o})})},S=({clearError:e,error:t})=>(e=>{if(e instanceof Error)return p(e.name)||p(e.message);if("object"!=typeof e||null===e)return!1;const t=e;return p(t.name)||p(t.message)})(t)?(0,y.Y)(b,{}):t instanceof m.m||t instanceof d.o?(0,y.Y)(A,{clearError:e}):(0,y.Y)(c.q,{clearError:e}),P=({children:e})=>(0,y.Y)(c.t,{FallbackComponent:S,children:e}),I=()=>{const e=(0,i.Zp)(),{hash:t,pathname:o}=(0,i.zy)();return(0,s.useEffect)(()=>{if("/"===o&&t.startsWith("#/")){const o=t.replace("#/","/");e(o,{replace:!0})}},[t,e,o]),null};var L=o("./src/core/router/hooks/useRootLocation/index.ts"),O=o("./src/core/router/routes.tsx");const C=(0,u.A)("main",{target:"eubinuv0"})({name:"uy3qo",styles:"display:flex;flex-direction:column;position:relative;min-height:100%"}),T=()=>(0,i.Ye)(O.tt),R=e=>{const{isModalRoute:t,rootLocation:o}=(0,L.b0)(),r=(0,i.Ye)(O.NH,o);return(0,y.FD)(y.FK,{children:[(0,y.Y)(C,{...e,children:r}),t?(0,y.Y)(T,{}):null]})};var j=o("./src/shared/utils/webStorage/getSessionStorage.ts"),D=o("./src/shared/utils/webStorage/setSessionStorage.ts"),N=o("../../../node_modules/.pnpm/[email protected]/node_modules/lodash.debounce/index.js");const M=({locationKey:e})=>`scrollRestoration:${e||"init"}`,F=o.n(N)()(({locationKey:e,offsetY:t=0})=>{const o=M({locationKey:e});(0,D.y)(o,t)},200),Y=()=>{const e=(0,i.zy)(),t=(0,s.useRef)(e);return(0,s.useLayoutEffect)(()=>
1{if((({includeQueryString:e=!0,nextLocation:t,prevLocation:o})=>o.pathname!==t.pathname||e&&o.search!==t.search)({nextLocation:e,prevLocation:t.current})){if(t.current=e,e.state?.skipScrollRestoration)return;(({offset:e})=>{requestAnimationFrame(()=>scrollTo({top:e}))})({offset:(({locationKey:e})=>{const t=M({locationKey:e});return(0,j.W)(t,0)})({locationKey:e.key})})}},[e,e.key]),(0,s.useEffect)(()=>{const e=()=>{F({locationKey:t.current.key,offsetY:window.scrollY})};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),null};var $=o("./src/epg/routes.tsx"),q=o("./src/shared/utils/webStorage/getLocalStorage.ts"),z=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/Config.js");let B=function(e){return e[e.INTERNAL=0]="INTERNAL",e[e.EXTERNAL=1]="EXTERNAL",e}({});const U=(e={})=>{const t=e=>o=>{const r=o.enabled??!0,n={...e};return r&&(n[o.fromPath]=o),{add:t(n),items:n}};return{add:t(e),items:e}};var V=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@telia-company/tv.common-sdk-authentication/dist/Authentication.js");const G=async(e,t=!1)=>{const o=new URL(window.location.origin),r=new URLSearchParams(window.location.search),n=r.get("partner"),a=r.get("return_url");n&&a&&(o.searchParams.append("partner",n),o.searchParams.append("return_url",a));const s=V.Authentication.instance(),{[e]:i}=await s.getOAuthInfo({returnUrl:o.href});if(i){if(t){const e=new URL(i),t=r.keys();let o=t.next();for(;!o.done;)e.searchParams.append(o.value,r.get(o.value)||""),o=t.next();return e.href}return i}throw new Error(`Couldn't get a ${e} url for redirecting`)},H=()=>G("resetPasswordUrl"),W=()=>G("forgotUsernameUrl"),K=U().add({fromPath:"/login/forgotpassword",toPath:H,type:B.EXTERNAL}).add({fromPath:"/login/forgotusername",toPath:W,type:B.EXTERNAL}).add({fromPath:"/forgotpassword",toPath:H,type:B.EXTERNAL}).add({fromPath:"/forgotusername",toPath:W,type:B.EXTERNAL}).items;var Z=o("./src/cdp/routes.tsx"),X=o("./src/cdp/utils/getMediaPageById.ts"),J=o("./src/watch/utils/getPlayerLink.ts"),Q=o("../../libs/error-monitoring/dist/index.mjs");const ee=U().add({fromPath:"/link/page/:pageId",toPath:({params:e})=>{const t=e.pageId;return(0,a.O)(t)?(0,i.tW)(v.q.PAGE,{pageId:t}):v.q.HOME},type:B.INTERNAL}).add({fromPath:"/link/series/:id",toPath:({params:e})=>{const t=e.id;return(0,a.O)(t)?(0,i.tW)(Z.I.SERIES,{id:t}):v.q.HOME},type:B.INTERNAL}).add({fromPath:"/link/media/:id",toPath:async({params:e,pathname:t})=>{const o=e.id;if(!(0,a.O)(o))return v.q.HOME;try{return await(0,X.Q)(o)}catch(e){return(0,Q.vV)(new Error(`Error resolving universal redirect link: "${t}"`,{cause:e}),{context:"router.universalLinkRedirects"}),v.q.HOME}},type:B.INTERNAL}).add({fromPath:"/link/media/:id/play",toPath:({params:e})=>{const t=e.id,o=new URLSearchParams(location.search);return(0,a.O)(t)?(0,J.w)({id:t,trailer:o.has("trailer")}):v.q.HOME},type:B.INTERNAL}).add({fromPath:"/link/tvchannel/:id/play",toPath:({params:e})=>{const t=e.id;return(0,a.O)(t)?(0,J.w)({id:t}):v.q.HOME},type:B.INTERNAL}).add({fromPath:"/link/*",toPath:()=>v.q.HOME,type:B.INTERNAL}).items,te=U({...K,...ee}).add({fromPath:"/tv",toPath:()=>$.R.EPG,type:B.INTERNAL}).add({fromPath:"/epg",toPath:()=>(0,i.tW)($.R.EPG_SELECTED_VIEW,{selectedEpgView:(0,q.L)("epgView",z.Config.get("epg/tv/defaultView"))}),type:B.INTERNAL}).add({fromPath:"/live",toPath:()=>$.R.EPG,type:B.INTERNAL}).add({fromPath:"/play",toPath:()=>(0,i.tW)(v.q.PAGE,{pageId:"program-series-corner"}),type:B.INTERNAL}).add({fromPath:"/store",toPath:()=>(0,i.tW)(v.q.PAGE,{pageId:"movie-corner"}),type:B.INTERNAL}).add({fromPath:"/kids/:storeId",toPath:({params:e})=>{const t=e.storeId;return(0,a.O)(t)?(0,i.tW)(v.q.STORE,{storeId:t}):v.q.HOME},type:B.INTERNAL}).add({fromPath:"/list",toPath:()=>v.q.MY_LIST,type:B.INTERNAL}).add({fromPath:`/${z.Config.get("page/home/id")}`,toPath:()=>v.q.HOME,type:B.INTERNAL}).add({fromPath:"/sports/liiga/*",toPath:()=>(0,i.tW)(v.q.PAGE,{pageId:"sports-league-liiga"}),type:B.INTERNAL}).items,oe=(0,r.UT)(void 0),re=e=>{const t=(()=>{const{pathname:e}=(0,i.zy)();return(0,s.useMemo)(()=>
1{for(const[t,o]of Object.entries(te)){const r=(0,i.B6)(t,e);if(r&&r.pattern.end&&(0,a.O)(o))return{path:o.toPath(r),type:o.type}}return null},[e])})(),o=(0,i.Zp)(),r=(0,i.zy)(),c=(0,s.useRef)(r);(0,s.useEffect)(()=>{r.pathname!==c.current.pathname&&(oe(c.current),c.current=r)},[r]);const d=(0,s.useCallback)(()=>{window.location.reload()},[]);return(0,n.a)({callback:d,skip:!1,waitFor:864e5}),(0,s.useEffect)(()=>{if(!(0,a.O)(t))return;(async()=>{const e=await t.path;t.type===B.EXTERNAL&&"string"==typeof e&&window.location.replace(e),t.type===B.INTERNAL&&o(e,{replace:!0})})()},[o,t]),(0,a.O)(t)?null:(0,y.FD)(P,{children:[(0,y.Y)(Y,{}),(0,y.Y)(I,{}),(0,y.Y)(R,{...e})]})}},"./src/core/router/components/ChildSafeRoute.tsx"(e,t,o){"use strict";o.d(t,{N:()=>c});var r=o("./src/page/routes.tsx"),n=o("./src/profiles/providers/UserProvider/UserProvider.tsx"),a=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/Config.js"),s=(o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),o("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-62JRHF6Z.mjs")),i=o("../../../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 c=({children:e})=>{const{isChildProfile:t}=(0,n.u)();return t?(0,i.Y)(s.C5,{replace:!0,to:(0,s.tW)(r.q.PAGE,{pageId:a.Config.get("page/kids/id")})}):(0,i.Y)(i.FK,{children:e})}},"./src/core/router/constants.ts"(e,t,o){"use strict";o.d(t,{R:()=>r,fk:()=>a,rp:()=>n});let r=function(e){return e[e.ADULT_ONLY=0]="ADULT_ONLY",e[e.ALL_ALLOWED=1]="ALL_ALLOWED",e}({}),n=function(e){return e[e.PUBLIC=0]="PUBLIC",e[e.PRIVATE=1]="PRIVATE",e}({}),a=function(e){return e.MODAL="MODAL",e.PAGE="PAGE",e}({})},"./src/core/router/hooks/useIsModalRouteOpen/index.ts"(e,t,o){"use strict";o.d(t,{u:()=>a});var r=o("../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_react-_23af7fe1a84405345a895683eefe299d/node_modules/@apollo/client/react/hooks/useReactiveVar.js"),n=o("./src/core/router/hooks/useRootLocation/index.ts");const a=()=>({isModalRouteOpen:(0,r.q)(n.u6)})},"./src/core/router/hooks/useRootLocation/index.ts"(e,t,o){"use strict";o.d(t,{u6:()=>p,X0:()=>l,b0:()=>u});var r=o("../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_react-_23af7fe1a84405345a895683eefe299d/node_modules/@apollo/client/cache/inmemory/reactiveVars.js"),n=o("./src/auth/routes.tsx"),a=o("./src/core/router/constants.ts"),s=o("./src/core/router/routes.tsx"),i=o("./src/page/routes.tsx"),c=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),d=o("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-62JRHF6Z.mjs");const l=(0,r.UT)(void 0),p=(0,r.UT)(!1),m="ROUTER:LAST_ROOT_LOCATION",u=()=>{const e=(0,d.zy)(),t=(0,d.ue)(s.GJ,e),o=Boolean(t?.some(({route:e})=>e.type===a.fk.MODAL)),r=Boolean(t?.some(({route:{isBackgroundRoute:e=!0,type:t}})=>t===a.fk.PAGE&&e)??!0),u=(0,c.useRef)(o||!r?sessionStorage.getItem(m)||i.q.HOME:e);return(0,c.useEffect)(()=>{window.onbeforeunload=()=>{const e="string"==typeof u.current?u.current:u.current.pathname;e&&e!==n.F.LOGIN&&e!==n.F.LOGOUT&&sessionStorage.setItem(m,e)}},[e]),(0,c.useLayoutEffect)(()=>
1{l(u.current)},[]),p()!==o&&p(o),r&&e!==u.current&&(u.current=e,l(e)),o||r?{isModalRoute:o,rootLocation:u.current}:{isModalRoute:!1,rootLocation:e}}},"./src/core/router/routes.tsx"(e,t,o){"use strict";o.d(t,{GJ:()=>z,tt:()=>U,NH:()=>B});var r=o("./src/__dev__/routes.tsx"),n=o("./src/auth/routes.tsx"),a=o("./src/cdp/routes.tsx"),s=o("./src/epg/routes.tsx"),i=o("./src/page/routes.tsx"),c=o("./src/profiles/routes.tsx"),d=o("./src/search/routes.tsx"),l=o("./src/core/router/constants.ts"),p=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),m=o("../../../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 u=(0,p.lazy)(()=>o.e(910).then(o.bind(o,"./src/static/views/AboutServiceView.tsx"))),g=(0,p.lazy)(()=>o.e(470).then(o.bind(o,"./src/static/views/CookiePolicyView.tsx"))),h=(0,p.lazy)(()=>o.e(792).then(o.bind(o,"./src/static/views/DynamicAdvertisementView.tsx"))),y=(0,p.lazy)(()=>o.e(333).then(o.bind(o,"./src/static/views/PrivacyPolicyView.tsx"))),f=(0,p.lazy)(()=>o.e(328).then(o.bind(o,"./src/static/views/PointSelectionView.tsx")));var b=function(e){return e.ABOUT="/about",e.COOKIE_POLICY="/cookie-policy",e.DYNAMIC_ADVERTISEMENT="/dynamic-advertisement",e.POINT_SELECTION="/point-selection",e.PRIVACY_POLICY="/privacy-policy",e}(b||{});const _={contentType:l.R.ADULT_ONLY,element:(0,m.Y)(u,{}),path:b.ABOUT,scope:l.rp.PUBLIC,type:l.fk.PAGE},v={contentType:l.R.ADULT_ONLY,element:(0,m.Y)(g,{}),path:b.COOKIE_POLICY,scope:l.rp.PUBLIC,type:l.fk.PAGE},x={contentType:l.R.ADULT_ONLY,element:(0,m.Y)(h,{}),enabled:e=>"SE"===e,path:b.DYNAMIC_ADVERTISEMENT,scope:l.rp.PUBLIC,type:l.fk.PAGE},k={contentType:l.R.ADULT_ONLY,element:(0,m.Y)(y,{}),path:b.PRIVACY_POLICY,scope:l.rp.PUBLIC,type:l.fk.PAGE},w=[{contentType:l.R.ADULT_ONLY,element:(0,m.Y)(f,{}),path:b.POINT_SELECTION,scope:l.rp.PUBLIC,type:l.fk.PAGE},_,v,x,k];var E=o("./src/subscription/routes.tsx"),A=o("./src/watch/routes.tsx"),S=o("../../libs/core/dist/index.mjs");var P=o("./src/profiles/guards/NoProfileGuard.tsx"),I=o("./src/auth/providers/AuthProvider.tsx"),L=o("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-62JRHF6Z.mjs");var O=o("./src/core/router/components/ChildSafeRoute.tsx"),C=o("./src/shared/components/custom/Announcement/Context/AnnouncementContext.tsx"),T=o("./src/shared/components/custom/Portal/index.ts"),R=o("./src/shared/hooks/useLockRootElement.ts"),j=o("../../../node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]__@[email protected]._ce78ac614378806cf95aa75fb2ec3035/node_modules/focus-trap-react/dist/focus-trap-react.js"),D=o("../../../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");const N=(e,t)=>{const o=r=>{let n=r.element;const a=r.children||[];return n&&t(r)&&(n=(0,m.Y)(e,{...r,children:n})),{...r,children:a.map(o),element:n}};return o},M=N(O.N,({contentType:e})=>e===l.R.ADULT_ONLY),F=N(P.A,({scope:e})=>e===l.rp.PRIVATE),Y=N(({children:e})=>{const{isLoggedIn:t}=(0,I.Z)(),o=(0,L.zy)();return t?(0,m.Y)(m.FK,{children:e}):(0,m.Y)(L.C5,{replace:!0,state:{from:o},to:n.F.LOGIN})},({scope:e})=>e===l.rp.PRIVATE),$=N(({children:e})=>{(0,R.X)();const{t:t}=(0,D.Bd)(),o=(0,L.zy)(),r=(0,p.useRef)(null),n=(0,p.useRef)(`modal-${Date.now()}`).current;return(0,p.useLayoutEffect)(()=>{window.scroll({top:0})},[o.pathname]),(0,m.Y)(p.Suspense,{fallback:null,children:(0,m.Y)(T.Z,{children:(0,m.Y)(j.FocusTrap,{focusTrapOptions:{allowOutsideClick:!0,fallbackFocus:`#${n}`},children:(0,m.Y)("div",{"aria-label":t("ACCESSIBILITY_CONTENT_DETAIL_VIEW"),"aria-modal":"true",id:n,ref:r,role:"dialog",tabIndex:-1,children:(0,m.Y)(C.j,{children:e})})})})})},({type:e})=>e===l.fk.MODAL),q=(0,p.lazy)(()=>Promise.all([o.e(249),o.e(644),o.e(96),o.e(47),o.e(954),o.e(670),o.e(995),o.e(668),o.e(993)]).then(o.bind(o,"./src/core/router/views/PageNotFoundView.tsx"))),z=[d.d,c.G,A.G,E.L,a.S,w,i.a,n.J,s.n,r.q].reduce((e,t)=>
1[...e,...t],[]).filter(({enabled:e=!0})=>"boolean"==typeof e?e:e(S.x6)).map(M).map(F).map(Y).map(e=>({...e,element:(0,m.Y)(p.Suspense,{fallback:null,children:e.element})})),B=[...z.filter(({type:e})=>e===l.fk.PAGE),{element:(0,m.Y)(q,{}),path:"*"}],U=z.filter(({type:e})=>e===l.fk.MODAL).map($)},"./src/epg/routes.tsx"(e,t,o){"use strict";o.d(t,{R:()=>i,n:()=>c});var r=o("./src/core/router/constants.ts"),n=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),a=o("../../../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=(0,n.lazy)(()=>Promise.all([o.e(249),o.e(310),o.e(644),o.e(96),o.e(954),o.e(211)]).then(o.bind(o,"./src/epg/views/EpgView/EpgView.tsx"))),i={EPG:"/epg",EPG_FILTERED:"/epg/:selectedEpgView/:filterBarType",EPG_SELECTED_VIEW:"/epg/:selectedEpgView"},c=[{contentType:r.R.ADULT_ONLY,element:(0,a.Y)(s,{}),enabled:!0,path:i.EPG,scope:r.rp.PRIVATE,type:r.fk.PAGE},{contentType:r.R.ADULT_ONLY,element:(0,a.Y)(s,{}),enabled:!0,path:i.EPG_FILTERED,scope:r.rp.PRIVATE,type:r.fk.PAGE},{contentType:r.R.ADULT_ONLY,element:(0,a.Y)(s,{}),enabled:!0,path:i.EPG_SELECTED_VIEW,scope:r.rp.PRIVATE,type:r.fk.PAGE}]},"./src/index.tsx"(e,t,o){"use strict";var r=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/Config.js");const n=[{PILOT:{FI:{"apollo/graphql/chaosGeneratorHeader":"","apollo/graphql/tvClientName":"web","apollo/graphql/url":"https://graphql-telia.t6a-stage.net/graphql","apollo/persistedQueries/enabled":!0},NO:{"apollo/graphql/chaosGeneratorHeader":"","apollo/graphql/tvClientName":"web","apollo/graphql/url":"https://graphql-telia.t6a-stage.net/graphql","apollo/persistedQueries/enabled":!0},SE:{"apollo/graphql/chaosGeneratorHeader":"","apollo/graphql/tvClientName":"web","apollo/graphql/url":"https://graphql-telia.t6a-stage.net/graphql","apollo/persistedQueries/enabled":!0}},PROD:{FI:{"apollo/graphql/tvClientName":"web","apollo/graphql/url":"https://graphql-telia.t6a.net/graphql","apollo/persistedQueries/enabled":!0},NO:{"apollo/graphql/tvClientName":"web","apollo/graphql/url":"https://graphql-telia.t6a.net/graphql","apollo/persistedQueries/enabled":!0},SE:{"apollo/graphql/tvClientName":"web","apollo/graphql/url":"https://graphql-telia.t6a.net/graphql","apollo/persistedQueries/enabled":!0}}},{PILOT:{FI:{"app/gtm/appName":"telia play web","app/gtm/enabled":!0,"app/gtm/ids":["GTM-WG46WW5"],"app/medallia/enabled":!0,"app/onetrust/enabled":!0,"app/onetrust/id":"7278bee1-1440-4233-9dd2-12bc30d34fbf-test","app/supportweb/enabled":!1,"app/targetedAds/consentModal/enabled":!0},NO:{"app/gtm/appName":"telia play web","app/gtm/enabled":!0,"app/gtm/ids":["GTM-WG46WW5"],"app/medallia/enabled":!0,"app/onetrust/enabled":!0,"app/onetrust/id":"ae59e2f2-d29a-4def-b205-aef450ad44e3-test","app/supportweb/enabled":!1,"app/targetedAds/consentModal/enabled":!1},SE:{"app/gtm/appName":"telia play web","app/gtm/enabled":!0,"app/gtm/ids":["GTM-WG46WW5"],"app/medallia/enabled":!0,"app/onetrust/enabled":!0,"app/onetrust/id":"eec9ae44-1e33-462a-989c-478dfc0b565d-test","app/supportweb/enabled":!1,"app/supportweb/url":"https://support.teliaplay-pilot.se","app/targetedAds/consentModal/enabled":!1}},PROD:{FI:{"app/gtm/appName":"telia play web","app/gtm/enabled":!0,"app/gtm/ids":["GTM-WG46WW5"],"app/medallia/enabled":!0,"app/onetrust/enabled":!0,"app/onetrust/id":"7278bee1-1440-4233-9dd2-12bc30d34fbf","app/supportweb/enabled":!1,"app/targetedAds/consentModal/enabled":!0},NO:{"app/gtm/appName":"telia play web","app/gtm/enabled":!0,"app/gtm/ids":["GTM-WG46WW5"],"app/medallia/enabled":!0,"app/onetrust/enabled":!0,"app/onetrust/id":"ae59e2f2-d29a-4def-b205-aef450ad44e3","app/supportweb/enabled":!1,"app/targetedAds/consentModal/enabled":!1},SE:{"app/gtm/appName":"telia play web","app/gtm/enabled":!0,"app/gtm/ids":["GTM-WG46WW5"],"app/medallia/enabled":!0,"app/onetrust/enabled":!0,"app/onetrust/id":"eec9ae44-1e33-462a-989c-478dfc0b565d","app/supportweb/enabled":!1,"app/supportweb/url":"https://support.teliaplay.se","app/targetedAds/consentModal/enabled":!1}}},{PILOT:{FI:{"common-sdk-base/CacheManager/maxSize":20971520,"common-sdk/Lifecycle/TimeService/adaptiveDate":!0,"common-sdk/Log/logLevel":"ERROR","common-sdk/services/commercegateway/url":"https://ottapi.pilot.telia.net/web/fi/commercegateway","common-sdk/services/custapp/url":"https://pilot.atvfi.telia.net","common-sdk/services/engagementgateway/url":"https://engagementgateway-telia.clientapi-pilot.live.tv.telia.net/engagementgateway","common-sdk/services/engagementinformationgateway/url":"https://engagementinformationgateway.clientapi-pilot.live.tv.telia.net/engagementinformationgateway","common-sdk/services/exploregateway/url":"https://ottapi.pilot.telia.net/web/fi/exploregateway","common-sdk/services/logingateway/url":"https://logingateway.teliaplay-pilot.fi/logingateway","common-sdk/services/messagebar/url":"https://messagebar.clientapi-pilot.live.tv.telia.net","common-sdk/services/purchasegateway/url":"https://purchasegateway-telia.clientapi-pilot.live.tv.telia.net/purchasegateway","common-sdk/services/remoteclientevents/url":"https://remoteclientevents.clientapi-pilot.live.tv.telia.net","common-sdk/services/remoteclientlog/url":"https://remoteclientlog.clientapi-pilot.live.tv.telia.net/log","common-sdk/services/tvclientgateway/url":"https://ottapi.pilot.telia.net/web/fi/tvclientgateway"},NO:{"common-sdk-base/CacheManager/maxSize":20971520,"common-sdk/Lifecycle/TimeService/adaptiveDate":!0,"common-sdk/Log/logLevel":"ERROR","common-sdk/services/commercegateway/url":"https://ottapi.pilot.telia.net/web/no/commercegateway","common-sdk/services/custapp/url":"https://pilot.atvno.telia.net","common-sdk/services/engagementgateway/url":"https://engagementgateway-telia.clientapi-pilot.live.tv.telia.net/engagementgateway","common-sdk/services/engagementinformationgateway/url":"https://engagementinformationgateway.clientapi-pilot.live.tv.telia.net/engagementinformationgateway","common-sdk/services/exploregateway/url":"https://ottapi.pilot.telia.net/web/no/exploregateway","common-sdk/services/logingateway/url":"https://logingateway.teliaplay-pilot.no/logingateway","common-sdk/services/messagebar/url":"https://messagebar.clientapi-pilot.live.tv.telia.net","common-sdk/services/purchasegateway/url":"https://purchasegateway-telia.clientapi-pilot.live.tv.telia.net/purchasegateway","common-sdk/services/remoteclientevents/url":"https://remoteclientevents.clientapi-pilot.live.tv.telia.net","common-sdk/services/remoteclientlog/url":"https://remoteclientlog.clientapi-pilot.live.tv.telia.net/log","common-sdk/services/tvclientgateway/url":"https://tvclientgateway.clientapi-pilot.live.tv.telia.net/tvclientgateway/"},SE:{"common-sdk-base/CacheManager/maxSize":20971520,"common-sdk/Lifecycle/TimeService/adaptiveDate":!0,"common-sdk/Log/logLevel":"ERROR","common-sdk/services/commercegateway/url":"https://ottapi.pilot.telia.net/web/se/commercegateway","common-sdk/services/custapp/url":"https://pilot.atvse.telia.net","common-sdk/services/engagementgateway/url":"https://engagementgateway-telia.clientapi-pilot.live.tv.telia.net/engagementgateway","common-sdk/services/engagementinformationgateway/url":"https://engagementinformationgateway.clientapi-pilot.live.tv.telia.net/engagementinformationgateway","common-sdk/services/exploregateway/url":"https://ottapi.pilot.telia.net/web/se/exploregateway","common-sdk/services/logingateway/url":"https://logingateway.teliaplay-pilot.se/logingateway","common-sdk/services/messagebar/url":"https://messagebar.clientapi-pilot.live.tv.telia.net","common-sdk/services/purchasegateway/url":"https://purchasegateway-telia.clientapi-pilot.live.tv.telia.net/purchasegateway","common-sdk/services/remoteclientevents/url":"https://remoteclientevents.clientapi-pilot.live.tv.telia.net","common-sdk/services/remoteclientlog/url":"https://remoteclientlog.clientapi-pilot.live.tv.telia.net/log","common-sdk/services/tvclientgateway/url":"https://tvclientgateway.clientapi-pilot.live.tv.telia.net/tvclientgateway/"}},PROD:{FI:{"common-sdk-base/CacheManager/maxSize":20971520,"common-sdk/Lifecycle/TimeService/adaptiveDate":!0,"common-sdk/Log/logLevel":"ERROR","common-sdk/services/commercegateway/url":"https://ottapi.prod.telia.net/tab/fi/commercegateway","common-sdk/services/custapp/url":"https://atvfi.telia.net","common-sdk/services/engagementgateway/url":"https://engagementgateway-telia.clientapi-prod.live.tv.telia.net/engagementgateway","common-sdk/services/engagementinformationgateway/url":"https://engagementinformationgateway.clientapi-prod.live.tv.telia.net/engagementinformationgateway","common-sdk/services/exploregateway/url":"https://ottapi.prod.telia.net/tab/fi/exploregateway","common-sdk/services/logingateway/url":"https://logingateway.teliaplay.fi/logingateway/","common-sdk/services/messagebar/url":"https://messagebar.clientapi-prod.live.tv.telia.net","common-sdk/services/purchasegateway/url":"https://purchasegateway-telia.clientapi-prod.live.tv.telia.net/purchasegateway","common-sdk/services/remoteclientevents/url":"https://remoteclientevents.clientapi-prod.live.tv.telia.net","common-sdk/services/remoteclientlog/url":"https://remoteclientlog.clientapi-prod.live.tv.telia.net/log","common-sdk/services/tvclientgateway/url":"https://tvclientgateway.clientapi-prod.live.tv.telia.net/tvclientgateway/"},NO:{"common-sdk-base/CacheManager/maxSize":20971520,"common-sdk/Lifecycle/TimeService/adaptiveDate":!0,"common-sdk/Log/logLevel":"ERROR","common-sdk/services/commercegateway/url":"https://ottapi.prod.telia.net/web/no/commercegateway","common-sdk/services/custapp/url":"https://atvno.telia.net","common-sdk/services/engagementgateway/url":"https://engagementgateway-telia.clientapi-prod.live.tv.telia.net/engagementgateway","common-sdk/services/engagementinformationgateway/url":"https://engagementinformationgateway.clientapi-prod.live.tv.telia.net/engagementinformationgateway","common-sdk/services/exploregateway/url":"https://ottapi.prod.telia.net/web/no/exploregateway","common-sdk/services/logingateway/url":"https://logingateway.teliaplay.no/logingateway/","common-sdk/services/messagebar/url":"https://messagebar.clientapi-prod.live.tv.telia.net","common-sdk/services/purchasegateway/url":"https://purchasegateway-telia.clientapi-prod.live.tv.telia.net/purchasegateway","common-sdk/services/remoteclientevents/url":"https://remoteclientevents.clientapi-prod.live.tv.telia.net","common-sdk/services/remoteclientlog/url":"https://remoteclientlog.clientapi-prod.live.tv.telia.net/log","common-sdk/services/tvclientgateway/url":"https://tvclientgateway.clientapi-prod.live.tv.telia.net/tvclientgateway/"},SE:{"common-sdk-base/CacheManager/maxSize":20971520,"common-sdk/Lifecycle/TimeService/adaptiveDate":!0,"common-sdk/Log/logLevel":"ERROR","common-sdk/services/commercegateway/url":"https://ottapi.prod.telia.net/web/se/commercegateway","common-sdk/services/custapp/url":"https://atvse.telia.net","common-sdk/services/engagementgateway/url":"https://engagementgateway-telia.clientapi-prod.live.tv.telia.net/engagementgateway","common-sdk/services/engagementinformationgateway/url":"https://engagementinformationgateway.clientapi-prod.live.tv.telia.net/engagementinformationgateway","common-sdk/services/exploregateway/url":"https://ottapi.prod.telia.net/web/se/exploregateway","common-sdk/services/logingateway/url":"https://logingateway.teliaplay.se/logingateway/","common-sdk/services/messagebar/url":"https://messagebar.clientapi-prod.live.tv.telia.net","common-sdk/services/purchasegateway/url":"https://purchasegateway-telia.clientapi-prod.live.tv.telia.net/purchasegateway","common-sdk/services/remoteclientevents/url":"https://remoteclientevents.clientapi-prod.live.tv.telia.net","common-sdk/services/remoteclientlog/url":"https://remoteclientlog.clientapi-prod.live.tv.telia.net/log","common-sdk/services/tvclientgateway/url":"https://tvclientgateway.clientapi-prod.live.tv.telia.net/tvclientgateway/"}}},{PILOT:{FI:{"app/search/hiddenPurchasableContent":"all"},NO:{"app/search/hiddenPurchasableContent":"rentals"},SE:{"app/search/hiddenPurchasableContent":"all"}},PROD:{FI:{"app/search/hiddenPurchasableContent":"all"},NO:{"app/search/hiddenPurchasableContent":"rentals"},SE:{"app/search/hiddenPurchasableContent":"all"}}},{PILOT:{FI:{"user/profiles/maxNumberOfProfiles":10},NO:{"user/profiles/maxNumberOfProfiles":10},SE:{"user/profiles/maxNumberOfProfiles":10}},PROD:{FI:{"user/profiles/maxNumberOfProfiles":10},NO:{"user/profiles/maxNumberOfProfiles":10},SE:{"user/profiles/maxNumberOfProfiles":10}}}
1,{PILOT:{FI:{"watch/chromecast/applicationId":"0142F0D4","watch/concurrentStreamsInfoUrl":"","watch/deepLink/dynamicLink/baseURL":"https://app-link.test.tv.telia.net","watch/deepLink/native/android/packageName":"com.teliasonera.sonera.viihde.debug","watch/deepLink/native/android/playStoreLink":"https://play.google.com/store/apps/details?id=com.teliasonera.sonera.viihde","watch/deepLink/native/android/versionCode":29874,"watch/deepLink/native/ios/appStoreID":760266794,"watch/deepLink/native/ios/bundleID":"com.teliasonera.viihde.sonera","watch/disableHlsjs":!0,"watch/enableDAISafari":!0,"watch/endScreenRecommendations/enabled":!0,"watch/maxNumberOfDevices":5,"watch/pip/enabled":!1,"watch/playbackTrackingUrl":"https://playbacktrackinggateway.clientapi-pilot.live.tv.telia.net/event","watch/recordAndWatch/enabled":!0,"watch/recording/enabled":!1,"watch/relatedContent/epg/enabled":!0,"watch/streamingUrl":"https://streaminggateway.clientapi-pilot.live.tv.telia.net","watch/UHD/enabled":!0,"watch/useThumbnailScrubbing":!0,"watch/youboraAccountCode":"tv4dev"},NO:{"watch/chromecast/applicationId":"0142F0D4","watch/concurrentStreamsInfoUrl":"","watch/deepLink/dynamicLink/baseURL":"https://app-link.test.tv.telia.net","watch/deepLink/native/android/packageName":"no.get.play.debug","watch/deepLink/native/android/playStoreLink":"https://play.google.com/store/apps/details?id=no.get.play","watch/deepLink/native/android/versionCode":30937,"watch/deepLink/native/ios/appStoreID":1213922701,"watch/deepLink/native/ios/bundleID":"no.get.tv.appletv","watch/disableHlsjs":!0,"watch/enableDAISafari":!0,"watch/endScreenRecommendations/enabled":!0,"watch/maxNumberOfDevices":5,"watch/pip/enabled":!1,"watch/playbackTrackingUrl":"https://playbacktrackinggateway.clientapi-pilot.live.tv.telia.net/event","watch/recordAndWatch/enabled":!1,"watch/recording/enabled":!0,"watch/relatedContent/epg/enabled":!0,"watch/streamingUrl":"https://streaminggateway.clientapi-pilot.live.tv.telia.net","watch/UHD/enabled":!0,"watch/useThumbnailScrubbing":!0,"watch/youboraAccountCode":"tv4dev"},SE:{"watch/chromecast/applicationId":"0142F0D4","watch/concurrentStreamsInfoUrl":"","watch/deepLink/dynamicLink/baseURL":"https://app-link.test.tv.telia.net","watch/deepLink/native/android/packageName":"com.teliasonera.telia.playplus.debug","watch/deepLink/native/android/playStoreLink":"https://play.google.com/store/apps/details?id=com.teliasonera.telia.playplus","watch/deepLink/native/android/versionCode":29874,"watch/deepLink/native/ios/appStoreID":575521559,"watch/deepLink/native/ios/bundleID":"com.teliasonera.playplus.telia","watch/disableHlsjs":!0,"watch/enableDAISafari":!0,"watch/endScreenRecommendations/enabled":!0,"watch/maxNumberOfDevices":5,"watch/pip/enabled":!1,"watch/playbackTrackingUrl":"https://playbacktrackinggateway.clientapi-pilot.live.tv.telia.net/event","watch/recordAndWatch/enabled":!1,"watch/recording/enabled":!1,"watch/relatedContent/epg/enabled":!0,"watch/streamingUrl":"https://streaminggateway.clientapi-pilot.live.tv.telia.net","watch/UHD/enabled":!0,"watch/useThumbnailScrubbing":!0,"watch/youboraAccountCode":"tv4dev"}},PROD:{FI:{"watch/chromecast/applicationId":"14839D9B","watch/concurrentStreamsInfoUrl":"","watch/deepLink/dynamicLink/baseURL":"https://app-link.live.tv.telia.net","watch/deepLink/native/android/packageName":"com.teliasonera.sonera.viihde","watch/deepLink/native/android/playStoreLink":"https://play.google.com/store/apps/details?id=com.teliasonera.sonera.viihde","watch/deepLink/native/android/versionCode":29874,"watch/deepLink/native/ios/appStoreID":760266794,"watch/deepLink/native/ios/bundleID":"com.teliasonera.viihde.sonera","watch/disableHlsjs":!0,"watch/enableDAISafari":!1,"watch/endScreenRecommendations/enabled":!0,"watch/maxNumberOfDevices":5,"watch/pip/enabled":!1,"watch/playbackTrackingUrl":"https://playbacktrackinggateway.clientapi-prod.live.tv.telia.net/event","watch/recordAndWatch/enabled":!0,"watch/recording/enabled":!1,"watch/relatedContent/epg/enabled":!0,"watch/streamingUrl":"https://streaminggateway.clientapi-prod.live.tv.telia.net","watch/UHD/enabled":!0,"watch/useThumbnailScrubbing":!0,"watch/youboraAccountCode":"tv4"},NO:{"watch/chromecast/applicationId":"14839D9B","watch/concurrentStreamsInfoUrl":"","watch/deepLink/dynamicLink/baseURL":"https://app-link.live.tv.telia.net","watch/deepLink/native/android/packageName":"no.get.play","watch/deepLink/native/android/playStoreLink":"https://play.google.com/store/apps/details?id=no.get.play","watch/deepLink/native/android/versionCode":30937,"watch/deepLink/native/ios/appStoreID":1213922701,"watch/deepLink/native/ios/bundleID":"no.get.tv.appletv","watch/disableHlsjs":!0,"watch/enableDAISafari":!1,"watch/endScreenRecommendations/enabled":!0,"watch/maxNumberOfDevices":5,"watch/pip/enabled":!1,"watch/playbackTrackingUrl":"https://playbacktrackinggateway.clientapi-prod.live.tv.telia.net/event","watch/recordAndWatch/enabled":!1,"watch/recording/enabled":!0,"watch/relatedContent/epg/enabled":!0,"watch/streamingUrl":"https://streaminggateway.clientapi-prod.live.tv.telia.net","watch/UHD/enabled":!0,"watch/useThumbnailScrubbing":!0,"watch/youboraAccountCode":"tv4"}
1,SE:{"watch/chromecast/applicationId":"14839D9B","watch/concurrentStreamsInfoUrl":"","watch/deepLink/dynamicLink/baseURL":"https://app-link.live.tv.telia.net","watch/deepLink/native/android/packageName":"com.teliasonera.telia.playplus","watch/deepLink/native/android/playStoreLink":"https://play.google.com/store/apps/details?id=com.teliasonera.telia.playplus","watch/deepLink/native/android/versionCode":29874,"watch/deepLink/native/ios/appStoreID":575521559,"watch/deepLink/native/ios/bundleID":"com.teliasonera.playplus.telia","watch/disableHlsjs":!0,"watch/enableDAISafari":!1,"watch/endScreenRecommendations/enabled":!0,"watch/maxNumberOfDevices":5,"watch/pip/enabled":!1,"watch/playbackTrackingUrl":"https://playbacktrackinggateway.clientapi-prod.live.tv.telia.net/event","watch/recordAndWatch/enabled":!1,"watch/recording/enabled":!1,"watch/relatedContent/epg/enabled":!0,"watch/streamingUrl":"https://streaminggateway.clientapi-prod.live.tv.telia.net","watch/UHD/enabled":!0,"watch/useThumbnailScrubbing":!0,"watch/youboraAccountCode":"tv4"}}},{PILOT:{FI:{"subscription/checkout/type":"internal","subscription/purchase/pin/required":!0,"subscription/selectionMenu/enabled":!1,"subscription/vasStandalone/enabled":!1},NO:{"subscription/checkout/type":"internal","subscription/purchase/pin/required":!0,"subscription/selectionMenu/enabled":!0,"subscription/vasStandalone/enabled":!1},SE:{"subscription/checkout/type":"internal","subscription/purchase/pin/required":!0,"subscription/selectionMenu/enabled":!1,"subscription/vasStandalone/enabled":!0}},PROD:{FI:{"subscription/checkout/type":"internal","subscription/purchase/pin/required":!0,"subscription/selectionMenu/enabled":!1,"subscription/vasStandalone/enabled":!1},NO:{"subscription/checkout/type":"internal","subscription/purchase/pin/required":!0,"subscription/selectionMenu/enabled":!0,"subscription/vasStandalone/enabled":!1},SE:{"subscription/checkout/type":"internal","subscription/purchase/pin/required":!1,"subscription/selectionMenu/enabled":!1,"subscription/vasStandalone/enabled":!0}}},{PILOT:{FI:{"cdp/upgradeRequiredAlert/showProviderName":!1},NO:{"cdp/upgradeRequiredAlert/showProviderName":!0},SE:{"cdp/upgradeRequiredAlert/showProviderName":!1}},PROD:{FI:{"cdp/upgradeRequiredAlert/showProviderName":!1},NO:{"cdp/upgradeRequiredAlert/showProviderName":!0},SE:{"cdp/upgradeRequiredAlert/showProviderName":!1}}},{PILOT:{FI:{"auth/logout/redirectPath":"/","auth/logout/shouldHardReload":!0,"auth/modal/tooManyDevicesRegistered/enabled":!0},NO:{"auth/logout/redirectPath":"/","auth/logout/shouldHardReload":!0,"auth/modal/tooManyDevicesRegistered/enabled":!0},SE:{"auth/logout/redirectPath":"/","auth/logout/shouldHardReload":!0,"auth/modal/tooManyDevicesRegistered/enabled":!0}},PROD:{FI:{"auth/logout/redirectPath":"/","auth/logout/shouldHardReload":!0,"auth/modal/tooManyDevicesRegistered/enabled":!0},NO:{"auth/logout/redirectPath":"/","auth/logout/shouldHardReload":!0,"auth/modal/tooManyDevicesRegistered/enabled":!0},SE:{"auth/logout/redirectPath":"/","auth/logout/shouldHardReload":!0,"auth/modal/tooManyDevicesRegistered/enabled":!0}}},{PILOT:{FI:{"shared/imageProxy/url":"https://director-pilot-image.streaming.telia.com/convert/","shared/services/account/host":"https://account.teliaplay-pilot.fi","shared/services/host":"https://teliaplay-pilot.fi"},NO:{"shared/imageProxy/url":"https://director-pilot-image.streaming.telia.com/convert/","shared/services/account/host":"https://account.teliaplay-pilot.no","shared/services/host":"https://teliaplay-pilot.no"},SE:{"shared/imageProxy/url":"https://director-pilot-image.streaming.telia.com/convert/","shared/services/account/host":"https://account.teliaplay-pilot.se","shared/services/host":"https://teliaplay-pilot.se"}},PROD:{FI:{"shared/google/google-site-verification-id":"lBxbFENIJy5cVZ6qSjc21lyTwkwaYufztXsfLfcPquM","shared/imageProxy/url":"https://director-image.streaming.telia.com/convert/","shared/services/account/host":"https://account.teliaplay.fi","shared/services/host":"https://www.teliaplay.fi"},NO:{"shared/imageProxy/url":"https://director-image.streaming.telia.com/convert/","shared/services/account/host":"https://account.teliaplay.no","shared/services/host":"https://www.teliaplay.no"},SE:{"shared/imageProxy/url":"https://director-image.streaming.telia.com/convert/","shared/services/account/host":"https://account.teliaplay.se","shared/services/host":"https://www.teliaplay.se"}}},{PILOT:{FI:{"epg/regionalChannelsSelection/enabled":!0,"epg/tv/defaultView":"tv-guide"},NO:{"epg/regionalChannelsSelection/enabled":!0,"epg/tv/defaultView":"tv-guide"},SE:{"epg/regionalChannelsSelection/enabled":!0,"epg/tv/defaultView":"tv-channels"}},PROD:{FI:{"epg/regionalChannelsSelection/enabled":!0,"epg/tv/defaultView":"tv-guide"},NO:{"epg/regionalChannelsSelection/enabled":!0,"epg/tv/defaultView":"tv-guide"},SE:{"epg/regionalChannelsSelection/enabled":!0,"epg/tv/defaultView":"tv-channels"}}},{PILOT:{FI:{"analytics/tracking/url":"https://event-tracker.t6a-stage.net/events"},NO:{"analytics/tracking/url":"https://event-tracker.t6a-stage.net/events"},SE:{"analytics/tracking/url":"https://event-tracker.t6a-stage.net/events"}},PROD:{FI:{"analytics/tracking/url":"https://event-tracker.t6a.net/events"},NO:{"analytics/tracking/url":"https://event-tracker.t6a.net/events"},SE:{"analytics/tracking/url":"https://event-tracker.t6a.net/events"}}},{PILOT:{FI:{"page/home/id":"welcome-page","page/kids/id":"play-library-kids","page/kids/personalizedRoutesEnabled":!1,"page/loggedOut/id":"logged-out"},NO:{"page/home/id":"welcome-page","page/kids/id":"kids","page/kids/personalizedRoutesEnabled":!1,"page/loggedOut/id":"logged-out"},SE:{"page/home/id":"welcome-page","page/kids/id":"kids","page/kids/personalizedRoutesEnabled":!1,"page/loggedOut/id":"logged-out"}},PROD:{FI:{"page/home/id":"welcome-page","page/kids/id":"kids","page/kids/personalizedRoutesEnabled":!1,"page/loggedOut/id":"logged-out"},NO:{"page/home/id":"welcome-page","page/kids/id":"kids","page/kids/personalizedRoutesEnabled":!1,"page/loggedOut/id":"logged-out"},SE:{"page/home/id":"welcome-page","page/kids/id":"kids","page/kids/personalizedRoutesEnabled":!1,"page/loggedOut/id":"logged-out"}}}];var a=o("../../libs/core/dist/index.mjs");const s={...(e=>e.reduce((e,t)=>
1({...e,...t[a.cA][a.x6]}),{}))(n),...(()=>{if("undefined"!=typeof localStorage)try{const e=localStorage.getItem("dev-sdk-config");return e?JSON.parse(e):void 0}catch{localStorage.removeItem("dev-sdk-config")}})()};r.Config.setDefaults(s);var i=o("../../libs/error-monitoring/dist/index.mjs"),c=o("../../libs/utils/dist/index.mjs"),d=o("../../../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");const l=[],p=(0,c.J8)({languageMap:{EN:"en",FI:"fi",NO:"no",SE:"sv"}});(0,c.U9)({backend:{loadPath:"/oneweb/locales/{{lng}}/{{ns}}.json?version=1.208.1"},callback:e=>{if(e){const t="string"==typeof e?e:e.message||JSON.stringify(e);(0,i.vV)(new Error(t),{context:"i18n.callback.initializeError"})}},defaultNS:"oneapp",detection:{order:["querystring","marketDetector"]},fallbackLng:!1,missingKeyHandler:(e,t,o)=>{(0,d.TO)().isInitialized&&(l.includes(o)||(l.push(o),(0,i.vV)(new Error(`Missing translation key: ${o}`),{context:"i18n.missingKeyHandler",metadata:{languages:e.toString(),namespace:t,translationKey:o}})))},ns:["branding","oneapp"],plugins:[p],react:{useSuspense:!1},saveMissing:!0});var m=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/Boot.js"),u=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/collections/HttpRequestInterceptors.js"),g=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/collections/StatisticsHttpBlacklisters.js");const h=r.Config.get("watch/playbackTrackingUrl"),y=r.Config.get("apollo/graphql/chaosGeneratorHeader"),f=r.Config.get("apollo/graphql/tvClientName");g.StatisticsHttpBlacklisters.provide(()=>[{isStatisticsBlacklisted:e=>e.request.url.includes(h)}]),u.HttpRequestInterceptors.provide(()=>[{interceptRequest(e){if(e.url.includes("/graphql")){const t=m.Boot.instance();e.headers["tv-client-name"]=f,e.headers["tv-client-boot-id"]=t.getBootId(),e.headers["tv-client-tz"]=Intl.DateTimeFormat().resolvedOptions().timeZone,e.headers["tv-client-version"]="1.208.1",e.headers["x-country"]=a.x6,e.headers["preferences-language"]=(0,d.TO)().language,y&&(e.headers["x-chaos"]=y)}}}]);var b=o("./src/auth/utils/goToOAuthLoginUrl.ts");o("../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@telia-company/tv.common-sdk-authentication/dist/abstractions/client/AuthenticateIF.js").AuthenticateIF.implement(()=>({authenticateEnd:async()=>{},authenticateStart:async()=>(0,b.n)(),requestCredentials:async()=>{}}));var _=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/abstractions/client/ClientInformationIF.js");const v={PILOT:"STAGE",PROD:"PROD"};_.ClientInformationIF.implement(()=>({getClientInformation:async()=>({client:"WEB",country:a.x6,environment:v[a.cA],name:"one-web",version:"PROD"===a.cA?"1.208.1":"DEV_BUILD",whiteLabelBrand:"TELIA"})}));var x=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/abstractions/device/DeviceInformationIF.js"),k=o("../../../node_modules/.pnpm/[email protected]/node_modules/bowser/es5.js");const w=o.n(k)().getParser(window?.navigator.userAgent),E=()=>{const{model:e,type:t}=w.getPlatform(),o=(()=>{const e=w.getOSName(!0);return"macos"===e?"mac":e||"tvegui_on_unknown_platform"})();return"desktop"===t?`${o}_${t}`:"iPhone"===e||"iPad"===e?e.toLowerCase():"mobile"===t?`${o}_phone`:t?`${o}_${t}`:"unknown_model"};x.DeviceInformationIF.implement(()=>({getDeviceInformation:async()=>{const e=E(),t=w.getOSVersion()||"unknown_platformVersion",{vendor:o}=w.getPlatform();return{deviceType:"WEB",model:e,vendor:o,version:t}}})),o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/abstractions/platform/ScreenIF.js").ScreenIF.override(()=>({getDeviceResolution:()=>({height:window?window.screen.height*window.devicePixelRatio:0,width:window?window.screen.width*window.devicePixelRatio:0})}));var A=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/abstractions/SystemIF.js"),S=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/DataManager.js");A.SystemIF.implement(()=>({getSystemInfo:async()=>{const e=S.DataManager.instance(),t=_.ClientInformationIF.resolve(),{environment:o}=await t.getClientInformation(),r=await e.sendGet("https://telia-play-time.t6a.net/now","no-cache",{headers:{client:"telia-web"}});return{environment:o,time:new Date(r.text).getTime()}}}));var P=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.oneapp-web-analytics/dist/index.js"),I=(o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/index.js"),o("../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@telia-company/tv.common-sdk-authentication/dist/index.js"),o("../../../node_modules/.pnpm/@[email protected]_@telia-company+tv.common-sdk-authenticat_eff6e477fccb3c1035e3d63ff0e72c04/node_modules/@telia-company/tv.common-sdk-legacy-pack/dist/index.js"),o("../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@telia-company/tv.common-sdk-log/dist/index.js"),o("../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@telia-company/tv.common-sdk-log/dist/providers/remoteclientlog/index.js"),o("../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@telia-company/tv.common-sdk-platform-bom/dist/index.js"),o("../../../node_modules/.pnpm/@[email protected]_@telia-company+tv.common-sdk-au_6ac7ec7dafe15e752f37f16cbd810432/node_modules/@telia-company/tv.common-sdk-remote-client-events/dist/index.js"),o("../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@telia-company/tv.common-sdk-statistics-http/dist/index.js"),o("../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@telia-company/tv.common-sdk-statistics-http/dist/providers/remoteclientlog/index.js"),o("../../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/client.js")),L=o("./src/core/analytics/tracker.ts"),O=o("../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_react-_23af7fe1a84405345a895683eefe299d/node_modules/@apollo/client/react/context/ApolloProvider.js"),C=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js"),T=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js"),R=o("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js"),j=o("../../../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"),D=o("./src/shared/constants/zindex.ts"),N=o("../../../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 M=(0,j.A)("div",{target:"esjv5gt1"})({name:"8b5q42",styles:"margin-top:1px;background-color:#0052ff;padding:5px;font-family:sans-serif"}),F=(0,j.A)("section",{target:"esjv5gt0"})("position:fixed;z-index:",D.M.DEV_INFO,";bottom:0;right:0;width:100%;font-size:14px;"),Y=()=>{const e=localStorage.getItem("dev-graphql"),t=localStorage.getItem("dev-sdk-config");return e||t?(0,N.FD)(F,{"aria-label":"Devtool info box",children:[e&&(0,N.FD)(M,{children:["You are overriding the GrahQL server and using $",e]}),t&&(0,N.Y)(M,{children:"You are overriding the Common SDK config."})]}):null};var $=o("./src/shared/components/ui/Modal/index.ts"),q=o("./src/shared/hooks/useIsTooManyDevicesRegistered.ts"),z=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js");var B=o("./src/auth/providers/AuthProvider.tsx"),U=o("./src/core/apollo/client.ts"),V=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@telia-company/tv.common-sdk-authentication/dist/Account.js"),G=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@telia-company/tv.common-sdk-authentication/dist/Authentication.js"),H=o("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-62JRHF6Z.mjs");const W=e=>{if(e){const t=a.cA;window._KAMPYLE_PRIVATE_DATA={...e,environment:t,market:a.x6}}window.KAMPYLE_ONSITE_SDK&&"function"==typeof window.KAMPYLE_ONSITE_SDK.updatePageView&&window.KAMPYLE_ONSITE_SDK.updatePageView()},K=async e=>{const t=V.Account.instance();if(e){return(await t.getAccountInformation()).id}};var Z=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/abstractions/device/DeviceIdentificationIF.js");var X=o("./src/core/router/Router.tsx"),J=o("./src/profiles/providers/UserProvider/UserProvider.tsx"),Q=o("./src/shared/components/custom/Announcement/Context/AnnouncementContext.tsx"),ee=o("./src/shared/components/custom/DecoratedHelmet.tsx"),te=o("./src/shared/components/custom/ErrorBoundary.tsx"),oe=o("./src/shared/components/custom/SkipNav/index.ts"),re=o("./src/shared/components/ui/Snackbar/index.ts"),ne=o("./src/shared/hooks/useWindowSize.ts"),ae=o("./src/shared/utils/breakpoints/constants.ts"),se=o("./src/shared/utils/isDefined.ts"),ie=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@telia-company/tv.common-sdk-authentication/dist/Profile.js"),ce=o("../../../node_modules/.pnpm/@[email protected]_@telia-company+tv.common-sdk-authenticat_eff6e477fccb3c1035e3d63ff0e72c04/node_modules/@telia-company/tv.common-sdk-legacy-pack/dist/PreferredLanguages.js"),de=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/legacy/desktop/telia/tokens.json"),le=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/legacy/mobile/telia/tokens.json"),pe=o("../../../node_modules/.pnpm/@telia-company+tv.
1[email protected]_@[email protected]_@[email protected]._40a8934ef08e2f116702e118aa44b3c2/node_modules/@telia-company/tv.web-player-cc-sender/dist/web-player-cc-sender.min.js");const me=({children:e})=>{const{isLoggedIn:t}=(0,B.Z)(),[o,n]=(0,z.useState)(),{t:s}=(0,d.Bd)(),i=(0,ne.l)(),c=(0,z.useMemo)(()=>i.width<ae.f.M?le:de,[i]),[l,p]=(0,z.useState)();(0,z.useEffect)(()=>{Promise.all([ce.jf.instance().getPreferredSubtitleLanguage(),ce.jf.instance().getPreferredAudioLanguage()]).then(([e,t])=>{p({audio:[t],audioRoles:[],text:[e],textRoles:[]})})},[]),(0,z.useEffect)(()=>{t&&(async()=>{const e=G.Authentication.instance(),t=await e.getSessionInfo();if(t?.refreshToken){const e=ie.Profile.instance(),o=await e.getToken();n({autoLogin:!0,auxiliaryData:{profileHeader:o?`Bearer ${o}`:void 0},token:t.refreshToken,type:"TOKEN"})}})()},[t]);const m=(0,z.useMemo)(()=>({a11yElapsed:s("ACCESSIBILITY_ELAPSED"),a11yEndTime:s("ACCESSIBILITY_END_TIME"),a11yRemaining:s("ACCESSIBILITY_REMAINING"),a11yStartTime:s("ACCESSIBILITY_START_TIME"),a11yVolume:s("ACCESSIBILITY_VOLUME"),a11yVolumeMute:s("ACCESSIBILITY_VOLUME_MUTE"),a11yVolumeUnmute:s("ACCESSIBILITY_VOLUME_ON"),audioTracks:s("AUDIO"),descriptiveAudio:s("AUDIO_DESCRIPTION"),episode:s("EPISODE"),hardOfHearingSubtitles:s("HARD_OF_HEARING"),off:s("OFF"),pause:s("TOOLTIP_PAUSE"),play:s("TOOLTIP_PLAY"),season:s("SEASON"),stopCasting:s("TOOLTIP_STOP_CASTING"),subtitleTracks:s("SUBTITLES")}),[s]);return t&&o&&(0,se.O)(l)?(0,N.Y)(pe.UselessProvider,{applicationId:r.Config.get("watch/chromecast/applicationId"),breakpoints:ae.f,credentials:o,designTokens:c,preferredLanguage:l,serviceCountry:a.x6,translations:m,children:e}):(0,N.Y)(N.FK,{children:e})};var ue=o("../../libs/ui/dist/index.mjs"),ge=o("../../../node_modules/.pnpm/[email protected][email protected]/node_modules/i18next/dist/esm/i18next.js"),he=o("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs"),ye=o("../../../node_modules/.pnpm/[email protected]/node_modules/smoothscroll-polyfill/dist/smoothscroll.js"),fe=o("./src/shared/components/custom/Navbar/index.ts"),be=o("./src/shared/components/ui/Button/index.ts"),_e=o("./src/__dev__/routes.tsx");const ve=(0,j.A)("div",{target:"e1wh82yc0"})("z-index:",D.M.ENV_SELECTOR,";position:fixed;bottom:16px;left:16px;"),xe=()=>{const e=(0,H.zy)(),{t:t}=(0,d.Bd)();return e.pathname===_e.o.CONFIG?null:(0,N.Y)(ve,{children:(0,N.Y)(be.$,{"aria-label":t("SETTINGS"),as:H.N_,icon:"Settings",to:_e.o.CONFIG,variant:"secondary"})})};var ke=o("./src/shared/utils/breakpoints/mq.ts"),we=o("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-intersection-observer/dist/index.mjs"),Ee=o("./src/shared/components/custom/SmartLink/SmartLink.tsx"),Ae=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js");const Se=(0,j.A)(Ae.PA,{target:"e1riqmf50"})("height:24px;width:61.5px;",ke.mq.M` 2 height: 32px; 3 width: 82px; // Value from Figma 4 `,";"),Pe=e=>{const{t:t}=(0,d.Bd)();return(0,N.Y)(Ee.i,{"aria-label":t("branding:COMPANY_NAME"),href:t("branding:COMPANY_URL"),...e,children:(0,N.Y)(Se,{name:"LogoTeliaWhite"})})};const Ie=(0,j.A)("div",{target:"e1whchbk8"})("display:flex;border-top:1px solid ",Ae.ue.color.border.separatorWeak,";padding:32px;margin:0 auto;",ke.mq.M` 5 margin: 0 40px; 6 `," ",ke.mq.L` 7 margin: 0 80px; 8 `,";"),Le=(0,j.A)("div",{target:"e1whchbk7"})({name:"4ampm5",styles:"display:flex;flex-direction:column;width:200px;&:not(:last-of-type){margin-right:16px;}&:last-of-type{margin-left:auto;width:220px;text-align:left;}"}),Oe=(0,j.A)("ul",{target:"e1whchbk6"})({name:"1dwqukr",styles:"list-style-type:none;margin:0;padding:0"}),Ce=(0,j.A)(Ee.i,{shouldForwardProp:e=>(0,T.A)(e)&&"isActive"!==e,target:"e1whchbk5"})(Ae.ue.typography.textSecondary," margin-top:4px;color:",({isActive:e})=>e?Ae.ue.color.text.primary:Ae.ue.color.text.disabled,";"),Te=(0,j.A)("button",{target:"e1whchbk4"})(Ae.ue.typography.textSecondary," background-color:transparent;color:",Ae.ue.color.text.primary,";display:inline-flex;border:none;padding:0;cursor:pointer;text-align:left;margin-top:4px;"),Re=(0,j.A)("p",{target:"e1whchbk3"})(Ae.ue.typography.textSecondary," color:",Ae.ue.color.text.tertiary,";margin-top:0;margin-bottom:0;text-transform:initial;text-align:right;"),je=(0,j.A)("div",{target:"e1whchbk2"})("opacity:",({isActive:e})=>e?1:.3,";display:flex;"),De=(0,j.A)("h2",{target:"e1whchbk1"})(Ae.ue.typography.textSecondary," color:",Ae.ue.color.text.tertiary,";text-transform:initial;margin-bottom:0;"),Ne=(0,j.A)("li",{target:"e1whchbk0"})({name:"ffhm6p",styles:"list-style-type:none"}),Me=({footerData:e,...t})=>{const[o,r]=(0,we.Wx)({threshold:.9}),[n,a]=(0,z.useState)(!1),[s,i]=(0,z.useState)(!1);(0,z.useEffect)(()=>{r&&a(!0),r||s||a(!1)},[r,s]);return(0,N.FD)(Ie,{...t,onMouseEnter:()=>{a(!0),i(!0)},onMouseLeave:()=>{r||a(!1),i(!1)},ref:o,children:[(0,N.Y)(Le,{children:(0,N.Y)(je,{isActive:n,children:(0,N.Y)(Pe,{"data-testid":"footer-logo"})})}),e.sections.map(e=>(0,N.FD)(Le,{children:[(0,N.Y)(De,{children:e.title}),(0,N.Y)(Oe,{role:"list",children:e.links.map(e=>(0,N.FD)(Ne,{children:[e.url&&(0,N.Y)(Ce,{"data-testid":e.testId,href:e.url,isActive:n,target:e.target,children:e.title}),!e.url&&(0,N.Y)(Te,{className:e.className,id:e.id,onClick:e.onClick,children:e.title})]},e.title))})]},e.title)),(0,N.FD)(Le,{children:[(0,N.Y)(Re,{children:e.copyright}),e.partOfText&&(0,N.Y)(Re,{children:e.partOfText}),(0,N.Y)(Re,{children:e.organizationNumber})]})]})};const Fe=(0,j.A)("div",{target:"em1x5d14"})({name:"1bnbb16",styles:"display:flex;flex-direction:column;width:100%;margin:0 auto;box-sizing:border-box;padding:0 16px"}),Ye=(0,j.A)("div",{target:"em1x5d13"})("display:flex;width:100%;justify-content:space-between;border-bottom:1px solid ",Ae.ue.color.border.separatorWeak,";padding:12px 0;&:first-of-type{border-top:1px solid ",Ae.ue.color.border.separatorWeak,";}&:last-of-type{margin-top:20px;padding:12px 8px;border:none;text-align:right;box-sizing:border-box;}"),$e=(0,j.A)("ul",{target:"em1x5d12"})({name:"1ucyjdf",styles:"list-style-type:none;margin:0;padding:0;display:flex;flex-direction:column;padding:0 8px;box-sizing:border-box"}),qe=(0,j.A)("p",{target:"em1x5d11"})(Ae.ue.typography.textSecondary," color:",Ae.ue.color.text.tertiary,";max-width:220px;margin:0;"),ze=(0,j.A)("div",{target:"em1x5d10"})("display:flex;width:70px;height:32px;",ke.mq.S` 9 width: 82px; 10 height: 40px; 11 `,";");var Be=o("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/dist/emotion-react.browser.esm.js");const Ue=(0,j.A)("div",{target:"e1hnn3p92"})({name:"17ktc51",styles:"display:flex;justify-content:space-between;align-items:center;width:100%;padding:0 8px;box-sizing:border-box"}),Ve=(0,j.A)("h2",{target:"e1hnn3p91"})(Ae.ue.typography.textSecondary," ",({isOpen:e})=>(0,Be.css)("color:",e?Ae.ue.color.text.tertiary:Ae.ue.color.text.primary,";")," margin:0;text-transform:initial;"),Ge=(0,j.A)(Ae.PA,{shouldForwardProp:e=>"isRotated"!==e,target:"e1hnn3p90"})("width:20px;height:20px;color:",Ae.ue.color.text.primary,";transition:rotate 0.3s ease;rotate:",({isRotated:e})=>e?180:0,"deg;"),He=({isOpen:e,sectionTitle:t})=>(0,N.FD)(Ue,{children:[(0,N.Y)(Ve,{isOpen:e,children:t}),(0,N.Y)(Ge,{isRotated:e,name:"ChevronDown",role:"none"})]});var We=o("./src/shared/components/ui/Collapsible/Collapsible.tsx");const Ke=(0,j.A)(We.N,{target:"eelbzi43"})({name:"1d3w5wq",styles:"width:100%"}),Ze=(0,j.A)(Ee.i,{target:"eelbzi42"})({name:"hffm1x",styles:"margin-top:12px;&:last-of-type{margin-bottom:13px;}"}),Xe=(0,j.A)("button",{target:"eelbzi41"})({name:"w6ix51",styles:"background-color:transparent;margin-top:12px;margin-bottom:12px;display:inline-flex;border:none;padding:0;cursor:pointer"}),Je=(0,j.A)("li",{target:"eelbzi40"})({name:"ffhm6p",styles:"list-style-type:none"}),Qe=({index:e,section:t})=>{const[o,r]=(0,z.useState)(!1),n=`footer-collapsible-container-${e}`,a=`footer-collapsible-content-${e}`;
11return(0,N.Y)(Ye,{children:(0,N.Y)(Ke,{containerId:n,content:(0,N.Y)($e,{role:"list",children:t.links.map(e=>(0,N.FD)(Je,{children:[e.url&&(0,N.Y)(Ze,{"data-testid":e.testId,href:e.url,children:e.title}),!e.url&&(0,N.Y)(Xe,{className:e.className,id:e.id,onClick:e.onClick,children:e.title})]},e.title))}),contentId:a,header:(0,N.Y)(He,{isOpen:o,sectionTitle:t.title}),isExpanded:o,onClick:()=>{r(e=>!e)}})})},et=({footerData:e,...t})=>(0,N.FD)(Fe,{...t,children:[e.sections.map((e,t)=>(0,N.Y)(Qe,{index:t,section:e},t)),(0,N.FD)(Ye,{children:[(0,N.Y)(ze,{children:(0,N.Y)(Pe,{"date-testid":"footer-logo"})}),(0,N.FD)($e,{children:[(0,N.Y)(qe,{children:e.copyright}),e.partOfText&&(0,N.Y)(qe,{children:e.partOfText}),(0,N.Y)(qe,{children:e.organizationNumber})]})]})]});var tt=o("./src/shared/hooks/useMainMenuItems.ts");const ot=(0,j.A)(et,{target:"ellqatd1"})("display:flex;margin-top:108px;",ke.mq.S` 12 margin-top: 80px; 13 `,";",ke.mq.M`display: none;`,";"),rt=(0,j.A)(Me,{target:"ellqatd0"})("display:none;",ke.mq.M` 14 display: flex; 15 margin-top: 96px; 16 `,";"),nt=()=>{const e=(()=>{const{pathname:e}=(0,H.zy)();return["/login","/forgot-password","/forgot-username"].includes(e)})(),t=(()=>{const{pathname:e}=(0,H.zy)();return e.startsWith("/profiles")})(),r=(()=>{const{pathname:e}=(0,H.zy)();return e.startsWith("/watch")})(),n=(()=>{const{t:e}=(0,d.Bd)(),t=(0,tt.w)(),[r,n]=(0,z.useState)();return(0,z.useEffect)(()=>{(async()=>{n((await{FI:()=>o.e(466).then(o.bind(o,"./src/core/app/components/Footer/hooks/useFooterNavigationData/utils/getFooterDataForFinland.ts")),NO:()=>o.e(638).then(o.bind(o,"./src/core/app/components/Footer/hooks/useFooterNavigationData/utils/getFooterDataForNorway.ts")),SE:()=>o.e(52).then(o.bind(o,"./src/core/app/components/Footer/hooks/useFooterNavigationData/utils/getFooterDataForSweden.ts"))}[a.x6]()).default(e))})()},[e]),(0,z.useMemo)(()=>{if(r)return{...r,sections:[{links:t.map(e=>({testId:`footer-${e.text}`,title:e.text,url:e.href||""})),title:e("branding:PRODUCT_NAME")},...r.sections]}},[r,t,e])})();return e||t||r?null:(0,N.FD)("footer",{children:[n&&(0,N.FD)(N.FK,{children:[(0,N.Y)(rt,{footerData:n}),(0,N.Y)(ot,{footerData:n})]}),"true"==="MISSING_ENV_VAR".ENABLE_ENV_SELECTOR&&(0,N.Y)(xe,{})]})};var at=o("../../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-helmet/es/Helmet.js");const st=o.p+"oneweb/images/apple-touch-icon-28ca156d.png?v=1.208.1",it=o.p+"oneweb/images/favicon-16x16-462dbee1.png?v=1.208.1",ct=o.p+"oneweb/images/favicon-32x32-1f090b7c.png?v=1.208.1",dt=o.p+"oneweb/images/safari-pinned-tab-9f4a8070.svg?v=1.208.1",lt=()=>{const{t:e}=(0,d.Bd)(),t=r.Config.get("shared/google/google-site-verification-id");return(0,N.FD)(at.m,{children:[(0,N.Y)("link",{href:st,rel:"apple-touch-icon",sizes:"180x180"}),(0,N.Y)("link",{href:ct,rel:"icon",sizes:"32x32",type:"image/png"}),(0,N.Y)("link",{href:it,rel:"icon",sizes:"16x16",type:"image/png"}),(0,N.Y)("link",{color:Ae.ue.color.accent.brand,href:dt,rel:"mask-icon"}),(0,N.Y)("link",{href:"/.well-known/apple-app-site-association",rel:"apple-app-site-association",type:"application/json"}),(0,N.Y)("meta",{content:Ae.ue.color.accent.brand,name:"msapplication-TileColor"}),(0,N.Y)("meta",{content:Ae.ue.color.background.primary,name:"theme-color"}),t&&(0,N.Y)("meta",{content:t,name:"google-site-verification"}),(0,N.Y)("title",{children:e("branding:PRODUCT_NAME")})]})};const pt="lastBuildCheckTime",mt=18e5,ut=async()=>{if((()=>{const e=window.localStorage.getItem(pt);if(!e)return!1;return Date.now()-Number(e)<=mt})())return!1;try{return await(async()=>{localStorage.setItem(pt,`${Date.now()}`);const e=1790079344297,t=await fetch("/oneweb/build-time.json",{cache:"no-store"}),{buildTime:o}=await t.json();return o!==e})()}catch(e){return!1}},gt=(0,j.A)("div",{target:"e1a308q61"})({name:"1fttcpj",styles:"display:flex;flex-direction:column"}),ht=(0,j.A)("button",{target:"e1a308q60"})("background-color:transparent;width:fit-content;border:none;color:",Ae.ue.color.text.primary,";cursor:pointer;padding:0;",Ae.ue.typography.textPrimary,";text-decoration:underline;"),yt=()=>{const{t:e}=(0,d.Bd)();return(0,N.FD)(gt,{children:[e("NEW_VERSION_AVAILABLE"),(0,N.Y)(ht,{onClick:()=>window.location.reload(),children:e("RELOAD_PAGE")})]})}
16,ft=()=>{const{addSnackbar:e}=(0,re.k)(),t=(0,z.useCallback)(async()=>{await ut()&&e({autoDismiss:!0,content:(0,N.Y)(yt,{}),dismissOnActionClick:!0,variant:"neutral"})},[e]);(0,z.useEffect)(()=>{t();const e=(()=>{const e=window.localStorage.getItem(pt);if(e){const t=Date.now()-Number(e);if(t<mt)return mt-t}return mt})();let o;const r=setTimeout(async()=>{await t(),o=setInterval(t,mt)},e);return()=>{r&&clearTimeout(r),o&&clearInterval(o)}},[t])};var bt=o("./src/shared/hooks/useLockRootElement.ts");const _t=()=>{const[e,t]=(0,z.useState)("undefined"==typeof navigator||"boolean"!=typeof navigator.onLine||navigator.onLine),{addSnackbar:o}=(0,re.k)(),{t:r}=(0,d.Bd)(),{lockRootElement:n,unlockRootElement:a}=(0,bt.X)({skipOnMount:!0});return(0,z.useEffect)(()=>{const e=()=>t(!0),o=()=>t(!1);return window.addEventListener("online",e),window.addEventListener("offline",o),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",o)}},[]),(0,z.useEffect)(()=>{if(e)return;n();const{removeSnackbar:t}=o({autoDismiss:!1,content:r("NO_INTERNET"),dismissOnActionClick:!1,showSpinner:!0,variant:"networkUnavailable"}),s=(()=>{const e=document.createElement("div");return e.style.cssText=`\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: ${D.M.WINDOW_OVERLAY};\n background-color: ${Ae.ue.color.background.overlay60};\n `,document.body.appendChild(e),e})();return()=>{t(),a(),document.body.removeChild(s)}},[o,n,e,r,a]),e};var vt=o("./src/watch/routes.tsx"),xt=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/ServiceMessages.js");var kt=o("./src/codegen/graphql.ts"),wt=o("./src/shared/hooks/useAccountInfo.ts");(0,ye.polyfill)();const Et=[()=>{if(r.Config.get("app/medallia/enabled"))return{src:"https://resources.digital-cloud.medallia.eu/wdceu/401265/onsite/embed.js",type:"text/javascript"}},()=>{if(r.Config.get("app/gtm/enabled"))return r.Config.get("app/gtm/ids").map(P.getGTMScript)},()=>{if(r.Config.get("app/onetrust/enabled"))return{charset:"UTF-8","data-document-language":!0,"data-domain-script":r.Config.get("app/onetrust/id"),src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",type:"text/javascript"}}].map(e=>e()).flat().filter(Boolean),At=(0,C.A)({key:"css"});At.compat=!0;const St=(Pt=()=>((()=>{const e=(0,wt.T)(),{currentProfile:t,loading:o,subscriptions:r}=(0,J.u)(),n=(0,z.useMemo)(()=>r?.map(e=>e.subscription.name).join("|"),[r]);(0,z.useEffect)(()=>{(async()=>{L.F.releaseEvents();const r=Z.DeviceIdentificationIF.resolve(),s={device_id:await r.getDeviceId(),tv_client_name:"web",user_market:a.x6};e?.id&&!o&&t?.id?L.F.setGlobalProperties({...s,account_id:e.tvAccountId,country:a.x6,engagement_id:e.id,profile_id:t?.id,profile_type:t?.ageGroup?t?.ageGroup===kt.P2Z.Adult?"adult":"child":void 0,user_package:n}):L.F.setGlobalProperties(s)})()},[e,n,o,t])})(),_t(),(()=>{const e=(0,H.zy)(),t=(0,z.useRef)(e.pathname);(0,z.useEffect)(()=>{r.Config.get("app/medallia/enabled")&&t.current!==e.pathname&&(t.current=e.pathname,W())},[e.pathname]),(0,z.useEffect)(()=>{r.Config.get("app/medallia/enabled")&&(async()=>{const e=G.Authentication.instance(),t=await e.isLoggedin(),o=await K(t);W({accountID:o,isLoggedIn:t})})()},[]),(0,z.useEffect)(()=>{if(!r.Config.get("app/medallia/enabled"))return;const e=G.Authentication.statics.events.authentication.on(async({loggedin:e})=>{const t=await K(e);W({accountID:t,isLoggedIn:e})});return()=>{G.Authentication.statics.events.authentication.off(e)}},[])})(),(()=>{const{t:e}=(0,d.Bd)(),{closeModal:t,showModal:o}=(0,$.k3)(),n=(0,z.useCallback)(()=>{const n=r.Config.get("shared/services/account/host"),a=n.replace("https://","");o({actions:[{label:e("CLOSE"),onClick:()=>t(),variant:"secondary"}],actionsPlacement:"center",children:(0,N.Y)("p",{dangerouslySetInnerHTML:{__html:e("DRM_REGISTRATION_FAILURE_TOO_MANY_DEVICES",{accountUrl:n,accountUrlDisplay:a,companyName:e("branding:COMPANY_NAME"),numberOfDevices:r.Config.get("watch/maxNumberOfDevices"),productShortName:e("branding:PRODUCT_NAME")})}}),dismissable:!1,overlayEventTrackingData:{overlay_title:"Too many devices"}})},[t,o,e]),a=(0,q._)();(0,z.useEffect)(()=>{r.Config.get("auth/modal/tooManyDevicesRegistered/enabled")&&a&&n()},[a,n])})(),(()=>{const e=!!(0,H.RQ)(vt.i.DEFAULT);(0,z.useEffect)(()=>
16{if(e)return;const t=xt.ServiceMessages.statics.events.selectionMenu.on(()=>{location.reload()});return()=>{xt.ServiceMessages.statics.events.selectionMenu.off(t)}},[e])})(),ft(),(0,z.useEffect)(()=>{window.removeEventListener("error",window.onErrorGlobalHandler),(async()=>{try{(0,i.au)({bootId:m.Boot.instance().getBootId(),deviceId:await Z.DeviceIdentificationIF.resolve().getDeviceId()})}catch{}})()},[]),(0,N.Y)(R.C,{value:At,children:(0,N.FD)(he.x,{isValidProp:T.A,reducedMotion:"user",children:[(0,N.Y)(lt,{}),(0,N.Y)(ee.J,{script:Et}),(0,N.Y)(Y,{}),(0,N.Y)(me,{children:(0,N.FD)(fe.G5,{children:[(0,N.Y)(X.I,{id:"main-content"}),(0,N.Y)(nt,{})]})})]})})),(0,d.CI)()(()=>(0,N.Y)(B.O,{children:(0,N.Y)(ue.Lr,{market:a.x6,children:(0,N.Y)(O.X,{client:U.S,children:(0,N.FD)(H.Kd,{children:[(0,N.Y)(oe.p,{label:(0,ge.t)("GO_TO_CONTENT"),targetId:"main-content"}),(0,N.Y)(te.t,{children:(0,N.Y)($.Zn,{children:(0,N.Y)(re.n,{children:(0,N.Y)(J.v,{children:(0,N.Y)(Q.j,{children:(0,N.Y)(Pt,{})})})})})})]})})})})));var Pt,It=o("./config/datadog.cjs"),Lt=o.n(It);"MISSING_ENV_VAR".IS_PREVIEW_SITE||o.e(249).then(o.bind(o,"../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@telia-company/tv.common-sdk-authentication/dist/cookiesupport/index.js")),(async()=>{void 0===window.IntersectionObserver&&await o.e(96).then(o.t.bind(o,"../../../node_modules/.pnpm/[email protected]/node_modules/intersection-observer/intersection-observer.js",23))})(),function(){const e={apiKey:"f704d6c8ced065009719ab8c732007ea"},t={applicationId:"2bb527e4-cf68-41e9-8481-864c1bce465e",clientToken:"pub7eed0f383c9a12cae25c365ead61e1e4",service:Lt().service};(0,i.f5)({appVersion:"1.208.1",bugsnag:e,buildTime:1790079344297,datadog:t})}(),(0,P.setAppVersion)("1.208.1"),window.__APP_VERSION__="1.208.1",L.F.trackPage({page_name:{id:"root"},page_variant:"page"});const Ot=document.getElementById("root");if(!Ot)throw new Error("Root element not found");(0,I.createRoot)(Ot).render((0,N.Y)(St,{}))},"./src/page/components/Panels/ChannelsPanel/ChannelsPanel.constants.ts"(e,t,o){"use strict";o.d(t,{g:()=>r,n:()=>n});const r=16,n=3},"./src/page/routes.tsx"(e,t,o){"use strict";o.d(t,{a:()=>E,q:()=>g});var r=o("./src/core/router/constants.ts"),n=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/Config.js"),a=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),s=o("../../../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,a.lazy)(()=>Promise.all([o.e(249),o.e(644),o.e(96),o.e(47),o.e(954),o.e(670),o.e(995),o.e(668),o.e(136)]).then(o.bind(o,"./src/page/views/HomepageView.tsx"))),c=(0,a.lazy)(()=>Promise.all([o.e(249),o.e(644),o.e(96),o.e(47),o.e(954),o.e(670),o.e(995),o.e(668)]).then(o.bind(o,"./src/page/views/PageView/PageView.tsx"))),d=(0,a.lazy)(()=>Promise.all([o.e(249),o.e(644),o.e(96),o.e(47),o.e(954),o.e(670),o.e(356)]).then(o.bind(o,"./src/page/views/StoreView.tsx"))),l=(0,a.lazy)(()=>Promise.all([o.e(249),o.e(644),o.e(96),o.e(47),o.e(954),o.e(670),o.e(995),o.e(556)]).then(o.bind(o,"./src/page/views/ContinueWatchingView.tsx"))),p=(0,a.lazy)(()=>Promise.all([o.e(249),o.e(644),o.e(96),o.e(47),o.e(954),o.e(670),o.e(995)]).then(o.bind(o,"./src/page/views/PanelView/PanelView.tsx"))),m=(0,a.lazy)(()=>Promise.all([o.e(249),o.e(644),o.e(96),o.e(47),o.e(954),o.e(670),o.e(995),o.e(772)]).then(o.bind(o,"./src/page/views/MyListView.tsx"))),u=(0,a.lazy)(()=>Promise.all([o.e(249),o.e(644),o.e(96),o.e(47),o.e(954),o.e(670),o.e(494)]).then(o.bind(o,"./src/page/views/TeamPageView.tsx")));let g=function(e){return e.CONTINUE_WATCHING="/continue-watching",e.HOME="/",e.MY_LIST="/my-list",e.PAGE="/:pageId",e.PANEL="/panel/:panelId",e.STORE="/store/:storeId",e.STORE_PAGE="/store/:storeId/page/:pageId",e.STORE_PAGE_WITH_SUB_PAGE="/store/:storeId/page/:pageId/:subPageType/:subPageId",e.STORE_PANEL="/store/:storeId/panel/:panelId",e.SUB_PAGE="/:pageId/:subPageType/:subPageId",e.TEAM_PAGE="/team/:teamId",e}({});const h={contentType:r.R.ALL_ALLOWED,element:(0,s.Y)(i,{}),path:g.HOME,scope:r.rp.PUBLIC,type:r.fk.PAGE},y={contentType:r.R.ALL_ALLOWED,element:(0,s.Y)(c,{}),path:g.PAGE,scope:r.rp.PRIVATE,type:r.fk.PAGE},f={contentType:r.R.ALL_ALLOWED,element:(0,s.Y)(c,{}),path:g.SUB_PAGE,scope:r.rp.PRIVATE,type:r.fk.PAGE},b={contentType:r.R.ALL_ALLOWED,element:(0,s.Y)(u,{}),path:g.TEAM_PAGE,scope:r.rp.PRIVATE,type:r.fk.PAGE},_={contentType:r.R.ALL_ALLOWED,element:(0,s.Y)(d,{}),path:g.STORE,scope:r.rp.PRIVATE,type:r.fk.PAGE},v={contentType:r.R.ALL_ALLOWED,element:(0,s.Y)(c,{}),path:g.STORE_PAGE,scope:r.rp.PRIVATE,type:r.fk.PAGE},x={contentType:r.R.ALL_ALLOWED,element:(0,s.Y)(c,{}),path:g.STORE_PAGE_WITH_SUB_PAGE,scope:r.rp.PRIVATE,type:r.fk.PAGE},k={contentType:r.R.ALL_ALLOWED,element:(0,s.Y)(p,{}),path:g.PANEL,scope:r.rp.PRIVATE,type:r.fk.PAGE},w={contentType:r.R.ALL_ALLOWED,element:(0,s.Y)(p,{}),path:g.STORE_PANEL,scope:r.rp.PRIVATE,type:r.fk.PAGE},E=[{contentType:n.Config.get("page/kids/personalizedRoutesEnabled")?r.R.ALL_ALLOWED:r.R.ADULT_ONLY,element:(0,s.Y)(l,{}),path:g.CONTINUE_WATCHING,scope:r.rp.PRIVATE,type:r.fk.PAGE},h,{contentType:n.Config.get("page/kids/personalizedRoutesEnabled")?r.R.ALL_ALLOWED:r.R.ADULT_ONLY,element:(0,s.Y)(m,{}),path:g.MY_LIST,scope:r.rp.PRIVATE,type:r.fk.PAGE},_,y,b,k,v,f,w,x]},"./src/page/utils/getLinkUrl.ts"(e,t,o){"use strict";o.d(t,{Q:()=>c});var r=o("./src/cdp/routes.tsx"),n=o("./src/page/routes.tsx"),a=o("./src/shared/utils/isExternalLink.ts"),s=o("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-62JRHF6Z.mjs");const i={LinkEpisode:e=>(0,s.tW)(r.I.EPISODE,{id:e}),LinkMovie:e=>(0,s.tW)(r.I.MOVIE,{id:e}),LinkPage:e=>{const t=(0,s.B6)(n.q.STORE,location.pathname);return t?.params.storeId?(0,s.tW)(n.q.STORE_PAGE,{pageId:e,storeId:t.params.storeId}):(0,s.tW)(n.q.PAGE,{pageId:e})},LinkPanel:e=>{const t=(0,s.B6)(n.q.STORE,location.pathname)||(0,s.B6)(n.q.STORE_PAGE,location.pathname);return t?.params.storeId?(0,s.tW)(n.q.STORE_PANEL,{panelId:e,storeId:t.params.storeId}):(0,s.tW)(n.q.PANEL,{panelId:e})},LinkSeries:e=>(0,s.tW)(r.I.SERIES,{id:e}),LinkSportEvent:e=>(0,s.tW)(r.I.SPORT_EVENT,{id:e}),LinkStatic:e=>decodeURIComponent((0,s.tW)(n.q.PAGE,{pageId:e})),LinkStore:e=>(0,s.tW)(n.q.STORE,{storeId:e}),LinkTeam:e=>(0,s.tW)(n.q.TEAM_PAGE,{teamId:e})},c=e=>{if(!e.__typename)return;if(!(e.__typename in i))return;if((0,a.i)(e.to))return e.to;const t=i[e.__typename];return t?t(e.to):void 0}},"./src/profiles/components/Avatar/Avatar.styles.ts"(e,t,o){"use strict";o.d(t,{Ys:()=>m,dl:()=>l,o0:()=>p,tE:()=>i,wU:()=>d});var r=o("../../../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"),n=o("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),a=o("./src/shared/utils/breakpoints/mq.ts"),s=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js");const i=152;var c={name:"17ummcm",styles:"::after{content:'';position:absolute;border-radius:50%;width:100%;height:100%;border:3px solid white;box-sizing:border-box;}"};const d=(0,r.A)("div",{target:"e158m7ka3"})("position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:112px;height:112px;padding:0;border-radius:50%;box-sizing:border-box;transition:transform 0.2s;",({cursor:e})=>(0,n.css)("cursor:",e,";"),";",({isSelected:e})=>e&&c,";",a.mq.S` 17 width: 136px; 18 height: 136px; 19 `," ",a.mq.M` 20 width: ${i}px; 21 height: ${i}px; 22 `,";"),l=(0,r.A)("div",{target:"e158m7ka2"})("overflow:hidden;border-radius:50%;",({imageSrc:e})=>e?(0,n.css)("background-image:url(",e,");background-size:100%;background-repeat:no-repeat;background-position:center center;"):(0,n.css)("background-color:",s.ue.color.background.surfaceDark,";"),";width:100%;height:100%;",({disabled:e,edit:t})=>(e||t)&&(0,n.css)("::after{content:'';width:100%;height:100%;position:absolute;border-radius:50%;background-color:",e?s.ue.color.background.overlay60:s.ue.color.background.overlay40,";}"),";"),p=(0,r.A)("div",{target:"e158m7ka1"})("position:absolute;margin-top:0;display:flex;align-items:center;justify-content:center;svg{width:24px;height:24px;",a.mq.S` 23 width: 40px; 24 height: 40px; 25 `,";}"),m=(0,r.A)("div",{target:"e158m7ka0"})("position:absolute;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:white;border-radius:50%;width:30px;height:30px;color:",s.ue.color.text.primaryDark,";transition:transform 0.2s;svg{width:16px;height:16px;}",a.mq.S` 26 width: 40px; 27 height: 40px; 28 29 svg { 30 width: 24px; 31 height: 24px; 32 } 33 `,";")},"./src/profiles/components/Avatar/Avatar.tsx"(e,t,o){"use strict";o.d(t,{e:()=>i});var r=o("./src/shared/utils/image/getImageUrl.ts"),n=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js"),a=o("./src/profiles/components/Avatar/Avatar.styles.ts"),s=o("../../../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=({imageSrc:e,isSelected:t,variant:o})=>{let i=!1,c=!1,d="pointer",l=!1;switch(o){case"disabled":c=!0,d="not-allowed";break;case"edit":i=!0;break;case"editAvatar":l=!0;break;
33case"pincode":d="default"}return(0,s.FD)(a.wU,{cursor:d,isSelected:t,children:[(0,s.Y)(a.dl,{disabled:c,edit:i,imageSrc:e?(0,r.V)({height:a.tE,uri:e,width:a.tE}):void 0}),i&&(0,s.Y)(a.o0,{children:(0,s.Y)(n.PA,{"aria-hidden":!0,name:"Edit"})}),l&&(0,s.Y)(a.Ys,{children:(0,s.Y)(n.PA,{"aria-hidden":!0,name:"Edit"})})]})}},"./src/profiles/components/Buttons/Buttons.styles.ts"(e,t,o){"use strict";o.d(t,{D:()=>d,o:()=>l});var r=o("../../../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"),n=o("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),a=o("./src/profiles/components/Avatar/Avatar.styles.ts"),s=o("./src/shared/components/custom/SmartLink/index.ts"),i=o("./src/shared/utils/breakpoints/mq.ts"),c=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js");const d=(0,r.A)(s.i,{target:"e1js5hag1"})("position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:transparent;border:none;padding:0;",({shouldHover:e})=>{if(e)return(0,n.css)("transition:transform 0.2s;&:hover,&:focus{",a.wU,"{transform:scale(1.1);}}")},";"),l=(0,r.A)("p",{target:"e1js5hag0"})("text-align:center;overflow-wrap:break-word;overflow:hidden;",c.ue.typography.textPrimary," color:",c.ue.color.text.secondary,";margin:0;margin-top:16px;width:112px;",({isSelected:e})=>e&&(0,n.css)(c.ue.typography.textPrimaryEmphasis,";color:",c.ue.color.text.primary,";")," ",i.mq.S` 34 width: 136px; 35 `," ",i.mq.M` 36 width: 152px; 37 `,";")},"./src/profiles/guards/NoProfileGuard.tsx"(e,t,o){"use strict";o.d(t,{A:()=>h});var r=o("./src/profiles/routes.tsx"),n=o("./src/shared/hooks/useCallbackAt.ts"),a=o("./src/shared/utils/webStorage/getSessionStorage.ts"),s=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@telia-company/tv.common-sdk-authentication/dist/Profile.js"),i=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),c=o("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-62JRHF6Z.mjs"),d=o("./src/profiles/hooks/useShowProfileSelectorAtStart.ts"),l=o("./src/profiles/providers/UserProvider/UserProvider.tsx"),p=o("./src/profiles/utils/getIsProfileError.ts"),m=o("./src/profiles/utils/getIsProfileServiceDown.ts"),u=o("../../../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 g=Object.values(r.i),h=({children:e})=>{const[t,o]=(0,i.useState)(),{currentProfile:h,error:y,profiles:f,refetchUser:b,setAfterAssumeProfilePath:_}=(0,l.u)(),v=(0,c.zy)(),x=g.some(e=>(0,c.B6)(e,v.pathname)),k=(0,d.S)(),w=y,E=w?.errors?.find(e=>e.extensions?.retryAfterInMs)?.extensions?.retryAfterInMs,A=(0,m.$)(w),S=(0,a.W)("profile-session",!1);if((0,n.s)(E?Date.now()+E:void 0,()=>{A&&b()}),(0,i.useEffect)(()=>{(async()=>{const e=await s.Profile.instance().hasToken(),t=(0,p.Y)(y);o(()=>!(!h&&t)&&e)})()},[h,y]),(0,i.useEffect)(()=>{const e=s.Profile.statics.events.tokenSet.on(()=>{o(!0)});return()=>s.Profile.statics.events.tokenSet.off(e)},[]),x)return(0,u.Y)(u.FK,{children:e});if(void 0===t)return null;return!t&&!A||!S&&f&&f.length>1&&k?(_(v.pathname),(0,u.Y)(c.C5,{replace:!0,to:`${(0,c.tW)(r.i.DEFAULT)}`})):(0,u.Y)(u.FK,{children:e})}},"./src/profiles/hooks/useProfileSupport.ts"(e,t,o){"use strict";o.d(t,{u:()=>c});var r=o("./src/codegen/graphql.ts"),n=o("./src/profiles/providers/UserProvider/UserProvider.tsx"),a=o("./src/shared/components/custom/MarginContainer/MarginContainer.tsx"),s=o("./src/shared/hooks/useWindowSize.ts"),i=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/Config.js");const c=()=>{const{currentProfile:e,profiles:t}=(0,n.u)(),{width:o}=(0,s.l)();return{isCreateProfileAllowed:!e||t&&t?.length<i.Config.get("user/profiles/maxNumberOfProfiles")&&e?.ageGroup===r.P2Z.Adult,pageMargin:(0,a.I_)(o)}}},"./src/profiles/hooks/useShowProfileSelectorAtStart.ts"(e,t,o){"use strict";o.d(t,{S:()=>i});var r=o("./src/shared/utils/webStorage/getLocalStorage.ts"),n=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js");const a=e=>(window.addEventListener("show-profile-selector-change",e),()=>{window.removeEventListener("show-profile-selector-change",e)}),s=()=>(0,r.L)("showProfileSelectorAtStart",!0),i=()=>
37(0,n.useSyncExternalStore)(a,s)},"./src/profiles/providers/UserProvider/UserProvider.tsx"(e,t,o){"use strict";o.d(t,{v:()=>G,u:()=>H});var r=o("../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_react-_23af7fe1a84405345a895683eefe299d/node_modules/@apollo/client/react/hooks/useMutation.js"),n=o("../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_react-_23af7fe1a84405345a895683eefe299d/node_modules/@apollo/client/react/hooks/useQuery.js"),a=o("./src/auth/providers/AuthProvider.tsx"),s=o("./src/codegen/graphql.ts"),i=o("./src/core/analytics/tracker.ts"),c=o("./src/core/apollo/client.ts"),d=o("./src/profiles/hooks/useProfileSupport.ts"),l=o("./src/profiles/views/styles.ts"),p=o("./src/shared/components/custom/DecoratedHelmet.tsx"),m=o("./src/shared/components/custom/Portal/index.ts"),u=o("./src/shared/components/ui/Button/index.ts"),g=o("./src/shared/hooks/useOnEscape.ts"),h=o("../../../node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]__@[email protected]._ce78ac614378806cf95aa75fb2ec3035/node_modules/focus-trap-react/dist/focus-trap-react.js"),y=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),f=o("../../../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"),b=o("./src/shared/components/custom/PINCodeModal/index.ts"),_=o("./src/shared/components/ui/Snackbar/index.ts"),v=o("./src/shared/utils/isDefined.ts"),x=o("../../../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=({id:e,onHide:t})=>{const[o,n]=(0,y.useState)(""),[a,i]=(0,y.useState)(!1),{assumeProfile:c,userEmail:d}=H(),{t:l}=(0,f.Bd)(),[p]=(0,r.n)(s.F82),[m]=(0,r.n)(s.FEe),{addSnackbar:u}=(0,_.k)(),g=(0,y.useCallback)(async()=>{try{const e=await p();"ResetParentalControlPinCodeResultOk"!==e.data?.resetParentalControlPinCode.__typename?(i(!0),u({autoDismiss:!1,content:e.data?.resetParentalControlPinCode.message||l("FAILED_TO_SEND_EMAIL"),dismissOnActionClick:!0,variant:"negative"})):i(e=>(e&&u({autoDismiss:!0,content:l("EMAIL_SENT_PIN"),dismissOnActionClick:!0,variant:"positive"}),!1))}catch(e){throw i(!0),u({autoDismiss:!1,content:l("ERROR_OCCURRED"),dismissOnActionClick:!0,variant:"negative"}),e}},[u,p,l]);(0,y.useEffect)(()=>{g()},[g]);const h=[{label:l("CANCEL"),onClick:t,variant:"ghost"},a?{label:l("N_RETRY"),onClick:g,variant:"ghost"}:void 0].filter(v.O);return(0,x.Y)(b.uR,{actions:h,closeOnClickOutside:!1,description:l("HARMFUL_CONTENT_CHANGE_PIN_DESCRIPTION",{email:`<strong>${d}</strong>`,interpolation:{escapeValue:!1}}),errorMessage:o,length:4,onHide:t,onSubmit:async t=>{try{const o=await m({variables:{input:{verificationPinCode:t}}});"VerifyParentalControlPinCodeResultOk"===o.data?.verifyParentalControlPinCode.__typename?c({id:e,pinCode:t}):n(o.data?.verifyParentalControlPinCode.message||l("ERROR_OCCURRED"))}catch(e){throw n(l("ERROR_OCCURRED")),e}},title:l("FORGOT_PIN"),visible:!0})};var w=o("../../../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"),E=o("./src/shared/utils/breakpoints/mq.ts"),A=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js"),S=o("../../../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 P=(0,w.A)("div",{target:"ezcggs06"})("position:fixed;top:0;z-index:100;width:100%;height:100%;background-color:",A.ue.color.background.primary,";display:flex;flex-direction:column;align-items:center;box-sizing:border-box;padding:0 ",({margin:e})=>e,"px;padding-top:32px;",E.mq.S` 38 padding-top: 138px; 39 `,";"),I=(0,w.A)(S.P.div,{target:"ezcggs05"})({name:"zigog8",styles:"display:flex;flex-direction:column;align-items:center"}),L=(0,w.A)("form",{target:"ezcggs04"})({name:"zigog8",styles:"display:flex;flex-direction:column;align-items:center"}),O=(0,w.A)("h1",{target:"ezcggs03"})(A.ue.typography.headingSecondary," color:",A.ue.color.text.primary,";margin:0;margin-top:16px;",E.mq.S` 40 margin-top: 68px; 41 `,";"),C=(0,w.A)(O,{target:"ezcggs02"})(E.mq.S` 42 margin-top: 32px; 43 `,";"),T=(0,w.A)("p",{target:"ezcggs01"})(A.ue.typography.textPrimary," color:",A.ue.color.text.secondary,";text-align:center;margin-top:16px;margin-bottom:32px;"),R=(0,w.A)("div",{target:"ezcggs00"})({name:"gxze30",styles:"margin-top:16px;justify-content:center;min-height:24px"});var j=o("./src/shared/components/ui/FormErrorMessage/index.ts"),D=o("./src/profiles/components/Avatar/Avatar.tsx"),N=o("./src/profiles/components/Buttons/Buttons.styles.ts");const M=({alias:e,avatarSrc:t,bounce:o,description:r,errorMessage:n,onSubmit:a,title:s})=>{const{t:c}=(0,f.Bd)(),[d,l]=(0,y.useState)({...new Array(4).fill("")}),p=Object.values(d).join(""),m=[],[u,g]=(0,y.useState)(!1),[h,_]=(0,y.useState)(!1),[v,k]=(0,y.useState)(void 0);(0,y.useEffect)(()=>{4===p.length&&(a(p),g(!0),_(!0))},[a,p]),(0,y.useEffect)(()=>
43{l(e=>{const t=Object.values(e);return t.length>4?(t.length=4,{...t}):{...new Array(4).fill(""),...t}})},[]),(0,y.useEffect)(()=>{n&&(k(n),i.F.trackUserDistraction({distraction_style:"modal",error_message:n,message_body:r||"",message_title:s}))},[r,n,s]),(0,y.useEffect)(()=>{u&&n&&l(e=>{const t=Object.keys(e).length;return g(!1),{...new Array(t).fill("")}})},[n,u,g]);const w=e=>{const t="data"in e.nativeEvent?e.nativeEvent.data:null;t&&(t<"0"||t>"9")&&e.preventDefault()};return(0,x.Y)(I,{animate:o?"bounce":"visible",exit:"hidden",initial:"hidden",variants:{bounce:{opacity:1,scale:1,transition:{damping:10,duration:.3,stiffness:100},x:[0,10,-10,10,0]},hidden:{opacity:0,scale:.95,transition:{duration:.2}},visible:{opacity:1,scale:1,transition:{duration:.2}}},children:(0,x.FD)(L,{"data-testid":"pincode-modal-content-form",id:"pincode-modal-content-form",onSubmit:e=>{e.preventDefault(),a(p),g(!0),_(!0)},children:[(0,x.Y)(D.e,{imageSrc:t,variant:"pincode"}),(0,x.Y)(N.o,{"data-testid":"assume-profile-button-alias",children:e}),(0,x.Y)(C,{tabIndex:0,children:s}),(0,x.Y)(T,{children:r}),(0,x.Y)(b.tu,{children:Array.from({length:4}).map((e,t)=>{const o=`pincode-input-${t}`;return(0,x.Y)(b.sQ,{"aria-label":c("PIN_DIGIT",{index:t+1}),autoComplete:"none","data-testid":o,hasError:!!v,id:o,inputMode:"numeric",maxLength:1,onBeforeInput:w,onChange:e=>((e,t)=>{const{value:o}=e.target,r={...d};if(o){const e=m[t+1];e&&e.focus(),r[t]=o.slice(0,1),l(r)}k(null)})(e,t),onKeyDown:e=>((e,t)=>{if("Backspace"===e.key){const o={...d};let r;const{value:n}=e.target;n?(o[t]="",r=m[t]):t>0&&(r=m[t-1],o[t-1]=""),l(o),r&&r.focus()}})(e,t),pattern:"[0-9]*",placeholder:d[t]?"•":"",ref:e=>{m[t]=e,0===t&&e&&h&&(e.focus(),_(!1))},type:"text",value:d[t]},o)})}),(0,x.Y)(R,{role:"alert",children:v&&(0,x.Y)(j.W,{children:v})})]})},"profile-modal-content")},F=({assumeProfileId:e,errorMessage:t,onDismissModal:o,profiles:r})=>{const[n,a]=(0,y.useState)(!1),{assumeProfile:s}=H(),{t:i}=(0,f.Bd)(),c=r?.find(({id:t})=>t===e),b=(0,y.useRef)(null),{pageMargin:_}=(0,d.u)(),v=(0,y.useRef)(null),w=(0,y.useCallback)(t=>{s({id:e,pinCode:t})},[s,e]);return(0,g.Y)(o,{ref:v}),(0,x.FD)(m.Z,{children:[(0,x.Y)(h.FocusTrap,{focusTrapOptions:{allowOutsideClick:!0},children:(0,x.FD)(P,{"aria-modal":"true",margin:_,ref:v,role:"dialog",children:[(0,x.Y)(p.J,{title:i("ENTER_PIN")}),(0,x.Y)(M,{alias:c?.alias,avatarSrc:c?.avatar?.square?.source,bounce:Boolean(t),description:i("PROFILES_UNLOCK_PIN"),errorMessage:t,onSubmit:e=>w(e),title:i("PROFILES_PROFILE_UNLOCK")}),(0,x.FD)(l.iN,{margin:_,ref:b,children:[(0,x.Y)(u.$,{onClick:()=>a(!0),variant:"ghost",children:i("FORGOT_PIN")}),(0,x.Y)(u.$,{"data-testid":"abort-select-profile-button",onClick:o,type:"button",variant:"secondary",children:i("CANCEL")})]})]})}),n&&(0,x.Y)(k,{id:e,onHide:()=>a(!1)})]})};var Y=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@telia-company/tv.common-sdk-authentication/dist/Profile.js"),$=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/Config.js"),q=o("../../libs/error-monitoring/dist/index.mjs"),z=o("../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_react-_23af7fe1a84405345a895683eefe299d/node_modules/@apollo/client/react/hooks/useLazyQuery.js"),B=o("./src/shared/utils/getRefetchQueries.ts"),U=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/ServiceMessages.js");const V=(0,y.createContext)({assumeProfile:()=>{},availableProfiles:void 0,childLockEnabled:!1,createProfile:()=>{},currentProfile:void 0,deleteProfile:()=>{},isChildProfile:!1,isUsingNonExistingProfile:!1,loading:!0,parentalContentLockEnabled:!1,profiles:void 0,refetchUser:()=>{},setAfterAssumeProfilePath:()=>{},showSelectionMenu:!1,subscriptions:void 0,updateChildLock:()=>{},updateProfile:()=>{},userEmail:void 0}),G=({children:e})=>{const[t,o]=(0,y.useState)(!1),[d,l]=(0,y.useState)(),[p,m]=(0,y.useState)(),[u,g]=(0,y.useState)(),{isLoggedIn:h}=(0,a.Z)(),b=(0,y.useRef)(void 0),v=(0,y.useRef)(void 0),k=(0,y.useRef)(void 0),w=(0,y.useRef)(void 0),E=(0,y.useRef)(void 0),A=(0,y.useRef)(void 0),{t:S}=(0,f.Bd)(),{addSnackbar:P}=(0,_.k)(),[I]=(0,r.n)(s.b3f),[L]=(0,r.n)(s.jmm),[O]=(0,r.n)(s.cXj),[C]=(0,r.n)(s.S$d),[T]=(0,r.n)(s.VM7),{data:R,error:j,loading:D,refetch:N}=(0,n.I)(s.BE3,{errorPolicy:"all",fetchPolicy:"network-only",notifyOnNetworkStatusChange:!0,skip:!h}),M=R?.user?.email||"",G=R?.user?.profiles2||[],H=G.filter(e=>!1===e.isCurrent),W=G.find(e=>!0===e.isCurrent),K="SubscriptionList"===R?.user?.subscriptions2?.__typename&&R.user.subscriptions2.list||[],Z=R?.user?.childProfileLock.enabled||!1,X=R?.user?.parentalContentLock.enabled||!1,J=$.Config.get("subscription/selectionMenu/enabled"),Q=G.length>0&&!D&&!W&&h;(()=>{const[e]=(0,z._)(s.iZO,{fetchPolicy:"network-only"});(0,y.useEffect)(()=>{const t=U.ServiceMessages.statics.events.myList.on(t=>{const o=[];
43t.mediaIds?.forEach(e=>{o.push({id:e,type:s.Lzu.Media})}),t.seriesIds?.forEach(e=>{o.push({id:e,type:s.Lzu.Series})}),e({variables:{config:{ids:o}}}),(0,B.O)({refreshEvent:s._am.Favorite}).forEach(e=>c.S.query(e))});return()=>{U.ServiceMessages.statics.events.myList.off(t)}},[e])})(),(()=>{const[e]=(0,z._)(s.iZO,{fetchPolicy:"network-only"});(0,y.useEffect)(()=>{const t=U.ServiceMessages.statics.events.rental.on(t=>{const o=t.mediaIds.map(e=>({id:e,type:s.Lzu.Media}));e({variables:{config:{ids:o}}}),(0,B.O)({refreshEvent:s._am.Rental}).forEach(e=>c.S.query(e))});return()=>{U.ServiceMessages.statics.events.rental.off(t)}},[e])})(),(()=>{const[e]=(0,z._)(s.iZO,{fetchPolicy:"network-only"});(0,y.useEffect)(()=>{const t=U.ServiceMessages.statics.events.est.on(t=>{const o=t.mediaIds.map(e=>({id:e,type:s.Lzu.Media}));e({variables:{config:{ids:o}}}),(0,B.O)({refreshEvent:s._am.Rental}).forEach(e=>c.S.query(e))});return()=>{U.ServiceMessages.statics.events.est.off(t)}},[e])})(),(()=>{const[e]=(0,z._)(s.iZO,{fetchPolicy:"network-only"});(0,y.useEffect)(()=>{const t=U.ServiceMessages.statics.events.continueWatching.on(t=>{const o=t.mediaIds.map(e=>({id:e,type:s.Lzu.Media}));e({variables:{config:{ids:o}}}),(0,B.O)({refreshEvent:s._am.ContinueWatching}
43).forEach(e=>c.S.query(e))});return()=>{U.ServiceMessages.statics.events.continueWatching.off(t)}},[e])})(),(0,y.useEffect)(()=>{const e=U.ServiceMessages.statics.events.favoriteTeams.on(()=>{(0,B.O)({refreshEvent:s._am.FavoriteTeams}).forEach(e=>c.S.query(e))});return()=>{U.ServiceMessages.statics.events.favoriteTeams.off(e)}},[]),(()=>{const[e]=(0,z._)(s.BE3,{fetchPolicy:"network-only"});(0,y.useEffect)(()=>{const t=U.ServiceMessages.statics.events.profile.on(()=>{e()});return()=>{U.ServiceMessages.statics.events.profile.off(t)}},[e])})(),(()=>{const[e]=(0,z._)(s.iZO,{fetchPolicy:"network-only"});(0,y.useEffect)(()=>{const t=U.ServiceMessages.statics.events.npvr.on(t=>{const o=[];t.mediaIds?.forEach(e=>{o.push({id:e,type:s.Lzu.Media})}),t.seriesIds?.forEach(e=>{o.push({id:e,type:s.Lzu.Series})}),e({variables:{config:{ids:o}}}),(0,B.O)({refreshEvent:s._am.Npvr}).forEach(e=>c.S.query(e))});return()=>{U.ServiceMessages.statics.events.myList.off(t)}},[e])})(),(0,y.useEffect)(()=>{Q&&P({content:S("PROFILES_NON_EXISTING_PROFILE_ERROR"),dismissOnActionClick:!0,variant:"negative"})},[P,Q,S]),(0,y.useEffect)(()=>{j&&(P({content:S("AN_UNKNOWN_ERROR_HAS_OCCURRED"),dismissOnActionClick:!0,variant:"negative"}),(0,q.vV)(new Error(`getUser error: ${j.message}`),{context:"UserContext",metadata:{error:j}}))},[P,j,S]);const ee=()=>{v.current?.();const{removeSnackbar:e}=P({content:S("ERRORS_DEFAULT_MESSAGE"),dismissOnActionClick:!0,variant:"negative"});v.current=e},te=W?.ageGroup,oe=te&&te!==s.P2Z.Adult||!1;return D?null:(0,x.FD)(V.Provider,{value:{assumeProfile:async({ageGroup:e=s.P2Z.Adult,id:r,pinCode:n})=>{const{data:a}=await c.S.query({fetchPolicy:"network-only",query:s.BE3}),i=(({ageGroup:e,childLockEnabled:t})=>!!W&&t&&W?.ageGroup!==s.P2Z.Adult&&e===s.P2Z.Adult)({ageGroup:e,childLockEnabled:a?.user?.childProfileLock.enabled});if(i&&!n)o(!0),m(r);else{l(void 0);try{if(r){const e=(await I({variables:{input:{id:r,pinCode:n}}})).data;if(e)if("AssumeProfileResultOk"===e.assumeProfile.__typename){o(!1);const t=Y.Profile.instance();await t.setToken(e.assumeProfile.profileToken);const r=u;g(void 0),location.replace(r||"/")}else if("AssumeProfileResultWrongPinCodeError"===e.assumeProfile.__typename)if(t)l(S("WRONG_PIN_TRY_AGAIN"));else{k.current?.();const{removeSnackbar:t}=P({content:e.assumeProfile.message,dismissOnActionClick:!0,variant:"negative"});k.current=t}}}catch(e){0,t?l(S("ERRORS_DEFAULT_MESSAGE")):ee()}}},availableProfiles:H,childLockEnabled:Z,createProfile:async({ageGroup:e,alias:t,avatarId:o})=>{try{const r=(await L({variables:{input:{ageGroup:e,alias:t,avatarId:o}}})).data;if(r)if("CreateProfileResultOk"===r.createProfile.__typename)i.F.trackProfileCreated({created_profile_id:r.createProfile.profile.id,created_profile_type:e.toLowerCase()}),N();else if("CreateProfileResultMaxNumberOfProfilesError"===r.createProfile.__typename){w.current?.();const{removeSnackbar:e}=P({content:r.createProfile.message,dismissOnActionClick:!0,variant:"negative"});w.current=e,N()}}catch(e){0,ee()}},currentProfile:W,deleteProfile:async({id:e})=>{try{if(e){const t=(await C({variables:{input:{id:e}}})).data;if(t)if("DeleteProfileResultOk"===t.deleteProfile.__typename)N();else if("DeleteProfileResultCannotDeleteActiveProfileError"===t.deleteProfile.__typename||"DeleteProfileResultGeneralError"===t.deleteProfile.__typename){A.current?.();const{removeSnackbar:e}=P({content:t.deleteProfile.message,dismissOnActionClick:!0,variant:"negative"});A.current=e,N()}}}catch(e){0,ee()}},error:j,isChildProfile:oe,isUsingNonExistingProfile:Q,loading:D,parentalContentLockEnabled:X,profiles:G,refetchUser:N,setAfterAssumeProfilePath:g,showSelectionMenu:J,subscriptions:K,updateChildLock:async({enabled:e,pinCode:t})=>{try{const o=(await T({variables:{input:{enabled:e,verificationPinCode:t}}})).data;if(o)if("UpdateChildProfileLockResultOk"===o.updateChildProfileLock.__typename)N();else{b.current?.();const{removeSnackbar:e}=P({content:o.updateChildProfileLock.message,dismissOnActionClick:!0,variant:"negative"});b.current=e}}catch(e){0,ee()}},updateProfile:async({alias:e,avatarId:t,id:o})=>{try{if(o){const r=(await O({variables:{input:{alias:e,avatarId:t,id:o}}})).data;if(r&&("UpdateProfileResultProfileDoesNotExistError"===r.updateProfile.__typename||"UpdateProfileResultGeneralError"===r.updateProfile.__typename)){E.current?.();const{removeSnackbar:e}=P({content:r.updateProfile.message,dismissOnActionClick:!0,variant:"negative"});E.current=e,N()}}}catch(e){0,ee()}},userEmail:M},children:[t&&p&&(0,x.Y)(F,{assumeProfileId:p,errorMessage:d,onDismissModal:()=>{o(!1),m(void 0),l(void 0)},profiles:G}),e]})},H=()=>(0,y.useContext)(V)},"./src/profiles/routes.tsx"(e,t,o){"use strict";o.d(t,{G:()=>p,i:()=>l});var r=o("./src/core/router/constants.ts"),n=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),a=o("../../../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=(0,n.lazy)(()=>o.e(180).then(o.bind(o,"./src/profiles/views/ProfileSelectView.tsx"))),i=(0,n.lazy)(()=>o.e(488).then(o.bind(o,"./src/profiles/views/ProfileCreateView/ProfileCreateView.tsx"))),c=(0,n.lazy)(()=>o.e(109).then(o.bind(o,"./src/profiles/views/ProfileSelectForEditView.tsx"))),d=(0,n.lazy)(()=>o.e(24).then(o.bind(o,"./src/profiles/views/ProfileEditView/ProfileEditView.tsx")));let l=function(e){return e.CREATE_PROFILE="/profiles/create",e.DEFAULT="/profiles",e.EDIT_PROFILE="/profiles/edit/:profileId",e.SELECT_FOR_EDIT="/profiles/edit",e}({});const p=[{contentType:r.R.ALL_ALLOWED,element:(0,a.Y)(i,{}
43),isBackgroundRoute:!1,path:l.CREATE_PROFILE,scope:r.rp.PRIVATE,type:r.fk.PAGE},{contentType:r.R.ALL_ALLOWED,element:(0,a.Y)(d,{}),isBackgroundRoute:!1,path:l.EDIT_PROFILE,scope:r.rp.PRIVATE,type:r.fk.PAGE},{contentType:r.R.ALL_ALLOWED,element:(0,a.Y)(c,{}),isBackgroundRoute:!1,path:l.SELECT_FOR_EDIT,scope:r.rp.PRIVATE,type:r.fk.PAGE},{contentType:r.R.ALL_ALLOWED,element:(0,a.Y)(s,{}),isBackgroundRoute:!1,path:l.DEFAULT,scope:r.rp.PRIVATE,type:r.fk.PAGE}]},"./src/profiles/utils/getIsProfileError.ts"(e,t,o){"use strict";o.d(t,{Y:()=>n});const r=["ACCOUNT_ID_MISMATCH_ERROR","GENERIC_PROFILE_ERROR"],n=e=>Boolean(e?.graphQLErrors?.some(e=>r.includes(e.extensions?.code)))},"./src/profiles/utils/getIsProfileServiceDown.ts"(e,t,o){"use strict";o.d(t,{$:()=>n});const r=["PROFILE_SERVICE_DISCONNECTED"],n=e=>Boolean(e?.errors?.some(e=>r.includes(e.extensions?.code)))},"./src/profiles/views/styles.ts"(e,t,o){"use strict";o.d(t,{A1:()=>u,D7:()=>x,NP:()=>b,OV:()=>y,Ob:()=>v,Rx:()=>m,VR:()=>_,Yu:()=>I,Zi:()=>P,df:()=>A,iN:()=>f,jQ:()=>S,sF:()=>E,sQ:()=>g,vp:()=>k,wU:()=>h,yO:()=>w});var r=o("../../../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"),n=o("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),a=o("./src/shared/components/custom/MarginContainer/index.ts"),s=o("./src/shared/components/custom/NoDataPlaceholder/index.ts"),i=o("./src/shared/components/ui/Button/Button.tsx"),c=o("./src/shared/components/ui/Input/Input.tsx"),d=o("./src/shared/components/ui/Switch/index.ts"),l=o("./src/shared/utils/breakpoints/mq.ts"),p=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js");const m=(0,r.A)(a._,{target:"e1aneq0616"})(({bottomMargin:e})=>e&&(0,n.css)("margin-bottom:",e,"px;"),";"),u=(0,r.A)("h1",{target:"e1aneq0615"})("text-align:center;margin-bottom:0;margin-top:22px;min-height:36px;overflow-wrap:break-word;",p.ue.typography.headingSecondary," ",l.mq.S` 44 margin-top: 64px; 45 `,";"),g=(0,r.A)(c.pd,{target:"e1aneq0614"})("margin-bottom:24px;width:100%;margin-top:32px;",l.mq.S` 46 margin-top: 24px; 47 `," ",({hasError:e})=>e&&(0,n.css)("& ",c.to,"{border:1px solid ",p.ue.color.text.error,";}& ",c.Bd," *{color:",p.ue.color.text.error,";}"),";"),h=(0,r.A)("div",{target:"e1aneq0613"})("display:flex;flex-direction:column;align-items:center;margin-top:24px;",l.mq.S` 48 margin-top: 32px; 49 `,";"),y=(0,r.A)(i.$,{target:"e1aneq0612"})("width:100%;",l.mq.S` 50 max-width: 416px; 51 `,";"),f=(0,r.A)("div",{target:"e1aneq0611"})({name:"1ndfgrb",styles:"display:flex;flex-direction:column;align-items:center;gap:16px;width:100%;box-sizing:border-box;margin-top:24px"}),b=(0,r.A)(f,{target:"e1aneq0610"})("margin-top:56px;",l.mq.S` 52 margin-top: 72px; 53 `,";"),_=(0,r.A)("ul",{target:"e1aneq069"})("width:100%;padding:0;margin-top:32px;display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:32px 40px;list-style:none;",l.mq.M` 54 gap: 60px 24px; 55 margin-top: 48x; 56 57 `,";"),v=(0,r.A)(s.t,{target:"e1aneq068"})({name:"s1n8ed",styles:"height:100vh"}),x=(0,r.A)("p",{target:"e1aneq067"})(p.ue.typography.textSecondary,";"),k=(0,r.A)("p",{target:"e1aneq066"})(p.ue.typography.textPrimary,";max-width:540px;color:",p.ue.color.text.secondary,";text-align:center;margin-top:32px;margin-bottom:-24px;",l.mq.S` 58 margin-top:40px; 59 margin-bottom: -32px; 60 61`,";"),w=(0,r.A)("p",{target:"e1aneq065"})(p.ue.typography.textSecondary," max-width:230px;color:",p.ue.color.text.secondary,";text-align:left;margin:0;margin-top:8px;",l.mq.S` 62 max-width: 314px; 63 64 `,";"),E=(0,r.A)("div",{target:"e1aneq064"})({name:"zov8s0",styles:"width:100%;display:flex;justify-content:center"}),A=(0,r.A)("div",{target:"e1aneq063"})({name:"1iikq5b",styles:"display:flex;width:100%;align-items:center"}),S=(0,r.A)("p",{target:"e1aneq062"})("color:",p.ue.color.text.error,";margin:0;margin:-24px 0 0 0;"),P=(0,r.A)(p.PA,{target:"e1aneq061"})({name:"v2i79n",styles:"margin:-24px 4px 0 0"}),I=(0,r.A)(d.d,{target:"e1aneq060"}
64)({name:"1t17nxr",styles:"margin-top:48px;justify-content:center;display:flex"})},"./src/search/routes.tsx"(e,t,o){"use strict";o.d(t,{d:()=>c,t:()=>i});var r=o("./src/core/router/constants.ts"),n=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),a=o("../../../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=(0,n.lazy)(()=>Promise.all([o.e(249),o.e(644),o.e(96),o.e(47),o.e(954),o.e(670),o.e(767)]).then(o.bind(o,"./src/search/views/SearchView/SearchView.tsx")));let i=function(e){return e.DEFAULT="/search",e}({});const c=[{contentType:r.R.ALL_ALLOWED,element:(0,a.Y)(s,{}),path:i.DEFAULT,scope:r.rp.PRIVATE,type:r.fk.PAGE}]},"./src/shared/components/custom/ActionOnHover/ActionOnHover.tsx"(e,t,o){"use strict";o.d(t,{A:()=>i});var r=o("../../../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"),n=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),a=o("../../../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=(0,r.A)("div",{target:"e2ac6wz0"})(),i=({as:e,children:t,onComplete:o,triggerOnce:r=!0,waitForMs:i=200,...c})=>{const d=(0,n.useRef)(!1),l=(0,n.useRef)(null),p=(0,n.useCallback)(()=>{d.current||(null!==l.current&&clearTimeout(l.current),l.current=setTimeout(async()=>{d.current=!0,await o(),r||(d.current=!1)},i))},[o,r,i]),m=(0,n.useCallback)(()=>{null!==l.current&&(clearTimeout(l.current),l.current=null)},[]);return(0,a.Y)(s,{as:e,onMouseEnter:p,onMouseLeave:m,...c,children:t})}},"./src/shared/components/custom/Announcement/Context/AnnouncementContext.tsx"(e,t,o){"use strict";o.d(t,{b:()=>d,j:()=>c});var r=o("../../../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"),n=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),a=o("../../../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=(0,n.createContext)({announce:()=>{}}),i=(0,r.A)("div",{target:"e1ace0y70"})({name:"1qqlj3x",styles:"font-size:100px;inset:0px;opacity:0;overflow:hidden;pointer-events:none;position:absolute;text-overflow:clip;white-space:nowrap"}),c=({children:e})=>{const[t,o]=(0,n.useState)([]),[r,c]=(0,n.useState)(""),d=(0,n.useRef)(null),l=(0,n.useCallback)(e=>{o(t=>[...t,e])},[]);return(0,n.useEffect)(()=>{if(!r&&t.length>0){const e=t[0];c(e),o(e=>e.slice(1)),d.current=setTimeout(()=>{c("")},2e3)}},[t,r]),(0,n.useEffect)(()=>()=>{d.current&&clearTimeout(d.current)},[]),(0,a.FD)(s.Provider,{value:{announce:l},children:[(0,a.Y)(i,{"aria-live":"polite",role:"status",children:r}),e]})},d=()=>(0,n.useContext)(s)},"./src/shared/components/custom/DecoratedHelmet.tsx"(e,t,o){"use strict";o.d(t,{J:()=>c});var r=o("../../libs/core/dist/index.mjs"),n=(o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),o("../../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-helmet/es/Helmet.js")),a=o("../../../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"),s=o("../../../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={FI:"fi",NO:"nb",SE:"sv"},c=({children:e,title:t,...o})=>{const{t:c}=(0,a.Bd)(),d=c("branding:PRODUCT_NAME"),l=t instanceof Array?t.filter(Boolean).join(" - "):t,p=i[r.x6]||"sv";let m=l?`${l} - ${d}`:d;return"true"==="MISSING_ENV_VAR".ENABLE_ENV_SELECTOR&&(m=`${r.x6}/${r.cA} ${m}`),(0,s.Y)(n.m,{title:m,...o,htmlAttributes:{lang:p},children:e})}},"./src/shared/components/custom/DefaultBanner/index.ts"(e,t,o){"use strict";o.d(t,{E:()=>j});var r=o("../../../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"),n=o("./src/shared/utils/breakpoints/mq.ts"),a=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js"),s=o("./src/shared/components/custom/SmartLink/SmartLink.tsx");const i=(0,r.A)(s.i,{target:"e1m4p3fl4"})({name:"kuxfsd",styles:"display:block;position:absolute;top:0;left:0;right:0;bottom:0;cursor:inherit"}),c=(0,r.A)("div",{target:"e1m4p3fl3"})("position:relative;padding-bottom:min(50%, 92px);",n.mq.XL` 65 padding-bottom: unset; 66 `,";"),d=(0,r.A)("div",{target:"e1m4p3fl2"})("position:absolute;top:0;left:0;width:100%;height:76%;max-height:100%;background-image:linear-gradient(\n 180deg,\n transparent,\n 72.38%,\n ",({backgroundColor:e})=>e||a.ue.color.background.primary,"\n 100%\n );",n.mq.S` 67 height: 100%; 68 `,";"),l=(0,r.A)("div",{target:"e1m4p3fl1"})("position:relative;padding-top:75%;overflow:hidden;",n.mq.S` 69 padding-top: min(56.25%, ${"80vh"}); 70 `," img{position:absolute;width:100%;top:0;object-fit:cover;height:auto;}"),p=(0,r.A)(l,{target:"e1m4p3fl0"})("img{top:0;min-height:75%;",n.mq.M` 71 min-height: unset; 72 `,";}");var m=o("./src/shared/components/custom/Image/Image.tsx"),u=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),g=o("./src/shared/hooks/usePrevious.ts"),h=o("./src/shared/utils/platform/isMobileSafari.ts"),y=o("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs"),f=o("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs");var b=o("../../../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 _=(0,r.A)(y.P.img,{target:"evj92280"})({name:"1u3e5e",styles:"will-change:opacity;position:absolute"}),v={hidden:{opacity:0}
72,visible:{opacity:1}},x=(0,u.forwardRef)(({role:e="presentation",src:t,srcSet:o},r)=>{const[n,a]=(0,u.useState)(!1),s=(0,g.Z)(t),i=(0,g.Z)(o),[c]=((e,t)=>[(0,u.useCallback)(o=>{o&&(t(),e&&"current"in e&&(e.current=o))},[t,e]),e])(r,()=>{a(!1)}),d=[],l=[];return s&&d.push(s),i&&l.push(i),t&&d.push(t),o&&l.push(o),(0,b.Y)(f.N,{children:(0,b.Y)(_,{animate:n?"visible":"hidden",decoding:h.H?"sync":"auto",exit:{opacity:0},initial:"hidden",onLoad:()=>a(!0),ref:c,role:e,src:d.pop(),srcSet:l.pop(),transition:{duration:.3},variants:v},t)})});x.displayName="CrossfadeImage";const k=({alt:e,disableCrossfadeImage:t,logId:o,src:r,srcSet:n})=>t?(0,b.Y)(m._,{alt:e,src:r,srcSet:n}):(0,b.Y)(x,{logId:o,src:r,srcSet:n}),w=(0,u.forwardRef)(({alt:e,backgroundColor:t,children:o,className:r,disableCrossfadeImage:n=!1,href:a,logId:s,onClick:m,src:u,srcSet:g,variant:h="default",...y},f)=>{const _="showcase"===h?p:l;return(0,b.FD)(c,{className:r,onClick:m,ref:f,...y,children:[(0,b.FD)(_,{backgroundColor:t,isShowcase:"showcase"===h,children:[(0,b.Y)(k,{alt:e,disableCrossfadeImage:n,logId:s,src:u,srcSet:g}),(0,b.Y)(d,{backgroundColor:t})]}),(0,b.Y)(i,{href:a,onDragEnd:e=>{e.preventDefault(),a&&e.currentTarget.setAttribute("href",a)},onDragStart:e=>{e.preventDefault(),a&&e.currentTarget.removeAttribute("href")}}),o]})});w.displayName="BackgroundMediaContainer";var E=o("./src/shared/components/custom/SmartLink/index.ts"),A=o("./src/shared/constants/zindex.ts"),S=o("./src/shared/components/ui/Button/Button.tsx");const P=(0,r.A)("div",{target:"e1ovsqqe6"})("display:flex;align-items:flex-end;padding:40px 16px;margin-top:-65px;z-index:",A.M.BANNERS,";",n.mq.S` 73 padding: 40px; 74 margin-top: -124px; 75 `," ",n.mq.M` 76 position: absolute; 77 top: 0; 78 bottom: 0; 79 left: 0; 80 right: 0; 81 padding: 0; 82 margin-top: 0; 83 `,";"),I=(0,r.A)("div",{target:"e1ovsqqe5"})("position:relative;display:flex;flex-direction:column;align-items:center;margin:0 auto;padding-bottom:32px;",n.mq.S` 84 padding-bottom: 40px; 85 `," ",n.mq.M` 86 display: block; 87 flex-direction: initial; 88 align-items: initial; 89 align-self: center; 90 width: 50%; 91 margin: 0; 92 left: 40px; 93 text-align: left; 94 padding-bottom: 0; 95 `," ",n.mq.L` 96 width: 500px; 97 left: 80px; 98 `,";"),L=(0,r.A)("h1",{target:"e1ovsqqe4"})("margin:0;text-align:center;",a.ue.typography.contentTitle," ",n.mq.M` 99 text-align: left; 100 `,";"),O=(0,r.A)("p",{target:"e1ovsqqe3"})("margin:8px 0 0;text-align:center;z-index:",A.M.BANNERS,";",n.mq.M` 101 text-align: left; 102 `," ",a.ue.typography.textPrimary,";"),C=(0,r.A)("div",{target:"e1ovsqqe2"})("display:flex;flex-direction:column;justify-content:center;align-self:stretch;margin:24px 0 -8px;padding:0 16px;",n.mq.S` 103 flex-direction: row; 104 margin: 16px -8px 0; 105 flex-wrap: wrap; 106 padding: 0; 107 `," ",n.mq.M` 108 justify-content: flex-start; 109 `,";"),T=(0,r.A)(S.$,{target:"e1ovsqqe1"})("margin:8px 0;",n.mq.S` 110 margin: 16px 8px 0; 111 `,";"),R=(0,r.A)("a",{target:"e1ovsqqe0"})("color:",a.ue.color.text.secondary,";margin-top:32px;text-align:center;",a.ue.typography.textPrimary," ",n.mq.M` 112 text-align: left; 113 `,";"),j=({"data-testid":e="default-banner",description:t,footerLink:o,footerLinkText:r,imageSrc:n,primaryLink:a,primaryLinkText:s,secondaryLink:i,secondaryLinkText:c,title:d})=>(0,b.Y)(w,{logId:"loggedOutBanner",src:n,children:(0,b.Y)(P,{children:(0,b.FD)(I,{children:[(0,b.Y)(L,{"data-testid":`${e}-title`,children:d}),(0,b.Y)(O,{"data-testid":`${e}-description`,children:t}),(0,b.FD)(C,{"data-testid":`${e}-action-buttons`,children:[(0,b.Y)(T,{as:E.i,"data-testid":`${e}-packages-button`,href:a,variant:"primary",children:s}),i&&c&&(0,b.Y)(T,{as:E.i,"data-testid":`${e}-login-button`,href:i,variant:"secondary",children:c})]}),o&&r&&(0,b.Y)(R,{"data-testid":`${e}-footer-link`,href:o,children:r})]})})})},"./src/shared/components/custom/ErrorBoundary.tsx"(e,t,o){"use strict";o.d(t,{q:()=>p,t:()=>m});var r=o("../../../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"),n=o("./src/shared/hooks/useRunIfPathChanges.ts"),a=o("../../libs/error-monitoring/dist/index.mjs"),s=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),i=o("../../../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"),c=o("./src/shared/components/custom/NoDataPlaceholder/index.ts"),d=o("../../../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=(0,r.A)(c.t,{target:"e1yfsp9w0"})({name:"s1n8ed",styles:"height:100vh"}),p=({clearError:e})=>{const{t:t}=(0,i.Bd)();return(0,n.M)(e),(0,s.useEffect)(()=>{requestAnimationFrame(()=>{scrollTo({top:0})})},[]),(0,d.Y)(l,{onClickRetry:e,title:t("ERRORS_DEFAULT_MESSAGE")})},m=({children:e,FallbackComponent:t,onError:o})=>{const r=s.useCallback(({clearError:e,error:o,info:r})=>t?(0,d.Y)(t,{clearError:e,error:o,info:r}):(0,d.Y)(p,{clearError:e}),[t]);return(0,d.Y)(a.tH,{FallbackComponent:r,onError:o,children:e})}},"./src/shared/components/custom/FadeContainer/index.ts"(e,t,o){"use strict";o.d(t,{y:()=>a});var r=o("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs"),n=(o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),o("../../../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 a=({fadeInDuration:e=.4,fadeOutDuration:t=.4,...o})=>{const a={in:{opacity:1,transition:{duration:e}},initial:{opacity:0}
113,out:{opacity:0,transition:{duration:t}}};return(0,n.Y)(r.P.div,{animate:"in",exit:"out",initial:"initial",variants:a,...o})}},"./src/shared/components/custom/Image/Image.tsx"(e,t,o){"use strict";o.d(t,{_:()=>l});var r=o("../../../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"),n=o("./src/shared/utils/image/getImageSources.ts"),a=o("./src/shared/utils/platform/isMobileSafari.ts"),s=o("../../libs/error-monitoring/dist/index.mjs"),i=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),c=o("../../../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,r.A)("img",{target:"e23crpj0"})("display:block;opacity:",({isLoaded:e})=>e?1:0,";transition:opacity 0.2s ease-in-out;"),l=({fallbackSrc:e,forwardedRef:t,height:o,onError:r,onLoad:p,src:m,srcSet:u,uri:g,width:h,...y})=>{const[f,b]=(0,i.useState)(!1),[_,v]=(0,i.useState)(!1),x=(0,i.useRef)(void 0),k=(0,i.useMemo)(()=>g?(0,n.C)({height:o,uri:g,width:h}):{src:m,srcSet:u},[o,m,u,g,h]),w=f?e:k.src,E=x.current!==w,A=(0,i.useCallback)(t=>{(0,s.vV)(new Error("Failed to load image"),{context:l.name,metadata:{source:t.currentTarget.src||"NO SOURCE"}}),!f&&Boolean(e)&&(x.current=w,b(!0)),r?.(t)},[e,r,w,f]),S=(0,i.useCallback)(e=>{x.current=w,v(!0),p?.(e)},[p,w]);return(0,i.useEffect)(()=>{_&&(v(!1),b(!1))},[k.src]),(0,c.Y)(d,{decoding:a.H?"sync":"auto",isLoaded:_&&!E,onError:A,onLoad:S,ref:t,src:w,srcSet:f?void 0:k.srcSet,...y})}},"./src/shared/components/custom/MarginContainer/MarginContainer.tsx"(e,t,o){"use strict";o.d(t,{I_:()=>d,Rs:()=>s,_9:()=>l,ct:()=>c,ry:()=>i});var r=o("../../../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"),n=o("./src/shared/utils/breakpoints/constants.ts"),a=o("./src/shared/utils/breakpoints/mq.ts");const s={L:80,M:40,S:16,XL:80},i="--page-margin",c=e=>`var(${i}, ${s[e]}px)`,d=e=>e>=n.f.L?s.L:e>=n.f.M?s.M:(n.f.S,s.S),l=(0,r.A)("div",{target:"e1n3199x0"})("position:relative;margin-left:var(",i,", ",s.S,"px);margin-right:var(",i,", ",s.S,"px);",a.mq.M` 114 margin-left: var(${i}, ${s.M}px); 115 margin-right: var(${i}, ${s.M}px); 116 `," ",a.mq.L` 117 margin-left: var(${i}, ${s.L}px); 118 margin-right: var(${i}, ${s.L}px); 119 `," ",a.mq.XL` 120 margin-left: var(${i}, ${s.XL}px); 121 margin-right: var(${i}, ${s.XL}px); 122 `,";")},"./src/shared/components/custom/MarginContainer/index.ts"(e,t,o){"use strict";o.d(t,{I:()=>r.I_,_:()=>r._9});var r=o("./src/shared/components/custom/MarginContainer/MarginContainer.tsx")},"./src/shared/components/custom/Navbar/index.ts"(e,t,o){"use strict";o.d(t,{fL:()=>c,G5:()=>Ge,wA:()=>m,yq:()=>y,st:()=>x});var r=o("./src/shared/utils/isDefined.ts"),n=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),a=o("../../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/index.js"),s=o("../../../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="navbar-wrapper",c=({children:e})=>{const[t,o]=(0,n.useState)();return(0,n.useEffect)(()=>{const e=document.getElementById(i);(0,r.O)(e)&&o(e)},[]),t?(0,s.Y)(s.FK,{children:(0,a.createPortal)(e,t)}):null};var d=o("./src/shared/hooks/useWindowSize.ts"),l=o("./src/shared/utils/breakpoints/constants.ts"),p=o("./src/shared/utils/breakpoints/getBreakpoint.ts");const m=()=>{const{width:e}=(0,d.l)();return(0,n.useMemo)(()=>(0,p._)(e)===l.S.S||(0,p._)(e)===l.S.M,[e])?"mobile":"desktop"};var u=o("../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_react-_23af7fe1a84405345a895683eefe299d/node_modules/@apollo/client/cache/inmemory/reactiveVars.js"),g=o("../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_react-_23af7fe1a84405345a895683eefe299d/node_modules/@apollo/client/react/hooks/useReactiveVar.js");const h=(0,u.UT)(0),y=()=>(0,g.q)(h),f=(0,n.createContext)({setAddOffsetTop:()=>{},setShowMenuItems:()=>{}
122,setSolidBackground:()=>{},setVisible:()=>{}}),b={addOffsetTop:!1,showMenuItems:!0,solidBackground:!1,visible:!0},_=(0,n.createContext)(b),v=(0,n.createContext)({navbarContainerRef:{current:null}}),x=e=>{const{setAddOffsetTop:t,setShowMenuItems:o,setSolidBackground:a,setVisible:s}=(0,n.useContext)(f);(0,n.useEffect)(()=>((0,r.O)(e.addOffsetTop)&&t(e.addOffsetTop),(0,r.O)(e.solidBackground)&&a(e.solidBackground),(0,r.O)(e.visible)&&s(e.visible),(0,r.O)(e.showMenuItems)&&o(e.showMenuItems),()=>{t(b.addOffsetTop),o(b.showMenuItems),a(b.solidBackground),s(b.visible)}),[e.addOffsetTop,e.showMenuItems,e.solidBackground,e.visible,t,o,a,s])};var k=o("./src/shared/hooks/useResizeObserverWithRAF.tsx"),w=o("../../../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"),E=o("./src/shared/hooks/useIsGeoblocked.ts"),A=o("./src/shared/hooks/useOnAppInteraction.ts"),S=o("./src/shared/utils/platform/isHandheldDevice.ts"),P=o("./src/shared/utils/webStorage/getLocalStorage.ts"),I=o("./src/shared/utils/webStorage/setLocalStorage.ts"),L=o("../../../node_modules/.pnpm/[email protected]/node_modules/bowser/es5.js"),O=o.n(L);var C=o("./src/auth/providers/AuthProvider.tsx"),T=o("./src/auth/routes.tsx"),R=o("./src/core/router/routes.tsx"),j=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/Config.js"),D=o("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-62JRHF6Z.mjs");const N=R.GJ.map(e=>e.path);var M=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/abstractions/client/ClientInformationIF.js"),F=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/DataManager.js"),Y=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/ErrorTypes.js"),$=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/ServiceConfig.js"),q=o("../../libs/error-monitoring/dist/index.mjs");const z="REMOVED_MESSAGES",B=()=>{const{t:e}=(0,w.Bd)(),[t,o]=(0,n.useState)([]),a=(0,E.p)(),[s,i]=(0,n.useState)(),{shouldShowMessage:c}=(()=>{const{isLoggedIn:e}=(0,C.Z)(),{pathname:t}=(0,D.zy)(),o=N.map(e=>(0,D.B6)(e,t)).find(e=>e?.params);return{shouldShowMessage:(0,n.useCallback)(n=>{if(t===T.F.LOGIN||t.startsWith(`${T.F.LOGIN}/`))return!1;if(!(0,r.O)(n.filterPageIds)||0===n.filterPageIds.length)return!0;const a=Object.values(o?.params??{}),s=(n.filterPageIds??[]).some(e=>a.includes(e)),i=o?.pathname??"",c="/"===i?e?j.Config.get("page/home/id"):j.Config.get("page/loggedOut/id")??"":i.replace("/","");return s||n.filterPageIds.includes(c)},[o?.params,o?.pathname,e,t])}})(),d=(0,n.useCallback)(async()=>{o(await(async()=>{try{const e=F.DataManager.instance(),t=$.ServiceConfig.getService("messagebar"),{client:o,country:r}=await M.ClientInformationIF.resolve().getClientInformation(),n=o.toLowerCase(),a=r.toLowerCase(),s=t.getUrl(`/${a}/${n}/messagebar.json`);return await e.sendGet(s,"messages")}catch(e){e instanceof Y.RequestContentNotFoundError||(0,q.vV)(new Error("Failed to fetch messages from the messagebar service.",{cause:e}),{context:"getMessages"})}return[]})())},[]),[l,p]=(0,n.useState)((0,P.L)(z,{}));(0,n.useEffect)(()=>{d()},[d]),(0,A.a)({callback:d,waitFor:6e4});const m=(0,n.useMemo)(()=>{const t=[];a&&t.push({message:e("GEOBLOCK_NOTIFICATION_MESSAGE"),variant:"attention"});return!S.p&&!(()=>{if(!("requestMediaKeySystemAccess"in navigator))return!1;const e={chrome:">=80",chromium:">=80",edge:">=80",firefox:">=80",safari:">=13.1"};return O().getParser(window.navigator.userAgent).satisfies({"Chrome OS":e,desktop:e})||!1})()&&!s&&t.push({message:e("UNSUPPORTED_CLIENT"),onClickButton:()=>{i(!0)},variant:"attention"}),t},[s,a,e]),u=(0,n.useMemo)(()=>t.filter(c).map(e=>{if(l[e.id])return;return{link:e?.url||void 0,message:e.content,onClickButton:async()=>{const t={...l,[e.id]:!0};(0,I.Z)(z,t),p(t)},variant:"ALERT"===e.severity?"negative":"attention"}}).filter(r.O),[t,c,l]);return(0,n.useMemo)(()=>[...m,...u],[m,u])};var U=o("../../../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"),V=o("./src/core/analytics/tracker.ts"),G=o("./src/page/routes.tsx"),H=o("./src/profiles/providers/UserProvider/UserProvider.tsx"),W=o("./src/shared/components/ui/Navbar/index.ts"),K=o("./src/shared/hooks/useLockRootElement.ts"),Z=o("./src/shared/hooks/useMainMenuItems.ts"),X=o("./src/shared/utils/image/getImageProxyUrl.ts"),J=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js"),Q=o("../../../node_modules/.pnpm/@telia-company+tv.
122[email protected]_@[email protected]_@[email protected]._40a8934ef08e2f116702e118aa44b3c2/node_modules/@telia-company/tv.web-player-cc-sender/dist/web-player-cc-sender.min.js"),ee=o("./src/shared/components/custom/SmartLink/index.ts"),te=o("./src/shared/components/ui/Button/index.ts");const oe=()=>{const{t:e}=(0,w.Bd)();return(0,s.Y)(te.$,{as:ee.i,"data-testid":"navbar-login-button",href:(0,D.tW)(T.F.LOGIN),variant:"secondary",children:e("LOGIN")})};var re=o("./src/codegen/graphql.ts"),ne=o("./src/core/apollo/client.ts"),ae=o("./src/shared/utils/preloadBackdropImages.ts");var se=o("./src/shared/components/custom/ActionOnHover/ActionOnHover.tsx");const ie=(0,U.A)(se.A,{target:"e1swjoha0"})({name:"qr8q5p",styles:"list-style:none"}),ce=({pageId:e,...t})=>(0,s.Y)(ie,{as:"li",onComplete:()=>(async e=>{const{data:t}=await ne.S.query({query:re.$7K,variables:{id:e}}),o=t?.page?.pagePanels?.panels?.find(e=>"ShowcasePanelX"===e?.__typename);o&&"showcaseContent"in o&&o.showcaseContent?.items?.forEach(e=>{e.images&&(0,ae.u)(e.images)})})(e),waitForMs:150,...t});var de=o("./src/core/router/hooks/useRootLocation/index.ts"),le=o("./src/search/routes.tsx"),pe=o("./src/shared/hooks/useOnEscape.ts"),me=o("./src/watch/routes.tsx");const ue=()=>{const{t:e}=(0,w.Bd)(),t=(0,D.RQ)(le.t.DEFAULT),o=(0,D.RQ)(me.i.DEFAULT),r=(0,D.Zp)(),a=(0,n.useRef)((0,D.tW)(G.q.HOME)),{pathname:i}=(0,D.zy)(),c=Boolean(t?.pattern.end),d=Boolean(o?.pattern.path),l=c?"Close":"Search",p=e(c?"CLOSE_SEARCH":"SEARCH"),m=(0,n.useCallback)(()=>r(c?a.current:(0,D.tW)(le.t.DEFAULT)),[c,r,a]);return(0,pe.Y)(m,{ref:document,skip:!c}),(0,n.useEffect)(()=>{c||(0,de.u6)()||d||(a.current=i)},[c,d,i]),(0,s.Y)(te.$,{"aria-label":p,"data-testid":"navbar-search-button",icon:l,onClick:m,variant:"ghost"})};var ge=o("./src/shared/hooks/useAccountInfo.ts"),he=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.oneapp-web-analytics/dist/index.js"),ye=o("./src/profiles/routes.tsx"),fe=o("./src/shared/utils/getSelectionMenuUrl.ts");const be={editProfiles:e=>({group:"primary",href:ye.i.SELECT_FOR_EDIT,id:"editProfiles",text:e("EDIT_PROFILES")}),faq:e=>({group:"primary",href:j.Config.get("shared/services/host")+e("branding:FAQ_URL"),id:"faq",target:"_blank",text:e("FAQ")}),myAccount:e=>({group:"primary",href:`${j.Config.get("shared/services/account/host")}/account`,id:"myAccount",text:e("MY_ACCOUNT")}),myContent:e=>({group:"primary",href:"/my-content",id:"myContent",text:e("MY_CONTENT")}),selectionMenu:e=>({group:"primary",href:(0,fe.T)({}),id:"selectionMenu",text:e("SELECTION_MENU")}),supportWeb:e=>({group:"primary",href:j.Config.get("app/supportweb/url"),id:"supportWeb",text:e("SUPPORT")})},_e=(e,t,{accountInfo:o,currentAgeGroup:n,showSelectionMenu:a,skipFilteringAndEditProfile:s,t:i,trackLogout:c})=>{s||n===re.P2Z.Adult||(e=e.filter(e=>t.includes(e)));const d=e.map(e=>"logout"===e?((e,t,o)=>({group:"secondary",href:"/logout",id:"logout",onClick:()=>{o(),V.F.trackLoginAction({login_action_type:"nav_logout"}),V.F.trackLoginAction({login_action_type:"logout_confirmed"}),V.F.releaseEvents()},subText:t?.username,text:e("LOGOUT")}))(i,o,c):"editProfiles"===e&&s||"selectionMenu"===e&&!a||"supportWeb"===e&&!j.Config.get("app/supportweb/enabled")?void 0:be[e](i)).filter(r.O);return d},ve=["selectionMenu","myAccount","editProfiles","myContent","supportWeb","logout"],xe=["editProfiles","logout"],ke=(0,U.A)(Q.ChromecastButton,{target:"erru6l0"})("border-radius:",J.ue.radius.button,";background-color:",J.ue.color.button.ghostDefault,";backdrop-filter:blur(6px);&:hover{background-color:",J.ue.color.button.ghostHover,";}&:focus{background-color:",J.ue.color.button.ghostFocus,";.is-tabbing &{box-shadow:0 0 0 3px ",J.ue.color.border.buttonGhostFocus,";}}&:active{background-color:",J.ue.color.button.ghostPressed,";}&:disabled{background-color:",J.ue.color.button.ghostDisabled,";}"),we=({offsetIndex:e=0,parentIndex:t=0})=>(o,n)=>({...o,onClick:()=>{V.F.trackMenuClick({menu_index:`${t}.${e+n+1}`,menu_label:o.text}),(0,r.O)(o.onClick)&&o.onClick()}}),Ee=e=>({...e,"data-testid":`navbar-menu-item-${e.id}`}),Ae=e=>({...e,as:ee.i}),Se=()=>
122{const{showMenuItems:e,solidBackground:t,visible:o}=(0,n.useContext)(_),a=(()=>{const{t:e}=(0,w.Bd)(),t=(0,ge.T)(),{currentProfile:o,showSelectionMenu:r}=(0,H.u)(),a=!o;return(0,n.useMemo)(()=>[..._e(ve,xe,{accountInfo:t,currentAgeGroup:o?.ageGroup,showSelectionMenu:r,skipFilteringAndEditProfile:a,t:e,trackLogout:he.trackLogout})],[t,o?.ageGroup,a,r,e])})(),c=(()=>{const{assumeProfile:e,availableProfiles:t}=(0,H.u)();return(t||[]).map(({ageGroup:t,alias:o,avatar:r,id:n})=>({altText:r.altText,avatarHref:(0,X.x)({height:W.l,uri:r.square.source,width:W.l}),group:"primary",id:"profiles",onClick:()=>e({ageGroup:t,id:n}),text:o}))})(),d=(0,Z.w)(),l=m(),p=(()=>{const{rootLocation:e}=(0,de.b0)(),t="string"==typeof e?e:e.pathname;return(0,n.useCallback)(e=>{if(!(0,r.O)(e))return!1;if(!(0,r.O)(t))return!1;const o=t.split("/");return e.split("/").every((e,t)=>e===o[t])},[t])})(),{currentProfile:u}=(0,H.u)(),{isLoggedIn:g}=(0,C.Z)(),[h,y]=(0,n.useState)(!1),{locked:f,lockRootElement:b,unlockRootElement:v}=(0,K.X)({skipOnMount:!0}),{t:x}=(0,w.Bd)(),k=(0,n.useCallback)(({onClick:e,...t})=>({...t,onClick:()=>{y(!1),v(),(0,r.O)(e)&&e()}}),[v]),E=(0,n.useCallback)(e=>({...e,active:p(e.href)}),[p]),A=(0,n.useMemo)(()=>("desktop"===l?[...c,...a.filter(({group:e})=>"primary"===e).map(Ae)]:d.map(Ae)).map(we({parentIndex:d.length})).map(k).map(E).map(Ee),[E,k,l,d,c,a]),S=(0,n.useMemo)(()=>("desktop"===l?a.filter(({group:e})=>"secondary"===e).map(Ae):[...c,...a.map(Ae)]).map(we({offsetIndex:A.length,parentIndex:d.length})).map(k).map(E).map(Ee),[E,k,l,d.length,A.length,c,a]),P=(0,n.useCallback)(e=>{"mobile"===l&&(e?b():v()),y(e)},[l,b,v]);return(0,s.FD)(W.F.Wrapper,{lockOpacity:f,solid:t,visible:o,children:[(0,s.FD)(W.F.Container,{"aria-label":x("MAIN_MENU"),layout:l,children:["desktop"===l&&(0,s.Y)(W.F.Brand,{"aria-label":x("TO_START_PAGE"),as:ee.i,href:(0,D.tW)(G.q.HOME),onClick:()=>
122V.F.trackMenuClick({menu_index:"0",menu_label:x("TO_START_PAGE")})}),"desktop"===l&&e&&(0,s.Y)(W.F.Column,{alignContent:"left",as:"ul",role:"list",children:d.map(we({})).map(Ee).map((e,t)=>(0,s.Y)(ce,{pageId:e.id,children:(0,s.Y)(W.F.Link,{active:p(e.href),"aria-current":p(e.href)?"page":"false",as:ee.i,"data-testid":e["data-testid"],href:e.href,onClick:e.onClick,target:e.target,children:e.text})},t))}),(0,s.FD)(W.F.Column,{alignContent:"desktop"===l?"right":"left",children:[e&&(0,s.Y)(W.F.DropdownMenu,{alignMenu:"right",button:{avatarHref:u?.avatar.square.source?(0,X.x)({height:W.l,uri:u.avatar.square.source,width:W.l}):void 0,buttonText:u?.alias||x("MY_ACCOUNT"),"data-testid":"navbar-menu-button"},"data-testid":"navbar-menu-dropdown",isOpen:h,primaryItems:A,secondaryItems:S,setIsOpen:P,variant:l}),"desktop"===l&&e&&(0,s.FD)(s.FK,{children:[(0,s.Y)(ue,{}),(0,s.Y)(ke,{ariaLabel:x("CHROMECAST")})]}),"desktop"===l&&!g&&(0,s.Y)(oe,{})]}),"mobile"===l&&(0,s.Y)(W.F.Brand,{"aria-label":x("TO_START_PAGE"),as:ee.i,href:(0,D.tW)(G.q.HOME),onClick:()=>
122V.F.trackMenuClick({menu_index:"0",menu_label:x("TO_START_PAGE")})}),"mobile"===l&&e&&(0,s.Y)(W.F.Column,{alignContent:"right",children:(0,s.Y)(ue,{})})]}),(0,s.Y)("div",{id:i})]})};var Pe=o("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),Ie=o("./src/shared/utils/breakpoints/mq.ts"),Le=o("./src/shared/components/custom/SmartLink/SmartLink.tsx");const Oe=(0,U.A)("div",{target:"e1wt0xcq5"})("display:flex;width:100%;min-height:64px;",Ie.mq.S` 123 min-height: 56px; 124 `,";"),Ce=(0,U.A)("div",{target:"e1wt0xcq4"})("flex-grow:1;display:flex;align-items:center;padding:16px 24px;",({variant:e})=>{switch(e){case"attention":return(0,Pe.css)("background-color:",J.ue.color.infoDialogue.attentionBackgroundBold,";color:",J.ue.color.text.primaryDark,";button,a{color:",J.ue.color.text.primaryDark,";}path:last-child[fill]{fill:",J.ue.color.text.primaryDark,";}*[stroke]{stroke:",J.ue.color.text.primaryDark,";}");case"negative":return(0,Pe.css)("background-color:",J.ue.color.infoDialogue.negativeBackgroundBold,";color:",J.ue.color.text.primaryDark,";button,a{color:",J.ue.color.text.primaryDark,";}*[fill]{fill:",J.ue.color.text.primaryDark,";}*[stroke]{stroke:",J.ue.color.text.primaryDark,";}")}},";"),Te=(0,U.A)(J.PA,{target:"e1wt0xcq3"})("align-self:flex-start;width:24px;height:24px;margin-top:2px;margin-right:12px;flex-shrink:0;",Ie.mq.M` 125 margin-top: 0; 126 width: 32px; 127 height: 32px; 128 margin-right: 16px; 129 align-self: center; 130 `," svg{width:100%;height:100%;}"),Re=(0,U.A)("button",{target:"e1wt0xcq2"})("display:flex;border:0;background-color:transparent;cursor:pointer;flex-shrink:0;padding:0;margin-top:2px;margin-left:8px;justify-content:center;align-self:flex-start;",Ie.mq.M` 131 align-self: center; 132 margin-top: 0px; 133 `," svg{width:24px;height:24px;",Ie.mq.M` 134 width: 32px; 135 height: 32px; 136 `,";}"),je=(0,U.A)("div",{target:"e1wt0xcq1"})("flex-grow:1;margin-right:8px;",J.ue.typography.textPrimary," ",Ie.mq.M` 137 display: flex; 138 justify-content: space-between; 139 `,";"),De=(0,U.A)(Le.i,{target:"e1wt0xcq0"})(J.ue.typography.textLink,";"),Ne={attention:"status",negative:"alert"},Me={attention:"INFO",negative:"ALERT"},Fe={attention:"Alert",negative:"Warning"},Ye=({link:e,linkText:t,message:o,onClickButton:r,variant:n,...a})=>{const{t:i}=(0,w.Bd)(),c=Fe[n],d=Me[n],l=i("ALERT"===d?"ACCESSIBILITY_MESSAGE_SEVERITY_ALERT":"ACCESSIBILITY_MESSAGE_SEVERITY_INFO");return(0,s.Y)(Oe,{...a,"aria-label":`${l} ${o}`,"aria-live":"ALERT"===d?"assertive":"polite",role:Ne[n],tabIndex:-1,children:(0,s.FD)(Ce,{variant:n,children:[c&&(0,s.Y)(Te,{"aria-hidden":"true",name:c}),(0,s.FD)(je,{children:[(0,s.Y)("div",{"aria-hidden":"true",children:o}),e&&(0,s.Y)(De,{"aria-label":`${t||i("READ_MORE")} - ${i("ACCESSIBILITY_MESSAGE_OPENS_IN_NEW_WINDOW")}`,href:e,rel:"noopener noreferrer",target:"_blank",children:t||i("READ_MORE")})]}),r&&(0,s.Y)(Re,{"aria-label":i("ALERT"===d?"ACCESSIBILITY_MESSAGE_DISMISS_ALERT_BUTTON_LABEL":"ACCESSIBILITY_MESSAGE_DISMISS_INFORMATION_BUTTON_LABEL"),onClick:r,children:(0,s.Y)(J.PA,{"aria-hidden":"true",name:"Close"})})]})})};var $e=o("./src/shared/constants/zindex.ts");const qe=(0,U.A)(Ye,{target:"e7iz1524"})("&>div{padding-left:16px;padding-right:16px;",Ie.mq.L` 140 padding-left: 32px; 141 padding-right: 32px; 142 `,";}"),ze=(0,U.A)("section",{target:"e7iz1523"})("position:relative;",qe,"{~",qe,"{margin-top:1px;}}"),Be=(0,U.A)("h2",{target:"e7iz1522"})({name:"1wj7b4h",styles:"position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0"}),Ue=(0,U.A)("header",{target:"e7iz1521"})("position:fixed;top:0;left:0;right:0;z-index:",$e.M.NAVBAR_PROVIDER,";"),Ve=(0,U.A)("div",{target:"e7iz1520"})("margin-top:",({marginTop:e})=>e,"px;height:inherit;min-height:inherit;"),Ge=({children:e})=>{const{t:t}=(0,w.Bd)(),[o,r]=(0,n.useState)(b.addOffsetTop),[a,i]=(0,n.useState)(b.showMenuItems),[c,d]=(0,n.useState)(b.solidBackground),[l,p]=(0,n.use
142State)(b.visible),m=B(),u=(0,n.useRef)(null),g=(0,n.useRef)(null),y=(0,n.useRef)(null),{height:x=0}=(0,k.v)(u),{height:E=0}=(0,k.v)(g),A=o?x:E;return(0,n.useEffect)(()=>{h(A)},[A]),(0,n.useEffect)(()=>{m.length&&y.current&&setTimeout(()=>{y.current?.focus()},100)},[m]),(0,s.Y)(f.Provider,{value:{setAddOffsetTop:r,setShowMenuItems:i,setSolidBackground:d,setVisible:p},children:(0,s.Y)(_.Provider,{value:{addOffsetTop:o,showMenuItems:a,solidBackground:c,visible:l},children:(0,s.FD)(v.Provider,{value:{navbarContainerRef:u},children:[(0,s.FD)(Ue,{"data-testid":"navbar-container",ref:u,children:[(0,s.FD)(ze,{"aria-label":t("ACCESSIBILITY_MESSAGES"),ref:g,role:"region",children:[m.length>0&&(0,s.Y)(Be,{children:t("ACCESSIBILITY_IMPORTANT_MESSAGE")}),m.map((e,t)=>(0,s.Y)(qe,{ref:0===t?y:void 0,...e},t))]}),(0,s.Y)(Se,{})]}),(0,s.Y)(Ve,{marginTop:A,children:e})]})})})}},"./src/shared/components/custom/NoDataPlaceholder/NoDataPlaceholder.tsx"(e,t,o){"use strict";o.d(t,{t:()=>y});var r=o("../../../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"),n=o("./src/core/analytics/tracker.ts"),a=o("./src/shared/components/ui/Button/index.ts"),s=o("./src/shared/utils/extractTextChild.ts"),i=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js"),c=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),d=o("../../../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=o("../../../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=(0,r.A)("div",{target:"eu6kwsd4"})({name:"adk35i",styles:"display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;max-width:416px;margin:0 auto"}),m=(0,r.A)(i.PA,{target:"eu6kwsd3"})("width:32px;height:32px;path{stroke:",i.ue.color.text.primary,";&:nth-of-type(2){fill:",i.ue.color.text.primary,";}}"),u=(0,r.A)("h3",{target:"eu6kwsd2"})(i.ue.typography.textPrimary," color:",i.ue.color.text.primary,";text-transform:initial;text-align:center;margin:8px 0 0;a{text-decoration-line:underline;}"),g=(0,r.A)("p",{target:"eu6kwsd1"})(i.ue.typography.textSecondary," color:",i.ue.color.text.tertiary,";margin:8px 0 0;text-align:center;"),h=(0,r.A)(a.$,{target:"eu6kwsd0"})({name:"1d0nbku",styles:"margin-top:24px"}),y=({description:e,onClickRetry:t,title:o,...r})=>{const{t:a}=(0,d.Bd)(),i=(0,s.b)(o);return(0,c.useEffect)(()=>{n.F.trackUserDistraction({distraction_style:"inline",message_body:e||"",message_title:i})},[e,i]),(0,l.FD)(p,{...r,children:[(0,l.Y)(m,{name:"Warning"}),(0,l.Y)(u,{children:o}),e&&(0,l.Y)(g,{children:e}),t&&(0,l.Y)(h,{onClick:t,variant:"secondary",children:a("N_RETRY")})]})}},"./src/shared/components/custom/NoDataPlaceholder/index.ts"(e,t,o){"use strict";o.d(t,{t:()=>r.t});var r=o("./src/shared/components/custom/NoDataPlaceholder/NoDataPlaceholder.tsx")},"./src/shared/components/custom/PINCodeModal/PINCodeModal.tsx"(e,t,o){"use strict";o.d(t,{sQ:()=>y,tu:()=>h,uR:()=>b});var r=o("../../../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"),n=o("./src/shared/utils/breakpoints/mq.ts"),a=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js"),s=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),i=o("../../../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"),c=o("./src/shared/components/ui/FormErrorMessage/FormErrorMessage.tsx"),d=o("./src/shared/components/ui/Input/Input.tsx"),l=o("./src/shared/components/ui/Modal/Modal.tsx"),p=o("../../../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 m=(0,r.A)("form",{target:"e1t6q39r5"})({name:"v4ykij",styles:"display:flex;flex-direction:column;align-items:left"}),u=(0,r.A)("p",{target:"e1t6q39r4"})("color:",a.ue.color.text.secondary,";text-align:left;margin:0 0 16px 0;"),g=(0,r.A)("div",{target:"e1t6q39r3"})({name:"1r5gb7q",styles:"display:inline-block"}),h=(0,r.A)("div",{target:"e1t6q39r2"})({name:"1yupmj4",styles:"display:flex;column-gap:8px"}),y=(0,r.A)(d.pd,{target:"e1t6q39r1"})("justify-content:center;div{height:64px;width:64px;background:",a.ue.color.background.surface,";border:1px solid ",a.ue.color.border.inputfieldDefault,";",e=>e.hasError&&`border: 1px solid ${a.ue.color.text.error};`," border-radius:6px;",n.mq.S` 143 height: 64px; 144 width: 64px; 145 `,";}input{padding:0;color:",a.ue.color.text.primary,";caret-color:transparent;text-align:center;-moz-appearance:textfield;-webkit-text-security:disc;font-family:text-security-disc;",a.ue.typography.textLarge,";&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&:focus{border:1px solid ",a.ue.color.text.primary,";border-radius:6px;}}"),f=(0,r.A)(c.W,{target:"e1t6q39r0"})({name:"sahxzn",styles:"margin-top:8px;text-align:left;display:flex;align-items:center"}),b=({actions:e,animatePresence:t,bounce:o,category:r,closeOnClickOutside:n,description:a,errorMessage:c,forgotPinCodeLabel:d,length:b=4,mediaId:_,onBounceEnd:v,onClickForgotPinCode:x,onHide:k,onSubmit:w,title:E,visible:A})=>{const{t:S}
145=(0,i.Bd)(),[P,I]=(0,s.useState)({...new Array(b).fill("")}),L=Object.values(P).join(""),O=[],[C,T]=(0,s.useState)(!1),[R,j]=(0,s.useState)(!1),[D,N]=(0,s.useState)();(0,s.useEffect)(()=>{I(e=>{const t=Object.values(e);return t.length>b?(t.length=b,{...t}):{...new Array(b).fill(""),...t}})},[b]),(0,s.useEffect)(()=>{C&&D&&I(e=>{const t=Object.keys(e).length;return T(!1),{...new Array(t).fill("")}})},[D,C,T]);(0,s.useEffect)(()=>{c&&N(c)},[c]);const M=(0,s.useMemo)(()=>{const t=[...e||[],{"data-testid":"pincode-submit",form:"pincode-form",label:S("OK"),type:"submit",variant:"primary"}];return x&&t.unshift({label:d||S("FORGOT_PIN"),onClick:x,type:"button",variant:"ghost"}),t},[S,e,x,d]),F=(0,s.useMemo)(()=>{const e={overlay_title:E};return r&&(e.category=r),_&&(e.content_media_id=_),e},[r,_,E]),Y=e=>{const t="data"in e.nativeEvent?e.nativeEvent.data:null;t&&(t<"0"||t>"9")&&e.preventDefault()};return(0,p.Y)(l.a,{actions:M,animatePresence:t,bounce:o,closeOnClickOutside:n,onBounceEnd:v,onHide:()=>{k&&k(),I({})},overlayEventTrackingData:F,title:E,visible:A,children:(0,p.FD)(m,{autoComplete:"none","data-testid":"pincode-form",id:"pincode-form",onSubmit:async e=>{e.preventDefault(),T(!0),j(!0),L.length===b?w(L):N(S("CHARGING_CREDENTIALS_INVALID"))},role:"presentation",children:[a&&(0,p.Y)(u,{dangerouslySetInnerHTML:{__html:a}}),(0,p.FD)(g,{children:[(0,p.Y)(h,{children:Array.from({length:b}).map((e,t)=>{const o=`pincode-input-${t}`;return(0,p.Y)(y,{"aria-label":S("PIN_DIGIT",{index:t+1}),autoComplete:"none","data-testid":o,hasError:!!D,id:o,inputMode:"numeric",maxLength:1,onBeforeInput:Y,onInput:e=>((e,t)=>{if(!("value"in e.target)||"string"!=typeof e.target.value)return;const{value:o}=e.target;D&&N(void 0);const r={...P};if(o){const e=O[t+1];e&&e.focus(),r[t]=o.slice(0,1),I(r)}})(e,t),onKeyDown:e=>((e,t)=>{if("Backspace"===e.key){const o={...P};let r;const{value:n}=e.target;n?(o[t]="",r=O[t]):t>0&&(r=O[t-1],o[t-1]=""),I(o),r&&r.focus()}})(e,t),ref:e=>{O[t]=e,0===t&&e&&R&&(e.focus(),j(!1))},type:"password",value:P[t]},o)})}),(0,p.Y)("div",{role:"alert",children:D&&(0,p.Y)(f,{children:D})})]})]})})}},"./src/shared/components/custom/PINCodeModal/index.ts"(e,t,o){"use strict";o.d(t,{sQ:()=>r.sQ,tu:()=>r.tu,uR:()=>r.uR});var r=o("./src/shared/components/custom/PINCodeModal/PINCodeModal.tsx")},"./src/shared/components/custom/Portal/Portal.tsx"(e,t,o){"use strict";o.d(t,{Z:()=>s});var r=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),n=o("../../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/index.js"),a=o("../../../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=({children:e})=>{const t=(0,r.useRef)(document.getElementById("portals")||(()=>{const e=document.createElement("div");return e.id="portals",document.body.appendChild(e),e})());return(0,a.Y)(a.FK,{children:(0,n.createPortal)(e,t.current)})}},"./src/shared/components/custom/Portal/index.ts"(e,t,o){"use strict";o.d(t,{Z:()=>r.Z});var r=o("./src/shared/components/custom/Portal/Portal.tsx")},"./src/shared/components/custom/SkipNav/SkipNav.tsx"(e,t,o){"use strict";o.d(t,{H:()=>l,p:()=>p});var r=o("../../../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"),n=o("./src/core/router/hooks/useIsModalRouteOpen/index.ts"),a=o("./src/shared/constants/zindex.ts"),s=o("./src/watch/routes.tsx"),i=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js"),c=o("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-62JRHF6Z.mjs"),d=o("../../../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=(0,r.A)("a",{target:"ex7wqs20"})("position:absolute;top:16px;left:-9999px;z-index:",({as:e})=>"button"===e?a.M.EPG.SKIP_LINK:2147483647,";border-radius:4px;background:",i.ue.color.background.tertiary,";color:",i.ue.color.text.primary,";padding:8px 16px;&:focus{left:50%;transform:translateX(-50%);}"),p=({id:e,label:t,onClick:o,targetId:r})=>{const{pathname:a}=(0,c.zy)(),{isModalRouteOpen:i}=(0,n.u)(),p=[s.i.DEFAULT].some(e=>!(0,c.B6)(e,a));if(i||!p)return null;if(r){const o=`#${r}`;return(0,d.Y)(l,{className:"skip-link",href:o,id:e,children:t})}
145return o?(0,d.Y)(l,{as:"button",className:"skip-link",id:e,onClick:o,children:t}):null}},"./src/shared/components/custom/SkipNav/index.ts"(e,t,o){"use strict";o.d(t,{p:()=>r.p});var r=o("./src/shared/components/custom/SkipNav/SkipNav.tsx")},"./src/shared/components/custom/SmartLink/SmartLink.tsx"(e,t,o){"use strict";o.d(t,{i:()=>c});var r=o("../../../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"),n=o("./src/shared/utils/isExternalLink.ts"),a=(o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),o("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-62JRHF6Z.mjs")),s=o("../../../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,r.A)("a",{target:"e1cy61cq0"})(),c=({children:e,exact:t,href:o,navLink:r,...c})=>o?"string"==typeof o&&(0,n.i)(o)?(0,s.Y)(i,{href:o,...c,children:e}):r?(0,s.Y)(a.k2,{...c,end:t,to:o,children:e}):(0,s.Y)(a.N_,{...c,to:o,children:e}):(0,s.Y)(i,{...c,children:e})},"./src/shared/components/custom/SmartLink/index.ts"(e,t,o){"use strict";o.d(t,{i:()=>r.i});var r=o("./src/shared/components/custom/SmartLink/SmartLink.tsx")},"./src/shared/components/ui/Button/Button.styles.ts"(e,t,o){"use strict";o.d(t,{$2:()=>b,$A:()=>y,G3:()=>h,Kr:()=>v,OV:()=>p,kg:()=>_,vE:()=>u,xj:()=>m,xv:()=>g});var r=o("../../../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"),n=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js"),a=o("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),s=o("./src/shared/components/ui/Spinner/index.ts"),i=o("./src/shared/constants/zindex.ts"),c=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js"),d=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]__@types+react_888338b0bd9b8472c782c3e6db245c61/node_modules/@radix-ui/react-tooltip/dist/index.mjs");const l={countdown:()=>(0,a.css)("background-color:",c.ue.color.button.secondaryDefault,";color:",c.ue.color.text.tertiary,";cursor:default;user-select:none;svg{*[fill]{fill:",c.ue.color.text.tertiary,";}*[stroke]{stroke:",c.ue.color.text.tertiary,";}}"),ghost:()=>(0,a.css)("background-color:",c.ue.color.button.ghostDefault,";&:hover,&.tutorial-highlighted{background-color:",c.ue.color.button.ghostHover,";}&:active{background-color:",c.ue.color.button.ghostPressed,";}&:disabled{background-color:",c.ue.color.button.ghostDisabled,";}"),pay:()=>(0,a.css)("background-color:",c.ue.color.button.payDefault,";color:",c.ue.color.text.primaryDark,";svg{*[fill]{fill:",c.ue.color.text.primaryDark,";}*[stroke]{stroke:",c.ue.color.text.primaryDark,";}}&:hover,&.tutorial-highlighted{background-color:",c.ue.color.button.payHover,";}&:active{background-color:",c.ue.color.button.payPressed,";}&:disabled{background-color:",c.ue.color.button.payDisabled,";}"),primary:()=>(0,a.css)("background-color:",c.ue.color.button.primaryDefault,";color:",c.ue.color.text.primary,";&:hover,&.tutorial-highlighted{background-color:",c.ue.color.button.primaryHover,";}&:active{background-color:",c.ue.color.button.primaryPressed,";}&:disabled{background-color:",c.ue.color.button.primaryDisabled,";}"),secondary:()=>(0,a.css)("background-color:",c.ue.color.button.secondaryDefault,";color:",c.ue.color.text.primary,";&:hover,&.tutorial-highlighted{background-color:",c.ue.color.button.secondaryHover,";}&:active{background-color:",c.ue.color.button.secondaryPressed,";}
145&:disabled{background-color:",c.ue.color.button.secondaryDisabled,";}")},p=(0,r.A)("button",{shouldForwardProp:e=>(0,n.A)(e)&&"as"!==e,target:"ea8oizz8"})("position:relative;cursor:pointer;display:inline-flex;box-sizing:border-box;transition:opacity ease 0.2s,color ease 0.2s,background-color ease 0.2s;border:0;flex-direction:row;justify-content:center;align-items:center;text-align:center;border-radius:",c.ue.radius.button,";",c.ue.typography.buttonText," color:",c.ue.color.text.primary,";svg{*[fill]{fill:",c.ue.color.text.primary,";}*[stroke]{stroke:",c.ue.color.text.primary,";}}&:disabled{cursor:not-allowed;color:",c.ue.color.text.disabled,";svg{*[fill]{fill:",c.ue.color.text.disabled,";}*[stroke]{stroke:",c.ue.color.text.disabled,";}}}padding:12px;",({variant:e})=>l[e],";"),m=(0,r.A)(s.y,{target:"ea8oizz7"})({name:"a4hmbt",styles:"position:absolute"}),u=(0,r.A)(c.PA,{target:"ea8oizz6"})({name:"rrel8y",styles:"width:24px;height:24px"}),g=(0,r.A)("span",{target:"ea8oizz5"})("display:flex;flex-direction:row-reverse;justify-content:center;align-items:center;column-gap:8px;opacity:",({isLoading:e})=>e?"0":"1",";"),h=(0,r.A)("div",{target:"ea8oizz4"})({name:"c7pe1g",styles:"display:inline-flex;margin:0;padding:0;box-sizing:border-box"}),y=(0,r.A)("span",{target:"ea8oizz3"})("&:only-child{padding-right:12px;padding-left:12px;}&:not(:only-child){padding-right:12px;}&:not(:empty)~",h,"{padding-left:12px;}&:empty{display:none;}"),f=a.keyframes` 146 from { 147 opacity: 0; 148 transform: translateY(5px); 149 } 150 to { 151 opacity: 1; 152 transform: translateY(0); 153 } 154`,b=(0,r.A)("span",{target:"ea8oizz2"})(),_=(0,r.A)(d.UC,{target:"ea8oizz1"})("z-index:",i.M.BUTTONS.TOOLTIP,";",c.ue.typography.textSecondaryEmphasis,";color:",c.ue.color.text.primaryDark,";border-radius:4px;padding:8px 10px;background-color:",c.ue.color.text.primary,";box-shadow:0px 8px 32px 0px rgba(0, 0, 0, 0.90) user-select:none;animation-duration:800ms;animation-timing-function:cubic-bezier(0.16, 1, 0.3, 1);will-change:transform,opacity;&[data-state='delayed-open']{animation-name:",f,";}"),v=(0,r.A)(d.i3,{target:"ea8oizz0"})("fill:",c.ue.color.remote.focus,";")},"./src/shared/components/ui/Button/Button.tsx"(e,t,o){"use strict";o.d(t,{$:()=>i});var r=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]__@types+react_888338b0bd9b8472c782c3e6db245c61/node_modules/@radix-ui/react-tooltip/dist/index.mjs"),n=o("./src/shared/components/ui/Button/Button.styles.ts"),a=o("../../../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=({icon:e,isLoading:t,...o})=>(0,a.FD)(n.OV,{"aria-disabled":o.disabled,...o,children:[t&&(0,a.Y)(n.xj,{size:24}),(0,a.FD)(n.xv,{isLoading:t??!1,children:[(0,a.Y)(n.$A,{children:o.children}),e&&(0,a.Y)(n.G3,{children:"function"==typeof e?e():(0,a.Y)(n.vE,{"aria-hidden":"true",name:e})})]})]}),i=({isLoading:e=!1,disabled:t=e,tooltipText:o,...i})=>o?(0,a.Y)(r.Kq,{children:(0,a.FD)(r.bL,{delayDuration:100,children:[(0,a.Y)(r.l9,{asChild:!0,children:(0,a.Y)(n.$2,{children:(0,a.Y)(s,{...i,disabled:t,isLoading:e})})}),(0,a.Y)(r.ZL,{children:(0,a.FD)(n.kg,{sideOffset:8,children:[o,(0,a.Y)(n.Kr,{})]})})]})}):(0,a.Y)(s,{...i,disabled:t,isLoading:e})},"./src/shared/components/ui/Button/index.ts"(e,t,o){"use strict";o.d(t,{$:()=>r.$});var r=o("./src/shared/components/ui/Button/Button.tsx")},"./src/shared/components/ui/Collapsible/Collapsible.tsx"(e,t,o){"use strict";o.d(t,{N:()=>p});var r=o("../../../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"),n=o("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs"),a=o("../../../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=(o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),o("../../../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"));var i={name:"6v2dj9",styles:"flex-direction:column-reverse"};const c=(0,r.A)("div",{target:"e17pimhj2"})("display:flex;flex-direction:column;",({reverse:e})=>e&&i,";"),d=(0,r.A)("button",{target:"e17pimhj1"})({name:"17bpoun",styles:"background:none;border:none;padding:0;margin:0;cursor:pointer"}),l=(0,r.A)(a.P.div,{target:"e17pimhj0"})({name:"d3v9zr",styles:"overflow:hidden"}),p=({className:e,containerId:t,content:o,contentId:r,header:a,isExpanded:i,onClick:p,onMoreHover:m,reverse:u=!1})=>{const g=t||"collapsible-container",h=r||"collapsible-content";return(0,s.FD)(c,{className:e,reverse:u,children:[(0,s.Y)(d,{"aria-controls":h,"aria-expanded":i,id:g,onClick:()=>p(!i),onMouseEnter:()=>{"ontouchstart"in window||m&&m()},children:a}),(0,s.Y)(n.N,{initial:!0,children:i&&(0,s.Y)(l,{animate:"open","aria-labelledby":g,exit:"close",id:h,initial:"close",role:"region",transition:{duration:.2,ease:"easeOut"},variants:{close:{height:0,opacity:0}
154,open:{height:"auto",opacity:1}},children:o})})]})}},"./src/shared/components/ui/FormErrorMessage/FormErrorMessage.tsx"(e,t,o){"use strict";o.d(t,{W:()=>c});var r=o("../../../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"),n=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js"),a=(o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),o("../../../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=(0,r.A)("div",{target:"enmh9bi1"})("display:flex;align-items:flex-start;",n.ue.typography.textPrimary," color:",n.ue.color.text.error,";"),i=(0,r.A)(n.PA,{target:"enmh9bi0"})("width:24px;height:24px;margin-right:8px;path{opacity:1;*[stroke]{fill:",n.ue.color.text.error,";}}"),c=({children:e,...t})=>(0,a.FD)(s,{...t,children:[(0,a.Y)(i,{"aria-hidden":"true",name:"Warning"}),e]})},"./src/shared/components/ui/FormErrorMessage/index.ts"(e,t,o){"use strict";o.d(t,{W:()=>r.W});var r=o("./src/shared/components/ui/FormErrorMessage/FormErrorMessage.tsx")},"./src/shared/components/ui/Input/Input.tsx"(e,t,o){"use strict";o.d(t,{Bd:()=>_,pd:()=>x,to:()=>m});var r=o("../../../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"),n=o("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),a=o("./src/shared/constants/zindex.ts"),s=o("./src/shared/utils/breakpoints/mq.ts"),i=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js"),c=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),d=o("../../../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=o("../../../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=(0,r.A)("div",{target:"euzx4yk7"})({name:"19agb82",styles:"position:relative;display:flex;flex-flow:row wrap"}),m=(0,r.A)("div",{target:"euzx4yk6"})("display:flex;flex:1 0 100%;height:54px;background:",i.ue.color.background.surface,";border:1px solid ",i.ue.color.border.backgroundSurface,";border-radius:6px;box-sizing:border-box;transition:border 0.2s ease-out;&:focus-within{border-color:",i.ue.color.text.primary,";}",s.mq.S` 155 height: 56px; 156 `,";"),u=(0,r.A)(i.PA,{target:"euzx4yk5"})("cursor:pointer;flex:0 0 24px;padding:14px;z-index:",a.M.INPUT_ICON,";height:24px;",({filled:e})=>e?(0,n.css)("path{fill:",i.ue.color.text.primary,";}"):void 0,";",s.mq.S` 157 padding: 16px; 158 `,";");var g={name:"1k4lyc2",styles:"opacity:0.5;cursor:not-allowed"},h={name:"jjyo93",styles:"padding-right:0"};const y=(0,r.A)("input",{target:"euzx4yk4"})("flex:0 1 auto;width:100%;padding:16px 12px;",i.ue.typography.textPrimary," color:",i.ue.color.text.primary,";appearance:none;outline:0;border:none;background-image:none;background-color:transparent;box-shadow:none;&::-ms-clear,&::-ms-reveal{display:none;}&&::-webkit-input-placeholder{",i.ue.typography.textPrimary," color:",i.ue.color.text.tertiary,";}&&::-moz-placeholder{",i.ue.typography.textPrimary," color:",i.ue.color.text.tertiary,";opacity:1;}&:-webkit-autofill,&:-webkit-autofill:hover,&:-webkit-autofill:focus{border:none;caret-color:",i.ue.color.text.primary,";-webkit-text-fill-color:",i.ue.color.text.primary,";transition:background-color 86400s ease-in-out 0s;}",({hasIcon:e})=>e&&h," ",({disabled:e})=>e&&g,";"),f=(0,r.A)("p",{target:"euzx4yk3"})(i.ue.typography.textSecondary,";margin:0;text-align:right;"),b=(0,r.A)("label",{target:"euzx4yk2"})(i.ue.typography.headingSubHeading,";color:",({disabled:e})=>e?i.ue.color.text.disabled:i.ue.color.text.primary,";width:100%;display:flex;margin:auto;"),_=(0,r.A)("div",{target:"euzx4yk1"})({name:"wfqbeu",styles:"display:flex;margin-bottom:8px;width:100%;justify-content:space-between"}),v=(0,r.A)("span",{target:"euzx4yk0"})({name:"1q22xft",styles:"overflow:hidden;height:0;width:0;position:absolute;
158left:-9999px"}),x=(0,c.forwardRef)(({autoFocus:e,characterCount:t,className:o,"data-testid":r,disabled:n,hasError:a,id:s,label:g,maxCharacterLength:h,maxLength:x,required:k,showEditIcon:w=!1,showPasswordIcon:E=!1,type:A,...S},P)=>{const[I,L]=(0,c.useState)(!1),O=()=>{L(!I)},{t:C}=(0,d.Bd)(),T=E?I?"text":"password":A,R=t===h;return(0,l.FD)(p,{className:o,children:[g&&(0,l.FD)(_,{children:[(0,l.Y)(b,{disabled:n,htmlFor:s,children:g}),void 0!==t&&h&&(0,l.FD)(f,{children:[t,"/",h,R&&(0,l.Y)(v,{"aria-live":"polite",role:"alert",children:C("ACCESSIBILITY_PROFILES_INPUT_MAX_CHARACTERS",{maxCharacters:h,numOfCharacters:0})})]})]}),(0,l.FD)(m,{children:[(0,l.Y)(y,{autoFocus:e,"data-testid":r,disabled:n,hasIcon:E,id:s,maxLength:x||h,ref:P,required:k,type:T,...S}),E&&(I?(0,l.Y)(u,{name:"Seen",onClick:O}):(0,l.Y)(u,{name:"Unseen",onClick:O})),w&&(0,l.Y)(u,{color:a?i.ue.color.text.error:i.ue.color.text.primary,name:"Edit",role:"none"})]})]})});x.displayName="Input"},"./src/shared/components/ui/Modal/Modal.styles.ts"(e,t,o){"use strict";o.d(t,{$5:()=>x,K3:()=>b,Ob:()=>_,Xv:()=>k,d4:()=>h,lP:()=>v,xv:()=>f});var r=o("../../../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"),n=o("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),a=o("./src/shared/components/ui/Button/index.ts"),s=o("./src/shared/constants/zindex.ts"),i=o("./src/shared/utils/breakpoints/constants.ts"),c=o("./src/shared/utils/breakpoints/mq.ts"),d=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js"),l=o("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs"),p=o("./src/shared/components/ui/Modal/constants.ts");const m={[i.S.L]:80,[i.S.M]:40,[i.S.S]:16,[i.S.XL]:80},u=480,g=343,h=(0,r.A)("div",{target:"ee4fkdh6"})("position:relative;z-index:",s.M.MODAL,";display:flex;place-items:center;place-content:center;width:100%;height:100%;box-sizing:border-box;padding:0 ",m.S,"px;",c.mq.M` 159 padding: 0 ${m.M}px; 160 `," ",c.mq.L` 161 padding: 0 ${m.L}px; 162 `,";");var y={name:"efmgvr",styles:"white-space:pre-line;width:fit-content"};const f=(0,r.A)(l.P.div,{target:"ee4fkdh5"})("position:relative;pointer-events:auto;",({fitContent:e,isConfirmDialog:t})=>{if(t)return(0,n.css)("border-radius:8px;overflow:hidden;background-color:",d.ue.color.background.tertiary,";box-sizing:border-box;",e?y:(0,n.css)("width:100%;max-width:",g,"px;",c.mq.M` 163 max-width: ${u}px; 164 `,";"),";")},";"),b=(0,r.A)(a.$,{target:"ee4fkdh4"})("position:absolute;margin:0;right:",p.M,"px;top:",p.M,"px;"),_=(0,r.A)("h1",{target:"ee4fkdh3"})("color:",d.ue.color.text.primary,";text-align:left;padding:24px ",p.i+2*p.M,"px 0 24px;margin-bottom:8px;",c.mq.M` 165 margin-bottom: 16px; 166 `,";",d.ue.typography.headingSecondary,";"),v=(0,r.A)("div",{target:"ee4fkdh2"})("padding:0 24px;color:",d.ue.color.text.secondary,";margin-bottom:24px;"),x=(0,r.A)("div",{target:"ee4fkdh1"})("display:flex;justify-content:",({buttonsPlacement:e})=>e||"flex-end",";align-items:center;column-gap:16px;padding:0 24px 24px 24px;"),k=(0,r.A)("div",{target:"ee4fkdh0"})({name:"1ncq4tc",styles:"height:24px"})},"./src/shared/components/ui/Modal/Modal.tsx"(e,t,o){"use strict";o.d(t,{a:()=>w});var r=o("./src/core/analytics/tracker.ts"),n=o("./src/shared/components/ui/Button/index.ts"),a=o("./src/shared/hooks/useOnEscape.ts"),s=o("./src/shared/hooks/useOnOutsideClick.ts"),i=o("./src/shared/utils/isDefined.ts"),c=o("../../../node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]__@[email protected]._ce78ac614378806cf95aa75fb2ec3035/node_modules/focus-trap-react/dist/focus-trap-react.js"),d=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),l=o("../../../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"),p=o("./src/shared/components/ui/Modal/Modal.styles.ts"),m=o("../../../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"),u=o("./src/shared/constants/zindex.ts"),g=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js"),h=o("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs"),y=o("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs"),f=o("../../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-helmet/es/Helmet.js"),b=o("../../../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 _=({selector:e="body"})=>(0,b.Y)(f.m,{children:(0,b.Y)("style",{type:"text/css",children:`\n ${e} {\n overflow: hidden;\n }\n `})}),v=(0,m.A)("div",{target:"e14ztfau1"})("position:fixed;top:0;left:0;bottom:0;right:0;z-index:",u.M.WINDOW_OVERLAY,";overflow-y:scroll;"),x=(0,m.A)(h.P.div,{target:"e14ztfau0"})("position:fixed;top:0;left:0;bottom:0;right:0;z-index:",u.M.WINDOW_OVERLAY,";background:",g.ue.color.background.overlay60,";opacity:0;cursor:pointer;"),k=({animatePresence:e=!0,children:t,visible:o})=>{const r=o&&(0,b.FD)(v,{children:[(0,b.Y)(_,{}),(0,b.Y)(x,{animate:"visible",exit:"hidden",initial:"hidden",variants:{hidden:{opacity:0,transition:{duration:.3}},visible:{opacity:1,transition:{duration:.3}}}}),t]});return e?(0,b.Y)(y.N,{children:r}):(0,b.Y)(b.FK,{children:r})},w=({animatePresence:e,overlayEventTrackingData:t,visible:o,...n})=>((0,d.useEffect)(()=>{o&&r.F.trackOverlay(t)},[t.overlay_title,t.category,t.content_media_id,o]),(0,b.Y)(k,{animatePresence:e,visible:o,children:(0,b.Y)(E,{...n})})),E=({actions:e=[],actionsPlacement:t="flex-end",bounce:o=!1,children:r,className:m,closeOnClickOutside:u=!0,disableHeader:g,dismissable:h=!0,fitContent:y,header:f,isConfirmDialog:_=!0,onBounceEnd:v=()=>{},onHide:x,title:k})=>{const w=(0,d.useRef)(null),{t:E}
166=(0,l.Bd)();return(0,s.W)(w,u?x:void 0),(0,a.Y)(x,{ref:w}),(0,d.useEffect)(()=>{w.current?.contains(document.activeElement)||w.current?.focus()},[]),(0,b.Y)(c.FocusTrap,{focusTrapOptions:{allowOutsideClick:!0},children:(0,b.Y)(p.d4,{children:(0,b.FD)(p.xv,{animate:o?"bounce":"visible","aria-modal":"true",className:m,exit:"hidden",fitContent:y,initial:"hidden",isConfirmDialog:_,onAnimationComplete:o?v:void 0,ref:w,role:"dialog",tabIndex:0,variants:{bounce:{opacity:1,scale:1,transition:{damping:10,duration:.3,stiffness:100},x:[0,10,-10,10,0]},hidden:{opacity:0,scale:.95,transition:{duration:.2}},visible:{opacity:1,scale:1,transition:{duration:.2}}},children:[(0,i.O)(k)?(0,b.Y)(p.Ob,{children:k}):(0,i.O)(f)?f:h?(0,b.Y)(p.Ob,{children:(0,b.Y)(p.Xv,{})}):g?null:(0,b.Y)(p.Xv,{}),(0,b.Y)(p.lP,{children:r}),e.length>0&&(0,b.Y)(p.$5,{buttonsPlacement:t,children:e.map(({icon:e,label:t,variant:o,...r})=>(0,b.Y)(n.$,{icon:(0,i.O)(e)?e:void 0,variant:o||"primary",...r,children:t},t))}),h&&_&&(0,b.Y)(p.K3,{"aria-label":E("CLOSE"),icon:"Close",onClick:x,variant:"ghost"})]})})})}},"./src/shared/components/ui/Modal/constants.ts"(e,t,o){"use strict";o.d(t,{M:()=>r,i:()=>n});const r=8,n=48},"./src/shared/components/ui/Modal/index.ts"(e,t,o){"use strict";o.d(t,{ix:()=>r.i,Mn:()=>r.M,aF:()=>n.a,Zn:()=>p,k3:()=>m});var r=o("./src/shared/components/ui/Modal/constants.ts"),n=o("./src/shared/components/ui/Modal/Modal.tsx"),a=o("./src/shared/components/custom/Portal/index.ts"),s=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),i=o("../../../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 c=()=>{},d={closeModal:c,showModal:c},l=(0,s.createContext)(d),p=({children:e})=>
166{const[t,o]=(0,s.useState)(!1),[r,c]=(0,s.useState)(),d=(0,s.useCallback)(e=>{o(!0),c(e)},[]),p=(0,s.useCallback)(e=>{o(!1),c(void 0),e?.()},[]),m=(0,s.useMemo)(()=>({closeModal:p,showModal:d}),[d,p]);return(0,i.FD)(l.Provider,{value:m,children:[(0,i.Y)(a.Z,{children:(0,i.Y)(n.a,{...r,onHide:()=>{r?.dismissable&&p(r?.onClose)},overlayEventTrackingData:r?.overlayEventTrackingData||{overlay_title:r?.title||""},visible:t,children:r?.children})}),e]})},m=()=>(0,s.useContext)(l)},"./src/shared/components/ui/Navbar/index.ts"(e,t,o){"use strict";o.d(t,{l:()=>c,F:()=>ye});var r=o("./src/shared/utils/isDefined.ts"),n=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),a=o("../../../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"),s=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js"),i=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js");const c=32,d=(0,a.A)("span",{target:"e1ivz93i6"})("color:",i.ue.color.text.secondary,";",i.ue.typography.textSecondary,";"),l=(0,a.A)(i.PA,{target:"e1ivz93i5"})({name:"rrel8y",styles:"width:24px;height:24px"}),p=(0,a.A)("div",{target:"e1ivz93i4"})(({src:e})=>`background-image: url(${e})`,";background-size:100%;background-repeat:no-repeat;background-position:center center;width:100%;height:100%;"),m=(0,a.A)("div",{target:"e1ivz93i3"})("display:flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;height:",c,"px;width:",c,"px;"),u=(0,a.A)("span",{target:"e1ivz93i2"})("display:grid;grid-auto-flow:column;align-items:center;justify-content:flex-start;column-gap:8px;color:",i.ue.color.text.primary,";",i.ue.typography.buttonText,";"),g=(0,a.A)("li",{target:"e1ivz93i1"})({name:"9z4c9d",styles:"display:flex;flex-direction:column;padding:0;margin:0;list-style:none"}),h=(0,a.A)("button",{shouldForwardProp:s.A,target:"e1ivz93i0"})("box-sizing:border-box;border:0;display:flex;flex-direction:column;padding:12px 24px;background-color:",({active:e})=>e?i.ue.color.button.ghostPressed:"transparent",";transition:background-color 0.25s ease-in-out;cursor:pointer;&:hover{background-color:",i.ue.color.button.ghostHover,";}");var y=o("../../../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 f=({altText:e,avatarHref:t,children:o,iconName:a,subText:s,...i})=>{const c=(0,n.useId)();return(0,y.Y)(g,{children:(0,y.FD)(h,{...i,"aria-describedby":c,children:[(0,y.FD)(u,{children:[(0,r.O)(a)?(0,y.Y)(l,{name:a}):(0,r.O)(t)?(0,y.FD)(m,{children:[(0,y.Y)(p,{role:"none",src:t}),(0,y.Y)("span",{hidden:!0,id:c,children:e})]}):null,o]}),(0,r.O)(s)&&(0,y.Y)(d,{children:s})]})})};var b=o("./src/shared/hooks/useOnEscape.ts"),_=o("./src/shared/hooks/useOnOutsideClick.ts");var v=o("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs"),x=o("../../../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");const k=({variant:e})=>i.ue.color.background[e],w=(0,a.A)("div",{target:"e66wftp0"})("display:flex;flex-direction:column;background-color:",k,";padding:0;margin:0;");const E=(0,a.A)("button",{shouldForwardProp:s.A,target:"e1nq3quk3"})("display:grid;grid-auto-flow:column;column-gap:8px;align-items:center;background-color:transparent;border:0;padding:8px 16px;transition:background-color 0.25s ease-in-out;",i.ue.typography.navigationText," border-radius:",i.ue.radius.button,";color:",i.ue.color.text.primary,";cursor:pointer;&:focus{background-color:",i.ue.color.navigation.currentSecondary,";}&:hover{background-color:",i.ue.color.navigation.currentSecondary,";}"),A=(0,a.A)("span",{target:"e1nq3quk2"})({name:"exv149",styles:"max-width:112px;overflow:hidden;text-overflow:ellipsis"}),S=(0,a.A)(i.PA,{shouldForwardProp:e=>"isRotated"!==e,target:"e1nq3quk1"})("width:16px;height:16px;transition:rotate 0.2s linear;rotate:",({isRotated:e})=>e?180:0,"deg;"),P=(0,a.A)(i.PA,{target:"e1nq3quk0"})({name:"rrel8y",styles:"width:24px;height:24px"}),I=({avatarHref:e,buttonText:t,isOpen:o,onClick:r,variant:n="hamburger",...a})=>(0,y.FD)(E,{onClick:r,...a,children:["avatar"===n&&(0,y.FD)(y.FK,{children:[e?(0,y.Y)(m,{children:(0,y.Y)(p,{role:"none",src:e})}):null,(0,y.Y)(A,{"data-testid":"current-profile-name",children:t}),(0,y.Y)(S,{isRotated:o,name:"ChevronDown"})]}),"hamburger"===n&&(0,y.Y)(P,{name:"Menu"})]}),L={desktop:{hidden:{opacity:0}
166,visible:{opacity:1}},mobile:{hidden:{transition:{bounce:0},x:-300},visible:{transition:{bounce:0},x:0}}};var O=o("./src/shared/constants/zindex.ts"),C=o("./src/shared/utils/breakpoints/mq.ts"),T=o("../../../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 R=(0,a.A)("div",{target:"e1ajhksh4"})("position:relative;display:flex;flex-direction:column;place-items:",({alignMenu:e="left"})=>"left"===e?"flex-start":"flex-end",";");var j={name:"pt75uw",styles:"position:fixed;top:0;left:0"};const D=()=>j;var N={name:"14n62w1",styles:"position:absolute;top:100%"};const M=()=>N,F=({variant:e})=>"desktop"===e?M:D,Y=(0,a.A)(T.P.div,{target:"e1ajhksh3"})("z-index:",O.M.NAVBAR.DROPDOWN_MENU.MENU_CONTENT,";display:flex;width:",300,"px;box-shadow:0 2px 40px 0px ",i.ue.color.background.primary,";",F,";");var $={name:"141fr8o",styles:"position:relative;box-sizing:border-box;padding-top:24px;height:100vh;overflow-y:auto;display:flex;flex-flow:column;>:first-child{flex:1 1 auto;}>:last-child{flex:0 0 0%;padding-bottom:100px;}"};const q=({variant:e})=>"mobile"===e?$:"",z=(0,a.A)("div",{target:"e1ajhksh2"})("overflow:hidden;width:100%;background-color:",i.ue.color.background.tertiary,";white-space:nowrap;word-break:unset;",C.mq.L` 167 border-radius: 2px; 168 `," ",q,";"),B=(0,a.A)(T.P.div,{target:"e1ajhksh1"})("position:fixed;inset:0;z-index:",O.M.NAVBAR.DROPDOWN_MENU.CHILDREN_BACKDROP,";background-color:rgba(0, 0, 0, 0.6);"),U=(0,a.A)("span",{target:"e1ajhksh0"})({name:"dj6932",styles:"max-width:250px;overflow:hidden;text-overflow:ellipsis"});var V=o("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/dist/emotion-react.browser.esm.js");const G=({children:e,...t})=>(0,y.Y)(Y,{...t,children:(0,y.Y)(z,{variant:t.variant,children:e})});var H=o("./src/shared/hooks/useResizeObserver.ts"),W=o("./src/shared/hooks/useWindowSize.ts"),K=o("./src/shared/utils/breakpoints/constants.ts"),Z=o("./src/shared/utils/breakpoints/getBreakpoint.ts"),X=o("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/framer-motion/dist/es/value/use-scroll.mjs"),J=o("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/framer-motion/dist/es/value/use-transform.mjs"),Q=o("./src/auth/providers/AuthProvider.tsx"),ee=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/Config.js"),te=o("../../libs/core/dist/index.mjs");const oe=(0,a.A)("a",{target:"e1fxa92s1"})("display:block;height:24px;justify-self:center;",C.mq.S` 169 height: 32px; 170 `," ",C.mq.L` 171 margin-right: 32px; 172 `,";"),re=(0,a.A)(i.PA,{target:"e1fxa92s0"})("width:95.25px;height:24px;",C.mq.S` 173 width: 127px; // Value from Figma 174 height: 32px; 175 `,";"),ne={FI:"LogoHorizontalSe",NO:"LogoHorizontalNo",SE:"LogoHorizontalSe"}[te.x6],ae={center:"center",left:"flex-start",right:"flex-end"},se=(0,a.A)("div",{target:"e94u1x70"})("display:grid;flex:1 0 auto;justify-content:",({alignContent:e})=>ae[e],";grid-auto-flow:column;column-gap:8px;align-items:center;padding:0;"),ie=({variant:e="primary"})=>(0,V.css)(i.ue.typography.navigationTextEmphasis," background-color:","primary"===e?i.ue.color.navigation.currentPrimary:i.ue.color.navigation.currentSecondary,";color:","primary"===e?i.ue.color.text.primaryDark:i.ue.color.text.primary,";"),ce=({variant:e="primary"})=>(0,V.css)(i.ue.typography.navigationTextEmphasis," background-color:transparent;color:",i.ue.color.text.primary,";&:hover{background-color:","primary"===e?i.ue.color.navigation.currentPrimary:i.ue.color.navigation.currentSecondary,";color:","primary"===e?i.ue.color.text.primaryDark:i.ue.color.text.primary,";}"),de=(0,a.A)("a",{shouldForwardProp:s.A,target:"e1ai5kjx0"})("display:inline-block;box-sizing:border-box;border:0;padding:12px 16px;white-space:nowrap;text-decoration:none;border-radius:",i.ue.radius.navItem,";transition:background-color 0.3s ease,color 0.3s ease;",({active:e})=>e?ie:ce,";"),le=(0,a.A)("nav",{target:"e1djqhqf0"})("display:flex;padding-bottom:16px;",({disableGutter:e=!1})=>e&&(0,V.css)("padding-bottom:0;margin-left:-",me.S,"px;margin-right:-",me.S,"px;",C.mq.L` 176 margin-left: -${me.L}px; 177 margin-right: -${me.L}px; 178 `,";"),";"),pe={[K.S.L]:80,[K.S.M]:80,[K.S.S]:56,[K.S.XL]:80},me={[K.S.L]:32,[K.S.S]:16},ue=()=>(0,V.css)("position:relative;&::before{content:'';position:absolute;inset:0 0 auto 0;z-index:",O.M.NAVBAR.GRADIENT,";pointer-events:none;height:var(--gradient-height, 0px);opacity:calc(1 - var(--navbar-opacity, 1));}&::after{content:'';position:absolute;inset:0 0 auto 0;z-index:",O.M.NAVBAR.GRADIENT,";pointer-events:none;background-color:",i.ue.color.background.primary,";opacity:var(--navbar-opacity, 0);height:var(--navbar-height, 0px);}"),ge=(0,a.A)("nav",{target:"e1q87ph1"})("display:grid;grid-auto-flow:column;grid-template-columns:",({layout:e})=>"desktop"===e?"min-content":"repeat(3, 1fr)",";align-items:center;height:",pe.S,"px;",C.mq.M` 179 height: ${pe.M}px; 180 `," ",ue,";"),he=(0,a.A)(T.P.div,{target:"e1q87ph0"})("display:",({visible:e})=>e?"flex":"none",";flex-direction:column;>*{padding-left:",me.S,"px;padding-right:",me.S,"px;",C.mq.L` 181 padding-left: ${me.L}px; 182 padding-right: ${me.L}px; 183 `,";}"),ye={Brand:e=>{const{isLoggedIn:t}=(0,Q.Z)(),o=ee.Config.get("shared/services/host"),r=Object.assign({},e,{href:t?e.href:o});return(0,y.Y)(oe,{...r,children:(0,y.Y)(re,{name:ne})})},Column:se,Container:ge,DropdownMenu:({alignMenu:e,button:t,"data-testid":o,isOpen:r=!1,primaryItems:a,secondaryItems:s,setIsOpen:i=()=>{},variant:c})=>{const{t:d}=(0,x.Bd)(),l=(0,n.useRef)(null),p=(0,n.useCallback)(()=>{r&&i(!1)},[r,i]),m=(0,n.useCallback)(()=>{i(!r)},[r,i]);var u,g;return(0,_.W)(l,p),u=l,g=p,(0,n.useEffect)(()=>
183{if(!g)return;const e=e=>{"Tab"!==e.key||u.current?.contains(e.target)||g(e)};return document.addEventListener("keyup",e),()=>{document.removeEventListener("keyup",e)}},[u,g]),(0,b.Y)(p,{ref:l}),(0,y.FD)(R,{alignMenu:e,"data-testid":o,ref:l,children:[(0,y.Y)(I,{"aria-expanded":r,"aria-label":"mobile"===c?d("MENU"):d("MENU_PROFILES_AND_ACCOUNT",{profileName:t.buttonText}),isOpen:r,onClick:m,variant:"desktop"===c?"avatar":"hamburger",...t}),(0,y.Y)(v.N,{initial:!1,children:r&&(0,y.FD)(y.FK,{children:["mobile"===c&&(0,y.Y)(B,{animate:{opacity:1},exit:{opacity:0},initial:{opacity:0},onClick:p,onTouchStart:p},"menu-backdrop"),(0,y.FD)(G,{animate:"visible",exit:"hidden",initial:"hidden",variant:c,variants:L[c],children:[a.length>0&&(0,y.Y)(w,{as:"ul",role:"list",variant:"tertiary",children:a.map((e,t)=>(0,V.createElement)(f,{...e,"aria-label":"profiles"===e.id?`${d("ACCESSIBILITY_PROFILES_CHANGE_TO_PROFILE")} ${e.text}`:void 0,key:t},(0,y.Y)(U,{children:e.text})))}),s.length>0&&(0,y.Y)(w,{as:"ul",variant:"surfaceDark",children:s.map((e,t)=>(0,V.createElement)(f,{...e,"aria-label":"profiles"===e.id?`${d("ACCESSIBILITY_PROFILES_CHANGE_TO_PROFILE")} ${e.text}`:void 0,key:t},(0,y.Y)(U,{children:e.text})))})]},"menu-content")]})})]})},Link:de,SubRow:le,Wrapper:({children:e,lockOpacity:t=!1,solid:o=!1,visible:r=!0})=>{const{width:a}=(0,W.l)(),{scrollY:s}=(0,X.L)(),i=(0,n.useRef)(null),{height:c}=(0,H.w)({ref:i}
183),[d,l]=(0,n.useState)(),p=(0,n.useMemo)(()=>(0,Z._)(a),[a]),m=`${c??pe[p]}px`,u=(0,J.G)(s,[0,c??pe[p]],[o?1:d||0,d??1]);return(0,n.useLayoutEffect)(()=>(t&&l(u.get()),()=>{l(void 0)}),[t,u]),(0,y.Y)(he,{ref:i,style:{"--navbar-height":m,"--navbar-opacity":u},visible:r,children:e})}}},"./src/shared/components/ui/Snackbar/index.ts"(e,t,o){"use strict";o.d(t,{n:()=>r.n,k:()=>r.k});var r=o("./src/shared/components/ui/Snackbar/provider/SnackbarProvider.tsx")},"./src/shared/components/ui/Snackbar/provider/SnackbarProvider.tsx"(e,t,o){"use strict";o.d(t,{n:()=>P,k:()=>I});var r=o("../../../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"),n=o("./src/core/analytics/tracker.ts"),a=o("./src/shared/components/custom/Portal/Portal.tsx"),s=o("./src/shared/constants/zindex.ts"),i=o("./src/shared/utils/breakpoints/mq.ts"),c=o("./src/shared/utils/extractTextChild.ts"),d=o("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs"),l=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),p=o("../../../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"),m=o("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),u=o("./src/shared/components/ui/Spinner/index.ts"),g=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js"),h=o("../../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs"),y=o("../../../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 f=(0,r.A)(h.P.div,{target:"ewwv05v4"})("display:flex;width:100%;box-shadow:0px 2px 40px rgba(0, 0, 0, 0.5);min-height:44px;",i.mq.S` 184 min-height: 56px; 185 `,";"),b=(0,r.A)("div",{target:"ewwv05v3"})("flex-grow:1;display:flex;align-items:center;border-radius:4px;padding:12px 16px;",({tokens:e,variant:t})=>{if(e){const t=(0,g.ND)(e.textColor);return(0,m.css)("background-color:",(0,g.ND)(e.backgroundColor),";color:",t,";button{color:",t,";}")}switch(t){case"negative":case"networkUnavailable":return(0,m.css)("background-color:",g.ue.color.infoDialogue.errorBackgroundDefault,";color:",g.ue.color.text.primaryDark,";button{color:",g.ue.color.text.primaryDark,";}svg>path[stroke]{stroke:",g.ue.color.text.primaryDark,";}svg>path[fill]{fill:",g.ue.color.text.primaryDark,";}");case"neutral":return(0,m.css)("background-color:",g.ue.color.infoDialogue.neutralBackgroundDefault,";color:",g.ue.color.text.primary,";button{color:",g.ue.color.text.primary,";}");case"positive":return(0,m.css)("background-color:",g.ue.color.infoDialogue.successBackgroundDefault,";color:",g.ue.color.text.primaryDark,";button{color:",g.ue.color.text.primaryDark,";}svg>path[stroke]{stroke:",g.ue.color.text.primaryDark,";}svg>path[fill]{fill:",g.ue.color.text.primaryDark,";}")}},";"),_=(0,r.A)(g.PA,{target:"ewwv05v2"})("align-self:flex-start;width:20px;height:20px;margin-top:2px;margin-right:12px;flex-shrink:0;",i.mq.M` 186 margin-top: 0; 187 width: 32px; 188 height: 32px; 189 margin-right: 16px; 190 align-self: center; 191 `," svg{width:100%;height:100%;}"),v=(0,r.A)("button",{target:"ewwv05v1"})("margin-top:2px;align-self:flex-start;border:0;background-color:transparent;flex-shrink:0;cursor:pointer;",g.ue.typography.textLink," ",i.mq.M` 192 margin-top: 0; 193 align-self: center; 194 `,";"),x=(0,r.A)("div",{target:"ewwv05v0"})("flex-grow:1;margin-right:16px;",g.ue.typography.textPrimary,";"),k={hidden:{opacity:0,transition:{duration:.1,ease:"easeIn"},y:10},negative:{opacity:1,transition:{bounce:.6,duration:.45,ease:"easeOut",type:"spring"},y:0},visible:{opacity:1,transition:{bounce:.4,duration:.65,ease:"easeOut",type:"spring"},y:0}},w={negative:"Warning",networkUnavailable:"NetworkUnavailable",neutral:"Info",positive:"Check"},E=({actionButtonText:e,children:t,onClickActionButton:o,showSpinner:r,tokens:n,variant:a})=>{const s=a?w[a]:null;return(0,y.Y)(f,{animate:"negative"===a?"negative":"visible",exit:"hidden",initial:"hidden",layout:!0,variants:k,children:(0,y.FD)(b,{tokens:n,variant:a,children:[s&&(0,y.Y)(_,{name:s}),(0,y.Y)(x,{children:t}),o&&e&&(0,y.Y)(v,{onClick:o,children:e}),r&&(0,y.Y)(u.y,{size:30})]})})},A=(0,r.A)("div",{target:"e1ap74nz0"})("position:fixed;z-index:",s.M.SNACKBAR_WRAPPER,";width:calc(100% - 32px);max-width:342px;bottom:24px;left:50%;transform:translateX(-50%);",i.mq.M` 195 max-width: 632px; 196 bottom: 36px; 197 `,">*{margin-top:16px;}"),S=(0,l.createContext)({addSnackbar:()=>{throw new Error("SnackbarContext not initialized")}}),P=({children:e})=>{const{t:t}=(0,p.Bd)(),[o,r]=(0,l.useState)([]),s=(0,l.useCallback)(e=>{r(t=>t.filter(t=>t!==e))},[]),i=(0,l.useCallback)(e=>{const{actionButtonText:o,autoDismiss:a=!0,content:i,dismissOnActionClick:d,onClickActionButton:l,...p}=e,m={actionButtonText:d&&!o?t("CLOSE"):o,children:i,onClickActionButton:d?e=>{l?.(e),s(m)}:l,...p},u=(0,c.b)(m.children);let g;return m&&("negative"===m.variant||"networkUnavailable"===m.variant)&&u&&n.F.trackUserDistraction({distraction_style:"toast",message_body:u,message_title:u}),r(e=>(a&&(g=setTimeout(()=>s(m),5e3)),[...e,m])),{removeSnackbar:()=>{g&&clearTimeout(g),s(m)}}},[s,t]);return(0,y.FD)(S.Provider,{value:{addSnackbar:i},children:[(0,y.Y)(a.Z,{children:(0,y.Y)(A,{children:(0,y.Y)(d.N,{children:o.map((e,t)=>(0,y.Y)(E,{...e},t))})})}),e]})},I=()=>(0,l.useContext)(S)},"./src/shared/components/ui/Spinner/index.ts"(e,t,o){"use strict";o.d(t,{y:()=>l});var r=o("../../../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"),n=o("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),a=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js"),s=o("../../../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=n.keyframes` 198 from { 199 transform:rotate(0deg); 200 } 201 to { 202 transform:rotate(360deg); 203 } 204`,c=(0,r.A)("div",{target:"e1sugfld1"})("pointer-events:none;animation:",i," 2s linear infinite;transform-origin:center;display:flex;align-items:center;justify-content:center;svg{width:100%;height:auto;}width:",({size:e})=>e,"px;"),d=(0,r.A)(a.PA,{target:"e1sugfld0"})("color:",a.ue.color.text.primary,";"),l=({size:e,...t})=>(0,s.Y)(c,{size:e,...t,children:(0,s.Y)(d,{name:"Spinner"})})},"./src/shared/components/ui/Switch/Switch.tsx"(e,t,o){"use strict";o.d(t,{d:()=>m});var r=o("../../../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"),n=o("./src/shared/utils/platform/isHandheldDevice.ts"),a=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js"),s=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]__@types+react@_61e34d9144263e35e1d39403a885cdb3/node_modules/@radix-ui/react-switch/dist/index.mjs");const i=(0,r.A)("div",{target:"eabj9ua3"})({name:"8irbms",styles:"display:inline-flex;align-items:center"}),c=(0,r.A)("label",{target:"eabj9ua2"})("margin-right:12px;",a.ue.typography.textSecondary,";"),d=(0,r.A)(s.bL,{target:"eabj9ua1"})("border:none;position:relative;width:52px;height:32px;border-radius:84px;background-color:",a.ue.color.text.tertiary,";transition:background-color 200ms;will-change:background-color;&[data-state='checked']{background-color:",a.ue.color.accent.brand,";}&[data-disabled]{background-color:rgba(255, 255, 255, 0.2);}"),l=(0,r.A)(s.zi,{target:"eabj9ua0"})("display:block;width:26px;height:26px;background-color:",a.ue.color.text.primary,";border-radius:9999px;transform:translateX(",n.p?"-13px":"-3px",");will-change:transform;transition:transform 200ms;&[data-state='checked']{transform:translateX(",n.p?"6px":"16px",");}&[data-disabled]{background-color:rgba(255, 255, 255, 0.4);}");var p=o("../../../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 m=({descriptionId:e,disabled:t,id:o,label:r,name:n,onValueChange:a,value:s,...m})=>(0,p.FD)(i,{...m,children:[r&&(0,p.Y)(c,{htmlFor:o,children:r}),(0,p.Y)(d,{"aria-describedby":e,"aria-label":n,checked:s,disabled:t,id:o,name:n,onCheckedChange:()=>{if(!t){a(!s)}},children:(0,p.Y)(l,{})})]})},"./src/shared/components/ui/Switch/index.ts"(e,t,o){"use strict";o.d(t,{d:()=>r.d});var r=o("./src/shared/components/ui/Switch/Switch.tsx")},"./src/shared/constants/zindex.ts"(e,t,o){"use strict";o.d(t,{M:()=>r});const r={BANNERS:1,BILLBOARD:{BACKDROP:0,IMAGE_CONTAINER:0},BUTTONS:{TOOLTIP:50},CAROUSEL:{CURRENT_ITEM:1,HIDDEN_ITEM:0},CC_PLAYER:1,CDP:{CHILDREN:1,MODAL_BACKDROP:10,MODAL_CLOSE_BUTTON:10,MODAL_CONTAINER:11,MODAL_CONTENT:100,PROVIDER_LOGO:1},DEV_INFO:9999,DROP_DOWN:1,EMPTY_RECORDING_BANNERS:1,ENV_SELECTOR:2,EPG:{ALL_CHANNELS_BUTTON:1,CHANNEL_HEADER_CONTAINER:2,CHANNEL_HEADER_SKIP_LINK:2,CHANNEL_PICKER:2,CHANNEL_PICKER_NAV_BUTTONS:1,NAVBAR:2,PROGRAM:0,SKIP_LINK:1},FEATURE_CARD_BLURHASH_WRAPPER:0,IMI_CHAT:99999,INPUT_ICON:1,MEATBALLS:1,MODAL:101,NAVBAR:{DROPDOWN_MENU:{CHILDREN_BACKDROP:1,MENU_CONTENT:3},GRADIENT:-1},NAVBAR_PROVIDER:4,NEXTPREV_BUTTON:1,POSTER:{ACTIONS:1,BLURHASH:{COVER:1,WRAPPER:-1},METADATA:1},PROFILES:{DISABLED_PROFILE_BUTTON:1,PROFILE_PIC:1,PROFILE_PIC_HIGHLIGHT:-1},PUZZLE_CHAT:9999,QUOTA:1,SHOWCASE_LINK:0,SNACKBAR_WRAPPER:101,TOOLTIP:10,TUTORIAL:9001,WATCH_VIEW:1,WINDOW_OVERLAY:100}},"./src/shared/errors/InvalidInputError.ts"(e,t,o){"use strict";o.d(t,{o:()=>r});
204class r extends Error{constructor(e,t){super(`[${e}]: ${t}`),this.name="InvalidInputError"}}},"./src/shared/errors/NotFoundError.ts"(e,t,o){"use strict";o.d(t,{m:()=>r});class r extends Error{constructor(e){super(e),this.name="NotFoundError"}}},"./src/shared/hooks/useAccountInfo.ts"(e,t,o){"use strict";o.d(t,{T:()=>s});var r=o("./src/auth/providers/AuthProvider.tsx"),n=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@telia-company/tv.common-sdk-authentication/dist/Account.js"),a=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js");const s=()=>{const{isLoggedIn:e}=(0,r.Z)(),[t,o]=(0,a.useState)();return(0,a.useEffect)(()=>{(async()=>{if(e){const e=n.Account.instance();o(await e.getAccountInformation())}else o(void 0)})()},[e]),t}},"./src/shared/hooks/useCallbackAt.ts"(e,t,o){"use strict";o.d(t,{s:()=>n});var r=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js");const n=(e,t)=>{const o=(0,r.useRef)(null);(({documentHiddenHandler:e,documentVisibleHandler:t})=>{(0,r.useEffect)(()=>{const o=()=>{"hidden"===document.visibilityState?e():t()};return document.addEventListener("visibilitychange",o),()=>{document.removeEventListener("visibilitychange",o)}},[e,t])})({documentHiddenHandler:()=>{o.current&&(clearTimeout(o.current),o.current=null)},documentVisibleHandler:()=>{const r=Date.now();if(e&&t)if(r>=e)t();else{const r=e-Date.now();o.current=setTimeout(t,r)}}}),(0,r.useEffect)(()=>{if(e&&t){const r=Math.min(2147483647,e-Date.now());o.current=setTimeout(t,r)}return()=>{o.current&&clearTimeout(o.current),o.current=null}},[t,e])}},"./src/shared/hooks/useIsGeoblocked.ts"(e,t,o){"use strict";o.d(t,{p:()=>i});var r=o("../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_react-_23af7fe1a84405345a895683eefe299d/node_modules/@apollo/client/cache/inmemory/reactiveVars.js"),n=o("../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_react-_23af7fe1a84405345a895683eefe299d/node_modules/@apollo/client/react/hooks/useReactiveVar.js"),a=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@telia-company/tv.common-sdk-authentication/dist/Authentication.js");const s=(0,r.UT)(!1);a.Authentication.statics?.events.session.on(({sessionInfo:e})=>{s(e.geoblock)});const i=()=>(0,n.q)(s)},"./src/shared/hooks/useIsTooManyDevicesRegistered.ts"(e,t,o){"use strict";o.d(t,{_:()=>c});var r=o("./src/auth/providers/AuthProvider.tsx"),n=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@telia-company/tv.common-sdk-authentication/dist/Authentication.js"),a=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@telia-company/tv.common-sdk-authentication/dist/ErrorTypes.js"),s=o("../../libs/error-monitoring/dist/index.mjs"),i=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js");const c=()=>{const[e,t]=(0,i.useState)(!1),{isLoggedIn:o}=(0,r.Z)();return(0,i.useEffect)(()=>{o&&(async()=>{try{const e=n.Authentication.instance();await e.registerDevice()}catch(e){if(e instanceof a.RegisterDeviceTooManyDevicesError)t(!0);else{let t="Error in registerDevice";e instanceof Error&&(t=`Error ${e.name} in registerDevice: ${e.message}`),(0,s.vV)(new Error(t,{cause:e}),{context:"useRegisterDevice"})}}})()},[o]),e}},"./src/shared/hooks/useLockRootElement.ts"(e,t,o){"use strict";o.d(t,{X:()=>i});var r=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js");const n="root",a=()=>{const e=document.getElementById(n);if(!e)return;const t=document.body,o=e.getBoundingClientRect(),r=e.style.position,a=e.style.top,s=e.style.width;return{bodyElement:t,initialBodyOverflowY:t.style.overflowY,initialRootPosition:r,initialRootRectY:o.y,initialRootTop:a,initialRootWidth:s,lockApplied:!1,rootElement:e}},s=()=>{const e=document.getElementById(n);return!!e&&"fixed"===e.style.position},i=e=>{const t=(0,r.useRef)(a()),o=(0,r.useRef)(0),[i,c]=(0,r.useState)(s()),d=(0,r.useCallback)(()=>
204{if(t.current=a(),!t.current)return;const{bodyElement:e,initialRootRectY:r,rootElement:n}=t.current;t.current.lockApplied=!0,Object.assign(e.style,{overflowY:"scroll"}),Object.assign(n.style,{position:"fixed",top:r-n.offsetTop+"px",width:"100%"}),c(!0),o.current=n.offsetTop},[]),l=(0,r.useCallback)(()=>{if(!t.current)return;if(!t.current.lockApplied)return;const{bodyElement:e,initialBodyOverflowY:r,initialRootTop:n,initialRootWidth:a,rootElement:s}=t.current;Object.assign(e.style,{overflowY:r}),Object.assign(s.style,{position:"static",top:n,width:a}),t.current.lockApplied=!1,c(!1),requestAnimationFrame(()=>{window.scrollTo({behavior:"instant",top:Math.abs(o.current)})})},[]);return(0,r.useLayoutEffect)(()=>{if(!e?.skipOnMount)return d(),()=>{l()}},[e?.skipOnMount,d,l]),(0,r.useLayoutEffect)(()=>{const e=document.getElementById(n);if(!e)return;if(!window.MutationObserver)return;const t=new MutationObserver(()=>c(s()));return t.observe(e,{attributeFilter:["style"],attributes:!0}),()=>{t.disconnect()}},[]),{locked:i,lockRootElement:d,unlockRootElement:l}}},"./src/shared/hooks/useMainMenuItems.ts"(e,t,o){"use strict";o.d(t,{w:()=>u});var r=o("../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_react-_23af7fe1a84405345a895683eefe299d/node_modules/@apollo/client/react/hooks/useQuery.js"),n=o("./src/codegen/graphql.ts"),a=o("./src/page/routes.tsx"),s=o("./src/page/utils/getLinkUrl.ts"),i=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@telia-company/tv.common-sdk-authentication/dist/Authentication.js"),c=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/Config.js"),d=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),l=o("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-62JRHF6Z.mjs"),p=o("./src/shared/utils/getSelectionMenuUrl.ts");const m=({link3:e,name:t})=>{let o;return o="/point-selection"===e.to?(0,p.T)({}):e.to===c.Config.get("page/home/id")?a.q.HOME:"LinkPage"===e.__typename?(0,l.tW)(a.q.PAGE,{pageId:e.to}):(0,s.Q)(e),{group:"primary",href:o,id:e.to,text:t||e.to}},u=()=>{const{data:e,refetch:t}=(0,r.I)(n.ek5,{fetchPolicy:"network-only"});return(0,d.useEffect)(()=>{const e=i.Authentication.statics.events.authentication.on(()=>{t()});return()=>{i.Authentication.statics.events.authentication.off(e)}},[t]),e?.mainMenu?.items.map(m)||[]}},"./src/shared/hooks/useOnAppInteraction.ts"(e,t,o){"use strict";o.d(t,{a:()=>n});var r=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js");const n=({callback:e,skip:t,waitFor:o})=>{const n=(0,r.useRef)(Date.now());(0,r.useEffect)(()=>{if(t)return;const r=()=>{const t=Date.now();t>n.current+o&&(e(),n.current=t)};r();const a=["ontouchstart"in window?"touchstart":"mousedown","keydown","focus"];return a.forEach(e=>{document.addEventListener(e,r)}),()=>{a.forEach(e=>{document.removeEventListener(e,r)})}},[e,t,o])}},"./src/shared/hooks/useOnEscape.ts"(e,t,o){"use strict";o.d(t,{Y:()=>n});var r=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js");const n=(e,{ref:t,skip:o})=>{(0,r.useEffect)(()=>{const r="current"in t?t.current:t;if(!r||o)return;const n=t=>{"key"in t&&"Escape"===t.key&&e(t)};return r.addEventListener("keydown",n),()=>{r.removeEventListener("keydown",n)}},[e,o,t])}},"./src/shared/hooks/useOnOutsideClick.ts"(e,t,o){"use strict";o.d(t,{W:()=>n});var r=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js");const n=(e,t)=>{(0,r.useEffect)(()=>{if(!t)return;const o=o=>{e.current?.contains(o.target)||t(o)},r="ontouchstart"in window?"touchstart":"mousedown";return document.addEventListener(r,o),()=>{document.removeEventListener(r,o)}},[e,t])}},"./src/shared/hooks/usePrevious.ts"(e,t,o){"use strict";o.d(t,{Z:()=>n});var r=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js");const n=e=>{const t=(0,r.useRef)(void 0);return(0,r.useEffect)(()=>{t.current=e},[e]),t.current}},"./src/shared/hooks/useResizeObserver.ts"(e,t,o){"use strict";o.d(t,{w:()=>n});var r=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js");const n=({onResize:e,ref:t})=>{const[o,n]=(0,r.useState)({}),a=(0,r.useRef)(e);return(0,r.useEffect)(()=>{a.current=e},[e]),(0,r.useEffect)(()=>{const e=t&&"current"in t?t.current:t;if(!e)return;let o,r;const s=new ResizeObserver(([e])=>{const t=e.contentRect.height,s=e.contentRect.width;t===o&&s===r||(o=t,r=s,n({height:t,width:s}),a.current?.({height:t,width:s}))});return s.observe(e),()=>s.disconnect()},[t]),o}},"./src/shared/hooks/useResizeObserverWithRAF.tsx"(e,t,o){"use strict";o.d(t,{v:()=>a});var r=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),n=o("./src/shared/hooks/useResizeObserver.ts");const a=e=>{const t=(0,r.useRef)(void 0),o=(0,r.useRef)(void 0),[a,s]=(0,r.useState)({height:void 0,width:void 0});return(0,n.w)({onResize:e=>{o.current&&(t.current&&(cancelAnimationFrame(t.current),t.current=void 0),t.current=requestAnimationFrame(()=>s(e)))},ref:e}),(0,r.useEffect)(()=>(o.current=!0,()=>{o.current=!1,t.current&&(cancelAnimationFrame(t.current),t.current=void 0)}),[]),a}},"./src/shared/hooks/useRunIfPathChanges.ts"(e,t,o){"use strict";o.d(t,{M:()=>a});var r=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),n=o("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-62JRHF6Z.mjs");const a=e=>{const{pathname:t}=(0,n.zy)(),o=(0,r.useRef)(t).current;(0,r.useEffect)(()=>{t!==o&&e()},[t,o,e])}},"./src/shared/hooks/useWindowSize.ts"(e,t,o){"use strict";o.d(t,{i:()=>i,l:()=>c});var r=o("../../../node_modules/.pnpm/[email protected]/node_modules/lodash.debounce/index.js"),n=o.n(r),a=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js");const s="object"==typeof window,i=()=>({height:s?window.innerHeight:-1,width:s?window.innerWidth:-1}),c=()=>{const[e,t]=(0,a.useState)(i);return(0,a.useEffect)(()=>
204{if(!s)return()=>({height:-1,width:-1});const e=n()(()=>{t(i())},100);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}},"./src/shared/utils/breakpoints/constants.ts"(e,t,o){"use strict";o.d(t,{S:()=>r,f:()=>n});let r=function(e){return e.L="L",e.M="M",e.S="S",e.XL="XL",e}({});const n={L:1025,M:769,S:480,XL:1440}},"./src/shared/utils/breakpoints/getBreakpoint.ts"(e,t,o){"use strict";o.d(t,{_:()=>n});var r=o("./src/shared/utils/breakpoints/constants.ts");const n=e=>e>=r.f.XL?r.S.XL:e>=r.f.L?r.S.L:e>=r.f.M?r.S.M:r.S.S},"./src/shared/utils/breakpoints/mq.ts"(e,t,o){"use strict";o.d(t,{mq:()=>a});var r=o("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),n=o("./src/shared/utils/breakpoints/constants.ts");const a=Object.keys(n.f).reduce((e,t)=>(e[t]=(...e)=>(0,r.css)("@media (min-width: ",n.f[t],"px){",(0,r.css)(e[0],...e.slice(1)),";}"),e),{})},"./src/shared/utils/extractTextChild.ts"(e,t,o){"use strict";o.d(t,{b:()=>n});var r=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js");const n=e=>{if("string"==typeof e)return e;if("number"==typeof e)return String(e);if(r.isValidElement(e))for(const t of r.Children.toArray(e.props.children)){const e=n(t);if(void 0!==e)return e}}},"./src/shared/utils/getRefetchQueries.ts"(e,t,o){"use strict";o.d(t,{O:()=>i});var r=o("./src/codegen/graphql.ts"),n=o("./src/core/apollo/client.ts"),a=o("./src/page/components/Panels/ChannelsPanel/ChannelsPanel.constants.ts"),s=o("./src/shared/utils/isDefined.ts");const i=({filterInput:e,refreshEvent:t,regionalChannelsSelection:o})=>{const i=n.S.cache.extract();return Object.entries(i).filter(([e,o])=>{if(o&&o.refreshEvents){return o.refreshEvents.find(e=>e===t)}}).map(([t,n])=>{if(n&&"string"==typeof n.id)switch(n.__typename){case"ChannelsPanelX":return{fetchPolicy:"network-only",query:r.qXK,variables:{id:n.id,numberOfPrograms:a.n,regionalChannelsSelection:o,timestamp:Date.now()}};case"QuotaInformationMiniBlock":return{fetchPolicy:"network-only",query:r._AN,variables:{id:n.id}};default:{const t=n,o=t?.posters?.[t?.id]?.items?.length;return{fetchPolicy:"network-only",query:r.IAo,variables:{id:n.id,...o&&{panelContentLimit:o,panelContentOffset:0},filterInput:e}}}}}).filter(s.O)}},"./src/shared/utils/getSearchParams.ts"(e,t,o){"use strict";o.d(t,{j:()=>a});var r=o("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-62JRHF6Z.mjs"),n=o("./src/shared/utils/isDefined.ts");const a=e=>{e=Object.entries(e).reduce((e,[t,o])=>(0,n.O)(o)&&o?{...e,[t]:o.toString()}:e,{});const t=(0,r.PI)(e).toString();return t.length?`?${t}`:""}},"./src/shared/utils/getSelectionMenuUrl.ts"(e,t,o){"use strict";o.d(t,{T:()=>n});var r=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/Config.js");const n=({packageId:e})=>{const t=`${r.Config.get("shared/services/account/host")}/subscription/selection-menu`;return e?`${t}?packageId=${encodeURIComponent(e)}`:t}},"./src/shared/utils/image/constants.ts"(e,t,o){"use strict";o.d(t,{$:()=>r});const r=[1,1.5,2]},"./src/shared/utils/image/getImageProxyUrl.ts"(e,t,o){"use strict";o.d(t,{x:()=>n});var r=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/Config.js");const n=({fit:e,height:t,scale:o,uri:n,width:a})=>{const s="crop"===e?"cut":"nocut",i=(e=>{let t=1;return e?t=e:"undefined"!=typeof window&&"devicePixelRatio"in window&&(t=window.devicePixelRatio),t>=2?2:t>1?1.5:1})(o),c=`?resize=${Math.ceil(a*i)}x${Math.ceil(t*i)}&shape=${s}`,d=r.Config.get("shared/imageProxy/url");return d?`${d}${c}&source=${n}`:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdjYJj5/z8ABM0CmNBFhzgAAAAASUVORK5CYII="}},"./src/shared/utils/image/getImageSources.ts"(e,t,o){"use strict";o.d(t,{C:()=>a});var r=o("./src/shared/utils/image/constants.ts"),n=o("./src/shared/utils/image/getImageUrl.ts");
204const a=({fit:e,height:t,uri:o,width:a})=>({src:(0,n.V)({fit:e,height:t,scale:1,uri:o,width:a}),srcSet:r.$.map(r=>`${(0,n.V)({fit:e,height:t,scale:r,uri:o,width:a})} ${r}x`).join(", ")})},"./src/shared/utils/image/getImageUrl.ts"(e,t,o){"use strict";o.d(t,{V:()=>n});var r=o("./src/shared/utils/image/getImageProxyUrl.ts");const n=e=>(e.fit=e.fit||"resize",(0,r.x)(e))},"./src/shared/utils/isDefined.ts"(e,t,o){"use strict";o.d(t,{O:()=>r});const r=e=>null!=e},"./src/shared/utils/isExternalLink.ts"(e,t,o){"use strict";o.d(t,{i:()=>n});const r=/^[A-Za-z]+:/,n=e=>r.test(e)},"./src/shared/utils/platform/browser.ts"(e,t,o){"use strict";o.d(t,{T:()=>n});var r=o("../../../node_modules/.pnpm/[email protected]/node_modules/bowser/es5.js");const n=o.n(r)().getParser(window?.navigator.userAgent)},"./src/shared/utils/platform/isHandheldDevice.ts"(e,t,o){"use strict";o.d(t,{p:()=>a});var r=o("./src/shared/utils/platform/isMobileType.ts"),n=o("./src/shared/utils/platform/browser.ts");const a=(()=>{const{platform:e}=n.T.getResult();return"tablet"===e.type||!!(()=>{const{os:e}=n.T.getResult();if("macOS"===e.name&&"ontouchend"in document)return!0})()})()||(0,r.H)()},"./src/shared/utils/platform/isMobileSafari.ts"(e,t,o){"use strict";o.d(t,{H:()=>r});const r=o("./src/shared/utils/platform/browser.ts").T.satisfies({mobile:{safari:">=1"},tablet:{safari:">=1"}})},"./src/shared/utils/platform/isMobileType.ts"(e,t,o){"use strict";o.d(t,{H:()=>n});var r=o("./src/shared/utils/platform/browser.ts");const n=()=>{const{platform:e}=r.T.getResult();return"mobile"===e.type}},"./src/shared/utils/preloadBackdropImages.ts"(e,t,o){"use strict";o.d(t,{u:()=>s});var r=o("./src/shared/images/fallback-backdrop-landscape.png");const n=o.p+"oneweb/images/fallback-backdrop-small-landscape-b11577fe.png?v=1.208.1";var a=o("./src/shared/utils/image/getImageSources.ts");const s=e=>{const{src:t,srcSet:o}=(e=>{let t,o,s=r,i=`${n} 512w, ${r} 768w`;return"MovieImages"!==e.__typename&&"SeriesImages"!==e.__typename&&"EpisodeImages"!==e.__typename&&"SportEventImages"!==e.__typename||(o=e.backdrop16x9,t=o?.colors?.muteBgColor?.hex),"ShowcaseImages"===e.__typename&&(o=e.showcase16x9),o?.source&&({src:s,srcSet:i}=(0,a.C)({height:960,uri:o.source,width:1440})),{backgroundColor:t,src:s,srcSet:i}})(e),s=new Image;s.src=t,s.srcset=o}},"./src/shared/utils/webStorage/getLocalStorage.ts"(e,t,o){"use strict";o.d(t,{L:()=>n});var r=o("./src/shared/utils/webStorage/getStorage.ts");const n=(e,t)=>(0,r.c)(e,t,"localStorage")},"./src/shared/utils/webStorage/getSessionStorage.ts"(e,t,o){"use strict";o.d(t,{W:()=>n});var r=o("./src/shared/utils/webStorage/getStorage.ts");const n=(e,t)=>(0,r.c)(e,t,"sessionStorage")},"./src/shared/utils/webStorage/getStorage.ts"(e,t,o){"use strict";o.d(t,{c:()=>n});var r=o("./src/shared/utils/webStorage/hasStorage.ts");const n=(e,t,o)=>{if(!(0,r.u)(o))return t;try{const r=window[o].getItem(e);return null===r?t:"number"==typeof t?Number(r):"object"==typeof t||"boolean"==typeof t?JSON.parse(r):"string"==typeof t?r:t}catch{return t}}},"./src/shared/utils/webStorage/hasStorage.ts"(e,t,o){"use strict";o.d(t,{u:()=>r});const r=e=>"object"==typeof window&&e in window},"./src/shared/utils/webStorage/setLocalStorage.ts"(e,t,o){"use strict";o.d(t,{Z:()=>n});var r=o("./src/shared/utils/webStorage/setStorage.ts");const n=(e,t,o)=>{(0,r.c)(e,t,"localStorage"),o&&window.dispatchEvent(new CustomEvent(o))}},"./src/shared/utils/webStorage/setSessionStorage.ts"(e,t,o){"use strict";o.d(t,{y:()=>n});var r=o("./src/shared/utils/webStorage/setStorage.ts");const n=(e,t)=>{(0,r.c)(e,t,"sessionStorage")}},"./src/shared/utils/webStorage/setStorage.ts"(e,t,o){"use strict";o.d(t,{c:()=>n});var r=o("./src/shared/utils/webStorage/hasStorage.ts");const n=(e,t,o)=>{if(!(0,r.u)(o))return;let n="";"number"==typeof t?n=t.toString():"object"==typeof t||"boolean"==typeof t?n=JSON.stringify(t):"string"==typeof t&&(n=t),window[o].setItem(e,n)}},"./src/subscription/routes.tsx"(e,t,o){"use strict";o.d(t,{L:()=>p,c:()=>d});var r=o("./src/core/router/constants.ts"),n=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/Config.js"),a=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),s=o("../../../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,a.lazy)(()=>Promise.all([o.e(249),o.e(96),o.e(427)]).then(o.bind(o,"./src/subscription/views/CheckoutMediaConfirmSubscriptionView/CheckoutMediaConfirmSubscriptionView.tsx"))),c=(0,a.lazy)(()=>Promise.all([o.e(249),o.e(644),o.e(96),o.e(47),o.e(954),o.e(670),o.e(751)]).then(o.bind(o,"./src/subscription/views/CheckoutMediaSub
204scriptionListView.tsx")));let d=function(e){return e.CONFIRM_SUBSCRIPTION="/checkout/confirm/:subscriptionId",e.MEDIA_SUBSCRIPTION_LIST="/checkout/media/:mediaId/subscriptions",e}({});const l="internal"===n.Config.get("subscription/checkout/type"),p=[{contentType:r.R.ADULT_ONLY,element:(0,s.Y)(c,{}),enabled:l,isBackgroundRoute:!1,path:d.MEDIA_SUBSCRIPTION_LIST,scope:r.rp.PRIVATE,type:r.fk.PAGE},{contentType:r.R.ADULT_ONLY,element:(0,s.Y)(i,{}),enabled:l,isBackgroundRoute:!1,path:d.CONFIRM_SUBSCRIPTION,scope:r.rp.PRIVATE,type:r.fk.PAGE}]},"./src/watch/routes.tsx"(e,t,o){"use strict";o.d(t,{G:()=>l,i:()=>d});var r=o("./src/core/router/constants.ts"),n=o("./src/shared/utils/platform/isHandheldDevice.ts"),a=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),s=o("../../../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,a.lazy)(()=>Promise.all([o.e(335),o.e(88),o.e(249),o.e(644),o.e(96),o.e(47),o.e(634),o.e(601)]).then(o.bind(o,"./src/watch/views/WatchView/WatchView.desktop.tsx"))),c=(0,a.lazy)(()=>Promise.all([o.e(88),o.e(96),o.e(634),o.e(125)]).then(o.bind(o,"./src/watch/views/WatchView/WatchView.mobile.tsx")));let d=function(e){return e.DEFAULT="/watch/:id",e}({});const l=[{contentType:r.R.ALL_ALLOWED,element:n.p?(0,s.Y)(c,{}):(0,s.Y)(i,{}),isBackgroundRoute:!1,path:d.DEFAULT,scope:r.rp.PRIVATE,type:r.fk.PAGE}]},"./src/watch/utils/getPlayerLink.ts"(e,t,o){"use strict";o.d(t,{w:()=>s});var r=o("./src/watch/routes.tsx"),n=o("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-62JRHF6Z.mjs"),a=o("./src/shared/utils/getSearchParams.ts");const s=e=>{const{id:t,...o}=e,s=(0,a.j)(o);return`${(0,n.tW)(r.i.DEFAULT,{id:t})}${s}`}},"./src/shared/images/fallback-backdrop-landscape.png"(e,t,o){"use strict";e.exports=o.p+"oneweb/images/fallback-backdrop-landscape-31d23bfc.png?v=1.208.1"},"?b414"(){},"?06a8"(){},"./config/datadog.cjs"(e){e.exports={service:"paytv-web-logged-in"}},"../../libs/core/dist/index.mjs"(e,t,o){"use strict";o.d(t,{cA:()=>p,x6:()=>g,CS:()=>a,nk:()=>n,Xx:()=>l,gq:()=>u});const r="undefined"==typeof window,n=["SE","FI","NO"],a=["PROD","PILOT"],s=["WEB","ACCOUNTWEB","SETTINGSWEB","CHECKOUTWEB","MARKETWEB","WEBPLAYER","ANDROIDTV","ANDROIDSTB","ANDROIDMOB","IOS","TVOS","CCR","SSTV","IPTVSTB","AISTB","LGTV"],i=((()=>{if(r)return;const e=new URLSearchParams(window.location.search).get("client")?.toUpperCase();e&&s.indexOf(e)})(),{"dev-login.teliaplay-pilot.fi":{environment:"PILOT",market:"FI",productName:"Telia Play"},"dev-login.teliaplay-pilot.no":{environment:"PILOT",market:"NO",productName:"Telia Play"},"dev-login.teliaplay-pilot.se":{environment:"PILOT",market:"SE",productName:"Telia Play"},"dev-login.teliaplay.fi":{environment:"PROD",market:"FI",productName:"Telia Play"},"dev-login.teliaplay.no":{environment:"PROD",market:"NO",productName:"Telia Play"},"dev-login.teliaplay.se":{environment:"PROD",market:"SE",productName:"Telia Play"},"login.teliaplay-pilot.fi":{environment:"PILOT",market:"FI",productName:"Telia Play"},"login.teliaplay-pilot.no":{environment:"PILOT",market:"NO",productName:"Telia Play"},"login.teliaplay-pilot.se":{environment:"PILOT",market:"SE",productName:"Telia Play"},"login.teliaplay.fi":{environment:"PROD",market:"FI",productName:"Telia Play"},"login.teliaplay.no":{environment:"PROD",market:"NO",productName:"Telia Play"},"login.teliaplay.se":{environment:"PROD",market:"SE",productName:"Telia Play"},"beta.teliaplay.se":{environment:"PROD",market:"SE",productName:"Telia Play"},localhost:{environment:"PROD",market:"SE",productName:"Telia Play"},"pilot.tv.telia.fi":{environment:"PILOT",market:"FI",productName:"Telia Play"},"preprod.tv.telia.fi":{environment:"PROD",market:"FI",productName:"Telia Play"},"teliaplay-pilot.fi":{environment:"PILOT",market:"FI",productName:"Telia Play"},"teliaplay-pilot.no":{environment:"PILOT",market:"NO",productName:"Telia Play"},"teliaplay-pilot.se":{environment:"PILOT",market:"SE",productName:"Telia Play"},"teliaplay-stage.fi":{environment:"PILOT",market:"FI",productName:"Telia Play"},"teliaplay-stage.se":{environment:"PILOT",market:"SE",productName:"Telia Play"},"teliaplay.fi":{environment:"PROD",market:"FI",productName:"Telia Play"},"teliaplay.no":{environment:"PROD",market:"NO",productName:"Telia Play"},"teliaplay.se":{environment:"PROD",market:"SE",productName:"Telia Play"},"tv.telia.fi":{environment:"PROD",market:"FI",productName:"Telia Play"},"www.teliaplay.fi":{environment:"PROD",market:"FI",productName:"Telia Play"},"www.teliaplay.se":{environment:"PROD",market:"SE",productName:"Telia Play"},"connect.teliaplay-pilot.fi":{environment:"PILOT",market:"FI",productName:"Telia Play"},"connect.teliaplay-pilot.no":{environment:"PILOT",market:"NO",productName:"Telia Play"},"connect.teliaplay-pilot.se":{environment:"PILOT",market:"SE",productName:"Telia Play"},"connect.teliaplay.fi":{environment:"PROD",market:"FI",productName:"Telia Play"},"connect.teliaplay.no":{environment:"PROD",market:"NO",productName:"Telia Play"},"connect.teliaplay.se":{environment:"PROD",market:"SE",productName:"Telia Play"}}),c=()=>window.location.hostname.replace(/^www\./,""),d="ENVIRONMENT",l=e=>{window.localStorage.setItem(d,e)},p=(()=>{try{return r?null:window.localStorage.getItem(d)}catch(e){return console.warn("Failed to get environment from localStorage",e),null}})()||(()=>{if(r)return;const e=c();return e in i?i[e].environment:void 0})()||"PILOT",m="MARKET",u=e=>window.localStorage.setItem(m,e),g=(()=>{try{return r?null:window.localStorage.getItem(m)}catch(e){return console.warn("Failed to get market from localStorage",e),null}})()||(()=>{if(r)return;const e=c();return e in i?i[e].market:void 0})()||"SE";(()=>{if(r)return;const e=c();e in i&&i[e].productName})()},"../../libs/error-monitoring/dist/index.mjs"(e,t,o){"use strict";o.d(t,{tH:()=>f,OC:()=>_,vV:()=>x,c6:()=>w,au:()=>E,g0:()=>k,f5:()=>v});var r=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@bugsnag/js/browser/notifier.js"),n=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@bugsnag/plugin-react/dist/bugsnag-react.js"),a=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/ErrorTypes.js"),s=o("../../libs/core/dist/index.mjs");let i=!1;function c(){return i}var d=o("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected]_rea_053da52ac51cff1eb4e5be5efe485c18/node_modules/@datadog/browser-rum-react/esm/entries/main.js"),l=o("../../../node_modules/.pnpm/@[email protected]/node_modules/@datadog/browser-rum/esm/entries/main.js");let p=!1;function m(){return p}var u=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),g=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/jsx-runtime.js");let h=null;const y={componentStack:""};function f({children:e,FallbackComponent:t,onError:o}){return c()&&(h||(h=r.getPlugin("react")?.createErrorBoundary(u)),h)?(0,g.jsx)(h,{FallbackComponent:t,onError:e=>{const t=e.originalError;o?.(t,y),m()&&(0,d.M4)(t,y)},children:e}):m()?(0,g.jsx)(d.tH,{fallback:({error:e,resetError:o})=>t?(0,g.jsx)(t,{clearError:o,error:e,info:y}):null,children:e}):e}let b=!1;function _(){return b}const v=async e=>{if(b)return;const t=window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:""),o=s.cA.toLowerCase(),c=e.buildTime?new Date(e.buildTime).toISOString():void 0;let m=!1;const u={appVersion:e.appVersion,buildTime:c,env:o,origin:t};e.bugsnag?.apiKey&&((({apiKey:e,appVersion:t,buildTime:o,env:c,origin:d})=>{!i&&e&&(r.start({apiKey:e,appVersion:t,collectUserIp:!1,metadata:{...o?{build:{buildTime:o}}:{},user:{env:c,market:s.x6}},onError:async e=>{if(e.originalError instanceof a.AbortError)return!1},plugins:[new n],releaseStage:d}),i=!0)})({apiKey:e.bugsnag.apiKey,...u}),m=!0),e.datadog?.clientToken&&e.datadog.applicationId&&((({applicationId:e,appVersion:t,buildTime:o,clientToken:r,env:n,origin:a,service:i})=>{!p&&e&&r&&(l.L2.init({applicationId:e,beforeSend:(e,t)=>"error"!==e.type||!("error"in t)||"AbortError"!==t.error?.name,clientToken:r,defaultPrivacyLevel:"mask-user-input",env:n,plugins:[(0,d.tx)({router:!1})],service:i,sessionReplaySampleRate:0,sessionSampleRate:100,site:"datadoghq.eu",trackLongTasks:!0,trackResources:!0,trackUserInteractions:!0,version:t}),p=!0,l.L2.setGlobalContext({h2id:"hid1000003813",market:s.x6,origin:a,...o?{buildTime:o}:{}}))})({applicationId:e.datadog.applicationId,clientToken:e.datadog.clientToken,service:e.datadog.service,...u}),m=!0),m&&(b=!0)},x=(e,t)=>{if(!_())return console.warn("logError: Error monitoring has not been started. Call startErrorMonitoring() first."),Promise.resolve();const o=((e,t)=>c()?new Promise(o=>{r.notify(e,e=>{e.severity="error",t?.context&&e.addMetadata("Context",{context:t.context}),t?.metadata&&Object.keys(t.metadata).length>0&&e.addMetadata("App metadata",t.metadata),t?.onBugsnagEvent?.(e)},o)}):Promise.resolve())(e,t);return((e,t)=>{if(!m())return;const o={...t?.context?{context:t.context}:{},...t?.metadata?{metadata:t.metadata}:{}};Object.keys(o).length>0?l.L2.addError(e,o):l.L2.addError(e)})(e,t),o},k=e=>{(e=>{c()&&r.setUser(e)})(e),(e=>{m()&&l.L2.setUserProperty("id",e)})(e)},w=()=>{k("0")},E=e=>{(({bootId:e,deviceId:t})=>{if(!c())return;const o={...e?{bootId:e}:{},...t?{deviceId:t}:{}};0!==Object.keys(o).length&&r.addMetadata("user",o)})(e),(({bootId:e,deviceId:t})=>{if(!m())return;const o={...e?{bootId:e}:{},...t?{deviceId:t}:{}};if(0===Object.keys(o).length)return;const r=l.L2.getGlobalContext();l.L2.setGlobalContext({...r,...o})})(e)}},"../../libs/ui/dist/index.mjs"(e,t,o){"use strict";o.d(t,{Lr:()=>ne,mq:()=>a});var r=o("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/dist/emotion-react.browser.esm.js");const n={L:1025,M:769,S:480,XL:1440},a=Object.keys(n).reduce((e,t)=>
204(e[t]=(...e)=>r.css` 205 @media (min-width: ${n[t]}px) { 206 ${(0,r.css)(e[0],...e.slice(1))}; 207 } 208 `,e),{}),s=e=>`${e}-${Math.random().toString(36).substring(2,14)}`;var i=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_f734d82c55a697af95f95e7d1443e8d9/node_modules/@telia-company/tv.one-design-system-web/lib/index.js"),c=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),d=o("../../../node_modules/.pnpm/[email protected]/node_modules/react/jsx-runtime.js");function l({desc:e,name:t,role:o="img",title:r,...n}){const{desc:a,descId:l,title:p,titleId:m}=(0,c.useMemo)(()=>(({desc:e,prefix:t,title:o})=>{const r=o?s(`${t}-title`):"";return{desc:e,descId:e?s(`${t}-description`):"",title:o,titleId:r}})({desc:e,prefix:t,title:r}),[t,r,e]);return(0,d.jsxs)(i.PA,{...n,"aria-describedby":l||void 0,"aria-labelledby":m||void 0,name:t,role:o,children:[p?(0,d.jsx)("title",{id:m,children:p}):null,a?(0,d.jsx)("desc",{id:l,children:a}):null]})}var p=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected]_support_a0dcb4b0ae680db98626d6fd11a2b9d9/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js");const m=r.keyframes` 209 from { 210 transform:rotate(0deg); 211 } 212 to { 213 transform:rotate(360deg); 214 } 215`,u=(0,p.default)(l)` 216 pointer-events: none; 217 animation: ${m} 0.8s ease infinite; 218 transform-origin: center; 219 ${({size:e})=>r.css` 220 width: ${e}px; 221 height: ${e}px; 222 `} 223`;const g=r.css` 224 background-color: ${i.ue.color.button.primaryDefault}; 225 color: ${i.ue.color.text.primary}; 226 &:hover { 227 background-color: ${i.ue.color.button.primaryHover}; 228 } 229 &:focus { 230 background-color: ${i.ue.color.button.primaryFocus}; 231 .is-tabbing & { 232 box-shadow: 0 0 0 3px ${i.ue.color.border.buttonPrimaryFocus}; 233 } 234 } 235 &:active { 236 background-color: ${i.ue.color.button.primaryPressed}; 237 } 238 &:disabled { 239 background-color: ${i.ue.color.button.primaryDisabled}; 240 } 241`,h=r.css` 242 background-color: ${i.ue.color.button.secondaryDefault}; 243 color: ${i.ue.color.text.primary}; 244 &:hover { 245 background-color: ${i.ue.color.button.secondaryHover}; 246 } 247 &:focus { 248 background-color: ${i.ue.color.button.secondaryFocus}; 249 .is-tabbing & { 250 box-shadow: 0 0 0 3px ${i.ue.color.border.buttonSecondaryFocus}; 251 } 252 } 253 &:active { 254 background-color: ${i.ue.color.button.secondaryPressed}; 255 } 256 &:disabled { 257 background-color: ${i.ue.color.button.secondaryDisabled}; 258 } 259`,y=r.css` 260 background-color: ${i.ue.color.button.ghostDefault}; 261 backdrop-filter: blur(6px); 262 &:hover { 263 background-color: ${i.ue.color.button.ghostHover}; 264 } 265 &:focus { 266 background-color: ${i.ue.color.button.ghostFocus}; 267 .is-tabbing & { 268 box-shadow: 0 0 0 3px ${i.ue.color.border.buttonGhostFocus}; 269 } 270 } 271 &:active { 272 background-color: ${i.ue.color.button.ghostPressed}; 273 } 274 &:disabled { 275 background-color: ${i.ue.color.button.ghostDisabled}; 276 } 277`,f=r.css` 278 background-color: ${i.ue.color.button.payDefault}; 279 color: ${i.ue.color.text.primaryDark}; 280 &:hover { 281 background-color: ${i.ue.color.button.payHover}; 282 } 283 &:focus { 284 background-color: ${i.ue.color.button.payFocus}; 285 .is-tabbing & { 286 box-shadow: 0 0 0 3px ${i.ue.color.border.buttonPayFocus}; 287 } 288 } 289 &:active { 290 background-color: ${i.ue.color.button.payPressed}; 291 } 292 &:disabled { 293 background-color: ${i.ue.color.button.payDisabled}; 294 } 295`,b=/^(?<value>[\d]+[.]{0,1}[\d]*)(px|)$/,_=e=>{if("string"==typeof e){const t=e.match(b)?.groups?.value;if(void 0===t)throw new Error(`Format error: "${e}" is not a valid input (use a 'number' or '\${number}px' value).`);return _(parseInt(t,10))}return Number(parseFloat((e/10).toFixed(3)))},v=(0,p.default)(l)` 296 width: 24px; 297 height: 24px; 298 margin-right: ${_(5)}rem; 299`,x=(0,p.default)(function(e){return(0,d.jsx)(u,{"data-testid":"spinner-icon",name:"Spinner",...e})})` 300 position: absolute; 301 top: 0; 302 bottom: 0; 303 right: 0; 304 left: 0; 305 margin: auto; 306`,k=p.default.div` 307 display: flex; 308 flex-direction: row; 309 justify-content: center; 310 align-items: center; 311 312 ${({isLoading:e})=>e&&r.css` 313 opacity: 0; 314 `}; 315`,w=p.default.button` 316 position: relative; 317 cursor: pointer; 318 display: inline-flex; 319 box-sizing: border-box; 320 transition: 321 opacity ease 0.2s, 322 color ease 0.2s, 323 background-color ease 0.2s; 324 border: 0; 325 flex-direction: row; 326 justify-content: center; 327 align-items: center; 328 text-align: center; 329 padding-top: ${_(12)}rem; 330 padding-bottom: ${_(12)}rem; 331 padding-right: ${_(20)}rem; 332 padding-left: ${_(20)}rem; 333 334 &:hover:enabled { 335 opacity: 0.9; 336 } 337 338 &:active:enabled { 339 opacity: 0.85; 340 } 341 342 ${({disabled:e})=>r.css` 343 border-radius: ${i.ue.radius.button}; 344 color: ${i.ue.color.text.primary}; 345 font-family: ${i.ue.typography.buttonText.fontFamily}; 346 font-size: ${i.ue.typography.buttonText.fontSize}; 347 font-weight: ${i.ue.typography.buttonText.fontWeight}; 348 line-height: ${i.ue.typography.buttonText.lineHeight}; 349 350 ${e&&r.css`
351 cursor: not-allowed; 352 background-color: ${i.ue.color.button.primaryDisabled}; 353 color: ${i.ue.color.text.disabled}; 354 svg { 355 *[fill] { 356 fill: ${i.ue.color.text.disabled}; 357 } 358 *[stroke] { 359 stroke: ${i.ue.color.text.disabled}; 360 } 361 } 362 `} 363 `} 364 365 ${({variant:e})=>{switch(e){case"ghost":return y;case"pay":return f;case"primary":return g;case"secondary":return h}}} 366`,E=((0,c.forwardRef)(({as:e,children:t,disabled:o,iconName:r,isLoading:n,variant:a="primary",...s},i)=>(0,d.jsxs)(w,{"aria-disabled":o,as:e??"button",disabled:o,ref:i,variant:a,...s,children:[n&&(0,d.jsx)(x,{size:20}),(0,d.jsxs)(k,{isLoading:n,children:[r&&(0,d.jsx)(v,{name:r}),t]})]})),p.default.section` 367 padding: 16px 16px 24px; 368 border-radius: 6px; 369 370 ${a.M` 371 padding: 40px 32px; 372 `} 373 374 background-color: ${i.ue.color.background.tertiary}; 375 color: ${i.ue.color.text.primary}; 376 font-size: ${i.ue.typography.textPrimary.fontSize}; 377`);(0,c.forwardRef)(({children:e,...t},o)=>(0,d.jsx)(E,{ref:o,...t,children:e})).displayName="Card";p.default.label` 378 cursor: pointer; 379 position: relative; 380 display: flex; 381 user-select: none; 382 align-items: flex-start; 383 width: fit-content; 384 385 .is-tabbing &:focus-within { 386 outline: -webkit-focus-ring-color auto 1px; 387 outline-offset: 5px; 388 } 389`,p.default.span` 390 display: flex; 391 align-items: center; 392 justify-content: center; 393 width: 100%; 394 height: 100%; 395 background-color: ${i.ue.color.button.primaryDefault}; 396 transition: all 250ms cubic-bezier(0.65, 0.45, 0.15, 1.56); 397 transform: scale(0); 398 opacity: 0; 399 z-index: 2; 400 position: relative; 401 border-radius: 4px; 402 padding: ${_(2.5)}rem; 403 box-sizing: border-box; 404`,(0,p.default)(l)` 405 transition: all 250ms ease-in-out; 406 width: 100%; 407 height: 100%; 408 transform: scale(0); 409 opacity: 0; 410 & path { 411 stroke-width: 3; 412 } 413`,p.default.input` 414 opacity: 0; 415 width: 0; 416 height: 0; 417 418 &:checked + div span { 419 opacity: 1; 420 transform: scale(1.01); 421 422 & svg { 423 transform: none; 424 opacity: 1; 425 } 426 } 427`,p.default.div` 428 display: flex; 429 height: 24px; 430 width: 24px; 431 flex-grow: 0; 432 flex-shrink: 0; 433 box-shadow: inset 0 0 0 1px 434 ${({state:e})=>"VALID"===e?i.ue.color.text.primary:i.ue.color.border.inputfieldError}; 435 border-radius: 4px; 436 position: relative; 437 z-index: 0; 438 439 background: ${i.ue.color.background.surface}; 440`,p.default.div` 441 margin-left: ${_(6.25)}rem; 442 443 ${({primary:e})=>r.css` 444 font-family: ${i.ue.typography.textSecondary.fontFamily}; 445 font-size: ${i.ue.typography.textSecondary.fontSize}; 446 font-weight: ${i.ue.typography.textSecondary.fontWeight}; 447 line-height: ${i.ue.typography.textSecondary.lineHeight}; 448 color: ${e?i.ue.color.text.primary:i.ue.color.text.secondary}; 449 `}; 450 451 a { 452 display: inline; 453 } 454`;p.default.div` 455 width: 100%; 456 height: auto; 457 position: relative; 458`,p.default.div` 459 position: relative; 460`,p.default.input` 461 ${({isOpen:e})=>r.css` 462 font-family: ${i.ue.typography.textPrimary.fontFamily}; 463 font-size: ${i.ue.typography.textPrimary.fontSize}; 464 font-weight: ${i.ue.typography.textPrimary.fontWeight}; 465 line-height: ${i.ue.typography.textPrimary.lineHeight}; 466 color: ${i.ue.color.text.primary}; 467 caret-color: ${i.ue.color.text.primary}; 468 border: 1px solid ${i.ue.color.border.backgroundSurface}; 469 background: ${i.ue.color.background.surface}; 470 border-bottom: ${e?"1px solid transparent":`1px solid ${i.ue.color.border.backgroundSurface}`}; 471 border-radius: ${e?"6px 6px 0 0":"6px"}; 472 473 &&::-webkit-input-placeholder { 474 font-family: ${i.ue.typography.textPrimary.fontFamily}; 475 font-size: ${i.ue.typography.textPrimary.fontSize}; 476 font-weight: ${i.ue.typography.textPrimary.fontWeight}; 477 line-height: ${i.ue.typography.textPrimary.lineHeight}; 478 color: ${i.ue.color.text.tertiary}; 479 } 480 481 &&::-moz-placeholder { 482 font-family: ${i.ue.typography.textPrimary.fontFamily}; 483 font-size: ${i.ue.typography.textPrimary.fontSize}; 484 font-weight: ${i.ue.typography.textPrimary.fontWeight}; 485 line-height: ${i.ue.typography.textPrimary.lineHeight}; 486 color: ${i.ue.color.text.tertiary}; 487 opacity: 1; 488 } 489 490 &:-webkit-autofill, 491 &:-webkit-autofill:hover, 492 &:-webkit-autofill:focus { 493 border: none; 494 caret-color: ${i.ue.color.text.primary}; 495 -webkit-text-fill-color: ${i.ue.color.text.primary}; 496 transition: background-color 86400s ease-in-out 0s; 497 } 498 `}; 499 500 line-height: 1.5; 501 padding: 19px 11px; 502 height: 50px; 503 width: 100%; 504 box-sizing: border-box; 505 position: relative; 506 ${a.M` 507 height: 56px; 508 `} 509`,p.default.ul` 510 ${({backgroundColor:e,isOpen:t})=>r.css` 511 font-family: ${i.ue.typography.textSecondary.fontFamily}; 512 font-size: ${i.ue.typography.textSecondary.fontSize}; 513 font-weight: ${i.ue.typography.textSecondary.fontWeight}; 514 line-height: ${i.ue.typography.textSecondary.lineHeight}; 515 color: ${i.ue.color.text.secondary}; 516 border: 1px solid ${i.ue.color.border.backgroundSurface}; 517 background: ${e||i.ue.color.background.primary}; 518 border-bottom: ${t?`1px solid ${i.ue.color.border.backgroundSurface}`:"1px solid transparent"}; 519 `}; 520 521 box-sizing: border-box; 522 position: absolute; 523 z-index: 15; 524 left: 0; 525 right: 0; 526 width: 100%; 527 height: auto; 528 overflow-x: hidden;
529 overflow-y: scroll; 530 max-height: 230px; 531 border-top: none; 532 border-bottom-left-radius: 6px; 533 border-bottom-right-radius: 6px; 534 z-index: 15; 535 display: block; 536 padding: 0; 537 margin: 0; 538`,p.default.li` 539 padding: 8px 11px; 540 line-height: ${_(12)}rem; 541 position: relative; 542 cursor: pointer; 543 list-style-type: none; 544 background-color: ${i.ue.color.background.surface}; 545 &:last-child { 546 border-bottom-left-radius: 6px; 547 border-bottom-right-radius: 6px; 548 } 549`,p.default.label` 550 display: block; 551 margin-bottom: 8px; 552 553 ${({disabled:e})=>r.css` 554 font-family: ${i.ue.typography.headingSubHeading.fontFamily}; 555 font-size: ${i.ue.typography.headingSubHeading.fontSize}; 556 font-weight: ${i.ue.typography.headingSubHeading.fontWeight}; 557 line-height: ${i.ue.typography.headingSubHeading.lineHeight}; 558 text-transform: ${i.ue.typography.headingSubHeading.textTransform}; 559 color: ${e?i.ue.color.text.disabled:i.ue.color.text.primary}; 560 `}; 561`,(0,p.default)(l)` 562 position: absolute; 563 top: 0; 564 right: 0; 565 cursor: pointer; 566 flex: 0 0 24px; 567 padding: 14px; 568 z-index: 1; 569 height: 24px; 570 box-sizing: content-box; 571 572 ${a.S` 573 padding: 16px; 574 `} 575`;p.default.div` 576 display: flex; 577 align-items: flex-start; 578 579 font-family: ${i.ue.typography.textPrimary.fontFamily}; 580 font-size: ${i.ue.typography.textPrimary.fontSize}; 581 font-weight: ${i.ue.typography.textPrimary.fontWeight}; 582 line-height: ${i.ue.typography.textPrimary.lineHeight}; 583 color: ${i.ue.color.text.primary}; 584 585 svg { 586 width: 24px; 587 height: 24px; 588 min-width: 24px; 589 min-height: 24px; 590 margin-right: 8px; 591 } 592`;o("../../libs/utils/dist/index.mjs"),o("../../../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");const A="is-fine-pointer";p.default.div` 593 position: relative; 594 display: flex; 595 flex-flow: row wrap; 596`,p.default.div` 597 display: flex; 598 flex: 1 0 100%; 599 height: 50px; 600 background: ${i.ue.color.background.surface}; 601 border: 1px solid; 602 border-radius: 6px; 603 box-sizing: border-box; 604 transition: border 0.2s ease-out; 605 606 &:focus-within { 607 border-color: ${i.ue.color.border.inputfieldActive}; 608 border-width: 2px; 609 } 610 611 ${({state:e})=>{switch(e){case"DEFAULT":case"VALID":return r.css` 612 border-color: ${i.ue.color.border.inputfieldDefault}; 613 `;case"INVALID":return r.css` 614 border-color: ${i.ue.color.border.inputfieldError}; 615 `}}} 616 617 ${a.M` 618 height: 56px; 619 `} 620`,p.default.button` 621 cursor: pointer; 622 flex: 0 0 24px; 623 display: flex; 624 align-items: center; 625 justify-content: center; 626 padding: 14px; 627 z-index: 1; 628 background: none; 629 border: none; 630 outline: none; 631 box-sizing: content-box; 632 633 &:focus-visible { 634 outline: 2px solid ${i.ue.color.border.inputfieldActive}; 635 outline-offset: -2px; 636 border-radius: 4px; 637 } 638 639 ${a.S` 640 padding: 16px; 641 `} 642 643 svg { 644 width: 24px; 645 height: 24px; 646 path { 647 fill: ${({$passwordVisible:e})=>e?i.ue.color.text.primary:i.ue.color.text.secondary}; 648 } 649 } 650`,p.default.input` 651 flex: 0 1 auto; 652 width: 100%; 653 padding: 12px 16px; 654 655 font-family: ${i.ue.typography.textPrimary.fontFamily}; 656 font-size: ${i.ue.typography.textPrimary.fontSize}; 657 font-weight: ${i.ue.typography.textPrimary.fontWeight}; 658 line-height: ${i.ue.typography.textPrimary.lineHeight}; 659 color: ${i.ue.color.text.primary}; 660 caret-color: ${i.ue.color.text.primary}; 661 662 appearance: none; 663 outline: 0; 664 border: none; 665 background-image: none; 666 background-color: transparent; 667 box-shadow: none; 668 669 &::-ms-clear, 670 &::-ms-reveal { 671 display: none; 672 } 673 674 &&::-webkit-input-placeholder { 675 font-family: ${i.ue.typography.textPrimary.fontFamily}; 676 font-size: ${i.ue.typography.textPrimary.fontSize}; 677 font-weight: ${i.ue.typography.textPrimary.fontWeight}; 678 line-height: ${i.ue.typography.textPrimary.lineHeight}; 679 color: ${i.ue.color.text.tertiary}; 680 } 681 &&::-moz-placeholder { 682 font-family: ${i.ue.typography.textPrimary.fontFamily}; 683 font-size: ${i.ue.typography.textPrimary.fontSize}; 684 font-weight: ${i.ue.typography.textPrimary.fontWeight}; 685 line-height: ${i.ue.typography.textPrimary.lineHeight}; 686 color: ${i.ue.color.text.tertiary}; 687 opacity: 1; 688 } 689 690 &:-webkit-autofill, 691 &:-webkit-autofill:hover, 692 &:-webkit-autofill:focus { 693 border: none; 694 caret-color: ${i.ue.color.text.primary}; 695 -webkit-text-fill-color: ${i.ue.color.text.primary}; 696 transition: background-color 86400s ease-in-out 0s; 697 } 698 699 ${({hasIcon:e})=>e&&r.css` 700 padding-right: 0; 701 `} 702 703 ${({disabled:e})=>e&&r.css` 704 opacity: 0.5;
705 cursor: not-allowed; 706 `} 707`,p.default.label` 708 margin-bottom: 8px; 709 ${({disabled:e,invalid:t})=>{const o=t?i.ue.color.text.error:e?i.ue.color.text.disabled:i.ue.color.text.primary;return r.css` 710 font-family: ${i.ue.typography.headingSubHeading.fontFamily}; 711 font-size: ${i.ue.typography.headingSubHeading.fontSize}; 712 font-weight: ${i.ue.typography.headingSubHeading.fontWeight}; 713 line-height: ${i.ue.typography.headingSubHeading.lineHeight}; 714 text-transform: ${i.ue.typography.headingSubHeading.textTransform}; 715 color: ${o}; 716 `}} 717`,p.default.div` 718 user-select: none; 719 padding: 8px 0; 720 display: flex; 721 gap: 4px; 722 align-items: center; 723 text-align: left; 724 725 svg { 726 width: 24px; 727 height: 24px; 728 flex-shrink: 0; 729 align-self: flex-start; 730 path { 731 fill: currentColor; 732 } 733 } 734 735 font-family: ${i.ue.typography.textSecondary.fontFamily}; 736 font-size: ${i.ue.typography.textSecondary.fontSize}; 737 font-weight: ${i.ue.typography.textSecondary.fontWeight}; 738 line-height: ${i.ue.typography.textSecondary.lineHeight}; 739 740 ${({state:e})=>{switch(e){case"DEFAULT":return r.css` 741 color: ${i.ue.color.text.tertiary}; 742 `;case"INVALID":return r.css` 743 color: ${i.ue.color.text.error}; 744 `;case"VALID":return r.css` 745 color: ${i.ue.color.text.secondary}; 746 `}}} 747`;var S=o("../../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/index.js");function P({children:e}){const[t,o]=(0,c.useState)();return(0,c.useEffect)(()=>{const e=document.createElement("div");return(document.getElementById("root")??document.body).appendChild(e),o(e),()=>{e.remove()}},[]),t?(0,S.createPortal)(e,t):null}p.default.div` 748 position: fixed; 749 top: 0; 750 left: 0; 751 height: 100vh; 752 width: 100vw; 753 754 display: grid; 755 place-content: center; 756 background: ${i.ue.color.background.overlay60}; 757 z-index: 101; 758`,p.default.div` 759 background: ${i.ue.color.background.tertiary}; 760 border-radius: 6px; 761 padding: ${_(15)}rem; 762 overflow-y: auto; 763 font-size: ${i.ue.typography.textPrimary.fontSize}; 764`;const I=p.default.input` 765 height: 48px; 766 width: 48px; 767 text-align: center; 768 padding: 0; 769 770 ${a.M` 771 height: 80px; 772 width: 80px; 773 `} 774 775 border-radius: 2px; 776 box-sizing: border-box; 777 background-color: ${i.ue.color.background.surface}; 778 border: 1px solid ${i.ue.color.border.inputfieldDefault}; 779 780 font-family: ${i.ue.typography.headingPrimary.fontFamily}; 781 font-size: ${i.ue.typography.headingPrimary.fontSize}; 782 font-weight: ${i.ue.typography.headingPrimary.fontWeight}; 783 line-height: ${i.ue.typography.headingPrimary.lineHeight}; 784 color: ${i.ue.color.text.primary}; 785 caret-color: ${i.ue.color.text.primary}; 786 787 &:focus { 788 border-color: ${i.ue.color.border.inputfieldActive}; 789 border-width: 2px; 790 } 791 792 ${({state:e})=>{if("INVALID"===e)return r.css` 793 border-color: ${i.ue.color.border.inputfieldError}; 794 `}} 795 796 &::-webkit-outer-spin-button, 797 &::-webkit-inner-spin-button { 798 -webkit-appearance: none; 799 margin: 0; 800 } 801 input[type='number'] { 802 -moz-appearance: textfield; 803 } 804 805 ${({disabled:e})=>e&&r.css` 806 opacity: 0.5; 807 cursor: not-allowed; 808 `} 809`;(0,c.forwardRef)(({disabled:e,id:t,state:o="DEFAULT",...r},n)=>(0,d.jsx)(I,{"aria-disabled":e,disabled:e,id:t,state:o,type:"tel",...r,ref:n})).displayName="PinBox";const L=r.css` 810 max-height: 70vh; 811 overflow-y: auto; 812 scroll-behavior: smooth; 813 -webkit-overflow-scrolling: touch; 814 815 &::-webkit-scrollbar {
816 width: 4px; 817 } 818 &::-webkit-scrollbar-track { 819 background: rgba(0, 0, 0, 0.1); 820 border-radius: 2px; 821 } 822 &::-webkit-scrollbar-thumb { 823 background: rgba(0, 0, 0, 0.3); 824 border-radius: 2px; 825 } 826 &::-webkit-scrollbar-thumb:hover { 827 background: rgba(0, 0, 0, 0.5); 828 } 829`,O=p.default.div` 830 pointer-events: auto; 831 display: flex; 832 width: 100%; 833 box-shadow: 0px 2px 40px rgba(0, 0, 0, 0.5); 834 min-height: 44px; 835 max-height: 70vh; 836 ${a.S` 837 min-height: 56px; 838 `} 839`,C=p.default.div` 840 flex-grow: 1; 841 display: flex; 842 align-items: flex-start; 843 border-radius: 4px; 844 padding: 12px 16px; 845 ${L} 846 847 ${({variant:e})=>{switch(e){case"negative":return r.css` 848 background-color: ${i.ue.color.infoDialogue.negativeBackgroundBold}; 849 color: ${i.ue.color.text.primaryDark}; 850 button { 851 color: ${i.ue.color.text.primaryDark}; 852 } 853 *[fill] { 854 fill: ${i.ue.color.text.primaryDark}; 855 } 856 *[stroke] { 857 stroke: ${i.ue.color.text.primaryDark}; 858 } 859 `;case"neutral":return r.css` 860 background-color: ${i.ue.color.infoDialogue.neutralBackgroundBold}; 861 color: ${i.ue.color.text.primary}; 862 button { 863 color: ${i.ue.color.text.primary}; 864 } 865 `;case"positive":return r.css` 866 background-color: ${i.ue.color.infoDialogue.positiveBackgroundBold}; 867 color: ${i.ue.color.text.primaryDark}; 868 button { 869 color: ${i.ue.color.text.primaryDark}; 870 } 871 *[fill] { 872 fill: ${i.ue.color.text.primaryDark}; 873 } 874 *[stroke] { 875 stroke: ${i.ue.color.text.primaryDark}; 876 } 877 `}}}; 878`,T=(0,p.default)(l)` 879 align-self: flex-start; 880 width: 20px; 881 margin-top: 2px; 882 margin-right: 12px; 883 flex-shrink: 0; 884 885 ${a.M` 886 margin-top: 0; 887 width: 32px; 888 height: 32px; 889 margin-right: 16px; 890 align-self: center; 891 `} 892`,R=p.default.button` 893 margin-top: 2px; 894 align-self: flex-start; 895 border: 0; 896 background-color: transparent; 897 flex-shrink: 0; 898 text-transform: capitalize; 899 900 font-size: ${i.ue.typography.textLink.fontSize}; 901 line-height: ${i.ue.typography.textLink.lineHeight}; 902 font-weight: ${i.ue.typography.textLink.fontWeight}; 903 font-family: ${i.ue.typography.textLink.fontFamily}; 904 905 ${a.M` 906 margin-top: 0; 907 align-self: center; 908 `} 909`,j=p.default.div` 910 flex-grow: 1; 911 margin-right: 16px; 912 word-break: break-word; 913 914 font-size: ${i.ue.typography.textPrimary.fontSize}; 915 line-height: ${i.ue.typography.textPrimary.lineHeight}; 916 font-weight: ${i.ue.typography.textPrimary.fontWeight}; 917 font-family: ${i.ue.typography.textPrimary.fontFamily}; 918`,D={negative:"Warning",neutral:"Info",positive:"Check"};function N({actionButtonText:e,children:t,onClickActionButton:o,variant:r}){const n=D[r];return(0,d.jsx)(O,{"data-snackbar":!0,children:(0,d.jsxs)(C,{variant:r,children:[n&&(0,d.jsx)(T,{name:n}),(0,d.jsx)(j,{children:t}),o&&e&&(0,d.jsx)(R,{onClick:o,children:e})]})})}const M=r.css` 919 max-height: 70vh; 920 overflow-y: auto; 921 scroll-behavior: smooth; 922 -webkit-overflow-scrolling: touch; 923 924 &::-webkit-scrollbar {
925 width: 4px; 926 } 927 &::-webkit-scrollbar-track { 928 background: rgba(0, 0, 0, 0.1); 929 border-radius: 2px; 930 } 931 &::-webkit-scrollbar-thumb { 932 background: rgba(0, 0, 0, 0.3); 933 border-radius: 2px; 934 } 935 &::-webkit-scrollbar-thumb:hover { 936 background: rgba(0, 0, 0, 0.5); 937 } 938`,F=p.default.div` 939 position: fixed; 940 left: 50%; 941 transform: translateX(-50%); 942 z-index: 101; 943 bottom: 24px; 944 width: min(342px, calc(100vw - 32px)); 945 /* Apply scrollable styles only when multiple snackbars exist */ 946 ${({isScrollable:e})=>e&&M} 947 948 ${a.M` 949 width: min(632px, calc(100vw - 32px)); 950 `} 951 952 > * { 953 margin-top: 16px; 954 } 955`,Y=()=>{},$=(0,c.createContext)({addSnackbar:()=>Y}),q=({children:e})=>{const[t,o]=(0,c.useState)([]),r=(0,c.useCallback)(e=>{o(t=>t.filter(t=>t!==e))},[]),n=(0,c.useCallback)(e=>{const{autoDismiss:t,content:n,dismissOnActionClick:a,onClickActionButton:s,...i}=e,c={children:n,onClickActionButton:a?e=>{s?.(e),r(c)}:s,...i};let d;return o(e=>(t&&(d=setTimeout(()=>r(c),5e3)),[...e,c])),()=>{d&&clearTimeout(d),r(c)}},[r]),a=function(e){const t=e.length>0?e[e.length-1]:void 0,o={negative:{"aria-live":"assertive",role:"alert"},neutral:{"aria-live":"polite",role:"status"},positive:{"aria-live":"polite",role:"status"}}[t?.variant??"neutral"]||{"aria-live":"polite",role:"status"};return o["aria-label"]=c.Children.toArray(t?.children).map(e=>"string"==typeof e?e:c.isValidElement(e)&&e.props&&"object"==typeof e.props&&null!==e.props&&"children"in e.props?e.props.children??"":"").join(" ").trim(),o}(t);return(0,d.jsxs)($.Provider,{value:{addSnackbar:n},children:[(0,d.jsx)(P,{children:(0,d.jsx)(F,{isScrollable:t.length>1,...a,children:t.map((e,t)=>(0,d.jsx)(N,{...e},t))})}),e]})};var z=o("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]__@types+react@_61e34d9144263e35e1d39403a885cdb3/node_modules/@radix-ui/react-switch/dist/index.mjs"),B=o("../../../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 U=p.default.div` 956 display: inline-flex; 957 align-items: center; 958`,V=p.default.label` 959 margin-right: 12px; 960 961 font-size: ${i.ue.typography.textSecondary.fontSize}; 962 line-height: ${i.ue.typography.textSecondary.lineHeight}; 963 font-weight: ${i.ue.typography.textSecondary.fontWeight}; 964 font-family: ${i.ue.typography.textSecondary.fontFamily}; 965 text-transform: ${i.ue.typography.textSecondary.textTransform}; 966 text-decoration: ${i.ue.typography.textSecondary.textDecoration}; 967`,G=(0,p.default)(z.bL)` 968 cursor: pointer; 969 position: relative; 970 width: 52px; 971 height: 32px; 972 border-radius: 48px; 973 border: none; 974 background-color: ${i.ue.color.text.tertiary}; 975 transition: background-color 200ms; 976 will-change: background-color; 977 978 &[data-state='checked'] { 979 background-color: ${i.ue.color.accent.brand}; 980 } 981 982 &[data-disabled] { 983 cursor: not-allowed; 984 background-color: rgba(255, 255, 255, 0.2); 985 } 986`,H=(0,p.default)(B.P.create(z.zi))` 987 position: absolute; 988 top: 3px; 989 width: 26px; 990 height: 26px; 991 background-color: ${i.ue.color.text.primary}; 992 border-radius: 50%; 993 transition: background-color 200ms; 994 will-change: background-color; 995 996 &[data-disabled] { 997 background-color: rgba(255, 255, 255, 0.4); 998 } 999`,W={duration:.2,type:"tween"};(0,c.forwardRef)(({"aria-describedby":e,"aria-label":t,className:o,disabled:r,id:n,label:a,name:i,onValueChange:l,value:p},m)=>{const u=(g="switch",(0,c.useMemo)(()=>s(g),[g]));var g;const h=n??u;return(0,d.jsxs)(U,{className:o,children:[a&&(0,d.jsx)(V,{htmlFor:h,children:a}),(0,d.jsx)(G,{"aria-describedby":e,"aria-label":t,checked:p,disabled:r,id:h,name:i,onCheckedChange:()=>{r||l(!p)},ref:m,children:(0,d.jsx)(H,{animate:p?"on":"off",initial:p?"on":"off",transition:W,variants:{off:{left:3,right:"auto"},on:{left:"auto",right:3}}})})]})}).displayName="Switch";var K=o("../../libs/core/dist/index.mjs");const Z=p.default.div` 1000 position: fixed; 1001 left: 16px; 1002 bottom: 16px; 1003 display: inline-block; 1004 padding: 16px; 1005 margin: 0 -4px; 1006 > * { 1007 margin: 0 4px; 1008 } 1009 1010 background-color: ${i.ue.color.background.surface}; 1011 border-radius: ${i.ue.radius.button}; 1012 font-size: ${i.ue.typography.textSecondary.fontSize}; 1013 font-weight: ${i.ue.typography.textSecondary.fontWeight}; 1014 line-height: ${i.ue.typography.textSecondary.lineHeight}; 1015`;function X(){const[e,t]=(0,c.useState)(K.cA),[o,r]=(0,c.useState)(K.x6),n=(0,c.useCallback)(()=>{(0,K.Xx)(e),(0,K.gq)(o),window.location.reload()}
1015,[e,o]),a=e!==K.cA||o!==K.x6;return(0,d.jsxs)(Z,{children:[(0,d.jsx)("select",{onChange:e=>r(e.target.value),value:o,children:K.nk.map(e=>(0,d.jsx)("option",{value:e,children:e},e))}),(0,d.jsx)("select",{onChange:e=>t(e.target.value),value:e,children:K.CS.map(e=>(0,d.jsx)("option",{value:e,children:e},e))}),(0,d.jsx)("button",{disabled:!a,onClick:n,children:"Save"})]})}var J=o("../../../node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/emotion-normalize/dist/index.js");o("../../../node_modules/.pnpm/[email protected]/node_modules/text-security/text-security.css");const Q=r.css` 1016 .ot-floating-button { 1017 display: none; 1018 } 1019`,ee=i.ue.typography.base.fontSize;function te(){return(0,c.useEffect)(()=>(window.fontSizeChanged=e=>{const t=Math.min(2,e/16);document.documentElement.style.setProperty("--font-size-factor",`${t}`)},()=>{delete window.fontSizeChanged}),[]),(0,d.jsx)(r.Global,{styles:r.css` 1020 ${J} 1021 1022 * { 1023 box-sizing: border-box; 1024 } 1025 1026 html, 1027 body, 1028 #root { 1029 height: 100%; 1030 } 1031 1032 html { 1033 font-size: calc(var(--font-size-factor, 1) * ${ee}); 1034 scroll-behavior: smooth; 1035 scroll-padding-top: var(--header-scroll-padding-top, 50px); 1036 } 1037 1038 body { 1039 font-family: ${i.ue.typography.textPrimary.fontFamily}; 1040 -webkit-font-smoothing: antialiased; 1041 -moz-osx-font-smoothing: grayscale; 1042 touch-action: pan-x pan-y; 1043 background-color: ${i.ue.color.background.primary}; 1044 color: ${i.ue.color.text.primary}; 1045 overflow-x: hidden; 1046 overflow-y: scroll; 1047 margin: 0; 1048 padding: 0; 1049 ${i.ue.typography.textPrimary} 1050 } 1051 1052 body.no-scroll { 1053 overflow-y: hidden; 1054 } 1055 1056 body:not(.is-tabbing) *:focus { 1057 outline: 0; 1058 } 1059 1060 button, 1061 a { 1062 cursor: pointer; 1063 } 1064 1065 small { 1066 color: ${i.ue.color.text.disabled}; 1067 } 1068 1069 a { 1070 display: inline-block; 1071 text-decoration: none; 1072 color: ${i.ue.color.text.primary}; 1073 cursor: pointer; 1074 } 1075 1076 h1, 1077 h2, 1078 h3, 1079 h4, 1080 h5, 1081 h6 { 1082 font-family: ${i.ue.typography.headingPrimary.fontFamily}; 1083 margin-bottom: 16px; 1084 margin-top: 0; 1085 text-transform: ${i.ue.typography.headingPrimary.textTransform}; 1086 } 1087 ${Q} 1088 `})}var oe=o("../../../node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js");const re=(0,c.createContext)({designTokens:void 0,market:void 0});function ne({children:e,market:t,showEnvSelector:o}){return(0,c.useEffect)(()=>{const e=()=>{document.body.classList.remove("is-tabbing")},t=e=>{"Tab"===e.key&&document.body.classList.add("is-tabbing")};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[]),(()=>{const e=(0,c.useRef)(0);(0,c.useEffect)(()=>{const t=()=>{Date.now()-e.current<500||document.body.classList.add(A)},o=()=>{e.current=Date.now(),document.body.classList.remove(A)};return document.addEventListener("mousemove",t),document.addEventListener("touchstart",o),t(),()=>{document.removeEventListener("mousemove",t),document.removeEventListener("touchstart",o),o()}},[])})(),(0,d.jsx)(i.uN,{children:(0,d.jsxs)(oe.a,{theme:{designTokens:i.ue,market:t},children:[o&&(0,d.jsx)(X,{}),(0,d.jsx)(te,{}),(0,d.jsx)(q,{children:(0,d.jsx)(re.Provider,{value:{designTokens:i.ue,market:t},children:e})})]})})}},"../../libs/utils/dist/index.mjs"(e,t,o){"use strict";o.d(t,{y9:()=>a,J8:()=>i,FY:()=>r,U9:()=>m});const r=e=>{((e,t,o=365)=>{if("undefined"==typeof document)return;const r=new Date;r.setTime(r.getTime()+24*o*60*60*1e3);const n=`expires=${r.toUTCString()}`;document.cookie=`${e}=${t};${n};path=/`})(e,"",0)};o("../../../node_modules/.pnpm/@[email protected]/node_modules/@telia-company/tv.common-sdk/dist/DataManager.js");var n=o("../../libs/core/dist/index.mjs");o("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js");const a="AppLanguage";var s=o("../../../node_modules/.pnpm/[email protected]/node_modules/i18next-browser-languagedetector/dist/esm/i18nextBrowserLanguageDetector.js");const i=({languageMap:e})=>{const t=new s.A;return t.addDetector({lookup:()=>c((e=>{if("undefined"==typeof document)return"";const t=`${e}=`,o=decodeURIComponent(document.cookie).split(";");for(let e=0;e<o.length;e++){let r=o[e];for(;" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return""})(a),e)??e[n.x6],name:"marketDetector"}),t},c=(e,t)=>{if(e)return t[e.toUpperCase()]??e.toLowerCase()};var d=o("../../../node_modules/.pnpm/[email protected][email protected]/node_modules/i18next/dist/esm/i18next.js"),l=o("../../../node_modules/.pnpm/[email protected]/node_modules/i18next-http-backend/esm/index.js"),p=o("../../../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");const m=({backend:e,callback:t,instance:o=d.Ay,plugins:r=[],react:n,...a})=>{const s=r.reduce((e,t)=>
1088e.use(t),o);return e&&s.use(l.A),s.use(p.r9),s.init({...a,backend:e,react:{useSuspense:!0,...n}},t)}}},e=>{var t=t=>e(e.s=t);e.O(0,[88,117,249,310,754,644,96],()=>(t("./node_modules/.cache/datadog-build-plugins/webpack.1.__datadog-helper-file.js"),t("./src/index.tsx")));e.O()}]);
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.