@esri/solutions-components 5.0.5 → 5.0.6

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 (129) hide show
  1. package/dist/cdn/{IHDRZQU4.js → 2DPJZTGZ.js} +1 -1
  2. package/dist/cdn/{X5T6TZW3.js → 2ZHFKBQO.js} +1 -1
  3. package/dist/cdn/{W33YWBF5.js → 3GLO7PZY.js} +1 -1
  4. package/dist/cdn/3MHFKNRH.js +2 -0
  5. package/dist/cdn/{WXE6AACQ.js → 3UZ6LMZQ.js} +1 -1
  6. package/dist/cdn/{EQXQ6YNY.js → 3ZEFAZQJ.js} +1 -1
  7. package/dist/cdn/4E2QV2RF.js +2 -0
  8. package/dist/cdn/{QPRIL54J.js → 4KYIM4XN.js} +1 -1
  9. package/dist/cdn/{MSGOASUF.js → 52LTQZ5L.js} +1 -1
  10. package/dist/cdn/{YT2I5RUD.js → 5CJ5TY42.js} +1 -1
  11. package/dist/cdn/{7DOH2ZMP.js → 5J4YGZZD.js} +1 -1
  12. package/dist/cdn/{EKZZ7R2V.js → 5KUZRJBN.js} +1 -1
  13. package/dist/cdn/{VW52F2EM.js → 62H3JCSO.js} +1 -1
  14. package/dist/cdn/{Y3CBLTF5.js → 654SAJ5M.js} +1 -1
  15. package/dist/cdn/{6LSHZOMB.js → 6HDTGG3L.js} +1 -1
  16. package/dist/cdn/6PZ6PVTG.js +2 -0
  17. package/dist/cdn/{VVURRW2F.js → 6PZREC7X.js} +1 -1
  18. package/dist/cdn/6RFIB2J7.js +2 -0
  19. package/dist/cdn/7JVIFSRF.js +2 -0
  20. package/dist/cdn/{57INLFON.js → 7UQHQGGR.js} +1 -1
  21. package/dist/cdn/{YE7JMYIB.js → 7WBAW4FI.js} +1 -1
  22. package/dist/cdn/{BCTFO27G.js → AC6MJOAB.js} +1 -1
  23. package/dist/cdn/ALXBMM22.js +2 -0
  24. package/dist/cdn/{67TUHEUB.js → AOU46BFO.js} +1 -1
  25. package/dist/cdn/{DY3BUOEI.js → BR4TZZCB.js} +1 -1
  26. package/dist/cdn/{TAZIMIFF.js → BXXSHO4P.js} +1 -1
  27. package/dist/cdn/{2ECRQJCU.js → CBXXTXHF.js} +1 -1
  28. package/dist/cdn/{6HNQQRYK.js → CYEOUBT7.js} +1 -1
  29. package/dist/cdn/{MWCQXZOT.js → D3Q2BMGC.js} +2 -2
  30. package/dist/cdn/{RQEYXUDW.js → DXYCRHKW.js} +1 -1
  31. package/dist/cdn/{KUZQPBVI.js → E3FUDTEG.js} +1 -1
  32. package/dist/cdn/{5YORDAVH.js → EUJEN75Q.js} +1 -1
  33. package/dist/cdn/{ADJCIRZS.js → EUODHGXF.js} +1 -1
  34. package/dist/cdn/{5G3AHODR.js → F2JNLC5K.js} +1 -1
  35. package/dist/cdn/{6QODI424.js → GARIVREH.js} +1 -1
  36. package/dist/cdn/{33HIGVEX.js → GSTBH4J5.js} +1 -1
  37. package/dist/cdn/{RBCOT3CJ.js → H7MJ7IGV.js} +1 -1
  38. package/dist/cdn/{EPMMVHPO.js → HHBYWWW3.js} +1 -1
  39. package/dist/cdn/{23DKMPGJ.js → HSSQBD3H.js} +1 -1
  40. package/dist/cdn/{ZNG42S47.js → HTXFCOPI.js} +1 -1
  41. package/dist/cdn/{NJJEOZ2G.js → I5KQH3I2.js} +1 -1
  42. package/dist/cdn/{K7O46PDI.js → IEY5UTNT.js} +1 -1
  43. package/dist/cdn/{VEUUNFWR.js → JHAGL5UZ.js} +1 -1
  44. package/dist/cdn/{K2BF5736.js → KD2OVMZO.js} +1 -1
  45. package/dist/cdn/{HNPTTIXC.js → KS76NDW7.js} +1 -1
  46. package/dist/cdn/{MP5X6HGT.js → KT2ORA3Q.js} +1 -1
  47. package/dist/cdn/{R47OTDC2.js → L6L2P3QS.js} +1 -1
  48. package/dist/cdn/{RTVWZSKJ.js → L7WRG2G5.js} +1 -1
  49. package/dist/cdn/{LLIZZGSY.js → LIARPICS.js} +1 -1
  50. package/dist/cdn/{ZFSMRICA.js → LWBJ45OR.js} +1 -1
  51. package/dist/cdn/{MDHKDE77.js → MJ4LI4IV.js} +1 -1
  52. package/dist/cdn/{5BEMMNL7.js → MS6GCUUL.js} +1 -1
  53. package/dist/cdn/{IQ6XED24.js → N2JDDZHC.js} +1 -1
  54. package/dist/cdn/{BADKNCL4.js → N2WO3YVL.js} +1 -1
  55. package/dist/cdn/{XWJFP7BZ.js → NC6JL2EV.js} +1 -1
  56. package/dist/cdn/{2YCDW2EI.js → NGJIRF7M.js} +1 -1
  57. package/dist/cdn/{2JBJVGPJ.js → NHPGVRRO.js} +1 -1
  58. package/dist/cdn/{MJDNGEFJ.js → OI3ISQWM.js} +1 -1
  59. package/dist/cdn/{N6EQBPC2.js → OLFZ5ET5.js} +1 -1
  60. package/dist/cdn/{BGBLGDVO.js → OOSW7Q2C.js} +1 -1
  61. package/dist/cdn/PEBFXPSL.js +2 -0
  62. package/dist/cdn/{ZD3OZO6O.js → QD2Q6HPQ.js} +1 -1
  63. package/dist/cdn/{JSX7H42C.js → QKSAGMHC.js} +1 -1
  64. package/dist/cdn/{M2MN2QB7.js → QP3QUOVI.js} +1 -1
  65. package/dist/cdn/{BA4FCDQY.js → QPBV4Y7M.js} +1 -1
  66. package/dist/cdn/{RYRVUHB7.js → RJVZG4T4.js} +1 -1
  67. package/dist/cdn/{NORNRIIE.js → SEH4C4BM.js} +1 -1
  68. package/dist/cdn/{QZZ2CQWS.js → SRAAWOU6.js} +1 -1
  69. package/dist/cdn/{YUWQWOOF.js → T3XWY77W.js} +1 -1
  70. package/dist/cdn/{RGFLXW4Q.js → UIJUUMOH.js} +1 -1
  71. package/dist/cdn/{UV4D2QFA.js → UYIFEFZO.js} +1 -1
  72. package/dist/cdn/{TF3C523O.js → UZTK5BFT.js} +1 -1
  73. package/dist/cdn/{VPMYUEFF.js → V3B323D4.js} +1 -1
  74. package/dist/cdn/{SIUK7OO4.js → VMF3426Z.js} +1 -1
  75. package/dist/cdn/{M6DR7QBF.js → W4AUM6QU.js} +1 -1
  76. package/dist/cdn/{SQYHEYVJ.js → WCF7EVUQ.js} +1 -1
  77. package/dist/cdn/{VGIXK3YM.js → WJK27OTO.js} +1 -1
  78. package/dist/cdn/{5QP3RIEO.js → X43QJBP2.js} +1 -1
  79. package/dist/cdn/{XLBMKYPQ.js → XCS33CLJ.js} +1 -1
  80. package/dist/cdn/{NARQQKRW.js → XJTGQUMI.js} +1 -1
  81. package/dist/cdn/{TGH6D5IY.js → YQSES45Q.js} +1 -1
  82. package/dist/cdn/{DV233ITZ.js → Z73DPA3J.js} +1 -1
  83. package/dist/cdn/{Z6NMQGEQ.js → ZSYY5MLI.js} +1 -1
  84. package/dist/cdn/index.js +1 -1
  85. package/dist/chunks/Auth.js +45 -27
  86. package/dist/chunks/cardFetchingUtils.js +11 -11
  87. package/dist/chunks/cardsHelpers.js +5 -5
  88. package/dist/chunks/getRelatedInfos.js +1 -1
  89. package/dist/chunks/{interfaces.js → helpers.js} +196 -196
  90. package/dist/chunks/runtime.js +2 -2
  91. package/dist/chunks/solution-deploy-dialog.js +1 -1
  92. package/dist/chunks/solutions-deploy-app-nav.js +70 -69
  93. package/dist/components/arcgis-solutions-assistant/customElement.js +20 -20
  94. package/dist/components/layer-table/customElement.js +2 -2
  95. package/dist/components/map-card/customElement.js +1 -1
  96. package/dist/components/solution-configure-titles/customElement.js +1 -1
  97. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  98. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  99. package/dist/components/solution-deployed-card/customElement.js +1 -1
  100. package/dist/components/solution-deployed-card-panel/customElement.js +4 -4
  101. package/dist/components/solution-details-card/customElement.js +6 -6
  102. package/dist/components/solution-details-panel/customElement.js +5 -5
  103. package/dist/components/solution-resource-card/customElement.js +1 -1
  104. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  105. package/dist/components/solution-social-share/customElement.js +1 -1
  106. package/dist/components/solution-user-avatar/customElement.js +1 -1
  107. package/dist/components/solutions-all-panel/customElement.js +1 -1
  108. package/dist/components/solutions-all-shell/customElement.js +1 -1
  109. package/dist/components/solutions-deploy-app/customElement.js +8 -7
  110. package/dist/components/solutions-deploy-app-nav/customElement.js +1 -1
  111. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  112. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  113. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  114. package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
  115. package/dist/docs/api.json +1 -1
  116. package/dist/docs/docs.json +1 -1
  117. package/dist/docs/vscode.html-custom-data.json +1 -1
  118. package/dist/docs/web-types.json +1 -1
  119. package/dist/index.js +1 -1
  120. package/dist/solutions-components_commit.txt +6 -6
  121. package/dist/utils/Auth.d.ts +8 -1
  122. package/package.json +1 -1
  123. package/dist/cdn/4O4QS3DG.js +0 -2
  124. package/dist/cdn/5QSIKX2L.js +0 -2
  125. package/dist/cdn/BXKV2QC3.js +0 -2
  126. package/dist/cdn/EIQZRLWQ.js +0 -2
  127. package/dist/cdn/S42I3DOW.js +0 -2
  128. package/dist/cdn/SFZEAERJ.js +0 -2
  129. package/dist/cdn/TZPSZTAH.js +0 -2
@@ -1,127 +1,21 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
2
  import * as m from "@esri/solution-common";
3
+ import "@arcgis/core/intl.js";
3
4
  import { c as L } from "./runtime.js";
4
5
  import { css as M, html as l, svg as x } from "lit";
5
6
  import { u as U } from "./useT9n.js";
6
7
  import { LitElement as $, createEvent as P, nothing as f, safeClassMap as G } from "@arcgis/lumina";
7
8
  import { useContextConsumer as E } from "@arcgis/lumina/context";
8
9
  import { createContext as T } from "@lit/context";
9
- import "@arcgis/lumina/controllers";
10
+ import { createRef as _, ref as S } from "lit-html/directives/ref.js";
10
11
  import "@arcgis/core/identity/IdentityManager.js";
11
12
  import "@arcgis/core/identity/OAuthInfo.js";
12
13
  import "@arcgis/core/portal/Portal.js";
13
- import "@arcgis/core/intl.js";
14
- import { createRef as _, ref as S } from "lit-html/directives/ref.js";
14
+ import "@arcgis/lumina/controllers";
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(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
- filter: "type:Solution",
31
- authentication: i
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), C = d.filter((u) => u.startsWith(w));
33
- return { conflictingNames: N, similiarNames: C };
34
- }
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
- }
38
- function V(e) {
39
- return e.length <= 0;
40
- }
41
- function z(e) {
42
- return e.length > fe;
43
- }
44
- function Y(e, t) {
45
- return (t === "item" ? /[><~`$^+=|]/u : /[/<>]/u).test(e);
46
- }
47
- function Ne(e) {
48
- if (e) {
49
- const t = e.trim();
50
- return t ? "<div>" + t + "</div>" : "";
51
- } else
52
- return "";
53
- }
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
- }
60
- function Ce(e, t, i, s) {
61
- let a = "";
62
- return t ? a = s + "/sharing/rest/content/items/" + e + "/info/" + t + q([{ k: "w", v: "400" }]) : a = i, a;
63
- }
64
- function Le(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
- }
68
- function Me(e, t, i) {
69
- return t.some((s) => s.wkid === e ? (i = s.defaultExtent, !0) : !1), i;
70
- }
71
- function xe(e, t) {
72
- return O(t || e);
73
- }
74
- function Ue(e, t = "en") {
75
- return new Intl.DateTimeFormat(t, {
76
- year: "numeric",
77
- month: "long",
78
- day: "numeric"
79
- }).format(e);
80
- }
81
- function $e(e, t) {
82
- let i = "";
83
- return e.some((s) => s.startsWith(t) ? (i = s.substring(t.length), !0) : !1), i;
84
- }
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
- }
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
- }
93
- function Ge(e) {
94
- return e.charAt(0).toUpperCase() + e.slice(1);
95
- }
96
- function Be(e) {
97
- return {
98
- relevance: "Relevance",
99
- title: "Title",
100
- new: "New",
101
- created: "Date deployed",
102
- updated: "Updated",
103
- suggested: "Suggested for you"
104
- }[e] || e;
105
- }
106
- function Ke(e) {
107
- if (!e)
108
- return "Unknown error";
109
- if (e.message)
110
- return e.message;
111
- try {
112
- const t = JSON.stringify(e);
113
- return t && t !== "{}" ? t : e.toString();
114
- } catch {
115
- return e.toString();
116
- }
117
- }
118
- function Fe(e) {
119
- return e ? parseFloat(((Date.now() - e) / 1e3).toFixed(2)) : 0;
120
- }
121
- function g(e, t) {
122
- (e.key === "Enter" || e.code === "NumpadEnter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), t());
123
- }
124
- async function j(e, t) {
18
+ async function H(e, t) {
125
19
  const i = await m.getItemDataAsJson(e, t);
126
20
  if (!i)
127
21
  throw new Error(`Solution ${e} was not found`);
@@ -153,38 +47,38 @@ async function j(e, t) {
153
47
  }
154
48
  return a;
155
49
  }
156
- function He(e, t, i) {
50
+ function Re(e, t, i) {
157
51
  const s = e.templates.map((h) => h.type), a = [];
158
- a.push(ae), s.indexOf("Group") >= 0 && (a.push(A), a.push(D)), s.indexOf("Feature Service") >= 0 && a.push(I);
52
+ a.push(X), s.indexOf("Group") >= 0 && (a.push(O), a.push(I)), s.indexOf("Feature Service") >= 0 && a.push(A);
159
53
  const r = s.indexOf("Feed") > -1;
160
- r && a.push(oe);
54
+ r && a.push(ee);
161
55
  const n = s.indexOf("Big Data Analytic") > -1;
162
- n && a.push(ne);
56
+ n && a.push(Z);
163
57
  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));
58
+ p && a.push(ie), (r || n || p) && a.push(le), s.indexOf("Workflow") > -1 && (a.push(O), a.push(A), a.push(I), a.push(ce)), s.indexOf("Geoprocessing Service") > -1 && (a.push(te), i.IsEnterprisePortal && a.push(ae));
165
59
  const o = e.templates.reduce(
166
60
  (h, d) => h.concat(d.item.typeKeywords || []),
167
61
  []
168
62
  );
169
- return Q(a, o, i), X(a, t), J(a, e), a;
63
+ return V(a, o, i), z(a, t), W(a, e), a;
170
64
  }
171
- function J(e, t) {
172
- t.templates.some((i) => i.type === "Group" && i.item?.membershipAccess === "collaboration") && e.push(se);
65
+ function W(e, t) {
66
+ t.templates.some((i) => i.type === "Group" && i.item?.membershipAccess === "collaboration") && e.push(Q);
173
67
  }
174
- function Q(e, t, i) {
175
- const s = v(i), a = Z(i);
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));
68
+ function V(e, t, i) {
69
+ const s = v(i), a = Y(i);
70
+ ["Location Tracking View"].some((n) => t.indexOf(n) > -1) && (!s && !a ? e.push(ne) : s && !a ? e.push(oe) : !s && a && e.push(re));
177
71
  }
178
- function X(e, t) {
179
- ["HubPremium"].some((s) => t.indexOf(s) > -1) && e.push(ce);
72
+ function z(e, t) {
73
+ ["HubPremium"].some((s) => t.indexOf(s) > -1) && e.push(se);
180
74
  }
181
75
  function v(e) {
182
76
  return e.PortalUserSubset?.role === "org_admin" && !e.PortalUserSubset?.roleId;
183
77
  }
184
- function Z(e) {
78
+ function Y(e) {
185
79
  return e.PortalSubset?.locationTrackingEnabled || !1;
186
80
  }
187
- function We(e, t) {
81
+ function ke(e, t) {
188
82
  let i = {
189
83
  leadingMessages: [],
190
84
  bulletedMessages: [],
@@ -298,22 +192,22 @@ function R(e, t) {
298
192
  }
299
193
  return s;
300
194
  }
301
- function Ve(e, t) {
302
- const i = k(t), s = H([{ k: "id", v: e }]) || "";
195
+ function Ne(e, t) {
196
+ const i = k(t), s = ue([{ k: "id", v: e }]) || "";
303
197
  return i ? `${i}/home/item.html${s}` : "";
304
198
  }
305
- function ze(e, t, i, s) {
199
+ function Ce(e, t, i, s) {
306
200
  const a = s || k(i);
307
201
  return a ? `${a}/sharing/rest/content/items/${e}/resources/${t}` : "";
308
202
  }
309
203
  function k(e) {
310
204
  return e?.PortalSubset?.orgUrl || e?.PortalUrl || "";
311
205
  }
312
- function ee(e, t) {
206
+ function q(e, t) {
313
207
  const i = new URL(e);
314
208
  return i.searchParams.set("token", t), i.toString();
315
209
  }
316
- class te extends $ {
210
+ class j extends $ {
317
211
  constructor() {
318
212
  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({
319
213
  context: K,
@@ -445,14 +339,14 @@ class te extends $ {
445
339
  i && window.open(`${i}/home/user.html?user=${this.owner}`, "_blank");
446
340
  }
447
341
  async _processTemplates(t) {
448
- return await j(t.id, this._configContextConsumer.value.userSession);
342
+ return await H(t.id, this._configContextConsumer.value.userSession);
449
343
  }
450
344
  _updateThumbnailToken(t) {
451
- this._thumbnailUrl !== "" && (this._thumbnailUrl = ee(this._thumbnailUrl, t));
345
+ this._thumbnailUrl !== "" && (this._thumbnailUrl = q(this._thumbnailUrl, t));
452
346
  }
453
347
  }
454
- L("solution-deployed-card", te);
455
- const Ye = 500, qe = {
348
+ L("solution-deployed-card", j);
349
+ const Le = 500, Me = {
456
350
  AEC: "Architecture, Engineering, and Construction (AEC)",
457
351
  AIRPORTPORTRAIL: "Airports, Ports, and Rails",
458
352
  BUSINESS: "Business",
@@ -466,7 +360,7 @@ const Ye = 500, qe = {
466
360
  STATEANDLOCALGOVERNMENT: "State and Local Government",
467
361
  TELECOMMUNICATIONS: "Telecommunications",
468
362
  UTILITIES: "Utilities"
469
- }, je = {
363
+ }, xe = {
470
364
  AIRPORT: "Airports",
471
365
  AGRICULTURE: "Agriculture",
472
366
  ASSESSMENTANDTAXATION: "Assessment and Taxation",
@@ -491,22 +385,22 @@ const Ye = 500, qe = {
491
385
  TRANSPORTATION: "Transportation",
492
386
  WATER: "Water Distribution"
493
387
  };
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 || {});
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 = {
388
+ 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 || {}), J = /* @__PURE__ */ ((e) => (e.VELOCITYBIGDATA = "portal:publisher:publishBigDataAnalytics", e.VELOCITYFEEDS = "portal:publisher:publishFeeds", e.VELOCITYREALTIME = "portal:publisher:publishRealTimeAnalytics", e))(J || {});
389
+ const Ue = '((typekeywords:Solution,Deployed,"ArcGIS Solution") OR ((typekeywords:Solution,Deployed) AND (created:[1577862000000 TO 1622576880000])))', $e = "(typekeywords:Solution,Template)", Q = "portal:user:addExternalMembersToGroup", X = "portal:user:createItem", O = "portal:user:createGroup", Z = "portal:publisher:publishBigDataAnalytics", A = "portal:publisher:publishFeatures", ee = "portal:publisher:publishFeeds", te = "portal:publisher:publishServerGPServices", ie = "portal:publisher:publishRealTimeAnalytics", I = "portal:user:shareToGroup", se = "solutions:hubPremium", ae = "solutions:notebook", ne = "solutions:locationtracking:admin:tracking", oe = "solutions:locationtracking:tracking", re = "solutions:locationtracking:admin", le = "solutions:velocity", ce = "solutions:workflowManager", de = 250, b = {
496
390
  SOLUTION_DETAILS: "Solution Details",
497
391
  GLOBAL_NAVIGATION: "Global Nav",
498
392
  ALL_SOLUTIONS: "Solutions",
499
393
  DEPLOYMENTS: "Deployments",
500
394
  ASSISTANT: "Assistant",
501
395
  RESOURCES: "Resources"
502
- }, Xe = {
396
+ }, Pe = {
503
397
  MINE: "My deployments",
504
398
  ORG: "Organization"
505
- }, Ze = {
399
+ }, Ge = {
506
400
  BOTH: "New,Suggested",
507
401
  NEW: "New",
508
402
  SUGGESTED: "Suggested"
509
- }, et = {
403
+ }, Be = {
510
404
  NEW: "new",
511
405
  NUMVIEWS: "views",
512
406
  RELEVANCE: "relevance",
@@ -514,66 +408,172 @@ const Je = '((typekeywords:Solution,Deployed,"ArcGIS Solution") OR ((typekeyword
514
408
  TITLE: "title",
515
409
  UPDATED: "updated",
516
410
  CREATED: "created"
517
- }, tt = {
411
+ }, Ke = {
518
412
  DEPLOY: "deploy",
519
413
  AIOPEN: "aiOpen"
520
414
  };
415
+ function ue(e) {
416
+ let t = "", i = "?";
417
+ return e.forEach((s) => {
418
+ s.k && s.v && (t += i + s.k + "=" + s.v, i = "&");
419
+ }), t;
420
+ }
421
+ function Fe(e) {
422
+ return e ? m.getVelocityUrlBase(e, {}).then((t) => Promise.resolve(!!t)) : Promise.resolve(!1);
423
+ }
424
+ async function pe(e, t) {
425
+ const i = t, s = await i.getUsername(), r = {
426
+ q: new m.SearchQueryBuilder().match(e).in("title").and().match(s).in("owner"),
427
+ filter: "type:Solution",
428
+ authentication: i
429
+ }, 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), C = d.filter((u) => u.startsWith(w));
430
+ return { conflictingNames: N, similiarNames: C };
431
+ }
432
+ async function He(e, t) {
433
+ return he(e) ? { status: !1, type: "empty" } : ge(e) ? { status: !1, type: "exceed length" } : me(e, "folder") ? { status: !1, type: "special character" } : (await pe(e.trim(), t)).conflictingNames.length > 0 ? { status: !1, type: "not unique" } : { status: !0, type: "" };
434
+ }
435
+ function he(e) {
436
+ return e.length <= 0;
437
+ }
438
+ function ge(e) {
439
+ return e.length > de;
440
+ }
441
+ function me(e, t) {
442
+ return (t === "item" ? /[><~`$^+=|]/u : /[/<>]/u).test(e);
443
+ }
444
+ function We(e) {
445
+ if (e) {
446
+ const t = e.trim();
447
+ return t ? "<div>" + t + "</div>" : "";
448
+ } else
449
+ return "";
450
+ }
451
+ function fe(e) {
452
+ let t = "", i = "?";
453
+ return e.forEach((s) => {
454
+ s.k && s.v && (t += i + s.k + "=" + s.v, i = "&");
455
+ }), t;
456
+ }
457
+ function Ve(e, t, i, s) {
458
+ let a = "";
459
+ return t ? a = s + "/sharing/rest/content/items/" + e + "/info/" + t + fe([{ k: "w", v: "400" }]) : a = i, a;
460
+ }
461
+ function ze(e) {
462
+ const t = e ? e.replace("https://", "").replace("www.", "") : "";
463
+ 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";
464
+ }
465
+ function Ye(e, t, i) {
466
+ return t.some((s) => s.wkid === e ? (i = s.defaultExtent, !0) : !1), i;
467
+ }
468
+ function qe(e, t) {
469
+ return D(t || e);
470
+ }
471
+ function je(e, t = "en") {
472
+ return new Intl.DateTimeFormat(t, {
473
+ year: "numeric",
474
+ month: "long",
475
+ day: "numeric"
476
+ }).format(e);
477
+ }
478
+ function Je(e, t) {
479
+ let i = "";
480
+ return e.some((s) => s.startsWith(t) ? (i = s.substring(t.length), !0) : !1), i;
481
+ }
482
+ function D(e) {
483
+ const t = e.replace("www.", "");
484
+ 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";
485
+ }
486
+ function Qe(e, t) {
487
+ let i = e?.reduce((s, a) => (s.indexOf(a.id) < 0 && s.push(a.id), s), []) || [];
488
+ return t ? i.sort((s, a) => t.indexOf(s) - t.indexOf(a)) : i;
489
+ }
490
+ function Xe(e) {
491
+ return e.charAt(0).toUpperCase() + e.slice(1);
492
+ }
493
+ function Ze(e) {
494
+ return {
495
+ relevance: "Relevance",
496
+ title: "Title",
497
+ new: "New",
498
+ created: "Date deployed",
499
+ updated: "Updated",
500
+ suggested: "Suggested for you"
501
+ }[e] || e;
502
+ }
503
+ function et(e) {
504
+ if (!e)
505
+ return "Unknown error";
506
+ if (e.message)
507
+ return e.message;
508
+ try {
509
+ const t = JSON.stringify(e);
510
+ return t && t !== "{}" ? t : e.toString();
511
+ } catch {
512
+ return e.toString();
513
+ }
514
+ }
515
+ function tt(e) {
516
+ return e ? parseFloat(((Date.now() - e) / 1e3).toFixed(2)) : 0;
517
+ }
518
+ function g(e, t) {
519
+ (e.key === "Enter" || e.code === "NumpadEnter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), t());
520
+ }
521
521
  export {
522
- ke as $,
523
- K as A,
524
- Je as B,
525
- Y as C,
526
- Ve as D,
522
+ He as $,
523
+ Qe as A,
524
+ Ue as B,
525
+ K as C,
526
+ me as D,
527
527
  c as E,
528
- v as F,
529
- B as G,
530
- ee as H,
531
- fe as I,
532
- g as J,
533
- ze as K,
534
- Ge as L,
535
- Be as M,
536
- Le as N,
537
- Ne as O,
538
- se as P,
539
- Ue as Q,
540
- Ce as R,
541
- ce as S,
528
+ Ne as F,
529
+ v as G,
530
+ B as H,
531
+ de as I,
532
+ q as J,
533
+ g as K,
534
+ Ce as L,
535
+ Xe as M,
536
+ Ze as N,
537
+ We as O,
538
+ Q as P,
539
+ je as Q,
540
+ Ve as R,
541
+ se as S,
542
542
  b as T,
543
- q as U,
544
- Re as V,
545
- Fe as W,
546
- Ke as X,
547
- He as Y,
548
- We as Z,
549
- xe as _,
550
- Qe as a,
551
- Me as a0,
552
- W as a1,
553
- te as a2,
554
- Ye as b,
555
- Xe as c,
556
- je as d,
557
- qe as e,
558
- Ze as f,
559
- ie as g,
560
- tt as h,
561
- et as i,
562
- A as j,
563
- ae as k,
564
- ne as l,
565
- I as m,
566
- oe as n,
567
- re as o,
568
- le as p,
569
- D as q,
570
- de as r,
571
- pe as s,
572
- he as t,
573
- ue as u,
574
- ge as v,
575
- me as w,
576
- j as x,
577
- $e as y,
578
- Pe as z
543
+ fe as U,
544
+ Fe as V,
545
+ tt as W,
546
+ et as X,
547
+ Re as Y,
548
+ ke as Z,
549
+ qe as _,
550
+ $e as a,
551
+ Ye as a0,
552
+ pe as a1,
553
+ j as a2,
554
+ Le as b,
555
+ Pe as c,
556
+ xe as d,
557
+ Me as e,
558
+ Ge as f,
559
+ J as g,
560
+ Ke as h,
561
+ Be as i,
562
+ O as j,
563
+ X as k,
564
+ Z as l,
565
+ A as m,
566
+ ee as n,
567
+ te as o,
568
+ ie as p,
569
+ I as q,
570
+ ae as r,
571
+ oe as s,
572
+ re as t,
573
+ ne as u,
574
+ le as v,
575
+ ce as w,
576
+ ze as x,
577
+ H as y,
578
+ Je as z
579
579
  };
@@ -2,7 +2,7 @@
2
2
  import "../cdn/main.css";
3
3
  import { makeRuntime as e } from "@arcgis/lumina";
4
4
  import { trackAccess as s, createObservable as r, createTrackingTarget as a, runTracked as c } from "@arcgis/core/applications/Components/reactiveUtils.js";
5
- const t = e({ defaultAssetPath: "https://js.arcgis.com/5.0.4/solutions-components/", hydratedAttribute: "hydrated" }), { customElement: n, getAssetPath: i, setAssetPath: u } = t;
5
+ const t = e({ defaultAssetPath: "https://jsdev.arcgis.com/5.0.6-next/solutions-components/", hydratedAttribute: "hydrated" }), { customElement: n, getAssetPath: i, setAssetPath: d } = t;
6
6
  t.t = s;
7
7
  t.o = r;
8
8
  t.c = a;
@@ -11,5 +11,5 @@ export {
11
11
  n as c,
12
12
  i as g,
13
13
  t as r,
14
- u as s
14
+ d as s
15
15
  };