@esri/solutions-components 5.1.0-next.95 → 5.1.0-next.97

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.
Files changed (135) hide show
  1. package/dist/cdn/{XAW6KPKL.js → 2BUUN32T.js} +1 -1
  2. package/dist/cdn/{ZGEMIOB5.js → 2NVL4Z5G.js} +1 -1
  3. package/dist/cdn/{WVRKV5SS.js → 3CDDDNHX.js} +1 -1
  4. package/dist/cdn/{4B7NJE47.js → 3EVMNCX6.js} +1 -1
  5. package/dist/cdn/{2VXTMCRJ.js → 3JQP6RGM.js} +1 -1
  6. package/dist/cdn/5K6B2WSQ.js +2 -0
  7. package/dist/cdn/{QYDGCI2P.js → 63RUMXWC.js} +1 -1
  8. package/dist/cdn/{UHPN75WT.js → 6HZIF7DC.js} +1 -1
  9. package/dist/cdn/{C7ASL3A4.js → 6ZRRFBIZ.js} +1 -1
  10. package/dist/cdn/{NPOHA56R.js → 7RK7YWYV.js} +1 -1
  11. package/dist/cdn/{4QZ7WHXA.js → AG22WAP3.js} +1 -1
  12. package/dist/cdn/{DI7PQSFH.js → AMEUOI76.js} +1 -1
  13. package/dist/cdn/{ZP6VPBP4.js → BGXRCU7G.js} +1 -1
  14. package/dist/cdn/{5OF3YOO7.js → BIVYOKLF.js} +1 -1
  15. package/dist/cdn/{WRSVJIPA.js → BSXTZCNH.js} +1 -1
  16. package/dist/cdn/DRXERUDE.js +2 -0
  17. package/dist/cdn/{3ZZ726LQ.js → DSLOJFRD.js} +1 -1
  18. package/dist/cdn/{5LTIZSXG.js → EN6E35NY.js} +1 -1
  19. package/dist/cdn/{FVXS4LF5.js → ESBPGZRY.js} +1 -1
  20. package/dist/cdn/{R3MCMOLS.js → EVEXF6IH.js} +2 -2
  21. package/dist/cdn/{55NRVFJ5.js → FZBIZBOO.js} +1 -1
  22. package/dist/cdn/{KYFNXHOH.js → G7N3V3YJ.js} +1 -1
  23. package/dist/cdn/{ELPH6EFW.js → I2GXCEQM.js} +1 -1
  24. package/dist/cdn/{4HPFDUTJ.js → IC2D4LPZ.js} +1 -1
  25. package/dist/cdn/{FGWGYIBZ.js → KLLT6LQO.js} +1 -1
  26. package/dist/cdn/{KW6YOUWC.js → MWMNRIUD.js} +1 -1
  27. package/dist/cdn/{CWXOH2PC.js → NBX7J6DU.js} +1 -1
  28. package/dist/cdn/{JC5EXPFH.js → NEM3F44J.js} +1 -1
  29. package/dist/cdn/{2HUG6L4M.js → OF33IXBV.js} +1 -1
  30. package/dist/cdn/{2O3HAXKG.js → OZE4W3UQ.js} +1 -1
  31. package/dist/cdn/PVM4ETZ7.js +2 -0
  32. package/dist/cdn/QADMFYXT.js +2 -0
  33. package/dist/cdn/QKJ4PGBO.js +2 -0
  34. package/dist/cdn/RTA6KNSK.js +2 -0
  35. package/dist/cdn/{SJCXI4TB.js → RX3VLQGY.js} +1 -1
  36. package/dist/cdn/{CHZWEULM.js → SAI5O6SI.js} +1 -1
  37. package/dist/cdn/{3J47AYBV.js → TRBSV6ZY.js} +100 -100
  38. package/dist/cdn/{5BU6XZAD.js → TTV5UYNT.js} +1 -1
  39. package/dist/cdn/{2B2ANB2N.js → U6CZXWSF.js} +1 -1
  40. package/dist/cdn/{GJTXLQOS.js → URVOLZIY.js} +1 -1
  41. package/dist/cdn/{XXT542UR.js → UYY6JODL.js} +1 -1
  42. package/dist/cdn/VFZ2J4EW.js +2 -0
  43. package/dist/cdn/VRM54VB2.js +2 -0
  44. package/dist/cdn/{IGSOHYV3.js → XGZCGPHU.js} +1 -1
  45. package/dist/cdn/{JJ7JB2ZP.js → Y5N6ESUO.js} +1 -1
  46. package/dist/cdn/YDNNXKDK.js +2 -0
  47. package/dist/cdn/{O3SWSZQE.js → ZKGLAGUM.js} +1 -1
  48. package/dist/cdn/ZPWKF5SM.js +2 -0
  49. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -1
  50. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -1
  51. package/dist/cdn/assets/solution-details-card/t9n/messages.ar.json +1 -1
  52. package/dist/cdn/assets/solution-details-card/t9n/messages.bg.json +1 -1
  53. package/dist/cdn/assets/solution-details-card/t9n/messages.bs.json +1 -1
  54. package/dist/cdn/assets/solution-details-card/t9n/messages.ca.json +1 -1
  55. package/dist/cdn/assets/solution-details-card/t9n/messages.cs.json +1 -1
  56. package/dist/cdn/assets/solution-details-card/t9n/messages.da.json +1 -1
  57. package/dist/cdn/assets/solution-details-card/t9n/messages.de.json +1 -1
  58. package/dist/cdn/assets/solution-details-card/t9n/messages.el.json +1 -1
  59. package/dist/cdn/assets/solution-details-card/t9n/messages.es.json +1 -1
  60. package/dist/cdn/assets/solution-details-card/t9n/messages.et.json +1 -1
  61. package/dist/cdn/assets/solution-details-card/t9n/messages.fi.json +1 -1
  62. package/dist/cdn/assets/solution-details-card/t9n/messages.fr.json +1 -1
  63. package/dist/cdn/assets/solution-details-card/t9n/messages.he.json +1 -1
  64. package/dist/cdn/assets/solution-details-card/t9n/messages.hr.json +1 -1
  65. package/dist/cdn/assets/solution-details-card/t9n/messages.hu.json +1 -1
  66. package/dist/cdn/assets/solution-details-card/t9n/messages.id.json +1 -1
  67. package/dist/cdn/assets/solution-details-card/t9n/messages.it.json +1 -1
  68. package/dist/cdn/assets/solution-details-card/t9n/messages.ja.json +1 -1
  69. package/dist/cdn/assets/solution-details-card/t9n/messages.ko.json +1 -1
  70. package/dist/cdn/assets/solution-details-card/t9n/messages.lt.json +1 -1
  71. package/dist/cdn/assets/solution-details-card/t9n/messages.lv.json +1 -1
  72. package/dist/cdn/assets/solution-details-card/t9n/messages.nl.json +1 -1
  73. package/dist/cdn/assets/solution-details-card/t9n/messages.no.json +1 -1
  74. package/dist/cdn/assets/solution-details-card/t9n/messages.pl.json +1 -1
  75. package/dist/cdn/assets/solution-details-card/t9n/messages.pt-BR.json +1 -1
  76. package/dist/cdn/assets/solution-details-card/t9n/messages.pt-PT.json +1 -1
  77. package/dist/cdn/assets/solution-details-card/t9n/messages.ro.json +1 -1
  78. package/dist/cdn/assets/solution-details-card/t9n/messages.ru.json +1 -1
  79. package/dist/cdn/assets/solution-details-card/t9n/messages.sk.json +1 -1
  80. package/dist/cdn/assets/solution-details-card/t9n/messages.sl.json +1 -1
  81. package/dist/cdn/assets/solution-details-card/t9n/messages.sr.json +1 -1
  82. package/dist/cdn/assets/solution-details-card/t9n/messages.sv.json +1 -1
  83. package/dist/cdn/assets/solution-details-card/t9n/messages.th.json +1 -1
  84. package/dist/cdn/assets/solution-details-card/t9n/messages.tr.json +1 -1
  85. package/dist/cdn/assets/solution-details-card/t9n/messages.uk.json +1 -1
  86. package/dist/cdn/assets/solution-details-card/t9n/messages.vi.json +1 -1
  87. package/dist/cdn/assets/solution-details-card/t9n/messages.zh-CN.json +1 -1
  88. package/dist/cdn/assets/solution-details-card/t9n/messages.zh-HK.json +1 -1
  89. package/dist/cdn/assets/solution-details-card/t9n/messages.zh-TW.json +1 -1
  90. package/dist/cdn/assets/solution-item-accordion/t9n/messages.en.json +1 -1
  91. package/dist/cdn/assets/solution-item-accordion/t9n/messages.json +1 -1
  92. package/dist/cdn/index.js +1 -1
  93. package/dist/chunks/cardFetchingUtils.js +1 -1
  94. package/dist/chunks/converter.js +5 -4
  95. package/dist/chunks/helpers.js +61 -39
  96. package/dist/chunks/solution-deploy-dialog.js +1 -1
  97. package/dist/chunks/solutions-deploy-app-nav.js +1 -1
  98. package/dist/components/arcgis-solutions-assistant/customElement.js +4962 -4647
  99. package/dist/components/solution-configure-titles/customElement.js +36 -38
  100. package/dist/components/solution-delete-dialog/customElement.js +49 -51
  101. package/dist/components/solution-deployed-card-panel/customElement.js +35 -38
  102. package/dist/components/solution-details-card/customElement.js +24 -32
  103. package/dist/components/solution-details-panel/customElement.js +1 -1
  104. package/dist/components/solution-item-accordion/customElement.d.ts +2 -0
  105. package/dist/components/solution-item-accordion/customElement.js +25 -32
  106. package/dist/components/solution-item-accordion/index.js +0 -1
  107. package/dist/components/solutions-all-panel/customElement.d.ts +2 -0
  108. package/dist/components/solutions-all-panel/customElement.js +48 -33
  109. package/dist/components/solutions-all-shell/customElement.js +94 -40
  110. package/dist/components/solutions-deployed-list/customElement.d.ts +9 -9
  111. package/dist/components/solutions-deployed-list/customElement.js +3 -3
  112. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  113. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  114. package/dist/docs/api.json +1 -1
  115. package/dist/docs/docs.json +1 -1
  116. package/dist/docs/vscode.html-custom-data.json +1 -1
  117. package/dist/docs/web-types.json +1 -1
  118. package/dist/loader.js +2 -2
  119. package/dist/solutions-components_commit.txt +5 -8
  120. package/dist/types/lumina.d.ts +1 -1
  121. package/dist/types/preact.d.ts +1 -1
  122. package/dist/types/react.d.ts +1 -1
  123. package/dist/types/stencil.d.ts +1 -1
  124. package/dist/utils/interfaces.d.ts +9 -1
  125. package/package.json +1 -1
  126. package/dist/cdn/2ID55IJB.js +0 -2
  127. package/dist/cdn/2SGR44DX.js +0 -2
  128. package/dist/cdn/74MDW73I.js +0 -2
  129. package/dist/cdn/ADPYDJG6.js +0 -2
  130. package/dist/cdn/AJZHT4GA.js +0 -2
  131. package/dist/cdn/ITLTQWCX.js +0 -2
  132. package/dist/cdn/IYUTLV2O.js +0 -2
  133. package/dist/cdn/K6WLYYPH.js +0 -2
  134. package/dist/cdn/R4VHCXKS.js +0 -2
  135. package/dist/cdn/X5EABWHE.js +0 -2
@@ -5,14 +5,15 @@ import { LitElement as T, createEvent as m, safeClassMap as u } from "@arcgis/lu
5
5
  import { useContextConsumer as D } from "@arcgis/lumina/context";
6
6
  import { css as $, html as h } from "lit";
7
7
  import { I as P, T as b } from "../../chunks/interfaces.js";
8
- import { createRef as _, ref as p } from "lit-html/directives/ref.js";
8
+ import { createRef as _, ref as c } from "lit-html/directives/ref.js";
9
9
  import { c as V } from "../../chunks/deployAppContexts.js";
10
10
  import * as w from "@esri/solution-common";
11
11
  import { updateGroup as x, updateItem as g, updateItemExtended as E } from "@esri/solution-common";
12
12
  import { v as C } from "../../chunks/validators.js";
13
13
  import { g as W } from "../../chunks/getRelatedInfos.js";
14
- const L = $`*[tabindex]:focus-visible{outline-style:solid!important;outline-width:2px!important;outline-color:var(--calcite-color-brand)!important;outline-offset:2px!important}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}.flex-direction-row{flex-direction:row}.font-weight-medium{font-weight:var(--calcite-font-weight-medium)}.font-style-1{font-size:1rem;color:var(--calcite-color-text-2)}.margin-top-0{margin-top:0}.padding-top-20{padding-top:20px}.padding-bottom-2{padding-bottom:2rem}.padding-left-2{padding-left:2rem}.padding-right-2{padding-right:2rem}.padding-end-1{padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.width-full{width:100%}.justify-content-space{justify-content:space-between}`;
15
- class N extends T {
14
+ import { d as L } from "../../chunks/helpers.js";
15
+ const N = $`*[tabindex]:focus-visible{outline-style:solid!important;outline-width:2px!important;outline-color:var(--calcite-color-brand)!important;outline-offset:2px!important}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}.flex-direction-row{flex-direction:row}.font-weight-medium{font-weight:var(--calcite-font-weight-medium)}.font-style-1{font-size:1rem;color:var(--calcite-color-text-2)}.margin-top-0{margin-top:0}.padding-top-20{padding-top:20px}.padding-bottom-2{padding-bottom:2rem}.padding-left-2{padding-left:2rem}.padding-right-2{padding-right:2rem}.padding-end-1{padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.width-full{width:100%}.justify-content-space{justify-content:space-between}`;
16
+ class O extends T {
16
17
  constructor() {
17
18
  super(...arguments), this.open = !1, this.source = "Card Dropdown", this.solutionData = {}, this.templateInfos = [], this._saveDisabled = !1, this._displayTemplateInfos = [], this._hasNameLengthError = !1, this._nonSolutionDependencyItems = [], this._solutionItemsTitlesUpdating = !1, this._translations = v({ name: "solution-configure-titles", blocking: !0 }), this._configContextConsumer = D({
18
19
  context: V,
@@ -23,15 +24,15 @@ class N extends T {
23
24
  this.properties = { card: 0, open: 5, source: 1, solutionData: 1, templateInfos: 0, _saveDisabled: 16, _displayTemplateInfos: 16, _hasNameLengthError: 16, _nonSolutionDependencyItems: 16, _solutionItemsTitlesUpdating: 16, _translations: 16 };
24
25
  }
25
26
  static {
26
- this.styles = L;
27
+ this.styles = N;
27
28
  }
28
29
  async willUpdate(e) {
29
30
  if (e.has("templateInfos") && (this._templateInfos = JSON.parse(JSON.stringify(this.templateInfos)), this._updateTemplates()), e.has("open")) {
30
31
  const i = e.get("open");
31
32
  if (this.open && !i) {
32
33
  await this._updatePrefixSuffix(), this._templateInfos = JSON.parse(JSON.stringify(this.templateInfos)), this._originalTitles = this._templateInfos.map((t) => ({ id: t.id, title: t.title })), this._updateTemplates();
33
- const s = await W(this._configContextConsumer.value.userSession, this.card);
34
- this._nonSolutionDependencyItems = s._nonSolutionDependencyItems, await this._accordionRef?.expandFirstItem();
34
+ const a = await W(this._configContextConsumer.value.userSession, this.card);
35
+ this._nonSolutionDependencyItems = a._nonSolutionDependencyItems, await this._accordionRef?.expandFirstItem();
35
36
  }
36
37
  }
37
38
  }
@@ -50,16 +51,13 @@ class N extends T {
50
51
  }} .open=${this.open} outside-close-disabled width=l>${this._getPrefixSuffixControls()}${this._getAccordion()}${this._getDialogButtons()}</calcite-dialog>`;
51
52
  }
52
53
  _getPrefixSuffixControls() {
53
- const e = C(this._prefixValue), i = this._hasNameLengthError && this._prefixValue.length > 0, s = e.errorType !== "special-character", t = !i, a = s ? "display-none" : "", n = t ? "display-none" : "", d = s && t ? "valid" : "invalid", c = C(this._suffixValue), l = this._hasNameLengthError && this._suffixValue.length > 0, o = c.errorType !== "special-character", r = !l, f = o ? "display-none" : "", I = r ? "display-none" : "", y = o && r ? "valid" : "invalid";
54
- return this._saveDisabled = !s || !t || !o || !r || !this._hasChanges(), h`<div class="display-flex flex-direction-column padding-left-2 padding-right-2 padding-top-20"><calcite-label scale=l class="font-weight-medium"><span tabindex=0>${this._translations.configureTitlesDialogHeader}</span></calcite-label><p class="font-style-1 margin-top-0" tabindex=0>${this._translations.addPrefixOrSuffixToItems}</p><div class="display-flex flex-direction-row justify-content-space"><calcite-label class="width-full padding-end-1" scale=l>${this._translations.prefixToAddToItems}<calcite-input clearable @blur=${this._prefixInput} @input=${this._prefixInput} .placeholder=${this._translations.enterPrefixPlaceholder} .status=${d} .value=${this._prefixValue} ${p(this._prefixRef)}></calcite-input><calcite-input-message class=${u(a)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixCharsError}</calcite-input-message><calcite-input-message class=${u(n)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixLengthError}</calcite-input-message></calcite-label><calcite-label class="width-full" scale=l>${this._translations.suffixToAddToItems}<calcite-input clearable @blur=${this._suffixInput} @input=${this._suffixInput} .placeholder=${this._translations.enterSuffixPlaceholder} .status=${y} .value=${this._suffixValue} ${p(this._suffixRef)}></calcite-input><calcite-input-message class=${u(f)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixCharsError}</calcite-input-message><calcite-input-message class=${u(I)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixLengthError}</calcite-input-message></calcite-label></div></div>`;
54
+ const e = C(this._prefixValue), i = this._hasNameLengthError && this._prefixValue.length > 0, a = e.errorType !== "special-character", t = !i, s = a ? "display-none" : "", n = t ? "display-none" : "", d = a && t ? "valid" : "invalid", p = C(this._suffixValue), l = this._hasNameLengthError && this._suffixValue.length > 0, o = p.errorType !== "special-character", r = !l, f = o ? "display-none" : "", y = r ? "display-none" : "", I = o && r ? "valid" : "invalid";
55
+ return this._saveDisabled = !a || !t || !o || !r || !this._hasChanges(), h`<div class="display-flex flex-direction-column padding-left-2 padding-right-2 padding-top-20"><calcite-label scale=l class="font-weight-medium"><span tabindex=0>${this._translations.configureTitlesDialogHeader}</span></calcite-label><p class="font-style-1 margin-top-0" tabindex=0>${this._translations.addPrefixOrSuffixToItems}</p><div class="display-flex flex-direction-row justify-content-space"><calcite-label class="width-full padding-end-1" scale=l>${this._translations.prefixToAddToItems}<calcite-input clearable @blur=${this._prefixInput} @input=${this._prefixInput} .placeholder=${this._translations.enterPrefixPlaceholder} .status=${d} .value=${this._prefixValue} ${c(this._prefixRef)}></calcite-input><calcite-input-message class=${u(s)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixCharsError}</calcite-input-message><calcite-input-message class=${u(n)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixLengthError}</calcite-input-message></calcite-label><calcite-label class="width-full" scale=l>${this._translations.suffixToAddToItems}<calcite-input clearable @blur=${this._suffixInput} @input=${this._suffixInput} .placeholder=${this._translations.enterSuffixPlaceholder} .status=${I} .value=${this._suffixValue} ${c(this._suffixRef)}></calcite-input><calcite-input-message class=${u(f)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixCharsError}</calcite-input-message><calcite-input-message class=${u(y)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixLengthError}</calcite-input-message></calcite-label></div></div>`;
55
56
  }
56
57
  _getAccordion() {
57
- const e = new Set(this._nonSolutionDependencyItems.filter((s) => s.dependencyItemId !== this.card.id).map((s) => `${s.controlItemId}|${s.dependencyItemId}`)), i = Array.from(e).map((s) => {
58
- const [t, a] = s.split("|");
59
- return { controlItemId: t, dependencyItemId: a };
60
- });
61
- return h`<div class="display-flex flex-direction-column padding-left-2 padding-right-2 padding-bottom-2"><p class="font-style-1 margin-top-0">${this._translations.previewTheChanges}</p><solution-item-accordion .itemRelationshipDependencies=${i} list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReuseWarning} .templateInfos=${this._displayTemplateInfos} .typeKeywords=${this.card?.typeKeywords} usage-context=rename ${p(async (s) => {
62
- s && (this._accordionRef = s);
58
+ const e = L(this._nonSolutionDependencyItems, this.card.id);
59
+ return h`<div class="display-flex flex-direction-column padding-left-2 padding-right-2 padding-bottom-2"><p class="font-style-1 margin-top-0">${this._translations.previewTheChanges}</p><solution-item-accordion .itemRelationshipDependencies=${e} list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReuseWarning} .templateInfos=${this._displayTemplateInfos} .typeKeywords=${this.card?.typeKeywords} usage-context=rename ${c(async (i) => {
60
+ i && (this._accordionRef = i);
63
61
  })}></solution-item-accordion></div>`;
64
62
  }
65
63
  _getDialogButtons() {
@@ -78,22 +76,22 @@ class N extends T {
78
76
  _updateTemplates() {
79
77
  const e = this._configContextConsumer.value?.authentication?.CanUpdateSolution ?? !1, i = this._configContextConsumer.value?.authentication?.PortalUserName;
80
78
  this._templateInfos = this._templateInfos.map((t) => (this._loadingDefaultPrefix && t.title.startsWith(this._prefixValue) && (t.title = this._replaceStart(t.title, this._prefixValue, "")), this._loadingDefaultSuffix && t.title.endsWith(this._suffixValue) && (t.title = this._replaceAtEnd(t.title, this._suffixValue, "")), t));
81
- const s = JSON.parse(JSON.stringify(this._templateInfos));
82
- this._hasNameLengthError = !1, this._displayTemplateInfos = s.map((t) => {
83
- const a = this._prefixValue !== "", n = this._suffixValue !== "", d = this._defaultPrefix !== "", c = this._defaultSuffix !== "";
79
+ const a = JSON.parse(JSON.stringify(this._templateInfos));
80
+ this._hasNameLengthError = !1, this._displayTemplateInfos = a.map((t) => {
81
+ const s = this._prefixValue !== "", n = this._suffixValue !== "", d = this._defaultPrefix !== "", p = this._defaultSuffix !== "";
84
82
  if (t.owner !== i && !e)
85
83
  return t;
86
84
  let l = t.title;
87
- a && (d ? this._originalTitles.find((f) => f.id === t.id)?.title.startsWith(this._defaultPrefix) ? l = this._applyPrefixWithDuplicateCheck(t.title, this._prefixValue) : this._prefixValue !== this._defaultPrefix && (l = this._applyPrefixWithDuplicateCheck(t.title, this._prefixValue)) : l = this._applyPrefixWithDuplicateCheck(t.title, this._prefixValue));
85
+ s && (d ? this._originalTitles.find((f) => f.id === t.id)?.title.startsWith(this._defaultPrefix) ? l = this._applyPrefixWithDuplicateCheck(t.title, this._prefixValue) : this._prefixValue !== this._defaultPrefix && (l = this._applyPrefixWithDuplicateCheck(t.title, this._prefixValue)) : l = this._applyPrefixWithDuplicateCheck(t.title, this._prefixValue));
88
86
  let o = l;
89
- return n && (c ? this._originalTitles.find((f) => f.id === t.id)?.title.endsWith(this._defaultSuffix) ? o = this._applySuffixWithDuplicateCheck(l, this._suffixValue) : this._suffixValue !== this._defaultSuffix && (o = this._applySuffixWithDuplicateCheck(l, this._suffixValue)) : o = this._applySuffixWithDuplicateCheck(l, this._suffixValue)), t.title = o, this._hasNameLengthError || (this._hasNameLengthError = t.title.length > P), t;
87
+ return n && (p ? this._originalTitles.find((f) => f.id === t.id)?.title.endsWith(this._defaultSuffix) ? o = this._applySuffixWithDuplicateCheck(l, this._suffixValue) : this._suffixValue !== this._defaultSuffix && (o = this._applySuffixWithDuplicateCheck(l, this._suffixValue)) : o = this._applySuffixWithDuplicateCheck(l, this._suffixValue)), t.title = o, this._hasNameLengthError || (this._hasNameLengthError = t.title.length > P), t;
90
88
  }), this._loadingDefaultPrefix = !1, this._loadingDefaultSuffix = !1;
91
89
  }
92
- _replaceStart(e, i, s) {
93
- return e.startsWith(i) ? `${s}${e.slice(i.length)}` : e;
90
+ _replaceStart(e, i, a) {
91
+ return e.startsWith(i) ? `${a}${e.slice(i.length)}` : e;
94
92
  }
95
- _replaceAtEnd(e, i, s) {
96
- return e.endsWith(i) ? `${e.substring(0, e.length - i.length)}${s}` : e;
93
+ _replaceAtEnd(e, i, a) {
94
+ return e.endsWith(i) ? `${e.substring(0, e.length - i.length)}${a}` : e;
97
95
  }
98
96
  _applyPrefixWithDuplicateCheck(e, i) {
99
97
  return !i || e.startsWith(i) ? e : i + e;
@@ -104,8 +102,8 @@ class N extends T {
104
102
  _hasChanges() {
105
103
  const e = this._defaultPrefix !== this._prefixValue, i = this._defaultSuffix !== this._suffixValue;
106
104
  return this._displayTemplateInfos.some((t) => {
107
- const a = this._originalTitles.find((n) => n.id === t.id);
108
- return a && a.title !== t.title;
105
+ const s = this._originalTitles.find((n) => n.id === t.id);
106
+ return s && s.title !== t.title;
109
107
  }) || e || i;
110
108
  }
111
109
  _closeDialog() {
@@ -123,42 +121,42 @@ class N extends T {
123
121
  this.source
124
122
  ]
125
123
  }), this._solutionItemsTitlesUpdating = !0;
126
- const e = this._configContextConsumer.value?.authentication?.CanUpdateSolution ?? !1, i = this._configContextConsumer.value?.authentication?.PortalUserName, s = this._displayTemplateInfos.reduce((t, a) => {
127
- if (a.owner !== i) {
124
+ const e = this._configContextConsumer.value?.authentication?.CanUpdateSolution ?? !1, i = this._configContextConsumer.value?.authentication?.PortalUserName, a = this._displayTemplateInfos.reduce((t, s) => {
125
+ if (s.owner !== i) {
128
126
  if (e) {
129
127
  const n = {
130
- id: a.id,
131
- title: a.title
128
+ id: s.id,
129
+ title: s.title
132
130
  };
133
- t.push(a.type === "Group" ? x(n, this._configContextConsumer.value.userSession) : g(n, this._configContextConsumer.value.userSession, void 0, { solutionOwner: this.card?.owner }));
131
+ t.push(s.type === "Group" ? x(n, this._configContextConsumer.value.userSession) : g(n, this._configContextConsumer.value.userSession, void 0, { solutionOwner: this.card?.owner }));
134
132
  }
135
133
  } else {
136
134
  const n = {
137
- id: a.id,
138
- title: a.title
135
+ id: s.id,
136
+ title: s.title
139
137
  };
140
- t.push(a.type === "Group" ? x(n, this._configContextConsumer.value.userSession) : g(n, this._configContextConsumer.value.userSession, void 0, { solutionOwner: this.card?.owner }));
138
+ t.push(s.type === "Group" ? x(n, this._configContextConsumer.value.userSession) : g(n, this._configContextConsumer.value.userSession, void 0, { solutionOwner: this.card?.owner }));
141
139
  }
142
140
  return t;
143
141
  }, []);
144
142
  if (this.solutionData?.templates) {
145
143
  const t = {
146
144
  id: this.card.id
147
- }, a = {
145
+ }, s = {
148
146
  ...this.solutionData,
149
147
  titles: {
150
148
  prefix: this._prefixValue,
151
149
  suffix: this._suffixValue
152
150
  }
153
151
  };
154
- s.push(E(t, a, this._configContextConsumer.value.userSession, void 0, void 0, null, this.card?.owner));
152
+ a.push(E(t, s, this._configContextConsumer.value.userSession, void 0, void 0, null, this.card?.owner));
155
153
  }
156
- await Promise.all(s), this._solutionItemsTitlesUpdating = !1, this.solutionItemsTitlesChanged.emit();
154
+ await Promise.all(a), this._solutionItemsTitlesUpdating = !1, this.solutionItemsTitlesChanged.emit();
157
155
  }
158
156
  this._closeDialog();
159
157
  }
160
158
  }
161
- S("solution-configure-titles", N);
159
+ S("solution-configure-titles", O);
162
160
  export {
163
- N as SolutionConfigureTitles
161
+ O as SolutionConfigureTitles
164
162
  };
@@ -1,24 +1,25 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { c as u } from "../../chunks/runtime.js";
3
- import { css as p, nothing as f, html as r } from "lit";
4
- import { u as g } from "../../chunks/useT9n.js";
5
- import { LitElement as _, createEvent as d, safeClassMap as c } from "@arcgis/lumina";
6
- import { useContextConsumer as I } from "@arcgis/lumina/context";
2
+ import { c as m } from "../../chunks/runtime.js";
3
+ import { css as u, nothing as p, html as r } from "lit";
4
+ import { u as f } from "../../chunks/useT9n.js";
5
+ import { LitElement as g, createEvent as d, safeClassMap as c } from "@arcgis/lumina";
6
+ import { useContextConsumer as _ } from "@arcgis/lumina/context";
7
7
  import { g as D } from "../../chunks/common.js";
8
- import { y, T as b } from "../../chunks/interfaces.js";
9
- import { deleteSolution as w } from "@esri/solution-common";
8
+ import { y as I, T as y } from "../../chunks/interfaces.js";
9
+ import { deleteSolution as b } from "@esri/solution-common";
10
10
  import { c as C } from "../../chunks/deployAppContexts.js";
11
- import { createRef as $, ref as m } from "lit-html/directives/ref.js";
11
+ import { createRef as w, ref as h } from "lit-html/directives/ref.js";
12
12
  import "../solution-item-accordion/customElement.js";
13
- import { p as v, g as x } from "../../chunks/getRelatedInfos.js";
14
- const S = p`*[tabindex]:focus-visible{outline-style:solid!important;outline-width:2px!important;outline-color:var(--calcite-color-brand)!important;outline-offset:2px!important}.deletion-note-text{display:inline-block}.deletion-note-container{display:flex;align-items:center;gap:var(--calcite-spacing-sm);font-size:var(--calcite-font-size-0);margin-bottom:var(--calcite-spacing-md)}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-surface-2);--calcite-panel-background-color: var(--calcite-color-surface-2)}.display-none{display:none}calcite-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.loader-text{margin-top:var(--calcite-spacing-md);margin-bottom:var(--calcite-spacing-xl);text-align:center;font-size:var(--calcite-font-size-relative-base);color:var(--calcite-color-text-1)}.padding-around{padding:12px 2rem 2rem}`;
15
- class T extends _ {
13
+ import { p as $, g as v } from "../../chunks/getRelatedInfos.js";
14
+ import { d as x } from "../../chunks/helpers.js";
15
+ const S = u`*[tabindex]:focus-visible{outline-style:solid!important;outline-width:2px!important;outline-color:var(--calcite-color-brand)!important;outline-offset:2px!important}.deletion-note-text{display:inline-block}.deletion-note-container{display:flex;align-items:center;gap:var(--calcite-spacing-sm);font-size:var(--calcite-font-size-0);margin-bottom:var(--calcite-spacing-md)}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-surface-2);--calcite-panel-background-color: var(--calcite-color-surface-2)}.display-none{display:none}calcite-loader{--calcite-loader-spacing: var(--calcite-spacing-md)}.loader-text{margin-top:var(--calcite-spacing-md);margin-bottom:var(--calcite-spacing-xl);text-align:center;font-size:var(--calcite-font-size-relative-base);color:var(--calcite-color-text-1)}.padding-around{padding:12px 2rem 2rem}`;
16
+ class T extends g {
16
17
  constructor() {
17
- super(), this.open = !1, this.source = "Card Dropdown", this._deletePercentage = 0, this._fetchingTemplates = !1, this._isDeleteInProgress = !1, this._nonSolutionDependencyItems = [], this._showDeleteError = !1, this._showUndeletableItems = !1, this._templateInfos = [], this._translations = g({ name: "solution-delete-dialog", blocking: !0 }), this._accordion = $(), this._configContextConsumer = I({
18
+ super(), this.open = !1, this.source = "Card Dropdown", this._deletePercentage = 0, this._fetchingTemplates = !1, this._isDeleteInProgress = !1, this._nonSolutionDependencyItems = [], this._showDeleteError = !1, this._showUndeletableItems = !1, this._templateInfos = [], this._translations = f({ name: "solution-delete-dialog", blocking: !0 }), this._accordion = w(), this._configContextConsumer = _({
18
19
  context: C,
19
20
  subscribe: !0
20
- }), this.solutionDeleteDialogOpen = d(), this.solutionDeleted = d(), this.solutionDeleteDialogBeforeClose = d(), this.listenOn(window, "beforeunload", (t) => {
21
- this._isDeleteInProgress && (t.preventDefault(), t.returnValue = !0);
21
+ }), this.solutionDeleteDialogOpen = d(), this.solutionDeleted = d(), this.solutionDeleteDialogBeforeClose = d(), this.listenOn(window, "beforeunload", (e) => {
22
+ this._isDeleteInProgress && (e.preventDefault(), e.returnValue = !0);
22
23
  });
23
24
  }
24
25
  static {
@@ -28,7 +29,7 @@ class T extends _ {
28
29
  this.styles = S;
29
30
  }
30
31
  get _hasAdminDeletePermission() {
31
- return this._configContextConsumer.value?.authentication ? y(this._configContextConsumer.value?.authentication) : !1;
32
+ return this._configContextConsumer.value?.authentication ? I(this._configContextConsumer.value?.authentication) : !1;
32
33
  }
33
34
  get _telemetry() {
34
35
  return this._configContextConsumer.value?.telemetrySession;
@@ -38,7 +39,7 @@ class T extends _ {
38
39
  }
39
40
  delete() {
40
41
  if (this._telemetry?.logEvent({
41
- category: b.DEPLOYMENTS,
42
+ category: y.DEPLOYMENTS,
42
43
  action: "Delete Solution",
43
44
  dimensions: [
44
45
  this.card?.title || "",
@@ -47,34 +48,34 @@ class T extends _ {
47
48
  this.source
48
49
  ]
49
50
  }), this._isDeleteInProgress = !0, this.card) {
50
- const t = [{
51
+ const e = [{
51
52
  itemName: this.card.title,
52
53
  itemType: "Solution",
53
54
  owner: this.card.owner,
54
55
  modified: this.card.modified
55
- }], s = {
56
- progressCallback: (o) => {
57
- this._deletePercentage = Math.round(o);
56
+ }], t = {
57
+ progressCallback: (i) => {
58
+ this._deletePercentage = Math.round(i);
58
59
  },
59
60
  solutionOwner: this.card.owner
60
61
  };
61
- w(this.card.id, this._configContextConsumer.value.userSession, s).then((o) => {
62
- const i = o[1];
63
- let a;
64
- if (i ? a = i.items.map((n) => ({
65
- itemName: n.title,
66
- itemType: n.type,
67
- owner: n.owner,
68
- modified: n.modified
69
- })) : a = t, a.length === 0)
62
+ b(this.card.id, this._configContextConsumer.value.userSession, t).then((i) => {
63
+ const s = i[1];
64
+ let o;
65
+ if (s ? o = s.items.map((a) => ({
66
+ itemName: a.title,
67
+ itemType: a.type,
68
+ owner: a.owner,
69
+ modified: a.modified
70
+ })) : o = e, o.length === 0)
70
71
  this.solutionDeleted.emit({ showAlert: !0, refreshSolutionsTimeout: !0, solutionTitle: this.card?.title }), this._isDeleteInProgress = !1, this.open = !1;
71
- else if (a.some((e) => e.itemType === "Solution"))
72
- this.card ? v(this.card, this._configContextConsumer.value.userSession).then((e) => {
73
- this._templateInfos = e, this._showDeleteError = !0, this._showUndeletableItems = !0, this._isDeleteInProgress = !1;
72
+ else if (o.some((n) => n.itemType === "Solution"))
73
+ this.card ? $(this.card, this._configContextConsumer.value.userSession).then((n) => {
74
+ this._templateInfos = n, this._showDeleteError = !0, this._showUndeletableItems = !0, this._isDeleteInProgress = !1;
74
75
  }) : (this._showDeleteError = !0, this._isDeleteInProgress = !1);
75
76
  else if (this.card) {
76
- let e = [];
77
- e = i.items.map((l) => ({
77
+ let n = [];
78
+ n = s.items.map((l) => ({
78
79
  id: l.id,
79
80
  title: l.title,
80
81
  type: l.type,
@@ -84,47 +85,44 @@ class T extends _ {
84
85
  snippet: "",
85
86
  dependencies: [],
86
87
  url: D(l.id, this._configContextConsumer.value.authentication)
87
- })), this._templateInfos = e, this._showDeleteError = !1, this._showUndeletableItems = !0, this._isDeleteInProgress = !1;
88
+ })), this._templateInfos = n, this._showDeleteError = !1, this._showUndeletableItems = !0, this._isDeleteInProgress = !1;
88
89
  } else
89
90
  this.solutionDeleted.emit({ showAlert: !0, refreshSolutionsTimeout: !0 }), this._isDeleteInProgress = !1, this.open = !1;
90
91
  });
91
92
  }
92
93
  }
93
- willUpdate(t) {
94
- if (t.has("open")) {
95
- const s = t.get("open");
96
- this.open && !s && (this._fetchingTemplates = !0, x(this._configContextConsumer.value.userSession, this.card).then((o) => {
97
- this._templateInfos = o.templateInfos, this._nonSolutionDependencyItems = o._nonSolutionDependencyItems, this._fetchingTemplates = !1;
94
+ willUpdate(e) {
95
+ if (e.has("open")) {
96
+ const t = e.get("open");
97
+ this.open && !t && (this._fetchingTemplates = !0, v(this._configContextConsumer.value.userSession, this.card).then((i) => {
98
+ this._templateInfos = i.templateInfos, this._nonSolutionDependencyItems = i._nonSolutionDependencyItems, this._fetchingTemplates = !1;
98
99
  }));
99
100
  }
100
101
  }
101
102
  render() {
102
- const t = this._fetchingTemplates ? "" : "display-none", s = this._fetchingTemplates ? "display-none" : "", o = new Set(this._nonSolutionDependencyItems.filter((e) => e.dependencyItemId !== this.card.id).map((e) => `${e.controlItemId}|${e.dependencyItemId}`)), i = Array.from(o).map((e) => {
103
- const [l, h] = e.split("|");
104
- return { controlItemId: l, dependencyItemId: h };
105
- }), a = this._templateInfos.length - this._getDependencyCount() - this._getNonOwnerCount(), n = this._translations.deletionCount.replace("{{deleteableCount}}", a.toString()).replace("{{totalCount}}", this._templateInfos.length.toString());
106
- return r`<calcite-dialog class="panel-bg-color" .closeDisabled=${this._isDeleteInProgress} .escapeDisabled=${this._isDeleteInProgress} .heading=${this._translations.title.replace("{{solution}}", this.card?.title ?? "")} id=${this._translations.title.replace("{{solution}}", this.card?.title ?? "") ?? f} modal kind=danger .open=${this.open} width=l outside-close-disabled @calciteDialogBeforeClose=${() => {
103
+ const e = this._fetchingTemplates ? "" : "display-none", t = this._fetchingTemplates ? "display-none" : "", i = x(this._nonSolutionDependencyItems, this.card.id), s = this._templateInfos.length - this._getDependencyCount() - this._getNonOwnerCount(), o = this._translations.deletionCount.replace("{{deleteableCount}}", s.toString()).replace("{{totalCount}}", this._templateInfos.length.toString());
104
+ return r`<calcite-dialog class="panel-bg-color" .closeDisabled=${this._isDeleteInProgress} .escapeDisabled=${this._isDeleteInProgress} .heading=${this._translations.title.replace("{{solution}}", this.card?.title ?? "")} id=${this._translations.title.replace("{{solution}}", this.card?.title ?? "") ?? p} modal kind=danger .open=${this.open} width=l outside-close-disabled @calciteDialogBeforeClose=${() => {
107
105
  this.solutionDeleteDialogBeforeClose.emit();
108
106
  }} @calciteDialogClose=${() => {
109
107
  this.open = !1, this.solutionDeleteDialogOpen.emit(!1);
110
- }}>${this._isDeleteInProgress ? r`<calcite-loader .label=${this._translations.deleteInProgress} scale=l type=determinate-value .value=${this._deletePercentage}></calcite-loader><div class="loader-text" tabindex=0>${this._translations.deleteInProgress}</div>` : this._showUndeletableItems ? r`<calcite-label class=${c(s)} layout=inline><span tabindex=0>${this._translations.failedToDeleteItems}</span></calcite-label><solution-item-accordion class=${c(s)} .itemRelationshipDependencies=${[]} link-type=item list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReusewarning} .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} usage-context=delete ${m(this._accordion)}></solution-item-accordion><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonClose}</calcite-button>` : r`<div class="padding-around"><div class=${`deletion-note-container ${s}`}><span class="deletion-note-text" tabindex=0>${this._translations.deletionNote}</span><calcite-chip .label=${n} scale=m icon=information>${n}</calcite-chip></div><calcite-loader class=${c(t)} label></calcite-loader><solution-item-accordion class=${c(s)} .itemRelationshipDependencies=${i} link-type=item list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReusewarning} .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} usage-context=delete ${m(this._accordion)}></solution-item-accordion></div><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonCancel}</calcite-button><calcite-button @click=${() => {
108
+ }}>${this._isDeleteInProgress ? r`<calcite-loader .label=${this._translations.deleteInProgress} scale=l type=determinate-value .value=${this._deletePercentage}></calcite-loader><div class="loader-text" tabindex=0>${this._translations.deleteInProgress}</div>` : this._showUndeletableItems ? r`<calcite-label class=${c(t)} layout=inline><span tabindex=0>${this._translations.failedToDeleteItems}</span></calcite-label><solution-item-accordion class=${c(t)} .itemRelationshipDependencies=${[]} link-type=item list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReusewarning} .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} usage-context=delete ${h(this._accordion)}></solution-item-accordion><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonClose}</calcite-button>` : r`<div class="padding-around"><div class=${`deletion-note-container ${t}`}><span class="deletion-note-text" tabindex=0>${this._translations.deletionNote}</span><calcite-chip .label=${o} scale=m icon=information>${o}</calcite-chip></div><calcite-loader class=${c(e)} label></calcite-loader><solution-item-accordion class=${c(t)} .itemRelationshipDependencies=${i} link-type=item list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReusewarning} .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} usage-context=delete ${h(this._accordion)}></solution-item-accordion></div><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonCancel}</calcite-button><calcite-button @click=${() => {
111
109
  this.delete();
112
110
  }} slot=footer-end kind=danger>${this._translations.buttonDelete}</calcite-button>${this._showDeleteError && r`<calcite-alert icon=exclamation-mark-triangle kind=danger .label=${this._translations.failedToDelete} @calciteAlertClose=${() => {
113
111
  this._showDeleteError = !1;
114
112
  }} open><div slot=message>${this._translations.failedToDelete}</div></calcite-alert>` || ""}`}</calcite-dialog>`;
115
113
  }
116
114
  _getDependencyCount() {
117
- const t = this._nonSolutionDependencyItems.map((s) => s.controlItemId);
118
- return new Set(t).size;
115
+ const e = this._nonSolutionDependencyItems.map((t) => t.controlItemId);
116
+ return new Set(e).size;
119
117
  }
120
118
  _getNonOwnerCount() {
121
119
  if (this._templateInfos.length === 0 || this._hasAdminDeletePermission)
122
120
  return 0;
123
- const t = this._nonSolutionDependencyItems.map((i) => i.controlItemId), s = new Set(t), o = this._configContextConsumer.value.userSession.username;
124
- return this._templateInfos.filter((i) => !s.has(i.id)).filter((i) => i.owner !== o).length;
121
+ const e = this._nonSolutionDependencyItems.map((s) => s.controlItemId), t = new Set(e), i = this._configContextConsumer.value.userSession.username;
122
+ return this._templateInfos.filter((s) => !t.has(s.id)).filter((s) => s.owner !== i).length;
125
123
  }
126
124
  }
127
- u("solution-delete-dialog", T);
125
+ m("solution-delete-dialog", T);
128
126
  export {
129
127
  T as SolutionDeleteDialog
130
128
  };
@@ -1,20 +1,20 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { c as m } from "../../chunks/runtime.js";
3
- import { u } from "../../chunks/useT9n.js";
2
+ import { c as u } from "../../chunks/runtime.js";
3
+ import { u as m } from "../../chunks/useT9n.js";
4
4
  import { LitElement as f, createEvent as r, safeClassMap as b, nothing as d } from "@arcgis/lumina";
5
5
  import { useContextConsumer as g } from "@arcgis/lumina/context";
6
- import { css as x, html as o } from "lit";
6
+ import { css as x, html as i } from "lit";
7
7
  import { c as _, i as v } from "../../chunks/deployAppContexts.js";
8
8
  import { y, T as s, x as w } from "../../chunks/interfaces.js";
9
- import { f as $, g as p, a as C } from "../../chunks/cardsHelpers.js";
10
- import { g as S } from "../../chunks/getRelatedInfos.js";
11
- import { u as D } from "../../chunks/common.js";
12
- import { d as k } from "../../chunks/helpers.js";
9
+ import { f as C, g as p, a as $ } from "../../chunks/cardsHelpers.js";
10
+ import { g as D } from "../../chunks/getRelatedInfos.js";
11
+ import { u as S } from "../../chunks/common.js";
12
+ import { e as k, d as T } from "../../chunks/helpers.js";
13
13
  import * as h from "@esri/solution-common";
14
14
  const I = x`.negative-tabbing-offset[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.tabbing-offset[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:2px}.font-weight-med{font-weight:var(--calcite-font-weight-medium)}.font-weight-bold{font-weight:var(--calcite-font-weight-bold)}.heading-font{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.title-font{font-size:1.8rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.font-1{font-size:var(--calcite-spacing-lg)}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}.flex-direction-row{flex-direction:row}@container (min-width: 801px){.font-size-override .display-flex.flex-direction-row>.image-width+.display-flex{flex:1;min-width:0}}.icon-color{color:var(--calcite-color-text-3)}.padding-bottom-lg{padding-bottom:var(--calcite-spacing-lg)}.item-padding{--calcite-internal-accordion-item-padding: var(--calcite-spacing-xl)}.align-items-center{align-items:center}.align-items-start{align-items:start}.font-size-override{--calcite-font-size--2: var(--calcite-font-size--1)}.background-color-1{background-color:var(--calcite-color-surface-2)}.background-color-2{background-color:var(--calcite-color-surface-3)}.label-override{--calcite-label-margin-bottom: var(--calcite-spacing-none)}.position-relative{position:relative}.overflow-hidden{overflow:hidden}.overflow-auto{overflow:auto}.margin-block-start-end-0{margin-block-start:var(--calcite-spacing-none);margin-block-end:var(--calcite-spacing-none)}.panel-background-2{--calcite-panel-background-color: var(--calcite-color-surface-3);background-color:var(--calcite-color-surface-3)}.panel-background-1{--calcite-panel-background-color: var(--calcite-color-surface-2);--calcite-shell-panel-background-color: var(--calcite-color-surface-2)}.border-none{border:none}.font-color-1{color:var(--calcite-color-text-1)}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-surface-2);--calcite-panel-background-color: var(--calcite-color-surface-2)}.dialog-y-size{--calcite-dialog-size-y: 90% }.dialog-x-size{--calcite-dialog-size-x: 90% }.bottom-border{border-bottom:solid var(--calcite-spacing-px);color:var(--calcite-color-border-1)}.margin-start-end-xxl{margin-inline-start:var(--calcite-spacing-xxl);margin-inline-end:var(--calcite-spacing-xxl)}.margin-start-end-lg{margin-inline-start:var(--calcite-spacing-lg);margin-inline-end:var(--calcite-spacing-lg)}.margin-top-xxl{margin-top:var(--calcite-spacing-xxl)}.justify-between{justify-content:space-between}.items-baseline{align-items:baseline}.padding-xxl{padding:var(--calcite-spacing-xxl)}.padding-lg{padding:var(--calcite-spacing-lg)}.padding-top-xxl{padding-top:var(--calcite-spacing-xxl)}.padding-top-lg{padding-top:var(--calcite-spacing-lg)}.padding-bottom-xxl{padding-bottom:var(--calcite-spacing-xxl)}.padding-end-1{padding-inline-end:var(--calcite-spacing-lg)}.padding-end-xxl{padding-inline-end:var(--calcite-spacing-xxl)}.padding-start-sm{padding-inline-start:var(--calcite-spacing-sm)}.padding-start-xxl{padding-inline-start:var(--calcite-spacing-xxl)}.image-width{width:300px;flex-grow:0;flex-shrink:0}@container (max-width: 1280px){.image-width{flex-grow:0;flex-shrink:1}}img{max-width:100%;height:auto;overflow-clip-margin:content-box;overflow:clip;display:block}.margin-xl{margin:var(--calcite-spacing-xl)}.line-height-1{line-height:1.1}.line-height-xxl{line-height:var(--calcite-line-height-xxl)}@container (max-width: 800px){.font-size-override .display-flex.flex-direction-row{flex-direction:column!important}.image-width{width:100%!important;max-width:100%!important;margin:0!important;padding:var(--calcite-spacing-lg)!important;padding-bottom:0!important;box-sizing:border-box}.image-width img{width:100%;max-width:100%}.margin-xl{margin:0!important}.image-width+.display-flex{padding-inline-start:var(--calcite-spacing-lg)!important;padding-inline-end:var(--calcite-spacing-lg)!important}.padding-start-sm{padding-inline-start:0!important}.title-font{padding-inline-start:0!important;padding-top:var(--calcite-spacing-lg)!important;padding-bottom:var(--calcite-spacing-lg)!important}.align-items-start.padding-bottom-xxl,.padding-bottom-xxl.padding-start-sm{padding-bottom:var(--calcite-spacing-lg)!important}}calcite-shell-panel{--calcite-shell-panel-max-width: 20rem;--calcite-shell-panel-width: 24vw}calcite-shell{block-size:unset}.solution-deployed-action{--calcite-color-focus: initial}.skeleton-loader{background:linear-gradient(90deg,var(--calcite-color-foreground-1) 0%,var(--calcite-color-foreground-2) 50%,var(--calcite-color-foreground-1) 100%);background-size:200% 100%;animation:shimmer 1.5s ease-in-out infinite;border-radius:var(--calcite-border-radius)}.skeleton-folder{height:1.5rem;width:12rem;border-radius:var(--calcite-border-radius)}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}`;
15
- class T extends f {
15
+ class O extends f {
16
16
  constructor() {
17
- super(), this.diagramKey = "", this.open = !1, this.templateInfos = [], this._accordionLoading = !1, this._configureTitlesOpen = !1, this._deleteDialogOpen = !1, this._hasNewVersion = !1, this._isDiagramOpen = !1, this._isNameConflict = !1, this._invalidNameMessage = "", this._showFailedAlert = !1, this._showItemUpdateLoading = !1, this.isMobile = !1, this._templateInfoGraph = [], this._thumbnailUrl = "", this._folderName = "", this._folderId = null, this._folderLoading = !1, this._translations = u({ name: "solution-deployed-card-panel", blocking: !0 }), this._configContextConsumer = g({
17
+ super(), this.diagramKey = "", this.open = !1, this.templateInfos = [], this._accordionLoading = !1, this._configureTitlesOpen = !1, this._deleteDialogOpen = !1, this._hasNewVersion = !1, this._isDiagramOpen = !1, this._isNameConflict = !1, this._invalidNameMessage = "", this._showFailedAlert = !1, this._showItemUpdateLoading = !1, this.isMobile = !1, this._templateInfoGraph = [], this._thumbnailUrl = "", this._folderName = "", this._folderId = null, this._folderLoading = !1, this._translations = m({ name: "solution-deployed-card-panel", blocking: !0 }), this._configContextConsumer = g({
18
18
  context: _,
19
19
  subscribe: !0,
20
20
  callback: async (e) => {
@@ -38,7 +38,7 @@ class T extends f {
38
38
  const t = this._configContextConsumer.value?.orgUrl;
39
39
  if (!t)
40
40
  return;
41
- const i = this._configContextConsumer.value?.userSession?.username, n = this.card?.owner === i;
41
+ const o = this._configContextConsumer.value?.userSession?.username, n = this.card?.owner === o;
42
42
  let a;
43
43
  if (n) {
44
44
  const l = this._folderId || this.card?.owner;
@@ -76,19 +76,19 @@ class T extends f {
76
76
  }
77
77
  willUpdate(e) {
78
78
  if (e.has("card")) {
79
- const t = this._configContextConsumer.value?.userSession, i = this.card?.thumbnailUrl.replace(/w=\d+/, "w=400");
80
- this._thumbnailUrl = `${i}&token=${t?.token}`, this._folderLoading = !0, this._folderName = "", this._folderId = null;
79
+ const t = this._configContextConsumer.value?.userSession, o = this.card?.thumbnailUrl.replace(/w=\d+/, "w=400");
80
+ this._thumbnailUrl = `${o}&token=${t?.token}`, this._folderLoading = !0, this._folderName = "", this._folderId = null;
81
81
  }
82
82
  }
83
83
  render() {
84
- return this.isMobile ? o`<calcite-shell class="position-relative background-color-2"><calcite-panel class="panel-background-2 border-none" slot=panel-bottom><div class="background-color-2 padding-top-lg">${this._getSolutionPanel()}</div><div class="background-color-1 margin-top-xxl">${this._getButtons()}${this._getOwnerSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getFolderSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getSolutionVersionCard()}</div>${this._getSolutionContents()}</calcite-panel></calcite-shell>` : o`<calcite-shell class="position-relative background-color-2"><calcite-panel class="padding-end-xxl panel-background-2 border-none" slot=panel-bottom><div class="display-flex flex-direction-column overflow-hidden"><div class="background-color-2 padding-top-xxl">${this._getSolutionPanel()}</div>${this._getSolutionContents()}</div></calcite-panel><calcite-shell-panel class="panel-background-1" slot=panel-end>${this._getButtons()}${this._getOwnerSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getFolderSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getSolutionVersionCard()}</calcite-shell-panel>${this._renderDiagramDialog()}${this._getConfigureTitlesDialog()}${this._getDeleteDialog()}</calcite-shell>`;
84
+ return this.isMobile ? i`<calcite-shell class="position-relative background-color-2"><calcite-panel class="panel-background-2 border-none" slot=panel-bottom><div class="background-color-2 padding-top-lg">${this._getSolutionPanel()}</div><div class="background-color-1 margin-top-xxl">${this._getButtons()}${this._getOwnerSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getFolderSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getSolutionVersionCard()}</div>${this._getSolutionContents()}</calcite-panel></calcite-shell>` : i`<calcite-shell class="position-relative background-color-2"><calcite-panel class="padding-end-xxl panel-background-2 border-none" slot=panel-bottom><div class="display-flex flex-direction-column overflow-hidden"><div class="background-color-2 padding-top-xxl">${this._getSolutionPanel()}</div>${this._getSolutionContents()}</div></calcite-panel><calcite-shell-panel class="panel-background-1" slot=panel-end>${this._getButtons()}${this._getOwnerSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getFolderSection()}<div class="bottom-border margin-start-end-xxl"></div>${this._getSolutionVersionCard()}</calcite-shell-panel>${this._renderDiagramDialog()}${this._getConfigureTitlesDialog()}${this._getDeleteDialog()}</calcite-shell>`;
85
85
  }
86
86
  async _deployedCardSelected(e) {
87
87
  const t = e.detail;
88
88
  this.card = t.card, this.cardRef = t.cardRef, this.templateInfos = [], this._accordionLoading = !0, this.templateInfos = await this._getTemplates(), this._accordionLoading = !1;
89
- const i = await S(this._configContextConsumer.value.userSession, this.card);
90
- this._nonSolutionDependencyItems = i._nonSolutionDependencyItems;
91
- const n = $(this._configContextConsumer.value?.allCards || [], this.card.deployCommonId);
89
+ const o = await D(this._configContextConsumer.value.userSession, this.card);
90
+ this._nonSolutionDependencyItems = o._nonSolutionDependencyItems;
91
+ const n = C(this._configContextConsumer.value?.allCards || [], this.card.deployCommonId);
92
92
  let a = !1;
93
93
  if (n) {
94
94
  const l = p(n), c = p(this.card);
@@ -100,14 +100,14 @@ class T extends f {
100
100
  e.detail === "deployed-card" && this.sortTypeChanged.emit("");
101
101
  }
102
102
  _getButtons() {
103
- const e = this._configContextConsumer.value?.userSession?.username, t = this._configContextConsumer.value?.authentication?.CanUpdateSolution, i = this._configContextConsumer.value?.authentication?.CanDeleteSolution && this._configContextConsumer.value?.authentication?.CanUpdateSolution, n = this.card?.owner === e || this._isOrgAdmin || t, a = this.card?.owner === e || this._isOrgAdmin || i, l = n ? "display-none" : "", c = this.isMobile ? "padding-lg" : "padding-xxl";
104
- return o`<div class=${`display-flex flex-direction-column ${c}`}>${!this.isMobile && o`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openDiagram}>${this._translations.viewTheDiagram}</calcite-button>` || ""}<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._viewDocumentation}>${this._translations.solutionDocumentation}</calcite-button><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openItemDetails}>${this._translations.itemDetails}</calcite-button>${n && !this.isMobile && o`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" id=solution-configure-titles-button kind=neutral @click=${this._openConfigureTitlesDialog}>${this._translations.updateTitles}</calcite-button><calcite-tooltip class=${b(l)} overlay-positioning=fixed reference-element=solution-configure-titles-button><span>${this._translations.mustOwnSolution}</span></calcite-tooltip>` || ""}${a && !this.isMobile && o`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._deleteSolution}>${this._translations.deleteSolution}</calcite-button>` || ""}</div>`;
103
+ const e = this._configContextConsumer.value?.userSession?.username, t = this._configContextConsumer.value?.authentication?.CanUpdateSolution, o = this._configContextConsumer.value?.authentication?.CanDeleteSolution && this._configContextConsumer.value?.authentication?.CanUpdateSolution, n = this.card?.owner === e || this._isOrgAdmin || t, a = this.card?.owner === e || this._isOrgAdmin || o, l = n ? "display-none" : "", c = this.isMobile ? "padding-lg" : "padding-xxl";
104
+ return i`<div class=${`display-flex flex-direction-column ${c}`}>${!this.isMobile && i`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openDiagram}>${this._translations.viewTheDiagram}</calcite-button>` || ""}<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._viewDocumentation}>${this._translations.solutionDocumentation}</calcite-button><calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._openItemDetails}>${this._translations.itemDetails}</calcite-button>${n && !this.isMobile && i`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" id=solution-configure-titles-button kind=neutral @click=${this._openConfigureTitlesDialog}>${this._translations.updateTitles}</calcite-button><calcite-tooltip class=${b(l)} overlay-positioning=fixed reference-element=solution-configure-titles-button><span>${this._translations.mustOwnSolution}</span></calcite-tooltip>` || ""}${a && !this.isMobile && i`<calcite-button appearance=outline class="padding-bottom-lg solution-deployed-action" kind=neutral @click=${this._deleteSolution}>${this._translations.deleteSolution}</calcite-button>` || ""}</div>`;
105
105
  }
106
106
  _openConfigureTitlesDialog() {
107
107
  this._configureTitlesOpen = !0;
108
108
  }
109
109
  _getConfigureTitlesDialog() {
110
- return this._configureTitlesOpen ? o`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${async () => {
110
+ return this._configureTitlesOpen ? i`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${async () => {
111
111
  this.templateInfos = await this._getTemplates(), this._configureTitlesOpen = !1;
112
112
  }} @solutionItemsTitlesChanged=${async () => {
113
113
  this.templateInfos = await this._getTemplates();
@@ -141,7 +141,7 @@ class T extends f {
141
141
  if (!this._configContextConsumer?.value)
142
142
  return;
143
143
  const e = this.isMobile ? "margin-start-end-lg" : "margin-start-end-xxl";
144
- return o`<div class=${`display-flex padding-bottom-xxl ${e} flex-direction-column`}><div class="display-flex justify-between items-baseline"><calcite-label class="font-weight-med label-override tabbing-offset" layout=inline scale=l tabindex=0>${this._translations.aboutYourSolutionOwner}</calcite-label></div><solution-user-avatar .fullname=${this._user?.username === this.card?.owner ? this._user?.fullName : void 0} .lookupProfile=${this._user?.username !== this.card?.owner} .thumbnailUrl=${this._user?.username === this.card?.owner ? this._user?.thumbnailUrl : void 0} .username=${this.card?.owner}></solution-user-avatar></div>`;
144
+ return i`<div class=${`display-flex padding-bottom-xxl ${e} flex-direction-column`}><div class="display-flex justify-between items-baseline"><calcite-label class="font-weight-med label-override tabbing-offset" layout=inline scale=l tabindex=0>${this._translations.aboutYourSolutionOwner}</calcite-label></div><solution-user-avatar .fullname=${this._user?.username === this.card?.owner ? this._user?.fullName : void 0} .lookupProfile=${this._user?.username !== this.card?.owner} .thumbnailUrl=${this._user?.username === this.card?.owner ? this._user?.thumbnailUrl : void 0} .username=${this.card?.owner}></solution-user-avatar></div>`;
145
145
  }
146
146
  async _openDiagram(e) {
147
147
  e.stopPropagation();
@@ -168,8 +168,8 @@ class T extends f {
168
168
  return;
169
169
  const t = await h.getItemBase(this.card.id, e);
170
170
  if (this._folderId = t.ownerFolder ?? null, this._folderId) {
171
- const i = await h.getUserFolder(this.card.owner, this._folderId, e);
172
- this._folderName = i?.currentFolder?.title || this._folderId;
171
+ const o = await h.getUserFolder(this.card.owner, this._folderId, e);
172
+ this._folderName = o?.currentFolder?.title || this._folderId;
173
173
  } else
174
174
  this._folderName = this.card.owner || "Root";
175
175
  } catch (e) {
@@ -177,12 +177,12 @@ class T extends f {
177
177
  }
178
178
  }
179
179
  _getFolderSection() {
180
- const e = this.isMobile ? "padding-lg" : "padding-xxl", i = !this._folderId ? "home" : "folder";
181
- return o`<div class=${`${e} display-flex flex-direction-column`}><div class="display-flex justify-between items-baseline"><calcite-label class="font-weight-med label-override tabbing-offset" layout=inline scale=l slot=heading tabindex=0>${this._translations.folder}</calcite-label><calcite-button appearance=transparent .disabled=${this._folderLoading} kind=neutral icon-start=launch2 @click=${this._openFolder}>${this._translations.openFolder}</calcite-button></div><div class="display-flex"><div class="display-flex flex-direction-row padding-top-lg align-items-center">${this._folderLoading ? o`<div class="skeleton-loader skeleton-folder"></div>` : o`<calcite-icon class="icon-color" .icon=${i} scale=m></calcite-icon><div class="display-flex flex-direction-column padding-start-xxl"><span class="tabbing-offset" tabindex=0>${this._folderName || "Root"}</span></div>`}</div></div></div>`;
180
+ const e = this.isMobile ? "padding-lg" : "padding-xxl", o = !this._folderId ? "home" : "folder";
181
+ return i`<div class=${`${e} display-flex flex-direction-column`}><div class="display-flex justify-between items-baseline"><calcite-label class="font-weight-med label-override tabbing-offset" layout=inline scale=l slot=heading tabindex=0>${this._translations.folder}</calcite-label><calcite-button appearance=transparent .disabled=${this._folderLoading} kind=neutral icon-start=launch2 @click=${this._openFolder}>${this._translations.openFolder}</calcite-button></div><div class="display-flex"><div class="display-flex flex-direction-row padding-top-lg align-items-center">${this._folderLoading ? i`<div class="skeleton-loader skeleton-folder"></div>` : i`<calcite-icon class="icon-color" .icon=${o} scale=m></calcite-icon><div class="display-flex flex-direction-column padding-start-xxl"><span class="tabbing-offset" tabindex=0>${this._folderName || "Root"}</span></div>`}</div></div></div>`;
182
182
  }
183
183
  _getSolutionVersionCard() {
184
184
  const e = this._hasNewVersion ? this._translations.newVersionAvailable : this._translations.youHaveTheLatestVersion, t = this.isMobile ? "padding-lg" : "padding-xxl";
185
- return o`<div class=${`${t} display-flex flex-direction-column`}><calcite-label class="font-weight-med label-override tabbing-offset" layout=inline scale=l slot=heading tabindex=0>${this._translations.solutionVersion.replace("{{version}}", this.card?.deployVersion || "")}</calcite-label><div class="display-flex"><div class="display-flex flex-direction-row padding-top-lg align-items-center"><calcite-icon class="icon-color" icon=clock-forward scale=m></calcite-icon><div class="display-flex flex-direction-column padding-start-xxl"><span class="tabbing-offset" tabindex=0>${e}</span></div></div></div>${this._hasNewVersion ? o`<calcite-button appearance=outline class="padding-top-lg solution-deployed-action" kind=neutral @click=${this._openNewVersionSolution} width=full>${this._translations.learnMoreNewVersion}</calcite-button>` : ""}</div>`;
185
+ return i`<div class=${`${t} display-flex flex-direction-column`}><calcite-label class="font-weight-med label-override tabbing-offset" layout=inline scale=l slot=heading tabindex=0>${this._translations.solutionVersion.replace("{{version}}", this.card?.deployVersion || "")}</calcite-label><div class="display-flex"><div class="display-flex flex-direction-row padding-top-lg align-items-center"><calcite-icon class="icon-color" icon=clock-forward scale=m></calcite-icon><div class="display-flex flex-direction-column padding-start-xxl"><span class="tabbing-offset" tabindex=0>${e}</span></div></div></div>${this._hasNewVersion ? i`<calcite-button appearance=outline class="padding-top-lg solution-deployed-action" kind=neutral @click=${this._openNewVersionSolution} width=full>${this._translations.learnMoreNewVersion}</calcite-button>` : ""}</div>`;
186
186
  }
187
187
  async _openNewVersionSolution(e) {
188
188
  e.stopPropagation(), this._telemetry?.logEvent({
@@ -193,27 +193,24 @@ class T extends f {
193
193
  this.card?.deployCommonId || "",
194
194
  this.card?.deployVersion || ""
195
195
  ]
196
- }), await new Promise((i) => setTimeout(i, 100));
197
- const t = C(this._configContextConsumer.value.allCards, this.card.deployCommonId);
196
+ }), await new Promise((o) => setTimeout(o, 100));
197
+ const t = $(this._configContextConsumer.value.allCards, this.card.deployCommonId);
198
198
  t && this.forceSelectTab.emit({ tabType: "details", tabTitleOrId: t });
199
199
  }
200
200
  _getSolutionPanel() {
201
- return o`<calcite-panel class="font-size-override panel-background-1"><div class="display-flex flex-direction-row"><div class="image-width margin-xl"><img alt=${this.card?.title ?? d} src=${this._thumbnailUrl ?? d}></div><div class="display-flex flex-direction-column"><h1 class="title-font margin-block-start-end-0 padding-end-xxl padding-start-sm padding-top-xxl padding-bottom-xxl line-height-1 negative-tabbing-offset" tabindex=0>${this.card?.title}</h1><div class="display-flex flex-direction-column padding-bottom-xxl padding-start-sm"><div class="display-flex align-items-start padding-bottom-xxl"><div class="font-1 padding-end-1 line-height-xxl negative-tabbing-offset" tabindex=0>${this.card?.snippet}</div></div><div class="display-flex"><div class="display-flex"><calcite-label class="label-override icon-color tabbing-offset" layout=inline tabindex=0><calcite-icon class="icon-color" icon=projects scale=s></calcite-icon>${this._translations.aboutYourSolutionDeployedDate.replace("{{deployedDate}}", this.card?.created || "")}</calcite-label></div></div></div></div></div></calcite-panel>`;
201
+ return i`<calcite-panel class="font-size-override panel-background-1"><div class="display-flex flex-direction-row"><div class="image-width margin-xl"><img alt=${this.card?.title ?? d} src=${this._thumbnailUrl ?? d}></div><div class="display-flex flex-direction-column"><h1 class="title-font margin-block-start-end-0 padding-end-xxl padding-start-sm padding-top-xxl padding-bottom-xxl line-height-1 negative-tabbing-offset" tabindex=0>${this.card?.title}</h1><div class="display-flex flex-direction-column padding-bottom-xxl padding-start-sm"><div class="display-flex align-items-start padding-bottom-xxl"><div class="font-1 padding-end-1 line-height-xxl negative-tabbing-offset" tabindex=0>${this.card?.snippet}</div></div><div class="display-flex"><div class="display-flex"><calcite-label class="label-override icon-color tabbing-offset" layout=inline tabindex=0><calcite-icon class="icon-color" icon=projects scale=s></calcite-icon>${this._translations.aboutYourSolutionDeployedDate.replace("{{deployedDate}}", this.card?.created || "")}</calcite-label></div></div></div></div></div></calcite-panel>`;
202
202
  }
203
203
  _getSolutionContents() {
204
- const e = new Set(this._nonSolutionDependencyItems.filter((i) => i.dependencyItemId !== this.card.id).map((i) => `${i.controlItemId}|${i.dependencyItemId}`)), t = Array.from(e).map((i) => {
205
- const [n, a] = i.split("|");
206
- return { controlItemId: n, dependencyItemId: a };
207
- });
208
- return o`<calcite-panel class="panel-background-1 padding-top-xxl"><calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded><div class="margin-block-start-end-0 heading-font " slot=content-start>${this._translations.solutionsContentsAndCount.replace("{{numberOfSolutions}}", this.templateInfos.length.toString())}</div><div class="overflow-auto">${this._accordionLoading ? o`<calcite-loader .label=${this._translations.loadingText} scale=m></calcite-loader>` : o`<solution-item-accordion .itemRelationshipDependencies=${t} .listSelectionMode=${t.length > 0 ? "multiple" : "single"} .reuseWarning=${this._translations.itemUsedInOtherSolutions} .templateInfos=${this.templateInfos} .typeKeywords=${this.card?.typeKeywords}></solution-item-accordion>`}</div></calcite-accordion-item></calcite-accordion></calcite-panel>`;
204
+ const e = T(this._nonSolutionDependencyItems, this.card.id);
205
+ return i`<calcite-panel class="panel-background-1 padding-top-xxl"><calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded><div class="margin-block-start-end-0 heading-font " slot=content-start>${this._translations.solutionsContentsAndCount.replace("{{numberOfSolutions}}", this.templateInfos.length.toString())}</div><div class="overflow-auto">${this._accordionLoading ? i`<calcite-loader .label=${this._translations.loadingText} scale=m></calcite-loader>` : i`<solution-item-accordion .itemRelationshipDependencies=${e} .listSelectionMode=${e.length > 0 ? "multiple" : "single"} .reuseWarning=${this._translations.itemUsedInOtherSolutions} .templateInfos=${this.templateInfos} .typeKeywords=${this.card?.typeKeywords}></solution-item-accordion>`}</div></calcite-accordion-item></calcite-accordion></calcite-panel>`;
209
206
  }
210
207
  _getDeleteDialog() {
211
- return this._deleteDialogOpen ? o`<solution-delete-dialog .card=${this.card} @solutionDeleted=${() => setTimeout(() => this.navTabSelected.emit({ tabType: "deployments" }), 100)} @solutionDeleteDialogBeforeClose=${() => {
208
+ return this._deleteDialogOpen ? i`<solution-delete-dialog .card=${this.card} @solutionDeleted=${() => setTimeout(() => this.navTabSelected.emit({ tabType: "deployments" }), 100)} @solutionDeleteDialogBeforeClose=${() => {
212
209
  this._deleteDialogOpen = !1;
213
210
  }} .open=${this._deleteDialogOpen} source="Details Page"></solution-delete-dialog>` : "";
214
211
  }
215
212
  _renderDiagramDialog() {
216
- return this._isDiagramOpen ? o`<calcite-dialog class="dialog-y-size dialog-x-size panel-bg-color" .heading=${this._translations.diagramOfTheSolution.replace("{{solution}}", this.card?.title ?? "")} id=${this._translations.diagramOfTheSolution.replace("{{solution}}", this.card?.title ?? "") ?? d} modal .open=${this._isDiagramOpen} @calciteDialogClose=${() => {
213
+ return this._isDiagramOpen ? i`<calcite-dialog class="dialog-y-size dialog-x-size panel-bg-color" .heading=${this._translations.diagramOfTheSolution.replace("{{solution}}", this.card?.title ?? "")} id=${this._translations.diagramOfTheSolution.replace("{{solution}}", this.card?.title ?? "") ?? d} modal .open=${this._isDiagramOpen} @calciteDialogClose=${() => {
217
214
  this._isDiagramOpen = !1;
218
215
  }} outside-close-disabled scale=m width=l><solution-item-diagram .diagramKey=${this.diagramKey !== "" ? this.diagramKey : this._configContextConsumer.value?.diagramKey ?? ""} .templateInfoGraph=${this._templateInfoGraph} .typeKeywords=${this.card?.typeKeywords}></solution-item-diagram></calcite-dialog>` : "";
219
216
  }
@@ -221,10 +218,10 @@ class T extends f {
221
218
  this._deleteDialogOpen = !0;
222
219
  }
223
220
  _updateThumbnailToken(e) {
224
- this._thumbnailUrl !== "" && (this._thumbnailUrl = D(this._thumbnailUrl, e));
221
+ this._thumbnailUrl !== "" && (this._thumbnailUrl = S(this._thumbnailUrl, e));
225
222
  }
226
223
  }
227
- m("solution-deployed-card-panel", T);
224
+ u("solution-deployed-card-panel", O);
228
225
  export {
229
- T as SolutionDeployedCardPanel
226
+ O as SolutionDeployedCardPanel
230
227
  };