@melodicdev/components 1.0.14 → 1.0.16

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.
@@ -194,17 +194,17 @@ async function bs(e = {}) {
194
194
  };
195
195
  return e.onReady && e.onReady(), t && console.log("[Melodic] Bootstrap complete"), L.bindValue("IMelodicApp", a), a;
196
196
  }
197
- function Ne(e, t) {
197
+ function Le(e, t) {
198
198
  e.renderInto(t);
199
199
  }
200
200
  const wr = Symbol("melodic.signal"), Gr = (e) => typeof e == "function" && wr in e;
201
- var Le = "melodic-styles", Ur = `style[${Le}], link[rel="stylesheet"][${Le}]`, Te = [], ge = null;
201
+ var Ve = "melodic-styles", Ur = `style[${Ve}], link[rel="stylesheet"][${Ve}]`, ze = [], ge = null;
202
202
  const Yr = (e) => {
203
203
  if (Jr()) {
204
- Ve(e);
204
+ je(e);
205
205
  return;
206
206
  }
207
- ge || (ge = Xr()), ge.then(() => Ve(e));
207
+ ge || (ge = Xr()), ge.then(() => je(e));
208
208
  };
209
209
  var Xr = async () => {
210
210
  const e = document.querySelectorAll(Ur);
@@ -219,16 +219,16 @@ var Xr = async () => {
219
219
  }), Fe(Array.from(t.sheet?.cssRules ?? []).map((r) => r.cssText).join(`
220
220
  `)));
221
221
  }
222
- }, Ve = (e) => {
223
- const t = e.adoptedStyleSheets ?? [], r = Te.filter((l) => !t.includes(l));
222
+ }, je = (e) => {
223
+ const t = e.adoptedStyleSheets ?? [], r = ze.filter((l) => !t.includes(l));
224
224
  r.length > 0 && (e.adoptedStyleSheets = [...t, ...r]);
225
225
  }, Fe = (e) => {
226
226
  const t = e.trim();
227
227
  if (t.length > 0) {
228
228
  const r = new CSSStyleSheet();
229
- r.replaceSync(t), Te.push(r);
229
+ r.replaceSync(t), ze.push(r);
230
230
  }
231
- }, Jr = () => Te.length > 0, Qr = class extends HTMLElement {
231
+ }, Jr = () => ze.length > 0, Qr = class extends HTMLElement {
232
232
  constructor(e, t) {
233
233
  super(), this._unsubscribers = [], this._renderScheduled = !1, this._booleanProperties = /* @__PURE__ */ new Set(), this._meta = e, this._component = t, this._component.elementRef = this, this._root = this.attachShadow({ mode: "open" }), Yr(this._root), this._style = this.renderStyles(), this.observe(), this._component.onInit && this._component.onInit();
234
234
  }
@@ -262,10 +262,10 @@ var Xr = async () => {
262
262
  }
263
263
  renderStyles() {
264
264
  const e = document.createElement("style");
265
- return this._meta.styles && Ne(this._meta.styles(), e), this._root.appendChild(e);
265
+ return this._meta.styles && Le(this._meta.styles(), e), this._root.appendChild(e);
266
266
  }
267
267
  render() {
268
- this._meta.template && (Ne(this._meta.template(this._component, this.getAttributeValues()), this._root), this._style.parentNode !== this._root && this._root.appendChild(this._style)), this._component.onRender !== void 0 && this._component.onRender();
268
+ this._meta.template && (Le(this._meta.template(this._component, this.getAttributeValues()), this._root), this._style.parentNode !== this._root && this._root.appendChild(this._style)), this._component.onRender !== void 0 && this._component.onRender();
269
269
  }
270
270
  scheduleRender() {
271
271
  this._renderScheduled || (this._renderScheduled = !0, queueMicrotask(() => {
@@ -375,19 +375,19 @@ function _s(e) {
375
375
  t.bindValue(tl, e);
376
376
  };
377
377
  }
378
- var ze = class $r extends Error {
378
+ var Ae = class $r extends Error {
379
379
  constructor(t, r, l) {
380
380
  super(t), this.config = r, this.code = l, this.name = "HttpBaseError", Object.setPrototypeOf(this, $r.prototype);
381
381
  }
382
- }, je = class Cr extends ze {
382
+ }, qe = class Cr extends Ae {
383
383
  constructor(t, r, l) {
384
384
  super(t, l, `HTTP_${r.status}`), this.response = r, this.name = "HttpError", Object.setPrototypeOf(this, Cr.prototype);
385
385
  }
386
- }, rl = class Sr extends ze {
386
+ }, rl = class Sr extends Ae {
387
387
  constructor(t, r) {
388
388
  super(t, r, "NETWORK_ERROR"), this.name = "NetworkError", Object.setPrototypeOf(this, Sr.prototype);
389
389
  }
390
- }, ll = class Er extends ze {
390
+ }, ll = class Er extends Ae {
391
391
  constructor(t, r) {
392
392
  super(t, r, "ABORTED"), this.name = "AbortError", Object.setPrototypeOf(this, Er.prototype);
393
393
  }
@@ -439,7 +439,7 @@ var ze = class $r extends Error {
439
439
  }
440
440
  return t;
441
441
  }
442
- }, qe = class {
442
+ }, Be = class {
443
443
  constructor(e) {
444
444
  this._requestManager = new al(), this._interceptors = {
445
445
  request: [],
@@ -535,10 +535,10 @@ var ze = class $r extends Error {
535
535
  headers: r.headers,
536
536
  config: e
537
537
  };
538
- if (!r.ok) throw new je(`HTTP Error: ${r.status} ${r.statusText}`, l, e);
538
+ if (!r.ok) throw new qe(`HTTP Error: ${r.status} ${r.statusText}`, l, e);
539
539
  return l;
540
540
  }).catch((r) => {
541
- throw r instanceof je ? r : r instanceof Error && r.name === "AbortError" ? new ll("Request aborted", e) : new rl((r instanceof Error ? r.message : "Network error") || "Network error", e);
541
+ throw r instanceof qe ? r : r instanceof Error && r.name === "AbortError" ? new ll("Request aborted", e) : new rl((r instanceof Error ? r.message : "Network error") || "Network error", e);
542
542
  });
543
543
  return e.deduplicate === !0 && this._requestManager.addPendingRequest(e, t), await t;
544
544
  }
@@ -607,8 +607,8 @@ var ze = class $r extends Error {
607
607
  };
608
608
  function ys(e, t) {
609
609
  return (r) => {
610
- const l = new qe(e);
611
- r.bindValue(qe, l), t?.request && t.request.forEach((a) => {
610
+ const l = new Be(e);
611
+ r.bindValue(Be, l), t?.request && t.request.forEach((a) => {
612
612
  l.interceptors.request(a);
613
613
  }), t?.response && t.response.forEach((a) => {
614
614
  l.interceptors.response(a);
@@ -624,7 +624,7 @@ function ws(e) {
624
624
  function ks(e) {
625
625
  return { resolve: e };
626
626
  }
627
- var fe = class {
627
+ var _e = class {
628
628
  constructor(e, t) {
629
629
  this._reEscape = /[-[\]{}()+?.,\\^$|#\s]/g, this._reParam = /([:*])(\w+)/g, this._names = [], this._isWildcard = !1, this._route = e, this._rules = t, this._isWildcard = e.includes("*");
630
630
  let r = this._route.replace(this._reEscape, "\\$&");
@@ -689,7 +689,7 @@ var $s = class extends CustomEvent {
689
689
  };
690
690
  function Rr(e, t, r, l, a) {
691
691
  for (const o of e) {
692
- const s = new fe(o.path);
692
+ const s = new _e(o.path);
693
693
  if (o.redirectTo && o.path === t) return {
694
694
  matches: l,
695
695
  params: a,
@@ -737,7 +737,7 @@ function Rr(e, t, r, l, a) {
737
737
  isExactMatch: !1
738
738
  };
739
739
  }
740
- function _e(e, t, r = "") {
740
+ function ye(e, t, r = "") {
741
741
  const l = Rr(e, t.startsWith("/") ? t.slice(1) : t, r, [], {});
742
742
  return {
743
743
  matches: l.matches,
@@ -761,11 +761,11 @@ function sl(e, t, r = {}) {
761
761
  function a(o, s) {
762
762
  for (const n of o) {
763
763
  if (n.name === s) {
764
- const c = new fe(n.path);
764
+ const c = new _e(n.path);
765
765
  return l.push(c.stringify(r)), !0;
766
766
  }
767
767
  if (n.children) {
768
- const c = new fe(n.path).stringify(r);
768
+ const c = new _e(n.path).stringify(r);
769
769
  if (a(n.children, s))
770
770
  return l.unshift(c), !0;
771
771
  }
@@ -780,7 +780,7 @@ function g(e, t, r, l) {
780
780
  else for (var n = e.length - 1; n >= 0; n--) (s = e[n]) && (o = (a < 3 ? s(o) : a > 3 ? s(t, r, o) : s(t, r)) || o);
781
781
  return a > 3 && o && Object.defineProperty(t, r, o), o;
782
782
  }
783
- var ye = class {
783
+ var xe = class {
784
784
  constructor() {
785
785
  this._matchStack = [], this._contexts = /* @__PURE__ */ new Map(), this._currentMatchResult = null, this._resolvedData = /* @__PURE__ */ new Map();
786
786
  }
@@ -852,11 +852,11 @@ var ye = class {
852
852
  return this._resolvedData.get(t);
853
853
  }
854
854
  };
855
- ye = g([Z()], ye);
856
- function F(e, t) {
855
+ xe = g([Z()], xe);
856
+ function j(e, t) {
857
857
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
858
858
  }
859
- var Ae = (e, t, r, l) => new PopStateEvent("History", { state: {
859
+ var De = (e, t, r, l) => new PopStateEvent("History", { state: {
860
860
  type: e,
861
861
  data: t,
862
862
  url: l,
@@ -875,7 +875,7 @@ history.pushState = (e, t, r) => {
875
875
  t,
876
876
  r
877
877
  ]);
878
- const l = new CustomEvent("NavigationEvent", { detail: Ae("push", e, t, r) });
878
+ const l = new CustomEvent("NavigationEvent", { detail: De("push", e, t, r) });
879
879
  window.dispatchEvent(l);
880
880
  };
881
881
  var dl = history.replaceState;
@@ -885,12 +885,12 @@ history.replaceState = (e, t, r) => {
885
885
  t,
886
886
  r
887
887
  ]);
888
- const l = new CustomEvent("NavigationEvent", { detail: Ae("replace", e, t, r) });
888
+ const l = new CustomEvent("NavigationEvent", { detail: De("replace", e, t, r) });
889
889
  window.dispatchEvent(l);
890
890
  };
891
891
  var V = class {
892
892
  constructor() {
893
- this._routes = [], this._currentMatches = [], this._resolversExecutedForPath = null, this._currentPath = `${window.location.pathname}${window.location.search}`, this._contextService = new ye(), window.addEventListener("NavigationEvent", (t) => {
893
+ this._routes = [], this._currentMatches = [], this._resolversExecutedForPath = null, this._currentPath = `${window.location.pathname}${window.location.search}`, this._contextService = new xe(), window.addEventListener("NavigationEvent", (t) => {
894
894
  this._route = t.detail.state;
895
895
  }), window.addEventListener("popstate", (t) => {
896
896
  this.handlePopState(t);
@@ -927,7 +927,7 @@ var V = class {
927
927
  return this._contextService.getMergedResolvedData(t);
928
928
  }
929
929
  matchPath(t) {
930
- return _e(this._routes, t);
930
+ return ye(this._routes, t);
931
931
  }
932
932
  setCurrentMatches(t) {
933
933
  this._currentMatches = t.matches, this._contextService.setMatchResult(t);
@@ -1083,7 +1083,7 @@ var V = class {
1083
1083
  return;
1084
1084
  }
1085
1085
  this._currentPath = r;
1086
- const a = new CustomEvent("NavigationEvent", { detail: Ae("push", t.state, "", window.location.pathname) });
1086
+ const a = new CustomEvent("NavigationEvent", { detail: De("push", t.state, "", window.location.pathname) });
1087
1087
  window.dispatchEvent(a);
1088
1088
  }
1089
1089
  async executeResolver(t, r) {
@@ -1100,7 +1100,7 @@ var V = class {
1100
1100
  };
1101
1101
  }
1102
1102
  };
1103
- V = g([Z(), F("design:paramtypes", [])], V);
1103
+ V = g([Z(), j("design:paramtypes", [])], V);
1104
1104
  var W = /* @__PURE__ */ new Map(), Tr = (e) => {
1105
1105
  if (W.has(e)) return W.get(e);
1106
1106
  const t = e.toLowerCase();
@@ -1124,10 +1124,10 @@ function Ts() {
1124
1124
  function oe(e) {
1125
1125
  return typeof e == "object" && e !== null && "__directive" in e;
1126
1126
  }
1127
- var pe = `m${Math.random().toString(36).slice(2, 9)}`, ml = `<!--${pe}-->`, De = `__${pe}_`, Be = new RegExp(`${De}(\\d+)__`, "g"), ie = (e) => `${De}${e}__`, Y = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new WeakMap();
1128
- function Ke(e) {
1129
- let t = He.get(e);
1130
- return t === void 0 && (t = e.join(pe), He.set(e, t)), t;
1127
+ var pe = `m${Math.random().toString(36).slice(2, 9)}`, ml = `<!--${pe}-->`, Ie = `__${pe}_`, He = new RegExp(`${Ie}(\\d+)__`, "g"), ie = (e) => `${Ie}${e}__`, Y = /* @__PURE__ */ new Map(), Ke = /* @__PURE__ */ new WeakMap();
1128
+ function be(e) {
1129
+ let t = Ke.get(e);
1130
+ return t === void 0 && (t = e.join(pe), Ke.set(e, t)), t;
1131
1131
  }
1132
1132
  var ul = class X {
1133
1133
  constructor(t, r) {
@@ -1138,11 +1138,11 @@ var ul = class X {
1138
1138
  * Returns the rendered nodes directly.
1139
1139
  */
1140
1140
  renderOnce(t) {
1141
- const r = Ke(this.strings), l = this.getTemplate(r), a = l.element.content.cloneNode(!0), o = this.prepareParts(a, l);
1141
+ const r = be(this.strings), l = this.getTemplate(r), a = l.element.content.cloneNode(!0), o = this.prepareParts(a, l);
1142
1142
  return this.commit(o), t.appendChild(a), t.__parts = o, t.__templateKey = r, Array.from(t.childNodes);
1143
1143
  }
1144
1144
  renderInto(t) {
1145
- const r = Ke(this.strings), { element: l } = this.getTemplate(r), a = t.__templateKey;
1145
+ const r = be(this.strings), { element: l } = this.getTemplate(r), a = t.__templateKey;
1146
1146
  if (a && a !== r) {
1147
1147
  const s = t.__parts;
1148
1148
  s && this.cleanupParts(s), delete t.__parts;
@@ -1263,7 +1263,7 @@ var ul = class X {
1263
1263
  name: R.name.slice(1),
1264
1264
  staticValue: R.value
1265
1265
  });
1266
- else if (R.value.includes(De)) {
1266
+ else if (R.value.includes(Ie)) {
1267
1267
  const A = this.parseAttributeValue(R.value);
1268
1268
  if (A) {
1269
1269
  const E = A.indices.length > 1 || A.strings.some((q) => q.length > 0);
@@ -1384,7 +1384,7 @@ var ul = class X {
1384
1384
  parseAttributeValue(t) {
1385
1385
  const r = [], l = [];
1386
1386
  let a = 0, o;
1387
- for (Be.lastIndex = 0; (o = Be.exec(t)) !== null; )
1387
+ for (He.lastIndex = 0; (o = He.exec(t)) !== null; )
1388
1388
  r.push(t.slice(a, o.index)), l.push(Number(o[1])), a = o.index + o[0].length;
1389
1389
  return l.length === 0 ? null : (r.push(t.slice(a)), {
1390
1390
  strings: r,
@@ -1423,12 +1423,26 @@ var ul = class X {
1423
1423
  }
1424
1424
  }
1425
1425
  /**
1426
- * Renders a nested TemplateResult into a node part
1426
+ * Renders a nested TemplateResult into a node part.
1427
+ *
1428
+ * Uses a persistent DocumentFragment container to enable in-place updates
1429
+ * when the template structure hasn't changed (same tagged template literal).
1430
+ * This follows the same pattern as the `when` directive — the fragment holds
1431
+ * __parts/__templateKey after its children move to the real DOM, so subsequent
1432
+ * renderInto() calls diff and update existing nodes instead of recreating them.
1427
1433
  */
1428
1434
  renderNestedTemplate(t, r) {
1429
- this.ensureMarkers(t), this.clearRenderedNodes(t), t.node.textContent = "";
1435
+ if (this.ensureMarkers(t), t.nestedContainer) {
1436
+ if (t.nestedContainer.__templateKey === be(r.strings)) {
1437
+ r.renderInto(t.nestedContainer);
1438
+ return;
1439
+ }
1440
+ const a = t.nestedContainer.__parts;
1441
+ a && this.cleanupParts(a);
1442
+ }
1443
+ this.clearRenderedNodes(t), t.node.textContent = "";
1430
1444
  const l = document.createDocumentFragment();
1431
- r.renderInto(l), t.renderedNodes = Array.from(l.childNodes), t.endMarker.parentNode.insertBefore(l, t.endMarker);
1445
+ r.renderInto(l), t.nestedContainer = l, t.renderedNodes = Array.from(l.childNodes), t.endMarker.parentNode.insertBefore(l, t.endMarker);
1432
1446
  }
1433
1447
  /**
1434
1448
  * Renders a DOM Node into a node part
@@ -1592,7 +1606,7 @@ function i(e, ...t) {
1592
1606
  return new ul(e, t);
1593
1607
  }
1594
1608
  const y = i;
1595
- var We, Ge = "melodic:outlet-register", xe = class {
1609
+ var We, Ge = "melodic:outlet-register", we = class {
1596
1610
  constructor() {
1597
1611
  this._depth = 0, this._context = null, this._currentComponent = null, this._currentElement = null, this._childOutlets = /* @__PURE__ */ new Map(), this._parentOutlet = null, this._initialized = !1, this._navigationCleanup = null, this.routes = [], this.name = "primary";
1598
1612
  }
@@ -1694,7 +1708,7 @@ var We, Ge = "melodic:outlet-register", xe = class {
1694
1708
  async matchAndRender(t) {
1695
1709
  const r = this.routes.length > 0 ? this.routes : this._router.getRoutes();
1696
1710
  if (r.length === 0) return;
1697
- const l = _e(r, t);
1711
+ const l = ye(r, t);
1698
1712
  if (l.redirectTo) {
1699
1713
  window.location.pathname !== l.redirectTo && this._router.navigate(l.redirectTo, { replace: !0 });
1700
1714
  return;
@@ -1732,7 +1746,7 @@ var We, Ge = "melodic:outlet-register", xe = class {
1732
1746
  }
1733
1747
  async renderFromContext() {
1734
1748
  if (!this._context || this.routes.length === 0) return;
1735
- const t = this._context.remainingPath, r = _e(this.routes, t, this._context.basePath);
1749
+ const t = this._context.remainingPath, r = ye(this.routes, t, this._context.basePath);
1736
1750
  if (r.redirectTo) {
1737
1751
  const l = this._context.basePath ? `/${this._context.basePath}/${r.redirectTo}`.replace(/\/+/g, "/") : r.redirectTo;
1738
1752
  window.location.pathname !== l && this._router.navigate(l, { replace: !0 });
@@ -1789,12 +1803,12 @@ var We, Ge = "melodic:outlet-register", xe = class {
1789
1803
  t?.component ? await this.renderComponent(t.component) : this._depth === 0 && this._router.navigate("/404", { replace: !0 });
1790
1804
  }
1791
1805
  };
1792
- g([H(V), F("design:type", typeof (We = typeof V < "u" && V) == "function" ? We : Object)], xe.prototype, "_router", void 0);
1793
- xe = g([_({
1806
+ g([H(V), j("design:type", typeof (We = typeof V < "u" && V) == "function" ? We : Object)], we.prototype, "_router", void 0);
1807
+ we = g([_({
1794
1808
  selector: "router-outlet",
1795
1809
  template: () => i`<slot></slot>`
1796
- })], xe);
1797
- var Ue, we = class {
1810
+ })], we);
1811
+ var Ue, ke = class {
1798
1812
  constructor() {
1799
1813
  this._anchorElement = null, this._navigationCleanup = null, this.href = "", this.data = null, this.queryParams = {}, this.activeClass = "active", this.exactMatch = !1, this.replace = !1;
1800
1814
  }
@@ -1851,8 +1865,8 @@ var Ue, we = class {
1851
1865
  this.exactMatch ? o = l === a : o = l === a || l.startsWith(a + "/"), o ? (this.elementRef.classList.add(this.activeClass), this._anchorElement?.setAttribute("aria-current", "page")) : (this.elementRef.classList.remove(this.activeClass), this._anchorElement?.removeAttribute("aria-current"));
1852
1866
  }
1853
1867
  };
1854
- g([H(V), F("design:type", typeof (Ue = typeof V < "u" && V) == "function" ? Ue : Object)], we.prototype, "_router", void 0);
1855
- we = g([_({
1868
+ g([H(V), j("design:type", typeof (Ue = typeof V < "u" && V) == "function" ? Ue : Object)], ke.prototype, "_router", void 0);
1869
+ ke = g([_({
1856
1870
  selector: "router-link",
1857
1871
  template: () => i`<a part="link"><slot></slot></a>`,
1858
1872
  styles: () => y`
@@ -1868,7 +1882,7 @@ we = g([_({
1868
1882
  }
1869
1883
  `,
1870
1884
  attributes: ["href", "active-class"]
1871
- })], we);
1885
+ })], ke);
1872
1886
  function hl(e, t, r) {
1873
1887
  let l;
1874
1888
  if (typeof t == "string") l = { href: t };
@@ -1990,7 +2004,7 @@ const Ps = (e) => {
1990
2004
  }, Os = (e, t) => ({
1991
2005
  action: e(),
1992
2006
  reducer: t
1993
- }), ke = ee("RX_INIT_STATE"), $e = ee("RX_ACTION_PROVIDERS"), Ce = ee("RX_EFFECTS_PROVIDERS"), Ir = ee("RX_STATE_DEBUG");
2007
+ }), $e = ee("RX_INIT_STATE"), Ce = ee("RX_ACTION_PROVIDERS"), Se = ee("RX_EFFECTS_PROVIDERS"), Ir = ee("RX_STATE_DEBUG");
1994
2008
  var pl = class {
1995
2009
  constructor() {
1996
2010
  this._effects = [];
@@ -2035,7 +2049,7 @@ var pl = class {
2035
2049
  });
2036
2050
  });
2037
2051
  }
2038
- }, j = class {
2052
+ }, F = class {
2039
2053
  constructor() {
2040
2054
  this._debug && console.info("RX State Debugging: Enabled");
2041
2055
  }
@@ -2113,17 +2127,17 @@ var pl = class {
2113
2127
  return Object.keys(this._state).reduce((t, r) => (t[r] = this._state[r](), t), {});
2114
2128
  }
2115
2129
  };
2116
- g([H(ke), F("design:type", Object)], j.prototype, "_state", void 0);
2117
- g([H($e), F("design:type", Object)], j.prototype, "_reducerMap", void 0);
2118
- g([H(Ce), F("design:type", Object)], j.prototype, "_effectMap", void 0);
2119
- g([H(Ir), F("design:type", Boolean)], j.prototype, "_debug", void 0);
2120
- j = g([Z(), F("design:paramtypes", [])], j);
2130
+ g([H($e), j("design:type", Object)], F.prototype, "_state", void 0);
2131
+ g([H(Ce), j("design:type", Object)], F.prototype, "_reducerMap", void 0);
2132
+ g([H(Se), j("design:type", Object)], F.prototype, "_effectMap", void 0);
2133
+ g([H(Ir), j("design:type", Boolean)], F.prototype, "_debug", void 0);
2134
+ F = g([Z(), j("design:paramtypes", [])], F);
2121
2135
  function Vs(e, t, r, l = !1) {
2122
2136
  return (a) => {
2123
- a.bindValue(ke, e), a.bindValue($e, t), a.bindValue(Ce, r), a.bindValue(Ir, l), a.bind(j, j, { dependencies: [
2124
- ke,
2137
+ a.bindValue($e, e), a.bindValue(Ce, t), a.bindValue(Se, r), a.bindValue(Ir, l), a.bind(F, F, { dependencies: [
2125
2138
  $e,
2126
- Ce
2139
+ Ce,
2140
+ Se
2127
2141
  ] });
2128
2142
  };
2129
2143
  }
@@ -2371,7 +2385,7 @@ function xl(e) {
2371
2385
  a[s] = o, o = t[o];
2372
2386
  return a;
2373
2387
  }
2374
- function Fs(e, t, r) {
2388
+ function js(e, t, r) {
2375
2389
  return U((l, a) => {
2376
2390
  if (!a) {
2377
2391
  const o = l.parentNode;
@@ -2508,7 +2522,7 @@ function G(e) {
2508
2522
  return a;
2509
2523
  });
2510
2524
  }
2511
- function js(e) {
2525
+ function Fs(e) {
2512
2526
  return U((t, r) => {
2513
2527
  if (!r) {
2514
2528
  const l = t.parentNode;
@@ -3255,7 +3269,7 @@ const Dl = {
3255
3269
  lg: 1024,
3256
3270
  xl: 1280,
3257
3271
  "2xl": 1536
3258
- }, Fl = {
3272
+ }, jl = {
3259
3273
  ...Dl,
3260
3274
  ...Il,
3261
3275
  ...Ml,
@@ -3265,7 +3279,7 @@ const Dl = {
3265
3279
  ...Ll,
3266
3280
  ...Vl
3267
3281
  };
3268
- function jl(e) {
3282
+ function Fl(e) {
3269
3283
  return Object.entries(e).map(([t, r]) => `${t}: ${r};`).join(`
3270
3284
  `);
3271
3285
  }
@@ -3372,12 +3386,12 @@ const ql = {
3372
3386
  color-scheme: dark;
3373
3387
  }
3374
3388
  }`, Js = `:root {
3375
- ${jl(Fl)}
3389
+ ${Fl(jl)}
3376
3390
 
3377
3391
  /* Default to light color scheme */
3378
3392
  color-scheme: light;
3379
3393
  }`;
3380
- var ce = "system", Se = /* @__PURE__ */ new Set(), ne = null;
3394
+ var ce = "system", Ee = /* @__PURE__ */ new Set(), ne = null;
3381
3395
  function Qs() {
3382
3396
  return ce;
3383
3397
  }
@@ -3388,19 +3402,19 @@ function Hl(e) {
3388
3402
  if (ne && (ne(), ne = null), ce = e, e === "system") {
3389
3403
  const t = window.matchMedia("(prefers-color-scheme: dark)"), r = () => {
3390
3404
  const a = t.matches ? "dark" : "light";
3391
- document.documentElement.setAttribute("data-theme", a), be("system", a);
3405
+ document.documentElement.setAttribute("data-theme", a), fe("system", a);
3392
3406
  };
3393
3407
  t.addEventListener("change", r), ne = () => t.removeEventListener("change", r);
3394
3408
  const l = t.matches ? "dark" : "light";
3395
- document.documentElement.setAttribute("data-theme", l), be("system", l);
3409
+ document.documentElement.setAttribute("data-theme", l), fe("system", l);
3396
3410
  } else
3397
- document.documentElement.setAttribute("data-theme", e), be(e, e);
3411
+ document.documentElement.setAttribute("data-theme", e), fe(e, e);
3398
3412
  }
3399
3413
  function Zs(e) {
3400
- return Se.add(e), () => Se.delete(e);
3414
+ return Ee.add(e), () => Ee.delete(e);
3401
3415
  }
3402
- function be(e, t) {
3403
- Se.forEach((r) => r(e, t));
3416
+ function fe(e, t) {
3417
+ Ee.forEach((r) => r(e, t));
3404
3418
  }
3405
3419
  function en() {
3406
3420
  Hl(Bl() === "light" ? "dark" : "light");
@@ -3526,7 +3540,7 @@ function Gl(e) {
3526
3540
  }
3527
3541
  return t;
3528
3542
  }
3529
- function Ie(e, t, r, l = {}) {
3543
+ function Me(e, t, r, l = {}) {
3530
3544
  const { ancestorScroll: a = !0, ancestorResize: o = !0, elementResize: s = !0, animationFrame: n = !1 } = l, c = [];
3531
3545
  if (a) {
3532
3546
  const m = Gl(e);
@@ -3732,14 +3746,14 @@ var Yl = [
3732
3746
  "[contenteditable]",
3733
3747
  '[tabindex]:not([tabindex="-1"])'
3734
3748
  ].join(", ");
3735
- function Me(e) {
3749
+ function Pe(e) {
3736
3750
  return Array.from(e.querySelectorAll(Yl)).filter((t) => !(t.offsetParent === null && t.style.position !== "fixed" || getComputedStyle(t).visibility === "hidden"));
3737
3751
  }
3738
3752
  function Lr(e) {
3739
- return Me(e)[0] ?? null;
3753
+ return Pe(e)[0] ?? null;
3740
3754
  }
3741
3755
  function Xl(e) {
3742
- const t = Me(e);
3756
+ const t = Pe(e);
3743
3757
  return t[t.length - 1] ?? null;
3744
3758
  }
3745
3759
  function ln(e) {
@@ -3755,7 +3769,7 @@ function Jl(e, t = {}) {
3755
3769
  let o = !1, s = null;
3756
3770
  function n(h) {
3757
3771
  if (h.key !== "Tab" || !o) return;
3758
- const p = Me(e);
3772
+ const p = Pe(e);
3759
3773
  if (p.length === 0) return;
3760
3774
  const b = p[0], x = p[p.length - 1];
3761
3775
  h.shiftKey ? document.activeElement === b && (h.preventDefault(), x.focus()) : document.activeElement === x && (h.preventDefault(), b.focus());
@@ -3956,7 +3970,7 @@ function pn(e, t) {
3956
3970
  document.removeEventListener("click", r, !0);
3957
3971
  };
3958
3972
  }
3959
- var Fr = class {
3973
+ var jr = class {
3960
3974
  constructor() {
3961
3975
  this._viewport = null, this._resizeObserver = null, this._options = null, this._handleScroll = () => {
3962
3976
  this._compute(this._viewport.clientHeight);
@@ -7709,7 +7723,7 @@ function Va(e) {
7709
7723
  </div>
7710
7724
  `;
7711
7725
  }
7712
- const Fa = () => y`
7726
+ const ja = () => y`
7713
7727
  :host {
7714
7728
  display: block;
7715
7729
  }
@@ -7861,7 +7875,7 @@ const Fa = () => y`
7861
7875
  color: var(--ml-color-danger);
7862
7876
  }
7863
7877
  `;
7864
- var ja = [
7878
+ var Fa = [
7865
7879
  "Jan",
7866
7880
  "Feb",
7867
7881
  "Mar",
@@ -7880,7 +7894,7 @@ function qa(e) {
7880
7894
  const t = e.split("-");
7881
7895
  if (t.length !== 3) return e;
7882
7896
  const r = parseInt(t[1], 10) - 1, l = parseInt(t[2], 10), a = parseInt(t[0], 10);
7883
- return `${ja[r]} ${l}, ${a}`;
7897
+ return `${Fa[r]} ${l}, ${a}`;
7884
7898
  }
7885
7899
  var xt = class {
7886
7900
  constructor() {
@@ -7925,7 +7939,7 @@ var xt = class {
7925
7939
  const t = this.getTriggerEl(), r = this.getPopoverEl();
7926
7940
  if (!t || !r) return;
7927
7941
  const l = () => this.updatePosition(t, r);
7928
- this._cleanupAutoUpdate?.(), this._cleanupAutoUpdate = Ie(t, r, l);
7942
+ this._cleanupAutoUpdate?.(), this._cleanupAutoUpdate = Me(t, r, l);
7929
7943
  }
7930
7944
  updatePosition(t, r) {
7931
7945
  const { x: l, y: a } = te(t, r, {
@@ -7952,7 +7966,7 @@ var xt = class {
7952
7966
  xt = g([_({
7953
7967
  selector: "ml-date-picker",
7954
7968
  template: Va,
7955
- styles: Fa,
7969
+ styles: ja,
7956
7970
  attributes: [
7957
7971
  "value",
7958
7972
  "placeholder",
@@ -10707,7 +10721,7 @@ const Eo = () => y`
10707
10721
  `;
10708
10722
  var Vt = class {
10709
10723
  constructor() {
10710
- this.hasFooter = !1, this.hasHeaderActions = !1, this.selectable = !1, this.striped = !1, this.hoverable = !0, this.stickyHeader = !1, this.size = "md", this.tableTitle = "", this.description = "", this.virtual = !1, this.columns = [], this.rows = [], this.sortKey = "", this.sortDirection = "asc", this.selectedIndices = [], this.startIndex = 0, this.endIndex = 50, this._scroller = new Fr(), this._viewport = null, this.isRowSelected = (t) => this.selectedIndices.includes(t), this.handleSort = (t) => {
10724
+ this.hasFooter = !1, this.hasHeaderActions = !1, this.selectable = !1, this.striped = !1, this.hoverable = !0, this.stickyHeader = !1, this.size = "md", this.tableTitle = "", this.description = "", this.virtual = !1, this.columns = [], this.rows = [], this.sortKey = "", this.sortDirection = "asc", this.selectedIndices = [], this.startIndex = 0, this.endIndex = 50, this._scroller = new jr(), this._viewport = null, this.isRowSelected = (t) => this.selectedIndices.includes(t), this.handleSort = (t) => {
10711
10725
  t.sortable && (this.sortKey === t.key ? this.sortDirection = this.sortDirection === "asc" ? "desc" : "asc" : (this.sortKey = t.key, this.sortDirection = "asc"), this.selectedIndices = [], this._scroller.invalidate(), this.elementRef.dispatchEvent(new CustomEvent("ml:sort", {
10712
10726
  bubbles: !0,
10713
10727
  composed: !0,
@@ -11522,9 +11536,9 @@ const zo = () => y`
11522
11536
  cursor: not-allowed;
11523
11537
  }
11524
11538
  `;
11525
- var Ft = class {
11539
+ var jt = class {
11526
11540
  constructor() {
11527
- this.selectable = !1, this.striped = !1, this.hoverable = !0, this.size = "md", this.gridTitle = "", this.description = "", this.serverSide = !1, this.pageSize = 50, this.virtual = !0, this.showFilterRow = !1, this.columns = [], this.rows = [], this.sortKey = "", this.sortDirection = "asc", this.filters = {}, this.selectedIndices = [], this.currentPage = 1, this.startIndex = 0, this.endIndex = 50, this.colWidths = {}, this.colOrder = [], this.resizingKey = null, this.draggingKey = null, this.dragOverKey = null, this._scroller = new Fr(), this._viewport = null, this._resizeStartX = 0, this._resizeStartWidth = 0, this.isRowSelected = (t) => this.selectedIndices.includes(t), this.handleSort = (t) => {
11541
+ this.selectable = !1, this.striped = !1, this.hoverable = !0, this.size = "md", this.gridTitle = "", this.description = "", this.serverSide = !1, this.pageSize = 50, this.virtual = !0, this.showFilterRow = !1, this.columns = [], this.rows = [], this.sortKey = "", this.sortDirection = "asc", this.filters = {}, this.selectedIndices = [], this.currentPage = 1, this.startIndex = 0, this.endIndex = 50, this.colWidths = {}, this.colOrder = [], this.resizingKey = null, this.draggingKey = null, this.dragOverKey = null, this._scroller = new jr(), this._viewport = null, this._resizeStartX = 0, this._resizeStartWidth = 0, this.isRowSelected = (t) => this.selectedIndices.includes(t), this.handleSort = (t) => {
11528
11542
  t.sortable && (this.sortKey === t.key ? this.sortDirection = this.sortDirection === "asc" ? "desc" : "asc" : (this.sortKey = t.key, this.sortDirection = "asc"), this.currentPage = 1, this._scroller.invalidate(), this.elementRef.dispatchEvent(new CustomEvent("ml:sort", {
11529
11543
  bubbles: !0,
11530
11544
  composed: !0,
@@ -11729,7 +11743,7 @@ var Ft = class {
11729
11743
  }));
11730
11744
  }
11731
11745
  };
11732
- Ft = g([_({
11746
+ jt = g([_({
11733
11747
  selector: "ml-data-grid",
11734
11748
  template: To,
11735
11749
  styles: zo,
@@ -11745,7 +11759,7 @@ Ft = g([_({
11745
11759
  "virtual",
11746
11760
  "show-filter-row"
11747
11761
  ]
11748
- })], Ft);
11762
+ })], jt);
11749
11763
  var Ao = [
11750
11764
  "January",
11751
11765
  "February",
@@ -11759,7 +11773,7 @@ var Ao = [
11759
11773
  "October",
11760
11774
  "November",
11761
11775
  "December"
11762
- ], Ee = [
11776
+ ], Re = [
11763
11777
  "Jan",
11764
11778
  "Feb",
11765
11779
  "Mar",
@@ -11772,7 +11786,7 @@ var Ao = [
11772
11786
  "Oct",
11773
11787
  "Nov",
11774
11788
  "Dec"
11775
- ], jr = [
11789
+ ], Fr = [
11776
11790
  "Sunday",
11777
11791
  "Monday",
11778
11792
  "Tuesday",
@@ -11780,7 +11794,7 @@ var Ao = [
11780
11794
  "Thursday",
11781
11795
  "Friday",
11782
11796
  "Saturday"
11783
- ], Pe = [
11797
+ ], Oe = [
11784
11798
  "Sun",
11785
11799
  "Mon",
11786
11800
  "Tue",
@@ -11792,7 +11806,7 @@ var Ao = [
11792
11806
  function N(e, t, r) {
11793
11807
  return `${e}-${String(t + 1).padStart(2, "0")}-${String(r).padStart(2, "0")}`;
11794
11808
  }
11795
- function jt(e) {
11809
+ function Ft(e) {
11796
11810
  const [t, r, l] = e.split("T")[0].split("-").map(Number);
11797
11811
  return new Date(t, r - 1, l);
11798
11812
  }
@@ -11828,7 +11842,7 @@ function Bt(e) {
11828
11842
  return `${Ao[e.getMonth()]} ${e.getFullYear()}`;
11829
11843
  }
11830
11844
  function Mo(e, t) {
11831
- const r = Ee[e.getMonth()], l = Ee[t.getMonth()];
11845
+ const r = Re[e.getMonth()], l = Re[t.getMonth()];
11832
11846
  return e.getMonth() === t.getMonth() && e.getFullYear() === t.getFullYear() ? `${r} ${e.getDate()} – ${t.getDate()}, ${e.getFullYear()}` : e.getFullYear() === t.getFullYear() ? `${r} ${e.getDate()} – ${l} ${t.getDate()}, ${e.getFullYear()}` : `${r} ${e.getDate()}, ${e.getFullYear()} – ${l} ${t.getDate()}, ${t.getFullYear()}`;
11833
11847
  }
11834
11848
  function Ht(e, t, r = 0) {
@@ -11880,8 +11894,8 @@ function Kt(e = 0) {
11880
11894
  return Array.from({ length: 7 }, (t, r) => {
11881
11895
  const l = (e + r) % 7;
11882
11896
  return {
11883
- short: Pe[l],
11884
- full: jr[l]
11897
+ short: Oe[l],
11898
+ full: Fr[l]
11885
11899
  };
11886
11900
  });
11887
11901
  }
@@ -11889,10 +11903,10 @@ function ue(e, t) {
11889
11903
  return e.filter((r) => r.start.split("T")[0] === t);
11890
11904
  }
11891
11905
  function Oo(e) {
11892
- return Ee[e.getMonth()];
11906
+ return Re[e.getMonth()];
11893
11907
  }
11894
11908
  function No(e) {
11895
- return jr[e.getDay()];
11909
+ return Fr[e.getDay()];
11896
11910
  }
11897
11911
  function M(e) {
11898
11912
  const t = new Date(e);
@@ -11961,24 +11975,24 @@ function Vo(e, t, r) {
11961
11975
  const a = N(l.getFullYear(), l.getMonth(), l.getDate()), o = ue(r, a).filter((s) => !s.allDay);
11962
11976
  return {
11963
11977
  date: a,
11964
- dayLabel: Pe[l.getDay()],
11978
+ dayLabel: Oe[l.getDay()],
11965
11979
  dayNumber: l.getDate(),
11966
11980
  isToday: qr(l),
11967
11981
  events: Hr(o)
11968
11982
  };
11969
11983
  });
11970
11984
  }
11971
- function Fo(e, t) {
11985
+ function jo(e, t) {
11972
11986
  const r = N(e.getFullYear(), e.getMonth(), e.getDate()), l = ue(t, r).filter((a) => !a.allDay);
11973
11987
  return {
11974
11988
  date: r,
11975
- dayLabel: Pe[e.getDay()],
11989
+ dayLabel: Oe[e.getDay()],
11976
11990
  dayNumber: e.getDate(),
11977
11991
  isToday: qr(e),
11978
11992
  events: Hr(l)
11979
11993
  };
11980
11994
  }
11981
- function jo(e, t, r) {
11995
+ function Fo(e, t, r) {
11982
11996
  const l = /* @__PURE__ */ new Set(), a = new Date(e, t + 1, 0).getDate();
11983
11997
  for (let o = 1; o <= a; o++) {
11984
11998
  const s = N(e, t, o);
@@ -13203,7 +13217,7 @@ var Gt = class {
13203
13217
  }, this.miniCalNextMonth = () => {
13204
13218
  this._miniCalMonth === 11 ? (this._miniCalMonth = 0, this._miniCalYear++) : this._miniCalMonth++;
13205
13219
  }, this.handleMiniCalSelect = (t) => {
13206
- this.setDate(jt(t));
13220
+ this.setDate(Ft(t));
13207
13221
  };
13208
13222
  }
13209
13223
  /** Check if header-left slot has consumer content */
@@ -13215,7 +13229,7 @@ var Gt = class {
13215
13229
  return this.elementRef?.querySelector('[slot="header-actions"]') !== null;
13216
13230
  }
13217
13231
  get _currentDate() {
13218
- return this.date ? jt(this.date) : /* @__PURE__ */ new Date();
13232
+ return this.date ? Ft(this.date) : /* @__PURE__ */ new Date();
13219
13233
  }
13220
13234
  onCreate() {
13221
13235
  if (!this.date) {
@@ -13281,7 +13295,7 @@ var Gt = class {
13281
13295
  return Lo();
13282
13296
  }
13283
13297
  get dayColumn() {
13284
- return Fo(this._currentDate, this.events);
13298
+ return jo(this._currentDate, this.events);
13285
13299
  }
13286
13300
  get dayEvents() {
13287
13301
  return ue(this.events, this.currentIsoDate);
@@ -13303,7 +13317,7 @@ var Gt = class {
13303
13317
  return Ht(this._miniCalYear, this._miniCalMonth, this.weekStartsOn);
13304
13318
  }
13305
13319
  get miniCalendarDots() {
13306
- return jo(this._miniCalYear, this._miniCalMonth, this.events);
13320
+ return Fo(this._miniCalYear, this._miniCalMonth, this.events);
13307
13321
  }
13308
13322
  setDate(t) {
13309
13323
  this.date = N(t.getFullYear(), t.getMonth(), t.getDate()), this._miniCalYear = t.getFullYear(), this._miniCalMonth = t.getMonth(), this.elementRef.dispatchEvent(new CustomEvent("ml:date-change", {
@@ -14260,7 +14274,7 @@ function bi(e) {
14260
14274
  <div class="ml-sidebar__footer">
14261
14275
  ${r ? i`
14262
14276
  <div class="ml-sidebar__footer-nav">
14263
- ${$(e.footerNavigation, (a) => a.value, (a) => Oe(e, a, 0))}
14277
+ ${$(e.footerNavigation, (a) => a.value, (a) => Ne(e, a, 0))}
14264
14278
  </div>
14265
14279
  ` : i`
14266
14280
  <div class="ml-sidebar__footer-nav">
@@ -14291,12 +14305,12 @@ function fi(e, t) {
14291
14305
  <span class="ml-sidebar__group-label">${t.label}</span>
14292
14306
  `)}
14293
14307
  <div class="ml-sidebar__group-items">
14294
- ${$(t.items, (l) => l.value, (l) => Oe(e, l, 0))}
14308
+ ${$(t.items, (l) => l.value, (l) => Ne(e, l, 0))}
14295
14309
  </div>
14296
14310
  </div>
14297
14311
  `;
14298
14312
  }
14299
- function Oe(e, t, r) {
14313
+ function Ne(e, t, r) {
14300
14314
  const l = e.active === t.value, a = !!t.children && t.children.length > 0, o = e.expandedItems.has(t.value), s = e.collapsed, n = v({
14301
14315
  "ml-sidebar__item-link": !0,
14302
14316
  "ml-sidebar__item-link--active": l,
@@ -14360,7 +14374,7 @@ function Oe(e, t, r) {
14360
14374
  `)}
14361
14375
  ${d(a && o && !s, () => i`
14362
14376
  <div class="ml-sidebar__item-submenu">
14363
- ${$(t.children, (u) => u.value, (u) => Oe(e, u, r + 1))}
14377
+ ${$(t.children, (u) => u.value, (u) => Ne(e, u, r + 1))}
14364
14378
  </div>
14365
14379
  `)}
14366
14380
  </div>
@@ -16490,7 +16504,7 @@ function Vi(e) {
16490
16504
  </div>
16491
16505
  `;
16492
16506
  }
16493
- const Fi = () => y`
16507
+ const ji = () => y`
16494
16508
  :host {
16495
16509
  display: block;
16496
16510
  }
@@ -16511,10 +16525,10 @@ var sr = class {
16511
16525
  sr = g([_({
16512
16526
  selector: "ml-step-panel",
16513
16527
  template: Vi,
16514
- styles: Fi,
16528
+ styles: ji,
16515
16529
  attributes: ["value"]
16516
16530
  })], sr);
16517
- const ji = () => i`<dialog class="ml-dialog">
16531
+ const Fi = () => i`<dialog class="ml-dialog">
16518
16532
  <div class="ml-dialog-header">
16519
16533
  <slot name="dialog-header"></slot>
16520
16534
  </div>
@@ -16766,30 +16780,8 @@ var Bi = class {
16766
16780
  const o = this.mountDialog(t);
16767
16781
  l = ((o.shadowRoot?.querySelector("ml-dialog")).shadowRoot?.querySelector("dialog")).id, a = this._dialogs.get(l), a.dialogComponent = o, r && a.dialogRef.applyConfig(r), o.component.onDialogRefSet?.(a.dialogRef);
16768
16782
  }
16769
- if (!a) {
16770
- const o = this.findDialogElement(l);
16771
- if (o && (o.component.open(), a = this._dialogs.get(l)), !a) throw new Error(`Dialog "${l}" not found. Ensure an <ml-dialog #${l}> exists in the DOM.`);
16772
- return a.dialogRef;
16773
- }
16774
16783
  return a.dialogRef.open(), a.dialogRef;
16775
16784
  }
16776
- findDialogElement(t) {
16777
- for (const r of document.body.querySelectorAll("*")) if (r.shadowRoot) {
16778
- const l = this.deepFindDialog(r, t);
16779
- if (l) return l;
16780
- }
16781
- return null;
16782
- }
16783
- deepFindDialog(t, r) {
16784
- const l = t.shadowRoot;
16785
- if (!l) return null;
16786
- for (const a of l.querySelectorAll("ml-dialog")) if (a.hasAttribute(`#${r}`)) return a;
16787
- for (const a of l.querySelectorAll("*")) if (a.shadowRoot) {
16788
- const o = this.deepFindDialog(a, r);
16789
- if (o) return o;
16790
- }
16791
- return null;
16792
- }
16793
16785
  close(t, r) {
16794
16786
  this._dialogs.has(t) && this._dialogs.get(t).dialogRef.close(r);
16795
16787
  }
@@ -16805,21 +16797,14 @@ var Bi = class {
16805
16797
  }
16806
16798
  };
16807
16799
  Q = g([Z()], Q);
16808
- var nr, Re = class {
16800
+ var nr, Te = class {
16809
16801
  constructor() {
16810
16802
  this._dialogID = Zl(), this._registered = !1;
16811
16803
  }
16812
- onCreate() {
16813
- this.registerDialog();
16814
- }
16815
16804
  registerDialog() {
16816
16805
  if (this._registered) return;
16817
16806
  const t = this.elementRef.shadowRoot?.querySelector("dialog");
16818
- if (!t) {
16819
- console.warn(`[ml-dialog] registerDialog failed: <dialog> not found in shadow root for #${this.createDialogID()}. elementRef:`, this.elementRef, "shadowRoot:", this.elementRef.shadowRoot, "shadowRoot children:", this.elementRef.shadowRoot?.children);
16820
- return;
16821
- }
16822
- this._dialogEl = t, this._dialogID = this.createDialogID(), this._dialogEl.id = this._dialogID, this._dialogRef = this._dialogService.addDialog(this._dialogID, this._dialogEl), this._registered = !0;
16807
+ t && (this._dialogEl = t, this._dialogID = this.createDialogID(), this._dialogEl.id = this._dialogID, this._dialogRef = this._dialogService.addDialog(this._dialogID, this._dialogEl), this._registered = !0);
16823
16808
  }
16824
16809
  onDestroy() {
16825
16810
  this._dialogService.removeDialog(this._dialogID);
@@ -16834,13 +16819,13 @@ var nr, Re = class {
16834
16819
  return this.elementRef.getAttributeNames().find((t) => t.startsWith("#"))?.slice(1) ?? this._dialogID;
16835
16820
  }
16836
16821
  };
16837
- g([H(Q), F("design:type", typeof (nr = typeof Q < "u" && Q) == "function" ? nr : Object)], Re.prototype, "_dialogService", void 0);
16838
- Re = g([_({
16822
+ g([H(Q), j("design:type", typeof (nr = typeof Q < "u" && Q) == "function" ? nr : Object)], Te.prototype, "_dialogService", void 0);
16823
+ Te = g([_({
16839
16824
  selector: "ml-dialog",
16840
- template: ji,
16825
+ template: Fi,
16841
16826
  styles: qi,
16842
16827
  attributes: []
16843
- })], Re);
16828
+ })], Te);
16844
16829
  function Hi(e) {
16845
16830
  const t = e.side === "left" ? "left" : "right", r = e.size === "sm" || e.size === "md" || e.size === "lg" || e.size === "xl" ? e.size : "md";
16846
16831
  return i`
@@ -17349,7 +17334,7 @@ var cr = class {
17349
17334
  const t = this.getTriggerEl(), r = this.getMenuEl();
17350
17335
  if (!t || !r) return;
17351
17336
  const l = () => this.updatePosition(t, r);
17352
- this._cleanupAutoUpdate?.(), this._cleanupAutoUpdate = Ie(t, r, l);
17337
+ this._cleanupAutoUpdate?.(), this._cleanupAutoUpdate = Me(t, r, l);
17353
17338
  }
17354
17339
  updatePosition(t, r) {
17355
17340
  const l = this.arrow ? this.elementRef.shadowRoot?.querySelector(".ml-dropdown__arrow") : null, a = [
@@ -17817,7 +17802,7 @@ var vr = class {
17817
17802
  const t = this.getTriggerEl(), r = this.getPopoverEl();
17818
17803
  if (!t || !r) return;
17819
17804
  const l = () => this.updatePosition(t, r);
17820
- this._cleanupAutoUpdate?.(), this._cleanupAutoUpdate = Ie(t, r, l);
17805
+ this._cleanupAutoUpdate?.(), this._cleanupAutoUpdate = Me(t, r, l);
17821
17806
  }
17822
17807
  updatePosition(t, r) {
17823
17808
  const l = this.arrow ? this.elementRef.shadowRoot?.querySelector(".ml-popover__arrow") : null, a = [
@@ -19248,7 +19233,7 @@ export {
19248
19233
  zt as ContainerComponent,
19249
19234
  xr as DashboardPageComponent,
19250
19235
  xt as DatePickerComponent,
19251
- Re as DialogComponent,
19236
+ Te as DialogComponent,
19252
19237
  Bi as DialogRef,
19253
19238
  Q as DialogService,
19254
19239
  qs as Directive,
@@ -19265,9 +19250,9 @@ export {
19265
19250
  ft as FormFieldComponent,
19266
19251
  Rl as FormGroup,
19267
19252
  br as HeroSectionComponent,
19268
- ze as HttpBaseError,
19269
- qe as HttpClient,
19270
- je as HttpError,
19253
+ Ae as HttpBaseError,
19254
+ Be as HttpClient,
19255
+ qe as HttpError,
19271
19256
  Ut as IconComponent,
19272
19257
  gs as Inject,
19273
19258
  Z as Injectable,
@@ -19284,19 +19269,19 @@ export {
19284
19269
  vr as PopoverComponent,
19285
19270
  St as ProgressComponent,
19286
19271
  ol as ROUTE_CONTEXT_EVENT,
19287
- $e as RX_ACTION_PROVIDERS,
19288
- Ce as RX_EFFECTS_PROVIDERS,
19289
- ke as RX_INIT_STATE,
19272
+ Ce as RX_ACTION_PROVIDERS,
19273
+ Se as RX_EFFECTS_PROVIDERS,
19274
+ $e as RX_INIT_STATE,
19290
19275
  Ir as RX_STATE_DEBUG,
19291
19276
  pt as RadioCardComponent,
19292
19277
  ht as RadioCardGroupComponent,
19293
19278
  mt as RadioComponent,
19294
19279
  ut as RadioGroupComponent,
19295
19280
  $s as RouteContextEvent,
19296
- ye as RouteContextService,
19297
- fe as RouteMatcher,
19298
- we as RouterLinkComponent,
19299
- xe as RouterOutletComponent,
19281
+ xe as RouteContextService,
19282
+ _e as RouteMatcher,
19283
+ ke as RouterLinkComponent,
19284
+ we as RouterOutletComponent,
19300
19285
  V as RouterService,
19301
19286
  wr as SIGNAL_MARKER,
19302
19287
  gt as SelectComponent,
@@ -19305,7 +19290,7 @@ export {
19305
19290
  rr as SidebarGroupComponent,
19306
19291
  lr as SidebarItemComponent,
19307
19292
  Dr as SignalEffect,
19308
- j as SignalStoreService,
19293
+ F as SignalStoreService,
19309
19294
  yr as SignupPageComponent,
19310
19295
  bt as SliderComponent,
19311
19296
  at as SpinnerComponent,
@@ -19326,19 +19311,19 @@ export {
19326
19311
  vt as ToggleComponent,
19327
19312
  pr as TooltipComponent,
19328
19313
  Ks as Validators,
19329
- Fr as VirtualScroller,
19314
+ jr as VirtualScroller,
19330
19315
  $o as activityFeedItemStyles,
19331
19316
  ko as activityFeedItemTemplate,
19332
19317
  wo as activityFeedStyles,
19333
19318
  xo as activityFeedTemplate,
19334
- Fl as allTokens,
19319
+ jl as allTokens,
19335
19320
  dn as announce,
19336
19321
  os as appShellStyles,
19337
19322
  as as appShellTemplate,
19338
19323
  Yr as applyGlobalStyles,
19339
19324
  Hl as applyTheme,
19340
19325
  Nr as arrow,
19341
- Ie as autoUpdate,
19326
+ Me as autoUpdate,
19342
19327
  Js as baseThemeCss,
19343
19328
  bs as bootstrap,
19344
19329
  Nl as borderTokens,
@@ -19405,7 +19390,7 @@ export {
19405
19390
  cl as getAttributeDirective,
19406
19391
  Zr as getEnvironment,
19407
19392
  Lr as getFirstFocusable,
19408
- Me as getFocusableElements,
19393
+ Pe as getFocusableElements,
19409
19394
  Xl as getLastFocusable,
19410
19395
  Ts as getRegisteredDirectives,
19411
19396
  Bl as getResolvedTheme,
@@ -19427,7 +19412,7 @@ export {
19427
19412
  bo as listTemplate,
19428
19413
  ms as loginPageStyles,
19429
19414
  cs as loginPageTemplate,
19430
- _e as matchRouteTree,
19415
+ ye as matchRouteTree,
19431
19416
  Zl as newID,
19432
19417
  re as offset,
19433
19418
  Os as onAction,
@@ -19445,9 +19430,9 @@ export {
19445
19430
  ys as provideHttp,
19446
19431
  Vs as provideRX,
19447
19432
  he as registerAttributeDirective,
19448
- Ne as render,
19433
+ Le as render,
19449
19434
  $ as repeat,
19450
- Fs as repeatRaw,
19435
+ js as repeatRaw,
19451
19436
  mn as resetStyles,
19452
19437
  hl as routerLinkDirective,
19453
19438
  za as selectStyles,
@@ -19467,7 +19452,7 @@ export {
19467
19452
  Da as sliderStyles,
19468
19453
  Aa as sliderTemplate,
19469
19454
  Ml as spacingTokens,
19470
- Fi as stepPanelStyles,
19455
+ ji as stepPanelStyles,
19471
19456
  Vi as stepPanelTemplate,
19472
19457
  Li as stepStyles,
19473
19458
  Ai as stepTemplate,
@@ -19487,12 +19472,12 @@ export {
19487
19472
  Wa as toastStyles,
19488
19473
  Ka as toastTemplate,
19489
19474
  en as toggleTheme,
19490
- jl as tokensToCss,
19475
+ Fl as tokensToCss,
19491
19476
  ta as tooltipDirective,
19492
19477
  Ll as transitionTokens,
19493
19478
  Pl as typographyTokens,
19494
19479
  Rs as unregisterAttributeDirective,
19495
- js as unsafeHTML,
19480
+ Fs as unsafeHTML,
19496
19481
  un as visuallyHiddenStyles,
19497
19482
  d as when
19498
19483
  };