@arcgis/portal-components 5.2.0-next.64 → 5.2.0-next.66

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 (121) hide show
  1. package/dist/cdn/2BUE3JLM.js +2 -0
  2. package/dist/cdn/{Y7FCEDRU.js → 2OU5PLGU.js} +1 -1
  3. package/dist/cdn/2WI5FBDF.js +2 -0
  4. package/dist/cdn/3VHBMKYX.js +2 -0
  5. package/dist/cdn/64DIXKV3.js +2 -0
  6. package/dist/cdn/6KVA4AKM.js +2 -0
  7. package/dist/cdn/6TO2BYXU.js +2 -0
  8. package/dist/cdn/AR6YIWRX.js +2 -0
  9. package/dist/cdn/{7YQTBSDS.js → ASLLZOUG.js} +109 -84
  10. package/dist/cdn/CYCKQHLO.js +2 -0
  11. package/dist/cdn/{ZV4GLQQG.js → D4VYYWA6.js} +1 -1
  12. package/dist/cdn/DEOAKHYN.js +2 -0
  13. package/dist/cdn/FKVT4PNP.js +2 -0
  14. package/dist/cdn/GC6YLNZF.js +2 -0
  15. package/dist/cdn/{VD6VGWCQ.js → JMEXULSL.js} +1 -1
  16. package/dist/cdn/KTBQ26TD.js +2 -0
  17. package/dist/cdn/LRADZ46B.js +2 -0
  18. package/dist/cdn/NWT7EITA.js +2 -0
  19. package/dist/cdn/{EE7XFMJG.js → O5AP2PN5.js} +1 -1
  20. package/dist/cdn/OUNIRHWU.js +2 -0
  21. package/dist/cdn/{XW42SAEJ.js → QFI3ZPNB.js} +1 -1
  22. package/dist/cdn/QMFRNHQJ.js +2 -0
  23. package/dist/cdn/QNA62UMC.js +2 -0
  24. package/dist/cdn/{6RLJVPF6.js → QWMWVF47.js} +1 -1
  25. package/dist/cdn/RWQL7W3X.js +2 -0
  26. package/dist/cdn/T6Z7IFG2.js +2 -0
  27. package/dist/cdn/USQ4RJYL.js +2 -0
  28. package/dist/cdn/{Q7SDLUZ6.js → V257KGGO.js} +1 -1
  29. package/dist/cdn/XSUV6RLR.js +2 -0
  30. package/dist/cdn/XTTOOMCY.js +66 -0
  31. package/dist/cdn/{CG4WYBHN.js → XUIVR4NX.js} +1 -1
  32. package/dist/cdn/{SOJU4OFZ.js → ZMTS73PF.js} +1 -1
  33. package/dist/cdn/ZSNLY6QY.js +2 -0
  34. package/dist/cdn/assets/portal-item-badges/t9n/messages.en.json +1 -0
  35. package/dist/cdn/assets/portal-item-card/t9n/messages.en.json +1 -0
  36. package/dist/cdn/assets/portal-item-favorite/t9n/messages.en.json +1 -0
  37. package/dist/cdn/assets/portal-item-type/icons/applicationtheme16.svg +1 -0
  38. package/dist/cdn/assets/portal-item-type/icons/applicationtheme32.svg +1 -0
  39. package/dist/cdn/assets/portal-item-type/icons/layout16.svg +1 -0
  40. package/dist/cdn/assets/portal-item-type/icons/layout32.svg +1 -0
  41. package/dist/cdn/index.js +1 -1
  42. package/dist/cdn/main.css +1 -1
  43. package/dist/chunks/fieldAddDelete.js +1 -1
  44. package/dist/chunks/info.js +179 -0
  45. package/dist/chunks/item.js +8 -8
  46. package/dist/chunks/items.js +16 -0
  47. package/dist/chunks/portal-item-badge.js +346 -0
  48. package/dist/chunks/portal.js +3 -3
  49. package/dist/chunks/portal2.js +3 -3
  50. package/dist/chunks/query.js +4 -4
  51. package/dist/chunks/string.js +2 -2
  52. package/dist/chunks/users.js +7 -0
  53. package/dist/chunks/utils.js +75 -636
  54. package/dist/chunks/utils2.js +653 -0
  55. package/dist/chunks/verified.js +40 -0
  56. package/dist/components/arcgis-portal-account-switcher/customElement.js +58 -72
  57. package/dist/components/arcgis-portal-account-switcher-list/customElement.js +6 -6
  58. package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +9 -7
  59. package/dist/components/arcgis-portal-ai-assistant/customElement.js +944 -775
  60. package/dist/components/arcgis-portal-field-delete/customElement.js +2 -1
  61. package/dist/components/arcgis-portal-group-browser/customElement.js +3 -3
  62. package/dist/components/arcgis-portal-group-browser/types.d.ts +6 -2
  63. package/dist/components/arcgis-portal-group-browser-preview/customElement.d.ts +9 -9
  64. package/dist/components/arcgis-portal-group-browser-preview/customElement.js +16 -16
  65. package/dist/components/arcgis-portal-group-browser-preview-card/customElement.d.ts +18 -18
  66. package/dist/components/arcgis-portal-group-browser-preview-card/customElement.js +31 -30
  67. package/dist/components/arcgis-portal-group-card/customElement.d.ts +25 -25
  68. package/dist/components/arcgis-portal-group-card/customElement.js +7 -7
  69. package/dist/components/arcgis-portal-item-actions/customElement.d.ts +74 -0
  70. package/dist/components/arcgis-portal-item-actions/customElement.js +89 -0
  71. package/dist/components/arcgis-portal-item-actions/index.d.ts +1 -0
  72. package/dist/components/arcgis-portal-item-actions/index.js +5 -0
  73. package/dist/components/arcgis-portal-item-badge/customElement.d.ts +260 -0
  74. package/dist/components/arcgis-portal-item-badge/customElement.js +9 -0
  75. package/dist/components/arcgis-portal-item-badge/index.d.ts +1 -0
  76. package/dist/components/arcgis-portal-item-badge/index.js +5 -0
  77. package/dist/components/arcgis-portal-item-badges/customElement.d.ts +48 -0
  78. package/dist/components/arcgis-portal-item-badges/customElement.js +35 -0
  79. package/dist/components/arcgis-portal-item-badges/index.d.ts +1 -0
  80. package/dist/components/arcgis-portal-item-badges/index.js +2 -0
  81. package/dist/components/arcgis-portal-item-badges/types.d.ts +1 -0
  82. package/dist/components/arcgis-portal-item-card/customElement.d.ts +215 -0
  83. package/dist/components/arcgis-portal-item-card/customElement.js +190 -0
  84. package/dist/components/arcgis-portal-item-card/index.d.ts +1 -0
  85. package/dist/components/arcgis-portal-item-card/index.js +10 -0
  86. package/dist/components/arcgis-portal-item-favorite/customElement.d.ts +36 -0
  87. package/dist/components/arcgis-portal-item-favorite/customElement.js +66 -0
  88. package/dist/components/arcgis-portal-item-favorite/index.d.ts +1 -0
  89. package/dist/components/arcgis-portal-item-favorite/index.js +3 -0
  90. package/dist/components/arcgis-portal-item-favorite/utils.d.ts +4 -0
  91. package/dist/components/arcgis-portal-item-type/customElement.js +1 -1
  92. package/dist/components/arcgis-portal-navigation/customElement.js +40 -40
  93. package/dist/components/arcgis-portal-navigation/index.js +1 -1
  94. package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +42 -214
  95. package/dist/components/arcgis-portal-user-popup/customElement.js +66 -100
  96. package/dist/components/portal-group-browser-filters/customElement.js +71 -73
  97. package/dist/docs/api.json +1 -1
  98. package/dist/docs/docs.json +1 -1
  99. package/dist/docs/vscode.html-custom-data.json +1 -1
  100. package/dist/docs/web-types.json +1 -1
  101. package/dist/index.d.ts +38 -0
  102. package/dist/loader.js +9 -4
  103. package/dist/types/item.d.ts +5 -1
  104. package/dist/types/lumina.d.ts +38 -4
  105. package/dist/types/preact.d.ts +43 -4
  106. package/dist/types/react.d.ts +48 -4
  107. package/dist/types/stencil.d.ts +38 -4
  108. package/package.json +6 -6
  109. package/dist/cdn/332KSPIN.js +0 -2
  110. package/dist/cdn/7PPA7V23.js +0 -2
  111. package/dist/cdn/DML7662F.js +0 -2
  112. package/dist/cdn/FF24VDOG.js +0 -65
  113. package/dist/cdn/G2NXASJO.js +0 -2
  114. package/dist/cdn/JZTBGLFH.js +0 -2
  115. package/dist/cdn/PP7GTURX.js +0 -2
  116. package/dist/cdn/QQ432AB6.js +0 -2
  117. package/dist/cdn/RKWOBE3M.js +0 -2
  118. package/dist/cdn/V4IAC7WR.js +0 -2
  119. package/dist/cdn/WEJQVIN4.js +0 -2
  120. package/dist/cdn/ZK2VXTNX.js +0 -2
  121. package/dist/components/portal-browser/components/portal-browser-filter-date/portal-browser-filter-date.d.ts +0 -122
@@ -0,0 +1,179 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ const t = [
3
+ "360 VR Experience",
4
+ "Big Data Analytic",
5
+ "Dashboard",
6
+ "Data Pipeline",
7
+ "Deep Learning Studio Project",
8
+ "Discussion",
9
+ "Document Link",
10
+ "Excalibur Imagery Project",
11
+ "Feature Collection",
12
+ "Feature Service",
13
+ "Feed",
14
+ "Form",
15
+ "GeoBIM Application",
16
+ "GeoBIM Project",
17
+ "Hub Event",
18
+ "Hub Initiative",
19
+ "Hub Initiative Template",
20
+ "Hub Page",
21
+ "Hub Project",
22
+ "Image Service",
23
+ "Knowledge Graph",
24
+ "Knowledge Studio Project",
25
+ "Map Service",
26
+ "Map Showcase",
27
+ "Mission Report",
28
+ "Mission Template",
29
+ "Notebook",
30
+ "OGCFeatureServer",
31
+ "Ortho Mapping Project",
32
+ "Parquet Feature Layer",
33
+ "Real Time Analytic",
34
+ "Route Layer",
35
+ "Scene Service",
36
+ "Solution",
37
+ "StoryMap",
38
+ "StoryMap Theme",
39
+ "Tile Layer",
40
+ "Urban Model",
41
+ "Urban Project",
42
+ "Vector Tile Service",
43
+ "Video Service",
44
+ "Web Experience",
45
+ "Web Experience Template",
46
+ "Web Map",
47
+ "Web Mapping Application",
48
+ "Web Scene",
49
+ "WFS",
50
+ "Workflow"
51
+ ], n = [
52
+ "3DInsetMap",
53
+ "3DScene",
54
+ "3DViz",
55
+ "AttachmentViewer",
56
+ "CapacityAnalysis",
57
+ "Cascade",
58
+ "Compare",
59
+ "Compare/Configure",
60
+ "Compare/Multiviewer",
61
+ "Compare/Search",
62
+ "Compare/SideBySideViewer_Configure",
63
+ "Compare/storytelling_compare",
64
+ "Compare/storytelling_sidepanel",
65
+ "Compare/storytelling_tabbed",
66
+ "Compare3d",
67
+ "CompareAnalysis",
68
+ "CompareMaps",
69
+ "CrowdsourceManager",
70
+ "CrowdsourcePolling",
71
+ "CrowdsourceReporter",
72
+ "Directions",
73
+ "Edit",
74
+ "Editor",
75
+ "Elevations",
76
+ "ElevationsProfile",
77
+ "Embed",
78
+ "Filter",
79
+ "FilterGallery",
80
+ "GeoForm",
81
+ "GeoList",
82
+ "GeoTour",
83
+ "HeaderFooter",
84
+ "Identify",
85
+ "ImageInterpretation",
86
+ "ImageMask",
87
+ "ImageVisit",
88
+ "ImageryViewer",
89
+ "ImpactSummary",
90
+ "InformationLookup",
91
+ "InteractiveFilter",
92
+ "InteractiveLegend",
93
+ "LayerShowcase",
94
+ "Legend",
95
+ "LiveMaps",
96
+ "LocalPerspective",
97
+ "MapAndAppGallery",
98
+ "MapCarousel",
99
+ "MapJournal",
100
+ "MapSeries",
101
+ "Shortlist",
102
+ "MapTools",
103
+ "MapTour",
104
+ "Media",
105
+ "MinimalGallery",
106
+ "Minimalist",
107
+ "MobileViewer",
108
+ "Nearby",
109
+ "OnePane",
110
+ "Panels",
111
+ "PanelsLegend",
112
+ "Profile",
113
+ "PublicGallery",
114
+ "PublicInformation",
115
+ "ServiceLookup",
116
+ "SimpleMapViewer",
117
+ "SimpleViewer",
118
+ "SocialMedia",
119
+ "Solutions/s2.html?app=apps2/FindEditFilter",
120
+ "Solutions/s2.html?app=apps2/Finder",
121
+ "Solutions/s2.html",
122
+ "StoryMapBasic",
123
+ "StorytellingSwipe",
124
+ "StorytellingTextLegend",
125
+ "Styler",
126
+ "SummaryViewer",
127
+ "Time",
128
+ "TimeAware",
129
+ "TwoPane",
130
+ "View",
131
+ "Viewer",
132
+ "ZoneLookup"
133
+ ], s = (e) => {
134
+ if (!e)
135
+ return !1;
136
+ const r = n.some((o) => {
137
+ const a = o.includes(".html"), i = `/apps/${o}${a ? "" : "/"}`;
138
+ return decodeURIComponent(e.url)?.includes(i);
139
+ });
140
+ return e.type === "Web Mapping Application" && !!e.url && r;
141
+ };
142
+ function c(e) {
143
+ const r = [
144
+ "Cascade",
145
+ "MapTour",
146
+ "MapJournal",
147
+ "MapSeries",
148
+ "Shortlist",
149
+ "StoryMapCrowdsource",
150
+ "SwipeSpyglass",
151
+ "Story Map"
152
+ ];
153
+ return e.type === "Web Mapping Application" && (l(r, e) || p(e));
154
+ }
155
+ function p(e) {
156
+ return [
157
+ "Cascade",
158
+ "MapTour",
159
+ "MapJournal",
160
+ "MapSeries",
161
+ "Shortlist",
162
+ "StoryMapCrowdsource",
163
+ "StorytellingSwipe"
164
+ ].some((o) => {
165
+ const a = `/apps/${o}/index.html`;
166
+ return decodeURIComponent(e.url)?.includes(a);
167
+ });
168
+ }
169
+ function l(e, r) {
170
+ return e?.some((o) => r?.typeKeywords?.includes(o));
171
+ }
172
+ function u(e) {
173
+ return !!e && t.some((r) => e.type === r);
174
+ }
175
+ export {
176
+ c as a,
177
+ u as b,
178
+ s as i
179
+ };
@@ -114,15 +114,15 @@ export {
114
114
  g as d,
115
115
  v as e,
116
116
  h as f,
117
- k as g,
118
- j as h,
117
+ U as g,
118
+ k as h,
119
119
  K as i,
120
- G as j,
121
- T as k,
120
+ j,
121
+ G as k,
122
122
  V as l,
123
- b as m,
124
- M as n,
125
- C as o,
126
- U as p,
123
+ T as m,
124
+ b as n,
125
+ M as o,
126
+ C as p,
127
127
  S as u
128
128
  };
@@ -0,0 +1,16 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ const s = (e) => e.sourceJSON ?? {}, a = (e) => e.typeKeywords ?? s(e).typeKeywords ?? [], r = (e) => s(e).contentStatus, i = (e) => {
3
+ const t = s(e).groupDesignations;
4
+ return t ? t.split(",").map((n) => n.trim()).filter(Boolean) : [];
5
+ }, o = (e) => e.type === "Data Store" && a(e).includes("bigDataFileShare"), c = (e) => e.type === "Big Data File Share" || o(e), p = (e) => e.type === "CityEngine Web Scene", g = (e) => e.type === "Parquet Feature Layer", y = (e) => a(e).find((t) => t.includes("replacementItemId_"))?.slice(18);
6
+ export {
7
+ y as a,
8
+ a as b,
9
+ i as c,
10
+ r as d,
11
+ p as e,
12
+ c as f,
13
+ s as g,
14
+ o as h,
15
+ g as i
16
+ };
@@ -0,0 +1,346 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { c as I } from "./runtime.js";
3
+ import { LitElement as A, nothing as v, safeClassMap as R } from "@arcgis/lumina";
4
+ import { css as D, html as u } from "lit";
5
+ import { u as C } from "./useT9n.js";
6
+ import { substitute as g } from "@arcgis/core/intl.js";
7
+ import { f as M } from "./user.js";
8
+ import { a as W, b as d, g as h, c as x, d as f, i as B, e as $, f as L, h as K } from "./items.js";
9
+ import { i as E } from "./users.js";
10
+ import { g as O } from "./user2.js";
11
+ import { f as U } from "./verified.js";
12
+ import { a as w, i as b } from "./info.js";
13
+ const _ = D`.badge{--calcite-color-foreground-2: var(--arcgis-item-badge-info-background, #dfeffa);--calcite-color-text-1: var(--arcgis-item-badge-info-foreground, #00619b);--arcgis-item-badge-color: var(--arcgis-item-badge-info-foreground, #00619b);--calcite-chip-background-color: var(--arcgis-item-badge-info-background, #dfeffa);border:0}.badge--colored{--calcite-chip-icon-color: var(--calcite-color-brand)}.authoritative{--calcite-color-foreground-2: var(--arcgis-item-badge-success-background, #e4f0e4);--calcite-color-text-1: var(--arcgis-item-badge-success-foreground, #1a6324);--arcgis-item-badge-color: var(--arcgis-item-badge-success-foreground, #1a6324);--calcite-chip-background-color: var(--arcgis-item-badge-success-background, #e4f0e4)}.deprecated{--calcite-color-foreground-2: var(--arcgis-item-badge-danger-background, #fadfdc);--calcite-color-text-1: var(--arcgis-item-badge-danger-foreground, #a82b1e);--arcgis-item-badge-color: var(--arcgis-item-badge-danger-foreground, #a82b1e);--calcite-chip-background-color: var(--arcgis-item-badge-danger-background, #fadfdc)}.beta{border:0}.narrow{box-sizing:border-box;width:2rem;--calcite-chip-spacing-unit-l: 0}.narrow--s{width:1.5rem}.narrow--l{width:2.75rem}.tooltip-title{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1);margin:0 0 .25rem;padding:0}.tooltip-text{font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-1);margin:0;padding:0}:host-context(.calcite-mode-dark) .badge{--calcite-color-foreground-2: var(--arcgis-item-badge-info-background, #214155);--calcite-color-text-1: var(--arcgis-item-badge-info-foreground, #9fd4f3);--arcgis-item-badge-color: var(--arcgis-item-badge-info-foreground, #9fd4f3);--calcite-chip-background-color: var(--arcgis-item-badge-info-background, #214155)}:host-context(.calcite-mode-dark) .authoritative{--calcite-color-foreground-2: var(--arcgis-item-badge-success-background, #2b472a);--calcite-color-text-1: var(--arcgis-item-badge-success-foreground, #a2e4ab);--arcgis-item-badge-color: var(--arcgis-item-badge-success-foreground, #a2e4ab);--calcite-chip-background-color: var(--arcgis-item-badge-success-background, #2b472a)}:host-context(.calcite-mode-dark) .deprecated{--calcite-color-foreground-2: var(--arcgis-item-badge-danger-background, #5e241e);--calcite-color-text-1: var(--arcgis-item-badge-danger-foreground, #ffaaa1);--arcgis-item-badge-color: var(--arcgis-item-badge-danger-foreground, #ffaaa1);--calcite-chip-background-color: var(--arcgis-item-badge-danger-background, #5e241e)}`, H = [
14
+ "Operations Dashboard Add In",
15
+ "Operations Dashboard Extension",
16
+ "Operation View",
17
+ "CityEngine Web Scene",
18
+ "Big Data File Share",
19
+ "Globe Document",
20
+ "Map Document",
21
+ "Published Map",
22
+ "Scene Document",
23
+ "Map Template",
24
+ "Mobile Basemap Package",
25
+ "Desktop Add In"
26
+ ], q = [
27
+ "Cascade",
28
+ "MapTour",
29
+ "MapJournal",
30
+ "MapSeries",
31
+ "Shortlist",
32
+ "StoryMapCrowdsource",
33
+ "StorytellingSwipe"
34
+ ], G = {
35
+ "Geoprocessing Package": ".gpk",
36
+ Layer: ".lyr",
37
+ "Layer Package": ".lpk",
38
+ "Map Package": ".mpk",
39
+ "Scene Package": ".spk"
40
+ }, y = "", N = "template_name";
41
+ function z(e) {
42
+ const t = decodeURIComponent(e.url || h(e).url || "");
43
+ return q.find((i) => t.includes(`/apps/${i}/index.html`));
44
+ }
45
+ function F(e) {
46
+ return K(e);
47
+ }
48
+ function J(e) {
49
+ return L(e);
50
+ }
51
+ function V(e) {
52
+ return $(e);
53
+ }
54
+ function P(e) {
55
+ return e.type === "Web Mapping Application" && d(e).includes("Web AppBuilder");
56
+ }
57
+ function m(e, t) {
58
+ return (t?.isPortal ?? !1) && d(e).includes("AppBuilder Extension");
59
+ }
60
+ function T(e, t) {
61
+ const i = d(e), a = ["HTML3D/HTML", "App Builder", "Widget"], r = ["HTML3D/HTML", "Web AppBuilder", "Widget"], n = e.type === "Web Mapping Application" && i.includes("Web AppBuilder"), c = e.type === "Web Mapping Application" && i.includes("WABTemplate"), l = e.type === "AppBuilder Widget Package" && i.some((o) => a.includes(o)), s = e.type === "Web AppBuilder Widget" && i.some((o) => r.includes(o));
62
+ return n || c || l || s || m(e, t);
63
+ }
64
+ function j(e, t) {
65
+ return t?.isPortal && [
66
+ "Insights Workbook",
67
+ "Insights Page",
68
+ "Insights Model",
69
+ "Insights Theme",
70
+ "Insights Workbook Package",
71
+ "Kernel Gateway Connection",
72
+ "Insights Script",
73
+ "Insights Data Engineering Workbook",
74
+ "Insights Data Engineering Model",
75
+ "Relational Database Connection"
76
+ ].includes(e.type || "");
77
+ }
78
+ const Q = (e, t) => (t?.isPortal ?? !1) && (P(e) || m(e, t) || b(e) || j(e, t));
79
+ function X(e, t, i) {
80
+ return e.type === t && (h(e).name?.endsWith(i) ?? !1);
81
+ }
82
+ function Y(e) {
83
+ return Object.entries(G).some(
84
+ ([t, i]) => X(e, t, i)
85
+ );
86
+ }
87
+ function Z(e, t) {
88
+ return H.includes(e.type) || Y(e) || w(e) || F(e) || b(e) || Q(e, t);
89
+ }
90
+ function ee(e) {
91
+ return (e.owner || "").toLowerCase().includes("esri") && d(e).includes("Requires Credits");
92
+ }
93
+ function te(e) {
94
+ return (e.owner || "").toLowerCase().includes("esri") && d(e).includes("Requires Subscription");
95
+ }
96
+ function ie(e) {
97
+ return f(e) === "org_authoritative";
98
+ }
99
+ function S(e) {
100
+ return f(e) === "public_authoritative";
101
+ }
102
+ function ae(e, t) {
103
+ return t === "Registered API Key Credentials (Standard)" || t === "Registered OAuth 2.0 Credentials (Standard)" ? y : e[t].title || y;
104
+ }
105
+ function Te(e, t, i) {
106
+ const a = [], r = d(e), n = h(e), c = x(e);
107
+ if ((ie(e) || S(e)) && a.push("Authoritative"), f(e) === "deprecated" && a.push("Deprecated"), T(e, t) && a.push("DeprecatedItemType"), B(e) && a.push("Beta"), e.type === "Solution" && r.includes("ArcGIS Solution") && a.push("Solution"), r.includes("Public Data Collection") && i && a.push("Public Data Collection"), Z(e, t) && a.push("Retired"), c.includes("livingatlas") && a.push("Living Atlas"), c.includes("opendata") && a.push("Open Data"), ee(e) && a.push("Premium"), te(e) && a.push("Subscriber"), n.origin && a.push("Collaboration"), e.owner !== "esri_apps" && n.listed && !t?.isPortal && a.push("Marketplace"), r.includes("Registered App")) {
108
+ const l = t?.isPortal ?? !1;
109
+ if (e.type !== "API Key" && (!l || e.owner !== "esri_apps")) {
110
+ const s = r.includes("APIToken"), o = r.includes("Personal API Token") && !l;
111
+ s ? a.push(
112
+ o ? "Registered API Key Credentials (Personal)" : "Registered API Key Credentials (Standard)"
113
+ ) : a.push(
114
+ o ? "Registered OAuth 2.0 Credentials (Personal)" : "Registered OAuth 2.0 Credentials (Standard)"
115
+ );
116
+ }
117
+ }
118
+ return r.includes("hasReplacementItem") && a.push("Has Replacement"), a;
119
+ }
120
+ function re({
121
+ badgeType: e,
122
+ i18n: t,
123
+ portal: i
124
+ }) {
125
+ const a = i?.isPortal ?? !1;
126
+ if (e === "Registered API Key Credentials (Standard)") {
127
+ const r = t[e].title;
128
+ return a ? r.enterprise : r.online;
129
+ }
130
+ if (e === "Registered OAuth 2.0 Credentials (Standard)") {
131
+ const r = t[e].title;
132
+ return a ? r.enterprise : r.online;
133
+ }
134
+ return ae(t, e);
135
+ }
136
+ function se(e) {
137
+ const t = {
138
+ MapSeries: "Series",
139
+ MapJournal: "Journal",
140
+ SwipeSpyglass: "Swipe & Spyglass",
141
+ Shortlist: "Shortlist",
142
+ Cascade: "Cascade",
143
+ MapTour: "Tour",
144
+ StoryMapCrowdsource: "Crowdsource",
145
+ StorytellingSwipe: "Swipe & Spyglass"
146
+ }, a = d(e).find((n) => n in t);
147
+ if (a)
148
+ return t[a];
149
+ const r = z(e);
150
+ return r && t[r] || !1;
151
+ }
152
+ async function oe({
153
+ badgeType: e,
154
+ i18n: t,
155
+ item: i,
156
+ locale: a,
157
+ portal: r,
158
+ user: n,
159
+ useProduction: c
160
+ }) {
161
+ const l = !n || E(n);
162
+ switch (e) {
163
+ case "Authoritative": {
164
+ if (S(i)) {
165
+ const s = await U(i, a, r, c), o = t.Authoritative.tooltip, p = r?.isPortal && !c ? r?.name : s?.name || r?.name || i.owner;
166
+ return g(o.public, { name: p || "" });
167
+ }
168
+ return t.Authoritative.tooltip.org;
169
+ }
170
+ case "Deprecated": {
171
+ const s = i.owner || "", o = await M(s, r, c), p = O(o, a);
172
+ return g(t.Deprecated.tooltip, { owner: p });
173
+ }
174
+ case "DeprecatedItemType": {
175
+ const s = t.DeprecatedItemType.tooltip;
176
+ return T(i, r) ? s.webAppBuilder : s.general;
177
+ }
178
+ case "Retired": {
179
+ const s = t.Retired.tooltip;
180
+ if (w(i)) {
181
+ const o = se(i);
182
+ if (o) {
183
+ const p = { [N]: o };
184
+ return g(s.classicStoryMap, p);
185
+ }
186
+ return s.classicStoryMapGeneric;
187
+ }
188
+ return V(i) ? s.cityEngine : P(i) || m(i, r) ? s.webAppBuilder : b(i) ? s.app : J(i) ? s.bdfs : s.general;
189
+ }
190
+ case "Subscriber": {
191
+ const s = t.Subscriber.tooltip;
192
+ return l ? s.public : s.org;
193
+ }
194
+ case "Premium": {
195
+ const s = t.Premium.tooltip;
196
+ return l ? s.public : s.org;
197
+ }
198
+ case "Registered": {
199
+ const s = t.Registered.tooltip;
200
+ return r?.isPortal ? s.enterprise : s.online;
201
+ }
202
+ case "Personal credential":
203
+ return t["Personal credential"].tooltip;
204
+ case "Has Replacement": {
205
+ const s = t["Has Replacement"];
206
+ return r.isPortal ? (globalThis.location?.href || "").includes("item.html") ? s.itemPageTooltip : s.tooltip : s.itemPageTooltip;
207
+ }
208
+ default:
209
+ return t[e].tooltip;
210
+ }
211
+ }
212
+ function ne({
213
+ badgeType: e,
214
+ i18n: t,
215
+ item: i,
216
+ portal: a
217
+ }) {
218
+ if (e !== "Has Replacement" || a.isPortal)
219
+ return null;
220
+ const r = W(i);
221
+ return r ? {
222
+ title: t["Has Replacement"].link,
223
+ href: ce({ portal: a, itemId: r })
224
+ } : null;
225
+ }
226
+ function ce({ itemId: e, portal: t }) {
227
+ return t?.restUrl ? `${t.restUrl.replace("sharing/rest", "home")}/item.html?id=${e}` : "";
228
+ }
229
+ function k() {
230
+ return {
231
+ loading: !1,
232
+ title: "",
233
+ tooltip: "",
234
+ tooltipLink: null
235
+ };
236
+ }
237
+ class le extends A {
238
+ constructor() {
239
+ super(...arguments), this._messages = C({ name: "portal-item-badges", blocking: !0 }), this.tooltipRequestId = 0, this.tooltipId = `portal-item-badge-${Math.random().toString(36).slice(2, 10)}`, this.details = k(), this.width = "full", this.scale = "m", this.showTooltip = !1;
240
+ }
241
+ static {
242
+ this.properties = { details: 16, item: 0, portal: 0, user: 0, badgeType: 1, width: 1, appearance: 1, scale: 1, showTooltip: 5, useProduction: 5 };
243
+ }
244
+ static {
245
+ this.styles = _;
246
+ }
247
+ willUpdate(t) {
248
+ (t.has("badgeType") || t.has("item") || t.has("portal") || t.has("user") || t.has("showTooltip") || t.has("useProduction")) && this.loadDetails();
249
+ }
250
+ loadDetails() {
251
+ if (!this.badgeType || !this.portal) {
252
+ this.details = k();
253
+ return;
254
+ }
255
+ const t = re({
256
+ badgeType: this.badgeType,
257
+ i18n: this._messages,
258
+ portal: this.portal
259
+ }), i = this.item && this.portal ? ne({
260
+ badgeType: this.badgeType,
261
+ i18n: this._messages,
262
+ item: this.item,
263
+ portal: this.portal
264
+ }) : null;
265
+ if (!this.showTooltip || !this.item) {
266
+ this.details = {
267
+ loading: !1,
268
+ title: t,
269
+ tooltip: "",
270
+ tooltipLink: i
271
+ };
272
+ return;
273
+ }
274
+ const a = ++this.tooltipRequestId;
275
+ this.details = {
276
+ loading: !0,
277
+ title: t,
278
+ tooltip: "",
279
+ tooltipLink: i
280
+ }, oe({
281
+ badgeType: this.badgeType,
282
+ i18n: this._messages,
283
+ item: this.item,
284
+ locale: this._messages._lang || "en",
285
+ portal: this.portal,
286
+ user: this.user,
287
+ useProduction: this.useProduction
288
+ }).then((r) => {
289
+ a === this.tooltipRequestId && (this.details = {
290
+ loading: !1,
291
+ title: t,
292
+ tooltip: r,
293
+ tooltipLink: i
294
+ });
295
+ }).catch(() => {
296
+ a === this.tooltipRequestId && (this.details = {
297
+ loading: !1,
298
+ title: t,
299
+ tooltip: "",
300
+ tooltipLink: i
301
+ });
302
+ });
303
+ }
304
+ render() {
305
+ if (!this.badgeType)
306
+ return null;
307
+ const t = de[this.badgeType], i = this.width === "narrow", a = this.showTooltip && (this.details.loading || !!this.details.tooltip || !!this.details.tooltipLink), r = {
308
+ badge: this.badgeType !== "Beta",
309
+ "badge--colored": this.badgeType === "Living Atlas" || this.badgeType === "Open Data" || this.badgeType === "Solution",
310
+ beta: this.badgeType === "Beta",
311
+ authoritative: this.badgeType === "Authoritative",
312
+ deprecated: this.badgeType === "Deprecated" || this.badgeType === "DeprecatedItemType",
313
+ narrow: i,
314
+ [`narrow--${this.scale}`]: i
315
+ };
316
+ return u`<calcite-chip id=${this.tooltipId ?? v} class=${R(r)} .value=${this.badgeType} .tabIndex=${this.showTooltip ? 0 : -1} .scale=${this.scale} .appearance=${this.appearance} .label=${this.details.title} .icon=${t}>${i ? null : this.details.title}</calcite-chip>${a ? u`<calcite-tooltip .referenceElement=${this.tooltipId} close-on-click placement=bottom-start overlay-positioning=fixed offset-distance=6 offset-skidding=0>${i ? u`<h3 class="tooltip-title">${this.details.title}</h3>` : null}<p class="tooltip-text"><calcite-loader .hidden=${!this.details.loading} .label=${this._messages.loading} inline scale=s></calcite-loader>${this.details.loading ? this._messages.loading : this.details.tooltip}</p>${this.details.tooltipLink ? u`<calcite-link @click=${(n) => n.stopPropagation()} icon-end=launch .href=${this.details.tooltipLink.href} target=_blank>${this.details.tooltipLink.title}</calcite-link>` : null}</calcite-tooltip>` : null}`;
317
+ }
318
+ }
319
+ const de = {
320
+ Authoritative: "check-circle",
321
+ Beta: "beaker",
322
+ Collaboration: "collaboration-distributed",
323
+ Deprecated: "circle-disallowed",
324
+ DeprecatedItemType: "exclamation-mark-triangle",
325
+ "Has Replacement": "arrow-right-left",
326
+ "Living Atlas": "arcgis-living-atlas",
327
+ Marketplace: "marketplace",
328
+ "Open Data": "open-data",
329
+ "Personal credential": "user-key",
330
+ Premium: "shield-coin",
331
+ "Public Data Collection": "pencil",
332
+ Registered: "key",
333
+ "Registered API Key Credentials (Personal)": "key",
334
+ "Registered API Key Credentials (Standard)": "key",
335
+ "Registered Application": "app-gear",
336
+ "Registered OAuth 2.0 Credentials (Personal)": "app-gear",
337
+ "Registered OAuth 2.0 Credentials (Standard)": "app-gear",
338
+ Retired: "exclamation-mark-triangle",
339
+ Solution: "arcgis-solutions",
340
+ Subscriber: "security"
341
+ };
342
+ I("arcgis-portal-item-badge", le);
343
+ export {
344
+ le as A,
345
+ Te as g
346
+ };
@@ -87,9 +87,9 @@ function k(e) {
87
87
  }
88
88
  export {
89
89
  S as a,
90
- s as b,
91
- H as c,
92
- m as d,
90
+ m as b,
91
+ s as c,
92
+ H as d,
93
93
  P as e,
94
94
  u as f,
95
95
  y as g,
@@ -48,12 +48,12 @@ async function $(e) {
48
48
  }
49
49
  }
50
50
  export {
51
- S as a,
52
- w as b,
51
+ $ as a,
52
+ S as b,
53
53
  p as c,
54
54
  m as d,
55
55
  u as e,
56
56
  d as f,
57
- $ as g,
57
+ w as g,
58
58
  y as h
59
59
  };
@@ -2,8 +2,8 @@
2
2
  import { a as p } from "./functionalities.js";
3
3
  import { g as y } from "./groups2.js";
4
4
  import { g as l } from "./url.js";
5
- import { g as O, a as g } from "./portal2.js";
6
- import { b as R, h as m, c as d } from "./portal.js";
5
+ import { a as O, b as g } from "./portal2.js";
6
+ import { c as R, h as d, d as m } from "./portal.js";
7
7
  const f = '-typekeywords:("MapAreaPackage") -type:("Map Area" OR "Indoors Map Configuration" OR "Code Attachment")';
8
8
  async function b(e) {
9
9
  const t = R(e);
@@ -21,10 +21,10 @@ async function b(e) {
21
21
  // Org Settings > Groups > Configuriable Apps
22
22
  e.galleryTemplatesGroupQuery
23
23
  ].filter((a) => !!a), u = e.homePageFeaturedContent;
24
- if (m(e)) {
24
+ if (d(e)) {
25
25
  const a = await O(e), o = [];
26
26
  a?.result?.content?.forEach((i) => {
27
- d(i) && o.push(i);
27
+ m(i) && o.push(i);
28
28
  }), o.length > 0 && o.forEach(({ groupId: i }) => {
29
29
  const c = `id:${i}`;
30
30
  r = n(c, r);
@@ -29,8 +29,8 @@ function m(e) {
29
29
  return e?.endsWith("/") ? e.slice(0, e.length - 1) : e;
30
30
  }
31
31
  export {
32
- m as a,
32
+ p as a,
33
33
  d as c,
34
34
  g,
35
- p as r
35
+ m as r
36
36
  };
@@ -0,0 +1,7 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ function i(o) {
3
+ return !!(o && !o.orgId);
4
+ }
5
+ export {
6
+ i
7
+ };