PageSourceSearch

https://assets.tt.com/frontend/tt-com-www-ng/v3/apps_tt-com-www_ng…management_component_ts.6bd7ad30121aa3e7.js

js tt.com collected 2026-09-24 07:57:42 UTC 27,678 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktt_com_www_ng=self.webpackChunktt_com_www_ng||[]).push([["apps_tt-com-www_ng_src_app_pages_newsletter-management_newsletter-management_component_ts"],{5880(bt,j,c){c.d(j,{NewsletterManagementComponent:()=>Ct});var C=c(77084),b=c(84412),O=c(18359),m=c(88141),f=c(5964),N=c(96354),S=c(31631),x=c(59640),w=c(93049),r=c(28277),M=c(49769),p=c(25596),B=c(21518),E=c(33746),h=c(89417),v=c(9183),t=c(35547),l=c(85802),y=c(17705),P=c(91413);function U(i,a){if(1&i&&(t.j41(0,"div",1),t.EFF(1," Verwaltung f\xfcr "),t.j41(2,"div",2),t.EFF(3),t.k0s()()),2&i){const e=t.XpG();t.R7$(3),t.JRh(e.userEmail)}}function I(i,a){if(1&i){const e=t.RV6();t.j41(0,"input",8),t.mxI("ngModelChange",function(s){l.eBV(e);const o=t.XpG(4);return t.DH7(o.newSubscriberEmail,s)||(o.newSubscriberEmail=s),l.Njj(s)}),t.k0s()}if(2&i){const e=t.XpG(4);t.R50("ngModel",e.newSubscriberEmail)}}function R(i,a){if(1&i){const e=t.RV6();t.j41(0,"div"),t.nVh(1,I,1,1,"input",6),t.j41(2,"button",7),t.bIt("click",function(){l.eBV(e);const s=t.XpG(3);return l.Njj(s.sendNewsletterManagementLinkEmail())}),t.EFF(3,"Verwaltungslink zusenden"),t.k0s()()}if(2&i){const e=t.XpG(3);t.R7$(),t.vxM(e.userMail?-1:1)}}function $(i,a){if(1&i){const e=t.RV6();t.j41(0,"div",1)(1,"p"),t.EFF(2,"Melden Sie sich mit Ihrem TT-Benutzerkonto an um Ihre Newsletter zu verwalten."),t.k0s(),t.j41(3,"button",3),t.EFF(4,"Jetzt anmelden"),t.k0s()(),t.j41(5,"div",4)(6,"a",5),t.bIt("keydown",function(){l.eBV(e);const s=t.XpG(2);return l.Njj(s.toggleEmailBox())})("click",function(){l.eBV(e);const s=t.XpG(2);return l.Njj(s.toggleEmailBox())}),t.EFF(7,"Link zur Newsletter-Verwaltung per E-Mail anfordern"),t.k0s(),t.nVh(8,R,4,1,"div"),t.k0s()}if(2&i){const e=t.XpG(2);t.R7$(8),t.vxM(e.isEmailBoxVisible?8:-1)}}function L(i,a){if(1&i&&(t.j41(0,"div",9)(1,"p"),t.EFF(2),t.k0s(),t.j41(3,"p",11),t.EFF(4,"Bitte \xfcberpr\xfcfen Sie ihr Postfach."),t.k0s()()),2&i){const e=t.XpG(3);t.R7$(2),t.SpI("Wir haben eine Email and die Adresse ",e.newSubscriberEmail," gesendet.")}}function A(i,a){1&i&&(t.j41(0,"div",10)(1,"p"),t.EFF(2,"Es ist ein Fehler aufgetreten. Bitte versuchen Sie es sp\xe4ter erneut."),t.k0s()())}function D(i,a){if(1&i&&(t.nVh(0,L,5,1,"div",9),t.nVh(1,A,3,0,"div",10)),2&i){const e=t.XpG(2);t.vxM(e.isUserLoggedOut?0:-1),t.R7$(),t.vxM(e.userError?1:-1)}}function X(i,a){if(1&i&&t.nVh(0,$,9,1)(1,D,2,2),2&i){const e=t.XpG();t.vxM(e.isUserLoggedOut||e.userError?1:0)}}let G=(()=>{class i{constructor(e,n,s){this.httpClient=e,this.changeDetectionRef=n,this.newsletterApiEndpoint=s,this.isUserLoggedOut=!1,this.userError=!1,this.isEmailBoxVisible=!1,this.subscriptions=new O.yU}get getNoParamsUserAndError(){return this.isUserLoggedOut&&this.userError}ngOnDestroy(){this.subscriptions.unsubscribe()}toggleEmailBox(){this.isEmailBoxVisible=!this.isEmailBoxVisible,this.changeDetectionRef.markForCheck()}sendNewsletterManagementLinkEmail(){this.subscriptions.add(this.httpClient.get(`${this.newsletterApiEndpoint}/fetch/sendEmail/8486/${this.newSubscriberEmail}`).pipe((0,m.M)(e=>{200!==e.statusCode?this.userError=!0:this.isUserLoggedOut=!0,this.changeDetectionRef.detectChanges()})).subscribe())}static{this.\u0275fac=function(n){return new(n||i)(t.rXU(P.Qq),t.rXU(y.gRc),t.rXU(C.NEWSLETTER_API_ENDPOINT))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-newsletter-user"]],inputs:{userEmail:"userEmail"},decls:3,vars:1,consts:[[1,"email-content-wrap"],[1,"user"],[1,"email"],["routerLink","/login",1,"enterEmail","loginButton"],[1,"user","endBlock"],["aria-disabled","true",1,"link-text",3,"keydown","click"],["matInput","","name","E-Mail-Adresse","placeholder","E-Mail-Adresse","required","",1,"emailInputHeader",3,"ngModel"],[1,"enterEmail",3,"click"],["matInput","","name","E-Mail-Adresse","placeholder","E-Mail-Adresse","required","",1,"emailInputHeader",3,"ngModelChange","ngModel"],[1,"user","noMargin"],[1,"user","noMargin","alert"],[1,"checkEmail"]],template:function(n,s){1&n&&(t.j41(0,"div",0),t.nVh(1,U,4,1,"div",1)(2,X,2,1),t.k0s()),2&n&&(t.R7$(),t.vxM(s.userEmail?1:2))},dependencies:[E.fS,E.fg,w.iI,w.Wk,h.YN,h.me,h.BC,h.YS,h.vS,v.D6],styles:[".email-content-wrap[_ngcontent-%COMP%]{font-size:15px;
1display:flex;flex-direction:column;justify-content:center;margin:auto}.email-content-wrap[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]{font-size:16px}.email-content-wrap[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0}.email-content-wrap[_ngcontent-%COMP%]   .user.endBlock[_ngcontent-%COMP%]{margin-bottom:2rem}.email-content-wrap[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]   .email[_ngcontent-%COMP%]{font-weight:700;margin-bottom:2rem}.email-content-wrap[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]   .link-text[_ngcontent-%COMP%]{color:#008253;font-weight:700;cursor:pointer}.email-content-wrap[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]   .enterEmail[_ngcontent-%COMP%]{cursor:pointer;margin-left:auto;background:#008253;border:none;font-weight:400;padding:.5rem 1.5rem;font-size:1.2rem;border-radius:5px;color:#fff}.email-content-wrap[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]   .enterEmail.loginButton[_ngcontent-%COMP%]{margin:1rem 0}.email-content-wrap[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]   .checkEmail[_ngcontent-%COMP%]{font-weight:600;margin:1rem 0}.email-content-wrap[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]   .noMargin[_ngcontent-%COMP%]{margin:0}.email-content-wrap[_ngcontent-%COMP%]   .user.alert[_ngcontent-%COMP%]{color:red}.email-content-wrap[_ngcontent-%COMP%]   .emailInputHeader[_ngcontent-%COMP%]{width:20rem;margin:1rem 1rem 1rem 0;padding:.5rem}"],changeDetection:0})}}return i})();var z=c(6524);let T=(()=>{class i{constructor(e,n){this.httpClient=e,this.newsletterApiEndpoint=n,this.newslettersSubject=new b.t([]),this.newsletters$=this.newslettersSubject.asObservable(),this.isLoadingSubject=new b.t(!0),this.isLoading$=this.isLoadingSubject.asObservable(),this.dividerPositionSubject=ne
1w b.t(-1),this.dividerPosition$=this.dividerPositionSubject.asObservable(),this.subscriptions=[]}initDefaultNewsletters(){this.subscriptions.push(this.httpClient.get(`${z.c.tt_s3_url_prefix}/data/newsletters.json`).pipe((0,m.M)(e=>{const n=this.setupFrontendProperties(e);this.modifyHeadlines(n),this.newslettersSubject.next(n)})).subscribe())}setupFrontendProperties(e){return e.map(s=>this.isNewsletter(s)?{...s,buttonClass:s.accessible===r.VisibilityEnum.Plus?r.ButtonClassEnum.BlockedByPlus:r.ButtonClassEnum.Subscribe,buttonText:s.accessible===r.VisibilityEnum.Plus?r.ButtonTextEnum.BlockedByPlus:r.ButtonTextEnum.Unsubscribed,buttonChecked:!1,apiError:!1,isNewSubscriberSubmit:!0,isExpanded:!1,isCheckboxVisible:!0}:{...s,visible:!0})}changeButtons(e,n){const s=this.newslettersSubject.getValue();s.forEach(o=>{if(this.isNewsletter(o)&&o.name===e.name){const u=o.buttonClass,_=o.buttonText;o.buttonClass=r.ButtonClassEnum.ActivatedOrDeactivated,o.buttonText=o.buttonText===r.ButtonTextEnum.Subscribed?r.ButtonTextEnum.Deactivated:r.ButtonTextEnum.Activated,o.isCheckboxVisible=!1,this.newslettersSubject.next(s),setTimeout(()=>{o.buttonClass=u===r.ButtonClassEnum.Subscribe?r.ButtonClassEnum.Unsubscribe:r.ButtonClassEnum.Subscribe,o.buttonText=_===r.ButtonTextEnum.Subscribed?r.ButtonTextEnum.Unsubscribed:r.ButtonTextEnum.Subscribed,o.buttonChecked=o.buttonText!==r.ButtonTextEnum.Unsubscribed,o.isCheckboxVisible=!0,(o.accessible===r.VisibilityEnum.Plus||o.accessible===r.VisibilityEnum.LoggedIn)&&!n&&(o.buttonText=r.ButtonTextEnum.BlockedByPlus,o.buttonChecked=!1,o.buttonClass=r.ButtonClassEnum.BlockedByPlus),this.newslettersSubject.next(s)},2500)}}),this.newslettersSubject.next(s)}triggerApiError(e){const n=this.newslettersSubject.getValue();n.forEach(s=>{s.name===e.name&&(s.apiError=!0)}),this.newslettersSubject.next(n)}triggerNewSubscriberField(e,n){const s=this.newslettersSubject.getValue();s.forEach(o=>{o.name===e.name&&(o.isNewSubscriberSubmit=n)}),this.newslettersSubject.next(s)}modifyNewsletters(e,n,s,o=!1){this.isLoadingSubject.next(!0),this.subscriptions.push(this.httpClient.get(`${this.newsletterApiEndpoint}/fetch/email/${e}`).pipe((0,m.M)(d=>{const u=d.data.result[0],_=this.newslettersSubject.getValue();_.forEach(g=>{this.setNewsletterVisibility(g,o,s),this.updateNewsletterStatus(g,u,n)}),this.modifyHeadlines(_),this.newslettersSubject.next(_),this.isLoadingSubject.next(!1)})).subscribe())}findNewsletterByName(e){return this.newslettersSubject.getValue().map(o=>this.isNewsletter(o)?o:null).filter(o=>null!==o).find(o=>o.name===e)}onDestroy(){for(const e of this.subscriptions)e.unsubscribe()}modifyHeadlines(e){e.forEach((n,s)=>{if(this.isHeadline(n)){n.visible=!0;const o=e.slice(s+1).find(d=>d.visible);(o&&o.type===r.TypeEnum.Headline||void 0===o)&&(n.visible=!1)}}),this.setDividerPosition(e)}setDividerPosition(e){this.dividerPositionSubject.next(e.map(n=>n.visible).lastIndexOf(!0)+1)}setNewsletterVisibility(e,n,s){this.isNewsletter(e)&&(e.visible=e.visible||n&&(e.accessible===r.VisibilityEnum.LoggedIn||e.accessible===r.VisibilityEnum.All)||e.accessible===r.VisibilityEnum.Plus||n&&s&&e.accessible===r.VisibilityEnum.Club)}updateNewsletterStatus(e,n,s){const o=n[e.emarsysId];this.isSubscribed(o)?this.setSubscribedStatus(e):"2"===o?this.setUnsubscribedStatus(e,s):this.isPendingPlusOrLoggedIn(o,e)&&this.setPendingPlusOrLoggedInStatus(e,s)}isSubscribed(e){return"off"===e||"1"===e}setSubscribedStatus(e){e.buttonText=r.ButtonTextEnum.Subscribed,e.buttonClass=r.ButtonClassEnum.Unsubscribe,e.buttonChecked=!0,e.visible=!0}setUnsubscribedStatus(e,n){const s=!n&&(e.accessible===r.VisibilityEnum.Plus||e.accessible===r.VisibilityEnum.LoggedIn);e.buttonText=s?r.ButtonTextEnum.BlockedByPlus:r.ButtonTextEnum.Unsubscribed,e.buttonClass=s?r.ButtonClassEnum.BlockedByPlus:r.ButtonClassEnum.Subscribe,e.buttonChecked=!1}isPendingPlusOrLoggedIn(e,n){return null===e&&(n.accessible===r.VisibilityEnum.Plus||n.accessible===r.VisibilityEnum.LoggedIn)}setPendingPlusOrLoggedInStatus(e,n){e.buttonText=n?r.ButtonTextEnum.Unsubscribed:r.ButtonTextEnum.BlockedByPlus,e.buttonClass=n?r.ButtonClassEnum.Subscribe:r.ButtonClassEnum.BlockedByPlus,e.buttonChecked=!1}
1isNewsletter(e){return e.type===r.TypeEnum.Newsletter}isHeadline(e){return e.type===r.TypeEnum.Headline}static{this.\u0275fac=function(n){return new(n||i)(l.KVO(P.Qq),l.KVO(C.NEWSLETTER_API_ENDPOINT))}}static{this.\u0275prov=l.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var F=c(37702),H=c(47351);const V=(i,a)=>({newsletter:i,isLoading:a}),Y=i=>({hidden:i});function W(i,a){if(1&i&&(t.j41(0,"div",4),t.EFF(1),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.JRh(e.headline)}}function J(i,a){1&i&&t.nrm(0,"div",10)}function Q(i,a){if(1&i&&t.eu8(0,11),2&i){const e=t.XpG(3).$implicit,n=t.XpG(3),s=t.sdS(6);t.Y8G("ngTemplateOutlet",s)("ngTemplateOutletContext",t.l_i(2,V,e,n.isLoading))}}function K(i,a){1&i&&t.nrm(0,"mat-spinner",17)}function Z(i,a){1&i&&(t.j41(0,"span",18),t.EFF(1,"Es ist ein Fehler aufgetreten."),t.nrm(2,"br"),t.EFF(3,"Bitte versuchen sie es sp\xe4ter erneut."),t.k0s())}function q(i,a){if(1&i&&(t.j41(0,"div"),t.eu8(1,11),t.nVh(2,Z,4,0,"span",18),t.k0s()),2&i){const e=t.XpG(4).$implicit,n=t.XpG(3),s=t.sdS(6);t.R7$(),t.Y8G("ngTemplateOutlet",s)("ngTemplateOutletContext",t.l_i(3,V,e,n.isLoading)),t.R7$(),t.vxM(e.apiError?2:-1)}}function tt(i,a){if(1&i&&(t.j41(0,"mat-card-content")(1,"p",12),t.EFF(2),t.k0s()(),t.j41(3,"mat-card-actions",13)(4,"div",14)(5,"span",15)(6,"a",16)(7,"u"),t.EFF(8,"Vorschau"),t.k0s()()()(),t.nVh(9,K,1,0,"mat-spinner",17),t.nVh(10,q,3,6,"div"),t.k0s()),2&i){const e=t.XpG(3).$implicit,n=t.XpG(3);t.R7$(2),t.SpI(" ",e.description," "),t.R7$(3),t.Y8G("ngClass",t.eq3(6,Y,!e.preview)),t.R7$(),t.Y8G("href",t.mNQ(e.preview),t.B4B),t.R7$(3),t.vxM(n.isLoading?9:-1),t.R7$(),t.vxM(n.isLoading?-1:10)}}function et(i,a){1&i&&t.nrm(0,"div",19)}function nt(i,a){if(1&i&&t.nVh(0,et,1,0,"div",19),2&i){const e=t.XpG(3).$implicit;t.vxM(e.id!==a?0:-1)}}function it(i,a){if(1&i){const e=t.RV6();t.j41(0,"div",5)(1,"mat-card",6)(2,"mat-card-header")(3,"div",7)(4,"mat-icon",8),t.bIt("click",function(){l.eBV(e);const s=t.XpG(2).$implicit,o=t.XpG(3);return l.Njj(o.expandNewsletter(s))})("keydown",function(){l.eBV(e);const s=t.XpG(2).$implicit,o=t.XpG(3);return l.Njj(o.expandNewsletter(s))}),t.EFF(5,"expand_more"),t.k0s(),t.j41(6,"div",9),t.bIt("click",function(){l.eBV(e);const s=t.XpG(2).$implicit,o=t.XpG(3);return l.Njj(o.expandNewsletter(s))})("keydown",function(){l.eBV(e);const s=t.XpG(2).$implicit,o=t.XpG(3);return l.Njj(o.expandNewsletter(s))}),t.nVh(7,J,1,0,"div",10),t.EFF(8),t.k0s()(),t.nVh(9,Q,1,5,"ng-container",11),t.k0s(),t.nVh(10,tt,11,8),t.nVh(11,nt,1,1),t.nI1(12,"async"),t.k0s()()}if(2&i){let e;const n=t.XpG(2).$implicit,s=t.XpG(3);t.Y8G("id",t.mNQ(n.name)),t.R7$(7),t.vxM("plus"===n.accessible?7:-1),t.R7$(),t.SpI(" ",n.subtitle," "),t.R7$(),t.vxM(n.isExpanded?-1:9),t.R7$(),t.vxM(n.isExpanded?10:-1),t.R7$(),t.vxM((e=t.bMT(12,7,s.dividerPosition$))?11:-1,e)}}function st(i,a){if(1&i&&t.nVh(0,it,13,9,"div",5),2&i){const e=t.XpG().$implicit;t.vxM(e.visible?0:-1)}}function ot(i,a){if(1&i&&(t.nVh(0,W,2,1,"div",4),t.nVh(1,st,1,1)),2&i){const e=a.$implicit;t.vxM("headline"===e.type&&e.visible?0:-1),t.R7$(),t.vxM("newsletter"===e.type?1:-1)}}function rt(i,a){1&i&&t.Z7z(0,ot,2,2,null,null,t.fX1),2&i&&t.Dyx(a)}function at(i,a){if(1&i&&(t.nrm(0,"app-newsletter-user",3),t.nVh(1,rt,2,0),t.nI1(2,"async")),2&i){let e;const n=t.XpG();t.Y8G("userEmail",n.userEmail),t.R7$(),t.vxM((e=t.bMT(2,2,n.newsletters$))?1:-1,e)}}function ct(i,a){1&i&&t.nrm(0,"mat-spinner",2)}function lt(i,a){1&i&&(t.j41(0,"div",22),t.EFF(1," Aktivierung nur "),t.j41(2,"a",23),t.EFF(3,"mit Abo"),t.k0s(),t.EFF(4," m\xf6glich "),t.k0s())}function dt(i,a){if(1&i&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2).newsletter;t.R7$(),t.SpI(" ",e.buttonText," ")}}function ut(i,a){1&i&&(t.j41(0,"mat-icon",24),t.EFF(1,"check_box_filled"),t.k0s())}function mt(i,a){1&i&&(t.j41(0,"mat-icon",24),t.EFF(1,"check_box_outline_blank"),t.k0s())}function _t(i,a){1&i&&(t.j41(0,"mat-icon",25),t.EFF(1,"check_box_outline_blank"),t.k0s())}function ht(i,a){if(1&i&&(t.j41(0,"div"),t.nVh(1,ut,2,0,"mat-icon",24),t.nVh(2,mt,2,0,"mat-icon",24),t.nVh(3,_t,2,0,"mat-icon",25),t.k0s()),2&i){const e=t.XpG(2).newsletter;t.R7$(),t.vxM(e.buttonChecked?1:-1),t.R7$(),t.vxM(e.buttonChecked||"blocked"===e.buttonClass?-1:2),t.R7$(),t.vxM(e.buttonChecked||"blocked"!==e.buttonClass?-1:3)}}function gt(i,a){if(1&i){const e=t.RV6();t.j41(0,"button",21),t.bIt("click",function(){l.eBV(e);const s=t.XpG().newsletter,o=t.XpG();return l.Njj(o.submit(s))}),t.nVh(1,lt,5,0,"div",22),t.nVh(2,dt,2,1,"div"),t.nVh(3,ht,4,3,"div"),t.k0s()}if(2&i){const e=t.XpG().newsletter;t.HbH(t.VkB("actionButton ",e.buttonClass)),t.R7$(),t.vxM("Aktivierung nur mit Abo m\xf6glich"===e.buttonText?1:-1),t.R7$(),t.vxM("Aktivierung nur mit Abo m\xf6glich"!==e.buttonText?2:-1),t.R7$(),t.vxM(e.isCheckboxVisible?3:-1)}}function pt(i,a){1&i&&t.nVh(0,gt,4,6,"button",20),2&i&&t.vxM(a.newsletter.apiError?-1:0)}let Ct=(()=>{class i{constructor(e,n,s,o,d,u,_,g,k){this.activatedRoute=e,this.router=n,this.httpClient=s,this.changeDetectorRef=o,this.windowService=d,this.authStore=u,this.oauthService=_,this.newsletterApiEndpoint=g,this.newsletterService=k,this.newsletters$=this.newsletterService.newsletters$,this.isNewSubscriber=!1,this.scrollingDone=!1,this.isLoading=!1,this.userLoaded=!1,this.dividerPosition$=this.newsletterService.divi
1derPosition$,this.isLoggedInSubject=new b.t(!1),this.isLoggedIn$=this.isLoggedInSubject.asObservable(),this.NotFoundCode=404,this.subscription=new O.yU}ngOnInit(){if(this.subscription.add(this.newsletterService.isLoading$.subscribe(e=>{this.isLoading=e,this.changeDetectorRef.markForCheck()})),this.windowService.isBrowser){const e=this.activatedRoute.snapshot.queryParams;this.userEmarsysID=e.emarsysid??"",this.userUid=e.uid??"",this.highlight=e.highlight??"",this.newsletterService.initDefaultNewsletters(),Object.keys(e).length>0?this.userUid?this.fetchUserFromNewsletterApiUsingUid():this.userEmarsysID&&this.fetchUserFromNewsletterApiUsingEmarsysId():this.fetchUserFromStore()}}ngAfterViewInit(){if(this.windowService.isBrowser){const e=this.activatedRoute.snapshot.queryParams;(!e.emarsysid||!e.uid)&&this.fetchUserFromStore(),this.subscription.add(this.newsletters$.subscribe(n=>{!this.scrollingDone&&e.highlight&&n&&(this.scrollToHighlightedNewsletter(this.highlight),this.scrollingDone=!0),this.changeDetectorRef.markForCheck()}))}}ngOnDestroy(){this.subscription.unsubscribe(),this.newsletterService.onDestroy()}submit(e){if(e.buttonClass!==r.ButtonClassEnum.BlockedByPlus){if(this.isNewSubscriber&&e.buttonClass!==r.ButtonClassEnum.Unsubscribe)return 0!==e.landingPage.length?void this.router.navigate(["/",e.landingPage]):void 0;if(e.buttonClass===r.ButtonClassEnum.Subscribe){const n=e.mode===r.ModeEnum.Email?`${this.newsletterApiEndpoint}/subscribe/${e.mode}/${e.name}/${this.userEmail}`:`${this.newsletterApiEndpoint}/subscribe/${e.mode}/${e.name}/${this.userUid}/false`;e.mode===r.ModeEnum.Uid?this.subscribeWithUid(e,n):e.mode===r.ModeEnum.Email&&this.subscribeWithEmail(e,n)}else this.unsubscribeFromNewsletter(e);this.changeDetectorRef.detectChanges()}}expandNewsletter(e){if(this.windowService.isBrowser){const n=document.getElementById(e.name).querySelector("mat-icon");e.isExpanded?n.classList.remove("rotated"):n.classList.add("rotated"),document.getElementById(e.name).querySelector("mat-card").classList.remove("highlight")}e.isExpanded=!e.isExpanded,this.changeDetectorRef.detectChanges()}scrollToHighlightedNewsletter(e){let o=0;const d=()=>{const u=document.getElementById(e);if(u){this.newsletterService.findNewsletterByName(e).isExpanded=!0;const g=u.querySelector("mat-card"),k=u.querySelector("mat-icon");g.classList.add("highlight"),k.classList.add("rotated"),u.scrollIntoView({behavior:"smooth",block:"center"}),this.changeDetectorRef.detectChanges()}else o<5?(o++,setTimeout(d,200)):console.log("newsletter element not found after",5,"attempts",e)};d()}fetchUserFromNewsletterApiUsingUid(){this.subscription.add(this.httpClient.get(`${this.newsletterApiEndpoint}/fetch/uid/${this.userUid}`).pipe((0,m.M)(e=>{if(e.statusCode===this.NotFoundCode)return console.log(e.message,"try with emarsys id."),void this.fetchUserFromNewsletterApiUsingEmarsysId();this.userEmail=e.data.result[0][3],this.userUid=e.data.result[0][18744],this.userLoaded=!0,this.checkUidwithStore(this.userUid),this.changeDetectorRef.detectChanges()})).subscribe())}fetchUserFromNewsletterApiUsingEmarsysId(){this.subscription.add(this.httpClient.get(`${this.newsletterApiEndpoint}/fetch/emarsysId/${this.userEmarsysID}`).pipe((0,m.M)(e=>{if(e.statusCode===this.NotFoundCode)return console.log(e.message,"switch to store."),void this.fetchUserFromStore();this.userEmail=e.data.result[0][3],this.userUid=e.data.result[0][18744],this.userLoaded=!0,this.checkUidwithStore(this.userUid),this.changeDetectorRef.detectChanges()})).subscribe())}checkUidwithStore(e){this.subscription.add(this.authStore.pipe((0,x.Lt)(S.m7),(0,f.p)(n=>!!n),(0,m.M)(n=>{!1===n.isLoggedIn&&(this.newsletterService.modifyNewsletters(this.userEmail,this.hasPlusAccess,this.hasClubAccess),this.isLoggedInSubject.next(!1),this.changeDetectorRef.markForCheck())}),(0,f.p)(n=>!!n&&!!n.userData&&n.isLoggedIn),(0,N.T)(n=>n.userData),(0,m.M)(n=>{n.uid===e?(this.storeUser=n,this.userEmail=n.email,this.userUid=n.uid,this.hasPlusAccess=n.permissions.CanAccessPlusContent,this.hasClubAccess=n.permissions.CanAccessClub,this.userLoaded=!0,this.isLoggedInSubject.next(!0),this.newsletterService.modifyNewsletters(n.email,this.hasPlusAccess,this.hasClubAccess,!0)):this.newsletterService.modifyNewsletters(this.userEmail,!1,!1,!1)})).subscribe())}fetchUserFromStore(){this.subscription.add(this.authStore.pipe((0,x.Lt)(S.m7),(0,f.p)(e=>!!e),(0,m.M)(e=>{(null==e||!1===e.isLoggedIn)&&(this.isNewSubscriber=!0,this.isLoading=!1,this.changeDetectorRef.markForCheck())}),(0,f.p)(e=>!!e&&!!e.userData&&e.isLoggedIn),(0,N.T)(e=>e.userData),(0,m.M)(e=>{this.storeUser=e,this.userEmail=e.email,this.userUid=e.uid,this.hasPlusAccess=e.permissions.CanAccessPlusContent,this.hasClubAccess=e.permissions.CanAccessClub,this.userLoaded=!0,this.isLoggedInSubject.next(!0),this.newsletterService.modifyNewsletters(e.email,this.hasPlusAccess,this.hasClubAccess,!0)})).subscribe())}unsubscribeFromNewsletter(e){this.subscription.add(this.httpClient.get(`${this.newsletterApiEndpoint}/unsubscribe/${e.name}/${this.userEmail}`).subscribe({next:()=>{this.newsletterService.changeButtons(e,this.hasPlusAccess),this.changeDetectorRef.detectChanges()},error:s=>{this.newsletterService.triggerApiError(e),console.error(s),this.changeDetectorRef.detectChanges()}}))}subscribeWithUid(e,n){(e.accessible===r.VisibilityEnum.Plus&&!this.isLoggedInSubject.getValue()||e.accessible===r.VisibilityEnum.LoggedIn&&!this.isLoggedInSubject.getValue())&&this.router.navigate(["/","abonnieren"]);const s={Authorization:this.oauthService.authorizationHeader()};this.subscription.add(this.httpClient.post(n,null,{headers:s}).subscribe({next:()=>{this.newsletterService.changeButtons(e,this.hasPlusAccess),this.changeDetectorRef.detectChanges()},error:o=>{this.newsletterService.triggerApiError(e),console.error(o),this.changeDetectorRef.detectChanges()}}))}subscribeWithEmail(e,n){this.subscription.add(this.httpClient.post(n,null).subscribe({next:()=>{this.newsletterService.changeButtons(e,this.hasPlusAccess),this.newsletterService.triggerNewSubscriberField(e,!1),this.changeDetectorRef.detectChanges()},error:s=>{this.newsletterService.triggerApiError(e),console.error(s),this.changeDetectorRef.detectChanges()}}))}static{this.\u0275fac=function(n){return new(n||i)(t.rXU(F.nX),t.rXU(F.Ix),t.rXU(P.Qq),t.rXU(y.gRc),t.rXU(C.WindowService),t.rXU(x.il),t.rXU(H.TC),t.rXU(C.NEWSLETTER_API_ENDPOINT),t.rXU(T))}}static{this.\u0275cmp=t.VBU({type:i,selectors:[["app-newsletter-management"]],features:[t.Jv_([T])],decls:7,vars:1,consts:[["subscriptionButton",""],[1,"content-wrap"],["diameter","60"],[3,"userEmail"],[1,"headline"],[3,"id"],[1,"items","mat-elevation-z0"],[1,"header-left-content"],["fontSet","material-symbols-rounded",1,"expand-icon",3,"click","keydown"],[1,"subtitle",3,"click","keydown"],[1,"plus-logo"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"description"],[1,"card-actions"],[1,"preview"],[3,"ngClass"],["target","_blank",3,"href"],["diameter","24"],[1,"apiErrorBox"],[1,"divi
1der"],[3,"class"],[3,"click"],[1,"activation-necessary"],["routerLink","/abonnieren",1,"abo-link"],["fontSet","material-icons",1,"checkmark"],["fontSet","material-icons","routerLink","/abonnieren",1,"checkmark","blocked"]],template:function(n,s){1&n&&(t.j41(0,"div",1)(1,"h1"),t.EFF(2,"Newsletter verwalten"),t.k0s(),t.nVh(3,at,3,4)(4,ct,1,0,"mat-spinner",2),t.DNE(5,pt,1,1,"ng-template",null,0,t.C5r),t.k0s()),2&n&&(t.R7$(3),t.vxM(s.userLoaded||s.isNewSubscriber?3:4))},dependencies:[M.MD,M.YU,M.T3,p.Hu,p.RN,p.YY,p.m2,p.MM,B.m_,B.An,E.fS,w.iI,w.Wk,h.YN,v.D6,v.LG,G,M.Jj],styles:["@keyframes _ngcontent-%COMP%_blink{0%,to{background-color:#0082531a}50%{background-color:#0082534d}}[_nghost-%COMP%]{display:block;font-family:Open Sans,Arial,Verdana,sans-serif}.highlight[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_blink 1s ease-in-out 3;animation-fill-mode:forwards}.expand-icon[_ngcontent-%COMP%]{color:#008253;font-size:38px;font-weight:500;height:30px;max-width:30px;width:100%;position:relative;transform:rotate(0)}.expand-icon.rotated[_ngcontent-%COMP%]{transform:rotate(180deg);left:8px}.content-wrap[_ngcontent-%COMP%]{font-size:15px;display:flex;flex-direction:column;justify-content:center;margin:auto;width:70%}@media(max-width:768px){.content-wrap[_ngcontent-%COMP%]{width:90%}}.content-wrap[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{color:#008253;font-size:27px;font-family:Merriweather,Merriweather-Fallback,serif;font-weight:500;margin-bottom:4rem}.content-wrap[_ngcontent-%COMP%]   .headline[_ngcontent-%COMP%]{font-size:1.4rem;font-family:Merriweather,Merriweather-Fallback,serif;font-weight:500;margin:2.5rem 0 .5rem}.content-wrap[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]{border-radius:0;box-shadow:none;font-size:16px}.content-wrap[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   mat-card-header[_ngcontent-%COMP%]{padding:12px 0;display:flex;justify-content:flex-start;align-items:center}.content-wrap[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   .header-left-content[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;margin-right:auto;width:62%}@media(max-width:768px){.content-wrap[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   .header-left-content[_ngcontent-%COMP%]{width:80%}}.content-wrap[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   .plus-logo[_ngcontent-%COMP%]{background:url(https://assets.tt.com/assets/plus/plus-stern.svg) #008253 center no-repeat;background-size:cover;background-origin:content-box;vertical-align:middle;display:inline-block;margin:0 2px;width:1.5rem;height:1.5rem;border-radius:.5rem;padding:.15rem .3rem}.content-wrap[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{font-weight:500;color:#000;font-family:Merriweather,Merriweather-Fallback,serif;font-size:16px}.content-wrap[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   mat-card-content[_ngcontent-%COMP%]{padding:0}.content-wrap[_ngcontent-%COMP%]   .items[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%]{margin-top:5px;padding-left:10px}.content-wrap[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{border-bottom:1px solid rgb(150,147,147)}.content-wrap[_ngcontent-%COMP%]   .card-actions[_ngcontent-%COMP%]{justify-content:space-between;padding:8px 0}.content-wrap[_ngcontent-%COMP%]   .card-actions[_ngcontent-%COMP%]   .preview[_ngcontent-%COMP%]{margin-right:auto;margin-left:9px}.content-wrap[_ngcontent-%COMP%]   .card-actions[_ngcontent-%COMP%]   .hidden[_ngcontent-%COMP%]{display:none}.content-wrap[_ngcontent-%COMP%]   .actionButton[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;text-align:right}.content-wrap[_ngcontent-%COMP%]   .actionButton[_ngcontent-%COMP%]   .abo-link[_ngcontent-%COMP%]{text-decoration:underline;color:#008253}.content-wrap[_ngcontent-%COMP%]   .actionButton[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]{color:#008253;margin-left:6px}.content-wrap[_ngcontent-%COMP%]   .actionButton[_ngcontent-%COMP%]   .checkmark.blocked[_ngcontent-%COMP%]{color:gray;background-color:#d3d3d3;border-radius:4px}@media(max-width:768px){.content-wrap[_ngcontent-%COMP%]   .actionButton[_ngcontent-%COMP%]   .activation-necessary[_ngcontent-%COMP%]{max-width:77%}}.content-wrap[_ngcontent-%COMP%]   .actionButton.subscribe[_ngcontent-%COMP%], .content-wrap[_ngcontent-%COMP%]   .actionButton.unsubscribe[_ngcontent-%COMP%], .content-wrap[_ngcontent-%COMP%]   .actionButton.blocked[_ngcontent-%COMP%], .content-wrap[_ngcontent-%COMP%]   .actionButton.activatedOrDeactivated[_ngcontent-%COMP%]{cursor:pointer;background:none;border:none;font-weight:400;font-size:1.2rem;color:#008253}.content-wrap[_ngcontent-%COMP%]   .actionButton.blocked[_ngcontent-%COMP%], .content-wrap[_ngcontent-%COMP%]   .actionButton.activatedOrDeactivated[_ngcontent-%COMP%]{color:gray;pointer-events:none}@media(max-width:768px){.content-wrap[_ngcontent-%COMP%]   .actionButton.blocked[_ngcontent-%COMP%], .content-wrap[_ngcontent-%COMP%]   .actionButton.activatedOrDeactivated[_ngcontent-%COMP%]{width:160px}}.content-wrap[_ngcontent-%COMP%]   .apiErrorBox[_ngcontent-%COMP%]{font-weight:600;color:red}"],changeDetection:0})}}return i})()}}]);

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.