PageSourceSearch

https://nhi.no/_next/static/chunks/307.b0820b4dd92bc761.js

js nhi.no collected 2026-10-02 04:25:52 UTC 9,685 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[307],{70307:function(e,n,i){i.r(n),i.d(n,{default:function(){return y}});var t=i(92563),r=i(17064),o=i(81541),c=i(52322),a=i(2784),l=i(49927),s=i(79107),d=JSON.parse('{"title":"HAS-BLED","description":"HAS-BLED er en risikosk\xe5r for bl\xf8dningsrisiko ved antikoagulasjonsbehandling hos pasienter med atrieflimmer","score":"Sk\xe5r","summary":"Oppsummering","result":"Resultat","resultString":{"high":{"bold":"HAS-BLED sk\xe5r \u22653 poeng","text":"indikerer betydelig \xf8kt bl\xf8dningsrisiko."},"low":{"bold":"HAS-BLED sk\xe5r <3 poeng","text":"indikerer lav bl\xf8dningsrisiko."}},"inputs":{"hypertention":{"header":"Hypertensjon","description":"Systolisk BT > 160 mmHg"},"creatinin":{"header":"Unormal nyre- eller leverfunksjon","description":"Kreatinin > 200"},"creatinin2":{"description":"ALAT > 3 x \xf8vre referanseverdi"},"stroke":{"header":"Slag","description":"Tidligere hjerneslag"},"bleed":{"header":"Bl\xf8dning","description":"Bl\xf8dningsdisposisjon eller tidligere st\xf8rre bl\xf8dning"},"labile":{"header":"Labile INR-m\xe5linger","description":"> 60% av tiden utenfor referanseomr\xe5de"},"older":{"header":"Eldre/alder","description":"\u2265 66 \xe5r"},"medicine":{"header":"Legemiddel eller alkohol","description":"Platehemmer eller NSAID"},"medicine2":{"description":"Alkohol > 8 enheter per uke"}}}'),u=i(61303),h=i(75978),p={hypertention:{variable:"H",points:"1"},creatinin:{variable:"A",points:"1"},creatinin2:{points:"1"},stroke:{variable:"S",points:"1"},bleed:{variable:"B",points:"1"},labile:{variable:"L",points:"1"},older:{variable:"E",points:"1"},medicine:{variable:"D",points:"1"},medicine2:{points:"1"}},m=i(47746),v=i(65992),f=i(84196),b=i(62197),g=i(86432),x=i(41075),k=i(61035),Z=i(48289),j=function(e){var n=e.t,i=e.score<3?"low":"high";return(0,c.jsxs)(b.Z,{variant:"body1",component:"p",children:[(0,c.jsx)("b",{children:n("resultString.".concat(i,".bold"))})," ",n("resultString.".concat(i,".text"))]})},y=function(e){var n=(0,t.Z)({},e),i=(0,h.Z)(n),v=i.width,f=i.title,k=i.description,y=i.locale,S=i.variant,C=void 0===S?"outlined":S,E=i.showFooter,_=void 0===E||E,A=i.showSummary,T=void 0===A||A,B=(0,a.useState)([{points:1,name:"hypertention",checked:!1},{points:1,name:"creatinin",checked:!1,checked_2:!1,double:!0},{points:1,name:"stroke",checked:!1},{points:1,name:"bleed",checked:!1},{points:1,name:"labile",checked:!1},{points:1,name:"older",checked:!1},{points:1,name:"medicine",checked:!1,checked_2:!1,double:!0}]),L=B[0],N=B[1],D=(0,m.Z)(),H=(0,g.Z)(D.breakpoints.up("sm")),I=(0,r.Z)((0,u.$)({locale:y,locales:d}),1)[0],R=L.reduce((function(e,n){return n.checked&&n.checked_2?e+n.points+n.points:n.checked||n.checked_2?e+n.points:e}),0),F=function(e,n,i,t){var r,a,l="".concat(e).concat(t?"2":""),s=t?"":I("inputs.".concat(l,".header")),d=I("inputs.".concat(l,".description"));return(0,c.jsxs)(w,{container:!0,item:!0,justifyContent:H?"space-evenly":"flex-start",alignContent:"center",alignItems:"center",onClick:function(){return function(e,n){var i=(0,o.Z)(L);n?i[e].checked_2=!i[e].checked_2:i[e].checked=!i[e].checked,N(i)}(i,t)},children:[(0,c.jsx)(x.ZP,{item:!0,sm:1,xs:12,children:t?void 0:(0,c.jsx)(b.Z,{variant:"h6",children:null===(r=p[l])||void 0===r?void 0:r.variable})}),(0,c.jsx)(x.ZP,{item:!0,sm:4,xs:12,children:t?void 0:(0,c.jsx)(b.Z,{children:H?s:(0,c.jsx)("b",{children:s})})}),(0,c.jsx)(x.ZP,{item:!0,sm:5,xs:12,children:(0,c.jsx)(b.Z,{children:d})}),(0,c.jsx)(x.ZP,{item:!0,sm:1,xs:10,children:(0,c.jsx)(P,{checked:n,id:l,inputProps:{"aria-label":"Checkbox for ".concat(d)}})}),(0,c.jsx)(x.ZP,{item:!0,sm:1,xs:2,children:(0,c.jsx)(b.Z,{variant:"subtitle2",children:null===(a=p[l])||void 0===a?void 0:a.points})})]})};return(0,c.jsxs)(l.Z,{title:null!==f&&void 0!==f?f:I("title"),description:null!==k&&void 0!==k?k:I("description"),showFooter:_,locale:y,width:v,children:[(0,c.jsx)(x.ZP,{container:!0,style:{marginTop:"1rem"},children:L.map((function(e,n){return(0,c.jsxs)(x.ZP,{container:!0,children:[0!==n&&(0,c.jsx)(x.ZP,{container:!0,item:!0,style:{paddingTop:"1rem",paddingBottom:"1rem"},children:(0,c.jsx)(x.ZP,{item:!0,xs:12,children:(0,c.jsx)(Z.Z,{variant:"middle"})})}),F(e.name,e.checked,n,!1),e.double&&F(e.name,e.checked_2,n,!0)]},e.name)}))}),(0,c.jsx)(x.ZP,{container:!0,justifyContent:"space-between",alignItems:"baseline",children:(0,c.jsxs)(b.Z,{variant:"body1",children:[(0,c.jsxs)("strong",{children:[I("result"),":"]})," ",R]})}),(0,c.jsx)(x.ZP,{container:!0,justifyContent:"space-between",alignItems:"baseline",children:(0,c.jsx)(x.ZP,{item:!0,xs:!0,children:(0,c.jsx)(j,{t:I,score:R})})}),T?(0,c.jsx)(s.Z,{label:I("summary"),locale:y,value:{header:[I("summary"),"".concat(I("title")," ").concat(I("score")),R].join(": "),lines:function(e){var n=[],i=e<3?"low":"high",t=L.filter((function(e){return e.checked||e.checked_2}));return n.push(I("resultString.".concat(i,".bold"))+" "+I("resultString.".concat(i,".text"))),t.forEach((function(e){e.checked&&n.push(I("inputs.".concat(e.name,".description"))),e.checked_2&&n.push(I("inputs.".concat(e.name,"2.description")))})),n}(R)},TextAreaProps:{variant:C}}):null]})},w=(0,v.ZP)(x.ZP)((function(e){var n=e.theme;return{"&:hover":{backgroundColor:(0,f.Fq)(n.palette.secondary.main,.04),cursor:"pointer"}}})),P=(0,v.ZP)(k.Z)((function(e){var n=e.theme;return{"&.MuiCheckbox-root":{"&:hover":{backgroundColor:(0,f.Fq)(n.palette.secondary.main,0),cursor:"pointer"}},"&.Mui-checked":{"&$checked":{"&:hover":{backgroundColor:(0,f.Fq)(n.palette.secondary.main,0),cursor:"pointer"}}}}}))}
1,49927:function(e,n,i){var t=i(98240),r=i(52322),o=(i(2784),i(92096)),c=i(7671),a=i(62197),l=i(47746),s=i(75978);n.Z=function(e){var n=e.children,i=(0,t.Z)(e,["children"]),d=(0,s.Z)(i),u=d.width,h=void 0===u?"auto":u,p=d.title,m=void 0===p?"":p,v=d.description,f=void 0===v?"":v,b=(0,l.Z)(),g=m,x=f,k=Boolean(g||x);return(0,r.jsx)(o.Z,{variant:"outlined",style:{width:h,padding:b.spacing()},children:(0,r.jsxs)(c.Z,{component:"form",children:[k?(0,r.jsxs)("div",{style:{marginBottom:b.spacing(2)},children:[g?"string"===typeof g?(0,r.jsx)(a.Z,{variant:"h3",component:"h2",children:g}):g:null,x?"string"===typeof x?(0,r.jsx)(a.Z,{color:"textSecondary",children:x}):x:null]}):null,n]})})}},79107:function(e,n,i){var t=i(22710),r=i(62230),o=i(85244),c=i(17064),a=i(5163),l=i(52322),s=i(2784),d=i(711),u=i(51654),h=i(62048),p=i(45596),m=i(62197),v=i(47746),f=i(65992),b=i(61303),g=i(55593),x=(0,f.ZP)(p.Z)((function(e){return{"& .MuiInputBase-input.Mui-disabled":{WebkitTextFillColor:e.theme.palette.text.primary}}}));n.Z=function(e){var n=e.TextAreaProps,i=e.value,p=e.label,f=(0,c.Z)(s.useState(!1),2),k=f[0],Z=f[1],j=[i.header,i.lines.map((function(e){return 0===e.search(/\n/)?e:"".concat(null!==(n=i.delimiter)&&void 0!==n?n:"- ").concat(e);var n})).join("\n")].join("\n"),y=function(){var e=(0,t.Z)((function(){return(0,a.__generator)(this,(function(e){switch(e.label){case 0:return"clipboard"in navigator?[4,navigator.clipboard.writeText(j)]:[3,2];case 1:return e.sent(),[3,3];case 2:"clipboardData"in window&&window.clipboardData.setData("Text",j),e.label=3;case 3:return Z(!0),[2]}}))}));return function(){return e.apply(this,arguments)}}();s.useEffect((function(){var e=setTimeout((function(){k&&Z(!1)}),1e3);return function(){return clearTimeout(e)}}),[k]),s.useEffect((function(){Z(!1)}),[j]);var w=(0,c.Z)((0,b.$)({locales:g.Z}),1)[0],P=(0,v.Z)();return(0,l.jsx)("div",{style:{paddingTop:P.spacing(3)},children:(0,l.jsxs)(m.Z,{variant:"h3",component:"label",children:[p,(0,l.jsxs)("div",{style:{position:"relative",marginTop:P.spacing(),minHeight:"50%"},children:[(0,l.jsx)(x,(0,o.Z)((0,r.Z)({multiline:!0,fullWidth:!0,maxRows:i.lines.length+2,disabled:!0},n),{value:j})),(0,l.jsx)(h.Z,{style:{position:"absolute",bottom:0,right:0,margin:P.spacing()},variant:"contained",disabled:!i.lines.length||k,startIcon:k?(0,l.jsx)(d.Z,{}):(0,l.jsx)(u.Z,{}),color:"primary",onClick:y,size:"small",children:w(k?"copied":"copy")})]})]})})}},55593:function(e,n,i){i.d(n,{Z:function(){return t}});var t=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,n,i){i.d(n,{Z:function(){return c}});var t=i(17064),r=i(81541),o=i(2784);function c(e){var n=e.locales,i=e.keyPrefix,c=(0,o.useCallback)((function(e,o){var c,a=(0,r.Z)(null!==(c=null===i||void 0===i?void 0:i.split("."))&&void 0!==c?c:[]).concat((0,r.Z)(e.split(".")));if(/test/.test("production"))return"".concat("no",":").concat(a.join("."));var l=n;return a.forEach((function(e){l=l[e],'i18n: translation missing for "'.concat("no",":").concat(a.join("."),'"')})),o&&Object.entries(o).forEach((function(e){var n=(0,t.Z)(e,2),i=n[0],r=n[1],o=new RegExp("{{".concat(i,"}}"));l=l.replace(o,r)})),l}),[i,n]);return[c]}},61303:function(e,n,i){i.d(n,{$:function(){return t.Z}});var t=i(33582)},75978:function(e,n,i){i.d(n,{Z:function(){return r}});var t=i(62230);function r(e){var n={};return new URLSearchParams(window.location.search).forEach((function(e,i){var t=isNaN(e)?e:parseInt(e,10);t=o(e)?c(e):t,i in n?Array.isArray(n[i])?n[i].push(t):n[i]=[n[i],t]:n[i]=t})),(0,t.Z)({},e,n)}var o=function(e){return"true"===e||"false"==e||"boolean"===typeof e},c=function(e){return"true"===e.toLocaleLowerCase()}}}]);
2//# sourceMappingURL=307.b0820b4dd92bc761.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.