1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4099],{75666:(e,t,i)=>{i.r(t),i.d(t,{ReelsPlayer:()=>nH,RelatedVideos:()=>aE,StandAloneVideoPlayer:()=>ae,StandardVideoPlayer:()=>at,ViaplayVideoPlayer:()=>ah,VideoScriptsLoader:()=>aj,VideoTrackingProvider:()=>n8,findImageUrl:()=>m,isImageContentType:()=>g,useAutoPlayAudioDetection:()=>v,useLiveVideoJwPlayerIdRequest:()=>A});var n,r,a,l,s,o,d,c=i(65162),u=i(4930),h=i(61605);function m(e,{maxWidth:t}){if(e)return[...e.assets].sort((e,t)=>(t.width||0)-(e.width||0)).find(({width:e})=>e&&e<=t)?.url||e?.assets?.[0]?.url}function g(e){let t=e.assets[0]?.contentType;return!t||"image/webp"===t||"image/jpeg"===t}var v=()=>{let[e,t]=(0,c.useState)({inProgress:!0,canPlayWithAudio:!1});return(0,c.useEffect)(()=>{let e=document.createElement("video");return e.src="data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAAApdtZGF0AAACVQYF//9R3EXpvebZSLeWLNgg2SPu73gyNjQgLSBjb3JlIDE2NCByMzEwOCAzMWUxOWY5IC0gSC4yNjQvTVBFRy00IEFWQyBjb2RlYyAtIENvcHlsZWZ0IDIwMDMtMjAyMyAtIGh0dHA6Ly93d3cudmlkZW9sYW4ub3JnL3gyNjQuaHRtbCAtIG9wdGlvbnM6IGNhYmFjPTAgcmVmPTEgZGVibG9jaz0wOi0zOi0zIGFuYWx5c2U9MDowIG1lPWRpYSBzdWJtZT0wIHBzeT0xIHBzeV9yZD0yLjAwOjAuNzAgbWl4ZWRfcmVmPTAgbWVfcmFuZ2U9MTYgY2hyb21hX21lPTEgdHJlbGxpcz0wIDh4OGRjdD0wIGNxbT0wIGRlYWR6b25lPTIxLDExIGZhc3RfcHNraXA9MSBjaHJvbWFfcXBfb2Zmc2V0PTAgdGhyZWFkcz0yIGxvb2thaGVhZF90aHJlYWRzPTEgc2xpY2VkX3RocmVhZHM9MCBucj0wIGRlY2ltYXRlPTEgaW50ZXJsYWNlZD0wIGJsdXJheV9jb21wYXQ9MCBjb25zdHJhaW5lZF9pbnRyYT0wIGJmcmFtZXM9MCB3ZWlnaHRwPTAga2V5aW50PTUwIGtleWludF9taW49MjYgc2NlbmVjdXQ9MCBpbnRyYV9yZWZyZXNoPTAgcmM9Y3JmIG1idHJlZT0wIGNyZj01MS4wIHFjb21wPTAuNjAgcXBtaW49MCBxcG1heD02OSBxcHN0ZXA9NCBpcF9yYXRpbz0xLjQwIGFxPTAAgAAAAChliIQ6JigAFZOTk5OTk5OuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuvAAAAABkGaID6BTAAAAyttb292AAAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAAyAABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAACVnRyYWsAAABcdGtoZAAAAAMAAAAAAAAAAAAAAAEAAAAAAAAAyAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAeAAAAEQAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAAMgAAAAAAAEAAAAAAc5tZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAACgAAAAIAFXEAAAAAAAtaGRscgAAAAAAAAAAdmlkZQAAAAAAAAAAAAAAAFZpZGVvSGFuZGxlcgAAAAF5bWluZgAAABR2bWhkAAAAAQAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAABOXN0YmwAAAC5c3RzZAAAAAAAAAABAAAAqWF2YzEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAeABEAEgAAABIAAAAAAAAAAEUTGF2YzYxLjMuMTAwIGxpYngyNjQAAAAAAAAAAAAAAAAY//8AAAAvYXZjQwFCwAr/4QAXZ0LACtoIL5Z8BEAAAAMAQAAABQPEiagBAAVozgGXIAAAABBwYXNwAAAAAQAAAAEAAAAUYnRydAAAAAAAAGZYAABmWAAAABhzdHRzAAAAAAAAAAEAAAACAAAEAAAAABRzdHNzAAAAAAAAAAEAAAABAAAAHHN0c2MAAAAAAAAAAQAAAAEAAAACAAAAAQAAABxzdHN6AAAAAAAAAAAAAAACAAAChQAAAAoAAAAUc3RjbwAAAAAAAAABAAAAMAAAAGF1ZHRhAAAAWW1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAALGlsc3QAAAAkqXRvbwAAABxkYXRhAAAAAQAAAABMYXZmNjEuMS4xMDA=",e.muted=!1,e.loop=!1,e.playsInline=!0,e.autoplay=!0,e.id="video-play-detection",e.style.display="none",e.style.position="fixed",e.style.top="0",e.style.left="0",e.oncanplaythrough=i=>{t({inProgress:!1,canPlayWithAudio:i.target?.currentTime>0});let n=document.getElementById(e.id);n&&n.remove()},e.onerror=()=>{t({inProgress:!1,canPlayWithAudio:!1});let i=document.getElementById(e.id);i&&i.remove()},document.body.appendChild(e),()=>{if(e){let t=document.getElementById(e.id);t&&t.remove()}}},[]),e},f=((n={}).Omny="Omny",n.Jwplayer="Jwplayer",n.JwplayerChannel="JwplayerChannel",n.Beyondwords="Beyondwords",n.Dredition="Dredition",n.Drpublish="Drpublish",n),p="https://cdn.jwplayer.com";async function w(e,t){let i,n=await fetch(`${p}/live/channels/${e}.json`);if(!n.ok)return null;let r=await n.json();if("active"!==r.status||!r.current_event)return null;let a=await fetch(`${p}/v2/media/${r.current_event}`);if(!a.ok)return null;let l=(await a.json()).playlist?.[0];return l?(i=l.sources.find(e=>"application/vnd.apple.mpegurl"===e.type),{id:l.mediaid,title:l.title,description:l.description,publicationDate:new Date(1e3*l.pubdate).toISOString(),externalIds:{[f.Jwplayer]:l.mediaid,[f.JwplayerChannel]:e},teaserImages:t,mediaResource:{live:!0,duration:l.duration,mediaAssets:[{url:i?.file??"",contentType:i?.type??null,width:null,height:null}]}}):null}function y(e){let t=(0,c.useRef)(e);return t.current=e,(0,c.useCallback)((...e)=>(0,t.current)(...e),[])}function A(e,t,i){let n=(0,c.useRef)(void 0),r=y(async e=>{try{let r=await w(e,t);r&&(i(r),clearInterval(n.current))}catch(e){console.warn("Error loading live video:",e)}});(0,c.useEffect)(()=>
1{if(e?.externalIds?.[f.Jwplayer])return;let t=e?.externalIds?.[f.JwplayerChannel];return t&&e?.mediaResource.live&&(r(t),n.current=setInterval(()=>r(t),5e3)),()=>clearInterval(n.current)},[e?.externalIds,e?.mediaResource.live])}var x=(0,c.createContext)(null),_=class extends Error{constructor(e){super(e),this.name="SleepError"}},b=async e=>{try{window.performance?.mark("videoplayer-preroll-fetch-start");let t=await Promise.race([new Promise((e,t)=>setTimeout(()=>t(new _("Timeout exceeded")),3e3)),e()]);return window.performance?.mark("videoplayer-preroll-fetch-end"),window.performance?.measure("videoplayer-preroll-fetch","videoplayer-preroll-fetch-start","videoplayer-preroll-fetch-end"),t}catch(e){return console.warn("Error requesting video ad tag",e),e instanceof _||reportError(e),null}};async function E(e,t){return new Promise((i,n)=>{let r=e.videoDuration<=45?"short":e.videoDuration<=120?"medium":"long",a={autoplay:+!!e.autoplay,page_url:window.location.href,media_duration:e.videoDuration,media_id:t,aspectratio:e.isVertical?"9:16":"16:9",video_url:e.videoUrl,fritekst:"",muted:e.muted,tags:"",video_length:r,product_feature:`${e.product}_v1`};window.bazaar.instream.push(async({loadVast:e,version:t})=>{if(!/^1\..*/.test(t)){let e=Error("Unable to run bazaar version:"+t);return console.warn(e),n(e)}e(a).then(e=>i(e)).catch(e=>{console.warn("Error requesting video ad tag",e),n(e)})})})}async function j(e,t){return new Promise((i,n)=>{let r={videoId:t,tagTypes:["preroll"],videoFormat:e.videoFormat,auto
1play:e.autoplay,isEmbed:e.isEmbed,muted:e.muted,isLive:e.isLive,isVertical:e.isVertical};window.videoBidding.requestTagAsync(r).then(e=>{void 0!==e.error?"boolean"==typeof e.error?n(Error("Unknown error requesting preroll tag")):n(Error(e.error)):i(e.preroll)}).catch(e=>{console.warn("Error requesting video ad tag",e),n(e)})})}var z={amedia:{isReady:()=>"u">typeof window&&"object"==typeof window.bazaar,getPrerollTag:async(e,t)=>b(()=>E(e,t))},bm:{isReady:()=>"u">typeof window&&window.google?.ima!==void 0&&window.videoBidding?.isReady===!0,getPrerollTag:async(e,t)=>b(()=>j(e,t))}},P=({children:e,bidding:t,product:i})=>{let n=(0,c.useMemo)(()=>({...z[t],product:i}),[t,i]);return(0,u.jsx)(x.Provider,{value:n,children:e})},H=(0,c.createContext)(null),S=({iconSet:e,children:t})=>(0,u.jsx)(H.Provider,{value:e,children:t}),C=()=>{let e=(0,c.useContext)(H);if(null===e)throw Error("useIconSet must be used within an IconSetProvider");return e},T={play:()=>void 0,pause:()=>void 0,toggleFullscreen:()=>void 0,togglePictureInPicture:()=>void 0,toggleMute:()=>void 0,seek:()=>void 0,setVolume:()=>void 0},k=((r={}).Idle="idle",r.Loading="loading",r.Ready="ready",r.Playing="playing",r.Paused="paused",r.Ended="ended",r.Error="error",r),L={video:{state:k.Idle,currentTime:0,duration:0,volume:100,isFullscreen:!1,isPictureInPicture:!1},ads:{state:k.Idle,data:null,error:!1},isMuted:!1,autoplayNotAllowed:!1,adBlockerDetected:!1},N=(e,t)=>{let i=Math.floor(e/3600);if(t?.iso8601){let t=Math.floor((e-3600*i)/60),n=Math.floor(e-3600*i-60*t),r="PT";return i>0&&(r+=`${i}H`),t>0&&(r+=`${t}M`),r+=`${n}S`}let n=new Date(null);return(n.setSeconds(e),n.setHours(i),i>0)?n.toLocaleTimeString("da-DK",{hour:"2-digit",minute:"2-digit",second:"2-digit"}).replace(/\./g,":"):n.toLocaleTimeString("da-DK",{minute:"2-digit",second:"2-digit"}).replace(/\./g,":")},M="Europe/Copenhagen";function R(e){return new Date().toLocaleDateString("da-DK",{timeZone:M,year:"numeric"})===e.toLocaleDateString("da-DK",{timeZone:M,year:"numeric"})}var I="Europe/Copenhagen";function F(e){return new Date().toLocaleDateString("da-DK",{timeZone:I})===e.toLocaleDateString("da-DK",{timeZone:I})}function D(e){return e.assets[0]?.contentType==="video/mp4"}function B(e){"u">typeof window&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push(e))}var O=e=>`${e/16}rem`,V="bsc_shared_variables";function Z(e){return e.replace(/-x-.+$/,"")}var W={setPositionState(e){if(!G()||!e)return;let{playbackRate:t=1,...i}=e;U(()=>navigator.mediaSession.setPositionState({playbackRate:t,...i}))},setPlaybackState(e){G()&&e&&U(()=>{navigator.mediaSession.playbackState=e})},setMetadata(e){G()&&e&&U(()=>{navigator.mediaSession.metadata=new MediaMetadata(e)})},setActionHandler(e,t){G()&&e&&U(()=>navigator.mediaSession.setActionHandler(e,t))}};function G(){return"u">typeof window&&"mediaSession"in navigator}function U(e){try{e()}catch{}}var q=(0,c.createContext)(null),Y=({locale:e,children:t})=>(0,u.jsx)(q.Provider,{value:e,children:t});function Q(e){let t=(0,c.useContext)(q);if(null===t)throw Error("useLocale must be used within a LocaleProvider");return e?.base===!0?Z(t):t}function J(e){return e[Q()]}var $=(0,c.createContext)(null),K=({theme:e,children:t})=>(0,u.jsx)($.Provider,{value:e,children:t}),X="_container_lndf6_1",ee="_wrapper_lndf6_8",et="_image_lndf6_18",ei="(max-width: 767.9px)",en="(min-width: 1024.1px)";function er(...e){return e.filter(e=>e).join(" ")}var ea=e=>`${e/16}rem`,el=(0,c.createContext)(!1),es={"16:9":"16 / 9","16:10":"16 / 10","1:1":"1 / 1","4:3":"4 / 3","3:2":"3 / 2","9:16":"9 / 16"};function eo({url:e,sources:t,sizes:i=[],areaOfInterest:n,alt:r,ratio:a,lazy:l=!1,priority:s=!1,onLoad:o}){let d=(0,c.useContext)(el),h=(0,c.useRef)(null),m=y(o||(()=>{}));(0,c.useEffect)(()=>{h.current?.complete&&m()},[]);let g=e||function(e){if(e)return[...e].sort((e,t)=>(t.width||0)-(e.width||0)).find(({width:e})=>e&&e<=1440)||e[0]}(t)?.url,v=t?.filter(({width:e})=>e&&e<=1920).map(({url:e,width:t})=>`${e} ${t}w`).join(", ");if(!g&&!v)return null;let f=i.flatMap(({media:e,width:t})=>e?e.split(",").map(e=>({media:e,width:t})):{media:e,width:t});f.some(({media:e})=>!e)||f.push({media:void 0,width:"100vw"});let p=f.flatMap(({media:e,width:t})=>[(e?`${e} and `:"")+`(min-resolution: 4dppx) calc(${t} / 2)`,(e?`${e} and `:"")+`(min-resolution: 3dppx) calc(${t} * 2/3)`,e?`${e} ${t}`:t]).join(","),w=a?es[a]:function(e){let{width:t,height:i}=e?.find(e=>e.width&&e.height)||{};return t&&i?`${t} / ${i}`:void 0}
1(t),A=function(e){if(e)return{x:e.x+(e.width||0)/2,y:e.y+(e.height||0)/2}}(n);return(0,u.jsx)("div",{className:"_container_1fu6r_1",style:w?{"--image-aspect-ratio":w}:void 0,children:(0,u.jsx)("img",{className:"_image_1fu6r_11",style:A?{objectPosition:`${100*A.x}% ${100*A.y}%`}:void 0,src:g,srcSet:v,sizes:p,alt:r,itemProp:"image",loading:l||d?"lazy":void 0,fetchPriority:s?"high":void 0,onLoad:o,ref:h})})}var ed=e=>{let{teaserImages:t,hasPlayed:i,frontThumbnailFullWidthOnMobile:n}=e,r=(0,c.useRef)(null),[a,l]=(0,c.useState)(!1);(0,c.useEffect)(()=>{i&&r.current&&r.current.pause()},[i]);let s=t.find(D);if(s){let e=m(s,{maxWidth:"u">typeof window?Math.min(window.innerWidth,1e3):1e3});return(0,u.jsx)("div",{className:X,children:(0,u.jsxs)("div",{className:ee,children:[(0,u.jsx)("video",{className:"_videoBackground_lndf6_41",src:e,ref:r,muted:!0}),(0,u.jsx)("video",{className:"_video_lndf6_41",src:e,ref:r,"data-full-width-mobile":n,autoPlay:!0,playsInline:!0,muted:!0,loop:!0})]})})}let o=t.find(g);if(o)return(0,u.jsx)("div",{className:X,children:(0,u.jsxs)("div",{className:ee,children:[(0,u.jsx)("div",{className:er(et,"_imageBlur_lndf6_35"),"data-hidden":!a,children:(0,u.jsx)(eo,{sources:o.assets,sizes:[{media:en,width:ea(1e3)}],priority:!0,onLoad:()=>l(!0)})}),(0,u.jsx)("div",{className:et,"data-hidden":!a||i,"data-full-width-mobile":n,children:(0,u.jsx)(eo,{sources:o.assets,sizes:[{media:en,width:ea(1e3)}],"data-full-width-mobile":n,priority:!0,onLoad:()=>l(!0)})})]})})},ec=((a={})[a.Small=0]="Small",a[a.Medium=1]="Medium",a[a.Large=2]="Large",a[a.ExtraLarge=3]="ExtraLarge",a),eu={[ec.Small]:ea(16),[ec.Medium]:ea(24),[ec.Large]:ea(32),[ec.ExtraLarge]:ea(64)},eh=({size:e,svg:t})=>{let i=null===e?void 0:{height:eu[e],width:eu[e]},n=(0,c.useMemo)(()=>({__html:t}),[t]);return(0,u.jsx)("span",{className:"_root_nyk30_1",children:(0,u.jsx)("span",{className:"_wrapper_nyk30_7",style:i,dangerouslySetInnerHTML:n})})},em={berlingske:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path stroke="currentcolor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="1.25" d="m3.5 11.56 5.8 5.8c.11.11.28.1.37-.02L20.5 6.56"/></svg>',bt:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 24" width="25" height="24" fill="none"><path fill="currentcolor" d="m9.997 19.06-6.71-6.7 1.42-1.42 5.29 5.3 11.29-11.3 1.42 1.42z"/></svg>',euroinvestor:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none"><path fill="currentcolor" d="m21.35 6-.71-.71c-.2-.2-.51-.2-.71 0L8.99 16.23l-4.94-4.94c-.2-.2-.51-.2-.71 0l-.71.71c-.2.2-.2.51 0 .71l6 6c.2.2.51.2.71 0l12-12c.2-.2.2-.51 0-.71z"/></svg>',weekendavisen:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none"><path stroke="currentcolor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="1.25" d="m2.65 11.73 6.48 6.39c.2.2.53.19.72-.02l11.5-12.37"/></svg>'},eg=e=>{let t=em[C()]||"<svg />";return(0,u.jsx)(eh,{svg:t,...e})},ev={berlingske:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M7.997 5.81a.625.625 0 1 0-.984-.77L2.353 11l-.001.001a1.622 1.622 0 0 0-.337.865.626.626 0 0 0 .002.284c.028.302.14.597.335.849V13l4.66 5.96a.625.625 0 0 0 .985-.77L3.65 12.63h17.725a.625.625 0 1 0 0-1.25H3.642l4.355-5.57Z"/></svg>',bt:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 25"><path fill="currentColor" d="M22 11.77H5.75l5.38-5.38L9.75 5 2 12.75l7.75 7.74 1.38-1.38-5.38-5.38H22v-1.96Z"/></svg>',euroinvestor:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 25"><path fill="currentColor" d="m4.871 11.75 5.54-5.54L9.35 5.149 2 12.499l7.35 7.35 1.06-1.06-5.54-5.54H22v-1.5H4.871Z"/></svg>',weekendavisen:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 25"><path fill="currentColor" d="M10.144 4.131a.625.625 0 1 1 .883.885l-6.63 6.613h17.598v1.25H4.398l6.628 6.602a.625.625 0 1 1-.882.885L2 12.254l8.144-8.123Z"/></svg>'},ef=e=>{let t=ev[C()]||"<svg />";return(0,u.jsx)(eh,{svg:t,...e})},ep={berlingske:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
1<path fill="currentcolor" d="M2.62998 8.00002c.13 0 .27.04.38.13L11.65 14.9c.21.16.5.16.7 0l8.64-6.76999c.27-.21.66-.17.88.11.21.27.17.67-.11.88L13.12 15.88c-.66.52-1.58.52-2.24 0L2.23998 9.12002c-.27-.21-.32-.61-.11-.88.12-.16.31-.24.49-.24h.01Z"/></svg>',bt:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentcolor" d="M3.24997 8.15991 11.99 15.3999l8.73-7.23999 1.28 1.55-10.01 8.28999L1.96997 9.70991l1.28-1.55Z"/></svg>',euroinvestor:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentcolor" d="M11.6452 17.4544 2.14993 7.96912c-.19991-.1999-.19991-.50975 0-.70965l.70964-.70964c.1999-.1999.50975-.1999.70965 0L11.995 14.9756l8.4358-8.42577c.1999-.1999.5097-.1999.7096 0l.7097.70964c.1999.1999.1999.50975 0 .70965l-9.4953 9.48528c-.1999.1999-.5097.1999-.7096 0Z"/></svg>',weekendavisen:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentcolor" fill-rule="evenodd" d="M2.55806 7.05806c.24408-.24408.6398-.24408.88388 0L12 15.6161l8.5581-8.55804c.244-.24408.6398-.24408.8838 0 .2441.24408.2441.6398 0 .88388l-9 8.99996c-.1172.1173-.2761.1831-.4419.1831s-.3247-.0658-.4419-.1831L2.55806 7.94194c-.24408-.24408-.24408-.6398 0-.88388Z" clip-rule="evenodd"/></svg>'},ew=e=>{let t=ep[C()]||"<svg />";return(0,u.jsx)(eh,{svg:t,...e})},ey={berlingske:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 17 17"><path fill="currentColor" d="M2.778 2.038a.417.417 0 1 0-.59.589L8.06 8.499 2.188 14.37a.417.417 0 0 0 .59.59L8.65 9.087l5.872 5.872a.417.417 0 1 0 .589-.59L9.239 8.5l5.872-5.872a.417.417 0 1 0-.59-.59L8.65 7.91 2.778 2.038Z"/></svg>',bt:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 17 17"><path fill="currentColor" d="m14.2 2.02.967.967-5.7 5.7 5.7 5.7-.967.967-5.7-5.7-5.7 5.7-.967-.967 5.7-5.7-5.7-5.7.967-.966 5.7 5.7 5.7-5.7Z"/></svg>',euroinvestor:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 17 17"><path fill="currentColor" d="M15.015 3.079 9.463 8.625h.007l5.552 5.547a.503.503 0 0 1 0 .707l-.267.266a.503.503 0 0 1-.706 0L8.497 9.6 2.95 15.145a.503.503 0 0 1-.706 0l-.267-.266a.503.503 0 0 1 0-.707l5.546-5.54-5.539-5.54a.503.503 0 0 1 0-.707l.267-.266a.503.503 0 0 1 .706 0L8.49 7.652l5.552-5.547a.503.503 0 0 1 .706 0l.267.267a.503.503 0 0 1 0 .707Z"/></svg>',weekendavisen:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 17 17"><path fill="currentColor" d="M15.166 1.987 9.09 8.064l6.077 6.077-.589.59L8.5 8.652 2.423 14.73l-.59-.589 6.078-6.077-6.077-6.077.589-.59L8.5 7.475l6.077-6.078.59.59Z"/></svg>'},eA=e=>{let t=ey[C()]||"<svg />";return(0,u.jsx)(eh,{svg:t,...e})},ex={berlingske:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path stroke="currentcolor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="1.25" d="M8.62 2.62h-5c-.55 0-1 .45-1 1v5M15.38 2.62h5c.55 0 1 .45 1 1v5M8.62 21.38h-5c-.55 0-1-.45-1-1v-5M15.38 21.38h5c.55 0 1-.45 1-1v-5"/></svg>',bt:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentcolor" fill-rule="evenodd" d="M3 2H2v7h2V4h5V2zm18 0h-6v2h5v5h2V2zM2 21v-6h2v5h5v2H2zm18-6v5h-5v2h7v-7z" clip-rule="evenodd"/></svg>',euroinvestor:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none"><path fill="currentcolor" fill-rule="evenodd" d="M2.5 9a.5.5 0 0 1-.5-.5v-6a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5H4v4.5a.5.5 0 0 1-.5.5zm19 0a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5h-6a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5H20v4.5a.5.5 0 0 0 .5.5zm-19 6a.5.5 0 0 0-.5.5v6a.5.5 0 0 0 .5.5h6a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H4v-4.5a.5.5 0 0 0-.5-.5zm19 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5h-6a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5H20v-4.5a.5.5 0 0 1 .5-.5z" clip-rule="evenodd"/></svg>',weekendavisen:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path stroke="currentcolor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="1.25" d="M8.62 2.62h-5c-.55 0-1 .45-1 1v5M15.38 2.62h5c.55 0 1 .45 1 1v5M8.62 21.38h-5c-.55 0-1-.45-1-1v-5M15.38 21.38h5c.55 0 1-.45 1-1v-5"/></svg>'},e_=e=>
1{let t=ex[C()]||"<svg />";return(0,u.jsx)(eh,{svg:t,...e})},eb={berlingske:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M10.474 3.973c2.632-2.63 6.917-2.63 9.549 0a6.752 6.752 0 0 1 0 9.543l-1.228 1.227a.625.625 0 1 1-.884-.884l1.228-1.227a5.503 5.503 0 0 0 0-7.774 5.515 5.515 0 0 0-7.781 0l-1.229 1.227a.625.625 0 0 1-.883-.884l1.228-1.228Z"/><path fill="currentColor" d="M15.759 8.354a.625.625 0 0 1 0 .884l-6.5 6.494a.625.625 0 0 1-.883-.884l6.499-6.494a.625.625 0 0 1 .884 0Z"/><path fill="currentColor" d="M6.121 9.223a.625.625 0 0 1 0 .884l-1.263 1.261a5.502 5.502 0 0 0 0 7.774 5.515 5.515 0 0 0 7.782 0l1.263-1.26a.625.625 0 0 1 .883.883l-1.262 1.262c-2.632 2.63-6.917 2.63-9.55 0a6.753 6.753 0 0 1 0-9.543l1.263-1.261a.625.625 0 0 1 .884 0Z"/></svg>',bt:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M10.263 4.015a6.88 6.88 0 0 1 9.73 0c2.68 2.685 2.68 7.055 0 9.74L17.93 15.82l-1.415-1.413 2.062-2.065a4.903 4.903 0 0 0 0-6.914 4.88 4.88 0 0 0-6.899 0L9.616 7.493 8.201 6.08l2.062-2.065ZM4.01 10.243l2.095-2.098L7.52 9.558l-2.095 2.098a4.903 4.903 0 0 0 0 6.915 4.88 4.88 0 0 0 6.899 0l2.095-2.099 1.415 1.413-2.095 2.099a6.88 6.88 0 0 1-9.73 0c-2.68-2.686-2.68-7.055 0-9.74Zm5.654 5.627 6.236-6.245-1.416-1.414-6.235 6.246 1.415 1.413Z" clip-rule="evenodd"/></svg>',euroinvestor:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M10.412 3.992a6.78 6.78 0 0 1 9.599 0 6.794 6.794 0 0 1 0 9.606l-2.116 2.118-1.061-1.06 2.116-2.118a5.294 5.294 0 0 0 0-7.486 5.28 5.28 0 0 0-7.477 0L9.357 7.17 8.296 6.11l2.116-2.118ZM3.99 10.401l2.153-2.155 1.06 1.06-2.153 2.156a5.294 5.294 0 0 0 0 7.485 5.28 5.28 0 0 0 7.477 0l2.154-2.155 1.06 1.06-2.152 2.155a6.78 6.78 0 0 1-9.6 0 6.794 6.794 0 0 1 0-9.606Z"/><path fill="currentColor" d="m9.394 15.772 6.423-6.428-1.062-1.06-6.422 6.428 1.061 1.06Z"/></svg>',weekendavisen:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 25 24"><path fill="currentColor" d="M11.224 3.974c2.632-2.63 6.917-2.63 9.549 0a6.752 6.752 0 0 1 0 9.543l-1.228 1.227a.625.625 0 0 1-.884-.885l1.228-1.227a5.503 5.503 0 0 0 0-7.774 5.515 5.515 0 0 0-7.781 0l-1.229 1.227a.625.625 0 0 1-.883-.884l1.228-1.227Z"/><path fill="currentColor" d="M16.509 8.355a.625.625 0 0 1 0 .884l-6.5 6.493a.625.625 0 0 1-.883-.884l6.499-6.494a.625.625 0 0 1 .884 0Z"/><path fill="currentColor" d="M6.871 9.223a.625.625 0 0 1 0 .884L5.608 11.37a5.503 5.503 0 0 0 0 7.774 5.515 5.515 0 0 0 7.782 0l1.263-1.262a.625.625 0 1 1 .883.885l-1.262 1.261c-2.632 2.63-6.917 2.63-9.55 0a6.752 6.752 0 0 1 0-9.543l1.263-1.26a.625.625 0 0 1 .884 0Z"/></svg>'},eE=e=>{let t=eb[C()]||"<svg />";return(0,u.jsx)(eh,{svg:t,...e})},ej={berlingske:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentcolor" d="M12 13.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5M12 6.5A1.25 1.25 0 1 0 12 4a1.25 1.25 0 0 0 0 2.5M12 20a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5"/></svg>',bt:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentcolor" fill-rule="evenodd" d="M12 5.5A1.75 1.75 0 1 0 12 2a1.75 1.75 0 0 0 0 3.5m0 8.25a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5m1.75 6.5a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0" clip-rule="evenodd"/></svg>',euroinvestor:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none"><path fill="currentcolor" d="M12 5.5A1.75 1.75 0 1 0 12 2a1.75 1.75 0 0 0 0 3.5M12 13.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5M13.75 20.25a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0"/></svg>',weekendavisen:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentcolor" d="M12 13.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5M12 6.5A1.25 1.25 0 1 0 12 4a1.25 1.25 0 0 0 0 2.5M12 20a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5"/></svg>'},ez=e=>{let t=ej[C()]||"<svg />";return(0,u.jsx)(eh,{svg:t,...e})},eP={berlingske:'<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M7.51 2H6.49a1.03 1.03 0 0 0-1.03 1.03v17.94c0 .569.461 1.03 1.03 1.03h1.02a1.03 1.03 0 0 0 1.03-1.03V3.03A1.03 1.03 0 0 0 7.51 2ZM17.51 2h-1.02a1.03 1.03 0 0 0-1.03 1.03v17.94c0 .569.461 1.03 1.03 1.03h1.02a1.03 1.03 0 0 0 1.03-1.03V3.03A1.03 1.03 0 0 0 17.51 2Z"\n fill="currentColor" />\n</svg>',bt:'<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M4 3h5v18H4V3ZM15 3h5v18h-5V3Z" fill="currentColor" />\n</svg>',euroinvestor:'<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M5.25 2h3.5a.75.75 0 0 1 .75.75v18.5a.75.75 0 0 1-.75.75h-3.5a.75.75 0 0 1-.75-.75V2.75A.75.75 0 0 1 5.25 2ZM15.25 2h3.5a.75.75 0 0 1 .75.75v18.5a.75.75 0 0 1-.75.75h-3.5a.75.75 0 0 1-.75-.75V2.75a.75.75 0 0 1 .75-.75Z"\n fill="currentColor" />\n</svg>',weekendavisen:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
1<path fill="currentColor" d="M8.12 2.254h-2a.5.5 0 0 0-.5.5v18.5a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5v-18.5a.5.5 0 0 0-.5-.5ZM17.87 2.254h-2a.5.5 0 0 0-.5.5v18.5a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5v-18.5a.5.5 0 0 0-.5-.5Z"/></svg>'},eH=e=>{let t=eP[C()]||"<svg />";return(0,u.jsx)(eh,{svg:t,...e})},eS={berlingske:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path stroke="currentcolor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="1.25" d="M20.87 12.62h-7.75a.5.5 0 0 0-.5.5v7.75a.5.5 0 0 0 .5.5h7.75a.5.5 0 0 0 .5-.5v-7.75a.5.5 0 0 0-.5-.5Z"/><path stroke="currentcolor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="1.25" d="M9.53 21.38H3.62c-.55 0-1-.45-1-1V3.62c0-.55.45-1 1-1h16.75c.55 0 1 .45 1 1v5.91"/></svg>',bt:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentcolor" fill-rule="evenodd" d="M3 2H2v20h7.63v-2H4V4h16v5.63h2V2H3m10 10h-1v10h10V12h-9m1 8v-6h6v6z" clip-rule="evenodd"/></svg>',euroinvestor:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none"><path fill="currentcolor" d="M4 20V4h16v5.13a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5V3.5A1.5 1.5 0 0 0 20.5 2h-17A1.5 1.5 0 0 0 2 3.5v17A1.5 1.5 0 0 0 3.5 22h5.63a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5z"/><path fill="currentcolor" fill-rule="evenodd" d="M13.5 12a1.5 1.5 0 0 0-1.5 1.5v7a1.5 1.5 0 0 0 1.5 1.5h7a1.5 1.5 0 0 0 1.5-1.5v-7a1.5 1.5 0 0 0-1.5-1.5zm.5 8v-6h6v6z" clip-rule="evenodd"/></svg>',weekendavisen:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path stroke="currentcolor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="1.25" d="M20.87 12.62h-7.75a.5.5 0 0 0-.5.5v7.75a.5.5 0 0 0 .5.5h7.75a.5.5 0 0 0 .5-.5v-7.75a.5.5 0 0 0-.5-.5Z"/><path stroke="currentcolor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="1.25" d="M9.53 21.38H3.62c-.55 0-1-.45-1-1V3.62c0-.55.45-1 1-1h16.75c.55 0 1 .45 1 1v5.91"/></svg>'},eC=e=>{let t=eS[C()]||"<svg />";return(0,u.jsx)(eh,{svg:t,...e})},eT={berlingske:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 25"><path fill="currentColor" d="m19.63 13.568-12.95 8.93c-.71.49-1.68-.02-1.68-.89V3.768c0-.87.97-1.38 1.68-.89l12.94 8.92c.62.43.62 1.34 0 1.77h.01Z"/></svg>',bt:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 25"><path fill="currentColor" d="m20 12.69-16-10v20l16-10Z"/></svg>',euroinvestor:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 25"><path fill="currentColor" d="m19.93 11.837-14.4-8.99a.998.998 0 0 0-1.53.85v17.99a1 1 0 0 0 1.53.85l14.39-9a1 1 0 0 0 0-1.7h.01Z"/></svg>',weekendavisen:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 25"><path fill="currentColor" d="M20.795 12.249c.154.119.154.391 0 .51L5.879 23.453c-.166.13-.379 0-.379-.248V1.802c0-.237.225-.379.38-.249L20.794 12.25Z"/></svg>'},ek=e=>{let t=eT[C()]||"<svg />";return(0,u.jsx)(eh,{svg:t,...e})},eL={berlingske:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 48 48"><path fill="currentColor" d="m28.734 13.859-.181 4.388-.021-.021c-.063 1.694-2.098 2.54-3.378 1.405l-7.175-6.384c-.944-.826-.882-2.293.126-3.057l7.7-5.784c1.363-1.013 3.314-.021 3.251 1.673l-.215 5.19c6.996 2.068 12.102 8.45 12.102 16.026 0 9.24-7.606 16.702-16.943 16.702-9.337 0-16.943-7.462-16.943-16.702a1.25 1.25 0 1 1 2.5 0c0 7.823 6.45 14.202 14.443 14.202 7.993 0 14.443-6.379 14.443-14.202 0-6.198-4.038-11.49-9.709-13.436Z"/></svg>',bt:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 48 48"><path fill="currentColor" d="M25.877 7.8V4l-7.42 5.46 7.42 5.46v-3.44c7.16.92 12.64 7.06 12.64 14.38 0 8-6.52 14.52-14.52 14.52s-14.52-6.54-14.52-14.54h-3.64c0 10.02 8.14 18.16 18.16 18.16s18.16-8.14 18.16-18.16c0-9.32-7.1-17.1-16.28-18.04Z"/></svg>',euroinvestor:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 48 49"><path fill="currentColor" d="m25.9 4.501-7.48 5.5 7.48 5.5v-3.835c7.368.928 13.08 7.23 13.08 14.855 0 8.271-6.709 14.98-14.98 14.98-8.272 0-14.98-6.709-14.98-14.98h-3C6.02 36.449 14.07 44.5 24 44.5c9.928 0 17.98-8.052 17.98-17.98 0-9.283-7.05-16.93-16.08-17.875V4.501Z"/></svg>',weekendavisen:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 48 49">
1<path fill="currentColor" d="M27.139 4.894a1.25 1.25 0 0 1-.05 1.767l-2.084 1.968c9.448.517 16.955 8.346 16.955 17.923 0 .08-.007.157-.021.232-.125 9.803-8.116 17.718-17.949 17.718-9.91 0-17.95-8.04-17.95-17.95a1.25 1.25 0 1 1 2.5 0c0 8.53 6.92 15.45 15.45 15.45s15.45-6.92 15.45-15.45c0-.073.006-.145.019-.215-.112-8.164-6.562-14.802-14.65-15.215l2.09 2.212a1.25 1.25 0 1 1-1.818 1.716l-4.958-5.248 5.249-4.959a1.25 1.25 0 0 1 1.767.05Z"/></svg>'},eN=e=>{let t=eL[C()]||"<svg />";return(0,u.jsx)(eh,{svg:t,...e})},eM={berlingske:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M22 11H5.84L11.16 5.71004L9.74 4.29004L2 12L9.74 19.71L11.16 18.29L5.84 13H22V11Z" fill="currentColor" />\n</svg>\n',bt:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M22 11H5.84L11.16 5.71004L9.74 4.29004L2 12L9.74 19.71L11.16 18.29L5.84 13H22V11Z" fill="currentColor" />\n</svg>\n',euroinvestor:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M22 11H5.84L11.16 5.71004L9.74 4.29004L2 12L9.74 19.71L11.16 18.29L5.84 13H22V11Z" fill="currentColor" />\n</svg>\n',weekendavisen:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 25"><path fill="currentColor" d="M10.144 4.198a.625.625 0 1 1 .883.885l-6.63 6.612h17.598v1.25H4.398l6.628 6.602a.625.625 0 1 1-.882.886L2 12.32l8.144-8.122Z"/></svg>'},eR=e=>{let t=eM[C()]||"<svg />";return(0,u.jsx)(eh,{svg:t,...e})},eI={berlingske:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentcolor" d="M4.226 16c-.738 0-1.064-.93-.488-1.39l7.637-6.11a1 1 0 0 1 1.25 0l7.637 6.11c.576.46.25 1.39-.488 1.39a.78.78 0 0 1-.488-.171l-6.661-5.33a1 1 0 0 0-1.25 0l-6.661 5.33a.78.78 0 0 1-.488.171"/></svg>',bt:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentcolor" d="m2 16 10-8 10 8h-5l-5-4-5 4z"/></svg>',euroinvestor:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentcolor" d="M4.226 16c-.738 0-1.064-.93-.488-1.39l7.637-6.11a1 1 0 0 1 1.25 0l7.637 6.11c.576.46.25 1.39-.488 1.39a.78.78 0 0 1-.488-.171l-6.661-5.33a1 1 0 0 0-1.25 0l-6.661 5.33a.78.78 0 0 1-.488.171"/></svg>',weekendavisen:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 30 30"><path fill="currentcolor" d="M9.223 13.226a.773.773 0 0 0 0 1.086l5.236 5.29a.76.76 0 0 0 1.082 0l5.236-5.29a.773.773 0 0 0 0-1.086l-.085-.
1075a.76.76 0 0 0-.997.075L15 17.97l-4.694-4.744a.76.76 0 0 0-.996-.075z"/></svg>'},eF=e=>{let t=eI[C()]||"<svg />";return(0,u.jsx)(eh,{svg:t,...e})},eD={berlingske:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M11.93 3.678a.63.63 0 0 0-.69.14l-5.01 5.05H3.65c-.91 0-1.65.74-1.65 1.65v2.96c0 .91.74 1.65 1.65 1.65h2.61l4.98 5.04c.12.12.29.19.45.19a.632.632 0 0 0 .63-.64V4.268c0-.26-.16-.49-.39-.59ZM18.66 5.118a.632.632 0 0 0-.88.1c-.21.27-.17.66.1.88a7.448 7.448 0 0 1 2.86 5.89c0 2.31-1.04 4.46-2.86 5.89-.27.21-.32.61-.1.88.12.16.31.24.49.24.14 0 .27-.04.39-.13a8.714 8.714 0 0 0 3.34-6.88c0-2.7-1.22-5.2-3.34-6.88v.01Z"/><path fill="currentColor" d="M16.15 7.078a.628.628 0 0 0-.88.04c-.23.26-.21.65.04.88a5.403 5.403 0 0 1 1.78 4c0 1.52-.64 2.95-1.74 3.97-.25.23-.27.63-.04.88.12.13.29.2.46.2.15 0 .3-.05.42-.17a6.677 6.677 0 0 0 2.15-4.89c0-1.85-.8-3.67-2.19-4.93v.02Z"/></svg>',bt:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M2 8v8h4l6 5V3L6 8H2Z"/><path fill="currentColor" fill-rule="evenodd" d="M14.292 7.707 15 7l.708-.707.002.002.003.004.008.008.026.027c.02.021.048.05.081.088.067.074.158.179.265.313.214.267.495.654.775 1.144C17.426 8.855 18 10.276 18 12c0 1.724-.574 3.145-1.132 4.121-.28.49-.56.877-.775 1.144a6.866 6.866 0 0 1-.346.401l-.026.027-.008.008-.003.004-.002.001L15 17l-.708-.707-.002.003.008-.009.046-.05c.042-.046.107-.12.188-.221a6.96 6.96 0 0 0 .6-.887c.442-.774.868-1.853.868-3.129s-.426-2.355-.868-3.129a6.968 6.968 0 0 0-.6-.887 4.844 4.844 0 0 0-.234-.271l-.008-.009.002.003Z" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M17.292 4.707 18 4l.708-.707.002.003.004.004.011.011a3.838 3.838 0 0 1 .15.161c.095.107.226.26.381.459.31.395.717.972 1.122 1.715A13.235 13.235 0 0 1 22 12c0 2.704-.812 4.869-1.622 6.354a12.55 12.55 0 0 1-1.122 1.715 9.271 9.271 0 0 1-.531.62l-.011.011-.004.004-.002.002L18 20l-.708-.707.016-.016a7.227 7.227 0 0 0 .373-.44c.253-.323.596-.809.941-1.44C19.312 16.131 20 14.295 20 12a11.235 11.235 0 0 0-2.319-6.837 7.253 7.253 0 0 0-.373-.44l-.016-.016-.002-.002h.001l.001.002Z" clip-rule="evenodd"/></svg>',euroinvestor:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M13.5 20.24v-1.5c0-.13.11-.24.24-.24C17.21 18.37 20 15.51 20 12s-2.79-6.37-6.26-6.5c-.13 0-.24-.11-.24-.24v-1.5c0-.14.12-.26.26-.26C18.33 3.64 22 7.4 22 12s-3.67 8.36-8.24 8.5c-.14 0-.26-.11-.26-.26ZM2 9v6c0 .55.45 1 1 1h2.28c.47 0 .92.16 1.28.46l4.62 3.85a.5.5 0 0 0 .82-.38V4.07c0-.42-.49-.66-.82-.38L6.56 7.54c-.36.3-.81.46-1.28.46H3c-.55 0-1 .45-1 1Z"/><path fill="currentColor" d="M13.5 14.74v1.5c0 .15.13.26.27.26 2.35-.14 4.23-2.1 4.23-4.49s-1.87-4.35-4.23-4.49c-.15-.01-.27.12-.27.26v1.5c0 .13.1.23.23.24C15 9.64 16 10.71 16 12.01c0 1.3-1 2.37-2.27 2.49-.13.01-.23.11-.23.24Z"/></svg>',weekendavisen:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M11.69 4.45a.444.444 0 0 1 .263-.08.52.52 0 0 1 .512.517v14.22a.513.513 0 0 1-.517.518.557.557 0 0 1-.268-.08l-5.089-3.2a.534.534 0 0 0-.278-.08H2.507A.509.509 0 0 1 2 15.76V8.236c0-.278.229-.507.507-.507h3.816c.1 0 .189-.03.278-.08l5.088-3.2Zm.263-.08h.005-.01.005Zm6.291.195.491.388a8.56 8.56 0 0 1 3.269 6.721 8.53 8.53 0 0 1-3.27 6.723l-.492.386-.772-.983.492-.386a7.28 7.28 0 0 0 2.792-5.74 7.31 7.31 0 0 0-2.793-5.74l-.491-.387.774-.982Zm-1.953 2.332-.464-.418-.836.929.464.418a5.229 5.229 0 0 1 1.731 3.898 5.216 5.216 0 0 1-1.697 3.864l-.46.424.849.918.459-.424a6.466 6.466 0 0 0 2.1-4.782c0-1.912-.826-3.64-2.146-4.827Z" clip-rule="evenodd"/></svg>'},eB=e=>{let t=eD[C()]||"<svg />";return(0,u.jsx)(eh,{svg:t,...e})},eO={berlingske:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M11.93 3.688a.63.63 0 0 0-.69.14l-5.01 5.05H3.65c-.91 0-1.65.74-1.65 1.65v2.95c0 .91.74 1.65 1.65 1.65h2.61l4.98 5.04c.12.12.29.19.45.19a.632.632 0 0 0 .63-.64V4.278c0-.26-.16-.49-.39-.59ZM16.15 7.088a.628.628 0 0 0-.88.04.62.62 0 0 0 .05.88 5.403 5.403 0 0 1 1.78 4c0 1.52-.64 2.95-1.74 3.97-.25.23-.27.63-.04.88.12.13.29.2.46.2.15 0 .3-.05.42-.17a6.677 6.677 0 0 0 2.15-4.89c0-1.85-.8-3.67-2.19-4.93l-.01.02Z"/></svg>',bt:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
1<path fill="currentColor" d="M2 8v8h4l6 5V3L6 8H2Z"/><path fill="currentColor" fill-rule="evenodd" d="M14.292 7.707 15 7l.708-.707.002.002.003.004.008.008.026.027c.02.021.048.05.081.088.067.074.158.179.265.313.214.267.495.654.775 1.144C17.426 8.855 18 10.276 18 12c0 1.724-.574 3.145-1.132 4.121-.28.49-.56.877-.775 1.144a6.866 6.866 0 0 1-.346.401l-.026.027-.008.008-.003.004-.002.001L15 17l-.708-.707-.002.003.008-.009.046-.05c.042-.046.107-.12.188-.221a6.96 6.96 0 0 0 .6-.887c.442-.774.868-1.853.868-3.129s-.426-2.355-.868-3.129a6.968 6.968 0 0 0-.6-.887 4.844 4.844 0 0 0-.234-.271l-.008-.009.002.003Z" clip-rule="evenodd"/></svg>',euroinvestor:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M2 15V9c0-.55.45-1 1-1h2.28c.47 0 .92-.16 1.28-.46l4.62-3.85c.33-.28.82-.04.82.38v15.86a.5.5 0 0 1-.82.38l-4.62-3.85c-.36-.3-.81-.46-1.28-.46H3c-.55 0-1-.45-1-1ZM13.5 14.74v1.5c0 .15.13.26.27.26 2.35-.14 4.23-2.1 4.23-4.49s-1.87-4.35-4.23-4.49c-.15-.01-.27.12-.27.26v1.5c0 .13.1.23.23.24C15 9.64 16 10.71 16 12.01c0 1.3-1 2.37-2.27 2.49-.13.01-.23.11-.23.24Z"/></svg>',weekendavisen:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M11.69 4.45a.444.444 0 0 1 .263-.08.52.52 0 0 1 .512.517v14.22a.513.513 0 0 1-.517.518.557.557 0 0 1-.268-.08l-5.089-3.2a.534.534 0 0 0-.278-.08H2.507A.509.509 0 0 1 2 15.76V8.236c0-.278.229-.507.507-.507h3.816c.1 0 .189-.03.278-.08l5.088-3.2Zm.263-.08h.005-.01.005Zm4.338 2.527-.464-.418-.836.929.464.418a5.229 5.229 0 0 1 1.731 3.898 5.216 5.216 0 0 1-1.697 3.864l-.46.424.849.918.459-.424a6.466 6.466 0 0 0 2.1-4.782c0-1.912-.826-3.64-2.146-4.827Z" clip-rule="evenodd"/></svg>'},eV=e=>{let t=eO[C()]||"<svg />";return(0,u.jsx)(eh,{svg:t,...e})},eZ={berlingske:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M11.93 3.689a.63.63 0 0 0-.69.14l-5.01 5.05H3.65c-.91 0-1.65.74-1.65 1.65v2.95c0 .91.74 1.65 1.65 1.65h2.61l4.98 5.04c.12.12.29.19.45.19a.632.632 0 0 0 .63-.64V4.279c0-.26-.16-.49-.39-.59ZM19.15 12.009l2.11-2.11c.24-.24.24-.64 0-.88a.628.628 0 0 0-.88 0l-2.11 2.11-2.11-2.11a.628.628 0 0 0-.88 0c-.24.24-.24.64 0 .88l2.11 2.11-2.11 2.11c-.24.24-.24.64 0 .88.12.12.28.18.44.18.16 0 .32-.06.44-.18l2.11-2.11 2.11 2.11c.12.12.28.18.44.18.16 0 .32-.06.44-.18.24-.24.24-.64 0-.88l-2.11-2.11Z"/></svg>',bt:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M2 16V8h4l6-5v18l-6-5H2ZM15.957 8.293l2.293 2.293 2.293-2.293 1.414 1.414L19.664 12l2.293 2.293-1.414 1.414-2.293-2.293-2.293 2.293-1.414-1.414L16.836 12l-2.293-2.293 1.414-1.414Z"/></svg>',euroinvestor:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M2 15V9c0-.55.45-1 1-1h2.28c.47 0 .92-.16 1.28-.46l4.62-3.85c.33-.28.82-.04.82.38v15.86a.5.5 0 0 1-.82.38l-4.62-3.85c-.36-.3-.81-.46-1.28-.46H3c-.55 0-1-.45-1-1ZM20.14 8.64l.71.71c.2.2.2.51 0 .71L18.91 12l1.94 1.94c.2.2.2.51 0 .71l-.71.71c-.2.2-.51.2-.71 0l-1.94-1.94-1.94 1.94c-.2.2-.51.2-.71 0l-.71-.71c-.2-.2-.2-.51 0-.71L16.07 12l-1.94-1.94c-.2-.2-.2-.51 0-.71l.71-.71c.2-.2.51-.2.71 0l1.94 1.94 1.94-1.94c.2-.2.51-.2.71 0Z"/></svg>',weekendavisen:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M11.687 4.45a.444.444 0 0 1 .263-.08.52.52 0 0 1 .512.517v14.218a.513.513 0 0 1-.517.517.556.556 0 0 1-.268-.08L6.59 16.344a.534.534 0 0 0-.278-.08H2.507A.509.509 0 0 1 2 15.758V8.235c0-.278.229-.507.507-.507h3.815c.1 0 .189-.03.278-.079l5.087-3.2ZM11.95 4.37h.005-.01.005ZM21.89 8.931l-3.08 3.075 3.08 3.075-.883.884-3.08-3.076-3.081 3.076-.883-.884 3.08-3.075-3.08-3.075.883-.884 3.08 3.076 3.081-3.076.883.884Z"/></svg>'},eW=e=>{let t=eZ[C()]||"<svg />";return(0,u.jsx)(eh,{svg:t,...e})},eG=()=>{let[e,t]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{let e=document.createElement("div");e.className="adsbox ads ad-banner ad-container",e.style.position="absolute",e.style.height="1px",e.style.width="1px",e.style.top="-1000px",document.body.appendChild(e),setTimeout(()=>{let i=!e.offsetParent||"none"===window.getComputedStyle(e).display||0===e.offsetHeight;(e.remove(),i)?t(!0):fetch("https://imasdk.googleapis.com/js/sdkloader/ima3.js").then(()=>{t(!1)}).catch(()=>{t(!0)})},100)},[]),e};function eU(e,t){let[i,n]=(0,c.useState)(),r=y(e);return(0,c.useEffect)(()=>
1{if(r())return void n(!0);let e=0,i=setInterval(()=>{e++,r()&&(n(!0),clearInterval(i)),void 0!==t&&e>=10*t&&(n(!1),clearInterval(i))},100);return()=>clearInterval(i)},[t]),i}function eq(e,t,i,n){(0,c.useEffect)(()=>{if(!e)return;let r=e=>{e.preventDefault()},a=t=>{t.preventDefault(),i?.(eY(e,t.clientX))},l=e=>{("mouse"!==e.pointerType||0===e.button)&&(e.preventDefault(),window.addEventListener("pointermove",a,{passive:!1}),window.addEventListener("pointerup",s),window.addEventListener("pointercancel",o),document.addEventListener("pointerleave",s),t?.())},s=t=>{a(t);let i=eY(e,t.clientX);n?.(i),o()},o=()=>{window.removeEventListener("pointermove",a),window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",o),document.removeEventListener("pointerleave",s)};return e.addEventListener("touchstart",r,{passive:!1}),e.addEventListener("pointerdown",l,{passive:!1}),()=>{e.removeEventListener("touchstart",r),e.removeEventListener("pointerdown",l),window.removeEventListener("pointermove",a),window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",o),document.removeEventListener("pointerleave",s)}},[i,t,n,e])}function eY(e,t){let i=e.getBoundingClientRect();return Math.max(0,Math.min(1,(t-i.left)/i.width))}var eQ="externalMediaPlayerEvent";function eJ(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function e$(e,t,i){return t&&eJ(e.prototype,t),i&&eJ(e,i),e}function eK(){return(eK=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}function eX(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e1(e,t)}function e0(e){return(e0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function e1(e,t){return(e1=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function e2(e,t,i){return(e2=!function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?function(e,t,i){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return i&&e1(r,i.prototype),r}:Reflect.construct).apply(null,arguments)}function e5(e){var t="function"==typeof Map?new Map:void 0;return(e5=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return e2(e,arguments,e0(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),e1(i,e)})(e)}function e6(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e4(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}var e3=0;function e7(e){return"__private_"+e3+++"_"+e}function e8(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var e9={};e9.CustomEvent="function"==typeof CustomEvent?CustomEvent:function(e){return t[e]=new t("").constructor[e],t;function t(e,t){t||(t={});var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail),i}}("prototype");var te=e9.CustomEvent,tt=e7("mediaElement"),ti=e7("currentTime"),tn=e7("enabled"),tr=function(){function e(e){Object.defineProperty(this,tt,{writable:!0,value:void 0}),Object.defineProperty(this,ti,{writable:!0,value:void 0}),Object.defineProperty(this,tn,{writable:!0,value:void 0}),this.seeking=void 0,e8(this,tt)[tt]=e,e8(this,ti)[ti]=0,e8(this,tn)[tn]=!1,this.seeking=!1,this.t=this.t.bind(this),this.i=this.i.bind(this),this.h=this.h.bind(this),this.enable()}var t=e.prototype;return t.i=function(){this.seeking=!0},t.h=function(){this.seeking=!1},t.t=function(){var e,t;
vendor: 17,827 bytes, line 1
1this.seeking||null!=(e=e8(this,tt)[tt])&&e.paused||(e8(this,ti)[ti]=null==(t=e8(this,tt)[tt])?void 0:t.currentTime)},t.enable=function(){var e,t,i;e8(this,tn)[tn]||(null==(e=e8(this,tt)[tt])||e.addEventListener("seeking",this.i),null==(t=e8(this,tt)[tt])||t.addEventListener("seeked",this.h),null==(i=e8(this,tt)[tt])||i.addEventListener("timeupdate",this.t),e8(this,tn)[tn]=!0)},t.disable=function(){var e,t,i;e8(this,tn)[tn]&&(null==(e=e8(this,tt)[tt])||e.removeEventListener("seeking",this.i),null==(t=e8(this,tt)[tt])||t.removeEventListener("seeked",this.h),null==(i=e8(this,tt)[tt])||i.removeEventListener("timeupdate",this.t),e8(this,tn)[tn]=!1)},t.play=function(){var e=this;return new Promise(function(t){var i;t(null==(i=e8(e,tt)[tt])?void 0:i.play())})},t.pause=function(){var e;null==(e=e8(this,tt)[tt])||e.pause()},t.reset=function(){e8(this,ti)[ti]=0,e8(this,tn)[tn]=!1,this.seeking=!1,this.enable()},t.destroy=function(){e8(this,ti)[ti]=0,e8(this,tn)[tn]=!1,this.seeking=!1,this.disable(),e8(this,tt)[tt]=void 0},e$(e,[{key:"enabled",get:function(){return e8(this,tn)[tn]}},{key:"currentTime",get:function(){return e8(this,ti)[ti]}},{key:"duration",get:function(){var e;return null==(e=e8(this,tt)[tt])?void 0:e.duration}},{key:"muted",get:function(){var e;return null==(e=e8(this,tt)[tt])?void 0:e.muted}},{key:"volume",get:function(){var e;return null==(e=e8(this,tt)[tt])?void 0:e.volume}}]),e}(),ta=function(){function e(){this.delegate=document.createDocumentFragment()}var t=e.prototype;return t.addEventListener=function(){this.delegate.addEventListener.apply(this.delegate,[].slice.call(arguments))},t.dispatchEvent=function(){return this.delegate.dispatchEvent.apply(this.delegate,[].slice.call(arguments))},t.removeEventListener=function(){return this.delegate.removeEventListener.apply(this.delegate,[].slice.call(arguments))},e}(),tl=["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"];(l=o||(o={})).MEDIA_START="MediaStart",l.MEDIA_IMPRESSION="MediaImpression",l.MEDIA_STOP="MediaStop",l.MEDIA_CUE_POINTS_CHANGE="MediaCuePointsChange",l.MEDIA_RESUMED="MediaResumed",(s=d||(d={})).AD_ERROR="AdError",s.AD_BUFFERING="AdBuffering",s.LOADED="AdLoaded",s.IMPRESSION="AdImpression",s.STARTED="AdStarted",s.FIRST_QUARTILE="AdFirstQuartile",s.MIDPOINT="AdMidpoint",s.THIRD_QUARTILE="AdThirdQuartile",s.AD_PROGRESS="AdProgress",s.COMPLETE="AdComplete",s.CLICK="AdClick",s.PAUSED="AdPaused",s.RESUMED="AdResumed",s.SKIPPED="AdSkipped",s.SKIPPABLE_STATE_CHANGED="AdSkippableStateChanged",s.VOLUME_CHANGED="AdVolumeChanged",s.VOLUME_MUTED="AdMuted",s.AD_METADATA="AdMetadata",s.AD_BREAK_READY="AdBreakReady",s.CONTENT_PAUSE_REQUESTED="AdContentPauseRequested",s.CONTENT_RESUME_REQUESTED="AdContentResumeRequested",s.ALL_ADS_COMPLETED="AdAllAdsCompleted",s.DURATION_CHANGE="AdDurationChange",s.INTERACTION="AdInteraction",s.LINEAR_CHANGED="AdLinearChanged",s.LOG="AdLog",s.USER_CLOSE="AdUserClose",s.AD_CAN_PLAY="AdCanPlay",s.EXPANDED_CHANGED="AdExpandedChanged",s.VIEWABLE_IMPRESSION="AdViewableImpression";var ts=eK({},d,o),to=function(){this.disableCustomPlaybackForIOS10Plus=!1,this.autoResize=!0,this.clickTrackingElement=void 0},td=function(e){function t(){var t;return(t=e.call.apply(e,[this].concat([].slice.call(arguments)))||this).errorCode=void 0,t.innerError=void 0,t.type=void 0,t.vastErrorCode=void 0,t}return eX(t,e),t}(e5(Error));td.ERROR_CODE_ADS_MANAGER_LOADED_TIMEOUT=9e3,td.ERROR_CODE_REQUEST_ADS_TIMEOUT=9001;var tc=e7("mediaElement"),tu=e7("adElement"),th=e7("customPlayhead"),tm=e7("adsRenderingSettings"),tg=e7("ima"),tv=e7("adDisplayContainer"),tf=e7("adsManager"),tp=e7("width"),tw=e7("height"),ty=e7("adsLoader"),tA=e7("playerOptions"),tx=e7("resizeObserver"),t_=e7("currentAd"),tb=e7("loadedAd"),tE=e7("mediaStartTriggered"),tj=e7("mediaImpressionTriggered"),tz=e7("mediaInActivation"),tP=e7("customPlaybackTimeAdjustedOnEnded"),tH=e7("cuePoints"),tS=e7("adCurrentTime"),tC=e7("adDuration"),tT=e7("startAdCallback"),tk=e7("adsManagerLoadedTimeout"),tL=e7("requestAdsTimeout"),tN=e7("wasExternallyPaused"),tM=e7("lastNonZeroAdVolume"),tR=e7("activatePromise"),tI=function(e){function t(t,i,n,r,a){void 0===r&&(r=new t.AdsRenderingSettings),void 0===a&&(a=new to),Object.defineProperty(e6(l=e.call(this)||this),tc,{writable:!0,value:void 0}),Object.defineProperty(e6(l),tu,{writable:!0,value:void 0}),Object.defineProperty(e6(l),th,{writable:!0,value:void 0}),Object.defineProperty(e6(l),tm,{writable:!0,value:void 0}),Object.defineProperty(e6(l),tg,{writable:!0,value:void 0}),Object.defineProperty(e6(l),tv,{writable:!0,value:void 0}),Object.defineProperty(e6(l),tf,{writable:!0,value:void 0}),Object.defineProperty(e6(l),tp,{writable:!0,value:void 0}),Object.defineProperty(e6(l),tw,{writable:!0,value:void 0}),Object.defineProperty(e6(l),ty,{writable:!0,value:void 0}),Object.defineProperty(e6(l),tA,{writable:!0,value:void 0}),Object.defineProperty(e6(l),tx,{writable:!0,value:void 0}),Object.defineProperty(e6(l),t_,{writable:!0,value:void 0}),Object.defineProperty(e6(l),tb,{writable:!0,value:void 0}),Object.defineProperty(e6(l),tE,{writable:!0,value:!1}),Object.defineProperty(e6(l),tj,{writable:!0,value:!1}),Object.defineProperty(e6(l),tz,{writable:!0,value:!1}),Object.defineProperty(e6(l),tP,{writable:!0,value:!1}),Object.defineProperty(e6(l),tH,{writable:!0,value:[]}),Object.defineProperty(e6(l),tS,{writable:!0,value:void 0}),Object.defineProperty(e6(l),tC,{writable:!0,value:void 0}),Object.defineProperty(e6(l),tT,{writable:!0,value:void 0}),Object.defineProperty(e6(l),tk,{writable:!0,value:void 0}),Object.defineProperty(e6(l),tL,{writable:!0,value:void 0}),Object.defineProperty(e6(l),tN,{writable:!0,value:!1}),Object.defineProperty(e6(l),tM,{writable:!0,value:1}),Object.defineProperty(e6(l),tR,{writable:!0,value:Promise.resolve()}),e8(e6(l),tc)[tc]=i,e8(e6(l),tu)[tu]=n,e8(e6(l),tg)[tg]=t,e8(e6(l),tA)[tA]=a,e8(e6(l),tm)[tm]=r,e8(e6(l),tm)[tm].restoreCustomPlaybackStateOnAdBreakComplete=!0,a.disableCustomPlaybackForIOS10Plus&&!e8(e6(l),tc)[tc].hasAttribute("playsinline")&&e8(e6(l),tc)[tc].setAttribute("playsinline",""),e8(e6(l),tg)[tg].settings.setDisableCustomPlaybackForIOS10Plus(a.disableCustomPlaybackForIOS10Plus),e8(e6(l),th)[th]=new tr(e8(e6(l),tc)[tc]),l.o=l.o.bind(e6(l)),tl.forEach(function(e){e8(e6(l),tc)[tc].addEventListener(e,l.o)}),l.u=l.u.bind(e6(l)),l.l=l.l.bind(e6(l));var l,s=e8(e6(l),tc)[tc],o=s.offsetHeight,d=s.offsetWidth;return e8(e6(l),tp)[tp]=d,e8(e6(l),tw)[tw]=o,a.autoResize&&window.ResizeObserver&&(e8(e6(l),tx)[tx]=new window.ResizeObserver(function(e){return l.v(e)}),e8(e6(l),tx)[tx].observe(e8(e6(l),tc)[tc])),l}eX(t,e);var i=t.prototype;return i.activate=function(){var e=this;if(!e8(this,tE)[tE]&&!e8(this,tz)[tz]&&(e8(this,tz)[tz]=!0,e8(this,tc)[tc].paused)){var t=function(){return e8(e,tc)[tc].pause(),new Promise(function(t){setTimeout(function(){e8(e,tz)[tz]=!1,t()},1)})};e8(this,tR)[tR]=new Promise(function(t){return t(e8(e,tc)[tc].play())}).then(t).catch(t)}},i.playAds=function(e){this.m(e)},i.loadAds=function(e,t){this.m(e,!1,t)},i.p=function(){var e=this;return e8(this,tR)[tR].then(function(){return new Promise(function(t){return t(e8(e,tc)[tc].play())})})},i.m=function(e,t,i){var n=this;void 0===t&&(t=!0),this.reset(),this.O(),e8(this,tg)[tg].settings.setAutoPlayAdBreaks(t),e8(this,tc)[tc].ended&&(e8(this,th)[th].reset(),e8(this,tc)[tc].currentTime=0),e8(this,tT)[tT]=i,e.linearAdSlotWidth=e8(this,tp)[tp],e.linearAdSlotHeight=e8(this,tw)[tw],e.nonLinearAdSlotWidth=e8(this,tp)[tp],e.nonLinearAdSlotHeight=e8(this,tw)[tw],e.contentDuration??=-3,e8(this,tk)[tk]=window.setTimeout(function(){var e=new td("No adsManagerLoadedEvent within 5000ms.");e.errorCode=td.ERROR_CODE_ADS_MANAGER_LOADED_TIMEOUT,n.j(e)},5e3),e8(this,tL)[tL]=window.setTimeout(function(){var e=new td("No response for ads-request within 10000ms.");e.errorCode=td.ERROR_CODE_REQUEST_ADS_TIMEOUT,n.j(e)},1e4),e8(this,ty)[ty].requestAds(e)},i.O=function(){e8(this,tv)[tv]=new(e8(this,tg))[tg].AdDisplayContainer(e8(this,tu)[tu],e8(this,tA)[tA].disableCustomPlaybackForIOS10Plus?void 0:e8(this,tc)[tc],e8(this,tA)[tA].clickTrackingElement),e8(this,ty)[ty]=new(e8(this,tg))[tg].AdsLoader(e8(this,tv)[tv]),e8(this,ty)[ty].addEventListener(e8(this,tg)[tg].AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.u,!1),e8(this,ty)[ty].addEventListener(e8(this,tg)[tg].AdErrorEvent.Type.AD_ERROR,this.l,!1)},i.skipAd=function(){e8(this,tf)[tf]&&e8(this,tf)[tf].skip()},i.discardAdBreak=function(){e8(this,tf)[tf]&&e8(this,tf)[tf].discardAdBreak()},i.play=function(){var e=this;e8(this,tN)[tN]=!1,!e8(this,th)[th].enabled&&e8(this,tf)[tf]?e8(this,tf)[tf].resume():e8(this,tk)[tk]||this.p().then(function(){}).catch(function(){e.dispatchEvent(new te("pause"))})},i.pause=function(){e8(this,tN)[tN]=!0,!e8(this,th)[th].enabled&&e8(this,tf)[tf]?e8(this,tf)[tf].pause():e8(this,tc)[tc].pause()},i.g=function(e){e8(this,tH)[tH]=[].concat(e),this.dispatchEvent(new te(ts.MEDIA_CUE_POINTS_CHANGE,{detail:{cuePoints:[].concat(e8(this,tH)[tH])}}))},i.A=function(e){var t=this.cuePoints.indexOf(e);t>-1&&(e8(this,tH)[tH].splice(t,1),this.g(e8(this,tH)[tH]))},i.resizeAd=function(e,t){e8(this,tp)[tp]=e,e8(this,tw)[tw]=t,e8(this,tf)[tf]&&e8(this,tf)[tf].resize(e,t,this.k()),e8(this,tu)[tu].style.width=e+"px",e8(this,tu)[tu].style.height=t+"px"},i.reset=function(e){void 0===e&&(e=!1),e&&(e8(this,tj)[tj]=!1,e8(this,tE)[tE]=!1,e8(this,tP)[tP]=!1),this.C(),e8(this,tH)[tH]=[],e8(this,tN)[tN]=!1,e8(this,tT)[tT]=void 0,e8(this,tf)[tf]&&e8(this,tf)[tf].destroy(),e8(this,tf)[tf]=void 0,e8(this,tg)[tg].settings.setAutoPlayAdBreaks(!0),e&&this.P(),e8(this,tu)[tu].style.display="none"},i.P=function(){e8(this,ty)[ty]&&(e8(this,ty)[ty].removeEventListener(e8(this,tg)[tg].AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.u,!1),e8(this,ty)[ty].removeEventListener(e8(this,tg)[tg].AdErrorEvent.Type.AD_ERROR,this.l,!1),e8(this,ty)[ty].destroy()),e8(this,tv)[tv]&&e8(this,tv)[tv].destroy()},i.destroy=function(){var e,t,i,n,r=this;this.reset(!0),e8(this,th)[th].destroy(),tl.forEach(function(e){e8(r,tc)[tc].removeEventListener(e,r.o)}),null==(e=e8(this,ty)[ty])||e.removeEventListener(e8(this,tg)[tg].AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this.u,!1),null==(t=e8(this,tv)[tv])||t.destroy(),null==(i=e8(this,ty)[ty])||i.destroy(),e8(this,tj)[tj]=!1,e8(this,tP)[tP]=!1,e8(this,tE)[tE]=!1,null==(n=e8(this,tx)[tx])||n.disconnect()},i.isCustomPlaybackUsed=function(){return!1===e8(this,tg)[tg].settings.getDisableCustomPlaybackForIOS10Plus()&&!e8(this,tu)[tu].querySelector("video")},i.C=function(){window.clearTimeout(e8(this,tk)[tk]),window.clearTimeout(e8(this,tL)[tL]),e8(this,tk)[tk]=void 0,e8(this,tL)[tL]=void 0,e8(this,t_)[t_]=void 0,e8(this,tS)[tS]=void 0,e8(this,tC)[tC]=void 0,e8(this,tu)[tu].style.display="none",e8(this,tu)[tu].classList.remove("nonlinear"),e8(this,tf)[tf]&&this.R()},i.o=function(e){var t=this;if(e8(this,th)[th].enabled||"volumechange"===e.type){if("timeupdate"===e.type){if(e8(this,tf)[tf]){var i=e8(this,tf)[tf].getCuePoints().filter(function(e){return e>=0&&e<e8(t,th)[th].currentTime}).pop();this.A(i)}!e8(this,tj)[tj]&&e8(this,tE)[tE]&&e8(this,tc)[tc].currentTime>=.5&&(this.dispatchEvent(new te(ts.MEDIA_IMPRESSION)),e8(this,tj)[tj]=!0)}if("play"!==e.type||e8(this,tE)[tE]||e8(this,tz)[tz]||(this.dispatchEvent(new te(ts.MEDIA_START)),e8(this,tE)[tE]=!0),"ended"===e.type&&(this.isCustomPlaybackUsed()&&e8(this,tc)[tc].currentTime===e8(this,tc)[tc].duration&&e8(this,tH)[tH].indexOf(-1)>-1&&(e8(this,tc)[tc].currentTime=e8(this,tc)[tc].duration-1e-5,e8(this,tP)[tP]=!0),e8(this,ty)[ty].contentComplete(),e8(this,tf)[tf]||this.T()),!window.ResizeObserver&&e8(this,tA)[tA].autoResize&&"loadedmetadata"===e.type){var n=e8(this,tc)[tc],r=n.offsetHeight,a=n.offsetWidth;e8(this,tp)[tp]=a,e8(this,tw)[tw]=r,this.R()}e8(this,tz)[tz]&&"volumechange"!==e.type||this.dispatchEvent(new te(e.type))}},i.S=function(e){var t=this,i=e8(this,tg)[tg].AdEvent;switch(e.type){case i.Type.LOADED:var n=e.getAd();e8(this,tT)[tT]&&0===e8(this,tH)[tH].length?e8(this,tT)[tT]({ad:n,start:function(){t.M(),e8(t,tT)[tT]=void 0},startWithoutReset:function(){t.M()}}):e8(this,tb)[tb]=n;break;case i.Type.AD_BREAK_READY:this.C(),e8(this,tT)[tT]?(e8(this,tT)[tT]({ad:e8(this,tb)[tb],adBreakTime:e.getAdData().adBreakTime,start:function(){t.M(),e8(t,tT)[tT]=void 0},startWithoutReset:function(){t.M()}}),e8(this,tb)[tb]=void 0):this.M();break;case i.Type.STARTED:var r=e8(this,t_)[t_]=e.getAd();r.getAdPodInfo().getAdPosition()>1&&e8(this,tf)[tf].setVolume(e8(this,tf)[tf].getVolume()),e8(this,tu)[tu].classList.remove("nonlinear"),this.R(),r.isLinear()?(e8(this,th)[th].disable(),e8(this,tC)[tC]=r.getDuration(),e8(this,tS)[tS]=0):(e8(this,tu)[tu].classList.add("nonlinear"),this.I()),e8(this,tu)[tu].style.display="",e8(this,tN)[tN]&&(e8(this,tN)[tN]=!1,e8(this,tf)[tf].pause());break;case i.Type.ALL_ADS_COMPLETED:if(e8(this,tP)[tP])return;this.isCustomPlaybackUsed()&&e8(this,t_)[t_]&&-1!==e8(this,t_)[t_].getAdPodInfo().getTimeOffset()&&this.I(),this.reset();break;case i.Type.CONTENT_PAUSE_REQUESTED:this.C(),e8(this,t_)[t_]=e.getAd(),e8(this,tu)[tu].style.display="",e8(this,tc)[tc].pause(),this.R(),e8(this,t_)[t_]&&this.A(e8(this,t_)[t_].getAdPodInfo().getTimeOffset()),e8(this,tf)[tf].setVolume(e8(this,tc)[tc].muted?0:e8(this,tc)[tc].volume),e8(this,th)[th].disable(),e8(this,tC)[tC]=e8(this,t_)[t_].getDuration(),e8(this,tS)[tS]=0;break;case i.Type.CONTENT_RESUME_REQUESTED:var a=!!e8(this,t_)[t_];if(a){var l=e8(this,tf)[tf].getVolume();e8(this,tc)[tc].muted=0===l,e8(this,tc)[tc].volume=e8(this,tM)[tM]}e8(this,tP)[tP]&&(e8(this,tc)[tc].currentTime=e8(this,tc)[tc].duration+1,e8(this,tP)[tP]=!1),e8(this,tc)[tc].ended?(this.reset(),this.T()):this.C(),a&&(e8(this,tN)[tN]=!1,this.I());break;case i.Type.AD_METADATA:this.g(e8(this,tf)[tf].getCuePoints()),-1===e8(this,tH)[tH].indexOf(0)&&(e8(this,tT)[tT]?e8(this,tT)[tT]({start:function(){t.I(),e8(t,tT)[tT]=void 0},startWithoutReset:function(){t.I()}}):this.I());break;case i.Type.AD_PROGRESS:var s=e.getAdData();e8(this,tS)[tS]=s.currentTime,e8(this,tC)[tC]=s.duration;break;case i.Type.LOG:var o=e.getAdData();e8(this,tT)[tT]?e8(this,tT)[tT]({start:function(){t.I(),e8(t,tT)[tT]=void 0},startWithoutReset:function(){t.I()}}):o.adError&&!e8(this,t_)[t_]&&this.I();break;case i.Type.VOLUME_CHANGED:var d=e8(this,tf)[tf].getVolume();d>0&&(e8(this,tM)[tM]=d)}},i.l=function(e){this.j(this.B(e))},i.u=function(e){var t,i=this,n=e8(this,tg)[tg],r=n.AdEvent,a=n.AdErrorEvent.Type.AD_ERROR;window.clearTimeout(e8(this,tk)[tk]);var l=e8(this,tf)[tf]=e.getAdsManager(e8(this,th)[th],e8(this,tm)[tm]);Object.keys(r.Type).forEach(function(e){l.addEventListener(r.Type[e],function(t){if(i.S(t),ts[e]){var n=["LOG","AD_PROGRESS"].indexOf(e)>-1;i.dispatchEvent(new te(ts[e],{detail:{ad:t.getAd()||e8(i,t_)[t_],adData:n?t.getAdData():{}}}))}})}),l.addEventListener(a,function(e){return i.j(i.B(e))});try{l.init(e8(this,tp)[tp],e8(this,tw)[tw],this.k()),l.setVolume(e8(this,tc)[tc].muted?0:e8(this,tc)[tc].volume),null==(t=e8(this,tv)[tv])||t.initialize(),e8(this,tT)[tT]||this.M()}catch(e){this.j(new td(e.message))}},i.M=function(){if(e8(this,tE)[tE]||(this.dispatchEvent(new te(ts.MEDIA_START)),e8(this,tE)[tE]=!0),e8(this,tf)[tf])try{e8(this,tf)[tf].start()}catch(e){this.j(new td(e.message))}else this.I()},i.T=function(){var e=this;setTimeout(function(){e8(e,tj)[tj]=!1,e8(e,tE)[tE]=!1,e8(e,tP)[tP]=!1,e.dispatchEvent(new te(ts.MEDIA_STOP))},1)},i.v=function(e){for(var t,i=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return e4(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?e4(e,void 0):void 0}}(e))){t&&(e=t);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(t=i()).done;){var n=t.value;n.contentBoxSize&&1===n.contentBoxSize.length?(e8(this,tp)[tp]=n.contentBoxSize[0].inlineSize,e8(this,tw)[tw]=n.contentBoxSize[0].blockSize):n.contentBoxSize&&n.contentBoxSize.inlineSize?(e8(this,tp)[tp]=n.contentBoxSize.inlineSize,e8(this,tw)[tw]=n.contentBoxSize.blockSize):(e8(this,tp)[tp]=n.contentRect.width,e8(this,tw)[tw]=n.contentRect.height)}this.R()},i.R=function(){if(e8(this,tA)[tA].autoResize&&e8(this,tf)[tf]){var e=e8(this,t_)[t_],t=this.k();e&&!e.isLinear()?e&&(e.getWidth()>e8(this,tp)[tp]||e.getHeight()>e8(this,tw)[tw]?this.resizeAd(e8(this,tp)[tp],e8(this,tw)[tw]):(e8(this,tf)[tf].resize(e.getWidth(),e.getHeight()+20,t),e8(this,tu)[tu].style.width=e.getWidth()+"px",e8(this,tu)[tu].style.height=e.getHeight()+20+"px")):this.resizeAd(e8(this,tp)[tp],e8(this,tw)[tw])}},i.k=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||e8(this,tc)[tc].webkitDisplayingFullscreen?e8(this,tg)[tg].ViewMode.FULLSCREEN:e8(this,tg)[tg].ViewMode.NORMAL},i.I=function(){var e=this;e8(this,tu)[tu].style.display="none",e8(this,tc)[tc].ended||(e8(this,th)[th].enable(),e8(this,tN)[tN]?(e8(this,tc)[tc].pause(),this.dispatchEvent(new te("pause"))):(this.p().then(function(){}).catch(function(){e.dispatchEvent(new te("pause"))}),this.dispatchEvent(new te("play")),this.dispatchEvent(new te(ts.MEDIA_RESUMED))),e8(this,tN)[tN]=!1)}
1,i.B=function(e){var t=e.getError(),i=new td(t.getMessage());return i.type=t.getType(),i.errorCode=t.getErrorCode(),i.vastErrorCode=t.getVastErrorCode&&t.getVastErrorCode(),i.innerError=t.getInnerError(),i},i.j=function(e){var t=this;this.dispatchEvent(new te(ts.AD_ERROR,{detail:{error:e}})),this.C(),e8(this,tT)[tT]?e8(this,tT)[tT]({start:function(){t.I(),e8(t,tT)[tT]=void 0},startWithoutReset:function(){t.I()}}):this.I()},e$(t,[{key:"volume",get:function(){return!e8(this,th)[th].enabled&&e8(this,tf)[tf]?e8(this,tf)[tf].getVolume():e8(this,tc)[tc].volume},set:function(e){!e8(this,th)[th].enabled&&e8(this,tf)[tf]&&e8(this,tf)[tf].setVolume(e),e8(this,tc)[tc].volume=e}},{key:"muted",get:function(){return!e8(this,th)[th].enabled&&e8(this,tf)[tf]?0===e8(this,tf)[tf].getVolume():e8(this,tc)[tc].muted},set:function(e){!e8(this,th)[th].enabled&&e8(this,tf)[tf]&&e8(this,tf)[tf].setVolume(e?0:e8(this,tM)[tM]),e8(this,tc)[tc].muted=e}},{key:"currentTime",get:function(){return void 0!==e8(this,tS)[tS]?e8(this,tS)[tS]:e8(this,tc)[tc].currentTime},set:function(e){e8(this,th)[th].enabled&&(e8(this,tc)[tc].currentTime=e)}},{key:"duration",get:function(){return void 0!==e8(this,tC)[tC]?e8(this,tC)[tC]:e8(this,tc)[tc].duration}},{key:"cuePoints",get:function(){return[].concat(e8(this,tH)[tH])}}]),t}(ta),tF=()=>{let e=(0,c.useContext)(x);if(!e)throw Error("useBidding must be used within a BiddingProvider");return e},tD="u">typeof window&&window.location.search.includes("debugreels"),tB={autoplay:!1,isEmbed:!1,isLive:!1,isVertical:!0,muted:!1,videoFormat:"standard",product:"reels_story",videoDuration:6,videoUrl:""},tO=({enabled:e,adContainerElement:t,videoElement:i,interstitial:n,updatePlayerState:r,onAdsEnded:a})=>{let l=tF(),[s,o]=(0,c.useState)(void 0),d=(0,c.useRef)(null),u=(0,c.useRef)(null),h=(0,c.useRef)(0),m=(0,c.useRef)(!0),g=(0,c.useRef)(null),[v,f]=(0,c.useState)(!1),[p,w]=(0,c.useState)(!1),[A,x]=(0,c.useState)(!1),[_,b]=(0,c.useState)({state:k.Idle,error:!1,data:null}),E=eU(l.isReady,3),j=!!n,z=n?.placeholderIndex,P=n?.isActive??!1,H=n?.hasBeenSeen??!1,S=n?.adVideoId,C=n?.onLockChange,T=n?.onSeen,L=n?.onCountdownComplete,N=n?.muted??!0,M=(n?.shouldPreload??!1)||P,R=(0,c.useRef)(N),I=(0,c.useRef)(null),F=t??d.current,D=i??u.current,B=y(()=>{P&&C?.(!1)}),O=y(()=>{Z(),T?.(z??0),P&&(L?.(),B())});(0,c.useEffect)(()=>{R.current=N},[N]),(0,c.useEffect)(()=>{if(!j||E)return;let e=setTimeout(()=>{x(!0),tD&&console.log("[Reels] Bidding timed out — consent likely not given")},3500);return()=>clearTimeout(e)},[j,E]),(0,c.useEffect)(()=>{tD&&j&&E&&console.log(`[Reels] Bidding ready (+${Math.round(performance.now())}ms)`)},[E,j]),(0,c.useEffect)(()=>{r(),_.state===k.Ended&&(a(),j&&(T?.(z??0),P&&(L?.(),B()))),_.state===k.Error&&(a(),j&&O())},[_]);let V=y(async e=>{if(!s)return!1;b(e=>({...e,state:k.Loading})),s?.reset(!0),h.current+=1;let t=h.current,i=performance.now(),n=await l.getPrerollTag(e.bidding,e.videoId).catch(()=>null);if(tD&&console.log(`[Reels] Ad tag fetched in ${Math.round(performance.now()-i)}ms`),tD&&console.log("[Reels] Ad tag URL:",n),t!==h.current)return!1;if(!n)return b(e=>({...e,state:k.Error,error:!0})),!1;if(!s)return!1;let r=new google.ima.AdsRequest;r.setAdWillAutoPlay(!e.overrideAutoplay&&e.bidding.autoplay),r.setAdWillPlayMuted(j?R.current:e.bidding.muted),r.adTagUrl=n,j&&google.ima.VideoOrientation&&(r.preferredLinearOrientation=google.ima.VideoOrientation.PORTRAIT);try{tD&&console.log(`[Reels] VAST request sent (+${Math.round(performance.now())}ms)`),s.loadAds(r,({start:e})=>{t===h.current&&(tD&&console.log(`[Reels] Ad ready to play (+${Math.round(performance.now())}ms)`),j?(g.current=e,w(!0)):e())})}catch{return!1}return!0}),Z=y(()=>{h.current+=1,g.current=null,w(!1),s?.reset(),b({state:k.Idle,error:!1,data:null})});return(0,c.useEffect)(()=>{if(!e||void 0===E||!F||!D)return;if(!1===E)return void o(null);google.ima.settings.setLocale("da");let t=new google.ima.AdsRenderingSettings;t.enablePreloading=j,j&&(t.useStyledLinearAds=!0);let i=new to;i.disableCustomPlaybackForIOS10Plus=!0;let n=new tI(window.google.ima,D,F,t,i);f(!0),tD&&j&&console.log(`[Reels] IMA player initialized (+${Math.round(performance.now())}ms)`);let r=e=>{b(t=>({...t,state:k.Ready,data:{podcount:e.detail.ad.getAdPodInfo().getTotalAds(),sequence:e.detail.ad.getAdPodInfo().getAdPosition(),duration:e.detail.ad.getDuration(),position:0}}))},a=e=>{j&&n&&(n.muted=R.current),j&&D&&(D.muted=R.current),b(t=>({...t,state:k.Playing,data:{podcount:e.detail.ad.getAdPodInfo().getTotalAds(),sequence:e.detail.ad.getAdPodInfo().getAdPosition(),duration:e.detail.ad.getDuration(),position:0}}))},l=()=>{b(e=>({...e,state:k.Playing,data:{...e.data,duration:n.duration||0,position:n.currentTime||0}}))},s=()=>b(e=>({...e,state:k.Paused})),d=()=>b(e=>({...e,state:k.Playing})),c=e=>{tD&&console.log("[Reels] Ad error:",{message:e.detail.error.message,type:e.detail.error.type,innerError:e.detail.error?.innerError?.message});let t=e.detail.error?.innerError?.message||e.detail.error.type;reportError(Error(`[videoplayer IMA] ${e.detail.error.message}`,{cause:t})),b({state:k.Error,error:!0,data:null})},u=()=>{tD&&console.log("[Reels] All ads completed"),b(e=>e.state===k.Error||e.state===k.Ended?e:{state:k.Ended,error:!1,data:null})},m=()=>{tD&&console.log("[Reels] Ad skipped by user"),b(e=>e.state===k.Error||e.state===k.Ended?e:{state:k.Ended,error:!1,data:null})},g=e=>{window.location.search.includes("debugvideoplayer")&&console.debug("[IMA]",e.type,e.detail)};
1return Object.values(ts).forEach(e=>{n.addEventListener(e,g)}),n.addEventListener(ts.AD_PROGRESS,l),n.addEventListener(ts.LOADED,r),n.addEventListener(ts.STARTED,a),n.addEventListener(ts.PAUSED,s),n.addEventListener(ts.RESUMED,d),n.addEventListener(ts.AD_ERROR,c),n.addEventListener(ts.ALL_ADS_COMPLETED,u),n.addEventListener(ts.SKIPPED,m),o(n),()=>{h.current+=1,f(!1),Object.values(ts).forEach(e=>{n.removeEventListener(e,g)}),n.removeEventListener(ts.AD_PROGRESS,l),n.removeEventListener(ts.LOADED,r),n.removeEventListener(ts.STARTED,a),n.removeEventListener(ts.PAUSED,s),n.removeEventListener(ts.RESUMED,d),n.removeEventListener(ts.AD_ERROR,c),n.removeEventListener(ts.ALL_ADS_COMPLETED,u),n.removeEventListener(ts.SKIPPED,m),o(null)}},[E,j,F,D,e]),(0,c.useEffect)(()=>(m.current=!0,()=>{m.current=!1,Z()}),[]),(0,c.useEffect)(()=>{if(!j||!v||H||!S||!M)return;tD&&console.log(`[Reels] Preloading ad for slot #${z} (+${Math.round(performance.now())}ms)`);let e=h.current;return I.current=N,V({bidding:{...tB,muted:N},videoId:S}).then(t=>{m.current&&e===h.current&&(t||O())}).catch(()=>{m.current&&e===h.current&&O()}),()=>{h.current+=1,g.current=null,w(!1)}},[S,H,M,j,v]),(0,c.useEffect)(()=>{null!==I.current&&I.current!==N&&j&&v&&S&&M&&_.state!==k.Playing&&_.state!==k.Ended&&(tD&&console.log(`[Reels] Mute changed to ${N}, re-requesting ad`),I.current=N,g.current=null,w(!1),V({bidding:{...tB,muted:N},videoId:S}).catch(()=>{m.current&&O()}))},[N,j,v,S,M]),(0,c.useEffect)(()=>{j&&P&&!H&&p&&g.current&&(tD&&console.log(`[Reels] Playing ad slot #${z} (+${Math.round(performance.now())}ms)`),C?.(!0),g.current(),s&&(s.muted=R.current),D&&(D.muted=R.current),g.current=null,w(!1))},[s,p,P,H,C,z,j,D]),(0,c.useEffect)(()=>{j&&P&&!H&&A&&!E&&(tD&&console.log(`[Reels] Skipping ad slot #${z} — no consent`),O())},[j,P,H,A,E,z]),{ad:_,adContainerRef:d,adVideoElementRef:u,isPlayerReady:v,player:s,playAds:V,resetAds:Z}};function tV(e,{threshold:t=0,root:i=null,rootMargin:n="0%",scrollMargin:r}){let[a,l]=(0,c.useState)(),[s,o]=(0,c.useState)(()=>()=>{});return(0,c.useEffect)(()=>{if(!window?.IntersectionObserver||!e)return;let a=new IntersectionObserver(([e])=>{l(e)},{threshold:t,root:i,rootMargin:n,scrollMargin:r});return a.observe(e),o(()=>()=>a.disconnect()),()=>a.disconnect()},[e,t,i,n,r]),{entry:a,disconnect:s}}function tZ(e){let[t,i]=(0,c.useState)();return(0,c.useEffect)(()=>{let t=window.matchMedia?.(e);if(i(t?.matches??!1),!t)return;let n=({matches:e})=>{i(e)};return t.addEventListener?t.addEventListener("change",n):t.addListener&&t.addListener(n),()=>{t.removeEventListener?t.removeEventListener("change",n):t.removeListener&&t.removeListener(n)}},[e]),t}var tW=()=>{let e=tZ("(orientation: portrait)");if(void 0!==e)return e?"portrait":"landscape"};function tG(e){let{controls:t,playerState:i}=e,n=(0,c.useRef)(!1),[r,a]=(0,c.useState)(0);(0,c.useEffect)(()=>{a(i.video.currentTime)},[i.video.currentTime]);let l=y(e=>{a(e*i.video.duration)});return{handleScrubStart:y(()=>{n.current=i.video.state===k.Playing,t.pause()}),handleScrubEnd:y(e=>{let r=i.video.duration*e;t.seek(r),n.current&&t.play()}),handleScrub:l,currentTime:r}}var tU=({videoElement:e,updatePlayerState:t})=>{let[i,n]=(0,c.useState)(k.Idle);return(0,c.useEffect)(t,[i]),(0,c.useEffect)(()=>{if(!e)return;let t=()=>n(k.Loading),i=()=>{n(e=>[k.Playing,k.Paused].includes(e)?e:k.Ready)},r=()=>n(k.Playing),a=()=>n(k.Playing),l=()=>{.1>Math.abs(e.currentTime-e.duration)||n(k.Paused)},s=()=>n(k.Ended),o=()=>n(k.Error);return e.addEventListener("loadstart",t),e.addEventListener("canplay",i),e.addEventListener("play",r),e.addEventListener("playing",a),e.addEventListener("pause",l),e.addEventListener("ended",s),e.addEventListener("error",o),()=>{e.removeEventListener("loadstart",t),e.removeEventListener("canplay",i),e.removeEventListener("play",r),e.removeEventListener("playing",a),e.removeEventListener("pause",l),e.removeEventListener("ended",s),e.removeEventListener("error",o)}},[e]),i},tq=e=>"object"==typeof e&&null!==e,tY=e=>"object"==typeof e&&null!==e;function tQ(e){let{themes:t}=e,i=(()=>{let e=(0,c.useContext)($);if(null===e)throw Error("useTheme must be used within a ThemeProvider");return e})(),n=t[i];return(0,u.jsxs)(u.Fragment,{children:[n&&(0,u.jsx)("style",{"data-theme":i,children:function(e,t){let i,n=(i={},!function e(t,n=""){for(let r in t){let a=t[r];tq(a)?e(a,`${n}${r}_`):i[`${n}${r}`]=a}}
1(e.elements,"--bm-theme_"+e.name+"_"),i),r=` 2 ${t} { 3 ${Object.entries(n).map(([e,t])=>`${e}: ${t};`).join("")} 4 } 5 `;if(e.variants){let i=t.split(",").map(e=>e.trim());for(let[t,n]of Object.entries(e.variants)){let a=function(e,t){let i={};return!function e(t,n){for(let r in t){let a=t[r];void 0!==a&&(tY(a)?e(a,`${n}${r}_`):i[`${n}${r}`]=a)}}(t,`--bm-theme_${e}_`),i}(e.name,n);if(Object.keys(a).length>0){let e=i.map(e=>`${e} [data-theme-variant=${t}]`).join(", ");r+=` 6 ${e} { 7 ${Object.entries(a).map(([e,t])=>`${e}: ${t};`).join("")} 8 } 9 `}}}return r}(n,":root")},i),e.children]})}var tJ="Sanomat Sans Web",t$="Sanomat Alt",tK="Sanomat Alt Extrabold",tX="Guardian Text Egyptian Web",t0="WEA Sans",t1="WEA Tekst",t2="LedgerGrotesk",t5="BTGrotesk",t6="National2",t4="FaktorSans",t3={name:"AdPlaceholder",elements:{bottomBar:{font:{family:t6,lineHeight:ea(19),size:ea(13)}}}},t7={name:"AdPlaceholder",elements:{bottomBar:{font:{family:tJ,size:ea(13),lineHeight:ea(19),letterSpacing:ea(.25)}}}},t8={name:"AdPlaceholder",elements:{bottomBar:{font:{family:t6,lineHeight:ea(19),size:ea(13)}}}},t9={name:"AdPlaceholder",elements:{bottomBar:{font:{family:"SequelSans",lineHeight:ea(19),size:ea(13)}}}},ie={name:"AdPlaceholder",elements:{bottomBar:{font:{family:t6,lineHeight:ea(19),size:ea(13)}}}},it={name:"AdPlaceholder",elements:{bottomBar:{font:{family:t2,size:ea(13),lineHeight:ea(19),letterSpacing:ea(.16)}}}},ii={name:"AdPlaceholder",elements:{bottomBar:{font:{family:t4,lineHeight:ea(19),size:ea(13)}}}},ir={berlingske:t7,bt:t9,euroinvestor:it,weekendavisen:{name:"AdPlaceholder",elements:{bottomBar:{font:{family:t0,size:ea(13),lineHeight:ea(19)}}}},alfa:t3,bravo:t8,charlie:ie,nettavisen:ii},ia="u">typeof window&&window.location.search.includes("debugreels");function il({placeholderIndex:e,onLockChange:t,onSeen:i,onCountdownComplete:n,isActive:r,hasBeenSeen:a=!1,adVideoId:l,shouldPreload:s,muted:o}){let d=`reels_page_pl_${e}`,h=`Vertical_${e}`,{adContainerRef:m,adVideoElementRef:g}=tO({enabled:!0,interstitial:(0,c.useMemo)(()=>({placeholderIndex:e,isActive:r,hasBeenSeen:a,adVideoId:l,shouldPreload:s,muted:o,onLockChange:t,onSeen:i,onCountdownComplete:n}),[l,a,r,o,t,i,n,e,s]),updatePlayerState:()=>{},onAdsEnded:()=>{}});return(0,c.useEffect)(()=>{ia&&console.log(`[Reels] AdPlaceholder[${e}] mounted (preload=${s}, videoId=${l})`)},[]),(0,u.jsx)(tQ,{themes:ir,children:(0,u.jsxs)("div",{className:"_adPlaceholder_15hbi_21","data-placeholder-name":d,"data-vertical-name":h,children:[(0,u.jsx)("div",{ref:m,id:d,"data-ad-unit":h,className:"_adContainer_15hbi_2"}),(0,u.jsx)("video",{ref:g,playsInline:!0,muted:o,className:"_videoElement_15hbi_43"})]})})}var is=e=>({updateMediaSession:(0,c.useCallback)(t=>{if(!t.isPlaying)return;W.setMetadata({title:t.media.title,artwork:t.media.thumbnail?[{src:t.media.thumbnail,type:"image/png"}]:[]}),W.setPlaybackState(t.isPaused?"paused":"playing");let i=t.duration===1/0?t.currentTime+.1:t.duration;t.currentTime<=i&&W.setPositionState({position:t.currentTime,duration:t.duration===1/0?t.currentTime+.1:t.duration}),W.setActionHandler("play",()=>{W.setPlaybackState("playing"),e.play()}),W.setActionHandler("pause",()=>{W.setPlaybackState("paused"),e.pause()}),W.setActionHandler("stop",()=>{W.setPlaybackState("none"),e.pause()}),W.setActionHandler("previoustrack",null),W.setActionHandler("seekbackward",i=>{let n=-((i.seekOffset?i.seekOffset:15e3)*1),r=Math.max(0,Math.min(t.duration,t.currentTime+n));e.seek(r)}),W.setActionHandler("seekforward",i=>{let n=i.seekOffset?i.seekOffset:15e3,r=Math.max(0,Math.min(t.duration,t.currentTime+n));e.seek(r)}),W.setActionHandler("seekto",i=>{let n=i.seekTime??t.currentTime;e.seek(n)})},[e])});function io(...e){"u">typeof window&&window.location.search.includes("debugloadtime")&&console.log(...e)}function id(e){return e?Date.now()-e:void 0}var ic=class{baseData={};videoData={};videoDataPrev={};setBaseData(e){return this.baseData=e,this}setVideoData(e){return this.wasVideoDataPreviouslySet()&&(this.videoDataPrev={...this.videoData}),this.videoData=e,this}refreshVideoData(e){if(void 0!==e.duration){let{duration:t}=e;this.videoData={...this.videoData,duration:t}}return this}wasVideoDataPreviouslySet(){return Object.keys(this.videoData).length>0}},iu=class extends ic{videoIDStarted;PING_STEP=30;currentPing=0;nextPing=this.currentPing+this.PING_STEP;PERCENT_STEP=10;currentPercent=0;nextPercent=this.currentPercent+this.PERCENT_STEP;isPlayStartCustom;setVideoData(e){return super.setVideoData(e),this.resetTime(),this}adImpression(e){let t=Object.fromEntries(Object.entries({position:this.parseAdPosition(e.adPosition),duration:e.adDuration,sequence:e.adSequence,podcount:e.adPodCount}).filter(([,e])=>void 0!==e));Object.keys(t).length>0&&this.logEvent("adImpression",t)}play(e){let t=this.videoData.mediaId;this.isPlayStart({videoIDStarted:this.videoIDStarted,videoID:t})&&(this.logEvent("startPlayer",e),this.videoIDStarted=t)}setIsPlayStartCustom(e){this.isPlayStartCustom=e}pause(e){this.logEvent("pausePlayer",e)}restart(e){this.logEvent("restartPlayer",e)}mute(e){this.logEvent("mutePlayer",{mute:e.isMute})}seek(e){this.logEvent("dragPlayer",e)}time(e){e.position>=this.nextPing&&(this.currentPing=this.nextPing,this.nextPing=this.currentPing+this.PING_STEP,this.logEvent("pingPlayer",{time:this.currentPing})),0!==e.duration&&Math.floor(e.position/e.duration*100)>=this.nextPercent&&(this.currentPercent=this.nextPercent,this.nextPercent=this.currentPercent+this.PERCENT_STEP,this.logEvent("percentageReachedPlayer",{videoPercentage:this.currentPercent}))}complete(e){this.logEvent("finishPlayer",e)}fullscreen(e){this.logEvent("fullscreenPlayer",{fullscreen:e.isFullscreen})}pictureInPicture(e){this.logEvent("pictureInPicturePlayer",{pictureInPicture:e.isPictureInPicture})}floating(e){this.logEvent(e.isFloating?"enterFloatingPlayer":"exitFloatingPlayer")}videoError(e){this.logEvent("videoError",e)}adError(e){this.logEvent("adError",e)}isPlayStart(e){return void 0!==this.isPlayStartCustom?this.isPlayStartCustom:e.videoIDStarted!==e.videoID}logEvent(e,t){this.pushToDataLayer(e,{videoPlatform:`${this.baseData.platform} ${this.baseData.version}`,videoName:this.videoData.title,videoUrl:`https://content.jwplatform.com/v2/media/${this.videoData.mediaId}`,videoSource:this.videoData.source,videoID:this.videoData.mediaId,videoLength:this.videoData.duration,videoPubDate:this.videoData.videoPubDate,videoStartType:this.videoData.startType,...t})}pushToDataLayer(e,t){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:e,player:t})}resetTime(){this.currentPing=0,this.nextPing=this.currentPing+this.PING_STEP,this.currentPercent=0,this.nextPercent=this.currentPercent+this.PERCENT_STEP}parseAdPosition(e){let t;switch(e){case"preroll":t="pre";break;case"midroll":t="mid";break;case"postroll":t="post";break;default:t=void 0}return t}},ih=class{trackers=[];constructor(e=[]){this.trackers=e}addTracker(e){this.trackers.push(e)}init(e){return this.trackersDo(t=>t.setBaseData?.({...e})),this}newVideo(e){return this.trackersDo(t=>t.setVideoData?.({...e})),this}refreshVideoData(e){return this.trackersDo(t=>t.refreshVideoData?.({...e})),this}trackEvent(e,t){this.trackersDo(i=>{"function"==typeof i[e]&&i[e](t)})}
9trackersDo(e){this.trackers.forEach(t=>{e(t)})}},im=["nextauto","nextmanual"],ig=class extends ic{timeoutStep=50;timeoutHandler;video;cbs=[];isInit=!1;isActive=!1;isPaused=!1;hasStarted=!1;videoDataFinished;setVideoData(e){return super.setVideoData(e),this.isInit||(this.init(),this.isInit=!0),this.log(()=>{this.isActive&&this.finish()}),this.videoDataFinished=void 0,this.setUpVideo(e),this}refreshVideoData(e){return super.refreshVideoData(e),void 0!==e.duration&&this.log(()=>{this.video?.setField("duration",this.prepareDuration(e.duration))}),this}adImpression(e){this.log(()=>this.video?.setField("roll",e.adPosition))}load(){this.log(()=>this.video?.load())}play(){return this.log(()=>{!0===this.hasStarted?!0===this.isPaused&&this.video?.resume():this.logStart(),this.isPaused=!1,this.hasStarted=!0}),this}pause(){this.log(()=>{this.video?.pause(),this.isPaused=!0})}stop(){this.log(()=>{this.video?.stop(),this.hasStarted=!1})}restart(){this.log(()=>this.logStart("restart"))}complete(){this.log(()=>this.finish())}init(){if(!this.isKilkayaReady()){this.timeoutHandler=window.setTimeout(()=>{this.init()},this.timeoutStep);return}clearTimeout(this.timeoutHandler),this.runCbs()}setUpVideo(e){return this.log(()=>{this.video=window.kilkaya.getVideo(e.mediaId,!1),this.video&&(this.video.setField("title",e.title),this.video.setField("image",e.image),this.video.setField("duration",this.prepareDuration(e.duration)),Array.isArray(e.tags)&&e.tags.forEach(e=>{this.video?.setField("tag",e)}),e.isLive&&this.video.setLive(),e.isStandalone&&this.video.setField("contentTag","standalone"),this.isActive=!0)}),this}log(e){this.isKilkayaReady()?e():this.cbs.push(e)}logStart(e="start"){this.video?.[e](this.resolveStartType())}finish(){this.video&&(window.kilkaya.finishVideo(this.video),this.isPaused=!1,this.hasStarted=!1,this.isActive=!1,this.videoDataFinished={...this.videoData})}runCbs(){for(let e of this.cbs)e();this.cbs=[]}prepareDuration(e){return Math.round(e)}isKilkayaReady(){return"object"==typeof window.kilkaya}resolveStartType(){var e,t;let i=this.videoData.startType;return this.videoDataFinished&&(e=this.videoDataFinished,t=this.videoData,!(!e.mediaId||t.startType&&im.includes(t.startType))&&e.mediaId===t.mediaId)&&(i="restart"),i}},iv=[new iu,new ig],ip=(0,c.createContext)(iv);function iw(e){let t=(0,c.useContext)(ip),i=(0,c.useRef)(e),n=(0,c.useRef)(void 0),r=(0,c.useRef)(void 0),a=(0,c.useRef)(new Set),l=(0,c.useRef)({});(0,c.useEffect)(()=>{try{n.current=void 0,a.current.clear(),l.current={},r.current=new ih(t),r.current.init({platform:"@berlingske-media/videoplayer",version:"1"})}catch(e){console.warn("Error in VideoTracking Initialization",e)}},[t]),(0,c.useEffect)(()=>{if(!e)return;let t=e.mediaId,l=!e.loops&&e.mediaId===i.current?.mediaId&&a.current.has(e.mediaId)&&e.video.state!==k.Ended&&i.current?.video.state===k.Ended;if(r.current&&t&&(n.current!==t||l)&&(e.isLive||0!==e.video.duration))try{r.current?.newVideo({mediaId:t,title:e.title,duration:e.video.duration,isLive:e.isLive,isStandalone:"standalone"===e.videoFormat,startType:l?"restart":e.startType,videoPubDate:e.videoPubDate,image:"",source:e.source||""}),n.current=t}catch(e){console.warn("Error in setting media meta data for tracking",e)}},[e]),(0,c.useEffect)(()=>{if(r.current&&n.current&&e&&i.current)try{!function(e,t,i,n,r={}){if(i.isLive||i.video.duration===t.video.duration||0===i.video.duration||e.refreshVideoData({duration:Math.floor(i.video.duration)}),i.video.state===k.Playing&&[k.Idle,k.Loading,k.Ready].includes(t.video.state)){let t=r.videoLoadTimeMs??id(i.playIntentTimestamp),n=void 0!==t?{videoLoadTimeMs:t}:void 0;io("[VideoLoadTime] startPlayer event: videoLoadTimeMs",t,r.videoLoadTimeMs?"(from preroll)":"(direct)"),r.videoLoadTimeMs=void 0,e.trackEvent("play",n)}i.loops||t.video.state!==k.Ended||i.video.state!==k.Playing||(n.delete(i.mediaId),e.trackEvent("restart")),i.ads.data&&i.ads.state===k.Playing&&t.ads.state===k.Ready&&1===i.ads.data.sequence&&(r.videoLoadTimeMs||(r.videoLoadTimeMs=id(i.playIntentTimestamp),io("[VideoLoadTime] Preroll started: captured videoLoadTimeMs",r.videoLoadTimeMs)),e.trackEvent("adImpression",{adPosition:"preroll",adDuration:i.ads.data.duration,adSequence:i.ads.data.sequence,adPodCount:i.ads.data.podcount??1})),t.video.state===k.Playing&&i.video.state===k.Paused&&e.trackEvent("pause"),[k.Playing,k.Paused].includes(i.ads.data?i.ads.state:i.video.state)&&i.isMuted!==t.isMuted&&e.trackEvent("mute",{isMute:i.isMuted}),i.video.isFullscreen!==t.video.isFullscreen&&e.trackEvent("fullscreen",{isFullscreen:i.video.isFullscreen}),!i.isLive&&i.video.state===k.Playing&&i.video.currentTime>t.video.currentTime&&e.trackEvent("time",{position:i.video.currentTime,duration:i.video.duration}),n.has(i.mediaId)||t.video.state!==k.Playing||i.video.state!==k.Ended||(n.add(i.mediaId),e.trackEvent("complete")),i.video.isPictureInPicture!==t.video.isPictureInPicture&&e.trackEvent("pictureInPicture",{isPictureInPicture:i.video.isPictureInPicture}),i.video.state===k.Error&&t.video.state!==k.Error&&e.trackEvent("videoError",{videoState:i.video.state}),i.ads.error&&!t.ads.error&&e.trackEvent("adError",{videoFormat:i.videoFormat}),i.floating!==t.floating&&e.trackEvent("floating",{isFloating:i.floating})}(r.current,i.current,e,a.current,l.current)}catch(e){console.warn("Error in sending tracking event",e)}i.current=e},[e])}var iy={name:"ReelInfoScreen",elements:{title:{font:{family:t6,size:ea(16),weight:"800",lineHeight:ea(22)}},link:{font:{family:t6,size:ea(16),weight:"800",lineHeight:ea(16)},borderRadius:ea(0)}}},iA={name:"ReelInfoScreen",elements:{title:{font:{family:t$,size:ea(16),weight:"500",lineHeight:ea(22),letterSpacing:ea(.16)}},link:{font:{family:tJ,size:ea(16),weight:"400",lineHeight:ea(16)},borderRadius:ea(2)}}},ix={name:"ReelInfoScreen",elements:{title:{font:{family:t6,size:ea(16),weight:"800",lineHeight:ea(22)}},link:{font:{family:t6,size:ea(16),weight:"800",lineHeight:ea(16)},borderRadius:ea(0)}}},i_={name:"ReelInfoScreen",elements:{title:{font:{family:t5,size:ea(16),weight:"800",lineHeight:ea(22)}},link:{font:{family:t5,size:ea(16),weight:"800",lineHeight:ea(16)},borderRadius:ea(0)}}},ib={name:"ReelInfoScreen",elements:{title:{font:{family:t6,size:ea(16),weight:"800",lineHeight:ea(22)}},link:{font:{family:t6,size:ea(16),weight:"800",lineHeight:ea(16)},borderRadius:ea(0)}}},iE={name:"ReelInfoScreen",elements:{title:{font:{family:t2,size:ea(16),weight:"700",lineHeight:ea(22)}},link:{font:{family:t2,size:ea(15),weight:"400",lineHeight:ea(15)},borderRadius:ea(4)}}},ij={name:"ReelInfoScreen",elements:{title:{font:{family:t4,size:ea(16),weight:"800",lineHeight:ea(22)}},link:{font:{family:t4,size:ea(16),weight:"800",lineHeight:ea(16)},borderRadius:ea(0)}}},iz={berlingske:iA,bt:i_,euroinvestor:iE,weekendavisen:{name:"ReelInfoScreen",elements:{title:{font:{family:t0,size:ea(16),weight:"500",lineHeight:ea(22)}},link:{font:{family:t0,size:ea(18),weight:"400",lineHeight:ea(18)},borderRadius:ea(0)}}},alfa:iy,bravo:ix,charlie:ib,nettavisen:ij},iP=e=>{let{title:t,icon:i,description:n,trackingPrefix:r}=e;return(0,u.jsx)(tQ,{themes:iz,children:(0,u.jsxs)("div",{className:"_container_h52wk_1",children:[(0,u.jsxs)("div",{className:"_content_h52wk_13",children:[(0,u.jsx)("div",{className:"_icon_h52wk_21",children:i}),(0,u.jsx)("div",{className:"_title_h52wk_32",children:t})]}),n&&(0,u.jsx)("a",{href:"/",className:er("_link_h52wk_36",`sp_reels-${r}-link`),children:n})]})})},iH={today:"I dag",clockPrefix:"kl.",secondsAgo:"{n} sekunder siden",minuteAgo:"1 minut siden",minutesAgo:"{n} minutter siden"},iS={today:"I dag",clockPrefix:"kl.",secondsAgo:"{n} sekunder siden",minuteAgo:"1 minutt siden",minutesAgo:"{n} minutter siden"},iC={"da-DK":iH,"da-DK-x-formal":iH,"nb-NO":iS,"nn-NO":iS},iT="Europe/Copenhagen",ik=(e,t,i="da-DK")=>{let n=Z(i),r=iC[i];if("date"===t)return e.toLocaleDateString(n,{day:"numeric",month:"long",year:R(e)?void 0:"numeric",timeZone:iT});if("datetime"===t){let t=e.toLocaleDateString(n,{day:"numeric",month:"short",year:R(e)?void 0:"numeric",timeZone:iT}),i=e.toLocaleTimeString(n,{hour:"2-digit",minute:"2-digit",timeZone:iT}).replace(/^0/,"");return F(e)?`${r.today} ${r.clockPrefix} ${i}`:`${t} ${r.clockPrefix} ${i}`}{let t=e.toLocaleDateString(n,{day:"numeric",month:"short",year:R(e)?void 0:"numeric",timeZone:iT}),i=e.toLocaleTimeString(n,{hour:"2-digit",minute:"2-digit",timeZone:iT}),a=Math.floor((Date.now()-e.getTime())/1e3);return F(e)?a<60?r.secondsAgo.replace("{n}",String(a)):a<120?r.minuteAgo:a<3600?r.minutesAgo.replace("{n}",String(Math.floor(a/60))):`${r.today} ${r.clockPrefix} ${i}`:`${t} ${r.clockPrefix} ${i}`}};function iL(e){let{itemProp:t,format:i,toLowerCase:n}=e,r=new Date(e.date),a=Q();return!function({interval:e}){let[t,i]=(0,c.useState)(Date.now());(0,c.useEffect)(()=>
9{if(!e||e<1)return;let t=setInterval(()=>i(Date.now()),e);return()=>{clearInterval(t)}},[e])}({interval:(0,c.useMemo)(()=>{if("relativetime"!==i)return;let e=Math.floor((Date.now()-r.getTime())/6e4);if(!(e>=60))return e<1?1e3:6e4},[i,r])}),(0,u.jsx)("time",{dateTime:r.toISOString(),itemProp:t,suppressHydrationWarning:!0,children:n?ik(r,i,a).toLowerCase():ik(r,i,a)})}var iN={powerSaveTitle:"Mobil er i str\xf8mbesparende funktion",powerSaveDescription:"Du skal starte videoer manuelt",otherwise:"Ellers",goToFrontpageLowercase:"g\xe5 til forsiden"},iM={"da-DK":iN,"da-DK-x-formal":{...iN,powerSaveDescription:"De skal starte videoer manuelt"},"nb-NO":{powerSaveTitle:"Mobilen er i str\xf8msparingsmodus",powerSaveDescription:"Du m\xe5 starte videoer manuelt",otherwise:"Ellers",goToFrontpageLowercase:"g\xe5 til forsiden"},"nn-NO":{powerSaveTitle:"Mobilen er i straumsparingsmodus",powerSaveDescription:"Du m\xe5 starte videoar manuelt",otherwise:"Elles",goToFrontpageLowercase:"g\xe5 til forsida"}},iR={name:"PowerSaveMessage",elements:{powerSaveTitle:{font:{size:ea(17),weight:"900",lineHeight:ea(25),family:t6}},powerSaveDescription:{font:{size:ea(16),weight:"500",lineHeight:ea(22),family:t6}},powerSaveLink:{font:{size:ea(16),weight:"500",lineHeight:ea(22),family:t6},underlineColor:"#FFFFFF"}}},iI="#007CBB",iF={name:"PowerSaveMessage",elements:{powerSaveTitle:{font:{size:ea(18),weight:"800",lineHeight:ea(24),family:t$}},powerSaveDescription:{font:{size:ea(16),weight:"400",lineHeight:ea(22),letterSpacing:ea(.16),family:tJ}},powerSaveLink:{font:{size:ea(16),weight:"400",lineHeight:ea(22),letterSpacing:ea(.16),family:tJ},underlineColor:"#FFFFFF"}}},iD={name:"PowerSaveMessage",elements:{powerSaveTitle:{font:{size:ea(17),weight:"900",lineHeight:ea(25),family:t6}},powerSaveDescription:{font:{size:ea(16),weight:"500",lineHeight:ea(22),family:t6}},powerSaveLink:{font:{size:ea(16),weight:"500",lineHeight:ea(22),family:t6},underlineColor:"#FFFFFF"}}},iB="#F03228",iO={name:"PowerSaveMessage",elements:{powerSaveTitle:{font:{size:ea(17),weight:"900",lineHeight:ea(25),family:t5}},powerSaveDescription:{font:{size:ea(16),weight:"500",lineHeight:ea(22),family:t5}},powerSaveLink:{font:{size:ea(16),weight:"500",lineHeight:ea(22),family:t5},underlineColor:"#FFFFFF"}}},iV={name:"PowerSaveMessage",elements:{powerSaveTitle:{font:{size:ea(17),weight:"900",lineHeight:ea(25),family:t6}},powerSaveDescription:{font:{size:ea(16),weight:"500",lineHeight:ea(22),family:t6}},powerSaveLink:{font:{size:ea(16),weight:"500",lineHeight:ea(22),family:t6},underlineColor:"#FFFFFF"}}},iZ="#0177FF",iW={name:"PowerSaveMessage",elements:{powerSaveTitle:{font:{size:ea(17),weight:"800",lineHeight:ea(26),family:t2,letterSpacing:ea(.2)}},powerSaveDescription:{font:{size:ea(16),weight:"400",lineHeight:ea(22),family:t2,letterSpacing:ea(.2)}},powerSaveLink:{font:{size:ea(16),weight:"400",lineHeight:ea(22),family:t2,letterSpacing:ea(.2)},underlineColor:"#FFFFFF"}}},iG={name:"PowerSaveMessage",elements:{powerSaveTitle:{font:{size:ea(17),weight:"900",lineHeight:ea(25),family:t4}},powerSaveDescription:{font:{size:ea(16),weight:"500",lineHeight:ea(22),family:t4}},powerSaveLink:{font:{size:ea(16),weight:"500",lineHeight:ea(22),family:t4},underlineColor:"#FFFFFF"}}},iU={berlingske:iF,bt:iO,euroinvestor:iW,weekendavisen:{name:"PowerSaveMessage",elements:{powerSaveTitle:{font:{size:ea(24),weight:"800",lineHeight:ea(30),family:t0}},powerSaveDescription:{font:{size:ea(16),weight:"400",lineHeight:ea(22),family:t0}},powerSaveLink:{font:{size:ea(16),weight:"400",lineHeight:ea(22),family:t0},underlineColor:"transparent"}}},alfa:iR,bravo:iD,charlie:iV,nettavisen:iG},iq=()=>{let e=J(iM);return(0,u.jsx)(tQ,{themes:iU,children:(0,u.jsxs)("div",{className:"_powerSave_tcys9_1",children:[(0,u.jsx)("div",{className:"_powerSaveTitle_tcys9_18",children:e.powerSaveTitle}),(0,u.jsxs)("div",{children:[(0,u.jsx)("div",{className:"_powerSaveDescription_tcys9_22",children:e.powerSaveDescription}),(0,u.jsxs)("div",{className:"_powerSaveLink_tcys9_26",children:[(0,u.jsxs)("span",{children:[e.otherwise," "]}),(0,u.jsx)("a",{href:"/",className:"_powerSaveAnchor_tcys9_30",children:e.goToFrontpageLowercase})]})]})]})})},iY={controls:"_controls_v1yln_1",controlsWrapper:"_controlsWrapper_v1yln_8",logo:"_logo_v1yln_14",pauseIconFade:"_pauseIconFade_v1yln_31",progressBar:"_progressBar_v1yln_61",rightControls:"_rightControls_v1yln_69",muteButton:"_muteButton_v1yln_76",bottomOverlay:"_bottomOverlay_v1yln_99",textWrapper:"_textWrapper_v1yln_122",videoDate:"_videoDate_v1yln_130",videoTitle:"_videoTitle_v1yln_139"}
9,iQ={name:"CommonVideoPlayer",elements:{castOverlay:{text:{family:t6,weight:"600",size:ea(18),lineHeight:ea(20)},buttonText:{family:t6,weight:"500",size:ea(20),lineHeight:ea(12),letterSpacing:"0.025em",transform:"uppercase"}},progressBar:{color:"#ff0000",scrubberColor:"#ff0000"},progressIndicator:{color:"#ff0000"},floatingControls:{title:{family:t6,weight:"600",size:ea(13),lineHeight:ea(17)}},brandColor:{color:"#ff0000"},liveBadge:{color:"#ff0000",font:{family:t6,weight:"900",size:ea(16),lineHeight:ea(16),letterSpacing:"0.03em",transform:"uppercase"}},adsOverlay:{font:{family:t6,weight:"500",size:ea(12),lineHeight:ea(16)},tabletFont:{family:t6,weight:"500",size:ea(14),lineHeight:ea(16)}},optionsLabel:{font:{family:t6,weight:"500",size:ea(12),lineHeight:ea(16)}},preAdsOverlay:{titleTabletFont:{family:t6,weight:"900",size:ea(28),lineHeight:ea(32)},titleFont:{family:t6,weight:"900",size:ea(20),lineHeight:ea(24)},headerTabletFont:{family:t6,weight:"600",size:ea(16),lineHeight:ea(24)},headerFont:{family:t6,weight:"600",size:ea(14),lineHeight:ea(20)}},video:{progress:{family:t6,weight:"500",size:ea(16),lineHeight:ea(22)},title:{family:t6,weight:"900",size:ea(17),lineHeight:ea(25)},meta:{family:t6,weight:"600",size:ea(13),lineHeight:ea(19)}},preRollStatus:{text:{family:t6,weight:"500",size:ea(13),lineHeight:ea(19)}},controlsLiveButton:{font:{family:t6,weight:"800",size:ea(12),lineHeight:ea(16),letterSpacing:"0.025em",transform:"uppercase"}}}},iJ={name:"CommonVideoPlayer",elements:{castOverlay:{text:{family:tJ,weight:"400",size:ea(18),lineHeight:ea(20)},buttonText:{family:tJ,weight:"400",size:ea(20),lineHeight:ea(20),transform:"uppercase"}},progressBar:{color:iI,scrubberColor:iI},progressIndicator:{color:iI},floatingControls:{title:{family:tJ,weight:"500",size:ea(13),lineHeight:ea(17)}},brandColor:{color:iI},liveBadge:{color:iI,font:{family:tJ,weight:"600",size:ea(16),lineHeight:ea(16),letterSpacing:ea(.6),transform:"uppercase"}},adsOverlay:{font:{family:tJ,weight:"400",size:ea(12),lineHeight:ea(16)},tabletFont:{family:tJ,weight:"400",size:ea(14),lineHeight:ea(16)}},optionsLabel:{font:{family:tJ,weight:"400",size:ea(12),lineHeight:ea(16)}},preAdsOverlay:{titleTabletFont:{family:tK,weight:"400",size:ea(24),lineHeight:ea(27)},titleFont:{family:tK,weight:"800",size:ea(20),lineHeight:ea(23)},headerTabletFont:{family:tJ,weight:"400",size:ea(14),lineHeight:ea(20)},headerFont:{family:tJ,weight:"400",size:ea(14),lineHeight:ea(20),letterSpacing:ea(.32)}},video:{progress:{family:tJ,weight:"400",size:ea(16),lineHeight:ea(22),letterSpacing:ea(.16)},title:{family:t$,weight:"800",size:ea(18),lineHeight:ea(24)},meta:{family:tJ,weight:"500",size:ea(13),lineHeight:ea(19)}},preRollStatus:{text:{family:tJ,weight:"400",size:ea(13),lineHeight:ea(19)}},controlsLiveButton:{font:{family:tJ,weight:"600",size:ea(12),lineHeight:ea(12),letterSpacing:ea(.6),transform:"uppercase"}}}},i$={name:"CommonVideoPlayer",elements:{castOverlay:{text:{family:t6,weight:"600",size:ea(18),lineHeight:ea(20)},buttonText:{family:t6,weight:"500",size:ea(20),lineHeight:ea(12),letterSpacing:"0.025em",transform:"uppercase"}},progressBar:{color:"#ff0000",scrubberColor:"#ff0000"},progressIndicator:{color:"#ff0000"},floatingControls:{title:{family:t6,weight:"600",size:ea(13),lineHeight:ea(17)}},brandColor:{color:"#ff0000"},liveBadge:{color:"#ff0000",font:{family:t6,weight:"900",size:ea(16),lineHeight:ea(16),letterSpacing:"0.03em",transform:"uppercase"}},adsOverlay:{font:{family:t6,weight:"500",size:ea(12),lineHeight:ea(16)},tabletFont:{family:t6,weight:"500",size:ea(14),lineHeight:ea(16)}},optionsLabel:{font:{family:t6,weight:"500",size:ea(12),lineHeight:ea(16)}},preAdsOverlay:{titleTabletFont:{family:t6,weight:"900",size:ea(28),lineHeight:ea(32)},titleFont:{family:t6,weight:"900",size:ea(20),lineHeight:ea(24)},headerTabletFont:{family:t6,weight:"600",size:ea(16),lineHeight:ea(24)},headerFont:{family:t6,weight:"600",size:ea(14),lineHeight:ea(20)}},video:{progress:{family:t6,weight:"500",size:ea(16),lineHeight:ea(22)},title:{family:t6,weight:"900",size:ea(17),lineHeight:ea(25)},meta:{family:t6,weight:"600",size:ea(13),lineHeight:ea(19)}},preRollStatus:{text:{family:t6,weight:"500",size:ea(13),lineHeight:ea(19)}},controlsLiveButton:{font:{family:t6,weight:"800",size:ea(12),lineHeight:ea(16),letterSpacing:"0.025em",transform:"uppercase"}}}},iK={name:"CommonVideoPlayer",elements:{castOverlay:{text:{family:t5,weight:"600",size:ea(18),lineHeight:ea(20)},buttonText:{family:t5,weight:"500",size:ea(20),lineHeight:ea(12),letterSpacing:"0.025em",transform:"uppercase"}},progressBar:{color:iB,scrubberColor:iB},progressIndicator:{color:iB},floatingControls:{title:{family:t5,weight:"600",size:ea(13),lineHeight:ea(17)}},brandColor:{color:iB},liveBadge:{color:iB,font:{family:t5,weight:"900",size:ea(16),lineHeight:ea(16),letterSpacing:"0.03em",transform:"uppercase"}},adsOverlay:{font:{family:t5,weight:"500",size:ea(12),lineHeight:ea(16)},tabletFont:{family:t5,weight:"500",size:ea(14),lineHeight:ea(16)}},optionsLabel:{font:{family:t5,weight:"500",size:ea(12),lineHeight:ea(16)}},preAdsOverlay:{titleTabletFont:{family:t5,weight:"900",size:ea(28),lineHeight:ea(32)},titleFont:{family:t5,weight:"900",size:ea(20),lineHeight:ea(24)},headerTabletFont:{family:t5,weight:"600",size:ea(16),lineHeight:ea(24)},headerFont:{family:t5,weight:"600",size:ea(14),lineHeight:ea(20)}},video:{progress:{family:t5,weight:"500",size:ea(16),lineHeight:ea(22)},title:{family:t5,weight:"900",size:ea(17),lineHeight:ea(25)},meta:{family:t5,weight:"600",size:ea(13),lineHeight:ea(19)}},preRollStatus:{text:{family:t5,weight:"500",size:ea(13),lineHeight:ea(19)}},controlsLiveButton:{font:{family:t5,weight:"800",size:ea(12),lineHeight:ea(16),letterSpacing:"0.025em",transform:"uppercase"}}}},iX={name:"CommonVideoPlayer",elements:{castOverlay:{text:{family:t6,weight:"600",size:ea(18),lineHeight:ea(20)},buttonText:{family:t6,weight:"500",size:ea(20),lineHeight:ea(12),letterSpacing:"0.025em",transform:"uppercase"}},progressBar:{color:"#ff0000",scrubberColor:"#ff0000"},progressIndicator:{color:"#ff0000"},floatingControls:{title:{family:t6,weight:"600",size:ea(13),lineHeight:ea(17)}},brandColor:{color:"#ff0000"},liveBadge:{color:"#ff0000",font:{family:t6,weight:"900",size:ea(16),lineHeight:ea(16),letterSpacing:"0.03em",transform:"uppercase"}},adsOverlay:{font:{family:t6,weight:"500",size:ea(12),lineHeight:ea(16)},tabletFont:{family:t6,weight:"500",size:ea(14),lineHeight:ea(16)}},optionsLabel:{font:{family:t6,weight:"500",size:ea(12),lineHeight:ea(16)}},preAdsOverlay:{titleTabletFont:{family:t6,weight:"900",size:ea(28),lineHeight:ea(32)},titleFont:{family:t6,weight:"900",size:ea(20),lineHeight:ea(24)},headerTabletFont:{family:t6,weight:"600",size:ea(16),lineHeight:ea(24)},headerFont:{family:t6,weight:"600",size:ea(14),lineHeight:ea(20)}},video:{progress:{family:t6,weight:"500",size:ea(16),lineHeight:ea(22)},title:{family:t6,weight:"900",size:ea(17),lineHeight:ea(25)},meta:{family:t6,weight:"600",size:ea(13),lineHeight:ea(19)}},preRollStatus:{text:{family:t6,weight:"500",size:ea(13),lineHeight:ea(19)}},controlsLiveButton:{font:{family:t6,weight:"800",size:ea(12),lineHeight:ea(16),letterSpacing:"0.025em",transform:"uppercase"}}}},i0={name:"CommonVideoPlayer",elements:{castOverlay:{text:{family:t2,weight:"600",size:ea(18),lineHeight:ea(20)},buttonText:{family:t2,weight:"400",size:ea(20),lineHeight:ea(12),transform:"uppercase",letterSpacing:"0.03em"}},progressBar:{color:iZ,scrubberColor:iZ},progressIndicator:{color:iZ},floatingControls:{title:{family:t2,weight:"700",size:ea(13),lineHeight:ea(17)}},brandColor:{color:iZ},liveBadge:{color:iZ,font:{family:t2,weight:"700",size:ea(12),lineHeight:ea(12),transform:"uppercase",letterSpacing:"0.025em"}},adsOverlay:{font:{family:t2,weight:"400",size:ea(12),lineHeight:ea(16)},tabletFont:{family:t2,weight:"400",size:ea(14),lineHeight:ea(16)}},optionsLabel:{font:{family:t2,weight:"600",size:ea(14),lineHeight:ea(20)}},preAdsOverlay:{titleTabletFont:{family:t2,weight:"750",size:ea(24),lineHeight:ea(32)},titleFont:{family:t2,weight:"750",size:ea(24),lineHeight:ea(30)},headerTabletFont:{family:t2,weight:"700",size:ea(16),lineHeight:ea(20)},headerFont:{family:t2,weight:"700",size:ea(16),lineHeight:ea(20)}},video:{progress:{family:t2,weight:"400",size:ea(16),lineHeight:ea(22)},title:{family:t2,weight:"750",size:ea(17),lineHeight:ea(26)},meta:{family:t2,weight:"700",size:ea(13),lineHeight:ea(19)}},preRollStatus:{text:{family:t2,weight:"400",size:ea(13),lineHeight:ea(19)}},controlsLiveButton:{font:{family:t2,weight:"600",size:ea(12),lineHeight:ea(16),transform:"uppercase",letterSpacing:"0.03em"}}}},i1={name:"CommonVideoPlayer",elements:{castOverlay:{text:{family:t4,weight:"600",size:ea(18),lineHeight:ea(20)},buttonText:{family:t4,weight:"500",size:ea(20),lineHeight:ea(12),letterSpacing:"0.025em",transform:"uppercase"}},progressBar:{color:"#ff0000",scrubberColor:"#ff0000"},progressIndicator:{color:"#ff0000"},floatingControls:{title:{family:t4,weight:"600",size:ea(13),lineHeight:ea(17)}},brandColor:{color:"#ff0000"},liveBadge:{color:"#ff0000",font:{family:t4,weight:"900",size:ea(16),lineHeight:ea(16),letterSpacing:"0.03em",transform:"uppercase"}},adsOverlay:{font:{family:t4,weight:"500",size:ea(12),lineHeight:ea(16)},tabletFont:{family:t4,weight:"500",size:ea(14),lineHeight:ea(16)}},optionsLabel:{font:{family:t4,weight:"500",size:ea(12),lineHeight:ea(16)}},preAdsOverlay:{titleTabletFont:{family:t4,weight:"900",size:ea(28),lineHeight:ea(32)},titleFont:{family:t4,weight:"900",size:ea(20),lineHeight:ea(24)},headerTabletFont:{family:t4,weight:"600",size:ea(16),lineHeight:ea(24)},headerFont:{family:t4,weight:"600",size:ea(14),lineHeight:ea(20)}},video:{progress:{family:t4,weight:"500",size:ea(16),lineHeight:ea(22)},title:{family:t4,weight:"900",size:ea(17),lineHeight:ea(25)},meta:{family:t4,weight:"600",size:ea(13),lineHeight:ea(19)}},preRollStatus:{text:{family:t4,weight:"500",size:ea(13),lineHeight:ea(19)}},controlsLiveButton:{font:{family:t4,weight:"800",size:ea(12),lineHeight:ea(16),letterSpacing:"0.025em",transform:"uppercase"}}}},i2="#41A8E2",i5={berlingske:iJ,bt:iK,euroinvestor:i0,weekendavisen:{name:"CommonVideoPlayer",elements:{castOverlay:{text:{family:t0,weight:"400",size:ea(18),lineHeight:ea(20)},buttonText:{family:t0,weight:"400",size:ea(20),lineHeight:ea(20),transform:"uppercase"}},progressBar:{color:i2,scrubberColor:i2},progressIndicator:{color:i2},floatingControls:{title:{family:t0,weight:"500",size:ea(13),lineHeight:ea(17)}},brandColor:{color:i2},liveBadge:{color:i2,font:{family:t0,weight:"700",size:ea(16),lineHeight:ea(16),letterSpacing:ea(.6),transform:"uppercase"}},adsOverlay:{font:{family:t0,weight:"400",size:ea(12),lineHeight:ea(16)},tabletFont:{family:t0,weight:"400",size:ea(14),lineHeight:ea(16)}},optionsLabel:{font:{family:t0,weight:"400",size:ea(12),lineHeight:ea(16)}},preAdsOverlay:{titleTabletFont:{family:t0,weight:"800",size:ea(24),lineHeight:ea(27)},titleFont:{family:t0,weight:"800",size:ea(20),lineHeight:ea(23)},headerTabletFont:{family:t0,weight:"400",size:ea(14),lineHeight:ea(20),letterSpacing:ea(.32)},headerFont:{family:t0,weight:"400",size:ea(14),lineHeight:ea(20),letterSpacing:ea(.32)}},preRollStatus:{text:{family:t0,weight:"400",size:ea(13),lineHeight:ea(19)}},video:{progress:{family:t0,weight:"400",size:ea(16),lineHeight:ea(22)},title:{family:t0,weight:"800",size:ea(24),lineHeight:ea(30)},meta:{family:t0,weight:"500",size:ea(13),lineHeight:ea(19)}},controlsLiveButton:{font:{family:t0,weight:"600",size:ea(12),lineHeight:ea(12),letterSpacing:ea(.6),transform:"uppercase"}}}},alfa:iQ,bravo:i$,charlie:iX,nettavisen:i1},i6=e=>{let{progress:t,onScrubStart:i,onScrubEnd:n,onScrub:r}=e,[a,l]=(0,c.useState)(null),[s,o]=(0,c.useState)(t),d=(0,c.useRef)(0),[h,m]=(0,c.useState)(!1),[g,v]=(0,c.useState)(!1);(0,c.useEffect)(()=>{h||o(t)},[t,h]);let f=y(()=>{d.current=t,i?.(),m(!0)}),p=y(e=>{o(e),r?.(e)}),w=y(e=>{n?.(e),m(!1)});(0,c.useEffect)(()=>{let e=null;return h&&v(!0),e=setTimeout(()=>{h||v(!1)},1500),()=>{e&&clearTimeout(e)}},[h]),eq(a,f,p,w);let A=s??0;return A>1&&(A=1),(0,u.jsx)(tQ,{themes:i5,children:(0,u.jsx)("div",{className:"_container_1lz2r_1",children:(0,u.jsx)("div",{className:"_timelineWrapper_1lz2r_18",ref:l,"data-is-maximized":g,children:(0,u.jsx)("div",{className:"_timeline_1lz2r_5","data-is-maximized":g,children:(0,u.jsx)("div",{id:"progress","data-is-maximized":g,style:{width:`${100*A}%`},className:"_progress_1lz2r_34"})})})})})},i4={name:"ReelOverlay",elements:{videoDate:{font:{family:t6,size:ea(13),weight:"800",lineHeight:ea(19)}},videoTitle:{font:{size:ea(16),family:t6,weight:"500",lineHeight:ea(22)}}}},i3={name:"ReelOverlay",elements:{videoDate:{font:{family:tJ,size:ea(13),weight:"500",lineHeight:ea(19),letterSpacing:ea(.25)}},videoTitle:{font:{family:tJ,size:ea(16),weight:"400",lineHeight:ea(22),letterSpacing:ea(.16)}}}},i7={name:"ReelOverlay",elements:{videoDate:{font:{family:t6,size:ea(13),weight:"800",lineHeight:ea(19)}},videoTitle:{font:{size:ea(16),family:t6,weight:"500",lineHeight:ea(22)}}}},i8={name:"ReelOverlay",elements:{videoDate:{font:{family:t5,size:ea(13),weight:"800",lineHeight:ea(19)}},videoTitle:{font:{size:ea(16),family:t5,weight:"500",lineHeight:ea(22)}}}}
9,i9={name:"ReelOverlay",elements:{videoDate:{font:{family:t6,size:ea(13),weight:"800",lineHeight:ea(19)}},videoTitle:{font:{size:ea(16),family:t6,weight:"500",lineHeight:ea(22)}}}},ne={name:"ReelOverlay",elements:{videoDate:{font:{family:t2,size:ea(13),weight:"700",lineHeight:ea(19)}},videoTitle:{font:{family:t2,size:ea(16),weight:"400",lineHeight:ea(22)}}}},nt={name:"ReelOverlay",elements:{videoDate:{font:{family:t4,size:ea(13),weight:"800",lineHeight:ea(19)}},videoTitle:{font:{size:ea(16),family:t4,weight:"500",lineHeight:ea(22)}}}},ni={berlingske:i3,bt:i8,euroinvestor:ne,weekendavisen:{name:"ReelOverlay",elements:{videoDate:{font:{family:t0,size:ea(13),weight:"500",lineHeight:ea(19)}},videoTitle:{font:{family:t0,size:ea(16),weight:"400",lineHeight:ea(22)}}}},alfa:i4,bravo:i7,charlie:i9,nettavisen:nt},nn=e=>{let{playerState:t,showPause:i,showProgressBar:n,controls:r,videoDate:a,title:l,iosBackButtonPresent:s=!1,handleMuteToggle:o,showPowerSaveMessage:d,logoUrl:c}=e,{handleScrub:h,handleScrubEnd:m,handleScrubStart:g,currentTime:v}=tG({controls:r,playerState:t});return(0,u.jsx)(tQ,{themes:ni,children:(0,u.jsxs)("div",{className:iY.controls,onClick:()=>{"playing"===t.video.state?r.pause():r.play()},children:[(0,u.jsx)("a",{href:"/",className:er(iY.logo,"sp_reels_logo"),"aria-label":"G\xe5 til forsiden",children:(0,u.jsx)("img",{className:iY.logoImage,src:c,fetchPriority:"high",alt:"logo"})}),d&&(0,u.jsx)(iq,{}),(0,u.jsxs)("div",{className:iY.controlsWrapper,children:[(0,u.jsx)("div",{className:iY.pauseIcon,children:(0,u.jsx)("span",{"data-hidden":!i,className:iY.pauseIconFade,children:(0,u.jsx)(eH,{size:null})})}),(0,u.jsxs)("div",{className:iY.bottomOverlay,"data-app-button-present":s,children:[(0,u.jsxs)("div",{className:iY.textWrapper,children:[(0,u.jsx)("div",{className:iY.videoDate,children:(0,u.jsx)(iL,{itemProp:a?"datePublished":"datePublished dateModified",date:a,format:"datetime"})}),(0,u.jsx)("div",{className:iY.videoTitle,children:l})]}),(0,u.jsx)("div",{className:iY.rightControls,children:(0,u.jsx)("button",{type:"button",className:er(iY.muteButton,`${t.isMuted?"sp_reel_unmute-button":"sp_reel_mute-button"}`),onClick:e=>{o(e)},children:t.isMuted?(0,u.jsx)(eW,{size:null}):(0,u.jsx)(eB,{size:null})})})]}),n&&(0,u.jsx)("div",{className:iY.progressBar,children:(0,u.jsx)(i6,{onScrub:h,onScrubEnd:m,onScrubStart:g,progress:v/t.video.duration})})]})]})})},nr=[],na=[],nl=[],ns=0;if("u">typeof document&&0===na.length)for(let e=0;e<5;e++){let t=document.createElement("video");
9t.playsInline=!0,t.muted=!0,t.dataset.poolId=String(e+1),t._activatedForSound=!1,na.push(t),nr.push(t)}async function no(){if(na.length>0){let e=ns%na.length;ns++;let t=na.splice(e,1)[0];if(!t)throw Error("Failed to acquire a video element from the pool.");return t._activatedForSound||(t._activatedForSound=!0,t.src="",t.play().then(()=>{t.pause(),t.removeAttribute("src"),t.load()}).catch(()=>{})),t}return new Promise(e=>nl.push(e))}function nd(e){e.pause(),e.removeAttribute("src"),e.load(),e.onplay=e.onpause=e.ontimeupdate=e.onerror=e.onloadeddata=e.oncanplay=null;let t=nl.shift();t?t(e):na.push(e)}function nc({ref:e,...t}){let{video:i,ads:n,onChange:r,initialAutoPlay:a,initialMuted:l,preload:s}=t,o=eG(),d=(0,c.useRef)(null),m=(0,c.useRef)(null),g=(0,c.useRef)(null),v=(0,c.useRef)(!1),f=(0,c.useRef)(!1),p=(0,c.useRef)(null),w=y(()=>{b()}),A=y(()=>{d.current&&d.current.play()}),x=y(()=>{A()}),_=tO({enabled:n,adContainerElement:p.current,videoElement:d.current,updatePlayerState:w,onAdsEnded:x}),b=y(()=>{if(!d.current)return;let e={ads:_.ad,video:{state:E,currentTime:d.current.currentTime,duration:d.current.duration,volume:100*d.current.volume,isFullscreen:document.fullscreenElement===d.current,isPictureInPicture:document.pictureInPictureElement===d.current},autoplayNotAllowed:v.current,isMuted:_.ad.data&&_.player?_.player.muted:d.current?.muted,adBlockerDetected:o};r?.(e)}),E=tU({videoElement:d.current,updatePlayerState:b});(0,c.useEffect)(()=>{let e=!0,t=null,n=()=>{b()},r=()=>{b(),a&&t?.play().catch(()=>{v.current=!0})};return(async()=>{if(t=await no(),!e||!t){t&&nd(t);return}d.current=t,t.muted=l??!0,t.playsInline=!0,t.preload=s?"auto":"metadata",t.className="_videoElement_qkf7p_11",m.current?.appendChild(t),t.addEventListener("durationchange",n),t.addEventListener("error",n),t.addEventListener("canplay",n),t.addEventListener("playing",n),t.addEventListener("pause",n),t.addEventListener("seeked",n),t.addEventListener("volumechange",n),t.addEventListener("timeupdate",n),t.addEventListener("ended",n),t.addEventListener("loadstart",n),t.addEventListener("loadeddata",n),t.addEventListener("play",n),t.addEventListener("loadedmetadata",r);let a=i.mediaResource?.mediaAssets?.find(e=>e.contentType?.toLowerCase()==="application/vnd.apple.mpegurl");if(a){let e=/iPad|iPhone|iPod/.test(navigator.userAgent),i=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);if(t.canPlayType("application/vnd.apple.mpegurl")&&(e||i))t.src=a.url,t.load();else{let e=new h.Ay;e.attachMedia(t),e.loadSource(a.url),g.current=e}}})(),()=>{e=!1,t&&(t.removeEventListener("durationchange",n),t.removeEventListener("error",n),t.removeEventListener("canplay",n),t.removeEventListener("playing",n),t.removeEventListener("pause",n),t.removeEventListener("seeked",n),t.removeEventListener("volumechange",n),t.removeEventListener("timeupdate",n),t.removeEventListener("ended",n),t.removeEventListener("loadstart",n),t.removeEventListener("loadeddata",n),t.removeEventListener("play",n),t.removeEventListener("loadedmetadata",r),nd(t)),d.current=null,g.current?.destroy(),g.current=null}},[i]);let j=(0,c.useMemo)(()=>({play:()=>A(),pause:()=>d.current?.pause(),seek:e=>{d.current&&Number.isFinite(e)&&(f.current=!0,d.current.currentTime=e)},toggleMute:()=>{d.current&&function(){for(let e of nr)e.muted=!e.muted}()},togglePictureInPicture:()=>{d.current&&(document.pictureInPictureElement?document.exitPictureInPicture():d.current.requestPictureInPicture().catch(()=>{}))},setVolume:e=>{d.current&&(d.current.muted=!1,d.current.volume=Math.min(1,Math.max(0,e/100)))},toggleFullscreen:()=>{}}),[]);return(0,c.useImperativeHandle)(e,()=>({controls:j})),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{ref:m,className:"_videoPlayerEngineContainer_qkf7p_1"}),(0,u.jsx)("div",{ref:p,className:"_adContainer_qkf7p_27"})]})}function nu(e){let{video:t,autoplay:i,preload:n,muted:r,handleMuteToggle:a,isFirstVideo:l,isCurrentVideo:s,startType:o,logoUrl:d}=e,h=(0,c.useRef)({controls:T}),v=t.teaserImages.find(g),p=(0,c.useRef)(null),[w,y]=(0,c.useState)(L),A="u">typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent),x=eU(()=>"u">typeof window&&!!window.isNativeApp,2),_=(0,c.useRef)(i?Date.now():void 0);(0,c.useEffect)(()=>{s&&(_.current=Date.now())},[s]);let b=(0,c.useMemo)(()=>t.externalIds?.[f.Jwplayer]&&o?{...w,floating:!1,videoFormat:"reel",loops:!0,isLive:t.mediaResource.live,startType:o,title:t.title||"",videoPubDate:t.publicationDate||"",mediaId:t.externalIds[f.Jwplayer],source:"reels",isMuted:r,playIntentTimestamp:_.current}:void 0,[w,o,t,r]),{updateMediaSession:E}=is(h.current.controls);iw(b);let{entry:j}=tV(p.current,{rootMargin:"0px",threshold:.7});return(0,c.useEffect)(()=>{w.video.state===k.Ended&&(h.current.controls.seek(0),h.current.controls.play())},[w.video.state]),(0,c.useEffect)(()=>{j&&(j.isIntersecting?h.current.controls.play():s||(h.current.controls.seek(0),h.current.controls.pause()))},[j,s]),(0,u.jsxs)("div",{className:"_container_42wtw_1",ref:p,itemScope:!0,itemType:"https://schema.org/VideoObject",children:[(0,u.jsx)("meta",{itemProp:"description",content:t.description}),(0,u.jsx)("meta",{itemProp:"name",content:t.title}),t.publicationDate&&(0,u.jsx)("meta",{itemProp:"datePublished",content:t.publicationDate}),t.publicationDate&&(0,u.jsx)("meta",{itemProp:"uploadDate",content:t.publicationDate}),v&&(0,u.jsx)("meta",{itemProp:"thumbnailUrl",content:m(v,{maxWidth:960}
9)}),!!t.mediaResource.duration&&(0,u.jsx)("meta",{itemProp:"duration",content:N(t.mediaResource.duration,{iso8601:!0})}),(0,u.jsx)(nn,{playerState:w,showPowerSaveMessage:w.autoplayNotAllowed&&w.video.state!==k.Playing&&l,logoUrl:d,iosBackButtonPresent:x&&A,showPause:!!j?.isIntersecting&&w.video.state!==k.Playing,showProgressBar:j?.isIntersecting||!1,controls:h.current.controls,videoDate:t.publicationDate||"",title:t.title,handleMuteToggle:e=>{a(),h.current.controls.toggleMute(),e.stopPropagation()}}),0===w.video.currentTime&&(0,u.jsx)("div",{className:"_thumbnail_42wtw_17",children:(0,u.jsx)(ed,{teaserImages:t.teaserImages,hasPlayed:[k.Playing,k.Paused].includes(w.video.state)})}),(0,u.jsx)(nc,{ref:h,ads:!1,startType:"autoplay",isEmbed:!1,initialAutoPlay:i,initialMuted:r,preload:n,videoShouldCover:!0,usePool:!0,onChange:e=>{E({currentTime:w.video.currentTime,duration:w.video.duration,isPaused:w.video.state===k.Paused,isPlaying:w.video.state===k.Playing,media:{title:t.title,thumbnail:m(v,{maxWidth:500})}}),y(e)},video:t,videoFormat:"reel"}),w.video.state===k.Error&&(0,u.jsx)(iP,{title:"Der skete en fejl",trackingPrefix:"error-screen",icon:(0,u.jsx)(eA,{size:null})})]})}var nh=(0,c.memo)(function({video:e,autoplay:t,muted:i,isActive:n,handleMuteToggle:r,startType:a,logoUrl:l}){let s=(0,c.useRef)(null);return(0,u.jsx)("div",{ref:s,style:{height:"100%"},children:(0,u.jsx)(nu,{video:e,autoplay:n&&t,muted:i,preload:!n,isCurrentVideo:n,handleMuteToggle:r,isFirstVideo:n,startType:a,logoUrl:l})})}),nm={name:"ReelsOnboarding",elements:{title:{font:{size:ea(24),lineHeight:ea(25),family:t6,weight:"900"}},description:{font:{size:ea(20),lineHeight:ea(22),family:t6,weight:"600"}}}},ng={name:"ReelsOnboarding",elements:{title:{font:{size:ea(18),lineHeight:ea(24),family:t$,weight:"800"}},description:{font:{size:ea(16),lineHeight:ea(22),letterSpacing:ea(.16),family:tJ,weight:"500"}}}},nv={name:"ReelsOnboarding",elements:{title:{font:{size:ea(24),lineHeight:ea(25),family:t6,weight:"900"}},description:{font:{size:ea(20),lineHeight:ea(22),family:t6,weight:"600"}}}},nf={name:"ReelsOnboarding",elements:{title:{font:{size:ea(24),lineHeight:ea(25),family:t5,weight:"900"}},description:{font:{size:ea(20),lineHeight:ea(22),family:t5,weight:"600"}}}},np={name:"ReelsOnboarding",elements:{title:{font:{size:ea(24),lineHeight:ea(25),family:t6,weight:"900"}},description:{font:{size:ea(20),lineHeight:ea(22),family:t6,weight:"600"}}}},nw={name:"ReelsOnboarding",elements:{title:{font:{size:ea(24),lineHeight:ea(30),family:t2,weight:"750"}},description:{font:{size:ea(16),lineHeight:ea(22),family:t2,weight:"700"}}}},ny={name:"ReelsOnboarding",elements:{title:{font:{size:ea(24),lineHeight:ea(25),family:t4,weight:"900"}},description:{font:{size:ea(20),lineHeight:ea(22),family:t4,weight:"600"}}}},nA={berlingske:ng,bt:nf,euroinvestor:nw,weekendavisen:{name:"ReelsOnboarding",elements:{title:{font:{family:t0,size:ea(24),lineHeight:ea(30),weight:"800"}},description:{font:{family:t0,size:ea(16),lineHeight:ea(22),weight:"500"}}}},alfa:nm,bravo:nv,charlie:np,nettavisen:ny},nx=e=>{let{teaserImages:t,hasSeenOnboarding:i,handleScrollClick:n}=e;return i?null:(0,u.jsx)(tQ,{themes:nA,children:(0,u.jsxs)("div",{className:"_container_9xio1_1",children:[(0,u.jsx)(ed,{teaserImages:t}),(0,u.jsx)("div",{className:"_overlay_9xio1_21"}),(0,u.jsx)("div",{className:"_title_9xio1_57",children:"Velkommen til korte videoer"}),(0,u.jsxs)("button",{type:"button",className:"_swipeButton_9xio1_71",onClick:()=>n("down"),children:[(0,u.jsx)("div",{className:"_chevron_9xio1_29",children:(0,u.jsx)(ew,{size:null})}),(0,u.jsx)("div",{className:"_description_9xio1_67",children:"Stryg op for at se videoer"})]})]})})};function n_({children:e,onIndexChange:t,lockableIndices:i,minIndex:n=0,ref:r}){var a;let l,s=(0,c.useRef)(null),[o,d]=(0,c.useState)(!1),h=(0,c.useRef)(!1);h.current=o;let m=(0,c.useRef)(null),g=(0,c.useRef)(-1),v=(0,c.useRef)(!1),f=(0,c.useRef)(!1),[p,w]=(0,c.useState)("container");(0,c.useLayoutEffect)(()=>{let e=s.current;if(!e)return;let t=()=>{let t=getComputedStyle(e).overflowY,i="scroll"!==t&&"auto"!==t?"document":"container";v.current="document"===i,w(i)};t();let i=window.matchMedia("(min-width: 768px)");return i.addEventListener("change",t),()=>i.removeEventListener("change",t)},[]);let y=(0,c.useEffectEvent)(()=>{let e=s.current;if(!e||0===e.children.length)return 0;let t=0,i=1/0;if(v.current)for(let n=0;n<e.children.length;n++){let r=Math.abs(e.children[n].getBoundingClientRect().top);if(r<i)i=r,t=n;else break}else{let n=e.scrollTop;for(let r=0;r<e.children.length;r++){let a=Math.abs(e.children[r].offsetTop-n);if(a<i)i=a,t=r;else break}}return t}),A=(0,c.useEffectEvent)(e=>{let t=s.current;if(!t)return;let i=Math.max(0,Math.min(e,t.children.length-1)),n=t.children[i];if(v.current){let e=n.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:e,behavior:"smooth"})}else t.scrollTo({top:n.offsetTop,behavior:"smooth"})}),x=(0,c.useEffectEvent)(e=>
9{e!==g.current&&(g.current=e,t?.(e))}),_=(a=()=>{s.current&&!h.current&&(x(y()),setTimeout(()=>{s.current&&!h.current&&x(y())},200))},l=(0,c.useRef)(null),(0,c.useEffect)(()=>()=>{l.current&&clearTimeout(l.current)},[]),(...e)=>{l.current&&clearTimeout(l.current),l.current=window.setTimeout(()=>{a(...e)},100)}),b=(0,c.useEffectEvent)(()=>{if(s.current){if(v.current||f.current||(f.current=!0,requestAnimationFrame(()=>{f.current=!1,window.dispatchEvent(new Event("scroll"))})),h.current){null!==m.current&&Math.abs((v.current?window.scrollY:s.current?.scrollTop??0)-m.current)>1&&(v.current?document.documentElement.scrollTop=m.current:s.current&&(s.current.scrollTop=m.current));return}if(i&&i.size>0){let e=y();if(i.has(e))return void x(e)}_()}}),E=(0,c.useEffectEvent)(()=>{if(h.current)return;let e=y();e<n?A(n):x(e)}),j=(0,c.useEffectEvent)(e=>{if(!s.current||o)return;let t=y();A(Math.max(n,"down"===e?t+1:t-1))});(0,c.useEffect)(()=>{let e="document"===p?window:s.current;if(e)return e.addEventListener("scroll",b,{passive:!0}),e.addEventListener("scrollend",E),()=>{e.removeEventListener("scroll",b),e.removeEventListener("scrollend",E)}},[p]),(0,c.useLayoutEffect)(()=>{let e=v.current?window:s.current;if(!o){m.current=null,v.current?document.documentElement.style.overflowY="":s.current&&(s.current.style.overflowY="");return}if(!e)return;let t=e=>{e.preventDefault(),e.stopPropagation()};e.addEventListener("wheel",t,{passive:!1}),e.addEventListener("touchmove",t,{passive:!1}),v.current||document.addEventListener("touchmove",t,{passive:!1});let i=!1,n=()=>{!i&&(i=!0,v.current?(document.documentElement.style.overflowY="hidden",m.current=window.scrollY):s.current&&(s.current.style.overflowY="hidden",m.current=s.current.scrollTop))};e.addEventListener("scrollend",n,{once:!0});let r=setTimeout(n,200);return()=>{clearTimeout(r),e.removeEventListener("scrollend",n),e.removeEventListener("wheel",t),e.removeEventListener("touchmove",t),v.current||document.removeEventListener("touchmove",t),v.current?document.documentElement.style.overflowY="":s.current&&(s.current.style.overflowY=""),m.current=null}},[o]);let z=c.Children.toArray(e).filter(Boolean),P=z.map((e,t)=>c.isValidElement(e)&&null!=e.key?e.key:t);return(0,c.useImperativeHandle)(r,()=>({scrollByDirection:j,container:s.current,setScrollLocked:e=>{if(h.current=e,e&&s.current){let e=s.current,t=y(),i=e.children[t];i?m.current=v.current?i.getBoundingClientRect().top+window.scrollY:i.offsetTop:m.current=v.current?window.scrollY:s.current?.scrollTop??0}d(e)}}),[]),(0,u.jsx)("div",{ref:s,className:"_scrollContainer_h378r_1","data-scroll-locked":o,children:z.map((e,t)=>(0,u.jsx)("div",{className:"_scrollChildren_h378r_21",children:e},P[t]))})}var nb={upToDateWithLatestVideos:"Du er ajour med de seneste videoer",goToFrontpage:"G\xe5 til forsiden"},nE={"da-DK":nb,"da-DK-x-formal":{...nb,upToDateWithLatestVideos:"De er ajour med de seneste videoer"},"nb-NO":{upToDateWithLatestVideos:"Du er oppdatert med de siste videoene",goToFrontpage:"G\xe5 til forsiden"},"nn-NO":{upToDateWithLatestVideos:"Du er oppdatert med dei siste videoane",goToFrontpage:"G\xe5 til forsida"}},nj="u">typeof window&&window.location.search.includes("debugreels"),nz="bm-reels-onboarding-seen",nP=({fetchPlaylist:e,onVideoChange:t,initialVideo:i,logoUrl:n,showAds:r})=>{let a=J(nE),[l,s]=(0,c.useState)([i]),[o,d]=(0,c.useState)(!1),[h,m]=(0,c.useState)(0),[g,v]=(0,c.useState)(void 0),p=!1===g,w=(0,c.useRef)(!1),[A,x]=((e,t)=>{let[i,n]=(0,c.useState)(()=>{if("u"<typeof window)return t;try{let i=sessionStorage.getItem(e);return i?JSON.parse(i):t}catch{return t}});return(0,c.useEffect)(()=>{try{sessionStorage.setItem(e,JSON.stringify(i))}catch{}},[e,i]),[i,n]})("bm-reel-video-muted",!0),_=(0,c.useRef)({index:1,isLast:!1}),b=(0,c.useRef)(null),[E,j]=(0,c.useState)("auto"),[z,P]=(0,c.useState)(new Set),H=(0,c.useRef)(new Set),S=(0,c.useRef)({videoCount:0,adCount:0}),C=(0,c.useMemo)(()=>(function({videos:e,showOnboarding:t,showEndScreen:i,showAds:n}){let r=[];t&&r.push({type:"onboarding"});let a=1;return e.forEach((t,i)=>{r.push({type:"video",video:t,videoIndex:i});let l=i%3==0,s=i<e.length-1;n&&l&&s&&(r.push({type:"ad",adIndex:a}),a++)}),i&&r.push({type:"end-screen"}),r})({videos:l,showOnboarding:!0===p,showEndScreen:o,showAds:r}),[l,o,p,r]);if(nj){let e=C.filter(e=>"video"===e.type).length,t=C.filter(e=>"ad"===e.type).length;(e!==S.current.videoCount||t!==S.current.adCount)&&(console.log(`[Reels] Videos updated: ${e} videos, ${t} ad slot(s)`),S.current={videoCount:e,adCount:t})}let T=(0,c.useMemo)(()=>{let e;
9return e=new Set,C.forEach((t,i)=>{"ad"!==t.type||z.has(t.adIndex)||e.add(i)}),e},[C,z]),k=y(async()=>{if(!w.current&&!_.current.isLast){w.current=!0;try{let{index:t}=_.current,{videos:n,lastPage:r}=await e(t),a=n.filter(e=>e.externalIds?.[f.Jwplayer]!==i.externalIds?.[f.Jwplayer]);s(e=>{let t=new Set(e.map(e=>e.externalIds?.[f.Jwplayer])),i=a.filter(e=>!t.has(e.externalIds?.[f.Jwplayer]));return[...e,...i]}),_.current={index:t+3,isLast:r}}finally{w.current=!1}}});(0,c.useEffect)(()=>{try{let e=localStorage.getItem(nz);v("true"===e)}catch(e){console.warn("Error getting onboarding key:",e)}},[]);let L=y(async()=>{if(!w.current){w.current=!0;try{let t=i.externalIds?.[f.Jwplayer],n=[],r=_.current.index,a=!1,{videos:l,lastPage:o}=await e(r),d=l.filter(e=>e.externalIds?.[f.Jwplayer]!==t);n.push(...d),r+=3,a=o,s(e=>{let t=new Set(e.map(e=>e.externalIds?.[f.Jwplayer])),i=n.filter(e=>!t.has(e.externalIds?.[f.Jwplayer]));return[...e,...i]}),_.current={index:r,isLast:a}}finally{w.current=!1}}});(0,c.useEffect)(()=>{L()},[]);let N=y(e=>{let t=C[e],i=!1===g;t?.type!=="onboarding"&&M(),R(t),I(t),F(e),j("nextmanual");let n=i?e-1:e;m(n),D(t,n),_.current.isLast&&d(!0)}),M=y(()=>{if(!g){v(!0),B({event:"scrollOnboardingComplete",eventLabel:"success",eventAction:"sp_reels_onboarding_complete"});try{localStorage.setItem(nz,"true")}catch(e){console.warn("Error setting onboarding key:",e)}}}),R=e=>{e?.type!=="ad"||z.has(e.adIndex)||b.current?.setScrollLocked(!0),e?.type==="ad"&&z.has(e.adIndex)&&!H.current.has(e.adIndex)&&(H.current.add(e.adIndex),nj&&console.log(`[Reels] Auto-scrolling past pre-failed ad slot #${e.adIndex}`),setTimeout(()=>b.current?.scrollByDirection("down"),100))},I=e=>{e?.type==="video"&&t?.(e.video.externalIds?.[f.Jwplayer]||"")},F=e=>{e>h&&B({event:"scrollReels",eventLabel:"success",eventAction:"sp_reels_scroll"})},D=(e,t)=>{(e?.type==="video"?e.videoIndex:C.slice(0,t).filter(e=>"video"===e.type).length-1)+3>=l.length&&!_.current.isLast&&k()},O=()=>{x(!A)},V=y(e=>{b.current?.setScrollLocked(e)}),Z=y(e=>{P(t=>{let i=new Set(t);return i.add(e),i})}),W=y(()=>{setTimeout(()=>{b.current?.scrollByDirection("down")},100)}),G=e=>{b.current?.scrollByDirection(e)},U=y(e=>{!1!==g&&("ArrowDown"===e.key?(e.preventDefault(),G("down")):"ArrowUp"===e.key&&(e.preventDefault(),G("up")))});(0,c.useEffect)(()=>(window.addEventListener("keydown",U),()=>{window.removeEventListener("keydown",U)}),[]);let q=(0,c.useRef)(void 0);return(0,c.useLayoutEffect)(()=>{if(!1===q.current&&!0===g){let e=b.current?.container;e&&e.scrollTo({top:0,behavior:"instant"})}q.current=g},[g]),(0,u.jsxs)("div",{className:"_reelsContainer_18qc0_1",children:[(0,u.jsx)("div",{className:"_header_18qc0_33",children:(0,u.jsx)("a",{href:"/",className:er("_logo_18qc0_47","sp_reels_logo"),"aria-label":"G\xe5 til forsiden",children:(0,u.jsx)("img",{className:"_logoImage_18qc0_60",src:n,fetchPriority:"high",alt:"logo"})})}),(0,u.jsxs)("div",{className:"_list_18qc0_68",children:[(0,u.jsx)(n_,{ref:b,onIndexChange:N,lockableIndices:T,children:C.map((e,t)=>((e,t)=>{let r=t===h;switch(e.type){case"onboarding":return(0,u.jsx)(nx,{teaserImages:i.teaserImages,handleScrollClick:G,hasSeenOnboarding:g},"onboarding");case"ad":{let i,n=z.has(e.adIndex);return(0,u.jsx)(il,{placeholderIndex:e.adIndex,shouldPreload:t>h&&t-h<=3,onLockChange:V,onSeen:Z,onCountdownComplete:W,isActive:r,hasBeenSeen:n,adVideoId:(i=C.slice(t+1).find(e=>"video"===e.type),i?.type==="video"&&i.video.externalIds?.[f.Jwplayer]||""),muted:A},`ad-${e.adIndex}`)}case"end-screen":return(0,u.jsx)(iP,{icon:(0,u.jsx)(eg,{size:null}),title:a.upToDateWithLatestVideos,trackingPrefix:"ajour-screen",description:a.goToFrontpage},"end-screen");case"video":return t>=h-1&&t<=h+3?(0,u.jsx)(nh,{video:e.video,muted:A,logoUrl:n,autoplay:r&&!!g,handleMuteToggle:O,isActive:r,startType:E},e.video.id):(0,u.jsx)("div",{className:"_videoPlaceholder_18qc0_123",children:(0,u.jsx)(ed,{teaserImages:e.video.teaserImages})},e.video.id)}})(e,t))}),(0,u.jsxs)("div",{className:"_scrollButtons_18qc0_107",children:[(0,u.jsx)("button",{type:"button",className:er("_scrollUp_18qc0_79","sp_reels_scroll-up"),"data-disabled":0===h,onClick:()=>G("up"),children:(0,u.jsx)(ew,{size:null})}),(0,u.jsx)("button",{type:"button",className:er("_scrollDown_18qc0_80","sp_reels_scroll-down"),"data-disabled":o&&h===C.length-1,onClick:()=>G("down"),children:(0,u.jsx)(ew,{size:null})})]})]})]})},nH=({theme:e,iconSet:t,locale:i,bidding:n,...r})=>(0,u.jsx)(K,{theme:e,children:(0,u.jsx)(S,{iconSet:t,children:(0,u.jsx)(Y,{locale:i,children:(0,u.jsx)(P,{bidding:n,product:"reels_story",children:(0,u.jsx)(nP,{...r})})})})}),nS=()=>(0,u.jsx)("div",{className:"_videoPlayIcon_jft9p_1",children:(0,u.jsx)(ek,{size:ec.Medium})}),nC=e=>{let{duration:t,delay:i}=e,[n,r]=(0,c.useState)(void 0),a=(0,c.useRef)(void 0),l=(0,c.useRef)(void 0),s=(0,c.useCallback)(()=>{void 0===i?r(1e3*t):l.current=setTimeout(()=>{r(1e3*t)},1e3*i)},[t,i]),o=(0,c.useCallback)(()=>{clearTimeout(a.current),clearTimeout(l.current),a.current=void 0,l.current=void 0,r(void 0)},[]);return(0,c.useEffect)(()=>{clearTimeout(a.current),a.current=void 0,0!==n&&void 0!==n&&n>0&&(a.current=setTimeout(()=>{r(e=>e&&e-200)},200))},[n]),{value:void 0!==n?Math.ceil(n/1e3):void 0,progress:void 0!==n?Math.round(100-100/t*(n/1e3)):void 0,start:s,stop:o}},nT={playerWrapper:"_playerWrapper_1jvio_1",videoWrapper:"_videoWrapper_1jvio_10",floatingContainer:"_floatingContainer_1jvio_21",videoContainer:"_videoContainer_1jvio_73",progressIndicator:"_progressIndicator_1jvio_81",video:"_video_1jvio_10",backLeft:"_backLeft_1jvio_95"},nk={loading:"Indl\xe6ser...",adWithTime:"Annonce ({timeLeft})",adWithSequenceAndCount:"Annonce {sequence} af {podcount} ({timeLeft})"},nL={"da-DK":nk,"da-DK-x-formal":nk,"nb-NO":{loading:"Laster...",adWithTime:"Annonse ({timeLeft})",adWithSequenceAndCount:"Annonse {sequence} av {podcount} ({timeLeft})"},"nn-NO":{loading:"Lastar...",adWithTime:"Annonse ({timeLeft})",adWithSequenceAndCount:"Annonse {sequence} av {podcount} ({timeLeft})"}},nN=e=>{let{onClick:t,icon:i,trackingClass:n}=e;return(0,u.jsx)("button",{type:"button",className:er("_container_1y9cn_1",n),onClick:t,children:(0,u.jsx)(i,{size:ec.Medium})})},nM=e=>{let{controls:t,playerState:i,animate:n,iosBackButtonPresent:r=!1}=e,a=J(nL),{ads:l,video:s,isMuted:o}=i,d=l.data&&l.data?.duration>0?new Date(1e3*Math.round(l.data.duration-l.data.position)).toISOString().slice(15,19):"0:00",c=l.data?.podcount===void 0||void 0===l.data.sequence?a.adWithTime.replace("{timeLeft}",d):a.adWithSequenceAndCount.replace("{sequence}",String(l.data.sequence)).replace("{podcount}",String(l.data.podcount)).replace("{timeLeft}",d),h=s.state===k.Playing||l.state===k.Playing;return(0,u.jsx)("div",{className:"_container_16y2t_1","data-setup-animation":n,"data-animation-enabled":n&&!!l.data,"data-iosbackbutton-present":r,children:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:"_leftWrapper_16y2t_34","data-is-ghosted":!l.data,children:[(0,u.jsx)(nN,{trackingClass:h?"sp_video_preroll_pause":"sp_video_preroll_play",onClick:h?t.pause:t.play,icon:h?eH:ek}),(0,u.jsx)(nN,{trackingClass:o?"sp_video_preroll_unmute":"sp_video_preroll_mute",onClick:()=>l.data?t.toggleMute():void 0,icon:o?eW:s.volume>=60?eB:eV})]}),(0,u.jsx)("div",{className:"_rightWrapper_16y2t_50",children:l.data?c:a.loading})]})})},nR=e=>{let{description:t,playing:i}=e;return(0,u.jsx)("div",{className:"_container_1ef7q_1",children:(0,u.jsx)("div",{className:"_textWrapper_1ef7q_5","data-is-playing":i,children:t})})};function nI(e){let{ads:t,description:i,playerState:n}=e;return(0,u.jsx)("div",{className:"_container_1sz6m_1",children:t?(0,u.jsx)(nM,{...e}):(0,u.jsx)(nR,{playing:[k.Playing,k.Paused,k.Ready].includes(n.video.state),description:i})})}var nF=e=>{let{icon:t,label:i,clickEvent:n,trackingClass:r}=e;return(0,u.jsxs)("button",{type:"button",className:er("_moreOptionsItem_1yzbx_36",r),onClick:n,children:[(0,u.jsx)("span",{className:er("_itemIconWrapper_1yzbx_55",r),children:(0,u.jsx)(t,{size:ec.Medium})}),(0,u.jsx)("span",{className:er("_itemLabel_1yzbx_59",r),children:i})]})},nD=e=>{let{options:t}=e,[i,n]=(0,c.useState)(!1);return(0,u.jsxs)("div",{className:"_moreOptionsWrapper_lydty_1",children:[i&&(0,u.jsxs)("div",{className:"_listRoot_lydty_11",children:[(0,u.jsx)("div",{className:"_moreOptionsList_lydty_18",children:t.map((e,t)=>(0,u.jsx)(nF,{...e,clickEvent:()=>{var t;return t=e.clickEvent,void(n(!i),t&&t())}},t))}),(0,u.jsx)("div",{className:"_moreOptionsArrowDown_lydty_27"})]}),(0,u.jsx)(nN,{icon:ez,onClick:()=>
9void n(!i),trackingClass:`sp_video_options_${i?"close":"open"}`})]})},nB=e=>{let{current:t,duration:i}=e;return(0,u.jsxs)("div",{className:"_root_5ccy6_1",children:[(0,u.jsx)("span",{className:"_timePlayed_5ccy6_13",children:N(t)}),"/",(0,u.jsx)("span",{children:N(i)})]})};function nO(e){let{volume:t,dragActive:i}=e;return(0,u.jsx)("div",{className:"_scrubberWrapper_160dg_1",children:(0,u.jsx)("div",{className:"_scrubber_160dg_1","data-thumb":!0,"data-is-dragging":i,style:{bottom:`${t}%`}})})}var nV=e=>{var t;let{volume:i,isMuted:n,setVolume:r,onToggleMute:a,isApp:l}=e,[s,o]=(0,c.useState)(null),[d,h]=(0,c.useState)(!1),[m,g]=(0,c.useState)(!1),v=(0,c.useMemo)(()=>i<=0||n?eW:i<70?eV:eB,[i,n]),f=y(e=>{r(100*e)}),p=y(()=>{g(!1),h(!1)});return t=y(()=>{h(!0)}),(0,c.useEffect)(()=>{if(!s)return;let e=e=>{e.preventDefault()},i=e=>{var t,i;let n;e.preventDefault(),f?.((t=s,i=e.clientY,Math.max(0,Math.min(1,1-(i-(n=t.getBoundingClientRect()).top)/n.height))))},n=e=>{t(),("mouse"!==e.pointerType||0===e.button)&&(e.preventDefault(),window.addEventListener("pointermove",i,{passive:!1}),window.addEventListener("pointerup",r),window.addEventListener("pointercancel",a),document.addEventListener("pointerleave",r))},r=e=>{i(e),a(),p()},a=()=>{window.removeEventListener("pointermove",i),window.removeEventListener("pointerup",r),window.removeEventListener("pointercancel",a),document.removeEventListener("pointerleave",r)};return s.addEventListener("touchstart",e,{passive:!1}),s.addEventListener("pointerdown",n,{passive:!1}),()=>{s.removeEventListener("touchstart",e),s.removeEventListener("pointerdown",n),window.removeEventListener("pointermove",i),window.removeEventListener("pointerup",r),window.removeEventListener("pointercancel",a),document.removeEventListener("pointerleave",r)}},[t,f,p,s]),(0,u.jsxs)("div",{className:"_container_ur0e7_1","data-show-volumeslider":d,onPointerMove:()=>{h(!0)},onPointerLeave:()=>{m||h(!1)},children:[d&&!l&&(0,u.jsx)("div",{className:"_volumeWrapper_ur0e7_19",onPointerDown:()=>g(!0),onPointerUp:()=>g(!1),children:(0,u.jsx)("div",{className:"_volumeBar_ur0e7_35",ref:o,tabIndex:d?0:-1,role:"slider","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(i),children:(0,u.jsxs)("div",{className:"_volumeSlider_ur0e7_48",children:[(0,u.jsx)("div",{id:"volume",style:{height:`${i}%`},className:"_volume_ur0e7_19"}),(0,u.jsx)(nO,{dragActive:m,volume:i})]})})}),(0,u.jsx)("div",{className:d&&i>0?"_iconFadeOnDesktop_ur0e7_42":void 0,children:(0,u.jsx)(nN,{onClick:a,icon:v,trackingClass:`sp_video_${n?"unmute":"mute"}`})})]})},nZ={closeFullscreen:"Luk fuld sk\xe6rm",openFullscreen:"Vis i fuld sk\xe6rm",releaseVideo:"Frig\xf8r video",pinVideo:"Fastg\xf8r video"},nW={"da-DK":nZ,"da-DK-x-formal":nZ,"nb-NO":{closeFullscreen:"Lukk fullskjerm",openFullscreen:"Vis i fullskjerm",releaseVideo:"Frigj\xf8r video",pinVideo:"Fest video"},"nn-NO":{closeFullscreen:"Lukk fullskjerm",openFullscreen:"Vis i fullskjerm",releaseVideo:"Frigjer video",pinVideo:"Fest video"}},nG=e=>{let{playerState:t,controls:i,isFullscreen:n,isLive:r,onToggleFullscreen:a}=e,l=J(nW),s=!!window.isNativeApp,{video:o,isMuted:d}=t,c=[],h=navigator.userAgent.toLowerCase().indexOf("android")>-1&&s,m=document?.pictureInPictureEnabled||!1;return c.push({icon:e_,label:n?l.closeFullscreen:l.openFullscreen,trackingClass:n?"sp_video_fullscreen-disable":"sp_video_fullscreen-enable",clickEvent:()=>a()}),m&&c.push({icon:eC,label:o.isPictureInPicture?l.releaseVideo:l.pinVideo,trackingClass:o.isPictureInPicture?"sp_video_pip-disable":"sp_video_pip-enable",clickEvent:()=>i.togglePictureInPicture()}),(0,u.jsxs)("div",{className:"_controlsContainer_118wg_1",children:[(0,u.jsxs)("div",{className:"_leftSideControls_118wg_8",children:[(0,u.jsx)(nN,{onClick:o.state===k.Playing?i.pause:i.play,icon:o.state===k.Playing?eH:ek,trackingClass:`sp_video_${o.state===k.Playing?"pause":"play"}`}),(0,u.jsx)(nV,{isMuted:d,volume:o.volume,isApp:s,setVolume:e=>i.setVolume(e),onToggleMute:()=>i.toggleMute()}),!r&&(0,u.jsx)(nB,{current:o.currentTime,duration:o.duration})]}),o.state!==k.Ended&&(0,u.jsx)("div",{className:"_rightSideControls_118wg_17",children:!h&&(0,u.jsx)(nD,{options:c})})]})},nU=e=>{let{title:t="",description:i="",publicationDate:n=""}=e;return(0,u.jsxs)("div",{className:"_root_ijiv8_1",children:[(0,u.jsx)("p",{className:"_title_ijiv8_9",children:t}),(0,u.jsxs)("div",{className:"_description_ijiv8_21",children:[(0,u.jsx)("p",{className:"_metaPublication_ijiv8_27",children:(e=>{if(!e)return;let t=new Date(e),i=(new Date().getTime()-t.getTime())/1e3,n={Date:t.getDate(),month:t.getMonth()+1,year:t.getFullYear(),hours:t.getHours(),min:t.getMinutes()};return i>86400?`${n.Date}.${n.month}.${n.year}`:i/3600>1?`${Math.round(i/3600)} time${i/3600>1?"r":""} siden`:`${Math.round(i/60)} min. siden`})(n)}),(0,u.jsx)("p",{className:"_metaDescription_ijiv8_28",children:i})]})]})};function nq(e){let{progress:t}=e;return(0,u.jsx)("div",{className:"_scrubberWrapper_1f8a4_1",children:(0,u.jsx)("div",{className:"_scrubberContainer_1f8a4_8",children:(0,u.jsx)("div",{className:"_scrubber_1f8a4_1","data-thumb":!0,style:{left:`${100*t}%`}})})})}var nY=e=>{let{onScrubEnd:t,onScrub:i,onScrubStart:n,progress:r}=e,[a,l]=(0,c.useState)(null),[s,o]=(0,c.useState)(r),d=(0,c.useRef)(0),[h,m]=(0,c.useState)(!1);(0,c.useEffect)(()=>{h||o(r)}
9,[r,h]),eq(a,y(()=>{d.current=r,n?.(),m(!0)}),y(e=>{o(e),i?.(e)}),y(e=>{t?.(e),m(!1)}));let g=s??0;return g>1&&(g=1),(0,u.jsx)("div",{className:"_container_1uuzx_1",children:(0,u.jsx)("div",{className:"_timelineWrapper_1uuzx_13",ref:l,children:(0,u.jsxs)("div",{className:"_timeline_1uuzx_5",children:[(0,u.jsx)("div",{id:"progress",style:{width:`${100*g}%`},className:"_progress_1uuzx_24"}),(0,u.jsx)(nq,{progress:g})]})})})},nQ=()=>(0,u.jsx)("div",{className:"_badgeContainer_61y99_1",children:(0,u.jsx)("p",{className:"_badgeText_61y99_9",children:"LIVE"})});function nJ(e){let[t,i]=(0,c.useState)(!1),[n,r]=(0,c.useState)(.5),a=(0,c.useRef)(null),l=(0,c.useRef)(void 0),s=(0,c.useRef)(void 0),o=tW();(0,c.useEffect)(()=>(d(),()=>m()),[]);let d=y(()=>{r(.1),i(!0),m(),l.current=setTimeout(()=>h(.5),2e3),e.onVisibilityChange?.(!0)}),h=y(t=>{e.isDragging||(r(t),i(!1),m(),s.current=setTimeout(()=>{e.onVisibilityChange?.(!1)},1e3*t))}),m=y(()=>{[l,s].forEach(e=>{clearTimeout(e.current),e.current=void 0})});return(0,c.useEffect)(()=>{"landscape"===o&&h(0)},[o]),(0,u.jsxs)("div",{className:"_root_1f25a_1",children:[(0,u.jsxs)("div",{className:"_topWrapper_1f25a_24","data-hide":!e.logoUrl&&!e.isLive,children:[e.logoUrl&&""!==e.logoUrl&&(0,u.jsx)("a",{href:"/",className:"_redirectAnchor_1f25a_43","aria-label":"G\xe5 til forsiden",children:(0,u.jsx)("img",{src:e.logoUrl,alt:"logo"})}),e.isLive&&(0,u.jsx)("div",{className:"_liveWrapper_1f25a_57",children:(0,u.jsx)(nQ,{})})]}),(0,u.jsx)("div",{className:er("_container_1f25a_13",!t&&"_disableAllChildEvents_1f25a_18"),onPointerMove:e=>{"touch"!==e.pointerType&&d()},onPointerUp:e=>{"touch"===e.pointerType&&(t&&e.target===a.current?h(.1):d())},ref:a,style:{opacity:+!!t,transition:`opacity ${n}s linear`},children:e.children})]})}var n$=e=>{let t=Number.isNaN(e.progress)?0:e.progress;return(0,u.jsx)("div",{className:"_container_swxj1_1",children:(0,u.jsx)("div",{className:"_timeline_swxj1_5",children:(0,u.jsx)("div",{id:"progress",style:{width:`${100*t}%`},className:"_progress_swxj1_12"})})})};function nK(e){let{controls:t,title:i,description:n,publicationDate:r,playerState:a,isFullscreen:l,isLive:s,onToggleFullscreen:o,logoUrl:d}=e,[h,m]=(0,c.useState)(!1),[g,v]=(0,c.useState)(!1),f=(0,c.useRef)(null),p=(0,c.useRef)(null),{handleScrub:w,handleScrubEnd:y,handleScrubStart:A,currentTime:x}=tG({controls:t,playerState:a});if(!t||!a)return null;let _=a.video.currentTime/a.video.duration;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(nJ,{logoUrl:d,isLive:s,isDragging:h,onVisibilityChange:v,children:(0,u.jsx)("div",{className:"_container_118vp_1",ref:f,children:(0,u.jsx)("div",{className:"_bottomWrapper_118vp_20",style:{paddingTop:`${!f.current||!p.current?0:Math.max(0,Math.min(f.current.clientHeight-p.current.clientHeight,100))}px`},children:(0,u.jsxs)("div",{className:"_bottomContainer_118vp_30",ref:p,children:[(i||n||r)&&(0,u.jsx)(nU,{title:i,description:n,publicationDate:r}),(0,u.jsx)(nG,{playerState:{...a,video:{...a.video,currentTime:x}},controls:t,isFullscreen:l,isLive:s,onToggleFullscreen:o}),!s&&(0,u.jsx)("div",{className:"_progressBar_118vp_46",children:(0,u.jsx)(nY,{progress:x/a.video.duration,onScrub:w,onScrubEnd:e=>{m(!1),y(e)},onScrubStart:()=>{m(!0),A()}})})]})})})}),!s&&!a.video.isPictureInPicture&&(0,u.jsx)("div",{className:"_progressIndicator_118vp_54","data-visible":!g,children:(0,u.jsx)(n$,{progress:_})})]})}var nX="_buttonWrapper_1rw4j_33",n0="_button_1rw4j_18",n1="_title_1rw4j_63",n2=e=>{let{isMuted:t,isPlaying:i,onToggleMute:n,onTogglePlay:r,onClose:a,volume:l,title:s,error:o}=e;return(0,u.jsx)("div",{className:"_root_1rw4j_1",children:(0,u.jsxs)("div",{className:"_container_1rw4j_8",children:[s&&!o&&(0,u.jsx)("p",{className:n1,children:s}),o&&(0,u.jsx)("p",{className:n1,children:"Noget gik galt"}),(0,u.jsxs)("div",{className:"_buttonContainer_1rw4j_18","data-is-error":o,"data-no-title":!s,children:[!o&&(0,u.jsxs)("div",{className:nX,children:[(0,u.jsx)("button",{type:"button",onClick:r,className:er(n0,`sp_video_floating_${i?"pause":"play"}`),children:i?(0,u.jsx)(eH,{size:ec.Medium}):(0,u.jsx)(ek,{size:ec.Medium})}),(0,u.jsx)("button",{type:"button",onClick:n,className:er(n0,`sp_video_floating_${t?"unmute":"mute"}`),children:t?(0,u.jsx)(eW,{size:ec.Medium}):l>90?(0,u.jsx)(eB,{size:ec.Medium}):(0,u.jsx)(eV,{size:ec.Medium})})]}),(0,u.jsx)("div",{className:nX,children:(0,u.jsx)("button",{type:"button",onClick:a,className:er(n0,"sp_video_floating_close"),children:(0,u.jsx)("span",{className:"_closeIcon_1rw4j_58",children:(0,u.jsx)(eA,{size:null})})})})]})]})})},n5=e=>{let{onPlay:t,logoUrl:i}=e;return(0,u.jsx)("div",{className:"_container_1luay_1",children:(0,u.jsxs)("div",{className:"_wrapper_1luay_10",children:[i&&""!==i&&(0,u.jsx)("a",{href:"/",className:"_logo_1luay_19","aria-label":"G\xe5 til forsiden",children:(0,u.jsx)("img",{src:i,alt:"logo"})}),(0,u.jsx)("button",{type:"button",className:er("_buttonPlay_1luay_36","sp_video_manual-play"),onClick:t,children:(0,u.jsx)(ek,{size:ec.Medium})})]})})}
9,n6={playingNow:"Afspilles nu",fetchingVideo:"Henter video"},n4={"da-DK":n6,"da-DK-x-formal":n6,"nb-NO":{playingNow:"Spilles av n\xe5",fetchingVideo:"Henter video"},"nn-NO":{playingNow:"Spelast av no",fetchingVideo:"Hentar video"}},n3=e=>{let{title:t,showInContainerControlsBar:i=!1,iosBackButtonPresent:n=!1,centerText:r=!1}=e,a=J(n4);return(0,u.jsxs)("div",{className:"_container_fzzwj_1","data-is-ios-back-button-present":n,"data-is-bottombar-present":i,children:[(0,u.jsx)("div",{className:"_blurredBackground_fzzwj_25"}),(0,u.jsxs)("div",{className:"_textWrapper_fzzwj_34","data-center-text":r,children:[!r&&(0,u.jsx)("div",{className:"_header_fzzwj_66",children:a.playingNow}),(0,u.jsx)("div",{className:"_title_fzzwj_76","data-is-vertical-video":i,children:r?a.fetchingVideo:t})]})]})},n7=e=>{let{children:t,showControlsBar:i,controlsBar:n,iosBackButtonPresent:r=!1}=e;return(0,u.jsxs)("div",{className:"_container_ji8sm_1",children:[(0,u.jsx)("div",{className:"_childrenWrapper_ji8sm_9","data-is-ios-back-button-present":r&&i,"data-show-controlbar":i,children:t}),i&&(0,u.jsx)("div",{className:"_controlBarWrapper_ji8sm_24",children:n})]})};function n8({trackers:e,children:t}){let i=(0,c.useRef)(e),n=i.current;return e&&n?(e.length!==n.length||e.some((e,t)=>e!==n[t]))&&(i.current=e):e!==n&&(i.current=e),(0,u.jsx)(ip.Provider,{value:i.current??iv,children:t})}var n9={name:"VideoErrorMessageOverlay",elements:{error:{codeFont:{family:t6,weight:"800",size:ea(12),lineHeight:ea(12)},messageFont:{family:t6,weight:"800",size:ea(14),lineHeight:ea(20)}}}},re={name:"VideoErrorMessageOverlay",elements:{error:{codeFont:{family:tJ,weight:"400",size:ea(14),lineHeight:ea(20)},messageFont:{family:tJ,weight:"500",size:ea(14),lineHeight:ea(20)}}}},rt={name:"VideoErrorMessageOverlay",elements:{error:{codeFont:{family:t6,weight:"800",size:ea(12),lineHeight:ea(12)},messageFont:{family:t6,weight:"800",size:ea(14),lineHeight:ea(20)}}}},ri={name:"VideoErrorMessageOverlay",elements:{error:{codeFont:{family:t5,weight:"800",size:ea(12),lineHeight:ea(12)},messageFont:{family:t5,weight:"800",size:ea(14),lineHeight:ea(20)}}}},rn={name:"VideoErrorMessageOverlay",elements:{error:{codeFont:{family:t6,weight:"800",size:ea(12),lineHeight:ea(12)},messageFont:{family:t6,weight:"800",size:ea(14),lineHeight:ea(20)}}}},rr={name:"VideoErrorMessageOverlay",elements:{error:{codeFont:{family:t2,weight:"600",size:ea(12),lineHeight:ea(16)},messageFont:{family:t2,weight:"700",size:ea(14),lineHeight:ea(20)}}}},ra={name:"VideoErrorMessageOverlay",elements:{error:{codeFont:{family:t4,weight:"800",size:ea(12),lineHeight:ea(12)},messageFont:{family:t4,weight:"800",size:ea(14),lineHeight:ea(20)}}}},rl={berlingske:re,bt:ri,euroinvestor:rr,weekendavisen:{name:"VideoErrorMessageOverlay",elements:{error:{codeFont:{family:t0,weight:"400",size:ea(14),lineHeight:ea(20)},messageFont:{family:t0,weight:"500",size:ea(14),lineHeight:ea(20)}}}},alfa:n9,bravo:rt,charlie:rn,nettavisen:ra},rs=e=>{let{floating:t}=e;return(0,u.jsx)(tQ,{themes:rl,children:(0,u.jsx)("div",{className:"_container_awu4s_1",children:(0,u.jsx)("div",{className:er("_messageWrapper_awu4s_11",t&&`floating--${t}`),children:!t&&(0,u.jsx)("div",{className:"_messageText_awu4s_30",children:"Noget gik galt"})})})})},ro={name:"VideoInfoMessageOverlay",elements:{text:{font:{family:t6,weight:"800",size:ea(16),lineHeight:ea(20)}},secondaryText:{font:{family:t6,weight:"500",size:ea(16),lineHeight:ea(24)}}}},rd={name:"VideoInfoMessageOverlay",elements:{text:{font:{family:tJ,weight:"500",size:ea(14),lineHeight:ea(20)}},secondaryText:{font:{family:tJ,weight:"400",size:ea(14),lineHeight:ea(14)}}}},rc={name:"VideoInfoMessageOverlay",elements:{text:{font:{family:t6,weight:"800",size:ea(16),lineHeight:ea(20)}},secondaryText:{font:{family:t6,weight:"500",size:ea(16),lineHeight:ea(24)}}}},ru={name:"VideoInfoMessageOverlay",elements:{text:{font:{family:t5,weight:"800",size:ea(16),lineHeight:ea(20)}},secondaryText:{font:{family:t5,weight:"500",size:ea(16),lineHeight:ea(24)}}}},rh={name:"VideoInfoMessageOverlay",elements:{text:{font:{family:t6,weight:"800",size:ea(16),lineHeight:ea(20)}},secondaryText:{font:{family:t6,weight:"500",size:ea(16),lineHeight:ea(24)}}}},rm={name:"VideoInfoMessageOverlay",elements:{text:{font:{family:t2,weight:"700",size:ea(14),lineHeight:ea(20)}},secondaryText:{font:{family:t2,weight:"600",size:ea(12),lineHeight:ea(16)}}}},rg={name:"VideoInfoMessageOverlay",elements:{text:{font:{family:t4,weight:"800",size:ea(16),lineHeight:ea(20)}},secondaryText:{font:{family:t4,weight:"500",size:ea(16),lineHeight:ea(24)}}}},rv={berlingske:rd,bt:ru,euroinvestor:rm,weekendavisen:{name:"VideoInfoMessageOverlay",elements:{text:{font:{family:t0,weight:"500",size:ea(14),lineHeight:ea(20)}},secondaryText:{font:{family:t0,weight:"400",size:ea(14),lineHeight:ea(20)}}}},alfa:ro,bravo:rc,charlie:rh,nettavisen:rg},rf="_circle_1v6uo_5",rp={[ec.Small]:O(16),[ec.Medium]:O(24),[ec.Large]:O(32),[ec.ExtraLarge]:O(64)},rw={[ec.Small]:O(2),[ec.Medium]:O(3),[ec.Large]:O(5),[ec.ExtraLarge]:O(7)},ry=e=>{let t=rp[e.size]||rp[ec.Medium],i=rw[e.size]||rw[ec.Medium];return(0,u.jsxs)("span",{className:"_throbber_1v6uo_1",style:{width:t,height:t},children:[(0,u.jsx)("span",{className:rf,style:{borderWidth:i},"data-is-background":!0}),(0,u.jsx)("span",{className:rf,style:{borderWidth:i},"data-is-partial":!0})]})},rA=e=>
9{let{icon:t,text:i,secondaryText:n,live:r,withDefaultBackground:a=!1}=e;return(0,u.jsx)(tQ,{themes:rv,children:(0,u.jsxs)("div",{className:"_container_e5lfm_1",children:[(0,u.jsx)("div",{className:"_background_e5lfm_34",style:{backgroundImage:a?"url(data:image/webp;base64,UklGRuANAABXRUJQVlA4INQNAACQuwCdASpYApEBPpFCmkmzOK4oqNh6ExASCWlu8YDE9ZzqAxnvbjDcy/v1OB8cfPO/8Pmg89vsSfw/UVnu2Cf/802Af/+yHz/L6dw/gH/69SvwT/566E3wJaLXTxbFhf+EMrQMs4naToBuKIsKcuwL4RZxzEMSUSwu9MVPqDIhyKSE3oAxHkK6XKxth6R7xOWoFjcekZuGeGyBkDiMhRuHgG+n1EYZeWXrZu052GLCPOc87sPGCg5UNHsqhqyHcNhMPRfhMuTEUbKgPQY75kDZXYHLptOe1CXNVk4l5hzOhQk8uEgCc9Iw7+ad4sNBV5jYxRRIYiAakKklm3WWKDBSkBAGQVHlf69jx5O8O6KZ+xNkfQO+lM1Xw6j4J3F+v3f+J0yLg0Lln1SeLVsw1lGmgo9kt5iOT6LvaOZgIEVkEZ+bCLoB7PH+BJiQTCs9YILBrlm3tGb2ZNCEmdpF+risnttp4nGwXOqfaPYz3eL5kzpoZNU6fNQWiK3E2xbmguJKGiVfQbMqQobI744mON46GjybprsrC7fo2qIEZLxKpbzwJQcswy+nJZyLPe8meFGgARDivyMIbEf7pnXTpoox7ejbU3znb2bHc1JbGdJnJeGt7PQfg9k1XWChZkFRbyLCCXC9CLCPCEu8V+hyVgKhKBAVLH0Y+0FyTJIjM8EnRwbaRBj6y1BCL8bGGnobRYY9CvEB6FNSWJ0wwrFQWMTJoLDzEJxvRdQ8epsxsZXgLHSScmOgV5gQyl4OLa8YkT1fBsncohMdAVQ+7r/Axd99JuyXwFj7dqRNiUzwa977gXc/v0hdL1vd3qlsAAp8lN1MXwZjz3YDe8OF7br0q3Qa4IqPHs1ydwSJRTDbZzfzJdJTfuIc6YPX0z27goJwUbSGcy6Pf7PqvN96VHhaDm+Px80J5OIklZBrv1fDHYECSdlJwOo3su7/FOP0b1PMBXJ8z+n7h+zqjKhRN+BxNuEe7wvG6SGn/UgC+MVIwZgRtQSVfYIwOXCO2onSZ1mV5MaYnB3zO+25kN8cafiXSEQV0sTu8XFiQKhG2/aL7mRwmwYKNg2Bg3PlkJTTTWJ5jRXz2h2xfW7y93aioe0KTMIiozrU1mukLSYuocIiQoWzpvBp/x43spn3krQ0zB3iTobBoApMK1jESFBmu+83/sNzP1QbfaDNojN0yTdTQ4SwTCzv7E1UpvUW+Ag4em+18KA/sJcTHx7AZbATcTuzbjndXSETM8ILh9HluIpX7KuOBgaUs2108pEibdpm1J+wYmKoKCjwL1sKsgq4MuLqYjx5xe0c/1FzC3syYpYqCZ6gQ9lLBXlYjx0A8+alDcLwmIo4u+gFA1Fkoy2m9kG3uRjKpbf39Mz8Qp26KIW30zhEcNvKlq4IP3B7iyGuZgs2wi0E5gBstbLPmQNsF0gclc0ZEyZk2y/ER4LIxLmJk1w4YhEuBD0UU0EOa6CWxdtIa8rdIqZ/RWRrKqc6hwd1Ga2Luv9sFZa1BJHf4I8JSjpNf+sOhHs1TJVbycmT38NLeagOMvgQ3u8+ywEqh0ABn2HdDn/sLP/OWCtqkRczBbD8TIdzfgb2fiJWTyU1pzOJg8bRWMFqwFPhNJdYTHsQrqmDA/cNPGBd8iblKqHCQwsI8judOteeH6PbN99XjzwMCf034AuzeGipsS5skcgHWWVV1SktOgfSZieSxJx+yARXJ+6XPF1gDkMI1ZKZPSYGw8g3x8ZNUZEVKkx5Ym6CT02HqYBvDYbpzO1FfAhvoS8aVFF4uJHGPjopOf1z6nv074RvFgJy8Cz8OA9sIViLyoyS3d0vwyTE7jbGDrGDKce/vMVcgT3PVUiI0s8NByQqYURr3ieuObI5rHWW7jPUv9Iiq7QOU0VDNEJcrW1yGJ1d5vtBhY+CcyLfT3igA9jfmTKbx6d22Vrt1WUNFTzMNYYY1ZcwrpcSdz6zL3RuhncFNCA1wnjtcG8qjUI/heJ8U4q7oZDoiffK0pXBJe/wEN6whve7LAAA/vWBOPCfjlONanAQRCMHcVq3Xhdt8vN8hIeblpUjsUSR05qhwwvwYpCrofeQW7RX5nW5saYIz3H1dJQXnzJ22cCXDpl4XpPge4NdTCiTk3rEfFmpr5fpBB7bRpCPmY3D5ameLxtey0SBAEAAAQrOJ6jKkJpvabYEjVqIfx9ckYX0X51CQpyrCk9GnX57r8exvKN/6hb1yL4LBMsmla9B0TCASVaca2yjwURg8T4Mcu6fgASs7nz2yENtx3E50glu0UydINHUBH9Ic5ZKm8qmDOYPg37Sx+7xVJM/RhnbAElMd4UfGekAzAjJENo2G2q3wMavn8FFct+3UQIYZCz/ErRS8itl4Xl4hJyWQuLeiqLruFTuwND9sRvKqzSM5v4pc7J+6VXMHlMcVMDN1GVEJDrUIFiMApTN1jQRn1i5USxI613vyn5/2UAROixzQ5MQvOhG7iSqSmpR+qI5RGCg+eA/bNFDzimlrSfTU5M5wKID1xOF2pY64vzTK2e7Q4C1DAEkCD+5mLeVvjymY/abkwK2RSw9irB6dkdWbl4Q+U/z2gz00EZdxB79BEEVwh7yysnhFiKlDDTQJpXyaN0MoRE8BLBC3ZodiAsPeYGrFgiRv/wZlYsF5GIVoO7hjpLCNIO1RtiiswmQjwoL8o8Z4aMEgnNvuY3AoYgbOdXeCqE6UXCwWBfWgdtLZn3OeV2Ry4KPYZAf+X0DkRjk9TH0VFUKXZxRaWAT+2TiPVkGQQNdyBaixHgp49N8R7XcmpjJy6fCc9FVpMFMQCV4yevbmA9qjz2QPo2c4zIu6JtRp3QvxKDNG+93FwswMYtLwf3DOiMgB7KCNpDthM9byYbY0n35emQJ9hLxyHUAe8qbl1bZe8Vpc8SfKRLPc4StLKU0g/NtPZI4fjnUQRTIl7LKsm4+1bnejeGpiJMtfxEY/CEMQi9xRGtkGd3MnB+RgM00tVIlHAVYkmePQf9GfEuYvA0B2AOReXwewjsi5Hq1bAHG1t9hfercb0p4Xy4yo36Pdspyk1EGmnBW5oyhsAE9A6KE0wDwNeQwJUnOykKvaFS8oV1pKceuMzWTECCLLxGKvrYr9k408TxdvaUSBgk6yLR7kncwYChxrvKD6Jai8QSeem5kP6gJrwndv+wrIlursx5AWym2ny3OIbae1U3UKQcqmHUsTv81hMfQgKWJYVICsB6zyhmxTwVSJnRX8nTbaUPYV6ikwtCmpf/WrIOhyR7vU6xaSrgTnJKhbioozD2wv/pWet8ituX3CEZb5j1NPZB5MOtS+J+KCcxZ7cxvtXQRQBx8ZKPcnDpbilZs0/xna6/8up/Xf84pSMZG2aj+jq6G7qK8r57vBucyhIHZolrOeWHPKW/F0I5vhjVa92oZeG0CSwOuduRXU1D0NnxMpvCb0NDTw32r0NJY+VVLGiPobU2fXRAEus7I4g4m1zOxcjNf06GCyP0yUZ0LMKGbMWr1h2NM6ju7sSrXPUm3VEIZym+eqtVHffOn9Hp335kfSyPs+cmLElh6lXVSru2774FSPXGu3dyjxn97vHCo2nHx3X6oT6MZeCnitqVnAXPmlDNxfHjpVXpeo5cnZzG2vVmV2SFKmOEfs03LTHySPw1hsWnCrn1O5wmT08D+ULb5+vr77EkaOhPwSyLQdANLdPiSGIn7yDp3csKfdtMBzzk8erhlV21CUXFSlqUPWwkcOKmCG+6NXnBN5elqXrrQFbXpzsPOpvDV8fMWmpGVyjarOseVMydGTKCtoZAK2/sPfWvmAWPAuxhhNgQckzZkMfOnVwemVKGxDmGjYPb0Vn85Ufh8MzivGKM3DcEiqZtP81xF6CpdfUgsgqbviei3cmpGGd1mwV8UB2Mifd2wRj1Qh3Y5giU22X7CxkxmQHD4/lfz9HX+ps9XQJQ/HPPLkMQu46fjB3lHewsbgB3rLUsJ49mIv6DMHCKLc7TyoYg3GOnGdcFtrNeL/DV6FbKlDNc4It3A+6E4hM8j3wC2cTq2ehNmjxk1OmwXCm7wIZNLrXEDFTL9nsdSJ2MDC/r9Up3jNzjfR3X+udva/dyUWYcCcC2eZ44TXhPu32nmStxBk/SJJBFPZR8pim0lTgM9A2tnCP9PLnP2vWMfXdK6BQ6xEjBUtj7xBIlFK6nOaFy+94V48QyUC8rYBB3ybAg4elRKGN52ioKQ3yJ5CIPj4csOe/zHyRDv/yirM0gdNcU3k+K0g6NEnbGQiq7ovOHJLdtAEH+XMoAoxSrAHt1tgb3CPCd6UiXm3d+Jd9ZxdwjpH7fx6MpTX76F6sUenBKcGI1I4813t4/8QXSZovvEmSs5RWqgA2j7u8qBOz6frgYkCbXPiYI/CvcDtVvM7FUPG4MUKQZkb1i5idosmeYnd/9PhwNahtHBjM4Qt2cqV3vqaSy3El+WRxMQFshuu5Lp6zUTuLHwlpw4k6DqSXhE8JWUd5mzqflzzbk4lGdqCzbqjzjHow6pGmp8baRnj1glPpH7ckZOXlaRCIxHn3h5aTA6rqLEPfoEjENGCmS8qEnM1dLDTmgrvwEctB11yaCGLdCZYRl5HRk9nEYwazpysFL3XbztmJuV4eSTs76MF0MmMDq79TFAIATNvPY8HwsRkzsuJ/M4uT2febBgMTM9iH4EIEwuTzZ8PoHmXFIQbLu6gYjYsO22f1QmgBowwWMzVBT6TP7Ctf2SARqAAAA=)":void 0}}),r&&(0,u.jsx)("div",{className:"_topWrapper_e5lfm_55",children:r&&(0,u.jsx)("div",{children:(0,u.jsx)(nQ,{})})}),(0,u.jsxs)("div",{className:"_messageWrapper_e5lfm_10",children:[(0,u.jsx)("div",{className:"_iconWrapper_e5lfm_25",children:t?(0,u.jsx)(t,{size:ec.Medium}):(0,u.jsx)(ry,{size:ec.Medium})}),(0,u.jsx)("div",{className:"_text_e5lfm_45",children:i}),(0,u.jsx)("div",{className:"_secondaryText_e5lfm_69",children:n})]})]})})};function rx({ref:e,...t}){var i;let n,r,{video:a,onChange:l,isEmbed:s,videoFormat:o,initialAutoPlay:d,initialMuted:m,ads:g,mediaId:v,preload:f,videoShouldCover:p,startType:w,overrideAdsMutedAndAutoplay:A}=t,x=eG(),_=(0,c.useRef)(null),b=(0,c.useRef)(null),E=(0,c.useRef)(null),j=(0,c.useRef)(null),z=v??void 0,P=(0,c.useRef)(z),H=(0,c.useRef)(!1),S=tF(),C=(0,c.useRef)(!1),{toggleFullscreen:T}=function(e){let[t,i]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{let t=()=>{i(document.fullscreenElement===e),e&&(e.controls=document.fullscreenElement===e)};return document.addEventListener("fullscreenchange",t),()=>{document.removeEventListener("fullscreenchange",t)}},[e]),{isFullscreen:t,toggleFullscreen:y(()=>
9{if(t)document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.webkitexitFullScreen&&document.webkitexitFullScreen();else e&&(e?.requestFullscreen?e.requestFullscreen():e?.webkitRequestFullscreen?e.webkitRequestFullscreen():e?.webkitEnterFullScreen&&e.webkitEnterFullScreen())}),setIsFullscreen:e=>i(e)}}(_.current||void 0),L=y(()=>{et()}),N=y(()=>{U()}),M=tU({videoElement:_.current,updatePlayerState:L}),R=tO({enabled:g,adContainerElement:b.current,videoElement:E.current,updatePlayerState:L,onAdsEnded:N}),I=(0,c.useRef)(void 0),F=(0,c.useRef)(new Set),D=P.current===z,B=!D||d,O=B&&"autoplay"===w,V=D?m:_.current?.muted||!1,Z=(0,c.useCallback)(()=>({autoplay:!A&&O,isEmbed:s,isLive:a.mediaResource.live,muted:V,videoFormat:o,product:S.product,videoDuration:6,videoUrl:I.current??""}),[V,A,O,o,a.mediaResource.live,s,S.product]),W=(0,c.useRef)(Z()),{subscribe:G}=(i=!!R.player||null===R.player,n=(0,c.useRef)(!1),r=(0,c.useRef)(new Map),(0,c.useEffect)(()=>{!n.current&&i&&(r.current.forEach(e=>{e()}),r.current.clear(),n.current=!0)},[i]),{subscribe:(e,t)=>{i?t():r.current.has(e)||r.current.set(e,t)}}),U=y(async()=>{let e=I.current;if(_.current&&e){if(null!==R.player&&g&&z&&!x){if(void 0===R.player)return void G("video-player-play",()=>U());if(!F.current.has(e)&&(_.current.pause(),R.ad.state===k.Idle)){let t=Z();W.current=t;let i=await R.playAds({overrideAutoplay:A,bidding:{...t,muted:V},videoId:z});if(F.current.add(e),i)return}if(R.ad.state===k.Paused)return void R.player.play();if(![k.Error,k.Ended].includes(R.ad.state))return}try{await _.current.play()}catch{_.current&&(_.current.muted=!0),et();try{await _.current?.play()}catch(e){H.current=!0,reportError(Error(`[VideoPlayerEngine] Video play failed: ${e}`,{cause:JSON.stringify({videoId:z,initialAutoPlay:d,initialMuted:m})}))}}}}),q=y(()=>{_.current&&(R.player&&R.ad.data?R.player.pause():_.current.pause(),et())}),Y=y(e=>{_.current&&Number.isFinite(e)&&(C.current=!0,_.current.currentTime=e)}),Q=y(()=>{R.player&&R.ad.data&&(R.player.muted=!R.player.muted),_.current&&(_.current.muted=!_.current.muted),et()}),J=y(()=>{document.pictureInPictureElement&&document.exitPictureInPicture(),_.current&&_.current.requestPictureInPicture()}),$=y(()=>{if(C.current){C.current=!1;return}et()}),K=y(e=>{_.current&&(_.current.muted=!1,_.current.volume=Math.min(1,Math.max(0,e/100)),et())}),X=(0,c.useMemo)(()=>({play:U,pause:q,seek:Y,toggleMute:Q,togglePictureInPicture:J,toggleFullscreen:T,setVolume:K}),[T]);(0,c.useImperativeHandle)(e,()=>({controls:X})),(0,c.useEffect)(()=>{if(!_.current)return;document.pictureInPictureElement===_.current&&document.exitPictureInPicture(),document.fullscreenElement===_.current&&document.exitFullscreen(),j.current=new h.Ay,j.current.attachMedia(_.current);let e=a.mediaResource?.mediaAssets?.find(e=>e.contentType?.toLowerCase()==="application/vnd.apple.mpegurl")?.url;if(e){I.current=e;let t=/iPad|iPhone|iPod/.test(navigator.userAgent),i=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);_.current.canPlayType("application/vnd.apple.mpegurl")&&(t||i)?(_.current.src=e,_.current.load()):j.current&&j.current.loadSource(e)}return R.resetAds(),()=>{j.current?.destroy(),j.current=null}},[a,R.resetAds]),(0,c.useEffect)(()=>{_.current?.setAttribute("webkit-playsinline",""),E.current?.setAttribute("webkit-playsinline","");let e=()=>{et()};return _.current?.addEventListener("leavepictureinpicture",e),()=>{_.current?.removeEventListener("leavepictureinpicture",e)}},[]);let ee=y(()=>{if(_.current)return{ads:R.ad,video:{state:M,currentTime:_.current.currentTime,duration:_.current.duration,volume:100*_.current.volume,isFullscreen:document.fullscreenElement===_.current,isPictureInPicture:document.pictureInPictureElement===_.current},autoplayNotAllowed:H.current,isMuted:R.ad.data&&R.player?R.player.muted:_.current.muted,adBlockerDetected:x}});(0,c.useEffect)(()=>{if(_.current&&z)return window.videoplayer={...window.videoplayer,[z]:{getVideoElement:()=>_.current,getState:ee,getBiddingConfig:()=>W.current}},()=>{window.videoplayer?.[z]&&delete window.videoplayer[z]}},[z]);let et=y(()=>{let e=ee();e&&l(e)}
9),ei=R.ad.state===k.Playing||R.ad.state===k.Paused||R.ad.state===k.Ready;return(0,u.jsxs)("div",{className:"_videoPlayerEngineContainer_1gv8i_1",children:[(0,u.jsx)("video",{ref:_,playsInline:!0,preload:f?"auto":"metadata",muted:V,onDurationChange:et,onError:et,onCanPlay:et,onPlay:$,onPlaying:et,onPause:et,onSeeked:et,onVolumeChange:et,onTimeUpdate:et,onEnded:et,onLoadStart:et,onLoadedMetadata:et,onLoadedData:()=>{et(),B&&U()},className:"_videoElement_1gv8i_11","data-cover":!R.ad.data&&"standalone"===o||p,"data-ad-is-showing":ei,"data-hide":M===k.Idle||M===k.Ready||M===k.Loading}),(0,u.jsx)("video",{ref:E,className:"_videoAdElement_1gv8i_37",playsInline:!0,muted:V,"data-hide":!ei}),(0,u.jsx)("div",{ref:b,className:"_adContainer_1gv8i_49"})]})}function r_(...e){"u">typeof window&&window.location.search.includes("debugloadtime")&&console.log(...e)}function rb({ref:e,...t}){var i;let n,r,{video:a,ads:l,initialAutoPlay:s,initialMuted:o,enableFloating:d,logoUrl:h,videoFormat:v,isEmbed:f=!1,showContent:p=!1,completedOverlay:w,aspectRatio:A,showBackButton:x,animateBottomBar:_=!1,fitTextForVerticalVideo:b=!1,showPreAdsOverlay:E,hideBottomControlsBar:j,onStateChange:z,trackingMediaId:P,startType:H}=t,[S,C]=(0,c.useState)(null),N=(0,c.useRef)(a),M=(0,c.useRef)(s?Date.now():void 0);s&&r_("[VideoLoadTime] Autoplay: playIntentTimestamp set on mount",M.current),(0,c.useEffect)(()=>{a.id!==N.current.id&&(M.current=Date.now(),r_("[VideoLoadTime] Video changed: playIntentTimestamp reset",M.current))},[a.id]);let R=(0,c.useRef)({controls:T}),[I,F]=(0,c.useState)(L),D=R.current?.controls||T,{updateMediaSession:B}=is(D),O=tW(),Z=x&&!I.ads.data&&!f&&!E,W=I.ads.data?"maximized":"minimized",G=tZ(ei);(0,c.useEffect)(()=>{"9:16"!==A&&I.video.state===k.Playing&&("portrait"===O&&I.video.isFullscreen?R.current.controls?.toggleFullscreen():"landscape"===O&&!I.video.isFullscreen&&G&&R.current.controls?.toggleFullscreen())},[A,O,G,I.video.state,I.video.isFullscreen]);let{floating:U,handleFloatingClose:q,handleFloatingTogglePlay:Y}=((e,t)=>{let{controls:i,playerState:n,isInView:r}=t,[a,l]=(0,c.useState)(!0),[s,o]=(0,c.useState)(!1),[d,u]=(0,c.useState)(!1),{video:h,ads:m}=n,g=y(()=>{m.state===k.Playing||h.state===k.Playing?(i?.pause(),o(!0)):i?.play()}),v=y(()=>{i.pause(),l(!0)});(0,c.useEffect)(()=>{h.state!==k.Paused&&(l(!1),o(!1))},[h.state]);let f=h.state===k.Playing||h.state===k.Paused,p=m.state===k.Playing||m.state===k.Loading||m.state===k.Ready||m.state===k.Paused;return(0,c.useEffect)(()=>{let t=e&&!r&&!h.isPictureInPicture&&(f||p)&&!a;u(e=>e?t:t&&(h.state!==k.Paused||s))},[h.isPictureInPicture,h.state,p,f,e,s,r,a]),{floating:d,handleFloatingClose:v,handleFloatingTogglePlay:g}})(d,{controls:D,playerState:I,isInView:function(e,t){let{entry:i}=tV(e,{threshold:t,root:null,rootMargin:"0%"});return!!i&&(i.boundingClientRect.y>0||i.isIntersecting)}(S,(i=!!I.ads,n=tW(),r=function(){let[e,t]=(0,c.useState)("u">typeof window?{width:window.innerWidth,height:window.innerHeight}:{}),i=tW();return(0,c.useEffect)(()=>{let e=()=>{t({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,c.useEffect)(()=>{t({width:window.innerWidth,height:window.innerHeight})},[i]),e}(),(0,c.useMemo)(()=>{let e=e=>S?.clientHeight&&e<S.clientHeight?e/S.clientHeight:0;if(void 0!==r.width&&void 0!==n)return e(r.width>=568?160:"portrait"===n?"minimized"===W?100:.5625*r.width:i?160:100)},[S,S?.clientHeight,W,i,n,r])))}),Q=a.mediaResource.mediaAssets?.some(e=>e.contentType?.toLowerCase()==="application/vnd.apple.mpegurl");iw((0,c.useMemo)(()=>P&&H?{...I,floating:U,videoFormat:v,isLive:a.mediaResource.live,startType:H,title:a.title,videoPubDate:a.publicationDate||"",mediaId:P,playIntentTimestamp:M.current}:void 0,[U,I,P,a.mediaResource.live,a.publicationDate,a.title,v,H])),(0,c.useImperativeHandle)(e,()=>({controls:D}));let{emitPlayEvent:J}=(e=>{let[t]=(0,c.useState)(Math.random().toString(36).substring(2,12)),i=(0,c.useCallback)(()=>{let e=new CustomEvent(eQ,{detail:{id:t}});window.dispatchEvent(e)},[t]);return(0,c.useEffect)(()=>{let i=i=>{i.detail.id!==t&&e?.()};return window.addEventListener(eQ,i),()=>{window.removeEventListener(eQ,i)}},[t,e]),{emitPlayEvent:i}})(D.pause);(0,c.useEffect)(()=>{(I.video.state===k.Playing||I.ads.state===k.Playing)&&J()},[I.video.state,I.ads.state,J]),(0,c.useEffect)(()=>{let e=()=>{let e="visible"===document.visibilityState;I.ads.state!==k.Playing||e||D.pause()};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[I,D.pause]),(0,c.useEffect)(()=>{I.ads.state===k.Playing&&I.video.isFullscreen&&D.toggleFullscreen()},[I.video.isFullscreen,I.ads.state,D.toggleFullscreen]);let[$,K]=(0,c.useState)(!s),X=(0,c.useMemo)(()=>I.video.state===k.Error||I.ads.state===k.Playing||I.ads.state===k.Paused||I.ads.state===k.Ready?null:a.mediaResource.live&&!Q?"WaitingLiveStreamOverlay":l&&E&&[k.Loading,k.Ready,k.Ended].includes(I.ads.state)?"PreAdsOverlay":I.autoplayNotAllowed||$&&N.current.id===a.id&&I.video.state===k.Ready?"ManualPlayOverlay":I.video.state===k.Ended&&w?"CompletedOverlay":(I.ads.data||I.video.state!==k.Paused&&I.video.state!==k.Playing)&&I.video.state!==k.Ended&&I.video.state!==k.Ready?void 0:"CommonPlayerOverlay",[I.ads.state,I.ads.data,I.video.state,I.autoplayNotAllowed,a.id,a.mediaResource.live,Q,$,w,E,l]),ee=(0,c.useMemo)(()=>
9{if(!_)return f&&a.description||!f&&!j?"bottomControlsBar":I.ads.data||"PreAdsOverlay"===X?"prerollControlsBar":null},[I.ads.data,f,X,_,j,a.description]);return(0,u.jsxs)(tQ,{themes:i5,children:[(0,u.jsxs)("div",{className:nT.videoWrapper,"data-show-control-block":Z&&!U,ref:C,children:[(0,u.jsxs)("div",{className:er(nT.videoContainer,V),children:[(0,u.jsx)(ed,{teaserImages:a.teaserImages,hasPlayed:[k.Playing,k.Paused].includes(I.video.state),frontThumbnailFullWidthOnMobile:"standalone"===v&&"9:16"===A}),(0,u.jsx)(n7,{iosBackButtonPresent:x,showControlsBar:"prerollControlsBar"===ee,controlsBar:(0,u.jsx)(nM,{playerState:I,controls:D,iosBackButtonPresent:x}),children:(0,u.jsxs)("div",{className:nT.playerWrapper,children:["prerollControlsBar"===ee&&!f&&(0,u.jsx)("a",{className:er(nT.backLeft,"PreAdsOverlay"===X?"sp_video_prepreroll_back":"sp_video_preroll_back"),href:"/",children:(0,u.jsx)(ef,{size:ec.Medium})}),(0,u.jsxs)("div",{className:nT.floatingContainer,"data-floating":U,"data-floating-minimized":U&&"minimized"===W,"data-floating-maximized":U&&"maximized"===W,"data-floating-maximized-landscape-ad":U&&"maximized"===W&&!!I.ads.data&&"landscape"===O,children:[Q&&(0,u.jsx)("div",{className:nT.video,children:(0,u.jsx)(rx,{video:a,mediaId:P,ref:R,startType:H?.includes("auto")?"autoplay":"click",onChange:e=>{F(e);let t=a.teaserImages.find(g);B({currentTime:I.video.currentTime,duration:I.video.duration,isPaused:I.video.state===k.Paused,isPlaying:I.video.state===k.Playing,media:{title:a.title,thumbnail:m(t,{maxWidth:500})}}),z&&z(e)},ads:l,initialAutoPlay:s,initialMuted:o,videoFormat:v,isEmbed:f,overrideAdsMutedAndAutoplay:"standalone"===v})}),U&&(0,u.jsx)(n2,{title:"minimized"===W?a.title:void 0,volume:I.video.volume,isMuted:I.isMuted,isPlaying:[k.Playing].includes(I.ads.state)||[k.Playing].includes(I.video.state),error:I.video.state===k.Error,onToggleMute:D?.toggleMute,onTogglePlay:Y,onClose:q}),I.video.state===k.Error&&(0,u.jsx)(rs,{floating:U&&W})]})]})}),"WaitingLiveStreamOverlay"===X&&(0,u.jsx)(rA,{text:"Afventer live indhold",secondaryText:"Vent venligst",withDefaultBackground:0===a.teaserImages.length}),"PreAdsOverlay"===X&&(0,u.jsx)(n3,{title:a.title,centerText:"16:9"===A,iosBackButtonPresent:x,showInContainerControlsBar:b&&G}),"CompletedOverlay"===X&&w,"ManualPlayOverlay"===X&&(0,u.jsx)(n5,{onPlay:()=>{M.current=Date.now(),r_("[VideoLoadTime] Manual play: playIntentTimestamp set",M.current),K(!1),D.play()},logoUrl:h}),"CommonPlayerOverlay"===X&&(0,u.jsx)(nK,{title:p?a.title:void 0,description:p?a.description:void 0,publicationDate:p?a.publicationDate:void 0,controls:D,playerState:I,logoUrl:h,isFullscreen:I.video.isFullscreen,isLive:a.mediaResource.live,onToggleFullscreen:D.toggleFullscreen})]}),Z&&(0,u.jsx)("div",{className:nT.iosBackButtonPresentBlock})]}),"bottomControlsBar"===ee&&!j&&(0,u.jsx)(nI,{playerState:I,animate:!1,controls:D,ads:!!I.ads.data,description:a.description}),_&&"standalone"===v&&(0,u.jsx)(nM,{playerState:I,animate:_,controls:D})]})}var rE=(e,t)=>t&&![k.Playing,k.Paused,k.Ended].includes(e.ads.state)&&!e.ads.error&&!e.ads.data,rj=e=>{let{video:t,onPlayVideo:i,trackingClass:n,countdownProgress:r,countdownText:a,showBorder:l=!1}=e,s=m(t.teaserImages.find(g),{maxWidth:200});return(0,u.jsxs)("button",{type:"button",className:er("_seeNextItemContainer_1z12z_1",n),onClick:()=>i(t,"nextmanual"),children:[(0,u.jsxs)("div",{className:"_seeNextItemthumbnailWrapper_1z12z_23",children:[(0,u.jsx)("div",{className:"_seeNextItemthumbnailContainer_1z12z_29","data-show-border":l,children:(0,u.jsx)("div",{className:"_seeNextItemThumbnail_1z12z_49",style:{backgroundImage:`url(${s})`},children:(0,u.jsx)(nS,{})})}),a?(0,u.jsxs)("div",{className:"_countdownContainer_1z12z_95",children:[(0,u.jsx)("div",{className:"_countdownProgress_1z12z_104",style:{width:r}}),(0,u.jsx)("span",{className:"_countdownText_1z12z_111",children:a})]}):null]}),(0,u.jsx)("span",{className:"_seeNextTitle_1z12z_81",children:t.title})]})},rz={nextWithCountdown:"N\xe6ste ({countdown})",playNow:"Afspil nu",cancel:"Annuller"},rP={"da-DK":rz,"da-DK-x-formal":rz,"nb-NO":{nextWithCountdown:"Neste ({countdown})",playNow:"Spill av n\xe5",cancel:"Avbryt"},"nn-NO":{nextWithCountdown:"Neste ({countdown})",playNow:"Spel av no",cancel:"Avbryt"}},rH="sp_video_recommended",rS=e=>
9{let{videos:t,onPlayVideo:i,countdown:n,onCancelCountdown:r,onReplayVideo:a,teaserImages:l}=e,s=J(rP);return(0,u.jsx)("div",{className:"_container_vbj0u_1",children:(0,u.jsxs)("div",{className:"_wrapper_vbj0u_8",children:[(0,u.jsx)(ed,{teaserImages:l}),(0,u.jsxs)("div",{className:"_darkOverlay_vbj0u_23",children:[(0,u.jsx)("div",{className:"_seeNextTop_vbj0u_41",children:(0,u.jsx)("button",{type:"button",className:er("_replayButton_vbj0u_60",`${rH}_replay`),onClick:()=>a(),children:(0,u.jsx)(eN,{size:null})})}),t.length>0&&(0,u.jsxs)("div",{className:"_seeNextContent_vbj0u_83",children:[(0,u.jsx)("div",{className:"_previewsContainer_vbj0u_96",children:t?.map((e,t)=>(0,u.jsx)(rj,{video:e,countdownProgress:n.progress?`${n.progress}%`:"0%",countdownText:0===t&&n.value?s.nextWithCountdown.replace("{countdown}",String(n.value)):void 0,showBorder:0===t&&void 0!==n.value,trackingClass:`${rH}_videos_${t+1}`,onPlayVideo:i},e.id))}),(0,u.jsxs)("div",{className:"_seeNextBottom_vbj0u_108","data-hidden":void 0===n,children:[(0,u.jsx)("button",{type:"button",className:er("_playNowButton_vbj0u_122",`${rH}_play`),onClick:()=>t[0]&&i(t[0]),children:s.playNow}),(0,u.jsx)("button",{type:"button",className:er("_cancelButton_vbj0u_146",`${rH}_cancel`),onClick:r,children:s.cancel})]})]})]})]})})},rC={name:"StandardVideoPlayer",elements:{recommendedItem:{titleFont:{family:t6,weight:"600",size:ea(13),lineHeight:ea(17)},tabletTitleFont:{family:t6,weight:"600",size:ea(13),lineHeight:ea(17)},borderRadius:"0"},recommendedHeader:{font:{family:t6,weight:"500",size:ea(14),lineHeight:ea(14)}},recommendedPlayButton:{font:{family:t6,weight:"800",size:ea(16),lineHeight:ea(16)},borderRadius:"0"},recommendedCancelButton:{font:{family:t6,weight:"800",size:ea(16),lineHeight:ea(16)},borderRadius:"0"}}},rT={name:"StandardVideoPlayer",elements:{recommendedItem:{titleFont:{family:tJ,weight:"500",size:ea(13),lineHeight:ea(17)},tabletTitleFont:{family:tJ,weight:"500",size:ea(13),lineHeight:ea(17)},borderRadius:ea(2)},recommendedHeader:{font:{family:tJ,weight:"400",size:ea(14),lineHeight:ea(14)}},recommendedPlayButton:{font:{family:tJ,weight:"400",size:ea(16),lineHeight:ea(16)},borderRadius:ea(2)},recommendedCancelButton:{font:{family:tJ,weight:"400",size:ea(16),lineHeight:ea(16)},borderRadius:ea(2)}}},rk={name:"StandardVideoPlayer",elements:{recommendedItem:{titleFont:{family:t6,weight:"600",size:ea(13),lineHeight:ea(17)},tabletTitleFont:{family:t6,weight:"600",size:ea(13),lineHeight:ea(17)},borderRadius:"0"},recommendedHeader:{font:{family:t6,weight:"500",size:ea(14),lineHeight:ea(14)}},recommendedPlayButton:{font:{family:t6,weight:"800",size:ea(16),lineHeight:ea(16)},borderRadius:"0"},recommendedCancelButton:{font:{family:t6,weight:"800",size:ea(16),lineHeight:ea(16)},borderRadius:"0"}}},rL={name:"StandardVideoPlayer",elements:{recommendedItem:{titleFont:{family:t5,weight:"600",size:ea(13),lineHeight:ea(17)},tabletTitleFont:{family:t5,weight:"600",size:ea(13),lineHeight:ea(17)},borderRadius:"0"},recommendedHeader:{font:{family:t5,weight:"500",size:ea(14),lineHeight:ea(14)}},recommendedPlayButton:{font:{family:t5,weight:"800",size:ea(16),lineHeight:ea(16)},borderRadius:"0"},recommendedCancelButton:{font:{family:t5,weight:"800",size:ea(16),lineHeight:ea(16)},borderRadius:"0"}}},rN={name:"StandardVideoPlayer",elements:{recommendedItem:{titleFont:{family:t6,weight:"600",size:ea(13),lineHeight:ea(17)},tabletTitleFont:{family:t6,weight:"600",size:ea(13),lineHeight:ea(17)},borderRadius:"0"},recommendedHeader:{font:{family:t6,weight:"500",size:ea(14),lineHeight:ea(14)}},recommendedPlayButton:{font:{family:t6,weight:"800",size:ea(16),lineHeight:ea(16)},borderRadius:"0"},recommendedCancelButton:{font:{family:t6,weight:"800",size:ea(16),lineHeight:ea(16)},borderRadius:"0"}}},rM={name:"StandardVideoPlayer",elements:{recommendedItem:{titleFont:{family:t2,weight:"700",size:ea(13),lineHeight:ea(17)},tabletTitleFont:{family:t2,weight:"700",size:ea(13),lineHeight:ea(17)},borderRadius:ea(4)},recommendedHeader:{font:{family:t2,weight:"400",size:ea(14),lineHeight:ea(14)}},recommendedPlayButton:{font:{family:t2,weight:"400",size:ea(15),lineHeight:ea(15)},borderRadius:ea(4)},recommendedCancelButton:{font:{family:t2,weight:"400",size:ea(15),lineHeight:ea(15)},borderRadius:ea(4)}}},rR={name:"StandardVideoPlayer",elements:{recommendedItem:{titleFont:{family:t4,weight:"600",size:ea(13),lineHeight:ea(17)},tabletTitleFont:{family:t4,weight:"600",size:ea(13),lineHeight:ea(17)},borderRadius:"0"},recommendedHeader:{font:{family:t4,weight:"500",size:ea(14),lineHeight:ea(14)}},recommendedPlayButton:{font:{family:t4,weight:"800",size:ea(16),lineHeight:ea(16)},borderRadius:"0"},recommendedCancelButton:{font:{family:t4,weight:"800",size:ea(16),lineHeight:ea(16)},borderRadius:"0"}}},rI={berlingske:rT,bt:rL,euroinvestor:rM,weekendavisen:{name:"StandardVideoPlayer",elements:{recommendedItem:{titleFont:{family:t0,weight:"500",size:ea(13),lineHeight:ea(17)},tabletTitleFont:{family:t0,weight:"500",size:ea(13),lineHeight:ea(17)},borderRadius:"0"},recommendedHeader:{font:{family:t0,weight:"500",size:ea(14),lineHeight:ea(14)}},recommendedPlayButton:{font:{family:t0,weight:"400",size:ea(16),lineHeight:ea(16)},borderRadius:"0"},recommendedCancelButton:{font:{family:t0,weight:"400",size:ea(16),lineHeight:ea(16)},borderRadius:"0"}}},alfa:rC,bravo:rk,charlie:rN,nettavisen:rR};function rF({ref:e,...t}){let{video:i,ads:n,initialAutoPlay:r,initialMuted:a,isEmbed:l=!1,enableFloating:s=!1,isStandAlone:o=!1,playlist:d,onStateChange:h,onVideoChange:m,aspectRatio:g,trackingMediaId:v,startType:f}=t,[p,w]=(0,c.useState)(L),A=(0,c.useRef)({controls:T});(0,c.useImperativeHandle)(e,()=>({controls:A.current.controls}));let[x,_]=(0,c.useState)(new Set([])),b=d?.videos?.filter(e=>!x.has(e.id)).slice(0,3),E=nC({duration:5,delay:3}),j=y(()=>{E.stop(),window.removeEventListener("scroll",j)});(0,c.useEffect)(()=>{p.video.state===k.Ended?(E.start(),window.addEventListener("scroll",j)):j()},[p.video.state,E.start]);let z=y((e,t="nextauto")=>{j(),m?.(e,t)}),P=y(()=>{let e=b?.[0];e&&m?.(e,"nextauto")}),H=y(()=>{j(),A.current?.controls.play()});(0,c.useEffect)(()=>{_(e=>new Set([...e,i.id]))},[i.id]),(0,c.useEffect)(()=>{p.video.state===k.Ended?(E.start(),window.addEventListener("scroll",j)):j()},[p.video.state,E.start]),(0,c.useEffect)(()=>{0===E.value&&(j(),P())},[E.value]);let S=rE(p,n);return(0,u.jsx)(tQ,{themes:rI,children:(0,u.jsx)("div",{className:"_root_125jv_1",children:(0,u.jsx)("div",{className:"_container_125jv_5","data-aspect-square":"9:16"===g,"data-is-standard-video":!o,children:(0,u.jsx)(rb,{ref:A,video:i,trackingMediaId:v,startType:f,aspectRatio:g,videoFormat:o?"standalone":"standard",animateBottomBar:o,ads:n,enableFloating:s,initialAutoPlay:r,initialMuted:void 0!==a?a:r,showPreAdsOverlay:S,isEmbed:l,hideBottomControlsBar:o,onStateChange:e=>{w(e),h?.(e)},completedOverlay:b&&(0,u.jsx)(rS,{videos:b,countdown:E,onPlayVideo:z,onCancelC
9ountdown:j,onReplayVideo:H,teaserImages:i.teaserImages})})})})})}var rD="_playNextItemContainer_2ee75_258",rB={nextWithCountdown:"N\xe6ste ({countdown})",playAgain:"Afspil igen",durationLabel:"Varighed",publishedLabel:"Udgivet"},rO={"da-DK":rB,"da-DK-x-formal":rB,"nb-NO":{nextWithCountdown:"Neste ({countdown})",playAgain:"Spill av igjen",durationLabel:"Varighet",publishedLabel:"Publisert"},"nn-NO":{nextWithCountdown:"Neste ({countdown})",playAgain:"Spel av igjen",durationLabel:"Varigheit",publishedLabel:"Publisert"}};function rV(e,t){let{playerState:i,pause:n,play:r}=t,[a,l]=(0,c.useState)(!1),s=y(()=>{!e||(!(i?.video.state!==void 0&&[k.Idle,k.Ready].includes(i.video.state))||i.ads.data)&&(window.scrollY>=e.clientHeight/2?i?.video.state===k.Paused||i?.video.isPictureInPicture||(n(),l(!0)):a&&(r(),l(!1)))});(0,c.useEffect)(()=>(window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s)}),[])}var rZ="_scrollButton_7hiup_41",rW={next:"N\xe6ste"},rG={"da-DK":rW,"da-DK-x-formal":rW,"nb-NO":{next:"Neste"},"nn-NO":{next:"Neste"}},rU=e=>{let{video:t,onClick:i,isVertical:n,countdownProgress:r,countdownText:a,showBorder:l=!1,showTitle:s=!1,trackingClass:o}=e,d=m(t.teaserImages.find(g),{maxWidth:200});return(0,u.jsxs)("div",{className:"_root_1asfj_1",children:[(0,u.jsxs)("button",{type:"button",onClick:()=>i(t),className:er("_button_1asfj_7",o),"data-is-vertical":n,"data-show-border":l,children:[(0,u.jsx)("div",{className:"_thumbnailContainer_1asfj_41",children:(0,u.jsx)("div",{className:"_thumbnail_1asfj_29",style:{backgroundImage:d?`url(${d})`:void 0},children:(0,u.jsx)(nS,{})})}),a?(0,u.jsxs)("div",{className:"_countdownContainer_1asfj_91",children:[(0,u.jsx)("div",{className:"_countdownProgress_1asfj_100",style:{width:r}}),(0,u.jsx)("span",{className:"_countdownText_1asfj_107","data-is-vertical":n,children:a})]}):null,(0,u.jsx)("span",{className:"_duration_1asfj_68",children:N(t.mediaResource.duration)})]}),(0,u.jsx)("span",{className:"_title_1asfj_126","data-show":s,children:t.title})]})};function rq({ref:e,...t}){let{onClick:i,onScroll:n,videos:r,isVisible:a,countdown:l,showVideoTitles:s=!1,isVerticalVideos:o=!1}=t,d=J(rG),[h,m]=(0,c.useState)(null),g=e=>{h?.scrollTo({left:0,behavior:"smooth"}),i(e)},v=y(e=>{let{scrollLeft:t,scrollWidth:i,clientWidth:r}=e.currentTarget;n?.({left:t>0,right:i-t>r})}),f=(0,c.useCallback)(()=>{h&&h.scrollTo({left:rY(h,!0),behavior:"smooth"})},[h]),p=(0,c.useCallback)(()=>{h&&h.scrollTo({left:rY(h,!1),behavior:"smooth"})},[h]);return((0,c.useEffect)(()=>{h&&v({currentTarget:h})},[h,r]),(0,c.useImperativeHandle)(e,()=>({scrollForward:f,scrollBackward:p})),r)?(0,u.jsx)("div",{className:"_root_rent6_1","data-is-visible":a,children:(0,u.jsx)("ol",{className:"_slider_rent6_20",ref:m,onScroll:v,children:r.map((e,t)=>(0,u.jsx)("li",{className:"_item_rent6_46",children:(0,u.jsx)(rU,{video:e,onClick:g,countdownProgress:l.progress?`${l.progress}%`:"0%",countdownText:0===t&&l.value?d.next:void 0,isVertical:o,showTitle:s,showBorder:0===t&&void 0!==l.value,trackingClass:`sp_video_standalone_related-videos_${t+1}`})},t))})}):null}function rY(e,t){let{scrollLeft:i,clientWidth:n}=e,r=Number.parseInt(window.getComputedStyle(e).getPropertyValue("column-gap"),10),a=e.children[0]?.getBoundingClientRect().width||0,l=Math.floor(n/a);return Math.floor(i/(a+r))*(a+r)+l*(a+r)*(t?1:-1)}var rQ=()=>(0,u.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 33 32",children:(0,u.jsx)("path",{fill:"currentColor",d:"m11.83 27.667 9.653-11.653-9.653-11.64 2.067-1.707L24.95 16.014l-11.053 13.36-2.067-1.707Z"})}),rJ=e=>{let{title:t,showTopborder:i=!1,onScroll:n,...r}=e,a=(0,c.useRef)({scrollForward:()=>{},scrollBackward:()=>{}}),[l,s]=(0,c.useState)({left:!1,right:!1}),o=!t&&0===e.videos.length;return(0,u.jsxs)("div",{className:"_container_7hiup_1","data-show-top-border":i&&!o,children:[(0,u.jsxs)("div",{className:"_header_7hiup_9","data-hide":o,children:[(0,u.jsx)("p",{className:"_title_7hiup_66",children:t}),(0,u.jsxs)("div",{className:"_scrollable_7hiup_30",children:[(0,u.jsx)("button",{type:"button",disabled:!l.left,className:er(rZ,"sp_video_standalone_related-videos_scroll-click-backward"),onClick:a.current.scrollBackward,"data-side":"left",children:(0,u.jsx)(rQ,{})}),(0,u.jsx)("button",{type:"button",disabled:!l.right,className:er(rZ,"sp_video_standalone_related-videos_scroll-click-forward"),onClick:a.current.scrollForward,"data-side":"right",children:(0,u.jsx)(rQ,{})})]})]}),(0,u.jsx)(rq,{...r,ref:a,onScroll:e=>{e&&s(e),n?.()},isVisible:!0})]})};function r$({ref:e,...t}){let{video:i,ads:n,initialAutoPlay:r,initialMuted:a,relatedVideos:l,playlistTitle:s,onVideoChange:o,trackingMediaId:d,startType:h,articlePublicationDate:m}=t,g=J(rO),v=(0,c.useRef)({controls:T});(0,c.useImperativeHandle)(e,()=>({controls:v.current.controls}));let[f,p]=(0,c.useState)(!1),[w,A]=(0,c.useState)(),x=(0,c.useRef)(i.id),[_,b]=(0,c.useState)(null);rV(_,{playerState:w,pause:()=>v.current.controls.pause(),play:()=>v.current.controls.play()});let E=tZ(ei),j=nC({duration:5,delay:3}),z=y(()=>{j.stop(),window.removeEventListener("scroll",z)}),P=y(()=>{let e=l?.[0];e&&o(e,"nextauto")}),H=e=>{z(),p(!1),o(e,"nextmanual"),E&&window.scrollTo({top:0,behavior:"smooth"})};(0,c.useEffect)(()=>(w?.video.state===k.Ended&&0===window.scrollY&&(p(!1),j.start(),window.addEventListener("scroll",z)),()=>z()),[w?.video.state,j.start]),(0,c.useEffect)(()=>{0===j.value&&(z(),P())},[j.value]);let S=y(()=>{z(),p(!1),v.current?.controls.play()}),C=(f||!l)&&w?.video.state===k.Ended;return(0,u.jsxs)("div",{children:[(0,u.jsx)("div",{className:"_backButtonContainer_2ee75_29",children:(0,u.jsx)("button",{type:"button",className:"_backButton_2ee75_29",onClick:()=>{document.referrer.includes(window.location.hostname)?window.history.back():window.location.href="/"},children:(0,u.jsx)(eR,{size:ec.Medium})})}),(0,u.jsxs)("div",{className:"_videoContainer_2ee75_1",ref:b,"data-is-video-completed":w?.video.state===k.Ended,children:[(0,u.jsx)(rF,{aspectRatio:"16:9",video:i,ref:v,initialAutoPlay:r,initialMuted:a,ads:!!n,enableFloating:!1,onStateChange:A,isStandAlone:!0,onVideoChange:o,trackingMediaId:d,startType:h}),w?.video.state===k.Ended&&!!l?.length&&!f&&(0,u.jsxs)("div",{className:rD,children:[(0,u.jsx)("button",{type:"button",className:"_playNextItemButton_2ee75_120",onClick:()=>l[0]&&H(l[0]),children:(0,u.jsxs)("div",{className:"_playNextItemThumbnailContainer_2ee75_130",children:[(0,u.jsx)("div",{className:"_playNextItemThumbnail_2ee75_130",style:{backgroundImage:`url(${l[0]?.teaserImages[0]?.assets[0]?.url})`},children:(0,u.jsx)(nS,{})}),(0,u.jsxs)("div",{className:"_playNextItemHeader_2ee75_194",children:[(0,u.jsx)("div",{className:"_playNextItemCountdownText_2ee75_250",children:j.value?g.nextWithCountdown.replace("{countdown}",String(j.value)):void 0}),(0,u.jsx)("button",{type:"button",className:er("_playNextItemCloseButton_2ee75_177","sp_video_standalone_related-videos_close"),onClick:e=>{j.stop(),p(!0),e.stopPropagation()},children:(0,u.jsx)(eA,{size:ec.Medium})})]})]})}),(0,u.jsx)("span",{className:"_playNextItemText_2ee75_210",children:l[0]?.title})]}),C&&(0,u.jsx)("div",{className:rD,children:(0,u.jsxs)("button",{type:"button",className:er("_replayButton_2ee75_239","sp_video_replay"),onClick:S,children:[(0,u.jsx)("div",{className:"_replayIcon_2ee75_230",children:(0,u.jsx)(eN,{size:null})}),(0,u.jsx)("div",{className:"_replayText_2ee75_223",children:g.playAgain})]})})]}),(0,u.jsxs)("div",{className:"_videoInfo_2ee75_7",children:[(0,u.jsx)("div",{children:i.mediaResource.duration&&i.publicationDate&&(0,u.jsxs)("div",{className:"_videoMetadataWrapper_2ee75_80",children:[(0,u.jsxs)("div",{className:"_videoDuration_2ee75_89",children:[g.durationLabel," ",N(i.mediaResource.duration)]}),(0,u.jsxs)("div",{className:"_videoPublished_2ee75_95",children:[g.publishedLabel," ",(0,u.jsx)(iL,{date:x.current===i.id?m??i.publicationDate:i.publicationDate,format:"datetime"})]})]})}),(0,u.jsxs)("div",{className:"_videoTitleWrapper_2ee75_48",children:[(0,u.jsx)("div",{className:"_videoTitle_2ee75_48",children:i.title}),(0,u.jsx)("pre",{children:(0,u.jsx)("div",{className:"_videoDescription_2ee75_67",children:i.description})}),i.relatedLink&&(0,u.jsxs)("a",{className:er("_videoForwardButton_2ee75_271","sp_video_standalone_forward"),href:i.relatedLink.url,children:[(0,u.jsx)(eE,{size:ec.Medium}),(0,u.jsx)("span",{className:"_videoForwardButtonText_2ee75_295",children:i.relatedLink.text})]})]})]}),l&&l.length>0&&(0,u.jsx)(rJ,{videos:l,countdown:j,onClick:H,onScroll:z,title:s,showVideoTitles:!0,showTopborder:!0})]})}var rK={entering:{opacity:0,visibility:"visible"},entered:{opacity:1,visibility:"visible"},exiting:{opacity:0,visibility:"visible"},exited:{opacity:0,visibility:"hidden"}},rX=({children:e,duration:t,show:i,...n})=>{let[r,a]=(0,c.useState)("exited"),l=y(()=>{a("entering"),setTimeout(()=>a("entered"),0)}),s=y(()=>{a("exiting"),setTimeout(()=>a("exited"),t)});return(0,c.useEffect)(()=>{i?l():s()},[i]),(0,u.jsx)("div",{...n,style:{transition:`opacity ${t}ms ease-in-out`,...rK[r]},children:e})};function r0({ref:e,...t}){let{video:i,logoUrl:n,ads:r,relatedVideos:a,initialAutoPlay:l,playlistTitle:s,initialMuted:o,onVideoChange:d,trackingMediaId:h,startType:m}
9=t,g=(0,c.useRef)({controls:T});(0,c.useImperativeHandle)(e,()=>({controls:g.current.controls}));let[v,f]=(0,c.useState)(null),[p,w]=(0,c.useState)(L),[A,x]=(0,c.useState)(!1),{entry:_}=tV(v,{threshold:.5}),b=tZ(ei),E=_?.isIntersecting!==!1&&!!b;rV(v,{playerState:p,pause:()=>g.current.controls.pause(),play:()=>g.current.controls.play()});let j="u">typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent),z=rE(p,r),P=!!b&&p.video.state===k.Ended&&E&&!A,H=nC({duration:5,delay:3}),S=y(()=>{H.stop(),window.removeEventListener("scroll",S)}),C=y(()=>{let e=a?.[0];e&&d(e,"nextauto")}),N=e=>{S(),d(e,"nextmanual"),b&&window.scrollTo({top:0,behavior:"smooth"})};(0,c.useEffect)(()=>(p.video.state===k.Ended&&0===window.scrollY&&(x(!1),H.start(),window.addEventListener("scroll",S)),()=>S()),[p.video.state,H.start]),(0,c.useEffect)(()=>{0===H.value&&(S(),C())},[H.value]);let M="u">typeof window&&!!window.isNativeApp;return(0,u.jsxs)("div",{className:"_container_juq90_11",children:[(0,u.jsxs)("div",{ref:f,children:[!!a?.length&&(0,u.jsx)(rX,{duration:P?600:200,show:P,className:"_fadeContainer_juq90_61",children:(0,u.jsxs)("div",{className:"_wrapper_juq90_74",children:[n&&""!==n&&(0,u.jsx)("a",{href:"/",className:"_logo_juq90_79","aria-label":"G\xe5 til forsiden",children:(0,u.jsx)("img",{src:n,alt:"logo"})}),(0,u.jsx)("button",{type:"button",className:er("_closeButton_juq90_90","sp_video_standalone_related-videos_close"),onClick:()=>{S(),x(!0)},children:(0,u.jsx)(eA,{size:1})}),s&&(0,u.jsx)("p",{className:"_title_juq90_110","data-visible":P,children:s}),(0,u.jsx)(rq,{videos:a,onClick:N,isVisible:P,countdown:H,onScroll:S,isVerticalVideos:!0})]})}),(0,u.jsx)("div",{className:er(V,"_root_juq90_1"),children:(0,u.jsx)("div",{className:"_playerWrapper_juq90_30","data-not-ready":(void 0===p||p.video.state!==k.Playing)&&p.video.state!==k.Ended,style:{"--videoplayer-container-zindex":!1!==E&&1006},children:(0,u.jsx)(rb,{ref:g,video:i,aspectRatio:"9:16",videoFormat:"standalone",ads:r,logoUrl:n,enableFloating:!1,onStateChange:w,animateBottomBar:!b,initialAutoPlay:l,initialMuted:o,showBackButton:M&&j,fitTextForVerticalVideo:!0,showPreAdsOverlay:z,hideBottomControlsBar:!0,showContent:!0,trackingMediaId:h,startType:m})})})]}),!!a?.length&&!P&&(0,u.jsx)(rJ,{videos:a,onClick:N,countdown:H,onScroll:S,title:s,isVerticalVideos:!0})]})}var r1={name:"StandAloneVideoPlayer",elements:{relatedVideo:{countdownHorizontalFont:{family:t6,size:ea(16),lineHeight:ea(16),weight:"500"},countdownVerticalFont:{family:t6,size:ea(14),lineHeight:ea(14),weight:"600"},titleFont:{family:t6,size:ea(17),lineHeight:ea(25),weight:"900"},tabletTitleFont:{family:t6,size:ea(18),lineHeight:ea(27),weight:"900"},durationFont:{family:t6,size:ea(14),lineHeight:ea(14),weight:"600"},tabletDurationFont:{family:t6,size:ea(16),lineHeight:ea(16),weight:"500"},videoTitleFont:{family:t6,size:ea(13),lineHeight:ea(17),weight:"600"},tabletVideoTitleFont:{family:t6,size:ea(16),lineHeight:ea(22),weight:"600"},playNextTitleFont:{family:t6,size:ea(13),lineHeight:ea(17),weight:"600"},playNextCloseButtonColor:"#212121",borderRadius:"0"},videoInfo:{titleFont:{family:t6,size:ea(17),lineHeight:ea(25),weight:"900"},tabletTitleFont:{family:t6,size:ea(18),lineHeight:ea(27),weight:"900"},descriptionFont:{family:t6,size:ea(17),lineHeight:ea(26),weight:"500"},tabletDescriptionFont:{family:t6,size:ea(18),lineHeight:ea(26),weight:"500"}},videoMetadata:{durationFont:{family:t6,size:ea(13),lineHeight:ea(16),weight:"500"},publishedFont:{family:t6,size:ea(13),lineHeight:ea(16),weight:"500"}},replay:{replayFont:{family:t6,size:ea(16),lineHeight:ea(22),weight:"500"}},forwardButton:{backgroundColor:"#ff0000",borderRadius:"0",font:{family:t6,lineHeight:ea(22),size:ea(16),weight:"500"}}}},r2={name:"StandAloneVideoPlayer",elements:{relatedVideo:{countdownHorizontalFont:{family:tJ,size:ea(16),lineHeight:ea(16),weight:"400",letterSpacing:ea(.16)},countdownVerticalFont:{family:tJ,size:ea(14),lineHeight:ea(14),weight:"500"},titleFont:{family:t$,size:ea(18),lineHeight:ea(24),weight:"800"},tabletTitleFont:{family:t$,size:ea(20),lineHeight:ea(26),weight:"800"},durationFont:{family:tJ,size:ea(14),lineHeight:ea(14),weight:"500",letterSpacing:ea(.28)},tabletDurationFont:{family:tJ,size:ea(16),lineHeight:ea(16),weight:"400",letterSpacing:ea(.5)},videoTitleFont:{family:tJ,size:ea(13),lineHeight:ea(17),weight:"500",letterSpacing:ea(.25)},tabletVideoTitleFont:{family:tJ,size:ea(16),lineHeight:ea(22),weight:"500",letterSpacing:ea(.16)},playNextTitleFont:{family:tJ,size:ea(13),lineHeight:ea(17),weight:"500"},playNextCloseButtonColor:"#333333",borderRadius:ea(2)},videoInfo:{titleFont:{family:t$,size:ea(18),lineHeight:ea(24),weight:"800"},descriptionFont:{family:tX,size:ea(17),lineHeight:ea(26),weight:"400"},tabletTitleFont:{family:t$,size:ea(20),lineHeight:ea(26),weight:"800"},tabletDescriptionFont:{family:tX,size:ea(16),lineHeight:ea(26),weight:"400"}},videoMetadata:{durationFont:{family:tJ,size:ea(13),lineHeight:ea(16),weight:"400"},publishedFont:{family:tJ,size:ea(13),lineHeight:ea(16),weight:"400"}},replay:{replayFont:{family:tJ,size:ea(16),lineHeight:ea(22),weight:"400",letterSpacing:ea(.16)}},forwardButton:{backgroundColor:iI,font:{family:tJ,lineHeight:ea(22),size:ea(16),weight:"400",letterSpacing:ea(.16)},borderRadius:ea(2)}}},r5={name:"StandAloneVideoPlayer",elements:{relatedVideo:{countdownHorizontalFont:{family:t6,size:ea(16),lineHeight:ea(16),weight:"500"},countdownVerticalFont:{family:t6,size:ea(14),lineHeight:ea(14),weight:"600"},titleFont:{family:t6,size:ea(17),lineHeight:ea(25),weight:"900"},tabletTitleFont:{family:t6,size:ea(18),lineHeight:ea(27),weight:"900"},durationFont:{family:t6,size:ea(14),lineHeight:ea(14),weight:"600"},tabletDurationFont:{family:t6,size:ea(16),lineHeight:ea(16),weight:"500"},videoTitleFont:{family:t6,size:ea(13),lineHeight:ea(17),weight:"600"},tabletVideoTitleFont:{family:t6,size:ea(16),lineHeight:ea(22),weight:"600"},playNextTitleFont:{family:t6,size:ea(13),lineHeight:ea(17),weight:"600"},playNextCloseButtonColor:"#212121",borderRadius:"0"},videoInfo:{titleFont:{family:t6,size:ea(17),lineHeight:ea(25),weight:"900"},tabletTitleFont:{family:t6,size:ea(18),lineHeight:ea(27),weight:"900"},descriptionFont:{family:t6,size:ea(17),lineHeight:ea(26),weight:"500"},tabletDescriptionFont:{family:t6,size:ea(18),lineHeight:ea(26),weight:"500"}},videoMetadata:{durationFont:{family:t6,size:ea(13),lineHeight:ea(16),weight:"500"},publishedFont:{family:t6,size:ea(13),lineHeight:ea(16),weight:"500"}},replay:{replayFont:{family:t6,size:ea(16),lineHeight:ea(22),weight:"500"}},forwardButton:{backgroundColor:"#ff0000",borderRadius:"0",font:{family:t6,lineHeight:ea(22),size:ea(16),weight:"500"}}}},r6={name:"StandAloneVideoPlayer",elements:{relatedVideo:{countdownHorizontalFont:{family:t5,size:ea(16),lineHeight:ea(16),weight:"500"},countdownVerticalFont:{family:t5,size:ea(14),lineHeight:ea(14),weight:"600"},titleFont:{family:t5,size:ea(17),lineHeight:ea(25),weight:"900"},tabletTitleFont:{family:t5,size:ea(18),lineHeight:ea(27),weight:"900"},durationFont:{family:t5,size:ea(14),lineHeight:ea(14),weight:"600"},tabletDurationFont:{family:t5,size:ea(16),lineHeight:ea(16),weight:"500"},videoTitleFont:{family:t5,size:ea(13),lineHeight:ea(17),weight:"600"},tabletVideoTitleFont:{family:t5,size:ea(16),lineHeight:ea(22),weight:"600"},playNextTitleFont:{family:t5,size:ea(13),lineHeight:ea(17),weight:"600"},playNextCloseButtonColor:"#212121",borderRadius:"0"},videoInfo:{titleFont:{family:t5,size:ea(17),lineHeight:ea(25),weight:"900"},tabletTitleFont:{family:t5,size:ea(18),lineHeight:ea(27),weight:"900"},descriptionFont:{family:t5,size:ea(17),lineHeight:ea(26),weight:"500"},tabletDescriptionFont:{family:t5,size:ea(18),lineHeight:ea(26),weight:"500"}},videoMetadata:{durationFont:{family:t5,size:ea(13),lineHeight:ea(16),weight:"500"},publishedFont:{family:t5,size:ea(13),lineHeight:ea(16),weight:"500"}},replay:{replayFont:{family:t5,size:ea(16),lineHeight:ea(22),weight:"500"}},forwardButton:{backgroundColor:iB,borderRadius:"0",font:{family:t5,lineHeight:ea(22),size:ea(16),weight:"500"}}}},r4={name:"StandAloneVideoPlayer",elements:{relatedVideo:{countdownHorizontalFont:{family:t6,size:ea(16),lineHeight:ea(16),weight:"500"},countdownVerticalFont:{family:t6,size:ea(14),lineHeight:ea(14),weight:"600"},titleFont:{family:t6,size:ea(17),lineHeight:ea(25),weight:"900"},tabletTitleFont:{family:t6,size:ea(18),lineHeight:ea(27),weight:"900"},durationFont:{family:t6,size:ea(14),lineHeight:ea(14),weight:"600"},tabletDurationFont:{family:t6,size:ea(16),lineHeight:ea(16),weight:"500"},videoTitleFont:{family:t6,size:ea(13),lineHeight:ea(17),weight:"600"},tabletVideoTitleFont:{family:t6,size:ea(16),lineHeight:ea(22),weight:"600"},playNextTitleFont:{family:t6,size:ea(13),lineHeight:ea(17),weight:"600"},playNextCloseButtonColor:"#212121",borderRadius:"0"},videoInfo:{titleFont:{family:t6,size:ea(17),lineHeight:ea(25),weight:"900"},tabletTitleFont:{family:t6,size:ea(18),lineHeight:ea(27),weight:"900"},descriptionFont:{family:t6,size:ea(17),lineHeight:ea(26),weight:"500"},tabletDescriptionFont:{family:t6,size:ea(18),lineHeight:ea(26),weight:"500"}},videoMetadata:{durationFont:{family:t6,size:ea(13),lineHeight:ea(16),weight:"500"},publishedFont:{family:t6,size:ea(13),lineHeight:ea(16),weight:"500"}},replay:{replayFont:{family:t6,size:ea(16),lineHeight:ea(22),weight:"500"}},forwardButton:{backgroundColor:"#ff0000",borderRadius:"0",font:{family:t6,lineHeight:ea(22),size:ea(16),weight:"500"}}}},r3={name:"StandAloneVideoPlayer",elements:{relatedVideo:{countdownHorizontalFont:{family:t2,size:ea(16),lineHeight:ea(16),weight:"400"},countdownVerticalFont:{family:t2,size:ea(14),lineHeight:ea(14),weight:"700"},titleFont:{family:t2,size:ea(17),lineHeight:ea(26),weight:"750"},tabletTitleFont:{family:t2,size:ea(17),lineHeight:ea(26),weight:"750"},durationFont:{family:t2,size:ea(14),lineHeight:ea(14),weight:"700"},tabletDurationFont:{family:t2,size:ea(16),lineHeight:ea(16),weight:"400"},videoTitleFont:{family:t2,size:ea(13),lineHeight:ea(13),weight:"700"},tabletVideoTitleFont:{family:t2,size:ea(16),lineHeight:ea(22),weight:"700"},playNextTitleFont:{family:t2,size:ea(13),lineHeight:ea(17),weight:"700"},playNextCloseButtonColor:"#333333",borderRadius:ea(4)},videoInfo:{titleFont:{family:t2,size:ea(17),lineHeight:ea(26),weight:"750"},descriptionFont:{family:t2,size:ea(17),lineHeight:ea(26),weight:"400"},tabletTitleFont:{family:t2,size:ea(17),lineHeight:ea(26),weight:"750"},tabletDescriptionFont:{family:t2,size:ea(17),lineHeight:ea(26),weight:"400"}},videoMetadata:{durationFont:{family:t2,size:ea(13),lineHeight:ea(16),weight:"400"},publishedFont:{family:t2,size:ea(13),lineHeight:ea(16),weight:"400"}},replay:{replayFont:{family:t2,size:ea(16),lineHeight:ea(22),weight:"400"}},forwardButton:{backgroundColor:iZ,borderRadius:ea(4),font:{family:t2,size:ea(16),lineHeight:ea(22),weight:"400"}}}},r7={name:"StandAloneVideoPlayer",elements:{relatedVideo:{countdownHorizontalFont:{family:t4,size:ea(16),lineHeight:ea(16),weight:"500"},countdownVerticalFont:{family:t4,size:ea(14),lineHeight:ea(14),weight:"600"},titleFont:{family:t4,size:ea(17),lineHeight:ea(25),weight:"900"},tabletTitleFont:{family:t4,size:ea(18),lineHeight:ea(27),weight:"900"},durationFont:{family:t4,size:ea(14),lineHeight:ea(14),weight:"600"},tabletDurationFont:{family:t4,size:ea(16),lineHeight:ea(16),weight:"500"},videoTitleFont:{family:t4,size:ea(13),lineHeight:ea(17),weight:"600"},tabletVideoTitleFont:{family:t4,size:ea(16),lineHeight:ea(22),weight:"600"},playNextTitleFont:{family:t4,size:ea(13),lineHeight:ea(17),weight:"600"},playNextCloseButtonColor:"#212121",borderRadius:"0"},videoInfo:{titleFont:{family:t4,size:ea(17),lineHeight:ea(25),weight:"900"},tabletTitleFont:{family:t4,size:ea(18),lineHeight:ea(27),weight:"900"},descriptionFont:{family:t4,size:ea(17),lineHeight:ea(26),weight:"500"},tabletDescriptionFont:{family:t4,size:ea(18),lineHeight:ea(26),weight:"500"}},videoMetadata:{durationFont:{family:t4,size:ea(13),lineHeight:ea(16),weight:"500"},publishedFont:{family:t4,size:ea(13),lineHeight:ea(16),weight:"500"}},replay:{replayFont:{family:t4,size:ea(16),lineHeight:ea(22),weight:"500"}},forwardButton:{backgroundColor:"#ff0000",borderRadius:"0",font:{family:t4,lineHeight:ea(22),size:ea(16),weight:"500"}}}},r8={berlingske:r2,bt:r6,euroinvestor:r3,weekendavisen:{name:"StandAloneVideoPlayer",elements:{relatedVideo:{countdownHorizontalFont:{family:t0,size:ea(16),lineHeight:ea(16),weight:"400"},countdownVerticalFont:{family:t0,size:ea(14),lineHeight:ea(14),weight:"500"},titleFont:{family:t0,size:ea(24),lineHeight:ea(30),weight:"800"},tabletTitleFont:{family:t0,size:ea(26),lineHeight:ea(30),weight:"800"},durationFont:{family:t0,size:ea(14),lineHeight:ea(14),letterSpacing:ea(.38),weight:"500"},tabletDurationFont:{family:t0,size:ea(16),lineHeight:ea(16),letterSpacing:ea(.5),weight:"400"},videoTitleFont:{family:t0,size:ea(13),lineHeight:ea(17),weight:"500"},tabletVideoTitleFont:{family:t0,size:ea(16),lineHeight:ea(22),weight:"500"},playNextTitleFont:{family:t0,size:ea(13),lineHeight:ea(17),weight:"500"},playNextCloseButtonColor:"#000000",borderRadius:"0"},videoInfo:{titleFont:{family:t0,size:ea(24),lineHeight:ea(30),weight:"800"},descriptionFont:{family:t1,size:ea(18),lineHeight:ea(26),weight:"400",letterSpacing:ea(.1)},tabletTitleFont:{family:t0,weight:"800",size:ea(26),lineHeight:ea(30)},tabletDescriptionFont:{family:t1,size:ea(18),lineHeight:ea(26),weight:"400",letterSpacing:ea(.1)}},videoMetadata:{durationFont:{family:t0,size:ea(13),lineHeight:ea(16),weight:"400",transform:"uppercase",letterSpacing:ea(.5)},publishedFont:{family:t0,size:ea(13),lineHeight:ea(16),weight:"400",transform:"uppercase",letterSpacing:ea(.5)}},replay:{replayFont:{family:t0,size:ea(16),lineHeight:ea(22),weight:"400"}},forwardButton:{borderRadius:"0",backgroundColor:i2,font:{family:t0,weight:"400",size:ea(16),lineHeight:ea(22)}}}},alfa:r1,bravo:r5,charlie:r4,nettavisen:r7};function r9({ref:e,...t}){let{playlist:i,video:n,aspectRatio:r,ads:a,onVideoChange:l,trackingMediaId:s,startType:o,initialAutoPlay:d,articlePublicationDate:h}=t,m=(0,c.useRef)({controls:T});(0,c.useImperativeHandle)(e,()=>({controls:m.current.controls}));let[g,v]=(0,c.useState)(new Set([]));(0,c.useEffect)(()=>{v(e=>n.id?new Set([...e,n.id]):e)},[n.id]);let f=i?.videos.filter(e=>!g.has(e.id)).slice(0,20);return"9:16"===r?(0,u.jsx)(tQ,{themes:r8,children:(0,u.jsx)(r0,{ref:m,ads:a,video:n,initialAutoPlay:d,initialMuted:!1,logoUrl:t.logoUrl,relatedVideos:f,playlistTitle:i?.title,onVideoChange:l,trackingMediaId:s,startType:o})}):(0,u.jsx)(tQ,{themes:r8,children:(0,u.jsx)(r$,{ref:m,video:n,ads:a,articlePublicationDate:h,initialAutoPlay:d,initialMuted:!1,relatedVideos:f,playlistTitle:i?.title,onVideoChange:l,trackingMediaId:s,startType:o})})}var ae=({theme:e,iconSet:t,locale:i,bidding:n,...r})=>(0,u.jsx)(K,{theme:e,children:(0,u.jsx)(S,{iconSet:t,children:(0,u.jsx)(Y,{locale:i,children:(0,u.jsx)(P,{bidding:n,product:"standalone_video",children:(0,u.jsx)(r9,{...r})})})})}),at=({theme:e,iconSet:t,locale:i,bidding:n,...r})=>(0,u.jsx)(K,{theme:e,children:(0,u.jsx)(S,{iconSet:t,children:(0,u.jsx)(Y,{locale:i,children:(0,u.jsx)(P,{bidding:n,product:"standard_video",children:(0,u.jsx)(rF,{...r})})})})}),ai="_controlButton_1rkxf_11",an=()=>(0,u.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("path",{d:"M3 3L21 21",stroke:"currentColor",strokeWidth:"2",strokeMiterlimit:"10"}),(0,u.jsx)("path",{d:"M3 21L21 3",stroke:"currentColor",strokeWidth:"2",strokeMiterlimit:"10"})]}),ar=()=>(0,u.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 2H9V22H3V2ZM15 2H21V22H15V2Z",fill:"currentColor"})}),aa=()=>(0,u.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,u.jsx)("path",{d:"M20 12L4 2V22L20 12Z",fill:"currentColor"})});function al({isPlaying:e,onPlay:t,onPause:i,onClose:n}){return(0,u.jsxs)("div",{className:"_container_1rkxf_1",children:[(0,u.jsx)("button",{type:"button",className:ai,onClick:e?i:t,children:e?(0,u.jsx)(ar,{}):(0,u.jsx)(aa,{})}),(0,u.jsx)("button",{type:"button",className:ai,onClick:n,children:(0,u.jsx)(an,{})})]})}var as={name:"ViaplayVideoPlayer",
9elements:{caption:{font:{family:t6,size:ea(12),weight:"500"},color:"#A1A1A1"}}},ao={name:"ViaplayVideoPlayer",elements:{caption:{font:{family:t6,size:ea(12),weight:"500"},color:"#A1A1A1"}}},ad={bt:{name:"ViaplayVideoPlayer",elements:{caption:{font:{family:t5,size:ea(12),weight:"500"},color:"#A1A1A1"}}},alfa:as,bravo:ao,charlie:{name:"ViaplayVideoPlayer",elements:{caption:{font:{family:t6,size:ea(12),weight:"500"},color:"#A1A1A1"}}},nettavisen:{name:"ViaplayVideoPlayer",elements:{caption:{font:{family:t4,size:ea(12),weight:"500"},color:"#A1A1A1"}}}},ac="https://embed.viaplay.com";function au({url:e,title:t}){let[i,n]=(0,c.useState)(null),r=(0,c.useRef)(null),a=(0,c.useRef)(void 0),[l,s]=(0,c.useState)(!1),[o,d]=(0,c.useState)(!1),{entry:h}=tV(i,{root:null,rootMargin:"0%",threshold:.2}),m=(0,c.useMemo)(()=>"u">typeof window?window.matchMedia(ei).matches:void 0,[])?e.replace("autoplay=true",""):e,g=!!h&&!h.isIntersecting&&(l||o),v=(0,c.useCallback)(()=>{r.current?.contentWindow?.postMessage("player.pause",ac)},[]),f=(0,c.useCallback)(()=>{r.current?.contentWindow?.postMessage("player.play",ac)},[]),p=(0,c.useCallback)(()=>{s(!1),d(!1),v()},[v]);return(0,c.useEffect)(()=>{let e=e=>{if(e.origin.includes(ac))switch(e.data){case"player.paused":s(!1),g&&d(!0);return;case"player.started":clearTimeout(a.current),s(!0),d(!1);return;case"player.ended":a.current=setTimeout(p,1e3)}};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[g,p]),(0,u.jsx)(tQ,{themes:ad,children:(0,u.jsxs)("figure",{className:"_figure_tm47s_38",children:[(0,u.jsx)("div",{ref:n,className:"_container_tm47s_1",children:(0,u.jsxs)("div",{className:er("_innerContainer_tm47s_5",V),"data-floating":g,children:[(0,u.jsx)("iframe",{ref:r,src:m,title:"Viaplay",allowFullScreen:!0}),g&&(0,u.jsx)(al,{isPlaying:l,onPlay:f,onPause:v,onClose:p})]})}),(0,u.jsx)("figcaption",{className:"_caption_tm47s_42",children:t})]})})}var ah=({theme:e,iconSet:t,...i})=>(0,u.jsx)(K,{theme:e,children:(0,u.jsx)(S,{iconSet:t,children:(0,u.jsx)(au,{...i})})});function am(e){let{video:t,onClick:i,trackingClass:n}=e,r=m(t.teaserImages.find(g),{maxWidth:200});return(0,u.jsxs)("button",{type:"button",className:er("_container_zz8tr_1",n),onClick:()=>i?.(t),children:[(0,u.jsx)("div",{className:"_thumbnailWrapper_zz8tr_29",children:(0,u.jsx)("div",{className:"_thumbnail_zz8tr_17",style:{backgroundImage:`url(${r})`},children:(0,u.jsx)(nS,{})})}),(0,u.jsx)("span",{className:"_title_zz8tr_61",children:t.title})]})}function ag(e){let{children:t}=e,[i,n]=(0,c.useState)(null),[r,a]=(0,c.useState)(!0),[l,s]=(0,c.useState)(!1),[o,d]=(0,c.useState)(!1);return(0,u.jsxs)("div",{className:"_container_6zpjh_1",onMouseEnter:()=>{d(!0)},onMouseLeave:()=>{d(!1)},children:[(0,u.jsx)("div",{className:"_wrapper_6zpjh_5",children:(0,u.jsx)("div",{className:"_track_6zpjh_10",onScroll:()=>{i&&(a(0===i.scrollLeft),s(i.scrollLeft>=i.scrollWidth-i.offsetWidth))},ref:n,children:(0,u.jsx)("ul",{className:"_list_6zpjh_21",children:c.Children.toArray(t).map((e,t)=>(0,u.jsx)("li",{className:"_item_6zpjh_30",children:e},t))})})}),(0,u.jsx)("button",{type:"button",className:er("_previousButton_6zpjh_46","sp_video_related-videos_slider_prev"),"data-is-visible":o&&!r,onClick:()=>{i&&(i.scrollLeft-=i.offsetWidth)},children:(0,u.jsx)("div",{className:"_previousIcon_6zpjh_101",children:(0,u.jsx)(eF,{size:ec.Medium})})}),(0,u.jsx)("button",{type:"button",className:er("_nextButton_6zpjh_72","sp_video_related-videos_slider_next"),"data-is-visible":o&&!l,onClick:()=>{i&&(i.scrollLeft+=i.getBoundingClientRect().width)},children:(0,u.jsx)("div",{className:"_nextIcon_6zpjh_97",children:(0,u.jsx)(eF,{size:ec.Medium})})})]})}var av={name:"RelatedVideos",elements:{teaserTitle:{font:{family:t6,weight:"600",size:ea(13),lineHeight:ea(17)},color:"#767676"}}},af={name:"RelatedVideos",elements:{teaserTitle:{font:{family:tJ,weight:"500",size:ea(13),lineHeight:ea(17)},color:"#626262"}}},ap={name:"RelatedVideos",elements:{teaserTitle:{font:{family:t6,weight:"600",size:ea(13),lineHeight:ea(17)},color:"#767676"}}},aw={name:"RelatedVideos",elements:{teaserTitle:{font:{family:t5,weight:"600",size:ea(13),lineHeight:ea(17)},color:"#767676"}}},ay={name:"RelatedVideos",elements:{teaserTitle:{font:{family:t6,weight:"600",size:ea(13),lineHeight:ea(17)},color:"#767676"}}},aA={name:"RelatedVideos",elements:{teaserTitle:{font:{family:t2,weight:"700",size:ea(13),lineHeight:ea(17)},color:"#777777"}}},ax={name:"RelatedVideos",elements:{teaserTitle:{font:{family:t4,weight:"600",size:ea(13),lineHeight:ea(17)},color:"#767676"}}},a_={berlingske:af,bt:aw,euroinvestor:aA,weekendavisen:{name:"RelatedVideos",elements:{teaserTitle:{font:{family:t0,weight:"500",size:ea(13),lineHeight:ea(17)},color:"#343434"}}},alfa:av,bravo:ap,charlie:ay,nettavisen:ax},ab=e=>{let{playlist:t,onPlayVideo:i}=e,[n,r]=(0,c.useState)(new Set),a=t.videos.filter(e=>!n.has(e.id));return a?(0,u.jsx)(tQ,{themes:a_,children:(0,u.jsx)("div",{className:"_container_e8i0z_1",children:(0,u.jsx)(ag,{children:a.map((e,t)=>(0,u.jsx)(am,{video:e,onClick:()=>{r(t=>new Set(t).add(e.id)),i(e,"nextmanual")},trackingClass:`sp_video_related_videos_${t+1}`},e.id))})})}):null},aE=({theme:e,iconSet:t,...i})=>(0,u.jsx)(K,{theme:e,children:(0,u.jsx)(S,{iconSet:t,children:(0,u.jsx)(ab,{...i})})}),aj=()=>(0,u.jsx)(u.Fragment,{children:(0,u.jsx)("script",{defer:!0,src:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"},"video-imasdk")})}}]);
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.