PageSourceSearch

https://berater.de/chunk-DBOXFDYP.js

js berater.de collected 2026-10-08 22:59:34 UTC 2,227 bytes, 1 lines download raw bytes

1import{a as P}from"./chunk-CS4NFA25.js";import{g as m,k as h,z as C}from"./chunk-N5SR3RF2.js";import{j as O}from"./chunk-XTG7J2JG.js";import{a as T}from"./chunk-SPZV377N.js";import"./chunk-LJSYQ6VW.js";import"./chunk-UPDZMESH.js";import{Ec as N,Fa as d,Fc as E,Gc as u,Ic as S,Qb as a,Zb as c,_b as _,h as l,kc as p,oc as g,sb as f,tb as o}from"./chunk-REFE22HE.js";var v=(()=>{let n=class n{constructor(e,t){this.userService=e,this.toastr=t,this.newsletterAccepted=!1,this.subscription=new l(),this.loading=!1;}ngOnInit(){this.loading=!0,this.subscription.add(this.userService.getUserData().subscribe(e=>{this.loading=!1,this.newsletterAccepted=e.newsletterAccepted;}));}updateNotificationsPreferences(){this.loading=!0,this.subscription.add(this.userService.updateNewsletter(this.newsletterAccepted).subscribe(e=>{if(this.loading=!1,e.success){this.toastr.success("Die Allgemeine Gesch\xE4ftsbedingungen wurden erfolgreich aktualisiert");return;}this.toastr.error("Beim Aktualisieren der Allgemeinen Gesch\xE4ftsbedingungen ist ein Fehler aufgetreten. Versuchen Sie es erneut.");}));}ngOnDestroy(){this.subscription.unsubscribe();}};n.ɵfac=function(t){return new(t||n)(o(T),o(O));},n.ɵcmp=d({type:n,selectors:[["app-notifications-preferences"]],standalone:!0,features:[S],decls:4,vars:4,consts:()=>{let e;e="Newsletter";let t;return t="Benachrichtigungseinstellungen",[t,[1,"notifications-preferences"],[1,"heading-base","h6"],["label",e,3,"ngModelChange","change","checked","disabled","ngModel","buttonRight"]];},template:function(t,i){t&1&&(c(0,"div",1)(1,"h6",2),p(2,0),_(),c(3,"br-switch",3),u("ngModelChange",function(r){return E(i.newsletterAccepted,r)||(i.newsletterAccepted=r),r;}),g("change",function(){return i.updateNotificationsPreferences();}),_()()),t&2&&(f(3),a("checked",i.newsletterAccepted)("disabled",i.loading),N("ngModel",i.newsletterAccepted),a("buttonRight",!0));},dependencies:[P,C,m,h],styles:["[_nghost-%COMP%]{width:100%}.notifications-preferences[_ngcontent-%COMP%]{background-color:#fff;padding:1rem;border:1px solid #F0F0F2;border-radius:.75rem}"]});let s=n;return s;})();export{v as NotificationsPreferencesComponent};/**i18n:6ff56e1237b5ca15ba2d806f4d3091c6d8ad6faa4340cb54c69cbdda31c6edcb*/

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.