PageSourceSearch

https://www.tvagder.no/_next/static/chunks/6067-76e7a7dc3d2b611b.js?dpl=dpl_Fwf3uTMAPePkbWJTLbNp3q1qdmbr

js tvagder.no collected 2026-10-04 17:00:38 UTC 30,259 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6067],{3964:(e,t,l)=>{l.d(t,{useRouteTracker:()=>s});var a=l(50549),r=l(8884);function s(e){let{currentPath:t,previousPath:l}=(0,r.b)(),[s,n]=(0,a.useState)(!1),[i,o]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{var a,r;if(t===l)return;o(null===l);let s=null!=(a=null==t?void 0:t.includes(e))&&a,i=null!=(r=null==l?void 0:l.includes(e))&&r;n(s&&!i)},[t,l,e]),{isRoutePatternChanged:s,isFreshPageLoad:i}}},7925:(e,t,l)=>{l.d(t,{C:()=>x,RealUserMonitoring:()=>m,S:()=>h});var a=l(64721),r=l(46698),s=l(41461),n=l(59387),i=l(58595),o=l(9009),c=l(89910),d=l(50549);let u=!1,m=()=>{let{email:e}=(0,i.useAuthentication)(),[t,s]=(0,d.useState)(),[n,m]=(0,d.useState)(),x=(0,c.l)("NEXT_PUBLIC_ENVIRONMENT"),h=(0,c.l)("NEXT_PUBLIC_TENANT"),p="".concat(h,"-").concat(x);return(0,d.useEffect)(()=>{e&&(t&&t.setUser({email:e}),n&&n.setUser({email:e}))},[e,t,n]),(0,d.useEffect)(()=>{if((0,r.cW)())return;let e=(0,o.d)();Promise.resolve().then(l.bind(l,59387)).then(t=>{var l,a;let r=t.datadogRum;r.init({applicationId:"727278c7-cae3-4a23-a976-3e4667d66544",clientToken:"pub1f2a879d73462b803dfaa1990f0bee85",site:"datadoghq.com",service:"vimond-via-webapp",env:p,...e?{version:e}:{},sessionSampleRate:parseInt(null!=(l=(0,c.l)("NEXT_PUBLIC_DATADOG_RUM_SAMPLE_RATE"))?l:"0.1",10),sessionReplaySampleRate:parseInt(null!=(a=(0,c.l)("NEXT_PUBLIC_DATADOG_RUM_REPLAY_SAMPLE_RATE"))?a:"0.1",10),trackUserInteractions:!0,trackResources:!0,trackLongTasks:!0,defaultPrivacyLevel:"mask-user-input"}),s(r),u=!0}).catch(e=>r.vF.error("Failed to load datadogRum",e)),Promise.resolve().then(l.bind(l,41461)).then(t=>{var l;let a=t.datadogLogs;a.init({clientToken:"pub1f2a879d73462b803dfaa1990f0bee85",site:"datadoghq.com",service:"vimond-via-webapp",env:p,...e?{version:e}:{},forwardErrorsToLogs:!0,sessionSampleRate:parseInt(null!=(l=(0,c.l)("NEXT_PUBLIC_DATADOG_LOGS_SAMPLE_RATE"))?l:"100",10)}),m(a),u=!0}).catch(e=>r.vF.error("Failed to load datadogLogs",e))},[p]),(0,a.jsx)(a.Fragment,{})},x=e=>{let{context:t={},error:l,message:a="Error"}=e;if(u){n.datadogRum.addError(l);let e="".concat(a," ").concat(JSON.stringify(t));s.datadogLogs.logger.error(e,t,l)}},h=e=>{let{context:t={},message:l}=e;if(u){n.datadogRum.addAction(l,t);let e="".concat(l," ").concat(JSON.stringify(t));s.datadogLogs.logger.info(e,t)}}},8884:(e,t,l)=>{l.d(t,{b:()=>s});var a=l(50549),r=l(61932);function s(){let e=(0,a.useContext)(r.RouteHistoryContext);if(!e)throw Error("useRouteHistory should be used within RouteHistoryProvider");return e}},10181:(e,t,l)=>{l.d(t,{VideoPlaybackErrorDisplay:()=>o});var a=l(64721),r=l(26235),s=l(84970),n=l(94836),i=l(75997);let o=e=>{let{error:t}=e,{t:l}=(0,r.B)();return(0,a.jsxs)("div",{className:"bg-background grid min-h-full place-items-center px-6 py-24 text-center sm:py-32 lg:px-8",children:[(0,a.jsx)("div",{className:"mb-6",children:(0,a.jsx)(i.A,{className:"text-primary mx-auto h-16 w-16"})}),(0,a.jsx)("p",{className:"text-text-secondary text-base font-semibold",children:l("something-went-wrong")}),(0,a.jsx)("h1",{className:"text-primary mt-4 text-3xl font-bold tracking-tight sm:text-5xl",children:l("unable-to-start-playback")}),(null==t?void 0:t.code)?(0,a.jsxs)("p",{className:"text-text-secondary mt-6 text-sm leading-6",children:[t.code," - ",t.title]}):(0,a.jsx)("p",{className:"text-text-secondary mt-6 text-base leading-7",children:l("sorry-we-couldnt-play-the-video")}),(0,a.jsx)("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:(0,a.jsx)(s.Link,{href:"/",children:(0,a.jsx)(n.Button,{variant:"primary",children:l("go-back-home")})})})]})}},10665:(e,t,l)=>{l.d(t,{MediaShareButton:()=>v});var a=l(64721),r=l(26235),s=l(46698),n=l(51072),i=l(47375),o=l(91277),c=l(63337),d=l(78612),u=l(98117),m=l(27453),x=l(89910),h=l(50549),p=l(82252),f=l(73329);function v(e){let{buttonText:t,className:l,contentId:v,contentTitle:b,iconClassName:g}=e,[y,w]=(0,h.useState)(!1),[j,N]=(0,h.useState)(!1),[k,E]=(0,h.useState)(!1),[P,_]=(0,h.useState)(""),[T,I]=(0,h.useState)(""),{locale:L}=(0,m.useLocale)(),{t:A}=(0,r.B)();function C(){w(!1)}(0,h.useEffect)(()=>{var e;let t="".concat(window.location.origin,"/embedded/assets/").concat(v,"?language=").concat(L);_('<iframe width="800" height="450" src="'.concat(t,'" title="').concat(null!=(e=null!=b?b:(0,x.l)("NEXT_PUBLIC_SITE_NAME"))?e:"VIA Inline Playlist",'" style="border:0;" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture;" allowfullscreen></iframe>')),I(window.location.href)},[]);let S=async(e,t)=>{try{await navigator.clipboard.writeText(e),"url"===t?(N(!0),setTimeout(()=>N(!1),2e3)):(E(!0),setTimeout(()=>E(!1),2e3))}catch(e){s.vF.error("Failed to copy: ",e)}}
1,R=(0,a.jsxs)(n.Lj,{className:"relative w-full max-w-md sm:max-w-lg p-6 sm:my-8 rounded-2xl shadow-2xl bg-background-secondary/80 backdrop-blur-2xl drop-shadow-xl shadow-black/55 overflow-hidden text-left transition-all",children:[(0,a.jsx)(i.A,{className:"absolute top-4 right-4 h-5 w-5 cursor-pointer text-text-secondary","aria-hidden":"true",onClick:C}),(0,a.jsxs)("div",{className:"px-6 py-6 sm:py-8",children:[(0,a.jsxs)("div",{className:"mb-6 mt-1 flex items-center gap-3",children:[(0,a.jsx)(o.A,{className:"h-6 w-6 text-text-primary"}),(0,a.jsx)("h3",{className:"text-xl font-semibold text-text-primary",children:A("share.video.headline")})]}),(0,a.jsxs)("div",{className:"mb-8 flex justify-center gap-4",children:[(0,a.jsx)(p.uI,{htmlTitle:"Facebook",hashtag:b,url:T,children:(0,a.jsx)(p.ik,{size:46,round:!0,className:"hover:contrast-125 hover:brightness-90"})}),(0,a.jsx)(p.wk,{htmlTitle:"Linkedin",title:b,url:T,children:(0,a.jsx)(p._z,{size:46,round:!0,className:"hover:contrast-125 hover:brightness-90"})}),(0,a.jsx)(p.r6,{htmlTitle:"X",title:b,url:T,children:(0,a.jsx)(p.uv,{size:46,round:!0,className:"hover:contrast-125 hover:brightness-90"})})]}),(0,a.jsx)("div",{className:"mb-4 text-center",children:(0,a.jsx)("p",{className:"text-sm font-semibold text-text-primary",children:A("share.link")})}),(0,a.jsxs)("div",{className:"mb-6 flex items-center justify-between rounded-lg border border-background-border bg-background-secondary/55 px-4 py-3",children:[(0,a.jsx)("span",{className:"mr-3 w-full truncate text-sm text-text-secondary",children:T}),(0,a.jsx)("button",{className:"flex items-center gap-1.5 text-sm font-medium text-primary hover:underline",onClick:()=>S(T,"url"),children:j?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.A,{className:"h-4 w-4"}),A("button.copied.text")]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.A,{className:"h-4 w-4"}),A("button.copy.text")]})})]}),"false"!==(0,x.l)("NEXT_PUBLIC_ENABLE_EMBED_CODE_SHARING")&&P&&(0,a.jsxs)("div",{className:"mb-2",children:[(0,a.jsx)("div",{className:"mb-3 flex items-center justify-between px-1",children:(0,a.jsxs)("p",{className:"flex items-center gap-1 text-sm font-medium text-text-primary",children:[(0,a.jsx)(u.A,{className:"mr-1 h-4 w-4"})," ",A("embed-code")]})}),(0,a.jsxs)("div",{className:"rounded-lg border border-background-border",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between border-b border-background-border bg-background-primary/10 px-3 py-2",children:[(0,a.jsx)("span",{className:"text-xs font-semibold uppercase tracking-wide text-text-secondary",children:"HTML"}),(0,a.jsx)("button",{className:"flex items-center gap-1.5 text-sm font-medium text-primary hover:underline",onClick:()=>S(P,"embed"),children:k?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.A,{className:"h-4 w-4"}),A("button.copied.text")]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.A,{className:"h-4 w-4"}),A("button.copy.text")]})})]}),(0,a.jsx)("div",{id:"embed-code",className:"w-full bg-background-secondary/55 px-4 py-2 text-xs font-mono text-text-primary outline-none select-text leading-relaxed overflow-scroll md:h-[90px]",children:P})]})]})]})]});return(0,a.jsxs)("button",{className:l,onClick:function(e){e.stopPropagation(),w(!0)},children:[(0,a.jsx)(o.A,{className:null!=g?g:"h-8 w-8",title:"Share"}),t&&(0,a.jsx)("span",{children:t}),(0,a.jsx)(f.A,{showModal:y,closeModal:C,modalContent:R})]})}},45923:(e,t,l)=>{l.r(t),l.d(t,{ExpandableText:()=>i});var a=l(64721),r=l(61177),s=l(50549);let n={1:"line-clamp-1",2:"line-clamp-2",3:"line-clamp-3",4:"line-clamp-4",5:"line-clamp-5",6:"line-clamp-6"},i=e=>{let{className:t,lines:l=3,text:i}=e,[o,c]=(0,s.useState)(!1),d=()=>c(e=>!e);return(0,a.jsx)("p",{className:(0,r.cn)(t,"cursor-pointer",!o&&n[l]),onClick:d,role:"button",tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&d()},"aria-expanded":o,children:i})}},51334:(e,t,l)=>{l.d(t,{PlayerProfilesProvider:()=>h,usePlayerProfilesContext:()=>p});var a=l(64721),r=l(50549),s=l(12615),n=l(16492),i=l(89910);let o=e=>"object"==typeof e&&null!==e&&!!("string"==typeof e.id&&"string"==typeof e.position&&(e=>"object"==typeof e&&null!==e&&"string"==typeof e.type&&"string"==typeof e.url)(e.tag))&&(void 0===e.adUnitName||null===e.adUnitName||"string"==typeof e.adUnitName),c=e=>"object"==typeof e&&null!==e&&"string"==typeof e.id&&"string"==typeof e.name&&Array.isArray(e.adBreaks)&&e.adBreaks.every(o),d=n.V?(0,i.l)("NEXT_PUBLIC_TENANT_ID"):(0,i.l)("NEXT_PUBLIC_TENANT"),u="https://".concat(d,".player-profile-api.").concat((0,i.l)("NEXT_PUBLIC_ENVIRONMENT"),".vmnd.tv/profiles"),m=async()=>{let e=await fetch(u);if(!e.ok)throw Error("Failed to fetch player profiles");let t=await e.json();if(!(e=>!!("object"==typeof e&&null!==e&&Array.isArray(e.data))&&e.data.every(c))(t))throw Error("Invalid player profile response");return t},x=(0,r.createContext)(void 0),h=e=>{let{children:t}=e,l=(()=>{let{data:{data:e}={},isLoading:t}=(0,s.I)({queryKey:["playerProfiles"],queryFn:m,enabled:"true"===(0,i.l)("NEXT_PUBLIC_USE_PLAYER_PROFILE_SERVICE"),staleTime:3e5,refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:1}),l=(0,i.l)("NEXT_PUBLIC_DEFAULT_AD_PROFILE_ID");return{playerProfiles:e,isLoading:t,getAdBreaksForProfile:t=>{if(!e)return;
1let a=null==t?void 0:t.trim(),r=null==l?void 0:l.trim(),s=""===a?void 0:a,n=""===r?void 0:r,i=null!=s?s:n;if(!i)return;let o=e.find(e=>e.id===i);if(null==o?void 0:o.adBreaks)return o.adBreaks;if(s&&n&&n!==s){var c;return null==(c=e.find(e=>e.id===n))?void 0:c.adBreaks}}}})();return(0,a.jsx)(x.Provider,{value:l,children:t})},p=()=>{let e=(0,r.useContext)(x);if(void 0===e)throw Error("usePlayerProfilesContext must be used within a PlayerProfilesProvider");return e}},55105:(e,t,l)=>{l.d(t,{VideoPlayback:()=>N});var a=l(64721),r=l(82091),s=l(7925),n=l(64385),i=l(10665),o=l(46698),c=l(51334),d=l(61177),u=l(89910),m=l(30627),x=l(50549),h=l(99329),p=l(45923),f=l(60177),v=l(73602);let b=e=>{let{contentId:t,description:l,publishTime:r,title:s}=e,{i18n:n,t:o}=(0,v.Bd)(),{language:c}=n;return(0,a.jsxs)("div",{className:"w-full mt-6 px-5 py-3 animate-fade-in bg-background shadow-sm lg:rounded-xl",children:[(0,a.jsx)("h1",{className:"font-semibold text-xl sm:pt-2 sm:text-2xl lg:text-3xl",children:s}),(0,a.jsxs)("div",{className:"flex justify-between items-end",children:["true"===(0,u.l)("NEXT_PUBLIC_SHOW_PUBLISH_DATE")&&r&&(0,a.jsx)("div",{className:"flex items-center gap-4 text-shadow text-sm opacity-75",children:(0,a.jsx)("span",{children:(0,f.n)(r,o,c)})}),(0,a.jsx)(i.MediaShareButton,{className:"flex w-20 h-7 mt-1 justify-evenly items-center rounded-lg border border-background-border outline-none shadow-sm shadow-slate-500 text-sm opacity-80 sm:font-semibold sm:w-24 sm:h-8 sm:px-2 hover:bg-background-border",iconClassName:"w-4 h-4 sm:w-5 sm:h-5 opacity-95",contentId:t,contentTitle:s,buttonText:"Share"})]}),(0,a.jsx)("div",{className:"mt-3 border-t border-background-border opacity-75",children:l&&(0,a.jsx)(p.ExpandableText,{text:l,className:"my-2 text-sm leading-6 sm:text-base font-medium text-text-input"})})]})};var g=l(10181);let y=(0,m.default)(()=>Promise.all([l.e(1589),l.e(8229),l.e(5874),l.e(8002),l.e(3904),l.e(4510)]).then(l.bind(l,44510)).then(e=>e.BitmovinPlayer).catch(e=>{throw o.vF.error("[VideoPlayback] Failed to load BitmovinPlayer module:",e),o.vF.error("[VideoPlayback] Error details:",{message:e instanceof Error?e.message:String(e),stack:e instanceof Error?e.stack:void 0,name:e instanceof Error?e.name:void 0}),e}),{loadableGenerated:{webpack:()=>[44510]},ssr:!1}),w=(0,m.default)(()=>Promise.all([l.e(6438),l.e(9278),l.e(2537),l.e(3080),l.e(4337),l.e(3576),l.e(7496),l.e(8008),l.e(9929),l.e(1618)]).then(l.bind(l,89929)).then(e=>e.default).catch(e=>{throw o.vF.error("[VideoPlayback] Failed to load VideoJsPlayer module:",e),o.vF.error("[VideoPlayback] Error details:",{message:e instanceof Error?e.message:String(e),stack:e instanceof Error?e.stack:void 0,name:e instanceof Error?e.name:void 0}),e}),{loadableGenerated:{webpack:()=>[89929]},ssr:!1}),j=e=>{var t;let{asset:l,muted:m,onPlaybackFinished:p,onPlaybackPositionChanges:f,playback:v,playbackError:j,showFullScreenVideo:N=!0,startPosition:k,withVideoInfoDetails:E}=e,[P,_]=(0,x.useState)(!1),T="true"===(0,u.l)("NEXT_PUBLIC_9_BY_16_PLAYER"),I=T&&P,{getAdBreaksForProfile:L,isLoading:A}=(0,c.usePlayerProfilesContext)(),C=L(l.adProfile);(0,x.useEffect)(()=>{let e=/Android|webOS|iPhone|BlackBerry|IEMobile/i.test(window.navigator.userAgent),t=()=>_(e||window.innerWidth<=476);return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]);let S=(0,h.YQ)(e=>{v&&(null==p||p(e))},1e3),R=(0,h.YQ)((e,t)=>{v&&(null==f||f(e,t))},1e3,{maxWait:5e3}),B=(0,h.YQ)((e,t)=>{v&&(null==f||f(e,t))},1e3),F=(0,o.xy)({asset:l,verticalPlayer:T}),U="true"===(0,u.l)("NEXT_PUBLIC_USE_VIDEOJS_PLAYER")?w:y;return(0,a.jsxs)(r.A,{condition:!N,className:"flex flex-col w-full",children:[(0,a.jsxs)("div",{className:(0,d.cn)("relative flex items-center justify-center overflow-hidden",N&&"h-screen w-screen",I&&"h-[65vh]",A&&"bg-gray-900"),children:[(0,a.jsx)("div",{className:"absolute z-10 left-3 top-
15",children:(0,a.jsx)(n.o,{})}),A?(0,a.jsx)("div",{className:"flex items-center justify-center w-full h-full aspect-video",children:(0,a.jsx)("div",{className:"w-12 h-12 border-b-2 border-white rounded-full animate-spin"})}):(0,a.jsx)("div",{className:"w-full h-full aspect-video",children:(0,a.jsxs)("div",{className:(0,d.cn)(N?"h-screen":"h-full w-full custom-mini-player-ui",E&&"custom-invisible-title-player"),children:[!j&&v?(0,a.jsx)(U,{videoKey:v.assetId,playback:{...v,assetTitle:l.title||v.assetTitle},muted:m,startPosition:k,poster:F,onPlaybackFinished:S,onPlaybackPaused:B,onPlaybackPositionChanges:R,adBreaks:C,addError:s.C,addLog:s.S,vertical:T,asset:l},v.assetId):(v||o.vF.warn("[VideoPlayback] Not rendering player for asset ".concat(l.id,": playback data is missing")),j&&o.vF.error("[VideoPlayback] Not rendering player for asset ".concat(l.id,": playback error present"),j),null),j&&(0,a.jsx)(g.VideoPlaybackErrorDisplay,{error:j})]})}),!E&&(0,a.jsx)("div",{className:"absolute z-10 right-5 top-5","data-share-button":!0,children:"false"!==(0,u.l)("NEXT_PUBLIC_ENABLE_SOCIAL_MEDIA_SHARING")&&(0,a.jsx)(i.MediaShareButton,{contentId:l.id,contentTitle:l.title})})]}),E&&(0,a.jsx)(b,{contentId:l.id,title:l.title,description:null!=(t=l["description-short"])?t:l.description,publishTime:l.publishing.start})]})};j.displayName="VideoPlayback";let N=(0,x.memo)(j)},59197:(e,t,l)=>{l.d(t,{Bx:()=>r.useRouteTracker,bG:()=>a.b});var a=l(8884),r=l(3964);l(61932)},61932:(e,t,l)=>{l.r(t),l.d(t,{RouteHistoryContext:()=>n,RouteHistoryProvider:()=>i});var a=l(64721),r=l(94106),s=l(50549);let n=(0,s.createContext)({currentPath:null,previousPath:null});function i(e){let{children:t}=e,l=(0,r.usePathname)(),[i,o]=(0,s.useState)({currentPath:l,previousPath:null});return(0,s.useEffect)(()=>{o(e=>e.currentPath===l?e:{currentPath:l,previousPath:e.currentPath})},[l]),(0,a.jsx)(n.Provider,{value:i,children:t})}},64385:(e,t,l)=>{l.d(t,{o:()=>i});var a=l(64721),r=l(59197),s=l(65346),n=l(94106);function i(e){let{children:t,className:l}=e,i=(0,n.useRouter)(),{previousPath:o}=(0,r.bG)();return(0,a.jsxs)("button",{className:l,onClick:()=>{try{var e;
1let t=null==(e=document.referrer)?void 0:e.startsWith(window.location.origin);if(window.history.length>1&&(o||t))return void i.back();i.replace("/")}catch(e){i.replace("/")}},children:[(0,a.jsx)(s.A,{className:"h-8 w-8 text-white"}),t]})}},72665:(e,t,l)=>{l.d(t,{PlaylistController:()=>F});var a=l(64721),r=l(59197),s=l(55105);l(10181);var n=l(50549),i=l(64385),o=l(18702),c=l(70006),d=l(42308),u=l(1315),m=l(81385);let x=u.Ik({title:u.Yj(),detail:u.Yj(),code:u.Yj()}),h=u.Ik({errors:u.YO(x).optional()}),p=e=>{let{jwt:t,subprofileToken:l,position:a,playback:r}=e;if(!t||0===t.length)return console.error("No JWT found"),Promise.resolve();if(!l||0===l.length)return console.error("No subprofile token found"),Promise.resolve();if(!r.playerEventRequest||r.isLive||!a||a<10)return Promise.resolve();let s={...r.playerEventRequest.body,timestamp:new Date().toISOString(),originator:"vimond-via-webplay",client:{buildName:"vimond-via-webplay",buildVersion:"1.0.0",viewingSession:t},progress:{...r.playerEventRequest.body.progress,vod:{...r.playerEventRequest.body.progress.vod,position:a.toFixed(2)}}},n={method:"POST",headers:{"content-type":"application/json",accept:"application/json",authorization:"Bearer ".concat(t),"X-Vimond-Subprofile":l},redirect:"follow",body:JSON.stringify(s)};return(0,m.C)(r.playerEventRequest.uri,n).then(e=>204===e.status?{}:e.json()).then(e=>{let t=h.parse(e);if(t.errors){var l;console.error(null==(l=t.errors[0])?void 0:l.detail)}})};var f=l(89910),v=l(99329),b=l(58595),g=l(25380),y=l(79798),w=l(51992),j=l(27453),N=l(61177),k=l(94106),E=l(26235),P=l(94836),_=l(3392),T=l(23241),I=l(56884),L=l(60177),A=l(86857),C=l.n(A);let S=e=>{var t,l;let{active:r,asset:s,showInPosterMode:n=!0,...i}=e,{i18n:o,t:c}=(0,E.B)(),{language:d}=o,u="true"===(0,f.l)("NEXT_PUBLIC_SHOW_PUBLISH_DATE");return(0,a.jsx)(C(),{href:"/watch/".concat(s.id),children:(0,a.jsx)("article",{...i,"data-testid":"playlist-item",className:(0,N.cn)("my-px w-full max-w-full overflow-hidden cursor-pointer hover:opacity-90",r&&"border-[1px] border-white",n?"aspect-video rounded-md":"h-[84px] xs-md:h-auto lg:h-[104px] 2xl:h-36"),children:(0,a.jsxs)("div",{className:(0,N.cn)("relative flex h-full w-full",n?"aspect-video flex-col":"xs-md:flex-col"),children:[(null==(t=s.images)?void 0:t.defaultUrl)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(T.Artwork,{alt:"",src:null==(l=s.images)?void 0:l.defaultUrl,location:"portal-carousel",fallbackToDefault:!0,width:255,height:145,className:(0,N.cn)("rounded-sm aspect-video",n?"object-cover w-full h-full":"object-contain w-auto xs-md:w-full bg-slate-950")}),(0,a.jsx)("div",{className:"relative",children:(0,a.jsx)("div",{className:(0,N.cn)("absolute bottom-2 right-2 px-2 py-1 bg-black text-white bg-opacity-75 rounded-sm font-extrabold text-xs z-10"),children:(0,I.s)(s.duration)})})]}),n&&(0,a.jsx)(_.x,{}),(0,a.jsxs)("div",{className:(0,N.cn)("flex flex-col justify-start",n?"flex-shrink-0 text-shadow absolute bottom-0 left-2 right-2 text-left text-white lg:bottom-4 lg:left-4 lg:right-4":"w-[50%] xs-md:w-auto lg:w-auto py-2 px-3 xs-md:px-1 lg:px-4 md:pt-2 h-full"),children:[(0,a.jsx)("h2",{className:"text-ellipsis text-sm xs-lg:text-base lg:text-lg font-bold line-clamp-2 2xl:line-clamp-3",children:s.title}),u&&s.publishing.start&&(0,a.jsx)("div",{className:"mt-1",children:(0,a.jsx)("span",{className:"text-xs lg:text-sm",children:(0,L.n)(s.publishing.start,c,d)})})]})]})})})},R=e=>{let{countdown:t,nextAsset:l,onClick:r,onUserCancelCountdown:s}=e,{t:n}=(0,E.B)();if(!l)return null;let i=Math.max(0,Math.min(100,(t-1)/10*100)).toFixed(2);return(0,a.jsx)("div",{className:"text-shadow absolute z-10 flex items-center justify-center max-md:bottom-0 max-md:left-0 max-md:right-0 max-md:top-0 max-md:h-screen max-md:w-full md:bottom-4 md:right-4",children:(0,a.jsxs)("div",{className:"m-auto flex w-[300px] flex-col items-center gap-1 rounded-lg bg-black bg-opacity-70 p-2 overflow-hidden box-border",children:[(0,a.jsx)("span",{className:"text-button-primary-text",children:n("starting-next-video-in-x-seconds",{count:t})}),(0,a.jsx)("div",{className:"bg-button-primary-background rounded-md py-1 transition-all duration-1000 ease-linear",style:{width:"".concat(i,"%")}}),(0,a.jsx)(S,{asset:l,active:!0,onClick:()=>{null==r||r(l.id)}}),(0,a.jsx)(P.Button,{variant:"text",size:"xs",type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),s()},children:n("cancel-autoplay")})]})})},B=e=>{var t;let{assets:l,currentlyPlayingId:r,isHidden:s,onClick:n}=e,i=(null==(t=(0,k.usePathname)())?void 0:t.includes("/watch"))&&!o.XJ;return(0,a.jsx)("div",{className:(0,N.cn)("right-2 transition-opacity",i?"absolute bottom-24 top-16 overflow-y-auto":"w-full px-3 my-4 lg:max-h-[100%] lg:h-auto lg:top-0 lg:right-3 lg:bottom-0 lg:w-[33vw]",i&&s?"o
1pacity-0":"opacity-100"),children:(0,a.jsx)("div",{className:"lg:overflow-y-hidden lg:hover:overflow-y-auto overflow-x-hidden ".concat(i?"hidden flex-col gap-1 sm:flex":"grid gap-2 xs-sm:grid-cols-2 md-only:grid-cols-3 lg:shadow-xl lg:h-full lg:max-h-[95vh] lg:flex lg:flex-col"),children:null==l?void 0:l.map((e,t)=>(0,a.jsx)(S,{asset:e,showInPosterMode:i,active:e.id===r,onClick:()=>{null==n||n(e.id)}},"asset-".concat(t,"-").concat(e.id)))})})},F=e=>{var t,l,u,m;let{asset:x,assets:h,playback:E}=e,P=(0,k.useRouter)(),{locale:_}=(0,j.useLocale)(),{isFreshPageLoad:T,isRoutePatternChanged:I}=(0,r.Bx)("".concat(_,"/watch/")),L=(0,n.useRef)(h);L.current=h;let[A,C]=(0,n.useState)(!1);(0,n.useEffect)(()=>{C((0,c.xV)(window.navigator))},[]);let[S,F]=(0,n.useState)(x.id),U=(0,n.useRef)(S);U.current=S;let{error:V,isLoading:D,playback:O}=(0,w.usePlayback)(x.id,window.navigator.userAgent,E),M=null!=E?E:O,[X,z]=(0,n.useState)();(0,w.usePlayback)(null!=(u=null==X?void 0:X.id)?u:"",window.navigator.userAgent);let[Y,H]=(0,n.useState)(null),G=(0,n.useRef)(null),q=(0,n.useRef)(null),W=(0,n.useRef)(null),J=(0,n.useRef)(!1),{isHidden:Q,setIsHidden:K}=(()=>{let[e,t]=(0,n.useState)(!0),[,l]=(0,n.useState)(3);return(0,n.useEffect)(()=>{let e=()=>{t(!1),l(3)};return document.addEventListener("mousemove",e),document.addEventListener("touchmove",e),document.addEventListener("touchstart",e),document.addEventListener("click",e),document.addEventListener("scroll",e),document.addEventListener("wheel",e),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("touchmove",e),document.removeEventListener("touchstart",e),document.removeEventListener("click",e),document.removeEventListener("scroll",e),document.removeEventListener("wheel",e)}},[]),(0,n.useEffect)(()=>{if(e)return;let a=setInterval(()=>{l(e=>0==e-1?(t(!0),0):e-1)},1e3);return()=>{clearInterval(a)}},[e]),{isHidden:e,setIsHidden:t}})(),Z=null==x||null==(t=x.markers)?void 0:t.find(e=>
1"End-Credits"===e.type),[$,ee]=(0,n.useState)(!1),et=(0,n.useRef)($);et.current=$;let{postPlayerEvent:el,postVideoFinishedEvent:ea}=(()=>{let{jwt:e}=(0,b.useAuthentication)(),{subprofileToken:t}=(0,g.useSubprofiles)(),l="true"===(0,f.l)("NEXT_PUBLIC_USE_PLAYER_SESSION_SERVICE"),a=(0,v.YQ)((0,d.n)({mutationFn:async a=>{let{playback:r,position:s}=a;l&&e&&0!==e.length&&t&&0!==t.length&&await p({jwt:e,subprofileToken:t,position:s,playback:r})}}).mutate,3e4,{maxWait:3e4}),r=(0,v.YQ)((0,d.n)({mutationFn:async a=>{let{playback:r,position:s}=a;l&&e&&0!==e.length&&t&&0!==t.length&&await p({jwt:e,subprofileToken:t,position:s,playback:r})}}).mutate,1e3);return{postPlayerEvent:a,postVideoFinishedEvent:r,postVideoPausedEvent:r}})(),{progress:er}=(0,y.r)(x.id,_),es=null!=(m=null!=er?er:null==M?void 0:M.startTime)?m:0;(0,n.useEffect)(()=>(K(!1),()=>{G.current&&(clearInterval(G.current),G.current=null)}),[K]),(0,n.useEffect)(()=>{Y&&K(!1)},[Y,K]);let en=(0,n.useCallback)(()=>{G.current&&(clearInterval(G.current),G.current=null)},[]),ei=(0,n.useCallback)(()=>{en(),H(null),q.current=null,J.current=!1},[en]),eo=(0,n.useCallback)(e=>{let t=L.current,l=t.findIndex(t=>t.id===e);if(-1!==l&&!(l>=t.length))return t[l+1]},[L]);(0,n.useEffect)(()=>{en(),H(null),F(x.id),U.current=x.id,q.current=null,W.current=null,J.current=!1,K(!0)},[x.id,en,K]),(0,n.useEffect)(()=>{z(eo(x.id))},[x.id,h,eo]);let ec=(0,n.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;M&&W.current!==e&&(W.current=e,ea({playback:M,position:M.duration||x.duration||-1}));let l=o.Rd||et.current,a=q.current===e;if(l||a)return;q.current=e;let r=eo(e);if(!r)return;z(r);let s=t;H(s),en();let n=setInterval(()=>{H(--s),s<=0&&(clearInterval(n),G.current=null,J.current||(J.current=!0,P.push("/watch/".concat(r.id))),H(null),F(r.id))},1e3);G.current=n},[x.duration,M,ea,P,en,eo]),ed=(0,n.useCallback)((e,t)=>{e===x.id&&e===(null==M?void 0:M.assetId)&&((null==Z?void 0:Z.startTime)&&t>=Z.startTime||x.duration&&t>=x.duration-10?ec(e,10):M&&el({playback:M,position:t}))},[x.duration,x.id,Z,ec,M,el]),eu=(0,n.useCallback)(e=>{let t=L.current.find(t=>t.id===e);t&&(F(t.id),ei())},[ei]),em=(null==(l=(0,k.usePathname)())?void 0:l.includes("/watch"))&&!o.XJ,ex=!E&&D,eh=!o.Rd&&!o.Lb&&Y,ep=!em||o.O&&!Y,ef=(0,a.jsxs)("div",{className:(0,N.cn)("relative flex items-center justify-center overflow-hidden bg-gray-900",em&&"h-screen w-screen"),children:[(0,a.jsx)("div",{className:"absolute left-3 top-5 z-10",children:(0,a.jsx)(i.o,{})}),(0,a.jsx)("div",{className:"flex items-center justify-center h-full w-full",children:(0,a.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-white"})})]});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:em?"relative h-full w-full overflow-hidden":"relative w-screen lg:h-full lg:w-[58vw] xl:w-[65vw] lg:p-4 lg:pr-2 flex flex-col items-center gap-2 lg:gap-4 md:flex-row",children:[ex?ef:(0,a.jsx)(s.VideoPlayback,{asset:x,muted:A&&I||T,startPosition:es,showFullScreenVideo:em,withVideoInfoDetails:!em,playback:M,playbackError:V,onPlaybackFinished:ec,onPlaybackPositionChanges:ed}),eh&&(0,a.jsx)(R,{countdown:Y,onUserCancelCountdown:()=>{et.current=!0,ee(!0),ei()},nextAsset:X,onClick:eu})]}),ep&&(0,a.jsx)(B,{assets:h,isHidden:Q,currentlyPlayingId:S,onClick:eu})]})}},73329:(e,t,l)=>{l.d(t,{A:()=>o});var a=l(64721),r=l(30277),s=l(51072),n=l(61177),i=l(50549);let o=e=>{let{closeModal:t,modalContent:l,showModal:o,transitionClass:c}=e;return(0,a.jsx)(r.e,{show:o,as:i.Fragment,children:(0,a.jsxs)(s.lG,{open:o,as:"div",className:"relative z-[10000]",onClose:t,"data-testid":"modal",children:[(0,a.jsx)(r._,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)("div",{className:(0,n.cn)("bg-black/40 fixed inset-0 transition-opacity",c)})}),(0,a.jsx)("div",{className:"fixed inset-0 z-10 w-screen overflow-y-auto",children:(0,a.jsx)("div",{className:"flex min-h-full text-center items-center justify-center p-4 sm:p-0",children:(0,a.jsx)(r._,{as:i.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:l})})})]})})}},77131:(e,t,l)=>{l.d(t,{PlaylistCard:()=>x});var a=l(64721),r=l(26235),s=l(3392),n=l(23241),i=l(54348),o=l(38969),c=l(94106),d=l(84970),u=l(81685);let m=e=>{let{playlistId:t}=e;return(0,a.jsx)(d.Link,{href:"/playlist/".concat(t),className:"w-11",children:(0,a.jsx)(u.A,{className:"h-11 w-11"})})},x=e=>{var t,l,d,u,x;let{playlist:h,...p}=e,{t:f}=(0,r.B)(),v=(0,c.useRouter)();return h?(0,a.jsx)("div",{onClick:()=>v.push("/playlist/".concat(h.id)),className:"cursor-pointer",children:(0,a.jsxs)("article",{...p,className:"group relative mx-1 h-full rounded-md transition-all ease-in ".concat(p.className&&p.className),children:[(0,a.jsxs)("div",{className:"relative flex h-[230px] cursor-pointer flex-col",children:[(null==(t=h.images)?void 0:t.defaultUrl)&&(0,a.jsx)(n.Artwork,{alt:"",src:h.images.defaultUrl,location:"portal-carousel",fallbackToDefault:!0,fill:!0,sizes:"25vw",className:"object-cover"}),(0,a.jsx)(s.x,{}),(0,a.jsx)(o.A,{className:"absolute left-2 top-2 h-6 w-6 xl:left-4 xl:top-4",color:"white"}),(0,a.jsx)("div",{className:"absolute bottom-0 left-2 text-left text-white lg:bottom-4 lg:left-4",children:(0,a.jsx)("h1",{className:"lg:text-md text-shadow text-sm font-bold xl:text-lg",children:h.title})})]}),(0,a.jsx)("div",{className:"absolute top-0 z-[100] hidden aspect-video h-[230px] text-white lg:block",children:(0,a.jsxs)("div",{className:"border-background-secondary bg-background-secondary absolute bottom-0 left-0 right-0 top-0 rounded-md border opacity-0 transition-all duration-300 ease-out group-hover:scale-110 group-hover:opacity-100 group-hover:delay-700",children:[(0,a.jsxs)("div",{className:"absolute hidden h-full w-full flex-col group-hover:flex",children:[(null==h||null==(l=h.images)?void 0:l.defaultUrl)&&(0,a.jsx)(n.Artwork,{alt:"",src:h.images.defaultUrl,location:"portal-carousel",fallbackToDefault:!0,fill:!0,sizes:"25vw",className:"object-cover"}),(0,a.jsx)(s.x,{}),(0,a.jsx)(o.A,{className:"absolute left-2 top-2 h-6 w-6 xl:left-4 xl:top-4",color:"white"})]}),(0,a.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 p-2",children:[(null==h||null==(d=h.images)?void 0:d.defaultUrl)&&(0,a.jsx)("div",{className:"max-w-[30%]",children:(0,a.jsx)(i.s,{src:null==h||null==(u=h.images)?void 0:u.defaultUrl})}),(0,a.jsx)("div",{className:"flex items-center gap-1 ",children:(0,a.jsx)(m,{playlistId:h.id})}),(0,a.jsx)("div",{className:"mx-1 mt-1 flex items-center gap-4 text-xs opacity-70",children:(0,a.jsx)("span",{className:"uppercase",children:f("playlist")})}),(0,a.jsx)("div",{className:"mx-1 mt-1 w-full overflow-hidden text-ellipsis whitespace-nowrap text-xs uppercase opacity-50",children:null==(x=h.labels)?void 0:x.split(",").map(e=>(0,a.jsx)("span",{className:"mr-1 ",children:e},e))})]})]})})]})}):(0,a.jsx)(a.Fragment,{})}},82091:(e,t,l)=>{l.d(t,{A:()=>r});var a=l(64721);let r=e=>{let{children:t,className:l="",condition:r}=e;return r?(0,a.jsx)("div",{className:l,children:t}):t}}}]);

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.