1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4695],{1415:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>J});var c,r,i,n,l,a,o,u,d=t(95155),m=t(12115),p=t(2834),x=t(87851),f=t(65917),h=t(76981),b=t(73696),j=t(49772),w=t(33043),v=t(3357),g=t(14051),_=t.n(g);function N(){return(N=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var c in t)({}).hasOwnProperty.call(t,c)&&(e[c]=t[c])}return e}).apply(null,arguments)}var k=function(e){return m.createElement("svg",N({xmlns:"http://www.w3.org/2000/svg",width:30,height:30,fill:"none"},e),c||(c=m.createElement("path",{fill:"#E00",fillRule:"evenodd",d:"M4.15 11.154c1.3-2.48 3.6-4.32 6.3-5.16L9.3 7.334a.999.999 0 1 0 1.52 1.3l3.78-4.38-5-2.78a.994.994 0 0 0-1.36.39c-.27.48-.1 1.08.39 1.35l1.46.82c-3.3.96-6.12 3.17-7.71 6.19a11.86 11.86 0 0 0-1.36 6.27c.03.53.47.94 1 .94h.06c.55-.03.97-.51.94-1.06a9.9 9.9 0 0 1 1.13-5.22m15.45 13.81a11 11 0 0 1-5.87 1.69h-.03c-1.69 0-3.32-.38-4.84-1.12a10.4 10.4 0 0 1-2.59-1.8l1.97.34c.54.09 1.06-.27 1.16-.81s-.27-1.06-.81-1.16l-5.75-1-.06 5.54c-.01.55.44 1 .99 1.01h.01a1 1 0 0 0 1-.99l.02-1.58c.95.9 2.01 1.67 3.19 2.25 1.79.88 3.71 1.32 5.71 1.32h.03c2.46 0 4.85-.69 6.93-2 .47-.29.61-.91.31-1.38-.29-.46-.9-.6-1.37-.31m7.89-7.28c.47-.28 1.08-.13 1.37.34.28.47.13 1.08-.33 1.37l-4.81 2.92-2.25-5.2c-.22-.5.01-1.09.52-1.31.5-.22 1.09.01 1.31.52l.82 1.9c.2-.8.31-1.61.31-2.44 0-3.9-2.25-7.42-5.88-9.18-.49-.24-.7-.84-.46-1.34.24-.49.84-.7 1.34-.46 4.32 2.1 7 6.31 7 10.98 0 .93-.11 1.85-.32 2.74z",clipRule:"evenodd"})))};function E(){return(E=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var c in t)({}).hasOwnProperty.call(t,c)&&(e[c]=t[c])}return e}).apply(null,arguments)}new t.U(t(58748)).toString();var A=function(e){return m.createElement("svg",E({xmlns:"http://www.w3.org/2000/svg",width:20,height:30,fill:"none"},e),r||(r=m.createElement("path",{fill:"#E00",fillRule:"evenodd",d:"M18 1c-.55 0-1 .45-1 1v26c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1M2 17c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1s1-.45 1-1V18c0-.55-.45-1-1-1m7-7c0-.55.45-1 1-1s1 .45 1 1v18c0 .55-.45 1-1 1s-1-.45-1-1z",clipRule:"evenodd"})))};function y(){return(y=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var c in t)({}).hasOwnProperty.call(t,c)&&(e[c]=t[c])}return e}).apply(null,arguments)}new t.U(t(61915)).toString();var C=function(e){return m.createElement("svg",y({xmlns:"http://www.w3.org/2000/svg",width:30,height:30,fill:"none"},e),i||(i=m.createElement("path",{fill:"#E00",fillRule:"evenodd",d:"m26.362 3.39.25.25c3.18 3.18 3.18 8.35.01 11.51l-3.11 3.11c-.2.19-.45.29-.71.29a.996.996 0 0 1-.71-1.7l3.11-3.11c2.4-2.39 2.4-6.28.01-8.68l-.26-.26a6.1 6.1 0 0 0-4.34-1.8h-.01c-1.63 0-3.17.64-4.34 1.79l-3.12 3.12a.996.996 0 1 1-1.41-1.41l3.11-3.11A8.08 8.08 0 0 1 20.602 1h.01c2.18 0 4.22.85 5.75 2.39M13.732 25.2l3.12-3.12a.996.996 0 0 1 1.41.02c.39.39.39 1.02 0 1.41l-3.11 3.11A8.12 8.12 0 0 1 9.392 29c-2.08 0-4.17-.8-5.75-2.38l-.25-.25a8.1 8.1 0 0 1-2.39-5.77c0-2.18.85-4.22 2.39-5.75l3.11-3.11a.996.996 0 1 1 1.41 1.41l-3.11 3.11a6.1 6.1 0 0 0-1.8 4.34c0 1.64.63 3.18 1.79 4.33l.26.26c2.39 2.4 6.28 2.4 8.68.01",clipRule:"evenodd"})))};function O(){return(O=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var c in t)({}).hasOwnProperty.call(t,c)&&(e[c]=t[c])}return e}).apply(null,arguments)}new t.U(t(99610)).toString();var S=function(e){return m.createElement("svg",O({xmlns:"http://www.w3.org/2000/svg",width:30,height:30,fill:"none",viewBox:"0 0 30 30"},e),n||(n=m.createElement("path",{fill:"#E00",fillRule:"evenodd",d:"M14.35 1.057A1 1 0 0 1 14.684 1h.144a1 1 0 0 1 .331.056l10.737 3.768a1 1 0 0 1 .67.944v8.08c0 1.724-.654 3.444-1.575 5.027-.925 1.59-2.162 3.115-3.43 4.466-2.537 2.7-5.288 4.802-6.184 5.463a1 1 0 0 1-1.188 0c-.895-.66-3.646-2.762-6.183-5.463-1.268-1.351-2.506-2.875-3.431-4.466C3.654 17.292 3 15.572 3 13.848v-8.08a1 1 0 0 1 .667-.943zm.406 1.978 9.8
108 3.442v7.371c0 1.233-.475 2.598-1.302 4.021-.823 1.415-1.953 2.816-3.16 4.102-2 2.129-4.15 3.877-5.32 4.776-1.169-.899-3.32-2.647-5.319-4.776-1.208-1.286-2.338-2.687-3.16-4.102C5.475 16.446 5 15.081 5 13.85V6.475z",clipRule:"evenodd"})),l||(l=m.createElement("path",{fill:"#E00",fillRule:"evenodd",d:"M20.48 10.214a1 1 0 0 1 .168 1.404l-6.191 7.881-4.16-4.115a1 1 0 0 1 1.406-1.422l2.566 2.539 4.806-6.119a1 1 0 0 1 1.405-.168",clipRule:"evenodd"})))};function M(){return(M=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var c in t)({}).hasOwnProperty.call(t,c)&&(e[c]=t[c])}return e}).apply(null,arguments)}new t.U(t(96423)).toString();var P=function(e){return m.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",width:30,height:30,fill:"none",viewBox:"0 0 30 30"},e),a||(a=m.createElement("path",{fill:"#E00",fillRule:"evenodd",d:"M27 15c0-6.627-5.372-12-12-12C8.373 3 3 8.373 3 15s5.373 12 12 12c6.628 0 12-5.373 12-12M15 1c7.732 0 14 6.268 14 14s-6.268 14-14 14S1 22.732 1 15 7.268 1 15 1m6.8 18a1 1 0 0 1-1 1h-9.185l1.293 1.293a1 1 0 0 1-1.414 1.414l-2.99-2.99-.02-.02L7.787 19l.697-.697.02-.02 2.99-2.99a1 1 0 0 1 1.414 1.414L11.615 18H20.8a1 1 0 0 1 1 1M8.2 11a1 1 0 0 1 1-1h9.185l-1.293-1.293a1 1 0 0 1 1.414-1.414l2.99 2.99.02.02.697.697-.697.697-.02.02-2.99 2.99a1 1 0 0 1-1.414-1.414L18.385 12H9.2a1 1 0 0 1-1-1",clipRule:"evenodd"})))};function T(){return(T=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var c in t)({}).hasOwnProperty.call(t,c)&&(e[c]=t[c])}return e}).apply(null,arguments)}new t.U(t(57053)).toString();var I=function(e){return m.createElement("svg",T({xmlns:"http://www.w3.org/2000/svg",width:40,height:30,fill:"none"},e),o||(o=m.createElement("path",{fill:"#E00",fillRule:"evenodd",d:"M3.979 22.205a10.12 10.12 0 0 0 7.2 2.98c2.61 0 5.22-1 7.2-2.98l7.04-7.04a.996.996 0 1 0-1.41-1.41l-7.04 7.04c-3.19 3.19-8.39 3.19-11.58 0s-3.19-8.39 0-11.58c1.55-1.55 3.6-2.4 5.79-2.4 1.7 0 3.32.51 4.71 1.48.45.31 1.08.2 1.39-.25s.2-1.07-.25-1.39c-1.72-1.2-3.75-1.84-5.85-1.84-2.72 0-5.28 1.06-7.2 2.98-3.97 3.97-3.97 10.44 0 14.41m18.98 1.14c1.72 1.2 3.75 1.84 5.85 1.84 2.72 0 5.28-1.05 7.21-2.98a10.12 10.12 0 0 0 2.98-7.2c0-2.72-1.07-5.28-2.99-7.21-3.98-3.97-10.44-3.97-14.41 0l-7.04 7.04a.996.996 0 1 0 1.41 1.41l7.04-7.04c3.19-3.19 8.39-3.19 11.58 0s3.19 8.39 0 11.58a8.1 8.1 0 0 1-5.79 2.4c-1.69 0-3.31-.51-4.7-1.48-.45-.31-1.07-.2-1.39.25-.31.45-.2 1.07.25 1.39",clipRule:"evenodd"})))};function B(){return(B=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var t=arguments[s];for(var c in t)({}).hasOwnProperty.call(t,c)&&(e[c]=t[c])}return e}).apply(null,arguments)}new t.U(t(60825)).toString();var R=function(e){return m.createElement("svg",B({xmlns:"http://www.w3.org/2000/svg",width:28,height:30,fill:"none"},e),u||(u=m.createElement("path",{fill:"#E00",fillRule:"evenodd",d:"M16.918 3.119h-2.03l-.63-1.93a.27.27 0 0 0-.26-.19c-.12 0-.23.08-.27.2l-.63 1.93h-2.02c-.12 0-.23.08-.27.2s0 .25.1.32l1.64 1.19-.63 1.93c-.04.12 0 .25.1.32s.24.07.34 0l1.64-1.2 1.64 1.19c.05.04.11.06.16.06.06 0 .12-.02.17-.06.1-.07.14-.2.1-.32l-.63-1.93 1.64-1.19c.1-.07.14-.2.1-.32a.27.27 0 0 0-.26-.2m-14.17 6.72-1.01 1.75c-.06.11-.05.24.03.33s.21.12.33.07l1.85-.83 1.36 1.5c.06.07.15.11.25.09a.28.28 0 0 0 .24-.31l-.22-2.01 1.86-.83c.05-.03.1-.07.13-.12s.04-.11.04-.17a.285.285 0 0 0-.23-.25l-1.98-.41-.21-2.02a.28.28 0 0 0-.22-.24.3.3 0 0 0-.31.14l-1.01 1.75-1.99-.42a.28.28 0 0 0-.3.14c-.06.11-.05.24.03.33zm19.65.61-1.85-.83a.29.29 0 0 1-.16-.29c.02-.12.11-.22.23-.25l1.97-.42.21-2.02c.02-.12.11-.22.23-.25.12-.02.25.04.31.14l1.01 1.75 1.98-.42c.12-.02.25.03.31.14.07.11.05.24-.03.33l-1.36 1.51 1.02 1.75c.06.11.04.25-.04.34-.09.09-.22.12-.33.07l-1.85-.81-1.36 1.5c-.09.09-.22.12-.33.07a.4.4 0 0 1-.13-.12.25.25 0 0 1-.04-.17zm-17.12 8.59 1.98-.42c.12-.03.25.03.33.14.07.1.05.24-.03.33l-1.36 1.51 1.01 1.75c.06.11.04.25-.04.34s-.22.12-.33.07l-1.85-.83-1.36 1.51c-.08.09-.21.12-.32.07a.4.4 0 0 1-.13-.12.25.25 0 0 1-.04-.17l.21-2.02-1.85-.83a.28.28 0 0 1-.17-.29c.01-.12.1-.23.21-.25l1.98-.42.21-2.01c.02-.12.11-.22.23-.25.12-.02.25.03.31.14zm19.18.36 1.98.42c.12.02.21.12.23.21 0 .06-.01.12-.04.17s-.08.09-.13.12l-1.85.83.21 2.02a.28.28 0 0 1-.24.31c-.1.02-.19-.02-.25-.09l-1.36-1.5-1.85.83c-.12.05-.25.02-.33-.07a.29.29 0 0 1-.03-.33l1.01-1.75-1.36-1.5a.29.29 0 0 1-.03-.33c.06-.11.19-.17.31-.14l1.99.42 1.01-1.75c.06-.1.17-.16.29-.14.13.03.22.13.23.25zm-9.57 5.59h2.03c.12 0 .23.07.27.19s0 .25-.1.32l-1.64 1.19.63 1.93c.04.12 0 .25-.1.32-.05.03-.11.05-.17.05-.05.01-.11-.01-.16-.05l-1.64-1.19-1.64 1.2c-.1.07-.24.07-.34 0a.28.28 0 0 1-.1-.32l.63-1.93-1.64-1.19c-.11-.07-.15-.2-.11-.32s.15-.2.27-.2h2.01l.63-1.93c.04-.15.2-.24.35-.19.09.03.16.1.19.19z",clipRule:"evenodd"})))};new t.U(t(80287)).toString();let U=({subscription:e,selectedBucket:s})=>{let t=[s?.size==="fulldata"?{text:"Ubegrenset data",icon:(0,d.jsx)(I,{})}:{text:"TaMedData",icon:(0,d.jsx)(k,{})},{text:"God dekning og h\xf8y hastighet",icon:(0,d.jsx)(A,{})},{text:"Ingen bindingstid",icon:(0,d.jsx)(C,{})}],c=[{text:"Dekningsgaranti",icon:(0,d.jsx)(A,{})},{text:"Ingen bindingstid",icon:(0,d.jsx)(C,{})}],r=[{text:"Basis-tilgang til Xploraâappen",icon:(0,d.jsx)(P,{})},{text:"Ingen bindingstid",icon:(0,d.jsx)(C,{})},{text:"Trygg og sikker kommunikasjon",icon:(0,d.jsx)(S,{})},{text:"EU inkludert",icon:(0,d.jsx)(R,{})}];return(0,d.jsx)("div",{className:"new-customer-subscription__usp-wrapper",children:(()=>{switch(e){case"folkepakka":case"familiepakka":return t;case"provekjop":case"mobiltbredband":default:return c;case"barneklokka":return r}})().map((e,s)=>(0,d.jsxs)("article",{className:"new-customer-subscription__usp",children:[(0,d.jsx)("figure",{children:e.icon}),(0,d.jsx)("p",{className:"usp-text text-start",children:e.text})]},s))})};U.propTypes={subscription:_().string.isRequired,selectedBucket:_().object};var z=t(16271),K=t(29722);let $=({selected:e,index:s,subscriptionPrismicFields:t,subscriptionBuckets:c})=>{let r=(0,p.wA)(),{selectedBucket:i}=(0,p.d4)(e=>e.newCustomer),{subscription_title:n,subscription_subtitle:l}=t;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("article",{className:`new-customer-subscription ${e?"new-customer-subscription--active":""}`,onClick:()=>r((0,j.Ck)({index:s,title:n[0].text})),children:[(0,d.jsxs)("h2",{className:"new-customer-subscription__title offset-2 offset-sm-1 text-start",children:[n[0].text,(0,d.jsx)("sup",{className:"new-customer-subscription__title-trade-mark",children:"TM"})]}),(0,d.jsx)("p",{className:"new-customer-subscription__subtitle col-12 col-sm-6 offset-2 offset-sm-1 offset-lg-0 text-start",children:l[0].text}),(0,d.jsxs)("p",{className:"new-customer-subscription__price offset-2 offset-sm-1 offset-lg-0",children:["Fra ",(0,d.jsx)("span",{className:"text-price",children:(0,b.Qn)(c[0])}),",â/mnd."]})]}),(0,d.jsx)(v.A,{trigger:e,children:(0,d.jsxs)("div",{className:"new-customer-subscription__details mx-1",children:[(0,d.jsx)("div",{className:"new-customer-subscription__packages",children:c.map(e=>(0,d.jsxs)("article",{className:(0,K.A)("new-customer-subscription__data-summary",{selected:i.size===(0,b.eO)(e.BUCKETNAME)}),onClick:()=>r((0,j.I3)({size:(0,b.eO)(e.BUCKETNAME),price:(0,b.Qn)(e),subscriptionName:e.SUBSCRIPTIONNAME})),children:[(0,d.jsx)("h2",{className:"new-customer-subscription__data-summary-size",children:(0,w.Uw)(e)}),(0,d.jsx)("div",{className:"new-customer-subscription__data-summary-price-wrapper",children:(0,d.jsxs)("p",{className:"new-customer-subscription__data-summary-price",children:[(0,b.Qn)(e),",â"]})})]},e.SUBSCRIPTIONTYPE))}),(0,d.jsx)(U,{subscription:"folkepakka",selectedBucket:i}),(0,d.jsxs)("article",{className:"new-customer-subscription__details-summary col-12 text-center",children:[(0,d.jsxs)("h3",{className:"new-customer-subscription__details-summary-title",children:[n[0].text," ",i.size]}),(0,d.jsxs)("p",{className:"new-customer-subscription__details-summary-price",children:[i.price,",â/mnd."]}),(0,d.jsx)(z.A,{subName:i.subscriptionName})]})]})})]})};var F=t(51472),L=t(32727),G=t(43828),Q=t(34044);let D=({selected:e,index:s,subscriptionPrismicFields:t,subscriptionBuckets:c})=>{let r=(0,p.wA)(),{subscription_title:i,subscription_subtitle:n,description:l}=t,a=()=>{r((0,j.Ck)({index:s,title:i[0].text}))};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("article",{className:(0,K.A)("new-customer-subscription",{"new-customer-subscription--active":e}),onClick:a,onKeyDown:e=>(0,Q.m0)(e,a),role:"button",tabIndex:"0",children:[(0,d.jsxs)("h2",{className:"new-customer-subscription__title offset-2 offset-sm-1 text-start",children:[i[0].text,(0,d.jsx)("sup",{className:"new-customer-subscription__title-trade-mark",children:"TM"})]}),(0,d.jsx)("p",{className:"new-customer-subscription__subtitle col-12 col-sm-6 offset-2 offset-sm-1 offset-lg-0 text-start",children:n[0].text}),(0,d.jsxs)("p",{className:"new-customer-subscription__price offset-2 offset-sm-1 offset-lg-0",children:["Fra"," ",(0,d.jsx)("span",{className:"text-price",children:(0,L.MT)(c[0]?.FAMILIEPAKKA_SUBSCRIPTIONS?.[0]?.TOTALAMOUNT)}),",â/mnd."]})]}),(0,d.jsx)(v.A,{trigger:e,children:(0,d.jsxs)("div",{className:"new-customer-subscription__details mx-1",children:[(0,d.jsx)("article",{className:"new-customer-subscription__description col-12",children:(0,d.jsx)(F.$,{field:l,components:G.uK})}),(0,d.jsx)(U,{subscription:"familiepakka"}),(0,d.jsx)(z.A,{subName:c[0]?.SUBSCRIPTIONNAME})]})})]})},W=({selected:e,index:s,subscriptionPrismicFields:t,subscriptionBuckets:c,subscriptionName:r})=>{let i=(0,p.wA)(),{subscription_title:n,subscription_subtitle:l,description:a,link:o}=t,u=()=>{i((0,j.Ck)({index:s,title:n[0].text}))};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("article",{className:(0,K.A)("new-customer-subscription",{"new-customer-subscription--active":e}),onClick:u,onKeyDown:e=>(0,Q.m0)(e,u),role:"button",tabIndex:"0",children:[(0,d.jsxs)("h2",{className:"new-customer-subscription__title offset-2 offset-sm-1 text-start",children:[n[0].text,(0,d.jsx)("sup",{className:"new-customer-subscription__title-trade-mark",children:"TM"})]}),(0,d.jsx)("p",{className:"new-customer-subscription__subtitle col-12 col-sm-6 offset-2 offset-sm-1 offset-lg-0 text-start",children:l[0].text}),(0,d.jsxs)("p",{className:"new-customer-subscription__price offset-2 offset-sm-1 offset-lg-0",children:[(0,d.jsx)("span",{className:"text-price",children:(0,b.Qn)(c[0])}),",â/mnd."]})]}),(0,d.jsx)(v.A,{trigger:e,children:(0,d.jsxs)("div",{className:"new-customer-subscription__details mx-1",children:[(0,d.jsx)("article",{className:"new-customer-subscription__details-description col-12",children:(0,d.jsx)(F.$,{field:a,components:G.uK,linkResolver:G.L8})}),(0,d.jsx)("div",{className:"read-more col-12",children:(0,d.jsx)(F.$,{field:o,linkResolver:G.L8})}),(0,d.jsx)(U,{subscription:"provekjop"}),(0,d.jsx)(z.A,{subName:r})]})})]})},V=({selected:e,index:s,subscriptionPrismicFields:t,subscriptionBuckets:c,subscriptionName:r})=>{let i=(0,p.wA)(),{subscription_title:n,subscription_subtitle:l}=t,{size:a,price:o}=(0,p.d4)(e=>e.newCustomer.selectedBucketMB),u=c[0]?.SUBSCRIPTIONPRICE??null;return null===u&&console.error("No data buckets defined for subscription",r),(0,m.useEffect)(()=>{null===a&&i((0,j.p)(c))},[i,a,c]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("article",{className:(0,K.A)("new-customer-subscription",{"new-customer-subscription--active":e}),onClick:()=>i((0,j.Ck)({index:s,title:n[0].text})),children:[(0,d.jsx)("h2",{className:"new-customer-subscription__title offset-2 offset-sm-1 text-start",children:n[0].text}),(0,d.jsx)("p",{className:"new-customer-subscription__subtitle col-12 col-sm-5 offset-2 offset-sm-1 offset-lg-0 text-start",children:l[0].text}),(0,d.jsxs)("p",{className:"new-customer-subscription__price offset-2 offset-sm-1 offset-lg-0",children:["Fra ",(0,d.jsx)("span",{className:"text-price",children:null===u?"â":(0,L.MT)(u)}),",â/mnd."]})]}),(0,d.jsx)(v.A,{trigger:e,children:(0,d.jsxs)("div",{className:"new-customer-subscription__details mx-1",children:[(0,d.jsx)("div",{className:"new-customer-subscription__packages",children:c.map((e,s)=>(0,d.jsxs)("article",{className:(0,K.A)("new-customer-subscription__data-summary",{selected:a===(0,b.eO)(e.BUCKETNAME)}),onClick:()=>i((0,j.VR)({size:(0,b.eO)(e.BUCKETNAME),price:(0,b.Qn)(e)})),children:[(0,d.jsx)("h2",{className:"new-customer-subscription__data-summary-size",children:e.BUCKETNAME}),(0,d.jsx)("div",{className:"new-customer-subscription__data-summary-price-wrapper",children:(0,d.jsxs)("p",{className:"new-customer-subscription__data-summary-price",children:[(0,b.Qn)(e),",â"]})})]},s))}),(0,d.jsx)(U,{subscription:"mobiltbredband"}),(0,d.jsxs)("article",{className:"new-customer-subscription__details-summary col-12 text-center",children:[(0,d.jsxs)("h3",{className:"new-customer-subscription__details-summary-title",children:[n[0].text," ",a," GB"]}),(0,d.jsxs)("p",{className:"new-customer-subscription__details-summary-price",children:[(0,L.MT)(o),",â/mnd."]}),(0,d.jsx)(z.A,{subName:r,subSize:a})]})]})})]})},X=({selected:e,index:s,subscriptionPrismicFields:t,subscriptionBuckets:c})=>{let r=(0,p.wA)(),{subscription_title:i,subscription_subtitle:n,link:l,description:a}=t,o=()=>{r((0,j.Ck)({index:s,title:i[0].text}))};return(0,d.jsxs)("article",{children:[(0,d.jsxs)("div",{role:"button",tabIndex:"0",onKeyDown:e=>(0,Q.m0)(e,o),onClick:o,className:(0,K.A)("new-customer-subscription",e&&"new-customer-subscription--active"),children:[(0,d.jsxs)("h2",{className:"new-customer-subscription__title offset-2 offset-sm-1 text-start",children:["StudentPakka",(0,d.jsx)("sup",{className:"new-customer-subscription__title-trade-mark",children:"TM"})]}),(0,d.jsx)("p",{className:"new-customer-subscription__subtitle col-12 col-sm-6 offset-2 offset-sm-1 offset-lg-0 text-start",children:n[0].text}),(0,d.jsxs)("p",{className:"new-customer-subscription__price offset-2 offset-sm-1 offset-lg-0",children:[(0,d.jsx)("span",{className:"text-price",children:(0,b.Qn)(c[0])}),",â/mnd."]})]}),(0,d.jsx)(v.A,{trigger:e,children:(0,d.jsxs)("div",{className:"new-customer-subscription__details mx-1",children:[(0,d.jsx)("div",{className:"new-customer-subscription__details-description col-12",children:(0,d.jsx)(F.$,{field:a,components:G.uK,linkResolver:G.L8})}),(0,d.jsx)("div",{className:"read-more col-12",children:(0,d.jsx)(F.$,{field:l,linkResolver:G.L8})}),(0,d.jsx)(U,{subscription:"folkepakka"}),(0,d.jsx)(z.A,{subName:c[0]?.SUBSCRIPTIONNAME})]})})]})},H=({selected:e,index:s,subscriptionPrismicFields:t,subscriptionBuckets:c})=>{let r=(0,p.wA)(),{subscription_title:i,subscription_subtitle:n,link:l,description:a}=t,o=i[0].text,u=n[0].text,x=(0,m.useCallback)(()=>{r((0,j.Ck)({index:s,title:o}))},[r,s,o]);return(0,m.useEffect)(()=>{x()},[x]),(0,d.jsxs)("article",{children:[(0,d.jsxs)("div",{className:`new-customer-subscription ${e?"new-customer-subscription--active":""}`,role:"button",tabIndex:"0",onClick:x,onKeyDown:e=>(0,Q.m0)(e,x),children:[(0,d.jsx)("h2",{className:"new-customer-subscription__title offset-2 offset-sm-1 text-start",children:o}),(0,d.jsx)("p",{className:"new-customer-subscription__subtitle col-12 col-sm-6 offset-2 offset-sm-1 offset-lg-0 text-start",children:u}),(0,d.jsxs)("p",{className:"new-customer-subscription__price offset-2 offset-sm-1 offset-lg-0",children:[(0,d.jsx)("span",{className:"text-price",children:(0,b.Qn)(c[0])}),",â/mnd."]})]}),(0,d.jsx)(v.A,{trigger:e,children:(0,d.jsxs)("div",{className:"new-customer-subscription__details mx-1",children:[(0,d.jsx)("div",{className:"new-customer-subscription__details-description col-12",children:(0,d.jsx)(F.$,{field:a,components:G.uK,linkResolver:G.L8})}),(0,d.jsx)("div",{className:"read-more col-12",children:(0,d.jsx)(F.$,{field:l,linkResolver:G.L8})}),(0,d.jsx)(U,{subscription:"barneklokka"}),(0,d.jsx)(z.A,{subName:"barneklokka"})]})})]})};t(72325);let J=()=>{let{config:e}=(0,p.d4)(e=>e.prismicCheckout),{new_customer_subtitle:s,new_customer_description:t,new_xplora_watch_customer_subtitle:c,new_xplora_watch_customer_description:r,subscriptions:i,xploraChildwatchSubscriptions:n}=e,l=(0,p.d4)(e=>(0,x.kW)(e.checkout.cart)),{chosenSubscriptionType:a}=(0,p.d4)(e=>e.newCustomer),[o,u]=(0,m.useState)({}),b=l?c
1:s[0].text,j=l?r:t[0].text;return((0,m.useEffect)(()=>{(async()=>{try{let e=await f.A.getAvailableSubscriptions();if(e){let s=e.data.reduce((e,s)=>(e[s.GROUPNAME]=s.SUBSCRIPTIONS,e),{});u(s)}}catch(e){console.log("Error fetching data:",e)}})()},[]),e&&0!==e.length&&0!==Object.keys(o).length)?(0,d.jsxs)("article",{className:"new-customer row",children:[(0,d.jsxs)("header",{className:"new-customer__header col-12",children:[(0,d.jsx)("h2",{className:"px-3",children:b}),(0,d.jsx)("p",{className:"new-customer__header-description",children:j})]}),(0,d.jsx)("div",{className:"col-12",children:((l?n:i)||[]).map((e,s)=>{let{subscription_title:t}=e,c=t[0].text,r=a.index===s;switch(c){case"FolkePakka":return(0,d.jsx)($,{selected:r,subscriptionPrismicFields:e,index:s,subscriptionBuckets:o.folkepakka},s);case"FamiliePakka":return(0,d.jsx)(D,{selected:r,subscriptionPrismicFields:e,index:s,subscriptionBuckets:o.familiepakka},s);case"Pr\xf8veKj\xf8p":return(0,d.jsx)(W,{selected:r,subscriptionPrismicFields:e,index:s,subscriptionBuckets:o.provekjop,subscriptionName:"provekjop"},s);case"Mobilt Bredb\xe5nd":return(0,d.jsx)(V,{selected:r,subscriptionPrismicFields:e,index:s,subscriptionBuckets:o["mobilt-bredbaand"],subscriptionName:"mobilt-bredbaand"},s);case"StudentPakka":return(0,d.jsx)(X,{selected:r,subscriptionPrismicFields:e,index:s,subscriptionBuckets:o["student-pakka"]},s);case"OneCall BarneKlokka":return(0,d.jsx)(H,{selected:r,subscriptionPrismicFields:e,index:s,subscriptionBuckets:o.barneklokka},s);default:return null}})})]}):(0,d.jsx)(h.default,{})}},16271:(e,s,t)=>{"use strict";t.d(s,{A:()=>u});var c=t(95155),r=t(14051),i=t.n(r),n=t(2834),l=t(99696),a=t(33043);let o=({subName:e,subSize:s,productId:t=null})=>{let{groupedCartItems:r}=(0,n.d4)(e=>e.checkout.cart),{brand:i}=(0,n.d4)(e=>e.theme),o=(0,l.Eh)(i),u=o?(0,a.pu)(e,s):(0,a.H$)(t);return(0,c.jsxs)("form",{action:u,method:"POST",children:[(0,c.jsx)("input",{type:"hidden",value:JSON.stringify(r),name:"cart"}),(0,c.jsx)("button",{className:"btn btn-primary",type:"submit",children:o?"G\xe5 videre":"Next"})]})};o.propTypes={subName:i().string,subSize:i().number};let u=o},33043:(e,s,t)=>{"use strict";t.d(s,{H$:()=>a,Uw:()=>n,pu:()=>l});var c=t(95155),r=t(31284),i=t(41463);let n=e=>{let{IS_CAMPAIGNBUCKET:s,ORIGINALBUCKETSIZE:t,CAMPAIGNBUCKETSIZE:r,BUCKETNAME:i}=e;return"1"===s?(0,c.jsxs)("span",{children:[(0,c.jsx)("span",{className:"striked-text",children:t+" GB"})," ",r+" GB"]}):(0,c.jsx)("span",{children:(i.startsWith(".")?"0":"")+i})},l=(e,s)=>{let t=(0,r.Yv)(e);switch(t){case t.includes("folkepakka"):return`${i.env.NEXT_PUBLIC_NEW_CUSTOMER_PAGE}/bestill/${t}?fri=true`;case"mobilt-bredbaand":return`${i.env.NEXT_PUBLIC_NEW_CUSTOMER_PAGE}/bestill/${t}-${s}-gb`;case"provekjop":return`${i.env.NEXT_PUBLIC_NEW_CUSTOMER_PAGE}/bestill/proevekjoep`;default:return`${i.env.NEXT_PUBLIC_NEW_CUSTOMER_PAGE}/bestill/${t}`}},a=e=>e?`https://mycall.no/api/webshop/cart?productId=${e}`:"https://mycall.no/api/webshop/cart"},49772:(e,s,t)=>{"use strict";t.d(s,{Ck:()=>i,I3:()=>n,VR:()=>l,au:()=>a,p:()=>o});var c=t(73696),r=t(63799);let i=e=>({type:r.n25,payload:e}),n=e=>({type:r.kzp,payload:e}),l=e=>({type:r.gQo,payload:e}),a=e=>({type:r.$bb,payload:e}),o=e=>(s,t)=>{let{selectedBucketMB:r}=t().newCustomer;if(null===r.size&&e.length>0){let t=Math.floor(e.length/2),r=e[t];s(l({size:(0,c.eO)(r.BUCKETNAME),price:(0,c.Qn)(r)}))}}},57053:(e,s,t)=>{"use strict";e.exports=t.p+"static/svg/cca7c091ed23bab8.svg"},58748:(e,s,t)=>{"use strict";e.exports=t.p+"static/svg/78c421daca945eda.svg"},60825:(e,s,t)=>{"use strict";e.exports=t.p+"static/svg/6a7c88af08c107c1.svg"},61915:(e,s,t)=>{"use strict";e.exports=t.p+"static/svg/81a691c0b9451f93.svg"},65917:(e,s,t)=>{"use strict";t.d(s,{A:()=>r});var c=t(25680);class r{static async getAvailableSubscriptions(){return(0,c.Jt)("https://webshop-data-api-v2.mycall.no/api","/proxy/getAvailableNewSubscriptions")}}},72325:()=>{},73696:(e,s,t)=>{"use strict";t.d(s,{Qn:()=>c,eO:()=>r});let c=e=>{let{SUBSCRIPTIONPRICE:s,SUBSCRIPTIONPRICE_DISCOUNTED:t}=e;return e.SUBSCRIPTIONNAME.includes("StudentPakka")?279:t??s},r=e=>{if("Full Data"===e)return"fulldata";if(e.includes("."))return parseFloat(e);let s=e.match(/Fri Data - (\d+)/);return s?`Fri data ${s[1]}`:parseInt(e,10)}},80287:(e,s,t)=>{"use strict";e.exports=t.p+"static/svg/ab4980a64f231288.svg"},96423:(e,s,t)=>{"use strict";
1e.exports=t.p+"static/svg/2c1eac847d535b6a.svg"},99610:(e,s,t)=>{"use strict";e.exports=t.p+"static/svg/799d8aba6ba31cbb.svg"}}]);
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.