1"use strict";(self.webpackChunkmedeasy=self.webpackChunkmedeasy||[]).push([[2737],{78147:($,N,_)=>{_.d(N,{$:()=>I});var y=_(10467),e=_(21626),v=_(54438),P=_(32391),x=_(27187),q=_(78459);let I=(()=>{class E{licenseService;globals;apiCall;constructor(C,g,A){this.licenseService=C,this.globals=g,this.apiCall=A}getStats(){var C=this;return(0,y.A)(function*(){const g=yield C.apiCall.get("userdata/progress/mcqprogress");if(g?.success)return g.data;throw new Error(g?g.msg:"mcqResp variable not defined or boolean: "+g)})()}getMissed(){var C=this;return(0,y.A)(function*(){const g=yield C.apiCall.get("mcq/missed");if(g?.success)return new Set(g.data.map(String));throw new Error(g?.msg??"Could not fetch missed MCQs")})()}static recordAnswer(C,g,A){A?C.delete(String(g)):C.add(String(g))}getMcqsForCourse(C,g,A){var m=this;return(0,y.A)(function*(){let T=(new e.Nl).set("course_id",C).set("courseData",!0);g?T=T.set("video_id",g):A&&(T=T.set("article_id",A));const s=yield m.apiCall.get("license/courseMcqs",T);return s?.success?(s.data.course=m.licenseService.populateCoursesWithLectures([s.data.course])[0],s.data):(s?.msg&&m.globals.setErrorMsg(s.msg),null)})()}static \u0275fac=function(g){return new(g||E)(v.KVO(P.X),v.KVO(x.RX),v.KVO(q.W))};static \u0275prov=v.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})()},17475:($,N,_)=>{_.d(N,{h:()=>A});var y=_(10467),e=_(54438),v=_(21626),P=_(91768),x=_(60177),q=_(27187),I=_(78459);function E(m,T){if(1&m&&(e.j41(0,"div",7)(1,"span",8),e.EFF(2),e.k0s(),e.nrm(3,"br"),e.j41(4,"span",9),e.EFF(5),e.k0s()()),2&m){let s,l;const r=e.XpG(2);e.R7$(2),e.JRh(null==(s=r.getMCQDiffLevel(r.curMCQ.mcq))?null:s.emoji),e.R7$(3),e.JRh(null==(l=r.getMCQDiffLevel(r.curMCQ.mcq))?null:l.label)}}function D(m,T){if(1&m){const s=e.RV6();e.j41(0,"div",10),e.bIt("click",function(){const r=e.eBV(s).$implicit,p=e.XpG(2);return e.Njj(p.svar(r,p.curMCQ.answered))}),e.k0s()}if(2&m){const s=T.$implicit,l=e.XpG(2);e.AVh("selected",l.examMode&&l.selectedAlt==s.seq)("riktig",l.showExplanation&&s.riktig)("feil",l.showExplanation&&s.seq==l.selectedAlt&&!s.riktig),e.Y8G("innerHTML",s.tekst,e.npT)}}function C(m,T){if(1&m&&(e.j41(0,"div",11)(1,"h4"),e.pXf(2,0),e.k0s(),e.nrm(3,"p",12),e.k0s()),2&m){const s=e.XpG(2);e.R7$(3),e.Y8G("innerHTML",s.curMCQ.forklaring,e.npT)}}function g(m,T){if(1&m&&(e.j41(0,"div",2),e.nrm(1,"div",3),e.DNE(2,E,6,2,"div",4)(3,D,1,7,"div",5)(4,C,4,1,"div",6),e.k0s()),2&m){const s=e.XpG();e.AVh("hidden",s.hidden)("mcq-overlay",s.overlay)("answered",s.hasSelected),e.R7$(),e.Y8G("innerHTML",s.curMCQ.spm,e.npT),e.R7$(),e.Y8G("ngIf",s.curMCQ.difficulty),e.R7$(),e.Y8G("ngForOf",s.curMCQ.alternativer),e.R7$(),e.Y8G("ngIf",s.showExplanation)}}let A=(()=>{class m{globals;apiCall;response=new e.bkB;selectedOption=new e.bkB;newMcq;mcq;battle_id;overlay=!1;examMode=!1;hidden;hideDifficulty;curMCQ={mcq:null,alternativer:[],answered:!1,spm:null,forklaring:null,difficulty:null};selectedAlt;keysOfInterest=["Digit1","Digit2","Digit3","Digit4","Numpad1","Numpad2","Numpad3","Numpad4"];newMcqSub;constructor(s,l){this.globals=s,this.apiCall=l}get showExplanation(){return this.hasSelected&&!this.examMode}ngOnDestroy(){this.newMcqSub.unsubscribe()}onkeydown(s){!this.hidden&&this.keysOfInterest.indexOf(s.code)>-1&&this.curMCQ&&s.preventDefault()}onkeyup(s){if(!this.hidden&&this.keysOfInterest.indexOf(s.code)>-1&&this.curMCQ){s.preventDefault();let l=null;"Digit1"==s.code||"Numpad1"==s.code?l=0:"Digit2"==s.code||"Numpad2"==s.code?l=1:"Digit3"==s.code||"Numpad3"==s.code?l=2:("Digit4"==s.code||"Numpad4"==s.code)&&(l=3),this.svar(this.curMCQ.alternativer[l],this.curMCQ.answered)}}get hasSelected(){return null!=this.selectedAlt}svar(s,l){var r=this;return(0,y.A)(function*(){if(s&&(r.examMode||!r.hasSelected)&&(r.selectedAlt=s.seq,r.selectedOption.emit(s),r.response.emit({alt:s,answered:l}),r.globals.userData.bruker&&!r.examMode)){const p=(new v.Nl).set("didmcq","true").set("mcq_id",String(r.mcq.mcq_id)).set("replyChecksum",s.riktig?"c4ca4238a0b923820dcc509a6f75849b":String(P.VV.hashStr(s.tekst))).set("mcqKamp_id",r.battle_id?String(r.battle_id):null).set("bruker_id",String(r.globals.userData.bruker.brukere_id)),R=yield r.apiCall.post("mcq/log",p);R?.success||console.error(`Response unsuccessful: ${R.msg}`)}})()}ngOnInit(){this.newMcq?(this.newMcqSub=this.newMcq.subscribe(s=>{this.mcq=s,this.initMcq()}),this.mcq&&this.initMcq()):this.mcq&&this.initMcq()}initMcq(){this.curMCQ.mcq=this.mcq,this.curMCQ.spm=this.mcq.spm,this.curMCQ.forklaring=this.mcq.forklaring,this.curMCQ.difficulty=this.mcq.difficulty,this.curMCQ.alternativer=[];const s=[this.mcq.alt1,this.mcq.alt2,this.mcq.alt3,this.mcq.alt4];let l=!0,r=0;for(;s.length>0;){const p=Math.round(Math.random()*(s.length-1));this.curMCQ.alternativer.push({riktig:0===p&&l,seq:r++,tekst:s.splice(p,1)[0]}),0===p&&(l=!1)}if("selectedAlt"in this.curMCQ.mcq){const p=this.curMCQ.mcq.selectedAlt;this.selectedAlt=this.curMCQ.alternativer.find(R=>R.tekst==p).seq}else this.selectedAlt=void 0}getMCQDiffLevel(s){if(s.difficulty&&!this.hideDifficulty)return this.globals.difficulties.find(l=>l.cutOffMax>=s.difficulty&&l.cutOffMin<=s.difficulty)}static \u0275fac=function(l){return new(l||m)(e.rXU(q.RX),e.rXU(I.W))};static \u0275cmp=e.VBU({type:m,selectors:[["app-single-mcq"]],hostBindings:function(l,r){1&l&&e.bIt("keydown",function(R){return r.onkeydown(R)},!1,e.tSv)("keyup",function(R){return r.onkeyup(R)},!1,e.tSv)},inputs:{newMcq:"newMcq",mcq:"mcq",battle_id:"battle_id",overlay:"overlay",examMode:"examMode",hidden:"hidden",hideDifficulty:"hideDifficulty"},outputs:{response:"response",selectedOption:"selectedOption"},standalone:!0,features:[e.aNF],decls:1,vars:1,consts:()=>{let s;return s="Forklaring",[s,["class","gameBox gridBox",3,"hidden","mcq-overlay","answered",4,"ngIf"],[1,"gameBox","gridBox"],[1,"spm",3,"innerHTML"],["class","difficulty",4,"ngIf"],["class","alternativ boxRounded",3,"selected","riktig","feil","innerHTML","click",4,"ngFor","ngForOf"],["class","explanation",4,"ngIf"],[1,"difficulty"],[1,"emoji"],[1,"levelDescr"],[1,"alternativ","boxRounded",3,"click","innerHTML"],[1,"explanation"],[3,"innerHTML"]]},template:function(l,r){1&l&&e.DNE(0,g,5,10,"div",1),2&l&&e.Y8G("ngIf",r.curMCQ)},dependencies:[x.MD,x.Sq,x.bT],styles:['.gameBox.gridBox[_ngcontent-%COMP%]{margin:auto;grid-template-columns:auto min-content;grid-template-rows:auto}.gameBox.gridBox[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{max-width:calc(90vw - 2em);align-self:stretch}.gameBox.gridBox[_ngcontent-%COMP%] .spm[_ngcontent-%COMP%]{grid-row:1/1;grid-column:1/1;font-size:1.2em;margin-top:0;max-width:unset;align-self:center}.gameBox.gridBox[_ngcontent-%COMP%] .difficulty[_ngcontent-%COMP%]{grid-row:1/1;grid-column:2/2;text-align:center;padding-left:.1em;min-width:10vw}.gameBox.gridBox[_ngcontent-%COMP%] .difficulty[_ngcontent-%COMP%] span.emoji[_ngcontent-%COMP%]{font-size:2em;opacity:.5}.gameBox.gridBox[_ngcontent-%COMP%] .difficulty[_ngcontent-%COMP%] span.levelDescr[_ngcontent-%COMP%]{font-size:12px}.gameBox.gridBox[_ngcontent-%COMP%] .alternativ[_ngcontent-%COMP%], .gameBox.gridBox[_ngcontent-%COMP%] .explanation[_ngcontent-%COMP%], .gameBox.gridBox[_ngcontent-%COMP%] .nextQ[_ngcontent-%COMP%]{grid-column:1/3}.gameBox.gridBox[_ngcontent-%COMP%] .nextQ[_ngcontent-%COMP%]{text-align:right}.gameBox.gridBox[_ngcontent-%COMP%] .alternativ[_ngcontent-%COMP%]{padding:1em;border:none;margin:.5em 0;background-color:#f0f1f2;cursor:pointer}.gameBox.gridBox[_ngcontent-%COMP%] .alternativ.selected[_ngcontent-%COMP%]{background-color:var(--color-turquoise-full)}.gameBox.gridBox.answered[_ngcontent-%COMP%] .alternativ[_ngcontent-%COMP%]{cursor:default}.gameBox.gridBox[_ngcontent-%COMP%] .riktig[_ngcontent-%COMP%], .gameBox.gridBox[_ngcontent-%COMP%] .mcqRiktig[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:#c7f4bd;background-image:url("/assets/Elementer/Kategorier/Anatomi og fysiologi/Oppgaver/Ikon_Rett.svg");background-position:95% 50%;background-repeat:no-repeat;background-size:4.5%;background-blend-mode:color-dodge}.gameBox.gridBox[_ngcontent-%COMP%] .feil[_ngcontent-%COMP%], .gameBox.gridBox[_ngcontent-%COMP%] .mcqFeil[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:#ffbebe;background-image:url("/assets/Elementer/Kategorier/Anatomi og fysiologi/Oppgaver/Ikon_Feil.svg");background-position:95% 50%;background-repeat:no-repeat;background-size:4.5%;background-blend-mode:color-dodge}.gameBox.gridBox[_ngcontent-%COMP%] .buttonRounded[_ngcontent-%COMP%]{margin-top:2em}.gameBox.gridBox[_ngcontent-%COMP%] .explanation[_ngcontent-%COMP%]{margin-top:1em}.gameBox.gridBox[_ngcontent-%COMP%] .explanation[_ngcontent-%COMP%] h4[_ng
1content-%COMP%]{margin-bottom:0}.gameBox.gridBox[_ngcontent-%COMP%] .explanation[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{white-space:pre-wrap}.gameBox.gridBox.mcq-overlay[_ngcontent-%COMP%] .difficulty[_ngcontent-%COMP%]{min-width:8em}.gameBox.gridBox.mcq-overlay[_ngcontent-%COMP%] .explanation[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-family:inherit;font-size:1.2em;font-weight:300;margin-top:.5em}.gameBox.gridBox.mcq-overlay[_ngcontent-%COMP%] .explanation[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.2em;margin-top:0}.hidden[_ngcontent-%COMP%]{display:none}']})}return m})()},22737:($,N,_)=>{_.r(N),_.d(N,{McqTabComponent:()=>Pe});var y=_(10467),e=_(54438),v=_(74710),P=_(89417),x=_(23953),q=_(17475),I=_(82798),E=_(86467),D=_(82765),C=_(60177),g=_(35463),A=_(27187),m=_(39392),T=_(39669),s=_(78147),l=_(32391),r=_(3634),p=_(52251),R=_(48468),L=_(86600);const H=n=>({visibility:n}),G=()=>({}),V=n=>["./",n];function Y(n,c){if(1&n&&(e.PLo(0,0,1),e.eu8(1),e.YFu()),2&n){const t=e.XpG(2);e.R7$(),e.uP7(t.currentLectures.length-1),e.nnv(0)}}function U(n,c){if(1&n&&(e.j41(0,"h4"),e.PLo(1,0),e.DNE(2,Y,2,1,"ng-container",24),e.YFu(),e.k0s()),2&n){const t=e.XpG();e.R7$(2),e.Y8G("ngIf",(null==t.currentLectures?null:t.currentLectures.length)>1),e.uP7(t.getLectureTitle()),e.nnv(1)}}function K(n,c){if(1&n&&(e.j41(0,"mat-option",33),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.Y8G("value",+t.subject_id),e.R7$(),e.JRh(t.title)}}function z(n,c){if(1&n&&(e.qex(0),e.DNE(1,K,2,2,"mat-option",32),e.bVm()),2&n){const t=c.$implicit,o=e.XpG(3);e.R7$(),e.Y8G("ngIf",o.opendata.subjectHasMcq(t))}}function W(n,c){if(1&n){const t=e.RV6();e.j41(0,"mat-form-field",29)(1,"mat-label"),e.pXf(2,4),e.k0s(),e.j41(3,"mat-select",30),e.bIt("selectionChange",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.filterMCQs())}),e.DNE(4,z,2,1,"ng-container",31),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(3),e.Y8G("formControl",t.subjectSelectControl),e.R7$(),e.Y8G("ngForOf",t.globals.subjects)}}function J(n,c){if(1&n&&(e.j41(0,"mat-option",36),e.EFF(1),e.k0s()),2&n){const t=c.$implicit;e.Y8G("value",+t.kategori_id),e.R7$(),e.JRh(t.tittel)}}function Z(n,c){if(1&n){const t=e.RV6();e.j41(0,"mat-form-field",29)(1,"mat-label"),e.pXf(2,5),e.k0s(),e.j41(3,"mat-select",34),e.bIt("selectionChange",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.filterMCQs())}),e.DNE(4,J,2,2,"mat-option",35),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(3),e.Y8G("disabled",!t.subjectSelectControl.value||0===(null==t.subjectSelectControl.value?null:t.subjectSelectControl.value.length))("formControl",t.categorySelectControl),e.R7$(),e.Y8G("ngForOf",t.filteredCategories)}}function ee(n,c){if(1&n&&(e.j41(0,"mat-option",39),e.EFF(1),e.k0s()),2&n){const t=c.$implicit;e.Y8G("value",t),e.R7$(),e.Lme("",t.emoji," ",t.label,"")}}function te(n,c){if(1&n){const t=e.RV6();e.j41(0,"mat-form-field")(1,"mat-label"),e.pXf(2,6),e.k0s(),e.j41(3,"mat-select",37),e.bIt("selectionChange",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.filterMCQs())}),e.DNE(4,ee,2,3,"mat-option",38),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(3),e.Y8G("multiple",!0)("formControl",t.difficultyFilterSelect)("disabled",t.difficultyDisabledThroughLicense),e.R7$(),e.Y8G("ngForOf",t.globals.difficulties)}}function ne(n,c){1&n&&(e.j41(0,"mat-error"),e.pXf(1,7),e.k0s())}function oe(n,c){if(1&n){const t=e.RV6();e.j41(0,"h4"),e.pXf(1,1),e.k0s(),e.j41(2,"div",25),e.DNE(3,W,5,2,"mat-form-field",26)(4,Z,5,3,"mat-form-field",26)(5,te,5,4,"mat-form-field",24),e.j41(6,"mat-checkbox",27),e.bIt("change",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.onMissedOnlyChange())}),e.pXf(7,2),e.k0s(),e.j41(8,"p",28),e.EFF(9),e.qex(10),e.pXf(11,3),e.bVm(),e.EFF(12," )"),e.k0s(),e.DNE(13,ne,2,0,"mat-error",24),e.k0s()}if(2&n){const t=e.XpG();e.R7$(3),e.Y8G("ngIf",t.globals.subjects),e.R7$(),e.Y8G("ngIf",t.opendata.localData.kategorier),e.R7$(),e.Y8G("ngIf",t.globals.difficulties),e.R7$(),e.Y8G("formControl",t.missedOnlyControl),e.R7$(3),e.Lme("( ",(null==t.mcqs?null:t.mcqs.length)-(null==t.mcqsRed?null:t.mcqsRed.length)," / ",null==t.mcqs?null:t.mcqs.length," "),e.R7$(4),e.Y8G("ngIf",t.difficultyDisabledThroughLicense)}}function ie(n,c){if(1&n&&(e.j41(0,"mat-option",33),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.Y8G("value",+t.subject_id),e.R7$(),e.JRh(t.title)}}function se(n,c){if(1&n&&(e.qex(0),e.DNE(1,ie,2,2,"mat-option",32),e.bVm()),2&n){const t=c.$implicit,o=e.XpG(3);e.R7$(),e.Y8G("ngIf",o.opendata.subjectHasMcq(t))}}function _e(n,c){if(1&n){const t=e.RV6();e.j41(0,"mat-form-field",29)(1,"mat-label"),e.pXf(2,10),e.k0s(),e.j41(3,"mat-select",30),e.bIt("selectionChange",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.filterMCQs())}),e.DNE(4,se,2,1,"ng-container",31),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(3),e.Y8G("formControl",t.subjectSelectControl),e.R7$(),e.Y8G("ngForOf",t.globals.subjects)}}function le(n,c){if(1&n&&(e.j41(0,"mat-option",36),e.EFF(1),e.k0s()),2&n){const t=c.$implicit;e.Y8G("value",+t.kategori_id),e.R7$(),e.JRh(t.tittel)}}function ce(n,c){if(1&n){const t=e.RV6();e.j41(0,"mat-form-field",29)(1,"mat-label"),e.pXf(2,11),e.k0s(),e.j41(3,"mat-select",34),e.bIt("selectionChange",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.filterMCQs())}),e.DNE(4,le,2,2,"mat-option",35),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(3),e.Y8G("disabled",!t.subjectSelectControl.value||0===(null==t.subjectSelectControl.value?null:t.subjectSelectControl.value.length))("formControl",t.categorySelectControl),e.R7$(),e.Y8G("ngForOf",t.filteredCategories)}}function ae(n,c){if(1&n&&(e.j41(0,"mat-option",39),e.EFF(1),e.k0s()),2&n){const t=c.$implicit;e.Y8G("value",t),e.R7$(),e.Lme("",t.emoji," ",t.label,"")}}function re(n,c){if(1&n){const t=e.RV6();e.j41(0,"mat-form-field")(1,"mat-label"),e.pXf(2,12),e.k0s(),e.j41(3,"mat-select",37),e.bIt("selectionChange",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.filterMCQs())}),e.DNE(4,ae,2,3,"mat-option",38),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(3),e.Y8G("multiple",!0)("formControl",t.difficultyFilterSelect)("disabled",t.difficultyDisabledThroughLicense),e.R7$(),e.Y8G("ngForOf",t.globals.difficulties)}}function de(n,c){1&n&&(e.j41(0,"mat-error"),e.pXf(1,13),e.k0s())}function ge(n,c){if(1&n){const t=e.RV6();e.j41(0,"div",25),e.DNE(1,_e,5,2,"mat-form-field",26)(2,ce,5,3,"mat-form-field",26)(3,re,5,4,"mat-form-field",24),e.j41(4,"mat-checkbox",27),e.bIt("change",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.onMissedOnlyChange())}),e.pXf(5,8),e.k0s(),e.j41(6,"p",28),e.EFF(7),e.qex(8),e.pXf(9,9),e.bVm(),e.EFF(10," )"),e.k0s(),e.DNE(11,de,2,0,"mat-error",24),e.k0s()}if(2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.globals.subjects),e.R7$(),e.Y8G("ngIf",t.opendata.localData.kategorier),e.R7$(),e.Y8G("ngIf",t.globals.difficulties),e.R7$(),e.Y8G("formControl",t.missedOnlyControl),e.R7$(3),e.Lme("( ",(null==t.mcqs?null:t.mcqs.length)-(null==t.mcqsRed?null:t.mcqsRed.length)," / ",null==t.mcqs?null:t.mcqs.length," "),e.R7$(4),e.Y8G("ngIf",t.difficultyDisabledThroughLicense)}}function me(n,c){if(1&n){const t=e.RV6();e.j41(0,"app-single-mcq",40),e.bIt("response",function(i){e.eBV(t);const a=e.XpG();return e.Njj(a.mcqResponse(i))}),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("newMcq",t.newMcqEvent)("mcq",t.curMCQ)}}function ue(n,c){if(1&n&&(e.j41(0,"div",41)(1,"p"),e.EFF(2),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.JRh(t.message)}}function Ce(n,c){if(1&n){const t=e.RV6();e.j41(0,"app-medeasy-button",42),e.bIt("onClick",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.randomMcq())}),e.pXf(1,14),e.k0s()}2&n&&e.HbH("tealBG")}function Me(n,c){1&n&&(e.j41(0,"app-medeasy-button",43),e.pXf(1,15),e.k0s()),2&n&&e.Y8G("routerLink",e.eq3(3,V,e.lJ4(2,G)))("queryParams",e.lJ4(5,G))}function fe(n,c){if(1&n){const t=e.RV6();e.j41(0,"a",46),e.bIt("click",function(){const i=e.eBV(t).$implicit,a=e.XpG(2);return e.Njj(a.videoService.goToLecture(i))}),e.EFF(1),e.k0s()}if(2&n){const t=c.$implicit,o=e.XpG(2);e.R7$(),e.Lme(" ",o.opendata.getCategory(t).tittel,": ",t.tittel," ")}}function pe(n,c){if(1&n&&(e.qex(0),e.j41(1,"div",44)(2,"h5"),e.pXf(3,16),e.k0s(),e.j41(4,"ul"),e.DNE(
15,fe,2,2,"a",45),e.k0s()(),e.bVm()),2&n){const t=e.XpG();e.R7$(5),e.Y8G("ngForOf",t.relevantVideos)}}function he(n,c){if(1&n){const t=e.RV6();e.j41(0,"a",46),e.bIt("click",function(){const i=e.eBV(t).$implicit,a=e.XpG(2);return e.Njj(a.videoService.goToLecture(i))}),e.EFF(1),e.k0s()}if(2&n){const t=c.$implicit,o=e.XpG(2);e.R7$(),e.Lme(" ",o.opendata.getCategoryById(t.category_id).tittel,": ",t.title," ")}}function Oe(n,c){if(1&n&&(e.qex(0),e.j41(1,"div",44)(2,"h5"),e.pXf(3,17),e.k0s(),e.j41(4,"ul"),e.DNE(5,he,2,2,"a",45),e.k0s()(),e.bVm()),2&n){const t=e.XpG();e.R7$(5),e.Y8G("ngForOf",t.relevantArticles)}}let Pe=(()=>{class n{licenseService;globals;route;opendata;seo;storage;levelService;videoService;mcqService;subjectSelectControl=new P.hs;categorySelectControl=new P.hs;difficultyFilterSelect=new P.MJ(null);missedOnlyControl=new P.MJ(!1);mcqs;mcqsRed;nAnswered=0;curMCQ;message;fallbackMode=!1;isInFallbackRecursion=!1;newMcqEvent=new e.bkB(!1);difficultyDisabledThroughLicense;currentLectures;keysOfInterest=["ArrowRight"];nCorr;licenses;video_ids;article_ids;subscriptions=[];missedIds=null;missedLoading=!1;filtersRestored=!1;Number=Number;constructor(t,o,i,a,d,B,u,b,h){this.licenseService=t,this.globals=o,this.route=i,this.opendata=a,this.seo=d,this.storage=B,this.levelService=u,this.videoService=b,this.mcqService=h}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe())}get relevantVideos(){if(this.opendata.localData.mcq_video){const t=this.opendata.localData.mcq_video.filter(i=>i.mcq_id==this.curMCQ.mcq_id),o=[];for(const i of t){const a=this.opendata.localData.video.find(d=>d.video_id==i.video_id);a&&o.push(a)}return o}return[]}get relevantArticles(){if(this.opendata.localData.mcq_article){const t=this.opendata.localData.mcq_article.filter(i=>i.mcq_id==this.curMCQ.mcq_id),o=[];for(const i of t){const a=this.opendata.localData.article.find(d=>d.article_id==i.article_id);a&&o.push(a)}return o}return[]}onkeydown(t){this.keysOfInterest.indexOf(t.code)>-1&&this.curMCQ&&t.preventDefault()}onkeyup(t){this.keysOfInterest.indexOf(t.code)>-1&&this.curMCQ&&(t.preventDefault(),"ArrowRight"==t.code&&this.curMCQ.answered&&this.randomMcq())}ngOnInit(){var t=this;return(0,y.A)(function*(){t.seo.setPageTitle("Flervalgsoppgaver"),t.subscriptions.push(t.route.data.subscribe(o=>{o.videos&&(t.opendata.localData.video=o.videos),o.articles&&(t.opendata.localData.article=o.articles),o.subjects&&(t.globals.subjects=o.subjects),o.categories&&(t.opendata.localData.kategorier=o.categories),t.filterMCQs(o)})),t.setUpFilterListener(),t.missedOnlyControl.value&&(yield t.loadMissed()),t.licenseService.fetchStats(t.globals.userData.bruker.brukere_id).then(o=>{t.licenses=o.courses,t.updateDifficultyDisabledStatus()}).catch(o=>console.error(o))})()}setUpFilterListener(){this.subscriptions.push(this.route.params.subscribe(t=>{let o=[],i=[];if(t.video_ids&&""!==t.video_ids.toString().trim()){const a=t.video_ids.toString();this.video_ids=a.split(",")?.map(d=>Number(d)).filter(d=>!isNaN(d)&&d>0)}else this.video_ids=null;if(t.article_ids&&""!==t.article_ids.toString().trim()){const a=t.article_ids.toString();this.article_ids=a.split(",")?.map(d=>Number(d)).filter(d=>!isNaN(d)&&d>0)}else this.article_ids=null;if(t.subject_ids&&(o=t.subject_ids.toString().split(",").map(Number)),t.category_ids){i=t.category_ids.toString().split(",").map(Number);for(const d of i){const B=this.opendata.getCategoryById(d);B&&-1===o.indexOf(B.seksjon)&&o.push(B.seksjon)}}0==o.length&&0==i.length?(console.log("Fetching stored filters..."),this.getStoredFilters()):(o&&o.length>0&&this.subjectSelectControl.setValue(o),i&&i.length>0&&this.categorySelectControl.setValue(i)),this.filtersRestored=!0,this.filterMCQs()}))}filterMCQs(t){const o=t?.mcq??this.opendata.localData.mcq;if(!o)return;this.storeFilters();let i=[],a=[];if(this.video_ids&&this.opendata.localData.mcq_video)for(const u of this.video_ids){const b=Number(u),h=this.opendata.localData.mcq_video.filter(f=>Number(f.video_id)===b)?.map(f=>f.mcq_id);i=i.concat(h)}if(this.article_ids&&this.opendata.localData.mcq_article)for(const u of this.article_ids){const b=Number(u),h=this.opendata.localData.mcq_article.filter(f=>Number(f.article_id)===b)?.map(f=>f.mcq_id);a=a.concat(h)}if((this.video_ids&&this.video_ids.length>0||this.article_ids&&this.article_ids.length>0)&&!this.isInFallbackRecursion){const u=i.concat(a);if(!(u.length>=1)){console.log("No MCQs found for video/article, falling back to category filtering"),this.currentLectures=null,this.fallbackMode=!0,this.isInFallbackRecursion=!0;const h=this.video_ids,f=this.article_ids;return this.video_ids=null,this.article_ids=null,this.filterMCQs(t),this.video_ids=h,this.article_ids=f,void(this.isInFallbackRecursion=!1)}{if(this.mcqs=Object.assign([],o.filter(O=>u.includes(O.mcq_id))),console.log(`Video/article filtering: Found ${this.mcqs.length} MCQs from ${u.length} MCQ IDs`),0===this.mcqs.length&&u.length>0){console.log("Debug: Sample MCQ IDs from video:",u.slice(0,5)),console.log("Debug: Sample MCQ IDs from main array:",o.slice(0,5).map(k=>k.mcq_id));const O=u[0],S=o.find(k=>k.mcq_id===O);console.log(`Debug: MCQ ID ${O} found in main array:`,!!S)}const h=this.opendata.localData.video?.filter(O=>this.video_ids?.includes(O.video_id))||[],f=this.opendata.localData.article?.filter(O=>this.article_ids?.includes(O.article_id))||[];this.currentLectures=[].concat(h,f),this.fallbackMode=!1}this.message=0===this.mcqs.length?"Ingen oppgaver funnet for valgte filtre":null}else this.fallbackMode=!1,this.mcqs=Object.assign([],o.filter(u=>{const b=!this.subjectSelectControl.value||0===this.subjectSelectControl.value.length||this.subjectSelectControl.value.map(S=>Number(S)).indexOf(Number(u.subject_id))>-1,h=!u.difficulty||!this.difficultyFilterSelect.value||0===this.difficultyFilterSelect.value.length||this.difficultyFilterSelect.value.some(S=>S.cutOffMax>=u.difficulty&&S.cutOffMin<=u.difficulty),f=!this.categorySelectControl.value||0===this.categorySelectControl.value.length||this.categorySelectControl.value.map(S=>Number(S)).indexOf(Number(u.kategori_id))>-1,O=!this.missedOnlyControl.value||!!this.missedIds?.has(String(u.mcq_id));return b&&h&&f&&O}));this.mcqsRed=[],this.randomMcq(),this.updateDifficultyDisabledStatus()}randomMcq(){let t=!1;this.missedOnly&&this.mcqs?.length>0&&0===this.mcqsRed.length&&(this.mcqs=this.mcqs.filter(o=>this.missedIds.has(String(o.mcq_id))),t=0===this.mcqs.length),this.mcqs&&this.mcqs.length>0?(this.message=null,0===this.mcqsRed.length&&(this.mcqsRed=(0,T.A)(this.mcqs)),this.curMCQ=this.mcqsRed.pop(),this.curMCQ.answered=!1,this.newMcqEvent.emit(this.curMCQ)):(this.curMCQ=null,t?this.message="Bra jobba! Du har n\xE5 svart riktig p\xE5 alle sp\xF8rsm\xE5lene du hadde bommet p\xE5 her.":this.missedOnly&&this.missedLoading?this.message="Henter sp\xF8rsm\xE5lene du har bommet p\xE5 \u2026":this.missedOnly&&this.missedIds?this.message="Du har ikke bommet p\xE5 noen sp\xF8rsm\xE5l med valgte filtre.":(console.error("No MCQs available with current filters"),this.message="Ingen oppgaver funnet med valgte filtre"))}get missedOnly(){return!!this.missedOnlyControl.value&&!this.currentLectures}onMissedOnlyChange(){var t=this;return(0,y.A)(function*(){!t.missedOnlyControl.value||t.missedIds||t.missedLoading?t.filterMCQs():yield t.loadMissed()})()}loadMissed(){var t=this;return(0,y.A)(function*(){t.missedLoading=!0,t.filterMCQs();try{t.missedIds=yield t.mcqService.getMissed()}catch(o){console.error(o),t.missedOnlyControl.value&&(t.missedOnlyControl.setValue(!1),t.globals.setErrorMsg("Kunne ikke hente sp\xF8rsm\xE5lene du har bommet p\xE5. Pr\xF8v igjen senere."))}finally{t.missedLoading=!1}t.filterMCQs()})()}mcqResponse(t){const o=t.alt;t.answered&&t.answered||this.curMCQ?.answered||(this.nAnswered++,this.curMCQ.answered=!0,this.missedIds&&s.$.recordAnswer(this.missedIds,this.curMCQ.mcq_id,!!o.riktig),o.riktig&&this.nCorr++,this.nAnswered%10==0&&this.levelService.triggerLevelUpModal())}getLectureTitle(){return g.r.isVideo(this.currentLectures[0])?this.currentLectures[0].tittel:g.r.isArticle(this.currentLectures[0])?this.currentLectures[0].title:void 0}get filteredCategories(){if(!this.opendata.localData.kategorier||!this.subjectSelectControl.value||0===this.subjectSelectControl.value.length)return[];const t=this.subjectSelectControl.value.map(Number);return this.opendata.localData.kategorier.filter(o=>this.opendata.catHasMCQ(o)&&t.indexOf(Number(o.seksjon))>-1)}updateDifficultyDisabledStatus(){this.difficultyDisabledThroughLicense=this.licenses?.some(t=>{const o=this.getSelectedCats();if(o&&t.mcqCats)for(const i of o)if(t.mcqCats.indexOf(i)>-1)return!0;return!1}),this.difficultyDisabledThroughLicense&&this.difficultyFilterSelect.reset()}getSelectedCats(){let t=[];if(0===this.categorySelectControl.value?.length)for(const o of this.subjectSelectControl.value?.map(Number)||[]){const i=this.opendata.getCatsInSubject(this.opendata.getSubjectById(o));for(const a of i)t.push(Number(a.kategori_id))}else t=this.categorySelectControl.value?.map(Number)||[];return t}getStoredFilters(){const t=this.storage.get("mcq_filters");if(t&&void 0!==t.subject_ids&&void 0!==t.category_ids){this.subjectSelectControl.setValue(t.subject_ids),this.categorySelectControl.setValue(t.category_ids);const o=Array.isArray(t.difficulty_labels)?t.difficulty_labels:[];this.difficultyFilterSelect.setValue((this.globals.difficulties??[]).filter(i=>o.includes(i.label))),this.missedOnlyControl.setValue(!!t.missed_only)}}storeFilters(){if(!this.filtersRestored)return;const t={subject_ids:this.subjectSelectControl.value,category_ids:this.categorySelectControl.value,difficulty_labels:this.difficultyFilterSelect.value?.map(o=>o.label)??[],missed_only:this.missedOnlyControl.value};this.storage.set("mcq_filters",t)}static \u0275fac=function(o){return new(o||n)(e.rXU(l.X),e.rXU(A.RX),e.rXU(v.nX),e.rXU(r.w),e.rXU(p.B),e.rXU(m.Wd),e.rXU(R.a),e.rXU(g.r),e.rXU(s.$))};static \u0275cmp=e.VBU({type:n,selectors:[["app-mcq-tab"]],hostBindings:function(o,i){1&o&&e.bIt("keydown",function(d){return i.onkeydown(d)},!1,e.tSv)("keyup",function(d){return i.onkeyup(d)},!1,e.tSv)},standalone:!0,features:[e.aNF],decls:12,vars:9,consts:()=>{let t,o,i,a,d,B,u,b,h,f,O,S,k,F,Q,X,w,j;return t="Flervalgsoppgaver for " + "\ufffd0\ufffd" + "" + "\ufffd*2:1\ufffd\ufffd#1:1\ufffd" + " og " + "\ufffd0:1\ufffd" + " andre forelesninger" + "\ufffd/#1:1\ufffd\ufffd/*2:1\ufffd" + "",o="Flervalgsoppgaver for kategorien (ingen oppgaver funnet for valgte forelesninger)",i="Bare sp\xF8rsm\xE5l jeg har bommet p\xE5",a="oppgaver",d="Tema",B="Kategori",u="Niv\xE5",b="Du kan ikke velge vanskelighetsgrad, siden disse oppgavene inng\xE5r i en av dine kursplaner.",h="Bare sp\xF8rsm\xE5l jeg har bommet p\xE5",f="oppgaver",O="Tema",S="Kategori",k="Niv\xE5",F="Du kan ikke velge vanskelighetsgrad, siden disse oppgavene inng\xE5r i en av dine kursplaner.",Q="Neste sp\xF8rsm\xE5l",X="G\xE5 til alle flervalgsoppgaver",w="Relevante videoer:",j="Relevante artikler:",[t,o,i,a,d,B,u,b,h,f,O,S,k,F,Q,X,w,j,[1,"frontBox",3,"ngStyle"],[1,"cardContainer"],[3,"newMcq","mcq"],[1,"nextQ"],[3,"class","onClick",4,"ngIf"],[3,"routerLink","queryParams",4,"ngIf"],[4,"ngIf"],[1,"filterStrip"],["class","longer",4,"ngIf"],[1,"missedOnly",3,"change","formControl"],[1,"nAss"],[1,"longer"],["multiple","",3,"selectionChange","formControl"],[4,"ngFor","ngForOf"],["role","option",3,"value",4,"ngIf"],["role","option",3,"value"],["multiple","",3,"selectionChange","disabled","formControl"],["role","listbox",3,"value",4,"ngFor","ngForOf"],["role","listbox",3,"value"],[3,"selectionChange","multiple","formControl","disabled"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[3,"response","newMcq","mcq"],[1,"no-mcq-message"],[3,"onClick"],[3,"routerLink","queryParams"],[1,"relVideos"],["class","video","role","link",3,"click",4,"ngFor","ngForOf"],["role","link",1,"video",3,"click"]]},template:function(o,i){1&o&&(e.j41(0,"div",18)(1,"div",19),e.DNE(2,U,3,2,"h4")(3,oe,14,7)(4,ge,12,7)(5,me,1,2,"app-single-mcq",20)(6,ue,3,1),e.j41(7,"div",21),e.DNE(8,Ce,2,2,"app-medeasy-button",22)(9,Me,2,6,"app-medeasy-button",23),e.k0s(),e.DNE(10,pe,6,1,"ng-container",24)(11,Oe,6,1,"ng-container",24),e.k0s()()),2&o&&(e.Y8G("ngStyle",e.eq3(7,H,i.opendata.localData.mcq?"visible":"hidden")),e.R7$(2),e.vxM(2,i.currentLectures?2:i.fallbackMode?3:4),e.R7$(3),e.vxM(5,i.curMC
1Q?5:i.message?6:-1),e.R7$(3),e.Y8G("ngIf",null==i.curMCQ?null:i.curMCQ.answered),e.R7$(),e.Y8G("ngIf",i.currentLectures||i.fallbackMode),e.R7$(),e.Y8G("ngIf",i.opendata.localData.mcq_video&&(null==i.curMCQ?null:i.curMCQ.answered)&&(null==i.relevantVideos?null:i.relevantVideos.length)>0),e.R7$(),e.Y8G("ngIf",i.opendata.localData.mcq_article&&(null==i.curMCQ?null:i.curMCQ.answered)&&(null==i.relevantArticles?null:i.relevantArticles.length)>0))},dependencies:[C.MD,C.Sq,C.bT,C.B3,E.RG,E.rl,E.nJ,E.TL,I.Ve,I.VO,L.wT,D.g7,D.So,P.YN,P.BC,P.X1,P.l_,q.h,x.W,v.iI,v.Wk],styles:[".frontBox[_ngcontent-%COMP%]{padding-top:1em}#homeHeader[_ngcontent-%COMP%]{margin:1em auto;padding-bottom:1em;width:500px;max-width:calc(95% - 60px)}@media screen and (min-width: 600px){#homeHeader[_ngcontent-%COMP%]{width:calc(500px + .625*(100vw - 600px))}}@media screen and (min-width: 1400px){#homeHeader[_ngcontent-%COMP%]{width:1000px}}#homeHeader[_ngcontent-%COMP%] .subMenu[_ngcontent-%COMP%]{display:grid;grid-auto-flow:column;grid-template-rows:42px;justify-items:center;align-items:center}@media screen and (min-width: 600px){#homeHeader[_ngcontent-%COMP%] .subMenu[_ngcontent-%COMP%]{grid-template-rows:calc(42px + .0125*(100vw - 600px))}}@media screen and (min-width: 1400px){#homeHeader[_ngcontent-%COMP%] .subMenu[_ngcontent-%COMP%]{grid-template-rows:52px}}#homeHeader[_ngcontent-%COMP%] .subMenu[_ngcontent-%COMP%] > .menuItem[_ngcontent-%COMP%]{display:grid;grid-template-columns:100%;grid-template-rows:7fr 2.5fr;margin:0 auto;align-items:end;justify-items:center;cursor:pointer;outline:none}#homeHeader[_ngcontent-%COMP%] .subMenu[_ngcontent-%COMP%] > .menuItem[_ngcontent-%COMP%]:hover img[_ngcontent-%COMP%]{opacity:1}#homeHeader[_ngcontent-%COMP%] .subMenu[_ngcontent-%COMP%] > .menuItem[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{grid-row:2;font-size:12px}@media screen and (max-width: 600px){#homeHeader[_ngcontent-%COMP%] .subMenu[_ngcontent-%COMP%] > .menuItem[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:none}}#homeHeader[_ngcontent-%COMP%] .subMenu[_ngcontent-%COMP%] > .menuItem[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{grid-row:1;width:30px;opacity:.4}@media screen and (min-width: 600px){#homeHeader[_ngcontent-%COMP%] .subMenu[_ngcontent-%COMP%] > .menuItem[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:calc(30px + .0375*(100vw - 600px))}}@media screen and (min-width: 1400px){#homeHeader[_ngcontent-%COMP%] .subMenu[_ngcontent-%COMP%] > .menuItem[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:60px}}#homeHeader[_ngcontent-%COMP%] .subMenu[_ngcontent-%COMP%] > .menuItem[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{opacity:.9}.card[_ngcontent-%COMP%]{width:100%;margin:20px auto;transition:.4s;padding-bottom:1.5em}.card[_ngcontent-%COMP%] img.close[_ngcontent-%COMP%]{float:right;margin-right:10px;transform:scale(.7)}h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%]{font-family:proximanovawf,sans-serif;font-weight:300}.note.af[_ngcontent-%COMP%], .note-nested-btn.af[_ngcontent-%COMP%], .header-hr.af[_ngcontent-%COMP%], .icon-bg.af[_ngcontent-%COMP%]{background:#01cfca}.note.sykdl[_ngcontent-%COMP%], .note.cpr[_ngcontent-%COMP%], .note.ekg[_ngcontent-%COMP%], .note-nested-btn.sykdl[_ngcontent-%COMP%], .note-nested-btn.cpr[_ngcontent-%COMP%], .note-nested-btn.ekg[_ngcontent-%COMP%], .header-hr.sykdl[_ngcontent-%COMP%], .header-hr.cpr[_ngcontent-%COMP%], .header-hr.ekg[_ngcontent-%COMP%], .icon-bg.sykdl[_ngcontent-%COMP%], .icon-bg.cpr[_ngcontent-%COMP%], .icon-bg.ekg[_ngcontent-%COMP%]{background:#fc6164}.note.mikro[_ngcontent-%COMP%], .note-nested-btn.mikro[_ngcontent-%COMP%], .header-hr.mikro[_ngcontent-%COMP%], .icon-bg.mikro[_ngcontent-%COMP%]{background:#99cb55}.note.medreg[_ngcontent-%COMP%], .note-nested-btn.medreg[_ngcontent-%COMP%], .header-hr.medreg[_ngcontent-%COMP%], .icon-bg.medreg[_ngcontent-%COMP%]{background:#ffc933}.note.histo[_ngcontent-%COMP%], .note-nested-btn.histo[_ngcontent-%COMP%], .header-hr.histo[_ngcontent-%COMP%], .icon-bg.histo[_ngcontent-%COMP%]{background:#f4cda7}.note.cellebio[_ngcontent-%COMP%], .note.psyk[_ngcontent-%COMP%], .note-nested-btn.cellebio[_ngcontent-%COMP%], .note-nested-btn.psyk[_ngcontent-%COMP%], .header-hr.cellebio[_ngcontent-%COMP%], .header-hr.psyk[_ngcontent-%COMP%], .icon-bg.cellebio[_ngcontent-%COMP%], .icon-bg.psyk[_ngcontent-%COMP%]{background:#b979c6}.note.smittevern[_ngcontent-%COMP%], .note-nested-btn.smittevern[_ngcontent-%COMP%], .header-hr.smittevern[_ngcontent-%COMP%], .icon-bg.smittevern[_ngcontent-%COMP%]{background:#6ae2a6}.container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:2em}.container.lastNotes[_ngcontent-%COMP%] .nested[_ngcontent-%COMP%]{display:grid;grid-template-columns:60px auto;cursor:pointer}.container.lastNotes[_ngcontent-%COMP%] .nested[_ngcontent-%COMP%] .note-icon[_ngcontent-%COMP%]{grid-row:1/2}.container.lastNotes[_ngcontent-%COMP%] .nested[_ngcontent-%COMP%] .note-title[_ngcontent-%COMP%]{grid-column:2;grid-row:1}.container.lastNotes[_ngcontent-%COMP%] .nested[_ngcontent-%COMP%] .note-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:12px}@media screen and (min-width: 600px){.container.lastNotes[_ngcontent-%COMP%] .nested[_ngcontent-%COMP%] .note-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:calc(12px + .015*(100vw - 600px))}}@media screen and (min-width: 1400px){.container.lastNotes[_ngcontent-%COMP%] .nested[_ngcontent-%COMP%] .note-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:24px}}.container.lastNotes[_ngcontent-%COMP%] .nested[_ngcontent-%COMP%] .note-preview[_ngcontent-%COMP%]{grid-column:2;grid-row:2}.container.lastNotes[_ngcontent-%COMP%] .nested[_ngcontent-%COMP%] .note-preview[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;display:inline-block;text-overflow:ellipsis;word-wrap:break-word;overflow:hidden;max-height:90px;display:-webkit-box;white-space:pre-wrap;--webkit-line-clamp: 2;color:var(--color-text-50);font-size:1em}.note-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;width:100vw}.note-nested[_ngcontent-%COMP%]{display:grid;grid-template-columns:10% 70% 15% 5%;align-items:center;cursor:pointer;border-radius:5px}@media screen and (min-width: 600px){.note-nested[_ngcontent-%COMP%]{border-radius:calc(5px + .00625*(100vw - 600px))}}@media screen and (min-width: 1400px){.note-nested[_ngcontent-%COMP%]{border-radius:10px}}.note-img[_ngcontent-%COMP%]{width:60px;height:60px}.note-nested.af[_ngcontent-%COMP%], .container-pr.af[_ngcontent-%COMP%]{background:#d1f8f7}.note-nested.sykdl[_ngcontent-%COMP%], .note-nested.cpr[_ngcontent-%COMP%], .note-nested.ekg[_ngcontent-%COMP%], .container-pr.sykdl[_ngcontent-%COMP%], .container-pr.cpr[_ngcontent-%COMP%], .container-pr.ekg[_ngcontent-%COMP%]{background:#ffe8e9}.note-nested.mikro[_ngcontent-%COMP%], .container-pr.mikro[_ngcontent-%COMP%]{background:#eaf5d7}.note-nested.medreg[_ngcontent-%COMP%], .container-pr.medreg[_ngcontent-%COMP%]{background:#fff3d8}.note-nested.histo[_ngcontent-%COMP%], .container-pr.histo[_ngcontent-%COMP%]{background:#fce2ca}.note-nested.cellebio[_ngcontent-%COMP%], .note-nested.psyk[_ngcontent-%COMP%], .container-pr.cellebio[_ngcontent-%COMP%], .container-pr.psyk[_ngcontent-%COMP%]{background:#f8d9ff}.note-nested.smittevern[_ngcontent-%COMP%], .container-pr.smittevern[_ngcontent-%COMP%]{background:#e1f9ed}.btn-down[_ngcontent-%COMP%], .btn-up[_ngcontent-%COMP%]{width:40px;height:40px;mask:url(Arrow_down.39846a24bbf73899.svg);-webkit-mask-size:auto;mask-size:auto}.btn-up[_ngcontent-%COMP%]{transform:rotate(180deg)}.note-nested[_ngcontent-%COMP%] > .note-expand[_ngcontent-%COMP%]{grid-column:1/span 4}.note-nested[_ngcontent-%COMP%] > .note-expand[_ngcontent-%COMP%] > .note-expand-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:20px;padding:0 40px}.note-expand-grid[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;margin-top:.8em}.header-hr[_ngcontent-%COMP%]{align-items:center;width:93%;height:1px;border:none;background:#d3d3d3}.notes-list-hr[_ngcontent-%COMP%]{border:none;height:1px;background:#e4e4e4}.note-expand-grid[_ngcontent-%COMP%] .notes-list-hr[_ngcontent-%COMP%]:last-child hr[_ngcontent-%COMP%]{display:none}.card-note[_ngcontent-%COMP%]{width:100%;margin:20px auto;border-radius:5px}@media screen and (min-width: 600px){.card-note[_ngcontent-%COMP%]{border-radius:calc(5px + .00625*(100vw - 600px))}}@media screen and (min-width: 1400px){.card-note[_ngcontent-%COMP%]{border-radius:10px}}@media screen and (max-width: 800px){.container[_ngcontent-%COMP%], .nested[_ngcontent-%COMP%]{grid-template-columns:1fr}.title-note-div[_ngcontent-%COMP%]{margin-top:0}.note-nested[_ngcontent-%COMP%]{grid-template-columns:20% 50% 20% 10%}.note-nested[_ngcontent-%COMP%] > .note-expand[_ngcontent-%COMP%] > .note-expand-grid[_ngcontent-%COMP%]{padding:0 25px}.note-img[_ngcontent-%COMP%], .note[_ngcontent-%COMP%]{width:40px;height:40px}.btn-down[_ngcontent-%COMP%], .btn-up[_ngcontent-%COMP%]{width:20px;height:20px}.wrapper-pr[_ngcontent-%COMP%]{grid-template-columns:1fr}.nested-pr[_ngcontent-%COMP%]:nth-last-child(1):nth-child(odd){grid-column:1/span 1}}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ng
1content-%COMP%]{text-align:center;margin-top:0;margin-bottom:.5em}.frontBox.head[_ngcontent-%COMP%]{padding-top:2em;padding-bottom:0}h3[_ngcontent-%COMP%], p[_ngcontent-%COMP%]{font-family:proximanovawf,sans-serif}.frontBox[_ngcontent-%COMP%]{max-width:unset}mat-spinner[_ngcontent-%COMP%]{margin:2em auto}.filterStrip[_ngcontent-%COMP%]{padding-top:.7em;text-align:center}.filterStrip[_ngcontent-%COMP%] p.nAss[_ngcontent-%COMP%]{color:#666;text-align:center;font-size:.7em;margin-top:1em}mat-form-field.longer[_ngcontent-%COMP%]{min-width:300px}@media screen and (max-width: 800px){mat-form-field[_ngcontent-%COMP%]{min-width:250px}}.relVideos[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin-bottom:.5em}.relVideos[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] > a.video[_ngcontent-%COMP%]{font-size:inherit;display:list-item}.nextQ[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:1em;margin-top:2em}.no-mcq-message[_ngcontent-%COMP%]{text-align:center;padding:2em;color:#666;font-style:italic}h4[_ngcontent-%COMP%]{margin-bottom:1em}h4[_ngcontent-%COMP%]:has( + .filterStrip)[_ngcontent-%COMP%]{color:#666;font-size:.95em}.filterStrip[_ngcontent-%COMP%] .missedOnly[_ngcontent-%COMP%]{margin:0 .5em}"]})}return n})()}}]);
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.