@esri/solutions-components 0.11.17 → 0.11.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/card-manager_3.cjs.entry.js +116 -137
- package/dist/cjs/create-feature_4.cjs.entry.js +55 -9
- package/dist/cjs/create-related-feature_3.cjs.entry.js +1 -1
- package/dist/cjs/crowdsource-manager.cjs.entry.js +32 -19
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +1 -1
- package/dist/cjs/{downloadUtils-88ec0e88.js → downloadUtils-9abff913.js} +1 -1
- package/dist/cjs/feature-list.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-layer-picker.cjs.entry.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +2 -2
- package/dist/cjs/{mapViewUtils-319df9ec.js → mapViewUtils-4ea7216c.js} +0 -44
- package/dist/cjs/{popupUtils-ca1127aa.js → popupUtils-fc7557da.js} +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +2 -2
- package/dist/cjs/solution-item-accordion.cjs.entry.js +6 -3
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/assets/t9n/crowdsource-manager/resources.json +4 -1
- package/dist/collection/assets/t9n/crowdsource-manager/resources_en.json +4 -1
- package/dist/collection/components/card-manager/card-manager.js +1 -1
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +23 -0
- package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +32 -18
- package/dist/collection/components/info-card/info-card.js +88 -7
- package/dist/collection/components/layer-table/layer-table.js +147 -137
- package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +11 -4
- package/dist/components/card-manager2.js +1 -1
- package/dist/components/crowdsource-manager.js +33 -19
- package/dist/components/info-card2.js +54 -6
- package/dist/components/layer-table2.js +116 -136
- package/dist/components/map-select-tools2.js +1 -1
- package/dist/components/queryUtils.js +1 -43
- package/dist/components/refine-selection2.js +1 -1
- package/dist/components/solution-item-accordion.js +6 -3
- package/dist/esm/card-manager_3.entry.js +116 -137
- package/dist/esm/create-feature_4.entry.js +55 -9
- package/dist/esm/create-related-feature_3.entry.js +1 -1
- package/dist/esm/crowdsource-manager.entry.js +32 -19
- package/dist/esm/crowdsource-reporter.entry.js +1 -1
- package/dist/esm/{downloadUtils-22a8f2d8.js → downloadUtils-36d854d2.js} +1 -1
- package/dist/esm/feature-list.entry.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-layer-picker.entry.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +2 -2
- package/dist/esm/{mapViewUtils-a854e298.js → mapViewUtils-9da9be1c.js} +1 -43
- package/dist/esm/{popupUtils-1314cb13.js → popupUtils-64d25cb0.js} +1 -1
- package/dist/esm/public-notification.entry.js +2 -2
- package/dist/esm/solution-item-accordion.entry.js +6 -3
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/assets/t9n/crowdsource-manager/resources.json +4 -1
- package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_en.json +4 -1
- package/dist/solutions-components/{p-43d9bb7d.entry.js → p-055706e3.entry.js} +1 -1
- package/dist/solutions-components/{p-8ea0a36a.entry.js → p-06970873.entry.js} +1 -1
- package/dist/solutions-components/{p-bf2598f8.entry.js → p-3c43839b.entry.js} +1 -1
- package/dist/solutions-components/{p-4f514c6d.js → p-6eab9d1f.js} +1 -1
- package/dist/solutions-components/{p-a003600b.entry.js → p-72ae3bf0.entry.js} +1 -1
- package/dist/solutions-components/p-777ed6b0.entry.js +6 -0
- package/dist/solutions-components/{p-5ea1e18b.entry.js → p-8b5c3c9f.entry.js} +1 -1
- package/dist/solutions-components/{p-1fe3577a.entry.js → p-a44815ea.entry.js} +1 -1
- package/dist/solutions-components/p-b1bd3028.entry.js +6 -0
- package/dist/solutions-components/{p-3c3aecdd.js → p-d0d21a1f.js} +1 -1
- package/dist/solutions-components/{p-952da957.js → p-dcd2f00b.js} +2 -2
- package/dist/solutions-components/{p-bc2548ba.entry.js → p-e2270562.entry.js} +1 -1
- package/dist/solutions-components/p-e90c0e26.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components_commit.txt +6 -6
- package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +11 -7
- package/dist/types/components/info-card/info-card.d.ts +16 -0
- package/dist/types/components/layer-table/layer-table.d.ts +32 -21
- package/dist/types/components/solution-item-accordion/solution-item-accordion.d.ts +1 -1
- package/dist/types/components.d.ts +19 -2
- package/dist/types/preact.d.ts +2 -1
- package/package.json +1 -1
- package/dist/solutions-components/p-87919d6d.entry.js +0 -6
- package/dist/solutions-components/p-b37be371.entry.js +0 -6
- package/dist/solutions-components/p-ce8377c6.entry.js +0 -6
@@ -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\"],\"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]},[[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\"]}]]],[\"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\"],\"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\"],\"theme\":[1],\"zoomToScale\":[2,\"zoom-to-scale\"],\"floorLevel\":[1,\"floor-level\"],\"showFullCommentTitle\":[4,\"show-full-comment-title\"],\"_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],\"updateLayerExpressionsT9n\":[64]},null,{\"isMobile\":[\"isMobileWatchHandler\"],\"locale\":[\"localeWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"],\"floorLevel\":[\"floorLevelWatchHandler\"],\"showMyReportsOnly\":[\"showMyReportsOnlyWatchHandler\"],\"layerExpressions\":[\"layerExpressionsWatchHandler\"],\"showFeatureSymbol\":[\"showFeatureSymbolWatchHandler\"]}]]],[\"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\"]}]]],[\"instant-apps-interactive-legend\",[[2,\"instant-apps-interactive-legend\",{\"view\":[16],\"zoomTo\":[4,\"zoom-to\"],\"featureCount\":[1028,\"feature-count\"],\"filterMode\":[16],\"compact\":[4],\"handles\":[32],\"reactiveUtils\":[32],\"legendvm\":[32],\"widget\":[32],\"messages\":[32]},null,{\"handles\":[\"init\"],\"reactiveUtils\":[\"init\"],\"view\":[\"init\"],\"compact\":[\"compactHandler\"]}]]],[\"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\"]}]]],[\"instant-apps-language-switcher\",[[1,\"instant-apps-language-switcher\",{\"icon\":[1],\"portalItem\":[16],\"view\":[16],\"locales\":[16],\"defaultLocale\":[1,\"default-locale\"],\"selectedLanguage\":[1,\"selected-language\"],\"calciteDropdownOverlayPositioning\":[1,\"calcite-dropdown-overlay-positioning\"],\"messages\":[32],\"t9nData\":[32],\"refresh\":[64]}]]],[\"instant-apps-export\",[[1,\"instant-apps-export\",{\"output\":[1040],\"beforeExport\":[16],\"popoverIcon\":[1,\"popover-icon\"],\"extraContent\":[16],\"extraContentLabel\":[1,\"extra-content-label\"],\"headerTitle\":[1025,\"header-title\"],\"logoImage\":[1025,\"logo-image\"],\"includeExtraContent\":[1028,\"include-extra-content\"],\"showExtraContentInImg\":[4,\"show-extra-content-in-img\"],\"includeLegend\":[1028,\"include-legend\"],\"includeMap\":[1028,\"include-map\"],\"includePopup\":[1028,\"include-popup\"],\"includeFileFormat\":[1028,\"include-file-format\"],\"mode\":[513],\"popoverPositioning\":[1,\"popover-positioning\"],\"popoverPlacement\":[1,\"popover-placement\"],\"scale\":[1],\"showHeaderTitle\":[4,\"show-header-title\"],\"showIncludeLegend\":[4,\"show-include-legend\"],\"showIncludeMap\":[4,\"show-include-map\"],\"showIncludePopup\":[4,\"show-include-popup\"],\"showScaleBar\":[4,\"show-scale-bar\"],\"view\":[16],\"maskBackground\":[1,\"mask-background\"],\"maskBorder\":[1,\"mask-border\"],\"baseClass\":[32],\"exportIsLoading\":[32],\"messages\":[32],\"selectedFileType\":[32]},null,{\"includeMap\":[\"watchIncludeMap\"],\"view\":[\"watchView\"]}]]],[\"instant-apps-interactive-legend-group-legend-element-caption\",[[2,\"instant-apps-interactive-legend-group-legend-element-caption\",{\"legendvm\":[16],\"featureCount\":[4,\"feature-count\"],\"activeLayerInfo\":[16],\"messages\":[8],\"isChild\":[4,\"is-child\"],\"expanded\":[1028]}]]],[\"instant-apps-landing-page\",[[1,\"instant-apps-landing-page\",{\"titleText\":[1,\"title-text\"],\"subtitleText\":[1,\"subtitle-text\"],\"descriptionText\":[1,\"description-text\"],\"entryButtonText\":[1,\"entry-button-text\"],\"iconImage\":[1,\"icon-image\"],\"iconImageScale\":[1,\"icon-image-scale\"],\"iconImageAltText\":[1,\"icon-image-alt-text\"],\"alignment\":[1],\"disableTransition\":[4,\"disable-transition\"],\"backgroundImageSrc\":[1,\"background-image-src\"],\"open\":[1028],\"entryButtonScale\":[1,\"entry-button-scale\"],\"fontFamily\":[513,\"font-family\"],\"enableSignIn\":[4,\"enable-sign-in\"],\"portal\":[16],\"oauthappid\":[1]},null,{\"open\":[\"emitToggleEvent\"]}]]],[\"instant-apps-measurement\",[[2,\"instant-apps-measurement\",{\"view\":[16],\"areaUnit\":[1,\"area-unit\"],\"linearUnit\":[1,\"linear-unit\"],\"coordinateFormat\":[1,\"coordinate-format\"],\"activeToolType\":[1,\"active-tool-type\"],\"closable\":[4],\"messages\":[32]}]]],[\"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],\"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\"]}]]],[\"instant-apps-app-guide\",[[1,\"instant-apps-app-guide\",{\"header\":[4],\"data\":[16],\"messages\":[32],\"headerText\":[32]},null,{\"data\":[\"watchPropHandler\"],\"headerText\":[\"watchStateHandler\"]}]]],[\"instant-apps-control-panel\",[[1,\"instant-apps-control-panel\",{\"components\":[16],\"view\":[16]}]]],[\"instant-apps-create\",[[1,\"instant-apps-create\",{\"popoverIcon\":[1,\"popover-icon\"],\"mode\":[513],\"popoverPositioning\":[1,\"popover-positioning\"],\"popoverPlacement\":[1,\"popover-placement\"],\"showHeader\":[4,\"show-header\"],\"content\":[16],\"options\":[16],\"portal\":[16],\"baseClass\":[32],\"messages\":[32],\"CreateOptionsLookup\":[32]},null,{\"content\":[\"contentChanged\"]}]]],[\"instant-apps-export-views\",[[1,\"instant-apps-export-views\",{\"output\":[1040],\"beforeExport\":[16],\"popoverIcon\":[1,\"popover-icon\"],\"includeLegend\":[1028,\"include-legend\"],\"includeMap\":[1028,\"include-map\"],\"includePopup\":[1028,\"include-popup\"],\"includeHeader\":[1028,\"include-header\"],\"mode\":[513],\"popoverPositioning\":[1,\"popover-positioning\"],\"popoverPlacement\":[1,\"popover-placement\"],\"scale\":[1],\"showIncludeLegend\":[4,\"show-include-legend\"],\"showIncludeMap\":[4,\"show-include-map\"],\"showIncludePopup\":[4,\"show-include-popup\"],\"showIncludeHeader\":[4,\"show-include-header\"],\"showScaleBar\":[4,\"show-scale-bar\"],\"exportViews\":[16],\"baseClass\":[32],\"exportIsLoading\":[32],\"messages\":[32]},null,{\"includeMap\":[\"watchIncludeMap\"],\"exportViews\":[\"watchView\"]}]]],[\"instant-apps-keyboard-shortcuts\",[[1,\"instant-apps-keyboard-shortcuts\",{\"view\":[16],\"messages\":[32]}]]],[\"instant-apps-popover\",[[0,\"instant-apps-popover\",{\"popoverTitle\":[513,\"popover-title\"],\"subtitle\":[513],\"content\":[513],\"imgSrc\":[513,\"img-src\"],\"imgAlt\":[513,\"img-alt\"],\"mediaSrc\":[513,\"media-src\"],\"index\":[514],\"referenceElement\":[513,\"reference-element\"],\"parent\":[16],\"placement\":[1],\"refId\":[1,\"ref-id\"],\"pagination\":[516],\"disableAction\":[516,\"disable-action\"],\"popoverAction\":[16],\"messageOverrides\":[16],\"messages\":[32]}]]],[\"instant-apps-popovers\",[[4,\"instant-apps-popovers\",{\"inTour\":[1540,\"in-tour\"],\"currentId\":[1537,\"current-id\"],\"instantAppsPopovers\":[16],\"beforeOpen\":[16],\"open\":[64],\"close\":[64],\"beginTour\":[64],\"endTour\":[64]}]]],[\"instant-apps-scoreboard\",[[1,\"instant-apps-scoreboard\",{\"view\":[16],\"items\":[16],\"position\":[1],\"mode\":[1],\"itemLimit\":[2,\"item-limit\"],\"autoDockEnabled\":[4,\"auto-dock-enabled\"],\"geometry\":[1040],\"queryType\":[1,\"query-type\"],\"state\":[32],\"messages\":[32],\"itemIndex\":[32],\"layers\":[32],\"layerViews\":[32],\"isMobile\":[32]},null,{\"items\":[\"generateUIDs\",\"storeLayers\"],\"layers\":[\"storeLayerViews\"],\"geometry\":[\"calculateScoreboardItemValuesFromGeometry\"],\"layerViews\":[\"calculateScoreboardItemValues\"]}]]],[\"instant-apps-splash\",[[1,\"instant-apps-splash\",{\"localStorageKey\":[1,\"local-storage-key\"],\"titleText\":[1,\"title-text\"],\"content\":[1025],\"primaryButtonText\":[1,\"primary-button-text\"],\"open\":[1028],\"closeButtonDisabled\":[4,\"close-button-disabled\"],\"outsideCloseDisabled\":[4,\"outside-close-disabled\"],\"secondaryButton\":[4,\"secondary-button\"],\"secondaryButtonText\":[1,\"secondary-button-text\"],\"secondaryButtonIcon\":[1,\"secondary-button-icon\"],\"secondaryButtonCallback\":[16],\"messages\":[32]},null,{\"content\":[\"sanitizeContent\"]}]]],[\"instant-apps-time-filter\",[[0,\"instant-apps-time-filter\",{\"timeInfoConfigItems\":[16],\"filterMode\":[16],\"view\":[16],\"timeSliderConfig\":[16],\"autoPlay\":[4,\"auto-play\"],\"timeSliderRef\":[32]},null,{\"timeInfoConfigItems\":[\"updateTimeInfoConfigItems\"],\"filterMode\":[\"updateFilterMode\"],\"timeSliderConfig\":[\"updateTimeSliderConfig\"],\"autoPlay\":[\"updateAutoPlay\"]}]]],[\"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]}]]],[\"instant-apps-interactive-legend-classic\",[[2,\"instant-apps-interactive-legend-classic\",{\"legendvm\":[16],\"zoomTo\":[4,\"zoom-to\"],\"featureCount\":[4,\"feature-count\"],\"filterMode\":[16],\"messages\":[8],\"isLoading\":[32],\"intLegendId\":[32]},null,{\"filterMode\":[\"handleFilterModeChange\"]}]]],[\"instant-apps-language-translator\",[[6,\"instant-apps-language-translator\",{\"portalItem\":[16],\"appSettings\":[16],\"locales\":[16],\"open\":[1028],\"userLocaleInputOnChangeCallback\":[16],\"translatedLocaleInputOnChangeCallback\":[16],\"saving\":[32],\"messages\":[32],\"isCollapse\":[32],\"getTranslationData\":[64],\"setTranslationData\":[64],\"getPortalItemResource\":[64],\"batchWriteToPortalItemResource\":[64]},[[8,\"translatorItemDataUpdated\",\"handleT9nItemUpdate\"]],{\"locales\":[\"handleLocaleChange\"],\"appSettings\":[\"handleAppSettings\"]}]]],[\"deduct-calculator\",[[1,\"deduct-calculator\"]]],[\"instant-apps-header\",[[1,\"instant-apps-header\",{\"titleText\":[1,\"title-text\"],\"titleTextLink\":[1,\"title-text-link\"],\"backgroundColor\":[1,\"background-color\"],\"textColor\":[1,\"text-color\"],\"logoImage\":[1,\"logo-image\"],\"logoScale\":[1537,\"logo-scale\"],\"logoImageAltText\":[1,\"logo-image-alt-text\"],\"logoLink\":[1,\"logo-link\"],\"infoButton\":[1540,\"info-button\"],\"infoIsOpen\":[516,\"info-is-open\"],\"infoTitleText\":[1,\"info-title-text\"],\"customHeaderHtml\":[1025,\"custom-header-html\"],\"headerAlignment\":[1025,\"header-alignment\"],\"customHeaderCss\":[1025,\"custom-header-css\"],\"fontFamily\":[513,\"font-family\"],\"mobileWidthBreakpoint\":[2,\"mobile-width-breakpoint\"],\"dir\":[32],\"initialScale\":[32],\"toggleInfo\":[64]},null,{\"customHeaderHtml\":[\"sanitizeCustomHeaderHtml\"]}]]],[\"instant-apps-measurement-tool\",[[2,\"instant-apps-measurement-tool\",{\"view\":[16],\"measureConfiguration\":[16],\"activeTool\":[1,\"active-tool\"]},null,{\"activeTool\":[\"_updateToolType\"]}]]],[\"instant-apps-sign-in\",[[1,\"instant-apps-sign-in\",{\"type\":[1],\"portal\":[16],\"oauthappid\":[1],\"openInPopup\":[4,\"open-in-popup\"],\"landingPage\":[4,\"landing-page\"],\"titleText\":[1,\"title-text\"],\"subtitleText\":[1,\"subtitle-text\"],\"descriptionText\":[1,\"description-text\"],\"showIndicator\":[4,\"show-indicator\"],\"closeLandingPage\":[16],\"signInDropdownItems\":[16],\"isSignedIn\":[32],\"user\":[32],\"ready\":[32],\"messages\":[32]},null,{\"portal\":[\"watchPortal\"],\"oauthappid\":[\"watchOauthappid\"]}]]],[\"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\"],\"_featureItems\":[32],\"_featuresCount\":[32],\"_isLoading\":[32],\"_searchPlaceHolder\":[32],\"_fullTextSearchInfo\":[32],\"_translations\":[32],\"refresh\":[64]},null,{\"locale\":[\"localeWatchHandler\"],\"selectedLayerId\":[\"selectedLayerWatchHandler\"],\"sortingInfo\":[\"sortingInfoWatchHandler\"],\"whereClause\":[\"whereClauseHandler\"]}]]],[\"delete-dialog\",[[1,\"delete-dialog\",{\"ids\":[16],\"layer\":[16],\"locale\":[1],\"open\":[4],\"_isDeleting\":[32],\"_translations\":[32]},null,{\"locale\":[\"localeWatchHandler\"]}]]],[\"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\"]}]]],[\"instant-apps-filter-list_2\",[[1,\"instant-apps-filter-list\",{\"layerExpressions\":[1040],\"autoUpdateUrl\":[4,\"auto-update-url\"],\"closeBtn\":[4,\"close-btn\"],\"closeBtnOnClick\":[16],\"comboboxOverlayPositioning\":[1,\"combobox-overlay-positioning\"],\"closeBtnText\":[1,\"close-btn-text\"],\"openFilters\":[4,\"open-filters\"],\"extentSelector\":[4,\"extent-selector\"],\"extentSelectorConfig\":[16],\"urlParams\":[1040],\"filterCount\":[1026,\"filter-count\"],\"view\":[16],\"zoomBtn\":[4,\"zoom-btn\"],\"resetBtn\":[4,\"reset-btn\"],\"resetFiltersOnDisconnect\":[4,\"reset-filters-on-disconnect\"],\"loading\":[32],\"filterLayerExpressions\":[32],\"messages\":[32],\"baseClass\":[32],\"initDefExpressions\":[32],\"initMapImageExpressions\":[32],\"initPointCloudFilters\":[32],\"getFilterInitState\":[64],\"forceReset\":[64],\"updateInitDefExpressions\":[64],\"getCurrentLayerExpressions\":[64],\"handleUpdatingT9nData\":[64]},null,{\"view\":[\"watchViewHandler\"],\"layerExpressions\":[\"watchLayerExpressions\"]}],[1,\"instant-apps-social-share\",{\"mode\":[513],\"shareUrl\":[1025,\"share-url\"],\"autoUpdateShareUrl\":[1028,\"auto-update-share-url\"],\"shareText\":[513,\"share-text\"],\"embed\":[516],\"shareButtonColor\":[513,\"share-button-color\"],\"shareButtonType\":[513,\"share-button-type\"],\"shareButtonScale\":[513,\"share-button-scale\"],\"iframeInnerText\":[513,\"iframe-inner-text\"],\"popoverButtonIconScale\":[513,\"popover-button-icon-scale\"],\"view\":[16],\"displayTipText\":[516,\"display-tip-text\"],\"shortenShareUrl\":[516,\"shorten-share-url\"],\"socialMedia\":[516,\"social-media\"],\"shareIconsLayout\":[513,\"share-icons-layout\"],\"scale\":[513],\"successMessage\":[513,\"success-message\"],\"defaultUrlParams\":[16],\"inlineSuccessPopoverPlacement\":[513,\"inline-success-popover-placement\"],\"popoverPositioning\":[513,\"popover-positioning\"],\"removePopoverOffset\":[516,\"remove-popover-offset\"],\"messages\":[32],\"opened\":[32],\"copied\":[32],\"inlineCopyLinkOpened\":[32],\"inlineCopyEmbedOpened\":[32],\"embedWidth\":[32],\"embedHeight\":[32]}]]],[\"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\"],\"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],\"validateActiveEdits\":[64],\"refresh\":[64]},[[10,\"beforeMapInfoChange\",\"beforeMapInfoChange\"],[8,\"editorInitialized\",\"editorInitialized\"],[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\"],\"mapInfo\":[\"mapInfoWatchHandler\"],\"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\",{\"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\",{\"locale\":[1],\"mapView\":[16],\"table\":[16],\"selectedFeature\":[16],\"customizeSubmit\":[4,\"customize-submit\"],\"showGuidingMsg\":[4,\"show-guiding-msg\"],\"_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\"],\"_noLayersToDisplay\":[32],\"_mapLayerIds\":[32],\"_isLoading\":[32],\"_translations\":[32],\"refresh\":[64]},null,{\"locale\":[\"localeWatchHandler\"]}]]],[\"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-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\"]}]]],[\"instant-apps-ckeditor-wrapper_3\",[[2,\"instant-apps-language-translator-item\",{\"fieldName\":[1,\"field-name\"],\"translatedLanguageLabels\":[16],\"setting\":[16],\"userLocaleInputOnChangeCallback\":[16],\"translatedLocaleInputOnChangeCallback\":[16]}],[2,\"instant-apps-language-translator-search\",{\"t9nPlaceholder\":[1,\"t-9n-placeholder\"],\"results\":[32]}],[0,\"instant-apps-ckeditor-wrapper\",{\"value\":[1025],\"editorInstance\":[1032,\"editor-instance\"],\"config\":[16]},null,{\"value\":[\"updateValue\"]}]]],[\"solution-item-icon\",[[0,\"solution-item-icon\",{\"isPortal\":[4,\"is-portal\"],\"type\":[1],\"typeKeywords\":[16]}]]],[\"instant-apps-interactive-legend-count_2\",[[2,\"instant-apps-interactive-legend-layer-element-caption\",{\"legendvm\":[16],\"featureCount\":[4,\"feature-count\"],\"activeLayerInfo\":[16],\"messages\":[8],\"isChild\":[4,\"is-child\"],\"expanded\":[1028]}],[2,\"instant-apps-interactive-legend-count\",{\"showTotal\":[4,\"show-total\"],\"legendvm\":[16],\"activeLayerInfo\":[16],\"categoryId\":[1,\"category-id\"],\"infoIndex\":[2,\"info-index\"],\"messages\":[8],\"selected\":[4],\"legendElement\":[16]}]]],[\"instant-apps-interactive-legend-group-legend-element_5\",[[6,\"instant-apps-interactive-legend-group-legend-element\",{\"legendvm\":[16],\"featureCount\":[4,\"feature-count\"],\"activeLayerInfo\":[16],\"messages\":[8],\"isChild\":[4,\"is-child\"],\"expanded\":[32]},[[8,\"layerCaptionElementExpandUpdated\",\"layerCaptionElementExpandUpdatedEmitted\"]]],[6,\"instant-apps-interactive-legend-layer-element\",{\"legendvm\":[16],\"featureCount\":[4,\"feature-count\"],\"activeLayerInfo\":[16],\"messages\":[8],\"isChild\":[4,\"is-child\"],\"expanded\":[32]},[[8,\"layerCaptionElementExpandUpdated\",\"layerCaptionElementExpandUpdatedEmitted\"]]],[6,\"instant-apps-interactive-legend-legend-element\",{\"activeLayerInfo\":[16],\"isSizeRamp\":[4,\"is-size-ramp\"],\"isChild\":[4,\"is-child\"],\"isColorRamp\":[4,\"is-color-ramp\"],\"isRelationshipRamp\":[4,\"is-relationship-ramp\"],\"isInteractive\":[4,\"is-interactive\"],\"zoomTo\":[4,\"zoom-to\"],\"legendElement\":[16],\"titleText\":[1,\"title-text\"],\"legendvm\":[16],\"legendElementIndex\":[2,\"legend-element-index\"],\"messages\":[8],\"expanded\":[32]},[[8,\"legendLayerExpandUpdated\",\"legendLayerExpandUpdatedEmitted\"]]],[2,\"instant-apps-interactive-legend-relationship\",{\"filterMode\":[16],\"activeLayerInfo\":[16],\"legendElement\":[16],\"messages\":[8]},[[8,\"showAllSelected\",\"showAllSelectedEmitted\"]]],[2,\"instant-apps-interactive-legend-legend-element-caption\",{\"legendvm\":[16],\"activeLayerInfo\":[16],\"layer\":[16],\"titleText\":[1,\"title-text\"],\"legendElementIndex\":[2,\"legend-element-index\"],\"zoomTo\":[4,\"zoom-to\"],\"isInteractive\":[4,\"is-interactive\"],\"legendElement\":[16],\"expanded\":[1028],\"messages\":[8]}]]],[\"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\",{\"mapView\":[16],\"selectedLayerId\":[1,\"selected-layer-id\"],\"customizeSubmit\":[4,\"customize-submit\"],\"locale\":[1],\"searchConfiguration\":[16],\"isMobile\":[4,\"is-mobile\"],\"floorLevel\":[1,\"floor-level\"],\"formElements\":[8,\"form-elements\"],\"enableSearch\":[4,\"enable-search\"],\"showGuidingMsg\":[4,\"show-guiding-msg\"],\"showGuidingMsgWhileDrawing\":[4,\"show-guiding-msg-while-drawing\"],\"_editorLoading\":[32],\"_currentPage\":[32],\"_translations\":[32],\"submit\":[64],\"refresh\":[64]},null,{\"locale\":[\"localeWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"],\"isMobile\":[\"isMobileHandler\"],\"_editorLoading\":[\"_editorLoadingWatchHandler\"]}],[0,\"info-card\",{\"enableEditGeometry\":[4,\"enable-edit-geometry\"],\"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],\"_alertOpen\":[32],\"_count\":[32],\"_editRecordOpen\":[32],\"_mobileTitle\":[32],\"_showListView\":[32],\"_translations\":[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\"],\"graphics\":[1040],\"locale\":[1],\"mapView\":[16],\"open\":[1028],\"graphicIndex\":[2,\"graphic-index\"],\"_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\"],\"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\"]}]]],[\"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\"],\"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\"],\"theme\":[1],\"zoomToScale\":[2,\"zoom-to-scale\"],\"floorLevel\":[1,\"floor-level\"],\"showFullCommentTitle\":[4,\"show-full-comment-title\"],\"_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],\"updateLayerExpressionsT9n\":[64]},null,{\"isMobile\":[\"isMobileWatchHandler\"],\"locale\":[\"localeWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"],\"floorLevel\":[\"floorLevelWatchHandler\"],\"showMyReportsOnly\":[\"showMyReportsOnlyWatchHandler\"],\"layerExpressions\":[\"layerExpressionsWatchHandler\"],\"showFeatureSymbol\":[\"showFeatureSymbolWatchHandler\"]}]]],[\"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\"]}]]],[\"instant-apps-interactive-legend\",[[2,\"instant-apps-interactive-legend\",{\"view\":[16],\"zoomTo\":[4,\"zoom-to\"],\"featureCount\":[1028,\"feature-count\"],\"filterMode\":[16],\"compact\":[4],\"handles\":[32],\"reactiveUtils\":[32],\"legendvm\":[32],\"widget\":[32],\"messages\":[32]},null,{\"handles\":[\"init\"],\"reactiveUtils\":[\"init\"],\"view\":[\"init\"],\"compact\":[\"compactHandler\"]}]]],[\"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\"]}]]],[\"instant-apps-language-switcher\",[[1,\"instant-apps-language-switcher\",{\"icon\":[1],\"portalItem\":[16],\"view\":[16],\"locales\":[16],\"defaultLocale\":[1,\"default-locale\"],\"selectedLanguage\":[1,\"selected-language\"],\"calciteDropdownOverlayPositioning\":[1,\"calcite-dropdown-overlay-positioning\"],\"messages\":[32],\"t9nData\":[32],\"refresh\":[64]}]]],[\"instant-apps-export\",[[1,\"instant-apps-export\",{\"output\":[1040],\"beforeExport\":[16],\"popoverIcon\":[1,\"popover-icon\"],\"extraContent\":[16],\"extraContentLabel\":[1,\"extra-content-label\"],\"headerTitle\":[1025,\"header-title\"],\"logoImage\":[1025,\"logo-image\"],\"includeExtraContent\":[1028,\"include-extra-content\"],\"showExtraContentInImg\":[4,\"show-extra-content-in-img\"],\"includeLegend\":[1028,\"include-legend\"],\"includeMap\":[1028,\"include-map\"],\"includePopup\":[1028,\"include-popup\"],\"includeFileFormat\":[1028,\"include-file-format\"],\"mode\":[513],\"popoverPositioning\":[1,\"popover-positioning\"],\"popoverPlacement\":[1,\"popover-placement\"],\"scale\":[1],\"showHeaderTitle\":[4,\"show-header-title\"],\"showIncludeLegend\":[4,\"show-include-legend\"],\"showIncludeMap\":[4,\"show-include-map\"],\"showIncludePopup\":[4,\"show-include-popup\"],\"showScaleBar\":[4,\"show-scale-bar\"],\"view\":[16],\"maskBackground\":[1,\"mask-background\"],\"maskBorder\":[1,\"mask-border\"],\"baseClass\":[32],\"exportIsLoading\":[32],\"messages\":[32],\"selectedFileType\":[32]},null,{\"includeMap\":[\"watchIncludeMap\"],\"view\":[\"watchView\"]}]]],[\"instant-apps-interactive-legend-group-legend-element-caption\",[[2,\"instant-apps-interactive-legend-group-legend-element-caption\",{\"legendvm\":[16],\"featureCount\":[4,\"feature-count\"],\"activeLayerInfo\":[16],\"messages\":[8],\"isChild\":[4,\"is-child\"],\"expanded\":[1028]}]]],[\"instant-apps-landing-page\",[[1,\"instant-apps-landing-page\",{\"titleText\":[1,\"title-text\"],\"subtitleText\":[1,\"subtitle-text\"],\"descriptionText\":[1,\"description-text\"],\"entryButtonText\":[1,\"entry-button-text\"],\"iconImage\":[1,\"icon-image\"],\"iconImageScale\":[1,\"icon-image-scale\"],\"iconImageAltText\":[1,\"icon-image-alt-text\"],\"alignment\":[1],\"disableTransition\":[4,\"disable-transition\"],\"backgroundImageSrc\":[1,\"background-image-src\"],\"open\":[1028],\"entryButtonScale\":[1,\"entry-button-scale\"],\"fontFamily\":[513,\"font-family\"],\"enableSignIn\":[4,\"enable-sign-in\"],\"portal\":[16],\"oauthappid\":[1]},null,{\"open\":[\"emitToggleEvent\"]}]]],[\"instant-apps-measurement\",[[2,\"instant-apps-measurement\",{\"view\":[16],\"areaUnit\":[1,\"area-unit\"],\"linearUnit\":[1,\"linear-unit\"],\"coordinateFormat\":[1,\"coordinate-format\"],\"activeToolType\":[1,\"active-tool-type\"],\"closable\":[4],\"messages\":[32]}]]],[\"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],\"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\"]}]]],[\"instant-apps-app-guide\",[[1,\"instant-apps-app-guide\",{\"header\":[4],\"data\":[16],\"messages\":[32],\"headerText\":[32]},null,{\"data\":[\"watchPropHandler\"],\"headerText\":[\"watchStateHandler\"]}]]],[\"instant-apps-control-panel\",[[1,\"instant-apps-control-panel\",{\"components\":[16],\"view\":[16]}]]],[\"instant-apps-create\",[[1,\"instant-apps-create\",{\"popoverIcon\":[1,\"popover-icon\"],\"mode\":[513],\"popoverPositioning\":[1,\"popover-positioning\"],\"popoverPlacement\":[1,\"popover-placement\"],\"showHeader\":[4,\"show-header\"],\"content\":[16],\"options\":[16],\"portal\":[16],\"baseClass\":[32],\"messages\":[32],\"CreateOptionsLookup\":[32]},null,{\"content\":[\"contentChanged\"]}]]],[\"instant-apps-export-views\",[[1,\"instant-apps-export-views\",{\"output\":[1040],\"beforeExport\":[16],\"popoverIcon\":[1,\"popover-icon\"],\"includeLegend\":[1028,\"include-legend\"],\"includeMap\":[1028,\"include-map\"],\"includePopup\":[1028,\"include-popup\"],\"includeHeader\":[1028,\"include-header\"],\"mode\":[513],\"popoverPositioning\":[1,\"popover-positioning\"],\"popoverPlacement\":[1,\"popover-placement\"],\"scale\":[1],\"showIncludeLegend\":[4,\"show-include-legend\"],\"showIncludeMap\":[4,\"show-include-map\"],\"showIncludePopup\":[4,\"show-include-popup\"],\"showIncludeHeader\":[4,\"show-include-header\"],\"showScaleBar\":[4,\"show-scale-bar\"],\"exportViews\":[16],\"baseClass\":[32],\"exportIsLoading\":[32],\"messages\":[32]},null,{\"includeMap\":[\"watchIncludeMap\"],\"exportViews\":[\"watchView\"]}]]],[\"instant-apps-keyboard-shortcuts\",[[1,\"instant-apps-keyboard-shortcuts\",{\"view\":[16],\"messages\":[32]}]]],[\"instant-apps-popover\",[[0,\"instant-apps-popover\",{\"popoverTitle\":[513,\"popover-title\"],\"subtitle\":[513],\"content\":[513],\"imgSrc\":[513,\"img-src\"],\"imgAlt\":[513,\"img-alt\"],\"mediaSrc\":[513,\"media-src\"],\"index\":[514],\"referenceElement\":[513,\"reference-element\"],\"parent\":[16],\"placement\":[1],\"refId\":[1,\"ref-id\"],\"pagination\":[516],\"disableAction\":[516,\"disable-action\"],\"popoverAction\":[16],\"messageOverrides\":[16],\"messages\":[32]}]]],[\"instant-apps-popovers\",[[4,\"instant-apps-popovers\",{\"inTour\":[1540,\"in-tour\"],\"currentId\":[1537,\"current-id\"],\"instantAppsPopovers\":[16],\"beforeOpen\":[16],\"open\":[64],\"close\":[64],\"beginTour\":[64],\"endTour\":[64]}]]],[\"instant-apps-scoreboard\",[[1,\"instant-apps-scoreboard\",{\"view\":[16],\"items\":[16],\"position\":[1],\"mode\":[1],\"itemLimit\":[2,\"item-limit\"],\"autoDockEnabled\":[4,\"auto-dock-enabled\"],\"geometry\":[1040],\"queryType\":[1,\"query-type\"],\"state\":[32],\"messages\":[32],\"itemIndex\":[32],\"layers\":[32],\"layerViews\":[32],\"isMobile\":[32]},null,{\"items\":[\"generateUIDs\",\"storeLayers\"],\"layers\":[\"storeLayerViews\"],\"geometry\":[\"calculateScoreboardItemValuesFromGeometry\"],\"layerViews\":[\"calculateScoreboardItemValues\"]}]]],[\"instant-apps-splash\",[[1,\"instant-apps-splash\",{\"localStorageKey\":[1,\"local-storage-key\"],\"titleText\":[1,\"title-text\"],\"content\":[1025],\"primaryButtonText\":[1,\"primary-button-text\"],\"open\":[1028],\"closeButtonDisabled\":[4,\"close-button-disabled\"],\"outsideCloseDisabled\":[4,\"outside-close-disabled\"],\"secondaryButton\":[4,\"secondary-button\"],\"secondaryButtonText\":[1,\"secondary-button-text\"],\"secondaryButtonIcon\":[1,\"secondary-button-icon\"],\"secondaryButtonCallback\":[16],\"messages\":[32]},null,{\"content\":[\"sanitizeContent\"]}]]],[\"instant-apps-time-filter\",[[0,\"instant-apps-time-filter\",{\"timeInfoConfigItems\":[16],\"filterMode\":[16],\"view\":[16],\"timeSliderConfig\":[16],\"autoPlay\":[4,\"auto-play\"],\"timeSliderRef\":[32]},null,{\"timeInfoConfigItems\":[\"updateTimeInfoConfigItems\"],\"filterMode\":[\"updateFilterMode\"],\"timeSliderConfig\":[\"updateTimeSliderConfig\"],\"autoPlay\":[\"updateAutoPlay\"]}]]],[\"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]}]]],[\"instant-apps-interactive-legend-classic\",[[2,\"instant-apps-interactive-legend-classic\",{\"legendvm\":[16],\"zoomTo\":[4,\"zoom-to\"],\"featureCount\":[4,\"feature-count\"],\"filterMode\":[16],\"messages\":[8],\"isLoading\":[32],\"intLegendId\":[32]},null,{\"filterMode\":[\"handleFilterModeChange\"]}]]],[\"instant-apps-language-translator\",[[6,\"instant-apps-language-translator\",{\"portalItem\":[16],\"appSettings\":[16],\"locales\":[16],\"open\":[1028],\"userLocaleInputOnChangeCallback\":[16],\"translatedLocaleInputOnChangeCallback\":[16],\"saving\":[32],\"messages\":[32],\"isCollapse\":[32],\"getTranslationData\":[64],\"setTranslationData\":[64],\"getPortalItemResource\":[64],\"batchWriteToPortalItemResource\":[64]},[[8,\"translatorItemDataUpdated\",\"handleT9nItemUpdate\"]],{\"locales\":[\"handleLocaleChange\"],\"appSettings\":[\"handleAppSettings\"]}]]],[\"deduct-calculator\",[[1,\"deduct-calculator\"]]],[\"instant-apps-header\",[[1,\"instant-apps-header\",{\"titleText\":[1,\"title-text\"],\"titleTextLink\":[1,\"title-text-link\"],\"backgroundColor\":[1,\"background-color\"],\"textColor\":[1,\"text-color\"],\"logoImage\":[1,\"logo-image\"],\"logoScale\":[1537,\"logo-scale\"],\"logoImageAltText\":[1,\"logo-image-alt-text\"],\"logoLink\":[1,\"logo-link\"],\"infoButton\":[1540,\"info-button\"],\"infoIsOpen\":[516,\"info-is-open\"],\"infoTitleText\":[1,\"info-title-text\"],\"customHeaderHtml\":[1025,\"custom-header-html\"],\"headerAlignment\":[1025,\"header-alignment\"],\"customHeaderCss\":[1025,\"custom-header-css\"],\"fontFamily\":[513,\"font-family\"],\"mobileWidthBreakpoint\":[2,\"mobile-width-breakpoint\"],\"dir\":[32],\"initialScale\":[32],\"toggleInfo\":[64]},null,{\"customHeaderHtml\":[\"sanitizeCustomHeaderHtml\"]}]]],[\"instant-apps-measurement-tool\",[[2,\"instant-apps-measurement-tool\",{\"view\":[16],\"measureConfiguration\":[16],\"activeTool\":[1,\"active-tool\"]},null,{\"activeTool\":[\"_updateToolType\"]}]]],[\"instant-apps-sign-in\",[[1,\"instant-apps-sign-in\",{\"type\":[1],\"portal\":[16],\"oauthappid\":[1],\"openInPopup\":[4,\"open-in-popup\"],\"landingPage\":[4,\"landing-page\"],\"titleText\":[1,\"title-text\"],\"subtitleText\":[1,\"subtitle-text\"],\"descriptionText\":[1,\"description-text\"],\"showIndicator\":[4,\"show-indicator\"],\"closeLandingPage\":[16],\"signInDropdownItems\":[16],\"isSignedIn\":[32],\"user\":[32],\"ready\":[32],\"messages\":[32]},null,{\"portal\":[\"watchPortal\"],\"oauthappid\":[\"watchOauthappid\"]}]]],[\"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\"],\"_featureItems\":[32],\"_featuresCount\":[32],\"_isLoading\":[32],\"_searchPlaceHolder\":[32],\"_fullTextSearchInfo\":[32],\"_translations\":[32],\"refresh\":[64]},null,{\"locale\":[\"localeWatchHandler\"],\"selectedLayerId\":[\"selectedLayerWatchHandler\"],\"sortingInfo\":[\"sortingInfoWatchHandler\"],\"whereClause\":[\"whereClauseHandler\"]}]]],[\"delete-dialog\",[[1,\"delete-dialog\",{\"ids\":[16],\"layer\":[16],\"locale\":[1],\"open\":[4],\"_isDeleting\":[32],\"_translations\":[32]},null,{\"locale\":[\"localeWatchHandler\"]}]]],[\"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\"]}]]],[\"instant-apps-filter-list_2\",[[1,\"instant-apps-filter-list\",{\"layerExpressions\":[1040],\"autoUpdateUrl\":[4,\"auto-update-url\"],\"closeBtn\":[4,\"close-btn\"],\"closeBtnOnClick\":[16],\"comboboxOverlayPositioning\":[1,\"combobox-overlay-positioning\"],\"closeBtnText\":[1,\"close-btn-text\"],\"openFilters\":[4,\"open-filters\"],\"extentSelector\":[4,\"extent-selector\"],\"extentSelectorConfig\":[16],\"urlParams\":[1040],\"filterCount\":[1026,\"filter-count\"],\"view\":[16],\"zoomBtn\":[4,\"zoom-btn\"],\"resetBtn\":[4,\"reset-btn\"],\"resetFiltersOnDisconnect\":[4,\"reset-filters-on-disconnect\"],\"loading\":[32],\"filterLayerExpressions\":[32],\"messages\":[32],\"baseClass\":[32],\"initDefExpressions\":[32],\"initMapImageExpressions\":[32],\"initPointCloudFilters\":[32],\"getFilterInitState\":[64],\"forceReset\":[64],\"updateInitDefExpressions\":[64],\"getCurrentLayerExpressions\":[64],\"handleUpdatingT9nData\":[64]},null,{\"view\":[\"watchViewHandler\"],\"layerExpressions\":[\"watchLayerExpressions\"]}],[1,\"instant-apps-social-share\",{\"mode\":[513],\"shareUrl\":[1025,\"share-url\"],\"autoUpdateShareUrl\":[1028,\"auto-update-share-url\"],\"shareText\":[513,\"share-text\"],\"embed\":[516],\"shareButtonColor\":[513,\"share-button-color\"],\"shareButtonType\":[513,\"share-button-type\"],\"shareButtonScale\":[513,\"share-button-scale\"],\"iframeInnerText\":[513,\"iframe-inner-text\"],\"popoverButtonIconScale\":[513,\"popover-button-icon-scale\"],\"view\":[16],\"displayTipText\":[516,\"display-tip-text\"],\"shortenShareUrl\":[516,\"shorten-share-url\"],\"socialMedia\":[516,\"social-media\"],\"shareIconsLayout\":[513,\"share-icons-layout\"],\"scale\":[513],\"successMessage\":[513,\"success-message\"],\"defaultUrlParams\":[16],\"inlineSuccessPopoverPlacement\":[513,\"inline-success-popover-placement\"],\"popoverPositioning\":[513,\"popover-positioning\"],\"removePopoverOffset\":[516,\"remove-popover-offset\"],\"messages\":[32],\"opened\":[32],\"copied\":[32],\"inlineCopyLinkOpened\":[32],\"inlineCopyEmbedOpened\":[32],\"embedWidth\":[32],\"embedHeight\":[32]}]]],[\"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\"],\"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\"],\"mapInfo\":[\"mapInfoWatchHandler\"],\"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\",{\"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\",{\"locale\":[1],\"mapView\":[16],\"table\":[16],\"selectedFeature\":[16],\"customizeSubmit\":[4,\"customize-submit\"],\"showGuidingMsg\":[4,\"show-guiding-msg\"],\"_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\"],\"_noLayersToDisplay\":[32],\"_mapLayerIds\":[32],\"_isLoading\":[32],\"_translations\":[32],\"refresh\":[64]},null,{\"locale\":[\"localeWatchHandler\"]}]]],[\"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-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\"]}]]],[\"instant-apps-ckeditor-wrapper_3\",[[2,\"instant-apps-language-translator-item\",{\"fieldName\":[1,\"field-name\"],\"translatedLanguageLabels\":[16],\"setting\":[16],\"userLocaleInputOnChangeCallback\":[16],\"translatedLocaleInputOnChangeCallback\":[16]}],[2,\"instant-apps-language-translator-search\",{\"t9nPlaceholder\":[1,\"t-9n-placeholder\"],\"results\":[32]}],[0,\"instant-apps-ckeditor-wrapper\",{\"value\":[1025],\"editorInstance\":[1032,\"editor-instance\"],\"config\":[16]},null,{\"value\":[\"updateValue\"]}]]],[\"solution-item-icon\",[[0,\"solution-item-icon\",{\"isPortal\":[4,\"is-portal\"],\"type\":[1],\"typeKeywords\":[16]}]]],[\"instant-apps-interactive-legend-count_2\",[[2,\"instant-apps-interactive-legend-layer-element-caption\",{\"legendvm\":[16],\"featureCount\":[4,\"feature-count\"],\"activeLayerInfo\":[16],\"messages\":[8],\"isChild\":[4,\"is-child\"],\"expanded\":[1028]}],[2,\"instant-apps-interactive-legend-count\",{\"showTotal\":[4,\"show-total\"],\"legendvm\":[16],\"activeLayerInfo\":[16],\"categoryId\":[1,\"category-id\"],\"infoIndex\":[2,\"info-index\"],\"messages\":[8],\"selected\":[4],\"legendElement\":[16]}]]],[\"instant-apps-interactive-legend-group-legend-element_5\",[[6,\"instant-apps-interactive-legend-group-legend-element\",{\"legendvm\":[16],\"featureCount\":[4,\"feature-count\"],\"activeLayerInfo\":[16],\"messages\":[8],\"isChild\":[4,\"is-child\"],\"expanded\":[32]},[[8,\"layerCaptionElementExpandUpdated\",\"layerCaptionElementExpandUpdatedEmitted\"]]],[6,\"instant-apps-interactive-legend-layer-element\",{\"legendvm\":[16],\"featureCount\":[4,\"feature-count\"],\"activeLayerInfo\":[16],\"messages\":[8],\"isChild\":[4,\"is-child\"],\"expanded\":[32]},[[8,\"layerCaptionElementExpandUpdated\",\"layerCaptionElementExpandUpdatedEmitted\"]]],[6,\"instant-apps-interactive-legend-legend-element\",{\"activeLayerInfo\":[16],\"isSizeRamp\":[4,\"is-size-ramp\"],\"isChild\":[4,\"is-child\"],\"isColorRamp\":[4,\"is-color-ramp\"],\"isRelationshipRamp\":[4,\"is-relationship-ramp\"],\"isInteractive\":[4,\"is-interactive\"],\"zoomTo\":[4,\"zoom-to\"],\"legendElement\":[16],\"titleText\":[1,\"title-text\"],\"legendvm\":[16],\"legendElementIndex\":[2,\"legend-element-index\"],\"messages\":[8],\"expanded\":[32]},[[8,\"legendLayerExpandUpdated\",\"legendLayerExpandUpdatedEmitted\"]]],[2,\"instant-apps-interactive-legend-relationship\",{\"filterMode\":[16],\"activeLayerInfo\":[16],\"legendElement\":[16],\"messages\":[8]},[[8,\"showAllSelected\",\"showAllSelectedEmitted\"]]],[2,\"instant-apps-interactive-legend-legend-element-caption\",{\"legendvm\":[16],\"activeLayerInfo\":[16],\"layer\":[16],\"titleText\":[1,\"title-text\"],\"legendElementIndex\":[2,\"legend-element-index\"],\"zoomTo\":[4,\"zoom-to\"],\"isInteractive\":[4,\"is-interactive\"],\"legendElement\":[16],\"expanded\":[1028],\"messages\":[8]}]]],[\"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\",{\"mapView\":[16],\"selectedLayerId\":[1,\"selected-layer-id\"],\"customizeSubmit\":[4,\"customize-submit\"],\"locale\":[1],\"searchConfiguration\":[16],\"isMobile\":[4,\"is-mobile\"],\"floorLevel\":[1,\"floor-level\"],\"formElements\":[8,\"form-elements\"],\"enableSearch\":[4,\"enable-search\"],\"showGuidingMsg\":[4,\"show-guiding-msg\"],\"showGuidingMsgWhileDrawing\":[4,\"show-guiding-msg-while-drawing\"],\"_editorLoading\":[32],\"_currentPage\":[32],\"_translations\":[32],\"submit\":[64],\"refresh\":[64]},null,{\"locale\":[\"localeWatchHandler\"],\"mapView\":[\"mapViewWatchHandler\"],\"isMobile\":[\"isMobileHandler\"],\"_editorLoading\":[\"_editorLoadingWatchHandler\"]}],[0,\"info-card\",{\"enableEditGeometry\":[4,\"enable-edit-geometry\"],\"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\"],\"graphics\":[1040],\"locale\":[1],\"mapView\":[16],\"open\":[1028],\"graphicIndex\":[2,\"graphic-index\"],\"_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
|
});
|
@@ -8,5 +8,8 @@
|
|
8
8
|
"splitView": "Split view",
|
9
9
|
"tableView": "Table view",
|
10
10
|
"mapView": "Map view",
|
11
|
-
"filter": "Filter: {{title}}"
|
11
|
+
"filter": "Filter: {{title}}",
|
12
|
+
"Resetfilter": "Reset Filter",
|
13
|
+
"filterByExtentMsg": "Only show records in visible map extent",
|
14
|
+
"filterByExtentTooltipMsg": "While editing a feature in the map, the 'filter by visible extent' tool will not be respected"
|
12
15
|
}
|
@@ -8,5 +8,8 @@
|
|
8
8
|
"splitView": "Split view",
|
9
9
|
"tableView": "Table view",
|
10
10
|
"mapView": "Map view",
|
11
|
-
"filter": "Filter: {{title}}"
|
11
|
+
"filter": "Filter: {{title}}",
|
12
|
+
"Resetfilter": "Reset Filter",
|
13
|
+
"filterByExtentMsg": "Only show records in visible map extent",
|
14
|
+
"filterByExtentTooltipMsg": "While editing a feature in the map, the 'filter by visible extent' tool will not be respected"
|
12
15
|
}
|
@@ -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 e,a as s,h as a,H as l}from"./p-1b0588d2.js";import{b as o,c as n,a as c}from"./p-80cb7c73.js";import{l as h,g as r}from"./p-ee2cbba0.js";import{e as d,h as p}from"./p-952da957.js";import{s as g}from"./p-48942eb8.js";import{c as b,r as m}from"./p-4f514c6d.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-e23b4193.js";import"./p-4fe489cf.js";import"./p-2bc98cb0.js";import"./p-4f236b5d.js";import"./p-570b13d9.js";import"./p-0668e30d.js";const u=class{constructor(e){t(this,e),this.searchConfigurationChange=i(this,"searchConfigurationChange",7)}get el(){return e(this)}addresseeLayerIds=[];bufferColor=[227,139,79,.8];bufferOutlineColor=[255,255,255];customLabelEnabled;defaultBufferDistance;defaultBufferUnit;defaultExportTitle="";defaultNumLabelsPerPage=6;enableLayerFeatures=!0;enableLayerFeaturesOnLoad=!1;enableSearchDistance=!0;enableSearchDistanceOnLoad=!1;enableSketchTools=!0;featureEffect;featureHighlightEnabled;locale;mapView;noResultText;initialNotice="";searchConfiguration;selectionLayerIds=[];showRefineSelection=!1;showSearchSettings=!0;sketchLineSymbol;sketchPointSymbol;sketchPolygonSymbol;_exportGraphics=!1;_addMap=!1;_addResults=!0;_addTitle=!1;_downloadActive=!0;_exportType=o.PDF;_fetchingData=!1;_isMobile;_numDuplicates=0;_pageType=n.LIST;_saveEnabled=!1;_selectionSets=[];_translations;_activeSelection;_downloadTools;_geometryEngine;Graphic;_jsonUtils;_onboardingImageUrl="";_popupsEnabled;_removeDuplicates;_searchConfiguration;_selectTools;_mediaQuery;_titleElement;_titleValue=void 0;_numSelected=0;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(t){t?.popup&&(this._popupsEnabled=t?.popupEnabled),this._initSearchConfiguration(this.searchConfiguration)}async watchSearchConfigurationHandler(t,i){const e=JSON.stringify(t);this.mapView&&(e!==JSON.stringify(i)||e&&!this._searchConfiguration)&&(this._searchConfiguration=JSON.parse(e),this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}async sketchLineSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setLineSymbol(t)}async sketchPointSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPointSymbol(t)}async sketchPolygonSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPolygonSymbol(t)}async pageTypeWatchHandler(t,i){if(this._checkPopups(),this.mapView?.popup&&(this.mapView.popupEnabled=t===n.LIST&&this._popupsEnabled),t===n.EXPORT&&(this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._updateExportGraphics(),this._fetchingData=!1),this._clearHighlight(),i!==n.SELECT&&i!==n.REFINE||await this._clearSelection(),i===n.EXPORT&&this._removeExportGraphics(),t!==n.SELECT)return this._highlightFeatures()}searchConfigurationChange;selectionSetsChanged(t){this._selectionSets=[...t.detail]}connectedCallback(){this._mediaQuery=window.matchMedia("(max-width: 600px)"),this._mediaQuery.addEventListener("change",(t=>this._setIsMobile(t)))}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initSymbols(),this._onboardingImageUrl=s("assets/data/images/onboarding.png")}render(){return a(l,{key:"61ed8da1de1c6780188fb7bd4f69c82036ddf705"},a("calcite-shell",{key:"9eb929b7d27d103a207be34681623ca2e0097ef1"},a("calcite-action-bar",{key:"3c7ad5516fdca78819ebdbdc7c41642c816239ec",class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:this._isMobile?"footer":"header"},this._getActionGroup("list-check",n.LIST,this._translations.myLists),this.showRefineSelection?this._getActionGroup("test-data",n.REFINE,this._translations.refineSelection):null,this._getActionGroup("export",n.EXPORT,this._translations.export)),this._getPage(this._pageType)))}async componentDidLoad(){this._initSearchConfiguration(this.searchConfiguration)}disconnectedCallback(){this._mediaQuery.removeEventListener("change",(t=>this._setIsMobile(t)))}async _initModules(){const[t,i,e]=await h(["esri/geometry/geometryEngine","esri/symbols/support/jsonUtils","esri/Graphic"]);this._geometryEngine=t,this._jsonUtils=i,this.Graphic=e}_initSearchConfiguration(t){this.searchConfiguration&&!this._searchConfiguration&&this.mapView&&(this._searchConfiguration=t,this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}_initSymbols(){this._setLineSymbol(this.sketchLineSymbol),this._setPointSymbol(this.sketchPointSymbol),this._setPolygonSymbol(this.sketchPolygonSymbol)}_setLineSymbol(t){this.sketchLineSymbol="simple-line"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSLS",color:[130,130,130,255],width:2,style:"esriSLSSolid"})}_setPointSymbol(t){this.sketchPointSymbol="simple-marker"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSMS",color:[255,255,255,255],angle:0,xoffset:0,yoffset:0,size:6,style:"esriSMSCircle",outline:{type:"esriSLS",color:[50,50,50,255],width:1,style:"esriSLSSolid"}})}_setPolygonSymbol(t){this.sketchPolygonSymbol="simple-fill"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSFS",color:[150,150,150,51],outline:{type:"esriSLS",color:[50,50,50,255],width:2,style:"esriSLSSolid"},style:"esriSFSSolid"})}_setIsMobile(t){this._isMobile=t.matches}_getActionGroup(t,i,e){return a("calcite-action-group",{class:this.showRefineSelection?"w-1-3":"w-1-2",layout:"horizontal"},a("div",{class:"background-override"},a("calcite-action",{active:this._pageType===i,alignment:"center",class:"width-full height-full",icon:t,id:t,onClick:()=>{this._setPageType(i)},text:""})),a("calcite-tooltip",{label:"",placement:"bottom","reference-element":t},a("span",null,e)))}_setPageType(t){this._pageType=t}_getPage(t){let i;switch(t){case n.LIST:i=this._getListPage();break;case n.SELECT:i=this._getSelectPage();break;case n.EXPORT:i=this._getExportPage();break;case n.REFINE:i=this._getRefinePage()}return i}_getListPage(){const t=this._hasSelections(),i=t?this._translations.listHasSetsTip:""!==this.initialNotice?this.initialNotice:this._translations.selectLayerAndAdd;return a("calcite-panel",null,this._getLabel(this._translations.myLists),this._getNotice(i,"padding-sides-1 padding-bottom-1","word-wrap-anywhere"),t?this._getSelectionSetList():this._getOnboardingImage(),a("div",{class:"display-flex padding-1"},a("calcite-button",{onClick:()=>{this._setPageType(n.SELECT)},width:"full"},a("span",{class:"font-weight-500"},this._translations.add))))}_getOnboardingImage(){return a("div",{class:"display-flex padding-sides-1"},a("img",{class:"img-container",role:"presentation",src:this._onboardingImageUrl}))}_getSelectionSetList(){return a("div",{class:"padding-top-1-2 padding-bottom-1-2"},a("calcite-list",{class:"list-border margin-sides-1",label:""},this._selectionSets.reduce(((t,i,e)=>{const s=this._getSelectionSetIds(i);let l=!0;return i.workflowType===c.REFINE&&(l=Object.keys(i.refineInfos).reduce(((t,e)=>{const s=i.refineInfos[e];return t+(s.addIds.length+s.removeIds.length)}),0)>0),l&&t.push(a("calcite-list-item",{label:i.label,onClick:()=>this._gotoSelection(i,this.mapView)},a("div",{slot:"content"},a("div",{class:"list-label"},i.label),a("div",{class:"list-description"},i?.layerView?.layer.title),a("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",s.length.toString()))),this._getAction(!0,"pencil","",(t=>this._openSelection(i,t)),!1,"actions-end"),this._getAction(!0,"x","",(t=>this._deleteSelection(e,t)),!1,"actions-end"))),t}),[])))}_getSelectionSetIds(t){return t.workflowType!==c.REFINE?t.selectedIds:Object.keys(t.refineInfos).reduce(((i,e)=>[...i,...t.refineInfos[e].addIds]),[])}_hasSelections(t=!1){let i=[];const e=this._selectionSets.some((t=>{if(t.workflowType===c.REFINE)return i=this._getSelectionSetIds(t),!0}));return t&&e?i.length>0||this._selectionSets.length>1:this._selectionSets.length>0}async _getNumDuplicates(){const t=this._getExportInfos(),i=await b(this.mapView.map,t),e=m(i);return i.length-e.length}_getExportInfos(){return this._selectionSets.reduce(((t,i)=>(i.download&&(i.workflowType!==c.REFINE?this._updateIds(i.layerView.layer.id,i.layerView,i.selectedIds,t):Object.keys(i.refineInfos).forEach((e=>{const s=i.refineInfos[e];s.addIds.length>0&&this._updateIds(e,s.layerView,s.addIds,t)}))),t)),{})}_updateIds(t,i,e,s){return s[t]?s[t].ids=s[t].ids.concat(e):s[t]={layerView:i,ids:e},s}_getSelectPage(){const t=this._translations.selectSearchTip;return a("calcite-panel",null,this._getLabel(this._translations.stepTwoFull,!0),this._getNotice(t,"padding-1","word-wrap-anywhere"),a("div",null,a("map-select-tools",{bufferColor:this.bufferColor,bufferOutlineColor:this.bufferOutlineColor,class:"font-bold",customLabelEnabled:this.customLabelEnabled,defaultBufferDistance:this.defaultBufferDistance,defaultBufferUnit:this.defaultBufferUnit,enableLayerFeatures:this.enableLayerFeatures,enableLayerFeaturesOnLoad:this.enableLayerFeaturesOnLoad,enableSearchDistance:this.enableSearchDistance,enableSearchDistanceOnLoad:this.enableSearchDistanceOnLoad,enableSketchTools:this.enableSketchTools,enabledLayerIds:this.addresseeLayerIds,isUpdate:!!this._activeSelection,locale:this.locale,mapView:this.mapView,noResultText:this.noResultText,onSelectionSetChange:t=>this._updateForSelection(t),ref:t=>{this._selectTools=t},searchConfiguration:this._searchConfiguration,searchDistanceEnabled:this.enableSearchDistanceOnLoad,selectionLayerIds:this.selectionLayerIds,selectionSet:this._activeSelection,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol,useLayerFeaturesEnabled:this.enableLayerFeaturesOnLoad})),this._getPageNavButtons(this._translations.done,0===this._numSelected,(()=>{this._saveSelection()}),this._translations.cancel,!1,(()=>{this._home()})))}_getExportPage(){const t=this._hasSelections(this.showRefineSelection),i=this._numDuplicates>0?"display-block":"display-none";return a("calcite-panel",null,a("div",null,this._getLabel(this._translations.export,!1),t?a("div",null,this._getNotice(this._translations.exportTip,"padding-sides-1"),this._getLabel(this._translations.exportListsLabel),this._getExportSelectionLists(),a("div",{class:"padding-sides-1 "+i},a("div",{class:"display-flex"},a("calcite-label",{layout:"inline"},a("calcite-checkbox",{ref:t=>{this._removeDuplicates=t}}),a("div",{class:"display-flex"},this._translations.removeDuplicate,a("div",{class:"info-message padding-start-1-2"},a("calcite-input-message",{class:"info-blue margin-top-0",scale:"m"},` ${this._translations.numDuplicates.replace("{{n}}",this._numDuplicates.toString())}`)))),a("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"remove-duplicates-icon",scale:"s"})),a("calcite-popover",{closable:!0,label:"",referenceElement:"remove-duplicates-icon"},a("span",{class:"tooltip-message"},this._translations.duplicatesTip))),a("div",{class:"border-bottom"}),a("div",{class:"padding-top-sides-1"},a("calcite-segmented-control",{class:"w-100",onCalciteSegmentedControlChange:t=>this._exportTypeChange(t),width:"full"},a("calcite-segmented-control-item",{checked:this._exportType===o.PDF,class:"w-50 end-border",value:o.PDF},a("span",{class:"font-weight-500"},this._translations.pdf)),a("calcite-segmented-control-item",{checked:this._exportType===o.CSV,class:"w-50",value:o.CSV},a("span",{class:"font-weight-500"},this._translations.csv)))),a("div",{class:"padding-bottom-1"},this._getExportOptions()),a("div",{class:"padding-1 display-flex"},a("calcite-button",{disabled:!this._downloadActive||this._fetchingData||!this._addMap&&!this._addResults,loading:this._fetchingData,onClick:()=>{this._export()},width:"full"},a("span",{class:"font-weight-500"},this._translations.export)))):this._getNotice(this._translations.downloadNoLists,"padding-sides-1 padding-bottom-1")))}_exportTypeChange(t){this._exportType=t.target.value}_getExportOptions(){const t=this._addTitle?"display-block":"display-none",i=this._addMap?"display-flex":"display-none",e=this._titleValue?this._titleValue:this.defaultExportTitle?this.defaultExportTitle:"",s=this._addResults?"":"display-none";return a("div",{class:this._exportType===o.PDF?"display-block":"display-none"},this._getLabel(this._translations.pdfOptions,!0),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addResults,onCalciteCheckboxChange:()=>this._addResults=!this._addResults}),this._translations.addResults)),a("div",{class:`padding-top-sides-1 ${s}`},a("calcite-label",{class:"label-margin-0"},this._translations.selectPDFLabelOption)),a("div",{class:`padding-sides-1 ${s}`},a("pdf-download",{defaultNumLabelsPerPage:parseInt(this.defaultNumLabelsPerPage.toString(),10),disabled:!this._downloadActive,locale:this.locale,ref:t=>{this._downloadTools=t}})),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addTitle,onCalciteCheckboxChange:()=>this._addTitle=!this._addTitle}),this._translations.title)),a("div",{class:t},this._getLabel(this._translations.title,!0,""),a("calcite-input-text",{class:"padding-sides-1",onCalciteInputTextInput:()=>this._changeTitle(),placeholder:this._translations.titlePlaceholder,ref:t=>{this._titleElement=t},value:e})),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addMap,onCalciteCheckboxChange:()=>this._handleAddMapChange()}),this._translations.includeMap)),a("div",{class:`padding-top-sides-1 ${i}`},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._exportGraphics,onCalciteCheckboxChange:()=>this._handleExportGraphicsChange()}),this._translations.listGraphics),a("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"list-graphics-icon",scale:"s"}),a("calcite-popover",{closable:!0,label:"",referenceElement:"list-graphics-icon"},a("span",{class:"tooltip-message"},this._translations.listGraphicsTip))))}_handleAddMapChange(){this._addMap=!this._addMap,this._updateExportGraphics()}_handleExportGraphicsChange(){this._exportGraphics=!this._exportGraphics,this._updateExportGraphics()}_getManagedLayer(t){let i;return Object.keys(g.managedLayers).some((e=>{const s=this.mapView.map.layers.findIndex((t=>t.title===e));if(g.managedLayers[e]===t)return i=this.mapView.map.layers.getItemAt(s),!0})),i}_updateExportGraphics(t=!1){!t&&this._exportGraphics&&this._addMap||this._removeExportGraphics(),this._exportGraphics&&this._addMap&&this._addExportGraphics()}_removeExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");t&&t.graphics.removeAll(),i&&i.graphics.removeAll()}_addExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");this._selectionSets.forEach((e=>{if(e.download&&(t&&t.graphics.add(e.sketchGraphic),i)){const t=new this.Graphic({geometry:e.buffer,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});i.graphics.add(t)}}))}_getRefinePage(){const t=this._hasSelections();return a("calcite-panel",null,this._getLabel(this._translations.refineSelection),t?a("div",null,this._getNotice(this._translations.refineTip,"padding-sides-1"),a("refine-selection",{enabledLayerIds:this.selectionLayerIds,locale:this.locale,mapView:this.mapView,selectionSets:this._selectionSets,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})):this._getNotice(this._translations.refineTipNoSelections,"padding-sides-1"))}_getPageNavButtons(t,i,e,s,l,o){return a("div",{class:"padding-bottom-1"},a("div",{class:"display-flex padding-top-sides-1"},a("calcite-button",{disabled:i,onClick:e,width:"full"},a("span",{class:"font-weight-500"},t))),a("div",{class:"display-flex padding-top-1-2 padding-sides-1"},a("calcite-button",{appearance:"outline",disabled:l,onClick:o,width:"full"},a("span",{class:"font-weight-500"},s))))}_changeTitle(){this._titleValue=this._titleElement.value}_getNotice(t,i="padding-1",e=""){return a("calcite-notice",{class:i,icon:"lightbulb",kind:"success",open:!0},a("div",{class:e,slot:"message"},t))}_getLabel(t,i=!1,e="font-bold"){return a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:e+=i?" label-margin-0":""},t))}_getExportSelectionLists(){return this._selectionSets.reduce(((t,i)=>{const e=this._getSelectionSetIds(i),s=i.workflowType!==c.REFINE||e.length>0;return!this._downloadActive&&i.download&&s&&(this._downloadActive=!0),s&&t.push(a("div",{class:"display-flex padding-sides-1 padding-bottom-1"},a("calcite-checkbox",{checked:i.download,class:"align-center",onClick:()=>{this._toggleDownload(i.id)}}),a("calcite-list",{class:"list-border margin-start-1-2 width-full",id:"download-list",label:""},a("calcite-list-item",{disabled:!i.download,label:i.label,onClick:()=>{this._toggleDownload(i.id)}},a("div",{slot:"content"},a("div",{class:"list-label"},i.label),a("div",{class:"list-description"},i?.layerView?.layer.title),a("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",e.length.toString()))))))),t}),[])||a("div",null)}async _toggleDownload(t){let i=!1;this._selectionSets=this._selectionSets.map((e=>(e.download=e.id===t?!e.download:e.download,i=!!e.download||i,e))),this._updateExportGraphics(!0),this._downloadActive=i,this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._fetchingData=!1,await this._highlightFeatures()}async _export(){const t=this._addResults?this._getSelectionIdsAndViews(this._selectionSets,!0):{};if(this._exportType===o.PDF){let i="";if(this._addMap&&this.mapView){const t=await this.mapView.takeScreenshot({width:1500,height:2e3});i=t?.dataUrl}this._fetchingData=!0,await this._downloadTools.downloadPDF(this.mapView.map,t,this._removeDuplicates.checked,this._addTitle?this._titleElement.value:"",i),this._fetchingData=!1}this._exportType===o.CSV&&(this._fetchingData=!0,await this._downloadTools.downloadCSV(this.mapView.map,t,this._removeDuplicates.checked),this._fetchingData=!1)}_getSelectionIdsAndViews(t,i=!1){return(i?t.filter((t=>t.download)):t).reduce(((t,i)=>{if(i.workflowType===c.REFINE)Object.keys(i.refineInfos).forEach((e=>{const s=i.refineInfos[e];s.addIds&&(t=this._updateExportInfos(t,s.layerView.layer.id,i.label,s.addIds,s.layerView))}));else{const e=i?.layerView?.layer.id;t=this._updateExportInfos(t,e,i.label,i.selectedIds,i.layerView)}return t}),{})}_updateExportInfos(t,i,e,s,a){return i&&Object.keys(t).indexOf(i)>-1?(t[i].ids=[...new Set([...t[i].ids,...s])],t[i].selectionSetNames.push(e)):i&&(t[i]={ids:s,layerView:a,selectionSetNames:[e]}),t}_getAction(t,i,e,s,l=!1,o=""){return a("calcite-action",{disabled:!t,icon:i,iconFlipRtl:!0,indicator:l,onClick:s,slot:o,text:e})}_updateForSelection(t){this._numSelected=t.detail,this._saveEnabled=this._numSelected>0}async _home(){await this._clearSelection(),this._setPageType(n.LIST)}async _saveSelection(){const t=await(this._selectTools?.getSelection()),i=this._selectTools?.isUpdate;return this._selectionSets=i?this._selectionSets.map((i=>i.id===t.id?t:i)):[...this._selectionSets,t],this._home()}async _clearSelection(){await(this._selectTools?.clearSelection()),this._numSelected=0,this._activeSelection=void 0}_deleteSelection(t,i){return i.stopPropagation(),this._selectionSets=this._selectionSets.filter(((i,e)=>{if(e!==t)return i})),this._highlightFeatures()}_gotoSelection(t,i){d(t.selectedIds,t.layerView,i,this.featureHighlightEnabled,this.featureEffect)}_openSelection(t,i){i.stopPropagation(),this._activeSelection=t,this._pageType=t.workflowType===c.REFINE?n.REFINE:n.SELECT}async _highlightFeatures(){this._clearHighlight();const t=this._getSelectionIdsAndViews(this._selectionSets,this._pageType===n.EXPORT),i=Object.keys(t);if(i.length>0)for(let e=0;e<i.length;e++){const s=t[i[e]];g.highlightHandles.push(await p(s.ids,s.layerView,this.mapView))}}_checkPopups(){"boolean"!=typeof this._popupsEnabled&&(this._popupsEnabled=this.mapView?.popupEnabled)}_clearHighlight(){g&&g.highlightHandles&&g.removeHandles()}async _getTranslations(){const t=await r(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"],sketchLineSymbol:["sketchLineSymbolWatchHandler"],sketchPointSymbol:["sketchPointSymbolWatchHandler"],sketchPolygonSymbol:["sketchPolygonSymbolWatchHandler"],_pageType:["pageTypeWatchHandler"]}}};u.style=':host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.padding-top-1-2{padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-start-1-2{padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-color-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir="rtl"]{float:left}.float-left{float:left}.float-left[dir="rtl"]{float:right}.margin-top-0{margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-color-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir="rtl"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-color-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:0.125rem;color:var(--calcite-color-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-color-foreground-3:var(--calcite-color-brand);--calcite-color-foreground-2:var(--calcite-color-brand-hover);--calcite-color-text-1:var(--calcite-color-text-inverse)}.word-wrap-anywhere{word-wrap:anywhere}';export{u as public_notification}
|
6
|
+
import{r as t,c as i,g as e,a as s,h as a,H as l}from"./p-1b0588d2.js";import{b as o,c as n,a as c}from"./p-80cb7c73.js";import{l as h,g as r}from"./p-ee2cbba0.js";import{e as d,h as p}from"./p-dcd2f00b.js";import{s as g}from"./p-48942eb8.js";import{c as b,r as m}from"./p-6eab9d1f.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-e23b4193.js";import"./p-4fe489cf.js";import"./p-2bc98cb0.js";import"./p-4f236b5d.js";import"./p-570b13d9.js";import"./p-0668e30d.js";const u=class{constructor(e){t(this,e),this.searchConfigurationChange=i(this,"searchConfigurationChange",7)}get el(){return e(this)}addresseeLayerIds=[];bufferColor=[227,139,79,.8];bufferOutlineColor=[255,255,255];customLabelEnabled;defaultBufferDistance;defaultBufferUnit;defaultExportTitle="";defaultNumLabelsPerPage=6;enableLayerFeatures=!0;enableLayerFeaturesOnLoad=!1;enableSearchDistance=!0;enableSearchDistanceOnLoad=!1;enableSketchTools=!0;featureEffect;featureHighlightEnabled;locale;mapView;noResultText;initialNotice="";searchConfiguration;selectionLayerIds=[];showRefineSelection=!1;showSearchSettings=!0;sketchLineSymbol;sketchPointSymbol;sketchPolygonSymbol;_exportGraphics=!1;_addMap=!1;_addResults=!0;_addTitle=!1;_downloadActive=!0;_exportType=o.PDF;_fetchingData=!1;_isMobile;_numDuplicates=0;_pageType=n.LIST;_saveEnabled=!1;_selectionSets=[];_translations;_activeSelection;_downloadTools;_geometryEngine;Graphic;_jsonUtils;_onboardingImageUrl="";_popupsEnabled;_removeDuplicates;_searchConfiguration;_selectTools;_mediaQuery;_titleElement;_titleValue=void 0;_numSelected=0;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(t){t?.popup&&(this._popupsEnabled=t?.popupEnabled),this._initSearchConfiguration(this.searchConfiguration)}async watchSearchConfigurationHandler(t,i){const e=JSON.stringify(t);this.mapView&&(e!==JSON.stringify(i)||e&&!this._searchConfiguration)&&(this._searchConfiguration=JSON.parse(e),this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}async sketchLineSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setLineSymbol(t)}async sketchPointSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPointSymbol(t)}async sketchPolygonSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPolygonSymbol(t)}async pageTypeWatchHandler(t,i){if(this._checkPopups(),this.mapView?.popup&&(this.mapView.popupEnabled=t===n.LIST&&this._popupsEnabled),t===n.EXPORT&&(this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._updateExportGraphics(),this._fetchingData=!1),this._clearHighlight(),i!==n.SELECT&&i!==n.REFINE||await this._clearSelection(),i===n.EXPORT&&this._removeExportGraphics(),t!==n.SELECT)return this._highlightFeatures()}searchConfigurationChange;selectionSetsChanged(t){this._selectionSets=[...t.detail]}connectedCallback(){this._mediaQuery=window.matchMedia("(max-width: 600px)"),this._mediaQuery.addEventListener("change",(t=>this._setIsMobile(t)))}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initSymbols(),this._onboardingImageUrl=s("assets/data/images/onboarding.png")}render(){return a(l,{key:"61ed8da1de1c6780188fb7bd4f69c82036ddf705"},a("calcite-shell",{key:"9eb929b7d27d103a207be34681623ca2e0097ef1"},a("calcite-action-bar",{key:"3c7ad5516fdca78819ebdbdc7c41642c816239ec",class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:this._isMobile?"footer":"header"},this._getActionGroup("list-check",n.LIST,this._translations.myLists),this.showRefineSelection?this._getActionGroup("test-data",n.REFINE,this._translations.refineSelection):null,this._getActionGroup("export",n.EXPORT,this._translations.export)),this._getPage(this._pageType)))}async componentDidLoad(){this._initSearchConfiguration(this.searchConfiguration)}disconnectedCallback(){this._mediaQuery.removeEventListener("change",(t=>this._setIsMobile(t)))}async _initModules(){const[t,i,e]=await h(["esri/geometry/geometryEngine","esri/symbols/support/jsonUtils","esri/Graphic"]);this._geometryEngine=t,this._jsonUtils=i,this.Graphic=e}_initSearchConfiguration(t){this.searchConfiguration&&!this._searchConfiguration&&this.mapView&&(this._searchConfiguration=t,this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}_initSymbols(){this._setLineSymbol(this.sketchLineSymbol),this._setPointSymbol(this.sketchPointSymbol),this._setPolygonSymbol(this.sketchPolygonSymbol)}_setLineSymbol(t){this.sketchLineSymbol="simple-line"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSLS",color:[130,130,130,255],width:2,style:"esriSLSSolid"})}_setPointSymbol(t){this.sketchPointSymbol="simple-marker"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSMS",color:[255,255,255,255],angle:0,xoffset:0,yoffset:0,size:6,style:"esriSMSCircle",outline:{type:"esriSLS",color:[50,50,50,255],width:1,style:"esriSLSSolid"}})}_setPolygonSymbol(t){this.sketchPolygonSymbol="simple-fill"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSFS",color:[150,150,150,51],outline:{type:"esriSLS",color:[50,50,50,255],width:2,style:"esriSLSSolid"},style:"esriSFSSolid"})}_setIsMobile(t){this._isMobile=t.matches}_getActionGroup(t,i,e){return a("calcite-action-group",{class:this.showRefineSelection?"w-1-3":"w-1-2",layout:"horizontal"},a("div",{class:"background-override"},a("calcite-action",{active:this._pageType===i,alignment:"center",class:"width-full height-full",icon:t,id:t,onClick:()=>{this._setPageType(i)},text:""})),a("calcite-tooltip",{label:"",placement:"bottom","reference-element":t},a("span",null,e)))}_setPageType(t){this._pageType=t}_getPage(t){let i;switch(t){case n.LIST:i=this._getListPage();break;case n.SELECT:i=this._getSelectPage();break;case n.EXPORT:i=this._getExportPage();break;case n.REFINE:i=this._getRefinePage()}return i}_getListPage(){const t=this._hasSelections(),i=t?this._translations.listHasSetsTip:""!==this.initialNotice?this.initialNotice:this._translations.selectLayerAndAdd;return a("calcite-panel",null,this._getLabel(this._translations.myLists),this._getNotice(i,"padding-sides-1 padding-bottom-1","word-wrap-anywhere"),t?this._getSelectionSetList():this._getOnboardingImage(),a("div",{class:"display-flex padding-1"},a("calcite-button",{onClick:()=>{this._setPageType(n.SELECT)},width:"full"},a("span",{class:"font-weight-500"},this._translations.add))))}_getOnboardingImage(){return a("div",{class:"display-flex padding-sides-1"},a("img",{class:"img-container",role:"presentation",src:this._onboardingImageUrl}))}_getSelectionSetList(){return a("div",{class:"padding-top-1-2 padding-bottom-1-2"},a("calcite-list",{class:"list-border margin-sides-1",label:""},this._selectionSets.reduce(((t,i,e)=>{const s=this._getSelectionSetIds(i);let l=!0;return i.workflowType===c.REFINE&&(l=Object.keys(i.refineInfos).reduce(((t,e)=>{const s=i.refineInfos[e];return t+(s.addIds.length+s.removeIds.length)}),0)>0),l&&t.push(a("calcite-list-item",{label:i.label,onClick:()=>this._gotoSelection(i,this.mapView)},a("div",{slot:"content"},a("div",{class:"list-label"},i.label),a("div",{class:"list-description"},i?.layerView?.layer.title),a("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",s.length.toString()))),this._getAction(!0,"pencil","",(t=>this._openSelection(i,t)),!1,"actions-end"),this._getAction(!0,"x","",(t=>this._deleteSelection(e,t)),!1,"actions-end"))),t}),[])))}_getSelectionSetIds(t){return t.workflowType!==c.REFINE?t.selectedIds:Object.keys(t.refineInfos).reduce(((i,e)=>[...i,...t.refineInfos[e].addIds]),[])}_hasSelections(t=!1){let i=[];const e=this._selectionSets.some((t=>{if(t.workflowType===c.REFINE)return i=this._getSelectionSetIds(t),!0}));return t&&e?i.length>0||this._selectionSets.length>1:this._selectionSets.length>0}async _getNumDuplicates(){const t=this._getExportInfos(),i=await b(this.mapView.map,t),e=m(i);return i.length-e.length}_getExportInfos(){return this._selectionSets.reduce(((t,i)=>(i.download&&(i.workflowType!==c.REFINE?this._updateIds(i.layerView.layer.id,i.layerView,i.selectedIds,t):Object.keys(i.refineInfos).forEach((e=>{const s=i.refineInfos[e];s.addIds.length>0&&this._updateIds(e,s.layerView,s.addIds,t)}))),t)),{})}_updateIds(t,i,e,s){return s[t]?s[t].ids=s[t].ids.concat(e):s[t]={layerView:i,ids:e},s}_getSelectPage(){const t=this._translations.selectSearchTip;return a("calcite-panel",null,this._getLabel(this._translations.stepTwoFull,!0),this._getNotice(t,"padding-1","word-wrap-anywhere"),a("div",null,a("map-select-tools",{bufferColor:this.bufferColor,bufferOutlineColor:this.bufferOutlineColor,class:"font-bold",customLabelEnabled:this.customLabelEnabled,defaultBufferDistance:this.defaultBufferDistance,defaultBufferUnit:this.defaultBufferUnit,enableLayerFeatures:this.enableLayerFeatures,enableLayerFeaturesOnLoad:this.enableLayerFeaturesOnLoad,enableSearchDistance:this.enableSearchDistance,enableSearchDistanceOnLoad:this.enableSearchDistanceOnLoad,enableSketchTools:this.enableSketchTools,enabledLayerIds:this.addresseeLayerIds,isUpdate:!!this._activeSelection,locale:this.locale,mapView:this.mapView,noResultText:this.noResultText,onSelectionSetChange:t=>this._updateForSelection(t),ref:t=>{this._selectTools=t},searchConfiguration:this._searchConfiguration,searchDistanceEnabled:this.enableSearchDistanceOnLoad,selectionLayerIds:this.selectionLayerIds,selectionSet:this._activeSelection,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol,useLayerFeaturesEnabled:this.enableLayerFeaturesOnLoad})),this._getPageNavButtons(this._translations.done,0===this._numSelected,(()=>{this._saveSelection()}),this._translations.cancel,!1,(()=>{this._home()})))}_getExportPage(){const t=this._hasSelections(this.showRefineSelection),i=this._numDuplicates>0?"display-block":"display-none";return a("calcite-panel",null,a("div",null,this._getLabel(this._translations.export,!1),t?a("div",null,this._getNotice(this._translations.exportTip,"padding-sides-1"),this._getLabel(this._translations.exportListsLabel),this._getExportSelectionLists(),a("div",{class:"padding-sides-1 "+i},a("div",{class:"display-flex"},a("calcite-label",{layout:"inline"},a("calcite-checkbox",{ref:t=>{this._removeDuplicates=t}}),a("div",{class:"display-flex"},this._translations.removeDuplicate,a("div",{class:"info-message padding-start-1-2"},a("calcite-input-message",{class:"info-blue margin-top-0",scale:"m"},` ${this._translations.numDuplicates.replace("{{n}}",this._numDuplicates.toString())}`)))),a("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"remove-duplicates-icon",scale:"s"})),a("calcite-popover",{closable:!0,label:"",referenceElement:"remove-duplicates-icon"},a("span",{class:"tooltip-message"},this._translations.duplicatesTip))),a("div",{class:"border-bottom"}),a("div",{class:"padding-top-sides-1"},a("calcite-segmented-control",{class:"w-100",onCalciteSegmentedControlChange:t=>this._exportTypeChange(t),width:"full"},a("calcite-segmented-control-item",{checked:this._exportType===o.PDF,class:"w-50 end-border",value:o.PDF},a("span",{class:"font-weight-500"},this._translations.pdf)),a("calcite-segmented-control-item",{checked:this._exportType===o.CSV,class:"w-50",value:o.CSV},a("span",{class:"font-weight-500"},this._translations.csv)))),a("div",{class:"padding-bottom-1"},this._getExportOptions()),a("div",{class:"padding-1 display-flex"},a("calcite-button",{disabled:!this._downloadActive||this._fetchingData||!this._addMap&&!this._addResults,loading:this._fetchingData,onClick:()=>{this._export()},width:"full"},a("span",{class:"font-weight-500"},this._translations.export)))):this._getNotice(this._translations.downloadNoLists,"padding-sides-1 padding-bottom-1")))}_exportTypeChange(t){this._exportType=t.target.value}_getExportOptions(){const t=this._addTitle?"display-block":"display-none",i=this._addMap?"display-flex":"display-none",e=this._titleValue?this._titleValue:this.defaultExportTitle?this.defaultExportTitle:"",s=this._addResults?"":"display-none";return a("div",{class:this._exportType===o.PDF?"display-block":"display-none"},this._getLabel(this._translations.pdfOptions,!0),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addResults,onCalciteCheckboxChange:()=>this._addResults=!this._addResults}),this._translations.addResults)),a("div",{class:`padding-top-sides-1 ${s}`},a("calcite-label",{class:"label-margin-0"},this._translations.selectPDFLabelOption)),a("div",{class:`padding-sides-1 ${s}`},a("pdf-download",{defaultNumLabelsPerPage:parseInt(this.defaultNumLabelsPerPage.toString(),10),disabled:!this._downloadActive,locale:this.locale,ref:t=>{this._downloadTools=t}})),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addTitle,onCalciteCheckboxChange:()=>this._addTitle=!this._addTitle}),this._translations.title)),a("div",{class:t},this._getLabel(this._translations.title,!0,""),a("calcite-input-text",{class:"padding-sides-1",onCalciteInputTextInput:()=>this._changeTitle(),placeholder:this._translations.titlePlaceholder,ref:t=>{this._titleElement=t},value:e})),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addMap,onCalciteCheckboxChange:()=>this._handleAddMapChange()}),this._translations.includeMap)),a("div",{class:`padding-top-sides-1 ${i}`},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._exportGraphics,onCalciteCheckboxChange:()=>this._handleExportGraphicsChange()}),this._translations.listGraphics),a("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"list-graphics-icon",scale:"s"}),a("calcite-popover",{closable:!0,label:"",referenceElement:"list-graphics-icon"},a("span",{class:"tooltip-message"},this._translations.listGraphicsTip))))}_handleAddMapChange(){this._addMap=!this._addMap,this._updateExportGraphics()}_handleExportGraphicsChange(){this._exportGraphics=!this._exportGraphics,this._updateExportGraphics()}_getManagedLayer(t){let i;return Object.keys(g.managedLayers).some((e=>{const s=this.mapView.map.layers.findIndex((t=>t.title===e));if(g.managedLayers[e]===t)return i=this.mapView.map.layers.getItemAt(s),!0})),i}_updateExportGraphics(t=!1){!t&&this._exportGraphics&&this._addMap||this._removeExportGraphics(),this._exportGraphics&&this._addMap&&this._addExportGraphics()}_removeExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");t&&t.graphics.removeAll(),i&&i.graphics.removeAll()}_addExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");this._selectionSets.forEach((e=>{if(e.download&&(t&&t.graphics.add(e.sketchGraphic),i)){const t=new this.Graphic({geometry:e.buffer,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});i.graphics.add(t)}}))}_getRefinePage(){const t=this._hasSelections();return a("calcite-panel",null,this._getLabel(this._translations.refineSelection),t?a("div",null,this._getNotice(this._translations.refineTip,"padding-sides-1"),a("refine-selection",{enabledLayerIds:this.selectionLayerIds,locale:this.locale,mapView:this.mapView,selectionSets:this._selectionSets,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})):this._getNotice(this._translations.refineTipNoSelections,"padding-sides-1"))}_getPageNavButtons(t,i,e,s,l,o){return a("div",{class:"padding-bottom-1"},a("div",{class:"display-flex padding-top-sides-1"},a("calcite-button",{disabled:i,onClick:e,width:"full"},a("span",{class:"font-weight-500"},t))),a("div",{class:"display-flex padding-top-1-2 padding-sides-1"},a("calcite-button",{appearance:"outline",disabled:l,onClick:o,width:"full"},a("span",{class:"font-weight-500"},s))))}_changeTitle(){this._titleValue=this._titleElement.value}_getNotice(t,i="padding-1",e=""){return a("calcite-notice",{class:i,icon:"lightbulb",kind:"success",open:!0},a("div",{class:e,slot:"message"},t))}_getLabel(t,i=!1,e="font-bold"){return a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:e+=i?" label-margin-0":""},t))}_getExportSelectionLists(){return this._selectionSets.reduce(((t,i)=>{const e=this._getSelectionSetIds(i),s=i.workflowType!==c.REFINE||e.length>0;return!this._downloadActive&&i.download&&s&&(this._downloadActive=!0),s&&t.push(a("div",{class:"display-flex padding-sides-1 padding-bottom-1"},a("calcite-checkbox",{checked:i.download,class:"align-center",onClick:()=>{this._toggleDownload(i.id)}}),a("calcite-list",{class:"list-border margin-start-1-2 width-full",id:"download-list",label:""},a("calcite-list-item",{disabled:!i.download,label:i.label,onClick:()=>{this._toggleDownload(i.id)}},a("div",{slot:"content"},a("div",{class:"list-label"},i.label),a("div",{class:"list-description"},i?.layerView?.layer.title),a("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",e.length.toString()))))))),t}),[])||a("div",null)}async _toggleDownload(t){let i=!1;this._selectionSets=this._selectionSets.map((e=>(e.download=e.id===t?!e.download:e.download,i=!!e.download||i,e))),this._updateExportGraphics(!0),this._downloadActive=i,this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._fetchingData=!1,await this._highlightFeatures()}async _export(){const t=this._addResults?this._getSelectionIdsAndViews(this._selectionSets,!0):{};if(this._exportType===o.PDF){let i="";if(this._addMap&&this.mapView){const t=await this.mapView.takeScreenshot({width:1500,height:2e3});i=t?.dataUrl}this._fetchingData=!0,await this._downloadTools.downloadPDF(this.mapView.map,t,this._removeDuplicates.checked,this._addTitle?this._titleElement.value:"",i),this._fetchingData=!1}this._exportType===o.CSV&&(this._fetchingData=!0,await this._downloadTools.downloadCSV(this.mapView.map,t,this._removeDuplicates.checked),this._fetchingData=!1)}_getSelectionIdsAndViews(t,i=!1){return(i?t.filter((t=>t.download)):t).reduce(((t,i)=>{if(i.workflowType===c.REFINE)Object.keys(i.refineInfos).forEach((e=>{const s=i.refineInfos[e];s.addIds&&(t=this._updateExportInfos(t,s.layerView.layer.id,i.label,s.addIds,s.layerView))}));else{const e=i?.layerView?.layer.id;t=this._updateExportInfos(t,e,i.label,i.selectedIds,i.layerView)}return t}),{})}_updateExportInfos(t,i,e,s,a){return i&&Object.keys(t).indexOf(i)>-1?(t[i].ids=[...new Set([...t[i].ids,...s])],t[i].selectionSetNames.push(e)):i&&(t[i]={ids:s,layerView:a,selectionSetNames:[e]}),t}_getAction(t,i,e,s,l=!1,o=""){return a("calcite-action",{disabled:!t,icon:i,iconFlipRtl:!0,indicator:l,onClick:s,slot:o,text:e})}_updateForSelection(t){this._numSelected=t.detail,this._saveEnabled=this._numSelected>0}async _home(){await this._clearSelection(),this._setPageType(n.LIST)}async _saveSelection(){const t=await(this._selectTools?.getSelection()),i=this._selectTools?.isUpdate;return this._selectionSets=i?this._selectionSets.map((i=>i.id===t.id?t:i)):[...this._selectionSets,t],this._home()}async _clearSelection(){await(this._selectTools?.clearSelection()),this._numSelected=0,this._activeSelection=void 0}_deleteSelection(t,i){return i.stopPropagation(),this._selectionSets=this._selectionSets.filter(((i,e)=>{if(e!==t)return i})),this._highlightFeatures()}_gotoSelection(t,i){d(t.selectedIds,t.layerView,i,this.featureHighlightEnabled,this.featureEffect)}_openSelection(t,i){i.stopPropagation(),this._activeSelection=t,this._pageType=t.workflowType===c.REFINE?n.REFINE:n.SELECT}async _highlightFeatures(){this._clearHighlight();const t=this._getSelectionIdsAndViews(this._selectionSets,this._pageType===n.EXPORT),i=Object.keys(t);if(i.length>0)for(let e=0;e<i.length;e++){const s=t[i[e]];g.highlightHandles.push(await p(s.ids,s.layerView,this.mapView))}}_checkPopups(){"boolean"!=typeof this._popupsEnabled&&(this._popupsEnabled=this.mapView?.popupEnabled)}_clearHighlight(){g&&g.highlightHandles&&g.removeHandles()}async _getTranslations(){const t=await r(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"],sketchLineSymbol:["sketchLineSymbolWatchHandler"],sketchPointSymbol:["sketchPointSymbolWatchHandler"],sketchPolygonSymbol:["sketchPolygonSymbolWatchHandler"],_pageType:["pageTypeWatchHandler"]}}};u.style=':host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.padding-top-1-2{padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-start-1-2{padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-color-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir="rtl"]{float:left}.float-left{float:left}.float-left[dir="rtl"]{float:right}.margin-top-0{margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-color-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir="rtl"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-color-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:0.125rem;color:var(--calcite-color-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-color-foreground-3:var(--calcite-color-brand);--calcite-color-foreground-2:var(--calcite-color-brand-hover);--calcite-color-text-1:var(--calcite-color-text-inverse)}.word-wrap-anywhere{word-wrap:anywhere}';export{u as public_notification}
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under the Apache License, Version 2.0
|
4
4
|
* http://www.apache.org/licenses/LICENSE-2.0
|
5
5
|
*/
|
6
|
-
import{r as t,c as i,g as e,h as s,F as a,H as n}from"./p-1b0588d2.js";import{l as o,g as h}from"./p-ee2cbba0.js";import{a as c,g as d}from"./p-952da957.js";import{P as l}from"./p-3c3aecdd.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-80cb7c73.js";import"./p-4f514c6d.js";import"./p-4fe489cf.js";import"./p-2bc98cb0.js";import"./p-4f236b5d.js";import"./p-570b13d9.js";import"./p-0668e30d.js";const r=class{constructor(e){t(this,e),this.success=i(this,"success",7),this.fail=i(this,"fail",7),this.drawComplete=i(this,"drawComplete",7),this.editingAttachment=i(this,"editingAttachment",7),this.progressStatus=i(this,"progressStatus",7),this.modeChanged=i(this,"modeChanged",7)}get el(){return e(this)}mapView;selectedLayerId;customizeSubmit=!1;locale;searchConfiguration;isMobile;floorLevel;formElements;enableSearch=!1;showGuidingMsg=!0;showGuidingMsgWhileDrawing=!0;_editorLoading=!1;_currentPage="templatePicker";_translations;Editor;ExpressionInfo;FieldElement;FormTemplate;_editor;FeatureLayer;MapView;_updatedMapView;Search;_search;reactiveUtils;_addingAttachment;_container;_mapViewContainer;_isSubmitBtnClicked=!1;_selectedLayer;_searchDiv;_calciteNotice;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(){await this.mapView.when((async()=>{await this.init()}))}async isMobileHandler(){this.modeChanged.emit()}async _editorLoadingWatchHandler(t){if(t){if(this._container?.classList.add("display-none"),this._selectedLayer?.isTable){const t={layer:this._selectedLayer,template:this._selectedLayer.templates[0]};await this._editor.startCreateFeaturesWorkflowAtFeatureCreation(t),await this.hideEditorsElements()}else await this.startCreate();this._container?.classList.remove("display-none"),this._editorLoading=!1}}async submit(){this._editor&&(this._isSubmitBtnClicked=!0,this._editor.viewModel.featureFormViewModel.submit())}async refresh(t){this._editor&&this._setFloorLevel(t)}success;fail;drawComplete;editingAttachment;progressStatus;modeChanged;async componentWillLoad(){await this._getTranslations(),await this.initModules()}async componentDidLoad(){await this.init()}componentDidRender(){this.isMobile&&(this._mapViewContainer.style.top=`${this._calciteNotice.offsetHeight+this._searchDiv.offsetHeight+80}px`)}disconnectedCallback(){this._editor&&this._editor.destroy()}render(){const t="drawing"===this._currentPage?"":"display-none",i=this._editorLoading?"":"display-none",e=this._editorLoading?"display-none":"",n=this.isMobile?"show-map":"display-none";let o=this._translations.chooseCategoryMsg;return"drawing"===this._currentPage?o=this._translations.provideLocationMsg:"featureForm"===this._currentPage&&(o=this._translations.provideDetailsMsg),s(a,{key:"829e66e8b4818b2566d514ae85eddc50968075f8"},this.showGuidingMsg&&(this.showGuidingMsgWhileDrawing||"drawing"!==this._currentPage)&&s("calcite-notice",{key:"0347181f26f5d87d38f8be185e0b43ffbbc34208",class:"notice-msg",icon:"lightbulb",kind:"success",open:!0,ref:t=>this._calciteNotice=t},s("div",{key:"e5dd776ead66c26184a5aad747e82d97612d961a",slot:"message"},o)),s("calcite-loader",{key:"7989ecdbb4b635d38a1d63bf879d7e95b3f9a9be",class:i,label:"",scale:"s"}),s("div",{key:"6f6184af21e8a0595e5c51c132e657e7660caa01",class:e,id:"feature-form"}),this.enableSearch&&s("div",{key:"2068ca424a9355a28c9957104a4f6973b11c1b8f",class:`search-widget ${t} ${e}`,id:"search-widget-ref",ref:t=>this._searchDiv=t}),s("div",{key:"a899d52788e6cfa67fe77abbbe0eeb6383b40d0a",class:`${n}`,ref:t=>{this._mapViewContainer=t}}))}async init(){this.mapView&&this.selectedLayerId&&(this._updatedMapView=this.mapView,await(this.isMobile?this.createMobileMapView():this._loadWidgets()))}async initModules(){const[t,i,e,s,a,n,h]=await o(["esri/widgets/Editor","esri/core/reactiveUtils","esri/widgets/Search","esri/form/ExpressionInfo","esri/form/elements/FieldElement","esri/form/FormTemplate","esri/views/MapView"]);this.Editor=t,this.reactiveUtils=i,this.Search=e,this.ExpressionInfo=s,this.FieldElement=a,this.FormTemplate=n,this.MapView=h}async createMobileMapView(){this._mapViewContainer.classList.add("hide-map"),await new this.MapView({map:this.mapView.map,container:this._mapViewContainer,zoom:this.mapView.zoom}).when((t=>{this._updatedMapView=t,this._loadWidgets()}),(t=>{console.log(t)}))}async _loadWidgets(){await this.createEditorWidget(),this.enableSearch&&await this.createSearchWidget()}async createEditorWidget(){this._editor&&this._editor.destroy();const t=[];this._container=document.createElement("div"),this._container?.classList.add("display-none");const i=await c(this._updatedMapView);this._selectedLayer=await d(this.mapView,this.selectedLayerId),this._selectedLayer?.isTable||i.forEach((async i=>{t.push({layer:i,enabled:"feature"===i?.type&&i?.id===this.selectedLayerId,addEnabled:!0,updateEnabled:!1,deleteEnabled:!1})})),this._editor=new this.Editor({view:this._updatedMapView,layerInfos:t,visibleElements:{snappingControls:!1,createFeaturesSection:!0,editFeaturesSection:!1},container:this._container}),this._mapViewContainer?this.el.insertBefore(this._container,this._mapViewContainer):this.el.appendChild(this._container);const e=this.reactiveUtils.watch((()=>this._editor.viewModel.state),(t=>{"adding-attachment"===t||"editing-attachment"===t?(this._addingAttachment=!0,this.editingAttachment.emit(!0)):this._addingAttachment&&(this.editingAttachment.emit(!1),this._addingAttachment=!1)}));this._editor.viewModel.addHandles(e);const s=this.reactiveUtils.watch((()=>this._editor.viewModel.featureTemplatesViewModel.state),(t=>{"ready"===t&&"create-features"!==this._editor.viewModel?.activeWorkflow?.type&&(this.progressStatus.emit(50),this._editorLoading=!0)}));this._editor.viewModel.addHandles(s);const a=this.reactiveUtils.watch((()=>this._editor.viewModel.featureFormViewModel?.state),(t=>{"ready"===t&&(this._mapViewContainer?.classList?.replace("show-map","hide-map"),this._editor.viewModel.featureFormViewModel.on("submit",this.submitted.bind(this)),setTimeout((()=>{this._setFloorLevel(this.floorLevel)}),50),this._currentPage="featureForm",this.progressStatus.emit(100),this.drawComplete.emit())}));this._editor.viewModel.addHandles(a);const n=this.reactiveUtils.watch((()=>this._editor.viewModel.state),(t=>{"creating-features"===t&&"disabled"===this._editor.viewModel.featureFormViewModel.state&&(this._mapViewContainer?.classList?.replace("hide-map","show-map"),this._selectedLayer&&!this._selectedLayer.isTable&&(this._currentPage="drawing"))}));this._editor.viewModel.addHandles(n)}async startCreate(){return await this.hideEditorsElements(),new Promise(((t,i)=>{if(this._editor.viewModel.featureTemplatesViewModel.items?.length){const e=this._editor.viewModel.featureTemplatesViewModel.items[0].items;this._editor.viewModel.featureTemplatesViewModel.on("select",(()=>{this.progressStatus.emit(75),setTimeout((()=>{this.hideEditorsElements().then((()=>{t({})}),(t=>i(t)))}),700)})),1===e.length&&this._editor.viewModel.featureTemplatesViewModel.select(e[0]);const s=e.length>1;this.hideEditorsElements().then((()=>{s&&t({})}),(t=>s&&i(t)))}}))}async createSearchWidget(){let t={view:this._updatedMapView};this.searchConfiguration&&(t={...this._getSearchConfig(this.searchConfiguration,this._updatedMapView)}),this._search=new this.Search(t),this._search.container="search-widget-ref",this._search.popupEnabled=!1,this._search.resultGraphicEnabled=!1;let i=null;this._search.on("search-complete",(t=>{this._updatedMapView.goTo(t.results[0].results[0].extent),"point"===this._selectedLayer.geometryType&&(i=t.results[0].results[0]?.feature.geometry)}));const e=this.reactiveUtils.watch((()=>this._search.viewModel.state),(t=>{"ready"===t&&setTimeout((()=>{this._editor.viewModel.sketchViewModel.createGraphic&&i&&(this._editor.viewModel.sketchViewModel.createGraphic.set("geometry",i),this._editor.viewModel.sketchViewModel.complete(),this.hideEditorsElements())}),100)}));this._search.viewModel.addHandles(e)}_getSearchConfig(t,i){const e=t.sources;return e?.length>0?(t.includeDefaultSources=!1,e.forEach((t=>{if(t.hasOwnProperty("layer")){const e=t,s=e.layer?.id,a=s?i.map.findLayerById(s):null,n=e?.layer?.url;a?e.layer=a:n&&(e.layer=new this.FeatureLayer(n))}})),e?.forEach((t=>{if(t.hasOwnProperty("locator")){const i=t;"ArcGIS World Geocoding Service"===i?.name&&(i.outFields=i.outFields||["Addr_type","Match_addr","StAddr","City"],i.singleLineFieldName="SingleLine"),i.url=i.url,delete i.url}}))):t={...t,includeDefaultSources:!0},t}async _setFloorLevel(t){if(!t)return;const i=this._selectedLayer;if(i?.floorInfo?.floorField){const e=i.fields.find((t=>t.name===i.floorInfo.floorField));if(e&&!i?.formTemplate)this._editor.viewModel.featureFormViewModel.setValue(e.name,t),e.editable=!1;else if(i.formTemplate&&this.formElements){const e=new this.ExpressionInfo({expression:`"${t}"`,name:"floor-info-test",title:"Floor Info",returnType:"string"}),s=new this.FieldElement({label:i.floorInfo.floorField,editableExpression:"false",fieldName:i.floorInfo.floorField,input:{type:"text-box",maxLength:50,minLength:0},valueExpression:e.name});this._updatedMapView.map.editableLayers.forEach((t=>{const i=this.formElements.orgExpressionInfos,a=[...this.formElements.orgElements];a.push(s);const n=new this.FormTemplate({title:t.formTemplate.title,description:t.formTemplate.description,elements:a,expressionInfos:[e].concat(i)});t.formTemplate=n}))}}}async hideEditorsElements(){this.customizeSubmit&&(await this.timeout(700),this.el.querySelector(".esri-editor")?.querySelectorAll("calcite-flow-item")?.forEach((t=>{const i=t.shadowRoot?.querySelector("calcite-panel")?.shadowRoot?.querySelector("article");i?.querySelector("header")?.setAttribute("style","display: none"),i?.querySelector("footer")?.setAttribute("style","display: none")})))}async submitted(t){if(t.invalid.length)this._isSubmitBtnClicked=!1;else if(this._isSubmitBtnClicked){this._isSubmitBtnClicked=!1;try{await this._editor.activeWorkflow.commit(),this._editor.viewModel.failures?.length&&this._editor.viewModel.failures.some((t=>{if(t.error)throw t.error}))}catch(t){return void this.fail.emit(t)}this.success.emit()}}timeout(t){return new Promise((i=>setTimeout(i,t)))}async _getTranslations(){const t=await h(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],isMobile:["isMobileHandler"],_editorLoading:["_editorLoadingWatchHandler"]}}};r.style=":host{display:block}.esri-editor__panel-toolbar{display:none !important}.esri-editor__panel-content{padding-block:0px !important}.esri-editor .esri-item-list__group__header{display:none !important}.esri-editor__panel-content__section .esri-widget__heading{display:none !important}.esri-editor .esri-item-list__filter-container--sticky{padding-block:0px !important;padding-inline:10px !important}.search-widget{width:92% !important;margin:5px 14px 20px 14px}.display-none{display:none !important}.hide-map{height:1%;visibility:hidden}.show-map{padding:10px !important;position:absolute !important;bottom:0;height:auto !important;width:calc(100% - 22px)}.notice-msg{padding:10px;width:calc(100% - 20px)}.esri-editor__panel-content{padding-block:10px !important}@media only screen and (max-width: 600px){.esri-editor__panel-content{padding-block:0 !important;min-height:0 !important}}";const p=class{constructor(e){t(this,e),this.editsComplete=i(this,"editsComplete",7)}get el(){return e(this)}deleteDialog;buttonType="button";disabled=!1;icon;ids=[];layer;locale;_confirmDelete=!1;_deleteEndabled=!1;_supportsDelete;_translations;async idsWatchHandler(){this._setDeleteEnabled()}async layerWatchHandler(){this._setDeleteEnabled()}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}editsComplete;async componentWillLoad(){await this._getTranslations()}render(){return s(n,{key:"73d07f24703df76fdacc1b3a1ec80cfdd7bbee30"},"button"===this.buttonType?s("calcite-button",{appearance:"outline",disabled:!this._deleteEndabled,id:"solutions-delete",kind:"danger",onClick:()=>this._delete(),width:"full"},this._translations.deleteCount.replace("{{n}}",this.ids.length.toString())):s("calcite-action",{appearance:"solid",disabled:!this._deleteEndabled,id:this.icon,onClick:()=>this._delete(),scale:"s",text:this._translations.delete},s("calcite-button",{appearance:"transparent",iconStart:this.icon,kind:"danger"},this._translations.delete)),this._deleteMessage(),s("calcite-tooltip",{key:"803898895029bd098264b9144ff5ccee102d4ae8",placement:"bottom","reference-element":"button"===this.buttonType?"solutions-delete":this.icon},s("span",{key:"a920ffea1849667cd58812a2c1813d2e066f0064"},this._translations.delete)))}async componentDidLoad(){this._setDeleteEnabled()}_setDeleteEnabled(){this._supportsDelete=this.layer?.editingEnabled&&this.layer?.capabilities?.operations?.supportsDelete,this._deleteEndabled=!this.disabled||this._supportsDelete&&this.ids.length>0}_delete(){this._confirmDelete=!0}_deleteMessage(){return this.deleteDialog?this.deleteDialog:s("delete-dialog",{id:"solution-delete-dialog",ids:this.ids,layer:this.layer,locale:this.locale,onDeleteDialogClose:()=>this._confirmDelete=!1,open:this._confirmDelete})}async _getTranslations(){const t=await h(this.el);this._translations=t[0]}static get watchers(){return{ids:["idsWatchHandler"],layer:["layerWatchHandler"],locale:["localeWatchHandler"]}}};p.style=":host{display:block}.delete-modal{position:fixed}";const f=class{constructor(e){t(this,e),this.closeEdit=i(this,"closeEdit",7),this.editorInitialized=i(this,"editorInitialized",7),this.editsComplete=i(this,"editsComplete",7),this.refreshGraphics=i(this,"refreshGraphics",7)}get el(){return e(this)}enableEditGeometry=!1;graphics;locale;mapView;open=!1;graphicIndex=0;_editorLoading=!1;_translations;_activeWorkflowHandle;_addRelatedRecordHandle;_attachmentHandle;_editHandle;_layerEditHandle;Editor;_editor;_layer;_editContainer;_editControlElements;_editingDisabled;_shouldClose=!1;reactiveUtils;async graphicsWatchHandler(){0===this.graphics.length&&this.open&&await this._closeEdit(!0)}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async openWatchHandler(t){t&&this.graphics?.length>0&&this.graphicIndex>-1&&(this._editorLoading=!0,await this._initEditorWidget(),this.graphicIndex>-1&&this.graphics.length>0&&this.open&&!this._shouldClose&&await this._startUpdate(),this._editorLoading=!1),t||await this._closeEdit(!0)}closeEdit;editorInitialized;editsComplete;refreshGraphics;async featureSelectionChange(){this.open&&await this._closeEdit(!1)}async componentWillLoad(){await this._initModules(),await this._getTranslations()}async componentWillRender(){this.graphics?.length>0&&this.graphics[0]?.layer&&(this._layer=this.graphics[0].layer,this._layerEditHandle&&this._layerEditHandle.remove(),this._layerEditHandle=("subtype-sublayer"===this._layer.type?this._layer.parent:this._layer).on("edits",(()=>{this.editsComplete.emit()})))}render(){const t=this._editorLoading?"display-none":"position-absolute",i=this._editorLoading?"":"display-none";return s(n,{key:"e181f65e7218ce0350de5dcab9049ff63a5d39c1"},s("div",{key:"44bf2b5cf31c5acc7f65fb7ec50fd84e77c95470",class:"position-absolute"},this.graphics?.length>0&&this.graphics[0]&&this.graphics[0].layer.editingEnabled?void 0:s("calcite-notice",{kind:"warning",open:!0,slot:"content-top",width:"full"},s("div",{slot:"message"},this._translations.enableEditing)),s("div",{key:"97119476aa2a992ccadc1d61119f2640d195e7b1",class:"position-absolute"},s("div",{key:"f429decea684a6a22db89de89da3755bdbff19cc",class:t,id:"feature-form",ref:t=>this._editContainer=t}),s("calcite-loader",{key:"3ea908ef8dadd2f1c85bfac1b344f8b4441b8706",class:i,label:"",scale:"s"}))))}async _initModules(){const[t,i]=await o(["esri/widgets/Editor","esri/core/reactiveUtils"]);this.Editor=t,this.reactiveUtils=i}async _initEditorWidget(){if(this.mapView&&this.graphics&&this.graphics.length>0&&this.graphics[0]){this._editor&&this._editor.destroy();const t=document.createElement("div"),i=(await c(this.mapView)).map((t=>({layer:t,geometryUpdatesEnabled:this.enableEditGeometry})));this._editor=new this.Editor({view:this.mapView,layerInfos:i,visibleElements:{snappingControls:!1},container:t}),this._attachmentHandle&&this._activeWorkflowHandle&&(this._attachmentHandle.remove(),this._activeWorkflowHandle.remove()),this._attachmentHandle=this.reactiveUtils.when((()=>"adding-attachment"===this._editor.viewModel.state||"editing-attachment"===this._editor.viewModel.state||"creating-features"===this._editor.viewModel.state),(()=>{this._shouldClose=!1})),this._activeWorkflowHandle=this.reactiveUtils.watch((()=>this._editor.viewModel.activeWorkflow?.activeWorkflow),(t=>{"update-table-record"!==t?.type&&"create-features"!==t?.type||(this._shouldClose=!1),(t?.type||t?.hasPendingEdits||this._editor.activeWorkflow)&&this._editor?.activeWorkflow?.started||(this.open=!1)})),this._editContainer.appendChild(t),this.editorInitialized.emit(this._editor)}}async _closeEdit(t){this._shouldClose=!0,t&&this._editor?.activeWorkflow?(this._editor.activeWorkflow?.activeWorkflow?.hasPendingEdits&&(await this._editor.activeWorkflow.reset(),await this._editor.cancelWorkflow()),this._editor.destroy()):this.graphicIndex>-1&&this.graphics?.length>0&&this.refreshGraphics.emit(this.graphics),this._shouldClose=!1,this.closeEdit.emit()}async _startUpdate(){await this._editor.startUpdateWorkflowAtFeatureEdit(this.graphics[this.graphicIndex]),this._shouldClose=!0}async _getTranslations(){const t=await h(this.el);this._translations=t[0]}static get watchers(){return{graphics:["graphicsWatchHandler"],locale:["localeWatchHandler"],open:["openWatchHandler"]}}};f.style=":host{display:block}.padding-bottom-1{padding-bottom:1rem}.font-bold{font-weight:var(--calcite-font-weight-bold)}.font-500{font-weight:var(--calcite-font-weight-medium)}.font-italic{font-style:italic}#feature-form{padding-top:0px}.padding-sides-bottom-1{padding:0 1rem 1rem 1rem}.position-relative{position:relative}.esri-editor__prompt--danger{position:relative !important;width:100% !important;background-color:var(--calcite-color-foreground-1) !important}.esri-feature__content-node{background-color:var(--calcite-color-foreground-1) !important}.esri-editor__panel-toolbar{display:none !important}.position-absolute{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto}.esri-editor__panel-content{padding-block:10px !important}";const b=class{constructor(e){t(this,e),this.popupClosed=i(this,"popupClosed",7),this.selectionChanged=i(this,"selectionChanged",7)}get el(){return e(this)}enableEditGeometry=!1;graphics;isLoading=!1;isMobile;mapView;allowEditing=!0;highlightEnabled=!0;locale;paginationEnabled=!0;position="absolute";_alertOpen=!1;_count="";_editRecordOpen=!1;_mobileTitle="";_showListView=!1;_translations;Features;_editEnabled;_features;_layer;_popupUtils;_featuresNodeId="features-node"+(new Date).getMilliseconds().toString();reactiveUtils;async graphicsWatchHandler(){await this.setGraphics()}async isMobileWatchHandler(){await this._initFeaturesWidget()}async localeWatchHandler(){if(this.el.lang=this.locale,await this._getTranslations(),this._features){const t=[...this.graphics];this.graphics=[],this.graphics=t}}async mapViewWatchHandler(){return await this._initFeaturesWidget()}async getSelectedFeature(){return this._features.selectedFeature}async refresh(){await this.setGraphics()}async back(){this._features.previous(),this._count=this._getCount()}async next(){this._features.next(),this._count=this._getCount()}async toggleListView(){this._showListView=!this._showListView;const t=this._features.selectedFeatureIndex;this._features.open({features:this.graphics,featureMenuOpen:this._showListView}),this._features.selectedFeatureIndex=t}async updateCurrentGraphic(t){this._features.selectedFeatureWidget.graphic=t}popupClosed;selectionChanged;async closeEdit(){this._editRecordOpen=!1}async layerSelectionChange(){this._showListView=!1,this._features?.viewModel&&(this._features.viewModel.featureMenuOpen=!1,this._features.close())}async refreshGraphics(t){this.graphics=[...t.detail]}async componentWillLoad(){await this._initModules(),await this._getTranslations(),this._popupUtils=new l}async componentDidLoad(){this.graphics?.length>0&&await this.setGraphics()}render(){const t=this.isLoading?"":"display-none",i=this.isLoading||this._editRecordOpen?"visibility-hidden":"position-absolute",e=!this.isLoading&&this._editRecordOpen?"position-absolute":"display-none",a=!this.isLoading&&this._editRecordOpen||this._showListView?"display-none":"",o=this._features?.features?.length<2,h=this.isMobile?"display-none":"",c=this._features?.selectedFeature?.getObjectId(),d=parseInt(c?.toString(),10)>-1?[c]:[],l=this._layer?.editingEnabled&&this._layer?.capabilities?.operations?.supportsDelete;return s(n,{key:"66070d48134f89d9cf132572fe1adf790b6d3ec6"},s("calcite-shell",{key:"b77248dce176df940d8b0c347154b73738a5576d",style:{position:this.position}},this._getHeader(),s("calcite-loader",{key:"c1638ca8320a0ae12a9ccd1fd8841efde4236ba5",class:t,label:this._translations.fetchingData}),s("div",{key:"cf5ee3be5c0ea3be36205dcf7c0747461802a5f1",class:"esri-widget feature-node "+i,id:this._featuresNodeId}),s("div",{key:"6fbfa6947fa0fdb1b14a03217da60f07ecff2e1b",class:`${a} width-100`,slot:"footer"},this.allowEditing&&s("div",{key:"fdcb078c3b3f183b06dc3a48d27fee46e3a4fffa",class:"display-flex top-border padding-1-2"},s("calcite-button",{key:"7193bec80a40f353d24e5d327d99d94a2c5ff356",appearance:"solid",id:"solutions-edit",onClick:()=>this._openEditRecord(),width:"full"},this._translations.edit),this.isMobile&&l?s("delete-button",{class:"padding-inline-start-1 width-100",id:"solutions-delete",ids:d,layer:this._layer,locale:this.locale,onEditsComplete:()=>this._closePopup()}):void 0,s("calcite-tooltip",{key:"228a9691edd916a5d644cb19db24898cdf7cab3b",placement:"bottom","reference-element":"solutions-edit"},s("span",{key:"5c696df370bcf230d3fc06523ec3cb9d96f2fe2b"},this._translations.edit)),this.isMobile&&l?s("calcite-tooltip",{placement:"bottom","reference-element":"solutions-delete"},s("span",null,this._translations.delete)):void 0),this.paginationEnabled&&!o&&s("div",{key:"e1b829a888913af6a9d777a2df0d65571ac3bec1",class:`display-flex padding-1-2 button-container top-border ${h}`},s("div",{key:"8746737a103266efe64a8f80c2359f9e170586d5"},s("calcite-button",{key:"ac6fc23dc2831608cc9c86fe384c0a927cd7d7ac",appearance:"transparent",disabled:o,iconFlipRtl:"both",iconStart:"chevron-left",id:"solutions-back",onClick:()=>this._back(),width:"full"}),s("calcite-tooltip",{key:"d4a1e2753c35e97064ca66d5c30deccd532fb158",placement:"top","reference-element":"solutions-back"},s("span",{key:"caae32b5e32a0d89265293beccef157d227a7600"},this._translations.back))),s("calcite-action",{key:"a87f344a06896ad86886815254979793b057e4cd",class:"pagination-action",iconFlipRtl:!0,onClick:()=>this._toggleListView(),scale:"s",text:"",textEnabled:!0},s("span",{key:"6e6f84ebedb2540edb485fa0789fe8ea67e7188f",class:"pagination-count"},this._count)),s("div",{key:"6acf22348a508c921865bb4c7e531f9a826a8eed"},s("calcite-button",{key:"f1d763e1747cff7e0b6bec08ec4fade3d1582379",appearance:"transparent",disabled:o,iconFlipRtl:"both",iconStart:"chevron-right",id:"solutions-next",onClick:()=>this._next(),width:"full"}),s("calcite-tooltip",{key:"def93e3d1f19b4e6eb3e54c5fbd918fed118cc0c",placement:"top","reference-element":"solutions-next"},s("span",{key:"cb9b90a5b3129861b7f58fd0271c6120893dfd53"},this._translations.next))))),s("edit-card",{key:"524819a6dc64775b88b22aaf24445fd5ebdeae24",class:e,enableEditGeometry:this.enableEditGeometry,graphicIndex:this._features?.selectedFeatureIndex,graphics:this.graphics,locale:this.locale,mapView:this.mapView,open:this._editRecordOpen}),s("calcite-alert",{key:"394c3b416a5dc94381c8b93afd3308121fbebd81",icon:"layer-broken",kind:"warning",label:"",onCalciteAlertClose:()=>this._alertClosed(),open:this._alertOpen,placement:"top"},s("div",{key:"f4868bf3b710d91ed7e3f1e34b846bd408febac0",slot:"title"},this._translations.editDisabled),s("div",{key:"457b7d0c76bfac52340bec73f5d1d2abbd10f25a",slot:"message"},this._translations.enableEditing))))}async _initModules(){const[t,i]=await o(["esri/widgets/Features","esri/core/reactiveUtils"]);this.Features=t,this.reactiveUtils=i}async setGraphics(){this._features||await this._initFeaturesWidget(),this.graphics.length>0?(this._layer=this.graphics[0]?.layer,this._editEnabled=this._layer.editingEnabled&&this._layer.capabilities.operations.supportsUpdate,this._mobileTitle=await this._popupUtils.getPopupTitle(this.graphics[0],this.mapView.map),this._features.open({features:this.graphics})):(this._features.clear(),this._features.close()),this._count=this._getCount()}async _initFeaturesWidget(){return void 0!==this.isMobile?await(this.mapView?.when((()=>{this._features?(this._features.view=this.mapView,this._features.visibleElements.actionBar=!1,this._features.visibleElements.closeButton=!1,this._features.visibleElements.heading=!this.isMobile):(this._features=new this.Features({view:this.mapView,container:this._featuresNodeId,visibleElements:{actionBar:!1,closeButton:!1,heading:!this.isMobile}}),this._features.viewModel.highlightEnabled=this.highlightEnabled,this.reactiveUtils.watch((()=>this._features.viewModel.featureMenuOpen),(t=>{this._count=this._getCount(),t||(this._showListView=t)})),this.reactiveUtils.watch((()=>this._features.selectedFeatureIndex),(t=>{t>-1&&this.selectionChanged.emit({selectedFeature:[this._features.selectedFeature],selectedFeatureIndex:this._features.selectedFeatureIndex})})))}))):Promise.resolve()}_getHeader(){return this.isMobile&&!this._editRecordOpen?s("calcite-panel",{class:"border-width-0",slot:"header"},s("calcite-action",{class:"end-border",icon:"chevron-left",iconFlipRtl:!0,onClick:()=>this._closePopup(),scale:"s",slot:"header-actions-start",text:""}),s("span",{class:"font-bold",slot:"header-content"},this._mobileTitle)):void 0}_closePopup(){this.popupClosed.emit()}_alertClosed(){this._alertOpen=!1}_openEditRecord(){this._editEnabled?this._editRecordOpen=!0:this._alertOpen=!0}_back(){this._features.previous(),this._count=this._getCount()}_next(){this._features.next(),this._count=this._getCount()}_getCount(){const t=(this._features?.viewModel.selectedFeatureIndex+1).toString(),i=this._features?.features?.length.toString();return this._translations.indexOfTotal.replace("{{index}}",t).replace("{{total}}",i)}_toggleListView(){this._showListView=!this._showListView;const t=this._features.selectedFeatureIndex;this._features.open({features:this.graphics,featureMenuOpen:this._showListView}),this._features.selectedFeatureIndex=t}async _getTranslations(){const t=await h(this.el);this._translations=t[0]}static get watchers(){return{graphics:["graphicsWatchHandler"],isMobile:["isMobileWatchHandler"],locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"]}}};b.style=":host{display:block;--calcite-label-margin-bottom:0}.padding-1-2{padding:0.5rem}.display-none{display:none !important}.display-flex{display:flex}.position-absolute{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto}.feature-node{position:relative !important}.feature-node .esri-features__footer{display:none !important}.button-container{justify-content:center;align-items:center}.top-border{border-top:1px solid var(--calcite-color-border-1)}.width-100{width:100%}.esri-features__container{padding:0.5rem !important;background-color:var(--calcite-color-foreground-1) !important;height:100% !important}.overflow-hidden{overflow:hidden}.height-40{height:40px}.end-border{border-inline-end:1px solid var(--calcite-color-border-1)}.font-bold{font-weight:bold}.visibility-hidden{visibility:hidden;height:0px}.padding-inline-start-1{padding-inline-start:1rem}.border-width-0{border-width:0px}.pagination-action{position:relative;left:3px}.pagination-count{color:var(--calcite-color-brand);border-bottom:1px solid var(--calcite-color-brand);font-weight:bold}";export{r as create_feature,p as delete_button,f as edit_card,b as info_card}
|
6
|
+
import{r as t,c as i,g as e,h as s,F as a,H as n}from"./p-1b0588d2.js";import{l as o,g as h}from"./p-ee2cbba0.js";import{a as c,g as d}from"./p-dcd2f00b.js";import{P as l}from"./p-d0d21a1f.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-80cb7c73.js";import"./p-6eab9d1f.js";import"./p-4fe489cf.js";import"./p-2bc98cb0.js";import"./p-4f236b5d.js";import"./p-570b13d9.js";import"./p-0668e30d.js";const r=class{constructor(e){t(this,e),this.success=i(this,"success",7),this.fail=i(this,"fail",7),this.drawComplete=i(this,"drawComplete",7),this.editingAttachment=i(this,"editingAttachment",7),this.progressStatus=i(this,"progressStatus",7),this.modeChanged=i(this,"modeChanged",7)}get el(){return e(this)}mapView;selectedLayerId;customizeSubmit=!1;locale;searchConfiguration;isMobile;floorLevel;formElements;enableSearch=!1;showGuidingMsg=!0;showGuidingMsgWhileDrawing=!0;_editorLoading=!1;_currentPage="templatePicker";_translations;Editor;ExpressionInfo;FieldElement;FormTemplate;_editor;FeatureLayer;MapView;_updatedMapView;Search;_search;reactiveUtils;_addingAttachment;_container;_mapViewContainer;_isSubmitBtnClicked=!1;_selectedLayer;_searchDiv;_calciteNotice;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(){await this.mapView.when((async()=>{await this.init()}))}async isMobileHandler(){this.modeChanged.emit()}async _editorLoadingWatchHandler(t){if(t){if(this._container?.classList.add("display-none"),this._selectedLayer?.isTable){const t={layer:this._selectedLayer,template:this._selectedLayer.templates[0]};await this._editor.startCreateFeaturesWorkflowAtFeatureCreation(t),await this.hideEditorsElements()}else await this.startCreate();this._container?.classList.remove("display-none"),this._editorLoading=!1}}async submit(){this._editor&&(this._isSubmitBtnClicked=!0,this._editor.viewModel.featureFormViewModel.submit())}async refresh(t){this._editor&&this._setFloorLevel(t)}success;fail;drawComplete;editingAttachment;progressStatus;modeChanged;async componentWillLoad(){await this._getTranslations(),await this.initModules()}async componentDidLoad(){await this.init()}componentDidRender(){this.isMobile&&(this._mapViewContainer.style.top=`${this._calciteNotice.offsetHeight+this._searchDiv.offsetHeight+80}px`)}disconnectedCallback(){this._editor&&this._editor.destroy()}render(){const t="drawing"===this._currentPage?"":"display-none",i=this._editorLoading?"":"display-none",e=this._editorLoading?"display-none":"",n=this.isMobile?"show-map":"display-none";let o=this._translations.chooseCategoryMsg;return"drawing"===this._currentPage?o=this._translations.provideLocationMsg:"featureForm"===this._currentPage&&(o=this._translations.provideDetailsMsg),s(a,{key:"829e66e8b4818b2566d514ae85eddc50968075f8"},this.showGuidingMsg&&(this.showGuidingMsgWhileDrawing||"drawing"!==this._currentPage)&&s("calcite-notice",{key:"0347181f26f5d87d38f8be185e0b43ffbbc34208",class:"notice-msg",icon:"lightbulb",kind:"success",open:!0,ref:t=>this._calciteNotice=t},s("div",{key:"e5dd776ead66c26184a5aad747e82d97612d961a",slot:"message"},o)),s("calcite-loader",{key:"7989ecdbb4b635d38a1d63bf879d7e95b3f9a9be",class:i,label:"",scale:"s"}),s("div",{key:"6f6184af21e8a0595e5c51c132e657e7660caa01",class:e,id:"feature-form"}),this.enableSearch&&s("div",{key:"2068ca424a9355a28c9957104a4f6973b11c1b8f",class:`search-widget ${t} ${e}`,id:"search-widget-ref",ref:t=>this._searchDiv=t}),s("div",{key:"a899d52788e6cfa67fe77abbbe0eeb6383b40d0a",class:`${n}`,ref:t=>{this._mapViewContainer=t}}))}async init(){this.mapView&&this.selectedLayerId&&(this._updatedMapView=this.mapView,await(this.isMobile?this.createMobileMapView():this._loadWidgets()))}async initModules(){const[t,i,e,s,a,n,h]=await o(["esri/widgets/Editor","esri/core/reactiveUtils","esri/widgets/Search","esri/form/ExpressionInfo","esri/form/elements/FieldElement","esri/form/FormTemplate","esri/views/MapView"]);this.Editor=t,this.reactiveUtils=i,this.Search=e,this.ExpressionInfo=s,this.FieldElement=a,this.FormTemplate=n,this.MapView=h}async createMobileMapView(){this._mapViewContainer.classList.add("hide-map"),await new this.MapView({map:this.mapView.map,container:this._mapViewContainer,zoom:this.mapView.zoom}).when((t=>{this._updatedMapView=t,this._loadWidgets()}),(t=>{console.log(t)}))}async _loadWidgets(){await this.createEditorWidget(),this.enableSearch&&await this.createSearchWidget()}async createEditorWidget(){this._editor&&this._editor.destroy();const t=[];this._container=document.createElement("div"),this._container?.classList.add("display-none");const i=await c(this._updatedMapView);this._selectedLayer=await d(this.mapView,this.selectedLayerId),this._selectedLayer?.isTable||i.forEach((async i=>{t.push({layer:i,enabled:"feature"===i?.type&&i?.id===this.selectedLayerId,addEnabled:!0,updateEnabled:!1,deleteEnabled:!1})})),this._editor=new this.Editor({view:this._updatedMapView,layerInfos:t,visibleElements:{snappingControls:!1,createFeaturesSection:!0,editFeaturesSection:!1},container:this._container}),this._mapViewContainer?this.el.insertBefore(this._container,this._mapViewContainer):this.el.appendChild(this._container);const e=this.reactiveUtils.watch((()=>this._editor.viewModel.state),(t=>{"adding-attachment"===t||"editing-attachment"===t?(this._addingAttachment=!0,this.editingAttachment.emit(!0)):this._addingAttachment&&(this.editingAttachment.emit(!1),this._addingAttachment=!1)}));this._editor.viewModel.addHandles(e);const s=this.reactiveUtils.watch((()=>this._editor.viewModel.featureTemplatesViewModel.state),(t=>{"ready"===t&&"create-features"!==this._editor.viewModel?.activeWorkflow?.type&&(this.progressStatus.emit(50),this._editorLoading=!0)}));this._editor.viewModel.addHandles(s);const a=this.reactiveUtils.watch((()=>this._editor.viewModel.featureFormViewModel?.state),(t=>{"ready"===t&&(this._mapViewContainer?.classList?.replace("show-map","hide-map"),this._editor.viewModel.featureFormViewModel.on("submit",this.submitted.bind(this)),setTimeout((()=>{this._setFloorLevel(this.floorLevel)}),50),this._currentPage="featureForm",this.progressStatus.emit(100),this.drawComplete.emit())}));this._editor.viewModel.addHandles(a);const n=this.reactiveUtils.watch((()=>this._editor.viewModel.state),(t=>{"creating-features"===t&&"disabled"===this._editor.viewModel.featureFormViewModel.state&&(this._mapViewContainer?.classList?.replace("hide-map","show-map"),this._selectedLayer&&!this._selectedLayer.isTable&&(this._currentPage="drawing"))}));this._editor.viewModel.addHandles(n)}async startCreate(){return await this.hideEditorsElements(),new Promise(((t,i)=>{if(this._editor.viewModel.featureTemplatesViewModel.items?.length){const e=this._editor.viewModel.featureTemplatesViewModel.items[0].items;this._editor.viewModel.featureTemplatesViewModel.on("select",(()=>{this.progressStatus.emit(75),setTimeout((()=>{this.hideEditorsElements().then((()=>{t({})}),(t=>i(t)))}),700)})),1===e.length&&this._editor.viewModel.featureTemplatesViewModel.select(e[0]);const s=e.length>1;this.hideEditorsElements().then((()=>{s&&t({})}),(t=>s&&i(t)))}}))}async createSearchWidget(){let t={view:this._updatedMapView};this.searchConfiguration&&(t={...this._getSearchConfig(this.searchConfiguration,this._updatedMapView)}),this._search=new this.Search(t),this._search.container="search-widget-ref",this._search.popupEnabled=!1,this._search.resultGraphicEnabled=!1;let i=null;this._search.on("search-complete",(t=>{this._updatedMapView.goTo(t.results[0].results[0].extent),"point"===this._selectedLayer.geometryType&&(i=t.results[0].results[0]?.feature.geometry)}));const e=this.reactiveUtils.watch((()=>this._search.viewModel.state),(t=>{"ready"===t&&setTimeout((()=>{this._editor.viewModel.sketchViewModel.createGraphic&&i&&(this._editor.viewModel.sketchViewModel.createGraphic.set("geometry",i),this._editor.viewModel.sketchViewModel.complete(),this.hideEditorsElements())}),100)}));this._search.viewModel.addHandles(e)}_getSearchConfig(t,i){const e=t.sources;return e?.length>0?(t.includeDefaultSources=!1,e.forEach((t=>{if(t.hasOwnProperty("layer")){const e=t,s=e.layer?.id,a=s?i.map.findLayerById(s):null,n=e?.layer?.url;a?e.layer=a:n&&(e.layer=new this.FeatureLayer(n))}})),e?.forEach((t=>{if(t.hasOwnProperty("locator")){const i=t;"ArcGIS World Geocoding Service"===i?.name&&(i.outFields=i.outFields||["Addr_type","Match_addr","StAddr","City"],i.singleLineFieldName="SingleLine"),i.url=i.url,delete i.url}}))):t={...t,includeDefaultSources:!0},t}async _setFloorLevel(t){if(!t)return;const i=this._selectedLayer;if(i?.floorInfo?.floorField){const e=i.fields.find((t=>t.name===i.floorInfo.floorField));if(e&&!i?.formTemplate)this._editor.viewModel.featureFormViewModel.setValue(e.name,t),e.editable=!1;else if(i.formTemplate&&this.formElements){const e=new this.ExpressionInfo({expression:`"${t}"`,name:"floor-info-test",title:"Floor Info",returnType:"string"}),s=new this.FieldElement({label:i.floorInfo.floorField,editableExpression:"false",fieldName:i.floorInfo.floorField,input:{type:"text-box",maxLength:50,minLength:0},valueExpression:e.name});this._updatedMapView.map.editableLayers.forEach((t=>{const i=this.formElements.orgExpressionInfos,a=[...this.formElements.orgElements];a.push(s);const n=new this.FormTemplate({title:t.formTemplate.title,description:t.formTemplate.description,elements:a,expressionInfos:[e].concat(i)});t.formTemplate=n}))}}}async hideEditorsElements(){this.customizeSubmit&&(await this.timeout(700),this.el.querySelector(".esri-editor")?.querySelectorAll("calcite-flow-item")?.forEach((t=>{const i=t.shadowRoot?.querySelector("calcite-panel")?.shadowRoot?.querySelector("article");i?.querySelector("header")?.setAttribute("style","display: none"),i?.querySelector("footer")?.setAttribute("style","display: none")})))}async submitted(t){if(t.invalid.length)this._isSubmitBtnClicked=!1;else if(this._isSubmitBtnClicked){this._isSubmitBtnClicked=!1;try{await this._editor.activeWorkflow.commit(),this._editor.viewModel.failures?.length&&this._editor.viewModel.failures.some((t=>{if(t.error)throw t.error}))}catch(t){return void this.fail.emit(t)}this.success.emit()}}timeout(t){return new Promise((i=>setTimeout(i,t)))}async _getTranslations(){const t=await h(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],isMobile:["isMobileHandler"],_editorLoading:["_editorLoadingWatchHandler"]}}};r.style=":host{display:block}.esri-editor__panel-toolbar{display:none !important}.esri-editor__panel-content{padding-block:0px !important}.esri-editor .esri-item-list__group__header{display:none !important}.esri-editor__panel-content__section .esri-widget__heading{display:none !important}.esri-editor .esri-item-list__filter-container--sticky{padding-block:0px !important;padding-inline:10px !important}.search-widget{width:92% !important;margin:5px 14px 20px 14px}.display-none{display:none !important}.hide-map{height:1%;visibility:hidden}.show-map{padding:10px !important;position:absolute !important;bottom:0;height:auto !important;width:calc(100% - 22px)}.notice-msg{padding:10px;width:calc(100% - 20px)}.esri-editor__panel-content{padding-block:10px !important}@media only screen and (max-width: 600px){.esri-editor__panel-content{padding-block:0 !important;min-height:0 !important}}";const p=class{constructor(e){t(this,e),this.editsComplete=i(this,"editsComplete",7)}get el(){return e(this)}deleteDialog;buttonType="button";disabled=!1;icon;ids=[];layer;locale;_confirmDelete=!1;_deleteEndabled=!1;_supportsDelete;_translations;async idsWatchHandler(){this._setDeleteEnabled()}async layerWatchHandler(){this._setDeleteEnabled()}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}editsComplete;async componentWillLoad(){await this._getTranslations()}render(){return s(n,{key:"73d07f24703df76fdacc1b3a1ec80cfdd7bbee30"},"button"===this.buttonType?s("calcite-button",{appearance:"outline",disabled:!this._deleteEndabled,id:"solutions-delete",kind:"danger",onClick:()=>this._delete(),width:"full"},this._translations.deleteCount.replace("{{n}}",this.ids.length.toString())):s("calcite-action",{appearance:"solid",disabled:!this._deleteEndabled,id:this.icon,onClick:()=>this._delete(),scale:"s",text:this._translations.delete},s("calcite-button",{appearance:"transparent",iconStart:this.icon,kind:"danger"},this._translations.delete)),this._deleteMessage(),s("calcite-tooltip",{key:"803898895029bd098264b9144ff5ccee102d4ae8",placement:"bottom","reference-element":"button"===this.buttonType?"solutions-delete":this.icon},s("span",{key:"a920ffea1849667cd58812a2c1813d2e066f0064"},this._translations.delete)))}async componentDidLoad(){this._setDeleteEnabled()}_setDeleteEnabled(){this._supportsDelete=this.layer?.editingEnabled&&this.layer?.capabilities?.operations?.supportsDelete,this._deleteEndabled=!this.disabled||this._supportsDelete&&this.ids.length>0}_delete(){this._confirmDelete=!0}_deleteMessage(){return this.deleteDialog?this.deleteDialog:s("delete-dialog",{id:"solution-delete-dialog",ids:this.ids,layer:this.layer,locale:this.locale,onDeleteDialogClose:()=>this._confirmDelete=!1,open:this._confirmDelete})}async _getTranslations(){const t=await h(this.el);this._translations=t[0]}static get watchers(){return{ids:["idsWatchHandler"],layer:["layerWatchHandler"],locale:["localeWatchHandler"]}}};p.style=":host{display:block}.delete-modal{position:fixed}";const b=class{constructor(e){t(this,e),this.closeEdit=i(this,"closeEdit",7),this.editorInitialized=i(this,"editorInitialized",7),this.editsComplete=i(this,"editsComplete",7),this.refreshGraphics=i(this,"refreshGraphics",7)}get el(){return e(this)}enableEditGeometry=!1;graphics;locale;mapView;open=!1;graphicIndex=0;_editorLoading=!1;_translations;_activeWorkflowHandle;_addRelatedRecordHandle;_attachmentHandle;_editHandle;_layerEditHandle;Editor;_editor;_layer;_editContainer;_editControlElements;_editingDisabled;_shouldClose=!1;reactiveUtils;async graphicsWatchHandler(){0===this.graphics.length&&this.open&&await this._closeEdit(!0)}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async openWatchHandler(t){t&&this.graphics?.length>0&&this.graphicIndex>-1&&(this._editorLoading=!0,await this._initEditorWidget(),this.graphicIndex>-1&&this.graphics.length>0&&this.open&&!this._shouldClose&&await this._startUpdate(),this._editorLoading=!1),t||await this._closeEdit(!0)}closeEdit;editorInitialized;editsComplete;refreshGraphics;async featureSelectionChange(){this.open&&await this._closeEdit(!1)}async componentWillLoad(){await this._initModules(),await this._getTranslations()}async componentWillRender(){this.graphics?.length>0&&this.graphics[0]?.layer&&(this._layer=this.graphics[0].layer,this._layerEditHandle&&this._layerEditHandle.remove(),this._layerEditHandle=("subtype-sublayer"===this._layer.type?this._layer.parent:this._layer).on("edits",(()=>{this.editsComplete.emit()})))}render(){const t=this._editorLoading?"display-none":"position-absolute",i=this._editorLoading?"":"display-none";return s(n,{key:"e181f65e7218ce0350de5dcab9049ff63a5d39c1"},s("div",{key:"44bf2b5cf31c5acc7f65fb7ec50fd84e77c95470",class:"position-absolute"},this.graphics?.length>0&&this.graphics[0]&&this.graphics[0].layer.editingEnabled?void 0:s("calcite-notice",{kind:"warning",open:!0,slot:"content-top",width:"full"},s("div",{slot:"message"},this._translations.enableEditing)),s("div",{key:"97119476aa2a992ccadc1d61119f2640d195e7b1",class:"position-absolute"},s("div",{key:"f429decea684a6a22db89de89da3755bdbff19cc",class:t,id:"feature-form",ref:t=>this._editContainer=t}),s("calcite-loader",{key:"3ea908ef8dadd2f1c85bfac1b344f8b4441b8706",class:i,label:"",scale:"s"}))))}async _initModules(){const[t,i]=await o(["esri/widgets/Editor","esri/core/reactiveUtils"]);this.Editor=t,this.reactiveUtils=i}async _initEditorWidget(){if(this.mapView&&this.graphics&&this.graphics.length>0&&this.graphics[0]){this._editor&&this._editor.destroy();const t=document.createElement("div"),i=(await c(this.mapView)).map((t=>({layer:t,geometryUpdatesEnabled:this.enableEditGeometry})));this._editor=new this.Editor({view:this.mapView,layerInfos:i,visibleElements:{snappingControls:!1},container:t}),this._attachmentHandle&&this._activeWorkflowHandle&&(this._attachmentHandle.remove(),this._activeWorkflowHandle.remove()),this._attachmentHandle=this.reactiveUtils.when((()=>"adding-attachment"===this._editor.viewModel.state||"editing-attachment"===this._editor.viewModel.state||"creating-features"===this._editor.viewModel.state),(()=>{this._shouldClose=!1})),this._activeWorkflowHandle=this.reactiveUtils.watch((()=>this._editor.viewModel.activeWorkflow?.activeWorkflow),(t=>{"update-table-record"!==t?.type&&"create-features"!==t?.type||(this._shouldClose=!1),(t?.type||t?.hasPendingEdits||this._editor.activeWorkflow)&&this._editor?.activeWorkflow?.started||(this.open=!1)})),this._editContainer.appendChild(t),this.editorInitialized.emit(this._editor)}}async _closeEdit(t){this._shouldClose=!0,t&&this._editor?.activeWorkflow?(this._editor.activeWorkflow?.activeWorkflow?.hasPendingEdits&&(await this._editor.activeWorkflow.reset(),await this._editor.cancelWorkflow()),this._editor.destroy()):this.graphicIndex>-1&&this.graphics?.length>0&&this.refreshGraphics.emit(this.graphics),this._shouldClose=!1,this.closeEdit.emit()}async _startUpdate(){await this._editor.startUpdateWorkflowAtFeatureEdit(this.graphics[this.graphicIndex]),this._shouldClose=!0}async _getTranslations(){const t=await h(this.el);this._translations=t[0]}static get watchers(){return{graphics:["graphicsWatchHandler"],locale:["localeWatchHandler"],open:["openWatchHandler"]}}};b.style=":host{display:block}.padding-bottom-1{padding-bottom:1rem}.font-bold{font-weight:var(--calcite-font-weight-bold)}.font-500{font-weight:var(--calcite-font-weight-medium)}.font-italic{font-style:italic}#feature-form{padding-top:0px}.padding-sides-bottom-1{padding:0 1rem 1rem 1rem}.position-relative{position:relative}.esri-editor__prompt--danger{position:relative !important;width:100% !important;background-color:var(--calcite-color-foreground-1) !important}.esri-feature__content-node{background-color:var(--calcite-color-foreground-1) !important}.esri-editor__panel-toolbar{display:none !important}.position-absolute{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto}.esri-editor__panel-content{padding-block:10px !important}";const f=class{constructor(e){t(this,e),this.popupClosed=i(this,"popupClosed",7),this.clearSelection=i(this,"clearSelection",7),this.selectionChanged=i(this,"selectionChanged",7)}get el(){return e(this)}enableEditGeometry=!1;graphics;isLoading=!1;isMobile;mapView;allowEditing=!0;highlightEnabled=!0;locale;paginationEnabled=!0;position="absolute";showCloseBtn=!1;_alertOpen=!1;_count="";_editRecordOpen=!1;_mobileTitle="";_showListView=!1;_translations;_navigatedToRelatedFeature;Features;_editEnabled;_features;_layer;_popupUtils;_featuresNodeId="features-node"+(new Date).getMilliseconds().toString();reactiveUtils;_relatedFeature;async graphicsWatchHandler(){this._navigatedToRelatedFeature&&this._features&&(this._features.clear(),this._features.close(),this._count="",this._navigatedToRelatedFeature=!1),await this.setGraphics()}async isMobileWatchHandler(){await this._initFeaturesWidget()}async localeWatchHandler(){if(this.el.lang=this.locale,await this._getTranslations(),this._features){const t=[...this.graphics];this.graphics=[],this.graphics=t}}async mapViewWatchHandler(){return await this._initFeaturesWidget()}async getSelectedFeature(){return this._features.selectedFeature}async refresh(){await this.setGraphics()}async back(){this._features.previous(),this._count=this._getCount()}async next(){this._features.next(),this._count=this._getCount()}async toggleListView(){this._showListView=!this._showListView;const t=this._features.selectedFeatureIndex;this._features.open({features:this.graphics,featureMenuOpen:this._showListView}),this._features.selectedFeatureIndex=t}async updateCurrentGraphic(t){this._features.selectedFeatureWidget.graphic=t}popupClosed;clearSelection;selectionChanged;async closeEdit(){this._editRecordOpen=!1}async layerSelectionChange(){this._showListView=!1,this._features?.viewModel&&(this._features.viewModel.featureMenuOpen=!1,this._features.close())}async refreshGraphics(t){this._navigatedToRelatedFeature||(this.graphics=[...t.detail])}async componentWillLoad(){await this._initModules(),await this._getTranslations(),this._popupUtils=new l}async componentDidLoad(){this.graphics?.length>0&&await this.setGraphics()}render(){const t=this.isLoading?"":"display-none",i=this.isLoading||this._editRecordOpen?"visibility-hidden":"position-absolute",e=!this.isLoading&&this._editRecordOpen?"position-absolute":"display-none",a=!this.isLoading&&this._editRecordOpen||this._showListView?"display-none":"",o=this._features?.features?.length<2||this._navigatedToRelatedFeature,h=this.isMobile?"display-none":"",c=this._features?.selectedFeature?.getObjectId(),d=parseInt(c?.toString(),10)>-1?[c]:[],l=this._layer?.editingEnabled&&this._layer?.capabilities?.operations?.supportsDelete,r=this._relatedFeature?[this._relatedFeature]:this.graphics,p=this._navigatedToRelatedFeature?0:this._features?.selectedFeatureIndex;return s(n,{key:"9f75eb2e7aba944474e85c34b2abe23982629558"},s("calcite-shell",{key:"748f9e50cd3aa7a52dd7910b171c0d7f54d09203",style:{position:this.position}},this._getHeader(),s("calcite-loader",{key:"feced4d4a66df36958644436acaa53ddabdfc02a",class:t,label:this._translations.fetchingData}),s("div",{key:"3bb912c80d610a21a5e283c6bd19ab0c63023c45",class:"esri-widget feature-node "+i,id:this._featuresNodeId}),s("div",{key:"479dcbda08f837b32bd19ed7f40856f081e92a6e",class:`${a} width-100`,slot:"footer"},this.allowEditing&&s("div",{key:"dd78b02ba8506c391aada6c5233691ec9babcfbe",class:"display-flex top-border padding-1-2"},s("calcite-button",{key:"c5a807609c60151a433fa9c0055fbfdf20b2935f",appearance:"solid",id:"solutions-edit",onClick:()=>this._openEditRecord(),width:"full"},this._translations.edit),this.isMobile&&l?s("delete-button",{class:"padding-inline-start-1 width-100",id:"solutions-delete",ids:d,layer:this._layer,locale:this.locale,onEditsComplete:()=>this._closePopup()}):void 0,s("calcite-tooltip",{key:"a4cd4c77e982e23675ec9eaf08e2135de6c83b65",placement:"bottom","reference-element":"solutions-edit"},s("span",{key:"22533608996d1c87b9b04e339506ec01176379b0"},this._translations.edit)),this.isMobile&&l?s("calcite-tooltip",{placement:"bottom","reference-element":"solutions-delete"},s("span",null,this._translations.delete)):void 0),this.paginationEnabled&&!o&&s("div",{key:"183ff7da57a06de8f5419edf5973f18b41c46097",class:`display-flex padding-1-2 button-container top-border ${h}`},s("div",{key:"77e59229d1d516ccdc8f7c5be2f89a5ad9d5004b"},s("calcite-button",{key:"4b6a6f1f85e9199e14d626ba66b6b319283d0c32",appearance:"transparent",disabled:o,iconFlipRtl:"both",iconStart:"chevron-left",id:"solutions-back",onClick:()=>this._back(),width:"full"}),s("calcite-tooltip",{key:"7056c5cb3c790c804194f09f2586864a28dce5e1",placement:"top","reference-element":"solutions-back"},s("span",{key:"923fc5425a9faced6952a1b9acff9b7d0f3da286"},this._translations.back))),s("calcite-action",{key:"a34bfb4ae71a91373fd476e7b704a6a2f8f23157",class:"pagination-action",iconFlipRtl:!0,onClick:()=>this._toggleListView(),scale:"s",text:"",textEnabled:!0},s("span",{key:"101a0fa592af65b540123c835e9031a18671ad8b",class:"pagination-count"},this._count)),s("div",{key:"c4f88f464a3091dfc77578470de4f42d05b9f5c7"},s("calcite-button",{key:"e4e35e539f0c7e01a31e0047db545d4d334ef2d8",appearance:"transparent",disabled:o,iconFlipRtl:"both",iconStart:"chevron-right",id:"solutions-next",onClick:()=>this._next(),width:"full"}),s("calcite-tooltip",{key:"40244ecf5566fde448b311272d2ee00d70bc531a",placement:"top","reference-element":"solutions-next"},s("span",{key:"db01e2a2b9da9a80f9a25caf49bf8beb872e6ad9"},this._translations.next))))),s("edit-card",{key:"cfa193b01b67f7709ea6a491caa0c647c536e9e3",class:e,enableEditGeometry:this.enableEditGeometry,graphicIndex:p,graphics:r,locale:this.locale,mapView:this.mapView,open:this._editRecordOpen}),s("calcite-alert",{key:"709fd6d681d32a03fcf5fba959e81a0153676e26",icon:"layer-broken",kind:"warning",label:"",onCalciteAlertClose:()=>this._alertClosed(),open:this._alertOpen,placement:"top"},s("div",{key:"bbdd9cc98fcda8ffba294a4322f08468072f6aef",slot:"title"},this._translations.editDisabled),s("div",{key:"d07e32e9cd54cc82ff005e7e696e13e1b8bdaa4e",slot:"message"},this._translations.enableEditing))))}async _initModules(){const[t,i]=await o(["esri/widgets/Features","esri/core/reactiveUtils"]);this.Features=t,this.reactiveUtils=i}async setGraphics(){this._features||await this._initFeaturesWidget(),this.graphics.length>0?(this._layer=this.graphics[0]?.layer,this._editEnabled=this._layer.editingEnabled&&this._layer.capabilities.operations.supportsUpdate,this._mobileTitle=await this._popupUtils.getPopupTitle(this.graphics[0],this.mapView.map),this._features.open({features:this.graphics})):(this._features.clear(),this._features.close()),this._count=this._getCount()}async _initFeaturesWidget(){return void 0!==this.isMobile?await(this.mapView?.when((()=>{this._features?(this._features.view=this.mapView,this._features.visibleElements.actionBar=!1,this._features.visibleElements.closeButton=this.showCloseBtn,this._features.visibleElements.heading=!this.isMobile):(this._features=new this.Features({view:this.mapView,container:this._featuresNodeId,visibleElements:{actionBar:!1,closeButton:this.showCloseBtn,heading:!this.isMobile}}),this._features.viewModel.highlightEnabled=this.highlightEnabled,this.reactiveUtils.watch((()=>this._features.viewModel.featureMenuOpen),(t=>{this._count=this._getCount(),t||(this._showListView=t)})),this.reactiveUtils.watch((()=>this._features.selectedFeatureIndex),(t=>{t>-1&&this.selectionChanged.emit({selectedFeature:[this._features.selectedFeature],selectedFeatureIndex:this._features.selectedFeatureIndex})})),this.reactiveUtils.watch((()=>this._features.selectedDrillInFeature),(t=>{t?(this._relatedFeature=t,this._navigatedToRelatedFeature=!0):(this._relatedFeature=null,this._navigatedToRelatedFeature=!1)})),this.el.querySelector("#"+this._featuresNodeId).addEventListener("calciteFlowItemClose",(()=>{this.clearSelection.emit()})))}))):Promise.resolve()}_getHeader(){return this.isMobile&&!this._editRecordOpen?s("calcite-panel",{class:"border-width-0",slot:"header"},s("calcite-action",{class:"end-border",icon:"chevron-left",iconFlipRtl:!0,onClick:()=>this._closePopup(),scale:"s",slot:"header-actions-start",text:""}),s("span",{class:"font-bold",slot:"header-content"},this._mobileTitle)):void 0}_closePopup(){this.popupClosed.emit()}_alertClosed(){this._alertOpen=!1}_openEditRecord(){this._editEnabled?this._editRecordOpen=!0:this._alertOpen=!0}_back(){this._features.previous(),this._count=this._getCount()}_next(){this._features.next(),this._count=this._getCount()}_getCount(){const t=(this._features?.viewModel.selectedFeatureIndex+1).toString(),i=this._features?.features?.length.toString();return this._translations.indexOfTotal.replace("{{index}}",t).replace("{{total}}",i)}_toggleListView(){this._showListView=!this._showListView;const t=this._features.selectedFeatureIndex;this._features.open({features:this.graphics,featureMenuOpen:this._showListView}),this._features.selectedFeatureIndex=t}async _getTranslations(){const t=await h(this.el);this._translations=t[0]}static get watchers(){return{graphics:["graphicsWatchHandler"],isMobile:["isMobileWatchHandler"],locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"]}}};f.style=":host{display:block;--calcite-label-margin-bottom:0}.padding-1-2{padding:0.5rem}.display-none{display:none !important}.display-flex{display:flex}.position-absolute{position:absolute;top:0;right:0;bottom:0;left:0;overflow:auto}.feature-node{position:relative !important}.feature-node .esri-features__footer{display:none !important}.button-container{justify-content:center;align-items:center}.top-border{border-top:1px solid var(--calcite-color-border-1)}.width-100{width:100%}.esri-features__container{padding:0.5rem !important;background-color:var(--calcite-color-foreground-1) !important;height:100% !important}.overflow-hidden{overflow:hidden}.height-40{height:40px}.end-border{border-inline-end:1px solid var(--calcite-color-border-1)}.font-bold{font-weight:bold}.visibility-hidden{visibility:hidden;height:0px}.padding-inline-start-1{padding-inline-start:1rem}.border-width-0{border-width:0px}.pagination-action{position:relative;left:3px}.pagination-count{color:var(--calcite-color-brand);border-bottom:1px solid var(--calcite-color-brand);font-weight:bold}";export{r as create_feature,p as delete_button,b as edit_card,f as info_card}
|