@esri/solutions-components 5.0.2-next.9 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/dist/cdn/{N5PYWRMD.js → C2MDLUTX.js} +1 -1
  2. package/dist/cdn/{HPBIBS4W.js → JIPE2UQ3.js} +1 -1
  3. package/dist/cdn/{6CJGNF3Y.js → KKI72ISR.js} +1 -1
  4. package/dist/cdn/{JQO5U72D.js → LQ3CLDU5.js} +1 -1
  5. package/dist/cdn/{WFWPXGGK.js → YQECYE4M.js} +1 -1
  6. package/dist/cdn/assets/create-feature/t9n/messages.ar.json +1 -1
  7. package/dist/cdn/assets/create-feature/t9n/messages.bg.json +1 -1
  8. package/dist/cdn/assets/create-feature/t9n/messages.bs.json +1 -1
  9. package/dist/cdn/assets/create-feature/t9n/messages.ca.json +1 -1
  10. package/dist/cdn/assets/create-feature/t9n/messages.cs.json +1 -1
  11. package/dist/cdn/assets/create-feature/t9n/messages.da.json +1 -1
  12. package/dist/cdn/assets/create-feature/t9n/messages.de.json +1 -1
  13. package/dist/cdn/assets/create-feature/t9n/messages.el.json +1 -1
  14. package/dist/cdn/assets/create-feature/t9n/messages.es.json +1 -1
  15. package/dist/cdn/assets/create-feature/t9n/messages.et.json +1 -1
  16. package/dist/cdn/assets/create-feature/t9n/messages.fi.json +1 -1
  17. package/dist/cdn/assets/create-feature/t9n/messages.fr.json +1 -1
  18. package/dist/cdn/assets/create-feature/t9n/messages.he.json +1 -1
  19. package/dist/cdn/assets/create-feature/t9n/messages.hr.json +1 -1
  20. package/dist/cdn/assets/create-feature/t9n/messages.hu.json +1 -1
  21. package/dist/cdn/assets/create-feature/t9n/messages.id.json +1 -1
  22. package/dist/cdn/assets/create-feature/t9n/messages.it.json +1 -1
  23. package/dist/cdn/assets/create-feature/t9n/messages.ja.json +1 -1
  24. package/dist/cdn/assets/create-feature/t9n/messages.ko.json +1 -1
  25. package/dist/cdn/assets/create-feature/t9n/messages.lt.json +1 -1
  26. package/dist/cdn/assets/create-feature/t9n/messages.lv.json +1 -1
  27. package/dist/cdn/assets/create-feature/t9n/messages.nl.json +1 -1
  28. package/dist/cdn/assets/create-feature/t9n/messages.no.json +1 -1
  29. package/dist/cdn/assets/create-feature/t9n/messages.pl.json +1 -1
  30. package/dist/cdn/assets/create-feature/t9n/messages.pt-BR.json +1 -1
  31. package/dist/cdn/assets/create-feature/t9n/messages.pt-PT.json +1 -1
  32. package/dist/cdn/assets/create-feature/t9n/messages.ro.json +1 -1
  33. package/dist/cdn/assets/create-feature/t9n/messages.ru.json +1 -1
  34. package/dist/cdn/assets/create-feature/t9n/messages.sk.json +1 -1
  35. package/dist/cdn/assets/create-feature/t9n/messages.sl.json +1 -1
  36. package/dist/cdn/assets/create-feature/t9n/messages.sr.json +1 -1
  37. package/dist/cdn/assets/create-feature/t9n/messages.sv.json +1 -1
  38. package/dist/cdn/assets/create-feature/t9n/messages.th.json +1 -1
  39. package/dist/cdn/assets/create-feature/t9n/messages.tr.json +1 -1
  40. package/dist/cdn/assets/create-feature/t9n/messages.uk.json +1 -1
  41. package/dist/cdn/assets/create-feature/t9n/messages.vi.json +1 -1
  42. package/dist/cdn/assets/create-feature/t9n/messages.zh-CN.json +1 -1
  43. package/dist/cdn/assets/create-feature/t9n/messages.zh-HK.json +1 -1
  44. package/dist/cdn/assets/create-feature/t9n/messages.zh-TW.json +1 -1
  45. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ar.json +1 -1
  46. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.bg.json +1 -1
  47. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.bs.json +1 -1
  48. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ca.json +1 -1
  49. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.cs.json +1 -1
  50. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.da.json +1 -1
  51. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.de.json +1 -1
  52. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.el.json +1 -1
  53. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.es.json +1 -1
  54. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.et.json +1 -1
  55. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.fi.json +1 -1
  56. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.fr.json +1 -1
  57. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.he.json +1 -1
  58. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.hr.json +1 -1
  59. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.hu.json +1 -1
  60. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.id.json +1 -1
  61. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.it.json +1 -1
  62. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ja.json +1 -1
  63. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ko.json +1 -1
  64. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.lt.json +1 -1
  65. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.lv.json +1 -1
  66. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.nl.json +1 -1
  67. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.no.json +1 -1
  68. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.pl.json +1 -1
  69. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.pt-BR.json +1 -1
  70. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.pt-PT.json +1 -1
  71. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ro.json +1 -1
  72. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ru.json +1 -1
  73. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.sk.json +1 -1
  74. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.sl.json +1 -1
  75. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.sr.json +1 -1
  76. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.sv.json +1 -1
  77. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.th.json +1 -1
  78. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.tr.json +1 -1
  79. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.uk.json +1 -1
  80. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.vi.json +1 -1
  81. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.zh-CN.json +1 -1
  82. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.zh-HK.json +1 -1
  83. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.zh-TW.json +1 -1
  84. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.ar.json +1 -1
  85. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.bg.json +1 -1
  86. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.bs.json +1 -1
  87. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.ca.json +1 -1
  88. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.cs.json +1 -1
  89. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.da.json +1 -1
  90. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.de.json +1 -1
  91. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.el.json +1 -1
  92. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.es.json +1 -1
  93. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.et.json +1 -1
  94. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.fi.json +1 -1
  95. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.fr.json +1 -1
  96. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.he.json +1 -1
  97. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.hr.json +1 -1
  98. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.hu.json +1 -1
  99. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.id.json +1 -1
  100. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.it.json +1 -1
  101. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.ja.json +1 -1
  102. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.ko.json +1 -1
  103. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.lt.json +1 -1
  104. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.lv.json +1 -1
  105. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.nl.json +1 -1
  106. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.no.json +1 -1
  107. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.pl.json +1 -1
  108. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.pt-BR.json +1 -1
  109. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.pt-PT.json +1 -1
  110. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.ro.json +1 -1
  111. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.ru.json +1 -1
  112. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.sk.json +1 -1
  113. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.sl.json +1 -1
  114. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.sr.json +1 -1
  115. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.sv.json +1 -1
  116. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.th.json +1 -1
  117. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.tr.json +1 -1
  118. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.uk.json +1 -1
  119. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.vi.json +1 -1
  120. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.zh-CN.json +1 -1
  121. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.zh-HK.json +1 -1
  122. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.zh-TW.json +1 -1
  123. package/dist/cdn/index.js +1 -1
  124. package/dist/chunks/solution-deploy-dialog.js +1 -1
  125. package/dist/components/solution-details-panel/customElement.js +81 -81
  126. package/dist/docs/api.json +1 -1
  127. package/dist/docs/docs.json +1 -1
  128. package/dist/docs/web-types.json +1 -1
  129. package/dist/solutions-components_commit.txt +5 -8
  130. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
2
  import { c as S } from "../../chunks/runtime.js";
3
3
  import { u as I } from "../../chunks/useT9n.js";
4
- import { createRef as d, ref as h } from "lit-html/directives/ref.js";
4
+ import { createRef as h, ref as p } from "lit-html/directives/ref.js";
5
5
  import { LitElement as C, createEvent as f, safeClassMap as u, nothing as y, safeStyleMap as D } from "@arcgis/lumina";
6
6
  import { useContextConsumer as w } from "@arcgis/lumina/context";
7
- import { E as m, V as E, g as x, A as L, G as R, T as g, W as b, X as T, K as $, J as P, Y as A, Z as O, D as U } from "../../chunks/interfaces.js";
8
- import { css as N, html as a } from "lit";
7
+ import { E as m, V as L, g as x, A as E, G as R, T as g, W as b, X as T, K as $, J as P, Y as A, Z as O, D as U } from "../../chunks/interfaces.js";
8
+ import { css as N, html as l } from "lit";
9
9
  import { request as F, getWorkflowBaseURL as H, getWorkflowManagerAuthorized as V, sanitizeHTML as _, getItemDataAsJson as z, getItem as B, getPropWithDefault as M, getProp as v, setCreateProp as Y } from "@esri/solution-common";
10
10
  import { _findExistingItem as G } from "@esri/solution-deployer";
11
11
  import "../../chunks/solution-deploy-dialog.js";
@@ -18,13 +18,13 @@ async function K(n, e, t) {
18
18
  "",
19
19
  // the portal url
20
20
  e
21
- ) && i.push(m.NOTEBOOK), await E(e) ? t.push(m.VELOCITY) : n?.PortalUserPrivileges && [
21
+ ) && i.push(m.NOTEBOOK), await L(e) ? t.push(m.VELOCITY) : n?.PortalUserPrivileges && [
22
22
  x.VELOCITYFEEDS,
23
23
  x.VELOCITYBIGDATA,
24
24
  x.VELOCITYREALTIME
25
- ].forEach((l) => {
26
- const r = t.indexOf(l) || -1;
27
- r !== -1 && t.splice(r, 1);
25
+ ].forEach((o) => {
26
+ const c = t.indexOf(o) || -1;
27
+ c !== -1 && t.splice(c, 1);
28
28
  }), i = i.concat(
29
29
  q(
30
30
  Z(n),
@@ -60,7 +60,7 @@ async function X(n, e) {
60
60
  f: "json"
61
61
  }
62
62
  };
63
- return F(`${t}/portals/self/servers`, i).then((s) => s?.servers?.find((o) => o.serverFunction.indexOf("NotebookServer") > -1), (s) => (console.error(s), !1));
63
+ return F(`${t}/portals/self/servers`, i).then((s) => s?.servers?.find((a) => a.serverFunction.indexOf("NotebookServer") > -1), (s) => (console.error(s), !1));
64
64
  }
65
65
  function Z(n) {
66
66
  const e = n?.PortalUserSubset?.privileges, t = [
@@ -82,13 +82,13 @@ function ee(n) {
82
82
  class te extends C {
83
83
  constructor() {
84
84
  super(), this._isDeployDisabled = !1, this._isLoaded = !1, this._showScreenshotsShowMore = !1, this._showYouMayAlsoLikeShowMore = !1, this.isMobile = !1, this._isScreenshotsRowExpanded = !1, this._isYouMayAlsoLikeRowExpanded = !1, this._screenshotsRowBaseHeight = 340, this._showLoader = !1, this._templates = [], this._translations = I({ name: "solution-details-panel", blocking: !0 }), this._youMayAlsoLikeBaseHeight = 340, this._allCards = [], this._configContextConsumer = w({
85
- context: L,
85
+ context: E,
86
86
  subscribe: !0
87
- }), this._configureLearnMore = "", this._customDeploymentMappings = {}, this._deployDialogRef = d(), this._deployingDialogRef = d(), this._isMobileContextConsumer = w({
87
+ }), this._configureLearnMore = "", this._customDeploymentMappings = {}, this._deployDialogRef = h(), this._deployingDialogRef = h(), this._isMobileContextConsumer = w({
88
88
  context: R,
89
89
  subscribe: !0,
90
90
  callback: (e) => this.isMobile = e
91
- }), this._overviewAccordionItemElement = d(), this._privilegePopoverRef = d(), this._privileges = [], this._regexFsUrl = "https?:\\/\\/.+FeatureServer\\b", this._regexID = "\\b[0-9A-F]{32}\\b", this._releaseNotesAccordionItemElement = d(), this._relatedResourcesAccordionItemElement = d(), this._screenshotsAccordionItemElement = d(), this._screenshotsDialogRef = d(), this._screenshotsElement = d(), this._termsOfUseAccordionItemElement = d(), this._userOptions = [], this._youMayAlsoLikeAccordionItemElement = d(), this._youMayAlsoLikeElement = d(), this._signInParamValue = null, this._deploymentStartTime = null, this._cancellationStartTime = null, this._deployToCancelDuration = 0, this.templatesFetched = f(), this.itemPropertiesFetched = f(), this.sortTypeChanged = f(), this.tokenRefreshed = f(), this._handleDeployCancelled = () => {
91
+ }), this._overviewAccordionItemElement = h(), this._privilegePopoverRef = h(), this._privileges = [], this._regexFsUrl = "https?:\\/\\/.+FeatureServer\\b", this._regexID = "\\b[0-9A-F]{32}\\b", this._releaseNotesAccordionItemElement = h(), this._relatedResourcesAccordionItemElement = h(), this._screenshotsAccordionItemElement = h(), this._screenshotsDialogRef = h(), this._screenshotsElement = h(), this._termsOfUseAccordionItemElement = h(), this._userOptions = [], this._youMayAlsoLikeAccordionItemElement = h(), this._youMayAlsoLikeElement = h(), this._signInParamValue = null, this._deploymentStartTime = null, this._cancellationStartTime = null, this._deployToCancelDuration = 0, this.templatesFetched = f(), this.itemPropertiesFetched = f(), this.sortTypeChanged = f(), this.tokenRefreshed = f(), this._handleDeployCancelled = () => {
92
92
  this._telemetry?.logEvent({
93
93
  category: g.SOLUTION_DETAILS,
94
94
  action: "Deploy Dialog Canceled",
@@ -169,15 +169,15 @@ class te extends C {
169
169
  }
170
170
  render() {
171
171
  const e = "padding-bottom-1-5", t = this._getRelatedResources(), i = this._getYouMayAlsoLikeCards();
172
- return a`<calcite-shell class="position-relative background-color-2"><calcite-panel class="panel-background-2 border-none" slot=panel-bottom><div class="margin-top-875 padding-1-5 back-color-override-1 margin-bottom-1-5" id=solution-details-row>${this._getSolutionRow()}</div><div class=${u(e)}>${this._getScreenshotsRow()}</div><div class=${u(e)}>${this._getOverviewRow()}</div><div class=${u(e)}>${this._getReleaseNotesRow()}</div>${t.length > 0 ? a`<div class=${u(e)}>${this._getRelatedResourcesRow(t)}</div>` : ""}${i.length > 0 ? a`<div class=${u(e)}>${this._getYouMayAlsoLikeRow(i)}</div>` : ""}<div class=${u(e)}>${this._getTermsOfUseRow()}</div>${this.isMobile ? "" : a`<solution-deploy-dialog .card=${this.card} @deployCancelled=${this._handleDeployCancelled} @deployFailed=${this._handleDeployFailed} @deployProgressEnd=${this._handleDeploySuccess} @deployProgressStart=${this._deployProgressStart} @deployProgressUpdated=${this._deployProgessUpdated} id=solutionDeployDialog .userOptions=${this._userOptions} ${h(this._deployDialogRef)}></solution-deploy-dialog>`}<solution-snapshot-gallery .card=${this.card} id=solutionSnapshotGallery .itemProperties=${this._itemProperties} ${h(this._screenshotsDialogRef)}></solution-snapshot-gallery><solution-deploying-dialog .card=${this.card} @deploymentProcessCancelled=${this._handleDeploymentProcessCancelled} ${h(this._deployingDialogRef)}></solution-deploying-dialog></calcite-panel></calcite-shell>`;
172
+ return l`<calcite-shell class="position-relative background-color-2"><calcite-panel class="panel-background-2 border-none" slot=panel-bottom><div class="margin-top-875 padding-1-5 back-color-override-1 margin-bottom-1-5" id=solution-details-row>${this._getSolutionRow()}</div><div class=${u(e)}>${this._getScreenshotsRow()}</div><div class=${u(e)}>${this._getOverviewRow()}</div><div class=${u(e)}>${this._getReleaseNotesRow()}</div>${t.length > 0 ? l`<div class=${u(e)}>${this._getRelatedResourcesRow(t)}</div>` : ""}${i.length > 0 ? l`<div class=${u(e)}>${this._getYouMayAlsoLikeRow(i)}</div>` : ""}<div class=${u(e)}>${this._getTermsOfUseRow()}</div>${this.isMobile ? "" : l`<solution-deploy-dialog .card=${this.card} @deployCancelled=${this._handleDeployCancelled} @deployFailed=${this._handleDeployFailed} @deployProgressEnd=${this._handleDeploySuccess} @deployProgressStart=${this._deployProgressStart} @deployProgressUpdated=${this._deployProgessUpdated} id=solutionDeployDialog .userOptions=${this._userOptions} ${p(this._deployDialogRef)}></solution-deploy-dialog>`}<solution-snapshot-gallery .card=${this.card} id=solutionSnapshotGallery .itemProperties=${this._itemProperties} ${p(this._screenshotsDialogRef)}></solution-snapshot-gallery><solution-deploying-dialog .card=${this.card} @deploymentProcessCancelled=${this._handleDeploymentProcessCancelled} ${p(this._deployingDialogRef)}></solution-deploying-dialog></calcite-panel></calcite-shell>`;
173
173
  }
174
174
  updated() {
175
175
  setTimeout(() => {
176
176
  const e = this._getYouMayAlsoLikeCards();
177
177
  let t = 340;
178
178
  for (let i = 0; i < e.length; i++) {
179
- const s = this.el.shadowRoot?.getElementById(`you-may-also-like-${i}`), o = s?.offsetHeight ? s.offsetHeight + 40 : 0;
180
- o > t && (t = o);
179
+ const s = this.el.shadowRoot?.getElementById(`you-may-also-like-${i}`), a = s?.offsetHeight ? s.offsetHeight + 40 : 0;
180
+ a > t && (t = a);
181
181
  }
182
182
  this._youMayAlsoLikeBaseHeight = t, this._showYouMayAlsoLikeShowMore = (this._youMayAlsoLikeElement.value?.scrollHeight || 0) > this._youMayAlsoLikeBaseHeight, this._showScreenshotsShowMore = (this._screenshotsElement.value?.scrollHeight || 0) > this._screenshotsRowBaseHeight + 2;
183
183
  }, 100);
@@ -189,41 +189,41 @@ class te extends C {
189
189
  }
190
190
  }
191
191
  _getSolutionRow() {
192
- const e = this.card?.thumbnailUrl.replace(/w=\d+/, "w=400"), t = this._missingPrivilegeMessages?.leadingMessages || [], i = t.length > 0, s = this._missingPrivilegeMessages?.bulletedMessages || [], o = s.length > 0, l = this._missingPrivilegeMessages?.trailingMessages || [], r = l.length > 0;
193
- return a`<div class="display-flex flex-direction-row width-full"><div class="padding-end-1-75 image-width"><img alt=${this.card?.title ?? y} src=${e ?? y}></div><div class="display-flex flex-direction-row flex-1">${this._getTextSection(i, o, r, t, s, l)}${this._getButtons()}</div></div>`;
192
+ const e = this.card?.thumbnailUrl.replace(/w=\d+/, "w=400"), t = this._missingPrivilegeMessages?.leadingMessages || [], i = t.length > 0, s = this._missingPrivilegeMessages?.bulletedMessages || [], a = s.length > 0, o = this._missingPrivilegeMessages?.trailingMessages || [], c = o.length > 0;
193
+ return l`<div class="display-flex flex-direction-row width-full"><div class="padding-end-1-75 image-width"><img alt=${this.card?.title ?? y} src=${e ?? y}></div><div class="display-flex flex-direction-row flex-1">${this._getTextSection(i, a, c, t, s, o)}${this._getButtons()}</div></div>`;
194
194
  }
195
- _getTextSection(e, t, i, s, o, l) {
196
- return a`<div class="display-flex flex-direction-column padding-end-1 flex-1"><div class="display-flex flex-direction-row align-items-baseline"><h1 class="padding-top-xs title-font margin-top-0 margin-bottom-1-5 line-height-1" tabindex=0>${this.card?.title}</h1>${this.card?.categories?.some((r) => r.includes("New Release")) && a`<calcite-chip class="margin-bottom-1-5 margin-sides-1" kind=brand .label=${this._translations.newChip} scale=m icon=star>${this._translations.newChip}</calcite-chip>` || ""}</div><div class="font-1 padding-end-1 line-height-xxl" tabindex=0>${this.card?.snippet}</div>${this.isMobile ? "" : e || t || i ? a`<div class="display-flex flex-direction-row padding-top-1">${this._getMissingPrivilegesNotice(s, o, l)}</div>` : ""}</div>`;
195
+ _getTextSection(e, t, i, s, a, o) {
196
+ return l`<div class="display-flex flex-direction-column padding-end-1 flex-1"><div class="display-flex flex-direction-row align-items-baseline"><h1 class="padding-top-xs title-font margin-top-0 margin-bottom-1-5 line-height-1" tabindex=0>${this.card?.title}</h1>${this.card?.categories?.some((c) => c.includes("New Release")) && l`<calcite-chip class="margin-bottom-1-5 margin-sides-1" kind=brand .label=${this._translations.newChip} scale=m icon=star>${this._translations.newChip}</calcite-chip>` || ""}</div><div class="font-1 padding-end-1 line-height-xxl" tabindex=0>${this.card?.snippet}</div>${this.isMobile ? "" : e || t || i ? l`<div class="display-flex flex-direction-row padding-top-1">${this._getMissingPrivilegesNotice(s, a, o)}</div>` : ""}</div>`;
197
197
  }
198
198
  _getButtons() {
199
199
  const e = this._itemProperties?.demoURL || "";
200
- return a`<div class="display-flex flex-direction-column button-width">${!this.isMobile && a`<calcite-button class="padding-bottom-1 solution-detail-action" .disabled=${this._isDeployDisabled} icon-flip-rtl=end @click=${() => this._checkPermissionsBeforeDeploy()} scale=m>${this._showLoader ? a`<calcite-loader inline label></calcite-loader>` : this._translations.deployButton}</calcite-button>` || ""}${!this._configContextConsumer.value?.isEnterprise && e && a`<calcite-button appearance=outline-fill kind=neutral class="padding-bottom-1 solution-detail-action" @click=${() => this._handleWatchDemoClick(e)} scale=m>${this._translations.watchDemo}</calcite-button>` || ""}<calcite-button appearance=outline-fill kind=neutral class="padding-bottom-1 solution-detail-action" @click=${() => this._handleLearnMoreClick()} scale=m>${this._translations.openHelp}</calcite-button>${!this._configContextConsumer.value?.isEnterprise && a`<solution-social-share button-appearance=outline-fill class="padding-bottom-1" share-button-kind=neutral .shareButtonText=${this._translations.share} share-button-scale=m .solutionId=${this.card?.deployCommonId || ""} .solutionTitle=${this.card?.title || ""} .solutionVersion=${this.card?.deployVersion || ""}></solution-social-share>` || ""}</div>`;
200
+ return l`<div class="display-flex flex-direction-column button-width">${!this.isMobile && l`<calcite-button class="padding-bottom-1 solution-detail-action" .disabled=${this._isDeployDisabled} icon-flip-rtl=end @click=${() => this._checkPermissionsBeforeDeploy()} scale=m>${this._showLoader ? l`<calcite-loader inline label></calcite-loader>` : this._translations.deployButton}</calcite-button>` || ""}${!this._configContextConsumer.value?.isEnterprise && e && l`<calcite-button appearance=outline-fill kind=neutral class="padding-bottom-1 solution-detail-action" @click=${() => this._handleWatchDemoClick(e)} scale=m>${this._translations.watchDemo}</calcite-button>` || ""}<calcite-button appearance=outline-fill kind=neutral class="padding-bottom-1 solution-detail-action" @click=${() => this._handleLearnMoreClick()} scale=m>${this._translations.openHelp}</calcite-button>${!this._configContextConsumer.value?.isEnterprise && l`<solution-social-share button-appearance=outline-fill class="padding-bottom-1" share-button-kind=neutral .shareButtonText=${this._translations.share} share-button-scale=m .solutionId=${this.card?.deployCommonId || ""} .solutionTitle=${this.card?.title || ""} .solutionVersion=${this.card?.deployVersion || ""}></solution-social-share>` || ""}</div>`;
201
201
  }
202
202
  _getMissingPrivilegesNotice(e, t, i) {
203
- const s = "solutions-missing-privileges-notice", o = this._translations.missingPrivilegesPopup.missingLicensingOrPrivileges, l = t.length > 0 ? "" : "display-none", r = t.length > 0 ? "padding-top-sm" : "";
204
- return a`<div><calcite-notice class="margin-inline-unset" kind=info open><div slot=message>${`${o}`}</div><calcite-action icon=information id=${s} slot=actions-end .text=${o}></calcite-action></calcite-notice><calcite-popover closable label overlay-positioning=fixed placement=bottom reference-element=solutions-missing-privileges-notice ${h(this._privilegePopoverRef)}><div class="padding-1 display-flex flex-direction-column">${// Leading messages
205
- this._getSpanMessages(e, "padding-bottom-1")}<span class=${`padding-bottom-1-2 ${l}`}>${this._translations.missingPrivilegesPopup.missingPrivilegesListHeading}</span>${// Bulleted messages
203
+ const s = "solutions-missing-privileges-notice", a = this._translations.missingPrivilegesPopup.missingLicensingOrPrivileges, o = t.length > 0 ? "" : "display-none", c = t.length > 0 ? "padding-top-sm" : "";
204
+ return l`<div><calcite-notice class="margin-inline-unset" kind=info open><div slot=message>${`${a}`}</div><calcite-action icon=information id=${s} slot=actions-end .text=${a}></calcite-action></calcite-notice><calcite-popover closable label overlay-positioning=fixed placement=bottom reference-element=solutions-missing-privileges-notice ${p(this._privilegePopoverRef)}><div class="padding-1 display-flex flex-direction-column">${// Leading messages
205
+ this._getSpanMessages(e, "padding-bottom-1")}<span class=${`padding-bottom-1-2 ${o}`}>${this._translations.missingPrivilegesPopup.missingPrivilegesListHeading}</span>${// Bulleted messages
206
206
  this._getBulletedMessages(t)}${// Trailing messages
207
- this._getSpanMessages(i, r)}</div></calcite-popover></div>`;
207
+ this._getSpanMessages(i, c)}</div></calcite-popover></div>`;
208
208
  }
209
209
  _getSpanMessages(e, t) {
210
- return e.length > 0 ? e.map((i) => a`<span class=${u(t)}>${i}</span>`) : "";
210
+ return e.length > 0 ? e.map((i) => l`<span class=${u(t)}>${i}</span>`) : "";
211
211
  }
212
212
  _getBulletedMessages(e) {
213
- return e.length > 0 ? a`<ul>${e.map((t) => a`<li>${t}</li>`)}</ul>` : "";
213
+ return e.length > 0 ? l`<ul>${e.map((t) => l`<li>${t}</li>`)}</ul>` : "";
214
214
  }
215
215
  _getScreenshotsRow() {
216
216
  const e = this._isScreenshotsRowExpanded ? this._translations.showLess : this._translations.showMore, t = this._isScreenshotsRowExpanded ? "arrow-up" : "arrow-down", i = this._showScreenshotsShowMore ? "" : "display-none";
217
- return a`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._screenshotsAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.solutionOverview}</div><calcite-panel><div class="display-flex flex-direction-column back-color-override-1"><div class="collapsible-div max-height-300" id=screenshots-subsection ${h(this._screenshotsElement)}>${this._getScreenshots()}</div><calcite-fab appearance=outline-fill class=${`align-self-center ${i}`} .icon=${t} kind=neutral @click=${() => {
217
+ return l`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${p(this._screenshotsAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.solutionOverview}</div><calcite-panel><div class="display-flex flex-direction-column back-color-override-1"><div class="collapsible-div max-height-300" id=screenshots-subsection ${p(this._screenshotsElement)}>${this._getScreenshots()}</div><calcite-fab appearance=outline-fill class=${`align-self-center ${i}`} .icon=${t} kind=neutral @click=${() => {
218
218
  this._screenshotsElement.value?.classList.toggle("expanded"), this._isScreenshotsRowExpanded = this._screenshotsElement.value.classList.contains("expanded");
219
219
  }} .text=${e} text-enabled></calcite-fab></div></calcite-panel></calcite-accordion-item></calcite-accordion>`;
220
220
  }
221
221
  _getScreenshots() {
222
- const e = this._itemProperties?.preview.filter((i) => i.format === "image") || [], t = this._configContextConsumer.value;
223
- return a`<calcite-card-group class="card-group" .label=${this._translations.solutionOverview}>${e.reduce((i, s) => {
224
- const o = $(this.card?.id || "", s.name, t.authentication);
225
- let l;
226
- return t.agoBasedEnterpriseSolutionsGroupId && t.isEnterprise && (l = $(this.card?.id || "", s.name, void 0, t.agolPortalUrl)), this.card?.id ? i.push(a`<calcite-card class=${`${this.isMobile ? "is-mobile" : "cursor-pointer not-mobile"}`} .label=${s.alt} @click=${() => this._openScreenshotGallery(s)} @keydown=${(r) => P(r, () => this._openScreenshotGallery(s))}><div class="card-image-wrap" slot=thumbnail><img alt=${s.alt ?? y} class="thumbnail card-image" slot=thumbnail src=${(l || o) ?? y}>${!this.isMobile && a`<div class="hover-text">${this._translations.openInGallery}</div>` || ""}</div></calcite-card>`) : i.push(""), i;
222
+ const e = this._itemProperties?.preview.filter((a) => a.format === "image") || [], t = this._configContextConsumer.value, i = this._isLoaded ? "" : "display-none", s = this._isLoaded ? "display-none" : "";
223
+ return l`<calcite-loader class=${u(s)} label></calcite-loader><calcite-card-group class=${`card-group ${i}`} .label=${this._translations.solutionOverview}>${e.reduce((a, o) => {
224
+ const c = $(this.card?.id || "", o.name, t.authentication);
225
+ let d;
226
+ return t.agoBasedEnterpriseSolutionsGroupId && t.isEnterprise && (d = $(this.card?.id || "", o.name, void 0, t.agolPortalUrl)), this.card?.id ? a.push(l`<calcite-card class=${`${this.isMobile ? "is-mobile" : "cursor-pointer not-mobile"}`} .label=${o.alt} @click=${() => this._openScreenshotGallery(o)} @keydown=${(r) => P(r, () => this._openScreenshotGallery(o))}><div class="card-image-wrap" slot=thumbnail><img alt=${o.alt ?? y} class="thumbnail card-image" slot=thumbnail src=${(d || c) ?? y}>${!this.isMobile && l`<div class="hover-text">${this._translations.openInGallery}</div>` || ""}</div></calcite-card>`) : a.push(""), a;
227
227
  }, [])}</calcite-card-group>`;
228
228
  }
229
229
  _openScreenshotGallery(e) {
@@ -242,40 +242,40 @@ class te extends C {
242
242
  }
243
243
  }
244
244
  _getOverviewRow() {
245
- return a`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._overviewAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.solutionDetails}</div>${this._getDescriptionRow()}${this._getInformationProductsRow()}</calcite-accordion-item></calcite-accordion>`;
245
+ return l`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${p(this._overviewAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.solutionDetails}</div>${this._getDescriptionRow()}${this._getInformationProductsRow()}</calcite-accordion-item></calcite-accordion>`;
246
246
  }
247
247
  _getDescriptionRow() {
248
- return a`<div class="display-flex flex-direction-column"><div class="font-color-2 font-1 margin-top-0 line-height-xxl padding-bottom-xxl" tabindex=0>${this.card?.snippet}</div><div class="font-color-2 font-1 margin-top-0 line-height-xxl padding-bottom-xxl" .innerHTML=${this.card?.description ?? ""} tabindex=0></div></div>`;
248
+ return l`<div class="display-flex flex-direction-column"><div class="font-color-2 font-1 margin-top-0 line-height-xxl padding-bottom-xxl" tabindex=0>${this.card?.snippet}</div><div class="font-color-2 font-1 margin-top-0 line-height-xxl padding-bottom-xxl" .innerHTML=${this.card?.description ?? ""} tabindex=0></div></div>`;
249
249
  }
250
250
  _getInformationProductsRow() {
251
- return a`<div class="display-flex flex-direction-column font-1 line-height-xxl font-color-2"><span tabindex=0>${this.card?.title ? this._translations.informationProductsSubText.replace("{{solutionTitle}}", this.card.title) : ""}</span><calcite-table bordered caption class="padding-top-1">${this._getInformationTableHeaderRow()}${this._getInformationTableRows()}</calcite-table><p tabindex=0>${this._translations.informationProductsFooterText}</p></div>`;
251
+ return l`<div class="display-flex flex-direction-column font-1 line-height-xxl font-color-2"><span tabindex=0>${this.card?.title ? this._translations.informationProductsSubText.replace("{{solutionTitle}}", this.card.title) : ""}</span><calcite-table bordered caption class="padding-top-1">${this._getInformationTableHeaderRow()}${this._getInformationTableRows()}</calcite-table><p tabindex=0>${this._translations.informationProductsFooterText}</p></div>`;
252
252
  }
253
253
  _getInformationTableHeaderRow() {
254
- return a`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.solutionItem}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header><calcite-table-header .heading=${this._translations.minimumUserType}></calcite-table-header></calcite-table-row>`;
254
+ return l`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.solutionItem}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header><calcite-table-header .heading=${this._translations.minimumUserType}></calcite-table-header></calcite-table-row>`;
255
255
  }
256
256
  _getInformationTableRows() {
257
- return (this._itemProperties?.infoProducts || []).map((t) => a`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.item) ?? ""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.description) ?? ""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.userType) ?? ""}></p></calcite-table-cell></calcite-table-row>`);
257
+ return (this._itemProperties?.infoProducts || []).map((t) => l`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.item) ?? ""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.description) ?? ""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.userType) ?? ""}></p></calcite-table-cell></calcite-table-row>`);
258
258
  }
259
259
  _getReleaseNotesRow() {
260
- return a`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._releaseNotesAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.releaseNotes}</div><div class="display-flex flex-direction-column"><calcite-table bordered caption>${this._getReleaseNotesTableHeaderRow()}${this._getReleaseNotesTableRows()}</calcite-table></div></calcite-accordion-item></calcite-accordion>`;
260
+ return l`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${p(this._releaseNotesAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.releaseNotes}</div><div class="display-flex flex-direction-column"><calcite-table bordered caption>${this._getReleaseNotesTableHeaderRow()}${this._getReleaseNotesTableRows()}</calcite-table></div></calcite-accordion-item></calcite-accordion>`;
261
261
  }
262
262
  _getReleaseNotesTableHeaderRow() {
263
- return a`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.version}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header></calcite-table-row>`;
263
+ return l`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.version}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header></calcite-table-row>`;
264
264
  }
265
265
  _getReleaseNotesTableRows() {
266
- return (this._itemProperties?.releaseNotes || [])?.map((t) => a`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.version) ?? ""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.description) ?? ""}></p></calcite-table-cell></calcite-table-row>`);
266
+ return (this._itemProperties?.releaseNotes || [])?.map((t) => l`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.version) ?? ""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.description) ?? ""}></p></calcite-table-cell></calcite-table-row>`);
267
267
  }
268
268
  _getRelatedResourcesRow(e) {
269
- return a`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._relatedResourcesAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.relatedResources}</div><div class="display-flex flex-direction-row">${e.map(() => {
270
- a`<solution-resource-card></solution-resource-card>`;
269
+ return l`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${p(this._relatedResourcesAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.relatedResources}</div><div class="display-flex flex-direction-row">${e.map(() => {
270
+ l`<solution-resource-card></solution-resource-card>`;
271
271
  })}</div></calcite-accordion-item></calcite-accordion>`;
272
272
  }
273
273
  _getRelatedResources() {
274
274
  return [];
275
275
  }
276
276
  _getYouMayAlsoLikeRow(e) {
277
- const t = this._showYouMayAlsoLikeShowMore ? "" : "display-none", i = this._isYouMayAlsoLikeRowExpanded ? this._translations.showLess : this._translations.showMore, s = this._isYouMayAlsoLikeRowExpanded ? "arrow-up" : "arrow-down", o = this._isYouMayAlsoLikeRowExpanded ? "" : { height: `${this._youMayAlsoLikeBaseHeight}px` };
278
- return a`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._youMayAlsoLikeAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.youMayAlsoLike}</div><div class="display-flex flex-direction-column"><div class="collapsible-div" id=you-may-also-like-subsection style=${D(o)} ${h(this._youMayAlsoLikeElement)}><div class="display-flex flex-direction-row"><calcite-card-group class="card-group" .label=${this._translations.youMayAlsoLike}>${e.map((l, r) => a`<solution-details-card .id=${`you-may-also-like-${r}`} .card=${l} class="padding-2px" source=you-may-also-like .referrerSolutionId=${this.card?.deployCommonId || ""} .referrerSolutionTitle=${this.card?.title || ""} .referrerSolutionVersion=${this.card?.deployVersion || ""}></solution-details-card>`)}</calcite-card-group></div></div><calcite-fab appearance=outline-fill class=${`align-self-center ${t}`} .icon=${s} kind=inverse @click=${() => {
277
+ const t = this._showYouMayAlsoLikeShowMore ? "" : "display-none", i = this._isYouMayAlsoLikeRowExpanded ? this._translations.showLess : this._translations.showMore, s = this._isYouMayAlsoLikeRowExpanded ? "arrow-up" : "arrow-down", a = this._isYouMayAlsoLikeRowExpanded ? "" : { height: `${this._youMayAlsoLikeBaseHeight}px` };
278
+ return l`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${p(this._youMayAlsoLikeAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.youMayAlsoLike}</div><div class="display-flex flex-direction-column"><div class="collapsible-div" id=you-may-also-like-subsection style=${D(a)} ${p(this._youMayAlsoLikeElement)}><div class="display-flex flex-direction-row"><calcite-card-group class="card-group" .label=${this._translations.youMayAlsoLike}>${e.map((o, c) => l`<solution-details-card .id=${`you-may-also-like-${c}`} .card=${o} class="padding-2px" source=you-may-also-like .referrerSolutionId=${this.card?.deployCommonId || ""} .referrerSolutionTitle=${this.card?.title || ""} .referrerSolutionVersion=${this.card?.deployVersion || ""}></solution-details-card>`)}</calcite-card-group></div></div><calcite-fab appearance=outline-fill class=${`align-self-center ${t}`} .icon=${s} kind=inverse @click=${() => {
279
279
  this._youMayAlsoLikeElement.value?.classList.toggle("expanded"), this._isYouMayAlsoLikeRowExpanded = this._youMayAlsoLikeElement.value.classList.contains("expanded");
280
280
  }} .text=${i} text-enabled></calcite-fab></div></calcite-accordion-item></calcite-accordion>`;
281
281
  }
@@ -284,7 +284,7 @@ class te extends C {
284
284
  return this._allCards.filter((t) => e.indexOf(t.deployCommonId) > -1);
285
285
  }
286
286
  _getTermsOfUseRow() {
287
- return a`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._termsOfUseAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.termsOfUse}</div><div class="font-color-2" .innerHTML=${(this.card?.licenseInfo || "") ?? ""} tabindex=0></div></calcite-accordion-item></calcite-accordion>`;
287
+ return l`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${p(this._termsOfUseAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.termsOfUse}</div><div class="font-color-2" .innerHTML=${(this.card?.licenseInfo || "") ?? ""} tabindex=0></div></calcite-accordion-item></calcite-accordion>`;
288
288
  }
289
289
  _openDeploy() {
290
290
  if (this._configContextConsumer.value.authentication.IsSignedIn) {
@@ -335,41 +335,41 @@ class te extends C {
335
335
  async _getItemData() {
336
336
  const e = this._configContextConsumer.value, t = e?.agoBasedEnterpriseSolutionsGroupId && e?.isEnterprise ? e.anonAgolSession : e?.userSession, i = await z(this.card.id, t), s = await B(this.card.id, t);
337
337
  this._itemProperties = s.properties, this.itemPropertiesFetched.emit(this._itemProperties);
338
- const o = A(i, this.card.typeKeywords, e?.authentication);
339
- this._privileges = t.username ? o : [], this._userPrivileges = e?.authentication && e?.userSession ? await K(e.authentication, e.userSession, e.authentication.PortalUserPrivileges) : [];
340
- const l = this._privileges.filter((p) => !this._userPrivileges.includes(p));
341
- this._missingPrivilegeMessages = O(this._translations, l), this._isDeployDisabled = this._missingPrivilegeMessages && (this._missingPrivilegeMessages.leadingMessages.length > 0 || this._missingPrivilegeMessages.bulletedMessages.length > 0 || this._missingPrivilegeMessages.trailingMessages.length > 0);
342
- const r = i.params ? await this.formatParams(i.params) : [];
343
- this._userOptions = r, this._templates = i.templates, this.templatesFetched.emit(i.templates), this._checkUrlParametersForAutoDeployment(), this._isLoaded = !0, this._showLoader && (this._showLoader = !1, this._isDeployDisabled || this._openDeploy());
338
+ const a = A(i, this.card.typeKeywords, e?.authentication);
339
+ this._privileges = t.username ? a : [], this._userPrivileges = e?.authentication && e?.userSession ? await K(e.authentication, e.userSession, e.authentication.PortalUserPrivileges) : [];
340
+ const o = this._privileges.filter((d) => !this._userPrivileges.includes(d));
341
+ this._missingPrivilegeMessages = O(this._translations, o), this._isDeployDisabled = this._missingPrivilegeMessages && (this._missingPrivilegeMessages.leadingMessages.length > 0 || this._missingPrivilegeMessages.bulletedMessages.length > 0 || this._missingPrivilegeMessages.trailingMessages.length > 0);
342
+ const c = i.params ? await this.formatParams(i.params) : [];
343
+ this._userOptions = c, this._templates = i.templates, this.templatesFetched.emit(i.templates), this._checkUrlParametersForAutoDeployment(), this._isLoaded = !0, this._showLoader && (this._showLoader = !1, this._isDeployDisabled || this._openDeploy());
344
344
  }
345
345
  formatParams(e) {
346
- const t = this._configContextConsumer.value.userSession, i = [], s = e ? Object.keys(e) : [], o = {
346
+ const t = this._configContextConsumer.value.userSession, i = [], s = e ? Object.keys(e) : [], a = {
347
347
  id: "",
348
348
  props: [],
349
349
  accordionDisplay: !1
350
350
  };
351
351
  if (s.length > 0) {
352
- const l = [];
353
- return s.forEach((r) => {
354
- const p = e[r];
355
- p.valueType && p.valueType.toLowerCase() === "itemid" && l.push(this._findExistingItem(r, "Feature Service", t.username || ""));
356
- }), Promise.all(l).then((r) => {
357
- const p = {};
358
- return r.forEach((c) => {
359
- if (c.query && c.results && c.results.length > 0) {
360
- const k = c.query.split(" ")[0].replace("typekeywords:source-", "");
361
- p[k] = {
362
- resultId: c.results[0].id,
363
- response: c.results[0]
352
+ const o = [];
353
+ return s.forEach((c) => {
354
+ const d = e[c];
355
+ d.valueType && d.valueType.toLowerCase() === "itemid" && o.push(this._findExistingItem(c, "Feature Service", t.username || ""));
356
+ }), Promise.all(o).then((c) => {
357
+ const d = {};
358
+ return c.forEach((r) => {
359
+ if (r.query && r.results && r.results.length > 0) {
360
+ const k = r.query.split(" ")[0].replace("typekeywords:source-", "");
361
+ d[k] = {
362
+ resultId: r.results[0].id,
363
+ response: r.results[0]
364
364
  };
365
365
  }
366
- }), s.forEach((c) => {
367
- if (c === "serviceLearnMore") {
368
- this._configureLearnMore = e[c], alert(this._configureLearnMore), delete e[c];
366
+ }), s.forEach((r) => {
367
+ if (r === "serviceLearnMore") {
368
+ this._configureLearnMore = e[r], alert(this._configureLearnMore), delete e[r];
369
369
  return;
370
370
  }
371
- e[c].enterpriseIDMapping && (this._customDeploymentMappings[c] = e[c].enterpriseIDMapping), o.id = c, p[c] && (e[c].existingItemId = p[c].resultId, this.updateUserProp(e[c], p[c].response)), this.updateOption(e[c], o, c);
372
- }), i.push(o), Promise.resolve(i);
371
+ e[r].enterpriseIDMapping && (this._customDeploymentMappings[r] = e[r].enterpriseIDMapping), a.id = r, d[r] && (e[r].existingItemId = d[r].resultId, this.updateUserProp(e[r], d[r].response)), this.updateOption(e[r], a, r);
372
+ }), i.push(a), Promise.resolve(i);
373
373
  }).catch(() => Promise.resolve([]));
374
374
  } else
375
375
  return Promise.resolve([]);
@@ -379,16 +379,16 @@ class te extends C {
379
379
  return G(`typekeywords:source-${e} type:${t} owner:${i}`, s);
380
380
  }
381
381
  updateUserProp(e, t) {
382
- const i = e.itemType?.toLowerCase() === "feature service", s = new RegExp(i ? this._regexFsUrl : e.itemType, "iu"), o = M(t, i ? "url" : "type", "") || "", l = o !== "" && s.test(o);
383
- return e.responseValue = l ? o : "", e.name = l && v(t, "name") || "", e.title = l && v(t, "title") || "", e.itemType = l ? v(t, "type") : e.itemType, e.validId = l, e.itemUrl = U(t.id, this._configContextConsumer.value.authentication), l;
382
+ const i = e.itemType?.toLowerCase() === "feature service", s = new RegExp(i ? this._regexFsUrl : e.itemType, "iu"), a = M(t, i ? "url" : "type", "") || "", o = a !== "" && s.test(a);
383
+ return e.responseValue = o ? a : "", e.name = o && v(t, "name") || "", e.title = o && v(t, "title") || "", e.itemType = o ? v(t, "type") : e.itemType, e.validId = o, e.itemUrl = U(t.id, this._configContextConsumer.value.authentication), o;
384
384
  }
385
385
  updateOption(e, t, i) {
386
- const s = e.default || "", o = typeof s, l = s.toString();
386
+ const s = e.default || "", a = typeof s, o = s.toString();
387
387
  this._setFeatureServiceProps(e);
388
- const r = this.getValidation(e, l);
388
+ const c = this.getValidation(e, o);
389
389
  t.props.push({
390
390
  id: i,
391
- outType: o,
391
+ outType: a,
392
392
  prop: i,
393
393
  itemType: e.itemType || "",
394
394
  responseValue: e.responseValue || "",
@@ -396,11 +396,11 @@ class te extends C {
396
396
  choices: e.choices || [],
397
397
  valueType: e.valueType.toLowerCase(),
398
398
  attributes: e.attributes || {},
399
- value: e.existingItemId && e.valueType.toLowerCase() === "itemid" ? e.existingItemId : l,
400
- default: l,
401
- srSearchText: l,
402
- autoSelect: l !== "",
403
- ...r,
399
+ value: e.existingItemId && e.valueType.toLowerCase() === "itemid" ? e.existingItemId : o,
400
+ default: o,
401
+ srSearchText: o,
402
+ autoSelect: o !== "",
403
+ ...c,
404
404
  loading: !1,
405
405
  validId: !0,
406
406
  tooltip: e.tooltip || "",
@@ -413,9 +413,9 @@ class te extends C {
413
413
  e.valueType && e.valueType.toLowerCase() === "itemid" && Y(e, "attributes.required", "true");
414
414
  }
415
415
  getValidation(e, t) {
416
- let i = "", s = v(e, "validation.message") || "", o = !0;
417
- return v(e, "attributes.required") === "true" && (i = M(e, "validation.expression", "\\S{1,}"), o = new RegExp(i).test(t)), e.valueType && e.valueType.toLowerCase() === "itemid" && (i = this._regexID, s = this._translations.configure.invalidID), {
418
- valid: o,
416
+ let i = "", s = v(e, "validation.message") || "", a = !0;
417
+ return v(e, "attributes.required") === "true" && (i = M(e, "validation.expression", "\\S{1,}"), a = new RegExp(i).test(t)), e.valueType && e.valueType.toLowerCase() === "itemid" && (i = this._regexID, s = this._translations.configure.invalidID), {
418
+ valid: a,
419
419
  validation: {
420
420
  expression: i,
421
421
  message: s