1"use strict";(globalThis.webpackChunk_telia_company_tv_web_logged_in=globalThis.webpackChunk_telia_company_tv_web_logged_in||[]).push([[26],{"./src/cdp/views/CdpSeriesView.tsx"(e,s,t){t.r(s),t.d(s,{default:()=>A});var o=t("../../../node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected][email protected]_support_a0dcb4b0ae680db98626d6fd11a2b9d9/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js"),r=t("../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_react-_23af7fe1a84405345a895683eefe299d/node_modules/@apollo/client/core/networkStatus.js"),a=t("../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_react-_23af7fe1a84405345a895683eefe299d/node_modules/@apollo/client/react/hooks/useQuery.js"),i=t("./src/cdp/components/Cdp/hooks/useCdpEngagementAccessEventListener.ts"),d=t("./src/cdp/components/Cdp/hooks/useCdpMyListEventListener.ts"),n=t("./src/cdp/components/Cdp/hooks/useCdpNpvrEventListener.ts"),c=t("./src/cdp/Context/CdpFilterContext.tsx"),p=t("./src/codegen/graphql.ts"),l=t("./src/core/router/hooks/useNavigateToRootLocation/index.ts"),m=t("./src/npvr/utils/getNpvrStatus.ts"),u=t("./src/shared/components/custom/DecoratedHelmet.tsx"),g=t("./src/shared/components/custom/MediaDetails/utils/getMediaProgress.ts"),_=t("./src/shared/errors/InvalidInputError.ts"),h=t("./src/shared/hooks/useRetryAfterInMs.tsx"),w=t("./src/shared/utils/breakpoints/mq.ts"),b=t("./src/watch/utils/getPlaybackMetadata.ts"),v=t("./src/watch/utils/getValidMedias.ts"),k=t("./src/watch/utils/isValidDeepLinkMedia.ts"),x=t("../../libs/error-monitoring/dist/index.mjs"),f=t("../../../node_modules/.pnpm/[email protected]/node_modules/react/index.js"),C=t("../../../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=t("../../../node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/react-router/dist/development/chunk-62JRHF6Z.mjs"),T=t("./src/cdp/components/Cdp/index.ts"),S=t("./src/cdp/components/Cdp/components/CdpSiblingInfo/index.ts"),E=t("./src/cdp/components/CdpUpcomingEpisode/index.ts"),R=t("./src/cdp/hooks/useRedirectToChildSafeRouteIfNotChildSafeMedia.ts"),I=t("./src/cdp/hooks/useTrackCdp.ts"),N=t("./src/cdp/utils/getCdpUpsellData/getCdpUpsellData.ts"),L=t("./src/cdp/views/CdpEpisodeView/components/CdpSeasonList/index.ts"),M=t("../../../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 j=(0,o.A)(E.Z,{target:"ex9wlrw1"})("margin-top:40px;",w.mq.M` 2 margin-top: 56px; 3 `,";"),q=(0,o.A)(L.j,{target:"ex9wlrw0"})("margin-top:40px;",w.mq.M` 4 margin-top: 56px; 5 `,";"),A=(0,c.E)(()=>{const{t:e}=(0,C.Bd)(),{id:s}=(0,y.g)();if(!s)throw new _.o("CdpSeriesView","Missing series id parameter");const{filter:t}=(0,c.G)(),{navigateToRootLocation:o}=(0,l.N)(),{data:w,error:E,loading:L,networkStatus:A,refetch:D}=(0,a.I)(p._mA,{errorPolicy:"all",fetchPolicy:"cache-and-network",notifyOnNetworkStatusChange:!0,variables:{filterInput:t,id:s}});(0,h.n)({error:E,refetch:D}),(0,n.$)({mediaId:w?.series?.suggestedEpisode?.id,refetch:D,seriesId:w?.series?.id}),(0,d.p)({mediaId:w?.series?.suggestedEpisode?.id,refetch:D,seriesId:w?.series?.id}),(0,i.E)({refetch:D}),(0,I.y)({contentType:"series",media:w?.series,pageObject:{id:"series_content_details",params:{seriesId:s}}});const U="default"!==(0,y.zy)().key;(0,R.g)({media:w?.series,skip:L||U});const V=(0,f.useMemo)(()=>(0,N.B)(w?.series?.suggestedEpisode),[w?.series?.suggestedEpisode]),{rentalTime:B}=(0,b.L)({currentTime:Date.now(),playback:w?.series?.suggestedEpisode?.playback});if(L&&!w?.series?.id)return null;if(E&&A===r.p.error&&(0,x.vV)(new Error("Error from useGetCdpSeriesQuery",{cause:E}),{context:"CdpSeriesView"}),!w?.series?.id)throw new _.o("CdpSeriesView","Missing series id");const{series:F}=w,G=F?.suggestedEpisode,H=G?.playback,P=F?.upcomingEpisode||null,Y=(0,g.w)(G);let O=null;if(G){const{hasEnded:e,hasStarted:s,isNpvr:t,isRecorded:o,isRecording:r,programStartTime:a,recordingStartTime:i}=(0,m.B)(G);O={hasEnded:e,hasStarted:s,isNpvr:t,isRecorded:o,isRecording:r,startTime:a||i}}const $=G&&G.description,J=F?.description?`${e("ABOUT_THE_SERIES")}: ${F.description}`:null,K=(0,v.q)(H)[0],Q=(0,k.R)(K)?K:null,Z=Boolean(Q?.item.activationUrl),z=Q?.item?.serviceName,W=F.images?.backdrop16x9?.colors?.muteBgColor?.hex;return(0,M.FD)(M.FK,{children:[(0,M.Y)(u.J,{title:F.title}),(0,M.FD)(T.A,{actors:F.actors||G?.actors,announcement:F.cdp?.announcement,audioLanguages:G?.audioLanguages,availableFrom
5:G?.availability?.from?.text,availableTo:G?.availability?.to?.text,backdropImageSrc:F.images?.backdrop16x9?.source,backdropLogId:F.id,backgroundColor:W,blurHash:F.images?.backdrop16x9?.colors?.blurHash,"data-testid":"cdp-series-view",description:$,directors:F.directors||G?.directors,extraDescription:J,genre:F.genre||G?.genre,hasSelectionMenu:V?.hasSelectionMenu,isActivationNeeded:Z,isInternalSubscription:V?.isInternalSubscription,labels:F.cdp.labels||G?.cdp?.labels,media:F,metadataRow:F.cdp.metadataRow||G?.cdp?.metadataRow,metadataRowThree:G?.cdp?.metadataRowThree||F.cdp.metadataRowThree,metadataRowTwo:G?.cdp?.metadataRowTwo||F.cdp.metadataRowTwo,npvrData:O,onClose:o,playInfoText:F.cdp.playInfo,progress:Y,providerLogoUrl:F.provider?.icons.dark.source,purchaseInfoText:F.cdp.purchaseInfo||G?.cdp?.purchaseInfo,rentalTime:B,serviceName:z,showUpgradeSubscriptionAlert:V?.showUpgradeSubscriptionAlert,subGenres:F.subGenres||G?.subGenres,title:F.title,children:[(0,M.Y)(S.K,{data:F.cdp.siblingInfo,overlayColor:W}),!O?.isNpvr&&P&&(0,M.Y)(j,{upcomingEpisode:P}),(0,M.Y)(q,{backgroundColor:W,data:w})]})]})})},"./src/core/router/hooks/useNavigateToRootLocation/index.ts"(e,s,t){t.d(s,{N:()=>o.N});var o=t("./src/core/router/hooks/useNavigateToRootLocation/useNavigateToRootLocation.ts")}}]);
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.