@esri/solutions-components 1.2.0-next.193 → 1.2.0-next.195

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 (209) hide show
  1. package/dist/cdn/{DMQY2YSV.js → 2WYTNG6M.js} +1 -1
  2. package/dist/cdn/{HTILYSMI.js → 4OYK7LQI.js} +1 -1
  3. package/dist/cdn/{2FB7PLHA.js → 4TAK7UR4.js} +1 -1
  4. package/dist/cdn/5N36Y4KQ.js +2 -0
  5. package/dist/cdn/5ZVLMXAB.js +2 -0
  6. package/dist/cdn/6SQBHRNL.js +2 -0
  7. package/dist/cdn/6ZIVLBUU.js +2 -0
  8. package/dist/cdn/{6MYF74WP.js → 74BUVVWT.js} +1 -1
  9. package/dist/cdn/{YN2Q4YSJ.js → 7KGICWE5.js} +1 -1
  10. package/dist/cdn/{XCOHDOZB.js → AKULVI2N.js} +1 -1
  11. package/dist/cdn/B5EWNHD4.js +2 -0
  12. package/dist/cdn/{6AVBPFXC.js → BXWJRGO4.js} +1 -1
  13. package/dist/cdn/{DZEATYCC.js → CD2CL3AH.js} +1 -1
  14. package/dist/cdn/CNABSL7D.js +2 -0
  15. package/dist/cdn/{LOQNTCQ5.js → CRRPFZO6.js} +1 -1
  16. package/dist/cdn/{K2TGYZ23.js → DWERPOBG.js} +1 -1
  17. package/dist/cdn/{GNHKPEWB.js → EOOU7UYE.js} +1 -1
  18. package/dist/cdn/FKU4KCVC.js +21 -0
  19. package/dist/cdn/FMCJ3OZC.js +2 -0
  20. package/dist/cdn/{XGT7USWV.js → GBWRGXNI.js} +1 -1
  21. package/dist/cdn/{U6K37QQX.js → GCH7DWPZ.js} +1 -1
  22. package/dist/cdn/{QCI2IO23.js → HJGZC7SA.js} +1 -1
  23. package/dist/cdn/{2LCLF5CH.js → HNIKG65G.js} +1 -1
  24. package/dist/cdn/IEFFRDCD.js +2 -0
  25. package/dist/cdn/{OSY6VKW4.js → IYQFLCCH.js} +1 -1
  26. package/dist/cdn/MHHHY4YI.js +2 -0
  27. package/dist/cdn/{3IXJ77QG.js → MMKAKDW4.js} +1 -1
  28. package/dist/cdn/{YBCBDSHJ.js → NAZCWXLO.js} +1 -1
  29. package/dist/cdn/OTTY4ZPN.js +2 -0
  30. package/dist/cdn/{FCTLSKQC.js → OXSNUTDV.js} +1 -1
  31. package/dist/cdn/QTJVVDLF.js +2 -0
  32. package/dist/cdn/{5YSQ2CW2.js → T3TMKI4D.js} +1 -1
  33. package/dist/cdn/TLR2QJD4.js +2 -0
  34. package/dist/cdn/{GSZZB2X6.js → U4B663P4.js} +1 -1
  35. package/dist/cdn/UIGEOGE2.js +2 -0
  36. package/dist/cdn/{ZLVZRRWC.js → UMNMUV3Z.js} +1 -1
  37. package/dist/cdn/{4PJLBC3H.js → VARQORHC.js} +1 -1
  38. package/dist/cdn/VMMM42OC.js +2 -0
  39. package/dist/cdn/VQJQDCP2.js +2 -0
  40. package/dist/cdn/{BTHN6PO3.js → WDQPKKWX.js} +1 -1
  41. package/dist/cdn/WSKPG7AR.js +2 -0
  42. package/dist/cdn/{KMFPTAQU.js → XPPERC5Q.js} +1 -1
  43. package/dist/cdn/{35BKTK23.js → ZLB7IIDL.js} +1 -1
  44. package/dist/cdn/assets/create-feature/t9n/messages.ar.json +1 -1
  45. package/dist/cdn/assets/create-feature/t9n/messages.bg.json +1 -1
  46. package/dist/cdn/assets/create-feature/t9n/messages.bs.json +1 -1
  47. package/dist/cdn/assets/create-feature/t9n/messages.ca.json +1 -1
  48. package/dist/cdn/assets/create-feature/t9n/messages.cs.json +1 -1
  49. package/dist/cdn/assets/create-feature/t9n/messages.da.json +1 -1
  50. package/dist/cdn/assets/create-feature/t9n/messages.de.json +1 -1
  51. package/dist/cdn/assets/create-feature/t9n/messages.el.json +1 -1
  52. package/dist/cdn/assets/create-feature/t9n/messages.es.json +1 -1
  53. package/dist/cdn/assets/create-feature/t9n/messages.et.json +1 -1
  54. package/dist/cdn/assets/create-feature/t9n/messages.fi.json +1 -1
  55. package/dist/cdn/assets/create-feature/t9n/messages.fr.json +1 -1
  56. package/dist/cdn/assets/create-feature/t9n/messages.he.json +1 -1
  57. package/dist/cdn/assets/create-feature/t9n/messages.hr.json +1 -1
  58. package/dist/cdn/assets/create-feature/t9n/messages.hu.json +1 -1
  59. package/dist/cdn/assets/create-feature/t9n/messages.id.json +1 -1
  60. package/dist/cdn/assets/create-feature/t9n/messages.it.json +1 -1
  61. package/dist/cdn/assets/create-feature/t9n/messages.ja.json +1 -1
  62. package/dist/cdn/assets/create-feature/t9n/messages.ko.json +1 -1
  63. package/dist/cdn/assets/create-feature/t9n/messages.lt.json +1 -1
  64. package/dist/cdn/assets/create-feature/t9n/messages.lv.json +1 -1
  65. package/dist/cdn/assets/create-feature/t9n/messages.nl.json +1 -1
  66. package/dist/cdn/assets/create-feature/t9n/messages.no.json +1 -1
  67. package/dist/cdn/assets/create-feature/t9n/messages.pl.json +1 -1
  68. package/dist/cdn/assets/create-feature/t9n/messages.pt-BR.json +1 -1
  69. package/dist/cdn/assets/create-feature/t9n/messages.pt-PT.json +1 -1
  70. package/dist/cdn/assets/create-feature/t9n/messages.ro.json +1 -1
  71. package/dist/cdn/assets/create-feature/t9n/messages.ru.json +1 -1
  72. package/dist/cdn/assets/create-feature/t9n/messages.sk.json +1 -1
  73. package/dist/cdn/assets/create-feature/t9n/messages.sl.json +1 -1
  74. package/dist/cdn/assets/create-feature/t9n/messages.sr.json +1 -1
  75. package/dist/cdn/assets/create-feature/t9n/messages.sv.json +1 -1
  76. package/dist/cdn/assets/create-feature/t9n/messages.th.json +1 -1
  77. package/dist/cdn/assets/create-feature/t9n/messages.tr.json +1 -1
  78. package/dist/cdn/assets/create-feature/t9n/messages.uk.json +1 -1
  79. package/dist/cdn/assets/create-feature/t9n/messages.vi.json +1 -1
  80. package/dist/cdn/assets/create-feature/t9n/messages.zh-CN.json +1 -1
  81. package/dist/cdn/assets/create-feature/t9n/messages.zh-HK.json +1 -1
  82. package/dist/cdn/assets/create-feature/t9n/messages.zh-TW.json +1 -1
  83. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ar.json +1 -1
  84. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.bg.json +1 -1
  85. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.bs.json +1 -1
  86. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ca.json +1 -1
  87. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.cs.json +1 -1
  88. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.da.json +1 -1
  89. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.de.json +1 -1
  90. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.el.json +1 -1
  91. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.es.json +1 -1
  92. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.et.json +1 -1
  93. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.fi.json +1 -1
  94. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.fr.json +1 -1
  95. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.he.json +1 -1
  96. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.hr.json +1 -1
  97. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.hu.json +1 -1
  98. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.id.json +1 -1
  99. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.it.json +1 -1
  100. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ja.json +1 -1
  101. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ko.json +1 -1
  102. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.lt.json +1 -1
  103. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.lv.json +1 -1
  104. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.nl.json +1 -1
  105. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.no.json +1 -1
  106. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.pl.json +1 -1
  107. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.pt-BR.json +1 -1
  108. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.pt-PT.json +1 -1
  109. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ro.json +1 -1
  110. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ru.json +1 -1
  111. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.sk.json +1 -1
  112. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.sl.json +1 -1
  113. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.sr.json +1 -1
  114. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.sv.json +1 -1
  115. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.th.json +1 -1
  116. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.tr.json +1 -1
  117. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.uk.json +1 -1
  118. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.vi.json +1 -1
  119. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.zh-CN.json +1 -1
  120. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.zh-HK.json +1 -1
  121. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.zh-TW.json +1 -1
  122. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.ar.json +1 -1
  123. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.bg.json +1 -1
  124. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.bs.json +1 -1
  125. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.ca.json +1 -1
  126. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.cs.json +1 -1
  127. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.da.json +1 -1
  128. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.de.json +1 -1
  129. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.el.json +1 -1
  130. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.es.json +1 -1
  131. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.et.json +1 -1
  132. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.fi.json +1 -1
  133. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.fr.json +1 -1
  134. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.he.json +1 -1
  135. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.hr.json +1 -1
  136. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.hu.json +1 -1
  137. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.id.json +1 -1
  138. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.it.json +1 -1
  139. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.ja.json +1 -1
  140. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.ko.json +1 -1
  141. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.lt.json +1 -1
  142. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.lv.json +1 -1
  143. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.nl.json +1 -1
  144. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.no.json +1 -1
  145. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.pl.json +1 -1
  146. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.pt-BR.json +1 -1
  147. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.pt-PT.json +1 -1
  148. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.ro.json +1 -1
  149. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.ru.json +1 -1
  150. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.sk.json +1 -1
  151. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.sl.json +1 -1
  152. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.sr.json +1 -1
  153. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.sv.json +1 -1
  154. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.th.json +1 -1
  155. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.tr.json +1 -1
  156. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.uk.json +1 -1
  157. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.vi.json +1 -1
  158. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.zh-CN.json +1 -1
  159. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.zh-HK.json +1 -1
  160. package/dist/cdn/assets/solutions-resources-shell/t9n/messages.zh-TW.json +1 -1
  161. package/dist/cdn/index.js +1 -1
  162. package/dist/chunks/Auth.js +2 -1
  163. package/dist/chunks/interfaces.js +167 -175
  164. package/dist/chunks/solution-deploy-dialog.js +5 -5
  165. package/dist/components/map-draw-tools/customElement.js +7 -7
  166. package/dist/components/solution-configure-titles/customElement.js +37 -37
  167. package/dist/components/solution-delete-dialog/customElement.js +10 -10
  168. package/dist/components/solution-deployed-card-panel/customElement.js +19 -19
  169. package/dist/components/solution-deploying-dialog/customElement.js +7 -7
  170. package/dist/components/solution-details-card/customElement.js +6 -6
  171. package/dist/components/solution-details-panel/customElement.js +5 -5
  172. package/dist/components/solution-resource-card/customElement.d.ts +4 -6
  173. package/dist/components/solution-resource-card/customElement.js +19 -18
  174. package/dist/components/solution-snapshot-gallery/customElement.js +2 -2
  175. package/dist/components/solution-user-avatar/customElement.js +4 -4
  176. package/dist/components/solutions-all-shell/customElement.js +2 -2
  177. package/dist/components/solutions-deployed-panel/customElement.js +69 -33
  178. package/dist/components/solutions-deployed-shell/customElement.js +59 -23
  179. package/dist/components/solutions-resources-section/customElement.js +8 -8
  180. package/dist/components/solutions-resources-shell/customElement.js +54 -26
  181. package/dist/docs/api.json +1 -1
  182. package/dist/docs/docs.json +1 -1
  183. package/dist/docs/vscode.html-custom-data.json +1 -1
  184. package/dist/docs/web-types.json +1 -1
  185. package/dist/loader.js +1 -1
  186. package/dist/solutions-components_commit.txt +6 -6
  187. package/dist/types/lumina.d.ts +1 -1
  188. package/dist/types/preact.d.ts +1 -1
  189. package/dist/types/react.d.ts +1 -1
  190. package/dist/types/stencil.d.ts +1 -1
  191. package/dist/utils/interfaces.d.ts +2 -0
  192. package/package.json +1 -1
  193. package/dist/cdn/2YQZQLV7.js +0 -2
  194. package/dist/cdn/5DYEGOFQ.js +0 -2
  195. package/dist/cdn/AIU3MGAJ.js +0 -2
  196. package/dist/cdn/AXJNTXWG.js +0 -2
  197. package/dist/cdn/BFRGKEST.js +0 -2
  198. package/dist/cdn/CA5SSBGK.js +0 -2
  199. package/dist/cdn/FKEZD3IR.js +0 -21
  200. package/dist/cdn/HRR3S4YS.js +0 -2
  201. package/dist/cdn/LT22II6J.js +0 -2
  202. package/dist/cdn/MGS4TCQO.js +0 -2
  203. package/dist/cdn/PKER46Z6.js +0 -2
  204. package/dist/cdn/V562ZRP5.js +0 -2
  205. package/dist/cdn/WT64QMSP.js +0 -2
  206. package/dist/cdn/XVCTCPQP.js +0 -2
  207. package/dist/cdn/Z7S7SUZV.js +0 -2
  208. package/dist/cdn/ZBVU5UTY.js +0 -2
  209. package/dist/cdn/ZEIBUDIU.js +0 -2
@@ -1,6 +1,6 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
2
2
  import * as m from "@esri/solution-common";
3
- import { c as L } from "./runtime.js";
3
+ import { c as C } from "./runtime.js";
4
4
  import { css as M, html as l, svg as x } from "lit";
5
5
  import { u as U } from "./useT9n.js";
6
6
  import { LitElement as $, createEvent as P, nothing as f, safeClassMap as G } from "@arcgis/lumina";
@@ -15,85 +15,85 @@ import { createRef as _, ref as S } from "lit-html/directives/ref.js";
15
15
  const B = T("isMobile");
16
16
  T("localDebug");
17
17
  const K = T("config"), F = M`calcite-card{height:100%;padding-bottom:var(--calcite-spacing-base)}@media(max-width:400px){calcite-card{width:100%}}calcite-card:hover img{-webkit-filter:brightness(30%);filter:brightness(30%);-webkit-transition:all .1s ease;-moz-transition:all .1s ease;-o-transition:all .1s ease;-ms-transition:all .1s ease;transition:all .1s ease}calcite-card:hover .hover-text{opacity:1;color:#fff}calcite-card:hover{outline:var(--calcite-spacing-base) solid var(--calcite-color-brand);box-sizing:content-box;cursor:pointer}.hover-text{transition:.1s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%;font-size:var(--calcite-spacing-xl)}.card-image-wrap{flex:0 0 auto}.card-image-wrap{width:100%;position:relative;margin-bottom:0;-webkit-box-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}.card-image{width:100%;display:block}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip}.width-full{width:100%}.deployed-label-override{--calcite-label-text-color: var(--calcite-color-text-3);--calcite-label-margin-bottom: var(--calcite-spacing-none)}.svg-color{fill:var(--calcite-color-text-3)}.padding-end-1-2{padding-inline-end:var(--calcite-spacing-sm)}.padding-bottom-1-2{padding-bottom:var(--calcite-spacing-sm)}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}.align-items-center{align-items:center}.font-weight-400,.font-weight-normal{font-weight:400}.font-color-text-2{--calcite-label-text-color: var(--calcite-color-text-2)}.font-line-height{line-height:1.4}.font-size-size--1{font-size:var(--calcite-font-size--1)}.icon-brand-color{--calcite-icon-color: var(--calcite-color-brand)}.header-line-height{--calcite-label-margin-bottom: 0;margin-top:var(--calcite-spacing-sm);margin-bottom:.7rem}.dialog-y-size{--calcite-dialog-size-y: 90% }.dialog-x-size{--calcite-dialog-size-x: 90% }.justify-content-space-between{justify-content:space-between}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-foreground-1);--calcite-panel-background-color: var(--calcite-color-foreground-1)}.cursor-default{cursor:default}`;
18
- function H(t) {
19
- let e = "", i = "?";
20
- return t.forEach((s) => {
21
- s.k && s.v && (e += i + s.k + "=" + s.v, i = "&");
22
- }), e;
23
- }
24
- function Re(t) {
25
- return t ? m.getVelocityUrlBase(t, {}).then((e) => Promise.resolve(!!e)) : Promise.resolve(!1);
26
- }
27
- async function W(t, e) {
28
- const i = e, s = await i.getUsername(), r = {
29
- q: new m.SearchQueryBuilder().match(t).in("title").and().match(s).in("owner"),
18
+ function H(e) {
19
+ let t = "", i = "?";
20
+ return e.forEach((s) => {
21
+ s.k && s.v && (t += i + s.k + "=" + s.v, i = "&");
22
+ }), t;
23
+ }
24
+ function Re(e) {
25
+ return e ? m.getVelocityUrlBase(e, {}).then((t) => Promise.resolve(!!t)) : Promise.resolve(!1);
26
+ }
27
+ async function W(e, t) {
28
+ const i = t, s = await i.getUsername(), r = {
29
+ q: new m.SearchQueryBuilder().match(e).in("title").and().match(s).in("owner"),
30
30
  filter: "type:Solution",
31
31
  authentication: i
32
- }, n = (await m.searchAllItems(r)).results.map((p) => p.title), { folders: o } = await m.getFoldersAndGroups(i), h = o.map((p) => p.title), u = [...n, ...h].map((p) => p.trim().toLowerCase()), w = t.toLowerCase(), C = u.filter((p) => p === w), N = u.filter((p) => p.startsWith(w));
33
- return { conflictingNames: C, similiarNames: N };
32
+ }, p = (await m.searchAllItems(r)).results.map((u) => u.title), { folders: o } = await m.getFoldersAndGroups(i), h = o.map((u) => u.title), d = [...p, ...h].map((u) => u.trim().toLowerCase()), w = e.toLowerCase(), N = d.filter((u) => u === w), L = d.filter((u) => u.startsWith(w));
33
+ return { conflictingNames: N, similiarNames: L };
34
34
  }
35
- async function ke(t, e) {
36
- return V(t) ? { status: !1, type: "empty" } : z(t) ? { status: !1, type: "exceed length" } : Y(t, "folder") ? { status: !1, type: "special character" } : (await W(t.trim(), e)).conflictingNames.length > 0 ? { status: !1, type: "not unique" } : { status: !0, type: "" };
35
+ async function ke(e, t) {
36
+ return V(e) ? { status: !1, type: "empty" } : z(e) ? { status: !1, type: "exceed length" } : Y(e, "folder") ? { status: !1, type: "special character" } : (await W(e.trim(), t)).conflictingNames.length > 0 ? { status: !1, type: "not unique" } : { status: !0, type: "" };
37
37
  }
38
- function V(t) {
39
- return t.length <= 0;
38
+ function V(e) {
39
+ return e.length <= 0;
40
40
  }
41
- function z(t) {
42
- return t.length > fe;
41
+ function z(e) {
42
+ return e.length > fe;
43
43
  }
44
- function Y(t, e) {
45
- return (e === "item" ? /[><~`$^+=|]/u : /[/<>]/u).test(t);
44
+ function Y(e, t) {
45
+ return (t === "item" ? /[><~`$^+=|]/u : /[/<>]/u).test(e);
46
46
  }
47
- function Ce(t) {
48
- if (t) {
49
- const e = t.trim();
50
- return e ? "<div>" + e + "</div>" : "";
47
+ function Ne(e) {
48
+ if (e) {
49
+ const t = e.trim();
50
+ return t ? "<div>" + t + "</div>" : "";
51
51
  } else
52
52
  return "";
53
53
  }
54
- function q(t) {
55
- let e = "", i = "?";
56
- return t.forEach((s) => {
57
- s.k && s.v && (e += i + s.k + "=" + s.v, i = "&");
58
- }), e;
54
+ function q(e) {
55
+ let t = "", i = "?";
56
+ return e.forEach((s) => {
57
+ s.k && s.v && (t += i + s.k + "=" + s.v, i = "&");
58
+ }), t;
59
59
  }
60
- function Ne(t, e, i, s) {
60
+ function Le(e, t, i, s) {
61
61
  let a = "";
62
- return e ? a = s + "/sharing/rest/content/items/" + t + "/info/" + e + q([{ k: "w", v: "400" }]) : a = i, a;
62
+ return t ? a = s + "/sharing/rest/content/items/" + e + "/info/" + t + q([{ k: "w", v: "400" }]) : a = i, a;
63
63
  }
64
- function Le(t) {
65
- const e = t ? t.replace("https://", "").replace("www.", "") : "";
66
- return e.endsWith("devext.arcgis.com") || e.endsWith("mapsqa.arcgis.com") || e.endsWith("qaext.arcgis.com") ? t ?? "https://www.arcgis.com" : "https://www.arcgis.com";
64
+ function Ce(e) {
65
+ const t = e ? e.replace("https://", "").replace("www.", "") : "";
66
+ return t.endsWith("devext.arcgis.com") || t.endsWith("mapsqa.arcgis.com") || t.endsWith("qaext.arcgis.com") ? e ?? "https://www.arcgis.com" : "https://www.arcgis.com";
67
67
  }
68
- function Me(t, e, i) {
69
- return e.some((s) => s.wkid === t ? (i = s.defaultExtent, !0) : !1), i;
68
+ function Me(e, t, i) {
69
+ return t.some((s) => s.wkid === e ? (i = s.defaultExtent, !0) : !1), i;
70
70
  }
71
- function xe(t, e) {
72
- return O(e || t);
71
+ function xe(e, t) {
72
+ return O(t || e);
73
73
  }
74
- function Ue(t, e = "en") {
75
- return new Intl.DateTimeFormat(e, {
74
+ function Ue(e, t = "en") {
75
+ return new Intl.DateTimeFormat(t, {
76
76
  year: "numeric",
77
77
  month: "long",
78
78
  day: "numeric"
79
- }).format(t);
79
+ }).format(e);
80
80
  }
81
- function $e(t, e) {
81
+ function $e(e, t) {
82
82
  let i = "";
83
- return t.some((s) => s.startsWith(e) ? (i = s.substring(e.length), !0) : !1), i;
83
+ return e.some((s) => s.startsWith(t) ? (i = s.substring(t.length), !0) : !1), i;
84
84
  }
85
- function O(t) {
86
- const e = t.replace("www.", "");
87
- return e.endsWith("devext.arcgis.com") ? "dev" : e.endsWith("mapsqa.arcgis.com") || e.endsWith("qaext.arcgis.com") ? "qa" : e === "arcgis.com" || e.endsWith(".arcgis.com") ? "prod" : "dev";
85
+ function O(e) {
86
+ const t = e.replace("www.", "");
87
+ return t.endsWith("devext.arcgis.com") ? "dev" : t.endsWith("mapsqa.arcgis.com") || t.endsWith("qaext.arcgis.com") ? "qa" : t === "arcgis.com" || t.endsWith(".arcgis.com") ? "prod" : "dev";
88
88
  }
89
- function Pe(t, e) {
90
- let i = t?.reduce((s, a) => (s.indexOf(a.id) < 0 && s.push(a.id), s), []) || [];
91
- return e ? i.sort((s, a) => e.indexOf(s) - e.indexOf(a)) : i;
89
+ function Pe(e, t) {
90
+ let i = e?.reduce((s, a) => (s.indexOf(a.id) < 0 && s.push(a.id), s), []) || [];
91
+ return t ? i.sort((s, a) => t.indexOf(s) - t.indexOf(a)) : i;
92
92
  }
93
- function Ge(t) {
94
- return t.charAt(0).toUpperCase() + t.slice(1);
93
+ function Ge(e) {
94
+ return e.charAt(0).toUpperCase() + e.slice(1);
95
95
  }
96
- function Be(t) {
96
+ function Be(e) {
97
97
  return {
98
98
  relevance: "Relevance",
99
99
  title: "Title",
@@ -101,31 +101,31 @@ function Be(t) {
101
101
  created: "Date deployed",
102
102
  updated: "Updated",
103
103
  suggested: "Suggested for you"
104
- }[t] || t;
104
+ }[e] || e;
105
105
  }
106
- function Ke(t) {
107
- if (!t)
106
+ function Ke(e) {
107
+ if (!e)
108
108
  return "Unknown error";
109
- if (t.message)
110
- return t.message;
109
+ if (e.message)
110
+ return e.message;
111
111
  try {
112
- const e = JSON.stringify(t);
113
- return e && e !== "{}" ? e : t.toString();
112
+ const t = JSON.stringify(e);
113
+ return t && t !== "{}" ? t : e.toString();
114
114
  } catch {
115
- return t.toString();
115
+ return e.toString();
116
116
  }
117
117
  }
118
- function Fe(t) {
119
- return t ? parseFloat(((Date.now() - t) / 1e3).toFixed(2)) : 0;
118
+ function Fe(e) {
119
+ return e ? parseFloat(((Date.now() - e) / 1e3).toFixed(2)) : 0;
120
120
  }
121
- function g(t, e) {
122
- (t.key === "Enter" || t.code === "NumpadEnter" || t.key === " ") && (t.preventDefault(), t.stopPropagation(), e());
121
+ function g(e, t) {
122
+ (e.key === "Enter" || e.code === "NumpadEnter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), t());
123
123
  }
124
- async function j(t, e) {
125
- const i = await m.getItemDataAsJson(t, e);
124
+ async function j(e, t) {
125
+ const i = await m.getItemDataAsJson(e, t);
126
126
  if (!i)
127
- throw new Error(`Solution ${t} was not found`);
128
- const s = e?.portal.replace("/sharing/rest", "") ?? "https://www.arcgis.com";
127
+ throw new Error(`Solution ${e} was not found`);
128
+ const s = t?.portal.replace("/sharing/rest", "") ?? "https://www.arcgis.com";
129
129
  let a = [];
130
130
  if (i.templates[0].item)
131
131
  a = i.templates.map((r) => ({
@@ -137,9 +137,9 @@ async function j(t, e) {
137
137
  snippet: r.item.snippet
138
138
  }));
139
139
  else {
140
- const r = i.templates.map((o) => o.type === "Group" ? m.getGroupBase(o.itemId, e) : m.getItemBase(o.itemId, e));
140
+ const r = i.templates.map((o) => o.type === "Group" ? m.getGroupBase(o.itemId, t) : m.getItemBase(o.itemId, t));
141
141
  a = (await Promise.allSettled(r)).filter((o) => o.status === "fulfilled").map((o) => o.value).map((o, h) => {
142
- const u = typeof o.type > "u" ? "group" : "item";
142
+ const d = typeof o.type > "u" ? "group" : "item";
143
143
  return {
144
144
  id: o.id,
145
145
  title: o.title,
@@ -147,108 +147,100 @@ async function j(t, e) {
147
147
  typeKeywords: o.typeKeywords,
148
148
  dependencies: i.templates[h].dependencies,
149
149
  snippet: o.snippet,
150
- url: `${s}/home/${u}.html?id=${o.id}`
150
+ url: `${s}/home/${d}.html?id=${o.id}`
151
151
  };
152
152
  });
153
153
  }
154
154
  return a;
155
155
  }
156
- function He(t, e, i) {
157
- const s = t.templates.map((h) => h.type), a = [];
156
+ function He(e, t, i) {
157
+ const s = e.templates.map((h) => h.type), a = [];
158
158
  a.push(ae), s.indexOf("Group") >= 0 && (a.push(A), a.push(D)), s.indexOf("Feature Service") >= 0 && a.push(I);
159
159
  const r = s.indexOf("Feed") > -1;
160
160
  r && a.push(oe);
161
- const c = s.indexOf("Big Data Analytic") > -1;
162
- c && a.push(ne);
163
- const n = s.indexOf("Real Time Analytic") > -1;
164
- n && a.push(le), (r || c || n) && a.push(ge), s.indexOf("Workflow") > -1 && (a.push(A), a.push(I), a.push(D), a.push(me)), s.indexOf("Geoprocessing Service") > -1 && (a.push(re), i.IsEnterprisePortal && a.push(de));
165
- const o = t.templates.reduce(
166
- (h, u) => h.concat(u.item.typeKeywords || []),
161
+ const n = s.indexOf("Big Data Analytic") > -1;
162
+ n && a.push(ne);
163
+ const p = s.indexOf("Real Time Analytic") > -1;
164
+ p && a.push(le), (r || n || p) && a.push(ge), s.indexOf("Workflow") > -1 && (a.push(A), a.push(I), a.push(D), a.push(me)), s.indexOf("Geoprocessing Service") > -1 && (a.push(re), i.IsEnterprisePortal && a.push(de));
165
+ const o = e.templates.reduce(
166
+ (h, d) => h.concat(d.item.typeKeywords || []),
167
167
  []
168
168
  );
169
- return Q(a, o, i), X(a, e), J(a, t), a;
169
+ return Q(a, o, i), X(a, t), J(a, e), a;
170
170
  }
171
- function J(t, e) {
172
- e.templates.some((i) => i.type === "Group" && i.item?.membershipAccess === "collaboration") && t.push(se);
171
+ function J(e, t) {
172
+ t.templates.some((i) => i.type === "Group" && i.item?.membershipAccess === "collaboration") && e.push(se);
173
173
  }
174
- function Q(t, e, i) {
174
+ function Q(e, t, i) {
175
175
  const s = v(i), a = Z(i);
176
- ["Location Tracking View"].some((c) => e.indexOf(c) > -1) && (!s && !a ? t.push(ue) : s && !a ? t.push(pe) : !s && a && t.push(he));
176
+ ["Location Tracking View"].some((n) => t.indexOf(n) > -1) && (!s && !a ? e.push(ue) : s && !a ? e.push(pe) : !s && a && e.push(he));
177
177
  }
178
- function X(t, e) {
179
- ["HubPremium"].some((s) => e.indexOf(s) > -1) && t.push(ce);
178
+ function X(e, t) {
179
+ ["HubPremium"].some((s) => t.indexOf(s) > -1) && e.push(ce);
180
180
  }
181
- function v(t) {
182
- const e = t?.PortalUserSubset?.privileges, i = [
183
- "portal:admin:create",
184
- "portal:admin:delete",
185
- "portal:admin:update",
186
- "portal:admin:reassign"
187
- ];
188
- return e ? i.every(
189
- (s) => e.some((a) => a.startsWith(s))
190
- ) : !1;
181
+ function v(e) {
182
+ return e.PortalUserSubset?.role === "org_admin" && !e.PortalUserSubset?.roleId;
191
183
  }
192
- function Z(t) {
193
- return t.PortalSubset?.locationTrackingEnabled || !1;
184
+ function Z(e) {
185
+ return e.PortalSubset?.locationTrackingEnabled || !1;
194
186
  }
195
- function We(t, e) {
187
+ function We(e, t) {
196
188
  let i = {
197
189
  leadingMessages: [],
198
190
  bulletedMessages: [],
199
191
  trailingMessages: []
200
192
  };
201
193
  const s = [
202
- d.NOTEBOOK,
203
- d.VELOCITY,
204
- d.HUBPREMIUM,
205
- d.WORKFLOW,
206
- d.TRACKINGBASE
194
+ c.NOTEBOOK,
195
+ c.VELOCITY,
196
+ c.HUBPREMIUM,
197
+ c.WORKFLOW,
198
+ c.TRACKINGBASE
207
199
  ];
208
200
  let a = y(
209
- t,
210
201
  e,
211
- d.VELOCITY
202
+ t,
203
+ c.VELOCITY
212
204
  );
213
205
  a && i.leadingMessages.push(a);
214
206
  let r = y(
215
- t,
216
207
  e,
217
- d.NOTEBOOK
218
- );
219
- r && i.leadingMessages.push(r);
220
- let c = y(
221
208
  t,
222
- e,
223
- d.HUBPREMIUM
209
+ c.NOTEBOOK
224
210
  );
225
- c && i.leadingMessages.push(c);
211
+ r && i.leadingMessages.push(r);
226
212
  let n = y(
213
+ e,
227
214
  t,
215
+ c.HUBPREMIUM
216
+ );
217
+ n && i.leadingMessages.push(n);
218
+ let p = y(
228
219
  e,
229
- d.WORKFLOW
220
+ t,
221
+ c.WORKFLOW
230
222
  );
231
- n && i.leadingMessages.push(n), e = e.filter((u) => s.indexOf(u) < 0), e.forEach((u) => {
223
+ p && i.leadingMessages.push(p), t = t.filter((d) => s.indexOf(d) < 0), t.forEach((d) => {
232
224
  i.bulletedMessages.push(
233
- R(t, u)
225
+ R(e, d)
234
226
  );
235
227
  });
236
228
  let o = y(
237
- t,
238
229
  e,
239
- d.TRACKINGBASE
230
+ t,
231
+ c.TRACKINGBASE
240
232
  );
241
233
  return o && i.trailingMessages.push(o), (i.leadingMessages.length > 0 || i.trailingMessages.length > 0 || i.bulletedMessages.length > 0) && i.trailingMessages.push(
242
- t.missingPrivilegesPopup.suggestedProblemRemedyMessage
234
+ e.missingPrivilegesPopup.suggestedProblemRemedyMessage
243
235
  ), i;
244
236
  }
245
- function y(t, e, i) {
246
- return e.filter((a) => a.includes(i)).length > 0 ? R(t, i) : "";
237
+ function y(e, t, i) {
238
+ return t.filter((a) => a.includes(i)).length > 0 ? R(e, i) : "";
247
239
  }
248
- function R(t, e) {
249
- const i = t.missingPrivilegesPopup.requiredPrivilegesList;
240
+ function R(e, t) {
241
+ const i = e.missingPrivilegesPopup.requiredPrivilegesList;
250
242
  let s = "";
251
- switch (e) {
243
+ switch (t) {
252
244
  case "portal:user:createItem":
253
245
  s = i.createItem;
254
246
  break;
@@ -306,35 +298,35 @@ function R(t, e) {
306
298
  }
307
299
  return s;
308
300
  }
309
- function Ve(t, e) {
310
- const i = k(e), s = H([{ k: "id", v: t }]) || "";
301
+ function Ve(e, t) {
302
+ const i = k(t), s = H([{ k: "id", v: e }]) || "";
311
303
  return i ? `${i}/home/item.html${s}` : "";
312
304
  }
313
- function ze(t, e, i, s) {
305
+ function ze(e, t, i, s) {
314
306
  const a = s || k(i);
315
- return a ? `${a}/sharing/rest/content/items/${t}/resources/${e}` : "";
307
+ return a ? `${a}/sharing/rest/content/items/${e}/resources/${t}` : "";
316
308
  }
317
- function k(t) {
318
- return t?.PortalSubset?.orgUrl || t?.PortalUrl || "";
309
+ function k(e) {
310
+ return e?.PortalSubset?.orgUrl || e?.PortalUrl || "";
319
311
  }
320
- function ee(t, e) {
321
- const i = new URL(t);
322
- return i.searchParams.set("token", e), i.toString();
312
+ function ee(e, t) {
313
+ const i = new URL(e);
314
+ return i.searchParams.set("token", t), i.toString();
323
315
  }
324
316
  class te extends $ {
325
317
  constructor() {
326
318
  super(), this.deployedDate = "", this.description = "", this.diagramKey = "", this.heading = "", this.itemId = "", this.owner = "", this.thumbnail = "", this.updateAvailable = !1, this.templateInfos = [], this._isDeleteOpen = !1, this._isDiagramOpen = !1, this.isMobile = !1, this.templateInfoGraph = [], this._configureTitlesOpen = !1, this._thumbnailUrl = "", this._translations = U({ name: "solution-deployed-card", blocking: !0 }), this._configContextConsumer = E({
327
319
  context: K,
328
320
  subscribe: !0,
329
- callback: async (e) => {
330
- e && (this._isOrgAdmin = v(e.authentication), this._thumbnailUrl = `${this.thumbnail}&token=${e.userSession?.token}`);
321
+ callback: async (t) => {
322
+ t && (this._isOrgAdmin = v(t.authentication), this._thumbnailUrl = `${this.thumbnail}&token=${t.userSession?.token}`);
331
323
  }
332
324
  }), this._deleteDialogRef = _(), this._diagramDialogRef = _(), this._isOrgAdmin = !1, this._isMobileContextConsumer = E({
333
325
  context: B,
334
326
  subscribe: !0,
335
- callback: (e) => this.isMobile = e
336
- }), this.deployedCardSelected = P(), this.listenOn(window, "sessionRefreshed", (e) => {
337
- this._updateThumbnailToken(e.detail);
327
+ callback: (t) => this.isMobile = t
328
+ }), this.deployedCardSelected = P(), this.listenOn(window, "sessionRefreshed", (t) => {
329
+ this._updateThumbnailToken(t.detail);
338
330
  });
339
331
  }
340
332
  static {
@@ -349,8 +341,8 @@ class te extends $ {
349
341
  async renderDeleteDialog() {
350
342
  return this._isDeleteOpen = !0, this._renderDeleteDialog(), this._deleteDialogRef.value;
351
343
  }
352
- async renderDiagramDialog(e) {
353
- return await this._viewDiagram(e), await this._renderDiagramDialog(), this._diagramDialogRef.value;
344
+ async renderDiagramDialog(t) {
345
+ return await this._viewDiagram(t), await this._renderDiagramDialog(), this._diagramDialogRef.value;
354
346
  }
355
347
  async getTemplates() {
356
348
  return this._processTemplates(this.card);
@@ -359,7 +351,7 @@ class te extends $ {
359
351
  this._isMobileContextConsumer.value && (this.isMobile = this._isMobileContextConsumer.value);
360
352
  }
361
353
  render() {
362
- return l`<calcite-card .label=${this.description} @click=${this._cardSelected} @keydown=${(e) => g(e, () => this._cardSelected())}>${this._getImage()}${this._getHeader()}<p class="font-color-text-2 font-line-height font-size-size--1" slot=description>${this.description}</p><div class="width-full display-flex flex-direction-column" slot=footer-start><div class="padding-bottom-1-2">${this.owner !== "" && this._getOwnerLabel() || ""}${this._getDeployedDate()}</div>${this._getConfigureButton()}</div></calcite-card>${this._renderDeleteDialog()}${this._renderDiagramDialog()}${this._renderConfigureTitlesDialog()}`;
354
+ return l`<calcite-card .label=${this.description} @click=${this._cardSelected} @keydown=${(t) => g(t, () => this._cardSelected())}>${this._getImage()}${this._getHeader()}<p class="font-color-text-2 font-line-height font-size-size--1" slot=description>${this.description}</p><div class="width-full display-flex flex-direction-column" slot=footer-start><div class="padding-bottom-1-2">${this.owner !== "" && this._getOwnerLabel() || ""}${this._getDeployedDate()}</div>${this._getConfigureButton()}</div></calcite-card>${this._renderDeleteDialog()}${this._renderDiagramDialog()}${this._renderConfigureTitlesDialog()}`;
363
355
  }
364
356
  _getImage() {
365
357
  return l`<div class="card-image-wrap" slot=thumbnail><img alt=${this.heading ?? f} class="thumbnail card-image" src=${this._thumbnailUrl ?? f}><div class="hover-text">${this._translations.openSolution}</div></div>`;
@@ -368,22 +360,22 @@ class te extends $ {
368
360
  return l`<div class="display-flex justify-content-space-between header-line-height" slot=heading><calcite-label layout=inline-space-between scale=l>${this.heading}</calcite-label></div>`;
369
361
  }
370
362
  _getOwnerLabel() {
371
- return l`<calcite-label class="font-weight-400 padding-end-1-2" layout=inline scale=s>${`${this._translations.owner}:`}<calcite-link class="font-weight-normal" @click=${this._openUserProfile} @keydown=${(e) => g(e, () => this._openUserProfile(e))}>${this.owner}</calcite-link></calcite-label>`;
363
+ return l`<calcite-label class="font-weight-400 padding-end-1-2" layout=inline scale=s>${`${this._translations.owner}:`}<calcite-link class="font-weight-normal" @click=${this._openUserProfile} @keydown=${(t) => g(t, () => this._openUserProfile(t))}>${this.owner}</calcite-link></calcite-label>`;
372
364
  }
373
365
  _getDeployedDate() {
374
366
  return l`<div class="display-flex align-items-center"><div class="padding-end-1-2"><svg height=16px viewBox="0 0 32 32" width=16px xmlns=http://www.w3.org/2000/svg>${x`<path class="svg-color" d="M29.963 7.672a1.586 1.586 0 0 0-1.584-1.585h-5.274a.187.187 0 0 1-.188-.187V3.977A2 2 0 0 0 20.825 2h-9.672A2.095 2.095 0 0 0 9.06 4.093V5.9a.187.187 0 0 1-.187.187H3.598a1.586 1.586 0 0 0-1.584 1.585v4.016a.281.281 0 0 0 .281.28H4.9l.014-.013V9.153a.177.177 0 0 1 .177-.177h21.46a.456.456 0 0 1 .449.45v13.742A1.832 1.832 0 0 1 25.168 25h-8.892a.568.568 0 0 1-.534-.373 3.98 3.98 0 0 0-7.6.373H5.657a.757.757 0 0 1-.757-.757v-3.055A.188.188 0 0 0 4.714 21H2.028l-.014.014v4.58a2.35 2.35 0 0 0 2.347 2.346h4.161a3.963 3.963 0 0 0 6.8.256.569.569 0 0 1 .475-.256h12.065a2.102 2.102 0 0 0 2.101-2.101zM21 5.625a.375.375 0 0 1-.375.375h-9.25A.375.375 0 0 1 11 5.625V4.45a.456.456 0 0 1 .45-.45h9.1a.456.456 0 0 1 .45.45zM12 28a2 2 0 1 1 2-2 2 2 0 0 1-2 2z" /><path class="svg-color" d="M13.273 17.994a.57.57 0 0 1 .479.262A3.73 3.73 0 0 0 17 20a3.74 3.74 0 0 0 3.403-2.006h3.41a.188.188 0 0 0 .187-.188v-2.589a.187.187 0 0 0-.188-.188H20.8A3.8 3.8 0 0 0 17 12a4.058 4.058 0 0 0-3.69 2.647.568.568 0 0 1-.537.383H1.093a.094.094 0 0 0-.093.093V17.9a.094.094 0 0 0 .094.094zM17 13.9a2.1 2.1 0 1 1-2.1 2.1 2.1 2.1 0 0 1 2.1-2.1z" />`}</svg></div><calcite-label class="deployed-label-override" scale=s>${this._translations.deployedDate.replace("{{date}}", this.deployedDate)}</calcite-label></div>`;
375
367
  }
376
368
  _getConfigureButton() {
377
- const e = this._configContextConsumer.value?.userSession?.username, i = this._configContextConsumer.value?.authentication?.CanUpdateSolution, s = this._configContextConsumer.value?.authentication?.CanDeleteSolution && this._configContextConsumer.value?.authentication?.CanUpdateSolution, a = this.card?.owner === e || this._isOrgAdmin || i, r = this.card?.owner === e || this._isOrgAdmin || s, c = a ? "display-none" : "";
378
- return l`<calcite-split-button appearance=outline aria-label=${this._translations.openSolution ?? f} dropdown-label=${this._translations.moreActions ?? f} kind=neutral @calciteSplitButtonPrimaryClick=${this._cardSelected} @click=${(n) => n.stopPropagation()} @keydown=${(n) => n.stopPropagation()} overlay-positioning=fixed primary-text=${this._translations.openSolution ?? f} width=full><calcite-dropdown-group selection-mode=none>${!this.isMobile && l`<calcite-dropdown-item icon-start=model @click=${this._viewDiagram} @keydown=${(n) => g(n, () => this._viewDiagram(n))}>${this._translations.viewDiagram}</calcite-dropdown-item>` || ""}<calcite-dropdown-item icon-start=file-text @click=${this._viewDocumentation} @keydown=${(n) => g(n, () => this._viewDocumentation(n))}>${this._translations.documentation}</calcite-dropdown-item><calcite-dropdown-item icon-start=information @click=${this._viewItemDetails} @keydown=${(n) => g(n, () => this._viewItemDetails(n))}>${this._translations.viewItemDetails}</calcite-dropdown-item>${!this.isMobile && a && l`<calcite-dropdown-item icon-start=edit-attributes id=solution-configure-titles-dropdown @click=${async () => {
369
+ const t = this._configContextConsumer.value?.userSession?.username, i = this._configContextConsumer.value?.authentication?.CanUpdateSolution, s = this.card?.owner === t || this._isOrgAdmin || i, a = this.card?.owner === t || this._isOrgAdmin, r = s ? "display-none" : "";
370
+ return l`<calcite-split-button appearance=outline aria-label=${this._translations.openSolution ?? f} dropdown-label=${this._translations.moreActions ?? f} kind=neutral @calciteSplitButtonPrimaryClick=${this._cardSelected} @click=${(n) => n.stopPropagation()} @keydown=${(n) => n.stopPropagation()} overlay-positioning=fixed primary-text=${this._translations.openSolution ?? f} width=full><calcite-dropdown-group selection-mode=none>${!this.isMobile && l`<calcite-dropdown-item icon-start=model @click=${this._viewDiagram} @keydown=${(n) => g(n, () => this._viewDiagram(n))}>${this._translations.viewDiagram}</calcite-dropdown-item>` || ""}<calcite-dropdown-item icon-start=file-text @click=${this._viewDocumentation} @keydown=${(n) => g(n, () => this._viewDocumentation(n))}>${this._translations.documentation}</calcite-dropdown-item><calcite-dropdown-item icon-start=information @click=${this._viewItemDetails} @keydown=${(n) => g(n, () => this._viewItemDetails(n))}>${this._translations.viewItemDetails}</calcite-dropdown-item>${!this.isMobile && s && l`<calcite-dropdown-item icon-start=edit-attributes id=solution-configure-titles-dropdown @click=${async () => {
379
371
  this.templateInfos = await this._processTemplates(this.card), this._configureTitlesOpen = !0;
380
372
  }} @keydown=${(n) => g(n, async () => {
381
373
  this.templateInfos = await this._processTemplates(this.card), this._configureTitlesOpen = !0;
382
- })}>${this._translations.renameItems}</calcite-dropdown-item>` || ""}${!this.isMobile && r && l`<calcite-dropdown-item icon-start=trash @click=${this._deleteSolution} @keydown=${(n) => g(n, () => this._deleteSolution(n))}>${this._translations.deleteSolution}</calcite-dropdown-item>` || ""}</calcite-dropdown-group><calcite-tooltip class=${G(c)} overlay-positioning=fixed reference-element=solution-configure-titles-dropdown><span>${this._translations.mustOwnSolution}</span></calcite-tooltip></calcite-split-button>`;
374
+ })}>${this._translations.renameItems}</calcite-dropdown-item>` || ""}${!this.isMobile && a && l`<calcite-dropdown-item icon-start=trash @click=${this._deleteSolution} @keydown=${(n) => g(n, () => this._deleteSolution(n))}>${this._translations.deleteSolution}</calcite-dropdown-item>` || ""}</calcite-dropdown-group><calcite-tooltip class=${G(r)} overlay-positioning=fixed reference-element=solution-configure-titles-dropdown><span>${this._translations.mustOwnSolution}</span></calcite-tooltip></calcite-split-button>`;
383
375
  }
384
376
  _renderDeleteDialog() {
385
- return this._isDeleteOpen ? l`<solution-delete-dialog .card=${this.card} @solutionDeleteDialogOpen=${(e) => {
386
- this._isDeleteOpen = e.detail;
377
+ return this._isDeleteOpen ? l`<solution-delete-dialog .card=${this.card} @solutionDeleteDialogOpen=${(t) => {
378
+ this._isDeleteOpen = t.detail;
387
379
  }} .open=${this._isDeleteOpen} source="Card Dropdown" ${S(this._deleteDialogRef)}></solution-delete-dialog>` : "";
388
380
  }
389
381
  _renderDiagramDialog() {
@@ -393,12 +385,12 @@ class te extends $ {
393
385
  }
394
386
  _renderConfigureTitlesDialog() {
395
387
  return this._configureTitlesOpen ? l`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${async () => {
396
- this._processTemplates(this.card).then((e) => {
397
- this.templateInfos = e;
388
+ this._processTemplates(this.card).then((t) => {
389
+ this.templateInfos = t;
398
390
  }), this._configureTitlesOpen = !1;
399
391
  }} @solutionItemsTitlesChanged=${async () => {
400
- this._processTemplates(this.card).then((e) => {
401
- this.templateInfos = e;
392
+ this._processTemplates(this.card).then((t) => {
393
+ this.templateInfos = t;
402
394
  });
403
395
  }} .open=${this._configureTitlesOpen} source="Card Dropdown" .templateInfos=${this.templateInfos}></solution-configure-titles>` : "";
404
396
  }
@@ -408,8 +400,8 @@ class te extends $ {
408
400
  cardRef: this.el
409
401
  });
410
402
  }
411
- async _viewDiagram(e) {
412
- e.stopPropagation(), this.card && (this._telemetry?.logEvent({
403
+ async _viewDiagram(t) {
404
+ t.stopPropagation(), this.card && (this._telemetry?.logEvent({
413
405
  category: b.DEPLOYMENTS,
414
406
  action: "View Diagram",
415
407
  dimensions: [
@@ -420,8 +412,8 @@ class te extends $ {
420
412
  ]
421
413
  }), this.templateInfoGraph = await this._processTemplates(this.card), this._isDiagramOpen = !0);
422
414
  }
423
- _viewDocumentation(e) {
424
- e.stopPropagation(), this._telemetry?.logEvent({
415
+ _viewDocumentation(t) {
416
+ t.stopPropagation(), this._telemetry?.logEvent({
425
417
  category: b.DEPLOYMENTS,
426
418
  action: "Open Help",
427
419
  dimensions: [
@@ -432,8 +424,8 @@ class te extends $ {
432
424
  ]
433
425
  }), window.open(this.card.learnMoreUrl, "_blank");
434
426
  }
435
- _viewItemDetails(e) {
436
- e.stopPropagation(), this._telemetry?.logEvent({
427
+ _viewItemDetails(t) {
428
+ t.stopPropagation(), this._telemetry?.logEvent({
437
429
  category: b.DEPLOYMENTS,
438
430
  action: "Open Item Details",
439
431
  dimensions: [
@@ -444,22 +436,22 @@ class te extends $ {
444
436
  ]
445
437
  }), window.open(this.card.itemUrl, "_blank");
446
438
  }
447
- _deleteSolution(e) {
448
- e.stopPropagation(), this._isDeleteOpen = !0;
439
+ _deleteSolution(t) {
440
+ t.stopPropagation(), this._isDeleteOpen = !0;
449
441
  }
450
- _openUserProfile(e) {
451
- e.stopPropagation();
442
+ _openUserProfile(t) {
443
+ t.stopPropagation();
452
444
  const i = this._configContextConsumer.value?.authentication?.PortalSubset?.orgUrl;
453
445
  i && window.open(`${i}/home/user.html?user=${this.owner}`, "_blank");
454
446
  }
455
- async _processTemplates(e) {
456
- return await j(e.id, this._configContextConsumer.value.userSession);
447
+ async _processTemplates(t) {
448
+ return await j(t.id, this._configContextConsumer.value.userSession);
457
449
  }
458
- _updateThumbnailToken(e) {
459
- this._thumbnailUrl !== "" && (this._thumbnailUrl = ee(this._thumbnailUrl, e));
450
+ _updateThumbnailToken(t) {
451
+ this._thumbnailUrl !== "" && (this._thumbnailUrl = ee(this._thumbnailUrl, t));
460
452
  }
461
453
  }
462
- L("solution-deployed-card", te);
454
+ C("solution-deployed-card", te);
463
455
  const Ye = 500, qe = {
464
456
  AEC: "Architecture, Engineering, and Construction (AEC)",
465
457
  AIRPORTPORTRAIL: "Airports, Ports, and Rails",
@@ -499,7 +491,7 @@ const Ye = 500, qe = {
499
491
  TRANSPORTATION: "Transportation",
500
492
  WATER: "Water Distribution"
501
493
  };
502
- var d = /* @__PURE__ */ ((t) => (t.HUBPREMIUM = "solutions:hubPremium", t.NOTEBOOK = "solutions:notebook", t.TRACKINGBASE = "solutions:locationtracking", t.TRACKING = "solutions:locationtracking:tracking", t.TRACKINGADMIN = "solutions:locationtracking:admin", t.TRACKINGADMINANDTRACKING = "solutions:locationtracking:admin:tracking", t.VELOCITY = "solutions:velocity", t.WORKFLOW = "solutions:workflowManager", t))(d || {}), ie = /* @__PURE__ */ ((t) => (t.VELOCITYBIGDATA = "portal:publisher:publishBigDataAnalytics", t.VELOCITYFEEDS = "portal:publisher:publishFeeds", t.VELOCITYREALTIME = "portal:publisher:publishRealTimeAnalytics", t))(ie || {});
494
+ var c = /* @__PURE__ */ ((e) => (e.HUBPREMIUM = "solutions:hubPremium", e.NOTEBOOK = "solutions:notebook", e.TRACKINGBASE = "solutions:locationtracking", e.TRACKING = "solutions:locationtracking:tracking", e.TRACKINGADMIN = "solutions:locationtracking:admin", e.TRACKINGADMINANDTRACKING = "solutions:locationtracking:admin:tracking", e.VELOCITY = "solutions:velocity", e.WORKFLOW = "solutions:workflowManager", e))(c || {}), ie = /* @__PURE__ */ ((e) => (e.VELOCITYBIGDATA = "portal:publisher:publishBigDataAnalytics", e.VELOCITYFEEDS = "portal:publisher:publishFeeds", e.VELOCITYREALTIME = "portal:publisher:publishRealTimeAnalytics", e))(ie || {});
503
495
  const Je = '((typekeywords:Solution,Deployed,"ArcGIS Solution") OR ((typekeywords:Solution,Deployed) AND (created:[1577862000000 TO 1622576880000])))', Qe = "(typekeywords:Solution,Template)", se = "portal:user:addExternalMembersToGroup", ae = "portal:user:createItem", A = "portal:user:createGroup", ne = "portal:publisher:publishBigDataAnalytics", I = "portal:publisher:publishFeatures", oe = "portal:publisher:publishFeeds", re = "portal:publisher:publishServerGPServices", le = "portal:publisher:publishRealTimeAnalytics", D = "portal:user:shareToGroup", ce = "solutions:hubPremium", de = "solutions:notebook", ue = "solutions:locationtracking:admin:tracking", pe = "solutions:locationtracking:tracking", he = "solutions:locationtracking:admin", ge = "solutions:velocity", me = "solutions:workflowManager", fe = 250, b = {
504
496
  SOLUTION_DETAILS: "Solution Details",
505
497
  GLOBAL_NAVIGATION: "Global Nav",
@@ -531,7 +523,7 @@ export {
531
523
  Je as B,
532
524
  Y as C,
533
525
  Ve as D,
534
- d as E,
526
+ c as E,
535
527
  v as F,
536
528
  B as G,
537
529
  ee as H,
@@ -540,11 +532,11 @@ export {
540
532
  ze as K,
541
533
  Ge as L,
542
534
  Be as M,
543
- Le as N,
544
- Ce as O,
535
+ Ce as N,
536
+ Ne as O,
545
537
  se as P,
546
538
  Ue as Q,
547
- Ne as R,
539
+ Le as R,
548
540
  ce as S,
549
541
  b as T,
550
542
  q as U,