1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9260],{92096:function(e,n,t){t.d(n,{Z:function(){return Z}});var r=t(28193),i=t(26831),o=t(2784),a=t(78523),s=t(76224),l=t(65992),c=t(43853),u=t(17377),d=t(47645),h=t(6970);function m(e){return(0,h.ZP)("MuiCard",e)}(0,d.Z)("MuiCard",["root"]);var f=t(52322);const p=["className","raised"],v=(0,l.ZP)(u.Z,{name:"MuiCard",slot:"Root",overridesResolver:(e,n)=>n.root})((()=>({overflow:"hidden"})));var Z=o.forwardRef((function(e,n){const t=(0,c.Z)({props:e,name:"MuiCard"}),{className:o,raised:l=!1}=t,u=(0,i.Z)(t,p),d=(0,r.Z)({},t,{raised:l}),h=(e=>{const{classes:n}=e;return(0,s.Z)({root:["root"]},m,n)})(d);return(0,f.jsx)(v,(0,r.Z)({className:(0,a.Z)(h.root,o),elevation:l?8:void 0,ref:n,ownerState:d},u))}))},7671:function(e,n,t){t.d(n,{Z:function(){return v}});var r=t(28193),i=t(26831),o=t(2784),a=t(78523),s=t(76224),l=t(65992),c=t(43853),u=t(47645),d=t(6970);function h(e){return(0,d.ZP)("MuiCardContent",e)}(0,u.Z)("MuiCardContent",["root"]);var m=t(52322);const f=["className","component"],p=(0,l.ZP)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,n)=>n.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}})));var v=o.forwardRef((function(e,n){const t=(0,c.Z)({props:e,name:"MuiCardContent"}),{className:o,component:l="div"}=t,u=(0,i.Z)(t,f),d=(0,r.Z)({},t,{component:l}),v=(e=>{const{classes:n}=e;return(0,s.Z)({root:["root"]},h,n)})(d);return(0,m.jsx)(p,(0,r.Z)({as:l,className:(0,a.Z)(v.root,o),ownerState:d,ref:n},u))}))},86432:function(e,n,t){var r;t.d(n,{Z:function(){return d}});var i=t(2784),o=t(38457),a=t(98135),s=t(25691);function l(e,n,t,r,o){const a="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,[l,c]=i.useState((()=>o&&a?t(e).matches:r?r(e).matches:n));return(0,s.Z)((()=>{let n=!0;if(!a)return;const r=t(e),i=()=>{n&&c(r.matches)};return i(),r.addListener(i),()=>{n=!1,r.removeListener(i)}}),[e,t,a]),l}const c=(r||(r=t.t(i,2))).useSyncExternalStore;function u(e,n,t,r){const o=i.useCallback((()=>n),[n]),a=i.useMemo((()=>{if(null!==r){const{matches:n}=r(e);return()=>n}return o}),[o,e,r]),[s,l]=i.useMemo((()=>{if(null===t)return[o,()=>()=>{}];const n=t(e);return[()=>n.matches,e=>(n.addListener(e),()=>{n.removeListener(e)})]}),[o,t,e]);return c(l,s,a)}function d(e,n={}){const t=(0,o.Z)(),r="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,{defaultMatches:i=!1,matchMedia:s=(r?window.matchMedia:null),ssrMatchMedia:d=null,noSsr:h}=(0,a.Z)({name:"MuiUseMediaQuery",props:n,theme:t});let m="function"===typeof e?e(t):e;m=m.replace(/^@media( ?)/m,"");return(void 0!==c?u:l)(m,i,s,d,h)}},49927:function(e,n,t){var r=t(98240),i=t(52322),o=(t(2784),t(92096)),a=t(7671),s=t(62197),l=t(47746),c=t(75978);n.Z=function(e){var n=e.children,t=(0,r.Z)(e,["children"]),u=(0,c.Z)(t),d=u.width,h=void 0===d?"auto":d,m=u.title,f=void 0===m?"":m,p=u.description,v=void 0===p?"":p,Z=(0,l.Z)(),b=f,g=v,x=Boolean(b||g);return(0,i.jsx)(o.Z,{variant:"outlined",style:{width:h,padding:Z.spacing()},children:(0,i.jsxs)(a.Z,{component:"form",children:[x?(0,i.jsxs)("div",{style:{marginBottom:Z.spacing(2)},children:[b?"string"===typeof b?(0,i.jsx)(s.Z,{variant:"h3",component:"h2",children:b}):b:null,g?"string"===typeof g?(0,i.jsx)(s.Z,{color:"textSecondary",children:g}):g:null]}):null,n]})})}},79260:function(e,n,t){t.r(n),t.d(n,{default:function(){return Z}});var r=t(92563),i=t(17064),o=t(52322),a=t(2784),s=JSON.parse('{"title":"Hva koster det \xe5 r\xf8yke?","description":"Bruk denne kalkulatoren for \xe5 se hvor mye r\xf8ykingen har kostet deg, og hvor mye du kan spare ved \xe5 slutte \xe5 r\xf8yke.","sub_title_1":"\xc5 r\xf8yke i","sub_title_2":"\xe5r har kostet","sub_title_3":"kr","sub_description":"Hvis du slutter \xe5 r\xf8yke n\xe5, se s\xe5 mye du kan spare i fremtiden:","label_1":"Hvor mye koster r\xf8ykingen meg?","label_2":"Pris per pakke (20 sigaretter)","label_3":"Antall \xe5r du har r\xf8kt","label_4":"Antall sigaretter du r\xf8yker daglig","label_5":"\xc5r","label_6":"Bel\xf8p spart","label_7":"Kr","label_8":"Stk"}'),l=t(49927),c=t(61303),u=t(75978),d=t(41075),h=t(62197),m=t(86432),f=t(45596);function p(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:",",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:" ";n=Math.abs(n),n=isNaN(n)?2:n;var i=e<0?"-":"";e=Math.abs(Number(e)||0);var o=Math.floor(e).toString(),a=o.length>3?o.length%3:0;return i+(a?o.substr(0,a)+r:"")+o.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+r)+(n?t+Math.abs(e-parseInt(o)).toFixed(n).slice(2):"")}var v=function(e,n,t,r,i){var a=i.map((function(i,a){return(0,o.jsxs)(d.ZP,{container:!0,item:!0,xs:!0,alignItems:"center",justifyContent:"space-between",direction:"row",style:{background:a%2===0?"rgba(0,0,0,0)":"rgba(0,0,0,0.1)",padding:"1rem"},children:[(0,o.jsx)(d.ZP,{item:!0,xs:!0,children:(0,o.jsx)(h.Z,{children:i})}),(0,o.jsxs)(d.ZP,{container:!0,item:!0,xs:r?5:2,alignItems:"center",justifyContent:"space-between",direction:"row",children:[(0,o.jsx)(d.ZP,{item:!0,children:(0,o.jsx)(h.Z,{children:e("label_7")})}),(0,o.jsx)(d.ZP,{item:!0,children:p((null!==n&&void 0!==n?n:0)*(null!==i&&void 0!==i?i:0)*(365.25*(null!==t&&void 0!==t?t:0)/20))})]})]},i)}));return(0,o.jsxs)(d.ZP,{container:!0,alignItems:"center",justifyContent:"space-between",direction:"column",children:[(0,o.jsxs)(d.ZP,{container:!0,item:!0,xs:!0,alignItems:"center",justifyContent:"space-between",direction:"row",style:{background:"rgba(0,0,0,0.25)",padding:"1rem"},children:[(0,o.jsx)(d.ZP,{item:!0,xs:!0,children:(0,o.jsx)(h.Z,{style:{fontWeight:"bold"},children:e("label_5")})}),(0,o.jsx)(d.ZP,{item:!0,xs:r?5:2,children:(0,o.jsx)(h.Z,{style:{fontWeight:"bold"},children:e("label_6")})})]}),a]})},Z=function(e){var n=(0,r.Z)({},e),t=(0,u.Z)(n),Z=t.width,b=t.title,g=t.description,x=t.locale,y=t.variant,j=void 0===y?"outlined":y,_=(0,m.Z)("(max-width:600px)"),w=(0,i.Z)((0,c.$)({locale:x,locales:s}),1)[0],P=(0,a.useState)(80),k=P[0],C=P[1],M=(0,a.useState)(5),N=M[0],S=M[1],I=(0,a.useState)(10),R=I[0],A=I[1],E=function(e){"price"===e.target.name&&C(
1parseFloat(e.target.value)),"years"===e.target.name&&S(parseFloat(e.target.value)),"numbers"===e.target.name&&A(parseFloat(e.target.value))};return(0,o.jsxs)(l.Z,{title:null!==b&&void 0!==b?b:w("title"),description:null!==g&&void 0!==g?g:w("description"),locale:x,width:Z,children:[(0,o.jsxs)(d.ZP,{container:!0,spacing:2,direction:"column",children:[(0,o.jsxs)(d.ZP,{container:!0,item:!0,direction:"column",children:[(0,o.jsx)(d.ZP,{item:!0,children:(0,o.jsx)(h.Z,{style:{fontWeight:"bold"},children:w("label_2")})}),(0,o.jsx)(d.ZP,{item:!0,xs:_?5:2,children:(0,o.jsx)(f.Z,{value:k,type:"number",name:"price",variant:j,onChange:E,InputProps:{endAdornment:w("label_7")},inputProps:{"aria-label":w("label_2")}})})]}),(0,o.jsxs)(d.ZP,{container:!0,item:!0,direction:"column",children:[(0,o.jsx)(d.ZP,{item:!0,children:(0,o.jsx)(h.Z,{style:{fontWeight:"bold"},children:w("label_3")})}),(0,o.jsx)(d.ZP,{item:!0,xs:_?5:2,children:(0,o.jsx)(f.Z,{value:N,type:"number",name:"years",onChange:E,variant:j,InputProps:{endAdornment:w("label_5")},inputProps:{"aria-label":w("label_3")}})})]}),(0,o.jsxs)(d.ZP,{container:!0,item:!0,direction:"column",children:[(0,o.jsx)(d.ZP,{item:!0,children:(0,o.jsx)(h.Z,{style:{fontWeight:"bold"},children:w("label_4")})}),(0,o.jsx)(d.ZP,{item:!0,xs:_?5:2,children:(0,o.jsx)(f.Z,{value:R,type:"number",name:"numbers",
1inputProps:{"aria-label":w("label_4")},variant:j,onChange:E,InputProps:{endAdornment:w("label_8")}})})]})]}),(0,o.jsx)(h.Z,{style:{fontWeight:"bold",paddingTop:"1rem"},children:w("sub_title_1")+" "+(isNaN(N)?0:N)+" "+w("sub_title_2")+" "+p((null!==k&&void 0!==k?k:0)*(null!==N&&void 0!==N?N:0)*(365.25*(null!==R&&void 0!==R?R:0)/20))+" "+w("sub_title_3")}),(0,o.jsx)(h.Z,{style:{paddingBottom:"0.25rem"},children:w("sub_description")}),v(w,k,R,_,[1,2,5,10,15,20,25,30])]})}},33582:function(e,n,t){t.d(n,{Z:function(){return a}});var r=t(17064),i=t(81541),o=t(2784);function a(e){var n=e.locales,t=e.keyPrefix,a=(0,o.useCallback)((function(e,o){var a,s=(0,i.Z)(null!==(a=null===t||void 0===t?void 0:t.split("."))&&void 0!==a?a:[]).concat((0,i.Z)(e.split(".")));if(/test/.test("production"))return"".concat("no",":").concat(s.join("."));var l=n;return s.forEach((function(e){l=l[e],'i18n: translation missing for "'.concat("no",":").concat(s.join("."),'"')})),o&&Object.entries(o).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1],o=new RegExp("{{".concat(t,"}}"));l=l.replace(o,i)})),l}),[t,n]);return[a]}},61303:function(e,n,t){t.d(n,{$:function(){return r.Z}});var r=t(33582)},75978:function(e,n,t){t.d(n,{Z:function(){return i}});var r=t(62230);function i(e){var n={};return new URLSearchParams(window.location.search).forEach((function(e,t){var r=isNaN(e)?e:parseInt(e,10);r=o(e)?a(e):r,t in n?Array.isArray(n[t])?n[t].push(r):n[t]=[n[t],r]:n[t]=r})),(0,r.Z)({},e,n)}var o=function(e){return"true"===e||"false"==e||"boolean"===typeof e},a=function(e){return"true"===e.toLocaleLowerCase()}},92563:function(e,n,t){function r(){return r=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},r.apply(this,arguments)}function i(){return r.apply(this,arguments)}t.d(n,{Z:function(){return i}})}}]); 2//# sourceMappingURL=9260.12e6d62a960b4108.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.