@esri/solutions-components 5.1.0-next.72 → 5.1.0-next.74

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.
@@ -1,41 +1,266 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  import { c as g } from "../../chunks/runtime.js";
3
- import { repeat as v } from "lit/directives/repeat.js";
4
- import { u as m } from "../../chunks/useT9n.js";
5
- import { LitElement as C, createEvent as d, safeClassMap as p, nothing as S } from "@arcgis/lumina";
3
+ import { repeat as T } from "lit/directives/repeat.js";
4
+ import { u as v } from "../../chunks/useT9n.js";
5
+ import { LitElement as C, createEvent as d, safeClassMap as b, nothing as S } from "@arcgis/lumina";
6
6
  import { css as w, html as h } from "lit";
7
- import { T } from "../../chunks/solutions-deploy-app-nav.js";
8
- import { a as x, T as c, F as O, B as A, e as D } from "../../chunks/helpers.js";
9
- import { createRef as o, ref as l } from "lit-html/directives/ref.js";
10
- import { C as y, g as F } from "../../chunks/cardFetchingUtils.js";
7
+ import { T as y } from "../../chunks/solutions-deploy-app-nav.js";
8
+ import { a as A, T as c, F as D, B as x, e as O } from "../../chunks/helpers.js";
9
+ import { createRef as l, ref as o } from "lit-html/directives/ref.js";
10
+ import { C as f, g as I } from "../../chunks/cardFetchingUtils.js";
11
11
  import { useContextProvider as _ } from "@arcgis/lumina/context";
12
- import { c as I, b as $, i as k } from "../../chunks/deployAppContexts.js";
13
- import { h as E, f as M } from "../../chunks/cardsHelpers.js";
12
+ import { c as F, b as $, i as k } from "../../chunks/deployAppContexts.js";
13
+ import { h as M, f as P } from "../../chunks/cardsHelpers.js";
14
14
  import "@esri/solution-common";
15
15
  import "@arcgis/core/identity/IdentityManager.js";
16
16
  import "@arcgis/core/identity/OAuthInfo.js";
17
17
  import "@arcgis/core/portal/Portal.js";
18
18
  import "@arcgis/core/intl.js";
19
- import { _ as P } from "../../chunks/solution-deploy-dialog.js";
19
+ import { _ as E } from "../../chunks/solution-deploy-dialog.js";
20
20
  import "../solutions-all-shell/customElement.js";
21
21
  import "../solutions-deployed-shell/customElement.js";
22
22
  import "../solution-details-panel/customElement.js";
23
23
  import "../solution-deployed-card-panel/customElement.js";
24
24
  import "../solution-builder-assistant/customElement.js";
25
- const R = w`.back-color-override{background-color:var(--calcite-color-surface-3);--calcite-tab-border-color: var(--calcite-color-surface-4)}:host{--assistant-panel-width: 420px}.display-none{display:none!important}.height-100{height:100%}calcite-tab-nav{padding-bottom:6px;padding-top:6px}calcite-tab{--calcite-color-focus: transparent}calcite-tab>*{--calcite-color-focus: initial}calcite-tabs{--calcite-tab-border-color: var(--calcite-color-border-2);flex:1;min-height:0}.tab-space-0{--calcite-tab-content-space-y: var(--calcite-spacing-none)}.tab-space-md{--calcite-tab-content-space-y: var(--calcite-spacing-md)}solutions-searchsort-toolbar,solutions-deploy-app-nav,solution-details-panel,solutions-deployed-shell,solutions-all-shell,calcite-tab-nav,solution-deployed-card-panel{width:1440px;display:block;max-width:96vw;padding-right:var(--calcite-spacing-none);padding-left:var(--calcite-spacing-none);margin-left:auto;margin-right:auto;box-sizing:border-box}.border{height:var(--calcite-spacing-px);border-bottom-color:var(--calcite-color-border-2);border-bottom-style:solid;border-bottom-width:var(--calcite-border-width-sm);box-sizing:border-box}.overflow-auto{overflow:auto}solution-details-panel{scroll-margin-top:3rem}.main-content{container-type:inline-size;display:flex;flex-direction:column;height:100%;overflow:hidden}.main-content.assistant-open{margin-right:var(--assistant-panel-width)}.assistant-open solutions-searchsort-toolbar,.assistant-open solution-details-panel,.assistant-open solutions-deployed-shell,.assistant-open solutions-all-shell,.assistant-open calcite-tab-nav,.assistant-open solution-deployed-card-panel{margin-left:max(2vw,calc((100vw - 1440px)/2));margin-right:0;width:auto;max-width:1440px}.assistant-panel{position:fixed;top:65px;right:0;bottom:0;width:var(--assistant-panel-width);z-index:400;display:flex;flex-direction:column;box-shadow:-6px 0 8px -4px #00000026}@media(max-width:800px){.assistant-panel{width:100%;box-shadow:none}.main-content.assistant-open{margin-right:0}}.assistant-fab{position:fixed;bottom:var(--calcite-spacing-xxl);right:var(--calcite-spacing-xxl);z-index:500}calcite-tooltip{--calcite-tooltip-max-size-x: 16rem}`;
26
- class L extends C {
25
+ const L = w`.back-color-override{background-color:var(--calcite-color-surface-3);--calcite-tab-border-color: var(--calcite-color-surface-4)}:host{--assistant-panel-width: 420px;--builder-panel-width: 1260px}.display-none{display:none!important}.height-100{height:100%}calcite-tab-nav{padding-bottom:6px;padding-top:6px}calcite-tab{--calcite-color-focus: transparent}calcite-tab>*{--calcite-color-focus: initial}calcite-tabs{--calcite-tab-border-color: var(--calcite-color-border-2);flex:1;min-height:0}.tab-space-0{--calcite-tab-content-space-y: var(--calcite-spacing-none)}.tab-space-md{--calcite-tab-content-space-y: var(--calcite-spacing-md)}solutions-searchsort-toolbar,solutions-deploy-app-nav,solution-details-panel,solutions-deployed-shell,solutions-all-shell,calcite-tab-nav,solution-deployed-card-panel{width:1440px;display:block;max-width:96vw;padding-right:var(--calcite-spacing-none);padding-left:var(--calcite-spacing-none);margin-left:auto;margin-right:auto;box-sizing:border-box}.border{height:var(--calcite-spacing-px);border-bottom-color:var(--calcite-color-border-2);border-bottom-style:solid;border-bottom-width:var(--calcite-border-width-sm);box-sizing:border-box}.overflow-auto{overflow:auto}solution-details-panel{scroll-margin-top:3rem}.main-content{container-type:inline-size;display:flex;flex-direction:column;height:100%;overflow:hidden}.main-content.assistant-open{margin-right:var(--assistant-panel-width)}.assistant-open solutions-searchsort-toolbar,.assistant-open solution-details-panel,.assistant-open solutions-deployed-shell,.assistant-open solutions-all-shell,.assistant-open calcite-tab-nav,.assistant-open solution-deployed-card-panel{margin-left:max(2vw,calc((100vw - 1440px)/2));margin-right:0;width:auto;max-width:1440px}.builder-panel{position:fixed;top:65px;left:max(2vw,calc((100vw - 1440px)/2));bottom:0;width:var(--builder-panel-width);z-index:400;display:flex;flex-direction:column;box-shadow:-6px 0 8px -4px #00000026;transition:transform .3s cubic-bezier(.4,0,.2,1);transform:translate(0)}.builder-panel.display-none{display:flex!important;transform:translate(100vw);pointer-events:none}.builder-panel.display-none:has(~.assistant-panel.display-none){display:none!important;transition:none}.assistant-panel{position:fixed;top:65px;right:0;bottom:0;width:var(--assistant-panel-width);z-index:400;display:flex;flex-direction:column;box-shadow:-6px 0 8px -4px #00000026}@media(max-width:800px){.builder-panel{width:100%;left:0;box-shadow:none}.assistant-panel{width:100%;box-shadow:none}.main-content.assistant-open{margin-right:0}}.assistant-fab{position:fixed;bottom:var(--calcite-spacing-xxl);right:var(--calcite-spacing-xxl);z-index:500}calcite-tooltip{--calcite-tooltip-max-size-x: 16rem}`, R = {
26
+ solution: {
27
+ title: "Bus Stop ADA Compliance Inspections",
28
+ description: "Bus Stop ADA Compliance Inspections can be used to perform routine inspections of bus stops for ADA compliance and monitor inspection progress.",
29
+ tags: [
30
+ "Bus Stop",
31
+ "ADA Compliance",
32
+ "Inspection",
33
+ "Field",
34
+ "Monitor",
35
+ "ArcGIS Solutions"
36
+ ],
37
+ strings: [
38
+ {
39
+ key: "inspectionsByMonth",
40
+ value: "Inspections by Month",
41
+ description: "Descriptive title of dashboard chart displaying the number of inspections completed by month."
42
+ },
43
+ {
44
+ key: "inspectionsCompleted",
45
+ value: "Inspections Completed",
46
+ description: "Descriptive title of dashboard indicator displaying the total number of inspections completed."
47
+ },
48
+ {
49
+ key: "assetInventory",
50
+ value: "Bus Stop Inventory",
51
+ description: "Descriptive title of dashboard indicator displaying the total number of bus stops."
52
+ }
53
+ ]
54
+ },
55
+ items: [
56
+ {
57
+ id: "b21885d38b3c4924922ce36c90112737",
58
+ title: "Bus Stop ADA Inspection Dashboard",
59
+ description: "An ArcGIS Dashboards app used to monitor bus stop ADA compliance inspections.",
60
+ type: "Dashboard"
61
+ },
62
+ {
63
+ id: "54f69b6af00b4f06b1c1eef05e80dc93",
64
+ title: "Bus Stop ADA Inspection Map",
65
+ description: "A map used by the Bus Stop ADA Inspection Dashboard app to monitor inspections.",
66
+ type: "Web Map"
67
+ },
68
+ {
69
+ id: "2fc93fa4e07e42508669d02acb837a75",
70
+ title: "Bus Stop ADA Inspection Field Map",
71
+ description: "A map used in ArcGIS Field Maps to inspect bus stops in the field for ADA compliance.",
72
+ type: "Web Map"
73
+ },
74
+ {
75
+ id: "0bd4ecf9c95e4dcd8ff1744adc12f323",
76
+ title: "BusStops_field",
77
+ description: "A hosted feature layer view used to inspect bus stops for ADA compliance.",
78
+ type: "Feature Layer (hosted, view)"
79
+ },
80
+ {
81
+ id: "0bd4ecf9c95e4dcd8ff1744adc12f323",
82
+ title: "BusStops_dashboard",
83
+ description: "A hosted feature layer view used to monitor bus stop ADA inspections.",
84
+ type: "Feature Layer (hosted, view)"
85
+ },
86
+ {
87
+ id: "36d0bdce3a74436f8314c88c9667003e",
88
+ title: "BusStops",
89
+ description: "A hosted feature layer used to store bus stop and ADA inspection details.",
90
+ type: "Feature Layer (hosted)"
91
+ }
92
+ ],
93
+ featureLayer: {
94
+ addLayers: !0,
95
+ layers: [
96
+ {
97
+ id: "0",
98
+ type: "Point",
99
+ name: "BusStops",
100
+ description: "Point layer containing bus stop locations and ADA compliance information.",
101
+ customFields: [
102
+ {
103
+ name: "stop_id",
104
+ type: "string",
105
+ alias: "Stop ID",
106
+ description: "Identifier for the bus stop.",
107
+ choiceList: null,
108
+ length: 255
109
+ },
110
+ {
111
+ name: "location_description",
112
+ type: "string",
113
+ alias: "Location Description",
114
+ description: "Description of the bus stop location.",
115
+ choiceList: null,
116
+ length: 255
117
+ },
118
+ {
119
+ name: "shelter_present",
120
+ type: "string",
121
+ alias: "Shelter Present",
122
+ description: "Indicates if a waiting shelter is present at the bus stop.",
123
+ choiceList: [
124
+ "Yes",
125
+ "No"
126
+ ],
127
+ length: 5
128
+ },
129
+ {
130
+ name: "bench_present",
131
+ type: "string",
132
+ alias: "Bench Present",
133
+ description: "Indicates if a bench is present at the bus stop.",
134
+ choiceList: [
135
+ "Yes",
136
+ "No"
137
+ ],
138
+ length: 5
139
+ },
140
+ {
141
+ name: "ada_compliant",
142
+ type: "string",
143
+ alias: "ADA Compliant",
144
+ description: "Indicates if the bus stop meets ADA compliance requirements.",
145
+ choiceList: [
146
+ "Yes",
147
+ "No"
148
+ ],
149
+ length: 5
150
+ },
151
+ {
152
+ name: "capacity",
153
+ type: "integer",
154
+ alias: "Seating Capacity",
155
+ description: "Number of people that can be seated at the bus stop."
156
+ },
157
+ {
158
+ name: "distance_from_curb",
159
+ type: "double",
160
+ alias: "Distance from Curb (ft)",
161
+ description: "Distance in feet from the curb to the shelter."
162
+ },
163
+ {
164
+ name: "last_inspection_date",
165
+ type: "date",
166
+ alias: "Last Inspection Date",
167
+ description: "Date of the most recent inspection."
168
+ },
169
+ {
170
+ name: "installation_date",
171
+ type: "date",
172
+ alias: "Installation Date",
173
+ description: "Date when the bus stop was installed."
174
+ }
175
+ ],
176
+ requiredFields: [
177
+ {
178
+ name: "route_number",
179
+ type: "string",
180
+ alias: "Route Number",
181
+ description: "Number of the bus route that uses this stop.",
182
+ choiceList: null,
183
+ length: 50
184
+ },
185
+ {
186
+ name: "average_daily_riders",
187
+ type: "integer",
188
+ alias: "Average Daily Riders",
189
+ description: "Average number of riders using this stop per day."
190
+ }
191
+ ],
192
+ systemFields: [
193
+ {
194
+ name: "objectid",
195
+ type: "oid",
196
+ alias: "ObjectID",
197
+ description: "Unique identifier for each record in the dataset."
198
+ },
199
+ {
200
+ name: "globalid",
201
+ type: "globalid",
202
+ alias: "GlobalID",
203
+ description: "Globally unique identifier for the record."
204
+ },
205
+ {
206
+ name: "created_date",
207
+ type: "date",
208
+ alias: "Created On",
209
+ description: "Date when the record was created."
210
+ },
211
+ {
212
+ name: "created_user",
213
+ type: "string",
214
+ alias: "Created By",
215
+ description: "User who created the record."
216
+ },
217
+ {
218
+ name: "last_edited_date",
219
+ type: "date",
220
+ alias: "Last Edited On",
221
+ description: "Date when the record was last edited."
222
+ },
223
+ {
224
+ name: "last_edited_user",
225
+ type: "string",
226
+ alias: "Last Edited By",
227
+ description: "User who last edited the record."
228
+ }
229
+ ]
230
+ }
231
+ ]
232
+ }
233
+ };
234
+ class B extends C {
27
235
  constructor() {
28
- super(), this.initTitleOrId = "", this.sortType = "relevance", this.useLocalAppConfig = !1, this.authentication = void 0, this._isLoaded = !1, this.isMobile = !1, this._isAssistantOpen = !1, this._showFabTooltip = !0, this._activeTab = "all-solutions", this._showDeployedCardFetchFailed = !1, this._globalAlerts = [], this._translations = m({ name: "solutions-deploy-app", blocking: !0 }), this._agoTerms = `${x}`, this._allCards = [], this._allShell = o(), this._allTab = o(), this._allTabTitle = o(), this._resourcesTab = o(), this._resourcesTabTitle = o(), this._categories = [], this._configContextProvider = _({ context: I }), this._delay = !1, this._deployAppNav = o(), this._deployedCardPanel = o(), this._deployCardFetchFailedMessage = "", this._deployedCardTab = o(), this._deployedCardTabTitle = o(), this._detailsShell = o(), this._detailsTab = o(), this._detailsTabTitle = o(), this._forceInit = !1, this._getSuggested = !1, this._tabpanelsFixed = !1, this._solutionBuilderTabTitle = o(), this._solutionBuilderPanel = o(), this._solutionBuilderTab = o(), this._builderDesignContextProvider = _({ context: $ }), this._isMobileContextProvider = _({ context: k }), this._mainContentRef = o(), this._mySolutionsShell = o(), this._mySolutionsTab = o(), this._mySolutionsTabTitle = o(), this._sortField = "relevance", this._sortOrder = "desc", this._telemetryManager = new T(), this.deployAppTabSelected = d(), this.deployedCardFetchFailed = d(), this.detailsCardSelected = d(), this.deployedCardSelected = d(), this.metaTagStringsReady = d(), this.sessionRefreshed = d(), this.tabChanged = d(), this.listenOn(window, "detailsCardSelected", this._detailsCardSelected), this.listenOn(window, "deployedCardSelected", this._deployedCardSelected), this.listenOn(window, "displayDeployedCard", this._handleDeployedCardDisplay), this.listenOn(window, "navTabSelected", this._setActiveTab), this.listenOn(window, "forceSelectTab", (t) => this.selectTab(t.detail, {})), this.listenOn(window, "showGlobalAlert", this._handleShowGlobalAlert), this.listenOn(window, "openAssistant", () => {
236
+ super(), this.initTitleOrId = "", this.sortType = "relevance", this.useLocalAppConfig = !1, this.authentication = void 0, this._isLoaded = !1, this.isMobile = !1, this._isAssistantOpen = !1, this._builderVisible = !1, this._showFabTooltip = !0, this._activeTab = "all-solutions", this._showDeployedCardFetchFailed = !1, this._globalAlerts = [], this._translations = v({ name: "solutions-deploy-app", blocking: !0 }), this._agoTerms = `${A}`, this._allCards = [], this._allShell = l(), this._allTab = l(), this._allTabTitle = l(), this._resourcesTab = l(), this._resourcesTabTitle = l(), this._categories = [], this._configContextProvider = _({ context: F }), this._delay = !1, this._deployAppNav = l(), this._deployedCardPanel = l(), this._deployCardFetchFailedMessage = "", this._deployedCardTab = l(), this._deployedCardTabTitle = l(), this._detailsShell = l(), this._detailsTab = l(), this._detailsTabTitle = l(), this._forceInit = !1, this._getSuggested = !1, this._tabpanelsFixed = !1, this._solutionBuilderPanel = l(), this._builderDesignContextProvider = _({ context: $ }), this._isMobileContextProvider = _({ context: k }), this._mainContentRef = l(), this._mySolutionsShell = l(), this._mySolutionsTab = l(), this._mySolutionsTabTitle = l(), this._sortField = "relevance", this._sortOrder = "desc", this._telemetryManager = new y(), this.deployAppTabSelected = d(), this.deployedCardFetchFailed = d(), this.detailsCardSelected = d(), this.deployedCardSelected = d(), this.metaTagStringsReady = d(), this.sessionRefreshed = d(), this.tabChanged = d(), this.listenOn(window, "detailsCardSelected", this._detailsCardSelected), this.listenOn(window, "deployedCardSelected", this._deployedCardSelected), this.listenOn(window, "displayDeployedCard", this._handleDeployedCardDisplay), this.listenOn(window, "navTabSelected", this._setActiveTab), this.listenOn(window, "forceSelectTab", (t) => this.selectTab(t.detail, {})), this.listenOn(window, "showGlobalAlert", this._handleShowGlobalAlert), this.listenOn(window, "openAssistant", () => {
29
237
  this._openAssistant();
30
238
  }), this.listenOn(window, "closeAssistant", () => {
31
- this._isAssistantOpen = !1;
32
- }), this.listenOn(window, "arcgis-solution-design-update", this._solutionBuilderSelected);
239
+ this._isAssistantOpen = !1, this._builderVisible = !1;
240
+ }), this.listenOn(window, "toggleSolutionBuilder", () => {
241
+ this._builderVisible = !this._builderVisible;
242
+ }), this.listenOn(window, "arcgis-solution-design-update", this._solutionBuilderSelected), this._builderDesignContextProvider.value = {
243
+ design: R,
244
+ updateDesign: (t) => {
245
+ this._builderDesignContextProvider.value = {
246
+ ...this._builderDesignContextProvider.value,
247
+ design: t
248
+ };
249
+ },
250
+ isBuilderVisible: !1,
251
+ setBuilderVisible: (t) => {
252
+ this._builderVisible = t, this._builderDesignContextProvider.value = {
253
+ ...this._builderDesignContextProvider.value,
254
+ isBuilderVisible: t
255
+ };
256
+ }
257
+ };
33
258
  }
34
259
  static {
35
- this.properties = { appConfig: 1, initTab: 1, initTitleOrId: 1, sortType: 1, useLocalAppConfig: 5, authentication: 16, _isLoaded: 16, isMobile: 16, _isAssistantOpen: 16, _showFabTooltip: 16, _activeTab: 16, _showDeployedCardFetchFailed: 16, _globalAlerts: 16, _translations: 16 };
260
+ this.properties = { appConfig: 1, initTab: 1, initTitleOrId: 1, sortType: 1, useLocalAppConfig: 5, authentication: 16, _isLoaded: 16, isMobile: 16, _isAssistantOpen: 16, _builderVisible: 16, _showFabTooltip: 16, _activeTab: 16, _showDeployedCardFetchFailed: 16, _globalAlerts: 16, _translations: 16 };
36
261
  }
37
262
  static {
38
- this.styles = R;
263
+ this.styles = L;
39
264
  }
40
265
  get _telemetry() {
41
266
  return this._configContextProvider.value?.telemetrySession;
@@ -71,15 +296,15 @@ class L extends C {
71
296
  await this.authentication?.signIn();
72
297
  case "details":
73
298
  if (this._allCards) {
74
- let s = E(this._allCards, t.tabTitleOrId);
75
- s = s || M(this._allCards, t.tabTitleOrId), s ? (this._detailsTab.value.selected = !0, this._detailsTabTitle.value.selected = !0, this.detailsCardSelected.emit(s)) : (t.tabType = "all-solutions", this._allTab.value.selected = !0, this._allTabTitle.value.selected = !0);
299
+ let s = M(this._allCards, t.tabTitleOrId);
300
+ s = s || P(this._allCards, t.tabTitleOrId), s ? (this._detailsTab.value.selected = !0, this._detailsTabTitle.value.selected = !0, this.detailsCardSelected.emit(s)) : (t.tabType = "all-solutions", this._allTab.value.selected = !0, this._allTabTitle.value.selected = !0);
76
301
  }
77
302
  break;
78
303
  case "deployments":
79
304
  this._mySolutionsTab.value.selected = !0, this._mySolutionsTabTitle.value.selected = !0, this._searchSortToolbar && i?.filter && this._searchSortToolbar.changeOwnerFilter(i.filter !== "Organization"), i && await this._mySolutionsShell.value?.searchSolutions(i);
80
305
  break;
81
306
  case "solution-builder":
82
- this._solutionBuilderTab.value.selected = !0, this._solutionBuilderTabTitle.value.selected = !0;
307
+ this._builderVisible = !0;
83
308
  break;
84
309
  }
85
310
  return this._setActiveTab(new CustomEvent("setActiveTab", { detail: t })), this._blurTabs(), this._showDeployedCardFetchFailed && (this.deployedCardFetchFailed.emit({ message: this._deployCardFetchFailedMessage, title: this._translations.failedToOpen }), this._showDeployedCardFetchFailed = !1), !0;
@@ -96,7 +321,7 @@ class L extends C {
96
321
  }
97
322
  _fixTabpanelFocus() {
98
323
  if (!this._tabpanelsFixed && this._allTab.value) {
99
- const t = [this._allTab, this._mySolutionsTab, this._resourcesTab, this._detailsTab, this._deployedCardTab, this._solutionBuilderTab];
324
+ const t = [this._allTab, this._mySolutionsTab, this._resourcesTab, this._detailsTab, this._deployedCardTab];
100
325
  Promise.all(t.map(async (e) => {
101
326
  const i = e.value;
102
327
  if (i && (await i.componentOnReady?.(), i.shadowRoot)) {
@@ -120,7 +345,7 @@ class L extends C {
120
345
  s.getAttribute("role") === "tabpanel" && s.tabIndex === 0 && (s.tabIndex = -1);
121
346
  }
122
347
  });
123
- }), [this._allTab, this._mySolutionsTab, this._resourcesTab, this._detailsTab, this._deployedCardTab, this._solutionBuilderTab].forEach((e) => {
348
+ }), [this._allTab, this._mySolutionsTab, this._resourcesTab, this._detailsTab, this._deployedCardTab].forEach((e) => {
124
349
  const i = e.value;
125
350
  if (i?.shadowRoot) {
126
351
  const s = i.shadowRoot.querySelector('[role="tabpanel"]');
@@ -129,15 +354,15 @@ class L extends C {
129
354
  });
130
355
  }
131
356
  async load() {
132
- this.useLocalAppConfig && (this.appConfig = P);
357
+ this.useLocalAppConfig && (this.appConfig = E);
133
358
  }
134
359
  render() {
135
360
  const t = this._isLoaded ? "display-none" : "", e = this._isLoaded ? "" : "display-none";
136
- return h`<calcite-shell><solutions-deploy-app-nav .appConfig=${this.appConfig} .assistantOpen=${this._isAssistantOpen} .initTab=${this.initTab} @authInit=${this._handleAuthInit} slot=header ${l(this._deployAppNav)}></solutions-deploy-app-nav><div class=${`main-content${this._isAssistantOpen ? " assistant-open" : ""}`} ${l(this._mainContentRef)}>${this._isSearchToolbarShowing() && h`<div class="border"></div>` || ""}<solutions-searchsort-toolbar ${l(async (i) => {
361
+ return h`<calcite-shell><solutions-deploy-app-nav .appConfig=${this.appConfig} .assistantOpen=${this._isAssistantOpen} .initTab=${this.initTab} @authInit=${this._handleAuthInit} slot=header ${o(this._deployAppNav)}></solutions-deploy-app-nav><div class=${`main-content${this._isAssistantOpen ? " assistant-open" : ""}`} ${o(this._mainContentRef)}>${this._isSearchToolbarShowing() && h`<div class="border"></div>` || ""}<solutions-searchsort-toolbar ${o(async (i) => {
137
362
  i && (await this._deployAppNav.value?.componentOnReady(), this._searchSortToolbar = i);
138
- })}></solutions-searchsort-toolbar><calcite-loader class=${p(t)} id=solutions-loader .label=${this._translations.fetchingAllSolutions}></calcite-loader>${this._renderGlobalAlerts()}<calcite-tabs class=${p(e)} scale=l><calcite-tab-nav class="display-none" @calciteTabChange=${this._handleCalciteTabChanged} slot=title-group><calcite-tab-title ${l(this._allTabTitle)}>${this._translations.allSolutions}</calcite-tab-title><calcite-tab-title ${l(this._mySolutionsTabTitle)}>${this._translations.mySolutions}</calcite-tab-title><calcite-tab-title ${l(this._resourcesTabTitle)}>${this._translations.solutionResources}</calcite-tab-title><calcite-tab-title class="display-none" ${l(this._detailsTabTitle)}></calcite-tab-title><calcite-tab-title class="display-none" ${l(this._deployedCardTabTitle)}></calcite-tab-title><calcite-tab-title class="display-none" ${l(this._solutionBuilderTabTitle)}></calcite-tab-title></calcite-tab-nav><calcite-tab class="back-color-override tab-space-0" selected ${l(this._allTab)}><solutions-all-shell class="height-100" ${l(this._allShell)}></solutions-all-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${l(this._mySolutionsTab)}><solutions-deployed-shell class="height-100" ${l(this._mySolutionsShell)}></solutions-deployed-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${l(this._resourcesTab)}><solutions-resources-shell .assistantOpen=${this._isAssistantOpen} class="height-100"></solutions-resources-shell></calcite-tab><calcite-tab class="back-color-override" ${l(this._detailsTab)}><solution-details-panel class="height-100" ${l(this._detailsShell)}></solution-details-panel></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${l(this._deployedCardTab)}><solution-deployed-card-panel class="shell-container height-100" ${l(this._deployedCardPanel)}></solution-deployed-card-panel></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${l(this._solutionBuilderTab)}><solution-builder-assistant class="shell-container height-100" ${l(this._solutionBuilderPanel)}></solution-builder-assistant></calcite-tab></calcite-tabs></div>${!this._configContextProvider.value?.isEnterprise && h`<div class=${`assistant-panel${this._isAssistantOpen ? "" : " display-none"}`}><arcgis-solutions-assistant class="height-100"></arcgis-solutions-assistant></div><calcite-fab aria-label=${this._translations.assistantFabTooltip ?? S} class=${`assistant-fab${this._isAssistantOpen ? " display-none" : ""}`} icon=effects id=assistant-fab-button @click=${() => {
363
+ })}></solutions-searchsort-toolbar><calcite-loader class=${b(t)} id=solutions-loader .label=${this._translations.fetchingAllSolutions}></calcite-loader>${this._renderGlobalAlerts()}<calcite-tabs class=${b(e)} scale=l><calcite-tab-nav class="display-none" @calciteTabChange=${this._handleCalciteTabChanged} slot=title-group><calcite-tab-title ${o(this._allTabTitle)}>${this._translations.allSolutions}</calcite-tab-title><calcite-tab-title ${o(this._mySolutionsTabTitle)}>${this._translations.mySolutions}</calcite-tab-title><calcite-tab-title ${o(this._resourcesTabTitle)}>${this._translations.solutionResources}</calcite-tab-title><calcite-tab-title class="display-none" ${o(this._detailsTabTitle)}></calcite-tab-title><calcite-tab-title class="display-none" ${o(this._deployedCardTabTitle)}></calcite-tab-title></calcite-tab-nav><calcite-tab class="back-color-override tab-space-0" selected ${o(this._allTab)}><solutions-all-shell class="height-100" ${o(this._allShell)}></solutions-all-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${o(this._mySolutionsTab)}><solutions-deployed-shell class="height-100" ${o(this._mySolutionsShell)}></solutions-deployed-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${o(this._resourcesTab)}><solutions-resources-shell .assistantOpen=${this._isAssistantOpen} class="height-100"></solutions-resources-shell></calcite-tab><calcite-tab class="back-color-override" ${o(this._detailsTab)}><solution-details-panel class="height-100" ${o(this._detailsShell)}></solution-details-panel></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${o(this._deployedCardTab)}><solution-deployed-card-panel class="shell-container height-100" ${o(this._deployedCardPanel)}></solution-deployed-card-panel></calcite-tab></calcite-tabs></div>${!this._configContextProvider.value?.isEnterprise && h`<div class=${`builder-panel${this._builderVisible ? "" : " display-none"}`}><solution-builder-assistant class="height-100" ${o(this._solutionBuilderPanel)}></solution-builder-assistant></div><div class=${`assistant-panel${this._isAssistantOpen ? "" : " display-none"}`}><arcgis-solutions-assistant class="height-100" .builderVisible=${this._builderVisible}></arcgis-solutions-assistant></div><calcite-fab aria-label=${this._translations.assistantFabTooltip ?? S} class=${`assistant-fab${this._isAssistantOpen ? " display-none" : ""}`} icon=effects id=assistant-fab-button @click=${() => {
139
364
  this._openAssistant(), this._showFabTooltip = !1;
140
- }} scale=l></calcite-fab><calcite-tooltip class=${p(this._isAssistantOpen ? "display-none" : "")} .open=${this._showFabTooltip && !this._isAssistantOpen} placement=leading reference-element=assistant-fab-button><span>${this._translations.assistantFabTooltip}</span></calcite-tooltip>` || ""}</calcite-shell>`;
365
+ }} scale=l></calcite-fab><calcite-tooltip class=${b(this._isAssistantOpen ? "display-none" : "")} .open=${this._showFabTooltip && !this._isAssistantOpen} placement=leading reference-element=assistant-fab-button><span>${this._translations.assistantFabTooltip}</span></calcite-tooltip>` || ""}</calcite-shell>`;
141
366
  }
142
367
  loaded() {
143
368
  this._setScrollbarGutters();
@@ -146,11 +371,11 @@ class L extends C {
146
371
  super.disconnectedCallback(), this._resizeObserver?.disconnect(), this._tabpanelObserver?.disconnect();
147
372
  }
148
373
  _renderGlobalAlerts() {
149
- return v(this._globalAlerts, (t) => t.id, (t) => h`<calcite-alert .autoClose=${t.autoClose} .autoCloseDuration=${t.autoCloseDuration} .icon=${t.icon} .kind=${t.kind} .label=${t.title || ""} @calciteAlertClose=${() => this._removeGlobalAlert(t.id)} open>${t.title && h`<div slot=title>${t.title}</div>` || ""}<div slot=message>${t.message}</div></calcite-alert>`);
374
+ return T(this._globalAlerts, (t) => t.id, (t) => h`<calcite-alert .autoClose=${t.autoClose} .autoCloseDuration=${t.autoCloseDuration} .icon=${t.icon} .kind=${t.kind} .label=${t.title || ""} @calciteAlertClose=${() => this._removeGlobalAlert(t.id)} open>${t.title && h`<div slot=title>${t.title}</div>` || ""}<div slot=message>${t.message}</div></calcite-alert>`);
150
375
  }
151
376
  async _handleAuthInit(t) {
152
377
  const e = t.detail;
153
- e.telemetrySession || (e.telemetrySession = T.getDisabledSession()), this._configContextProvider.setValue(e), e.authentication && (this.authentication = e.authentication), this._cardFetcherDeployed = new y(e.locale, e.orgUrl, e.portalURL), this._cardsFetcher = new y(e.locale, e.orgUrl, e.portalURL), this._isDisconnectedEnvironment || await this._getSolutions(e.primarySolutionsGroupId, e.agoBasedEnterpriseSolutionsGroupId), this._configContextProvider.value.allCards = this._allCards, this._configContextProvider.value.anonAgolSession = this._cardsFetcher.anonAgolSession, this._configContextProvider.value.agolPortalUrl = this._cardsFetcher.agolPortalUrl, await this._initializeTelemetry(), this._isLoaded = !0, this._setRefreshInterval(), this._initTab ? (this.selectTab(this._initTab, this._initFilters), this._logTabViewTelemetry(this._initTab.tabType), this._initTab = void 0, this._initFilters = void 0) : this.authentication?.IsSignedIn && (this.initTab === "details" || this.initTab === "deployed-card" || (this._logTabViewTelemetry(this._activeTab), this._emitMetaTagStrings(this._activeTab)));
378
+ e.telemetrySession || (e.telemetrySession = y.getDisabledSession()), this._configContextProvider.setValue(e), e.authentication && (this.authentication = e.authentication), this._cardFetcherDeployed = new f(e.locale, e.orgUrl, e.portalURL), this._cardsFetcher = new f(e.locale, e.orgUrl, e.portalURL), this._isDisconnectedEnvironment || await this._getSolutions(e.primarySolutionsGroupId, e.agoBasedEnterpriseSolutionsGroupId), this._configContextProvider.value.allCards = this._allCards, this._configContextProvider.value.anonAgolSession = this._cardsFetcher.anonAgolSession, this._configContextProvider.value.agolPortalUrl = this._cardsFetcher.agolPortalUrl, await this._initializeTelemetry(), this._isLoaded = !0, this._setRefreshInterval(), this._initTab ? (this.selectTab(this._initTab, this._initFilters), this._logTabViewTelemetry(this._initTab.tabType), this._initTab = void 0, this._initFilters = void 0) : this.authentication?.IsSignedIn && (this.initTab === "details" || this.initTab === "deployed-card" || (this._logTabViewTelemetry(this._activeTab), this._emitMetaTagStrings(this._activeTab)));
154
379
  }
155
380
  _setActiveTab(t) {
156
381
  const i = t.detail.tabType, s = this._activeTab !== i;
@@ -171,7 +396,7 @@ class L extends C {
171
396
  this._detailsTabTitle.value?.click();
172
397
  break;
173
398
  case "solution-builder":
174
- this._solutionBuilderTabTitle.value?.click();
399
+ this._builderVisible = !0;
175
400
  break;
176
401
  }
177
402
  i !== "details" && i !== "deployed-card" && i !== "solution-builder" && (this._deployAppNav.value.activateMenuItem(i), this.deployAppTabSelected.emit(i), this._emitMetaTagStrings(i));
@@ -198,8 +423,8 @@ class L extends C {
198
423
  if (!((t === "details" || t === "deployed-card") && !e) && i) {
199
424
  const s = [];
200
425
  if ((t === "details" || t === "deployed-card") && e) {
201
- const r = e;
202
- s.push(r.title || ""), s.push(r.deployCommonId || ""), s.push(r.deployVersion || "");
426
+ const n = e;
427
+ s.push(n.title || ""), s.push(n.deployCommonId || ""), s.push(n.deployVersion || "");
203
428
  }
204
429
  const a = t === "deployed-card" ? "Open" : "View";
205
430
  this._telemetry?.logEvent({
@@ -243,7 +468,7 @@ class L extends C {
243
468
  this._activeTab = "deployed-card", this._deployedCardTabTitle.value.selected = !0, this._deployedCardTab.value.selected = !0, this._deployAppNav.value.clearMenuItems(), t?.detail?.card && (this._selectedDeployedCard = t.detail.card), this._logTabViewTelemetry("deployed-card", this._selectedDeployedCard), this._emitMetaTagStrings("deployed-card");
244
469
  }
245
470
  _solutionBuilderSelected(t) {
246
- t?.detail && (this._activeTab = "solution-builder", this._solutionBuilderTabTitle.value.selected = !0, this._solutionBuilderTab.value.selected = !0, this._deployAppNav.value.clearMenuItems(), this._builderDesignContextProvider.value = {
471
+ t?.detail && (this._builderVisible = !0, this._builderDesignContextProvider.value = {
247
472
  design: t.detail,
248
473
  updateDesign: (e) => {
249
474
  this._builderDesignContextProvider.value = {
@@ -253,7 +478,7 @@ class L extends C {
253
478
  },
254
479
  isBuilderVisible: !0,
255
480
  setBuilderVisible: (e) => {
256
- this._builderDesignContextProvider.value = {
481
+ this._builderVisible = e, this._builderDesignContextProvider.value = {
257
482
  ...this._builderDesignContextProvider.value,
258
483
  isBuilderVisible: e
259
484
  };
@@ -302,13 +527,13 @@ class L extends C {
302
527
  const e = this._configContextProvider.value.authentication, i = this._configContextProvider.value.userSession;
303
528
  if (e && i && e.IsSignedIn) {
304
529
  this._abortControllerDeployed ? (this._abortControllerDeployed.abort(), this._abortControllerDeployed = new AbortController()) : this._abortControllerDeployed = new AbortController();
305
- const s = O(e);
530
+ const s = D(e);
306
531
  try {
307
- const a = await F(e, i, this._cardsFetcher, this._cardFetcherDeployed, A, "created", "desc", !1, [], [], this._abortControllerDeployed.signal, s ? "My organization's solutions" : "My solutions", t);
532
+ const a = await I(e, i, this._cardsFetcher, this._cardFetcherDeployed, x, "created", "desc", !1, [], [], this._abortControllerDeployed.signal, s ? "My organization's solutions" : "My solutions", t);
308
533
  a.cards.length === 0 || a.cards[0].typeKeywords.indexOf("Deployed") < 0 ? (this._deployCardFetchFailedMessage = this._translations.failedToFetchNotSolution.replace("{{ITEMID}}", t), this._showDeployedCardFetchFailed = !0) : this._deployedSolutions = a;
309
534
  } catch (a) {
310
- const r = a.message;
311
- r.indexOf("CONT_0001") > -1 || r.indexOf("Item does not exist or is inaccessible.") > -1 ? (this._deployCardFetchFailedMessage = this._translations.failedToFetchWrongId.replace("{{ITEMID}}", t), this._showDeployedCardFetchFailed = !0) : r.indexOf("GWM_0003") > -1 || r.indexOf("You do not have permissions to access this resource or perform this operation.") > -1 ? (this._deployCardFetchFailedMessage = this._translations.failedToFetchWrongPermissions.replace("{{ITEMID}}", t), this._showDeployedCardFetchFailed = !0) : (this._showDeployedCardFetchFailed = !0, this._deployCardFetchFailedMessage = ""), console.warn(a);
535
+ const n = a.message;
536
+ n.indexOf("CONT_0001") > -1 || n.indexOf("Item does not exist or is inaccessible.") > -1 ? (this._deployCardFetchFailedMessage = this._translations.failedToFetchWrongId.replace("{{ITEMID}}", t), this._showDeployedCardFetchFailed = !0) : n.indexOf("GWM_0003") > -1 || n.indexOf("You do not have permissions to access this resource or perform this operation.") > -1 ? (this._deployCardFetchFailedMessage = this._translations.failedToFetchWrongPermissions.replace("{{ITEMID}}", t), this._showDeployedCardFetchFailed = !0) : (this._showDeployedCardFetchFailed = !0, this._deployCardFetchFailedMessage = ""), console.warn(a);
312
537
  }
313
538
  }
314
539
  }
@@ -321,12 +546,12 @@ class L extends C {
321
546
  _getDefaultSearchOptions(t) {
322
547
  let e;
323
548
  if (t) {
324
- const i = t.domain, s = t.industry === "AEC" ? D.AEC : t.industry, a = t.offerType, r = t.searchTerm, f = "";
325
- let n = t.sortField;
326
- const u = t.owner, b = t.filter;
327
- n === "suggested" && !this.authentication?.IsSignedIn && (n = this.sortType), e = i || s ? {
549
+ const i = t.domain, s = t.industry === "AEC" ? O.AEC : t.industry, a = t.offerType, n = t.searchTerm, m = "";
550
+ let r = t.sortField;
551
+ const p = t.owner, u = t.filter;
552
+ r === "suggested" && !this.authentication?.IsSignedIn && (r = this.sortType), e = i || s ? {
328
553
  type: i ? "domain" : s ? "industry" : ""
329
- } : void 0, i && (e = e ? { ...e, domain: i } : { domain: i }), s && (e = e ? { ...e, industry: s } : { industry: s }), r && (e = e ? { ...e, searchTerm: r } : { searchTerm: r }), e && (e = { ...e, displayValue: f }), n && (e = e ? { ...e, sortType: n } : { sortType: n }), a && (n = a.toLowerCase(), e = e ? { ...e, sortType: n } : { sortType: n }), u && (e = e ? { ...e, owner: u } : { owner: u }), b && (e = e ? { ...e, filter: b } : { filter: b });
554
+ } : void 0, i && (e = e ? { ...e, domain: i } : { domain: i }), s && (e = e ? { ...e, industry: s } : { industry: s }), n && (e = e ? { ...e, searchTerm: n } : { searchTerm: n }), e && (e = { ...e, displayValue: m }), r && (e = e ? { ...e, sortType: r } : { sortType: r }), a && (r = a.toLowerCase(), e = e ? { ...e, sortType: r } : { sortType: r }), p && (e = e ? { ...e, owner: p } : { owner: p }), u && (e = e ? { ...e, filter: u } : { filter: u });
330
555
  }
331
556
  return e;
332
557
  }
@@ -343,14 +568,14 @@ class L extends C {
343
568
  setInterval(async () => {
344
569
  if (e.Credential && e.Credential.expires) {
345
570
  await e.Credential?.refreshToken();
346
- const r = new Date(e.Credential.expires);
347
- t.updateToken(e.Credential.token, r), this.sessionRefreshed.emit(t.token);
571
+ const n = new Date(e.Credential.expires);
572
+ t.updateToken(e.Credential.token, n), this.sessionRefreshed.emit(t.token);
348
573
  }
349
574
  }, a);
350
575
  }
351
576
  }
352
577
  }
353
- g("solutions-deploy-app", L);
578
+ g("solutions-deploy-app", B);
354
579
  export {
355
- L as SolutionsDeployApp
580
+ B as SolutionsDeployApp
356
581
  };