@uxland/primary-shell 7.35.1 → 7.35.3

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.
@@ -1,4 +1,4 @@
1
- import { t as d, k as l, P as p, h as g, r as m, i as v, s as h, a as f, b as u } from "./index-umjRq-RK.js";
1
+ import { t as d, k as l, P as p, h as g, r as m, i as v, s as h, a as f, b as u } from "./index-DWSBg7Ti.js";
2
2
  const x = ".container{background-color:#fff;display:flex;flex-direction:column;min-width:500px;width:90vw;height:90vh;border-radius:var(--dss-radius-sm);overflow:hidden}.content{display:grid;height:100%;min-height:1px;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:16px;padding:16px;overflow-y:auto;max-height:calc(90vh - 120px)}.content>*{border:1px solid var(--color-neutral-200);border-radius:8px;padding:16px;background-color:var(--color-neutral-50);min-height:200px}.footer{display:flex;flex-direction:row;align-items:center;background:#fff;justify-content:end;gap:12px;height:56px;border-top:1px solid var(--color-neutral-100);padding:var(--dss-spacing-sm)}", b = (r) => l`
3
3
  <div class="container">
4
4
  <!-- <div class="header">
@@ -44,4 +44,4 @@ i = c([
44
44
  export {
45
45
  i as ImportDataManagerModal
46
46
  };
47
- //# sourceMappingURL=component-Bz7NzBsL.js.map
47
+ //# sourceMappingURL=component-DiipSu_7.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"component-Bz7NzBsL.js","sources":["../src/api/import-data-manager/component/template.ts","../src/api/import-data-manager/component/component.ts"],"sourcesContent":["import { html } from \"lit\";\nimport { translate } from \"../../../locales\";\nimport { ImportDataManagerModal } from \"./component\";\n\nexport const template = (props: ImportDataManagerModal) => {\n return html`\n <div class=\"container\">\n <!-- <div class=\"header\">\n <div class=\"title\">\n <div>${translate(\"importDataManager.title\")}</div>\n </div> \n </div> -->\n <div class=\"content\" id=\"import-data-region\"></div>\n <div class=\"footer\">\n <dss-button label=\"${translate(\"importDataManager.actions.cancel\")}\" @click=\"${() => {\n props.cancel();\n }}\" size=\"md\" variant=\"secondary\"></dss-button>\n <dss-button label=\"${translate(\"importDataManager.actions.import\")}\" @click=\"${() => {\n props._accept();\n }}\" size=\"md\" variant=\"primary\"></dss-button>\n </div>\n </div>\n `;\n};\n","import { IRegion, region } from \"@uxland/regions\";\nimport { LitElement, css, html, unsafeCSS } from \"lit\";\nimport { customElement } from \"lit/decorators.js\";\nimport styles from \"./styles.css?inline\";\nimport { template } from \"./template\";\nimport { ConfirmationContentProps } from \"../../interaction-service\";\nimport { PrimariaRegionHost, shellApi } from \"../../api\";\n\n@customElement(\"import-data-manager-modal\")\nexport class ImportDataManagerModal\n extends PrimariaRegionHost(LitElement)\n implements ConfirmationContentProps<undefined, undefined>\n{\n data: undefined;\n setResult: (result: undefined) => void;\n setIsValid: (isValid: boolean) => void;\n confirm: () => void;\n cancel: () => void;\n\n @region({ targetId: \"import-data-region\", name: shellApi.regionManager.regions.shell.importData })\n importDataRegion: IRegion | undefined;\n\n render() {\n return html`${template(this)}`;\n }\n\n static styles = css`\n ${unsafeCSS(styles)}\n `;\n\n _accept = () => {\n this.confirm();\n };\n}\n"],"names":["template","props","html","translate","ImportDataManagerModal","PrimariaRegionHost","LitElement","css","unsafeCSS","styles","__decorateClass","region","shellApi","customElement"],"mappings":";gqBAIaA,IAAW,CAACC,MAChBC;AAAAA;AAAAA;AAAAA;AAAAA,iBAIQC,EAAU,yBAAyB,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,yBAK5BA,EAAU,kCAAkC,CAAC,aAAa,MAAM;AACjF,EAAAF,EAAM,OAAA;AACR,CAAC;AAAA,2BACoBE,EAAU,kCAAkC,CAAC,aAAa,MAAM;AACnF,EAAAF,EAAM,QAAA;AACR,CAAC;AAAA;AAAA;AAAA;;;;;;ACVA,IAAMG,IAAN,cACGC,EAAmBC,CAAU,EAEvC;AAAA,EAHO,cAAA;AAAA,UAAA,GAAA,SAAA,GAqBL,KAAA,UAAU,MAAM;AACd,WAAK,QAAA;AAAA,IACP;AAAA,EAAA;AAAA,EAVA,SAAS;AACP,WAAOJ,IAAOF,EAAS,IAAI,CAAC;AAAA,EAC9B;AASF;AAxBaI,EAiBJ,SAASG;AAAAA,MACZC,EAAUC,CAAM,CAAC;AAAA;AAPrBC,EAAA;AAAA,EADCC,EAAO,EAAE,UAAU,sBAAsB,MAAMC,EAAS,cAAc,QAAQ,MAAM,WAAA,CAAY;AAAA,GAVtFR,EAWX,WAAA,oBAAA,CAAA;AAXWA,IAANM,EAAA;AAAA,EADNG,EAAc,2BAA2B;AAAA,GAC7BT,CAAA;"}
1
+ {"version":3,"file":"component-DiipSu_7.js","sources":["../src/api/import-data-manager/component/template.ts","../src/api/import-data-manager/component/component.ts"],"sourcesContent":["import { html } from \"lit\";\nimport { translate } from \"../../../locales\";\nimport { ImportDataManagerModal } from \"./component\";\n\nexport const template = (props: ImportDataManagerModal) => {\n return html`\n <div class=\"container\">\n <!-- <div class=\"header\">\n <div class=\"title\">\n <div>${translate(\"importDataManager.title\")}</div>\n </div> \n </div> -->\n <div class=\"content\" id=\"import-data-region\"></div>\n <div class=\"footer\">\n <dss-button label=\"${translate(\"importDataManager.actions.cancel\")}\" @click=\"${() => {\n props.cancel();\n }}\" size=\"md\" variant=\"secondary\"></dss-button>\n <dss-button label=\"${translate(\"importDataManager.actions.import\")}\" @click=\"${() => {\n props._accept();\n }}\" size=\"md\" variant=\"primary\"></dss-button>\n </div>\n </div>\n `;\n};\n","import { IRegion, region } from \"@uxland/regions\";\nimport { LitElement, css, html, unsafeCSS } from \"lit\";\nimport { customElement } from \"lit/decorators.js\";\nimport styles from \"./styles.css?inline\";\nimport { template } from \"./template\";\nimport { ConfirmationContentProps } from \"../../interaction-service\";\nimport { PrimariaRegionHost, shellApi } from \"../../api\";\n\n@customElement(\"import-data-manager-modal\")\nexport class ImportDataManagerModal\n extends PrimariaRegionHost(LitElement)\n implements ConfirmationContentProps<undefined, undefined>\n{\n data: undefined;\n setResult: (result: undefined) => void;\n setIsValid: (isValid: boolean) => void;\n confirm: () => void;\n cancel: () => void;\n\n @region({ targetId: \"import-data-region\", name: shellApi.regionManager.regions.shell.importData })\n importDataRegion: IRegion | undefined;\n\n render() {\n return html`${template(this)}`;\n }\n\n static styles = css`\n ${unsafeCSS(styles)}\n `;\n\n _accept = () => {\n this.confirm();\n };\n}\n"],"names":["template","props","html","translate","ImportDataManagerModal","PrimariaRegionHost","LitElement","css","unsafeCSS","styles","__decorateClass","region","shellApi","customElement"],"mappings":";gqBAIaA,IAAW,CAACC,MAChBC;AAAAA;AAAAA;AAAAA;AAAAA,iBAIQC,EAAU,yBAAyB,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,yBAK5BA,EAAU,kCAAkC,CAAC,aAAa,MAAM;AACjF,EAAAF,EAAM,OAAA;AACR,CAAC;AAAA,2BACoBE,EAAU,kCAAkC,CAAC,aAAa,MAAM;AACnF,EAAAF,EAAM,QAAA;AACR,CAAC;AAAA;AAAA;AAAA;;;;;;ACVA,IAAMG,IAAN,cACGC,EAAmBC,CAAU,EAEvC;AAAA,EAHO,cAAA;AAAA,UAAA,GAAA,SAAA,GAqBL,KAAA,UAAU,MAAM;AACd,WAAK,QAAA;AAAA,IACP;AAAA,EAAA;AAAA,EAVA,SAAS;AACP,WAAOJ,IAAOF,EAAS,IAAI,CAAC;AAAA,EAC9B;AASF;AAxBaI,EAiBJ,SAASG;AAAAA,MACZC,EAAUC,CAAM,CAAC;AAAA;AAPrBC,EAAA;AAAA,EADCC,EAAO,EAAE,UAAU,sBAAsB,MAAMC,EAAS,cAAc,QAAQ,MAAM,WAAA,CAAY;AAAA,GAVtFR,EAWX,WAAA,oBAAA,CAAA;AAXWA,IAANM,EAAA;AAAA,EADNG,EAAc,2BAA2B;AAAA,GAC7BT,CAAA;"}
@@ -1595,16 +1595,16 @@ let y$f = class {
1595
1595
  this.adapterRegistry.set(e$V, W);
1596
1596
  }
1597
1597
  };
1598
- const p$h = new y$f(), o$13 = "__uxl_regions__", s$L = (J) => (W, X) => {
1598
+ const p$g = new y$f(), o$13 = "__uxl_regions__", s$L = (J) => (W, X) => {
1599
1599
  W.constructor[o$13] = { ...W.constructor[o$13], [X]: J };
1600
- }, p$g = (J, W, X) => {
1600
+ }, p$f = (J, W, X) => {
1601
1601
  const te = X.getAdapterFactory(W);
1602
1602
  return a$v(typeof te == "function", "No region adapter factory found for the host"), te(J, W);
1603
1603
  }, h$u = async (J, W, X, te) => {
1604
1604
  await W._updatePromise;
1605
1605
  const re = W.shadowRoot.querySelector(`#${J.targetId}`);
1606
1606
  if (re) {
1607
- const oe = J.adapterFactory ? J.adapterFactory(J, re) : p$g(J, re, te);
1607
+ const oe = J.adapterFactory ? J.adapterFactory(J, re) : p$f(J, re, te);
1608
1608
  a$v(oe, "No region adapter found for the host");
1609
1609
  const ne = J.scoped ? X.createRegionManager() : X, de = new y$g(J.name, ne, re, oe, J);
1610
1610
  return ne.add(J.name, de), de;
@@ -1908,8 +1908,8 @@ u$y[d$t] = !0, u$y.elementProperties = /* @__PURE__ */ new Map(), u$y.elementSty
1908
1908
  * SPDX-License-Identifier: BSD-3-Clause
1909
1909
  */
1910
1910
  var t$x;
1911
- const i$T = window, s$I = i$T.trustedTypes, e$S = s$I ? s$I.createPolicy("lit-html", { createHTML: (J) => J }) : void 0, o$10 = "$lit$", n$F = `lit$${(Math.random() + "").slice(9)}$`, l$C = "?" + n$F, h$s = `<${l$C}>`, r$P = document, u$x = () => r$P.createComment(""), d$s = (J) => J === null || typeof J != "object" && typeof J != "function", c$s = Array.isArray, v$n = (J) => c$s(J) || typeof J?.[Symbol.iterator] == "function", a$t = `[
1912
- \f\r]`, f$u = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _$h = /-->/g, m$g = />/g, p$f = RegExp(`>|${a$t}(?:([^\\s"'>=/]+)(${a$t}*=${a$t}*(?:[^
1911
+ const i$T = window, s$I = i$T.trustedTypes, e$S = s$I ? s$I.createPolicy("lit-html", { createHTML: (J) => J }) : void 0, o$10 = "$lit$", n$F = `lit$${(Math.random() + "").slice(9)}$`, l$C = "?" + n$F, h$s = `<${l$C}>`, r$P = document, u$x = () => r$P.createComment(""), d$s = (J) => J === null || typeof J != "object" && typeof J != "function", c$s = Array.isArray, v$o = (J) => c$s(J) || typeof J?.[Symbol.iterator] == "function", a$t = `[
1912
+ \f\r]`, f$u = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _$h = /-->/g, m$g = />/g, p$e = RegExp(`>|${a$t}(?:([^\\s"'>=/]+)(${a$t}*=${a$t}*(?:[^
1913
1913
  \f\r"'\`<>=]|("|')|))|$)`, "g"), g$r = /'/g, $$h = /"/g, y$e = /^(?:script|style|textarea|title)$/i, T$a = Symbol.for("lit-noChange"), A$2 = Symbol.for("lit-nothing"), E$a = /* @__PURE__ */ new WeakMap(), C$a = r$P.createTreeWalker(r$P, 129, null, !1);
1914
1914
  function P$4(J, W) {
1915
1915
  if (!Array.isArray(J) || !J.hasOwnProperty("raw")) throw Error("invalid template strings array");
@@ -1921,8 +1921,8 @@ const V$4 = (J, W) => {
1921
1921
  for (let de = 0; de < X; de++) {
1922
1922
  const ce = J[de];
1923
1923
  let ue, he, pe = -1, fe = 0;
1924
- for (; fe < ce.length && (ne.lastIndex = fe, he = ne.exec(ce), he !== null); ) fe = ne.lastIndex, ne === f$u ? he[1] === "!--" ? ne = _$h : he[1] !== void 0 ? ne = m$g : he[2] !== void 0 ? (y$e.test(he[2]) && (re = RegExp("</" + he[2], "g")), ne = p$f) : he[3] !== void 0 && (ne = p$f) : ne === p$f ? he[0] === ">" ? (ne = re ?? f$u, pe = -1) : he[1] === void 0 ? pe = -2 : (pe = ne.lastIndex - he[2].length, ue = he[1], ne = he[3] === void 0 ? p$f : he[3] === '"' ? $$h : g$r) : ne === $$h || ne === g$r ? ne = p$f : ne === _$h || ne === m$g ? ne = f$u : (ne = p$f, re = void 0);
1925
- const be = ne === p$f && J[de + 1].startsWith("/>") ? " " : "";
1924
+ for (; fe < ce.length && (ne.lastIndex = fe, he = ne.exec(ce), he !== null); ) fe = ne.lastIndex, ne === f$u ? he[1] === "!--" ? ne = _$h : he[1] !== void 0 ? ne = m$g : he[2] !== void 0 ? (y$e.test(he[2]) && (re = RegExp("</" + he[2], "g")), ne = p$e) : he[3] !== void 0 && (ne = p$e) : ne === p$e ? he[0] === ">" ? (ne = re ?? f$u, pe = -1) : he[1] === void 0 ? pe = -2 : (pe = ne.lastIndex - he[2].length, ue = he[1], ne = he[3] === void 0 ? p$e : he[3] === '"' ? $$h : g$r) : ne === $$h || ne === g$r ? ne = p$e : ne === _$h || ne === m$g ? ne = f$u : (ne = p$e, re = void 0);
1925
+ const be = ne === p$e && J[de + 1].startsWith("/>") ? " " : "";
1926
1926
  oe += ne === f$u ? ce + h$s : pe >= 0 ? (te.push(ue), ce.slice(0, pe) + o$10 + ce.slice(pe) + n$F + be) : ce + n$F + (pe === -2 ? (te.push(void 0), de) : be);
1927
1927
  }
1928
1928
  return [P$4(J, oe + (J[X] || "<?>") + (W === 2 ? "</svg>" : "")), te];
@@ -2027,7 +2027,7 @@ let M$7 = class {
2027
2027
  return this._$AB;
2028
2028
  }
2029
2029
  _$AI(W, X = this) {
2030
- W = S$f(this, W, X), d$s(W) ? W === A$2 || W == null || W === "" ? (this._$AH !== A$2 && this._$AR(), this._$AH = A$2) : W !== this._$AH && W !== T$a && this._(W) : W._$litType$ !== void 0 ? this.g(W) : W.nodeType !== void 0 ? this.$(W) : v$n(W) ? this.T(W) : this._(W);
2030
+ W = S$f(this, W, X), d$s(W) ? W === A$2 || W == null || W === "" ? (this._$AH !== A$2 && this._$AR(), this._$AH = A$2) : W !== this._$AH && W !== T$a && this._(W) : W._$litType$ !== void 0 ? this.g(W) : W.nodeType !== void 0 ? this.$(W) : v$o(W) ? this.T(W) : this._(W);
2031
2031
  }
2032
2032
  k(W) {
2033
2033
  return this._$AA.parentNode.insertBefore(W, this._$AB);
@@ -2288,7 +2288,7 @@ const u$v = (J) => (W) => pipe(prop(W.key), isNil)(J), q$4 = (J) => (W) => !u$v(
2288
2288
  }
2289
2289
  return te;
2290
2290
  });
2291
- p$h.registerDefaultAdapterFactory(f$x);
2291
+ p$g.registerDefaultAdapterFactory(f$x);
2292
2292
  /**
2293
2293
  * @license
2294
2294
  * Copyright 2017 Google LLC
@@ -2376,7 +2376,7 @@ const r$O = (J) => new n$B(typeof J == "string" ? J : J + "", void 0, s$F), i$R
2376
2376
  * Copyright 2017 Google LLC
2377
2377
  * SPDX-License-Identifier: BSD-3-Clause
2378
2378
  */
2379
- const { is: i$Q, defineProperty: e$P, getOwnPropertyDescriptor: r$N, getOwnPropertyNames: h$r, getOwnPropertySymbols: o$Z, getPrototypeOf: n$A } = Object, a$r = globalThis, c$q = a$r.trustedTypes, l$x = c$q ? c$q.emptyScript : "", p$e = a$r.reactiveElementPolyfillSupport, d$q = (J, W) => J, u$u = { toAttribute(J, W) {
2379
+ const { is: i$Q, defineProperty: e$P, getOwnPropertyDescriptor: r$N, getOwnPropertyNames: h$r, getOwnPropertySymbols: o$Z, getPrototypeOf: n$A } = Object, a$r = globalThis, c$q = a$r.trustedTypes, l$x = c$q ? c$q.emptyScript : "", p$d = a$r.reactiveElementPolyfillSupport, d$q = (J, W) => J, u$u = { toAttribute(J, W) {
2380
2380
  switch (W) {
2381
2381
  case Boolean:
2382
2382
  J = J ? l$x : null;
@@ -2583,13 +2583,13 @@ let b$q = class extends HTMLElement {
2583
2583
  firstUpdated(W) {
2584
2584
  }
2585
2585
  };
2586
- b$q.elementStyles = [], b$q.shadowRootOptions = { mode: "open" }, b$q[d$q("elementProperties")] = /* @__PURE__ */ new Map(), b$q[d$q("finalized")] = /* @__PURE__ */ new Map(), p$e?.({ ReactiveElement: b$q }), (a$r.reactiveElementVersions ??= []).push("2.0.4");
2586
+ b$q.elementStyles = [], b$q.shadowRootOptions = { mode: "open" }, b$q[d$q("elementProperties")] = /* @__PURE__ */ new Map(), b$q[d$q("finalized")] = /* @__PURE__ */ new Map(), p$d?.({ ReactiveElement: b$q }), (a$r.reactiveElementVersions ??= []).push("2.0.4");
2587
2587
  /**
2588
2588
  * @license
2589
2589
  * Copyright 2017 Google LLC
2590
2590
  * SPDX-License-Identifier: BSD-3-Clause
2591
2591
  */
2592
- const n$z = globalThis, c$p = n$z.trustedTypes, h$q = c$p ? c$p.createPolicy("lit-html", { createHTML: (J) => J }) : void 0, f$s = "$lit$", v$m = `lit$${Math.random().toFixed(9).slice(2)}$`, m$f = "?" + v$m, _$g = `<${m$f}>`, w$5 = document, lt$1 = () => w$5.createComment(""), st = (J) => J === null || typeof J != "object" && typeof J != "function", g$q = Array.isArray, $$g = (J) => g$q(J) || typeof J?.[Symbol.iterator] == "function", x$e = `[
2592
+ const n$z = globalThis, c$p = n$z.trustedTypes, h$q = c$p ? c$p.createPolicy("lit-html", { createHTML: (J) => J }) : void 0, f$s = "$lit$", v$n = `lit$${Math.random().toFixed(9).slice(2)}$`, m$f = "?" + v$n, _$g = `<${m$f}>`, w$5 = document, lt$1 = () => w$5.createComment(""), st = (J) => J === null || typeof J != "object" && typeof J != "function", g$q = Array.isArray, $$g = (J) => g$q(J) || typeof J?.[Symbol.iterator] == "function", x$e = `[
2593
2593
  \f\r]`, T$7 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, E$9 = /-->/g, k$9 = />/g, O$3 = RegExp(`>|${x$e}(?:([^\\s"'>=/]+)(${x$e}*=${x$e}*(?:[^
2594
2594
  \f\r"'\`<>=]|("|')|))|$)`, "g"), S$d = /'/g, j$2 = /"/g, M$6 = /^(?:script|style|textarea|title)$/i, P$3 = (J) => (W, ...X) => ({ _$litType$: J, strings: W, values: X }), ke$1 = P$3(1), R$3 = Symbol.for("lit-noChange"), D$5 = Symbol.for("lit-nothing"), V$3 = /* @__PURE__ */ new WeakMap(), I$2 = w$5.createTreeWalker(w$5, 129);
2595
2595
  function N$1(J, W) {
@@ -2604,7 +2604,7 @@ const U = (J, W) => {
2604
2604
  let ue, he, pe = -1, fe = 0;
2605
2605
  for (; fe < ce.length && (ne.lastIndex = fe, he = ne.exec(ce), he !== null); ) fe = ne.lastIndex, ne === T$7 ? he[1] === "!--" ? ne = E$9 : he[1] !== void 0 ? ne = k$9 : he[2] !== void 0 ? (M$6.test(he[2]) && (re = RegExp("</" + he[2], "g")), ne = O$3) : he[3] !== void 0 && (ne = O$3) : ne === O$3 ? he[0] === ">" ? (ne = re ?? T$7, pe = -1) : he[1] === void 0 ? pe = -2 : (pe = ne.lastIndex - he[2].length, ue = he[1], ne = he[3] === void 0 ? O$3 : he[3] === '"' ? j$2 : S$d) : ne === j$2 || ne === S$d ? ne = O$3 : ne === E$9 || ne === k$9 ? ne = T$7 : (ne = O$3, re = void 0);
2606
2606
  const be = ne === O$3 && J[de + 1].startsWith("/>") ? " " : "";
2607
- oe += ne === T$7 ? ce + _$g : pe >= 0 ? (te.push(ue), ce.slice(0, pe) + f$s + ce.slice(pe) + v$m + be) : ce + v$m + (pe === -2 ? de : be);
2607
+ oe += ne === T$7 ? ce + _$g : pe >= 0 ? (te.push(ue), ce.slice(0, pe) + f$s + ce.slice(pe) + v$n + be) : ce + v$n + (pe === -2 ? de : be);
2608
2608
  }
2609
2609
  return [N$1(J, oe + (J[X] || "<?>") + (W === 2 ? "</svg>" : W === 3 ? "</math>" : "")), te];
2610
2610
  };
@@ -2621,11 +2621,11 @@ let B$3 = class Ei {
2621
2621
  for (; (re = I$2.nextNode()) !== null && ce.length < de; ) {
2622
2622
  if (re.nodeType === 1) {
2623
2623
  if (re.hasAttributes()) for (const pe of re.getAttributeNames()) if (pe.endsWith(f$s)) {
2624
- const fe = he[ne++], be = re.getAttribute(pe).split(v$m), me = /([.?@])?(.*)/.exec(fe);
2624
+ const fe = he[ne++], be = re.getAttribute(pe).split(v$n), me = /([.?@])?(.*)/.exec(fe);
2625
2625
  ce.push({ type: 1, index: oe, name: me[2], strings: be, ctor: me[1] === "." ? Y : me[1] === "?" ? Z : me[1] === "@" ? q$3 : G$1 }), re.removeAttribute(pe);
2626
- } else pe.startsWith(v$m) && (ce.push({ type: 6, index: oe }), re.removeAttribute(pe));
2626
+ } else pe.startsWith(v$n) && (ce.push({ type: 6, index: oe }), re.removeAttribute(pe));
2627
2627
  if (M$6.test(re.tagName)) {
2628
- const pe = re.textContent.split(v$m), fe = pe.length - 1;
2628
+ const pe = re.textContent.split(v$n), fe = pe.length - 1;
2629
2629
  if (fe > 0) {
2630
2630
  re.textContent = c$p ? c$p.emptyScript : "";
2631
2631
  for (let be = 0; be < fe; be++) re.append(pe[be], lt$1()), I$2.nextNode(), ce.push({ type: 2, index: ++oe });
@@ -2635,7 +2635,7 @@ let B$3 = class Ei {
2635
2635
  } else if (re.nodeType === 8) if (re.data === m$f) ce.push({ type: 2, index: oe });
2636
2636
  else {
2637
2637
  let pe = -1;
2638
- for (; (pe = re.data.indexOf(v$m, pe + 1)) !== -1; ) ce.push({ type: 7, index: oe }), pe += v$m.length - 1;
2638
+ for (; (pe = re.data.indexOf(v$n, pe + 1)) !== -1; ) ce.push({ type: 7, index: oe }), pe += v$n.length - 1;
2639
2639
  }
2640
2640
  oe++;
2641
2641
  }
@@ -2925,7 +2925,7 @@ function o$X(J) {
2925
2925
  } });
2926
2926
  };
2927
2927
  }
2928
- const d$p = (J) => j$3(J, p$h);
2928
+ const y$c = (J) => j$3(J, p$g);
2929
2929
  let a$q = class {
2930
2930
  constructor() {
2931
2931
  this.viewsByRegion = {}, this.regions = {};
@@ -3006,28 +3006,22 @@ let a$q = class {
3006
3006
  return super.destroy(), this._viewRegistry.destroy(), this;
3007
3007
  }
3008
3008
  };
3009
- const y$c = (J) => new h$o(J), l$w = (J) => J.importer(), c$o = async (J, W, X) => {
3009
+ const d$p = (J) => new h$o(J), l$w = (J) => J.importer(), c$o = async (J, W, X) => {
3010
3010
  try {
3011
- const te = await l$w(J);
3012
- console.debug("imported plugin: ", J.pluginId);
3013
- const re = W(J);
3014
- return await X(re, te), console.debug("initialized plugin: ", J.pluginId), {
3015
- dispose: () => w$4(re, te),
3011
+ const te = await l$w(J), re = W(J);
3012
+ return await X(re, te), {
3013
+ dispose: () => u$t(re, te),
3016
3014
  importedPlugin: te,
3017
3015
  apiInstance: re
3018
3016
  };
3019
3017
  } catch (te) {
3020
3018
  console.error(`Failed to load plugin ${J.pluginId}:`, te);
3021
3019
  }
3022
- }, u$t = async (J, W) => {
3020
+ }, w$4 = async (J, W) => {
3023
3021
  await W.initialize(J);
3024
- }, w$4 = (J, W) => W.dispose(J), p$d = async (J, W) => {
3022
+ }, u$t = (J, W) => W.dispose(J), v$m = async (J, W) => {
3025
3023
  if (!J?.length) throw new Error("No plugins to bootstrap");
3026
- return (await Promise.allSettled(
3027
- J.map((X) => c$o(X, W, u$t))
3028
- )).map(
3029
- (X) => X.status === "fulfilled" ? X.value : null
3030
- );
3024
+ return (await Promise.allSettled(J.map((X) => c$o(X, W, w$4)))).map((X) => X.status === "fulfilled" ? X.value : null);
3031
3025
  }, primariaShellId = "primaria-shell";
3032
3026
  var __extends$2 = /* @__PURE__ */ (function() {
3033
3027
  var J = function(W, X) {
@@ -6990,12 +6984,20 @@ const l$v = (J) => {
6990
6984
  };
6991
6985
  class PrimariaNotificationService {
6992
6986
  }
6987
+ const CONTAINER_ID = "primaria-toast-container";
6993
6988
  class PrimariaNotificationServiceImpl extends PrimariaNotificationService {
6989
+ getOrCreateContainer() {
6990
+ let W = document.getElementById(CONTAINER_ID);
6991
+ return W || (W = document.createElement("div"), W.id = CONTAINER_ID, W.style.cssText = "position:fixed;bottom:var(--dss-spacing-xxs,8px);left:var(--dss-spacing-xxs,8px);display:flex;flex-direction:column-reverse;gap:var(--dss-spacing-xs,4px);z-index:999;pointer-events:none;", document.body.appendChild(W)), W;
6992
+ }
6993
+ removeContainerIfEmpty(W) {
6994
+ W.childElementCount === 0 && W.remove();
6995
+ }
6994
6996
  notify(W, X, te = 3e3) {
6995
- const re = document.createElement("dss-toast");
6996
- re.setAttribute("isshow", "true"), re.setAttribute("state", X), re.setAttribute("position", "bottom-left"), re.setAttribute("text", W), re.setAttribute("hasicon", "true"), re.setAttribute("duration", te.toString()), document.body.appendChild(re), setTimeout(() => {
6997
- re.setAttribute("isshow", "false"), setTimeout(() => {
6998
- re.remove();
6997
+ const re = this.getOrCreateContainer(), oe = document.createElement("dss-toast");
6998
+ oe.setAttribute("isshow", "true"), oe.setAttribute("state", X), oe.setAttribute("position", "bottom-left"), oe.setAttribute("text", W), oe.setAttribute("hasicon", "true"), oe.setAttribute("duration", te.toString()), oe.style.position = "relative", oe.style.bottom = "auto", oe.style.left = "auto", oe.style.pointerEvents = "auto", re.appendChild(oe), setTimeout(() => {
6999
+ oe.setAttribute("isshow", "false"), setTimeout(() => {
7000
+ oe.remove(), this.removeContainerIfEmpty(re);
6999
7001
  }, 300);
7000
7002
  }, te);
7001
7003
  }
@@ -9664,7 +9666,7 @@ class ImportDataManagerImpl {
9664
9666
  async import(W) {
9665
9667
  this.currentImporterId = W, this.selectedItems = {}, this.pluginTexts = {};
9666
9668
  try {
9667
- const { ImportDataManagerModal: X } = await import("./component-Bz7NzBsL.js"), { confirmed: te } = await this.interactionService.confirm(
9669
+ const { ImportDataManagerModal: X } = await import("./component-DiipSu_7.js"), { confirmed: te } = await this.interactionService.confirm(
9668
9670
  void 0,
9669
9671
  { component: X },
9670
9672
  {
@@ -9722,7 +9724,7 @@ class PrimariaContextManagerImpl {
9722
9724
  }
9723
9725
  }
9724
9726
  let contextManager$1;
9725
- const createContextManager = () => contextManager$1 || (contextManager$1 = new PrimariaContextManagerImpl(), contextManager$1), broker$1 = createBroker(), regionManager = y$c("primaria"), PrimariaRegionHost = d$p(regionManager), tokenManager = createTokenManager(), userManager = createUserManager(tokenManager), globalStateManager = createGlobalStateManager(broker$1), contextManager = createContextManager(), pluginBusyManager = new PluginBusyManagerImpl(), quickActionBusyManager = new QuickActionBusyManagerImpl(broker$1), interactionService = new ParimariaInteractionServiceImpl(), notificationService = new PrimariaNotificationServiceImpl(), ecapEventManager = createEcapEventManager(), pdfViewerManager = createPdfViewerManager(broker$1, notificationService), importDataManager = new ImportDataManagerImpl(interactionService), primariaApiFactory = (J) => {
9727
+ const createContextManager = () => contextManager$1 || (contextManager$1 = new PrimariaContextManagerImpl(), contextManager$1), broker$1 = createBroker(), regionManager = d$p("primaria"), PrimariaRegionHost = y$c(regionManager), tokenManager = createTokenManager(), userManager = createUserManager(tokenManager), globalStateManager = createGlobalStateManager(broker$1), contextManager = createContextManager(), pluginBusyManager = new PluginBusyManagerImpl(), quickActionBusyManager = new QuickActionBusyManagerImpl(broker$1), interactionService = new ParimariaInteractionServiceImpl(), notificationService = new PrimariaNotificationServiceImpl(), ecapEventManager = createEcapEventManager(), pdfViewerManager = createPdfViewerManager(broker$1, notificationService), importDataManager = new ImportDataManagerImpl(interactionService), primariaApiFactory = (J) => {
9726
9728
  const W = createRegionManagerProxy(J, regionManager, broker$1);
9727
9729
  return {
9728
9730
  pluginInfo: J,
@@ -12272,7 +12274,7 @@ class SetCommonFilterHandler extends StoreBaseHandler {
12272
12274
  try {
12273
12275
  this.store.dispatch(setCommonFilterValue(W.payload));
12274
12276
  } catch (X) {
12275
- console.log(X.message);
12277
+ console.error(X.message);
12276
12278
  }
12277
12279
  }
12278
12280
  }
@@ -12287,7 +12289,7 @@ class AddCustomFiltersHandler extends StoreBaseHandler {
12287
12289
  try {
12288
12290
  this.store.dispatch(addCustomFilters(W.payload));
12289
12291
  } catch (X) {
12290
- console.log(X.message);
12292
+ console.error(X.message);
12291
12293
  }
12292
12294
  }
12293
12295
  }
@@ -12302,7 +12304,7 @@ class SetCustomFilterAllValuesHandler extends StoreBaseHandler {
12302
12304
  try {
12303
12305
  this.store.dispatch(setCustomFilterAllValues(W.payload));
12304
12306
  } catch (X) {
12305
- console.log(X.message);
12307
+ console.error(X.message);
12306
12308
  }
12307
12309
  }
12308
12310
  }
@@ -12317,7 +12319,7 @@ class SetCustomFilterGroupHandler extends StoreBaseHandler {
12317
12319
  try {
12318
12320
  this.store.dispatch(setCustomFilterGroupValue(W.payload));
12319
12321
  } catch (X) {
12320
- console.log(X.message);
12322
+ console.error(X.message);
12321
12323
  }
12322
12324
  }
12323
12325
  }
@@ -12332,7 +12334,7 @@ class SetCustomFilterValueHandler extends StoreBaseHandler {
12332
12334
  try {
12333
12335
  this.store.dispatch(setCustomFilterValue(W.payload));
12334
12336
  } catch (X) {
12335
- console.log(X.message);
12337
+ console.error(X.message);
12336
12338
  }
12337
12339
  }
12338
12340
  }
@@ -12401,7 +12403,7 @@ class ResetFiltersHandler extends BaseHandler {
12401
12403
  try {
12402
12404
  this.api.broker.publish(this.api.broker.events.activityHistory.filtersCleaned), this.store.dispatch(resetFilters());
12403
12405
  } catch (X) {
12404
- console.log(X.message);
12406
+ console.error(X.message);
12405
12407
  }
12406
12408
  }
12407
12409
  }
@@ -12416,7 +12418,7 @@ class AddUpFiltersHandler extends StoreBaseHandler {
12416
12418
  try {
12417
12419
  this.store.dispatch(addUpFilters(W.payload));
12418
12420
  } catch (X) {
12419
- console.log(X.message);
12421
+ console.error(X.message);
12420
12422
  }
12421
12423
  }
12422
12424
  }
@@ -12436,7 +12438,7 @@ class SetUpFiltersHandler extends StoreBaseHandler {
12436
12438
  try {
12437
12439
  this.store.dispatch(setUpFilterValues(W.payload));
12438
12440
  } catch (X) {
12439
- console.log(X.message);
12441
+ console.error(X.message);
12440
12442
  }
12441
12443
  }
12442
12444
  }
@@ -15801,7 +15803,7 @@ class RemoveHistoryItemHandler extends StoreBaseHandler {
15801
15803
  })
15802
15804
  );
15803
15805
  } catch (X) {
15804
- console.log(X.message);
15806
+ console.error(X.message);
15805
15807
  }
15806
15808
  }
15807
15809
  }
@@ -15820,7 +15822,7 @@ class SearchItemsHandler extends BaseHandler {
15820
15822
  });
15821
15823
  }, 300);
15822
15824
  } catch (X) {
15823
- console.log(X.message);
15825
+ console.error(X.message);
15824
15826
  }
15825
15827
  }
15826
15828
  }
@@ -16062,7 +16064,7 @@ class UpdateHistoryItemHandler extends StoreBaseHandler {
16062
16064
  })
16063
16065
  );
16064
16066
  } catch (X) {
16065
- console.log(X.message);
16067
+ console.error(X.message);
16066
16068
  }
16067
16069
  }
16068
16070
  }
@@ -16240,7 +16242,7 @@ const internalPlugins = [
16240
16242
  }
16241
16243
  ], bootstrapPlugins = async (J, W) => {
16242
16244
  const X = internalPlugins.concat(J || []);
16243
- bootstrappedPlugins = await p$d(X, primariaApiFactory), setTimeout(() => {
16245
+ bootstrappedPlugins = await v$m(X, primariaApiFactory), setTimeout(() => {
16244
16246
  handleStartupPlugin(bootstrappedPlugins, W);
16245
16247
  }, 500);
16246
16248
  }, handleStartupPlugin = (J, W) => {
@@ -51582,7 +51584,7 @@ const commonNavMenuItems = [
51582
51584
  }, useInternalViews = () => {
51583
51585
  registerMainViews(), registerPdfViewerNavButton(), shellApi.userManager.isUserRoleAdministrative() ? registerAdministrativeNavMenuViews() : (registerDoctorNavMenuViews(), registerDoctorQuickActionViews());
51584
51586
  }, useUI = () => {
51585
- p$h.registerAdapterFactory(
51587
+ p$g.registerAdapterFactory(
51586
51588
  "primaria-content-switcher",
51587
51589
  d$v
51588
51590
  ), useSharedUI(), useComponents(), useInternalViews();
@@ -51645,4 +51647,4 @@ export {
51645
51647
  l as x,
51646
51648
  PrimariaInteractionService as y
51647
51649
  };
51648
- //# sourceMappingURL=index-umjRq-RK.js.map
51650
+ //# sourceMappingURL=index-DWSBg7Ti.js.map