1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7928],{37928:function(e,t,r){r.r(t),r.d(t,{default:function(){return $}});var n=r(67557),o=r(92563),i=r(62230),a=r(85244),l=r(17064),c=r(52322),s=r(2784),d=r(41075),u=r(35469),h=r(45596),g=r(24032),p=r(62197),m=r(87290),v=r(41628),f=r(64720),w=r(61649),b=r(47746),Z=r(65992),x=r(49927),y=r(79107),E=r(26937),j=r(31470),M=r(61303),k=r(75978),L=r(32253),N=r(25485),R=r(36284),I=r(88206),O=r(11511),T=r(24254),P=r(86973);var W=r(2289);var U={ages:{adultsLowerLimit:18,elderlyLowerLimit:70},children:function(e,t){var r="female"===t?function(e){return{underweightUpperLimit:-4.193539192e-8*Math.pow(e,9)+394958645e-14*Math.pow(e,8)-.0001585466508*Math.pow(e,7)+.003541512398*Math.pow(e,6)-.04821103837*Math.pow(e,5)+.4115019768*Math.pow(e,4)-2.180114019*Math.pow(e,3)+6.886983469*Math.pow(e,2)-12.07446243*e+23.82754457,normalUpperLimit:3541216735e-14*Math.pow(e,5)-.001871466014*Math.pow(e,4)+.03024435084*Math.pow(e,3)-.105299625*Math.pow(e,2)-.3793724694*e+19.06128152,overweightUpperLimit:6331862163e-14*Math.pow(e,5)-.002990001106*Math.pow(e,4)+.0414341425*Math.pow(e,3)-.07880334037*Math.pow(e,2)-.7454990284*e+21.41530983,obese1UpperLimit:-1105813342e-14*Math.pow(e,6)+.0008081199605*Math.pow(e,5)-.02219964945*Math.pow(e,4)+.2758910762*Math.pow(e,3)-1.44342966*Math.pow(e,2)+3.008919718*e+18.93527668}}(e):function(e){return{underweightUpperLimit:-3.353045441e-8*Math.pow(e,9)+3247252522e-15*Math.pow(e,8)-.0001344504726*Math.pow(e,7)+.003102966875*Math.pow(e,6)-.04363858467*Math.pow(e,5)+.3840379976*Math.pow(e,4)-2.091175377*Math.pow(e,3)+6.767561555*Math.pow(e,2)-12.14499044*e+24.33687472,normalUpperLimit:-6309804286e-15*Math.pow(e,6)+.0003900555961*Math.pow(e,5)-.009290626203*Math.pow(e,4)+.1022559709*Math.pow(e,3)-.4406710976*Math.pow(e,2)+.2981261911*e+18.7970183,overweightUpperLimit:-1000047221e-14*Math.pow(e,6)+.0006472415432*Math.pow(e,5)-.0159429623*Math.pow(e,4)+.1790384862*Math.pow(e,3)-.811848796*Math.pow(e,2)+1.0900845*e+19.84952682,obese1UpperLimit:-1706634496e-14*Math.pow(e,6)+.001135206545*Math.pow(e,5)-.02862885166*Math.pow(e,4)+.330731799*Math.pow(e,3)-1.633496136*Math.pow(e,2)+3.15836588*e+19.14379391}}(e);return{UNDERWEIGHT:r.underweightUpperLimit,NORMAL:r.normalUpperLimit,OVERWEIGHT:r.overweightUpperLimit,OBESE_1:r.obese1UpperLimit,OBESE_2:1/0}},adults:{UNDERWEIGHT:18.5,NORMAL:25,OVERWEIGHT:30,OBESE_1:35,OBESE_2:40,OBESE_3:1/0},elderly:{UNDERWEIGHT:20,NORMAL:27,OVERWEIGHT:1/0}};function S(e){return e<U.elderly.UNDERWEIGHT?"underweight":e<U.elderly.NORMAL?"normal":"overweight"}function G(e){return e<=U.adults.UNDERWEIGHT?"underweight":e<U.adults.NORMAL?"normal":e<U.adults.OVERWEIGHT?"overweight":e<U.adults.OBESE_1?"obese-1":e<U.adults.OBESE_2?"obese-2":"obese-3"}function H(e,t,r){var n=U.children(t,r);return{standard:G(e),iso:e<n.UNDERWEIGHT?"underweight":e<n.NORMAL?"normal":e<n.OVERWEIGHT?"overweight":e<n.OBESE_1?"obese-1":"obese-2"}}var B=["underweight","normal","overweight","obese-1","obese-2","obese-3"],C=["underweight","normal","overweight","obese-1","obese-2"],D=["underweight","normal","overweight"],A=function(e){var t=e.info,r=e.category,n=e.type,o=e.color,i="adult"===n?B:"child"===n?C:D;return(0,c.jsx)(c.Fragment,{children:i.map((function(e,n){return(0,c.jsx)(P.Z,{children:(0,c.jsx)(V,{mode:e===r?"highlighted":"normal",backgroundcolor:o,children:t[n]})},e)}))})},F=function(e){var t,r,n=e.age,o=e.gender,i=e.t,a=e.bmi,l=e.disabled,s=n<18?"child":n>70?"elderly":"adult",d="".concat(i("interpretation.label")," ").concat("child"===s?"".concat(i("interpretation.child")," (").concat(i("inputs.gender.".concat(o))," ").concat(n," ").concat(i("year"),")"):i("adult"===s?"interpretation.adult":"interpretation.elderly")),u=i("bmi"),h="".concat(u," \u2264"),g="".concat(u),m="".concat(u," \u2265"),v=J({age:n,gender:o,type:n>18?"standard":"iso"});"child"===s?(t=function(e,t,r,n,o,i){var a=(0,U.children)(e,t);return["".concat(n.replace("\u2264","<")," ").concat((0,W.X)(a.UNDERWEIGHT,1),": ").concat(r("categories.underweight-iso")),"".concat(o," ").concat((0,W.X)(a.UNDERWEIGHT,1),"-").concat((0,W.X)(a.NORMAL,1),": ").concat(r("categories.normal")),"".concat(i.replace("\u2265",">")," ").concat((0,W.X)(a.NORMAL,1),": ").concat(r("categories.overweight-iso")),"".concat(i," ").concat((0,W.X)(a.OVERWEIGHT,1),": ").concat(r("categories.obese-1-iso")),"".concat(i," ").concat((0,W.X)(a.OBESE_1,1),": ").concat(r("categories.obese-2-iso")),"".concat(i," ").concat((0,W.X)(a.OBESE_2,1),": ").concat(r("categories.obese-3"))]}(n,o,i,h,g,m),r=H(a,n,o).iso):"elderly"===s?(t=function(e,t,r,n){var o=U.elderly;return["".concat(t.replace("\u2264","<")," ").concat(o.UNDERWEIGHT,": ").concat(e("categories.underweight")),"".concat(r," ").concat(o.UNDERWEIGHT,"-").concat(o.NORMAL,": ").concat(e("categories.normal")),"".concat(n.replace("\u2265",">")," ").concat(o.NORMAL,": ").concat(e("categories.overweight"))]}(i,h,g,m),r=S(a)):(t=function(e,t,r,n){var o=U.adults;return["".concat(t.replace("\u2264","<")," ").concat((0,W.X)(o.UNDERWEIGHT,1),": ").concat(e("categories.underweight")),"".concat(r," ").concat((0,W.X)(o.UNDERWEIGHT,1),"-").concat(o.NORMAL,": ").concat(e("categories.normal")),"".concat(n.replace("\u2265",">")," ").concat(o.NORMAL,": ").concat(e("categories.overweight")),"".concat(n," ").concat(o.OVERWEIGHT,": ").concat(e("categories.obese-1")),"".concat(n," ").concat(o.OBESE_1,": ").concat(e("categories.obese-2")),"".concat(n," ").concat(o.OBESE_2,": ").concat(e("categories.obese-3"))]}(i,h,g,m),r=G(a)),l&&(r=void 0,d="".concat(i("interpretation.label")," -"));var f=function(e,t){var r=t[t.length-1].color;return t.sort((function(e,t){return e.limit-t.limit})).reduceRight((function(t,r){return e<r.limit?r.color:t}),r)}(a,v);return(0,c.jsx)(O.Z,{children:(0,c.jsxs)(N.Z,{"aria-label":"BMI Table",children:[(0,c.jsx)(T.Z,{children:(0,c.jsx)(P.Z,{children:(0,c.jsx)(_,{align:"left",children:(0,c.jsx)(p.Z,{variant:"h5",component:"label",children:d})})})}),(0,c.jsx)(R.Z,{children:(0,c.jsx)(A,{info:t,type:s,category:r,color:f})})]})})},_=(0,Z.ZP)(I.Z)((function(){return{minWidth:200}})),V=(0,Z.ZP)(I.Z)((function(e){var t=e.mode,r=e.backgroundcolor,n=e.theme;return(0,i.Z)({},"normal"===t&&{padding:n.spacing(2),backgroundColor:"rgb(255, 255, 224)",minWidth:200},"highlighted"===t&&{padding:n.spacing(2),backgroundColor:r,minWidth:200})}));function K(e){var t=e.height,r=e.weight,n=e.gender,o=e.age,i=r/Math.pow(t/100,2),a=function(e,t,r){if(t<U.ages.adultsLowerLimit){if(!r)throw new TypeError("Gender must be provided if age is under 18");return H(e,t,r)}return t>=U.ages.elderlyLowerLimit?{standard:S(e)}:{standard:G(e)}}(i,o,n);return{value:i,category:a}}function X(e,t){var r=e.height,n=e.weight,o=e.gender,i=e.age,a=[],l=K({height:r,weight:n,gender:
1o,age:i}),c=t("inputs.age"),s=t("inputs.height"),d=t("inputs.weight"),u=t("result.standard"),h=t("bmi"),g="".concat(s,": ").concat(r,"cm. ").concat(d,": ").concat(n,"kg. ").concat(c,": ").concat(i,". ").concat(h,": ").concat(l.value.toLocaleString(void 0,{minimumFractionDigits:1,maximumFractionDigits:1})," kg/m\xb2");a.push(g);var p=t("categories.".concat(l.category.standard));if(i<18&&l.category.iso){var m=t("categories.".concat("normal"!==l.category.iso&&l.category.iso?l.category.iso+"-iso":l.category.iso));a.push("".concat(t("result.iso"),": ").concat(m," "))}else a.push("".concat(u,": ").concat(p));return a}var q=JSON.parse('{"title":"KMI kalkulator","description":"KMI (kroppsmasseindeks) beregnes ut fra en persons vekt og h\xf8yde, og er for de fleste et godt m\xe5l p\xe5 mengden kroppsfett. Dette gir ogs\xe5 mulighet for \xe5 klassifisere i ulike vektkategorier. KMI kalles ogs\xe5 BMI (body mass index).","bmi":"KMI","year":"\xe5r","summary":"Oppsummering","error-helper-text":{"height":"Vennligst oppgi h\xf8yde i centimeter","weight":"Vennligst oppgi vekt i kilogram","age":"Vennligst oppgi alder i \xe5r"},"categories":{"underweight":"undervekt","underweight-iso":"undervekt (< iso-KMI 18.5)","normal":"normal vekt","overweight":"overvekt","overweight-iso":"overvekt (> iso-KMI 25)","obese-1":"fedme","obese-1-iso":"fedme (> iso-KMI 30)","obese-2":"alvorlig fedme","obese-2-iso":"alvorlig fedme (> iso-KMI 35) ","obese-3":"sv\xe6rt alvorlig fedme","disabled":"-"},"result":{"value":"Resultat","standard":"standard KMI kategori","iso":"iso-KMI kategori"},"gender-helper-text":"Kj\xf8nn p\xe5virker resultatet kun for barn","age-helper-text":"2-18 \xe5r barn \u2022 18-70 \xe5r voksen \u2022 >70 \xe5r eldre","no-iso-helper-text":"Standard KMI kategori gjelder kun voksne over 18 \xe5r","iso-helper-text":"iso-KMI kategori vises kun for barn","interpretation":{"label":"Tolkning","adult":"voksne (> 17 \xe5r)","child":"barn","elderly":"eldre (>70 \xe5r)"},"inputs":{"height":"H\xf8yde","weight":"Vekt","gender":{"label":"Kj\xf8nn","female":"Jente","male":"Gutt"},"age":"Alder"}}'),J=function(e){var t=e.age,r=e.gender,n=e.type,o=[{limit:U.adults.UNDERWEIGHT,color:m.Z[900]},{limit:U.adults.NORMAL,color:v.Z[200]},{limit:U.adults.OVERWEIGHT,color:m.Z[200]},{limit:U.adults.OBESE_1,color:f.Z[200]},{limit:U.adults.OBESE_2,color:w.Z[100]},{limit:1/0,color:w.Z[200]}];if(t<U.ages.adultsLowerLimit&&"iso"===n){var i=U.children(t,r);return[{limit:i.UNDERWEIGHT,color:m.Z[900]},{limit:i.NORMAL,color:v.Z[200]},{limit:i.OVERWEIGHT,color:m.Z[200]},{limit:i.OBESE_1,color:f.Z[200]},{limit:1/0,color:w.Z[200]}]}return t<U.ages.elderlyLowerLimit?o:[{limit:U.elderly.UNDERWEIGHT,color:m.Z[900]},{limit:U.elderly.NORMAL,color:v.Z[200]},{limit:U.elderly.OVERWEIGHT,color:m.Z[200]},{limit:1/0,color:w.Z[200]}]},$=function(e){var t=(0,o.Z)({},e),r=(0,k.Z)(t),p=r.locale,m=r.width,v=r.title,f=r.description,w=r.variant,Z=void 0===w?"outlined":w,N=r.showSummary,R=void 0===N||N,I=r.showFooter,O=void 0===I||I,T=r.height,P=void 0===T?180:T,W=r.weight,S=void 0===W?72:W,G=r.gender,H=void 0===G?"female":G,B=r.age,C=void 0===B?25:B,D=(0,l.Z)(s.useReducer((function(e,t){return(0,a.Z)((0,i.Z)({},e),(0,n.Z)({},t.name,t.payload))}),{height:P.toString(),weight:S.toString(),gender:H,age:C.toString()}),2),A=D[0],_=A.height,V=A.weight,$=A.gender,Q=A.age,Y=D[1],ee=(0,l.Z)((0,M.$)({locale:p,locales:q}),1)[0],te=function(e){var t=e.target,r=t.name,n=t.value,o=["true","false"].includes(n)?"true"===n:null!==n&&void 0!==n?n:"";Y({name:r,payload:o})},re=K({height:(0,L.B)(_),weight:(0,L.B)(V),gender:$,age:(0,L.B)(Q)}),ne=[_,V,Q].some((function(e){return!e}))||(0,L.B)(Q)<2,oe=(0,b.Z)();return(0,c.jsxs)(x.Z,{title:null!==v&&void 0!==v?v:ee("title"),description:null!==f&&void 0!==f?f:ee("description"),showFooter:O,locale:p,width:m,children:[(0,c.jsxs)(d.ZP,{container:!0,"aria-label":ee("title"),spacing:2,border:"none",component:"fieldset",children:[(0,c.jsx)(d.ZP,{item:!0,xs:6,children:(0,c.jsx)(h.Z,{InputProps:{endAdornment:(0,c.jsx)(u.Z,{position:"end",children:"cm"})},variant:Z,label:ee("inputs.height"),name:"height",id:"height",fullWidth:!0,type:"number",defaultValue:_,inputProps:{min:0,max:300},onChange:te,error:!_,helperText:_?"":ee("error-helper-text.height")})}),(0,c.jsx)(d.ZP,{item:!0,xs:6,children:(0,c.jsx)(h.Z,{InputProps:{endAdornment:(0,c.jsx)(u.Z,{position:"end",children:"kg"})},defaultValue:V,variant:Z,fullWidth:!0,label:ee("inputs.weight"),name:"weight",id:"weight",type:"number",inputProps:{min:0,max:500},onChange:te,error:!V,helperText:V?"":ee("error-helper-text.weight")})}),(0,c.jsx)(d.ZP,{item:!0,xs:6,children:(0,c.jsx)(h.Z,{InputProps:{endAdornment:(0,c.jsx)(u.Z,{position:"end",children:ee("year")})},defaultValue:Q,variant:Z,fullWidth:!0,label:ee("inputs.age"),name:"age",id:"age",type:"number",inputProps:{min:2,max:150},error:!Q||(0,L.B)(Q)<2,onChange:te,helperText:Q?"":ee("error-helper-text.age")})}),(0,c.jsx)(d.ZP,{item:!0,xs:6,children:(0,c.jsx)(j.Z,{FormControlProps:{disabled:Q>=U.ages.adultsLowerLimit},label:ee("inputs.gender.label"),options:[{label:ee("inputs.gender.female"),value:"female"},{label:ee("inputs.gender.male"),value:"male"}],name:"gender",value:$,onChange:te,helperText:Q>=U.ages.adultsLowerLimit?ee("gender-helper-text"):void 0})})]}),(0,c.jsxs)(d.ZP,{container:!0,spacing:2,children:[(0,c.jsx)(d.ZP,{item:!0,xs:12,container:!0,justifyContent:"space-between",alignItems:"baseline",children:(0,c.jsxs)(z,{error:isNaN(re.value)?"true":void 0,variant:"body1",component:"p",children:[(0,c.jsxs)("b",{children:[ee("result.value"),":"]})," ",isNaN(re.value)||ne?"".concat(ee("categories.disabled")," "):re.value.toLocaleStr
1ing(void 0,{minimumFractionDigits:1,maximumFractionDigits:1}),"kg/m",(0,c.jsx)("sup",{children:"2"})]})}),(0,c.jsx)(g.Z,{title:re.category.iso?ee("no-iso-helper-text"):"",children:(0,c.jsxs)(d.ZP,{container:!0,spacing:1,alignItems:"center",item:!0,xs:12,children:[(0,c.jsx)(E.Z,{value:re.value,color:re.category.iso||ne?oe.palette.grey[500]:void 0,ranges:J({age:Q,gender:$,type:"standard"})}),(0,c.jsx)(d.ZP,{item:!0,children:(0,c.jsxs)(z,{color:re.category.iso?"textSecondary":void 0,error:isNaN(re.value)?"true":void 0,children:[(0,c.jsxs)("b",{children:[ee("result.standard"),":"]})," ",isNaN(re.value)||ne?ee("categories.disabled"):ee("categories.".concat(re.category.iso?"disabled":re.category.standard))]})})]})}),(0,c.jsx)(g.Z,{title:re.category.iso?"":ee("iso-helper-text"),children:(0,c.jsxs)(d.ZP,{container:!0,spacing:1,alignItems:"center",item:!0,xs:12,children:[(0,c.jsx)(E.Z,{color:!re.category.iso||ne?oe.palette.grey[500]:void 0,value:re.value,ranges:J({age:Q,gender:$,type:"iso"})}),(0,c.jsx)(d.ZP,{item:!0,children:(0,c.jsxs)(z,{color:re.category.iso?void 0:"textSecondary",error:isNaN(re.value)?"true":void 0,children:[(0,c.jsxs)("b",{children:[ee("result.iso"),":"]})," ",isNaN(re.value)||ne?ee("categories.disabled"):ee("categories.".concat("normal"!==re.category.iso&&re.category.iso?re.category.iso+"-iso":re.category.iso?re.category.iso:"disabled"))]})})]})})]}),(0,c.jsx)(F,{age:Q,gender:$,t:ee,bmi:re.value,disabled:isNaN(re.value)||ne}),R?(0,c.jsx)("div",{children:(0,c.jsx)(y.Z,{label:ee("summary"),locale:p,value:{header:[ee("summary"),ee("title")].join(" "),lines:isNaN(re.value)?[]:X({height:_,weight:V,gender:$,age:Q},ee)},TextAreaProps:{variant:Z}})}):null]})},z=(0,Z.ZP)(p.Z)((function(e){return{color:e.error?"red":void 0}}))},49927:function(e,t,r){var n=r(98240),o=r(52322),i=(r(2784),r(92096)),a=r(7671),l=r(62197),c=r(47746),s=r(75978);t.Z=function(e){var t=e.children,r=(0,n.Z)(e,["children"]),d=(0,s.Z)(r),u=d.width,h=void 0===u?"auto":u,g=d.title,p=void 0===g?"":g,m=d.description,v=void 0===m?"":m,f=(0,c.Z)(),w=p,b=v,Z=Boolean(w||b);return(0,o.jsx)(i.Z,{variant:"outlined",style:{width:h,padding:f.spacing()},children:(0,o.jsxs)(a.Z,{component:"form",children:[Z?(0,o.jsxs)("div",{style:{marginBottom:f.spacing(2)},children:[w?"string"===typeof w?(0,o.jsx)(l.Z,{variant:"h3",component:"h2",children:w}):w:null,b?"string"===typeof b?(0,o.jsx)(l.Z,{color:"textSecondary",children:b}):b:null]}):null,t]})})}},79107:function(e,t,r){var n=r(22710),o=r(62230),i=r(85244),a=r(17064),l=r(5163),c=r(52322),s=r(2784),d=r(711),u=r(51654),h=r(62048),g=r(45596),p=r(62197),m=r(47746),v=r(65992),f=r(61303),w=r(55593),b=(0,v.ZP)(g.Z)((function(e){return{"& .MuiInputBase-input.Mui-disabled":{WebkitTextFillColor:e.theme.palette.text.primary}}}));t.Z=function(e){var t=e.TextAreaProps,r=e.value,g=e.label,v=(0,a.Z)(s.useState(!1),2),Z=v[0],x=v[1],y=[r.header,r.lines.map((function(e){return 0===e.search(/\n/)?e:"".concat(null!==(t=r.delimiter)&&void 0!==t?t:"- ").concat(e);var t})).join("\n")].join("\n"),E=function(){var e=(0,n.Z)((function(){return(0,l.__generator)(this,(function(e){switch(e.label){case 0:return"clipboard"in navigator?[4,navigator.clipboard.writeText(y)]:[3,2];case 1:return e.sent(),[3,3];case 2:"clipboardData"in window&&window.clipboardData.setData("Text",y),e.label=3;case 3:return x(!0),[2]}}))}));return function(){return e.apply(this,arguments)}}();s.useEffect((function(){var e=setTimeout((function(){Z&&x(!1)}),1e3);return function(){return clearTimeout(e)}}),[Z]),s.useEffect((function(){x(!1)}),[y]);var j=(0,a.Z)((0,f.$)({locales:w.Z}),1)[0],M=(0,m.Z)();return(0,c.jsx)("div",{style:{paddingTop:M.spacing(3)},children:(0,c.jsxs)(p.Z,{variant:"h3",component:"label",children:[g,(0,c.jsxs)("div",{style:{position:"relative",marginTop:M.spacing(),minHeight:"50%"},children:[(0,c.jsx)(b,(0,i.Z)((0,o.Z)({multiline:!0,fullWidth:!0,maxRows:r.lines.length+2,disabled:!0},t),{value:y})),(0,c.jsx)(h.Z,{style:{position:"absolute",bottom:0,right:0,margin:M.spacing()},variant:"contained",disabled:!r.lines.length||Z,startIcon:Z?(0,c.jsx)(d.Z,{}):(0,c.jsx)(u.Z,{}),color:"primary",onClick:E,size:"small",children:j(Z?"copied":"copy")})]})]})})}},26937:function(e,t,r){r.d(t,{b:function(){return o}});var n=r(52322);r(2784);function o(e,t){var r=e[e.length-1].color;return e.sort((function(e,t){return e.limit-t.limit})).reduceRight((function(e,r){return t<r.limit?r.color:e}),r)}t.Z=function(e){var t=e.value,r=e.ranges,i=e.size,a=void 0===i?20:i,l=e.color||o(r,t),c=a/2;return(0,n.jsx)("svg",{width:a,height:a,children:(0,n.jsx)("circle",{cx:c,cy:c,r:c,fill:l})})}},31470:function(e,t,r){var n=r(62230),o=r(85244),i=r(52322),a=(r(2784),r(69506)),l=r(52616),c=r(80982),s=r(41075),d=r(61640),u=r(95319),h=r(62197),g=r(65992),p=r(84196);
1t.Z=function(e){var t=e.options,r=e.name,l=e.value,c=e.onChange,d=e.helperText,g=e.style,p=e.points,x=e.direction,y=e.showHeader,E=void 0===y||y,j=e.showDescription,M=void 0===j||j,k=e.description,L=e.label;return(0,i.jsxs)(a.Z,(0,o.Z)((0,n.Z)({component:"fieldset",fullWidth:!0},e.FormControlProps),{children:[E?(0,i.jsx)(s.ZP,{item:!0,container:!0,xs:!0,alignItems:"stretch",children:"string"===typeof L?(0,i.jsx)(h.Z,{variant:"body2",children:L}):L}):null,M?(0,i.jsx)(m,{variant:"h5",component:"label",children:k}):null,(0,i.jsx)(u.Z,{"aria-label":L,name:r,value:null!==l&&void 0!==l?l:" ",onChange:c,children:(0,i.jsx)(s.ZP,{container:!0,direction:x,style:g,children:t.map((function(t){return(0,i.jsx)(b,{checked:l===t.value,children:(0,i.jsx)(w,(0,o.Z)((0,n.Z)({},e.FormControlLabelProps),{points:p,value:t.value,control:(0,i.jsx)(f,(0,n.Z)({},e.RadioProps)),label:p?(0,i.jsxs)(s.ZP,{container:!0,direction:"row",alignItems:"center",justifyContent:"space-between",wrap:"nowrap",children:[(0,i.jsx)(h.Z,{component:"p",variant:"body2",children:t.label}),(0,i.jsx)(v,{component:"p",children:t.value})]}):(0,i.jsx)(h.Z,{variant:"body2",children:t.label})}))},t.label+t.value)}))})}),d?(0,i.jsx)(Z,{children:d}):null]}))};var m=(0,g.ZP)(h.Z)((function(e){return{marginBottom:e.theme.spacing(.5)}})),v=(0,g.ZP)(h.Z)((function(e){return{padding:e.theme.spacing(.5)}})),f=(0,g.ZP)(d.Z)((function(e){var t=e.theme;return{"&.MuiRadio-root":{"&:hover":{backgroundColor:(0,p.Fq)(t.palette.secondary.main,0)}},"&.Mui-checked":{"&$checked":{"&:hover":{backgroundColor:(0,p.Fq)(t.palette.secondary.main,0)}}}}})),w=(0,g.ZP)(l.Z)((function(e){var t=e.points,r=e.theme;return(0,n.Z)({},t&&{"&.MuiFormControlLabel-root":{display:"flex",marginRight:r.spacing(.5)},"&.MuiFormControlLabel-label":{flexGrow:1}},!t&&{"&.MuiFormControlLabel-root":{width:"100%"},"&.MuiFormControlLabel-label":{width:"100%"}})})),b=(0,g.ZP)("div")((function(e){var t=e.theme,r=e.checked;return(0,o.Z)((0,n.Z)({},r&&{backgroundColor:(0,p.Fq)(t.palette.secondary.main,.04)}),{"&:hover":{backgroundColor:(0,p.Fq)(t.palette.secondary.main,.04)}})})),Z=(0,g.ZP)(c.Z)((function(e){return{"&.Mui-disabled":{color:e.theme.palette.text.primary,opacity:1}}}))},55593:function(e,t,r){r.d(t,{Z:function(){return n}});var n=JSON.parse('{"developedBy":"utviklet av","faviconUrl":"https://nhi.no/favicon.ico","faviconRedirectUrl":"https://github.com/nhi","faviconAlt":"NHI","year":"\xe5r","female":"Jente","male":"Gutt","invalid-result":"Ugyldig resultat","summary":"Oppsummering","copy":"Kopier","copied":"Kopiert","select-one-or-multiple":"Velg 1 eller flere","result":"Resultat","reset":"Nullstill","correctedResult":"Korrigert resultat"}')},33582:function(e,t,r){r.d(t,{Z:function(){return a}});var n=r(17064),o=r(81541),i=r(2784);function a(e){var t=e.locales,r=e.keyPrefix,a=(0,i.useCallback)((function(e,i){var a,l=(0,o.Z)(null!==(a=null===r||void 0===r?void 0:r.split("."))&&void 0!==a?a:[]).concat((0,o.Z)(e.split(".")));if(/test/.test("production"))return"".concat("no",":").concat(l.join("."));var c=t;return l.forEach((function(e){c=c[e],'i18n: translation missing for "'.concat("no",":").concat(l.join("."),'"')})),i&&Object.entries(i).forEach((function(e){var t=(0,n.Z)(e,2),r=t[0],o=t[1],i=new RegExp("{{".concat(r,"}}"));c=c.replace(i,o)})),c}),[r,t]);return[a]}},61303:function(e,t,r){r.d(t,{$:function(){return n.Z}});var n=r(33582)},2289:function(e,t,r){function n(e,t,r){return e.toLocaleString(void 0,{minimumFractionDigits:null!==r&&void 0!==r?r:t,maximumFractionDigits:t})}r.d(t,{X:function(){return n}})},75978:function(e,t,r){r.d(t,{Z:function(){return o}});var n=r(62230);function o(e){var t={};return new URLSearchParams(window.location.search).forEach((function(e,r){var n=isNaN(e)?e:parseInt(e,10);n=i(e)?a(e):n,r in t?Array.isArray(t[r])?t[r].push(n):t[r]=[t[r],n]:t[r]=n})),(0,n.Z)({},e,t)}var i=function(e){return"true"===e||"false"==e||"boolean"===typeof e},a=function(e){return"true"===e.toLocaleLowerCase()}},32253:function(e,t,r){function n(e){return e.charAt(0).toUpperCase()+e.slice(1)}
1function o(e){return e=e.toLocaleString().replace(",","."),parseFloat(e)}r.d(t,{B:function(){return o},f:function(){return n}})}}]); 2//# sourceMappingURL=7928.71797a5509c2214c.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.