1import { g as f, y as l } from "./chunk-xgti9j2t.js"; 2import { Gt as v, Hn as C, Kn as d, Li as B, Pi as D, Ro as g, Sn as y, To as m, Y as b, fi as r, gt as s, l as M, oo as w, ri as R, tn as T, wa as A } from "./chunk-c97c17u8.js"; 3import { C as I, M as S, U as L } from "./chunk-l3jkbhly.js"; 4import { p as O } from "./chunk-k52vj1ic.js"; 5import { o as N } from "./chunk-l24fzhmb.js"; 6import { A as G } from "./chunk-jrtaqqwj.js"; 7import { o as H, t as c } from "./chunk-pesy0vb6.js"; 8import { D as j, o as q } from "./chunk-llc8ry2a.js"; 9import { ut as E } from "./chunk-fbjoug0d.js"; 10import { a as F } from "./chunk-ewplex8i.js"; 11import { n as P } from "./chunk-c18gpzrj.js"; 12import { r as X } from "./chunk-c9rg1mp5.js"; 13import { t as K } from "./chunk-kyqvtgtk.js"; 14import { Y as W, b as x, gt as z } from "./chunk-w0x32net.js"; 15import { p as J } from "./chunk-bhnvkbxx.js"; 16import { ot as V } from "./chunk-f2v2cgea.js"; 17import { c as $ } from "./chunk-og5uebri.js"; 18import { Dn as Z, Tt as Y, jr as Q } from "./chunk-go6pvd0a.js"; 19import { t as U } from "./chunk-k4et3zlq.js"; 20import { i as tt, p as nt } from "./chunk-hul0ult7.js"; 21import { n as it } from "./chunk-lmnwxprc.js"; 22import { r as et } from "./chunk-ilfhy0in.js"; 23import { n as st } from "./chunk-ohg30iel.js"; 24import { $ as ot, st as rt, ut as ct } from "./chunk-iuhjzybw.js"; 25import { a as at, s as _t } from "./chunk-bol8t3zz.js"; 26import { c as ut } from "./chunk-pccxjem8.js"; 27import { r as mt } from "./chunk-i1knml6i.js"; 28import { r as ht, t as pt } from "./chunk-bt0uh5ix.js"; 29import { n as kt } from "./chunk-bh3f6w1f.js"; 30import { i as ft } from "./chunk-eoj30x9t.js"; 31import { t as lt } from "./chunk-bwsrvyqb.js"; 32import { n as vt } from "./chunk-k0kygnvj.js"; 33import { $t as Ct, A as dt, At as Bt, C as Dt, Dt as gt, L as yt, _t as bt, it as Mt, lt as wt, on as Rt, pt as Tt, q as At, wt as It, xt as St, yt as Lt } from "./chunk-g8mtbi19.js"; 34import { $n as Ot, Dt as Nt, Hi as Gt } from "./chunk-iq8thase.js"; 35import { t as Ht } from "./chunk-o4f8w5yc.js"; 36function jt(t, n) { 37 t & 1 && y(0, "vn-content-messages", 0), t & 2 && T("messages", n); 38} 39function qt() { 40 return [Y(p)]; 41} 42var a, _, u, h, p; 43function k() { 44 return (k = Ht((() => { 45 l(), D(), S(), O(), N(), G(), H(), j(), E(), F(), P(), X(), K(), q(), z(), J(), V(), W(), $(), Q(), U(), nt(), tt(), it(), et(), st(), ot(), Z(), _t(), at(), ut(), mt(), pt(), kt(), ft(), lt(), vt(), Rt(), Ct(), Bt(), gt(), It(), St(), Lt(), bt(), Tt(), wt(), Mt(), At(), yt(), dt(), Dt(), Ot(), a = (() => { 46 let t = class { 47 constructor() { 48 this.api = s(x); 49 } 50 getContentBlock(e) { 51 return this.api.get("tokenization", { templateType: e }).pipe(d((i) => i.contentBlock)); 52 } 53 }; 54 return t.ɵfac = function(n) { 55 return new (n || t)(); 56 }, t.ɵprov = r({ 57 token: t, 58 factory: t.ɵfac, 59 providedIn: "root" 60 }), t; 61 })(), _ = new v("content-block"), u = (() => { 62 let t = class { 63 constructor() { 64 this.contentBlockService = s(a), this.content = s(_, { optional: !0 }); 65 } 66 ngOnInit() { 67 this.content ? this.contentBlock = this.content : this.contentBlock = this.contentBlockService.getContentBlock(this.templateType); 68 } 69 }; 70 return t.ɵfac = function(n) { 71 return new (n || t)(); 72 }, t.ɵcmp = C({ 73 type: t, 74 selectors: [["vn-content-block"]], 75 inputs: { templateType: "templateType" }, 76 decls: 2, 77 vars: 3, 78 consts: [[ 79 "closedCookieKey", 80 "cb", 81 1, 82 "content-block-messages", 83 3, 84 "messages" 85 ]], 86 template: function(n, e) { 87 if (n & 1 && (b(0, jt, 1, 1, "vn-content-messages", 0), R(1, "async")), n & 2) { 88 let i; 89 B((i = A(1, 1, e.contentBlock)) ? 0 : -1, i); 90 } 91 }, 92 dependencies: [ 93 L, 94 Gt, 95 I 96 ], 97 encapsulation: 2, 98 changeDetection: 1 99 }), t; 100 })(), h = (() => { 101 let t = class { 102 constructor() { 103 this.destroyRef = s(M), this.overlay = s(ht), this.injector = s(m), this.contentMessagesService = s(Nt), this.contentStream = new w(1), s(a).getContentBlock("overlaycontentblock").pipe(g((e) => this.filterClosedMessage(e)), c()).subscribe(this.contentStream); 104 } 105 showOverlayMessage() { 106 this.contentStream.pipe(c(this.destroyRef)).subscribe((e) => { 107 if (e.length && !this.currentRef) { 108 let i = this.overlay.create({ panelClass: "vn-content-block-overlay" }), o = new ct(u, null, m.create({ 109 providers: [{ 110 provide: rt, 111 useValue: i 112 }, {
113 provide: _, 114 useValue: this.contentStream.asObservable() 115 }], 116 parent: this.injector 117 })); 118 i.attach(o), i.detachments().pipe(c(this.destroyRef)).subscribe(() => { 119 this.overlay.dispose(this.currentRef), this.currentRef = null; 120 }), this.currentRef = i; 121 } else !e && this.currentRef && (this.overlay.dispose(this.currentRef), this.currentRef = null); 122 }); 123 } 124 filterClosedMessage(e) { 125 let i = new Set(this.contentMessagesService.getClosedMessageNames("cb").map((o) => o.toLowerCase())); 126 return e.some((o) => o && !i.has(o.name.toLowerCase())); 127 } 128 }; 129 return t.ɵfac = function(n) { 130 return new (n || t)(); 131 }, t.ɵprov = r({ 132 token: t, 133 factory: t.ɵfac, 134 providedIn: "root" 135 }), t; 136 })(), p = (() => { 137 let t = class { 138 constructor() { 139 this.contentBlockService = s(h); 140 } 141 onFeatureInit() { 142 return f(this, null, function* () { 143 this.contentBlockService.showOverlayMessage(); 144 }); 145 } 146 }; 147 return t.ɵfac = function(n) { 148 return new (n || t)(); 149 }, t.ɵprov = r({ 150 token: t, 151 factory: t.ɵfac 152 }), t; 153 })(); 154 })))(); 155} 156k(); 157export { u as ContentBlockComponent, qt as provide }; 158 159//# sourceMappingURL=chunk-Bdcrmh3sp.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.