@zerops/web-components 0.2.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1186 @@
1
+ var Fe = Object.defineProperty;
2
+ var ne = (e) => {
3
+ throw TypeError(e);
4
+ };
5
+ var Be = (e, t, n) => t in e ? Fe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
+ var o = (e, t, n) => Be(e, typeof t != "symbol" ? t + "" : t, n), H = (e, t, n) => t.has(e) || ne("Cannot " + n);
7
+ var v = (e, t, n) => (H(e, t, "read from private field"), n ? n.call(e) : t.get(e)), M = (e, t, n) => t.has(e) ? ne("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), y = (e, t, n, r) => (H(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), j = (e, t, n) => (H(e, t, "access private method"), n);
8
+ import { bs as Z, bt as Le, bu as He, L as W, O as be, bv as je, bw as Ue, c as Ee, bx as we, by as Ge, bz as ke, o as Ce, f as Se, H as Ye, l as p, aL as Ae, u as Ke, b9 as Ve, bf as $e, k as F, bA as qe, bB as Qe, n as J, bC as Ze, aG as ye, j as We, M as Je, y as S, N as Xe, I as Re, bg as et, p as tt, aT as Y, r as Ie, a7 as U, bD as re, F as nt, aM as rt, b8 as it, at as ot, a2 as st, av as at, bE as lt, bF as ct, T as ut, z as dt } from "./app-CrO8M3t-.js";
9
+ function ht() {
10
+ for (var e = [], t = 0; t < arguments.length; t++)
11
+ e[t] = arguments[t];
12
+ var n = Z(e), r = Le(e), i = He(e), s = i.args, l = i.keys;
13
+ if (s.length === 0)
14
+ return W([], n);
15
+ var u = new be(pt(s, n, l ? function(h) {
16
+ return Ge(l, h);
17
+ } : we));
18
+ return r ? u.pipe(je(r)) : u;
19
+ }
20
+ function pt(e, t, n) {
21
+ return n === void 0 && (n = we), function(r) {
22
+ ie(t, function() {
23
+ for (var i = e.length, s = new Array(i), l = i, u = i, h = function(a) {
24
+ ie(t, function() {
25
+ var f = W(e[a], t), _ = !1;
26
+ f.subscribe(Ee(r, function(b) {
27
+ s[a] = b, _ || (_ = !0, u--), u || r.next(n(s.slice()));
28
+ }, function() {
29
+ --l || r.complete();
30
+ }));
31
+ }, r);
32
+ }, d = 0; d < i; d++)
33
+ h(d);
34
+ }, r);
35
+ };
36
+ }
37
+ function ie(e, t, n) {
38
+ e ? Ue(n, e, t) : t();
39
+ }
40
+ function ft() {
41
+ return ke(1);
42
+ }
43
+ function K() {
44
+ for (var e = [], t = 0; t < arguments.length; t++)
45
+ e[t] = arguments[t];
46
+ return ft()(W(e, Z(e)));
47
+ }
48
+ function mt(e, t) {
49
+ return t === void 0 && (t = Se), Ce(function(n, r) {
50
+ var i = null, s = null, l = null, u = function() {
51
+ if (i) {
52
+ i.unsubscribe(), i = null;
53
+ var d = s;
54
+ s = null, r.next(d);
55
+ }
56
+ };
57
+ function h() {
58
+ var d = l + e, a = t.now();
59
+ if (a < d) {
60
+ i = this.schedule(void 0, d - a), r.add(i);
61
+ return;
62
+ }
63
+ u();
64
+ }
65
+ n.subscribe(Ee(r, function(d) {
66
+ s = d, l = t.now(), i || (i = t.schedule(h, e), r.add(i));
67
+ }, function() {
68
+ u(), r.complete();
69
+ }, void 0, function() {
70
+ s = i = null;
71
+ }));
72
+ });
73
+ }
74
+ function gt(e) {
75
+ return Ye(function(t, n) {
76
+ return e <= n;
77
+ });
78
+ }
79
+ function _t() {
80
+ for (var e = [], t = 0; t < arguments.length; t++)
81
+ e[t] = arguments[t];
82
+ var n = Z(e);
83
+ return Ce(function(r, i) {
84
+ (n ? K(e, r, n) : K(e, r)).subscribe(i);
85
+ });
86
+ }
87
+ const x = /* @__PURE__ */ new WeakMap();
88
+ let vt = /* @__PURE__ */ (() => {
89
+ const t = class t {
90
+ constructor() {
91
+ o(this, "_appRef");
92
+ o(this, "_injector", p(Ae));
93
+ o(this, "_environmentInjector", p(Ke));
94
+ }
95
+ load(r) {
96
+ const i = this._appRef = this._appRef || this._injector.get(Ve);
97
+ let s = x.get(i);
98
+ s || (s = {
99
+ loaders: /* @__PURE__ */ new Set(),
100
+ refs: []
101
+ }, x.set(i, s), i.onDestroy(() => {
102
+ x.get(i)?.refs.forEach((l) => l.destroy()), x.delete(i);
103
+ })), s.loaders.has(r) || (s.loaders.add(r), s.refs.push($e(r, {
104
+ environmentInjector: this._environmentInjector
105
+ })));
106
+ }
107
+ };
108
+ o(t, "ɵfac", function(i) {
109
+ return new (i || t)();
110
+ }), o(t, "ɵprov", /* @__PURE__ */ F({
111
+ token: t,
112
+ factory: t.ɵfac,
113
+ providedIn: "root"
114
+ }));
115
+ let e = t;
116
+ return e;
117
+ })();
118
+ var oe;
119
+ (function(e) {
120
+ e.Runtimes = "runtimes", e.Backend = "backend", e.Frontend = "frontend", e.ProjectUtility = "project-utility", e.ServiceUtility = "service-utility", e.PlatformBots = "platform-bots", e.Other = "other";
121
+ })(oe || (oe = {}));
122
+ function X(e) {
123
+ return e.mode ? e.mode : e.typeVersionName?.includes(":ha@") ? "HA" : "NON_HA";
124
+ }
125
+ var c;
126
+ (function(e) {
127
+ e.Elasticsearch = "elasticsearch", e.Meilisearch = "meilisearch", e.Typesense = "typesense", e.Redis = "keydb", e.Valkey = "valkey", e.Qdrant = "qdrant", e.Nats = "nats", e.Kafka = "kafka", e.MariaDb = "mariadb", e.MongoDb = "mongodb", e.PhpNginx = "php_nginx", e.PhpApache = "php_apache", e.Nginx = "nginx", e.NodeJs = "nodejs", e.Ubuntu = "ubuntu", e.Alpine = "alpine", e.Docker = "docker", e.Postgres = "postgresql", e.Clickhouse = "clickhouse", e.Golang = "golang", e.ObjectStorage = "object_storage", e.SharedStorage = "shared_storage", e.DotNet = "dotnet", e.Rust = "rust", e.Python = "python", e.Static = "static", e.Bun = "bun", e.Deno = "deno", e.Java = "java", e.Elixir = "elixir", e.Gleam = "gleam", e.Ruby = "ruby";
128
+ })(c || (c = {}));
129
+ const bt = {
130
+ [c.Elasticsearch]: {
131
+ horizontal: !1,
132
+ vertical: !0,
133
+ mode: !0,
134
+ HAContainers: {
135
+ appContainers: 3,
136
+ freeContainers: 0
137
+ }
138
+ },
139
+ [c.Meilisearch]: {
140
+ horizontal: !1,
141
+ vertical: !0,
142
+ mode: !1
143
+ },
144
+ [c.Typesense]: {
145
+ horizontal: !1,
146
+ vertical: !0,
147
+ mode: !0,
148
+ HAContainers: {
149
+ appContainers: 3,
150
+ freeContainers: 0
151
+ }
152
+ },
153
+ [c.Redis]: {
154
+ horizontal: !1,
155
+ vertical: !0,
156
+ mode: !0,
157
+ HAContainers: {
158
+ appContainers: 2,
159
+ freeContainers: 0
160
+ }
161
+ },
162
+ [c.Postgres]: {
163
+ horizontal: !1,
164
+ vertical: !0,
165
+ mode: !0,
166
+ HAContainers: {
167
+ appContainers: 3,
168
+ freeContainers: 2
169
+ }
170
+ },
171
+ [c.Clickhouse]: {
172
+ horizontal: !1,
173
+ vertical: !0,
174
+ mode: !0,
175
+ HAContainers: {
176
+ appContainers: 3,
177
+ freeContainers: 0
178
+ }
179
+ },
180
+ [c.Valkey]: {
181
+ horizontal: !1,
182
+ vertical: !0,
183
+ mode: !0,
184
+ HAContainers: {
185
+ appContainers: 3,
186
+ freeContainers: 0
187
+ }
188
+ },
189
+ [c.Qdrant]: {
190
+ horizontal: !1,
191
+ vertical: !0,
192
+ mode: !0,
193
+ HAContainers: {
194
+ appContainers: 3,
195
+ freeContainers: 0
196
+ }
197
+ },
198
+ [c.Nats]: {
199
+ horizontal: !1,
200
+ vertical: !0,
201
+ mode: !0,
202
+ HAContainers: {
203
+ appContainers: 3,
204
+ freeContainers: 0
205
+ }
206
+ },
207
+ [c.Kafka]: {
208
+ horizontal: !1,
209
+ vertical: !0,
210
+ mode: !0,
211
+ HAContainers: {
212
+ appContainers: 3,
213
+ freeContainers: 0
214
+ }
215
+ },
216
+ [c.MariaDb]: {
217
+ horizontal: !1,
218
+ vertical: !0,
219
+ mode: !0,
220
+ HAContainers: {
221
+ appContainers: 3,
222
+ freeContainers: 2
223
+ }
224
+ },
225
+ [c.MongoDb]: {
226
+ horizontal: !1,
227
+ vertical: !0,
228
+ mode: !0,
229
+ HAContainers: {
230
+ appContainers: 3,
231
+ freeContainers: 0
232
+ }
233
+ },
234
+ [c.PhpNginx]: {
235
+ horizontal: !0,
236
+ vertical: !0,
237
+ mode: !1
238
+ },
239
+ [c.PhpApache]: {
240
+ horizontal: !0,
241
+ vertical: !0,
242
+ mode: !1
243
+ },
244
+ [c.Nginx]: {
245
+ horizontal: !0,
246
+ vertical: !0,
247
+ mode: !1
248
+ },
249
+ [c.Static]: {
250
+ horizontal: !0,
251
+ vertical: !0,
252
+ mode: !1
253
+ },
254
+ [c.NodeJs]: {
255
+ horizontal: !0,
256
+ vertical: !0,
257
+ mode: !1
258
+ },
259
+ [c.Bun]: {
260
+ horizontal: !0,
261
+ vertical: !0,
262
+ mode: !1
263
+ },
264
+ [c.Deno]: {
265
+ horizontal: !0,
266
+ vertical: !0,
267
+ mode: !1
268
+ },
269
+ [c.Java]: {
270
+ horizontal: !0,
271
+ vertical: !0,
272
+ mode: !1
273
+ },
274
+ [c.Ubuntu]: {
275
+ horizontal: !0,
276
+ vertical: !0,
277
+ mode: !1
278
+ },
279
+ [c.Alpine]: {
280
+ horizontal: !0,
281
+ vertical: !0,
282
+ mode: !1
283
+ },
284
+ [c.Docker]: {
285
+ horizontal: !0,
286
+ vertical: !0,
287
+ mode: !1
288
+ },
289
+ [c.Golang]: {
290
+ horizontal: !0,
291
+ vertical: !0,
292
+ mode: !1
293
+ },
294
+ [c.Rust]: {
295
+ horizontal: !0,
296
+ vertical: !0,
297
+ mode: !1
298
+ },
299
+ [c.Elixir]: {
300
+ horizontal: !0,
301
+ vertical: !0,
302
+ mode: !1
303
+ },
304
+ [c.Gleam]: {
305
+ horizontal: !0,
306
+ vertical: !0,
307
+ mode: !1
308
+ },
309
+ [c.Ruby]: {
310
+ horizontal: !0,
311
+ vertical: !0,
312
+ mode: !1
313
+ },
314
+ [c.Python]: {
315
+ horizontal: !0,
316
+ vertical: !0,
317
+ mode: !1
318
+ },
319
+ [c.DotNet]: {
320
+ horizontal: !0,
321
+ vertical: !0,
322
+ mode: !1
323
+ },
324
+ [c.SharedStorage]: {
325
+ horizontal: !1,
326
+ vertical: !0,
327
+ mode: !0,
328
+ HAContainers: {
329
+ appContainers: 2,
330
+ freeContainers: 0
331
+ }
332
+ },
333
+ [c.ObjectStorage]: {
334
+ horizontal: !1,
335
+ vertical: !1,
336
+ mode: !1
337
+ }
338
+ };
339
+ function Oe(e, t, n = 1) {
340
+ if (!e)
341
+ return n;
342
+ if (t === "HA") {
343
+ const r = bt[e];
344
+ if (r?.HAContainers?.appContainers)
345
+ return r.HAContainers.appContainers;
346
+ }
347
+ return n;
348
+ }
349
+ function nn(e) {
350
+ const t = e?.filter((n) => n.category !== "CORE") ?? [];
351
+ return [
352
+ ...t.filter((n) => n.category !== "OBJECT_STORAGE"),
353
+ ...t.filter((n) => n.category === "OBJECT_STORAGE")
354
+ ];
355
+ }
356
+ function rn(e, t) {
357
+ if (t)
358
+ return t;
359
+ const n = e?.find((r) => r.category === "CORE");
360
+ return n && X(n) === "HA" ? "SERIOUS" : "LIGHT";
361
+ }
362
+ function on(e) {
363
+ const t = { cpu: 0, ram: 0, disc: 0, storage: 0 };
364
+ return e?.length ? e.reduce((n, r) => {
365
+ if (r.category === "OBJECT_STORAGE")
366
+ return n.storage += r.objectStorageSize || 0, n;
367
+ const i = r.autoscaling?.verticalAutoscaling?.minResource, s = Oe(r.typeId, X(r), r.autoscaling?.horizontalAutoscaling?.minContainerCount || 1);
368
+ return i && (n.cpu += i.cpuCoreCount * s, n.ram += i.memoryGBytes * s, n.disc += i.diskGBytes * s), n;
369
+ }, t) : t;
370
+ }
371
+ function sn(e) {
372
+ return Oe(e.typeId, X(e), e.autoscaling?.horizontalAutoscaling?.minContainerCount || 1);
373
+ }
374
+ function Et(e) {
375
+ const t = e.match(/^(\d+)\s*[—-]\s*(.+)$/);
376
+ if (t) {
377
+ const n = parseInt(t[1], 10), r = t[2].trim(), i = r.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
378
+ return { order: n, key: i, name: r };
379
+ }
380
+ return {
381
+ order: 999,
382
+ key: e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, ""),
383
+ name: e
384
+ };
385
+ }
386
+ function De(e) {
387
+ const t = e.sourceData.environments.map((r) => {
388
+ const { order: i, key: s, name: l } = Et(r.name), u = r.services.map((a) => ({
389
+ ...a,
390
+ _zeropsYml: a.zeropsYaml || ""
391
+ })), { zeropsYmlObjs: h, zeropsYmlArr: d } = u.reduce((a, f) => {
392
+ if (f._zeropsYml) {
393
+ const _ = {
394
+ service: f,
395
+ zeropsYml: f._zeropsYml || ""
396
+ };
397
+ a.zeropsYmlObjs[f.name] = _, a.zeropsYmlArr.push(_);
398
+ }
399
+ return a;
400
+ }, {
401
+ zeropsYmlObjs: {},
402
+ zeropsYmlArr: []
403
+ });
404
+ return {
405
+ ...r,
406
+ name: l,
407
+ // Override with parsed display name (without prefix)
408
+ _order: i,
409
+ _key: s,
410
+ _serviceZeropsYmls: {
411
+ obj: h,
412
+ arr: d
413
+ },
414
+ _servicesExtended: u
415
+ };
416
+ }), n = t.reduce((r, i) => (r[i._key] = i, r), {});
417
+ return {
418
+ ...e,
419
+ _environmentsExtended: t,
420
+ _environmentsExtendedMap: n
421
+ };
422
+ }
423
+ const wt = ["small-production", "production", "highly-available-production"];
424
+ function Ct(e, t) {
425
+ if (e?.length) {
426
+ for (const n of wt) {
427
+ const r = e.find((i) => i._key === n);
428
+ if (r)
429
+ return r;
430
+ }
431
+ return e[Math.floor((e.length - 1) / 2)];
432
+ }
433
+ }
434
+ function an(e, t) {
435
+ return Ct(e)?._key;
436
+ }
437
+ function At(e) {
438
+ return e.buttons === 0 || e.detail === 0;
439
+ }
440
+ function yt(e) {
441
+ const t = e.touches && e.touches[0] || e.changedTouches && e.changedTouches[0];
442
+ return !!t && t.identifier === -1 && (t.radiusX == null || t.radiusX === 1) && (t.radiusY == null || t.radiusY === 1);
443
+ }
444
+ let G;
445
+ function Rt() {
446
+ if (G == null) {
447
+ const e = typeof document < "u" ? document.head : null;
448
+ G = !!(e && (e.createShadowRoot || e.attachShadow));
449
+ }
450
+ return G;
451
+ }
452
+ function ln(e) {
453
+ if (Rt()) {
454
+ const t = e.getRootNode ? e.getRootNode() : null;
455
+ if (typeof ShadowRoot < "u" && ShadowRoot && t instanceof ShadowRoot)
456
+ return t;
457
+ }
458
+ return null;
459
+ }
460
+ function cn() {
461
+ let e = typeof document < "u" && document ? document.activeElement : null;
462
+ for (; e && e.shadowRoot; ) {
463
+ const t = e.shadowRoot.activeElement;
464
+ if (t === e)
465
+ break;
466
+ e = t;
467
+ }
468
+ return e;
469
+ }
470
+ function It(e) {
471
+ return e.composedPath ? e.composedPath()[0] : e.target;
472
+ }
473
+ let V;
474
+ try {
475
+ V = typeof Intl < "u" && Intl.v8BreakIterator;
476
+ } catch {
477
+ V = !1;
478
+ }
479
+ let Me = /* @__PURE__ */ (() => {
480
+ const t = class t {
481
+ constructor() {
482
+ o(this, "_platformId", p(qe));
483
+ o(this, "isBrowser", this._platformId ? Qe(this._platformId) : typeof document == "object" && !!document);
484
+ o(this, "EDGE", this.isBrowser && /(edge)/i.test(navigator.userAgent));
485
+ o(this, "TRIDENT", this.isBrowser && /(msie|trident)/i.test(navigator.userAgent));
486
+ o(this, "BLINK", this.isBrowser && !!(window.chrome || V) && typeof CSS < "u" && !this.EDGE && !this.TRIDENT);
487
+ o(this, "WEBKIT", this.isBrowser && /AppleWebKit/i.test(navigator.userAgent) && !this.BLINK && !this.EDGE && !this.TRIDENT);
488
+ o(this, "IOS", this.isBrowser && /iPad|iPhone|iPod/.test(navigator.userAgent) && !("MSStream" in window));
489
+ o(this, "FIREFOX", this.isBrowser && /(firefox|minefield)/i.test(navigator.userAgent));
490
+ o(this, "ANDROID", this.isBrowser && /android/i.test(navigator.userAgent) && !this.TRIDENT);
491
+ o(this, "SAFARI", this.isBrowser && /safari/i.test(navigator.userAgent) && this.WEBKIT);
492
+ }
493
+ };
494
+ o(t, "ɵfac", function(i) {
495
+ return new (i || t)();
496
+ }), o(t, "ɵprov", /* @__PURE__ */ F({
497
+ token: t,
498
+ factory: t.ɵfac,
499
+ providedIn: "root"
500
+ }));
501
+ let e = t;
502
+ return e;
503
+ })(), R;
504
+ function Ot() {
505
+ if (R == null && typeof window < "u")
506
+ try {
507
+ window.addEventListener("test", null, Object.defineProperty({}, "passive", {
508
+ get: () => R = !0
509
+ }));
510
+ } finally {
511
+ R = R || !1;
512
+ }
513
+ return R;
514
+ }
515
+ function xe(e) {
516
+ return Ot() ? e : !!e.capture;
517
+ }
518
+ function un(e, t = 0) {
519
+ return Dt(e) ? Number(e) : arguments.length === 2 ? t : 0;
520
+ }
521
+ function Dt(e) {
522
+ return !isNaN(parseFloat(e)) && !isNaN(Number(e));
523
+ }
524
+ function se(e) {
525
+ return e instanceof J ? e.nativeElement : e;
526
+ }
527
+ function ae(e) {
528
+ return Array.isArray(e) ? e : [e];
529
+ }
530
+ const le = /* @__PURE__ */ new Set();
531
+ let w, Pe = /* @__PURE__ */ (() => {
532
+ const t = class t {
533
+ constructor() {
534
+ o(this, "_platform", p(Me));
535
+ o(this, "_nonce", p(Ze, {
536
+ optional: !0
537
+ }));
538
+ o(this, "_matchMedia");
539
+ this._matchMedia = this._platform.isBrowser && window.matchMedia ? window.matchMedia.bind(window) : xt;
540
+ }
541
+ matchMedia(r) {
542
+ return (this._platform.WEBKIT || this._platform.BLINK) && Mt(r, this._nonce), this._matchMedia(r);
543
+ }
544
+ };
545
+ o(t, "ɵfac", function(i) {
546
+ return new (i || t)();
547
+ }), o(t, "ɵprov", /* @__PURE__ */ F({
548
+ token: t,
549
+ factory: t.ɵfac,
550
+ providedIn: "root"
551
+ }));
552
+ let e = t;
553
+ return e;
554
+ })();
555
+ function Mt(e, t) {
556
+ if (!le.has(e))
557
+ try {
558
+ w || (w = document.createElement("style"), t && w.setAttribute("nonce", t), w.setAttribute("type", "text/css"), document.head.appendChild(w)), w.sheet && (w.sheet.insertRule(`@media ${e} {body{ }}`, 0), le.add(e));
559
+ } catch (n) {
560
+ console.error(n);
561
+ }
562
+ }
563
+ function xt(e) {
564
+ return {
565
+ matches: e === "all" || e === "",
566
+ media: e,
567
+ addListener: () => {
568
+ },
569
+ removeListener: () => {
570
+ }
571
+ };
572
+ }
573
+ let dn = /* @__PURE__ */ (() => {
574
+ const t = class t {
575
+ constructor() {
576
+ o(this, "_mediaMatcher", p(Pe));
577
+ o(this, "_zone", p(ye));
578
+ o(this, "_queries", /* @__PURE__ */ new Map());
579
+ o(this, "_destroySubject", new We());
580
+ }
581
+ ngOnDestroy() {
582
+ this._destroySubject.next(), this._destroySubject.complete();
583
+ }
584
+ isMatched(r) {
585
+ return ce(ae(r)).some((s) => this._registerQuery(s).mql.matches);
586
+ }
587
+ observe(r) {
588
+ const s = ce(ae(r)).map((u) => this._registerQuery(u).observable);
589
+ let l = ht(s);
590
+ return l = K(l.pipe(Je(1)), l.pipe(gt(1), mt(0))), l.pipe(S((u) => {
591
+ const h = {
592
+ matches: !1,
593
+ breakpoints: {}
594
+ };
595
+ return u.forEach(({
596
+ matches: d,
597
+ query: a
598
+ }) => {
599
+ h.matches = h.matches || d, h.breakpoints[a] = d;
600
+ }), h;
601
+ }));
602
+ }
603
+ _registerQuery(r) {
604
+ if (this._queries.has(r))
605
+ return this._queries.get(r);
606
+ const i = this._mediaMatcher.matchMedia(r), l = {
607
+ observable: new be((u) => {
608
+ const h = (d) => this._zone.run(() => u.next(d));
609
+ return i.addListener(h), () => {
610
+ i.removeListener(h);
611
+ };
612
+ }).pipe(_t(i), S(({
613
+ matches: u
614
+ }) => ({
615
+ query: r,
616
+ matches: u
617
+ })), Xe(this._destroySubject)),
618
+ mql: i
619
+ };
620
+ return this._queries.set(r, l), l;
621
+ }
622
+ };
623
+ o(t, "ɵfac", function(i) {
624
+ return new (i || t)();
625
+ }), o(t, "ɵprov", /* @__PURE__ */ F({
626
+ token: t,
627
+ factory: t.ɵfac,
628
+ providedIn: "root"
629
+ }));
630
+ let e = t;
631
+ return e;
632
+ })();
633
+ function ce(e) {
634
+ return e.map((t) => t.split(",")).reduce((t, n) => t.concat(n)).map((t) => t.trim());
635
+ }
636
+ const Pt = /* @__PURE__ */ new Re("MATERIAL_ANIMATIONS");
637
+ let ue = null;
638
+ function Nt() {
639
+ return p(Pt, {
640
+ optional: !0
641
+ })?.animationsDisabled || p(et, {
642
+ optional: !0
643
+ }) === "NoopAnimations" ? "di-disabled" : (ue ?? (ue = p(Pe).matchMedia("(prefers-reduced-motion)").matches), ue ? "reduced-motion" : "enabled");
644
+ }
645
+ function zt() {
646
+ return Nt() !== "enabled";
647
+ }
648
+ var m = /* @__PURE__ */ (function(e) {
649
+ return e[e.FADING_IN = 0] = "FADING_IN", e[e.VISIBLE = 1] = "VISIBLE", e[e.FADING_OUT = 2] = "FADING_OUT", e[e.HIDDEN = 3] = "HIDDEN", e;
650
+ })(m || {});
651
+ class Tt {
652
+ constructor(t, n, r, i = !1) {
653
+ o(this, "_renderer");
654
+ o(this, "element");
655
+ o(this, "config");
656
+ o(this, "_animationForciblyDisabledThroughCss");
657
+ o(this, "state", m.HIDDEN);
658
+ this._renderer = t, this.element = n, this.config = r, this._animationForciblyDisabledThroughCss = i;
659
+ }
660
+ fadeOut() {
661
+ this._renderer.fadeOutRipple(this);
662
+ }
663
+ }
664
+ const de = /* @__PURE__ */ xe({
665
+ passive: !0,
666
+ capture: !0
667
+ });
668
+ class Ft {
669
+ constructor() {
670
+ o(this, "_events", /* @__PURE__ */ new Map());
671
+ o(this, "_delegateEventHandler", (t) => {
672
+ const n = It(t);
673
+ n && this._events.get(t.type)?.forEach((r, i) => {
674
+ (i === n || i.contains(n)) && r.forEach((s) => s.handleEvent(t));
675
+ });
676
+ });
677
+ }
678
+ addHandler(t, n, r, i) {
679
+ const s = this._events.get(n);
680
+ if (s) {
681
+ const l = s.get(r);
682
+ l ? l.add(i) : s.set(r, /* @__PURE__ */ new Set([i]));
683
+ } else
684
+ this._events.set(n, /* @__PURE__ */ new Map([[r, /* @__PURE__ */ new Set([i])]])), t.runOutsideAngular(() => {
685
+ document.addEventListener(n, this._delegateEventHandler, de);
686
+ });
687
+ }
688
+ removeHandler(t, n, r) {
689
+ const i = this._events.get(t);
690
+ if (!i)
691
+ return;
692
+ const s = i.get(n);
693
+ s && (s.delete(r), s.size === 0 && i.delete(n), i.size === 0 && (this._events.delete(t), document.removeEventListener(t, this._delegateEventHandler, de)));
694
+ }
695
+ }
696
+ const he = {
697
+ enterDuration: 225,
698
+ exitDuration: 150
699
+ }, Bt = 800, pe = /* @__PURE__ */ xe({
700
+ passive: !0,
701
+ capture: !0
702
+ }), fe = ["mousedown", "touchstart"], me = ["mouseup", "mouseleave", "touchend", "touchcancel"];
703
+ let Lt = /* @__PURE__ */ (() => {
704
+ const t = class t {
705
+ };
706
+ o(t, "ɵfac", function(i) {
707
+ return new (i || t)();
708
+ }), o(t, "ɵcmp", /* @__PURE__ */ Ie({
709
+ type: t,
710
+ selectors: [["ng-component"]],
711
+ hostAttrs: ["mat-ripple-style-loader", ""],
712
+ decls: 0,
713
+ vars: 0,
714
+ template: function(i, s) {
715
+ },
716
+ styles: [`.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}
717
+ `],
718
+ encapsulation: 2,
719
+ changeDetection: 0
720
+ }));
721
+ let e = t;
722
+ return e;
723
+ })();
724
+ const I = class I {
725
+ constructor(t, n, r, i, s) {
726
+ o(this, "_target");
727
+ o(this, "_ngZone");
728
+ o(this, "_platform");
729
+ o(this, "_containerElement");
730
+ o(this, "_triggerElement");
731
+ o(this, "_isPointerDown", !1);
732
+ o(this, "_activeRipples", /* @__PURE__ */ new Map());
733
+ o(this, "_mostRecentTransientRipple");
734
+ o(this, "_lastTouchStartEvent");
735
+ o(this, "_pointerUpEventsRegistered", !1);
736
+ o(this, "_containerRect");
737
+ this._target = t, this._ngZone = n, this._platform = i, i.isBrowser && (this._containerElement = se(r)), s && s.get(vt).load(Lt);
738
+ }
739
+ fadeInRipple(t, n, r = {}) {
740
+ const i = this._containerRect = this._containerRect || this._containerElement.getBoundingClientRect(), s = {
741
+ ...he,
742
+ ...r.animation
743
+ };
744
+ r.centered && (t = i.left + i.width / 2, n = i.top + i.height / 2);
745
+ const l = r.radius || Ht(t, n, i), u = t - i.left, h = n - i.top, d = s.enterDuration, a = document.createElement("div");
746
+ a.classList.add("mat-ripple-element"), a.style.left = `${u - l}px`, a.style.top = `${h - l}px`, a.style.height = `${l * 2}px`, a.style.width = `${l * 2}px`, r.color != null && (a.style.backgroundColor = r.color), a.style.transitionDuration = `${d}ms`, this._containerElement.appendChild(a);
747
+ const f = window.getComputedStyle(a), _ = f.transitionProperty, b = f.transitionDuration, B = _ === "none" || b === "0s" || b === "0s, 0s" || i.width === 0 && i.height === 0, E = new Tt(this, a, r, B);
748
+ a.style.transform = "scale3d(1, 1, 1)", E.state = m.FADING_IN, r.persistent || (this._mostRecentTransientRipple = E);
749
+ let D = null;
750
+ return !B && (d || s.exitDuration) && this._ngZone.runOutsideAngular(() => {
751
+ const ee = () => {
752
+ D && (D.fallbackTimer = null), clearTimeout(te), this._finishRippleTransition(E);
753
+ }, L = () => this._destroyRipple(E), te = setTimeout(L, d + 100);
754
+ a.addEventListener("transitionend", ee), a.addEventListener("transitioncancel", L), D = {
755
+ onTransitionEnd: ee,
756
+ onTransitionCancel: L,
757
+ fallbackTimer: te
758
+ };
759
+ }), this._activeRipples.set(E, D), (B || !d) && this._finishRippleTransition(E), E;
760
+ }
761
+ fadeOutRipple(t) {
762
+ if (t.state === m.FADING_OUT || t.state === m.HIDDEN)
763
+ return;
764
+ const n = t.element, r = {
765
+ ...he,
766
+ ...t.config.animation
767
+ };
768
+ n.style.transitionDuration = `${r.exitDuration}ms`, n.style.opacity = "0", t.state = m.FADING_OUT, (t._animationForciblyDisabledThroughCss || !r.exitDuration) && this._finishRippleTransition(t);
769
+ }
770
+ fadeOutAll() {
771
+ this._getActiveRipples().forEach((t) => t.fadeOut());
772
+ }
773
+ fadeOutAllNonPersistent() {
774
+ this._getActiveRipples().forEach((t) => {
775
+ t.config.persistent || t.fadeOut();
776
+ });
777
+ }
778
+ setupTriggerEvents(t) {
779
+ const n = se(t);
780
+ !this._platform.isBrowser || !n || n === this._triggerElement || (this._removeTriggerEvents(), this._triggerElement = n, fe.forEach((r) => {
781
+ I._eventManager.addHandler(this._ngZone, r, n, this);
782
+ }));
783
+ }
784
+ handleEvent(t) {
785
+ t.type === "mousedown" ? this._onMousedown(t) : t.type === "touchstart" ? this._onTouchStart(t) : this._onPointerUp(), this._pointerUpEventsRegistered || (this._ngZone.runOutsideAngular(() => {
786
+ me.forEach((n) => {
787
+ this._triggerElement.addEventListener(n, this, pe);
788
+ });
789
+ }), this._pointerUpEventsRegistered = !0);
790
+ }
791
+ _finishRippleTransition(t) {
792
+ t.state === m.FADING_IN ? this._startFadeOutTransition(t) : t.state === m.FADING_OUT && this._destroyRipple(t);
793
+ }
794
+ _startFadeOutTransition(t) {
795
+ const n = t === this._mostRecentTransientRipple, {
796
+ persistent: r
797
+ } = t.config;
798
+ t.state = m.VISIBLE, !r && (!n || !this._isPointerDown) && t.fadeOut();
799
+ }
800
+ _destroyRipple(t) {
801
+ const n = this._activeRipples.get(t) ?? null;
802
+ this._activeRipples.delete(t), this._activeRipples.size || (this._containerRect = null), t === this._mostRecentTransientRipple && (this._mostRecentTransientRipple = null), t.state = m.HIDDEN, n !== null && (t.element.removeEventListener("transitionend", n.onTransitionEnd), t.element.removeEventListener("transitioncancel", n.onTransitionCancel), n.fallbackTimer !== null && clearTimeout(n.fallbackTimer)), t.element.remove();
803
+ }
804
+ _onMousedown(t) {
805
+ const n = At(t), r = this._lastTouchStartEvent && Date.now() < this._lastTouchStartEvent + Bt;
806
+ !this._target.rippleDisabled && !n && !r && (this._isPointerDown = !0, this.fadeInRipple(t.clientX, t.clientY, this._target.rippleConfig));
807
+ }
808
+ _onTouchStart(t) {
809
+ if (!this._target.rippleDisabled && !yt(t)) {
810
+ this._lastTouchStartEvent = Date.now(), this._isPointerDown = !0;
811
+ const n = t.changedTouches;
812
+ if (n)
813
+ for (let r = 0; r < n.length; r++)
814
+ this.fadeInRipple(n[r].clientX, n[r].clientY, this._target.rippleConfig);
815
+ }
816
+ }
817
+ _onPointerUp() {
818
+ this._isPointerDown && (this._isPointerDown = !1, this._getActiveRipples().forEach((t) => {
819
+ const n = t.state === m.VISIBLE || t.config.terminateOnPointerUp && t.state === m.FADING_IN;
820
+ !t.config.persistent && n && t.fadeOut();
821
+ }));
822
+ }
823
+ _getActiveRipples() {
824
+ return Array.from(this._activeRipples.keys());
825
+ }
826
+ _removeTriggerEvents() {
827
+ const t = this._triggerElement;
828
+ t && (fe.forEach((n) => I._eventManager.removeHandler(n, t, this)), this._pointerUpEventsRegistered && (me.forEach((n) => t.removeEventListener(n, this, pe)), this._pointerUpEventsRegistered = !1));
829
+ }
830
+ };
831
+ o(I, "_eventManager", /* @__PURE__ */ new Ft());
832
+ let $ = I;
833
+ function Ht(e, t, n) {
834
+ const r = Math.max(Math.abs(e - n.left), Math.abs(e - n.right)), i = Math.max(Math.abs(t - n.top), Math.abs(t - n.bottom));
835
+ return Math.sqrt(r * r + i * i);
836
+ }
837
+ const jt = /* @__PURE__ */ new Re("mat-ripple-global-options");
838
+ let k = /* @__PURE__ */ (() => {
839
+ const t = class t {
840
+ constructor() {
841
+ o(this, "_elementRef", p(J));
842
+ o(this, "_animationsDisabled", zt());
843
+ o(this, "color");
844
+ o(this, "unbounded");
845
+ o(this, "centered");
846
+ o(this, "radius", 0);
847
+ o(this, "animation");
848
+ o(this, "_disabled", !1);
849
+ o(this, "_trigger");
850
+ o(this, "_rippleRenderer");
851
+ o(this, "_globalOptions");
852
+ o(this, "_isInitialized", !1);
853
+ const r = p(ye), i = p(Me), s = p(jt, {
854
+ optional: !0
855
+ }), l = p(Ae);
856
+ this._globalOptions = s || {}, this._rippleRenderer = new $(this, r, this._elementRef, i, l);
857
+ }
858
+ get disabled() {
859
+ return this._disabled;
860
+ }
861
+ set disabled(r) {
862
+ r && this.fadeOutAllNonPersistent(), this._disabled = r, this._setupTriggerEventsIfEnabled();
863
+ }
864
+ get trigger() {
865
+ return this._trigger || this._elementRef.nativeElement;
866
+ }
867
+ set trigger(r) {
868
+ this._trigger = r, this._setupTriggerEventsIfEnabled();
869
+ }
870
+ ngOnInit() {
871
+ this._isInitialized = !0, this._setupTriggerEventsIfEnabled();
872
+ }
873
+ ngOnDestroy() {
874
+ this._rippleRenderer._removeTriggerEvents();
875
+ }
876
+ fadeOutAll() {
877
+ this._rippleRenderer.fadeOutAll();
878
+ }
879
+ fadeOutAllNonPersistent() {
880
+ this._rippleRenderer.fadeOutAllNonPersistent();
881
+ }
882
+ get rippleConfig() {
883
+ return {
884
+ centered: this.centered,
885
+ radius: this.radius,
886
+ color: this.color,
887
+ animation: {
888
+ ...this._globalOptions.animation,
889
+ ...this._animationsDisabled ? {
890
+ enterDuration: 0,
891
+ exitDuration: 0
892
+ } : {},
893
+ ...this.animation
894
+ },
895
+ terminateOnPointerUp: this._globalOptions.terminateOnPointerUp
896
+ };
897
+ }
898
+ get rippleDisabled() {
899
+ return this.disabled || !!this._globalOptions.disabled;
900
+ }
901
+ _setupTriggerEventsIfEnabled() {
902
+ !this.disabled && this._isInitialized && this._rippleRenderer.setupTriggerEvents(this.trigger);
903
+ }
904
+ launch(r, i = 0, s) {
905
+ return typeof r == "number" ? this._rippleRenderer.fadeInRipple(r, i, {
906
+ ...this.rippleConfig,
907
+ ...s
908
+ }) : this._rippleRenderer.fadeInRipple(0, 0, {
909
+ ...this.rippleConfig,
910
+ ...r
911
+ });
912
+ }
913
+ };
914
+ o(t, "ɵfac", function(i) {
915
+ return new (i || t)();
916
+ }), o(t, "ɵdir", /* @__PURE__ */ tt({
917
+ type: t,
918
+ selectors: [["", "mat-ripple", ""], ["", "matRipple", ""]],
919
+ hostAttrs: [1, "mat-ripple"],
920
+ hostVars: 2,
921
+ hostBindings: function(i, s) {
922
+ i & 2 && Y("mat-ripple-unbounded", s.unbounded);
923
+ },
924
+ inputs: {
925
+ color: [0, "matRippleColor", "color"],
926
+ unbounded: [0, "matRippleUnbounded", "unbounded"],
927
+ centered: [0, "matRippleCentered", "centered"],
928
+ radius: [0, "matRippleRadius", "radius"],
929
+ animation: [0, "matRippleAnimation", "animation"],
930
+ disabled: [0, "matRippleDisabled", "disabled"],
931
+ trigger: [0, "matRippleTrigger", "trigger"]
932
+ },
933
+ exportAs: ["matRipple"]
934
+ }));
935
+ let e = t;
936
+ return e;
937
+ })();
938
+ const Ut = [
939
+ [0, 0.4],
940
+ [0.08, 0.42],
941
+ [0.18, 0.68],
942
+ [0.24, 0.75],
943
+ [0.32, 0.52],
944
+ [0.45, 0.44],
945
+ [0.6, 0.48],
946
+ [0.72, 0.58],
947
+ [0.85, 0.43],
948
+ [1, 0.4]
949
+ ], Gt = [
950
+ [0, 0.58],
951
+ [0.2, 0.62],
952
+ [0.4, 0.56],
953
+ [0.6, 0.6],
954
+ [0.8, 0.64],
955
+ [1, 0.58]
956
+ ], kt = [
957
+ [0, 0.38],
958
+ [0.25, 0.42],
959
+ [0.5, 0.36],
960
+ [0.75, 0.4],
961
+ [1, 0.38]
962
+ ], St = [Ut, Gt, kt], Yt = [16, 23, 29], Kt = "rgba(216,215,215,0.4)", Vt = 0.7;
963
+ function $t(e) {
964
+ return e < 0.5 ? 2 * e * e : 1 - (-2 * e + 2) ** 2 / 2;
965
+ }
966
+ function qt(e, t) {
967
+ for (let n = 0; n < e.length - 1; n++)
968
+ if (t <= e[n + 1][0]) {
969
+ const r = (t - e[n][0]) / (e[n + 1][0] - e[n][0]);
970
+ return e[n][1] + (e[n + 1][1] - e[n][1]) * $t(r);
971
+ }
972
+ return e[e.length - 1][1];
973
+ }
974
+ function q(e, t) {
975
+ const { ctx: n, w: r, h: i, gap: s, r: l, dpr: u, phases: h, colors: d } = e;
976
+ n.setTransform(u, 0, 0, u, 0, 0), n.clearRect(0, 0, r, i * 3 + s * 2);
977
+ for (let a = 0; a < 3; a++) {
978
+ const f = a * (i + s), _ = (t + h[a]) / Yt[a] % 1, b = r * qt(St[a], _);
979
+ n.fillStyle = Kt, n.beginPath(), n.roundRect(0, f, r, i, l), n.fill(), b > 0.5 && (n.globalAlpha = Vt, n.fillStyle = d[a], n.beginPath(), n.roundRect(0, f, b, i, l), n.fill(), n.globalAlpha = 1);
980
+ }
981
+ }
982
+ function Qt(e) {
983
+ const { ctx: t, w: n, h: r, gap: i, r: s, dpr: l } = e;
984
+ t.setTransform(l, 0, 0, l, 0, 0), t.clearRect(0, 0, n, r * 3 + i * 2);
985
+ for (let u = 0; u < 3; u++)
986
+ t.fillStyle = "#9F9F9F", t.beginPath(), t.roundRect(0, u * (r + i), n, r, s), t.fill();
987
+ }
988
+ let P = null;
989
+ const N = /* @__PURE__ */ new Map();
990
+ function Zt() {
991
+ return P || (P = new IntersectionObserver((e) => {
992
+ for (const t of e) {
993
+ const n = N.get(t.target);
994
+ n && (t.isIntersecting ? Jt(n) : ze(n));
995
+ }
996
+ }, { rootMargin: "200px" })), P;
997
+ }
998
+ function Wt(e, t) {
999
+ N.set(e, t), Zt().observe(e);
1000
+ }
1001
+ function ge(e) {
1002
+ const t = N.get(e);
1003
+ t && ze(t), N.delete(e), P?.unobserve(e);
1004
+ }
1005
+ const z = /* @__PURE__ */ new Set();
1006
+ let Ne = 0, T = !1, _e = 0;
1007
+ function Jt(e) {
1008
+ z.add(e), T || (T = !0, Te());
1009
+ }
1010
+ function ze(e) {
1011
+ z.delete(e), z.size || (T = !1, cancelAnimationFrame(Ne));
1012
+ }
1013
+ function Te() {
1014
+ if (!T)
1015
+ return;
1016
+ Ne = requestAnimationFrame(Te);
1017
+ const e = performance.now();
1018
+ if (e - _e < 100)
1019
+ return;
1020
+ _e = e;
1021
+ const t = e / 1e3;
1022
+ for (const n of z)
1023
+ q(n, t);
1024
+ }
1025
+ const Xt = ["cvs"];
1026
+ var g, C, O, Q;
1027
+ const A = class A {
1028
+ constructor() {
1029
+ M(this, O);
1030
+ M(this, g);
1031
+ M(this, C);
1032
+ this.color = U("cyan"), this.active = U(!0), this.size = U("default"), this.cvs = re.required("cvs"), this.ripple = re(k), y(this, g, null), y(this, C, !1);
1033
+ const t = p(J).nativeElement, n = p(nt);
1034
+ rt(() => {
1035
+ const r = this.size() === "sm", i = r ? 14 : 19, s = r ? 3 : 4, l = r ? 2 : 3, u = r ? 2 : 3, h = this.cvs().nativeElement, d = Math.min(window.devicePixelRatio || 1, 3);
1036
+ h.width = i * d, h.height = (s * 3 + l * 2) * d;
1037
+ const a = h.getContext("2d");
1038
+ if (!a)
1039
+ return;
1040
+ const f = getComputedStyle(t);
1041
+ if (y(this, g, {
1042
+ ctx: a,
1043
+ w: i,
1044
+ h: s,
1045
+ gap: l,
1046
+ r: u,
1047
+ dpr: d,
1048
+ phases: [Math.random() * 30, Math.random() * 30, Math.random() * 30],
1049
+ colors: [
1050
+ f.getPropertyValue("--metric-cpu").trim() || "#2196f3",
1051
+ f.getPropertyValue("--metric-ram").trim() || "#009688",
1052
+ f.getPropertyValue("--metric-disc").trim() || "#e91e63"
1053
+ ]
1054
+ }), y(this, C, window.matchMedia("(prefers-reduced-motion: reduce)").matches), v(this, C)) {
1055
+ q(v(this, g), 0);
1056
+ return;
1057
+ }
1058
+ q(v(this, g), performance.now() / 1e3), j(this, O, Q).call(this, this.active(), t);
1059
+ }), it(() => {
1060
+ const r = this.active();
1061
+ v(this, g) && !v(this, C) && j(this, O, Q).call(this, r, t);
1062
+ }), t.addEventListener("trace-pulse", () => {
1063
+ const r = t.getBoundingClientRect();
1064
+ this.ripple()?.launch(r.left + r.width / 2, r.top, {
1065
+ color: "rgba(0, 164, 154, 0.12)",
1066
+ radius: 35,
1067
+ animation: { enterDuration: 600, exitDuration: 900 }
1068
+ });
1069
+ }), n.onDestroy(() => ge(t));
1070
+ }
1071
+ };
1072
+ g = new WeakMap(), C = new WeakMap(), O = new WeakSet(), Q = function(t, n) {
1073
+ t ? Wt(n, v(this, g)) : (ge(n), Qt(v(this, g)));
1074
+ }, A.ɵfac = function(n) {
1075
+ return new (n || A)();
1076
+ }, A.ɵcmp = /* @__PURE__ */ Ie({ type: A, selectors: [["zui-bar-icon"]], viewQuery: function(n, r) {
1077
+ n & 1 && lt(r.cvs, Xt, 5)(r.ripple, k, 5), n & 2 && ct(2);
1078
+ }, hostVars: 6, hostBindings: function(n, r) {
1079
+ n & 2 && Y("color-cyan", r.color() === "cyan")("color-orange", r.color() === "orange")("size-sm", r.size() === "sm");
1080
+ }, inputs: { color: [1, "color"], active: [1, "active"], size: [1, "size"] }, decls: 3, vars: 2, consts: [["cvs", ""], ["matRipple", "", 1, "__bar-icon"], [1, "__cvs"]], template: function(n, r) {
1081
+ n & 1 && (ot(0, "div", 1), st(1, "canvas", 2, 0), at()), n & 2 && Y("__bar-icon--active", r.active());
1082
+ }, dependencies: [k], styles: [`[_nghost-%COMP%] {
1083
+ display: block;
1084
+ contain: layout style;
1085
+ }
1086
+
1087
+ .__bar-icon[_ngcontent-%COMP%] {
1088
+ display: flex;
1089
+ flex-direction: column;
1090
+ justify-content: center;
1091
+ align-items: flex-start;
1092
+ padding: 5px;
1093
+ width: 30px;
1094
+ height: 30px;
1095
+ background: #fff;
1096
+ box-shadow: 0px 38px 15px rgba(0, 0, 0, 0.01), 0px 21px 13px rgba(0, 0, 0, 0.02), 0px 10px 10px rgba(0, 0, 0, 0.03), 0px 2px 5px rgba(0, 0, 0, 0.03);
1097
+ border-radius: 5px;
1098
+ position: relative;
1099
+ overflow: hidden;
1100
+ }
1101
+
1102
+ .__node--highlighted[_nghost-%COMP%] .__bar-icon[_ngcontent-%COMP%], .__node--highlighted [_nghost-%COMP%] .__bar-icon[_ngcontent-%COMP%],
1103
+ .__infra-group[_nghost-%COMP%] .__bar-icon[_ngcontent-%COMP%], .__infra-group [_nghost-%COMP%] .__bar-icon[_ngcontent-%COMP%],
1104
+ .__compound-lb[_nghost-%COMP%] .__bar-icon[_ngcontent-%COMP%], .__compound-lb [_nghost-%COMP%] .__bar-icon[_ngcontent-%COMP%] {
1105
+ box-shadow: 0px 24px 10px rgba(132, 245, 234, 0.03), 0px 14px 8px rgba(132, 245, 234, 0.1), 0px 6px 6px rgba(132, 245, 234, 0.18), 0px 2px 3px rgba(132, 245, 234, 0.21);
1106
+ }
1107
+
1108
+ .__bar-icon[_ngcontent-%COMP%]:not(.__bar-icon--active) {
1109
+ background: #D8D7D7;
1110
+ }
1111
+
1112
+ .__cvs[_ngcontent-%COMP%] {
1113
+ display: block;
1114
+ width: 19px;
1115
+ height: 18px;
1116
+ }
1117
+
1118
+ .size-sm[_nghost-%COMP%] .__bar-icon[_ngcontent-%COMP%] {
1119
+ width: 22px;
1120
+ height: 22px;
1121
+ padding: 4px;
1122
+ border-radius: 4px;
1123
+ }
1124
+
1125
+ .size-sm[_nghost-%COMP%] .__cvs[_ngcontent-%COMP%] {
1126
+ width: 14px;
1127
+ height: 13px;
1128
+ }`], changeDetection: 0 });
1129
+ let ve = A;
1130
+ function hn(e, t, n) {
1131
+ return e.get(`${t}/api/recipes`, {
1132
+ params: {
1133
+ "filters[slug][$eq]": n,
1134
+ "populate[recipeCategories]": "true",
1135
+ "populate[recipeLanguageFrameworks][populate]": "*",
1136
+ "populate[iconImage]": "true"
1137
+ }
1138
+ }).pipe(S((r) => {
1139
+ const i = r.data?.[0];
1140
+ return i ? { recipe: De(i), error: !1 } : { recipe: null, error: !0 };
1141
+ }), ut(() => dt({ recipe: null, error: !0 })));
1142
+ }
1143
+ function pn(e) {
1144
+ try {
1145
+ return { recipe: De(e), error: !1 };
1146
+ } catch {
1147
+ return { recipe: null, error: !0 };
1148
+ }
1149
+ }
1150
+ export {
1151
+ pn as A,
1152
+ dn as B,
1153
+ Ct as C,
1154
+ jt as M,
1155
+ Me as P,
1156
+ $ as R,
1157
+ bt as S,
1158
+ ve as Z,
1159
+ It as _,
1160
+ ht as a,
1161
+ se as b,
1162
+ K as c,
1163
+ ln as d,
1164
+ yt as e,
1165
+ gt as f,
1166
+ un as g,
1167
+ mt as h,
1168
+ At as i,
1169
+ vt as j,
1170
+ cn as k,
1171
+ zt as l,
1172
+ he as m,
1173
+ xe as n,
1174
+ k as o,
1175
+ nn as p,
1176
+ sn as q,
1177
+ rn as r,
1178
+ _t as s,
1179
+ on as t,
1180
+ Oe as u,
1181
+ X as v,
1182
+ ae as w,
1183
+ Pe as x,
1184
+ an as y,
1185
+ hn as z
1186
+ };