PageSourceSearch

https://www.digitale.co/chunk-JJ3OW5EZ.js

js digitale.co collected 2026-09-25 04:23:46 UTC 9,204 bytes, 2 lines download raw bytes

1import{c as b}from"./chunk-M6542OTT.js";import{b as W,c as j,d as D,e as F,g as P,h as O,o as q,p as te}from"./chunk-XGZ6VBXO.js";import{d as Y,f as E,g as $,l as ee}from"./chunk-EP3TSZWW.js";import{b as y,c as I}from"./chunk-4PEJQMN6.js";import"./chunk-WI7C6BUK.js";import{a as T}from"./chunk-KOJCDMBF.js";import{a as ie}from"./chunk-EXQPZIZF.js";import"./chunk-BRXHBXE3.js";import{c as R}from"./chunk-A6D5T2EF.js";import{Db as p,Fb as L,Hd as X,Ob as n,Pb as o,Qb as S,Ub as A,bc as N,cc as c,da as K,eb as a,kb as l,oc as V,qa as u,ra as g,rb as v,rc as m,sb as Q,sc as M,ud as w,wb as x,wc as h,xc as C,yc as _}from"./chunk-TVZWCV2O.js";function me(i,r){if(i&1&&(n(0,"div",13),m(1),o()),i&2){let t=c();a(),M(t.errorMessage)}}function le(i,r){i&1&&S(0,"loading-indicator",14)}var B=class i{constructor(r,t,e,s){this.authService=r;this.router=t;this.title=e;this.meta=s}errorMessage;email="";password="";loading=!1;ngOnInit(){this.title.setTitle("Login"),this.meta.addTag({name:"robots",content:"noindex, follow"})}login(){this.loading=!0,this.authService.login(this.email,this.password).subscribe(r=>{this.loading=!1,this.router.navigate([this.authService.redirectUrl])},r=>{this.loading=!1,this.errorMessage="Ung\xFCltige Login-Informationen"})}static \u0275fac=function(t){return new(t||i)(l(b),l(E),l(I),l(y))};static \u0275cmp=v({type:i,selectors:[["login"]],standalone:!1,decls:17,vars:5,consts:[["loginForm","ngForm"],[1,"w-screen","max-w-container"],[1,"text-center","text-h1","mb-text","mt-h1"],[1,"card","w-full","max-w-md","px-8","py-4","mx-auto"],["class","border border-red text-red px-2 p-1 mb-4",4,"ngIf"],[3,"ngSubmit"],[1,"text-sm","font-bold","text-neutral-600","mb-px"],["type","email","name","email","required","",1,"input-text",3,"ngModelChange","ngModel"],[1,"text-sm","font-bold","text-neutral-600","mt-3","mb-px"],["type","password","name","password","required","",1,"input-text",3,"ngModelChange","ngModel"],[1,"flex","items-center","mt-4"],["type","submit",1,"btn","btn-primary","mr-2",3,"disabled"],["type","dots",4,"ngIf"],[1,"border","border-red","text-red","px-2","p-1","mb-4"],["type","dots"]],template:function(t,e){if(t&1){let s=A();n(0,"div",1)(1,"div",2),m(2,"Login"),o(),n(3,"div",3),x(4,me,2,1,"div",4),n(5,"form",5,0),N("ngSubmit",function(){return u(s),g(e.login())}),n(7,"div",6),m(8,"E-Mail"),o(),n(9,"input",7),_("ngModelChange",function(f){return u(s),C(e.email,f)||(e.email=f),g(f)}),o(),n(10,"div",8),m(11,"Passwort"),o(),n(12,"input",9),_("ngModelChange",function(f){return u(s),C(e.password,f)||(e.password=f),g(f)}),o(),n(13,"div",10)(14,"button",11),m(15,"Login"),o(),x(16,le,1,0,"loading-indicator",12),o()()()()}if(t&2){let s=V(6);a(4),p("ngIf",e.errorMessage),a(5),h("ngModel",e.email),a(3),h("ngModel",e.password),a(2),p("disabled",!s.form.valid||e.loading),a(2),p("ngIf",e.loading)}},dependencies:[w,O,W,j,D,q,P,F,T],encapsulation:2})};function de(i,r){i&1&&(n(0,"div")(1,"div",7),m(2,"Die Anmeldung war erfolgreich!"),o(),n(3,"div",8),m(4,"Wir haben Ihnen eine E-Mail mit einem Best\xE4tigungslink geschickt."),o()())}function pe(i,r){if(i&1&&(n(0,"div",9),m(1),o()),i&2){let t=c();a(),M(t.errorMessage)}}function ce(i,r){i&1&&(n(0,"div"),m(1,"oder "),n(2,"a",20),m(3,"zum Login"),o()())}function ue(i,r){i&1&&S(0,"loading-indicator",21)}function ge(i,r){if(i&1){let t=A();n(0,"form",10,0),N("ngSubmit",function(){u(t);let s=c();return g(s.signup())}),n(2,"div",11),m(3,"Name"),o(),n(4,"input",12),_("ngModelChange",function(s){u(t);let d=c();return C(d.user.name,s)||(d.user.name=s),g(s)}),o(),n(5,"div",13),m(6,"Website"),o(),n(7,"input",14),_("ngModelChange",function(s){u(t);let d=c();return C(d.user.website,s)||(d.user.website=s),g(s)}),o(),n(8,"div",13),m(9,"E-Mail"),o(),n(10,"input",15),_("ngModelChange",function(s){u(t);let d=c();return C(d.user.email,s)||(d.user.email=s),g(s)}),o(),n(11,"div",13),m(12,"Passwort"),o(),n(13,"input",16),_("ngModelChange",function(s){u(t);let d=c();return C(d.user.password,s)||(d.user.password=s),g(s)}),o(),n(14,"div",17)(15,"button",18),m(16,"Anmelden"),o(),x(17,ce,4,0,"div",4)(18,ue,1,0,"loading-indicator",19),o()()}if(i&2){let t=V(1),e=c();a(4),h("ngModel",e.user.name),a(3),h("ngModel",e.user.website),a(3),h("ngModel",e.user.email),a(3),h("ngModel",e.user.password),a(2),p("disabled",!t.form.valid||e.loading),a(2),p("ngIf",!e.loading),a(),p("ngIf",e.loading)}}var U=class i{constructor(r,t,e){this.authService=r;this.title=t;this.meta=e}errorMessages={"short-password":"Das Passwort muss mindestens 6 Zeichen haben","missing-fields":"Bitte alle Felder ausf\xFCllen","existing-account":"Dieser Account existiert bereits"};errorMessage;success=!1;loading=!1;user={email:"",name:"",password:"",website:""};ngOnInit(){this.title.setTitle("Anmeldung"),this.meta.addTag({name:"robots",content:"noindex, follow"})}signup(){this.loading=!0,this.authService.signup(this.user).subscribe(r=>{this.loading=!1,this.success=!0},r=>{this.loading=!1,this.errorMessage=this.errorMessages[r.error.error]})}static \u0275fac=function(t){return new(t||i)(l(b),l(I),l(y))};static \u0275cmp=v({type:i,selectors:[["signup"]],standalone:!1,decls:7,vars:5,consts:[["loginForm","ngForm"],[1,"container","pt-12"],[1,"text-center","text-3xl","mb-6","text-neutral-700","font-bold"],[1,"card","max-w-md","px-8","py-4","mx-auto","border","border-transparent"],[4,"ngIf"],["class","border border-red text-red px-2 p-1 mb-4",4,"ngIf"],[3,"ngSubmit",4,"ngIf"],[1,"text-green","font-bold"],[1,"text-neutral-700"],[1,"border","border-red","text-red","px-2","p-1","mb-4"],[3,"ngSubmit"],[1,"text-sm","font-bold","text-neutral-600","mb-px"],["type","text","name","name","placeholder","Vor- und Nachname","required","",1,"input-text",3,"ngModelChange","ngModel"],[1,"text-sm","font-bold","text-neutral-600","mt-3","mb-px"],["type","url","name","email","placeholder","https://...","required","",1,"input-text",3,"ngModelChange","ngModel"],["type","email","name","email","required","",1,"input-text",3,"ngModelChange","ngModel"],["type","password","name","password","required","",1,"input-text",3,"ngModelChange","ngModel"],[1,"flex","items-center","mt-4"],["type","submit",1,"btn","btn-primary","mr-2",3,"disabled"],["type","dots",4,"ngIf"],["routerLink","/user/login",1,"content-link"],["type","dots"]],template:function(t,e){t&1&&(n(0,"div",1)(1,"div",2),m(2,"Anmeldung"),o(),n(3,"div",3),x(4,de,5,0,"div",4)(5,pe,2,1,"div",5)(6,ge,19,7,"form",6),o()()),t&2&&(a(3),L("border-green",e.success),a(),p("ngIf",e.success),a(),p("ngIf",e.errorMessage&&!e.success),a(),p("ngIf",!e.success))},dependencies:[w,O,W,j,D,q,P,F,$,T],encapsulation:2})};function ve(i,r){i&1&&S(0,"loading-indicator",6)}function xe(i,r){i&1&&(n(0,"div")(1,"div",7),m(2,"Sie haben Ihre E-Mail erfolgreich best\xE4tigt!"),o(),n(3,"div",8),m(4,"Sie werden gleich zum Dashboard weitergeleitet..."),o()())}function he(i,r){if(i&1&&(n(0,"div",9),m(1),o()),i&2){let t=c();a(),M(t.errorMessage)}}var z=class i{constructor(r,t,e,s,d,f){this.authService=r;this.router=t;this.activatedRoute=e;this.config=s;this.title=d;this.meta=f}errorMessage;success=!1;ngOnInit(){this.title.setTitle("E-Mail best\xE4tigen"),this.meta.addTag({name:"robots",content:"noindex, follow"});let r=this.activatedRoute.snapshot.params.email,t=this.activatedRoute.snapshot.params.confirmationCode;this.config.isServer||this.authService.confirm(r,t).subscribe(e=>{this.success=!0,setTimeout(()=>{this.router.navigate([this.authService.redirectUrl])},2e3)},e=>{this.errorMessage="Ung\xFCltiger Link oder Account bereits best\xE4tigt"})}static \u0275fac=function(t){return new(t||i)(l(b),l(E),l(Y),l(R),l(I),l(y))};static \u0275cmp=v({type:i,selectors:[["confirm"]],standalone:!1,decls:7,vars:5,consts:[[1,"container","pt-12"],[1,"text-center","text-3xl","mb-6","text-neutral-700","font-bold"],[1,"card","max-w-md","px-8","py-4","mx-auto","border","border-transparent"],["type","dots",4,"ngIf"],[4,"ngIf"],["class","border border-red text-red px-2 p-1 mb-4",4,"ngIf"],["type","dots"],[1,"text-green","font-bold"],[1,"text-neutral-700"],[1,"border","border-red","text-red","px-2","p-1","mb-4"]],template:function(t,e){t&1&&(n(0,"div",0)(1,"div",1),m(2,"E-Mail best\xE4tigen"),o(),n(3,"div",2),x(4,ve,1,0,"loading-indicator",3)(5,xe,5,0,"div",4)(6,he,2,1,"div",5),o()()),t&2&&(a(3),L("border-green",e.success),a(),p("ngIf",!e.success&&!e.errorMessage),a(),p("ngIf",e.success),a(),p("ngIf",e.errorMessage&&!e.success))},dependencies:[w,T],encapsulation:2})};var G=class i{constructor(r,t,e){this.authService=r;this.router=t;this.config=e}
1ngOnInit(){this.config.isServer||(this.authService.logout(),this.router.navigate(["/"]))}static \u0275fac=function(t){return new(t||i)(l(b),l(E),l(R))};static \u0275cmp=v({type:i,selectors:[["logout"]],standalone:!1,decls:0,vars:0,template:function(t,e){},encapsulation:2})};var Ce=[{path:"login",component:B},{path:"logout",component:G},{path:"signup",component:U},{path:"confirm/:email/:confirmationCode",component:z}],ae=class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=Q({type:i});static \u0275inj=K({imports:[X,te,ee.forChild(Ce),ie]})};export{ae as UserModule};
2/**i18n:5e5c29eb5a2b8b7d81c7cb256105db2252984439abfadc9fbcc9b15c9774eb6b*/

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.