1(self.webpackChunkqupi_client=self.webpackChunkqupi_client||[]).push([[179],{87341:(Q,f,o)=>{"use strict";o.d(f,{e:()=>p});var t=o(92340),n=o(5e3),u=o(40520),i=o(93721);const l=t.N.api;let p=(()=>{class m{constructor(r,g){this.http=r,this.rbacService=g}login(r){return this.http.post(l.baseURL+"/api/v1/auth/basic",r,{withCredentials:!0})}loginRefresh(r={initial:!1}){return this.http.get(l.baseURL+"/api/v1/auth/refresh",{headers:Object.assign({},r.initial?{initial:""}:{})})}register(r){return this.http.post(l.baseURL+"/api/v1/register",r)}reSendActivationEmail(r){return this.http.post(l.baseURL+"/api/v1/register/re-send-activation-email",r)}logout(){return this.http.get(l.baseURL+"/api/v1/auth/logout",{headers:{Authorization:"Bearer "+localStorage.getItem("qupi_bearer_token")}})}deleteAccount(){return this.http.get(l.baseURL+"/api/v1/auth/delete-account")}restorePassword(r){return this.http.post(l.baseURL+"/api/v1/auth/password-change",r)}restorePasswordEmail(r){return this.http.post(l.baseURL+"/api/v1/auth/password-restore",r)}}return m.\u0275fac=function(r){return new(r||m)(n.LFG(u.eN),n.LFG(i.hn))},m.\u0275prov=n.Yz7({token:m,factory:m.\u0275fac}),m})()},99316:(Q,f,o)=>{"use strict";o.d(f,{G:()=>n});const n={afterLogin:[null,null,o(33156).U]}},89259:(Q,f,o)=>{"use strict";o.d(f,{x:()=>p});var t=o(65620),n=o(50590),u=o(5e3),i=o(21346),l=o(60639);let p=(()=>{class m{constructor(r,g){this.fb=r,this.store=g}openShareDialog(r,g,e,c,a){this.store.pipe((0,t.Ys)(h=>h.app.size[r]),(0,n.P)()).subscribe(h=>{this.fb.ui({method:"share",href:e,quote:g,mobile_iframe:h.toString()}).then(C=>{if(a&&!C.error_code)return this.store.dispatch(Object.assign({},a))}).catch(C=>{l.log(C)})})}}return m.\u0275fac=function(r){return new(r||m)(u.LFG(i.LG),u.LFG(t.yh))},m.\u0275prov=u.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},98190:(Q,f,o)=>{"use strict";o.d(f,{Z:()=>l});var t=o(92340),n=o(5e3),u=o(40520);const i=t.N.api;let l=(()=>{class p{constructor(s){this.http=s}getBySlug(s){return this.http.get(i.baseURL+`/api/v1/content/${s}`)}create(s){return this.http.post(i.baseURL+"/api/v1/content",s)}update(s,r){return this.http.put(i.baseURL+`/api/v1/content/${s}`,r)}remove(s){return this.http.delete(i.baseURL+`/api/v1/content/${s}`)}}return p.\u0275fac=function(s){return new(s||p)(n.LFG(u.eN))},p.\u0275prov=n.Yz7({token:p,factory:p.\u0275fac}),p})()},18534:(Q,f,o)=>{"use strict";o.d(f,{HP:()=>t,Hc:()=>c,Hr:()=>i,K5:()=>l,KI:()=>u,L:()=>p,RD:()=>g,Xd:()=>w,Z9:()=>m,cn:()=>C,fq:()=>n,ik:()=>O,yp:()=>s,ys:()=>e});class t{constructor(x){this.payload=x,this.type="[AUTH] LoginBasic"}}class n{constructor(x){this.payload=x,this.type="[AUTH] LoginBasicSuccess"}}class u{constructor(x){this.payload=x,this.type="[AUTH] LoginBasicFail"}}class i{constructor(){this.type="[AUTH] LoginBasicClearErrors"}}class l{constructor(x){this.payload=x,this.type="[AUTH] LoginBasicRefresh"}}class p{constructor(x){this.payload=x,this.type="[AUTH] LoginBasicRefreshSuccess"}}class m{constructor(){this.type="[AUTH] LoginBasicRefreshFail"}}class s{constructor(){this.type="[AUTH] LoginSuccess"}}class g{constructor(){this.type="[AUTH] Logout"}}class e{constructor(x){this.payload=x,this.type="[AUTH] LogoutSuccess"}}class c{constructor(x){this.payload=x,this.type="[AUTH] LogoutFail"}}class C{constructor(){this.type="[AUTH] SoftLogout"}}class w{constructor(){this.type="[AUTH] RestorePasswordSuccess"}}class O{constructor(x){this.payload=x,this.type="[AUTH] RestorePasswordFail"}}},96875:(Q,f,o)=>{"use strict";o.d(f,{dX:()=>n,dn:()=>u,sP:()=>i});const t={jwt:{token:null},basic:{pending:!1,error:!1,logged:!1},user:{logged:null},errors:{jwt:null,basic:null},passwordRestore:{success:null,error:null}};function n(l=t,p){switch(p.type){case"[AUTH] LoginBasicRefresh":case"[AUTH] LoginBasic":return Object.assign(Object.assign({},l),{basic:Object.assign(Object.assign({},l.basic),{pending:!0,error:!1,logged:!1}),errors:Object.assign(Object.assign({},l.errors),{basic:null})});case"[AUTH] LoginBasicRefreshSuccess":case"[AUTH] LoginBasicSuccess":return Object.assign(Object.assign({},l),{basic:Object.assign(Object.assign({},l.basic),{pending:!1,error:!1,logged:!0}),jwt:Object.assign(Object.assign({},l.jwt),{token:p.payload.jwt}),user:{logged:!0},errors:Object.assign(Object.assign({},l.errors),{basic:null})});case"[AUTH] LoginBasicRefreshFail":return Object.assign(Object.assign({},l),{basic:Object.assign(Object.assign({},l.basic),{pending:!1,error:!0,logged:!1}),jwt:{token:null},user:{logged:!1}});case"[AUTH] LoginBasicFail":return Object.assign(Object.assign({},l),{basic:Object.assign(Object.assign({},l.basic),{pending:!1,error:!0,logged:!1}),errors:Object.assign(Object.assign({},l.errors),{basic:p.payload})});case"[AUTH] LoginBasicClearErrors":return Object.assign(Object.assign({},l),{errors:Object.assign(Object.assign({},l.errors),{basic:null})});case"[AUTH] SetJwt":return Object.assign(Object.assign({},l),{jwt:Object.assign(Object.assign({},l.jwt),{token:p.payload})});case"[AUTH] RestorePasswordSuccess":return Object.assign(Object.assign({},l),{passwordRestore:Object.assign(Object.assign({},l.passwordRestore),{success:!0})});case"[AUTH] RestorePasswordFail":return Object.assign(Object.assign({},l),{passwordRestore:{error:p.payload.error,success:!1}});case"[AUTH] ClearState":return t;default:return l}}const u=l=>l.auth.jwt.token,i=l=>l.auth.user.logged},96034:(Q,f,o)=>{"use strict";o.d(f,{Ae:()=>M,D2:()=>p,F_:()=>b,Ip:()=>l,NE:()=>r,OD:()=>x,Qs:()=>C,Sv:()=>i,W_:()=>K,ZL:()=>h,_M:()=>s,gM:()=>a,id:()=>y,le:()=>g,oL:()=>A,ob:()=>u,tx:()=>c,vG:()=>t,xl:()=>m,zK:()=>n,zX:()=>e});class t{constructor(){this.type="[CORE] GetNews"}}class n{constructor(W){this.payload=W,this.type="[CORE] GetNewsSuccess"}}class u{constructor(W){this.payload=W,this.type="[CORE] GetNewsFail"}}class i{constructor(W){this.payload=W,this.type="[CORE] LATEST_SIZE"}}class l{constructor(W){this.payload=W,this.type="[CORE] REPORT_QUESTION_PROBLEM_DIALOG"}}class p{constructor(W){this.payload=W,this.type="[CORE] SAVED_QUIZZES_DIALOG"}}class m{constructor(W){this.payload=W,this.type="[CORE] MAIN__VIEW_MODE"}}class s{constructor(W){this.payload=W,this.type="[CORE] GET_PAGE_CONTENT"}}
1class r{constructor(W){this.payload=W,this.type="[CORE] GET_PAGE_CONTENT_SUCCESS"}}class g{constructor(W){this.payload=W,this.type="[CORE] GET_PAGE_CONTENT_FAIL"}}class e{constructor(){this.type="[CORE] GET_SUBSCRIPTIONS"}}class c{constructor(W){this.payload=W,this.type="[CORE] GET_SUBSCRIPTIONS_SUCCESS"}}class a{constructor(W){this.payload=W,this.type="[CORE] GET_SUBSCRIPTIONS_FAIL"}}class h{constructor(W){this.payload=W,this.type="[CORE] ACTIVATE_SUBSCRIPTION"}}class C{constructor(W){this.payload=W,this.type="[CORE] SUBSCRIPTION_EVENT_TYPE"}}class M{constructor(){this.type="[CORE] GET_SAVED_QUIZZES"}}class y{constructor(W){this.payload=W,this.type="[CORE] GET_SAVED_QUIZZES_SUCCESS"}}class x{constructor(W){this.payload=W,this.type="[CORE] GET_SAVED_QUIZZES_FAIL"}}class b{constructor(){this.type="[CORE] SCROLL_TOP"}}class K{constructor(W){this.payload=W,this.type="[CORE] SHARE_QUESTION_SUCCESS"}}class A{constructor(W){this.payload=W,this.type="[CORE] SHARE_QUESTION_FAIL"}}},3070:(Q,f,o)=>{"use strict";o.d(f,{Eu:()=>l,Ho:()=>p,bK:()=>s,cL:()=>c,cj:()=>e,mp:()=>i,vx:()=>m});var t=o(30422),n=o(65620);const u={size:{},mainView:{sidenavOpened:!1,sidenavDisabled:!1,topnavLogo:!0,blurred:!1,loader:!1},news:[],pricingPlans:{promotion:null,subscriptions:[]},content:"",savedQuizzes:[],errors:{},pending:{},questionShared:!1,selectedSubscription:null,subscriptionEventType:null};function i(h=u,C){switch(C.type){case"[CORE] LATEST_SIZE":return Object.assign(Object.assign({},h),{size:C.payload});case"[CORE] MAIN__VIEW_MODE":{const P=Object.assign({},C.payload);return P.topnavLogo=!(C.payload.sidenavOpened||!C.payload.sidenavOpened&&h.mainView.sidenavOpened),Object.assign(Object.assign({},h),{mainView:Object.assign(Object.assign({},h.mainView),P)})}case"[CORE] GET_PAGE_CONTENT":return t.S.request(h,"content",C,"[CORE] GET_PAGE_CONTENT");case"[CORE] GET_PAGE_CONTENT_SUCCESS":return t.S.success(h,"content",C,"[CORE] GET_PAGE_CONTENT");case"[CORE] GET_PAGE_CONTENT_FAIL":return t.S.fail(h,"content",C,"[CORE] GET_PAGE_CONTENT");case"[CORE] GET_SUBSCRIPTIONS":return t.S.request(h,"pricingPlans",C,"[CORE] GET_SUBSCRIPTIONS");case"[CORE] GET_SUBSCRIPTIONS_SUCCESS":return t.S.success(h,"pricingPlans",C,"[CORE] GET_SUBSCRIPTIONS");case"[CORE] GET_SUBSCRIPTIONS_FAIL":return t.S.fail(h,"pricingPlans",C,"[CORE] GET_SUBSCRIPTIONS");case"[CORE] GET_SAVED_QUIZZES":return t.S.request(h,"savedQuizzes",C,"[CORE] GET_SAVED_QUIZZES");case"[CORE] GET_SAVED_QUIZZES_SUCCESS":return t.S.success(h,"savedQuizzes",C,"[CORE] GET_SAVED_QUIZZES");case"[CORE] GET_SAVED_QUIZZES_FAIL":return t.S.fail(h,"savedQuizzes",C,"[CORE] GET_SAVED_QUIZZES");case"[CORE] GetNews":return t.S.request(h,"news",C,"[CORE] GetNews");case"[CORE] GetNewsSuccess":return t.S.success(h,"news",C,"[CORE] GetNews");case"[CORE] GetNewsFail":return t.S.fail(h,"news",C,"[CORE] GetNews");case"[CORE] SHARE_QUESTION_SUCCESS":case"[CORE] SHARE_QUESTION_FAIL":return Object.assign(Object.assign({},h),{questionShared:C.payload});case"[CORE] ACTIVATE_SUBSCRIPTION":return Object.assign(Object.assign({},h),{selectedSubscription:C.payload.subscription});case"[CORE] SUBSCRIPTION_EVENT_TYPE":return Object.assign(Object.assign({},h),{subscriptionEventType:C.payload.eventType});case"[CORE] PAYMENT_METHOD_CREATED":return Object.assign(Object.assign({},h),{stripePaymentMethodId:C.payload.stripePaymentMethodId});default:return h}}const l=h=>h.app.pricingPlans,p=h=>C=>C.app.pending[h],m=h=>h.app.selectedSubscription,s=h=>h.app.subscriptionEventType,e=h=>h.app.news,c=h=>h.app.content;(0,n.P1)(l,p,h=>C=>C.news.errors[h],h=>C=>C.news.pending[h],e,(h,C)=>Object.assign(Object.assign({},h),{subscriptions:C}))},49083:(Q,f,o)=>{"use strict";o.d(f,{$S:()=>e,A9:()=>r,F6:()=>p,OM:()=>u,Vq:()=>l,_i:()=>s,df:()=>g,ed:()=>c,lX:()=>t,mm:()=>m,rK:()=>i,wt:()=>n});class t{constructor(){this.type="[ACCOUNT] GetUserSubscriptions"}}class n{constructor(h){this.payload=h,this.type="[ACCOUNT] GetUserSubscriptionsSuccess"}}class u{constructor(h){this.payload=h,this.type="[ACCOUNT] GetUserSubscriptionsFail"}}class i{constructor(){this.type="[ACCOUNT] GetUserRecurringSubscriptions"}}class l{constructor(h){this.payload=h,this.type="[ACCOUNT] GetUserRecurringSubscriptionsSuccess"}}class p{constructor(h){this.payload=h,this.type="[ACCOUNT] GetUserRecurringSubscriptionsFail"}}class m{constructor(){this.type="[ACCOUNT] CancelUserSubscriptions"}}class s{constructor(h){this.payload=h,this.type="[ACCOUNT] CancelUserSubscriptionsSuccess"}}
1class r{constructor(h){this.payload=h,this.type="[ACCOUNT] CancelUserSubscriptionsFail"}}class g{constructor(h){this.payload=h,this.type="[ACCOUNT] UserSpecialAction"}}class e{constructor(h){this.payload=h,this.type="[ACCOUNT] UserSpecialActionSuccess"}}class c{constructor(h){this.payload=h,this.type="[ACCOUNT] UserSpecialActionFail"}}},11632:(Q,f,o)=>{"use strict";o.d(f,{$v:()=>g,IE:()=>s,M3:()=>i,Rj:()=>m,np:()=>e});var t=o(30422),n=o(65620);const u={data:null,subscriptions:[],recurringSubscriptions:[],pending:{},errors:{}};function i(c=u,a){var h,C,P,w;switch(a.type){case"[ACCOUNT] GetUserSubscriptions":return t.S.request(c,"subscriptions",a,"[ACCOUNT] GetUserSubscriptions");case"[ACCOUNT] GetUserSubscriptionsSuccess":return t.S.success(c,"subscriptions",a,"[ACCOUNT] GetUserSubscriptions");case"[ACCOUNT] GetUserSubscriptionsFail":return t.S.fail(c,"subscriptions",a,"[ACCOUNT] GetUserSubscriptions");case"[ACCOUNT] GetUserRecurringSubscriptions":return t.S.request(c,"recurringSubscriptions",a,"[ACCOUNT] GetUserSubscriptions");case"[ACCOUNT] GetUserRecurringSubscriptionsSuccess":return t.S.success(c,"recurringSubscriptions",a,"[ACCOUNT] GetUserSubscriptions");case"[ACCOUNT] GetUserRecurringSubscriptionsFail":return t.S.fail(c,"recurringSubscriptions",a,"[ACCOUNT] GetUserSubscriptions");case"[ACCOUNT] CancelUserSubscriptions":return t.S.request(c,"subscriptions",a,"[ACCOUNT] CancelUserSubscriptions");case"[ACCOUNT] CancelUserSubscriptionsSuccess":return Object.assign(Object.assign({},c),{recurringSubscriptions:[]});case"[ACCOUNT] UserUpdate":return t.S.request(c,"data",a,"[ACCOUNT] UserUpdate");case"[ACCOUNT] UserUpdateSuccess":return t.S.success(c,"data",a,"[ACCOUNT] UserUpdate");case"[ACCOUNT] UserUpdateFail":return t.S.fail(c,"data",a,"[ACCOUNT] UserUpdate");case"[AUTH] LoginBasicRefreshSuccess":case"[AUTH] LoginBasicSuccess":{const O=Object.assign(Object.assign({},a.payload.user),{photo:null===(C=null===(h=a.payload.user)||void 0===h?void 0:h.photo)||void 0===C?void 0:C.path});return Object.assign(Object.assign({},c),{data:O})}case"[ACCOUNT] UpdateProfilePhotoSuccess":{const O=Object.assign(Object.assign({},a.payload),{photo:null===(w=null===(P=a.payload)||void 0===P?void 0:P.photo)||void 0===w?void 0:w.path});return Object.assign(Object.assign({},c),{data:O})}default:return c}}const m=c=>c.user.subscriptions,s=c=>c.user.recurringSubscriptions,g=c=>c.user.data,e=(0,n.P1)(g,m,s,(c,a)=>Object.assign(Object.assign({},c),{subscriptions:a}))},2485:(Q,f,o)=>{"use strict";o.d(f,{d:()=>s});var t=o(92340),n=o(54004),u=o(82617),l=o(5e3),p=o(40520);const m=t.N.api;let s=(()=>{class r{constructor(e){this.http=e}getPricingPlans(){return this.http.get(m.baseURL+"/api/v1/subscriptions/plans")}initializeRecurringSubscription(e,c,a){return this.http.put(m.baseURL+"/api/v1/recurring-subscriptions",{subscriptionId:e,stripePaymentMethodId:c,stripeCouponId:a},{observe:"response"}).pipe((0,n.U)(C=>{if(C.status===u.HttpStatus.OK)return C.body;throw new Error("Failed when starting subscription to plan. "+C.body.message)}))}changeRecurringSubscription(e,c,a){return this.http.post(m.baseURL+"/api/v1/recurring-subscriptions/change",{subscriptionId:e,stripePaymentMethodId:c,stripeCouponId:a},{observe:"response"}).pipe((0,n.U)(C=>{if(C.status===u.HttpStatus.OK)return C.body;throw new Error("Failed when changing subscription to plan. "+C.body.message)}))}cancelSubscription(){return this.http.post(m.baseURL+"/api/v1/recurring-subscriptions/cancel-all",null,{observe:"response"})}getRecurringSubscriptions(){return this.http.get(m.baseURL+"/api/v1/recurring-subscriptions",{observe:"response"})}}return r.\u0275fac=function(e){return new(e||r)(l.LFG(p.eN))},r.\u0275prov=l.Yz7({token:r,factory:r.\u0275fac}),r})()},33156:(Q,f,o)=>{"use strict";o.d(f,{U:()=>l});var t=o(11632),n=o(5e3),u=o(65620);function i(p,m){1&p&&(n.TgZ(0,"li")(1,"a",9),n._uU(2,"Admin Panel"),n.qZA()())}let l=(()=>{class p{constructor(s){this.store=s,this.mobile$=this.store.select(r=>r.app.size.xSmall),this.user$=this.store.select(t.np),this.items=[{label:"Question of the day",link:"/dashboard"},{label:"Quick Quiz",link:"/quiz/quick-quiz"},{label:"Custom Quiz",link:"/quiz/custom_creator"}]}ngOnInit(){}ngOnDestroy(){}}
1return p.\u0275fac=function(s){return new(s||p)(n.Y36(u.yh))},p.\u0275cmp=n.Xpm({type:p,selectors:[["qupi-topnav-full"]],decls:18,vars:7,consts:[[1,"top-nav-full"],[1,"logo-wrapper",3,"inlineSVG"],[1,"top-nav-actions"],[1,"top-nav-main"],[4,"ngIf"],["routerLink","/dashboard"],["routerLink","/quiz/quick-quiz"],["routerLink","/quiz/custom_creator"],[3,"items"],["routerLink","/admin"]],template:function(s,r){if(1&s&&(n.TgZ(0,"qupi-group",0),n._UZ(1,"div",1),n.ALo(2,"async"),n.TgZ(3,"qupi-group",2)(4,"ul",3),n.YNc(5,i,3,0,"li",4),n.ALo(6,"async"),n.TgZ(7,"li")(8,"a",5),n._uU(9,"Question of the day"),n.qZA()(),n.TgZ(10,"li")(11,"a",6),n._uU(12,"Quick Quiz"),n.qZA()(),n.TgZ(13,"li")(14,"a",7),n._uU(15,"Custom Quiz"),n.qZA()()(),n._UZ(16,"qupi-person-profile-nav")(17,"qupi-hamburger-menu",8),n.qZA()()),2&s){let g;n.xp6(1),n.Q6J("inlineSVG",n.lcZ(2,3,r.mobile$)?"/assets/images/svg/qupi-logo-mobile.svg":"/assets/images/svg/qupi-logo.svg"),n.xp6(4),n.Q6J("ngIf",null==(g=n.lcZ(6,5,r.user$))?null:g.hasAdminInterface),n.xp6(12),n.Q6J("items",r.items)}},styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%] .logo-wrapper{display:none;padding-right:.625em;align-self:center}@media screen and (max-width: 1200px){[_nghost-%COMP%] .logo-wrapper{display:block}}[_nghost-%COMP%] .logo-wrapper path{fill:#fff!important}[_nghost-%COMP%] qupi-hamburger-menu{margin-top:-10px;display:flex}@media (min-width: 768px){[_nghost-%COMP%] qupi-hamburger-menu{display:none;width:0px}}[_nghost-%COMP%] qupi-person-profile-nav qupi-content{display:none}@media (min-width: 768px){[_nghost-%COMP%] qupi-person-profile-nav qupi-content{display:flex}}[_nghost-%COMP%]{min-width:210px;padding:0 1.25em;display:flex;flex-basis:100%;flex-direction:row}@media (min-width: 1200px){[_nghost-%COMP%]{justify-content:flex-end;min-width:600px;width:initial}}.top-nav-full[_ngcontent-%COMP%]{display:flex;flex-basis:100%;flex-wrap:wrap;align-items:center;justify-content:space-between}@media (min-width: 1200px){.top-nav-full[_ngcontent-%COMP%]{justify-content:flex-end}}.top-nav-full[_ngcontent-%COMP%] .top-nav-actions[_ngcontent-%COMP%]{align-items:center}.top-nav-full[_ngcontent-%COMP%] .top-nav-actions[_ngcontent-%COMP%] .top-nav-main[_ngcontent-%COMP%]{font-family:Lato,sans-serif;list-style-type:none;display:none;padding-left:0}@media (min-width: 768px){.top-nav-full[_ngcontent-%COMP%] .top-nav-actions[_ngcontent-%COMP%] .top-nav-main[_ngcontent-%COMP%]{display:flex}}.top-nav-full[_ngcontent-%COMP%] .top-nav-actions[_ngcontent-%COMP%] .top-nav-main[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-right:1.25em;line-height:1.875em}@media (min-width: 1200px){.top-nav-full[_ngcontent-%COMP%] .top-nav-actions[_ngcontent-%COMP%] .top-nav-main[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-right:1.875em}}.top-nav-full[_ngcontent-%COMP%] .top-nav-actions[_ngcontent-%COMP%] .top-nav-main[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff;text-decoration:none}"]}),p})()},21645:(Q,f,o)=>{"use strict";o.d(f,{B:()=>l});var t=o(92340),n=o(5e3),u=o(40520);const i=t.N.api;let l=(()=>{class p{constructor(s){this.http=s}getUser(){return this.http.get(i.baseURL+"/api/v1/user")}getAllUserData(){return this.http.get(i.baseURL+"/api/v1/user/all-user-data")}updateUser(s){return this.http.post(i.baseURL+"/api/v1/user",s)}updateProfilePhoto(s){return this.http.post(i.baseURL+"/api/v1/user/upload-photo",s)}getOrders(){return this.http.get(i.baseURL+"/api/v1/user/billing")}getInvoiceUrl(s){return this.http.post(i.baseURL+"/api/v1/user/invoice",{userSubscriptionId:s})}getEmailNotifications(){return this.http.get(i.baseURL+"/api/v1/mailchimp/get-current-subscriptions")}updateEmailNotifications(s){return this.http.post(i.baseURL+"/api/v1/mailchimp/update-subscriptions",s)}updateQuestionOfDayNotificationsFrequency(s){return this.http.post(i.baseURL+"/api/v1/user/update-qotd-frequency",{requestedTopic:s})}logout(){return this.http.get(i.baseURL+"/api/v1/auth/logout")}}
1return p.\u0275fac=function(s){return new(s||p)(n.LFG(u.eN))},p.\u0275prov=n.Yz7({token:p,factory:p.\u0275fac}),p})()},10610:(Q,f,o)=>{"use strict";o.d(f,{A5:()=>i,E3:()=>l,IB:()=>C,JJ:()=>P,O_:()=>t,Pc:()=>e,Rf:()=>n,SV:()=>B,_u:()=>s,ar:()=>L,bl:()=>w,c5:()=>c,d:()=>u,dj:()=>x,ge:()=>m,gy:()=>h,iz:()=>a,k1:()=>p,kQ:()=>g,so:()=>r,uN:()=>O,wu:()=>y,xt:()=>M});class t{constructor(b){this.payload=b,this.type="[ACCOUNT] UpdateQuestionOfDayNotificationsFrequency"}}class n{constructor(){this.type="[ACCOUNT] ClearEmailNotifications"}}class u{constructor(){this.type="[ACCOUNT] GetAllUserData"}}class i{constructor(b){this.payload=b,this.type="[ACCOUNT] GetAllUserDataSuccess"}}class l{constructor(b){this.payload=b,this.type="[ACCOUNT] GetAllUserDataFail"}}class p{constructor(){this.type="[ACCOUNT] GetEmailNotifications"}}class m{constructor(b){this.payload=b,this.type="[ACCOUNT] GetEmailNotificationsSuccess"}}class s{constructor(b){this.payload=b,this.type="[ACCOUNT] GetEmailNotificationsFail"}}class r{constructor(b){this.payload=b,this.type="[ACCOUNT] UpdateEmailNotifications"}}class g{constructor(b){this.payload=b,this.type="[ACCOUNT] UpdateEmailNotificationsSuccess"}}class e{constructor(b){this.payload=b,this.type="[ACCOUNT] UpdateEmailNotificationsFail"}}class c{constructor(b){this.payload=b,this.type="[ACCOUNT] UserUpdate"}}class a{constructor(b){this.payload=b,this.type="[ACCOUNT] UserUpdateSuccess"}}class h{constructor(b){this.payload=b,this.type="[ACCOUNT] UserUpdateFail"}}class C{constructor(b){this.payload=b,this.type="[ACCOUNT] UpdateProfilePhoto"}}class P{constructor(b){this.payload=b,this.type="[ACCOUNT] UpdateProfilePhotoSuccess"}}class w{constructor(b){this.payload=b,this.type="[ACCOUNT] UpdateProfilePhotoFail"}}class O{constructor(){this.type="[ACCOUNT] GetUserOrders"}}class M{constructor(b){this.payload=b,this.type="[ACCOUNT] GetUserOrdersSuccess"}}class y{constructor(b){this.payload=b,this.type="[ACCOUNT] GetUserOrdersFail"}}class x{constructor(b){this.payload=b,this.type="[ACCOUNT] PrintInvoice"}}class L{constructor(b){this.payload=b,this.type="[ACCOUNT] PrintInvoiceSuccess"}}class B{constructor(b){this.payload=b,this.type="[ACCOUNT] PrintInvoiceFail"}}},64966:(Q,f,o)=>{"use strict";o.d(f,{w:()=>l});var t=o(92340),n=o(5e3),u=o(40520);const i=t.N.api;let l=(()=>{class p{constructor(s){this.http=s}get(s,r){return this.http.get(r?i.baseURL+"/api/v1/questions/users":i.baseURL+"/api/v1/questions",{params:s})}getByID({id:s}){return this.http.get(i.baseURL+`/api/v1/questions/${s}`)}updateQuestion(s,r){return this.http.patch(i.baseURL+`/api/v1/questions/${s}`,r)}createQuestion(s){return this.http.post(i.baseURL+"/api/v1/questions",s)}removeQuestion(s){return this.http.delete(i.baseURL+`/api/v1/questions/${s}`)}getQuestionFiles({id:s}){return this.http.get(i.baseURL+`/api/v1/questions/${s}/files`)}removeQuestionFile(s,r){return this.http.delete(i.baseURL+`/api/v1/questions/${s}/files/${r}`)}}return p.\u0275fac=function(s){return new(s||p)(n.LFG(u.eN))},p.\u0275prov=n.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"}),p})()},16913:(Q,f,o)=>{"use strict";o.d(f,{y:()=>m});var t=o(70655),n=o(92340),u=o(9469),i=o(5e3),l=o(40520);const p=n.N.api;class m{constructor(r){this.http=r}getFaq(){return this.http.get(`${n.N.wordpressURL}/wp-json/wp/v2/sp_faq`)}sendZendeskMessage(r){return this.http.post(p.baseURL+"/api/v1/contact",r)}getCategories(){return this.http.get(`${n.N.wordpressURL}/wp-json/wp/v2/category`)}}m.\u0275fac=function(r){return new(r||m)(i.LFG(l.eN))},m.\u0275prov=i.Yz7({token:m,factory:m.\u0275fac}),(0,t.gn)([(0,u.q)()],m.prototype,"getFaq",null),(0,t.gn)([(0,u.q)()],m.prototype,"getCategories",null)},34616:(Q,f,o)=>{"use strict";o.d(f,{M:()=>Zt});var t=o(65620),n=o(85821),u=o(55417),i=o(39300),l=o(39841),p=o(54004),m=o(11632),s=o(96034),r=o(33089),g=o(49083),e=o(5e3),c=o(35357),a=o(72591),h=o(20773),C=o(69808),P=o(18857),w=o(77093),O=o(18308);let M=(()=>{class H{constructor(I){this.store=I,this.size$=this.store.select(rt=>rt.app.size)}ngOnInit(){}ngOnDestroy(){}}return H.\u0275fac=function(I){return new(I||H)(e.Y36(t.yh))},H.\u0275cmp=e.Xpm({type:H,selectors:[["qupi-dashboard-header"]],inputs:{user:"user"},decls:2,vars:2,consts:[["fxLayout","row wrap","fxLayoutAlign","space-between",1,"dashboard-header"],[3,"user","editMode"]],template:function(I,rt){1&I&&(e.TgZ(0,"qupi-card",0),e._UZ(1,"qupi-user-profile-details",1),e.qZA()),2&I&&(e.xp6(1),e.Q6J("user",rt.user)("editMode",!1))},dependencies:[P.A,w.xw,w.Wh,O.W],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%]{color:#215ca8}[_nghost-%COMP%] qupi-user-profile-details[_ngcontent-%COMP%]{flex-basis:100%}[_nghost-%COMP%] .dashboard-header[_ngcontent-%COMP%]{display:flex;margin-bottom:.625em}@media (min-width: 426px){[_nghost-%COMP%] .dashboard-header[_ngcontent-%COMP%]{margin-bottom:1.875em}}"]}),H})();var y=o(50590),x=o(21622),L=o(82349),B=o(60957),Z=o(52934),b=o(52842),N=o(59447),K=o(86657),A=o(44619);let $=(()=>{class H{constructor(I,rt){this.store=I,this.dialog=rt}ngOnInit(){}openSavedQuizzesDialog(){this.store.pipe((0,t.Ys)(I=>I.user.subscriptions),(0,y.P)()).subscribe(I=>0===I.length?this.dialog.open(x.O,{panelClass:"qupi-pricing-dialog",backdropClass:"qupi-dialog-blur"}):this.store.dispatch(new s.D2))}}return H.\u0275fac=function(I){return new(I||H)(e.Y36(t.yh),e.Y36(L.uw))},H.\u0275cmp=e.Xpm({type:H,selectors:[["qupi-dashboard-quizzes"]],decls:37,vars:15,consts:[[1,"dashboard-quizzes"],[1,"dashboard-quizzes-card",3,"padding"],[1,"dashboard-quizzes-card-container"],[1,"dashboard-quizzes-card-header"],[3,"size","fontWeight"],["qupiHeadingUnderline","#43b3f7",1,"dashboard-quizzes-underlined-span"],["inlineSVG","/assets/images/svg/rev-clock.svg",1,"card-icon"],[1,"dashboard-quizzes-card-content",3,"size"],["width","220px","routerLink","/quiz/quick-quiz",3,"theme"],["inlineSVG","/assets/images/svg/cu
1stom-quiz.svg",1,"card-icon"],["width","220px","routerLink","/quiz/custom_creator",3,"theme"],["inlineSVG","/assets/images/svg/saved.svg",1,"card-icon"],["width","220px",3,"theme","onClick"]],template:function(I,rt){1&I&&(e.TgZ(0,"qupi-group",0)(1,"qupi-card",1)(2,"qupi-group",2)(3,"qupi-group",3)(4,"qupi-heading",4)(5,"span",5),e._uU(6," Quick "),e.qZA(),e._uU(7," Quiz "),e.qZA(),e._UZ(8,"span",6),e.qZA(),e.TgZ(9,"qupi-content",7),e._uU(10," Practice your medical knowledge with a ready-made quiz on your chosen topic "),e.qZA(),e.TgZ(11,"qupi-button",8),e._uU(12," Start Quiz"),e.qZA()()(),e.TgZ(13,"qupi-card",1)(14,"qupi-group",2)(15,"qupi-group",3)(16,"qupi-heading",4)(17,"span",5),e._uU(18," Custom "),e.qZA(),e._uU(19," Quiz "),e.qZA(),e._UZ(20,"span",9),e.qZA(),e.TgZ(21,"qupi-content",7),e._uU(22," Build your own quiz that reflects your chosen difficulty and study goals "),e.qZA(),e.TgZ(23,"qupi-button",10),e._uU(24," Start Quiz"),e.qZA()()(),e.TgZ(25,"qupi-card",1)(26,"qupi-group",2)(27,"qupi-group",3)(28,"qupi-heading",4)(29,"span",5),e._uU(30," Saved "),e.qZA(),e._uU(31," Quiz "),e.qZA(),e._UZ(32,"span",11),e.qZA(),e.TgZ(33,"qupi-content",7),e._uU(34," Didn\u2019t complete the last quiz you started? Pick up where you left off "),e.qZA(),e.TgZ(35,"qupi-button",12),e.NdJ("onClick",function(){return rt.openSavedQuizzesDialog()}),e._uU(36," Start Quiz"),e.qZA()()()()),2&I&&(e.xp6(1),e.Q6J("padding","md"),e.xp6(3),e.Q6J("size","lg")("fontWeight","extra-bold"),e.xp6(5),e.Q6J("size","sm"),e.xp6(2),e.Q6J("theme","manilla"),e.xp6(2),e.Q6J("padding","md"),e.xp6(3),e.Q6J("size","lg")("fontWeight","extra-bold"),e.xp6(5),e.Q6J("size","sm"),e.xp6(2),e.Q6J("theme","manilla"),e.xp6(2),e.Q6J("padding","md"),e.xp6(3),e.Q6J("size","lg")("fontWeight","extra-bold"),e.xp6(5),e.Q6J("size","sm"),e.xp6(2),e.Q6J("theme","manilla"))},dependencies:[B.r,P.A,Z.B,b.S,N.k,K.m,A.d$,c.rH],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}@media screen and (max-width: 1200px){[_nghost-%COMP%] qupi-button{width:100%!important}[_nghost-%COMP%] qupi-button .mat-button{width:100%!important}}[_nghost-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:40px;height:40px;width:40px;margin-right:-10px}[_nghost-%COMP%] .dashboard-quizzes[_ngcontent-%COMP%]{margin-bottom:.625em;flex-direction:column;flex-wrap:nowrap}@media (min-width: 768px){[_nghost-%COMP%] .dashboard-quizzes[_ngcontent-%COMP%]{flex-direction:row;justify-content:space-between;margin-bottom:1.875em}}[_nghost-%COMP%] .dashboard-quizzes-card[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;background-image:linear-gradient(270deg,#1da1f2 0%,#1c5ba9 100%);color:#fff;margin-bottom:.625em;width:100%;flex-direction:column}@media (min-width: 768px){[_nghost-%COMP%] .dashboard-quizzes-card[_ngcontent-%COMP%]{flex-direction:row;width:33.3333333%;max-width:33.3333333%;margin-bottom:0;margin-right:1.25em;flex-basis:33%}[_nghost-%COMP%] .dashboard-quizzes-card[_ngcontent-%COMP%]:nth-child(3){margin-right:0}}[_nghost-%COMP%] .dashboard-quizzes-card[_ngcontent-%COMP%]:nth-child(3){margin-bottom:0}[_nghost-%COMP%] .dashboard-quizzes-card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}@media (min-width: 768px){[_nghost-%COMP%] .dashboard-quizzes-card-header[_ngcontent-%COMP%] qupi-heading[_ngcontent-%COMP%]{flex-basis:70%;align-items:center}[_nghost-%COMP%] .dashboard-quizzes-card-header[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%]{flex-basis:30%}}[_nghost-%COMP%] .dashboard-quizzes-card-header[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center}[_nghost-%COMP%] .dashboard-quizzes-card-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between}@media screen and (min-width: 1201px){[_nghost-%COMP%] .dashboard-quizzes-card-container[_ngcontent-%COMP%] qupi-button[_ngcontent-%COMP%]{align-self:center}}[_nghost-%COMP%] .dashboard-quizzes-card-content[_ngcontent-%COMP%]{margin-top:1.25em;margin-bottom:1.875em}[_nghost-%COMP%] .dashboard-quizzes-underlined-span[_ngcontent-%COMP%]{margin-right:5px}"]}),H})();var W=o(61276),_t=o(59595),k=o(91437);const ct=function(){return["/contact"]};let at=(()=>{class H{constructor(I,rt){this.dialog=I,this.comingSoonService=rt}openDialog(){this.comingSoonService.openDialog()}ngOnInit(){}}return H.\u0275fac=function(I){return new(I||H)(e.Y36(L.uw),e.Y36(W.t))},H.\u0275cmp=e.Xpm({type:H,selectors:[["qupi-dashboard-footer-header"]],decls:11,vars:3,consts:[[1,"dashboard-footer-wrapper"],[1,"dashboard-footer-header"],[1,"dashboard-footer-feedback"],["size","lg","fontWeight","extra-bold"],[3,"routerLink","theme"]],template:function(I,rt){1&I&&(e.TgZ(0,"qupi-group",0)(1,"qupi-group",1),e._UZ(2,"qupi-submit-question-card")(3,"qupi-affiliate-program-card"),e.qZA(),e.TgZ(4,"qupi-group",2)(5,"qupi-card")(6,"qupi-group")(7,"qupi-heading",3),e._uU(8,"Give us your feedback"),e.qZA(),e.TgZ(9,"qupi-button",4),e._uU(10,"I want to help!"),e.qZA()()()()()),2&I&&(e.xp6(9),e.Q6J("routerLink",e.DdM(2,ct))("theme","mid-blue-reversed"))},dependencies:[B.r,P.A,Z.B,K.m,_t.i,k.b,c.rH],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%] qupi-submit-question-card{display:flex;flex-basis:50%}@media (min-width: 768px){[_nghost-%COMP%] qupi-submit-question-card{margin-right:1.875em;margin-bottom:0}}[_nghost-%COMP%] qupi-submit-question-card .submit-question{flex-basis:100%!important}[_nghost-%COMP%] qupi-affiliate-program-card{display:flex;flex-basis:50%;margin-bottom:.625em}@media (min-width: 768px){[_nghost-%COMP%] qupi-affiliate-program-card{margin-bottom:0}}[_nghost-%COMP%] qupi-affiliate-program-card .affiliate-program{flex-basis:100%!important}[_nghost-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:40px;height:40px;width:40px;margin-right:.3125em}[_nghost-%COMP%] qupi-submit-question-card[_ngcontent-%COMP%]{margin-bottom:.625em}@media (min-width: 768px){[_nghost-%COMP%] qupi-submit-question-card[_ngcontent-%COMP%]{margin-bottom:0}}[_nghost-%COMP%] .dashboard-footer-wrapper[_ngcontent-%COMP%]{min-height:380px;flex-direction:column}[_nghost-%COMP%] .dashboard-footer-header[_ngcontent-%COMP%]{margin-bottom:0;flex-direction:column;flex-basis:100%}@media (min-width: 768px){[_nghost-%COMP%] .dashboard-footer-header[_ngcontent-%COMP%]{flex-direction:row;flex-wrap:nowrap;margin-bottom:1.875em}}[_nghost-%COMP%] .dashboard-footer-header-card[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;margin-bottom:1.875em;flex-basis:50%}@media (min-width: 768px){[_nghost-%COMP%] .dashboard-footer-header-card[_ngcontent-%COMP%]{margin-bottom:0}[_nghost-%COMP%] .dashboard-footer-header-card[_ngcontent-%COMP%]:nth-child(1){margin-right:1.875em}}[_nghost-%COMP%] .dashboard-footer-header-card-header[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center}[_nghost-%COMP%] .dashboard-footer-header-card-container[_ngcontent-%COMP%]{flex-basis:100%;display:flex;flex-direction:column;justify-content:space-between}@media (min-width: 1440px){[_nghost-%COMP%] .dashboard-footer-header-card-container[_ngcontent-%COMP%] qupi-button[_ngcontent-%COMP%]{width:215px}}[_nghost-%COMP%] .dashboard-footer-header-card-footer[_ngcontent-%COMP%]{flex-direction:column}@media (min-width: 1440px){[_nghost-%COMP%] .dashboard-footer-header-card-footer[_ngcontent-%COMP%]{flex-direction:row;justify-content:space-between;align-items:flex-end}}[_nghost-%COMP%] .dashboard-footer-header-card-content[_ngcontent-%COMP%]{margin-top:1.25em;margin-bottom:1.25em}@media (min-width: 1440px){[_nghost-%COMP%] .dashboard-footer-header-card-content[_ngcontent-%COMP%]{width:225px}}[_nghost-%COMP%] .dashboard-footer-header-underlined-span[_ngcontent-%COMP%]{margin-right:5px}[_nghost-%COMP%] .dashboard-footer-feedback[_ngcontent-%COMP%]{flex-basis:50%;min-height:250px}@media (max-width: 768px){[_nghost-%COMP%] .dashboard-footer-feedback[_ngcontent-%COMP%]{flex-basis:100%}}[_nghost-%COMP%] .dashboard-footer-feedback[_ngcontent-%COMP%] qupi-card[_ngcontent-%COMP%]{flex-basis:100%;align-items:center}[_nghost-%COMP%] .dashboard-footer-feedback[_ngcontent-%COMP%] qupi-card[_ngcontent-%COMP%] qupi-group[_ngcontent-%COMP%]{flex-basis:100%;align-items:center;justify-content:center;flex-direction:column}[_nghost-%COMP%] .dashboard-footer-feedback[_ngcontent-%COMP%] qupi-card[_ngcontent-%COMP%] qupi-group[_ngcontent-%COMP%] qupi-heading[_ngcontent-%COMP%]{margin-bottom:1.875em}[_nghost-%COMP%] .dashboard-footer-feedback[_ngcontent-%COMP%] qupi-card[_ngcontent-%COMP%] qupi-group[_ngcontent-%COMP%] qupi-button[_ngcontent-%COMP%]{width:215px}"]}),H})();function et(H,ut){1&H&&(e.ynx(0),e._UZ(1,"qupi-dashboard-footer-header"),e.BQk())}let ot=(()=>{class H{constructor(I){this.store=I,this.size$=this.store.select(rt=>rt.app.size)}ngOnInit(){}}return H.\u0275fac=function(I){return new(I||H)(e.Y36(t.yh))},H.\u0275cmp=e.Xpm({type:H,selectors:[["qupi-dashboard-footer"]],decls:2,vars:3,consts:[[4,"ngIf"]],template:function(I,rt){1&I&&(e.YNc(0,et,2,0,"ng-container",0),e.ALo(1,"async")),2&I&&e.Q6J("ngIf",e.lcZ(1,1,rt.size$))},dependencies:[C.O5,at,C.Ov],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%]{margin-top:-5px}[_nghost-%COMP%] qupi-dashboard-footer-review[_ngcontent-%COMP%]{flex-basis:100%}"]}),H})();var X=[{name:"done",value:9324},{name:"to do",value:1e3}],z=o(2557),D=o(59131),Dt=o(4834),Ot=o(84196),Ct=o(60639);function Mt(H,ut){if(1&H&&(e.TgZ(0,"qupi-group",18)(1,"qupi-content",13),e._uU(2,"Already attempted "),e._UZ(3,"br"),e._uU(4),e.qZA(),e._UZ(5,"qupi-pie-chart",19),e.qZA()),2&H){const I=e.oxw();e.xp6(1),e.Q6J("size","sm"),e.xp6(3),e.hij(" questions out of ",I.statistics.attempted.overall.data.of,""),e.xp6(1),e.Q6J("displayAll",!1)("chartData",I.statistics.attempted.overall.data)}}function It(H,ut){if(1&H&&e._UZ(0,"qupi-line-chart",20),2&H){const I=e.oxw();e.Q6J("lineHeight","5px")("lineValue",I.statistics.firstTry.overall.data)}}const Bt=function(H,ut){return[H,ut]},zt=function(H,ut){return{chartData:H,chartFilterDate:ut}};function $t(H,ut){if(1&H){const I=e.EpF();e.TgZ(0,"qupi-linear-chart-responsive",21),e.NdJ("filterChange",function(Pt){e.CHM(I);const St=e.oxw();return e.KtG(St.lineFilters(Pt))}),e.qZA()}if(2&H){const I=e.oxw();e.Q6J("lineChartData",e.WLB(4,zt,e.WLB(1,Bt,I.statistics.progress.overall.data,I.statistics.average.progress.data),I.statistics.progress.overall.selectedDate))}}let ee=(()=>{class H{constructor(){this.setFilters=new e.vpe,this.redirect=new e.vpe,this.view=[150,150],this.showLegend=!0,this.colorScheme={domain:["#43b3f7","#dae4f5"]},this.showLabels=!0,this.explodeSlices=!1,this.doughnut=!0,Object.assign(this,{single:X})}onSelect(I){Ct.log(I)}ngOnInit(){}lineFilters(I){this.setFilters.emit({from:r.B.initialDate(I),to:r.B.initialDate()})}}return H.\u0275fac=function(I){return new(I||H)},H.\u0275cmp=e.Xpm({type:H,selectors:[["qupi-dashboard-stats"]],inputs:{statistics:"statistics"},outputs:{setFilters:"setFilters",redirect:"redirect"},decls:28,vars:10,consts:[[1,"dashboard-stats",3,"padding"],[1,"dashboard-stats-wrapper"],[1,"dashboard-stats-header"],[1,"dashboard-stats-heading"],["inlineSVG","/assets/images/svg/stats.svg",2,"margin-right","10px"],[3,"fontWeight"],[1,"dashboard-stats-showmore"],[3,"size","click"],[1,"dashboard-stats-content"],[1,"dashboard-stats-content-questions"],["class","stats-block-group",4,"ngIf"],[3,"vertical"],[1,"stats-block-group","margin-fix"],[3,"size"],[3,"lineHeight","lineValue",4,"ngIf"],[1,"dashboard-stats-content-progress"],[1,"stats-content-header"],[3,"lineChartData","filterChange",4,"ngIf"],[1,"stats-block-group"],[3,"displayAll","chartData"],[3,"lineHeight","lineValue"],[3,"lineChartData","filterChange"]],template:function(I,rt){1&I&&(e.TgZ(0,"qupi-card",0)(1,"qupi-group",1)(2,"qupi-group",2)(3,"qupi-group",3),e._UZ(4,"span",4),e.TgZ(5,"qupi-heading",5),e._uU(6," Your statistics "),e.qZA()(),e.TgZ(7,"qupi-group",6)(8,"qupi-content",7),e.NdJ("click",function(){return rt.redirect.emit()}),e._uU(9," Show more "),e.qZA()()(),e.TgZ(10,"qupi-group",8)(11,"qupi-group",9),e.YNc(12,Mt,6,4,"qupi-group",10),e._UZ(13,"mat-divider",11),e.TgZ(14,"qupi-group",12)(15,"qupi-content",13),e._uU(16,"Questions answered "),e._UZ(17,"br"),e._uU(18," correctly on the first try"),e.qZA(),e.YNc(19,It,1,2,"qupi-line-chart",14),e.qZA()(),e._UZ(20,"mat-divider",11),e.TgZ(21,"qupi-group",15)(22,"qupi-group",16)(23,"qupi-content",13),e._uU(24,"Progress over time "),e._UZ(25,"br"),e._uU(26," average score."),e.qZA()(),e.YNc(27,$t,1,7,"qupi-linear-chart-responsive",17),e.qZA()()()()),2&I&&(e.Q6J("padding","md"),e.xp6(5),e.Q6J("fontWeight","bold"),e.xp6(3),e.Q6J("size","md"),e.xp6(4),e.Q6J("ngIf",rt.statistics.attempted.overall.data),e.xp6(1),e.Q6J("vertical",!0),e.xp6(2),e.Q6J("size","sm"),e.xp6(4),e.Q6J("ngIf",rt.statistics.firstTry.overall.data),e.xp6(1),e.Q6J("vertical",!0),e.xp6(3),e.Q6J("size","sm"),e.xp6(4),e.Q6J("ngIf",rt.statistics.progress.overall.data&&rt.statistics.average.progress.data))},dependencies:[P.A,Z.B,b.S,K.m,z.Q,D.J,Dt.d,Ot.D,C.O5,A.d$],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%] .stats-block-group.margin-fix qupi-content span{margin:0 1.875em}[_nghost-%COMP%]{margin-bottom:.625em;display:flex}[_nghost-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar{height:5px}[_nghost-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar-t
1rack{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3)}[_nghost-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:#1da1f2}[_nghost-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar:vertical{display:none}[_nghost-%COMP%] qupi-line-chart[_ngcontent-%COMP%]{width:50%}@media (min-width: 426px){[_nghost-%COMP%]{margin-bottom:1.875em}}[_nghost-%COMP%] .dashboard-stats[_ngcontent-%COMP%]{min-height:309px;display:flex;flex-wrap:wrap;width:100%}[_nghost-%COMP%] .dashboard-stats-wrapper[_ngcontent-%COMP%]{overflow:auto;padding-bottom:1.25em;flex-basis:100%}[_nghost-%COMP%] .dashboard-stats-header[_ngcontent-%COMP%]{justify-content:space-between;margin-bottom:1.875em;flex-basis:100%}[_nghost-%COMP%] .dashboard-stats-heading[_ngcontent-%COMP%]{align-items:center}[_nghost-%COMP%] .dashboard-stats-heading[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:.3125em;margin-top:-6px;margin-left:-10px}[_nghost-%COMP%] .dashboard-stats-content[_ngcontent-%COMP%]{min-width:1024px;width:100%;flex-basis:100%;flex-shrink:1;display:flex;flex-wrap:nowrap;overflow-x:auto}@media (min-width: 1200px){[_nghost-%COMP%] .dashboard-stats-content[_ngcontent-%COMP%]{min-width:initial}}[_nghost-%COMP%] .dashboard-stats-content-questions[_ngcontent-%COMP%]{width:50%;flex-wrap:nowrap!important;flex-basis:50%}[_nghost-%COMP%] .dashboard-stats-content-questions[_ngcontent-%COMP%] .stats-block-group[_ngcontent-%COMP%]{flex-direction:column;flex-basis:49%;display:flex;align-items:center;justify-content:flex-start}[_nghost-%COMP%] .dashboard-stats-content-questions[_ngcontent-%COMP%] .stats-block-group[_ngcontent-%COMP%] qupi-content[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}[_nghost-%COMP%] .dashboard-stats-content-questions[_ngcontent-%COMP%] .stats-block-group[_ngcontent-%COMP%] qupi-content[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin:0 1.875em}[_nghost-%COMP%] .dashboard-stats-content-questions[_ngcontent-%COMP%] .stats-block-group[_ngcontent-%COMP%] qupi-line-chart[_ngcontent-%COMP%]{margin:auto}[_nghost-%COMP%] .dashboard-stats-content-progress[_ngcontent-%COMP%]{width:50%}[_nghost-%COMP%] .dashboard-stats-content-progress[_ngcontent-%COMP%] qupi-content[_ngcontent-%COMP%]{margin-left:1.25em}[_nghost-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:32px;height:32px;width:32px}.dashboard-stats-showmore[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),H})();var V=o(81786),Gt=o(89259),Tt=o(28208),qt=o(40048),Nt=o(88849),Lt=o(68522),Ht=o(42295);function Vt(H,ut){1&H&&e._uU(0,"days")}function Xt(H,ut){1&H&&e._uU(0,"day")}function tt(H,ut){1&H&&e._uU(0,"days")}function mt(H,ut){if(1&H){const I=e.EpF();e.ynx(0),e.TgZ(1,"qupi-quiz-answer",33),e.NdJ("headerClick",function(){const St=e.CHM(I).$implicit,xt=e.oxw(2);return e.KtG(xt.onAnswerSelect(St.id))}),e._UZ(2,"qupi-quiz-question-explanation",34),e.ALo(3,"async"),e.qZA(),e.BQk()}if(2&H){const I=ut.$implicit,rt=ut.index,Pt=e.oxw(2);e.xp6(1),e.Q6J("index",rt)("isAnswered",Pt.quizQuestion.answer)("isExpanded",(I.correct||!1===I.correct)&&(null==I?null:I.explanation))("answerText",I.text)("isCorrect",null==I?null:I.correct)("isSelected",I.id===Pt.selectedAnswerID),e.xp6(1),e.Q6J("loading",e.lcZ(3,10,Pt.answerSubmitLoader$))("showExplanation",I.showExplanation)("explanation",null==I?null:I.explanation)("answerId",I.id)}}function j(H,ut){if(1&H){const I=e.EpF();e.ynx(0),e._UZ(1,"qupi-quiz-question-description",27),e.TgZ(2,"qupi-group",28),e.YNc(3,mt,4,12,"ng-container",29),e.qZA(),e.TgZ(4,"qupi-group",30)(5,"qupi-button",31),e.NdJ("click",function(){e.CHM(I);const Pt=e.oxw();return e.KtG(Pt.reportProblem(null==Pt.quizQuestion?null:Pt.quizQuestion.question))}),e._uU(6,"Report a problem"),e.qZA(),e.TgZ(7,"qupi-button",32),e.NdJ("onClick",function(){e.CHM(I);const Pt=e.oxw();return e.KtG(Pt.submitAnswer(Pt.selectedAnswerID))}),e._uU(8,"Submit Answer"),e.qZA()(),e.BQk()}if(2&H){const I=e.oxw();e.xp6(1),e.Q6J("description",null==I.quizQuestion.question?null:I.quizQuestion.question.text)("files",null==I.quizQuestion.question?null:I.quizQuestion.question.files),e.xp6(2),e.Q6J("ngForOf",I.quizQuestion.question.answers),e.xp6(4),e.Q6J("disabled",!I.selectedAnswerID)}}function lt(H,ut){if(1&H){const I=e.EpF();e.TgZ(0,"qupi-group",35),e._UZ(1,"div",36),e.TgZ(2,"qupi-content",37),e._uU(3," Your already answered question of the day. Try again tommorow! "),e.qZA(),e.TgZ(4,"qupi-button",38),e.NdJ("click",function(){e.CHM(I);const Pt=e.oxw();return e.KtG(Pt.showAnswers(Pt.quizQuestion))}),e._uU(5," See question again "),e.qZA()()}2&H&&(e.xp6(1),e.Q6J("inlineSVG","/assets/images/svg/q-day.svg"))}let gt=(()=>{class H{constructor(I,rt,Pt){this.store=I,this.dialog=rt,this.fbShare=Pt,this.answerSubmitLoader$
1=this.store.select((0,u.fQ)()),this.lineValue={count:0,of:0},this.correctStreak=0,this.isTrialOnly=!1,this.questionOfDay$=this.store.select(St=>St.dashboard.questionOfDay),this._subscriptions=[]}set statistics(I){this.lineValue={count:I.answered.questions,of:I.answered.of},I.streak&&(this.correctStreak=I.streak)}get subscriptions(){return this._subscriptions}set subscriptions(I){this.isTrialOnly=!!I.find(rt=>rt.subscription.isTrial)&&1===I.length,this._subscriptions=I}reportProblem(I){this.store.dispatch(new s.Ip(I))}showAnswers(I){I.isViewed=!1}onAnswerSelect(I){this.quizQuestion.answer||(this.selectedAnswerID=I)}submitAnswer(I){this.store.dispatch(new n.ox({answerID:I})),this.selectedAnswerID=null}showExplanation(I){this.store.dispatch(new n.eZ({answerID:I}))}sendQuestion(){const I=(0,V.qI)(this.quizQuestion.question);this.fbShare.openShareDialog("small",I,window.location.host+"/api/v1/share/question/"+this.quizQuestion.question.id,"none",{type:"[CORE] SHARE_QUESTION",payload:{questionId:this.quizQuestion.question.id,isLeaderboard:!1}})}ngOnInit(){}}return H.\u0275fac=function(I){return new(I||H)(e.Y36(t.yh),e.Y36(L.uw),e.Y36(Gt.x))},H.\u0275cmp=e.Xpm({type:H,selectors:[["qupi-question-of-day"]],inputs:{quizQuestion:"quizQuestion",submittedAnswerID:"submittedAnswerID",pending:"pending",statistics:"statistics",subscriptions:"subscriptions"},decls:37,vars:9,consts:[[1,"question-day"],[1,"question-card"],[1,"question-stats"],[1,"main-question-heading"],["size","xlg","fontWeight","extra-bold"],["qupiHeadingUnderline",""],[1,"qofday-heading"],[3,"questionAnswers","questionDifficulty"],[1,"question-graph"],[1,"answered-correct-heading"],[1,"graph-wrap"],[3,"pending"],["lineHeight","5px",2,"width","100%",3,"lineValue"],[1,"question-streak"],[1,"question-streak-content"],[1,"heading-wrapper"],["size","xlg","fontWeight","bold","textAlign","center"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","=1"],["ngPluralCase","other"],[1,"question-share"],["theme","inversed",3,"onClick"],[1,"mat-divider-custom"],[1,"question-details"],[4,"ngIf"],["class","question-details question-details-viewed",4,"ngIf"],[3,"description","files"],[1,"question-answers"],[4,"ngFor","ngForOf"],[1,"actions-buttons"],["theme","mid-blue-borderless",3,"click"],["theme","dodger-blue",3,"disabled","onClick"],[3,"index","isAnswered","isExpanded","answerText","isCorrect","isSelected","headerClick"],[1,"answerExplanation",3,"loading","showExplanation","explanation","answerId"],[1,"question-details","question-details-viewed"],[1,"item--icon",3,"inlineSVG"],[1,"question-details-viewed-content"],["width","220px","theme","mid-blue-reversed",3,"click"]],template:function(I,rt){1&I&&(e.TgZ(0,"qupi-group",0)(1,"qupi-card",1)(2,"qupi-group",2)(3,"qupi-group",3)(4,"qupi-heading",4),e._uU(5," Question "),e.qZA(),e.TgZ(6,"qupi-heading",4),e._uU(7," of the "),e.TgZ(8,"span",5),e._uU(9," day "),e.qZA()(),e.TgZ(10,"qupi-content",6),e._uU(11,"Test your medical skills with a quick, multiple choice question"),e.qZA()(),e._UZ(12,"qupi-question-difficulty",7),e.TgZ(13,"qupi-group",8)(14,"qupi-content",9),e._uU(15,"Questions answered correctly:"),e.qZA(),e.TgZ(16,"qupi-group",10)(17,"qupi-pending-wrapper",11),e._UZ(18,"qupi-line-chart",12),e.qZA()()(),e.TgZ(19,"qupi-group",13)(20,"qupi-content",14),e._uU(21,"Your correct streak:"),e.qZA(),e.TgZ(22,"qupi-group",15)(23,"qupi-heading",16),e._uU(24),e.ynx(25,17),e.YNc(26,Vt,1,0,"ng-template",18),e.YNc(27,Xt,1,0,"ng-template",19),e.YNc(28,tt,1,0,"ng-template",20),e.BQk(),e.qZA()()(),e.TgZ(29,"qupi-group",21)(30,"qupi-button",22),e.NdJ("onClick",function(){return rt.sendQuestion()}),e._uU(31,"Share this question"),e.qZA()()(),e._UZ(32,"div",23),e.TgZ(33,"qupi-group",24)(34,"qupi-pending-wrapper",11),e.YNc(35,j,9,4,"ng-container",25),e.YNc(36,lt,6,1,"qupi-group",26),e.qZA()()()()),2&I&&(e.xp6(12),e.Q6J("questionAnswers",rt.quizQuestion.question.answerCount)("questionDifficulty",rt.quizQuestion.question.difficulty),e.xp6(5),e.Q6J("pending",null==rt.pending?null:rt.pending.questionOfDayStats),e.xp6(1),e.Q6J("lineValue",rt.lineValue),e.xp6(6),e.hij(" ",rt.correctStreak," "),e.xp6(1),e.Q6J("ngPlural",rt.correctStreak),e.xp6(9),e.Q6J("pending",null==rt.pending?null:rt.pending.questionOfDay),e.xp6(1),e.Q6J("ngIf",!rt.quizQuestion.isViewed),e.xp6(1),e.Q6J("ngIf",rt.quizQuestion.isViewed))}
1,dependencies:[Tt.T,qt.C,B.r,P.A,Z.B,b.S,N.k,K.m,Ot.D,Nt.w,C.sg,C.O5,C.iq,C.zE,A.d$,Lt.M,Ht.L,C.Ov],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}.question-day[_ngcontent-%COMP%]{margin-bottom:.625em}@media (min-width: 768px){.question-day[_ngcontent-%COMP%]{margin-bottom:1.875em}}.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%]{flex-direction:column;max-width:100%;width:100%;flex-wrap:nowrap}@media (min-width: 768px){.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%]{padding:1.875em}}@media (min-width: 1440px){.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%]{flex-direction:row}}.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%] .question-stats[_ngcontent-%COMP%]{min-width:240px;max-width:100%;flex-direction:column;margin-bottom:1.875em}@media (min-width: 768px){.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%] .question-stats[_ngcontent-%COMP%]{flex-direction:row;flex-wrap:nowrap;justify-content:space-between;margin-top:0}}@media (min-width: 1440px){.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%] .question-stats[_ngcontent-%COMP%]{max-width:240px;justify-content:flex-start;flex-direction:column;padding-right:1.875em;margin:0;flex-wrap:wrap}}@media (min-width: 1440px){.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%] .mat-divider-custom[_ngcontent-%COMP%]{display:flex;height:100%;max-width:1px;width:100%;background-color:#dae4f5}}.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%] .main-question-heading[_ngcontent-%COMP%]{justify-content:center;margin-bottom:4em;max-height:75px;margin-top:-10px}@media (min-width: 768px){.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%] .main-question-heading[_ngcontent-%COMP%]{justify-content:flex-start}}@media (max-width: 768px){.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%] .main-question-heading[_ngcontent-%COMP%] qupi-heading[_ngcontent-%COMP%]:first-child{margin-right:6px}}@media (min-width: 768px){.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%] .main-question-heading[_ngcontent-%COMP%]{max-width:170px;flex-basis:33%;margin-right:1.25em}}@media (min-width: 1440px){.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%] .main-question-heading[_ngcontent-%COMP%]{max-width:220px;margin-bottom:7em;margin-right:0;flex-basis:auto}}.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%] .question-graph[_ngcontent-%COMP%]{flex-direction:column}@media (max-width: 768px){.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%] .question-graph[_ngcontent-%COMP%]{margin-bottom:3em}.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%] .question-graph[_ngcontent-%COMP%] .graph-wrap[_ngcontent-%COMP%] qupi-pending-wrapper[_ngcontent-%COMP%] qupi-line-chart[_ngcontent-%COMP%]{max-width:210px}}@media (min-width: 768px){.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%] .question-graph[_ngcontent-%COMP%]{flex-direction:row;max-width:210px;flex-basis:33%;margin-right:1.25em}}@media (min-width: 1440px){.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%] .question-graph[_ngcontent-%COMP%]{flex-basis:auto;margin-right:0;flex-direction:column;margin-bottom:3em;max-width:initial}}
1.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%] .question-graph[_ngcontent-%COMP%] .graph-wrap[_ngcontent-%COMP%]{align-items:center;justify-content:center}.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%] .question-graph[_ngcontent-%COMP%] qupi-content[_ngcontent-%COMP%]{margin-bottom:1.875em;align-self:flex-start}.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%] .question-streak[_ngcontent-%COMP%]{flex-direction:column}@media (max-width: 768px){.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%] .question-streak[_ngcontent-%COMP%]{margin-bottom:3em}}@media (min-width: 768px){.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%] .question-streak[_ngcontent-%COMP%]{max-width:200px;flex-basis:33%;flex-wrap:nowrap}}@media (min-width: 1440px){.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%] .question-streak[_ngcontent-%COMP%]{margin-bottom:3em;flex-basis:auto;max-width:initial}}.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%] .question-streak[_ngcontent-%COMP%] .question-streak-content[_ngcontent-%COMP%]{margin-bottom:.625em}.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%] .question-streak[_ngcontent-%COMP%] .heading-wrapper[_ngcontent-%COMP%]{justify-content:center;flex-basis:100%}@media (min-width: 768px){.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%] .question-streak[_ngcontent-%COMP%] .heading-wrapper[_ngcontent-%COMP%]{margin-top:.625em}}@media (min-width: 1440px){.question-day[_ngcontent-%COMP%] .question-card[_ngcontent-%COMP%] .question-streak[_ngcontent-%COMP%] .heading-wrapper[_ngcontent-%COMP%]{justify-content:center}}.question-day[_ngcontent-%COMP%] .question-details[_ngcontent-%COMP%]{padding-top:1.25em;width:100%}@media (min-width: 1440px){.question-day[_ngcontent-%COMP%] .question-details[_ngcontent-%COMP%]{margin-left:1.875em}}.question-day[_ngcontent-%COMP%] .question-details-viewed[_ngcontent-%COMP%]{padding-top:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.question-day[_ngcontent-%COMP%] .question-details-viewed[_ngcontent-%COMP%] .item--icon[_ngcontent-%COMP%], .question-day[_ngcontent-%COMP%] .question-details-viewed[_ngcontent-%COMP%] qupi-button[_ngcontent-%COMP%]{margin-left:-15px}@media (min-width: 1440px){.question-day[_ngcontent-%COMP%] .question-details-viewed[_ngcontent-%COMP%]{margin-top:-1.25em}}.question-day[_ngcontent-%COMP%] .question-details-viewed-content[_ngcontent-%COMP%]{max-width:240px;margin-top:1.875em;margin-bottom:1.875em}.question-day[_ngcontent-%COMP%] .actions-buttons[_ngcontent-%COMP%]{flex-basis:100%;justify-content:flex-end;flex-direction:column;flex-wrap:nowrap;align-items:center;align-self:flex-end}@media (min-width: 1440px){.question-day[_ngcontent-%COMP%] .actions-buttons[_ngcontent-%COMP%]{flex-direction:row}}.question-day[_ngcontent-%COMP%] .actions-buttons[_ngcontent-%COMP%] qupi-button[_ngcontent-%COMP%]{width:200px;margin-bottom:1.25em}.question-answers[_ngcontent-%COMP%]{margin-top:1.875em;margin-bottom:1.25em;width:100%;flex-wrap:wrap;flex-direction:column}.question-answers[_ngcontent-%COMP%] qupi-quiz-answer[_ngcontent-%COMP%]{margin-bottom:1.25em}[_nghost-%COMP%] .icon{margin-top:-10px;margin-right:1.25em;height:3.5em}[_nghost-%COMP%] .icon svg{height:3.5em}.pricing-plans[_ngcontent-%COMP%]{font-weight:700;white-space:pre;cursor:pointer}.pricing-plans[_ngcontent-%COMP%]:focus{outline:none}[_nghost-%COMP%] .mat-divider-custom{margin-top:10px!important}.qofday-heading[_ngcontent-%COMP%]{margin-top:1.25em;margin-bottom:1.25em}@media (min-width: 768px){.qofday-heading[_ngcontent-%COMP%]{max-width:190px}}@media (min-width: 1440px){.qofday-heading[_ngcontent-%COMP%]{margin-top:1.875em;max-width:220px}}@media (min-width: 768px){.answered-correct-heading[_ngcontent-%COMP%]{max-width:190px}}@media (min-width: 768px){[_nghost-%COMP%] qupi-question-difficulty{justify-content:space-between;margin-right:1.25em;flex-basis:33%;display:flex}[_nghost-%COMP%] qupi-question-difficulty .question-difficulty{margin-bottom:0!important}[_nghost-%COMP%] qupi-question-difficulty qupi-line-chart .line-chart-wrapper{margin:initial!important;max-width:100%!important}}@media (min-width: 1440px){[_nghost-%COMP%] qupi-question-difficulty{margin-right:0;flex-basis:initial!important;display:block}}[_nghost-%COMP%] qupi-question-difficulty{justify-content:center}[_nghost-%COMP%] qupi-question-difficulty qupi-line-chart .line-chart-wrapper{margin:0 auto;max-width:210px}"]}),H})();function wt(H,ut){if(1&H&&(e._UZ(0,"qupi-question-of-day",5),e.ALo(1,"async"),e.ALo(2,"async"),e.ALo(3,"async")),2&H){const I=ut.$implicit,rt=e.oxw(2);e.Q6J("subscriptions",e.lcZ(1,5,rt.userSubscriptions$))("quizQuestion",I)("statistics",e.lcZ(2,7,rt.questionOfDayStats$))("pending",e.lcZ(3,9,rt.questionOfDayPending$))("submittedAnswerID",null==I||null==I.answer?null:
1I.answer.id)}}function Wt(H,ut){if(1&H){const I=e.EpF();e.TgZ(0,"qupi-dashboard-stats",6),e.NdJ("setFilters",function(Pt){e.CHM(I);const St=e.oxw(2);return e.KtG(St.setLineChartFilters(Pt))})("redirect",function(){e.CHM(I);const Pt=e.oxw(2);return e.KtG(Pt.redirectToStatistics())}),e.qZA()}2&H&&e.Q6J("statistics",ut.$implicit)}function kt(H,ut){if(1&H&&(e.ynx(0),e._UZ(1,"qupi-dashboard-header",2),e.ALo(2,"async"),e.YNc(3,wt,4,11,"qupi-question-of-day",3),e.ALo(4,"async"),e._UZ(5,"qupi-dashboard-quizzes"),e.YNc(6,Wt,1,1,"qupi-dashboard-stats",4),e.ALo(7,"async"),e._UZ(8,"qupi-dashboard-footer"),e.BQk()),2&H){const I=e.oxw();e.xp6(1),e.Q6J("user",e.lcZ(2,3,I.user$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(4,5,I.questionOfDay$)),e.xp6(3),e.Q6J("ngIf",e.lcZ(7,7,I.statistics$))}}function Ut(H,ut){if(1&H&&(e.TgZ(0,"div",7),e._UZ(1,"mat-spinner",8),e.ALo(2,"async"),e.qZA()),2&H){const I=e.oxw();e.xp6(1),e.Q6J("diameter",(e.lcZ(2,1,I.mobile$),"75"))}}let Zt=(()=>{class H{constructor(I,rt,Pt,St){this.store=I,this.router=rt,this.route=Pt,this.toastService=St,this.token$=this.store.pipe((0,t.Ys)(xt=>xt.auth.jwt.token)),this.mobile$=this.store.pipe((0,t.Ys)(xt=>xt.app.size.xSmall)),this.questionOfDay$=this.store.pipe((0,t.Ys)(xt=>Object.assign({},xt.dashboard.questionOfDay)),(0,i.h)(xt=>xt.question)),this.questionOfDayStats$=this.store.pipe((0,t.Ys)(u.ph)),this.userSubscriptions$=this.store.pipe((0,t.Ys)(m.Rj)),this.questionOfDayPending$=(0,l.a)([this.store.pipe((0,t.Ys)((0,u.kN)("[DASHBOARD] GetQuestionOfDayStatistics"))),this.store.pipe((0,t.Ys)((0,u.kN)("[DASHBOARD] GetQuestionOfDay")))]).pipe((0,p.U)(([xt,ne])=>({questionOfDayStats:xt,questionOfDay:ne}))),this.statistics$=this.store.pipe((0,t.Ys)(xt=>xt.statistics)),this.user$=this.store.pipe((0,t.Ys)(m.np))}ngOnInit(){this.displayNotification(),this.store.dispatch(new s.zX),this.store.dispatch({type:"[CORE] SHARE_QUESTION_SUCCESS",payload:!1}),this.store.dispatch({type:"[DASHBOARD] GetQuestionOfDay"}),this.store.dispatch(new g.rK),this.store.dispatch(new g.lX),this.store.dispatch({type:"[STATS] GET_ATTEMPTED_DATA_AVERAGE"}),this.store.dispatch({type:"[STATS] GET_FIRST_TRY_DATA_AVERAGE"}),this.store.dispatch({type:"[STATS] GET_PROGRESS_DATA_AVERAGE",payload:{date:{from:r.B.initialDate(3)}}}),this.store.dispatch({type:"[STATS] GET_PROGRESS_DATA_AVERAGE_OVERALL",payload:{date:{from:r.B.initialDate(3)}}}),this.store.dispatch(new n.Lw),this.store.dispatch(new s.xl({topnavLogo:!1,sidenavOpened:!0,sidenavDisabled:!1}))}displayNotification(){this.route.queryParamMap.subscribe(I=>{"true"===I.get("cancel-success")?this.toastService.success("Mailing canceled correctly","Success",{timeOut:15e3}):"false"===I.get("cancel-success")&&this.toastService.error("An error occurred during mailing cancellation process","Something went wrong",{timeOut:3e4})})}setLineChartFilters(I){this.store.dispatch({type:"[STATS] GET_PROGRESS_DATA_AVERAGE",payload:{date:{from:I.from}}}),this.store.dispatch({type:"[STATS] GET_PROGRESS_DATA_AVERAGE_OVERALL",payload:{date:{from:I.from}}})}redirectToStatistics(){this.router.navigateByUrl("/statistics")}}return H.\u0275fac=function(I){return new(I||H)(e.Y36(t.yh),e.Y36(c.F0),e.Y36(c.gz),e.Y36(a.k))},H.\u0275cmp=e.Xpm({type:H,selectors:[["qupi-dashboard"]],decls:5,vars:8,consts:[[4,"ngIf"],["class","pending-container",4,"ngIf"],[3,"user"],[3,"subscriptions","quizQuestion","statistics","pending","submittedAnswerID",4,"ngIf"],[3,"statistics","setFilters","redirect",4,"ngIf"],[3,"subscriptions","quizQuestion","statistics","pending","submittedAnswerID"],[3,"statistics","setFilters","redirect"],[1,"pending-container"],["color","dodger-blue",3,"diameter"]],template:function(I,rt){1&I&&(e.YNc(0,kt,9,9,"ng-container",0),e.ALo(1,"async"),e.YNc(2,Ut,3,3,"div",1),e.ALo(3,"async"),e.ALo(4,"async")),2&I&&(e.Q6J("ngIf",e.lcZ(1,2,rt.token$)),e.xp6(2),e.Q6J("ngIf",!e.lcZ(3,4,rt.token$)||!e.lcZ(4,6,rt.questionOfDay$)))},dependencies:[h.Ou,C.O5,M,$,ot,ee,gt,C.Ov],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%]{color:#215ca8}[_nghost-%COMP%] .pending-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:75vw}@media (min-width: 768px){[_nghost-%COMP%] .pending-container[_ngcontent-%COMP%]{min-height:35vw}}"]}),H})()},85821:(Q,f,o)=>{"use strict";o.d(f,{Ff:()=>r,Lw:()=>s,Pq:()=>i,QH:()=>u,VN:()=>m,Zm:()=>p,eZ:()=>t,lR:()=>g,ox:()=>l});class t{constructor(c){this.payload=c,this.type="[DASHBOARD] ShowExplanation"}}class u{constructor(c){this.payload=c,this.type="[DASHBOARD] GetQuestionOfDaySuccess"}}class i{constructor(c){this.payload=c,this.type="[DASHBOARD] GetQuestionOfDayFail"}}class l{constructor(c){this.payload=c,this.type="[DASHBOARD] SubmitQuestionOfDayAnswer"}}class p{constructor(c){this.payload=c,this.type="[DASHBOARD] SubmitQuestionOfDayAnswerSuccess"}}class m{constructor(c){this.payload=c,this.type="[DASHBOARD] SubmitQuestionOfDayAnswerFail"}}class s{constructor(){this.type="[DASHBOARD] GetQuestionOfDayStatistics"}}
1class r{constructor(c){this.payload=c,this.type="[DASHBOARD] GetQuestionOfDayStatisticsSuccess"}}class g{constructor(c){this.payload=c,this.type="[DASHBOARD] GetQuestionOfDayStatisticsFail"}}},55417:(Q,f,o)=>{"use strict";o.d(f,{fQ:()=>l,kN:()=>p,l4:()=>i,ph:()=>s});var t=o(70655),n=o(30422);const u={dashboard:{},questionOfDay:{question:null,expandedAnswers:null,answerResponse:null},questionOfDayStatistics:{streak:null,answered:{of:null,questions:null}},pending:{},errors:{}};function i(r=u,g){switch(g.type){case"[DASHBOARD] GetQuestionOfDay":return Object.assign(Object.assign({},r),{questionOfDay:Object.assign({},r.questionOfDay),pending:Object.assign(Object.assign({},r.pending),{"[DASHBOARD] GetQuestionOfDay":!0}),errors:Object.assign(Object.assign({},r.errors),{"[DASHBOARD] GetQuestionOfDay":null})});case"[DASHBOARD] ShowExplanation":{const{answerID:e}=g.payload;return Object.assign(Object.assign({},r),{questionOfDay:Object.assign(Object.assign({},r.questionOfDay),{question:Object.assign(Object.assign({},r.questionOfDay.question),{answers:r.questionOfDay.question.answers.map(a=>a.id===e?Object.assign(Object.assign({},a),{showExplanation:!0}):a)})})})}case"[DASHBOARD] SubmitQuestionOfDayAnswerSuccess":case"[DASHBOARD] GetQuestionOfDaySuccess":{const e="[DASHBOARD] GetQuestionOfDaySuccess"===g.type?"[DASHBOARD] GetQuestionOfDay":"[DASHBOARD] SubmitQuestionOfDayAnswer";let c=g.payload;if(c.answer){const a=c.correctAnswer,h=c.answer;c=Object.assign(Object.assign({},c),{question:Object.assign(Object.assign({},c.question),{answers:c.question.answers.map(C=>C.id===a.id||C.id===h.id?Object.assign({},C):(0,t._T)(C,["correct"]))})})}return Object.assign(Object.assign({},r),{questionOfDay:Object.assign(Object.assign({},r.questionOfDay),c),pending:Object.assign(Object.assign({},r.pending),{[e]:!1}),errors:Object.assign(Object.assign({},r.errors),{[e]:null})})}case"[DASHBOARD] GetQuestionOfDayFail":return Object.assign(Object.assign({},r),{questionOfDay:Object.assign({},r.questionOfDay),pending:Object.assign(Object.assign({},r.pending),{"[DASHBOARD] GetQuestionOfDay":!1}),errors:Object.assign(Object.assign({},r.errors),{"[DASHBOARD] GetQuestionOfDay":g.payload})});case"[DASHBOARD] SubmitQuestionOfDayAnswer":return Object.assign(Object.assign({},r),{questionOfDay:Object.assign(Object.assign({},r.questionOfDay),{expandedAnswers:[g.payload.answerID]}),pending:Object.assign(Object.assign({},r.pending),{"[DASHBOARD] SubmitQuestionOfDayAnswer":!0}),errors:Object.assign(Object.assign({},r.errors),{"[DASHBOARD] SubmitQuestionOfDayAnswer":null})});case"[DASHBOARD] SubmitQuestionOfDayAnswerFail":return Object.assign(Object.assign({},r),{questionOfDay:Object.assign({},r.questionOfDay),pending:Object.assign(Object.assign({},r.pending),{"[DASHBOARD] SubmitQuestionOfDayAnswer":!1}),errors:Object.assign(Object.assign({},r.errors),{"[DASHBOARD] SubmitQuestionOfDayAnswer":g.payload})});case"[DASHBOARD] GetQuestionOfDayStatistics":return n.S.request(r,"questionOfDayStatistics",g,"[DASHBOARD] GetQuestionOfDayStatistics");case"[DASHBOARD] GetQuestionOfDayStatisticsSuccess":return n.S.success(r,"questionOfDayStatistics",g,"[DASHBOARD] GetQuestionOfDayStatistics");case"[DASHBOARD] GetQuestionOfDayStatisticsFail":return n.S.fail(r,"questionOfDayStatistics",g,"[DASHBOARD] GetQuestionOfDayStatistics");default:return r}}const l=()=>r=>r.dashboard.questionOfDay.pending,p=r=>g=>g.dashboard.pending[r],s=r=>r.dashboard.questionOfDayStatistics},40766:(Q,f,o)=>{"use strict";o.d(f,{Y:()=>p});var t=o(92340),n=o(5e3),u=o(40520);const{wordpressURL:l}=t.N;let p=(()=>{class m{constructor(r){this.http=r}getNews(){return this.http.get(`${l}/wp-json/wp/v2/posts`)}}return m.\u0275fac=function(r){return new(r||m)(n.LFG(u.eN))},m.\u0275prov=n.Yz7({token:m,factory:m.\u0275fac}),m})()},65388:(Q,f,o)=>{"use strict";o.r(f),o.d(f,{PaymentsModule:()=>ne,paymentsRoutes:()=>xt,slickTopNav:()=>St});var t=o(69808),n=o(2174),u=o(35357),i=o(36642),l=o(95577),p=o(54004),m=o(70262),s=o(39646),r=o(59159),g=o(87403),e=o(5e3),c=o(90066),a=o(88918),h=o(77309),C=o(72591);let P=(()=>{class Y{constructor(U,nt,pt,vt,Qt,jt){this.actions$=U,this.paymentsService=nt,this.topNavPortalService=pt,this.sideNavUserPortalService=vt,this.injector=Qt,this.toastService=jt,this.$pay=(0,i.GW)(()=>this.actions$.pipe((0,i.l4)("[Payment] Pay"),(0,l.z)(Kt=>this.paymentsService.pay(Kt.payload.paymentID,Kt.payload.provider,Kt.payload.data).pipe((0,p.U)(Ft=>new r.r8(Ft)),(0,m.K)(Ft=>(0,s.of)(new r.vn(Ft))))))),this.$redeemCoupon=(0,i.GW)(()=>this.actions$.pipe((0,i.l4)("[Payment] RedeemCoupon"),(0,l.z)(Kt=>this.paymentsService.verifyCoupon(Kt.payload.stripeCouponId).pipe((0,p.U)(Ft=>(null!=Ft&&Ft.discount?this.toastService.success("Voucher has been successfuly activated!"):this.toastService.error("Voucher is expired or invalid!"),new r.O0(Ft))),(0,m.K)(Ft=>(0,s.of)(new r.rm(Ft))))))),this.portals$=(0,i.GW)(()=>(0,g.$e)(xt,{actions$:this.actions$,topNavPortalService:this.topNavPortalService,sideNavUserPortalService:this.sideNavUserPortalService,injector:this.injector}),{dispatch:!1})}}return Y.\u0275fac=function(U){return new(U||Y)(e.LFG(i.eX),e.LFG(c.c),e.LFG(a.v),e.LFG(h.e),e.LFG(e.zs3),e.LFG
1(C.k))},Y.\u0275prov=e.Yz7({token:Y,factory:Y.\u0275fac}),Y})();var w=o(65620),O=o(61276),M=o(18857),y=o(52934),x=o(52842),L=o(59447),B=o(23322),Z=o(53251),b=o(81125),N=o(26297),K=o(70655),A=o(93075),$=o(50590),W=o(37554),_t=o(92340),k=o(11632),ct=o(33088),at=o(3070),et=(()=>{return(Y=et||(et={})).ChangePlanPricing="/change-plan-pricing",Y.PlanPricing="/plan-pricing",et;var Y})();const ot={codeRedeem:null,discount:null};function X(Y=ot,ht){var U,nt;switch(ht.type){case"[Payment] SetPayment":return Object.assign(Object.assign({},Y),{payment:ht.payload});case"[Payment] RedeemCoupon":case"[Payment] RedeemCouponClear":return Object.assign(Object.assign({},Y),{codeRedeem:null,discount:null});case"[Payment] RedeemCouponSuccess":return Object.assign(Object.assign({},Y),{codeRedeem:(null===(U=ht.payload.discount)||void 0===U?void 0:U.id)||null,discount:(null===(nt=ht.payload.discount)||void 0===nt?void 0:nt.percentOff)||null});default:return Y}}const F=Y=>Y.payments.payment;var D=o(2485),Dt=o(60501),Ot=o(39588),Ct=o(60850),Mt=o(60957),It=o(86657),Bt=o(20773),zt=o(83995);function $t(Y,ht){1&Y&&(e.ynx(0),e.TgZ(1,"div",3),e._UZ(2,"mat-spinner",4),e.qZA(),e.BQk()),2&Y&&(e.xp6(2),e.Q6J("diameter","100"))}function ee(Y,ht){if(1&Y&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&Y){const U=e.oxw(3);e.xp6(1),e.lnq(" ",U.selectedSubscription.price,"",U.selectedSubscription.currencySymbol," / ",U.selectedSubscription.duration," ")}}function V(Y,ht){if(1&Y&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&Y){const U=e.oxw(3);e.xp6(1),e.lnq(" ",U.priceAfterDiscount,"",U.selectedSubscription.currencySymbol," / ",U.selectedSubscription.duration," ")}}function Gt(Y,ht){if(1&Y&&(e.TgZ(0,"qupi-group",30)(1,"div")(2,"qupi-heading",31),e._uU(3),e.qZA()(),e.TgZ(4,"div",32)(5,"qupi-heading",33),e._uU(6,"Price:"),e.qZA(),e.TgZ(7,"qupi-heading"),e.YNc(8,ee,2,3,"div",0),e.ALo(9,"async"),e.YNc(10,V,2,3,"div",0),e.ALo(11,"async"),e.qZA()()()),2&Y){const U=e.oxw(2);e.xp6(2),e.Q6J("fontWeight","extra-bold"),e.xp6(1),e.hij(" ",U.selectedSubscription.name," "),e.xp6(5),e.Q6J("ngIf",!e.lcZ(9,4,U.discount$)),e.xp6(2),e.Q6J("ngIf",e.lcZ(11,6,U.discount$))}}function Tt(Y,ht){1&Y&&e._UZ(0,"div")}function qt(Y,ht){1&Y&&(e.TgZ(0,"div",34),e._uU(1,"Voucher is active"),e.qZA())}function Nt(Y,ht){1&Y&&(e.TgZ(0,"div",34),e._uU(1,"No active voucher"),e.qZA())}function Lt(Y,ht){1&Y&&e._UZ(0,"mat-spinner",35),2&Y&&e.Q6J("diameter",25)}function Ht(Y,ht){if(1&Y){const U=e.EpF();e.TgZ(0,"qupi-button",36),e.NdJ("click",function(){e.CHM(U);const pt=e.oxw(2);return e.KtG(pt.onSave(pt.paymentForm))}),e._uU(1," Pay and continue "),e.qZA()}}function Vt(Y,ht){1&Y&&e._UZ(0,"div")}function Xt(Y,ht){if(1&Y){const U=e.EpF();e.TgZ(0,"form",5),e.NdJ("ngSubmit",function(){e.CHM(U);const pt=e.oxw();return e.KtG(pt.onSave(pt.paymentForm))}),e.TgZ(1,"div",6),e.YNc(2,Gt,12,8,"qupi-group",7),e.TgZ(3,"qupi-group",8)(4,"qupi-content",9),e._uU(5," Accepted cards: "),e.qZA(),e._UZ(6,"img",10),e.TgZ(7,"div"),e._UZ(8,"img",11),e.qZA(),e.TgZ(9,"span",12),e._uU(10,"You will be charged every month / year. You can cancel anytime."),e.qZA()(),e.YNc(11,Tt,1,0,"div",13),e.ALo(12,"async"),e.qZA(),e.TgZ(13,"qupi-group",14)(14,"div",15),e._UZ(15,"qupi-input-label",16)(16,"div",17),e.qZA(),e._UZ(17,"qupi-text-input",18)(18,"qupi-select",19)(19,"qupi-text-input",20)(20,"qupi-text-input",21)(21,"qupi-text-input",22)(22,"qupi-text-input",23),e.TgZ(23,"qupi-button",24),e.NdJ("onClick",function(){e.CHM(U);const pt=e.oxw();return e.KtG(pt.onRedeem(pt.paymentForm))}),e._uU(24," Redeem "),e.qZA(),e.YNc(25,qt,2,0,"div",25),e.ALo(26,"async"),e.YNc(27,Nt,2,0,"div",25),e.ALo(28,"async"),e.TgZ(29,"div",26)(30,"label",27),e._uU(31," QUPI secure payments "),e.qZA(),e.YNc(32,Lt,1,1,"mat-spinner",28),e.YNc(33,Ht,2,0,"qupi-button",29),e.qZA(),e.YNc(34,Vt,1,0,"div",13),e.ALo(35,"async"),e.qZA()()}if(2&Y){const U=e.oxw(),nt=e.MAs(4);e.Udp("display",U.submittingForm?"none":"flex"),e.Q6J("formGroup",U.paymentForm),e.xp6(2),e.Q6J("ngIf",U.selectedSubscription),e.xp6(4),e.Q6J("src","/assets/images/jpg/visa-master-american.jpg",e.LSH),e.xp6(2),e.Q6J("src","/assets/images/svg/powered-by-stripe-dark-blue.svg",e.LSH),e.xp6(3),e.Q6J("ngIf",e.lcZ(12,24,U.sizeLtMiddle$))("ngIfElse",nt),e.xp6(4),e.Q6J("control",U.paymentForm.controls.str
1ipe)("errorMessage",null==U.stripeError?null:U.stripeError.message),e.xp6(2),e.Q6J("control",U.paymentForm.controls.cardholderName),e.xp6(1),e.Q6J("control",U.paymentForm.controls.country)("selections",U.countries)("selectValue","name"),e.xp6(1),e.Q6J("control",U.paymentForm.controls.city),e.xp6(1),e.Q6J("control",U.paymentForm.controls.postalCode),e.xp6(1),e.Q6J("control",U.paymentForm.controls.address),e.xp6(1),e.Q6J("control",U.paymentForm.controls.voucherCode),e.xp6(3),e.Q6J("ngIf",e.lcZ(26,26,U.discount$)),e.xp6(2),e.Q6J("ngIf",!e.lcZ(28,28,U.discount$)),e.xp6(5),e.Q6J("ngIf",U.isSpinnerActive),e.xp6(1),e.Q6J("ngIf",!U.isSpinnerActive),e.xp6(1),e.Q6J("ngIf",!e.lcZ(35,30,U.sizeLtMiddle$))("ngIfElse",nt)}}const tt=function(Y,ht){return{heading:Y,content:ht,theme:"mid-blue"}};function mt(Y,ht){if(1&Y&&(e.ynx(0),e._UZ(1,"qupi-success-error-view",37),e.BQk()),2&Y){const U=e.oxw();e.xp6(1),e.Q6J("data",e.WLB(2,tt,U.paymentStatus.error?"Error":"Success !",U.paymentStatus.data.message||"Subscription bought successfully !"))("isError",U.paymentStatus.error)}}function j(Y,ht){1&Y&&(e.TgZ(0,"qupi-group",38),e._UZ(1,"qupi-content",39),e.qZA())}let lt=(()=>{class Y{constructor(U,nt,pt,vt,Qt){this.formBuilder=U,this.store=nt,this.subscriptionService=pt,this.toastService=vt,this.router=Qt,this.isSpinnerActive=!1,this.sub=[],this.authToken$=this.store.select(jt=>jt.auth.jwt.token),this.discount$=this.store.select(jt=>jt.payments.discount),this.countries=W._,this.paymentData$=this.store.pipe((0,w.Ys)(F)),this.sizeLtMiddle$=this.store.pipe((0,p.U)(jt=>jt.app.size.small|jt.app.size.xSmall)),this.userSubscriptions$=this.store.select(k.Rj)}ngOnInit(){return(0,K.mG)(this,void 0,void 0,function*(){this.stripe=window.Stripe(_t.N.stripePublicKey),this.stripeElements=this.stripe.elements(),this.createForm({}),this.sub.push(this.authToken$.subscribe(U=>this.authToken=U)),this.sub.push(this.userSubscriptions$.subscribe(U=>this.userSubscriptions=U)),this.getSelectedSubscription(),this.get
1SubscriptionEventType(),this.initializeListeners()})}initializeListeners(){this.codeRedeemSubscription=this.store.select(U=>U.payments.codeRedeem).subscribe(U=>{this.codeRedeem=U})}getSubscriptionEventType(){this.store.select(at.bK).subscribe(U=>this.subscriptionEventType=U)}getSelectedSubscription(){this.store.select(at.vx).subscribe(U=>{if(this.redirectIfNoSelectedSubscription(U),U){const nt=Number(U.duration.substring(0,U.duration.length-1)),pt=Number((U.price/nt).toFixed(2));this.selectedSubscription={name:U.name,duration:U.duration,periodsNumber:nt,price:U.price,pricePerMonth:pt,currencySymbol:U.currencySymbol}}})}redirectIfNoSelectedSubscription(U){U||this.router.navigate(["/pricing"])}ngAfterViewInit(){this.stripeCard=this.stripeElements.create("card",{style:{base:{color:"#32325d",lineHeight:"18px",fontFamily:"'Lato', sans-serif",fontSmoothing:"antialiased",fontSize:"16px","::placeholder":{color:"#aab7c4"}},invalid:{color:"#ff8aa4",iconColor:"#ff8aa4"}}}),this.stripeCard.mount("#card-element"),this.stripeCard.addEventListener("change",nt=>{nt.error?(this.stripeError=nt.error,this.paymentForm.controls.stripe.markAsTouched(),this.paymentForm.controls.stripe.setErrors({stripe:nt.error.message})):this.paymentForm.controls.stripe.setErrors(null)})}ngOnDestroy(){this.stripeCard&&this.stripeCard.unmount(),this.sub.forEach(U=>U.unsubscribe()),this.codeRedeemSubscription.unsubscribe(),this.discountSubscription&&this.discountSubscription.unsubscribe()}createForm(U){this.paymentForm=this.formBuilder.group({stripe:[void 0,A.kI.required],cardholderName:[void 0,A.kI.required],country:[void 0],city:[void 0,A.kI.required],postalCode:[void 0,A.kI.required],address:[void 0,A.kI.required],voucherCode:[void 0]})}onRedeem(U){const{voucherCode:nt}=U.getRawValue();!nt||(this.store.dispatch(new r.Fk({stripeCouponId:nt})),this.countDiscountPrice())}countDiscountPrice(){this.discountSubscription=this.discount$.subscribe(U=>{const nt=this.selectedSubscription.price,pt=Number((this.selectedSubscription.price*(U/100)).toFixed(2)),vt=Number((nt-pt).toFixed(2));this.priceAfterDiscount=vt})}onSave(U){return(0,K.mG)(this,void 0,void 0,function*(){if(U.controls.stripe.setErrors(null),Object.values(U.controls).forEach(pt=>pt.markAsTouched()),U.invalid)return this.isSpinnerActive=!1,void this.toastService.warning("Form data error! Please correct form data and try again.");const nt=this;this.isSpinnerActive||this.stripe.createPaymentMethod({type:"card",card:this.stripeCard,billing_details:{name:this.paymentForm.controls.cardholderName.value}}).then(pt=>{if(pt.error)throw this.isSpinnerActive=!1,this.toastService.warning("Stripe payment error! Please correct form data and try again."),this.paymentForm.controls.stripe.setErrors({stripe:pt}),new Error("Stripe Error: "+pt);this.store.pipe((0,p.U)(vt=>({subscription:vt.app.selectedSubscription.id,paymentMethodId:pt.paymentMethod.id,stripeCouponId:this.codeRedeem}))).pipe((0,$.P)()).subscribe(vt=>{this.createOrChangeSubscriptionExecute(vt,nt)})}),this.isSpinnerActive=!0})}createOrChangeSubscriptionExecute(U,nt){this.createOrChangeSubscription(U.subscription,U.paymentMethodId,U.stripeCouponId).subscribe(pt=>{pt.hasOwnProperty("stripeNextAction")?(this.toastService.success("Additional authentication is required. Continue in popup..."),this.openPaymentAdditionalAuth(pt.stripeNextAction.redirect_to_url.url,U)):(this.isSpinnerActive=!1,this.toastService.success("Subscription has been successfuly activated!"),setTimeout(function(){nt.router.navigate(["/account/billing"])},1500))},pt=>{if(this.toastService.error("Subscription activation failed!"),this.isSpinnerActive=!1,pt.error.hasOwnProperty("status")){var vt=pt.error.status;Object.keys(ct.Z).includes(vt)?this.toastService.error(ct.Z[vt]):this.toastService.error(ct.Z.UNKNOWN_ERROR)}else this.toastService.error(ct.Z.UNKNOWN_ERROR)})}createOrChangeSubscription(U,nt,pt){return this.subscriptionEventType===et.ChangePlanPricing?this.subscriptionService.changeRecurringSubscription(+U,nt,pt):this.subscriptionEventType===et.PlanPricing?this.subscriptionService.initializeRecurringSubscription(+U,nt,pt):void 0}openPaymentAdditionalAuth(U,nt){var pt=window.open(U,"paymentAuthWindow","height=800,width=800,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,directories=no,status=no"),vt=this;window.addEventListener("message",function(Qt){"continueAuthProcess"==Qt.data&&(pt.close(),vt.createOrChangeSubscriptionExecute(nt,vt))},!1)}}return Y.\u0275fac=function(U){return new(U||Y)(e.Y36(A.qu),e.Y36(w.yh),e.Y36(D.d),e.Y36(C.k),e.Y36(u.F0))},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["qupi-pay-by-card"]],decls:5,vars:3,consts:[[4,"ngIf"],["class","payment-form",3,"formGroup","display","ngSubmit",4,"ngIf"],["notice",""],[1,"spinner-wrapper"],["color","dodger-blue",3,"diameter"],[1,"payment-form",3,"formGroup","ngSubmit"],[1,"payment-form-accepted-cards"],["class","selected-subscription-wrapper",4,"ngIf"],[1,"cards-wrapper"],["size","sm","fontWeight","bold",1,"payment-form-accepted-cards-label"],[1,"payment-form-accepted-cards-img",3,"src"],[1,"stripe-logo-img",3,"src"],[1,"charge-plan-information"],[4,"ngIf","ngIfElse"],[1,"payment-form-container"],[1,"form-row","w-100"],["label","Credit or debit card",3,"control","errorMessage"],["id","card-element"],["label","Cardholder name","placeholder","Enter cardholder name","width","100%",1,"payment-form-cardholder-name",3,"control"],["label","Country","placeholder","Choose country",1,"payment-form-country",3,"control","selections","selectValue"],["label","City","placeholder","Enter city","width","100%",1,"payment-form-city",3,"control"],["label","Postal code","placeholder","00-000","width","100%",1,"payment-form-postal-code",3,"control"],["label","Address","placeholder","Enter address","width","100%",1,"payment-form-address",3,"control"],["label","Enter voucher co
1de","placeholder","Enter voucher code","width","100%",1,"payment-form-voucher-code",3,"control"],["theme","mid-blue-reversed",1,"payment-form-reedem",3,"onClick"],["class","code-redeem",4,"ngIf"],[1,"submit-payment"],[1,"submit-payment-label"],[3,"diameter",4,"ngIf"],["theme","mid-blue","class","submit-payment-button",3,"click",4,"ngIf"],[1,"selected-subscription-wrapper"],[3,"fontWeight"],[1,"price-wrapper"],["fontWeight","bold",1,"price-heading"],[1,"code-redeem"],[3,"diameter"],["theme","mid-blue",1,"submit-payment-button",3,"click"],[3,"data","isError"],[1,"cards-wrapper","notice"],["size","sm",1,""]],template:function(U,nt){1&U&&(e.YNc(0,$t,3,1,"ng-container",0),e.YNc(1,Xt,36,32,"form",1),e.YNc(2,mt,2,5,"ng-container",0),e.YNc(3,j,2,0,"ng-template",null,2,e.W1O)),2&U&&(e.Q6J("ngIf",nt.submittingForm),e.xp6(1),e.Q6J("ngIf",nt.paymentForm&&!nt.paymentStatus),e.xp6(1),e.Q6J("ngIf",nt.paymentStatus))},dependencies:[t.O5,Dt.t,Ot.H,Ct.i,Mt.r,y.B,x.S,It.m,Bt.Ou,A._Y,A.JL,A.sg,zt.H,t.Ov],styles:['.d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%]{font-size:16px;color:#215ca8;width:100%}[_nghost-%COMP%] qupi-text-input[_ngcontent-%COMP%]{margin-bottom:.9375em}[_nghost-%COMP%] .payment-form[_ngcontent-%COMP%]{padding-top:1.25em;flex-direction:column}[_nghost-%COMP%] .payment-form[_ngcontent-%COMP%] .cards-wrapper[_ngcontent-%COMP%]{flex-direction:column}[_nghost-%COMP%] .payment-form[_ngcontent-%COMP%] .payment-form-accepted-cards[_ngcontent-%COMP%]{display:flex;justify-content:space-between}[_nghost-%COMP%] .payment-form[_ngcontent-%COMP%] .payment-form-accepted-cards[_ngcontent-%COMP%] .charge-plan-information[_ngcontent-%COMP%]{font-size:.75em}[_nghost-%COMP%] .payment-form[_ngcontent-%COMP%] .payment-form-accepted-cards[_ngcontent-%COMP%] .selected-subscription-wrapper[_ngcontent-%COMP%]{margin-bottom:.625em;display:flex;flex-direction:column}[_nghost-%COMP%] .payment-form[_ngcontent-%COMP%] .payment-form-accepted-cards[_ngcontent-%COMP%] .selected-subscription-wrapper[_ngcontent-%COMP%] .price-wrapper[_ngcontent-%COMP%]{margin-top:.625em}@media (min-width: 1200px){[_nghost-%COMP%] .payment-form[_ngcontent-%COMP%] .payment-form-accepted-cards[_ngcontent-%COMP%]{flex-direction:column;justify-content:flex-start}}@media (min-width: 768px){[_nghost-%COMP%] .payment-form[_ngcontent-%COMP%]{padding:1.875em 60px}}@media (min-width: 1200px){[_nghost-%COMP%] .payment-form[_ngcontent-%COMP%]{padding:1.875em 80px;display:flex;flex-direction:row-reverse}[_nghost-%COMP%] .payment-form[_ngcontent-%COMP%] .payment-form-accepted-cards[_ngcontent-%COMP%]{margin-bottom:1.25em;margin-left:1.25em}}@media (min-width: 768px){[_nghost-%COMP%] .payment-form[_ngcontent-%COMP%] .sub-price[_ngcontent-%COMP%]{margin-bottom:0;width:50%}}@media (min-width: 1200px){[_nghost-%COMP%] .payment-form[_ngcontent-%COMP%] .sub-price[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%] .spinner-wrapper[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:center;align-items:center;margin:1.875em 0}[_nghost-%COMP%] .payment-form-accepted-cards-img[_ngcontent-%COMP%]{width:152px;margin-top:.9375em;margin-bottom:.9375em}[_nghost-%COMP%] .stripe-logo-img[_ngcontent-%COMP%]{width:152px}[_nghost-%COMP%] .payment-form-expiry[_ngcontent-%COMP%]{justify-content:space-between}[_nghost-%COMP%] .payment-form-expiry-inputs[_ngcontent-%COMP%]{flex-direction:column;flex-basis:66%;margin-bottom:-10px}[_nghost-%COMP%] .payment-form-expiry-label[_ngcontent-%COMP%]{flex-direction:column;font-size:.75em;font-weight:700;margin:5%}
1[_nghost-%COMP%] .payment-form-reedem[_ngcontent-%COMP%]{margin-bottom:1.25em;margin-top:26px;display:flex}[_nghost-%COMP%] .submit-payment[_ngcontent-%COMP%]{margin-top:.9375em;width:100%;display:flex;justify-content:flex-end;align-items:center}[_nghost-%COMP%] .submit-payment[_ngcontent-%COMP%] .submit-payment-label[_ngcontent-%COMP%]{font-size:12px;font-weight:700;color:#a1bee3;align-self:flex-end;margin-right:1.875em}[_nghost-%COMP%] .submit-payment[_ngcontent-%COMP%] .submit-payment-button[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){[_nghost-%COMP%] .submit-payment[_ngcontent-%COMP%] .submit-payment-button[_ngcontent-%COMP%]{width:35%}}[_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%]{display:block}@media (min-width: 768px){[_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between}[_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-card-number[_ngcontent-%COMP%], [_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-city[_ngcontent-%COMP%], [_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-voucher-code[_ngcontent-%COMP%]{width:60%;margin-right:5%}[_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-cvv[_ngcontent-%COMP%], [_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-postal-code[_ngcontent-%COMP%], [_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-reedem[_ngcontent-%COMP%]{width:35%}[_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-expiry[_ngcontent-%COMP%]{width:100%;height:100px;flex-direction:row}[_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-expiry[_ngcontent-%COMP%] .payment-form-expiry-label[_ngcontent-%COMP%]{width:20%;margin:40px 5% 0 0;display:flex;align-items:flex-end}[_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-expiry[_ngcontent-%COMP%] .payment-form-expiry-inputs[_ngcontent-%COMP%]{flex-direction:row;width:75%;flex-basis:75%}[_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-expiry[_ngcontent-%COMP%] .payment-form-expiry-inputs[_ngcontent-%COMP%] .payment-form-expiry-year[_ngcontent-%COMP%]{flex-basis:46.5%;width:46.5%}[_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-expiry[_ngcontent-%COMP%] .payment-form-expiry-inputs[_ngcontent-%COMP%] .payment-form-expiry-month[_ngcontent-%COMP%]{flex-basis:46.5%;width:46.5%;margin-right:7%}[_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-cardholder-name[_ngcontent-%COMP%], [_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-country[_ngcontent-%COMP%]{flex-basis:47%;width:47%}[_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-cardholder-name[_ngcontent-%COMP%]{margin-right:6%}[_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-address[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%] .code-redeem[_ngcontent-%COMP%]{font-weight:700;margin-top:-1em}[_nghost-%COMP%] .code-redeem.success[_ngcontent-%COMP%]{color:#8ee986}[_nghost-%COMP%] .code-redeem.fail[_ngcontent-%COMP%]{color:#ff8aa4}@media (min-width: 1200px){[_nghost-%COMP%] .notice[_ngcontent-%COMP%]{max-width:152px}}@media not all and (min-width: 1200px){[_nghost-%COMP%] .notice[_ngcontent-%COMP%]{margin:1.25em}}[_nghost-%COMP%] .init-price .qupi-heading{font-size:1.2em}[_nghost-%COMP%] .init-price.crossed .qupi-heading{color:#a1bee3;position:relative}[_nghost-%COMP%] .init-price.crossed .qupi-heading:after{content:"";top:50%;transform:translateY(-50%);left:-5%;position:absolute;width:90%;height:2px;background-color:#ff8aa4}[_nghost-%COMP%] .promotion-price .qupi-heading{font-size:1.75em}#card-element[_ngcontent-%COMP%]{box-shadow:0 2px 4px #1c5ba966;padding:9px 12px 12px;border-radius:.625em;margin-bottom:.9375em}']}),Y})();var gt=o(18534),wt=o(13758),Wt=o(77093),kt=o(95633);let Ut=(()=>{class Y{constructor(U,nt,pt){this.store=U,this.actions$=nt,this.angulartics2=pt,this.sub=[],this.redirectTimeout=5,this.counterValue=10*this.redirectTimeout,this.progress=0}ngOnInit(){this.counter=this.startCounter()}ngOnDestroy(){this.destroyCounter(),this.sub.forEach(U=>U.unsubscribe())}startCounter(){return setInterval(()=>{this.counterValue?(this.counterValue=this.counterValue-1,this.progress=100/this.redirectTimeout/10*(10*this.redirectTimeout-this.counterValue)):this.destroyCounter()},100)}destroyCounter(){this.counter&&clearInterval(this.counter)}startPayment(U){this.store.dispatch(new r.$S({provider:1,paymentID:U})),this.sub.push(this.actions$.pipe((0,i.l4)("[Payment] PaySuccess","[Payment] PayFail"),(0,$.P)()).subscribe(nt=>{const pt=nt.payload;nt instanceof r.r8&&(this.angulartics2.eventTrack.next({action:"Purchase",properties:{category:"Purchase",value:0,currency:"USD"}}),this.angulartics2.eventTrack.next({action:"Subscribe",properties:{category:"Subscribe",value:0,currency:"USD"}}),this.store.dispatch(new gt.K5)),location.href=pt.external.redirect}))}}return Y.\u0275fac=function(U){return new(U||Y)(e.Y36(w.yh),e.Y36(i.eX),e.Y36(wt.b))},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["qupi-pay-with-paypal"]],decls:5,vars:5,consts:[["fxLayout","column","fxLayoutAlign","center center"],["size","lg","fontWeight","bold",1,"d-block","mb-3"],["mode","determinate","color","dodger-blue",3,"value","strokeWidth"]],template:function(U,nt){1&U&&(e.TgZ(0,"div",0)(1,"qupi-heading",1),e._uU(2),e.ALo(3,"roundUp"),e.qZA(),e._UZ(4,"mat-progress-spinner",2),e.qZA()),2&U&&(e.xp6(2),e.hij(" You are going to be redirected to PayPal in ",e.lcZ(3,3,nt.counterValue/10)," seconds "),e.xp6(2),e.Q6J("value",nt.progress)("strokeWidth",4))},dependencies:[y.B,Wt.xw,Wt.Wh,Bt.Ou,kt.s],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%]{height:16em;display:flex;justify-content:center;align-items:center;width:100%}.d-block[_ngcontent-%COMP%]{color:#215ca8}"]}),Y})();function Zt(Y,ht){if(1&Y){const U=e.EpF();e.TgZ(0,"a",9,10),e.NdJ("click",function(pt){const Qt=e.CHM(U).$implicit;return e.KtG(void 0!==Qt.clickPrevent?Qt.clickPrevent(pt):null)}),e._uU(2),e.qZA()}if(2&Y){const U=ht.$implicit,nt=e.MAs(1);e.ekj("active",nt.isActive),e.Q6J("routerLink",U.link)("active",nt.isActive),e.xp6(2),e.hij(" ",U.label," ")}}const H=function(Y){return{display:Y}};let ut=(()=>{class Y{constructor(U,nt,pt){this.store=U,this.router=nt,this.comingSoonService=pt,this.size$=this.store.select(vt=>vt.app.size),this.xSmall$=this.store.select(vt=>vt.app.size.xSmall),this.payByCard=!0,this.payWithPayPal=!1,this.sub=[],this.tabLinks=[{label:"Pay by Card",link:"/payments/card"},{label:"Pay with PayPal",clickPrevent:()=>this.comingSoonService.openDialog()}]}ngOnInit(){this.sub.push(this.xSmall$.subscribe(U=>{U&&(this.payByCard=!1)}))}ngOnDestroy(){this.sub.forEach(U=>U.unsubscribe())}
1selectMobileProvider(U,nt,pt){return pt&&(pt.stopPropagation(),pt.preventDefault()),1===U?(this.payWithPayPal=!0,this.payByCard=!1):(this.payByCard=!0,this.payWithPayPal=!1),this.router.navigate([nt,{outlets:{primary:null}}])}}return Y.\u0275fac=function(U){return new(U||Y)(e.Y36(w.yh),e.Y36(u.F0),e.Y36(O.t))},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["qupi-payments"]],decls:25,vars:22,consts:[["justifyContent","center","textAlign","center","size","xxlg","fontWeight","extra-bold","margin","0 0 20px 0",1,"payments-header"],["qupiHeadingUnderline",""],["justifyContent","center","textAlign","center",1,"payments-subheader"],["round","md",1,"payments-card"],["mat-tab-nav-bar","",1,"payments-card-nav",3,"ngStyle"],["mat-tab-link","","class","payments-card-nav-link","routerLinkActive","",3,"active","routerLink","click",4,"ngFor","ngForOf"],[3,"expanded","routerLink","opened","closed"],[3,"ngStyle"],[3,"expanded","disabled","click"],["mat-tab-link","","routerLinkActive","",1,"payments-card-nav-link",3,"routerLink","active","click"],["rla","routerLinkActive"]],template:function(U,nt){1&U&&(e.TgZ(0,"qupi-heading",0),e._uU(1," Select payment "),e.TgZ(2,"span",1),e._uU(3,"method"),e.qZA()(),e.TgZ(4,"qupi-content",2),e._uU(5," Choose your preferred payment method and enter your details to secure your access to QUPI\n"),e.qZA(),e.TgZ(6,"qupi-card",3),e.ynx(7),e.TgZ(8,"nav",4),e.ALo(9,"async"),e.YNc(10,Zt,3,5,"a",5),e.qZA(),e.TgZ(11,"mat-accordion")(12,"mat-expansion-panel",6),e.NdJ("opened",function(){return nt.selectMobileProvider(0,"/payments/card")})("closed",function(){return nt.payByCard=!1}),e.TgZ(13,"mat-expansion-panel-header",7),e.ALo(14,"async"),e.TgZ(15,"mat-panel-title"),e._uU(16," Pay by Card "),e.qZA()(),e._UZ(17,"qupi-pay-by-card"),e.qZA(),e.TgZ(18,"mat-expansion-panel",8),e.NdJ("click",function(){return nt.comingSoonService.openDialog()}),e.TgZ(19,"mat-expansion-panel-header",7),e.ALo(20,"async"),e.TgZ(21,"mat-panel-title"),e._uU(22," PayPal "),e.qZA()(),e._UZ(23,"qupi-pay-with-paypal"),e.qZA()(),e.BQk(),e.qZA(),e._UZ(24,"qupi-payment-satisfaction")),2&U&&(e.xp6(8),e.Q6J("ngStyle",e.VKq(16,H,e.lcZ(9,10,nt.size$).xSmall?"none":void 0)),e.xp6(2),e.Q6J("ngForOf",nt.tabLinks),e.xp6(2),e.ekj("mat-expansion-expanded",nt.payByCard),e.Q6J("expanded","/payments/card"===nt.router.url)("routerLink","/payments/card"),e.xp6(1),e.Q6J("ngStyle",e.VKq(18,H,e.lcZ(14,12,nt.size$).xSmall?void 0:"none")),e.xp6(5),e.Q6J("expanded",!1)("disabled",!0),e.xp6(1),e.Q6J("ngStyle",e.VKq(20,H,e.lcZ(20,14,nt.size$).xSmall?void 0:"none")))},dependencies:[t.sg,t.PC,M.A,y.B,x.S,L.k,B.Zl,Z.BU,Z.Nj,b.pp,b.ib,b.yz,b.yK,N.G,u.rH,u.yS,u.Od,lt,Ut,t.Ov],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%]{width:100%;display:block;color:#215ca8}[_nghost-%COMP%] .payments-header[_ngcontent-%COMP%]{margin-top:1.875em;margin-bottom:1.875em}[_nghost-%COMP%] .payments-subheader[_ngcontent-%COMP%]{margin-bottom:1.875em;justify-content:center}[_nghost-%COMP%] .payments-card[_ngcontent-%COMP%]{flex-direction:column;margin-top:1.25em;margin-bottom:1.25em;padding:0}@media (min-width: 1200px){[_nghost-%COMP%] .payments-card[_ngcontent-%COMP%]{flex-direction:row}}[_nghost-%COMP%] .payments-card[_ngcontent-%COMP%] .payments-card-nav[_ngcontent-%COMP%]{background:#f9f9f9;width:100%}[_nghost-%COMP%] .payments-card[_ngcontent-%COMP%] .payments-card-nav[_ngcontent-%COMP%] .payments-card-nav-link[_ngcontent-%COMP%]{font-weight:600;color:#1c5ba9;padding-top:35px;padding-bottom:35px;box-shadow:inset 2px -2px 6px #1c5ba933}[_nghost-%COMP%] .payments-card[_ngcontent-%COMP%] .payments-card-nav[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{background:#fff;font-weight:900;color:#43b3f7}@media (min-width: 1200px){[_nghost-%COMP%] .payments-card[_ngcontent-%COMP%]{max-width:920px;margin:1.875em auto}}[_nghost-%COMP%] .payments-footer[_ngcontent-%COMP%]{flex-direction:column;margin-top:1.875em;margin-bottom:1.875em;width:100%;align-items:center}[_nghost-%COMP%] .payments-footer[_ngcontent-%COMP%] qupi-content[_ngcontent-%COMP%]{margin-top:.9375em}.mat-expansion-panel-header[aria-disabled=true][_ngcontent-%COMP%], .mat-expansion-panel-header[_ngcontent-%COMP%], .mat-expansion-panel-header-title[_ngcontent-%COMP%]{color:#215ca8;cursor:pointer}.mat-expansion-panel-header[_ngcontent-%COMP%]{background:#f9f9f9}.mat-expansion-expanded[_ngcontent-%COMP%] .mat-expansion-panel-header[aria-disabled=true][_ngcontent-%COMP%], .mat-expansion-expanded[_ngcontent-%COMP%] .mat-expansion-panel-header[_ngcontent-%COMP%], .mat-expansion-expanded[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%]{font-weight:900;color:#43b3f7}.mat-expansion-expanded[_ngcontent-%COMP%] .mat-expansion-panel-header[_ngcontent-%COMP%]{border-bottom:4px solid #43b3f7;background:#fff}.mat-expansion-panel[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none}[_nghost-%COMP%] .mat-expansion-indicator{display:none!important}"]}),Y})();var I=o(39300);let rt=(()=>{class Y{constructor(U){this.route=U,this.paymentData=this.route.
1snapshot.data}ngOnInit(){this.route.queryParams.pipe((0,I.h)(U=>U.message)).subscribe(U=>this.paymentData.data.content=U.message)}}return Y.\u0275fac=function(U){return new(U||Y)(e.Y36(u.gz))},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["qupi-paypal-payment-view"]],decls:1,vars:2,consts:[[3,"isError","data"]],template:function(U,nt){1&U&&e._UZ(0,"qupi-success-error-view",0),2&U&&e.Q6J("isError",nt.paymentData.isError)("data",nt.paymentData.data)},dependencies:[zt.H]}),Y})();const St={topNavConfig:[null,o(43039).Q,null],sideNavConfig:[null]},xt=[{path:"",component:ut,data:St,children:[{path:"",redirectTo:"card",pathMatch:"full"},{path:"card",component:lt},{path:"paypal",component:Ut}]},{path:"success",component:rt,data:{isError:!1,data:Object.assign({heading:"Payment successful!",content:"Congratulations \u2013 your payment was successful! Time to start using QUPI!",theme:"dodger-blue"},St)}},{path:"failed",component:rt,data:{isError:!0,data:Object.assign({heading:"Error",content:"Sorry, something went wrong.",theme:"mid-blue"},St)}}];let ne=(()=>{class Y{}return Y.\u0275fac=function(U){return new(U||Y)},Y.\u0275mod=e.oAB({type:Y}),Y.\u0275inj=e.cJS({imports:[t.ez,n.m,w.Aw.forFeature("payments",X),u.Bz.forChild(xt),i.sQ.forFeature([P])]}),Y})()},90066:(Q,f,o)=>{"use strict";o.d(f,{c:()=>l});var t=o(92340),n=o(5e3),u=o(40520);const i=t.N.api;let l=(()=>{class p{constructor(s){this.http=s}pay(s,r,g={}){return this.http.post(i.baseURL+`/api/v1/payments/${s}/pay`,g,{params:{provider:r}})}redeemCoupon(s,r){return this.http.patch(i.baseURL+`/api/v1/payments/${s}/promotion`,r)}verifyCoupon(s){return this.http.post(i.baseURL+"/api/v1/recurring-subscriptions/verify-coupon",{str
1ipeCouponId:s})}updatePaymentMethod(s,r){return this.http.post(i.baseURL+`/api/v1/recurring-subscriptions/${s}/updatePaymentMethod`,{stripePaymentMethodId:r})}}return p.\u0275fac=function(s){return new(s||p)(n.LFG(u.eN))},p.\u0275prov=n.Yz7({token:p,factory:p.\u0275fac}),p})()},59159:(Q,f,o)=>{"use strict";o.d(f,{$S:()=>n,Fk:()=>l,O0:()=>p,iT:()=>s,r8:()=>u,rm:()=>m,vn:()=>i});class n{constructor(g){this.payload=g,this.type="[Payment] Pay"}}class u{constructor(g){this.payload=g,this.type="[Payment] PaySuccess"}}class i{constructor(g){this.payload=g,this.type="[Payment] PayFail"}}class l{constructor(g){this.payload=g,this.type="[Payment] RedeemCoupon"}}class p{constructor(g){this.payload=g,this.type="[Payment] RedeemCouponSuccess"}}class m{constructor(g){this.payload=g,this.type="[Payment] RedeemCouponFail"}}class s{constructor(){this.type="[Payment] RedeemCouponClear"}}},68522:(Q,f,o)=>{"use strict";o.d(f,{M:()=>m});var t=o(5e3),n=o(52934),u=o(52842),i=o(81125);const l=[[["",8,"answerexplanation"]]],p=[".answerExplanation"];let m=(()=>{class s{constructor(){this.headerClick=new t.vpe,this.eliminated=!1}ngOnInit(){}fromCharCode(g){return String.fromCharCode(65+g)}onHeaderClick(){this.headerClick.emit()}onContext(g){g.preventDefault(),this.eliminated=!this.eliminated}}return s.\u0275fac=function(g){return new(g||s)},s.\u0275cmp=t.Xpm({type:s,selectors:[["qupi-quiz-answer"]],inputs:{index:"index",answerText:"answerText",isCorrect:"isCorrect",isSelected:"isSelected",isExpanded:"isExpanded",isAnswered:"isAnswered"},outputs:{headerClick:"headerClick"},ngContentSelectors:p,decls:8,vars:15,consts:[["hideToggle","","disabled","",1,"answer",3,"expanded"],["collapsedHeight","auto",1,"head",3,"contextmenu","click"],["size","lg","fontWeight","extra-bold",1,"me-3"],[1,"question--body"]],template:function(g,e){1&g&&(t.F$t(l),t.TgZ(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header",1),t.NdJ("contextmenu",function(a){return e.onContext(a)})("click",function(){return e.onHeaderClick()}),t.TgZ(2,"qupi-heading",2),t._uU(3),t.qZA(),t.TgZ(4,"qupi-content",3),t._uU(5),t.qZA()(),t.TgZ(6,"qupi-content"),t.Hsn(7),t.qZA()()),2&g&&(t.Q6J("expanded",e.isExpanded),t.xp6(1),t.ekj("selected",e.isSelected)("correct",e.isCorrect&&null!=e.isCorrect)("incorrect",!e.isCorrect&&null!=e.isCorrect)("eliminated",e.eliminated)("expanded",e.isExpanded)("answered",e.isAnswered),t.xp6(2),t.hij(" ",e.fromCharCode(e.index),""),t.xp6(2),t.Oqu(e.answerText))},dependencies:[n.B,u.S,i.ib,i.yz],styles:[".answer[_ngcontent-%COMP%]{color:#215ca8;border-radius:1.25em;box-shadow:0 2px 4px #1c5ba966!important}.answer[_ngcontent-%COMP%] .question--body[_ngcontent-%COMP%]{margin-left:1.25em}.answer[_ngcontent-%COMP%] .head.selected[_ngcontent-%COMP%]{background:#fff68a}.answer[_ngcontent-%COMP%] .head.correct[_ngcontent-%COMP%]{background:#8ee986}.answer[_ngcontent-%COMP%] .head.incorrect[_ngcontent-%COMP%]{background:#ff8aa4}.answer[_ngcontent-%COMP%] .head.expaned[_ngcontent-%COMP%]{border-radius:1.25em 1.25em 0 0}.answer[_ngcontent-%COMP%] .mat-expansion-panel-header{padding:0;border-radius:1.25em}.answer[_ngcontent-%COMP%] .mat-expansion-panel-header:hover:not(.answered){cursor:pointer;background:rgba(255,246,138,.7)}.answer[_ngcontent-%COMP%] .mat-expansion-panel-header.eliminated:not(.answered){background:rgba(0,0,0,.15);color:#ffffffd9!important}.answer[_ngcontent-%COMP%] .mat-expansion-panel-header.eliminated:not(.answered):hover{background:rgba(0,0,0,.15);color:#ffffffd9}.answer[_ngcontent-%COMP%] .mat-content{display:flex;align-items:center;padding:1em}.answer[_ngcontent-%COMP%] .mat-expansion-panel-header[aria-disabled=true]{color:#215ca8}"]}),s})()},28208:(Q,f,o)=>{"use strict";o.d(f,{T:()=>m});var t=o(5e3),n=o(52842),u=o(86657),i=o(69808);function l(s,r){if(1&s&&(t.TgZ(0,"qupi-content",5),t._uU(1),t.qZA()),2&s){const g=t.oxw();
1t.xp6(1),t.hij("Question difficulty: ",g.difficulty,"%")}}function p(s,r){if(1&s){const g=t.EpF();t.TgZ(0,"div",6)(1,"img",7),t.NdJ("click",function(){t.CHM(g);const c=t.oxw();return t.KtG(c.openViewImage(c.files[0].path))}),t.qZA()()}if(2&s){const g=t.oxw();t.xp6(1),t.Q6J("src",g.files[0].path,t.LSH)}}let m=(()=>{class s{constructor(){this.viewImage=new t.vpe}ngOnInit(){}openViewImage(g){this.viewImage.emit(g)}}return s.\u0275fac=function(g){return new(g||s)},s.\u0275cmp=t.Xpm({type:s,selectors:[["qupi-quiz-question-description"]],inputs:{description:"description",files:"files",difficulty:"difficulty",answerCount:"answerCount"},outputs:{viewImage:"viewImage"},decls:7,vars:3,consts:[[1,"description-wrapper"],[1,"header"],["fontWeight","bold","class","difficulty",4,"ngIf"],[1,"content"],["class","question--image",4,"ngIf"],["fontWeight","bold",1,"difficulty"],[1,"question--image"],[3,"src","click"]],template:function(g,e){1&g&&(t.TgZ(0,"qupi-group",0)(1,"qupi-group",1),t.YNc(2,l,2,1,"qupi-content",2),t.qZA(),t.TgZ(3,"qupi-group",3)(4,"qupi-content"),t._uU(5),t.qZA(),t.YNc(6,p,2,1,"div",4),t.qZA()()),2&g&&(t.xp6(2),t.Q6J("ngIf",e.answerCount>100),t.xp6(3),t.Oqu(e.description),t.xp6(1),t.Q6J("ngIf",e.files&&1===(null==e.files[0]?null:e.files[0].type)))},dependencies:[n.S,u.m,i.O5],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%}@media (min-width: 1200px){[_nghost-%COMP%]{flex-direction:row;justify-content:space-between}}[_nghost-%COMP%] .question--image[_ngcontent-%COMP%]{width:100%;max-width:350px;margin-top:1.875em}@media (min-width: 1200px){[_nghost-%COMP%] .question--image[_ngcontent-%COMP%]{margin-top:0;margin-left:1.875em}}[_nghost-%COMP%] .question--image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%}[_nghost-%COMP%] .description-wrapper[_ngcontent-%COMP%]{flex-direction:column;width:100%}[_nghost-%COMP%] .description-wrapper[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{width:100%;margin-bottom:.625em}[_nghost-%COMP%] .description-wrapper[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{flex-direction:row;flex-wrap:nowrap;width:100%}"]}),s})()},40048:(Q,f,o)=>{"use strict";o.d(f,{C:()=>a});var t=o(5e3),n=o(85821),u=o(8146),i=o(65620),l=o(60957),p=o(52934),m=o(52842),s=o(77093),r=o(69808);function g(h,C){if(1&h){const P=t.EpF();t.TgZ(0,"qupi-button",4),t.NdJ("click",function(){t.CHM(P);const O=t.oxw(2);return t.KtG(O.readExplanation(O.quizQuestion,O.answerId,O.isSumup))}),t._uU(1," See explanation "),t.qZA()}if(2&h){const P=t.oxw(2);t.Q6J("loader",P.loading)}}function e(h,C){if(1&h&&(t.TgZ(0,"div",5)(1,"qupi-heading",6),t._uU(2,"Explanation"),t.qZA(),t.TgZ(3,"qupi-content"),t._uU(4),t.qZA()()),2&h){const P=t.oxw(2);t.xp6(4),t.hij(" ",P.explanation," ")}}function c(h,C){if(1&h&&(t.TgZ(0,"div",1),t.YNc(1,g,2,1,"qupi-button",2),t.YNc(2,e,5,1,"div",3),t.qZA()),2&h){const P=t.oxw();
1t.xp6(1),t.Q6J("ngIf",!P.showExplanation),t.xp6(1),t.Q6J("ngIf",P.showExplanation)}}let a=(()=>{class h{constructor(P){this.store=P,this.showAnswerExplanation=new t.vpe}readExplanation(P,w,O){return this.statelessExplanation?this.showAnswerExplanation.emit(w):P?O?void this.store.dispatch(new u.E({quizQuestion:P,answerID:w})):void this.store.dispatch(new u.eZ({quizQuestion:P,answerID:w})):void this.store.dispatch(new n.eZ({answerID:w}))}}return h.\u0275fac=function(P){return new(P||h)(t.Y36(i.yh))},h.\u0275cmp=t.Xpm({type:h,selectors:[["qupi-quiz-question-explanation"]],inputs:{isSumup:"isSumup",loading:"loading",showExplanation:"showExplanation",explanation:"explanation",quizQuestion:"quizQuestion",answerId:"answerId",statelessExplanation:"statelessExplanation"},outputs:{showAnswerExplanation:"showAnswerExplanation"},decls:1,vars:1,consts:[["fxLayout","column","fxLayoutAlign","center center","class","w-100 question-answer-panel",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center",1,"w-100","question-answer-panel"],["class","my-2","theme","mid-blue-inversed","width","220px",3,"loader","click",4,"ngIf"],["class","answer-explanation",4,"ngIf"],["theme","mid-blue-inversed","width","220px",1,"my-2",3,"loader","click"],[1,"answer-explanation"],["size","sm","fontWeight","bold",1,"answer-explanation-heading"]],template:function(P,w){1&P&&t.YNc(0,c,3,2,"div",0),2&P&&t.Q6J("ngIf",w.explanation)},dependencies:[l.r,p.B,m.S,s.xw,s.Wh,r.O5],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] .question-answer-panel[_ngcontent-%COMP%]{padding-top:1.875em;padding-bottom:.625em}[_nghost-%COMP%] .answer-explanation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-direction:column;width:100%}[_nghost-%COMP%] .answer-explanation[_ngcontent-%COMP%] .answer-explanation-heading[_ngcontent-%COMP%]{margin-bottom:10px}[_nghost-%COMP%] .answer-explanation-trial[_ngcontent-%COMP%]{width:initial}[_nghost-%COMP%] .pricing-plans[_ngcontent-%COMP%]{font-weight:700;white-space:pre;cursor:pointer}[_nghost-%COMP%] .pricing-plans[_ngcontent-%COMP%]:focus{outline:none}"]}),h})()},13842:(Q,f,o)=>{"use strict";o.d(f,{J:()=>l});var t=o(88766),n=o(5e3),u=o(69808);function i(p,m){if(1&p){const s=n.EpF();n.ynx(0),n.TgZ(1,"div",5),n.NdJ("click",function(){const e=n.CHM(s).$implicit;return n.KtG(e.clickEv())}),n.TgZ(2,"div",6)(3,"span"),n._uU(4),n.qZA()()(),n.BQk()}if(2&p){const s=m.$implicit;n.xp6(1),n.Udp("flex-basis",null!=s&&s.extended?"50%":""),n.xp6(1),n.Udp("background-color",null!=s&&s.invertColor?"white":""),n.xp6(2),n.Oqu(s.buttonText)}}let l=(()=>{class p{constructor(){this.calcSum="0",this.calcButtons=[{buttonText:"C",clickEv:()=>this.calcSum="0"},{buttonText:"\u221a",clickEv:()=>this.openExpression("sqrt")},{buttonText:")",clickEv:()=>{this.calcSum+=")",this.openedOperator=!1}},{buttonText:"\xf7",clickEv:()=>this.addOperator("/"),invertColor:!0},{buttonText:"7",clickEv:()=>this.addNumber(7)},{buttonText:"8",clickEv:()=>this.addNumber(8)},{buttonText:"9",clickEv:()=>this.addNumber(9)},{buttonText:"\xd7",clickEv:()=>this.addOperator("*"),invertColor:!0},{buttonText:"4",clickEv:()=>this.addNumber(4)},{buttonText:"5",clickEv:()=>this.addNumber(5)},{buttonText:"6",clickEv:()=>this.addNumber(6)},{buttonText:"\u2013",clickEv:()=>this.addOperator("-"),invertColor:!0},{buttonText:"1",clickEv:()=>this.addNumber(1)},{buttonText:"2",clickEv:()=>this.addNumber(2)},{buttonText:"3",clickEv:()=>this.addNumber(3)},{buttonText:"+",clickEv:()=>this.addOperator("+"),invertColor:!0},{buttonText:"0",clickEv:()=>this.addNumber(0)},{buttonText:".",clickEv:()=>this.addOperator(".")},{buttonText:"=",clickEv:()=>this.displayResult(),extended:!0,invertColor:!0}]}addNumber(s){"0"===this.calcSum?this.calcSum=s.toString():this.calcSum+=s.toString()}addOperator(s){this.openedOperator&&(this.openedOperator=!1,this.calcSum+=")"),this.calcSum+=s}openExpression(s){if(this.openedOperator=!0,"0"===this.calcSum)return this.calcSum=`${s}(`;this.calcSum+=`${s}(`}displayResult(){this.openedOperator&&(this.calcSum+=")",this.openedOperator=!1);const s=(0,t.ku)(this.calcSum);if("Infinity"===s)return this.calcSum="Bad equation.";this.calcSum=s}}
1return p.\u0275fac=function(s){return new(s||p)},p.\u0275cmp=n.Xpm({type:p,selectors:[["qupi-quiz-calculator"]],decls:5,vars:2,consts:[[1,"calculator-wrapper"],[1,"calc-summary"],["type","text","disabled","true",3,"value"],[1,"calc-buttons"],[4,"ngFor","ngForOf"],[1,"calc-button",3,"click"],[1,"button-img"]],template:function(s,r){1&s&&(n.TgZ(0,"div",0)(1,"div",1),n._UZ(2,"input",2),n.qZA(),n.TgZ(3,"div",3),n.YNc(4,i,5,5,"ng-container",4),n.qZA()()),2&s&&(n.xp6(2),n.Q6J("value",r.calcSum),n.xp6(2),n.Q6J("ngForOf",r.calcButtons))},dependencies:[u.sg],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}@media (min-width: 1200px){[_nghost-%COMP%]{height:320px}}@media (max-width: 768px){[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .calculator-wrapper[_ngcontent-%COMP%]{background-color:#f9f9f9}}.calculator-wrapper[_ngcontent-%COMP%] .calc-summary[_ngcontent-%COMP%]{display:flex;margin-bottom:1.25em}.calculator-wrapper[_ngcontent-%COMP%] .calc-summary[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-family:Lato,sans-serif;width:100%;background-color:#fff;height:30px;border:0;border-radius:10px;color:#215ca8;padding:.625em 1.25em;font-weight:800;text-align:right;box-shadow:0 3px 15px #dae4f5;float:left;display:block}.calculator-wrapper[_ngcontent-%COMP%] .calc-buttons[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.calculator-wrapper[_ngcontent-%COMP%] .calc-buttons[_ngcontent-%COMP%] .calc-button[_ngcontent-%COMP%]{display:flex;flex-basis:25%;justify-content:center;font-family:Lato,sans-serif;color:#215ca8;font-weight:800}.calculator-wrapper[_ngcontent-%COMP%] .calc-buttons[_ngcontent-%COMP%] .calc-button[_ngcontent-%COMP%] .button-img[_ngcontent-%COMP%]{display:flex;align-items:center;width:90%;height:56.81px;box-shadow:0 2px 5px #e3e3e3;background-color:#dae4f5;border-radius:10px;position:relative;margin-bottom:.625em}.calculator-wrapper[_ngcontent-%COMP%] .calc-buttons[_ngcontent-%COMP%] .calc-button[_ngcontent-%COMP%] .button-img[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;display:flex;align-items:center;justify-content:center;margin:auto;top:0;left:0;bottom:0;right:0;width:100%;text-align:center;font-family:Lato Black,sans-serif;font-size:16px}.calculator-wrapper[_ngcontent-%COMP%] .calc-buttons[_ngcontent-%COMP%] .calc-button[_ngcontent-%COMP%]:hover{cursor:pointer}"]}),p})()},4623:(Q,f,o)=>{"use strict";o.d(f,{M:()=>s});var t=o(82349),n=o(5e3);let u=(()=>{class r{constructor(e){this.viewContainerRef=e}}return r.\u0275fac=function(e){return new(e||r)(n.Y36(n.s_b))},r.\u0275dir=n.lG2({type:r,selectors:[["","dial-host",""]]}),r})();var i=o(86657),l=o(25245),p=o(44619);function m(r,g){}let s=(()=>{class r{constructor(e,c){this.data=e,this.componentFactoryResolver=c}loadComponent(){let c=this.componentFactoryResolver.resolveComponentFactory(this.data.component),a=this.dialHost.viewContainerRef;a.clear(),a.createComponent(c)}ngOnInit(){this.loadComponent()}}return r.\u0275fac=function(e){return new(e||r)(n.Y36(t.WI),n.Y36(n._Vd))},r.\u0275cmp=n.Xpm({type:r,selectors:[["qupi-quiz-dialog-wrapper"]],viewQuery:function(e,c){if(1&e&&n.Gf(u,7),2&e){let a;n.iGM(a=n.CRH())&&(c.dialHost=a.first)}},decls:10,vars:2,consts:[[1,"quiz-tool-wrapper"],[1,"quiz-tool-header"],[1,"heading-group"],[1,"tool-icon",3,"inlineSVG"],[1,"tool-heading"],["mat-dialog-close","",1,"tool-exit"],["dial-host",""]],template:function(e,c){1&e&&(n.TgZ(0,"div",0)(1,"div",1)(2,"qupi-group",2),n._UZ(3,"span",3),n.TgZ(4,"span",4),n._uU(5),n.qZA()(),n.TgZ(6,"button",5)(7,"mat-icon"),n._uU(8,"close"),n.qZA()()(),n.YNc(9,m,0,0,"ng-template",6),n.qZA()),2&e&&(n.xp6(3),n.Q6J("inlineSVG",c.data.icon),n.xp6(2),n.Oqu(c.data.name))},dependencies:[i.m,l.Hw,t.ZT,p.d$,u],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:.625em;border-right:5px solid #1da1f2;background-color:#f9f9f9;height:100%}[_nghost-%COMP%] .tool-icon svg{width:30px;height:30px}[_nghost-%COMP%] .lab-value-content{max-height:100%;height:auto}.quiz-tool-wrapper[_ngcontent-%COMP%]{height:100%}.quiz-tool-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.625em}.quiz-tool-header[_ngcontent-%COMP%] .heading-group[_ngcontent-%COMP%]{display:flex;align-items:center}.quiz-tool-header[_ngcontent-%COMP%] .heading-group[_ngcontent-%COMP%] .tool-icon[_ngcontent-%COMP%]{margin-right:.625em}.quiz-tool-header[_ngcontent-%COMP%] .heading-group[_ngcontent-%COMP%] .tool-heading[_ngcontent-%COMP%]{font-family:Lato,sans-serif;font-size:1.1em;color:#1da1f2;font-weight:800}.quiz-tool-header[_ngcontent-%COMP%] .tool-exit[_ngcontent-%COMP%]{background:transparent;border:0;width:30px;height:30px;color:#1da1f2}"]}),r})()},16926:(Q,f,o)=>{"use strict";o.d(f,{r:()=>O});var t=o(65620),n=o(41212),u=o(5e3),i=o(86657),l=o(23322),p=o(25245),m=o(69808);const s=["scrollRef"];
1function r(M,y){if(1&M){const x=u.EpF();u.TgZ(0,"span",8),u.NdJ("click",function(){u.CHM(x);const B=u.oxw(2);return u.KtG(B.scrollList(!1))}),u.TgZ(1,"span",9)(2,"mat-icon"),u._uU(3,"chevron_right"),u.qZA()()()}}function g(M,y){if(1&M){const x=u.EpF();u.TgZ(0,"span",10),u.NdJ("click",function(){u.CHM(x);const B=u.oxw(2);return u.KtG(B.scrollList(!0))}),u.TgZ(1,"span",9)(2,"mat-icon"),u._uU(3,"chevron_left"),u.qZA()()()}}function e(M,y){if(1&M){const x=u.EpF();u.ynx(0),u.TgZ(1,"div",11),u.NdJ("click",function(){const Z=u.CHM(x).$implicit,b=u.oxw(2);return u.KtG(b.selectCategory(Z))}),u._uU(2),u.qZA(),u.BQk()}if(2&M){const x=y.$implicit,L=u.oxw(2);u.xp6(1),u.ekj("active",x.id===L.activeCategoryId),u.xp6(1),u.hij(" ",x.name," ")}}function c(M,y){if(1&M&&(u.TgZ(0,"div",3,4),u.YNc(2,r,4,0,"span",5),u.YNc(3,g,4,0,"span",6),u.YNc(4,e,3,3,"ng-container",7),u.qZA()),2&M){const x=u.oxw();u.xp6(2),u.Q6J("ngIf",!x.hideScroll.right),u.xp6(1),u.Q6J("ngIf",!x.hideScroll.left),u.xp6(1),u.Q6J("ngForOf",x.labValues.data)}}function a(M,y){if(1&M&&(u.TgZ(0,"div",18),u._uU(1),u.qZA()),2&M){const x=u.oxw().$implicit;u.xp6(1),u.Oqu(x.value)}}function h(M,y){if(1&M&&(u.ynx(0),u.TgZ(1,"qupi-group",20)(2,"div",21),u._uU(3),u.qZA(),u.TgZ(4,"div",22),u._uU(5),u.qZA()(),u.BQk()),2&M){const x=y.$implicit;u.xp6(3),u.Oqu(x.name),u.xp6(2),u.Oqu(x.value)}}function C(M,y){if(1&M&&(u.ynx(0),u.TgZ(1,"qupi-group",19),u.YNc(2,h,6,2,"ng-container",7),u.qZA(),u.BQk()),2&M){const x=u.oxw().$implicit;u.xp6(2),u.Q6J("ngForOf",x.children)}}function P(M,y){if(1&M&&(u.ynx(0),u.TgZ(1,"qupi-group",14)(2,"div",15),u._uU(3),u.qZA(),u.YNc(4,a,2,1,"div",16),u.qZA(),u.YNc(5,C,3,1,"ng-container",17),u.BQk()),2&M){const x=y.$implicit;u.xp6(2),u.Q6J("ngClass",x.value?"":"title"),u.xp6(1),u.hij(" ",x.name," "),u.xp6(1),u.Q6J("ngIf",x.value),u.xp6(1),u.Q6J("ngIf",!x.value&&x.children)}}function w(M,y){if(1&M&&(u.TgZ(0,"div",12)(1,"div",13),u.YNc(2,P,6,4,"ng-container",7),u.qZA()()),2&M){const x=u.oxw();u.xp6(2),u.Q6J("ngForOf",x.selectedCategory)}}let O=(()=>{class M{constructor(x){this.store=x,this.hideScroll={left:!0,right:!1}}ngOnInit(){this.store.dispatch({type:"[DICT] GetLabValues"}),this.labValSub=this.store.pipe((0,t.Ys)(x=>(0,n.gk)(x))).subscribe(x=>{this.labValues=x,x.data&&this.selectCategory(x.data[0])})}scrollList(x){const L=this.tabList.nativeElement;if(L.offsetWidth+L.scrollLeft===L.scrollWidth&&!x)return this.hideScroll.right=!0;L.scrollLeft+=x?-100:100,this.hideScroll.left=0===L.scrollLeft,this.hideScroll.right=!1}selectCategory(x){this.activeCategoryId=x.id,this.selectedCategory=x.labValues}ngOnDestroy(){this.labValSub.unsubscribe()}}return M.\u0275fac=function(x){return new(x||M)(u.Y36(t.yh))},M.\u0275cmp=u.Xpm({type:M,selectors:[["qupi-quiz-labvalues"]],viewQuery:function(x,L){if(1&x&&u.Gf(s,5),2&x){let B;u.iGM(B=u.CRH())&&(L.tabList=B.first)}},decls:3,vars:2,consts:[[1,"lab-values"],["class","lab-values-header",4,"ngIf"],["class","lab-value-content",4,"ngIf"],[1,"lab-values-header"],["scrollRef",""],["class","arrow-ab-overlay",3,"click",4,"ngIf"],["class","arrow-ab-overlay overlay-left",3,"click",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"arrow-ab-overlay",3,"click"],[1,"arrow-overlay"],[1,"arrow-ab-overlay","overlay-left",3,"click"],[1,"lab-value-category",3,"click"],[1,"lab-value-content"],[1,"lab-values-container"],[1,"lab-row"],[1,"lab-val-name",3,"ngClass"],["class","lab-val",4,"ngIf"],[4,"ngIf"],[1,"lab-val"],[1,"lab-row","child-row"],[1,"lab-child-row"],[1,"lab-val-child"],[1,"lab-val-child-val"]],template:function(x,L){1&x&&(u.TgZ(0,"div",0),u.YNc(1,c,5,3,"div",1),u.YNc(2,w,3,1,"div",2),u.qZA()),2&x&&(u.xp6(1),u.Q6J("ngIf",L.labValues.data),u.xp6(1),u.Q6J("ngIf",L.selectedCategory))},dependencies:[i.m,l.oO,p.Hw,m.mk,m.sg,m.O5],styles:["[_nghost-%COMP%]{width:100%;display:flex;height:100%;flex-direction:column}.arrow-ab-overlay[_ngcontent-%COMP%]{position:absolute;right:-9px;top:0;width:100px;height:100%;display:flex;align-items:center}.overlay-left[_ngcontent-%COMP%]{left:0;right:auto}.overlay-left[_ngcontent-%COMP%] .arrow-overlay[_ngcontent-%COMP%]{justify-content:flex-start!important;background:linear-gradient(to right,#f9f9f9 0%,transparent 100%)!important}.line-fill-block[_ngcontent-%COMP%]{display:flex;align-items:center}.line-fill-block[_ngcontent-%COMP%] .filler-block[_ngcontent-%COMP%]{width:40px;height:100%;background-color:transparent}.lab-values[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;max-height:100%}.lab-values-header[_ngcontent-%COMP%]{display:flex;width:100%;position:relative;height:40px;padding:10px 0}.lab-values-header[_ngcontent-%COMP%] .arrow-overlay[_ngcontent-%COMP%]{position:fixed;background:linear-gradient(to left,#f9f9f9 0%,transparent 100%);width:100px;height:40px;
1display:flex;align-items:center;justify-content:flex-end}.lab-values-header[_ngcontent-%COMP%] .arrow-overlay[_ngcontent-%COMP%]:hover{cursor:pointer}.lab-values-header[_ngcontent-%COMP%] .arrow-overlay[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{color:#777;font-size:32px;width:32px;height:32px}.lab-values-header[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{border-bottom:4px solid #1da1f2}.lab-values-header[_ngcontent-%COMP%]::-webkit-scrollbar-track{display:none}.lab-values-header[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{display:none}.lab-values-header[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.lab-values-header[_ngcontent-%COMP%] .lab-value-category[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:1.25em;color:#215ca8;font-size:1.3em;white-space:nowrap;word-break:keep-all}.lab-values-header[_ngcontent-%COMP%] .lab-value-category[_ngcontent-%COMP%]:hover{cursor:pointer}.lab-values-header[_ngcontent-%COMP%] .lab-value-category[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{color:#1da1f2}.lab-value-content[_ngcontent-%COMP%]{overflow-y:scroll}.lab-value-content[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#a1bee3}.lab-value-content[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#1c5ba9}.lab-value-content[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.lab-value-content[_ngcontent-%COMP%] .lab-values-container[_ngcontent-%COMP%]{min-width:450px;width:100%;display:flex;flex-direction:column}.lab-value-content[_ngcontent-%COMP%] .lab-values-container[_ngcontent-%COMP%] .lab-row[_ngcontent-%COMP%]{justify-content:space-between;width:100%;margin-bottom:.625em;color:#1c5ba9}.lab-value-content[_ngcontent-%COMP%] .lab-values-container[_ngcontent-%COMP%] .lab-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{width:100%}.lab-value-content[_ngcontent-%COMP%] .lab-values-container[_ngcontent-%COMP%] .lab-row.child-row[_ngcontent-%COMP%]{flex-direction:column}.lab-value-content[_ngcontent-%COMP%] .lab-values-container[_ngcontent-%COMP%] .lab-row.child-row[_ngcontent-%COMP%] .lab-child-row[_ngcontent-%COMP%]{justify-content:space-between;padding:0 1.25em}"]}),M})()},37650:(Q,f,o)=>{"use strict";o.d(f,{j:()=>m});var t=o(67517),n=o(93075),u=o(78372),i=o(8146),l=o(5e3),p=o(65620);let m=(()=>{class s{constructor(g){this.store=g,this.sub=[],this.currentQuestion$=this.store.select(t.WO),this.note=new n.NI}ngOnInit(){this.sub.push(this.currentQuestion$.subscribe(g=>{g&&g.question.questionID!==this.questionID&&(this.questionID=g.question.questionID,this.note.patchValue(g.note,{emitEvent:!1}))}),this.note.valueChanges.pipe((0,u.b)(250)).subscribe(g=>{this.store.dispatch(new i.$8({questionID:this.questionID,text:g}))}))}ngOnDestroy(){this.sub.forEach(g=>g.unsubscribe())}}return s.\u0275fac=function(g){return new(g||s)(l.Y36(p.yh))},s.\u0275cmp=l.Xpm({type:s,selectors:[["qupi-quiz-notepad"]],decls:2,vars:1,consts:[[1,"quiz-notepad"],["placeholder","Your notes",3,"formControl"]],template:function(g,e){1&g&&(l.TgZ(0,"div",0),l._UZ(1,"textarea",1),l.qZA()),2&g&&(l.xp6(1),l.Q6J("formControl",e.note))},dependencies:[n.Fj,n.JJ,n.oH],styles:[".quiz-notepad[_ngcontent-%COMP%]{display:flex}.quiz-notepad[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{height:240px;width:100%;border:0;border-radius:10px;box-shadow:0 6px 15px 2px #dae4f5;padding:1.25em;color:#215ca8;font-family:Lato,sans-serif;font-weight:400}.quiz-notepad[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]::-moz-placeholder{font-size:16px;font-family:Lato,sans-serif;font-weight:400;color:#a1bee3}.quiz-notepad[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]::placeholder{font-size:16px;font-family:Lato,sans-serif;font-weight:400;color:#a1bee3}"]}),s})()},81786:(Q,f,o)=>{"use strict";o.d(f,{J8:()=>u,f3:()=>t,qI:()=>i});const t=l=>!l.quizQuestions.find(p=>!p.answered),u=(l,p)=>l.quizQuestions.findIndex(m=>!m.answered&&l.quizQuestions.indexOf(m)>p);function i(l){return"Can you answer this question?\n\n"+l.text+"\n\n"+l.answers.map((p,m)=>` ${(m+10).toString(36).toUpperCase()}. ${p.text}\n `).join("")}},84980:(Q,f,o)=>{"use strict";o.d(f,{s:()=>P});var t=o(93075),n=o(82349),u=o(50590),i=o(5e3),l=o(65620),p=o(72591),m=o(50094),s=o(39272),r=o(81798),g=o(26747),e=o(39588),c=o(60957),a=o(86657),h=o(69808);function C(w,O){if(1&w){const M=i.EpF();i.TgZ(0,"form",1),i.NdJ("ngSubmit",function(){i.CHM(M);const x=i.oxw();return i.KtG(x.onSubmit(x.issueForm))}),i._UZ(1,"qupi-select",2)(2,"qupi-textarea",3),i.TgZ(3,"qupi-group",4)(4,"qupi-button",5),i._uU(5," Submit"),i.qZA(),i.TgZ(6,"qupi-button",6),i.NdJ("
1click",function(){i.CHM(M);const x=i.oxw();return i.KtG(x.onNoClick())}),i._uU(7," Cancel"),i.qZA()()()}if(2&w){const M=i.oxw();i.Q6J("formGroup",M.issueForm),i.xp6(1),i.Q6J("control",M.issueForm.controls.category)("selections",M.issueTypes)("selectName","name")("selectValue","id"),i.xp6(1),i.Q6J("control",M.issueForm.controls.text)}}let P=(()=>{class w{constructor(M,y,x,L,B,Z,b,N){this.store=M,this.formBuilder=y,this.toastr=x,this.dialogRef=L,this.reportProblemService=B,this.feedbackCategoryService=Z,this.validationService=b,this.data=N,this.sub=[],this.question=N}ngOnInit(){this.getCategories(),this.issueForm=this.createForm(this.question),this.sub.push(this.issueForm.statusChanges.subscribe(()=>this.validationService.setUiErrors(this.issueForm)))}getCategories(){this.feedbackCategoryService.getFeedbackCategories().pipe((0,u.P)()).subscribe(M=>{this.issueTypes=M})}createForm(M){return this.formBuilder.group({category:[void 0,t.kI.required],text:void 0,question:[M.id,t.kI.required]})}ngOnDestroy(){this.sub.forEach(M=>M.unsubscribe())}onNoClick(){this.dialogRef.close()}onSubmit(M){if(M.invalid)return Object.values(M.controls).forEach(y=>y.markAsTouched()),Object.values(M.controls).forEach(y=>y.markAsDirty()),void this.validationService.setUiErrors(M);this.reportProblemService.createFeedback(M.getRawValue()).pipe((0,u.P)()).subscribe(y=>{this.toastr.success("Thank You! Your feedback have been sent successfully"),this.dialogRef.close()},y=>{this.validationService.setApiErrors(y,this.issueForm)})}}return w.\u0275fac=function(M){return new(M||w)(i.Y36(l.yh),i.Y36(t.qu),i.Y36(p.k),i.Y36(n.so),i.Y36(m.w),i.Y36(s.B),i.Y36(r.R),i.Y36(n.WI))},w.\u0275cmp=i.Xpm({type:w,selectors:[["qupi-report-question-problem"]],decls:1,vars:1,consts:[[3,"formGroup","ngSubmit",4,"ngIf"],[3,"formGroup","ngSubmit"],["label","Issue type","placeholder","Choose issue",3,"control","selections","selectName","selectValue"],["label","Enter your message","placeholder","Enter your message","width","100%",3,"control"],[1,"action-buttons"],["width","150px","theme","dodger-blue","type","submit",1,"submit-button"],["width","150px",3,"click"]],template:function(M,y){1&M&&i.YNc(0,C,8,6,"form",0),2&M&&i.Q6J("ngIf",y.issueForm)},dependencies:[g.U,e.H,c.r,a.m,h.O5,t._Y,t.JL,t.sg],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%] .action-buttons[_ngcontent-%COMP%]{margin-top:3em;justify-content:center}@media screen and (max-width: 768px){[_nghost-%COMP%] .action-buttons[_ngcontent-%COMP%]{margin-top:2em}}[_nghost-%COMP%] .submit-button[_ngcontent-%COMP%]{margin-right:1.25em}@media screen and (max-width: 768px){[_nghost-%COMP%] .submit-button[_ngcontent-%COMP%]{margin-right:0}}"]}),w})()},29073:(Q,f,o)=>{"use strict";o.d(f,{h:()=>c});var t=o(96034),n=o(65620),u=o(3070),i=o(5e3),l=o(82349);function p(a,h){1&a&&i._UZ(0,"qupi-saved-quiz-card",7),2&a&&i.Q6J("quiz",h.$implicit)}function m(a,h){1&a&&(i.TgZ(0,"qupi-content",8),i._uU(1," No quizzes saved. "),i.qZA())}const s=function(a,h,C,P){return{wrapper:a,"pending-container":h,"wrapper-one-item":C,"wrapper-two-items":P}};function r(a,h){if(1&a&&(i.TgZ(0,"div",4),i.YNc(1,p,1,1,"qupi-saved-quiz-card",5),i.YNc(2,m,2,0,"qupi-content",6),i.qZA()),2&a){const C=h.$implicit;i.Q6J("ngClass",i.l5B(3,s,C.length>0,0===C.length,1===C.length,2===C.length)),i.xp6(1),i.Q6J("ngForOf",C),i.xp6(1),i.Q6J("ngIf",0===C.length)}}function g(a,h){if(1&a&&(i.TgZ(0,"mat-dialog-content"),i.YNc(1,r,3,8,"div",3),i.ALo(2,"async"),i.qZA()),2&a){const C=i.oxw();i.xp6(1),i.Q6J("ngIf",i.lcZ(2,1,C.savedQuizzes$))}}function e(a,h){1&a&&(i.TgZ(0,"div",9),i._UZ(1,"mat-spinner",10),i.qZA()),2&a&&(i.xp6(1),i.Q6J("diameter",75))}let c=(()=>{class a{constructor(C,P){this.dialogRef=C,this.store=P,this.savedQuizzes$=this.store.pipe((0,n.Ys)(w=>w.app.savedQuizzes)),this.savedQuizzesPending$=this.store.pipe((0,n.Ys)((0,u.Ho)("[CORE] GET_SAVED_QUIZZES")))}ngOnInit(){this.store.dispatch(new t.Ae)}onExit(){this.dialogRef.close()}}return a.\u0275fac=function(C){return new(C||a)(i.Y36(l.so),i.Y36(n.yh))}
1,a.\u0275cmp=i.Xpm({type:a,selectors:[["qupi-saved-quizzes-dialog"]],decls:6,vars:6,consts:[[1,"icon-close",3,"click"],[4,"ngIf"],["class","pending-container",4,"ngIf"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"quiz",4,"ngFor","ngForOf"],["class","saved-quizzes-empty",4,"ngIf"],[3,"quiz"],[1,"saved-quizzes-empty"],[1,"pending-container"],["color","dodger-blue",3,"diameter"]],template:function(C,P){1&C&&(i.TgZ(0,"mat-icon",0),i.NdJ("click",function(){return P.onExit()}),i._uU(1," close "),i.qZA(),i.YNc(2,g,3,3,"mat-dialog-content",1),i.ALo(3,"async"),i.YNc(4,e,2,1,"div",2),i.ALo(5,"async")),2&C&&(i.xp6(2),i.Q6J("ngIf",!i.lcZ(3,2,P.savedQuizzesPending$)),i.xp6(2),i.Q6J("ngIf",i.lcZ(5,4,P.savedQuizzesPending$)))},styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%]{color:#215ca8}[_nghost-%COMP%] .wrapper[_ngcontent-%COMP%]{font-weight:5;font-size:.75em;padding:15px;display:flex;flex-wrap:wrap;flex-direction:column;margin:auto}@media (min-width: 768px){[_nghost-%COMP%] .wrapper[_ngcontent-%COMP%]{flex-direction:row;min-width:468px;max-width:468px}}@media (min-width: 1200px){[_nghost-%COMP%] .wrapper[_ngcontent-%COMP%]{min-width:718px;max-width:718px}}[_nghost-%COMP%] .wrapper-two-items[_ngcontent-%COMP%]{min-width:468px;max-width:468px}[_nghost-%COMP%] .wrapper-two-items[_ngcontent-%COMP%] qupi-saved-quiz-card[_ngcontent-%COMP%]{width:36%!important}[_nghost-%COMP%] .wrapper-one-item[_ngcontent-%COMP%]{min-width:initial;max-width:initial}[_nghost-%COMP%] .wrapper-one-item[_ngcontent-%COMP%] qupi-saved-quiz-card[_ngcontent-%COMP%]{width:100%!important}[_nghost-%COMP%] .icon-close[_ngcontent-%COMP%]{width:100%;font-size:36px;margin-bottom:30px;cursor:pointer;text-align:right}[_nghost-%COMP%] .pending-container[_ngcontent-%COMP%]{min-height:338px;display:flex;height:100%;justify-content:center;align-items:center;width:300px}[_nghost-%COMP%] .pending-container[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%]{margin-top:-20px}[_nghost-%COMP%] .pending-container[_ngcontent-%COMP%] qupi-content[_ngcontent-%COMP%]{margin-top:-30px}@media (min-width: 768px){[_nghost-%COMP%] .pending-container[_ngcontent-%COMP%]{min-width:468px;max-width:100%}}"]}),a})()},8146:(Q,f,o)=>{"use strict";o.d(f,{$8:()=>W,AN:()=>u,Ak:()=>F,Bx:()=>e,CJ:()=>P,CR:()=>N,Dk:()=>y,E:()=>et,Fe:()=>k,H6:()=>m,JS:()=>O,Jm:()=>M,KJ:()=>$,Qm:()=>B,Wh:()=>c,Xs:()=>b,bU:()=>A,dr:()=>K,eZ:()=>ct,eh:()=>x,ev:()=>h,fF:()=>X,h8:()=>C,l:()=>r,rm:()=>w,sX:()=>_t,tE:()=>a,uQ:()=>s,xw:()=>Z});class u{constructor(){this.type="[QUIZ] ResetState"}}class m{constructor(D){this.payload=D,this.type="[QUIZ] CREATE_CUSTOM_QUIZ"}}class s{constructor(D){this.payload=D,this.type="[QUIZ] CREATE_CUSTOM_QUIZ_SUCCESS"}}class r{constructor(D){this.payload=D,this.type="[QUIZ] CREATE_CUSTOM_QUIZ_FAIL"}}class e{constructor(D){this.payload=D,this.type="[QUIZ] RestoreQuizSuccess"}}class c{constructor(D){this.payload=D,this.type="[QUIZ] RestoreQuizFail"}}class a{constructor(D){this.payload=D,this.type="[QUIZ] CREATE_QUICK_QUIZ"}}class h{constructor(D){this.payload=D,this.type="[QUIZ] CREATE_QUICK_QUIZ_SUCCESS"}}class C{constructor(D){this.payload=D,this.type="[QUIZ] CREATE_QUICK_QUIZ_FAIL"}}class P{constructor(D){this.payload=D,this.type="[QUIZ] GET_QUESTIONS"}}class w{constructor(D){this.payload=D,this.type="[QUIZ] GET_QUESTIONS_SUCCESS"}}class O{constructor(D){this.payload=D,this.type="[QUIZ] GET_QUESTIONS_FAIL"}}class M{constructor(D){this.payload=D,this.type="[QUIZ] SEND_ANSWER"}}class y{constructor(D){this.payload=D,this.type="[QUIZ] SEND_ANSWER_SUCCESS"}}class x{constructor(D){this.payload=D,this.type="[QUIZ] SEND_ANSWER_FAIL"}}class B{constructor(D){this.payload=D,this.type="[QUIZ] SKIP_QUESTION_SUCCESS"}}class Z{constructor(D){this.payload=D,this.type="[QUIZ] SKIP_QUESTION_FAIL"}}class b{constructor(D){this.payload=D,this.type="[QUIZ] NEXT_QUESTION"}}class N{constructor(D){this.payload=D,this.type="[QUIZ] NEXT_SUMUP_QUESTION"}}class K{constructor(D){this.payload=D,this.type="[QUIZ] GET_QUIZ_SUMUP"}}class A{constructor(D){this.payload=D,this.type="[QUIZ] GET_QUIZ_SUMUP_SUCCESS"}}class ${constructor(D){this.payload=D,this.type="[QUIZ] GET_QUIZ_SUMUP_FAIL"}}class W{constructor(D){this.payload=D,this.type="[QUIZ] SET_QUESTION_NOTE"}}class _t{constructor(D){this.payload=D,this.type="[QUIZ] SET_QUESTION_NOTE_SUCCESS"}}class k{constructor(D){this.payload=D,this.type="[QUIZ] SET_QUESTION_NOTE_FAIL"}}class ct{constructor(D){this.payload=D,this.type="[QUIZ] SHOW_EXPLANATION"}}class et{constructor(D){this.payload=D,this.type="[QUIZ] SHOW_SUMUP_EXPLANATION"}}class X{constructor(D){this.payload=D,this.type="[QUIZ] AddStartQuestionTimeSuccess"}}class F{constructor(D){this.payload=D,this.type="[QUIZ] AddStartQuestionTimeFail"}}},67517:(Q,f,o)=>{"use strict";o.d(f,{$s:()=>p,W:()=>l,WO:()=>m,cI:()=>r,pO:()=>s});var t=o(81786),n=o(21816),u=o(42945);
1const i={id:null,size:null,mode:null,token:null,quizQuestions:[],timer:null,sumup:{pending:!1,errors:null},restoredQuiz:{},pending:{},errors:{},expandedAnswers:[],selectedAnswerID:null,questionMachine:{currentState:"start",states:{start:{selectAnswer:"answerSelected",skip:"start"},answerSelected:{start:"start",skip:"start",next:"start",submit:"answerSubmitted",submitLastQuestion:"quizDone"},answerSubmitted:{next:"start",skip:"start"},quizDone:{finalize:"sumup"},sumup:{tryAgain:"start"}}},navbarSelectedProp:null};function l(c=i,a){switch(a.type){case"[QUIZ] SwtichMachineState":return Object.assign(Object.assign({},c),{questionMachine:Object.assign(Object.assign({},c.questionMachine),{currentState:e(a.payload,c.questionMachine)})});case"[QUIZ] SelectAnswer":return Object.assign(Object.assign({},c),{selectedAnswerID:a.payload});case"[QUIZ] CREATE_QUICK_QUIZ":case"[QUIZ] CREATE_CUSTOM_QUIZ":return Object.assign(Object.assign({},c),{pending:Object.assign(Object.assign({},c.pending),{"[QUIZ] CREATE_CUSTOM_QUIZ":!0}),errors:Object.assign(Object.assign({},c.pending),{"[QUIZ] CREATE_CUSTOM_QUIZ":null})});case"[QUIZ] CREATE_QUICK_QUIZ_FAIL":case"[QUIZ] CREATE_CUSTOM_QUIZ_FAIL":return Object.assign(Object.assign({},c),{pending:Object.assign(Object.assign({},c.pending),{"[QUIZ] CREATE_CUSTOM_QUIZ":!1}),errors:Object.assign(Object.assign({},c.pending),{"[QUIZ] CREATE_CUSTOM_QUIZ":a.payload})});case"[QUIZ] RestoreQuiz":return Object.assign(Object.assign({},i),{pending:Object.assign(Object.assign({},c.pending),{"[QUIZ] RestoreQuiz":!0}),errors:Object.assign(Object.assign({},c.pending),{"[QUIZ] RestoreQuiz":null})});case"[QUIZ] RestoreQuizSuccess":case"[QUIZ] CREATE_QUICK_QUIZ_SUCCESS":case"[QUIZ] CREATE_CUSTOM_QUIZ_SUCCESS":{let O;try{O=(0,n.Z)(a.payload.token)}catch(M){}return Object.assign(Object.assign(Object.assign({},c),a.payload),{timer:O&&O.exp,pending:Object.assign(Object.assign({},c.pending),{"[QUIZ] CREATE_CUSTOM_QUIZ":!1}),errors:Object.assign(Object.assign({},c.pending),{"[QUIZ] CREATE_CUSTOM_QUIZ":null})})}case"[QUIZ] GET_QUESTIONS":return Object.assign(Object.assign({},c),{pending:Object.assign(Object.assign({},c.pending),{"[QUIZ] GET_QUESTIONS":!0}),errors:Object.assign(Object.assign({},c.pending),{"[QUIZ] GET_QUESTIONS":null})});case"[QUIZ] SaveQuizTime":case"[QUIZ] SaveQuizTimeFail":case"[QUIZ] SaveQuizTimeSuccess":return Object.assign(Object.assign({},c),{timer:null});case"[QUIZ] GET_QUESTIONS_FAIL":return Object.assign(Object.assign({},c),{expandedAnswers:[],pending:Object.assign(Object.assign({},c.pending),{"[QUIZ] GET_QUESTIONS":!1}),errors:Object.assign(Object.assign({},c.pending),{"[QUIZ] GET_QUESTIONS":a.payload})});case"[QUIZ] GET_QUESTIONS_SUCCESS":return Object.assign(Object.assign({},c),{quizQuestions:a.payload,currentQuestionIndex:a.payload[0].answer?(0,t.J8)({quizQuestions:a.payload},0):0,pending:Object.assign(Object.assign({},c.pending),{"[QUIZ] GET_QUESTIONS":!1}),errors:Object.assign(Object.assign({},c.pending),{"[QUIZ] GET_QUESTIONS":null})});case"[QUIZ] SEND_ANSWER":return Object.assign(Object.assign({},c),{expandedAnswers:[a.payload.data.answerID],pending:Object.assign(Object.assign({},c.pending),{"[QUIZ] SEND_ANSWER":!0}),errors:Object.assign(Object.assign({},c.pending),{"[QUIZ] SEND_ANSWER":null})});case"[QUIZ] SEND_ANSWER_FAIL":return Object.assign(Object.assign({},c),{pending:Object.assign(Object.assign({},c.pending),{"[QUIZ] SEND_ANSWER":!1}),errors:Object.assign(Object.assign({},c.pending),{"[QUIZ] SEND_ANSWER":a.payload})});case"[QUIZ] SEND_ANSWER_SUCCESS":{let O=c.quizQuestions.find(x=>x.question.questionID===a.payload.parentAction.payload.data.questionID);const M=c.quizQuestions.indexOf(O);O=Object.assign(Object.assign(Object.assign({},O),a.payload.response),{answered:a.payload.parentAction.payload.data.answerID,question:Object.assign(Object.assign({},O.question),{answers:O.question.answers.map(x=>{if(c.mode===u.LJ.Test)return x;const{answer:L,correctAnswer:B}=a.payload.response;return x.id===L.id?Object.assign(Object.assign(Object.assign({},x),L),{expanded:!0}):x.id===B.id?Object.assign(Object.assign(Object.assign({},x),B),{expanded:!0}):x})})});const y=c.quizQuestions.map((x,L)=>L===M?O:x);return Object.assign(Object.assign({},c),{questionMachine:Object.assign(Object.assign({},c.questionMachine),{currentState:e("submit",c.questionMachine)}),quizQuestions:y,pending:Object.assign(Object.assign({},c.pending),{"[QUIZ] SEND_ANSWER":!1}),errors:Object.assign(Object.assign({},c.pending),{"[QUIZ] SEND_ANSWER":null})})}case"[QUIZ] SHOW_EXPLANATION":const{quizQuestion:h,answerID:C}=a.payload;return Object.assign(Object.assign({},c),{quizQuestions:c.quizQuestions.map(O=>O.id===h.id?Object.assign(Object.assign({},O),{question:Object.assign(Object.assign({},O.question),{answers:O.question.answers.map(M=>M.id===C?Object.assign(Object.assign({},M),{showExplanation:!0}
1):M)})}):O)});case"[QUIZ] SHOW_SUMUP_EXPLANATION":{const{quizQuestion:O,answerID:M}=a.payload;return Object.assign(Object.assign({},c),{sumup:Object.assign(Object.assign({},c.sumup),{quiz:c.sumup.quiz.map(y=>y.id===O.id?Object.assign(Object.assign({},y),{question:Object.assign(Object.assign({},y.question),{answers:y.question.answers.map(x=>x.id===M?Object.assign(Object.assign({},x),{showExplanation:!0}):x)})}):y)})})}case"[QUIZ] GET_QUIZ_SUMUP":return Object.assign(Object.assign({},c),{questionMachine:Object.assign(Object.assign({},c.questionMachine),{currentState:e("finalize",c.questionMachine)}),sumup:{pending:!0,errors:null}});case"[QUIZ] GET_QUIZ_SUMUP_SUCCESS":return Object.assign(Object.assign({},c),{sumup:Object.assign({currentQuestionIndex:0,pending:!1,errors:null},a.payload)});case"[QUIZ] GET_QUIZ_SUMUP_FAIL":return Object.assign(Object.assign({},c),{sumup:{pending:!1,errors:a.payload}});case"[QUIZ] NEXT_QUESTION":return Object.assign(Object.assign({},c),{questionMachine:Object.assign(Object.assign({},c.questionMachine),{currentState:e("next",c.questionMachine)}),currentQuestionIndex:a.payload.index});case"[QUIZ] NEXT_SUMUP_QUESTION":return Object.assign(Object.assign({},c),{sumup:Object.assign(Object.assign({},c.sumup),{currentQuestionIndex:a.payload.index})});case"[QUIZ] SET_QUESTION_NOTE":const{questionID:P,text:w}=a.payload;return Object.assign(Object.assign({},c),{quizQuestions:c.quizQuestions.map(O=>O.question.questionID===P?Object.assign(Object.assign({},O),{note:w}):O)});case"[QUIZ] ChangeSelectedProp":return Object.assign(Object.assign({},c),{navbarSelectedProp:a.payload.itemNumber});case"[QUIZ] ResetState":return i;default:return c}}const p=c=>c.quizModule.quiz,m=c=>c.quizModule.quiz.quizQuestions[c.quizModule.quiz.currentQuestionIndex],s=c=>c.quizModule.quiz.sumup,r=c=>a=>a.quizModule.quiz.pending[c],e=(c,a)=>{const h=a.currentState;return a.states[h][c]?a.states[h][c]:a.currentState}},41927:(Q,f,o)=>{"use strict";o.d(f,{_:()=>l});var t=o(92340),n=o(5e3),u=o(40520);const i=t.N.api;let l=(()=>{class p{constructor(s){this.http=s}checkPropsString(s,r){const g=[];return s&&g.push(`discipline=${s}`),r&&g.push(`bodySystem=${r}`),g.join("&")}getAttemptedStatistics(s,r,g,e){const c=this.checkPropsString(g,e);return this.http.get(`${i.baseURL}/api/v1/statistics/attempted${s||r?"/":""}${s||""}${r?"avg":""}?${c.length>0?`${c}`:""}`)}getProgressStatistics(s,r,g,e,c){const a=g?`from=${g.from}`:"",h=this.checkPropsString(e,c);return this.http.get(`${i.baseURL}/api/v1/statistics/progress${s||r?"/":""}${s||""}${r?"avg":""}?${a?a+"&":""}${h.length>0?`${h}`:""}`)}getFirstTryStatistics(s,r,g,e){return this.http.get(`${i.baseURL}/api/v1/statistics/first-try${s?`/${s}`:""}?${r?`from=${r.from}&to=${r.to}`:""}${this.checkPropsString(g,e)}`)}getSelectedAverage(s,r,g,e){const c=r?`from=${r.from}`:"";return this.http.get(`${i.baseURL}/api/v1/statistics/${s}?${c?c+"&":""}${this.checkPropsString(g,e)}`)}getShareStatistics(s){return this.http.get(`${i.baseURL}/api/v1/share/myShares`,{params:s})}}return p.\u0275fac=function(s){return new(s||p)(n.LFG(u.eN))},p.\u0275prov=n.Yz7({token:p,factory:p.\u0275fac}),p})()},80985:(Q,f,o)=>{"use strict";function t(n){return n.map(u=>Object.assign(Object.assign({},u),{value:u.id})),n}o.d(f,{L:()=>t})},33089:(Q,f,o)=>{"use strict";o.d(f,{B:()=>C});var t=o(65620),n=o(80985),u=o(39841),i=o(18505),l=o(5e3);function p(P,w){1&P&&(l.TgZ(0,"qupi-group",6),l._UZ(1,"mat-spinner",7),l.qZA()),2&P&&(l.xp6(1),l.Q6J("diameter","100"))}function m(P,w){if(1&P&&l._UZ(0,"qupi-statistics-attempted-overall",13),2&P){const O=l.oxw(2);l.Q6J("chartData",O.chartsData.attempted.overall.data)}}function s(P,w){if(1&P&&l._UZ(0,"qupi-statistics-first-try-overall",13),2&P){const O=l.oxw(2);l.Q6J("chartData",O.chartsData.firstTry.overall.data)}}function r(P,w){if(1&P){const O=l.EpF();l.TgZ(0,"qupi-linear-chart-responsive",14),l.NdJ("filterChange",function(y){l.CHM(O);const x=l.oxw(2);return l.KtG(x.setFilters(y))}),l.qZA()}if(2&P){const O=l.oxw(2);l.Q6J("title","Progress in last 3 months")("lineChartData",O.linearChartsData.staticChart)}}
1function g(P,w){if(1&P&&(l.TgZ(0,"qupi-group",8)(1,"qupi-group",9),l.YNc(2,m,1,1,"qupi-statistics-attempted-overall",10),l.YNc(3,s,1,1,"qupi-statistics-first-try-overall",10),l.qZA(),l.TgZ(4,"qupi-group",11)(5,"qupi-card"),l.YNc(6,r,1,2,"qupi-linear-chart-responsive",12),l.qZA()()()),2&P){const O=l.oxw();l.xp6(2),l.Q6J("ngIf",O.chartsData.attempted.overall.data),l.xp6(1),l.Q6J("ngIf",O.chartsData.firstTry.overall.data),l.xp6(3),l.Q6J("ngIf",O.chartsData.progress.overall.data&&O.chartsData.average.progress.data)}}function e(P,w){if(1&P){const O=l.EpF();l.TgZ(0,"qupi-group",15)(1,"qupi-statistics-attempted-in",16),l.NdJ("change",function(y){l.CHM(O);const x=l.oxw();return l.KtG(x.fetchSpecificVals(y))}),l.qZA(),l.TgZ(2,"qupi-statistics-first-try-in",17),l.NdJ("change",function(y){l.CHM(O);const x=l.oxw();return l.KtG(x.fetchSpecificVals(y))}),l.qZA()()}if(2&P){const O=l.oxw();l.xp6(1),l.Q6J("dictionary",O.dictionary)("chartDiscipline",O.selectedDiscipline)("filteredDictionary",O.filteredDictionaries)("chartData",O.chartsData.attempted.chartPie),l.xp6(1),l.Q6J("dictionary",O.dictionary)("chartDiscipline",O.selectedDiscipline)("chartData",O.chartsData.firstTry.chartLine)("filteredDictionary",O.filteredDictionaries)}}function c(P,w){if(1&P&&l._UZ(0,"qupi-statistics-facebook-shares",18),2&P){const O=l.oxw();l.Q6J("shareStats",O.shares)}}function a(P,w){if(1&P){const O=l.EpF();l.TgZ(0,"qupi-statistics-progress",21),l.NdJ("change",function(y){l.CHM(O);const x=l.oxw(2);return l.KtG(x.fetchSpecificVals(y))}),l.qZA()}if(2&P){const O=l.oxw(2);l.Q6J("dictionary",O.dictionary)("filteredDictionary",O.filteredDictionaries)("chartDiscipline",O.selectedDiscipline)("linearChartData",O.linearChartsData.dynamicChart)}}function h(P,w){if(1&P&&(l.TgZ(0,"qupi-group",19),l.YNc(1,a,1,4,"qupi-statistics-progress",20),l._UZ(2,"qupi-statistics-quick-quiz")(3,"qupi-affiliate-program-card")(4,"qupi-submit-question-card"),l.qZA()),2&P){const O=l.oxw();l.xp6(1),l.Q6J("ngIf",O.chartsData.progress.chartLinear.data&&O.chartsData.average.selected.data)}}let C=(()=>{class P{constructor(O){this.store=O,this.$disciplines=this.store.select(M=>M.dictionaries.disciplines),this.$bodySystems=this.store.select(M=>M.dictionaries.bodySystems),this.$filteredDictionaries=this.store.pipe((0,t.Ys)(M=>M.dictionaries.filteredDictionaries)),this.$shares=this.store.pipe((0,t.Ys)(M=>M.statistics.shares)),this.chartsStatistics$=this.store.select(M=>M.statistics),this.sub=[],this.dictionary={disciplines:[],bodySystems:[]},this.filteredDictionaries={bodySystems:[],disciplines:[]},this.linearChartsData={staticChart:null,dynamicChart:null},this.statisticsDispatches=()=>{this.store.dispatch({type:"[STATS] GET_ATTEMPTED_DATA_AVERAGE"}),this.store.dispatch({type:"[STATS] GET_FIRST_TRY_DATA_AVERAGE"}),this.store.dispatch({type:"[STATS] GET_PROGRESS_DATA_AVERAGE",payload:{date:{from:P.initialDate(3)}}}),this.store.dispatch({type:"[STATS] GET_PROGRESS_DATA_AVERAGE_OVERALL",payload:{date:{from:P.initialDate(3)}}}),this.store.dispatch({type:"[DICT] GetDisciplines"}),this.store.dispatch({type:"[DICT] GetBodySystems"}),this.store.dispatch({type:"[DICT] FilterBodySystems"}),this.store.dispatch({type:"[DICT] FilterDisciplines"}),this.store.dispatch({type:"[STATS] GET_USER_SHARES",payload:{period:"month",month:(new Date).getMonth(),year:(new Date).getFullYear(),groupBy:"day"}})}}static initialDate(O){const M=new Date;return M.setMonth(O?M.getMonth()-O:M.getMonth()),M.toISOString()}setFilters(O){this.store.dispatch({type:"[STATS] GET_PROGRESS_DATA_AVERAGE_OVERALL",payload:{date:{from:P.initialDate(O)}}}),this.store.dispatch({type:"[STATS] GET_PROGRESS_DATA_AVERAGE",payload:{date:{from:P.initialDate(O)}}})}ngOnInit(){this.statisticsDispatches(),this.sub.push((0,u.a)([this.$disciplines.pipe((0,i.b)(O=>this.selectRandomDiscipline(O.data))),this.$bodySystems,this.chartsStatistics$,this.$filteredDictionaries,this.$shares]).subscribe(([O,M,y,x,L])=>{this.shares=L,M.data&&O.data&&(this.dictionary.disciplines=(0,n.L)(O.data),this.dictionary.bodySystems=(0,n.L)(M.data)),x.bodySystems&&x.disciplines&&(this.filteredDictionaries.bodySystems=x.bodySystems,this.filteredDictionaries.disciplines=x.disciplines),this.fetchedDictionaries=this.filteredDictionaries.bodySystems.length&&this.filteredDictionaries.disciplines.length&&this.dictionary.disciplines.length&&this.dictionary.bodySystems.length,this.chartsData=y,y.progress.overall.data&&y.average.progress.data&&(this.linearChartsData.staticChart={chartData:[this.chartsData.progress.overall.data,this.chartsData.average.progress.data],chartFilterDate:this.chartsData.progress.overall.selectedDate}),y.progress.chartLinear.data&&y.average.selected.data&&(this.linearChartsData.dynamicChart={chartData:[this.chartsData.progress.chartLinear.data,this.chartsData.average.selected.data],chartFilterDate:this.chartsData.progress.chartLinear.selectedDate})}))}fetchValues(O){this.store.dispatch({type:"[STATS] GET_ATTEMPTED_DATA_AVERAGE",payload:Object.assign({},O)})}fetchSpecificVals(O){switch(O.dispatch){case"attempted":return this.store.dispatch({type:"[STATS] GET_ATTEMPTED_DATA_SELECTED",payload:Object.assign({},O)});case"firstTry":return this.store.dispatch({type:"[STATS] GET_FIRST_TRY_DATA_SELECTED",payload:Object.assign({},O)});case"linear":return this.store.dispatch({type:"[STATS] GET_AVERAGE_DATA_SELECTED",payload:Object.assign({},O)}),this.store.dispatch({type:"[STATS] GET_PROGRESS_DATA_SELECTED",payload:Object.assign({},O)})}}selectRandomDiscipline(O){!O||(this.selectedDiscipline=O[Math.floor(Math.random()*Math.floor(O.length))].id,this.fetchSpecificVals({dispatch:"attempted",field:"chartPie",discipline:this.selectedDiscipline}),this.fetchSpecificVals({dispatch:"firstTry",field:"chartLine",discipline:this.selectedDiscipline}),this.fetchSpecificVals({dispatch:"linear",field:"chartLinear",discipline:this.selectedDiscipline,url:"progress/avg",dates:{from:P.initialDate(3)}}))}ngOnDestroy(){this.sub.forEach(O=>O.unsubscribe())}}return P.\u0275fac=function(O){return new(O||P)(l.Y36(t.yh))},P.\u0275cmp=l.Xpm({type:P,selectors:[["qupi-statistics"]],decls:6,vars:5,consts:[["class","qupi-loading",4,"ngIf"],["class","statistics-header",4,"ngIf"],["class","statistics-by-categories",4,"ngIf"],[1,"fb-sh
1ares"],[3,"shareStats",4,"ngIf"],["class","statistics-progress-and-quiz",4,"ngIf"],[1,"qupi-loading"],["color","dodger-blue",3,"diameter"],[1,"statistics-header"],[1,"statistics-components"],[3,"chartData",4,"ngIf"],[1,"linear-chart"],["sideText","Progress over time. <br /> Average score.",3,"title","lineChartData","filterChange",4,"ngIf"],[3,"chartData"],["sideText","Progress over time. <br /> Average score.",3,"title","lineChartData","filterChange"],[1,"statistics-by-categories"],[3,"dictionary","chartDiscipline","filteredDictionary","chartData","change"],[3,"dictionary","chartDiscipline","chartData","filteredDictionary","change"],[3,"shareStats"],[1,"statistics-progress-and-quiz"],[3,"dictionary","filteredDictionary","chartDiscipline","linearChartData","change",4,"ngIf"],[3,"dictionary","filteredDictionary","chartDiscipline","linearChartData","change"]],template:function(O,M){1&O&&(l.YNc(0,p,2,1,"qupi-group",0),l.YNc(1,g,7,3,"qupi-group",1),l.YNc(2,e,3,8,"qupi-group",2),l.TgZ(3,"qupi-group",3),l.YNc(4,c,1,1,"qupi-statistics-facebook-shares",4),l.qZA(),l.YNc(5,h,5,1,"qupi-group",5)),2&O&&(l.Q6J("ngIf",!M.fetchedDictionaries),l.xp6(1),l.Q6J("ngIf",M.fetchedDictionaries),l.xp6(1),l.Q6J("ngIf",M.fetchedDictionaries),l.xp6(2),l.Q6J("ngIf",M.shares.data||M.shares.error),l.xp6(1),l.Q6J("ngIf",M.fetchedDictionaries))},styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%] {display:flex}@media (min-width: 1200px){[_nghost-%COMP%] qupi-affiliate-program-card{margin-bottom:0}[_nghost-%COMP%] .affiliate-program{height:100%!important}}@media (max-width: 768px){[_nghost-%COMP%] qupi-statistics-attempted-in{flex-basis:100%}[_nghost-%COMP%] qupi-statistics-attempted-in .attempted-in-container{max-width:100%}[_nghost-%COMP%] qupi-statistics-attempted-in .attempted-in-select-wrapper{flex-basis:100%!important}[_nghost-%COMP%] qupi-statistics-attempted-in .qupi-attempted-in-chart-wrapper{flex-basis:100%!important;max-width:100%}[_nghost-%COMP%] .statistics-progress-and-quiz{flex-wrap:wrap!important}[_nghost-%COMP%] .statistics-progress-and-quiz qupi-statistics-progress{flex-basis:100%!important;margin-right:0}}[_nghost-%COMP%] .first-try-in-container .first-try-in-main{flex-direction:column}@media (min-width: 1200px){[_nghost-%COMP%] .first-try-in-container .first-try-in-main{flex-direction:row}}[_nghost-%COMP%] .statistics-footer{flex-wrap:nowrap;flex-direction:column}@media (min-width: 426px){[_nghost-%COMP%] .statistics-footer{flex-direction:row}}[_nghost-%COMP%] .statistics-footer qupi-affiliate-program-card, [_nghost-%COMP%] .statistics-footer qupi-submit-question-card{flex-basis:100%}@media (min-width: 426px){[_nghost-%COMP%] .statistics-footer qupi-affiliate-program-card, [_nghost-%COMP%] .statistics-footer qupi-submit-question-card{flex-basis:50%}}@media (min-width: 426px){[_nghost-%COMP%] .statistics-footer qupi-affiliate-program-card{margin-right:1.875em;margin-bottom:0!important}}[_nghost-%COMP%]{display:block;color:#215ca8}[_nghost-%COMP%] .qupi-loading[_ngcontent-%COMP%]{width:100%;height:70vh;justify-content:center;align-items:center}[_nghost-%COMP%] .linear-chart[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .linear-chart[_ngcontent-%COMP%] qupi-card[_ngcontent-%COMP%]{flex-direction:column;width:100%;position:relative}[_nghost-%COMP%] .linear-chart[_ngcontent-%COMP%] qupi-card[_ngcontent-%COMP%] qupi-heading[_ngcontent-%COMP%]{margin-bottom:1.875em}[_nghost-%COMP%] .linear-chart[_ngcontent-%COMP%] qupi-card[_ngcontent-%COMP%] qupi-content[_ngcontent-%COMP%]{max-width:140px}@media (min-width: 426px){[_nghost-%COMP%] .linear-chart[_ngcontent-%COMP%]{margin-top:1.875em}}@media (min-width: 1200px){[_nghost-%COMP%] .linear-chart[_ngcontent-%COMP%]{max-width:50%;width:50%;margin-top:0;margin-left:1.875em}}[_nghost-%COMP%] .statistics[_ngcontent-%COMP%]{flex-direction:column}[_nghost-%COMP%] .statistics-header[_ngcontent-%COMP%]{margin-bottom:.625em;flex-wrap:wrap}@media (min-width: 426px){[_nghost-%COMP%] .statistics-header[_ngcontent-%COMP%]{margin-bottom:1.875em}}@media (min-width: 1200px){[_nghost-%COMP%] .statistics-header[_ngcontent-%COMP%]{flex-wrap:nowrap}[_nghost-%COMP%] .statistics-header[_ngcontent-%COMP%] qupi-linear-chart-responsive[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%] .statistics-header[_ngcontent-%COMP%] qupi-group[_ngcontent-%COMP%] qupi-statistics-attempted-overall[_ngcontent-%COMP%], [_nghost-%COMP%] .statistics-header[_ngcontent-%COMP%] qupi-group[_ngcontent-%COMP%] qupi-statistics-first-try-overall[_ngcontent-%COMP%], [_nghost-%COMP%] .statistics-header[_ngcontent-%COMP%] qupi-card[_ngcontent-%COMP%] qupi-statistics-attempted-overall[_ngcontent-%COMP%], [_nghost-%COMP%] .statistics-header[_ngcontent-%COMP%] qupi-card[_ngcontent-%COMP%] qupi-statistics-first-try-overall[_ngcontent-%COMP%]{width:100%}@media (min-width: 426px){[_nghost-%COMP%] .statistics-header[_ngcontent-%COMP%] qupi-group[_ngcontent-%COMP%] qupi-statistics-attempted-overall[_ngcontent-%COMP%], [_nghost-%COMP%] .statistics-header[_ngcontent-%COMP%] qupi-group[_ngcontent-%COMP%] qupi-statistics-first-try-overall[_ngcontent-%COMP%], [_nghost-%COMP%] .statistics-header[_ngcontent-%COMP%] qupi-card[_ngcontent-%COMP%] qupi-statistics-attempted-overall[_ngcontent-%COMP%], [_nghost-%COMP%] .statistics-header[_ngcontent-%COMP%] qupi-card[_ngcontent-%COMP%] qupi-statistics-first-try-overall[_ngcontent-%COMP%]{width:50%;height:100%}}[_nghost-%COMP%] .statistics-components[_ngcontent-%COMP%]{flex-wrap:nowrap;flex-direction:column;flex-basis:100%}@media (min-width: 426px){[_nghost-%COMP%] .statistics-components[_ngcontent-%COMP%]{flex-direction:row}}@media (min-width: 1200px){[_nghost-%COMP%] .statistics-components[_ngcontent-%COMP%]{flex-basis:auto;width:50%}}[_nghost-%COMP%] .statistics-by-categories[_ngcontent-%COMP%]{margin-bottom:.625em;flex-wrap:nowrap;flex-direction:column}@media (min-width: 426px){[_nghost-%COMP%] .statistics-by-categories[_ngcontent-%COMP%]{flex-direction:row;margin-bottom:1.875em}}[_nghost-%COMP%] .statistics-by-categories[_ngcontent-%COMP%] qupi-statistics-attempted-in[_ngcontent-%COMP%], [_nghost-%COMP%] .statistics-by-categories[_ngcontent-%COMP%] qupi-statistics-first-try-in[_ngcontent-%COMP%]{flex-basis:100%!important}
1[_nghost-%COMP%] .statistics-progress-and-quiz[_ngcontent-%COMP%]{justify-content:space-between}[_nghost-%COMP%] .statistics-progress-and-quiz[_ngcontent-%COMP%] qupi-statistics-progress[_ngcontent-%COMP%], [_nghost-%COMP%] .statistics-progress-and-quiz[_ngcontent-%COMP%] qupi-statistics-quick-quiz[_ngcontent-%COMP%], [_nghost-%COMP%] .statistics-progress-and-quiz[_ngcontent-%COMP%] qupi-affiliate-program-card[_ngcontent-%COMP%], [_nghost-%COMP%] .statistics-progress-and-quiz[_ngcontent-%COMP%] qupi-submit-question-card[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%] .statistics-progress-and-quiz[_ngcontent-%COMP%] qupi-submit-question-card[_ngcontent-%COMP%]{margin-top:.625em}@media (min-width: 426px){[_nghost-%COMP%] .statistics-progress-and-quiz[_ngcontent-%COMP%] qupi-statistics-progress[_ngcontent-%COMP%]{order:1}[_nghost-%COMP%] .statistics-progress-and-quiz[_ngcontent-%COMP%] qupi-submit-question-card[_ngcontent-%COMP%]{order:2;flex-basis:calc(50% - .9375em);margin-bottom:1.875em}[_nghost-%COMP%] .statistics-progress-and-quiz[_ngcontent-%COMP%] qupi-submit-question-card[_ngcontent-%COMP%] qupi-card[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .statistics-progress-and-quiz[_ngcontent-%COMP%] qupi-statistics-quick-quiz[_ngcontent-%COMP%]{order:3;flex-basis:calc(50% - .9375em);margin-bottom:1.875em}[_nghost-%COMP%] .statistics-progress-and-quiz[_ngcontent-%COMP%] qupi-statistics-quick-quiz[_ngcontent-%COMP%] qupi-card[_ngcontent-%COMP%]{flex-basis:100%;width:100%}[_nghost-%COMP%] .statistics-progress-and-quiz[_ngcontent-%COMP%] qupi-affiliate-program-card[_ngcontent-%COMP%]{order:4;flex-basis:100%}}@media (min-width: 1200px){[_nghost-%COMP%] .statistics-progress-and-quiz[_ngcontent-%COMP%] qupi-statistics-progress[_ngcontent-%COMP%]{flex-basis:calc(75% - .9375em)}[_nghost-%COMP%] .statistics-progress-and-quiz[_ngcontent-%COMP%] qupi-submit-question-card[_ngcontent-%COMP%]{flex-basis:calc(50% - .9375em);margin-top:1.875em;margin-bottom:0;order:3}[_nghost-%COMP%] .statistics-progress-and-quiz[_ngcontent-%COMP%] qupi-statistics-quick-quiz[_ngcontent-%COMP%]{order:2;flex-basis:calc(25% - .9375em);margin-bottom:0}[_nghost-%COMP%] .statistics-progress-and-quiz[_ngcontent-%COMP%] qupi-affiliate-program-card[_ngcontent-%COMP%]{margin-top:1.875em;flex-basis:calc(50% - .9375em)}}[_nghost-%COMP%] .fb-shares[_ngcontent-%COMP%]{margin-bottom:.625em}@media (min-width: 1200px){[_nghost-%COMP%] .fb-shares[_ngcontent-%COMP%]{margin-bottom:1.875em}}"]}),P})()},90640:(Q,f,o)=>{"use strict";o.d(f,{s:()=>l});var t=o(92340),n=o(5e3),u=o(40520);const i=t.N.api;let l=(()=>{class p{constructor(s){this.http=s}submit(s){return this.http.post(i.baseURL+"/api/v1/user-questions",s)}getUserQuestions(){return this.http.get(i.baseURL+"/api/v1/user-questions")}}return p.\u0275fac=function(s){return new(s||p)(n.LFG(u.eN))},p.\u0275prov=n.Yz7({token:p,factory:p.\u0275fac}),p})()},33583:(Q,f,o)=>{"use strict";o.d(f,{Pl:()=>i,eL:()=>l});var t=o(5e3),n=o(1966);let i=(()=>{class p extends n.en{constructor(s,r){super(),this._componentFactoryResolver=s,this._viewContainerRef=r,this.attached=new t.vpe,this._isInitialized=!1}get attachedRef(){return this._attachedRef}get portal(){return this._attachedPortal}set portal(s){this.hasAttached()&&!s&&!this._isInitialized||(this.hasAttached()&&super.detach(),s&&super.attach(s),this._attachedPortal=s)}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(s){s.injector&&(this._componentFactoryResolver=s.injector.get(t._Vd)),s.setAttachedHost(this);const r=null!=s.viewContainerRef?s.viewContainerRef:this._viewContainerRef,g=this._componentFactoryResolver.resolveComponentFactory(s.component),e=r.createComponent(g,r.length,s.injector||r.parentInjector);return super.setDisposeFn(()=>e.destroy()),this._attachedPortal=s,this._attachedRef=e,this.attached.emit(e),e}attachTemplatePortal(s){s.setAttachedHost(this);const r=this._viewContainerRef.createEmbeddedView(s.templateRef,s.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=s,this._attachedRef=r,this.attached.emit(r),r}}
1return p.\u0275fac=function(s){return new(s||p)(t.Y36(t._Vd),t.Y36(t.s_b))},p.\u0275dir=t.lG2({type:p,selectors:[["","cdkPortalOutlet",""],["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet","cdkPortalHost"],features:[t.qOj]}),p})(),l=(()=>{class p{}return p.\u0275fac=function(s){return new(s||p)},p.\u0275mod=t.oAB({type:p}),p.\u0275inj=t.cJS({}),p})()},1966:(Q,f,o)=>{"use strict";function n(){throw Error("Host already has a portal attached")}o.d(f,{en:()=>g,C5:()=>s});class m{get isAttached(){return null!=this._attachedHost}attach(c){return null==c&&function l(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),c.hasAttached()&&n(),this._attachedHost=c,c.attach(this)}detach(){let c=this._attachedHost;null==c?function p(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,c.detach())}setAttachedHost(c){this._attachedHost=c}}class s extends m{constructor(c,a,h){super(),this.component=c,this.viewContainerRef=a,this.injector=h}}class r extends m{constructor(c,a,h){super(),this.templateRef=c,this.viewContainerRef=a,this.context=h}get origin(){return this.templateRef.elementRef}attach(c,a=this.context){return this.context=a,super.attach(c)}detach(){return this.context=void 0,super.detach()}}class g{constructor(){this._isDisposed=!1}hasAttached(){return!!this._attachedPortal}attach(c){return c||function t(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&n(),this._isDisposed&&function u(){throw Error("This PortalOutlet has already been disposed")}(),c instanceof s?(this._attachedPortal=c,this.attachComponentPortal(c)):c instanceof r?(this._attachedPortal=c,this.attachTemplatePortal(c)):void function i(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(c){this._disposeFn=c}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}},59595:(Q,f,o)=>{"use strict";o.d(f,{i:()=>L});var t=o(82349),n=o(93075),u=o(92340),i=o(5e3),l=o(89259),p=o(95023),m=o(72591),s=o(44619),r=o(69808),g=o(60501),e=o(60957),c=o(52934),a=o(52842),h=o(59447),C=o(86657);function P(B,Z){if(1&B){const b=i.EpF();i.TgZ(0,"qupi-group",7),i._UZ(1,"qupi-text-input",8),i.TgZ(2,"qupi-button",9),i.NdJ("click",function(){i.CHM(b);const K=i.oxw();return i.KtG(K.copyToClipboard())}),i._uU(3," Copy to clipboard "),i.qZA(),i.TgZ(4,"qupi-button",10),i.NdJ("onClick",function(){i.CHM(b);const K=i.oxw();return i.KtG(K.shareFB())}),i._uU(5," Share on facebook "),i._UZ(6,"span",11),i.qZA()()}if(2&B){const b=i.oxw();i.xp6(1),i.Q6J("control",b.refCode)("width","100%")}}let w=(()=>{class B{constructor(b,N,K,A,$){this.dialogRef=b,this.data=N,this.fbShare=K,this.clipboardService=A,this.toastService=$,this.refCode=new n.NI({value:"",disabled:!0})}ngOnInit(){this.refLink=`${u.N.URL}/register?affiliate=${this.data}`,this.refCode.patchValue(this.refLink)}shareFB(){this.fbShare.openShareDialog("xSmall","Here is a Link to Start your FREE Trial on qupi.com the World's Largest Medical Question Bank. Practice your Medical Knowledge !",this.refLink,"leaderboards")}copyToClipboard(){this.clipboardService.copyFromContent(this.refLink),this.toastService.info("Copied to clipboard!")}}return B.\u0275fac=function(b){return new(b||B)(i.Y36(t.so),i.Y36(t.WI),i.Y36(l.x),i.Y36(p.Yv),i.Y36(m.k))},B.\u0275cmp=i.Xpm({type:B,selectors:[["qupi-invite-dialog"]],decls:10,vars:2,consts:[[1,"invite-friend-dialog"],[1,"invite-friend-text"],["size","xlg","fontWeight","extra-bold","textAlign","center","justifyContent","center"],["qupiHeadingUnderline",""],["inlineSVG","/assets/images/svg/waving-hand.svg",1,"invite-icon-svg"],["justifyContent","center"],["class","invite-friend-links",4,"ngIf"],[1,"invite-friend-links"],["placeholder","PROMO_CODE",3,"control","width"],["theme","mid-blue-reversed",3,"click"],["theme","mid-blue",3,"onClick"],["inlineSVG","/assets/images/svg/icon-fb.svg",1,"invite-icon"]],template:function(b,N){1&b&&(i.TgZ(0,"qupi-group",0)(1,"qupi-group",1)(2,"qupi-heading",2),i._uU(3," Invite a"),i.TgZ(4,"span",3),i._uU(5," friend"),i.qZA()(),i._UZ(6,"span",4),i.TgZ(7,"qupi-content",5),i._uU(8),i.qZA()(),i.YNc(9,P,7,2,"qupi-group",6),i.qZA()),2&b&&(i.xp6(8),i.hij(" ",N.data?"Loving QUPI? Use the links below to invite a friend to join in - you can practice your medical knowledge together and compare your scores!":"You need to buy subscription first to be able to obtain referral link"," "),i.xp6(1),i.Q6J("ngIf",N.data))},dependencies:[s.d$,r.O5,g.t,e.r,c.B,a.S,h.k,C.m],styles:['.d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}@media (min-width: 768px){[_nghost-%COMP%] qupi-text-input{width:50%}}[_nghost-%COMP%] qupi-text-input .basic-input{width:100%}[_nghost-%COMP%] qupi-text-input .basic-input input{text-align:center;color:#215ca8}[_nghost-%COMP%] qupi-text-input .basic-input input[type=text i]:disabled{background-color:#fff!important}.invite-friend-dialog[_ngcontent-%COMP%]{font-family:Lato,"sans-serif";justify-content:center;max-height:100%;overflow:auto}.invite-friend-text[_ngcontent-%COMP%]{flex-direction:column}.invite-friend-text[_ngcontent-%COMP%] qupi-heading[_ngcontent-%COMP%]{color:#215ca8;margin-bottom:1.875em}.invite-friend-text[_ngcontent-%COMP%] .invite-icon-svg[_ngcontent-%COMP%]{text-align:center;margin-bottom:1.875em}.invite-friend-text[_ngcontent-%COMP%] qupi-content[_ngcontent-%COMP%]{color:#215ca8;text-align:center;margin-bottom:1.875em}.invite-friend-links[_ngcontent-%COMP%]{flex-direction:column;width:100%;align-items:center}.invite-friend-links[_ngcontent-%COMP%] qupi-button[_ngcontent-%COMP%]{margin-bottom:1.25em;width:100%}@media (min-width: 768px){.invite-friend-links[_ngcontent-%COMP%] qupi-button[_ngcontent-%COMP%]{width:50%}}.invite-friend-links[_ngcontent-%COMP%] qupi-button[_ngcontent-%COMP%]:nth-child(4){margin-bottom:0}.invite-friend-links[_ngcontent-%COMP%] qupi-text-input[_ngcontent-%COMP%]{width:100%}.invite-friend-links[_ngcontent-%COMP%] .invite-icon[_ngcontent-%COMP%]{display:flex;align-items:center;align-self:flex-end;float:right;height:100%}']}),B})();var O=o(11632),M=o(65620),y=o(50590),x=o(18857);let L=(()=>{class B{constructor(b,N){this.dialog=b,this.store=N}openInviteDialog(){this.store.pipe((0,M.Ys)(O.$v),(0,y.P)()).subscribe(b=>{this.dialog.open(w,{width:"600px",panelClass:"invite-dialog",data:b.affiliateCode})})}ngOnInit(){}}return B.\u0275fac=function(b){return new(b||B)(i.Y36(t.uw),i.Y36(M.yh))},B.\u0275cmp=i.Xpm({type:B,selectors:[["qupi-affiliate-program-card"]],decls:11,vars:4,consts:[[1,"affiliate-program",3,"padding"],[1,"affiliate-program-container"],[1,"affiliate-program-header"],["inlineSVG","/assets/images/svg/heart.svg",1,"svg-ico-text"],[3,"fontWeight"],[1,"affiliate-program-footer"],[1,"affiliate-program-content",3,"size"],["width","220px",3,"theme","onClick"]],template:function(b,N){1&b&&(i.TgZ(0,"qupi-card",0)(1,"qupi-group",1)(2,"qupi-group",2),i._UZ(3,"span",3),i.TgZ(4,"qupi-heading",4),i._uU(5," Spread the word "),i.qZA()(),i.TgZ(6,"qupi-group",5)(7,"qupi-content",6),i._uU(8," Help spread the word and collect bonuses and rewards! Discover the QUPI affiliate program "),i.qZA(),i.TgZ(9,"qupi-button",7),i.NdJ("onClick",function(){return N.openInviteDialog()}),i._uU(10," Invite a friend! "),i.qZA()()()()),2&b&&(i.Q6J("padding","md"),i.xp6(4),i.Q6J("fontWeight","extra-bold"),i.xp6(3),i.Q6J("size","sm"),i.xp6(2),i.Q6J("theme","dodger-blue"))},dependencies:[e.r,x.A,c.B,a.S,C.m,s.d$],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:40px;height:40px;width:40px;margin-right:.3125em}[_nghost-%COMP%] .affiliate-program[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;width:100%}[_nghost-%COMP%] .affiliate-program-header[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center}[_nghost-%COMP%] .affiliate-program-container[_ngcontent-%COMP%]{flex-basis:100%;display:flex;flex-direction:column;justify-content:space-between}@media (min-width: 1440px){[_nghost-%COMP%] .affiliate-program-container[_ngcontent-%COMP%] qupi-button[_ngcontent-%COMP%]{width:215px}}[_nghost-%COMP%] .affiliate-program-footer[_ngcontent-%COMP%]{flex-direction:column}@media (min-width: 1440px){[_nghost-%COMP%] .affiliate-program-footer[_ngcontent-%COMP%]{flex-direction:row;justify-content:space-between;align-items:flex-end}}[_nghost-%COMP%] .affiliate-program-content[_ngcontent-%COMP%]{margin-top:1.25em;margin-bottom:1.25em}@media (min-width: 1440px){[_nghost-%COMP%] .affiliate-program-content[_ngcontent-%COMP%]{width:225px}}[_nghost-%COMP%] .dashboard-footer-header-underlined-span[_ngcontent-%COMP%]{margin-right:5px}"]}),B})()},35466:(Q,f,o)=>{"use strict";o.d(f,{g:()=>s});var t=o(5e3),n=o(60957),u=o(52934),i=o(52842),l=o(59447),p=o(86657),m=o(82349);let s=(()=>
1{class r{constructor(){}ngOnInit(){}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=t.Xpm({type:r,selectors:[["qupi-apple-iap-subscription"]],decls:15,vars:2,consts:[[1,"apple-iap-subscription"],[3,"size","fontWeight"],["qupiHeadingUnderline",""],["justifyContent","left",1,"pricing-subheader"],["href","https://support.apple.com/en-us/HT202039","target","_blank"],["mat-dialog-close",""]],template:function(e,c){1&e&&(t.TgZ(0,"qupi-group",0)(1,"qupi-heading",1),t._uU(2," Ongoing "),t.TgZ(3,"span",2),t._uU(4,"Apple subscription"),t.qZA()(),t.TgZ(5,"qupi-content",3)(6,"p"),t._uU(7," You have an ongoing subscription which was created on an Apple device. Before you proceed you need to cancel that subscription using your Apple ID account you used to subscribe to the current plan. "),t.qZA(),t.TgZ(8,"p"),t._uU(9," Please refer to "),t.TgZ(10,"a",4),t._uU(11,"the Apple's guide on canceling subscriptions"),t.qZA(),t._uU(12,". "),t.qZA()(),t.TgZ(13,"qupi-button",5),t._uU(14,"OK"),t.qZA()()),2&e&&(t.xp6(1),t.Q6J("size","lg")("fontWeight","extra-bold"))},dependencies:[n.r,u.B,i.S,l.k,p.m,m.ZT],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%]{color:#215ca8}[_nghost-%COMP%] .apple-iap-subscription[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:100%}[_nghost-%COMP%] .apple-iap-subscription-span[_ngcontent-%COMP%]{margin-left:.9375em}[_nghost-%COMP%] qupi-button[_ngcontent-%COMP%]{width:215px}"]}),r})()},573:(Q,f,o)=>{"use strict";o.d(f,{K:()=>u});var t=o(5e3),n=o(52934);let u=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(p){return new(p||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["qupi-coming-soon-dialog"]],decls:3,vars:2,consts:[[1,"coming-soon"],[3,"size","fontWeight"]],template:function(p,m){1&p&&(t.TgZ(0,"div",0)(1,"qupi-heading",1),t._uU(2," Coming soon\u2026 "),t.qZA()()),2&p&&(t.xp6(1),t.Q6J("size","xlg")("fontWeight","extra-bold"))},dependencies:[n.B],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%]{color:#215ca8}[_nghost-%COMP%] .coming-soon[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:100%}"]}),i})()},13495:(Q,f,o)=>{"use strict";o.d(f,{z:()=>s});var t=o(5e3),n=o(82349),u=o(60957),i=o(52934),l=o(86657),p=o(69808);function m(r,g){if(1&r&&(t.TgZ(0,"qupi-heading"),t._uU(1),t.qZA()),2&r){const e=t.oxw();
1t.xp6(1),t.hij("",e.title," ")}}let s=(()=>{class r{constructor(e){this.dialogRef=e}ngOnInit(){}}return r.\u0275fac=function(e){return new(e||r)(t.Y36(n.so))},r.\u0275cmp=t.Xpm({type:r,selectors:[["qupi-confirmation-dialog"]],decls:8,vars:2,consts:[[4,"ngIf"],[1,"message"],[1,"confirm-buttons-group"],["width","100px","theme","dodger-blue",3,"click"],["width","100px","theme","mid-blue-reversed",3,"click"]],template:function(e,c){1&e&&(t.YNc(0,m,2,1,"qupi-heading",0),t.TgZ(1,"qupi-heading",1),t._uU(2),t.qZA(),t.TgZ(3,"qupi-group",2)(4,"qupi-button",3),t.NdJ("click",function(){return c.dialogRef.close(!0)}),t._uU(5," Confirm "),t.qZA(),t.TgZ(6,"qupi-button",4),t.NdJ("click",function(){return c.dialogRef.close()}),t._uU(7," Cancel "),t.qZA()()),2&e&&(t.Q6J("ngIf",c.title),t.xp6(2),t.hij(" ",c.message," "))},dependencies:[u.r,i.B,l.m,p.O5],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%]{color:#215ca8;display:flex;flex-direction:column;padding-right:1em;padding-left:1em}[_nghost-%COMP%] .message[_ngcontent-%COMP%], [_nghost-%COMP%] .title[_ngcontent-%COMP%]{margin-top:1em;margin-bottom:1em}[_nghost-%COMP%] .confirm-buttons-group[_ngcontent-%COMP%]{justify-content:center;margin-bottom:.75em}[_nghost-%COMP%] .confirm-buttons-group[_ngcontent-%COMP%] qupi-button[_ngcontent-%COMP%]:not(last-child){margin-right:.625em;margin-top:1em;margin-bottom:.3125em}"]}),r})()},69666:(Q,f,o)=>{"use strict";o.d(f,{$:()=>c});var t=o(70655),n=o(5e3),u=o(82349),i=o(60957),l=o(52934),p=o(52842),m=o(59447),s=o(86657),r=o(25245),g=o(35357),e=o(44619);let c=class{constructor(h,C){this.data=h,this.dialogRef=C}ngOnInit(){}};c.\u0275fac=function(h){return new(h||c)(n.Y36(u.WI),n.Y36(u.so))},c.\u0275cmp=n.Xpm({type:c,selectors:[["qupi-days-left-dialog"]],decls:13,vars:3,consts:[[1,"days-left-dialog"],["mat-dialog-close","",1,"dialog-close-button"],["size","xlg",3,"fontWeight"],["qupiHeadingUnderline",""],["textAlign","center"],["inlineSVG","/assets/images/svg/days-left.svg",1,"days-left-icon"],["theme","dodger-blue","routerLink","/pricing",3,"width","click"]],template:function(h,C){1&h&&(n.TgZ(0,"qupi-group",0)(1,"button",1)(2,"mat-icon"),n._uU(3,"close"),n.qZA()(),n.TgZ(4,"qupi-heading",2),n._uU(5),n.TgZ(6,"span",3),n._uU(7," days left"),n.qZA()(),n.TgZ(8,"qupi-content",4),n._uU(9,"Your subscription expires soon. Select a pricing plan to enjoy unrestricted access and practice your medical knowledge on the go"),n.qZA(),n._UZ(10,"span",5),n.TgZ(11,"qupi-button",6),n.NdJ("click",function(){return C.dialogRef.close()}),n._uU(12,"See pricing plans"),n.qZA()()),2&h&&(n.xp6(4),n.Q6J("fontWeight","extra-bold"),n.xp6(1),n.hij("You have ",C.data.daysLeft," "),n.xp6(6),n.Q6J("width","255px"))},dependencies:[i.r,l.B,p.S,m.k,s.m,r.Hw,u.ZT,g.rH,e.d$],styles:["[_nghost-%COMP%]{color:#215ca8;max-width:540px;width:100%;display:flex}[_nghost-%COMP%] .days-left-dialog[_ngcontent-%COMP%]{justify-content:center;flex-direction:column;align-items:center}[_nghost-%COMP%] .days-left-dialog[_ngcontent-%COMP%] .dialog-close-button[_ngcontent-%COMP%]{align-self:flex-end;border:0;background:transparent;color:#1c5ba9!important}[_nghost-%COMP%] .days-left-dialog[_ngcontent-%COMP%] .dialog-close-button[_ngcontent-%COMP%]:hover{cursor:pointer}[_nghost-%COMP%] .days-left-dialog[_ngcontent-%COMP%] qupi-heading[_ngcontent-%COMP%]{margin-bottom:1.875em}[_nghost-%COMP%] .days-left-dialog[_ngcontent-%COMP%] qupi-content[_ngcontent-%COMP%]{margin-bottom:1.875em}[_nghost-%COMP%] .days-left-dialog[_ngcontent-%COMP%] .days-left-icon[_ngcontent-%COMP%]{margin-bottom:1.875em}"]}),c=(0,t.gn)([(0,n.IIB)("mat-dialog-close")],c)},32618:(Q,f,o)=>{"use strict";o.d(f,{A:()=>s});var t=o(5e3),n=o(60957),u=o(52934),i=o(52842),l=o(59447),p=o(86657),m=o(82349);let s=(()=>
1{class r{constructor(){}ngOnInit(){}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=t.Xpm({type:r,selectors:[["qupi-google-play-iap-subscription"]],decls:15,vars:2,consts:[[1,"google-play-iap-subscription"],[3,"size","fontWeight"],["qupiHeadingUnderline",""],["justifyContent","left",1,"pricing-subheader"],["href","https://support.google.com/googleplay/answer/7018481","target","_blank"],["mat-dialog-close",""]],template:function(e,c){1&e&&(t.TgZ(0,"qupi-group",0)(1,"qupi-heading",1),t._uU(2," Ongoing "),t.TgZ(3,"span",2),t._uU(4,"Google Play subscription"),t.qZA()(),t.TgZ(5,"qupi-content",3)(6,"p"),t._uU(7," You have an ongoing subscription which was created on an Android device. Before you proceed you need to cancel that subscription using your Google Play account you used to subscribe to the current plan. "),t.qZA(),t.TgZ(8,"p"),t._uU(9," Please refer to "),t.TgZ(10,"a",4),t._uU(11,"the Google support website"),t.qZA(),t._uU(12," to find out how to cancel a subscription. "),t.qZA()(),t.TgZ(13,"qupi-button",5),t._uU(14,"OK"),t.qZA()()),2&e&&(t.xp6(1),t.Q6J("size","lg")("fontWeight","extra-bold"))},dependencies:[n.r,u.B,i.S,l.k,p.m,m.ZT],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%]{color:#215ca8}[_nghost-%COMP%] .google-play-iap-subscription[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:100%}[_nghost-%COMP%] .google-play-iap-subscription-span[_ngcontent-%COMP%]{margin-left:.9375em}[_nghost-%COMP%] qupi-button[_ngcontent-%COMP%]{width:215px}"]}),r})()},79886:(Q,f,o)=>{"use strict";o.d(f,{F:()=>l});var t=o(5e3),n=o(77093),u=o(44619);const i=["*"];let l=(()=>{class p{constructor(){}ngOnInit(){}}return p.\u0275fac=function(s){return new(s||p)},p.\u0275cmp=t.Xpm({type:p,selectors:[["qupi-tutorial-step"]],inputs:{description:"description",icon:"icon"},ngContentSelectors:i,decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","center center"],[1,"description"],[1,"icon",3,"inlineSVG"]],template:function(s,r){1&s&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.TgZ(2,"div",1),t._uU(3),t.qZA(),t._UZ(4,"span",2),t.qZA()),2&s&&(t.xp6(3),t.hij(" ",r.description," "),t.xp6(1),t.Q6J("inlineSVG",r.icon))},dependencies:[n.xw,n.Wh,u.d$],styles:["[_nghost-%COMP%]{color:#215ca8}[_nghost-%COMP%] svg{height:180px;width:180px}[_nghost-%COMP%] svg defs path{fill:#1c5ba9}[_nghost-%COMP%] svg g g{stroke:#1c5ba9}.description[_ngcontent-%COMP%]{margin:1.25em 0;text-align:center}"]}),p})()},23350:(Q,f,o)=>{"use strict";o.d(f,{g:()=>w});const t=[{description:"Congratulations - you\u2019re in! At QUPI we\u2019re changing the face of medical education by making it easier for you to pass your exams and become a doctor. You account gives you access to both the desktop platform and mobile app. Use these tools to practice your medical knowledge with easy, fast and relevant quizzes you can take whenever you like.",icon:"/assets/images/svg/waving-hand.svg"},{description:"Just have a few minutes? Take a quiz comprised of five randomly generated questions covering the medical disciplines / body systems available for your plan.",icon:"/assets/images/svg/quick.svg"},{description:"Study time! Build your own quiz by selecting the body systems and medical disciplines you want to focus on, and choosing your difficulty level.",icon:"/assets/images/svg/custom.svg"},{description:"Want to revise a quiz that you built in the past? We save your past 10 quizzes here so you can go back, revise and improve your score.",icon:"/assets/images/svg/save.svg"},{description:"Track your progress with an array of stats and graphs that will keep you motivated.",icon:"/assets/images/svg/stats-v2.svg"},{description:"See how you compare with other medical students around the world, and notice your ranking climb as QUPI helps you improve your skills.",icon:"/assets/images/svg/prize.svg"},{description:"Your turn to ask the questions? First, check out our FAQ to see if someone else has gotten their first. After that, use our support ticket system for important queries, or our Facebook Page if you just want to say hi.",icon:"/assets/images/svg/qa.svg"},{description:"Now get started and enjoy!",icon:"/assets/images/svg/succes.svg"}];var n=o(5e3),u=o(82349),i=o(60957),l=o(52934),p=o(59447),m=o(92081),s=o(69808),r=o(79886);const g=["stepper"];function e(O,M){if(1&O&&(n.TgZ(0,"qupi-tutorial-step",6)(1,"qupi-heading",7),n._uU(2," Welcome to "),n.TgZ(3,"span",8),n._uU(4," QUPI"),n.qZA()()()),2&O){const y=n.oxw();n.Q6J("description",y.steps[0].description)("icon",y.steps[0].icon)}}function c(O,M){if(1&O&&(n.TgZ(0,"mat-horizontal-stepper",9,10)(2,"mat-step")(3,"qupi-tutorial-step",6)(4,"qupi-heading",7)(5,"span",8),n._uU(6,"Quick"),n.qZA(),n._uU(7," Quiz mode "),n.qZA()()(),n.TgZ(8,"mat-step")(9,"qupi-tutorial-step",6)(10,"qupi-heading",7)(11,"span",8),n._uU(12,"Custom"),n.qZA(),n._uU(13," Quiz mode "),n.qZA()()(),n.TgZ(14,"mat-step")(15,"qupi-tutorial-step",6)(16,"qupi-heading",7)(17,"span",8),n._uU(18,"Saved"),n.qZA(),n._uU(19," Quizzes "),n.qZA()()(),n.TgZ(20,"mat-step")(21,"qupi-tutorial-step",6)(22,"qupi-heading",7)(23,"span",8),n._uU(24,"Statistics"),n.qZA()()()(),n.TgZ(25,"mat-step")(26,"qupi-tutorial-step",6)(27,"qupi-heading",7)(28,"
1span",8),n._uU(29,"Leaderboard"),n.qZA()()()(),n.TgZ(30,"mat-step")(31,"qupi-tutorial-step",6)(32,"qupi-heading",7)(33,"span",8),n._uU(34,"Help"),n.qZA()()()()()),2&O){const y=n.oxw();n.Q6J("linear",!0),n.xp6(3),n.Q6J("description",y.steps[1].description)("icon",y.steps[1].icon),n.xp6(6),n.Q6J("description",y.steps[2].description)("icon",y.steps[2].icon),n.xp6(6),n.Q6J("description",y.steps[3].description)("icon",y.steps[3].icon),n.xp6(6),n.Q6J("description",y.steps[4].description)("icon",y.steps[4].icon),n.xp6(5),n.Q6J("description",y.steps[5].description)("icon",y.steps[5].icon),n.xp6(5),n.Q6J("description",y.steps[6].description)("icon",y.steps[6].icon)}}function a(O,M){if(1&O&&(n.TgZ(0,"qupi-tutorial-step",6)(1,"qupi-heading",7),n._uU(2," That's\xa0"),n.TgZ(3,"span",8),n._uU(4,"all"),n.qZA()()()),2&O){const y=n.oxw();n.Q6J("description",y.steps[7].description)("icon",y.steps[7].icon)}}function h(O,M){if(1&O&&n.GkF(0,11),2&O){n.oxw();const y=n.MAs(1);n.Q6J("ngTemplateOutlet",y)}}function C(O,M){if(1&O&&n.GkF(0,11),2&O){n.oxw();const y=n.MAs(3);n.Q6J("ngTemplateOutlet",y)}}function P(O,M){if(1&O&&n.GkF(0,11),2&O){n.oxw();const y=n.MAs(5);n.Q6J("ngTemplateOutlet",y)}}let w=(()=>{class O{constructor(y){this.dialogRef=y,this.steps=t,this.stage=0,this.stageMeta={0:{btnText:"Tell me more about it!",action:()=>{this.stage=1}},1:{btnText:"Next",action:x=>{5===x.selectedIndex&&(this.stage=2),this.stepper.next()}},2:{btnText:"Yay! Let's do it!",action:()=>{this.dialogRef.close()}}}}next(y={}){this.stageMeta[this.stage].action(y)}getLabel(y={}){return y&&5===y.selectedIndex?"What's next?":this.stageMeta[this.stage].btnText}}return O.\u0275fac=function(y){return new(y||O)(n.Y36(u.so))},O.\u0275cmp=n.Xpm({type:O,selectors:[["qupi-tutorial"]],viewQuery:function(y,x){if(1&y&&n.Gf(g,5),2&y){let L;n.iGM(L=n.CRH())&&(x.stepper=L.first)}},decls:12,vars:5,consts:[["welcomeTmpl",""],["steperTmpl",""],["finishedTmpl",""],[3,"ngSwitch"],[3,"ngTemplateOutlet",4,"ngSwitchCase"],["theme","dodger-blue","width","225px",1,"action-button","d-block",3,"onClick"],[3,"description","icon"],["size","xlg","fontWeight","extra-bold"],["qupiHeadingUnderline",""],[3,"linear"],["stepper",""],[3,"ngTemplateOutlet"]],template:function(y,x){1&y&&(n.YNc(0,e,5,2,"ng-template",null,0,n.W1O),n.YNc(2,c,35,13,"ng-template",null,1,n.W1O),n.YNc(4,a,5,2,"ng-template",null,2,n.W1O),n.ynx(6,3),n.YNc(7,h,1,1,"ng-container",4),n.YNc(8,C,1,1,"ng-container",4),n.YNc(9,P,1,1,"ng-container",4),n.BQk(),n.TgZ(10,"qupi-button",5),n.NdJ("onClick",function(){return x.next(x.stepper)}),n._uU(11),n.qZA()),2&y&&(n.xp6(6),n.Q6J("ngSwitch",x.stage),n.xp6(1),n.Q6J("ngSwitchCase",0),n.xp6(1),n.Q6J("ngSwitchCase",1),n.xp6(1),n.Q6J("ngSwitchCase",2),n.xp6(2),n.Oqu(x.getLabel(x.stepper)))},dependencies:[i.r,l.B,p.k,m.C0,m.Vq,s.tP,s.RF,s.n9,r.F],styles:[".mat-stepper-horizontal[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse;align-items:center}[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center}[_nghost-%COMP%] .mat-horizontal-stepper-header{height:auto;padding:0}[_nghost-%COMP%] .mat-stepper-horizontal-line{display:none}[_nghost-%COMP%] .mat-step-label{min-width:0}[_nghost-%COMP%] .mat-step-icon, [_nghost-%COMP%] .mat-step-icon-not-touched{border:1px solid #43b3f7;height:10px;width:10px;background-color:#43b3f7}[_nghost-%COMP%] .mat-step-icon mat-icon, [_nghost-%COMP%] .mat-step-icon span, [_nghost-%COMP%] .mat-step-icon-not-touched mat-icon, [_nghost-%COMP%] .mat-step-icon-not-touched span{display:none}[_nghost-%COMP%] .mat-step-header .mat-step-icon-not-touched{background-color:transparent}.action-button[_ngcontent-%COMP%]{margin-top:1.875em}"]}),O})()},33021:(Q,f,o)=>{"use strict";o.d(f,{H:()=>m});var t=o(82349),n=o(5e3),u=o(23322),i=o(69808);const l=["imageInput"],p=function(){return{width:"100%",height:"auto"}};let m=(()=>{class s{constructor(g){this.data=g}ngAfterViewInit(){this.styles=this.image.nativeElement.width>=this.image.nativeElement.height?{width:"auto",height:"100%"}:{width:"100%",height:"auto"}}}return s.\u0275fac=function(g){return new(g||s)(n.Y36(t.WI))},s.\u0275cmp=n.Xpm({type:s,selectors:[["qupi-image-dialog"]],viewQuery:function(g,e){if(1&g&&n.Gf(l,7),2&g){let c;n.iGM(c=n.CRH())&&(e.image=c.first)}},decls:2,vars:3,consts:[["alt","question image",3,"src","ngStyle"],["imageInput",""]],template:function(g,e){1&g&&n._UZ(0,"img",0,1),2&g&&n.Q6J("src",e.data,n.LSH)("ngStyle",e.styles||n.DdM(2,p))},dependencies:[u.Zl,i.PC],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%]{display:flex;width:100%;height:100%;margin:0 auto}[_nghost-%COMP%] img[_ngcontent-%COMP%]{margin:0 auto}"]}),s})()},28555:(Q,f,o)=>{"use strict";o.d(f,{z:()=>Xt});var t=o(65620),n=o(35357),u=o(39300),i=o(13842),l=o(37650),p=o(16926);const m=[{label:"Dashboard",routerLink:"/dashboard",iconPath:"/assets/images/svg/dashboard.svg"},{label:"My account",routerLink:"/account",iconPath:"/assets/images/svg/myaccount.svg"},{label:"Leaderboards",routerLink:"/leaderboards",iconPath:"/assets/images/svg/leaderboards.svg"},{label:"Statistics",routerLink:"/statistics",iconPath:"/assets/images/svg/stats-bold.svg"},{label:"question",routerLink:"/submit-question",iconPath:"/assets/images/svg/submit.svg"}],s=[{label:"Calculator",iconPath:"/assets/images/svg/calc.svg",color:"quiz-blue-fill",component:i.J},{label:"Notes",iconPath:"/assets/images/svg/notepad.svg",color:"quiz-blue-fill",component:l.j},{label:"Lab Values",iconPath:"/assets/images/svg/lab.svg",color:"quiz-blue-fill",component:p.r},{label:"Share",iconPath:"/assets/images/svg/heart.svg",color:"quiz-blue-fill",shareIframe:!0}];var r=o(39841),g=o(56451),e=o(36642),c=o(92340),a=o(5e3),h=o(88918),C=o(13270),P=o(60957),w=o(77093),O=o(2638),M=o(4834),y=o(33583),x=o(69808),L=o(44619),B=o(82349),Z=o(61276),b=
1o(52934),N=o(52842),K=o(86657);function A(tt,mt){1&tt&&(a.TgZ(0,"qupi-heading",6),a._uU(1," Download our app "),a.qZA())}function $(tt,mt){if(1&tt){const j=a.EpF();a.TgZ(0,"qupi-group")(1,"span",7),a.NdJ("click",function(){a.CHM(j);const gt=a.oxw();return a.KtG(gt.navigateToStore("android"))}),a._UZ(2,"img",8),a.qZA(),a.TgZ(3,"span",9),a.NdJ("click",function(){a.CHM(j);const gt=a.oxw();return a.KtG(gt.navigateToStore("ios"))}),a._UZ(4,"img",10),a.qZA()()}}let W=(()=>{class tt{constructor(j,lt,gt){this.dialog=j,this.comingSoonService=lt,this._router=gt,this.router$=gt.events.pipe((0,u.h)(wt=>wt instanceof n.OD)),this.router$.subscribe(wt=>this.pricingPage=wt.url.includes("pricing"))}openDialog(){this.comingSoonService.openDialog()}navigateToStore(j){"android"===j&&(window.location.href="https://play.google.com/store/apps/details?id=com.qupi"),"ios"===j&&(window.location.href="https://apps.apple.com/us/app/qupi/id1474471919")}}return tt.\u0275fac=function(j){return new(j||tt)(a.Y36(B.uw),a.Y36(Z.t),a.Y36(n.F0))},tt.\u0275cmp=a.Xpm({type:tt,selectors:[["qupi-main-view-footer-small"]],decls:8,vars:2,consts:[[1,"footer"],["theme","image-hover","routerLink","/contact",1,"footer-help-button"],[1,"footer-download-section"],["fontWeight","bold","class","footer-download-section-heading",4,"ngIf"],[4,"ngIf"],["size","sm",1,"footer-copyrights"],["fontWeight","bold",1,"footer-download-section-heading"],[1,"footer-download-section-google",3,"click"],["src","/assets/images/jpg/google-play-badge.png"],[1,"footer-download-section-apple",3,"click"],["src","/assets/images/jpg/app-store.png"]],template:function(j,lt){1&j&&(a.TgZ(0,"qupi-group",0)(1,"qupi-button",1),a._uU(2," Need help? Let us know "),a.qZA(),a.TgZ(3,"qupi-group",2),a.YNc(4,A,2,0,"qupi-heading",3),a.YNc(5,$,5,0,"qupi-group",4),a.qZA(),a.TgZ(6,"qupi-content",5),a._uU(7," 2016 \u2013 2023 \xae QUPI.com "),a.qZA()()),2&j&&(a.xp6(4),a.Q6J("ngIf",!lt.pricingPage),a.xp6(1),a.Q6J("ngIf",!lt.pricingPage))},dependencies:[P.r,b.B,N.S,K.m,x.O5,n.rH],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%] .footer[_ngcontent-%COMP%]{margin-top:7em;align-items:center;border-radius:.625em;color:#f9f9f9;padding:1.875em;background-image:linear-gradient(to left,#1da1f2,#1c5ba9)}@media (min-width: 768px){[_nghost-%COMP%] .footer[_ngcontent-%COMP%]{justify-content:space-around}}[_nghost-%COMP%] .footer[_ngcontent-%COMP%] qupi-button[_ngcontent-%COMP%]{width:initial}[_nghost-%COMP%] .footer-download-section[_ngcontent-%COMP%]{align-items:center}[_nghost-%COMP%] .footer-download-section-heading[_ngcontent-%COMP%]{margin:.625em 1.875em .625em 0}[_nghost-%COMP%] .footer-download-section-google[_ngcontent-%COMP%], [_nghost-%COMP%] .footer-download-section-apple[_ngcontent-%COMP%]{cursor:pointer;margin:.625em 1.875em .625em 0;width:135px;height:40px}[_nghost-%COMP%] .footer-download-section-google[_ngcontent-%COMP%] img[_ngcontent-%COMP%], [_nghost-%COMP%] .footer-download-section-apple[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%;width:100%;display:block;margin:0 auto;padding:0}[_nghost-%COMP%] .footer-download-section-apple[_ngcontent-%COMP%]{cursor:pointer;margin:.625em 1.875em .625em 0}[_nghost-%COMP%] .footer-help-button[_ngcontent-%COMP%]{margin:.625em 1.875em .625em 0}[_nghost-%COMP%] .footer-copyrights[_ngcontent-%COMP%]{margin:.625em 1.875em .625em 0}"]}),tt})();var _t=o(4623),k=o(50590),ct=o(81786),at=o(89259),et=o(23322);function ot(tt,mt){if(1&tt&&(a.TgZ(0,"a",4),a._UZ(1,"div",5),a.TgZ(2,"span"),a._uU(3),a.qZA()()),2&tt){const j=a.oxw().$implicit;a.Q6J("routerLink",null==j?null:j.routerLink),a.xp6(1),a.Q6J("inlineSVG",j.iconPath)("ngClass",j.color),a.xp6(2),a.Oqu(j.label)}}function X(tt,mt){if(1&tt){const j=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){a.CHM(j);const gt=a.oxw().$implicit,wt=a.oxw();return a.KtG(gt.shareIframe?wt.shareQuestion():wt.openDialog(gt.component,gt.label,gt.iconPath))}),a._UZ(1,"div",5),a.TgZ(2,"span"),a._uU(3),a.qZA()()}if(2&tt){const j=a.oxw().$implicit;a.xp6(1),a.Q6J("inlineSVG",null==j?null:j.iconPath)("ngClass",j.color),a.xp6(2),a.Oqu(j.label)}}function F(tt,mt){if(1&tt&&(a.ynx(0),a.YNc(1,ot,4,4,"a",2),a.YNc(2,X,4,3,"ng-template",null,3,a.W1O),a.BQk()),2&tt){const j=mt.$implicit,lt=a.MAs(3);a.xp6(1),a.Q6J("ngIf",null==j?null:j.routerLink)("ngIfElse",lt)}}let z=(()=>{class tt{constructor(j,lt,gt){this.dialog=j,this.store=lt,this.fbShare=gt,this.topNav=!1,this.isSticky=!0}get navigationItems(){return this._navigationItems}
1set navigationItems(j){j&&(this._navigationItems=j)}ngOnInit(){}openDialog(j,lt,gt){return this.dialog.open(_t.M,{height:"500px",width:"100%",maxWidth:"100%",panelClass:"quiz-tool",data:{component:j,name:lt,icon:gt}})}shareQuestion(){this.store.pipe((0,t.Ys)(j=>j.quizModule.quiz),(0,k.P)()).subscribe(j=>{const lt=j.quizQuestions[j.currentQuestionIndex].question,gt=(0,ct.qI)(lt);this.fbShare.openShareDialog("xSmall",gt,window.location.host+"/api/v1/share/question/"+lt.questionID,`question/${lt.questionID}`,{type:"[CORE] SHARE_QUESTION",payload:{questionId:lt.questionID,isLeaderboard:!1}})})}}return tt.\u0275fac=function(j){return new(j||tt)(a.Y36(B.uw),a.Y36(t.yh),a.Y36(at.x))},tt.\u0275cmp=a.Xpm({type:tt,selectors:[["qupi-mobile-bottom-navigation"]],hostVars:2,hostBindings:function(j,lt){2&j&&a.ekj("sticky",lt.isSticky)},inputs:{topNav:"topNav",isSticky:"isSticky",navigationItems:"navigationItems"},decls:2,vars:1,consts:[[1,"mobile-bottom-nav"],[4,"ngFor","ngForOf"],["class","item","routerLinkActive","active",3,"routerLink",4,"ngIf","ngIfElse"],["quiztools",""],["routerLinkActive","active",1,"item",3,"routerLink"],[1,"item--icon",3,"inlineSVG","ngClass"],[1,"item",3,"click"]],template:function(j,lt){1&j&&(a.TgZ(0,"nav",0),a.YNc(1,F,4,2,"ng-container",1),a.qZA()),2&j&&(a.xp6(1),a.Q6J("ngForOf",lt.navigationItems))},dependencies:[et.oO,x.mk,x.sg,x.O5,n.yS,n.Od,L.d$],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%] .quiz-blue-fill g{fill:transparent!important}[_nghost-%COMP%]{background:#fff;margin-top:1.875em}[_nghost-%COMP%] .mobile-bottom-nav[_ngcontent-%COMP%]{margin:auto;max-width:330px;display:flex;justify-content:space-around;align-items:center}[_nghost-%COMP%] .item[_ngcontent-%COMP%]{display:flex;align-items:center;height:3em;color:#215ca8;z-index:1000}[_nghost-%COMP%] .item[_ngcontent-%COMP%]:hover{cursor:pointer}@media (max-width: 768px){[_nghost-%COMP%] .item[_ngcontent-%COMP%]{justify-content:center}[_nghost-%COMP%] .item[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:none!important}}@media only screen and (max-width: 768px) and (min-width: 381px){[_nghost-%COMP%] .item[_ngcontent-%COMP%]{min-width:64px}}[_nghost-%COMP%] .item--icon[_ngcontent-%COMP%] {margin:.75em}@media screen and (max-width: 1200px){[_nghost-%COMP%] .item--icon[_ngcontent-%COMP%] {text-align:center;min-width:100%;margin:0}}[_nghost-%COMP%] .item--icon[_ngcontent-%COMP%] svg{height:1.5em}@media screen and (max-width: 1200px){[_nghost-%COMP%] .item[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%] .item.active[_ngcontent-%COMP%]{background:#f9f9f9;font-weight:900;color:#43b3f7;box-shadow:0 -3px #43b3f7,inset 0 -1px #d4d4d4,inset 0 1px #d4d4d4}[_nghost-%COMP%] .item.active[_ngcontent-%COMP%] .item--icon[_ngcontent-%COMP%] svg defs path{fill:#43b3f7}"]}),tt})();const D=["contentBody"],Dt=["header"];function Ot(tt,mt){}function Ct(tt,mt){if(1&tt&&(a.TgZ(0,"div",15),a.YNc(1,Ot,0,0,"ng-template",16),a.qZA()),2&tt){const j=a.oxw(2);a.xp6(1),a.Q6J("cdkPortalOutlet",j.portals[1])}}function Mt(tt,mt){}function It(tt,mt){if(1&tt&&(a.TgZ(0,"div",17),a.YNc(1,Mt,0,0,"ng-template",16),a.qZA()),2&tt){const j=a.oxw(2);a.xp6(1),a.Q6J("cdkPortalOutlet",j.portals[2])}}function Bt(tt,mt){}function zt(tt,mt){if(1&tt&&(a.TgZ(0,"div",18),a.YNc(1,Bt,0,0,"ng-template",16),a.qZA()),2&tt){const j=a.oxw(2);a.xp6(1),a.Q6J("cdkPortalOutlet",j.portals[3])}}function $t(tt,mt){if(1&tt&&(a.TgZ(0,"nav",9,10)(2,"div",11),a.YNc(3,Ct,2,1,"div",12),a.YNc(4,It,2,1,"div",13),a.YNc(5,zt,2,1,"div",14),a.qZA()()),2&tt){const j=a.oxw();a.xp6(2),a.ekj("container",!(null!=j.mainView&&j.mainView.sidenavOpened)||(null==j.mainView?null:j.mainView.sidenavDisabled)),a.xp6(1),a.Q6J("ngIf",j.portals[1]),a.xp6(1),a.Q6J("ngIf",j.portals[2]),a.xp6(1),a.Q6J("ngIf",j.portals[3])}}function ee(tt,mt){1&tt&&a.GkF(0)}function V(tt,mt){1&tt&&(a.TgZ(0,"div",25),a._UZ(1,"img",26),a.qZA())}function Gt(tt,mt){if(1&tt&&(a.TgZ(0,"mat-drawer",19,20)(2,"aside",21),a.YNc(3,V,2,0,"div",22),a._UZ(4,"mat-divider",23),a.TgZ(5,"div",24),a.Hsn(6),a.qZA()()()),2&tt){const j=a.oxw();a.Q6J("opened",null==j.mainView?null:j.mainView.sidenavOpened),a.xp6(2),a.ekj("collapse",j.collapse),a.xp6(1),a.Q6J("ngIf",j.media.isActive("gt-sm"))}}function Tt(tt,mt){1&tt&&a.GkF(0)}function qt(tt,mt){if(1&tt){const j=a.EpF();a.TgZ(0,"qupi-button",28),a.NdJ("click",function(){a.CHM(j);const gt=a.oxw(2);return a.KtG(gt.navigateToTop(gt.contentBodyRef))}),a._UZ(1,"div",29),a.qZA()}2&tt&&(a.xp6(1),a.Q6J("inlineSVG","/assets/images/svg/dropdown.svg"))}function Nt(tt,mt){if(1&tt&&(a.ynx(0),a.YNc(1,qt,2,1,"qupi-button",27),a.ALo(2,"async"),a.ALo(3,"slice"),a.BQk()),2&tt){const j=mt.$implicit,lt=a.oxw();a.xp6(1),a.Q6J("ngIf",!a.lcZ(2,1,lt.mobile$)&&("/submit-question/submit"===j||"/quiz/sumup/"===a.Dn7(3,3,j,0,12)))}}function Lt(tt,mt){1&tt&&(a.TgZ(0,"div"),a._UZ(1,"qupi-main-view-footer-small"),a.qZA())}function Ht(tt,mt){if(1&tt&&(a._UZ(0,"qupi-mobile-bottom-navigation",30),a.ALo(1,"slice"),a.ALo(2,"async")),2&tt){const j=a.oxw();a.Q6J("isSticky",!0)("navigationItems","/quiz/start/"!==a.Dn7(1,2,a.lcZ(2,6,j.routerUrl$),0,12)?j.routerNavigation:j.quizNavigation)}}const Vt=["*"];let Xt=(()=>{class tt{constructor(j,lt,gt,wt,Wt,kt){this.store=j,this.topNavPortalService=lt,this.media=gt,this.cdr=wt,this.router=Wt,this.actions$=kt,this.window=window,this.sub=[],this.footerEnabled=!0,this.collapse=!0,this.isUserLoggedIn$=this.store.pipe((0,t.Ys)(Ut=>Ut.auth.user.logged)),this.wpURL=c.N.wordpressURL,this.mainView$=this.store.pipe((0,t.Ys)(Ut=>Ut.app.mainView)),this.mobile$=this.store.pipe((0,t.Ys)(Ut=>Ut.app.size.xSmall)),this.portals=this.topNavPortalService.portals,this.routerUrl$=this.store.pipe((0,t.Ys)(Ut=>Ut.router.state.url)),this.routerNavigation=m,this.quizNavigation=s}set headerRef(j){setTimeout(()=>{this.sub.push((0,r.a)([this.mobile$,this.isUserLoggedIn$]).subscribe(([lt,gt])=>{this.isUerLoggedIn=gt,this.isMobile=lt,this.navbarHeight=j.nativeElement.offsetHeight,this.viewHeight=lt?window.innerHeight-(this.navbarHeight+(gt?80:30))+"px":`100vh - ${this.navbarHeight}px`,this.cdr.markForCheck()}))},0)}
1onResize(j){this.isMobile&&(this.viewHeight=j.target.innerHeight-(this.navbarHeight+(this.isUerLoggedIn?80:30))+"px")}ngOnInit(){this.sub.push(this.mainView$.subscribe(j=>{setTimeout(()=>this.mainView=j,0)}))}ngAfterViewInit(){this.watchRouterNavigation()}ngOnDestroy(){this.cdr.detach(),this.sub.forEach(j=>j.unsubscribe())}navigateToTop(j){j.nativeElement.scrollTo({top:0,behavior:"smooth"})}watchRouterNavigation(){const j=this.contentBodyRef.nativeElement;(0,g.T)(this.router.events.pipe((0,u.h)(lt=>lt instanceof n.m2)),this.actions$.pipe((0,e.l4)("[CORE] SCROLL_TOP"))).subscribe(()=>{j.scrollTo(0,0)})}}return tt.\u0275fac=function(j){return new(j||tt)(a.Y36(t.yh),a.Y36(h.v),a.Y36(C.u0),a.Y36(a.sBO),a.Y36(n.F0),a.Y36(e.eX))},tt.\u0275cmp=a.Xpm({type:tt,selectors:[["qupi-main-view"]],viewQuery:function(j,lt){if(1&j&&(a.Gf(D,7),a.Gf(Dt,5)),2&j){let gt;a.iGM(gt=a.CRH())&&(lt.contentBodyRef=gt.first),a.iGM(gt=a.CRH())&&(lt.headerRef=gt.first)}},hostBindings:function(j,lt){1&j&&a.NdJ("resize",function(wt){return lt.onResize(wt)},!1,a.Jf7)},inputs:{footerEnabled:"footerEnabled",collapse:"collapse"},ngContentSelectors:Vt,decls:16,vars:17,consts:[["headerTmpl",""],[4,"ngIf","ngIfThen"],[1,"app-container","admin-container",3,"autosize"],["mode","side",3,"opened",4,"ngIf"],[1,"content--body"],["contentBody",""],[1,"router-outlet"],[4,"ngIf"],[3,"isSticky","navigationItems",4,"ngIf"],[1,"content--header"],["header",""],["fxLayout","row","fxLayoutAlign","space-between center",1,"portal-container"],["fxFlex","","fxLayout","row","fxLayoutAlign","start",4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutAlign","center",4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutAlign","end",4,"ngIf"],["fxFlex","","fxLayout","row","fxLayoutAlign","start"],[3,"cdkPortalOutlet"],["fxFlex","","fxLayout","row","fxLayoutAlign","center"],["fxFlex","","fxLayout","row","fxLayoutAlign","end"],["mode","side",3,"opened"],["sidenav",""],[1,"sidebar"],["class","sidebar--header",4,"ngIf"],[1,"sidebar--divider"],[1,"sidebar--body"],[1,"sidebar--header"],["src","/assets/images/svg/qupi-logo.svg","routerLink","/dashboard",1,"logo"],["color","mid-blue","buttonClass","circle","theme","dodger-blue","class","navigate-to-top",3,"click",4,"ngIf"],["color","mid-blue","buttonClass","circle","theme","dodger-blue",1,"navigate-to-top",3,"click"],[1,"item--icon",3,"inlineSVG"],[3,"isSticky","navigationItems"]],template:function(j,lt){if(1&j&&(a.F$t(),a.YNc(0,$t,6,5,"ng-template",null,0,a.W1O),a.YNc(2,ee,1,0,"ng-container",1),a.TgZ(3,"mat-drawer-container",2),a.YNc(4,Gt,7,4,"mat-drawer",3),a.TgZ(5,"mat-drawer-content"),a.YNc(6,Tt,1,0,"ng-container",1),a.TgZ(7,"div",4,5),a._UZ(9,"router-outlet",6),a.YNc(10,Nt,4,7,"ng-container",7),a.ALo(11,"async"),a.YNc(12,Lt,2,0,"div",7),a.qZA(),a.YNc(13,Ht,3,8,"qupi-mobile-bottom-navigation",8),a.ALo(14,"async"),a.ALo(15,"async"),a.qZA()()),2&j){const gt=a.MAs(1);a.xp6(2),a.Q6J("ngIf",!lt.media.isActive("gt-sm"))("ngIfThen",gt),a.xp6(1),a.Q6J("autosize",!0),a.xp6(1),a.Q6J("ngIf",!lt.media.isActive("lt-sm")),a.xp6(2),a.Q6J("ngIf",lt.media.isActive("gt-sm"))("ngIfThen",gt),a.xp6(1),a.Udp("height","calc("+lt.viewHeight+")"),a.xp6(3),a.Q6J("ngIf",a.lcZ(11,11,lt.routerUrl$)),a.xp6(2),a.Q6J("ngIf",lt.footerEnabled),a.xp6(1),a.Q6J("ngIf",lt.footerEnabled&&a.lcZ(14,13,lt.mobile$)&&a.lcZ(15,15,lt.isUserLoggedIn$))}},dependencies:[P.r,w.xw,w.Wh,w.yH,O.jA,O.kh,O.LW,M.d,y.Pl,x.O5,n.lC,n.rH,L.d$,W,z,x.Ov,x.OU],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}.sidebar--body[_ngcontent-%COMP%]{height:100%;padding-top:0}@media (min-width: 1200px){.sidebar--body[_ngcontent-%COMP%]{height:calc(100% - 104px)}}.sidebar[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:270px;height:100%}@media screen and (max-width: 1200px){.sidebar.collapse[_ngcontent-%COMP%]{width:50px}}@media (min-width: 1200px){.sidebar[_ngcontent-%COMP%]{padding-top:0}}.sidebar--header[_ngcontent-%COMP%]{padding:1em}.sidebar--divider[_ngcontent-%COMP%]{margin-top:-1px}.sidebar--header[_ngcontent-%COMP%]{padding:1.25em 1em;display:block}.sidebar--header[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{height:64px;cursor:pointer;margin:0 auto;display:block}.sidebar--body[_ngcontent-%COMP%] a{text-decoration:none}mat-drawer-content[_ngcontent-%COMP%]{z-index:4;overflow:hidden}@media screen and (max-width: 1200px){mat-drawer[_ngcontent-%COMP%]{overflow:visible}}.content--header[_ngcontent-%COMP%]{background-image:linear-gradient(to left,#1d
1a1f2,#1c5ba9)}@media (max-width: 768px){.content--header[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:10;left:0}}.content--header[_ngcontent-%COMP%] .portal-container[_ngcontent-%COMP%]{height:100%}@media (min-width: 768px){.content--header[_ngcontent-%COMP%]{height:104px}}.content--body[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column;padding:.625em;transform:translateZ(0);box-sizing:border-box;background-image:url(/assets/images/svg/q-shape-down.svg);background-size:100%;overflow:auto}@media (min-width: 1200px){.content--body[_ngcontent-%COMP%]{padding:1.875em}}@media (max-width: 768px){.content--body[_ngcontent-%COMP%]{padding-top:68px;box-sizing:content-box}}.content--body[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#a1bee3}.content--body[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#1c5ba9}.content--body[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px;height:10px}.public-container[_ngcontent-%COMP%]{max-width:1110px;margin:auto}.router-outlet[_ngcontent-%COMP%]{display:none}.navigate-to-top[_ngcontent-%COMP%]{transform:rotate(180deg);width:60px;align-self:flex-end;margin-top:60px}.navigate-to-top[_ngcontent-%COMP%] .item--icon[_ngcontent-%COMP%] {margin-top:13px;margin-left:-3px}.navigate-to-top[_ngcontent-%COMP%] .item--icon[_ngcontent-%COMP%] svg{width:40px;height:40px}.navigate-to-top[_ngcontent-%COMP%] .item--icon[_ngcontent-%COMP%] svg>g{fill:#fff}.navigate-to-top[_ngcontent-%COMP%] .item--icon[_ngcontent-%COMP%] svg>g>g{fill:#fff}"]}),tt})()}
1,54317:(Q,f,o)=>{"use strict";o.d(f,{H:()=>m});var t=o(5e3),n=o(52934),u=o(52842),i=o(86657),l=o(44619),p=(()=>{return(s=p||(p={})).android="https://play.google.com/store/apps/details?id=com.qupi",s.appleStore="Apple store",p;var s})();let m=(()=>{class s{constructor(){}ngOnInit(){}redirectToStore(g){return"android"===g?window.location.href=p.android:"apple"===g?window.location.href=p.appleStore:void 0}}return s.\u0275fac=function(g){return new(g||s)},s.\u0275cmp=t.Xpm({type:s,selectors:[["qupi-mobile-apps-dialog"]],decls:8,vars:0,consts:[[1,"apps-wrapper"],["size","xlg","fontWeight","extra-bold","textAlign","center"],[1,"mobile-links"],["inlineSVG","/assets/images/svg/app-store.svg",1,"badge-wrapper",3,"click"],["inlineSVG","/assets/images/svg/google-play.svg",1,"badge-wrapper",3,"click"]],template:function(g,e){1&g&&(t.TgZ(0,"qupi-group",0)(1,"qupi-heading",1),t._uU(2,"Hey! Mobile user"),t.qZA(),t.TgZ(3,"qupi-content"),t._uU(4,"Download Qupi mobile application for your device for the best experience"),t.qZA(),t.TgZ(5,"qupi-group",2)(6,"span",3),t.NdJ("click",function(){return e.redirectToStore("apple")}),t.qZA(),t.TgZ(7,"span",4),t.NdJ("click",function(){return e.redirectToStore("android")}),t.qZA()()())},dependencies:[n.B,u.S,i.m,l.d$],styles:[".apps-wrapper[_ngcontent-%COMP%]{color:#215ca8;flex-direction:column;justify-content:center}.mobile-links[_ngcontent-%COMP%]{justify-content:center}.mobile-links[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:0 10px}.mobile-links[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{cursor:pointer}qupi-content[_ngcontent-%COMP%]{margin-bottom:1.25em}.badge-wrapper[_ngcontent-%COMP%]{background:transparent;padding:0;margin:0;border:0}.badge-wrapper[_ngcontent-%COMP%]:hover{cursor:pointer}.badge-wrapper[_ngcontent-%COMP%]:active, .badge-wrapper[_ngcontent-%COMP%] [_ngcontent-%COMP%]:focus{border:0}[_nghost-%COMP%] qupi-heading{margin-bottom:1.25em}[_nghost-%COMP%] qupi-heading span{justify-content:center}"]}),s})()},3144:(Q,f,o)=>{"use strict";o.d(f,{T:()=>l});var t=o(5e3),n=o(86657),u=o(41042),i=o(52821);let l=(()=>{class p{constructor(){}ngOnInit(){}ngOnChanges(s){if(s.item){const r=s.item.currentValue;this.image=r._embedded["wp:featuredmedia"]?r._embedded["wp:featuredmedia"][0].media_details.sizes.thumbnail?r._embedded["wp:featuredmedia"][0].media_details.sizes.thumbnail.source_url:r._embedded["wp:featuredmedia"][0].source_url:"/assets/images/svg/qupi-logo-mobile.svg";const g=/&/gi;this.title=r.title.rendered.replace(g,"and"),this.text=r.content.rendered.replace(g,"and")}}onItemClick(s){window.location.href=s.link}}return p.\u0275fac=function(s){return new(s||p)},p.\u0275cmp=t.Xpm({type:p,selectors:[["qupi-news-list-item"]],inputs:{item:"item"},features:[t.TTD],decls:10,vars:16,consts:[[1,"item",3,"click"],[1,"item-image"],[1,"item-content"],[1,"item-heading"]],template:function(s,r){1&s&&(t.TgZ(0,"qupi-group",0),t.NdJ("click",function(){return r.onItemClick(r.item)}),t._UZ(1,"div",1),t.TgZ(2,"div",2)(3,"div",3),t._uU(4),t.ALo(5,"truncate"),t.ALo(6,"striphtml"),t.qZA(),t._uU(7),t.ALo(8,"truncate"),t.ALo(9,"striphtml"),t.qZA()()),2&s&&(t.xp6(1),t.Udp("background-image","url("+r.image+")"),t.xp6(3),t.hij(" ",t.Dn7(5,4,t.lcZ(6,8,null==r.item||null==r.item.title?null:r.item.title.rendered),40,"\u2026")," "),t.xp6(3),t.hij(" ",t.Dn7(8,10,t.lcZ(9,14,null==r.item||null==r.item.content?null:r.
1item.content.rendered),50,"\u2026")," "))},dependencies:[n.m,u.p,i.W],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%]{min-width:280px}[_nghost-%COMP%] .item[_ngcontent-%COMP%]{padding:8px 16px;margin-bottom:.625em;cursor:pointer;justify-content:space-around}[_nghost-%COMP%] .item[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.04)}[_nghost-%COMP%] .item-content[_ngcontent-%COMP%]{width:120px;font-size:12px;margin-left:16px}[_nghost-%COMP%] .item-heading[_ngcontent-%COMP%]{margin-bottom:.3125em}[_nghost-%COMP%] .item-image[_ngcontent-%COMP%]{background-size:contain;position:relative;background-repeat:no-repeat;width:90px;height:90px}[_nghost-%COMP%] .item-heading[_ngcontent-%COMP%]{font-size:16px;font-weight:600}[_nghost-%COMP%] .item-image-hover-button[_ngcontent-%COMP%]{max-width:140px;color:#fff}"]}),p})()},34713:(Q,f,o)=>{"use strict";o.d(f,{R:()=>l});var t=o(5e3),n=o(81198),u=o(60957),i=o(52934);let l=(()=>{class p{constructor(s){this.firebaseMessagingService=s}ngOnInit(){}close(){this.firebaseMessagingService.closeDialog()}requestRealPermission(){this.firebaseMessagingService.requestPermission(),this.firebaseMessagingService.closeDialog()}}return p.\u0275fac=function(s){return new(s||p)(t.Y36(n.M))},p.\u0275cmp=t.Xpm({type:p,selectors:[["qupi-notification-allow"]],decls:8,vars:0,consts:[["fontWeight","bold",1,"mb-3","d-block","heading"],[1,"controls"],["size","sm","width","125px","theme","mid-blue-reversed",1,"me-2",3,"onClick"],["size","sm","width","125px",3,"onClick"]],template:function(s,r){1&s&&(t.TgZ(0,"div")(1,"qupi-heading",0),t._uU(2," Show notifications? "),t.qZA(),t.TgZ(3,"div",1)(4,"qupi-button",2),t.NdJ("onClick",function(){return r.close()}),t._uU(5,"Maybe later"),t.qZA(),t.TgZ(6,"qupi-button",3),t.NdJ("onClick",function(){return r.requestRealPermission()}),t._uU(7,"Yes"),t.qZA()()())},dependencies:[u.r,i.B],styles:["[_nghost-%COMP%]{width:100%;padding:.625em;background-color:#fafafa;border-radius:0 0 .3125em .3125em;box-shadow:3px 3px 10px #000000b3;z-index:2}@media screen and (min-width: 769px){[_nghost-%COMP%]{display:block;border-radius:.3125em}}[_nghost-%COMP%] .heading[_ngcontent-%COMP%] span{font-size:1.25em}[_nghost-%COMP%] .controls[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"]}),p})()},21622:(Q,f,o)=>{"use strict";o.d(f,{O:()=>l});var t=o(5e3),n=o(25245),u=o(82349),i=o(99221);let l=(()=>{class p{constructor(){}ngOnInit(){}}return p.\u0275fac=function(s){return new(s||p)},p.\u0275cmp=t.Xpm({type:p,selectors:[["qupi-pricing-dialog"]],decls:5,vars:0,consts:[[1,"modal-close",3,"mat-dialog-close"]],template:function(s,r){1&s&&(t.TgZ(0,"mat-dialog-content")(1,"button",0)(2,"mat-icon"),t._uU(3,"close"),t.qZA()(),t._UZ(4,"qupi-pricing-plans"),t.qZA())},dependencies:[n.Hw,u.ZT,u.xY,i.F],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}.modal-close[_ngcontent-%COMP%]{align-self:flex-end;background:transparent;color:#215ca8;border:0;width:100%;text-align:right}.modal-close[_ngcontent-%COMP%]:hover{cursor:pointer}.modal-close[_ngcontent-%COMP%]:focus{outline:none}.modal-close[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{width:50px;height:50px;font-size:3em}[_nghost-%COMP%] .mat-dialog-content{max-height:87vh}"]}),p})()},26297:(Q,f,o)=>{"use strict";o.d(f,{G:()=>l});
1var t=o(5e3),n=o(18857),u=o(52934),i=o(52842);let l=(()=>{class p{constructor(){}ngOnInit(){}}return p.\u0275fac=function(s){return new(s||p)},p.\u0275cmp=t.Xpm({type:p,selectors:[["qupi-payment-satisfaction"]],decls:5,vars:0,consts:[["padding","md",1,"payment-satisfaction"],["size","lg","fontWeight","extra-bold"]],template:function(s,r){1&s&&(t.TgZ(0,"qupi-card",0)(1,"qupi-heading",1),t._uU(2," The QUPI Guarantee "),t.qZA(),t.TgZ(3,"qupi-content"),t._uU(4," We are sure you will love QUPI! But if, for any reason, you are not enjoying these powerful study tools, then just let us know. Annual subscribers can claim a full refund within 30 days, monthly subscribers can claim a full-refund within 7 days. "),t.qZA()())},dependencies:[n.A,u.B,i.S],styles:["[_nghost-%COMP%]{display:block;width:100%;margin-bottom:.5rem}.payment-satisfaction[_ngcontent-%COMP%]{flex-direction:column;justify-content:center;align-items:center;width:100%}.payment-satisfaction[_ngcontent-%COMP%] qupi-heading[_ngcontent-%COMP%]{margin-bottom:.625em}"]}),p})()},99221:(Q,f,o)=>{"use strict";o.d(f,{F:()=>ot});var t=o(70655),n=o(65620),u=o(96034),i=o(3070),l=o(36642),p=o(50590),m=o(44564),s=o(96875),r=o(59159),g=o(92340),e=o(5e3),c=o(35357),a=o(82349),h=o(52934),C=o(52842),P=o(59447),w=o(86657),O=o(69808),M=o(10235),y=o(35882),x=o(24185),L=o(76080),B=o(87645),Z=o(18857);function b(X,F){if(1&X&&(e.ynx(0),e.TgZ(1,"qupi-group",1)(2,"qupi-group",2)(3,"div",3),e._uU(4),e.qZA(),e.TgZ(5,"qupi-group",4)(6,"div",5),e._uU(7,"PROMO"),e.qZA(),e.TgZ(8,"div",6),e._uU(9,"SUBSCRIPTIONS"),e.qZA()()(),e.TgZ(10,"qupi-group",7)(11,"div",3),e._uU(12),e.qZA(),e.TgZ(13,"qupi-group",4)(14,"div",5),e._uU(15,"%"),e.qZA(),e.TgZ(16,"div",6),e._uU(17,"OFF"),e.qZA()()()(),e.TgZ(18,"qupi-heading",8),e._uU(19),e.qZA(),e.BQk()),2&X){const z=e.oxw();e.xp6(4),e.hij(" ",z.subscriptionsLeft," "),e.xp6(8),e.hij(" ",z.promotion.value," "),e.xp6(7),e.hij(" ",z.promotion.maxActivations," Students only ")}}function N(X,F){if(1&X&&(e.ynx(0),e.TgZ(1,"qupi-group",9)(2,"qupi-card",10)(3,"qupi-content",11),e._uU(4," days "),e.qZA(),e.TgZ(5,"qupi-heading",12),e._uU(6),e.qZA()(),e.TgZ(7,"qupi-card",13)(8,"qupi-content",11),e._uU(9," hours "),e.qZA(),e.TgZ(10,"qupi-heading",12),e._uU(11),e.qZA()(),e.TgZ(12,"div",14)(13,"span"),e._uU(14,":"),e.qZA()(),e.TgZ(15,"qupi-card",13)(16,"qupi-content",11),e._uU(17," minutes "),e.qZA(),e.TgZ(18,"qupi-heading",12),e._uU(19),e.qZA()(),e.TgZ(20,"div",14)(21,"span"),e._uU(22,":"),e.qZA()(),e.TgZ(23,"qupi-card",13)(24,"qupi-content",11),e._uU(25," seconds "),e.qZA(),e.TgZ(26,"qupi-heading",12),e._uU(27),e.qZA()()(),e.BQk()),2&X){const z=e.oxw();e.xp6(2),e.Q6J("inversed",!0),e.xp6(4),e.hij(" ",z.timer.days," "),e.xp6(1),e.Q6J("inversed",!0),e.xp6(4),e.hij(" ",z.timer.hours," "),e.xp6(4),e.Q6J("inversed",!0),e.xp6(4),e.hij(" ",z.timer.minutes," "),e.xp6(4),e.Q6J("inversed",!0),e.xp6(4),e.hij(" ",z.timer.seconds," ")}}let K=(()=>{class X{constructor(z){this.CDRef=z,this.timer={days:"",hours:"",minutes:"",seconds:""}}ngOnChanges(z){if(z.promotion){let D=z.promotion.currentValue;this.subscriptionsLeft=D.maxActivations-D.activations,D.ends&&(this.timer=this.getTimer(D.ends),this.interval=this.startTimer(D.ends))}}getTimer(z){const D=(0,y.Z)(new Date(z),new Date),Dt=(0,x.Z)(new Date(z),new Date)%24,Ot=(0,L.Z)(new Date(z),new Date)%60,Ct=(0,B.Z)(new Date(z),new Date)%60;return{days:`${D}`.padStart(2,"0"),hours:`${Dt}`.padStart(2,"0"),minutes:`${Ot}`.padStart(2,"0"),seconds:`${Ct}`.padStart(2,"0")}}startTimer(z){return setInterval(()=>{this.timer=this.getTimer(z),this.CDRef.markForCheck()},1e3)}ngOnDestroy(){this.interval&&clearInterval(this.interval)}}return X.\u0275fac=function(z){return new(z||X)(e.Y36(e.sBO))},X.\u0275cmp=e.Xpm({type:X,selectors:[["qupi-global-promotion"]],inputs:{promotion:"promotion"},features:[e.TTD],decls:2,vars:2,consts:[[4,"ngIf"],[1,"promotion"],[1,"promotion-discount","me-3"],[1,"promotion-discount-value"],[1,"promotion-discount-unit"],[1,"promotion-discount-unit-percent"],[1,"promotion-discount-unit-off"],[1,"promotion-discount"],["size","lg","fontWeight","extra-bold","justifyContent","center",1,"promotion-header"],[1,"promotion-days-left"],[1,"promotion-days-left-card","me-5",3,"inversed"],[1,"promotion-days-left-card-label"],["size","xxlg","fontWeight","bold"],[1,"promotion-days-left-card",3,"inversed"],[1,"colon"]],template:function(z,D){1&z&&(e.YNc(0,b,20,3,"ng-container",0),e.YNc(1,N,28,8,"ng-container",0)),2&z&&(e.Q6J("ngIf",D.promotion.maxActivations),e.xp6(1),e.Q6J("ngIf",D.promotion.ends))},dependencies:[Z.A,h.B,C.S,w.m,O.O5],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}.promotion[_ngcontent-%COMP%]{flex-direction:row;align-items:center;justify-content:center}.promotion-discount[_ngcontent-%COMP%]{color:#43b3f7;font-weight:900;justify-content:center}.promotion-discount-unit[_ngcontent-%COMP%]{flex-direction:column;justify-content:center}.promotion-discount-value[_ngcontent-%COMP%]{font-size:96px}.promotion-discount-unit-percent[_ngcontent-%COMP%]{margin-bottom:-10px;font-size:54px}.promotion-discount-unit-off[_ngcontent-%COMP%]{font-size:24px}.promotion-header[_ngcontent-%COMP%]{text-align:center;justify-content:center}.promotion-days-left[_ngcontent-%COMP%]{margin-top:.9375em;margin-bottom:.9375em;display:flex;justify-content:center;font-size:20px}@media (max-width: 768px){.promotion-days-left[_ngcontent-%COMP%]{font-size:8px}}.promotion-days-left-card[_ngcontent-%COMP%]{flex-direction:column;align-items:center}@media (max-width: 768px){.promotion-days-left-card[_ngcontent-%COMP%]:first-child{margin-right:7px!important}}.promotion-days-left-card-label[_ngcontent-%COMP%]{color:#a1bee3}.colon[_ngcontent-%COMP%]{font-size:56px;min-height:100%;display:flex;align-items:center;justify-content:center;margin-right:10px;margin-left:10px}@media (max-width: 768px){.colon[_ngcontent-%COMP%]{margin-right:2px;margin-left:2px}}.colon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-top:-30%}"],changeDetection:0}),X})();var A=o(26297);function $(X,F){if(1&X&&(e.TgZ(0,"div",15),e._UZ(1,"img",16),e.qZA()),2&X){const z=e.oxw(2).ngIf,D=e.oxw(2);e.xp6(1),e.Q6J("src",D.baseURL+(null==z||null==z.photo?null:z.photo.path),e.LSH)}}function W(X,F){if(1&X&&(e.TgZ(0,"qupi-group",9),e.YNc(1,$,2,1,"div",10),e.TgZ(2,"qupi-heading",11),e._UZ(3,"span",12),e.qZA(),e.TgZ(4,"qupi-content",13),e._UZ(5,"span",12),e.qZA(),e.TgZ(6,"qupi-heading",14),e._uU(7),e.qZA()()),2&X){const z=e.oxw().ngIf;e.xp6(1),e.Q6J("ngIf",null==z||null==z.photo?null:z.photo.path),e.xp6(2),e.Q6J("innerHtml",z.content.header,e.oJD),e.xp6(2),e.Q6J("innerHtml",z.content.content,e.oJD),e.xp6(2),e.hij(" ",z.content.voucher," ")}}
1function _t(X,F){if(1&X&&(e.ynx(0),e.YNc(1,W,8,4,"qupi-group",8),e.BQk()),2&X){const z=F.ngIf;e.oxw();const D=e.MAs(4);e.xp6(1),e.Q6J("ngIf",z.active)("ngIfElse",D)}}function k(X,F){1&X&&(e.TgZ(0,"qupi-group",9)(1,"qupi-group",9)(2,"qupi-heading",11),e._uU(3," QUPI "),e.TgZ(4,"span",17),e._uU(5,"pricing options "),e.qZA()(),e.TgZ(6,"qupi-content",13),e._uU(7," Choose The Plan That Best Suits Your Budget and Study Goals - All Plans Include Both Desktop and Mobile Versions "),e.qZA()()())}function ct(X,F){if(1&X&&e._UZ(0,"qupi-global-promotion",18),2&X){const z=e.oxw().ngIf;e.Q6J("promotion",z.promotion)}}function at(X,F){if(1&X){const z=e.EpF();e.TgZ(0,"qupi-subscription-card",19),e.NdJ("select",function(){const Ot=e.CHM(z).$implicit,Ct=e.oxw(2);return e.KtG(Ct.onPlanChoice(Ot))}),e.qZA()}2&X&&e.Q6J("subscription",F.$implicit)}function et(X,F){if(1&X&&(e.TgZ(0,"qupi-group",1),e.YNc(1,_t,2,2,"ng-container",2),e.ALo(2,"async"),e.YNc(3,k,8,0,"ng-template",null,3,e.W1O),e.TgZ(5,"qupi-group",4),e.YNc(6,ct,1,1,"qupi-global-promotion",5),e.TgZ(7,"qupi-group",6),e.YNc(8,at,1,1,"qupi-subscription-card",7),e.qZA(),e._UZ(9,"qupi-payment-satisfaction"),e.qZA()()),2&X){const z=F.ngIf,D=e.MAs(4),Dt=e.oxw();e.xp6(1),e.Q6J("ngIf",e.lcZ(2,4,Dt.pageContent$))("ngIfElse",D),e.xp6(5),e.Q6J("ngIf",z.promotion),e.xp6(2),e.Q6J("ngForOf",z.subscriptions)}}let ot=(()=>{class X{constructor(z,D,Dt,Ot,Ct){this.store=z,this.actions$=D,this.router=Dt,this.dialog=Ot,this.dialogRef=Ct,this.sub=[],this.baseURL=g.N.api.baseURL,this.pricingPlan$=this.store.select(i.Eu),this.pageContent$=this.store.select(i.cL),this.isAuthenticated$=this.store.pipe((0,n.Ys)(s.dn))}ngOnInit(){this.initialValues()}initialValues(){null==this.dialogRef&&this.store.dispatch(new u.xl({sidenavOpened:!1,topnavLogo:!1})),this.store.dispatch(new m.fI),this.store.dispatch(new m.cL),this.store.dispatch(new u.zX),this.store.dispatch(new u._M("plan-pricing")),this.store.dispatch(new r.iT),this.store.dispatch(new u.Qs({eventType:this.router.url}))}ngOnDestroy(){this.sub.forEach(z=>z.unsubscribe()),this.store.dispatch(new u.xl({sidenavOpened:!0}))}onPlanChoice(z){return(0,t.mG)(this,void 0,void 0,function*(){(yield this.isAuthenticated$.pipe((0,p.P)()).toPromise())||this.router.navigate(["/dashboard"]),this.store.dispatch(new u.ZL({subscription:z})),this.router.navigate(["/payments"]),this.sub.push(this.actions$.pipe((0,l.l4)("[CORE] ACTIVATE_SUBSCRIPTION_SUCCESS","[CORE] ACTIVATE_SUBSCRIPTION_FAIL")).subscribe(Dt=>{Dt.payload.payable&&(this.dialog.closeAll(),this.router.navigate(["/payments"]))}))})}}return X.\u0275fac=function(z){return new(z||X)(e.Y36(n.yh),e.Y36(l.eX),e.Y36(c.F0),e.Y36(a.uw),e.Y36(a.so,8))},X.\u0275cmp=e.Xpm({type:X,selectors:[["qupi-pricing-plans"]],decls:2,vars:3,consts:[["class","pricing",4,"ngIf"],[1,"pricing"],[4,"ngIf","ngIfElse"],["backupLoader",""],[1,"pricing-details"],[3,"promotion",4,"ngIf"],[1,"pricing-cards"],[3,"subscription","select",4,"ngFor","ngForOf"],["class","pricing-headings",4,"ngIf","ngIfElse"],[1,"pricing-headings"],["class","pricing-photo",4,"ngIf"],["size","xlg","fontWeight","bold","textAlign","center",1,"pricing-header"],[3,"innerHtml"],["justifyContent","center",1,"pricing-subheader"],["size","lg","fontWeight","bold","textAlign","center",1,"pricing-header"],[1,"pricing-photo"],[3,"src"],["qupiHeadingUnderline",""],[3,"promotion"],[3,"subscription","select"]],template:function(z,D){1&z&&(e.YNc(0,et,10,6,"qupi-group",0),e.ALo(1,"async")),2&z&&e.Q6J("ngIf",e.lcZ(1,1,D.pricingPlan$))},dependencies:[h.B,C.S,P.k,w.m,O.sg,O.O5,M.k,K,A.G,O.Ov],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%] qupi-subscription-card qupi-card{margin:0 auto}[_nghost-%COMP%] qupi-heading{width:100%}[_nghost-%COMP%] qupi-heading .qupi-heading{justify-content:center}[_nghost-%COMP%]{color:#215ca8;width:100%;max-width:1100px;margin:auto;align-items:center;justify-content:center}[_nghost-%COMP%] .pricing[_ngcontent-%COMP%]{width:825px;flex-direction:column;align-items:center;margin:3em auto 5em}[_nghost-%COMP%] .pricing[_ngcontent-%COMP%] .pricing-headings[_ngcontent-%COMP%]{justify-content:center}[_nghost-%COMP%] .pricing[_ngcontent-%COMP%] .pricing-photo[_ngcontent-%COMP%]{max-width:1100px;margin-bottom:1.875em}[_nghost-%COMP%] .pricing[_ngcontent-%COMP%] .pricing-photo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;aspect-ratio:21/9;-o-object-fit:cover;object-fit:cover}@media (min-width: 426px){[_nghost-%COMP%] .pricing[_ngcontent-%COMP%]{width:100%;max-width:100%;flex-direction:column}}@media (max-width: 450px){[_nghost-%COMP%] .pricing[_ngcontent-%COMP%]{width:100%}}@media (max-width: 769px){[_nghost-%COMP%] .pricing[_ngcontent-%COMP%] .pricing-headings[_ngcontent-%COMP%]{height:20%;max-height:20%;justify-content:center}[_nghost-%COMP%] .pricing[_ngcontent-%COMP%] .pricing-details[_ngcontent-%COMP%]{max-height:80%;height:80%;display:flex}}[_nghost-%COMP%] .pricing[_ngcontent-%COMP%] qupi-content[_ngcontent-%COMP%] qupi-heading[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%] .pricing-details[_ngcontent-%COMP%]{justify-content:center;align-self:flex-start}[_nghost-%COMP%] .pricing-header[_ngcontent-%COMP%]{margin-bottom:.9375em}[_nghost-%COMP%] .pricing-subheader[_ngcontent-%COMP%]{margin-bottom:1.875em;align-self:center;text-align:center;justify-content:center;width:100%}[_nghost-%COMP%] .pricing-cards[_ngcontent-%COMP%]{min-height:385px;margin-top:1.875em;margin-bottom:1.875em;justify-content:space-between;width:100%;display:flex;flex-wrap:wrap}@media (max-width: 1024px){[_nghost-%COMP%] .pricing-cards[_ngcontent-%COMP%]{flex-wrap:wrap}}@media (min-width: 426px){[_nghost-%COMP%] .pricing-cards[_ngcontent-%COMP%]{min-height:auto;justify-content:space-evenly}[_nghost-%COMP%] .pricing-cards[_ngcontent-%COMP%] qupi-subscription-card[_ngcontent-%COMP%]{margin-bottom:1.875em}}@media (max-width: 450px){[_nghost-%COMP%] .pricing-cards[_ngcontent-%COMP%]{flex-direction:column;justify-content:center;margin-bottom:1.875em}[_nghost-%COMP%] .pricing-cards[_ngcontent-%COMP%] qupi-subscription-card[_ngcontent-%COMP%]{margin-bottom:1.875em}}[_nghost-%COMP%] .pricing-cards[_ngcontent-%COMP%] qupi-pricing-plans-card[_ngcontent-%COMP%]{flex-basis:33%;justify-content:center;display:flex}"]}
1),X})()},42295:(Q,f,o)=>{"use strict";o.d(f,{L:()=>s});var t=o(5e3),n=o(52934),u=o(52842),i=o(86657),l=o(84196),p=o(69808);const m=function(r){return{count:r}};let s=(()=>{class r{constructor(){this.diffScale=[{percentage:70,text:"easy"},{percentage:33,text:"medium"},{percentage:0,text:"hard"}]}ngOnInit(){}calcScale(e){return this.diffScale.find(a=>a.percentage<=e).text}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=t.Xpm({type:r,selectors:[["qupi-question-difficulty"]],inputs:{questionDifficulty:"questionDifficulty",questionAnswers:"questionAnswers",headingWeight:"headingWeight",headingSize:"headingSize"},decls:10,vars:11,consts:[[1,"question-difficulty"],[1,"difficulty-content",3,"fontWeight","size"],[1,"difficulty-details"],["fontWeight","bold","size","xlg","justifyContent","center"],["size","sm","justifyContent","center","textAlign","center"],["lineHeight","5px",3,"showLabel","displayValues","lineValue"]],template:function(e,c){1&e&&(t.TgZ(0,"qupi-group",0)(1,"qupi-content",1),t._uU(2,"Question difficulty:"),t.qZA(),t.TgZ(3,"qupi-group",2)(4,"qupi-heading",3),t._uU(5),t.ALo(6,"uppercase"),t.qZA(),t.TgZ(7,"qupi-content",4),t._uU(8),t.qZA(),t._UZ(9,"qupi-line-chart",5),t.qZA()()),2&e&&(t.xp6(1),t.Q6J("fontWeight",c.headingWeight||"normal")("size",c.headingSize||"md"),t.xp6(4),t.Oqu(t.lcZ(6,7,c.calcScale(c.questionDifficulty))),t.xp6(3),t.hij("",c.questionDifficulty,"% of users answered this question."),t.xp6(1),t.Q6J("showLabel",!1)("displayValues",!1)("lineValue",t.VKq(9,m,100-c.questionDifficulty)))},dependencies:[n.B,u.S,i.m,l.D,p.gd],styles:[".question-difficulty[_ngcontent-%COMP%]{margin-bottom:3em;position:relative}.question-difficulty[_ngcontent-%COMP%] .information-wip-overlay[_ngcontent-%COMP%]{top:35px;position:absolute;z-index:20}.question-difficulty[_ngcontent-%COMP%] .information-wip-overlay[_ngcontent-%COMP%] .ov-heading[_ngcontent-%COMP%]{margin-bottom:.625em;display:flex}.question-difficulty[_ngcontent-%COMP%] .difficulty-details[_ngcontent-%COMP%]{width:100%;margin-top:1.25em;justify-content:center;text-align:center;flex-direction:column}.question-difficulty[_ngcontent-%COMP%] .difficulty-details[_ngcontent-%COMP%] qupi-line-chart[_ngcontent-%COMP%]{margin-bottom:.625em}.question-difficulty[_ngcontent-%COMP%] .difficulty-details[_ngcontent-%COMP%] qupi-heading[_ngcontent-%COMP%]{margin-bottom:.625em}.question-difficulty[_ngcontent-%COMP%] .difficulty-details[_ngcontent-%COMP%] qupi-content[_ngcontent-%COMP%]{justify-content:center;margin-bottom:1.25em}.question-difficulty[_ngcontent-%COMP%] .difficulty-details.blur-detail[_ngcontent-%COMP%]{filter:blur(9px);-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}"],changeDetection:0}),r})()},43039:(Q,f,o)=>{"use strict";o.d(f,{Q:()=>l});var t=o(5e3),n=o(60957),u=o(35357),i=o(44619);let l=(()=>{class p{constructor(){}ngOnInit(){}}return p.\u0275fac=function(s){return new(s||p)},p.\u0275cmp=t.Xpm({type:p,selectors:[["qupi-slick-topnav"]],decls:3,vars:2,consts:[["inlineSVG","/assets/images/svg/qupi-logo-white.svg",1,"slick-logo-wrapper"],["routerLink","/dashboard",3,"theme","width"]],template:function(s,r){1&s&&(t._UZ(0,"span",0),t.TgZ(1,"qupi-button",1),t._uU(2,"Back to dashboard"),t.qZA()),2&s&&(t.xp6(1),t.Q6J("theme","image-hover")("width","180px"))},dependencies:[n.r,u.rH,i.d$],styles:["[_nghost-%COMP%]{display:flex;width:100%;height:100%;justify-content:space-between;align-items:center}[_nghost-%COMP%] qupi-button[_ngcontent-%COMP%]{color:#fff!important}"]}),p})()},91437:(Q,f,o)=>{"use strict";o.d(f,{b:()=>r});var t=o(5e3),n=o(60957),u=o(18857),i=o(52934),l=o(52842),p=o(86657),m=o(35357),s=o(44619);let r=(()=>{class g{constructor(){}ngOnInit(){}}return g.\u0275fac=function(c){return new(c||g)},g.\u0275cmp=t.Xpm({type:g,selectors:[["qupi-submit-question-card"]],decls:11,vars:4,consts:[[1,"submit-question",3,"padding"],[1,"submit-question-container"],[1,"submit-question-header"],["inlineSVG","/assets/images/svg/cloud-plus.svg",1,"svg-ico-text"],[3,"fontWeight"],[1,"submit-question-footer"],[1,"submit-question-content",3,"size"],["width","220px","routerLink","/submit-question",3,"theme"]],template:function(c,a){1&c&&(t.TgZ(0,"qupi-card",0)(1,"qupi-group",1)(2,"qupi-group",2),t._UZ(3,"span",3),t.TgZ(4,"qupi-heading",4),t._uU(5," Submit a question "),t.qZA()(),t.TgZ(6,"qupi-group",5)(7,"qupi-content",6),t._uU(8," Lack of some question? Want to collaborate to grow with QUPI together? Submit your own question and help us be better! "),t.qZA(),t.TgZ(9,"qupi-button",7),t._uU(10," I'm in "),t.qZA()()()()),2&c&&(t.Q6J("padding","md"),t.xp6(4),t.Q6J("fontWeight","extra-bold"),t.xp6(3),t.Q6J("size","sm"),t.xp6(2),t.Q6J("theme","inversed"))},dependencies:[n.r,u.A,i.B,l.S,p.m,m.rH,s.d$],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:40px;height:40px;width:40px;margin-right:.3125em}[_nghost-%COMP%] .submit-question[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;width:100%}[_nghost-%COMP%] .submit-question-header[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center}[_nghost-%COMP%] .submit-question-container[_ngcontent-%COMP%]{flex-basis:100%;display:flex;flex-direction:column;justify-content:space-between}@media (min-width: 1440px){[_nghost-%COMP%] .submit-question-container[_ngcontent-%COMP%] qupi-button[_ngcontent-%COMP%]{width:215px}}[_nghost-%COMP%] .submit-question-footer[_ngcontent-%COMP%]{flex-direction:column}@media (min-width: 1440px){[_nghost-%COMP%] .submit-question-footer[_ngcontent-%COMP%]{flex-direction:row;justify-content:space-between;align-items:flex-end}}[_nghost-%COMP%] .submit-question-content[_ngcontent-%COMP%]{margin-top:1.25em;margin-bottom:1.25em}@media (min-width: 1440px){[_nghost-%COMP%] .submit-question-content[_ngcontent-%COMP%]{width:225px}}[_nghost-%COMP%] .dashboard-footer-header-underlined-span[_ngcontent-%COMP%]{margin-right:5px}"]}),g})()},10235:(Q,f,o)=>{"use strict";o.d(f,{k:()=>P});var t=o(5e3),n=o(68111);const u=(w,O)=>{let M,y;switch("object"==typeof O&&"string"==typeof O.durationModifier?(M=O.duration,y=O.durationModifier):"object"==typeof O?(M=p
1arseInt(O.duration),y=O.duration.replace(M,"")):(M=parseInt(O),y=O.replace(M,"")),y){case"m":return w/parseInt(M);case"y":return w/(12*parseInt(M));default:return w}};var i=o(96875),l=o(13758),p=o(65620),m=o(35357),s=o(82349),r=o(60957),g=o(18857),e=o(77093),c=o(69808);function a(w,O){if(1&w&&(t.TgZ(0,"div",7),t._UZ(1,"div",8),t.qZA()),2&w){const M=t.oxw();t.xp6(1),t.Q6J("innerHTML",M.subscription.previousPrice,t.oJD)}}function h(w,O){1&w&&(t.TgZ(0,"div",9),t._uU(1,"(Billed annually)"),t.qZA())}function C(w,O){1&w&&(t.TgZ(0,"div",9),t._uU(1,"(Billed monthly)"),t.qZA())}let P=(()=>{class w{constructor(M,y,x,L){this.angulartics2=M,this.store=y,this.router=x,this.dialog=L,this.hasAdminInterface=!1,this.select=new t.vpe,this.getPricePerMonth=u,this.isAnnualy=!0,this._subscription={}}get subscription(){return this._subscription}set subscription(M){this._subscription=this.subscriptionToCard(Object.assign({},M))}ngOnInit(){}subscriptionToCard(M){if(this.hasAdminInterface){let y=M.regionalisation.find(x=>"USA"===x.worldRegion.code);y||(y=M.regionalisation[0]||{price:0}),M=Object.assign(Object.assign({},M),{price:y.price,currencySymbol:"$",previousPrice:0})}return this.isAnnualy=this.isBilledAnnualy(M),Object.assign(Object.assign({},M.card),{isPromotion:M.isPromotion,body:(0,n.Z)(M.card.body||""),price:this.getPriceText(M),previousPrice:this.getPriceText(M,{previous:!0})})}getPriceText(M,{previous:y}={previous:!1}){const L=y?"previousPrice":"price";if(M[L])return B=M.currencySymbol+this.getPricePerMonth(M[L],M).toFixed(2),(0,n.Z)(`**${B}**_/mo._`);var B}isBilledAnnualy(M){return 11!==M.id}redirectUserIfUnauthenticated(){this.store.select(i.sP).subscribe(M=>{M?this.select.emit():this.router.navigate(["/login"])})}onSelect(){this.angulartics2.eventTrack.next({action:"AddToCart",properties:{category:"Choose plan"}}),this.dialog.closeAll(),this.redirectUserIfUnauthenticated()}}return w.\u0275fac=function(M){return new(M||w)(t.Y36(l.b),t.Y36(p.yh),t.Y36(m.F0),t.Y36(s.uw))},w.\u0275cmp=t.Xpm({type:w,selectors:[["qupi-subscription-card"]],inputs:{hasAdminInterface:"hasAdminInterface",subscription:"subscription"},outputs:{select:"select"},decls:10,vars:8,consts:[["fxLayout","column",3,"inversed"],[1,"head"],[1,"body",3,"innerHTML"],["fxLayout","row","fxLayoutAlign","center",4,"ngIf"],[1,"price",3,"innerHTML"],[3,"theme","click"],["class","billing",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center"],[1,"price","price--promotion",3,"innerHTML"],[1,"billing"]],template:function(M,y){1&M&&(t.TgZ(0,"qupi-card",0)(1,"div",1),t._uU(2),t.qZA(),t._UZ(3,"div",2),t.YNc(4,a,2,1,"div",3),t._UZ(5,"div",4),t.TgZ(6,"qupi-button",5),t.NdJ("click",function(){return y.onSelect()}),t._uU(7,"Choose this plan"),t.qZA(),t.YNc(8,h,2,0,"div",6),t.YNc(9,C,2,0,"div",6),t.qZA()),2&M&&(t.Q6J("inversed",y.subscription.isHighlighted),t.xp6(2),t.Oqu(y.subscription.head),t.xp6(1),t.Q6J("innerHTML",y.subscription.body,t.oJD),t.xp6(1),t.Q6J("ngIf",y.subscription.isPromotion),t.xp6(1),t.Q6J("innerHTML",y.subscription.price,t.oJD),t.xp6(1),t.Q6J("theme",y.subscription.isHighlighted?"manilla":"inversed"),t.xp6(2),t.Q6J("ngIf",y.isAnnualy),t.xp6(1),t.Q6J("ngIf",!y.isAnnualy))},dependencies:[r.r,g.A,e.xw,e.Wh,c.O5],styles:['.d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}qupi-card[_ngcontent-%COMP%]{width:255px;text-align:center;height:100%;justify-content:space-around}@media (min-width: 1200px){qupi-card[_ngcontent-%COMP%]{width:230px}}qupi-card[_ngcontent-%COMP%] .head[_ngcontent-%COMP%]{color:#a1bee3;margin-bottom:.9375em}qupi-card[_ngcontent-%COMP%] .body[_ngcontent-%COMP%]{font-size:1.5em;margin-bottom:.9375em}qupi-card[_ngcontent-%COMP%] .body[_ngcontent-%COMP%] strong{font-weight:900}qupi-card[_ngcontent-%COMP%] .body[_ngcontent-%COMP%] em{position:relative;font-style:normal;z-index:1}qupi-card[_ngcontent-%COMP%] .body[_ngcontent-%COMP%] em:after{content:"";width:100%;position:absolute;bottom:.05em;right:-.3em;height:.3em;background-color:#fff68a;z-index:-1}qupi-card[_ngcontent-%COMP%] .price[_ngcontent-%COMP%]{margin-bottom:.9375em}qupi-card[_ngcontent-%COMP%] .price[_ngcontent-%COMP%] strong{font-weight:700;font-size:3em}qupi-card[_ngcontent-%COMP%] .price[_ngcontent-%COMP%] em{font-size:.75em;font-style:normal}qupi-card[_ngcontent-%COMP%] .price--promotion[_ngcontent-%COMP%]{position:relative;color:#a1bee3}qupi-card[_ngcontent-%COMP%] .price--promotion[_ngcontent-%COMP%] strong{font-weight:700;font-size:2em}qupi-card[_ngcontent-%COMP%] .price--promotion[_ngcontent-%COMP%]:after{content:"";top:50%;transform:translateY(-50%);left:-10%;position:absolute;width:120%;height:2px;background-color:#ff8aa4}qupi-card[_ngcontent-%COMP%] .billing[_ngcontent-%COMP%]{font-size:10px;margin-top:.4rem}[_nghost-%COMP%] qupi-card.inversed .head{color:#fff}[_nghost-%COMP%] qupi-card.inversed .body em:after{background-color:#43b3f7}'],changeDetection:0}),w})()},83995:(Q,f,o)=>{"use strict";o.d(f,{H:()=>s});var t=o(5e3),n=o(60957),u=o(52934),i=o(52842),l=o(86657),p=o(35357),m=o(44619);let s=(()=>
1{class r{constructor(){}ngOnInit(){}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=t.Xpm({type:r,selectors:[["qupi-success-error-view"]],inputs:{data:"data",isError:"isError"},decls:9,vars:9,consts:[[1,"view-wrapper"],[1,"view-icon-wrapper"],[3,"inlineSVG"],[1,"view-heading",3,"size","fontWeight"],[3,"width","theme","routerLink"]],template:function(e,c){1&e&&(t.TgZ(0,"qupi-group",0)(1,"div",1),t._UZ(2,"span",2),t.qZA(),t.TgZ(3,"qupi-heading",3),t._uU(4),t.qZA(),t.TgZ(5,"qupi-content"),t._uU(6),t.qZA(),t.TgZ(7,"qupi-button",4),t._uU(8),t.qZA()()),2&e&&(t.xp6(2),t.Q6J("inlineSVG",c.isError?"/assets/images/svg/error.svg":"/assets/images/svg/success-cloud.svg"),t.xp6(1),t.Q6J("size","xlg")("fontWeight","extra-bold"),t.xp6(1),t.Oqu(c.data.heading),t.xp6(2),t.Oqu(c.data.content||"Server error"),t.xp6(1),t.Q6J("width","220px")("theme",c.data.theme)("routerLink",c.data.linkTo||"/dashboard"),t.xp6(1),t.Oqu(c.data.buttonName||"Go to dashboard"))},dependencies:[n.r,u.B,i.S,l.m,p.rH,m.d$],styles:[".view-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-bottom:1.875em}.view-wrapper[_ngcontent-%COMP%] .view-heading[_ngcontent-%COMP%]{margin-bottom:1.25em}.view-wrapper[_ngcontent-%COMP%] .view-icon-wrapper[_ngcontent-%COMP%]{margin:1.875em 0}.view-wrapper[_ngcontent-%COMP%] qupi-content[_ngcontent-%COMP%]{margin-bottom:1.25em}"]}),r})()},18308:(Q,f,o)=>{"use strict";o.d(f,{W:()=>Z});var t=o(49083),n=o(11632),u=o(15585),i=o(5e3),l=o(65620),p=o(38322),m=o(52934),s=o(5850),r=o(52842),g=o(86657),e=o(69808),c=o(93075),a=o(35357);function h(b,N){if(1&b&&i._UZ(0,"qupi-avatar",8),2&b){const K=i.oxw();i.Q6J("size","md")("imageSrc",null==K.user?null:K.user.photo)}}function C(b,N){if(1&b&&i._UZ(0,"qupi-photo-upload",9),2&b){const K=i.oxw();i.Q6J("imageURL",null==K.user?null:K.user.photo)("formControl",K.formControlImg)("uploadOptions",K.uploadOptions)("size","md")("variant","editable")}}function P(b,N){if(1&b&&(i.TgZ(0,"qupi-content",12)(1,"span"),i._uU(2),i.qZA()()),2&b){const K=N.$implicit;i.Q6J("size","sm"),i.xp6(2),i.hij(" Student of ",null==K?null:K.name," ")}}function w(b,N){if(1&b&&(i.ynx(0),i.YNc(1,P,3,2,"qupi-content",10),i.TgZ(2,"qupi-content",11),i._uU(3),i.qZA(),i.BQk()),2&b){const K=N.$implicit,A=i.oxw();i.xp6(1),i.Q6J("ngIf",null==A.user?null:A.user.fieldOfStudy),i.xp6(1),i.Q6J("size","sm"),i.xp6(1),i.hij(" ",null==K?null:K.name," ")}}function O(b,N){if(1&b&&(i.TgZ(0,"qupi-content",18),i._uU(1),i.qZA()),2&b){const K=i.oxw(2);i.Q6J("size","sm"),i.xp6(1),i.hij(" ",K.userActiveSubscription.daysLeft," days left ")}}function M(b,N){if(1&b&&(i.TgZ(0,"div")(1,"qupi-heading",13),i._uU(2," Trial "),i.qZA(),i.TgZ(3,"qupi-group",14),i.YNc(4,O,2,2,"qupi-content",15),i.TgZ(5,"qupi-content",16)(6,"a",17),i._uU(7," Update plan "),i.qZA()()()()),2&b){const K=i.oxw();i.xp6(4),i.Q6J("ngIf",K.userActiveSubscription.daysLeft)}}function y(b,N){if(1&b&&(i.TgZ(0,"qupi-heading",22),i._uU(1),i.qZA()),2&b){const K=N.$implicit;i.xp6(1),i.hij(" ",K.subscription.name," ")}}function x(b,N){if(1&b&&(i.TgZ(0,"qupi-content",23),i._uU(1),i.qZA()),2&b){const K=i.oxw(2);i.xp6(1),i.hij(" Next charge in ",K.daysLeft," days ")}}function L(b,N){if(1&b&&(i.TgZ(0,"div"),i.YNc(1,y,2,1,"qupi-heading",19),i.ALo(2,"async"),i.TgZ(3,"qupi-group",14),i.YNc(4,x,2,1,"qupi-content",20),i.TgZ(5,"qupi-content",16)(6,"a",21),i._uU(7," Change plan "),i.qZA()()()()),2&b){const K=i.oxw();i.xp6(1),i.Q6J("ngForOf",i.lcZ(2,2,K.recurringSubscriptions$)),i.xp6(3),i.Q6J("ngIf",K.daysLeft)}}function B(b,N){1&b&&(i.TgZ(0,"div")(1,"qupi-heading",22),i._uU(2," Basic user "),i.qZA(),i.TgZ(3,"qupi-group",14)(4,"qupi-content",16)(5,"a",17),i._uU(6," Update plan "),i.qZA()()()())}let Z=(()=>{class b{constructor(K){this.store=K,this.isTrialOnly=!1,this.trial={ends:0},this.daysLeft="",this.userActiveSubscription={name:"Basic user",daysLeft:!1}}get user(){return this._user}ngOnInit(){this.store.dispatch(new t.lX),this.initialValues()}ngOnDestroy(){this.userReccuringSubscription.unsubscribe()}initialValues(){this.recurringSubscriptions$=this.store.select(n.IE),this.userReccuringSubscription=this.store.select(n.IE).subscribe(K=>{var A,$;if(K&&(null===(A=K[0])||void 0===A?void 0:A.ends)){const W=new Date(null===($=K[0])||void 0===$?void 0:$.ends).getTime(),_t=(new Date).getTime(),k=String((W-_t)/864e5);this.daysLeft=parseInt(k)}})}set user(K){const A=K.subscriptions.find($=>$.subscription.isTrial);this.isTrialOnly=!!A&&1===K.subscriptions.length,this._user=K,this.trial=A,this.userActiveSubscription.daysLeft=(0,u.uZ)(K.subscriptions.sort(($,W)=>$.subscription.isTrial>W.subscription.isTrial)[0]).daysLeft}}return b.\u0275fac=function(K){return new(K||b)(i.Y36(l.yh))},b.\u0275cmp=i.Xpm({type:b,selectors:[["qupi-user-profile-details"]],inputs:{editMode:"editMode",formControlImg:"formControlImg",uploadOptions:"uploadOptions",user:"user"},decls:15,vars:14,consts:[[1,"user-header-container"],[1,"user-header-profile"],[3,"size","imageSrc",4,"ngIf"],[3,"imageURL","formControl","uploadOptions","size","variant",4,"ngIf"],[1,"user-header-profile-details"],[1,"user-header-profile-details-name",3,"fontWeight"],[4,"ngIf"],[1,"user-header-account"],[3,"size","imageSrc"],[3,"imageURL","formControl","uploadOptions","size","variant"],["class","user-header-profile-details-desc",3,"size",4,"ngIf"],[1,"user-header-profile-details-uni",3,"size"],[1,"user-header-profile-details-desc",3,"size"],[1,"user-header-account-heading",2,"color","#ff8aa4"],[1,"user-header-account-content"],[3,"size",4,"ngIf"],["size","sm","fontWeight","bold",1,"plan-upgrade"],["routerLink","/plan-pricing"],[3,"size"],["class","user-header-account-heading","style","color: #215ca8","fontWeight","bold",4,"ngFor","ngForOf"],["size","sm",4,"ngIf"],["routerLink","/change-plan-pricing"],["fontWeight","bold",1,"user-header-account-heading",2,"color","#215ca8"],["size","sm"]],template:function(K,A){if(1&K&&(i.TgZ(0,"qupi-group",0)(1,"qupi-group",1),i.YNc(2,h,1,2,"qupi-avatar",2),i.YNc(3,C,1,5,"qupi-photo-upload",3),i.TgZ(4,"qupi-group",4)(5,"qupi-heading",5),i._uU(6),i.qZA(),i.YNc(7,w,4,3,"ng-container",6),i.qZA()(),i.TgZ(8,"qupi-group",7),i.YNc(9,M,8,1,"div",6),i.ALo(10,"async"),i.YNc(11,L,8,4,"div",6),i.ALo(12,"async"),i.YNc(13,B,7,0,"div",6),i.ALo(14,"async"),i.qZA()()),2&K){let $,W,_t;i.xp6(2),i.Q6J("ngIf",!A.editMode),i.xp6(1),i.Q6J("ngIf",A.editMode),i.xp6(2),i.Q6J("fontWeight","bold"),i.xp6(1),i.hij(" ",A.user.firstName," "),i.xp6(1),i.Q6J("ngIf",null==A.user?null:A.user.university),i.xp6(2),i.Q6J("ngIf",A.isTrialOnly&&
1(null==($=i.lcZ(10,8,A.recurringSubscriptions$))?null:$.length)<1),i.xp6(2),i.Q6J("ngIf",(null==(W=i.lcZ(12,10,A.recurringSubscriptions$))?null:W.length)>=1),i.xp6(2),i.Q6J("ngIf",0===(null==(_t=i.lcZ(14,12,A.recurringSubscriptions$))?null:_t.length)&&!A.isTrialOnly)}},dependencies:[p.N,m.B,s.A,r.S,g.m,e.sg,e.O5,c.JJ,c.oH,a.yS,e.Ov],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%]{display:flex}.user-header-container[_ngcontent-%COMP%]{width:100%;flex-direction:column}@media (min-width: 768px){.user-header-container[_ngcontent-%COMP%]{flex-direction:row;justify-content:space-between}}.user-header-profile[_ngcontent-%COMP%]{flex-wrap:nowrap;width:100%}@media (max-width: 768px){.user-header-profile[_ngcontent-%COMP%]{margin-bottom:.625em}}@media (min-width: 768px){.user-header-profile[_ngcontent-%COMP%]{width:auto}}.user-header-profile-details[_ngcontent-%COMP%]{flex-direction:column;justify-content:center;margin-left:1.25em}.user-header-account[_ngcontent-%COMP%]{flex-direction:column;margin-left:5em}@media (min-width: 768px){.user-header-account[_ngcontent-%COMP%]{margin-left:0;justify-content:center}}.user-header-account[_ngcontent-%COMP%] .user-header-account-content[_ngcontent-%COMP%]{margin-top:.625em;justify-content:space-between}@media (min-width: 768px){.user-header-account[_ngcontent-%COMP%] .user-header-account-content[_ngcontent-%COMP%]{flex-direction:column;margin-top:0}}"]}),b})()},30379:(Q,f,o)=>{"use strict";o.d(f,{_d:()=>u,nB:()=>t,y7:()=>n});const t=[{name:"1 year",value:1},{name:"2 years",value:2},{name:"3 years",value:3},{name:"4 years",value:4},{name:"5 years",value:5},{name:"6 years",value:6},{name:"7 years",value:7},{name:"8 years",value:8},{name:"9 years",value:9},{name:"10 years",value:10}],n=[{name:"Male",value:1},{name:"Female",value:2}],u={SIZE_MD:{width:"450px"}}},98741:(Q,f,o)=>{"use strict";o.d(f,{K:()=>l});var t=o(92340),n=o(5e3),u=o(40520);const i=t.N.api;let l=(()=>{class p{constructor(s){this.http=s}getCountries(){return this.http.get(i.baseURL+"/api/v1/dictionaries/countries")}createCountry(s){return this.http.post(i.baseURL+"/api/v1/dictionaries/countries",s)}editCountry({id:s,data:r}){return this.http.patch(i.baseURL+`/api/v1/dictionaries/countries/${s}`,r)}deleteCountry(s){return this.http.delete(i.baseURL+`/api/v1/dictionaries/countries/${s}`)}}return p.\u0275fac=function(s){return new(s||p)(n.LFG(u.eN))},p.\u0275prov=n.Yz7({token:p,factory:p.\u0275fac}),p})()},39272:(Q,f,o)=>{"use strict";o.d(f,{B:()=>l});var t=o(92340),n=o(5e3),u=o(40520);const i=t.N.api;let l=(()=>{class p{constructor(s){this.http=s}getFeedbackCategories(){return this.http.get(i.baseURL+"/api/v1/dictionaries/feedback-category")}createFeedbackCategory(s){return this.http.post(i.baseURL+"/api/v1/dictionaries/feedback-category",s)}editFeedbackCategory({id:s,data:r}){return this.http.patch(i.baseURL+`/api/v1/dictionaries/feedback-category/${s}`,r)}deleteFeedbackCategory(s){return this.http.delete(i.baseURL+`/api/v1/dictionaries/feedback-category/${s}`)}}return p.\u0275fac=function(s){return new(s||p)(n.LFG(u.eN))},p.\u0275prov=n.Yz7({token:p,factory:p.\u0275fac}),p})()},25622:(Q,f,o)=>{"use strict";o.d(f,{f:()=>l});var t=o(92340),n=o(5e3),u=o(40520);const i=t.N.api;let l=(()=>{class p{constructor(s){this.http=s}getValues(s){return this.http.get(i.baseURL+`/api/v1/dictionaries/lab-values/${s?s.id:""}`)}postValue(s){return this.http.post(i.baseURL+"/api/v1/dictionaries/lab-values/",Object.assign({},s))}postCategory(s){return this.http.post(i.baseURL+"/api/v1/dictionaries/lab-values/category",{name:s})}editValue(s){return this.http.patch(i.baseURL+"/api/v1/dictionaries/lab-values/edit",{value:s})}deleteValue(s){return this.http.delete(i.baseURL+`/api/v1/dictionaries/lab-values/${s}`)}}
1return p.\u0275fac=function(s){return new(s||p)(n.LFG(u.eN))},p.\u0275prov=n.Yz7({token:p,factory:p.\u0275fac}),p})()},44564:(Q,f,o)=>{"use strict";o.d(f,{A:()=>zt,AC:()=>ht,AM:()=>N,BN:()=>Y,Bh:()=>I,CG:()=>ot,Co:()=>w,EH:()=>r,EL:()=>$,FA:()=>Wt,Gd:()=>O,HF:()=>Lt,HH:()=>H,Hf:()=>Pt,Hm:()=>K,Iy:()=>St,J8:()=>Z,LG:()=>P,Lc:()=>Xt,ME:()=>mt,MH:()=>m,MI:()=>xt,N:()=>qt,Nd:()=>X,QP:()=>ut,Qe:()=>u,Ql:()=>Bt,Rf:()=>M,S0:()=>kt,Sb:()=>Zt,Td:()=>z,U5:()=>at,V1:()=>x,V5:()=>p,Vq:()=>rt,Vy:()=>W,WJ:()=>wt,Wp:()=>A,XE:()=>_t,Y0:()=>V,Z1:()=>et,ZO:()=>F,aV:()=>i,an:()=>Ut,b7:()=>tt,cB:()=>a,cL:()=>h,f8:()=>Qt,fI:()=>t,fP:()=>j,fb:()=>oe,fu:()=>gt,fv:()=>n,gc:()=>Vt,gl:()=>Ct,hs:()=>le,iR:()=>e,it:()=>nt,j8:()=>U,jV:()=>c,l8:()=>Ft,lO:()=>lt,mK:()=>l,mL:()=>b,m_:()=>ee,ml:()=>s,mm:()=>Kt,n3:()=>ct,nC:()=>vt,qJ:()=>Mt,r7:()=>y,rA:()=>C,sm:()=>Ht,uP:()=>Nt,uY:()=>k,w:()=>B,xJ:()=>g,xb:()=>Tt,xk:()=>ne,yB:()=>Ot,zt:()=>L});class t{constructor(){this.type="[DICT] GetDisciplines"}}class n{constructor(E){this.payload=E,this.type="[DICT] GetDisciplinesSuccess"}}class u{constructor(E){this.payload=E,this.type="[DICT] GetDisciplinesFail"}}class i{constructor(E){this.payload=E,this.type="[DICT] ClearDisciplines"}}class l{constructor(E){this.payload=E,this.type="[DICT] CreateDiscipline"}}class p{constructor(E){this.payload=E,this.type="[DICT] CreateDisciplineSuccess"}}class m{constructor(E){this.payload=E,this.type="[DICT] CreateDisciplineFail"}}class s{constructor(E){this.payload=E,this.type="[DICT] EditDiscipline"}}class r{constructor(E){this.payload=E,this.type="[DICT] EditDisciplineSuccess"}}class g{constructor(E){this.payload=E,this.type="[DICT] EditDisciplineFail"}}class e{constructor(E){this.payload=E,this.type="[DICT] DeleteDiscipline"}}class c{constructor(E){this.payload=E,this.type="[DICT] DeleteDisciplineSuccess"}}class a{constructor(E){this.payload=E,this.type="[DICT] DeleteDisciplineFail"}}class h{constructor(){this.type="[DICT] GetBodySystems"}}class C{constructor(E){this.payload=E,this.type="[DICT] GetBodySystemsSuccess"}}class P{constructor(E){this.payload=E,this.type="[DICT] GetBodySystemsFail"}}class w{constructor(E){this.payload=E,this.type="[DICT] ClearBodySystems"}}class O{constructor(E){this.payload=E,this.type="[DICT] CreateBodySystem"}}class M{constructor(E){this.payload=E,this.type="[DICT] CreateBodySystemSuccess"}}class y{constructor(E){this.payload=E,this.type="[DICT] CreateBodySystemFail"}}class x{constructor(E){this.payload=E,this.type="[DICT] EditBodySystem"}}class L{constructor(E){this.payload=E,this.type="[DICT] EditBodySystemSuccess"}}class B{constructor(E){this.payload=E,this.type="[DICT] EditBodySystemFail"}}class Z{constructor(E){this.payload=E,this.type="[DICT] DeleteBodySystem"}}class b{constructor(E){this.payload=E,this.type="[DICT] DeleteBodySystemSuccess"}}class N{constructor(E){this.payload=E,this.type="[DICT] DeleteBodySystemFail"}}class K{constructor(){this.type="[DICT] GetCountries"}}class A{constructor(E){this.payload=E,this.type="[DICT] GetCountriesSuccess"}}class ${constructor(E){this.payload=E,this.type="[DICT] GetCountriesFail"}}class W{constructor(E){this.payload=E,this.type="[DICT] CreateCountry"}}class _t{constructor(E){this.payload=E,this.type="[DICT] CreateCountrySuccess"}}class k{constructor(E){this.payload=E,this.type="[DICT] CreateCountryFail"}}class ct{constructor(E){this.payload=E,this.type="[DICT] EditCountry"}}class at{constructor(E){this.payload=E,this.type="[DICT] EditCountrySuccess"}}class et{constructor(E){this.payload=E,this.type="[DICT] EditCountryFail"}}class ot{constructor(E){this.payload=E,this.type="[DICT] DeleteCountry"}}class X{constructor(E){this.payload=E,this.type="[DICT] DeleteCountrySuccess"}}class F{constructor(E){this.payload=E,this.type="[DICT] DeleteCountryFail"}}class z{constructor(){this.type="[DICT] GetUniversities"}}class Ot{constructor(E){this.payload=E,this.type="[DICT] GetUniversitiesByCountry"}}class Ct{constructor(E){this.payload=E,this.type="[DICT] GetUniversitiesByCountrySuccess"}}class Mt{constructor(E){this.payload=E,this.type="[DICT] GetUniversitiesByCountryFail"}}class Bt{constructor(E){this.payload=E,this.type="[DICT] CreateUniversitySuccess"}}class zt{constructor(E){this.payload=E,this.type="[DICT] CreateUniversityFail"}}class ee{constructor(E){this.payload=E,this.type="[DICT] EditUniversitySuccess"}}class V{constructor(E){this.payload=E,this.type="[DICT] EditUniversityFail"}}class Tt{constructor(E){this.payload=E,this.type="[DICT] DeleteUniversitySuccess"}}class qt{constructor(E){this.payload=E,this.type="[DICT] DeleteUniversityFail"}}class Nt{constructor(){this.type="[DICT] GetRegions"}}class Lt{constructor(E){this.payload=E,this.type="[DICT] GetRegionsSuccess"}}class Ht{constructor(E){this.payload=E,this.type="[DICT] GetRegionsFail"}}class Vt{constructor(E){this.payload=E,this.type="[DICT] GetRegionsByCountry"}}class Xt{constructor(E){this.payload=E,this.type="[DICT] GetRegionsByCountrySuccess"}}class tt{constructor(E){this.payload=E,this.type="[DICT] GetRegionsByCountryFail"}}class mt{constructor(E){this.payload=E,this.type="[DICT] CreateRegion"}}class j{constructor(E){this.payload=E,this.type="[DICT] CreateRegionSuccess"}}class lt{constructor(E){this.payload=E,this.type="[DICT] CreateRegionFail"}}class gt{constructor(E){this.payload=E,this.type="[DICT] EditRegion"}}class wt{constructor(E){this.payload=E,this.type="[DICT] EditRegionSuccess"}}class Wt{constructor(E){this.payload=E,this.type="[DICT] EditRegionFail"}}class kt{constructor(E){this.payload=E,this.type="[DICT] DeleteRegion"}}class Ut{constructor(E){this.payload=E,this.type="[DICT] DeleteRegionSuccess"}}class Zt{constructor(E){this.payload=E,this.type="[DICT] DeleteRegionFail"}}class H{constructor(){this.type="[DICT] GetFieldsOfStudy"}}class ut{constructor(E){this.payload=E,this.type="[DICT] GetFieldsOfStudySuccess"}}class I{constructor(E){this.payload=E,this.type="[DICT] GetFieldsOfStudyFail"}}class rt{constructor(E){this.payload=E,this.type="[DICT] CreateFieldOfStudy"}}class Pt{constructor(E){this.payload=E,this.type="[DICT] CreateFieldOfStudySuccess"}}class St{constructor(E){this.payload=E,this.type="[DICT] CreateFieldOfStudyFail"}}class xt{constructor(E){this.payload=E,this.type="[DICT] EditFieldOfStudy"}}class ne{constructor(E){this.payload=E,this.type="[DICT] EditFieldOfStudySuccess"}}class Y{constructor(E){this.payload=E,this.type="[DICT] EditFieldOfStudyFail"}}class ht{constructor(E){this.payload=E,this.type="[DICT] DeleteFieldOfStudy"}}class U{constructor(E){this.payload=E,this.type="[DICT] DeleteFieldOfStudySuccess"}}class nt{constructor(E){this.payload=E,this.type="[DICT] DeleteFieldOfStudyFail"}}class vt{constructor(E){this.payload=E,this.type="[DICT] GetLabValuesSuccess"}}class Qt{constructor(E){this.payload=E,this.type="[DICT] GetLabValuesFail"}}class Kt{constructor(E){this.payload=E,this.type="[DICT] FilterBodySystemsSuccess"}}class Ft{constructor(E){this.payload=E,this.type="[DICT] FilterBodySystemsFail"}}class le{constructor(E){this.payload=E,this.type="[DICT] FilterDisciplinesSuccess"}}class oe{constructor(E){this.payload=E,this.type="[DICT] FilterDisciplinesFail"}}},41212:(Q,f,o)=>{"use strict";o.d(f,{I4:()=>l,QE:()=>p,FT:()=>u,mC:()=>i,n2:()=>r,gk:()=>g,uT:()=>s,$c:()=>m});class t{static request({state:c,property:a},{clearData:h}={clearData:!1}){return Object.assign(Object.assign({},c),{[a]:{pending:!0,error:null,data:h?c[a].data:null},errors:Object.assign(Object.assign({},c.errors),{[a]:null})})}static success({state:c,property:a,payload:h}){return Object.assign(Object.assign({},c),{[a]:{pending:!1,error:null,data:h},errors:Object.assign(Object.assign({},c.errors),{[a]:null})})}static fail({state:c,property:a,payload:h}){return Object.assign(Object.assign({},c),{[a]:{pending:!1,error:!0,data:null},errors:Object.assign(Object.assign({},c.errors),{[a]:h})})}}const n={disciplines:{pending:!1,error:null,data:[]},bodySystems:{pending:!1,error:null,data:[]},countries:{pending:!1,error:null,data:[]},universities:{pending:!1,error:null,data:[]},regions:{pending:!1,error:null,data:[]},fieldsOfStudy:{pending:!1,error:null,data:[]},labValues:{pending:!1,error:null,data:[]},errors:{disciplines:null,bodySystems:null},filteredDictionaries:{bodySystems:null,disciplines:null}};function u(e=n,c){switch(c.type){case"[DICT] GetDisciplines":return t.request({state:e,property:"disciplines"});case"[DICT] GetDisciplinesSuccess":return t.success({state:e,property:"disciplines",payload:c.payload});case"[DICT] GetDisciplinesFail":return t.fail({state:e,property:"disciplines",payload:c.payload});case"[DICT] ClearDisciplines":return Object.assign(Object.assign({},e),{disciplines:{data:[]}});case"[DICT] GetBodySystems":return t.request({state:e,property:"bodySystems"});case"[DICT] GetBodySystemsSuccess":return t.success({state:e,property:"bodySystems",payload:c.payload});case"[DICT] GetBodySystemsFail":return t.fail({state:e,property:"bodySystems",payload:c.payload});case"[DICT] ClearBodySystems":return Object.assign(Object.assign({},e),{bodySystems:{data:[]}});case"[DICT] GetCountries":return t.request({state:e,property:"countries"});case"[DICT] GetCountriesSuccess":return t.success({state:e,property:"countries",payload:c.payload});case"[DICT] GetCountriesFail":return t.fail({state:e,property:"countries",payload:c.payload});case"[DICT] GetUniversities":case"[DICT] GetUniversitiesByCountry":return t.request({state:e,property:"universities"});case"[DICT] GetUniversitiesSuccess":case"[DICT] GetUniversitiesByCountrySuccess":return t.success({state:e,property:"universities",payload:c.payload});case"[DICT] GetUniversitiesFail":case"[DICT] GetUniversitiesByCountryFail":return t.fail({state:e,property:"universities",payload:c.payload});case"[DICT] GetRegions":case"[DICT] GetRegionsByCountry":return t.request({state:e,property:"regions"});case"[DICT] GetRegionsSuccess":case"[DICT] GetRegionsByCountrySuccess":return t.success({state:e,property:"regions",payload:c.payload});case"[DICT] GetRegionsFail":case"[DICT] GetRegionsByCountryFail":return t.fail({state:e,property:"regions",payload:c.payload});case"[DICT] GetFieldsOfStudy":return t.request({state:e,property:"fieldsOfStudy"});case"[DICT] GetFieldsOfStudySuccess":return t.success({state:e,property:"fieldsOfStudy",payload:c.payload});case"[DICT] GetFieldsOfStudyFail":return t.fail({state:e,property:"fieldsOfStudy",payload:c.payload});case"[DICT] GetLabValues":return t.request({state:e,property:"labValues"});case"[DICT] GetLabValuesSuccess":return t.success({state:e,property:"labValues",payload:c.payload});case"[DICT] GetLabValuesFail":return t.fail({state:e,property:"labValues",payload:c.payload});case"[DICT] FilterBodySystemsSuccess":return Object.assign(Object.assign({},e),{filteredDictionaries:Object.assign(Object.assign({},e.filteredDictionaries),{bodySystems:c.payload})});case"[DICT] FilterDisciplinesSuccess":return Object.assign(Object.assign({},e),{filteredDictionaries:Object.assign(Object.assign({},e.filteredDictionaries),{disciplines:c.payload})});default:return e}}const i=e=>e.dictionaries.disciplines,l=e=>e.dictionaries.bodySystems,p=e=>e.dictionaries.countries,m=e=>e.dictionaries.universities,s=e=>e.dictionaries.regions,r=e=>e.dictionaries.fieldsOfStudy,g=e=>e.dictionaries.labValues},37554:(Q,f,o)=>{"use strict";o.d(f,{_:()=>t});const t=[{name:"Afghanistan"},{name:"Albania"},{name:"Algeria"},{name:"American Samoa (US)"},{name:"Andorra"},{name:"Angola"},{name:"Anguilla (GB)"},{name:"Antigua and Barbuda"},{name:"Argentina"},{name:"Armenia"},{name:"Aruba (NL)"},{name:"Australia"},{name:"Austria"},{name:"Azerbaijan"},{name:"Bahamas"},{name:"Bahrain"},{name:"Bangladesh"},{name:"Barbados"},{name:"Belarus"},{name:"Belgium"},{name:"Belize"},{name:"Benin"},{name:"Bermuda (GB)"},{name:"Bhutan"},{name:"Bolivia"},{name:"Bosnia and Herzegovina"},{name:"Botswana"},{name:"Bouvet Island (NO)"},{name:"Brazil"},{name:"British Indian Ocean Territory (GB)"},{name:"British Virgin Islands (GB)"},{name:"Brunei Darussalam"},{name:"Bulgaria"},{name:"Burkina Faso"},{name:"Burundi"},{name:"Cambodia"},{name:"Cameroon"},{name:"Canada"},{name:"Cape Verde"},{name:"Cayman Islands (GB)"},{name:"Central African Republic"},{name:"Chad"},{name:"Chile"},{name:"China (People's Republic of)"},{name:"China (Republic of, Taiwan)"},{name:"Christmas Island (AU)"},{name:"Cocos Islands (AU)"},{name:"Colombia"},{name:"Comoros"},{name:"Congo (Republic of the)"},{name:"Cook Islands (NZ)"},{name:"Coral Sea Islands Territory (AU)"},{name:"Costa Rica"},{name:"C\xf4te d\u2019Ivoire"},{name:"Croatia"},{name:"Cuba"},{name:"Cyprus"},{name:"Czechia (Czech Republic)"},{name:"Democratic People\u2019s Republic of Korea"},{name:"Democratic Republic of the Congo"},{name:"Denmark"},{name:"Djibouti"},{name:"Dominica"},{name:"Dominican Republic"},{name:"Ecuador"},{name:"Egypt"},{name:"El Salvador"},{name:"Equatorial Guinea"},{name:"Eritrea"},{name:"Estonia"},{name:"Ethiopia"},{name:"Falkland Islands (GB)"},{name:"Faroe Islands (DK)"},{name:"Fiji"},{name:"Finland"},{name:"France"},{name:"French Guiana (FR)"},{name:"French Polynesia (FR)"},{name:"French Southern Lands (FR)"},{name:"Gabon"},{name:"Gambia"},{name:"Georgia"},{name:"Germany"},{name:"Ghana"},{name:"Gibraltar (GB)"},{name:"Greece"},{name:"Greenland (DK)"},{name:"Grenada"},{name:"Guadeloupe (FR)"},{name:"Guam (US)"},{name:"Guatemala"},{name:"Guernsey (GB)"},{name:"Guinea"},{name:"Guinea-Bissau"},{name:"Guyana"},{name:"Haiti"},{name:"Heard and McDonald Islands (AU)"},{name:"Honduras"},{name:"Hong Kong (CN)"},{name:"Hungary"},{name:"Iceland"},{name:"India"},{name:"Indonesia"},{name:"Iran"},{name:"Iraq"},{name:"Ireland"},{name:"Isle of Man (GB)"},{name:"Israel"},{name:"Italy"},{name:"Jamaica"},{name:"Jan Mayen (NO)"},{name:"Japan"},{name:"Jersey (GB)"},{name:"Jordan"},{name:"Kazakhstan"},{name:"Kenya"},{name:"Kiribati"},{name:"Kuwait"},{name:"Kyrgyzstan"},{name:"Lao People\u2019s Democratic Republic"},{name:"Latvia"},{name:"Lebanon"},{name:"Lesotho"},{name:"Liberia"},{name:"Libya"},{name:"Liechtenstein"},{name:"Lithuania"},{name:"Luxembourg"},{name:"Macau (CN)"},{name:"Madagascar"},{name:"Malawi"},{name:"Malaysia"},{name:"Maldives"},{name:"Mali"},{name:"Malta"},{name:"Marshall Islands"},{name:"Martinique (FR)"},{name:"Mauritania"},{name:"Mauritius"},{name:"Mayotte (FR)"},{name:"Mexico"},{name:"Micronesia (Federated States of)"},{name:"Monaco"},{name:"Mongolia"},{name:"Montenegro"},{name:"Montserrat (GB)"},{name:"Morocco"},{name:"Mozambique"},{name:"Myanmar"},{name:"Namibia"},{name:"Nauru"},{name:"Navassa (US)"},{name:"Nepal"},{name:"Netherlands"},{name:"Netherlands Antilles (NL)"},{name:"New Caledonia (FR)"},{name:"New Zealand"},{name:"Nicaragua"},{name:"Niger"},{name:"Nigeria"},{name:"Niue (NZ)"},{name:"Norfolk Island (AU)"},{name:"Northern Mariana Islands (US)"},{name:"Norway"},{name:"Oman"},{name:"Pakistan"},{name:"Palau"},{name:"Palestinian Authority"},{name:"Panama"},{name:"Papua New Guinea"},{name:"Paraguay"},{name:"Peru"},{name:"Philippines"},{name:"Pitcairn Island (GB)"},{name:"Poland"},{name:"Portugal"},{name:"Puerto Rico (US)"},{name:"Qatar"},{name:"Republic of Korea"},{name:"Republic of Moldova"},{name:"Reunion (FR)"},{name:"Romania"},{name:"Russian Federation"},{name:"Rwanda"},{name:"Saint Helena (GB)"},{name:"Saint Kitts and Nevis"},{name:"Saint Lucia"},{name:"Saint Vincent and the Grenadines"},{name:"Saint-Pierre and Miquelon (FR)"},{name:"Samoa"},{name:"San Marino"},{name:"Sao Tome and Principe"},{name:"Saudi Arabia"},{name:"Senegal"},{name:"Serbia"},{name:"Seychelles"},{name:"Sierra Leone"},{name:"Singapore"},{name:"Slovakia"},{name:"Slovenia"},{name:"Solomon Islands"},{name:"Somalia"},{name:"South Africa"},{name:"South Georgia (GB)"},{name:"South Sudan"},{name:"Spain"},{name:"Sri Lanka"},{name:"Sudan"},{name:"Suriname"},{name:"Svalbard (NO)"},{name:"Swaziland"},{name:"Sweden"},{name:"Switzerland"},{name:"Syria"},{name:"Tajikistan"},{name:"Thailand"},{name:"The former Yugoslav Republic of Macedonia"},{name:"Timor Leste"},{name:"Togo"},{name:"Tokelau (NZ)"},{name:"Tonga"},{name:"Trinidad and Tobago"},{name:"Tunisia"},{name:"Turkey"},{name:"Turkmenistan"},{name:"Turks and Caicos Islands (GB)"},{name:"Tuvalu"},{name:"U.S. Minor Pacific Islands (US)"},{name:"U.S. Virgin Islands (US)"},{name:"Uganda"},{name:"Ukraine"},{name:"United Arab Emirates"},{name:"United Kingdom"},{name:"
1United of Republic of Tanzania"},{name:"United States"},{name:"Uruguay"},{name:"Uzbekistan"},{name:"Vanuatu"},{name:"Vatican"},{name:"Venezuela"},{name:"Vietnam"},{name:"Wallis and Futuna (FR)"},{name:"Yemen"},{name:"Zambia"},{name:"Zimbabwe"}]},33088:(Q,f,o)=>{"use strict";o.d(f,{Z:()=>t});var t=(()=>{return(n=t||(t={})).UNKNOWN_ERROR="Unknown error occured.",n.SUBSCRIPTION_NOT_AVAILABLE_IN_AREA="The subscription is not available in the current area.",n.NO_PRICE_FOR_AREA="The subscription has no price defined for the current area.",n.USER_ALREADY_HAS_SUBSCRIPTION="User already has an ongoing subscription.",n.ERROR_CHECKING_CURRENT_SUBSCRIPTIONS="Error checking ongoing subscriptions.",n.CANNOT_CANCEL_APPLE_PAY="To cancel a subscription created using Apple In-App Purchases head to https://support.apple.com/en-us/HT202039 and follow the instructions.",n.CANNOT_CANCEL_GOOGLE_PAY="To cancel a subscription created using Google Play In-App Purchases head to https://support.google.com/googleplay/answer/7018481 and follow the instructions for canceling on an Android phone or on a computer",n.STRIPE_PAYMENT_METHOD_BELONGS_TO_ANOTHER_USER="The Payment Method belongs to another Customer.",n.STRIPE_ERROR="Stripe error occured.",n.PAYMENT_METHOD_AUTHORIZATION_ERROR="We were unable to properly authorize your payment method. Try again.",n.WRONG_RETRIEVE_KEY="Could not find the setup intent process.",t;var n})()},50376:(Q,f,o)=>{"use strict";o.d(f,{u:()=>s});var t=o(65620),n=o(39300),u=o(63900),i=o(39646),l=o(18505),p=o(5e3),m=o(35357);let s=(()=>{class r{constructor(e,c){this.store=e,this.router=c}canActivate(e,c){return this.store.pipe((0,t.Ys)(a=>a.user),(0,n.h)(a=>a&&a.data),(0,u.w)(a=>(0,i.of)(a.data.hasAdminInterface)),(0,l.b)(a=>!a&&this.router.navigate(["/dashboard"])))}}return r.\u0275fac=function(e){return new(e||r)(p.LFG(t.yh),p.LFG(m.F0))},r.\u0275prov=p.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})()},92132:(Q,f,o)=>{"use strict";o.d(f,{g:()=>m});var t=o(65620),n=o(39300),u=o(54004),i=o(18505),l=o(5e3),p=o(35357);let m=(()=>{class s{constructor(g,e){this.store=g,this.router=e,this.isAuthenticated=c=>this.store.pipe((0,t.Ys)(a=>a.auth),(0,n.h)(a=>null!==a.user.logged),(0,u.U)(a=>!a.user.logged),(0,i.b)(a=>!a&&this.router.navigateByUrl(c.redirectUrl)))}canActivate(g,e){return this.isAuthenticated(g.data)}}return s.\u0275fac=function(g){return new(g||s)(l.LFG(t.yh),l.LFG(p.F0))},s.\u0275prov=l.Yz7({token:s,factory:s.\u0275fac}),s})()},61009:(Q,f,o)=>{"use strict";o.d(f,{q:()=>u});var t=o(34616),n=o(5e3);let u=(()=>{class i{constructor(p,m){this.injector=p,this.compiler=m}canActivate(p,m){return o.e(783).then(o.bind(o,90783)).then(({DashboardModule:s})=>{this.compiler.compileModuleAsync(s).then(r=>{const g=r.create(this.injector);g.componentFactoryResolver.resolveComponentFactory(t.M).create(g.injector)})}).then(()=>!0)}}return i.\u0275fac=function(p){return new(p||i)(n.LFG(n.zs3),n.LFG(n.Sil))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})()},13323:(Q,f,o)=>{"use strict";o.d(f,{P:()=>m});var t=o(39300),n=o(54004),u=o(18505),i=o(5e3),l=o(35357),p=o(65620);let m=(()=>{class s{constructor(g,e){this.router=g,this.store=e,this.isUnauthenticated$=this.store.select(c=>c.auth).pipe((0,t.h)(c=>null!==c.user.logged),(0,n.U)(c=>!c.user.logged))}canActivate(g,e){let c={queryParams:{}};return e.url.includes("cancel-success=true")?c={queryParams:{"cancel-success":"true"}}:e.url.includes("cancel-success=false")&&(c={queryParams:{"cancel-success":"false"}}),this.isUnauthenticated$.pipe((0,u.b)(a=>!a&&this.router.navigate(["/dashboard"],c)))}}return s.\u0275fac=function(g){return new(g||s)(i.LFG(l.F0),i.LFG(p.yh))},s.\u0275prov=i.Yz7({token:s,factory:s.\u0275fac}),s})()},41042:(Q,f,o)=>{"use strict";o.d(f,{p:()=>n});var t=o(5e3);let n=(()=>{class u{transform(l){return(l=(l=l.replace(/<.*?>/g,"")).replace(/–/g,"")).replace(/&/g,"")}}return u.\u0275fac=function(l){return new(l||u)},u.\u0275pipe=t.Yjl({name:"striphtml",type:u,pure:!0}),u})()},18065:(Q,f,o)=>{"use strict";o.d(f,{$:()=>n});var t=o(5e3);let n=(()=>{class u{padStart(l){return String(l).padStart(2,"0")}transform(l){const p=Math.floor(l/60),m=Math.floor(l-60*p);return this.padStart(p)+":"+this.padStart(m)}}return u.\u0275fac=function(l){return new(l||u)},u.\u0275pipe=t.Yjl({name:"minutesSeconds",type:u,pure:!0}),u})()},95633:(Q,f,o)=>{"use strict";o.d(f,{s:()=>n});var t=o(5e3);let n=(()=>{class u{transform(l){return Math.ceil(l)}}return u.\u0275fac=function(l){return new(l||u)},u.\u0275pipe=t.Yjl({name:"roundUp",type:u,pure:!0}),u})()}
1,52821:(Q,f,o)=>{"use strict";o.d(f,{W:()=>n});var t=o(5e3);let n=(()=>{class u{transform(l,p=40,m="\u2026"){return l||(l=""),p<0?l.length>(p*=-1)?m+l.substring(l.length-p,l.length):l:l.length>p?l.substring(0,p)+m:l}}return u.\u0275fac=function(l){return new(l||u)},u.\u0275pipe=t.Yjl({name:"truncate",type:u,pure:!0}),u})()},93980:(Q,f,o)=>{"use strict";o.d(f,{s:()=>u});var t=o(5e3),n=o(22313);let u=(()=>{class i{constructor(p){this.sanitizer=p}transform(p,...m){return this.sanitizer.bypassSecurityTrustHtml(p)}}return i.\u0275fac=function(p){return new(p||i)(t.Y36(n.H7,16))},i.\u0275pipe=t.Yjl({name:"trustHtml",type:i,pure:!0}),i})()},11887:(Q,f,o)=>{"use strict";o.d(f,{U:()=>l});var t=o(35357),n=o(39300),u=o(54004),i=o(5e3);let l=(()=>{class p{constructor(s,r){this.route=s,this.router=r}getQueryParams(){return this.routeReturn("queryParams")}getRouteData(){return this.routeReturn("data")}routeReturn(s){return this.router.events.pipe((0,n.h)(r=>r instanceof t.m2),(0,u.U)(()=>this.route.snapshot),(0,u.U)(r=>{for(;r.firstChild;)r=r.firstChild;return r[s]||{}}))}}return p.\u0275fac=function(s){return new(s||p)(i.LFG(t.gz),i.LFG(t.F0))},p.\u0275prov=i.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"}),p})()},61276:(Q,f,o)=>{"use strict";o.d(f,{t:()=>i});var t=o(573),n=o(5e3),u=o(82349);let i=(()=>{class l{constructor(m){this.dialog=m}openDialog(){this.dialog.open(t.K,{width:"300px",height:"200px"})}}return l.\u0275fac=function(m){return new(m||l)(n.LFG(u.uw))},l.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"}),l})()},24511:(Q,f,o)=>{"use strict";o.d(f,{Y:()=>p,a:()=>l});var t=o(13495),n=o(50590),u=o(5e3),i=o(82349);const l={DELETE_THIS:{message:"Are you sure you want to delete this?"},DELETE_ACCOUNT:{message:"Are you sure you want to delete account?"},CANCEL_SUBSCRIPTION:{message:"Are you sure you want to cancel your subscription?"}};let p=(()=>{class m{constructor(r){this.dialog=r}confirm({message:r,title:g}){let e;return e=this.dialog.open(t.z),e.componentInstance.message=r,g&&(e.componentInstance.title=g),e.afterClosed().pipe((0,n.P)())}}return m.\u0275fac=function(r){return new(r||m)(u.LFG(i.uw))},m.\u0275prov=u.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},81198:(Q,f,o)=>{"use strict";o.d(f,{M:()=>a});var t=o(39300),n=o(54004),u=o(70262),i=o(39646),l=o(92340),p=o(65620),m=o(5e3),s=o(46245),r=o(22290),g=o(40520),e=o(60639);const c=l.N.api;let a=(()=>{class h{constructor(P,w,O,M){this.afMessaging=P,this.toastr=w,this.http=O,this.store=M,this.assignAfterLogin()}assignAfterLogin(){this.store.pipe((0,p.Ys)(P=>P.auth.user.logged),(0,t.h)(Boolean)).subscribe(()=>{this.token&&this.saveToken(this.token)})}watchMessages(){this.afMessaging.messages.subscribe(P=>{this.showMessage(P)})}showMessage(P){const w=P.data;new Notification(w.title,{body:w.body,icon:w.icon})}havePermission(){return this.afMessaging.getToken.pipe((0,n.U)(P=>(this.token=P,this.watchMessages(),this.saveToken(P),Boolean(P))),(0,u.K)(P=>(0,i.of)(!1)))}closeDialog(){this.requestDialogRef&&(this.requestDialogRef.portal.destroy(),this.toastr.remove(this.requestDialogRef.toastId),this.toastr.clear(this.requestDialogRef.toastId))}requestPermission(){this.afMessaging.requestToken.subscribe(P=>{this.token=P,this.saveToken(P)},P=>{e.error(P)})}saveToken(P){return this.http.post(c.baseURL+"/api/v1/firebase/device-token",{deviceToken:P}).pipe((0,u.K)(w=>(0,i.of)(w))).toPromise()}}return h.\u0275fac=function(P){return new(P||h)(m.LFG(s.BG),m.LFG(r._W),m.LFG(g.eN),m.LFG(p.yh))},h.\u0275prov=m.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},72365:(Q,f,o)=>{"use strict";o.d(f,{m:()=>p});var t=o(96034),n=o(36642),u=o(18505),i=o(5e3),l=o(65620);let p=(()=>{class m{constructor(r,g){this.store=r,this.actions$=g,this.sub=[]}start(r={}){if(this.store.dispatch(new t.xl({blurred:!0,loader:!0})),r.until){const g=Array.isArray(r.until)?r.until:[r.until];this.sub.push(this.actions$.pipe((0,n.l4)(...g),(0,u.b)(()=>this.stop())).subscribe())}}stop(){this.store.dispatch(new t.xl({blurred:!1,loader:!1}))}}return m.\u0275fac=function(r){return new(r||m)(i.LFG(l.yh),i.LFG(n.eX))},m.\u0275prov=i.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},83596:(Q,f,o)=>{"use strict";o.d(f,{Y:()=>l});var t=o(92340),n=o(5e3),u=o(40520);const i=t.N.api;let l=(()=>{class p{constructor(s){this.http=s}getNews(){return this.http.get(`${i.baseURL}
1/api/v1/news/latest`)}}return p.\u0275fac=function(s){return new(s||p)(n.LFG(u.eN))},p.\u0275prov=n.Yz7({token:p,factory:p.\u0275fac}),p})()},93721:(Q,f,o)=>{"use strict";o.d(f,{GC:()=>p,hn:()=>m});var t=o(65620),n=o(11632),u=o(18054),i=o(5e3);let l=(()=>{class s{static userHas(g){return s.userPermissions[g]}}return s.userPermissions={},s})();class p{constructor(){this.RBAC={userHas:l.userHas},this.Permission=u.y}}let m=(()=>{class s{constructor(g){this.store=g,this.store.pipe((0,t.Ys)(n.np)).subscribe(e=>{l.userPermissions=e.permissions||{}})}}return s.\u0275fac=function(g){return new(g||s)(i.LFG(t.yh))},s.\u0275prov=i.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})()},50094:(Q,f,o)=>{"use strict";o.d(f,{w:()=>p});var t=o(92340),n=o(5e3),u=o(40520),i=o(82349);let l=t.N.api,p=(()=>{class m{constructor(r,g){this.http=r,this.dialog=g}createFeedback(r){return this.http.post(l.baseURL+"/api/v1/feedback",r)}openDialog(r,g){this.dialog.open(g,{width:"400px",data:r})}}return m.\u0275fac=function(r){return new(r||m)(n.LFG(u.eN),n.LFG(i.uw))},m.\u0275prov=n.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},12832:(Q,f,o)=>{"use strict";o.d(f,{C:()=>m});var t=o(29073),n=o(92340),u=o(5e3),i=o(82349),l=o(40520);const p=n.N.api;let m=(()=>{class s{constructor(g,e){this.dialog=g,this.http=e}openDialog(){this.dialog.open(t.h,{panelClass:"saved-dialog-panel",data:null})}getSavedQuizzes(){return this.http.get(p.baseURL+"/api/v1/quiz/saved")}}return s.\u0275fac=function(g){return new(g||s)(u.LFG(i.uw),u.LFG(l.eN))},s.\u0275prov=u.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})()},77309:(Q,f,o)=>{"use strict";o.d(f,{e:()=>m});var t=o(5e3),n=o(35357),u=o(86657),i=o(44619);let l=(()=>{class s{constructor(){}ngOnInit(){}}return s.\u0275fac=function(g){return new(g||s)},s.\u0275cmp=t.Xpm({type:s,selectors:[["qupi-sidenav"]],decls:26,vars:5,consts:[[1,"sidenav"],["routerLink","/dashboard","routerLinkActive","active",1,"item"],[1,"item--icon",3,"inlineSVG"],["routerLink","/account","routerLinkActive","active",1,"item"],["routerLink","/leaderboards","routerLinkActive","active",1,"item"],["routerLink","/statistics","routerLinkActive","active",1,"item"],["routerLink","/submit-question","routerLinkActive","active",1,"item"],[1,"social-icons"],["href","https://www.facebook.com/qupipage","target","_blank","inlineSVG","/assets/images/svg/fb-logo.svg",1,"social-icon"],["href","https://twitter.com/Qupi_questions1","target","_blank","inlineSVG","/assets/images/svg/icon-tw.svg",1,"social-icon"],["href","https://www.instagram.com/qupi_medical/","target","_blank","inlineSVG","/assets/images/svg/ig-logo.svg",1,"social-icon"],["href","https://www.youtube.com/channel/UCXF8YGq3Ur-Yne5Oyv9429g","target","_blank","inlineSVG","/assets/images/svg/yt-logo.svg",1,"social-icon"]],template:function(g,e){1&g&&(t.TgZ(0,"aside",0)(1,"a",1),t._UZ(2,"div",2),t.TgZ(3,"span"),t._uU(4,"Dashboard"),t.qZA()(),t.TgZ(5,"a",3),t._UZ(6,"div",2),t.TgZ(7,"span"),t._uU(8,"My account"),t.qZA()(),t.TgZ(9,"a",4),t._UZ(10,"div",2),t.TgZ(11,"span"),t._uU(12,"Leaderboards"),t.qZA()(),t.TgZ(13,"a",5),t._UZ(14,"div",2),t.TgZ(15,"span"),t._uU(16,"Statistics"),t.qZA()(),t.TgZ(17,"a",6),t._UZ(18,"div",2),t.TgZ(19,"span"),t._uU(20,"Submit a question"),t.qZA()()(),t.TgZ(21,"qupi-group",7),t._UZ(22,"a",8)(23,"a",9)(24,"a",10)(25,"a",11),t.qZA()),2&g&&(t.xp6(2),t.Q6J("inlineSVG","/assets/images/svg/dashboard.svg"),t.xp6(4),t.Q6J("inlineSVG","/assets/images/svg/myaccount.svg"),t.xp6(4),t.Q6J("inlineSVG","/assets/images/svg/leaderboards.svg"),t.xp6(4),t.Q6J("inlineSVG","/assets/images/svg/stats-bold.svg"),t.xp6(4),t.Q6J("inlineSVG","/assets/images/svg/submit.svg"))},dependencies:[n.yS,n.Od,u.m,i.d$],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%]{display:flex;position:absolute;top:105px;width:50px;height:100%;flex-direction:column;justify-content:space-between}@media (min-width: 768px){[_nghost-%COMP%]{width:100%;top:0px;position:initial}}
1[_nghost-%COMP%] .social-icon{margin-bottom:1.25em}@media (min-width: 1200px){[_nghost-%COMP%] .social-icon{margin-bottom:0}}[_nghost-%COMP%] .social-icon svg{width:22px;height:22px}[_nghost-%COMP%] .social-icon svg path{fill:#dae4f5!important}.sidenav[_ngcontent-%COMP%]{margin-top:155px;width:100%}@media (min-width: 769px){.sidenav[_ngcontent-%COMP%]{margin-top:3em!important}}.social-icons[_ngcontent-%COMP%]{flex-direction:column;justify-content:center;align-items:center}@media (min-width: 1200px){.social-icons[_ngcontent-%COMP%]{flex-direction:row;padding:1.875em;justify-content:space-between}}.item[_ngcontent-%COMP%]{display:flex;align-items:center;height:3em;color:#215ca8}@media screen and (max-width: 1200px){.item[_ngcontent-%COMP%]{justify-content:center}.item[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:none!important}.item--icon[_ngcontent-%COMP%] {margin:0;text-align:center}}.item--icon[_ngcontent-%COMP%] {margin:.75em}.item--icon[_ngcontent-%COMP%] svg{height:1.5em}.item.active[_ngcontent-%COMP%]{background:#f9f9f9;box-shadow:inset -3px 0 #43b3f7,inset 0 -1px #d4d4d4,inset 0 1px #d4d4d4;font-weight:900;color:#43b3f7}@media screen and (max-width: 1200px){.item.active[_ngcontent-%COMP%]{box-shadow:3px 0 #43b3f7,inset 0 -1px #d4d4d4,inset 0 1px #d4d4d4}}.item.active[_ngcontent-%COMP%] .item--icon[_ngcontent-%COMP%] svg defs path{fill:#43b3f7}"]}),s})();var p=o(1966);let m=(()=>{class s{constructor(g){this.injector=g,this.defaultView=()=>new p.C5(l,null,this.injector),this.portal={mainView:this.defaultView()},this.createComponent(null,null)}ngOnInit(){}createComponent(g,e){if(this.portal.mainView&&g)try{this.portal.mainView.detach()}catch(c){}setTimeout(()=>{g?this.portal.mainView=new p.C5(g,void 0,e):this.defaultView().component.prototype!==this.portal.mainView.component.prototype&&(this.portal.mainView=this.defaultView())},0)}}return s.\u0275fac=function(g){return new(g||s)(t.LFG(t.zs3))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac}),s})()},72591:(Q,f,o)=>{"use strict";o.d(f,{k:()=>i});var t=o(34713),n=o(5e3),u=o(22290);let i=(()=>{class l{constructor(m){this.toastr=m}success(m,s,r={}){return this.toastr.success(m,s,Object.assign({positionClass:"toast-bottom-full-width"},r))}error(m,s,r={}){return this.toastr.error(m,s,Object.assign({positionClass:"toast-bottom-full-width"},r))}warning(m,s,r={}){return this.toastr.warning(m,s,Object.assign({positionClass:"toast-bottom-full-width"},r))}info(m,s,r={}){return this.toastr.info(m,s,Object.assign({positionClass:"toast-bottom-full-width"},r))}askForMessaging(){return this.toastr.info("Allow","Pls",{positionClass:"toast-fcm-allow",toastComponent:t.R,disableTimeOut:!0})}remove(m){this.toastr.remove(m)}}return l.\u0275fac=function(m){return new(m||l)(n.LFG(u._W))},l.\u0275prov=n.Yz7({token:l,factory:l.\u0275fac}),l})()},88918:(Q,f,o)=>{"use strict";o.d(f,{v:()=>u});var t=o(1966),n=o(5e3);let u=(()=>{class i{constructor(){this.portals={1:null,2:null,3:null}}createComponent(p,m,s){let r=this.portals[p];r&&r.isAttached&&m&&r.component.prototype!=m.prototype&&r.detach(),setTimeout(()=>{m?(!this.portals[p]||this.portals[p].component.prototype!=m.prototype)&&(this.portals[p]=new t.C5(m,void 0,s)):this.portals[p]=null},0)}createMultipleComponents(p,m){p.forEach((s,r)=>this.createComponent(r+1,s,m))}}return i.\u0275fac=function(p){return new(p||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})()},81798:(Q,f,o)=>{"use strict";o.d(f,{R:()=>p});var t=o(93075);let u=(()=>{class m{static minlength(r){return`Field should contain at least ${r} characters`}}return m.required="Field is required",m.pattern="Provided value is invalid. Try numbers",m.normalEmailRule="Invalid email address",m.passwordsMustMatch="Passwords don't match",m})();var i=o(5e3),l=o(72591);let p=(()=>{class m{constructor(r){this.toast=r}markControlsAsTouchedAndDirty(r){Object.values(r.controls).forEach(g=>{g.markAsTouched(),g.markAsDirty()})}validateFormArray(r){r.controls.forEach(g=>{this.markControlsAsTouchedAndDirty(g),this.setUiErrors(g)})}validateUiForm(r){return r.invalid&&(Object.values(r.controls).forEac
1h(g=>{g.markAsTouched(),g.markAsDirty()}),this.setUiErrors(r)),r.valid}setUiErrors(r){Object.keys(r.controls).forEach(g=>{const e=r.controls[g];if(e instanceof t.Oe&&this.validateFormArray(e),e instanceof t.cw&&(this.markControlsAsTouchedAndDirty(e),this.setUiErrors(e)),e.errors&&e.dirty&&!e.errors.message){const c=Object.keys(e.errors)[0];if("minlength"===c){const h=u[c](e.errors.minlength.requiredLength);return void e.setErrors({message:h})}e.setErrors({message:u[c]?u[c]:"Value is invalid"})}})}setApiErrors(r,g){if(r.error){const e=r.error;Array.isArray(e.message)?e.message.forEach(c=>{const a=g.controls[c.property];a&&(a.markAsDirty(),a.markAsTouched(),c.constraints&&a.setErrors({message:Object.values(c.constraints)[0]}))}):this.toast.error(e.message)}}}return m.\u0275fac=function(r){return new(r||m)(i.LFG(l.k))},m.\u0275prov=i.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},69060:(Q,f,o)=>{"use strict";o.d(f,{l:()=>r});var t=o(45689),n=o(92340),u=o(65620),i=o(61135),l=o(50590),p=o(5e3),m=o(72591);const s=n.N.api;let r=(()=>{class g{constructor(c,a){this.store=c,this.toastService=a,this.wsUrl=s.wsURL?s.wsURL:`${window.location.protocol}//${window.location.hostname}`,this.usersCount=new i.X(0),this.usersCount$=this.usersCount.asObservable(),this.store.pipe((0,u.Ys)(h=>h.auth.jwt),(0,l.P)()).subscribe(h=>this.createSecureConnection(h.token))}createSecureConnection(c){this.socket=(0,t.ZP)(this.wsUrl,{path:"/ws",query:{jwt:c},secure:!0}),this.watchConnection(),this.watchUsersCount(),this.connectServerWithStore()}watchUsersCount(){this.socket.on("active user count",c=>this.usersCount.next(c))}watchConnection(){let c;this.socket.on("connect",()=>{this.socket.emit("active user count")}),this.socket.on("reconnect",()=>{c&&this.toastService.remove(c.toastId),c=this.toastService.success("Connected succesfully! Have fun!")}),this.socket.on("reconnecting",()=>{c&&this.toastService.remove(c.toastId),c=this.toastService.warning("Reconnecting\u2026",null,{tapToDismiss:!1,disableTimeOut:!0})}),this.socket.on("disconnect",()=>{c&&this.toastService.remove(c.toastId),c=this.toastService.error("Connection lost. Please wait or check your connection and refresh the page.",null,{tapToDismiss:!1,disableTimeOut:!0})})}connectServerWithStore(){this.socket.on("action",c=>this.store.dispatch(c))}}return g.\u0275fac=function(c){return new(c||g)(p.LFG(u.yh),p.LFG(m.k))},g.\u0275prov=p.Yz7({token:g,factory:g.\u0275fac}),g})()},2174:(Q,f,o)=>{"use strict";o.d(f,{m:()=>fn});var t=o(39272),n=o(81798),u=o(92340),i=o(5e3),l=o(40520);const p=u.N.api;let m=(()=>{class v{constructor(T){this.http=T}getFieldsOfStudy(){return this.http.get(p.baseURL+"/api/v1/dictionaries/fields-of-study")}createFieldOfStudy(T){return this.http.post(p.baseURL+"/api/v1/dictionaries/fields-of-study",T)}editFieldOfStudy({id:T,data:it}){return this.http.patch(p.baseURL+`/api/v1/dictionaries/fields-of-study/${T}`,it)}deleteFieldOfStudy(T){return this.http.delete(p.baseURL+`/api/v1/dictionaries/fields-of-study/${T}`)}}return v.\u0275fac=function(T){return new(T||v)(i.LFG(l.eN))},v.\u0275prov=i.Yz7({token:v,factory:v.\u0275fac}),v})();var s=o(69808),r=o(93075),g=o(18505),e=o(65620),c=o(18534),a=o(96034),h=o(72591);let C=(()=>{class v{constructor(T,it){this.store=T,this.toastService=it,this.jwt={token:null},this.jwt$=this.store.pipe((0,e.Ys)(st=>st.auth.jwt)),this.jwt$.subscribe(st=>{this.jwt=st})}intercept(T,it){if(T.url.indexOf("/refresh")>-1||T.url.indexOf("/logout")>-1){const dt=T.clone({withCredentials:!0});return T.headers.has("initial")?(dt.headers.delete("initial"),it.handle(dt)):it.handle(dt).pipe((0,g.b)(()=>{},()=>{this.store.dispatch(new c.cn),this.store.dispatch(new a.xl({blurred:!0})),this.toastService.info("Session expired you are going to be redirected to main page")}))}let st=T;return this.jwt.token&&(st=T.clone({setHeaders:{Authorization:`Bearer ${this.jwt.token}`}})),it.handle(st)}}return v.\u0275fac=function(T){return new(T||v)(i.LFG(e.yh),i.LFG(h.k))},v.\u0275prov=i.Yz7({token:v,factory:v.\u0275fac}),v})();const P=u.N.api;let w=(()=>{class v{constructor(T){this.http=T}getDisciplines(){return this.http.get(P.baseURL+"/api/v1/dictionaries/disciplines")}createDisciplne(T){return this.http.post(P.baseURL+"/api/v1/dictionaries/disciplines",T)}editDisciplne({id:T,data:it}){return this.http.patch(P.baseURL+`/api/v1/dictionaries/disciplines/${T}`,it)}deleteDiscipline(T){return this.http.delete(P.baseURL+`/api/v1/dictionaries/disciplines/${T}`)}}return v.\u0275fac=function(T){return new(T||v)(i.LFG(l.eN))},v.\u0275prov=i.Yz7({token:v,factory:v.\u0275fac}),v})();const O=u.N.api;let M=(()=>{class v{constructor(T){this.http=T}getBodySystems(){return this.http.get(O.baseURL+"/api/v1/dictionaries/body-systems")}createBodySystem(T){return this.http.post(O.baseURL+"/api/v1/dictionaries/body-systems",T)}editBodySystem({id:T,data:it}){return this.http.patch(O.baseURL+`/api/v1/dictionaries/body-systems/${T}`,it)}deleteBodySystem(T){return this.http.delete(O.baseURL+`/api/v1/dictionaries/body-systems/${T}`)}fetchFilteredBodySystems(){return this.http.get(O.baseURL+"/api/v1/dictionaries/body-systems/disciplines")}fetchFilteredDisciplines(){return this.http.get(O.baseURL+"/api/v1/dictionaries/disciplines/body-systems")}}return v.\u0275fac=function(T){return new(T||v)(i.LFG(l.eN))},v.\u0275prov=i.Yz7({token:v,factory:v.\u0275fac}),v})();
1var y=o(35357),x=o(3290),L=o(162),B=o(13323),Z=o(88918),b=o(77309),N=o(40711),K=o(44619);o(95633),o(83453);var k=o(36642),ct=o(95577),at=o(54004),et=o(70262),ot=o(39646),X=o(63900),F=o(44564),z=o(98741),D=o(70655),Dt=o(9469);const Ot=u.N.api;class Ct{constructor(R){this.http=R}getUniversities(){return this.http.get(Ot.baseURL+"/api/v1/dictionaries/university")}getUniversitiesByCountry(R){return this.http.get(Ot.baseURL+`/api/v1/dictionaries/university/country/${R}`)}createUniversity(R){return this.http.post(Ot.baseURL+"/api/v1/dictionaries/university",R)}editUniversity({id:R,data:T}){return this.http.patch(Ot.baseURL+`/api/v1/dictionaries/university/${R}`,T)}deleteUniversity(R){return this.http.delete(Ot.baseURL+`/api/v1/dictionaries/university/${R}`)}}Ct.\u0275fac=function(R){return new(R||Ct)(i.LFG(l.eN))},Ct.\u0275prov=i.Yz7({token:Ct,factory:Ct.\u0275fac}),(0,D.gn)([(0,Dt.q)({maxAge:1e3})],Ct.prototype,"getUniversitiesByCountry",null);const Mt=u.N.api;class It{constructor(R){this.http=R}getRegions(){return this.http.get(Mt.baseURL+"/api/v1/dictionaries/region")}getRegionsByCountry(R){return this.http.get(Mt.baseURL+`/api/v1/dictionaries/region/country/${R}`)}createRegion(R){return this.http.post(Mt.baseURL+"/api/v1/dictionaries/region",R)}editRegion({id:R,data:T}){return this.http.patch(Mt.baseURL+`/api/v1/dictionaries/region/${R}`,T)}deleteRegion(R){return this.http.delete(Mt.baseURL+`/api/v1/dictionaries/region/${R}`)}}It.\u0275fac=function(R){return new(R||It)(i.LFG(l.eN))},It.\u0275prov=i.Yz7({token:It,factory:It.\u0275fac}),(0,D.gn)([(0,Dt.q)({maxAge:1e3})],It.prototype,"getRegionsByCountry",null);var Bt=o(25622),zt=o(22290);let $t=(()=>{class v{constructor(T,it,st,dt,Cn,Mn,Oe,On,_){this.actions$=T,this.disciplinesService=it,this.bodySystemsService=st,this.fieldsOfStudyService=dt,this.countriesService=Cn,this.universitiesService=Mn,this.regionsService=Oe,this.labValuesService=On,this.toastr=_,this.getDisciplines$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] GetDisciplines"),(0,ct.z)(S=>this.disciplinesService.getDisciplines().pipe((0,at.U)(d=>new F.fv(d)),(0,et.K)(d=>(0,ot.of)(new F.Qe(d))))))),this.createDiscipline$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] CreateDiscipline"),(0,ct.z)(S=>this.disciplinesService.createDisciplne(S.payload).pipe((0,g.b)(()=>this.toastr.success("Success!","Created new discipline"),()=>this.toastr.error("Error!","Error occurred during discipline creation")),(0,X.w)(d=>[new F.V5(d),new F.fI]),(0,et.K)(d=>(0,ot.of)(new F.MH(d))))))),this.editDiscipline$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] EditDiscipline"),(0,ct.z)(S=>this.disciplinesService.editDisciplne(S.payload).pipe((0,g.b)(()=>this.toastr.success("Success!","Discipline was edited successfully"),()=>this.toastr.error("Error!","Error occurred during discipline edit")),(0,X.w)(d=>[new F.EH(d),new F.fI]),(0,et.K)(d=>(0,ot.of)(new F.xJ(d))))))),this.deleteDiscipline$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] DeleteDiscipline"),(0,ct.z)(S=>this.disciplinesService.deleteDiscipline(S.payload.id).pipe((0,g.b)(()=>this.toastr.success("Success!","Discipline was deleted successfully")),(0,X.w)(d=>[new F.jV(d),new F.fI]),(0,et.K)(d=>(this.toastr.error("Error!","Error occurred during discipline deletion"),(0,ot.of)(new F.cB(d)))))))),this.geBodySystems$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] GetBodySystems"),(0,ct.z)(S=>this.bodySystemsService.getBodySystems().pipe((0,at.U)(d=>new F.rA(d)),(0,et.K)(d=>(0,ot.of)(new F.LG(d))))))),this.createBodySystem$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] CreateBodySystem"),(0,ct.z)(S=>this.bodySystemsService.createBodySystem(S.payload).pipe((0,g.b)(()=>this.toastr.success("Success!","Created new body system"),()=>this.toastr.error("Error!","Error occurred during body system creation")),(0,X.w)(d=>[new F.Rf(d),new F.cL]),(0,et.K)(d=>(0,ot.of)(new F.r7(d))))))),this.editBodySystem$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] EditBodySystem"),(0,ct.z)(S=>this.bodySystemsService.editBodySystem(S.payload).pipe((0,g.b)(()=>this.toastr.success("Success!","Body system was edited successfully"),()=>this.toastr.error("Error!","Error occurred during body system edit")),(0,X.w)(d=>[new F.zt(d),new F.cL]),(0,et.K)(d=>(0,ot.of)(new F.w(d))))))),this.deleteBodySystem$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] DeleteBodySystem"),(0,ct.z)(S=>this.bodySystemsService.deleteBodySystem(S.payload.id).pipe((0,g.b)(()=>this.toastr.success("Success!","Body system was deleted successfully"),()=>this.toastr.error("Error!","Error occurred during body system deleti
1on")),(0,X.w)(d=>[new F.mL(d),new F.cL]),(0,et.K)(d=>(0,ot.of)(new F.AM(d))))))),this.getCountries$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] GetCountries"),(0,ct.z)(S=>this.countriesService.getCountries().pipe((0,at.U)(d=>new F.Wp(d)),(0,et.K)(d=>(0,ot.of)(new F.EL(d))))))),this.createCountry$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] CreateCountry"),(0,ct.z)(S=>this.countriesService.createCountry(S.payload).pipe((0,g.b)(()=>this.toastr.success("Success!","Created new country"),()=>this.toastr.error("Error!","Error occurred during country creation")),(0,X.w)(d=>[new F.XE(d),new F.Hm]),(0,et.K)(d=>(0,ot.of)(new F.uY(d))))))),this.editCountry$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] EditCountry"),(0,ct.z)(S=>this.countriesService.editCountry(S.payload).pipe((0,g.b)(()=>this.toastr.success("Success!","Country was edited successfully"),()=>this.toastr.error("Error!","Error occurred during country edit")),(0,X.w)(d=>[new F.U5(d),new F.Hm]),(0,et.K)(d=>(0,ot.of)(new F.Z1(d))))))),this.deleteCountry$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] DeleteCountry"),(0,ct.z)(S=>this.countriesService.deleteCountry(S.payload.id).pipe((0,g.b)(()=>this.toastr.success("Success!","Country was deleted successfully"),()=>this.toastr.error("Error!","Error occurred during country deletion")),(0,X.w)(d=>[new F.Nd(d),new F.Hm]),(0,et.K)(d=>(0,ot.of)(new F.ZO(d))))))),this.getUniversities$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] GetUniversities"),(0,ct.z)(S=>this.universitiesService.getUniversities().pipe((0,at.U)(d=>new F.gl(d)),(0,et.K)(d=>(0,ot.of)(new F.qJ(d))))))),this.getUniversitiesByCountry$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] GetUniversitiesByCountry"),(0,ct.z)(S=>this.universitiesService.getUniversitiesByCountry(S.payload.countryID).pipe((0,at.U)(d=>new F.gl(d)),(0,et.K)(d=>(0,ot.of)(new F.qJ(d))))))),this.createUniversity$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] CreateUniversity"),(0,ct.z)(S=>this.universitiesService.createUniversity(S.payload).pipe((0,g.b)(()=>this.toastr.success("Success!","Created new university"),()=>this.toastr.error("Error!","Error occurred during university creation")),(0,X.w)(d=>[new F.Ql(d),new F.Td]),(0,et.K)(d=>(0,ot.of)(new F.A(d))))))),this.editUniversity$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] EditUniversity"),(0,ct.z)(S=>this.universitiesService.editUniversity(S.payload).pipe((0,g.b)(()=>this.toastr.success("Success!","University was edited successfully"),()=>this.toastr.error("Error!","Error occurred during university edit")),(0,X.w)(d=>[new F.m_(d),new F.Td]),(0,et.K)(d=>(0,ot.of)(new F.Y0(d))))))),this.deleteUniversity$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] DeleteUniversity"),(0,ct.z)(S=>this.universitiesService.deleteUniversity(S.payload.id).pipe((0,g.b)(()=>this.toastr.success("Success!","University was deleted successfully"),()=>this.toastr.error("Error!","Error occurred during university deletion")),(0,X.w)(d=>[new F.xb(d),new F.Td]),(0,et.K)(d=>(0,ot.of)(new F.N(d))))))),this.getRegions$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] GetRegions"),(0,ct.z)(S=>this.regionsService.getRegions().pipe((0,at.U)(d=>new F.HF(d)),(0,et.K)(d=>(0,ot.of)(new F.sm(d))))))),this.getRegionsByCountry$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] GetRegionsByCountry"),(0,ct.z)(S=>this.regionsService.getRegionsByCountry(S.payload.countryID).pipe((0,at.U)(d=>new F.Lc(d)),(0,et.K)(d=>(0,ot.of)(new F.b7(d))))))),this.createRegion$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] CreateRegion"),(0,ct.z)(S=>this.regionsService.createRegion(S.payload).pipe((0,g.b)(()=>this.toastr.success("Success!","Created new region"),()=>this.toastr.error("Error!","Error occurred during region creation")),(0,X.w)(d=>[new F.fP(d),new F.uP]),(0,et.K)(d=>(0,ot.of)(new F.lO(d))))))),this.editRegion$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] EditRegion"),(0,ct.z)(S=>this.regionsService.editRegion(S.payload).pipe((0,g.b)(()=>this.toastr.success("Success!","Region was edited successfully"),()=>this.toastr.error("Error!","Error occurred during region edit")),(0,X.w)(d=>[new F.WJ(d),new F.uP]),(0,et.K)(d=>(0,ot.of)(new F.FA(d))))))),this.deleteRegion$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] DeleteRegion"),(0,ct.z)(S=>this.regionsService.deleteRegion(S.payload.id).pipe((0,g.b)(()=>this.toastr.success("Success!","Region was deleted successfully"),()=>this.toastr.error("Error!","Error occurred during region deletion")),(0,X.w)(d=>[new F.an(d),new F.uP]),(0,et.K)(d=>(0,ot.of)(new F.Sb(d))))))),this.getFieldsOfStudy$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] GetFieldsOfStudy"),(0,ct.z)(S=>this.fieldsOfStudyService.getFieldsOfStudy().pipe((0,at.U)(d=>new F.QP(d)),(0,et.K)(d=>(0,ot.of)(new F.Bh(d))))))),this.createFieldOfStudy$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] CreateFieldOfStudy"),(0,ct.z)(S=>this.fieldsOfStudyService.createFieldOfStudy(S.payload).pipe((0,g.b)(()=>this.toastr.success("Success!","Created new field of study"),()=>this.toastr.error("Error!","Error occurred during field of study creation")),(0,X.w)(d=>[new F.Hf(d),new F.HH]),(0,et.K)(d=>(0,ot.of)(new F.Iy(d))))))),this.editFieldOfStudy$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] EditFieldOfStudy"),(0,ct.z)(S=>this.fieldsOfStudyService.editFieldOfStudy(S.payload).pipe((0,g.b)(()=>this.toastr.success("Success!","Field of study was edited successfully"),()=>this.toastr.error("Error!","Error occurred during field of study edit")),(0,X.w)(d=>[new F.xk(d),new F.HH]),(0,et.K)(d=>(0,ot.of)(new F.BN(d))))))),this.deleteFieldOfStudy$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] DeleteFieldOfStudy"),(0,ct.z)(S=>this.fieldsOfStudyService.deleteFieldOfStudy(S.payload.id).pipe((0,g.b)(()=>this.toastr.success("Success!","Field of study was deleted successfully"),()=>this.toastr.error("Error!","Error occurred during field of study deletion")),(0,X.w)(d=>[new F.j8(d),new F.HH]),(0,et.K)(d=>(0,ot.of)(new F.it(d))))))),this.getLabValues$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] GetLabValues"),(0,ct.z)(S=>this.labValuesService.getValues(S.payload).pipe((0,at.U)(d=>new F.nC(d)),(0,et.K)(d=>
1(0,ot.of)(new F.f8(d))))))),this.getFilteredBodySystems$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] FilterBodySystems"),(0,ct.z)(S=>this.bodySystemsService.fetchFilteredBodySystems().pipe((0,at.U)(d=>new F.mm(d)),(0,et.K)(d=>(0,ot.of)(new F.l8(d))))))),this.getFilteredDisciplines$=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[DICT] FilterDisciplines"),(0,ct.z)(S=>this.bodySystemsService.fetchFilteredDisciplines().pipe((0,at.U)(d=>new F.hs(d)),(0,et.K)(d=>(0,ot.of)(new F.fb(d)))))))}}return v.\u0275fac=function(T){return new(T||v)(i.LFG(k.eX),i.LFG(w),i.LFG(M),i.LFG(m),i.LFG(z.K),i.LFG(Ct),i.LFG(It),i.LFG(Bt.f),i.LFG(zt._W))},v.\u0275prov=i.Yz7({token:v,factory:v.\u0275fac}),v})();class Gt{constructor(R){this.payload=R,this.type="[STATS] GET_ATTEMPTED_DATA_AVERAGE_SUCCESS"}}class Tt{constructor(R){this.payload=R,this.type="[STATS] GET_ATTEMPTED_DATA_AVERAGE_FAIL"}}class Nt{constructor(R){this.payload=R,this.type="[STATS] GET_FIRST_TRY_DATA_AVERAGE_SUCCESS"}}class Lt{constructor(R){this.payload=R,this.type="[STATS] GET_FIRST_TRY_DATA_AVERAGE_FAIL"}}class Vt{constructor(R){this.payload=R,this.type="[STATS] GET_PROGRESS_DATA_AVERAGE_SUCCESS"}}class Xt{constructor(R){this.payload=R,this.type="[STATS] GET_PROGRESS_DATA_AVERAGE_FAIL"}}class mt{constructor(R){this.payload=R,this.type="[STATS] GET_PROGRESS_DATA_AVERAGE_OVERALL_SUCCESS"}}class j{constructor(R){this.payload=R,this.type="[STATS] GET_PROGRESS_DATA_AVERAGE_OVERALL_FAIL"}}class gt{constructor(R){this.payload=R,this.type="[STATS] GET_ATTEMPTED_DATA_SELECTED_SUCCESS"}}class wt{constructor(R){this.payload=R,this.type="[STATS] GET_ATTEMPTED_DATA_SELECTED_FAIL"}}class kt{constructor(R){this.payload=R,this.type="[STATS] GET_FIRST_TRY_DATA_SELECTED_SUCCESS"}}class Ut{constructor(R){this.payload=R,this.type="[STATS] GET_FIRST_TRY_DATA_SELECTED_FAIL"}}class H{constructor(R){this.payload=R,this.type="[STATS] GET_PROGRESS_DATA_SELECTED_SUCCESS"}}class ut{constructor(R){this.payload=R,this.type="[STATS] GET_PROGRESS_DATA_SELECTED_FAIL"}}class rt{constructor(R){this.payload=R,this.type="[STATS] GET_AVERAGE_DATA_SELECTED_SUCCESS"}}class xt{constructor(R){this.payload=R,this.type="[STATS] GET_USER_SHARES_SUCCESS"}}class ne{constructor(R){this.payload=R,this.type="[STATS] GET_USER_SHARES_FAIL"}}var Y=o(41927);let ht=(()=>{class v{constructor(T,it){this.actions$=T,this.statisticsService=it,this.fetchAttemptedStatistics=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[STATS] GET_ATTEMPTED_DATA_AVERAGE"),(0,ct.z)(st=>this.statisticsService.getAttemptedStatistics(null,null).pipe((0,at.U)(dt=>new Gt({data:dt})),(0,et.K)(dt=>(0,ot.of)(new Tt({errors:dt}))))))),this.fetchFirstTryStatisticsAverage=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[STATS] GET_FIRST_TRY_DATA_AVERAGE"),(0,ct.z)(st=>this.statisticsService.getFirstTryStatistics().pipe((0,at.U)(dt=>new Nt({data:dt})),(0,et.K)(dt=>(0,ot.of)(new Lt({errors:dt}))))))),this.fetchProgressStatisticsAverage=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[STATS] GET_PROGRESS_DATA_AVERAGE"),(0,ct.z)(st=>this.statisticsService.getProgressStatistics(null,!1,st.payload.date||null,st.payload.discipline||null,st.payload.bodySystem||null).pipe((0,at.U)(dt=>new Vt({data:dt,selectedDate:st.payload.date.from})),(0,et.K)(dt=>(0,ot.of)(new Xt({errors:dt}))))))),this.fetchAverageProgress=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[STATS] GET_PROGRESS_DATA_AVERAGE_OVERALL"),(0,ct.z)(st=>this.statisticsService.getProgressStatistics(null,!0,st.payload.date||null).pipe((0,at.U)(dt=>new mt({data:dt,selectedDate:st.payload.date.from})),(0,et.K)(dt=>(0,ot.of)(new j({errors:dt}))))))),this.fetchSpecificAttemptedStatistics=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[STATS] GET_ATTEMPTED_DATA_SELECTED"),(0,ct.z)(st=>this.statisticsService.getAttemptedStatistics(null,null,st.payload.discipline||null,st.payload.bodySystem||null).pipe((0,at.U)(dt=>new gt({data:dt,field:st.payload.field})),(0,et.K)(dt=>(0,ot.of)(new wt({errors:dt}))))))),this.fetchSpecificFirstTryStatistics=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[STATS] GET_FIRST_TRY_DATA_SELECTED"),(0,ct.z)(st=>this.statisticsService.getFirstTryStatistics(null,null,st.payload.discipline||null,st.payload.bodySystem||null).pipe((0,at.U)(dt=>new kt({data:dt,field:st.payload.field})),(0,et.K)(dt=>(0,ot.of)(new Ut({errors:dt}))))))),this.fetchSpecificProgressStatistics=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[STATS] GET_PROGRESS_DATA_SELECTED"),(0,ct.z)(st=>this.statisticsService.getProgressStatistics(null,null,st.payload.dates||null,st.payload.discipline||null,st.payload.bodySystem||null).pipe((0,at.U)(dt=>new H({data:dt,field:st.payload.field,selectedDate:st.payload.dates.from})),(0,et.K)(dt=>(0,ot.of)(new ut({errors:dt}))))))),this.fetchSelectedAverage=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[STATS] GET_AVERAGE_DATA_SELECTED"),(0,ct.z)(st=>this.statisticsService.getSelectedAverage(st.payload.url,st.payload.dates||null,st.payload.discipline||null,st.payload.bodySystem||null).pipe((0,at.U)(dt=>new rt({data:dt,selectedDate:st.payload.dates.from})),(0,et.K)(dt=>(0,ot.of)(new rt({errors:dt}))))))),this.fetchShareStatistics=(0,k.GW)(()=>this.actions$.pipe((0,k.l4)("[STATS] GET_USER_SHARES"),(0,ct.z)(st=>this.statisticsService.getShareStatistics(st.payload).pipe((0,at.U)(dt=>new xt({data:dt,error:null})),(0,et.K)(dt=>(0,ot.of)(new ne({data:null,error:dt})))))))}}return v.\u0275fac=function(T){return new(T||v)(i.LFG(k.eX),i.LFG(Y._))},v.\u0275prov=i.Yz7({token:v,factory:v.\u0275fac}),v})();var U=o(69060);o(18065),o(573);var jt=o(61276),Kt=o(11632),Ft=o(3070),Pe=o(50590),le=o(52842),oe=o(86657),J=o(92181),E=o(3144);function ae(v,R){if(1&v&&i._UZ(0,"qupi-news-list-item",5),2&v){const T=i.oxw().$implicit;i.Q6J("item",T)}}function we(v,R){if(1&v){const T=i.EpF();
1i.TgZ(0,"div",6),i.NdJ("click",function(){i.CHM(T);const st=i.oxw().$implicit,dt=i.oxw();return i.KtG(dt.handleAction(st))}),i._uU(1),i.qZA()}if(2&v){const T=i.oxw().$implicit;i.Q6J("routerLink",T.link),i.xp6(1),i.hij(" ",T.label," ")}}function re(v,R){if(1&v&&(i.ynx(0),i.YNc(1,ae,1,1,"qupi-news-list-item",3),i.YNc(2,we,2,2,"div",4),i.BQk()),2&v){const T=R.$implicit;i.xp6(1),i.Q6J("ngIf",T.title),i.xp6(1),i.Q6J("ngIf",T.actionName&&T.label||T.link&&T.label)}}let ge=(()=>{class v{constructor(){this.action=new i.vpe,this.disabled=!1}ngOnInit(){}handleAction(T){T.actionName&&this.action.emit(T.actionName)}}return v.\u0275fac=function(T){return new(T||v)},v.\u0275cmp=i.Xpm({type:v,selectors:[["qupi-dropdown-menu"]],viewQuery:function(T,it){if(1&T&&i.Gf(J.VK,7),2&T){let st;i.iGM(st=i.CRH())&&(it.menu=st.first)}},inputs:{items:"items",type:"type",disabled:"disabled",news:"news"},outputs:{action:"action"},exportAs:["appMenu"],decls:3,vars:2,consts:[["MenuPositionY","below","MenuPositionX","after",1,"mat-menu-dropdown",3,"overlapTrigger"],["menu","matMenu"],[4,"ngFor","ngForOf"],[3,"item",4,"ngIf"],["mat-menu-item","",3,"routerLink","click",4,"ngIf"],[3,"item"],["mat-menu-item","",3,"routerLink","click"]],template:function(T,it){1&T&&(i.TgZ(0,"mat-menu",0,1),i.YNc(2,re,3,2,"ng-container",2),i.qZA()),2&T&&(i.Q6J("overlapTrigger",!1),i.xp6(2),i.Q6J("ngForOf",it.items))},dependencies:[J.VK,J.OP,s.sg,s.O5,y.rH,E.T],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}"]}),v})();function Ue(v,R){if(1&v&&i._UZ(0,"img",8),2&v){const T=i.oxw().$implicit,it=i.oxw();i.Q6J("src",it.baseURL+T.photo,i.LSH)}}function Ie(v,R){1&v&&i._UZ(0,"img",9)}function Re(v,R){if(1&v&&(i.TgZ(0,"qupi-content",10),i._uU(1),i.qZA()),2&v){const T=i.oxw().$implicit,it=i.oxw();i.Q6J("matMenuTriggerFor",it.menu),i.xp6(1),i.hij("Hello ",T.firstName," !")}}function Jt(v,R){if(1&v&&(i.ynx(0),i.YNc(1,Ue,1,1,"img",5),i.YNc(2,Ie,1,0,"img",6),i.YNc(3,Re,2,2,"qupi-content",7),i.BQk()),2&v){const T=R.$implicit,it=i.oxw();i.xp6(1),i.Q6J("ngIf",T.photo),i.xp6(1),i.Q6J("ngIf",!T.photo),i.xp6(1),i.Q6J("ngIf",it.displayName)}}let ye=(()=>{class v{constructor(T){this.store=T,this.displayName=!0,this.user$=this.store.select(Kt.np),this.news$=this.store.select(Ft.cj),this.items=[{label:"Sign out",actionName:"logOut"}],this.baseURL=u.N.api.baseURL}
1onAction(T){"logOut"===T&&this.store.dispatch(new c.RD)}loadNews(){this.news$.pipe((0,Pe.P)(T=>T&&T.length)).subscribe(T=>{this.items=[...T,...this.items]}),this.store.dispatch(new a.vG)}ngOnInit(){this.loadNews()}}return v.\u0275fac=function(T){return new(T||v)(i.Y36(e.yh))},v.\u0275cmp=i.Xpm({type:v,selectors:[["qupi-person-profile-nav"]],inputs:{displayName:"displayName"},decls:6,vars:5,consts:[[1,"person-profile-wrapper"],[1,"top-nav-profile",3,"matMenuTriggerFor"],[4,"ngIf"],[3,"items","action"],["x","appMenu"],["alt","user-profile-photo",3,"src",4,"ngIf"],["src","/assets/images/svg/profile-photo.svg","alt","user-profile-photo",4,"ngIf"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],["alt","user-profile-photo",3,"src"],["src","/assets/images/svg/profile-photo.svg","alt","user-profile-photo"],["mat-button","",3,"matMenuTriggerFor"]],template:function(T,it){if(1&T&&(i.TgZ(0,"qupi-group",0)(1,"qupi-group",1),i.YNc(2,Jt,4,3,"ng-container",2),i.ALo(3,"async"),i.qZA(),i.TgZ(4,"qupi-dropdown-menu",3,4),i.NdJ("action",function(dt){return it.onAction(dt)}),i.qZA()()),2&T){const st=i.MAs(5);i.xp6(1),i.Q6J("matMenuTriggerFor",st.menu),i.xp6(1),i.Q6J("ngIf",i.lcZ(3,3,it.user$)),i.xp6(2),i.Q6J("items",it.items)}},dependencies:[le.S,oe.m,J.p6,s.O5,ge,s.Ov],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}.top-nav-profile[_ngcontent-%COMP%]{align-items:center;padding-top:.3125em;padding-bottom:.3125em}.top-nav-profile[_ngcontent-%COMP%]:hover{cursor:pointer}.top-nav-profile[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:50%;height:2.75em;width:2.75em}@media (min-width: 768px){.top-nav-profile[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:3.75em;width:3.75em}}.top-nav-profile[_ngcontent-%COMP%] qupi-content[_ngcontent-%COMP%]{margin-left:.625em;color:#fff68a}"]}),v})(),Me=(()=>{class v{constructor(){this.menuState=!1}ngOnInit(){}toggleMenu(){this.menuState=!this.menuState}}return v.\u0275fac=function(T){return new(T||v)},v.\u0275cmp=i.Xpm({type:v,selectors:[["qupi-hamburger-menu"]],inputs:{items:"items"},decls:7,vars:13,consts:[[1,"hamburger-group",3,"matMenuTriggerFor","click"],["hamburgerTrigger","matMenuTrigger"],[3,"items","type"],["hamburger","appMenu"]],template:function(T,it){if(1&T&&(i.TgZ(0,"qupi-group",0,1),i.NdJ("click",function(){return it.toggleMenu()}),i._UZ(2,"span")(3,"span")(4,"span"),i.qZA(),i._UZ(5,"qupi-dropdown-menu",2,3)),2&T){const st=i.MAs(1),dt=i.MAs(6);i.Q6J("matMenuTriggerFor",dt.menu),i.xp6(2),i.Tol(st.menuOpen?"hamburger-line active":"hamburger-line"),i.Udp("transform",st.menuOpen?"rotate(45deg)":"rotate(0deg)"),i.xp6(1),i.Tol(st.menuOpen?"hamburger-line remove-line":"hamburger-line"),i.xp6(1),i.Tol(st.menuOpen?"hamburger-line active":"hamburger-line"),i.Udp("transform",st.menuOpen?"rotate(-45deg)":"rotate(0deg)"),i.xp6(1),i.Q6J("items",it.items)("type","hamburger-menu")}},dependencies:[oe.m,J.p6,ge],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%]{width:40px;height:40px;padding-left:1.25em}.hamburger-group[_ngcontent-%COMP%]{padding-top:5px;padding-bottom:10px;margin-bottom:10px;cursor:pointer;align-items:center;height:100%;width:100%;position:relative}@media (min-width: 768px){.hamburger-group[_ngcontent-%COMP%]{padding-top:10px}}.hamburger-group[_ngcontent-%COMP%] .hamburger-line[_ngcontent-%COMP%]{width:100%;height:4px;border-radius:4px;background-color:#fff;transition:all .1s}.hamburger-group[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{position:absolute;top:50%;align-self:center}.hamburger-group[_ngcontent-%COMP%] .remove-line[_ngcontent-%COMP%]{display:none}"]}),v})();o(84980);var be=o(33156),qe=o(50094),xe=(o(52821),o(29073)),ce=o(42945),me=o(15585),ie=
1o(82349),he=o(60957),_e=o(52934);let pe=(()=>{class v{constructor(T){this.dialogRef=T}ngOnInit(){}start(T){this.dialogRef.close(T)}}return v.\u0275fac=function(T){return new(T||v)(i.Y36(ie.so))},v.\u0275cmp=i.Xpm({type:v,selectors:[["qupi-resume-test-quiz"]],decls:6,vars:0,consts:[["size","lg","fontWeight","extra-bold"],[1,"mt-3","mb-2"],[3,"onClick"]],template:function(T,it){1&T&&(i.TgZ(0,"qupi-heading",0),i._uU(1,"Prepare yourself"),i.qZA(),i.TgZ(2,"mat-dialog-content",1),i._uU(3," You are going to resume quiz in test mode"),i.qZA(),i.TgZ(4,"qupi-button",2),i.NdJ("onClick",function(){return it.start(!0)}),i._uU(5,"Lets go!"),i.qZA())},dependencies:[he.r,_e.B,ie.xY],styles:["[_nghost-%COMP%]{color:#215ca8}"]}),v})();function Ze(v,R){if(1&v&&(i.ynx(0),i._uU(1),i.BQk()),2&v){const T=R.$implicit,it=R.last;i.xp6(1),i.AsE(" ",T.name,"",it?"":", "," ")}}function Qe(v,R){if(1&v&&(i.TgZ(0,"qupi-group",6)(1,"div"),i._uU(2,"Scope"),i.qZA(),i.TgZ(3,"qupi-group"),i.YNc(4,Ze,2,2,"ng-container",10),i.qZA()()),2&v){const T=i.oxw();i.xp6(4),i.Q6J("ngForOf",T.quiz.disciplines)}}function Fe(v,R){if(1&v&&(i.ynx(0),i._uU(1),i.BQk()),2&v){const T=R.$implicit,it=R.last;i.xp6(1),i.AsE(" ",T.name,"",it?"":", "," ")}}function ze(v,R){if(1&v&&(i.TgZ(0,"qupi-group",11)(1,"div"),i._uU(2,"Content"),i.qZA(),i.TgZ(3,"qupi-group"),i.YNc(4,Fe,2,2,"ng-container",10),i.qZA()()),2&v){const T=i.oxw();i.xp6(4),i.Q6J("ngForOf",T.quiz.bodySystems)}}function Be(v,R){if(1&v&&(i.TgZ(0,"qupi-group",6),i._uU(1," Type of questions "),i.TgZ(2,"span"),i._uU(3),i.qZA()()),2&v){const T=i.oxw();i.xp6(3),i.hij("",T.quizQuestionAnswersType[T.quiz.questionType]||"All"," ")}}let Ge=(()=>{class v{constructor(T,it,st){this.router=T,this.dialogRef=it,this.dialog=st,this.quizQuestionAnswersType=ce.P3,this.quizDifficulty=(0,me.l4)(ce.HA),this.quizTypes=(0,me.l4)(ce.IQ),this.modes=(0,me.l4)(ce.LJ)}ngOnInit(){}onRestore(T){this.dialogRef.close(),T.mode===ce.LJ.Test?this.dialog.open(pe).afterClosed().subscribe(it=>{it&&this.restoreQuiz(T)}):this.restoreQuiz(T)}restoreQuiz(T){this.router.navigate(["/quiz","start","restore",T.id])}}return v.\u0275fac=function(T){return new(T||v)(i.Y36(y.F0),i.Y36(ie.so),i.Y36(ie.uw))},v.\u0275cmp=i.Xpm({type:v,selectors:[["qupi-saved-quiz-card"]],inputs:{quiz:"quiz",savedLength:"savedLength"},decls:27,vars:14,consts:[[1,"save-card-head"],[1,"save-card-header"],[1,"save-card-head-time"],["fontWeight","bold","size","lg",1,"save-card-head-type-heading"],[1,"save-card-chart"],[1,"card-icon",3,"inlineSVG"],[1,"save-card-item"],["class","save-card-item",4,"ngIf"],["class","save-card-item save-card-item-content",4,"ngIf"],["width","180px",3,"disabled","theme","onClick"],[4,"ngFor","ngForOf"],[1,"save-card-item","save-card-item-content"]],template:function(T,it){1&T&&(i.TgZ(0,"div")(1,"qupi-group",0)(2,"qupi-group",1)(3,"div",2),i._uU(4),i.ALo(5,"date"),i.qZA(),i.TgZ(6,"qupi-heading",3),i._uU(7),i.qZA()(),i.TgZ(8,"div",4),i._UZ(9,"span",5),i.qZA()(),i.TgZ(10,"qupi-group",6),i._uU(11," Type "),i.TgZ(12,"span"),i._uU(13),i.qZA()(),i.YNc(14,Qe,5,1,"qupi-group",7),i.YNc(15,ze,5,1,"qupi-group",8),i.TgZ(16,"qupi-group",6),i._uU(17," Difficulty "),i.TgZ(18,"span"),i._uU(19),i.qZA()(),i.YNc(20,Be,4,1,"qupi-group",7),i.TgZ(21,"qupi-group",6),i._uU(22," Amount "),i.TgZ(23,"span"),i._uU(24),i.qZA()()(),i.TgZ(25,"qupi-button",9),i.NdJ("onClick",function(){return it.onRestore(it.quiz)}),i._uU(26," Start Quiz\n"),i.qZA()),2&T&&(i.xp6(4),i.hij(" Saved on ",i.xi3(5,11,it.quiz.created,"y L d")," "),i.xp6(3),i.hij(" ",it.quizTypes[it.quiz.quizType]," Quiz "),i.xp6(2),i.Q6J("inlineSVG",1===it.quiz.quizType?"/assets/images/svg/rev-clock.svg":"/assets/images/svg/custom-quiz.svg"),i.xp6(4),i.Oqu(it.modes[it.quiz.mode]),i.xp6(1),i.Q6J("ngIf",it.quiz.disciplines.length),i.xp6(1),i.Q6J("ngIf",it.quiz.bodySystems.length),i.xp6(4),i.hij(" ",it.quizDifficulty[it.quiz.difficulty]||"All"," "),i.xp6(1),i.Q6J("ngIf",it.quiz.questionType),i.xp6(4),i.hij(" ",it.quiz.questionCount," "),i.xp6(1),i.Q6J("disabled",0===it.quiz.questionCount)("theme","manilla"))},dependencies:[he.r,_e.B,oe.m,s.sg,s.O5,K.d$,s.uU],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;color:#fff;box-shadow:0 2px 4px #1c5ba966;border-radius:1.25em;padding:1.875em;background-image:linear-gradient(to top,#1da1f2,#1c5ba9);margin-bottom:30px;min-height:200px}@media only screen and (max-width: 400px){[_nghost-%COMP%]{padding:1.25em}}@media (min-width: 768px){[_nghost-%COMP%]{width:36%}[_nghost-%COMP%]:nth-child(odd){margin-right:8%}}@media (min-width: 1200px){[_nghost-%COMP%]{width:25%;margin-right:3%}[_nghost-%COMP%]:nth-child(odd){margin-right:3%}[_nghost-%COMP%]:nth-child(3n){margin-right:0}}[_nghost-%COMP%] .save-card-head[_ngcontent-%COMP%]{justify-content:space-between;margin-bottom:1.5em}[_nghost-%COMP%] .save-card-header[_ngcontent-%COMP%]{width:75%;flex-direction:column}[_nghost-%COMP%] .save-card-item[_ngcontent-%COMP%]{margin-bottom:.75em;flex-direction:column}[_nghost-%COMP%] .save-card-item[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-top:.3125em;white-space:pre}"]}),v})();var fe=o(12832),ke=(o(13842),o(4623),o(37650),o(16926),o(50376)),Ye=(o(21622),o(41042),o(72365)),en=(o(23350),o(79886),o(43039),o(69666),o(13495),o(24511)),nn=o(39300);let Ee=(()=>{class v{constructor(T){this.store=T}canActivate(T,it){return this.store.pipe((0,e.Ys)(st=>st.auth.user.logged),(0,nn.h)(st=>null!=st),(0,at.U)(()=>!0))}}return v.\u0275fac=function(T){return new(T||v)(i.LFG(e.yh))},v.\u0275prov=i.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})();var Se=o(95023),an=(o(33021),o(93980),o(93721));let rn=(()=>{class v{constructor(T){this.toastService=T}intercept(T,it){return it.handle(T).pipe((0,g.b)(()=>{},st=>{403===st.status&&this.toastService.error(st.error.message,"Forbidden")}))}}return v.\u0275fac=function(T){return new(T||v)(i.LFG(h.k))},v.\u0275prov=i.Yz7({token:v,factory:v.\u0275fac}),v})();o(60501);var pn=o(92132),dn=o(61009),de=o(81198),gn=(o(34713),o(83596));o(54317),o(35466),o(32618);var ue=o(23322),Ce=o(25245),_n=o(20773);let fn=(()=>{class v{static forRoot(){return{ngModule:v,providers:[{provide:l.TP,useClass:C,multi:!0},{provide:l.TP,useClass:rn,multi:!0},{provide:x.BZ,useValue:{siteKey:u.N.reCaptchaKey}},{provide:ie.uw},{provide:i.soG,useValue:"en-US"},en.Y,t.B,m,w,M,B.P,Ee,ke.u,pn.g,dn.q,de.M,Z.v,qe.w,b.e,U.l,z.K,h.k,n.R,jt.t,fe.C,Bt.f,Ye.m,an.hn,Ct,It,gn.Y]}}}return v.\u0275fac=function(T){return new(T||v)},v.\u0275mod=i.oAB({type:v}),v.\u0275inj=i.cJS({providers:[{provide:l.TP,useClass:C,multi:!0},de.M,l.eN],imports:[N.j,s.ez,r.UX,l.JF,y.Bz,L.Ob,K.vi,k.sQ.forFeature
1([$t,ht]),Se.Iq,N.j,s.ez,r.UX,l.JF,L.Ob,K.vi,Se.Iq]}),v})();i.B6R(xe.h,function(){return[le.S,ue.oO,Ce.Hw,ie.xY,_n.Ou,s.mk,s.sg,s.O5,Ge]},function(){return[s.Ov]}),i.B6R(be.U,function(){return[oe.m,s.O5,y.yS,K.d$,ye,Me]},function(){return[s.Ov]})},30422:(Q,f,o)=>{"use strict";o.d(f,{S:()=>t});class t{static request(u,i,l,p){return Object.assign(Object.assign({},u),{pending:Object.assign(Object.assign({},u.pending),{[p]:!0}),errors:Object.assign(Object.assign({},u.errors),{[p]:null})})}static success(u,i,l,p){return Object.assign(Object.assign({},u),{[i]:l.payload,pending:Object.assign(Object.assign({},u.pending),{[p]:!1}),errors:Object.assign(Object.assign({},u.errors),{[p]:null})})}static fail(u,i,l,p){return Object.assign(Object.assign({},u),{[i]:null,pending:Object.assign(Object.assign({},u.pending),{[p]:!1}),errors:Object.assign(Object.assign({},u.errors),{[p]:l.payload})})}}},87403:(Q,f,o)=>{"use strict";o.d(f,{$e:()=>l,LD:()=>m,Wx:()=>i});var t=o(32182),n=o(18505),u=o(36642);const i=s=>""===s||s&&"false"!==s,l=(s,{actions$:r,topNavPortalService:g,sideNavUserPortalService:e,injector:c})=>r.pipe((0,u.l4)(t.tE),(0,n.b)(a=>{let h;if(s.find(O=>{O.children&&O.children.find(y=>{const x=y.component;x&&x.prototype===a.payload.routerState.component.prototype&&(h=y)});const M=O.component;M&&M.prototype===a.payload.routerState.component.prototype&&(h=O)}),(h&&h.component)!=a.payload.routerState.component)return;const P=h&&h.data&&h.data.topNavConfig,w=h&&h.data&&h.data.sideNavConfig;P?P.forEach((O,M)=>g.createComponent(M+1,O,c)):Array(3).fill(0).forEach((O,M)=>g.createComponent(M+1,null)),w?w.forEach(O=>e.createComponent(O,c)):e.createComponent(null,null)}));function m(s,r,g,e){return s.checked?r.push(s.source.value):r.splice(r.indexOf(s.source.value),1),g.controls[e].setValue(r),r}},5850:(Q,f,o)=>{"use strict";o.d(f,{A:()=>s});var t=o(92340),n=o(5e3),u=o(23322),i=o(69808);const l=function(r,g){return{"qupi-avatar":!0,"qupi-avatar-md":r,"qupi-avatar-editable":g}};function p(r,g){if(1&r){const e=n.EpF();n.TgZ(0,"img",2),n.NdJ("click",function(){n.CHM(e);const a=n.oxw();return n.KtG(a.edit(a.editable))}),n.qZA()}if(2&r){const e=n.oxw();n.Q6J("src",e.baseURL+e.imageSrc,n.LSH)("alt",e.imageAlt||"avatar")("ngClass",n.WLB(3,l,"md"===e.size,e.editable))}}function m(r,g){if(1&r){const e=n.EpF();n.TgZ(0,"img",3),n.NdJ("click",function(){n.CHM(e);const a=n.oxw();return n.KtG(a.edit(a.editable))}),n.qZA()}if(2&r){const e=n.oxw();n.Q6J("alt",e.imageAlt||"avatar")("ngClass",n.WLB(2,l,"md"===e.size,e.editable))}}let s=(()=>{class r{constructor(){this.baseURL=t.N.api.baseURL}
1edit(e){}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=n.Xpm({type:r,selectors:[["qupi-avatar"]],inputs:{editable:"editable",size:"size",imageSrc:"imageSrc",imageAlt:"imageAlt"},decls:3,vars:2,consts:[[3,"src","alt","ngClass","click",4,"ngIf","ngIfElse"],["placeholder",""],[3,"src","alt","ngClass","click"],["src","/assets/images/svg/profile-photo.svg",3,"alt","ngClass","click"]],template:function(e,c){if(1&e&&(n.YNc(0,p,1,6,"img",0),n.YNc(1,m,1,5,"ng-template",null,1,n.W1O)),2&e){const a=n.MAs(2);n.Q6J("ngIf",c.imageSrc)("ngIfElse",a)}},dependencies:[u.oO,i.mk,i.O5],styles:["[_nghost-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;line-height:0}[_nghost-%COMP%] .qupi-avatar[_ngcontent-%COMP%]{border-radius:100%;height:2.5em;width:2.5em}[_nghost-%COMP%] .qupi-avatar-md[_ngcontent-%COMP%]{height:3.75em;width:3.75em}"]}),r})()},18857:(Q,f,o)=>{"use strict";o.d(f,{A:()=>u});var t=o(5e3);const n=["*"];let u=(()=>{class i{constructor(p){this.elementRef=p}set padding(p){this.setPadding(p)}set round(p){this.setRound(p)}ngOnInit(){}setPadding(p){"md"===p&&this.elementRef.nativeElement.classList.add("qupi-card-padding-md")}setRound(p){switch(p){case"sm":this.elementRef.nativeElement.classList.add("qupi-card-round-sm");break;case"md":this.elementRef.nativeElement.classList.add("qupi-card-round-md")}}}return i.\u0275fac=function(p){return new(p||i)(t.Y36(t.SBq))},i.\u0275cmp=t.Xpm({type:i,selectors:[["qupi-card"]],hostVars:6,hostBindings:function(p,m){2&p&&(t.Udp("flex-basis",m.flexBasis)("width",m.width),t.ekj("inversed",m.inversed))},inputs:{flexBasis:"flexBasis",width:"width",inversed:"inversed",padding:"padding",round:"round"},ngContentSelectors:n,decls:1,vars:0,template:function(p,m){1&p&&(t.F$t(),t.Hsn(0))},styles:["[_nghost-%COMP%]{display:flex;box-sizing:border-box;flex-wrap:wrap;box-shadow:0 2px 4px #1c5ba966;border-radius:1.25em;padding:1.25em;background:white}.qupi-card-padding-md[_nghost-%COMP%]{padding:1.875em}.qupi-card-round-sm[_nghost-%COMP%]{border-radius:.3125em}.qupi-card-round-md[_nghost-%COMP%]{border-radius:.625em}.inversed[_nghost-%COMP%]{background:linear-gradient(to top,#1da1f2,#1c5ba9);color:#fff}"],changeDetection:0}),i})()},52842:(Q,f,o)=>{"use strict";o.d(f,{S:()=>p});var t=o(5e3),n=o(23322),u=o(69808);const i=function(m,s,r,g,e,c){return{"qupi-content":!0,"qupi-content-sm":m,"qupi-content-lg":s,"qupi-content-bold":r,"qupi-content-medium-bold":g,"qupi-content-extra-bold":e,"qupi-content-justify-center":c}},l=["*"];let p=(()=>{class m{constructor(){}ngOnInit(){}}return m.\u0275fac=function(r){return new(r||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["qupi-content"]],hostVars:2,hostBindings:function(r,g){2&r&&t.Udp("text-align",g.textAlign)},inputs:{size:"size",fontWeight:"fontWeight",textAlign:"textAlign",justifyContent:"justifyContent",width:"width"},ngContentSelectors:l,decls:2,vars:10,consts:[[3,"ngClass"]],template:function(r,g){1&r&&(t.F$t(),t.TgZ(0,"span",0),t.Hsn(1),t.qZA()),2&r&&(t.Udp("width",g.width),t.Q6J("ngClass",t.HTZ(3,i,"sm"===g.size,"lg"===g.size,"bold"===g.fontWeight,"medium-bold"===g.fontWeight,"extra-bold"===g.fontWeight,"center"===g.justifyContent)))},dependencies:[n.oO,u.mk],styles:["[_nghost-%COMP%] .qupi-content[_ngcontent-%COMP%]{font-size:16px;font-weight:400;display:flex;flex-wrap:wrap}[_nghost-%COMP%] .qupi-content-sm[_ngcontent-%COMP%]{font-size:.75em}[_nghost-%COMP%] .qupi-content-lg[_ngcontent-%COMP%]{font-size:1.5em}[_nghost-%COMP%] .qupi-content-bold[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] .qupi-content-medium-bold[_ngcontent-%COMP%]{font-weight:800}[_nghost-%COMP%] .qupi-content-extra-bold[_ngcontent-%COMP%]{font-weight:900}[_nghost-%COMP%] .qupi-content-justify-center[_ngcontent-%COMP%]{justify-content:center}"],changeDetection:0}),m})()},59447:(Q,f,o)=>{"use strict";o.d(f,{k:()=>u});var t=o(5e3);let u=(()=>{class i{constructor(p){this.el=p,p.nativeElement.style.position="relative",p.nativeElement.style.zIndex="1",p.nativeElement.style.width="max-content",p.nativeElement.style.marginLeft="-0.2em",p.nativeElement.style.whiteSpace="pre",this.setInnerHtml()}set qupiHeadingUnderline(p){this.setInnerHtml(p)}setInnerHtml(p="#fff68a"){this.el.nativeElement.innerHTML+=`<div style="\n position: absolute;\n bottom: 0.05em;\n right: -0.01em;\n width: 75%;\n height: 0.3em;\n z-index: -1;\n background-color: ${p}">\n </div> `}}return i.\u0275fac=function(p){return new(p||i)(t.Y36(t.SBq))},i.\u0275dir=t.lG2({type:i,selectors:[["","qupiHeadingUnderline",""]],inputs:{qupiHeadingUnderline:"qupiHeadingUnderline"}}),i})()},60957:(Q,f,o)=>{"use strict";o.d(f,{r:()=>e});var t=o(5e3),n=o(87403),u=o(47423),i=o(20773),l=o(23322),p=o(69808);function m(c,a){1&c&&t.Hsn(0,0,["*ngIf","!loader"])}function s(c,a){if(1&c&&t._UZ(0,"mat-spinner",3),2&c){const h=t.oxw();t.Q6J("strokeWidth",3)("color",h.loaderColor)("diameter",25)}}const r=function(c,a,h,C,P,w,O,M,y,x,L){return{"button-mid-blue":c,"button-dodger-blue":a,"button-inversed":h,"button-mid-blue-reversed":C,"button-mid-blue-reversed-faded":P,"button-white":w,"button-manilla":O,"button-mid-blue-borderless":M,"button--flat":y,"button--size-sm":x,"button-image-hover":L}},g=["*"];let e=(()=>{class c{constructor(h){this.elementRef=h,this.theme="mid-blue",this.type="button",this.loaderColor="dodger-blue",this.onClick=new t.vpe,this._width="100%"}get width(){return this._width}set width(h){this.elementRef.nativeElement.style.width=h,this._width=h}get flat(){return this._flat}set flat(h){this._flat=(0,n.Wx)(h)}ngOnInit(){}}return c.\u0275fac=function(h){return new(h||c)(t.Y36(t.SBq))},c.\u0275cmp=t.Xpm({type:c,selectors:[["qupi-button"]],inputs:{size:"size",theme:"theme",type:"type",buttonClass:"buttonClass",disabled:"disabled",loader:"loader",loaderColor:"loaderColor",width:"width",flat:"flat"},outputs:{onClick:"onClick"},ngContentSelectors:g,decls:3,vars:27,consts:[["mat-button","",1,"button",3,"type","ngClass","disabled","click"],[4,"ngIf"],[3,"strokeWidth","color","diameter",4,"ngIf"],[3,"strokeWidth","color","diameter"]],template:function(h,C){1&h&&(t.F$t(),t.TgZ(0,"button",0),t.NdJ("click",function(){return C.onClick.emit()}),t.YNc(1,m,1,0,"ng-content",1),t.YNc(2,s,1,3,"mat-spinner",2),t.qZA()),2&h&&(t.Tol(C.buttonClass),t.Udp("width",C.width),t.ekj("button--loader-enabled",C.loader)("button--flat",C.flat)("button--size-sm","sm"===C.size),t.Q6J("type",C.type)("ngClass",t.rFY(15,r,["mid-blue"===C.theme,"dodger-blue"===C.theme,"inversed"===C.theme,"mid-blue-reversed"===C.theme,"mid-blue-reversed-faded"===C.theme,"white"===C.theme,"manilla"===C.theme,"mid-blue-borderless"===C.theme,C.flat,"sm"===C.size,"image-hover"===C.theme]))("disabled",C.disabled),t.xp6(1),t.Q6J("ngIf",!C.loader),t.xp6(1),t.Q6J("ngIf",C.loader))},dependencies:[u.lW,i.Ou,l.oO,p.mk,p.O5],styles:["[_nghost-%COMP%]{-moz-appearance:none!important;-webkit-appearance:none!important;width:100%}[_nghost-%COMP%] .button[_ngcontent-%COMP%]{border-radius:1.25em;height:40px;box-shadow:0 2px 4px #1c5ba966;font-size:16px;-moz-appearance:none;-webkit-appearance:none;min-width:0}[_nghost-%COMP%] .button--flat[_ngcontent-%COMP%]{box-shadow:none}[_nghost-%COMP%] .button--size-sm[_ngcontent-%COMP%]{font-size:.75em;height:30px;line-height:30px}[_nghost-%COMP%] .button--loader-enabled[_ngcontent-%COMP%]{display:flex;justify-content:center}
1[_nghost-%COMP%] .circle[_ngcontent-%COMP%]{border-radius:100%;width:65px!important;height:65px}[_nghost-%COMP%] .button-inversed[_ngcontent-%COMP%]{background:transparent;color:#215ca8;border:1px solid #43b3f7}[_nghost-%COMP%] .button-inversed[_ngcontent-%COMP%]:hover{background:#e6e6e6}[_nghost-%COMP%] .button-mid-blue[_ngcontent-%COMP%]{background:#1c5ba9;color:#fff}[_nghost-%COMP%] .button-mid-blue[_ngcontent-%COMP%]:hover{background:#15437d;color:#fff}[_nghost-%COMP%] .button-mid-blue-reversed[_ngcontent-%COMP%]{background:white;color:#1c5ba9}[_nghost-%COMP%] .button-mid-blue-reversed[_ngcontent-%COMP%]:hover{background:#e6e6e6;color:#1c5ba9}[_nghost-%COMP%] .button-mid-blue-reversed-faded[_ngcontent-%COMP%]{background:white;color:#1c5ba980}[_nghost-%COMP%] .button-mid-blue-reversed-faded[_ngcontent-%COMP%]:hover{background:#e6e6e6;color:#1c5ba980}[_nghost-%COMP%] .button-dodger-blue[_ngcontent-%COMP%]{background:#43b3f7;color:#fff}[_nghost-%COMP%] .button-white[_ngcontent-%COMP%]{background:white;color:#000}[_nghost-%COMP%] .button-white[_ngcontent-%COMP%]:hover{background:#e6e6e6}[_nghost-%COMP%] .button-manilla[_ngcontent-%COMP%]{background:#fff68a;color:#1c5ba9}[_nghost-%COMP%] .hover-manilla[_ngcontent-%COMP%]:hover{background:rgba(255,246,138,.7)}[_nghost-%COMP%] .button-mid-blue-borderless[_ngcontent-%COMP%]{border:0;background:white;color:#1c5ba9;box-shadow:none}[_nghost-%COMP%] .button-image-hover[_ngcontent-%COMP%]{border:1px solid #43b3f7;background:transparent}[_nghost-%COMP%] .button-image-hover[_ngcontent-%COMP%]:hover{background-color:#0000004d}[_nghost-%COMP%] .button[_ngcontent-%COMP%]:disabled{background:#e0e0e0;color:#fff}"],changeDetection:0}),c})()},40769:(Q,f,o)=>{"use strict";o.d(f,{b:()=>e});var t=o(5e3),n=o(77446),u=o(93075),i=o(69808),l=o(60850);const p=["noCotrolCheckbox"];function m(c,a){if(1&c&&t._UZ(0,"qupi-input-label",4),2&c){const h=t.oxw(2);t.Q6J("control",h.control)("errorMessage",(null==h.control||null==h.control.errors?null:h.control.errors.message)||h.errorMessage)("label",h.text)}}function s(c,a){if(1&c&&(t.TgZ(0,"mat-checkbox",2),t.YNc(1,m,1,3,"qupi-input-label",3),t.Hsn(2),t.qZA()),2&c){const h=t.oxw();t.Q6J("formControl",h.control)("disabled",h.disabled),t.xp6(1),t.Q6J("ngIf",h.text)}}function r(c,a){if(1&c){const h=t.EpF();t.TgZ(0,"mat-checkbox",5,6),t.NdJ("change",function(P){t.CHM(h);const w=t.oxw();return t.KtG(w.onChange(P))}),t.Hsn(2,1),t.qZA()}if(2&c){const h=t.oxw();t.Q6J("disabled",h.disabled)("checked",h.checked)("indeterminate",h.indeterminate)}}const g=["*","*"];let e=(()=>{class c{constructor(){this.change=new t.vpe}get checked(){return this._checked}set checked(h){!h&&this.checkbox&&(this.checkbox.checked=h),this._checked=h}ngOnInit(){}onChange(h){this.checked=h.checked,this.change.emit(h)}}return c.\u0275fac=function(h){return new(h||c)},c.\u0275cmp=t.Xpm({type:c,selectors:[["qupi-checkbox"]],viewQuery:function(h,C){if(1&h&&t.Gf(p,5),2&h){let P;t.iGM(P=t.CRH())&&(C.checkbox=P.first)}},inputs:{disabled:"disabled",control:"control",value:"value",text:"text",indeterminate:"indeterminate",checked:"checked"},outputs:{change:"change"},ngContentSelectors:g,decls:3,vars:2,consts:[[3,"formControl","disabled",4,"ngIf","ngIfElse"],["noControl",""],[3,"formControl","disabled"],[3,"control","errorMessage","label",4,"ngIf"],[3,"control","errorMessage","label"],[3,"disabled","checked","indeterminate","change"],["noCotrolCheckbox",""]],template:function(h,C){if(1&h&&(t.F$t(g),t.YNc(0,s,3,3,"mat-checkbox",0),t.YNc(1,r,3,3,"ng-template",null,1,t.W1O)),2&h){const P=t.MAs(2);t.Q6J("ngIf",C.control)("ngIfElse",P)}},dependencies:[n.oG,u.JJ,u.oH,i.O5,l.i],styles:["[_nghost-%COMP%] .mat-checkbox-label{white-space:normal}[_nghost-%COMP%] .mat-checkbox-label .label{color:inherit;font-size:inherit;font-weight:inherit;margin:initial;display:initial;align-items:initial;height:initial}[_nghost-%COMP%] .mat-checkbox-background{border-radius:.3125em}[_nghost-%COMP%] .mat-checkbox-inner-container{margin:0 8px auto auto}[_nghost-%COMP%] .mat-checkbox-frame{border:1px solid #a1bee3;background:white;border-radius:.3125em}[_nghost-%COMP%] .mat-checkbox-checked.mat-accent .mat-checkbox-background, [_nghost-%COMP%] .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background{background-color:#1c5ba9}[_nghost-%COMP%] .mat-checkbox-ripple.mat-ripple .mat-ripple-element{background-color:#1c5ba966!important}"],changeDetection:0}),c})()},29759:(Q,f,o)=>{"use strict";o.d(f,{L:()=>x});var t=o(5e3),n=o(93075),u=o(21171),i=o(62526),l=o(39609),p=o(65004),m=o(79558),s=o(63369),r=o(61348),g=o(57574),e=o(47423),c=o(25245),a=o(23322),h=o(69808),C=o(39588),P=o(60850);function w(L,B){if(1&L&&t._UZ(0,"qupi-input-label",6),2&L){const Z=t.oxw();t.Q6J("control",Z.formControl)("errorMessage",null==Z.formControl||null==Z.formControl.errors?null:Z.formControl.errors.message)("label",Z.label)}}function O(L,B){if(1&L){const Z=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(Z);const N=t.oxw();return t.KtG(N.clear())}),t.TgZ(1,"mat-icon"),t._uU(2,"clear"),t.qZA()()}}const M=function(L){return{picker:!0,"picker-flex":L}},y={provide:n.JU,useExisting:(0,t.Gpc)(()=>x),multi:!0};let x=(()=>{class L{constructor(Z){this.formBuilder=Z,this.isClearable=!1,this.sub=[],this.errorMessage="",this.days=this.getDays(),this.months=this.getMonths(),this.years=this.getYears()}ngOnInit(){this.dateForm=this.createDateForm(),this.sub.push(this.dateForm.valueChanges.subscribe(Z=>
1{if(this.onChange)try{const b=(0,u.Z)(`${Z.day}-${Z.month+1}-${Z.year}`,"dd-MM-yyyy",new Date).toISOString();this.onChange(b)}catch(b){}}))}ngOnChanges(){this.years=this.getYears()}ngOnDestroy(){this.sub.forEach(Z=>Z.unsubscribe())}createDateForm(){return this.formBuilder.group({day:[void 0,n.kI.required],month:[void 0,n.kI.required],year:[void 0,n.kI.required]},{validator:n.kI.required})}getDays(){return Array(31).fill(0).map((Z,b)=>b+1).map(Z=>({name:Z,value:Z}))}getMonths(){return Array(12).fill(0).map((Z,b)=>b).map(Z=>({name:r.Z.localize.month(Z),value:Z}))}getYears(){return this.future?Array((0,i.Z)(new Date(2100,0,1),new Date)+1).fill(0).map((Z,b)=>b+(new Date).getFullYear()).sort((Z,b)=>Z>b?1:-1).map(Z=>({name:Z,value:Z})):Array((0,i.Z)(new Date,new Date(1900,0,1))+1).fill(0).map((Z,b)=>b+1900).sort((Z,b)=>Z<b?1:-1).map(Z=>({name:Z,value:Z}))}registerOnChange(Z){this.onChange=Z;const b=this.dateForm.getRawValue();try{this.onChange((0,u.Z)(`${b.day}-${b.month+1}-${b.year}`,"dd-MM-yyyy",new Date).toISOString())}catch(N){}}registerOnTouched(Z){this.onTouched=Z}setDisabledState(Z){Z?Object.values(this.dateForm.controls).forEach(b=>b.disable()):Object.values(this.dateForm.controls).forEach(b=>b.enable())}isISO8601(Z){return"string"==typeof Z&&/^\d{4}(-\d\d(-\d\d(T\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z)?)?)?)?$/i.test(Z)}writeValue(Z){let b;b=this.isISO8601(Z)?new Date(Z):Z,(0,l.Z)(b)?this.dateForm.patchValue({day:(0,p.Z)(b),month:(0,m.Z)(b),year:(0,s.Z)(b)}):(0,g.o)(this.formControl,g.W.required)&&this.dateForm.patchValue({day:1,month:0,year:1980})}clear(){this.dateForm.reset(),this.onChange(null)}}return L.\u0275fac=function(Z){return new(Z||L)(t.Y36(n.qu))},L.\u0275cmp=t.Xpm({type:L,selectors:[["qupi-date-picker"]],inputs:{flex:"flex",formControl:"formControl",future:"future",label:"label",isClearable:"isClearable"},features:[t._Bn([y]),t.TTD],decls:6,vars:14,consts:[[3,"control","errorMessage","label",4,"ngIf"],[3,"ngClass"],["placeholder","Day",1,"day",3,"control","label","selections","blur"],["placeholder","Month",1,"month",3,"control","label","selections","blur"],["placeholder","Year",1,"year",3,"control","label","selections","blur"],["type","button","class","clear-button","mat-icon-button","",3,"click",4,"ngIf"],[3,"control","errorMessage","label"],["type","button","mat-icon-button","",1,"clear-button",3,"click"]],template:function(Z,b){1&Z&&(t.YNc(0,w,1,3,"qupi-input-label",0),t.TgZ(1,"div",1)(2,"qupi-select",2),t.NdJ("blur",function(){return b.onTouched()}),t.qZA(),t.TgZ(3,"qupi-select",3),t.NdJ("blur",function(){return b.onTouched()}),t.qZA(),t.TgZ(4,"qupi-select",4),t.NdJ("blur",function(){return b.onTouched()}),t.qZA(),t.YNc(5,O,3,0,"button",5),t.qZA()),2&Z&&(t.Q6J("ngIf",b.formControl),t.xp6(1),t.Q6J("ngClass",t.VKq(12,M,b.flex)),t.xp6(1),t.Q6J("control",b.dateForm.get("day"))("label",!1)("selections",b.days),t.xp6(1),t.Q6J("control",b.dateForm.get("month"))("label",!1)("selections",b.months),t.xp6(1),t.Q6J("control",b.dateForm.get("year"))("label",!1)("selections",b.years),t.xp6(1),t.Q6J("ngIf",b.isClearable))},dependencies:[e.lW,c.Hw,a.oO,h.mk,h.O5,C.H,P.i],styles:[".picker[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;justify-content:space-between}.picker-flex[_ngcontent-%COMP%]{width:100%}.picker-flex[_ngcontent-%COMP%] qupi-select[_ngcontent-%COMP%]{flex-basis:32%}.picker-flex[_ngcontent-%COMP%] .day[_ngcontent-%COMP%], .picker-flex[_ngcontent-%COMP%] .month[_ngcontent-%COMP%]{margin-right:1.25em}.clear-button[_ngcontent-%COMP%]{align-self:flex-start;margin:2px}"],changeDetection:0}),L})()},60850:(Q,f,o)=>{"use strict";o.d(f,{i:()=>s});var t=o(57574),n=o(41777),u=o(85960),i=o(5e3),l=o(69808);function p(r,g){1&r&&(i.TgZ(0,"span",3),i._uU(1,"*"),i.qZA())}function m(r,g){if(1&r&&(i.TgZ(0,"span",4),i._UZ(1,"img",5),i._uU(2),i.qZA()),2&r){const e=i.oxw();i.Q6J("@tada",void 0)("@fadeOut",void 0),i.xp6(2),i.hij(" ",e.errorMessage," ")}}let s=(()=>{class r{constructor(e){this.cdr=e}get control(){return this._control}set control(e){if(e){const c=e.markAsTouched;e.markAsTouched=(...h)=>{c.bind(e)(...h),this.cdr&&this.cdr.markForCheck()};const a=e.setErrors;e.setErrors=(...h)=>{a.bind(e)(...h),this.cdr&&this.cdr.markForCheck()},this.checkValidators(e),this._control=e}}
1ngOnDestroy(){this.cdr.detach(),this.statusSubscription&&this.statusSubscription.unsubscribe()}checkValidators(e){this.isRequired=(0,t.o)(e,t.W.required)}}return r.\u0275fac=function(e){return new(e||r)(i.Y36(i.sBO))},r.\u0275cmp=i.Xpm({type:r,selectors:[["qupi-input-label"]],inputs:{label:"label",errorMessage:"errorMessage",isRequired:"isRequired",control:"control"},decls:4,vars:5,consts:[[1,"label"],["class","label--required",4,"ngIf"],["class","label--error",4,"ngIf"],[1,"label--required"],[1,"label--error"],["src","/assets/images/svg/dropdown-circle.svg"]],template:function(e,c){1&e&&(i.TgZ(0,"label",0),i.YNc(1,p,2,0,"span",1),i._uU(2),i.YNc(3,m,3,3,"span",2),i.qZA()),2&e&&(i.ekj("label__error",c.control.touched&&c.control.invalid&&c.errorMessage),i.xp6(1),i.Q6J("ngIf",c.isRequired),i.xp6(1),i.hij(" ",c.label," "),i.xp6(1),i.Q6J("ngIf",c.control.invalid&&c.control.touched&&c.errorMessage))},dependencies:[l.O5],styles:[".label[_ngcontent-%COMP%]{color:#215ca8;font-size:12px;font-weight:700;margin:0 0 5px;display:flex;align-items:center;height:20px}.label__error[_ngcontent-%COMP%], .label--required[_ngcontent-%COMP%]{color:#ff8aa4}.label--error[_ngcontent-%COMP%]{display:flex;align-items:center}.label--error[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin:0 .5rem 0 .75rem}"],data:{animation:[(0,n.X$)("tada",[(0,n.eR)(":enter",(0,n._7)(u.T$))]),(0,n.X$)("fadeOut",[(0,n.eR)(":leave",(0,n._7)(u.U6))])]},changeDetection:0}),r})()},38322:(Q,f,o)=>{"use strict";o.d(f,{N:()=>b});var t=o(5e3),n=o(162),u=o(93075),i=o(10610),l=o(92340),p=o(65620),m=o(20773),s=o(44619),r=o(23322),g=o(69808),e=o(60957),c=o(18857);const a=["fileInput"];function h(N,K){if(1&N){const A=t.EpF();t.TgZ(0,"div",10),t.NdJ("fileOver",function(W){t.CHM(A);const _t=t.oxw(2);return t.KtG(_t.onFileOver(W))}),t._UZ(1,"img",11),t.qZA()}if(2&N){const A=t.oxw(2);t.Q6J("uploader",A.uploader),t.xp6(1),t.Q6J("src",A.imageURL,t.LSH)}}function C(N,K){1&N&&t._UZ(0,"span",16)}function P(N,K){if(1&N&&t._UZ(0,"img",11),2&N){const A=t.oxw(3);t.Q6J("src",A.imageURL,t.LSH)}}function w(N,K){1&N&&(t.TgZ(0,"div",17),t._UZ(1,"mat-spinner",18),t.qZA()),2&N&&(t.xp6(1),t.Q6J("diameter","75"))}function O(N,K){if(1&N){const A=t.EpF();t.ynx(0),t.TgZ(1,"qupi-card",12)(2,"div",10),t.NdJ("fileOver",function(W){t.CHM(A);const _t=t.oxw(2);return t.KtG(_t.onFileOver(W))}),t.YNc(3,C,1,0,"span",13),t.YNc(4,P,1,1,"img",14),t.YNc(5,w,2,1,"div",15),t.qZA()(),t.BQk()}if(2&N){const A=t.oxw(2);t.xp6(2),t.Q6J("uploader",A.uploader),t.xp6(1),t.Q6J("ngIf",!A.imageURL),t.xp6(1),t.Q6J("ngIf",A.imageURL&&!A.loading),t.xp6(1),t.Q6J("ngIf",A.loading)}}function M(N,K){1&N&&(t.TgZ(0,"div"),t._uU(1," Please use your profile photo as this could be a part of your CV if you are able to show how well you score on our Medical Questions. Any profane images is subject to removal. "),t.qZA())}function y(N,K){if(1&N){const A=t.EpF();t.TgZ(0,"div",2),t.YNc(1,h,2,2,"div",3),t.YNc(2,O,6,4,"ng-container",1),t.TgZ(3,"div",4)(4,"qupi-button",5),t.NdJ("click",function(){t.CHM(A);const W=t.oxw();return t.KtG(W.onClick())})("blur",function(){t.CHM(A);const W=t.oxw();return t.KtG(W.onTouched())}),t._uU(5," Upload photo "),t.qZA(),t._UZ(6,"input",6,7),t.TgZ(8,"div",8)(9,"div",9)(10,"div"),t._uU(11,"Restriction of Photo."),t.qZA(),t._uU(12," Please use only JPEG files for best results. "),t.qZA(),t.YNc(13,M,2,0,"div",1),t.qZA()()()}if(2&N){const A=t.oxw();t.ekj("upload-profile-mode",A.profilePhotoMode),t.xp6(1),t.Q6J("ngIf",A.profilePhotoMode),t.xp6(1),t.Q6J("ngIf",!A.profilePhotoMode),t.xp6(2),t.Q6J("disabled",A.isDisabled),t.xp6(2),t.Q6J("uploader",A.uploader),t.xp6(7),t.Q6J("ngIf",A.profilePhotoMode)}}const x=function(N){return{"qupi-profile":!0,"qupi-profile-md":N}},L=function(N){return{"qupi-profile":!0,"qupi-profile-md":N,"qupi-profile-editable":!0}};function B(N,K){if(1&N){const A=t.EpF();t.TgZ(0,"div")(1,"div",19),t.NdJ("fileOver",function(W){t.CHM(A);const _t=t.oxw();return t.KtG(_t.onFileOver(W))}),t.TgZ(2,"img",20),t.NdJ("click",function(){t.CHM(A);const W=t.oxw();return t.KtG(W.onClick())}),t.qZA()(),t._UZ(3,"input",21,7),t.qZA()}if(2&N){const A=t.oxw();
1t.xp6(1),t.Q6J("uploader",A.uploader)("ngClass",t.VKq(6,x,"md"===A.size)),t.xp6(1),t.Q6J("src",A.baseURL+A.imageURL,t.LSH)("alt",A.imageAlt||"avatar")("ngClass",t.VKq(8,L,"md"===A.size)),t.xp6(1),t.Q6J("uploader",A.uploader)}}const Z={provide:u.JU,useExisting:(0,t.Gpc)(()=>b),multi:!0};let b=(()=>{class N{constructor(A){this.store=A,this.imgLoading=new t.vpe,this.baseURL=l.N.api.baseURL,this.isBase64Upload=!1,this.loading=!1}get uploadOptions(){return this._uploadOptions}set uploadOptions(A){"base64"===A?(this.isBase64Upload=!0,this.uploader=new n.bA({}),this.configureUploaderB64(this.uploader)):(this.uploader=new n.bA(A),this.configureUploader(this.uploader),this._uploadOptions=A)}ngOnInit(){this.imageURL||(this.imageURL="/assets/images/svg/profile-photo.svg")}onClick(){this.uploader.onAfterAddingFile=()=>{this.file=this.uploader.queue[this.uploader.queue.length-1],this.updateProfilePhoto()},this.fileInput.nativeElement.click()}updateProfilePhoto(){const A=new FormData;A.append("photo",this.file._file),this.store.dispatch(new i.IB(A))}onFileOver(A){}configureUploader(A){A.onAfterAddingFile=this.onAfterAddingFile.bind(this),A.onCompleteAll=()=>{this.uploader.queue[0].isSuccess=!1,this.uploader.queue[0].isUploaded=!1}}configureUploaderB64(A){A.onAfterAddingFile=$=>{const W=new FileReader;W.onload=_t=>{this.imageURL=_t.target.result,this.onChange({base64:this.imageURL,name:$.file.name})},W.onloadstart=_t=>{this.loading=!0,this.imgLoading.emit(!0)},W.onloadend=_t=>{this.loading=!1,this.imgLoading.emit(!1)},W.readAsDataURL($.file.rawFile)}}onAfterAddingFile(A){A.withCredentials=!1;const $=new FileReader;$.onload=W=>{this.imageURL=W.target.result,this.onChange({file:A,uploader:this.uploader})},$.readAsDataURL(A.file.rawFile)}registerOnChange(A){this.onChange=A}registerOnTouched(A){this.onTouched=A}setDisabledState(A){this.isDisabled=A}writeValue(A){A&&(this.uploader.queue=[A])}}return N.\u0275fac=function(A){return new(A||N)(t.Y36(p.yh))},N.\u0275cmp=t.Xpm({type:N,selectors:[["qupi-photo-upload"]],viewQuery:function(A,$){if(1&A&&t.Gf(a,5),2&A){let W;t.iGM(W=t.CRH())&&($.fileInput=W.first)}},inputs:{variant:"variant",size:"size",profilePhotoMode:"profilePhotoMode",imageURL:"imageURL",imageAlt:"imageAlt",uploadOptions:"uploadOptions"},outputs:{imgLoading:"imgLoading"},features:[t._Bn([Z])],decls:2,vars:2,consts:[["class","upload",3,"upload-profile-mode",4,"ngIf"],[4,"ngIf"],[1,"upload"],["class","upload--photo-wrapper","ng2FileDrop","",3,"uploader","fileOver",4,"ngIf"],[1,"upload--controls-wrapper"],["color","white","buttonClass","","type","button","tabindex","-1","theme","mid-blue-reversed",3,"disabled","click","blur"],["type","file","ng2FileSelect","",1,"d-none",3,"uploader"],["fileInput",""],[1,"text-center"],[1,"restrictions"],["ng2FileDrop","",1,"upload--photo-wrapper",3,"uploader","fileOver"],[1,"upload-photo",3,"src"],[1,"upload-photo-card"],["class","upload-photo","inlineSVG","/assets/images/svg/upload-photo.svg",4,"ngIf"],["class","upload-photo",3,"src",4,"ngIf"],["class","spinner-wrapper",4,"ngIf"],["inlineSVG","/assets/images/svg/upload-photo.svg",1,"upload-photo"],[1,"spinner-wrapper"],["color","dodger-blue",3,"diameter"],["ng2FileDrop","",1,"qupi-profile-editable-wrapper",3,"uploader","ngClass","fileOver"],[3,"src","alt","ngClass","click"],["type","file","ng2FileSelect","",1,"display-none",3,"uploader"]],template:function(A,$){1&A&&(t.YNc(0,y,14,7,"div",0),t.YNc(1,B,5,10,"div",1)),2&A&&(t.Q6J("ngIf","upload"===$.variant),t.xp6(1),t.Q6J("ngIf","editable"===$.variant))},dependencies:[m.Ou,s.d$,r.oO,g.mk,g.O5,n.GN,n.C6,e.r,c.A],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%] .upload-photo{width:100%;height:100%}[_nghost-%COMP%] .upload-photo svg{width:100%;height:auto;margin:0 auto}.display-none[_ngcontent-%COMP%]{display:none}.upload[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 426px){.upload[_ngcontent-%COMP%]{flex-direction:row}}.upload--photo-wrapper[_ngcontent-%COMP%]{width:160px;overflow:hidden;display:flex;justify-content:center}.upload--controls-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;flex-basis:100%;margin-top:1.875em}@media (min-width: 426px){.upload--controls-wrapper[_ngcontent-%COMP%]{width:240px;align-items:flex-end;flex-basis:auto}}.upload-profile-mode[_ngcontent-%COMP%]{justify-content:center}.upload-profile-mode[_ngcontent-%COMP%] .upload--photo-wrapper[_ngcontent-%COMP%]{width:160px;height:160px;margin-right:5em;border-radius:100%}.upload-photo-card[_ngcontent-%COMP%]{flex-basis:50%;justify-content:center;align-items:center}.qupi-profile[_ngcontent-%COMP%]{border-radius:100%;height:2.5em;width:2.5em}.qupi-profile-md[_ngcontent-%COMP%]{height:3.75em;width:3.75em}.qupi-profile-editable-wrapper[_ngcontent-%COMP%]{background:yellow}.qupi-profile-editable[_ngcontent-%COMP%]{cursor:pointer}.qupi-profile-editable[_ngcontent-%COMP%]:hover{opacity:.5}.restrictions[_ngcontent-%COMP%]{margin-top:1.25em;margin-bottom:1.25em}"]}),N})()},37961:(Q,f,o)=>{"use strict";o.d(f,{w:()=>p});var t=o(5e3),n=o(93075),u=o(3290),i=o(60850);const l=["recaptcha"];let p=(()=>{class m{constructor(){this.errorMessage=""}ngOnInit(){}}return m.\u0275fac=function(r){return new(r||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["qupi-recaptcha"]],viewQuery:function(r,g){if(1&r&&t.Gf(l,7),2&r){let e;t.iGM(e=t.CRH())&&(g.recaptcha=e.first)}},inputs:{label:"label",errorMessage:"errorMessage",control:"control"},decls:3,vars:4,consts:[[3,"control","errorMessage","label"],[3,"formControl"],["recaptcha",""]],template:function(r,g){1&r&&t._UZ(0,"qupi-input-label",0)(1,"re-captcha",1,2),2&r&&(t.Q6J("control",g.control)("errorMessage",null==g.control||null==g.control.errors?null:g.control.errors.message)("label",g.label),t.xp6(1),t.Q6J("formControl",g.control))},dependencies:[n.JJ,n.oH,u.wT,u.Vd,i.i],changeDetection:0}),m})()},39588:(Q,f,o)=>{"use strict";o.d(f,{H:()=>h});var t=o(5e3),n=o(4834),u=o(67322),i=o(74107),l=o(90508),p=o(25245),m=o(93075),s=o(69808),r=o(60850);function g(C,P){if(1&C&&t._UZ(0,"qupi-input-label",12),2&C){const w=t.oxw();t.Q6J("control",w.control)("errorMessage",null==w.control||null==w.control.errors?null:w.control.errors.message)("label",w.label)}}function e(C,P){1&C&&(t.TgZ(0,"mat-option"),t._uU(1," \u2013 NONE \u2013"),t.qZA())}function c(C,P){if(1&C&&(t.TgZ(0,"mat-option",13),t._uU(1),t.qZA()),2&C){const w=P.$implicit,O=t.oxw();t.Q6J("value",w[O.selectValue]),t.xp6(1),t.Oqu(w[O.selectName])}}const a=(C,P)=>C===P;let h=(()=>{class C{constructor(){this.disabled=!1,this.compareWith=a,this.errorMessage="",this.selections=[],this.selectName="name",this.selectValue="value",this._emptyOption=!1}get emptyOption(){return this._emptyOption}set emptyOption(w){this._emptyOption=""===w||"true"===w||!0===w}ngOnInit(){}}return C.\u0275fac=function(w){return new(w||C)},C.\u0275cmp=t.Xpm({type:C,selectors:[["qupi-select"]],hostVars:2,hostBindings:function(w,O){2&w&&t.Udp("width",O.width)},inputs:{width:"width",disabled:"disabled",panelClass:"panelClass",control:"control",label:"label",compareWith:"compareWith",placeholder:"placeholder",errorMessage:"errorMessage",selections:"selections",selectName:"selectName",selectValue:"selectValue",emptyOption:"emptyOption"},decls:18,vars:11,consts:[[3,"control","errorMessage","label",4,"ngIf"],["floatLabel","never",1,"select"],[1,"placeholder"],[1,"placeholder--divider",3,"vertical"],[1,"placeholder--icon"],[3,"formControl","disabled","panelClass","compareWith"],["select",""],[1,"trigger"],[1,"trigger--divider",3,"vertical"],[1,"trigger--icon"],[4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"control","errorMessage","label"],[3,"value"]],template:function(w,O){if(1&w&&(t.YNc(0,g,1,3,"qupi-input-label",0),t.TgZ(1,"mat-form-field",1)(2,"mat-label",2)(3,"span"),t._uU(4),t.qZA(),t._UZ(5,"mat-divider",3),t.TgZ(6,"mat-icon",4),t._uU(7,"keyboard_arrow_down"),t.qZA()(),t.TgZ(8,"mat-select",5,6)(10,"mat-select-trigger",7)(11,"span"),t._uU(12),t.qZA(),t._UZ(13,"mat-divider",8),t.TgZ(14,"mat-icon",9),t._uU(15,"keyboard_arrow_down"),t.qZA()(),t.YNc(16,e,2,0,"mat-option",10),t.YNc(17,c,2,2,"mat-option",11),t.qZA()()),2&w){const M=t.MAs(9);t.Q6J("ngIf",O.label),t.xp6(4),t.Oqu(O.placeholder),t.xp6(1),t.Q6J("vertical",!0),t.xp6(3),t.Q6J("formControl",O.control)("disabled",O.disabled)("panelClass",O.panelClass)("compareWith",O.compareWith),t.xp6(4),t.Oqu(null==M.selected?null:M.selected.viewValue),t.xp6(1),t.Q6J("vertical",!0),t.xp6(3),t.Q6J("ngIf",O.emptyOption),t.xp6(1),t.Q6J("ngForOf",O.selections)}},dependencies:[n.d,u.KE,u.hX,i.gD,i.$L,l.ey,p.Hw,m.JJ,m.oH,s.sg,s.O5,r.i],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}.mat-form-field[_ngcontent-%COMP%]{border-radius:.625em;box-shadow:0 2px 4px #1c5ba966;height:40px;width:100%;margin-bottom:.625em}@media (min-width: 426px){.mat-form-field[_ngcontent-%COMP%]{margin-bottom:1.25em}}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-wrapper{padding:0}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-label-wrapper{margin:0 0 0 9px}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-infix{padding:9px 9px 12px;margin:0;border-top:0;width:auto;min-width:140px;background:white;border-radius:.625em}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-underline, .mat-form-field[_ngcontent-%COMP%] .mat-form-field-subscript-wrapper, .mat-form-field[_ngcontent-%COMP%] .mat-select-arrow-wrapper{display:none}.mat-form-field[_ngcontent-%COMP%] .mat-select-placeholder{max-width:100%}.mat-form-field[_ngcontent-%COMP%] .mat-select-value{height:19px}.mat-form-field[_ngcontent-%COMP%] .mat-form-field-label{color:#a1bee3;overflow:visible;color:red}.mat-form-field[_ngcontent-%COMP%] .mat-select-trigger{width:100%}.mat-form-field[_ngcontent-%COMP%] .mat-select-trigger span{max-width:calc(100% - 30px);overflow:hidden;text-overflow:ellipsis}.trigger[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;color:#1c5ba9;height:19px}.trigger--divider[_ngcontent-%COMP%]{width:1px;position:absolute;right:28px;height:30px}.trigger--icon[_ngcontent-%COMP%]{color:#1c5ba9}.placeholder[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;color:#a1bee3}.placeholder[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;width:85%}.placeholder--divider[_ngcontent-%COMP%]{width:1px;position:absolute;right:28px;height:30px}.placeholder--icon[_ngcontent-%COMP%]{color:#1c5ba9;font-size:24px!important;height:24px!important;width:24px!important}"],changeDetection:0}
1),C})()},26747:(Q,f,o)=>{"use strict";o.d(f,{U:()=>c});var t=o(5e3),n=o(25245),u=o(87238),i=o(93075),l=o(69808),p=o(60850),m=o(52842),s=o(86657);function r(a,h){if(1&a&&t._UZ(0,"qupi-input-label",6),2&a){const C=t.oxw();t.Q6J("control",C.control)("errorMessage",(null==C.control||null==C.control.errors?null:C.control.errors.message)||C.errorMessage)("label",C.label)}}function g(a,h){if(1&a){const C=t.EpF();t.TgZ(0,"qupi-content",7),t.NdJ("click",function(){t.CHM(C);const w=t.oxw();return t.KtG(w.onRemoveClick())}),t._uU(1," Remove "),t.qZA()}}function e(a,h){if(1&a&&(t.ynx(0),t.TgZ(1,"mat-icon",8),t._uU(2,"help"),t.qZA(),t.BQk()),2&a){const C=t.oxw();t.xp6(1),t.Q6J("matTooltip",C.tooltip)}}let c=(()=>{class a{constructor(){this.tooltip="",this.placeholder="",this.errorMessage="",this.rows=3,this.removable=!1,this.removeEmitter=new t.vpe,this.resizeable=!1}ngOnInit(){}onRemoveClick(){this.removeEmitter.emit(1)}getResizable(C){return!0===C?"both":!1===C?"none":C}}return a.\u0275fac=function(C){return new(C||a)},a.\u0275cmp=t.Xpm({type:a,selectors:[["qupi-textarea"]],inputs:{tooltip:"tooltip",label:"label",placeholder:"placeholder",errorMessage:"errorMessage",control:"control",width:"width",minHeight:"minHeight",rows:"rows",removable:"removable",resizeable:"resizeable"},outputs:{removeEmitter:"removeEmitter"},decls:6,vars:12,consts:[[1,"textarea"],[1,"textarea-header"],[3,"control","errorMessage","label",4,"ngIf"],["fontWeight","bold","size","sm","class","textarea-header-remove",3,"click",4,"ngIf"],[1,"textarea--input",3,"placeholder","formControl","rows"],[4,"ngIf"],[3,"control","errorMessage","label"],["fontWeight","bold","size","sm",1,"textarea-header-remove",3,"click"],["matTooltipPosition","above",1,"textarea--tooltip",3,"matTooltip"]],template:function(C,P){1&C&&(t.TgZ(0,"div",0)(1,"qupi-group",1),t.YNc(2,r,1,3,"qupi-input-label",2),t.YNc(3,g,2,0,"qupi-content",3),t.qZA(),t._UZ(4,"textarea",4),t.YNc(5,e,3,1,"ng-container",5),t.qZA()),2&C&&(t.Udp("width",P.width),t.xp6(2),t.Q6J("ngIf",P.label),t.xp6(1),t.Q6J("ngIf",P.removable),t.xp6(1),t.Udp("min-height",P.minHeight)("resize",P.getResizable(P.resizeable)),t.Q6J("placeholder",P.placeholder)("formControl",P.control)("rows",P.rows),t.xp6(1),t.Q6J("ngIf",P.tooltip))},dependencies:[n.Hw,u.gM,i.Fj,i.JJ,i.oH,l.O5,p.i,m.S,s.m],styles:[".textarea[_ngcontent-%COMP%]{position:relative;display:inline-flex;flex-direction:column;margin-bottom:1.25em}.textarea--input[_ngcontent-%COMP%]{border-radius:.625em;border:0;padding:9px 12px 12px;font-family:Lato,sans-serif;font-size:16px;box-shadow:0 2px 4px #1c5ba966;resize:none}.textarea--input[_ngcontent-%COMP%]::-moz-placeholder{color:#a1bee3}.textarea--input[_ngcontent-%COMP%]::placeholder{color:#a1bee3}.textarea--input[_ngcontent-%COMP%]:focus{outline:none}.textarea--tooltip[_ngcontent-%COMP%]{position:absolute;bottom:10px;right:10px;font-size:20px;height:20px;width:20px;color:#1c5ba9;cursor:default}.textarea-header-remove[_ngcontent-%COMP%]{cursor:pointer}.textarea-header-remove[_ngcontent-%COMP%]:hover{color:#a1bee3}.textarea-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0}),a})()},60501:(Q,f,o)=>{"use strict";o.d(f,{t:()=>r});var t=o(5e3),n=o(25245),u=o(87238),i=o(93075),l=o(69808),p=o(60850);function m(g,e){if(1&g&&t._UZ(0,"qupi-input-label",4),2&g){const c=t.oxw();t.Q6J("control",c.control)("errorMessage",(null==c.control||null==c.control.errors?null:c.control.errors.message)||c.errorMessage)("label",c.label)}}function s(g,e){if(1&g&&(t.ynx(0),t.TgZ(1,"mat-icon",5),t._uU(2,"help"),t.qZA(),t.BQk()),2&g){const c=t.oxw();t.xp6(1),t.Q6J("matTooltip",c.tooltip)}}let r=(()=>{class g{constructor(){this.tooltip="",this.placeholder="",this.errorMessage="",this.type="text",this.disabled=!1}ngOnInit(){}}return g.\u0275fac=function(c){return new(c||g)},g.\u0275cmp=t.Xpm({type:g,selectors:[["qupi-text-input"]],inputs:{tooltip:"tooltip",label:"label",placeholder:"placeholder",errorMessage:"errorMessage",control:"control",type:"type",width:"width",disabled:"disabled"},decls:4,vars:8,consts:[[1,"basic-input"],[3,"control","errorMessage","label",4,"ngIf"],[1,"basic-input--input",3,"type","placeholder","formControl"],[4,"ngIf"],[3,"control","errorMessage","label"],["matTooltipPosition","above",1,"basic-input--tooltip",3,"matTooltip"]],template:function(c,a){1&c&&(t.TgZ(0,"div",0),t.YNc(1,m,1,3,"qupi-input-label",1),t._UZ(2,"input",2),t.YNc(3,s,3,1,"ng-container",3),t.qZA()),2&c&&(t.Udp("width",a.width),t.xp6(1),t.Q6J("ngIf",a.label),t.xp6(1),t.Q6J("type",a.type)("placeholder",a.placeholder)("formControl",a.control),t.uIk("disabled",a.disabled||null),t.xp6(1),t.Q6J("ngIf",a.tooltip))},dependencies:[n.Hw,u.gM,i.Fj,i.JJ,i.oH,l.O5,p.i],styles:[".basic-input[_ngcontent-%COMP%]{position:relative;display:inline-flex;flex-direction:column;margin-bottom:.625em}@media (min-width: 426px){.basic-input[_ngcontent-%COMP%]{margin-bottom:1.25em}}@media (min-width: 1200px){.basic-input[_ngcontent-%COMP%]{margin-bottom:1.25em}}.basic-input--input[_ngcontent-%COMP%]{border-radius:.625em;border:0;padding:9px 12px 12px;font-family:Lato,sans-serif;font-size:16px;box-shadow:0 2px 4px #1c5ba966}.basic-input--input[_ngcontent-%COMP%]::-moz-placeholder{color:#a1bee3}.basic-input--input[_ngcontent-%COMP%]::placeholder{color:#a1bee3}.basic-input--input[_ngcontent-%COMP%]:focus{outline:none}.basic-input--tooltip[_ngcontent-%COMP%]{position:absolute;bottom:10px;right:10px;font-size:20px;height:20px;width:20px;color:#1c5ba9;cursor:default}"],changeDetection:0}),g})()},57574:(Q,f,o)=>{"use strict";function t(u,i){return!!u.validator&&(u.validator("")||{}).hasOwnProperty(i)}o.d(f,{W:()=>n,o:()=>t});const n={required:"required"}},86657:(Q,f,o)=>{"use strict";o.d(f,{m:()=>u});var t=o(5e3);const n=["*"];let u=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(p){return new(p||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["qupi-group"]],hostVars:6,hostBindings:function(p,m){2&p&&t.Udp("flex-direction",m.flexDirection)("flex-basis",m.flexBasis)("text-align",m.textAlign)},inputs:{flexDirection:"flexDirection",flexBasis:"flexBasis",textAlign:"textAlign"},ngContentSelectors:n,decls:1,vars:0,template:function(p,m){1&p&&(t.F$t(),t.Hsn(0))},styles:["[_nghost-%COMP%]{display:flex;flex-wrap:wrap}"]}),i})()},52934:(Q,f,o)=>{"use strict";o.d(f,{B:()=>p});var t=o(5e3),n=o(23322),u=o(69808);const i=function(m,s,r,g,e,c,a,h){return{"qupi-heading":!0,"qupi-heading-justify-center":m,"qupi-heading-text-align-center":s,"qupi-heading-lg":r,"qupi-heading-xlg":g,"qupi-heading-xxlg":e,"qupi-heading-bold":c,"qupi-heading-700":a,"qupi-heading-extra-bold":h}},l=["*"];let p=(()=>{class m{constructor(){this.margin="0"}ngOnInit(){}}return m.\u0275fac=function(r){return new(r||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["qupi-heading"]],inputs:{size:"size",fontWeight:"fontWeight",margin:"margin",justifyContent:"justifyContent",textAlign:"textAlign"},ngContentSelectors:l,decls:2,vars:12,consts:[[3,"ngClass"]],template:function(r,g){1&r&&(t.F$t(),t.TgZ(0,"span",0),t.Hsn(1),t.qZA()),2&r&&(t.Udp("margin",g.margin),t.Q6J("ngClass",t.qlk(3,i,"center"===g.justifyContent,"center"===g.textAlign,"lg"===g.size,"xlg"===g.size,"xxlg"===g.size,"bold"===g.fontWeight,"700"===g.fontWeight,"extra-bold"===g.fontWeight)))},dependencies:[n.oO,u.mk],styles:["[_nghost-%COMP%] .qupi-heading[_ngcontent-%COMP%]{font-size:16px;font-weight:400;flex-wrap:wrap;display:flex}[_nghost-%COMP%] .qupi-heading-lg[_ngcontent-%COMP%]{font-size:1.5em}[_nghost-%COMP%] .qupi-heading-xlg[_ngcontent-%COMP%]{font-size:2em}[_nghost-%COMP%] .qupi-heading-xxlg[_ngcontent-%COMP%]{font-size:3em}[_nghost-%COMP%] .qupi-heading-bold[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] .qupi-heading-extra-bold[_ngcontent-%COMP%]{font-weight:900}[_nghost-%COMP%] .qupi-heading-700[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] .qupi-heading-justify-center[_ngcontent-%COMP%]{justify-content:center}[_nghost-%COMP%] .qupi-heading-text-align-center[_ngcontent-%COMP%]{text-align:center}"]}),m})()},84196:(Q,f,o)=>{"use strict";o.d(f,{D:()=>a});var t=o(5e3),n=o(69808),u=o(52934),i=o(52842),l=o(86657);const p=["lineChart"];function m(h,C){if(1&h&&(t.TgZ(0,"qupi-content"),t._uU(1),t.qZA()),2&h){const P=t.oxw(3);t.xp6(1),t.hij("\xa0 of ",P.lineValue[1],"")}}function s(h,C){if(1&h&&(t.ynx(0),t.TgZ(1,"qupi-heading",7),t._uU(2),t.qZA(),t.YNc(3,m,2,1,"qupi-content",6),t.BQk()),2&h){const P=t.oxw(2);t.xp6(1),t.Q6J("size","xlg")("fontWeight","bold"),t.xp6(1),t.Oqu(P.lineValue[0]),t.xp6(1),t.Q6J("ngIf",!P.showOnlyOne)}}function r(h,C){if(1&h&&(t.TgZ(0,"qupi-heading",7),t._uU(1),t.qZA()),2&h){const P=t.oxw(3);t.Q6J("size","xlg")("fontWeight","bold"),t.xp6(1),t.hij(" ",null==P.label?null:P.label.count,"")}}function g(h,C){if(1&h&&(t.TgZ(0,"qupi-content"),t._uU(1),t.qZA()),2&h){const P=t.oxw(3);t.xp6(1),t.hij("\xa0 of ",null==P.label?null:P.label.of,"")}}function e(h,C){if(1&h&&(t.ynx(0),t.YNc(1,r,2,3,"qupi-heading",8),t.YNc(2,g,2,1,"qupi-content",6),t.BQk()),2&h){const P=t.oxw(2);t.xp6(1),t.Q6J("ngIf",null==P.label?null:P.label.count),t.xp6(1),t.Q6J("ngIf",null==P.label?null:P.label.of)}}function c(h,C){if(1&h&&(t.TgZ(0,"qupi-group",5),t.YNc(1,s,4,4,"ng-container",6),t.YNc(2,e,3,2,"ng-container",6),t.qZA()),2&h){const P=t.oxw();
1t.xp6(1),t.Q6J("ngIf",!P.label),t.xp6(1),t.Q6J("ngIf",P.label)}}let a=(()=>{class h{constructor(){this.showLabel=!0,this.displayValues=!0,this.showOnlyOne=!1}get lineValue(){return this._lineValue}set lineValue(P){this._lineValue=[P.count,P.of]}calcWidth(){const P=this.lineValue[0],w=this.lineValue[1];if(!w)return P+"%";let O;return O=P/w*100,O+"%"}ngOnChanges(){this.spanWidth=this.calcWidth()}ngOnInit(){}}return h.\u0275fac=function(P){return new(P||h)},h.\u0275cmp=t.Xpm({type:h,selectors:[["qupi-line-chart"]],viewQuery:function(P,w){if(1&P&&t.Gf(p,7),2&P){let O;t.iGM(O=t.CRH())&&(w.elRef=O.first)}},inputs:{label:"label",showLabel:"showLabel",lineHeight:"lineHeight",displayValues:"displayValues",showOnlyOne:"showOnlyOne",lineValue:"lineValue"},features:[t.TTD],decls:5,vars:9,consts:[[1,"line-chart-wrapper"],["lineChart",""],["class","line-chart-values",4,"ngIf"],[1,"line-chart-bar"],[1,"filled-value"],[1,"line-chart-values"],[4,"ngIf"],[3,"size","fontWeight"],[3,"size","fontWeight",4,"ngIf"]],template:function(P,w){1&P&&(t.TgZ(0,"div",0,1),t.YNc(2,c,3,2,"qupi-group",2),t.TgZ(3,"qupi-group",3),t._UZ(4,"span",4),t.qZA()()),2&P&&(t.xp6(2),t.Q6J("ngIf",w.showLabel),t.xp6(1),t.Udp("height",w.lineHeight)("border-radius",w.lineHeight),t.xp6(1),t.Udp("width",w.spanWidth)("border-radius",w.lineHeight))},dependencies:[n.O5,u.B,i.S,l.m],styles:[".line-chart-values[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin-bottom:20px}.line-chart-values[_ngcontent-%COMP%] qupi-heading[_ngcontent-%COMP%]{line-height:1.3em}.line-chart-bar[_ngcontent-%COMP%]{position:relative;background-color:#dae4f5}.line-chart-bar[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{transition:width .5s ease-out;height:100%;width:100%}.line-chart-bar[_ngcontent-%COMP%] .filled-value[_ngcontent-%COMP%]{background-color:#1da1f2}.line-chart-bar[_ngcontent-%COMP%] .empty-value[_ngcontent-%COMP%]{background-color:#dae4f5}"],changeDetection:0}),h})()},2557:(Q,f,o)=>{"use strict";o.d(f,{Q:()=>M});var t=o(5e3),i=o(80654),l=o(78641),p=o(61135),m=o(74107),s=o(90508),r=o(25245),g=o(69808),e=o(80483),c=o(52934),a=o(52842),h=o(86657);const C=["lineBaseChart"];function P(y,x){if(1&y&&(t.TgZ(0,"qupi-heading",9),t._uU(1),t.qZA()),2&y){const L=t.oxw();t.xp6(1),t.hij(" Progress in last ",L.setFilter," months ")}}function w(y,x){if(1&y&&(t.TgZ(0,"qupi-content",10),t._UZ(1,"div",11),t.qZA()),2&y){const L=t.oxw();t.Q6J("size",(null==L.options?null:L.options.sideTextSize)||"sm")("fontWeight",(null==L.options?null:L.options.sideTextWeight)||"normal"),t.xp6(1),t.Q6J("innerHTML",L.sideText,t.oJD)}}function O(y,x){if(1&y){const L=t.EpF();t.TgZ(0,"div",12)(1,"div",13)(2,"mat-icon"),t._uU(3,"keyboard_arrow_down"),t.qZA()(),t.TgZ(4,"mat-select",14),t.NdJ("selectionChange",function(Z){t.CHM(L);const b=t.oxw();return t.KtG(b.setFilters(Z))}),t.TgZ(5,"mat-option",15),t._uU(6,"Last 1 months"),t.qZA(),t.TgZ(7,"mat-option",15),t._uU(8,"Last 3 months"),t.qZA(),t.TgZ(9,"mat-option",15),t._uU(10,"Last 6 months"),t.qZA(),t.TgZ(11,"mat-option",15),t._uU(12,"Last 12 months"),t.qZA()()()}if(2&y){const L=t.oxw();t.Udp("width",L.sideText?"50%":"100%"),t.xp6(4),t.Q6J("value",3),t.xp6(1),t.Q6J("value",1),t.xp6(2),t.Q6J("value",3),t.xp6(2),t.Q6J("value",6),t.xp6(2),t.Q6J("value",12)}}let M=(()=>{class y{constructor(){this.defaultLabels=["your score","average"],this.renderedOptions$=new p.X(null),this.lineChartStaticOptions={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom",labels:{boxWidth:30,fontFamily:"'Lato', sans-serif",fontColor:"#1c5ba9",usePointStyle:!0}}},scales:{x:{grid:{display:!1},ticks:{display:!1}},y:{grid:{display:!1},max:100,min:0,position:"right",offset:!0,ticks:{font:{size:12,weight:800,family:"'Lato', sans-serif"}}}},layout:{padding:{left:20}}},this._lineChartLabels=["January 2018","February 2018","March 2018","April 2018","May 2018","June 2018","July 2018"],this.setFilter=3,this.lineChartColors=[{backgroundColor:"rgba(148,159,177,0.2)",borderColor:"#43b3f7",pointBackgroun
1dColor:"#43b3f7",pointBorderColor:"#43b3f7",pointHoverBackgroundColor:"#fff68a",pointHoverBorderColor:"#ffffff",pointHoverBorderWidth:6,pointRadius:6,animation:!1},{backgroundColor:"rgba(255,255,255,0.2)",borderColor:"#a1bee3",pointBackgroundColor:"#a1bee3",pointBorderColor:"#a1bee3",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(77,83,96,1)",pointBorderWidth:1,pointRadius:2,borderWidth:.7,animation:!1}],this.lineChartData_=[{data:[65,59,80,81,56,55,40],label:this.defaultLabels[0]},{data:[28,48,40,19,86,27,90],label:this.defaultLabels[1]}],this.lineChartLegend=!0,this.lineChartType="line",this.tickOptions={stepSize:20,max:100,min:0},this.lineChartOptions={tooltips:{enabled:!1,yPadding:10,xPadding:20,yAlign:"top",bodyFontFamily:'"Lato", sans-serif',custom:L=>function u(y,x,L){let B=document.getElementById("chartjs-tooltip");if(B||(B=document.createElement("div"),B.id="chartjs-tooltip",B.innerHTML='<div class="tooltip-root"></div>',document.body.appendChild(B)),0===y.opacity)return B.style.opacity="0",void setTimeout(()=>{B.style.zIndex="-1"},300);if(B.classList.remove("above","below","no-transform"),B.classList.add(y.yAlign?y.yAlign:"no-transform"),y.body){const A=y.title||[],$=y.body.map(function Z(A){return A.lines});let W='<div class="tooltip-answers">';$.forEach((k,ct)=>{const at=y.labelColors[ct];let et="background:"+at.backgroundColor;et+="; border-color:"+at.borderColor,et+="; border-width: 2px";const ot=k[0].match(/\d+/g).map(Number);W+=`<span class="main-value">${L?ot+L:ot+"% correct answers"}</span></div>`}),W+='<div class="main-title" style="width: 100%">',A.forEach(k=>{W+=`<span class="title-value" style="color: rgba(28, 91, 169, 0.4); text-align: center; width: 100%; display: block">\n ${k}\n </span>`}),W+="</div>",B.querySelector(".tooltip-root").innerHTML=W}let N,K,b=x.nativeElement.getBoundingClientRect();"top"===y.yAlign&&(N=b.top+window.scrollY+y.caretY-B.offsetHeight-20+"px",K=b.left+y.caretX-B.offsetWidth/2+"px"),B.style.opacity="1",B.style.transition="opacity 0.3s ease-in-out",B.style.position="absolute",B.style.zIndex="30",B.style.backgroundColor="#ffffff",B.style.borderRadius="8px",B.style.boxShadow="0 4px 10px 0 rgba(28, 91, 169, 0.4)",B.style.left=K,B.style.top=N,B.style.fontFamily=y._bodyFontFamily,B.style.fontSize=y.bodyFontSize+"px",B.style.fontStyle=y._bodyFontStyle,B.style.padding=y.yPadding+"px "+y.xPadding+"px"}(L,this.canvas,this.options.replacerText||null)}},this.filterActive=!0,this.options={sideTextSize:null,sideTextWeight:null,replacerText:null},this.displayWithoutParsing=!1,this.filterChange=new t.vpe}set lineChartData(L){const B=[];function Z(b){const N=[];return b.map(K=>{const A=K.correct/K.all*100;isNaN(A)?N.push("0.00"):N.push(A.toFixed(2))}),N}this.displayWithoutParsing?this.lineChartData_=L.chartData:(L.chartData.map((b,N)=>{1===(0,i.Z)(new Date,new Date(L.chartFilterDate))?B.push({data:Z(this.parseDates(b,!0,L.chartFilterDate)),label:this.defaultLabels[N]}):B.push({data:Z(this.parseDates(b,!1,L.chartFilterDate)),label:this.defaultLabels[N]})}),this.lineChartData_=B,this.lineChartLabels=1===(0,i.Z)(new Date,new Date(L.chartFilterDate))?this.parseDates(L.chartData[0],!0,L.chartFilterDate):this.parseDates(L.chartData[0],!1,L.chartFilterDate))}set lineChartLabels(L){this._lineChartLabels.length=0,L.map(B=>this._lineChartLabels.push(B.time||B))}get lineChartLabels(){return this._lineChartLabels}chartClicked(L){}chartHovered(L){}get lineChartData(){return[Object.assign(Object.assign({},this.lineChartColors[0]),this.lineChartData_[0]),Object.assign(Object.assign({},this.lineChartColors[1]),this.lineChartData_[1])]}parseDates(L,B,Z){const b=W=>({time:W,all:0,correct:0}),N=[],K=B?"dd MMMM yyyy":"MMMM yyyy",A=B?new Date:new Date(Z);A.setMonth(B?A.getMonth()-1:A.getMonth()+1);let $=0;for(const W=A;W<=new Date;B?A.setDate(A.getDate()+1):A.setMonth(A.getMonth()+1))if(L[$]){const _t=new Date(L[$].time);(0,l.Z)(_t,K)===(0,l.Z)(W,K)?(N.push({time:(0,l.Z)(new Date(L[$].time),K),all:L[$].all,correct:L[$].correct}),$++):N.push(b((0,l.Z)(W,K)))}else N.push(b((0,l.Z)(W,K)));return N}setFilters(L){this.filterChange.emit(L.value),this.setFilter=L.value}ngOnInit(){this.filterChange.emit(this.setFilter),this.lineChartOptions=Object.assign(Object.assign({},this.lineChartOptions),(y=>({responsive:!0,maintainAspectRatio:!1,layout:{padding:{left:20}},legend:{position:"bottom",labels:{boxWidth:30,fontFamily:"'Lato', sans-serif",fontColor:"#1c5ba9",usePointStyle:!0}},scales:{xAxes:[{gridLines:{display:!1},ticks:{display:!1}}],yAxes:[{gridLines:{display:!1},position:"right",ticks:Object.assign(Object.assign({},this.tickOptions),{fontSize:12,fontStyle:800,fontColor:"#215ca8",fontFamily:"'Lato', sans-serif"})}]}}))()),this.renderedOptions$.next(this.lineChartOptions);let L=this.canvas.nativeElement.getContext("2d").createLinearGradient(0,0,0,200);L.addColorStop(0,"rgba(67, 179, 247, 0.6)"),L.addColorStop(.6,"rgba(255,255,255, 0.4)"),L.addColorStop(1,"#ffffff"),this.lineChartColors[0].backgroundColor=L}}return y.\u0275fac=function(L){return new(L||y)},y.\u0275cmp=t.Xpm({type:y,selectors:[["qupi-linear-chart-responsive"]],viewQuery:function(L,B){if(1&L&&t.Gf(C,7),2&L){let Z;t.iGM(Z=t.CRH())&&(B.canvas=Z.first)}},inputs:{tickOptions:"tickOptions",filterActive:"filterActive",sideText:"sideText",options:"options",title:"title",displayWithoutParsing:"displayWithoutParsing",lineChartData:"lineChartData",lineChartL
1abels:"lineChartLabels"},outputs:{filterChange:"filterChange"},decls:9,vars:7,consts:[[1,"linear-chart-selectors"],["fontWeight","bold",4,"ngIf"],[1,"score-selectors"],["class","score-explanation",3,"size","fontWeight",4,"ngIf"],["class","qupi-chart-select-wrapper",3,"width",4,"ngIf"],[1,"linear-chart-wrapper"],[2,"display","block"],["baseChart","",3,"options","datasets","labels","type","chartHover","chartClick"],["lineBaseChart",""],["fontWeight","bold"],[1,"score-explanation",3,"size","fontWeight"],[3,"innerHTML"],[1,"qupi-chart-select-wrapper"],[1,"mat-overwrite-arrow"],[3,"value","selectionChange"],[3,"value"]],template:function(L,B){1&L&&(t.TgZ(0,"div",0),t.YNc(1,P,2,1,"qupi-heading",1),t.TgZ(2,"qupi-group",2),t.YNc(3,w,2,3,"qupi-content",3),t.YNc(4,O,13,7,"div",4),t.qZA()(),t.TgZ(5,"div",5)(6,"div",6)(7,"canvas",7,8),t.NdJ("chartHover",function(b){return B.chartHovered(b)})("chartClick",function(b){return B.chartClicked(b)}),t.qZA()()()),2&L&&(t.xp6(1),t.Q6J("ngIf",B.title),t.xp6(2),t.Q6J("ngIf",B.sideText),t.xp6(1),t.Q6J("ngIf",B.filterActive),t.xp6(3),t.Q6J("options",B.lineChartStaticOptions)("datasets",B.lineChartData)("labels",B.lineChartLabels)("type",B.lineChartType))},dependencies:[m.gD,s.ey,r.Hw,g.O5,e.jh,c.B,a.S,h.m],styles:["[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] .linear-chart-wrapper[_ngcontent-%COMP%]{position:relative;float:left;width:100%;max-width:100%}[_nghost-%COMP%] .linear-chart-wrapper[_ngcontent-%COMP%] canvas[_ngcontent-%COMP%]{height:200px;max-width:100%;z-index:1;position:relative}[_nghost-%COMP%] .linear-chart[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .linear-chart[_ngcontent-%COMP%] qupi-card[_ngcontent-%COMP%]{height:100%;flex-basis:100%}[_nghost-%COMP%] .linear-chart-wrapper[_ngcontent-%COMP%]{width:100%;position:relative;max-width:100%}[_nghost-%COMP%] .line-chart-wrapper .line-chart text{fill:#215ca8;font-weight:800;font-size:12px!important}[_nghost-%COMP%] .score-selectors{justify-content:space-between}[_nghost-%COMP%] .linear-chart-selectors{flex-basis:100%}[_nghost-%COMP%] .linear-chart-selectors qupi-heading{margin-bottom:1.25em;display:flex}[_nghost-%COMP%] .linear-chart-selectors .score-explanation{display:flex;width:50%}[_nghost-%COMP%] .qupi-chart-select-wrapper{display:flex;justify-content:flex-end;width:50%}[_nghost-%COMP%] .qupi-chart-select-wrapper mat-select{width:auto;display:flex}[_nghost-%COMP%] .qupi-chart-select-wrapper mat-select .mat-select-value{color:#215ca8;font-size:.75em;font-weight:700;display:inline}[_nghost-%COMP%] .qupi-chart-select-wrapper mat-select .mat-select-arrow-wrapper{display:none}"],changeDetection:0}),y})()},88849:(Q,f,o)=>{"use strict";o.d(f,{w:()=>e});var t=o(5e3),n=o(20773),u=o(69808);const i=["contentContainer"];function l(c,a){1&c&&t.GkF(0)}function p(c,a){1&c&&t.Hsn(0)}function m(c,a){1&c&&t.GkF(0)}function s(c,a){if(1&c&&t._UZ(0,"mat-spinner",7),2&c){const h=t.oxw(2);t.Akn("height: "+h.height+"px"),t.Q6J("diameter",h.diameter)("strokeWidth",h.stroke)}}function r(c,a){if(1&c&&(t.TgZ(0,"div",3,4),t.YNc(2,m,1,0,"ng-container",5),t.qZA(),t.YNc(3,s,1,4,"mat-spinner",6)),2&c){const h=t.oxw(),C=t.MAs(2);t.xp6(2),t.Q6J("ngTemplateOutlet",C),t.xp6(1),t.Q6J("ngIf",h.height)}}const g=["*"];let e=(()=>{class c{constructor(h){this.elementRef=h}get pending(){return this._pending}set pending(h){this._pending=h,this.display||(this.display=this.elementRef.nativeElement.style.display);const C=this.elementRef.nativeElement.style;h?(C.display="flex",C.justifyContent="center",C.alignItems="center",C.width="100%"):C.display="contents"}set contentContainer(h){if(!h)return;const C=h.nativeElement;setTimeout(()=>{this.height=C.offsetHeight,this.diameter=C.offsetHeight,this.diameter>200&&(this.diameter=150,this.stroke=15)})}ngOnInit(){}}return c.\u0275fac=function(h){return new(h||c)(t.Y36(t.SBq))},c.\u0275cmp=t.Xpm({type:c,selectors:[["qupi-pending-wrapper"]],viewQuery:function(h,C){if(1&h&&t.Gf(i,5),2&h){let P;t.iGM(P=t.CRH())&&(C.contentContainer=P.first)}},inputs:{pending:"pending"}
1,ngContentSelectors:g,decls:5,vars:3,consts:[[4,"ngIf","ngIfThen","ngIfElse"],["content",""],["loader",""],[1,"content-container"],["contentContainer",""],[4,"ngTemplateOutlet"],["color","dodger-blue",3,"diameter","strokeWidth","style",4,"ngIf"],["color","dodger-blue",3,"diameter","strokeWidth"]],template:function(h,C){if(1&h&&(t.F$t(),t.YNc(0,l,1,0,"ng-container",0),t.YNc(1,p,1,0,"ng-template",null,1,t.W1O),t.YNc(3,r,4,2,"ng-template",null,2,t.W1O)),2&h){const P=t.MAs(2),w=t.MAs(4);t.Q6J("ngIf",C.pending)("ngIfThen",w)("ngIfElse",P)}},dependencies:[n.Ou,u.O5,u.tP],styles:["[_nghost-%COMP%]{display:contents}.content-container[_ngcontent-%COMP%]{visibility:hidden;position:absolute;z-index:-10}"]}),c})()},59131:(Q,f,o)=>{"use strict";o.d(f,{J:()=>s});var t=o(5e3),n=o(69808),u=o(80483),i=o(52934);const l=["pieBaseChart"];function p(r,g){if(1&r&&(t.ynx(0),t._uU(1),t.TgZ(2,"span",8),t._uU(3),t.qZA(),t.BQk()),2&r){const e=t.oxw();t.xp6(1),t.hij(" ",e.displayData.count," "),t.xp6(2),t.hij("of ",e.displayData.of,"")}}function m(r,g){if(1&r&&t._uU(0),2&r){const e=t.oxw();t.hij(" ",e.displayData.count," ")}}let s=(()=>{class r{constructor(){this.displayAll=!0,this.displayData={count:4124,of:21442},this.doughnutChartData=[4124,21442],this.doughnutChartDatasets=[{data:[4124,21442],cutout:65,backgroundColor:["#43b3f7","#dae4f5"],hoverBackgroundColor:["#43b3f7","#a1bee3"]}],this.doughnutChartOptions={responsive:!0,maintainAspectRatio:!1,aspectRatio:2,cutoutPercentage:10,elements:{arc:{borderWidth:0}},plugins:{legend:{display:!1},tooltip:{backgroundColor:"rgba(255,255,255)",titleFontFamily:"'Lato', sans-serif",bodyFontFamily:"'Lato', sans-serif",titleFontColor:"#1c5ba9",xPadding:20,yPadding:10,callbacks:{labelTextColor:function(e,c){return"#1c5ba9"}}}}},this.doughnutChartLabels=["completed","not completed"],this.doughnutChartStaticData=[4124,21442],this.doughnutChartType="doughnut",this.doughnutChartColors=[{backgroundColor:["#43b3f7","#dae4f5"],borderColor:["#43b3f7","#dae4f5"]}]}set chartData(e){this.doughnutChartData=[e.count,e.of-e.count],this.displayData=Object.assign({},e)}chartClicked(e){}chartHovered(e){}ngOnInit(){}}return r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=t.Xpm({type:r,selectors:[["qupi-pie-chart"]],viewQuery:function(e,c){if(1&e&&t.Gf(l,7),2&e){let a;t.iGM(a=t.CRH())&&(c.canvas=a.first)}},inputs:{displayAll:"displayAll",doughnutChartLabels:"doughnutChartLabels",chartData:"chartData"},decls:9,vars:8,consts:[[1,"pie-chart"],[1,"pie-chart-wrapper"],["baseChart","",3,"labels","datasets","options","type","chartHover","chartClick"],["pieBaseChart",""],[1,"qupi-heading-wrapper"],["justifyContent","center",1,"pie-chart-legend",3,"size","fontWeight"],[4,"ngIf","ngIfElse"],["oneData",""],[1,"pie-chart-outof"]],template:function(e,c){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"canvas",2,3),t.NdJ("chartHover",function(h){return c.chartHovered(h)})("chartClick",function(h){return c.chartClicked(h)}),t.qZA(),t.TgZ(4,"div",4)(5,"qupi-heading",5),t.YNc(6,p,4,2,"ng-container",6),t.YNc(7,m,1,1,"ng-template",null,7,t.W1O),t.qZA()()()()),2&e){const a=t.MAs(8);t.xp6(2),t.Q6J("labels",c.doughnutChartLabels)("datasets",c.doughnutChartDatasets)("options",c.doughnutChartOptions)("type","doughnut"),t.xp6(3),t.Q6J("size","xlg")("fontWeight","bold"),t.xp6(1),t.Q6J("ngIf",c.displayAll)("ngIfElse",a)}},dependencies:[n.O5,u.jh,i.B],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%] .pie-chart-legend{float:left;display:block;margin:0 auto;width:100%;text-align:center}[_nghost-%COMP%] .pie-chart-legend .qupi-heading{text-align:center;display:block;flex-direction:column}[_nghost-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end}[_nghost-%COMP%] .pie-chart[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-end}[_nghost-%COMP%] .pie-chart-title[_ngcontent-%COMP%]{width:138px}[_nghost-%COMP%] .pie-chart-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;margin-left:-40px;margin-right:-40px}[_nghost-%COMP%] .pie-chart-wrapper[_ngcontent-%COMP%] .pie-chart-outof[_ngcontent-%COMP%]{font-weight:400;font-size:16px}[_nghost-%COMP%] .qupi-heading-wrapper[_ngcontent-%COMP%]{position:absolute;width:100%}[_nghost-%COMP%] .qupi-heading-wrapper[_ngcontent-%COMP%] .pie-chart-legend[_ngcontent-%COMP%]{float:left;display:block;margin:0 auto;width:100%;text-align:center}[_nghost-%COMP%] .qupi-heading-wrapper[_ngcontent-%COMP%] .pie-chart-legend[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-align:center;display:block}"],changeDetection:0}),r})()},48969:(Q,f,o)=>{"use strict";o.d(f,{w:()=>l});var t=o(24511),n=o(5e3),u=o(82349),i=o(60639);let l=(()=>{class p{constructor(s,r){this.dialog=s,this.confirmationService=r,this.sub=[]}ngOnDestroy(){this.sub.forEach(s=>s.unsubscribe())}parseData(s,r){return s.map(g=>Object.assign(Object.assign({},g),this.setActionsFromHeaders(r)))}setActionsFromHeaders(s){let r=Object.assign({},s.filter(g=>"action"===g.type).map(g=>({[g.val]:{icon:g.icon,matIcon:g.matIcon,type:g.type}})));return r=Object.values(r).reduce((g,e)=>Object.assign(Object.assign({},g),e),{}),r}handleAction(s,r){switch(s.type){case"add":return r.onAdd();case"print":return r.onPrint(s.target);case"edit":return r.onEdit(s.target);case"remove":this.confirmationService.confirm(t.a.DELETE_THIS).subscribe(g=>{if(g)return r.onRemove(s.target)});default:i.log("Invalid choice")}}}
1return p.\u0275fac=function(s){return new(s||p)(n.LFG(u.uw),n.LFG(t.Y))},p.\u0275prov=n.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"}),p})()},40711:(Q,f,o)=>{"use strict";o.d(f,{j:()=>X});var t=o(48969),n=o(2638),u=o(4834),i=o(14623),l=o(32075),p=o(86087),m=o(67322),s=o(77531),r=o(79814),g=o(74107),e=o(47423),c=o(25245),a=o(82349),h=o(77446),C=o(81125),P=o(92181),w=o(20773),O=o(84847),M=o(92081),y=o(53251),x=o(87238),L=o(32368),B=o(33583),Z=o(69808),b=o(93075),N=o(42155),K=o(13270),A=o(162),$=o(80483),W=o(44619),_t=o(3290),k=o(43954),ct=o(92340),at=o(5e3);const et=[k.N6,y.Nh,n.SJ,u.t,i.ie,l.p0,p.TU,O.JX,m.lN,s.c,g.LD,r.Fk,e.ot,c.Ps,a.Is,x.AV,h.p9,C.To,w.Cq,P.Tx,M.T5,B.eL,L.rP],ot=[{alias:"xs-mobile",mediaQuery:"screen and (min-width: 426px) and (max-width: 769px)"},{alias:"xs",mediaQuery:"screen and (max-width: 768px)"},{alias:"sm",mediaQuery:"screen and (min-width: 769px) and (max-width: 1200px)"},{alias:"md",mediaQuery:"screen and (min-width: 1201px) and (max-width: 1440px)"},{alias:"lg",mediaQuery:"screen and (min-width: 1441px)"},{alias:"lt-sm",mediaQuery:"screen and (max-width: 768px)"},{alias:"lt-md",mediaQuery:"screen and (max-width: 1200px)"},{alias:"lt-lg",mediaQuery:"screen and (max-width: 1440px)"},{alias:"lt-mb",mediaQuery:"screen and (max-width: 426px)"},{alias:"gt-xs",mediaQuery:"screen and (min-width: 769px)"},{alias:"gt-sm",mediaQuery:"screen and (min-width: 1201px)"},{alias:"gt-md",mediaQuery:"screen and (min-width: 1401px)"}];let X=(()=>{class F{}return F.\u0275fac=function(D){return new(D||F)},F.\u0275mod=at.oAB({type:F}),F.\u0275inj=at.cJS({providers:[t.w],imports:[et,W.vi.forRoot({baseUrl:ct.N.URL}),{ngModule:N.o9,providers:[{provide:K.WU,useValue:{addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0}},{provide:K.Bs,useValue:ot}]},b.UX,Z.ez,A.Ob,_t.a,_t.lQ,$.vQ,_t.a,_t.lQ,N.o9,k.N6,y.Nh,n.SJ,u.t,i.ie,l.p0,p.TU,O.JX,m.lN,s.c,g.LD,r.Fk,e.ot,c.Ps,a.Is,x.AV,h.p9,C.To,w.Cq,P.Tx,M.T5,B.eL,L.rP]}),F})()},15585:(Q,f,o)=>{"use strict";o.d(f,{Px:()=>i,l4:()=>n,uZ:()=>u});var t=o(83453);const n=l=>Object.entries(l).reduce((p,[m,s])=>Object.assign(Object.assign({},p),{[s]:m}),{});function u(l){return{daysLeft:(0,t.Z)(new Date(null==l?void 0:l.ends),new Date)}}const i=(l,p)=>JSON.stringify(l)==JSON.stringify(p)},92340:(Q,f,o)=>{"use strict";o.d(f,{N:()=>t});const t={production:!0,hmr:!1,reCaptchaKey:"6Lc4Bl0UAAAAAFOlbi9OISlmUIUpwUGM_z0srYCo",api:{baseURL:"",wsURL:""},URL:"https://app.qupi.com",wordpressURL:"https://qupi.com",stripePublicKey:"pk_live_51HcqDSCapdxPgKyzWLaEBqeGNDMuup4TEskvLV10rKwuIGwfNOKorUHhQtgrCyz9wFPZqi9ofY3BkEq40M7lWGNZ0092d0LOkb",facebookAppId:"643574349417085",freshdeskUrl:"https://freshdesk.com",firebase:{apiKey:"AIzaSyBKhf1SbTZCmFKeJYR6_Dz6dhLvEkPEiLw",authDomain:"qupi-2.firebaseapp.com",databaseURL:"https://qupi-2.firebaseio.com",projectId:"qupi-2",storageBucket:"qupi-2.appspot.com",messagingSenderId:"904789553702"}}},56463:(Q,f,o)=>{"use strict";var t=o(22313),n=o(5e3),u=o(70655),i=o(96034),l=o(39841),p=o(39300),m=o(54004),s=o(50590),r=o(95113),g=o(65620),e=o(18534),c=o(21816),a=o(21622),h=o(92340),C=o(15585),P=o(69666);function w(_){return function(S,d){Object.defineProperty(S,d,{get:function(){return localStorage.getItem(`[${_}] ${d}`)},set:function(q){localStorage.setItem(`[${_}] ${d}`,q)}})}}var O=o(35882),M=o(80654),y=o(54317),x=o(82349),L=o(11887),B=o(21346),Z=o(13758),b=o(81198),N=o(72591),K=o(60870),A=o(35357);class ${constructor(S,d,q,G,ft,bt,yt,te,Rt,Et){this.mqm=S,this.store=d,this.dialog=q,this.childRoute=G,this.fb=ft,this.firebaseMessagingService=te,this.toastService=Rt,this.deviceService=Et,this.breakpoints$=(0,l.a)([this.mqm.observe(["(max-width: 426px"]),this.mqm.observe(["(max-width: 768px)"]),this.mqm.observe(["(min-width: 769px) and (max-width: 1199px)"]),this.mqm.observe(["(min-width: 1200px) and (max-width: 1439px)"]),this.mqm.observe(["(min-width: 1440px)"]),this.mqm.observe([r.u3.HandsetLandscape,r.u3.HandsetPortrait]),this.mqm.observe(r.u3.Tablet),this.mqm.observe([r.u3.WebLandscape,r.u3.WebPortrait]),this.mqm.observe("(orientation: portrait)"),this.mqm.observe("(orientation: landscape)")]),this.sub=[],this.isAuthenticated$=this.store.pipe((0,g.Ys)(se=>se.auth),(0,p.h)(se=>se.user.logged)),this.initParams={appId:h.N.facebookAppId,xfbml:!0,version:"v2.8"},yt.startTracking()}ngOnInit(){this.store.dispatch(new e.K5({initial:!0})),this.fb.init(this.initParams),this.createBreakPointObserver(),this.showPricingDialog(),this.showDaysLeftDialog(),this.requestFMessagingPermission(),this.showMobileDialog()}createBreakPointObserver(){const S=this.breakpoints$.subscribe(([d,q,G,ft,bt,yt,te,Rt,Et,se])=>{this.store.dispatch(new i.Sv({mobile:d.matches,xSmall:q.matches,small:G.matches,medium:ft.matches,large:bt.matches,isHandset:yt.matches,isTablet:te.matches,isWeb:Rt.matches,isPortrait:Et.matches,isLandscape:se.matches}))});this.sub.push(S)}showPricingDialog(){const S=(0,l.a)([this.isAuthenticated$.pipe((0,p.h)(d=>d.jwt.token),(0,m.U)(d=>(0,c.Z)(d.jwt.token)),(0,p.h)(d=>d.disciplines&&d.bodySystems&&!d.disciplines.length&&!d.bodySystems.length),(0,s.P)()),this.childRoute.getQueryParams().pipe((0,s.P)())]).subscribe(([d,q])=>{d.hasAdminInterface||q.showPricing&&"false"===q.showPricing||this.dialog.open(a.O,{panelClass:"qupi-pricing-dialog",backdropClass:"qupi-dialog-blur"})});this.sub.push(S)}showDaysLeftDialog(){const S=this.store.pipe((0,g.Ys)(d=>d.user),(0,m.U)(d=>d.subscriptions),(0,p.h)(d=>1===d.length),(0,p.h)(d=>(0,C.uZ)(d[0]).daysLeft<=7),(0,p.h)(d=>!this.expiryWarning||(0,O.Z)(new Date(this.expiryWarning),new Date)>=1)).subscribe(d=>{const q=(0,C.uZ)(d[0]).daysLeft;return this.dialog.open(P.$,{panelClass:"qupi-days-left-dialog",backdropClass:"qupi-dialog-blur",data:{daysLeft:q}}).afterClosed().subscribe(()=>{this.expiryWarning=(new Date).toISOString()})});this.sub.push(S)}requestFMessagingPermission(){const S=this.notificationRequestDate&&(0,O.Z)(new Date(this.notificationRequestDate),new Date),d="denied"!==Notification.permission&&!S;this.firebaseMessagingService.havePermission().subscribe(q=>{!q&&d&&"safari"!==this.deviceService.browser&&(this.firebaseMessagingService.requestDialogRef=this.toastService.askForMessaging(),this.notificationRequestDate=(new Date).toISOString())})}showMobileDialog(){this.sub.push(this.isAuthenticated$.subscribe(S=>{(this.deviceService.isMobile()||this.deviceService.isTablet())&&(!this.mobileDeviceDialog||(0,M.Z)(new Date,new Date(this.mobileDeviceDialog))>=1)&&this.dialog.open(y.H).afterClosed().toPromise().then(()=>{this.mobileDeviceDialog=(new Date).toISOString()})}))}ngOnDestroy(){this.sub.forEach(S=>S.unsubscribe())}}$.\u0275fac=function(S){return new(S||$)(n.Y36(r.Yg),n.Y36(g.yh),n.Y36(x.uw),n.Y36(L.U),n.Y36(B.LG),n.Y36(Z.Ti),n.Y36(Z._M),n.Y36(b.M),n.Y36(N.k),n.Y36(K.x0))},$.\u0275cmp=n.Xpm({type:$,selectors:[["qupi-root"]],decls:1,vars:0,template:function(S,d){1&S&&n._UZ(0,"router-outlet")},dependencies:[A.lC]}),(0,u.gn)([w("expiryWarning")],$.prototype,"expiryWarning",void 0),(0,u.gn)([w("Notifications")],$.prototype,"notificationRequestDate",void 0),(0,u.gn)([w("mobileDialog")],$.prototype,"mobileDeviceDialog",void 0);var W=o(96875),_t=o(41212),k=o(3070),ct=o(32182),at=o(11632);const et={errors:null,data:null},ot={attempted:{overall:et,chartPie:et,chartLine:et,chartLinear:et},progress:{overall:Object.assign(Object.assign({},et),{selectedDate:null}),chartPie:et,chartLine:et,chartLinear:Object.assign(Object.assign({},et),{selectedDate:null})},firstTry:{overall:et,chartPie:et,chartLine:et,chartLinear:et},average:{attempted:et,progress:Object.assign(Object.assign({},et),{selectedDate:null}),selected:Object.assign(Object.assign({},et),{selectedDate:null})},shares:et},F={app:k.mp,auth:W.dX,dictionaries:_t.FT,router:ct.mg,user:at.M3,statistics:function X(_=ot,S){switch(S.type){case"[STATS] GET_ATTEMPTED_DATA_AVERAGE":return Object.assign(Object.assign({},_),{attempted:Object.assign(Object.assign({},_.attempted),{overall:Object.assign({},_.attempted.overall)})});case"[STATS] GET_ATTEMPTED_DATA_AVERAGE_SUCCESS":return Object.assign(Object.assign({},_),{attempted:Object.assign(Object.assign({},_.attempted),{overall:Object.assign(Object.assign({},_.attempted.overall),S.payload)})});case"[STATS] GET_FIRST_TRY_DATA_AVERAGE":return Object.assign(Object.assign({},_),{firstTry:Object.assign(Object.assign({},_.firstTry),{overall:Object.assign({},_.firstTry.overall)})});case"[STATS] GET_FIRST_TRY_DATA_AVERAGE_SUCCESS":return Object.assign(Object.assign({},_),{firstTry:Object.assign(Object.assign({},_.firstTry),{overall:Object.assign(Object.assign({},_.firstTry.overall),S.payload)})});case"[STATS] GET_PROGRESS_DATA_AVERAGE":return Object.assign(Object.assign({},_),{progress:Object.assign(Object.assign({},_.progress),{overall:Object.assign({},_.progress.overall)})});case"[STATS] GET_PROGRESS_DATA_AVERAGE_SUCCESS":return Object.assign(Object.assign({},_),{progress:Object.assign(Object.assign({},_.progress),{overall:Object.assign(Object.assign({},_.progress.overall),S.payload)})});case"[STATS] GET_PROGRESS_DATA_AVERAGE_OVERALL":return Object.assign(Object.assign({},_),{average:Object.assign(Object.assign({},_.average),{progress:Object.assign({},_.average.progress)})});case"[STATS] GET_PROGRESS_DATA_AVERAGE_OVERALL_SUCCESS":return Object.assign(Object.assign({},_),{average:Object.assign(Object.assign({},_.average),{progress:Object.assign(Object.assign({},_.average.progress),S.payload)})});case"[STATS] GET_ATTEMPTED_DATA_SELECTED":return Object.assign(Object.assign({},_),{attempted:Object.assign(Object.assign({},_.attempted),{[S.payload.field]:Object.assign({},_.attempted[S.payload.field])})});case"[STATS] GET_ATTEMPTED_DATA_SELECTED_SUCCESS":return Object.assign(Object.assign({},_),{attempted:Object.assign(Object.assign({},_.attempted),{[S.payload.field]:Object.assign(Object.assign({},_.attempted[S.payload.field]),S.payload)})});case"[STATS] GET_FIRST_TRY_DATA_SELECTED":return Object.assign(Object.assign({},_),{firstTry:Object.assign(Object.assign({},_.firstTry),{[S.payload.field]:Object.assign({},_.firstTry[S.payload.field])})});case"[STATS] GET_FIRST_TRY_DATA_SELECTED_SUCCESS":return Object.assign(Object.assign({},_),{firstTry:Object.assign(Object.assign({},_.firstTry),{[S.payload.field]:Object.assign(Object.assign({},_.firstTry[S.payload.field]),{data:S.payload.data,errors:S.payload.error||null})})});case"[STATS] GET_PROGRESS_DATA_SELECTED":return Object.assign(Object.assign({},_),{progress:Object.assign(Object.assign({},_.progress),{[S.payload.field]:Object.assign({},_.progress[S.payload.field])})});case"[STATS] GET_PROGRESS_DATA_SELECTED_SUCCESS":return Object.assign(Object.assign({},_),{progress:Object.assign(Object.assign({},_.progress),{[S.payload.field]:Object.assign(Object.assign({},_.progress[S.payload.field]),{data:S.payload.data,selectedDate:S.payload.selectedDate,errors:null})})});case"[STATS] GET_AVERAGE_DATA_SELECTED":return Object.assign(Object.assign({},_),{average:Object.assign(Object.assign({},_.average),{selected:Object.assign({},_.average.selected)})});case"[STATS] GET_AVERAGE_DATA_SELECTED_SUCCESS":return Object.assign(Object.assign({},_),{average:Object.assign(Object.assign({},_.average),{selected:Object.assign(Object.assign({},_.average.selected),{data:S.payload.data,selectedDate:S.payload.selectedDate,errors:null})})});case"[STATS] GET_USER_SHARES_SUCCESS":return Object.assign(Object.assign({},_),{shares:{data:Object.values(S.payload.data),errors:null}});case"[STATS] GET_USER_SHARES_FAIL":return Object.assign(Object.assign({},_),{shares:{data:null,errors:S.payload}});default:return _}}};var z=o(99565),D=o(36642),Dt=o(63900),Ot=o(70262),Ct=o(39646),Mt=o(95577),It=o(11365),Bt=o(99316),zt=o(87341),$t=o(88918);let ee=(()=>{class _{constructor(d,q,G,ft,bt,yt,te){this.actions$=d,this.authService=q,this.router=G,this.store=ft,this.topnavPortalService=bt,this.injector=yt,this.angulartics2=te,this.loginBasic$=(0,D.GW)(()=>this.actions$.pipe((0,D.l4)("[AUTH] LoginBasic"),(0,Dt.w)(Rt=>this.authService.login(Rt.payload).pipe((0,m.U)(Et=>(this.store.dispatch(new i.xl({topnavLogo:!1,sidenavOpened:!0,sidenavDisabled:!1})),localStorage.setItem("qupi_bearer_token",Et.jwt),this.router.navigate(["/dashboard"]),this.angulartics2.eventTrack.next({action:"Successful Login",properties:{category:"Login",label:"Login"}}),new e.fq(Et))),(0,Ot.K)(Et=>(0,Ct.of)(new e.KI(Et.error))))))),this.loginRefresh$=(0,D.GW)(()=>this.actions$.pipe((0,D.l4)("[AUTH] LoginBasicRefresh"),(0,Mt.z)(Rt=>this.authService.loginRefresh(Rt.payload).pipe((0,It.M)(this.store.pipe((0,g.Ys)(W.dn))),(0,Mt.z)(([Et,se])=>(this.store.dispatch(new i.xl({topnavLogo:!1,sidenavOpened:!0,sidenavDisabled:!1})),se||this.topnavPortalService.createMultipleComponents(Bt.G.afterLogin,this.injector),localStorage.setItem("qupi_bearer_token",Et.jwt),[new e.L(Et),new e.yp])),(0,Ot.K)(()=>(0,Ct.of)(new e.Z9)))))),this.softLogout$=(0,D.GW)(()=>this.actions$.pipe((0,D.l4)("[AUTH] SoftLogout"),(0,m.U)(Rt=>{this.topnavPortalService.createMultipleComponents([void 0,void 0,void 0],this.injector),window.location.href=h.N.wordpressURL})),{dispatch:!1}),this.logout$=(0,D.GW)(()=>this.actions$.pipe((0,D.l4)("[AUTH] Logout"),(0,Mt.z)(Rt=>this.authService.logout().pipe((0,m.U)(Et=>(this.store.dispatch({type:"[AUTH] ClearState"}),this.topnavPortalService.createMultipleComponents([void 0,void 0,void 0],this.injector),localStorage.removeItem("qupi_bearer_token"),window.location.href=h.N.URL+"/login",
1new e.ys("Success"))),(0,Ot.K)(Et=>(0,Ct.of)(new e.Hc(Et))))))),this.restorePassword$=(0,D.GW)(()=>this.actions$.pipe((0,D.l4)("[AUTH] RestorePassword"),(0,Mt.z)(Rt=>this.authService.restorePassword(Rt.payload).pipe((0,m.U)(Et=>new e.Xd),(0,Ot.K)(Et=>(0,Ct.of)(new e.ik({error:Et}))))))),this.restorePasswordEmail$=(0,D.GW)(()=>this.actions$.pipe((0,D.l4)("[AUTH] RestorePasswordEmail"),(0,Mt.z)(Rt=>this.authService.restorePasswordEmail(Rt.payload).pipe((0,m.U)(Et=>new e.Xd),(0,Ot.K)(Et=>(0,Ct.of)(new e.ik({error:Et})))))))}}return _.\u0275fac=function(d){return new(d||_)(n.LFG(D.eX),n.LFG(zt.e),n.LFG(A.F0),n.LFG(g.yh),n.LFG($t.v),n.LFG(n.zs3),n.LFG(Z.b))},_.\u0275prov=n.Yz7({token:_,factory:_.\u0275fac}),_})();var V=o(93075),Gt=o(81798),Tt=o(69808),qt=o(60501),Nt=o(57574),Lt=o(41777),Ht=o(85960);function Vt(_,S){1&_&&(n.TgZ(0,"span",4),n._uU(1,"*"),n.qZA())}let Xt=(()=>{class _{constructor(d){this.cdr=d}get control(){return this._control}set control(d){if(d){const q=d.markAsTouched;d.markAsTouched=(...ft)=>{q.bind(d)(...ft),this.cdr&&this.cdr.markForCheck()};const G=d.setErrors;d.setErrors=(...ft)=>{G.bind(d)(...ft),this.cdr&&this.cdr.markForCheck()},this.checkValidators(d),this._control=d}}ngOnDestroy(){this.cdr.detach(),this.statusSubscription&&this.statusSubscription.unsubscribe()}checkValidators(d){this.isRequired=(0,Nt.o)(d,Nt.W.required)}}return _.\u0275fac=function(d){return new(d||_)(n.Y36(n.sBO))},_.\u0275cmp=n.Xpm({type:_,selectors:[["qupi-backend-error"]],inputs:{label:"label",errorMessage:"errorMessage",isRequired:"isRequired",control:"control"},decls:6,vars:5,consts:[[1,"label","label__error"],["class","label--required",4,"ngIf"],[1,"label--error"],["src","/assets/images/svg/dropdown-circle.svg"],[1,"label--required"]],template:function(d,q){1&d&&(n.TgZ(0,"label",0),n.YNc(1,Vt,2,0,"span",1),n._uU(2),n.TgZ(3,"span",2),n._UZ(4,"img",3),n._uU(5),n.qZA()()),2&d&&(n.xp6(1),n.Q6J("ngIf",q.isRequired),n.xp6(1),n.hij(" ",q.label," "),n.xp6(1),n.Q6J("@tada",void 0)("@fadeOut",void 0),n.xp6(2),n.hij(" ",q.errorMessage," "))},dependencies:[Tt.O5],styles:[".label[_ngcontent-%COMP%]{color:#215ca8;font-size:12px;font-weight:700;margin:0 0 5px;display:flex;align-items:center;height:20px}.label__error[_ngcontent-%COMP%], .label--required[_ngcontent-%COMP%]{color:#ff8aa4}.label--error[_ngcontent-%COMP%]{display:flex;align-items:center}.label--error[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin:0 .5rem 0 .75rem}"],data:{animation:[(0,Lt.X$)("tada",[(0,Lt.eR)(":enter",(0,Lt._7)(Ht.T$))]),(0,Lt.X$)("fadeOut",[(0,Lt.eR)(":leave",(0,Lt._7)(Ht.U6))])]},changeDetection:0}),_})();var tt=o(60957),mt=o(18857),j=o(86657),lt=o(47423),gt=o(44619);function wt(_,S){if(1&_&&n._UZ(0,"qupi-backend-error",19),2&_){const d=n.oxw();n.Q6J("errorMessage",d.backendError.message)}}let Wt=(()=>{class _{constructor(d,q,G,ft,bt){this.fb=d,this.store=q,this.route=G,this.toastService=ft,this.validationService=bt,this.sub=[],this.environment=h.N,this.loading$=this.store.pipe((0,g.Ys)(yt=>yt.auth.basic.pending))}ngOnInit(){this.initializeValues()}initializeValues(){this.loading$=this.store.pipe((0,g.Ys)(d=>d.auth.basic.pending)),this.backendError$=this.store.pipe((0,g.Ys)(d=>d.auth.errors.basic)),this.backendError$.subscribe(d=>this.backendError=d),this.hideSideMenu(),this.loginForm=this.createLoginForm(),this.sub.push(this.route.queryParamMap.subscribe(d=>{"true"===d.get("register-success")?this.toastService.success("You can login now","Success",{timeOut:15e3}):"already-active"===d.get("register-success")?this.toastService.success("Account is already activated","Success",{timeOut:15e3}):"false"===d.get("register-success")?this.toastService.error("An error occurred during activation process","Something went wrong",{timeOut:3e4}):"true"===d.get("cancel-success")?this.toastService.success("Mailing canceled correctly","Success",{timeOut:15e3}):"false"===d.get("cancel-success")&&this.toastService.error("An error occurred during mailing cancellation process","Something went wrong",{timeOut:3e4})}))}hideSideMenu(){this.store.dispatch(new i.xl({topnavLogo:!1,sidenavOpened:!1,sidenavDisabled:!1}))}ngOnDestroy(){this.sub.forEach(d=>d.unsubscribe())}createLoginForm(){return this.fb.group({username:[void 0,V.kI.required],password:[void 0,V.kI.required]})}logInWithApple(){window.location.href=this.environment.api.baseURL?`${this.environment.api.baseURL}
1/api/v1/auth/apple`:`https://${window.location.host}/api/v1/auth/apple`}logInWithFacebook(){window.location.href=this.environment.api.baseURL?`${this.environment.api.baseURL}/api/v1/auth/facebook`:`https://${window.location.host}/api/v1/auth/facebook`}logInWithGoogle(){window.location.href=this.environment.api.baseURL?`${this.environment.api.baseURL}/api/v1/auth/google`:`https://${window.location.host}/api/v1/auth/google`}logInWithInstagram(){window.location.href=this.environment.api.baseURL?`${this.environment.api.baseURL}/api/v1/auth/instagram`:`https://${window.location.host}/api/v1/auth/instagram`}onSubmit(d){if(this.store.dispatch(new e.Hr),d.markAsDirty(),d.markAsTouched(),Object.values(d.controls).forEach(G=>G.markAsTouched()),d.invalid)return Object.values(d.controls).forEach(G=>{G.markAsDirty()}),void this.validationService.setUiErrors(d);d.controls.password.setErrors(null),d.controls.username.setErrors(null);const q=d.getRawValue();this.store.dispatch(new e.HP(q))}}return _.\u0275fac=function(d){return new(d||_)(n.Y36(V.qu),n.Y36(g.yh),n.Y36(A.gz),n.Y36(N.k),n.Y36(Gt.R))},_.\u0275cmp=n.Xpm({type:_,selectors:[["qupi-login"]],decls:29,vars:8,consts:[[1,"login-card"],[1,"login-logo"],[3,"src"],[1,"login-form",3,"formGroup","ngSubmit"],["label","Authentication",3,"errorMessage",4,"ngIf"],["placeholder","Login","label","Login","width","100%",3,"control"],["width","100%","type","password","placeholder","Password","label","Password",3,"control"],["color","mid-blue","width","220px","theme","dodger-blue","type","submit","loaderColor","white",1,"login-form-submit",3,"loader"],["mat-raised-button","","type","button","color","warn",1,"login-facebook-button","login-button",3,"click"],["inlineSVG","/assets/images/svg/google.svg"],["mat-raised-button","","type","button","color","primary",1,"login-facebook-button","login-button",3,"click"],["inlineSVG","/assets/images/svg/fb-logo.svg"],["mat-raised-button","","type","button",1,"login-facebook-button","login-button",3,"click"],["inlineSVG","/assets/images/svg/apple-logo.svg"],["width","220px","theme","mid-blue-reversed","routerLink","/register","type","button",1,"login-form-sign-up"],[1,"actions-buttons"],["theme","mid-blue-borderless","routerLink","/forgot-password"],[1,"terms-row"],["href","https://qupi.com/terms-conditions/","target","_blank"],["label","Authentication",3,"errorMessage"]],template:function(d,q){1&d&&(n.TgZ(0,"qupi-card",0)(1,"div",1),n._UZ(2,"img",2),n.qZA(),n.TgZ(3,"form",3),n.NdJ("ngSubmit",function(){return q.onSubmit(q.loginForm)}),n.YNc(4,wt,1,1,"qupi-backend-error",4),n._UZ(5,"qupi-text-input",5)(6,"qupi-text-input",6),n.TgZ(7,"qupi-button",7),n.ALo(8,"async"),n._uU(9,"Sign in "),n.qZA(),n.TgZ(10,"button",8),n.NdJ("click",function(){return q.logInWithGoogle()}),n._uU(11," Sign in with Google "),n._UZ(12,"span",9),n.qZA(),n.TgZ(13,"button",10),n.NdJ("click",function(){return q.logInWithFacebook()}),n._uU(14," Sign in with Facebook "),n._UZ(15,"span",11),n.qZA(),n.TgZ(16,"button",12),n.NdJ("click",function(){return q.logInWithApple()}),n._uU(17," Sign in with Apple "),n._UZ(18,"span",13),n.qZA(),n.TgZ(19,"qupi-button",14),n._uU(20,"Sign up "),n.qZA(),n.TgZ(21,"qupi-group",15)(22,"qupi-button",16),n._uU(23," I forgot my password "),n.qZA()(),n.TgZ(24,"div",17),n._uU(25," By logging in, you are agreeing to the "),n._UZ(26,"br"),n.TgZ(27,"a",18),n._uU(28," Terms and Conditions."),n.qZA()()()()),2&d&&(n.xp6(2),n.Q6J("src","/assets/images/svg/qupi-logo.svg",n.LSH),n.xp6(1),n.Q6J("formGroup",q.loginForm),n.xp6(1),n.Q6J("ngIf",q.backendError),n.xp6(1),n.Q6J("control",q.loginForm.controls.username),n.xp6(1),n.Q6J("control",q.loginForm.controls.password),n.xp6(1),n.Q6J("loader",n.lcZ(8,6,q.loading$)))},dependencies:[Tt.O5,A.rH,qt.t,Xt,tt.r,mt.A,j.m,lt.lW,V._Y,V.JL,V.sg,gt.d$,Tt.Ov],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%]{align-items:center;display:flex;justify-content:center;height:100%;min-height:600px}[_nghost-%COMP%] .login-logo[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-bottom:1.25em;margin-left:-10px}[_nghost-%COMP%] .login-card[_ngcontent-%COMP%]{display:block;min-height:600px;max-width:380px;margin-top:4.25em;width:100vw}[_nghost-%COMP%] .login-form[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:column}[_nghost-%COMP%] .login-form[_ngcontent-%COMP%] qupi-text-input[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .login-form[_ngcontent-%COMP%] .terms-row[_ngcontent-%COMP%]{font-size:14px;text-align:center;margin-top:1.25em;margin-bottom:1.25em;color:#215ca8}[_nghost-%COMP%] .login-form[_ngcontent-%COMP%] .terms-row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;font-weight:700;text-decoration:none}[_nghost-%COMP%] .login-form-buttons[_ngcontent-%COMP%]{width:100%;justify-content:space-between;align-items:flex-end}[_nghost-%COMP%] .login-form-submit[_ngcontent-%COMP%]{margin-top:1.25em;margin-bottom:1.25em}[_nghost-%COMP%] .login-form-sign-up[_ngcontent-%COMP%]{margin-bottom:1.25em}[_nghost-%COMP%] .login-button{border-radius:1.25em;display:flex;justify-content:space-between;width:220px;height:40px;margin-bottom:1.25em}[_nghost-%COMP%] .login-button .mat-button-wrapper{width:100%;display:flex;align-items:center;justify-content:space-between;padding-right:10px;padding-left:10px}[_nghost-%COMP%] .login-instagram-button .instagram-logo path{fill:#000}"]}),_})();var kt=o(18505),Ut=o(23350),Zt=o(49083);var rt=o(77309),Pt=o(72365),St=o(77093),xt=o(20773),ne=o(33583),Y=o(28555);function ht(_,S){}function U(_,S){1&_&&(n.TgZ(0,"div",3),n._UZ(1,"mat-progress-spinner",4),n.qZA()),2&_&&(n.xp6(1),n.Q6J("diameter",200)("strokeWidth",10))}let nt=(()=>
1{class _{constructor(d,q,G,ft,bt){this.sidenavUserPortalService=d,this.domSanitizer=q,this.globalLoaderService=G,this.store=ft,this.dialog=bt,this.sub=[],this.filter="",this.portal=this.sidenavUserPortalService.portal}ngOnInit(){this.sub.push(this.store.pipe((0,g.Ys)(at.$v),(0,p.h)(Boolean),(0,s.P)()).subscribe(d=>{d&&!d.tutorialFinished&&this.dialog.open(Ut.g,{width:"540px",minHeight:"390px"}).afterClosed().subscribe(()=>{this.store.dispatch(new Zt.df("FinishTutorial"))})}),this.store.pipe((0,g.Ys)(d=>d.app.mainView),(0,kt.b)(d=>{this.filter=this.domSanitizer.bypassSecurityTrustStyle(d.blurred?"blur(5px)":""),this.loader=d.loader})).subscribe(()=>{}))}ngOnDestroy(){this.sub.forEach(d=>d.unsubscribe())}}return _.\u0275fac=function(d){return new(d||_)(n.Y36(rt.e),n.Y36(t.H7),n.Y36(Pt.m),n.Y36(g.yh),n.Y36(x.uw))},_.\u0275cmp=n.Xpm({type:_,selectors:[["user-view"]],decls:3,vars:4,consts:[[1,"mainView"],[3,"cdkPortalOutlet"],["class","global-loader","fxLayout","row","fxLayoutAlign","center center",4,"ngIf"],["fxLayout","row","fxLayoutAlign","center center",1,"global-loader"],["color","mid-blue","mode","indeterminate",3,"diameter","strokeWidth"]],template:function(d,q){1&d&&(n.TgZ(0,"qupi-main-view",0),n.YNc(1,ht,0,0,"ng-template",1),n.qZA(),n.YNc(2,U,2,2,"div",2)),2&d&&(n.Udp("filter",q.filter),n.xp6(1),n.Q6J("cdkPortalOutlet",q.portal.mainView),n.xp6(1),n.Q6J("ngIf",q.loader))},dependencies:[Tt.O5,St.xw,St.Wh,xt.Ou,ne.Pl,Y.z],styles:[".mainView[_ngcontent-%COMP%]{display:block}.global-loader[_ngcontent-%COMP%]{position:absolute;z-index:100000;top:0;left:0;height:100vh;width:100vw}"]}),_})();var pt=o(15141),vt=o(30379);class Qt{constructor(){}static passwordsMustMatch(S,d){return q=>{const ft=q.controls[d];if(!ft.errors||ft.errors.mustMatch)return ft.setErrors(q.controls[S].value!==ft.value?{passwordsMustMatch:!0}:null),null}}}var jt=o(40769),Kt=o(37961);const Ft=["captcha"];function Pe(_,S){1&_&&(n.ynx(0),n.TgZ(1,"div",23),n._UZ(2,"mat-spinner",24),n.qZA(),n.BQk()),2&_&&(n.xp6(2),n.Q6J("diameter","75"))}let le=(()=>{class _{constructor(d,q,G,ft,bt,yt,te,Rt){this.formBuilder=d,this.router=q,this.route=G,this.authService=ft,this.toastService=bt,this.store=yt,this.validationService=te,this.angulartics2=Rt,this.sub=[],this.degreeDuration=vt.nB,this.uploadOptions="base64"}ngOnInit(){this.route.queryParams.pipe((0,s.P)()).subscribe(d=>{this.registerForm=this.createForm({affiliate:d.affiliate})}),this.sub.push(this.registerForm.statusChanges.subscribe(()=>this.validationService.setUiErrors(this.registerForm)))}ngAfterViewInit(){}createForm(d){return new V.cw({email:new V.NI(void 0,V.kI.compose([V.kI.required,pt.ev.normal])),password:new V.NI(void 0,V.kI.compose([V.kI.required,V.kI.minLength(8)])),confirmPassword:new V.NI(void 0,V.kI.compose([V.kI.required])),firstName:new V.NI(void 0,V.kI.compose([V.kI.required,V.kI.minLength(3)])),lastName:new V.NI(void 0,V.kI.compose([V.kI.required,V.kI.minLength(3)])),recaptcha:new V.NI(void 0,[V.kI.required]),affiliate:new V.NI(d.affiliate),gpdrAllow:new V.NI(void 0,{validators:[V.kI.required],updateOn:"change"}),internalMarketingAllow:new V.NI(void 0,{updateOn:"change"})},{updateOn:"blur",validators:Qt.passwordsMustMatch("password","confirmPassword")})}onSubmit(d){if(d.invalid)return Object.values(d.controls).forEach(G=>{G.markAsTouched(),G.markAsDirty()}),void this.validationService.setUiErrors(d);this.registerQueue=!0;const q=d.getRawValue();this.authService.register(q).pipe((0,s.P)()).subscribe(G=>{this.registerQueue=!1,this.angulartics2.eventTrack.next({action:"CompleteRegistration",properties:{category:"Successful registration",userEmail:q.email,value:0,currency:"USD"}}),this.router.navigate(["/register-success"])},G=>{this.registerQueue=!1,this.validationService.setApiErrors(G,this.registerForm),400===G.status?this.toastService.error(G.error.message[0],G.statusText,{timeOut:3e4}):this.captcha.recaptcha.reset()})}}return _.\u0275fac=function(d){return new(d||_)(n.Y36(V.qu),n.Y36(A.F0),n.Y36(A.gz),n.Y36(zt.e),n.Y36(N.k),n.Y36(g.yh),n.Y36(Gt.R),n.Y36(Z.b))},_.\u0275cmp=n.Xpm({type:_,selectors:[["qupi-register"]],viewQuery:function(d,q){if(1&d&&n.Gf(Ft,7),2&d){let G;n.iGM(G=n.CRH())&&(q.captcha=G.first)}},decls:29,vars:12,consts:[[1,"container"],[1,"header"],[1,"header--headline"],[1,"header--text"],[4,"ngIf"],[1,"form","register-form",3,"formGroup","ngSubmit"],[1,"form--block","block"],[1,"block--row"],["width","100%","label","E-mail address","placeholder","Enter your e-mail address",3,"control"],["type","password","width","100%","label","Password","placeholder","Enter your password",3,"control"],["type","password","width","100%","label","Confirm password","placeholder","Enter your password again",3,"control"],["width","100%","label","First name","placeholder","Enter your first name",3,"control"],["width","100%","label","Last name","placeholder","Enter your last name",3,"control"],[1,"form--block","block","block--column"],[1,"terms-row"],["text","I agree to the ",3,"control"],["href","https://qupi.com/terms-conditions/","target","_blank"],["text","I'm OK with QUPI using my info for marketing purpose.",3,"control"],[1,"form--block","block--recaptcha"],[3,"control"],["captcha",""],[1,"form--block","block--submit"],["type","submit","width","16em","color","dodger-blue"],[1,"spinner-wrapper"],["color","dodger-blue",3,"diameter"]],template:function(d,q){1&d&&(n.TgZ(0,"div",0)(1,"div",1)(2,"h1",2),n._uU(3,"Sign up"),n.qZA(),n.TgZ(4,"p",3),n._uU(5," Congratulations - you\u2019re almost ready to start using QUPI to practice your medical knowledge and test your skills! Enter your details below to create your account, and you\u2019ll be enjoying your first quiz in no time. "),n.qZA()(),n.YNc(6,Pe,3,1,"ng-container",4),n.TgZ(7,"form",5),n.NdJ("ngSubmit",function(){return q.onSubmit(q.registerForm)}),n.TgZ(8,"div",6)(9,"div",7),n._UZ(10,"qupi-text-input",8),n.qZA(),n.TgZ(11,"div",7),n._UZ(12,"qupi-text-input",9)(13,"qupi-text-input",10),n.qZA(),n.TgZ(14,"div",7),n._UZ(15,"qupi-text-input",11)(16,"qupi-text-input",12),n.qZA()(),n.TgZ(17,"div",13)(18,"div",14),n._UZ(19,"qupi-checkbox",15),n.TgZ(20,"a",16),n._uU(21," Terms and Conditions."),n.qZA()(),n._UZ(22,"qupi-checkbox",17),n.qZA(),n.TgZ(23,"div",18),n._UZ(24,"qupi-recaptcha",19,20),n.qZA(),n.TgZ(26,"div",21)(27,"qupi-button",22),n._uU(28,"Sign up"),n.qZA()()()()),2&d&&(n.xp6(6),n.Q6J("ngIf",q.registerQueue),n.xp6(1),n.Udp("display",q.registerQueue?"none":"initial"),n.Q6J("formGroup",q.registerForm),n.xp6(3),n.Q6J("control",q.registerForm.controls.email),n.xp6(2),n.Q6J("control",q.registerForm.controls.password),n.xp6(1),n.Q6J("control",q.registerForm.controls.confirmPassword),n.xp6(2),n.Q6J("control",q.registerForm.controls.firstName),n.xp6(1),n.Q6J("control",q.registerForm.controls.lastName),n.xp6(3),n.Q6J("control",q.registerForm.controls.gpdrAllow),n.xp6(3),n.Q6J("control",q.registerForm.controls.internalMarketingAllow),n.xp6(2),n.Q6J("control",q.registerForm.controls.recaptcha))}
1,dependencies:[Tt.O5,qt.t,tt.r,jt.b,Kt.w,xt.Ou,V._Y,V.JL,V.sg],styles:["[_nghost-%COMP%]{color:#1c5ba9}.spinner-wrapper[_ngcontent-%COMP%]{margin-top:1.25em;width:100%;justify-content:center;display:flex;align-self:center}@media (max-width: 426px){[_nghost-%COMP%] qupi-date-picker{width:100%!important}[_nghost-%COMP%] qupi-date-picker .mat-form-field .mat-form-field-infix{min-width:auto;width:100%}[_nghost-%COMP%] qupi-date-picker .picker{flex-direction:column}[_nghost-%COMP%] qupi-date-picker .picker qupi-select{width:100%!important}[_nghost-%COMP%] .upload-profile-mode .upload--photo-wrapper{margin-right:0!important;align-self:center}.container[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.header--text[_ngcontent-%COMP%]{width:100%!important}.block--header[_ngcontent-%COMP%]{text-align:center}.block--row[_ngcontent-%COMP%]{flex-direction:column}.block--row[_ngcontent-%COMP%] qupi-text-input[_ngcontent-%COMP%]{width:100%}.block--row[_ngcontent-%COMP%] qupi-select[_ngcontent-%COMP%]{width:100%}.block--row.block--row__date[_ngcontent-%COMP%] qupi-select[_ngcontent-%COMP%]{width:100%}}.terms-row[_ngcontent-%COMP%]{display:flex;align-items:center}.terms-row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;font-size:15px;line-height:24px;margin-left:3px;font-weight:700}.header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.header--headline[_ngcontent-%COMP%]{font-size:2.25em;font-weight:900}.header--text[_ngcontent-%COMP%]{width:33.75em;text-align:center}.block--header[_ngcontent-%COMP%]{font-size:1.5em;font-weight:900;margin:1.875em 0}.block--row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:20px}.block--row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:48%}.block--row__date[_ngcontent-%COMP%] qupi-date-picker[_ngcontent-%COMP%]{width:74%}.block--row__date[_ngcontent-%COMP%] .picker>*{width:29.5%}.block--row__date[_ngcontent-%COMP%] qupi-select[_ngcontent-%COMP%]{width:22%}.block--column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.block--column[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-bottom:15px}.block--file-upload[_ngcontent-%COMP%]{margin:1em 0 3.5em}.block--recaptcha[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:1em 0}.block--submit[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:2em 0 12em}"]}),_})();var oe=o(4834),J=o(39588),E=o(29759),ae=o(52934),we=o(5850),re=o(52842),ge=o(59447),Ue=o(59131),Ie=o(2557);let Re=(()=>{class _{constructor(d){this.formBuilder=d,this.avatarSrc="https://d3iw72m71ie81c.cloudfront.net/female-17.jpg"}ngOnInit(){this.testForm=this.formBuilder.group({text:[void 0,V.kI.required],select:[void 0,V.kI.required],date:[void 0,V.kI.required]})}}return _.\u0275fac=function(d){return new(d||_)(n.Y36(V.qu))},_.\u0275cmp=n.Xpm({type:_,selectors:[["qupi-ui-components"]],decls:94,vars:23,consts:[[1,"section"],["fxLayout","column",1,"test-ui",3,"formGroup"],["label","E-mail address","placeholder","Enter your e-mail address",1,"mt-5",3,"control"],["label","Gender","placeholder","Your gender",1,"mt-5",3,"control"],[1,"mt-5"],["formControlName","date","label","Birth date"],[3,"size"],["qupiHeadingUnderline",""],[3,"size","fontWeight"],[3,"fontWeight"],[3,"padding"],[3,"width"],[1,"section-first","first-child"],[3,"vertical"],[1,"section-second","second-child"],[3,"imageSrc"],[3,"size","imageSrc"],[2,"width","200px"],[2,"width","100%","display","flex","justify-content","flex-end"],[2,"width","50%"],["theme","dodger-blue"],["theme","inversed"],["theme","mid-blue-reversed"],["theme","mid-blue-reversed-faded"],["theme","white"],["theme","manilla"]],template:function(d,q){1&d&&(n.TgZ(0,"h2"),n._uU(1,"Forms"),n.qZA(),n.TgZ(2,"div",0)(3,"form",1),n._UZ(4,"qupi-text-input",2)(5,"qupi-select",3),n.TgZ(6,"qupi-button",4),n._uU(7,"Test"),n.qZA(),n._UZ(8,"qupi-date-picker",5),n.qZA()(),n.TgZ(9,"h2"),n._uU(10,"Headers"),n.qZA(),n.TgZ(11,"div",0)(12,"qupi-heading"),n._uU(13," Qupi Header"),n.qZA(),n.TgZ(14,"qupi-heading",6),n._uU(15,"Qupi Header "),n.TgZ(16,"span",7),n._uU(17," Large "),n.qZA()(),n.TgZ(18,"qupi-heading",6),n._uU(19,"Qupi Header"),n.TgZ(20,"span",7),n._uU(21," Extra large"),n.qZA()(),n.TgZ(22,"qupi-heading",8),n._uU(23," Qupi Header Bold"),n.TgZ(24,"span",7),n._uU(25,"Extra large"),n.qZA()(),n.TgZ(26,"qupi-heading",8),n._uU(27," Qupi Header Extra Bold "),n.TgZ(28,"span",7),n._uU(29,"Extra large "),n.qZA()()(),n.TgZ(30,"h2"),n._uU(31,"Content"),n.qZA(),n.TgZ(32,"div",0)(33,"qupi-content",6),n._uU(34," Content sm ---- Lorem ipsum dolor sit amet, consectetur adipiscing elit. "),n.qZA(),n.TgZ(35,"qupi-content",8),n._uU(36," Content sm bold ---- Lorem ipsum dolor sit amet, consectetur adipiscing elit. "),n.qZA(),n.TgZ(37,"qupi-content"),n._uU(38," Content ----- Lorem ipsum dolor sit amet, consectetur adipiscing elit. "),n.qZA(),n.TgZ(39,"qupi-content",9),n._uU(40," Content bold ----- Lorem ipsum dolor sit amet, consectetur adipiscing elit. "),n.qZA(),n.TgZ(41,"qupi-content",6),n._uU(42," Content lg ---- Lorem ipsum dolor sit amet, consectetur adipiscing elit. "),n.qZA(),n.TgZ(43,"qupi-content",8),n._uU(44," Content lg bold ---- Lorem ipsum dolor sit amet, consectetur adipiscing elit. "),n.qZA()(),n.TgZ(45,"h2"),n._uU(46,"Cards"),n.qZA(),n.TgZ(47,"div",0)(48,"qupi-card"),n._uU(49," Content ----- Lorem ipsum dolor sit amet, consectetur adipiscing elit. "),n.qZA(),n.TgZ(50,"qupi-card",10),n._uU(51," Qupi card padding-md (30px) "),n.qZA(),n.TgZ(52,"qupi-card",11),n._uU(53," Qupi Card width 300px "),n.qZA(),n.TgZ(54,"qupi-card",10)(55,"div",12),n._uU(56," Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. "),n.qZA(),n._UZ(57,"mat-divider",13),n.TgZ(58,"div",14),n._uU(59,"second child"),n.qZA()()(),n.TgZ(60,"div",0)(61,"label"),n._uU(62," qupi avatar "),n.qZA(),n._UZ(63,"qupi-avatar",15),n.TgZ(64,"label"),n._uU(65," qupi avatar md "),n.qZA(),n._UZ(66,"qupi-avatar",16),n.qZA(),n.TgZ(67,"div",0)(68,"label"),n._uU(69," qupi charts "),n.qZA(),n.TgZ(70,"div",17),n._UZ(71,"qupi-linear-chart-responsive"),n.qZA(),n.TgZ(72,"div",17),n._UZ(73,"qupi-pie-chart"),n.qZA(),n.TgZ(74,"div",18),n._UZ(75,"qupi-pie-chart"),n.qZA()(),n.TgZ(76,"div",0)(77,"div",19)(78,"label"),n._uU(79,"Buttons: "),n.qZA(),n.TgZ(80,"qupi-button"),n._uU(81,"Default"),n.qZA(),n.TgZ(82,"qupi-button",20),n._uU(83,"dodger blue"),n.qZA(),n.TgZ(84,"qupi-button",21),n._uU(85,"inversed"),n.qZA(),n.TgZ(86,"qupi-button",22),n._uU(87,"mid-blue-reversed"),n.qZA(),n.TgZ(88,"qupi-button",23),n._uU(89,"mid-blue-reversed-faded"),n.qZA(),n.TgZ(90,"qupi-button",24),n._uU(91,"white"),n.qZA(),n.TgZ(92,"qupi-button",25),n._uU(93,"manilla"),n.qZA()()()),2&d&&(n.xp6(3),n.Q6J("formGroup",q.testForm),n.xp6(1),n.Q6J("control",q.testForm.get("text")),n.xp6(1),n.Q6J("control",q.testForm.get("select")),n.xp6(9),n.Q6J("size","lg"),n.xp6(4),n.Q6J("size","xlg"),n.xp6(4),n.Q6J("size","lg")("fontWeight","bold"),n.xp6(4),n.Q6J("size","xlg")("fontWeight","extra-bold"),n.xp6(7),n.Q6J("size","sm"),n.xp6(2),n.Q6J("size","sm")("fontWeight","bold"),n.xp6(4),n.Q6J("fontWeight","bold"),n.xp6(2),n.Q6J("size","lg"),n.xp6(2),n.Q6J("size","lg")("fontWeight","bold"),n.xp6(7),n.Q6J("padding","md"),n.xp6(2),n.Q6J("width","300px"),n.xp6(2),n.Q6J("padding","md"),n.xp6(3),n.Q6J("vertical",!0),n.xp6(6),n.Q6J("imageSrc",q.avatarSrc),n.xp6(3),n.Q6J("size","md")("imageSrc",q.avatarSrc))},dependencies:[oe.d,St.xw,V._Y,V.JJ,V.JL,V.sg,V.u,qt.t,J.H,tt.r,E.L,mt.A,ae.B,we.A,re.S,ge.k,Ue.J,Ie.Q],styles:[".test-ui[_ngcontent-%COMP%]{width:600px}[_nghost-%COMP%]{margin:50px;display:flex;flex-direction:column}.section[_ngcontent-%COMP%]{padding-bottom:30px;border-bottom:1px solid #215ca8}.section-first[_ngcontent-%COMP%], .section-second[_ngcontent-%COMP%]{flex-basis:49.5%;display:flex;justify-content:center;align-items:center}"]}),_})(),Jt=(()=>{class _{constructor(d,q){this.store=d,this.router=q,this.isAuthenticated$=this.store.select(G=>G.auth).pipe((0,p.h)(G=>null!==G.user.logged),(0,m.U)(G=>!!G.user.logged),(0,kt.b)(G=>!G&&this.router.navigate(["/login"])))}canActivate(d,q){return this.isAuthenticated$}canLoad(d){return this.isAuthenticated$}}return _.\u0275fac=function(d){return new(d||_)(n.LFG(g.yh),n.LFG(A.F0))},_.\u0275prov=n.Yz7({token:_,factory:_.\u0275fac}),_})();var ye=o(13323),Me=o(99221),ve=o(3290);function be(_,S){if(1&_){const d=n.EpF();n.TgZ(0,"div",2)(1,"qupi-group",3)(2,"qupi-heading",4),n._uU(3,"Change your password"),n.qZA(),n.TgZ(4,"qupi-content",5),n._uU(5,"Enter your new password below - don\u2019t lose it this time!"),n.qZA()(),n.TgZ(6,"form",6),n.NdJ("submit",function(){n.CHM(d);const G=n.oxw();return n.KtG(G.submit())}),n._UZ(7,"qupi-text-input",7)(8,"qupi-text-input",8)(9,"re-captcha",9),n.TgZ(10,"qupi-button",10),n._uU(11,"Change password"),n.qZA()()()}if(2&_){const d=n.oxw();n.xp6(6),n.Q6J("formGroup",d.passwordRestoreForm),n.xp6(1),n.Q6J("control",d.passwordRestoreForm.controls.newPassword)("width","300px"),n.xp6(1),n.Q6J("control",d.passwordRestoreForm.controls.confirmPassword)("width","300px"),n.xp6(1),n.Q6J("formControl",d.passwordRestoreForm.controls.captcha),n.xp6(1),n.Q6J("width","250px")}}function qe(_,S){1&_&&(n.TgZ(0,"div",11),n._UZ(1,"span",12),n.TgZ(2,"qupi-heading",13),n._uU(3,"Success"),n.qZA(),n.TgZ(4,"qupi-content",5),n._uU(5,"Password restored. Now go, sign in and have fun!"),n.qZA(),n.TgZ(6,"qupi-button",14),n._uU(7,"Sign in"),n.qZA()()),2&_&&(n.xp6(6),n.Q6J("width","220px"))}let Le=(()=>{class _{constructor(d,q,G){this.fb=d,this.store=q,this.route=G,this.passwordRestoreForm=this.fb.group({newPassword:["",[V.kI.required,V.kI.minLength(8)]],confirmPassword:["",[V.kI.required,V.kI.minLength(8)]],captcha:[null,[V.kI.required]]},{validator:this.checkPasswords})}checkPasswords(d){const G=d.controls.confirmPassword;return d.controls.newPassword.value===G.value?null:G.setErrors({message:"Passwords are not equal!"})}submit(){const d=this.passwordRestoreForm.getRawValue();this.store.dispatch({type:"[AUTH] RestorePassword",payload:{password:d.newPassword,recaptcha:d.captcha,token:this.token}})}ngOnInit(){this.passwdRestore$=this.store.select(d=>d.auth.passwordRestore).subscribe(d=>{this.changePasswordState=d}
1),this.token=this.route.snapshot.queryParams.token}ngOnDestroy(){this.passwdRestore$.unsubscribe()}}return _.\u0275fac=function(d){return new(d||_)(n.Y36(V.qu),n.Y36(g.yh),n.Y36(A.gz))},_.\u0275cmp=n.Xpm({type:_,selectors:[["qupi-password-restore"]],decls:2,vars:2,consts:[["class","password-restore",4,"ngIf"],["class","password-restore-success",4,"ngIf"],[1,"password-restore"],[1,"password-restore-heading"],["size","xxlg","fontWeight","extra-bold","justifyContent","center","textAlign","center"],["textAlign","center","justifyContent","center"],[1,"password-restore-form",3,"formGroup","submit"],["placeholder","New password","label","New password","type","password",3,"control","width"],["placeholder","New password confirmation","label","New password confirmation","type","password",3,"control","width"],[3,"formControl"],["type","submit","theme","dodger-blue",3,"width"],[1,"password-restore-success"],["inlineSVG","/assets/images/svg/success-cloud.svg",1,"success-icon"],["size","xxlg","fontWeight","extra-bold","textAlign","center","justifyContent","center"],["routerLink","/login","theme","dodger-blue",3,"width"]],template:function(d,q){1&d&&(n.YNc(0,be,12,7,"div",0),n.YNc(1,qe,8,1,"div",1)),2&d&&(n.Q6J("ngIf",!q.changePasswordState||!(null!=q.changePasswordState&&q.changePasswordState.success)),n.xp6(1),n.Q6J("ngIf",q.changePasswordState.success))},dependencies:[Tt.O5,A.rH,ve.wT,ve.Vd,qt.t,tt.r,ae.B,re.S,j.m,V._Y,V.JJ,V.JL,V.oH,V.sg,gt.d$],styles:["[_nghost-%COMP%]{width:100%}.password-restore-heading[_ngcontent-%COMP%]{flex-direction:column;margin-bottom:1.875em}.password-restore-heading[_ngcontent-%COMP%] qupi-content[_ngcontent-%COMP%]{margin-top:1.25em}.password-restore-form[_ngcontent-%COMP%]{display:flex;flex-direction:column}.password-restore-form[_ngcontent-%COMP%] qupi-text-input[_ngcontent-%COMP%]{display:flex;justify-content:center}.password-restore-form[_ngcontent-%COMP%] re-captcha[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:1.875em}.password-restore-form[_ngcontent-%COMP%] qupi-button[_ngcontent-%COMP%]{align-self:center}.password-restore-success[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}.password-restore-success[_ngcontent-%COMP%] .success-icon[_ngcontent-%COMP%]{justify-content:center;display:flex;margin-bottom:1.25em}.password-restore-success[_ngcontent-%COMP%] qupi-heading[_ngcontent-%COMP%]{margin-bottom:.625em}.password-restore-success[_ngcontent-%COMP%] qupi-content[_ngcontent-%COMP%]{margin-bottom:1.875em}.password-restore-success[_ngcontent-%COMP%] qupi-button[_ngcontent-%COMP%]{align-self:center}"]}),_})();var xe=o(50376),ce=o(65388);const me=["captcha"];let ie=(()=>{class _{constructor(d,q,G,ft,bt){this.fb=d,this.validationService=q,this.authService=G,this.toastService=ft,this.router=bt}ngOnInit(){this.activationForm=this.createActivationForm()}createActivationForm(){return this.fb.group({email:[void 0,V.kI.compose([V.kI.required,pt.ev.normal])],recaptcha:new V.NI(void 0,[V.kI.required])})}onSubmit(d){if(d.markAsDirty(),d.markAsTouched(),Object.values(d.controls).forEach(G=>G.markAsTouched()),d.invalid)return Object.values(d.controls).forEach(G=>G.markAsDirty()),void this.validationService.setUiErrors(d);d.controls.email.setErrors(null);const q=d.getRawValue();this.authService.reSendActivationEmail(q).pipe((0,s.P)()).subscribe(G=>{this.toastService.success("Activation email has been successfully sent","Success",{timeOut:15e3}),d.patchValue({email:null})},G=>{this.captcha.recaptcha.reset(),this.validationService.setApiErrors(G,d)})}redirectToLoginPage(){this.router.navigate(["/login"])}}return _.\u0275fac=function(d){return new(d||_)(n.Y36(V.qu),n.Y36(Gt.R),n.Y36(zt.e),n.Y36(N.k),n.Y36(A.F0))},_.\u0275cmp=n.Xpm({type:_,selectors:[["qupi-register-success"]],viewQuery:function(d,q){if(1&d&&n.Gf(me,7),2&d){let G;n.iGM(G=n.CRH())&&(q.captcha=G.first)}},decls:16,vars:3,consts:[[1,"register-success"],["size","lg","fontWeight","bold"],[1,"activation-form",3,"formGroup","ngSubmit"],["width","100%","placeholder","Enter email","label","Your sign up email",3,"control"],[1,"captcha"],[3,"control"],["captcha",""],["color","mid-blue","width","180px","theme","dodger-blue","type","submit",1,"login-form-submit"],["color","mid-blue","width","180px","theme","dodger-blue","type","button",1,"go-to-login-page-button",3,"click"]],template:function(d,q){1&d&&(n.TgZ(0,"qupi-group",0)(1,"qupi-heading",1),n._uU(2," You have successfully registered "),n.qZA(),n.TgZ(3,"qupi-content"),n._uU(4," Please check your mailbox and click on confirmation link to activate your account. If the email doesn't appear shortly, please be sure to check your spam folder. "),n.qZA(),n.TgZ(5,"qupi-content"),n._uU(6," If you do not receive it, you can fill this form with email which you have entered during registration process and send it again. "),n.qZA(),n.TgZ(7,"form",2),n.NdJ("ngSubmit",function(){return q.onSubmit(q.activationForm)}),n._UZ(8,"qupi-text-input",3),n.TgZ(9,"div",4),n._UZ(10,"qupi-recaptcha",5,6),n.qZA(),n.TgZ(12,"qupi-button",7),n._uU(13," Send "),n.qZA()(),n.TgZ(14,"qupi-button",8),n.NdJ("
1click",function(){return q.redirectToLoginPage()}),n._uU(15," Go to login page "),n.qZA()()),2&d&&(n.xp6(7),n.Q6J("formGroup",q.activationForm),n.xp6(1),n.Q6J("control",q.activationForm.controls.email),n.xp6(2),n.Q6J("control",q.activationForm.controls.recaptcha))},dependencies:[qt.t,tt.r,ae.B,re.S,j.m,Kt.w,V._Y,V.JL,V.sg],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%] .register-success[_ngcontent-%COMP%]{max-width:620px;margin:auto;min-height:54vh;display:flex;flex-direction:column}[_nghost-%COMP%] qupi-heading[_ngcontent-%COMP%]{margin-top:1.2em}[_nghost-%COMP%] qupi-heading[_ngcontent-%COMP%], [_nghost-%COMP%] qupi-content[_ngcontent-%COMP%]{margin-bottom:1.2em}[_nghost-%COMP%] .activation-form[_ngcontent-%COMP%]{margin-top:1.2em}[_nghost-%COMP%] .activation-form[_ngcontent-%COMP%] qupi-text-input[_ngcontent-%COMP%]{max-width:350px;margin-right:.625em}[_nghost-%COMP%] .activation-form[_ngcontent-%COMP%] .captcha[_ngcontent-%COMP%]{margin-bottom:1.875em}[_nghost-%COMP%] .go-to-login-page-button[_ngcontent-%COMP%]{margin-top:1.875em;margin-bottom:1.25em}"]}),_})();var he=o(92132),_e=o(61009);let pe=(()=>{class _{constructor(d,q,G){this.store=d,this.router=q,this.dialog=G}isSubscriptionOnGoing(){let d=!1;return this.store.select(at.Rj).subscribe(G=>{null!=G&&G.length&&(d=!(null==G||!G.length))}),d}isRecurringSubscriptionOnGoing(){let d=!1;return this.store.select(at.IE).subscribe(G=>{d=!(null==G||!G.length)}),d}isSubscriptionActivate(){let d=this.isSubscriptionOnGoing()||this.isRecurringSubscriptionOnGoing();return d||(this.dialog.open(a.O,{panelClass:"qupi-pricing-dialog",backdropClass:"qupi-dialog-blur"}),this.router.navigateByUrl("dashboard?showPricing=false"),d)}canActivate(d,q){return this.isSubscriptionActivate()}}return _.\u0275fac=function(d){return new(d||_)(n.LFG(g.yh),n.LFG(A.F0),n.LFG(x.uw))},_.\u0275prov=n.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function Ze(_,S){if(1&_){const d=n.EpF();n.TgZ(0,"div",2)(1,"qupi-group",3)(2,"qupi-heading",4),n._uU(3,"Change your password"),n.qZA(),n.TgZ(4,"qupi-content",5),n._uU(5,"Enter your e-mail address and get link to change password!"),n.qZA()(),n.TgZ(6,"form",6),n.NdJ("submit",function(){n.CHM(d);const G=n.oxw();return n.KtG(G.submit())}),n._UZ(7,"qupi-text-input",7),n.TgZ(8,"qupi-button",8),n._uU(9,"Send e-mail"),n.qZA()()()}if(2&_){const d=n.oxw();n.xp6(6),n.Q6J("formGroup",d.passwordRestoreEmailForm),n.xp6(1),n.Q6J("control",d.passwordRestoreEmailForm.controls.email)("width","300px"),n.xp6(1),n.Q6J("width","250px")}}function Qe(_,S){1&_&&(n.TgZ(0,"div",9),n._UZ(1,"span",10),n.TgZ(2,"qupi-heading",11),n._uU(3,"Success"),n.qZA(),n.TgZ(4,"qupi-content",5),n._uU(5,"E-mail sent. Check out your inbox!"),n.qZA()())}function Fe(_,S){1&_&&(n.TgZ(0,"div",9),n._UZ(1,"span",12),n.TgZ(2,"qupi-heading",11),n._uU(3,"Fail"),n.qZA(),n.TgZ(4,"qupi-content",5),n._uU(5,"Something went wrong. Try again!"),n.qZA()())}let ze=(()=>{class _{constructor(d,q,G,ft){this.fb=d,this.store=q,this.route=G,this.validationService=ft}submit(){this.passwordRestoreEmailForm.markAsDirty(),this.passwordRestoreEmailForm.markAsTouched(),Object.values(this.passwordRestoreEmailForm.controls).forEach(G=>G.markAsTouched());const d=this.passwordRestoreEmailForm.getRawValue();
1if(this.passwordRestoreEmailForm.invalid)return Object.values(this.passwordRestoreEmailForm.controls).forEach(G=>{G.markAsDirty()}),void this.validationService.setUiErrors(this.passwordRestoreEmailForm);this.store.dispatch({type:"[AUTH] RestorePasswordEmail",payload:{email:d.email}})}ngOnInit(){this.initalizeForm(),this.sendEmailSuccess=this.store.select(d=>d.auth.passwordRestore.success)}initalizeForm(){this.passwordRestoreEmailForm=this.fb.group({email:["",V.kI.compose([V.kI.email,V.kI.required])]})}ngOnDestroy(){}}return _.\u0275fac=function(d){return new(d||_)(n.Y36(V.qu),n.Y36(g.yh),n.Y36(A.gz),n.Y36(Gt.R))},_.\u0275cmp=n.Xpm({type:_,selectors:[["qupi-password-restore-email"]],decls:6,vars:9,consts:[["class","password-restore",4,"ngIf"],["class","password-restore-success",4,"ngIf"],[1,"password-restore"],[1,"password-restore-heading"],["size","xxlg","fontWeight","extra-bold","justifyContent","center","textAlign","center"],["textAlign","center","justifyContent","center"],[1,"password-restore-form",3,"formGroup","submit"],["placeholder","E-mail address","label","Enter your e-mail address","type","text",3,"control","width"],["type","submit","theme","dodger-blue",3,"width"],[1,"password-restore-success"],["inlineSVG","/assets/images/svg/success-cloud.svg",1,"success-icon"],["size","xxlg","fontWeight","extra-bold","textAlign","center","justifyContent","center"],["inlineSVG","/assets/images/svg/error.svg",1,"success-icon"]],template:function(d,q){1&d&&(n.YNc(0,Ze,10,4,"div",0),n.ALo(1,"async"),n.YNc(2,Qe,6,0,"div",1),n.ALo(3,"async"),n.YNc(4,Fe,6,0,"div",1),n.ALo(5,"async")),2&d&&(n.Q6J("ngIf",null===n.lcZ(1,3,q.sendEmailSuccess)),n.xp6(2),n.Q6J("ngIf",!0===n.lcZ(3,5,q.sendEmailSuccess)),n.xp6(2),n.Q6J("ngIf",!1===n.lcZ(5,7,q.sendEmailSuccess)))},dependencies:[Tt.O5,qt.t,tt.r,ae.B,re.S,j.m,V._Y,V.JL,V.sg,gt.d$,Tt.Ov],styles:["[_nghost-%COMP%]{width:100%}.password-restore-heading[_ngcontent-%COMP%]{flex-direction:column;margin-bottom:1.875em}.password-restore-heading[_ngcontent-%COMP%] qupi-content[_ngcontent-%COMP%]{margin-top:1.25em}.password-restore-form[_ngcontent-%COMP%]{display:flex;flex-direction:column}.password-restore-form[_ngcontent-%COMP%] qupi-text-input[_ngcontent-%COMP%]{display:flex;justify-content:center}.password-restore-form[_ngcontent-%COMP%] re-captcha[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:1.875em}.password-restore-form[_ngcontent-%COMP%] qupi-button[_ngcontent-%COMP%]{align-self:center}.password-restore-success[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}.password-restore-success[_ngcontent-%COMP%] .success-icon[_ngcontent-%COMP%]{justify-content:center;display:flex;margin-bottom:1.25em}.password-restore-success[_ngcontent-%COMP%] qupi-heading[_ngcontent-%COMP%]{margin-bottom:.625em}.password-restore-success[_ngcontent-%COMP%] qupi-content[_ngcontent-%COMP%]{margin-bottom:1.875em}.password-restore-success[_ngcontent-%COMP%] qupi-button[_ngcontent-%COMP%]{align-self:center}"]}),_})();var Be=o(61276),Ge=o(26297),fe=o(33088),je=o(37554),Te=o(90066),Ne=o(60850),We=o(23322),ke=o(60639);function Ke(_,S){if(1&_&&(n.TgZ(0,"qupi-group",24)(1,"div")(2,"qupi-heading",25),n._uU(3),n.qZA()(),n.TgZ(4,"div",26)(5,"qupi-heading",27),n._uU(6,"Price:"),n.qZA(),n.TgZ(7,"qupi-heading")(8,"div"),n._uU(9),n.qZA()()()()),2&_){const d=n.oxw(2);n.xp6(2),n.Q6J("fontWeight","extra-bold"),n.xp6(1),n.hij(" ",d.selectedSubscription.name," "),n.xp6(6),n.lnq(" ",d.selectedSubscription.price,"",d.selectedSubscription.currencySymbol," / ",d.selectedSubscription.duration," ")}}function Je(_,S){1&_&&n._UZ(0,"div")}const Ye=function(_){return["code-redeem",_]};function $e(_,S){if(1&_&&(n.TgZ(0,"div",28),n._uU(1),n.qZA()),2&_){const d=S.ngIf;n.Q6J("ngClass",n.VKq(2,Ye,d.changed?"success":"fail")),n.xp6(1),n.hij(" ",d.message," ")}}function He(_,S){1&_&&n._UZ(0,"mat-spinner",29),2&_&&n.Q6J("diameter",25)}function Ve(_,S){if(1&_){const d=n.EpF();n.TgZ(0,"qupi-button",30),n.NdJ("click",function(){n.CHM(d);const G=n.oxw(2);return n.KtG(G.onSave(G.paymentForm))}),n._uU(1," Change card "),n.qZA()}}function Xe(_,S){1&_&&n._UZ(0,"div")}function tn(_,S){if(1&_){const d=n.EpF();n.TgZ(0,"form",1),n.NdJ("ngSubmit",function(){n.CHM(d);const G=n.oxw();return n.KtG(G.onSave(G.paymentForm))}),n.TgZ(1,"div",2),n.YNc(2,Ke,10,5,"qupi-group",3),n.TgZ(3,"qupi-group",4)(4,"qupi-content",5),n._uU(5," Accepted cards: "),n.qZA(),n._UZ(6,"img",6),n.TgZ(7,"div"),n._UZ(8,"img",7),n.qZA(),n.TgZ(9,"span",8),n._uU(10,"You will be charged every month / year. You can cancel anytime."),n.qZA()(),n.YNc(11,Je,1,0,"div",9),n.ALo(12,"async"),n.qZA(),n.TgZ(13,"qupi-group",10)(14,"div",11),n._UZ(15,"qupi-input-label",12)(16,"div",13),n.qZA(),n._UZ(17,"qupi-text-input",14)(18,"qupi-select",15)(19,"qupi-text-input",16)(20,"qupi-text-input",17)(21,"qupi-text-input",18),n.YNc(22,$e,2,4,"div",19),n.ALo(23,"async"),n.TgZ(24,"div",20)(25,"label",21),n._uU(26," QUPI secure payments "),n.qZA(),n.YNc(27,He,1,1,"mat-spinner",22),n.YNc(28,Ve,2,0,"qupi-button",23),n.qZA(),n.YNc(29,Xe,1,0,"div",9),n.ALo(30,"async"),n.qZA()()}if(2&_){const d=n.oxw();n.Udp("display",d.submittingForm?"none":"flex"),n.Q6J("formGroup",d.paymentForm),n.xp6(2),n.Q6J("ngIf",d.selectedSubscription),n.xp6(4),n.Q6J("src","/assets/images/jpg/visa-master-american.jpg",n.LSH),n.xp6(2),n.Q6J("src","/assets/images/svg/powered-by-stripe-dark-blue.svg",n.LSH),n.xp6(3),n.Q6J("ngIf",n.lcZ(12,22,d.sizeLtMiddle$))("ngIfElse",d.notice),n.xp6(4),n.Q6J("control",d.paymentForm.controls.str
1ipe)("errorMessage",null==d.stripeError?null:d.stripeError.message),n.xp6(2),n.Q6J("control",d.paymentForm.controls.cardholderName),n.xp6(1),n.Q6J("control",d.paymentForm.controls.country)("selections",d.countries)("selectValue","name"),n.xp6(1),n.Q6J("control",d.paymentForm.controls.city),n.xp6(1),n.Q6J("control",d.paymentForm.controls.postalCode),n.xp6(1),n.Q6J("control",d.paymentForm.controls.address),n.xp6(1),n.Q6J("ngIf",n.lcZ(23,24,d.codeRedeem$)),n.xp6(5),n.Q6J("ngIf",d.isSpinnerActive),n.xp6(1),n.Q6J("ngIf",!d.isSpinnerActive),n.xp6(1),n.Q6J("ngIf",!n.lcZ(30,26,d.sizeLtMiddle$))("ngIfElse",d.notice)}}let en=(()=>{class _{constructor(d,q,G,ft,bt){this.formBuilder=d,this.store=q,this.toastService=G,this.router=ft,this.paymentService=bt,this.isSpinnerActive=!1,this.sub=[],this.authToken$=this.store.select(yt=>yt.auth.jwt.token),this.countries=je._,this.userSubscriptions$=this.store.select(at.Rj)}ngOnInit(){return(0,u.mG)(this,void 0,void 0,function*(){this.stripe=window.Stripe(h.N.stripePublicKey),this.stripeElements=this.stripe.elements(),this.createForm({}),this.sub.push(this.authToken$.subscribe(d=>this.authToken=d)),this.sub.push(this.userSubscriptions$.subscribe(d=>this.userSubscriptions=d))})}ngAfterViewInit(){this.stripeCard=this.stripeElements.create("card",{style:{base:{color:"#32325d",lineHeight:"18px",fontFamily:"'Lato', sans-serif",fontSmoothing:"antialiased",fontSize:"16px","::placeholder":{color:"#aab7c4"}},invalid:{color:"#ff8aa4",iconColor:"#ff8aa4"}}}),this.stripeCard.mount("#card-element"),this.stripeCard.addEventListener("change",q=>{q.error?(this.stripeError=q.error,this.paymentForm.controls.stripe.markAsTouched(),this.paymentForm.controls.stripe.setErrors({stripe:q.error.message})):this.paymentForm.controls.stripe.setErrors(null)})}ngOnDestroy(){this.stripeCard&&this.stripeCard.unmount(),this.sub.forEach(d=>d.unsubscribe())}createForm(d){this.paymentForm=this.formBuilder.group({stripe:[void 0,V.kI.required],cardholderName:[void 0,V.kI.required],country:[void 0],city:[void 0,V.kI.required],postalCode:[void 0,V.kI.required],address:[void 0,V.kI.required]})}onSave(d){return(0,u.mG)(this,void 0,void 0,function*(){if(d.controls.stripe.setErrors(null),Object.values(d.controls).forEach(G=>G.markAsTouched()),d.invalid)return this.isSpinnerActive=!1,void this.toastService.warning("Form data error! Please correct form data and try again.");const q=this;this.isSpinnerActive||this.stripe.createPaymentMethod({type:"card",card:this.stripeCard,billing_details:{name:this.paymentForm.controls.cardholderName.value}}).then(G=>{if(G.error)throw this.isSpinnerActive=!1,this.toastService.warning("Stripe payment error! Please correct form data and try again."),this.paymentForm.controls.stripe.setErrors({stripe:G}),new Error("Stripe Error: "+G);{const bt=window.location.href.split("/");this.updateCard(bt[bt.length-1],G.paymentMethod.id,q)}}),this.isSpinnerActive=!0})}updateCard(d,q,G){this.paymentService.updatePaymentMethod(d,q).subscribe(bt=>{bt.id?(this.isSpinnerActive=!1,this.toastService.success("Card has been successfuly changed!"),setTimeout(function(){G.router.navigate(["/account/billing"])},1500)):(this.isSpinnerActive=!1,this.toastService.error(fe.Z.UNKNOWN_ERROR))},()=>{this.isSpinnerActive=!1,ke.log(fe.Z.UNKNOWN_ERROR),this.toastService.error(fe.Z.UNKNOWN_ERROR)})}}return _.\u0275fac=function(d){return new(d||_)(n.Y36(V.qu),n.Y36(g.yh),n.Y36(N.k),n.Y36(A.F0),n.Y36(Te.c))},_.\u0275cmp=n.Xpm({type:_,selectors:[["qupi-change-card"]],decls:1,vars:1,consts:[["class","payment-form",3,"formGroup","display","ngSubmit",4,"ngIf"],[1,"payment-form",3,"formGroup","ngSubmit"],[1,"payment-form-accepted-cards"],["class","selected-subscription-wrapper",4,"ngIf"],[1,"cards-wrapper"],["size","sm","fontWeight","bold",1,"payment-form-accepted-cards-label"],[1,"payment-form-accepted-cards-img",3,"src"],[1,"stripe-logo-img",3,"src"],[1,"charge-plan-information"],[4,"ngIf","ngIfElse"],[1,"payment-form-container"],[1,"form-row","w-100"],["label","Credit or debit card",3,"control","errorMessage"],["id","card-element"],["label","Cardholder name","placeholder","Enter cardholder name","width","100%",1,"payment-form-cardholder-name",3,"control"],["label","Country","placeholder","Choose country",1,"payment-form-country",3,"control","selections","selectValue"],["label","City","placeholder","Enter city","width","100%",1,"payment-form-city",3,"control"],["label","Postal code","placeholder","00-000","width","100%",1,"payment-form-postal-code",3,"control"],["label","Address","placeholder","Enter address","width","100%",1,"payment-form-address",3,"control"],[3,"ngClass",4,"ngIf"],[1,"submit-payment"],[1,"submit-payment-label"],[3,"diameter",4,"ngIf"],["theme","mid-blue","class","submit-payment-button",3,"click",4,"ngIf"],[1,"selected-subscription-wrapper"],[3,"fontWeight"],[1,"price-wrapper"],["fontWeight","bold",1,"price-heading"],[3,"ngClass"],[3,"diameter"],["theme","mid-blue",1,"submit-payment-button",3,"click"]],template:function(d,q){1&d&&n.YNc(0,tn,31,28,"form",0),2&d&&n.Q6J("ngIf",q.paymentForm)},dependencies:[Tt.mk,Tt.O5,qt.t,J.H,Ne.i,tt.r,ae.B,re.S,j.m,We.oO,xt.Ou,V._Y,V.JL,V.sg,Tt.Ov],styles:['.d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%]{font-size:16px;color:#215ca8;width:100%}[_nghost-%COMP%] qupi-text-input[_ngcontent-%COMP%]{margin-bottom:.9375em}[_nghost-%COMP%] .payment-form[_ngcontent-%COMP%]{padding-top:1.25em;flex-direction:column}[_nghost-%COMP%] .payment-form[_ngcontent-%COMP%] .cards-wrapper[_ngcontent-%COMP%]{flex-direction:column}[_nghost-%COMP%] .payment-form[_ngcontent-%COMP%] .payment-form-accepted-cards[_ngcontent-%COMP%]{display:flex;justify-content:space-between}[_nghost-%COMP%] .payment-form[_ngcontent-%COMP%] .payment-form-accepted-cards[_ngcontent-%COMP%] .charge-plan-information[_ngcontent-%COMP%]{font-size:.75em}[_nghost-%COMP%] .payment-form[_ngcontent-%COMP%] .payment-form-accepted-cards[_ngcontent-%COMP%] .selected-subscription-wrapper[_ngcontent-%COMP%]{margin-bottom:.625em;display:flex;flex-direction:column}[_nghost-%COMP%] .payment-form[_ngcontent-%COMP%] .payment-form-accepted-cards[_ngcontent-%COMP%] .selected-subscription-wrapper[_ngcontent-%COMP%] .price-wrapper[_ngcontent-%COMP%]{margin-top:.625em}@media (min-width: 1200px){[_nghost-%COMP%] .payment-form[_ngcontent-%COMP%] .payment-form-accepted-cards[_ngcontent-%COMP%]{flex-direction:column;justify-content:flex-start}}@media (min-width: 768px){[_nghost-%COMP%] .payment-form[_ngcontent-%COMP%]{padding:1.875em 60px}}@media (min-width: 1200px){[_nghost-%COMP%] .payment-form[_ngcontent-%COMP%]{padding:1.875em 80px;
1display:flex;flex-direction:row-reverse}[_nghost-%COMP%] .payment-form[_ngcontent-%COMP%] .payment-form-accepted-cards[_ngcontent-%COMP%]{margin-bottom:1.25em;margin-left:1.25em}}@media (min-width: 768px){[_nghost-%COMP%] .payment-form[_ngcontent-%COMP%] .sub-price[_ngcontent-%COMP%]{margin-bottom:0;width:50%}}@media (min-width: 1200px){[_nghost-%COMP%] .payment-form[_ngcontent-%COMP%] .sub-price[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%] .spinner-wrapper[_ngcontent-%COMP%]{display:flex;width:100%;justify-content:center;align-items:center;margin:1.875em 0}[_nghost-%COMP%] .payment-form-accepted-cards-img[_ngcontent-%COMP%]{width:152px;margin-top:.9375em;margin-bottom:.9375em}[_nghost-%COMP%] .stripe-logo-img[_ngcontent-%COMP%]{width:152px}[_nghost-%COMP%] .payment-form-expiry[_ngcontent-%COMP%]{justify-content:space-between}[_nghost-%COMP%] .payment-form-expiry-inputs[_ngcontent-%COMP%]{flex-direction:column;flex-basis:66%;margin-bottom:-10px}[_nghost-%COMP%] .payment-form-expiry-label[_ngcontent-%COMP%]{flex-direction:column;font-size:.75em;font-weight:700;margin:5%}[_nghost-%COMP%] .payment-form-reedem[_ngcontent-%COMP%]{margin-bottom:1.25em;margin-top:26px;display:flex}[_nghost-%COMP%] .submit-payment[_ngcontent-%COMP%]{margin-top:.9375em;width:100%;display:flex;justify-content:flex-end;align-items:center}[_nghost-%COMP%] .submit-payment[_ngcontent-%COMP%] .submit-payment-label[_ngcontent-%COMP%]{font-size:12px;font-weight:700;color:#a1bee3;align-self:flex-end;margin-right:1.875em}[_nghost-%COMP%] .submit-payment[_ngcontent-%COMP%] .submit-payment-button[_ngcontent-%COMP%]{width:100%}@media (min-width: 768px){[_nghost-%COMP%] .submit-payment[_ngcontent-%COMP%] .submit-payment-button[_ngcontent-%COMP%]{width:35%}}[_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%]{display:block}@media (min-width: 768px){[_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between}[_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-card-number[_ngcontent-%COMP%], [_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-city[_ngcontent-%COMP%], [_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-voucher-code[_ngcontent-%COMP%]{width:60%;margin-right:5%}[_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-cvv[_ngcontent-%COMP%], [_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-postal-code[_ngcontent-%COMP%], [_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-reedem[_ngcontent-%COMP%]{width:35%}[_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-expiry[_ngcontent-%COMP%]{width:100%;height:100px;flex-direction:row}[_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-expiry[_ngcontent-%COMP%] .payment-form-expiry-label[_ngcontent-%COMP%]{width:20%;margin:40px 5% 0 0;display:flex;align-items:flex-end}[_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-expiry[_ngcontent-%COMP%] .payment-form-expiry-inputs[_ngcontent-%COMP%]{flex-direction:row;width:75%;flex-basis:75%}[_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-expiry[_ngcontent-%COMP%] .payment-form-expiry-inputs[_ngcontent-%COMP%] .payment-form-expiry-year[_ngcontent-%COMP%]{flex-basis:46.5%;width:46.5%}[_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-expiry[_ngcontent-%COMP%] .payment-form-expiry-inputs[_ngcontent-%COMP%] .payment-form-expiry-month[_ngcontent-%COMP%]{flex-basis:46.5%;width:46.5%;margin-right:7%}[_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-cardholder-name[_ngcontent-%COMP%], [_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-country[_ngcontent-%COMP%]{flex-basis:47%;width:47%}[_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-cardholder-name[_ngcontent-%COMP%]{margin-right:6%}[_nghost-%COMP%] .payment-form-container[_ngcontent-%COMP%] .payment-form-address[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%] .code-redeem[_ngcontent-%COMP%]{font-weight:700;margin-top:-1em}[_nghost-%COMP%] .code-redeem.success[_ngcontent-%COMP%]{color:#8ee986}[_nghost-%COMP%] .code-redeem.fail[_ngcontent-%COMP%]{color:#ff8aa4}@media (min-width: 1200px){[_nghost-%COMP%] .notice[_ngcontent-%COMP%]{max-width:152px}}@media not all and (min-width: 1200px){[_nghost-%COMP%] .notice[_ngcontent-%COMP%]{margin:1.25em}}[_nghost-%COMP%] .init-price .qupi-heading{font-size:1.2em}[_nghost-%COMP%] .init-price.crossed .qupi-heading{color:#a1bee3;position:relative}[_nghost-%COMP%] .init-price.crossed .qupi-heading:after{content:"";top:50%;transform:translateY(-50%);left:-5%;position:absolute;width:90%;height:2px;background-color:#ff8aa4}[_nghost-%COMP%] .promotion-price .qupi-heading{font-size:1.75em}#card-element[_ngcontent-%COMP%]{box-shadow:0 2px 4px #1c5ba966;padding:9px 12px 12px;border-radius:.625em;margin-bottom:.9375em}']}),_})();const Ee=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"",component:nt,children:[{path:"login",component:Wt,canActivate:[ye.P]},{path:"forgot-password",component:ze,canActivate:[ye.P]},{path:"dashboard",loadChildren:()=>o.e(783).then(o.bind(o,90783)).then(_=>_.DashboardModule),canActivate:[Jt]},{path:"account",loadChildren:()=>Promise.all([o.e(246),o.e(217)]).then(o.bind(o,75217)).then(_=>
1_.AccountModule),canActivate:[Jt]},{path:"payments",loadChildren:()=>Promise.resolve().then(o.bind(o,65388)).then(_=>_.PaymentsModule),canActivate:[Jt]},{path:"leaderboards",loadChildren:()=>Promise.all([o.e(292),o.e(996)]).then(o.bind(o,12996)).then(_=>_.LeaderboardsModule),canActivate:[Jt,pe]},{path:"submit-question",loadChildren:()=>Promise.all([o.e(246),o.e(565)]).then(o.bind(o,74565)).then(_=>_.SubmitQuestionModule),canActivate:[Jt,pe]},{path:"statistics",loadChildren:()=>Promise.all([o.e(292),o.e(364)]).then(o.bind(o,75364)).then(_=>_.StatisticsModule),canActivate:[Jt,pe]},{path:"quiz",loadChildren:()=>o.e(708).then(o.bind(o,33708)).then(_=>_.QuizModule),canActivate:[Jt,pe]},{path:"register",component:le,canActivate:[he.g],data:{redirectUrl:"/dashboard"}},{path:"register-success",component:ie},{path:"restore-password",component:Le},{path:"share",loadChildren:()=>o.e(487).then(o.bind(o,80487)).then(_=>_.ShareModule),canActivate:[Jt]},{path:"plan-pricing",component:Me.F,data:ce.slickTopNav},{path:"change-plan-pricing",component:Me.F,data:ce.slickTopNav},{path:"contact",loadChildren:()=>o.e(698).then(o.bind(o,11698)).then(_=>_.ContactModule)},{path:"news",loadChildren:()=>o.e(103).then(o.bind(o,29103)).then(_=>_.NewsModule)},{path:"change-card/:id",component:(()=>{class _{constructor(d,q,G){this.store=d,this.router=q,this.comingSoonService=G,this.size$=this.store.select(ft=>ft.app.size),this.xSmall$=this.store.select(ft=>ft.app.size.xSmall),this.payByCard=!0,this.payWithPayPal=!1,this.sub=[],this.tabLinks=[{label:"Pay by Card",link:"/payments/card"},{label:"Pay with PayPal",clickPrevent:()=>this.comingSoonService.openDialog()}]}ngOnInit(){this.sub.push(this.xSmall$.subscribe(d=>{d&&(this.payByCard=!1)}))}ngOnDestroy(){this.sub.forEach(d=>d.unsubscribe())}selectMobileProvider(d,q,G){return G&&(G.stopPropagation(),G.preventDefault()),1===d?(this.payWithPayPal=!0,this.payByCard=!1):(this.payByCard=!0,this.payWithPayPal=!1),this.router.navigate([q,{outlets:{primary:null}}])}}return _.\u0275fac=function(d){return new(d||_)(n.Y36(g.yh),n.Y36(A.F0),n.Y36(Be.t))},_.\u0275cmp=n.Xpm({type:_,selectors:[["qupi-change-payment"]],decls:10,vars:0,consts:[["justifyContent","center","textAlign","center","size","xxlg","fontWeight","extra-bold","margin","0 0 20px 0",1,"payments-header"],["qupiHeadingUnderline",""],["justifyContent","center","textAlign","center",1,"payments-subheader"],["round","md",1,"payments-card"]],template:function(d,q){1&d&&(n.TgZ(0,"qupi-heading",0),n._uU(1," Update payment "),n.TgZ(2,"span",1),n._uU(3,"method"),n.qZA()(),n.TgZ(4,"qupi-content",2),n._uU(5," Choose your preferred payment method and enter your details to secure your access to QUPI\n"),n.qZA(),n.TgZ(6,"qupi-card",3),n.ynx(7),n._UZ(8,"qupi-change-card"),n.BQk(),n.qZA(),n._UZ(9,"qupi-payment-satisfaction"))},dependencies:[mt.A,ae.B,re.S,ge.k,Ge.G,en],styles:[".d-none[_ngcontent-%COMP%]{display:none}.d-block[_ngcontent-%COMP%]{display:block}.svg-ico-text[_ngcontent-%COMP%]{margin-right:10px}.mat-divider-custom[_ngcontent-%COMP%]{display:flex;width:100%;max-width:initial;height:1px;background-color:#dae4f5}.qupi-content-medium-bold-class[_ngcontent-%COMP%]{font-size:16px;font-weight:800;color:#215ca8}.plan-upgrade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none}.plan-cancel[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ff8aa4;text-decoration:none;cursor:pointer;margin-top:15px}.change-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#215ca8;text-decoration:none;cursor:pointer;margin-top:15px}.qupi-link[_ngcontent-%COMP%]{font-weight:700;color:#215ca8;text-decoration:none}[_nghost-%COMP%]{width:100%;display:block;color:#215ca8}[_nghost-%COMP%] .payments-header[_ngcontent-%COMP%]{margin-top:1.875em;margin-bottom:1.875em}[_nghost-%COMP%] .payments-subheader[_ngcontent-%COMP%]{margin-bottom:1.875em;justify-content:center}[_nghost-%COMP%] .payments-card[_ngcontent-%COMP%]{flex-direction:column;margin-top:1.25em;margin-bottom:1.25em;padding:0}@media (min-width: 1200px){[_nghost-%COMP%] .payments-card[_ngcontent-%COMP%]{flex-direction:row}}[_nghost-%COMP%] .payments-card[_ngcontent-%COMP%] .payments-card-nav[_ngcontent-%COMP%]{background:#f9f9f9;width:100%}[_nghost-%COMP%] .payments-card[_ngcontent-%COMP%] .payments-card-nav[_ngcontent-%COMP%] .payments-card-nav-link[_ngcontent-%COMP%]{font-weight:600;color:#1c5ba9;padding-top:35px;padding-bottom:35px;box-shadow:inset 2px -2px 6px #1c5ba933}[_nghost-%COMP%] .payments-card[_ngcontent-%COMP%] .payments-card-nav[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{background:#fff;font-weight:900;color:#43b3f7}@media (min-width: 1200px){[_nghost-%COMP%] .payments-card[_ngcontent-%COMP%]{max-width:920px;margin:1.875em auto}}[_nghost-%COMP%] .payments-footer[_ngcontent-%COMP%]{flex-direction:column;margin-top:1.875em;margin-bottom:1.875em;width:100%;align-items:center}[_nghost-%COMP%] .payments-footer[_ngcontent-%COMP%] qupi-content[_ngcontent-%COMP%]{margin-top:.9375em}.mat-expansion-panel-header[aria-disabled=true][_ngcontent-%COMP%], .mat-expansion-panel-header[_ngcontent-%COMP%], .mat-expansion-panel-header-title[_ngcontent-%COMP%]{color:#215ca8;cursor:pointer}.mat-expansion-panel-header[_ngcontent-%COMP%]{background:#f9f9f9}.mat-expansion-expanded[_ngcontent-%COMP%] .mat-expansion-panel-header[aria-disabled=true][_ngcontent-%COMP%], .mat-expansion-expanded[_ngcontent-%COMP%] .mat-expansion-panel-header[_ngcontent-%COMP%], .mat-expansion-expanded[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%]{font-weight:900;color:#43b3f7}.mat-expansion-expanded[_ngcontent-%COMP%] .mat-expansion-panel-header[_ngcontent-%COMP%]{border-bottom:4px solid #43b3f7;background:#fff}.mat-expansion-panel[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none}[_nghost-%COMP%] .mat-expansion-indicator{display:none!important}"]}),_})()}]},{path:"admin",loadChildren:()=>o.e(925).then(o.bind(o,94925)).then(_=>_.AdminModule),canActivate:[Jt,xe.u,_e.q]},...h.N.production?[]:[{path:"ui",component:Re}],{path:"**",redirectTo:"login"}];let Se=(()=>{class _{}return _.\u0275fac=function(d){return new(d||_)},_.\u0275mod=n.oAB({type:_}),_.\u0275inj=n.cJS({imports:[A.Bz.forRoot(Ee,{scrollPositionRestoration:"enabled",anchorScrolling:"enabled"}),A.Bz]}),_})();var on=o(2174),sn=o(76360),an=o(22290),rn=o(21645);class cn{serialize(S){let d=S.root;for(;d.firstChild;)d=d.firstChild;const{url:q,root:{queryParams:G}}=S,{params:ft}=d;return{url:q,params:ft,queryParams:G,component:d.component}}}var ln=o(90640),pn=o(64966),dn=o(41927),de=o(2485),un=o(87403),gn=o(84980),Ae=o(98190),mn=o(50094),hn=o(12832),De=o(40520);const ue=h.N.api;let Ce=(()=>{class _{constructor(d){this.http=d}getUserSubscriptions(){return this.http.get(ue.baseURL+"/api/v1/user-subscriptions")}getUserRecurringSubscriptions(){return this.http.get(ue.baseURL+"/api/v1/recurring-subscriptions")}userSpecialAction(d){return this.http.post(ue.baseURL+"/api/v1/user/special-action",{actionType:d})}fbShared(d){return this.http.post(ue.baseURL+"/api/v1/share/fbShare",d)}}return _.\u0275fac=function(d){return new(d||_)(n.LFG(De.eN))},_.\u0275prov=n.Yz7({token:_,factory:_.\u0275fac}),_})();var _n=o(83596);let Pn=(()=>{class _{constructor(d,q,G,ft,bt,yt,te,Rt,Et,se){this.actions$=d,this.subscriptionsService=q,this.pageContentService=G,this.reportProblemService=ft,this.savedQuizzesService=bt,this.topNavPortalService=yt,this.sideNavUserPortalService=te,this.userService=Rt,this.newsService=Et,this.injector=se,this.get
1Subscriptions$=(0,D.GW)(()=>this.actions$.pipe((0,D.l4)("[CORE] GET_SUBSCRIPTIONS"),(0,Mt.z)(Yt=>this.subscriptionsService.getPricingPlans().pipe((0,m.U)(At=>new i.tx(At)),(0,Ot.K)(At=>(0,Ct.of)(new i.gM(At))))))),this.getPageContent$=(0,D.GW)(()=>this.actions$.pipe((0,D.l4)("[CORE] GET_PAGE_CONTENT"),(0,Mt.z)(Yt=>this.pageContentService.getBySlug(Yt.payload).pipe((0,m.U)(At=>new i.NE(At)),(0,Ot.K)(At=>(0,Ct.of)(new i.le(At))))))),this.getPricingPlans$=(0,D.GW)(()=>this.actions$.pipe((0,D.l4)("[CORE] GET_SUBSCRIPTIONS"),(0,Mt.z)(Yt=>this.subscriptionsService.getPricingPlans().pipe((0,m.U)(At=>new i.tx(At)),(0,Ot.K)(At=>(0,Ct.of)(new i.gM(At))))))),this.getNews$=(0,D.GW)(()=>this.actions$.pipe((0,D.l4)("[CORE] GetNews"),(0,Mt.z)(Yt=>this.newsService.getNews().pipe((0,m.U)(At=>new i.zK(At)),(0,Ot.K)(At=>(0,Ct.of)(new i.ob(At))))))),this.reportQuestionProblemDialog$=(0,D.GW)(()=>this.actions$.pipe((0,D.l4)("[CORE] REPORT_QUESTION_PROBLEM_DIALOG"),(0,m.U)(Yt=>this.reportProblemService.openDialog(Yt.payload,gn.s))),{dispatch:!1}),this.savedQuizzesDialog$=(0,D.GW)(()=>this.actions$.pipe((0,D.l4)("[CORE] SAVED_QUIZZES_DIALOG"),(0,m.U)(Yt=>this.savedQuizzesService.openDialog())),{dispatch:!1}),this.getSavedQuizzes$=(0,D.GW)(()=>this.actions$.pipe((0,D.l4)("[CORE] GET_SAVED_QUIZZES"),(0,Mt.z)(Yt=>this.savedQuizzesService.getSavedQuizzes().pipe((0,m.U)(At=>new i.id(At)),(0,Ot.K)(At=>(0,Ct.of)(new i.OD(At))))))),this.portals$=(0,D.GW)(()=>(0,un.$e)(Ee,{actions$:this.actions$,topNavPortalService:this.topNavPortalService,sideNavUserPortalService:this.sideNavUserPortalService,injector:this.injector}),{dispatch:!1}),this.confirmShare$=(0,D.GW)(()=>this.actions$.pipe((0,D.l4)("[CORE] SHARE_QUESTION"),(0,Mt.z)(Yt=>this.userService.fbShared(Yt.payload).pipe((0,m.U)(At=>new i.W_(!0)),(0,Ot.K)(At=>(0,Ct.of)(new i.oL(!1)))))))}}return _.\u0275fac=function(d){return new(d||_)(n.LFG(D.eX),n.LFG(de.d),n.LFG(Ae.Z),n.LFG(mn.w),n.LFG(hn.C),n.LFG($t.v),n.LFG(rt.e),n.LFG(Ce),n.LFG(_n.Y),n.LFG(n.zs3))},_.\u0275prov=n.Yz7({token:_,factory:_.\u0275fac}),_})();var yn=o(16913),fn=o(40766);let v=(()=>{class _{constructor(d,q,G,ft){this.actions$=d,this.toast=q,this.userService=G,this.subscriptionsService=ft,this.getUserSubscriptions$=(0,D.GW)(()=>this.actions$.pipe((0,D.l4)("[ACCOUNT] GetUserSubscriptions","[AUTH] LoginSuccess"),(0,Mt.z)(bt=>this.userService.getUserSubscriptions().pipe((0,m.U)(yt=>new Zt.wt(yt)),(0,Ot.K)(yt=>(0,Ct.of)(new Zt.OM(yt))))))),this.getUserRecurringSubscriptions$=(0,D.GW)(()=>this.actions$.pipe((0,D.l4)("[ACCOUNT] GetUserRecurringSubscriptions","[AUTH] LoginSuccess","[AUTH] LoginBasicRefresh"),(0,Mt.z)(bt=>this.subscriptionsService.getRecurringSubscriptions().pipe((0,m.U)(yt=>new Zt.Vq(yt.body)),(0,Ot.K)(yt=>(0,Ct.of)(new Zt.F6(yt))))))),this.cancelUserRecurringSubscriptions$=(0,D.GW)(()=>this.actions$.pipe((0,D.l4)("[ACCOUNT] CancelUserSubscriptions"),(0,Mt.z)(bt=>this.subscriptionsService.cancelSubscription().pipe((0,m.U)(yt=>(this.toast.success("Subscription has been successfully cancelled!"),new Zt._i(yt))),(0,Ot.K)(yt=>(this.toast.error("Subscription deactivation failed due to unknown error!"),(0,Ct.of)(new Zt.A9(yt)))))))),this.userAction$=(0,D.GW)(()=>this.actions$.pipe((0,D.l4)("[ACCOUNT] UserSpecialAction"),(0,Mt.z)(bt=>this.userService.userSpecialAction(bt.payload).pipe((0,m.U)(yt=>new Zt.$S(yt)),(0,Ot.K)(yt=>(0,Ct.of)(new Zt.ed(yt)))))))}}return _.\u0275fac=function(d){return new(d||_)(n.LFG(D.eX),n.LFG(N.k),n.LFG(Ce),n.LFG(de.d))},_.\u0275prov=n.Yz7({token:_,factory:_.\u0275fac}),_})();var R=o(12011),T=o(46245),it=o(50888);let st=(()=>{class _ extends K.x0{constructor(d,q){super(d),(0,Tt.PM)(d)&&super.setDeviceInfo(q.headers["user-agent"]||"")}}return _.\u0275fac=function(d){return new(d||_)(n.LFG(n.Lbi),n.LFG(it.Z,8))},_.\u0275prov=n.Yz7({token:_,factory:_.\u0275fac}),_})(),Cn=(()=>{class _{}return _.\u0275fac=function(d){return new(d||_)},_.\u0275mod=n.oAB({type:_,bootstrap:[$]}),_.\u0275inj=n.cJS({providers:[zt.e,pn.w,rn.B,yn.y,fn.Y,Te.c,dn._,ln.s,de.d,Ce,Ae.Z,Jt,{provide:ct.GC,useClass:cn},{provide:K.x0,useClass:st}],imports:[t.b2,sn.PW,Se,on.m.forRoot(),g.Aw.forRoot(F),Z.wn.forRoot({pageTracking:{clearHash:!0}}),D.sQ.forRoot([ee,Pn,v]),ct.Qi.forRoot({navigationActionTiming:ct.R0.PostActivation,stateKey:"router"}),h.N.production?[]:z.FT.instrument(),an.Rh.forRoot({timeOut:7e3}),gt.vi.forRoot({baseUrl:h.N.URL}),B.Mh.forRoot(),R.hO.initializeApp(h.N.firebase),T.XZ,z.FT.instrument({maxAge:25,logOnly:h.N.production}),De.JF]}),_})();o(55386);var Oe=o(60639);h.N.production&&(0,n.G48)(),h.N.hmr?(Oe.error("HMR is not enabled for webpack-dev-server!"),Oe.log("Are you using the --hmr flag for ng serve?")):t.q6().bootstrapModule(Cn).catch(_=>Oe.log(_))},42945:(Q,f,o)=>{"use strict";o.d(f,{HA:()=>n,IQ:()=>l,LJ:()=>t,P3:()=>i});const t={Test:1,Learning:2},n={Easy:1,Medium:2,Hard:3,All:[1,2,3]},i={1:"Answered Correct",2:"Answered Incorrect"},l={Quick:1,Custom:2}},18054:(Q,f,o)=>{"use strict";o.d(f,{y:()=>et});var t=o(59312);o(98301);const m={Create:"create",Read:"read",Update:"update",Delete:"delete"},r=(ot,X=[])=>new Proxy(ot,{get:(F,z)=>{const D=[...X,z];return"object"==typeof F[z]?r(F[z],D):D.join(".")}}),a=Object.assign({},m),h=Object.assign({},m),C=Object.assign({},m),P=Object.assign({},m),M={Self:"self",Avg:"avg",Other:"other"},y={Attempted:M,Progress:M,FirstTry:M,QuestionOfTheDay:M},B=Object.assign(Object.assign({},m),{Statistics:"statistics"}),Z=Object.assign({},m),b=Object.assign(Object.assign({},m),{Activate:"activate"}),N=Object.assign({},m),K=Object.assign({},m),A=Object.assign({},m),$=Object.assign({},m),W={BodySystem:m,Discipline:m,Country:m,FeedbackCategory:m,FieldOfStudy:m,Lab
1Value:m,Regions:m,WorldRegions:m,University:m},_t=Object.assign({},m),ct=Object.assign({},m);class at{}at.Question=a,at.UserManagement=B,at.SubscriptionManagement=K,at.UserSubscriptionManagement=N,at.PromotionManagement=A,at.MailingManagement=$,at.Dictionaries=W,at.QuestionNote=h,at.QuestionFeedBack=C,at.UserQuestion=P,at.Quiz={Quick:"quick",Custom:"custom",Restore:"restore",Download:"download",Sync:"sync"},at.QuestionOfTheDay="questionOfTheDay",at.Statistics=y,at.Leaderboard={Global:"global",User:"user"},at.UserSelf="userSelf",at.Subscription=b,at.UserSubscription=Z,at.AdminEvents={View:"view"},at.RoleManagement=_t,at.PageContentManagement=ct,(0,t.gn)([(({name:ot,description:X})=>(F,z)=>{Reflect.defineMetadata("ROLE_NODE_METADATA",{name:ot,description:X},F[z])})({name:"Questions management"})],at,"Question",void 0);const et=r(at)},57252:Q=>{function f(o){var t=new Error("Cannot find module '"+o+"'");throw t.code="MODULE_NOT_FOUND",t}f.keys=()=>[],f.resolve=f,f.id=57252,Q.exports=f},75042:()=>{}},Q=>{Q.O(0,[736],()=>Q(Q.s=56463)),Q.O()}]);
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.