1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[828],{4828:(kt,E,r)=>{r.r(E),r.d(E,{FullLearningModule:()=>Lt});var h=r(177),C=r(1188),d=r(4054),i=r(9640),H=r(3887),j=r(8380),N=r(5193);(0,i.VP)("[FullLearnCard] Load Questions");const w=(0,i.VP)("[FullLearnCard] Load All Questions"),$=((0,i.VP)("[FullLearnCard] Load Answers",(0,i.xk)()),(0,i.VP)("[FullLearnCard] Save Statistic",(0,i.xk)())),M=(0,i.VP)("[FullLearnCard] Save Questions",(0,i.xk)()),U=((0,i.VP)("[FullLearnCard] Save All Questions",(0,i.xk)()),(0,i.VP)("[FullLearnCard] Save Test Exam Status",(0,i.xk)())),Y=(0,i.VP)("[FullLearnCard] Save Statistic",(0,i.xk)()),W=(0,i.VP)("[FullLearnCard] Save Answers",(0,i.xk)()),F=(0,i.VP)("[FullLearnCard] Loading",(0,i.xk)()),A=(0,i.VP)("[FullLearnCard] Load Last Statistic",(0,i.xk)()),V=(0,i.VP)("[FullLearnCard] Last Statistic",(0,i.xk)()),b=(0,i.VP)("[FullLearnCard] Load Statistic Overview",(0,i.xk)()),Q=(0,i.VP)("[FullLearnCard] Statistic Overview",(0,i.xk)()),z=(0,i.VP)("[FullLearnCard] Clean Up Questions"),B=(0,i.VP)("[FullLearnCard] Clean Up Test Exam Status"),G="fullLearning",Z=(0,i.vy)({questions:[],answers:[],isLoading:!1,lastStatistic:void 0,statisticOverview:void 0,testExamStatus:null},(0,i.on)(M,(e,{questions:o})=>({...e,questions:o})),(0,i.on)(U,(e,{testExamStatus:o})=>({...e,testExamStatus:o})),(0,i.on)(W,(e,{answers:o})=>({...e,answers:o})),(0,i.on)(Y,(e,{statistic:o})=>({...e,statistic:o})),(0,i.on)(F,(e,{isLoading:o})=>({...e,isLoading:o})),(0,i.on)(V,(e,{lastStatistic:o})=>({...e,lastStatistic:o})),(0,i.on)(Q,(e,{statisticOverview:o})=>({...e,statisticOverview:o})),(0,i.on)(z,e=>({...e,questions:[]})),(0,i.on)(B,e=>({...e,testExamStatus:null})));var J=r(1413),u=r(6977),_=r(4572),I=r(4005),m=r(3332),R=r(2553),q=r(1383),g=r(2893),D=r(5174),tt=r(6319),et=r(5226);const p=(0,i.UX)(G),st=(0,i.Mz)(p,e=>e?.questions),it=(0,i.Mz)(p,e=>e?.testExamStatus),nt=((0,i.Mz)(p,e=>e?.answers),(0,i.Mz)(p,e=>e?.isLoading),(0,i.Mz)(p,e=>e?.lastStatistic)),at=(0,i.Mz)(p,e=>e?.statisticOverview);var f=r(5312),t=r(4438),rt=r(5524),ot=r(4374),lt=r(3236),ct=r(1807);function ut(e,o){if(1&e&&(t.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3",4),t.EFF(4),t.k0s()(),t.j41(5,"p",5),t.EFF(6,"Std."),t.k0s()(),t.j41(7,"h3",6),t.EFF(8,":"),t.k0s(),t.j41(9,"div",2)(10,"div",3)(11,"h3",4),t.EFF(12),t.k0s()(),t.j41(13,"p",5),t.EFF(14,"Min."),t.k0s()(),t.j41(15,"h3",6),t.EFF(16,":"),t.k0s(),t.j41(17,"div",2)(18,"div",3)(19,"h3",4),t.EFF(20),t.k0s()(),t.j41(21,"p",5),t.EFF(22,"Sek."),t.k0s()()()),2&e){const s=t.XpG();t.R7$(4),t.SpI(" ",s.displayTime.hours," "),t.R7$(8),t.SpI(" ",s.displayTime.minutes," "),t.R7$(8),t.SpI(" ",s.displayTime.seconds," ")}}let P=(()=>{class e{constructor(){this.timeUp=new t.bkB,this.restTime=0}ngOnInit(){this.startTimer()}ngOnDestroy(){this.timerSubscription&&this.timerSubscription.unsubscribe()}startTimer(){const s=new Date(this.endTime);this.updateRestTime(s),this.timerSubscription=function dt(e=0,o=lt.E){return e<0&&(e=0),(0,ct.O)(e,e,o)}(1e3).subscribe(()=>{this.updateRestTime(s),0===this.restTime&&(this.timeUp.emit(),this.timerSubscription.unsubscribe())})}updateRestTime(s){const n=new Date,a=s.getTime()-n.getTime();this.restTime=Math.max(0,Math.floor(a/1e3))}get displayTime(){return{hours:Math.floor(this.restTime/3600),minutes:Math.floor(this.restTime%3600/60),seconds:this.restTime%60}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-timer"]],inputs:{startTime:"startTime",endTime:"endTime"},outputs:{timeUp:"timeUp"},standalone:!0,features:[t.aNF],decls:1,vars:1,consts:[["class","flex items-start justify-center w-full gap-2",4,"ngIf"],[1,"flex","items-start","justify-center","w-full","gap-2"],[1,"timer","w-16"],[1,""],[1,"font-semibold","text-2xl","text-center","text-result-incorrect"],[1,"text-sm","text-gray-tertiary","mt-1","text-center","w-full"],[1,"font-manrope","font-semibold","text-2xl","text-gray-900"]],template:function(n,a){1&n&&t.DNE(0,ut,23,3,"div",0),2&n&&t.Y8G("ngIf",a.restTime>0)},dependencies:[h.MD,h.bT]})}}return e})();var X=r(8303),O=r(4382);let pt=(()=>{class e{constructor(){this.displayInfo=new t.bkB}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-info"]],outputs:{displayInfo:"displayInfo"},decls:10,vars:0,consts:[[1,"grid","gap-16","card","bg-white","relative","p-8","grow-0","shadow-lg"],[1,"text-center"],[1,"grid","gap-8","md:grid-cols-2"],["ngSkipHydration","","title","Speicherung","description","Die Speicherung, wo Sie sich gerade im Test befinden und welche Fragen\n Sie bereits beantwortet haben, erfolgt automatisch. Sie k\xf6nnen\n jederzeit den Browser schlie\xdfen oder einen anderen Test starten und sp\xe4ter weitermachen.","icon","/assets/icons/learncard/theoriepruefung-fragenkatalog-speichern.svg"],["ngSkipHydration","","title","Auswertung","description","Eine detaillierte Auswertung und statistische \xdcbersicht der\n Lernergebnisse erhalten Sie, sobald Sie mind. eine Frage beantwortet haben automatisch in der Test-\xdcbersicht.","icon","/assets/icons/learncard/theoriepruefung-vorbereitung-auswertung-statistik.svg"],["ngSkipHydration","","title","Maus/Touch","de
1scription","Sie k\xf6nnen auf beliebige Antworten und Buttons klicken. Wenn Sie eine\n Antwort ausw\xe4hlen, wird diese farblich markiert. Um die Auswahl\n aufzuheben, klicken Sie erneut auf die Antwort.","icon","/assets/icons/learncard/kostenlos-theoriepruefung-mouse.svg"],["ngSkipHydration","","title","Tastatur","description","Mit der Enter- oder Leertaste l\xf6sen Sie den Button Aufl\xf6sen und\n Weiter aus. Mit den Buchstaben A, B, C, D oder den Zahlen\n 1, 2, 3, 4 k\xf6nnen Sie eine Antwort ausw\xe4hlen.","icon","/assets/icons/learncard/kostenlos-theoriepruefung-keyboard.svg"],[1,"btn-primary",3,"click"]],template:function(n,a){1&n&&(t.j41(0,"div",0)(1,"h2",1),t.EFF(2,"Informationen zu den Lernkarten"),t.k0s(),t.j41(3,"div",2),t.nrm(4,"app-icon-block",3)(5,"app-icon-block",4)(6,"app-icon-block",5)(7,"app-icon-block",6),t.k0s(),t.j41(8,"button",7),t.bIt("click",function(){return a.displayInfo.emit(null)}),t.EFF(9," Jetzt mit den Fragen starten "),t.k0s()())},dependencies:[O.A],encapsulation:2})}}return e})(),ht=(()=>{class e{constructor(){this.displayInfo=new t.bkB}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-info-exam-mode"]],outputs:{displayInfo:"displayInfo"},decls:10,vars:0,consts:[[1,"grid","gap-16","card","bg-white","relative","p-8","grow-0","shadow-lg"],[1,"text-center"],[1,"grid","gap-8","md:grid-cols-2"],["ngSkipHydration","","title","Pr\xfcfungszeit","description","Die Pr\xfcfungszeit hat begonnen. Sie k\xf6nnen die Pr\xfcfung jederzeit verlassen und wieder starten, die Zeit l\xe4uft jedoch weiter. Es kann nicht pausiert werden. Die Pr\xfcfung kann vorzeitig beendet werden.","icon","/assets/icons/learncard/fragentrainer-pruefungszeit.svg"],["ngSkipHydration","","title","Auswertung","description","Eine detaillierte Auswertung und statistische \xdcbersicht der\n Lernergebnisse erhalten Sie, sobald die Pr\xfcfungszeit verstrichen ist oder Sie den Test vorzeitig beenden.","icon","/assets/icons/learncard/theoriepruefung-vorbereitung-auswertung-statistik.svg"],["ngSkipHydration","","title","Maus/Touch","description","Sie k\xf6nnen auf beliebige Antworten und Buttons klicken. Wenn Sie eine\n Antwort ausw\xe4hlen, wird diese farblich markiert. Um die Auswahl\n aufzuheben, klicken Sie erneut auf die Antwort.","icon","/assets/icons/learncard/kostenlos-theoriepruefung-mouse.svg"],["ngSkipHydration","","title","Tastatur","description","Mit der Enter- oder Leertaste l\xf6sen Sie den Button Aufl\xf6sen und\n Weiter aus. Mit den Buchstaben A, B, C, D oder den Zahlen\n 1, 2, 3, 4 k\xf6nnen Sie eine Antwort ausw\xe4hlen.","icon","/assets/icons/learncard/kostenlos-theoriepruefung-keyboard.svg"],[1,"btn-primary",3,"click"]],template:function(n,a){1&n&&(t.j41(0,"div",0)(1,"h2",1),t.EFF(2,"Informationen zu den Lernkarten"),t.k0s(),t.j41(3,"div",2),t.nrm(4,"app-icon-block",3)(5,"app-icon-block",4)(6,"app-icon-block",5)(7,"app-icon-block",6),t.k0s(),t.j41(8,"button",7),t.bIt("click",function(){return a.displayInfo.emit(null)}),t.EFF(9," Jetzt mit den Fragen starten "),t.k0s()())},dependencies:[O.A],encapsulation:2})}}return e})();function mt(e,o){if(1&e&&t.nrm(0,"app-breadcrumb",6),2&e){const s=t.XpG();t.Y8G("breadcrumbs",s.breadcrumbs)}}function ft(e,o){if(1&e){const s=t.RV6();t.j41(0,"app-timer",7),t.bIt("timeUp",function(){t.eBV(s);const a=t.XpG();return t.Njj(a.timeUp())}),t.k0s()}if(2&e){const s=t.XpG();t.Y8G("startTime",s.testExamStatus.startTime)("endTime",s.testExamStatus.endTime)}}function gt(e,o){if(1&e){const s=t.RV6();t.j41(0,"app-info",10),t.bIt("displayInfo",function(){t.eBV(s);const a=t.XpG(2);return a.displayInfo=!1,a.finishedAllQuestions=!1,t.Njj(a.scrollUp())}),t.k0s()}}function vt(e,o){if(1&e){const s=t.RV6();t.j41(0,"app-info-exam-mode",10),t.bIt("displayInfo",function(){t.eBV(s);const a=t.XpG(2);return a.displayInfo=!1,a.finishedAllQuestions=!1,t.Njj(a.scrollUp())}),t.k0s()}}function xt(e,o){if(1&e){const s=t.RV6();t.j41(0,"app-learn-card",8),t.bIt("update",function(a){t.eBV(s);const l=t.XpG();return t.Njj(l.updateStatistic(a))})("finished",function(){t.eBV(s);const a=t.XpG();return t.Njj(a.clearLocalStorage())}),t.DNE(1,gt,1,0,"app-info",9)(2,vt,1,0,"app-info-exam-mode",9),t.k0s()}if(2&e){const s=t.XpG();t.Y8G("isLoggedIn",s.isLoggedIn)("questions",s.questions)("title",s.title)("chapters",s.chapters)("displayInfo",s.displayInfo)("questionIndex",s.questionIndex)("statisticResult",s.statisticResult)("isExamMode",!!s.testExamStatus)("isTestMode",!s.testExamStatus),t.R7$(),t.Y8G("ngIf",!s.testExamStatus),t.R7$(),t.Y8G("ngIf",!!s.testExamStatus)}}function St(e,o){if(1&e){const s=t.RV6();t.j41(0,"div",11)(1,"p",12),t.EFF(2,"Pr\xfcfungszeit ist abgelaufen."),t.k0s(),t.j41(3,"a",13),t.bIt("click",function(){t.eBV(s);const a=t.XpG();return t.Njj(a.goBack())}),t.EFF(4,"zur\xfcck"),t.k0s()()}}let Ft=(()=>{class e{constructor(s,n,a,l,c,L){this.route=s,this.store=n,this.examStore=a,this.coreStore=l,this.authService=c,this.location=L,this.isLoggedIn=!1,this.questions=[],this.title="",this.chapters=[],this.displayInfo=!1,this.finishedAllQuestions=!1,this.questionIndex=0,this.testExamStatus=null,this.breadcrumbs=[{label:"Startseite",url:"/"},{label:"Dashboard",url:"/dashboard"}],this.isMobile=f.c.isMobile,this.testId=0,this._destroy$=new J.B,this.store.dispatch(z()),this.store.dispatch(B())}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}ngOnInit(){this.route.data.pipe((0,u.Q)(this._destroy$)).subscribe(s=>{const n=s.id||1,a=!!s.isExamMode;this.coreStore.dispatch(I.ij({selectedExam:n})),this.examStore.dispatch(tt.HL({id:n}));const l=R._e.find(c=>c.id===n);if(a){const c=(0,D.eo)(n);this.coreStore.dispatch(I.X5({selectedTest:c}))}else{const c=(0,D.G7)(n);this.coreStore.dispatch(I.X5({selectedTest:c}))}l&&(this.breadcrumbs.push({label:l.shortTitle,url:`/meine-pruefungen/${l.link||""}`}),this.breadcrumbs.push(a?{label:"Pr\xfcfungsmodus",url:`/${g.v.get("meine-pruefungen")||""}/${l.link||""}/${g.v.get("exam-mode")||""}`}:{label:"Fragentrainer",url:`/${g.v.get("meine-pruefungen")||""}/${l.link||""}/${g.v.get("fragentrainer")||""}`}))}),this.store.dispatch(w()),this.store.select(it).pipe((0,u.Q)(this._destroy$)).subscribe(s=>this.testExamStatus=s),this.coreStore.select(m.Uh).pipe((0,u.Q)(this._destroy$)).subscribe(s=>{this.testId=s||0,this.store.dispatch(A({testId:this.testId})),this.store.dispatch(b({testId:this.testId}))}),this.authService.isAuthenticated().pipe((0,u.Q)(this._destroy$)).subscribe(s=>this.isLoggedIn=s),(0,_.z)([this.store.select(st),this.store.select(nt)]).pipe((0,u.Q)(this._destroy$)).subscribe(([s,n])=>{if(this.questions=s,this.questionIndex=0,n&&s.length>0){const a=this.questions.findIndex(l=>l.id===n.questionId);a>=0&&a+1<s.length?(this.questionIndex=a+1,this.displayInfo=!1):a>=s.length?(this.questionIndex=0,this.displayInfo=!1):this.displayInfo=!0}}),this.examStore.select(et.jd).pipe((0,u.Q)(this._destroy$)).subscribe(s=>
1{s&&(this.chapters=s.chapters?.map(n=>({id:n.id,orderId:n.orderId,title:n.translations[0].title})))}),this.coreStore.select(m.zo).pipe((0,u.Q)(this._destroy$)).subscribe(s=>{this.title=R._e?.find(n=>n.id===s)?.shortTitle||""}),this.store.select(at).pipe((0,u.Q)(this._destroy$)).subscribe(s=>{this.statisticResult=s||{correct:0,incorrect:0,unanswered:0}})}scrollUp(){(0,q.ao)("pageTop")}clearLocalStorage(){this.questionIndex=0,this.finishedAllQuestions=!1,this.statisticResult={incorrect:0,correct:0,unanswered:0}}updateStatistic(s){s.result.testId=this.testId,this.store.dispatch($({statistic:s.result})),this.store.dispatch(b({testId:this.testId}))}timeUp(){this.finishedAllQuestions=!0}goBack(){this.location.back()}static{this.\u0275fac=function(n){return new(n||e)(t.rXU(C.nX),t.rXU(i.il),t.rXU(i.il),t.rXU(i.il),t.rXU(rt.u),t.rXU(h.aZ))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["app-full-learning"]],decls:6,vars:4,consts:[[1,"grid","gap-8"],[1,"flex","justify-between","items-center","gap-8"],[3,"breadcrumbs",4,"ngIf"],["class","bg-gray-50 p-2 rounded-lg",3,"startTime","endTime","timeUp",4,"ngIf"],[3,"isLoggedIn","questions","title","chapters","displayInfo","questionIndex","statisticResult","isExamMode","isTestMode","update","finished",4,"ngIf"],["class","min-h-full p-64 rounded-lg bg-result-incorrect flex flex-col gap-16 justify-center",4,"ngIf"],[3,"breadcrumbs"],[1,"bg-gray-50","p-2","rounded-lg",3,"timeUp","startTime","endTime"],[3,"update","finished","isLoggedIn","questions","title","chapters","displayInfo","questionIndex","statisticResult","isExamMode","isTestMode"],[3,"displayInfo",4,"ngIf"],[3,"displayInfo"],[1,"min-h-full","p-64","rounded-lg","bg-result-incorrect","flex","flex-col","gap-16","justify-center"],[1,"text-4xl","text-white","text-center"],[1,"text-white","text-center",3,"click"]],template:function(n,a){1&n&&(t.j41(0,"div",0)(1,"div",1),t.DNE(2,mt,1,1,"app-breadcrumb",2)(3,ft,1,2,"app-timer",3),t.k0s(),t.DNE(4,xt,3,11,"app-learn-card",4)(5,St,5,0,"div",5),t.k0s()),2&n&&(t.R7$(2),t.Y8G("ngIf",!a.isMobile),t.R7$(),t.Y8G("ngIf",a.testExamStatus),t.R7$(),t.Y8G("ngIf",!a.finishedAllQuestions),t.R7$(),t.Y8G("ngIf",a.finishedAllQuestions))},dependencies:[h.bT,ot._,P,X.D,pt,ht],encapsulation:2})}}return e})();var v=r(7673),y=r(8141),bt=r(3993),x=r(5558),T=r(6354),S=r(9437),It=r(1626);let yt=(()=>{class e{constructor(s,n,a){this.actions$=s,this.http=n,this.store=a,this.loadAllQuestions$=(0,d.EH)(()=>this.actions$.pipe((0,d.gp)(w),(0,y.M)(()=>this.store.dispatch(F({isLoading:!0}))),(0,bt.E)(this.store.select(m.zo),this.store.select(m.Uh),this.store.select(m.QS)),(0,x.n)(([,l,c,L])=>this.http.post(f.c.apiUrl+"/question/full-or-trial",{examId:l||0,languageId:L||1,testId:c||0}).pipe((0,y.M)(k=>this.store.dispatch(U({testExamStatus:k.testExamStatus}))),(0,T.T)(k=>M({questions:k.data})),(0,y.M)(()=>this.store.dispatch(F({isLoading:!1}))),(0,S.W)(()=>
1(0,v.of)({type:"[FullLearning] Load Question Error"})))))),this.saveStatisticResult$=(0,d.EH)(()=>this.actions$.pipe((0,d.gp)($),(0,x.n)(l=>this.http.post(f.c.apiUrl+"/statistic",l.statistic).pipe((0,S.W)(()=>(0,v.of)({type:"[FullLearning] Save Statistic Error"}))))),{dispatch:!1}),this.getLastQuestion$=(0,d.EH)(()=>this.actions$.pipe((0,d.gp)(A),(0,x.n)(l=>this.http.get(`${f.c.apiUrl}/statistic/${l.testId}/last`).pipe((0,T.T)(c=>V({lastStatistic:c})),(0,S.W)(()=>(0,v.of)({type:"[FullLearning] Get Last Statistic Error"})))))),this.getStatisticOverview$=(0,d.EH)(()=>this.actions$.pipe((0,d.gp)(b),(0,x.n)(l=>this.http.get(`${f.c.apiUrl}/statistic/${l.testId}/overview`).pipe((0,T.T)(c=>Q({statisticOverview:c})),(0,S.W)(()=>(0,v.of)({type:"[FullLearning] Get Statistic Overview Error"}))))))}static{this.\u0275fac=function(n){return new(n||e)(t.KVO(d.En),t.KVO(It.Qq),t.KVO(i.il))}}static{this.\u0275prov=t.jDH({token:e,factory:e.\u0275fac})}}return e})();const Tt=[{path:"",component:Ft}];let Lt=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=t.$C({type:e})}static{this.\u0275inj=t.G2t({imports:[h.MD,C.iI.forChild(Tt),H.G,i.md.forFeature(G,Z),i.md.forFeature(j.zy,j.Es),d.Vm.forFeature([yt,N.T]),P,X.D]})}}return e})()}}]);
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.