@esri/solutions-components 0.5.11 → 0.5.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -1126,7 +1126,7 @@ const Slider = class {
1126
1126
  };
1127
1127
  Slider.style = sliderCss;
1128
1128
 
1129
- const mapDrawToolsCss = ":host{display:block}.border{outline:1px solid var(--calcite-ui-border-input)}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir=\"rtl\"] .main-label{display:flex;float:right}.margin-top-1{margin-top:1rem}.border-left{border-left:1px solid rgba(110,110,110,.3)}.border-left[dir=\"rtl\"]{border-right:1px solid rgba(110,110,110,.3)}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:\"Avenir Next\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;line-height:1.3em;background-color:#fff;--esri-widget-padding-v:12px;--esri-widget-padding-h:15px;--esri-widget-padding:var(--esri-widget-padding-v) var(--esri-widget-padding-h)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row wrap;padding:0}.esri-sketch__section{align-items:center;display:flex;flex-flow:row wrap;padding:0 7px;margin:6px 0}.esri-sketch__section.esri-sketch__tool-section:first-of-type{display:none}";
1129
+ const mapDrawToolsCss = ":host{display:block}.border{outline:1px solid var(--calcite-ui-border-input)}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir=\"rtl\"] .main-label{display:flex;float:right}.margin-top-1{margin-top:1rem}.border-left{border-left:1px solid rgba(110,110,110,.3)}.border-left[dir=\"rtl\"]{border-right:1px solid rgba(110,110,110,.3)}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:\"Avenir Next\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;line-height:1.3em;background-color:#fff;--esri-widget-padding-v:12px;--esri-widget-padding-h:15px;--esri-widget-padding:var(--esri-widget-padding-v) var(--esri-widget-padding-h)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row wrap;padding:0}.esri-sketch__section{align-items:center;display:flex;flex-flow:row wrap;padding:0 7px;margin:6px 0}";
1130
1130
 
1131
1131
  const MapDrawTools = class {
1132
1132
  constructor(hostRef) {
@@ -1213,6 +1213,17 @@ const MapDrawTools = class {
1213
1213
  componentDidLoad() {
1214
1214
  this._init();
1215
1215
  }
1216
+ /**
1217
+ * StencilJS: Called every time the component is disconnected from the DOM
1218
+ *
1219
+ * @returns void
1220
+ */
1221
+ disconnectedCallback() {
1222
+ // cancel any existing create operations
1223
+ this._sketchWidget.cancel();
1224
+ // clear any current temp sketch
1225
+ this._clearSketch();
1226
+ }
1216
1227
  /**
1217
1228
  * Renders the component.
1218
1229
  */
@@ -1313,6 +1324,7 @@ const MapDrawTools = class {
1313
1324
  this._sketchWidget.viewModel.polylineSymbol = this.polylineSymbol;
1314
1325
  this._sketchWidget.viewModel.pointSymbol = this.pointSymbol;
1315
1326
  this._sketchWidget.viewModel.polygonSymbol = this.polygonSymbol;
1327
+ let forceCreate = false;
1316
1328
  this._sketchWidget.on("create", (evt) => {
1317
1329
  if (evt.state === "complete") {
1318
1330
  this.graphics = [evt.graphic];
@@ -1320,6 +1332,16 @@ const MapDrawTools = class {
1320
1332
  graphics: this.graphics,
1321
1333
  useOIDs: false
1322
1334
  });
1335
+ if (this.drawMode === interfaces.EDrawMode.REFINE) {
1336
+ // calling create during complete will force the cancel event
1337
+ // https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#event-create
1338
+ forceCreate = true;
1339
+ this._sketchWidget.viewModel.create(evt.tool);
1340
+ }
1341
+ }
1342
+ if (evt.state === "cancel" && this.drawMode === interfaces.EDrawMode.REFINE && forceCreate) {
1343
+ forceCreate = !forceCreate;
1344
+ this._sketchWidget.viewModel.create(evt.tool);
1323
1345
  }
1324
1346
  });
1325
1347
  this._sketchWidget.on("update", (evt) => {
@@ -1341,7 +1363,6 @@ const MapDrawTools = class {
1341
1363
  });
1342
1364
  this._sketchWidget.on("delete", () => {
1343
1365
  this.graphics = [];
1344
- this._setDefaultCreateTool();
1345
1366
  this.sketchGraphicsChange.emit({
1346
1367
  graphics: this.graphics,
1347
1368
  useOIDs: false
@@ -1361,7 +1382,6 @@ const MapDrawTools = class {
1361
1382
  useOIDs: false
1362
1383
  });
1363
1384
  });
1364
- this._setDefaultCreateTool();
1365
1385
  }
1366
1386
  /**
1367
1387
  * Clear any stored graphics and remove all graphics from the graphics layer
@@ -1374,16 +1394,6 @@ const MapDrawTools = class {
1374
1394
  this.graphics = [];
1375
1395
  (_a = this._sketchGraphicsLayer) === null || _a === void 0 ? void 0 : _a.removeAll();
1376
1396
  }
1377
- /**
1378
- * Set the default create tool when we have no existing graphics
1379
- *
1380
- * @protected
1381
- */
1382
- _setDefaultCreateTool() {
1383
- if (!this.graphics || this.graphics.length === 0) {
1384
- this._sketchWidget.viewModel.create("rectangle");
1385
- }
1386
- }
1387
1397
  /**
1388
1398
  * Emit the undo event
1389
1399
  *
@@ -17,7 +17,7 @@ const downloadUtils = require('./downloadUtils-7a0fd3c0.js');
17
17
  require('./index-e1b1954f.js');
18
18
  require('./_commonjsHelpers-384729db.js');
19
19
 
20
- const publicNotificationCss = ":host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.action-center{-webkit-box-align:center;-webkit-align-items:center;-ms-grid-row-align:center;align-items:center;align-content:center;justify-content:center}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{-webkit-padding-before:1rem;padding-block-start:1rem;-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-sides-1{-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-end-1-2{-webkit-padding-end:.5rem;padding-inline-end:.5rem}.padding-top-1-2{-webkit-padding-before:.5rem;padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.padding-start-1-2{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-ui-border-2)}.margin-sides-1{-webkit-margin-start:1rem;margin-inline-start:1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.margin-start-1-2{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir=\"rtl\"]{float:left}.float-left{float:left}.float-left[dir=\"rtl\"]{float:right}.margin-top-0{-webkit-margin-before:0 !important;margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-ui-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir=\"rtl\"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-ui-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{-webkit-margin-before:0.125rem;margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}.img-container{-o-object-fit:scale-down;object-fit:scale-down;width:100%;height:100%}";
20
+ const publicNotificationCss = ":host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.action-center{-webkit-box-align:center;-webkit-align-items:center;-ms-grid-row-align:center;align-items:center;align-content:center;justify-content:center}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{-webkit-padding-before:1rem;padding-block-start:1rem;-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-sides-1{-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-end-1-2{-webkit-padding-end:.5rem;padding-inline-end:.5rem}.padding-top-1-2{-webkit-padding-before:.5rem;padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.padding-start-1-2{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-ui-border-2)}.margin-sides-1{-webkit-margin-start:1rem;margin-inline-start:1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.margin-start-1-2{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir=\"rtl\"]{float:left}.float-left{float:left}.float-left[dir=\"rtl\"]{float:right}.margin-top-0{-webkit-margin-before:0 !important;margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-ui-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir=\"rtl\"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-ui-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{-webkit-margin-before:0.125rem;margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}.img-container{width:100%;height:100%}";
21
21
 
22
22
  const PublicNotification = class {
23
23
  constructor(hostRef) {
@@ -406,7 +406,9 @@ const PublicNotification = class {
406
406
  // REFINE will only ever be 1 ISelectionSet
407
407
  Object.keys(cur.refineInfos).forEach(k => {
408
408
  const refineIds = cur.refineInfos[k];
409
- this._updateIds(k, refineIds.layerView, refineIds.addIds, prev);
409
+ if (refineIds.addIds.length > 0) {
410
+ this._updateIds(k, refineIds.layerView, refineIds.addIds, prev);
411
+ }
410
412
  });
411
413
  }
412
414
  }
@@ -83,7 +83,3 @@ html[dir="rtl"] .main-label {
83
83
  padding: 0 7px;
84
84
  margin: 6px 0;
85
85
  }
86
-
87
- .esri-sketch__section.esri-sketch__tool-section:first-of-type {
88
- display: none;
89
- }
@@ -103,6 +103,17 @@ export class MapDrawTools {
103
103
  componentDidLoad() {
104
104
  this._init();
105
105
  }
106
+ /**
107
+ * StencilJS: Called every time the component is disconnected from the DOM
108
+ *
109
+ * @returns void
110
+ */
111
+ disconnectedCallback() {
112
+ // cancel any existing create operations
113
+ this._sketchWidget.cancel();
114
+ // clear any current temp sketch
115
+ this._clearSketch();
116
+ }
106
117
  /**
107
118
  * Renders the component.
108
119
  */
@@ -203,6 +214,7 @@ export class MapDrawTools {
203
214
  this._sketchWidget.viewModel.polylineSymbol = this.polylineSymbol;
204
215
  this._sketchWidget.viewModel.pointSymbol = this.pointSymbol;
205
216
  this._sketchWidget.viewModel.polygonSymbol = this.polygonSymbol;
217
+ let forceCreate = false;
206
218
  this._sketchWidget.on("create", (evt) => {
207
219
  if (evt.state === "complete") {
208
220
  this.graphics = [evt.graphic];
@@ -210,6 +222,16 @@ export class MapDrawTools {
210
222
  graphics: this.graphics,
211
223
  useOIDs: false
212
224
  });
225
+ if (this.drawMode === EDrawMode.REFINE) {
226
+ // calling create during complete will force the cancel event
227
+ // https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#event-create
228
+ forceCreate = true;
229
+ this._sketchWidget.viewModel.create(evt.tool);
230
+ }
231
+ }
232
+ if (evt.state === "cancel" && this.drawMode === EDrawMode.REFINE && forceCreate) {
233
+ forceCreate = !forceCreate;
234
+ this._sketchWidget.viewModel.create(evt.tool);
213
235
  }
214
236
  });
215
237
  this._sketchWidget.on("update", (evt) => {
@@ -231,7 +253,6 @@ export class MapDrawTools {
231
253
  });
232
254
  this._sketchWidget.on("delete", () => {
233
255
  this.graphics = [];
234
- this._setDefaultCreateTool();
235
256
  this.sketchGraphicsChange.emit({
236
257
  graphics: this.graphics,
237
258
  useOIDs: false
@@ -251,7 +272,6 @@ export class MapDrawTools {
251
272
  useOIDs: false
252
273
  });
253
274
  });
254
- this._setDefaultCreateTool();
255
275
  }
256
276
  /**
257
277
  * Clear any stored graphics and remove all graphics from the graphics layer
@@ -264,16 +284,6 @@ export class MapDrawTools {
264
284
  this.graphics = [];
265
285
  (_a = this._sketchGraphicsLayer) === null || _a === void 0 ? void 0 : _a.removeAll();
266
286
  }
267
- /**
268
- * Set the default create tool when we have no existing graphics
269
- *
270
- * @protected
271
- */
272
- _setDefaultCreateTool() {
273
- if (!this.graphics || this.graphics.length === 0) {
274
- this._sketchWidget.viewModel.create("rectangle");
275
- }
276
- }
277
287
  /**
278
288
  * Emit the undo event
279
289
  *
@@ -219,8 +219,6 @@
219
219
  }
220
220
 
221
221
  .img-container {
222
- -o-object-fit: scale-down;
223
- object-fit: scale-down;
224
222
  width: 100%;
225
223
  height: 100%;
226
224
  }
@@ -411,7 +411,9 @@ export class PublicNotification {
411
411
  // REFINE will only ever be 1 ISelectionSet
412
412
  Object.keys(cur.refineInfos).forEach(k => {
413
413
  const refineIds = cur.refineInfos[k];
414
- this._updateIds(k, refineIds.layerView, refineIds.addIds, prev);
414
+ if (refineIds.addIds.length > 0) {
415
+ this._updateIds(k, refineIds.layerView, refineIds.addIds, prev);
416
+ }
415
417
  });
416
418
  }
417
419
  }
@@ -12,7 +12,7 @@ import { d as defineCustomElement$3 } from './action.js';
12
12
  import { d as defineCustomElement$2 } from './icon.js';
13
13
  import { d as defineCustomElement$1 } from './loader.js';
14
14
 
15
- const mapDrawToolsCss = ":host{display:block}.border{outline:1px solid var(--calcite-ui-border-input)}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir=\"rtl\"] .main-label{display:flex;float:right}.margin-top-1{margin-top:1rem}.border-left{border-left:1px solid rgba(110,110,110,.3)}.border-left[dir=\"rtl\"]{border-right:1px solid rgba(110,110,110,.3)}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:\"Avenir Next\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;line-height:1.3em;background-color:#fff;--esri-widget-padding-v:12px;--esri-widget-padding-h:15px;--esri-widget-padding:var(--esri-widget-padding-v) var(--esri-widget-padding-h)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row wrap;padding:0}.esri-sketch__section{align-items:center;display:flex;flex-flow:row wrap;padding:0 7px;margin:6px 0}.esri-sketch__section.esri-sketch__tool-section:first-of-type{display:none}";
15
+ const mapDrawToolsCss = ":host{display:block}.border{outline:1px solid var(--calcite-ui-border-input)}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir=\"rtl\"] .main-label{display:flex;float:right}.margin-top-1{margin-top:1rem}.border-left{border-left:1px solid rgba(110,110,110,.3)}.border-left[dir=\"rtl\"]{border-right:1px solid rgba(110,110,110,.3)}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:\"Avenir Next\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;line-height:1.3em;background-color:#fff;--esri-widget-padding-v:12px;--esri-widget-padding-h:15px;--esri-widget-padding:var(--esri-widget-padding-v) var(--esri-widget-padding-h)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row wrap;padding:0}.esri-sketch__section{align-items:center;display:flex;flex-flow:row wrap;padding:0 7px;margin:6px 0}";
16
16
 
17
17
  const MapDrawTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
18
18
  constructor() {
@@ -100,6 +100,17 @@ const MapDrawTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
100
100
  componentDidLoad() {
101
101
  this._init();
102
102
  }
103
+ /**
104
+ * StencilJS: Called every time the component is disconnected from the DOM
105
+ *
106
+ * @returns void
107
+ */
108
+ disconnectedCallback() {
109
+ // cancel any existing create operations
110
+ this._sketchWidget.cancel();
111
+ // clear any current temp sketch
112
+ this._clearSketch();
113
+ }
103
114
  /**
104
115
  * Renders the component.
105
116
  */
@@ -200,6 +211,7 @@ const MapDrawTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
200
211
  this._sketchWidget.viewModel.polylineSymbol = this.polylineSymbol;
201
212
  this._sketchWidget.viewModel.pointSymbol = this.pointSymbol;
202
213
  this._sketchWidget.viewModel.polygonSymbol = this.polygonSymbol;
214
+ let forceCreate = false;
203
215
  this._sketchWidget.on("create", (evt) => {
204
216
  if (evt.state === "complete") {
205
217
  this.graphics = [evt.graphic];
@@ -207,6 +219,16 @@ const MapDrawTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
207
219
  graphics: this.graphics,
208
220
  useOIDs: false
209
221
  });
222
+ if (this.drawMode === EDrawMode.REFINE) {
223
+ // calling create during complete will force the cancel event
224
+ // https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#event-create
225
+ forceCreate = true;
226
+ this._sketchWidget.viewModel.create(evt.tool);
227
+ }
228
+ }
229
+ if (evt.state === "cancel" && this.drawMode === EDrawMode.REFINE && forceCreate) {
230
+ forceCreate = !forceCreate;
231
+ this._sketchWidget.viewModel.create(evt.tool);
210
232
  }
211
233
  });
212
234
  this._sketchWidget.on("update", (evt) => {
@@ -228,7 +250,6 @@ const MapDrawTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
228
250
  });
229
251
  this._sketchWidget.on("delete", () => {
230
252
  this.graphics = [];
231
- this._setDefaultCreateTool();
232
253
  this.sketchGraphicsChange.emit({
233
254
  graphics: this.graphics,
234
255
  useOIDs: false
@@ -248,7 +269,6 @@ const MapDrawTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
248
269
  useOIDs: false
249
270
  });
250
271
  });
251
- this._setDefaultCreateTool();
252
272
  }
253
273
  /**
254
274
  * Clear any stored graphics and remove all graphics from the graphics layer
@@ -261,16 +281,6 @@ const MapDrawTools = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
261
281
  this.graphics = [];
262
282
  (_a = this._sketchGraphicsLayer) === null || _a === void 0 ? void 0 : _a.removeAll();
263
283
  }
264
- /**
265
- * Set the default create tool when we have no existing graphics
266
- *
267
- * @protected
268
- */
269
- _setDefaultCreateTool() {
270
- if (!this.graphics || this.graphics.length === 0) {
271
- this._sketchWidget.viewModel.create("rectangle");
272
- }
273
- }
274
284
  /**
275
285
  * Emit the undo event
276
286
  *
@@ -48,7 +48,7 @@ import { d as defineCustomElement$4 } from './map-select-tools2.js';
48
48
  import { d as defineCustomElement$3 } from './pdf-download2.js';
49
49
  import { d as defineCustomElement$2 } from './refine-selection2.js';
50
50
 
51
- const publicNotificationCss = ":host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.action-center{-webkit-box-align:center;-webkit-align-items:center;-ms-grid-row-align:center;align-items:center;align-content:center;justify-content:center}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{-webkit-padding-before:1rem;padding-block-start:1rem;-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-sides-1{-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-end-1-2{-webkit-padding-end:.5rem;padding-inline-end:.5rem}.padding-top-1-2{-webkit-padding-before:.5rem;padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.padding-start-1-2{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-ui-border-2)}.margin-sides-1{-webkit-margin-start:1rem;margin-inline-start:1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.margin-start-1-2{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir=\"rtl\"]{float:left}.float-left{float:left}.float-left[dir=\"rtl\"]{float:right}.margin-top-0{-webkit-margin-before:0 !important;margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-ui-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir=\"rtl\"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-ui-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{-webkit-margin-before:0.125rem;margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}.img-container{-o-object-fit:scale-down;object-fit:scale-down;width:100%;height:100%}";
51
+ const publicNotificationCss = ":host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.action-center{-webkit-box-align:center;-webkit-align-items:center;-ms-grid-row-align:center;align-items:center;align-content:center;justify-content:center}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{-webkit-padding-before:1rem;padding-block-start:1rem;-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-sides-1{-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-end-1-2{-webkit-padding-end:.5rem;padding-inline-end:.5rem}.padding-top-1-2{-webkit-padding-before:.5rem;padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.padding-start-1-2{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-ui-border-2)}.margin-sides-1{-webkit-margin-start:1rem;margin-inline-start:1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.margin-start-1-2{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir=\"rtl\"]{float:left}.float-left{float:left}.float-left[dir=\"rtl\"]{float:right}.margin-top-0{-webkit-margin-before:0 !important;margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-ui-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir=\"rtl\"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-ui-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{-webkit-margin-before:0.125rem;margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}.img-container{width:100%;height:100%}";
52
52
 
53
53
  const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
54
54
  constructor() {
@@ -438,7 +438,9 @@ const PublicNotification$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
438
438
  // REFINE will only ever be 1 ISelectionSet
439
439
  Object.keys(cur.refineInfos).forEach(k => {
440
440
  const refineIds = cur.refineInfos[k];
441
- this._updateIds(k, refineIds.layerView, refineIds.addIds, prev);
441
+ if (refineIds.addIds.length > 0) {
442
+ this._updateIds(k, refineIds.layerView, refineIds.addIds, prev);
443
+ }
442
444
  });
443
445
  }
444
446
  }
@@ -1122,7 +1122,7 @@ const Slider = class {
1122
1122
  };
1123
1123
  Slider.style = sliderCss;
1124
1124
 
1125
- const mapDrawToolsCss = ":host{display:block}.border{outline:1px solid var(--calcite-ui-border-input)}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir=\"rtl\"] .main-label{display:flex;float:right}.margin-top-1{margin-top:1rem}.border-left{border-left:1px solid rgba(110,110,110,.3)}.border-left[dir=\"rtl\"]{border-right:1px solid rgba(110,110,110,.3)}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:\"Avenir Next\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;line-height:1.3em;background-color:#fff;--esri-widget-padding-v:12px;--esri-widget-padding-h:15px;--esri-widget-padding:var(--esri-widget-padding-v) var(--esri-widget-padding-h)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row wrap;padding:0}.esri-sketch__section{align-items:center;display:flex;flex-flow:row wrap;padding:0 7px;margin:6px 0}.esri-sketch__section.esri-sketch__tool-section:first-of-type{display:none}";
1125
+ const mapDrawToolsCss = ":host{display:block}.border{outline:1px solid var(--calcite-ui-border-input)}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir=\"rtl\"] .main-label{display:flex;float:right}.margin-top-1{margin-top:1rem}.border-left{border-left:1px solid rgba(110,110,110,.3)}.border-left[dir=\"rtl\"]{border-right:1px solid rgba(110,110,110,.3)}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:\"Avenir Next\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;line-height:1.3em;background-color:#fff;--esri-widget-padding-v:12px;--esri-widget-padding-h:15px;--esri-widget-padding:var(--esri-widget-padding-v) var(--esri-widget-padding-h)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row wrap;padding:0}.esri-sketch__section{align-items:center;display:flex;flex-flow:row wrap;padding:0 7px;margin:6px 0}";
1126
1126
 
1127
1127
  const MapDrawTools = class {
1128
1128
  constructor(hostRef) {
@@ -1209,6 +1209,17 @@ const MapDrawTools = class {
1209
1209
  componentDidLoad() {
1210
1210
  this._init();
1211
1211
  }
1212
+ /**
1213
+ * StencilJS: Called every time the component is disconnected from the DOM
1214
+ *
1215
+ * @returns void
1216
+ */
1217
+ disconnectedCallback() {
1218
+ // cancel any existing create operations
1219
+ this._sketchWidget.cancel();
1220
+ // clear any current temp sketch
1221
+ this._clearSketch();
1222
+ }
1212
1223
  /**
1213
1224
  * Renders the component.
1214
1225
  */
@@ -1309,6 +1320,7 @@ const MapDrawTools = class {
1309
1320
  this._sketchWidget.viewModel.polylineSymbol = this.polylineSymbol;
1310
1321
  this._sketchWidget.viewModel.pointSymbol = this.pointSymbol;
1311
1322
  this._sketchWidget.viewModel.polygonSymbol = this.polygonSymbol;
1323
+ let forceCreate = false;
1312
1324
  this._sketchWidget.on("create", (evt) => {
1313
1325
  if (evt.state === "complete") {
1314
1326
  this.graphics = [evt.graphic];
@@ -1316,6 +1328,16 @@ const MapDrawTools = class {
1316
1328
  graphics: this.graphics,
1317
1329
  useOIDs: false
1318
1330
  });
1331
+ if (this.drawMode === EDrawMode.REFINE) {
1332
+ // calling create during complete will force the cancel event
1333
+ // https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html#event-create
1334
+ forceCreate = true;
1335
+ this._sketchWidget.viewModel.create(evt.tool);
1336
+ }
1337
+ }
1338
+ if (evt.state === "cancel" && this.drawMode === EDrawMode.REFINE && forceCreate) {
1339
+ forceCreate = !forceCreate;
1340
+ this._sketchWidget.viewModel.create(evt.tool);
1319
1341
  }
1320
1342
  });
1321
1343
  this._sketchWidget.on("update", (evt) => {
@@ -1337,7 +1359,6 @@ const MapDrawTools = class {
1337
1359
  });
1338
1360
  this._sketchWidget.on("delete", () => {
1339
1361
  this.graphics = [];
1340
- this._setDefaultCreateTool();
1341
1362
  this.sketchGraphicsChange.emit({
1342
1363
  graphics: this.graphics,
1343
1364
  useOIDs: false
@@ -1357,7 +1378,6 @@ const MapDrawTools = class {
1357
1378
  useOIDs: false
1358
1379
  });
1359
1380
  });
1360
- this._setDefaultCreateTool();
1361
1381
  }
1362
1382
  /**
1363
1383
  * Clear any stored graphics and remove all graphics from the graphics layer
@@ -1370,16 +1390,6 @@ const MapDrawTools = class {
1370
1390
  this.graphics = [];
1371
1391
  (_a = this._sketchGraphicsLayer) === null || _a === void 0 ? void 0 : _a.removeAll();
1372
1392
  }
1373
- /**
1374
- * Set the default create tool when we have no existing graphics
1375
- *
1376
- * @protected
1377
- */
1378
- _setDefaultCreateTool() {
1379
- if (!this.graphics || this.graphics.length === 0) {
1380
- this._sketchWidget.viewModel.create("rectangle");
1381
- }
1382
- }
1383
1393
  /**
1384
1394
  * Emit the undo event
1385
1395
  *
@@ -13,7 +13,7 @@ import { c as consolidateLabels, r as removeDuplicateLabels } from './downloadUt
13
13
  import './index-4c4a4f3d.js';
14
14
  import './_commonjsHelpers-d5f9d613.js';
15
15
 
16
- const publicNotificationCss = ":host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.action-center{-webkit-box-align:center;-webkit-align-items:center;-ms-grid-row-align:center;align-items:center;align-content:center;justify-content:center}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{-webkit-padding-before:1rem;padding-block-start:1rem;-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-sides-1{-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-end-1-2{-webkit-padding-end:.5rem;padding-inline-end:.5rem}.padding-top-1-2{-webkit-padding-before:.5rem;padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.padding-start-1-2{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-ui-border-2)}.margin-sides-1{-webkit-margin-start:1rem;margin-inline-start:1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.margin-start-1-2{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir=\"rtl\"]{float:left}.float-left{float:left}.float-left[dir=\"rtl\"]{float:right}.margin-top-0{-webkit-margin-before:0 !important;margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-ui-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir=\"rtl\"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-ui-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{-webkit-margin-before:0.125rem;margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}.img-container{-o-object-fit:scale-down;object-fit:scale-down;width:100%;height:100%}";
16
+ const publicNotificationCss = ":host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.action-center{-webkit-box-align:center;-webkit-align-items:center;-ms-grid-row-align:center;align-items:center;align-content:center;justify-content:center}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{-webkit-padding-before:1rem;padding-block-start:1rem;-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-sides-1{-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-end-1-2{-webkit-padding-end:.5rem;padding-inline-end:.5rem}.padding-top-1-2{-webkit-padding-before:.5rem;padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.padding-start-1-2{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-ui-border-2)}.margin-sides-1{-webkit-margin-start:1rem;margin-inline-start:1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.margin-start-1-2{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir=\"rtl\"]{float:left}.float-left{float:left}.float-left[dir=\"rtl\"]{float:right}.margin-top-0{-webkit-margin-before:0 !important;margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-ui-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir=\"rtl\"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-ui-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{-webkit-margin-before:0.125rem;margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}.img-container{width:100%;height:100%}";
17
17
 
18
18
  const PublicNotification = class {
19
19
  constructor(hostRef) {
@@ -402,7 +402,9 @@ const PublicNotification = class {
402
402
  // REFINE will only ever be 1 ISelectionSet
403
403
  Object.keys(cur.refineInfos).forEach(k => {
404
404
  const refineIds = cur.refineInfos[k];
405
- this._updateIds(k, refineIds.layerView, refineIds.addIds, prev);
405
+ if (refineIds.addIds.length > 0) {
406
+ this._updateIds(k, refineIds.layerView, refineIds.addIds, prev);
407
+ }
406
408
  });
407
409
  }
408
410
  }
@@ -3,7 +3,7 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as i,c as t,h as e,H as a,g as s}from"./p-f8be5d5f.js";import{l as n}from"./p-d7ddd3a2.js";import{g as l}from"./p-fc2277fe.js";import{e as h,g as r,i as o,k as c}from"./p-dd3d070d.js";import{g as d}from"./p-d1bcb992.js";import{c as u,d as m,a as b,H as p}from"./p-bf0c6866.js";import{u as f}from"./p-c0d3537c.js";import{i as g}from"./p-89e6a976.js";import{c as v,d as x,g as k}from"./p-24cb0a19.js";import{s as _,a as w,c as y}from"./p-5b5ad89d.js";import{n as z,c as V,d as D}from"./p-0d207a2c.js";import{d as $,c as M}from"./p-56fd542b.js";import{f as H}from"./p-92de1de9.js";import{s as I}from"./p-a29ba58a.js";import"./p-e1a4994d.js";import"./p-062f1fe7.js";import"./p-631b6461.js";import"./p-4ff653eb.js";const j=class{constructor(e){i(this,e),this.bufferComplete=t(this,"bufferComplete",7),this.distanceChanged=t(this,"distanceChanged",7),this.unitChanged=t(this,"unitChanged",7),this.appearance="text",this.distance=0,this.geometries=[],this.max=void 0,this.min=0,this.sliderTicks=10,this.unionResults=!0,this.unit="meters",this.disabled=!1,this._translations=void 0}geometriesWatchHandler(){this._buffer()}disabledWatchHandler(){this._buffer()}async componentWillLoad(){await this._getTranslations(),await this._initModules()}render(){return e(a,null,"text"===this.appearance?this._getTextBoxDisplay():this._getSliderDisplay())}async _initModules(){const[i]=await n(["esri/geometry/geometryEngine"]);this._geometryEngine=i}_getUnits(){const i={feet:this._translations.feet,meters:this._translations.meters,miles:this._translations.miles,kilometers:this._translations.kilometers};return Object.keys(i).map((t=>e("calcite-option",{label:i[t],selected:this.unit===t,value:t})))}_setDistance(i){const t=parseInt(i.target.value,10);this.distance!==t&&t>=this.min&&(this.distanceChanged.emit({oldValue:this.distance,newValue:t}),this.distance=t,this.distance>0?this._buffer():this.bufferComplete.emit(void 0))}_setUnit(i){this.unitChanged.emit({oldValue:this.unit,newValue:i}),this.unit=i,this._buffer()}_buffer(){this.disabled?this.bufferComplete.emit(void 0):(this._bufferTimeout&&clearTimeout(this._bufferTimeout),this._bufferTimeout=setTimeout((()=>{var i;if((null===(i=this.geometries)||void 0===i?void 0:i.length)>0&&this.unit&&this.distance>0){const i=this._geometryEngine.geodesicBuffer(this.geometries,this.distance,this.unit,this.unionResults);this.bufferComplete.emit(i)}}),400))}_getTextBoxDisplay(){return e("div",{class:"c-container"},e("calcite-input",{class:"padding-end-1 w-50",max:this.max&&this.max>0?this.max:void 0,min:this.min,"number-button-type":"vertical",onCalciteInputInput:i=>this._setDistance(i),placeholder:"0",type:"number",value:this.distance?this.distance.toString():void 0}),e("calcite-select",{class:"flex-1 w-50",label:"label",onCalciteSelectChange:()=>this._setUnit(this._unitElement.value),ref:i=>{this._unitElement=i}},this._getUnits()))}_getSliderDisplay(){return e("div",null,e("calcite-slider",{labelHandles:!0,max:this.max&&this.max>0?this.max:void 0,min:this.min,ticks:this.sliderTicks}))}async _getTranslations(){const i=await l(this.el);this._translations=i[0]}_testAccess(i,t){switch(i){case"_setUnit":return this._setUnit(t);case"_setDistance":return this._setDistance(t)}return null}get el(){return s(this)}static get watchers(){return{geometries:["geometriesWatchHandler"],disabled:["disabledWatchHandler"]}}};
6
+ import{r as i,c as t,h as e,H as a,g as s}from"./p-f8be5d5f.js";import{l as n}from"./p-d7ddd3a2.js";import{g as l}from"./p-fc2277fe.js";import{e as h,g as r,i as o,k as c}from"./p-dd3d070d.js";import{g as d}from"./p-d1bcb992.js";import{c as u,d as m,a as b,H as p}from"./p-bf0c6866.js";import{u as f}from"./p-c0d3537c.js";import{i as v}from"./p-89e6a976.js";import{c as g,d as x,g as k}from"./p-24cb0a19.js";import{s as _,a as w,c as y}from"./p-5b5ad89d.js";import{n as z,c as V,d as $}from"./p-0d207a2c.js";import{d as D,c as M}from"./p-56fd542b.js";import{f as H}from"./p-92de1de9.js";import{s as I}from"./p-a29ba58a.js";import"./p-e1a4994d.js";import"./p-062f1fe7.js";import"./p-631b6461.js";import"./p-4ff653eb.js";const j=class{constructor(e){i(this,e),this.bufferComplete=t(this,"bufferComplete",7),this.distanceChanged=t(this,"distanceChanged",7),this.unitChanged=t(this,"unitChanged",7),this.appearance="text",this.distance=0,this.geometries=[],this.max=void 0,this.min=0,this.sliderTicks=10,this.unionResults=!0,this.unit="meters",this.disabled=!1,this._translations=void 0}geometriesWatchHandler(){this._buffer()}disabledWatchHandler(){this._buffer()}async componentWillLoad(){await this._getTranslations(),await this._initModules()}render(){return e(a,null,"text"===this.appearance?this._getTextBoxDisplay():this._getSliderDisplay())}async _initModules(){const[i]=await n(["esri/geometry/geometryEngine"]);this._geometryEngine=i}_getUnits(){const i={feet:this._translations.feet,meters:this._translations.meters,miles:this._translations.miles,kilometers:this._translations.kilometers};return Object.keys(i).map((t=>e("calcite-option",{label:i[t],selected:this.unit===t,value:t})))}_setDistance(i){const t=parseInt(i.target.value,10);this.distance!==t&&t>=this.min&&(this.distanceChanged.emit({oldValue:this.distance,newValue:t}),this.distance=t,this.distance>0?this._buffer():this.bufferComplete.emit(void 0))}_setUnit(i){this.unitChanged.emit({oldValue:this.unit,newValue:i}),this.unit=i,this._buffer()}_buffer(){this.disabled?this.bufferComplete.emit(void 0):(this._bufferTimeout&&clearTimeout(this._bufferTimeout),this._bufferTimeout=setTimeout((()=>{var i;if((null===(i=this.geometries)||void 0===i?void 0:i.length)>0&&this.unit&&this.distance>0){const i=this._geometryEngine.geodesicBuffer(this.geometries,this.distance,this.unit,this.unionResults);this.bufferComplete.emit(i)}}),400))}_getTextBoxDisplay(){return e("div",{class:"c-container"},e("calcite-input",{class:"padding-end-1 w-50",max:this.max&&this.max>0?this.max:void 0,min:this.min,"number-button-type":"vertical",onCalciteInputInput:i=>this._setDistance(i),placeholder:"0",type:"number",value:this.distance?this.distance.toString():void 0}),e("calcite-select",{class:"flex-1 w-50",label:"label",onCalciteSelectChange:()=>this._setUnit(this._unitElement.value),ref:i=>{this._unitElement=i}},this._getUnits()))}_getSliderDisplay(){return e("div",null,e("calcite-slider",{labelHandles:!0,max:this.max&&this.max>0?this.max:void 0,min:this.min,ticks:this.sliderTicks}))}async _getTranslations(){const i=await l(this.el);this._translations=i[0]}_testAccess(i,t){switch(i){case"_setUnit":return this._setUnit(t);case"_setDistance":return this._setDistance(t)}return null}get el(){return s(this)}static get watchers(){return{geometries:["geometriesWatchHandler"],disabled:["disabledWatchHandler"]}}};
7
7
  /*!
8
8
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
9
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
@@ -15,4 +15,4 @@ var C;j.style=':host{display:block}.c-container{display:inline-flex}.flex-1{flex
15
15
  * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
16
16
  * v1.2.0
17
17
  */
18
- const S="handle__label";function T(i){return Array.isArray(i)}const F=class{constructor(e){i(this,e),this.calciteSliderInput=t(this,"calciteSliderInput",6),this.calciteSliderChange=t(this,"calciteSliderChange",6),this.activeProp="value",this.guid=`calcite-slider-${d()}`,this.dragUpdate=i=>{if(i.preventDefault(),this.dragProp){const t=this.translate(i.clientX||i.pageX);if(T(this.value)&&"minMaxValue"===this.dragProp)if(this.minValueDragRange&&this.maxValueDragRange&&this.minMaxValueRange){const i=t-this.minValueDragRange,e=t+this.maxValueDragRange;e<=this.max&&i>=this.min&&e-i===this.minMaxValueRange&&this.setValue({minValue:this.clamp(i,"minValue"),maxValue:this.clamp(e,"maxValue")})}else this.minValueDragRange=t-this.minValue,this.maxValueDragRange=this.maxValue-t,this.minMaxValueRange=this.maxValue-this.minValue;else this.setValue({[this.dragProp]:this.clamp(t,this.dragProp)})}},this.pointerUpDragEnd=i=>{o(i)&&this.dragEnd(i)},this.dragEnd=i=>{this.removeDragListeners(),this.focusActiveHandle(i.clientX),this.lastDragPropValue!=this[this.dragProp]&&this.emitChange(),this.dragProp=null,this.lastDragPropValue=null,this.minValueDragRange=null,this.maxValueDragRange=null,this.minMaxValueRange=null},this.storeTrackRef=i=>{this.trackEl=i},this.determineGroupSeparator=i=>{if("number"==typeof i)return z.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},z.localize(i.toString())},this.disabled=!1,this.form=void 0,this.groupSeparator=!1,this.hasHistogram=!1,this.histogram=void 0,this.histogramStops=void 0,this.labelHandles=!1,this.labelTicks=!1,this.max=100,this.maxLabel=void 0,this.maxValue=void 0,this.min=0,this.minLabel=void 0,this.minValue=void 0,this.mirrored=!1,this.name=void 0,this.numberingSystem=void 0,this.pageStep=void 0,this.precise=!1,this.required=!1,this.snap=!1,this.step=1,this.ticks=void 0,this.value=0,this.scale="m",this.effectiveLocale="",this.minMaxValueRange=null,this.minValueDragRange=null,this.maxValueDragRange=null,this.tickValues=[]}histogramWatcher(i){this.hasHistogram=!!i}valueHandler(){this.setMinMaxFromValue()}minMaxValueHandler(){this.setValueFromMinMax()}connectedCallback(){V(this),this.setMinMaxFromValue(),this.setValueFromMinMax(),v(this),u(this)}disconnectedCallback(){x(this),m(this),D(this),this.removeDragListeners()}componentWillLoad(){_(this),this.tickValues=this.generateTickValues(),T(this.value)||(this.value=this.clamp(this.value)),b(this,this.value),this.snap&&!T(this.value)&&(this.value=this.getClosestStep(this.value)),this.histogram&&(this.hasHistogram=!0)}componentDidLoad(){w(this)}componentDidRender(){this.labelHandles&&(this.adjustHostObscuredHandleLabel("value"),T(this.value)&&(this.adjustHostObscuredHandleLabel("minValue"),this.precise&&!this.hasHistogram||this.hyphenateCollidingRangeHandleLabels())),this.hideObscuredBoundingTickLabels(),f(this)}render(){const i=this.el.id||this.guid,t=T(this.value)?"maxValue":"value",s=T(this.value)?this.maxValue:this.value,n=this.determineGroupSeparator(s),l=this.determineGroupSeparator(this.minValue),h=this.minValue||this.min,r=this.shouldUseMinValue(),o=100*this.getUnitInterval(r?this.minValue:h),c=100*this.getUnitInterval(s),d=this.shouldMirror(),u=`${d?100-o:o}%`,m=`${d?c:100-c}%`,b=T(this.value),f=`${S} handle__label--minValue`,g=`${S} handle__label--value`,v=e("div",{"aria-disabled":this.disabled,"aria-label":b?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":s,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===t},onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=t,onPointerDown:i=>this.pointerDownDragStart(i,t),role:"slider",style:{right:m},tabIndex:0,ref:i=>this.maxHandle=i},e("div",{class:"handle"})),x=e("div",{"aria-disabled":this.disabled,"aria-label":b?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":s,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===t},onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=t,onPointerDown:i=>this.pointerDownDragStart(i,t),role:"slider",style:{right:m},tabIndex:0,ref:i=>this.maxHandle=i},e("span",{"aria-hidden":"true",class:g},n),e("span",{"aria-hidden":"true",class:`${g} static`},n),e("span",{"aria-hidden":"true",class:`${g} transformed`},n),e("div",{class:"handle"})),_=e("div",{"aria-disabled":this.disabled,"aria-label":b?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":s,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===t},onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=t,onPointerDown:i=>this.pointerDownDragStart(i,t),role:"slider",style:{right:m},tabIndex:0,ref:i=>this.maxHandle=i},e("div",{class:"handle"}),e("span",{"aria-hidden":"true",class:g},n),e("span",{"aria-hidden":"true",class:`${g} static`},n),e("span",{"aria-hidden":"true",class:`${g} transformed`},n)),w=e("div",{"aria-disabled":this.disabled,"aria-label":b?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":s,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===t,"thumb--precise":!0},onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=t,onPointerDown:i=>this.pointerDownDragStart(i,t),role:"slider",style:{right:m},tabIndex:0,ref:i=>this.maxHandle=i},e("div",{class:"handle"}),e("div",{class:"handle-extension"})),y=e("div",{"aria-disabled":this.disabled,"aria-label":b?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":s,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===t,"thumb--precise":!0},onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=t,onPointerDown:i=>this.pointerDownDragStart(i,t),role:"slider",style:{right:m},tabIndex:0,ref:i=>this.maxHandle=i},e("div",{class:"handle-extension"}),e("div",{class:"handle"})),z=e("div",{"aria-disabled":this.disabled,"aria-label":b?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":s,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===t,"thumb--precise":!0},onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=t,onPointerDown:i=>this.pointerDownDragStart(i,t),role:"slider",style:{right:m},tabIndex:0,ref:i=>this.maxHandle=i},e("span",{"aria-hidden":"true",class:g},n),e("span",{"aria-hidden":"true",class:`${g} static`},n),e("span",{"aria-hidden":"true",class:`${g} transformed`},n),e("div",{class:"handle"}),e("div",{class:"handle-extension"})),V=e("div",{"aria-disabled":this.disabled,"aria-label":b?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":s,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===t,"thumb--precise":!0},onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=t,onPointerDown:i=>this.pointerDownDragStart(i,t),role:"slider",style:{right:m},tabIndex:0,ref:i=>this.maxHandle=i},e("div",{class:"handle-extension"}),e("div",{class:"handle"}),e("span",{"aria-hidden":"true",class:g},n),e("span",{"aria-hidden":"true",class:`${g} static`},n),e("span",{"aria-hidden":"true",class:`${g} transformed`},n)),D=e("div",{"aria-disabled":this.disabled,"aria-label":this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.minValue,class:{thumb:!0,"thumb--minValue":!0,"thumb--active":"minValue"===this.dragProp},onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp="minValue",onPointerDown:i=>this.pointerDownDragStart(i,"minValue"),role:"slider",style:{left:u},tabIndex:0,ref:i=>this.minHandle=i},e("div",{class:"handle"})),$=e("div",{"aria-disabled":this.disabled,"aria-label":this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.minValue,class:{thumb:!0,"thumb--minValue":!0,"thumb--active":"minValue"===this.dragProp},onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp="minValue",onPointerDown:i=>this.pointerDownDragStart(i,"minValue"),role:"slider",style:{left:u},tabIndex:0,ref:i=>this.minHandle=i},e("span",{"aria-hidden":"true",class:f},l),e("span",{"aria-hidden":"true",class:`${f} static`},l),e("span",{"aria-hidden":"true",class:`${f} transformed`},l),e("div",{class:"handle"})),M=e("div",{"aria-disabled":this.disabled,"aria-label":this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.minValue,class:{thumb:!0,"thumb--minValue":!0,"thumb--active":"minValue"===this.dragProp},onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp="minValue",onPointerDown:i=>this.pointerDownDragStart(i,"minValue"),role:"slider",style:{left:u},tabIndex:0,ref:i=>this.minHandle=i},e("div",{class:"handle"}),e("span",{"aria-hidden":"true",class:f},l),e("span",{"aria-hidden":"true",class:`${f} static`},l),e("span",{"aria-hidden":"true",class:`${f} transformed`},l)),H=e("div",{"aria-disabled":this.disabled,"aria-label":this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.minValue,class:{thumb:!0,"thumb--minValue":!0,"thumb--active":"minValue"===this.dragProp,"thumb--precise":!0},onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp="minValue",onPointerDown:i=>this.pointerDownDragStart(i,"minValue"),role:"slider",style:{left:u},tabIndex:0,ref:i=>this.minHandle=i},e("div",{class:"handle-extension"}),e("div",{class:"handle"})),I=e("div",{"aria-disabled":this.disabled,"aria-label":this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.minValue,class:{thumb:!0,"thumb--minValue":!0,"thumb--active":"minValue"===this.dragProp,"thumb--precise":!0},onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp="minValue",onPointerDown:i=>this.pointerDownDragStart(i,"minValue"),role:"slider",style:{left:u},tabIndex:0,ref:i=>this.minHandle=i},e("div",{class:"handle-extension"}),e("div",{class:"handle"}),e("span",{"aria-hidden":"true",class:f},l),e("span",{"aria-hidden":"true",class:`${f} static`},l),e("span",{"aria-hidden":"true",class:`${f} transformed`},l));return e(a,{id:i,onTouchStart:this.handleTouchStart},e("div",{"aria-label":k(this),class:{container:!0,"container--range":b,[`scale--${this.scale}`]:!0}},this.renderGraph(),e("div",{class:"track",ref:this.storeTrackRef},e("div",{class:"track__range",onPointerDown:i=>this.pointerDownDragStart(i,"minMaxValue"),style:{left:`${d?100-c:o}%`,right:`${d?o:100-c}%`}}),e("div",{class:"ticks"},this.tickValues.map((i=>{const t=100*this.getUnitInterval(i)+"%";let a=i>=h&&i<=s;return r&&(a=i>=this.minValue&&i<=this.maxValue),e("span",{class:{tick:!0,"tick--active":a},style:{left:d?"":t,right:d?t:""}},this.renderTickLabel(i))})))),e("div",{class:"thumb-container"},!this.precise&&!this.labelHandles&&b&&D,!this.hasHistogram&&!this.precise&&this.labelHandles&&b&&$,this.precise&&!this.labelHandles&&b&&H,this.precise&&this.labelHandles&&b&&I,this.hasHistogram&&!this.precise&&this.labelHandles&&b&&M,!this.precise&&!this.labelHandles&&v,!this.hasHistogram&&!this.precise&&this.labelHandles&&x,!this.hasHistogram&&this.precise&&!this.labelHandles&&w,this.hasHistogram&&this.precise&&!this.labelHandles&&y,!this.hasHistogram&&this.precise&&this.labelHandles&&z,this.hasHistogram&&!this.precise&&this.labelHandles&&_,this.hasHistogram&&this.precise&&this.labelHandles&&V,e(p,{component:this}))))}renderGraph(){return this.histogram?e("calcite-graph",{class:"graph",colorStops:this.histogramStops,data:this.histogram,highlightMax:T(this.value)?this.maxValue:this.value,highlightMin:T(this.value)?this.minValue:this.min,max:this.max,min:this.min}):null}renderTickLabel(i){const t=T(this.value),a=i===this.min,s=i===this.max,n=this.determineGroupSeparator(i),l=e("span",{class:{tick__label:!0,"tick__label--min":a,"tick__label--max":s}},n);return this.labelTicks&&!this.hasHistogram&&!t||this.labelTicks&&!this.hasHistogram&&t&&!this.precise&&!this.labelHandles||this.labelTicks&&!this.hasHistogram&&t&&!this.precise&&this.labelHandles||this.labelTicks&&!this.hasHistogram&&t&&this.precise&&(a||s)||this.labelTicks&&this.hasHistogram&&!this.precise&&!this.labelHandles||this.labelTicks&&this.hasHistogram&&this.precise&&!this.labelHandles&&(a||s)||this.labelTicks&&this.hasHistogram&&!this.precise&&this.labelHandles&&(a||s)||this.labelTicks&&this.hasHistogram&&this.precise&&this.labelHandles&&(a||s)?l:null}keyDownHandler(i){const t=this.shouldMirror(),{activeProp:e,max:a,min:s,pageStep:n,step:l}=this,h=this[e],{key:r}=i;if(g(r))return void i.preventDefault();let o;if("ArrowUp"===r||"ArrowRight"===r?o=h+l*(t&&"ArrowRight"===r?-1:1):"ArrowDown"===r||"ArrowLeft"===r?o=h-l*(t&&"ArrowLeft"===r?-1:1):"PageUp"===r?n&&(o=h+n):"PageDown"===r?n&&(o=h-n):"Home"===r?o=s:"End"===r&&(o=a),isNaN(o))return;i.preventDefault();const c=Number(o.toFixed($(l)));this.setValue({[e]:this.clamp(c,e)})}pointerDownHandler(i){if(!o(i))return;const t=i.clientX||i.pageX,e=this.translate(t);let a="value";T(this.value)&&(a=e>=this.minValue&&e<=this.maxValue&&"minMaxValue"===this.lastDragProp?"minMaxValue":Math.abs(this.maxValue-e)<Math.abs(this.minValue-e)||e>this.maxValue?"maxValue":"minValue"),this.lastDragPropValue=this[a],this.dragStart(a),this.el.shadowRoot.querySelector(".thumb:active")||this.setValue({[a]:this.clamp(e,a)}),this.focusActiveHandle(t)}handleTouchStart(i){i.preventDefault()}async setFocus(){await y(this);const i=this.minHandle?this.minHandle:this.maxHandle;null==i||i.focus()}setValueFromMinMax(){const{minValue:i,maxValue:t}=this;"number"==typeof i&&"number"==typeof t&&(this.value=[i,t])}setMinMaxFromValue(){const{value:i}=this;T(i)&&(this.minValue=i[0],this.maxValue=i[1])}onLabelClick(){this.setFocus()}shouldMirror(){return this.mirrored&&!this.hasHistogram}shouldUseMinValue(){return!!T(this.value)&&(this.hasHistogram&&0===this.maxValue||!this.hasHistogram&&0===this.minValue)}generateTickValues(){const i=[];let t=this.min;for(;this.ticks&&t<this.max+this.ticks;)i.push(Math.min(t,this.max)),t+=this.ticks;return i}pointerDownDragStart(i,t){o(i)&&this.dragStart(t)}dragStart(i){this.dragProp=i,this.lastDragProp=this.dragProp,this.activeProp=i,document.addEventListener("pointermove",this.dragUpdate),document.addEventListener("pointerup",this.pointerUpDragEnd),document.addEventListener("pointercancel",this.dragEnd)}focusActiveHandle(i){switch(this.dragProp){case"minValue":this.minHandle.focus();break;case"maxValue":case"value":this.maxHandle.focus();break;case"minMaxValue":this.getClosestHandle(i).focus()}}emitInput(){this.calciteSliderInput.emit()}emitChange(){this.calciteSliderChange.emit()}removeDragListeners(){document.removeEventListener("pointermove",this.dragUpdate),document.removeEventListener("pointerup",this.pointerUpDragEnd),document.removeEventListener("pointercancel",this.dragEnd)}setValue(i){let t;Object.keys(i).forEach((e=>{const a=i[e];t||(t=this[e]!==a),this[e]=a})),t&&(this.dragProp||this.emitChange(),this.emitInput())}clamp(i,t){return i=M(i,this.min,this.max),"maxValue"===t&&(i=Math.max(i,this.minValue)),"minValue"===t&&(i=Math.min(i,this.maxValue)),i}translate(i){const t=this.max-this.min,{left:e,width:a}=this.trackEl.getBoundingClientRect(),s=(i-e)/a,n=this.shouldMirror(),l=this.clamp(this.min+t*(n?1-s:s));let h=Number(l.toFixed($(this.step)));return this.snap&&this.step&&(h=this.getClosestStep(h)),h}getClosestStep(i){if(i=Number(this.clamp(i).toFixed($(this.step))),this.step){const t=Math.round(i/this.step)*this.step;i=Number(this.clamp(t).toFixed($(this.step)))}return i}getClosestHandle(i){return this.getDistanceX(this.maxHandle,i)>this.getDistanceX(this.minHandle,i)?this.minHandle:this.maxHandle}getDistanceX(i,t){return Math.abs(i.getBoundingClientRect().left-t)}getFontSizeForElement(i){return Number(window.getComputedStyle(i).getPropertyValue("font-size").match(/\d+/)[0])}getUnitInterval(i){return((i=this.clamp(i))-this.min)/(this.max-this.min)}adjustHostObscuredHandleLabel(i){const t=this.el.shadowRoot.querySelector(`.handle__label--${i}`),e=this.el.shadowRoot.querySelector(`.handle__label--${i}.static`),a=this.el.shadowRoot.querySelector(`.handle__label--${i}.transformed`),s=e.getBoundingClientRect(),n=this.getHostOffset(s.left,s.right);t.style.transform=`translateX(${n}px)`,a.style.transform=`translateX(${n}px)`}hyphenateCollidingRangeHandleLabels(){const{shadowRoot:i}=this.el,t=this.shouldMirror(),e=t?"value":"minValue",a=t?"minValue":"value",s=i.querySelector(`.handle__label--${e}`),n=i.querySelector(`.handle__label--${e}.static`),l=i.querySelector(`.handle__label--${e}.transformed`),h=this.getHostOffset(n.getBoundingClientRect().left,n.getBoundingClientRect().right),r=i.querySelector(`.handle__label--${a}`),o=i.querySelector(`.handle__label--${a}.static`),c=i.querySelector(`.handle__label--${a}.transformed`),d=this.getHostOffset(o.getBoundingClientRect().left,o.getBoundingClientRect().right),u=this.getFontSizeForElement(s),m=this.getRangeLabelOverlap(l,c),b=s,p=u/2;if(m>0){if(b.classList.add("hyphen","hyphen--wrap"),0===d&&0===h){let i=m/2-p;i=-1===Math.sign(i)?Math.abs(i):-i;const t=this.getHostOffset(l.getBoundingClientRect().left+i-p,l.getBoundingClientRect().right+i-p);let e=m/2;const a=this.getHostOffset(c.getBoundingClientRect().left+e,c.getBoundingClientRect().right+e);0!==t&&(i+=t,e+=t),0!==a&&(i+=a,e+=a),s.style.transform=`translateX(${i}px)`,l.style.transform=`translateX(${i-p}px)`,r.style.transform=`translateX(${e}px)`,c.style.transform=`translateX(${e}px)`}else if(h>0||d>0)s.style.transform=`translateX(${h+p}px)`,r.style.transform=`translateX(${m+d}px)`,c.style.transform=`translateX(${m+d}px)`;else if(h<0||d<0){let i=Math.abs(h)+m-p;i=-1===Math.sign(i)?Math.abs(i):-i,s.style.transform=`translateX(${i}px)`,l.style.transform=`translateX(${i-p}px)`}}else b.classList.remove("hyphen","hyphen--wrap"),s.style.transform=`translateX(${h}px)`,l.style.transform=`translateX(${h}px)`,r.style.transform=`translateX(${d}px)`,c.style.transform=`translateX(${d}px)`}hideObscuredBoundingTickLabels(){const i=T(this.value);if(!(this.hasHistogram||i||this.labelHandles||this.precise))return;if(!this.hasHistogram&&!i&&this.labelHandles&&!this.precise)return;if(!this.hasHistogram&&!i&&!this.labelHandles&&this.precise)return;if(!this.hasHistogram&&!i&&this.labelHandles&&this.precise)return;if(!this.hasHistogram&&i&&!this.precise)return;if(this.hasHistogram&&!this.precise&&!this.labelHandles)return;const t=this.el.shadowRoot.querySelector(".thumb--minValue"),e=this.el.shadowRoot.querySelector(".thumb--value"),a=this.el.shadowRoot.querySelector(".tick__label--min"),s=this.el.shadowRoot.querySelector(".tick__label--max");!t&&e&&a&&s&&(a.style.opacity=this.isMinTickLabelObscured(a,e)?"0":"1",s.style.opacity=this.isMaxTickLabelObscured(s,e)?"0":"1"),t&&e&&a&&s&&(a.style.opacity=this.isMinTickLabelObscured(a,t)||this.isMinTickLabelObscured(a,e)?"0":"1",s.style.opacity=this.isMaxTickLabelObscured(s,t)||this.isMaxTickLabelObscured(s,e)&&this.hasHistogram?"0":"1")}getHostOffset(i,t){const e=this.el.getBoundingClientRect();return i+7<e.left?e.left-i-7:t-7>e.right?7-(t-e.right):0}getRangeLabelOverlap(i,t){const e=i.getBoundingClientRect(),a=t.getBoundingClientRect(),s=this.getFontSizeForElement(i);return Math.max(e.right+s-a.left,0)}isMinTickLabelObscured(i,t){const e=i.getBoundingClientRect(),a=t.getBoundingClientRect();return c(e,a)}isMaxTickLabelObscured(i,t){const e=i.getBoundingClientRect(),a=t.getBoundingClientRect();return c(e,a)}static get delegatesFocus(){return!0}get el(){return s(this)}static get watchers(){return{histogram:["histogramWatcher"],value:["valueHandler"],minValue:["minMaxValueHandler"],maxValue:["minMaxValueHandler"]}}};F.style='@charset "UTF-8";@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}.scale--s{--calcite-slider-handle-size:0.625rem;--calcite-slider-handle-extension-height:0.4rem;--calcite-slider-container-font-size:var(--calcite-font-size--3)}.scale--s .handle__label,.scale--s .tick__label{line-height:.75rem}.scale--m{--calcite-slider-handle-size:0.875rem;--calcite-slider-handle-extension-height:0.5rem;--calcite-slider-container-font-size:var(--calcite-font-size--2)}.scale--m .handle__label,.scale--m .tick__label{line-height:1rem}.scale--l{--calcite-slider-handle-size:1rem;--calcite-slider-handle-extension-height:0.65rem;--calcite-slider-container-font-size:var(--calcite-font-size--1)}.scale--l .handle__label,.scale--l .tick__label{line-height:1rem}.handle__label,.tick__label{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);font-size:var(--calcite-slider-container-font-size)}:host{display:block}.container{position:relative;display:block;overflow-wrap:normal;word-break:normal;padding-inline:calc(var(--calcite-slider-handle-size) * 0.5);padding-block:calc(var(--calcite-slider-handle-size) * 0.5);margin-block:calc(var(--calcite-slider-handle-size) * 0.5);margin-inline:0;--calcite-slider-full-handle-height:calc(\n var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height)\n );touch-action:none}:host([disabled]) .track__range,:host([disabled]) .tick--active{background-color:var(--calcite-ui-text-3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-0.375rem}.scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-0.5rem}.scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-0.55rem}:host([precise]:not([has-histogram])) .container .thumb--value{--calcite-slider-thumb-y-offset:calc(var(--calcite-slider-full-handle-height) * -1)}.thumb-container{position:relative;max-inline-size:100%}.thumb{--calcite-slider-thumb-x-offset:calc(var(--calcite-slider-handle-size) * 0.5);position:absolute;margin:0px;display:flex;cursor:pointer;flex-direction:column;align-items:center;border-style:none;background-color:transparent;padding:0px;font-family:inherit;outline:2px solid transparent;outline-offset:2px;transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset))}.thumb .handle__label.static,.thumb .handle__label.transformed{position:absolute;inset-block:0px;opacity:0}.thumb .handle__label.hyphen::after{content:"—";display:inline-block;inline-size:1em}.thumb .handle__label.hyphen--wrap{display:flex}.thumb .handle{box-sizing:border-box;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);outline-color:transparent;block-size:var(--calcite-slider-handle-size);inline-size:var(--calcite-slider-handle-size);box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease}.thumb .handle-extension{inline-size:0.125rem;block-size:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-ui-text-3)}.thumb:hover .handle{box-shadow:0 0 0 3px var(--calcite-ui-brand) inset}.thumb:hover .handle-extension{background-color:var(--calcite-ui-brand)}.thumb:focus .handle{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.thumb:focus .handle-extension{background-color:var(--calcite-ui-brand)}.thumb.thumb--minValue{transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset))}.thumb.thumb--precise{--calcite-slider-thumb-y-offset:-0.125rem}:host([label-handles]) .thumb{--calcite-slider-thumb-x-offset:50%}:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-1.4375rem}:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-1.875rem}:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-2rem}:host([has-histogram][label-handles]) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label{-webkit-margin-before:0.5em;margin-block-start:0.5em}:host(:not([has-histogram]):not([precise])) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--value .handle__label{-webkit-margin-after:0.5em;margin-block-end:0.5em}:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value{--calcite-slider-thumb-y-offset:-2.075rem}:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value{--calcite-slider-thumb-y-offset:-2.75rem}:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value{--calcite-slider-thumb-y-offset:-3.0625rem}.thumb:focus .handle,.thumb--active .handle{background-color:var(--calcite-ui-brand);box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16)}.thumb:hover.thumb--precise:after,.thumb:focus.thumb--precise:after,.thumb--active.thumb--precise:after{background-color:var(--calcite-ui-brand)}.track{position:relative;block-size:0.125rem;border-radius:0px;background-color:var(--calcite-ui-border-2);transition:all var(--calcite-internal-animation-timing-medium) ease-in}.track__range{position:absolute;inset-block-start:0px;block-size:0.125rem;background-color:var(--calcite-ui-brand)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range:after{position:absolute;inline-size:100%;content:"";inset-block-start:calc(var(--calcite-slider-full-handle-height) * 0.5 * -1);block-size:calc(var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height))}@media (forced-colors: active){.thumb{outline-width:0;outline-offset:0}.handle{outline:2px solid transparent;outline-offset:2px}.thumb:focus .handle,.thumb .handle-extension,.thumb:hover .handle-extension,.thumb:focus .handle-extension,.thumb:active .handle-extension{background-color:canvasText}.track{background-color:canvasText}.track__range{background-color:highlight}}.tick{position:absolute;block-size:0.25rem;inline-size:0.125rem;border-width:1px;border-style:solid;background-color:var(--calcite-ui-border-input);border-color:var(--calcite-ui-foreground-1);inset-block-start:-2px;pointer-events:none;-webkit-margin-start:calc(-1 * 0.125rem);margin-inline-start:calc(-1 * 0.125rem)}.tick--active{background-color:var(--calcite-ui-brand)}.tick__label{pointer-events:none;-webkit-margin-before:0.875rem;margin-block-start:0.875rem;display:flex;justify-content:center}.tick__label--min{transition:opacity var(--calcite-animation-timing)}.tick__label--max{transition:opacity var(--calcite-internal-animation-timing-fast)}:host([has-histogram][label-handles]) .tick__label--min,:host([has-histogram][label-handles]) .tick__label--max,:host([has-histogram][precise]) .tick__label--min,:host([has-histogram][precise]) .tick__label--max{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.graph{color:var(--calcite-ui-foreground-3);block-size:48px}:host([label-ticks][ticks]) .container{-webkit-padding-after:calc(0.875rem + var(--calcite-slider-container-font-size));padding-block-end:calc(0.875rem + var(--calcite-slider-container-font-size))}:host([has-histogram]):host([precise][label-handles]) .container{-webkit-padding-after:calc(var(--calcite-slider-full-handle-height) + 1em);padding-block-end:calc(var(--calcite-slider-full-handle-height) + 1em)}:host([has-histogram]):host([label-handles]:not([precise])) .container{-webkit-padding-after:calc(var(--calcite-slider-handle-size) * 0.5 + 1em);padding-block-end:calc(var(--calcite-slider-handle-size) * 0.5 + 1em)}:host([has-histogram]):host([precise]:not([label-handles])) .container{-webkit-padding-after:var(--calcite-slider-full-handle-height);padding-block-end:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container{-webkit-padding-before:var(--calcite-slider-full-handle-height);padding-block-start:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range{-webkit-padding-after:var(--calcite-slider-full-handle-height);padding-block-end:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([label-handles]:not([precise])) .container{-webkit-padding-before:calc(var(--calcite-slider-full-handle-height) + 4px);padding-block-start:calc(var(--calcite-slider-full-handle-height) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container{-webkit-padding-before:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px);padding-block-start:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container--range{-webkit-padding-after:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px);padding-block-end:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}';const L=class{constructor(e){i(this,e),this.selectionLoadingChange=t(this,"selectionLoadingChange",7),this.sketchGraphicsChange=t(this,"sketchGraphicsChange",7),this.drawUndo=t(this,"drawUndo",7),this.drawRedo=t(this,"drawRedo",7),this.active=!1,this.drawMode=H.SKETCH,this.editGraphicsEnabled=!0,this.graphics=void 0,this.mapView=void 0,this.pointSymbol=void 0,this.polylineSymbol=void 0,this.polygonSymbol=void 0,this.redoEnabled=!1,this.undoEnabled=!1,this._translations=void 0,this._selectionMode=void 0}graphicsWatchHandler(i,t){i&&i.length>0&&JSON.stringify(i)!==JSON.stringify(t)&&this._sketchGraphicsLayer&&(this._sketchGraphicsLayer.removeAll(),this._sketchGraphicsLayer.addMany(i))}mapViewWatchHandler(i,t){i&&i!==t&&this._init()}async clear(){this._clearSketch()}async updateGraphics(){this._updateGraphics()}async componentWillLoad(){await this._getTranslations(),await this._initModules()}componentDidLoad(){this._init()}render(){const i=this.drawMode===H.SKETCH?"display-none":"esri-widget esri-sketch__panel border-left esri-sketch__section";return e(a,null,e("div",{class:this.drawMode===H.SKETCH?"border":"border esri-widget esri-sketch__panel"},e("div",{ref:i=>{this._sketchElement=i}}),e("div",{class:i},e("calcite-action",{disabled:!this.undoEnabled,icon:"undo",onClick:()=>this._undo(),scale:"s",text:this._translations.undo}),e("calcite-action",{disabled:!this.redoEnabled,icon:"redo",onClick:()=>this._redo(),scale:"s",text:this._translations.redo}))))}async _initModules(){const[i,t,e]=await n(["esri/layers/GraphicsLayer","esri/widgets/Sketch","esri/widgets/Sketch/SketchViewModel"]);this.GraphicsLayer=i,this.Sketch=t,this.SketchViewModel=e}_init(){this.mapView&&this._sketchElement&&(this._initGraphicsLayer(),this._initSketch())}_initGraphicsLayer(){const i=this._translations.sketchLayer,t=this.mapView.map.layers.findIndex((t=>t.title===i));t>-1?this._sketchGraphicsLayer=this.mapView.map.layers.getItemAt(t):(this._sketchGraphicsLayer=new this.GraphicsLayer({title:i,listMode:"hide"}),I.managedLayers.push(i),this.mapView.map.layers.add(this._sketchGraphicsLayer)),this.graphics&&this.graphics.length>0&&this._sketchGraphicsLayer.addMany(this.graphics)}_initSketch(){const i={layer:this._sketchGraphicsLayer,view:this.mapView,defaultCreateOptions:{mode:"hybrid"},defaultUpdateOptions:{preserveAspectRatio:!1,enableScaling:!1,enableRotation:!1,tool:"reshape",toggleToolOnClick:!1}};this._sketchWidget=new this.Sketch(Object.assign(Object.assign({},i),{container:this._sketchElement,creationMode:"single",visibleElements:{duplicateButton:!1,selectionTools:{"lasso-selection":!1,"rectangle-selection":!1},createTools:{circle:!1},undoRedoMenu:!1,settingsMenu:this.drawMode===H.SKETCH}})),this._sketchViewModel=new this.SketchViewModel(Object.assign({},i)),this._sketchWidget.viewModel.polylineSymbol=this.polylineSymbol,this._sketchWidget.viewModel.pointSymbol=this.pointSymbol,this._sketchWidget.viewModel.polygonSymbol=this.polygonSymbol,this._sketchWidget.on("create",(i=>{"complete"===i.state&&(this.graphics=[i.graphic],this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1}))})),this._sketchWidget.on("update",(i=>{var t;if(this.editGraphicsEnabled){const e=null===(t=null==i?void 0:i.toolEventInfo)||void 0===t?void 0:t.type;"reshape-stop"!==e&&"move-stop"!==e||(this.graphics=i.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1}))}else this._sketchWidget.viewModel.cancel(),this._sketchViewModel.cancel()})),this._sketchWidget.on("delete",(()=>{this.graphics=[],this._setDefaultCreateTool(),this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})})),this._sketchWidget.on("undo",(i=>{this.graphics=i.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})})),this._sketchWidget.on("redo",(i=>{this.graphics=i.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})})),this._setDefaultCreateTool()}_clearSketch(){var i;this._sketchWidget.viewModel.cancel(),this.graphics=[],null===(i=this._sketchGraphicsLayer)||void 0===i||i.removeAll()}_setDefaultCreateTool(){this.graphics&&0!==this.graphics.length||this._sketchWidget.viewModel.create("rectangle")}_undo(){this.drawUndo.emit()}_redo(){this.drawRedo.emit()}_updateGraphics(){setTimeout((()=>{1===this.graphics.length&&this._sketchWidget.update(this.graphics,{tool:"reshape",enableRotation:!1,enableScaling:!1,preserveAspectRatio:!1,toggleToolOnClick:!1})}),100)}async _getTranslations(){const i=await l(this.el);this._translations=i[0]}get el(){return s(this)}static get watchers(){return{graphics:["graphicsWatchHandler"],mapView:["mapViewWatchHandler"]}}};L.style=':host{display:block}.border{outline:1px solid var(--calcite-ui-border-input)}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir="rtl"] .main-label{display:flex;float:right}.margin-top-1{margin-top:1rem}.border-left{border-left:1px solid rgba(110,110,110,.3)}.border-left[dir="rtl"]{border-right:1px solid rgba(110,110,110,.3)}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:"Avenir Next","Helvetica Neue",Helvetica,Arial,sans-serif;line-height:1.3em;background-color:#fff;--esri-widget-padding-v:12px;--esri-widget-padding-h:15px;--esri-widget-padding:var(--esri-widget-padding-v) var(--esri-widget-padding-h)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row wrap;padding:0}.esri-sketch__section{align-items:center;display:flex;flex-flow:row wrap;padding:0 7px;margin:6px 0}.esri-sketch__section.esri-sketch__tool-section:first-of-type{display:none}';export{j as buffer_tools,O as calcite_input_message,F as calcite_slider,L as map_draw_tools}
18
+ const S="handle__label";function T(i){return Array.isArray(i)}const F=class{constructor(e){i(this,e),this.calciteSliderInput=t(this,"calciteSliderInput",6),this.calciteSliderChange=t(this,"calciteSliderChange",6),this.activeProp="value",this.guid=`calcite-slider-${d()}`,this.dragUpdate=i=>{if(i.preventDefault(),this.dragProp){const t=this.translate(i.clientX||i.pageX);if(T(this.value)&&"minMaxValue"===this.dragProp)if(this.minValueDragRange&&this.maxValueDragRange&&this.minMaxValueRange){const i=t-this.minValueDragRange,e=t+this.maxValueDragRange;e<=this.max&&i>=this.min&&e-i===this.minMaxValueRange&&this.setValue({minValue:this.clamp(i,"minValue"),maxValue:this.clamp(e,"maxValue")})}else this.minValueDragRange=t-this.minValue,this.maxValueDragRange=this.maxValue-t,this.minMaxValueRange=this.maxValue-this.minValue;else this.setValue({[this.dragProp]:this.clamp(t,this.dragProp)})}},this.pointerUpDragEnd=i=>{o(i)&&this.dragEnd(i)},this.dragEnd=i=>{this.removeDragListeners(),this.focusActiveHandle(i.clientX),this.lastDragPropValue!=this[this.dragProp]&&this.emitChange(),this.dragProp=null,this.lastDragPropValue=null,this.minValueDragRange=null,this.maxValueDragRange=null,this.minMaxValueRange=null},this.storeTrackRef=i=>{this.trackEl=i},this.determineGroupSeparator=i=>{if("number"==typeof i)return z.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},z.localize(i.toString())},this.disabled=!1,this.form=void 0,this.groupSeparator=!1,this.hasHistogram=!1,this.histogram=void 0,this.histogramStops=void 0,this.labelHandles=!1,this.labelTicks=!1,this.max=100,this.maxLabel=void 0,this.maxValue=void 0,this.min=0,this.minLabel=void 0,this.minValue=void 0,this.mirrored=!1,this.name=void 0,this.numberingSystem=void 0,this.pageStep=void 0,this.precise=!1,this.required=!1,this.snap=!1,this.step=1,this.ticks=void 0,this.value=0,this.scale="m",this.effectiveLocale="",this.minMaxValueRange=null,this.minValueDragRange=null,this.maxValueDragRange=null,this.tickValues=[]}histogramWatcher(i){this.hasHistogram=!!i}valueHandler(){this.setMinMaxFromValue()}minMaxValueHandler(){this.setValueFromMinMax()}connectedCallback(){V(this),this.setMinMaxFromValue(),this.setValueFromMinMax(),g(this),u(this)}disconnectedCallback(){x(this),m(this),$(this),this.removeDragListeners()}componentWillLoad(){_(this),this.tickValues=this.generateTickValues(),T(this.value)||(this.value=this.clamp(this.value)),b(this,this.value),this.snap&&!T(this.value)&&(this.value=this.getClosestStep(this.value)),this.histogram&&(this.hasHistogram=!0)}componentDidLoad(){w(this)}componentDidRender(){this.labelHandles&&(this.adjustHostObscuredHandleLabel("value"),T(this.value)&&(this.adjustHostObscuredHandleLabel("minValue"),this.precise&&!this.hasHistogram||this.hyphenateCollidingRangeHandleLabels())),this.hideObscuredBoundingTickLabels(),f(this)}render(){const i=this.el.id||this.guid,t=T(this.value)?"maxValue":"value",s=T(this.value)?this.maxValue:this.value,n=this.determineGroupSeparator(s),l=this.determineGroupSeparator(this.minValue),h=this.minValue||this.min,r=this.shouldUseMinValue(),o=100*this.getUnitInterval(r?this.minValue:h),c=100*this.getUnitInterval(s),d=this.shouldMirror(),u=`${d?100-o:o}%`,m=`${d?c:100-c}%`,b=T(this.value),f=`${S} handle__label--minValue`,v=`${S} handle__label--value`,g=e("div",{"aria-disabled":this.disabled,"aria-label":b?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":s,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===t},onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=t,onPointerDown:i=>this.pointerDownDragStart(i,t),role:"slider",style:{right:m},tabIndex:0,ref:i=>this.maxHandle=i},e("div",{class:"handle"})),x=e("div",{"aria-disabled":this.disabled,"aria-label":b?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":s,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===t},onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=t,onPointerDown:i=>this.pointerDownDragStart(i,t),role:"slider",style:{right:m},tabIndex:0,ref:i=>this.maxHandle=i},e("span",{"aria-hidden":"true",class:v},n),e("span",{"aria-hidden":"true",class:`${v} static`},n),e("span",{"aria-hidden":"true",class:`${v} transformed`},n),e("div",{class:"handle"})),_=e("div",{"aria-disabled":this.disabled,"aria-label":b?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":s,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===t},onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=t,onPointerDown:i=>this.pointerDownDragStart(i,t),role:"slider",style:{right:m},tabIndex:0,ref:i=>this.maxHandle=i},e("div",{class:"handle"}),e("span",{"aria-hidden":"true",class:v},n),e("span",{"aria-hidden":"true",class:`${v} static`},n),e("span",{"aria-hidden":"true",class:`${v} transformed`},n)),w=e("div",{"aria-disabled":this.disabled,"aria-label":b?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":s,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===t,"thumb--precise":!0},onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=t,onPointerDown:i=>this.pointerDownDragStart(i,t),role:"slider",style:{right:m},tabIndex:0,ref:i=>this.maxHandle=i},e("div",{class:"handle"}),e("div",{class:"handle-extension"})),y=e("div",{"aria-disabled":this.disabled,"aria-label":b?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":s,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===t,"thumb--precise":!0},onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=t,onPointerDown:i=>this.pointerDownDragStart(i,t),role:"slider",style:{right:m},tabIndex:0,ref:i=>this.maxHandle=i},e("div",{class:"handle-extension"}),e("div",{class:"handle"})),z=e("div",{"aria-disabled":this.disabled,"aria-label":b?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":s,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===t,"thumb--precise":!0},onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=t,onPointerDown:i=>this.pointerDownDragStart(i,t),role:"slider",style:{right:m},tabIndex:0,ref:i=>this.maxHandle=i},e("span",{"aria-hidden":"true",class:v},n),e("span",{"aria-hidden":"true",class:`${v} static`},n),e("span",{"aria-hidden":"true",class:`${v} transformed`},n),e("div",{class:"handle"}),e("div",{class:"handle-extension"})),V=e("div",{"aria-disabled":this.disabled,"aria-label":b?this.maxLabel:this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":s,class:{thumb:!0,"thumb--value":!0,"thumb--active":"minMaxValue"!==this.lastDragProp&&this.dragProp===t,"thumb--precise":!0},onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp=t,onPointerDown:i=>this.pointerDownDragStart(i,t),role:"slider",style:{right:m},tabIndex:0,ref:i=>this.maxHandle=i},e("div",{class:"handle-extension"}),e("div",{class:"handle"}),e("span",{"aria-hidden":"true",class:v},n),e("span",{"aria-hidden":"true",class:`${v} static`},n),e("span",{"aria-hidden":"true",class:`${v} transformed`},n)),$=e("div",{"aria-disabled":this.disabled,"aria-label":this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.minValue,class:{thumb:!0,"thumb--minValue":!0,"thumb--active":"minValue"===this.dragProp},onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp="minValue",onPointerDown:i=>this.pointerDownDragStart(i,"minValue"),role:"slider",style:{left:u},tabIndex:0,ref:i=>this.minHandle=i},e("div",{class:"handle"})),D=e("div",{"aria-disabled":this.disabled,"aria-label":this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.minValue,class:{thumb:!0,"thumb--minValue":!0,"thumb--active":"minValue"===this.dragProp},onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp="minValue",onPointerDown:i=>this.pointerDownDragStart(i,"minValue"),role:"slider",style:{left:u},tabIndex:0,ref:i=>this.minHandle=i},e("span",{"aria-hidden":"true",class:f},l),e("span",{"aria-hidden":"true",class:`${f} static`},l),e("span",{"aria-hidden":"true",class:`${f} transformed`},l),e("div",{class:"handle"})),M=e("div",{"aria-disabled":this.disabled,"aria-label":this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.minValue,class:{thumb:!0,"thumb--minValue":!0,"thumb--active":"minValue"===this.dragProp},onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp="minValue",onPointerDown:i=>this.pointerDownDragStart(i,"minValue"),role:"slider",style:{left:u},tabIndex:0,ref:i=>this.minHandle=i},e("div",{class:"handle"}),e("span",{"aria-hidden":"true",class:f},l),e("span",{"aria-hidden":"true",class:`${f} static`},l),e("span",{"aria-hidden":"true",class:`${f} transformed`},l)),H=e("div",{"aria-disabled":this.disabled,"aria-label":this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.minValue,class:{thumb:!0,"thumb--minValue":!0,"thumb--active":"minValue"===this.dragProp,"thumb--precise":!0},onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp="minValue",onPointerDown:i=>this.pointerDownDragStart(i,"minValue"),role:"slider",style:{left:u},tabIndex:0,ref:i=>this.minHandle=i},e("div",{class:"handle-extension"}),e("div",{class:"handle"})),I=e("div",{"aria-disabled":this.disabled,"aria-label":this.minLabel,"aria-orientation":"horizontal","aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.minValue,class:{thumb:!0,"thumb--minValue":!0,"thumb--active":"minValue"===this.dragProp,"thumb--precise":!0},onBlur:()=>this.activeProp=null,onFocus:()=>this.activeProp="minValue",onPointerDown:i=>this.pointerDownDragStart(i,"minValue"),role:"slider",style:{left:u},tabIndex:0,ref:i=>this.minHandle=i},e("div",{class:"handle-extension"}),e("div",{class:"handle"}),e("span",{"aria-hidden":"true",class:f},l),e("span",{"aria-hidden":"true",class:`${f} static`},l),e("span",{"aria-hidden":"true",class:`${f} transformed`},l));return e(a,{id:i,onTouchStart:this.handleTouchStart},e("div",{"aria-label":k(this),class:{container:!0,"container--range":b,[`scale--${this.scale}`]:!0}},this.renderGraph(),e("div",{class:"track",ref:this.storeTrackRef},e("div",{class:"track__range",onPointerDown:i=>this.pointerDownDragStart(i,"minMaxValue"),style:{left:`${d?100-c:o}%`,right:`${d?o:100-c}%`}}),e("div",{class:"ticks"},this.tickValues.map((i=>{const t=100*this.getUnitInterval(i)+"%";let a=i>=h&&i<=s;return r&&(a=i>=this.minValue&&i<=this.maxValue),e("span",{class:{tick:!0,"tick--active":a},style:{left:d?"":t,right:d?t:""}},this.renderTickLabel(i))})))),e("div",{class:"thumb-container"},!this.precise&&!this.labelHandles&&b&&$,!this.hasHistogram&&!this.precise&&this.labelHandles&&b&&D,this.precise&&!this.labelHandles&&b&&H,this.precise&&this.labelHandles&&b&&I,this.hasHistogram&&!this.precise&&this.labelHandles&&b&&M,!this.precise&&!this.labelHandles&&g,!this.hasHistogram&&!this.precise&&this.labelHandles&&x,!this.hasHistogram&&this.precise&&!this.labelHandles&&w,this.hasHistogram&&this.precise&&!this.labelHandles&&y,!this.hasHistogram&&this.precise&&this.labelHandles&&z,this.hasHistogram&&!this.precise&&this.labelHandles&&_,this.hasHistogram&&this.precise&&this.labelHandles&&V,e(p,{component:this}))))}renderGraph(){return this.histogram?e("calcite-graph",{class:"graph",colorStops:this.histogramStops,data:this.histogram,highlightMax:T(this.value)?this.maxValue:this.value,highlightMin:T(this.value)?this.minValue:this.min,max:this.max,min:this.min}):null}renderTickLabel(i){const t=T(this.value),a=i===this.min,s=i===this.max,n=this.determineGroupSeparator(i),l=e("span",{class:{tick__label:!0,"tick__label--min":a,"tick__label--max":s}},n);return this.labelTicks&&!this.hasHistogram&&!t||this.labelTicks&&!this.hasHistogram&&t&&!this.precise&&!this.labelHandles||this.labelTicks&&!this.hasHistogram&&t&&!this.precise&&this.labelHandles||this.labelTicks&&!this.hasHistogram&&t&&this.precise&&(a||s)||this.labelTicks&&this.hasHistogram&&!this.precise&&!this.labelHandles||this.labelTicks&&this.hasHistogram&&this.precise&&!this.labelHandles&&(a||s)||this.labelTicks&&this.hasHistogram&&!this.precise&&this.labelHandles&&(a||s)||this.labelTicks&&this.hasHistogram&&this.precise&&this.labelHandles&&(a||s)?l:null}keyDownHandler(i){const t=this.shouldMirror(),{activeProp:e,max:a,min:s,pageStep:n,step:l}=this,h=this[e],{key:r}=i;if(v(r))return void i.preventDefault();let o;if("ArrowUp"===r||"ArrowRight"===r?o=h+l*(t&&"ArrowRight"===r?-1:1):"ArrowDown"===r||"ArrowLeft"===r?o=h-l*(t&&"ArrowLeft"===r?-1:1):"PageUp"===r?n&&(o=h+n):"PageDown"===r?n&&(o=h-n):"Home"===r?o=s:"End"===r&&(o=a),isNaN(o))return;i.preventDefault();const c=Number(o.toFixed(D(l)));this.setValue({[e]:this.clamp(c,e)})}pointerDownHandler(i){if(!o(i))return;const t=i.clientX||i.pageX,e=this.translate(t);let a="value";T(this.value)&&(a=e>=this.minValue&&e<=this.maxValue&&"minMaxValue"===this.lastDragProp?"minMaxValue":Math.abs(this.maxValue-e)<Math.abs(this.minValue-e)||e>this.maxValue?"maxValue":"minValue"),this.lastDragPropValue=this[a],this.dragStart(a),this.el.shadowRoot.querySelector(".thumb:active")||this.setValue({[a]:this.clamp(e,a)}),this.focusActiveHandle(t)}handleTouchStart(i){i.preventDefault()}async setFocus(){await y(this);const i=this.minHandle?this.minHandle:this.maxHandle;null==i||i.focus()}setValueFromMinMax(){const{minValue:i,maxValue:t}=this;"number"==typeof i&&"number"==typeof t&&(this.value=[i,t])}setMinMaxFromValue(){const{value:i}=this;T(i)&&(this.minValue=i[0],this.maxValue=i[1])}onLabelClick(){this.setFocus()}shouldMirror(){return this.mirrored&&!this.hasHistogram}shouldUseMinValue(){return!!T(this.value)&&(this.hasHistogram&&0===this.maxValue||!this.hasHistogram&&0===this.minValue)}generateTickValues(){const i=[];let t=this.min;for(;this.ticks&&t<this.max+this.ticks;)i.push(Math.min(t,this.max)),t+=this.ticks;return i}pointerDownDragStart(i,t){o(i)&&this.dragStart(t)}dragStart(i){this.dragProp=i,this.lastDragProp=this.dragProp,this.activeProp=i,document.addEventListener("pointermove",this.dragUpdate),document.addEventListener("pointerup",this.pointerUpDragEnd),document.addEventListener("pointercancel",this.dragEnd)}focusActiveHandle(i){switch(this.dragProp){case"minValue":this.minHandle.focus();break;case"maxValue":case"value":this.maxHandle.focus();break;case"minMaxValue":this.getClosestHandle(i).focus()}}emitInput(){this.calciteSliderInput.emit()}emitChange(){this.calciteSliderChange.emit()}removeDragListeners(){document.removeEventListener("pointermove",this.dragUpdate),document.removeEventListener("pointerup",this.pointerUpDragEnd),document.removeEventListener("pointercancel",this.dragEnd)}setValue(i){let t;Object.keys(i).forEach((e=>{const a=i[e];t||(t=this[e]!==a),this[e]=a})),t&&(this.dragProp||this.emitChange(),this.emitInput())}clamp(i,t){return i=M(i,this.min,this.max),"maxValue"===t&&(i=Math.max(i,this.minValue)),"minValue"===t&&(i=Math.min(i,this.maxValue)),i}translate(i){const t=this.max-this.min,{left:e,width:a}=this.trackEl.getBoundingClientRect(),s=(i-e)/a,n=this.shouldMirror(),l=this.clamp(this.min+t*(n?1-s:s));let h=Number(l.toFixed(D(this.step)));return this.snap&&this.step&&(h=this.getClosestStep(h)),h}getClosestStep(i){if(i=Number(this.clamp(i).toFixed(D(this.step))),this.step){const t=Math.round(i/this.step)*this.step;i=Number(this.clamp(t).toFixed(D(this.step)))}return i}getClosestHandle(i){return this.getDistanceX(this.maxHandle,i)>this.getDistanceX(this.minHandle,i)?this.minHandle:this.maxHandle}getDistanceX(i,t){return Math.abs(i.getBoundingClientRect().left-t)}getFontSizeForElement(i){return Number(window.getComputedStyle(i).getPropertyValue("font-size").match(/\d+/)[0])}getUnitInterval(i){return((i=this.clamp(i))-this.min)/(this.max-this.min)}adjustHostObscuredHandleLabel(i){const t=this.el.shadowRoot.querySelector(`.handle__label--${i}`),e=this.el.shadowRoot.querySelector(`.handle__label--${i}.static`),a=this.el.shadowRoot.querySelector(`.handle__label--${i}.transformed`),s=e.getBoundingClientRect(),n=this.getHostOffset(s.left,s.right);t.style.transform=`translateX(${n}px)`,a.style.transform=`translateX(${n}px)`}hyphenateCollidingRangeHandleLabels(){const{shadowRoot:i}=this.el,t=this.shouldMirror(),e=t?"value":"minValue",a=t?"minValue":"value",s=i.querySelector(`.handle__label--${e}`),n=i.querySelector(`.handle__label--${e}.static`),l=i.querySelector(`.handle__label--${e}.transformed`),h=this.getHostOffset(n.getBoundingClientRect().left,n.getBoundingClientRect().right),r=i.querySelector(`.handle__label--${a}`),o=i.querySelector(`.handle__label--${a}.static`),c=i.querySelector(`.handle__label--${a}.transformed`),d=this.getHostOffset(o.getBoundingClientRect().left,o.getBoundingClientRect().right),u=this.getFontSizeForElement(s),m=this.getRangeLabelOverlap(l,c),b=s,p=u/2;if(m>0){if(b.classList.add("hyphen","hyphen--wrap"),0===d&&0===h){let i=m/2-p;i=-1===Math.sign(i)?Math.abs(i):-i;const t=this.getHostOffset(l.getBoundingClientRect().left+i-p,l.getBoundingClientRect().right+i-p);let e=m/2;const a=this.getHostOffset(c.getBoundingClientRect().left+e,c.getBoundingClientRect().right+e);0!==t&&(i+=t,e+=t),0!==a&&(i+=a,e+=a),s.style.transform=`translateX(${i}px)`,l.style.transform=`translateX(${i-p}px)`,r.style.transform=`translateX(${e}px)`,c.style.transform=`translateX(${e}px)`}else if(h>0||d>0)s.style.transform=`translateX(${h+p}px)`,r.style.transform=`translateX(${m+d}px)`,c.style.transform=`translateX(${m+d}px)`;else if(h<0||d<0){let i=Math.abs(h)+m-p;i=-1===Math.sign(i)?Math.abs(i):-i,s.style.transform=`translateX(${i}px)`,l.style.transform=`translateX(${i-p}px)`}}else b.classList.remove("hyphen","hyphen--wrap"),s.style.transform=`translateX(${h}px)`,l.style.transform=`translateX(${h}px)`,r.style.transform=`translateX(${d}px)`,c.style.transform=`translateX(${d}px)`}hideObscuredBoundingTickLabels(){const i=T(this.value);if(!(this.hasHistogram||i||this.labelHandles||this.precise))return;if(!this.hasHistogram&&!i&&this.labelHandles&&!this.precise)return;if(!this.hasHistogram&&!i&&!this.labelHandles&&this.precise)return;if(!this.hasHistogram&&!i&&this.labelHandles&&this.precise)return;if(!this.hasHistogram&&i&&!this.precise)return;if(this.hasHistogram&&!this.precise&&!this.labelHandles)return;const t=this.el.shadowRoot.querySelector(".thumb--minValue"),e=this.el.shadowRoot.querySelector(".thumb--value"),a=this.el.shadowRoot.querySelector(".tick__label--min"),s=this.el.shadowRoot.querySelector(".tick__label--max");!t&&e&&a&&s&&(a.style.opacity=this.isMinTickLabelObscured(a,e)?"0":"1",s.style.opacity=this.isMaxTickLabelObscured(s,e)?"0":"1"),t&&e&&a&&s&&(a.style.opacity=this.isMinTickLabelObscured(a,t)||this.isMinTickLabelObscured(a,e)?"0":"1",s.style.opacity=this.isMaxTickLabelObscured(s,t)||this.isMaxTickLabelObscured(s,e)&&this.hasHistogram?"0":"1")}getHostOffset(i,t){const e=this.el.getBoundingClientRect();return i+7<e.left?e.left-i-7:t-7>e.right?7-(t-e.right):0}getRangeLabelOverlap(i,t){const e=i.getBoundingClientRect(),a=t.getBoundingClientRect(),s=this.getFontSizeForElement(i);return Math.max(e.right+s-a.left,0)}isMinTickLabelObscured(i,t){const e=i.getBoundingClientRect(),a=t.getBoundingClientRect();return c(e,a)}isMaxTickLabelObscured(i,t){const e=i.getBoundingClientRect(),a=t.getBoundingClientRect();return c(e,a)}static get delegatesFocus(){return!0}get el(){return s(this)}static get watchers(){return{histogram:["histogramWatcher"],value:["valueHandler"],minValue:["minMaxValueHandler"],maxValue:["minMaxValueHandler"]}}};F.style='@charset "UTF-8";@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}.scale--s{--calcite-slider-handle-size:0.625rem;--calcite-slider-handle-extension-height:0.4rem;--calcite-slider-container-font-size:var(--calcite-font-size--3)}.scale--s .handle__label,.scale--s .tick__label{line-height:.75rem}.scale--m{--calcite-slider-handle-size:0.875rem;--calcite-slider-handle-extension-height:0.5rem;--calcite-slider-container-font-size:var(--calcite-font-size--2)}.scale--m .handle__label,.scale--m .tick__label{line-height:1rem}.scale--l{--calcite-slider-handle-size:1rem;--calcite-slider-handle-extension-height:0.65rem;--calcite-slider-container-font-size:var(--calcite-font-size--1)}.scale--l .handle__label,.scale--l .tick__label{line-height:1rem}.handle__label,.tick__label{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);font-size:var(--calcite-slider-container-font-size)}:host{display:block}.container{position:relative;display:block;overflow-wrap:normal;word-break:normal;padding-inline:calc(var(--calcite-slider-handle-size) * 0.5);padding-block:calc(var(--calcite-slider-handle-size) * 0.5);margin-block:calc(var(--calcite-slider-handle-size) * 0.5);margin-inline:0;--calcite-slider-full-handle-height:calc(\n var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height)\n );touch-action:none}:host([disabled]) .track__range,:host([disabled]) .tick--active{background-color:var(--calcite-ui-text-3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-0.375rem}.scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-0.5rem}.scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-0.55rem}:host([precise]:not([has-histogram])) .container .thumb--value{--calcite-slider-thumb-y-offset:calc(var(--calcite-slider-full-handle-height) * -1)}.thumb-container{position:relative;max-inline-size:100%}.thumb{--calcite-slider-thumb-x-offset:calc(var(--calcite-slider-handle-size) * 0.5);position:absolute;margin:0px;display:flex;cursor:pointer;flex-direction:column;align-items:center;border-style:none;background-color:transparent;padding:0px;font-family:inherit;outline:2px solid transparent;outline-offset:2px;transform:translate(var(--calcite-slider-thumb-x-offset), var(--calcite-slider-thumb-y-offset))}.thumb .handle__label.static,.thumb .handle__label.transformed{position:absolute;inset-block:0px;opacity:0}.thumb .handle__label.hyphen::after{content:"—";display:inline-block;inline-size:1em}.thumb .handle__label.hyphen--wrap{display:flex}.thumb .handle{box-sizing:border-box;border-radius:9999px;background-color:var(--calcite-ui-foreground-1);outline-color:transparent;block-size:var(--calcite-slider-handle-size);inline-size:var(--calcite-slider-handle-size);box-shadow:0 0 0 2px var(--calcite-ui-text-3) inset;transition:border var(--calcite-internal-animation-timing-medium) ease, background-color var(--calcite-internal-animation-timing-medium) ease, box-shadow var(--calcite-animation-timing) ease}.thumb .handle-extension{inline-size:0.125rem;block-size:var(--calcite-slider-handle-extension-height);background-color:var(--calcite-ui-text-3)}.thumb:hover .handle{box-shadow:0 0 0 3px var(--calcite-ui-brand) inset}.thumb:hover .handle-extension{background-color:var(--calcite-ui-brand)}.thumb:focus .handle{outline:2px solid var(--calcite-ui-brand);outline-offset:2px}.thumb:focus .handle-extension{background-color:var(--calcite-ui-brand)}.thumb.thumb--minValue{transform:translate(calc(var(--calcite-slider-thumb-x-offset) * -1), var(--calcite-slider-thumb-y-offset))}.thumb.thumb--precise{--calcite-slider-thumb-y-offset:-0.125rem}:host([label-handles]) .thumb{--calcite-slider-thumb-x-offset:50%}:host([label-handles]):host(:not([has-histogram])) .scale--s .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-1.4375rem}:host([label-handles]):host(:not([has-histogram])) .scale--m .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-1.875rem}:host([label-handles]):host(:not([has-histogram])) .scale--l .thumb:not(.thumb--precise){--calcite-slider-thumb-y-offset:-2rem}:host([has-histogram][label-handles]) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--minValue.thumb--precise .handle__label{-webkit-margin-before:0.5em;margin-block-start:0.5em}:host(:not([has-histogram]):not([precise])) .handle__label,:host([label-handles]:not([has-histogram])) .thumb--value .handle__label{-webkit-margin-after:0.5em;margin-block-end:0.5em}:host([label-handles][precise]):host(:not([has-histogram])) .scale--s .thumb--value{--calcite-slider-thumb-y-offset:-2.075rem}:host([label-handles][precise]):host(:not([has-histogram])) .scale--m .thumb--value{--calcite-slider-thumb-y-offset:-2.75rem}:host([label-handles][precise]):host(:not([has-histogram])) .scale--l .thumb--value{--calcite-slider-thumb-y-offset:-3.0625rem}.thumb:focus .handle,.thumb--active .handle{background-color:var(--calcite-ui-brand);box-shadow:0 0 8px 0 rgba(0, 0, 0, 0.16)}.thumb:hover.thumb--precise:after,.thumb:focus.thumb--precise:after,.thumb--active.thumb--precise:after{background-color:var(--calcite-ui-brand)}.track{position:relative;block-size:0.125rem;border-radius:0px;background-color:var(--calcite-ui-border-2);transition:all var(--calcite-internal-animation-timing-medium) ease-in}.track__range{position:absolute;inset-block-start:0px;block-size:0.125rem;background-color:var(--calcite-ui-brand)}.container--range .track__range:hover{cursor:ew-resize}.container--range .track__range:after{position:absolute;inline-size:100%;content:"";inset-block-start:calc(var(--calcite-slider-full-handle-height) * 0.5 * -1);block-size:calc(var(--calcite-slider-handle-size) + var(--calcite-slider-handle-extension-height))}@media (forced-colors: active){.thumb{outline-width:0;outline-offset:0}.handle{outline:2px solid transparent;outline-offset:2px}.thumb:focus .handle,.thumb .handle-extension,.thumb:hover .handle-extension,.thumb:focus .handle-extension,.thumb:active .handle-extension{background-color:canvasText}.track{background-color:canvasText}.track__range{background-color:highlight}}.tick{position:absolute;block-size:0.25rem;inline-size:0.125rem;border-width:1px;border-style:solid;background-color:var(--calcite-ui-border-input);border-color:var(--calcite-ui-foreground-1);inset-block-start:-2px;pointer-events:none;-webkit-margin-start:calc(-1 * 0.125rem);margin-inline-start:calc(-1 * 0.125rem)}.tick--active{background-color:var(--calcite-ui-brand)}.tick__label{pointer-events:none;-webkit-margin-before:0.875rem;margin-block-start:0.875rem;display:flex;justify-content:center}.tick__label--min{transition:opacity var(--calcite-animation-timing)}.tick__label--max{transition:opacity var(--calcite-internal-animation-timing-fast)}:host([has-histogram][label-handles]) .tick__label--min,:host([has-histogram][label-handles]) .tick__label--max,:host([has-histogram][precise]) .tick__label--min,:host([has-histogram][precise]) .tick__label--max{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-3)}.graph{color:var(--calcite-ui-foreground-3);block-size:48px}:host([label-ticks][ticks]) .container{-webkit-padding-after:calc(0.875rem + var(--calcite-slider-container-font-size));padding-block-end:calc(0.875rem + var(--calcite-slider-container-font-size))}:host([has-histogram]):host([precise][label-handles]) .container{-webkit-padding-after:calc(var(--calcite-slider-full-handle-height) + 1em);padding-block-end:calc(var(--calcite-slider-full-handle-height) + 1em)}:host([has-histogram]):host([label-handles]:not([precise])) .container{-webkit-padding-after:calc(var(--calcite-slider-handle-size) * 0.5 + 1em);padding-block-end:calc(var(--calcite-slider-handle-size) * 0.5 + 1em)}:host([has-histogram]):host([precise]:not([label-handles])) .container{-webkit-padding-after:var(--calcite-slider-full-handle-height);padding-block-end:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container{-webkit-padding-before:var(--calcite-slider-full-handle-height);padding-block-start:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([precise]:not([label-handles])) .container--range{-webkit-padding-after:var(--calcite-slider-full-handle-height);padding-block-end:var(--calcite-slider-full-handle-height)}:host(:not([has-histogram])):host([label-handles]:not([precise])) .container{-webkit-padding-before:calc(var(--calcite-slider-full-handle-height) + 4px);padding-block-start:calc(var(--calcite-slider-full-handle-height) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container{-webkit-padding-before:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px);padding-block-start:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}:host(:not([has-histogram])):host([label-handles][precise]) .container--range{-webkit-padding-after:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px);padding-block-end:calc(var(--calcite-slider-full-handle-height) + var(--calcite-slider-container-font-size) + 4px)}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}';const L=class{constructor(e){i(this,e),this.selectionLoadingChange=t(this,"selectionLoadingChange",7),this.sketchGraphicsChange=t(this,"sketchGraphicsChange",7),this.drawUndo=t(this,"drawUndo",7),this.drawRedo=t(this,"drawRedo",7),this.active=!1,this.drawMode=H.SKETCH,this.editGraphicsEnabled=!0,this.graphics=void 0,this.mapView=void 0,this.pointSymbol=void 0,this.polylineSymbol=void 0,this.polygonSymbol=void 0,this.redoEnabled=!1,this.undoEnabled=!1,this._translations=void 0,this._selectionMode=void 0}graphicsWatchHandler(i,t){i&&i.length>0&&JSON.stringify(i)!==JSON.stringify(t)&&this._sketchGraphicsLayer&&(this._sketchGraphicsLayer.removeAll(),this._sketchGraphicsLayer.addMany(i))}mapViewWatchHandler(i,t){i&&i!==t&&this._init()}async clear(){this._clearSketch()}async updateGraphics(){this._updateGraphics()}async componentWillLoad(){await this._getTranslations(),await this._initModules()}componentDidLoad(){this._init()}disconnectedCallback(){this._sketchWidget.cancel(),this._clearSketch()}render(){const i=this.drawMode===H.SKETCH?"display-none":"esri-widget esri-sketch__panel border-left esri-sketch__section";return e(a,null,e("div",{class:this.drawMode===H.SKETCH?"border":"border esri-widget esri-sketch__panel"},e("div",{ref:i=>{this._sketchElement=i}}),e("div",{class:i},e("calcite-action",{disabled:!this.undoEnabled,icon:"undo",onClick:()=>this._undo(),scale:"s",text:this._translations.undo}),e("calcite-action",{disabled:!this.redoEnabled,icon:"redo",onClick:()=>this._redo(),scale:"s",text:this._translations.redo}))))}async _initModules(){const[i,t,e]=await n(["esri/layers/GraphicsLayer","esri/widgets/Sketch","esri/widgets/Sketch/SketchViewModel"]);this.GraphicsLayer=i,this.Sketch=t,this.SketchViewModel=e}_init(){this.mapView&&this._sketchElement&&(this._initGraphicsLayer(),this._initSketch())}_initGraphicsLayer(){const i=this._translations.sketchLayer,t=this.mapView.map.layers.findIndex((t=>t.title===i));t>-1?this._sketchGraphicsLayer=this.mapView.map.layers.getItemAt(t):(this._sketchGraphicsLayer=new this.GraphicsLayer({title:i,listMode:"hide"}),I.managedLayers.push(i),this.mapView.map.layers.add(this._sketchGraphicsLayer)),this.graphics&&this.graphics.length>0&&this._sketchGraphicsLayer.addMany(this.graphics)}_initSketch(){const i={layer:this._sketchGraphicsLayer,view:this.mapView,defaultCreateOptions:{mode:"hybrid"},defaultUpdateOptions:{preserveAspectRatio:!1,enableScaling:!1,enableRotation:!1,tool:"reshape",toggleToolOnClick:!1}};this._sketchWidget=new this.Sketch(Object.assign(Object.assign({},i),{container:this._sketchElement,creationMode:"single",visibleElements:{duplicateButton:!1,selectionTools:{"lasso-selection":!1,"rectangle-selection":!1},createTools:{circle:!1},undoRedoMenu:!1,settingsMenu:this.drawMode===H.SKETCH}})),this._sketchViewModel=new this.SketchViewModel(Object.assign({},i)),this._sketchWidget.viewModel.polylineSymbol=this.polylineSymbol,this._sketchWidget.viewModel.pointSymbol=this.pointSymbol,this._sketchWidget.viewModel.polygonSymbol=this.polygonSymbol;let t=!1;this._sketchWidget.on("create",(i=>{"complete"===i.state&&(this.graphics=[i.graphic],this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1}),this.drawMode===H.REFINE&&(t=!0,this._sketchWidget.viewModel.create(i.tool))),"cancel"===i.state&&this.drawMode===H.REFINE&&t&&(t=!t,this._sketchWidget.viewModel.create(i.tool))})),this._sketchWidget.on("update",(i=>{var t;if(this.editGraphicsEnabled){const e=null===(t=null==i?void 0:i.toolEventInfo)||void 0===t?void 0:t.type;"reshape-stop"!==e&&"move-stop"!==e||(this.graphics=i.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1}))}else this._sketchWidget.viewModel.cancel(),this._sketchViewModel.cancel()})),this._sketchWidget.on("delete",(()=>{this.graphics=[],this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})})),this._sketchWidget.on("undo",(i=>{this.graphics=i.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})})),this._sketchWidget.on("redo",(i=>{this.graphics=i.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})}))}_clearSketch(){var i;this._sketchWidget.viewModel.cancel(),this.graphics=[],null===(i=this._sketchGraphicsLayer)||void 0===i||i.removeAll()}_undo(){this.drawUndo.emit()}_redo(){this.drawRedo.emit()}_updateGraphics(){setTimeout((()=>{1===this.graphics.length&&this._sketchWidget.update(this.graphics,{tool:"reshape",enableRotation:!1,enableScaling:!1,preserveAspectRatio:!1,toggleToolOnClick:!1})}),100)}async _getTranslations(){const i=await l(this.el);this._translations=i[0]}get el(){return s(this)}static get watchers(){return{graphics:["graphicsWatchHandler"],mapView:["mapViewWatchHandler"]}}};L.style=':host{display:block}.border{outline:1px solid var(--calcite-ui-border-input)}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir="rtl"] .main-label{display:flex;float:right}.margin-top-1{margin-top:1rem}.border-left{border-left:1px solid rgba(110,110,110,.3)}.border-left[dir="rtl"]{border-right:1px solid rgba(110,110,110,.3)}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:"Avenir Next","Helvetica Neue",Helvetica,Arial,sans-serif;line-height:1.3em;background-color:#fff;--esri-widget-padding-v:12px;--esri-widget-padding-h:15px;--esri-widget-padding:var(--esri-widget-padding-v) var(--esri-widget-padding-h)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row wrap;padding:0}.esri-sketch__section{align-items:center;display:flex;flex-flow:row wrap;padding:0 7px;margin:6px 0}';export{j as buffer_tools,O as calcite_input_message,F as calcite_slider,L as map_draw_tools}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as i,c as t,a as s,h as e,H as a,g as l}from"./p-f8be5d5f.js";import{a as n,b as o,c as d}from"./p-92de1de9.js";import{l as c}from"./p-d7ddd3a2.js";import{g as r,h}from"./p-4b426bab.js";import{s as p}from"./p-a29ba58a.js";import{g}from"./p-fc2277fe.js";import{c as b,r as m}from"./p-345f517c.js";import"./p-4ff653eb.js";import"./p-e1a4994d.js";const u=class{constructor(s){i(this,s),this.searchConfigurationChange=t(this,"searchConfigurationChange",7),this._onboardingImageUrl="",this._numSelected=0,this.addresseeLayerIds=[],this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.featureEffect=void 0,this.featureHighlightEnabled=void 0,this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionLayerIds=[],this.showRefineSelection=!1,this.showSearchSettings=!0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._addMap=!1,this._addTitle=!1,this._downloadActive=!0,this._exportType=n.PDF,this._numDuplicates=0,this._pageType=o.LIST,this._saveEnabled=!1,this._selectionSets=[],this._translations=void 0}async mapViewWatchHandler(i){(null==i?void 0:i.popup)&&(this._popupsEnabled=null==i?void 0:i.popup.autoOpenEnabled)}async watchSearchConfigurationHandler(i,t){const s=JSON.stringify(i);s!==JSON.stringify(t)&&(this._searchConfiguration=JSON.parse(s),this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}async sketchLineSymbolWatchHandler(i,t){i&&JSON.stringify(i)!==JSON.stringify(t)&&this._setLineSymbol(i)}async sketchPointSymbolWatchHandler(i,t){i&&JSON.stringify(i)!==JSON.stringify(t)&&this._setPointSymbol(i)}async sketchPolygonSymbolWatchHandler(i,t){i&&JSON.stringify(i)!==JSON.stringify(t)&&this._setPolygonSymbol(i)}async pageTypeWatchHandler(i,t){var s;if(this._checkPopups(),(null===(s=this.mapView)||void 0===s?void 0:s.popup)&&(this.mapView.popup.autoOpenEnabled=i===o.LIST&&this._popupsEnabled),i===o.EXPORT&&(this._numDuplicates=await this._getNumDuplicates()),this._clearHighlight(),t!==o.SELECT&&t!==o.REFINE||await this._clearSelection(),i!==o.SELECT)return this._highlightFeatures()}selectionSetsChanged(i){this._selectionSets=[...i.detail]}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initSymbols(),this._onboardingImageUrl=s("../assets/data/images/onboarding.png")}render(){return e(a,null,e("calcite-shell",null,e("calcite-action-bar",{class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:"header"},this._getActionGroup("list-check",o.LIST,this._translations.myLists),this.showRefineSelection?this._getActionGroup("test-data",o.REFINE,this._translations.refineSelection):null,this._getActionGroup("export",o.EXPORT,this._translations.export)),this._getPage(this._pageType)))}async _initModules(){const[i,t]=await c(["esri/geometry/geometryEngine","esri/symbols/support/jsonUtils"]);this._geometryEngine=i,this._jsonUtils=t}_initSymbols(){this._setLineSymbol(this.sketchLineSymbol),this._setPointSymbol(this.sketchPointSymbol),this._setPolygonSymbol(this.sketchPolygonSymbol)}_setLineSymbol(i){this.sketchLineSymbol="simple-line"===(null==i?void 0:i.type)?i:this._jsonUtils.fromJSON(i||{type:"esriSLS",color:[130,130,130,255],width:2,style:"esriSLSSolid"})}_setPointSymbol(i){this.sketchPointSymbol="simple-marker"===(null==i?void 0:i.type)?i:this._jsonUtils.fromJSON(i||{type:"esriSMS",color:[255,255,255,255],angle:0,xoffset:0,yoffset:0,size:6,style:"esriSMSCircle",outline:{type:"esriSLS",color:[50,50,50,255],width:1,style:"esriSLSSolid"}})}_setPolygonSymbol(i){this.sketchPolygonSymbol="simple-fill"===(null==i?void 0:i.type)?i:this._jsonUtils.fromJSON(i||{type:"esriSFS",color:[150,150,150,51],outline:{type:"esriSLS",color:[50,50,50,255],width:2,style:"esriSLSSolid"},style:"esriSFSSolid"})}_getActionGroup(i,t,s){return e("calcite-action-group",{class:"action-center"+(this.showRefineSelection?" w-1-3":" w-1-2"),layout:"horizontal"},e("calcite-action",{active:this._pageType===t,alignment:"center",class:"width-full height-full",compact:!1,icon:i,id:i,onClick:()=>{this._setPageType(t)},text:""}),e("calcite-tooltip",{label:"",placement:"bottom","reference-element":i},e("span",null,s)))}_setPageType(i){this._pageType=i}_getPage(i){let t;switch(i){case o.LIST:t=this._getListPage();break;case o.SELECT:t=this._getSelectPage();break;case o.EXPORT:t=this._getExportPage();break;case o.REFINE:t=this._getRefinePage()}return t}_getListPage(){const i=this._hasSelections();return e("calcite-panel",null,this._getLabel(this._translations.myLists),this._getNotice(i?this._translations.listHasSetsTip:this._translations.selectLayerAndAdd,"padding-sides-1 padding-bottom-1"),i?this._getSelectionSetList():this._getOnboardingImage(),e("div",{class:"display-flex padding-1"},e("calcite-button",{onClick:()=>{this._setPageType(o.SELECT)},width:"full"},this._translations.add)))}_getOnboardingImage(){return e("div",{class:"display-flex padding-sides-1"},e("img",{class:"img-container",src:this._onboardingImageUrl}))}_getSelectionSetList(){return e("div",{class:"padding-top-1-2 padding-bottom-1-2"},e("calcite-list",{class:"list-border margin-sides-1"},this._selectionSets.reduce(((i,t,s)=>{var a;const l=this._getSelectionSetIds(t);let n=!0;return t.workflowType===d.REFINE&&(n=Object.keys(t.refineInfos).reduce(((i,s)=>{const e=t.refineInfos[s];return i+(e.addIds.length+e.removeIds.length)}),0)>0),n&&i.push(e("calcite-list-item",{label:t.label,onClick:()=>this._gotoSelection(t,this.mapView)},e("div",{slot:"content"},e("div",{class:"list-label"},t.label),e("div",{class:"list-description"},null===(a=null==t?void 0:t.layerView)||void 0===a?void 0:a.layer.title),e("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",l.length.toString()))),this._getAction(!0,"pencil","",(i=>this._openSelection(t,i)),!1,"actions-end"),this._getAction(!0,"x","",(i=>this._deleteSelection(s,i)),!1,"actions-end"))),i}),[])))}_getSelectionSetIds(i){return i.workflowType!==d.REFINE?i.selectedIds:Object.keys(i.refineInfos).reduce(((t,s)=>[...t,...i.refineInfos[s].addIds]),[])}_hasSelections(i=!1){let t=[];const s=this._selectionSets.some((i=>{if(i.workflowType===d.REFINE)return t=this._getSelectionSetIds(i),!0}));return i&&s?t.length>0||this._selectionSets.length>1:this._selectionSets.length>0}async _getNumDuplicates(){const i=this._getExportInfos(),t=await b(i),s=m(t);return t.length-s.length}_getExportInfos(){return this._selectionSets.reduce(((i,t)=>(t.download&&(t.workflowType!==d.REFINE?this._updateIds(t.layerView.layer.id,t.layerView,t.selectedIds,i):Object.keys(t.refineInfos).forEach((s=>{const e=t.refineInfos[s];e.addIds.length>0&&this._updateIds(s,e.layerView,e.addIds,i)}))),i)),{})}_updateIds(i,t,s,e){return e[i]?e[i].ids=e[i].ids.concat(s):e[i]={layerView:t,ids:s},e}_getSelectPage(){const i=this._translations.selectSearchTip;return e("calcite-panel",null,this._getLabel(this._translations.stepTwoFull,!0),this._getNotice(i),e("div",null,e("map-select-tools",{bufferColor:this.bufferColor,bufferOutlineColor:this.bufferOutlineColor,class:"font-bold",customLabelEnabled:this.customLabelEnabled,defaultBufferDistance:this.defaultBufferDistance,defaultBufferUnit:this.defaultBufferUnit,enabledLayerIds:this.addresseeLayerIds,isUpdate:!!this._activeSelection,mapView:this.mapView,noResultText:this.noResultText,onSelectionSetChange:i=>this._updateForSelection(i),ref:i=>{this._selectTools=i},searchConfiguration:this._searchConfiguration,selectionLayerIds:this.selectionLayerIds,selectionSet:this._activeSelection,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})),this._getPageNavButtons(this._translations.done,0===this._numSelected,(()=>{this._saveSelection()}),this._translations.cancel,!1,(()=>{this._home()})))}_getExportPage(){const i=this._hasSelections(this.showRefineSelection),t=this._numDuplicates>0?"display-block":"display-none";return e("calcite-panel",null,e("div",null,this._getLabel(this._translations.export,!1),i?e("div",null,this._getNotice(this._translations.exportTip,"padding-sides-1"),this._getLabel(this._translations.exportListsLabel),this._getExportSelectionLists(),e("div",{class:"padding-sides-1 "+t},e("div",{class:"display-flex"},e("calcite-label",{layout:"inline"},e("calcite-checkbox",{ref:i=>{this._removeDuplicates=i}}),e("div",{class:"display-flex"},this._translations.removeDuplicate,e("div",{class:"info-message padding-start-1-2"},e("calcite-input-message",{class:"info-blue margin-top-0",scale:"m"},` ${this._translations.numDuplicates.replace("{{n}}",this._numDuplicates.toString())}`)))),e("calcite-icon",{class:"padding-start-1-2 icon",icon:"question",id:"remove-duplicates-icon",scale:"s"})),e("calcite-popover",{closable:!0,label:"",referenceElement:"remove-duplicates-icon"},e("span",{class:"tooltip-message"},this._translations.duplicatesTip))),e("div",{class:"border-bottom"}),e("div",{class:"padding-top-sides-1"},e("calcite-segmented-control",{class:"w-100",onCalciteSegmentedControlChange:i=>this._exportTypeChange(i)},e("calcite-segmented-control-item",{checked:this._exportType===n.PDF,class:"w-50 end-border",value:n.PDF},this._translations.pdf),e("calcite-segmented-control-item",{checked:this._exportType===n.CSV,class:"w-50",value:n.CSV},this._translations.csv))),e("div",{class:"padding-bottom-1"},this._getExportOptions()),e("div",{class:"padding-1 display-flex"},e("calcite-button",{disabled:!this._downloadActive,onClick:()=>{this._export()},width:"full"},this._translations.export))):this._getNotice(this._translations.downloadNoLists,"padding-sides-1 padding-bottom-1")))}_exportTypeChange(i){this._exportType=i.target.value}_getExportOptions(){const i=this._addTitle?"display-block":"display-none";return e("div",{class:this._exportType===n.PDF?"display-block":"display-none"},this._getLabel(this._translations.pdfOptions,!0),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0"},this._translations.selectPDFLabelOption)),e("div",{class:"padding-sides-1"},e("pdf-download",{disabled:!this._downloadActive,ref:i=>{this._downloadTools=i}})),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._addTitle,onCalciteCheckboxChange:()=>this._addTitle=!this._addTitle}),this._translations.addTitle)),e("div",{class:i},this._getLabel(this._translations.title,!0,""),e("calcite-input-text",{class:"padding-sides-1",placeholder:this._translations.titlePlaceholder,ref:i=>{this._title=i}})),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._addMap,onCalciteCheckboxChange:()=>this._addMap=!this._addMap}),this._translations.includeMap)))}_getRefinePage(){const i=this._hasSelections();return e("calcite-panel",null,this._getLabel(this._translations.refineSelection),i?e("div",null,this._getNotice(this._translations.refineTip,"padding-sides-1"),e("refine-selection",{enabledLayerIds:this.selectionLayerIds,mapView:this.mapView,selectionSets:this._selectionSets,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})):this._getNotice(this._translations.refineTipNoSelections,"padding-sides-1"))}_getPageNavButtons(i,t,s,a,l,n){return e("div",null,e("div",{class:"display-flex padding-top-sides-1"},e("calcite-button",{disabled:t,onClick:s,width:"full"},i)),e("div",{class:"display-flex padding-top-1-2 padding-sides-1"},e("calcite-button",{appearance:"outline",disabled:l,onClick:n,width:"full"},a)))}_getNotice(i,t="padding-1"){return e("calcite-notice",{class:t,icon:"lightbulb",kind:"success",open:!0},e("div",{slot:"message"},i))}_getLabel(i,t=!1,s="font-bold"){return e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:s+=t?" label-margin-0":""},i))}_getExportSelectionLists(){return this._selectionSets.reduce(((i,t)=>{var s;const a=this._getSelectionSetIds(t),l=t.workflowType!==d.REFINE||a.length>0;return!this._downloadActive&&t.download&&l&&(this._downloadActive=!0),l&&i.push(e("div",{class:"display-flex padding-sides-1 padding-bottom-1"},e("calcite-checkbox",{checked:t.download,class:"align-center",onClick:()=>{this._toggleDownload(t.id)}}),e("calcite-list",{class:"list-border margin-start-1-2 width-full",id:"download-list"},e("calcite-list-item",{disabled:!t.download,label:t.label,onClick:()=>{this._toggleDownload(t.id)}},e("div",{slot:"content"},e("div",{class:"list-label"},t.label),e("div",{class:"list-description"},null===(s=null==t?void 0:t.layerView)||void 0===s?void 0:s.layer.title),e("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",a.length.toString()))))))),i}),[])||e("div",null)}async _toggleDownload(i){let t=!1;this._selectionSets=this._selectionSets.map((s=>(s.download=s.id===i?!s.download:s.download,t=!!s.download||t,s))),this._downloadActive=t,this._numDuplicates=await this._getNumDuplicates(),await this._highlightFeatures()}async _export(){const i=this._getSelectionIdsAndViews(this._selectionSets,!0);if(this._exportType===n.PDF){let t="";if(this._addMap&&this.mapView){const i=await this.mapView.takeScreenshot({width:1500,height:2e3});t=null==i?void 0:i.dataUrl}this._downloadTools.downloadPDF(i,this._removeDuplicates.checked,this._addTitle?this._title.value:"",t)}this._exportType===n.CSV&&this._downloadTools.downloadCSV(i,this._removeDuplicates.checked)}_getSelectionIdsAndViews(i,t=!1){return(t?i.filter((i=>i.download)):i).reduce(((i,t)=>{var s;if(t.workflowType===d.REFINE)Object.keys(t.refineInfos).forEach((s=>{const e=t.refineInfos[s];e.addIds&&(i=this._updateExportInfos(i,e.layerView.layer.id,t.label,e.addIds,e.layerView))}));else{const e=null===(s=null==t?void 0:t.layerView)||void 0===s?void 0:s.layer.id;i=this._updateExportInfos(i,e,t.label,t.selectedIds,t.layerView)}return i}),{})}_updateExportInfos(i,t,s,e,a){return t&&Object.keys(i).indexOf(t)>-1?(i[t].ids=[...new Set([...i[t].ids,...e])],i[t].selectionSetNames.push(s)):t&&(i[t]={ids:e,layerView:a,selectionSetNames:[s]}),i}_getAction(i,t,s,a,l=!1,n=""){return e("calcite-action",{disabled:!i,icon:t,indicator:l,onClick:a,slot:n,text:s})}_updateForSelection(i){this._numSelected=i.detail,this._saveEnabled=this._numSelected>0}async _home(){await this._clearSelection(),this._setPageType(o.LIST)}async _saveSelection(){var i,t;const s=await(null===(i=this._selectTools)||void 0===i?void 0:i.getSelection()),e=null===(t=this._selectTools)||void 0===t?void 0:t.isUpdate;return this._selectionSets=e?this._selectionSets.map((i=>i.id===s.id?s:i)):[...this._selectionSets,s],this._home()}async _clearSelection(){var i;await(null===(i=this._selectTools)||void 0===i?void 0:i.clearSelection()),this._numSelected=0,this._activeSelection=void 0}_deleteSelection(i,t){return t.stopPropagation(),this._selectionSets=this._selectionSets.filter(((t,s)=>{if(s!==i)return t})),this._highlightFeatures()}_gotoSelection(i,t){r(i.selectedIds,i.layerView,t,this.featureHighlightEnabled,this.featureEffect)}_openSelection(i,t){t.stopPropagation(),this._activeSelection=i,this._pageType=i.workflowType===d.REFINE?o.REFINE:o.SELECT}async _highlightFeatures(){this._clearHighlight();const i=this._getSelectionIdsAndViews(this._selectionSets,this._pageType===o.EXPORT),t=Object.keys(i);if(t.length>0)for(let s=0;s<t.length;s++){const e=i[t[s]];p.highlightHandles.push(await h(e.ids,e.layerView,this.mapView))}}_checkPopups(){var i;"boolean"!=typeof this._popupsEnabled&&(this._popupsEnabled=null===(i=this.mapView)||void 0===i?void 0:i.popup.autoOpenEnabled)}_clearHighlight(){p&&p.highlightHandles&&p.removeHandles()}async _getTranslations(){const i=await g(this.el);this._translations=i[0]}get el(){return l(this)}static get watchers(){return{mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"],sketchLineSymbol:["sketchLineSymbolWatchHandler"],sketchPointSymbol:["sketchPointSymbolWatchHandler"],sketchPolygonSymbol:["sketchPolygonSymbolWatchHandler"],_pageType:["pageTypeWatchHandler"]}}};u.style=':host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.action-center{-webkit-box-align:center;-webkit-align-items:center;-ms-grid-row-align:center;align-items:center;align-content:center;justify-content:center}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{-webkit-padding-before:1rem;padding-block-start:1rem;-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-sides-1{-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-end-1-2{-webkit-padding-end:.5rem;padding-inline-end:.5rem}.padding-top-1-2{-webkit-padding-before:.5rem;padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.padding-start-1-2{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-ui-border-2)}.margin-sides-1{-webkit-margin-start:1rem;margin-inline-start:1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.margin-start-1-2{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir="rtl"]{float:left}.float-left{float:left}.float-left[dir="rtl"]{float:right}.margin-top-0{-webkit-margin-before:0 !important;margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-ui-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir="rtl"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-ui-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{-webkit-margin-before:0.125rem;margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}.img-container{width:100%;height:100%}';export{u as public_notification}
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{p as e,b as a}from"./p-f8be5d5f.js";export{s as setNonce}from"./p-f8be5d5f.js";import{g as t}from"./p-62f98a4a.js";import"./p-062f1fe7.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((e=>(t(),a(JSON.parse('[["p-f3fbc327",[[0,"public-notification",{"addresseeLayerIds":[16],"bufferColor":[8,"buffer-color"],"bufferOutlineColor":[8,"buffer-outline-color"],"customLabelEnabled":[4,"custom-label-enabled"],"defaultBufferDistance":[2,"default-buffer-distance"],"defaultBufferUnit":[1,"default-buffer-unit"],"featureEffect":[16],"featureHighlightEnabled":[4,"feature-highlight-enabled"],"mapView":[16],"noResultText":[1,"no-result-text"],"searchConfiguration":[1040],"selectionLayerIds":[16],"showRefineSelection":[4,"show-refine-selection"],"showSearchSettings":[4,"show-search-settings"],"sketchLineSymbol":[8,"sketch-line-symbol"],"sketchPointSymbol":[8,"sketch-point-symbol"],"sketchPolygonSymbol":[8,"sketch-polygon-symbol"],"_addMap":[32],"_addTitle":[32],"_downloadActive":[32],"_exportType":[32],"_numDuplicates":[32],"_pageType":[32],"_saveEnabled":[32],"_selectionSets":[32],"_translations":[32]},[[8,"selectionSetsChanged","selectionSetsChanged"]]]]],["p-b4b19fd3",[[0,"solution-configuration",{"authentication":[1040],"serializedAuthentication":[1025,"serialized-authentication"],"solutionItemId":[1537,"solution-item-id"],"showLoading":[1540,"show-loading"],"_currentEditItemId":[32],"_organizationVariables":[32],"_solutionContentsComponent":[32],"_solutionIsLoaded":[32],"_solutionVariables":[32],"_templateHierarchy":[32],"_translations":[32],"_treeOpen":[32],"getSpatialReferenceInfo":[64],"saveSolution":[64],"unloadSolution":[64]},[[8,"solutionItemSelected","_solutionItemSelected"]]]]],["p-7ed79fea",[[0,"crowdsource-manager",{"mapInfos":[16],"_translations":[32],"_layoutMode":[32],"_mapView":[32],"_panelOpen":[32]},[[8,"mapChanged","mapChanged"]]]]],["p-4efa5cc0",[[17,"calcite-color-picker",{"allowEmpty":[516,"allow-empty"],"color":[1040],"disabled":[516],"format":[513],"hideHex":[516,"hide-hex"],"hideChannels":[516,"hide-channels"],"hideSaved":[516,"hide-saved"],"scale":[513],"storageId":[513,"storage-id"],"messageOverrides":[1040],"numberingSystem":[513,"numbering-system"],"value":[1025],"messages":[1040],"defaultMessages":[32],"colorFieldAndSliderInteractive":[32],"channelMode":[32],"channels":[32],"dimensions":[32],"effectiveLocale":[32],"savedColors":[32],"colorFieldScopeTop":[32],"colorFieldScopeLeft":[32],"scopeOrientation":[32],"hueScopeLeft":[32],"hueScopeTop":[32],"setFocus":[64]},[[2,"keydown","handleChannelKeyUpOrDown"],[2,"keyup","handleChannelKeyUpOrDown"]]]]],["p-309ab62c",[[1,"add-record-modal",{"open":[1028],"_translations":[32]}]]],["p-28e4d2de",[[1,"calcite-flow-item",{"closable":[516],"closed":[516],"beforeBack":[16],"description":[1],"disabled":[516],"heading":[1],"headingLevel":[514,"heading-level"],"loading":[516],"menuOpen":[516,"menu-open"],"messageOverrides":[1040],"messages":[1040],"showBackButton":[4,"show-back-button"],"backButtonEl":[32],"defaultMessages":[32],"effectiveLocale":[32],"setFocus":[64],"scrollContentTo":[64]}]]],["p-a09fd6c8",[[17,"calcite-input-date-picker",{"disabled":[516],"form":[513],"readOnly":[516,"read-only"],"value":[1025],"flipPlacements":[16],"headingLevel":[514,"heading-level"],"valueAsDate":[1040],"minAsDate":[1040],"maxAsDate":[1040],"min":[1],"max":[1],"open":[1540],"name":[513],"numberingSystem":[513,"numbering-system"],"scale":[513],"placement":[513],"range":[516],"required":[516],"overlayPositioning":[513,"overlay-positioning"],"proximitySelectionDisabled":[4,"proximity-selection-disabled"],"layout":[513],"messageOverrides":[1040],"datePickerActiveDate":[32],"effectiveLocale":[32],"focusedInput":[32],"globalAttributes":[32],"localeData":[32],"setFocus":[64],"reposition":[64]},[[0,"calciteDaySelect","calciteDaySelectHandler"]]]]],["p-d3068e12",[[17,"calcite-input-time-picker",{"open":[1540],"disabled":[516],"form":[513],"readOnly":[516,"read-only"],"messagesOverrides":[16],"name":[1],"numberingSystem":[1,"numbering-system"],"required":[516],"scale":[513],"overlayPositioning":[1,"overlay-positioning"],"placement":[513],"step":[2],"value":[1025],"effectiveLocale":[32],"localizedValue":[32],"setFocus":[64],"reposition":[64]},[[0,"click","clickHandler"],[0,"calciteInternalTimePickerBlur","timePickerBlurHandler"],[0,"calciteInternalTimePickerFocus","timePickerFocusHandler"]]]]],["p-74488b74",[[17,"calcite-action-pad",{"expandDisabled":[516,"expand-disabled"],"expanded":[1540],"layout":[513],"position":[513],"scale":[513],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"defaultMessages":[32],"setFocus":[64]}]]],["p-f1aaf8d9",[[1,"card-manager",{"_translations":[32]}]]],["p-24100fca",[[1,"calcite-card",{"loading":[516],"selected":[1540],"selectable":[516],"thumbnailPosition":[513,"thumbnail-position"],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"defaultMessages":[32]}]]],["p-a568f19e",[[1,"calcite-fab",{"appearance":[513],"kind":[513],"disabled":[516],"icon":[513],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[1],"loading":[516],"scale":[513],"text":[1],"textEnabled":[516,"text-enabled"],"setFocus":[64]}]]],["p-f1c95d2d",[[17,"calcite-inline-editable",{"disabled":[516],"editingEnabled":[1540,"editing-enabled"],"loading":[1540],"controls":[516],"scale":[1537],"afterConfirm":[16],"messages":[1040],"messageOverrides":[1040],"defaultMessages":[32],"effectiveLocale":[32],"setFocus":[64]},[[0,"calciteInternalInputBlur","blurHandler"]]]]],["p-2e6f4ece",[[1,"calcite-tile-select",{"checked":[1540],"description":[513],"disabled":[516],"heading":[513],"hidden":[516],"icon":[513],"iconFlipRtl":[516,"icon-flip-rtl"],"name":[520],"inputEnabled":[516,"input-enabled"],"inputAlignment":[513,"input-alignment"],"type":[513],"value":[8],"width":[513],"focused":[32],"setFocus":[64]},[[0,"calciteCheckboxChange","checkboxChangeHandler"],[0,"calciteInternalCheckboxFocus","checkboxFocusBlurHandler"],[0,"calciteInternalCheckboxBlur","checkboxFocusBlurHandler"],[0,"calciteRadioButtonChange","radioButtonChangeHandler"],[0,"calciteInternalRadioButtonCheckedChange","radioButtonCheckedChangeHandler"],[0,"calciteInternalRadioButtonFocus","radioButtonFocusBlurHandler"],[0,"calciteInternalRadioButtonBlur","radioButtonFocusBlurHandler"],[0,"click","clickHandler"],[1,"pointerenter","pointerEnterHandler"],[1,"pointerleave","pointerLeaveHandler"]]]]],["p-d93ac5f7",[[1,"calcite-tip",{"closed":[1540],"closeDisabled":[516,"close-disabled"],"heading":[1],"headingLevel":[514,"heading-level"],"selected":[516],"messages":[1040],"messageOverrides":[1040],"defaultMessages":[32],"effectiveLocale":[32]}]]],["p-cb3b622f",[[1,"calcite-tip-manager",{"closed":[1540],"headingLevel":[514,"heading-level"],"messages":[1040],"messageOverrides":[1040],"selectedIndex":[32],"tips":[32],"total":[32],"direction":[32],"groupTitle":[32],"defaultMessages":[32],"effectiveLocale":[32],"nextTip":[64],"previousTip":[64]}]]],["p-46a734f6",[[1,"calcite-alert",{"open":[1540],"autoClose":[516,"auto-close"],"autoCloseDuration":[513,"auto-close-duration"],"kind":[513],"icon":[520],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[1],"numberingSystem":[513,"numbering-system"],"placement":[513],"scale":[513],"messages":[1040],"messageOverrides":[1040],"slottedInShell":[1028,"slotted-in-shell"],"effectiveLocale":[32],"defaultMessages":[32],"hasEndActions":[32],"queue":[32],"queueLength":[32],"queued":[32],"requestedIcon":[32],"setFocus":[64]},[[8,"calciteInternalAlertSync","alertSync"],[8,"calciteInternalAlertRegister","alertRegister"]]]]],["p-89e11cd7",[[1,"calcite-block-section",{"open":[1540],"status":[513],"text":[1],"toggleDisplay":[513,"toggle-display"],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"defaultMessages":[32]}]]],["p-6d58612a",[[1,"calcite-input-number",{"alignment":[513],"autofocus":[516],"clearable":[516],"disabled":[516],"form":[513],"groupSeparator":[516,"group-separator"],"hidden":[516],"icon":[520],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[1],"loading":[516],"numberingSystem":[513,"numbering-system"],"localeFormat":[4,"locale-format"],"max":[514],"min":[514],"maxLength":[514,"max-length"],"minLength":[514,"min-length"],"name":[513],"numberButtonType":[513,"number-button-type"],"placeholder":[1],"prefixText":[1,"prefix-text"],"readOnly":[516,"read-only"],"required":[516],"scale":[1537],"status":[513],"step":[520],"autocomplete":[1],"inputMode":[1,"input-mode"],"enterKeyHint":[1,"enter-key-hint"],"suffixText":[1,"suffix-text"],"editingEnabled":[1540,"editing-enabled"],"value":[1025],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"defaultMessages":[32],"localizedValue":[32],"slottedActionElDisabledInternally":[32],"setFocus":[64],"selectText":[64]}]]],["p-237df0c8",[[1,"calcite-rating",{"average":[514],"count":[514],"disabled":[516],"form":[513],"messages":[1040],"messageOverrides":[1040],"name":[513],"readOnly":[516,"read-only"],"required":[516],"scale":[513],"showChip":[516,"show-chip"],"value":[1538],"effectiveLocale":[32],"defaultMessages":[32],"hoverValue":[32],"focusValue":[32],"hasFocus":[32],"setFocus":[64]}]]],["p-17f2a222",[[1,"calcite-accordion-item",{"expanded":[1540],"heading":[1],"description":[1],"iconStart":[513,"icon-start"],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"]},[[0,"keydown","keyDownHandler"],[16,"calciteInternalAccordionChange","updateActiveItemOnChange"]]]]],["p-ab8d5222",[[1,"calcite-avatar",{"scale":[513],"thumbnail":[513],"fullName":[513,"full-name"],"username":[513],"userId":[513,"user-id"],"thumbnailFailedToLoad":[32]}]]],["p-2ed9ead7",[[17,"calcite-pagination",{"groupSeparator":[516,"group-separator"],"messageOverrides":[1040],"pageSize":[514,"page-size"],"numberingSystem":[1,"numbering-system"],"startItem":[1538,"start-item"],"totalItems":[514,"total-items"],"scale":[513],"messages":[1040],"defaultMessages":[32],"effectiveLocale":[32],"setFocus":[64],"nextPage":[64],"previousPage":[64]}]]],["p-79b8a5f8",[[1,"calcite-stepper-item",{"selected":[1540],"complete":[516],"error":[516],"disabled":[516],"heading":[1],"description":[1],"layout":[1537],"icon":[1028],"iconFlipRtl":[516,"icon-flip-rtl"],"numbered":[1028],"scale":[1537],"effectiveLocale":[32],"setFocus":[64]},[[16,"calciteInternalStepperItemChange","updateActiveItemOnChange"]]]]],["p-5821b39b",[[1,"calcite-accordion",{"appearance":[513],"iconPosition":[513,"icon-position"],"iconType":[513,"icon-type"],"scale":[513],"selectionMode":[513,"selection-mode"]},[[0,"calciteInternalAccordionItemRegister","registerCalciteAccordionItem"],[0,"calciteInternalAccordionItemSelect","updateActiveItemOnChange"]]]]],["p-f8acb89b",[[1,"calcite-combobox-item-group",{"ancestors":[1040],"label":[1]}]]],["p-c82aa9db",[[1,"calcite-flow",{"flowDirection":[32],"itemCount":[32],"items":[32],"back":[64]},[[0,"calciteFlowItemBack","handleItemBackClick"]]]]],["p-7e847fc8",[[1,"calcite-list-item-group",{"disabled":[516],"heading":[513],"visualLevel":[32]}]]],["p-c781ae28",[[1,"calcite-option-group",{"disabled":[516],"label":[1]}]]],["p-f621722d",[[1,"calcite-pick-list-group",{"groupTitle":[513,"group-title"],"headingLevel":[514,"heading-level"]}]]],["p-c6bd7fa0",[[1,"calcite-radio-button",{"checked":[1540],"disabled":[516],"focused":[1540],"form":[513],"guid":[1537],"hidden":[516],"hovered":[1540],"label":[1],"name":[513],"required":[516],"scale":[513],"value":[1032],"setFocus":[64],"emitCheckedChange":[64]},[[1,"pointerenter","mouseenter"],[1,"pointerleave","mouseleave"]]]]],["p-a50e409f",[[17,"calcite-radio-button-group",{"disabled":[516],"hidden":[516],"layout":[513],"name":[513],"required":[516],"selectedItem":[1040],"scale":[513]},[[0,"calciteRadioButtonChange","radioButtonChangeHandler"]]]]],["p-8b814023",[[1,"calcite-shell-center-row",{"detached":[516],"heightScale":[513,"height-scale"],"position":[513]}]]],["p-d744bb71",[[1,"calcite-sortable-list",{"dragSelector":[513,"drag-selector"],"group":[513],"handleSelector":[513,"handle-selector"],"layout":[513],"disabled":[516],"loading":[516],"handleActivated":[32]},[[0,"calciteHandleNudge","calciteHandleNudgeNextHandler"]]]]],["p-4c726834",[[1,"calcite-stepper",{"icon":[516],"layout":[513],"numbered":[516],"numberingSystem":[513,"numbering-system"],"selectedItem":[1040],"scale":[513],"nextStep":[64],"prevStep":[64],"goToStep":[64],"startStep":[64],"endStep":[64]},[[0,"calciteInternalStepperItemKeyEvent","calciteInternalStepperItemKeyEvent"],[0,"calciteInternalStepperItemRegister","registerItem"],[0,"calciteInternalStepperItemSelect","updateItem"],[0,"calciteInternalUserRequestedStepperItemSelect","handleUserRequestedStepperItemSelect"]]]]],["p-368613d8",[[1,"calcite-text-area",{"autofocus":[516],"columns":[514],"disabled":[516],"form":[513],"groupSeparator":[516,"group-separator"],"label":[1],"maxLength":[514,"max-length"],"messages":[1040],"name":[513],"numberingSystem":[1,"numbering-system"],"placeholder":[1],"readOnly":[516,"read-only"],"required":[516],"resize":[513],"rows":[514],"scale":[513],"value":[1025],"wrap":[513],"messageOverrides":[1040],"defaultMessages":[32],"endSlotHasElements":[32],"startSlotHasElements":[32],"effectiveLocale":[32],"setFocus":[64],"selectText":[64]}]]],["p-45ecd824",[[1,"calcite-tile-select-group",{"disabled":[516],"layout":[513]}]]],["p-3984ca5b",[[1,"calcite-tip-group",{"groupTitle":[1,"group-title"]}]]],["p-6aabe903",[[1,"comment-card"]]],["p-ad41cd27",[[1,"crowdsource-reporter"]]],["p-ce3e73ae",[[1,"list-item"]]],["p-6aeb2614",[[0,"map-search",{"mapView":[16],"searchConfiguration":[1040],"_searchTerm":[32],"_translations":[32],"clear":[64]}]]],["p-8008b2fe",[[1,"deduct-calculator"]]],["p-653358ce",[[1,"pci-calculator",{"showAddDeduct":[32]}]]],["p-1c810f4c",[[0,"store-manager",{"value":[1537],"templates":[1040],"authentication":[1040]}]]],["p-69c5964a",[[1,"calcite-color-picker-hex-input",{"hexLabel":[1,"hex-label"],"allowEmpty":[4,"allow-empty"],"scale":[513],"value":[1537],"numberingSystem":[1,"numbering-system"],"internalColor":[32],"setFocus":[64]},[[2,"keydown","onInputKeyDown"]]]]],["p-b6d1419d",[[17,"calcite-date-picker",{"activeDate":[1040],"activeRange":[513,"active-range"],"value":[1025],"headingLevel":[514,"heading-level"],"valueAsDate":[1040],"minAsDate":[1040],"maxAsDate":[1040],"min":[513],"max":[513],"numberingSystem":[513,"numbering-system"],"scale":[513],"range":[516],"proximitySelectionDisabled":[516,"proximity-selection-disabled"],"messageOverrides":[1040],"messages":[1040],"activeStartDate":[32],"activeEndDate":[32],"startAsDate":[32],"endAsDate":[32],"effectiveLocale":[32],"defaultMessages":[32],"localeData":[32],"hoverRange":[32],"setFocus":[64]}]]],["p-5c343e95",[[1,"calcite-tile",{"active":[516],"description":[513],"disabled":[516],"embed":[516],"focused":[516],"heading":[513],"hidden":[516],"href":[513],"icon":[513],"iconFlipRtl":[516,"icon-flip-rtl"]}]]],["p-21418d87",[[17,"calcite-time-picker",{"scale":[513],"step":[514],"numberingSystem":[1,"numbering-system"],"value":[1025],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"hour":[32],"hourCycle":[32],"localizedHour":[32],"localizedHourSuffix":[32],"localizedMeridiem":[32],"localizedMinute":[32],"localizedMinuteSuffix":[32],"localizedSecond":[32],"localizedSecondSuffix":[32],"meridiem":[32],"minute":[32],"second":[32],"showSecond":[32],"defaultMessages":[32],"setFocus":[64]},[[0,"blur","hostBlurHandler"],[0,"focus","hostFocusHandler"],[0,"keydown","keyDownHandler"]]]]],["p-f595a05f",[[1,"calcite-label",{"alignment":[513],"for":[513],"scale":[513],"layout":[513]}]]],["p-60d82fa1",[[1,"calcite-icon",{"icon":[513],"flipRtl":[516,"flip-rtl"],"scale":[513],"textLabel":[1,"text-label"],"pathData":[32],"visible":[32]}]]],["p-2f4e1ddf",[[0,"layer-table",{"mapView":[16],"_layerView":[32],"_selectedIndexes":[32],"_translations":[32]}],[0,"map-card",{"mapInfos":[16],"mapView":[16],"_mapListExpanded":[32],"_translations":[32],"_webMapId":[32]}]]],["p-50ebdbe1",[[1,"media-card",{"values":[16],"_index":[32],"_translations":[32]}],[1,"info-card",{"cardTitle":[1,"card-title"],"values":[16]}]]],["p-26a04692",[[1,"calcite-link",{"disabled":[516],"download":[520],"href":[513],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"rel":[1],"target":[1],"setFocus":[64]},[[0,"click","clickHandler"]]]]],["p-9f6b4972",[[1,"calcite-color-picker-swatch",{"active":[516],"color":[1],"scale":[513]}]]],["p-2c28ce25",[[1,"calcite-action",{"active":[516],"alignment":[513],"appearance":[513],"compact":[516],"disabled":[516],"icon":[1],"iconFlipRtl":[516,"icon-flip-rtl"],"indicator":[516],"label":[1],"loading":[516],"scale":[513],"text":[1],"textEnabled":[516,"text-enabled"],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"defaultMessages":[32],"setFocus":[64]}],[1,"calcite-loader",{"inline":[516],"label":[1],"scale":[513],"type":[513],"value":[2],"text":[1]}]]],["p-a2aaa843",[[1,"calcite-pick-list-item",{"description":[513],"disabled":[516],"deselectDisabled":[516,"deselect-disabled"],"nonInteractive":[516,"non-interactive"],"icon":[513],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[513],"messageOverrides":[1040],"messages":[1040],"metadata":[16],"removable":[516],"selected":[1540],"value":[8],"defaultMessages":[32],"effectiveLocale":[32],"toggleSelected":[64],"setFocus":[64]}]]],["p-20222c16",[[1,"calcite-switch",{"disabled":[516],"form":[513],"label":[1],"name":[513],"scale":[513],"checked":[1540],"value":[8],"setFocus":[64]}]]],["p-5db22a5b",[[1,"calcite-checkbox",{"checked":[1540],"disabled":[516],"form":[513],"guid":[1537],"hovered":[516],"indeterminate":[1540],"label":[1],"name":[520],"required":[516],"scale":[513],"value":[8],"setFocus":[64]}]]],["p-7de66003",[[1,"calcite-scrim",{"loading":[516],"messages":[1040],"messageOverrides":[1040],"defaultMessages":[32],"effectiveLocale":[32]}]]],["p-caae8177",[[1,"calcite-button",{"alignment":[513],"appearance":[513],"label":[1],"kind":[513],"disabled":[516],"form":[513],"href":[513],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"loading":[516],"name":[513],"rel":[513],"round":[516],"scale":[513],"splitChild":[520,"split-child"],"target":[513],"type":[513],"width":[513],"messages":[1040],"messageOverrides":[1040],"hasContent":[32],"hasLoader":[32],"effectiveLocale":[32],"defaultMessages":[32],"setFocus":[64]}]]],["p-14180490",[[1,"calcite-action-menu",{"expanded":[516],"flipPlacements":[16],"label":[1],"open":[1540],"overlayPositioning":[513,"overlay-positioning"],"placement":[513],"scale":[513],"menuButtonEl":[32],"activeMenuItemIndex":[32],"setFocus":[64]},[[9,"pointerdown","closeCalciteActionMenuOnClick"]]],[1,"calcite-popover",{"autoClose":[516,"auto-close"],"closable":[516],"flipDisabled":[516,"flip-disabled"],"focusTrapDisabled":[516,"focus-trap-disabled"],"pointerDisabled":[516,"pointer-disabled"],"flipPlacements":[16],"heading":[1],"headingLevel":[514,"heading-level"],"label":[1],"messageOverrides":[1040],"messages":[1040],"offsetDistance":[514,"offset-distance"],"offsetSkidding":[514,"offset-skidding"],"open":[1540],"overlayPositioning":[513,"overlay-positioning"],"placement":[513],"referenceElement":[1,"reference-element"],"scale":[513],"triggerDisabled":[516,"trigger-disabled"],"effectiveLocale":[32],"effectiveReferenceElement":[32],"defaultMessages":[32],"reposition":[64],"setFocus":[64],"updateFocusTrapElements":[64]}]]],["p-5ed755a2",[[0,"solution-item",{"authentication":[1040],"itemId":[1537,"item-id"],"solutionVariables":[1537,"solution-variables"],"organizationVariables":[1537,"organization-variables"],"itemType":[32],"_translations":[32]}],[0,"solution-spatial-ref",{"defaultWkid":[1538,"default-wkid"],"locked":[1540],"value":[1537],"services":[1040],"loaded":[32],"spatialRef":[32],"_srSearchText":[32],"_translations":[32],"createSpatialRefDisplay":[64],"getSpatialRef":[64],"wkidToDisplay":[64]}],[0,"solution-contents",{"selectedItemId":[1537,"selected-item-id"],"templateHierarchy":[1040]}]]],["p-c273f446",[[1,"calcite-modal",{"open":[1540],"beforeClose":[16],"closeButtonDisabled":[516,"close-button-disabled"],"focusTrapDisabled":[516,"focus-trap-disabled"],"outsideCloseDisabled":[516,"outside-close-disabled"],"docked":[516],"escapeDisabled":[516,"escape-disabled"],"scale":[513],"width":[513],"fullscreen":[516],"kind":[513],"messages":[1040],"messageOverrides":[1040],"slottedInShell":[1028,"slotted-in-shell"],"cssWidth":[32],"cssHeight":[32],"hasFooter":[32],"hasContentTop":[32],"hasContentBottom":[32],"isOpen":[32],"effectiveLocale":[32],"defaultMessages":[32],"setFocus":[64],"updateFocusTrapElements":[64],"scrollContent":[64]},[[8,"keydown","handleEscape"]]]]],["p-5a858526",[[1,"calcite-graph",{"data":[16],"colorStops":[16],"highlightMin":[2,"highlight-min"],"highlightMax":[2,"highlight-max"],"min":[514],"max":[514]}]]],["p-38a02d9b",[[1,"calcite-tooltip",{"closeOnClick":[516,"close-on-click"],"label":[1],"offsetDistance":[514,"offset-distance"],"offsetSkidding":[514,"offset-skidding"],"open":[516],"overlayPositioning":[513,"overlay-positioning"],"placement":[513],"referenceElement":[1,"reference-element"],"effectiveReferenceElement":[32],"reposition":[64]}]]],["p-f8525286",[[1,"calcite-chip",{"appearance":[513],"kind":[513],"closable":[516],"icon":[513],"iconFlipRtl":[516,"icon-flip-rtl"],"scale":[513],"value":[8],"closed":[1540],"messageOverrides":[1040],"messages":[1040],"defaultMessages":[32],"effectiveLocale":[32],"hasContent":[32],"hasImage":[32],"setFocus":[64]}]]],["p-f516f183",[[1,"buffer-tools",{"appearance":[1025],"distance":[1026],"geometries":[1040],"max":[1026],"min":[1026],"sliderTicks":[1026,"slider-ticks"],"unionResults":[1028,"union-results"],"unit":[1025],"disabled":[4],"_translations":[32]}],[1,"calcite-input-message",{"icon":[520],"iconFlipRtl":[516,"icon-flip-rtl"],"scale":[1537],"status":[513]}],[0,"map-draw-tools",{"active":[4],"drawMode":[1,"draw-mode"],"editGraphicsEnabled":[4,"edit-graphics-enabled"],"graphics":[1040],"mapView":[1040],"pointSymbol":[1040],"polylineSymbol":[1040],"polygonSymbol":[1040],"redoEnabled":[4,"redo-enabled"],"undoEnabled":[4,"undo-enabled"],"_translations":[32],"_selectionMode":[32],"clear":[64],"updateGraphics":[64]}],[17,"calcite-slider",{"disabled":[516],"form":[513],"groupSeparator":[516,"group-separator"],"hasHistogram":[1540,"has-histogram"],"histogram":[16],"histogramStops":[16],"labelHandles":[516,"label-handles"],"labelTicks":[516,"label-ticks"],"max":[514],"maxLabel":[1,"max-label"],"maxValue":[1026,"max-value"],"min":[514],"minLabel":[1,"min-label"],"minValue":[1026,"min-value"],"mirrored":[516],"name":[513],"numberingSystem":[1,"numbering-system"],"pageStep":[514,"page-step"],"precise":[516],"required":[516],"snap":[516],"step":[514],"ticks":[514],"value":[1538],"scale":[513],"effectiveLocale":[32],"minMaxValueRange":[32],"minValueDragRange":[32],"maxValueDragRange":[32],"tickValues":[32],"setFocus":[64]},[[0,"keydown","keyDownHandler"],[1,"pointerdown","pointerDownHandler"]]]]],["p-62492a2d",[[0,"refine-selection",{"addresseeLayer":[16],"enabledLayerIds":[16],"mapView":[16],"selectionSets":[1040],"sketchLineSymbol":[16],"sketchPointSymbol":[16],"sketchPolygonSymbol":[16],"_translations":[32],"_selectionMode":[32],"_refineLayer":[32]}],[0,"map-select-tools",{"bufferColor":[8,"buffer-color"],"bufferOutlineColor":[8,"buffer-outline-color"],"customLabelEnabled":[4,"custom-label-enabled"],"enabledLayerIds":[16],"defaultBufferDistance":[2,"default-buffer-distance"],"defaultBufferUnit":[1,"default-buffer-unit"],"geometries":[16],"isUpdate":[4,"is-update"],"layerViews":[16],"mapView":[16],"noResultText":[1,"no-result-text"],"searchConfiguration":[1040],"selectionSet":[16],"selectionLayerIds":[16],"selectLayerView":[16],"sketchLineSymbol":[16],"sketchPointSymbol":[16],"sketchPolygonSymbol":[16],"_numSelected":[32],"_searchDistanceEnabled":[32],"_searchTerm":[32],"_selectionLoading":[32],"_translations":[32],"_useLayerFeaturesEnabled":[32],"clearSelection":[64],"getSelection":[64]},[[8,"searchConfigurationChange","searchConfigurationChangeChanged"],[8,"distanceChanged","distanceChanged"],[8,"unitChanged","unitChanged"]]],[1,"pdf-download",{"disabled":[4],"_translations":[32],"downloadCSV":[64],"downloadPDF":[64]}],[1,"calcite-input-text",{"alignment":[513],"autofocus":[516],"clearable":[516],"disabled":[516],"form":[513],"hidden":[516],"icon":[520],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[1],"loading":[516],"maxLength":[514,"max-length"],"minLength":[514,"min-length"],"name":[513],"placeholder":[1],"prefixText":[1,"prefix-text"],"readOnly":[516,"read-only"],"required":[516],"scale":[1537],"status":[513],"autocomplete":[1],"inputMode":[1,"input-mode"],"enterKeyHint":[1,"enter-key-hint"],"pattern":[1],"suffixText":[1,"suffix-text"],"editingEnabled":[1540,"editing-enabled"],"value":[1025],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"defaultMessages":[32],"slottedActionElDisabledInternally":[32],"setFocus":[64],"selectText":[64]}],[1,"calcite-notice",{"open":[1540],"kind":[513],"closable":[516],"icon":[520],"iconFlipRtl":[516,"icon-flip-rtl"],"scale":[513],"width":[513],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"defaultMessages":[32],"setFocus":[64]}]]],["p-7fe8073a",[[1,"calcite-date-picker-month",{"selectedDate":[16],"activeDate":[16],"startDate":[16],"endDate":[16],"min":[16],"max":[16],"scale":[513],"localeData":[16],"hoverRange":[16]},[[1,"pointerout","mouseoutHandler"]]],[1,"calcite-date-picker-month-header",{"selectedDate":[16],"activeDate":[16],"headingLevel":[2,"heading-level"],"min":[16],"max":[16],"scale":[513],"localeData":[16],"messages":[1040],"globalAttributes":[32],"nextMonthDate":[32],"prevMonthDate":[32]}],[1,"calcite-date-picker-day",{"day":[2],"disabled":[516],"currentMonth":[516,"current-month"],"selected":[516],"highlighted":[516],"range":[516],"startOfRange":[516,"start-of-range"],"endOfRange":[516,"end-of-range"],"rangeHover":[516,"range-hover"],"active":[516],"scale":[513],"value":[16]},[[1,"pointerover","mouseoverHandler"]]]]],["p-33efdea8",[[17,"calcite-action-group",{"expanded":[516],"layout":[513],"columns":[514],"menuOpen":[1540,"menu-open"],"scale":[513],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"defaultMessages":[32],"setFocus":[64]}]]],["p-a9f4a115",[[1,"calcite-block",{"collapsible":[516],"disabled":[516],"dragHandle":[516,"drag-handle"],"heading":[1],"headingLevel":[514,"heading-level"],"loading":[516],"open":[1540],"status":[513],"description":[1],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"defaultMessages":[32]}],[1,"calcite-pick-list",{"disabled":[516],"filteredItems":[1040],"filteredData":[1040],"filterEnabled":[516,"filter-enabled"],"filterPlaceholder":[513,"filter-placeholder"],"filterText":[1537,"filter-text"],"headingLevel":[514,"heading-level"],"loading":[516],"multiple":[516],"selectionFollowsFocus":[516,"selection-follows-focus"],"selectedValues":[32],"dataForFilter":[32],"getSelectedItems":[64],"setFocus":[64]},[[0,"calciteListItemRemove","calciteListItemRemoveHandler"],[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteInternalListItemPropsChange","calciteInternalListItemPropsChangeHandler"],[0,"calciteInternalListItemValueChange","calciteInternalListItemValueChangeHandler"],[0,"focusout","calciteListFocusOutHandler"]]],[17,"calcite-action-bar",{"expandDisabled":[516,"expand-disabled"],"expanded":[1540],"layout":[513],"overflowActionsDisabled":[516,"overflow-actions-disabled"],"position":[513],"scale":[513],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"defaultMessages":[32],"overflowActions":[64],"setFocus":[64]}],[1,"calcite-handle",{"activated":[1540],"dragHandle":[513,"drag-handle"],"messages":[16],"messageOverrides":[16],"effectiveLocale":[32],"defaultMessages":[32],"setFocus":[64]}]]],["p-add081e4",[[1,"edit-record-modal",{"open":[1028],"_translations":[32]}],[17,"calcite-split-button",{"appearance":[513],"kind":[513],"disabled":[516],"active":[1540],"dropdownIconType":[513,"dropdown-icon-type"],"dropdownLabel":[513,"dropdown-label"],"loading":[516],"overlayPositioning":[513,"overlay-positioning"],"primaryIconEnd":[513,"primary-icon-end"],"primaryIconFlipRtl":[513,"primary-icon-flip-rtl"],"primaryIconStart":[513,"primary-icon-start"],"primaryLabel":[513,"primary-label"],"primaryText":[513,"primary-text"],"scale":[513],"width":[513],"setFocus":[64]}],[1,"calcite-dropdown-item",{"selected":[1540],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"iconEnd":[513,"icon-end"],"href":[513],"label":[1],"rel":[513],"target":[513],"setFocus":[64]},[[0,"click","onClick"],[0,"keydown","keyDownHandler"],[16,"calciteInternalDropdownItemChange","updateActiveItemOnChange"]]],[17,"calcite-dropdown-group",{"groupTitle":[513,"group-title"],"selectionMode":[513,"selection-mode"],"scale":[513]},[[0,"calciteInternalDropdownItemSelect","updateActiveItemOnChange"]]],[17,"calcite-dropdown",{"open":[1540],"closeOnSelectDisabled":[516,"close-on-select-disabled"],"disabled":[516],"flipPlacements":[16],"maxItems":[514,"max-items"],"overlayPositioning":[513,"overlay-positioning"],"placement":[513],"scale":[513],"selectedItems":[1040],"type":[513],"width":[513],"setFocus":[64],"reposition":[64]},[[9,"pointerdown","closeCalciteDropdownOnClick"],[0,"calciteInternalDropdownCloseRequest","closeCalciteDropdownOnEvent"],[8,"calciteDropdownOpen","closeCalciteDropdownOnOpenEvent"],[1,"pointerenter","mouseEnterHandler"],[1,"pointerleave","mouseLeaveHandler"],[0,"calciteInternalDropdownItemKeyEvent","calciteInternalDropdownItemKeyEvent"],[0,"calciteInternalDropdownItemSelect","handleItemSelect"]]]]],["p-377184ef",[[1,"calcite-list",{"disabled":[516],"filterEnabled":[516,"filter-enabled"],"filteredItems":[1040],"filteredData":[1040],"filterPlaceholder":[513,"filter-placeholder"],"filterText":[1537,"filter-text"],"label":[1],"loading":[516],"openable":[4],"selectedItems":[1040],"selectionMode":[513,"selection-mode"],"selectionAppearance":[513,"selection-appearance"],"dataForFilter":[32],"setFocus":[64]},[[0,"calciteInternalFocusPreviousItem","handleCalciteInternalFocusPreviousItem"],[0,"calciteInternalListItemActive","handleCalciteListItemActive"],[0,"calciteInternalListItemSelect","handleCalciteListItemSelect"]]],[1,"calcite-list-item",{"active":[4],"description":[1],"disabled":[516],"label":[1],"metadata":[16],"open":[1540],"setSize":[2,"set-size"],"setPosition":[2,"set-position"],"selected":[1540],"value":[8],"selectionMode":[1025,"selection-mode"],"selectionAppearance":[1025,"selection-appearance"],"level":[32],"visualLevel":[32],"parentListEl":[32],"openable":[32],"hasActionsStart":[32],"hasActionsEnd":[32],"hasCustomContent":[32],"hasContentStart":[32],"hasContentEnd":[32],"setFocus":[64]}],[1,"calcite-segmented-control-item",{"checked":[1540],"iconFlipRtl":[516,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"iconEnd":[513,"icon-end"],"value":[1032]}],[1,"calcite-segmented-control",{"appearance":[513],"disabled":[516],"form":[513],"required":[516],"layout":[513],"name":[513],"scale":[513],"value":[1025],"selectedItem":[1040],"width":[513],"setFocus":[64]},[[0,"calciteInternalSegmentedControlItemChange","handleSelected"],[0,"keydown","handleKeyDown"]]],[17,"calcite-filter",{"items":[16],"disabled":[516],"filteredItems":[1040],"placeholder":[1],"scale":[513],"value":[1025],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"defaultMessages":[32],"setFocus":[64]}]]],["p-a134fb69",[[1,"calcite-shell",{"contentBehind":[516,"content-behind"],"hasHeader":[32],"hasFooter":[32],"hasAlerts":[32],"hasModals":[32]}],[1,"calcite-panel",{"closed":[1540],"disabled":[516],"closable":[516],"headingLevel":[514,"heading-level"],"loading":[516],"heading":[1],"description":[1],"menuOpen":[516,"menu-open"],"messageOverrides":[1040],"messages":[1040],"hasStartActions":[32],"hasEndActions":[32],"hasMenuItems":[32],"hasHeaderContent":[32],"hasFooterContent":[32],"hasFooterActions":[32],"hasFab":[32],"defaultMessages":[32],"effectiveLocale":[32],"setFocus":[64],"scrollContentTo":[64]}]]],["p-db099e05",[[0,"map-layer-picker",{"enabledLayerIds":[16],"mapView":[16],"selectedLayerIds":[1040],"selectionMode":[1537,"selection-mode"],"layerIds":[32]}],[1,"calcite-combobox",{"open":[1540],"disabled":[516],"form":[513],"label":[1],"placeholder":[1],"placeholderIcon":[513,"placeholder-icon"],"placeholderIconFlipRtl":[516,"placeholder-icon-flip-rtl"],"maxItems":[514,"max-items"],"name":[513],"allowCustomValues":[516,"allow-custom-values"],"overlayPositioning":[513,"overlay-positioning"],"required":[516],"selectionMode":[513,"selection-mode"],"scale":[513],"value":[1025],"flipPlacements":[16],"messages":[1040],"messageOverrides":[1040],"selectedItems":[1040],"filteredItems":[1040],"items":[32],"groupItems":[32],"needsIcon":[32],"activeItemIndex":[32],"activeChipIndex":[32],"activeDescendant":[32],"text":[32],"effectiveLocale":[32],"defaultMessages":[32],"reposition":[64],"setFocus":[64]},[[5,"pointerdown","documentClickHandler"],[0,"calciteComboboxItemChange","calciteComboboxItemChangeHandler"]]],[1,"calcite-combobox-item",{"disabled":[516],"selected":[1540],"active":[516],"ancestors":[1040],"guid":[513],"icon":[513],"iconFlipRtl":[516,"icon-flip-rtl"],"textLabel":[513,"text-label"],"value":[8],"filterDisabled":[516,"filter-disabled"]}]]],["p-d4bc51f5",[[0,"solution-item-icon",{"isPortal":[4,"is-portal"],"type":[1],"typeKeywords":[16]}],[1,"calcite-tree-item",{"disabled":[516],"expanded":[1540],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"selected":[1540],"parentExpanded":[4,"parent-expanded"],"depth":[1538],"hasChildren":[1540,"has-children"],"lines":[1540],"scale":[1537],"indeterminate":[516],"selectionMode":[1537,"selection-mode"],"updateAfterInitialRender":[32],"hasEndActions":[32]},[[0,"click","onClick"],[0,"keydown","keyDownHandler"]]],[1,"calcite-tree",{"lines":[1540],"child":[1540],"scale":[1537],"selectionMode":[1537,"selection-mode"],"selectedItems":[1040]},[[0,"focus","onFocus"],[0,"focusin","onFocusIn"],[0,"focusout","onFocusOut"],[0,"calciteInternalTreeItemSelect","onClick"],[0,"keydown","keyDownHandler"]]]]],["p-f82d8b5d",[[1,"calcite-select",{"disabled":[516],"form":[513],"label":[1],"name":[513],"required":[516],"scale":[513],"value":[1025],"selectedOption":[1040],"width":[513],"setFocus":[64]},[[0,"calciteInternalOptionChange","handleOptionOrGroupChange"],[0,"calciteInternalOptionGroupChange","handleOptionOrGroupChange"]]],[1,"calcite-option",{"disabled":[516],"label":[1025],"selected":[516],"value":[1032]}]]],["p-c749227e",[[1,"calcite-input",{"alignment":[513],"autofocus":[516],"clearable":[516],"disabled":[516],"form":[513],"groupSeparator":[516,"group-separator"],"hidden":[516],"icon":[520],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[1],"loading":[516],"numberingSystem":[513,"numbering-system"],"localeFormat":[4,"locale-format"],"max":[514],"min":[514],"maxLength":[514,"max-length"],"minLength":[514,"min-length"],"name":[513],"numberButtonType":[513,"number-button-type"],"placeholder":[1],"prefixText":[1,"prefix-text"],"readOnly":[516,"read-only"],"required":[516],"scale":[1537],"status":[1537],"step":[520],"autocomplete":[1],"pattern":[1],"accept":[1],"multiple":[4],"inputMode":[1,"input-mode"],"enterKeyHint":[1,"enter-key-hint"],"suffixText":[1,"suffix-text"],"editingEnabled":[1540,"editing-enabled"],"type":[513],"value":[1025],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"defaultMessages":[32],"localizedValue":[32],"slottedActionElDisabledInternally":[32],"setFocus":[64],"selectText":[64],"internalSyncChildElValue":[64]}],[1,"calcite-progress",{"type":[513],"value":[2],"label":[1],"text":[1],"reversed":[516]}]]],["p-16dfb254",[[0,"solution-template-data",{"instanceid":[1537],"itemId":[1537,"item-id"],"organizationVariables":[1537,"organization-variables"],"solutionVariables":[1537,"solution-variables"],"varsOpen":[1540,"vars-open"],"_translations":[32],"value":[32]}],[1,"solution-resource-item",{"authentication":[1040],"itemId":[1537,"item-id"],"resourceFilePaths":[32],"resources":[32],"_translations":[32]}],[0,"solution-item-details",{"itemId":[1537,"item-id"],"itemDetails":[32],"itemEdit":[32],"_translations":[32],"thumbnail":[32],"thumbnailContainer":[32]},[[0,"calciteInputInput","inputReceivedHandler"]]],[1,"solution-item-sharing",{"groupId":[1537,"group-id"],"_translations":[32],"sharing":[32],"getShareInfo":[64]}],[1,"solution-variables",{"value":[1537],"_solutionVariables":[32],"_translations":[32]}],[1,"calcite-value-list-item",{"description":[513],"disabled":[516],"deselectDisabled":[4,"deselect-disabled"],"nonInteractive":[516,"non-interactive"],"handleActivated":[1028,"handle-activated"],"icon":[513],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[513],"metadata":[16],"removable":[516],"selected":[1540],"value":[8],"toggleSelected":[64],"setFocus":[64]},[[0,"calciteListItemChange","calciteListItemChangeHandler"]]],[1,"solution-organization-variables",{"value":[1537],"_organizationVariables":[32],"_translations":[32]}],[0,"json-editor",{"hasChanges":[1540,"has-changes"],"hasErrors":[1540,"has-errors"],"instanceid":[1544],"value":[1544],"getEditorContents":[64],"prepareForDeletion":[64],"replaceCurrentSelection":[64],"reset":[64]}],[1,"calcite-tab-title",{"selected":[1540],"disabled":[516],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"layout":[1537],"position":[1537],"scale":[1537],"bordered":[1540],"tab":[513],"controls":[32],"hasText":[32],"getTabIndex":[64],"getTabIdentifier":[64],"updateAriaInfo":[64]},[[16,"calciteInternalTabChange","internalTabChangeHandler"],[0,"click","onClick"],[0,"keydown","keyDownHandler"]]],[1,"calcite-shell-panel",{"collapsed":[516],"detached":[516],"detachedHeightScale":[513,"detached-height-scale"],"widthScale":[513,"width-scale"],"position":[513],"resizable":[516],"messages":[1040],"messageOverrides":[1040],"contentWidth":[32],"defaultMessages":[32],"effectiveLocale":[32]}],[1,"calcite-tab",{"tab":[513],"selected":[1540],"scale":[1537],"labeledBy":[32],"getTabIndex":[64],"updateAriaInfo":[64]},[[16,"calciteInternalTabChange","internalTabChangeHandler"]]],[1,"calcite-tab-nav",{"storageId":[513,"storage-id"],"syncId":[513,"sync-id"],"selectedTitle":[1040],"scale":[1537],"layout":[1537],"position":[1537],"bordered":[1540],"indicatorOffset":[1026,"indicator-offset"],"indicatorWidth":[1026,"indicator-width"],"selectedTabId":[32]},[[0,"calciteInternalTabsFocusPrevious","focusPreviousTabHandler"],[0,"calciteInternalTabsFocusNext","focusNextTabHandler"],[0,"calciteInternalTabsFocusFirst","focusFirstTabHandler"],[0,"calciteInternalTabsFocusLast","focusLastTabHandler"],[0,"calciteInternalTabsActivate","internalActivateTabHandler"],[0,"calciteTabsActivate","activateTabHandler"],[0,"calciteInternalTabTitleRegister","updateTabTitles"],[16,"calciteInternalTabChange","globalInternalTabChangeHandler"],[0,"calciteInternalTabIconChanged","iconStartChangeHandler"]]],[1,"calcite-tabs",{"layout":[513],"position":[513],"scale":[513],"bordered":[4],"titles":[32],"tabs":[32]},[[0,"calciteInternalTabTitleRegister","calciteInternalTabTitleRegister"],[16,"calciteTabTitleUnregister","calciteTabTitleUnregister"],[0,"calciteInternalTabRegister","calciteInternalTabRegister"],[16,"calciteTabUnregister","calciteTabUnregister"]]],[1,"calcite-value-list",{"disabled":[516],"dragEnabled":[516,"drag-enabled"],"filteredItems":[1040],"filteredData":[1040],"filterEnabled":[516,"filter-enabled"],"filterPlaceholder":[513,"filter-placeholder"],"filterText":[1537,"filter-text"],"group":[513],"loading":[516],"multiple":[516],"selectionFollowsFocus":[516,"selection-follows-focus"],"messageOverrides":[1040],"messages":[1040],"dataForFilter":[32],"defaultMessages":[32],"effectiveLocale":[32],"selectedValues":[32],"getSelectedItems":[64],"setFocus":[64]},[[0,"focusout","calciteListFocusOutHandler"],[0,"calciteListItemRemove","calciteListItemRemoveHandler"],[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteInternalListItemPropsChange","calciteInternalListItemPropsChangeHandler"],[0,"calciteInternalListItemValueChange","calciteInternalListItemValueChangeHandler"],[0,"calciteValueListItemDragHandleBlur","handleValueListItemBlur"]]]]]]'),e))));
6
+ import{p as e,b as a}from"./p-f8be5d5f.js";export{s as setNonce}from"./p-f8be5d5f.js";import{g as t}from"./p-62f98a4a.js";import"./p-062f1fe7.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((e=>(t(),a(JSON.parse('[["p-f9fcb9b4",[[0,"public-notification",{"addresseeLayerIds":[16],"bufferColor":[8,"buffer-color"],"bufferOutlineColor":[8,"buffer-outline-color"],"customLabelEnabled":[4,"custom-label-enabled"],"defaultBufferDistance":[2,"default-buffer-distance"],"defaultBufferUnit":[1,"default-buffer-unit"],"featureEffect":[16],"featureHighlightEnabled":[4,"feature-highlight-enabled"],"mapView":[16],"noResultText":[1,"no-result-text"],"searchConfiguration":[1040],"selectionLayerIds":[16],"showRefineSelection":[4,"show-refine-selection"],"showSearchSettings":[4,"show-search-settings"],"sketchLineSymbol":[8,"sketch-line-symbol"],"sketchPointSymbol":[8,"sketch-point-symbol"],"sketchPolygonSymbol":[8,"sketch-polygon-symbol"],"_addMap":[32],"_addTitle":[32],"_downloadActive":[32],"_exportType":[32],"_numDuplicates":[32],"_pageType":[32],"_saveEnabled":[32],"_selectionSets":[32],"_translations":[32]},[[8,"selectionSetsChanged","selectionSetsChanged"]]]]],["p-b4b19fd3",[[0,"solution-configuration",{"authentication":[1040],"serializedAuthentication":[1025,"serialized-authentication"],"solutionItemId":[1537,"solution-item-id"],"showLoading":[1540,"show-loading"],"_currentEditItemId":[32],"_organizationVariables":[32],"_solutionContentsComponent":[32],"_solutionIsLoaded":[32],"_solutionVariables":[32],"_templateHierarchy":[32],"_translations":[32],"_treeOpen":[32],"getSpatialReferenceInfo":[64],"saveSolution":[64],"unloadSolution":[64]},[[8,"solutionItemSelected","_solutionItemSelected"]]]]],["p-7ed79fea",[[0,"crowdsource-manager",{"mapInfos":[16],"_translations":[32],"_layoutMode":[32],"_mapView":[32],"_panelOpen":[32]},[[8,"mapChanged","mapChanged"]]]]],["p-4efa5cc0",[[17,"calcite-color-picker",{"allowEmpty":[516,"allow-empty"],"color":[1040],"disabled":[516],"format":[513],"hideHex":[516,"hide-hex"],"hideChannels":[516,"hide-channels"],"hideSaved":[516,"hide-saved"],"scale":[513],"storageId":[513,"storage-id"],"messageOverrides":[1040],"numberingSystem":[513,"numbering-system"],"value":[1025],"messages":[1040],"defaultMessages":[32],"colorFieldAndSliderInteractive":[32],"channelMode":[32],"channels":[32],"dimensions":[32],"effectiveLocale":[32],"savedColors":[32],"colorFieldScopeTop":[32],"colorFieldScopeLeft":[32],"scopeOrientation":[32],"hueScopeLeft":[32],"hueScopeTop":[32],"setFocus":[64]},[[2,"keydown","handleChannelKeyUpOrDown"],[2,"keyup","handleChannelKeyUpOrDown"]]]]],["p-309ab62c",[[1,"add-record-modal",{"open":[1028],"_translations":[32]}]]],["p-28e4d2de",[[1,"calcite-flow-item",{"closable":[516],"closed":[516],"beforeBack":[16],"description":[1],"disabled":[516],"heading":[1],"headingLevel":[514,"heading-level"],"loading":[516],"menuOpen":[516,"menu-open"],"messageOverrides":[1040],"messages":[1040],"showBackButton":[4,"show-back-button"],"backButtonEl":[32],"defaultMessages":[32],"effectiveLocale":[32],"setFocus":[64],"scrollContentTo":[64]}]]],["p-a09fd6c8",[[17,"calcite-input-date-picker",{"disabled":[516],"form":[513],"readOnly":[516,"read-only"],"value":[1025],"flipPlacements":[16],"headingLevel":[514,"heading-level"],"valueAsDate":[1040],"minAsDate":[1040],"maxAsDate":[1040],"min":[1],"max":[1],"open":[1540],"name":[513],"numberingSystem":[513,"numbering-system"],"scale":[513],"placement":[513],"range":[516],"required":[516],"overlayPositioning":[513,"overlay-positioning"],"proximitySelectionDisabled":[4,"proximity-selection-disabled"],"layout":[513],"messageOverrides":[1040],"datePickerActiveDate":[32],"effectiveLocale":[32],"focusedInput":[32],"globalAttributes":[32],"localeData":[32],"setFocus":[64],"reposition":[64]},[[0,"calciteDaySelect","calciteDaySelectHandler"]]]]],["p-d3068e12",[[17,"calcite-input-time-picker",{"open":[1540],"disabled":[516],"form":[513],"readOnly":[516,"read-only"],"messagesOverrides":[16],"name":[1],"numberingSystem":[1,"numbering-system"],"required":[516],"scale":[513],"overlayPositioning":[1,"overlay-positioning"],"placement":[513],"step":[2],"value":[1025],"effectiveLocale":[32],"localizedValue":[32],"setFocus":[64],"reposition":[64]},[[0,"click","clickHandler"],[0,"calciteInternalTimePickerBlur","timePickerBlurHandler"],[0,"calciteInternalTimePickerFocus","timePickerFocusHandler"]]]]],["p-74488b74",[[17,"calcite-action-pad",{"expandDisabled":[516,"expand-disabled"],"expanded":[1540],"layout":[513],"position":[513],"scale":[513],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"defaultMessages":[32],"setFocus":[64]}]]],["p-f1aaf8d9",[[1,"card-manager",{"_translations":[32]}]]],["p-24100fca",[[1,"calcite-card",{"loading":[516],"selected":[1540],"selectable":[516],"thumbnailPosition":[513,"thumbnail-position"],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"defaultMessages":[32]}]]],["p-a568f19e",[[1,"calcite-fab",{"appearance":[513],"kind":[513],"disabled":[516],"icon":[513],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[1],"loading":[516],"scale":[513],"text":[1],"textEnabled":[516,"text-enabled"],"setFocus":[64]}]]],["p-f1c95d2d",[[17,"calcite-inline-editable",{"disabled":[516],"editingEnabled":[1540,"editing-enabled"],"loading":[1540],"controls":[516],"scale":[1537],"afterConfirm":[16],"messages":[1040],"messageOverrides":[1040],"defaultMessages":[32],"effectiveLocale":[32],"setFocus":[64]},[[0,"calciteInternalInputBlur","blurHandler"]]]]],["p-2e6f4ece",[[1,"calcite-tile-select",{"checked":[1540],"description":[513],"disabled":[516],"heading":[513],"hidden":[516],"icon":[513],"iconFlipRtl":[516,"icon-flip-rtl"],"name":[520],"inputEnabled":[516,"input-enabled"],"inputAlignment":[513,"input-alignment"],"type":[513],"value":[8],"width":[513],"focused":[32],"setFocus":[64]},[[0,"calciteCheckboxChange","checkboxChangeHandler"],[0,"calciteInternalCheckboxFocus","checkboxFocusBlurHandler"],[0,"calciteInternalCheckboxBlur","checkboxFocusBlurHandler"],[0,"calciteRadioButtonChange","radioButtonChangeHandler"],[0,"calciteInternalRadioButtonCheckedChange","radioButtonCheckedChangeHandler"],[0,"calciteInternalRadioButtonFocus","radioButtonFocusBlurHandler"],[0,"calciteInternalRadioButtonBlur","radioButtonFocusBlurHandler"],[0,"click","clickHandler"],[1,"pointerenter","pointerEnterHandler"],[1,"pointerleave","pointerLeaveHandler"]]]]],["p-d93ac5f7",[[1,"calcite-tip",{"closed":[1540],"closeDisabled":[516,"close-disabled"],"heading":[1],"headingLevel":[514,"heading-level"],"selected":[516],"messages":[1040],"messageOverrides":[1040],"defaultMessages":[32],"effectiveLocale":[32]}]]],["p-cb3b622f",[[1,"calcite-tip-manager",{"closed":[1540],"headingLevel":[514,"heading-level"],"messages":[1040],"messageOverrides":[1040],"selectedIndex":[32],"tips":[32],"total":[32],"direction":[32],"groupTitle":[32],"defaultMessages":[32],"effectiveLocale":[32],"nextTip":[64],"previousTip":[64]}]]],["p-46a734f6",[[1,"calcite-alert",{"open":[1540],"autoClose":[516,"auto-close"],"autoCloseDuration":[513,"auto-close-duration"],"kind":[513],"icon":[520],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[1],"numberingSystem":[513,"numbering-system"],"placement":[513],"scale":[513],"messages":[1040],"messageOverrides":[1040],"slottedInShell":[1028,"slotted-in-shell"],"effectiveLocale":[32],"defaultMessages":[32],"hasEndActions":[32],"queue":[32],"queueLength":[32],"queued":[32],"requestedIcon":[32],"setFocus":[64]},[[8,"calciteInternalAlertSync","alertSync"],[8,"calciteInternalAlertRegister","alertRegister"]]]]],["p-89e11cd7",[[1,"calcite-block-section",{"open":[1540],"status":[513],"text":[1],"toggleDisplay":[513,"toggle-display"],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"defaultMessages":[32]}]]],["p-6d58612a",[[1,"calcite-input-number",{"alignment":[513],"autofocus":[516],"clearable":[516],"disabled":[516],"form":[513],"groupSeparator":[516,"group-separator"],"hidden":[516],"icon":[520],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[1],"loading":[516],"numberingSystem":[513,"numbering-system"],"localeFormat":[4,"locale-format"],"max":[514],"min":[514],"maxLength":[514,"max-length"],"minLength":[514,"min-length"],"name":[513],"numberButtonType":[513,"number-button-type"],"placeholder":[1],"prefixText":[1,"prefix-text"],"readOnly":[516,"read-only"],"required":[516],"scale":[1537],"status":[513],"step":[520],"autocomplete":[1],"inputMode":[1,"input-mode"],"enterKeyHint":[1,"enter-key-hint"],"suffixText":[1,"suffix-text"],"editingEnabled":[1540,"editing-enabled"],"value":[1025],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"defaultMessages":[32],"localizedValue":[32],"slottedActionElDisabledInternally":[32],"setFocus":[64],"selectText":[64]}]]],["p-237df0c8",[[1,"calcite-rating",{"average":[514],"count":[514],"disabled":[516],"form":[513],"messages":[1040],"messageOverrides":[1040],"name":[513],"readOnly":[516,"read-only"],"required":[516],"scale":[513],"showChip":[516,"show-chip"],"value":[1538],"effectiveLocale":[32],"defaultMessages":[32],"hoverValue":[32],"focusValue":[32],"hasFocus":[32],"setFocus":[64]}]]],["p-17f2a222",[[1,"calcite-accordion-item",{"expanded":[1540],"heading":[1],"description":[1],"iconStart":[513,"icon-start"],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"]},[[0,"keydown","keyDownHandler"],[16,"calciteInternalAccordionChange","updateActiveItemOnChange"]]]]],["p-ab8d5222",[[1,"calcite-avatar",{"scale":[513],"thumbnail":[513],"fullName":[513,"full-name"],"username":[513],"userId":[513,"user-id"],"thumbnailFailedToLoad":[32]}]]],["p-2ed9ead7",[[17,"calcite-pagination",{"groupSeparator":[516,"group-separator"],"messageOverrides":[1040],"pageSize":[514,"page-size"],"numberingSystem":[1,"numbering-system"],"startItem":[1538,"start-item"],"totalItems":[514,"total-items"],"scale":[513],"messages":[1040],"defaultMessages":[32],"effectiveLocale":[32],"setFocus":[64],"nextPage":[64],"previousPage":[64]}]]],["p-79b8a5f8",[[1,"calcite-stepper-item",{"selected":[1540],"complete":[516],"error":[516],"disabled":[516],"heading":[1],"description":[1],"layout":[1537],"icon":[1028],"iconFlipRtl":[516,"icon-flip-rtl"],"numbered":[1028],"scale":[1537],"effectiveLocale":[32],"setFocus":[64]},[[16,"calciteInternalStepperItemChange","updateActiveItemOnChange"]]]]],["p-5821b39b",[[1,"calcite-accordion",{"appearance":[513],"iconPosition":[513,"icon-position"],"iconType":[513,"icon-type"],"scale":[513],"selectionMode":[513,"selection-mode"]},[[0,"calciteInternalAccordionItemRegister","registerCalciteAccordionItem"],[0,"calciteInternalAccordionItemSelect","updateActiveItemOnChange"]]]]],["p-f8acb89b",[[1,"calcite-combobox-item-group",{"ancestors":[1040],"label":[1]}]]],["p-c82aa9db",[[1,"calcite-flow",{"flowDirection":[32],"itemCount":[32],"items":[32],"back":[64]},[[0,"calciteFlowItemBack","handleItemBackClick"]]]]],["p-7e847fc8",[[1,"calcite-list-item-group",{"disabled":[516],"heading":[513],"visualLevel":[32]}]]],["p-c781ae28",[[1,"calcite-option-group",{"disabled":[516],"label":[1]}]]],["p-f621722d",[[1,"calcite-pick-list-group",{"groupTitle":[513,"group-title"],"headingLevel":[514,"heading-level"]}]]],["p-c6bd7fa0",[[1,"calcite-radio-button",{"checked":[1540],"disabled":[516],"focused":[1540],"form":[513],"guid":[1537],"hidden":[516],"hovered":[1540],"label":[1],"name":[513],"required":[516],"scale":[513],"value":[1032],"setFocus":[64],"emitCheckedChange":[64]},[[1,"pointerenter","mouseenter"],[1,"pointerleave","mouseleave"]]]]],["p-a50e409f",[[17,"calcite-radio-button-group",{"disabled":[516],"hidden":[516],"layout":[513],"name":[513],"required":[516],"selectedItem":[1040],"scale":[513]},[[0,"calciteRadioButtonChange","radioButtonChangeHandler"]]]]],["p-8b814023",[[1,"calcite-shell-center-row",{"detached":[516],"heightScale":[513,"height-scale"],"position":[513]}]]],["p-d744bb71",[[1,"calcite-sortable-list",{"dragSelector":[513,"drag-selector"],"group":[513],"handleSelector":[513,"handle-selector"],"layout":[513],"disabled":[516],"loading":[516],"handleActivated":[32]},[[0,"calciteHandleNudge","calciteHandleNudgeNextHandler"]]]]],["p-4c726834",[[1,"calcite-stepper",{"icon":[516],"layout":[513],"numbered":[516],"numberingSystem":[513,"numbering-system"],"selectedItem":[1040],"scale":[513],"nextStep":[64],"prevStep":[64],"goToStep":[64],"startStep":[64],"endStep":[64]},[[0,"calciteInternalStepperItemKeyEvent","calciteInternalStepperItemKeyEvent"],[0,"calciteInternalStepperItemRegister","registerItem"],[0,"calciteInternalStepperItemSelect","updateItem"],[0,"calciteInternalUserRequestedStepperItemSelect","handleUserRequestedStepperItemSelect"]]]]],["p-368613d8",[[1,"calcite-text-area",{"autofocus":[516],"columns":[514],"disabled":[516],"form":[513],"groupSeparator":[516,"group-separator"],"label":[1],"maxLength":[514,"max-length"],"messages":[1040],"name":[513],"numberingSystem":[1,"numbering-system"],"placeholder":[1],"readOnly":[516,"read-only"],"required":[516],"resize":[513],"rows":[514],"scale":[513],"value":[1025],"wrap":[513],"messageOverrides":[1040],"defaultMessages":[32],"endSlotHasElements":[32],"startSlotHasElements":[32],"effectiveLocale":[32],"setFocus":[64],"selectText":[64]}]]],["p-45ecd824",[[1,"calcite-tile-select-group",{"disabled":[516],"layout":[513]}]]],["p-3984ca5b",[[1,"calcite-tip-group",{"groupTitle":[1,"group-title"]}]]],["p-6aabe903",[[1,"comment-card"]]],["p-ad41cd27",[[1,"crowdsource-reporter"]]],["p-ce3e73ae",[[1,"list-item"]]],["p-6aeb2614",[[0,"map-search",{"mapView":[16],"searchConfiguration":[1040],"_searchTerm":[32],"_translations":[32],"clear":[64]}]]],["p-8008b2fe",[[1,"deduct-calculator"]]],["p-653358ce",[[1,"pci-calculator",{"showAddDeduct":[32]}]]],["p-1c810f4c",[[0,"store-manager",{"value":[1537],"templates":[1040],"authentication":[1040]}]]],["p-69c5964a",[[1,"calcite-color-picker-hex-input",{"hexLabel":[1,"hex-label"],"allowEmpty":[4,"allow-empty"],"scale":[513],"value":[1537],"numberingSystem":[1,"numbering-system"],"internalColor":[32],"setFocus":[64]},[[2,"keydown","onInputKeyDown"]]]]],["p-b6d1419d",[[17,"calcite-date-picker",{"activeDate":[1040],"activeRange":[513,"active-range"],"value":[1025],"headingLevel":[514,"heading-level"],"valueAsDate":[1040],"minAsDate":[1040],"maxAsDate":[1040],"min":[513],"max":[513],"numberingSystem":[513,"numbering-system"],"scale":[513],"range":[516],"proximitySelectionDisabled":[516,"proximity-selection-disabled"],"messageOverrides":[1040],"messages":[1040],"activeStartDate":[32],"activeEndDate":[32],"startAsDate":[32],"endAsDate":[32],"effectiveLocale":[32],"defaultMessages":[32],"localeData":[32],"hoverRange":[32],"setFocus":[64]}]]],["p-5c343e95",[[1,"calcite-tile",{"active":[516],"description":[513],"disabled":[516],"embed":[516],"focused":[516],"heading":[513],"hidden":[516],"href":[513],"icon":[513],"iconFlipRtl":[516,"icon-flip-rtl"]}]]],["p-21418d87",[[17,"calcite-time-picker",{"scale":[513],"step":[514],"numberingSystem":[1,"numbering-system"],"value":[1025],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"hour":[32],"hourCycle":[32],"localizedHour":[32],"localizedHourSuffix":[32],"localizedMeridiem":[32],"localizedMinute":[32],"localizedMinuteSuffix":[32],"localizedSecond":[32],"localizedSecondSuffix":[32],"meridiem":[32],"minute":[32],"second":[32],"showSecond":[32],"defaultMessages":[32],"setFocus":[64]},[[0,"blur","hostBlurHandler"],[0,"focus","hostFocusHandler"],[0,"keydown","keyDownHandler"]]]]],["p-f595a05f",[[1,"calcite-label",{"alignment":[513],"for":[513],"scale":[513],"layout":[513]}]]],["p-60d82fa1",[[1,"calcite-icon",{"icon":[513],"flipRtl":[516,"flip-rtl"],"scale":[513],"textLabel":[1,"text-label"],"pathData":[32],"visible":[32]}]]],["p-2f4e1ddf",[[0,"layer-table",{"mapView":[16],"_layerView":[32],"_selectedIndexes":[32],"_translations":[32]}],[0,"map-card",{"mapInfos":[16],"mapView":[16],"_mapListExpanded":[32],"_translations":[32],"_webMapId":[32]}]]],["p-50ebdbe1",[[1,"media-card",{"values":[16],"_index":[32],"_translations":[32]}],[1,"info-card",{"cardTitle":[1,"card-title"],"values":[16]}]]],["p-26a04692",[[1,"calcite-link",{"disabled":[516],"download":[520],"href":[513],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"rel":[1],"target":[1],"setFocus":[64]},[[0,"click","clickHandler"]]]]],["p-9f6b4972",[[1,"calcite-color-picker-swatch",{"active":[516],"color":[1],"scale":[513]}]]],["p-2c28ce25",[[1,"calcite-action",{"active":[516],"alignment":[513],"appearance":[513],"compact":[516],"disabled":[516],"icon":[1],"iconFlipRtl":[516,"icon-flip-rtl"],"indicator":[516],"label":[1],"loading":[516],"scale":[513],"text":[1],"textEnabled":[516,"text-enabled"],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"defaultMessages":[32],"setFocus":[64]}],[1,"calcite-loader",{"inline":[516],"label":[1],"scale":[513],"type":[513],"value":[2],"text":[1]}]]],["p-a2aaa843",[[1,"calcite-pick-list-item",{"description":[513],"disabled":[516],"deselectDisabled":[516,"deselect-disabled"],"nonInteractive":[516,"non-interactive"],"icon":[513],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[513],"messageOverrides":[1040],"messages":[1040],"metadata":[16],"removable":[516],"selected":[1540],"value":[8],"defaultMessages":[32],"effectiveLocale":[32],"toggleSelected":[64],"setFocus":[64]}]]],["p-20222c16",[[1,"calcite-switch",{"disabled":[516],"form":[513],"label":[1],"name":[513],"scale":[513],"checked":[1540],"value":[8],"setFocus":[64]}]]],["p-5db22a5b",[[1,"calcite-checkbox",{"checked":[1540],"disabled":[516],"form":[513],"guid":[1537],"hovered":[516],"indeterminate":[1540],"label":[1],"name":[520],"required":[516],"scale":[513],"value":[8],"setFocus":[64]}]]],["p-7de66003",[[1,"calcite-scrim",{"loading":[516],"messages":[1040],"messageOverrides":[1040],"defaultMessages":[32],"effectiveLocale":[32]}]]],["p-caae8177",[[1,"calcite-button",{"alignment":[513],"appearance":[513],"label":[1],"kind":[513],"disabled":[516],"form":[513],"href":[513],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"loading":[516],"name":[513],"rel":[513],"round":[516],"scale":[513],"splitChild":[520,"split-child"],"target":[513],"type":[513],"width":[513],"messages":[1040],"messageOverrides":[1040],"hasContent":[32],"hasLoader":[32],"effectiveLocale":[32],"defaultMessages":[32],"setFocus":[64]}]]],["p-14180490",[[1,"calcite-action-menu",{"expanded":[516],"flipPlacements":[16],"label":[1],"open":[1540],"overlayPositioning":[513,"overlay-positioning"],"placement":[513],"scale":[513],"menuButtonEl":[32],"activeMenuItemIndex":[32],"setFocus":[64]},[[9,"pointerdown","closeCalciteActionMenuOnClick"]]],[1,"calcite-popover",{"autoClose":[516,"auto-close"],"closable":[516],"flipDisabled":[516,"flip-disabled"],"focusTrapDisabled":[516,"focus-trap-disabled"],"pointerDisabled":[516,"pointer-disabled"],"flipPlacements":[16],"heading":[1],"headingLevel":[514,"heading-level"],"label":[1],"messageOverrides":[1040],"messages":[1040],"offsetDistance":[514,"offset-distance"],"offsetSkidding":[514,"offset-skidding"],"open":[1540],"overlayPositioning":[513,"overlay-positioning"],"placement":[513],"referenceElement":[1,"reference-element"],"scale":[513],"triggerDisabled":[516,"trigger-disabled"],"effectiveLocale":[32],"effectiveReferenceElement":[32],"defaultMessages":[32],"reposition":[64],"setFocus":[64],"updateFocusTrapElements":[64]}]]],["p-5ed755a2",[[0,"solution-item",{"authentication":[1040],"itemId":[1537,"item-id"],"solutionVariables":[1537,"solution-variables"],"organizationVariables":[1537,"organization-variables"],"itemType":[32],"_translations":[32]}],[0,"solution-spatial-ref",{"defaultWkid":[1538,"default-wkid"],"locked":[1540],"value":[1537],"services":[1040],"loaded":[32],"spatialRef":[32],"_srSearchText":[32],"_translations":[32],"createSpatialRefDisplay":[64],"getSpatialRef":[64],"wkidToDisplay":[64]}],[0,"solution-contents",{"selectedItemId":[1537,"selected-item-id"],"templateHierarchy":[1040]}]]],["p-c273f446",[[1,"calcite-modal",{"open":[1540],"beforeClose":[16],"closeButtonDisabled":[516,"close-button-disabled"],"focusTrapDisabled":[516,"focus-trap-disabled"],"outsideCloseDisabled":[516,"outside-close-disabled"],"docked":[516],"escapeDisabled":[516,"escape-disabled"],"scale":[513],"width":[513],"fullscreen":[516],"kind":[513],"messages":[1040],"messageOverrides":[1040],"slottedInShell":[1028,"slotted-in-shell"],"cssWidth":[32],"cssHeight":[32],"hasFooter":[32],"hasContentTop":[32],"hasContentBottom":[32],"isOpen":[32],"effectiveLocale":[32],"defaultMessages":[32],"setFocus":[64],"updateFocusTrapElements":[64],"scrollContent":[64]},[[8,"keydown","handleEscape"]]]]],["p-5a858526",[[1,"calcite-graph",{"data":[16],"colorStops":[16],"highlightMin":[2,"highlight-min"],"highlightMax":[2,"highlight-max"],"min":[514],"max":[514]}]]],["p-38a02d9b",[[1,"calcite-tooltip",{"closeOnClick":[516,"close-on-click"],"label":[1],"offsetDistance":[514,"offset-distance"],"offsetSkidding":[514,"offset-skidding"],"open":[516],"overlayPositioning":[513,"overlay-positioning"],"placement":[513],"referenceElement":[1,"reference-element"],"effectiveReferenceElement":[32],"reposition":[64]}]]],["p-f8525286",[[1,"calcite-chip",{"appearance":[513],"kind":[513],"closable":[516],"icon":[513],"iconFlipRtl":[516,"icon-flip-rtl"],"scale":[513],"value":[8],"closed":[1540],"messageOverrides":[1040],"messages":[1040],"defaultMessages":[32],"effectiveLocale":[32],"hasContent":[32],"hasImage":[32],"setFocus":[64]}]]],["p-4bf4814f",[[1,"buffer-tools",{"appearance":[1025],"distance":[1026],"geometries":[1040],"max":[1026],"min":[1026],"sliderTicks":[1026,"slider-ticks"],"unionResults":[1028,"union-results"],"unit":[1025],"disabled":[4],"_translations":[32]}],[1,"calcite-input-message",{"icon":[520],"iconFlipRtl":[516,"icon-flip-rtl"],"scale":[1537],"status":[513]}],[0,"map-draw-tools",{"active":[4],"drawMode":[1,"draw-mode"],"editGraphicsEnabled":[4,"edit-graphics-enabled"],"graphics":[1040],"mapView":[1040],"pointSymbol":[1040],"polylineSymbol":[1040],"polygonSymbol":[1040],"redoEnabled":[4,"redo-enabled"],"undoEnabled":[4,"undo-enabled"],"_translations":[32],"_selectionMode":[32],"clear":[64],"updateGraphics":[64]}],[17,"calcite-slider",{"disabled":[516],"form":[513],"groupSeparator":[516,"group-separator"],"hasHistogram":[1540,"has-histogram"],"histogram":[16],"histogramStops":[16],"labelHandles":[516,"label-handles"],"labelTicks":[516,"label-ticks"],"max":[514],"maxLabel":[1,"max-label"],"maxValue":[1026,"max-value"],"min":[514],"minLabel":[1,"min-label"],"minValue":[1026,"min-value"],"mirrored":[516],"name":[513],"numberingSystem":[1,"numbering-system"],"pageStep":[514,"page-step"],"precise":[516],"required":[516],"snap":[516],"step":[514],"ticks":[514],"value":[1538],"scale":[513],"effectiveLocale":[32],"minMaxValueRange":[32],"minValueDragRange":[32],"maxValueDragRange":[32],"tickValues":[32],"setFocus":[64]},[[0,"keydown","keyDownHandler"],[1,"pointerdown","pointerDownHandler"]]]]],["p-62492a2d",[[0,"refine-selection",{"addresseeLayer":[16],"enabledLayerIds":[16],"mapView":[16],"selectionSets":[1040],"sketchLineSymbol":[16],"sketchPointSymbol":[16],"sketchPolygonSymbol":[16],"_translations":[32],"_selectionMode":[32],"_refineLayer":[32]}],[0,"map-select-tools",{"bufferColor":[8,"buffer-color"],"bufferOutlineColor":[8,"buffer-outline-color"],"customLabelEnabled":[4,"custom-label-enabled"],"enabledLayerIds":[16],"defaultBufferDistance":[2,"default-buffer-distance"],"defaultBufferUnit":[1,"default-buffer-unit"],"geometries":[16],"isUpdate":[4,"is-update"],"layerViews":[16],"mapView":[16],"noResultText":[1,"no-result-text"],"searchConfiguration":[1040],"selectionSet":[16],"selectionLayerIds":[16],"selectLayerView":[16],"sketchLineSymbol":[16],"sketchPointSymbol":[16],"sketchPolygonSymbol":[16],"_numSelected":[32],"_searchDistanceEnabled":[32],"_searchTerm":[32],"_selectionLoading":[32],"_translations":[32],"_useLayerFeaturesEnabled":[32],"clearSelection":[64],"getSelection":[64]},[[8,"searchConfigurationChange","searchConfigurationChangeChanged"],[8,"distanceChanged","distanceChanged"],[8,"unitChanged","unitChanged"]]],[1,"pdf-download",{"disabled":[4],"_translations":[32],"downloadCSV":[64],"downloadPDF":[64]}],[1,"calcite-input-text",{"alignment":[513],"autofocus":[516],"clearable":[516],"disabled":[516],"form":[513],"hidden":[516],"icon":[520],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[1],"loading":[516],"maxLength":[514,"max-length"],"minLength":[514,"min-length"],"name":[513],"placeholder":[1],"prefixText":[1,"prefix-text"],"readOnly":[516,"read-only"],"required":[516],"scale":[1537],"status":[513],"autocomplete":[1],"inputMode":[1,"input-mode"],"enterKeyHint":[1,"enter-key-hint"],"pattern":[1],"suffixText":[1,"suffix-text"],"editingEnabled":[1540,"editing-enabled"],"value":[1025],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"defaultMessages":[32],"slottedActionElDisabledInternally":[32],"setFocus":[64],"selectText":[64]}],[1,"calcite-notice",{"open":[1540],"kind":[513],"closable":[516],"icon":[520],"iconFlipRtl":[516,"icon-flip-rtl"],"scale":[513],"width":[513],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"defaultMessages":[32],"setFocus":[64]}]]],["p-7fe8073a",[[1,"calcite-date-picker-month",{"selectedDate":[16],"activeDate":[16],"startDate":[16],"endDate":[16],"min":[16],"max":[16],"scale":[513],"localeData":[16],"hoverRange":[16]},[[1,"pointerout","mouseoutHandler"]]],[1,"calcite-date-picker-month-header",{"selectedDate":[16],"activeDate":[16],"headingLevel":[2,"heading-level"],"min":[16],"max":[16],"scale":[513],"localeData":[16],"messages":[1040],"globalAttributes":[32],"nextMonthDate":[32],"prevMonthDate":[32]}],[1,"calcite-date-picker-day",{"day":[2],"disabled":[516],"currentMonth":[516,"current-month"],"selected":[516],"highlighted":[516],"range":[516],"startOfRange":[516,"start-of-range"],"endOfRange":[516,"end-of-range"],"rangeHover":[516,"range-hover"],"active":[516],"scale":[513],"value":[16]},[[1,"pointerover","mouseoverHandler"]]]]],["p-33efdea8",[[17,"calcite-action-group",{"expanded":[516],"layout":[513],"columns":[514],"menuOpen":[1540,"menu-open"],"scale":[513],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"defaultMessages":[32],"setFocus":[64]}]]],["p-a9f4a115",[[1,"calcite-block",{"collapsible":[516],"disabled":[516],"dragHandle":[516,"drag-handle"],"heading":[1],"headingLevel":[514,"heading-level"],"loading":[516],"open":[1540],"status":[513],"description":[1],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"defaultMessages":[32]}],[1,"calcite-pick-list",{"disabled":[516],"filteredItems":[1040],"filteredData":[1040],"filterEnabled":[516,"filter-enabled"],"filterPlaceholder":[513,"filter-placeholder"],"filterText":[1537,"filter-text"],"headingLevel":[514,"heading-level"],"loading":[516],"multiple":[516],"selectionFollowsFocus":[516,"selection-follows-focus"],"selectedValues":[32],"dataForFilter":[32],"getSelectedItems":[64],"setFocus":[64]},[[0,"calciteListItemRemove","calciteListItemRemoveHandler"],[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteInternalListItemPropsChange","calciteInternalListItemPropsChangeHandler"],[0,"calciteInternalListItemValueChange","calciteInternalListItemValueChangeHandler"],[0,"focusout","calciteListFocusOutHandler"]]],[17,"calcite-action-bar",{"expandDisabled":[516,"expand-disabled"],"expanded":[1540],"layout":[513],"overflowActionsDisabled":[516,"overflow-actions-disabled"],"position":[513],"scale":[513],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"defaultMessages":[32],"overflowActions":[64],"setFocus":[64]}],[1,"calcite-handle",{"activated":[1540],"dragHandle":[513,"drag-handle"],"messages":[16],"messageOverrides":[16],"effectiveLocale":[32],"defaultMessages":[32],"setFocus":[64]}]]],["p-add081e4",[[1,"edit-record-modal",{"open":[1028],"_translations":[32]}],[17,"calcite-split-button",{"appearance":[513],"kind":[513],"disabled":[516],"active":[1540],"dropdownIconType":[513,"dropdown-icon-type"],"dropdownLabel":[513,"dropdown-label"],"loading":[516],"overlayPositioning":[513,"overlay-positioning"],"primaryIconEnd":[513,"primary-icon-end"],"primaryIconFlipRtl":[513,"primary-icon-flip-rtl"],"primaryIconStart":[513,"primary-icon-start"],"primaryLabel":[513,"primary-label"],"primaryText":[513,"primary-text"],"scale":[513],"width":[513],"setFocus":[64]}],[1,"calcite-dropdown-item",{"selected":[1540],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"iconEnd":[513,"icon-end"],"href":[513],"label":[1],"rel":[513],"target":[513],"setFocus":[64]},[[0,"click","onClick"],[0,"keydown","keyDownHandler"],[16,"calciteInternalDropdownItemChange","updateActiveItemOnChange"]]],[17,"calcite-dropdown-group",{"groupTitle":[513,"group-title"],"selectionMode":[513,"selection-mode"],"scale":[513]},[[0,"calciteInternalDropdownItemSelect","updateActiveItemOnChange"]]],[17,"calcite-dropdown",{"open":[1540],"closeOnSelectDisabled":[516,"close-on-select-disabled"],"disabled":[516],"flipPlacements":[16],"maxItems":[514,"max-items"],"overlayPositioning":[513,"overlay-positioning"],"placement":[513],"scale":[513],"selectedItems":[1040],"type":[513],"width":[513],"setFocus":[64],"reposition":[64]},[[9,"pointerdown","closeCalciteDropdownOnClick"],[0,"calciteInternalDropdownCloseRequest","closeCalciteDropdownOnEvent"],[8,"calciteDropdownOpen","closeCalciteDropdownOnOpenEvent"],[1,"pointerenter","mouseEnterHandler"],[1,"pointerleave","mouseLeaveHandler"],[0,"calciteInternalDropdownItemKeyEvent","calciteInternalDropdownItemKeyEvent"],[0,"calciteInternalDropdownItemSelect","handleItemSelect"]]]]],["p-377184ef",[[1,"calcite-list",{"disabled":[516],"filterEnabled":[516,"filter-enabled"],"filteredItems":[1040],"filteredData":[1040],"filterPlaceholder":[513,"filter-placeholder"],"filterText":[1537,"filter-text"],"label":[1],"loading":[516],"openable":[4],"selectedItems":[1040],"selectionMode":[513,"selection-mode"],"selectionAppearance":[513,"selection-appearance"],"dataForFilter":[32],"setFocus":[64]},[[0,"calciteInternalFocusPreviousItem","handleCalciteInternalFocusPreviousItem"],[0,"calciteInternalListItemActive","handleCalciteListItemActive"],[0,"calciteInternalListItemSelect","handleCalciteListItemSelect"]]],[1,"calcite-list-item",{"active":[4],"description":[1],"disabled":[516],"label":[1],"metadata":[16],"open":[1540],"setSize":[2,"set-size"],"setPosition":[2,"set-position"],"selected":[1540],"value":[8],"selectionMode":[1025,"selection-mode"],"selectionAppearance":[1025,"selection-appearance"],"level":[32],"visualLevel":[32],"parentListEl":[32],"openable":[32],"hasActionsStart":[32],"hasActionsEnd":[32],"hasCustomContent":[32],"hasContentStart":[32],"hasContentEnd":[32],"setFocus":[64]}],[1,"calcite-segmented-control-item",{"checked":[1540],"iconFlipRtl":[516,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"iconEnd":[513,"icon-end"],"value":[1032]}],[1,"calcite-segmented-control",{"appearance":[513],"disabled":[516],"form":[513],"required":[516],"layout":[513],"name":[513],"scale":[513],"value":[1025],"selectedItem":[1040],"width":[513],"setFocus":[64]},[[0,"calciteInternalSegmentedControlItemChange","handleSelected"],[0,"keydown","handleKeyDown"]]],[17,"calcite-filter",{"items":[16],"disabled":[516],"filteredItems":[1040],"placeholder":[1],"scale":[513],"value":[1025],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"defaultMessages":[32],"setFocus":[64]}]]],["p-a134fb69",[[1,"calcite-shell",{"contentBehind":[516,"content-behind"],"hasHeader":[32],"hasFooter":[32],"hasAlerts":[32],"hasModals":[32]}],[1,"calcite-panel",{"closed":[1540],"disabled":[516],"closable":[516],"headingLevel":[514,"heading-level"],"loading":[516],"heading":[1],"description":[1],"menuOpen":[516,"menu-open"],"messageOverrides":[1040],"messages":[1040],"hasStartActions":[32],"hasEndActions":[32],"hasMenuItems":[32],"hasHeaderContent":[32],"hasFooterContent":[32],"hasFooterActions":[32],"hasFab":[32],"defaultMessages":[32],"effectiveLocale":[32],"setFocus":[64],"scrollContentTo":[64]}]]],["p-db099e05",[[0,"map-layer-picker",{"enabledLayerIds":[16],"mapView":[16],"selectedLayerIds":[1040],"selectionMode":[1537,"selection-mode"],"layerIds":[32]}],[1,"calcite-combobox",{"open":[1540],"disabled":[516],"form":[513],"label":[1],"placeholder":[1],"placeholderIcon":[513,"placeholder-icon"],"placeholderIconFlipRtl":[516,"placeholder-icon-flip-rtl"],"maxItems":[514,"max-items"],"name":[513],"allowCustomValues":[516,"allow-custom-values"],"overlayPositioning":[513,"overlay-positioning"],"required":[516],"selectionMode":[513,"selection-mode"],"scale":[513],"value":[1025],"flipPlacements":[16],"messages":[1040],"messageOverrides":[1040],"selectedItems":[1040],"filteredItems":[1040],"items":[32],"groupItems":[32],"needsIcon":[32],"activeItemIndex":[32],"activeChipIndex":[32],"activeDescendant":[32],"text":[32],"effectiveLocale":[32],"defaultMessages":[32],"reposition":[64],"setFocus":[64]},[[5,"pointerdown","documentClickHandler"],[0,"calciteComboboxItemChange","calciteComboboxItemChangeHandler"]]],[1,"calcite-combobox-item",{"disabled":[516],"selected":[1540],"active":[516],"ancestors":[1040],"guid":[513],"icon":[513],"iconFlipRtl":[516,"icon-flip-rtl"],"textLabel":[513,"text-label"],"value":[8],"filterDisabled":[516,"filter-disabled"]}]]],["p-d4bc51f5",[[0,"solution-item-icon",{"isPortal":[4,"is-portal"],"type":[1],"typeKeywords":[16]}],[1,"calcite-tree-item",{"disabled":[516],"expanded":[1540],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"selected":[1540],"parentExpanded":[4,"parent-expanded"],"depth":[1538],"hasChildren":[1540,"has-children"],"lines":[1540],"scale":[1537],"indeterminate":[516],"selectionMode":[1537,"selection-mode"],"updateAfterInitialRender":[32],"hasEndActions":[32]},[[0,"click","onClick"],[0,"keydown","keyDownHandler"]]],[1,"calcite-tree",{"lines":[1540],"child":[1540],"scale":[1537],"selectionMode":[1537,"selection-mode"],"selectedItems":[1040]},[[0,"focus","onFocus"],[0,"focusin","onFocusIn"],[0,"focusout","onFocusOut"],[0,"calciteInternalTreeItemSelect","onClick"],[0,"keydown","keyDownHandler"]]]]],["p-f82d8b5d",[[1,"calcite-select",{"disabled":[516],"form":[513],"label":[1],"name":[513],"required":[516],"scale":[513],"value":[1025],"selectedOption":[1040],"width":[513],"setFocus":[64]},[[0,"calciteInternalOptionChange","handleOptionOrGroupChange"],[0,"calciteInternalOptionGroupChange","handleOptionOrGroupChange"]]],[1,"calcite-option",{"disabled":[516],"label":[1025],"selected":[516],"value":[1032]}]]],["p-c749227e",[[1,"calcite-input",{"alignment":[513],"autofocus":[516],"clearable":[516],"disabled":[516],"form":[513],"groupSeparator":[516,"group-separator"],"hidden":[516],"icon":[520],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[1],"loading":[516],"numberingSystem":[513,"numbering-system"],"localeFormat":[4,"locale-format"],"max":[514],"min":[514],"maxLength":[514,"max-length"],"minLength":[514,"min-length"],"name":[513],"numberButtonType":[513,"number-button-type"],"placeholder":[1],"prefixText":[1,"prefix-text"],"readOnly":[516,"read-only"],"required":[516],"scale":[1537],"status":[1537],"step":[520],"autocomplete":[1],"pattern":[1],"accept":[1],"multiple":[4],"inputMode":[1,"input-mode"],"enterKeyHint":[1,"enter-key-hint"],"suffixText":[1,"suffix-text"],"editingEnabled":[1540,"editing-enabled"],"type":[513],"value":[1025],"messages":[1040],"messageOverrides":[1040],"effectiveLocale":[32],"defaultMessages":[32],"localizedValue":[32],"slottedActionElDisabledInternally":[32],"setFocus":[64],"selectText":[64],"internalSyncChildElValue":[64]}],[1,"calcite-progress",{"type":[513],"value":[2],"label":[1],"text":[1],"reversed":[516]}]]],["p-16dfb254",[[0,"solution-template-data",{"instanceid":[1537],"itemId":[1537,"item-id"],"organizationVariables":[1537,"organization-variables"],"solutionVariables":[1537,"solution-variables"],"varsOpen":[1540,"vars-open"],"_translations":[32],"value":[32]}],[1,"solution-resource-item",{"authentication":[1040],"itemId":[1537,"item-id"],"resourceFilePaths":[32],"resources":[32],"_translations":[32]}],[0,"solution-item-details",{"itemId":[1537,"item-id"],"itemDetails":[32],"itemEdit":[32],"_translations":[32],"thumbnail":[32],"thumbnailContainer":[32]},[[0,"calciteInputInput","inputReceivedHandler"]]],[1,"solution-item-sharing",{"groupId":[1537,"group-id"],"_translations":[32],"sharing":[32],"getShareInfo":[64]}],[1,"solution-variables",{"value":[1537],"_solutionVariables":[32],"_translations":[32]}],[1,"calcite-value-list-item",{"description":[513],"disabled":[516],"deselectDisabled":[4,"deselect-disabled"],"nonInteractive":[516,"non-interactive"],"handleActivated":[1028,"handle-activated"],"icon":[513],"iconFlipRtl":[516,"icon-flip-rtl"],"label":[513],"metadata":[16],"removable":[516],"selected":[1540],"value":[8],"toggleSelected":[64],"setFocus":[64]},[[0,"calciteListItemChange","calciteListItemChangeHandler"]]],[1,"solution-organization-variables",{"value":[1537],"_organizationVariables":[32],"_translations":[32]}],[0,"json-editor",{"hasChanges":[1540,"has-changes"],"hasErrors":[1540,"has-errors"],"instanceid":[1544],"value":[1544],"getEditorContents":[64],"prepareForDeletion":[64],"replaceCurrentSelection":[64],"reset":[64]}],[1,"calcite-tab-title",{"selected":[1540],"disabled":[516],"iconEnd":[513,"icon-end"],"iconFlipRtl":[513,"icon-flip-rtl"],"iconStart":[513,"icon-start"],"layout":[1537],"position":[1537],"scale":[1537],"bordered":[1540],"tab":[513],"controls":[32],"hasText":[32],"getTabIndex":[64],"getTabIdentifier":[64],"updateAriaInfo":[64]},[[16,"calciteInternalTabChange","internalTabChangeHandler"],[0,"click","onClick"],[0,"keydown","keyDownHandler"]]],[1,"calcite-shell-panel",{"collapsed":[516],"detached":[516],"detachedHeightScale":[513,"detached-height-scale"],"widthScale":[513,"width-scale"],"position":[513],"resizable":[516],"messages":[1040],"messageOverrides":[1040],"contentWidth":[32],"defaultMessages":[32],"effectiveLocale":[32]}],[1,"calcite-tab",{"tab":[513],"selected":[1540],"scale":[1537],"labeledBy":[32],"getTabIndex":[64],"updateAriaInfo":[64]},[[16,"calciteInternalTabChange","internalTabChangeHandler"]]],[1,"calcite-tab-nav",{"storageId":[513,"storage-id"],"syncId":[513,"sync-id"],"selectedTitle":[1040],"scale":[1537],"layout":[1537],"position":[1537],"bordered":[1540],"indicatorOffset":[1026,"indicator-offset"],"indicatorWidth":[1026,"indicator-width"],"selectedTabId":[32]},[[0,"calciteInternalTabsFocusPrevious","focusPreviousTabHandler"],[0,"calciteInternalTabsFocusNext","focusNextTabHandler"],[0,"calciteInternalTabsFocusFirst","focusFirstTabHandler"],[0,"calciteInternalTabsFocusLast","focusLastTabHandler"],[0,"calciteInternalTabsActivate","internalActivateTabHandler"],[0,"calciteTabsActivate","activateTabHandler"],[0,"calciteInternalTabTitleRegister","updateTabTitles"],[16,"calciteInternalTabChange","globalInternalTabChangeHandler"],[0,"calciteInternalTabIconChanged","iconStartChangeHandler"]]],[1,"calcite-tabs",{"layout":[513],"position":[513],"scale":[513],"bordered":[4],"titles":[32],"tabs":[32]},[[0,"calciteInternalTabTitleRegister","calciteInternalTabTitleRegister"],[16,"calciteTabTitleUnregister","calciteTabTitleUnregister"],[0,"calciteInternalTabRegister","calciteInternalTabRegister"],[16,"calciteTabUnregister","calciteTabUnregister"]]],[1,"calcite-value-list",{"disabled":[516],"dragEnabled":[516,"drag-enabled"],"filteredItems":[1040],"filteredData":[1040],"filterEnabled":[516,"filter-enabled"],"filterPlaceholder":[513,"filter-placeholder"],"filterText":[1537,"filter-text"],"group":[513],"loading":[516],"multiple":[516],"selectionFollowsFocus":[516,"selection-follows-focus"],"messageOverrides":[1040],"messages":[1040],"dataForFilter":[32],"defaultMessages":[32],"effectiveLocale":[32],"selectedValues":[32],"getSelectedItems":[64],"setFocus":[64]},[[0,"focusout","calciteListFocusOutHandler"],[0,"calciteListItemRemove","calciteListItemRemoveHandler"],[0,"calciteListItemChange","calciteListItemChangeHandler"],[0,"calciteInternalListItemPropsChange","calciteInternalListItemPropsChangeHandler"],[0,"calciteInternalListItemValueChange","calciteInternalListItemValueChangeHandler"],[0,"calciteValueListItemDragHandleBlur","handleValueListItemBlur"]]]]]]'),e))));
@@ -149,6 +149,12 @@ export declare class MapDrawTools {
149
149
  * @returns Promise when complete
150
150
  */
151
151
  componentDidLoad(): void;
152
+ /**
153
+ * StencilJS: Called every time the component is disconnected from the DOM
154
+ *
155
+ * @returns void
156
+ */
157
+ disconnectedCallback(): void;
152
158
  /**
153
159
  * Renders the component.
154
160
  */
@@ -186,12 +192,6 @@ export declare class MapDrawTools {
186
192
  * @protected
187
193
  */
188
194
  protected _clearSketch(): void;
189
- /**
190
- * Set the default create tool when we have no existing graphics
191
- *
192
- * @protected
193
- */
194
- protected _setDefaultCreateTool(): void;
195
195
  /**
196
196
  * Emit the undo event
197
197
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/solutions-components",
3
- "version": "0.5.11",
3
+ "version": "0.5.12",
4
4
  "description": "Web Components for Esri's Solutions Applications",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1,6 +0,0 @@
1
- /*!
2
- * Copyright 2022 Esri
3
- * Licensed under the Apache License, Version 2.0
4
- * http://www.apache.org/licenses/LICENSE-2.0
5
- */
6
- import{r as t,c as i,a as s,h as e,H as a,g as l}from"./p-f8be5d5f.js";import{a as n,b as o,c as d}from"./p-92de1de9.js";import{l as c}from"./p-d7ddd3a2.js";import{g as r,h}from"./p-4b426bab.js";import{s as p}from"./p-a29ba58a.js";import{g}from"./p-fc2277fe.js";import{c as b,r as m}from"./p-345f517c.js";import"./p-4ff653eb.js";import"./p-e1a4994d.js";const u=class{constructor(s){t(this,s),this.searchConfigurationChange=i(this,"searchConfigurationChange",7),this._onboardingImageUrl="",this._numSelected=0,this.addresseeLayerIds=[],this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.featureEffect=void 0,this.featureHighlightEnabled=void 0,this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionLayerIds=[],this.showRefineSelection=!1,this.showSearchSettings=!0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._addMap=!1,this._addTitle=!1,this._downloadActive=!0,this._exportType=n.PDF,this._numDuplicates=0,this._pageType=o.LIST,this._saveEnabled=!1,this._selectionSets=[],this._translations=void 0}async mapViewWatchHandler(t){(null==t?void 0:t.popup)&&(this._popupsEnabled=null==t?void 0:t.popup.autoOpenEnabled)}async watchSearchConfigurationHandler(t,i){const s=JSON.stringify(t);s!==JSON.stringify(i)&&(this._searchConfiguration=JSON.parse(s),this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}async sketchLineSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setLineSymbol(t)}async sketchPointSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPointSymbol(t)}async sketchPolygonSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPolygonSymbol(t)}async pageTypeWatchHandler(t,i){var s;if(this._checkPopups(),(null===(s=this.mapView)||void 0===s?void 0:s.popup)&&(this.mapView.popup.autoOpenEnabled=t===o.LIST&&this._popupsEnabled),t===o.EXPORT&&(this._numDuplicates=await this._getNumDuplicates()),this._clearHighlight(),i!==o.SELECT&&i!==o.REFINE||await this._clearSelection(),t!==o.SELECT)return this._highlightFeatures()}selectionSetsChanged(t){this._selectionSets=[...t.detail]}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initSymbols(),this._onboardingImageUrl=s("../assets/data/images/onboarding.png")}render(){return e(a,null,e("calcite-shell",null,e("calcite-action-bar",{class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:"header"},this._getActionGroup("list-check",o.LIST,this._translations.myLists),this.showRefineSelection?this._getActionGroup("test-data",o.REFINE,this._translations.refineSelection):null,this._getActionGroup("export",o.EXPORT,this._translations.export)),this._getPage(this._pageType)))}async _initModules(){const[t,i]=await c(["esri/geometry/geometryEngine","esri/symbols/support/jsonUtils"]);this._geometryEngine=t,this._jsonUtils=i}_initSymbols(){this._setLineSymbol(this.sketchLineSymbol),this._setPointSymbol(this.sketchPointSymbol),this._setPolygonSymbol(this.sketchPolygonSymbol)}_setLineSymbol(t){this.sketchLineSymbol="simple-line"===(null==t?void 0:t.type)?t:this._jsonUtils.fromJSON(t||{type:"esriSLS",color:[130,130,130,255],width:2,style:"esriSLSSolid"})}_setPointSymbol(t){this.sketchPointSymbol="simple-marker"===(null==t?void 0:t.type)?t:this._jsonUtils.fromJSON(t||{type:"esriSMS",color:[255,255,255,255],angle:0,xoffset:0,yoffset:0,size:6,style:"esriSMSCircle",outline:{type:"esriSLS",color:[50,50,50,255],width:1,style:"esriSLSSolid"}})}_setPolygonSymbol(t){this.sketchPolygonSymbol="simple-fill"===(null==t?void 0:t.type)?t:this._jsonUtils.fromJSON(t||{type:"esriSFS",color:[150,150,150,51],outline:{type:"esriSLS",color:[50,50,50,255],width:2,style:"esriSLSSolid"},style:"esriSFSSolid"})}_getActionGroup(t,i,s){return e("calcite-action-group",{class:"action-center"+(this.showRefineSelection?" w-1-3":" w-1-2"),layout:"horizontal"},e("calcite-action",{active:this._pageType===i,alignment:"center",class:"width-full height-full",compact:!1,icon:t,id:t,onClick:()=>{this._setPageType(i)},text:""}),e("calcite-tooltip",{label:"",placement:"bottom","reference-element":t},e("span",null,s)))}_setPageType(t){this._pageType=t}_getPage(t){let i;switch(t){case o.LIST:i=this._getListPage();break;case o.SELECT:i=this._getSelectPage();break;case o.EXPORT:i=this._getExportPage();break;case o.REFINE:i=this._getRefinePage()}return i}_getListPage(){const t=this._hasSelections();return e("calcite-panel",null,this._getLabel(this._translations.myLists),this._getNotice(t?this._translations.listHasSetsTip:this._translations.selectLayerAndAdd,"padding-sides-1 padding-bottom-1"),t?this._getSelectionSetList():this._getOnboardingImage(),e("div",{class:"display-flex padding-1"},e("calcite-button",{onClick:()=>{this._setPageType(o.SELECT)},width:"full"},this._translations.add)))}_getOnboardingImage(){return e("div",{class:"display-flex padding-sides-1"},e("img",{class:"img-container",src:this._onboardingImageUrl}))}_getSelectionSetList(){return e("div",{class:"padding-top-1-2 padding-bottom-1-2"},e("calcite-list",{class:"list-border margin-sides-1"},this._selectionSets.reduce(((t,i,s)=>{var a;const l=this._getSelectionSetIds(i);let n=!0;return i.workflowType===d.REFINE&&(n=Object.keys(i.refineInfos).reduce(((t,s)=>{const e=i.refineInfos[s];return t+(e.addIds.length+e.removeIds.length)}),0)>0),n&&t.push(e("calcite-list-item",{label:i.label,onClick:()=>this._gotoSelection(i,this.mapView)},e("div",{slot:"content"},e("div",{class:"list-label"},i.label),e("div",{class:"list-description"},null===(a=null==i?void 0:i.layerView)||void 0===a?void 0:a.layer.title),e("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",l.length.toString()))),this._getAction(!0,"pencil","",(t=>this._openSelection(i,t)),!1,"actions-end"),this._getAction(!0,"x","",(t=>this._deleteSelection(s,t)),!1,"actions-end"))),t}),[])))}_getSelectionSetIds(t){return t.workflowType!==d.REFINE?t.selectedIds:Object.keys(t.refineInfos).reduce(((i,s)=>[...i,...t.refineInfos[s].addIds]),[])}_hasSelections(t=!1){let i=[];const s=this._selectionSets.some((t=>{if(t.workflowType===d.REFINE)return i=this._getSelectionSetIds(t),!0}));return t&&s?i.length>0||this._selectionSets.length>1:this._selectionSets.length>0}async _getNumDuplicates(){const t=this._getExportInfos(),i=await b(t),s=m(i);return i.length-s.length}_getExportInfos(){return this._selectionSets.reduce(((t,i)=>(i.download&&(i.workflowType!==d.REFINE?this._updateIds(i.layerView.layer.id,i.layerView,i.selectedIds,t):Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];this._updateIds(s,e.layerView,e.addIds,t)}))),t)),{})}_updateIds(t,i,s,e){return e[t]?e[t].ids=e[t].ids.concat(s):e[t]={layerView:i,ids:s},e}_getSelectPage(){const t=this._translations.selectSearchTip;return e("calcite-panel",null,this._getLabel(this._translations.stepTwoFull,!0),this._getNotice(t),e("div",null,e("map-select-tools",{bufferColor:this.bufferColor,bufferOutlineColor:this.bufferOutlineColor,class:"font-bold",customLabelEnabled:this.customLabelEnabled,defaultBufferDistance:this.defaultBufferDistance,defaultBufferUnit:this.defaultBufferUnit,enabledLayerIds:this.addresseeLayerIds,isUpdate:!!this._activeSelection,mapView:this.mapView,noResultText:this.noResultText,onSelectionSetChange:t=>this._updateForSelection(t),ref:t=>{this._selectTools=t},searchConfiguration:this._searchConfiguration,selectionLayerIds:this.selectionLayerIds,selectionSet:this._activeSelection,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})),this._getPageNavButtons(this._translations.done,0===this._numSelected,(()=>{this._saveSelection()}),this._translations.cancel,!1,(()=>{this._home()})))}_getExportPage(){const t=this._hasSelections(this.showRefineSelection),i=this._numDuplicates>0?"display-block":"display-none";return e("calcite-panel",null,e("div",null,this._getLabel(this._translations.export,!1),t?e("div",null,this._getNotice(this._translations.exportTip,"padding-sides-1"),this._getLabel(this._translations.exportListsLabel),this._getExportSelectionLists(),e("div",{class:"padding-sides-1 "+i},e("div",{class:"display-flex"},e("calcite-label",{layout:"inline"},e("calcite-checkbox",{ref:t=>{this._removeDuplicates=t}}),e("div",{class:"display-flex"},this._translations.removeDuplicate,e("div",{class:"info-message padding-start-1-2"},e("calcite-input-message",{class:"info-blue margin-top-0",scale:"m"},` ${this._translations.numDuplicates.replace("{{n}}",this._numDuplicates.toString())}`)))),e("calcite-icon",{class:"padding-start-1-2 icon",icon:"question",id:"remove-duplicates-icon",scale:"s"})),e("calcite-popover",{closable:!0,label:"",referenceElement:"remove-duplicates-icon"},e("span",{class:"tooltip-message"},this._translations.duplicatesTip))),e("div",{class:"border-bottom"}),e("div",{class:"padding-top-sides-1"},e("calcite-segmented-control",{class:"w-100",onCalciteSegmentedControlChange:t=>this._exportTypeChange(t)},e("calcite-segmented-control-item",{checked:this._exportType===n.PDF,class:"w-50 end-border",value:n.PDF},this._translations.pdf),e("calcite-segmented-control-item",{checked:this._exportType===n.CSV,class:"w-50",value:n.CSV},this._translations.csv))),e("div",{class:"padding-bottom-1"},this._getExportOptions()),e("div",{class:"padding-1 display-flex"},e("calcite-button",{disabled:!this._downloadActive,onClick:()=>{this._export()},width:"full"},this._translations.export))):this._getNotice(this._translations.downloadNoLists,"padding-sides-1 padding-bottom-1")))}_exportTypeChange(t){this._exportType=t.target.value}_getExportOptions(){const t=this._addTitle?"display-block":"display-none";return e("div",{class:this._exportType===n.PDF?"display-block":"display-none"},this._getLabel(this._translations.pdfOptions,!0),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0"},this._translations.selectPDFLabelOption)),e("div",{class:"padding-sides-1"},e("pdf-download",{disabled:!this._downloadActive,ref:t=>{this._downloadTools=t}})),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._addTitle,onCalciteCheckboxChange:()=>this._addTitle=!this._addTitle}),this._translations.addTitle)),e("div",{class:t},this._getLabel(this._translations.title,!0,""),e("calcite-input-text",{class:"padding-sides-1",placeholder:this._translations.titlePlaceholder,ref:t=>{this._title=t}})),e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:"label-margin-0",layout:"inline"},e("calcite-checkbox",{checked:this._addMap,onCalciteCheckboxChange:()=>this._addMap=!this._addMap}),this._translations.includeMap)))}_getRefinePage(){const t=this._hasSelections();return e("calcite-panel",null,this._getLabel(this._translations.refineSelection),t?e("div",null,this._getNotice(this._translations.refineTip,"padding-sides-1"),e("refine-selection",{enabledLayerIds:this.selectionLayerIds,mapView:this.mapView,selectionSets:this._selectionSets,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})):this._getNotice(this._translations.refineTipNoSelections,"padding-sides-1"))}_getPageNavButtons(t,i,s,a,l,n){return e("div",null,e("div",{class:"display-flex padding-top-sides-1"},e("calcite-button",{disabled:i,onClick:s,width:"full"},t)),e("div",{class:"display-flex padding-top-1-2 padding-sides-1"},e("calcite-button",{appearance:"outline",disabled:l,onClick:n,width:"full"},a)))}_getNotice(t,i="padding-1"){return e("calcite-notice",{class:i,icon:"lightbulb",kind:"success",open:!0},e("div",{slot:"message"},t))}_getLabel(t,i=!1,s="font-bold"){return e("div",{class:"padding-top-sides-1"},e("calcite-label",{class:s+=i?" label-margin-0":""},t))}_getExportSelectionLists(){return this._selectionSets.reduce(((t,i)=>{var s;const a=this._getSelectionSetIds(i),l=i.workflowType!==d.REFINE||a.length>0;return!this._downloadActive&&i.download&&l&&(this._downloadActive=!0),l&&t.push(e("div",{class:"display-flex padding-sides-1 padding-bottom-1"},e("calcite-checkbox",{checked:i.download,class:"align-center",onClick:()=>{this._toggleDownload(i.id)}}),e("calcite-list",{class:"list-border margin-start-1-2 width-full",id:"download-list"},e("calcite-list-item",{disabled:!i.download,label:i.label,onClick:()=>{this._toggleDownload(i.id)}},e("div",{slot:"content"},e("div",{class:"list-label"},i.label),e("div",{class:"list-description"},null===(s=null==i?void 0:i.layerView)||void 0===s?void 0:s.layer.title),e("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",a.length.toString()))))))),t}),[])||e("div",null)}async _toggleDownload(t){let i=!1;this._selectionSets=this._selectionSets.map((s=>(s.download=s.id===t?!s.download:s.download,i=!!s.download||i,s))),this._downloadActive=i,this._numDuplicates=await this._getNumDuplicates(),await this._highlightFeatures()}async _export(){const t=this._getSelectionIdsAndViews(this._selectionSets,!0);if(this._exportType===n.PDF){let i="";if(this._addMap&&this.mapView){const t=await this.mapView.takeScreenshot({width:1500,height:2e3});i=null==t?void 0:t.dataUrl}this._downloadTools.downloadPDF(t,this._removeDuplicates.checked,this._addTitle?this._title.value:"",i)}this._exportType===n.CSV&&this._downloadTools.downloadCSV(t,this._removeDuplicates.checked)}_getSelectionIdsAndViews(t,i=!1){return(i?t.filter((t=>t.download)):t).reduce(((t,i)=>{var s;if(i.workflowType===d.REFINE)Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds&&(t=this._updateExportInfos(t,e.layerView.layer.id,i.label,e.addIds,e.layerView))}));else{const e=null===(s=null==i?void 0:i.layerView)||void 0===s?void 0:s.layer.id;t=this._updateExportInfos(t,e,i.label,i.selectedIds,i.layerView)}return t}),{})}_updateExportInfos(t,i,s,e,a){return i&&Object.keys(t).indexOf(i)>-1?(t[i].ids=[...new Set([...t[i].ids,...e])],t[i].selectionSetNames.push(s)):i&&(t[i]={ids:e,layerView:a,selectionSetNames:[s]}),t}_getAction(t,i,s,a,l=!1,n=""){return e("calcite-action",{disabled:!t,icon:i,indicator:l,onClick:a,slot:n,text:s})}_updateForSelection(t){this._numSelected=t.detail,this._saveEnabled=this._numSelected>0}async _home(){await this._clearSelection(),this._setPageType(o.LIST)}async _saveSelection(){var t,i;const s=await(null===(t=this._selectTools)||void 0===t?void 0:t.getSelection()),e=null===(i=this._selectTools)||void 0===i?void 0:i.isUpdate;return this._selectionSets=e?this._selectionSets.map((t=>t.id===s.id?s:t)):[...this._selectionSets,s],this._home()}async _clearSelection(){var t;await(null===(t=this._selectTools)||void 0===t?void 0:t.clearSelection()),this._numSelected=0,this._activeSelection=void 0}_deleteSelection(t,i){return i.stopPropagation(),this._selectionSets=this._selectionSets.filter(((i,s)=>{if(s!==t)return i})),this._highlightFeatures()}_gotoSelection(t,i){r(t.selectedIds,t.layerView,i,this.featureHighlightEnabled,this.featureEffect)}_openSelection(t,i){i.stopPropagation(),this._activeSelection=t,this._pageType=t.workflowType===d.REFINE?o.REFINE:o.SELECT}async _highlightFeatures(){this._clearHighlight();const t=this._getSelectionIdsAndViews(this._selectionSets,this._pageType===o.EXPORT),i=Object.keys(t);if(i.length>0)for(let s=0;s<i.length;s++){const e=t[i[s]];p.highlightHandles.push(await h(e.ids,e.layerView,this.mapView))}}_checkPopups(){var t;"boolean"!=typeof this._popupsEnabled&&(this._popupsEnabled=null===(t=this.mapView)||void 0===t?void 0:t.popup.autoOpenEnabled)}_clearHighlight(){p&&p.highlightHandles&&p.removeHandles()}async _getTranslations(){const t=await g(this.el);this._translations=t[0]}get el(){return l(this)}static get watchers(){return{mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"],sketchLineSymbol:["sketchLineSymbolWatchHandler"],sketchPointSymbol:["sketchPointSymbolWatchHandler"],sketchPolygonSymbol:["sketchPolygonSymbolWatchHandler"],_pageType:["pageTypeWatchHandler"]}}};u.style=':host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.action-center{-webkit-box-align:center;-webkit-align-items:center;-ms-grid-row-align:center;align-items:center;align-content:center;justify-content:center}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{-webkit-padding-before:1rem;padding-block-start:1rem;-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-sides-1{-webkit-padding-start:1rem;padding-inline-start:1rem;-webkit-padding-end:1rem;padding-inline-end:1rem}.padding-end-1-2{-webkit-padding-end:.5rem;padding-inline-end:.5rem}.padding-top-1-2{-webkit-padding-before:.5rem;padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-ui-border-2)}.padding-start-1-2{-webkit-padding-start:0.5rem;padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-ui-border-2)}.margin-sides-1{-webkit-margin-start:1rem;margin-inline-start:1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.margin-start-1-2{-webkit-margin-start:0.5rem;margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir="rtl"]{float:left}.float-left{float:left}.float-left[dir="rtl"]{float:right}.margin-top-0{-webkit-margin-before:0 !important;margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-ui-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir="rtl"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-ui-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{-webkit-margin-before:0.125rem;margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}.img-container{-o-object-fit:scale-down;object-fit:scale-down;width:100%;height:100%}';export{u as public_notification}