1"use strict";(self.webpackChunkhbApp=self.webpackChunkhbApp||[]).push([[4551],{54551(E,h,e){e.d(h,{ProfileComponent:()=>c});var l=e(29293),d=e.n(l),a=e(31635),i=e(47266),u=e(82990),v=e(12654),g=e(87980),M=e(54069),P=e(82444),p=e(99158),m=e(11973),f=e(21512),U=e(10456),n=e(35547),O=e(85697),C=e(29885),D=e(21393);const T=(s,o)=>({eventClassification:s,eventLabelGroup:o});function L(s,o){if(1&s&&(n.j41(0,"hmg-ghost-button",0)(1,"span"),n.EFF(2),n.nI1(3,"fullNameOrEmail"),n.k0s()()),2&s){const t=n.XpG();n.Y8G("hideLabel",!t.showUsernameOrFullname()),n.R7$(2),n.JRh(n.bMT(3,2,o))}}function I(s,o){if(1&s&&(n.j41(0,"hmg-button-link",1),n.EFF(1,"Anmelden "),n.k0s()),2&s){const t=n.XpG();n.Y8G("href",t.wasLoggedInBefore?t.loginUrl:t.registerUrl)("appTrackClick",n.l_i(2,T,t.eventClassification,t.loginEventLabelGroup))}}class c{openUserMenu(){var o=this;return d()(function*(){if(!o.userService.user())return;const{UserMenuModalComponent:t}=yield Promise.all([e.e(2076),e.e(2401)]).then(e.bind(e,52401)),{ContentModalService:r}=yield Promise.all([e.e(770),e.e(2559)]).then(e.bind(e,2559));yield o.injector.get(r).open(t)})()}constructor(o,t,r,_,A){this.brandService=o,this.userService=t,this.cookieService=r,this.ssoUrlService=_,this.injector=A,this.eventClassification=p.c.usermenu,this.loginEventLabelGroup=P.VAh.login,this.showUsernameOrFullname=(0,i.vPA)(!0===this.brandService.isHb()).asReadonly(),this.IconName=f.$MW,this.IconType=f.ATc,this.wasLoggedInBeforeCookieName=M.V.X_HMG_was_logged_in_before}get wasLoggedInBefore(){return"1"===this.cookieService.get(this.wasLoggedInBeforeCookieName)}get loginUrl(){return this.ssoUrlService.loginUrl}get registerUrl(){return this.ssoUrlService.registerUrl}static{this.\u0275fac=function(t){return new(t||c)(n.rXU(O.j),n.rXU(C.UserService),n.rXU(g.O),n.rXU(D.q),n.rXU(i.zZn))}}static{this.\u0275cmp=n.VBU({type:c,selectors:[["app-profile"]],hostBindings:function(t,r){1&t&&n.bIt("click",function(){return r.openUserMenu()})},decls:2,vars:1,consts:[["size","small","icon","verified","iconPlacement","left",1,"with-green-dot",3,"hideLabel"],["size","small","icon","user","iconPlacement","left",1,"ghost",3,"href","appTrackClick"]],template:function(t,r){if(1&t&&n.nVh(0,L,4,4,"hmg-ghost-button",0)(1,I,2,5,"hmg-button-link",1),2&t){let _;n.vxM((_=r.userService.user())?0:1,_)}},dependencies:[u.TrackClickDirective,m.TAk,m.WWc,U.FullNameOrEmailPipe],styles:["[_nghost-%COMP%] span[_ngcontent-%COMP%]{max-width:160px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}@media(min-width:9999px){[_nghost-%COMP%] span[_ngcontent-%COMP%]{max-width:210px}}[_nghost-%COMP%] hmg-ghost-button.with-green-dot hmg-icon svg path:nth-child(2){fill:var(--%NS%hmg-des-color-foreground-feedback-success-normal)}"],changeDetection:1})}}(0,a.Cg)([(0,v.Y)({defaultValue:!1}),(0,a.Sn)("design:type",Boolean),(0,a.Sn)("design:paramtypes",[])],c.prototype,"wasLoggedInBefore",null)},21393(E,h,e){e.d(h,{q:()=>a});var l=e(47266),d=e(14907);let a=(()=>{class i{#e=(0,l.WQX)(d.M);#n=(0,l.WQX)(l.qQL);get encodedServiceUrl(){return encodeURIComponent(this.#n.defaultView?.location.href??"")}get loginUrl(){return`${this.#e.ssoApi}/login?service=${this.encodedServiceUrl}`}get logoutUrl(){return`${this.#e.ssoApi}/logout?service=${this.encodedServiceUrl}`}get registerUrl(){return`${this.#e.ssoApi}/register?service=${this.encodedServiceUrl}`}navigateToLogin(){this.#n.defaultView&&(this.#n.defaultView.location.href=this.loginUrl)}static{this.\u0275fac=function(g){return new(g||i)}}static{this.\u0275prov=l.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}}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.