@esri/solutions-components 1.2.0-next.183 → 1.2.0-next.185
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.
- package/dist/cdn/{CWXECEWK.js → 2GS6BQB3.js} +1 -1
- package/dist/cdn/{UCUN6MQX.js → 2NKBQR2S.js} +1 -1
- package/dist/cdn/{A4ABVAGK.js → 5BVRREHL.js} +2 -2
- package/dist/cdn/5X4M5KVC.js +2 -0
- package/dist/cdn/6ANZSQIC.js +161 -0
- package/dist/cdn/{7CMFEMV5.js → EMDXYQD2.js} +1 -1
- package/dist/cdn/EMU7RU4E.js +2 -0
- package/dist/cdn/{AUZITS7B.js → H2FDKJHX.js} +1 -1
- package/dist/cdn/{36VCTUT7.js → HQIGBD6B.js} +1 -1
- package/dist/cdn/HUJXES5O.js +2 -0
- package/dist/cdn/{RYSMGC7G.js → HZZDUGC7.js} +2 -2
- package/dist/cdn/IKG4EH3F.js +71 -0
- package/dist/cdn/{PUULR4GF.js → IWXIVFNT.js} +2 -2
- package/dist/cdn/{TPUPFMVO.js → IXOQGQ3G.js} +2 -2
- package/dist/cdn/J6ELCUNM.js +508 -0
- package/dist/cdn/JOILOP5T.js +107 -0
- package/dist/cdn/{S6OVOZ5S.js → JUM3OJQD.js} +2 -2
- package/dist/cdn/K7RXCITJ.js +42 -0
- package/dist/cdn/ME46DTCW.js +107 -0
- package/dist/cdn/{Z7GVQOFC.js → NRO2HV5R.js} +2 -2
- package/dist/cdn/O7F5EUMA.js +188 -0
- package/dist/cdn/OBTBMVJY.js +136 -0
- package/dist/cdn/{C7UDORSN.js → OXZUPDUR.js} +1 -1
- package/dist/cdn/P5LFHCSW.js +43 -0
- package/dist/cdn/{HZ35KRFT.js → PMKGWCXK.js} +2 -2
- package/dist/cdn/{Y5KP4RVL.js → Q7I73NYQ.js} +2 -2
- package/dist/cdn/{FEILAE45.js → QYRLQLM5.js} +3 -3
- package/dist/cdn/U7ECRTWC.js +310 -0
- package/dist/cdn/{E3RDQBWZ.js → UMA3V2BH.js} +1 -1
- package/dist/cdn/V6OI2YYO.js +84 -0
- package/dist/cdn/{ZELDJPGW.js → V7WLDWD6.js} +1 -1
- package/dist/cdn/VYH3PV4R.js +2 -0
- package/dist/cdn/{ARZ7BSMD.js → W6JGGPX7.js} +1 -1
- package/dist/cdn/{3MWL4VKU.js → XQAYHHCB.js} +2 -2
- package/dist/cdn/YIYEKZTS.js +2 -0
- package/dist/cdn/YOC7BCPQ.js +2 -0
- package/dist/cdn/{XPPWSXNO.js → YWHFGZYE.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -2
- package/dist/chunks/cardsHelpers.js +1 -1
- package/dist/chunks/interfaces.js +270 -11
- package/dist/chunks/solution-deploy-dialog.js +1 -1
- package/dist/chunks/solutions-deploy-app-nav.js +19 -10
- package/dist/components/arcgis-solutions-assistant/customElement.js +1 -2
- package/dist/components/layer-table/customElement.js +1 -2
- package/dist/components/map-card/customElement.js +1 -2
- package/dist/components/solution-configure-titles/customElement.js +1 -2
- package/dist/components/solution-delete-dialog/customElement.js +1 -2
- package/dist/components/solution-deploy-dialog/customElement.js +1 -1
- package/dist/components/solution-deployed-card/customElement.js +2 -2
- package/dist/components/solution-deployed-card-panel/customElement.js +25 -6
- package/dist/components/solution-details-card/customElement.js +2 -2
- package/dist/components/solution-details-panel/customElement.js +2 -4
- package/dist/components/solution-resource-card/customElement.js +2 -2
- package/dist/components/solution-snapshot-gallery/customElement.js +2 -2
- package/dist/components/solution-social-share/customElement.js +2 -3
- package/dist/components/solution-user-avatar/customElement.js +11 -2
- package/dist/components/solutions-all-panel/customElement.js +1 -7
- package/dist/components/solutions-all-shell/customElement.js +0 -2
- package/dist/components/solutions-deploy-app/customElement.d.ts +2 -0
- package/dist/components/solutions-deploy-app/customElement.js +5 -9
- package/dist/components/solutions-deployed-panel/customElement.js +1 -3
- package/dist/components/solutions-filter-panel/customElement.js +17 -5
- package/dist/components/solutions-searchsort-toolbar/customElement.js +23 -12
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/solutions-components_commit.txt +7 -7
- package/dist/types/lumina.d.ts +1 -0
- package/dist/types/preact.d.ts +1 -0
- package/dist/types/react.d.ts +1 -0
- package/dist/types/stencil.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cdn/24LLKGOA.js +0 -2
- package/dist/cdn/6KIWQISA.js +0 -107
- package/dist/cdn/AWWVDYW7.js +0 -508
- package/dist/cdn/BGI5LCTI.js +0 -310
- package/dist/cdn/CXO6ITPS.js +0 -107
- package/dist/cdn/HC7Y7YXB.js +0 -42
- package/dist/cdn/HQTCXWS5.js +0 -2
- package/dist/cdn/I4EKAQNZ.js +0 -2
- package/dist/cdn/IDGWY7NE.js +0 -84
- package/dist/cdn/JGULYSPT.js +0 -2
- package/dist/cdn/LHMG5K7R.js +0 -161
- package/dist/cdn/N3P7ULE5.js +0 -2
- package/dist/cdn/O4MVHJET.js +0 -2
- package/dist/cdn/PHAIB63K.js +0 -136
- package/dist/cdn/QFO7CLLL.js +0 -188
- package/dist/cdn/RFTLE3FH.js +0 -2
- package/dist/cdn/WO24XOJC.js +0 -2
- package/dist/cdn/YL5D7Y2I.js +0 -71
- package/dist/cdn/ZIINWCFY.js +0 -43
- package/dist/chunks/common.js +0 -22
- package/dist/chunks/helpers.js +0 -225
package/dist/cdn/AWWVDYW7.js
DELETED
|
@@ -1,508 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/1.2/LICENSE.txt */
|
|
2
|
-
import g from"./ARZ7BSMD.js";import e from"./JGULYSPT.js";import c from"./RFTLE3FH.js";import b from"./QFO7CLLL.js";import{a as D,b as R}from"./W4YXXJAS.js";import{b as w}from"./77CU4WA2.js";import{Cb as U,Db as N,K as f,M as I,N as P,c as A,q as _,sa as O}from"./T4PIUXJ7.js";import{a as E}from"./6S75SIVV.js";import{k as T}from"./3GWWHA4S.js";import{b as L}from"./ABSRNM72.js";import{F as d,G as h,H as C,J as m,K as M,L as y,h as k,i as a,r as v}from"./5CQPQ7AE.js";export default $arcgis.t(([{b:F,d:H,i:p,j:x,n:g},{b:V,q:z,r:b},{a:B,b:S},{a:Y}])=>{var W=k`/** @license
|
|
3
|
-
* Copyright 2025 Esri
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
.display-flex {
|
|
19
|
-
display: flex;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.flex-direction-row {
|
|
23
|
-
flex-direction: row;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.flex-direction-column {
|
|
27
|
-
flex-direction: column;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.flex-1 {
|
|
31
|
-
flex: 1;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.cursor-default {
|
|
35
|
-
cursor: default;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
solution-details-card[id*="you-may-also-like"] {
|
|
39
|
-
width: 240px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.border-bottom {
|
|
43
|
-
border-bottom-color: var(--calcite-color-border-1);
|
|
44
|
-
border-bottom-width: var(--calcite-spacing-px);
|
|
45
|
-
border-bottom-style: solid;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
ul {
|
|
49
|
-
list-style-type: disc;
|
|
50
|
-
margin-block-start: var(--calcite-spacing-none);
|
|
51
|
-
margin-block-end: var(--calcite-spacing-none);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
ul ul {
|
|
55
|
-
list-style-type: circle;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
li {
|
|
59
|
-
margin: var(--calcite-spacing-sm) var(--calcite-spacing-none);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
calcite-label {
|
|
63
|
-
--calcite-label-margin-bottom: var(--calcite-spacing-none);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.padding-1 {
|
|
67
|
-
padding: var(--calcite-spacing-lg);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.padding-1-5 {
|
|
71
|
-
padding: var(--calcite-spacing-xl);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.padding-2px {
|
|
75
|
-
padding: var(--calcite-spacing-base);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.padding-bottom-xxl {
|
|
79
|
-
padding-bottom: var(--calcite-spacing-xxl);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.padding-bottom-1 {
|
|
83
|
-
padding-bottom: var(--calcite-spacing-lg);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.padding-bottom-sm {
|
|
87
|
-
padding-bottom: var(--calcite-spacing-sm);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.padding-top-md {
|
|
91
|
-
padding-top: var(--calcite-spacing-md);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.padding-top-sm {
|
|
95
|
-
padding-top: var(--calcite-spacing-sm);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.padding-top-xs {
|
|
99
|
-
padding-top: 0.25rem;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.padding-bottom-1-5 {
|
|
103
|
-
padding-bottom: var(--calcite-spacing-xxl);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.padding-top-1 {
|
|
107
|
-
padding-top: var(--calcite-spacing-lg);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.padding-top-1-5 {
|
|
111
|
-
padding-top: var(--calcite-spacing-xxl);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.padding-top-1-2 {
|
|
115
|
-
padding-top: var(--calcite-spacing-sm);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.padding-end-1 {
|
|
119
|
-
padding-inline-end: var(--calcite-spacing-lg);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.padding-end-1-75 {
|
|
123
|
-
padding-inline-end: 1.75rem;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.padding-end-2 {
|
|
127
|
-
padding-inline-end: var(--calcite-spacing-xxxl);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.padding-start-1 {
|
|
131
|
-
padding-inline-start: var(--calcite-spacing-lg);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.margin-bottom-1 {
|
|
135
|
-
margin-bottom: var(--calcite-spacing-lg);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.margin-bottom-1-5 {
|
|
139
|
-
margin-bottom: var(--calcite-spacing-xxl);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.margin-end-1 {
|
|
143
|
-
margin-inline-end: var(--calcite-spacing-lg);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.margin-top-0 {
|
|
147
|
-
margin-top: var(--calcite-spacing-none);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.margin-top-1 {
|
|
151
|
-
margin-top: var(--calcite-spacing-lg);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.margin-top-875 {
|
|
155
|
-
margin-top: 0.875rem;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.margin-top-1-5 {
|
|
159
|
-
margin-top: var(--calcite-spacing-xxl);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.margin-sides-0-5 {
|
|
163
|
-
margin-left: var(--calcite-spacing-sm);
|
|
164
|
-
margin-right: var(--calcite-spacing-sm);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.margin-sides-1 {
|
|
168
|
-
margin-left: var(--calcite-spacing-lg);
|
|
169
|
-
margin-right: var(--calcite-spacing-lg);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.margin-block-start-end-0 {
|
|
173
|
-
margin-block-start: var(--calcite-spacing-none);
|
|
174
|
-
margin-block-end: var(--calcite-spacing-none);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.align-self-center {
|
|
178
|
-
align-self: center;
|
|
179
|
-
padding: 5px;
|
|
180
|
-
--calcite-fab-shadow: #FFFFFF00;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.align-items-center {
|
|
184
|
-
align-items: center;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.align-items-baseline {
|
|
188
|
-
align-items: baseline;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.button-width {
|
|
192
|
-
width: 260px;
|
|
193
|
-
flex-grow: 0;
|
|
194
|
-
flex-shrink: 0;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
@media (max-width: 1280px) {
|
|
198
|
-
.button-width {
|
|
199
|
-
width: auto;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.image-width {
|
|
204
|
-
width: 300px;
|
|
205
|
-
flex-grow: 0;
|
|
206
|
-
flex-shrink: 0;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
@media (max-width: 1280px) {
|
|
210
|
-
.image-width {
|
|
211
|
-
flex-grow: 0;
|
|
212
|
-
flex-shrink: 1;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
.width-full {
|
|
217
|
-
width: 100%;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
@media (max-width: 768px) {
|
|
221
|
-
.width-full {
|
|
222
|
-
flex-direction: column;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.width-full>.display-flex {
|
|
226
|
-
flex-direction: column;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.image-width {
|
|
230
|
-
width: 100%;
|
|
231
|
-
padding-inline-end: 0;
|
|
232
|
-
margin-bottom: var(--calcite-spacing-lg);
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
.button-width {
|
|
236
|
-
width: 100%;
|
|
237
|
-
margin-top: var(--calcite-spacing-lg);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
.card-group {
|
|
242
|
-
overflow: hidden;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
#screenshots-subsection calcite-card {
|
|
246
|
-
width: calc(33.333% - .5rem);
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
calcite-card {
|
|
250
|
-
width: 450px;
|
|
251
|
-
--calcite-card-border-color: transparent;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
@media (max-width: 1496px) {
|
|
255
|
-
calcite-card {
|
|
256
|
-
width: calc(100% / 3 - .5rem);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
#screenshots-subsection calcite-card {
|
|
260
|
-
width: calc(33.333% - .5rem);
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
@media (max-width: 1100px) {
|
|
265
|
-
calcite-card {
|
|
266
|
-
width: calc(100% / 2 - .5rem);
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
#screenshots-subsection calcite-card {
|
|
270
|
-
width: calc(50% - .5rem);
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
@media (max-width: 550px) {
|
|
275
|
-
calcite-card {
|
|
276
|
-
width: 100%;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
#screenshots-subsection calcite-card {
|
|
280
|
-
width: 100%;
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
/* This is tied to a supporting prop _screenshotsBaseHeight */
|
|
285
|
-
.max-height-300 {
|
|
286
|
-
max-height: 300px;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
.display-none {
|
|
290
|
-
display: none;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.cursor-pointer {
|
|
294
|
-
cursor: pointer;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
calcite-card:hover img {
|
|
298
|
-
-webkit-filter: brightness(30%);
|
|
299
|
-
filter: brightness(30%);
|
|
300
|
-
-webkit-transition: all .1s ease;
|
|
301
|
-
-moz-transition: all .1s ease;
|
|
302
|
-
-o-transition: all .1s ease;
|
|
303
|
-
-ms-transition: all .1s ease;
|
|
304
|
-
transition: all .1s ease;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
calcite-card:hover .hover-text {
|
|
308
|
-
opacity: 1;
|
|
309
|
-
color: #ffffff;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
calcite-card:hover {
|
|
313
|
-
border: var(--calcite-spacing-base) solid var(--calcite-color-brand);
|
|
314
|
-
box-sizing: border-box;
|
|
315
|
-
cursor: pointer;
|
|
316
|
-
padding: var(--calcite-spacing-base);
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
calcite-card {
|
|
320
|
-
border: var(--calcite-spacing-base) solid transparent;
|
|
321
|
-
box-sizing: border-box;
|
|
322
|
-
padding: var(--calcite-spacing-base);
|
|
323
|
-
/* transition: border .1s ease, padding .1s ease; */
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
.hover-text {
|
|
327
|
-
transition: .1s ease;
|
|
328
|
-
opacity: 0;
|
|
329
|
-
position: absolute;
|
|
330
|
-
top: 50%;
|
|
331
|
-
left: 50%;
|
|
332
|
-
transform: translate(-50%, -50%);
|
|
333
|
-
-ms-transform: translate(-50%, -50%);
|
|
334
|
-
text-align: center;
|
|
335
|
-
display: flex;
|
|
336
|
-
flex-direction: row;
|
|
337
|
-
align-items: center;
|
|
338
|
-
height: 100%;
|
|
339
|
-
font-size: var(--calcite-spacing-xl);
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
.card-image-wrap {
|
|
343
|
-
width: 100%;
|
|
344
|
-
position: relative;
|
|
345
|
-
margin-bottom: 0;
|
|
346
|
-
-webkit-box-flex: 0 0 auto;
|
|
347
|
-
-ms-flex: 0 0 auto;
|
|
348
|
-
flex: 0 0 auto;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
.card-image {
|
|
352
|
-
width: 100%;
|
|
353
|
-
display: block;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
video,
|
|
357
|
-
img {
|
|
358
|
-
max-width: 100%;
|
|
359
|
-
height: auto;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
img {
|
|
363
|
-
overflow-clip-margin: content-box;
|
|
364
|
-
overflow: clip;
|
|
365
|
-
display: block;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
.margin-inline-unset {
|
|
369
|
-
margin-inline: unset;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
.collapsible-div {
|
|
373
|
-
overflow: hidden;
|
|
374
|
-
transition: max-height 0.3s ease-in-out;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
.collapsible-div.expanded {
|
|
378
|
-
max-height: 100%;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
.back-color-override {
|
|
382
|
-
--calcite-panel-background-color: var(--calcite-color-foreground-2);
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
.back-color-override-1 {
|
|
386
|
-
background-color: var(--calcite-color-foreground-1);
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
.title-font {
|
|
390
|
-
font-size: 1.8rem;
|
|
391
|
-
font-weight: var(--calcite-font-weight-medium);
|
|
392
|
-
color: var(--calcite-color-text-1);
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
.heading-font {
|
|
396
|
-
font-size: var(--calcite-font-size-0);
|
|
397
|
-
font-weight: var(--calcite-font-weight-medium);
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
.line-height-xxl {
|
|
401
|
-
line-height: var(--calcite-spacing-xxl);
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
.line-height-1 {
|
|
405
|
-
line-height: 1.1;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
.font-1 {
|
|
409
|
-
font-size: var(--calcite-spacing-lg);
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
.font-color-1 {
|
|
413
|
-
color: var(--calcite-color-text-1);
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
.font-color-2 {
|
|
417
|
-
color: var(--calcite-color-text-2);
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
h1 {
|
|
421
|
-
font-weight: unset;
|
|
422
|
-
margin: var(--calcite-spacing-none);
|
|
423
|
-
padding: var(--calcite-spacing-none);
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
.item-padding {
|
|
427
|
-
--calcite-internal-accordion-item-padding: var(--calcite-spacing-xl);
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
.accordion-bg {
|
|
431
|
-
--calcite-accordion-background-color: var(--calcite-color-foreground-1);
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
.table-cell {
|
|
435
|
-
font-size: var(--calcite-spacing-lg);
|
|
436
|
-
color: var(--calcite-color-text-2);
|
|
437
|
-
margin: 0;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
.table-cell p {
|
|
441
|
-
margin: 0;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
calcite-table-header {
|
|
445
|
-
font-weight: var(--calcite-font-weight-medium);
|
|
446
|
-
--calcite-internal-table-cell-font-size: var(--calcite-font-size-md);
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
.position-relative {
|
|
450
|
-
position: relative;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
.background-color-2 {
|
|
454
|
-
background-color: var(--calcite-color-foreground-2);
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
.panel-background-2 {
|
|
458
|
-
--calcite-panel-background-color: var(--calcite-color-foreground-2);
|
|
459
|
-
background-color: var(--calcite-color-foreground-2);
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
.border-none {
|
|
463
|
-
border: none;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
.padding-end-xxl {
|
|
467
|
-
padding-inline-end: var(--calcite-spacing-xxl);
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
calcite-shell {
|
|
471
|
-
block-size: unset;
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
.solution-detail-action {
|
|
475
|
-
--calcite-color-focus: initial;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
/* Style for anchor elements that may appear in innerHTML content to emulate calcite-link */
|
|
479
|
-
a {
|
|
480
|
-
color: var(--calcite-link-text-color, var(--calcite-color-text-link));
|
|
481
|
-
cursor: pointer;
|
|
482
|
-
text-decoration: none;
|
|
483
|
-
line-height: inherit;
|
|
484
|
-
background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--calcite-color-brand-underline), var(--calcite-color-brand-underline));
|
|
485
|
-
background-position-x: 0%, 100%;
|
|
486
|
-
background-position-y: min(1.5em, 100%);
|
|
487
|
-
background-repeat: no-repeat, no-repeat;
|
|
488
|
-
background-size: 0% 1px, 100% 1px;
|
|
489
|
-
transition-property: background-size, color;
|
|
490
|
-
transition-duration: var(--calcite-animation-timing, 150ms);
|
|
491
|
-
transition-timing-function: ease-in-out;
|
|
492
|
-
outline-color: transparent;
|
|
493
|
-
position: relative;
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
a:hover {
|
|
497
|
-
background-size: 100% 1px, 100% 1px;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
a:focus {
|
|
501
|
-
outline: 2px solid var(--calcite-color-brand);
|
|
502
|
-
outline-offset: 2px;
|
|
503
|
-
outline-color: var(--calcite-color-brand);
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
a:active {
|
|
507
|
-
color: var(--calcite-color-brand-press);
|
|
508
|
-
}`;async function q(n,e,t){let i=t;return n&&(n?.IsEnterprisePortal&&await Q("",e)&&i.push(p.NOTEBOOK),await V(e)?t.push(p.VELOCITY):n?.PortalUserPrivileges&&[x.VELOCITYFEEDS,x.VELOCITYBIGDATA,x.VELOCITYREALTIME].forEach(l=>{let c=t.indexOf(l)||-1;c!==-1&&t.splice(c,1)}),i=i.concat(K(X(n),Z(n))),i=i.concat(j(n)),i=i.concat(await J(n))),Promise.resolve(i)}function K(n,e){let t=[];return n&&e?t=[p.TRACKINGADMINANDTRACKING,p.TRACKINGADMIN,p.TRACKING]:n&&!e?t=[p.TRACKINGADMIN]:!n&&e&&(t=[p.TRACKING]),t}function j(n){return ee(n)?[p.HUBPREMIUM]:[]}async function J(n){let e=await N(n?.RestUserSession);return await U(e,n?.RestUserSession)?[p.WORKFLOW]:[]}async function Q(n,e){let t=n+"/sharing/rest",i={authentication:e,portal:t,params:{f:"json"}};return A(`${t}/portals/self/servers`,i).then(s=>s?.servers?.find(o=>o.serverFunction.indexOf("NotebookServer")>-1),s=>(console.error(s),!1))}function X(n){let e=n?.PortalUserSubset?.privileges,t=["portal:admin:create","portal:admin:delete","portal:admin:update","portal:admin:reassign"];return e?t.every(i=>e.some(s=>s.startsWith(i))):!1}function Z(n){return n?.PortalSubset?.locationTrackingEnabled||!1}function ee(n){return n?.PortalSubset?.hubPremiumEnabled||!1}var $=class extends C{constructor(){super(),this._isDeployDisabled=!1,this._isLoaded=!1,this._showScreenshotsShowMore=!1,this._showYouMayAlsoLikeShowMore=!1,this.isMobile=!1,this._isScreenshotsRowExpanded=!1,this._isYouMayAlsoLikeRowExpanded=!1,this._screenshotsRowBaseHeight=340,this._showLoader=!1,this._templates=[],this._translations=E({name:"solution-details-panel",blocking:!0}),this._youMayAlsoLikeBaseHeight=340,this._allCards=[],this._configContextConsumer=w({context:R,subscribe:!0}),this._configureLearnMore="",this._customDeploymentMappings={},this._deployDialogRef=d(),this._deployingDialogRef=d(),this._isMobileContextConsumer=w({context:D,subscribe:!0,callback:e=>this.isMobile=e}),this._overviewAccordionItemElement=d(),this._privilegePopoverRef=d(),this._privileges=[],this._regexFsUrl="https?:\\/\\/.+FeatureServer\\b",this._regexID="\\b[0-9A-F]{32}\\b",this._releaseNotesAccordionItemElement=d(),this._relatedResourcesAccordionItemElement=d(),this._screenshotsAccordionItemElement=d(),this._screenshotsDialogRef=d(),this._screenshotsElement=d(),this._termsOfUseAccordionItemElement=d(),this._userOptions=[],this._youMayAlsoLikeAccordionItemElement=d(),this._youMayAlsoLikeElement=d(),this._signInParamValue=null,this._deploymentStartTime=null,this._cancellationStartTime=null,this._deployToCancelDuration=0,this.templatesFetched=v(),this.itemPropertiesFetched=v(),this.sortTypeChanged=v(),this.tokenRefreshed=v(),this._handleDeployCancelled=()=>{this._telemetry?.logEvent({category:g.SOLUTION_DETAILS,action:"Deploy Dialog Canceled",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]})},this._handleDeploySuccess=()=>{let e=b(this._deploymentStartTime);this._deploymentStartTime=null,this._deployingDialogRef.value&&(this._deployingDialogRef.value.isWaitingForCard=!0),this._telemetry?.logEvent({category:g.SOLUTION_DETAILS,action:"Deploy Success",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""],metrics:[e]})},this._handleDeployedCardReady=async e=>{this._closeDialogs(),await new Promise(t=>requestAnimationFrame(()=>requestAnimationFrame(t))),window.dispatchEvent(new CustomEvent("displayDeployedCard",{detail:e.detail}))},this._handleDeploymentFallback=()=>{console.warn("Deployment completed but unable to navigate to deployed card - closing dialogs"),this._closeDialogs(),window.dispatchEvent(new CustomEvent("navTabSelected",{detail:"deployments"}))},this._handleDeploymentProcessCancelled=()=>{this._cancellationStartTime=Date.now(),this._deployToCancelDuration=b(this._deploymentStartTime),this._deploymentStartTime=null},this._handleDeployFailed=e=>{if(this._cancellationStartTime!==null){this._closeDialogs();return}let t=b(this._deploymentStartTime);this._deploymentStartTime=null;let i=z(e.detail?.error),s=i.length>200?i.slice(-200):i;console.error("Deployment failed:",e.detail?.error),this._telemetry?.logEvent({category:g.SOLUTION_DETAILS,action:"Deploy Failure",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"",s],metrics:[t]}),this._closeDialogs(!0)},this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"allCardsFetched",this._allCardsFetched),this.listenOn(window,"deployAppTabSelected",this._handleDeployAppTabSelected),this.listenOn(window,"deployedCardReady",this._handleDeployedCardReady),this.listenOn(window,"deploymentCompletedWithoutNav",this._handleDeploymentFallback)}static{this.properties={card:[0,{},{attribute:!1}],_isDeployDisabled:[16,{},{state:!0}],_isLoaded:[16,{},{state:!0}],_showScreenshotsShowMore:[16,{},{state:!0}],_showYouMayAlsoLikeShowMore:[16,{},{state:!0}],isMobile:[16,{},{state:!0}],_isScreenshotsRowExpanded:[16,{},{state:!0}],_isYouMayAlsoLikeRowExpanded:[16,{},{state:!0}],_itemProperties:[16,{},{state:!0}],_missingPrivilegeMessages:[16,{},{state:!0}],_screenshotsRowBaseHeight:[16,{},{state:!0}],_showLoader:[16,{},{state:!0}],_templates:[16,{},{state:!0}],_translations:[16,{},{state:!0}],_youMayAlsoLikeBaseHeight:[16,{},{state:!0}]}}static{this.styles=W}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async connectedCallback(){super.connectedCallback(),this.listenOn(window,"calciteTabChange",this._cleanupPanel)}async load(){this._isMobileContextConsumer.value&&(this.isMobile=this._isMobileContextConsumer.value)}willUpdate(e){e.has("card")&&(this._isDeployDisabled=!1,this._isLoaded=!1,this._showLoader=!1,this._signInParamValue==="deploy"&&(this._showLoader=!0))}loaded(){this._signInParamValue===null&&this._configContextConsumer.value?.authentication?.SignInParam&&(this._signInParamValue=this._configContextConsumer.value.authentication.SignInParam),this._resizeObserver=new ResizeObserver(async()=>{this._onResize()}),this._screenshotsElement.value&&this._resizeObserver.observe(this._screenshotsElement.value)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver?.disconnect()}render(){let e="padding-bottom-1-5",t=this._getRelatedResources(),i=this._getYouMayAlsoLikeCards();return a`<calcite-shell class="position-relative background-color-2"><calcite-panel class="panel-background-2 border-none" slot=panel-bottom><div class="margin-top-875 padding-1-5 back-color-override-1 margin-bottom-1-5" id=solution-details-row>${this._getSolutionRow()}</div><div class=${m(e)}>${this._getScreenshotsRow()}</div><div class=${m(e)}>${this._getOverviewRow()}</div><div class=${m(e)}>${this._getReleaseNotesRow()}</div>${t.length>0?a`<div class=${m(e)}>${this._getRelatedResourcesRow(t)}</div>`:""}${i.length>0?a`<div class=${m(e)}>${this._getYouMayAlsoLikeRow(i)}</div>`:""}<div class=${m(e)}>${this._getTermsOfUseRow()}</div>${this.isMobile?"":a`<solution-deploy-dialog .card=${this.card} @deployCancelled=${this._handleDeployCancelled} @deployFailed=${this._handleDeployFailed} @deployProgressEnd=${this._handleDeploySuccess} @deployProgressStart=${this._deployProgressStart} @deployProgressUpdated=${this._deployProgessUpdated} id=solutionDeployDialog .userOptions=${this._userOptions} ${h(this._deployDialogRef)}></solution-deploy-dialog>`}<solution-snapshot-gallery .card=${this.card} id=solutionSnapshotGallery .itemProperties=${this._itemProperties} ${h(this._screenshotsDialogRef)}></solution-snapshot-gallery><solution-deploying-dialog .card=${this.card} @deploymentProcessCancelled=${this._handleDeploymentProcessCancelled} ${h(this._deployingDialogRef)}></solution-deploying-dialog></calcite-panel></calcite-shell>`}updated(){setTimeout(()=>{let e=this._getYouMayAlsoLikeCards(),t=340;for(let i=0;i<e.length;i++){let s=this.el.shadowRoot?.getElementById(`you-may-also-like-${i}`),o=s?.offsetHeight?s.offsetHeight+40:0;o>t&&(t=o)}this._youMayAlsoLikeBaseHeight=t,this._showYouMayAlsoLikeShowMore=(this._youMayAlsoLikeElement.value?.scrollHeight||0)>this._youMayAlsoLikeBaseHeight},100)}_checkUrlParametersForAutoDeployment(){if(this._signInParamValue==="deploy"){let t=this._missingPrivilegeMessages&&(this._missingPrivilegeMessages.leadingMessages.length>0||this._missingPrivilegeMessages.bulletedMessages.length>0||this._missingPrivilegeMessages.trailingMessages.length>0);this._configContextConsumer.value?.authentication?.IsSignedIn&&this.card&&this._deployDialogRef.value&&!t&&(this._signInParamValue=null,this._openDeploy())}}_getSolutionRow(){let e=this.card?.thumbnailUrl.replace(/w=\d+/,"w=400"),t=this._missingPrivilegeMessages?.leadingMessages||[],i=t.length>0,s=this._missingPrivilegeMessages?.bulletedMessages||[],o=s.length>0,l=this._missingPrivilegeMessages?.trailingMessages||[],c=l.length>0;return a`<div class="display-flex flex-direction-row width-full"><div class="padding-end-1-75 image-width"><img alt=${this.card?.title??y} src=${e??y}></div><div class="display-flex flex-direction-row flex-1">${this._getTextSection(i,o,c,t,s,l)}${this._getButtons()}</div></div>`}_getTextSection(e,t,i,s,o,l){return a`<div class="display-flex flex-direction-column padding-end-1 flex-1"><div class="display-flex flex-direction-row align-items-baseline"><h1 class="padding-top-xs title-font margin-top-0 margin-bottom-1-5 line-height-1">${this.card?.title}</h1>${this.card?.categories?.some(c=>c.includes("New Release"))&&a`<calcite-chip class="margin-bottom-1-5 margin-sides-1" kind=brand .label=${this._translations.newChip} scale=m icon=star>${this._translations.newChip}</calcite-chip>`||""}</div><div class="font-1 padding-end-1 line-height-xxl">${this.card?.snippet}</div>${e||t||i?a`<div class="display-flex flex-direction-row padding-top-1">${this._getMissingPrivilegesNotice(s,o,l)}</div>`:""}</div>`}_getButtons(){let e=this._itemProperties?.demoURL||"";return a`<div class="display-flex flex-direction-column button-width"><calcite-button class="padding-bottom-1 solution-detail-action" .disabled=${this.isMobile?!0:this._isDeployDisabled} icon-flip-rtl=end @click=${()=>this._checkPermissionsBeforeDeploy()} scale=m>${this._showLoader?a`<calcite-loader inline label></calcite-loader>`:this._translations.deployButton}</calcite-button>${!this._configContextConsumer.value?.isEnterprise&&e&&a`<calcite-button appearance=outline-fill kind=neutral class="padding-bottom-1 solution-detail-action" @click=${()=>this._handleWatchDemoClick(e)} scale=m>${this._translations.watchDemo}</calcite-button>`||""}<calcite-button appearance=outline-fill kind=neutral class="padding-bottom-1 solution-detail-action" @click=${()=>this._handleLearnMoreClick()} scale=m>${this._translations.openHelp}</calcite-button>${!this._configContextConsumer.value?.isEnterprise&&a`<solution-social-share button-appearance=outline-fill class="padding-bottom-1" share-button-kind=neutral .shareButtonText=${this._translations.share} share-button-scale=m .solutionId=${this.card?.deployCommonId||""} .solutionTitle=${this.card?.title||""} .solutionVersion=${this.card?.deployVersion||""}></solution-social-share>`||""}</div>`}_getMissingPrivilegesNotice(e,t,i){let s="solutions-missing-privileges-notice",o=this._translations.missingPrivilegesPopup.missingLicensingOrPrivileges,l=t.length>0?"":"display-none",c=t.length>0?"padding-top-sm":"";return a`<div><calcite-notice class="margin-inline-unset" kind=info open><div slot=message>${`${o}`}</div><calcite-action icon=information id=${s} slot=actions-end .text=${o}></calcite-action></calcite-notice><calcite-popover closable label overlay-positioning=fixed placement=bottom reference-element=solutions-missing-privileges-notice ${h(this._privilegePopoverRef)}><div class="padding-1 display-flex flex-direction-column">${this._getSpanMessages(e,"padding-bottom-1")}<span class=${`padding-bottom-1-2 ${l}`}>${this._translations.missingPrivilegesPopup.missingPrivilegesListHeading}</span>${this._getBulletedMessages(t)}${this._getSpanMessages(i,c)}</div></calcite-popover></div>`}_getSpanMessages(e,t){return e.length>0?e.map(i=>a`<span class=${m(t)}>${i}</span>`):""}_getBulletedMessages(e){return e.length>0?a`<ul>${e.map(t=>a`<li>${t}</li>`)}</ul>`:""}_getScreenshotsRow(){let e=this._isScreenshotsRowExpanded?this._translations.showLess:this._translations.showMore,t=this._isScreenshotsRowExpanded?"arrow-up":"arrow-down",i=this._showScreenshotsShowMore?"":"display-none";return a`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._screenshotsAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.solutionOverview}</div><calcite-panel><div class="display-flex flex-direction-column back-color-override-1"><div class="collapsible-div max-height-300" id=screenshots-subsection ${h(this._screenshotsElement)}>${this._getScreenshots()}</div><calcite-fab appearance=outline-fill class=${`align-self-center ${i}`} .icon=${t} kind=neutral @click=${()=>{this._screenshotsElement.value?.classList.toggle("expanded"),this._isScreenshotsRowExpanded=this._screenshotsElement.value.classList.contains("expanded")}} .text=${e} text-enabled></calcite-fab></div></calcite-panel></calcite-accordion-item></calcite-accordion>`}_getScreenshots(){let e=this._itemProperties?.preview.filter(i=>i.format==="image")||[],t=this._configContextConsumer.value;return a`<calcite-card-group class="card-group" .label=${this._translations.solutionOverview}>${e.reduce((i,s)=>{let o=S(this.card?.id||"",s.name,t.authentication),l;return t.agoBasedEnterpriseSolutionsGroupId&&t.isEnterprise&&(l=S(this.card?.id||"",s.name,void 0,t.agolPortalUrl)),this.card?.id?i.push(a`<calcite-card class="cursor-pointer" .label=${s.alt} @click=${()=>this._openScreenshotGallery(s)}><div class="card-image-wrap" slot=thumbnail><img alt=${s.alt??y} class="thumbnail card-image" slot=thumbnail src=${(l||o)??y}><div class="hover-text">${this._translations.openInGallery}</div></div></calcite-card>`):i.push(""),i},[])}</calcite-card-group>`}_openScreenshotGallery(e){this._telemetry?.logEvent({category:g.SOLUTION_DETAILS,action:"Screenshot Gallery",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]});let t=this._screenshotsDialogRef.value;t&&(t.screenshot=e,t.open=!0)}_getOverviewRow(){return a`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._overviewAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.solutionDetails}</div>${this._getDescriptionRow()}${this._getInformationProductsRow()}</calcite-accordion-item></calcite-accordion>`}_getDescriptionRow(){return a`<div class="display-flex flex-direction-column"><div class="font-color-2 font-1 margin-top-0 line-height-xxl padding-bottom-xxl">${this.card?.snippet}</div><div class="font-color-2 font-1 margin-top-0 line-height-xxl padding-bottom-xxl" .innerHTML=${this.card?.description??""}></div></div>`}_getInformationProductsRow(){return a`<div class="display-flex flex-direction-column font-1 line-height-xxl font-color-2"><span>${this.card?.title?this._translations.informationProductsSubText.replace("{{solutionTitle}}",this.card.title):""}</span><calcite-table bordered caption class="padding-top-1">${this._getInformationTableHeaderRow()}${this._getInformationTableRows()}</calcite-table><p>${this._translations.informationProductsFooterText}</p></div>`}_getInformationTableHeaderRow(){return a`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.solutionItem}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header><calcite-table-header .heading=${this._translations.minimumUserType}></calcite-table-header></calcite-table-row>`}_getInformationTableRows(){return(this._itemProperties?.infoProducts||[]).map(t=>a`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.item)??""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.description)??""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.userType)??""}></p></calcite-table-cell></calcite-table-row>`)}_getReleaseNotesRow(){return a`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._releaseNotesAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.releaseNotes}</div><div class="display-flex flex-direction-column"><calcite-table bordered caption>${this._getReleaseNotesTableHeaderRow()}${this._getReleaseNotesTableRows()}</calcite-table></div></calcite-accordion-item></calcite-accordion>`}_getReleaseNotesTableHeaderRow(){return a`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.version}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header></calcite-table-row>`}_getReleaseNotesTableRows(){return(this._itemProperties?.releaseNotes||[])?.map(t=>a`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.version)??""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${_(t.description)??""}></p></calcite-table-cell></calcite-table-row>`)}_getRelatedResourcesRow(e){return a`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._relatedResourcesAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.relatedResources}</div><div class="display-flex flex-direction-row">${e.map(()=>{a`<solution-resource-card></solution-resource-card>`})}</div></calcite-accordion-item></calcite-accordion>`}_getRelatedResources(){return[]}_getYouMayAlsoLikeRow(e){let t=this._showYouMayAlsoLikeShowMore?"":"display-none",i=this._isYouMayAlsoLikeRowExpanded?this._translations.showLess:this._translations.showMore,s=this._isYouMayAlsoLikeRowExpanded?"arrow-up":"arrow-down",o=this._isYouMayAlsoLikeRowExpanded?"":{height:`${this._youMayAlsoLikeBaseHeight}px`};return a`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._youMayAlsoLikeAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.youMayAlsoLike}</div><div class="display-flex flex-direction-column"><div class="collapsible-div" id=you-may-also-like-subsection style=${M(o)} ${h(this._youMayAlsoLikeElement)}><div class="display-flex flex-direction-row"><calcite-card-group class="card-group" .label=${this._translations.youMayAlsoLike}>${e.map((l,c)=>a`<solution-details-card .id=${`you-may-also-like-${c}`} .card=${l} class="padding-2px" source=you-may-also-like .referrerSolutionId=${this.card?.deployCommonId||""} .referrerSolutionTitle=${this.card?.title||""} .referrerSolutionVersion=${this.card?.deployVersion||""}></solution-details-card>`)}</calcite-card-group></div></div><calcite-fab appearance=outline-fill class=${`align-self-center ${t}`} .icon=${s} kind=inverse @click=${()=>{this._youMayAlsoLikeElement.value?.classList.toggle("expanded"),this._isYouMayAlsoLikeRowExpanded=this._youMayAlsoLikeElement.value.classList.contains("expanded")}} .text=${i} text-enabled></calcite-fab></div></calcite-accordion-item></calcite-accordion>`}_getYouMayAlsoLikeCards(){let e=this._itemProperties?.relatedSolutions||[];return this._allCards.filter(t=>e.indexOf(t.deployCommonId)>-1)}_getTermsOfUseRow(){return a`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${h(this._termsOfUseAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.termsOfUse}</div><div class="font-color-2" .innerHTML=${(this.card?.licenseInfo||"")??""}></div></calcite-accordion-item></calcite-accordion>`}_openDeploy(){if(this._configContextConsumer.value.authentication.IsSignedIn){let e=this._deployDialogRef.value;e&&(this._telemetry?.logEvent({category:g.SOLUTION_DETAILS,action:"Deploy Dialog Opened",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]}),e.userOptions=this._userOptions,e.open=!0)}else this._configContextConsumer.value.authentication.signIn("deploy")}_openUrl(e){window.open(e,"_blank")}_handleWatchDemoClick(e){this._telemetry?.logEvent({category:g.SOLUTION_DETAILS,action:"Watch Demo",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]}),this._openUrl(e)}_handleLearnMoreClick(){this._telemetry?.logEvent({category:g.SOLUTION_DETAILS,action:"Open Help",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]}),this._openUrl(this.card?.learnMoreUrl||"")}async _detailsCardSelected(e){this.card=e.detail,this.el.scrollIntoView(!0),this._onResize(),this._missingPrivilegeMessages=void 0,await this._getItemData(),this._expandAccordions()}_expandAccordions(){this._overviewAccordionItemElement.value&&(this._overviewAccordionItemElement.value.expanded=!0),this._releaseNotesAccordionItemElement.value&&(this._releaseNotesAccordionItemElement.value.expanded=!0),this._relatedResourcesAccordionItemElement.value&&(this._relatedResourcesAccordionItemElement.value.expanded=!0),this._screenshotsAccordionItemElement.value&&(this._screenshotsAccordionItemElement.value.expanded=!0),this._termsOfUseAccordionItemElement.value&&(this._termsOfUseAccordionItemElement.value.expanded=!0),this._youMayAlsoLikeAccordionItemElement.value&&(this._youMayAlsoLikeAccordionItemElement.value.expanded=!0)}async _getItemData(){let e=this._configContextConsumer.value,t=e?.agoBasedEnterpriseSolutionsGroupId&&e?.isEnterprise?e.anonAgolSession:e?.userSession,i=await O(this.card.id,t),s=await T(this.card.id,t);this._itemProperties=s.properties,this.itemPropertiesFetched.emit(this._itemProperties);let o=F(i,this.card.typeKeywords,e?.authentication);this._privileges=t.username?o:[],this._userPrivileges=e?.authentication&&e?.userSession?await q(e.authentication,e.userSession,e.authentication.PortalUserPrivileges):[];let l=this._privileges.filter(u=>!this._userPrivileges.includes(u));this._missingPrivilegeMessages=H(this._translations,l),this._isDeployDisabled=this._missingPrivilegeMessages&&(this._missingPrivilegeMessages.leadingMessages.length>0||this._missingPrivilegeMessages.bulletedMessages.length>0||this._missingPrivilegeMessages.trailingMessages.length>0);let c=i.params?await this.formatParams(i.params):[];this._userOptions=c,this._templates=i.templates,this.templatesFetched.emit(i.templates),this._checkUrlParametersForAutoDeployment(),this._isLoaded=!0,this._showLoader&&(this._showLoader=!1,this._isDeployDisabled||this._openDeploy())}formatParams(e){let t=this._configContextConsumer.value.userSession,i=[],s=e?Object.keys(e):[],o={id:"",props:[],accordionDisplay:!1};if(s.length>0){let l=[];return s.forEach(c=>{let u=e[c];u.valueType&&u.valueType.toLowerCase()==="itemid"&&l.push(this._findExistingItem(c,"Feature Service",t.username||""))}),Promise.all(l).then(c=>{let u={};return c.forEach(r=>{if(r.query&&r.results&&r.results.length>0){let G=r.query.split(" ")[0].replace("typekeywords:source-","");u[G]={resultId:r.results[0].id,response:r.results[0]}}}),s.forEach(r=>{if(r==="serviceLearnMore"){this._configureLearnMore=e[r],alert(this._configureLearnMore),delete e[r];return}e[r].enterpriseIDMapping&&(this._customDeploymentMappings[r]=e[r].enterpriseIDMapping),o.id=r,u[r]&&(e[r].existingItemId=u[r].resultId,this.updateUserProp(e[r],u[r].response)),this.updateOption(e[r],o,r)}),i.push(o),Promise.resolve(i)}).catch(()=>Promise.resolve([]))}else return Promise.resolve([])}_findExistingItem(e,t,i){let s=this._configContextConsumer.value.userSession;return Y(`typekeywords:source-${e} type:${t} owner:${i}`,s)}updateUserProp(e,t){let i=e.itemType?.toLowerCase()==="feature service",s=new RegExp(i?this._regexFsUrl:e.itemType,"iu"),o=I(t,i?"url":"type","")||"",l=o!==""&&s.test(o);return e.responseValue=l?o:"",e.name=l&&f(t,"name")||"",e.title=l&&f(t,"title")||"",e.itemType=l?f(t,"type"):e.itemType,e.validId=l,e.itemUrl=B(t.id,this._configContextConsumer.value.authentication),l}updateOption(e,t,i){let s=e.default||"",o=typeof s,l=s.toString();this._setFeatureServiceProps(e);let c=this.getValidation(e,l);t.props.push({id:i,outType:o,prop:i,itemType:e.itemType||"",responseValue:e.responseValue||"",label:e.label||"",choices:e.choices||[],valueType:e.valueType.toLowerCase(),attributes:e.attributes||{},value:e.existingItemId&&e.valueType.toLowerCase()==="itemid"?e.existingItemId:l,default:l,srSearchText:l,autoSelect:l!=="",...c,loading:!1,validId:!0,tooltip:e.tooltip||"",name:e.name||"",title:e.title||"",itemUrl:e.itemUrl||""})}_setFeatureServiceProps(e){e.valueType&&e.valueType.toLowerCase()==="itemid"&&P(e,"attributes.required","true")}getValidation(e,t){let i="",s=f(e,"validation.message")||"",o=!0;return f(e,"attributes.required")==="true"&&(i=I(e,"validation.expression","\\S{1,}"),o=new RegExp(i).test(t)),e.valueType&&e.valueType.toLowerCase()==="itemid"&&(i=this._regexID,s=this._translations.configure.invalidID),{valid:o,validation:{expression:i,message:s}}}_allCardsFetched(e){this._allCards=e.detail}_onResize(){this._showYouMayAlsoLikeShowMore=(this._youMayAlsoLikeElement.value?.scrollHeight||0)>this._youMayAlsoLikeBaseHeight,this._showScreenshotsShowMore=(this._screenshotsElement.value?.scrollHeight||0)>this._screenshotsRowBaseHeight+2}_cleanupPanel(){this.el.scrollIntoView(!0),this._isScreenshotsRowExpanded=!1,this._showScreenshotsShowMore=!1,this._screenshotsElement.value?.classList.remove("expanded"),this._isYouMayAlsoLikeRowExpanded=!1,this._showYouMayAlsoLikeShowMore=!1,this._youMayAlsoLikeElement.value?.classList.remove("expanded"),this._privilegePopoverRef.value?.open&&(this._privilegePopoverRef.value.open=!1),this._isDeployDisabled=!1,this._isLoaded=!1,this._showLoader=!1,this._expandAccordions()}_deployProgressStart(e){this._deploymentStartTime=Date.now(),this._telemetry?.logEvent({category:g.SOLUTION_DETAILS,action:"Deploy Started",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""]}),this._deployingDialogRef.value&&(this._deployingDialogRef.value.open=!0,this._deployingDialogRef.value.abortController=e.detail),this._deployDialogRef.value&&this._deployDialogRef.value.classList.add("display-none")}_deployProgessUpdated(e){let t=e.detail;this._deployingDialogRef.value.deploymentProgress=t.progress}_closeDialogs(e=!1){if(this._cancellationStartTime!==null){let t=b(this._cancellationStartTime);this._telemetry?.logEvent({category:g.SOLUTION_DETAILS,action:"Deploy Canceled",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||""],metrics:[this._deployToCancelDuration,t]}),this._cancellationStartTime=null,this._deployToCancelDuration=0}this._deployingDialogRef.value.close(),e?this._deployDialogRef.value.open=!0:this._deployDialogRef.value.close(),this._deployDialogRef.value.classList.remove("display-none")}_handleDeployAppTabSelected(e){e.detail==="details"&&this.sortTypeChanged.emit("")}_checkPermissionsBeforeDeploy(){this._isLoaded?this._openDeploy():this._configContextConsumer.value.authentication?.IsSignedIn?this._showLoader=!0:this._openDeploy()}};L("solution-details-panel",$);return $},b,c,e,g)
|