@uxland/primary-shell 5.6.0 → 5.6.2

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.
package/dist/index.js CHANGED
@@ -1479,7 +1479,7 @@ let o$X = class extends l$B {
1479
1479
  this.host[this.selectedProperty] === J.viewKey && (this.host[this.selectedProperty] = null, await super.deactivateView(J));
1480
1480
  }
1481
1481
  };
1482
- const d$t = (te, J) => new o$W(J), a$t = (te, J) => {
1482
+ const d$u = (te, J) => new o$W(J), a$t = (te, J) => {
1483
1483
  if (te = typeof te == "function" ? te() : te, !te) throw new Error(J);
1484
1484
  }, o$V = (te) => typeof HTMLElement == "object" ? te instanceof HTMLElement : te && typeof te == "object" && te != null && te.nodeType === 1 && typeof te.nodeName == "string", f$s = (te) => {
1485
1485
  if (!te.htmlTag && !te.element && !te.factory) throw new Error("One of properties htmlTag, factory or element must be set");
@@ -1488,7 +1488,7 @@ const d$t = (te, J) => new o$W(J), a$t = (te, J) => {
1488
1488
  let re;
1489
1489
  return te.element ? re = te.element : te.factory ? re = await te.factory() : te.htmlTag && (te.htmlUrl && await import(te.htmlUrl), re = window.document.createElement(te.htmlTag)), re.view = te, re.region = J, re.viewKey = X, re;
1490
1490
  };
1491
- let y$i = class {
1491
+ let y$h = class {
1492
1492
  constructor(J, X, re, ne, oe) {
1493
1493
  this.name = J, this.regionManager = X, this.host = re, this.adapter = ne, this.definition = oe, this.views = {}, this.activeViews = [], this.components = /* @__PURE__ */ new WeakMap(), this.host.uxlRegion = this;
1494
1494
  }
@@ -1566,7 +1566,7 @@ let y$i = class {
1566
1566
  }
1567
1567
  };
1568
1568
  const e$W = "default", r$M = "dynamic";
1569
- let y$h = class {
1569
+ let y$g = class {
1570
1570
  constructor() {
1571
1571
  this.adapterRegistry = /* @__PURE__ */ new Map(), this.adapterRegistry.set(r$M, []);
1572
1572
  }
@@ -1589,7 +1589,7 @@ let y$h = class {
1589
1589
  this.adapterRegistry.set(e$W, J);
1590
1590
  }
1591
1591
  };
1592
- const p$h = new y$h(), o$U = "__uxl_regions__", s$x = (te) => (J, X) => {
1592
+ const p$h = new y$g(), o$U = "__uxl_regions__", s$x = (te) => (J, X) => {
1593
1593
  J.constructor[o$U] = { ...J.constructor[o$U], [X]: te };
1594
1594
  }, p$g = (te, J, X) => {
1595
1595
  const re = X.getAdapterFactory(J);
@@ -1600,7 +1600,7 @@ const p$h = new y$h(), o$U = "__uxl_regions__", s$x = (te) => (J, X) => {
1600
1600
  if (ne) {
1601
1601
  const oe = te.adapterFactory ? te.adapterFactory(te, ne) : p$g(te, ne, re);
1602
1602
  a$t(oe, "No region adapter found for the host");
1603
- const de = te.scoped ? X.createRegionManager() : X, ce = new y$i(te.name, de, ne, oe, te);
1603
+ const de = te.scoped ? X.createRegionManager() : X, ce = new y$h(te.name, de, ne, oe, te);
1604
1604
  return de.add(te.name, ce), ce;
1605
1605
  } else console.warn(`region host with id ${te.targetId} not found for region named ${te.name}`);
1606
1606
  };
@@ -1645,7 +1645,7 @@ function r$L(te, J) {
1645
1645
  }
1646
1646
  return !1;
1647
1647
  }
1648
- function d$s(te) {
1648
+ function d$t(te) {
1649
1649
  return (J) => {
1650
1650
  if (r$L(te, J)) return J;
1651
1651
  const X = te(J);
@@ -1720,7 +1720,7 @@ const e$U = window, r$J = e$U.trustedTypes, h$u = r$J ? r$J.emptyScript : "", o$
1720
1720
  }
1721
1721
  }
1722
1722
  return X;
1723
- } }, a$s = (te, J) => J !== te && (J == J || te == te), l$A = { attribute: !0, type: String, converter: n$F, reflect: !1, hasChanged: a$s }, d$r = "finalized";
1723
+ } }, a$s = (te, J) => J !== te && (J == J || te == te), l$A = { attribute: !0, type: String, converter: n$F, reflect: !1, hasChanged: a$s }, d$s = "finalized";
1724
1724
  let u$v = class extends HTMLElement {
1725
1725
  constructor() {
1726
1726
  super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this._$Eu();
@@ -1755,8 +1755,8 @@ let u$v = class extends HTMLElement {
1755
1755
  return this.elementProperties.get(J) || l$A;
1756
1756
  }
1757
1757
  static finalize() {
1758
- if (this.hasOwnProperty(d$r)) return !1;
1759
- this[d$r] = !0;
1758
+ if (this.hasOwnProperty(d$s)) return !1;
1759
+ this[d$s] = !0;
1760
1760
  const J = Object.getPrototypeOf(this);
1761
1761
  if (J.finalize(), J.h !== void 0 && (this.h = [...J.h]), this.elementProperties = new Map(J.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
1762
1762
  const X = this.properties, re = [...Object.getOwnPropertyNames(X), ...Object.getOwnPropertySymbols(X)];
@@ -1895,16 +1895,16 @@ let u$v = class extends HTMLElement {
1895
1895
  firstUpdated(J) {
1896
1896
  }
1897
1897
  };
1898
- u$v[d$r] = !0, u$v.elementProperties = /* @__PURE__ */ new Map(), u$v.elementStyles = [], u$v.shadowRootOptions = { mode: "open" }, o$S == null || o$S({ ReactiveElement: u$v }), ((s$v = e$U.reactiveElementVersions) !== null && s$v !== void 0 ? s$v : e$U.reactiveElementVersions = []).push("1.6.3");
1898
+ u$v[d$s] = !0, u$v.elementProperties = /* @__PURE__ */ new Map(), u$v.elementStyles = [], u$v.shadowRootOptions = { mode: "open" }, o$S == null || o$S({ ReactiveElement: u$v }), ((s$v = e$U.reactiveElementVersions) !== null && s$v !== void 0 ? s$v : e$U.reactiveElementVersions = []).push("1.6.3");
1899
1899
  /**
1900
1900
  * @license
1901
1901
  * Copyright 2017 Google LLC
1902
1902
  * SPDX-License-Identifier: BSD-3-Clause
1903
1903
  */
1904
1904
  var t$m;
1905
- const i$A = window, s$u = i$A.trustedTypes, e$T = s$u ? s$u.createPolicy("lit-html", { createHTML: (te) => te }) : void 0, o$R = "$lit$", n$E = `lit$${(Math.random() + "").slice(9)}$`, l$z = "?" + n$E, h$t = `<${l$z}>`, r$I = document, u$u = () => r$I.createComment(""), d$q = (te) => te === null || typeof te != "object" && typeof te != "function", c$q = Array.isArray, v$g = (te) => c$q(te) || typeof (te == null ? void 0 : te[Symbol.iterator]) == "function", a$r = `[
1905
+ const i$A = window, s$u = i$A.trustedTypes, e$T = s$u ? s$u.createPolicy("lit-html", { createHTML: (te) => te }) : void 0, o$R = "$lit$", n$E = `lit$${(Math.random() + "").slice(9)}$`, l$z = "?" + n$E, h$t = `<${l$z}>`, r$I = document, u$u = () => r$I.createComment(""), d$r = (te) => te === null || typeof te != "object" && typeof te != "function", c$q = Array.isArray, v$g = (te) => c$q(te) || typeof (te == null ? void 0 : te[Symbol.iterator]) == "function", a$r = `[
1906
1906
  \f\r]`, f$q = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _$j = /-->/g, m$e = />/g, p$f = RegExp(`>|${a$r}(?:([^\\s"'>=/]+)(${a$r}*=${a$r}*(?:[^
1907
- \f\r"'\`<>=]|("|')|))|$)`, "g"), g$l = /'/g, $$b = /"/g, y$g = /^(?:script|style|textarea|title)$/i, T$3 = Symbol.for("lit-noChange"), A$1 = Symbol.for("lit-nothing"), E$5 = /* @__PURE__ */ new WeakMap(), C$9 = r$I.createTreeWalker(r$I, 129, null, !1);
1907
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), g$l = /'/g, $$b = /"/g, y$f = /^(?:script|style|textarea|title)$/i, T$3 = Symbol.for("lit-noChange"), A$1 = Symbol.for("lit-nothing"), E$5 = /* @__PURE__ */ new WeakMap(), C$9 = r$I.createTreeWalker(r$I, 129, null, !1);
1908
1908
  function P$2(te, J) {
1909
1909
  if (!Array.isArray(te) || !te.hasOwnProperty("raw")) throw Error("invalid template strings array");
1910
1910
  return e$T !== void 0 ? e$T.createHTML(J) : J;
@@ -1915,7 +1915,7 @@ const V$4 = (te, J) => {
1915
1915
  for (let ce = 0; ce < X; ce++) {
1916
1916
  const he = te[ce];
1917
1917
  let ue, pe, fe = -1, ge = 0;
1918
- for (; ge < he.length && (de.lastIndex = ge, pe = de.exec(he), pe !== null); ) ge = de.lastIndex, de === f$q ? pe[1] === "!--" ? de = _$j : pe[1] !== void 0 ? de = m$e : pe[2] !== void 0 ? (y$g.test(pe[2]) && (ne = RegExp("</" + pe[2], "g")), de = p$f) : pe[3] !== void 0 && (de = p$f) : de === p$f ? pe[0] === ">" ? (de = ne ?? f$q, fe = -1) : pe[1] === void 0 ? fe = -2 : (fe = de.lastIndex - pe[2].length, ue = pe[1], de = pe[3] === void 0 ? p$f : pe[3] === '"' ? $$b : g$l) : de === $$b || de === g$l ? de = p$f : de === _$j || de === m$e ? de = f$q : (de = p$f, ne = void 0);
1918
+ for (; ge < he.length && (de.lastIndex = ge, pe = de.exec(he), pe !== null); ) ge = de.lastIndex, de === f$q ? pe[1] === "!--" ? de = _$j : pe[1] !== void 0 ? de = m$e : pe[2] !== void 0 ? (y$f.test(pe[2]) && (ne = RegExp("</" + pe[2], "g")), de = p$f) : pe[3] !== void 0 && (de = p$f) : de === p$f ? pe[0] === ">" ? (de = ne ?? f$q, fe = -1) : pe[1] === void 0 ? fe = -2 : (fe = de.lastIndex - pe[2].length, ue = pe[1], de = pe[3] === void 0 ? p$f : pe[3] === '"' ? $$b : g$l) : de === $$b || de === g$l ? de = p$f : de === _$j || de === m$e ? de = f$q : (de = p$f, ne = void 0);
1919
1919
  const me = de === p$f && te[ce + 1].startsWith("/>") ? " " : "";
1920
1920
  oe += de === f$q ? he + h$t : fe >= 0 ? (re.push(ue), he.slice(0, fe) + o$R + he.slice(fe) + n$E + me) : he + n$E + (fe === -2 ? (re.push(void 0), ce) : me);
1921
1921
  }
@@ -1944,7 +1944,7 @@ let N$3 = class Pr {
1944
1944
  }
1945
1945
  for (const ge of fe) ne.removeAttribute(ge);
1946
1946
  }
1947
- if (y$g.test(ne.tagName)) {
1947
+ if (y$f.test(ne.tagName)) {
1948
1948
  const fe = ne.textContent.split(n$E), ge = fe.length - 1;
1949
1949
  if (ge > 0) {
1950
1950
  ne.textContent = s$u ? s$u.emptyScript : "";
@@ -1969,7 +1969,7 @@ function S$g(te, J, X = te, re) {
1969
1969
  var ne, oe, de, ce;
1970
1970
  if (J === T$3) return J;
1971
1971
  let he = re !== void 0 ? (ne = X._$Co) === null || ne === void 0 ? void 0 : ne[re] : X._$Cl;
1972
- const ue = d$q(J) ? void 0 : J._$litDirective$;
1972
+ const ue = d$r(J) ? void 0 : J._$litDirective$;
1973
1973
  return (he == null ? void 0 : he.constructor) !== ue && ((oe = he == null ? void 0 : he._$AO) === null || oe === void 0 || oe.call(he, !1), ue === void 0 ? he = void 0 : (he = new ue(te), he._$AT(te, X, re)), re !== void 0 ? ((de = (ce = X)._$Co) !== null && de !== void 0 ? de : ce._$Co = [])[re] = he : X._$Cl = he), he !== void 0 && (J = S$g(te, he._$AS(te, J.values), he, re)), J;
1974
1974
  }
1975
1975
  let M$4 = class {
@@ -2021,7 +2021,7 @@ let M$4 = class {
2021
2021
  return this._$AB;
2022
2022
  }
2023
2023
  _$AI(J, X = this) {
2024
- J = S$g(this, J, X), d$q(J) ? J === A$1 || J == null || J === "" ? (this._$AH !== A$1 && this._$AR(), this._$AH = A$1) : J !== this._$AH && J !== T$3 && this._(J) : J._$litType$ !== void 0 ? this.g(J) : J.nodeType !== void 0 ? this.$(J) : v$g(J) ? this.T(J) : this._(J);
2024
+ J = S$g(this, J, X), d$r(J) ? J === A$1 || J == null || J === "" ? (this._$AH !== A$1 && this._$AR(), this._$AH = A$1) : J !== this._$AH && J !== T$3 && this._(J) : J._$litType$ !== void 0 ? this.g(J) : J.nodeType !== void 0 ? this.$(J) : v$g(J) ? this.T(J) : this._(J);
2025
2025
  }
2026
2026
  k(J) {
2027
2027
  return this._$AA.parentNode.insertBefore(J, this._$AB);
@@ -2030,7 +2030,7 @@ let M$4 = class {
2030
2030
  this._$AH !== J && (this._$AR(), this._$AH = this.k(J));
2031
2031
  }
2032
2032
  _(J) {
2033
- this._$AH !== A$1 && d$q(this._$AH) ? this._$AA.nextSibling.data = J : this.$(r$I.createTextNode(J)), this._$AH = J;
2033
+ this._$AH !== A$1 && d$r(this._$AH) ? this._$AA.nextSibling.data = J : this.$(r$I.createTextNode(J)), this._$AH = J;
2034
2034
  }
2035
2035
  g(J) {
2036
2036
  var X;
@@ -2076,11 +2076,11 @@ let M$4 = class {
2076
2076
  _$AI(J, X = this, re, ne) {
2077
2077
  const oe = this.strings;
2078
2078
  let de = !1;
2079
- if (oe === void 0) J = S$g(this, J, X, 0), de = !d$q(J) || J !== this._$AH && J !== T$3, de && (this._$AH = J);
2079
+ if (oe === void 0) J = S$g(this, J, X, 0), de = !d$r(J) || J !== this._$AH && J !== T$3, de && (this._$AH = J);
2080
2080
  else {
2081
2081
  const ce = J;
2082
2082
  let he, ue;
2083
- for (J = oe[0], he = 0; he < oe.length - 1; he++) ue = S$g(this, ce[re + he], X, he), ue === T$3 && (ue = this._$AH[he]), de || (de = !d$q(ue) || ue !== this._$AH[he]), ue === A$1 ? J = A$1 : J !== A$1 && (J += (ue ?? "") + oe[he + 1]), this._$AH[he] = ue;
2083
+ for (J = oe[0], he = 0; he < oe.length - 1; he++) ue = S$g(this, ce[re + he], X, he), ue === T$3 && (ue = this._$AH[he]), de || (de = !d$r(ue) || ue !== this._$AH[he]), ue === A$1 ? J = A$1 : J !== A$1 && (J += (ue ?? "") + oe[he + 1]), this._$AH[he] = ue;
2084
2084
  }
2085
2085
  de && !ne && this.j(J);
2086
2086
  }
@@ -2178,7 +2178,7 @@ n$D == null || n$D({ LitElement: s$t });
2178
2178
  var defaultTo = /* @__PURE__ */ _curry2(function(J, X) {
2179
2179
  return X == null || X !== X ? J : X;
2180
2180
  });
2181
- const u$t = (te, J) => J.constructor._classProperties ? J.constructor._classProperties.get(te).hasChanged : void 0, a$q = pipe(u$t, defaultTo(a$s)), l$x = d$s((te) => {
2181
+ const u$t = (te, J) => J.constructor._classProperties ? J.constructor._classProperties.get(te).hasChanged : void 0, a$q = pipe(u$t, defaultTo(a$s)), l$x = d$t((te) => {
2182
2182
  class J extends te {
2183
2183
  requestUpdate(re, ne) {
2184
2184
  const oe = super.requestUpdate ? super.requestUpdate(re, ne) : Promise.resolve(null);
@@ -2249,7 +2249,7 @@ const u$s = (te) => (J) => pipe(prop(J.key), isNil)(te), q$2 = (te) => (J) => !u
2249
2249
  }).catch(always(void 0)), L$5 = (te) => pipe(keys, map((J) => ({ key: J, definition: te[J] })))(te), l$w = (te) => te.constructor[o$U] || {}, H$1 = (te, J, X) => {
2250
2250
  const re = u$s(te), ne = q$2(te), oe = T$1(te), de = w$4(te, J, X);
2251
2251
  return (ce) => cond([[re, de], [ne, oe], [T$2, always(Promise.resolve(void 0))]])(ce);
2252
- }, j$2 = (te, J) => d$s((X) => {
2252
+ }, j$2 = (te, J) => d$t((X) => {
2253
2253
  class re extends X {
2254
2254
  constructor(...oe) {
2255
2255
  super(), this.enqueuer = new i$B(this.runRegionCreation.bind(this));
@@ -2311,7 +2311,7 @@ var l$v = Object.defineProperty, s$s = (te, J, X, re) => {
2311
2311
  for (var ne = void 0, oe = te.length - 1, de; oe >= 0; oe--) (de = te[oe]) && (ne = de(J, X, ne) || ne);
2312
2312
  return ne && l$v(J, X, ne), ne;
2313
2313
  };
2314
- const d$p = d$s((te) => {
2314
+ const d$q = d$t((te) => {
2315
2315
  class J extends l$x(te) {
2316
2316
  activeChanged(re, ne) {
2317
2317
  }
@@ -2321,7 +2321,7 @@ const d$p = d$s((te) => {
2321
2321
  return s$s([n$C({ type: Boolean })], J.prototype, "active"), s$s([n$C()], J.prototype, "regionContext"), J;
2322
2322
  });
2323
2323
  function k$7(te) {
2324
- return d$p(te);
2324
+ return d$q(te);
2325
2325
  }
2326
2326
  /**
2327
2327
  * @license
@@ -2370,7 +2370,7 @@ const r$H = (te) => new n$A(typeof te == "string" ? te : te + "", void 0, s$r),
2370
2370
  * Copyright 2017 Google LLC
2371
2371
  * SPDX-License-Identifier: BSD-3-Clause
2372
2372
  */
2373
- const { is: i$x, defineProperty: e$Q, getOwnPropertyDescriptor: r$G, getOwnPropertyNames: h$s, getOwnPropertySymbols: o$O, getPrototypeOf: n$z } = Object, a$p = globalThis, c$o = a$p.trustedTypes, l$u = c$o ? c$o.emptyScript : "", p$e = a$p.reactiveElementPolyfillSupport, d$o = (te, J) => te, u$r = { toAttribute(te, J) {
2373
+ const { is: i$x, defineProperty: e$Q, getOwnPropertyDescriptor: r$G, getOwnPropertyNames: h$s, getOwnPropertySymbols: o$O, getPrototypeOf: n$z } = Object, a$p = globalThis, c$o = a$p.trustedTypes, l$u = c$o ? c$o.emptyScript : "", p$e = a$p.reactiveElementPolyfillSupport, d$p = (te, J) => te, u$r = { toAttribute(te, J) {
2374
2374
  switch (J) {
2375
2375
  case Boolean:
2376
2376
  te = te ? l$u : null;
@@ -2398,7 +2398,7 @@ const { is: i$x, defineProperty: e$Q, getOwnPropertyDescriptor: r$G, getOwnPrope
2398
2398
  }
2399
2399
  }
2400
2400
  return X;
2401
- } }, f$p = (te, J) => !i$x(te, J), y$f = { attribute: !0, type: String, converter: u$r, reflect: !1, hasChanged: f$p };
2401
+ } }, f$p = (te, J) => !i$x(te, J), y$e = { attribute: !0, type: String, converter: u$r, reflect: !1, hasChanged: f$p };
2402
2402
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), a$p.litPropertyMetadata ?? (a$p.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
2403
2403
  let b$r = class extends HTMLElement {
2404
2404
  static addInitializer(J) {
@@ -2407,7 +2407,7 @@ let b$r = class extends HTMLElement {
2407
2407
  static get observedAttributes() {
2408
2408
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
2409
2409
  }
2410
- static createProperty(J, X = y$f) {
2410
+ static createProperty(J, X = y$e) {
2411
2411
  if (X.state && (X.attribute = !1), this._$Ei(), this.elementProperties.set(J, X), !X.noAccessor) {
2412
2412
  const re = Symbol(), ne = this.getPropertyDescriptor(J, re, X);
2413
2413
  ne !== void 0 && e$Q(this.prototype, J, ne);
@@ -2427,16 +2427,16 @@ let b$r = class extends HTMLElement {
2427
2427
  }, configurable: !0, enumerable: !0 };
2428
2428
  }
2429
2429
  static getPropertyOptions(J) {
2430
- return this.elementProperties.get(J) ?? y$f;
2430
+ return this.elementProperties.get(J) ?? y$e;
2431
2431
  }
2432
2432
  static _$Ei() {
2433
- if (this.hasOwnProperty(d$o("elementProperties"))) return;
2433
+ if (this.hasOwnProperty(d$p("elementProperties"))) return;
2434
2434
  const J = n$z(this);
2435
2435
  J.finalize(), J.l !== void 0 && (this.l = [...J.l]), this.elementProperties = new Map(J.elementProperties);
2436
2436
  }
2437
2437
  static finalize() {
2438
- if (this.hasOwnProperty(d$o("finalized"))) return;
2439
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d$o("properties"))) {
2438
+ if (this.hasOwnProperty(d$p("finalized"))) return;
2439
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d$p("properties"))) {
2440
2440
  const X = this.properties, re = [...h$s(X), ...o$O(X)];
2441
2441
  for (const ne of re) this.createProperty(ne, X[ne]);
2442
2442
  }
@@ -2598,7 +2598,7 @@ let b$r = class extends HTMLElement {
2598
2598
  firstUpdated(J) {
2599
2599
  }
2600
2600
  };
2601
- b$r.elementStyles = [], b$r.shadowRootOptions = { mode: "open" }, b$r[d$o("elementProperties")] = /* @__PURE__ */ new Map(), b$r[d$o("finalized")] = /* @__PURE__ */ new Map(), p$e == null || p$e({ ReactiveElement: b$r }), (a$p.reactiveElementVersions ?? (a$p.reactiveElementVersions = [])).push("2.0.4");
2601
+ b$r.elementStyles = [], b$r.shadowRootOptions = { mode: "open" }, b$r[d$p("elementProperties")] = /* @__PURE__ */ new Map(), b$r[d$p("finalized")] = /* @__PURE__ */ new Map(), p$e == null || p$e({ ReactiveElement: b$r }), (a$p.reactiveElementVersions ?? (a$p.reactiveElementVersions = [])).push("2.0.4");
2602
2602
  /**
2603
2603
  * @license
2604
2604
  * Copyright 2017 Google LLC
@@ -2939,7 +2939,7 @@ function e$O(te, J) {
2939
2939
  } });
2940
2940
  };
2941
2941
  }
2942
- const y$e = (te) => j$2(te, p$h);
2942
+ const d$o = (te) => j$2(te, p$h);
2943
2943
  let a$o = class {
2944
2944
  constructor() {
2945
2945
  this.viewsByRegion = {}, this.regions = {};
@@ -3023,19 +3023,26 @@ let a$o = class {
3023
3023
  return super.destroy(), this._viewRegistry.destroy(), this;
3024
3024
  }
3025
3025
  };
3026
- const x$4 = (te) => new h$p(te), c$m = (te) => te.importer(), l$t = (te) => async (J, X) => {
3026
+ const x$4 = (te) => new h$p(te), c$m = (te) => te.importer(), l$t = async (te, J, X) => {
3027
3027
  try {
3028
- const re = await c$m(J);
3029
- console.debug("imported plugin: ", J.pluginId);
3030
- const ne = X(J);
3031
- return await te(ne)(re), console.debug("initialized plugin: ", J.pluginId), { dispose: () => w$2(ne)(re) };
3028
+ const re = await c$m(te);
3029
+ console.debug("imported plugin: ", te.pluginId);
3030
+ const ne = J(te);
3031
+ return await X(ne, re), console.debug("initialized plugin: ", te.pluginId), {
3032
+ dispose: () => w$2(ne, re)
3033
+ };
3032
3034
  } catch (re) {
3033
3035
  console.error(re);
3034
3036
  }
3035
- }, u$q = (te) => (J) => J.initialize(te), w$2 = (te) => (J) => J.dispose(te), v$e = async (te, J) => {
3037
+ }, u$q = async (te, J) => {
3038
+ await J.initialize(te);
3039
+ }, w$2 = (te, J) => J.dispose(te), v$e = async (te, J) => {
3036
3040
  if (!(te != null && te.length)) throw new Error("No plugins to bootstrap");
3037
- const X = (re) => l$t(u$q)(re, J);
3038
- return (await Promise.allSettled(te.map(X))).map((re) => re.status === "fulfilled" ? re.value : null);
3041
+ return (await Promise.allSettled(
3042
+ te.map((X) => l$t(X, J, u$q))
3043
+ )).map(
3044
+ (X) => X.status === "fulfilled" ? X.value : null
3045
+ );
3039
3046
  }, primariaShellId = "primaria-shell";
3040
3047
  var __extends$2 = /* @__PURE__ */ function() {
3041
3048
  var te = function(J, X) {
@@ -8858,10 +8865,16 @@ function rand(te) {
8858
8865
  function generateId() {
8859
8866
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, rand);
8860
8867
  }
8861
- const mapArrayToLabelValue = (te, J, X) => te.map((re) => ({
8862
- label: re[J],
8863
- value: re[X]
8864
- }));
8868
+ const mapArrayToLabelValue = (te, J, X) => te.map((re) => {
8869
+ const ne = re[J], oe = re[X];
8870
+ return (ne === "" || ne == null) && typeof oe == "string" && oe.trim() !== "" ? {
8871
+ label: oe,
8872
+ value: oe
8873
+ } : (ne === "" || ne == null) && (oe === "" || oe == null) ? null : {
8874
+ label: ne,
8875
+ value: oe
8876
+ };
8877
+ }).filter((re) => re !== null);
8865
8878
  function createConnectToStoreDecorator(te) {
8866
8879
  return function(X) {
8867
8880
  return (re, ne) => {
@@ -9627,7 +9640,7 @@ class TokenManagerImpl {
9627
9640
  }
9628
9641
  }
9629
9642
  let tokenManager$1;
9630
- const createTokenManager = () => tokenManager$1 || (tokenManager$1 = new TokenManagerImpl(), tokenManager$1.initToken(), tokenManager$1), broker$1 = createBroker(), regionManager = x$4("primaria"), PrimariaRegionHost = y$e(regionManager), tokenManager = createTokenManager(), globalStateManager = createGlobalStateManager(broker$1), pluginBusyManager = new PluginBusyManagerImpl(broker$1), interactionService = new ParimariaInteractionServiceImpl(), notificationService = new PrimariaNotificationServiceImpl(), ecapEventManager = createEcapEventManager(), pdfViewerManager = createPdfViewerManager(broker$1, notificationService), primariaApiFactory = (te) => {
9643
+ const createTokenManager = () => tokenManager$1 || (tokenManager$1 = new TokenManagerImpl(), tokenManager$1.initToken(), tokenManager$1), broker$1 = createBroker(), regionManager = x$4("primaria"), PrimariaRegionHost = d$o(regionManager), tokenManager = createTokenManager(), globalStateManager = createGlobalStateManager(broker$1), pluginBusyManager = new PluginBusyManagerImpl(broker$1), interactionService = new ParimariaInteractionServiceImpl(), notificationService = new PrimariaNotificationServiceImpl(), ecapEventManager = createEcapEventManager(), pdfViewerManager = createPdfViewerManager(broker$1, notificationService), primariaApiFactory = (te) => {
9631
9644
  const J = createRegionManagerProxy(te, regionManager, broker$1);
9632
9645
  return {
9633
9646
  pluginInfo: te,
@@ -10998,7 +11011,10 @@ function setCustomFilterValueReducer(te, J) {
10998
11011
  const setMultipleOptionsFilterValue = (te, J) => {
10999
11012
  var ne;
11000
11013
  const { optionId: X, enabled: re } = J;
11001
- return (ne = te.enabledValues) != null && ne.some((oe) => oe === X) && re ? te : {
11014
+ return (ne = te.enabledValues) != null && ne.some((oe) => oe === X) && re ? te : X == null ? {
11015
+ ...te,
11016
+ enabledValues: []
11017
+ } : {
11002
11018
  ...te,
11003
11019
  enabledValues: re ? [...te.enabledValues || [], X] : te.enabledValues.filter((oe) => oe !== X)
11004
11020
  };
@@ -15527,17 +15543,17 @@ const styles$e = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(18
15527
15543
  [ActivityHistoryFilterType.Switch]: (te, J, X, re, ne) => ke$1`
15528
15544
  <dss-input-switch size="sm" .checked=${re} @onChangeValue=${X} >
15529
15545
  <input slot="input" id="switch-${te}" aria-label=${J} type="checkbox" ?disabled=${!ne}>
15530
- <label slot="label" for="switch-${te}">${J}</label>
15546
+ <label slot="label" for="switch-${te}">${J || te}</label>
15531
15547
  </dss-input-switch>`,
15532
15548
  [ActivityHistoryFilterType.Checkbox]: (te, J, X, re, ne) => ke$1`
15533
15549
  <dss-checkbox variant="default" .checked=${re} @onChange=${(oe) => X(oe)}>
15534
15550
  <input slot="input" id="checkboxStory-${te}" type="checkbox" ?disabled=${!ne}>
15535
- <label slot="label" for="checkboxStory-${te}">${J}</label>
15551
+ <label slot="label" for="checkboxStory-${te}">${J || te}</label>
15536
15552
  </dss-checkbox>`,
15537
15553
  [ActivityHistoryFilterType.Dropdown]: (te, J, X, re, ne) => ke$1`
15538
15554
  <dss-input-dropdown type="default" .checked=${re} @onChange=${(oe) => X(oe)}>
15539
15555
  <input slot="input" id="dropdownStory-${te}" type="text" ?disabled=${!ne}>
15540
- <label slot="label" for="dropdownStory-${te}">${J}</label>
15556
+ <label slot="label" for="dropdownStory-${te}">${J || te}</label>
15541
15557
  </dss-input-dropdown>`
15542
15558
  }, getFilterTemplate = (te, J, X, re) => {
15543
15559
  var pe, fe;
@@ -15580,7 +15596,7 @@ const styles$e = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(18
15580
15596
  `;
15581
15597
  }, customFilterTemplate = (te, J, X) => {
15582
15598
  if (te.type === ActivityHistoryFilterType.Dropdown) {
15583
- const re = te == null ? void 0 : te.options.map((ne) => ({ value: ne.id, label: ne.title }));
15599
+ const re = te == null ? void 0 : te.options.map((ne) => ({ value: ne.id, label: ne.title || ne.id }));
15584
15600
  return ke$1`
15585
15601
  <dss-input-dropdown
15586
15602
  inputsize="md"
@@ -16033,7 +16049,6 @@ const formatShowFilterTitle = (te) => {
16033
16049
  const we = normalizeDeletedFilterBooleanValue(ve);
16034
16050
  be = { title: we, id: we };
16035
16051
  }
16036
- renderChip(ue, me, normalizeDeletedFilterBooleanValue(ve), te);
16037
16052
  const ye = renderChip(ue, me, be, te);
16038
16053
  J < MAX_VISIBLE_CHIPS ? (fe || (X.push(renderFilterTitle(he)), fe = !0), X.push(ye), J++) : (ge || (re.push(renderFilterTitle(he)), ge = !0), re.push(ye), ne.push(ye));
16039
16054
  }
@@ -16191,7 +16206,7 @@ const bootstrapActivityHistoryItem = (te) => {
16191
16206
  <dss-icon-button size="md" variant="primary" icon="more_vert" label=${translate("actions.menuButton")}></dss-icon-button>
16192
16207
  <dss-action-menu position="bottom-start">
16193
16208
  <dss-action-menu-item lefticon="view_timeline" label=${translate("actions.cronogram")} @click=${te._raiseEcapCronogramEvent}></dss-action-menu-item>
16194
- <dss-action-menu-item lefticon="file_download" label=${translate("actions.exportPdf")} @click=${() => te.api.broker.send(new ExportPdf())}></dss-action-menu-item>
16209
+ <!-- <dss-action-menu-item lefticon="file_download" label=${translate("actions.exportPdf")} @click=${() => te.api.broker.send(new ExportPdf())}></dss-action-menu-item> -->
16195
16210
  <dss-action-menu-item lefticon="info" label=${translate("actions.entryLegend")}></dss-action-menu-item>
16196
16211
  </dss-action-menu>
16197
16212
  </div>
@@ -16539,17 +16554,14 @@ let GetVisitIdHandler = class {
16539
16554
  }
16540
16555
  async handle(te) {
16541
16556
  try {
16542
- const J = await this.getVisitId();
16543
- return console.log("Visit ID obtenido: ", J), J;
16557
+ return await this.getVisitId();
16544
16558
  } catch (J) {
16545
16559
  this.api.notificationService.error(J.message);
16546
16560
  return;
16547
16561
  }
16548
16562
  }
16549
16563
  getVisitId() {
16550
- const te = new URLSearchParams(window.location.search);
16551
- console.log("Paràmetres de la URL: ", window.location.search);
16552
- const J = te.get("visit_id");
16564
+ const J = new URLSearchParams(window.location.search).get("visit_id");
16553
16565
  return Promise.resolve(J || void 0);
16554
16566
  }
16555
16567
  };
@@ -16607,7 +16619,7 @@ const useFinalizeVisit = (te) => {
16607
16619
  shellApi.ecapEventManager.publish(te, "", {});
16608
16620
  };
16609
16621
  var shellViews = /* @__PURE__ */ ((te) => (te.shell = "primaria-shell", te.error = "primaria-error-view", te))(shellViews || {});
16610
- const styles$7 = ":host{width:100%;overflow:hidden}#main-switcher{display:inherit}.container{width:100%;height:100%;display:flex;flex-direction:column;background:#fff}.main-container{min-height:1px;height:100%;display:flex}.main-container .sidebar{padding-inline:16px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;background:var(--color-primary-700);width:40px;height:100%;color:#fff}.main-container .sidebar .quick-actions-content{padding-top:24px;padding-bottom:22px;border-radius:8px}.main-container .sidebar .quick-actions-content .create-button-icon-badge{position:relative}.main-container .sidebar .quick-actions-content .create-button-icon-badge dss-notification-badge{position:absolute;top:-7px;right:-6px;z-index:1}.main-container .sidebar .quick-actions-content .create-button-icon-badge dss-icon{position:relative}.main-container .sidebar .icon{margin-left:8px}.main-container .sidebar #menu-region-container{padding-top:24px;min-height:1px;height:100%;width:100%;display:flex;flex-direction:column;gap:4px}.main-container .sidebar #menu-region-container{overflow-y:auto;margin-right:-14px;padding-right:14px;scrollbar-color:var(--color-primary-200) var(--color-primary-700);scrollbar-width:thin}.main-container .sidebar #menu-region-container::-webkit-scrollbar{width:6px}.main-container .sidebar #menu-region-container::-webkit-scrollbar-track{background:var(--color-primary-700)}.main-container .sidebar #menu-region-container::-webkit-scrollbar-thumb{background-color:var(--color-primary-400);border-radius:4px}.main-container .sidebar .bottom-content{display:flex;flex-direction:column;gap:24px;width:100%}.main-container .sidebar .bottom-content .bottom-content-first{display:flex;flex-direction:column;gap:4px}.main-container .sidebar[expanded]{width:252px;align-items:flex-start}.main-container .sidebar .create-button-closed{cursor:pointer;background-color:#f0f0f0;color:var(--color-primary-700);border-radius:8px;width:40px;height:40px;display:flex;flex-direction:row;align-items:center;justify-content:center;transition:background-color .3s ease}.main-container .sidebar .create-button-closed:hover{background-color:var(--color-primary-900);color:#fff}.main-container .sidebar .create-button-opened{cursor:pointer;background-color:#f0f0f0;color:var(--color-primary-700);border-radius:8px;gap:8px;font-weight:600;width:220px;height:40px;display:flex;flex-direction:row;align-items:center;transition:background-color .3s ease}.main-container .sidebar .create-button-opened:hover{background-color:var(--color-primary-900);color:#fff}.main-container .content{display:flex;height:100%;width:100%}.main-container #main-region-container{min-height:1px;height:100%;flex:1}.main-container #navigation-menu-lower-region-container{display:flex;flex-direction:column;gap:4px}.main-container #floating-region-container{position:fixed;z-index:300}.footer{display:flex;height:48px;padding:12px 24px}.footer .footer-logo{align-self:center;display:flex;gap:16px}.divider-opened{width:220px}.divider-closed{width:40px}.toggle-button{margin-bottom:24px}";
16622
+ const styles$7 = ":host{width:100%;overflow:hidden}#main-switcher{display:inherit}.container{width:100%;height:100%;display:flex;flex-direction:column;background:#fff}.main-container{min-height:1px;height:100%;display:flex}.main-container .sidebar{padding-inline:16px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;background:var(--color-primary-700);width:40px;height:100%;color:#fff}.main-container .sidebar .quick-actions-content{padding-top:24px;padding-bottom:22px;border-radius:8px}.main-container .sidebar .quick-actions-content .create-button-icon-badge{position:relative}.main-container .sidebar .quick-actions-content .create-button-icon-badge dss-notification-badge{position:absolute;top:-7px;right:-6px;z-index:1}.main-container .sidebar .quick-actions-content .create-button-icon-badge dss-icon{position:relative}.main-container .sidebar .icon{margin-left:8px}.main-container .sidebar #menu-region-container{padding-top:24px;min-height:1px;height:100%;width:100%;display:flex;flex-direction:column;gap:4px;overflow-y:auto;margin-right:-14px;padding-right:14px;scrollbar-color:var(--color-primary-200) var(--color-primary-700);scrollbar-width:thin}.main-container .sidebar #menu-region-container::-webkit-scrollbar{width:6px}.main-container .sidebar #menu-region-container::-webkit-scrollbar-track{background:var(--color-primary-700)}.main-container .sidebar #menu-region-container::-webkit-scrollbar-thumb{background-color:var(--color-primary-400);border-radius:4px}.main-container .sidebar .bottom-content{display:flex;flex-direction:column;gap:24px;width:100%}.main-container .sidebar .bottom-content .bottom-content-first{display:flex;flex-direction:column;gap:4px}.main-container .sidebar[expanded]{width:252px;align-items:flex-start}.main-container .sidebar .create-button-closed{cursor:pointer;background-color:#f0f0f0;color:var(--color-primary-700);border-radius:8px;width:40px;height:40px;display:flex;flex-direction:row;align-items:center;justify-content:center;transition:background-color .3s ease}.main-container .sidebar .create-button-closed:hover{background-color:var(--color-primary-900);color:#fff}.main-container .sidebar .create-button-opened{cursor:pointer;background-color:#f0f0f0;color:var(--color-primary-700);border-radius:8px;gap:8px;font-weight:600;width:220px;height:40px;display:flex;flex-direction:row;align-items:center;transition:background-color .3s ease}.main-container .sidebar .create-button-opened:hover{background-color:var(--color-primary-900);color:#fff}.main-container .content{display:flex;height:100%;width:100%}.main-container #main-region-container{min-height:1px;height:100%;flex:1}.main-container #navigation-menu-lower-region-container{display:flex;flex-direction:column;gap:4px}.main-container #floating-region-container{position:fixed;z-index:300}.footer{display:flex;height:48px;padding:12px 24px}.footer .footer-logo{align-self:center;display:flex;gap:16px}.divider-opened{width:220px}.divider-closed{width:40px}.toggle-button{margin-bottom:24px}";
16611
16623
  let t$g = "";
16612
16624
  function f$m() {
16613
16625
  return t$g;
@@ -44939,7 +44951,7 @@ const upperNavMenuItems = [
44939
44951
  }, useUI = () => {
44940
44952
  p$h.registerAdapterFactory(
44941
44953
  "primaria-content-switcher",
44942
- d$t
44954
+ d$u
44943
44955
  ), useSharedUI(), useComponents(), useInternalViews();
44944
44956
  }, initializeShell = (te) => {
44945
44957
  useLocalization(shellApi), useUI(), useFeatures(shellApi);