1import { g as y, y as A } from "./chunk-xgti9j2t.js"; 2import { Ai as B, Ea as s, Hn as S, Li as R, Pi as w, Pt as a, Ro as h, Sa as l, Sn as _, Sr as D, Ui as c, Y as P, fa as f, fi as k, fr as g, gt as n, l as G, la as H, nt as N, ri as O, t as v, tn as m, wa as T, wr as x, zo as b } from "./chunk-c97c17u8.js"; 3import { M as F } from "./chunk-l3jkbhly.js"; 4import { p as I } from "./chunk-k52vj1ic.js"; 5import { o as z } from "./chunk-l24fzhmb.js"; 6import { A as $ } from "./chunk-jrtaqqwj.js"; 7import { o as q, t as u } from "./chunk-pesy0vb6.js"; 8import { D as W, o as J } from "./chunk-llc8ry2a.js"; 9import { j as V, ut as X } from "./chunk-fbjoug0d.js"; 10import { a as Y } from "./chunk-ewplex8i.js"; 11import { n as j } from "./chunk-c18gpzrj.js"; 12import { r as K } from "./chunk-c9rg1mp5.js"; 13import { t as Q } from "./chunk-kyqvtgtk.js"; 14import { C as d, N as U, Q as Z, Y as tt, gt as et, l as C, nt as it, w as nt, z as rt } from "./chunk-w0x32net.js"; 15import { d as ot, h as st, p as at, r as mt } from "./chunk-bhnvkbxx.js"; 16import { ot as ct } from "./chunk-f2v2cgea.js"; 17import { a as ut, c as pt, s as ht } from "./chunk-og5uebri.js"; 18import { Dn as lt, Tt as _t, jr as ft } from "./chunk-go6pvd0a.js"; 19import { n as kt, t as gt } from "./chunk-k4et3zlq.js"; 20import { i as vt, p as bt } from "./chunk-hul0ult7.js"; 21import { n as dt, r as Ct } from "./chunk-lmnwxprc.js"; 22import { n as Mt, r as Et, t as Lt } from "./chunk-ilfhy0in.js"; 23import { n as yt } from "./chunk-ohg30iel.js"; 24import { $ as At } from "./chunk-iuhjzybw.js"; 25import { r as Bt } from "./chunk-i1knml6i.js"; 26import { t as St } from "./chunk-bt0uh5ix.js"; 27import { n as Rt } from "./chunk-bh3f6w1f.js"; 28import { i as wt } from "./chunk-eoj30x9t.js"; 29import { n as Dt, t as Pt } from "./chunk-bwsrvyqb.js"; 30import { A as Gt, L as Ht, M as Nt, q as Ot } from "./chunk-g8mtbi19.js"; 31import { $n as Tt, _i as xt } from "./chunk-iq8thase.js"; 32import { t as Ft } from "./chunk-o4f8w5yc.js"; 33function It(t) { 34 return t.get(o); 35} 36function zt(t, i) { 37 if (t & 1) { 38 let e = D(); 39 s(0, "lh-cross-product-layout"), _(1, "vn-header-bar", 0), s(2, "div", 1), _(3, "div", 2), O(4, "trustAsHtml"), s(5, "button", 3), v("click", function() { 40 return g(e), b(l().rememberMe()); 41 }), f(), s(6, "button", 4), v("click", function() { 42 return g(e), b(l().close()); 43 }), f()()(); 44 } 45 if (t & 2) { 46 let e = i; 47 a(), m("showClose", !1)("showBack", !1), a(2), m("innerHtml", T(4, 5, e.text), c), a(2), m("innerHtml", e.messages == null ? null : e.messages.rememberme, c), a(), m("innerHtml", e.messages == null ? null : e.messages.close, c); 48 } 49} 50function $t() { 51 return [{ 52 provide: o, 53 useFactory: It, 54 deps: [Lt] 55 }, _t(M)]; 56} 57var o, p, M, E; 58function L() { 59 return (L = Ft((() => { 60 A(), w(), F(), I(), z(), $(), q(), W(), X(), Y(), j(), K(), Q(), J(), et(), at(), ct(), tt(), pt(), ft(), gt(), bt(), vt(), dt(), Et(), yt(), At(), lt(), Bt(), St(), Rt(), wt(), Pt(), Ot(), Ht(), Gt(), Tt(), H(), o = (() => { 61 var t = class extends Mt {}; 62 let i = (t.ɵfac = (() => { 63 let e; 64 return function(r) { 65 return (e || (e = B(t)))(r || t); 66 }; 67 })(), t.ɵprov = k({ 68 token: t, 69 factory: t.ɵfac 70 }), t); 71 return i = x([kt({ 72 key: "vnRememberMeLogoutPrompt", 73 product: V.SF 74 })], i), i; 75 })(), p = (() => { 76 let t = class { 77 constructor() { 78 this.config = n(o), this.nativeAppService = n(rt), this.rememberMeService = n(d), this.trackingService = n(ut); 79 } 80 rememberMe() { 81 this.trackAction("remember me and close cta"), this.nativeAppService.sendToNative({ eventName: C.REMEMBER_ME_CLOSE }); 82 } 83 close() { 84 this.trackAction("close link"), N(this.rememberMeService.logout()).then(() => { 85 this.nativeAppService.sendToNative({ eventName: C.REMEMBER_ME_CLOSE }); 86 }); 87 } 88 trackAction(e) { 89 this.trackingService.triggerEvent(ht.Event, { 90 "component.CategoryEvent": "logout", 91 "component.LabelEvent": "remember me", 92 "component.ActionEvent": "click", 93 "component.PositionEvent": "post logout cta click", 94 "component.LocationEvent": "remember me logout prompt", 95 "component.EventDetails": e, 96 "component.URLClicked": "not applicable" 97 }); 98 } 99 }; 100 return t.ɵfac = function(i) { 101 return new (i || t)(); 102 }, t.ɵcmp = S({ 103 type: t, 104 selectors: [["vn-rememberme-logout-prompt"]], 105 decls: 1, 106 vars: 1, 107 consts: [ 108 [ 109 "titleCssClass", 110 "brand-logo", 111 "title", 112 "dummyTitle", 113 3, 114 "showClose", 115 "showBack" 116 ], 117 [ 118 1, 119 "portal-center-wrapper", 120 "pt-4" 121 ], 122 [3, "innerHtml"], 123 [ 124 "ds-button", 125 "", 126 "variant", 127 "filled", 128 "kind", 129 "primary", 130 1, 131 "w-100", 132 3, 133 "click", 134 "innerHtml" 135 ], 136 [ 137 "ds-button", 138 "", 139 "variant", 140 "flat", 141 "kind", 142 "tertiary", 143 1, 144 "w-100", 145 3, 146 "click", 147 "innerHtml" 148 ] 149 ], 150 template: function(i, e) { 151 if (i & 1 && P(0, zt, 7, 7, "lh-cross-product-layout"), i & 2) { 152 let r; 153 R((r = e.config.content) ? 0 : -1, r); 154 } 155 }, 156 dependencies: [ 157 xt, 158 Nt, 159 Ct, 160 Dt 161 ], 162 encapsulation: 2 163 }), t; 164 })(), M = (() => { 165 let t = class { 166 constructor() { 167 this.user = n(ot), this.navigation = n(Z), this.rememberMeService = n(d), this.cookieService = n(U), this.rememberMeLogoutConfig = n(o), this.destroyRef = n(G); 168 } 169 onFeatureInit() { 170 this.rememberMeLogoutConfig.whenReady.pipe(u(this.destroyRef)).subscribe(() => { 171 this.cookieService.put(nt.RmLp, "1"), this.user.isAuthenticated && this.resolveGreeting(), this.user.events.pipe(h((e) => e instanceof st), u(this.destroyRef)).subscribe(() => { 172 this.resolveGreeting(); 173 }), this.user.events.pipe(h((e) => e instanceof mt), u(this.destroyRef)).subscribe((e) => y(this, null, function* () { 174 e.isManualLogout && this.rememberMeService.tokenExists() ? yield this.navigation.goTo("/remember-me-logout", { forceReload: !1 }) : this.rememberMeService.logout(); 175 })); 176 }); 177 } 178 resolveGreeting() { 179 if (this.rememberMeLogoutConfig.content.messages?.claimGreetingProperty) { 180 let e = this.user.claims.get(this.rememberMeLogoutConfig.content.messages?.claimGreetingProperty), r = e && it(this.rememberMeLogoutConfig.content.text, { claimGreetingProperty: e }); 181 r && (this.rememberMeLogoutConfig.content.text = r); 182 } 183 } 184 }; 185 return t.ɵfac = function(i) { 186 return new (i || t)(); 187 }, t.ɵprov = k({ 188 token: t, 189 factory: t.ɵfac 190 }), t; 191 })(), E = [{ 192 path: "", 193 component: p, 194 data: { allowAnonymous: !0 } 195 }]; 196 })))(); 197} 198L(); 199export { E as ROUTES, p as RememberMeLogoutPromptComponent, $t as provide }; 200 201//# sourceMappingURL=chunk-Boikm29f0.js.map
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.