@esri/solutions-components 5.1.0-next.13 → 5.1.0-next.15

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 (146) hide show
  1. package/dist/cdn/{JYM2MD3W.js → 27G6RESZ.js} +1 -1
  2. package/dist/cdn/{YMWYAWT6.js → 2H7KJUZG.js} +1 -1
  3. package/dist/cdn/{32EJUXLB.js → 2WPJOTMI.js} +1 -1
  4. package/dist/cdn/{F346YHSU.js → 2XQOWXMT.js} +1 -1
  5. package/dist/cdn/{MQ7BT7PK.js → 3ME5BVUE.js} +1 -1
  6. package/dist/cdn/{WHXMHZL4.js → 3SYLXG32.js} +1 -1
  7. package/dist/cdn/3WO3DS32.js +2 -0
  8. package/dist/cdn/{B44OQSYO.js → 4GHX4MVD.js} +26 -26
  9. package/dist/cdn/{DB763WGF.js → 4L3MVJ5S.js} +1 -1
  10. package/dist/cdn/{QAVXLETM.js → 4NALIU6Y.js} +1 -1
  11. package/dist/cdn/{GYPII3T6.js → 57DOBXD6.js} +1 -1
  12. package/dist/cdn/{ITRKZRX7.js → 5FKEDJRU.js} +1 -1
  13. package/dist/cdn/{TZHUM4R4.js → 5GIHSPJZ.js} +1 -1
  14. package/dist/cdn/{CEKMYC3I.js → 5TZ7Q4JG.js} +1 -1
  15. package/dist/cdn/{Q7AXKKIB.js → 66Q5IRVS.js} +1 -1
  16. package/dist/cdn/{YG7D2NB5.js → 6DLDJH6I.js} +1 -1
  17. package/dist/cdn/{3E6HSVYO.js → 6G7RA3PN.js} +1 -1
  18. package/dist/cdn/{YMETU3CL.js → 6UXP2Q63.js} +1 -1
  19. package/dist/cdn/{XTEP3QJL.js → 74557KPJ.js} +1 -1
  20. package/dist/cdn/{C75PU7NQ.js → 7DHQVMKX.js} +1 -1
  21. package/dist/cdn/{ZMNHA5KF.js → 7J2VRW7S.js} +1 -1
  22. package/dist/cdn/{ADR7DVCB.js → 7ZMHT4SH.js} +1 -1
  23. package/dist/cdn/{MKR5FDTV.js → A2LNKTGU.js} +1 -1
  24. package/dist/cdn/{7SIPKCWY.js → A5STEAY7.js} +1 -1
  25. package/dist/cdn/{XNH7HCKE.js → AC3MHBPK.js} +1 -1
  26. package/dist/cdn/{UM2FREW7.js → AF2YWYJQ.js} +1 -1
  27. package/dist/cdn/AGC6ZWMH.js +2 -0
  28. package/dist/cdn/{VEU3WZUI.js → AT2EES2R.js} +1 -1
  29. package/dist/cdn/{2BJD5X34.js → ATVUAP2X.js} +1 -1
  30. package/dist/cdn/{VCGFT6NM.js → BK3QFV3M.js} +1 -1
  31. package/dist/cdn/{4JXVKICV.js → C44FH5Z2.js} +1 -1
  32. package/dist/cdn/{3BWIMFV4.js → D4QQZVLI.js} +1 -1
  33. package/dist/cdn/{4VFE4GPI.js → DMRQFYLJ.js} +16 -16
  34. package/dist/cdn/DQV46RIT.js +2 -0
  35. package/dist/cdn/{WFB4USZL.js → DZLVEIWW.js} +1 -1
  36. package/dist/cdn/{NA7S3IMW.js → E57JPXDR.js} +1 -1
  37. package/dist/cdn/{TAYHORLE.js → EGFXSDFS.js} +1 -1
  38. package/dist/cdn/{UAQ3H67J.js → EJRSL3ID.js} +1 -1
  39. package/dist/cdn/{HZ6P3WVH.js → EPRDKJSD.js} +1 -1
  40. package/dist/cdn/{WNI44LDP.js → FFDZB5TW.js} +1 -1
  41. package/dist/cdn/{4NMQFFJ5.js → FV7G3BY6.js} +1 -1
  42. package/dist/cdn/{3I5UIOSI.js → FXHBHZKG.js} +1 -1
  43. package/dist/cdn/{TXLUSSRB.js → FZ7WJ3YG.js} +1 -1
  44. package/dist/cdn/{ZC3SWVD4.js → GTKRTZK6.js} +1 -1
  45. package/dist/cdn/{WIC2XPT4.js → IDNTGLQU.js} +1 -1
  46. package/dist/cdn/{MS4ASDJL.js → IKN5RLJ4.js} +1 -1
  47. package/dist/cdn/{BFXJESYN.js → IORIFDK6.js} +1 -1
  48. package/dist/cdn/{7B5EP3RI.js → IUPEGG4M.js} +1 -1
  49. package/dist/cdn/{3HALRHHO.js → K5JYHCQ7.js} +1 -1
  50. package/dist/cdn/{2W6HTIBW.js → K5VEUOS3.js} +1 -1
  51. package/dist/cdn/{ZDMOQS37.js → K7XOFXRK.js} +1 -1
  52. package/dist/cdn/{XAFSYKI2.js → KKYXQLBJ.js} +1 -1
  53. package/dist/cdn/{U6NFJYPT.js → KZDTATOG.js} +1 -1
  54. package/dist/cdn/{HUF4HX5R.js → LCWLPXAF.js} +1 -1
  55. package/dist/cdn/{PFLQDK3I.js → LD2NUKM3.js} +1 -1
  56. package/dist/cdn/{7GNDNQTX.js → LDHJGX5G.js} +1 -1
  57. package/dist/cdn/{YJMAWMEK.js → LO5Q55JH.js} +1 -1
  58. package/dist/cdn/{LR6VDEBR.js → M4OPXH3T.js} +1 -1
  59. package/dist/cdn/{G7XCRE3X.js → MFJF6OXL.js} +1 -1
  60. package/dist/cdn/{EXMZUQW5.js → MWVSVTGT.js} +1 -1
  61. package/dist/cdn/{Q5T633MH.js → N2ROUAUM.js} +1 -1
  62. package/dist/cdn/{GTDHYS64.js → NGCFEPQE.js} +1 -1
  63. package/dist/cdn/{3TYPFWRB.js → NM3YBQUM.js} +1 -1
  64. package/dist/cdn/{K344PR7N.js → NOOFAZCT.js} +1 -1
  65. package/dist/cdn/{VZPEYWYR.js → NWTG35WX.js} +1 -1
  66. package/dist/cdn/{7CXQ3R3O.js → NZS3YVIT.js} +1 -1
  67. package/dist/cdn/{SEDPMCMZ.js → OC2DD3AB.js} +1 -1
  68. package/dist/cdn/{JGU6J5IA.js → P5Q3LVYT.js} +1 -1
  69. package/dist/cdn/{AI3I2TOG.js → QMD2WK5F.js} +1 -1
  70. package/dist/cdn/{XYOCI4UP.js → QQSP7HQH.js} +1 -1
  71. package/dist/cdn/{TER4MTK6.js → RNTJMF4O.js} +1 -1
  72. package/dist/cdn/SENL26AU.js +3 -0
  73. package/dist/cdn/{T2FOSTMH.js → SIUUQBL4.js} +1 -1
  74. package/dist/cdn/{YIQVAISO.js → SXD7ZWLW.js} +1 -1
  75. package/dist/cdn/{MZDSTI7I.js → TP5EQUBD.js} +1 -1
  76. package/dist/cdn/{PFKPNZ5Q.js → TRJ6EQRD.js} +1 -1
  77. package/dist/cdn/{4HGP3Y4K.js → U3LEZXNT.js} +1 -1
  78. package/dist/cdn/{CF35YGUK.js → ULXATJK5.js} +1 -1
  79. package/dist/cdn/{TZ73WV5T.js → UME5GDA2.js} +1 -1
  80. package/dist/cdn/{4FBEUQIB.js → USM62FP5.js} +1 -1
  81. package/dist/cdn/VFC4CM23.js +2 -0
  82. package/dist/cdn/{2CFQ6EQE.js → VJYMTG4U.js} +1 -1
  83. package/dist/cdn/{GEKZO6V7.js → VRE7NUZ2.js} +1 -1
  84. package/dist/cdn/{2H3VIDNQ.js → WMPUJYLT.js} +1 -1
  85. package/dist/cdn/{BPVYL3DJ.js → XC7LLCVS.js} +1 -1
  86. package/dist/cdn/{CI7CDZL3.js → XCILPMDZ.js} +1 -1
  87. package/dist/cdn/{42736UND.js → XKDPK7SD.js} +1 -1
  88. package/dist/cdn/{3P3PF3BO.js → XTDFTH5X.js} +1 -1
  89. package/dist/cdn/{ZIAMLGUC.js → XTUL7OCR.js} +1 -1
  90. package/dist/cdn/{BJ6JU4AF.js → Y6I6QW4M.js} +1 -1
  91. package/dist/cdn/{KV4JOMXV.js → YMOLIY64.js} +1 -1
  92. package/dist/cdn/{XGFCUKM7.js → Z6H6J4QH.js} +1 -1
  93. package/dist/cdn/{RTUAITMO.js → ZDQANIMG.js} +1 -1
  94. package/dist/cdn/{C7XBKLRJ.js → ZVFUYLAQ.js} +1 -1
  95. package/dist/cdn/index.js +1 -1
  96. package/dist/chunks/Auth.js +45 -27
  97. package/dist/chunks/cardFetchingUtils.js +7 -7
  98. package/dist/chunks/cardsHelpers.js +5 -5
  99. package/dist/chunks/getRelatedInfos.js +1 -1
  100. package/dist/chunks/{interfaces.js → helpers.js} +196 -195
  101. package/dist/chunks/solution-deploy-dialog.js +1 -1
  102. package/dist/chunks/solutions-deploy-app-nav.js +38 -37
  103. package/dist/components/arcgis-solutions-assistant/customElement.js +14 -14
  104. package/dist/components/create-feature/customElement.js +1 -1
  105. package/dist/components/layer-list/customElement.js +1 -1
  106. package/dist/components/layer-table/customElement.js +1 -1
  107. package/dist/components/map-card/customElement.js +1 -1
  108. package/dist/components/solution-configure-titles/customElement.js +1 -1
  109. package/dist/components/solution-delete-dialog/customElement.js +5 -5
  110. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  111. package/dist/components/solution-deployed-card/customElement.js +1 -1
  112. package/dist/components/solution-deployed-card-panel/customElement.js +4 -4
  113. package/dist/components/solution-details-card/customElement.js +1 -1
  114. package/dist/components/solution-details-panel/customElement.js +4 -4
  115. package/dist/components/solution-resource-card/customElement.js +1 -1
  116. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  117. package/dist/components/solution-social-share/customElement.js +1 -1
  118. package/dist/components/solution-user-avatar/customElement.js +1 -1
  119. package/dist/components/solutions-all-panel/customElement.js +1 -1
  120. package/dist/components/solutions-all-shell/customElement.js +1 -1
  121. package/dist/components/solutions-deploy-app/customElement.js +2 -1
  122. package/dist/components/solutions-deploy-app-nav/customElement.js +1 -1
  123. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  124. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  125. package/dist/components/solutions-filter-panel/customElement.d.ts +4 -1
  126. package/dist/components/solutions-filter-panel/customElement.js +13 -11
  127. package/dist/components/solutions-searchsort-toolbar/customElement.d.ts +2 -2
  128. package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
  129. package/dist/docs/api.json +1 -1
  130. package/dist/docs/docs.json +1 -1
  131. package/dist/docs/vscode.html-custom-data.json +1 -1
  132. package/dist/docs/web-types.json +1 -1
  133. package/dist/index.js +1 -1
  134. package/dist/solutions-components_commit.txt +5 -8
  135. package/dist/types/lumina.d.ts +1 -0
  136. package/dist/types/preact.d.ts +1 -0
  137. package/dist/types/react.d.ts +1 -0
  138. package/dist/types/stencil.d.ts +1 -0
  139. package/dist/utils/Auth.d.ts +8 -1
  140. package/dist/utils/interfaces.d.ts +1 -0
  141. package/package.json +1 -1
  142. package/dist/cdn/5GYYSZKG.js +0 -2
  143. package/dist/cdn/CPMMNWOL.js +0 -3
  144. package/dist/cdn/JE4LGN6P.js +0 -2
  145. package/dist/cdn/OVKFYACI.js +0 -2
  146. package/dist/cdn/TM75STGN.js +0 -2
@@ -1,8 +1,8 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  import { s as U, d as D, e as g, b as I } from "./cardsHelpers.js";
3
3
  import * as l from "@esri/solution-common";
4
- import { L as M, y as B, M as N, N as E, O as T, Q as y, B as J } from "./interfaces.js";
5
- class x {
4
+ import { x as M, z as B, M as N, N as E, O as T, Q as y, B as J } from "./helpers.js";
5
+ class _ {
6
6
  /**
7
7
  * Constructor
8
8
  *
@@ -282,7 +282,7 @@ class x {
282
282
  ) : [];
283
283
  }
284
284
  }
285
- async function z(h, r, t, s, e = J, i = "created", c = "desc", a = !1, o = [], C = [], f, p, u) {
285
+ async function j(h, r, t, s, e = J, i = "created", c = "desc", a = !1, o = [], C = [], f, p, u) {
286
286
  if (!h?.IsSignedIn)
287
287
  return;
288
288
  const P = {
@@ -294,7 +294,7 @@ async function z(h, r, t, s, e = J, i = "created", c = "desc", a = !1, o = [], C
294
294
  categories: o,
295
295
  num: 100
296
296
  };
297
- return P.q += k(h, p), await K(
297
+ return P.q += k(h, p), await x(
298
298
  r,
299
299
  P,
300
300
  s,
@@ -308,7 +308,7 @@ function k(h, r) {
308
308
  const s = h.PortalUserOrg, e = h.PortalUserName;
309
309
  return s && (t += " orgid:" + s), r !== "My organization's solutions" && e && (t += " owner:" + e), t;
310
310
  }
311
- async function K(h, r, t, s, e = "", i) {
311
+ async function x(h, r, t, s, e = "", i) {
312
312
  const c = await t.requestDeployedSolutionCards(r, h, e, i), a = I(c.cards, s);
313
313
  return {
314
314
  cards: c.cards,
@@ -316,6 +316,6 @@ async function K(h, r, t, s, e = "", i) {
316
316
  };
317
317
  }
318
318
  export {
319
- x as C,
320
- z as g
319
+ _ as C,
320
+ j as g
321
321
  };
@@ -1,13 +1,13 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  import "@esri/solution-common";
3
- import { y as a } from "./interfaces.js";
4
- function S(o, t) {
3
+ import { z as a } from "./helpers.js";
4
+ function p(o, t) {
5
5
  const n = [];
6
6
  return o.forEach((e) => {
7
7
  t.has(e.id) && n.push(e);
8
8
  }), n;
9
9
  }
10
- function p(o, t, n) {
10
+ function y(o, t, n) {
11
11
  if (t < 1 || o.length < t)
12
12
  return {
13
13
  cards: [],
@@ -99,8 +99,8 @@ export {
99
99
  b as a,
100
100
  g as b,
101
101
  u as c,
102
- S as d,
103
- p as e,
102
+ p as d,
103
+ y as e,
104
104
  I as f,
105
105
  m as g,
106
106
  h,
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { x as D } from "./interfaces.js";
2
+ import { y as D } from "./helpers.js";
3
3
  import { getItemRelatedItems as g } from "@esri/solution-common";
4
4
  async function R(o, r) {
5
5
  const s = await h(r, o);
@@ -1,125 +1,19 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/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 C, html as l, svg as M } from "lit";
5
6
  import { u as x } from "./useT9n.js";
6
7
  import { LitElement as U, createEvent as $, nothing as f, safeClassMap as P } from "@arcgis/lumina";
7
8
  import { useContextConsumer as b } from "@arcgis/lumina/context";
8
9
  import { c as G, i as B } from "./deployAppContexts.js";
9
- import "@arcgis/lumina/controllers";
10
+ import { createRef as E, ref as _ } 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 E, ref as _ } from "lit-html/directives/ref.js";
14
+ import "@arcgis/lumina/controllers";
15
15
  const K = C`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}`;
16
- function F(e) {
17
- let t = "", i = "?";
18
- return e.forEach((s) => {
19
- s.k && s.v && (t += i + s.k + "=" + s.v, i = "&");
20
- }), t;
21
- }
22
- function ve(e) {
23
- return e ? m.getVelocityUrlBase(e, {}).then((t) => Promise.resolve(!!t)) : Promise.resolve(!1);
24
- }
25
- async function H(e, t) {
26
- const i = t, s = await i.getUsername(), r = {
27
- q: new m.SearchQueryBuilder().match(e).in("title").and().match(s).in("owner"),
28
- filter: "type:Solution",
29
- authentication: i
30
- }, 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()), T = e.toLowerCase(), k = d.filter((u) => u === T), N = d.filter((u) => u.startsWith(T));
31
- return { conflictingNames: k, similiarNames: N };
32
- }
33
- async function Re(e, t) {
34
- return W(e) ? { status: !1, type: "empty" } : V(e) ? { status: !1, type: "exceed length" } : z(e, "folder") ? { status: !1, type: "special character" } : (await H(e.trim(), t)).conflictingNames.length > 0 ? { status: !1, type: "not unique" } : { status: !0, type: "" };
35
- }
36
- function W(e) {
37
- return e.length <= 0;
38
- }
39
- function V(e) {
40
- return e.length > me;
41
- }
42
- function z(e, t) {
43
- return (t === "item" ? /[><~`$^+=|]/u : /[/<>]/u).test(e);
44
- }
45
- function ke(e) {
46
- if (e) {
47
- const t = e.trim();
48
- return t ? "<div>" + t + "</div>" : "";
49
- } else
50
- return "";
51
- }
52
- function Y(e) {
53
- let t = "", i = "?";
54
- return e.forEach((s) => {
55
- s.k && s.v && (t += i + s.k + "=" + s.v, i = "&");
56
- }), t;
57
- }
58
- function Ne(e, t, i, s) {
59
- let a = "";
60
- return t ? a = s + "/sharing/rest/content/items/" + e + "/info/" + t + Y([{ k: "w", v: "400" }]) : a = i, a;
61
- }
62
- function Le(e) {
63
- const t = e ? e.replace("https://", "").replace("www.", "") : "";
64
- 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";
65
- }
66
- function Ce(e, t, i) {
67
- return t.some((s) => s.wkid === e ? (i = s.defaultExtent, !0) : !1), i;
68
- }
69
- function Me(e, t) {
70
- return S(t || e);
71
- }
72
- function xe(e, t = "en") {
73
- return new Intl.DateTimeFormat(t, {
74
- year: "numeric",
75
- month: "long",
76
- day: "numeric"
77
- }).format(e);
78
- }
79
- function Ue(e, t) {
80
- let i = "";
81
- return e.some((s) => s.startsWith(t) ? (i = s.substring(t.length), !0) : !1), i;
82
- }
83
- function S(e) {
84
- const t = e.replace("www.", "");
85
- 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";
86
- }
87
- function $e(e, t) {
88
- let i = e?.reduce((s, a) => (s.indexOf(a.id) < 0 && s.push(a.id), s), []) || [];
89
- return t ? i.sort((s, a) => t.indexOf(s) - t.indexOf(a)) : i;
90
- }
91
- function Pe(e) {
92
- return e.charAt(0).toUpperCase() + e.slice(1);
93
- }
94
- function Ge(e) {
95
- return {
96
- relevance: "Relevance",
97
- title: "Title",
98
- new: "New",
99
- created: "Date deployed",
100
- updated: "Updated",
101
- suggested: "Suggested for you"
102
- }[e] || e;
103
- }
104
- function Be(e) {
105
- if (!e)
106
- return "Unknown error";
107
- if (e.message)
108
- return e.message;
109
- try {
110
- const t = JSON.stringify(e);
111
- return t && t !== "{}" ? t : e.toString();
112
- } catch {
113
- return e.toString();
114
- }
115
- }
116
- function Ke(e) {
117
- return e ? parseFloat(((Date.now() - e) / 1e3).toFixed(2)) : 0;
118
- }
119
- function g(e, t) {
120
- (e.key === "Enter" || e.code === "NumpadEnter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), t());
121
- }
122
- async function q(e, t) {
16
+ async function F(e, t) {
123
17
  const i = await m.getItemDataAsJson(e, t);
124
18
  if (!i)
125
19
  throw new Error(`Solution ${e} was not found`);
@@ -153,38 +47,38 @@ async function q(e, t) {
153
47
  }
154
48
  return a;
155
49
  }
156
- function Fe(e, t, i) {
50
+ function ve(e, t, i) {
157
51
  const s = e.templates.map((h) => h.type), a = [];
158
- a.push(se), s.indexOf("Group") >= 0 && (a.push(O), a.push(I)), s.indexOf("Feature Service") >= 0 && a.push(A);
52
+ a.push(Q), s.indexOf("Group") >= 0 && (a.push(S), a.push(A)), s.indexOf("Feature Service") >= 0 && a.push(O);
159
53
  const r = s.indexOf("Feed") > -1;
160
- r && a.push(ne);
54
+ r && a.push(Z);
161
55
  const n = s.indexOf("Big Data Analytic") > -1;
162
- n && a.push(ae);
56
+ n && a.push(X);
163
57
  const p = s.indexOf("Real Time Analytic") > -1;
164
- p && a.push(re), (r || n || p) && a.push(he), s.indexOf("Workflow") > -1 && (a.push(O), a.push(A), a.push(I), a.push(ge)), s.indexOf("Geoprocessing Service") > -1 && (a.push(oe), i.IsEnterprisePortal && a.push(ce));
58
+ p && a.push(te), (r || n || p) && a.push(re), s.indexOf("Workflow") > -1 && (a.push(S), a.push(O), a.push(A), a.push(le)), s.indexOf("Geoprocessing Service") > -1 && (a.push(ee), i.IsEnterprisePortal && a.push(se));
165
59
  const o = e.templates.reduce(
166
60
  (h, d) => h.concat(d.item.typeKeywords || []),
167
61
  []
168
62
  );
169
- return J(a, o, i), Q(a, t), j(a, e), a;
63
+ return W(a, o, i), V(a, t), H(a, e), a;
170
64
  }
171
- function j(e, t) {
172
- t.templates.some((i) => i.type === "Group" && i.item?.membershipAccess === "collaboration") && e.push(ie);
65
+ function H(e, t) {
66
+ t.templates.some((i) => i.type === "Group" && i.item?.membershipAccess === "collaboration") && e.push(J);
173
67
  }
174
- function J(e, t, i) {
175
- const s = D(i), a = X(i);
176
- ["Location Tracking View"].some((n) => t.indexOf(n) > -1) && (!s && !a ? e.push(de) : s && !a ? e.push(ue) : !s && a && e.push(pe));
68
+ function W(e, t, i) {
69
+ const s = D(i), a = z(i);
70
+ ["Location Tracking View"].some((n) => t.indexOf(n) > -1) && (!s && !a ? e.push(ae) : s && !a ? e.push(ne) : !s && a && e.push(oe));
177
71
  }
178
- function Q(e, t) {
179
- ["HubPremium"].some((s) => t.indexOf(s) > -1) && e.push(le);
72
+ function V(e, t) {
73
+ ["HubPremium"].some((s) => t.indexOf(s) > -1) && e.push(ie);
180
74
  }
181
75
  function D(e) {
182
76
  return e.PortalUserSubset?.role === "org_admin" && !e.PortalUserSubset?.roleId;
183
77
  }
184
- function X(e) {
78
+ function z(e) {
185
79
  return e.PortalSubset?.locationTrackingEnabled || !1;
186
80
  }
187
- function He(e, t) {
81
+ function Re(e, t) {
188
82
  let i = {
189
83
  leadingMessages: [],
190
84
  bulletedMessages: [],
@@ -298,22 +192,22 @@ function v(e, t) {
298
192
  }
299
193
  return s;
300
194
  }
301
- function We(e, t) {
302
- const i = R(t), s = F([{ k: "id", v: e }]) || "";
195
+ function ke(e, t) {
196
+ const i = R(t), s = de([{ k: "id", v: e }]) || "";
303
197
  return i ? `${i}/home/item.html${s}` : "";
304
198
  }
305
- function Ve(e, t, i, s) {
199
+ function Ne(e, t, i, s) {
306
200
  const a = s || R(i);
307
201
  return a ? `${a}/sharing/rest/content/items/${e}/resources/${t}` : "";
308
202
  }
309
203
  function R(e) {
310
204
  return e?.PortalSubset?.orgUrl || e?.PortalUrl || "";
311
205
  }
312
- function Z(e, t) {
206
+ function Y(e, t) {
313
207
  const i = new URL(e);
314
208
  return i.searchParams.set("token", t), i.toString();
315
209
  }
316
- class ee extends U {
210
+ class q extends U {
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 = x({ name: "solution-deployed-card", blocking: !0 }), this._configContextConsumer = b({
319
213
  context: G,
@@ -445,14 +339,14 @@ class ee extends U {
445
339
  i && window.open(`${i}/home/user.html?user=${this.owner}`, "_blank");
446
340
  }
447
341
  async _processTemplates(t) {
448
- return await q(t.id, this._configContextConsumer.value.userSession);
342
+ return await F(t.id, this._configContextConsumer.value.userSession);
449
343
  }
450
344
  _updateThumbnailToken(t) {
451
- this._thumbnailUrl !== "" && (this._thumbnailUrl = Z(this._thumbnailUrl, t));
345
+ this._thumbnailUrl !== "" && (this._thumbnailUrl = Y(this._thumbnailUrl, t));
452
346
  }
453
347
  }
454
- L("solution-deployed-card", ee);
455
- const ze = 500, Ye = {
348
+ L("solution-deployed-card", q);
349
+ const Le = 500, Ce = {
456
350
  AEC: "Architecture, Engineering, and Construction (AEC)",
457
351
  AIRPORTPORTRAIL: "Airports, Ports, and Rails",
458
352
  BUSINESS: "Business",
@@ -466,7 +360,7 @@ const ze = 500, Ye = {
466
360
  STATEANDLOCALGOVERNMENT: "State and Local Government",
467
361
  TELECOMMUNICATIONS: "Telecommunications",
468
362
  UTILITIES: "Utilities"
469
- }, qe = {
363
+ }, Me = {
470
364
  AIRPORT: "Airports",
471
365
  AGRICULTURE: "Agriculture",
472
366
  ASSESSMENTANDTAXATION: "Assessment and Taxation",
@@ -491,86 +385,193 @@ const ze = 500, Ye = {
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 || {}), te = /* @__PURE__ */ ((e) => (e.VELOCITYBIGDATA = "portal:publisher:publishBigDataAnalytics", e.VELOCITYFEEDS = "portal:publisher:publishFeeds", e.VELOCITYREALTIME = "portal:publisher:publishRealTimeAnalytics", e))(te || {});
495
- const je = '((typekeywords:Solution,Deployed,"ArcGIS Solution") OR ((typekeywords:Solution,Deployed) AND (created:[1577862000000 TO 1622576880000])))', Je = "(typekeywords:Solution,Template)", ie = "portal:user:addExternalMembersToGroup", se = "portal:user:createItem", O = "portal:user:createGroup", ae = "portal:publisher:publishBigDataAnalytics", A = "portal:publisher:publishFeatures", ne = "portal:publisher:publishFeeds", oe = "portal:publisher:publishServerGPServices", re = "portal:publisher:publishRealTimeAnalytics", I = "portal:user:shareToGroup", le = "solutions:hubPremium", ce = "solutions:notebook", de = "solutions:locationtracking:admin:tracking", ue = "solutions:locationtracking:tracking", pe = "solutions:locationtracking:admin", he = "solutions:velocity", ge = "solutions:workflowManager", me = 250, w = {
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 xe = '((typekeywords:Solution,Deployed,"ArcGIS Solution") OR ((typekeywords:Solution,Deployed) AND (created:[1577862000000 TO 1622576880000])))', Ue = "(typekeywords:Solution,Template)", J = "portal:user:addExternalMembersToGroup", Q = "portal:user:createItem", S = "portal:user:createGroup", X = "portal:publisher:publishBigDataAnalytics", O = "portal:publisher:publishFeatures", Z = "portal:publisher:publishFeeds", ee = "portal:publisher:publishServerGPServices", te = "portal:publisher:publishRealTimeAnalytics", A = "portal:user:shareToGroup", ie = "solutions:hubPremium", se = "solutions:notebook", ae = "solutions:locationtracking:admin:tracking", ne = "solutions:locationtracking:tracking", oe = "solutions:locationtracking:admin", re = "solutions:velocity", le = "solutions:workflowManager", ce = 250, w = {
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
- }, Qe = {
396
+ }, $e = {
503
397
  MINE: "My deployments",
504
398
  ORG: "Organization"
505
- }, Xe = {
399
+ }, Pe = {
506
400
  BOTH: "New,Suggested",
507
401
  NEW: "New",
508
402
  SUGGESTED: "Suggested"
509
- }, Ze = {
403
+ }, Ge = {
510
404
  NEW: "new",
511
405
  NUMVIEWS: "views",
512
406
  RELEVANCE: "relevance",
513
407
  SUGGESTED: "suggested",
514
408
  TITLE: "title",
515
- UPDATED: "updated"
516
- }, et = {
409
+ UPDATED: "updated",
410
+ CREATED: "created"
411
+ }, Be = {
517
412
  DEPLOY: "deploy",
518
413
  AIOPEN: "aiOpen"
519
414
  };
415
+ function de(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 Ke(e) {
422
+ return e ? m.getVelocityUrlBase(e, {}).then((t) => Promise.resolve(!!t)) : Promise.resolve(!1);
423
+ }
424
+ async function ue(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()), T = e.toLowerCase(), k = d.filter((u) => u === T), N = d.filter((u) => u.startsWith(T));
430
+ return { conflictingNames: k, similiarNames: N };
431
+ }
432
+ async function Fe(e, t) {
433
+ return pe(e) ? { status: !1, type: "empty" } : he(e) ? { status: !1, type: "exceed length" } : ge(e, "folder") ? { status: !1, type: "special character" } : (await ue(e.trim(), t)).conflictingNames.length > 0 ? { status: !1, type: "not unique" } : { status: !0, type: "" };
434
+ }
435
+ function pe(e) {
436
+ return e.length <= 0;
437
+ }
438
+ function he(e) {
439
+ return e.length > ce;
440
+ }
441
+ function ge(e, t) {
442
+ return (t === "item" ? /[><~`$^+=|]/u : /[/<>]/u).test(e);
443
+ }
444
+ function He(e) {
445
+ if (e) {
446
+ const t = e.trim();
447
+ return t ? "<div>" + t + "</div>" : "";
448
+ } else
449
+ return "";
450
+ }
451
+ function me(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 We(e, t, i, s) {
458
+ let a = "";
459
+ return t ? a = s + "/sharing/rest/content/items/" + e + "/info/" + t + me([{ k: "w", v: "400" }]) : a = i, a;
460
+ }
461
+ function Ve(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 ze(e, t, i) {
466
+ return t.some((s) => s.wkid === e ? (i = s.defaultExtent, !0) : !1), i;
467
+ }
468
+ function Ye(e, t) {
469
+ return I(t || e);
470
+ }
471
+ function qe(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 I(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 Je(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 Qe(e) {
491
+ return e.charAt(0).toUpperCase() + e.slice(1);
492
+ }
493
+ function Xe(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 Ze(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 et(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
+ }
520
521
  export {
521
- H as $,
522
- z as A,
523
- je as B,
524
- D as C,
525
- We as D,
522
+ ue as $,
523
+ Je as A,
524
+ xe as B,
525
+ ge as C,
526
+ D,
526
527
  c as E,
527
- Z as F,
528
- g as G,
529
- Ve as H,
530
- me as I,
531
- Pe as J,
532
- Ge as K,
533
- Le as L,
534
- ke as M,
535
- xe as N,
536
- Ne as O,
537
- ie as P,
538
- Y as Q,
539
- ve as R,
540
- le as S,
528
+ ke as F,
529
+ Y as G,
530
+ g as H,
531
+ ce as I,
532
+ Ne as J,
533
+ Qe as K,
534
+ Xe as L,
535
+ He as M,
536
+ qe as N,
537
+ We as O,
538
+ J as P,
539
+ me as Q,
540
+ Ke as R,
541
+ ie as S,
541
542
  w as T,
542
- Ke as U,
543
- Be as V,
544
- Fe as W,
545
- He as X,
546
- Me as Y,
547
- Re as Z,
548
- Ce as _,
549
- Je as a,
550
- ee as a0,
551
- ze as b,
552
- Qe as c,
553
- qe as d,
554
- Ye as e,
555
- Xe as f,
556
- te as g,
557
- et as h,
558
- Ze as i,
559
- O as j,
560
- se as k,
561
- ae as l,
562
- A as m,
563
- ne as n,
564
- oe as o,
565
- re as p,
566
- I as q,
567
- ce as r,
568
- ue as s,
569
- pe as t,
570
- de as u,
571
- he as v,
572
- ge as w,
573
- q as x,
574
- Ue as y,
575
- $e as z
543
+ et as U,
544
+ Ze as V,
545
+ ve as W,
546
+ Re as X,
547
+ Ye as Y,
548
+ Fe as Z,
549
+ ze as _,
550
+ Ue as a,
551
+ q as a0,
552
+ Le as b,
553
+ $e as c,
554
+ Me as d,
555
+ Ce as e,
556
+ Pe as f,
557
+ j as g,
558
+ Be as h,
559
+ Ge as i,
560
+ S as j,
561
+ Q as k,
562
+ X as l,
563
+ O as m,
564
+ Z as n,
565
+ ee as o,
566
+ te as p,
567
+ A as q,
568
+ se as r,
569
+ ne as s,
570
+ oe as t,
571
+ ae as u,
572
+ re as v,
573
+ le as w,
574
+ Ve as x,
575
+ F as y,
576
+ je as z
576
577
  };