@esri/solutions-components 0.11.31 → 0.11.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/cjs/{asyncToGenerator-c7fc3ee4.js → asyncToGenerator-ccb3278b.js} +1 -1
  2. package/dist/cjs/basemap-gallery_7.cjs.entry.js +14 -9
  3. package/dist/cjs/buffer-tools_2.cjs.entry.js +1 -1
  4. package/dist/cjs/card-manager_3.cjs.entry.js +91 -14
  5. package/dist/cjs/consent-manager.cjs.entry.js +3 -3
  6. package/dist/cjs/create-feature_4.cjs.entry.js +11 -12
  7. package/dist/cjs/create-related-feature_3.cjs.entry.js +1 -1
  8. package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
  9. package/dist/cjs/crowdsource-reporter.cjs.entry.js +9 -2
  10. package/dist/cjs/delete-dialog.cjs.entry.js +1 -1
  11. package/dist/cjs/{downloadUtils-c7dac47d.js → downloadUtils-fefa863b.js} +3 -3
  12. package/dist/cjs/feature-list.cjs.entry.js +4 -4
  13. package/dist/cjs/{index.es-3c2404c3.js → index.es-0441a948.js} +2 -2
  14. package/dist/cjs/json-editor_7.cjs.entry.js +1 -1
  15. package/dist/cjs/loader.cjs.js +1 -1
  16. package/dist/cjs/map-layer-picker.cjs.entry.js +1 -1
  17. package/dist/cjs/map-select-tools_3.cjs.entry.js +3 -3
  18. package/dist/cjs/{popupUtils-27f6cf2a.js → popupUtils-a68a20db.js} +2 -2
  19. package/dist/cjs/public-notification.cjs.entry.js +3 -3
  20. package/dist/cjs/solution-configuration.cjs.entry.js +1 -1
  21. package/dist/cjs/solution-contents_3.cjs.entry.js +1 -1
  22. package/dist/cjs/solution-item-accordion.cjs.entry.js +1 -1
  23. package/dist/cjs/solutions-components.cjs.js +1 -1
  24. package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
  25. package/dist/collection/components/basemap-gallery/basemap-gallery.js +13 -8
  26. package/dist/collection/components/card-manager/card-manager.js +2 -2
  27. package/dist/collection/components/create-feature/create-feature.js +4 -23
  28. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +10 -1
  29. package/dist/collection/components/edit-card/edit-card.js +1 -1
  30. package/dist/collection/components/info-card/info-card.js +2 -2
  31. package/dist/collection/components/layer-table/layer-table.js +86 -9
  32. package/dist/components/basemap-gallery2.js +13 -8
  33. package/dist/components/card-manager2.js +2 -2
  34. package/dist/components/create-feature2.js +4 -6
  35. package/dist/components/crowdsource-reporter.js +9 -1
  36. package/dist/components/edit-card2.js +1 -1
  37. package/dist/components/info-card2.js +2 -2
  38. package/dist/components/layer-table2.js +87 -10
  39. package/dist/esm/{asyncToGenerator-96b2368d.js → asyncToGenerator-48cd21fe.js} +1 -1
  40. package/dist/esm/basemap-gallery_7.entry.js +14 -9
  41. package/dist/esm/buffer-tools_2.entry.js +1 -1
  42. package/dist/esm/card-manager_3.entry.js +91 -14
  43. package/dist/esm/consent-manager.entry.js +3 -3
  44. package/dist/esm/create-feature_4.entry.js +11 -12
  45. package/dist/esm/create-related-feature_3.entry.js +1 -1
  46. package/dist/esm/crowdsource-manager.entry.js +1 -1
  47. package/dist/esm/crowdsource-reporter.entry.js +9 -2
  48. package/dist/esm/delete-dialog.entry.js +1 -1
  49. package/dist/esm/{downloadUtils-a9fc6dd2.js → downloadUtils-7ef5420f.js} +3 -3
  50. package/dist/esm/feature-list.entry.js +4 -4
  51. package/dist/esm/{index.es-87662946.js → index.es-c379ea10.js} +2 -2
  52. package/dist/esm/json-editor_7.entry.js +1 -1
  53. package/dist/esm/loader.js +1 -1
  54. package/dist/esm/map-layer-picker.entry.js +1 -1
  55. package/dist/esm/map-select-tools_3.entry.js +3 -3
  56. package/dist/esm/{popupUtils-78f2029e.js → popupUtils-ef89df87.js} +2 -2
  57. package/dist/esm/public-notification.entry.js +3 -3
  58. package/dist/esm/solution-configuration.entry.js +1 -1
  59. package/dist/esm/solution-contents_3.entry.js +1 -1
  60. package/dist/esm/solution-item-accordion.entry.js +1 -1
  61. package/dist/esm/solutions-components.js +1 -1
  62. package/dist/esm/spatial-ref.entry.js +1 -1
  63. package/dist/solutions-components/p-035a1d38.entry.js +6 -0
  64. package/dist/solutions-components/p-11ad8edc.entry.js +6 -0
  65. package/dist/solutions-components/{p-f6d19f6d.entry.js → p-1325fa9e.entry.js} +1 -1
  66. package/dist/solutions-components/{p-60b1fe27.entry.js → p-2be59c38.entry.js} +1 -1
  67. package/dist/solutions-components/{p-455c19fa.js → p-4379cc5f.js} +2 -2
  68. package/dist/solutions-components/{p-0a60707c.entry.js → p-5096280f.entry.js} +1 -1
  69. package/dist/solutions-components/p-51033697.entry.js +6 -0
  70. package/dist/solutions-components/p-51e04c86.js +21 -0
  71. package/dist/solutions-components/p-605597cf.entry.js +6 -0
  72. package/dist/solutions-components/{p-d65f8b73.js → p-62a0aa8e.js} +1 -1
  73. package/dist/solutions-components/{p-a38eee28.entry.js → p-681a41f3.entry.js} +1 -1
  74. package/dist/solutions-components/{p-dc188d13.js → p-6d1ee086.js} +1 -1
  75. package/dist/solutions-components/{p-50b4945e.entry.js → p-7eec82e3.entry.js} +1 -1
  76. package/dist/solutions-components/{p-5b481f0d.entry.js → p-8b05b49c.entry.js} +1 -1
  77. package/dist/solutions-components/{p-6dc629dc.entry.js → p-93ebcb9b.entry.js} +1 -1
  78. package/dist/solutions-components/{p-b04179db.entry.js → p-b1f11c67.entry.js} +1 -1
  79. package/dist/solutions-components/{p-1aad0b63.entry.js → p-b3b5dca4.entry.js} +1 -1
  80. package/dist/solutions-components/{p-b8e4345e.entry.js → p-c45ba7dd.entry.js} +1 -1
  81. package/dist/solutions-components/{p-4a2870b0.entry.js → p-de3ba7be.entry.js} +1 -1
  82. package/dist/solutions-components/{p-7f36cfb0.entry.js → p-debeb4dc.entry.js} +1 -1
  83. package/dist/solutions-components/{p-f8854c5e.entry.js → p-e68f5f54.entry.js} +1 -1
  84. package/dist/solutions-components/{p-f3ba92d5.entry.js → p-f2cfed3a.entry.js} +1 -1
  85. package/dist/solutions-components/solutions-components.esm.js +1 -1
  86. package/dist/solutions-components_commit.txt +6 -6
  87. package/dist/types/components/create-feature/create-feature.d.ts +0 -4
  88. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +4 -0
  89. package/dist/types/components/layer-table/layer-table.d.ts +34 -0
  90. package/dist/types/components.d.ts +0 -8
  91. package/package.json +1 -1
  92. package/dist/solutions-components/p-03f8bcc3.entry.js +0 -6
  93. package/dist/solutions-components/p-31159fc6.js +0 -21
  94. package/dist/solutions-components/p-76126e43.entry.js +0 -6
  95. package/dist/solutions-components/p-a4282d56.entry.js +0 -6
  96. package/dist/solutions-components/p-f899ecdb.entry.js +0 -6
  97. /package/dist/cjs/{locale-809dbc6e.js → locale-81070bd9.js} +0 -0
  98. /package/dist/cjs/{typeof-2a7e2dec.js → typeof-920a4426.js} +0 -0
  99. /package/dist/esm/{locale-fa8258bf.js → locale-4be8e04f.js} +0 -0
  100. /package/dist/esm/{typeof-ef2a007d.js → typeof-2511410e.js} +0 -0
  101. /package/dist/solutions-components/{p-57be3b9d.js → p-8a74a780.js} +0 -0
  102. /package/dist/solutions-components/{p-4fe489cf.js → p-af7e43e0.js} +0 -0
@@ -21,5 +21,5 @@ var patchBrowser = () => {
21
21
 
22
22
  patchBrowser().then(async (options) => {
23
23
  await globalScripts();
24
- return bootstrapLazy(JSON.parse("[[\"crowdsource-manager\",[[0,\"crowdsource-manager\",{\"appLayout\":[1025,\"app-layout\"],\"appProxies\":[8,\"app-proxies\"],\"basemapConfig\":[16],\"coverPageEnabled\":[4,\"cover-page-enabled\"],\"customInfoText\":[1,\"custom-info-text\"],\"defaultAppLayout\":[1,\"default-app-layout\"],\"defaultCenter\":[1,\"default-center\"],\"defaultGlobalId\":[1,\"default-global-id\"],\"defaultLayer\":[1,\"default-layer\"],\"defaultLevel\":[1,\"default-level\"],\"defaultOid\":[1,\"default-oid\"],\"defaultWebmap\":[1,\"default-webmap\"],\"honorMapFieldSettings\":[4,\"honor-map-field-settings\"],\"introductionWindowEnabled\":[4,\"introduction-window-enabled\"],\"enableAutoRefresh\":[4,\"enable-auto-refresh\"],\"enableBasemap\":[4,\"enable-basemap\"],\"enableColumnReorder\":[4,\"enable-column-reorder\"],\"enableCSV\":[4,\"enable-c-s-v\"],\"enableFloorFilter\":[4,\"enable-floor-filter\"],\"enableFullscreen\":[4,\"enable-fullscreen\"],\"enableHome\":[4,\"enable-home\"],\"enableLegend\":[4,\"enable-legend\"],\"enableSearch\":[4,\"enable-search\"],\"enableShare\":[4,\"enable-share\"],\"enableSnapping\":[4,\"enable-snapping\"],\"enableZoom\":[4,\"enable-zoom\"],\"locale\":[1],\"mapInfos\":[16],\"onlyShowUpdatableLayers\":[4,\"only-show-updatable-layers\"],\"popupHeaderColor\":[1,\"popup-header-color\"],\"popupHeaderHoverColor\":[1,\"popup-header-hover-color\"],\"popupHeaderHoverTextColor\":[1,\"popup-header-hover-text-color\"],\"popupHeaderTextColor\":[1,\"popup-header-text-color\"],\"searchConfiguration\":[16],\"shareIncludeEmbed\":[4,\"share-include-embed\"],\"shareIncludeSocial\":[4,\"share-include-social\"],\"showNewestFirst\":[4,\"show-newest-first\"],\"theme\":[1],\"zoomAndScrollToSelected\":[4,\"zoom-and-scroll-to-selected\"],\"zoomToScale\":[2,\"zoom-to-scale\"],\"_deleteDialogOpen\":[32],\"_enableCreateFeatures\":[32],\"_hideFooter\":[32],\"_hideTable\":[32],\"_isMobile\":[32],\"_isPortraitMobile\":[32],\"_translations\":[32],\"_layer\":[32],\"_layoutMode\":[32],\"_mapInfo\":[32],\"_mapView\":[32],\"_panelOpen\":[32],\"_numSelected\":[32],\"_filterOpen\":[32],\"_showInformationHeader\":[32],\"_layerIds\":[32],\"_isLoading\":[32],\"_mapExtentFilterChecked\":[32]},[[8,\"featureSelectionChange\",\"featureSelectionChange\"],[8,\"popupClosed\",\"popupClosed\"],[8,\"layoutChanged\",\"layoutChanged\"],[8,\"mapChanged\",\"mapChanged\"],[8,\"layerSelectionChange\",\"layerSelectionChange\"],[8,\"showDelete\",\"showDelete\"],[8,\"idsFound\",\"idsFound\"]],{\"appLayout\":[\"appLayoutWatchHandler\"],\"enableZoom\":[\"enableZoomWatchHandler\"],\"locale\":[\"localeWatchHandler\"]}]]],[\"solution-configuration\",[[0,\"solution-configuration\",{\"authentication\":[1040],\"locale\":[1],\"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\"]],{\"serializedAuthentication\":[\"serializedAuthenticationWatchHandler\"],\"solutionItemId\":[\"valueWatchHandler\"],\"locale\":[\"localeWatchHandler\"]}]]],[\"crowdsource-reporter\",[[0,\"crowdsource-reporter\",{\"center\":[1],\"commentButtonText\":[1,\"comment-button-text\"],\"commentSubmittedMessage\":[1,\"comment-submitted-message\"],\"defaultWebmap\":[1,\"default-webmap\"],\"description\":[1],\"enableAnonymousAccess\":[4,\"enable-anonymous-access\"],\"enableAnonymousComments\":[4,\"enable-anonymous-comments\"],\"enableComments\":[4,\"enable-comments\"],\"enableHome\":[4,\"enable-home\"],\"enableLogin\":[4,\"enable-login\"],\"enableNewReports\":[4,\"enable-new-reports\"],\"enableSearch\":[4,\"enable-search\"],\"enableSnapping\":[4,\"enable-snapping\"],\"enableZoom\":[4,\"enable-zoom\"],\"isMobile\":[4,\"is-mobile\"],\"layerExpressions\":[16],\"layerId\":[1,\"layer-id\"],\"level\":[1],\"locale\":[1],\"loginTitle\":[1,\"login-title\"],\"mapInfos\":[16],\"mapView\":[16],\"objectId\":[1,\"object-id\"],\"reportButtonText\":[1,\"report-button-text\"],\"reportingOptions\":[16],\"reportsHeader\":[1,\"reports-header\"],\"reportSubmittedMessage\":[1,\"report-submitted-message\"],\"searchConfiguration\":[16],\"showComments\":[4,\"show-comments\"],\"showUserImageInCommentsList\":[4,\"show-user-image-in-comments-list\"],\"showFeatureSymbol\":[4,\"show-feature-symbol\"],\"showMyReportsOnly\":[4,\"show-my-reports-only\"],\"submitNewReportsMessage\":[1,\"submit-new-reports-message\"],\"theme\":[1],\"zoomToScale\":[2,\"zoom-to-scale\"],\"floorLevel\":[1,\"floor-level\"],\"showFullCommentTitle\":[4,\"show-full-comment-title\"],\"filterByMapExtent\":[4,\"filter-by-map-extent\"],\"sortOption\":[1,\"sort-option\"],\"_featureCreationFailedErrorMsg\":[32],\"_filterActive\":[32],\"_flowItems\":[32],\"_hasValidLayers\":[32],\"_mapInfo\":[32],\"_reportSubmitted\":[32],\"_selectedLayerName\":[32],\"_showSubmitCancelButton\":[32],\"_showLoadingIndicator\":[32],\"_sidePanelCollapsed\":[32],\"_translations\":[32],\"_updatedProgressBarStatus\":[32],\"_updatedSorting\":[32],\"_updatedSortOption\":[32],\"_commentSubmitted\":[32],\"_addingCommentFailed\":[32],\"_filterOpen\":[32],\"updateLayerExpressionsT9n\":[64]},null,{\"isMobile\":[\"isMobileWatchHandler\"],\"locale\":[\"localeWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"],\"floorLevel\":[\"floorLevelWatchHandler\"],\"showMyReportsOnly\":[\"showMyReportsOnlyWatchHandler\"],\"filterByMapExtent\":[\"filterByMapExtentChangeWatchHandler\"],\"layerExpressions\":[\"layerExpressionsWatchHandler\"],\"showFeatureSymbol\":[\"showFeatureSymbolWatchHandler\"]}]]],[\"public-notification\",[[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\"],\"defaultExportTitle\":[1,\"default-export-title\"],\"defaultNumLabelsPerPage\":[2,\"default-num-labels-per-page\"],\"enableLayerFeatures\":[4,\"enable-layer-features\"],\"enableLayerFeaturesOnLoad\":[4,\"enable-layer-features-on-load\"],\"enableSearchDistance\":[4,\"enable-search-distance\"],\"enableSearchDistanceOnLoad\":[4,\"enable-search-distance-on-load\"],\"enableSketchTools\":[4,\"enable-sketch-tools\"],\"featureEffect\":[16],\"featureHighlightEnabled\":[4,\"feature-highlight-enabled\"],\"locale\":[1],\"mapView\":[16],\"noResultText\":[1,\"no-result-text\"],\"initialNotice\":[1,\"initial-notice\"],\"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\"],\"_exportGraphics\":[32],\"_addMap\":[32],\"_addResults\":[32],\"_addTitle\":[32],\"_downloadActive\":[32],\"_exportType\":[32],\"_fetchingData\":[32],\"_isMobile\":[32],\"_numDuplicates\":[32],\"_pageType\":[32],\"_saveEnabled\":[32],\"_selectionSets\":[32],\"_translations\":[32]},[[8,\"selectionSetsChanged\",\"selectionSetsChanged\"]],{\"locale\":[\"localeWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"],\"searchConfiguration\":[\"watchSearchConfigurationHandler\"],\"sketchLineSymbol\":[\"sketchLineSymbolWatchHandler\"],\"sketchPointSymbol\":[\"sketchPointSymbolWatchHandler\"],\"sketchPolygonSymbol\":[\"sketchPolygonSymbolWatchHandler\"],\"_pageType\":[\"pageTypeWatchHandler\"]}]]],[\"pci-calculator\",[[1,\"pci-calculator\",{\"showAddDeduct\":[32]}]]],[\"solution-item-accordion\",[[1,\"solution-item-accordion\",{\"locale\":[1],\"listSelectionMode\":[1,\"list-selection-mode\"],\"templateInfos\":[16],\"_sortedTemplateInfos\":[32],\"_translations\":[32],\"collapseAll\":[64],\"deselectAll\":[64],\"selectItem\":[64]},null,{\"locale\":[\"localeWatchHandler\"],\"templateInfos\":[\"templateInfosWatchHandler\"]}]]],[\"consent-manager\",[[1,\"consent-manager\",{\"amazonAppId\":[1,\"amazon-app-id\"],\"amazonAppName\":[1,\"amazon-app-name\"],\"amazonUserPoolID\":[1,\"amazon-user-pool-i-d\"],\"amazonVersion\":[1,\"amazon-version\"],\"firstUseVar\":[1,\"first-use-var\"],\"locale\":[1],\"measurementIds\":[16],\"portal\":[16],\"_open\":[32],\"_translations\":[32],\"getInstance\":[64]},null,{\"locale\":[\"localeWatchHandler\"]}]]],[\"spatial-ref\",[[0,\"spatial-ref\",{\"defaultWkid\":[1538,\"default-wkid\"],\"disabled\":[1540],\"locale\":[1],\"value\":[1537],\"_cachedValue\":[32],\"_spatialRef\":[32],\"_srSearchText\":[32],\"_translations\":[32],\"createSpatialRefDisplay\":[64],\"getSpatialRef\":[64],\"wkidToDisplay\":[64]},null,{\"locale\":[\"localeWatchHandler\"],\"value\":[\"valueChanged\"]}]]],[\"store-manager\",[[0,\"store-manager\",{\"value\":[1537],\"templates\":[1040],\"authentication\":[1040],\"getStoreInfo\":[64]}]]],[\"deduct-calculator\",[[1,\"deduct-calculator\"]]],[\"feature-list\",[[0,\"feature-list\",{\"selectedLayerId\":[1,\"selected-layer-id\"],\"mapView\":[16],\"noFeaturesFoundMsg\":[1,\"no-features-found-msg\"],\"pageSize\":[2,\"page-size\"],\"highlightOnMap\":[4,\"highlight-on-map\"],\"highlightOnHover\":[4,\"highlight-on-hover\"],\"locale\":[1],\"sortingInfo\":[16],\"whereClause\":[1,\"where-clause\"],\"textSize\":[1,\"text-size\"],\"showInitialLoading\":[4,\"show-initial-loading\"],\"showErrorWhenNoFeatures\":[4,\"show-error-when-no-features\"],\"showUserImageInList\":[4,\"show-user-image-in-list\"],\"showFeatureSymbol\":[4,\"show-feature-symbol\"],\"applyLayerViewFilter\":[4,\"apply-layer-view-filter\"],\"reportingOptions\":[16],\"showFullTitle\":[4,\"show-full-title\"],\"filterByMapExtent\":[4,\"filter-by-map-extent\"],\"_featureItems\":[32],\"_featuresCount\":[32],\"_isLoading\":[32],\"_searchPlaceHolder\":[32],\"_fullTextSearchInfo\":[32],\"_translations\":[32],\"refresh\":[64]},null,{\"locale\":[\"localeWatchHandler\"],\"selectedLayerId\":[\"selectedLayerWatchHandler\"],\"sortingInfo\":[\"sortingInfoWatchHandler\"],\"whereClause\":[\"whereClauseHandler\"],\"filterByMapExtent\":[\"filterByMapExtentHandler\"]}]]],[\"card-manager_3\",[[0,\"map-card\",{\"appLayout\":[1,\"app-layout\"],\"appProxies\":[8,\"app-proxies\"],\"defaultWebmapId\":[1,\"default-webmap-id\"],\"defaultLayerId\":[1,\"default-layer-id\"],\"enableHome\":[4,\"enable-home\"],\"enableLegend\":[4,\"enable-legend\"],\"enableFloorFilter\":[4,\"enable-floor-filter\"],\"enableFullscreen\":[4,\"enable-fullscreen\"],\"enableShare\":[4,\"enable-share\"],\"enableSingleExpand\":[4,\"enable-single-expand\"],\"enableSearch\":[4,\"enable-search\"],\"enableBasemap\":[4,\"enable-basemap\"],\"basemapConfig\":[16],\"hidden\":[4],\"homeZoomIndex\":[2,\"home-zoom-index\"],\"homeZoomPosition\":[1,\"home-zoom-position\"],\"homeZoomToolsSize\":[1,\"home-zoom-tools-size\"],\"locale\":[1],\"mapInfos\":[16],\"mapWidgetsIndex\":[2,\"map-widgets-index\"],\"mapWidgetsPosition\":[1,\"map-widgets-position\"],\"mapWidgetsSize\":[1,\"map-widgets-size\"],\"mapView\":[16],\"stackTools\":[4,\"stack-tools\"],\"theme\":[1],\"toolOrder\":[16],\"isMapLayout\":[4,\"is-map-layout\"],\"shareIncludeEmbed\":[4,\"share-include-embed\"],\"shareIncludeSocial\":[4,\"share-include-social\"],\"selectedFeaturesIds\":[16],\"selectedLayer\":[16],\"zoomToScale\":[2,\"zoom-to-scale\"],\"onlyShowUpdatableLayers\":[4,\"only-show-updatable-layers\"],\"isMobile\":[4,\"is-mobile\"],\"mapInfo\":[16],\"_translations\":[32],\"_searchConfiguration\":[32],\"_webMapInfo\":[32],\"_showHideOpen\":[32],\"_toolInfos\":[32],\"_controlsThatFit\":[32],\"resetFilter\":[64],\"updateFilterState\":[64],\"updateLayer\":[64]},[[8,\"mapInfoChange\",\"mapInfoChange\"],[8,\"noLayersFound\",\"noLayersFound\"],[8,\"layerSelectionChange\",\"layerSelectionChange\"]],{\"appLayout\":[\"appLayoutWatchHandler\"],\"enableHome\":[\"enableHomeWatchHandler\"],\"enableShare\":[\"enableShareWatchHandler\"],\"locale\":[\"localeWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"],\"selectedLayer\":[\"selectedLayerWatchHandler\"],\"selectedFeaturesIds\":[\"selectedFeaturesIdsWatchHandler\"],\"_controlsThatFit\":[\"_controlsThatFitWatchHandler\"]}],[0,\"card-manager\",{\"customInfoText\":[1,\"custom-info-text\"],\"enableEditGeometry\":[4,\"enable-edit-geometry\"],\"enableSnapping\":[4,\"enable-snapping\"],\"isMobile\":[4,\"is-mobile\"],\"layer\":[1040],\"locale\":[1],\"mapView\":[16],\"zoomAndScrollToSelected\":[4,\"zoom-and-scroll-to-selected\"],\"selectedFeaturesIds\":[16],\"enableCreateFeatures\":[4,\"enable-create-features\"],\"selectingFeatureFromMap\":[4,\"selecting-feature-from-map\"],\"_cardLoading\":[32],\"_graphics\":[32],\"_showCreateFeatureComponent\":[32],\"_showSubmitBtn\":[32],\"_translations\":[32]},[[8,\"featureSelectionChange\",\"featureSelectionChange\"],[8,\"layerSelectionChange\",\"layerSelectionChange\"]],{\"locale\":[\"localeWatchHandler\"]}],[0,\"layer-table\",{\"appLayout\":[1,\"app-layout\"],\"defaultGlobalId\":[16],\"defaultLayerId\":[1,\"default-layer-id\"],\"defaultOid\":[16],\"enableAutoRefresh\":[4,\"enable-auto-refresh\"],\"enableColumnReorder\":[4,\"enable-column-reorder\"],\"enableCSV\":[4,\"enable-c-s-v\"],\"enableInlineEdit\":[4,\"enable-inline-edit\"],\"enableShare\":[4,\"enable-share\"],\"honorMapFieldSettings\":[4,\"honor-map-field-settings\"],\"isMobile\":[4,\"is-mobile\"],\"locale\":[1],\"mapHidden\":[4,\"map-hidden\"],\"mapInfo\":[16],\"mapView\":[16],\"onlyShowUpdatableLayers\":[4,\"only-show-updatable-layers\"],\"selectedIds\":[16],\"shareIncludeEmbed\":[4,\"share-include-embed\"],\"shareIncludeSocial\":[4,\"share-include-social\"],\"showNewestFirst\":[4,\"show-newest-first\"],\"zoomAndScrollToSelected\":[4,\"zoom-and-scroll-to-selected\"],\"zoomToScale\":[2,\"zoom-to-scale\"],\"createFilterModal\":[4,\"create-filter-modal\"],\"_allIds\":[32],\"_controlsThatFit\":[32],\"_csvExporting\":[32],\"_fetchingData\":[32],\"_filterActive\":[32],\"_filterOpen\":[32],\"_layer\":[32],\"_selectAllActive\":[32],\"_showHideOpen\":[32],\"_showOnlySelected\":[32],\"_toolInfos\":[32],\"_translations\":[32],\"_fullTextSearchInfo\":[32],\"_searchPlaceHolder\":[32],\"_size\":[32],\"_queryingData\":[32],\"closeFilter\":[64],\"filterReset\":[64],\"filterUpdate\":[64],\"validateTableUpdate\":[64],\"validateActiveEdits\":[64],\"refresh\":[64]},[[10,\"beforeMapInfoChange\",\"beforeMapInfoChange\"],[8,\"editorInitialized\",\"editorInitialized\"],[8,\"closeEdit\",\"closeEdit\"],[8,\"selectionChanged\",\"selectionChanged\"],[8,\"beforeLayerSelectionChange\",\"beforeLayerSelectionChange\"],[8,\"layerSelectionChange\",\"layerSelectionChange\"],[8,\"editsComplete\",\"editsComplete\"],[8,\"facilityChanged\",\"facilityChanged\"],[8,\"levelChanged\",\"levelChanged\"],[8,\"siteChanged\",\"siteChanged\"],[8,\"noLayersFound\",\"noLayersFound\"],[8,\"clearSelection\",\"clearSelection\"]],{\"appLayout\":[\"appLayoutWatchHandler\"],\"defaultOid\":[\"defaultOidWatchHandler\"],\"defaultGlobalId\":[\"defaultGlobalIdWatchHandler\"],\"enableCSV\":[\"enableCSVWatchHandler\"],\"enableInlineEdit\":[\"enableInlineEditWatchHandler\"],\"enableShare\":[\"enableShareWatchHandler\"],\"_controlsThatFit\":[\"_controlsThatFitWatchHandler\"],\"locale\":[\"localeWatchHandler\"],\"mapHidden\":[\"mapHiddenWatchHandler\"],\"isMobile\":[\"isMobileWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"],\"_layer\":[\"_layerWatchHandler\"],\"selectedIds\":[\"selectedIdsWatchHandler\"]}]]],[\"solution-contents_3\",[[0,\"solution-item\",{\"authentication\":[1040],\"itemId\":[1537,\"item-id\"],\"locale\":[1],\"solutionVariables\":[1537,\"solution-variables\"],\"organizationVariables\":[1537,\"organization-variables\"],\"itemType\":[32],\"_translations\":[32]},null,{\"itemId\":[\"itemIdWatchHandler\"],\"locale\":[\"localeWatchHandler\"]}],[0,\"solution-contents\",{\"selectedItemId\":[1537,\"selected-item-id\"],\"templateHierarchy\":[1040]},null,{\"templateHierarchy\":[\"valueWatchHandler\"]}],[0,\"solution-spatial-ref\",{\"enabled\":[1540],\"enableDefault\":[1540,\"enable-default\"],\"featureServices\":[1040],\"locale\":[1025],\"_translations\":[32],\"_testAccess\":[64]},[[8,\"solutionStoreHasChanges\",\"solutionStoreHasChanges\"]],{\"enabled\":[\"enabledChanged\"],\"enableDefault\":[\"enableDefaultChanged\"],\"locale\":[\"localeWatchHandler\"]}]]],[\"create-related-feature_3\",[[0,\"feature-details\",{\"enableSnapping\":[4,\"enable-snapping\"],\"mapView\":[16],\"graphics\":[16],\"reportingOptions\":[16],\"layerItemsHash\":[16],\"locale\":[1],\"showUserImageInCommentsList\":[4,\"show-user-image-in-comments-list\"],\"showFullCommentTitle\":[4,\"show-full-comment-title\"],\"_likeFieldAvailable\":[32],\"_likeCount\":[32],\"_disLikeCount\":[32],\"_dislikeFieldAvailable\":[32],\"_commentsAvailable\":[32],\"_isLikeBtnClicked\":[32],\"_isDislikeBtnClicked\":[32],\"_relatedFeaturesOIDs\":[32],\"_updating\":[32],\"refresh\":[64],\"back\":[64],\"next\":[64],\"toggleListView\":[64]},null,{\"graphics\":[\"graphicsWatchHandler\"]}],[0,\"create-related-feature\",{\"customizeSubmit\":[4,\"customize-submit\"],\"enableSnapping\":[4,\"enable-snapping\"],\"locale\":[1],\"mapView\":[16],\"selectedFeature\":[16],\"showGuidingMsg\":[4,\"show-guiding-msg\"],\"table\":[16],\"_editorLoading\":[32],\"_translations\":[32],\"submit\":[64]},null,{\"locale\":[\"localeWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"],\"_editorLoading\":[\"_editorLoadingWatchHandler\"]}],[0,\"layer-list\",{\"mapView\":[16],\"layers\":[16],\"locale\":[1],\"showFeatureCount\":[4,\"show-feature-count\"],\"showNextIcon\":[4,\"show-next-icon\"],\"applyLayerViewFilter\":[4,\"apply-layer-view-filter\"],\"filterByMapExtent\":[4,\"filter-by-map-extent\"],\"_noLayersToDisplay\":[32],\"_mapLayerIds\":[32],\"_isLoading\":[32],\"_translations\":[32],\"refresh\":[64]},null,{\"locale\":[\"localeWatchHandler\"],\"filterByMapExtent\":[\"filterByMapExtentWatchHandler\"]}]]],[\"buffer-tools_2\",[[1,\"buffer-tools\",{\"appearance\":[1025],\"distance\":[1026],\"geometries\":[1040],\"locale\":[1],\"max\":[1026],\"min\":[1026],\"sliderTicks\":[1026,\"slider-ticks\"],\"unionResults\":[1028,\"union-results\"],\"unit\":[1025],\"disabled\":[4],\"_translations\":[32],\"getTranslatedUnit\":[64]},null,{\"geometries\":[\"geometriesWatchHandler\"],\"disabled\":[\"disabledWatchHandler\"],\"locale\":[\"localeWatchHandler\"]}],[0,\"map-draw-tools\",{\"active\":[4],\"drawMode\":[1,\"draw-mode\"],\"editGraphicsEnabled\":[4,\"edit-graphics-enabled\"],\"graphics\":[1040],\"locale\":[1],\"mapView\":[1040],\"pointSymbol\":[1040],\"polylineSymbol\":[1040],\"polygonSymbol\":[1040],\"redoEnabled\":[4,\"redo-enabled\"],\"undoEnabled\":[4,\"undo-enabled\"],\"_translations\":[32],\"_selectionMode\":[32],\"clear\":[64],\"updateGraphics\":[64]},null,{\"graphics\":[\"graphicsWatchHandler\"],\"locale\":[\"localeWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"]}]]],[\"map-layer-picker\",[[0,\"map-layer-picker\",{\"appearance\":[1],\"defaultLayerId\":[1,\"default-layer-id\"],\"display\":[1],\"enabledLayerIds\":[16],\"enabledTableIds\":[16],\"height\":[2],\"isMobile\":[4,\"is-mobile\"],\"locale\":[1],\"mapView\":[16],\"onlyShowUpdatableLayers\":[4,\"only-show-updatable-layers\"],\"placeholderIcon\":[1,\"placeholder-icon\"],\"selectedIds\":[1040],\"scale\":[1],\"showTables\":[4,\"show-tables\"],\"showTablesDisabled\":[4,\"show-tables-disabled\"],\"showSingleLayerAsLabel\":[4,\"show-single-layer-as-label\"],\"type\":[1],\"_hasMultipleLayers\":[32],\"_hasValidLayers\":[32],\"_isDropdownOpen\":[32],\"ids\":[32],\"selectedName\":[32],\"_translations\":[32],\"setLayerById\":[64],\"setLayerByIds\":[64],\"updateLayer\":[64]},null,{\"locale\":[\"localeWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"]}]]],[\"map-select-tools_3\",[[0,\"map-select-tools\",{\"bufferColor\":[8,\"buffer-color\"],\"bufferOutlineColor\":[8,\"buffer-outline-color\"],\"customLabelEnabled\":[4,\"custom-label-enabled\"],\"enabledLayerIds\":[16],\"enableLayerFeatures\":[4,\"enable-layer-features\"],\"enableLayerFeaturesOnLoad\":[4,\"enable-layer-features-on-load\"],\"enableSearchDistance\":[4,\"enable-search-distance\"],\"enableSearchDistanceOnLoad\":[4,\"enable-search-distance-on-load\"],\"enableSketchTools\":[4,\"enable-sketch-tools\"],\"defaultBufferDistance\":[2,\"default-buffer-distance\"],\"defaultBufferUnit\":[1,\"default-buffer-unit\"],\"geometries\":[16],\"isUpdate\":[4,\"is-update\"],\"layerViews\":[16],\"locale\":[1],\"mapView\":[16],\"noResultText\":[1,\"no-result-text\"],\"searchConfiguration\":[1040],\"selectionSet\":[16],\"selectionLayerIds\":[16],\"selectLayerView\":[16],\"sketchLineSymbol\":[16],\"sketchPointSymbol\":[16],\"sketchPolygonSymbol\":[16],\"searchDistanceEnabled\":[4,\"search-distance-enabled\"],\"useLayerFeaturesEnabled\":[4,\"use-layer-features-enabled\"],\"_numSelected\":[32],\"_searchTerm\":[32],\"_selectionLoading\":[32],\"_translations\":[32],\"clearSelection\":[64],\"getSelection\":[64]},[[8,\"searchConfigurationChange\",\"searchConfigurationChangeChanged\"],[8,\"distanceChanged\",\"distanceChanged\"],[8,\"unitChanged\",\"unitChanged\"]],{\"geometries\":[\"watchGeometriesHandler\"],\"locale\":[\"localeWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"],\"searchConfiguration\":[\"watchSearchConfigurationHandler\"]}],[0,\"refine-selection\",{\"addresseeLayer\":[16],\"enabledLayerIds\":[16],\"locale\":[1],\"mapView\":[16],\"selectionSets\":[1040],\"sketchLineSymbol\":[16],\"sketchPointSymbol\":[16],\"sketchPolygonSymbol\":[16],\"_translations\":[32],\"_selectionMode\":[32],\"_refineLayer\":[32]},null,{\"locale\":[\"localeWatchHandler\"]}],[1,\"pdf-download\",{\"defaultNumLabelsPerPage\":[2,\"default-num-labels-per-page\"],\"disabled\":[4],\"locale\":[1],\"_translations\":[32],\"downloadCSV\":[64],\"downloadPDF\":[64]},null,{\"locale\":[\"localeWatchHandler\"]}]]],[\"delete-dialog\",[[1,\"delete-dialog\",{\"ids\":[16],\"layer\":[16],\"locale\":[1],\"open\":[4],\"_isDeleting\":[32],\"_translations\":[32]},null,{\"locale\":[\"localeWatchHandler\"]}]]],[\"solution-item-icon\",[[0,\"solution-item-icon\",{\"isPortal\":[4,\"is-portal\"],\"type\":[1],\"typeKeywords\":[16]}]]],[\"json-editor_7\",[[0,\"solution-template-data\",{\"instanceid\":[1537],\"itemId\":[1537,\"item-id\"],\"locale\":[1],\"organizationVariables\":[1537,\"organization-variables\"],\"solutionVariables\":[1537,\"solution-variables\"],\"varsOpen\":[1540,\"vars-open\"],\"_translations\":[32],\"value\":[32]},null,{\"itemId\":[\"itemIdWatchHandler\"],\"locale\":[\"localeWatchHandler\"]}],[1,\"solution-item-sharing\",{\"groupId\":[1537,\"group-id\"],\"locale\":[1],\"_translations\":[32],\"sharing\":[32],\"getShareInfo\":[64]},null,{\"groupId\":[\"itemIdWatchHandler\"],\"locale\":[\"localeWatchHandler\"]}],[0,\"solution-item-details\",{\"itemId\":[1537,\"item-id\"],\"locale\":[1],\"itemDetails\":[32],\"itemEdit\":[32],\"_translations\":[32],\"thumbnail\":[32],\"thumbnailContainer\":[32]},[[0,\"calciteInputInput\",\"inputReceivedHandler\"]],{\"locale\":[\"localeWatchHandler\"]}],[1,\"solution-resource-item\",{\"authentication\":[1040],\"itemId\":[1537,\"item-id\"],\"locale\":[1],\"resourceFilePaths\":[32],\"resources\":[32],\"_translations\":[32]},null,{\"itemId\":[\"itemIdWatchHandler\"],\"locale\":[\"localeWatchHandler\"]}],[1,\"solution-variables\",{\"value\":[1537],\"locale\":[1],\"_solutionVariables\":[32],\"_translations\":[32]},null,{\"locale\":[\"localeWatchHandler\"],\"value\":[\"valueWatchHandler\"]}],[0,\"json-editor\",{\"hasChanges\":[1540,\"has-changes\"],\"hasErrors\":[1540,\"has-errors\"],\"instanceid\":[1544],\"locale\":[1],\"value\":[1544],\"getEditorContents\":[64],\"prepareForDeletion\":[64],\"replaceCurrentSelection\":[64],\"reset\":[64]},null,{\"locale\":[\"localeWatchHandler\"]}],[1,\"solution-organization-variables\",{\"locale\":[1],\"value\":[1537],\"_organizationVariables\":[32],\"_translations\":[32]},null,{\"locale\":[\"localeWatchHandler\"],\"value\":[\"valueWatchHandler\"]}]]],[\"create-feature_4\",[[0,\"create-feature\",{\"customizeSubmit\":[4,\"customize-submit\"],\"enableSearch\":[4,\"enable-search\"],\"enableSnapping\":[4,\"enable-snapping\"],\"floorLevel\":[1,\"floor-level\"],\"formElements\":[8,\"form-elements\"],\"isMobile\":[4,\"is-mobile\"],\"locale\":[1],\"mapView\":[16],\"searchConfiguration\":[16],\"selectedLayerId\":[1,\"selected-layer-id\"],\"showGuidingMsg\":[4,\"show-guiding-msg\"],\"showGuidingMsgWhileDrawing\":[4,\"show-guiding-msg-while-drawing\"],\"submitNewReportsMessage\":[1,\"submit-new-reports-message\"],\"_currentPage\":[32],\"_editorLoading\":[32],\"_translations\":[32],\"submit\":[64],\"refresh\":[64]},null,{\"locale\":[\"localeWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"],\"isMobile\":[\"isMobileHandler\"],\"_editorLoading\":[\"_editorLoadingWatchHandler\"]}],[0,\"info-card\",{\"enableEditGeometry\":[4,\"enable-edit-geometry\"],\"enableSnapping\":[4,\"enable-snapping\"],\"graphics\":[16],\"isLoading\":[4,\"is-loading\"],\"isMobile\":[4,\"is-mobile\"],\"mapView\":[16],\"allowEditing\":[4,\"allow-editing\"],\"highlightEnabled\":[4,\"highlight-enabled\"],\"locale\":[1],\"paginationEnabled\":[4,\"pagination-enabled\"],\"position\":[1],\"showCloseBtn\":[4,\"show-close-btn\"],\"_alertOpen\":[32],\"_count\":[32],\"_editRecordOpen\":[32],\"_mobileTitle\":[32],\"_showListView\":[32],\"_translations\":[32],\"_navigatedToRelatedFeature\":[32],\"getSelectedFeature\":[64],\"refresh\":[64],\"back\":[64],\"next\":[64],\"toggleListView\":[64],\"updateCurrentGraphic\":[64]},[[8,\"closeEdit\",\"closeEdit\"],[8,\"layerSelectionChange\",\"layerSelectionChange\"],[8,\"refreshGraphics\",\"refreshGraphics\"]],{\"graphics\":[\"graphicsWatchHandler\"],\"isMobile\":[\"isMobileWatchHandler\"],\"locale\":[\"localeWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"]}],[1,\"delete-button\",{\"deleteDialog\":[8,\"delete-dialog\"],\"buttonType\":[1,\"button-type\"],\"disabled\":[4],\"icon\":[1],\"ids\":[16],\"layer\":[16],\"locale\":[1],\"_confirmDelete\":[32],\"_deleteEndabled\":[32],\"_supportsDelete\":[32],\"_translations\":[32]},null,{\"ids\":[\"idsWatchHandler\"],\"layer\":[\"layerWatchHandler\"],\"locale\":[\"localeWatchHandler\"]}],[0,\"edit-card\",{\"enableEditGeometry\":[4,\"enable-edit-geometry\"],\"enableSnapping\":[4,\"enable-snapping\"],\"graphicIndex\":[2,\"graphic-index\"],\"graphics\":[1040],\"locale\":[1],\"mapView\":[16],\"open\":[1028],\"_editorLoading\":[32],\"_translations\":[32]},[[8,\"featureSelectionChange\",\"featureSelectionChange\"]],{\"graphics\":[\"graphicsWatchHandler\"],\"locale\":[\"localeWatchHandler\"],\"open\":[\"openWatchHandler\"]}]]],[\"basemap-gallery_7\",[[1,\"map-tools\",{\"basemapConfig\":[16],\"enableLegend\":[4,\"enable-legend\"],\"enableFloorFilter\":[4,\"enable-floor-filter\"],\"enableFullscreen\":[4,\"enable-fullscreen\"],\"enableSearch\":[4,\"enable-search\"],\"enableBasemap\":[4,\"enable-basemap\"],\"enableHome\":[4,\"enable-home\"],\"enableSingleExpand\":[4,\"enable-single-expand\"],\"homeZoomToolsSize\":[1,\"home-zoom-tools-size\"],\"layout\":[1],\"locale\":[1],\"mapView\":[16],\"mapWidgetsSize\":[1,\"map-widgets-size\"],\"position\":[1],\"searchConfiguration\":[16],\"stackTools\":[4,\"stack-tools\"],\"toolOrder\":[16],\"_hasFloorInfo\":[32],\"_translations\":[32],\"_showTools\":[32],\"_showBasemapWidget\":[32],\"_showFloorFilter\":[32],\"_showFullscreen\":[32],\"_showLegendWidget\":[32],\"_showSearchWidget\":[32]},null,{\"locale\":[\"localeWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"],\"_showBasemapWidget\":[\"_showBasemapWidgetWatchHandler\"],\"_showFloorFilter\":[\"_showFloorFilterWatchHandler\"],\"_showFullscreen\":[\"_showFullscreenWatchHandler\"],\"_showLegendWidget\":[\"_showLegendWidgetWatchHandler\"],\"_showSearchWidget\":[\"_showSearchWidgetWatchHandler\"]}],[1,\"map-picker\",{\"locale\":[1],\"mapInfos\":[16],\"isMapLayout\":[4,\"is-map-layout\"],\"_mapListExpanded\":[32],\"_translations\":[32],\"_webMapInfo\":[32],\"setMapByID\":[64],\"close\":[64],\"toggle\":[64]},null,{\"_webMapInfo\":[\"_webMapInfoWatchHandler\"],\"locale\":[\"localeWatchHandler\"],\"mapInfos\":[\"mapInfosWatchHandler\"]}],[1,\"basemap-gallery\",{\"mapView\":[16],\"basemapConfig\":[16],\"basemapWidget\":[16]},null,{\"basemapConfig\":[\"basemapConfigWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"]}],[1,\"floor-filter\",{\"enabled\":[4],\"floorFilterWidget\":[16],\"mapView\":[16]},null,{\"mapView\":[\"mapViewWatchHandler\"],\"enabled\":[\"enabledWatchHandler\"]}],[1,\"map-fullscreen\",{\"mapView\":[16],\"fullscreenWidget\":[16]},null,{\"mapView\":[\"mapViewWatchHandler\"]}],[1,\"map-legend\",{\"mapView\":[16],\"legendWidget\":[16]},null,{\"mapView\":[\"mapViewWatchHandler\"]}],[1,\"map-search\",{\"mapView\":[16],\"popupEnabled\":[4,\"popup-enabled\"],\"resultGraphicEnabled\":[4,\"result-graphic-enabled\"],\"searchConfiguration\":[16],\"searchTerm\":[1,\"search-term\"],\"searchWidget\":[16]},null,{\"searchConfiguration\":[\"watchSearchConfigurationHandler\"],\"mapView\":[\"mapViewWatchHandler\"]}]]]]"), options);
24
+ return bootstrapLazy(JSON.parse("[[\"crowdsource-manager\",[[0,\"crowdsource-manager\",{\"appLayout\":[1025,\"app-layout\"],\"appProxies\":[8,\"app-proxies\"],\"basemapConfig\":[16],\"coverPageEnabled\":[4,\"cover-page-enabled\"],\"customInfoText\":[1,\"custom-info-text\"],\"defaultAppLayout\":[1,\"default-app-layout\"],\"defaultCenter\":[1,\"default-center\"],\"defaultGlobalId\":[1,\"default-global-id\"],\"defaultLayer\":[1,\"default-layer\"],\"defaultLevel\":[1,\"default-level\"],\"defaultOid\":[1,\"default-oid\"],\"defaultWebmap\":[1,\"default-webmap\"],\"honorMapFieldSettings\":[4,\"honor-map-field-settings\"],\"introductionWindowEnabled\":[4,\"introduction-window-enabled\"],\"enableAutoRefresh\":[4,\"enable-auto-refresh\"],\"enableBasemap\":[4,\"enable-basemap\"],\"enableColumnReorder\":[4,\"enable-column-reorder\"],\"enableCSV\":[4,\"enable-c-s-v\"],\"enableFloorFilter\":[4,\"enable-floor-filter\"],\"enableFullscreen\":[4,\"enable-fullscreen\"],\"enableHome\":[4,\"enable-home\"],\"enableLegend\":[4,\"enable-legend\"],\"enableSearch\":[4,\"enable-search\"],\"enableShare\":[4,\"enable-share\"],\"enableSnapping\":[4,\"enable-snapping\"],\"enableZoom\":[4,\"enable-zoom\"],\"locale\":[1],\"mapInfos\":[16],\"onlyShowUpdatableLayers\":[4,\"only-show-updatable-layers\"],\"popupHeaderColor\":[1,\"popup-header-color\"],\"popupHeaderHoverColor\":[1,\"popup-header-hover-color\"],\"popupHeaderHoverTextColor\":[1,\"popup-header-hover-text-color\"],\"popupHeaderTextColor\":[1,\"popup-header-text-color\"],\"searchConfiguration\":[16],\"shareIncludeEmbed\":[4,\"share-include-embed\"],\"shareIncludeSocial\":[4,\"share-include-social\"],\"showNewestFirst\":[4,\"show-newest-first\"],\"theme\":[1],\"zoomAndScrollToSelected\":[4,\"zoom-and-scroll-to-selected\"],\"zoomToScale\":[2,\"zoom-to-scale\"],\"_deleteDialogOpen\":[32],\"_enableCreateFeatures\":[32],\"_hideFooter\":[32],\"_hideTable\":[32],\"_isMobile\":[32],\"_isPortraitMobile\":[32],\"_translations\":[32],\"_layer\":[32],\"_layoutMode\":[32],\"_mapInfo\":[32],\"_mapView\":[32],\"_panelOpen\":[32],\"_numSelected\":[32],\"_filterOpen\":[32],\"_showInformationHeader\":[32],\"_layerIds\":[32],\"_isLoading\":[32],\"_mapExtentFilterChecked\":[32]},[[8,\"featureSelectionChange\",\"featureSelectionChange\"],[8,\"popupClosed\",\"popupClosed\"],[8,\"layoutChanged\",\"layoutChanged\"],[8,\"mapChanged\",\"mapChanged\"],[8,\"layerSelectionChange\",\"layerSelectionChange\"],[8,\"showDelete\",\"showDelete\"],[8,\"idsFound\",\"idsFound\"]],{\"appLayout\":[\"appLayoutWatchHandler\"],\"enableZoom\":[\"enableZoomWatchHandler\"],\"locale\":[\"localeWatchHandler\"]}]]],[\"solution-configuration\",[[0,\"solution-configuration\",{\"authentication\":[1040],\"locale\":[1],\"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\"]],{\"serializedAuthentication\":[\"serializedAuthenticationWatchHandler\"],\"solutionItemId\":[\"valueWatchHandler\"],\"locale\":[\"localeWatchHandler\"]}]]],[\"crowdsource-reporter\",[[0,\"crowdsource-reporter\",{\"center\":[1],\"commentButtonText\":[1,\"comment-button-text\"],\"commentSubmittedMessage\":[1,\"comment-submitted-message\"],\"defaultWebmap\":[1,\"default-webmap\"],\"description\":[1],\"enableAnonymousAccess\":[4,\"enable-anonymous-access\"],\"enableAnonymousComments\":[4,\"enable-anonymous-comments\"],\"enableComments\":[4,\"enable-comments\"],\"enableHome\":[4,\"enable-home\"],\"enableLogin\":[4,\"enable-login\"],\"enableNewReports\":[4,\"enable-new-reports\"],\"enableSearch\":[4,\"enable-search\"],\"enableSnapping\":[4,\"enable-snapping\"],\"enableZoom\":[4,\"enable-zoom\"],\"isMobile\":[4,\"is-mobile\"],\"layerExpressions\":[16],\"layerId\":[1,\"layer-id\"],\"level\":[1],\"locale\":[1],\"loginTitle\":[1,\"login-title\"],\"mapInfos\":[16],\"mapView\":[16],\"objectId\":[1,\"object-id\"],\"reportButtonText\":[1,\"report-button-text\"],\"reportingOptions\":[16],\"reportsHeader\":[1,\"reports-header\"],\"reportSubmittedMessage\":[1,\"report-submitted-message\"],\"searchConfiguration\":[16],\"showComments\":[4,\"show-comments\"],\"showUserImageInCommentsList\":[4,\"show-user-image-in-comments-list\"],\"showFeatureSymbol\":[4,\"show-feature-symbol\"],\"showMyReportsOnly\":[4,\"show-my-reports-only\"],\"submitNewReportsMessage\":[1,\"submit-new-reports-message\"],\"theme\":[1],\"zoomToScale\":[2,\"zoom-to-scale\"],\"floorLevel\":[1,\"floor-level\"],\"showFullCommentTitle\":[4,\"show-full-comment-title\"],\"filterByMapExtent\":[4,\"filter-by-map-extent\"],\"sortOption\":[1,\"sort-option\"],\"_featureCreationFailedErrorMsg\":[32],\"_filterActive\":[32],\"_flowItems\":[32],\"_hasValidLayers\":[32],\"_mapInfo\":[32],\"_reportSubmitted\":[32],\"_selectedLayerName\":[32],\"_showSubmitCancelButton\":[32],\"_showLoadingIndicator\":[32],\"_sidePanelCollapsed\":[32],\"_translations\":[32],\"_updatedProgressBarStatus\":[32],\"_updatedSorting\":[32],\"_updatedSortOption\":[32],\"_commentSubmitted\":[32],\"_addingCommentFailed\":[32],\"_filterOpen\":[32],\"updateLayerExpressionsT9n\":[64]},null,{\"isMobile\":[\"isMobileWatchHandler\"],\"locale\":[\"localeWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"],\"floorLevel\":[\"floorLevelWatchHandler\"],\"showMyReportsOnly\":[\"showMyReportsOnlyWatchHandler\"],\"sortOption\":[\"sortOptionWatchHandler\"],\"filterByMapExtent\":[\"filterByMapExtentChangeWatchHandler\"],\"layerExpressions\":[\"layerExpressionsWatchHandler\"],\"showFeatureSymbol\":[\"showFeatureSymbolWatchHandler\"]}]]],[\"public-notification\",[[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\"],\"defaultExportTitle\":[1,\"default-export-title\"],\"defaultNumLabelsPerPage\":[2,\"default-num-labels-per-page\"],\"enableLayerFeatures\":[4,\"enable-layer-features\"],\"enableLayerFeaturesOnLoad\":[4,\"enable-layer-features-on-load\"],\"enableSearchDistance\":[4,\"enable-search-distance\"],\"enableSearchDistanceOnLoad\":[4,\"enable-search-distance-on-load\"],\"enableSketchTools\":[4,\"enable-sketch-tools\"],\"featureEffect\":[16],\"featureHighlightEnabled\":[4,\"feature-highlight-enabled\"],\"locale\":[1],\"mapView\":[16],\"noResultText\":[1,\"no-result-text\"],\"initialNotice\":[1,\"initial-notice\"],\"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\"],\"_exportGraphics\":[32],\"_addMap\":[32],\"_addResults\":[32],\"_addTitle\":[32],\"_downloadActive\":[32],\"_exportType\":[32],\"_fetchingData\":[32],\"_isMobile\":[32],\"_numDuplicates\":[32],\"_pageType\":[32],\"_saveEnabled\":[32],\"_selectionSets\":[32],\"_translations\":[32]},[[8,\"selectionSetsChanged\",\"selectionSetsChanged\"]],{\"locale\":[\"localeWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"],\"searchConfiguration\":[\"watchSearchConfigurationHandler\"],\"sketchLineSymbol\":[\"sketchLineSymbolWatchHandler\"],\"sketchPointSymbol\":[\"sketchPointSymbolWatchHandler\"],\"sketchPolygonSymbol\":[\"sketchPolygonSymbolWatchHandler\"],\"_pageType\":[\"pageTypeWatchHandler\"]}]]],[\"pci-calculator\",[[1,\"pci-calculator\",{\"showAddDeduct\":[32]}]]],[\"solution-item-accordion\",[[1,\"solution-item-accordion\",{\"locale\":[1],\"listSelectionMode\":[1,\"list-selection-mode\"],\"templateInfos\":[16],\"_sortedTemplateInfos\":[32],\"_translations\":[32],\"collapseAll\":[64],\"deselectAll\":[64],\"selectItem\":[64]},null,{\"locale\":[\"localeWatchHandler\"],\"templateInfos\":[\"templateInfosWatchHandler\"]}]]],[\"consent-manager\",[[1,\"consent-manager\",{\"amazonAppId\":[1,\"amazon-app-id\"],\"amazonAppName\":[1,\"amazon-app-name\"],\"amazonUserPoolID\":[1,\"amazon-user-pool-i-d\"],\"amazonVersion\":[1,\"amazon-version\"],\"firstUseVar\":[1,\"first-use-var\"],\"locale\":[1],\"measurementIds\":[16],\"portal\":[16],\"_open\":[32],\"_translations\":[32],\"getInstance\":[64]},null,{\"locale\":[\"localeWatchHandler\"]}]]],[\"spatial-ref\",[[0,\"spatial-ref\",{\"defaultWkid\":[1538,\"default-wkid\"],\"disabled\":[1540],\"locale\":[1],\"value\":[1537],\"_cachedValue\":[32],\"_spatialRef\":[32],\"_srSearchText\":[32],\"_translations\":[32],\"createSpatialRefDisplay\":[64],\"getSpatialRef\":[64],\"wkidToDisplay\":[64]},null,{\"locale\":[\"localeWatchHandler\"],\"value\":[\"valueChanged\"]}]]],[\"store-manager\",[[0,\"store-manager\",{\"value\":[1537],\"templates\":[1040],\"authentication\":[1040],\"getStoreInfo\":[64]}]]],[\"deduct-calculator\",[[1,\"deduct-calculator\"]]],[\"feature-list\",[[0,\"feature-list\",{\"selectedLayerId\":[1,\"selected-layer-id\"],\"mapView\":[16],\"noFeaturesFoundMsg\":[1,\"no-features-found-msg\"],\"pageSize\":[2,\"page-size\"],\"highlightOnMap\":[4,\"highlight-on-map\"],\"highlightOnHover\":[4,\"highlight-on-hover\"],\"locale\":[1],\"sortingInfo\":[16],\"whereClause\":[1,\"where-clause\"],\"textSize\":[1,\"text-size\"],\"showInitialLoading\":[4,\"show-initial-loading\"],\"showErrorWhenNoFeatures\":[4,\"show-error-when-no-features\"],\"showUserImageInList\":[4,\"show-user-image-in-list\"],\"showFeatureSymbol\":[4,\"show-feature-symbol\"],\"applyLayerViewFilter\":[4,\"apply-layer-view-filter\"],\"reportingOptions\":[16],\"showFullTitle\":[4,\"show-full-title\"],\"filterByMapExtent\":[4,\"filter-by-map-extent\"],\"_featureItems\":[32],\"_featuresCount\":[32],\"_isLoading\":[32],\"_searchPlaceHolder\":[32],\"_fullTextSearchInfo\":[32],\"_translations\":[32],\"refresh\":[64]},null,{\"locale\":[\"localeWatchHandler\"],\"selectedLayerId\":[\"selectedLayerWatchHandler\"],\"sortingInfo\":[\"sortingInfoWatchHandler\"],\"whereClause\":[\"whereClauseHandler\"],\"filterByMapExtent\":[\"filterByMapExtentHandler\"]}]]],[\"card-manager_3\",[[0,\"map-card\",{\"appLayout\":[1,\"app-layout\"],\"appProxies\":[8,\"app-proxies\"],\"defaultWebmapId\":[1,\"default-webmap-id\"],\"defaultLayerId\":[1,\"default-layer-id\"],\"enableHome\":[4,\"enable-home\"],\"enableLegend\":[4,\"enable-legend\"],\"enableFloorFilter\":[4,\"enable-floor-filter\"],\"enableFullscreen\":[4,\"enable-fullscreen\"],\"enableShare\":[4,\"enable-share\"],\"enableSingleExpand\":[4,\"enable-single-expand\"],\"enableSearch\":[4,\"enable-search\"],\"enableBasemap\":[4,\"enable-basemap\"],\"basemapConfig\":[16],\"hidden\":[4],\"homeZoomIndex\":[2,\"home-zoom-index\"],\"homeZoomPosition\":[1,\"home-zoom-position\"],\"homeZoomToolsSize\":[1,\"home-zoom-tools-size\"],\"locale\":[1],\"mapInfos\":[16],\"mapWidgetsIndex\":[2,\"map-widgets-index\"],\"mapWidgetsPosition\":[1,\"map-widgets-position\"],\"mapWidgetsSize\":[1,\"map-widgets-size\"],\"mapView\":[16],\"stackTools\":[4,\"stack-tools\"],\"theme\":[1],\"toolOrder\":[16],\"isMapLayout\":[4,\"is-map-layout\"],\"shareIncludeEmbed\":[4,\"share-include-embed\"],\"shareIncludeSocial\":[4,\"share-include-social\"],\"selectedFeaturesIds\":[16],\"selectedLayer\":[16],\"zoomToScale\":[2,\"zoom-to-scale\"],\"onlyShowUpdatableLayers\":[4,\"only-show-updatable-layers\"],\"isMobile\":[4,\"is-mobile\"],\"mapInfo\":[16],\"_translations\":[32],\"_searchConfiguration\":[32],\"_webMapInfo\":[32],\"_showHideOpen\":[32],\"_toolInfos\":[32],\"_controlsThatFit\":[32],\"resetFilter\":[64],\"updateFilterState\":[64],\"updateLayer\":[64]},[[8,\"mapInfoChange\",\"mapInfoChange\"],[8,\"noLayersFound\",\"noLayersFound\"],[8,\"layerSelectionChange\",\"layerSelectionChange\"]],{\"appLayout\":[\"appLayoutWatchHandler\"],\"enableHome\":[\"enableHomeWatchHandler\"],\"enableShare\":[\"enableShareWatchHandler\"],\"locale\":[\"localeWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"],\"selectedLayer\":[\"selectedLayerWatchHandler\"],\"selectedFeaturesIds\":[\"selectedFeaturesIdsWatchHandler\"],\"_controlsThatFit\":[\"_controlsThatFitWatchHandler\"]}],[0,\"card-manager\",{\"customInfoText\":[1,\"custom-info-text\"],\"enableEditGeometry\":[4,\"enable-edit-geometry\"],\"enableSnapping\":[4,\"enable-snapping\"],\"isMobile\":[4,\"is-mobile\"],\"layer\":[1040],\"locale\":[1],\"mapView\":[16],\"zoomAndScrollToSelected\":[4,\"zoom-and-scroll-to-selected\"],\"selectedFeaturesIds\":[16],\"enableCreateFeatures\":[4,\"enable-create-features\"],\"selectingFeatureFromMap\":[4,\"selecting-feature-from-map\"],\"_cardLoading\":[32],\"_graphics\":[32],\"_showCreateFeatureComponent\":[32],\"_showSubmitBtn\":[32],\"_translations\":[32]},[[8,\"featureSelectionChange\",\"featureSelectionChange\"],[8,\"layerSelectionChange\",\"layerSelectionChange\"]],{\"locale\":[\"localeWatchHandler\"]}],[0,\"layer-table\",{\"appLayout\":[1,\"app-layout\"],\"defaultGlobalId\":[16],\"defaultLayerId\":[1,\"default-layer-id\"],\"defaultOid\":[16],\"enableAutoRefresh\":[4,\"enable-auto-refresh\"],\"enableColumnReorder\":[4,\"enable-column-reorder\"],\"enableCSV\":[4,\"enable-c-s-v\"],\"enableInlineEdit\":[4,\"enable-inline-edit\"],\"enableShare\":[4,\"enable-share\"],\"honorMapFieldSettings\":[4,\"honor-map-field-settings\"],\"isMobile\":[4,\"is-mobile\"],\"locale\":[1],\"mapHidden\":[4,\"map-hidden\"],\"mapInfo\":[16],\"mapView\":[16],\"onlyShowUpdatableLayers\":[4,\"only-show-updatable-layers\"],\"selectedIds\":[16],\"shareIncludeEmbed\":[4,\"share-include-embed\"],\"shareIncludeSocial\":[4,\"share-include-social\"],\"showNewestFirst\":[4,\"show-newest-first\"],\"zoomAndScrollToSelected\":[4,\"zoom-and-scroll-to-selected\"],\"zoomToScale\":[2,\"zoom-to-scale\"],\"createFilterModal\":[4,\"create-filter-modal\"],\"_allIds\":[32],\"_controlsThatFit\":[32],\"_csvExporting\":[32],\"_fetchingData\":[32],\"_filterActive\":[32],\"_filterOpen\":[32],\"_layer\":[32],\"_selectAllActive\":[32],\"_showHideOpen\":[32],\"_showOnlySelected\":[32],\"_toolInfos\":[32],\"_translations\":[32],\"_fullTextSearchInfo\":[32],\"_searchPlaceHolder\":[32],\"_size\":[32],\"_queryingData\":[32],\"closeFilter\":[64],\"filterReset\":[64],\"filterUpdate\":[64],\"validateTableUpdate\":[64],\"validateActiveEdits\":[64],\"refresh\":[64]},[[10,\"beforeMapInfoChange\",\"beforeMapInfoChange\"],[8,\"editorInitialized\",\"editorInitialized\"],[8,\"closeEdit\",\"closeEdit\"],[8,\"selectionChanged\",\"selectionChanged\"],[8,\"beforeLayerSelectionChange\",\"beforeLayerSelectionChange\"],[8,\"layerSelectionChange\",\"layerSelectionChange\"],[8,\"editsComplete\",\"editsComplete\"],[8,\"facilityChanged\",\"facilityChanged\"],[8,\"levelChanged\",\"levelChanged\"],[8,\"siteChanged\",\"siteChanged\"],[8,\"noLayersFound\",\"noLayersFound\"],[8,\"clearSelection\",\"clearSelection\"]],{\"appLayout\":[\"appLayoutWatchHandler\"],\"defaultOid\":[\"defaultOidWatchHandler\"],\"defaultGlobalId\":[\"defaultGlobalIdWatchHandler\"],\"enableCSV\":[\"enableCSVWatchHandler\"],\"enableInlineEdit\":[\"enableInlineEditWatchHandler\"],\"enableShare\":[\"enableShareWatchHandler\"],\"_controlsThatFit\":[\"_controlsThatFitWatchHandler\"],\"locale\":[\"localeWatchHandler\"],\"mapHidden\":[\"mapHiddenWatchHandler\"],\"isMobile\":[\"isMobileWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"],\"_layer\":[\"_layerWatchHandler\"],\"selectedIds\":[\"selectedIdsWatchHandler\"]}]]],[\"solution-contents_3\",[[0,\"solution-item\",{\"authentication\":[1040],\"itemId\":[1537,\"item-id\"],\"locale\":[1],\"solutionVariables\":[1537,\"solution-variables\"],\"organizationVariables\":[1537,\"organization-variables\"],\"itemType\":[32],\"_translations\":[32]},null,{\"itemId\":[\"itemIdWatchHandler\"],\"locale\":[\"localeWatchHandler\"]}],[0,\"solution-contents\",{\"selectedItemId\":[1537,\"selected-item-id\"],\"templateHierarchy\":[1040]},null,{\"templateHierarchy\":[\"valueWatchHandler\"]}],[0,\"solution-spatial-ref\",{\"enabled\":[1540],\"enableDefault\":[1540,\"enable-default\"],\"featureServices\":[1040],\"locale\":[1025],\"_translations\":[32],\"_testAccess\":[64]},[[8,\"solutionStoreHasChanges\",\"solutionStoreHasChanges\"]],{\"enabled\":[\"enabledChanged\"],\"enableDefault\":[\"enableDefaultChanged\"],\"locale\":[\"localeWatchHandler\"]}]]],[\"create-related-feature_3\",[[0,\"feature-details\",{\"enableSnapping\":[4,\"enable-snapping\"],\"mapView\":[16],\"graphics\":[16],\"reportingOptions\":[16],\"layerItemsHash\":[16],\"locale\":[1],\"showUserImageInCommentsList\":[4,\"show-user-image-in-comments-list\"],\"showFullCommentTitle\":[4,\"show-full-comment-title\"],\"_likeFieldAvailable\":[32],\"_likeCount\":[32],\"_disLikeCount\":[32],\"_dislikeFieldAvailable\":[32],\"_commentsAvailable\":[32],\"_isLikeBtnClicked\":[32],\"_isDislikeBtnClicked\":[32],\"_relatedFeaturesOIDs\":[32],\"_updating\":[32],\"refresh\":[64],\"back\":[64],\"next\":[64],\"toggleListView\":[64]},null,{\"graphics\":[\"graphicsWatchHandler\"]}],[0,\"create-related-feature\",{\"customizeSubmit\":[4,\"customize-submit\"],\"enableSnapping\":[4,\"enable-snapping\"],\"locale\":[1],\"mapView\":[16],\"selectedFeature\":[16],\"showGuidingMsg\":[4,\"show-guiding-msg\"],\"table\":[16],\"_editorLoading\":[32],\"_translations\":[32],\"submit\":[64]},null,{\"locale\":[\"localeWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"],\"_editorLoading\":[\"_editorLoadingWatchHandler\"]}],[0,\"layer-list\",{\"mapView\":[16],\"layers\":[16],\"locale\":[1],\"showFeatureCount\":[4,\"show-feature-count\"],\"showNextIcon\":[4,\"show-next-icon\"],\"applyLayerViewFilter\":[4,\"apply-layer-view-filter\"],\"filterByMapExtent\":[4,\"filter-by-map-extent\"],\"_noLayersToDisplay\":[32],\"_mapLayerIds\":[32],\"_isLoading\":[32],\"_translations\":[32],\"refresh\":[64]},null,{\"locale\":[\"localeWatchHandler\"],\"filterByMapExtent\":[\"filterByMapExtentWatchHandler\"]}]]],[\"buffer-tools_2\",[[1,\"buffer-tools\",{\"appearance\":[1025],\"distance\":[1026],\"geometries\":[1040],\"locale\":[1],\"max\":[1026],\"min\":[1026],\"sliderTicks\":[1026,\"slider-ticks\"],\"unionResults\":[1028,\"union-results\"],\"unit\":[1025],\"disabled\":[4],\"_translations\":[32],\"getTranslatedUnit\":[64]},null,{\"geometries\":[\"geometriesWatchHandler\"],\"disabled\":[\"disabledWatchHandler\"],\"locale\":[\"localeWatchHandler\"]}],[0,\"map-draw-tools\",{\"active\":[4],\"drawMode\":[1,\"draw-mode\"],\"editGraphicsEnabled\":[4,\"edit-graphics-enabled\"],\"graphics\":[1040],\"locale\":[1],\"mapView\":[1040],\"pointSymbol\":[1040],\"polylineSymbol\":[1040],\"polygonSymbol\":[1040],\"redoEnabled\":[4,\"redo-enabled\"],\"undoEnabled\":[4,\"undo-enabled\"],\"_translations\":[32],\"_selectionMode\":[32],\"clear\":[64],\"updateGraphics\":[64]},null,{\"graphics\":[\"graphicsWatchHandler\"],\"locale\":[\"localeWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"]}]]],[\"map-layer-picker\",[[0,\"map-layer-picker\",{\"appearance\":[1],\"defaultLayerId\":[1,\"default-layer-id\"],\"display\":[1],\"enabledLayerIds\":[16],\"enabledTableIds\":[16],\"height\":[2],\"isMobile\":[4,\"is-mobile\"],\"locale\":[1],\"mapView\":[16],\"onlyShowUpdatableLayers\":[4,\"only-show-updatable-layers\"],\"placeholderIcon\":[1,\"placeholder-icon\"],\"selectedIds\":[1040],\"scale\":[1],\"showTables\":[4,\"show-tables\"],\"showTablesDisabled\":[4,\"show-tables-disabled\"],\"showSingleLayerAsLabel\":[4,\"show-single-layer-as-label\"],\"type\":[1],\"_hasMultipleLayers\":[32],\"_hasValidLayers\":[32],\"_isDropdownOpen\":[32],\"ids\":[32],\"selectedName\":[32],\"_translations\":[32],\"setLayerById\":[64],\"setLayerByIds\":[64],\"updateLayer\":[64]},null,{\"locale\":[\"localeWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"]}]]],[\"map-select-tools_3\",[[0,\"map-select-tools\",{\"bufferColor\":[8,\"buffer-color\"],\"bufferOutlineColor\":[8,\"buffer-outline-color\"],\"customLabelEnabled\":[4,\"custom-label-enabled\"],\"enabledLayerIds\":[16],\"enableLayerFeatures\":[4,\"enable-layer-features\"],\"enableLayerFeaturesOnLoad\":[4,\"enable-layer-features-on-load\"],\"enableSearchDistance\":[4,\"enable-search-distance\"],\"enableSearchDistanceOnLoad\":[4,\"enable-search-distance-on-load\"],\"enableSketchTools\":[4,\"enable-sketch-tools\"],\"defaultBufferDistance\":[2,\"default-buffer-distance\"],\"defaultBufferUnit\":[1,\"default-buffer-unit\"],\"geometries\":[16],\"isUpdate\":[4,\"is-update\"],\"layerViews\":[16],\"locale\":[1],\"mapView\":[16],\"noResultText\":[1,\"no-result-text\"],\"searchConfiguration\":[1040],\"selectionSet\":[16],\"selectionLayerIds\":[16],\"selectLayerView\":[16],\"sketchLineSymbol\":[16],\"sketchPointSymbol\":[16],\"sketchPolygonSymbol\":[16],\"searchDistanceEnabled\":[4,\"search-distance-enabled\"],\"useLayerFeaturesEnabled\":[4,\"use-layer-features-enabled\"],\"_numSelected\":[32],\"_searchTerm\":[32],\"_selectionLoading\":[32],\"_translations\":[32],\"clearSelection\":[64],\"getSelection\":[64]},[[8,\"searchConfigurationChange\",\"searchConfigurationChangeChanged\"],[8,\"distanceChanged\",\"distanceChanged\"],[8,\"unitChanged\",\"unitChanged\"]],{\"geometries\":[\"watchGeometriesHandler\"],\"locale\":[\"localeWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"],\"searchConfiguration\":[\"watchSearchConfigurationHandler\"]}],[0,\"refine-selection\",{\"addresseeLayer\":[16],\"enabledLayerIds\":[16],\"locale\":[1],\"mapView\":[16],\"selectionSets\":[1040],\"sketchLineSymbol\":[16],\"sketchPointSymbol\":[16],\"sketchPolygonSymbol\":[16],\"_translations\":[32],\"_selectionMode\":[32],\"_refineLayer\":[32]},null,{\"locale\":[\"localeWatchHandler\"]}],[1,\"pdf-download\",{\"defaultNumLabelsPerPage\":[2,\"default-num-labels-per-page\"],\"disabled\":[4],\"locale\":[1],\"_translations\":[32],\"downloadCSV\":[64],\"downloadPDF\":[64]},null,{\"locale\":[\"localeWatchHandler\"]}]]],[\"delete-dialog\",[[1,\"delete-dialog\",{\"ids\":[16],\"layer\":[16],\"locale\":[1],\"open\":[4],\"_isDeleting\":[32],\"_translations\":[32]},null,{\"locale\":[\"localeWatchHandler\"]}]]],[\"solution-item-icon\",[[0,\"solution-item-icon\",{\"isPortal\":[4,\"is-portal\"],\"type\":[1],\"typeKeywords\":[16]}]]],[\"json-editor_7\",[[0,\"solution-template-data\",{\"instanceid\":[1537],\"itemId\":[1537,\"item-id\"],\"locale\":[1],\"organizationVariables\":[1537,\"organization-variables\"],\"solutionVariables\":[1537,\"solution-variables\"],\"varsOpen\":[1540,\"vars-open\"],\"_translations\":[32],\"value\":[32]},null,{\"itemId\":[\"itemIdWatchHandler\"],\"locale\":[\"localeWatchHandler\"]}],[1,\"solution-item-sharing\",{\"groupId\":[1537,\"group-id\"],\"locale\":[1],\"_translations\":[32],\"sharing\":[32],\"getShareInfo\":[64]},null,{\"groupId\":[\"itemIdWatchHandler\"],\"locale\":[\"localeWatchHandler\"]}],[0,\"solution-item-details\",{\"itemId\":[1537,\"item-id\"],\"locale\":[1],\"itemDetails\":[32],\"itemEdit\":[32],\"_translations\":[32],\"thumbnail\":[32],\"thumbnailContainer\":[32]},[[0,\"calciteInputInput\",\"inputReceivedHandler\"]],{\"locale\":[\"localeWatchHandler\"]}],[1,\"solution-resource-item\",{\"authentication\":[1040],\"itemId\":[1537,\"item-id\"],\"locale\":[1],\"resourceFilePaths\":[32],\"resources\":[32],\"_translations\":[32]},null,{\"itemId\":[\"itemIdWatchHandler\"],\"locale\":[\"localeWatchHandler\"]}],[1,\"solution-variables\",{\"value\":[1537],\"locale\":[1],\"_solutionVariables\":[32],\"_translations\":[32]},null,{\"locale\":[\"localeWatchHandler\"],\"value\":[\"valueWatchHandler\"]}],[0,\"json-editor\",{\"hasChanges\":[1540,\"has-changes\"],\"hasErrors\":[1540,\"has-errors\"],\"instanceid\":[1544],\"locale\":[1],\"value\":[1544],\"getEditorContents\":[64],\"prepareForDeletion\":[64],\"replaceCurrentSelection\":[64],\"reset\":[64]},null,{\"locale\":[\"localeWatchHandler\"]}],[1,\"solution-organization-variables\",{\"locale\":[1],\"value\":[1537],\"_organizationVariables\":[32],\"_translations\":[32]},null,{\"locale\":[\"localeWatchHandler\"],\"value\":[\"valueWatchHandler\"]}]]],[\"create-feature_4\",[[0,\"create-feature\",{\"customizeSubmit\":[4,\"customize-submit\"],\"enableSearch\":[4,\"enable-search\"],\"enableSnapping\":[4,\"enable-snapping\"],\"floorLevel\":[1,\"floor-level\"],\"formElements\":[8,\"form-elements\"],\"isMobile\":[4,\"is-mobile\"],\"locale\":[1],\"mapView\":[16],\"searchConfiguration\":[16],\"selectedLayerId\":[1,\"selected-layer-id\"],\"showGuidingMsg\":[4,\"show-guiding-msg\"],\"submitNewReportsMessage\":[1,\"submit-new-reports-message\"],\"_currentPage\":[32],\"_editorLoading\":[32],\"_translations\":[32],\"submit\":[64],\"refresh\":[64]},null,{\"locale\":[\"localeWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"],\"isMobile\":[\"isMobileHandler\"],\"_editorLoading\":[\"_editorLoadingWatchHandler\"]}],[0,\"info-card\",{\"enableEditGeometry\":[4,\"enable-edit-geometry\"],\"enableSnapping\":[4,\"enable-snapping\"],\"graphics\":[16],\"isLoading\":[4,\"is-loading\"],\"isMobile\":[4,\"is-mobile\"],\"mapView\":[16],\"allowEditing\":[4,\"allow-editing\"],\"highlightEnabled\":[4,\"highlight-enabled\"],\"locale\":[1],\"paginationEnabled\":[4,\"pagination-enabled\"],\"position\":[1],\"showCloseBtn\":[4,\"show-close-btn\"],\"_alertOpen\":[32],\"_count\":[32],\"_editRecordOpen\":[32],\"_mobileTitle\":[32],\"_showListView\":[32],\"_translations\":[32],\"_navigatedToRelatedFeature\":[32],\"getSelectedFeature\":[64],\"refresh\":[64],\"back\":[64],\"next\":[64],\"toggleListView\":[64],\"updateCurrentGraphic\":[64]},[[8,\"closeEdit\",\"closeEdit\"],[8,\"layerSelectionChange\",\"layerSelectionChange\"],[8,\"refreshGraphics\",\"refreshGraphics\"]],{\"graphics\":[\"graphicsWatchHandler\"],\"isMobile\":[\"isMobileWatchHandler\"],\"locale\":[\"localeWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"]}],[1,\"delete-button\",{\"deleteDialog\":[8,\"delete-dialog\"],\"buttonType\":[1,\"button-type\"],\"disabled\":[4],\"icon\":[1],\"ids\":[16],\"layer\":[16],\"locale\":[1],\"_confirmDelete\":[32],\"_deleteEndabled\":[32],\"_supportsDelete\":[32],\"_translations\":[32]},null,{\"ids\":[\"idsWatchHandler\"],\"layer\":[\"layerWatchHandler\"],\"locale\":[\"localeWatchHandler\"]}],[0,\"edit-card\",{\"enableEditGeometry\":[4,\"enable-edit-geometry\"],\"enableSnapping\":[4,\"enable-snapping\"],\"graphicIndex\":[2,\"graphic-index\"],\"graphics\":[1040],\"locale\":[1],\"mapView\":[16],\"open\":[1028],\"_editorLoading\":[32],\"_translations\":[32]},[[8,\"featureSelectionChange\",\"featureSelectionChange\"]],{\"graphics\":[\"graphicsWatchHandler\"],\"locale\":[\"localeWatchHandler\"],\"open\":[\"openWatchHandler\"]}]]],[\"basemap-gallery_7\",[[1,\"map-tools\",{\"basemapConfig\":[16],\"enableLegend\":[4,\"enable-legend\"],\"enableFloorFilter\":[4,\"enable-floor-filter\"],\"enableFullscreen\":[4,\"enable-fullscreen\"],\"enableSearch\":[4,\"enable-search\"],\"enableBasemap\":[4,\"enable-basemap\"],\"enableHome\":[4,\"enable-home\"],\"enableSingleExpand\":[4,\"enable-single-expand\"],\"homeZoomToolsSize\":[1,\"home-zoom-tools-size\"],\"layout\":[1],\"locale\":[1],\"mapView\":[16],\"mapWidgetsSize\":[1,\"map-widgets-size\"],\"position\":[1],\"searchConfiguration\":[16],\"stackTools\":[4,\"stack-tools\"],\"toolOrder\":[16],\"_hasFloorInfo\":[32],\"_translations\":[32],\"_showTools\":[32],\"_showBasemapWidget\":[32],\"_showFloorFilter\":[32],\"_showFullscreen\":[32],\"_showLegendWidget\":[32],\"_showSearchWidget\":[32]},null,{\"locale\":[\"localeWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"],\"_showBasemapWidget\":[\"_showBasemapWidgetWatchHandler\"],\"_showFloorFilter\":[\"_showFloorFilterWatchHandler\"],\"_showFullscreen\":[\"_showFullscreenWatchHandler\"],\"_showLegendWidget\":[\"_showLegendWidgetWatchHandler\"],\"_showSearchWidget\":[\"_showSearchWidgetWatchHandler\"]}],[1,\"map-picker\",{\"locale\":[1],\"mapInfos\":[16],\"isMapLayout\":[4,\"is-map-layout\"],\"_mapListExpanded\":[32],\"_translations\":[32],\"_webMapInfo\":[32],\"setMapByID\":[64],\"close\":[64],\"toggle\":[64]},null,{\"_webMapInfo\":[\"_webMapInfoWatchHandler\"],\"locale\":[\"localeWatchHandler\"],\"mapInfos\":[\"mapInfosWatchHandler\"]}],[1,\"basemap-gallery\",{\"mapView\":[16],\"basemapConfig\":[16],\"basemapWidget\":[16]},null,{\"basemapConfig\":[\"basemapConfigWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"]}],[1,\"floor-filter\",{\"enabled\":[4],\"floorFilterWidget\":[16],\"mapView\":[16]},null,{\"mapView\":[\"mapViewWatchHandler\"],\"enabled\":[\"enabledWatchHandler\"]}],[1,\"map-fullscreen\",{\"mapView\":[16],\"fullscreenWidget\":[16]},null,{\"mapView\":[\"mapViewWatchHandler\"]}],[1,\"map-legend\",{\"mapView\":[16],\"legendWidget\":[16]},null,{\"mapView\":[\"mapViewWatchHandler\"]}],[1,\"map-search\",{\"mapView\":[16],\"popupEnabled\":[4,\"popup-enabled\"],\"resultGraphicEnabled\":[4,\"result-graphic-enabled\"],\"searchConfiguration\":[16],\"searchTerm\":[1,\"search-term\"],\"searchWidget\":[16]},null,{\"searchConfiguration\":[\"watchSearchConfigurationHandler\"],\"mapView\":[\"mapViewWatchHandler\"]}]]]]"), options);
25
25
  });
@@ -4,7 +4,7 @@
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
6
  import { g as getElement, r as registerInstance, c as createEvent, h, H as Host } from './index-21b6e87e.js';
7
- import { g as getLocaleComponentStrings } from './locale-fa8258bf.js';
7
+ import { g as getLocaleComponentStrings } from './locale-4be8e04f.js';
8
8
  import { n as nodeListToArray } from './common-c8dc0e85.js';
9
9
  import './_commonjsHelpers-089957fe.js';
10
10
  import './solution-resource-30a29505.js';
@@ -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 t,c as i,g as s,h as e,H as h}from"./p-934e8935.js";import{g as a,l as o}from"./p-8a74a780.js";import{g as l,q as n,e as c,f as r,c as d}from"./p-5693ce7a.js";import{d as p}from"./p-4379cc5f.js";import"./p-d4056c1c.js";import"./p-80cb7c73.js";import"./p-af7e43e0.js";import"./p-4f236b5d.js";import"./p-570b13d9.js";import"./p-0668e30d.js";const b=class{constructor(s){t(this,s),this.createWorkFlowStarted=i(this,"createWorkFlowStarted",7),this.backFromCreateWorkFlow=i(this,"backFromCreateWorkFlow",7),this.featureOrRecordSubmitted=i(this,"featureOrRecordSubmitted",7),this.customInfoText=void 0,this.enableEditGeometry=!1,this.enableSnapping=!1,this.isMobile=void 0,this.layer=void 0,this.locale=void 0,this.mapView=void 0,this.zoomAndScrollToSelected=void 0,this.selectedFeaturesIds=void 0,this.enableCreateFeatures=!0,this.selectingFeatureFromMap=void 0,this._cardLoading=!1,this._graphics=void 0,this._showCreateFeatureComponent=!1,this._showSubmitBtn=!1,this._translations=void 0}get el(){return s(this)}_isFeatureCreated=!1;_createFeature;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}createWorkFlowStarted;backFromCreateWorkFlow;featureOrRecordSubmitted;async featureSelectionChange(t){this._showCreateFeatureComponent&&!this._isFeatureCreated&&this._backFromCreateFeature();const i=t.detail;this._graphics=await this._getFeaturesByIds(i)}async layerSelectionChange(t){this._showCreateFeatureComponent&&this._backFromCreateFeature();const i=t.detail[0];this.layer=await l(this.mapView,i)}async componentWillLoad(){await this._getTranslations(),this.selectedFeaturesIds?.length>0&&(this._graphics=await this._getFeaturesByIds(this.selectedFeaturesIds))}render(){const t=this._graphics?.length>0?"":"display-none",i=0===this._graphics?.length&&this._showCreateFeatureComponent?"":"display-none",s=this._graphics?.length>0||this._showCreateFeatureComponent?"display-none":"",a=this.layer?.isTable,o=a?this._translations.createRecord:this._translations.createFeature,l=this.customInfoText?this.customInfoText:this.selectingFeatureFromMap?this._translations.selectFeaturesFromMapToStart:this._translations.selectFeaturesToStart,n=this.enableCreateFeatures&&this.layer?.capabilities?.operations?.supportsAdd;return e(h,{key:"803f5130e6f4fa0bf97cfdd2776e176786e736cc"},e("div",{key:"7c0a756f5de5f536b52d2e9f6629593eb3c85781",class:"overflow-auto height-full"},e("calcite-shell",{key:"9a6366bba429d5c29a5f1c556d6812f44d28ee2c",class:"position-relative "+t},e("div",{key:"61cb9f7942eb209e5e0bd751ab4b5ca026086882",class:"position-static z-index-500"},e("info-card",{key:"aa2e8443af374a37dfebd0d5e87ca052221339a7",enableEditGeometry:this.enableEditGeometry,enableSnapping:this.enableSnapping,graphics:this._graphics,highlightEnabled:!1,isLoading:this._cardLoading,isMobile:this.isMobile,locale:this.locale,mapView:this.mapView,showCloseBtn:!0}))),e("calcite-shell",{key:"4979b9d94cd68f36b5d9e6ea59ffc0baecd180c0",class:"position-relative "+s},e("calcite-panel",{key:"9e02f86010e2348668a995de7d3644f0ddf838a6"},e("div",{key:"83a5ac2003838734308d81dc2903313cb6c07e9a",class:"padding-1"},e("calcite-notice",{key:"e380ab334a7b4d65fb64b51bc2b7feb61771f813",icon:this.selectingFeatureFromMap?"map":"table",iconFlipRtl:!0,open:!0},e("div",{key:"2ac48545c9c825d8d266a96b034dba7d17c024c1",slot:"message"},l))),!this.isMobile&&n&&e("calcite-button",{key:"300e922dcf00b72657ca48382579746073a1a646",disabled:!this.layer,onClick:()=>this._createFeatureBtnClicked(),slot:"footer",width:"full"},a?this._translations.createRecord:this._translations.createFeature))),e("calcite-shell",{key:"1c279da12e0885ed5ecae714a0958e76ac3734d5",class:"position-relative "+i},e("calcite-flow-item",{key:"8e54e6abf83e3d8ce487a2f76e1bdd8635f4d7b5",selected:!0},e("calcite-panel",{key:"d31997df187797550eeaee6df294e4f41e6653b5",heading:o},e("calcite-action",{key:"636c83f8d5f361c1eb35a5b524565d0bd072489f",class:"back-button hydrated",icon:"chevron-left",onClick:this._backFromCreateFeature.bind(this),scale:"s",slot:"header-actions-start",text:""}),this.getEditorComponent(),this._showSubmitBtn&&e("calcite-button",{key:"bd1a3ee472e275c57e9c40c217a3c0ac9c8e8715",appearance:"solid",class:"footer-top-button footer-button",onClick:()=>{this._createFeature.submit()},slot:"footer",width:"full"},this._translations.create))))))}getEditorComponent(){return e("div",null,this._showCreateFeatureComponent&&e("create-feature",{customizeSubmit:!0,enableSnapping:this.enableSnapping&&this.enableCreateFeatures,locale:this.locale,mapView:this.mapView,onDrawComplete:()=>{this._showSubmitBtn=!0},onEditingAttachment:t=>{this._showSubmitBtn=!t.detail},onProgressStatus:()=>{setTimeout((()=>{this._isFeatureCreated=!1}),2e3)},onSuccess:this._featureCreated.bind(this),ref:t=>this._createFeature=t,selectedLayerId:this.layer?.id,showGuidingMsg:!1}))}async _getFeaturesByIds(t){return(t.length>0?await n(t,this.layer,[],!0,this.mapView.spatialReference):[]).sort(((i,s)=>t.indexOf(i.getObjectId())-t.indexOf(s.getObjectId())))}_createFeatureBtnClicked(){this._showCreateFeatureComponent=!0,this.createWorkFlowStarted.emit()}async _backFromCreateFeature(){this._createFeature&&(this._showCreateFeatureComponent=!1,this.backFromCreateWorkFlow.emit()),this._showSubmitBtn=!1}_featureCreated(){this._showCreateFeatureComponent=!1,this._showSubmitBtn=!1,this._isFeatureCreated=!0,this.featureOrRecordSubmitted.emit(),setTimeout((()=>{this._showCreateFeatureComponent=!0}),50)}async _getTranslations(){const t=await a(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"]}}};b.style=":host{display:block !important}.display-flex{display:flex}.display-none{display:none}.w-100{width:100%}.padding-bottom-1{padding-bottom:1rem}.padding-1{padding:1rem}.position-relative{position:relative}.focus-margin{margin:1px 1px 0px 1px}.overflow-auto{overflow:auto}.height-full{height:100%}.position-static{position:static !important}.z-index-500{z-index:500 !important}card-manager{display:block}";const f=class{constructor(s){t(this,s),this.featureSelectionChange=i(this,"featureSelectionChange",7),this.toggleFilter=i(this,"toggleFilter",7),this.showDelete=i(this,"showDelete",7),this.appLayout=void 0,this.defaultGlobalId=void 0,this.defaultLayerId=void 0,this.defaultOid=void 0,this.enableAutoRefresh=void 0,this.enableColumnReorder=!0,this.enableCSV=void 0,this.enableInlineEdit=void 0,this.enableShare=void 0,this.honorMapFieldSettings=void 0,this.isMobile=void 0,this.locale=void 0,this.mapHidden=void 0,this.mapInfo=void 0,this.mapView=void 0,this.onlyShowUpdatableLayers=void 0,this.selectedIds=[],this.shareIncludeEmbed=void 0,this.shareIncludeSocial=void 0,this.showNewestFirst=void 0,this.zoomAndScrollToSelected=void 0,this.zoomToScale=void 0,this.createFilterModal=!0,this._allIds=[],this._controlsThatFit=void 0,this._csvExporting=!1,this._fetchingData=!1,this._filterActive=!1,this._filterOpen=!1,this._layer=void 0,this._selectAllActive=!1,this._showHideOpen=!1,this._showOnlySelected=!1,this._toolInfos=void 0,this._translations=void 0,this._fullTextSearchInfo=void 0,this._searchPlaceHolder="",this._size=0,this._queryingData=!1}get el(){return s(this)}FeatureTable;TableTemplate;_columnsInfo;_currentId;_editEnabled;_defaultFilterHonored=!1;_defaultGlobalIdHonored=!1;_defaultOidHonored=!1;_defaultVisibleToolSizeInfos;_definitionExpression;_deleteEnabled;_editor;_filterList;_floorExpression;_floorField;_floorFacility;_floorLevel;_floorSite;_layerExpressions;_loaded=!1;_mapClickHandle;_observerSet=!1;_previousCurrentId;reactiveUtils;_refreshHandle;_resizeObserver;_selectAllElement;_selectionFromMap=!1;_shareNode;_showHideDropdown;_moreDropdown;_table;_tableNode;_timeout;_toolbar;_toolbarSizeInfos;_searchExpression;_skipEditCheck=!1;_currentFeatureHighlightHandle;_defaultFeaturesHandle;_temporaryFeatureHandle;_filterByExtentHandle;_tempSelectedIds;_outOFExtentOids=[];_shouldUpdateTableOnExtentChange=!0;_selectedLayerView;appLayoutWatchHandler(){this._updateShareUrl()}async defaultOidWatchHandler(){await this._handleDefaults()}async defaultGlobalIdWatchHandler(){await this._handleDefaults()}enableCSVWatchHandler(){this._toolInfos?.length>0&&this._initToolInfos()}enableInlineEditWatchHandler(){this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit)}enableShareWatchHandler(){this._toolbar&&this._updateToolbar()}_controlsThatFitWatchHandler(){const t=this._controlsThatFit?this._controlsThatFit.reduce(((t,i)=>(t.push(i.id),t)),[]):[];this._toolInfos=this._toolInfos?.map((i=>{if(i&&this._controlsThatFit){const s=this._getId(i.icon);return i.isOverflow=t.indexOf(s)<0,i}}))}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}mapHiddenWatchHandler(){this._toolInfos?.length>0&&this._initToolInfos()}isMobileWatchHandler(){this._toolInfos||this.isMobile||this._initToolInfos()}async mapViewWatchHandler(){this._mapClickHandle&&this._mapClickHandle.remove(),this.mapView&&(this._floorExpression=void 0,this._searchExpression=void 0,this.mapView.highlights=[{name:"default",color:"#00FFFF"},{name:"current-selection",color:"#ff00ff"},{name:"temporary",color:"#FFFF00"}],this._updateShareUrl(),this._mapClickHandle=this.reactiveUtils.on((()=>this.mapView),"click",(t=>{this._mapClicked(t)})))}async _layerWatchHandler(){this._fetchingData=!0,await(this._layer?.when((async()=>{this._definitionExpression=this._layer.definitionExpression,this._floorField=this._layer.floorInfo?.floorField,this._updateFloorDefinitionExpression(),await this._resetTable(),this.createFilterModal&&this._initLayerExpressions(),this._updateShareUrl(),this._fetchingData=!1})))}async selectedIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions(),this._selectAllActive&&this.selectedIds.length!==this._allIds.length&&(this._selectAllActive=!1),this.selectedIds.length>0&&(this._table.rowHighlightIds.removeAll(),this._table.rowHighlightIds.add(this.selectedIds[0]))}async closeFilter(){await this._closeFilter()}async filterReset(){this._filterByExtentHandle&&(this._table.filterGeometry=void 0,this._filterByExtentHandle.remove(),this._filterByExtentHandle=void 0),await this._handleFilterListReset()}async filterUpdate(t,i){await this._handleFilterUpdate(t),i?(this._shouldUpdateTableOnExtentChange=!0,this._handleTableOnMapExtent()):!1===i&&(this._table.filterGeometry=void 0,this._filterByExtentHandle.remove(),this._filterByExtentHandle=void 0,await this._updateAllIds())}async validateTableUpdate(t){this._shouldUpdateTableOnExtentChange=t}async validateActiveEdits(){return this._validateActiveEdits([],this.selectedIds)}async refresh(){this._table&&await this._refresh()}featureSelectionChange;toggleFilter;showDelete;async beforeMapInfoChange(t){const i=t.detail.ref,s=t.detail.mapInfo;if(this._hasPendingEdits()){t.preventDefault();const e=await this._validateActiveEdits([],this.selectedIds);await i.setMapByID(e?s.id:t.detail.currentId,!e)}}async editorInitialized(t){this._shouldUpdateTableOnExtentChange=!1,this._editor=t.detail}async closeEdit(){this._shouldUpdateTableOnExtentChange=!0,this._filterByExtentHandle&&this._handleTableOnMapExtent()}async selectionChanged(t){const i=t.detail.selectedFeature[0],s=i.getObjectId(),e=this._table;if(e.rowHighlightIds.length&&e.rowHighlightIds.removeAll(),e.rowHighlightIds.add(s),this._highlightFeatures(s),this.zoomAndScrollToSelected){const t=this._table.viewModel.getObjectIdIndex(s);this._table.scrollToIndex(t);const e=i.layer;let h;this.mapView.allLayerViews.toArray().some((t=>{if(t.layer.title===e.title&&"feature"===t.layer.type)return h=t,!0})),h&&await c([s],h,this.mapView,!0,void 0,this.zoomToScale)}}async beforeLayerSelectionChange(t){if(this._hasPendingEdits()){t.preventDefault();const i=t.detail.ref,s=await this._validateActiveEdits([],this.selectedIds);return t.detail.selectedIds?await i.setLayerByIds(s?t.detail.newIds:t.detail.currentIds,!0):await i.setLayerById(s?t.detail.newId:t.detail.currentId,!0)}}async layerSelectionChange(t){await this._layerSelectionChanged(t)}async editsComplete(t){const i=t.detail;"delete"!==i&&"add"!==i||(this._allIds=await this.queryAllIds()),await this._refresh()}async facilityChanged(t){this._floorFacility=t.detail,this._updateFloorDefinitionExpression()}async levelChanged(t){this._floorLevel=t.detail,this._updateFloorDefinitionExpression()}async siteChanged(t){this._floorSite=t.detail,this._updateFloorDefinitionExpression()}async noLayersFound(){this._layer=void 0,this._allIds=[],this._clearSelection()}async clearSelection(){await this._validateActiveEdits([],this.selectedIds)&&this._clearSelection()}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initToolInfos(),this._resizeObserver||(this._resizeObserver=new ResizeObserver((()=>this._onResize())))}render(){const t=this._fetchingData?"display-none":"",i=this._fetchingData?"":"display-none",s=this._queryingData?"":"display-none",a=this._size.toString(),o=this.selectedIds.length.toString(),l=this.isMobile?"height-full":"height-full-adjusted",n=this._canShowFullTextSearch();return this._validateActiveActions(),e(h,{key:"2d4fa2f8d4cce83ef1f972444cac99ab17ccf09a"},e("div",{key:"b53e3d454a7c2c1886bfd61e960ca7aa27bf5761"},e("calcite-scrim",{key:"9a0e507b26707b8010f4d0ac3acd5a1eb8820780",class:s,loading:this._queryingData}),e("calcite-shell",{key:"1f1815e38773a834b7c1f6bdb783717477331522"},this._getTableControlRow("header"),e("div",{key:"fd2b3ca04bbb6b5ed9c2e044722079704b1c778e",class:`width-full ${l}`},e("calcite-panel",{key:"0355028dce084ac034fe4b5ea8f7a0b1fec18b83",class:"height-full width-full"},n&&e("div",{key:"3169fdf7d876b504c6ee1d11a0b41a55815cbc87",class:"search-container border-bottom"},e("calcite-input",{key:"116960c2b95658c23c2ed2ee4b5282af0fa44f27",class:"search",clearable:!0,icon:"search",onCalciteInputChange:t=>{this._searchTextChanged(t)},placeholder:this._searchPlaceHolder,title:this._searchPlaceHolder,type:"search"})),e("calcite-loader",{key:"83fdb600a68786dc0dd0dbbcfee1bc59bd311763",class:i,label:this._translations.fetchingData,scale:"l"}),e("div",{key:"4983053113d687a459f7749bfe7723964551c3df",class:t,ref:this.onTableNodeCreate}))),this.isMobile?void 0:e("div",{class:"bottom-left text-color height-19",id:"solutions-selected-count-div"},this._translations.recordsSelected.replace("{{total}}",a).replace("{{selected}}",o))),this.createFilterModal&&this._filterModal()))}_deleteDialog;async componentDidLoad(){this.isMobile||this._observerSet||(this._resizeObserver.observe(this._toolbar),this._observerSet=!0)}componentDidRender(){document.onclick=t=>this._handleDocumentClick(t),this._updateToolbar()}async _initModules(){const[t,i,s]=await o(["esri/widgets/FeatureTable","esri/core/reactiveUtils","esri/widgets/FeatureTable/support/TableTemplate"]);this.FeatureTable=t,this.reactiveUtils=i,this.TableTemplate=s}async _searchTextChanged(t){this._fullTextSearchInfo.forEach((i=>{i.searchTerm=t.target.value})),this._searchFullText()}async _searchFullText(){let t=[],i=!1;if(this._showOnlySelected)t=this._tempSelectedIds,i=!0;else{if(!await this._validateActiveEdits([],this.selectedIds))return;this._clearSelection(),this._tempSelectedIds=[]}this._searchExpression&&this._clearSearchDefinitionExpression();let s=[];if(this._fullTextSearchInfo?.length&&this._fullTextSearchInfo[0].searchTerm){const e=this._layer.createQuery();e.fullText=this._fullTextSearchInfo,s=await this._layer.queryObjectIds(e),i&&t?.length&&(s=s.filter((i=>t.includes(i)))),await this._updateSearchDefinitionExpression(s?.length?s:[-1])}i&&s?.length&&(this._showOnlySelected=!0,this._table.highlightIds.addMany(s.reverse())),await new Promise((t=>setTimeout(t,800))),await this._updateAllIds()}_clearSearchDefinitionExpression(){const t=this._layer.definitionExpression;this._searchExpression&&t?.indexOf(this._searchExpression)>-1&&(this._layer.definitionExpression=t?.indexOf(" AND ("+this._searchExpression)>-1?t.replace(` AND (${this._searchExpression})`,""):t.replace(this._searchExpression,"")),this._searchExpression=void 0}async _updateSearchDefinitionExpression(t){const i=this._layer.definitionExpression;if(t?.length){const s=`objectId in(${t})`;this._layer.definitionExpression=i?.indexOf(this._searchExpression)>-1?i.replace(this._searchExpression,s):i?`${i} AND (${s})`:s,this._searchExpression=s}else this._clearSearchDefinitionExpression()}_canShowFullTextSearch(){return((this._layer?.capabilities)?.query)?.supportsFullTextSearch&&this._layer.indexes.items.filter((t=>"FullText"==t.indexType)).length>0}_getFullTextSearchInfo(){if(this._fullTextSearchInfo=[],((this._layer?.capabilities)?.query)?.supportsFullTextSearch){const t=this._layer.indexes?.filter((t=>"FullText"==t.indexType));if(t?.length){const i=[];t.forEach((t=>{i.push(...t.fields.split(","))}));const s=[];i.forEach((t=>{const i=this._layer.getField(t.trim());s.push(i.alias)})),this._searchPlaceHolder=this._translations.searchPlaceholder.replace("{{fields}}",s.join(", ")),this._fullTextSearchInfo.push({onFields:["*"],searchTerm:"",searchType:"prefix"})}}}_onResize(){this._updateToolbar()}_getTableControlRow(t){return e("div",{class:"display-flex height-51-px border-bottom",ref:t=>this._toolbar=t,slot:t},this._getActionBar(),this.isMobile?void 0:this._getDropdown("more-table-options"),this.enableShare&&!this.isMobile?this._getShare("share"):void 0)}_getActionBar(){const t=this.isMobile?"width-full":"",i=this.isMobile?"border-top":"";return e("calcite-action-bar",{class:t,expandDisabled:!0,expanded:!0,id:this._getId("bar"),layout:"horizontal"},e("div",{class:`border-end ${t} ${i}`,id:"solutions-map-layer-picker-container"},e("map-layer-picker",{appearance:"transparent",defaultLayerId:this.defaultLayerId,display:"inline-flex",height:50,isMobile:this.isMobile,locale:this.locale,mapView:this.mapView,onlyShowUpdatableLayers:this.onlyShowUpdatableLayers,placeholderIcon:"layers",scale:"l",selectedIds:this._layer?[this._layer?.id]:[],showSingleLayerAsLabel:!0,showTables:!0,type:"dropdown"})),this.isMobile?void 0:this._getActions())}_getActions(){const t=this._getActionItems();return t?.reduce(((t,i)=>(i&&!i.isOverflow&&t.push(i.isDanger?this._getDangerAction(i.icon,i.label,i.func,i.disabled):i.isSublist&&this._table?.columns?.length>0?e("calcite-dropdown",{closeOnSelectDisabled:!0,id:this._getId(i.icon),onCalciteDropdownBeforeClose:()=>this._forceShowHide(),ref:t=>this._showHideDropdown=t},this._getAction(i.active,this._showHideOpen?"chevron-down":i.icon,i.indicator,i.label,i.func,i.disabled,i.loading,"trigger"),this._showHideOpen?this._getFieldlist():void 0):this._getAction(i.active,i.icon,i.indicator,i.label,i.func,i.disabled,i.loading)),t)),[])}_getFieldlist(){return this._columnsInfo?e("calcite-dropdown-group",{"selection-mode":"multiple"},Object.keys(this._columnsInfo).map((t=>{const i=this._columnsInfo[t];return e("calcite-dropdown-item",{id:`layer-table-${t.toLowerCase().replaceAll(" ","")}`,label:t,onClick:t=>{const i=t.target;this._columnsInfo[i.label]=!i.selected,i.selected?this._table.hideColumn(i.label):this._table.showColumn(i.label)},selected:i},t)}))):void 0}_validateEnabledActions(){const t=this._featuresSelected(),i=this.selectedIds.length>1&&this._layer?.capabilities?.operations?.supportsUpdate,s=["zoom-to-object","pencil","trash","erase","selected-items-filter"];this._toolInfos?.forEach((e=>{e&&s.indexOf(e.icon)>-1&&(e.disabled="pencil"===e.icon?!i:!t)}))}_validateActiveActions(){const t=["filter","list-check-all","selected-items-filter"];this._toolInfos?.forEach((i=>{i&&t.indexOf(i.icon)>-1&&("filter"===i.icon&&(i.indicator=this._filterActive),"list-check-all"===i.icon&&(i.active=this._selectAllActive),"selected-items-filter"===i.icon&&(i.active=this._showOnlySelected,i.label=this._showOnlySelected?this._translations.showAll:this._translations.showSelected))}))}_initToolInfos(){const t=this._featuresSelected(),i=this.selectedIds.length>1&&this._layer?.capabilities?.operations?.supportsUpdate&&!1,s=this._featuresEmpty();this._translations&&(this._toolInfos=[this.mapHidden?void 0:{active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>this._zoom(),disabled:!t,isOverflow:!1},{active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>this.createFilterModal?this._toggleFilter():this.toggleFilter.emit(),disabled:!1,isOverflow:!1},i?{active:!1,icon:"pencil",indicator:!1,label:this._translations.editMultiple,func:()=>alert(this._translations.editMultiple),disabled:!i,isOverflow:!1}:void 0,this._deleteEnabled?{active:void 0,icon:"trash",indicator:void 0,label:this._translations.delete,func:()=>this._showDelete(),disabled:!t,isDanger:!0,isOverflow:!1}:void 0,{active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>{this.clearSelection()},disabled:!t,isOverflow:!1},{active:!1,icon:"selected-items-filter",indicator:!1,label:this._showOnlySelected?this._translations.showAll:this._translations.showSelected,func:()=>this._toggleShowSelected(),disabled:!t,isOverflow:!1},{active:!1,icon:"list-check-all",indicator:!1,func:async()=>await this._selectAll(),label:this._translations.selectAll,disabled:s,isOverflow:!1},{active:!1,icon:"compare",indicator:!1,func:async()=>await this._switchSelected(),label:this._translations.switchSelected,disabled:s,isOverflow:!1},{active:!1,icon:"refresh",indicator:!1,func:()=>this._refresh(),label:this._translations.refresh,disabled:!1,isOverflow:!1},this.enableCSV?{active:!1,icon:"export",indicator:!1,func:()=>{this._exportToCSV()},label:this._translations.exportCSV,loading:this._csvExporting,disabled:s,isOverflow:!1}:void 0,{active:!1,icon:this._showHideOpen?"chevron-down":"chevron-right",indicator:!1,func:()=>this._toggleShowHide(),label:this._translations.showHideColumns,disabled:!1,isOverflow:!1,isSublist:!0}],this._defaultVisibleToolSizeInfos=void 0)}_updateFloorDefinitionExpression(){if(this._floorField&&this._floorLevel){const t=`${this._floorField} = '${this._floorLevel}'`,i=this._layer.definitionExpression;this._layer.definitionExpression=i?.indexOf(this._floorExpression)>-1?i.replace(this._floorExpression,t):i?`${i} AND (${t})`:t,this._floorExpression=t}}_featuresSelected(){return this.selectedIds.length>0}_featuresEmpty(){return 0===this._allIds.length}_hasFilterExpressions(){let t;return this.mapInfo?.filterConfig?.layerExpressions&&this._layer?.id&&(t=this.mapInfo.filterConfig.layerExpressions.filter((t=>t.id===this._layer.id))),t?.length>0}_updateToolbar(){this._timeout&&clearTimeout(this._timeout),!this.isMobile&&this._toolbar&&this._toolInfos&&(this._timeout=setTimeout((()=>{clearTimeout(this._timeout),this._setToolbarSizeInfos();const t=this._toolbar.offsetWidth;let i=this._toolbarSizeInfos.reduce(((t,i)=>t+i.width),0);const s=["solutions-more","solutions-map-layer-picker-container","map-picker","solutions-action-share"];if(i>t){if(this._toolbarSizeInfos.length>0){const e=[...this._toolbarSizeInfos].reverse().reduce(((e,h)=>(s.indexOf(h.id)<0&&(i>t?i-=h.width:e.push(h)),e)),[]).reverse();this._setControlsThatFit(e,s)}}else if(this._defaultVisibleToolSizeInfos){const e=this._toolbarSizeInfos.reduce(((t,i)=>(t.push(i.id),t)),[]);let h=!1;const a=[...this._defaultVisibleToolSizeInfos].reduce(((a,o)=>(!h&&s.indexOf(o.id)<0&&(e.indexOf(o.id)>-1||i+o.width<=t)?(e.indexOf(o.id)<0&&(i+=o.width),a.push(o)):s.indexOf(o.id)<0&&i+o.width>t&&(h=!0),a)),[]);this._setControlsThatFit(a,s)}}),100))}_setControlsThatFit(t,i){let s=JSON.stringify(t)!==JSON.stringify(this._controlsThatFit);const e=document.getElementById("solutions-action-bar");e?.childNodes?.forEach((t=>{i.indexOf(t.id)<0&&!s&&(s=this._controlsThatFit.map((t=>t.id)).indexOf(t.id)<0)})),s&&(this._controlsThatFit=[...t])}_setToolbarSizeInfos(){let t=!1;this._toolbarSizeInfos=[],this._toolbar.childNodes.forEach(((i,s)=>{0===s?i.childNodes.forEach((i=>{this._toolbarSizeInfos.push({id:i.id,width:i.offsetWidth}),t||(t=i.offsetWidth>0)})):i.referenceElement||(this._toolbarSizeInfos.push({id:i.id,width:i.offsetWidth}),t||(t=i.offsetWidth>0))})),t&&!this._defaultVisibleToolSizeInfos&&(this._defaultVisibleToolSizeInfos=[...this._toolbarSizeInfos])}_getActionItems(){return this._toolInfos?.filter((t=>t&&!t.isOverflow))}_getDropdown(t){const i=this._getDropdownItems();return i.length>0?e("calcite-dropdown",{closeOnSelectDisabled:!0,disabled:void 0===this._layer,id:"solutions-more",onCalciteDropdownBeforeClose:()=>this._forceShowHide(),ref:t=>this._moreDropdown=t},e("calcite-action",{appearance:"solid",id:t,label:"",onClick:()=>this._closeShowHide(),slot:"trigger",text:""},e("calcite-button",{appearance:"transparent",iconEnd:"chevron-down",kind:"neutral"},this._translations.more)),e("calcite-dropdown-group",{"selection-mode":"none"},i.map((t=>e("calcite-dropdown-group",{class:`${t.disabled?"disabled":""} ${"trash"===t.icon?"delete-red":""}`,selectionMode:"none"},e("calcite-dropdown-item",{disabled:t.loading,iconStart:t.isSublist&&this._showHideOpen?"chevron-down":t.loading?"":t.icon,id:`layer-table-${t.icon}`,onClick:t.func},t.loading?e("div",{class:"display-flex"},e("calcite-loader",{inline:!0,label:t.label,scale:"m"}),t.label):t.label))))),this._showHideOpen?this._getFieldlist():void 0):void 0}_getDropdownItems(){return this._toolInfos?.filter((t=>t&&t.isOverflow))}_getAction(t,i,s,h,a,o,l,n){const c=void 0===this._layer||o;return e("div",{class:"display-flex",id:this._getId(i),slot:n},e("calcite-action",{active:t,appearance:"solid",disabled:c,icon:i,id:`layer-table-${i}`,indicator:s,label:h,loading:l,onClick:a,text:h,textEnabled:!0}),this._getToolTip("bottom",i,h))}_showDelete(){this.showDelete.emit({ids:this._getIds()})}_getShare(t){return e("div",{class:"share-action",id:this._getId(t)},e("instant-apps-social-share",{autoUpdateShareUrl:!1,class:"instant-app-share",embed:this.shareIncludeEmbed,flipRtl:!0,popoverButtonIconScale:"s",ref:t=>this._shareNode=t,scale:"m",shareButtonColor:"neutral",shareButtonType:"action",socialMedia:this.shareIncludeSocial,view:this.mapView}),this._getToolTip("bottom",t,this._translations.share))}_updateShareUrl(){const t=this._shareNode?.shareUrl;if(!t)return;const i=new URL(t);this.mapInfo?.id?i.searchParams.set("webmap",this.mapInfo.id):i.searchParams.delete("webmap"),this._layer?.id?i.searchParams.set("layer",this._layer.id):i.searchParams.delete("layer"),this.selectedIds?.length>0?i.searchParams.set("oid",this.selectedIds.join(",")):i.searchParams.delete("oid"),i.searchParams.set("applayout",this.appLayout),this._shareNode.shareUrl=i.href}_getToolTip(t,i,s){return document.getElementById(i)?e("calcite-tooltip",{placement:t,"reference-element":i},e("span",null,s)):void 0}_getId(t){return`solutions-action-${t}`}_getDangerAction(t,i,s,h){const a=void 0===this._layer||h;return e("div",{class:"display-flex",id:this._getId(t)},e("calcite-action",{appearance:"solid",disabled:a,id:t,onClick:s,text:""},e("calcite-button",{appearance:"transparent",iconStart:t,kind:"danger"},i)),this._getToolTip("bottom",t,i))}_getIds(){return this._table?.highlightIds?.map((t=>parseInt(t.toString(),10))).toArray()}onTableNodeCreate=t=>{this._tableNode=t};async _getTable(t,i){this._layer&&(await this._layer.when((()=>{this._table=new this.FeatureTable({autoRefreshEnabled:this.enableAutoRefresh,layer:this._layer,view:this.mapView,columnReorderingEnabled:this.enableColumnReorder,editingEnabled:this._editEnabled&&this.enableInlineEdit,highlightEnabled:!1,multiSortEnabled:!1,attachmentsEnabled:!0,visibleElements:{columnDescriptions:!1,header:!1,menu:!1,progress:!1},tableTemplate:{columnTemplates:i},container:t})})),await this._table.when((()=>{const t=this._table.highlightIds.on("change",(t=>{this._handleOnChange(t)}));this._table.viewModel.addHandles(t),this._table.on("cell-pointerover",this.tempHighlightOnHover.bind(this)),this._table.on("cell-pointerout",this._removeTempHighlight.bind(this)),this._tableNode.addEventListener("mouseleave",this._removeTempHighlight.bind(this));const i=this.reactiveUtils.watch((()=>this._table.size),(t=>{this._size=t}));this._table.viewModel.addHandles(i)})))}async _handleOnChange(t){if(!await this._validateActiveEdits([...t.added],[...t.removed]))return;const i=[...this._getIds()];this.selectedIds=i.reverse(),this._tempSelectedIds=[...this.selectedIds],this._finishOnChange(),this._selectionFromMap=!1,this._highlightFeatures(this.selectedIds[0])}async _validateActiveEdits(t,i){let s=!0;if(this._editor&&!this._skipEditCheck){if(this._hasPendingEdits()){let e=!1;try{await this._editor.cancelWorkflow({force:!1})}catch(t){e="workflow:cancel-denied"===t.name}e&&(s=!1,this._skipEditCheck=!0,t.length>0?this._table.highlightIds.removeMany(t):i.length>0&&this._table.highlightIds.addMany(i))}}else s=!this._skipEditCheck,this._skipEditCheck=!1;return this._shouldUpdateTableOnExtentChange=s,s}_hasPendingEdits(){const t=this._editor?.viewModel?.hasPendingEdits,i=this._editor?.activeWorkflow?.activeWorkflow?.hasPendingEdits;return t||i}_finishOnChange(){this._showOnlySelected&&(this._featuresSelected()?this._table.filterBySelectionEnabled=!0:this._toggleShowSelected()),this.featureSelectionChange.emit(this.selectedIds)}tempHighlightOnHover(t){this._removeTempHighlight(),this._temporaryFeatureHandle=this._selectedLayerView.highlight([t.feature],{name:"temporary"})}_removeTempHighlight(){this._temporaryFeatureHandle&&this._temporaryFeatureHandle.remove()}_highlightFeatures(t){if(this._clearHighlights(),this._currentFeatureHighlightHandle=this._selectedLayerView.highlight([t],{name:"current-selection"}),this.selectedIds.length>1){const i=this.selectedIds.filter((i=>i!==t));this._defaultFeaturesHandle=this._selectedLayerView.highlight(i,{name:"default"})}}_clearHighlights(){this._removeTempHighlight(),this._currentFeatureHighlightHandle&&this._currentFeatureHighlightHandle.remove(),this._defaultFeaturesHandle&&this._defaultFeaturesHandle.remove()}_resetColumnTemplates(){const t=this._getColumnTemplates(this._layer?.id,this._layer?.fields);0===t?.length?this._tableNode?.classList.add("display-none"):this._tableNode?.classList.remove("display-none");const i=this._table?.tableTemplate?.columnTemplates,s=i&&t&&i.length!==t.length||t?.some(((t,s)=>JSON.stringify(i[s])!==JSON.stringify(t)));if(this._table&&t&&(s||!this._columnsInfo)){this._table.tableTemplate=new this.TableTemplate({columnTemplates:t});const i=t.map((t=>t.fieldName));this._initColumnsInfo(i)}}async _resetTable(){if(this._loaded=!1,this._clearSelection(),this._allIds=await this.queryAllIds(),this._table)this._table.view=this.mapView,this._table.layer=this._layer;else{const t=this._getColumnTemplates(this._layer.id,this._layer?.fields);await this._getTable(this._tableNode,t)}await this._initLayerRefresh(),this._checkEditEnabled(),this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit,await this._table.when(),setTimeout((()=>{this._loaded||this.finishLoading()}),1e3),await this.reactiveUtils.once((()=>"loaded"===this._table.state)).then((async()=>{await this.finishLoading()}))}async finishLoading(){try{this._loaded=!0,this._table.highlightIds.removeAll(),this._table.objectIds.removeAll(),this._resetColumnTemplates(),this._showOnlySelected=!1,await this._handleDefaults(),await this._sortTable(),this._initToolInfos(),this._updateToolbar()}catch(t){console.log(t)}}async _initLayerRefresh(){this._refreshHandle&&this._refreshHandle.remove(),this._refreshHandle=this._layer.on("refresh",(t=>{t.dataChanged&&this._updateAllIds()}))}async _updateAllIds(){const t=await this.queryAllIds(),i=this.selectedIds.filter((t=>this._allIds.indexOf(t)>-1));JSON.stringify(t)===JSON.stringify(this._allIds)&&JSON.stringify(this.selectedIds)===JSON.stringify(i)||(this._allIds=t,this.selectedIds=i,await this._refresh())}async _handleDefaults(){if(!this._defaultOidHonored&&this.defaultOid?.length>0&&this.defaultOid[0]>-1&&this._table&&(await this._selectDefaultFeature(this.defaultOid),this._defaultOidHonored=!0,this.defaultOid=void 0,this._showOnlySelected=!1,this._toggleShowSelected()),!this._defaultGlobalIdHonored&&this.defaultGlobalId?.length>0&&this._table){const t=await r(this.defaultGlobalId,this._layer),i=t?.length>0?t.map((t=>t.getObjectId())):void 0;i&&await this._selectDefaultFeature(i),this._defaultGlobalIdHonored=!0,this.defaultGlobalId=void 0,this._showOnlySelected=!1,this._toggleShowSelected()}}_initColumnsInfo(t){const i=this._table?.columns.reduce(((i,s)=>((!t||t?.indexOf(s.name)>-1)&&(i[s.name]=!s.hidden),i)),{}),s=this._table?.columns.map((t=>t.name));(t?t.filter((t=>s.indexOf(t)<0)):[]).forEach((t=>{i[t]=!0})),this._columnsInfo=t?t.reduce(((t,s)=>(t[s]=i[s],t)),{}):i}async _selectDefaultFeature(t){t.length>0&&this._table.highlightIds.addMany(t)}_checkEditEnabled(){this._editEnabled=this._layer.editingEnabled&&this._layer.capabilities.operations.supportsUpdate,this._deleteEnabled=this._layer.editingEnabled&&this._layer.capabilities.operations.supportsDelete}async _sortTable(){let t,i=this._layer?.objectIdField,s="desc";this.mapInfo?.layerOptions?.layers?.length>0&&this._layer?.id&&(t=this.mapInfo.layerOptions.layers.filter((t=>t.id===this._layer.id)),t&&t.length>0&&(t=t[0],t.sortField&&t.fields?.includes(t.sortField)&&(i=t.sortField),s=t?.sortOrder?t.sortOrder:"desc")),this._table&&this._layer&&(await this._table.when(),await this._layer.when((()=>{this._table.sortColumn(i,s)})))}_forceShowHide(){this._showHideDropdown&&(this._showHideDropdown.open=this._showHideOpen),this._moreDropdown&&(this._moreDropdown.open=this._showHideOpen)}_toggleShowHide(){this._showHideOpen=!this._showHideOpen}_closeShowHide(){this._showHideOpen=!1}_handleDocumentClick(t){const i=t.target?.id;i.startsWith("layer-table-")?this._moreDropdown.open=!0:this._showHideOpen&&Object.keys(this._columnsInfo).indexOf(i)<0&&"chevron-right"!==i&&(this._closeShowHide(),this._moreDropdown&&(this._moreDropdown.open=!1),this._showHideDropdown&&(this._showHideDropdown.open=!1))}_filterModal(){return alert("_filterModal how does this one get hit??"),e("calcite-dialog",{class:"filter-content-space",heading:this._translations?.filter?.replace("{{title}}",this._layer?.title),id:"solutions-filter-dialog",kind:"brand",modal:!0,onCalciteDialogClose:()=>{this._closeFilter()},open:this._filterOpen,widthScale:"s"},e("instant-apps-filter-list",{autoUpdateUrl:!1,closeBtn:!0,closeBtnOnClick:()=>{this._closeFilter()},comboboxOverlayPositioning:"fixed",layerExpressions:this._layerExpressions,onFilterListReset:()=>{this._handleFilterListReset()},onFilterUpdate:()=>{this._handleFilterUpdate(this._filterList.filterCount>0)},ref:t=>this._filterList=t,view:this.mapView,zoomBtn:!1}))}async _handleFilterListReset(){this._filterActive=!1,this._updateShareUrl(),await this._searchFullText()}async _handleFilterUpdate(t){const i=this._layer.definitionExpression;if(this._floorExpression){const t=new RegExp(`${this._floorField} = ['].+[']`,"gm");this._layer.definitionExpression=i&&this._floorField&&i.indexOf(`${this._floorField} = '`)>-1?i.replace(t,this._floorExpression):i?`${i} AND (${this._floorExpression})`:this._floorExpression}this._filterActive=t,this._updateShareUrl(),await this._searchFullText()}_handleTableOnMapExtent(){this._table&&(this._filterByExtentHandle=this.reactiveUtils.when((()=>this.mapView.stationary),(async()=>{if(this._shouldUpdateTableOnExtentChange){await new Promise((t=>setTimeout(t,800))),this._table.filterGeometry=this.mapView.extent;const t={geometry:this.mapView.extent},i=await this._layer.queryObjectIds(t),s=this.selectedIds.filter((t=>!i.includes(t))),e=this._outOFExtentOids.filter((t=>i.includes(t)));s.length>0&&(this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table.highlightIds.removeMany(s),this._outOFExtentOids=[...this._outOFExtentOids,...s]),e.length>0&&(this.selectedIds=[...new Set([...this.selectedIds,...e])],this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(this.selectedIds.reverse()),this._outOFExtentOids=this._outOFExtentOids.filter((t=>!e.includes(t))))}this._allIds=await this.queryAllIds()}),{initial:!0}))}async _closeFilter(){this._filterOpen&&(this._allIds=await this.queryAllIds(),this._filterOpen=!1)}async queryAllIds(){const t=this._layer.createQuery();return t.geometry=this._filterByExtentHandle?this.mapView.extent:null,t.where=this._layer.definitionExpression||"1=1",await this._layer.queryObjectIds(t)}async _mapClicked(t){const i={include:this._layer},s=await this.mapView.hitTest(t.screenPoint,i);s.results.length>0?(s.results.forEach((t=>{const i=t.graphic.getObjectId();this._table.highlightIds.indexOf(i)<0&&(this._selectionFromMap=!0,this._table.highlightIds.add(i))})),this._showOnlySelected&&(this._table.filterBySelectionEnabled=!0)):await this.clearSelection()}async _selectAll(){const t=this._allIds,i=t.filter((t=>this.selectedIds.indexOf(t)<0));await this._validateActiveEdits(i,this.selectedIds)?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(t),this.selectedIds=t,this._finishOnChange(),this._selectAllActive=!0):this._skipEditCheck=!1}_toggleShowSelected(){this._showOnlySelected=!this._showOnlySelected,this._table.filterBySelectionEnabled=this._showOnlySelected}_clearSelection(){this.selectedIds=[],this._outOFExtentOids=[],this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table?.highlightIds.removeAll(),this._clearHighlights(),this._table?.rowHighlightIds.removeAll(),this._finishOnChange()}_toggleFilter(){this._filterOpen=!this._filterOpen}_initLayerExpressions(){const t=this.mapInfo?.filterConfig?.layerExpressions;this._layerExpressions=t?t.filter((t=>t.id===this._layer?.id)):[],this._filterList.layerExpressions=this._layerExpressions,this._filterActive=this._layerExpressions.filter((t=>t.expressions.filter((t=>t.active)).length>0)).length>0}async _switchSelected(){const t=[...this.selectedIds],i=this._allIds.reduce(((i,s)=>(t.indexOf(s)<0&&i.push(s),i)),[]).sort(((t,i)=>t-i));await this._validateActiveEdits(i,t)?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(i),this.selectedIds=i,this._finishOnChange()):this._skipEditCheck=!1}async _exportToCSV(){const t={},i=this._getIds();t[this._layer.id]={selectionSetNames:[this._layer.title],ids:i,layer:this._layer};const s=this._table.columns.toArray().reduce(((t,i)=>{if(!i.hidden){const s=i?.name||i?.fieldName;s&&t.push(s.toLocaleLowerCase())}return t}),[]);this._updateToolInfoLoading("export",!0),this._csvExporting=!0,await p(this.mapView.map,t,!1,!1,!0,s,!0,!0),this._updateToolInfoLoading("export",!1),this._csvExporting=!1}_updateToolInfoLoading(t,i){this._toolInfos.some((s=>{if(s?.icon===t)return s.loading=i,!0}))}async _refresh(){await this._validateActiveEdits([],this.selectedIds)&&(await(this._table?.refresh()),this._allIds=await this.queryAllIds(),this.featureSelectionChange.emit(this.selectedIds))}async _zoom(){this._layer&&await c(this.selectedIds,this._selectedLayerView,this.mapView,!0,void 0,this.zoomToScale)}async _layerSelectionChanged(t){const i=t.detail[0];if(i!==this._layer?.id||this._featuresEmpty()){this._fetchingData=!0;const t=await l(this.mapView,i);t&&await t.when((async()=>{this._selectedLayerView=await d(this.mapView,t.id),this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._shouldUpdateTableOnExtentChange=!0,this._layer=t,this._getFullTextSearchInfo()}))}this._fetchingData=!1}_getColumnTemplates(t,i){let s;this.mapInfo?.layerOptions?.layers.some((i=>{if(i.id===t)return s=i,!0}));const e=this._layer?.attributeTableTemplate?.elements;let h=[];e?.length>0&&this.honorMapFieldSettings&&(h=e.map((t=>t.fieldName)));const a=s?.fields&&s?.fieldOrder?s.fieldOrder.filter((t=>s.fields.indexOf(t)>-1)):h.length>0?h:void 0;let o;return i&&(o=i.reduce(((t,i)=>{const e={type:"field",fieldName:i.name,label:i.alias,menuConfig:this._getMenuConfig(i.name)};return s&&s?.fields?s.fields.indexOf(i.name)>-1&&t.push(e):h.length>0?h.indexOf(i.name)>-1&&t.push(e):t.push(e),t}),[])),a?o?.sort(this._sortFields.bind(this,a)):o}_sortFields(t,i,s){return t?.indexOf(i.fieldName)-t.indexOf(s.fieldName)}_getMenuConfig(t){return{items:[{label:this._translations.hideField,icon:"view-hide",autoCloseMenu:!0,clickFunction:()=>{this._handleHideClick(t)}}]}}_handleHideClick(t){this._columnsInfo[t]=!1,this._table.hideColumn(t),this._table.tableTemplate.columnTemplates.forEach((i=>{i.fieldName===t&&(i.visible=!1)}))}async _getTranslations(){const t=await a(this.el);this._translations=t[0]}static get watchers(){return{appLayout:["appLayoutWatchHandler"],defaultOid:["defaultOidWatchHandler"],defaultGlobalId:["defaultGlobalIdWatchHandler"],enableCSV:["enableCSVWatchHandler"],enableInlineEdit:["enableInlineEditWatchHandler"],enableShare:["enableShareWatchHandler"],_controlsThatFit:["_controlsThatFitWatchHandler"],locale:["localeWatchHandler"],mapHidden:["mapHiddenWatchHandler"],isMobile:["isMobileWatchHandler"],mapView:["mapViewWatchHandler"],_layer:["_layerWatchHandler"],selectedIds:["selectedIdsWatchHandler"]}}};function u(t){return function(t){return-1!==t?.indexOf("http://")}(t)?t.replace(/^http:\/\//,"https://"):t}f.style=':host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51-px{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir="rtl"] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-background)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none !important}vaadin-grid-cell-content{font-size:14px !important;color:var(--calcite-color-text-3) !important}.share-action{position:absolute;right:0;left:unset}html[dir="rtl"] .share-action{left:0;right:unset}.disabled{cursor:default !important;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.instant-app-share{height:50px !important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-modal-content-padding:0}.esri-feature-table__table-container{height:100%}.search-container{background-color:var(--calcite-color-foreground-1) !important}.search{--calcite-color-border-input:var(--calcite-color-border-3);width:60%;padding:10px}.delete-red{--calcite-icon-color:var(--calcite-color-status-danger);--calcite-color-text-1:var(--calcite-color-status-danger);--calcite-color-text-3:var(--calcite-color-status-danger)}';const m=class{constructor(s){t(this,s),this.mapChanged=i(this,"mapChanged",7),this.beforeMapChanged=i(this,"beforeMapChanged",7),this.toggleFilter=i(this,"toggleFilter",7),this.clearSelection=i(this,"clearSelection",7),this.appLayout=void 0,this.appProxies=void 0,this.defaultWebmapId="",this.defaultLayerId=void 0,this.enableHome=void 0,this.enableLegend=void 0,this.enableFloorFilter=void 0,this.enableFullscreen=void 0,this.enableShare=!1,this.enableSingleExpand=!0,this.enableSearch=void 0,this.enableBasemap=void 0,this.basemapConfig=void 0,this.hidden=void 0,this.homeZoomIndex=3,this.homeZoomPosition="top-left",this.homeZoomToolsSize="m",this.locale=void 0,this.mapInfos=[],this.mapWidgetsIndex=0,this.mapWidgetsPosition="top-right",this.mapWidgetsSize="m",this.mapView=void 0,this.stackTools=!0,this.theme=void 0,this.toolOrder=void 0,this.isMapLayout=void 0,this.shareIncludeEmbed=void 0,this.shareIncludeSocial=void 0,this.selectedFeaturesIds=void 0,this.selectedLayer=void 0,this.zoomToScale=void 0,this.onlyShowUpdatableLayers=void 0,this.isMobile=void 0,this.mapInfo=void 0,this._translations=void 0,this._searchConfiguration=void 0,this._webMapInfo=void 0,this._showHideOpen=!1,this._toolInfos=void 0,this._controlsThatFit=void 0}get el(){return s(this)}esriConfig;Home;MapView;WebMap;_defaultWebmapHonored=!1;_homeWidget;_loadedId="";_mapDiv;_mapPicker;_mapTools;_moreDropdown;_mapListExpanded=!1;_filterActive=!1;_definitionExpression;_mapLayerPicker;_resizeObserver;_shareNode;_showHideDropdown;_toolbar;_timeout;_toolbarSizeInfos;_defaultVisibleToolSizeInfos;_observerSet=!1;appLayoutWatchHandler(){this._updateShareUrl()}enableHomeWatchHandler(){this._initHome()}enableShareWatchHandler(){this._toolbar&&this._updateToolbar()}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(){this.mapView&&this._updateShareUrl()}async selectedLayerWatchHandler(){await(this.selectedLayer?.when((async()=>{this._definitionExpression=this.selectedLayer.definitionExpression})))}async selectedFeaturesIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions()}_controlsThatFitWatchHandler(){const t=this._controlsThatFit?this._controlsThatFit.reduce(((t,i)=>(t.push(i.id),t)),[]):[];this._toolInfos=this._toolInfos?.map((i=>{if(i&&this._controlsThatFit){const s=this._getId(i.icon);return i.isOverflow=t.indexOf(s)<0,i}}))}async resetFilter(){this._filterActive=!1,this._updateShareUrl()}async updateFilterState(t){this._filterActive=t,this._updateShareUrl()}async updateLayer(){this._mapLayerPicker.updateLayer()}mapChanged;beforeMapChanged;toggleFilter;clearSelection;async mapInfoChange(t){await this._loadMap(t.detail)}noLayersFound(){this.selectedLayer=void 0,this.selectedFeaturesIds=[]}layerSelectionChange(){setTimeout((()=>{this._initToolInfos()}),50)}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initToolInfos(),this._resizeObserver||(this._resizeObserver=new ResizeObserver((()=>this._updateToolbar())))}render(){const t=this.isMapLayout?"display-flex height-49-px":"",i=this.hidden?"visibility-hidden-1":"",s="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light",a=this.mapInfos?.length>1||this.isMapLayout?"map-height":"height-full",o=this.isMapLayout?"":"display-none";return this._validateActiveActions(),e(h,{key:"0dbff0683a2ba0aa956344c84719990b8316bdee"},e("div",{key:"af68bee85faa0da7189d4d8d831eb858600038d8",class:`${t} width-full`,ref:t=>this._toolbar=t},this._getActionBar(),!this.isMobile&&this.isMapLayout&&this._getDropdown("more-table-options"),this.enableShare&&!this.isMobile&&this.isMapLayout?this._getShare("share"):void 0),e("calcite-progress",{key:"5c4d2dacfe7eb4b13d115731981b8e50870a271d",class:o,value:0}),e("div",{key:"357d395aa75ee86fa5060bfc0d48b62a7aad31fc",class:`${a} ${i}`,ref:t=>this._mapDiv=t}),e("map-tools",{key:"ec965773008f144944a04253ca5cea818d38cc69",basemapConfig:this.basemapConfig,class:`box-shadow ${s}`,enableBasemap:this.enableBasemap,enableFloorFilter:this.enableFloorFilter,enableFullscreen:this.enableFullscreen,enableHome:this.enableHome,enableLegend:this.enableLegend,enableSearch:this.enableSearch,enableSingleExpand:this.enableSingleExpand,homeZoomToolsSize:this.homeZoomToolsSize,locale:this.locale,mapView:this.mapView,mapWidgetsSize:this.mapWidgetsSize,position:this.mapWidgetsPosition,ref:t=>this._mapTools=t,searchConfiguration:this._searchConfiguration,stackTools:this.stackTools,toolOrder:this.toolOrder}))}async componentDidRender(){this.isMapLayout&&this._updateToolbar(),document.onclick=t=>this._handleDocumentClick(t)}async componentDidLoad(){this.isMobile||this._observerSet||(this._resizeObserver.observe(this._toolbar),this._observerSet=!0),this._updateShareUrl()}async _initModules(){const[t,i,s,e]=await o(["esri/WebMap","esri/views/MapView","esri/widgets/Home","esri/config"]);this.WebMap=t,this.MapView=i,this.Home=s,this.esriConfig=e}async _loadMap(t){const i=!this._defaultWebmapHonored&&this.defaultWebmapId,s=this.mapInfos?.filter((t=>t.id===this.defaultWebmapId)),e=JSON.stringify(t)!==JSON.stringify(this._webMapInfo);this._webMapInfo=i&&s?s[0]:!t?.id&&this.mapInfos.length>0?this.mapInfos[0]:t;const h=this._webMapInfo.id,a=i&&t?.id===this.defaultWebmapId;if(this._loadedId!==h&&!i||a){const t=new this.WebMap({portalItem:{id:h}});this.appProxies&&(await t.load(),await(o=t,l=this.esriConfig,n=this.appProxies,n&&n.forEach((t=>{o.allLayers.forEach((i=>{i&&i.url===t.sourceUrl&&(i.url=u(t.proxyUrl),i.portalItem&&i.portalItem.when((()=>{i.portalItem.url=u(t.proxyUrl)})),l.request?.interceptors?.push({urls:t.sourceUrl,before:i=>{i.url&&i.url===t.sourceUrl&&(i.url=u(t.proxyUrl))}}))}))})),o)),this.mapView=new this.MapView({container:this._mapDiv,map:t,resizeAlign:"center"}),this._loadedId=h,this._searchConfiguration=this._webMapInfo.searchConfiguration,this.beforeMapChanged.emit(),await this.mapView.when((()=>{this._initHome(),this.mapView.ui.add(this._mapTools,{position:this.mapWidgetsPosition,index:this.mapWidgetsIndex}),this._defaultWebmapHonored=!!a||this._defaultWebmapHonored,this.mapChanged.emit({id:h,mapView:this.mapView})}))}else i?(this._defaultWebmapHonored=!0,this._mapPicker.setMapByID(h)):e&&(this._searchConfiguration=this._webMapInfo.searchConfiguration,this.beforeMapChanged.emit(),this.mapChanged.emit({id:h,mapView:this.mapView}));var o,l,n;this._updateShareUrl()}_updateToolbar(){this._timeout&&clearTimeout(this._timeout),!this.isMobile&&this._toolbar&&this._toolInfos&&(this._timeout=setTimeout((()=>{clearTimeout(this._timeout),this._setToolbarSizeInfos();const t=this._toolbar.offsetWidth;let i=this._toolbarSizeInfos.reduce(((t,i)=>t+i.width),0);const s=["solutions-more","solutions-map-layer-picker-container","map-picker","solutions-action-share"];if(i>t){if(this._toolbarSizeInfos.length>0){const e=[...this._toolbarSizeInfos].reverse().reduce(((e,h)=>(s.indexOf(h.id)<0&&(i>t?i-=h.width:e.push(h)),e)),[]).reverse();this._setControlsThatFit(e,s)}}else if(this._defaultVisibleToolSizeInfos){const e=this._toolbarSizeInfos.reduce(((t,i)=>(t.push(i.id),t)),[]);let h=!1;const a=[...this._defaultVisibleToolSizeInfos].reduce(((a,o)=>(!h&&s.indexOf(o.id)<0&&(e.indexOf(o.id)>-1||i+o.width<=t)?(e.indexOf(o.id)<0&&(i+=o.width),a.push(o)):s.indexOf(o.id)<0&&i+o.width>t&&(h=!0),a)),[]);this._setControlsThatFit(a,s)}}),250))}_setControlsThatFit(t,i){let s=JSON.stringify(t)!==JSON.stringify(this._controlsThatFit);const e=document.getElementById("solutions-action-bar");e?.childNodes?.forEach((t=>{i.indexOf(t.id)<0&&!s&&(s=this._controlsThatFit.map((t=>t.id)).indexOf(t.id)<0)})),s&&(this._controlsThatFit=[...t])}_setToolbarSizeInfos(){let t=!1;this._toolbarSizeInfos=[],this._toolbar.childNodes.forEach(((i,s)=>{0===s?i.childNodes.forEach((i=>{this._toolbarSizeInfos.push({id:i.id,width:i.offsetWidth}),t||(t=i.offsetWidth>0)})):i.referenceElement||(this._toolbarSizeInfos.push({id:i.id,width:i.offsetWidth}),t||(t=i.offsetWidth>0))})),t&&!this._defaultVisibleToolSizeInfos&&(this._defaultVisibleToolSizeInfos=[...this._toolbarSizeInfos])}_getActionBar(){const t=this.mapInfos?.length>1?"":"display-none",i=this.isMapLayout?"display-flex":"display-block",s=this.isMobile?"border-top":"",h=this.isMapLayout?"":"display-none";return e("calcite-action-bar",{class:i,expandDisabled:!0,expanded:!0,id:this._getId("bar"),layout:"horizontal"},e("map-picker",{class:t,id:"map-picker",isMapLayout:this.isMapLayout,locale:this.locale,mapInfos:this.mapInfos,ref:t=>this._mapPicker=t}),e("div",{class:`mapView-header display-flex ${h}`,id:"solutions-map-layer-picker-container"},e("div",{class:`border-end ${i} ${s}`},this.mapView&&e("map-layer-picker",{appearance:"transparent",defaultLayerId:this.defaultLayerId,display:"inline-flex",height:50,isMobile:this.isMobile,locale:this.locale,mapView:this.mapView,onlyShowUpdatableLayers:this.onlyShowUpdatableLayers,placeholderIcon:"layers",ref:t=>this._mapLayerPicker=t,scale:"l",selectedIds:this.selectedLayer?[this.selectedLayer.id]:[],showSingleLayerAsLabel:!0,showTables:!0,showTablesDisabled:!0,type:"dropdown"}))),!this.isMobile&&this.isMapLayout?this._getActions():void 0)}_getDropdown(t){const i=this._getDropdownItems();return i.length>0?e("calcite-dropdown",{closeOnSelectDisabled:!0,disabled:void 0===this.selectedLayer,id:"solutions-more",onCalciteDropdownBeforeClose:()=>this._forceShowHide(),ref:t=>this._moreDropdown=t},e("calcite-action",{appearance:"solid",id:t,label:"",onClick:()=>this._closeShowHide(),slot:"trigger",text:""},e("calcite-button",{appearance:"transparent",iconEnd:"chevron-down",kind:"neutral"},this._translations.more)),e("calcite-dropdown-group",{"selection-mode":"none"},i.map((t=>e("calcite-dropdown-group",{class:t.disabled?"disabled":"",selectionMode:"none"},e("calcite-dropdown-item",{disabled:t.loading,iconStart:t.icon,id:"solutions-subset-list",onClick:t.func},t.loading?e("div",{class:"display-flex"},e("calcite-loader",{inline:!0,label:t.label,scale:"m"}),t.label):t.label)))))):void 0}_getShare(t){return e("div",{class:"share-action",id:this._getId(t)},e("instant-apps-social-share",{autoUpdateShareUrl:!1,class:"instant-app-share",embed:this.shareIncludeEmbed,flipRtl:!0,popoverButtonIconScale:"s",ref:t=>{this._shareNode=t,this._updateShareUrl()},scale:"m",shareButtonColor:"neutral",shareButtonType:"action",socialMedia:this.shareIncludeSocial,view:this.mapView}),this._getToolTip("bottom",t,this._translations.share))}_updateShareUrl(){const t=this._shareNode?.shareUrl;if(!t)return;const i=new URL(t);this._loadedId?i.searchParams.set("webmap",this._loadedId):i.searchParams.delete("webmap"),this.selectedLayer?.id?i.searchParams.set("layer",this.selectedLayer.id):i.searchParams.delete("layer"),this.selectedFeaturesIds?.length>0?i.searchParams.set("oid",this.selectedFeaturesIds.join(",")):i.searchParams.delete("oid"),i.searchParams.set("applayout",this.appLayout),this._shareNode.shareUrl=i.href}_closeShowHide(){this._showHideOpen=!1}_getDropdownItems(){return this._toolInfos?.filter((t=>t&&t.isOverflow))}_initToolInfos(){const t=this.selectedFeaturesIds?.length>0,i=this._hasFilterExpressions(),s=this.selectedFeaturesIds?.length>1&&!1;this._translations&&(this._toolInfos=[{active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>this._zoom(),disabled:!t,isOverflow:!1},i?{active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>this._toggleFilter(),disabled:!1,isOverflow:!1}:void 0,s?{active:!1,icon:"pencil",indicator:!1,label:this._translations.editMultiple,func:()=>alert(this._translations.editMultiple),disabled:!s,isOverflow:!1}:void 0,{active:!1,icon:"refresh",indicator:!1,label:this._translations.refresh,func:()=>this.selectedLayer.refresh(),disabled:!1,isOverflow:!1},{active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>this.clearSelection.emit(),disabled:!t,isOverflow:!1}],this._defaultVisibleToolSizeInfos=void 0)}_validateActiveActions(){const t=["filter"];this._toolInfos?.forEach((i=>{i&&t.indexOf(i.icon)>-1&&"filter"===i.icon&&(i.indicator=this._filterActive)}))}_validateEnabledActions(){const t=this.selectedFeaturesIds?.length>0,i=this.selectedFeaturesIds?.length>1&&this.selectedLayer?.capabilities?.operations?.supportsUpdate,s=["zoom-to-object","pencil","erase"];this._toolInfos?.forEach((e=>{e&&s.indexOf(e.icon)>-1&&(e.disabled="pencil"===e.icon?!i:!t)}))}_initHome(){if(this.enableHome){this._homeWidget=new this.Home({view:this.mapView}),this.mapView.ui.add(this._homeWidget,{position:this.homeZoomPosition,index:this.homeZoomIndex});const t="s"===this.homeZoomToolsSize?"32px":"m"===this.homeZoomToolsSize?"40px":"48px";this._homeWidget.domNode.style.height=t,this._homeWidget.domNode.style.width=t}else this._homeWidget&&this.mapView.ui.remove(this._homeWidget)}_toggleShowHide(){this._showHideOpen=!this._showHideOpen}_forceShowHide(){this._moreDropdown&&(this._moreDropdown.open=this._showHideOpen)}_handleDocumentClick(t){const i=t.target?.id;"solutions-subset-list"===i?this._moreDropdown.open=!0:this._showHideOpen&&"solutions-subset-list"!==i&&"solutions-more"!==i&&"chevron-down"!==i&&this._moreDropdown&&(this._showHideOpen=!1,this._moreDropdown.open=!1),"MAP-PICKER"===t.target.tagName&&(this._mapListExpanded=!this._mapListExpanded,this._mapPicker.toggle(this._mapListExpanded)),"MAP-PICKER"!==t.target.tagName&&(this._mapListExpanded=!1,this._mapPicker.close())}async _zoom(){if(this.selectedLayer){const t=await d(this.mapView,this.selectedLayer.id);await c(this.selectedFeaturesIds,t,this.mapView,!0,void 0,this.zoomToScale)}}async _toggleFilter(){this.toggleFilter.emit()}_hasFilterExpressions(){let t;return this.mapInfo?.filterConfig?.layerExpressions&&this.selectedLayer?.id&&(t=this.mapInfo.filterConfig.layerExpressions.filter((t=>t.id===this.selectedLayer.id))),t?.length>0}_getActions(){const t=this._getActionItems();return t?.reduce(((t,i)=>(i&&!i.isOverflow&&t.push(this._getAction(i.active,i.icon,i.indicator,i.label,i.func,i.disabled,i.loading)),t)),[])}_getToolTip(t,i,s){return document.getElementById(i)?e("calcite-tooltip",{placement:t,"reference-element":"map-"+i},e("span",null,s)):void 0}_getActionItems(){return this._toolInfos?.filter((t=>t&&!t.isOverflow))}_getAction(t,i,s,h,a,o,l,n){const c=void 0===this.selectedLayer||o;return e("div",{class:"display-flex",id:this._getId(i),slot:n},e("calcite-action",{active:t,appearance:"solid",disabled:c,icon:i,id:"map-"+i,indicator:s,label:h,loading:l,onClick:a,text:h,textEnabled:!0}),this._getToolTip("bottom",i,h))}_getId(t){return`solutions-action-${t}`}async _getTranslations(){const t=await a(this.el);this._translations=t[0]}static get watchers(){return{appLayout:["appLayoutWatchHandler"],enableHome:["enableHomeWatchHandler"],enableShare:["enableShareWatchHandler"],locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],selectedLayer:["selectedLayerWatchHandler"],selectedFeaturesIds:["selectedFeaturesIdsWatchHandler"],_controlsThatFit:["_controlsThatFitWatchHandler"]}}};m.style=":host{display:block;--calcite-label-margin-bottom:0;--calcite-block-padding:0}.map-height{height:calc(100% - 53px)}.height-full{height:100%}.height-49-px{height:49px}.box-shadow{box-shadow:none !important}.visibility-hidden-1{visibility:hidden;height:1px;}.display-none{display:none}.display-block{display:block}";export{b as card_manager,f as layer_table,m as map_card}
@@ -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 t,c as i,g as s,h as e,H as a,F as h}from"./p-934e8935.js";import{l,g as o}from"./p-8a74a780.js";import{g as n,a as c,b as r,c as d,h as u,d as p,q as f}from"./p-5693ce7a.js";import"./p-d4056c1c.js";import"./p-80cb7c73.js";const m=class{constructor(s){t(this,s),this.togglePanel=i(this,"togglePanel",7),this.center=void 0,this.commentButtonText=void 0,this.commentSubmittedMessage=void 0,this.defaultWebmap="",this.description=void 0,this.enableAnonymousAccess=void 0,this.enableAnonymousComments=void 0,this.enableComments=void 0,this.enableHome=!0,this.enableLogin=void 0,this.enableNewReports=void 0,this.enableSearch=!0,this.enableSnapping=!1,this.enableZoom=!0,this.isMobile=void 0,this.layerExpressions=[],this.layerId=void 0,this.level=void 0,this.locale=void 0,this.loginTitle=void 0,this.mapInfos=[],this.mapView=void 0,this.objectId=void 0,this.reportButtonText=void 0,this.reportingOptions=void 0,this.reportsHeader=void 0,this.reportSubmittedMessage=void 0,this.searchConfiguration=void 0,this.showComments=void 0,this.showUserImageInCommentsList=!1,this.showFeatureSymbol=!1,this.showMyReportsOnly=!1,this.submitNewReportsMessage=void 0,this.theme="light",this.zoomToScale=void 0,this.floorLevel=void 0,this.showFullCommentTitle=!0,this.filterByMapExtent=!1,this.sortOption="newest",this._featureCreationFailedErrorMsg=void 0,this._filterActive=!1,this._flowItems=[],this._hasValidLayers=!1,this._mapInfo=void 0,this._reportSubmitted=!1,this._selectedLayerName=void 0,this._showSubmitCancelButton=!1,this._showLoadingIndicator=!1,this._sidePanelCollapsed=!1,this._translations=void 0,this._updatedProgressBarStatus=25,this._updatedSorting=void 0,this._updatedSortOption="newest",this._commentSubmitted=!1,this._addingCommentFailed=!1,this._filterOpen=!1}get el(){return s(this)}_createFeature;_currentFeatureId;_defaultCenter;_defaultLevel;_editableLayerIds;_featureDetails;_featureList;_currentFeature;_selectedRelatedFeature;_relatedTable;_filterList;_highlightHandle;_layerList;_createRelatedFeature;_layers;_mapChange;_mapClickHandle;reactiveUtils;FeatureFilter;_selectedFeature;_selectedFeatureIndex;_selectedLayerId;_shareNode;_urlParamsLoaded;_validLayers;_nonVisibleValidLayers;_selectedLayer;_layerItemsHash;_showFullPanel;_floorExpression;_formElements=[];_prevSelectedLayerId;_currentLayerExpressions;_initDefExpressions;_t9nLayerExpressions;async isMobileWatchHandler(t){this.updatePanelState(!1,this._showFullPanel),t&&"filter-panel"===this._flowItems[this._flowItems.length-1]?(await this.backFromFilterPanel(),this._filterOpen=!0):!t&&this._filterOpen&&(await this._closeFilter(),this._flowItems=[...this._flowItems,"filter-panel"])}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(){await this.mapView.when((async()=>{this.setInitExpressions(),await this.setMapView()}))}async floorLevelWatchHandler(){if(this._editableLayerIds)for(const t of this._editableLayerIds){const i=await n(this.mapView,t);i.floorInfo?.floorField&&this._updateFloorDefinitionExpression(i)}"layer-list"===this._flowItems[this._flowItems.length-1]&&this._layerList&&await this._layerList.refresh(),this._featureList&&this._featureList.refresh(),this._createFeature&&this._createFeature.refresh(this.floorLevel)}async showMyReportsOnlyWatchHandler(){this._editableLayerIds&&(await this._updateFeatures(),this.refreshLists())}async sortOptionWatchHandler(){this.updateSortingOptions()}filterByMapExtentChangeWatchHandler(){this.refreshLists()}async layerExpressionsWatchHandler(){this.resetFilterList(),await this.handleSelectedLayersFilter(),await(this._featureList?.refresh())}async showFeatureSymbolWatchHandler(){await(this._featureList?.refresh())}async updateLayerExpressionsT9n(t){if(this._t9nLayerExpressions=t||this.layerExpressions,null!=this._filterList)await this._filterList.handleUpdatingT9nData(this._t9nLayerExpressions);else if(null!=this._currentLayerExpressions){const t=structuredClone(this._currentLayerExpressions);this.handleLayerExpressionsT9n(t,this._t9nLayerExpressions),this._currentLayerExpressions=t}return Promise.resolve()}togglePanel;async componentWillLoad(){this._urlParamsLoaded=!1,await this._initModules(),await this._getTranslations(),await(this.mapView?.when((async()=>{this._layers=this.reportingOptions?Object.keys(this.reportingOptions).filter((t=>this.reportingOptions[t].visible)):[],this.setInitExpressions(),await this.setMapView()})))}componentWillRender(){(this._flowItems.includes("filter-panel")||this._filterOpen)&&this._filterList?.updateInitDefExpressions({initDefExpressions:this._initDefExpressions})}render(){const t="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light";return e(a,{key:"67b22ff121842ed855d42c6e95f506da7a27fc03"},this._reportSubmitted&&e("calcite-alert",{key:"a4687bb0a46e215f830418c934156adc1ca22d28","auto-close":!0,class:t+" report-submitted-msg",icon:"check-circle",kind:"success",label:"",onCalciteAlertClose:()=>{this._reportSubmitted=!1},open:!0,placement:"top"},e("div",{key:"75c7f06e0c997cff02f2d03cf165a0d96556a99e",slot:"message"},this.reportSubmittedMessage?this.reportSubmittedMessage:this._translations.submitMsg)),this._featureCreationFailedErrorMsg&&e("calcite-alert",{key:"db289e06eeff7d79511b0f2d94681931347b40ed","auto-close":!0,class:t,icon:"x-octagon",kind:"danger",label:"",onCalciteAlertClose:()=>{this._featureCreationFailedErrorMsg=""},open:!0,placement:"top"},e("div",{key:"9f8c4ef83cafb13d17fd1051d308e59e00c277d5",slot:"title"},this._translations.error),e("div",{key:"c18221f220f9b1d28b296a9bab89b838f0884323",slot:"message"},this._featureCreationFailedErrorMsg)),this._commentSubmitted&&e("calcite-alert",{key:"086aff48b20dbabcddb68fca5b57d7a14101c8d0","auto-close":!0,class:"report-submitted "+t,icon:"check-circle",kind:"success",label:"",onCalciteAlertClose:()=>{this._commentSubmitted=!1},open:!0,placement:"top"},e("div",{key:"02125cd052ba81cc1fce0ac65ab517ae0eb46d13",slot:"message"},this.commentSubmittedMessage||this._translations.commentSubmittedMsg)),this._addingCommentFailed&&e("calcite-alert",{key:"c1e0966dde08f7f22f54cdadfc85f3024616fc77","auto-close":!0,class:t,icon:"x-octagon",kind:"danger",label:"",onCalciteAlertClose:()=>{this._addingCommentFailed=!1},open:!0,placement:"top"},e("div",{key:"0dd5af761fef31a4b85bfa0f66dff82e04b1cced",slot:"title"},this._translations.error),e("div",{key:"e8b8667855147b417cfc43d19e0c0a04f8870bfd",slot:"message"},this._translations.addingCommentFailedMsg)),e("div",{key:"10c4c2d1673d63a8ced357312d57acf7faa46f0a"},e("calcite-shell",{key:"8262117bc32e033f25f2864f4c5aa8a1bdde85ff","content-behind":!0},this._getReporter())),this.isMobile&&this.filterModal())}async _initModules(){const[t,i]=await l(["esri/core/reactiveUtils","esri/layers/support/FeatureFilter"]);this.reactiveUtils=t,this.FeatureFilter=i}async setSelectedLayer(t,i){this._selectedLayerId=t,this._selectedLayer=await n(this.mapView,t),this._selectedLayerName=i,this._validLayers.forEach((i=>{this._nonVisibleValidLayers.find((t=>t.id===i.id))||i.set("visible",!t||i.id===t)}))}_getLayersConfig(t){return this.reportingOptions&&this.reportingOptions[t]?this.reportingOptions[t]:null}_getReporter(){const t=[];return this._flowItems.forEach((i=>{switch(i){case"layer-list":t.push(this.getLayerListFlowItem());break;case"feature-list":t.push(this.getFeatureListFlowItem(this._selectedLayerId,this._selectedLayerName));break;case"filter-panel":t.push(this.getFilterPanel());break;case"feature-details":t.push(this.getFeatureDetailsFlowItem());break;case"reporting-layer-list":t.push(this.getChooseCategoryFlowItem());break;case"feature-create":t.push(this.getFeatureCreateFlowItem());break;case"comment-details":t.push(this.getCommentDetailsFlowItem());break;case"add-comment":t.push(this.getAddCommentFlowItem())}})),e("calcite-panel",{class:"width-full "+("dark"===this.theme?"calcite-mode-dark":"calcite-mode-light")},this.mapView?e("calcite-flow",null,t?.length>0&&t):e("calcite-loader",{label:"",scale:"m"}))}filterModal(){return(this.layerExpressions?this.layerExpressions.filter((t=>t.id===this._selectedLayerId)):[]).length>0&&e("calcite-modal",{"aria-labelledby":"modal-title",class:"modal",kind:"brand",onCalciteModalClose:()=>{this._closeFilter()},open:this._filterOpen,widthScale:"s"},e("div",{class:"display-flex align-center",id:"modal-title",slot:"header"},this._translations?.filterLayerTitle?.replace("{{title}}",this._selectedLayerName)),e("div",{slot:"content"},e("instant-apps-filter-list",{autoUpdateUrl:!1,closeBtn:!0,closeBtnOnClick:()=>{this._closeFilter()},comboboxOverlayPositioning:"fixed",layerExpressions:this._currentLayerExpressions,onFilterListReset:()=>{this._filterActive=!1,this._featureList.refresh()},onFilterUpdate:()=>{this._handleFilterUpdate(this._filterList?.filterCount>0)},ref:t=>this._filterList=t,resetBtn:!0,resetFiltersOnDisconnect:!1,view:this.mapView,zoomBtn:!1})))}_toggleFilter(){this._filterOpen=!this._filterOpen}async _closeFilter(){this._filterOpen=!1,null!=this._filterList&&(this._currentLayerExpressions=await this._filterList.getCurrentLayerExpressions())}async sortOptionClick(t,i,s){this._updatedSorting={field:t,order:i},this._updatedSortOption=s}_toggleSort(){const t=this.reportingOptions&&this.reportingOptions[this._selectedLayerId]&&this.reportingOptions[this._selectedLayerId].like&&this.reportingOptions[this._selectedLayerId].likeField;return e("calcite-popover",{autoClose:!0,label:"",offsetDistance:0,placement:this.isMobile?"leading-start":"bottom-start",pointerDisabled:!0,referenceElement:"sort-popover"},e("calcite-list",{label:"","selection-mode":"single-persist"},e("calcite-list-item",{label:this._translations.sortNewest,onCalciteListItemSelect:()=>{this.sortOptionClick(this._selectedLayer.objectIdField,"desc","newest")},selected:"newest"===this._updatedSortOption,value:"newest"}),e("calcite-list-item",{label:this._translations.sortOldest,onCalciteListItemSelect:()=>{this.sortOptionClick(this._selectedLayer.objectIdField,"asc","oldest")},selected:"oldest"===this._updatedSortOption,value:"oldest"}),t&&e(h,null,e("calcite-list-item",{label:this._translations.sortHighestVoted,onCalciteListItemSelect:()=>{this.sortOptionClick(this.reportingOptions[this._selectedLayerId].likeField,"desc","highestVoted")},selected:"highestVoted"===this._updatedSortOption,value:"highestVoted"}),e("calcite-list-item",{label:this._translations.sortLowestVoted,onCalciteListItemSelect:()=>{this.sortOptionClick(this.reportingOptions[this._selectedLayerId].likeField,"asc","lowestVoted")},selected:"lowestVoted"===this._updatedSortOption,value:"lowestVoted"}))))}async _handleFilterListReset(){this._filterActive=!1}async _handleFilterUpdate(t){this._showLoadingIndicator=!0,this._filterActive=t,await this._featureList.refresh(),this._showLoadingIndicator=!1}getLayerListFlowItem(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this.reportsHeader,selected:"layer-list"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),this._hasValidLayers&&this.enableNewReports&&e("calcite-button",{appearance:"solid",onClick:this.navigateToChooseCategory.bind(this),slot:"footer",width:"full"},this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText),e("calcite-panel",{"full-height":!0,"full-width":!0},e("layer-list",{applyLayerViewFilter:this.showMyReportsOnly,class:"height-full",filterByMapExtent:this.filterByMapExtent,layers:this._editableLayerIds?.length>0?this._editableLayerIds:this._layers,locale:this.locale,mapView:this.mapView,onLayerSelect:this.displayFeaturesList.bind(this),onLayersListLoaded:this.layerListLoaded.bind(this),ref:t=>this._layerList=t,showFeatureCount:!0,showNextIcon:!0})))}getChooseCategoryFlowItem(){const t=this.reportingOptions?Object.keys(this.reportingOptions).filter((t=>this.reportingOptions[t].visible&&this.reportingOptions[t].reporting&&this._layerItemsHash[t]&&this._layerItemsHash[t].supportsAdd)):[];return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this),selected:"reporting-layer-list"===this._flowItems[this._flowItems.length-1]},e("calcite-panel",{"full-height":!0,"full-width":!0},e("div",{class:"progress-bar"},e("calcite-progress",{type:"determinate",value:this._updatedProgressBarStatus})),e("calcite-notice",{class:"notice-msg",icon:"lightbulb",kind:"success",open:!0},e("div",{slot:"message"},this._translations.chooseCategoryMsg)),e("layer-list",{class:"height-full",layers:t,locale:this.locale,mapView:this.mapView,onLayerSelect:this.navigateToCreateFeature.bind(this),showFeatureCount:!1,showNextIcon:!1})))}getFeatureCreateFlowItem(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._selectedLayerName,onCalciteFlowItemBack:this.backFromCreateFeaturePanel.bind(this),selected:"feature-create"===this._flowItems[this._flowItems.length-1]},this._showSubmitCancelButton&&e("div",{class:"width-full",slot:"footer"},e("calcite-button",{appearance:"solid",class:"footer-top-button footer-button",onClick:this.onCreateFeatureSubmitButtonClick.bind(this),width:"full"},this._translations.submit),e("calcite-button",{appearance:"outline",class:"footer-button",onClick:this.backFromCreateFeaturePanel.bind(this),width:"full"},this._translations.cancel)),e("calcite-panel",{"full-height":!0,"full-width":!0},e("div",{class:"progress-bar"},e("calcite-progress",{type:"determinate",value:this._updatedProgressBarStatus})),e("create-feature",{customizeSubmit:!0,enableSearch:!0,enableSnapping:this.enableSnapping,floorLevel:this.floorLevel,formElements:this._formElements.find((t=>t.id===this._selectedLayerId)),isMobile:this.isMobile,locale:this.locale,mapView:this.mapView,onDrawComplete:this.onFormReady.bind(this),onEditingAttachment:this.showSubmitCancelButton.bind(this),onFail:this.createFeatureFailed.bind(this),onModeChanged:this.backFromCreateFeaturePanel.bind(this),onProgressStatus:this.updatedProgressStatus.bind(this),onSuccess:this.onReportSubmitted.bind(this),ref:t=>this._createFeature=t,searchConfiguration:this.searchConfiguration,selectedLayerId:this._selectedLayerId,submitNewReportsMessage:this.submitNewReportsMessage})))}updatedProgressStatus(t){this._updatedProgressBarStatus=t.detail}onFormReady(){this._showSubmitCancelButton=!0}showSubmitCancelButton(t){this._showSubmitCancelButton=!t.detail}onCreateFeatureSubmitButtonClick(){this._createFeature&&this._createFeature.submit()}backFromCreateFeaturePanel(){this._createFeature&&this.updateNonVisibleLayersOnMap(!1),this.backFromSelectedPanel()}onCreateRelatedFeatureSubmitButtonClick(){this._createRelatedFeature&&this._createRelatedFeature.submit()}backFromCreateRelatedFeaturePanel(){this._createRelatedFeature&&(this._showSubmitCancelButton=!1),this.backFromSelectedPanel()}createFeatureFailed(t){console.error(t.detail),this._featureCreationFailedErrorMsg=t.detail.message}async onReportSubmitted(){this.updateNonVisibleLayersOnMap(!1),await this.navigateToHomePage(),this._reportSubmitted=!0,this._updatedProgressBarStatus=25,this._showFullPanel&&this.updatePanelState(this._sidePanelCollapsed,!1)}addCommentFailed(t){console.error(t.detail),this._addingCommentFailed=!0}async onCommentSubmitted(){this._commentSubmitted=!0,this.backFromSelectedPanel(),this._showLoadingIndicator=!0,await this._featureDetails.refresh(this._currentFeature),setTimeout((()=>{this._showLoadingIndicator=!1}),300)}async navigateToHomePage(){await this.setSelectedFeatures([]),this._layerList&&await this._layerList.refresh(),1===this._editableLayerIds.length?(await this._featureList.refresh(),this._flowItems=["feature-list"]):this._flowItems=["layer-list"]}async navigateToCreateFeature(t){t.detail.layerId&&t.detail.layerName&&await this.setSelectedLayer(t.detail.layerId,t.detail.layerName),this.updateNonVisibleLayersOnMap(!0),this._getFormElements(),this._showSubmitCancelButton=!1,this.updatePanelState(!1,!0),this._flowItems=[...this._flowItems,"feature-create"]}navigateToChooseCategory(){this.updatePanelState(!1,!0),this._flowItems=[...this._flowItems,"reporting-layer-list"]}updateNonVisibleLayersOnMap(t){this._nonVisibleValidLayers.find((t=>t.id===this._selectedLayerId))&&this._selectedLayer.set("visible",t)}async layerListLoaded(t){if(this._layerList&&"layer-list"===this._flowItems[this._flowItems.length-1]||"feature-list"===this._flowItems[0]){const i=t.detail,s=await c(this.mapView),e=[];this._validLayers=[],this._nonVisibleValidLayers=[],s.forEach((t=>{i.includes(t.id)&&(this._validLayers.push(t),t.visible||this._nonVisibleValidLayers.push(t),this._getLayersConfig(t.id)?.reporting&&this._layerItemsHash[t.id]&&this._layerItemsHash[t.id].supportsAdd&&e.push(t.id))})),this.handleMapClick(),this._hasValidLayers=e.length>0,this._urlParamsLoaded||(this._urlParamsLoaded=!0,await this.loadFeatureFromURLParams())}}async displayFeaturesList(t){await this.setSelectedLayer(t.detail.layerId,t.detail.layerName),this.updateSortingOptions(),this.handleSelectedLayersFilter(),this._flowItems=[...this._flowItems,"feature-list"],this._prevSelectedLayerId=this._selectedLayerId}updateSortingOptions(){const t=""===this.sortOption?"newest":this.sortOption,i="oldest"===t||"lowestVoted"===t?"asc":"desc",s=this.reportingOptions?.[this._selectedLayerId]?.like?this.reportingOptions?.[this._selectedLayerId]?.likeField:"";this._updatedSorting={field:"newest"===t||"oldest"===t?this._selectedLayer.objectIdField:s,order:i},this._updatedSortOption=s||"highestVoted"!==t&&"lowestVoted"!==t?t:"newest"}async backFromFilterPanel(){null!=this._filterList&&(this._currentLayerExpressions=await this._filterList.getCurrentLayerExpressions()),await this._featureList.refresh(),this.backFromSelectedPanel()}backFromSelectedPanel(){this._updatedProgressBarStatus=25;const t=[...this._flowItems];"comment-details"!==t[t.length-1]&&"add-comment"!==t[t.length-1]&&this.clearHighlights(),"reporting-layer-list"!==t[t.length-1]&&("feature-create"!==t[t.length-1]||"feature-list"!==t[0]&&"feature-list"!==t[t.length-2])||this.updatePanelState(this._sidePanelCollapsed,!1),t.pop(),1!==t.length||"layer-list"!==t[0]?this._flowItems=[...t]:this.navigateToHomePage()}toggleSidePanel(){this._sidePanelCollapsed=!this._sidePanelCollapsed,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this._showFullPanel})}updatePanelState(t,i){this._sidePanelCollapsed=t,this._showFullPanel=i,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this._showFullPanel})}async onFeatureSelectFromList(t){this._showLoadingIndicator=!0,await this.setSelectedFeatures([t.detail]),this._flowItems=[...this._flowItems,"feature-details"]}async getRelatedTable(){const t=this._currentFeature.layer,i=await r(this.mapView);t.relationships.some((s=>{const e=i.filter((i=>t.url===i.url&&i.layerId===s.relatedTableId));if(e&&e.length>0)return this._relatedTable=e[0],!0}))}async updatingFeatureDetails(t){this._showLoadingIndicator=t}async selectionChanged(t){this.updatingFeatureDetails(!0),await this.setCurrentFeature(t.detail.selectedFeature[0]),this.highlightOnMap(t.detail.selectedFeature[0]),this._selectedFeatureIndex=t.detail.selectedFeatureIndex,await this._featureDetails.refresh(t.detail.selectedFeature[0])}showAddCommentsPanel(){this._flowItems=[...this._flowItems,"add-comment"]}async onCommentSelectFromList(t){this._selectedRelatedFeature=[t.detail],this._flowItems=[...this._flowItems,"comment-details"]}getFeatureListFlowItem(t,i){const s=this._getLayersConfig(this._selectedLayerId)?.reporting&&this._layerItemsHash[this._selectedLayerId].supportsAdd,a=this._currentLayerExpressions?.length>0;return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:i,loading:!this.isMobile&&this._showLoadingIndicator,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this),selected:"feature-list"===this._flowItems[this._flowItems.length-1]},this._toggleSort(),e("calcite-action",{icon:"sort-ascending-arrow",id:"sort-popover",slot:"header-actions-end",text:this._translations.sort,title:this._translations.sort}),a&&e("calcite-action",{icon:"filter",indicator:this._filterActive,onClick:()=>{this.isMobile?this._toggleFilter():this._flowItems=[...this._flowItems,"filter-panel"]},slot:"header-actions-end",text:this._translations.filter,title:this._translations.filter}),this.isMobile&&this.getActionToExpandCollapsePanel(),this.enableNewReports&&s&&e("calcite-button",{appearance:"solid",onClick:this.navigateToCreateFeature.bind(this),slot:"footer",width:"full"},this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText),e("calcite-panel",{"full-height":!0},e("feature-list",{applyLayerViewFilter:this.showMyReportsOnly,class:"height-full",filterByMapExtent:this.filterByMapExtent,highlightOnHover:!0,locale:this.locale,mapView:this.mapView,noFeaturesFoundMsg:this._translations.featureErrorMsg,onFeatureSelect:this.onFeatureSelectFromList.bind(this),pageSize:30,ref:t=>this._featureList=t,reportingOptions:this.reportingOptions,selectedLayerId:t,showFeatureSymbol:this.showFeatureSymbol,sortingInfo:this._updatedSorting})))}getFilterPanel(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._translations?.filterLayerTitle?.replace("{{title}}",this._selectedLayerName),loading:this._showLoadingIndicator,onCalciteFlowItemBack:this.backFromFilterPanel.bind(this),selected:"filter-panel"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),e("div",{class:"width-full",slot:"footer"},e("div",{class:"width-full",slot:"footer"},e("calcite-button",{appearance:"solid",class:"footer-top-button footer-button",disabled:!this._filterActive,onClick:this.resetFilterList.bind(this),width:"full"},this._translations.resetFilter),e("calcite-button",{appearance:"outline",class:"footer-button",onClick:this.backFromFilterPanel.bind(this),width:"full"},this._translations.close))),e("calcite-panel",{"full-height":!0},e("instant-apps-filter-list",{autoUpdateUrl:!1,closeBtnOnClick:()=>{},comboboxOverlayPositioning:"fixed",layerExpressions:this._currentLayerExpressions,onFilterListReset:()=>{this._handleFilterListReset()},onFilterUpdate:()=>{this._handleFilterUpdate(this._filterList?.filterCount>0)},ref:t=>this._filterList=t,resetBtn:!1,resetFiltersOnDisconnect:!1,view:this.mapView,zoomBtn:!1})))}getFeatureDetailsFlowItem(){const t=this._getLayersConfig(this._selectedLayerId)?.comment&&this._selectedLayer.relationships.length>0&&this._relatedTable;return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._selectedLayerName,loading:this._showLoadingIndicator,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this),selected:"feature-details"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),e("instant-apps-social-share",{autoUpdateShareUrl:!1,class:"share-node",embed:!1,flipRtl:!0,popoverButtonIconScale:"s",ref:t=>this._shareNode=t,removePopoverOffset:!0,scale:"m",shareButtonColor:"neutral",shareButtonType:"action",slot:"header-actions-end",socialMedia:!0,view:this.mapView}),this._selectedFeature.length>1&&this.getFeaturesPagination(),e("calcite-panel",null,e("feature-details",{class:"full-height",enableSnapping:this.enableSnapping,graphics:this._selectedFeature,layerItemsHash:this._layerItemsHash,locale:this.locale,mapView:this.mapView,onAddComment:this.showAddCommentsPanel.bind(this),onCommentSelect:this.onCommentSelectFromList.bind(this),onFeatureSelectionChange:this.selectionChanged.bind(this),onLikeOrDislikeClicked:()=>{this._featureList.refresh(!0)},onLoadingStatus:t=>{this.updatingFeatureDetails(t.detail)},ref:t=>this._featureDetails=t,reportingOptions:this.reportingOptions,showFullCommentTitle:this.showFullCommentTitle,showUserImageInCommentsList:this.showUserImageInCommentsList}),t&&e("calcite-button",{appearance:"solid",onClick:this.showAddCommentsPanel.bind(this),slot:"footer",width:"full"},this.commentButtonText||this._translations.comment)))}getFeaturesPagination(){return e("div",{class:"feature-pagination"},e("div",null,e("calcite-button",{appearance:"transparent",disabled:!1,iconStart:"chevron-left",id:"solutions-back",onClick:()=>{this._featureDetails.back()},scale:"s",width:"full"}),e("calcite-tooltip",{label:"",placement:"top","reference-element":"solutions-back"},e("span",null,this._translations.back))),e("calcite-button",{appearance:"transparent",onClick:()=>{this._featureDetails.toggleListView()},scale:"s"},e("span",{class:"pagination-count"},this._getCount())),e("div",null,e("calcite-button",{appearance:"transparent",disabled:!1,iconStart:"chevron-right",id:"solutions-next",onClick:()=>{this._featureDetails.next()},scale:"s",width:"full"}),e("calcite-tooltip",{placement:"top","reference-element":"solutions-next"},e("span",null,this._translations.next))))}getCommentDetailsFlowItem(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._relatedTable.title,onCalciteFlowItemBack:this.backFromSelectedPanel.bind(this),selected:"comment-details"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),e("calcite-panel",{"full-height":!0},e("info-card",{allowEditing:!1,enableSnapping:this.enableSnapping,graphics:this._selectedRelatedFeature,highlightEnabled:!1,isLoading:!1,isMobile:!1,locale:this.locale,mapView:this.mapView,paginationEnabled:!1})))}getAddCommentFlowItem(){return e("calcite-flow-item",{collapsed:this.isMobile&&this._sidePanelCollapsed,heading:this._relatedTable.title,onCalciteFlowItemBack:this.backFromCreateRelatedFeaturePanel.bind(this),selected:"add-comment"===this._flowItems[this._flowItems.length-1]},this.isMobile&&this.getActionToExpandCollapsePanel(),e("div",{class:"width-full",slot:"footer"},this._showSubmitCancelButton&&e("div",{class:"width-full",slot:"footer"},e("calcite-button",{appearance:"solid",class:"footer-top-button footer-button",onClick:this.onCreateRelatedFeatureSubmitButtonClick.bind(this),width:"full"},this._translations.submit),e("calcite-button",{appearance:"outline",class:"footer-button",onClick:this.backFromCreateRelatedFeaturePanel.bind(this),width:"full"},this._translations.cancel))),e("calcite-panel",null,e("create-related-feature",{customizeSubmit:!0,enableSnapping:this.enableSnapping,locale:this.locale,mapView:this.mapView,onFail:this.addCommentFailed.bind(this),onFormReady:this.onFormReady.bind(this),onIsActionPending:this.showSubmitCancelButton.bind(this),onSuccess:this.onCommentSubmitted.bind(this),ref:t=>this._createRelatedFeature=t,selectedFeature:this._currentFeature,table:this._relatedTable})))}async setSelectedFeatures(t){this._selectedFeature=t,await this.setCurrentFeature(this._selectedFeature.length?this._selectedFeature[0]:null)}async setCurrentFeature(t){if(this._currentFeature=t,t&&t.layer){const i=t.layer;this.setSelectedLayer(i.id,i.title),this._currentFeatureId=t.attributes[i.objectIdField],this._getLayersConfig(i.id)?.comment&&i.relationships.length>0&&await this.getRelatedTable()}else this._editableLayerIds.length>1&&(this.setSelectedLayer("",""),this.handlePrevLayersFilter()),this._currentFeatureId="";this._updateShareURL()}async highlightOnMap(t){if(this.clearHighlights(),t&&t.geometry&&t.layer){const i=await d(this.mapView,t.layer.id);i.highlightOptions=null,this._highlightHandle=await u([t.getObjectId()],i,this.mapView,!0,this.zoomToScale)}this.updatingFeatureDetails(!1)}clearHighlights(){this._highlightHandle&&this._highlightHandle.remove()}getActionToExpandCollapsePanel(){return e("calcite-action",{icon:this._sidePanelCollapsed?"chevrons-up":"chevrons-down",onClick:this.toggleSidePanel.bind(this),slot:"header-actions-end",text:this._sidePanelCollapsed?this._translations.expand:this._translations.collapse})}async setMapView(){await this.getLayersToShowInList(),await this._updateFeatures(),1===this._editableLayerIds?.length?await this.renderFeaturesList():this._flowItems=["layer-list"],this.mapView.popupEnabled=!1,this._defaultCenter&&this._defaultLevel&&(await this.mapView.goTo({center:this._defaultCenter,zoom:this._defaultLevel}),this._defaultCenter=void 0,this._defaultLevel=void 0)}handleMapClick(){this._mapClickHandle&&this._mapClickHandle.remove(),this._mapClickHandle=this.reactiveUtils.on((()=>this.mapView),"click",this.onMapClick.bind(this))}async onMapClick(t){this.mapView.popupEnabled=!1;const i=await this.mapView.hitTest(t);if(i.results.length>0){const t=[];i.results.forEach((function(i){"graphic"===i.type&&t.push(i.graphic)}));const s=t.filter((t=>this._validLayers.includes(t.layer))),e=t.filter((t=>!this._validLayers.includes(t.layer)&&t?.layer?.popupEnabled&&t?.layer?.id));if(s.length>0&&(await this.setSelectedFeatures(s),this._flowItems.length&&this._flowItems.includes("feature-details")?(this._flowItems=[...this._flowItems.slice(0,this._flowItems.indexOf("feature-details")+1)],await this.highlightOnMap(t[0])):this._flowItems=[...this._flowItems,"feature-details"]),e.length>0){this.mapView.popupEnabled=!0;const t={features:e,updateLocationEnabled:!0};await this.mapView.openPopup(t)}}}_getCount(){const t=(this._selectedFeatureIndex+1).toString(),i=this._selectedFeature.length.toString();return this._translations.indexOfTotal.replace("{{index}}",t).replace("{{total}}",i)}async _getTranslations(){const t=await o(this.el);this._translations=t[0]}_updateFloorDefinitionExpression(t){const i=`${t.floorInfo.floorField} = '${this.floorLevel}'`,s=t.definitionExpression;t.definitionExpression=s?.indexOf(this._floorExpression)>-1?s.replace(this._floorExpression,i):i,this._floorExpression=i}_getFormElements(){const t=this._selectedLayer,i=t?.floorInfo?.floorField;if(i&&this.floorLevel&&t?.formTemplate){const i=this._formElements.find((i=>i.id===t.id));0!==this._formElements.length&&i||this._formElements.push({id:t.id,orgElements:t.formTemplate.elements,orgExpressionInfos:t.formTemplate.expressionInfos})}}reduceToConfiguredLayers(t,i){return Object.keys(t).reduce(((s,e)=>{const a=this.reportingOptions?this._getLayersConfig(e)?.visible:t[e].supportsAdd;return!i.includes(e)&&a&&s.push(e),s}),[])}refreshLists(){setTimeout((()=>{this._layerList&&"layer-list"===this._flowItems[this._flowItems.length-1]&&this._layerList.refresh(),this._featureList&&this._featureList.refresh()}),50)}async _updateFeatures(){for(const t of this._editableLayerIds){const i=await d(this.mapView,t);await this._showMyFeaturesOnly(i);const s=i.layer?.floorInfo?.floorField;s&&this.floorLevel&&this._updateFloorDefinitionExpression(i.layer)}}async _showMyFeaturesOnly(t){const i=this.mapView.map.portalItem.portal?.credential?.userId;if(i){const s=t.layer.editFieldsInfo?.creatorField.toLowerCase();t.filter=this.showMyReportsOnly&&s?new this.FeatureFilter({where:s+"='"+i+"'"}):null}}async getLayersToShowInList(){const t=await p(this.mapView,!0),i=await c(this.mapView),s=[];i.forEach((i=>{"feature"===i?.type&&i?.editingEnabled&&i?.capabilities?.operations?.supportsAdd&&(t[i.id].supportsAdd=!0),i?.editingEnabled||s.push(i.id)})),this._editableLayerIds=this.reduceToConfiguredLayers(t,s),this._layerItemsHash=t}async renderFeaturesList(){this._flowItems=["feature-list"];const t={detail:this._editableLayerIds};await this.layerListLoaded(t),await this.setSelectedLayer(this._validLayers[0].id,this._validLayers[0].title),this.updateSortingOptions(),this.handleSelectedLayersFilter()}_updateShareURL(){const t=this._shareNode?.shareUrl;if(!t)return;const i=new URL(t);this._selectedLayerId?i.searchParams.set("layerid",this._selectedLayerId):i.searchParams.delete("layerid"),this._selectedFeature?.length?i.searchParams.set("oid",this._currentFeatureId):i.searchParams.delete("oid"),this._shareNode.shareUrl=i.href}async loadFeatureFromURLParams(){if(this.center&&this.level&&await this.mapView.goTo({center:this.center.split(";").map(Number),zoom:this.level}),this.layerId&&this.objectId){const t=await n(this.mapView,this.layerId);if(t){const i=await f([Number(this.objectId)],t,[],!0,this.mapView.spatialReference);i.length&&(await this.setSelectedFeatures(i),this._flowItems=this._flowItems.length&&"feature-details"!==this._flowItems[this._flowItems.length-1]?[...this._flowItems,"feature-details"]:[...this._flowItems])}}}async handleSelectedLayersFilter(){if(this._selectedLayer){const t=this.layerExpressions?structuredClone(this.layerExpressions.filter((t=>t.id===this._selectedLayerId))):[];null!=this._t9nLayerExpressions&&this.handleLayerExpressionsT9n(t,this._t9nLayerExpressions),this._currentLayerExpressions=t,this.setActiveDefinitionExpressions()}}async handlePrevLayersFilter(){if(this._prevSelectedLayerId){const t=await n(this.mapView,this._prevSelectedLayerId);t&&(t.definitionExpression=this._initDefExpressions[this._prevSelectedLayerId])}}resetFilterList(){this._filterList?.forceReset(),null!=this._selectedLayer&&(this._selectedLayer.definitionExpression=this._initDefExpressions[this._selectedLayerId],this._filterActive=!1)}setActiveDefinitionExpressions(){if(null==this._selectedLayer)return;const t=[];if(this._currentLayerExpressions?.length>0){const i=this._currentLayerExpressions[0];for(const s of i.expressions){const{active:i,definitionExpression:e}=s;i&&e&&t.push(`(${e})`)}this._filterActive=t.length>0,this.updateFilterLayerDefExpression(t,i.operator)}}updateFilterLayerDefExpression(t,i){const s=this._initDefExpressions[this._selectedLayerId],e=t?.length>0&&null!=s?`(${t.join(i)}) AND (${s})`:t.length>0?t.join(i):s;this._selectedLayer.definitionExpression=e}setInitExpressions(){if(this._initDefExpressions={},null==this.mapView)return;const t=this.mapView.map;t.allLayers.concat(t.allTables).forEach((t=>{"feature"===t.type&&(this._initDefExpressions[t.id]=t.definitionExpression)}))}handleLayerExpressionsT9n(t,i){t?.forEach((t=>{const s=i?.find((i=>i.id===t.id));null!=s&&(t.title=s.title,t.expressions?.forEach((t=>{const i=s.expressions?.find((i=>i.id===t.id));null!=i&&(t.name=i.name)})))}))}static get watchers(){return{isMobile:["isMobileWatchHandler"],locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],floorLevel:["floorLevelWatchHandler"],showMyReportsOnly:["showMyReportsOnlyWatchHandler"],sortOption:["sortOptionWatchHandler"],filterByMapExtent:["filterByMapExtentChangeWatchHandler"],layerExpressions:["layerExpressionsWatchHandler"],showFeatureSymbol:["showFeatureSymbolWatchHandler"]}}};m.style=":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.width-full{width:100% !important}.width-0{width:0}.height-full{height:100% !important}.height-0{height:0}.overflow-hidden{overflow:hidden}.border{border:1px solid var(--calcite-color-border-3)}.notice-msg{padding:10px;width:calc(100% - 20px)}.progress-bar{padding:12px}.footer-top-button{padding-bottom:7px}.footer-button{height:35px}.feature-pagination{background-color:var(--calcite-color-foreground-1) !important;border-block-end:1px solid var(--calcite-color-border-3);display:flex;justify-content:center;padding:5px 0}.pagination-count{color:var(--calcite-color-brand);border-bottom:1px solid var(--calcite-color-brand);font-weight:bold}.report-submitted-msg{position:absolute;z-index:1000}.share-node{display:flex}";export{m as crowdsource_reporter}
@@ -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{r as t,c as i,g as s,h as e,H as a}from"./p-934e8935.js";import{l as h,g as n}from"./p-57be3b9d.js";import{f as r}from"./p-80cb7c73.js";import{s as o}from"./p-5e7369d1.js";import"./p-d4056c1c.js";import"./p-c6e42ad1.js";const l=class{constructor(s){t(this,s),this.bufferComplete=i(this,"bufferComplete",7),this.distanceChanged=i(this,"distanceChanged",7),this.unitChanged=i(this,"unitChanged",7),this.appearance="text",this.distance=0,this.geometries=[],this.locale=void 0,this.max=void 0,this.min=0,this.sliderTicks=10,this.unionResults=!0,this.unit="meters",this.disabled=!1,this._translations=void 0}get el(){return s(this)}_geometryEngine;_bufferTimeout;_unitElement;_units;geometriesWatchHandler(){this._buffer()}disabledWatchHandler(){this._buffer()}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async getTranslatedUnit(t){return this._units||await this._defineTranslations(),this._units[t]}bufferComplete;distanceChanged;unitChanged;async componentWillLoad(){await this._defineTranslations(),await this._initModules()}render(){return e(a,{key:"56719f53eabb0743adb129546e27e7dc99399021"},"text"===this.appearance?this._getTextBoxDisplay():this._getSliderDisplay())}async _defineTranslations(){await this._getTranslations(),this._initTranslatedUnits()}async _initModules(){const[t]=await h(["esri/geometry/geometryEngine"]);this._geometryEngine=t}_initTranslatedUnits(){this._units={feet:this._translations.feet,meters:this._translations.meters,miles:this._translations.miles,kilometers:this._translations.kilometers}}_getUnits(){return Object.keys(this._units).map((t=>e("calcite-option",{label:this._units[t],selected:this.unit===t,value:t})))}_setDistance(t){const i=parseInt(t.target.value,10);this.distance!==i&&i>=this.min&&(this.distanceChanged.emit({oldValue:this.distance,newValue:i}),this.distance=i,this.distance>0?this._buffer():this.bufferComplete.emit(void 0))}_setUnit(t){this.unitChanged.emit({oldValue:this.unit,newValue:t}),this.unit=t,this._buffer()}_buffer(){this.disabled?this.bufferComplete.emit(void 0):(this._bufferTimeout&&clearTimeout(this._bufferTimeout),this._bufferTimeout=setTimeout((()=>{if(this.geometries?.length>0&&this.unit&&this.distance>0){const t=this.geometries[0].spatialReference,i=t.isWGS84||t.isWebMercator?this._geometryEngine.geodesicBuffer(this.geometries,this.distance,this.unit,this.unionResults):this._geometryEngine.buffer(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:t=>this._setDistance(t),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:t=>{this._unitElement=t}},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 t=await n(this.el);this._translations=t[0]}_testAccess(t,i){switch(t){case"_setUnit":return this._setUnit(i);case"_setDistance":return this._setDistance(i)}return null}static get watchers(){return{geometries:["geometriesWatchHandler"],disabled:["disabledWatchHandler"],locale:["localeWatchHandler"]}}};l.style=':host{display:block}.c-container{display:inline-flex}.flex-1{flex:"1"}.padding-end-1{padding-inline-end:1rem}.w-50{width:50%}';const c=class{constructor(s){t(this,s),this.selectionLoadingChange=i(this,"selectionLoadingChange",7),this.sketchGraphicsChange=i(this,"sketchGraphicsChange",7),this.drawUndo=i(this,"drawUndo",7),this.drawRedo=i(this,"drawRedo",7),this.active=!1,this.drawMode=r.SKETCH,this.editGraphicsEnabled=!0,this.graphics=void 0,this.locale=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}get el(){return s(this)}GraphicsLayer;SketchViewModel;Sketch;_sketchGraphicsLayer;_sketchViewModel;_sketchWidget;_sketchElement;graphicsWatchHandler(t,i){t&&t.length>0&&JSON.stringify(t)!==JSON.stringify(i)&&this._sketchGraphicsLayer&&(this._updateGraphicsSymbols(t),this._sketchGraphicsLayer.removeAll(),this._sketchGraphicsLayer.addMany(t))}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}mapViewWatchHandler(t,i){t&&t!==i&&this._init()}async clear(){this._clearSketch()}async updateGraphics(){this._updateGraphics()}selectionLoadingChange;sketchGraphicsChange;drawUndo;drawRedo;async componentWillLoad(){await this._getTranslations(),await this._initModules()}componentDidLoad(){this._init()}disconnectedCallback(){this._sketchWidget.cancel(),this._clearSketch()}render(){const t=this.drawMode===r.SKETCH?"display-none":"esri-widget esri-sketch__panel border-left esri-sketch__section";return e(a,{key:"253db0399bab5d5fc6f4232bb537ddeec81fec2c"},e("div",{key:"bbac53da8b8b1196cc3a7aedf5479cd4e33ab3ea",class:this.drawMode===r.SKETCH?"border":"border esri-widget esri-sketch__panel"},e("div",{key:"8d3dae2c2f82f7e4d7aae92d4a4c6050d2a96478",ref:t=>{this._sketchElement=t}}),e("div",{key:"d635374374ebdff26157a1258ba84932d491e36a",class:t},e("calcite-action",{key:"fb437fec19fa7ffc57459e426ba988fd4d50c1e6",disabled:!this.undoEnabled,icon:"undo",onClick:()=>this._undo(),scale:"s",text:this._translations.undo}),e("calcite-action",{key:"fd3f4f3e8b722b95c0b7aad1fc6b909a97787b86",disabled:!this.redoEnabled,icon:"redo",onClick:()=>this._redo(),scale:"s",text:this._translations.redo}))))}async _initModules(){const[t,i,s]=await h(["esri/layers/GraphicsLayer","esri/widgets/Sketch","esri/widgets/Sketch/SketchViewModel"]);this.GraphicsLayer=t,this.Sketch=i,this.SketchViewModel=s}_init(){this.mapView&&this._sketchElement&&(this._initGraphicsLayer(),this._initSketch())}_initGraphicsLayer(){const t=this._translations.sketchLayer,i=this.mapView.map.layers.findIndex((i=>i.title===t));i>-1?this._sketchGraphicsLayer=this.mapView.map.layers.getItemAt(i):(this._sketchGraphicsLayer=new this.GraphicsLayer({title:t,listMode:"hide"}),o.managedLayers[t]="sketch",this.mapView.map.layers.add(this._sketchGraphicsLayer)),this.graphics&&this.graphics.length>0&&this._sketchGraphicsLayer.addMany(this.graphics)}_initSketch(){const t={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({...t,container:this._sketchElement,creationMode:"single",toolbarKind:"docked",visibleElements:{duplicateButton:!1,selectionTools:{"lasso-selection":!1,"rectangle-selection":!1},createTools:{circle:!1},undoRedoMenu:!1,settingsMenu:this.drawMode===r.SKETCH}}),this._sketchViewModel=new this.SketchViewModel({...t}),this._sketchWidget.viewModel.polylineSymbol=this.polylineSymbol,this._sketchWidget.viewModel.pointSymbol=this.pointSymbol,this._sketchWidget.viewModel.polygonSymbol=this.polygonSymbol;let i=!1;this._sketchWidget.on("create",(t=>{"complete"===t.state&&(this.graphics=[t.graphic],this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1}),this.drawMode===r.REFINE&&(i=!0,this._sketchWidget.viewModel.create(t.tool))),"cancel"===t.state&&this.drawMode===r.REFINE&&i&&(i=!i,this._sketchWidget.viewModel.create(t.tool))})),this._sketchWidget.on("update",(t=>{if(this.editGraphicsEnabled){const i=t?.toolEventInfo?.type;"reshape-stop"!==i&&"move-stop"!==i||(this.graphics=t.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",(t=>{this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})})),this._sketchWidget.on("redo",(t=>{this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})}))}_clearSketch(){this._sketchWidget?.viewModel.cancel(),this.graphics=[],this._sketchGraphicsLayer?.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)}_updateGraphicsSymbols(t){const i=t[0].geometry.type,s="point"===i?this.pointSymbol:"polyline"===i?this.polylineSymbol:"polygon"===i?this.polygonSymbol:void 0;s&&t.forEach((t=>t.symbol=s))}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{graphics:["graphicsWatchHandler"],locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"]}}};c.style=':host{display:block}.border{outline:1px solid var(--calcite-color-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;justify-content:flex-start !important}.esri-sketch__section{align-items:center;display:flex;flex-flow:row wrap;padding:0 7px;margin:6px 0}.esri-responsive-toolbar__bar--horizontal{--calcite-action-group-border-color:var(--calcite-color-border-3) !important}';export{l as buffer_tools,c as map_draw_tools}
6
+ import{r as t,c as i,g as s,h as e,H as a}from"./p-934e8935.js";import{l as h,g as n}from"./p-8a74a780.js";import{f as r}from"./p-80cb7c73.js";import{s as o}from"./p-5e7369d1.js";import"./p-d4056c1c.js";import"./p-c6e42ad1.js";const l=class{constructor(s){t(this,s),this.bufferComplete=i(this,"bufferComplete",7),this.distanceChanged=i(this,"distanceChanged",7),this.unitChanged=i(this,"unitChanged",7),this.appearance="text",this.distance=0,this.geometries=[],this.locale=void 0,this.max=void 0,this.min=0,this.sliderTicks=10,this.unionResults=!0,this.unit="meters",this.disabled=!1,this._translations=void 0}get el(){return s(this)}_geometryEngine;_bufferTimeout;_unitElement;_units;geometriesWatchHandler(){this._buffer()}disabledWatchHandler(){this._buffer()}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async getTranslatedUnit(t){return this._units||await this._defineTranslations(),this._units[t]}bufferComplete;distanceChanged;unitChanged;async componentWillLoad(){await this._defineTranslations(),await this._initModules()}render(){return e(a,{key:"56719f53eabb0743adb129546e27e7dc99399021"},"text"===this.appearance?this._getTextBoxDisplay():this._getSliderDisplay())}async _defineTranslations(){await this._getTranslations(),this._initTranslatedUnits()}async _initModules(){const[t]=await h(["esri/geometry/geometryEngine"]);this._geometryEngine=t}_initTranslatedUnits(){this._units={feet:this._translations.feet,meters:this._translations.meters,miles:this._translations.miles,kilometers:this._translations.kilometers}}_getUnits(){return Object.keys(this._units).map((t=>e("calcite-option",{label:this._units[t],selected:this.unit===t,value:t})))}_setDistance(t){const i=parseInt(t.target.value,10);this.distance!==i&&i>=this.min&&(this.distanceChanged.emit({oldValue:this.distance,newValue:i}),this.distance=i,this.distance>0?this._buffer():this.bufferComplete.emit(void 0))}_setUnit(t){this.unitChanged.emit({oldValue:this.unit,newValue:t}),this.unit=t,this._buffer()}_buffer(){this.disabled?this.bufferComplete.emit(void 0):(this._bufferTimeout&&clearTimeout(this._bufferTimeout),this._bufferTimeout=setTimeout((()=>{if(this.geometries?.length>0&&this.unit&&this.distance>0){const t=this.geometries[0].spatialReference,i=t.isWGS84||t.isWebMercator?this._geometryEngine.geodesicBuffer(this.geometries,this.distance,this.unit,this.unionResults):this._geometryEngine.buffer(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:t=>this._setDistance(t),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:t=>{this._unitElement=t}},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 t=await n(this.el);this._translations=t[0]}_testAccess(t,i){switch(t){case"_setUnit":return this._setUnit(i);case"_setDistance":return this._setDistance(i)}return null}static get watchers(){return{geometries:["geometriesWatchHandler"],disabled:["disabledWatchHandler"],locale:["localeWatchHandler"]}}};l.style=':host{display:block}.c-container{display:inline-flex}.flex-1{flex:"1"}.padding-end-1{padding-inline-end:1rem}.w-50{width:50%}';const c=class{constructor(s){t(this,s),this.selectionLoadingChange=i(this,"selectionLoadingChange",7),this.sketchGraphicsChange=i(this,"sketchGraphicsChange",7),this.drawUndo=i(this,"drawUndo",7),this.drawRedo=i(this,"drawRedo",7),this.active=!1,this.drawMode=r.SKETCH,this.editGraphicsEnabled=!0,this.graphics=void 0,this.locale=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}get el(){return s(this)}GraphicsLayer;SketchViewModel;Sketch;_sketchGraphicsLayer;_sketchViewModel;_sketchWidget;_sketchElement;graphicsWatchHandler(t,i){t&&t.length>0&&JSON.stringify(t)!==JSON.stringify(i)&&this._sketchGraphicsLayer&&(this._updateGraphicsSymbols(t),this._sketchGraphicsLayer.removeAll(),this._sketchGraphicsLayer.addMany(t))}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}mapViewWatchHandler(t,i){t&&t!==i&&this._init()}async clear(){this._clearSketch()}async updateGraphics(){this._updateGraphics()}selectionLoadingChange;sketchGraphicsChange;drawUndo;drawRedo;async componentWillLoad(){await this._getTranslations(),await this._initModules()}componentDidLoad(){this._init()}disconnectedCallback(){this._sketchWidget.cancel(),this._clearSketch()}render(){const t=this.drawMode===r.SKETCH?"display-none":"esri-widget esri-sketch__panel border-left esri-sketch__section";return e(a,{key:"253db0399bab5d5fc6f4232bb537ddeec81fec2c"},e("div",{key:"bbac53da8b8b1196cc3a7aedf5479cd4e33ab3ea",class:this.drawMode===r.SKETCH?"border":"border esri-widget esri-sketch__panel"},e("div",{key:"8d3dae2c2f82f7e4d7aae92d4a4c6050d2a96478",ref:t=>{this._sketchElement=t}}),e("div",{key:"d635374374ebdff26157a1258ba84932d491e36a",class:t},e("calcite-action",{key:"fb437fec19fa7ffc57459e426ba988fd4d50c1e6",disabled:!this.undoEnabled,icon:"undo",onClick:()=>this._undo(),scale:"s",text:this._translations.undo}),e("calcite-action",{key:"fd3f4f3e8b722b95c0b7aad1fc6b909a97787b86",disabled:!this.redoEnabled,icon:"redo",onClick:()=>this._redo(),scale:"s",text:this._translations.redo}))))}async _initModules(){const[t,i,s]=await h(["esri/layers/GraphicsLayer","esri/widgets/Sketch","esri/widgets/Sketch/SketchViewModel"]);this.GraphicsLayer=t,this.Sketch=i,this.SketchViewModel=s}_init(){this.mapView&&this._sketchElement&&(this._initGraphicsLayer(),this._initSketch())}_initGraphicsLayer(){const t=this._translations.sketchLayer,i=this.mapView.map.layers.findIndex((i=>i.title===t));i>-1?this._sketchGraphicsLayer=this.mapView.map.layers.getItemAt(i):(this._sketchGraphicsLayer=new this.GraphicsLayer({title:t,listMode:"hide"}),o.managedLayers[t]="sketch",this.mapView.map.layers.add(this._sketchGraphicsLayer)),this.graphics&&this.graphics.length>0&&this._sketchGraphicsLayer.addMany(this.graphics)}_initSketch(){const t={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({...t,container:this._sketchElement,creationMode:"single",toolbarKind:"docked",visibleElements:{duplicateButton:!1,selectionTools:{"lasso-selection":!1,"rectangle-selection":!1},createTools:{circle:!1},undoRedoMenu:!1,settingsMenu:this.drawMode===r.SKETCH}}),this._sketchViewModel=new this.SketchViewModel({...t}),this._sketchWidget.viewModel.polylineSymbol=this.polylineSymbol,this._sketchWidget.viewModel.pointSymbol=this.pointSymbol,this._sketchWidget.viewModel.polygonSymbol=this.polygonSymbol;let i=!1;this._sketchWidget.on("create",(t=>{"complete"===t.state&&(this.graphics=[t.graphic],this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1}),this.drawMode===r.REFINE&&(i=!0,this._sketchWidget.viewModel.create(t.tool))),"cancel"===t.state&&this.drawMode===r.REFINE&&i&&(i=!i,this._sketchWidget.viewModel.create(t.tool))})),this._sketchWidget.on("update",(t=>{if(this.editGraphicsEnabled){const i=t?.toolEventInfo?.type;"reshape-stop"!==i&&"move-stop"!==i||(this.graphics=t.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",(t=>{this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})})),this._sketchWidget.on("redo",(t=>{this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})}))}_clearSketch(){this._sketchWidget?.viewModel.cancel(),this.graphics=[],this._sketchGraphicsLayer?.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)}_updateGraphicsSymbols(t){const i=t[0].geometry.type,s="point"===i?this.pointSymbol:"polyline"===i?this.polylineSymbol:"polygon"===i?this.polygonSymbol:void 0;s&&t.forEach((t=>t.symbol=s))}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{graphics:["graphicsWatchHandler"],locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"]}}};c.style=':host{display:block}.border{outline:1px solid var(--calcite-color-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;justify-content:flex-start !important}.esri-sketch__section{align-items:center;display:flex;flex-flow:row wrap;padding:0 7px;margin:6px 0}.esri-responsive-toolbar__bar--horizontal{--calcite-action-group-border-color:var(--calcite-color-border-3) !important}';export{l as buffer_tools,c as map_draw_tools}