1import { g as c, y as d } from "./chunk-xgti9j2t.js"; 2import { $ as m, Ai as v, Ea as h, Ei as g, Hn as S, Jr as w, Li as N, Pi as T, Pt as l, Y as y, fa as u, fi as f, gt as s, la as D, nt as _, ri as b, sa as k, wr as F } from "./chunk-c97c17u8.js"; 3import { M as L, U as B, a as A } from "./chunk-l3jkbhly.js"; 4import { p as I } from "./chunk-k52vj1ic.js"; 5import { o as M } from "./chunk-l24fzhmb.js"; 6import { A as O } from "./chunk-jrtaqqwj.js"; 7import { o as $ } from "./chunk-pesy0vb6.js"; 8import { D as x, o as R, r as W } from "./chunk-llc8ry2a.js"; 9import { j as G, ut as H } from "./chunk-fbjoug0d.js"; 10import { a as J } from "./chunk-ewplex8i.js"; 11import { n as Z } from "./chunk-c18gpzrj.js"; 12import { r as P } from "./chunk-c9rg1mp5.js"; 13import { t as Y } from "./chunk-kyqvtgtk.js"; 14import { Y as j, gt as q, j as n } from "./chunk-w0x32net.js"; 15import { p as z } from "./chunk-bhnvkbxx.js"; 16import { ot as E } from "./chunk-f2v2cgea.js"; 17import { c as K } from "./chunk-og5uebri.js"; 18import { Ar as U, Dn as X, Tt as Q, dr as V, en as tt, it, jr as ot, tr as st, yn as et } from "./chunk-go6pvd0a.js"; 19import { n as nt, t as at } from "./chunk-k4et3zlq.js"; 20import { i as rt, p as ct } from "./chunk-hul0ult7.js"; 21import { n as mt } from "./chunk-lmnwxprc.js"; 22import { n as ht, r as lt, t as ut } from "./chunk-ilfhy0in.js"; 23import { n as ft } from "./chunk-ohg30iel.js"; 24import { $ as _t } from "./chunk-iuhjzybw.js"; 25import { t as kt } from "./chunk-o4f8w5yc.js"; 26function pt(t) { 27 return t.get(a); 28} 29function Ct(t, i) { 30 t & 1 && (h(0, "span", 0), m(1), u()), t & 2 && (l(), k(i)); 31} 32function dt() { 33 return [Q(p)]; 34} 35var a, r, p; 36function C() { 37 return (C = kt((() => { 38 d(), T(), L(), I(), M(), O(), $(), x(), H(), J(), Z(), P(), Y(), R(), q(), z(), E(), j(), K(), ot(), at(), ct(), rt(), mt(), lt(), ft(), _t(), X(), D(), a = (() => { 39 var t = class extends ht {}; 40 let i = (t.ɵfac = (() => { 41 let o; 42 return function(e) { 43 return (o || (o = v(t)))(e || t); 44 }; 45 })(), t.ɵprov = f({ 46 token: t, 47 factory: function(o) { 48 let e = null; 49 return o ? e = new o() : e = pt(w(ut)), e; 50 }, 51 providedIn: "root" 52 }), t); 53 return i = F([nt({ 54 key: "vnClock", 55 product: G.SF 56 })], i), i; 57 })(), r = (() => { 58 let t = class { 59 constructor() { 60 this.format = "mediumTime", this.commonMessages = s(V), this.clockConfig = s(a), this.clockService = s(st), this.htmlNode = s(W), this.localStoreService = s(it), this.dateTimeService = s(tt), this.time = this.clockService.tick(() => this.clockConfig.isConfigReady && this.clockConfig.useWithTimeZone ? this.dateTimeService.convertLocalToUserTimezone(/* @__PURE__ */ new Date()) : /* @__PURE__ */ new Date()); 61 } 62 ngOnInit() { 63 return c(this, null, function* () { 64 yield _(this.clockConfig.whenReady), this.clockConfig.dateTimeFormat && (this.format = this.clockConfig.dateTimeFormat), this.htmlNodeClassName = `${this.slotName?.toLowerCase() ?? "custom"}-clock-shown`, this.htmlNode.setCssClass(this.htmlNodeClassName, !0), this.storeSownCount(); 65 }); 66 } 67 ngOnDestroy() { 68 this.htmlNode.setCssClass(this.htmlNodeClassName, !1); 69 } 70 storeSownCount() { 71 let o = this.localStoreService.get(n.ClockShowTimes); 72 o ? o > 2 ? this.localStoreService.set(n.ClockShowTimes, 0) : this.localStoreService.set(n.ClockShowTimes, o++) : this.localStoreService.set(n.ClockShowTimes, 1); 73 } 74 }; 75 return t.ɵfac = function(i) { 76 return new (i || t)(); 77 }, t.ɵcmp = S({ 78 type: t, 79 selectors: [["vn-clock"]], 80 inputs: { 81 format: "format", 82 slotName: "slotName" 83 }, 84 decls: 4, 85 vars: 5, 86 consts: [[1, "clock-text"], [1, "clock-time"]], 87 template: function(i, o) { 88 if (i & 1 && (y(0, Ct, 2, 1, "span", 0), h(1, "span", 1), m(2), b(3, "date"), u()), i & 2) { 89 let e; 90 N((e = o.commonMessages.ClockText) ? 0 : -1, e), l(2), k(g(3, 2, o.time(), o.format)); 91 } 92 }, 93 dependencies: [B, A], 94 styles: [`@charset "UTF-8"; 95`], 96 encapsulation: 2 97 }), t; 98 })(), p = (() => { 99 let t = class { 100 constructor() { 101 this.config = s(a), this.dynamicLayoutService = s(et), this.embeddableComponentsService = s(U); 102 } 103 onFeatureInit() { 104 return c(this, null, function* () { 105 this.embeddableComponentsService.registerEmbeddableComponent(r), yield _(this.config.whenReady), this.config.slotName && this.dynamicLayoutService.addFirstC
105omponent(this.config.slotName, r, { 106 slotName: this.config.slotName, 107 format: this.config.dateTimeFormat 108 }); 109 }); 110 } 111 }; 112 return t.ɵfac = function(i) { 113 return new (i || t)(); 114 }, t.ɵprov = f({ 115 token: t, 116 factory: t.ɵfac 117 }), t; 118 })(); 119 })))(); 120} 121C(); 122export { r as ClockComponent, dt as provide }; 123 124//# sourceMappingURL=chunk-me5fcltp.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.