1import { b as C, g as y } from "./chunk-i2pl4wu9.js"; 2import { $i as b, Bi as T, Ei as g, Et as d, On as S, Ui as w, W as r, g as Q, oi as x } from "./chunk-ql746sly.js"; 3import { j as E } from "./chunk-hcheit1f.js"; 4import { p as P } from "./chunk-b11o3szq.js"; 5import { U as M, j as A, ut as R } from "./chunk-fz42rx6r.js"; 6import { r as D } from "./chunk-icjzvqcx.js"; 7import { t as N } from "./chunk-jbaamz4y.js"; 8import { A as j, b as z } from "./chunk-c01xxjhs.js"; 9import { J as I, et as J, gt as B, pt as O } from "./chunk-jtpxiaxj.js"; 10import { o as G } from "./chunk-jaxwt8s1.js"; 11import { j as L } from "./chunk-nhl74n6z.js"; 12import { o as $, t as q } from "./chunk-br9ckdzm.js"; 13import { p as F } from "./chunk-bl09vhvv.js"; 14import { ot as U } from "./chunk-f0xko016.js"; 15import { c as V } from "./chunk-n63cutws.js"; 16import { Dn as X, N as W, Tt as Y, jr as Z, lt as K, z as f } from "./chunk-eu7ozsb7.js"; 17import { a as H } from "./chunk-lt7tziae.js"; 18import { n as tt } from "./chunk-gpn04stg.js"; 19import { n as it, t as at } from "./chunk-lf77xnpz.js"; 20import { i as et, p as st } from "./chunk-bnt36dw9.js"; 21import { n as rt } from "./chunk-d6iooz3w.js"; 22import { n as nt, r as ot, t as ht } from "./chunk-jouxu15i.js"; 23import { n as ct } from "./chunk-c8btpjog.js"; 24import { tt as lt } from "./chunk-dkzazc5t.js"; 25import { t as ut } from "./chunk-o4f8w5yc.js"; 26function gt(i) { 27 return i.get(l); 28} 29function h(i) { 30 return i && i.toLowerCase(); 31} 32function mt() { 33 return [Y(k)]; 34} 35var l, m, _, k; 36function v() { 37 return (v = ut((() => { 38 C(), b(), E(), P(), R(), D(), N(), j(), B(), G(), L(), $(), z(), F(), U(), I(), V(), Z(), H(), tt(), at(), st(), et(), rt(), ot(), ct(), lt(), X(), T(), l = (() => { 39 var i = class extends nt {}; 40 let s = (i.ɵfac = (() => { 41 let t; 42 return function(a) { 43 return (t || (t = w(i)))(a || i); 44 }; 45 })(), i.ɵprov = g({ 46 token: i, 47 factory: function(t) { 48 let a = null; 49 return t ? a = new t() : a = gt(x(ht)), a; 50 }, 51 providedIn: "root" 52 }), i); 53 return s = d([it({ 54 key: "vnMetaTags", 55 product: A.SF 56 })], s), s; 57 })(), m = "_vanilla:pageTitle_", _ = (() => { 58 let i = class { 59 constructor() { 60 this.globalChanges = new f(), this.customChanges = new f(), this.pageService = r(W), this.config = r(l), this.navigationService = r(J), this.log = r(O), this.destroyRef = r(Q); 61 } 62 initialize() { 63 this.pageMetaTags = this.config.pageMetaTags.map((t) => ({ 64 urlPath: h(t.urlPath), 65 urlQueryParams: M(t.urlQueryParams, (a, e, o) => a[h(o)] = h(e), {}), 66 title: t.title, 67 tags: t.tags 68 })), this.globalMetaTags = this.config.globalMetaTags.map((t) => ({ 69 tags: t.tags, 70 urlPathAndQueryRegexes: t.urlPathAndQueryRegexes.map((a) => { 71 try { 72 return new RegExp(a, "i"); 73 } catch (e) { 74 return this.log.errorRemote(`Failed to compile regex /${a}/ because it's not supported on this browser. So it won't be executed for SEO global meta tag rule "${t.ruleName}".`, e), /.^/; 75 } 76 }) 77 })), this.navigationService.locationChange.pipe(q(this.destroyRef)).subscribe(() => this.evaluateSeoTags()), this.evaluateSeoTags(); 78 } 79 setPageTags(t, a) { 80 this.applyTitle(t, this.customChanges), this.applyTags(a || {}, this.customChanges); 81 } 82 clearPageTags() { 83 this.clearCustomChanges(); 84 } 85 evaluateSeoTags() { 86 this.clearCustomChanges(), this.clearGlobalChanges(); 87 let t = h(this.navigationService.location.path()), a = this.navigationService.location.search, e = a.toString(), o = decodeURI(t + (e ? "?" + e : "")), u = this.pageMetaTags.find((n) => n.urlPath === t && Object.keys(n.urlQueryParams).every((c) => { 88 let p = a.get(c); 89 return p !== null && h(p) === n.urlQueryParams[c]; 90 })); 91 u && (this.applyTitle(u.title, this.globalChanges), this.applyTags(u.tags, this.globalChanges)); 92 for (let n of this.globalMetaTags) n.urlPathAndQueryRegexes.some((c) => c.test(o)) && this.applyTags(n.tags, this.globalChanges); 93 } 94 clearCustomChanges() {
95 this.customChanges.forEach((t) => t.revert()), this.customChanges.clear(); 96 } 97 clearGlobalChanges() { 98 this.globalChanges.forEach((t) => t.revert()), this.globalChanges.clear(); 99 } 100 applyTitle(t, a) { 101 if (typeof t == "string" && !this.changeExists(m)) { 102 let e = this.pageService.setTitle(t); 103 a.set(m, e); 104 } 105 } 106 applyTags(t, a) { 107 for (let e of Object.keys(t)) { 108 if (!e.trim().length) throw new Error(`Tag name cannot be null nor white-space but such one was specified with value "${t[e]}".`); 109 if (!this.changeExists(e)) { 110 let o = this.pageService.setMeta(e, t[e]); 111 a.set(e, o); 112 } 113 } 114 } 115 changeExists(t) { 116 return this.globalChanges.has(t) || this.customChanges.has(t); 117 } 118 }; 119 return i.ɵfac = function(s) { 120 return new (s || i)(); 121 }, i.ɵprov = g({ 122 token: i, 123 factory: i.ɵfac, 124 providedIn: "root" 125 }), i; 126 })(), k = (() => { 127 let i = class { 128 constructor() { 129 this.config = r(l), this.metaTagsService = r(_), this.coreMetaTagsService = r(K); 130 } 131 onFeatureInit() { 132 return y(this, null, function* () { 133 yield S(this.config.whenReady), this.metaTagsService.initialize(), this.coreMetaTagsService.set(this.metaTagsService); 134 }); 135 } 136 }; 137 return i.ɵfac = function(s) { 138 return new (s || i)(); 139 }, i.ɵprov = g({ 140 token: i, 141 factory: i.ɵfac 142 }), i; 143 })(); 144 })))(); 145} 146v(); 147export { mt as provide }; 148 149//# sourceMappingURL=chunk-7f9iubvf2.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.