PageSourceSearch

https://et.training/chunk-C58ZRVFc.js

js et.training collected 2026-10-02 15:15:16 UTC 8,796 bytes, 1 lines download raw bytes

1import {n as nr,a as M1,g as g2,C as C5}from'./chunk-V2LATOYx.js';import {J as Jp,P as Ps,X as Xt,t as ta,F as i$1,a as Br,G as Y,H as F,K as Y$1,L as c,M as ze,N as J0,f as fD,R as vi,$ as $t,T as ar,O as Ot,s as sh,U as Lh,V as LT,Z as FT,e as CT,l as ll,S as Si,c as bh,d as sl,g as lw,p as pT,k as kh,_ as og,a0 as DI,u as ul,a1 as jT,j as AT,h as fE,C as Ch,i as dl,n as hT,a2 as pw,a3 as rg,a4 as ww,a5 as wI,m as Xh,q as qu,W as Wu,a9 as fw,D as ep,z as qv}from'./main-3KPETXYL.js';import'./chunk-CTW1OXdN.js';import'./chunk-c8ygZ1UR.js';import {X as Xn,q as qn,Q as Qe,U as Un,H as Hn,S as Se$1,o as on,n as nn}from'./chunk-BpvYLVKx.js';import'./chunk-BTlVHQ4w.js';import {_ as _1,s as s2,c as v4}from'./chunk-BB6DNB3x.js';import'./chunk-BKV6SBtl.js';import'./chunk-DgYqYx-b.js';var be=["pw"],he=t=>({"is-invalid":t});function Ce(t,f){if(t&1&&(Si(0,"p",16),lw(1),sl()),t&2){let e=AT().$implicit;fE(),dl(" ",e("UI.redirect_note")," ");}}function Se(t,f){if(t&1&&bh(0,"fa-icon",24),t&2){let e=AT(2);Ch("icon",e.faShow);}}function Ie(t,f){if(t&1&&bh(0,"fa-icon",24),t&2){let e=AT(2);Ch("icon",e.faHide);}}function Me(t,f){if(t&1&&(Si(0,"code",36),lw(1),sl()),t&2){let e=AT(3);fE(),dl(" ",e.errorMessage," ");}}function Ee(t,f){if(t&1&&(Si(0,"div",26)(1,"div",33),bh(2,"fa-icon",34),Si(3,"span",35),lw(4),sl()(),pT(5,Me,2,1,"code",36),sl()),t&2){let e=AT().$implicit,i=AT();fE(2),Ch("icon",i.faBug),fE(2),dl("",e("UI.error"),":"),fE(),hT(i.errorMessage?5:-1);}}function Le(t,f){if(t&1){let e=CT();ll(0),Si(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",7),bh(5,"img",8),sl(),Si(6,"div",9)(7,"h1",10),lw(8),sl(),bh(9,"p",11),sl(),Si(10,"div",9)(11,"p",12),lw(12),sl()()()(),Si(13,"div",13)(14,"div",14),bh(15,"app-language-switcher"),sl(),Si(16,"div",15),pT(17,Ce,2,1,"p",16),Si(18,"form",17,0),kh("ngSubmit",function(){qu(e);let a=jT(19),l=AT();return Wu(a.form.valid&&l.onSubmit())}),Si(20,"div",18)(21,"label",19),lw(22),Si(23,"sup"),lw(24,"*"),sl()(),Si(25,"input",20,1),og("ngModelChange",function(a){qu(e);let l=AT();return fw(l.model.email,a)||(l.model.email=a),Wu(a)}),sl(),DI(),sl(),Si(27,"div",18)(28,"label",21),lw(29),Si(30,"sup"),lw(31,"*"),sl()(),Si(32,"div",22)(33,"span",23),kh("click",function(){qu(e);let a=AT();return Wu(a.togglePassword())}),pT(34,Se,1,1,"fa-icon",24)(35,Ie,1,1,"fa-icon",24),sl(),Si(36,"input",25,2),og("ngModelChange",function(a){qu(e);let l=AT();return fw(l.model.password,a)||(l.model.password=a),Wu(a)}),sl(),DI(),sl()(),pT(39,Ee,6,3,"div",26),Si(40,"button",27),lw(41),sl(),Si(42,"div",28)(43,"div",29)(44,"p",30)(45,"sup"),lw(46,"*"),sl(),lw(47),sl()(),Si(48,"div",29)(49,"p",31)(50,"a",32),lw(51),sl()()()()()()()(),ul();}if(t&2){let e=f.$implicit,i=jT(19),a=jT(26),l=jT(38),d=AT();fE(5),Ch("src",d.logoUrl,ep)("alt","DSAG Academy"),fE(3),dl(" ",d.loginMessage," "),fE(),Ch("innerHTML",e("UI.login_no_Account_dsag"),qv),fE(3),dl("\xA9",d.actualYear," DSAG GmbH, All rights reserved."),fE(5),hT(d.returnUrl?17:-1),fE(5),dl(" ",e("UI.email")),fE(3),Ch("placeholder",pw(e("UI.email"))),rg("ngModel",d.model.email),Ch("ngClass",ww(19,he,i.submitted&&a.invalid)),wI(),fE(4),dl(" ",e("UI.password")),fE(5),hT(d.showPw?35:34),fE(2),rg("ngModel",d.model.password),Ch("ngClass",ww(21,he,i.submitted&&l.invalid)),wI(),fE(3),hT(d.error?39:-1),fE(2),dl(" ",e("UI.sign_in")," "),fE(6),dl(" ",e("UI.form_required_field")),fE(4),Xh(e("UI.forgot_password"));}}var we=(()=>{class t{constructor(e,i,a,l,d,ve,ye){this.authService=e,this.errorHandler=i,this.router=a,this.route=l,this.plausibleService=d,this.translateService=ve,this.cdr=ye,this.model={},this.faBug=_1,this.redirect="",this.faShow=s2,this.faHide=v4,this.showPw=false,this.partnerId=i$1.partner.dsag;}ngOnInit(){this.logoUrl="assets/logo/espresso-tutorials-logo.png",this.actualYear=M1(new Date,"yyyy"),this.initData();}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),this.subscriptionGeoIp&&this.subscriptionGeoIp.unsubscribe();}initData(){this.returnUrl=this.route.snapshot.queryParams.returnUrl,this.logoUrl="assets/logo/customer/dsag-logo-light.png",this.loginMessage=this.translateService.translate("UI.login_at_dsag"),this.returnUrl&&(this.redirect=`?returnUrl=${this.returnUrl}`);}onSubmit(){this.loading=true,this.logIn();}logIn(){this.subscription=this.authService.logIn(this.model.email.trim(),this.model.password.trim(),this.partnerId).subscribe(e=>{e.data?.company;e.data?.sapConnectionType;this.plausibleService.sendEvent("userAuth",{event:"userLogin DSAG"}),this.returnUrl?this.router.navigateByUrl(this.returnUrl).then(()=>{}):this.router.navigateByUrl("/dashboard/dsag-certificates").then(()=>{});},e=>{e.error.code==="2FA"?this.router.navigateByUrl("two-factor/"+e.error.twoFactorIdentifier+this.redirect).then(()=>{}):(this.error=e.error,this.errorMessage=this.errorHandler.errorMessageHandler(e));});}togglePassword(){this.showPw?(this.showPw=false,this.icons=this.faShow,this.pw.nativeElement.type="password"):(this.showPw=true,this.icons=this.faHide,this.pw.nativeElement.type="text");}static{this.\u0275fac=function(i){return new(i||t)(Br(Y),Br(g2),Br(F),Br(Y$1),Br(c),Br(ze),Br(J0))};}static{this.\u0275cmp=fD({type:t,selectors:[["app-login"]],viewQuery:function(i,a){if(i&1&&Lh(be,5),i&2){let l;LT(l=FT())&&(a.pw=l.first);}},standalone:false,decls:1,vars:0,consts:[["f","ngForm"],["email","ngModel"],["pw","","password","ngModel"],[4,"transloco"],[1,"flex","h-auto","w-full","flex-row","flex-wrap","items-center","justify-center","bg-white","md:h-screen"],[1,"bg-transient","relative","flex","w-full","items-center","justify-center","bg-cover","bg-center","bg-no-repeat","p-8","md:min-
1h-screen","md:w-1/2","md:p-16"],[1,"mx-auto","flex","h-full","w-full","max-w-sm","flex-col"],[1,"mb-4","block","h-auto","w-56"],[1,"block","h-auto","w-full","max-w-logo",3,"src","alt"],[1,"mt-32"],[1,"text-3xl","font-light","leading-tight","text-white"],[1,"mt-4","text-base","font-light","leading-tight","text-white",3,"innerHTML"],[1,"text-xs","font-light","text-white"],[1,"relative","flex","w-full","items-center","justify-center","py-16","md:min-h-screen","md:w-1/2"],[1,"absolute","right-0","top-0","mr-4","mt-4"],[1,"mx-auto","w-full","max-w-sm"],[1,"my-4","rounded","border","border-solid","border-gray-500","bg-gray-300","px-3","py-2","text-center","text-xs","font-semibold","text-gray-700"],["novalidate","",1,"mb-4","mt-8",3,"ngSubmit"],[1,"mb-4"],["for","email",1,"mb-2","block","text-sm","font-bold","text-gray-700"],["autocomplete","username","type","email","name","email","id","email","required","",1,"w-full","appearance-none","rounded-lg","border","border-gray-700","px-4","py-3","text-base","leading-none","text-gray-800","placeholder-gray-700","shadow-none","focus:shadow-outline","focus:outline-none",3,"ngModelChange","ngModel","ngClass","placeholder"],["for","password",1,"mb-2","block","text-sm","font-bold","text-gray-700"],[1,"relative"],[1,"absolute","right-0","top-0","mr-2","mt-2","flex","h-6","w-6","cursor-pointer","appearance-none","items-center","justify-center","border-0","bg-transparent","outline-none","focus:outline-none",3,"click"],[1,"h-4","w-4",3,"icon"],["autocomplete","current-password","name","password","id","password","type","password","required","","placeholder","******************",1,"w-full","appearance-none","rounded-lg","border","border-gray-700","px-4","py-3","text-base","leading-none","text-gray-800","placeholder-gray-700","shadow-none","focus:shadow-outline","focus:outline-none",3,"ngModelChange","ngModel","ngClass"],[1,"mb-6","rounded","border","border-solid","border-red-500","bg-red-400","px-3","py-2","text-xs","font-semibold","text-white"],["type","submit",1,"w-full","rounded-lg","bg-blue-500","px-4","py-2","font-bold","text-white","transition-colors","duration-200","ease-in-out","hover:bg-blue-700","focus:shadow-outline","focus:outline-none"],[1,"mt-2","flex","w-full","flex-row","flex-wrap","items-center"],[1,"w-1/2"],[1,"text-xs","text-gray-600"],[1,"text-right"],["routerLink","/dsag/forgot-password",1,"text-xs","text-blue-500","transition-all","duration-700","ease-in-out","hover:text-orange-500"],[1,"mb-1","flex","flex-row","flex-wrap","items-center"],[1,"mr-1",3,"icon"],[1,"font-semibold"],[1,"font-normal","text-gray-300"]],template:function(i,a){i&1&&sh(0,Le,52,23,"ng-container",3);},dependencies:[vi,$t,C5,qn,Qe,Un,Hn,Se$1,on,nn,ar,Ot],encapsulation:2,changeDetection:1});}}return t})();var Ue=[{path:"",component:we}],_e=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275mod=Jp({type:t});}static{this.\u0275inj=Ps({imports:[ta.forChild(Ue),ta]});}}return t})();var Ze=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)};}static{this.\u0275mod=Jp({type:t});}static{this.\u0275inj=Ps({imports:[Xt,_e,nr,Xn]});}}return t})();export{Ze as LoginModule};

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.