PageSourceSearch

https://learn.readle-app.com/default-src_app_pages_grammar-quiz_grammar-quiz_page_ts.cca49dcab655457d.js

js readle-app.com collected 2026-10-01 12:08:54 UTC 88,979 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([["default-src_app_pages_grammar-quiz_grammar-quiz_page_ts"],{86095(L,T,g){g.d(T,{a:()=>kt});var k=g(89204),l=g(66563),O=g(59510),G=g(20948),u=function(n){return n.MULTIPLE_CHOICE="multipleChoice",n.MULTIPLE_CHOICE_AUDIO="multipleChoiceAudio",n.TRUE_OR_FALSE="trueOrFalse",n.FILL_IN_THE_BLANKS="fillInTheBlanks",n.WRITE="write",n.CONJUGATE="conjugate",n.WORD_CLOUD="wordCloud",n.WORD_CLOUD_AUDIO="wordCloudAudio",n.MATCH_THE_PAIRS="matchThePairs",n.TYPE_THE_WORD="typeTheWord",n}(u||{}),y=g(26416),p=g(34966),P=g(45312),x=g(12870),E=g(38299),$=g(22821),A=g(13151),Q=g(12232),R=g(63608),e=g(36124),C=g(23123),q=g(79748),I=g(496);const F=["swiper"],j=["selectedWordsRef"],W=n=>({bg:n}),Y=(n,o)=>({biggerFont:n,TTW:o}),w=n=>({biggerFont:n}),H=n=>({width:n}),D=(n,o,t)=>({"result-correct":n,"result-incorrect":o,"skip-question":t}),X=(n,o)=>({bg:n,webview:o}),S=(n,o,t)=>({"answer-blank-container":n,"answer-correct":o,"answer-wrong":t});function N(n,o){if(1&n&&(e.j41(0,"div",10),e.nrm(1,"div",11),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.xc7("width",t.quizProgress,"%")}}function B(n,o){if(1&n&&e.nrm(0,"div",26),2&n){const t=e.XpG(3);e.Y8G("innerHTML",t.languageService.label.txt_quiz_missing_word,e.npT)}}function V(n,o){if(1&n&&e.nrm(0,"div",26),2&n){const t=e.XpG(3);e.Y8G("innerHTML",t.languageService.label.txt_quiz_fill_in_the_blank,e.npT)}}function U(n,o){if(1&n&&e.nrm(0,"div",26),2&n){const t=e.XpG(3);e.Y8G("innerHTML",t.languageService.label.txt_quiz_true_or_false,e.npT)}}function Z(n,o){if(1&n&&e.nrm(0,"div",26),2&n){const t=e.XpG(3);e.Y8G("innerHTML",t.languageService.label.txt_quiz_multiple_choice,e.npT)}}function K(n,o){if(1&n&&e.nrm(0,"div",26),2&n){const t=e.XpG(3);e.Y8G("innerHTML",t.languageService.label.txt_quiz_multiple_choice_audio,e.npT)}}function J(n,o){if(1&n&&e.nrm(0,"div",26),2&n){const t=e.XpG(3);e.Y8G("innerHTML",t.languageService.label["txt_quiz_write_in_"+t.languageService.origin],e.npT)}}function ee(n,o){if(1&n&&e.nrm(0,"div",27),2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.Y8G("innerHTML",t.question,e.npT)("ngClass",e.l_i(2,Y,i.wordService.enlargeFont,"typeTheWord"===t.type))}}function te(n,o){if(1&n&&e.nrm(0,"div",28),2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.Y8G("innerHTML",i.getTranslationText(t.translations),e.npT)("ngClass",e.eq3(2,w,i.wordService.enlargeFont))}}function ne(n,o){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"div",32),e.bIt("click",function(){l.eBV(t);const r=e.XpG(),s=r.$implicit,a=r.index,c=e.XpG(4);return l.Njj(c.clearBlank(s.userWord,a))}),e.EFF(2),e.k0s(),e.bVm()}if(2&n){const t=e.XpG().$implicit;e.R7$(),e.AVh("filled",t.userWord),e.R7$(),e.SpI(" ",t.userWord||"______"," ")}}function ie(n,o){if(1&n&&e.EFF(0),2&n){const t=e.XpG().$implicit;e.JRh(t.word)}}function re(n,o){if(1&n&&(e.j41(0,"span"),e.DNE(1,ne,3,3,"ng-container",31)(2,ie,1,1,"ng-template",null,1,e.C5r),e.k0s()),2&n){const t=o.$implicit,i=e.sdS(3);e.R7$(),e.Y8G("ngIf",t.isBlankItem)("ngIfElse",i)}}function se(n,o){if(1&n&&(e.j41(0,"div",29),e.DNE(1,re,4,2,"span",30),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",t.localQuestionParts)}}function oe(n,o){if(1&n){const t=e.RV6();e.j41(0,"div",36),e.bIt("click",function(){const r=l.eBV(t),s=r.$implicit,a=r.index,c=e.XpG(4);return l.Njj(c.fillBlank(s.answer,a))}),e.EFF(1),e.k0s()}if(2&n){const t=o.$implicit;e.AVh("disabled",t.isSelected),e.R7$(),e.SpI(" ",t.answer," ")}}function ae(n,o){if(1&n&&(e.j41(0,"div",33)(1,"div",34),e.DNE(2,oe,2,3,"div",35),e.k0s()()),2&n){const t=e.XpG().$implicit;e.R7$(2),e.Y8G("ngForOf",t.localAnswers)}}function ce(n,o){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"input",39),e.mxI("ngModelChange",function(r){l.eBV(t);const s=e.XpG().$implicit;return e.DH7(s.userWord,r)||(s.userWord=r),l.Njj(r)}),e.bIt("ngModelChange",function(r){l.eBV(t);const s=e.XpG(5);return l.Njj(s.checkContent(r))}),e.k0s(),e.bVm()}if(2&n){const t=e.XpG().$implicit,i=e.XpG(4);e.R7$(),e.Y8G("ngStyle",e.eq3(2,H,i.getInputWidth())),e.R50("ngModel",t.userWord)}}function le(n,o){if(1&n&&e.EFF(0),2&n){const t=e.XpG().$implicit;e.SpI("",t.word," ")}}function _e(n,o){if(1&n&&(e.j41(0,"span",38),e.DNE(1,ce,2,4,"ng-container",31)(2,le,1,1,"ng-template",null,1,e.C5r),e.k0s()),2&n){const t=o.$implicit,i=e.sdS(3);e.R7$(),e.Y8G("ngIf",t.isBlankItem)("ngIfElse",i)}}function ue(n,o){if(1&n&&(e.j41(0,"div",29),e.DNE(1,_e,4,2,"span",37),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",t.localQuestionParts)}}function de(n,o){if(1&n){const t=e.RV6();e.j41(0,"div",40)(1,"ion-item",41)(2,"ion-input",42),e.mxI("ngModelChange",function(r){l.eBV(t);const s=e.XpG(3);return e.DH7(s.inputValue,r)||(s.inputValue=r),l.Njj(r)}),e.bIt("ngModelChange",function(r){l.eBV(t);const s=e.XpG(3);return l.Njj(s.checkContent(r))}),e.k0s()()()}if(2&n){const t=e.XpG(3);e.R7$(2),e.R50("ngModel",t.inputValue),e.Y8G("placeholder",t.languageService.label.txt_quiz_input_placeholder)}}function ge(n,o){if(1&n){const t=e.RV6();e.j41(0,"ion-button",47),e.bIt("click",function(){l.eBV(t);const r=e.XpG(2).$implicit,s=e.XpG(2);return l.Njj(s.playAudio(r))}),e.nrm(1,"img",48),e.k0s()}}function pe(n,o){if(1&n){const t=e.RV6();e.j41(0,"div",51),e.bIt("click",function(){const r=l.eBV(t).index,s=e.XpG().index,a=e.XpG(4);return l.Njj(a.removeWord(s,r))}),e.EFF(1),e.k0s()}if(2&n){const t=o.$implicit;e.R7$(),e.SpI(" ",t," ")}}function he(n,o){if(1&n&&(e.qex(0),e.j41(1,"div",49,2),e.DNE(3,pe,2,1,"div",50),e.k0s(),e.nrm(4,"hr"),e.bVm()),2&n){const t=o.$implicit;e.R7$(3),e.Y8G("ngForOf",t)}}function me(n,o){if(1&n){const t=e.RV6();e.j41(0,"div",51),e.bIt("click",function(r){const s=l.eBV(t).index,a=e.XpG(4);return l.Njj(a.addWord(s,r))}),e.EFF(1),e.k0s()}if(2&n){const t=o.$implicit,i=o.index,r=e.XpG(4);e.AVh("disabled",r.disabledWordsMap[i]),e.R7$(),e.SpI(" ",t," ")}}function fe(n,o){if(1&n&&(e.j41(0,"div",43),e.DNE(1,ge,2,0,"ion-button",44)(2,he,5,1,"ng-container",30),e.j41(3,"div",45),e.DNE(4,me,2,3,"div",46),e.k0s()()),2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.type===i.questionType.WORD_CLOUD_AUDIO),e.R7$(),e.Y8G("ngForOf",i.selectedWordsMultiline),e.R7$(2),e.Y8G("ngForOf",i.availableWords)}}function ve(n,o){if(1&n){const t=e.RV6();e.j41(0,"ion-button",47),e.bIt("click",function(){l.eBV(t);const r=e.XpG(2).$implicit,s=e.XpG(2);return l.Njj(s.playAudio(r))}),e.nrm(1,"img",48),e.k0s()}}function we(n,o){if(1&n){const t=e.RV6();e.j41(0,"div",54),e.bIt("click",function(r){const s=l.eBV(t),a=s.$implicit,c=s.index,_=e.XpG(2).index,m=e.XpG(2);return l.Njj(m.selectAnswer(_,a,r.target,c))}),e.k0s()}if(2&n){const t=o.$implicit,i=e.XpG(4);e.Y8G("innerHTML",t.answer,e.npT)("ngClass",e.eq3(2,w,i.wordService.enlargeFont))}}function Ce(n,o){if(1&n&&(e.j41(0,"div",52),e.DNE(1,ve,2,0,"ion-button",44)(2,we,1,4,"div",53),e.k0s()),2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.type===i.questionType.MULTIPLE_CHOICE_AUDIO),e.R7$(),e.Y8G("ngForOf",t.answers
1)}}function be(n,o){if(1&n){const t=e.RV6();e.j41(0,"div",58),e.bIt("click",function(){const r=l.eBV(t).index,s=e.XpG(4);return l.Njj(s.selectPairAnswer(r,"left"))}),e.EFF(1),e.k0s()}if(2&n){const t=o.$implicit;e.HbH(e.VkB("quiz-answer-multi ",t.status)),e.R7$(),e.SpI(" ",t.title," ")}}function xe(n,o){if(1&n){const t=e.RV6();e.j41(0,"div",58),e.bIt("click",function(){const r=l.eBV(t).index,s=e.XpG(4);return l.Njj(s.selectPairAnswer(r,"right"))}),e.EFF(1),e.k0s()}if(2&n){const t=o.$implicit;e.HbH(e.VkB("quiz-answer-multi ",t.status)),e.R7$(),e.SpI(" ",t.title," ")}}function Pe(n,o){if(1&n&&(e.j41(0,"div",55)(1,"div",56)(2,"ion-list"),e.DNE(3,be,2,4,"div",57),e.k0s(),e.j41(4,"ion-list"),e.DNE(5,xe,2,4,"div",57),e.k0s()()()),2&n){const t=e.XpG(3);e.R7$(3),e.Y8G("ngForOf",t.pairLeft),e.R7$(2),e.Y8G("ngForOf",t.pairRight)}}function Me(n,o){if(1&n){const t=e.RV6();e.j41(0,"div",59)(1,"ion-button",60),e.bIt("click",function(){l.eBV(t);const r=e.XpG(3);return l.Njj(r.checkAnswer(!0))}),e.EFF(2),e.k0s(),e.j41(3,"ion-button",60),e.bIt("click",function(){l.eBV(t);const r=e.XpG(3);return l.Njj(r.checkAnswer(!1))}),e.EFF(4),e.k0s()()}if(2&n){const t=e.XpG(3);e.R7$(2),e.SpI(" ",t.languageService.label.txt_quiz_true_cta," "),e.R7$(2),e.SpI(" ",t.languageService.label.txt_quiz_false_cta," ")}}function Oe(n,o){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(6);e.R7$(),e.SpI(" ",null==t.quiz.questions[t.currentQuestion-1]?null:t.quiz.questions[t.currentQuestion-1].answers.explanation," ")}}function qe(n,o){if(1&n&&(e.j41(0,"div",70)(1,"div",71),e.nrm(2,"ion-icon",72),e.EFF(3),e.k0s(),e.DNE(4,Oe,2,1,"div",8),e.k0s()),2&n){const t=e.XpG(3).$implicit,i=e.XpG(2);e.R7$(3),e.SpI(" ",i.languageService.label.txt_quiz_answer_correct," "),e.R7$(),e.Y8G("ngIf",t.type!==i.questionType.TRUE_OR_FALSE&&t.answers.explanation)}}function ze(n,o){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(7);e.R7$(),e.Lme(" ",t.correctedAnswerIsMultipleOptions?t.languageService.label.txt_quiz_answer_correct_multiple:t.languageService.label.txt_quiz_answer_correct,": ",t.correctedAnswer," ")}}function Te(n,o){if(1&n&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(5).$implicit;e.R7$(),e.SpI(" ",t.answers.explanation," ")}}function ke(n,o){if(1&n&&(e.j41(0,"div",76),e.DNE(1,ze,2,2,"div",8)(2,Te,2,1,"div",8),e.k0s()),2&n){const t=e.XpG(4).$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngIf",i.correctedAnswer),e.R7$(),e.Y8G("ngIf",t.type!==i.questionType.TRUE_OR_FALSE&&t.answers.explanation)}}function Ge(n,o){if(1&n&&(e.j41(0,"div",73)(1,"div",71),e.nrm(2,"ion-icon",74),e.EFF(3),e.k0s(),e.DNE(4,ke,3,2,"div",75),e.k0s()),2&n){const t=e.XpG(5);e.R7$(3),e.SpI(" ",t.languageService.label.txt_quiz_answer_wrong," "),e.R7$(),e.Y8G("ngIf",t.correctedAnswer)}}function ye(n,o){if(1&n&&(e.j41(0,"div",77),e.nrm(1,"div",78),e.k0s()),2&n){const t=e.XpG(5);e.R7$(),e.Y8G("innerHTML",t.languageService.label.txt_quiz_skip_audio,e.npT)}}function Ie(n,o){if(1&n&&(e.j41(0,"div",66),e.DNE(1,qe,5,2,"div",67)(2,Ge,5,2,"div",68)(3,ye,2,1,"div",69),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.Y8G("ngIf",!t.shouldSkipAudioQuestion&&t.correct),e.R7$(),e.Y8G("ngIf",!t.shouldSkipAudioQuestion&&!t.correct),e.R7$(),e.Y8G("ngIf",t.shouldSkipAudioQuestion)}}function Ae(n,o){if(1&n){const t=e.RV6();e.j41(0,"ion-button",79),e.bIt("click",function(){l.eBV(t);const r=e.XpG(4);return l.Njj(r.skipAudioQuestion())}),e.EFF(1),e.k0s()}if(2&n){const t=e.XpG(4);e.R7$(),e.SpI(" ",t.languageService.label.txt_quiz_audio_cannot_play," ")}}function Re(n,o){if(1&n){const t=e.RV6();e.j41(0,"div",61),e.DNE(1,Ie,4,3,"div",62),e.j41(2,"div",63),e.DNE(3,Ae,2,1,"ion-button",64),e.j41(4,"ion-button",65),e.bIt("click",function(){l.eBV(t);const r=e.XpG(3);return l.Njj(r.showAnswerCheckResult?r.nextQuestion():r.checkAnswer())}),e.EFF(5),e.k0s()()()}if(2&n){const t=e.XpG(3);e.Y8G("ngClass",e.sMw(5,D,!t.shouldSkipAudioQuestion&&t.showAnswerCheckResult&&t.correct,!t.shouldSkipAudioQuestion&&t.showAnswerCheckResult&&!t.correct,t.shouldSkipAudioQuestion)),e.R7$(),e.Y8G("ngIf",t.showAnswerCheckResult),e.R7$(2),e.Y8G("ngIf",t.isAudioQuestion&&!t.showAnswerCheckResult),e.R7$(),e.Y8G("disabled",!t.readyNext),e.R7$(),e.SpI(" ",t.languageService.label[t.showAnswerCheckResult?t.isLastQuestion?"cta_quiz_last_question":"txt_quiz_next_question":"txt_quiz_check_answer_
1cta"]," ")}}function Se(n,o){if(1&n&&(e.j41(0,"swiper-slide",13)(1,"div",14),e.DNE(2,B,1,1,"div",15)(3,V,1,1,"div",15)(4,U,1,1,"div",15)(5,Z,1,1,"div",15)(6,K,1,1,"div",15)(7,J,1,1,"div",15)(8,ee,1,5,"div",16)(9,te,1,4,"div",17)(10,se,2,1,"div",18)(11,ae,3,1,"div",19)(12,ue,2,1,"div",18)(13,de,3,2,"div",20)(14,fe,5,3,"div",21)(15,Ce,3,2,"div",22)(16,Pe,6,2,"div",23)(17,Me,5,2,"div",24),e.k0s(),e.DNE(18,Re,6,9,"div",25),e.k0s()),2&n){const t=o.$implicit,i=e.XpG(2);e.Y8G("ngClass",e.eq3(18,W,i.onboardingService.isTutorial)),e.R7$(2),e.Y8G("ngIf","typeTheWord"===t.type),e.R7$(),e.Y8G("ngIf","fillInTheBlanks"===t.type),e.R7$(),e.Y8G("ngIf","trueOrFalse"===t.type),e.R7$(),e.Y8G("ngIf","multipleChoice"===t.type),e.R7$(),e.Y8G("ngIf",t.type===i.questionType.MULTIPLE_CHOICE_AUDIO||t.type==i.questionType.WORD_CLOUD_AUDIO),e.R7$(),e.Y8G("ngIf","wordCloud"===t.type||"write"===t.type),e.R7$(),e.Y8G("ngIf",t.question&&(!t.enableTranslations||i.languageService.origin==i.languageService.target)&&!("wordCloud"===t.type||"fillInTheBlanks"===t.type||"typeTheWord"===t.type||t.type==i.questionType.WORD_CLOUD_AUDIO||t.type===i.questionType.MULTIPLE_CHOICE_AUDIO)),e.R7$(),e.Y8G("ngIf",t.question&&t.enableTranslations&&i.languageService.origin!=i.languageService.target&&!(t.type==i.questionType.WORD_CLOUD_AUDIO||t.type===i.questionType.MULTIPLE_CHOICE_AUDIO)),e.R7$(),e.Y8G("ngIf",t.question&&"fillInTheBlanks"===t.type),e.R7$(),e.Y8G("ngIf","fillInTheBlanks"===t.type),e.R7$(),e.Y8G("ngIf","typeTheWord"===t.type),e.R7$(),e.Y8G("ngIf","write"===t.type),e.R7$(),e.Y8G("ngIf",t.type===i.questionType.WORD_CLOUD||t.type===i.questionType.WORD_CLOUD_AUDIO),e.R7$(),e.Y8G("ngIf",t.type===i.questionType.MULTIPLE_CHOICE||t.type===i.questionType.MULTIPLE_CHOICE_AUDIO),e.R7$(),e.Y8G("ngIf",t.type===i.questionType.MATCH_THE_PAIRS),e.R7$(),e.Y8G("ngIf",t.type==i.questionType.TRUE_OR_FALSE),e.R7$(),e.Y8G("ngIf",t.type!==i.questionType.TRUE_OR_FALSE||i.showAnswerCheckResult)}}function Le(n,o){if(1&n&&(e.j41(0,"swiper-container",null,0),e.DNE(2,Se,19,20,"swiper-slide",12),e.k0s()),2&n){const t=e.XpG();e.R7$(2),e.Y8G("ngForOf",t.quiz.questions)}}function Ee(n,o){1&n&&e.nrm(0,"lottie-player",101)}function $e(n,o){1&n&&e.nrm(0,"lottie-player",102)}function Qe(n,o){if(1&n&&e.nrm(0,"div",110),2&n){const t=e.XpG(3);e.Y8G("innerHTML",t.languageService.label.txt_quiz_fill_in_the_blank,e.npT)("ngClass",e.eq3(2,w,t.wordService.enlargeFont))}}function Fe(n,o){if(1&n&&e.nrm(0,"div",110),2&n){const t=e.XpG(3);e.Y8G("innerHTML",t.languageService.label.txt_quiz_missing_word,e.npT)("ngClass",e.eq3(2,w,t.wordService.enlargeFont))}}function je(n,o){if(1&n&&e.nrm(0,"div",110),2&n){const t=e.XpG(3);e.Y8G("innerHTML",t.languageService.label.txt_quiz_true_or_false,e.npT)("ngClass",e.eq3(2,w,t.wordService.enlargeFont))}}function We(n,o){if(1&n&&e.nrm(0,"div",110),2&n){const t=e.XpG(3);e.Y8G("innerHTML",t.languageService.label.txt_quiz_multiple_choice,e.npT)("ngClass",e.eq3(2,w,t.wordService.enlargeFont))}}function Ye(n,o){if(1&n&&e.nrm(0,"div",111),2&n){const t=e.XpG(3);e.Y8G("ngClass",e.eq3(2,w,t.wordService.enlargeFont))("innerHTML",t.languageService.label["txt_quiz_write_in_"+t.languageService.origin],e.npT)}}function He(n,o){if(1&n&&(e.j41(0,"div",112),l.qSk(),e.j41(1,"svg",113),e.nrm(2,"path",114),e.k0s(),l.joV(),e.nrm(3,"span",115),e.k0s()),2&n){const t=e.XpG(3);e.AVh("biggerFont",t.wordService.enlargeFont),e.R7$(3),e.Y8G("innerHTML",t.languageService.label.txt_quiz_multiple_choice_audio,e.npT)}}function De(n,o){if(1&n&&e.nrm(0,"span",115),2&n){const t=e.XpG(2).$implicit;e.Y8G("innerHTML",t.question,e.npT)}}function Xe(n,o){if(1&n&&e.nrm(0,"span",115),2&n){const t=e.XpG(2).$implicit,i=e.XpG(2);e.Y8G("innerHTML",i.getTranslationText(t.translations),e.npT)}}function Ne(n,o){if(1&n&&(e.j41(0,"div",112),e.DNE(1,De,1,1,"span",116)(2,Xe,1,1,"span",116),e.k0s()),2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.AVh("biggerFont",i.wordService.enlargeFont),e.R7$(),e.Y8G("ngIf",!t.enableTranslations||i.languageService.origin==i.languageService.target),e.R7$(),e.Y8G("ngIf",t.enableTranslations&&i.languageService.origin!=i.languageService.target)}}function Be(n,o){1&n&&(l.qSk(),e.j41(0,"svg",117),e.nrm(1,"rect",118)(2,"path",119),e.k0s())}function Ve(n,o){1&n&&(l.qSk(),e.j41(0,"svg",117),e.nrm(1,"rect",118)(2,"path",120),e.k0s())}function Ue(n,o){if(1&n&&e.nrm(0,"div",124),2&n){const t=e.XpG(3).$implicit,i=e.XpG(2);e.Y8G("innerHTML",i.getTranslationText(t.translations),e.npT)}}function Ze(n,o){1&n&&(e.qex(0),e.EFF(1," \xa0 "),e.bVm())}function Ke(n,o){if(1&n&&e.EFF(0),2&n){const t=e.XpG().$implicit;e.SpI(" ",t.word," ")}}function Je(n,o){if(1&n&&(e.j41(0,"span"),e.DNE(1,Ze,2,0,"ng-container",31)(2,Ke,1,1,"ng-template",null,1,e.C5r),e.k0s()),2&n){const t=o.$implicit,i=e.sdS(3);e.AVh("blank",t.isBlankItem),e.R7$(),e.Y8G("ngIf",t.isBlankItem)("ngIfElse",i)}}function et(n,o){if(1&n&&(e.j41(0,"div"),e.DNE(1,Ue,1,1,"div",122)(2,Je,4,4,"span",123),e.k0s()),2&n){const t=e.XpG(2).$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngIf","typeTheWord"===t.type&&i.languageService.origin!=i.languageService.target),e.R7$(),e.Y8G("ngForOf",t.localQuestionParts)}}function tt(n,o){if(1&n&&e.nrm(0,"div",115),2&n){const t=e.XpG(2).$implicit,i=e.XpG(2);e.Y8G("innerHTML",i.getTranslationText(t.translations),e.npT)}}function nt(n,o){if(1&n&&e.nrm(0,"div",115),2&n){const t=e.XpG(2).$implicit;e.Y8G("innerHTML",t.question,e.npT)}}function it(n,o){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"ion-button",125),e.bIt("click",function(){l.eBV(t);const r=e.XpG(2).$implicit,s=e.XpG(2);return l.Njj(s.playAudio(r))}),e.EFF(2," Listen again "),l.qSk(),e.j41(3,"svg",126),e.nrm(4,"path",127),e.k0s()()()}if(2&n){const t=e.XpG(4);e.R7$(),e.Y8G("disabled",t.isAudioActive)}}function rt(n,o){if(1&n&&(e.j41(0,"div",121),e.DNE(1,et,3,2,"div",8)(2,tt,1,1,"div",116)(3,nt,1,1,"div",116)(4,it,5,1,"div",8),e.k0s()),2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.AVh("biggerFont",i.wordService.enlargeFont),e.R7$(),e.Y8G("ngIf","fillInTheBlanks"===t.type||"typeTheWord"===t.type),e.R7$(),e.Y8G("ngIf","wordCloud"===t.type&&i.languageService.origin!=i.languageService.target||"write"===t.type),e.R7$(),e.Y8G("ngIf","write"!==t.type&&("multipleChoice"===t.type||"trueOrFalse"===t.type)),e.R7$(),e.Y8G("ngIf",t.type===i.questionType.MULTIPLE_CHOICE_AUDIO||t.type===i.questionType.WORD_CLOUD_AUDIO)}}function st(n,o){if(1&n&&(e.j41(0,"div"),e.nrm(1,"span",115),e.k0s()),2&n){const t=e.XpG(2).index,i=e.XpG(2);e.HbH("coorect"===i.realAnswers[t]?"answer-list-big":"answer-list"),e.AVh("biggerFont",i.wordService.enlargeFont),e.R7$(),e.AVh("answer-correct","correct"===i.realAnswers[t])("answer-wrong","wrong"===i.realAnswers[t]),e.Y8G("innerHTML",i.userAnswers[t],e.npT)}}function ot(n,o){if(1&n&&(e.qex(0),e.EFF(1),e.bVm()),2&n){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.userWord," ")}}function at(n,o){if(1&n&&e.EFF(0),2&n){const t=e.XpG().$implicit;e.SpI(" ",t.word," ")}}function ct(n,o){if(1&n&&(e.j41(0,"span",13),e.DNE(1,ot,2,1,"ng-container",31)(2,at,1,1,"ng-template",null,1,e.C5r),e.k0s()),2&n){const t=o.$implicit,i=e.sdS(3);e.Y8G("ngClass",e.sMw(3,S,t.isBlankItem,t.isBlankItem&&t.userWord===t.correctWord,t.isBlankItem&&t.userWord!==t.correctWord)),e.R7$(),e.Y8G("ngIf",t.isBlankItem)("ngIfElse",i)}}function lt(n,o){if(1&n&&(e.j41(0,"div",132),e.DNE(1,ct,4,7,"span",12),e.k0s()),2&n){const t=e.XpG(2).$implicit;e.R7$(),e.Y8G("ngForOf",t.localQuestionParts)}}function _t(n,o){if(1&n&&(e.qex(0),e.EFF(1),e.bVm()),2&n){const t=e.XpG(4).index,i=e.XpG(2);e.R7$(),e.SpI(" ",i.userAnswers[t]," ")}}function ut(n,o){if(1&n&&e.EFF(0),2&n){const t=e.XpG().$implicit;e.SpI(" ",t.word," ")}}function dt(n,o){if(1&n&&(e.j41(0,"span",13),e.DNE(1,_t,2,1,"ng-container",31)(2,ut,1,1,"ng-template",null,1,e.C5r),e.k0s()),2&n){const t=o.$implicit,i=e.sdS(3),r=e.XpG(3).index,s=e.XpG(2);e.Y8G("ngClass",e.sMw(3,S,t.isBlankItem,t.isBlankItem&&"correct"===s.realAnswers[r],t.isBlankItem&&"wrong"===s.realAnswers[r])),e.R7$(),e.Y8G("ngIf",t.isBlankItem)("ngIfElse",i)}}function gt(n,o){if(1&n&&(e.j41(0,"div",132),e.DNE(1,dt,4,7,"span",12),e.k0s()),2&n){const t=e.XpG(2).$implicit;e.R7$(),e.Y8G("ngForOf",t.localQuestionParts)}}function pt(n,o){if(1&n&&(e.qex(0),e.nrm(1,"div",128),e.j41(2,"div",129),e.EFF(3),e.k0s(),e.DNE(4,st,2,9,"div",130)(5,lt,2,1,"div",131)(6,gt,2,1,"div",131),e.bVm()),2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.R7$(3),e.JRh(i.languageService.label.txt_quiz_check_your_answer),e.R7$(),e.Y8G("ngIf",t.type!==i.questionType.FILL_IN_THE_BLANKS&&t.type!==i.questionType.TYPE_THE_WORD),e.R7$(),e.Y8G("ngIf",t.type===i.questionType.FILL_IN_THE_BLANKS),e.R7$(),e.Y8G("ngIf",t.type===i.questionType.TYPE_THE_WORD)}}function ht(n,o){if(1&n&&(e.j41(0,"div",132),e.nrm(1,"span",115),e.k0s()),2&n){const t=e.XpG(2).index,i=e.XpG(2);e.AVh("biggerFont",i.wordService.enlargeFont),e.R7$(),e.Y8G("innerHTML",i.correctAnswers[t],e.npT)}}function mt(n,o){if(1&n&&(e.qex(0),e.EFF(1),e.bVm()),2&n){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.correctWord," ")}}function ft(n,o){if(1&n&&e.EFF(0),2&n){const t=e.XpG().$implicit;e.SpI(" ",t.word," ")}}function vt(n,o){if(1&n&&(e.j41(0,"span"),e.DNE(1,mt,2,1,"ng-container",31)(2,ft,1,1,"ng-template",null,1,e.C5r),e.k0s()),2&n){const t=o.$implicit,i=e.sdS(3);e.AVh("answer-blank-container",t.isBlankItem),e.R7$(),e.Y8G("ngIf",t.isBlankItem)("ngIfElse",i)}}function wt(n,o){if(1&n&&(e.j41(0,"div",132),e.DNE(1,vt,4,4,"span",134),e.k0s()),2&n){const t=e.XpG(2).$implicit;e.R7$(),e.Y8G("ngForOf",t.localQuestionParts)}}function Ct(n,o){if(1&n&&(e.qex(0),e.EFF(1),e.bVm()),2&n){const t=e.XpG(4).index,i=e.XpG(2);e.R7$(),e.SpI(" ",i.correctAnswers[t]," ")}}function bt(n,o){if(1&n&&e.EFF(0),2&n){const t=e.XpG().$implicit;e.SpI(" ",t.word," ")}}function xt(n,o){if(1&n&&(e.j41(0,"span"),e.DNE(1,Ct,2,1,"ng-container",31)(2,bt,1,1,"ng-template",null,1,e.C5r),e.k0s()),2&n){const t=o.$implicit,i=e.sdS(3);e.AVh("answer-blank-container",t.isBlankItem),e.R7$(),e.Y8G("ngIf",t.isBlankItem)("ngIfElse",i)}}function Pt(n,o){if(1&n&&(e.j41(0,"div",132),e.DNE(1,xt,4,4,"span",134),e.k0s()),2&n){const t=e.XpG(2).$implicit;e.R7$(),e.Y8G("ngForOf",t.localQuestionParts)}}function Mt(n,o){if(1&n&&(e.qex(0),e.nrm(1,"div",128),e.j41(2,"div",129),e.EFF(3),e.k0s(),e.DNE(4,ht,2,3,"div",133)(5,wt,2,1,"div",131)(6,Pt,2,1,"div",131),e.bVm()),2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.R7$(3),e.SpI(" ",(null==t.answers||null==t.answers.correct?null:t.answers.correct.length)>1?i.languageService.label.txt_quiz_answer_correct_multiple:i.languageService.label.txt_quiz_answer_correct,": "),e.R7$(),e.Y8G("ngIf",t.type!==i.questionType.FILL_IN_THE_BLANKS&&t.type!==i.questionType.TYPE_THE_WORD),e.R7$(),e.Y8G("ngIf",t.type===i.questionType.FILL_IN_THE_BLANKS),e.R7$(),e.Y8G("ngIf",t.type===i.questionType.TYPE_THE_WORD)}}function Ot(n,o){if(1&n&&(e.j41(0,"div",137)(1,"span"),e.EFF(2),e.k0s(),l.qSk(),e.j41(3,"svg",138),e.nrm(4,"path",139),e.k0s(),l.joV(),e.j41(5,"span"),e.EFF(6),e.k0s()()),2&n){const t=o.$implicit;e.R7$(2),e.SpI(" ",t.pair," "),e.R7$(4),e.SpI(" ",t.answer," ")}}function qt(n,o){if(1&n&&(e.qex(0),e.j41(1,"div",135),e.DNE(2,Ot,7,2,"div",136),e.k0s(),e.bVm()),2&n){const t=e.XpG().$implicit;e.R7$(2),e.Y8G("ngForOf",t.answers.correct)}}function zt(n,o){if(1&n&&(e.j41(0,"div",103)(1,"div",104),e.DNE(2,Qe,1,4,"div",105)(3,Fe,1,4,"div",105)(4,je,1,4,"div",105)(5,We,1,4,"div",105)(6,Ye,1,4,"div",106)(7,He,4,3,"div",107)(8,Ne,3,4,"div",107)(9,Be,3,0,"svg",108)(10,Ve,3,0,"svg",108),e.k0s(),e.DNE(11,rt,5,6,"div",109)(12,pt,7,4,"ng-container",8)(13,Mt,7,4,"ng-container",8)(14,qt,3,1,"ng-container",8),e.k0s()),2&n){const t=o.$implicit,i=o.index,r=e.XpG(2);e.xc7("display","skipped"===r.realAnswers[i]?"none":"block"),e.R7$(2),e.Y8G("ngIf","fillInTheBlanks"===t.type),e.R7$(),e.Y8G("ngIf","typeTheWord"===t.type),e.R7$(),e.Y8G("ngIf","trueOrFalse"===t.type),e.R7$(),e.Y8G("ngIf","multipleChoice"===t.type),e.R7$(),e.Y8G("ngIf",t.type===r.questionType.WORD_CLOUD||t.type===r.questionType.WORD_CLOUD_AUDIO||"write"===t.type),e.R7$(),e.Y8G("ngIf",t.type===r.questionType.MULTIPLE_CHOICE_AUDIO),e.R7$(),e.Y8G("ngIf",t.type===r.questionType.MATCH_THE_PAIRS),e.R7$(),e.Y8G("ngIf","correct"===r.realAnswers[i]),e.R7$(),e.Y8G("ngIf","wrong"===r.realAnswers[i]),e.R7$(),e.Y8G("ngIf",t.type!==r.questionType.MATCH_THE_PAIRS),e.R7$(),e.Y8G("ngIf",t.type!==r.questionType.MATCH_THE_PAIRS),e.R7$(),e.Y8G("ngIf",t.type!==r.questionType.MATCH_THE_PAIRS&&("correct"!==r.realAnswers[i]||r.userAnswers[i].length<r.correctAnswers[i].length)),e.R7$(),e.Y8G("ngIf",t.type===r.questionType.MATCH_THE_PAIRS)}}function Tt(n,o){if(1&n){const t=e.RV6();e.j41(0,"div",13)(1,"div",80)(2,"h1"),e.EFF(3),e.k0s()(),e.j41(4,"div",81)(5,"div"),e.nrm(6,"div",82)(7,"div",83),e.k0s(),e.j41(8,"div"),e.DNE(9,Ee,1,0,"lottie-player",84)(10,$e,1,0,"lottie-player",85),e.k0s()(),e.j41(11,"div",86)(12,"div",87),e.EFF(13),e.k0s(),e.j41(14,"div",88)(15,"div",11)(16,"span",89),e.EFF(17),e.k0s(),e.nrm(18,"progress",90),e.k0s(),e.j41(19,"div",91),e.EFF(20),e.k0s(),e.j41(21,"div",92),e.EFF(22),e.k0s(),e.j41(23,"div",93),e.EFF(24),e.k0s(),e.j41(25,"div",94),e.EFF(26),e.k0s()(),e.j41(27,"div",95),e.bIt("click",function(){l.eBV(t);const r=e.XpG();return l.Njj(r.replayQuiz())}),e.k0s(),e.j41(28,"div",96),e.nrm(29,"div",97),e.j41(30,"div",98)(31,"span"),e.nrm(32,"ion-icon",99),e.k0s()()(),e.j41(33,"div",87),e.EFF(34),e.k0s(),e.DNE(35,zt,15,15,"div",100),e.j41(36,"div",95),e.bIt("click",function(){l.eBV(t);const r=e.XpG();return l.Njj(r.replayQuiz())}),e.k0s()()()}if(2&n){const t=e.XpG();e.HbH("results-bubble correct-answers-"+t.resultCorrectAnswers),e.Y8G("ngClass",e.l_i(29,X,t.onboardingService.isTutorial,t.utilsService.isWebVersion)),e.R7$(3),e.JRh(t.languageService.label.txt_quiz_result_title),e.R7$(3),e.AVh("biggerFont",t.wordService.enlargeFont),e.Y8G("innerHTML",t.resultText,e.npT),e.R7$(),e.AVh("biggerFont",t.wordService.enlargeFont),e.Y8G("innerHTML",t.resultSubText,e.npT),e.R7$(2),e.Y8G("ngIf",t.badge),e.R7$(),e.Y8G("ngIf",t.trophy),e.R7$(2),e.Y8G("ngClass",e.eq3(32,w,t.wordService.enlargeFont)),e.R7$(),e.SpI(" ",t.languageService.label.btn_quiz_results," "),e.R7$(4),e.JRh(t.finalScore),e.R7$(2),e.Y8G("ngClass",e.eq3(34,w,t.wordService.enlargeFont)),e.R7$(),e.SpI(" ",t.languageService.label.txt_quiz_result_correct," "),e.R7$(2),e.JRh(t.resultCorrectAnswers),e.R7$(),e.Y8G("ngClass",e.eq3(36,w,t.wordService.enlargeFont)),e.R7$(),e.SpI(" ",t.languageService.label.txt_quiz_result_incorrect," "),e.R7$(2),e.JRh(t.incorrectAnswers),e.R7$(),e.Y8G("innerHTML",t.languageService.label.btn_quiz_repeat,e.npT),e.R7$(2),e.Y8G("innerHTML",t.languageService.label.btn_quiz_scroll_review,e.npT)("ngClass",e.eq3(38,w,t.wordService.enlargeFont)),e.R7$(),e.Y8G("ngClass",e.eq3(40,w,t.wordService.enlargeFont)),e.R7$(3),e.Y8G("ngClass",e.eq3(42,w,t.wordService.enlargeFont)),e.R7$(),e.SpI(" ",t.languageService.label.btn_quiz_answers," "),e.R7$(),e.Y8G("ngForOf",t.quiz.questions),e.R7$(),e.Y8G("innerHTML",t.languageService.label.btn_quiz_repeat,e.npT)}}var h=function(n){return n.NotSelected="not-selected",n.Selected="selected",n.Wrong="wrong",n.Correct="correct",n.Hidden="hidden",n}(h||{});let kt=(()=>{var n;class o{constructor(i,r,s,a,c,_,m,d,v){this.articleService=i,this.languageService=r,this.wordService=s,this.utilsService=a,this.onboardingService=c,this.sqlite=_,this.audioService=m,this.modalCtrl=d,this.toastCtrl=v,this.questionChange=new l.bkB,this.environment=P.c,this.currentQuestion=1,this.resultCorrectAnswers=0,this.incorrectAnswers=0,this.progressText="1 / 4",this.tmpLock=!1,this.isAudio=!0,this.resultText="",this.totalQuestions=0,this.isLastQuestion=!1,this.badge=!1,this.trophy=!1,this.resultSubText="",this.userAnswers=[],this.correctAnswers=[],this.realAnswers=[],this.finalScore="0%",this.numberPicked=0,this.readyNext=!1,this.correct=!1,this.inputValue="",this.contentWrite="",this.myPick="",this.availableWords=[],this.disabledWordsMap=[],this.quizLast=!1,this.correctedAnswerIsMultipleOptions=!1,this.selectedWordsMultiline=[[],[]],this.selectedWordsMinLines=2,this.pairLeft=[],this.pairRight=[],this.quizInfo={currentLevel:1,questionsAmount:0,questionState:""},this.slideOpts={allowTouchMove:!1,observer:!0,observeParents:!0},this.didInit=!1,this.quiz=this.utilsService.grammarQuiz,this.BLANK_PLACEHOLDER="{blank}",this.questionType=u,this.isAudioActive=!1,this.showAnswerCheckRes
1ult=!1,this.quizProgress=0,this.isAudioQuestion=!1,this.shouldSkipAudioQuestion=!1}get question(){return this.quiz.questions[this.currentQuestion-1]}get swiper(){return this.swiperRef.nativeElement.swiper}ngOnInit(){E.gT.setCurrentScreen({screenName:"screen_story_grammar_quiz"})}ngAfterViewInit(){this.didInit=!0,this.sqlite.getItem(A.cY.QUIZ_AUDIO).then(i=>{null!=i&&(this.isAudio=i)}),this.totalQuestions=this.utilsService.grammarQuiz.questions.length,this.quiz=this.utilsService.grammarQuiz;for(let i=0;i<this.quiz.questions.length;i++){const r=this.quiz.questions[i];if(this.quiz.questions[i].type===u.FILL_IN_THE_BLANKS){const s=r.answers.displayAnswer.filter((d,v)=>-1!==r.answers.blankPositions.indexOf(v)),a=r.question;let c=r.question;for(const d of s)c=c.replace(this.BLANK_PLACEHOLDER,d);const _=this.splitQuestionByParts(a),m=this.splitQuestionByParts(c);r.localQuestionParts=_.map((d,v)=>({word:d,isBlankItem:d===this.BLANK_PLACEHOLDER,userWord:void 0,correctWord:d===this.BLANK_PLACEHOLDER?m[v]:d})),r.localAnswers=r.answers.displayAnswer.map(d=>({answer:d,isSelected:!1}))}else this.quiz.questions[i].type===u.TYPE_THE_WORD&&(r.localQuestionParts=this.splitQuestionByParts(r.question).map(s=>({word:s,isBlankItem:s===this.BLANK_PLACEHOLDER,userWord:void 0})))}this.currentQuestion=1,this.isLastQuestion=this.currentQuestion===this.quiz.questions.length,this.quizProgress=100/this.quiz.questions.length,setTimeout(()=>{this.renderQuestion(),this.swiper.allowTouchMove=!1},200)}ngOnDestroy(){this.badge=!1,this.trophy=!1,this.quizLast=!1,this.articleService.quizTab=!1}selectAnswer(i,r,s,a){if(this.readyNext=!0,this.quiz.questions[this.currentQuestion-1].type===u.MULTIPLE_CHOICE){const c=document.querySelector(".answer-selected");c&&c.classList.remove("answer-selected"),s.classList.add("answer-selected"),this.myPick=s.textContent}if(this.quiz.questions[this.currentQuestion-1].type===u.MULTIPLE_CHOICE_AUDIO){const c=document.querySelector(".answer-selected");c&&c.classList.remove("answer-selected"),s.classList.add("answer-selected"),this.myPick=s.textContent}}playAudio(i){var r=this;return(0,k.A)(function*(){if(!r.isAudioActive)try{r.isAudioActive=!0,yield R.Q7.simplePlay(r.audioService.getAudioUrl(i.audioFilename))}catch(s){(yield r.toastCtrl.create(R.Q7.buildToastBody(s))).present()}finally{r.isAudioActive=!1}})()}fillBlank(i,r){const s=this.question.localQuestionParts.findIndex(a=>a.isBlankItem&&void 0===a.userWord);-1!==s&&(this.question.localQuestionParts[s].userWord=i,this.question.localAnswers[r].isSelected=!0,this.readyNext=this.question.localQuestionParts.every(a=>!a.isBlankItem||void 0!==a.userWord))}clearBlank(i,r){const s=this.question.localAnswers.findIndex(a=>a.answer===i);this.question.localAnswers[s].isSelected=!1,this.question.localQuestionParts[r].userWord=void 0,this.readyNext=!1}selectPairAnswer(i,r){const s="left"===r?this.pairLeft:this.pairRight;switch(s[i].status){case h.Hidden:case h.Correct:case h.Wrong:return;case h.Selected:s[i].status=h.NotSelected;break;case h.NotSelected:s.forEach((d,v)=>{i===v?d.status=h.Selected:d.status===h.Selected&&(d.status=h.NotSelected)})}const a=this.pairLeft.find(d=>d.status===h.Selected),c=this.pairRight.find(d=>d.status===h.Selected);a&&c&&(this.quiz.questions[this.currentQuestion-1].answers.correct.find(d=>d.pair===a.title).answer===c.title?(a.status=h.Correct,c.status=h.Correct,setTimeout(()=>{a.status=h.Hidden,c.status=h.Hidden},1500)):(a.status=h.Wrong,c.status=h.Wrong,setTimeout(()=>{a.status=h.NotSelected,c.status=h.NotSelected},1e3)),this.readyNext=[...this.pairLeft,...this.pairRight].every(d=>d.status===h.Correct||d.status===h.Hidden),this.correct=this.readyNext,this.readyNext&&(this.showAnswerCheckResult=!0))}checkAnswer(i=!1){if(this.quiz.questions[this.currentQuestion-1].type===u.TRUE_OR_FALSE&&(this.readyNext=!0),this.tmpLock||!this.readyNext)return;const r=this.quiz.questions[this.currentQuestion-1];if(r.type===u.TRUE_OR_FALSE)console.log("trueOrFalse",r.answers.correct,i),this.correct=r.answers.correct===i,this.correctAnswers.push(this.getTrueOrFalseLabel(r.answers.correct)),this.userAnswers.push(this.getTrueOrFalseLabel(i));else if(r.type===u.MULTIPLE_CHOICE||r.type===u.MULTIPLE_CHOICE_AUDIO){const s=r.answers.find(c=>!0===c.correct);this.correctAnswers.push(s.answer);const a=r.answers.find(c=>c.answer===this.myPick);console.log("matchedAnswer",a,this.myPick),this.correct=!0===a.correct,this.userAnswers.push(this.myPick)}else if(r.type===u.TYPE_THE_WORD){for(let s=0;s<r.answers.correct.length;s++)this.contentWrite.trim().toLowerCase()===r.answers.correct[s].toLowerCase()&&(this.correct=!0);this.userAnswers.push(this.contentWrite),this.correctAnswers.push(r.answers.correct[0])}else if(r.type===u.FILL_IN_THE_BLANKS){this.correct=this.question.localQuestionParts.every(_=>!_.isBlankItem||_.userWord===_.correctWord);const s=this.question.localQuestionParts.filter(_=>_.isBlankItem),a=s.map(_=>_.correctWord).join(",");this.correctAnswers.push(a);const c=s.map(_=>_.userWord).join(",");this.userAnswers.push(c)}else if(r.type===u.WORD_CLOUD||r.type===u.WORD_CLOUD_AUDIO){const s=this.selectedWordsMultiline.reduce((a,c)=>[...a,...c],[]);s.length===r.answers.correct.length&&(this.correct=s.every((a,c)=>a===r.answers.correct[c])),this.userAnswers.push(s.join(" ")),this.correctAnswers.push(r.answers.correct.join(" "))}else if(r.type===u.WRITE){console.log("contentWrite",this.contentWrite,r.answers.correct[0]);for(let s=0;s<r.answers.correct.length;s++)if(this.contentWrite===r.answers.correct[s]){this.correct=!0;break}this.userAnswers.push(this.contentWrite),this.correctAnswers.push(r.answers.correct.map(s=>s.replace(/\.$/,"")).join(", "))}this.realAnswers.push(this.correct?"correct":"wrong"),setTimeout(()=>{if(this.tmpLock=!1,this.correct)this.resultCorrectAnswers++;else if(this.correctedAnswerIsMultipleOptions=!1,"fillInTheBlanks"===r.type)this.correctedAnswer=r.answers.correct.join(" ");else if(r.type===u.WORD_CLOUD||r.type===u.WORD_CLOUD_AUDIO)this.correctedAnswer=r.answers.correct.join(" ");else if(r.type===u.MULTIPLE_CHOICE||r.type===u.MULTIPLE_CHOICE_AUDIO){const s=r.answers.find(a=>!0===a.correct);this.correctedAnswer=s?s.answer:""}else if("write"===r.type||"trueOrFalse"===r.type){this.correctedAnswer="";for(let s=0;s<r.answers.correct.length;s++)this.correctedAnswer+=r.answers.correct[s],s<r.answers.correct.length-1&&(this.correctedAnswer.endsWith(".")&&(this.correctedAnswer=this.correctedAnswer.slice(0,-1)),this.correctedAnswer+=", ");this.correctedAnswerIsMultipleOptions=r.answers.correct.length>1}else r.type===u.TYPE_THE_WORD?this.correctedAnswer=r.answers.correct.join(" ".concat(this.languageService.label.btn_quiz_answers_alternative," ")):r.type===u.MATCH_THE_PAIRS&&(this.correctedAnswer=r.answers.correct.map(s=>"".concat(s.pair," - ").concat(s.answer)).join("; "));this.showAnswerCheckResult=!0},100)}skipAudioQuestion(){this.shouldSkipAudioQuestion=!0,this.showAnswerCheckResult=!0,this.readyNext=!0}quizData(i){this.quizInfo.currentLevel=i.currentLevel,this.quizInfo.questionState=i.questionState}checkContent(i){this.contentWrite=i,this.readyNext=!0}nextQuestion(){if(this.quiz.questions[this.currentQuestion-1].type===u.MATCH_THE_PAIRS&&(this.resultCorrectAnswers++,this.userAnswers.push("MATCH_THE_PAIRS filler item"),this.correctAnswers.push("MATCH_THE_PAIRS filller item"),this.realAnswers.push("correct")),this.shouldSkipAudioQuestion&&(this.userAnswers.push("skip audio filler item"),this.correctAnswers.push("skip audio filller item"),this.realAnswers.push("skipped")),this.readyNext=!1,setTimeout(()=>{this.contentWrite="",this.inputValue="",this.selectedWordsMultiline=[[],[]],this.disabledWordsMap=[],this.numberPicked=0,this.showAnswerCheckResult=!1,this.readyNext=!1,this.correct=!1,this.isAudioQuestion=!1,this.shouldSkipAudioQuestion=!1},150),this.currentQuestion>=this.totalQuestions)return this.renderResultSlide(),this.swiper.slideNext(),void(this.quizLast=!0);setTimeout(()=>{this.swiper.slideNext(),this.currentQuestion++,this.isLastQuestion=this.currentQuestion===this.quiz.questions.length,console.log("nextQuestion",this.quiz.questions[this.currentQuestion-1]),this.quizProgress=100*this.currentQuestion/this.quiz.questions.length,this.renderQuestion()},150)}getInputWidth(){return"calc(".concat(this.inputValue.length||3,"ch + 25px)")}getTranslationText(i){var r;return(null==i||null===(r=i.find(a=>a.language===this.languageService.target))||void 0===r?void 0:r.text)||""}getCorrectTranslationText(){var i;return(null===(i=this.quiz.questions[this.currentQuestion-1])||void 0===i||null===(i=i.translations)||void 0===i||null===(i=i.find(s=>s.language===this.languageService.origin))||void 0===i?void 0:i.text)||""}getIdOfCorrectAnswer(i){for(let r=0;r<this.quiz.questions[i].answers.length;r++)if(this.quiz.questions[i].answers[r].correct)return r}renderResultSlide(){console.log("renderResultSlide",this.realAnswers,this.correctAnswers,this.userAnswers);const i=this.realAnswers.filter(c=>"skipped"===c).length,r=this.totalQuestions-i,s=this.resultCorrectAnswers/r;this.incorrectAnswers=r-this.resultCorrectAnswers,0===s?(this.badge=!1,this.trophy=!1,this.resultText=this.languageService.label.txt_quiz_result_0_title,this.resultSubText=this.languageService.label.txt_quiz_result_0_text):s>0&&s<.34||1===this.resultCorrectAnswers?(this.badge=!1,this.trophy=!1,this.resultText=this.languageService.label.txt_quiz_result_1_title,this.resultText=this.resultText.replace("[TotalAnswer]",r.toString()),this.resultText=this.resultText.replace("[correctAnswer]",this.resultCorrectAnswers.toString()),this.resultSubText=this.languageService.label.txt_quiz_result_1_text):s>=.34&&s<.67||this.resultCorrectAnswers>1&&s<=.34?(this.badge=!0,this.trophy=!1,this.resultText=this.languageService.label.txt_quiz_result_2_title,this.resultSubText=this.languageService.label.txt_quiz_result_2_text+"<br>"+this.languageService.label.txt_quiz_result_2_text2,this.resultSubText=this.resultSubText.replace("[TotalAnswer]",r.toString()),this.resultSubText=this.resultSubText.replace("[correctAnswer]",this.resultCorrectAnswers.toString())):s>=.67&&s<1?(this.trophy=!0,this.badge=!1,this.resultText=this.languageService.label.txt_quiz_result_3_title,this.resultSubText=this.languageService.label.txt_quiz_result_2_text+"<br>"+this.languageService.label.txt_quiz_result_3_text,this.resultSubText=this.resultSubText.replace("[TotalAnswer]",r.toString()),this.resultSubText=this.resultSubText.replace("[correctAnswer]",this.resultCorrectAnswers.toString())):1===s&&(this.trophy=!0,this.badge=!1,this.resultText=this.languageService.label.txt_quiz_result_4_title,this.resultSubText=this.languageService.label.txt_quiz_result_2_text+"<br>"+this.languageService.label.txt_quiz_result_4_text,this.resultSubText=this.resultSubText.replace("[TotalAnswer]",r.toString()),this.resultSubText=this.resultSubText.replace("[correctAnswer]",this.resultCorrectAnswers.toString()));const a=document.querySelector(":root");this.finalScore=(100*s).toFixed(0)+"%",a.style.setProperty("--quiz-percentage",this.finalScore)}renderQuestion(){switch(this.quiz.questions[this.currentQuestion-1].type){case u.WORD_CLOUD:this.availableWords=this.quiz.questions[this.currentQuestion-1].answers.displayAnswer;break;case u.FILL_IN_THE_BLANKS:this.question.localQuestionParts.forEac
1h(i=>i.userWord=void 0),this.question.localAnswers.forEach(i=>i.isSelected=!1);break;case u.WORD_CLOUD_AUDIO:this.isAudioActive=!1,this.isAudioQuestion=!0,this.availableWords=this.quiz.questions[this.currentQuestion-1].answers.displayAnswer,this.disabledWordsMap=new Array(this.availableWords.length).fill(!1);break;case u.MULTIPLE_CHOICE_AUDIO:this.isAudioActive=!1,this.isAudioQuestion=!0;break;case u.MATCH_THE_PAIRS:for(this.pairLeft=this.quiz.questions[this.currentQuestion-1].answers.correct.map(i=>({title:i.pair,status:"not-selected"})),this.pairRight=this.quiz.questions[this.currentQuestion-1].answers.correct.map(i=>({title:i.answer,status:"not-selected"}));!this.isShuffled(this.quiz.questions[this.currentQuestion-1].answers.correct,this.pairLeft,this.pairRight);)this.pairLeft=this.shuffle(this.pairLeft),this.pairRight=this.shuffle(this.pairRight);this.readyNext=!1}}addWord(i,r){const s=r.target;let c,a=-1;for(let _=0;_<this.selectedWordsListRef.length;_++)if(0===this.selectedWordsListRef.get(_).nativeElement.children.length){a=_;break}if(0===a)c=0;else if(-1===a){const _=this.selectedWordsListRef.get(this.selectedWordsListRef.length-1).nativeElement;this.getWordListAvailableSpace(_)<s.clientWidth&&this.selectedWordsMultiline.push([]),c=this.selectedWordsMultiline.length-1}else{const _=this.selectedWordsListRef.get(a-1).nativeElement;c=this.getWordListAvailableSpace(_)>s.clientWidth?a-1:a}this.disabledWordsMap[i]||(this.disabledWordsMap[i]=!0,this.selectedWordsMultiline[c].push(this.availableWords[i])),this.readyNext=!0}removeWord(i,r){const s=this.availableWords.indexOf(this.selectedWordsMultiline[i][r]);if(-1===s||!this.disabledWordsMap[s])return;const a=parseInt(window.getComputedStyle(this.selectedWordsListRef.get(0).nativeElement).gap),c=this.selectedWordsListRef.get(0).nativeElement.clientWidth,_=[];for(let f=0;f<this.selectedWordsMultiline.length;f++){const z=this.selectedWordsListRef.get(f).nativeElement;for(let M=0;M<this.selectedWordsMultiline[f].length;M++)f===i&&M===r||_.push({word:this.selectedWordsMultiline[f][M],width:z.children[M].clientWidth})}const m=[[]];let d=0,v=0;for(let f=0;f<_.length;f++)v+Math.max(0,m[d].length-1)*a+a+_[f].width>c&&(d++,v=0,m.push([])),v+=_[f].width,m[d].push(_[f].word);for(;m.length<this.selectedWordsMinLines;)m.push([]);this.disabledWordsMap[s]=!1,this.selectedWordsMultiline=m,this.readyNext=this.selectedWordsMultiline.map(f=>f.length).reduce((f,z)=>f+z,0)>0}replayQuiz(){var i;this.userAnswers=[],this.correctAnswers=[],this.realAnswers=[],this.selectedWordsMultiline=[[],[]],this.numberPicked=0,this.readyNext=!1,this.quizLast=!1,this.shuffleQuestions(),this.removeAnswerResultClasses(),this.currentQuestion=1,this.isLastQuestion=this.currentQuestion===this.quiz.questions.length,this.resultCorrectAnswers=0,this.quizData({currentLevel:this.currentQuestion,questionState:""}),null===(i=document.getElementById("article-lower-element"))||void 0===i||i.scrollTo(0,0),this.quizProgress=0,this.renderQuestion()}removeAnswerResultClasses(){const i=document.getElementsByClassName("quiz-answer");for(let r=0;r<i.length;r++){const s=i[r];s.classList.remove("answer-correct"),s.classList.remove("answer-false")}}shuffleQuestions(){for(let i=this.quiz.questions.length-1;i>0;i--){const r=Math.floor(Math.random()*(i+1));[this.quiz.questions[i],this.quiz.questions[r]]=[this.quiz.questions[r],this.quiz.questions[i]]}}toggleQuizAudio(){this.isAudio=!this.isAudio,this.sqlite.setItem(A.cY.QUIZ_AUDIO,this.isAudio)}back(){this.modalCtrl.dismiss()}getTrueOrFalseLabel(i){return i?this.languageService.label.txt_quiz_true_cta:this.languageService.label.txt_quiz_false_cta}splitQuestionByParts(i){const r=[this.BLANK_PLACEHOLDER,".",",","!","?",";",":"];let s=i.split(" ").filter(a=>a.length>0);for(const a of r){const c=[];for(let _=0;_<s.length;_++)c.push(...this.splitByAndInsert(s[_],a));s=c}return s.filter(a=>a.length>0)}splitByAndInsert(i,r){const s=i.split(r),a=[];if(s.length>0){a.push(s[0]);for(let c=1;c<s.length;c++)a.push(r,s[c])}return a}getWordListAvailableSpace(i){const r=parseInt(window.getComputedStyle(i).gap);let s=i.clientWidth;for(let a=0;a<i.children.length;a++)s-=i.children[a].clientWidth+r;return s}isShuffled(i,r,s,a=1){let c=0;for(let _=0;_<i.length;_++)r.findIndex(v=>v.title===i[_].pair)===s.findIndex(v=>v.title===i[_].answer)&&c++;return c<=a}shuffle(i){const r=i.slice();for(let s=0;s<r.length;s++){const a=Math.floor(Math.random()*r.length);[r[s],r[a]]=[r[a],r[s]]}return r}}return(n=o).\u0275fac=function(i){return new(i||n)(e.rXU(O.J),e.rXU(G.g),e.rXU(y.u),e.rXU(p.T),e.rXU(x.x),e.rXU($.A),e.rXU(Q.J),e.rXU(C.W3),e.rXU(C.K_))},n.\u0275cmp=e.VBU({type:n,selectors:[["grammar-quiz"]],viewQuery:function(i,r){if(1&i&&e.GBs(F,5)(j,5),2&i){let s;e.mGM(s=e.lsd())&&(r.swiperRef=s.first),e.mGM(s=e.lsd())&&(r.selectedWordsListRef=s)}},outputs:{questionChange:"questionChange"},standalone:!1,decls:7,vars:4,consts:[["swiper",""],["text",""],["selectedWordsRef",""],["scroll-y","true",2,"position","relative",3,"fullscreen"],[1,"quiz-header"],["fill","clear",3,"click"],["name","close","slot","icon-only"],["class","progress-bar-container",4,"ngIf"],[4,"ngIf"],[3,"ngClass","class",4,"ngIf"],[1,"progress-bar-container"],[1,"progress-bar"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"ques-container"],["class","translate-sub",3,"innerHTML",4,"ngIf"],["class","quiz-question-grammar",3,"innerHTML","ngClass",4,"ngIf"],["class","quiz-question-grammar-translation",3,"innerHTML","ngClass",4,"ngIf"],["class","sentence",4,"ngIf"],["class","quiz-answers",4,"ngIf"],["class","input-translate",4,"ngIf"],["class","word-cloud-container",4,"ngIf"],["class","quiz-answers stack",4,"ngIf"],["class","match-pairs",4,"ngIf"],["class","button-container",4,"ngIf"],["class","answer-result-container",3,"ngClass",4,"ngIf"],[1,"translate-sub",3,"innerHTML"],[1,"quiz-question-grammar",3,"innerHTML","ngClass"],[1,"quiz-question-grammar-translation",3,"innerHTML","ngClass"],[1,"sentence"],[4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],[1,"blank",3,"click"],[1,"quiz-answers"],[1,"options"],["class","quiz-answer-fitb",3,"disabled","click",4,"ngFor","ngForOf"],[1,"quiz-answer-fitb",3,"click"],["class","word-container",4,"ngFor","ngForOf"],[1,"word-container"],["type","text","placeholder","____",1,"blank-input",3,"ngModelChange","ngStyle","ngModel"],[1,"input-translate"],["lines","none",1,"line-input"],["type","text",3,"ngModelChange","ngModel","placeholder"],[1,"word-cloud-container"],["class","play-audio-button",3,"click",4,"ngIf"],[1,"available-words"],["class","word-cloud-item",3,"disabled","click",4,"ngFor","ngForOf"],[1,"play-audio-button",3,"click"],["slot","icon-only","src","/assets/svg/speaker.svg"],[1,"selected-words"],["class","word-cloud-item",3,"click",4,"ngFor","ngForOf"],[1,"word-cloud-item",3,"click"],[1,"quiz-answers","stack"],["class","quiz-answer-multi",3,"innerHTML","ngClass","click",4,"ngFor","ngForOf"],[1,"quiz-answer-multi",3,"click","innerHTML","ngClass"],[1,"match-pairs"],[1,"match-pairs-content"],[3,"class","click",4,"ngFor","ngForOf"],[3,"click"],[1,"button-container"],[1,"quiz-btn-ToF",3,"click"],[1,"answer-result-container",3,"ngClass"],["class","question-result-container",4,"ngIf"],[1,"question-result-buttons-container"],["fill","clear","class","skip-audio-button",3,"click",4,"ngIf"],[1,"check-answer-button",3,"click","disabled"],[1,"question-result-container"],["class","correct-answer",4,"ngIf"],["class","wrong-answer",4,"ngIf"],["class","answer-skipped",4,"ngIf"],[1,"correct-answer"],[1,"answer-result-title"],["name","checkmark-circle"],[1,"wrong-answer"],["name","close-circle"],["class","corrected-answer",4,"ngIf"],[1,"corrected-answer"],[1,"answer-skipped"],[1,"answer-result-title",3,"innerHTML"],["fill","clear",1,"skip-audio-button",3,"click"],[1,"title-container"],["id","quiz-result-text"],[1,"results-header",3,"innerHTML"],[1,"results-subheader",3,"innerHTML"],["class","badge","src","/assets/lottie/badge_readle.json","background","transparent","speed","0.5","autoplay","",4,"ngIf"],["src","/assets/lottie/trophy.json","background","transparent","speed","1","auto
1play","",4,"ngIf"],[1,"container"],[1,"results-title",3,"ngClass"],[1,"results-container"],[1,"percent_label"],["value","75","min","0","max","100",2,"visibility","hidden","height","0","width","0"],[1,"results-label","correct",3,"ngClass"],[1,"correct-answers"],[1,"results-label","incorrect",3,"ngClass"],[1,"incorrect-answers"],[1,"quiz-btn",3,"click","innerHTML"],[1,"scroll-container"],[1,"scroll-grey",3,"innerHTML","ngClass"],[1,"scroll-grey",3,"ngClass"],["name","arrow-down-circle-outline"],["class","answers-container",3,"display",4,"ngFor","ngForOf"],["src","/assets/lottie/badge_readle.json","background","transparent","speed","0.5","autoplay","",1,"badge"],["src","/assets/lottie/trophy.json","background","transparent","speed","1","autoplay",""],[1,"answers-container"],[1,"label-container"],["class","translate-sub-results",3,"innerHTML","ngClass",4,"ngIf"],["class","translate-sub-results",3,"ngClass","innerHTML",4,"ngIf"],["class","translate-sub-results",3,"biggerFont",4,"ngIf"],["width","29","height","29","viewBox","0 0 29 29","fill","none","xmlns","http://www.w3.org/2000/svg",4,"ngIf"],["class","question-review",3,"biggerFont",4,"ngIf"],[1,"translate-sub-results",3,"innerHTML","ngClass"],[1,"translate-sub-results",3,"ngClass","innerHTML"],[1,"translate-sub-results"],["width","17","height","21","viewBox","0 0 17 21","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.45996 19.1797C3.6748 19.1797 2.99219 19.0156 2.41211 18.6875C1.83203 18.3652 1.38086 17.9053 1.05859 17.3076C0.742188 16.7158 0.583984 16.0156 0.583984 15.207V7.34082C0.583984 5.96387 0.871094 4.75977 1.44531 3.72852C2.01953 2.69141 2.81934 1.88574 3.84473 1.31152C4.87012 0.731445 6.06543 0.441406 7.43066 0.441406C8.76074 0.441406 9.92383 0.728516 10.9199 1.30273C11.9219 1.87695 12.6982 2.67969 13.249 3.71094C13.8057 4.73633 14.084 5.93457 14.084 7.30566C14.084 7.97949 14.0137 8.56836 13.873 9.07227C13.7383 9.57031 13.5537 10.0156 13.3193 10.4082C13.085 10.7949 12.8213 11.1611 12.5283 11.5068C12.2939 11.3486 12.0361 11.2578 11.7549 11.2344C11.4795 11.2109 11.2129 11.2549 10.9551 11.3662C11.2949 11.0088 11.5996 10.6396 11.8691 10.2588C12.1445 9.87793 12.3613 9.4502 12.5195 8.97559C12.6777 8.50098 12.7568 7.94434 12.7568 7.30566C12.7568 6.2041 12.5342 5.2373 12.0889 4.40527C11.6494 3.57324 11.0283 2.92578 10.2256 2.46289C9.42871 2 8.49707 1.76855 7.43066 1.76855C6.3291 1.76855 5.3623 2 4.53027 2.46289C3.7041 2.92578 3.05957 3.57617 2.59668 4.41406C2.13965 5.24609 1.91113 6.22168 1.91113 7.34082V15.1191C1.91113 15.957 2.14258 16.6162 2.60547 17.0967C3.07422 17.5771 3.71289 17.8174 4.52148 17.8174C4.99609 17.8174 5.41211 17.7383 5.76953 17.5801C5.82227 17.8203 5.92188 18.0371 6.06836 18.2305C6.2207 18.4297 6.40527 18.585 6.62207 18.6963C6.31152 18.8545 5.97461 18.9746 5.61133 19.0566C5.25391 19.1387 4.87012 19.1797 4.45996 19.1797ZM3.7832 11.8145C3.60156 11.8145 3.44629 11.75 3.31738 11.6211C3.18848 11.4863 3.12402 11.3281 3.12402 11.1465V7.28809C3.12402 6.46777 3.30273 5.74707 3.66016 5.12598C4.01758 4.50488 4.51855 4.02148 5.16309 3.67578C5.81348 3.33008 6.56641 3.15723 7.42188 3.15723C8.24805 3.15723 8.96875 3.33008 9.58398 3.67578C10.2051 4.02148 10.6885 4.50488 11.0342 5.12598C11.3799 5.74121 11.5527 6.46191 11.5527 7.28809C11.5527 7.46973 11.4854 7.62793 11.3506 7.7627C11.2217 7.8916 11.0664 7.95605 10.8848 7.95605C10.709 7.95605 10.5537 7.8916 10.4189 7.7627C10.29 7.62793 10.2256 7.46973 10.2256 7.28809C10.2256 6.43848 9.9707 5.75879 9.46094 5.24902C8.95117 4.73926 8.27148 4.48438 7.42188 4.48438C6.82422 4.48438 6.30273 4.60156 5.85742 4.83594C5.41211 5.07031 5.06641 5.39844 4.82031 5.82031C4.57422 6.23633 4.45117 6.72559 4.45117 7.28809V11.1465C4.45117 11.3281 4.38379 11.4863 4.24902 11.6211C4.12012 11.75 3.96484 11.8145 3.7832 11.8145ZM3.71289 9.2041V7.87695H6.66602C7.375 7.87695 7.94629 8.07617 8.37988 8.47461C8.81348 8.87305 9.03027 9.39453 9.03027 10.0391C9.03027 10.3086 8.97461 10.5986 8.86328 10.9092C8.75781 11.2139 8.61426 11.4805 8.43262 11.709L7.29004 13.1592C7.1377 13.3525 6.95605 13.4492 6.74512 13.4492C6.56348 13.4492 6.40527 13.3848 6.27051 13.2559C6.1416 13.127 6.07715 12.9717 6.07715 12.79C6.07715 12.6201 6.13574 12.4619 6.25293 12.3154L7.30762 10.9883C7.41309 10.8594 7.49805 10.7129 7.5625 10.5488C7.62695 10.3789 7.65918 10.2266 7.65918 10.0918C7.65918 9.82812 7.57129 9.61426 7.39551 9.4502C7.21973 9.28613 6.98242 9.2041 6.68359 9.2041H3.71289ZM7.41309 17.6943C7.27832 17.6943 7.16406 17.6475 7.07031 17.5537C6.97656 17.46 6.92969 17.3457 6.92969 17.2109V15.875C6.92969 15.7344 6.97656 15.6172 7.07031 15.5234C7.16406 15.4238 7.27832 15.374 7.41309 15.374C7.55957 15.374 7.67969 15.4238 7.77344 15.5234C7.87305 15.6172 7.92285 15.7344 7.92285 15.875V17.2109C7.92285 17.3457 7.87305 17.46 7.77344 17.5537C7.67969 17.6475 7.55957 17.6943 7.41309 17.6943ZM9.4873 19.1709C9.34668 19.1709 9.22656 19.124 9.12695 19.0303C9.0332 18.9365 8.98633 18.8164 8.98633 18.6699V14.3984C8.98633 14.2637 9.0332 14.1494 9.12695 14.0557C9.22656 13.9561 9.34668 13.9062 9.4873 13.9062C9.62793 13.9062 9.74512 13.9561 9.83887 14.0557C9.93262 14.1494 9.97949 14.2637 9.97949 14.3984V18.6699C9.97949 18.8164 9.93262 18.9365 9.83887 19.0303C9.74512 19.124 9.62793 19.1709 9.4873 19.1709ZM11.5439 20.6914C11.4033 20.6914 11.2861 20.6445 11.1924 20.5508C11.0986 20.457 11.0518 20.3398 11.0518 20.1992V12.8955C11.0518 12.749 11.0986 12.6289 11.1924 12.5352C11.292 12.4355 11.4092 12.3857 11.5439 12.3857C11.6846 12.3857 11.8018 12.4355 11.8955 12.5352C11.9951 12.6289 12.0449 12.749 12.0449 12.8955V20.1992C12.0449 20.3398 11.9951 20.457 11.8955 20.5508C11.8018 20.6445 11.6846 20.6914 11.5439 20.6914ZM13.6006 19.8213C13.4658 19.8213 13.3486 19.7715 13.249 19.6719C13.1553 19.5781 13.1084 19.4609 
113.1084 19.3203V13.748C13.1084 13.6133 13.1553 13.499 13.249 13.4053C13.3486 13.3115 13.4658 13.2646 13.6006 13.2646C13.7412 13.2646 13.8584 13.3115 13.9521 13.4053C14.0518 13.499 14.1016 13.6133 14.1016 13.748V19.3203C14.1016 19.4609 14.0518 19.5781 13.9521 19.6719C13.8584 19.7715 13.7412 19.8213 13.6006 19.8213ZM15.666 18.1602C15.5312 18.1602 15.4141 18.1104 15.3145 18.0107C15.2207 17.917 15.1738 17.8027 15.1738 17.668V15.4092C15.1738 15.2744 15.2207 15.1602 15.3145 15.0664C15.4141 14.9668 15.5312 14.917 15.666 14.917C15.8125 14.917 15.9326 14.9639 16.0264 15.0576C16.1201 15.1514 16.167 15.2686 16.167 15.4092V17.668C16.167 17.8086 16.1201 17.9258 16.0264 18.0195C15.9326 18.1133 15.8125 18.1602 15.666 18.1602Z","fill","black","fill-opacity","0.3"],[3,"innerHTML"],[3,"innerHTML",4,"ngIf"],["width","29","height","29","viewBox","0 0 29 29","fill","none","xmlns","http://www.w3.org/2000/svg"],["width","29","height","29","rx","14.5","fill","white"],["d","M14.4883 26.6445C12.832 26.6445 11.2734 26.3281 9.8125 25.6953C8.35156 25.0703 7.0625 24.1992 5.94531 23.082C4.83594 21.9648 3.96484 20.6758 3.33203 19.2148C2.69922 17.7539 2.38281 16.1953 2.38281 14.5391C2.38281 12.8828 2.69922 11.3242 3.33203 9.86328C3.96484 8.40234 4.83594 7.11719 5.94531 6.00781C7.0625 4.89063 8.34766 4.01562 9.80078 3.38281C11.2617 2.75 12.8203 2.43359 14.4766 2.43359C16.1406 2.43359 17.7031 2.7
15 19.1641 3.38281C20.625 4.01562 21.9141 4.89063 23.0312 6.00781C24.1484 7.11719 25.0234 8.40234 25.6562 9.86328C26.2891 11.3242 26.6055 12.8828 26.6055 14.5391C26.6055 16.1953 26.2891 17.7539 25.6562 19.2148C25.0234 20.6758 24.1484 21.9648 23.0312 23.082C21.9141 24.1992 20.625 25.0703 19.1641 25.6953C17.7031 26.3281 16.1445 26.6445 14.4883 26.6445ZM13.1875 20.3164C13.4062 20.3164 13.6055 20.2656 13.7852 20.1641C13.9727 20.0625 14.1367 19.9102 14.2773 19.707L19.7617 11.1523C19.8398 11.0273 19.9102 10.8945 19.9727 10.7539C20.0352 10.6055 20.0664 10.4648 20.0664 10.332C20.0664 10.0273 19.9492 9.78125 19.7148 9.59375C19.4883 9.40625 19.2305 9.3125 18.9414 9.3125C18.5586 9.3125 18.2422 9.51562 17.9922 9.92188L13.1406 17.6797L10.8906 14.8203C10.7344 14.625 10.582 14.4883 10.4336 14.4102C10.2852 14.332 10.1172 14.293 9.92969 14.293C9.63281 14.293 9.37891 14.4023 9.16797 14.6211C8.96484 14.832 8.86328 15.0859 8.86328 15.3828C8.86328 15.5312 8.89062 15.6758 8.94531 15.8164C9 15.957 9.07812 16.0938 9.17969 16.2266L12.0508 19.7188C12.2227 19.9297 12.3984 20.082 12.5781 20.1758C12.7578 20.2695 12.9609 20.3164 13.1875 20.3164Z","fill","#0DAD34"],["d","M14.4883 26.6445C12.832 26.6445 11.2734 26.3281 9.8125 25.6953C8.35156 25.0703 7.0625 24.1992 5.94531 23.082C4.83594 21.9648 3.96484 20.6758 3.33203 19.2148C2.69922 17.7539 2.38281 16.1953 2.38281 14.5391C2.38281 12.8828 2.69922 11.3242 3.33203 9.86328C3.96484 8.40234 4.83594 7.11719 5.94531 6.00781C7.0625 4.89063 8.34766 4.01562 9.80078 3.38281C11.2617 2.75 12.8203 2.43359 14.4766 2.43359C16.1406 2.43359 17.7031 2.7
15 19.1641 3.38281C20.625 4.01562 21.9141 4.89063 23.0312 6.00781C24.1484 7.11719 25.0234 8.40234 25.6562 9.86328C26.2891 11.3242 26.6055 12.8828 26.6055 14.5391C26.6055 16.1953 26.2891 17.7539 25.6562 19.2148C25.0234 20.6758 24.1484 21.9648 23.0312 23.082C21.9141 24.1992 20.625 25.0703 19.1641 25.6953C17.7031 26.3281 16.1445 26.6445 14.4883 26.6445ZM10.6445 19.4961C10.9648 19.4961 11.2383 19.3906 11.4648 19.1797L14.5 16.1211L17.5469 19.1797C17.7578 19.3906 18.0234 19.4961 18.3438 19.4961C18.6562 19.4961 18.918 19.3906 19.1289 19.1797C19.3477 18.9609 19.457 18.6992 19.457 18.3945C19.457 18.0742 19.3477 17.8125 19.1289 17.6094L16.0703 14.5508L19.1406 11.4922C19.3594 11.2656 19.4688 11.0039 19.4688 10.707C19.4688 10.4023 19.3594 10.1445 19.1406 9.93359C18.9297 9.71484 18.6719 9.60547 18.3672 9.60547C18.0625 9.60547 17.8008 9.71484 17.582 9.93359L14.5 12.9922L11.4297 9.93359C11.2109 9.73047 10.9492 9.62891 10.6445 9.62891C10.3398 9.62891 10.0781 9.73438 9.85938 9.94531C9.64844 10.1484 9.54297 10.4102 9.54297 10.7305C9.54297 11.0195 9.65234 11.2773 9.87109 11.5039L12.9297 14.5508L9.87109 17.6211C9.65234 17.832 9.54297 18.0898 9.54297 18.3945C9.54297 18.6992 9.64844 18.9609 9.85938 19.1797C10.0781 19.3906 10.3398 19.4961 10.6445 19.4961Z","fill","#E1170B"],[1,"question-review"],["class","translation",3,"innerHTML",4,"ngIf"],[3,"blank",4,"ngFor","ngForOf"],[1,"translation",3,"innerHTML"],["fill","clear",1,"listen-button",3,"click","disabled"],["slot","end","width","28","height","21","viewBox","0 0 28 21","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.5547 20.8867C13.2812 20.8867 13.0234 20.8281 12.7812 20.7109C12.5391 20.5938 12.2852 20.4062 12.0195 20.1484L7.02734 15.4141C6.94922 15.3438 6.85156 15.3086 6.73438 15.3086H3.37109C2.58203 15.3086 1.97656 15.0938 1.55469 14.6641C1.13281 14.2344 0.921875 13.5938 0.921875 12.7422V8.38281C0.921875 7.53906 1.13281 6.90234 1.55469 6.47266C1.97656 6.03516 2.58203 5.81641 3.37109 5.81641H6.73438C6.85156 5.81641 6.94922 5.78125 7.02734 5.71094L12.0195 1.02344C12.3242 0.742188 12.582 0.539063 12.793 0.414062C13.0117 0.28125 13.2578 0.214844 13.5312 0.214844C13.9297 0.214844 14.2539 0.351563 14.5039 0.625C14.7539 0.890625 14.8789 1.21484 14.8789 1.59766V19.5742C14.8789 19.9492 14.7539 20.2617 14.5039 20.5117C14.2617 20.7617 13.9453 20.8867 13.5547 20.8867ZM19.0625 15.5312C18.8281 15.3672 18.6953 15.1562 18.6641 14.8984C18.6328 14.6406 18.707 14.3867 18.8867 14.1367C19.2227 13.6602 19.4844 13.1133 19.6719 12.4961C19.8594 11.8711 19.9531 11.2188 19.9531 10.5391C19.9531 9.85938 19.8594 9.20703 19.6719 8.58203C19.4922 7.95703 19.2305 7.41016 18.8867 6.94141C18.6992 6.69922 18.6211 6.44922 18.6523 6.19141C18.6914 5.92578 18.8281 5.71094 19.0625 5.54688C19.2656 5.40625 19.4883 5.35938 19.7305 5.40625C19.9727 5.45312 20.1719 5.58984 20.3281 5.81641C20.7812 6.41016 21.1328 7.12109 21.3828 7.94922C21.6406 8.77734 21.7695 9.64062 21.7695 10.5391C21.7695 11.4375 21.6406 12.3008 21.3828 13.1289C21.1328 13.957 20.7812 14.668 20.3281 15.2617C20.1719 15.4883 19.9727 15.625 19.7305 15.6719C19.4883 15.7109 19.2656 15.6641 19.0625 15.5312ZM23.4102 18.5898C23.1992 18.4414 23.0781 18.2461 23.0469 18.0039C23.0156 17.7539 23.082 17.5078 23.2461 17.2656C23.8789 16.3516 24.3711 15.3164 24.7227 14.1602C25.082 12.9961 25.2617 11.7891 25.2617 10.5391C25.2617 9.28906 25.0859 8.08203 24.7344 6.91797C24.3828 5.75391 23.8867 4.71875 23.2461 3.8125C23.0742 3.57031 23.0039 3.32813 23.0352 3.08594C23.0742 2.83594 23.1992 2.63672 23.4102 2.48828C23.6289 2.33984 23.8594 2.28906 24.1016 2.33594C24.3438 2.38281 24.543 2.51953 24.6992 2.74609C25.457 3.76172 26.043 4.95312 26.457 6.32031C26.8711 7.6875 27.0781 9.09375 27.0781 10.5391C27.0781 11.9844 26.8672 13.3867 26.4453 14.7461C26.0312 16.1055 25.4492 17.3008 24.6992 18.332C24.543 18.5586 24.3438 18.6953 24.1016 18.7422C23.8594 18.7812 23.6289 18.7305 23.4102 18.5898Z","fill","var(--ion-color-primary)"],[1,"divider-line"],[1,"answer-list-item-title"],[3,"class","biggerFont",4,"ngIf"],["class","answer-list",4,"ngIf"],[1,"answer-list"],["class","answer-list",3,"biggerFont",4,"ngIf"],[3,"answer-blank-container",4,"ngFor","ngForOf"],[1,"match-the-pairs-answer-review-container"],["class","pair-container",4,"ngFor","ngForOf"],[1,"pair-container"],["width","13","height","12","viewBox","0 0 13 12","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1.13623 11.4268C1.0262 11.4268 0.926758 11.4014 0.837891 11.3506C0.753255 11.2998 0.685547 11.23 0.634766 11.1411C0.583984 11.0565 0.558594 10.9591 0.558594 10.8491C0.558594 10.6925 0.613607 10.555 0.723633 10.4365L5.69385 5.57422V6.25342L0.723633 1.39746C0.613607 1.27897 0.558594 1.14144 0.558594 0.984863C0.558594 0.874837 0.583984 0.775391 0.634766 0.686523C0.685547 0.597656 0.753255 0.527832 0.837891 0.477051C0.926758 0.42627 1.0262 0.400879 1.13623 0.400879C1.29704 0.400879 1.43457 0.458008 1.54883 0.572266L6.58252 5.4917C6.64176 5.54248 6.6862 5.60596 6.71582 5.68213C6.74967 5.7583 6.7666 5.83659 6.7666 5.91699C6.7666 6.0778 6.70524 6.21956 6.58252 6.34229L1.55518 11.2554C1.50016 11.3104 1.43669 11.3527 1.36475 11.3823C1.29704 11.4119 1.22087 11.4268 1.13623 11.4268ZM6.81104 11.4268C6.70101 11.4268 6.60156 11.4014 6.5127 11.3506C6.42806 11.2998 6.35824 11.23 6.30322 11.1411C6.25244 11.0565 6.22705 10.9591 6.22705 10.8491C6.22705 10.6925 6.28418 10.555 6.39844 10.4365L11.3623 5.57422V6.25342L6.39844 1.39746C6.28418 1.27897 6.22705 1.14144 6.22705 0.984863C6.22705 0.874837 6.25244 0.7
175391 6.30322 0.686523C6.35824 0.597656 6.42806 0.527832 6.5127 0.477051C6.60156 0.42627 6.70101 0.400879 6.81104 0.400879C6.96761 0.400879 7.10514 0.458008 7.22363 0.572266L12.251 5.4917C12.3102 5.54248 12.3568 5.60596 12.3906 5.68213C12.4245 5.7583 12.4414 5.83659 12.4414 5.91699C12.4414 6.0778 12.3779 6.21956 12.251 6.34229L7.22363 11.2554C7.16862 11.3104 7.10514 11.3527 7.0332 11.3823C6.96549 11.4119 6.89144 11.4268 6.81104 11.4268Z","fill","#B6B6B6"]],template:function(i,r){1&i&&(e.j41(0,"ion-content",3)(1,"div",4)(2,"ion-button",5),e.bIt("click",function(){return r.back()}),e.nrm(3,"ion-icon",6),e.k0s(),e.DNE(4,N,2,2,"div",7),e.k0s(),e.DNE(5,Le,3,1,"swiper-container",8)(6,Tt,37,44,"div",9),e.k0s()),2&i&&(e.Y8G("fullscreen",!0),e.R7$(4),e.Y8G("ngIf",!r.quizLast),e.R7$(),e.Y8G("ngIf",r.didInit&&!r.quizLast),e.R7$(),e.Y8G("ngIf",r.quizLast))},dependencies:[q.YU,q.Sq,q.bT,q.B3,I.me,I.BC,I.vS,C.Jm,C.W9,C.iq,C.$w,C.uz,C.nf,C.Gw],styles:['ion-content[_ngcontent-%COMP%]{--background: var(--quiz-content-background)}.hide[_ngcontent-%COMP%]{display:none!important}.quiz-header[_ngcontent-%COMP%]{z-index:999;position:absolute;width:100%;display:flex;align-items:center;padding:calc(var(--ion-safe-area-top) + 8px) 16px 0}.quiz-header[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{width:unset;--color: var(--quiz-close-button);padding-right:18px;margin:0;min-height:29px;height:29px}.quiz-header[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]::part(native){width:29px;height:29px;padding:0}.quiz-header[_ngcontent-%COMP%]   .progress-bar-container[_ngcontent-%COMP%]{width:100%;margin:10px;background:var(--quiz-disabled-btn-color);height:11px;border-radius:6px}.quiz-header[_ngcontent-%COMP%]   .progress-bar-container[_ngcontent-%COMP%]   .progress-bar[_ngcontent-%COMP%]{height:11px;border-radius:6px;background:var(--ion-color-primary);transition:width 1s;max-width:100%}swiper[_ngcontent-%COMP%]{height:100%;width:100%}swiper-container[_ngcontent-%COMP%]{height:100%}
1swiper-slide[_ngcontent-%COMP%]{padding:60px 0 0;border-radius:15px;justify-content:space-between}swiper-slide.bg[_ngcontent-%COMP%]{background-color:var(--story-background-main)}lottie-player[_ngcontent-%COMP%]{width:80px;height:auto;margin-right:15px}lottie-player.badge[_ngcontent-%COMP%]{scale:1.5}.scroll-container[_ngcontent-%COMP%]{margin:20px 0}.line-input[_ngcontent-%COMP%]{--padding-start: 0;--padding-end: 0;--background: var(--quiz-content-background)}.line-input[_ngcontent-%COMP%]   ion-input[_ngcontent-%COMP%]{border:none;border-bottom:3px solid var(--quiz-hr-color);background:none;outline:none;width:100%;font-size:16px;padding:5px 0;font-family:var(--font-semibold);font-size:17px;line-height:22px;letter-spacing:-.43px}.input-translate[_ngcontent-%COMP%]{width:100%;padding:0 20px}.input-translate[_ngcontent-%COMP%]   ion-input[_ngcontent-%COMP%]{--color: var(--quiz-question-color-primary)}.line-input[_ngcontent-%COMP%]   ion-input[_ngcontent-%COMP%]:focus{border-bottom:2px solid #3880ff}.quiz-question-grammar[_ngcontent-%COMP%], .quiz-question-grammar-translation[_ngcontent-%COMP%]{color:var(--quiz-question-color-primary);margin-bottom:var(--ion-lg-spacing);font-size:21px;font-family:var(--font-semibold);width:100%;padding:0 16px}.quiz-question-grammar.biggerFont[_ngcontent-%COMP%], .quiz-question-grammar-translation.biggerFont[_ngcontent-%COMP%]{font-size:calc(20px + var(--font-size-mult))}.translate-sub[_ngcontent-%COMP%]{color:var(--quiz-question-color-secondary);width:100%;text-align:center;font-size:16px;margin-bottom:10px}.translate-sub.biggerFont[_ngcontent-%COMP%]{font-size:calc(16px + var(--font-size-mult))}.quiz-answers[_ngcontent-%COMP%]{width:100%;padding:0 var(--ion-lg-spacing);margin:45px auto}.quiz-answers.stack[_ngcontent-%COMP%]{display:block}.quiz-answer-multi[_ngcontent-%COMP%]{cursor:pointer;border:2px solid var(--quiz-answer-border-color);border-radius:12px;margin-bottom:var(--ion-sm-spacing);padding:var(--ion-md-spacing) 5px;color:var(--quiz-answer-color);background-color:var(--quiz-answer-background-color)}.quiz-answer-multi[_ngcontent-%COMP%]:hover{background-color:var(--quiz-answer-background-color-hover)}.quiz-answer-multi[_ngcontent-%COMP%]:active{background-color:var(--quiz-answer-background-color-active)}.quiz-answer-multi.biggerFont[_ngcontent-%COMP%]{font-size:calc(20px + var(--font-size-mult))}.quiz-answer-fitb[_ngcontent-%COMP%]{cursor:pointer;border-radius:10px;margin:5px;padding:10px;color:#fff;font-family:var(--font-semibold);background-color:var(--quiz-answer-border-color);width:-moz-fit-content;width:fit-content;box-shadow:0 5px 5px rgba(0,0,0,.15)}.quiz-answer-fitb.biggerFont[_ngcontent-%COMP%]{font-size:calc(20px + var(--font-size-mult))}.quiz-answer-fitb.selected[_ngcontent-%COMP%]{color:#fff;border:1px solid transparent}.quiz-answer-fitb.undo[_ngcontent-%COMP%]{font-size:21.7px}.quiz-answer-fitb.disabled[_ngcontent-%COMP%]{background-color:var(--quiz-disabled-btn-color);color:var(--quiz-disabled-btn-color);box-shadow:none}.quiz-answer[_ngcontent-%COMP%]{cursor:pointer;border:1px solid var(--quiz-answer-border-color);border-radius:10px;margin-bottom:var(--ion-sm-spacing);padding:var(--ion-md-spacing) 5px;color:var(--quiz-answer-color);background-color:var(--quiz-answer-background-color)}.quiz-answer.biggerFont[_ngcontent-%COMP%]{font-size:calc(20px + var(--font-size-mult))}.progression-bar-wrapper[_ngcontent-%COMP%]{position:relative;background-color:#eee;height:6px;border-radius:10px}#quiz-result-text[_ngcontent-%COMP%]{display:flex;justify-content:space-between;text-align:left;padding:20px;font-family:var(--font-semibold);background-color:var(--story-background-secondary);color:var(--quiz-question-color-primary)}.results-header[_ngcontent-%COMP%]{font-size:20px;margin-right:15px;padding-bottom:10px}.results-header.biggerFont[_ngcontent-%COMP%]{font-size:calc(20px + var(--font-size-mult))}.results-subheader[_ngcontent-%COMP%]{font-size:16px;margin-right:20px}.results-subheader.biggerFont[_ngcontent-%COMP%]{font-size:calc(16px + var(--font-size-mult))}
1.results-label.correct[_ngcontent-%COMP%]{grid-area:b}.results-label.incorrect[_ngcontent-%COMP%]{grid-area:d}.results-container[_ngcontent-%COMP%], .results-label[_ngcontent-%COMP%]{font-size:17px;text-align:left;font-family:var(--font-semibold);color:var(--quiz-question-color-primary)}.results-container.biggerFont[_ngcontent-%COMP%], .results-label.biggerFont[_ngcontent-%COMP%]{font-size:calc(17px + var(--font-size-mult))}.webview[_ngcontent-%COMP%]{background-color:var(--readle-content-background);padding-bottom:80px}.answers-container[_ngcontent-%COMP%]{margin:10px 0 20px;font-size:17px;text-align:left;background-color:var(--quiz-result-answer-card-background);border-radius:10px;color:var(--quiz-question-color-primary);overflow:auto}.answers-container[_ngcontent-%COMP%]   div.biggerFont[_ngcontent-%COMP%]{font-size:calc(18px + var(--font-size-mult))}.answers-container[_ngcontent-%COMP%]   .label-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;padding:7px 12px;background-color:var(--ion-color-primary-light)}.answers-container[_ngcontent-%COMP%]   .label-container[_ngcontent-%COMP%]   .translate-sub-results[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:16px;font-family:var(--font-semibold);line-height:25px}.answers-container[_ngcontent-%COMP%]   .label-container[_ngcontent-%COMP%]   .translate-sub-results[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-right:8px}.answers-container[_ngcontent-%COMP%]   .label-container[_ngcontent-%COMP%]   .translate-sub-results[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]   path[_ngcontent-%COMP%]{fill:var(--quiz-question-color-primary)}.answers-container[_ngcontent-%COMP%]   .label-container[_ngcontent-%COMP%]   .translate-sub-results.biggerFont[_ngcontent-%COMP%]{font-size:calc(16px + var(--font-size-mult))}.answers-container[_ngcontent-%COMP%]   .question-review[_ngcontent-%COMP%]{display:grid;grid-template-columns:calc(100% - 40px) 20px;gap:10px;align-items:center;font-family:var(--font-semibold);padding:10px 10px 5px}.answers-container[_ngcontent-%COMP%]   .question-review[_ngcontent-%COMP%]   .translation[_ngcontent-%COMP%]{font-family:var(--font-normal)}.answers-container[_ngcontent-%COMP%]   .question-review[_ngcontent-%COMP%]   .listen-button[_ngcontent-%COMP%]{--color: var(--ion-color-primary);width:auto;text-transform:unset;margin:0;font-family:var(--font-semibold);font-size:19px;line-height:25px;letter-spacing:-.45px}.answers-container[_ngcontent-%COMP%]   .question-review[_ngcontent-%COMP%]   .listen-button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-left:6px}.answers-container[_ngcontent-%COMP%]   .question-review[_ngcontent-%COMP%]   .listen-button[_ngcontent-%COMP%]::part(native){padding:0}.answers-container[_ngcontent-%COMP%]   .question-review[_ngcontent-%COMP%]   .blank[_ngcontent-%COMP%]{padding:0;background:var(--quiz-result-question-blank)}.answers-container[_ngcontent-%COMP%]   .divider-line[_ngcontent-%COMP%]{border-bottom:1px solid var(--readle-divider-color);margin:5px 0}.answers-container[_ngcontent-%COMP%]   .answer-list-item-title[_ngcontent-%COMP%]{font-family:var(--font-normal);font-weight:400;font-size:16px;line-height:25px;letter-spacing:-.45px;color:#636363;margin:13px 12px 0}.answers-container[_ngcontent-%COMP%]   .answer-list[_ngcontent-%COMP%], .answers-container[_ngcontent-%COMP%]   .answer-list-big[_ngcontent-%COMP%]{margin:0 12px 13px;font-family:var(--font-semibold);line-height:30px}.answers-container[_ngcontent-%COMP%]   .answer-list[_ngcontent-%COMP%]   .answer-correct[_ngcontent-%COMP%], .answers-container[_ngcontent-%COMP%]   .answer-list-big[_ngcontent-%COMP%]   .answer-correct[_ngcontent-%COMP%]{color:#0dad34!important}.answers-container[_ngcontent-%COMP%]   .answer-list[_ngcontent-%COMP%]   .answer-wrong[_ngcontent-%COMP%], .answers-container[_ngcontent-%COMP%]   .answer-list-big[_ngcontent-%COMP%]   .answer-wrong[_ngcontent-%COMP%]{color:#e11
170b!important}.answers-container[_ngcontent-%COMP%]   .answer-list[_ngcontent-%COMP%]   .answer-blank-container[_ngcontent-%COMP%], .answers-container[_ngcontent-%COMP%]   .answer-list-big[_ngcontent-%COMP%]   .answer-blank-container[_ngcontent-%COMP%]{border-radius:6px;margin:2px;padding:0 4px;background:var(--quiz-result-answer-blank);color:#000;white-space:break-spaces}.answers-container[_ngcontent-%COMP%]   .answer-list[_ngcontent-%COMP%]   .answer-blank-container.answer-correct[_ngcontent-%COMP%], .answers-container[_ngcontent-%COMP%]   .answer-list-big[_ngcontent-%COMP%]   .answer-blank-container.answer-correct[_ngcontent-%COMP%]{background:rgba(20,175,57,.1)}.answers-container[_ngcontent-%COMP%]   .answer-list[_ngcontent-%COMP%]   .answer-blank-container.answer-wrong[_ngcontent-%COMP%], .answers-container[_ngcontent-%COMP%]   .answer-list-big[_ngcontent-%COMP%]   .answer-blank-container.answer-wrong[_ngcontent-%COMP%]{background:rgba(225,23,11,.1)}.answers-container[_ngcontent-%COMP%]   .answer-list-big[_ngcontent-%COMP%]{margin:0 12px 19px}.answers-container[_ngcontent-%COMP%]   .match-the-pairs-answer-review-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:7px;margin:18px 12px 12px}.answers-container[_ngcontent-%COMP%]   .match-the-pairs-answer-review-container[_ngcontent-%COMP%]   .pair-container[_ngcontent-%COMP%]{display:flex;align-items:center}.answers-container[_ngcontent-%COMP%]   .match-the-pairs-answer-review-container[_ngcontent-%COMP%]   .pair-container[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{width:calc((100% - 29px)/2);background:rgba(13,173,52,.1);border-radius:8px;color:#0dad34;font-family:var(--font-semibold);font-size:19px;line-height:25px;letter-spacing:-.45px;text-align:center;padding:2px 0}.answers-container[_ngcontent-%COMP%]   .match-the-pairs-answer-review-container[_ngcontent-%COMP%]   .pair-container[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin:0 8px}.results-container[_ngcontent-%COMP%]{padding:10px 15px;display:grid;grid-template-areas:"a b c" "a d e";background-color:var(--story-background-secondary);border-radius:10px;justify-content:space-between;align-items:center;margin:10px 0}.results-container[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{margin:5px}.correct-answers[_ngcontent-%COMP%], .incorrect-answers[_ngcontent-%COMP%]{text-align:center;padding:0 7px;border-radius:5px;height:-moz-max-content;height:max-content}.incorrect-answers[_ngcontent-%COMP%]{background-color:rgba(255,69,58,.15);color:#ff453a;grid-area:e}.correct-answers[_ngcontent-%COMP%]{color:#30d158;background-color:rgba(48,209,88,.15);grid-area:c}.correct-answer-color[_ngcontent-%COMP%]{color:#30d158}.incorrect-answer-color[_ngcontent-%COMP%]{color:#ff453a}.results-title[_ngcontent-%COMP%]{font-size:18px;text-align:left;font-family:var(--font-bold);color:var(--quiz-question-color-primary)}.results-title.biggerFont[_ngcontent-%COMP%]{font-size:calc(18px + var(--font-size-mult))}.progress-bar[_ngcontent-%COMP%]{grid-area:a;width:70px;height:70px;border-radius:50%;background:radial-gradient(closest-side,var(--story-background-secondary) 79%,transparent 80% 100%),conic-gradient(#30d158 var(--quiz-percentage),#da3e3e 0)}.scroll-grey[_ngcontent-%COMP%]{font-size:15px;color:var(--readle-font-color-light)}.scroll-grey.biggerFont[_ngcontent-%COMP%]{font-size:1.1rem}.percent_label[_ngcontent-%COMP%]{display:flex;height:70px;align-items:center;justify-content:center}.blank[_ngcontent-%COMP%]{background-color:var(--ion-color-primary-light);padding:5px;border-radius:10px;display:inline-block;margin:2px 5px;min-width:50px;font-size:20px;text-align:center;cursor:pointer;transition:background-color .3s}.blank.filled[_ngcontent-%COMP%]{color:#fff;background-color:var(--ion-color-primary)}.options[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.option[_ngcontent-%COMP%]{padding:10px 20px;background-color:#e6e6e6;border:1px solid #ccc;border-radius:5px;cursor:pointer;transition:background-color .3s}.option.selected[_ngcontent-%COMP%]{border:2px solid #3f51b5;background-color:#c5cae9}
1#progression-bar[_ngcontent-%COMP%]{background-color:var(--ion-color-primary);position:absolute;width:30%;height:6px;transition:all .4s;border-radius:10px}.answer-selected[_ngcontent-%COMP%]{background-color:var(--quiz-answer-selected-background-color)!important;border-color:var(--quiz-answer-selected-border-color);color:var(--quiz-answer-selected-color)}.answer-false[_ngcontent-%COMP%]{background-color:#da3e3e;border-color:#da3e3e;color:#fff}#progression-text[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}.ques-container[_ngcontent-%COMP%]{display:flex;max-width:450px;padding-top:30px;width:100%;height:calc(100vh - 100px);min-height:-moz-max-content;min-height:max-content;position:relative;flex-wrap:wrap;align-content:flex-start}.button-container[_ngcontent-%COMP%]{max-width:450px;display:flex;margin:48px max(16px,(100% - 450px) / 2) 0;flex-grow:1;gap:10px}.button-container[_ngcontent-%COMP%]   .quiz-btn-ToF[_ngcontent-%COMP%]{--background: var(--ion-color-primary);--background-activated: var(--ion-color-primary-shade);--background-activated-opacity: 1;--background-hover: var(--ion-color-primary-shade);--background-hover-opacity: 1;--ripple-color: var(--ion-color-primary-shade);--border-radius: 12px;--color: #fff;--box-shadow: none;height:52px;font-size:18px;width:calc((100% - 10px)/2);text-transform:unset}.quiz-btn[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;background-color:var(--ion-color-primary);color:#fff;border-radius:15px;padding:10px;margin:35px auto 0;height:50px;left:25%;font-size:18px;margin-bottom:calc(20px + var(--ion-safe-area-bottom));justify-content:center;width:calc(100% - 20px);max-width:450px;bottom:10px}.title-container[_ngcontent-%COMP%]{padding:20px 0}.title-container[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{margin:0}.quiz-start-img[_ngcontent-%COMP%]{width:50%}.quiz-end-img[_ngcontent-%COMP%]{width:35%;margin-bottom:30px}.quiz-audio-btn[_ngcontent-%COMP%]{cursor:pointer;display:inline-block;padding:3px 6px 1px;border-radius:21px;color:var(--readle-font-color-main)}.quiz-controll-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:8px}.question-result-container[_ngcontent-%COMP%]{font-size:19px;line-height:25px;letter-spacing:-.45px}.answer-result-title[_ngcontent-%COMP%]{margin:17px 20px;display:flex;align-items:center}.answer-result-title[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{font-size:25px;padding-right:10px}.correct-answer[_ngcontent-%COMP%]{color:#14af39}.wrong-answer[_ngcontent-%COMP%]{color:#c1241b}.answer-skipped[_ngcontent-%COMP%]{color:#fda10d}.corrected-answer[_ngcontent-%COMP%]{margin:10px 20px 20px;text-align:left}.answer-result-container[_ngcontent-%COMP%]{width:100%}.answer-result-container[_ngcontent-%COMP%]   ion-button.button-disabled[_ngcontent-%COMP%]{opacity:1;--background: var(--quiz-disabled-btn-color)}.answer-result-container[_ngcontent-%COMP%]   .question-result-container[_ngcontent-%COMP%], .answer-result-container[_ngcontent-%COMP%]   .question-result-buttons-container[_ngcontent-%COMP%]{max-width:450px;margin:0 auto}.result-correct[_ngcontent-%COMP%]{background:var(--quiz-feedback-correct)}.result-correct[_ngcontent-%COMP%]   .check-answer-button[_ngcontent-%COMP%]{--background: #14af39;--background-hover: #11a633;--background-activated: #109b30}.result-incorrect[_ngcontent-%COMP%]{background:var(--quiz-feedback-incorrect)}.result-incorrect[_ngcontent-%COMP%]   .check-answer-button[_ngcontent-%COMP%]{--background: #c1241b;--background-hover: #b82119;--background-activated: #a7261f}.skip-question[_ngcontent-%COMP%]{background:var(--quiz-feedback-skip)}.skip-question[_ngcontent-%COMP%]   .check-answer-button[_ngcontent-%COMP%]{--background: #fda10d;--background-hover: #ef9910;--background-activated: #e9950d}.blank-input[_ngcontent-%COMP%]{padding:5px 10px;border-radius:10px;border:none;margin-right:7px;text-align:center;font-size:20px;min-width:50px;background-color:var(--ion-color-primary-light)}.word-container[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content}.sentence[_ngcontent-%COMP%]{color:var(--quiz-question-color-primary);text-align:center;font-size:21px;font-family:var(--font-semibold);margin-bottom:20px;width:100%;padding:0 16px}.sentence[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin:0 4px}.match-pairs[_ngcontent-%COMP%]{width:-webkit-fill-available}.match-pairs[_ngcontent-%COMP%]   .match-pairs-content[_ngcontent-%COMP%]{display:flex;margin:0 16px;gap:12px}.match-pairs[_ngcontent-%COMP%]   .match-pairs-content[_ngcontent-%COMP%]   ion-list[_ngcontent-%COMP%]{width:50%;background:transparent}.match-pairs[_ngcontent-%COMP%]   .match-pairs-content[_ngcontent-%COMP%]   ion-list[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{border:2px solid var(--quiz-answer-pair-border);background:rgba(var(--ion-color-primary-rgb),.15);font-family:var(--font-semibold);font-size:17px;line-height:20.29px;text-align:center;color:var(--quiz-answer-color);transition:background .25s,color .25s,border-color .25s}.match-pairs[_ngcontent-%COMP%]   .match-pairs-content[_ngcontent-%COMP%]   ion-list[_ngcontent-%COMP%]   .selected[_ngcontent-%COMP%]{background:var(--ion-color-primary-tint);color:#fff}.match-pairs[_ngcontent-%COMP%]   .match-pairs-content[_ngcontent-%COMP%]   ion-list[_ngcontent-%COMP%]   .wrong[_ngcontent-%COMP%]{border-color:#c1241b;color:#c1241b;
1background:rgba(193,36,27,.03)}.match-pairs[_ngcontent-%COMP%]   .match-pairs-content[_ngcontent-%COMP%]   ion-list[_ngcontent-%COMP%]   .correct[_ngcontent-%COMP%]{border-color:#14af39;background:rgba(20,175,57,.1);color:#14af39}.match-pairs[_ngcontent-%COMP%]   .match-pairs-content[_ngcontent-%COMP%]   ion-list[_ngcontent-%COMP%]   .hidden[_ngcontent-%COMP%]{background:rgba(33,165,163,.07);border-color:transparent;color:transparent}.play-audio-button[_ngcontent-%COMP%]{--border-radius: 10px;--background: var(--ion-color-primary);--background-activated: var(--ion-color-primary-shade);--background-hover: var(--ion-color-primary-shade);--background-hover-opacity: 1;--box-shadow: none;width:46px;height:46px;margin:0 0 40px;font-size:18px}.play-audio-button[_ngcontent-%COMP%]::part(native){padding:0}hr[_ngcontent-%COMP%]{margin:0;height:3px;box-sizing:unset;border:none;background:var(--quiz-hr-color);border-radius:5px}.correct-trans[_ngcontent-%COMP%]{text-align:left;margin-bottom:10px}.disable[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}.word-cloud-container[_ngcontent-%COMP%]{margin:25px 29px 0;width:100%}.selected-words[_ngcontent-%COMP%]{min-height:56px;padding:10px 0;gap:9px}.available-words[_ngcontent-%COMP%]{margin-top:57px;gap:9px}.selected-words[_ngcontent-%COMP%], .available-words[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.selected-words[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%], .available-words[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{--background: var(--ion-color-primary);--background-activated: var(--ion-color-primary-tint);--border-radius: 11px;--box-shadow: none;--color: #fff;font-size:16px;font-family:var(--font-semibold);width:-moz-fit-content;width:fit-content;margin:0;text-transform:unset}.selected-words[_ngcontent-%COMP%]   ion-button.button-disabled[_ngcontent-%COMP%], .available-words[_ngcontent-%COMP%]   ion-button.button-disabled[_ngcontent-%COMP%]{--background: var(--quiz-progress-bar-background);--border: 1px solid transparent;--color: transparent;opacity:1}.container[_ngcontent-%COMP%]{padding:20px}.results-bubble[_ngcontent-%COMP%]{text-align:center;overflow-y:auto;overflow-x:hidden;min-height:100%}.results-bubble[_ngcontent-%COMP%]   #quiz-result-text[_ngcontent-%COMP%], .results-bubble[_ngcontent-%COMP%]   .container[_ngcontent-%COMP%]{max-width:450px;margin:0 auto}.results-bubble[_ngcontent-%COMP%]   .title-container[_ngcontent-%COMP%]{color:var(--quiz-question-color-primary)}.results-bubble[_ngcontent-%COMP%]   .results-bubble-container[_ngcontent-%COMP%]{position:relative;width:280px;height:235px;margin-left:auto;margin-right:auto}.results-bubble[_ngcontent-%COMP%]   .results-bubble-container[_ngcontent-%COMP%]   .quiz-end-img[_ngcontent-%COMP%]{position:absolute;width:unset;height:unset;left:0;right:0}.results-bubble[_ngcontent-%COMP%]   .results-bubble-container[_ngcontent-%COMP%]   .results-bubble-data[_ngcontent-%COMP%]{position:relative;bottom:0}.results-bubble[_ngcontent-%COMP%]   .results-bubble-container[_ngcontent-%COMP%]   .results-bubble-data[_ngcontent-%COMP%]   .correct-answers-amount[_ngcontent-%COMP%]{font-size:30px;margin-bottom:var(--ion-sm-spacing)}.results-bubble[_ngcontent-%COMP%]   .results-bubble-container[_ngcontent-%COMP%]   .results-bubble-data[_ngcontent-%COMP%]   .results-amount[_ngcontent-%COMP%]{font-size:16px}.results-bubble.correct-answers-0[_ngcontent-%COMP%]   .results-bubble-container[_ngcontent-%COMP%]   .quiz-end-img[_ngcontent-%COMP%]{margin-left:60px}.results-bubble.correct-answers-0[_ngcontent-%COMP%]   .results-bubble-container[_ngcontent-%COMP%]   .results-bubble-data[_ngcontent-%COMP%]{left:-12px;top:143px}.results-bubble.correct-answers-1[_ngcontent-%COMP%]   .results-bubble-container[_ngcontent-%COMP%]   .quiz-end-img[_ngcontent-%COMP%]{margin-left:14px}.results-bubble.correct-answers-1[_ngcontent-%COMP%]   .results-bubble-container[_ngcontent-%COMP%]   .results-bubble-data[_ngcontent-%COMP%]{top:150px;left:-14px}.results-bubble.correct-answers-2[_ngcontent-%COMP%]   .results-bubble-container[_ngcontent-%COMP%]   .quiz-end-img[_ngcontent-%COMP%]{margin-left:57px}.results-bubble.correct-answers-2[_ngcontent-%COMP%]   .results-bubble-container[_ngcontent-%COMP%]   .results-bubble-data[_ngcontent-%COMP%]{top:145px;left:-10px}.results-bubble.correct-answers-3[_ngcontent-%COMP%]   .results-bubble-container[_ngcontent-%COMP%]   .quiz-end-img[_ngcontent-%COMP%]{margin-left:63px}.results-bubble.correct-answers-3[_ngcontent-%COMP%]   .results-bubble-container[_ngcontent-%COMP%]   .results-bubble-data[_ngcontent-%COMP%]{top:146px;left:-12px}.results-bubble.correct-answers-4[_ngcontent-%COMP%]   .results-bubble-container[_ngcontent-%COMP%]   .quiz-end-img[_ngcontent-%COMP%]{margin-left:12px}.results-bubble.correct-answers-4[_ngcontent-%COMP%]   .results-bubble-container[_ngcontent-%COMP%]   .results-bubble-data[_ngcontent-%COMP%]{top:152px;left:-8px}.results-bubble.correct-answers-4[_ngcontent-%COMP%]   .results-bubble-container[_ngcontent-%COMP%]   .results-bubble-data[_ngcontent-%COMP%]   .correct-answers-amount[_ng
1content-%COMP%]{color:#fff}.check-answer-button[_ngcontent-%COMP%]{--background: var(--ion-color-primary);--background-activated: var(--ion-color-primary-shade);--background-activated-opacity: 1;--background-hover: var(--ion-color-primary-shade);--background-hover-opacity: 1;--ripple-color: var(--ion-color-primary-shade);--border-radius: 12px;--box-shadow: none;width:calc(100% - 32px);margin:0 16px calc(var(--ion-safe-area-bottom) + 13px);min-height:44px;height:44px;font-family:var(--font-semibold);font-size:17px;line-height:22px;letter-spacing:-.43px;text-transform:unset}.skip-audio-button[_ngcontent-%COMP%]{--color: var(--ion-color-primary);font-size:17px;line-height:22px;letter-spacing:-.43px;text-transform:unset;margin:13px 0}@media(max-device-height:650px){.quiz-wrapper[_ngcontent-%COMP%]{margin-top:0}.quiz-answers[_ngcontent-%COMP%]{margin-top:22px}.quiz-btn[_ngcontent-%COMP%]{margin-top:var(--ion-sm-spacing)}.quiz-end-img[_ngcontent-%COMP%]{margin-bottom:0}}@media(min-device-width:500px){.quiz-start-img[_ngcontent-%COMP%]{width:auto;height:25vh}.ques-container[_ngcontent-%COMP%]{padding-top:0;align-content:center}}.word-cloud-item[_ngcontent-%COMP%]{padding:6px 10px;border-radius:11px;background-color:var(--ion-color-primary);font-family:var(--font-semibold);color:#fff;cursor:pointer}.word-cloud-item[_ngcontent-%COMP%]:hover, .word-cloud-item[_ngcontent-%COMP%]:focus{background-color:var(--ion-color-primary-shade)}.word-cloud-item.disabled[_ngcontent-%COMP%]{background-color:var(--quiz-disabled-btn-color);color:var(--quiz-disabled-btn-color)}']}),o})()},12232(L,T,g){g.d(T,{J:()=>G});var k=g(58222),l=g(45312),O=g(66563);let G=(()=>{var b;class u{constructor(p){this.purchaseService=p,this.currentAudio=new Audio,this.audioActive=!1,this.audioFiles=new Map,this.audioArray=[],this.podcastRepeat=!1}initNewAudio(p,P,x={}){this.destroyCurrentAudio(),this.currentAudio=new Audio,this.currentAudio.src="".concat(l.c.aws.audioUrl).concat(p,"?bucket=").concat(this.purchaseService.serverRegion),this.currentAudio.onended=null==x?void 0:x.onEnded,this.currentAudio.onerror=null==x?void 0:x.onError,P&&this.currentAudio.play()}getAudioUrl(p){return"".concat(l.c.aws.audioUrl).concat(p,"?bucket=").concat(this.purchaseService.serverRegion)}setAudioSpeed(p){this.currentAudio&&(this.currentAudio.playbackRate=p)}destroyCurrentAudio(){var p;null===(p=this.currentAudio)||void 0===p||p.pause(),this.currentAudio=null}play(){var p,P;null===(p=this.currentAudio)||void 0===p||p.play(),this.audioActive=!0,null===(P=this.currentAudio)||void 0===P||P.addEventListener("ended",()=>{this.audioActive=!1})}stop(){var p;null===(p=this.currentAudio)||void 0===p||p.pause()}initAudioArray(){}destroyArticleAudio(){}}return(b=u).\u0275fac=function(p){return new(p||b)(O.KVO(k.zZ))},b.\u0275prov=O.jDH({token:b,factory:b.\u0275fac,providedIn:"root"}),u})()}}]);
2//# sourceMappingURL=default-src_app_pages_grammar-quiz_grammar-quiz_page_ts.cca49dcab655457d.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.