1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5698],{26635:(e,i,n)=>{n.d(i,{TU:()=>r,U9:()=>d,_6:()=>c,hn:()=>o});var t=n(90929),a=n(70771),s=n(64695);class r{static register(e){return new v({registerInstance:r.registerInstance},e)}static addInstance(e){return new h({registerInstance:r.registerInstance},e)}static getRequired(e){let i=this.get(e);if(null===i)throw Error("No service registered for requested type");return i}static registerInstance(e,i){var n,t,a;if("function"==typeof e){if(!("serviceType"in e))throw Error("Service ".concat(e.name," does not have a serviceType. If a class add the @Service decorator."));if(null==(n=r.services.get(i.serviceType))?void 0:n.includes(i))return void console.warn("Service ".concat(e.toString()," already registered, ignoring"));r.services.set(i.serviceType,i)}else if("serviceType"in e){if(null==(t=r.services.get(e.serviceType))?void 0:t.includes(i))return void console.warn("Service ".concat(e.toString()," already registered, ignoring"));r.services.set(e.serviceType,i)}else if("multicastServiceType"in e){let n=null!=(a=r.multicastServices.get(e.multicastServiceType))?a:[];n.push(i),r.multicastServices.set(e.multicastServiceType,n)}}static get(e){if("multicastServiceType"in e){var i;return null!=(i=this.multicastServices.get(e.multicastServiceType))?i:[]}let n=this.services.get(e.serviceType);return null!=n?n:null}static reset(){this.services.clear(),this.multicastServices.clear(),this.config.clear()}static get config(){return l}}r.services=new Map,r.multicastServices=new Map;class l{static get(e){let i=this.configs.get(e.name);return null!=i?i:e.defaultValue}static set(e,i){this.configs.set(e.name,i)}static setFromObject(e){Object.keys(e).forEach(i=>{this.configs.set(i,e[i])})}static getAll(){let e={};return this.configs.forEach((i,n)=>{e[n]=i}),e}static clear(){this.configs.clear()}}function d(){return{serviceType:Symbol("createServiceType")}}function c(){return{multicastServiceType:Symbol("createMulticastServiceType")}}function o(e,i){return{name:e,...i}}l.configs=new Map;var u=new WeakMap,m=new WeakMap;class v{constructor(e,i){(0,a._)(this,u,{writable:!0,value:void 0}),(0,a._)(this,m,{writable:!0,value:void 0}),this.instance=e=>((0,t._)(this,m).registerInstance((0,t._)(this,u),e),this),(0,s._)(this,u,i),(0,s._)(this,m,e)}}var k=new WeakMap,p=new WeakMap;class h{constructor(e,i){(0,a._)(this,k,{writable:!0,value:void 0}),(0,a._)(this,p,{writable:!0,value:void 0}),this.as=e=>((0,t._)(this,p).registerInstance(e,(0,t._)(this,k)),this),(0,s._)(this,k,i),(0,s._)(this,p,e)}}},55698:(e,i,n)=>{n.d(i,{LiteProviders:()=>ea,MainProviders:()=>es});var t=n(45807),a=n(92999),s=n(22586);let r=(0,a.createContext)({experiments:void 0,loading:!1});function l(e){let{children:i,config:n}=e,l=function(e){let[i,n]=(0,a.useReducer)(d,{loading:!0,experiments:[]});return(0,a.useEffect)(()=>{let i=!0;return(0,s.V2)().catch(()=>{i&&n({type:"consent"})}),(0,s.Zb)().then(()=>{window.adobe.target.getOffer({mbox:e,params:{},success:e=>n({type:"success",payload:e}),error:()=>n({type:"error"}),timeout:1e3})}).catch(()=>n({type:"error"})),()=>{i=!1}},[e]),i}(window.location.pathname);return(0,t.jsx)(r.Provider,{value:l,children:i})}function d(e,i){switch(i.type){case"success":return{loading:!1,experiments:i.payload.filter(e=>"setJson"===e.action).map(e=>e.content).flat()};case"error":return{loading:!1,experiments:[]};case"consent":return{loading:!1};default:throw Error()}}var c=n(82464),o=n(44554),u=n(74656);let m=e=>{let{close:i}=e;return(0,t.jsx)("div",{className:"deck bg-semantic-warning text-midnight",children:(0,t.jsxs)("div",{className:" py-3 w-col-12 flex justify-between items-start 1440:items-center min-h-[64px]",children:[(0,t.jsx)("div",{className:"text-legacy-body-s w-[95%]",children:"Det, du er p\xe5 udkig efter, findes ikke l\xe6ngere p\xe5 TV 2 Play. M\xe5ske kan du finde et alternativ her i stedet?"}),(0,t.jsx)("div",{onClick:i,className:"flex rounded-full h-8 w-8 1440:h-10 1440:w-10 bg-midnight justify-center items-center cursor-pointer",children:(0,t.jsx)(u.f,{"aria-label":"luk","data-testid":"close",className:"w-5 h-5"})})]})})};function v(e){let{path:i}=e,[n,s]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{s("#expired-content"===window.location.hash)},[i]),n?(0,t.jsx)(m,{close:()=>{s(!1)}}):null}var k=n(84610),p=n(21439),h=n(72877),f=n(97580),g=n(88864),x=n(83662),y=n(96655);let N=e=>{let{children:i}=e,{messages:n}=(0,h.S)(),[s,r]=(0,a.useState)(!1),l=(0,p.useRouter)(),d=(0,x.o)();return((0,a.useEffect)(()=>{n.length>0&&r(!0)},[n]),s)?(0,t.jsxs)(t.Fragment,{children:[i,(0,t.jsx)(S,{messages:n,dismissInfoBox:function(){d({data:{label:"profiles.onboarding.dismiss"}}),r(!1)},goToProfile:function(){d({data:{label:"profiles.onboarding.tilpas-profiler"}}),r(!1),l.push("/profil")}})]}):(0,t.jsx)(t.Fragment,{children:i})};function S(e){let{messages:i,dismissInfoBox:n,goToProfile:a}=e;return(0,g.w)({data:{overlay:["profile:onboarding"],headline:i[0]}}),(0,t.jsx)(y.A,{onClose:()=>n(),children:(0,t.jsxs)("div",{className:"relative flex flex-col my-0 mx-auto w-full w-max-[640px] w-max-[min(93vw, 640px)]",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{role:"button",onKeyDown:()=>n(),onClick:()=>n(),tabIndex:0,title:"Luk info",className:"flex justify-center items-center cursor-pointer w-[40px] h-[40p
1x] z-[3] absolute overflow-visible top-3 right-3",children:(0,t.jsx)(f._,{className:"invert w-5 h-5"})}),(0,t.jsx)("img",{className:"w-full",src:"/assets/images/onboarding.png",alt:"presentation"})]}),(0,t.jsxs)("div",{className:"px-10 pb-10 pt-6 bg-midnight",children:[(0,t.jsxs)("section",{className:" text-white",children:[(0,t.jsx)("h3",{className:"text-subheadline-s pb-5 flex",children:i[0]}),(0,t.jsx)("div",{className:"pb-10",children:i[1]})]}),(0,t.jsxs)("section",{className:"flex justify-center gap-4",children:[(0,t.jsx)(k.$,{color:"secondary",darkMode:!0,onClick:n,children:"Senere"}),(0,t.jsx)(k.$,{color:"primary",darkMode:!0,onClick:a,children:"Tilpas profiler"})]})]})]})})}var b=n(28058),w=n(86713),j=n(97215),T=n(59601),F=n(52779),_=n(60528);let I=(0,a.lazy)(()=>Promise.resolve().then(n.bind(n,78671))),C=(0,j.h)();function E(){let{enable:e,isAdmin:i}=(0,_.z)(),n=(0,F.tN)();return e&&n?(0,t.jsx)(a.Suspense,{fallback:null,children:(0,t.jsx)(w.vu,{ssrLoggedInHint:!0,children:(0,t.jsx)(T.H,{apiUrl:C.API_URL,isAdmin:i,children:(0,t.jsx)(I,{})})})}):null}var P=n(74941);function D(e){let{apiUrl:i,children:n}=e,{isAdmin:a}=(0,_.z)();return(0,t.jsx)(T.H,{apiUrl:i,isAdmin:a,children:n})}var O=n(9775),q=n(18550);let L={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CustomerType"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"customerType"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"products"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"providerId"}},{kind:"Field",name:{kind:"Name",value:"providerType"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"subscriptionTracking"}}]}}]}}]};function A(e){let{children:i}=e,n=R();return(0,t.jsx)(O.T_,{customerType:n,children:i})}let M={loading:!1,hasActiveSubscription:!1,subscriptionTracking:{},subscriptions:[],updateCardRelevant:!1},R=()=>{var e,i;let n=(0,w.bG)(),t=(0,q.I)({pause:"LOGGED_IN"!==n,query:L,requestPolicy:"cache-first"});if(t.error||"NOT_LOGGED_IN"===n)return M;if((null==t?void 0:t.fetching)||!t.data)return{...M,loading:!0};let{customerType:a}=t.data;if(!a)return M;let s=(null==(e=a.products)?void 0:e.length)>0,r=null==(i=a.products)?void 0:i.some(e=>"DTC"===e.providerType);return{loading:!1,hasActiveSubscription:s,subscriptions:a.products,subscriptionTracking:a.subscriptionTracking||{},updateCardRelevant:r}};var U=n(55656);let V={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Subscription"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"now"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"primaryUserSubscription"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addons"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"product"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"trial"}},{kind:"Field",name:{kind:"Name",value:"nextPaymentTime"}},{kind:"Field",name:{kind:"Name",value:"lastPaymentTime"}},{kind:"Field",name:{kind:"Name",value:"isInContract"}},{kind:"Field",name:{kind:"Name",value:"product"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}}]}},{kind:"Field",name:{kind:"Name",value:"alert"},arguments:[{kind:"Argument",name:{kind:"Name",value:"now"},value:{kind:"Variable",name:{kind:"Name",value:"now"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"subTitle"}},{kind:"Field",name:{kind:"Name",value:"displayOnEveryVisit"}},{kind:"Field",name:{kind:"Name",value:"uid"}},{kind:"Field",name:{kind:"Name",value:"onCloseDate"}},{kind:"Field",name:{kind:"Name",value:"tracking"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"}},{kind:"Field",name:{kind:"Name",value:"detail"}}]}},{kind:"Field",name:{kind:"Name",value:"buttons"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"text"}},{kind:"Field",name:{kind:"Name",value:"hideOnClick"}},{kind:"Field",name:{kind:"Name",value:"actionType"}},{kind:"Field",name:{kind:"Name",value:"actionValue"}},{kind:"Field",name:{kind:"Name",value:"color"}},{kind:"Field",name:{kind:"Name",value:"theme"}},{kind:"Field",name:{kind:"Name",value:"tracking"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"identifier"}},{kind:"Field",name:{kind:"Name",value:"detail"}}]}}]}}]}}]}}]}}]};function W(e){let{children:i}=e,n=G();return(0,t.jsx)(U.kn,{subscription:n,children:i})}let G=()=>{var e;let i=new Date((0,b.fH)()).toISOString().substring(0,10),n=(0,w.DB)(),{data:t,fetching:a}=(0,q.I)({pause:!n,query:V,variables:{now:i},requestPolicy:"cache-first"});return{loading:a,subscription:null!=(e=null==t?void 0:t.primaryUserSubscription)?e:null}};var H=n(21910),z=n(78671),B=n(39525),K=n(27409),$=n(22774),J=n(26635);let X=(0,J.U9)(),Z=!1;function Q(e){if(Z)return void $.yf.setTrackingConsent(e?"granted":"not-granted");Z=!0;let i=(0,j.h)();$.yf.init({clientToken:i.DATADOG_CLIENT_TOKEN,site:"datadoghq.eu",service:"pwbs.offspring",forwardErrorsToLogs:!0,sessionSampleRate:1,version:i.APP_VERSION,env:"prod",trackingConsent:e?"granted":"not-granted",beforeSend:e=>{var i,n,t,a,s,r,l;return!((null==(i=e.message)?void 0:i.startsWith("xhrRequest"))||(null==(n=e.message)?void 0:n.startsWith("Failed to fetch"))||(null==(t=e.message)?void 0:t.startsWith("Fetch error GET"))||(null==(a=e.message)?void 0:a.startsWith("Fetch error POST"))||(null==(s=e.message)?void 0:s.startsWith("Network request failed"))||(null==(r=e.message)?void 0:r.startsWith("The user aborted a request")))&&"Aborted"!==e.message&&(e.metadata=null==(l=J.TU.get(X))?void 0:l.getMetadata(),!0)}})}var Y=n(49577);function ee(e){let{children:i}=e,n=(0,P.k)(),{actions:a}=(0,h.S)();return(0,t.jsx)(Y.A,{profile:n,actions:a,profiles:n.profiles,children:i})}let ei=(0,j.h)(),{COOKIE_BOT_URL:en}=ei,et=e=>{let{children:i}=e;return(0,t.jsx)("div",{className:"layout-12-12-8 576:layout-32-32-8 768:layout-64-64-8 992:layout-64-64-16 1920:layout-96-96-16",children:i})};function ea(e){let{children:i,path:n}=e;return(0,t.jsx)(F.nI,{path:n,children:(0,t.jsx)(c.V,{updateMinutes:2,path:n,children:(0,t.jsx)(et,{children:i})})})}function es(e){var i,n;let{children:s,path:r,environment:d,disableFallbackRedirect:u}=e;return(0,a.useEffect)(()=>{let e=e=>{e.preventDefault(),e.platforms.includes("play")&&document.addEventListener("click",()=>{e.prompt()},{once:!0})};return window.addEventListener("beforeinstallprompt",e),()=>window.removeEventListener("beforeinstallprompt",e)},[]),(0,a.useEffect)(()=>(0,o.e)(),[]),(0,t.jsx)(K.sq,{scriptUrl:en,children:(0,t.jsx)(H.qB,{children:(0,t.jsx)(b.nj,{override:null==d?void 0:d.overrideNow,init:null==d?void 0:d.now,children:(0,t.jsx)(F.nI,{path:r,children:(0,t.jsx)(w.vu,{ssrLoggedInHint:null==(i=null==d?void 0:d.ssrLoggedInHint)||i,children:(0,t.jsx)(_.X,{panels:[...z.PCSPanels],children:(0,t.jsx)(D,{apiUrl:ei.API_URL,children:(0,t.jsx)(A,{children:(0,t.jsx)(W,{children:(0,t.jsx)(P.H,{isParentalControlled:null!=(n=null==d?void 0:d.isParentalControlled)&&n,children:(0,t.jsx)(ee,{children:(0,t.jsx)(N,{children:(0,t.jsx)(l,{children:(0,t.jsx)(c.V,{path:r,disableRedirect:u,children:(0,t.jsxs)(et,{children:[(0,t.jsx)(E,{}),(0,t.jsxs)(B.qK,{children:[(0,t.jsx)(v,{path:r}),s]})]})})})})})})})})})})})})})})})}Q(!1),window.addEventListener("CookiebotOnConsentReady",()=>{Q(window.Cookiebot.consent.statistics)})}}]); 2//# sourceMappingURL=5698-d7383c6dfca17ff7.js.map
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.