1"use strict";(self.webpackChunkjustclass_landing=self.webpackChunkjustclass_landing||[]).push([[87],{98135:(Ci,H,l)=>{l.r(H),l.d(H,{FeatureLazyQuizModule:()=>hi});var a=l(36895),v=l(12138),t=l(94650),T=l(77579),W=l(82722),z=l(95698),c=l(85164),rt=l(40445),O=l(61135);let S=(()=>{class e{constructor(){this.quizCounterState$=new O.X({totalItems:0,currentIndex:1}),this.stepMap=new Map}setCounterState(n){const i=this.quizCounterState$.getValue();this.quizCounterState$.next({...i,...n})}getState$(){return this.quizCounterState$.asObservable()}getState(){return this.quizCounterState$.getValue()}setTotalSteps(n){const i=n.filter(u=>u.iterable);this.setStepIdx(n),this.setCounterState({totalItems:i.length})}setStepIdx(n){let i=0;n.forEach(u=>{u.iterable&&i++,this.stepMap.set(u,i)})}setStep(n){const i=this.stepMap.get(n);this.setCounterState({currentIndex:i})}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var w=l(36806),f=l(96113);function st(e,o){1&e&&t.Hsn(0)}const at=["*"];function ct(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(n),t.oxw().previous()}),t.O4$(),t.TgZ(1,"svg",9),t._UZ(2,"path",10),t.qZA(),t._uU(3," \u041d\u0430\u0437\u0430\u0434 "),t.qZA()}}function lt(e,o){1&e&&t._UZ(0,"justkids-quiz-counter")}function pt(e,o){1&e&&t._UZ(0,"justkids-quiz-progress-bar")}function dt(e,o){1&e&&(t.TgZ(0,"div",11)(1,"div",12)(2,"div",13),t._uU(3,"\xa9 2010\u20132024 JustSchool"),t.qZA(),t.TgZ(4,"div",14)(5,"a",15),t._uU(6,"\u041f\u043e\u043b\u0456\u0442\u0438\u043a\u0430 \u043a\u043e\u043d\u0444\u0456\u0434\u0435\u043d\u0446\u0456\u0439\u043d\u043e\u0441\u0442\u0456"),t.qZA(),t.TgZ(7,"span"),t._uU(8,"|"),t.qZA(),t.TgZ(9,"a",16),t._uU(10,"\u0414\u043e\u0433\u043e\u0432\u0456\u0440-\u043e\u0444\u0435\u0440\u0442\u0430"),t.qZA()()()())}const gt=function(e,o){return{advertise:e,"with-footer":o}};let x=(()=>{class e extends v.be{constructor(n){super(n),this.iterable=!0,this.orangeBackground=!1,this.isBackButtonEnabled=!0}}return e.\u0275fac=function(n){return new(n||e)(t.Y36((0,t.Gpc)(()=>m)))},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-quiz-step"]],inputs:{iterable:"iterable",orangeBackground:"orangeBackground",queryParamSlug:"queryParamSlug",isBackButtonEnabled:"isBackButtonEnabled"},features:[t._Bn([{provide:v.be,useExisting:e}]),t.qOj],ngContentSelectors:at,decls:1,vars:0,template:function(n,i){1&n&&(t.F$t(),t.YNc(0,st,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),e})(),m=(()=>{class e extends v.B8{constructor(n,i,u,s,p,g,C,q){super(n,i,u,s),this.quizService=p,this.router=g,this.activatedRoute=C,this.store=q,this.steps=new t.n_E,this.quizOrigin=c.uj,this.subscriptionState$=new T.x}set initialIndex(n){this.selectedIndex=n,queueMicrotask(()=>{this.setQueryParamForCard(this.selectedQuiz),this.quizService.setStep(this.selectedQuiz)})}get selectedQuiz(){return this.selected}get brand(){switch(this._brand){case this.quizOrigin.JUSTCLASS:return"justclass";case this.quizOrigin.JUSTSMART:return"justsmart";case this.quizOrigin.JUSTSCHOOLL:return"justschool"}}ngAfterContentInit(){this.steps.changes.pipe((0,W.R)(this.subscriptionState$)).subscribe(()=>{this._stateChanged()}),this.quizService.setTotalSteps(this.steps),this.store.select(c.qr).pipe((0,z.q)(1)).subscribe(n=>{this._brand=n.key})}next(){super.next(),this.setQueryParamForCard(this.selectedQuiz),this.quizService.setStep(this.selectedQuiz)}previous(){super.previous(),this.setQueryParamForCard(this.selectedQuiz),this.quizService.setStep(this.selectedQuiz)}setQueryParamForCard(n){this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:{screen:n.queryParamSlug},queryParamsHandling:"merge"})}ngOnDestroy(){this.subscriptionState$.next(),this.subscriptionState$.complete()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(rt.Is,8),t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(a.K0),t.Y36(S),t.Y36(w.F0),t.Y36(w.gz),t.Y36(f.yh))},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-quiz-container"]],contentQueries:function(n,i,u){if(1&n&&t.Suo(u,x,4),2&n){let s;t.iGM(s=t.CRH())&&(i.steps=s)}},hostVars:1,hostBindings:function(n,i){2&n&&t.uIk("class",i.brand)},inputs:{initialIndex:"initialIndex"},features:[t._Bn([{provide:v.B8,useExisting:e}]),t.qOj],decls:10,vars:11,consts:[[1,"quiz-container",3,"ngClass"],[1,"quiz-wrapper"],[1,"quiz-header"],["type","button","class","quiz-back-button",3,"click",4,"ngIf"],[1,"quiz-logo"],[4,"ngIf"],[3,"ngTemplateOutlet"],["class","quiz-footer-container",4,"ngIf"],["type","button",1,"quiz-back-button",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","16","height","8","viewBox","0 0 16 8","fill","none"],["d","M15 4.5C15.2761 4.5 15.5 4.27614 15.5 4C15.5 3.72386 15.2761 3.5 15 3.5V4.5ZM0.646446 3.64645C0.451184 3.84171 0.451184 4.15829 0.646446 4.35355L3.82843 7.53553C4.02369 7.7308 4.34027 7.7308 4.53553 7.53553C4.7308 7.34027 4.7308 7.02369 4.53553 6.82843L1.70711 4L4.535
153 1.17157C4.7308 0.976311 4.7308 0.659728 4.53553 0.464466C4.34027 0.269204 4.02369 0.269204 3.82843 0.464466L0.646446 3.64645ZM15 3.5L1 3.5V4.5L15 4.5V3.5Z","fill","#242424"],[1,"quiz-footer-container"],[1,"quiz-footer"],[1,"copyright"],[1,"policies"],["href","https://justschool.me/uk/policy","target","_blank"],["target","_blank","href","https://justschool.me/uk/privacy"]],template:function(n,i){1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div"),t.YNc(4,ct,4,0,"button",3),t.qZA(),t._UZ(5,"div",4),t.YNc(6,lt,1,0,"justkids-quiz-counter",5),t.qZA(),t.YNc(7,pt,1,0,"justkids-quiz-progress-bar",5),t.GkF(8,6),t.YNc(9,dt,11,0,"div",7),t.qZA()()),2&n&&(t.Q6J("ngClass",t.WLB(8,gt,null==i.selectedQuiz?null:i.selectedQuiz.orangeBackground,0===i.selectedIndex)),t.xp6(2),t.ekj("without-progress-bar",!(null!=i.selectedQuiz&&i.selectedQuiz.iterable)),t.xp6(2),t.Q6J("ngIf",i.selectedIndex>0&&i.selectedQuiz.isBackButtonEnabled),t.xp6(2),t.Q6J("ngIf",null==i.selectedQuiz?null:i.selectedQuiz.iterable),t.xp6(1),t.Q6J("ngIf",null==i.selectedQuiz?null:i.selectedQuiz.iterable),t.xp6(1),t.Q6J("ngTemplateOutlet",i.selectedQuiz?i.selectedQuiz.content:null),t.xp6(1),t.Q6J("ngIf",0===i.selectedIndex))},styles:["[_nghost-%COMP%]{min-height:100vh;display:flex;position:relative}.justsmart[_nghost-%COMP%] .quiz-logo[_ngcontent-%COMP%]{width:104px;height:37px}.justclass[_nghost-%COMP%] .advertise[_ngcontent-%COMP%] .quiz-logo[_ngcontent-%COMP%], .justsmart[_nghost-%COMP%] .advertise[_ngcontent-%COMP%] .quiz-logo[_ngcontent-%COMP%]{height:15px}.justschool[_nghost-%COMP%] .quiz-logo[_ngcontent-%COMP%]{background-size:100%}.quiz-container[_ngcontent-%COMP%]{flex-grow:1;display:flex;color:#242424;font-family:Montserrat,sans-serif;padding-bottom:40px}.quiz-container.with-footer[_ngcontent-%COMP%]{padding-bottom:100px}.quiz-container.advertise[_ngcontent-%COMP%]{min-height:100vh;background:linear-gradient(111deg,#F48401 0%,#F46801 100%)}.quiz-header.without-progress-bar[_ngcontent-%COMP%]{align-items:flex-end;margin-bottom:30px}.advertise[_ngcontent-%COMP%] .quiz-back-button[_ngcontent-%COMP%]{color:#fff}.advertise[_ngcontent-%COMP%] .quiz-back-button[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:#fff}.quiz-logo[_ngcontent-%COMP%]{width:100px;height:36px;text-decoration:none;justify-self:center;position:relative;background:url(/assets/images/quiz/logo.png) no-repeat center;background-size:contain}.advertise[_ngcontent-%COMP%] .quiz-logo[_ngcontent-%COMP%]{height:20px;background:url(/assets/images/quiz/logo-white.png) no-repeat center;background-size:contain}.quiz-wrapper[_ngcontent-%COMP%]{max-width:1170px;margin:0 auto;padding:0 15px;flex-grow:1}.quiz-header[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,33.3333333333%);align-items:flex-end;padding:10px 0;font-size:13px;height:60px}.quiz-back-button[_ngcontent-%COMP%]{appearance:none;border:none;background:none;font-size:inherit;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:5px;font-family:Montserrat,sans-serif}.quiz-footer-container[_ngcontent-%COMP%]{position:fixed;bottom:0;width:100%;left:0;display:flex;justify-content:center;background:#E9E9E9}.quiz-footer[_ngcontent-%COMP%]{max-width:1170px;width:100%;padding:15px;display:flex;align-items:center}.quiz-footer[_ngcontent-%COMP%] .copyright[_ngcontent-%COMP%]{display:none;justify-content:center;color:#5e5e5e}.quiz-footer[_ngcontent-%COMP%] .policies[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;align-items:center;gap:10px;font-size:14px;text-decoration:none}.quiz-footer[_ngcontent-%COMP%] .policies[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#242424;font-weight:500;text-decoration:none}.quiz-footer[_ngcontent-%COMP%] .policies[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:none}justkids-quiz-counter[_ngcontent-%COMP%]{margin-left:auto}justkids-quiz-progress-bar[_ngcontent-%COMP%]{display:block;margin-bottom:30px}@media (min-width: 768px){.justsmart[_nghost-%COMP%] .quiz-logo[_ngcontent-%COMP%]{width:132px;height:49px}.justclass[_nghost-%COMP%] .quiz-logo[_ngcontent-%COMP%]{width:120px;height:49px}.justclass[_nghost-%COMP%] .advertise[_ngcontent-%COMP%] .quiz-logo[_ngcontent-%COMP%], .justsmart[_nghost-%COMP%] .advertise[_ngcontent-%COMP%] .quiz-logo[_ngcontent-%COMP%]{height:20px}.quiz-logo[_ngcontent-%COMP%]{width:156px;height:50px;background-size:100%}
1.quiz-header.without-progress-bar[_ngcontent-%COMP%]{margin-bottom:50px}.quiz-header[_ngcontent-%COMP%]{font-size:16px;padding:20px 0;height:90px}.quiz-footer[_ngcontent-%COMP%]{justify-content:space-between;padding:20px 15px}.quiz-footer[_ngcontent-%COMP%] .copyright[_ngcontent-%COMP%]{display:block}.quiz-footer[_ngcontent-%COMP%] .policies[_ngcontent-%COMP%]{flex:unset;flex-direction:row}.quiz-footer[_ngcontent-%COMP%] .policies[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline}justkids-quiz-progress-bar[_ngcontent-%COMP%]{margin-bottom:60px}}"],changeDetection:0}),e})();var b=l(50727),y=l(39300),mt=l(18505),ft=l(94813),d=l(91275),V=l(31696),r=l(24006);let E=(()=>{class e{constructor(n,i,u,s,p){this.container=n,this.quizStep=i,this.chr=u,this.store=s,this.eventService=p,this.isSubscription$=new T.x}set data(n){switch(this.form=new r.cw({}),this._data=n,this.eventService.call("quiz_question_view",this.data.uniqueQuestionId),n.type){case"test":case"test-with-answer":case"test-with-properties":this.initSingleAnswerSurvey(n);break;case"multiple-test":case"checkboxes":this.initMultipleAnswerSurvey(n)}setTimeout(()=>{this.insertDataFromSessionStorage()},0)}get data(){return this._data}initSingleAnswerSurvey(n){this.form.addControl(n.uniqueQuestionId,new r.NI("",[r.kI.required]))}insertDataFromSessionStorage(){const n=this.getSavedCardFromStorage();if(n){if("object"!=typeof n.answers||Array.isArray(n.answers)){const i=this.form.get(this.data.uniqueQuestionId);n.answers.forEach(u=>{i.push(new r.NI(u))})}else{const i={};i[this.data.uniqueQuestionId]=n.answers,this.form.patchValue(i)}this.saveDataIntoStore(),this.chr.detectChanges()}}getSavedCardFromStorage(){try{return JSON.parse(sessionStorage.getItem(c.o0))[this.quizStep.queryParamSlug]}catch{return null}}onCheckboxEvent(n){const i=this.form.get(this.data.uniqueQuestionId),u=n.target,s=JSON.parse(u.value);u.checked?i.push(new r.NI(s)):i.controls.forEach((p,g)=>{p.value.id!==s.id||i.removeAt(g)})}initMultipleAnswerSurvey(n){this.form.addControl(n.uniqueQuestionId,new r.Oe([],[r.kI.required])),this.chr.detectChanges()}nextStep(){this.saveFormDataInSessionStorage(),this.saveDataIntoStore(),this.container.next()}saveDataIntoStore(){const n=this.form.value[this.data.uniqueQuestionId];"object"!=typeof n||Array.isArray(n)?this.store.dispatch((0,c.pf)({savedData:{questionSlug:this.data.uniqueQuestionId,questionType:this.data.type,questionId:this.data.id,answers:n}})):this.store.dispatch((0,c.pf)({savedData:{questionSlug:this.data.uniqueQuestionId,questionType:this.data.type,questionId:this.data.id,answers:[n]}}))}saveFormDataInSessionStorage(){const n=this.container.selectedQuiz.queryParamSlug,i=sessionStorage.getItem(c.o0);let u={};u[n]={answers:this.form.value[n],questionType:this.data.type,questionSlug:n},i&&(u={...JSON.parse(i),...u}),sessionStorage.setItem(c.o0,JSON.stringify(u))}ngOnDestroy(){this.isSubscription$.next(),this.isSubscription$.complete()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36((0,t.Gpc)(()=>m)),t.Y36((0,t.Gpc)(()=>x)),t.Y36(t.sBO),t.Y36(f.yh),t.Y36(d.PO))},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-quiz-base-card"]],inputs:{data:"data"},decls:1,vars:0,template:function(n,i){1&n&&t._UZ(0,"div")},encapsulation:2,changeDetection:0}),e})();var Q=l(11157);function _t(e,o){if(1&e&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Oqu(n.text)}}function ht(e,o){1&e&&t._UZ(0,"mat-spinner",3),2&e&&t.Q6J("diameter",20)}let _=(()=>{class e{constructor(){this.disabled=!1,this.isLoading=!1,this.clicked=new t.vpe}ngOnInit(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-button"]],inputs:{text:"text",disabled:"disabled",isLoading:"isLoading"},outputs:{clicked:"clicked"},decls:4,vars:5,consts:[["type","button",1,"button",3,"disabled","click"],[4,"ngIf","ngIfElse"],["loader",""],[3,"diameter"]],template:function(n,i){if(1&n&&(t.TgZ(0,"button",0),t.NdJ("click",function(){return i.clicked.emit()}),t.YNc(1,_t,2,1,"span",1),t.YNc(2,ht,1,1,"ng-template",null,2,t.W1O),t.qZA()),2&n){const u=t.MAs(3);t.ekj("loading",i.isLoading),t.Q6J("disabled",i.disabled),t.xp6(1),t.Q6J("ngIf",!i.isLoading)("ngIfElse",u)}},directives:[a.O5,Q.$g],styles:["[_nghost-%COMP%] .mat-progress-spinner circle{stroke:#fff}.button[_ngcontent-%COMP%]{padding:14px 10px;border-radius:5px;background:#F46600;font-size:18px;font-weight:700;font-family:Montserrat,sans-serif;border:none;color:#fff;text-align:center;display:flex;align-items:center;justify-content:center;transition:background-color .5s;min-width:230px;width:100%;cursor:pointer}.button.loading[_ngcontent-%COMP%]{pointer-events:none}.button[_ngcontent-%COMP%]:active{background:#C50}.button[disabled][_ngcontent-%COMP%]{pointer-events:none;background:#C6C6C6;cursor:not-allowed}.button[disabled][_ngcontent-%COMP%]:hover, .button[disabled][_ngcontent-%COMP%]:active{background:#C6C6C6}@media (min-width: 768px){.button[_ngcontent-%COMP%]:hover:not(:active){background:#FF9B52}}@media (min-width: 1200px){.button[_ngcontent-%COMP%]{font-size:20px;padding:17px 10px}}"],changeDetection:0}),e})(),j=(()=>{class e{transform(n,i){if(i.length)return Boolean(i.find(u=>u.id===n.id))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=t.Yjl({name:"isAnswerCheckedFormArray",type:e,pure:!0}),e})();function Ct(e,o){if(1&e&&(t.TgZ(0,"div",11),t._uU(1),t.qZA()),2&e){const n=t.oxw();
1t.xp6(1),t.hij(" ",n.data.title," ")}}function xt(e,o){1&e&&(t.TgZ(0,"div",12),t._uU(1," \u041c\u043e\u0436\u043d\u0430 \u043e\u0431\u0440\u0430\u0442\u0438 \u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0432\u0430\u0440\u0456\u0430\u043d\u0442\u0456\u0432 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0435\u0439 "),t.qZA())}function zt(e,o){1&e&&t.GkF(0)}const A=function(e){return{$implicit:e}};function qt(e,o){if(1&e&&(t.ynx(0),t.YNc(1,zt,1,0,"ng-container",15),t.BQk()),2&e){const n=t.oxw().$implicit;t.oxw();const i=t.MAs(13);t.xp6(1),t.Q6J("ngTemplateOutlet",i)("ngTemplateOutletContext",t.VKq(2,A,n))}}function wt(e,o){1&e&&t.GkF(0)}function bt(e,o){if(1&e&&(t.ynx(0),t.YNc(1,wt,1,0,"ng-container",15),t.BQk()),2&e){const n=t.oxw().$implicit;t.oxw();const i=t.MAs(11);t.xp6(1),t.Q6J("ngTemplateOutlet",i)("ngTemplateOutletContext",t.VKq(2,A,n))}}function Ot(e,o){if(1&e&&(t.TgZ(0,"div",13),t.YNc(1,qt,2,4,"ng-container",14),t.YNc(2,bt,2,4,"ng-container",14),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.Q6J("ngIf","multiple-test"===n.data.type),t.xp6(1),t.Q6J("ngIf","multiple-test"!==n.data.type)}}function Pt(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"justkids-button",16),t.NdJ("clicked",function(){return t.CHM(n),t.oxw().nextStep()}),t.qZA()}if(2&e){const n=t.oxw();t.Q6J("disabled",n.form.invalid)}}function Mt(e,o){if(1&e&&(t.TgZ(0,"div",24),t._UZ(1,"img",25),t.qZA()),2&e){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("src",n.iconUrl,t.LSH)}}function vt(e,o){if(1&e&&(t.TgZ(0,"span",26),t._uU(1),t.qZA()),2&e){const n=t.oxw().$implicit;t.xp6(1),t.Oqu(n.subtitle)}}function yt(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"input",17,18),t.NdJ("change",function(){return t.CHM(n),t.oxw().nextStep()})("click",function(){t.CHM(n);const u=t.MAs(1);return t.oxw().forceNext(u)}),t.qZA(),t.TgZ(2,"label",19),t.YNc(3,Mt,2,1,"div",20),t.TgZ(4,"div",21)(5,"span",22),t._uU(6),t.qZA(),t.YNc(7,vt,2,1,"span",23),t.qZA()()}if(2&e){const n=o.$implicit,i=t.oxw();t.Q6J("formControlName",i.data.uniqueQuestionId)("title",n.title)("value",n)("id",n.id.toString())("checked",n.id===(null==i.form.get(i.data.uniqueQuestionId).value?null:i.form.get(i.data.uniqueQuestionId).value.id)),t.xp6(2),t.s9C("for",n.id.toString()),t.xp6(1),t.Q6J("ngIf",n.iconUrl),t.xp6(3),t.Oqu(n.title),t.xp6(1),t.Q6J("ngIf",n.subtitle)}}function kt(e,o){if(1&e&&(t.TgZ(0,"div",24),t._UZ(1,"img",25),t.qZA()),2&e){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("src",n.iconUrl,t.LSH)}}function Zt(e,o){if(1&e&&(t.TgZ(0,"span",26),t._uU(1),t.qZA()),2&e){const n=t.oxw().$implicit;t.xp6(1),t.Oqu(n.subtitle)}}const R=function(){return[]};function Tt(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"input",27),t.NdJ("change",function(u){return t.CHM(n),t.oxw().onCheckboxEvent(u)}),t.ALo(1,"json"),t.ALo(2,"isAnswerCheckedFormArray"),t.qZA(),t.TgZ(3,"label",19),t.YNc(4,kt,2,1,"div",20),t.TgZ(5,"div",21)(6,"span",22),t._uU(7),t.qZA(),t.YNc(8,Zt,2,1,"span",23),t.qZA()()}if(2&e){const n=o.$implicit,i=t.oxw();let u;t.Q6J("value",t.lcZ(1,7,n))("id",n.id.toString())("checked",t.xi3(2,9,n,(null==(u=i.form.get(i.data.uniqueQuestionId))?null:u.value)||t.DdM(12,R))),t.xp6(3),t.s9C("for",n.id.toString()),t.xp6(1),t.Q6J("ngIf",n.iconUrl),t.xp6(3),t.Oqu(n.title),t.xp6(1),t.Q6J("ngIf",n.subtitle)}}function Qt(e,o){if(1&e&&(t.TgZ(0,"div",11),t._uU(1),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.hij(" ",n.data.title," ")}}function At(e,o){1&e&&(t.TgZ(0,"div",12),t._uU(1," \u041c\u043e\u0436\u043d\u0430 \u043e\u0431\u0440\u0430\u0442\u0438 \u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0432\u0430\u0440\u0456\u0430\u043d\u0442\u0456\u0432 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0435\u0439 "),t.qZA())}function Ft(e,o){1&e&&t.GkF(0)}function St(e,o){if(1&e&&(t.ynx(0),t.YNc(1,Ft,1,0,"ng-container",15),t.BQk()),2&e){const n=t.oxw().$implicit;t.oxw();const i=t.MAs(13);t.xp6(1),t.Q6J("ngTemplateOutlet",i)("ngTemplateOutletContext",t.VKq(2,A,n))}}function Et(e,o){1&e&&t.GkF(0)}function jt(e,o){if(1&e&&(t.ynx(0),t.YNc(1,Et,1,0,"ng-container",15),t.BQk()),2&e){const n=t.oxw().$implicit;t.oxw();const i=t.MAs(11);t.xp6(1),t.Q6J("ngTemplateOutlet",i)("ngTemplateOutletContext",t.VKq(2,A,n))}}function Lt(e,o){if(1&e&&(t.TgZ(0,"div",13),t.YNc(1,St,2,4,"ng-container",14),t.YNc(2,jt,2,4,"ng-container",14),t.qZA()),2&e){const n=t.oxw();
1t.xp6(1),t.Q6J("ngIf","multiple-test"===n.data.type),t.xp6(1),t.Q6J("ngIf","multiple-test"!==n.data.type)}}function Dt(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"justkids-button",16),t.NdJ("clicked",function(){return t.CHM(n),t.oxw().nextStep()}),t.qZA()}if(2&e){const n=t.oxw();t.Q6J("disabled",n.form.invalid)}}function It(e,o){if(1&e&&(t.TgZ(0,"div",24),t._UZ(1,"img",25),t.qZA()),2&e){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("src",n.iconUrl,t.LSH)}}function Jt(e,o){if(1&e&&(t.TgZ(0,"span",26),t._uU(1),t.qZA()),2&e){const n=t.oxw().$implicit;t.xp6(1),t.Oqu(n.subtitle)}}function Ut(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"input",17,18),t.NdJ("change",function(){return t.CHM(n),t.oxw().nextStep()})("click",function(){t.CHM(n);const u=t.MAs(1);return t.oxw().forceNext(u)}),t.qZA(),t.TgZ(2,"label",19),t.YNc(3,It,2,1,"div",20),t.TgZ(4,"div",21)(5,"span",22),t._uU(6),t.qZA(),t.YNc(7,Jt,2,1,"span",23),t.qZA()()}if(2&e){const n=o.$implicit,i=t.oxw();t.Q6J("formControlName",i.data.uniqueQuestionId)("title",n.title)("value",n)("id",n.id.toString())("checked",n.id===(null==i.form.get(i.data.uniqueQuestionId).value?null:i.form.get(i.data.uniqueQuestionId).value.id)),t.xp6(2),t.s9C("for",n.id.toString()),t.xp6(1),t.Q6J("ngIf",n.iconUrl),t.xp6(3),t.Oqu(n.title),t.xp6(1),t.Q6J("ngIf",n.subtitle)}}function Bt(e,o){if(1&e&&(t.TgZ(0,"div",24),t._UZ(1,"img",25),t.qZA()),2&e){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("src",n.iconUrl,t.LSH)}}function Yt(e,o){if(1&e&&(t.TgZ(0,"span",26),t._uU(1),t.qZA()),2&e){const n=t.oxw().$implicit;t.xp6(1),t.Oqu(n.subtitle)}}function Nt(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"input",27),t.NdJ("change",function(u){return t.CHM(n),t.oxw().onCheckboxEvent(u)}),t.ALo(1,"json"),t.ALo(2,"isAnswerCheckedFormArray"),t.qZA(),t.TgZ(3,"label",19),t.YNc(4,Bt,2,1,"div",20),t.TgZ(5,"div",21)(6,"span",22),t._uU(7),t.qZA(),t.YNc(8,Yt,2,1,"span",23),t.qZA()()}if(2&e){const n=o.$implicit,i=t.oxw();let u;t.Q6J("value",t.lcZ(1,7,n))("id",n.id.toString())("checked",t.xi3(2,9,n,(null==(u=i.form.get(i.data.uniqueQuestionId))?null:u.value)||t.DdM(12,R))),t.xp6(3),t.s9C("for",n.id.toString()),t.xp6(1),t.Q6J("ngIf",n.iconUrl),t.xp6(3),t.Oqu(n.title),t.xp6(1),t.Q6J("ngIf",n.subtitle)}}const G=".quiz-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.quiz-form[_ngcontent-%COMP%]{color:#242424;font-family:Montserrat,sans-serif;width:100%}.quiz-form-wrapper[_ngcontent-%COMP%]{gap:10px;display:flex;flex-direction:column;max-width:570px;margin:0 auto;padding-bottom:10px}.quiz-elem[_ngcontent-%COMP%]{display:inline-block}.quiz-thumb[_ngcontent-%COMP%]{width:38px;height:38px;margin-right:10px}.quiz-thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:contain}.quiz-content[_ngcontent-%COMP%]{display:flex;flex-direction:column}.quiz-label[_ngcontent-%COMP%]{display:flex;padding:15px 30px;align-items:center;background:#F3F8F9;border-radius:10px;border:1px solid transparent;max-width:600px;width:100%;transition:all .5s;cursor:pointer}.quiz-title[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.quiz-answer[_ngcontent-%COMP%]{font-size:13px;font-weight:500;margin-top:5px}.quiz-question[_ngcontent-%COMP%]{font-size:20px;font-weight:700;text-align:center;margin-bottom:10px}.quiz-hint[_ngcontent-%COMP%]{font-size:16px;color:#242424;text-align:center;font-weight:500;margin-bottom:20px;line-height:18px}.quiz-description[_ngcontent-%COMP%]{color:#171717;text-align:center;font-family:Montserrat,sans-serif;font-size:16px;font-weight:500;line-height:24px;max-width:500px;width:100%;margin:0 auto 20px}.quiz-control[_ngcontent-%COMP%]:checked ~ .quiz-label[_ngcontent-%COMP%]{border:1px solid #FFC008;background:#FFF;box-shadow:0 0 15px #ebb1084f}justkids-button[_ngcontent-%COMP%]{max-width:570px;margin:30px auto 0;display:block;width:100%}@media (min-width: 768px){.quiz-label[_ngcontent-%COMP%]{padding:25px 30px}.quiz-label[_ngcontent-%COMP%]:hover{background:#FFF;box-shadow:0 0 15px #00000026}.quiz-question[_ngcontent-%COMP%]{font-size:30px;margin:0 auto 20px;max-width:540px;width:100%}.quiz-hint[_ngcontent-%COMP%]{font-size:24px;margin-bottom:30px}.quiz-thumb[_ngcontent-%COMP%]{margin-right:20px}.quiz-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600}.quiz-content[_ngcontent-%COMP%]{gap:3px;margin-left:20px}.quiz-answer[_ngcontent-%COMP%]{font-size:16px}.quiz-description[_ngcontent-%COMP%]{font-size:24px;margin-bottom:30px;line-height:32px}}@media (min-width: 1200px){.quiz-description[_ngcontent-%COMP%]{max-width:860px}}";let X=(()=>
1{class e extends E{constructor(n,i,u,s,p){super(n,i,u,s,p),this.container=n,this.quizStep=i,this.chr=u,this.store=s,this.amplitudeEvents=p}forceNext(n){n.id==this.form.value[this.data.uniqueQuestionId].id&&this.nextStep()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(m),t.Y36(x),t.Y36(t.sBO),t.Y36(f.yh),t.Y36(d.PO))},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-quiz-card-single"]],features:[t.qOj],decls:14,vars:6,consts:[[3,"formGroup"],[1,"quiz-container"],[1,"quiz-form"],[1,"quiz-question"],["class","quiz-description",4,"ngIf"],["class","quiz-hint",4,"ngIf"],[1,"quiz-form-wrapper"],["class","quiz-elem",4,"ngFor","ngForOf"],["text","\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438",3,"disabled","clicked",4,"ngIf"],["radio",""],["checkbox",""],[1,"quiz-description"],[1,"quiz-hint"],[1,"quiz-elem"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["text","\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438",3,"disabled","clicked"],["hidden","","type","radio",1,"quiz-control",3,"formControlName","title","value","id","checked","change","click"],["input",""],[1,"quiz-label",3,"for"],["class","quiz-thumb",4,"ngIf"],[1,"quiz-content"],[1,"quiz-title"],["class","quiz-answer",4,"ngIf"],[1,"quiz-thumb"],["alt","",3,"src"],[1,"quiz-answer"],["hidden","","type","checkbox",1,"quiz-control",3,"value","id","checked","change"]],template:function(n,i){1&n&&(t.ynx(0,0),t.TgZ(1,"div",1)(2,"form",2)(3,"div",3),t._uU(4),t.qZA(),t.YNc(5,Ct,2,1,"div",4),t.YNc(6,xt,2,0,"div",5),t.TgZ(7,"div",6),t.YNc(8,Ot,3,2,"div",7),t.qZA(),t.YNc(9,Pt,1,1,"justkids-button",8),t.qZA()(),t.YNc(10,yt,8,9,"ng-template",null,9,t.W1O),t.YNc(12,Tt,9,13,"ng-template",null,10,t.W1O),t.BQk()),2&n&&(t.Q6J("formGroup",i.form),t.xp6(4),t.Oqu(i.data.body),t.xp6(1),t.Q6J("ngIf",i.data.title),t.xp6(1),t.Q6J("ngIf","multiple-test"===i.data.type),t.xp6(2),t.Q6J("ngForOf",i.data.answers),t.xp6(1),t.Q6J("ngIf","multiple-test"===i.data.type))},directives:[r.JL,r.sg,r._Y,a.O5,a.sg,a.tP,_,r._,r.Fj,r.JJ,r.u],pipes:[a.Ts,j],styles:[G],changeDetection:0}),e})(),$t=(()=>{class e extends X{constructor(n,i,u,s,p,g,C){super(n,s,p,g,C),this.container=n,this.route=i,this.router=u,this.quizStep=s,this.chr=p,this.store=g,this.amplitudeEvents=C}nextStep(){super.nextStep(),this.router.navigate([],{queryParams:{leadType:this.form.value[this.data.uniqueQuestionId].properties},queryParamsHandling:"merge"})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(m),t.Y36(w.gz),t.Y36(w.F0),t.Y36(x),t.Y36(t.sBO),t.Y36(f.yh),t.Y36(d.PO))},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-quiz-card-test-with-properties"]],features:[t.qOj],decls:14,vars:6,consts:[[3,"formGroup"],[1,"quiz-container"],[1,"quiz-form"],[1,"quiz-question"],["class","quiz-description",4,"ngIf"],["class","quiz-hint",4,"ngIf"],[1,"quiz-form-wrapper"],["class","quiz-elem",4,"ngFor","ngForOf"],["text","\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438",3,"disabled","clicked",4,"ngIf"],["radio",""],["checkbox",""],[1,"quiz-description"],[1,"quiz-hint"],[1,"quiz-elem"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["text","\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438",3,"disabled","clicked"],["hidden","","type","radio",1,"quiz-control",3,"formControlName","title","value","id","checked","change","click"],["input",""],[1,"quiz-label",3,"for"],["class","quiz-thumb",4,"ngIf"],[1,"quiz-content"],[1,"quiz-title"],["class","quiz-answer",4,"ngIf"],[1,"quiz-thumb"],["alt","",3,"src"],[1,"quiz-answer"],["hidden","","type","checkbox",1,"quiz-control",3,"value","id","checked","change"]],template:function(n,i){1&n&&(t.ynx(0,0),t.TgZ(1,"div",1)(2,"form",2)(3,"div",3),t._uU(4),t.qZA(),t.YNc(5,Qt,2,1,"div",4),t.YNc(6,At,2,0,"div",5),t.TgZ(7,"div",6),t.YNc(8,Lt,3,2,"div",7),t.qZA(),t.YNc(9,Dt,1,1,"justkids-button",8),t.qZA()(),t.YNc(10,Ut,8,9,"ng-template",null,9,t.W1O),t.YNc(12,Nt,9,13,"ng-template",null,10,t.W1O),t.BQk()),2&n&&(t.Q6J("formGroup",i.form),t.xp6(4),t.Oqu(i.data.body),t.xp6(1),t.Q6J("ngIf",i.data.title),t.xp6(1),t.Q6J("ngIf","multiple-test"===i.data.type),t.xp6(2),t.Q6J("ngForOf",i.data.answers),t.xp6(1),t.Q6J("ngIf","multiple-test"===i.data.type))},directives:[r.JL,r.sg,r._Y,a.O5,a.sg,a.tP,_,r._,r.Fj,r.JJ,r.u],pipes:[a.Ts,j],styles:[G],changeDetection:0}),e})();function Ht(e,o){if(1&e&&(t.TgZ(0,"div",9),t._uU(1),t.qZA()),2&e){const n=t.oxw();
1t.xp6(1),t.hij(" ",n.data.title," ")}}function Wt(e,o){if(1&e&&(t.TgZ(0,"div",10),t._UZ(1,"img",11),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.s9C("src",n.data.iconUrl,t.LSH)}}function Vt(e,o){if(1&e&&(t.TgZ(0,"div",20),t._UZ(1,"img",11),t.qZA()),2&e){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("src",n.iconUrl,t.LSH)}}function Rt(e,o){if(1&e&&(t.TgZ(0,"span",21),t._uU(1),t.qZA()),2&e){const n=t.oxw().$implicit;t.xp6(1),t.Oqu(n.subtitle)}}function Gt(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"div",12)(1,"input",13,14),t.NdJ("change",function(){return t.CHM(n),t.oxw().nextStep()})("click",function(){t.CHM(n);const u=t.MAs(2);return t.oxw().forceNext(u)}),t.qZA(),t.TgZ(3,"label",15),t.ALo(4,"async"),t.YNc(5,Vt,2,1,"div",16),t.TgZ(6,"div",17)(7,"span",18),t._uU(8),t.qZA(),t.YNc(9,Rt,2,1,"span",19),t.qZA()()()}if(2&e){const n=o.$implicit,i=t.oxw();t.xp6(1),t.Q6J("formControlName",i.data.uniqueQuestionId)("title",n.title)("value",n)("id",n.id.toString())("checked",n.id===(null==i.form.get(i.data.uniqueQuestionId).value?null:i.form.get(i.data.uniqueQuestionId).value.id)),t.xp6(2),t.ekj("right",t.lcZ(4,13,n.isRightAnswer&&i.isFormFilled$))("wrong",!n.isRightAnswer),t.s9C("for",n.id.toString()),t.xp6(2),t.Q6J("ngIf",n.iconUrl),t.xp6(3),t.Oqu(n.title),t.xp6(1),t.Q6J("ngIf",n.subtitle)}}let Xt=(()=>{class e extends E{constructor(n,i,u,s,p){super(n,i,u,s,p),this.container=n,this.quizStep=i,this.chr=u,this.store=s,this.amplitudeEvents=p,this.isFormFilled$=new O.X(!1),this.isNextClicked=!1,this.subscription=new b.w0}forceNext(n){n.id==this.form.value[this.data.uniqueQuestionId].id&&this.nextStep()}ngOnInit(){this.subscription.add(this.form.valueChanges.subscribe(n=>{n&&Object.values(n).forEach(i=>{this.isFormFilled$.next(!!i)})}))}nextStep(){this.isNextClicked||(this.isNextClicked=!0,this.form.value[this.data.uniqueQuestionId].isRightAnswer&&this.store.dispatch((0,V.TY)({answer:this.form.value[this.data.uniqueQuestionId]})),setTimeout(()=>{super.nextStep()},1e3))}ngOnDestroy(){this.subscription.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(m),t.Y36(x),t.Y36(t.sBO),t.Y36(f.yh),t.Y36(d.PO))},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-quiz-card-test-with-answer"]],features:[t.qOj],decls:10,vars:7,consts:[[3,"formGroup"],[1,"quiz-container"],[1,"quiz-form"],[1,"quiz-question"],["class","quiz-description",4,"ngIf"],[1,"quiz-form-content"],["class","quiz-form-pic",4,"ngIf"],[1,"quiz-form-wrapper"],["class","quiz-elem",4,"ngFor","ngForOf"],[1,"quiz-description"],[1,"quiz-form-pic"],["alt","",3,"src"],[1,"quiz-elem"],["hidden","","type","radio",1,"quiz-control",3,"formControlName","title","value","id","checked","change","click"],["input",""],[1,"quiz-label",3,"for"],["class","quiz-thumb",4,"ngIf"],[1,"quiz-content"],[1,"quiz-title"],["class","quiz-answer",4,"ngIf"],[1,"quiz-thumb"],[1,"quiz-answer"]],template:function(n,i){1&n&&(t.ynx(0,0),t.TgZ(1,"div",1)(2,"form",2)(3,"div",3),t._uU(4),t.qZA(),t.YNc(5,Ht,2,1,"div",4),t.TgZ(6,"div",5),t.YNc(7,Wt,2,1,"div",6),t.TgZ(8,"div",7),t.YNc(9,Gt,10,15,"div",8),t.qZA()()()(),t.BQk()),2&n&&(t.Q6J("formGroup",i.form),t.xp6(4),t.Oqu(i.data.body),t.xp6(1),t.Q6J("ngIf",i.data.title),t.xp6(1),t.ekj("with-picture",i.data.iconUrl),t.xp6(1),t.Q6J("ngIf",i.data.iconUrl),t.xp6(2),t.Q6J("ngForOf",i.data.answers))},directives:[r.JL,r.sg,r._Y,a.O5,a.sg,r._,r.Fj,r.JJ,r.u],pipes:[a.Ov],styles:[".quiz-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.quiz-form[_ngcontent-%COMP%]{color:#242424;font-family:Montserrat,sans-serif;width:100%}.quiz-form-wrapper[_ngcontent-%COMP%]{gap:10px;display:flex;flex-direction:column;padding-bottom:10px}.quiz-form-content[_ngcontent-%COMP%]{max-width:570px;width:100%;margin:0 auto}.quiz-form-pic[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:20px;max-height:400px}.quiz-form-pic[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;object-fit:contain}.quiz-description[_ngcontent-%COMP%]{color:#171717;text-align:center;font-family:Montserrat,sans-serif;font-size:16px;font-weight:500;line-height:24px;max-width:500px;width:100%;margin:0 auto 20px}.quiz-elem[_ngcontent-%COMP%]{display:inline-block}.quiz-thumb[_ngcontent-%COMP%]{width:38px;height:38px;margin-right:10px}.quiz-thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:contain}.quiz-content[_ngcontent-%COMP%]{display:flex;flex-direction:column}.quiz-label[_ngcontent-%COMP%]{display:flex;padding:15px 30px;align-items:center;background:#F3F8F9;border-radius:10px;border:1px solid transparent;max-width:600px;width:100%;transition:all .5s;cursor:pointer}.quiz-label.right[_ngcontent-%COMP%], .quiz-label.right[_ngcontent-%COMP%]:hover{border:1px solid #5DB036;background:#EAFFE1}.quiz-title[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.quiz-answer[_ngcontent-%COMP%]{font-size:13px;font-weight:500;margin-top:5px}.quiz-question[_ngcontent-%COMP%]{font-size:20px;font-weight:700;text-align:center;margin-bottom:10px}.quiz-hint[_ngcontent-%COMP%]{font-size:13px;color:#242424;text-align:center;font-weight:500;margin-bottom:20px;line-height:18px}.quiz-control[_ngcontent-%COMP%]:checked ~ .quiz-label.wrong[_ngcontent-%COMP%]{border:1px solid #D11;background:#FFEBE8}justkids-button[_ngcontent-%COMP%]{max-width:570px;margin:30px auto 0;display:block;width:100%}@media (min-width: 768px){.quiz-label[_ngcontent-%COMP%]{padding:25px 30px}.quiz-description[_ngcontent-%COMP%]{font-size:24px;margin-bottom:30px;line-height:32px}.quiz-question[_ngcontent-%COMP%]{font-size:30px;margin:0 auto 20px;max-width:540px;width:100%}.quiz-hint[_ngcontent-%COMP%]{font-size:18px;margin-bottom:30px}.quiz-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600}.quiz-thumb[_ngcontent-%COMP%]{margin-right:20px}.quiz-content[_ngcontent-%COMP%]{gap:3px}.quiz-answer[_ngcontent-%COMP%]{font-size:16px}.quiz-form-pic[_ngcontent-%COMP%]{max-height:500px}.quiz-form-pic[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:80%}}@media (min-width: 1000px){.quiz-label[_ngcontent-%COMP%]:hover{background:#FFF;box-shadow:0 0 15px #00000026}}@media (min-width: 1200px){.quiz-form-content.with-picture[_ngcontent-%COMP%]{max-width:1000px;display:grid;grid-template-columns:repeat(2,50%);grid-gap:30px;gap:30px}.quiz-form-pic[_ngcontent-%COMP%]{order:2}.quiz-form-pic[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.quiz-description[_ngcontent-%COMP%]{max-width:860px}}"],changeDetection:0}),e})();var P=l(54004),Kt=l(80616);function tn(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"justkids-button",15),t.NdJ("clicked",function(){return t.CHM(n),t.oxw(2).container.next()}),t.qZA()}2&e&&t.Q6J("text","\u0417\u0430\u043f\u0438\u0441\u0430\u0442\u0438\u0441\u044c \u043d\u0430 \u0431\u0435\u0437\u043a\u043e\u0448\u0442\u043e\u0432\u043d\u0438\u0439 \u0443\u0440\u043e\u043a")}function nn(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"justkids-button",15),t.NdJ("clicked",function(){return t.CHM(n),t.oxw(2).container.next()}),t.qZA()}2&e&&t.Q6J("text","\u0417\u0430\u043f\u0438\u0441\u0430\u0442\u0438\u0441\u044c")}function en(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"div",4),t._uU(2),t.TgZ(3,"div",5),t._UZ(4,"img",6),t.qZA()(),t.TgZ(5,"div",7),t._UZ(6,"div",8),t.TgZ(7,"div",9),t._UZ(8,"img",10),t.qZA(),t.TgZ(9,"div",11),t.YNc(10,tn,1,1,"justkids-button",12),t.YNc(11,nn,1,1,"ng-template",null,13,t.W1O),t.TgZ(13,"div",14),t._uU(14),t.ALo(15,"async"),t.qZA()()(),t.BQk()),2&e){const n=o.ngIf,i=t.MAs(12),u=t.oxw();
1t.xp6(2),t.hij(" ",n.title," "),t.xp6(4),t.Q6J("innerHTML",n.subtitle,t.oJD),t.xp6(2),t.Q6J("src",n.iconUrl,t.LSH),t.xp6(2),t.Q6J("ngIf",!u.isMobile)("ngIfElse",i),t.xp6(4),t.hij(" \u041f\u0456\u0441\u043b\u044f \u0437\u0430\u043f\u043e\u0432\u043d\u0435\u043d\u043d\u044f \u0444\u043e\u0440\u043c\u0438, \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0438 ",t.lcZ(15,6,u.brand$).name," \u0437\u0432\u02bc\u044f\u0436\u0443\u0442\u044c\u0441\u044f \u0437 \u0432\u0430\u043c\u0438 \u043d\u0430\u0439\u0431\u043b\u0438\u0436\u0447\u0438\u043c \u0447\u0430\u0441\u043e\u043c ")}}let on=(()=>{class e{constructor(n,i){this.store=n,this.container=i,this.isMobile=(0,d.Jj)()?.innerWidth<=768,this.brand$=this.store.select(c.qr),this.knowledgeLevel$=this.store.select(Kt.MY).pipe((0,P.U)(u=>this.data.answers.find(s=>u>=s.minResultRange&&u<=s.maxResultRange)))}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(f.yh),t.Y36(m))},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-quiz-test-result"]],inputs:{data:"data"},decls:6,vars:3,consts:[[1,"quiz-promotion-container","justschool"],[1,"quiz-promotion-wrapper"],[1,"quiz-promotion-heading"],[4,"ngIf"],[1,"quiz-promotion-level"],[1,"icon"],["src","/assets/images/quiz/rocket.svg","alt",""],[1,"quiz-promotion-content"],[1,"quiz-promotion-description",3,"innerHTML"],[1,"quiz-promotion-image"],["alt","",3,"src"],[1,"quiz-promotion-footer"],[3,"text","clicked",4,"ngIf","ngIfElse"],["mobile",""],[1,"quiz-promotion-caption"],[3,"text","clicked"]],template:function(n,i){1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._uU(3," \u0417\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0442\u0435\u0441\u0442\u0443, \u0440\u0456\u0432\u0435\u043d\u044c \u0437\u043d\u0430\u043d\u044c: "),t.qZA(),t.YNc(4,en,16,8,"ng-container",3),t.ALo(5,"async"),t.qZA()()),2&n&&(t.xp6(4),t.Q6J("ngIf",t.lcZ(5,1,i.knowledgeLevel$)))},directives:[a.O5,_],pipes:[a.Ov],styles:[".quiz-promotion-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.quiz-promotion-wrapper[_ngcontent-%COMP%]{border-radius:10px;background:#FFF;padding:30px;display:flex;align-items:center;flex-direction:column;justify-content:center;margin-top:10px;width:100%}.quiz-promotion-description[_ngcontent-%COMP%]{color:#242424;text-align:center;font-size:13px;font-style:normal;font-weight:500;line-height:18px;margin:20px 0}.quiz-promotion-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.quiz-promotion-level[_ngcontent-%COMP%]{color:#f46600;text-align:center;font-size:22px;font-style:normal;font-weight:700;line-height:28px;display:flex;gap:10px;align-items:center}.quiz-promotion-level[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:30px;height:30px}.quiz-promotion-level[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%}.quiz-promotion-caption[_ngcontent-%COMP%]{color:#797979;font-size:13px;font-style:italic;font-weight:500;line-height:18px;margin-top:15px}.quiz-promotion-heading[_ngcontent-%COMP%]{color:#000;text-align:center;font-size:22px;font-weight:700;line-height:27px;margin-bottom:10px}.quiz-promotion-footer[_ngcontent-%COMP%]{margin-top:25px}@media (min-width: 768px){.quiz-promotion-wrapper[_ngcontent-%COMP%]{padding:50px 40px 40px;max-width:720px;border-radius:20px}.quiz-promotion-heading[_ngcontent-%COMP%]{font-size:36px;line-height:56px;margin-bottom:20px}.quiz-promotion-description[_ngcontent-%COMP%]{font-size:18px;line-height:26px;margin:20px 0 35px}.quiz-promotion-image[_ngcontent-%COMP%]{width:300px;margin:25px auto}.quiz-promotion-level[_ngcontent-%COMP%]{font-size:36px}.quiz-promotion-level[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:40px;height:40px}.quiz-promotion-footer[_ngcontent-%COMP%]{max-width:470px;width:100%;margin:0 auto}.quiz-promotion-caption[_ngcontent-%COMP%]{margin-top:24px;font-size:14px;line-height:20px}}@media (min-width: 1200px){[_nghost-%COMP%]{display:block;margin-top:-40px}.quiz-promotion-wrapper[_ngcontent-%COMP%]{max-width:1000px;padding:60px;margin-top:35px}.quiz-promotion-content[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,23%) 350px;justify-content:space-between;margin-top:40px}.quiz-promotion-description[_ngcontent-%COMP%]{grid-column:1/span 2;text-align:left;margin-top:0;margin-bottom:30px}.quiz-promotion-image[_ngcontent-%COMP%]{grid-row:1/span 2;grid-column:3;width:unset}.quiz-promotion-footer[_ngcontent-%COMP%]{grid-column:1/span 2;max-width:unset}}"],changeDetection:0}),e})();const un=function(){return[]};function rn(e,o){if(1&e){const n=t.EpF();
1t.TgZ(0,"div",7)(1,"input",8),t.NdJ("change",function(u){return t.CHM(n),t.oxw().onCheckboxEvent(u)}),t.ALo(2,"json"),t.ALo(3,"isAnswerCheckedFormArray"),t.qZA(),t.TgZ(4,"label",9),t._UZ(5,"span",10),t.TgZ(6,"span",11),t._uU(7),t.qZA()()()}if(2&e){const n=o.$implicit,i=t.oxw();let u;t.xp6(1),t.s9C("id",n.id),t.Q6J("value",t.lcZ(2,5,n))("checked",t.xi3(3,7,n,(null==(u=i.form.get(i.data.uniqueQuestionId))?null:u.value)||t.DdM(10,un))),t.xp6(3),t.s9C("for",n.id),t.xp6(3),t.Oqu(n.title)}}let sn=(()=>{class e extends E{constructor(n,i,u,s,p){super(n,i,u,s,p),this.container=n,this.quizStep=i,this.chr=u,this.store=s,this.amplitudeEvents=p}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(m),t.Y36(x),t.Y36(t.sBO),t.Y36(f.yh),t.Y36(d.PO))},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-quiz-card-checkbox"]],features:[t.qOj],decls:10,vars:4,consts:[[1,"quiz-container"],[1,"quiz-form",3,"formGroup"],[1,"quiz-question"],[1,"quiz-hint"],[1,"quiz-form-wrapper"],["class","quiz-elem",4,"ngFor","ngForOf"],["text","\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438",3,"disabled","clicked"],[1,"quiz-elem"],["hidden","","type","checkbox",1,"quiz-control",3,"id","value","checked","change"],[1,"quiz-label",3,"for"],[1,"quiz-checkbox"],[1,"quiz-title"]],template:function(n,i){1&n&&(t.TgZ(0,"div",0)(1,"form",1)(2,"div",2),t._uU(3),t.qZA(),t.TgZ(4,"div",3),t._uU(5,"\u041e\u0431\u0435\u0440\u0456\u0442\u044c \u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0432\u0430\u0440\u0456\u0430\u043d\u0442\u0456\u0432 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0435\u0439"),t.qZA(),t.TgZ(6,"div",4),t.ynx(7),t.YNc(8,rn,8,11,"div",5),t.BQk(),t.qZA(),t.TgZ(9,"justkids-button",6),t.NdJ("clicked",function(){return i.nextStep()}),t.qZA()()()),2&n&&(t.xp6(1),t.Q6J("formGroup",i.form),t.xp6(2),t.Oqu(i.data.body),t.xp6(5),t.Q6J("ngForOf",i.data.answers),t.xp6(1),t.Q6J("disabled",i.form.invalid))},directives:[r._Y,r.JL,r.sg,a.sg,_],pipes:[a.Ts,j],styles:['.quiz-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.quiz-form[_ngcontent-%COMP%]{color:#242424;font-family:Montserrat,sans-serif;max-width:570px;width:100%}.quiz-form-wrapper[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,calc((100% - 5px)/2));grid-gap:10px;gap:10px}.quiz-elem[_ngcontent-%COMP%]{display:inline-block}.quiz-label[_ngcontent-%COMP%]{font-size:13px;font-weight:600;transition:all .5s;cursor:pointer;border-radius:5px;background:#F3F8F9;padding:15px;display:flex;align-items:center;height:100%;border:1px solid transparent}.quiz-answer[_ngcontent-%COMP%]{font-size:13px;font-weight:500}.quiz-question[_ngcontent-%COMP%]{font-size:20px;font-weight:700;text-align:center;margin-bottom:10px}.quiz-hint[_ngcontent-%COMP%]{font-size:16px;color:#242424;text-align:center;font-weight:500;margin-bottom:20px}.quiz-checkbox[_ngcontent-%COMP%]{width:16px;height:16px;border:1px solid #C4C4C4;position:relative;display:inline-block;border-radius:3px;background:#fff;transition:all .3s;margin-right:5px;cursor:pointer}.quiz-checkbox[_ngcontent-%COMP%]:before{content:"";width:1px;height:29%;display:inline-block;opacity:0;background:#5DB036;position:absolute;left:38%;top:63%;transform:translate(-50%,-50%) rotate(-45deg);border-radius:4px}.quiz-checkbox[_ngcontent-%COMP%]:after{content:"";height:63%;display:inline-block;opacity:0;background:#5DB036;position:absolute;left:66%;top:50%;transform:translate(-50%,-50%) rotate(33deg);border-radius:4px;width:1px}.quiz-control[_ngcontent-%COMP%]:checked ~ .quiz-label[_ngcontent-%COMP%]{border:1px solid #FFC008;background:#FFF;box-shadow:0 0 15px #ebb1084f}.quiz-control[_ngcontent-%COMP%]:checked ~ .quiz-label[_ngcontent-%COMP%] > .quiz-checkbox[_ngcontent-%COMP%]{border-radius:3px;border:1px solid #5DB036;background:#EAFFE1}.quiz-control[_ngcontent-%COMP%]:checked ~ .quiz-label[_ngcontent-%COMP%] > .quiz-checkbox[_ngcontent-%COMP%]:before, .quiz-control[_ngcontent-%COMP%]:checked ~ .quiz-label[_ngcontent-%COMP%] > .quiz-checkbox[_ngcontent-%COMP%]:after{opacity:1}justkids-button[_ngcontent-%COMP%]{max-width:450px;margin:30px auto 0;display:block;width:100%}@media (min-width: 768px){.quiz-label[_ngcontent-%COMP%]:hover{background:#FFF;box-shadow:0 0 15px #00000026}.quiz-form[_ngcontent-%COMP%]{max-width:625px;width:100%}.quiz-form-wrapper[_ngcontent-%COMP%]{max-width:480px;width:100%;margin:0 auto}.quiz-question[_ngcontent-%COMP%]{font-size:30px;margin-bottom:20px}.quiz-label[_ngcontent-%COMP%]{font-size:18px}.quiz-checkbox[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:15px}.quiz-hint[_ngcontent-%COMP%]{font-size:24px;margin-bottom:30px}justkids-button[_ngcontent-%COMP%]{margin:40px auto 0}}@media (min-width: 1200px){.quiz-form[_ngcontent-%COMP%]{max-width:965px;width:100%}.quiz-form-wrapper[_ngcontent-%COMP%]{width:100%;max-width:unset;grid-template-columns:repeat(4,calc((100% - 30px)/4));gap:15px}.quiz-label[_ngcontent-%COMP%]{padding:20px 30px}}'],changeDetection:0}),e})();function an(e,o){if(1&e&&(t.TgZ(0,"div",6),t._uU(1),t.qZA()),2&e){const n=t.oxw();
1t.xp6(1),t.Oqu(n.data.title)}}function cn(e,o){if(1&e&&(t.TgZ(0,"div",7),t._uU(1),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.hij(" ",n.data.subtitle," ")}}function ln(e,o){if(1&e&&(t.TgZ(0,"div",8),t._UZ(1,"img",9),t.qZA()),2&e){const n=t.oxw();t.xp6(1),t.s9C("src",n.data.iconUrl,t.LSH)}}let pn=(()=>{class e{constructor(n,i,u){this.container=n,this.quizStep=i,this.amplitudeEvents=u,this.amplitudeEvents.call("quiz_question_view",i.queryParamSlug)}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(m),t.Y36(x),t.Y36(d.PO))},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-quiz-card-promotion"]],inputs:{data:"data"},decls:6,vars:3,consts:[[1,"quiz-promotion-container"],[1,"quiz-promotion-wrapper"],["class","quiz-promotion-title",4,"ngIf"],["class","quiz-promotion-description",4,"ngIf"],["class","quiz-promotion-thumb",4,"ngIf"],["text","\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438",3,"click"],[1,"quiz-promotion-title"],[1,"quiz-promotion-description"],[1,"quiz-promotion-thumb"],["alt","",3,"src"]],template:function(n,i){1&n&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,an,2,1,"div",2),t.YNc(3,cn,2,1,"div",3),t.YNc(4,ln,2,1,"div",4),t.TgZ(5,"justkids-button",5),t.NdJ("click",function(){return i.container.next()}),t.qZA()()()),2&n&&(t.xp6(2),t.Q6J("ngIf",i.data.title),t.xp6(1),t.Q6J("ngIf",i.data.subtitle),t.xp6(1),t.Q6J("ngIf",i.data.iconUrl))},directives:[a.O5,_],styles:[".quiz-promotion-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.quiz-promotion-wrapper[_ngcontent-%COMP%]{border-radius:10px;background:#FFF;padding:30px;display:flex;align-items:center;flex-direction:column}.quiz-promotion-title[_ngcontent-%COMP%]{font-size:28px;color:#f46600;font-weight:700;margin-bottom:10px}.quiz-promotion-description[_ngcontent-%COMP%]{font-size:13px;color:#242424;text-align:center;font-weight:500}.quiz-promotion-thumb[_ngcontent-%COMP%]{margin:20px 0;width:100%}.quiz-promotion-thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}justkids-button[_ngcontent-%COMP%]{display:block;width:100%}@media (min-width: 768px){.quiz-promotion-title[_ngcontent-%COMP%]{font-size:50px}.quiz-promotion-description[_ngcontent-%COMP%]{font-size:18px}.quiz-promotion-thumb[_ngcontent-%COMP%]{margin:30px 0}.quiz-promotion-wrapper[_ngcontent-%COMP%]{padding:60px;max-width:570px}[_nghost-%COMP%]{display:block;margin-top:50px}justkids-button[_ngcontent-%COMP%]{margin-top:10px}}@media (min-width: 1200px){.quiz-promotion-wrapper[_ngcontent-%COMP%]{max-width:650px}}"],changeDetection:0}),e})();var k=l(63900),L=l(82805),D=l(70262),K=l(39646),I=l(43851),J=l(42773),dn=l(21257);function gn(e,o){1&e&&(t.TgZ(0,"div",5),t._uU(1," \u041e\u0431\u043e\u0432\u02bc\u044f\u0437\u043a\u043e\u0432\u0435 \u043f\u043e\u043b\u0435 "),t.qZA())}function mn(e,o){1&e&&(t.TgZ(0,"div",5),t._uU(1," \u0412\u0432\u0435\u0434\u0456\u0442\u044c email \u043d\u0430\u043f\u0440. [email protected] "),t.qZA())}function fn(e,o){if(1&e&&(t.TgZ(0,"div",5),t._uU(1),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.hij(" \u0417\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043f\u043e\u043b\u044f \u043f\u043e\u0432\u0438\u043d\u043d\u043e \u0431\u0443\u0442\u0438 \u043c\u0435\u043d\u0448\u0435 ",null==n.control.errors||null==n.control.errors.maxlength?null:n.control.errors.maxlength.requiredLength," \u0441\u0438\u043c\u0432\u043e\u043b\u0456\u0432 ")}}function _n(e,o){if(1&e&&(t.TgZ(0,"div",5),t._uU(1),t.qZA()),2&e){const n=t.oxw(2);t.xp6(1),t.hij(" \u0417\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043f\u043e\u043b\u044f \u043f\u043e\u0432\u0438\u043d\u043d\u043e \u0431\u0443\u0442\u0438 \u043d\u0435 \u043c\u0435\u043d\u0448\u0435 ",null==n.control.errors||null==n.control.errors.minlength?null:n.control.errors.minlength.requiredLength," \u0441\u0438\u043c\u0432\u043e\u043b\u0456\u0432 ")}}function hn(e,o){1&e&&(t.TgZ(0,"div",5),t._uU(1," \u041b\u0430\u0442\u0438\u043d\u0438\u0446\u044f, \u043a\u0438\u0440\u0438\u043b\u0438\u0446\u044f \u0442\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u0438 \xab\u02bc\xbb, \xab-\xbb "),t.qZA())}function Cn(e,o){1&e&&(t.TgZ(0,"div",5),t._uU(1,"\u0422\u0456\u043b\u044c\u043a\u0438 \u0446\u0438\u0444\u0440\u0438"),t.qZA())}function xn(e,o){1&e&&(t.TgZ(0,"div",5),t._uU(1," \u0412\u0432\u0435\u0434\u0456\u0442\u044c \u0447\u043e\u0442\u0438\u0440\u0438\u0437\u043d\u0430\u0447\u043d\u0438\u0439 \u043a\u043e\u0434 "),t.qZA())}function zn(e,o){1&e&&(t.TgZ(0,"div",5),t._uU(1," \u0422\u0456\u043b\u044c\u043a\u0438 \u043a\u0438\u0440\u0438\u043b\u0438\u0446\u044f \u0442\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u0438 \xab\u02bc\xbb, \xab-\xbb "),t.qZA())}function qn(e,o){1&e&&(t.TgZ(0,"div",5),t._uU(1," \u0412\u0438\u0431\u0430\u0447\u0442\u0435, \u0430\u043b\u0435 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447 \u0437 \u0442\u0430\u043a\u0438\u043c email \u0432\u0436\u0435 \u0456\u0441\u043d\u0443\u0454, \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0456\u0441\u0442\u044c \u0432\u0432\u043e\u0434\u0443 \u0434\u0430\u043d\u0438\u0445 \u0430\u0431\u043e \u0441\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0443\u0432\u0456\u0439\u0442\u0438 "),t.qZA())}
1const wn=function(e){return{"error-input":e}};function bn(e,o){if(1&e&&(t.ynx(0),t._UZ(1,"input",3),t.YNc(2,gn,2,0,"div",4),t.YNc(3,mn,2,0,"div",4),t.YNc(4,fn,2,1,"div",4),t.YNc(5,_n,2,1,"div",4),t.YNc(6,hn,2,0,"div",4),t.YNc(7,Cn,2,0,"div",4),t.YNc(8,xn,2,0,"div",4),t.YNc(9,zn,2,0,"div",4),t.YNc(10,qn,2,0,"div",4),t.BQk()),2&e){const n=t.oxw();t.xp6(1),t.s9C("type",n.type),t.Q6J("ngClass",t.VKq(13,wn,n.control.errors))("placeholder",n.placeholder)("formControl",n.control),t.xp6(1),t.Q6J("ngIf",null==n.control.errors?null:n.control.errors.required),t.xp6(1),t.Q6J("ngIf",null==n.control.errors?null:n.control.errors.email),t.xp6(1),t.Q6J("ngIf",(null==n.control.errors?null:n.control.errors.maxlength)&&"code"!==n.controlName),t.xp6(1),t.Q6J("ngIf",(null==n.control.errors?null:n.control.errors.minlength)&&"code"!==n.controlName),t.xp6(1),t.Q6J("ngIf",null==n.control.errors?null:n.control.errors.name),t.xp6(1),t.Q6J("ngIf",null==n.control.errors?null:n.control.errors.digitsOnly),t.xp6(1),t.Q6J("ngIf","code"===n.controlName&&((null==n.control.errors?null:n.control.errors.maxlength)||(null==n.control.errors?null:n.control.errors.minlength))),t.xp6(1),t.Q6J("ngIf",null==n.control.errors?null:n.control.errors.cyrillic),t.xp6(1),t.Q6J("ngIf",null==n.control.errors?null:n.control.errors.emailExists)}}let F=(()=>{class e{constructor(){this.placeholder="",this.type="text"}ngOnInit(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-input"]],inputs:{label:"label",placeholder:"placeholder",control:"control",type:"type",controlName:"controlName"},decls:4,vars:2,consts:[[1,"control-label"],[1,"control-field"],[4,"ngIf"],[1,"input",3,"type","ngClass","placeholder","formControl"],["class","error",4,"ngIf"],[1,"error"]],template:function(n,i){1&n&&(t.TgZ(0,"div",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1),t.YNc(3,bn,11,15,"ng-container",2),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",i.label,"\n"),t.xp6(2),t.Q6J("ngIf",i.control))},directives:[a.O5,r.Fj,a.mk,r.JJ,r.oH],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:7px;font-family:Montserrat,sans-serif}.input[_ngcontent-%COMP%]{border-radius:5px;border:1px solid #A3A3A3;padding:15px 0 15px 15px;font-size:13px;font-weight:500;appearance:none;width:100%;outline:none;-webkit-user-select:none;user-select:none;font-family:Montserrat,sans-serif}.input[_ngcontent-%COMP%]::placeholder{font-size:inherit;color:#a3a3a3;font-weight:inherit;font-family:inherit}.input.ng-dirty.error-input[_ngcontent-%COMP%]:not(:focus){border:1px solid #D11;background:#FFEBE9}.input.ng-valid[_ngcontent-%COMP%]:not(:focus){border:1px solid #5DB036;background:#F3F8F9}.input[_ngcontent-%COMP%]:hover{border:1px solid #242424}.input[_ngcontent-%COMP%]:focus{border:1px solid #242424}.error[_ngcontent-%COMP%]{display:none;color:#d11;font-size:12px;font-weight:500;margin-top:7px}.input.ng-dirty.error-input[_ngcontent-%COMP%]:not(:focus) ~ .error[_ngcontent-%COMP%]{display:block}.control-label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:#242424;font-family:Montserrat,sans-serif;text-align:left}@media (min-width: 768px){[_nghost-%COMP%]{gap:10px}.input[_ngcontent-%COMP%]{font-size:18px}.control-label[_ngcontent-%COMP%], .error[_ngcontent-%COMP%]{font-size:16px}}"]}),e})();function On(e,o){if(1&e&&(t.TgZ(0,"div",15),t._uU(1),t.qZA()),2&e){const n=o.ngIf;t.xp6(1),t.hij(" ",n," ")}}function Pn(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"div",16),t.NdJ("click",function(){return t.CHM(n),t.oxw().resend()}),t._uU(1," \u041e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u043d\u043e\u0432\u0438\u0439 \u043a\u043e\u0434 "),t.qZA()}}function Mn(e,o){1&e&&(t.TgZ(0,"span"),t._uU(1,"0"),t.qZA())}function vn(e,o){if(1&e&&(t.TgZ(0,"div",17),t._uU(1," \u041e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u043d\u043e\u0432\u0438\u0439 \u043a\u043e\u0434 \u0447\u0435\u0440\u0435\u0437 00:"),t.YNc(2,Mn,2,0,"span",18),t.ALo(3,"async"),t._uU(4),t.ALo(5,"async"),t.qZA()),2&e){const n=t.oxw();t.xp6(2),t.Q6J("ngIf",t.lcZ(3,2,n.timer$)<10),t.xp6(2),t.hij("",t.lcZ(5,4,n.timer$)," ")}}function yn(e,o){if(1&e){const n=t.EpF();t.TgZ(0,"justkids-button",19),t.NdJ("clicked",function(){return t.CHM(n),t.oxw().submit()}),t.ALo(1,"async"),t.qZA()}if(2&e){const n=t.oxw();t.Q6J("isLoading",t.lcZ(1,1,n.loading$))}}let kn=(()=>{class e{constructor(n,i,u,s,p,g,C){this.fb=n,this.dialogRef=i,this.quizService=u,this.justClassAuthService=s,this.store=p,this.amplitudeEvents=g,this.data=C,this.form=this.fb.group({code:this.fb.control("",[r.kI.required,r.kI.minLength(4),r.kI.maxLength(4),d.OF])}),this.phone="",this.startTimer$=new O.X(!1),this.timer$=this.startTimer$.pipe((0,y.h)(q=>!!q),(0,k.w)(()=>(0,L.H)(0,1e3).pipe((0,P.U)(q=>
1e.NEW_CODE_TIME-q),(0,z.q)(e.NEW_CODE_TIME+2)))),this.requestErrors$=new O.X(""),this.loading$=new O.X(!1),this.subscriptionVerify=new b.w0,this.subscriptionSend=new b.w0,this.amplitudeEvents.call("quiz_sms_code_view"),this.resend(!1),this.phone=C.phone}submit(){this.requestErrors$.next("");const n=this.store.select(c.qr);this.form.valid&&(this.loading$.next(!0),this.subscriptionVerify.unsubscribe(),this.subscriptionVerify=n.pipe((0,k.w)(i=>this.quizService.smsVerify(this.data.phone,this.form.value.code,i.key))).pipe((0,D.K)(i=>(0,K.of)({status:!1,error:i?.error?.errors?.[0]}))).subscribe(({status:i,error:u})=>{this.loading$.next(!1),i?(this.amplitudeEvents.call("quiz_sms_code_filled","right"),this.dialogRef.close(!0)):(this.amplitudeEvents.call("quiz_sms_code_filled","error"),this.requestErrors$.next(u="Code is not valid! Please try new code!"!==u&&u?"\u0429\u043e\u0441\u044c \u043f\u0456\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a, \u0431\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0441\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0449\u0435 \u0440\u0430\u0437!":"\u041f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0456\u0441\u0442\u044c \u0432\u0432\u043e\u0434\u0443 \u043a\u043e\u0434\u0443"))}))}resend(n=!0){this.requestErrors$.next(""),n&&(this.loading$.next(!0),this.form.invalid&&this.amplitudeEvents.call("quiz_sms_code_filled","empty"));const i=this.store.select(c.qr);this.subscriptionSend.unsubscribe(),this.subscriptionSend=i.pipe((0,k.w)(u=>this.justClassAuthService.smsGetCode(this.data.phone,u.key))).pipe((0,D.K)(u=>(0,K.of)({status:!1,error:u?.error?.errors?.[0]}))).subscribe(({status:u,error:s})=>{this.loading$.next(!1),this.startTimer$.next(!0),u||this.requestErrors$.next("Please, try to again in a few minutes!"===s?"\u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0441\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0449\u0435 \u0440\u0430\u0437 \u0447\u0435\u0440\u0435\u0437 \u043a\u0456\u043b\u044c\u043a\u0430 \u0445\u0432\u0438\u043b\u0438\u043d!":"\u0429\u043e\u0441\u044c \u043f\u0456\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a, \u0431\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0441\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0449\u0435 \u0440\u0430\u0437!")})}close(){this.form.invalid&&this.amplitudeEvents.call("quiz_sms_code_filled","empty"),this.dialogRef.close()}ngOnDestroy(){this.subscriptionVerify.unsubscribe(),this.subscriptionSend.unsubscribe()}}return e.NEW_CODE_TIME=30,e.\u0275fac=function(n){return new(n||e)(t.Y36(r.qu),t.Y36(J.so),t.Y36(c.vA),t.Y36(I.Eo),t.Y36(f.yh),t.Y36(d.PO),t.Y36(J.WI))},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-sms-confirm-modal"]],decls:21,vars:14,consts:[[3,"show"],[1,"confirm-wrapper"],[1,"close",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","32","height","32","viewBox","0 0 32 32","fill","none"],["d","M21.3327 10.6667L15.9993 16M15.9993 16L10.666 21.3333M15.9993 16L10.666 10.6667M15.9993 16L21.3327 21.3333","stroke","#242424","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M15.9993 29.3333C23.3631 29.3333 29.3327 23.3638 29.3327 16C29.3327 8.63619 23.3631 2.66666 15.9993 2.66666C8.63555 2.66666 2.66602 8.63619 2.66602 16C2.66602 23.3638 8.63555 29.3333 15.9993 29.3333Z","stroke","#242424","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],[1,"confirm-container"],[1,"confirm-title"],[1,"confirm-text"],[1,"confirm-controls"],["label","\u041a\u043e\u0434 \u043f\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0436\u0435\u043d\u043d\u044f","placeholder","\u0423\u0432\u0435\u0434\u0456\u0442\u044c \u043a\u043e\u0434",3,"control","controlName"],["class","error",4,"ngIf"],["class","resend",3,"click",4,"ngIf","ngIfElse"],["timer",""],["text","\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438",3,"isLoading","clicked",4,"ngIf"],[1,"error"],[1,"resend",3,"click"],[1,"timer"],[4,"ngIf"],["text","\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438",3,"isLoading","clicked"]],template:function(n,i){if
1(1&n&&(t._UZ(0,"justkids-loader",0),t.ALo(1,"async"),t.TgZ(2,"div",1)(3,"div",2),t.NdJ("click",function(){return i.close()}),t.O4$(),t.TgZ(4,"svg",3),t._UZ(5,"path",4)(6,"path",5),t.qZA()(),t.kcU(),t.TgZ(7,"div",6)(8,"div",7),t._uU(9,"\u0423\u0432\u0435\u0434\u0456\u0442\u044c \u043a\u043e\u0434 \u043f\u0456\u0434\u0442\u0432\u0435\u0440\u0434\u0436\u0435\u043d\u043d\u044f"),t.qZA(),t.TgZ(10,"div",8),t._uU(11),t.qZA(),t.TgZ(12,"div",9),t._UZ(13,"justkids-input",10),t.qZA(),t.YNc(14,On,2,1,"div",11),t.ALo(15,"async"),t.YNc(16,Pn,2,0,"div",12),t.ALo(17,"async"),t.YNc(18,vn,6,6,"ng-template",null,13,t.W1O),t.YNc(20,yn,2,3,"justkids-button",14),t.qZA()()),2&n){const u=t.MAs(19);t.Q6J("show",t.lcZ(1,8,i.loading$)),t.xp6(11),t.hij(" \u0423\u0432\u0435\u0434\u0456\u0442\u044c \u043a\u043e\u0434, \u044f\u043a\u0438\u0439 \u043c\u0438 \u043d\u0430\u0434\u0456\u0441\u043b\u0430\u043b\u0438 \u043d\u0430 \u043d\u043e\u043c\u0435\u0440 ",i.phone,", \u043f\u043e\u0432\u0456\u0434\u043e\u043c\u043b\u0435\u043d\u043d\u044f\u043c (SMS) "),t.xp6(2),t.Q6J("control",i.form.get("code"))("controlName","code"),t.xp6(1),t.Q6J("ngIf",t.lcZ(15,10,i.requestErrors$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(17,12,i.timer$)<1)("ngIfElse",u),t.xp6(4),t.Q6J("ngIf",i.form.valid)}},directives:[dn.R,F,a.O5,_],pipes:[a.Ov],styles:[".confirm-wrapper[_ngcontent-%COMP%]{position:relative;color:#242424;font-family:Montserrat,sans-serif}.confirm-container[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;text-align:center;width:100%}.confirm-title[_ngcontent-%COMP%]{font-size:20px;font-weight:700}.confirm-text[_ngcontent-%COMP%]{font-size:13px;font-weight:500;line-height:18px;margin-top:10px;margin-bottom:25px}.confirm-controls[_ngcontent-%COMP%]{width:100%;max-width:450px;margin:0 auto}.close[_ngcontent-%COMP%]{position:absolute;right:-20px;top:-20px;width:22px;height:22px;cursor:pointer}.close[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:100%;height:100%}.resend[_ngcontent-%COMP%]{color:#2364e3;font-size:12px;text-decoration-line:underline;font-weight:600;margin-top:10px;cursor:pointer}.timer[_ngcontent-%COMP%]{margin-top:10px;color:#797979;font-size:12px;font-weight:500}.error[_ngcontent-%COMP%]{color:#d11;font-size:12px;font-weight:500;margin-top:7px}justkids-button[_ngcontent-%COMP%]{display:block;width:100%;margin:20px auto 0;text-align:left}@media (min-width: 768px){justkids-button[_ngcontent-%COMP%]{margin-top:40px}.confirm-title[_ngcontent-%COMP%]{font-size:30px}.confirm-text[_ngcontent-%COMP%]{font-size:18px;margin-bottom:40px;line-height:28px;margin-top:30px}.close[_ngcontent-%COMP%]{right:-62px;top:-36px;width:32px;height:32px}.resend[_ngcontent-%COMP%]{margin-top:15px;font-size:14px}.timer[_ngcontent-%COMP%]{font-size:14px;margin-top:15px}.error[_ngcontent-%COMP%]{font-size:16px}}"],changeDetection:0}),e})();function tt(){try{return window}catch{return null}}let M=(()=>{class e{constructor(n,i,u,s,p,g){this.fb=n,this.location=i,this.dialog=u,this.container=s,this.store=p,this.amplitudeEvents=g,this.form=this.fb.group({phone:this.fb.control("",[r.kI.required])}),this.isMobile=tt()?.innerWidth<768,this.brandType=c.uj,this.brand$=this.store.select(c.qr),this.amplitudeEvents.call("quiz_phone_form"),this.setDefaultCode()}setDefaultCode(){const i=this.location.path().replace(/(.*?)\?/,"").split("&").reverse().find(u=>"phone"===u.split("=")[0])?.split("=")?.[1];i&&this.form.get("phone")?.setValue(decodeURIComponent(i)),this.selectedCountryISO=function Tn(e){if(tt()){const o=document.cookie.split("; ");for(let n=0;n<o.length;n++){const i=o[n].split("=");if(i[0]===e)return i[1]}}}("country_iso")||"ua"}confirmPhoneNumberWithOtp(){const n=this.form.get("phone").value?.e164Number;this.amplitudeEvents.call("quiz_phone_filled"),this.dialog.open(kn,{maxWidth:this.isMobile?"300px":"570px",width:"100%",data:{phone:n},panelClass:"quiz-sms-confirm-modal",backdropClass:"cdk-overlay-dark-backdrop"}).afterClosed().pipe((0,z.q)(1)).subscribe(i=>{i&&(this.store.dispatch((0,c.P0)({data:{phone:n}})),this.container.next())})}confirmPhoneNumberWithoutOtp(){const n=this.form.get("phone").value?.e164Number;this.amplitudeEvents.call("quiz_phone_filled"),this.store.dispatch((0,c.P0)({data:{phone:n}})),this.container.next()}}return e.\u0275fac=function(n){return new(n||e)(t.LFG(r.qu),t.LFG(a.Ye),t.LFG(J.uw),t.LFG(m),t.LFG(f.yh),t.LFG(d.PO))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac}),e})();var h=l(86003),nt=l(32925);function Qn(e,o){1&e&&(t.TgZ(0,"div",3),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"v1.error.required")," "))}function An(e,o){1&e&&(t.TgZ(0,"div",3),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"v1.error.phone")," "))}const et=function(e,o){return[e,o]};let it=(()=>{class e{constructor(){this.theme="default",this.placeholder="",this.separateDialCode=!0,this.selectedCountryISO=h.HT.Ukraine,this.SearchCountryField=h.wX,this.CountryISO=h.HT;const n=[];for(const i in h.HT)h.HT[i]!=h.HT.Belarus&&h.HT[i]!=h.HT.Russia&&n.push(h.HT[i]);this.onlyCountries=n}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-phone-input"]],inputs:{theme:"theme",placeholder:"placeholder",control:"control",separateDialCode:"separateDialCode",selectedCountryISO:"selectedCountryISO"},decls:6,vars:25,consts:[[1,"text-indicator"],[3,"cssClass","preferredCountries","enableAutoCountrySelect","enablePlaceholder","customPlaceholder","searchCountryFlag","searchCountryField","selectFirstCountry","selectedCountryISO","maxLength","phoneValidation","separateDialCode","onlyCountries","formControl"],["class","error",4,"ngIf"],[1,"error"]],template:function(n,i){1&n&&(t.TgZ(0,"div",0),t._uU(1,"\u0412\u0430\u0448 \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0443"),t.qZA(),t.TgZ(2,"div"),t._UZ(3,"ngx-intl-tel-input",1),t.YNc(4,Qn,3,3,"div",2),t.YNc(5,An,3,3,"div",2),t.qZA()),2&n&&(t.xp6(2),t.Gre("wrapper ",i.theme,""),t.xp6(1),t.Q6J("cssClass","input")("preferredCountries",t.WLB(19,et,i.CountryISO.Ukraine,i.CountryISO.Poland))("enableAutoCountrySelect",!1)("enablePlaceholder",!0)("customPlaceholder",i.placeholder)("searchCountryFlag",!0)("searchCountryField",t.WLB(22,et,i.SearchCountryField.Iso2,i.SearchCountryField.Name))("selectFirstCountry",!1)("selectedCountryISO",i.selectedCountryISO)("maxLength",15)("phoneValidation",!0)("separateDialCode",i.separateDialCode)("onlyCountries",i.onlyCountries)("formControl",i.control),t.xp6(1),t.Q6J("ngIf",null==i.control.errors?null:i.control.errors.required),t.xp6(1),t.Q6J("ngIf",null==i.control.errors?null:i.control.errors.validatePhoneNumber))},directives:[h.FV,r.JJ,r.oH,h.mh,a.O5],pipes:[nt.X$],styles:['[_nghost-%COMP%]{display:inline-block;width:100%}[_nghost-%COMP%] .wrapper[_ngcontent-%COMP%]{position:relative;display:inline-block;width:100%}[_nghost-%COMP%] .wrapper[_ngcontent-%COMP%] .error[_ngcontent-%COMP%]{display:none;color:#d11;text-align:left;margin-top:.7142857143rem;font-size:1.1428571429rem;font-weight:500;font-family:Montserrat,sans-serif}[_nghost-%COMP%] .wrapper[_ngcontent-%COMP%] .ng-dirty.ng-touched.ng-invalid[_ngcontent-%COMP%] ~ .error[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%] .input{padding:1.2142857143rem 2.0714285714rem 1.2142857143rem 9.2857142857rem!important;width:100%;background:#ffffff;border-radius:5px;border:1px solid #A3A3A3;font-family:Montserrat,sans-serif;font-style:normal;font-weight:400;font-size:1.5rem;line-height:normal;color:#242424;outline:none;--placeholder-color: #c7c9cb;--placeholder-font: "Montserrat", sans-serif;
1--placeholder-font-weight: 400;--placeholder-font-size: px(21);--placeholder-line-height: normal}[_nghost-%COMP%] .input:hover, [_nghost-%COMP%] .input:focus{border:.0714285714rem solid #242424}[_nghost-%COMP%] .ng-dirty.ng-touched.ng-invalid .input{border-color:#d11!important;background:#FFEBE9}[_nghost-%COMP%] input::placeholder{font-family:var(--placeholder-font);font-weight:var(--placeholder-font-weight);font-size:var(--placeholder-size);line-height:var(--placeholder-line-height);color:var(--placeholder-color)}[_nghost-%COMP%] input::-webkit-input-placeholder{font-family:var(--placeholder-font);font-weight:var(--placeholder-font-weight);font-size:var(--placeholder-size);line-height:var(--placeholder-line-height);color:var(--placeholder-color)}[_nghost-%COMP%] input:-ms-input-placeholder{font-family:var(--placeholder-font);font-weight:var(--placeholder-font-weight);font-size:var(--placeholder-size);line-height:var(--placeholder-line-height);color:var(--placeholder-color)}[_nghost-%COMP%] input:-moz-placeholder{font-family:var(--placeholder-font);font-weight:var(--placeholder-font-weight);font-size:var(--placeholder-size);line-height:var(--placeholder-line-height);color:var(--placeholder-color)}[_nghost-%COMP%] input::-moz-placeholder{font-family:var(--placeholder-font);font-weight:var(--placeholder-font-weight);font-size:var(--placeholder-size);line-height:var(--placeholder-line-height);color:var(--placeholder-color)}[_nghost-%COMP%] .search-container{display:none}[_nghost-%COMP%] .iti{width:100%}[_nghost-%COMP%] .iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag{border-radius:16px 0 0 16px}[_nghost-%COMP%] .iti__selected-flag{padding-left:29px;width:8.9285714286rem!important}[_nghost-%COMP%] .country-dropdown{width:368px!important}[_nghost-%COMP%] .country-dropdown .iti__country-list{overflow-x:hidden}[_nghost-%COMP%] .selected-dial-code{font-size:1.5rem;line-height:normal}.text-indicator[_ngcontent-%COMP%]{font-size:12px;color:#242424;font-weight:500;font-family:Montserrat,sans-serif;margin-bottom:.5rem}@media (max-width: 39.2857142857rem){[_nghost-%COMP%] .wrapper.default[_ngcontent-%COMP%] .input{padding:1.0714285714rem 1.2142857143rem 1.0714285714rem 7.5rem!important;font-size:1.1428571429rem;line-height:1.4285714286rem}[_nghost-%COMP%] .wrapper.default[_ngcontent-%COMP%] .iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag{border-radius:10px 0 0 10px}[_nghost-%COMP%] .wrapper[_ngcontent-%COMP%] .iti__selected-flag{padding-left:15px;width:7.1428571429rem!important}[_nghost-%COMP%] .wrapper[_ngcontent-%COMP%] .selected-dial-code{font-size:1.1428571429rem;line-height:1.4285714286rem}[_nghost-%COMP%] .wrapper[_ngcontent-%COMP%] .error[_ngcontent-%COMP%]{font-size:.7857142857rem}}@media (min-width: 768px){.text-indicator[_ngcontent-%COMP%]{font-size:16px}}']}),e})();function Fn(e,o){1&e&&(t.ynx(0),t._uU(1,"983 \u0432\u0456\u0434\u0433\u0443\u043a\u0430"),t.BQk())}function Sn(e,o){1&e&&(t.ynx(0),t._uU(1,"10 000+ \u0443\u0447\u043d\u0456\u0432"),t.BQk())}let En=(()=>{class e{constructor(n,i){this.container=n,this.cardPhoneService=i,this.subtitle="\u0429\u043e\u0431 \u0434\u0456\u0437\u043d\u0430\u0442\u0438\u0441\u044c \u0440\u0456\u0432\u0435\u043d\u044c \u0437\u043d\u0430\u043d\u044c, \u0432\u0432\u0435\u0434\u0456\u0442\u044c \u0432\u0430\u0448 \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0443"}confirmPhoneNumber(){this.cardPhoneService.confirmPhoneNumberWithOtp()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(m),t.Y36(M))},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-quiz-card-phone-booking"]],features:[t._Bn([{provide:M,useClass:M}])],decls:36,vars:12,consts:[[1,"quiz-container"],[1,"quiz-form"],[1,"quiz-question"],[1,"quiz-hint"],[1,"quiz-phone-field"],[3,"control","selectedCountryISO"],[1,"quiz-data-confidence"],[1,"lock-icon"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","viewBox","0 0 16 16","fill","none"],["clip-path","url(#clip0_195_1913)"],["d","M12.6667 7.33301H3.33333C2.59695 7.33301 2 7.92996 2 8.66634V13.333C2 14.0694 2.59695 14.6663 3.33333 14.6663H12.6667C13.403 14.6663 14 14.0694 14 13.333V8.66634C14 7.92996 13.403 7.33301 12.6667 7.33301Z","fill","#797979","stroke","#797979","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M4.66675 7.33302V4.66634C4.66675 2.82539 6.15914 1.33301 8.00008 1.33301C9.84102 1.33301 11.3334 2.82539 11.3334 4.66634V7.33302","stroke","#797979","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M9.60015 11.2001C9.60015 12.0838 8.8838 12.8001 8.00015 12.8001C7.11649 12.8001 6.40015 12.0838 6.40015 11.2001C6.40015 10.3164 7.11649 9.6001 8.00015 9.6001C8.8838 9.6001 9.60015 10.3164 9.60015 11.2001Z","fill","white"],["id","clip0_195_1913"],["width","16","height","16","fill","white"],[1,"quiz-footer"],["text","\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438",3,"disabled","clicked"],[1,"quiz-footer-rating"],[1,"review-title"],[1,"rating"],["xmlns","http://www.w3.org/2000/svg","width","89","height","16","viewBox","0 0 89 16","fill","none"],["d","M8.02447 1.46352C8.17415 1.00287 8.82585 1.00287 8.97553 1.46353L10.1839 5.18237C10.2508 5.38838 10.4428 5.52786 10.6594 5.52786H14.5696C15.054 5.52786 15.2554 6.14767 14.8635 6.43237L11.7001 8.73075C11.5248 8.85807 11.4515 9.08375 11.5184 9.28976L12.7268 13.0086C12.8764 13.4693 12.3492 13.8523 11.9573 13.5676L8.79389 11.2693C8.61865 11.
11419 8.38135 11.1419 8.20611 11.2693L5.04267 13.5676C4.65081 13.8523 4.12357 13.4693 4.27325 13.0086L5.48157 9.28976C5.54851 9.08375 5.47518 8.85807 5.29994 8.73075L2.1365 6.43237C1.74464 6.14767 1.94603 5.52786 2.43039 5.52786H6.34062C6.55723 5.52786 6.74921 5.38838 6.81614 5.18237L8.02447 1.46352Z","fill","#FFC008"],["d","M26.0245 1.46352C26.1741 1.00287 26.8259 1.00287 26.9755 1.46353L28.1839 5.18237C28.2508 5.38838 28.4428 5.52786 28.6594 5.52786H32.5696C33.054 5.52786 33.2554 6.14767 32.8635 6.43237L29.7001 8.73075C29.5248 8.85807 29.4515 9.08375 29.5184 9.28976L30.7268 13.0086C30.8764 13.4693 30.3492 13.8523 29.9573 13.5676L26.7939 11.2693C26.6186 11.1419 26.3814 11.1419 26.2061 11.2693L23.0427 13.5676C22.6508 13.8523 22.1236 13.4693 22.2732 13.0086L23.4816 9.28976C23.5485 9.08375 23.4752 8.85807 23.2999 8.73075L20.1365 6.43237C19.7446 6.14767 19.946 5.52786 20.4304 5.52786H24.3406C24.5572 5.52786 24.7492 5.38838 24.8161 5.18237L26.0245 1.46352Z","fill","#FFC008"],["d","M44.0245 1.46352C44.1741 1.00287 44.8259 1.00287 44.9755 1.46353L46.1839 5.18237C46.2508 5.38838 46.4428 5.52786 46.6594 5.52786H50.5696C51.054 5.52786 51.2554 6.14767 50.8635 6.43237L47.7001 8.73075C47.5248 8.85807 47.4515 9.08375 47.5184 9.28976L48.7268 13.0086C48.8764 13.4693 48.3492 13.8523 47.9573 13.5676L44.7939 11.2693C44.6186 11.1419 44.3814 11.1419 44.2061 11.2693L41.0427 13.5676C40.6508 13.8523 40.1236 13.4693 40.2732 13.0086L41.4816 9.28976C41.5485 9.08375 41.4752 8.85807 41.2999 8.73075L38.1365 6.43237C37.7446 6.14767 37.946 5.52786 38.4304 5.52786H42.3406C42.5572 5.52786 42.7492 5.38838 42.8161 5.18237L44.0245 1.46352Z","fill","#FFC008"],["d","M62.0245 1.46352C62.1741 1.00287 62.8259 1.00287 62.9755 1.46353L64.1839 5.18237C64.2508 5.38838 64.4428 5.52786 64.6594 5.52786H68.5696C69.054 5.52786 69.2554 6.14767 68.8635 6.43237L65.7001 8.73075C65.5248 8.85807 65.4515 9.08375 65.5184 9.28976L66.7268 13.0086C66.8764 13.4693 66.3492 13.8523 65.9573 13.5676L62.7939 11.2693C62.6186 11.1419 62.3814 11.1419 62.2061 11.2693L59.0427 13.5676C58.6508 13.8523 58.1236 13.4693 58.2732 13.0086L59.4816 9.28976C59.5485 9.08375 59.4752 8.85807 59.2999 8.73075L56.1365 6.43237C55.7446 6.14767 55.946 5.52786 56.4304 5.52786H60.3406C60.5572 5.52786 60.7492 5.38838 60.8161 5.18237L62.0245 1.46352Z","fill","#FFC008"],["d","M80.0245 1.46352C80.1741 1.00287 80.8259 1.00287 80.9755 1.46353L82.1839 5.18237C82.2508 5.38838 82.4428 5.52786 82.6594 5.52786H86.5696C87.054 5.52786 87.2554 6.14767 86.8635 6.43237L83.7001 8.73075C83.5248 8.85807 83.4515 9.08375 83.5184 9.28976L84.7268 13.0086C84.8764 13.4693 84.3492 13.8523 83.9573 13.5676L80.7939 11.2693C80.6186 11.1419 80.3814 11.1419 80.2061 11.2693L77.0427 13.5676C76.6508 13.8523 76.1236 13.4693 76.2732 13.0086L77.4816 9.28976C77.5485 9.08375 77.4752 8.85807 77.2999 8.73075L74.1365 6.43237C73.7446 6.14767 73.946 5.52786 74.4304 5.52786H78.3406C78.5572 5.52786 78.7492 5.38838 78.8161 5.18237L80.0245 1.46352Z","fill","#FFC008"],[1,"review-count",3,"ngSwitch"],[4,"ngSwitchCase"]],template:function(n,i){if(1&n&&(t.TgZ(0,"div",0)(1,"form",1)(2,"div",2),t._uU(3,"\u0412\u0430\u0448\u0456 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0438 \u0432\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u0456!"),t.qZA(),t.TgZ(4,"div",3),t._uU(5),t.qZA(),t.TgZ(6,"div",4),t._UZ(7,"justkids-phone-input",5),t.qZA(),t.TgZ(8,"div",6)(9,"span",7),t.O4$(),t.TgZ(10,"svg",8)(11,"g",9),t._UZ(12,"path",10)(13,"path",11)(14,"path",12),t.qZA(),t.TgZ(15,"defs")(16,"clipPath",13),t._UZ(17,"rect",14),t.qZA()()()(),t._uU(18," \u041c\u0438 \u043f\u043e\u0432\u0430\u0436\u0430\u0454\u043c\u043e \u0432\u0430\u0448\u0443 \u043a\u043e\u043d\u0444\u0456\u0434\u0435\u043d\u0446\u0456\u0439\u043d\u0456\u0441\u0442\u044c \u0442\u0430 \u0437\u043e\u0431\u043e\u0432\u02bc\u044f\u0437\u0443\u0454\u043c\u043e\u0441\u044f \u0437\u0430\u0445\u0438\u0449\u0430\u0442\u0438 \u0432\u0430\u0448\u0456 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u0456 \u0434\u0430\u043d\u0456 "),t.qZA(),t.kcU(),t.TgZ(19,"div",15)(20,"justkids-button",16),t.NdJ("clicked",function(){return i.confirmPhoneNumber()}),t.qZA()(),t.TgZ(21,"div",17)(22,"span",18),t._uU(23),t.ALo(24,"async"),t.qZA(),t.TgZ(25,"div",19),t.O4$(),t.TgZ(26,"svg",20),t._UZ(27,"path",21)(28,"path",22)(29,"path",23)(30,"path",24)(31,"path",25),t.qZA()(),t.kcU(),t.TgZ(32,"span",26),t.ALo(33,"async"),t.YNc(34,Fn,2,0,"ng-container",27),t.YNc(35,Sn,2,0,"ng-container",27),t.qZA()()()()),2&n){let u;t.xp6(5),t.hij(" ",i.subtitle," "),t.xp6(2),t.Q6J("control",i.cardPhoneService.form.get("phone"))("selectedCountryISO",i.cardPhoneService.selectedCountryISO),t.xp6(13),t.Q6J("disabled",i.cardPhoneService.form.invali
1d),t.xp6(3),t.hij("\u0420\u0435\u0439\u0442\u0438\u043d\u0433 ",t.lcZ(24,8,i.cardPhoneService.brand$).name,""),t.xp6(9),t.Q6J("ngSwitch",null==(u=t.lcZ(33,10,i.cardPhoneService.brand$))?null:u.key),t.xp6(2),t.Q6J("ngSwitchCase",i.cardPhoneService.brandType.JUSTSCHOOLL),t.xp6(1),t.Q6J("ngSwitchCase",i.cardPhoneService.brandType.JUSTSMART)}},directives:[r._Y,r.JL,it,_,a.RF,a.n9],pipes:[a.Ov],styles:[".quiz-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.quiz-form[_ngcontent-%COMP%]{color:#242424;font-family:Montserrat,sans-serif;max-width:570px;width:100%}.quiz-question[_ngcontent-%COMP%]{font-size:20px;font-weight:700;text-align:center;margin-bottom:10px}.quiz-hint[_ngcontent-%COMP%]{font-size:13px;color:#242424;text-align:center;font-weight:500;margin:0 auto 30px;line-height:18px}.quiz-data-confidence[_ngcontent-%COMP%]{color:#797979;font-size:12px;font-weight:500;margin-top:10px;margin-bottom:30px;position:relative;padding-left:30px}.quiz-data-confidence[_ngcontent-%COMP%] .lock-icon[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.quiz-footer-rating[_ngcontent-%COMP%]{margin-top:30px;display:flex;flex-direction:column;align-items:center}.quiz-footer-rating[_ngcontent-%COMP%] .review-title[_ngcontent-%COMP%]{font-size:13px;margin-bottom:10px;font-weight:500}.quiz-footer-rating[_ngcontent-%COMP%] .rating[_ngcontent-%COMP%]{margin-bottom:5px}.quiz-footer-rating[_ngcontent-%COMP%] .review-count[_ngcontent-%COMP%]{font-size:12px;font-style:italic;font-weight:500}@media (min-width: 768px){.quiz-question[_ngcontent-%COMP%]{font-size:30px}.quiz-hint[_ngcontent-%COMP%]{font-size:18px;margin:0 auto 40px;line-height:28px}.quiz-data-confidence[_ngcontent-%COMP%]{font-size:14px;margin-top:15px}.quiz-footer-rating[_ngcontent-%COMP%]{margin-top:60px}.quiz-footer-rating[_ngcontent-%COMP%] .review-count[_ngcontent-%COMP%]{font-size:14px}.quiz-footer-rating[_ngcontent-%COMP%] .review-title[_ngcontent-%COMP%]{font-size:18px}}"],changeDetection:0}),e})();function jn(e,o){1&e&&(t.ynx(0),t._uU(1,"983 \u0432\u0456\u0434\u0433\u0443\u043a\u0430"),t.BQk())}function Ln(e,o){1&e&&(t.ynx(0),t._uU(1,"10 000+ \u0443\u0447\u043d\u0456\u0432"),t.BQk())}let Dn=(()=>{class e{constructor(n,i){this.container=n,this.cardPhoneService=i,this.subtitle="\u041d\u043e\u043c\u0435\u0440 \u043d\u0435\u043e\u0431\u0445\u0456\u0434\u043d\u0438\u0439 \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0430\u0431\u0438 \u0437\u0430\u0431\u0440\u043e\u043d\u044e\u0432\u0430\u0442\u0438 \u0443\u0440\u043e\u043a \u0441\u0430\u043c\u0435 \u0437\u0430 \u0432\u0430\u043c\u0438"}confirmPhoneNumber(){this.cardPhoneService.confirmPhoneNumberWithoutOtp()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(m),t.Y36(M))},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-quiz-card-without-otp"]],features:[t._Bn([{provide:M,useClass:M}])],decls:36,vars:12,consts:[[1,"quiz-container"],[1,"quiz-form"],[1,"quiz-question"],[1,"quiz-hint"],[1,"quiz-phone-field"],[3,"control","selectedCountryISO"],[1,"quiz-data-confidence"],[1,"lock-icon"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","viewBox","0 0 16 16","fill","none"],["clip-path","url(#clip0_195_1913)"],["d","M12.6667 7.33301H3.33333C2.59695 7.33301 2 7.92996 2 8.66634V13.333C2 14.0694 2.59695 14.6663 3.33333 14.6663H12.6667C13.403 14.6663 14 14.0694 14 13.333V8.66634C14 7.92996 13.403 7.33301 12.6667 7.33301Z","fill","#797979","stroke","#797979","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M4.66675 7.33302V4.66634C4.66675 2.82539 6.15914 1.33301 8.00008 1.33301C9.84102 1.33301 11.3334 2.82539 11.3334 4.66634V7.33302","stroke","#797979","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M9.60015 11.2001C9.60015 12.0838 8.8838 12.8001 8.00015 12.8001C7.11649 12.8001 6.40015 12.0838 6.40015 11.2001C6.40015 10.3164 7.11649 9.6001 8.00015 9.6001C8.8838 9.6001 9.60015 10.3164 9.60015 11.2001Z","fill","white"],["id","clip0_195_1913"],["width","16","height","16","fill","white"],[1,"quiz-footer"],["text","\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438",3,"disabled","clicked"],[1,"quiz-footer-rating"],[1,"review-title"],[1,"rating"],["xmlns","http://www.w3.org/2000/svg","width","89","height","16","viewBox","0 0 89 16","fill","none"],["d","M8.02447 1.46352C8.17415 1.00287 8.82585 1.00287 8.97553 1.46353L10.1839 5.18237C10.2508 5.38838 10.4428 5.52786 10.6594 5.52786H14.5696C15.054 5.52786 15.2554 6.14767 14.8635 6.43237L11.7001 8.73075C11.5248 8.85807 11.4515 9.08375 11.5184 9.28976L12.7268 13.0086C12.8764 13.4693 12.3492 13.8523 11.9573 13.5676L8.79389 11.2693C8.61865 11.
11419 8.38135 11.1419 8.20611 11.2693L5.04267 13.5676C4.65081 13.8523 4.12357 13.4693 4.27325 13.0086L5.48157 9.28976C5.54851 9.08375 5.47518 8.85807 5.29994 8.73075L2.1365 6.43237C1.74464 6.14767 1.94603 5.52786 2.43039 5.52786H6.34062C6.55723 5.52786 6.74921 5.38838 6.81614 5.18237L8.02447 1.46352Z","fill","#FFC008"],["d","M26.0245 1.46352C26.1741 1.00287 26.8259 1.00287 26.9755 1.46353L28.1839 5.18237C28.2508 5.38838 28.4428 5.52786 28.6594 5.52786H32.5696C33.054 5.52786 33.2554 6.14767 32.8635 6.43237L29.7001 8.73075C29.5248 8.85807 29.4515 9.08375 29.5184 9.28976L30.7268 13.0086C30.8764 13.4693 30.3492 13.8523 29.9573 13.5676L26.7939 11.2693C26.6186 11.1419 26.3814 11.1419 26.2061 11.2693L23.0427 13.5676C22.6508 13.8523 22.1236 13.4693 22.2732 13.0086L23.4816 9.28976C23.5485 9.08375 23.4752 8.85807 23.2999 8.73075L20.1365 6.43237C19.7446 6.14767 19.946 5.52786 20.4304 5.52786H24.3406C24.5572 5.52786 24.7492 5.38838 24.8161 5.18237L26.0245 1.46352Z","fill","#FFC008"],["d","M44.0245 1.46352C44.1741 1.00287 44.8259 1.00287 44.9755 1.46353L46.1839 5.18237C46.2508 5.38838 46.4428 5.52786 46.6594 5.52786H50.5696C51.054 5.52786 51.2554 6.14767 50.8635 6.43237L47.7001 8.73075C47.5248 8.85807 47.4515 9.08375 47.5184 9.28976L48.7268 13.0086C48.8764 13.4693 48.3492 13.8523 47.9573 13.5676L44.7939 11.2693C44.6186 11.1419 44.3814 11.1419 44.2061 11.2693L41.0427 13.5676C40.6508 13.8523 40.1236 13.4693 40.2732 13.0086L41.4816 9.28976C41.5485 9.08375 41.4752 8.85807 41.2999 8.73075L38.1365 6.43237C37.7446 6.14767 37.946 5.52786 38.4304 5.52786H42.3406C42.5572 5.52786 42.7492 5.38838 42.8161 5.18237L44.0245 1.46352Z","fill","#FFC008"],["d","M62.0245 1.46352C62.1741 1.00287 62.8259 1.00287 62.9755 1.46353L64.1839 5.18237C64.2508 5.38838 64.4428 5.52786 64.6594 5.52786H68.5696C69.054 5.52786 69.2554 6.14767 68.8635 6.43237L65.7001 8.73075C65.5248 8.85807 65.4515 9.08375 65.5184 9.28976L66.7268 13.0086C66.8764 13.4693 66.3492 13.8523 65.9573 13.5676L62.7939 11.2693C62.6186 11.1419 62.3814 11.1419 62.2061 11.2693L59.0427 13.5676C58.6508 13.8523 58.1236 13.4693 58.2732 13.0086L59.4816 9.28976C59.5485 9.08375 59.4752 8.85807 59.2999 8.73075L56.1365 6.43237C55.7446 6.14767 55.946 5.52786 56.4304 5.52786H60.3406C60.5572 5.52786 60.7492 5.38838 60.8161 5.18237L62.0245 1.46352Z","fill","#FFC008"],["d","M80.0245 1.46352C80.1741 1.00287 80.8259 1.00287 80.9755 1.46353L82.1839 5.18237C82.2508 5.38838 82.4428 5.52786 82.6594 5.52786H86.5696C87.054 5.52786 87.2554 6.14767 86.8635 6.43237L83.7001 8.73075C83.5248 8.85807 83.4515 9.08375 83.5184 9.28976L84.7268 13.0086C84.8764 13.4693 84.3492 13.8523 83.9573 13.5676L80.7939 11.2693C80.6186 11.1419 80.3814 11.1419 80.2061 11.2693L77.0427 13.5676C76.6508 13.8523 76.1236 13.4693 76.2732 13.0086L77.4816 9.28976C77.5485 9.08375 77.4752 8.85807 77.2999 8.73075L74.1365 6.43237C73.7446 6.14767 73.946 5.52786 74.4304 5.52786H78.3406C78.5572 5.52786 78.7492 5.38838 78.8161 5.18237L80.0245 1.46352Z","fill","#FFC008"],[1,"review-count",3,"ngSwitch"],[4,"ngSwitchCase"]],template:function(n,i){if(1&n&&(t.TgZ(0,"div",0)(1,"form",1)(2,"div",2),t._uU(3,"\u0412\u0430\u0448\u0456 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0438 \u0432\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u0456!"),t.qZA(),t.TgZ(4,"div",3),t._uU(5),t.qZA(),t.TgZ(6,"div",4),t._UZ(7,"justkids-phone-input",5),t.qZA(),t.TgZ(8,"div",6)(9,"span",7),t.O4$(),t.TgZ(10,"svg",8)(11,"g",9),t._UZ(12,"path",10)(13,"path",11)(14,"path",12),t.qZA(),t.TgZ(15,"defs")(16,"clipPath",13),t._UZ(17,"rect",14),t.qZA()()()(),t._uU(18," \u041c\u0438 \u043f\u043e\u0432\u0430\u0436\u0430\u0454\u043c\u043e \u0432\u0430\u0448\u0443 \u043a\u043e\u043d\u0444\u0456\u0434\u0435\u043d\u0446\u0456\u0439\u043d\u0456\u0441\u0442\u044c \u0442\u0430 \u0437\u043e\u0431\u043e\u0432\u02bc\u044f\u0437\u0443\u0454\u043c\u043e\u0441\u044f \u0437\u0430\u0445\u0438\u0449\u0430\u0442\u0438 \u0432\u0430\u0448\u0456 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u0456 \u0434\u0430\u043d\u0456 "),t.qZA(),t.kcU(),t.TgZ(19,"div",15)(20,"justkids-button",16),t.NdJ("clicked",function(){return i.confirmPhoneNumber()}),t.qZA()(),t.TgZ(21,"div",17)(22,"span",18),t._uU(23),t.ALo(24,"async"),t.qZA(),t.TgZ(25,"div",19),t.O4$(),t.TgZ(26,"svg",20),t._UZ(27,"path",21)(28,"path",22)(29,"path",23)(30,"path",24)(31,"path",25),t.qZA()(),t.kcU(),t.TgZ(32,"span",26),t.ALo(33,"async"),t.YNc(34,jn,2,0,"ng-container",27),t.YNc(35,Ln,2,0,"ng-container",27),t.qZA()()()()),2&n){let u;t.xp6(5),t.hij(" ",i.subtitle," "),t.xp6(2),t.Q6J("control",i.cardPhoneService.form.get("phone"))("selectedCountryISO",i.cardPhoneService.selectedCountryISO),t.xp6(13),t.Q6J("disabled",i.cardPhoneService.form.invali
1d),t.xp6(3),t.hij("\u0420\u0435\u0439\u0442\u0438\u043d\u0433 ",t.lcZ(24,8,i.cardPhoneService.brand$).name,""),t.xp6(9),t.Q6J("ngSwitch",null==(u=t.lcZ(33,10,i.cardPhoneService.brand$))?null:u.key),t.xp6(2),t.Q6J("ngSwitchCase",i.cardPhoneService.brandType.JUSTSCHOOLL),t.xp6(1),t.Q6J("ngSwitchCase",i.cardPhoneService.brandType.JUSTSMART)}},directives:[r._Y,r.JL,it,_,a.RF,a.n9],pipes:[a.Ov],styles:[".quiz-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.quiz-form[_ngcontent-%COMP%]{color:#242424;font-family:Montserrat,sans-serif;max-width:570px;width:100%}.quiz-question[_ngcontent-%COMP%]{font-size:20px;font-weight:700;text-align:center;margin-bottom:10px}.quiz-hint[_ngcontent-%COMP%]{font-size:13px;color:#242424;text-align:center;font-weight:500;margin:0 auto 30px;line-height:18px}.quiz-data-confidence[_ngcontent-%COMP%]{color:#797979;font-size:12px;font-weight:500;margin-top:10px;margin-bottom:30px;position:relative;padding-left:30px}.quiz-data-confidence[_ngcontent-%COMP%] .lock-icon[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.quiz-footer-rating[_ngcontent-%COMP%]{margin-top:30px;display:flex;flex-direction:column;align-items:center}.quiz-footer-rating[_ngcontent-%COMP%] .review-title[_ngcontent-%COMP%]{font-size:13px;margin-bottom:10px;font-weight:500}.quiz-footer-rating[_ngcontent-%COMP%] .rating[_ngcontent-%COMP%]{margin-bottom:5px}.quiz-footer-rating[_ngcontent-%COMP%] .review-count[_ngcontent-%COMP%]{font-size:12px;font-style:italic;font-weight:500}@media (min-width: 768px){.quiz-question[_ngcontent-%COMP%]{font-size:30px}.quiz-hint[_ngcontent-%COMP%]{font-size:18px;margin:0 auto 40px;line-height:28px}.quiz-data-confidence[_ngcontent-%COMP%]{font-size:14px;margin-top:15px}.quiz-footer-rating[_ngcontent-%COMP%]{margin-top:60px}.quiz-footer-rating[_ngcontent-%COMP%] .review-count[_ngcontent-%COMP%]{font-size:14px}.quiz-footer-rating[_ngcontent-%COMP%] .review-title[_ngcontent-%COMP%]{font-size:18px}}"],changeDetection:0}),e})(),In=(()=>{class e{constructor(n,i,u,s,p){this.fb=n,this.container=i,this.store=u,this.amplitudeEvents=s,this.authService=p,this.form=this.fb.group({email:this.fb.control("",[r.kI.required,r.kI.minLength(5),r.kI.maxLength(100),r.kI.email],[(0,d.oH)(this.authService)]),name:this.fb.control("",[r.kI.required,r.kI.minLength(2),r.kI.maxLength(50),d.qg]),promotion:this.fb.control(!1,[r.kI.required,r.kI.requiredTrue])}),this.brand$=this.store.select(c.qr)}ngOnInit(){this.store.select(c.pF).pipe((0,z.q)(1)).subscribe(n=>{if(n.userData){const{name:i,email:u,promotion:s}=n.userData;i&&this.form.patchValue({name:i,email:u,promotion:s})}}),this.form.invalid&&(this.amplitudeEvents.call("quiz_lead_form_view"),this.amplitudeEvents.call("quiz_lead_form_filled",!1))}nextStep(){this.store.dispatch((0,c.P0)({data:this.form.value})),this.amplitudeEvents.call("quiz_lead_form_filled",!0),this.container.next()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.qu),t.Y36(m),t.Y36(f.yh),t.Y36(d.PO),t.Y36(I.Eo))},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-quiz-lead-form"]],decls:29,vars:8,consts:[[1,"quiz-container"],[1,"quiz-title"],[1,"quiz-form",3,"formGroup"],[1,"quiz-form-field"],["label","\u0412\u0430\u0448\u0435 \u0456\u043c\u02bc\u044f","type","text","placeholder","\u0423\u0432\u0435\u0434\u0456\u0442\u044c \u0432\u0430\u0448\u0435 \u0456\u043c\u02bc\u044f",3,"control"],["label","\u0412\u0430\u0448\u0430 \u0435\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0430 \u043f\u043e\u0448\u0442\u0430","type","email","placeholder","\u041f\u043e\u0447\u043d\u0456\u0442\u044c \u0432\u0432\u043e\u0434\u0438\u0442\u0438",3,"control"],[1,"quiz-data-confidence"],[1,"lock-icon"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","viewBox","0 0 16 16","fill","none"],["clip-path","url(#clip0_195_1913)"],["d","M12.6667 7.33301H3.33333C2.59695 7.33301 2 7.92996 2 8.66634V13.333C2 14.0694 2.59695 14.6663 3.33333 14.6663H12.6667C13.403 14.6663 14 14.0694 14 13.333V8.66634C14 7.92996 13.403 7.33301 12.6667 7.33301Z","fill","#797979","stroke","#797979","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M4.66675 7.33302V4.66634C4.66675 2.82539 6.15914 1.33301 8.00008 1.33301C9.84102 1.33301 11.3334 2.82539 11.3334 4.66634V7.33302","stroke","#797979","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M9.60015 11.2001C9.60015 12.0838 8.8838 12.8001 8.00015 12.8001C7.11649 12.8001 6.40015 12.0838 6.40015 11.2001C6.40015 10.3164 7.11649 9.6001 8.00015 9.6001C8.8838 9.6001 9.60015 10.3164 9.60015 11.2001Z","fill","white"],["id","clip0_195_1913"],["width","16","height","16","fill","white"],[1,"quiz-accept-notifications"],[1,"quiz-elem"],["hidden","","id","2","type","checkbox",1,"quiz-control",3,"formControl"],["for","2",1,"quiz-label"],[1,"quiz-checkbox"],[1,"quiz-footer"],["text","\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438",3,"disabled","clicked"]],template:function(n,i){if
1(1&n&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2,"\u0423\u0432\u0435\u0434\u0456\u0442\u044c \u0432\u0430\u0448\u0435 \u0456\u043c\u02bc\u044f \u0442\u0430 \u0435\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0443 \u043f\u043e\u0448\u0442\u0443"),t.qZA(),t.TgZ(3,"form",2)(4,"div",3),t._UZ(5,"justkids-input",4),t.qZA(),t.TgZ(6,"div",3),t._UZ(7,"justkids-input",5),t.qZA(),t.TgZ(8,"div",6)(9,"span",7),t.O4$(),t.TgZ(10,"svg",8)(11,"g",9),t._UZ(12,"path",10)(13,"path",11)(14,"path",12),t.qZA(),t.TgZ(15,"defs")(16,"clipPath",13),t._UZ(17,"rect",14),t.qZA()()()(),t._uU(18," \u041c\u0438 \u043f\u043e\u0432\u0430\u0436\u0430\u0454\u043c\u043e \u0432\u0430\u0448\u0443 \u043a\u043e\u043d\u0444\u0456\u0434\u0435\u043d\u0446\u0456\u0439\u043d\u0456\u0441\u0442\u044c \u0442\u0430 \u0437\u043e\u0431\u043e\u0432\u02bc\u044f\u0437\u0443\u0454\u043c\u043e\u0441\u044f \u0437\u0430\u0445\u0438\u0449\u0430\u0442\u0438 \u0432\u0430\u0448\u0456 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u0456 \u0434\u0430\u043d\u0456 "),t.qZA(),t.kcU(),t.TgZ(19,"div",15)(20,"div",16),t._UZ(21,"input",17),t.TgZ(22,"label",18),t._UZ(23,"span",19),t.TgZ(24,"span"),t._uU(25),t.ALo(26,"async"),t.qZA()()()(),t.TgZ(27,"div",20)(28,"justkids-button",21),t.NdJ("clicked",function(){return i.nextStep()}),t.qZA()()()()),2&n){let u;t.xp6(3),t.Q6J("formGroup",i.form),t.xp6(2),t.Q6J("control",i.form.get("name")),t.xp6(2),t.Q6J("control",i.form.get("email")),t.xp6(14),t.Q6J("formControl",i.form.get("promotion")),t.xp6(4),t.hij(" \u0425\u043e\u0447\u0443 \u043e\u0442\u0440\u0438\u043c\u0443\u0432\u0430\u0442\u0438 \u043e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f, \u0430\u043a\u0446\u0456\u0457, \u0441\u043f\u0435\u0446\u0456\u0430\u043b\u044c\u043d\u0456 \u043f\u0440\u043e\u043f\u043e\u0437\u0438\u0446\u0456\u0457 \u0442\u0430 \u043d\u043e\u0432\u0438\u043d\u0438 \u0432\u0456\u0434 ",null==(u=t.lcZ(26,6,i.brand$))?null:u.name," \u043d\u0430 \u043f\u043e\u0448\u0442\u0443 "),t.xp6(3),t.Q6J("disabled","INVALID"===i.form.status||"PENDING"===i.form.status)}},directives:[r._Y,r.JL,r.sg,F,r.Wl,r.JJ,r.oH,_],pipes:[a.Ov],styles:['.quiz-container[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;color:#242424;display:flex;flex-direction:column;align-items:center}.quiz-title[_ngcontent-%COMP%]{font-size:20px;font-weight:700;text-align:center;max-width:450px}.quiz-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;margin-top:30px;max-width:450px}.quiz-form-field[_ngcontent-%COMP%]{display:flex;flex-direction:column}.quiz-form-field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border-radius:5px;border:1px solid #A3A3A3;padding:15px 0 15px 15px;font-size:13px;font-weight:500;appearance:none}
1.quiz-form-name[_ngcontent-%COMP%]{font-size:12px;font-weight:500;margin-bottom:7px}.quiz-data-confidence[_ngcontent-%COMP%]{color:#797979;font-size:12px;font-weight:500;margin-top:10px;position:relative;padding-left:25px}.quiz-data-confidence[_ngcontent-%COMP%] .lock-icon[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.quiz-footer[_ngcontent-%COMP%]{margin-top:30px}.quiz-label[_ngcontent-%COMP%]{display:flex;color:#797979;font-size:12px;position:relative;padding-left:25px;font-weight:500}.quiz-checkbox[_ngcontent-%COMP%]{width:16px;height:16px;border:1px solid #C4C4C4;position:absolute;left:0;top:0;display:inline-block;border-radius:3px;background:#fff;transition:all .3s;margin-right:5px;flex-shrink:0;cursor:pointer}.quiz-checkbox[_ngcontent-%COMP%]:before{content:"";width:1px;height:29%;display:inline-block;opacity:0;background:#5DB036;position:absolute;left:38%;top:63%;transform:translate(-50%,-50%) rotate(-45deg);border-radius:4px}.quiz-checkbox[_ngcontent-%COMP%]:after{content:"";height:63%;display:inline-block;opacity:0;background:#5DB036;position:absolute;left:66%;top:50%;transform:translate(-50%,-50%) rotate(33deg);border-radius:4px;width:1px}.quiz-control[_ngcontent-%COMP%]:checked ~ .quiz-label[_ngcontent-%COMP%] > .quiz-checkbox[_ngcontent-%COMP%]{border-radius:3px;border:1px solid #5DB036;background:#EAFFE1}.quiz-control[_ngcontent-%COMP%]:checked ~ .quiz-label[_ngcontent-%COMP%] > .quiz-checkbox[_ngcontent-%COMP%]:before, .quiz-control[_ngcontent-%COMP%]:checked ~ .quiz-label[_ngcontent-%COMP%] > .quiz-checkbox[_ngcontent-%COMP%]:after{opacity:1}@media (min-width: 768px){.quiz-form[_ngcontent-%COMP%]{margin-top:40px;gap:15px}.quiz-title[_ngcontent-%COMP%]{font-size:30px}.quiz-label[_ngcontent-%COMP%], .quiz-data-confidence[_ngcontent-%COMP%]{font-size:14px}}@media (min-width: 1200px){.quiz-title[_ngcontent-%COMP%]{max-width:unset}}']}),e})();var U=l(19550);let Jn=(()=>{class e{constructor(n,i,u,s,p,g){this.fb=n,this.container=i,this.store=u,this.quizStep=s,this.amplitudeEvents=p,this.authService=g,this.form=this.fb.group({email:this.fb.control("",[r.kI.required,r.kI.minLength(5),r.kI.maxLength(100),r.kI.email],[(0,d.oH)(this.authService)]),surname:this.fb.control("",[r.kI.required,r.kI.minLength(2),r.kI.maxLength(50),U.jd]),name:this.fb.control("",[r.kI.required,r.kI.minLength(2),r.kI.maxLength(50),U.jd]),fatherName:this.fb.control("",[r.kI.required,r.kI.minLength(2),r.kI.maxLength(50),U.jd]),password:this.fb.control("",[r.kI.required,r.kI.minLength(8)]),promotion:this.fb.control(!1,[r.kI.required,r.kI.requiredTrue])}),this.brand$=this.store.select(c.qr),this.amplitudeEvents.call("quiz_teacher_form_view")}nextStep(){this.store.dispatch((0,c.P0)({data:this.form.value})),this.amplitudeEvents.call("quiz_teacher_form_filled",!0),this.container.next()}ngOnInit(){this.store.select(c.pF).pipe((0,z.q)(1)).subscribe(n=>{if(n.userData){const{teacherName:i,...u}=n.userData;i&&this.form.patchValue({name:i,...u})}}),this.form.invalid&&this.amplitudeEvents.call("quiz_teacher_form_filled",!1)}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.qu),t.Y36(m),t.Y36(f.yh),t.Y36(x),t.Y36(d.PO),t.Y36(I.Eo))},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-quiz-justclass-form"]],decls:48,vars:14,consts:[[1,"quiz-container"],[1,"quiz-title"],[1,"quiz-form",3,"formGroup"],[1,"quiz-form-field"],["label","\u0412\u0430\u0448\u0435 \u0456\u043c\u02bc\u044f","type","text","placeholder","\u0406\u043c\u02bc\u044f",3,"control"],["label","\u0412\u0430\u0448\u0435 \u043f\u0440\u0456\u0437\u0432\u0438\u0449\u0435","type","text","placeholder","\u041f\u0440\u0456\u0437\u0432\u0438\u0449\u0435",3,"control"],["label","\u0412\u0430\u0448\u0435 \u043f\u043e-\u0431\u0430\u0442\u044c\u043a\u043e\u0432\u0456","type","text","placeholder","\u041f\u043e-\u0431\u0430\u0442\u044c\u043a\u043e\u0432\u0456",3,"control"],["label","\u0412\u0430\u0448\u0430 \u0435\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0430 \u043f\u043e\u0448\u0442\u0430","type","email","placeholder","\u0415\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0430 \u043f\u043e\u0448\u0442\u0430",3,"control"],["label","\u0412\u0430\u0448 \u043f\u0430\u0440\u043e\u043b\u044c","type","email","placeholder","\u041f\u0430\u0440\u043e\u043b\u044c",3,"control"],[1,"quiz-data-confidence"],[1,"lock-icon"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","viewBox","0 0 16 16","fill","none"],["clip-path","url(#clip0_195_1913)"],["d","M12.6667 7.33301H3.33333C2.59695 7.33301 2 7.92996 2 8.66634V13.333C2 14.0694 2.59695 14.6663 3.33333 14.6663H12.6667C13.403 14.6663 14 14.0694 14 13.333V8.66634C14 7.92996 13.403 7.33301 12.6667 7.33301Z","fill","#797979","stroke","#797979","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M4.66675 7.33302V4.66634C4.66675 2.82539 6.15914 1.33301 8.00008 1.33301C9.84102 1.33301 11.3334 2.82539 11.3334 4.66634V7.33302","stroke","#797979","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M9.60015 11.2001C9.60015 12.0838 8.8838 12.8001 8.00015 12.8001C7.11649 12.8001 6.40015 12.0838 6.40015 11.2001C6.40015 10.3164 7.11649 9.6001 8.00015 9.6001C8.8838 9.6001 9.60015 10.3164 9.60015 11.2001Z","fill","white"],["id","clip0_195_1913"],["width","16","height","16","fill","white"],[1,"quiz-accept-notifications"],[1,"quiz-elem"],["hidden","","id","2","type","checkbox",1,"quiz-control",3,"formControl"],["for","2",1,"quiz-label"],[1,"quiz-checkbox"],[1,"quiz-footer"],["text","\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438",3,"disabled","clicked"],[1,"quiz-footer-rating"],[1,"review-title"],[1,"rating"],["xmlns","http://www.w3.org/2000/svg","width","89","height","16","viewBox","0 0 89 16","fill","none"],["d","M8.02447 1.46352C8.17415 1.00287 8.82585 1.00287 8.97553 1.46353L10.1839 5.18237C10.2508 5.38838 10.4428 5.52786 10.6594 5.52786H14.5696C15.054 5.52786 15.2554 6.14767 14.8635 6.43237L11.7001 8.73075C11.5248 8.85807 11.4515 9.08375 11.5184 9.28976L12.7268 13.0086C12.8764 13.4693 12.3492 13.8523 11.9573 13.5676L8.79389 11.2693C8.61865 11.
11419 8.38135 11.1419 8.20611 11.2693L5.04267 13.5676C4.65081 13.8523 4.12357 13.4693 4.27325 13.0086L5.48157 9.28976C5.54851 9.08375 5.47518 8.85807 5.29994 8.73075L2.1365 6.43237C1.74464 6.14767 1.94603 5.52786 2.43039 5.52786H6.34062C6.55723 5.52786 6.74921 5.38838 6.81614 5.18237L8.02447 1.46352Z","fill","#FFC008"],["d","M26.0245 1.46352C26.1741 1.00287 26.8259 1.00287 26.9755 1.46353L28.1839 5.18237C28.2508 5.38838 28.4428 5.52786 28.6594 5.52786H32.5696C33.054 5.52786 33.2554 6.14767 32.8635 6.43237L29.7001 8.73075C29.5248 8.85807 29.4515 9.08375 29.5184 9.28976L30.7268 13.0086C30.8764 13.4693 30.3492 13.8523 29.9573 13.5676L26.7939 11.2693C26.6186 11.1419 26.3814 11.1419 26.2061 11.2693L23.0427 13.5676C22.6508 13.8523 22.1236 13.4693 22.2732 13.0086L23.4816 9.28976C23.5485 9.08375 23.4752 8.85807 23.2999 8.73075L20.1365 6.43237C19.7446 6.14767 19.946 5.52786 20.4304 5.52786H24.3406C24.5572 5.52786 24.7492 5.38838 24.8161 5.18237L26.0245 1.46352Z","fill","#FFC008"],["d","M44.0245 1.46352C44.1741 1.00287 44.8259 1.00287 44.9755 1.46353L46.1839 5.18237C46.2508 5.38838 46.4428 5.52786 46.6594 5.52786H50.5696C51.054 5.52786 51.2554 6.14767 50.8635 6.43237L47.7001 8.73075C47.5248 8.85807 47.4515 9.08375 47.5184 9.28976L48.7268 13.0086C48.8764 13.4693 48.3492 13.8523 47.9573 13.5676L44.7939 11.2693C44.6186 11.1419 44.3814 11.1419 44.2061 11.2693L41.0427 13.5676C40.6508 13.8523 40.1236 13.4693 40.2732 13.0086L41.4816 9.28976C41.5485 9.08375 41.4752 8.85807 41.2999 8.73075L38.1365 6.43237C37.7446 6.14767 37.946 5.52786 38.4304 5.52786H42.3406C42.5572 5.52786 42.7492 5.38838 42.8161 5.18237L44.0245 1.46352Z","fill","#FFC008"],["d","M62.0245 1.46352C62.1741 1.00287 62.8259 1.00287 62.9755 1.46353L64.1839 5.18237C64.2508 5.38838 64.4428 5.52786 64.6594 5.52786H68.5696C69.054 5.52786 69.2554 6.14767 68.8635 6.43237L65.7001 8.73075C65.5248 8.85807 65.4515 9.08375 65.5184 9.28976L66.7268 13.0086C66.8764 13.4693 66.3492 13.8523 65.9573 13.5676L62.7939 11.2693C62.6186 11.1419 62.3814 11.1419 62.2061 11.2693L59.0427 13.5676C58.6508 13.8523 58.1236 13.4693 58.2732 13.0086L59.4816 9.28976C59.5485 9.08375 59.4752 8.85807 59.2999 8.73075L56.1365 6.43237C55.7446 6.14767 55.946 5.52786 56.4304 5.52786H60.3406C60.5572 5.52786 60.7492 5.38838 60.8161 5.18237L62.0245 1.46352Z","fill","#FFC008"],["d","M80.0245 1.46352C80.1741 1.00287 80.8259 1.00287 80.9755 1.46353L82.1839 5.18237C82.2508 5.38838 82.4428 5.52786 82.6594 5.52786H86.5696C87.054 5.52786 87.2554 6.14767 86.8635 6.43237L83.7001 8.73075C83.5248 8.85807 83.4515 9.08375 83.5184 9.28976L84.7268 13.0086C84.8764 13.4693 84.3492 13.8523 83.9573 13.5676L80.7939 11.2693C80.6186 11.1419 80.3814 11.1419 80.2061 11.2693L77.0427 13.5676C76.6508 13.8523 76.1236 13.4693 76.2732 13.0086L77.4816 9.28976C77.5485 9.08375 77.4752 8.85807 77.2999 8.73075L74.1365 6.43237C73.7446 6.14767 73.946 5.52786 74.4304 5.52786H78.3406C78.5572 5.52786 78.7492 5.38838 78.8161 5.18237L80.0245 1.46352Z","fill","#FFC008"],[1,"review-count"]],template:function(n,i){if(1&n&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2,"\u0421\u0442\u0432\u043e\u0440\u0456\u0442\u044c \u0441\u0432\u0456\u0439 \u043a\u0430\u0431\u0456\u043d\u0435\u0442 \u0432\u0447\u0438\u0442\u0435\u043b\u044f"),t.qZA(),t.TgZ(3,"form",2)(4,"div",3),t._UZ(5,"justkids-input",4),t.qZA(),t.TgZ(6,"div",3),t._UZ(7,"justkids-input",5),t.qZA(),t.TgZ(8,"div",3),t._UZ(9,"justkids-input",6),t.qZA(),t.TgZ(10,"div",3),t._UZ(11,"justkids-input",7),t.qZA(),t.TgZ(12,"div",3),t._UZ(13,"justkids-input",8),t.qZA(),t.TgZ(14,"div",9)(15,"span",10),t.O4$(),t.TgZ(16,"svg",11)(17,"g",12),t._UZ(18,"path",13)(19,"path",14)(20,"path",15),t.qZA(),t.TgZ(21,"defs")(22,"clipPath",16),t._UZ(23,"rect",17),t.qZA()()()(),t._uU(24," \u041c\u0438 \u043f\u043e\u0432\u0430\u0436\u0430\u0454\u043c\u043e \u0432\u0430\u0448\u0443 \u043a\u043e\u043d\u0444\u0456\u0434\u0435\u043d\u0446\u0456\u0439\u043d\u0456\u0441\u0442\u044c \u0442\u0430 \u0437\u043e\u0431\u043e\u0432\u02bc\u044f\u0437\u0443\u0454\u043c\u043e\u0441\u044f \u0437\u0430\u0445\u0438\u0449\u0430\u0442\u0438 \u0432\u0430\u0448\u0456 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u0456 \u0434\u0430\u043d\u0456 "),t.qZA(),t.kcU(),t.TgZ(25,"div",18)(26,"div",19),t._UZ(27,"input",20),t.TgZ(28,"label",21),t._UZ(29,"span",22),t.TgZ(30,"span"),t._uU(31),t.ALo(32,"async"),t.qZA()()()(),t.TgZ(33,"div",23)(34,"justkids-button",24),t.NdJ("clicked",function(){return i.nextStep()}),t.qZA()(),t.TgZ(35,"div",25)(36,"span",26),t._uU(37),t.ALo(38,"async"),t.qZA(),t.TgZ(39,"div",27),t.O4$(),t.TgZ(40,"svg",28),t._UZ(41,"path",29)(42,"path",30)(43,"path",31)(44,"path",32)(45,"path",33),t.qZA()(),t.kcU(),t.TgZ(46,"span",34),t._uU(47,"95% \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e\u0442\u044c"),t.qZA()()()()),2&n){let u;t.xp6(3),t.Q6J("formGroup",i.form),t.xp6(2),t.Q6J("control",i.form.get("name")),t.xp6(2),t.Q6J("control",i.form.get("surname")),t.xp6(2),t.Q6J("control",i.form.get("fatherName")),t.xp6(2),t.Q6J("control",i.form.get("email")),t.xp6(2),t.Q6J("control",i.form.get("password")),t.xp6(14),t.Q6J("formControl",i.form.get("promotion")),t.xp6(4),t.hij(" \u0425\u043e\u0447\u0443 \u043e\u0442\u0440\u0438\u043c\u0443\u0432\u0430\u0442\u0438 \u043e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f, \u0430\u043a\u0446\u0456\u0457, \u0441\u043f\u0435\u0446\u0456\u0430\u043b\u044c\u043d\u0456 \u043f\u0440\u043e\u043f\u043e\u0437\u0438\u0446\u0456\u0457 \u0442\u0430 \u043d\u043e\u0432\u0438\u043d\u0438 \u0432\u0456\u0434 ",null==(u=t.lcZ(32,10,i.brand$))?null:u.name," \u043d\u0430 \u043f\u043e\u0448\u0442\u0443 "),t.xp6(3),t.Q6J("disabled","INVALID"===i.form.status||"PENDING"===i.form.status),t.xp6(3),t.hij("\u0420\u0435\u0439\u0442\u0438\u043d\u0433 ",t.lcZ(38,12,i.brand$).name,"")}},directives:[r._Y,r.JL,r.sg,F,r.Wl,r.JJ,r.oH,_],pipes:[a.Ov],styles:['.quiz-container[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;color:#242424;display:flex;flex-direction:column;align-items:center}.quiz-title[_ngcontent-%COMP%]{font-size:20px;font-weight:700;text-align:center;max-width:450px}.quiz-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;margin-top:30px;max-width:450px}.quiz-form-field[_ngcontent-%COMP%]{display:flex;flex-direction:column}.quiz-form-field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border-radius:5px;border:1px solid #A3A3A3;padding:15px 0 15px 15px;font-size:13px;font-weight:500;appearance:none}
1.quiz-form-name[_ngcontent-%COMP%]{font-size:12px;font-weight:500;margin-bottom:7px}.quiz-data-confidence[_ngcontent-%COMP%]{color:#797979;font-size:12px;font-weight:500;margin-top:10px;position:relative;padding-left:25px}.quiz-data-confidence[_ngcontent-%COMP%] .lock-icon[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.quiz-footer[_ngcontent-%COMP%]{margin-top:30px}.quiz-label[_ngcontent-%COMP%]{display:flex;color:#797979;font-size:12px;position:relative;padding-left:25px;font-weight:500}.quiz-checkbox[_ngcontent-%COMP%]{width:16px;height:16px;border:1px solid #C4C4C4;position:absolute;left:0;top:0;display:inline-block;border-radius:3px;background:#fff;transition:all .3s;margin-right:5px;flex-shrink:0;cursor:pointer}.quiz-checkbox[_ngcontent-%COMP%]:before{content:"";width:1px;height:29%;display:inline-block;opacity:0;background:#5DB036;position:absolute;left:38%;top:63%;transform:translate(-50%,-50%) rotate(-45deg);border-radius:4px}.quiz-checkbox[_ngcontent-%COMP%]:after{content:"";height:63%;display:inline-block;opacity:0;background:#5DB036;position:absolute;left:66%;top:50%;transform:translate(-50%,-50%) rotate(33deg);border-radius:4px;width:1px}.quiz-footer-rating[_ngcontent-%COMP%]{margin-top:30px;display:flex;flex-direction:column;align-items:center}.quiz-footer-rating[_ngcontent-%COMP%] .review-title[_ngcontent-%COMP%]{font-size:13px;margin-bottom:10px;font-weight:500}.quiz-footer-rating[_ngcontent-%COMP%] .rating[_ngcontent-%COMP%]{margin-bottom:5px}.quiz-footer-rating[_ngcontent-%COMP%] .review-count[_ngcontent-%COMP%]{font-size:12px;font-style:italic;font-weight:500}.quiz-control[_ngcontent-%COMP%]:checked ~ .quiz-label[_ngcontent-%COMP%] > .quiz-checkbox[_ngcontent-%COMP%]{border-radius:3px;border:1px solid #5DB036;background:#EAFFE1}.quiz-control[_ngcontent-%COMP%]:checked ~ .quiz-label[_ngcontent-%COMP%] > .quiz-checkbox[_ngcontent-%COMP%]:before, .quiz-control[_ngcontent-%COMP%]:checked ~ .quiz-label[_ngcontent-%COMP%] > .quiz-checkbox[_ngcontent-%COMP%]:after{opacity:1}@media (min-width: 768px){.quiz-form[_ngcontent-%COMP%]{margin-top:40px;gap:15px}.quiz-title[_ngcontent-%COMP%]{font-size:30px}.quiz-label[_ngcontent-%COMP%], .quiz-data-confidence[_ngcontent-%COMP%]{font-size:14px}}@media (min-width: 1200px){.quiz-title[_ngcontent-%COMP%]{max-width:unset}.quiz-footer-rating[_ngcontent-%COMP%]{margin-top:60px}.quiz-footer-rating[_ngcontent-%COMP%] .review-count[_ngcontent-%COMP%]{font-size:14px}.quiz-footer-rating[_ngcontent-%COMP%] .review-title[_ngcontent-%COMP%]{font-size:18px}}']}),e})(),Un=(()=>{class e{constructor(n,i,u,s,p){this.fb=n,this.container=i,this.store=u,this.quizStep=s,this.amplitudeEvents=p,this.form=this.fb.group({name:this.fb.control("",[r.kI.required,r.kI.minLength(2),r.kI.maxLength(50),d.qg])}),this.subscription=new b.w0,this.amplitudeEvents.call("quiz_question_view",s.queryParamSlug)}ngOnInit(){this.subscription.add(this.store.select(c.pF).subscribe(n=>{const i=n?.userData?.childName;i&&this.form.patchValue({name:i})}))}nextStep(){this.store.dispatch((0,c.P0)({data:{childName:this.form.value?.name}})),this.container.next()}ngOnDestroy(){this.subscription.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.qu),t.Y36((0,t.Gpc)(()=>m)),t.Y36(f.yh),t.Y36(x),t.Y36(d.PO))},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-quiz-child-form"]],decls:19,vars:3,consts:[[1,"quiz-container"],[1,"quiz-title"],[1,"quiz-form",3,"formGroup"],[1,"quiz-form-field"],["label","\u0406\u043c\u02bc\u044f \u0434\u0438\u0442\u0438\u043d\u0438","type","text","placeholder","\u0423\u0432\u0435\u0434\u0456\u0442\u044c \u0456\u043c\u02bc\u044f",3,"control"],[1,"quiz-data-confidence"],[1,"lock-icon"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","viewBox","0 0 16 16","fill","none"],["clip-path","url(#clip0_195_1913)"],["d","M12.6667 7.33301H3.33333C2.59695 7.33301 2 7.92996 2 8.66634V13.333C2 14.0694 2.59695 14.6663 3.33333 14.6663H12.6667C13.403 14.6663 14 14.0694 14 13.333V8.66634C14 7.92996 13.403 7.33301 12.6667 7.33301Z","fill","#797979","stroke","#797979","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M4.66675 7.33302V4.66634C4.66675 2.82539 6.15914 1.33301 8.00008 1.33301C9.84102 1.33301 11.3334 2.82539 11.3334 4.66634V7.33302","stroke","#797979","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M9.60015 11.2001C9.60015 12.0838 8.8838 12.8001 8.00015 12.8001C7.11649 12.8001 6.40015 12.0838 6.40015 11.2001C6.40015 10.3164 7.11649 9.6001 8.00015 9.6001C8.8838 9.6001 9.60015 10.3164 9.60015 11.2001Z","fill","white"],["id","clip0_195_1913"],["width","16","height","16","fill","white"],[1,"quiz-footer"],["text","\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438",3,"disabled","clicked"]],template:function(n,i){1&n&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2,"\u042f\u043a \u0437\u0432\u0430\u0442\u0438 \u0432\u0430\u0448\u0443 \u0434\u0438\u0442\u0438\u043d\u0443?"),t.qZA(),t.TgZ(3,"form",2)(4,"div",3),t._UZ(5,"justkids-input",4),t.qZA(),t.TgZ(6,"div",5)(7,"span",6),t.O4$(),t.TgZ(8,"svg",7)(9,"g",8),t._UZ(10,"path",9)(11,"path",10)(12,"path",11),t.qZA(),t.TgZ(13,"defs")(14,"clipPath",12),t._UZ(15,"rect",13),t.qZA()()()(),t._uU(16," \u041c\u0438 \u043f\u043e\u0432\u0430\u0436\u0430\u0454\u043c\u043e \u0432\u0430\u0448\u0443 \u043a\u043e\u043d\u0444\u0456\u0434\u0435\u043d\u0446\u0456\u0439\u043d\u0456\u0441\u0442\u044c \u0442\u0430 \u0437\u043e\u0431\u043e\u0432\u02bc\u044f\u0437\u0443\u0454\u043c\u043e\u0441\u044f \u0437\u0430\u0445\u0438\u0449\u0430\u0442\u0438 \u0432\u0430\u0448\u0456 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u0456 \u0434\u0430\u043d\u0456 "),t.qZA(),t.kcU(),t.TgZ(17,"div",14)(18,"justkids-button",15),t.NdJ("clicked",function(){return i.nextStep()}),t.qZA()()()()),2&n&&(t.xp6(3),t.Q6J("formGroup",i.form),t.xp6(2),t.Q6J("control",i.form.get("name")),t.xp6(13),t.Q6J("disabled",i.form.invali
1d))},directives:[r._Y,r.JL,r.sg,F,_],styles:['.quiz-container[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;color:#242424;display:flex;flex-direction:column;align-items:center}.quiz-title[_ngcontent-%COMP%]{font-size:20px;font-weight:700;text-align:center;max-width:450px}.quiz-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;margin-top:30px;max-width:450px}.quiz-form-field[_ngcontent-%COMP%]{display:flex;flex-direction:column}.quiz-form-field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border-radius:5px;border:1px solid #A3A3A3;padding:15px 0 15px 15px;font-size:13px;font-weight:500;appearance:none}.quiz-form-name[_ngcontent-%COMP%]{font-size:12px;font-weight:500;margin-bottom:7px}.quiz-data-confidence[_ngcontent-%COMP%]{color:#797979;font-size:12px;font-weight:500;margin-top:10px;position:relative;padding-left:25px}.quiz-data-confidence[_ngcontent-%COMP%] .lock-icon[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.quiz-footer[_ngcontent-%COMP%]{margin-top:30px}.quiz-label[_ngcontent-%COMP%]{display:flex;color:#797979;font-size:12px;position:relative;padding-left:25px;font-weight:500}.quiz-checkbox[_ngcontent-%COMP%]{width:16px;height:16px;border:1px solid #C4C4C4;position:absolute;left:0;top:0;display:inline-block;border-radius:3px;background:#fff;transition:all .3s;margin-right:5px;flex-shrink:0;cursor:pointer}.quiz-checkbox[_ngcontent-%COMP%]:before{content:"";width:1px;height:29%;display:inline-block;opacity:0;background:#5DB036;position:absolute;left:38%;top:63%;transform:translate(-50%,-50%) rotate(-45deg);border-radius:4px}.quiz-checkbox[_ngcontent-%COMP%]:after{content:"";height:63%;display:inline-block;opacity:0;background:#5DB036;position:absolute;left:66%;top:50%;transform:translate(-50%,-50%) rotate(33deg);border-radius:4px;width:1px}.quiz-control[_ngcontent-%COMP%]:checked ~ .quiz-label[_ngcontent-%COMP%] > .quiz-checkbox[_ngcontent-%COMP%]{border-radius:3px;border:1px solid #5DB036;background:#EAFFE1}.quiz-control[_ngcontent-%COMP%]:checked ~ .quiz-label[_ngcontent-%COMP%] > .quiz-checkbox[_ngcontent-%COMP%]:before, .quiz-control[_ngcontent-%COMP%]:checked ~ .quiz-label[_ngcontent-%COMP%] > .quiz-checkbox[_ngcontent-%COMP%]:after{opacity:1}@media (min-width: 768px){.quiz-form[_ngcontent-%COMP%]{margin-top:40px;gap:15px}.quiz-title[_ngcontent-%COMP%]{font-size:30px}.quiz-label[_ngcontent-%COMP%], .quiz-data-confidence[_ngcontent-%COMP%]{font-size:14px}}@media (min-width: 1200px){.quiz-title[_ngcontent-%COMP%]{max-width:unset}}'],changeDetection:0}),e})();var Bn=l(39841);function Yn(e,o){if(1&e&&(t.TgZ(0,"mat-option"),t._UZ(1,"ngx-mat-select-search",6),t.qZA()),2&e){const n=t.oxw(2);
1t.xp6(1),t.Q6J("formControl",n.searchControl)("placeholderLabel",n.placeholderLabel)("noEntriesFoundLabel",n.noEntriesFoundLabel)}}function Nn(e,o){if(1&e&&(t.TgZ(0,"mat-option",7),t._uU(1),t.qZA()),2&e){const n=o.$implicit;t.Q6J("value",n.value),t.xp6(1),t.hij(" ",n.key," ")}}function $n(e,o){1&e&&t._UZ(0,"div",8)}const Hn=function(e){return{"error-input":e}};function Wn(e,o){if(1&e){const n=t.EpF();t.ynx(0),t.TgZ(1,"mat-select",3),t.NdJ("valueChange",function(u){return t.CHM(n),t.oxw().changed.emit(u)}),t.YNc(2,Yn,2,3,"mat-option",2),t.YNc(3,Nn,2,2,"mat-option",4),t.ALo(4,"searchInArray"),t.ALo(5,"async"),t.qZA(),t.YNc(6,$n,1,0,"div",5),t.BQk()}if(2&e){const n=t.oxw();t.xp6(1),t.Q6J("placeholder",n.placeholder)("formControl",n.control)("disabled",n.isDisabled)("ngClass",t.VKq(14,Hn,n.control.errors&&n.canShowErrors))("panelClass","quiz-select"),t.xp6(1),t.Q6J("ngIf",n.searchEnabled),t.xp6(1),t.Q6J("ngForOf",t.Dn7(4,8,t.lcZ(5,12,n.options$),n.searchControl.value,n.searchEnabled)),t.xp6(3),t.Q6J("ngIf",(null==n.control.errors?null:n.control.errors.required)&&n.canShowErrors)}}function Vn(e,o){if(1&e&&(t.TgZ(0,"mat-option",7),t._uU(1),t.qZA()),2&e){const n=o.$implicit;t.Q6J("value",n.value),t.xp6(1),t.hij(" ",n.key," ")}}function Rn(e,o){if(1&e){const n=t.EpF();t.ynx(0),t.TgZ(1,"mat-select",9),t.NdJ("valueChange",function(u){return t.CHM(n),t.oxw().changed.emit(u)}),t.YNc(2,Vn,2,2,"mat-option",4),t.ALo(3,"async"),t.qZA(),t.BQk()}if(2&e){const n=t.oxw();t.xp6(1),t.Q6J("value",n.initial)("placeholder",n.placeholder),t.xp6(1),t.Q6J("ngForOf",t.lcZ(3,3,n.options$))}}let ot=(()=>{class e{constructor(){this.placeholder="",this.canShowErrors=!1,this.searchEnabled=!1,this.isDisabled=!1,this.changed=new t.vpe,this.searchControl=new r.NI,this.options$=new O.X([])}set options(n){this.options$.next(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-select"]],inputs:{initial:"initial",placeholder:"placeholder",options:"options",label:"label",control:"control",canShowErrors:"canShowErrors",searchEnabled:"searchEnabled",placeholderL
1abel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",isDisabled:"isDisabled"},outputs:{changed:"changed"},decls:5,vars:5,consts:[[1,"control-label"],[1,"wrapper"],[4,"ngIf"],[3,"placeholder","formControl","disabled","ngClass","panelClass","valueChange"],[3,"value",4,"ngFor","ngForOf"],["class","error",4,"ngIf"],[3,"formControl","placeholderLabel","noEntriesFoundLabel"],[3,"value"],[1,"error"],[3,"value","placeholder","valueChange"]],template:function(n,i){1&n&&(t.TgZ(0,"div",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1),t.YNc(3,Wn,7,16,"ng-container",2),t.YNc(4,Rn,4,5,"ng-container",2),t.qZA()),2&n&&(t.ekj("disabled",i.isDisabled),t.xp6(1),t.hij(" ",i.label,"\n"),t.xp6(2),t.Q6J("ngIf",i.control),t.xp6(1),t.Q6J("ngIf",!i.control))},styles:["[_nghost-%COMP%] .mat-select{text-align:left}[_nghost-%COMP%] .mat-select-disabled .mat-select-trigger{cursor:default;background-color:#f4f4f4;border-color:#a3a3a3;border-radius:7px}[_nghost-%COMP%] .error-input .mat-select-trigger{border-color:#ff3a44}[_nghost-%COMP%] .mat-select-trigger{background:#ffffff;border:1px solid #A3A3A3;border-radius:7px;padding:15px;font:inherit}[_nghost-%COMP%] .mat-select-placeholder, [_nghost-%COMP%] .mat-select-value-text{color:#333;font-family:Montserrat,sans-serif;font-style:normal;font-weight:400;font-size:16px;line-height:19px}[_nghost-%COMP%] .mat-select-placeholder{color:#a3a3a3}.control-label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:#242424;font-family:Montserrat,sans-serif;margin-bottom:10px}.control-label.disabled[_ngcontent-%COMP%]{color:#a3a3a3}@media (min-width: 768px){.control-label[_ngcontent-%COMP%]{font-size:16px}[_nghost-%COMP%] .mat-select-placeholder, [_nghost-%COMP%] .mat-select-value-text{font-size:18px}}"]}),e})(),Gn=(()=>{class e{constructor(n,i,u,s){this.fb=n,this.store=i,this.container=u,this.amplitudeEvents=s,this.form=this.fb.group({region:this.fb.control("",r.kI.required),locality:this.fb.control("",r.kI.required),school:this.fb.control("",r.kI.required)}),this.subscription=new b.w0,this.regions$=this.store.select(c.JL),this.localities$=this.store.select(c.t7),this.schools$=this.store.select(c.FP),this.isLocalityDisabled$=this.store.select(c.$j),this.isSchoolDisabled$=this.store.select(c.v3),this.amplitudeEvents.call("quiz_teacher_form_place_view")}ngOnInit(){this.store.dispatch((0,c.B2)());const n=this.store.select(c.QJ),i=this.store.select(c.FI),u=this.store.select(c.iT);this.subscription.add((0,Bn.a)([n,i,u]).subscribe(([s,p,g])=>{s&&p&&g&&this.form.patchValue({locality:s,region:p,school:g})})),this.form.invalid&&this.amplitudeEvents.call("quiz_teacher_form_place_filled",!1)}regionChanged(n){this.store.dispatch((0,c.gF)({id:Number(n)}))}localityChanged(n){this.store.dispatch((0,c.Zn)({id:Number(n)}))}schoolChanged(n){this.store.dispatch((0,c.jm)({id:Number(n)}))}nextStep(){this.store.dispatch((0,c.P0)(this.form.value)),this.amplitudeEvents.call("quiz_teacher_form_place_filled",!0),this.container.next()}ngOnDestroy(){this.subscription.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(r.qu),t.Y36(f.yh),t.Y36(m),t.Y36(d.PO))},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-quiz-form-place"]],decls:17,vars:28,consts:[[1,"quiz-container"],[1,"quiz-title"],[1,"quiz-form"],[1,"quiz-form-field"],["label","\u0412\u0430\u0448\u0430 \u043e\u0431\u043b\u0430\u0441\u0442\u044c",3,"placeholder","options","control","searchEnabled","placeholderL
1abel","changed"],["label","\u0412\u0430\u0448 \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u0439 \u043f\u0443\u043d\u043a\u0442",3,"placeholder","isDisabled","options","control","searchEnabled","placeholderLabel","changed"],["label","\u0412\u0430\u0448 \u043d\u0430\u0432\u0447\u0430\u043b\u044c\u043d\u0438\u0439 \u0437\u0430\u043a\u043b\u0430\u0434",3,"placeholder","isDisabled","options","control","searchEnabled","placeholderLabel","changed"],[1,"quiz-footer"],["text","\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438",3,"disabled","clicked"]],template:function(n,i){1&n&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2,"\u041e\u0431\u0435\u0440\u0456\u0442\u044c \u0432\u0430\u0448\u0435 \u043c\u0456\u0441\u0446\u0435 \u0440\u043e\u0431\u043e\u0442\u0438"),t.qZA(),t.TgZ(3,"div",2)(4,"div",3)(5,"justkids-select",4),t.NdJ("changed",function(s){return i.regionChanged(s)}),t.ALo(6,"async"),t.qZA()(),t.TgZ(7,"div",3)(8,"justkids-select",5),t.NdJ("changed",function(s){return i.localityChanged(s)}),t.ALo(9,"async"),t.ALo(10,"async"),t.qZA()(),t.TgZ(11,"div",3)(12,"justkids-select",6),t.NdJ("changed",function(s){return i.schoolChanged(s)}),t.ALo(13,"async"),t.ALo(14,"async"),t.qZA()(),t.TgZ(15,"div",7)(16,"justkids-button",8),t.NdJ("clicked",function(){return i.nextStep()}),t.qZA()()()()),2&n&&(t.xp6(5),t.Q6J("placeholder","\u041e\u0431\u0435\u0440\u0456\u0442\u044c \u043e\u0431\u043b\u0430\u0441\u0442\u044c")("options",t.lcZ(6,18,i.regions$))("control",i.form.get("region"))("searchEnabled",!0)("placeholderL
1abel","\u041e\u0431\u0435\u0440\u0456\u0442\u044c \u043e\u0431\u043b\u0430\u0441\u0442\u044c"),t.xp6(3),t.Q6J("placeholder","\u041e\u0431\u0435\u0440\u0456\u0442\u044c \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u0439 \u043f\u0443\u043d\u043a\u0442")("isDisabled",t.lcZ(9,20,i.isLocalityDisabled$))("options",t.lcZ(10,22,i.localities$))("control",i.form.get("locality"))("searchEnabled",!0)("placeholderLabel","\u041e\u0431\u0435\u0440\u0456\u0442\u044c \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u0439 \u043f\u0443\u043d\u043a\u0442"),t.xp6(4),t.Q6J("placeholder","\u041e\u0431\u0435\u0440\u0456\u0442\u044c \u043d\u0430\u0432\u0447\u0430\u043b\u044c\u043d\u0438\u0439 \u0437\u0430\u043a\u043b\u0430\u0434")("isDisabled",t.lcZ(13,24,i.isSchoolDisabled$))("options",t.lcZ(14,26,i.schools$))("control",i.form.get("school"))("searchEnabled",!0)("placeholderLabel","\u041e\u0431\u0435\u0440\u0456\u0442\u044c \u043d\u0430\u0432\u0447\u0430\u043b\u044c\u043d\u0438\u0439 \u0437\u0430\u043a\u043b\u0430\u0434"),t.xp6(4),t.Q6J("disabled",i.form.invalid))},directives:[ot,_],pipes:[a.Ov],styles:[".quiz-container[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;color:#242424;display:flex;flex-direction:column;align-items:center}.quiz-title[_ngcontent-%COMP%]{font-size:20px;font-weight:700;text-align:center;max-width:450px}.quiz-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:15px;margin-top:30px;max-width:450px;width:100%}.quiz-form-field[_ngcontent-%COMP%]{display:flex;flex-direction:column}.quiz-footer[_ngcontent-%COMP%]{width:100%;margin-top:15px}@media (min-width: 768px){.quiz-form[_ngcontent-%COMP%]{margin-top:40px}.quiz-title[_ngcontent-%COMP%]{font-size:30px}}@media (min-width: 1200px){.quiz-title[_ngcontent-%COMP%]{max-width:unset}}"],changeDetection:0}),e})();var Xn=l(13099),Kn=l(11365);const te={title:"95% \u0432\u0447\u0438\u0442\u0435\u043b\u0456\u0432",subtitle:"\u044f\u043a\u0456 \u0454 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430\u043c\u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0438 JustClass, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e\u0442\u044c \u0457\u0457",statusText:[{title:"\u0421\u0442\u0432\u043e\u0440\u044e\u0454\u043c\u043e \u0432\u0430\u0448 \u043e\u0441\u043e\u0431\u0438\u0441\u0442\u0438\u0439 \u043a\u0430\u0431\u0456\u043d\u0435\u0442...",subtitle:"\u0414\u043e\u0434\u0430\u0454\u043c\u043e \u0433\u043e\u0442\u043e\u0432\u0456 \u0434\u043e\u043c\u0430\u0448\u043d\u0456 \u0437\u0430\u0432\u0434\u0430\u043d\u043d\u044f..."},{title:"\u0414\u043e\u0434\u0430\u0454\u043c\u043e \u0433\u043e\u0442\u043e\u0432\u0456 \u0434\u043e\u043c\u0430\u0448\u043d\u0456 \u0437\u0430\u0432\u0434\u0430\u043d\u043d\u044f...",subtitle:"\u0421\u0442\u0432\u043e\u0440\u044e\u0454\u043c\u043e \u0436\u0443\u0440\u043d\u0430\u043b \u0434\u043b\u044f \u0432\u0456\u0434\u0441\u0442\u0435\u0436\u0435\u043d\u043d\u044f \u0443\u0441\u043f\u0456\u0445\u0456\u0432 \u0443\u0447\u043d\u0456\u0432..."},{title:"\u041f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044f \u0447\u0435\u0440\u0435\u0437 2 \u0441\u0435\u043a\u0443\u043d\u0434\u0438...",subtitle:""}],comments:[{name:"\u0412\u043e\u043b\u043e\u0434\u0438\u043c\u0438\u0440 \u041d.",text:"\u041f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430! \u0413\u043e\u043b\u043e\u0432\u043d\u0435, \u0449\u043e \u0434\u0456\u0442\u0438 \u043d\u0435 \u043c\u043e\u0436\u0443\u0442\u044c \u0441\u043f\u0438\u0441\u0430\u0442\u0438! \u0414\u044f\u043a\u0443\u044e! \u0412\u0456\u0442\u0430\u044e \u0437 \u043f\u0440\u0438\u0439\u0434\u0435\u0448\u043d\u0456\u043c\u0438 \u0441\u0432\u044f\u0442\u0430\u043c\u0438!"},{name:"Olga F.",text:"\u0422\u0430\u043a\u043e\u0436 \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u044f\u043a\u0443\u0432\u0430\u0442\u0438 \u0437\u0430 \u0456\u0434\u0435\u044e. \u0421\u0430\u0439\u0442 \u0447\u0443\u0434\u043e\u0432\u0438\u0439, \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e \u0456 \u0440\u0430\u0434\u0436\u0443."},{name:"\u041e\u043b\u044c\u0433\u0430 \u0417.",text:"\u041a\u043e\u0440\u0438\u0441\u0442\u0443\u044e\u0441\u044c \u0437 \u0437\u0430\u0434\u043e\u0432\u043e\u043b\u0435\u043d\u043d\u044f\u043c. \u0414\u044f\u043a\u0443\u044e \u0440\u043e\u0437\u0440\u043e\u0431\u043d\u0438\u043a\u0430\u043c!"}]},ne={title:"1 000+ \u0432\u0456\u0434\u0433\u0443\u043a\u0456\u0432",subtitle:"\u0412\u0438 \u043f\u043e\u0431\u0430\u0447\u0438\u0442\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u0436\u0435 \u043f\u0456\u0441\u043b\u044f \u043f\u0435\u0440\u0448\u043e\u0433\u043e \u043c\u0456\u0441\u044f\u0446\u044f \u043d\u0430\u0432\u0447\u0430\u043d\u043d\u044f",statusText:[{title:"\u041f\u0456\u0434\u0431\u0438\u0440\u0430\u0454\u043c\u043e \u0456\u043d\u0434\u0438\u0432\u0456\u0434\u0443\u0430\u043b\u044c\u043d\u0438\u0439 \u043f\u043b\u0430\u043d \u043d\u0430\u0432\u0447\u0430\u043d\u043d\u044f...",subtitle:"\u041e\u0431\u0438\u0440\u0430\u0454\u043c\u043e \u043d\u0430\u0439\u043a\u0440\u0430\u0449\u043e\u0433\u043e \u0432\u0447\u0438\u0442\u0435\u043b\u044f \u0434\u043b\u044f \u0432\u0430\u0441..."},{title:"\u041e\u0431\u0438\u0440\u0430\u0454\u043c\u043e \u043d\u0430\u0439\u043a\u0440\u0430\u0449\u043e\u0433\u043e \u0432\u0447\u0438\u0442\u0435\u043b\u044f \u0434\u043b\u044f \u0432\u0430\u0441...",subtitle:"\u0413\u043e\u0442\u0443\u0454\u043c\u043e \u043d\u0430\u0432\u0447\u0430\u043b\u044c\u043d\u0456 \u043c\u0430\u0442\u0435\u0440\u0456\u0430\u043b\u0438..."},{title:"\u041f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044f \u0447\u0435\u0440\u0435\u0437 2 \u0441\u0435\u043a\u0443\u043d\u0434\u0438...",subtitle:""}],comments:[{name:"\u0421\u0432\u0456\u0442\u043b\u0430\u043d\u0430 \u0410.",text:"\u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0434\u043d\u044f! \u041c\u0456\u0439 \u0441\u0438\u043d \u0437\u0430\u0439\u043c\u0430\u0454\u0442\u044c\u0441\u044f \u0443 \u0448\u043a\u043e\u043b\u0456 \u043c\u0430\u0439\u0436\u0435 \u0440\u0456\u043a. \u041c\u0438 \u0434\u0443\u0436\u0435 \u0437\u0430\u0434\u043e\u0432\u043e\u043b\u0435\u043d\u0456 \u044f\u043a\u0456\u0441\u0442\u044e \u043d\u0430\u0432\u0447\u0430\u043d\u043d\u044f \u0442\u0430 \u043f\u043e\u0441\u043b\u0443\u0433\u0438 \u0437\u0430\u0433\u0430\u043b\u043e\u043c. \u0412\u0441\u0435 \u0432\u0447\u0430\u0441\u043d\u043e, \u044f\u043a\u0456\u0441\u043d\u043e \u0456 \u0437\u0430\u0432\u0436\u0434\u0438 \u0442\u0430\u043a, \u044f\u043a \u0437\u0440\u0443\u0447\u043d\u043e \u043d\u0430\u043c. \u0414\u044f\u043a\u0443\u0454\u043c\u043e \u0448\u043a\u043e\u043b\u0456 \u0437\u0430 \u043d\u0430\u0448\u0456 \u0437\u043d\u0430\u043d\u043d\u044f."}
1,{name:"\u041b\u0438\u043a\u0430 \u041c.",text:"\u041c\u043e\u044f \u0434\u043e\u043d\u044c\u043a\u0430 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0430\u0440\u0430\u0437\u0456 \u043a\u0443\u0440\u0441\u0438 \u043e\u043d\u043b\u0430\u0439\u043d \u0437 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0443\u0432\u0430\u043d\u043d\u044f. \u0423\u0447\u0438\u0442\u0435\u043b\u044c \u0420\u043e\u0441\u0442\u0438\u0441\u043b\u0430\u0432 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0443\u0432\u0430\u0436\u043d\u0438\u0439 \u0442\u0430 \u0433\u043e\u0442\u043e\u0432\u0438\u0439 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0430\u0442\u0438 \u043d\u0430 \u0431\u0443\u0434\u044c-\u044f\u043a\u0456 \u0434\u0438\u0442\u044f\u0447\u0456 \u043f\u0438\u0442\u0430\u043d\u043d\u044f! \u041c\u0430\u0442\u0435\u0440\u0456\u0430\u043b \u043f\u043e\u044f\u0441\u043d\u044e\u0454 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e, \u0434\u043e\u043d\u044c\u043a\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0432 \u0437\u0430\u0445\u0432\u0430\u0442\u0456 \u0442\u0430 \u0432\u0438\u043a\u043e\u043d\u0443\u0454 \u0434\u043e\u043c\u0430\u0448\u043d\u0456 \u0437\u0430\u0432\u0434\u0430\u043d\u043d\u044f, \u0449\u043e \u0454 \u0432\u0435\u043b\u0438\u043a\u0438\u043c \u0434\u043b\u044f \u0448\u043a\u043e\u043b\u0438! \u0422\u043e\u043c\u0443 \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e!"},{name:"\u0413\u0430\u043b\u0438\u043d\u0430 \u042f.",text:"\u0414\u043e\u043d\u044c\u043a\u0430 12 \u0440\u043e\u043a\u0456\u0432, \u0432\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0443\u0432\u0430\u043d\u043d\u0456 \u0420\u043e\u0431\u043b\u043e\u043a\u0441. \u041f\u043e-\u043f\u0435\u0440\u0448\u0435, \u0434\u0443\u0436\u0435 \u0437\u0440\u0443\u0447\u043d\u0438\u0439 \u043e\u043d\u043b\u0430\u0439\u043d-\u043a\u0430\u0431\u0456\u043d\u0435\u0442. \u041d\u0456\u044f\u043a\u0438\u0445 \u0433\u0440\u0443\u043f \u0432 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c\u0456 \u0439 \u0442\u0430\u043a \u0434\u0430\u043b\u0456. \u0412\u0441\u0435 \u0432 \u043e\u0434\u043d\u043e\u043c\u0443 \u043c\u0456\u0441\u0446\u0456, \u0437\u0440\u0443\u0447\u043d\u0438\u0439 \u0456 \u0437\u0440\u043e\u0437\u0443\u043c\u0456\u043b\u0438\u0439 \u0456\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441. \u0423\u0440\u043e\u043a\u0438 \u043f\u043e\u0434\u043e\u0431\u0430\u044e\u0442\u044c\u0441\u044f. \u0412\u0447\u0438\u0442\u0435\u043b\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u0439, \u0442\u0435\u0440\u043f\u043b\u044f\u0447\u0438\u0439, \u044f \u0431 \u0442\u0430\u043a \u043d\u0435 \u0437\u043c\u043e\u0433\u043b\u0430) \u0429\u0435 \u043f\u043b\u044e\u0441, \u0449\u043e \u043d\u0430 \u0443\u0440\u043e\u043a\u0430\u0445 \u0443\u0447\u0430\u0442\u044c\u0441\u044f \u0441\u0430\u043c\u0435 \u043f\u0438\u0441\u0430\u0442\u0438 \u043a\u043e\u0434. \u0414\u044f\u043a\u0443\u044e!"}]},ee={title:"983 \u0443\u0447\u043d\u044f",subtitle:"\u0433\u043e\u0432\u043e\u0440\u044f\u0442\u044c \u043f\u0440\u043e \u043f\u0456\u0434\u0432\u0438\u0449\u0435\u043d\u043d\u044f \u0457\u0445\u043d\u044c\u043e\u0433\u043e \u0440\u0456\u0432\u043d\u044f \u0430\u043d\u0433\u043b\u0456\u0439\u0441\u044c\u043a\u043e\u0457 \u0440\u0430\u0437\u043e\u043c \u0456\u0437 JustSchool",statusText:[{title:"\u041f\u0456\u0434\u0431\u0438\u0440\u0430\u0454\u043c\u043e \u0456\u043d\u0434\u0438\u0432\u0456\u0434\u0443\u0430\u043b\u044c\u043d\u0438\u0439 \u043f\u043b\u0430\u043d \u043d\u0430\u0432\u0447\u0430\u043d\u043d\u044f...",subtitle:"\u041e\u0431\u0438\u0440\u0430\u0454\u043c\u043e \u043d\u0430\u0439\u043a\u0440\u0430\u0449\u043e\u0433\u043e \u0432\u0447\u0438\u0442\u0435\u043b\u044f \u0434\u043b\u044f \u0432\u0430\u0441..."},{title:"\u041e\u0431\u0438\u0440\u0430\u0454\u043c\u043e \u043d\u0430\u0439\u043a\u0440\u0430\u0449\u043e\u0433\u043e \u0432\u0447\u0438\u0442\u0435\u043b\u044f \u0434\u043b\u044f \u0432\u0430\u0441...",subtitle:"\u0413\u043e\u0442\u0443\u0454\u043c\u043e \u043d\u0430\u0432\u0447\u0430\u043b\u044c\u043d\u0456 \u043c\u0430\u0442\u0435\u0440\u0456\u0430\u043b\u0438..."},{title:"\u041f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044f \u0447\u0435\u0440\u0435\u0437 2 \u0441\u0435\u043a\u0443\u043d\u0434\u0438...",subtitle:""}],comments:[{name:"\u041c\u0430\u0440\u0456\u044f",text:"\u0421\u043f\u043e\u0434\u043e\u0431\u0430\u043b\u0438\u0441\u044f \u0432\u0456\u0434\u0435\u043e\u0443\u0440\u043e\u043a\u0438 \u043f\u043e \u0432\u0438\u0432\u0447\u0435\u043d\u043d\u044e \u0442\u0435\u043c. \u0412\u0438\u043a\u043b\u0430\u0434\u0430\u0447 \u0434\u0443\u0436\u0435 \u0433\u0430\u0440\u043d\u043e \u043f\u043e\u044f\u0441\u043d\u044e\u0454 \u043c\u0430\u0442\u0435\u0440\u0456\u0430\u043b."},{name:"\u041e\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440\u0430",text:"\u0412\u0438\u043a\u043b\u0430\u0434\u0430\u0447 \u0447\u0443\u0434\u043e\u0432\u0438\u0439, \u0433\u0430\u0440\u043d\u0438\u0439 \u043c\u0430\u0442\u0435\u0440\u0456\u0430\u043b, \u043e\u0440\u0433\u0430\u043d\u0456\u0437\u0430\u0446\u0456\u044f \u043d\u0430\u0432\u0447\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0443 \u043c\u0435\u043d\u0456 \u043f\u043e\u0434\u043e\u0431\u0430\u0454\u0442\u044c\u0441\u044f. \u041b\u
10456\u043d\u0456\u044f \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u043a\u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e \u0440\u0435\u0430\u0433\u0443\u0454 \u043d\u0430 \u0437\u0430\u043f\u0438\u0442\u0438 \u0456 \u0432\u0438\u0440\u0456\u0448\u0443\u0454 \u043e\u0440\u0433\u0430\u043d\u0456\u0437\u0430\u0446\u0456\u0439\u043d\u0456 \u043f\u0438\u0442\u0430\u043d\u043d\u044f"},{name:"\u041e\u043b\u044c\u0433\u0430",text:"\u0421\u043f\u043e\u0434\u043e\u0431\u0430\u043b\u0438\u0441\u044c \u0432\u0438\u043a\u043b\u0430\u0434\u0430\u0447\u0456, \u043f\u0456\u0434\u0445\u0456\u0434 \u0434\u043e \u0432\u0438\u0432\u0447\u0435\u043d\u043d\u044f \u043c\u043e\u0432\u0438 \u0442\u0430 \u043a\u043b\u0456\u0454\u043d\u0442\u0441\u044c\u043a\u0430 \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u043a\u0430"}]};let ie=(()=>{class e{constructor(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-circle-spinner"]],inputs:{value:"value",diameter:"diameter",stroke:"stroke"},decls:7,vars:13,consts:[[1,"wrapper"],[3,"mode","value","diameter","strokeWidth"],["circle",""],[1,"value"],["preserveAspectRatio","xMidYMid meet","focusable","false",1,"underlay"],["cx","50%","cy","50%"]],template:function(n,i){if(1&n&&(t.TgZ(0,"div",0),t._UZ(1,"mat-progress-spinner",1,2),t.TgZ(3,"span",3),t._uU(4),t.qZA(),t.O4$(),t.TgZ(5,"svg",4),t._UZ(6,"circle",5),t.qZA()()),2&n){const u=t.MAs(2);t.xp6(1),t.Q6J("mode","determinate")("value",i.value)("diameter",i.diameter)("strokeWidth",i.stroke),t.xp6(3),t.hij("",i.value,"%"),t.xp6(1),t.Udp("width",i.diameter+"px")("height",i.diameter+"px"),t.uIk("viewBox",u._getViewBox()),t.xp6(1),t.Udp("stroke-width",u._getCircleStrokeWidth()+"%"),t.uIk("r",u._getCircleRadius())}},directives:[Q.Ou],styles:["[_nghost-%COMP%] .mat-progress-spinner circle{stroke:#5db036;stroke-linecap:round}.wrapper[_ngcontent-%COMP%]{position:relative;border-radius:50%}.wrapper[_ngcontent-%COMP%] .underlay[_ngcontent-%COMP%]{position:absolute;top:0;z-index:-1}.wrapper[_ngcontent-%COMP%] .underlay[_ngcontent-%COMP%] circle[_ngcontent-%COMP%]{stroke:#f1f1f1;fill:transparent}.wrapper[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:22px;font-weight:700}@media (min-width: 768px){.wrapper[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:30px}}"],changeDetection:0}),e})();var B=l(15551);const oe=["owl"],ue=["sliderContainer"];function re(e,o){}const Y=function(e){return{$implicit:e}};function se(e,o){if(1&e&&(t.ynx(0),t.YNc(1,re,0,0,"ng-template",9),t.BQk()),2&e){const n=t.oxw(),i=t.MAs(17);t.xp6(1),t.Q6J("ngTemplateOutlet",i)("ngTemplateOutletContext",t.VKq(2,Y,n.data.justschool))}}function ae(e,o){}function ce(e,o){if(1&e&&(t.ynx(0),t.YNc(1,ae,0,0,"ng-template",9),t.BQk()),2&e){const n=t.oxw(),i=t.MAs(17);t.xp6(1),t.Q6J("ngTemplateOutlet",i)("ngTemplateOutletContext",t.VKq(2,Y,n.data.justsmart))}}function le(e,o){}function pe(e,o){if(1&e&&(t.ynx(0),t.YNc(1,le,0,0,"ng-template",9),t.BQk()),2&e){const n=t.oxw(),i=t.MAs(17);t.xp6(1),t.Q6J("ngTemplateOutlet",i)("ngTemplateOutletContext",t.VKq(2,Y,n.data.justclass))}}function de(e,o){if(1&e&&(t.TgZ(0,"div",17)(1,"div",18)(2,"span",19),t._uU(3),t.qZA(),t.TgZ(4,"div",20),t.O4$(),t.TgZ(5,"svg",21),t._UZ(6,"path",22)(7,"path",23)(8,"path",24)(9,"path",25)(10,"path",26),t.qZA()()(),t.kcU(),t.TgZ(11,"div",27),t._uU(12),t.qZA()()),2&e){const n=t.oxw().$implicit;t.xp6(3),t.Oqu(n.name),t.xp6(9),t.hij(" ",n.text," ")}}function ge(e,o){1&e&&(t.ynx(0),t.YNc(1,de,13,2,"ng-template",16),t.BQk())}function me(e,o){if(1&e&&(t.TgZ(0,"div",10)(1,"div",4),t._uU(2),t.qZA(),t.TgZ(3,"div",5),t._uU(4),t.qZA()(),t.TgZ(5,"div",11,12)(7,"owl-carousel-o",13,14),t.YNc(9,ge,2,0,"ng-container",15),t.qZA()()),2&e){const n=o.$implicit,i=t.oxw();t.xp6(2),t.Oqu(n.title),t.xp6(2),t.hij(" ",n.subtitle," "),t.xp6(3),t.Q6J("options",i.sliderOptions),t.xp6(2),t.Q6J("ngForOf",n.comments)}}let fe=(()=>{class e{constructor(n,i,u){this.container=n,this.store=i,this.amplitudeEvents=u,this.scoreFinishValue=100,this.mockScore$=(0,L.H)(300,40).pipe((0,z.q)(this.scoreFinishValue+1),(0,Xn.B)()),this.statusText$=new T.x,this.sliderOptions={dots:!0,items:1,center:!0},this.isMobile=(0,d.Jj)()?.innerWidth<768,this.progressBarDiameter=this.isMobile?100:150,this.progressBarLineStroke=this.isMobile?7:10,this.subscriptionState$=new T.x,this.brand=c.uj,this.data={justclass:te,justsmart:ne,justschool:ee},this.brand$=this.store.select(c.qr),this.amplitudeEvents.call("quiz_analysis_view")}ngOnDestroy(){this.subscriptionState$.next(),this.subscriptionState$.complete()}ngAfterViewInit(){queueMicrotask(()=>{this.carousel.carouselService.onResize(this.sliderContainer.nativeElement.offsetWidth)})}ngOnInit(){this.mockScore$.pipe((0,Kn.M)(this.brand$),(0,W.R)(this.subscriptionState$)).subscribe(([n,i])=>{const u=this.data[i.key].statusText||[];this.statusText$.next(u[0]),n>=50&&this.statusText$.next(u[1]),n===this.scoreFinishValue&&(this.statusText$.next(u[2]),setTimeout(()=>{this.container.next()},1500))})}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(m),t.Y36(f.yh),t.Y36(d.PO))},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-quiz-scores"]],viewQuery:function(n,i){if
1(1&n&&(t.Gf(oe,5),t.Gf(ue,5)),2&n){let u;t.iGM(u=t.CRH())&&(i.carousel=u.first),t.iGM(u=t.CRH())&&(i.sliderContainer=u.first)}},decls:18,vars:17,consts:[[1,"quiz-container"],[1,"quiz-progress"],[3,"value","diameter","stroke"],[1,"quiz-preferences"],[1,"title"],[1,"text"],[3,"ngSwitch"],[4,"ngSwitchCase"],["instance",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"quiz-content"],[1,"quiz-slider"],["sliderContainer",""],[3,"options"],["owl",""],[4,"ngFor","ngForOf"],["carouselSlide",""],[1,"slide-wrapper"],[1,"slider-header"],[1,"name"],[1,"rating"],["xmlns","http://www.w3.org/2000/svg","width","89","height","16","viewBox","0 0 89 16","fill","none"],["d","M8.02447 1.46352C8.17415 1.00287 8.82585 1.00287 8.97553 1.46353L10.1839 5.18237C10.2508 5.38838 10.4428 5.52786 10.6594 5.52786H14.5696C15.054 5.52786 15.2554 6.14767 14.8635 6.43237L11.7001 8.73075C11.5248 8.85807 11.4515 9.08375 11.5184 9.28976L12.7268 13.0086C12.8764 13.4693 12.3492 13.8523 11.9573 13.5676L8.79389 11.2693C8.61865 11.1419 8.38135 11.1419 8.20611 11.2693L5.04267 13.5676C4.65081 13.8523 4.12357 13.4693 4.27325 13.0086L5.48157 9.28976C5.54851 9.08375 5.47518 8.85807 5.29994 8.73075L2.1365 6.43237C1.74464 6.14767 1.94603 5.52786 2.43039 5.52786H6.34062C6.55723 5.52786 6.74921 5.38838 6.81614 5.18237L8.02447 1.46352Z","fill","#FFC008"],["d","M26.0245 1.46352C26.1741 1.00287 26.8259 1.00287 26.9755 1.46353L28.1839 5.18237C28.2508 5.38838 28.4428 5.52786 28.6594 5.52786H32.5696C33.054 5.52786 33.2554 6.14767 32.8635 6.43237L29.7001 8.73075C29.5248 8.85807 29.4515 9.08375 29.5184 9.28976L30.7268 13.0086C30.8764 13.4693 30.3492 13.8523 29.9573 13.5676L26.7939 11.2693C26.6186 11.1419 26.3814 11.1419 26.2061 11.2693L23.0427 13.5676C22.6508 13.8523 22.1236 13.4693 22.2732 13.0086L23.4816 9.28976C23.5485 9.08375 23.4752 8.85807 23.2999 8.73075L20.1365 6.43237C19.7446 6.14767 19.946 5.52786 20.4304 5.52786H24.3406C24.5572 5.52786 24.7492 5.38838 24.8161 5.18237L26.0245 1.46352Z","fill","#FFC008"],["d","M44.0245 1.46352C44.1741 1.00287 44.8259 1.00287 44.9755 1.46353L46.1839 5.18237C46.2508 5.38838 46.4428 5.52786 46.6594 5.52786H50.5696C51.054 5.52786 51.2554 6.14767 50.8635 6.43237L47.7001 8.73075C47.5248 8.85807 47.4515 9.08375 47.5184 9.28976L48.7268 13.0086C48.8764 13.4693 48.3492 13.8523 47.9573 13.5676L44.7939 11.2693C44.6186 11.1419 44.3814 11.1419 44.2061 11.2693L41.0427 13.5676C40.6508 13.8523 40.1236 13.4693 40.2732 13.0086L41.4816 9.28976C41.5485 9.08375 41.4752 8.85807 41.2999 8.73075L38.1365 6.43237C37.7446 6.14767 37.946 5.52786 38.4304 5.52786H42.3406C42.5572 5.52786 42.7492 5.38838 42.8161 5.18237L44.0245 1.46352Z","fill","#FFC008"],["d","M62.0245 1.46352C62.1741 1.00287 62.8259 1.00287 62.9755 1.46353L64.1839 5.18237C64.2508 5.38838 64.4428 5.52786 64.6594 5.52786H68.5696C69.054 5.52786 69.2554 6.14767 68.8635 6.43237L65.7001 8.73075C65.5248 8.85807 65.4515 9.08375 65.5184 9.28976L66.7268 13.0086C66.8764 13.4693 66.3492 13.8523 65.9573 13.5676L62.7939 11.2693C62.6186 11.1419 62.3814 11.1419 62.2061 11.2693L59.0427 13.5676C58.6508 13.8523 58.1236 13.4693 58.2732 13.0086L59.4816 9.28976C59.5485 9.08375 59.4752 8.85807 59.2999 8.73075L56.1365 6.43237C55.7446 6.14767 55.946 5.52786 56.4304 5.52786H60.3406C60.5572 5.52786 60.7492 5.38838 60.8161 5.18237L62.0245 1.46352Z","fill","#FFC008"],["d","M80.0245 1.46352C80.1741 1.00287 80.8259 1.00287 80.9755 1.46353L82.1839 5.18237C82.2508 5.38838 82.4428 5.52786 82.6594 5.52786H86.5696C87.054 5.52786 87.2554 6.14767 86.8635 6.43237L83.7001 8.73075C83.5248 8.85807 83.4515 9.08375 83.5184 9.28976L84.7268 13.0086C84.8764 13.4693 84.3492 13.8523 83.9573 13.5676L80.7939 11.2693C80.6186 11.1419 80.3814 11.1419 80.2061 11.2693L77.0427 13.5676C76.6508 13.8523 76.1236 13.4693 76.2732 13.0086L77.4816 9.28976C77.5485 9.08375 77.4752 8.85807 77.2999 8.73075L74.1365 6.43237C73.7446 6.14767 73.946 5.52786 74.4304 5.52786H78.3406C78.5572 5.52786 78.7492 5.38838 78.8161 5.18237L80.0245 1.46352Z","fill","#FFC008"],[1,"slider-review"]],template:function(n,i){if(1&n&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"justkids-circle-spinner",2),t.ALo(3,"async"),t.qZA(),t.TgZ(4,"div",3)(5,"div",4),t._uU(6),t.ALo(7,"async"),t.qZA(),t.TgZ(8,"div",5),t._uU(9),t.ALo(10,"async"),t.qZA()(),t.ynx(11,6),t.ALo(12,"async"),t.YNc(13,se,2,4,"ng-container",7),t.YNc(14,ce,2,4,"ng-container",7),t.YNc(15,pe,2,4,"ng-container",7),t.BQk(),t.qZA(),t.YNc(16,me,10,4,"ng-template",null,8,t.W1O)),2&n){let u,s,p;t.xp6(2),t.Q6J("value",t.lcZ(3,9,i.mockScore$)||0)("diameter",i.progressBarDiameter)("stroke",i.progressBarLineStroke),t.xp6(4),t.Oqu(null==(u=t.lcZ(7,11,i.statusText$))?null:u.title),t.xp6(3),t.Oqu(null==(s=t.lcZ(10,13,i.statusText$))?null:s.subtitle),t.xp6(2),t.Q6J("ngSwitch",null==(p=t.lcZ(12,15,i.brand$))?null:p.key),t.xp6(2),t.Q6J("ngSwitchCase",i.brand.JUSTSCHOOLL),t.xp6(1),t.Q6J("ngSwitchCase",i.brand.JUSTSMART),t.xp6(1),t.Q6J("ngSwitchCase",i.brand.JUSTCLASS)}},directives:[ie,a.RF,a.n9,a.tP,B.Fy,a.sg,B.Mp],pipes:[a.Ov],styles:["[_nghost-%COMP%] .owl-item{padding:10px}[_nghost-%COMP%] .owl-dot span{background:#F1F1F1!important}[_nghost-%COMP%] .owl-dot.active span{background:#FFC008!important}[_nghost-%COMP%] .owl-carousel .owl-stage-outer{margin-bottom:20px}.quiz-container[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column}.quiz-slider[_ngcontent-%COMP%]{max-width:310px;width:100%}.quiz-preferences[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;text-align:center;gap:5px;margin-bottom:30px;min-height:40px}.quiz-preferences[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#797979;font-size:13px;font-weight:500;line-height:18px}.quiz-preferences[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{color:#c3c3c3;font-size:12px;font-weight:500}.quiz-content[_ngcontent-%COMP%]{margin-bottom:20px;
1display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;max-width:400px}.quiz-content[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:20px;font-weight:700}.quiz-content[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-size:14px;font-weight:600;line-height:19px}.quiz-progress[_ngcontent-%COMP%]{margin-bottom:30px}.slide-wrapper[_ngcontent-%COMP%]{box-shadow:0 0 7px #00000026;border-radius:10px;background:#FFF;padding:15px}.slider-header[_ngcontent-%COMP%]{margin-bottom:13px;display:flex;align-items:center;justify-content:space-between;gap:10px}.slider-header[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-size:16px;font-weight:600}.slider-review[_ngcontent-%COMP%]{font-size:13px;font-style:italic;font-weight:500;line-height:18px}@media (min-width: 768px){.quiz-slider[_ngcontent-%COMP%]{max-width:500px}.quiz-progress[_ngcontent-%COMP%]{margin-bottom:30px}.quiz-preferences[_ngcontent-%COMP%]{gap:10px;min-height:50px}.quiz-preferences[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:18px}.quiz-preferences[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-size:16px}.quiz-content[_ngcontent-%COMP%]{margin-bottom:30px;gap:20px}.quiz-content[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:38px}.quiz-content[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-size:18px;line-height:23px}.slide-wrapper[_ngcontent-%COMP%]{padding:30px}.slider-header[_ngcontent-%COMP%]{margin-bottom:20px}.slider-header[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-size:20px}.slider-review[_ngcontent-%COMP%]{font-size:16px}[_nghost-%COMP%] .owl-theme .owl-dots .owl-dot span{width:13px;height:13px}}"],changeDetection:0}),e})();const _e={title:"\u041c\u0438 \u0441\u0442\u0432\u043e\u0440\u0438\u043b\u0438 \u0432\u0430\u0448 \u043e\u0441\u043e\u0431\u0438\u0441\u0442\u0438\u0439 \u043a\u0430\u0431\u0456\u043d\u0435\u0442 \u0432\u0447\u0438\u0442\u0435\u043b\u044f!",sentence1:"\u0410\u0432\u0442\u043e\u0440\u0441\u044c\u043a\u0456 \u0439 \u0443\u043d\u0456\u043a\u0430\u043b\u044c\u043d\u0456 \u0437\u0430\u0432\u0434\u0430\u043d\u043d\u044f",sentence2:"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u043d\u0430 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u043a\u0430 \u0439 \u043e\u0446\u0456\u043d\u044e\u0432\u0430\u043d\u043d\u044f",sentence3:"\u041f\u043e\u0441\u0442\u0456\u0439\u043d\u0435 \u043f\u043e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0443"},he={title:"\u041c\u0438 \u043f\u0456\u0434\u0456\u0431\u0440\u0430\u043b\u0438 \u0432\u0430\u043c \u0432\u0447\u0438\u0442\u0435\u043b\u044f \u0442\u0430 \u043f\u043b\u0430\u043d \u043d\u0430\u0432\u0447\u0430\u043d\u043d\u044f!",sentence1:"\u041f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u0438\u0439 \u0444\u0456\u0434\u0431\u0435\u043a \u0432\u0456\u0434 \u0432\u0447\u0438\u0442\u0435\u043b\u044f",sentence2:"\u0415\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0438\u0439 \u0449\u043e\u0434\u0435\u043d\u043d\u0438\u043a",sentence3:"\u041f\u043e\u043d\u0430\u0434 10 000 \u0442\u0440\u0435\u043d\u0443\u0432\u0430\u043b\u044c\u043d\u0438\u0445 \u0432\u043f\u0440\u0430\u0432"},Ce={title:"\u041c\u0438 \u043f\u0456\u0434\u0456\u0431\u0440\u0430\u043b\u0438 \u0432\u0430\u043c \u0432\u0447\u0438\u0442\u0435\u043b\u044f \u0442\u0430 \u043f\u043b\u0430\u043d \u043d\u0430\u0432\u0447\u0430\u043d\u043d\u044f!",sentence1:"\u0411\u0435\u0437\u043a\u043e\u0448\u0442\u043e\u0432\u043d\u0438\u0439 \u043f\u0435\u0440\u0448\u0438\u0439 \u043f\u0440\u043e\u0431\u043d\u0438\u0439 \u0443\u0440\u043e\u043a",sentence2:"\u041e\u043d\u043b\u0430\u0439\u043d-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 \u0434\u043b\u044f \u043d\u0430\u0432\u0447\u0430\u043d\u043d\u044f",sentence3:"\u0406\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u0456 \u0443\u0440\u043e\u043a\u0438 \u0430\u043d\u0433\u043b\u0456\u0439\u0441\u044c\u043a\u043e\u0457 \u043c\u043e\u0432\u0438"};function xe(e,o){}const N=function(e){return{$implicit:e}};function ze(e,o){if(1&e&&(t.ynx(0),t.YNc(1,xe,0,0,"ng-template",7),t.BQk()),2&e){const n=t.oxw(),i=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",i)("ngTemplateOutletContext",t.VKq(2,N,n.data.justschool))}}function qe(e,o){}function we(e,o){if(1&e&&(t.ynx(0),t.YNc(1,qe,0,0,"ng-template",7),t.BQk()),2&e){const n=t.oxw(),i=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",i)("ngTemplateOutletContext",t.VKq(2,N,n.data.justsmart))}}function be(e,o){}function Oe(e,o){if(1&e&&(t.ynx(0),t.YNc(1,be,0,0,"ng-template",7),t.BQk()),2&e){const n=t.oxw(),i=t.MAs(7);t.xp6(1),t.Q6J("ngTemplateOutlet",i)("ngTemplateOutletContext",t.VKq(2,N,n.data.justclass))}}function Pe(e,o){if(1&e&&(t.TgZ(0,"div",8),t._uU(1),t.qZA(),t.TgZ(2,"div",9),t._UZ(3,"img",10),t.qZA(),t.TgZ(4,"div",11),t._uU(5,"\u0429\u043e \u0432\u0438 \u043e\u0442\u0440\u0438\u043c\u0430\u0454\u0442\u0435:"),t.qZA(),t.TgZ(6,"ul",12)(7,"li",13),t._UZ(8,"img",14),t.TgZ(9,"span"),t._uU(10),t.qZA()(),t.TgZ(11,"li",13),t._UZ(12,"img",15),t.TgZ(13,"span"),t._uU(14),t.qZA()(),t.TgZ(15,"li",13),t._UZ(16,"img",16),t.TgZ(17,"span"),t._uU(18),t.qZA()()()),2&e){const n=o.$implicit;t.xp6(1),t.Oqu(n.title),t.xp6(9),t.Oqu(n.sentence1),t.xp6(4),t.Oqu(n.sentence2),t.xp6(4),t.Oqu(n.sentence3)}}function Me(e,o){1&e&&(t.TgZ(0,"span"),t._uU(1,"\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0456\u0442\u044c, \u0431\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0437\u0430\u043f\u0438\u0441 \u043d\u0430 \u043f\u0440\u043e\u0431\u043d\u0438\u0439 \u0443\u0440\u043e\u043a"),t.qZA())}let ve=(()=>{class e{constructor(n,i,u){this.container=n,this.store=i,this.amplitudeEvents=u,this.brand=c.uj,this.data={justclass:_e,justsmart:he,justschool:Ce},this.brand$=this.store.select(c.qr),this.amplitudeEvents.call("quiz_result_view")}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(m),t.Y36(f.yh),t.Y36(d.PO))},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-quiz-trial-lesson-promo"]],decls:12,vars:9,consts:[[1,"quiz-container"],[3,"ngSwitch"],[4,"ngSwitchCase"],["instance",""],[1,"quiz-footer"],[4,"ngIf"],["text","\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"quiz-title"],[1,"quiz-thumb"],["src","/assets/images/quiz/results.png","alt",""],[1,"quiz-thumb-caption"],[1,"quiz-benefits"],[1,"quiz-benefits-item"],["src","/assets/images/quiz/hand.svg","alt",""],["src","/assets/images/quiz/computer.svg","alt",""],["src","/assets/images/quiz/rocket.svg","alt",""]],template:function(n,i){if
1(1&n&&(t.TgZ(0,"div",0),t.ynx(1,1),t.ALo(2,"async"),t.YNc(3,ze,2,4,"ng-container",2),t.YNc(4,we,2,4,"ng-container",2),t.YNc(5,Oe,2,4,"ng-container",2),t.BQk(),t.YNc(6,Pe,19,4,"ng-template",null,3,t.W1O),t.TgZ(8,"div",4),t.YNc(9,Me,2,0,"span",5),t.ALo(10,"async"),t.TgZ(11,"justkids-button",6),t.NdJ("click",function(){return i.container.next()}),t.qZA()()()),2&n){let u,s;t.xp6(1),t.Q6J("ngSwitch",null==(u=t.lcZ(2,5,i.brand$))?null:u.key),t.xp6(2),t.Q6J("ngSwitchCase",i.brand.JUSTSCHOOLL),t.xp6(1),t.Q6J("ngSwitchCase",i.brand.JUSTSMART),t.xp6(1),t.Q6J("ngSwitchCase",i.brand.JUSTCLASS),t.xp6(4),t.Q6J("ngIf",(null==(s=t.lcZ(10,7,i.brand$))?null:s.key)!==i.brand.JUSTCLASS)}},directives:[a.RF,a.n9,a.tP,a.O5,_],pipes:[a.Ov],styles:[".quiz-container[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;color:#242424;max-width:450px;margin:0 auto}.quiz-title[_ngcontent-%COMP%]{font-size:20px;font-weight:700;text-align:center}.quiz-thumb[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}.quiz-thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;max-width:220px}.quiz-thumb-caption[_ngcontent-%COMP%]{font-size:14px;font-weight:600;line-height:19px;text-align:center;margin-bottom:20px}.quiz-benefits[_ngcontent-%COMP%]{list-style-type:none;padding:0;gap:15px;display:flex;flex-direction:column}.quiz-benefits[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:500;line-height:18px}.quiz-benefits[_ngcontent-%COMP%] li[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:18px;height:18px}.quiz-footer[_ngcontent-%COMP%]{text-align:center;margin-top:20px}.quiz-footer[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#797979;font-size:12px;font-weight:500}justkids-button[_ngcontent-%COMP%]{margin-top:10px;display:block}@media (min-width: 768px){[_nghost-%COMP%]{display:block;margin-top:-40px}.quiz-title[_ngcontent-%COMP%]{font-size:30px;margin-bottom:10px}.quiz-thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:340px}.quiz-benefits[_ngcontent-%COMP%]{gap:23px}.quiz-benefits[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:18px;gap:20px}.quiz-benefits[_ngcontent-%COMP%] li[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:30px;height:30px}.quiz-thumb-caption[_ngcontent-%COMP%]{margin-top:30px;font-size:20px;font-weight:600;margin-bottom:25px}.quiz-footer[_ngcontent-%COMP%]{margin-top:44px}.quiz-footer[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:16px;font-weight:500}justkids-button[_ngcontent-%COMP%]{margin-top:15px}}"],changeDetection:0}),e})();var ye=l(15861),ke=l(62843),Ze=l(33289),Te=l(42941),Qe=l(42580);function Ae(e,o){if(1&e&&(t.TgZ(0,"div",4)(1,"div",5),t._uU(2," \u0414\u044f\u043a\u0443\u0454\u043c\u043e! \u041c\u0438 \u0437\u0432\u2019\u044f\u0436\u0435\u043c\u043e\u0441\u044c \u0437 \u0432\u0430\u043c\u0438 \u043d\u0430\u0439\u0431\u043b\u0438\u0436\u0447\u0438\u043c \u0447\u0430\u0441\u043e\u043c "),t.qZA(),t.TgZ(3,"div",6),t._uU(4),t.ALo(5,"async"),t.qZA(),t.TgZ(6,"div",7)(7,"div",8),t._uU(8,"\u0414\u043e\u0432\u0456\u0440\u0442\u0435 \u043d\u0430\u0432\u0447\u0430\u043d\u043d\u044f \u0435\u043a\u0441\u043f\u0435\u0440\u0442\u0430\u043c"),t.qZA(),t.TgZ(9,"div",9),t._UZ(10,"img",10),t.qZA(),t.TgZ(11,"ul",11)(12,"li")(13,"div",12),t._UZ(14,"img",13),t.qZA(),t.TgZ(15,"div",14)(16,"span",15),t._uU(17,"1000+"),t.qZA(),t.TgZ(18,"span",16),t._uU(19,"\u0412\u0438\u043a\u043b\u0430\u0434\u0430\u0447\u0456\u0432"),t.qZA()()(),t.TgZ(20,"li")(21,"div",12),t._UZ(22,"img",17),t.qZA(),t.TgZ(23,"div",14)(24,"span",15),t._uU(25,"1/89"),t.qZA(),t.TgZ(26,"span",16),t._uU(27,"\u041f\u0440\u043e\u0445\u043e\u0434\u044f\u0442\u044c \u043d\u0430\u0448 \u0432\u0456\u0434\u0431\u0456\u0440"),t.qZA()()(),t.TgZ(28,"li")(29,"div",12),t._UZ(30,"img",18),t.qZA(),t.TgZ(31,"div",14)(32,"span",15),t._uU(33,"5 \u0440\u043e\u043a\u0456\u0432"),t.qZA(),t.TgZ(34,"span",16),t._uU(35,"\u0421\u0435\u0440\u0435\u0434\u043d\u0456\u0439 \u0441\u0442\u0430\u0436 \u0432\u0447\u0438\u0442\u0435\u043b\u0456\u0432"),t.qZA()()()(),t.TgZ(36,"div",19)(37,"p"),t._uU(38," \u041d\u0430\u0448\u0456 \u0432\u0447\u0438\u0442\u0435\u043b\u0456 \u2014 \u0435\u043d\u0435\u0440\u0433\u0456\u0439\u043d\u0456 \u0439 \u0442\u0432\u043e\u0440\u0447\u0456 \u043b\u044e\u0434\u0438 \u0437 \u043f\u0435\u0434\u0430\u0433\u043e\u0433\u0456\u0447\u043d\u0438\u043c \u0434\u043e\u0441\u0432\u0456\u0434\u043e\u043c \u0456 \u0436\u0430\u0433\u043e\u044e \u0434\u043e \u043d\u043e\u0432\u043e\u0433\u043e. "),t.qZA(),t.TgZ(39,"p"),t._uU(40," \u0412\u043e\u043d\u0438 \u043b\u0435\u0433\u043a\u043e \u0437\u043d\u0430\u0445\u043e\u0434\u044f\u0442\u044c \u043f\u0456\u0434\u0445\u0456\u0434 \u0434\u043e \u0443\u0447\u043d\u0456\u0432 \u0456 \u043f\u0456\u0434\u0431\u0438\u0440\u0430\u044e\u0442\u044c \u0457\u043c \u0435\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u0456 \u043d\u0430\u0432\u0447\u0430\u043b\u044c\u043d\u0456 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0438 "),t.qZA()()()()),2&e){const n=t.oxw();
1t.xp6(4),t.hij(" \u041f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044f \u0447\u0435\u0440\u0435\u0437 ",t.lcZ(5,1,n.countDownTimer$)," \u0441\u0435\u043a\u0443\u043d\u0434\u0438... ")}}function Fe(e,o){if(1&e&&(t.TgZ(0,"div",20)(1,"div",5),t._uU(2," \u0414\u044f\u043a\u0443\u0454\u043c\u043e! \u041c\u0438 \u0437\u0432\u2019\u044f\u0436\u0435\u043c\u043e\u0441\u044c \u0437 \u0432\u0430\u043c\u0438 \u043d\u0430\u0439\u0431\u043b\u0438\u0436\u0447\u0438\u043c \u0447\u0430\u0441\u043e\u043c "),t.qZA(),t.TgZ(3,"div",6),t._uU(4),t.ALo(5,"async"),t.qZA(),t.TgZ(6,"div",7)(7,"div",8),t._uU(8," \u0414\u043e\u043f\u043e\u043c\u043e\u0436\u0435\u043c\u043e \u0431\u0443\u0442\u0438 \u043d\u0430 \u043a\u0440\u043e\u043a \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u0443 \u0441\u0432\u043e\u0457\u0445 \u043e\u0434\u043d\u043e\u043b\u0456\u0442\u043a\u0456\u0432 "),t.qZA(),t.TgZ(9,"div",21)(10,"div",22),t._UZ(11,"img",23),t.qZA(),t.TgZ(12,"ul",24)(13,"li"),t._uU(14,"\u0414\u043e\u0432\u0435\u0434\u0435\u043c\u043e, \u0449\u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430 \u0434\u043b\u044f \u0434\u0456\u0442\u0435\u0439 \u043c\u043e\u0436\u0435 \u0431\u0443\u0442\u0438 \u043b\u0435\u0433\u043a\u043e\u044e \u0442\u0430 \u0446\u0456\u043a\u0430\u0432\u043e\u044e"),t.qZA(),t.TgZ(15,"li"),t._uU(16,"\u041f\u043e\u043a\u0440\u0430\u0449\u0438\u043c\u043e \u043e\u0446\u0456\u043d\u043a\u0438 \u0439 \u0437\u0431\u0456\u043b\u044c\u0448\u0438\u043c\u043e \u0448\u0430\u043d\u0441\u0438 \u043d\u0430 \u0432\u0441\u0442\u0443\u043f \u0443 \u0442\u043e\u043f\u043e\u0432\u0438\u0439 \u0412\u041d\u0417"),t.qZA(),t.TgZ(17,"li"),t._uU(18,"\u041f\u0456\u0434\u0433\u043e\u0442\u0443\u0454\u043c\u043e \u0434\u0438\u0442\u0438\u043d\u0443 \u0434\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u0438\u0445 \u0442\u0430 \u0456\u0441\u043f\u0438\u0442\u0456\u0432"),t.qZA(),t.TgZ(19,"li"),t._uU(20,"\u041f\u0440\u043e\u043a\u0430\u0447\u0430\u0454\u043c\u043e \u043b\u043e\u0433\u0456\u0447\u043d\u0435 \u0442\u0430 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u0435 \u043c\u0438\u0441\u043b\u0435\u043d\u043d\u044f"),t.qZA()()()()()),2&e){const n=t.oxw();t.xp6(4),t.hij(" \u041f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044f \u0447\u0435\u0440\u0435\u0437 ",t.lcZ(5,1,n.countDownTimer$)," \u0441\u0435\u043a\u0443\u043d\u0434\u0438... ")}}function Se(e,o){if(1&e&&(t.TgZ(0,"div",25)(1,"div",5),t._uU(2,"\u0412\u0456\u0442\u0430\u0454\u043c\u043e \u0437 \u0443\u0441\u043f\u0456\u0448\u043d\u043e\u044e \u0440\u0435\u0454\u0441\u0442\u0440\u0430\u0446\u0456\u0454\u044e!"),t.qZA(),t.TgZ(3,"div",6),t._uU(4),t.ALo(5,"async"),t.qZA(),t.TgZ(6,"div",7)(7,"div",8),t._uU(8,"\u0427\u043e\u043c\u0443 \u0441\u0430\u043c\u0435 JustClass?"),t.qZA(),t.TgZ(9,"div",21)(10,"div",22),t._UZ(11,"img",26)(12,"img",27),t.qZA(),t.TgZ(13,"ul",24)(14,"li"),t._uU(15,"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u043d\u0430 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u043a\u0430 \u0439 \u043e\u0446\u0456\u043d\u044e\u0432\u0430\u043d\u043d\u044f \u0434\u043e\u043c\u0430\u0448\u043d\u0456\u0445 \u0437\u0430\u0432\u0434\u0430\u043d\u044c"),t.qZA(),t.TgZ(16,"li"),t._uU(17," \u0414\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0456\u044f \u0432\u0447\u0438\u0442\u0435\u043b\u044f\u043c, \u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e \u0447\u0430\u0441\u0443 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0434\u043b\u044f \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043d\u044f \u0434\u043e\u043c\u0430\u0448\u043d\u044c\u043e\u0457 \u0440\u043e\u0431\u043e\u0442\u0438. "),t.qZA(),t.TgZ(18,"li"),t._uU(19," \u041c\u043e\u0436\u043b\u0438\u0432\u0456\u0441\u0442\u044c \u0437\u0430\u043f\u043e\u0431\u0456\u0433\u0430\u0442\u0438 \u0441\u043f\u0438\u0441\u0443\u0432\u0430\u043d\u043d\u044e: \u0432\u0438\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u0438 \u0447\u0430\u0441 \u0456 \u0434\u0435\u0434\u043b\u0430\u0439\u043d \u0434\u043b\u044f \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043d\u044f \u0434\u043e\u043c\u0430\u0448\u043d\u044c\u043e\u0433\u043e \u0437\u0430\u0432\u0434\u0430\u043d\u043d\u044f \u0442\u0430 \u043f\u0440\u0438\u0445\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u043f\u043e\u043a\u0430\u0437 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0438\u0445 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0435\u0439 \u0434\u043b\u044f \u0443\u0447\u043d\u0456\u0432. "),t.qZA(),t.TgZ(20,"li"),t._uU(21," \u0416\u0443\u0440\u043d\u0430\u043b, \u0437 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u044f\u043a\u043e\u0433\u043e \u0432\u0447\u0438\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435 \u0432\u0456\u0434\u0441\u0442\u0435\u0436\u0443\u0432\u0430\u0442\u0438 \u0443\u0441\u043f\u0456\u0445\u0438 \u0443\u0447\u043d\u0456\u0432 "),t.qZA()()()()()),2&e){const n=t.oxw();
1t.xp6(4),t.hij(" \u041f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044f \u0447\u0435\u0440\u0435\u0437 ",t.lcZ(5,1,n.countDownTimer$)," \u0441\u0435\u043a\u0443\u043d\u0434\u0438... ")}}let Ee=(()=>{class e{constructor(n,i,u,s,p,g,C,q){this.store=n,this.quizService=i,this.route=u,this.amplitudeEvents=s,this.tokenStorage=p,this.userStorage=g,this.snackService=C,this.amplitudeService=q,this.brandType=c.uj,this.secondsCountDownValue=2,this.countDownTimer$=(0,L.H)(0,1e3).pipe((0,P.U)(Z=>this.secondsCountDownValue-Z),(0,z.q)(this.secondsCountDownValue+1)),this.subscription=new b.w0,this.brand$=this.store.select(c.qr),this.dataToUpload$=this.store.select(c.pF)}ngOnInit(){this.uploadData()}uploadData(){this.subscription.add(this.brand$.subscribe(n=>{!n||(n.key===c.uj.JUSTCLASS?this.uploadJustClassQuizData():this.uploadQuizData())}))}uploadJustClassQuizData(){this.subscription.add(this.dataToUpload$.pipe((0,y.h)(n=>Boolean(n.userData)),(0,k.w)(n=>this.quizService.uploadJustClassQuizData({quizAnswers:n.savedAnswers,...n.userData},this.getJustClassQueryParams())),(0,P.U)(({data:n})=>{this.tokenStorage.setToken(n.api.token,!0),this.tokenStorage.setRefreshToken(n.api.refreshToken),this.userStorage.setUser(n.user)}),(0,D.K)(n=>(this.snackService.showMessage("\u0429\u043e\u0441\u044c \u043f\u0456\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a, \u0441\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0449\u0435 \u0440\u0430\u0437!"),(0,ke._)(n)))).subscribe(()=>{this.amplitudeEvents.call("quiz_thank_page_view");const n=(0,d.Jj)();n&&(n.location.href=n.location.origin+"/th")}))}uploadQuizData(){const n=(0,Ze.Z)(new Date,"yyyy-MM-DD[T]HH:mm:ss"),i=this.getQueryParamsFromUrl();i.add(new d.Eq("localTime",n)),this.subscription.add(this.dataToUpload$.pipe((0,y.h)(u=>Boolean(u.userData)),(0,k.w)(u=>this.quizService.uploadQuizData({quizAnswers:u.savedAnswers,...u.userData},i))).subscribe(u=>{this.callStudentEvent(u.data.userId.toString(),u.data.redirectUri)}))}callStudentEvent(n,i){var u=this;return(0,ye.Z)(function*(){yield u.amplitudeService.track("Lead",null,n).promise.then(()=>{const s=(0,d.Jj)();s&&(s.location.href=i)})})()}getJustClassQueryParams(){const n=new d.az,i=(0,d.Jj)();return i&&(new URLSearchParams(i.localStorage?.getItem("marketing-query")??"").forEach((s,p)=>n.add(new d.Eq(p,s))),n.add(new d.Eq("registration_url",i.location.origin+i.location.pathname))),this.getQueryParamsFromUrl().parameters.forEach(u=>n.add(u)),n.remove("screen")}getQueryParamsFromUrl(){const{screen:n,...i}=this.route.snapshot.queryParams,u=new d.az;return Object.entries(i).forEach(([s,p])=>{u.add(new d.Eq(s,p))}),u}ngOnDestroy(){this.subscription.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(f.yh),t.Y36(c.vA),t.Y36(w.gz),t.Y36(d.PO),t.Y36(Te.i),t.Y36(Qe.TZ),t.Y36(d.cw),t.Y36(d.fK))},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-quiz-card-finish"]],features:[t._Bn([{provide:d.cw,useClass:d.cw}])],decls:5,vars:6,consts:[[3,"ngSwitch"],["class","quiz-promotion-container justschool",4,"ngSwitchCase"],["class","quiz-promotion-container justsmart",4,"ngSwitchCase"],["class","quiz-promotion-container justclass",4,"ngSwitchCase"],[1,"quiz-promotion-container","justschool"],[1,"quiz-promotion-title"],[1,"quiz-promotion-description"],[1,"quiz-promotion-wrapper"],[1,"quiz-promotion-heading"],[1,"quiz-promotion-content"],["src","/assets/images/quiz-finish.png","alt","",1,"promotion-image"],[1,"quiz-promotion-advantages"],[1,"icon"],["src","/assets/images/ph_chalkboard-teacher.svg","alt",""],[1,"content"],[1,"content-title"],[1,"content-caption"],["src","/assets/images/typcn_flow-merge.svg","alt",""],["src","/assets/images/akar-icons_calendar.svg","alt",""],[1,"quiz-promotion-footer"],[1,"quiz-promotion-container","justsmart"],[1,"quiz-promotion-body"],[1,"quiz-promotion-thumb"],["src","/assets/images/quiz/quiz-finish.png","alt",""],[1,"quiz-promotion-list"],[1,"quiz-promotion-container","justclass"],["src","/assets/images/quiz/quiz-finish-tab.jpg","alt","",1,"horizontal"],["src","/assets/images/quiz/quiz-finish.jpg","alt","",1,"vertical"]],template:function(n,i){1&n&&(t.ynx(0,0),t.ALo(1,"async"),t.YNc(2,Ae,41,3,"div",1),t.YNc(3,Fe,21,3,"div",2),t.YNc(4,Se,22,3,"div",3),t.BQk()),2&n&&(t.Q6J("ngSwitch",t.lcZ(1,4,i.brand$).key),t.xp6(2),t.Q6J("ngSwitchCase",i.brandType.JUSTSCHOOLL),t.xp6(1),t.Q6J("ngSwitchCase",i.brandType.JUSTSMART),t.xp6(1),t.Q6J("ngSwitchCase",i.brandType.JUSTCLASS))},directives:[a.RF,a.n9],pipes:[a.Ov],styles:[".quiz-promotion-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.quiz-promotion-wrapper[_ngcontent-%COMP%]{border-radius:20px;background:#FFF;padding:30px;display:flex;align-items:center;flex-direction:column;margin-top:50px;width:100%}.quiz-promotion-title[_ngcontent-%COMP%]{font-size:20px;color:#fff;font-weight:700;margin-bottom:10px;text-align:center}.quiz-promotion-description[_ngcontent-%COMP%]{font-size:13px;color:#fff;text-align:center;font-weight:500;line-height:18px}.quiz-promotion-heading[_ngcontent-%COMP%]{color:#000;text-align:center;font-size:22px;font-weight:700;line-height:27px}.quiz-promotion-content[_ngcontent-%COMP%]{position:relative;height:290px;width:100%;margin-top:20px}.quiz-promotion-content[_ngcontent-%COMP%] .promotion-image[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:cover;border-radius:10px}.quiz-promotion-advantages[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0;list-style-type:none;position:relative;width:calc(100% + 20px);gap:5px;margin-top:-100px}.quiz-promotion-advantages[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{border-radius:10px;background:rgba(243,248,249,.9);display:flex;align-items:center;padding:10px 15px;
1gap:15px}.quiz-promotion-advantages[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:5px}.quiz-promotion-advantages[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .content-title[_ngcontent-%COMP%]{color:#f16600;font-size:20px;font-weight:700;line-height:25px}.quiz-promotion-advantages[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .content-caption[_ngcontent-%COMP%]{color:#242424;font-size:12px;font-weight:700;line-height:14px}.quiz-promotion-advantages[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:44px;height:44px;background:#fff;border-radius:25px;display:flex;align-items:center;justify-content:center}.quiz-promotion-advantages[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:30px;width:100%}.quiz-promotion-list[_ngcontent-%COMP%]{font-size:13px;color:#242424;font-weight:700;line-height:18px;gap:10px;display:flex;flex-direction:column;padding-left:20px}.quiz-promotion-thumb[_ngcontent-%COMP%]{height:195px;margin:20px 0}.quiz-promotion-thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:contain}.quiz-promotion-footer[_ngcontent-%COMP%]{font-size:13px;font-weight:500;line-height:19px;gap:10px;display:flex;flex-direction:column}.quiz-promotion-footer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.justclass[_ngcontent-%COMP%] .quiz-promotion-list[_ngcontent-%COMP%]{font-weight:500;list-style-type:decimal}.justclass[_ngcontent-%COMP%] .quiz-promotion-thumb[_ngcontent-%COMP%]{height:auto}.justclass[_ngcontent-%COMP%] .quiz-promotion-thumb[_ngcontent-%COMP%] .horizontal[_ngcontent-%COMP%]{display:none}@media (min-width: 768px){.quiz-promotion-title[_ngcontent-%COMP%]{font-size:30px;margin-bottom:20px}.quiz-promotion-description[_ngcontent-%COMP%]{font-size:18px}.quiz-promotion-wrapper[_ngcontent-%COMP%]{padding:50px 40px 40px;max-width:720px}.quiz-promotion-heading[_ngcontent-%COMP%]{align-self:flex-start;text-align:left;font-size:36px;line-height:56px;margin-bottom:20px}.quiz-promotion-content[_ngcontent-%COMP%]{order:3;margin-top:40px}.quiz-promotion-advantages[_ngcontent-%COMP%]{flex-direction:row;width:100%;padding:0 10px;order:4;margin-bottom:0;margin-top:-120px}.quiz-promotion-advantages[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{flex-direction:column;width:33.3333333333%;align-items:flex-start;padding:24px}.quiz-promotion-advantages[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:50px;height:50px}.quiz-promotion-advantages[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:32px}.quiz-promotion-advantages[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{gap:0}.quiz-promotion-advantages[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .content-title[_ngcontent-%COMP%]{font-size:30px;line-height:40px}.quiz-promotion-advantages[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .content-caption[_ngcontent-%COMP%]{font-size:16px;line-height:22px}.quiz-promotion-body[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:flex-end;width:100%}.quiz-promotion-thumb[_ngcontent-%COMP%]{height:320px;width:320px}.quiz-promotion-list[_ngcontent-%COMP%]{font-size:18px;line-height:24px;position:absolute;width:57%;font-weight:600;top:0;left:0}.quiz-promotion-footer[_ngcontent-%COMP%]{font-size:18px;width:70%;align-self:flex-start;order:2;gap:20px}.justschool[_ngcontent-%COMP%] .quiz-promotion-header[_ngcontent-%COMP%]{order:1}.justclass[_ngcontent-%COMP%] .quiz-promotion-wrapper[_ngcontent-%COMP%]{background:url(/assets/images/quiz/reasons-miniicons.png) no-repeat;background-color:#fff;background-position-x:350px;background-position-y:30%}.justclass[_ngcontent-%COMP%] .quiz-promotion-list[_ngcontent-%COMP%]{position:relative;order:1}.justclass[_ngcontent-%COMP%] .quiz-promotion-body[_ngcontent-%COMP%]{display:flex;flex-direction:column}.justclass[_ngcontent-%COMP%] .quiz-promotion-thumb[_ngcontent-%COMP%]{order:2;height:390px;width:100%}.justclass[_ngcontent-%COMP%] .quiz-promotion-thumb[_ngcontent-%COMP%] .vertical[_ngcontent-%COMP%]{display:none}.justclass[_ngcontent-%COMP%] .quiz-promotion-thumb[_ngcontent-%COMP%] .horizontal[_ngcontent-%COMP%]{display:block}}@media (min-width: 1200px){[_nghost-%COMP%]{display:block;margin-top:-40px}.quiz-promotion-wrapper[_ngcontent-%COMP%]{max-width:1170px;display:grid;align-items:stretch;grid-column-gap:90px;column-gap:90px;padding:50px 40px;margin-top:35px}.quiz-promotion-advantages[_ngcontent-%COMP%]{padding:0;margin-top:40px;order:3;gap:17px}.quiz-promotion-content[_ngcontent-%COMP%]{order:4;grid-column:2/span 2;grid-row:1/span 3;margin-top:0;height:auto;max-width:360px}.quiz-promotion-title[_ngcontent-%COMP%]{max-width:600px}.quiz-promotion-body[_ngcontent-%COMP%]{justify-content:flex-start;margin-bottom:60px}.quiz-promotion-list[_ngcontent-%COMP%]{position:relative}.quiz-promotion-thumb[_ngcontent-%COMP%]{height:430px;width:502px;position:absolute;right:0;top:-125px}.justsmart[_ngcontent-%COMP%] .quiz-promotion-heading[_ngcontent-%COMP%]{width:50%}.justsmart[_ngcontent-%COMP%] .quiz-promotion-list[_ngcontent-%COMP%]{width:40%}.justclass[_ngcontent-%COMP%] .quiz-promotion-wrapper[_ngcontent-%COMP%]{background-color:#fff;background-position:78%}.justclass[_ngcontent-%COMP%] .quiz-promotion-thumb[_ngcontent-%COMP%]{height:450px;width:400px;top:-95px}.justclass[_ngcontent-%COMP%] .quiz-promotion-thumb[_ngcontent-%COMP%] .horizontal[_ngcontent-%COMP%]{display:none}.justclass[_ngcontent-%COMP%] .quiz-promotion-thumb[_ngcontent-%COMP%] .vertical[_ngcontent-%COMP%]{display:block}.justclass[_ngcontent-%COMP%] .quiz-promotion-list[_ngcontent-%COMP%]{width:40%}}"],changeDetection:0}),e})();function je(e,o){if(1&e&&t._UZ(0,"justkids-quiz-card-single",8),2&e){const n=t.oxw(2).$implicit;t.Q6J("data",null==n?null:n.card)}}function Le(e,o){if(1&e&&t._UZ(0,"justkids-quiz-card-test-with-answer",8),2&e){const n=t.oxw(2).$implicit;t.Q6J("data",null==n?null:n.card)}}function De(e,o){if(1&e&&t._UZ(0,"justkids-quiz-test-result",8),2&e){const n=t.oxw(2).$implicit;t.Q6J("data",null==n?null:n.card)}}function Ie(e,o){if(1&e&&t._UZ(0,"justkids-quiz-card-test-with-properties",8),2&e){const n=t.oxw(2).$implicit;t.Q6J("data",null==n?null:n.card)}}function Je(e,o){if(1&e&&t._UZ(0,"justkids-quiz-card-checkbox",8),2&e){const n=t.oxw(2).$implicit;t.Q6J("data",null==n?null:n.card)}}function Ue(e,o){if(1&e&&t._UZ(0,"justkids-quiz-card-single",8),2&e){const n=t.oxw(2).$implicit;t.Q6J("data",null==n?null:n.card)}}function Be(e,o){if(1&e&&t._UZ(0,"justkids-quiz-card-promotion",8),2&e){const n=t.oxw(2).$implicit;t.Q6J("data",null==n?null:n.card)}}function Ye(e,o){1&e&&t._UZ(0,"justkids-quiz-card-phone-booking")}function Ne(e,o){1&e&&t._UZ(0,"justkids-quiz-card-without-otp")}function $e(e,o){1&e&&t._UZ(0,"justkids-quiz-lead-form")}function He(e,o){1&e&&t._UZ(0,"justkids-quiz-justclass-form")}function We(e,o){1&e&&t._UZ(0,"justkids-quiz-child-form")}function Ve(e,o){1&e&&t._UZ(0,"justkids-quiz-form-place")}function Re(e,o){1&e&&t._UZ(0,"justkids-quiz-scores")}function Ge(e,o){1&e&&t._UZ(0,"justkids-quiz-trial-lesson-promo")}function Xe(e,o){1&e&&t._UZ(0,"justkids-quiz-card-finish")}function Ke(e,o){1&e&&(t.ynx(0),t.YNc(1,je,1,1,"justkids-quiz-card-single",6),t.YNc(2,Le,1,1,"justkids-quiz-card-test-with-answer",6),t.YNc(3,De,1,1,"justkids-quiz-test-result",6),t.YNc(4,Ie,1,1,"justkids-quiz-card-test-with-properties",6),t.YNc(5,Je,1,1,"justkids-quiz-card-checkbox",6),t.YNc(6,Ue,1,1,"justkids-quiz-card-single",6),t.YNc(7,Be,1,1,"justkids-quiz-card-promotion",6),t.YNc(8,Ye,1,0,"justkids-quiz-card-phone-booking",7),t.YNc(9,Ne,1,0,"justkids-quiz-card-without-otp",7),t.YNc(10,$e,1,0,"justkids-quiz-lead-form",7),t.YNc(11,He,1,0,"justkids-quiz-justclass-form",7),t.YNc(12,We,1,0,"justkids-quiz-child-form",7),t.YNc(13,Ve,1,0,"justkids-quiz-form-place",7),t.YNc(14,Re,1,0,"justkids-quiz-scores",7),t.YNc(15,Ge,1,0,"justkids-quiz-trial-lesson-promo",7),t.YNc(16,Xe,1,0,"justkids-quiz-card-finish",7),t.BQk()),2&e&&(t.xp6(1),t.Q6J("ngSwitchCase","test"),t.xp6(1),t.Q6J("ngSwitchCase","test-with-answer"),t.xp6(1),t.Q6J("ngSwitchCase","test-result"),t.xp6(1),t.Q6J("ngSwitchCase","test-with-properties"),t.xp6(1),t.Q6J("ngSwitchCase","checkboxes"),t.xp6(1),t.Q6J("ngSwitchCase","multiple-test"),t.xp6(1),t.Q6J("ngSwitchCase","pause"),t.xp6(1),t.Q6J("ngSwitchCase","phone"),t.xp6(1),t.Q6J("ngSwitchCase","phone-without-otp"),t.xp6(1),t.Q6J("ngSwitchCase","form"),t.xp6(1),t.Q6J("ngSwitchCase","justclass-form"),t.xp6(1),t.Q6J("ngSwitchCase","child-name"),t.xp6(1),t.Q6J("ngSwitchCase","justclass-form-school"),t.xp6(1),t.Q6J("ngSwitchCase","analysis"),t.xp6(1),t.Q6J("ngSwitchCase","result"),t.xp6(1),t.Q6J("ngSwitchCase","thank-you-page"))}function ti(e,o){if(1&e&&(t.ynx(0),t.TgZ(1,"justkids-quiz-step",4),t.YNc(2,Ke,17,16,"ng-container",5),t.qZA(),t.BQk()),2&e){const n=o.$implicit,i=o.index;t.oxw();const u=t.MAs(1);t.xp6(1),t.Q6J("iterable",null==n?null:n.isIterableCard)("orangeBackgroun
1d",null==n?null:n.orangeBackground)("queryParamSlug",null==n||null==n.card?null:n.card.uniqueQuestionId)("isBackButtonEnabled",null==n?null:n.isBackButtonEnabled)("ngSwitch",null==n?null:n.card.type),t.xp6(1),t.Q6J("ngIf",u.selectedIndex===i)}}function ni(e,o){if(1&e&&(t.TgZ(0,"justkids-quiz-container",1,2),t.YNc(2,ti,3,6,"ng-container",3),t.ALo(3,"async"),t.qZA()),2&e){const n=t.oxw();t.s9C("initialIndex",n.initialIndex),t.xp6(2),t.Q6J("ngForOf",t.lcZ(3,2,n.quizCards$))}}let ei=(()=>{class e{constructor(n,i,u,s,p,g,C){this.renderer=n,this.quizService=i,this.route=u,this.store=s,this.amplitudeEvents=p,this.activatedRoute=g,this.chr=C,this.initialIndex=-1,this.subscription=new b.w0,this.brand$=this.store.select(c.qr),this.quizCards$=this.store.select(c.ZT).pipe((0,y.h)(Z=>Boolean(Z?.length)),(0,z.q)(1),(0,mt.b)(Z=>this.setIndexQuizByRoute(Z))),s.dispatch((0,c.H8)({slug:u.snapshot.params.slug})),n.addClass(document.body,"regular-pages-body"),this.setInitAnalyticsEvent(),this.setAnswersFromSessionStorageIntoStore()}setIndexQuizByRoute(n){this.activatedRoute.queryParams.pipe((0,z.q)(1),(0,ft.j)("screen")).subscribe(i=>{if(i){const u=n.findIndex(p=>p.card.uniqueQuestionId===i);JSON.parse(sessionStorage.getItem(c.o0)),this.initialIndex=u}else this.initialIndex=0})}setAnswersFromSessionStorageIntoStore(){const n=this.getSavedAnswersFromStorage();n&&Object.entries(n).forEach(([i,u])=>
1{"object"!=typeof u.answers||Array.isArray(u.answers)?this.store.dispatch((0,c.pf)({savedData:{questionSlug:u.questionSlug,questionType:u.questionType,questionId:+i,answers:u.answers}})):(u.answers.isRightAnswer&&this.store.dispatch((0,V.TY)({answer:u.answers})),this.store.dispatch((0,c.pf)({savedData:{questionSlug:u.questionSlug,questionType:u.questionType,questionId:+i,answers:[u.answers]}})))})}getSavedAnswersFromStorage(){try{return JSON.parse(sessionStorage.getItem(c.o0))}catch{return null}}setInitAnalyticsEvent(){this.subscription.add(this.brand$.pipe((0,y.h)(n=>Boolean(n))).subscribe(n=>{const i=this.route.snapshot.params.slug;n?.key===c.uj.JUSTCLASS?this.amplitudeEvents.call("quiz_justclass_init"):this.amplitudeEvents.call("quiz_init",i)}))}ngOnDestroy(){this.renderer.removeClass(document.body,"regular-pages-body"),this.subscription.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(t.Qsj),t.Y36(c.vA),t.Y36(w.gz),t.Y36(f.yh),t.Y36(d.PO),t.Y36(w.gz),t.Y36(t.sBO))},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-quiz-page"]],decls:2,vars:3,consts:[[3,"initialIndex",4,"ngIf"],[3,"initialIndex"],["quizInstance",""],[4,"ngFor","ngForOf"],[3,"iterable","orangeBackground","queryParamSlug","isBackButtonEnabled","ngSwitch"],[4,"ngIf"],[3,"data",4,"ngSwitchCase"],[4,"ngSwitchCase"],[3,"data"]],template:function(n,i){if(1&n&&(t.YNc(0,ni,4,4,"justkids-quiz-container",0),t.ALo(1,"async")),2&n){let u;t.Q6J("ngIf",(null==(u=t.lcZ(1,1,i.quizCards$))?null:u.length)&&i.initialIndex>=0)}},directives:[a.O5,m,a.sg,x,a.RF,a.n9,X,Xt,on,$t,sn,pn,En,Dn,In,Jn,Un,Gn,fe,ve,Ee],pipes:[a.Ov],styles:['@font-face{font-family:Montserrat;font-style:normal;font-weight:100;src:local(""),url(montserrat-v15-latin_cyrillic-ext_cyrillic-100.10c5c1e0ff7ca7f7.woff2) format("woff2"),url(montserrat-v15-latin_cyrillic-ext_cyrillic-100.571b1e6f2a8c3e43.woff) format("woff");font-display:swap}@font-face{font-family:Montserrat;font-style:italic;font-weight:100;src:local(""),url(montserrat-v15-latin_cyrillic-ext_cyrillic-100italic.8f0b1eb0b1c2bffb.woff2) format("woff2"),url(montserrat-v15-latin_cyrillic-ext_cyrillic-100italic.e690c4b9b574bcf0.woff) format("woff");font-display:swap}@font-face{font-family:Montserrat;font-style:normal;font-weight:200;src:local(""),url(montserrat-v15-latin_cyrillic-ext_cyrillic-200.f16cc2dd75d0537a.woff2) format("woff2"),url(montserrat-v15-latin_cyrillic-ext_cyrillic-200.394b4fc397f370fe.woff) format("woff");font-display:swap}@font-face{font-family:Montserrat;font-style:italic;font-weight:200;src:local(""),url(montserrat-v15-latin_cyrillic-ext_cyrillic-200italic.df413012a2b6eafe.woff2) format("woff2"),url(montserrat-v15-latin_cyrillic-ext_cyrillic-200italic.8db65fcaae659215.woff) format("woff");font-display:swap}@font-face{font-family:Montserrat;font-style:normal;font-weight:300;src:local(""),url(montserrat-v15-latin_cyrillic-ext_cyrillic-300.1f2c2f5a826d079a.woff2) format("woff2"),url(montserrat-v15-latin_cyrillic-ext_cyrillic-300.29f61c54c5d9f967.woff) format("woff");font-display:swap}@font-face{font-family:Montserrat;font-style:italic;font-weight:300;src:local(""),url(montserrat-v15-latin_cyrillic-ext_cyrillic-300italic.8f31399bb849f714.woff2) format("woff2"),url(montserrat-v15-latin_cyrillic-ext_cyrillic-300italic.43bf9e0b3973520f.woff) format("woff");font-display:swap}@font-face{font-family:Montserrat;font-style:normal;font-weight:400;src:local(""),url(montserrat-v15-latin_cyrillic-ext_cyrillic-regular.cf6e52731522e905.woff2) format("woff2"),url(montserrat-v15-latin_cyrillic-ext_cyrillic-regular.e5f48ec6bc14d487.woff) format("woff");font-display:swap}@font-face{font-family:Montserrat;font-style:italic;font-weight:400;src:local(""),url(montserrat-v15-latin_cyrillic-ext_cyrillic-italic.03ee53475a28d6a2.woff2) format("woff2"),url(montserrat-v15-latin_cyrillic-ext_cyrillic-italic.82be3fcc915d3760.woff) format("woff");font-display:swap}@font-face{font-family:Montserrat;font-style:normal;font-weight:500;src:local(""),url(montserrat-v15-latin_cyrillic-ext_cyrillic-500.f3cbf742769fab69.woff2) format("woff2"),url(montserrat-v15-latin_cyrillic-ext_cyrillic-500.8e29708db8a87c0e.woff) format("woff");font-display:swap}@font-face{font-family:Montserrat;font-style:italic;font-weight:500;
1src:local(""),url(montserrat-v15-latin_cyrillic-ext_cyrillic-500italic.e5beb5be1a6e2fe9.woff2) format("woff2"),url(montserrat-v15-latin_cyrillic-ext_cyrillic-500italic.4a0767a4323960ed.woff) format("woff");font-display:swap}@font-face{font-family:Montserrat;font-style:normal;font-weight:600;src:local(""),url(montserrat-v15-latin_cyrillic-ext_cyrillic-600.62b0c21e458f7c99.woff2) format("woff2"),url(montserrat-v15-latin_cyrillic-ext_cyrillic-600.9b9f513ac6873684.woff) format("woff");font-display:swap}@font-face{font-family:Montserrat;font-style:italic;font-weight:600;src:local(""),url(montserrat-v15-latin_cyrillic-ext_cyrillic-600italic.00f4f04b60fed34f.woff2) format("woff2"),url(montserrat-v15-latin_cyrillic-ext_cyrillic-600italic.1121ddcc11b3b706.woff) format("woff");font-display:swap}@font-face{font-family:Montserrat;font-style:normal;font-weight:700;src:local(""),url(montserrat-v15-latin_cyrillic-ext_cyrillic-700.62c52c42a6c46b80.woff2) format("woff2"),url(montserrat-v15-latin_cyrillic-ext_cyrillic-700.33c4f8f10c69a22e.woff) format("woff");font-display:swap}@font-face{font-family:Montserrat;font-style:italic;font-weight:700;src:local(""),url(montserrat-v15-latin_cyrillic-ext_cyrillic-700italic.958721ea4cd99751.woff2) format("woff2"),url(montserrat-v15-latin_cyrillic-ext_cyrillic-700italic.b4743bc6b826c36d.woff) format("woff");font-display:swap}@font-face{font-family:Montserrat;font-style:normal;font-weight:800;src:local(""),url(montserrat-v15-latin_cyrillic-ext_cyrillic-800.bdb7eb360857a9c7.woff2) format("woff2"),url(montserrat-v15-latin_cyrillic-ext_cyrillic-800.0fc9aaac63b1c092.woff) format("woff");font-display:swap}@font-face{font-family:Montserrat;font-style:italic;font-weight:800;src:local(""),url(montserrat-v15-latin_cyrillic-ext_cyrillic-800italic.efc14d5242a9ca6b.woff2) format("woff2"),url(montserrat-v15-latin_cyrillic-ext_cyrillic-800italic.8809de388d050826.woff) format("woff");font-display:swap}@font-face{font-family:Montserrat;font-style:normal;font-weight:900;src:local(""),url(montserrat-v15-latin_cyrillic-ext_cyrillic-900.e172ecf82eea5584.woff2) format("woff2"),url(montserrat-v15-latin_cyrillic-ext_cyrillic-900.dd9a2a9d93bd428e.woff) format("woff");font-display:swap}@font-face{font-family:Montserrat;font-style:italic;font-weight:900;src:local(""),url(montserrat-v15-latin_cyrillic-ext_cyrillic-900italic.791ab118640518df.woff2) format("woff2"),url(montserrat-v15-latin_cyrillic-ext_cyrillic-900italic.16ec8e457129ce66.woff) format("woff");font-display:swap}[_nghost-%COMP%]{font-family:Montserrat,sans-serif}']}),e})(),ii=(()=>{class e{constructor(n){this.quizService=n,this.counterState$=this.quizService.getState$()}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(S))},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-quiz-counter"]],decls:8,vars:6,consts:[[1,"quiz-counter"],[1,"quiz-counter-current"],[1,"quiz-counter-total"]],template:function(n,i){1&n&&(t.TgZ(0,"div",0)(1,"span",1),t._uU(2),t.ALo(3,"async"),t.qZA(),t._uU(4," / "),t.TgZ(5,"span",2),t._uU(6),t.ALo(7,"async"),t.qZA()()),2&n&&(t.xp6(2),t.Oqu(t.lcZ(3,2,i.counterState$).currentIndex),t.xp6(4),t.Oqu(t.lcZ(7,4,i.counterState$).totalItems))},pipes:[a.Ov],styles:[".quiz-counter[_ngcontent-%COMP%]{font-weight:600;font-family:Montserrat,sans-serif;color:#242424}.quiz-counter-total[_ngcontent-%COMP%]{color:#ffc008}"],changeDetection:0}),e})(),oi=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[a.ez,r.UX,nt.aw,h.J7]]}),e})(),ui=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[a.ez,Q.Cq]]}),e})(),ri=(()=>{class e{constructor(n){this.quizService=n,this.firstBar$=this.quizService.getState$().pipe((0,P.U)(i=>{const u=i.currentIndex/Math.floor(i.totalItems/2)*100;return u>100?"100%":u+"%"})),this.secondBar$=this.quizService.getState$().pipe((0,P.U)(i=>i.currentIndex<=i.totalItems/2?"0%":Math.round((i.currentIndex-i.totalItems/2)/(i.totalItems-i.totalItems/2)*100)+"%"))}}return e.\u0275fac=function(n){return new(n||e)(t.Y36(S))},e.\u0275cmp=t.Xpm({type:e,selectors:[["justkids-quiz-progress-bar"]],decls:7,vars:8,consts:[[1,"progress-bar-container"],[1,"progress-bar"],[1,"progress-bar-line"]],template:function(n,i){1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span",2),t.ALo(3,"async"),t.qZA()(),t.TgZ(4,"div",1)(5,"span",2),t.ALo(6,"async"),t.qZA()()()),2&n&&(t.xp6(2),t.Udp("width",t.lcZ(3,4,i.firstBar$)),t.xp6(3),t.Udp("width",t.lcZ(6,6,i.secondBar$)))},pipes:[a.Ov],styles:[".progress-bar-container[_ngcontent-%COMP%]{display:flex;width:100%;gap:10px}
1.progress-bar-container[_ngcontent-%COMP%] .progress-bar[_ngcontent-%COMP%]{flex:1;background:#F1F1F1;position:relative;height:4px;border-radius:100px}.progress-bar-container[_ngcontent-%COMP%] .progress-bar[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;left:0;top:0;background:#FFC008;border-radius:100px;display:block;transition:.6s ease}"],changeDetection:0}),e})(),si=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[a.ez,Q.Cq]]}),e})();var ai=l(48013),ci=l(56178),ut=l(33231);let li=(()=>{class e{transform(n,i,u=!0){return u&&(i?.trim||Array.isArray(n))?n.filter(s=>s?.key?.trim()?.toLowerCase()?.includes(i?.toLowerCase()?.trim()||"")||s?.detachedFromSearch):n}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=t.Yjl({name:"searchInArray",type:e,pure:!0}),e})();var $=l(1289),pi=l(85083);let di=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[a.ez,a.ez,$.LD,r.UX,ut.Co]]}),e})();t.B6R(ot,[a.O5,$.gD,r.JJ,r.oH,a.mk,pi.ey,ut.nu,a.sg],[li,a.Ov]);var gi=l(57140),mi=l(67013),fi=l(58576);const _i=[{path:"",component:ei}];let hi=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[a.ez,v.U5,w.Bz.forChild(_i),r.UX,mi.lN,$.LD,fi.p9,oi,ui,B.bB,si,f.Aw.forFeature("quiz",c.Zq),ai.sQ.forFeature([c.yH]),ci.FT.instrument({maxAge:25}),di,gi.q]]}),e})();t.B6R(m,[a.mk,a.O5,ii,ri,a.tP],[])}}]);
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.