@esri/solutions-components 0.6.39 → 0.6.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/dist/cjs/card-manager_3.cjs.entry.js +1 -1
  2. package/dist/cjs/{downloadUtils-d8e48fbd.js → downloadUtils-9be94c17.js} +4 -2
  3. package/dist/cjs/{index.es-6159eedc.js → index.es-f8a598dc.js} +1 -1
  4. package/dist/cjs/map-select-tools_3.cjs.entry.js +1 -1
  5. package/dist/cjs/public-notification.cjs.entry.js +1 -1
  6. package/dist/collection/components/basemap-gallery/basemap-gallery.css +19 -19
  7. package/dist/collection/components/layout-manager/layout-manager.css +73 -73
  8. package/dist/collection/components/map-fullscreen/map-fullscreen.css +19 -19
  9. package/dist/collection/components/map-legend/map-legend.css +3 -3
  10. package/dist/collection/components/map-search/map-search.css +24 -24
  11. package/dist/collection/demos/new-public-notification.html +2 -2
  12. package/dist/collection/utils/__b302600c5c884ab280e2ff6dc2e1fc78.json +387 -0
  13. package/dist/collection/utils/downloadUtils.js +3 -1
  14. package/dist/collection/utils/downloadUtils.ts +3 -3
  15. package/dist/components/downloadUtils.js +3 -1
  16. package/dist/esm/card-manager_3.entry.js +1 -1
  17. package/dist/esm/{downloadUtils-d41ecba9.js → downloadUtils-c9f4592e.js} +4 -2
  18. package/dist/esm/{index.es-b226bf47.js → index.es-35932b31.js} +1 -1
  19. package/dist/esm/map-select-tools_3.entry.js +1 -1
  20. package/dist/esm/public-notification.entry.js +1 -1
  21. package/dist/solutions-components/demos/new-public-notification.html +2 -2
  22. package/dist/solutions-components/{p-56a3b81e.entry.js → p-0dfd47df.entry.js} +1 -1
  23. package/dist/solutions-components/{p-1b14b687.entry.js → p-5a2c1d3a.entry.js} +1 -1
  24. package/dist/solutions-components/{p-9ecb5d66.js → p-6f59f4ee.js} +1 -1
  25. package/dist/solutions-components/{p-a8661f1f.js → p-79beb262.js} +2 -2
  26. package/dist/solutions-components/{p-ba064f24.entry.js → p-db020d08.entry.js} +1 -1
  27. package/dist/solutions-components/solutions-components.esm.js +1 -1
  28. package/dist/solutions-components/utils/__b302600c5c884ab280e2ff6dc2e1fc78.json +387 -0
  29. package/dist/solutions-components/utils/downloadUtils.ts +3 -3
  30. package/dist/solutions-components_commit.txt +8 -0
  31. package/package.json +1 -1
  32. package/dist/esm/polyfills/core-js.js +0 -11
  33. package/dist/esm/polyfills/dom.js +0 -79
  34. package/dist/esm/polyfills/es5-html-element.js +0 -1
  35. package/dist/esm/polyfills/index.js +0 -34
  36. package/dist/esm/polyfills/system.js +0 -6
@@ -0,0 +1,387 @@
1
+ {
2
+ "operationalLayers": [
3
+ {
4
+ "id": "18a09252edc-layer-3",
5
+ "title": "PN related records - Site Addresses",
6
+ "url": "https://services6.arcgis.com/Pu6Fai10JE2L2xUd/arcgis/rest/services/PN_related_records/FeatureServer/0",
7
+ "itemId": "e8549e36bdbd4b8d82e69172339d0224",
8
+ "layerType": "ArcGISFeatureLayer",
9
+ "popupInfo": {
10
+ "popupElements": [
11
+ {
12
+ "type": "relationship",
13
+ "description": "",
14
+ "displayCount": 1,
15
+ "displayType": "list",
16
+ "orderByFields": [
17
+ {
18
+ "field": "OBJECTID",
19
+ "order": "asc"
20
+ }
21
+ ],
22
+ "relationshipId": 0,
23
+ "title": ""
24
+ }
25
+ ],
26
+ "relatedRecordsInfo": {
27
+ "showRelatedRecords": true,
28
+ "orderByFields": [
29
+ {
30
+ "field": "relationships/0/OBJECTID",
31
+ "order": "asc"
32
+ }
33
+ ]
34
+ },
35
+ "expressionInfos": [
36
+ {
37
+ "name": "expr0",
38
+ "title": "Get first record from the parent layer",
39
+ "expression": "// Write a script to return a value to show in the pop-up. \n// For example, get the average of 4 fields:\n// Average($feature.SalesQ1, $feature.SalesQ2, $feature.SalesQ3, $feature.SalesQ4)\nvar relatedFeatures = FeatureSetByRelationshipName($feature, \"\", [\"*\"], false)\n//return relatedFeatures\nreturn First(relatedFeatures)['SITEADDkey']\n",
40
+ "returnType": "string"
41
+ }
42
+ ],
43
+ "fieldInfos": [
44
+ {
45
+ "fieldName": "OBJECTID",
46
+ "format": {
47
+ "digitSeparator": false,
48
+ "places": 0
49
+ },
50
+ "isEditable": false,
51
+ "label": "OBJECTID",
52
+ "visible": true
53
+ },
54
+ {
55
+ "fieldName": "SITEADDID",
56
+ "isEditable": true,
57
+ "label": "Site Address ID",
58
+ "visible": true
59
+ },
60
+ {
61
+ "fieldName": "ADDPTKEY",
62
+ "isEditable": true,
63
+ "label": "Address Point ID",
64
+ "visible": true
65
+ },
66
+ {
67
+ "fieldName": "PREADDRNUM",
68
+ "isEditable": true,
69
+ "label": "Address Number Prefix",
70
+ "visible": true
71
+ },
72
+ {
73
+ "fieldName": "ADDRNUMSUF",
74
+ "isEditable": true,
75
+ "label": "Address Number Suffix",
76
+ "visible": true
77
+ },
78
+ {
79
+ "fieldName": "ADDRNUM",
80
+ "isEditable": true,
81
+ "label": "Full Address Number",
82
+ "visible": true
83
+ },
84
+ {
85
+ "fieldName": "ADDRRANGE",
86
+ "isEditable": true,
87
+ "label": "Address Range",
88
+ "visible": true
89
+ },
90
+ {
91
+ "fieldName": "UNITTYPE",
92
+ "isEditable": true,
93
+ "label": "Address Unit Type",
94
+ "visible": true
95
+ },
96
+ {
97
+ "fieldName": "UNITID",
98
+ "isEditable": true,
99
+ "label": "Address Unit Number",
100
+ "visible": true
101
+ },
102
+ {
103
+ "fieldName": "ALTUNITTYPE",
104
+ "isEditable": true,
105
+ "label": "Alternate Address Unit Type",
106
+ "visible": true
107
+ },
108
+ {
109
+ "fieldName": "ALTUNITID",
110
+ "isEditable": true,
111
+ "label": "Alternate Address Unit Number",
112
+ "visible": true
113
+ },
114
+ {
115
+ "fieldName": "FULLNAME",
116
+ "isEditable": true,
117
+ "label": "Full Road Name",
118
+ "visible": true
119
+ },
120
+ {
121
+ "fieldName": "FULLADDR",
122
+ "isEditable": true,
123
+ "label": "Full Address",
124
+ "visible": true
125
+ },
126
+ {
127
+ "fieldName": "PLACENAME",
128
+ "isEditable": true,
129
+ "label": "Place Name",
130
+ "visible": true
131
+ },
132
+ {
133
+ "fieldName": "MUNICIPALITY",
134
+ "isEditable": true,
135
+ "label": "Municipality Name",
136
+ "visible": true
137
+ },
138
+ {
139
+ "fieldName": "ESN",
140
+ "isEditable": true,
141
+ "label": "Emergency Service Number",
142
+ "visible": true
143
+ },
144
+ {
145
+ "fieldName": "PSAP",
146
+ "isEditable": true,
147
+ "label": "Public Safety Answering Point",
148
+ "visible": true
149
+ },
150
+ {
151
+ "fieldName": "MSAG",
152
+ "isEditable": true,
153
+ "label": "MSAG Community",
154
+ "visible": true
155
+ },
156
+ {
157
+ "fieldName": "USNGCOORD",
158
+ "isEditable": true,
159
+ "label": "USNG Coordinate",
160
+ "visible": true
161
+ },
162
+ {
163
+ "fieldName": "ADDRCLASS",
164
+ "format": {
165
+ "digitSeparator": false,
166
+ "places": 0
167
+ },
168
+ "isEditable": true,
169
+ "label": "Description",
170
+ "visible": true
171
+ },
172
+ {
173
+ "fieldName": "POINTTYPE",
174
+ "isEditable": true,
175
+ "label": "Location",
176
+ "visible": true
177
+ },
178
+ {
179
+ "fieldName": "CAPTUREMETH",
180
+ "isEditable": true,
181
+ "label": "Capture Method",
182
+ "visible": true
183
+ },
184
+ {
185
+ "fieldName": "STATUS",
186
+ "isEditable": true,
187
+ "label": "Status",
188
+ "visible": true
189
+ },
190
+ {
191
+ "fieldName": "expression/expr0",
192
+ "isEditable": true,
193
+ "visible": false
194
+ }
195
+ ],
196
+ "title": ""
197
+ }
198
+ }
199
+ ],
200
+ "tables": [
201
+ {
202
+ "id": "18a09252edd-layer-4",
203
+ "title": "PN related records - Postal Addresses",
204
+ "url": "https://services6.arcgis.com/Pu6Fai10JE2L2xUd/arcgis/rest/services/PN_related_records/FeatureServer/3",
205
+ "itemId": "e8549e36bdbd4b8d82e69172339d0224",
206
+ "popupInfo": {
207
+ "popupElements": [
208
+ {
209
+ "type": "text",
210
+ "text": "<p>{expression/expr0}&nbsp;&nbsp;&nbsp;<br />{OWNERNM1}&nbsp;&nbsp;&nbsp;<br />{PSTLADDRESS}&nbsp;&nbsp;&nbsp;<br />{PSTLCITY} , {PSTLSTATE}, {PSTLZIP5}&nbsp;<\/p>"
211
+ }
212
+ ],
213
+ "description": "<p>{expression/expr0}&nbsp;&nbsp;&nbsp;<br />{OWNERNM1}&nbsp;&nbsp;&nbsp;<br />{PSTLADDRESS}&nbsp;&nbsp;&nbsp;<br />{PSTLCITY} , {PSTLSTATE}, {PSTLZIP5}&nbsp;<\/p>",
214
+ "expressionInfos": [
215
+ {
216
+ "name": "expr0",
217
+ "title": "New expression",
218
+ "expression": "// Write a script to return a value to show in the pop-up. \n// For example, get the average of 4 fields:\n// Average($feature.SalesQ1, $feature.SalesQ2, $feature.SalesQ3, $feature.SalesQ4)\nvar relatedFeatures = FeatureSetByRelationshipName($feature, \"\", [\"*\"], false)\nreturn First(relatedFeatures)['SITEADDID']\n",
219
+ "returnType": "string"
220
+ }
221
+ ],
222
+ "fieldInfos": [
223
+ {
224
+ "fieldName": "OBJECTID",
225
+ "format": {
226
+ "digitSeparator": false,
227
+ "places": 0
228
+ },
229
+ "isEditable": false,
230
+ "label": "OBJECTID",
231
+ "visible": true
232
+ },
233
+ {
234
+ "fieldName": "PSTLADDID",
235
+ "isEditable": true,
236
+ "label": "Postal Address Identifier",
237
+ "visible": true
238
+ },
239
+ {
240
+ "fieldName": "SITEADDKEY",
241
+ "isEditable": true,
242
+ "label": "Site Address ID",
243
+ "visible": true
244
+ },
245
+ {
246
+ "fieldName": "OWNERNM1",
247
+ "isEditable": true,
248
+ "label": "Owner Name",
249
+ "visible": true
250
+ },
251
+ {
252
+ "fieldName": "OWNERNM2",
253
+ "isEditable": true,
254
+ "label": "Owner Name",
255
+ "visible": true
256
+ },
257
+ {
258
+ "fieldName": "PSTLADDRESS",
259
+ "isEditable": true,
260
+ "label": "Postal Address",
261
+ "visible": true
262
+ },
263
+ {
264
+ "fieldName": "PSTLCITY",
265
+ "isEditable": true,
266
+ "label": "Postal City",
267
+ "visible": true
268
+ },
269
+ {
270
+ "fieldName": "PSTLSTATE",
271
+ "isEditable": true,
272
+ "label": "Postal State",
273
+ "visible": true
274
+ },
275
+ {
276
+ "fieldName": "PSTLZIP5",
277
+ "isEditable": true,
278
+ "label": "Postal Zip 5",
279
+ "visible": true
280
+ },
281
+ {
282
+ "fieldName": "PSTLZIP4",
283
+ "isEditable": true,
284
+ "label": "Postal Zip +4",
285
+ "visible": true
286
+ },
287
+ {
288
+ "fieldName": "INTSTATE",
289
+ "isEditable": true,
290
+ "label": "International State",
291
+ "visible": true
292
+ },
293
+ {
294
+ "fieldName": "INTPSTLCD",
295
+ "isEditable": true,
296
+ "label": "International Postal Code",
297
+ "visible": true
298
+ },
299
+ {
300
+ "fieldName": "COUNTRY",
301
+ "isEditable": true,
302
+ "label": "Country",
303
+ "visible": true
304
+ },
305
+ {
306
+ "fieldName": "USPSBOXTYPE",
307
+ "isEditable": true,
308
+ "label": "USPS Box Type",
309
+ "visible": true
310
+ },
311
+ {
312
+ "fieldName": "USPSBOXID",
313
+ "isEditable": true,
314
+ "label": "USPS Box Identifier",
315
+ "visible": true
316
+ },
317
+ {
318
+ "fieldName": "USPSBOXGRP",
319
+ "isEditable": true,
320
+ "label": "USPS Box Group",
321
+ "visible": true
322
+ },
323
+ {
324
+ "fieldName": "REPRESENT",
325
+ "isEditable": true,
326
+ "label": "Owner / Occupant",
327
+ "visible": true
328
+ },
329
+ {
330
+ "fieldName": "STATUS",
331
+ "isEditable": true,
332
+ "label": "Status",
333
+ "visible": true
334
+ },
335
+ {
336
+ "fieldName": "expression/expr0",
337
+ "isEditable": true,
338
+ "visible": false
339
+ }
340
+ ],
341
+ "title": ""
342
+ }
343
+ }
344
+ ],
345
+ "baseMap": {
346
+ "baseMapLayers": [
347
+ {
348
+ "id": "World_Hillshade_3805",
349
+ "opacity": 1,
350
+ "title": "World Hillshade",
351
+ "url": "https://services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",
352
+ "visibility": true,
353
+ "layerType": "ArcGISTiledMapServiceLayer"
354
+ },
355
+ {
356
+ "id": "VectorTile_2333",
357
+ "opacity": 1,
358
+ "title": "World Topographic Map",
359
+ "visibility": true,
360
+ "layerType": "VectorTileLayer",
361
+ "styleUrl": "https://cdn.arcgis.com/sharing/rest/content/items/7dc6cea0b1764a1f9af2e679f642f0f5/resources/styles/root.json"
362
+ }
363
+ ],
364
+ "title": "Topographic"
365
+ },
366
+ "authoringApp": "ArcGISMapViewer",
367
+ "authoringAppVersion": "2023.2",
368
+ "initialState": {
369
+ "viewpoint": {
370
+ "targetGeometry": {
371
+ "spatialReference": {
372
+ "latestWkid": 3857,
373
+ "wkid": 102100
374
+ },
375
+ "xmin": -9907730.599516412,
376
+ "ymin": 5079172.794841483,
377
+ "xmax": -9781762.376902392,
378
+ "ymax": 5179916.798121383
379
+ }
380
+ }
381
+ },
382
+ "spatialReference": {
383
+ "latestWkid": 3857,
384
+ "wkid": 102100
385
+ },
386
+ "version": "2.28"
387
+ }
@@ -745,7 +745,9 @@ export async function _prepareLabelsUsingExecutor(featureSet, labelFormat) {
745
745
  const execResults = await Promise.all(featureSet.map(async (feature) => {
746
746
  return labelFormat.executeAsync({ "$feature": feature });
747
747
  }));
748
- const labels = execResults.map(result => _cleanupLabel(result.text).split(lineSeparatorChar));
748
+ const labels = execResults
749
+ .filter(result => result.text)
750
+ .map(result => _cleanupLabel(result.text).split(lineSeparatorChar));
749
751
  return Promise.resolve(labels);
750
752
  }
751
753
  //#endregion
@@ -1000,9 +1000,9 @@ export async function _prepareLabelsUsingExecutor(
1000
1000
  }
1001
1001
  ));
1002
1002
 
1003
- const labels = execResults.map(
1004
- result => _cleanupLabel(result.text).split(lineSeparatorChar)
1005
- )
1003
+ const labels = execResults
1004
+ .filter(result => result.text)
1005
+ .map(result => _cleanupLabel(result.text).split(lineSeparatorChar))
1006
1006
 
1007
1007
  return Promise.resolve(labels);
1008
1008
  }
@@ -3061,7 +3061,9 @@ async function _prepareLabelsUsingExecutor(featureSet, labelFormat) {
3061
3061
  const execResults = await Promise.all(featureSet.map(async (feature) => {
3062
3062
  return labelFormat.executeAsync({ "$feature": feature });
3063
3063
  }));
3064
- const labels = execResults.map(result => _cleanupLabel(result.text).split(lineSeparatorChar));
3064
+ const labels = execResults
3065
+ .filter(result => result.text)
3066
+ .map(result => _cleanupLabel(result.text).split(lineSeparatorChar));
3065
3067
  return Promise.resolve(labels);
3066
3068
  }
3067
3069
  //#endregion
@@ -7,7 +7,7 @@ import { r as registerInstance, h, H as Host, g as getElement, c as createEvent
7
7
  import { g as getLocaleComponentStrings } from './locale-6be4e8f0.js';
8
8
  import { q as queryFeaturesByID, a as getLayerOrTable, g as goToSelection, b as queryAllIds } from './mapViewUtils-1e2befd7.js';
9
9
  import { l as loadModules } from './loadModules-687a30c5.js';
10
- import { d as downloadCSV } from './downloadUtils-d41ecba9.js';
10
+ import { d as downloadCSV } from './downloadUtils-c9f4592e.js';
11
11
  import './_commonjsHelpers-d5f9d613.js';
12
12
  import './interfaces-7470d906.js';
13
13
  import './solution-resource-be35d35b.js';
@@ -1507,7 +1507,7 @@ function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++
1507
1507
  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1508
1508
  * ====================================================================
1509
1509
  */
1510
- function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):import('./index.es-b226bf47.js')).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}E.API.addSvgAsImage=function(t,r,n,i,o,s,c,u){if(isNaN(r)||isNaN(n))throw a.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw a.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=i,h.height=o;var l=h.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,h.width,h.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return e().then((function(e){return e.fromString(l,t,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(f)})).then((function(){d.addImage(h.toDataURL("image/jpeg",1),r,n,i,o,c,u);}))};}(),E.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,r);return this},E.API.viewerPreferences=function(e,r){var n;e=e||{},r=r||!1;var i,a,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},c=Object.keys(s),u=[],h=0,l=0,f=0;function d(t,e){var r,n=!1;for(r=0;r<t.length;r+=1)t[r]===e&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===r){var p=c.length;for(f=0;f<p;f+=1)n[c[f]].value=n[c[f]].defaultValue,n[c[f]].explicitSet=!1;}if("object"===t(e))for(a in e)if(o=e[a],d(c,a)&&void 0!==o){if("boolean"===n[a].type&&"boolean"==typeof o)n[a].value=o;else if("name"===n[a].type&&d(n[a].valueSet,o))n[a].value=o;else if("integer"===n[a].type&&Number.isInteger(o))n[a].value=o;else if("array"===n[a].type){for(h=0;h<o.length;h+=1)if(i=!0,1===o[h].length&&"number"==typeof o[h][0])u.push(String(o[h]-1));else if(o[h].length>1){for(l=0;l<o[h].length;l+=1)"number"!=typeof o[h][l]&&(i=!1);!0===i&&u.push([o[h][0]-1,o[h][1]-1].join(" "));}n[a].value="["+u.join(" ")+"]";}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0;}return !1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>");})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},
1510
+ function(t){function e(){return (n.canvg?Promise.resolve(n.canvg):import('./index.es-35932b31.js')).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}E.API.addSvgAsImage=function(t,r,n,i,o,s,c,u){if(isNaN(r)||isNaN(n))throw a.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw a.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=i,h.height=o;var l=h.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,h.width,h.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return e().then((function(e){return e.fromString(l,t,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(f)})).then((function(){d.addImage(h.toDataURL("image/jpeg",1),r,n,i,o,c,u);}))};}(),E.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,r);return this},E.API.viewerPreferences=function(e,r){var n;e=e||{},r=r||!1;var i,a,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},c=Object.keys(s),u=[],h=0,l=0,f=0;function d(t,e){var r,n=!1;for(r=0;r<t.length;r+=1)t[r]===e&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===r){var p=c.length;for(f=0;f<p;f+=1)n[c[f]].value=n[c[f]].defaultValue,n[c[f]].explicitSet=!1;}if("object"===t(e))for(a in e)if(o=e[a],d(c,a)&&void 0!==o){if("boolean"===n[a].type&&"boolean"==typeof o)n[a].value=o;else if("name"===n[a].type&&d(n[a].valueSet,o))n[a].value=o;else if("integer"===n[a].type&&Number.isInteger(o))n[a].value=o;else if("array"===n[a].type){for(h=0;h<o.length;h+=1)if(i=!0,1===o[h].length&&"number"==typeof o[h][0])u.push(String(o[h]-1));else if(o[h].length>1){for(l=0;l<o[h].length;l+=1)"number"!=typeof o[h][l]&&(i=!1);!0===i&&u.push([o[h][0]-1,o[h][1]-1].join(" "));}n[a].value="["+u.join(" ")+"]";}else n[a].value=n[a].defaultValue;n[a].explicitSet=!0;}return !1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>");})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},
1511
1511
  /** ====================================================================
1512
1512
  * @license
1513
1513
  * jsPDF XMP metadata plugin
@@ -3061,7 +3061,9 @@ async function _prepareLabelsUsingExecutor(featureSet, labelFormat) {
3061
3061
  const execResults = await Promise.all(featureSet.map(async (feature) => {
3062
3062
  return labelFormat.executeAsync({ "$feature": feature });
3063
3063
  }));
3064
- const labels = execResults.map(result => _cleanupLabel(result.text).split(lineSeparatorChar));
3064
+ const labels = execResults
3065
+ .filter(result => result.text)
3066
+ .map(result => _cleanupLabel(result.text).split(lineSeparatorChar));
3065
3067
  return Promise.resolve(labels);
3066
3068
  }
3067
3069
  //#endregion
@@ -4,7 +4,7 @@
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
6
  import { a as commonjsGlobal, c as createCommonjsModule, g as getDefaultExportFromCjs } from './_commonjsHelpers-d5f9d613.js';
7
- import { _ as _typeof_1 } from './downloadUtils-d41ecba9.js';
7
+ import { _ as _typeof_1 } from './downloadUtils-c9f4592e.js';
8
8
  import './index-0740c914.js';
9
9
  import './loadModules-687a30c5.js';
10
10
  import './locale-6be4e8f0.js';
@@ -9,7 +9,7 @@ import { g as goToSelection, h as highlightFeatures, c as queryObjectIds, d as g
9
9
  import { c as EWorkflowType, e as ESelectionMode, f as EDrawMode } from './interfaces-7470d906.js';
10
10
  import { s as state } from './publicNotificationStore-f25d1e95.js';
11
11
  import { a as getComponentClosestLanguage, g as getLocaleComponentStrings } from './locale-6be4e8f0.js';
12
- import { d as downloadCSV, a as downloadPDF } from './downloadUtils-d41ecba9.js';
12
+ import { d as downloadCSV, a as downloadPDF } from './downloadUtils-c9f4592e.js';
13
13
  import './index-71d123d4.js';
14
14
  import './_commonjsHelpers-d5f9d613.js';
15
15
  import './solution-resource-be35d35b.js';
@@ -9,7 +9,7 @@ import { l as loadModules } from './loadModules-687a30c5.js';
9
9
  import { g as goToSelection, h as highlightFeatures } from './mapViewUtils-1e2befd7.js';
10
10
  import { s as state } from './publicNotificationStore-f25d1e95.js';
11
11
  import { g as getLocaleComponentStrings } from './locale-6be4e8f0.js';
12
- import { c as consolidateLabels, r as removeDuplicateLabels } from './downloadUtils-d41ecba9.js';
12
+ import { c as consolidateLabels, r as removeDuplicateLabels } from './downloadUtils-c9f4592e.js';
13
13
  import './index-71d123d4.js';
14
14
  import './_commonjsHelpers-d5f9d613.js';
15
15
  import './solution-resource-be35d35b.js';
@@ -74,11 +74,11 @@
74
74
  Legend,
75
75
  esriConfig
76
76
  ) => {
77
- //esriConfig.portalUrl = "https://solutions.mapsdevext.arcgis.com";
77
+ esriConfig.portalUrl = "https://solutions.mapsdevext.arcgis.com";
78
78
  var webMap = new WebMap({
79
79
  portalItem: {
80
80
  // solutions
81
- id: "3715f4899bea4b2a948347c5c2357e58"
81
+ id: "345b00e4026b493bae5cbe6fe9fe82d7"
82
82
  // InstantApps
83
83
  //id: "863e4f6f2a7840db896cc1b1606d552d"
84
84
  }