1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4258],{15767:(e,a,i)=>{"use strict";var t,s;i.d(a,{Vk:()=>r,Yu:()=>n}),i(29123);let n=((t={}).Omny="Omny",t.Jwplayer="Jwplayer",t.JwplayerChannel="JwplayerChannel",t.Beyondwords="Beyondwords",t.Dredition="Dredition",t.Drpublish="Drpublish",t),r=((s={}).Omny="Omny",s.Jwplayer="Jwplayer",s.Beyondwords="Beyondwords",s.Dredition="Dredition",s.Drpublish="Drpublish",s)},28607:e=>{e.exports={container:"VideoInfoMessageOverlay_container__aKpQD",messageWrapper:"VideoInfoMessageOverlay_messageWrapper__1vrOf",iconWrapper:"VideoInfoMessageOverlay_iconWrapper___556F",background:"VideoInfoMessageOverlay_background__yWiPI",text:"VideoInfoMessageOverlay_text__iAaDU",topWrapper:"VideoInfoMessageOverlay_topWrapper__hFTlz",logoButton:"VideoInfoMessageOverlay_logoButton__9JDL2",secondaryText:"VideoInfoMessageOverlay_secondaryText__0_y_A"}},55154:(e,a,i)=>{"use strict";i.r(a),i.d(a,{TeaserLiveVideo:()=>H});var t=i(4930),s=i(15767),n=i(75666),r=i(65162),l=i(3500),o=i(40301),d=i(60644),p=i.n(d),x=i(80028),g=i(82408),c=i(94991),y=i(72007),m=i.n(y);let h=()=>(0,t.jsx)("div",{className:m().badgeContainer,children:(0,t.jsx)("p",{className:m().badgeText,children:"LIVE"})}),v=i.p+"static/media/background.d654f67d.webp";var f=i(64218),u=i(47034);let _={name:"VideoInfoMessageOverlay",elements:{text:{font:{family:f.v.National2,weight:"800",size:(0,u.px)(16),lineHeight:(0,u.px)(20)}},secondaryText:{font:{family:f.v.National2,weight:"500",size:(0,u.px)(16),lineHeight:(0,u.px)(24)}}}},b={name:"VideoInfoMessageOverlay",elements:{text:{font:{family:f.v.SanomatSansWeb,weight:"500",size:(0,u.px)(14),lineHeight:(0,u.px)(20)}},secondaryText:{font:{family:f.v.SanomatSansWeb,weight:"400",size:(0,u.px)(14),lineHeight:(0,u.px)(14)}}}},w={name:"VideoInfoMessageOverlay",elements:{text:{font:{family:f.v.National2,weight:"800",size:(0,u.px)(16),lineHeight:(0,u.px)(20)}},secondaryText:{font:{family:f.v.National2,weight:"500",size:(0,u.px)(16),lineHeight:(0,u.px)(24)}}}},T={name:"VideoInfoMessageOverlay",elements:{text:{font:{family:f.v.BTGrotesk,weight:"800",size:(0,u.px)(16),lineHeight:(0,u.px)(20)}},secondaryText:{font:{family:f.v.BTGrotesk,weight:"500",size:(0,u.px)(16),lineHeight:(0,u.px)(24)}}}},M={name:"VideoInfoMessageOverlay",elements:{text:{font:{family:f.v.National2,weight:"800",size:(0,u.px)(16),lineHeight:(0,u.px)(20)}},secondaryText:{font:{family:f.v.National2,weight:"500",size:(0,u.px)(16),lineHeight:(0,u.px)(24)}}}},V={name:"VideoInfoMessageOverlay",elements:{text:{font:{family:f.v.LedgerGrotesk,weight:"700",size:(0,u.px)(14),lineHeight:(0,u.px)(20)}},secondaryText:{font:{family:f.v.LedgerGrotesk,weight:"600",size:(0,u.px)(12),lineHeight:(0,u.px)(16)}}}},k={name:"VideoInfoMessageOverlay",elements:{text:{font:{family:f.v.FaktorSans,weight:"800",size:(0,u.px)(16),lineHeight:(0,u.px)(20)}},secondaryText:{font:{family:f.v.FaktorSans,weight:"500",size:(0,u.px)(16),lineHeight:(0,u.px)(24)}}}},N={berlingske:b,bt:T,euroinvestor:V,weekendavisen:{name:"VideoInfoMessageOverlay",elements:{text:{font:{family:f.v.WEASans,weight:"500",size:(0,u.px)(14),lineHeight:(0,u.px)(20)}},secondaryText:{font:{family:f.v.WEASans,weight:"400",size:(0,u.px)(14),lineHeight:(0,u.px)(20)}}}},alfa:_,bravo:w,charlie:M,nettavisen:k};var j=i(28607),I=i.n(j);let z=e=>{let{icon:a,text:i,secondaryText:s,live:n,withDefaultBackground:r=!1}=e;return(0,t.jsx)(c.J,{themes:N,children:(0,t.jsxs)("div",{className:I().container,children:[(0,t.jsx)("div",{className:I().background,style:{backgroundImage:r?`url(${v})`:void 0}}),n&&(0,t.jsx)("div",{className:I().topWrapper,children:n&&(0,t.jsx)("div",{children:(0,t.jsx)(h,{})})}),(0,t.jsxs)("div",{className:I().messageWrapper,children:[(0,t.jsx)("div",{className:I().iconWrapper,children:a?(0,t.jsx)(a,{size:g.l.Medium}):(0,t.jsx)(x.t,{size:g.l.Medium})}),(0,t.jsx)("div",{className:I().text,children:i}),(0,t.jsx)("div",{className:I().secondaryText,children:s})]})]})})},O=e=>{let{video:a}=e,i=a?.mediaResource,[s,n]=(0,r.useState)(null),[d,x]=(0,r.useState)(null),[g,c]=(0,r.useState)(!1),y=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=i?.mediaAssets.find(e=>"application/vnd.apple.mpegurl"===e.contentType)?.url;
1if(s&&e&&o.Ay.isSupported())return y.current=new o.Ay,y.current.loadSource(e),y.current.attachMedia(s),s.play(),()=>{y.current?.destroy()}},[i?.mediaAssets,s]),(0,t.jsx)("div",{className:p().root,ref:x,onContextMenu:e=>e.preventDefault(),children:(0,t.jsxs)(l.V,{element:d,rootMargin:"400px",children:[(0,t.jsx)("video",{ref:n,loop:!0,muted:!0,className:p().videoplayer,onTimeUpdate:()=>c(!0)}),!g&&(0,t.jsx)(z,{text:"Afventer live indhold",secondaryText:"Vent venligst",withDefaultBackground:!0})]})})};function H(e){let{channelId:a}=e,[i,l]=(0,r.useState)(null),o=(0,r.useMemo)(()=>({externalIds:{[s.Yu.JwplayerChannel]:a},mediaResource:{live:!0}}),[a]);return(0,n.useLiveVideoJwPlayerIdRequest)(o,[],l),(0,t.jsx)(O,{video:i})}},60644:e=>{e.exports={root:"TeaserLiveVideoPlayer_root__8KIK1",videoplayer:"TeaserLiveVideoPlayer_videoplayer__eEYkh"}},68215:e=>{e.exports={throbber:"Throbber_throbber__4Lafg",circle:"Throbber_circle__i_hkJ",spin:"Throbber_spin__kKET7"}},72007:e=>{e.exports={badgeContainer:"LiveBadge_badgeContainer__Q0N6L",badgeText:"LiveBadge_badgeText__VC6su"}},80028:(e,a,i)=>{"use strict";i.d(a,{t:()=>p});var t=i(4930),s=i(82408),n=i(47034),r=i(68215),l=i.n(r);let o={[s.l.Small]:(0,n.px)(16),[s.l.Medium]:(0,n.px)(24),[s.l.Large]:(0,n.px)(32),[s.l.ExtraLarge]:(0,n.px)(64)},d={[s.l.Small]:(0,n.px)(2),[s.l.Medium]:(0,n.px)(3),[s.l.Large]:(0,n.px)(5),[s.l.ExtraLarge]:(0,n.px)(7)},p=e=>{let a=o[e.size]||o[s.l.Medium],i=d[e.size]||d[s.l.Medium];return(0,t.jsxs)("span",{className:l().throbber,style:{width:a,height:a},children:[(0,t.jsx)("span",{className:l().circle,style:{borderWidth:i},"data-is-background":!0}),(0,t.jsx)("span",{className:l().circle,style:{borderWidth:i},"data-is-partial":!0})]})}}}]);
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.