1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2858],{18550:(e,t,r)=>{r.d(t,{I:()=>y,H:()=>g});var n=r(92999),o=r(38360),l=r(5530),a=r(40965),i=r(81279);let s=e=>{let t=("string"!=typeof e?e.loc&&e.loc.source.body||(0,i.y)(e):e).replace(/([\s,]|#[^\n\r]+)+/g," ").trim();return"string"==typeof e||e.loc||(e.loc={start:0,end:t.length,source:{body:t,name:"gql",locationOffset:{line:1,column:1}}}),t},u=(e,t)=>{e|=0;for(let r=0,n=0|t.length;r<n;r++)e=(e<<5)+e+t.charCodeAt(r);return e},d=new Map;function c(e){return"OperationDefinition"===e.kind}let f=e=>"string"==typeof e?new a.eO(e,{}):"object"==typeof e&&e.message?new a.eO(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:e.path,originalError:e,extensions:e.extensions||{}}):e;class v extends Error{toString(){return this.message}constructor({networkError:e,graphQLErrors:t,response:r}){const n=(t||[]).map(f),o=((e,t)=>{let r="";return null!=e?r="[Network] ".concat(e.message):(null!=t&&t.forEach(e=>{r+="[GraphQL] ".concat(null==e?void 0:e.message,"\n")}),r.trim())})(e,n);super(o),this.name="CombinedError",this.message=o,this.graphQLErrors=n,this.networkError=e,this.response=r}}function h(e,t){var r,n,o,l,a,i,f;let v,h,m,p;return r=e.query,n=e.variables,o=e.headers,n||(n={}),l=r,a=t,h=null==(i=l.definitions)?void 0:i.find(c),a&&(null==h||null==(f=h.name)?void 0:f.value)&&!h.name.value.startsWith(a)&&(h.name.value="".concat(a).concat(h.name.value)),m=l.__key||u(5381,s(l))>>>0,(p=d.get(m))||(l.loc||s(l),l.__key=m,p=l,d.set(m,p)),{key:u((v=p).__key,JSON.stringify({vars:n,headers:o}))>>>0,query:v,variables:n,headers:o}}let m=new Map;function p(e,t,r,n){let o=0,a="network-only"!==r,i=()=>t.getHeaders().then(r=>{let o=()=>{var o,a,i;return o={...r,...e.headers},(null!=(a=t.fetcher)?a:fetch)(t.url,{signal:null==n?void 0:n.signal,method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",...o},body:JSON.stringify({operationName:(e=>{for(let t=0,r=e.definitions.length;t<r;t+=1){let r=e.definitions[t];if(r.kind===l.b.OPERATION_DEFINITION&&r.name)return r.name.value}})(e.query),query:null==(i=e.query.loc)?void 0:i.source.body,variables:e.variables})}).then(e=>e.json().then(t=>({response:e,data:t,networkError:null}))).catch(e=>({networkError:e,response:null,data:null}))};return a&&1?function(e,t){let r=m.get(e);if(r)return r;let n=t();return m.set(e,n),n.then(()=>{m.delete(e)}),n}(e.key,o):o()}).then(r=>{var n;let l=function(e,t,r){var n,o,l;if(!r&&(!("data"in e)&&!("errors"in e||"error"in e)||"path"in e))throw Error("No Content");let a=Array.isArray(null==e?void 0:e.errors)?e.errors:Array.isArray(null==e||null==(n=e.data)?void 0:n.errors)?null==(o=e.data)?void 0:o.errors:void 0;return(null==a||null==(l=a[0].extensions)?void 0:l.code)==="404"?{data:void 0,error:void 0}:(e&&"error"in e&&(r=Error(e.error)),{data:null==e?void 0:e.data,error:r||a?new v({graphQLErrors:a,networkError:r,response:t}):void 0})}(r.data,r.response,r.networkError);if(a&&l.data&&!l.error)t.cache.set(e.key,l.data);else if(l.error&&!l.data&&(null==(n=t.shouldRetry)?void 0:n.call(t,l,o)))return o+=1,new Promise(e=>{setTimeout(e,200)}).then(i);return l});return i()}function y(e){var t;let r=(0,n.useContext)(o.v),l=k(e,null==r?void 0:r.operationPrefix);if(!r)throw Error("QueryClientContext not found");let a=null!=(t=e.requestPolicy)?t:"cache-and-network",i="network-only"===a?void 0:r.cache.get(l.key),s=!1!==r.isOnline&&!1!==r.ready&&!1!==e.ready,u=!!(e.pause||"cache-only"===a||i&&"cache-first"===a||i&&!r.isOnline),[d,c]=(0,n.useState)(!u),[[f,v],m]=(0,n.use
1State)([{data:i,error:void 0},e.variables]),y=(0,n.useRef)(void 0),g=y.current;f.data&&(y.current=f.data),(0,n.useEffect)(()=>{if(u||(m([{data:void 0,error:void 0},l.variables]),c(!0),!s))return;let e=!1;return p(l,r,a).then(t=>{e||(m([t,l.variables]),c(!1))}),()=>{e=!0}},[a,r,l,u,s]);let b=(0,n.useCallback)(e=>{c(!0);let t=l;if(e){var n;let o={...null!=(n=l.headers)?n:{}};for(let t of Object.keys(e)){let r=e[t];null==r?delete o[t]:o[t]=r}t=h({query:l.query,variables:l.variables,headers:o},r.operationPrefix)}return p(t,r,a).then(e=>(m([e,l.variables]),c(!1),e))},[l,r,a]),C=null!=i?i:f.data,x=i?void 0:f.error;return(0,n.useMemo)(()=>({resultVariables:v,fetching:d,data:C,previousData:g,error:x,refetch:b}),[d,C,g,x,b,v])}function g(e){let t=(0,n.useContext)(o.v),r=k(e,null==t?void 0:t.operationPrefix);if(!t)throw Error("QueryClientContext not found");return(0,n.useCallback)((e,n)=>p(e?h({headers:{...r.headers,...n},query:r.query,variables:{...r.variables,...e}},t.operationPrefix):r,t,"network-only"),[r,t])}function k(e,t){let r=(0,n.useRef)(void 0);return(0,n.useMemo)(()=>{let n=h(e,t);return void 0!==r.current&&r.current.key===n.key?r.current:(r.current=n,n)},[e,t])}},38360:(e,t,r)=>{r.d(t,{H:()=>l,v:()=>o});var n=r(45807);let o=(0,r(92999).createContext)(void 0),l=e=>{let{children:t,client:r}=e;return(0,n.jsx)(o.Provider,{value:r,children:t})}},39895:(e,t,r)=>{r.d(t,{N:()=>s,o:()=>u});var n=r(18550),o=r(92999),l=r(92766),a=r(49577);function i(e,t){let r=(0,l.E)(),n=t?{...e,"Client-Platform-User-Profile":t}:e;return r&&n&&(n["client-platform-adobe-visitor"]=JSON.stringify(r)),n}function s(e){var t;let{completed:r,profile:o}=(0,a.F)().profile,l=i(e.headers,null==o?void 0:o.profileToken);return(0,n.I)({...e,ready:r&&(null==(t=e.ready)||t),headers:l})}
1function u(e){let{completed:t,profile:r}=(0,a.F)().profile,l=(0,n.H)(e),s=(0,o.useRef)(e.headers);s.current=e.headers;let u=null==r?void 0:r.profileToken;return{execute:(0,o.useCallback)(e=>l(e,i(s.current,u)),[l,u]),ready:t}}},54543:(e,t,r)=>{r.d(t,{$I:()=>u,nz:()=>s,pP:()=>a,uF:()=>i});var n=r(45807),o=r(92999);let l=(0,o.createContext)({modifications:null,setModifications:()=>()=>{}});function a(e){let{children:t}=e,[r,a]=(0,o.useState)(null),i=(0,o.useCallback)(e=>a(t=>({...t,...e})),[]),s=(0,o.useMemo)(()=>({modifications:r,setModifications:i}),[r,i]);return(0,n.jsx)(l.Provider,{value:s,children:t})}function i(){let{setModifications:e}=(0,o.useContext)(l);return e}function s(e){let{setModifications:t,modifications:r}=(0,o.useContext)(l);return((0,o.useEffect)(()=>(t(e),()=>t(null)),[e,t]),"id"in e&&(null==r?void 0:r.id)!==e.id)?e:null!=r?r:e}function u(){return(0,o.useContext)(l)}},60528:(e,t,r)=>{r.d(t,{X:()=>d,z:()=>f});var n=r(45807),o=r(92999),l=r(38360),a=r(86713),i=r(54543);let s=[],u=(0,o.createContext)({isAdmin:!1,enable:!1,emulateLogout:e=>{},panels:[]});function d(e){var t,r,o;let{children:l,panels:i}=e,s=(0,a.Jd)();return(o=null!=(t=null==(r=s.user)?void 0:r.email)?t:"").endsWith("@tv2.dk")||o.startsWith("testlab")||["[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]"].includes(o)?(0,n.jsx)(c,{user:s,panels:i,children:l}):(0,n.jsx)(n.Fragment,{children:l})}function c(e){let{children:t,user:r,panels:d}=e,[c,f]=(0,o.useState)(!1),[v,h]=(0,o.useState)(!1),m=(0,o.useContext)(l.v);(0,o.useEffect)(()=>{f("true"===localStorage.getItem("adminpanel"))},[]),(0,o.useEffect)(()=>{let e=e=>{for(s.push(e.key);s.length>6;)s.shift();"040422"===s.join("")&&f(e=>(localStorage.setItem("adminpanel","".concat(!e)),!e))};return window.addEventListener("keydown",e,!1),()=>window.removeEventListener("keydown",e)});let p=(0,o.useMemo)(()=>({isAdmin:c,enable:c,emulateLogout:e=>{null==m||m.cache.clearCache(),h(e)},panels:d}),[c,d,null==m?void 0:m.cache]),y=(0,o.useMemo)(()=>v?{...r,user:null,accessToken:null,ssrLoggedInHint:!1}:r,[v,r]);return(0,n.jsx)(i.pP,{children:(0,n.jsx)(a.Rs.Provider,{value:y,children:(0,n.jsx)(u.Provider,{value:p,children:t})})})}function f(){return(0,o.useContext)(u)}},92766:(e,t,r)=>{r.d(t,{E:()=>s});var n=r(23909),o=r.n(n),l=r(65332);let a=null,i="86CA2B31536B6DE60A490D4C%40AdobeOrg";function s(){if(a)return a;let e=(0,l.R)("AMCV_".concat(i));if(e&&(null==(a=new(o())(i,e).getVisitorValues())?void 0:a.MCMID))return a.MCMID=a.MCMID.toString(),a}}}]); 2//# sourceMappingURL=2858-24b446ae6bd00789.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.