"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[65593],{65593:(e,i,t)=>{t.r(i),t.d(i,{FreemiumBiometricLoginModalComponent:()=>f});var o=t(10467),n=t(86654),r=t(86246),m=t(47551),c=t(79555),a=t(49882),l=t(54438),b=t(2910),u=t(86198),s=t(43570),d=t(73955);let f=(()=>{var e;class FreemiumBiometricLoginModalComponent{constructor(){this.biometricMethod="finger",this.LOGIN_METHODS={face:{title:"freemium.biometricloginenablefaceid",button:"freemium.biometricloginenablefaceid",icon:"moodle-face-id",type:"freemium.biometriclogintypefaceid"},finger:{title:"freemium.biometricloginenabletouchid",button:"freemium.biometricloginenabletouchid",icon:"finger-print",type:"freemium.biometriclogintypetouchid"},biometric:{title:"freemium.biometricloginenablefingerprint",button:"freemium.biometricloginenablefingerprint",icon:"finger-print",type:"freemium.biometriclogintypefingerprint"}},this.sessionExpiredObserver=a.z.on(a.z.SESSION_EXPIRED,(0,o.A)((function*(){yield c.W3.dismiss()})))}enableBiometricLogin(){var e=this;return(0,o.A)((function*(){yield r.C.setUserEnabledBiometricLogin(!0),yield c.W3.dismiss();const i=c.HT.instant(e.LOGIN_METHODS[e.biometricMethod].type),t=c.HT.instant("freemium.biometricloginsuccessfullyenabled",{biometricMethod:i});yield m.CoreToasts.show({message:t,duration:m.ToastDuration.LONG})}))()}skip(){return(0,o.A)((function*(){yield c.W3.dismiss(!0)}))()}ngOnDestroy(){this.sessionExpiredObserver.off()}}return(e=FreemiumBiometricLoginModalComponent).ɵfac=function FreemiumBiometricLoginModalComponent_Factory(i){return new(i||e)},e.ɵcmp=l.VBU({type:e,selectors:[["freemium-biometric-login-modal"]],inputs:{biometricMethod:"biometricMethod"},standalone:!0,features:[l.aNF],decls:20,vars:16,consts:[[1,"freemium-enable-biometric"],[1,"freemium-enable-biometric__header"],["aria-hidden","true",1,"freemium-enable-biometric__header__image",3,"name"],[1,"item-heading"],[1,"freemium-enable-biometric__body"],[1,"freemium-enable-biometric__footer"],["expand","full",3,"click"],["expand","full","fill","clear",1,"primary-button",3,"click"]],template:function FreemiumBiometricLoginModalComponent_Template(e,i){1&e&&(l.j41(0,"div",0)(1,"div",1),l.nrm(2,"ion-icon",2),l.j41(3,"h4",3),l.EFF(4),l.nI1(5,"translate"),l.k0s()(),l.j41(6,"div",4)(7,"p"),l.EFF(8),l.nI1(9,"translate"),l.k0s(),l.j41(10,"p"),l.EFF(11),l.nI1(12,"translate"),l.k0s()(),l.j41(13,"div",5)(14,"ion-button",6),l.bIt("click",(function FreemiumBiometricLoginModalComponent_Template_ion_button_click_14_listener(){return i.enableBiometricLogin()})),l.EFF(15),l.nI1(16,"translate"),l.k0s(),l.j41(17,"ion-button",7),l.bIt("click",(function FreemiumBiometricLoginModalComponent_Template_ion_button_click_17_listener(){return i.skip()})),l.EFF(18),l.nI1(19,"translate"),l.k0s()()()),2&e&&(l.R7$(2),l.Y8G("name",i.LOGIN_METHODS[i.biometricMethod].icon),l.R7$(2),l.SpI(" ",l.bMT(5,6,i.LOGIN_METHODS[i.biometricMethod].title)," "),l.R7$(4),l.SpI(" ",l.bMT(9,8,"freemium.biometricloginwithfingerorface")," "),l.R7$(3),l.SpI(" ",l.bMT(12,10,"freemium.biometricloginturnoff")," "),l.R7$(4),l.SpI(" ",l.bMT(16,12,i.LOGIN_METHODS[i.biometricMethod].button)," "),l.R7$(3),l.SpI(" ",l.bMT(19,14,"freemium.biometricloginskip")," "))},dependencies:[n.n,b.Jm,b.iq,u.t,s.T,d.D9],styles:[".freemium-enable-biometric[_ngcontent-%COMP%]{width:80%;max-width:300px;border-radius:8px;margin:auto;background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));color:var(--ion-text-color, #000);box-sizing:border-box;padding:1em}.freemium-enable-biometric__header[_ngcontent-%COMP%]{text-align:center}.freemium-enable-biometric__header__image[_ngcontent-%COMP%]{padding-top:1em;font-size:26px}.freemium-enable-biometric__body[_ngcontent-%COMP%]{width:90%;margin:auto;text-align:start}.freemium-enable-biometric__footer[_ngcontent-%COMP%]{margin:1.5em auto 1em;width:90%}.freemium-enable-biometric__footer[_ngcontent-%COMP%]   ion-button[_ngcontent-%COMP%]{margin:auto;width:100%;white-space:normal;--border-radius: 8px}.freemium-enable-biometric__footer[_ngcontent-%COMP%]   .primary-button[_ngcontent-%COMP%]{color:var(--ion-color-primary)}"],changeDetection:0}),FreemiumBiometricLoginModalComponent})()}}]);