@esri/solutions-components 0.11.32 → 0.11.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist/cjs/{asyncToGenerator-c7fc3ee4.js → asyncToGenerator-ccb3278b.js} +1 -1
  2. package/dist/cjs/basemap-gallery_7.cjs.entry.js +14 -9
  3. package/dist/cjs/buffer-tools_2.cjs.entry.js +1 -1
  4. package/dist/cjs/card-manager_3.cjs.entry.js +90 -13
  5. package/dist/cjs/consent-manager.cjs.entry.js +3 -3
  6. package/dist/cjs/create-feature_4.cjs.entry.js +7 -7
  7. package/dist/cjs/create-related-feature_3.cjs.entry.js +1 -1
  8. package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
  9. package/dist/cjs/crowdsource-reporter.cjs.entry.js +1 -1
  10. package/dist/cjs/delete-dialog.cjs.entry.js +1 -1
  11. package/dist/cjs/{downloadUtils-c7dac47d.js → downloadUtils-fefa863b.js} +3 -3
  12. package/dist/cjs/feature-list.cjs.entry.js +4 -4
  13. package/dist/cjs/{index.es-3c2404c3.js → index.es-0441a948.js} +2 -2
  14. package/dist/cjs/json-editor_7.cjs.entry.js +1 -1
  15. package/dist/cjs/map-layer-picker.cjs.entry.js +1 -1
  16. package/dist/cjs/map-select-tools_3.cjs.entry.js +3 -3
  17. package/dist/cjs/{popupUtils-27f6cf2a.js → popupUtils-a68a20db.js} +2 -2
  18. package/dist/cjs/public-notification.cjs.entry.js +3 -3
  19. package/dist/cjs/solution-configuration.cjs.entry.js +1 -1
  20. package/dist/cjs/solution-contents_3.cjs.entry.js +1 -1
  21. package/dist/cjs/solution-item-accordion.cjs.entry.js +1 -1
  22. package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
  23. package/dist/collection/components/basemap-gallery/basemap-gallery.js +13 -8
  24. package/dist/collection/components/card-manager/card-manager.js +1 -1
  25. package/dist/collection/components/edit-card/edit-card.js +1 -1
  26. package/dist/collection/components/info-card/info-card.js +2 -2
  27. package/dist/collection/components/layer-table/layer-table.js +86 -9
  28. package/dist/components/basemap-gallery2.js +13 -8
  29. package/dist/components/card-manager2.js +1 -1
  30. package/dist/components/edit-card2.js +1 -1
  31. package/dist/components/info-card2.js +2 -2
  32. package/dist/components/layer-table2.js +87 -10
  33. package/dist/esm/{asyncToGenerator-96b2368d.js → asyncToGenerator-48cd21fe.js} +1 -1
  34. package/dist/esm/basemap-gallery_7.entry.js +14 -9
  35. package/dist/esm/buffer-tools_2.entry.js +1 -1
  36. package/dist/esm/card-manager_3.entry.js +90 -13
  37. package/dist/esm/consent-manager.entry.js +3 -3
  38. package/dist/esm/create-feature_4.entry.js +7 -7
  39. package/dist/esm/create-related-feature_3.entry.js +1 -1
  40. package/dist/esm/crowdsource-manager.entry.js +1 -1
  41. package/dist/esm/crowdsource-reporter.entry.js +1 -1
  42. package/dist/esm/delete-dialog.entry.js +1 -1
  43. package/dist/esm/{downloadUtils-a9fc6dd2.js → downloadUtils-7ef5420f.js} +3 -3
  44. package/dist/esm/feature-list.entry.js +4 -4
  45. package/dist/esm/{index.es-87662946.js → index.es-c379ea10.js} +2 -2
  46. package/dist/esm/json-editor_7.entry.js +1 -1
  47. package/dist/esm/map-layer-picker.entry.js +1 -1
  48. package/dist/esm/map-select-tools_3.entry.js +3 -3
  49. package/dist/esm/{popupUtils-78f2029e.js → popupUtils-ef89df87.js} +2 -2
  50. package/dist/esm/public-notification.entry.js +3 -3
  51. package/dist/esm/solution-configuration.entry.js +1 -1
  52. package/dist/esm/solution-contents_3.entry.js +1 -1
  53. package/dist/esm/solution-item-accordion.entry.js +1 -1
  54. package/dist/esm/spatial-ref.entry.js +1 -1
  55. package/dist/solutions-components/p-035a1d38.entry.js +6 -0
  56. package/dist/solutions-components/{p-c83b1a4a.entry.js → p-11ad8edc.entry.js} +1 -1
  57. package/dist/solutions-components/{p-f6d19f6d.entry.js → p-1325fa9e.entry.js} +1 -1
  58. package/dist/solutions-components/{p-60b1fe27.entry.js → p-2be59c38.entry.js} +1 -1
  59. package/dist/solutions-components/{p-455c19fa.js → p-4379cc5f.js} +2 -2
  60. package/dist/solutions-components/{p-0a60707c.entry.js → p-5096280f.entry.js} +1 -1
  61. package/dist/solutions-components/p-51033697.entry.js +6 -0
  62. package/dist/solutions-components/p-51e04c86.js +21 -0
  63. package/dist/solutions-components/{p-30b5dcaf.entry.js → p-605597cf.entry.js} +1 -1
  64. package/dist/solutions-components/{p-d65f8b73.js → p-62a0aa8e.js} +1 -1
  65. package/dist/solutions-components/{p-a38eee28.entry.js → p-681a41f3.entry.js} +1 -1
  66. package/dist/solutions-components/{p-dc188d13.js → p-6d1ee086.js} +1 -1
  67. package/dist/solutions-components/{p-50b4945e.entry.js → p-7eec82e3.entry.js} +1 -1
  68. package/dist/solutions-components/{p-5b481f0d.entry.js → p-8b05b49c.entry.js} +1 -1
  69. package/dist/solutions-components/{p-6dc629dc.entry.js → p-93ebcb9b.entry.js} +1 -1
  70. package/dist/solutions-components/{p-b04179db.entry.js → p-b1f11c67.entry.js} +1 -1
  71. package/dist/solutions-components/{p-1aad0b63.entry.js → p-b3b5dca4.entry.js} +1 -1
  72. package/dist/solutions-components/{p-b8e4345e.entry.js → p-c45ba7dd.entry.js} +1 -1
  73. package/dist/solutions-components/{p-4a2870b0.entry.js → p-de3ba7be.entry.js} +1 -1
  74. package/dist/solutions-components/{p-7f36cfb0.entry.js → p-debeb4dc.entry.js} +1 -1
  75. package/dist/solutions-components/{p-f8854c5e.entry.js → p-e68f5f54.entry.js} +1 -1
  76. package/dist/solutions-components/{p-f3ba92d5.entry.js → p-f2cfed3a.entry.js} +1 -1
  77. package/dist/solutions-components/solutions-components.esm.js +1 -1
  78. package/dist/solutions-components_commit.txt +6 -6
  79. package/dist/types/components/layer-table/layer-table.d.ts +34 -0
  80. package/package.json +1 -1
  81. package/dist/solutions-components/p-0def29e6.entry.js +0 -6
  82. package/dist/solutions-components/p-31159fc6.js +0 -21
  83. package/dist/solutions-components/p-76126e43.entry.js +0 -6
  84. /package/dist/cjs/{locale-809dbc6e.js → locale-81070bd9.js} +0 -0
  85. /package/dist/cjs/{typeof-2a7e2dec.js → typeof-920a4426.js} +0 -0
  86. /package/dist/esm/{locale-fa8258bf.js → locale-4be8e04f.js} +0 -0
  87. /package/dist/esm/{typeof-ef2a007d.js → typeof-2511410e.js} +0 -0
  88. /package/dist/solutions-components/{p-57be3b9d.js → p-8a74a780.js} +0 -0
  89. /package/dist/solutions-components/{p-4fe489cf.js → p-af7e43e0.js} +0 -0
@@ -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,H as o,F as h}from"./p-934e8935.js";import{g as a}from"./p-57be3b9d.js";import{E as l}from"./p-80cb7c73.js";import{g as n}from"./p-5693ce7a.js";import"./p-d4056c1c.js";const d=class{constructor(e){t(this,e),this.showIntroductionWindow=i(this,"showIntroductionWindow",7),this.showCoverPage=i(this,"showCoverPage",7),this.appLayout=void 0,this.appProxies=void 0,this.basemapConfig=void 0,this.coverPageEnabled=void 0,this.customInfoText=void 0,this.defaultAppLayout=void 0,this.defaultCenter="",this.defaultGlobalId="",this.defaultLayer="",this.defaultLevel="",this.defaultOid="",this.defaultWebmap="",this.honorMapFieldSettings=!1,this.introductionWindowEnabled=!1,this.enableAutoRefresh=!1,this.enableBasemap=!0,this.enableColumnReorder=!0,this.enableCSV=!0,this.enableFloorFilter=!0,this.enableFullscreen=!0,this.enableHome=!0,this.enableLegend=!0,this.enableSearch=!0,this.enableShare=!1,this.enableSnapping=!0,this.enableZoom=!0,this.locale=void 0,this.mapInfos=[],this.onlyShowUpdatableLayers=!0,this.popupHeaderColor=void 0,this.popupHeaderHoverColor=void 0,this.popupHeaderHoverTextColor=void 0,this.popupHeaderTextColor=void 0,this.searchConfiguration=void 0,this.shareIncludeEmbed=void 0,this.shareIncludeSocial=void 0,this.showNewestFirst=!0,this.theme="light",this.zoomAndScrollToSelected=!1,this.zoomToScale=void 0,this._deleteDialogOpen=!1,this._enableCreateFeatures=!0,this._hideFooter=!1,this._hideTable=!1,this._isMobile=!1,this._isPortraitMobile=!1,this._translations=void 0,this._layer=void 0,this._layoutMode=l.GRID,this._mapInfo=void 0,this._mapView=void 0,this._panelOpen=!0,this._numSelected=0,this._filterOpen=!1,this._showInformationHeader=!0,this._layerIds=void 0,this._isLoading=!0,this._mapExtentFilterChecked=void 0}get el(){return e(this)}_defaultAppLayoutHonored=!1;_defaultCenterHonored=!1;_defaultLevelHonored=!1;_deleteIds;_layerTable;_mapChange;_resizeObserver;_shouldSetMapView=!1;_layerExpressions;_filterList;_mapCard;_isMapViewOnLoad=!1;appLayoutWatchHandler(t,i){t!==i&&(this._layerTable?.validateTableUpdate("splitView"===t),this._setActiveLayout(t),"mapView"===this.appLayout&&this._layer?.isTable&&this._mapCard.updateLayer(),this._isMapViewOnLoad&&(this._layerTable.refresh(),this._isMapViewOnLoad=!1))}enableZoomWatchHandler(){this._initMapZoom()}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}showIntroductionWindow;showCoverPage;async featureSelectionChange(t){this._numSelected=t.detail?.length}async popupClosed(){this._isPortraitMobile&&this.showHideMapPopupAndTable(!1)}async layoutChanged(t){this._layoutMode=t.detail}async mapChanged(t){this._mapChange=t.detail,await this._mapChange.mapView.when((async()=>{await this._setMapView()}))}async layerSelectionChange(t){const i=t.detail[0],e=await n(this._mapView,i);e&&await e.when((()=>{0===this._layerIds.length&&"mapView"===this.appLayout&&e.isTable&&(this.appLayout="splitView"),this._layer=e,this._initLayerExpressions(),this._handleFilterListReset(),this._isLoading=!1}))}async showDelete(t){this._deleteIds=t.detail.ids,this._deleteDialogOpen=!0}async idsFound(t){this._layerIds=t.detail.layerIds}async componentWillLoad(){await this._getTranslations(),this._resizeObserver=new ResizeObserver((()=>this._onResize()))}render(){return s(o,{key:"77fc3a2496e77ee3af327fd1ca65fc2834bf4498"},s("calcite-shell",{key:"c804550ff62d970449845eee9be41f79af2882eb",class:"position-relative"},s("calcite-panel",{key:"b6362732fb72571521a45d12aa7f85d7623b941b",class:"width-full height-full "+(this.popupHeaderColor&&"#FFFFFF"!==this.popupHeaderColor?"border-width-0":""),loading:this._isLoading},this._getBody(this._layoutMode,this._panelOpen,this._hideTable)),this._getFooter()),this._filterModal(),this._deleteModal())}async componentDidRender(){this._shouldSetMapView&&(this._shouldSetMapView=!1,this._mapChange&&await this._setMapView())}async componentDidLoad(){this._resizeObserver.observe(this.el),!this._defaultAppLayoutHonored&&this.defaultAppLayout?(this._defaultAppLayoutHonored=!0,this.appLayout=this.defaultAppLayout):this.appLayout||(this.appLayout="splitView"),this._isMapViewOnLoad="mapView"===this.appLayout,this._setActiveLayout(this.appLayout)}_getFooter(){const t=this._numSelected>0,i=this._layer?.editingEnabled&&this._layer?.capabilities?.operations?.supportsDelete;return this._isPortraitMobile&&t&&!this._hideFooter?s("div",{class:"width-100",slot:"footer"},s("div",{class:"display-flex padding-1-2"},s("calcite-button",{appearance:"solid",id:"solutions-show",onClick:()=>this.showHideMapPopupAndTable(!0),width:"full"},this._translations.view.replace("{{n}}",this._numSelected.toString())),i?s("delete-button",{class:"padding-inline-start-1 width-full",id:"solutions-delete",ids:this._layerTable.selectedIds,layer:this._layer,locale:this.locale}):void 0)):void 0}_setActiveLayout(t){"splitView"!==t||this._panelOpen||this._toggleLayout(),"mapView"===t?this._showMapInFullView():this._showMapInCardView()}_getDividerIcon(t,i){let e="";switch(t){case l.HORIZONTAL:e=i?"chevrons-up":"chevrons-down";break;case l.VERTICAL:case l.GRID:e=i?"chevrons-left":"chevrons-right"}return e}_getMapSizeClass(t,i,e){let s="";switch(t){case l.HORIZONTAL:s=(i&&!e?"height-1-2 display-grid":i&&e?"height-full":"height-0")+" width-full position-relative";break;case l.GRID:s="height-full position-relative "+(i?"width-1-3":"width-0");break;case l.VERTICAL:s="height-full position-relative "+(i?"width-1-2":"width-0")}return s}_getTableSizeClass(t,i){let e="";switch(t){case l.HORIZONTAL:e=(i?"height-1-2":"height-full")+" width-full display-flex flex-column";break;case l.GRID:e=(i?"width-2-3":"width-full")+" height-full display-flex";break;case l.VERTICAL:e=(i?"width-1-2":"width-full")+" height-full display-flex"}return e}_getBody(t,i,e){const o="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light";return s("calcite-panel",{class:"width-full height-full position-absolute"},s("div",{class:"width-full height-full overflow-hidden "+(t===l.HORIZONTAL?"":"display-flex")},this._getMapAndCard(t,i,e),this._getTable(t,i,e)),this.coverPageEnabled&&s("div",{class:"floating-container",onClick:this.coverPageButtonClick.bind(this)},s("calcite-button",{appearance:"solid",class:`floating-button ${o}`,"icon-start":"content-minimal",kind:"neutral",label:"",round:!0,scale:"l","split-child":"primary",width:"auto"})),this.introductionWindowEnabled&&s("div",{class:"floating-container",onClick:this.infoButtonClick.bind(this)},s("calcite-button",{appearance:"solid",class:`floating-button ${o}`,"icon-start":"information-letter",kind:"neutral",label:"",round:!0,scale:"l","split-child":"primary",width:"auto"})))}infoButtonClick(){this.showIntroductionWindow.emit()}coverPageButtonClick(){this.showCoverPage.emit()}_getMapAndCard(t,i,e){const o=this._getMapSizeClass(t,i,e);return s("div",{class:`${o} overflow-hidden z-index-1 ${!this._isPortraitMobile&&this._isMobile?"border-right":""}`},this._getMapNode(i),this._getPopupExpandNode())}_getMapNode(t){const i="mapView"===this.appLayout,e="tableView"===this.appLayout;return s("div",{class:(i||e?"position-absolute-0":this._layoutMode!==l.HORIZONTAL||this._isPortraitMobile&&!t?"adjusted-height-50":"")+" overflow-hidden",id:"card-mapView"},s("map-card",{appLayout:this.appLayout,appProxies:this.appProxies,basemapConfig:this.basemapConfig,class:"width-full",defaultLayerId:this.defaultWebmap&&this.defaultLayer?this.defaultLayer:"",defaultWebmapId:this.defaultWebmap,enableBasemap:this.enableBasemap,enableFloorFilter:this.enableFloorFilter,enableFullscreen:this.enableFullscreen,enableHome:this.enableHome,enableLegend:this.enableLegend,enableSearch:this.enableSearch,enableShare:this.enableShare,enableSingleExpand:!0,hidden:!this._isPortraitMobile&&e,homeZoomIndex:3,homeZoomPosition:"top-left",homeZoomToolsSize:"s",isMapLayout:i,isMobile:this._isMobile,locale:this.locale,mapInfo:this._mapInfo,mapInfos:this.mapInfos?.filter((t=>!1!==t.visible)),mapWidgetsIndex:0,mapWidgetsPosition:"top-right",mapWidgetsSize:"m",onToggleFilter:this._toggleFilter.bind(this),onlyShowUpdatableLayers:this.onlyShowUpdatableLayers,ref:t=>this._mapCard=t,selectedFeaturesIds:this._layerTable?.selectedIds,selectedLayer:this._layer,shareIncludeEmbed:this.shareIncludeEmbed,shareIncludeSocial:this.shareIncludeSocial,stackTools:!0,theme:this.theme,toolOrder:["legend","search","fullscreen","basemap","floorfilter"],zoomToScale:this.zoomToScale}))}_getPopupExpandNode(){const t=this._isPortraitMobile&&this._showInformationHeader?"display-none height-0":"";return s("div",{class:`${this.popupHeaderColor?"":this._isPortraitMobile?"calcite-mode-light":"calcite-mode-dark"} ${this._isMobile?"height-full":"height-full position-relative"} ${this._isPortraitMobile&&this._hideTable?"position-absolute-0 width-full height-full":this._isPortraitMobile?"display-none height-0":""} ${this.mapInfos?.length>1&&"tableView"===this.appLayout?"position-relative top-51":""} ${"tableView"!==this.appLayout?"position-sticky":""}`,style:{"--calcite-color-foreground-1":this.popupHeaderColor,"--calcite-color-foreground-2":this.popupHeaderHoverColor,"--calcite-color-text-3":this.popupHeaderTextColor,"--calcite-color-text-2":this.popupHeaderTextColor}},s("calcite-panel",null,!this._isPortraitMobile&&this._showInformationHeader||this._numSelected>0&&!this._isPortraitMobile?s("div",{class:`display-flex align-items-center ${t}`,slot:"header-content"},s("calcite-icon",{icon:"information",scale:"s"}),s("div",{class:"padding-inline-start-75"},this._translations.information)):s("div",null),this._getCardNode()))}_getCardNode(){const t="mapView"===this.appLayout,i="tableView"===this.appLayout;return s("div",{class:"width-50 height-full "+("dark"===this.theme?"calcite-mode-dark":"calcite-mode-light")},s("card-manager",{class:(i&&this.mapInfos?.length>1?"adjusted-height-100-51":t||i?"height-full":this._numSelected>0&&!this._isMobile?"height-50":this._showInformationHeader?this._isPortraitMobile?"height-full":"height-50":"adjusted-height-50_25")+" width-full",customInfoText:this.customInfoText,enableCreateFeatures:this._enableCreateFeatures&&!this._isMobile,enableEditGeometry:this?._mapInfo?.enableEditGeometry,enableSnapping:this.enableSnapping,isMobile:this._isPortraitMobile,layer:this._layer,locale:this.locale,mapView:this?._mapView,onBackFromCreateWorkFlow:()=>{this._showInformationHeader=!0},onCreateWorkFlowStarted:()=>{this.appLayout=this._layer.isTable?"tableView":"mapView",this._showInformationHeader=!1},onFeatureOrRecordSubmitted:()=>{this._layerTable.refresh()},selectedFeaturesIds:this._layerTable?.selectedIds,selectingFeatureFromMap:"mapView"===this.appLayout,zoomAndScrollToSelected:this.zoomAndScrollToSelected}))}_getTable(t,i,e){const o="mapView"===this.appLayout,h="tableView"===this.appLayout,a=e&&this._isPortraitMobile?"visibility-hidden":o?"display-none":"",n=o?"height-full width-full z-index-0":"display-none",d=this._getTableSizeClass(t,i),r=t===l.HORIZONTAL?"horizontal":"vertical",c=t===l.HORIZONTAL?"header":"panel-start",p=this.defaultWebmap&&this.defaultLayer,g=this.defaultGlobalId?this.defaultGlobalId?.indexOf(",")>-1?this.defaultGlobalId.split(","):[this.defaultGlobalId]:void 0,u=this.defaultOid?this.defaultOid?.indexOf(",")>-1?this.defaultOid.split(",").map((t=>parseInt(t,10))):[parseInt(this.defaultOid,10)]:void 0;return s("calcite-shell",{class:`${d} border-bottom`},this._isMobile?void 0:s("calcite-action-bar",{class:"border-sides",expandDisabled:!0,layout:r,slot:c},this.getActions(t,i)),s("div",{class:`width-full height-full position-relative z-index-0 ${a}`},s("layer-table",{appLayout:this.appLayout,createFilterModal:!1,defaultGlobalId:p?g:void 0,defaultLayerId:p?this.defaultLayer:"",defaultOid:p&&!g?u:void 0,enableAutoRefresh:this.enableAutoRefresh,enableCSV:this.enableCSV,enableColumnReorder:this.enableColumnReorder,enableInlineEdit:this?._mapInfo?.enableInlineEdit,enableShare:this.enableShare,honorMapFieldSettings:this.honorMapFieldSettings,isMobile:this._isPortraitMobile,locale:this.locale,mapHidden:h,mapInfo:this._mapInfo,mapView:this?._mapView,onToggleFilter:this._toggleFilter.bind(this),onlyShowUpdatableLayers:this.onlyShowUpdatableLayers,ref:t=>this._layerTable=t,shareIncludeEmbed:this.shareIncludeEmbed,shareIncludeSocial:this.shareIncludeSocial,showNewestFirst:this.showNewestFirst,zoomAndScrollToSelected:this.zoomAndScrollToSelected,zoomToScale:this.zoomToScale})),s("div",{class:n,id:"full-map-view"}))}getActions(t,i){const e=this._getDividerIcon(t,i),o=i?this._translations.close:this._translations.open,a="toggle-layout";return s(h,null,s("calcite-action",{active:"splitView"===this.appLayout,class:"toggle-node",icon:"browser",id:"browser-action",onClick:()=>{this.appLayout="splitView"},text:""}),s("calcite-tooltip",{placement:"right","reference-element":"browser-action"},s("span",null,this._translations.splitView)),s("calcite-action",{active:"tableView"===this.appLayout,class:"toggle-node",icon:"dock-left",id:"dock-left-action",onClick:()=>{this.appLayout="tableView"},text:""}),s("calcite-tooltip",{placement:"right","reference-element":"dock-left-action"},s("span",null,this._translations.tableView)),s("calcite-action",{active:"mapView"===this.appLayout,class:"toggle-node",disabled:0===this._layerIds?.length,icon:"browser-map",id:"browser-map-action",onClick:()=>{this.appLayout="mapView"},text:""}),s("calcite-tooltip",{placement:"right","reference-element":"browser-map-action"},s("span",null,this._translations.mapView)),s("calcite-action",{class:"toggle-node",icon:e,id:a,onClick:()=>this._toggleLayout(),slot:"actions-end",text:""}),s("calcite-tooltip",{placement:"bottom","reference-element":a},s("span",null,o)))}_deleteModal(){return s("delete-dialog",{id:"deleteDialogId",ids:this._deleteIds,layer:this._layer,locale:this.locale,onDeleteDialogClose:()=>this._deleteDialogOpen=!1,open:this._deleteDialogOpen})}_mapExtentFilter(){const t=0===this._layerExpressions?.length;return s("calcite-panel",null,s("div",null,s("calcite-block",{class:"dark"===this.theme?"background-dark":"",heading:"","menu-placement":"bottom-end",open:!0},s("div",{class:"filter-extent-container"},s("div",{class:"filter-extent-message"},s("span",null,this._translations.filterByExtentMsg," "),s("calcite-icon",{icon:"information",id:"filter-message-info",scale:"s"}),s("calcite-tooltip",{overlayPositioning:"fixed",placement:"top","reference-element":"filter-message-info"},this._translations.filterByExtentTooltipMsg)),s("calcite-switch",{checked:this._mapExtentFilterChecked,onCalciteSwitchChange:t=>{this._layerTable.filterUpdate(t.target.checked||this._filterList?.filterCount>0,t.target.checked),this._mapExtentFilterChecked=t.target.checked},scale:"m"}))),t&&s("div",{class:"filter-modal-buttons",slot:"footer"},s("calcite-button",{appearance:"outline",onClick:this._handleFilterListReset.bind(this),width:"full"},this._translations.Resetfilter),s("calcite-button",{onClick:this._closeFilter.bind(this),width:"full"},this._translations.close))))}_filterModal(){const t=this._layerExpressions?.length>0;return s("calcite-dialog",{class:"filter-content-space",heading:this._translations?.filter?.replace("{{title}}",this._layer?.title),id:"solutions-filter-dialog",kind:"brand",modal:!0,onCalciteDialogClose:()=>{this._closeFilter()},open:this._filterOpen,width:"s"},this._mapExtentFilter(),t&&s("instant-apps-filter-list",{autoUpdateUrl:!1,closeBtn:!0,closeBtnOnClick:()=>{this._closeFilter()},comboboxOverlayPositioning:"fixed",layerExpressions:this._layerExpressions,onFilterListReset:this._handleFilterListReset.bind(this),onFilterUpdate:()=>{this._updateFilter()},ref:t=>this._filterList=t,view:this._mapView,zoomBtn:!1}))}async _updateFilter(){const t=this._filterList.filterCount>0||this._mapExtentFilterChecked;await(this._layerTable?.filterUpdate(t)),await this._mapCard.updateFilterState(t)}_initLayerExpressions(){const t=this._mapInfo?.filterConfig?.layerExpressions;this._layerExpressions=t?t.filter((t=>t.id===this._layer?.id)):[],this._layerExpressions.filter((t=>t.expressions.filter((t=>t.active)).length>0))}_toggleFilter(){this._filterOpen=!this._filterOpen}_handleFilterListReset(){this._mapExtentFilterChecked=!1,this._mapCard.resetFilter(),this._layerTable.filterReset()}async _closeFilter(){this._filterOpen&&(this._filterOpen=!1,this._layerTable.closeFilter())}_onResize(){const t=this.el.offsetWidth<1024,i=!this._isMobile&&t;this._isMobile=t,i&&(this._panelOpen=!0),this._isMobile?(this.showHideMapPopupAndTable(!this._isMobile),this._isPortraitMobile=!!window.matchMedia("(orientation: portrait)").matches,this.appLayout="splitView"):this._isPortraitMobile=!1,this._layoutMode=this._isPortraitMobile?l.HORIZONTAL:l.GRID}_toggleLayout(){this._panelOpen=!this._panelOpen}_showMapInCardView(){if("mapView"!==this.appLayout){const t=document.getElementById("full-map-view")?.childNodes[0],i=document.getElementById("card-mapView");t&&i.appendChild(t)}}_showMapInFullView(){const t=document.getElementById("card-mapView")?.childNodes[0],i=document.getElementById("full-map-view");t&&i.appendChild(t)}showHideMapPopupAndTable(t){this._hideTable=t,this._hideFooter=t}_getMapInfo(t){let i;return this.mapInfos.some((e=>{if(e.id===t)return i=e,!0})),{...i}}async _setMapView(){this._mapInfo=this._getMapInfo(this._mapChange.id),this._enableCreateFeatures=this._mapInfo.enableCreateFeatures,this._mapView=this._mapChange.mapView,this._initMapZoom(),this._mapView.popupEnabled=!1;const t=!this.defaultCenter||this._defaultCenterHonored?void 0:this.defaultCenter?.split(";").map((t=>parseFloat(t))),i=!this.defaultLevel||this._defaultLevelHonored?void 0:parseInt(this.defaultLevel,10);t&&i&&(await this._mapView.goTo({center:t,zoom:i}),this._defaultCenterHonored=!0,this._defaultLevelHonored=!0)}_initMapZoom(){this.enableZoom?this.enableZoom&&this._mapView.ui.add({component:"zoom",position:"top-left",index:0}):this._mapView.ui.remove("zoom")}async _getTranslations(){const t=await a(this.el);this._translations=t[0]}static get watchers(){return{appLayout:["appLayoutWatchHandler"],enableZoom:["enableZoomWatchHandler"],locale:["localeWatchHandler"]}}};d.style=":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.padding-1-2{padding:0.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-color-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.border-right{border-right:2px solid var(--calcite-color-border-3)}.border-sides{border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-border-3)}.position-relative{position:relative}.position-absolute{position:absolute}.position-sticky{position:sticky}.height-50{height:50%}.top-51{top:51px}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-51{height:calc(100% - 51px)}.display-none{display:none !important}.adjusted-height-50_25{height:calc(50% + 25px)}.position-absolute-53{position:absolute;top:53px}.display-grid{display:grid}.height-50-px{height:50px}.padding-inline-start-75{padding-inline-start:0.75rem}.align-items-center{align-items:center}.esri-floor-filter__close-levels-button{width:40px !important;height:40px !important}.esri-floor-filter__level-button{width:40px !important;height:40px !important}.esri-floor-filter__browse-button{width:40px !important;height:40px !important}.position-absolute-50{position:absolute;top:50px;bottom:0px;left:0px;right:0px}.position-absolute-0{position:absolute;top:0px;bottom:0px;left:0px;right:0px}.visibility-hidden{visibility:hidden;height:0px}.position-fixed{position:fixed}.border-width-0{border-width:0px}.border-bottom-width-0{border-bottom-width:0px}.floating-container{position:fixed;width:100px;height:10px;bottom:0;right:0;margin:100px 0px}.floating-container .floating-button{box-shadow:0 10px 25px rgb(92 93 94 / 60%);transform:translatey(5px);transition:all 0.3s}.z-index-0{z-index:0 !important}.z-index-1{z-index:1 !important}.filter-content-space{--calcite-dialog-content-space:0px}.background-dark{background:var(--calcite-color-background)}.filter-extent-container{display:flex;justify-content:space-between;align-items:center;padding:10px 0}.filter-modal-buttons{display:flex;padding:12px;gap:10px}.filter-extent-message{align-items:center;display:flex;gap:5px}";export{d as crowdsource_manager}
6
+ import{r as t,c as i,g as e,h as s,H as o,F as h}from"./p-934e8935.js";import{g as a}from"./p-8a74a780.js";import{E as l}from"./p-80cb7c73.js";import{g as n}from"./p-5693ce7a.js";import"./p-d4056c1c.js";const r=class{constructor(e){t(this,e),this.showIntroductionWindow=i(this,"showIntroductionWindow",7),this.showCoverPage=i(this,"showCoverPage",7),this.appLayout=void 0,this.appProxies=void 0,this.basemapConfig=void 0,this.coverPageEnabled=void 0,this.customInfoText=void 0,this.defaultAppLayout=void 0,this.defaultCenter="",this.defaultGlobalId="",this.defaultLayer="",this.defaultLevel="",this.defaultOid="",this.defaultWebmap="",this.honorMapFieldSettings=!1,this.introductionWindowEnabled=!1,this.enableAutoRefresh=!1,this.enableBasemap=!0,this.enableColumnReorder=!0,this.enableCSV=!0,this.enableFloorFilter=!0,this.enableFullscreen=!0,this.enableHome=!0,this.enableLegend=!0,this.enableSearch=!0,this.enableShare=!1,this.enableSnapping=!0,this.enableZoom=!0,this.locale=void 0,this.mapInfos=[],this.onlyShowUpdatableLayers=!0,this.popupHeaderColor=void 0,this.popupHeaderHoverColor=void 0,this.popupHeaderHoverTextColor=void 0,this.popupHeaderTextColor=void 0,this.searchConfiguration=void 0,this.shareIncludeEmbed=void 0,this.shareIncludeSocial=void 0,this.showNewestFirst=!0,this.theme="light",this.zoomAndScrollToSelected=!1,this.zoomToScale=void 0,this._deleteDialogOpen=!1,this._enableCreateFeatures=!0,this._hideFooter=!1,this._hideTable=!1,this._isMobile=!1,this._isPortraitMobile=!1,this._translations=void 0,this._layer=void 0,this._layoutMode=l.GRID,this._mapInfo=void 0,this._mapView=void 0,this._panelOpen=!0,this._numSelected=0,this._filterOpen=!1,this._showInformationHeader=!0,this._layerIds=void 0,this._isLoading=!0,this._mapExtentFilterChecked=void 0}get el(){return e(this)}_defaultAppLayoutHonored=!1;_defaultCenterHonored=!1;_defaultLevelHonored=!1;_deleteIds;_layerTable;_mapChange;_resizeObserver;_shouldSetMapView=!1;_layerExpressions;_filterList;_mapCard;_isMapViewOnLoad=!1;appLayoutWatchHandler(t,i){t!==i&&(this._layerTable?.validateTableUpdate("splitView"===t),this._setActiveLayout(t),"mapView"===this.appLayout&&this._layer?.isTable&&this._mapCard.updateLayer(),this._isMapViewOnLoad&&(this._layerTable.refresh(),this._isMapViewOnLoad=!1))}enableZoomWatchHandler(){this._initMapZoom()}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}showIntroductionWindow;showCoverPage;async featureSelectionChange(t){this._numSelected=t.detail?.length}async popupClosed(){this._isPortraitMobile&&this.showHideMapPopupAndTable(!1)}async layoutChanged(t){this._layoutMode=t.detail}async mapChanged(t){this._mapChange=t.detail,await this._mapChange.mapView.when((async()=>{await this._setMapView()}))}async layerSelectionChange(t){const i=t.detail[0],e=await n(this._mapView,i);e&&await e.when((()=>{0===this._layerIds.length&&"mapView"===this.appLayout&&e.isTable&&(this.appLayout="splitView"),this._layer=e,this._initLayerExpressions(),this._handleFilterListReset(),this._isLoading=!1}))}async showDelete(t){this._deleteIds=t.detail.ids,this._deleteDialogOpen=!0}async idsFound(t){this._layerIds=t.detail.layerIds}async componentWillLoad(){await this._getTranslations(),this._resizeObserver=new ResizeObserver((()=>this._onResize()))}render(){return s(o,{key:"77fc3a2496e77ee3af327fd1ca65fc2834bf4498"},s("calcite-shell",{key:"c804550ff62d970449845eee9be41f79af2882eb",class:"position-relative"},s("calcite-panel",{key:"b6362732fb72571521a45d12aa7f85d7623b941b",class:"width-full height-full "+(this.popupHeaderColor&&"#FFFFFF"!==this.popupHeaderColor?"border-width-0":""),loading:this._isLoading},this._getBody(this._layoutMode,this._panelOpen,this._hideTable)),this._getFooter()),this._filterModal(),this._deleteModal())}async componentDidRender(){this._shouldSetMapView&&(this._shouldSetMapView=!1,this._mapChange&&await this._setMapView())}async componentDidLoad(){this._resizeObserver.observe(this.el),!this._defaultAppLayoutHonored&&this.defaultAppLayout?(this._defaultAppLayoutHonored=!0,this.appLayout=this.defaultAppLayout):this.appLayout||(this.appLayout="splitView"),this._isMapViewOnLoad="mapView"===this.appLayout,this._setActiveLayout(this.appLayout)}_getFooter(){const t=this._numSelected>0,i=this._layer?.editingEnabled&&this._layer?.capabilities?.operations?.supportsDelete;return this._isPortraitMobile&&t&&!this._hideFooter?s("div",{class:"width-100",slot:"footer"},s("div",{class:"display-flex padding-1-2"},s("calcite-button",{appearance:"solid",id:"solutions-show",onClick:()=>this.showHideMapPopupAndTable(!0),width:"full"},this._translations.view.replace("{{n}}",this._numSelected.toString())),i?s("delete-button",{class:"padding-inline-start-1 width-full",id:"solutions-delete",ids:this._layerTable.selectedIds,layer:this._layer,locale:this.locale}):void 0)):void 0}_setActiveLayout(t){"splitView"!==t||this._panelOpen||this._toggleLayout(),"mapView"===t?this._showMapInFullView():this._showMapInCardView()}_getDividerIcon(t,i){let e="";switch(t){case l.HORIZONTAL:e=i?"chevrons-up":"chevrons-down";break;case l.VERTICAL:case l.GRID:e=i?"chevrons-left":"chevrons-right"}return e}_getMapSizeClass(t,i,e){let s="";switch(t){case l.HORIZONTAL:s=(i&&!e?"height-1-2 display-grid":i&&e?"height-full":"height-0")+" width-full position-relative";break;case l.GRID:s="height-full position-relative "+(i?"width-1-3":"width-0");break;case l.VERTICAL:s="height-full position-relative "+(i?"width-1-2":"width-0")}return s}_getTableSizeClass(t,i){let e="";switch(t){case l.HORIZONTAL:e=(i?"height-1-2":"height-full")+" width-full display-flex flex-column";break;case l.GRID:e=(i?"width-2-3":"width-full")+" height-full display-flex";break;case l.VERTICAL:e=(i?"width-1-2":"width-full")+" height-full display-flex"}return e}_getBody(t,i,e){const o="dark"===this.theme?"calcite-mode-dark":"calcite-mode-light";return s("calcite-panel",{class:"width-full height-full position-absolute"},s("div",{class:"width-full height-full overflow-hidden "+(t===l.HORIZONTAL?"":"display-flex")},this._getMapAndCard(t,i,e),this._getTable(t,i,e)),this.coverPageEnabled&&s("div",{class:"floating-container",onClick:this.coverPageButtonClick.bind(this)},s("calcite-button",{appearance:"solid",class:`floating-button ${o}`,"icon-start":"content-minimal",kind:"neutral",label:"",round:!0,scale:"l","split-child":"primary",width:"auto"})),this.introductionWindowEnabled&&s("div",{class:"floating-container",onClick:this.infoButtonClick.bind(this)},s("calcite-button",{appearance:"solid",class:`floating-button ${o}`,"icon-start":"information-letter",kind:"neutral",label:"",round:!0,scale:"l","split-child":"primary",width:"auto"})))}infoButtonClick(){this.showIntroductionWindow.emit()}coverPageButtonClick(){this.showCoverPage.emit()}_getMapAndCard(t,i,e){const o=this._getMapSizeClass(t,i,e);return s("div",{class:`${o} overflow-hidden z-index-1 ${!this._isPortraitMobile&&this._isMobile?"border-right":""}`},this._getMapNode(i),this._getPopupExpandNode())}_getMapNode(t){const i="mapView"===this.appLayout,e="tableView"===this.appLayout;return s("div",{class:(i||e?"position-absolute-0":this._layoutMode!==l.HORIZONTAL||this._isPortraitMobile&&!t?"adjusted-height-50":"")+" overflow-hidden",id:"card-mapView"},s("map-card",{appLayout:this.appLayout,appProxies:this.appProxies,basemapConfig:this.basemapConfig,class:"width-full",defaultLayerId:this.defaultWebmap&&this.defaultLayer?this.defaultLayer:"",defaultWebmapId:this.defaultWebmap,enableBasemap:this.enableBasemap,enableFloorFilter:this.enableFloorFilter,enableFullscreen:this.enableFullscreen,enableHome:this.enableHome,enableLegend:this.enableLegend,enableSearch:this.enableSearch,enableShare:this.enableShare,enableSingleExpand:!0,hidden:!this._isPortraitMobile&&e,homeZoomIndex:3,homeZoomPosition:"top-left",homeZoomToolsSize:"s",isMapLayout:i,isMobile:this._isMobile,locale:this.locale,mapInfo:this._mapInfo,mapInfos:this.mapInfos?.filter((t=>!1!==t.visible)),mapWidgetsIndex:0,mapWidgetsPosition:"top-right",mapWidgetsSize:"m",onToggleFilter:this._toggleFilter.bind(this),onlyShowUpdatableLayers:this.onlyShowUpdatableLayers,ref:t=>this._mapCard=t,selectedFeaturesIds:this._layerTable?.selectedIds,selectedLayer:this._layer,shareIncludeEmbed:this.shareIncludeEmbed,shareIncludeSocial:this.shareIncludeSocial,stackTools:!0,theme:this.theme,toolOrder:["legend","search","fullscreen","basemap","floorfilter"],zoomToScale:this.zoomToScale}))}_getPopupExpandNode(){const t=this._isPortraitMobile&&this._showInformationHeader?"display-none height-0":"";return s("div",{class:`${this.popupHeaderColor?"":this._isPortraitMobile?"calcite-mode-light":"calcite-mode-dark"} ${this._isMobile?"height-full":"height-full position-relative"} ${this._isPortraitMobile&&this._hideTable?"position-absolute-0 width-full height-full":this._isPortraitMobile?"display-none height-0":""} ${this.mapInfos?.length>1&&"tableView"===this.appLayout?"position-relative top-51":""} ${"tableView"!==this.appLayout?"position-sticky":""}`,style:{"--calcite-color-foreground-1":this.popupHeaderColor,"--calcite-color-foreground-2":this.popupHeaderHoverColor,"--calcite-color-text-3":this.popupHeaderTextColor,"--calcite-color-text-2":this.popupHeaderTextColor}},s("calcite-panel",null,!this._isPortraitMobile&&this._showInformationHeader||this._numSelected>0&&!this._isPortraitMobile?s("div",{class:`display-flex align-items-center ${t}`,slot:"header-content"},s("calcite-icon",{icon:"information",scale:"s"}),s("div",{class:"padding-inline-start-75"},this._translations.information)):s("div",null),this._getCardNode()))}_getCardNode(){const t="mapView"===this.appLayout,i="tableView"===this.appLayout;return s("div",{class:"width-50 height-full "+("dark"===this.theme?"calcite-mode-dark":"calcite-mode-light")},s("card-manager",{class:(i&&this.mapInfos?.length>1?"adjusted-height-100-51":t||i?"height-full":this._numSelected>0&&!this._isMobile?"height-50":this._showInformationHeader?this._isPortraitMobile?"height-full":"height-50":"adjusted-height-50_25")+" width-full",customInfoText:this.customInfoText,enableCreateFeatures:this._enableCreateFeatures&&!this._isMobile,enableEditGeometry:this?._mapInfo?.enableEditGeometry,enableSnapping:this.enableSnapping,isMobile:this._isPortraitMobile,layer:this._layer,locale:this.locale,mapView:this?._mapView,onBackFromCreateWorkFlow:()=>{this._showInformationHeader=!0},onCreateWorkFlowStarted:()=>{this.appLayout=this._layer.isTable?"tableView":"mapView",this._showInformationHeader=!1},onFeatureOrRecordSubmitted:()=>{this._layerTable.refresh()},selectedFeaturesIds:this._layerTable?.selectedIds,selectingFeatureFromMap:"mapView"===this.appLayout,zoomAndScrollToSelected:this.zoomAndScrollToSelected}))}_getTable(t,i,e){const o="mapView"===this.appLayout,h="tableView"===this.appLayout,a=e&&this._isPortraitMobile?"visibility-hidden":o?"display-none":"",n=o?"height-full width-full z-index-0":"display-none",r=this._getTableSizeClass(t,i),d=t===l.HORIZONTAL?"horizontal":"vertical",c=t===l.HORIZONTAL?"header":"panel-start",p=this.defaultWebmap&&this.defaultLayer,g=this.defaultGlobalId?this.defaultGlobalId?.indexOf(",")>-1?this.defaultGlobalId.split(","):[this.defaultGlobalId]:void 0,u=this.defaultOid?this.defaultOid?.indexOf(",")>-1?this.defaultOid.split(",").map((t=>parseInt(t,10))):[parseInt(this.defaultOid,10)]:void 0;return s("calcite-shell",{class:`${r} border-bottom`},this._isMobile?void 0:s("calcite-action-bar",{class:"border-sides",expandDisabled:!0,layout:d,slot:c},this.getActions(t,i)),s("div",{class:`width-full height-full position-relative z-index-0 ${a}`},s("layer-table",{appLayout:this.appLayout,createFilterModal:!1,defaultGlobalId:p?g:void 0,defaultLayerId:p?this.defaultLayer:"",defaultOid:p&&!g?u:void 0,enableAutoRefresh:this.enableAutoRefresh,enableCSV:this.enableCSV,enableColumnReorder:this.enableColumnReorder,enableInlineEdit:this?._mapInfo?.enableInlineEdit,enableShare:this.enableShare,honorMapFieldSettings:this.honorMapFieldSettings,isMobile:this._isPortraitMobile,locale:this.locale,mapHidden:h,mapInfo:this._mapInfo,mapView:this?._mapView,onToggleFilter:this._toggleFilter.bind(this),onlyShowUpdatableLayers:this.onlyShowUpdatableLayers,ref:t=>this._layerTable=t,shareIncludeEmbed:this.shareIncludeEmbed,shareIncludeSocial:this.shareIncludeSocial,showNewestFirst:this.showNewestFirst,zoomAndScrollToSelected:this.zoomAndScrollToSelected,zoomToScale:this.zoomToScale})),s("div",{class:n,id:"full-map-view"}))}getActions(t,i){const e=this._getDividerIcon(t,i),o=i?this._translations.close:this._translations.open,a="toggle-layout";return s(h,null,s("calcite-action",{active:"splitView"===this.appLayout,class:"toggle-node",icon:"browser",id:"browser-action",onClick:()=>{this.appLayout="splitView"},text:""}),s("calcite-tooltip",{placement:"right","reference-element":"browser-action"},s("span",null,this._translations.splitView)),s("calcite-action",{active:"tableView"===this.appLayout,class:"toggle-node",icon:"dock-left",id:"dock-left-action",onClick:()=>{this.appLayout="tableView"},text:""}),s("calcite-tooltip",{placement:"right","reference-element":"dock-left-action"},s("span",null,this._translations.tableView)),s("calcite-action",{active:"mapView"===this.appLayout,class:"toggle-node",disabled:0===this._layerIds?.length,icon:"browser-map",id:"browser-map-action",onClick:()=>{this.appLayout="mapView"},text:""}),s("calcite-tooltip",{placement:"right","reference-element":"browser-map-action"},s("span",null,this._translations.mapView)),s("calcite-action",{class:"toggle-node",icon:e,id:a,onClick:()=>this._toggleLayout(),slot:"actions-end",text:""}),s("calcite-tooltip",{placement:"bottom","reference-element":a},s("span",null,o)))}_deleteModal(){return s("delete-dialog",{id:"deleteDialogId",ids:this._deleteIds,layer:this._layer,locale:this.locale,onDeleteDialogClose:()=>this._deleteDialogOpen=!1,open:this._deleteDialogOpen})}_mapExtentFilter(){const t=0===this._layerExpressions?.length;return s("calcite-panel",null,s("div",null,s("calcite-block",{class:"dark"===this.theme?"background-dark":"",heading:"","menu-placement":"bottom-end",open:!0},s("div",{class:"filter-extent-container"},s("div",{class:"filter-extent-message"},s("span",null,this._translations.filterByExtentMsg," "),s("calcite-icon",{icon:"information",id:"filter-message-info",scale:"s"}),s("calcite-tooltip",{overlayPositioning:"fixed",placement:"top","reference-element":"filter-message-info"},this._translations.filterByExtentTooltipMsg)),s("calcite-switch",{checked:this._mapExtentFilterChecked,onCalciteSwitchChange:t=>{this._layerTable.filterUpdate(t.target.checked||this._filterList?.filterCount>0,t.target.checked),this._mapExtentFilterChecked=t.target.checked},scale:"m"}))),t&&s("div",{class:"filter-modal-buttons",slot:"footer"},s("calcite-button",{appearance:"outline",onClick:this._handleFilterListReset.bind(this),width:"full"},this._translations.Resetfilter),s("calcite-button",{onClick:this._closeFilter.bind(this),width:"full"},this._translations.close))))}_filterModal(){const t=this._layerExpressions?.length>0;return s("calcite-dialog",{class:"filter-content-space",heading:this._translations?.filter?.replace("{{title}}",this._layer?.title),id:"solutions-filter-dialog",kind:"brand",modal:!0,onCalciteDialogClose:()=>{this._closeFilter()},open:this._filterOpen,width:"s"},this._mapExtentFilter(),t&&s("instant-apps-filter-list",{autoUpdateUrl:!1,closeBtn:!0,closeBtnOnClick:()=>{this._closeFilter()},comboboxOverlayPositioning:"fixed",layerExpressions:this._layerExpressions,onFilterListReset:this._handleFilterListReset.bind(this),onFilterUpdate:()=>{this._updateFilter()},ref:t=>this._filterList=t,view:this._mapView,zoomBtn:!1}))}async _updateFilter(){const t=this._filterList.filterCount>0||this._mapExtentFilterChecked;await(this._layerTable?.filterUpdate(t)),await this._mapCard.updateFilterState(t)}_initLayerExpressions(){const t=this._mapInfo?.filterConfig?.layerExpressions;this._layerExpressions=t?t.filter((t=>t.id===this._layer?.id)):[],this._layerExpressions.filter((t=>t.expressions.filter((t=>t.active)).length>0))}_toggleFilter(){this._filterOpen=!this._filterOpen}_handleFilterListReset(){this._mapExtentFilterChecked=!1,this._mapCard.resetFilter(),this._layerTable.filterReset()}async _closeFilter(){this._filterOpen&&(this._filterOpen=!1,this._layerTable.closeFilter())}_onResize(){const t=this.el.offsetWidth<1024,i=!this._isMobile&&t;this._isMobile=t,i&&(this._panelOpen=!0),this._isMobile?(this.showHideMapPopupAndTable(!this._isMobile),this._isPortraitMobile=!!window.matchMedia("(orientation: portrait)").matches,this.appLayout="splitView"):this._isPortraitMobile=!1,this._layoutMode=this._isPortraitMobile?l.HORIZONTAL:l.GRID}_toggleLayout(){this._panelOpen=!this._panelOpen}_showMapInCardView(){if("mapView"!==this.appLayout){const t=document.getElementById("full-map-view")?.childNodes[0],i=document.getElementById("card-mapView");t&&i.appendChild(t)}}_showMapInFullView(){const t=document.getElementById("card-mapView")?.childNodes[0],i=document.getElementById("full-map-view");t&&i.appendChild(t)}showHideMapPopupAndTable(t){this._hideTable=t,this._hideFooter=t}_getMapInfo(t){let i;return this.mapInfos.some((e=>{if(e.id===t)return i=e,!0})),{...i}}async _setMapView(){this._mapInfo=this._getMapInfo(this._mapChange.id),this._enableCreateFeatures=this._mapInfo.enableCreateFeatures,this._mapView=this._mapChange.mapView,this._initMapZoom(),this._mapView.popupEnabled=!1;const t=!this.defaultCenter||this._defaultCenterHonored?void 0:this.defaultCenter?.split(";").map((t=>parseFloat(t))),i=!this.defaultLevel||this._defaultLevelHonored?void 0:parseInt(this.defaultLevel,10);t&&i&&(await this._mapView.goTo({center:t,zoom:i}),this._defaultCenterHonored=!0,this._defaultLevelHonored=!0)}_initMapZoom(){this.enableZoom?this.enableZoom&&this._mapView.ui.add({component:"zoom",position:"top-left",index:0}):this._mapView.ui.remove("zoom")}async _getTranslations(){const t=await a(this.el);this._translations=t[0]}static get watchers(){return{appLayout:["appLayoutWatchHandler"],enableZoom:["enableZoomWatchHandler"],locale:["localeWatchHandler"]}}};r.style=":host{display:block;--calcite-label-margin-bottom:0px;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.padding-1-2{padding:0.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-color-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.border-right{border-right:2px solid var(--calcite-color-border-3)}.border-sides{border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-border-3)}.position-relative{position:relative}.position-absolute{position:absolute}.position-sticky{position:sticky}.height-50{height:50%}.top-51{top:51px}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-51{height:calc(100% - 51px)}.display-none{display:none !important}.adjusted-height-50_25{height:calc(50% + 25px)}.position-absolute-53{position:absolute;top:53px}.display-grid{display:grid}.height-50-px{height:50px}.padding-inline-start-75{padding-inline-start:0.75rem}.align-items-center{align-items:center}.esri-floor-filter__close-levels-button{width:40px !important;height:40px !important}.esri-floor-filter__level-button{width:40px !important;height:40px !important}.esri-floor-filter__browse-button{width:40px !important;height:40px !important}.position-absolute-50{position:absolute;top:50px;bottom:0px;left:0px;right:0px}.position-absolute-0{position:absolute;top:0px;bottom:0px;left:0px;right:0px}.visibility-hidden{visibility:hidden;height:0px}.position-fixed{position:fixed}.border-width-0{border-width:0px}.border-bottom-width-0{border-bottom-width:0px}.floating-container{position:fixed;width:100px;height:10px;bottom:0;right:0;margin:100px 0px}.floating-container .floating-button{box-shadow:0 10px 25px rgb(92 93 94 / 60%);transform:translatey(5px);transition:all 0.3s}.z-index-0{z-index:0 !important}.z-index-1{z-index:1 !important}.filter-content-space{--calcite-dialog-content-space:0px}.background-dark{background:var(--calcite-color-background)}.filter-extent-container{display:flex;justify-content:space-between;align-items:center;padding:10px 0}.filter-modal-buttons{display:flex;padding:12px;gap:10px}.filter-extent-message{align-items:center;display:flex;gap:5px}";export{r as crowdsource_manager}
@@ -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 i,c as t,g as e,h as s,H as a}from"./p-934e8935.js";import{a as h,l,g as n}from"./p-57be3b9d.js";import{e as o,h as r,i as c,j as d,c as p,k as b,l as f,m as g}from"./p-5693ce7a.js";import{a as y,e as m,f as u}from"./p-80cb7c73.js";import{s as w}from"./p-5e7369d1.js";import{d as v,a as _}from"./p-455c19fa.js";import"./p-d4056c1c.js";import"./p-c6e42ad1.js";import"./p-4fe489cf.js";import"./p-4f236b5d.js";import"./p-570b13d9.js";import"./p-0668e30d.js";const S=class{constructor(e){i(this,e),this.selectionSetChange=t(this,"selectionSetChange",7),this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.enabledLayerIds=[],this.enableLayerFeatures=!0,this.enableLayerFeaturesOnLoad=!1,this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.enableSketchTools=!0,this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.geometries=[],this.isUpdate=!1,this.layerViews=[],this.locale=void 0,this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionSet=void 0,this.selectionLayerIds=[],this.selectLayerView=void 0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this.searchDistanceEnabled=!1,this.useLayerFeaturesEnabled=!1,this._numSelected=0,this._searchTerm=void 0,this._selectionLoading=!1,this._translations=void 0}get el(){return e(this)}_esriRequest;FeatureLayer;Graphic;GraphicsLayer;Search;_geometryEngine;_bufferGeometry;_bufferGraphicsLayer;_bufferTools;_distance;_drawTools;_labelName;_selectLayers;_searchElement;_searchResult;_searchWidget;_selectedIds=[];_selectionLabel="";_skipGeomOIDs;_sketchGraphic;_graphics=[];_unit;_workflowType;_featuresCollection={};async watchGeometriesHandler(i,t){if(i!==t){const t=0===i.length;if(await this._clearResults(t,t),i.length>0)return this._highlightWithOIDsOrGeoms()}}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(i,t){i&&i!==t&&await this._init()}async watchSearchConfigurationHandler(i,t){JSON.stringify(i)!==JSON.stringify(t)&&await this._initSearchWidget()}async clearSelection(){return this._clearResults(!0,!0)}async getSelection(){return/\S+/gm.test(this._selectionLabel)||await this._updateLabel(),{id:this.isUpdate?this.selectionSet.id:Date.now(),searchResult:this._searchResult,buffer:this._bufferGeometry,distance:this._bufferTools?.distance,download:!0,unit:this._bufferTools?.unit,label:this._selectionLabel,selectedIds:this._selectedIds,layerView:this.selectLayerView,geometries:this.geometries,graphics:this._graphics,selectLayers:this.layerViews,skipGeomOIDs:this._skipGeomOIDs,searchDistanceEnabled:this.searchDistanceEnabled,workflowType:this._workflowType,useLayerFeaturesEnabled:this.useLayerFeaturesEnabled,sketchGraphic:this._sketchGraphic}}selectionSetChange;searchConfigurationChangeChanged(i){this.searchConfiguration=i.detail}async distanceChanged(i){await this._distanceChanged(i.detail)}async unitChanged(i){i.detail.newValue!==i.detail.oldValue&&(this._unit=i.detail.newValue,await this._updateLabel())}async componentWillLoad(){await this._getTranslations(),await this._initModules()}async componentDidLoad(){await this._init()}render(){const i=this.enableSketchTools?"":"display-none",t=this.enableSketchTools?"padding-top-1":"";return s(a,{key:"1c312d53b800ca401726c653e12465e92abf0eef"},this._getMapLayerPicker(),s("div",{key:"2da9eb5316656769ec2f80dfa5fbdc190c62b1cb",class:"border-bottom"}),s("div",{key:"b21d332e5da0aa8cfb34fdab7a1075bfbd5efb42",class:"padding-top-sides-1"},s("div",{key:"2dd59511d4f07cc2cd43b5b5c2a8037303d21546",class:"search-widget",ref:i=>{this._searchElement=i}}),s("div",{key:"1149bcd2f36171b82f6902fbf89bb0400383fdde",class:t},s("map-draw-tools",{key:"2d3b1b91a108bf2bb2db463e7ffd4574f4a36dac",active:!0,class:i,editGraphicsEnabled:!this.useLayerFeaturesEnabled,graphics:this._graphics,locale:this.locale,mapView:this.mapView,onSketchGraphicsChange:i=>{this._sketchGraphicsChanged(i)},pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,ref:i=>{this._drawTools=i}})),this.enableSearchDistance?this._getBufferOptions():void 0,this.enableLayerFeatures?this._getUseLayerFeaturesOptions():void 0,this._getNumSelected()),s("div",{key:"d4068bef106e1f4226b1f9c104a626fe0a0f6700",class:"border-bottom"}),this._getNameInput())}_getBufferOptions(){this.enableSearchDistanceOnLoad&&(this.searchDistanceEnabled=!0,this.enableSearchDistanceOnLoad=!1);const i=this.searchDistanceEnabled?"search-distance":"div-not-visible",t="number"==typeof this.selectionSet?.distance?this.selectionSet.distance:this.defaultBufferDistance;return s("div",null,s("div",{class:"padding-top-1 display-flex"},s("calcite-label",{class:"label-margin-0 w-100",layout:"inline-space-between"},s("div",{class:"tooltip-container"},this._translations.searchDistance,s("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"search-distance-icon",scale:"s"}))),s("calcite-popover",{closable:!0,label:"",overlayPositioning:"fixed",referenceElement:"search-distance-icon"},s("span",{class:"tooltip-message"},this._translations.useSearchDistanceTootip)),s("calcite-switch",{checked:this.searchDistanceEnabled,onCalciteSwitchChange:()=>this.searchDistanceEnabled=!this.searchDistanceEnabled})),s("div",{class:i},s("buffer-tools",{disabled:!this.searchDistanceEnabled,distance:t,geometries:this.geometries,locale:this.locale,onBufferComplete:i=>{this._bufferComplete(i)},ref:i=>this._bufferTools=i,unit:this.selectionSet?.unit||this.defaultBufferUnit})))}_getUseLayerFeaturesOptions(){this.enableLayerFeaturesOnLoad&&(this.useLayerFeaturesEnabled=!0,this.enableLayerFeaturesOnLoad=!1);const i=this.useLayerFeaturesEnabled?"div-visible":"div-not-visible";return s("div",null,s("div",{class:"padding-top-1 display-flex"},s("calcite-label",{class:"label-margin-0 w-100",layout:"inline-space-between"},s("div",{class:"tooltip-container"},this._translations.useLayerFeatures,s("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"use-layer-features-icon",scale:"s"}))),s("calcite-popover",{closable:!0,label:"",overlayPositioning:"fixed",referenceElement:"use-layer-features-icon"},s("span",{class:"tooltip-message"},this._translations.useLayerFeaturesTooltip)),s("calcite-switch",{checked:this.useLayerFeaturesEnabled,onCalciteSwitchChange:()=>{this._useLayerFeaturesEnabledChanged()}})),s("div",{class:i+" padding-top-1"},s("map-layer-picker",{enabledLayerIds:this.selectionLayerIds,locale:this.locale,mapView:this.mapView,onLayerSelectionChange:i=>{this._layerSelectionChange(i)},selectedIds:this.layerViews.map((i=>i.layer.id)),showTables:!1})))}_getNumSelected(){const i=h(this.el),t=i&&"en"===i?`${this._translations.selectionLoading}...`:this._translations.selectionLoading;return s("div",{class:"padding-top-1 padding-bottom-1",style:{"align-items":"end",display:"flex"}},this._selectionLoading?s("div",null,s("calcite-loader",{class:"info-blue",inline:!0,label:t,scale:"m",type:"indeterminate"})):s("calcite-icon",{class:"info-blue padding-end-1-2",icon:"feature-layer",scale:"s"}),s("calcite-input-message",{class:"info-blue",scale:"m"},this._selectionLoading?t:this.noResultText&&0===this._numSelected?this.noResultText:this._translations.selectedFeatures.replace("{{n}}",this._numSelected.toString())))}_getNameInput(){return s("div",{class:"padding-sides-1 padding-top-1 "+(this.customLabelEnabled?"":"display-none")},s("calcite-label",{class:"font-bold"},this._translations.listName,s("calcite-input",{onInput:()=>{this._selectionLabel=this._labelName.value},placeholder:this._translations.listNamePlaceholder,ref:i=>{this._labelName=i},value:this._selectionLabel||""})))}_getMapLayerPicker(){return s("div",{class:"display-flex padding-sides-1 padding-bottom-1"},s("calcite-label",{class:"font-bold width-full label-margin-0"},this._translations.inputLayer,s("map-layer-picker",{enabledLayerIds:this.enabledLayerIds,locale:this.locale,mapView:this.mapView,onLayerSelectionChange:i=>{this._inputLayerSelectionChange(i)},selectedIds:this.selectLayerView?[this.selectLayerView.layer.id]:this.selectionSet?[this.selectionSet.layerView.layer.id]:[],showTables:!1})))}async _initModules(){const[i,t,e,s,a,h]=await l(["esri/request","esri/layers/GraphicsLayer","esri/Graphic","esri/widgets/Search","esri/geometry/geometryEngine","esri/layers/FeatureLayer"]);this._esriRequest=i,this.GraphicsLayer=t,this.Graphic=e,this.Search=s,this._geometryEngine=a,this.FeatureLayer=h}async _init(){this._initGraphicsLayer(),await this._initSelectionSet(),await this._initSearchWidget()}async _initSelectionSet(){this.selectionSet&&(this._searchTerm=this.selectionSet.searchResult?.name,this._searchResult=this.selectionSet.searchResult,this._selectLayers=this.selectionSet.selectLayers,this._selectedIds=this.selectionSet.selectedIds,this._skipGeomOIDs=this.selectionSet.skipGeomOIDs,this.searchDistanceEnabled=this.selectionSet.searchDistanceEnabled,this.useLayerFeaturesEnabled=this.selectionSet.useLayerFeaturesEnabled,this._distance=this.selectionSet.searchDistanceEnabled?this.selectionSet.distance:0,this._unit=this.selectionSet.unit,this._workflowType=this.selectionSet.workflowType,this.selectLayerView=this.selectionSet.layerView,this._sketchGraphic=this.selectionSet.sketchGraphic,this.geometries=[...this.selectionSet?.geometries||[]],this._graphics=this.geometries.map((i=>new this.Graphic({geometry:i,symbol:"point"===i.type?this.sketchPointSymbol:"polyline"===i.type?this.sketchLineSymbol:this.sketchPolygonSymbol}))),this._selectionLabel=this.selectionSet?.label,this.useLayerFeaturesEnabled||await(this._drawTools?.updateGraphics()),await o(this.selectionSet.selectedIds,this.selectionSet.layerView,this.mapView,!1))}async _initSearchWidget(){if(this.mapView&&this._searchElement){const i=this._getSearchConfig(this.searchConfiguration,this.mapView),t={view:this.mapView,container:this._searchElement,searchTerm:this._searchTerm,...i};this._searchWidget=new this.Search(t),this._searchWidget.popupEnabled=!1,this._searchWidget.resultGraphicEnabled=!1,this._searchWidget.on("search-clear",(()=>{const i=this._searchClearLabel();this._clearResults(!1,i)})),this._searchWidget.on("select-result",(i=>{this._selectResult(i.result)})),await this._searchWidget.when((()=>{this._searchWidget.allPlaceholder=this.searchConfiguration?.allPlaceholder&&"find address or place"!==this.searchConfiguration.allPlaceholder.toLowerCase()?this.searchConfiguration.allPlaceholder:this._translations.placeholder}))}}async _selectResult(i){if(i){this._searchResult=i;const t=i.feature,e=t?.layer,s=this.selectLayerView.layer,a=t?.getObjectId();let h,l;e?.sourceJSON?.isView&&(h=await this._getViewSourceUrl(e.url)),s?.sourceJSON?.isView&&(l=await this._getViewSourceUrl(s.url));const n=e?.url?.toLowerCase(),o=h?.toLowerCase(),r=s?.url?.toLowerCase(),c=l?.toLowerCase(),d=n&&r&&(n===r||n===c||o===r||o===c)&&!isNaN(a),p=d?[a]:void 0;this._workflowType=y.SEARCH,this._updateLabel();const b=[i.feature];this._updateSelection(b,d,p),this._drawTools.graphics=b,this._searchWidget.resultGraphic.visible=!1}else{const i=this._searchClearLabel();this._clearResults(!1,i)}}async _getViewSourceUrl(i){let t="";const e=`${i}/sources?f=json`;try{const i=await this._esriRequest(e,{query:{f:"json"}});1===i?.data?.services?.length&&(t=i.data.services[0].url)}catch(i){console.log(i)}return t}_searchClearLabel(){return this._searchResult?.name&&this._labelName.value.indexOf(this._searchResult.name)>-1}_getSearchConfig(i,t){const e=i?.sources;return e?.length>0?(i={...i,includeDefaultSources:!1},e.forEach((i=>{if(i.hasOwnProperty("layer")){const e=i,s=e.layer?.id,a=s?t.map.findLayerById(s):null,h=e?.layer?.url;a?e.layer=a:h&&(e.layer=new this.FeatureLayer(h))}})),e?.forEach((i=>{if(i.hasOwnProperty("locator")){const t=i;"ArcGIS World Geocoding Service"===t?.name&&(t.outFields=t.outFields||["Addr_type","Match_addr","StAddr","City"],t.singleLineFieldName="SingleLine"),t.url=t.url,delete t.url}}))):i={...i,includeDefaultSources:!0},i}_initGraphicsLayer(){const i=this._translations.bufferLayer;if(this.mapView){const t=this.mapView.map.layers.findIndex((t=>t.title===i));if(t>-1)this._bufferGraphicsLayer=this.mapView.map.layers.getItemAt(t);else{this._bufferGraphicsLayer=new this.GraphicsLayer({title:i,listMode:"hide"}),w.managedLayers[i]="buffer";const t=this.mapView.map.layers.findIndex((i=>i.title===this._translations.sketchLayer));t>-1?this.mapView.map.layers.add(this._bufferGraphicsLayer,t):this.mapView.map.layers.add(this._bufferGraphicsLayer)}}}async _sketchGraphicsChanged(i,t=!1){const e=i.detail.graphics;if(e.length>0&&e[0])if(t||(this._sketchGraphic=e[0]),this._workflowType=this.useLayerFeaturesEnabled?y.SELECT:y.SKETCH,this._workflowType===y.SKETCH&&await this._drawTools.updateGraphics(),await this._updateLabel(),this._clearSearchWidget(),this.useLayerFeaturesEnabled&&!t){const i=Array.isArray(e)?e.map((i=>i.geometry)):this.geometries;await this._selectLayerFeatures(i[0])}else{const t=e.reduce(((i,t)=>(t?.layer?.objectIdField?i.push(t.attributes[t.layer.objectIdField]):t.getObjectId&&i.push(t.getObjectId()),i)),[]),s=i.detail.useOIDs&&t.length>0;this._updateSelection(e,s,t),s&&await this._highlightFeatures(t)}else await this._clearResults(!0,!0)}async _highlightWithOIDsOrGeoms(){return this._skipGeomOIDs?.length>0?(this._selectedIds=this._skipGeomOIDs,this._highlightFeatures(this._selectedIds)):this._geomQuery(this.geometries)}async _highlightFeatures(i){w.removeHandles(),i.length>0&&w.highlightHandles.push(await r(i,this.selectLayerView,this.mapView)),this._numSelected=i.length,this.selectionSetChange.emit(i.length)}async _selectFeatures(i){this._selectionLoading=!0,this._selectedIds=await c(i,this.selectLayerView.layer),this._selectionLoading=!1,this._drawTools.graphics=this._graphics,await this._highlightFeatures(this._selectedIds)}async _bufferComplete(i){this._bufferGeometry=Array.isArray(i.detail)?i.detail[0]:i.detail;let t=this._bufferTools.distance,e=0;if(this._bufferGeometry){const i=new this.Graphic({geometry:this._bufferGeometry,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});this._bufferGraphicsLayer.removeAll(),this._bufferGraphicsLayer.add(i),await this._selectFeatures([this._bufferGeometry]),await this.mapView.goTo(i.geometry.extent),e=t,t=0}else this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),await this._highlightWithOIDsOrGeoms();await this._distanceChanged({oldValue:t,newValue:e})}_geomQuery(i){const t=d(i,this._geometryEngine);return this._selectFeatures(t)}async _clearResults(i=!0,t=!1){this._selectedIds=[],this._distance=void 0,this._unit=void 0,t&&(this._selectionLabel="",this._labelName&&(this._labelName.value="")),this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),i&&this._searchWidget&&this._clearSearchWidget(),w.removeHandles(),this._drawTools?.clear&&(this._graphics=[],await this._drawTools.clear()),this._numSelected=this._selectedIds.length,this.selectionSetChange.emit(this._numSelected)}_clearSearchWidget(){this._searchWidget.clear(),this._searchResult=void 0}_updateSelection(i,t,e){this._selectedIds=t&&e?e:this._selectedIds,this._skipGeomOIDs=t?e:void 0,this.geometries=Array.isArray(i)?i.map((i=>i.geometry)):this.geometries,this._graphics=i}async _updateLabel(){if(this.enableSearchDistance){const i=this._selectionLabel.indexOf(this._translations.sketch)>-1,t=this._selectionLabel.indexOf(this._translations.select)>-1,e=this._selectionLabel.indexOf(this._searchResult?.name)>-1,s=this._workflowType===y.SEARCH?this._searchResult?.name:this._workflowType===y.SELECT?this._translations.select:this._translations.sketch,a=this._unit?this._unit:this._bufferTools.unit,h=await this._bufferTools.getTranslatedUnit(a),l=isNaN(this._distance)?this._bufferTools.distance:this._distance;this._selectionLabel=i||t||e||!this._selectionLabel?`${s} ${l} ${h}`:this._selectionLabel,this._labelName.value=this._selectionLabel}}async _layerSelectionChange(i){if(Array.isArray(i.detail)&&i.detail.length>0){const t=i.detail.map((i=>p(this.mapView,i)));return Promise.all(t).then((i=>{this.layerViews=i,this._featuresCollection={},this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}))}}async _inputLayerSelectionChange(i){const t=i?.detail?.length>0?i.detail[0]:"";this.selectLayerView&&t===this.selectLayerView.layer.id||(this.selectLayerView=await p(this.mapView,t),await this._updateLabel(),this._bufferGeometry?await this._selectFeatures([this._bufferGeometry]):await this._highlightWithOIDsOrGeoms())}async _distanceChanged(i){i.newValue!==i.oldValue&&(this._distance=i.newValue,await this._updateLabel())}async _selectLayerFeatures(i){this._selectionLoading=!0;const t=this.layerViews.map((t=>(this._featuresCollection[t.layer.id]=[],b(0,t.layer,i,this._featuresCollection))));return Promise.all(t).then((async i=>{this._selectionLoading=!1;let t=[];i.forEach((i=>{Object.keys(i).forEach((e=>{t=t.concat(i[e])}))}));let e=!1;t.forEach((i=>{const t=i.geometry;i.symbol="point"===t.type?this.sketchPointSymbol:"polyline"===t.type?this.sketchLineSymbol:"polygon"===t.type?this.sketchPolygonSymbol:void 0,e=i?.layer?.hasOwnProperty("objectIdField")||i.hasOwnProperty("getObjectId")}));const s=this.layerViews[0].layer,a=this.selectLayerView.layer,h=e&&s.url===a.url&&a.layerId===s.layerId;await this._sketchGraphicsChanged({detail:{graphics:t,useOIDs:h}},!0)}))}_useLayerFeaturesEnabledChanged(){this.useLayerFeaturesEnabled=!this.useLayerFeaturesEnabled,this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}async _getTranslations(){const i=await n(this.el);this._translations=i[0]}static get watchers(){return{geometries:["watchGeometriesHandler"],locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"]}}};S.style=':host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100% !important;border:1px solid var(--calcite-color-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:"1rem" !important}.end-border{border-inline-end:1px solid var(--calcite-color-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.tooltip-container{display:flex}.padding-start-1-2{padding-inline-start:0.5rem}.icon{--calcite-color-icon-color:var(--calcite-color-brand)}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}';const L=Object.freeze({__proto__:null,default:[{descriptionPDF:{labelWidthDisplay:"2-5/8",labelHeightDisplay:"1",labelsPerPageDisplay:"30",averyPartNumber:"*60"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.1875,rightMargin:.1875,topMargin:.5,bottomMargin:.5},numLabelsAcross:3,numLabelsDown:10,labelWidth:2.625,labelHeight:1,horizGapIn:.125,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1",labelsPerPageDisplay:"20",averyPartNumber:"*61"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.47637821,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:10,labelWidth:4,labelHeight:1.0025,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1-1/3",labelsPerPageDisplay:"14",averyPartNumber:"*62"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.81889808,bottomMargin:.83464612},numLabelsAcross:2,numLabelsDown:7,labelWidth:4,labelHeight:1.3352,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:6}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"2",labelsPerPageDisplay:"10",averyPartNumber:"*63"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.5,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:5,labelWidth:4,labelHeight:2,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:12,maxNumLabelLines:10}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"3-1/3",labelsPerPageDisplay:"6",averyPartNumber:"*64"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.4724412,bottomMargin:.50000027},numLabelsAcross:2,numLabelsDown:3,labelWidth:4,labelHeight:3.342,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:14,maxNumLabelLines:12}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"1/2",labelsPerPageDisplay:"80",averyPartNumber:"*67"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.307086375,rightMargin:.307086375,topMargin:.4724412,bottomMargin:.49606326},numLabelsAcross:4,numLabelsDown:20,labelWidth:1.75,labelHeight:.50155,horizGapIn:.29527575,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:3}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"2/3",labelsPerPageDisplay:"60",averyPartNumber:"*95"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.28936983,rightMargin:.28936983,topMargin:.53937037,bottomMargin:.5511814},numLabelsAcross:4,numLabelsDown:15,labelWidth:1.75,labelHeight:.6605,horizGapIn:.30708678,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:4}}]}),k=class{constructor(t){i(this,t),this.defaultNumLabelsPerPage=void 0,this.disabled=!1,this.locale=void 0,this._translations=void 0}get el(){return e(this)}_labelInfoElement;_intl;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async downloadCSV(i,t,e,s=!0){return v(i,t,!0,e,s)}async downloadPDF(i,t,e=!1,s="",a=""){return _(i,t,this._labelInfoElement.selectedOption?.value,e,s,a)}async componentWillLoad(){await this._getTranslations(),await this._initModules()}render(){return s(a,{key:"7ab69f7de831fc9e095b29a930e4256318ea6417"},s("calcite-select",{key:"e865dbfee1e05e856171e86d2b8376de7e251964",disabled:this.disabled,label:"",ref:i=>{this._labelInfoElement=i}}))}componentDidLoad(){this._renderOptions()}async _initModules(){const[i]=await l(["esri/intl"]);this._intl=i}_getLabelSizeText(i){const t="&lrm;"+i.descriptionPDF.labelWidthDisplay+" x "+i.descriptionPDF.labelHeightDisplay+"&rlm;";return this._translations.pdfLabel.replace("{{n}}",i.descriptionPDF.labelsPerPageDisplay).replace("{{labelSize}}",t)}async _getTranslations(){const i=await n(this.el);this._translations=i[0]}_renderOptions(){(L.default||L).sort(((i,t)=>{const e=parseInt(i.descriptionPDF.labelsPerPageDisplay,10),s=parseInt(t.descriptionPDF.labelsPerPageDisplay,10);return e<s?-1:e>s?1:0})).forEach(((i,t)=>{const e=document.createElement("calcite-option");e.value=i,e.innerHTML=this._getLabelSizeText(i),this._labelInfoElement.appendChild(e),(this.defaultNumLabelsPerPage?parseInt(i.descriptionPDF.labelsPerPageDisplay,10)===this.defaultNumLabelsPerPage:0===t)&&(e.selected=!0)}))}static get watchers(){return{locale:["localeWatchHandler"]}}};k.style=":host{display:block}";const x=class{constructor(e){i(this,e),this.selectionLoadingChange=t(this,"selectionLoadingChange",7),this.selectionSetsChanged=t(this,"selectionSetsChanged",7),this.addresseeLayer=void 0,this.enabledLayerIds=[],this.locale=void 0,this.mapView=void 0,this.selectionSets=[],this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._translations=void 0,this._selectionMode=m.ADD,this._refineLayer=void 0}get el(){return e(this)}_addEnabled=!0;_drawTools;_refineSets=[];_enabledLayerIds=[];_layerPicker;_featuresCollection={};_refineSelectionSet;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}selectionLoadingChange;selectionSetsChanged;async componentWillLoad(){await this._getTranslations(),this._enabledLayerIds=this._getEnabledLayerIds(),await this._setRefineSet(this._enabledLayerIds[0])}render(){return s(a,{key:"efa77aec940afdb80051b36300a492ac5764a413"},s("div",{key:"ac59062ad6b3bb15727d1d88ac99ba983c7a2ff9",class:(this._enabledLayerIds.length>1?"display-block":"display-none")+" padding-top-sides-1"},s("div",{key:"27599ce74e9f7d6133f6cbfa40db4acfa8c00eeb",class:"display-flex"},s("calcite-label",{key:"b8acd5160effc68b7ee03a85ba8d6d2a5966c3e8",class:"font-bold width-full label-margin-0"},s("div",{key:"b2185de868b979281984019dbea9cf58a8bdef59",class:"display-flex"},this._translations.inputLayer,s("calcite-icon",{key:"3bd42d1897e3d4374c9affeb20a4af09866645b4",class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"refine-input-layer",scale:"s"})),s("map-layer-picker",{key:"3c7202cb44db02ff2650aa2075af55a51f180018",enabledLayerIds:this._enabledLayerIds,locale:this.locale,mapView:this.mapView,onLayerSelectionChange:i=>{this._layerSelectionChange(i)},ref:i=>{this._layerPicker=i},selectedIds:[this._refineLayer.layer.id],showTables:!1})),s("calcite-popover",{key:"90c204cd9c0b7fb339e857ca82d4038aaf133cc1",closable:!0,label:"",overlayPositioning:"fixed",referenceElement:"refine-input-layer"},s("span",{key:"3ab34165e2d0cf5bdf2615ef938b22b135867831",class:"tooltip-message"},this._translations.inputLayerTip)))),s("div",{key:"6066dc8d8e02d05f7e1d2cfb93a52e9ce68f13e3",class:"padding-1"},s("div",{key:"61191f20e96c2bf7d6ac0e36bf6788cc03d76f81",class:"padding-bottom-1"},s("calcite-segmented-control",{key:"c02207e0a112ef9060e4dfe76a05720bd6d2f226",class:"w-100",width:"full"},s("calcite-segmented-control-item",{key:"5879edf2aa7423abd211fd3d8419cde372d30a9b",checked:this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(m.ADD),value:m.ADD},s("span",{key:"29645f694e4df08d3bcfcaed745f1913fe46037a",class:"font-weight-500"},this._translations.add)),s("calcite-segmented-control-item",{key:"f813c4601a40f8d945ca32b95df3a335e9b3d4ff",checked:!this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(m.REMOVE),value:m.REMOVE},s("span",{key:"801cf62e0a90d908357efe83f705c1484d11dbc9",class:"font-weight-500"},this._translations.remove)))),s("div",{key:"0b687ff2e7e4f3997c4559a4dbdb40d4c37fd5bc"},s("map-draw-tools",{key:"23084e78ffa344ae31df39a13cf8abcf0f313b83",active:!0,drawMode:u.REFINE,locale:this.locale,mapView:this.mapView,onDrawRedo:()=>this._redo(),onDrawUndo:()=>this._undo(),onSketchGraphicsChange:i=>this._sketchGraphicsChanged(i),pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,redoEnabled:this._refineSelectionSet?.redoStack.length>0,ref:i=>{this._drawTools=i},undoEnabled:this._refineSelectionSet?.undoStack.length>0})),s("br",{key:"839e5ecbc67cee44924057e197ebb0897c2cbe28"}),s("calcite-list",{key:"7ad6b634078bab2f02c2b117e05b2385c6988aa5",class:"list-border",label:""},this._getRefineSelectionSetList())))}_layerSelectionChange(i){this._setRefineSet(i.detail[0])}_setSelectionMode(i){this._selectionMode=i}_sketchGraphicsChanged(i){const t=i.detail?.graphics[0].geometry;this._selectFeatures(t)}_getEnabledLayerIds(){return this.selectionSets.reduce(((i,t)=>{const e=t?.layerView?.layer.id;return e&&i.indexOf(e)<0?i.push(e):t.workflowType===y.REFINE&&Object.keys(t.refineInfos).forEach((t=>{i.indexOf(t)<0&&i.push(t)})),i}),[])}async _setRefineSet(i){this.selectionSets.some((t=>{if(t.workflowType===y.REFINE)return this._refineSelectionSet=t,Object.keys(t.refineInfos).indexOf(i)>-1}))||await this._initRefineSet(i,this._refineSelectionSet),this._refineLayer=this._refineSelectionSet.refineInfos[i].layerView}async _initRefineSet(i,t){const e={};e[i]={addIds:[],removeIds:[],layerView:await p(this.mapView,i)},t?t.refineInfos={...t.refineInfos,...e}:(this._refineSelectionSet={id:Date.now(),searchResult:void 0,buffer:void 0,distance:0,download:!0,unit:"feet",label:"Refine",selectedIds:[],layerView:void 0,geometries:[],graphics:[],selectLayers:[],workflowType:y.REFINE,searchDistanceEnabled:!1,useLayerFeaturesEnabled:!1,refineInfos:e,redoStack:[],undoStack:[],sketchGraphic:void 0},this.selectionSets.push(this._refineSelectionSet))}_undo(){const i=this._refineSelectionSet.undoStack.pop();this._updateIds(i.ids,i.mode===m.ADD?m.REMOVE:m.ADD,this._refineSelectionSet.redoStack,i.layerView)}_redo(){const i=this._refineSelectionSet.redoStack.pop();this._updateIds(i.ids,i.mode===m.ADD?m.REMOVE:m.ADD,this._refineSelectionSet.undoStack,i.layerView)}_getRefineSelectionSetList(){const i=this._getTotal(this.selectionSets);let t;this.selectionSets.some((i=>{if(i.workflowType===y.REFINE)return t=i,!0}));let e=0,a=0;return Object.keys(t.refineInfos).forEach((i=>{e+=t.refineInfos[i].addIds.length,a+=t.refineInfos[i].removeIds.length})),[s("calcite-list-item",{label:this._translations.featuresAdded.replace("{{n}}",e.toString()),"non-interactive":!0}),s("calcite-list-item",{label:this._translations.featuresRemoved.replace("{{n}}",a.toString()),"non-interactive":!0}),s("calcite-list-item",{label:this._translations.totalSelected.replace("{{n}}",i.toString()),"non-interactive":!0})]}_getTotal(i){const t=f(i);return Object.keys(t).reduce(((i,e)=>i+t[e].ids.length),0)}async _getTranslations(){const i=await n(this.el);this._translations=i[0]}async _selectFeatures(i){this.selectionLoadingChange.emit(!0),this._featuresCollection[this._refineLayer?.layer.id]=[];const t=await b(0,this._refineLayer?.layer,i,this._featuresCollection);this.selectionLoadingChange.emit(!1);let e=[];Object.keys(t).forEach((i=>{i===this._refineLayer?.layer.id&&(e=e.concat(t[i]))}));const s=Array.isArray(e)?e.map((i=>i.attributes[i?.layer?.objectIdField])):[];await this._updateIds(s,this._selectionMode,this._refineSelectionSet.undoStack,this._refineLayer),this._drawTools.clear()}async _highlightFeatures(){this._clearHighlight(),w.highlightHandles=await g(this.selectionSets)}_clearHighlight(){w.removeHandles()}async _updateIds(i,t,e,s){let a=!1;const h=this._refineSelectionSet.refineInfos,l=s.layer.id,n={};n[l]={addIds:[],removeIds:[],layerView:s};const o=Object.keys(h).indexOf(l)>-1?h[l]:n[l];if(t===m.ADD)o.addIds=[...new Set([...i,...o.addIds])],o.addIds.length>0&&e.push({ids:i,mode:t,layerView:s}),o.removeIds.length>0&&(o.removeIds=o.removeIds.filter((t=>i.indexOf(t)<0)));else{const h=this.selectionSets.reduce(((t,e)=>(i.forEach((i=>{e.workflowType!==y.REFINE?e.selectedIds.indexOf(i)>-1&&t.push(i):Object.keys(e.refineInfos).some((a=>{const h=e.refineInfos[a];if(h.layerView.layer.id===s.layer.id&&h.addIds.indexOf(i)>-1)return t.push(i),!0}))})),t)),[]);o.removeIds=[...new Set([...h,...o.removeIds])],o.addIds=o.addIds.filter((i=>h.indexOf(i)<0)),o.removeIds.length>0&&e.push({ids:h,mode:t,layerView:s}),this.selectionSets=this.selectionSets.reduce(((i,t)=>(t.workflowType!==y.REFINE&&t.layerView.layer.id===s.layer.id?(t.selectedIds=t.selectedIds.filter((i=>o.removeIds.indexOf(i)<0)),t.selectedIds.length>0?i.push(t):a=!0):i.push(t),i)),[])}this._refineSelectionSet.refineInfos[l]=o,this.selectionSets=[...this.selectionSets],a&&this.selectionSetsChanged.emit(this.selectionSets),await this._highlightFeatures()}static get watchers(){return{locale:["localeWatchHandler"]}}};x.style=':host{display:block}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir="rtl"] .main-label{display:flex;float:right}.border{outline:1px solid var(--calcite-color-border-input)}.margin-top-1{margin-top:1rem}.esri-sketch{display:flex;flex-flow:column wrap}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:"Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;line-height:1.3em;background-color:var(--calcite-color-foreground-1)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row nowrap;padding:0}*/ .esri-sketch__tool-section{border-right:1px solid rgba(110, 110, 110, .3)}.esri-sketch__section{align-items:center;display:flex;flex-flow:row nowrap;padding:0 7px;margin:6px 0;border-right:1px solid rgba(110, 110, 110, .3)}.display-flex{display:flex}.font-bold{font-weight:bold}.width-full{width:100%}.label-margin-0{--calcite-label-margin-bottom:0}.padding-start-1-2{padding-inline-start:0.5rem}.font-weight-500{font-weight:500}.word-wrap-anywhere{word-wrap:anywhere}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}';export{S as map_select_tools,k as pdf_download,x as refine_selection}
6
+ import{r as i,c as t,g as e,h as s,H as a}from"./p-934e8935.js";import{a as h,l,g as n}from"./p-8a74a780.js";import{e as o,h as r,i as c,j as d,c as p,k as b,l as f,m as g}from"./p-5693ce7a.js";import{a as y,e as m,f as u}from"./p-80cb7c73.js";import{s as w}from"./p-5e7369d1.js";import{d as v,a as _}from"./p-4379cc5f.js";import"./p-d4056c1c.js";import"./p-c6e42ad1.js";import"./p-af7e43e0.js";import"./p-4f236b5d.js";import"./p-570b13d9.js";import"./p-0668e30d.js";const S=class{constructor(e){i(this,e),this.selectionSetChange=t(this,"selectionSetChange",7),this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.enabledLayerIds=[],this.enableLayerFeatures=!0,this.enableLayerFeaturesOnLoad=!1,this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.enableSketchTools=!0,this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.geometries=[],this.isUpdate=!1,this.layerViews=[],this.locale=void 0,this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionSet=void 0,this.selectionLayerIds=[],this.selectLayerView=void 0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this.searchDistanceEnabled=!1,this.useLayerFeaturesEnabled=!1,this._numSelected=0,this._searchTerm=void 0,this._selectionLoading=!1,this._translations=void 0}get el(){return e(this)}_esriRequest;FeatureLayer;Graphic;GraphicsLayer;Search;_geometryEngine;_bufferGeometry;_bufferGraphicsLayer;_bufferTools;_distance;_drawTools;_labelName;_selectLayers;_searchElement;_searchResult;_searchWidget;_selectedIds=[];_selectionLabel="";_skipGeomOIDs;_sketchGraphic;_graphics=[];_unit;_workflowType;_featuresCollection={};async watchGeometriesHandler(i,t){if(i!==t){const t=0===i.length;if(await this._clearResults(t,t),i.length>0)return this._highlightWithOIDsOrGeoms()}}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(i,t){i&&i!==t&&await this._init()}async watchSearchConfigurationHandler(i,t){JSON.stringify(i)!==JSON.stringify(t)&&await this._initSearchWidget()}async clearSelection(){return this._clearResults(!0,!0)}async getSelection(){return/\S+/gm.test(this._selectionLabel)||await this._updateLabel(),{id:this.isUpdate?this.selectionSet.id:Date.now(),searchResult:this._searchResult,buffer:this._bufferGeometry,distance:this._bufferTools?.distance,download:!0,unit:this._bufferTools?.unit,label:this._selectionLabel,selectedIds:this._selectedIds,layerView:this.selectLayerView,geometries:this.geometries,graphics:this._graphics,selectLayers:this.layerViews,skipGeomOIDs:this._skipGeomOIDs,searchDistanceEnabled:this.searchDistanceEnabled,workflowType:this._workflowType,useLayerFeaturesEnabled:this.useLayerFeaturesEnabled,sketchGraphic:this._sketchGraphic}}selectionSetChange;searchConfigurationChangeChanged(i){this.searchConfiguration=i.detail}async distanceChanged(i){await this._distanceChanged(i.detail)}async unitChanged(i){i.detail.newValue!==i.detail.oldValue&&(this._unit=i.detail.newValue,await this._updateLabel())}async componentWillLoad(){await this._getTranslations(),await this._initModules()}async componentDidLoad(){await this._init()}render(){const i=this.enableSketchTools?"":"display-none",t=this.enableSketchTools?"padding-top-1":"";return s(a,{key:"1c312d53b800ca401726c653e12465e92abf0eef"},this._getMapLayerPicker(),s("div",{key:"2da9eb5316656769ec2f80dfa5fbdc190c62b1cb",class:"border-bottom"}),s("div",{key:"b21d332e5da0aa8cfb34fdab7a1075bfbd5efb42",class:"padding-top-sides-1"},s("div",{key:"2dd59511d4f07cc2cd43b5b5c2a8037303d21546",class:"search-widget",ref:i=>{this._searchElement=i}}),s("div",{key:"1149bcd2f36171b82f6902fbf89bb0400383fdde",class:t},s("map-draw-tools",{key:"2d3b1b91a108bf2bb2db463e7ffd4574f4a36dac",active:!0,class:i,editGraphicsEnabled:!this.useLayerFeaturesEnabled,graphics:this._graphics,locale:this.locale,mapView:this.mapView,onSketchGraphicsChange:i=>{this._sketchGraphicsChanged(i)},pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,ref:i=>{this._drawTools=i}})),this.enableSearchDistance?this._getBufferOptions():void 0,this.enableLayerFeatures?this._getUseLayerFeaturesOptions():void 0,this._getNumSelected()),s("div",{key:"d4068bef106e1f4226b1f9c104a626fe0a0f6700",class:"border-bottom"}),this._getNameInput())}_getBufferOptions(){this.enableSearchDistanceOnLoad&&(this.searchDistanceEnabled=!0,this.enableSearchDistanceOnLoad=!1);const i=this.searchDistanceEnabled?"search-distance":"div-not-visible",t="number"==typeof this.selectionSet?.distance?this.selectionSet.distance:this.defaultBufferDistance;return s("div",null,s("div",{class:"padding-top-1 display-flex"},s("calcite-label",{class:"label-margin-0 w-100",layout:"inline-space-between"},s("div",{class:"tooltip-container"},this._translations.searchDistance,s("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"search-distance-icon",scale:"s"}))),s("calcite-popover",{closable:!0,label:"",overlayPositioning:"fixed",referenceElement:"search-distance-icon"},s("span",{class:"tooltip-message"},this._translations.useSearchDistanceTootip)),s("calcite-switch",{checked:this.searchDistanceEnabled,onCalciteSwitchChange:()=>this.searchDistanceEnabled=!this.searchDistanceEnabled})),s("div",{class:i},s("buffer-tools",{disabled:!this.searchDistanceEnabled,distance:t,geometries:this.geometries,locale:this.locale,onBufferComplete:i=>{this._bufferComplete(i)},ref:i=>this._bufferTools=i,unit:this.selectionSet?.unit||this.defaultBufferUnit})))}_getUseLayerFeaturesOptions(){this.enableLayerFeaturesOnLoad&&(this.useLayerFeaturesEnabled=!0,this.enableLayerFeaturesOnLoad=!1);const i=this.useLayerFeaturesEnabled?"div-visible":"div-not-visible";return s("div",null,s("div",{class:"padding-top-1 display-flex"},s("calcite-label",{class:"label-margin-0 w-100",layout:"inline-space-between"},s("div",{class:"tooltip-container"},this._translations.useLayerFeatures,s("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"use-layer-features-icon",scale:"s"}))),s("calcite-popover",{closable:!0,label:"",overlayPositioning:"fixed",referenceElement:"use-layer-features-icon"},s("span",{class:"tooltip-message"},this._translations.useLayerFeaturesTooltip)),s("calcite-switch",{checked:this.useLayerFeaturesEnabled,onCalciteSwitchChange:()=>{this._useLayerFeaturesEnabledChanged()}})),s("div",{class:i+" padding-top-1"},s("map-layer-picker",{enabledLayerIds:this.selectionLayerIds,locale:this.locale,mapView:this.mapView,onLayerSelectionChange:i=>{this._layerSelectionChange(i)},selectedIds:this.layerViews.map((i=>i.layer.id)),showTables:!1})))}_getNumSelected(){const i=h(this.el),t=i&&"en"===i?`${this._translations.selectionLoading}...`:this._translations.selectionLoading;return s("div",{class:"padding-top-1 padding-bottom-1",style:{"align-items":"end",display:"flex"}},this._selectionLoading?s("div",null,s("calcite-loader",{class:"info-blue",inline:!0,label:t,scale:"m",type:"indeterminate"})):s("calcite-icon",{class:"info-blue padding-end-1-2",icon:"feature-layer",scale:"s"}),s("calcite-input-message",{class:"info-blue",scale:"m"},this._selectionLoading?t:this.noResultText&&0===this._numSelected?this.noResultText:this._translations.selectedFeatures.replace("{{n}}",this._numSelected.toString())))}_getNameInput(){return s("div",{class:"padding-sides-1 padding-top-1 "+(this.customLabelEnabled?"":"display-none")},s("calcite-label",{class:"font-bold"},this._translations.listName,s("calcite-input",{onInput:()=>{this._selectionLabel=this._labelName.value},placeholder:this._translations.listNamePlaceholder,ref:i=>{this._labelName=i},value:this._selectionLabel||""})))}_getMapLayerPicker(){return s("div",{class:"display-flex padding-sides-1 padding-bottom-1"},s("calcite-label",{class:"font-bold width-full label-margin-0"},this._translations.inputLayer,s("map-layer-picker",{enabledLayerIds:this.enabledLayerIds,locale:this.locale,mapView:this.mapView,onLayerSelectionChange:i=>{this._inputLayerSelectionChange(i)},selectedIds:this.selectLayerView?[this.selectLayerView.layer.id]:this.selectionSet?[this.selectionSet.layerView.layer.id]:[],showTables:!1})))}async _initModules(){const[i,t,e,s,a,h]=await l(["esri/request","esri/layers/GraphicsLayer","esri/Graphic","esri/widgets/Search","esri/geometry/geometryEngine","esri/layers/FeatureLayer"]);this._esriRequest=i,this.GraphicsLayer=t,this.Graphic=e,this.Search=s,this._geometryEngine=a,this.FeatureLayer=h}async _init(){this._initGraphicsLayer(),await this._initSelectionSet(),await this._initSearchWidget()}async _initSelectionSet(){this.selectionSet&&(this._searchTerm=this.selectionSet.searchResult?.name,this._searchResult=this.selectionSet.searchResult,this._selectLayers=this.selectionSet.selectLayers,this._selectedIds=this.selectionSet.selectedIds,this._skipGeomOIDs=this.selectionSet.skipGeomOIDs,this.searchDistanceEnabled=this.selectionSet.searchDistanceEnabled,this.useLayerFeaturesEnabled=this.selectionSet.useLayerFeaturesEnabled,this._distance=this.selectionSet.searchDistanceEnabled?this.selectionSet.distance:0,this._unit=this.selectionSet.unit,this._workflowType=this.selectionSet.workflowType,this.selectLayerView=this.selectionSet.layerView,this._sketchGraphic=this.selectionSet.sketchGraphic,this.geometries=[...this.selectionSet?.geometries||[]],this._graphics=this.geometries.map((i=>new this.Graphic({geometry:i,symbol:"point"===i.type?this.sketchPointSymbol:"polyline"===i.type?this.sketchLineSymbol:this.sketchPolygonSymbol}))),this._selectionLabel=this.selectionSet?.label,this.useLayerFeaturesEnabled||await(this._drawTools?.updateGraphics()),await o(this.selectionSet.selectedIds,this.selectionSet.layerView,this.mapView,!1))}async _initSearchWidget(){if(this.mapView&&this._searchElement){const i=this._getSearchConfig(this.searchConfiguration,this.mapView),t={view:this.mapView,container:this._searchElement,searchTerm:this._searchTerm,...i};this._searchWidget=new this.Search(t),this._searchWidget.popupEnabled=!1,this._searchWidget.resultGraphicEnabled=!1,this._searchWidget.on("search-clear",(()=>{const i=this._searchClearLabel();this._clearResults(!1,i)})),this._searchWidget.on("select-result",(i=>{this._selectResult(i.result)})),await this._searchWidget.when((()=>{this._searchWidget.allPlaceholder=this.searchConfiguration?.allPlaceholder&&"find address or place"!==this.searchConfiguration.allPlaceholder.toLowerCase()?this.searchConfiguration.allPlaceholder:this._translations.placeholder}))}}async _selectResult(i){if(i){this._searchResult=i;const t=i.feature,e=t?.layer,s=this.selectLayerView.layer,a=t?.getObjectId();let h,l;e?.sourceJSON?.isView&&(h=await this._getViewSourceUrl(e.url)),s?.sourceJSON?.isView&&(l=await this._getViewSourceUrl(s.url));const n=e?.url?.toLowerCase(),o=h?.toLowerCase(),r=s?.url?.toLowerCase(),c=l?.toLowerCase(),d=n&&r&&(n===r||n===c||o===r||o===c)&&!isNaN(a),p=d?[a]:void 0;this._workflowType=y.SEARCH,this._updateLabel();const b=[i.feature];this._updateSelection(b,d,p),this._drawTools.graphics=b,this._searchWidget.resultGraphic.visible=!1}else{const i=this._searchClearLabel();this._clearResults(!1,i)}}async _getViewSourceUrl(i){let t="";const e=`${i}/sources?f=json`;try{const i=await this._esriRequest(e,{query:{f:"json"}});1===i?.data?.services?.length&&(t=i.data.services[0].url)}catch(i){console.log(i)}return t}_searchClearLabel(){return this._searchResult?.name&&this._labelName.value.indexOf(this._searchResult.name)>-1}_getSearchConfig(i,t){const e=i?.sources;return e?.length>0?(i={...i,includeDefaultSources:!1},e.forEach((i=>{if(i.hasOwnProperty("layer")){const e=i,s=e.layer?.id,a=s?t.map.findLayerById(s):null,h=e?.layer?.url;a?e.layer=a:h&&(e.layer=new this.FeatureLayer(h))}})),e?.forEach((i=>{if(i.hasOwnProperty("locator")){const t=i;"ArcGIS World Geocoding Service"===t?.name&&(t.outFields=t.outFields||["Addr_type","Match_addr","StAddr","City"],t.singleLineFieldName="SingleLine"),t.url=t.url,delete t.url}}))):i={...i,includeDefaultSources:!0},i}_initGraphicsLayer(){const i=this._translations.bufferLayer;if(this.mapView){const t=this.mapView.map.layers.findIndex((t=>t.title===i));if(t>-1)this._bufferGraphicsLayer=this.mapView.map.layers.getItemAt(t);else{this._bufferGraphicsLayer=new this.GraphicsLayer({title:i,listMode:"hide"}),w.managedLayers[i]="buffer";const t=this.mapView.map.layers.findIndex((i=>i.title===this._translations.sketchLayer));t>-1?this.mapView.map.layers.add(this._bufferGraphicsLayer,t):this.mapView.map.layers.add(this._bufferGraphicsLayer)}}}async _sketchGraphicsChanged(i,t=!1){const e=i.detail.graphics;if(e.length>0&&e[0])if(t||(this._sketchGraphic=e[0]),this._workflowType=this.useLayerFeaturesEnabled?y.SELECT:y.SKETCH,this._workflowType===y.SKETCH&&await this._drawTools.updateGraphics(),await this._updateLabel(),this._clearSearchWidget(),this.useLayerFeaturesEnabled&&!t){const i=Array.isArray(e)?e.map((i=>i.geometry)):this.geometries;await this._selectLayerFeatures(i[0])}else{const t=e.reduce(((i,t)=>(t?.layer?.objectIdField?i.push(t.attributes[t.layer.objectIdField]):t.getObjectId&&i.push(t.getObjectId()),i)),[]),s=i.detail.useOIDs&&t.length>0;this._updateSelection(e,s,t),s&&await this._highlightFeatures(t)}else await this._clearResults(!0,!0)}async _highlightWithOIDsOrGeoms(){return this._skipGeomOIDs?.length>0?(this._selectedIds=this._skipGeomOIDs,this._highlightFeatures(this._selectedIds)):this._geomQuery(this.geometries)}async _highlightFeatures(i){w.removeHandles(),i.length>0&&w.highlightHandles.push(await r(i,this.selectLayerView,this.mapView)),this._numSelected=i.length,this.selectionSetChange.emit(i.length)}async _selectFeatures(i){this._selectionLoading=!0,this._selectedIds=await c(i,this.selectLayerView.layer),this._selectionLoading=!1,this._drawTools.graphics=this._graphics,await this._highlightFeatures(this._selectedIds)}async _bufferComplete(i){this._bufferGeometry=Array.isArray(i.detail)?i.detail[0]:i.detail;let t=this._bufferTools.distance,e=0;if(this._bufferGeometry){const i=new this.Graphic({geometry:this._bufferGeometry,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});this._bufferGraphicsLayer.removeAll(),this._bufferGraphicsLayer.add(i),await this._selectFeatures([this._bufferGeometry]),await this.mapView.goTo(i.geometry.extent),e=t,t=0}else this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),await this._highlightWithOIDsOrGeoms();await this._distanceChanged({oldValue:t,newValue:e})}_geomQuery(i){const t=d(i,this._geometryEngine);return this._selectFeatures(t)}async _clearResults(i=!0,t=!1){this._selectedIds=[],this._distance=void 0,this._unit=void 0,t&&(this._selectionLabel="",this._labelName&&(this._labelName.value="")),this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),i&&this._searchWidget&&this._clearSearchWidget(),w.removeHandles(),this._drawTools?.clear&&(this._graphics=[],await this._drawTools.clear()),this._numSelected=this._selectedIds.length,this.selectionSetChange.emit(this._numSelected)}_clearSearchWidget(){this._searchWidget.clear(),this._searchResult=void 0}_updateSelection(i,t,e){this._selectedIds=t&&e?e:this._selectedIds,this._skipGeomOIDs=t?e:void 0,this.geometries=Array.isArray(i)?i.map((i=>i.geometry)):this.geometries,this._graphics=i}async _updateLabel(){if(this.enableSearchDistance){const i=this._selectionLabel.indexOf(this._translations.sketch)>-1,t=this._selectionLabel.indexOf(this._translations.select)>-1,e=this._selectionLabel.indexOf(this._searchResult?.name)>-1,s=this._workflowType===y.SEARCH?this._searchResult?.name:this._workflowType===y.SELECT?this._translations.select:this._translations.sketch,a=this._unit?this._unit:this._bufferTools.unit,h=await this._bufferTools.getTranslatedUnit(a),l=isNaN(this._distance)?this._bufferTools.distance:this._distance;this._selectionLabel=i||t||e||!this._selectionLabel?`${s} ${l} ${h}`:this._selectionLabel,this._labelName.value=this._selectionLabel}}async _layerSelectionChange(i){if(Array.isArray(i.detail)&&i.detail.length>0){const t=i.detail.map((i=>p(this.mapView,i)));return Promise.all(t).then((i=>{this.layerViews=i,this._featuresCollection={},this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}))}}async _inputLayerSelectionChange(i){const t=i?.detail?.length>0?i.detail[0]:"";this.selectLayerView&&t===this.selectLayerView.layer.id||(this.selectLayerView=await p(this.mapView,t),await this._updateLabel(),this._bufferGeometry?await this._selectFeatures([this._bufferGeometry]):await this._highlightWithOIDsOrGeoms())}async _distanceChanged(i){i.newValue!==i.oldValue&&(this._distance=i.newValue,await this._updateLabel())}async _selectLayerFeatures(i){this._selectionLoading=!0;const t=this.layerViews.map((t=>(this._featuresCollection[t.layer.id]=[],b(0,t.layer,i,this._featuresCollection))));return Promise.all(t).then((async i=>{this._selectionLoading=!1;let t=[];i.forEach((i=>{Object.keys(i).forEach((e=>{t=t.concat(i[e])}))}));let e=!1;t.forEach((i=>{const t=i.geometry;i.symbol="point"===t.type?this.sketchPointSymbol:"polyline"===t.type?this.sketchLineSymbol:"polygon"===t.type?this.sketchPolygonSymbol:void 0,e=i?.layer?.hasOwnProperty("objectIdField")||i.hasOwnProperty("getObjectId")}));const s=this.layerViews[0].layer,a=this.selectLayerView.layer,h=e&&s.url===a.url&&a.layerId===s.layerId;await this._sketchGraphicsChanged({detail:{graphics:t,useOIDs:h}},!0)}))}_useLayerFeaturesEnabledChanged(){this.useLayerFeaturesEnabled=!this.useLayerFeaturesEnabled,this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}async _getTranslations(){const i=await n(this.el);this._translations=i[0]}static get watchers(){return{geometries:["watchGeometriesHandler"],locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"]}}};S.style=':host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100% !important;border:1px solid var(--calcite-color-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:"1rem" !important}.end-border{border-inline-end:1px solid var(--calcite-color-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.tooltip-container{display:flex}.padding-start-1-2{padding-inline-start:0.5rem}.icon{--calcite-color-icon-color:var(--calcite-color-brand)}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}';const L=Object.freeze({__proto__:null,default:[{descriptionPDF:{labelWidthDisplay:"2-5/8",labelHeightDisplay:"1",labelsPerPageDisplay:"30",averyPartNumber:"*60"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.1875,rightMargin:.1875,topMargin:.5,bottomMargin:.5},numLabelsAcross:3,numLabelsDown:10,labelWidth:2.625,labelHeight:1,horizGapIn:.125,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1",labelsPerPageDisplay:"20",averyPartNumber:"*61"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.47637821,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:10,labelWidth:4,labelHeight:1.0025,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1-1/3",labelsPerPageDisplay:"14",averyPartNumber:"*62"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.81889808,bottomMargin:.83464612},numLabelsAcross:2,numLabelsDown:7,labelWidth:4,labelHeight:1.3352,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:6}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"2",labelsPerPageDisplay:"10",averyPartNumber:"*63"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.5,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:5,labelWidth:4,labelHeight:2,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:12,maxNumLabelLines:10}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"3-1/3",labelsPerPageDisplay:"6",averyPartNumber:"*64"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.4724412,bottomMargin:.50000027},numLabelsAcross:2,numLabelsDown:3,labelWidth:4,labelHeight:3.342,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:14,maxNumLabelLines:12}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"1/2",labelsPerPageDisplay:"80",averyPartNumber:"*67"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.307086375,rightMargin:.307086375,topMargin:.4724412,bottomMargin:.49606326},numLabelsAcross:4,numLabelsDown:20,labelWidth:1.75,labelHeight:.50155,horizGapIn:.29527575,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:3}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"2/3",labelsPerPageDisplay:"60",averyPartNumber:"*95"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.28936983,rightMargin:.28936983,topMargin:.53937037,bottomMargin:.5511814},numLabelsAcross:4,numLabelsDown:15,labelWidth:1.75,labelHeight:.6605,horizGapIn:.30708678,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:4}}]}),k=class{constructor(t){i(this,t),this.defaultNumLabelsPerPage=void 0,this.disabled=!1,this.locale=void 0,this._translations=void 0}get el(){return e(this)}_labelInfoElement;_intl;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async downloadCSV(i,t,e,s=!0){return v(i,t,!0,e,s)}async downloadPDF(i,t,e=!1,s="",a=""){return _(i,t,this._labelInfoElement.selectedOption?.value,e,s,a)}async componentWillLoad(){await this._getTranslations(),await this._initModules()}render(){return s(a,{key:"7ab69f7de831fc9e095b29a930e4256318ea6417"},s("calcite-select",{key:"e865dbfee1e05e856171e86d2b8376de7e251964",disabled:this.disabled,label:"",ref:i=>{this._labelInfoElement=i}}))}componentDidLoad(){this._renderOptions()}async _initModules(){const[i]=await l(["esri/intl"]);this._intl=i}_getLabelSizeText(i){const t="&lrm;"+i.descriptionPDF.labelWidthDisplay+" x "+i.descriptionPDF.labelHeightDisplay+"&rlm;";return this._translations.pdfLabel.replace("{{n}}",i.descriptionPDF.labelsPerPageDisplay).replace("{{labelSize}}",t)}async _getTranslations(){const i=await n(this.el);this._translations=i[0]}_renderOptions(){(L.default||L).sort(((i,t)=>{const e=parseInt(i.descriptionPDF.labelsPerPageDisplay,10),s=parseInt(t.descriptionPDF.labelsPerPageDisplay,10);return e<s?-1:e>s?1:0})).forEach(((i,t)=>{const e=document.createElement("calcite-option");e.value=i,e.innerHTML=this._getLabelSizeText(i),this._labelInfoElement.appendChild(e),(this.defaultNumLabelsPerPage?parseInt(i.descriptionPDF.labelsPerPageDisplay,10)===this.defaultNumLabelsPerPage:0===t)&&(e.selected=!0)}))}static get watchers(){return{locale:["localeWatchHandler"]}}};k.style=":host{display:block}";const x=class{constructor(e){i(this,e),this.selectionLoadingChange=t(this,"selectionLoadingChange",7),this.selectionSetsChanged=t(this,"selectionSetsChanged",7),this.addresseeLayer=void 0,this.enabledLayerIds=[],this.locale=void 0,this.mapView=void 0,this.selectionSets=[],this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._translations=void 0,this._selectionMode=m.ADD,this._refineLayer=void 0}get el(){return e(this)}_addEnabled=!0;_drawTools;_refineSets=[];_enabledLayerIds=[];_layerPicker;_featuresCollection={};_refineSelectionSet;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}selectionLoadingChange;selectionSetsChanged;async componentWillLoad(){await this._getTranslations(),this._enabledLayerIds=this._getEnabledLayerIds(),await this._setRefineSet(this._enabledLayerIds[0])}render(){return s(a,{key:"efa77aec940afdb80051b36300a492ac5764a413"},s("div",{key:"ac59062ad6b3bb15727d1d88ac99ba983c7a2ff9",class:(this._enabledLayerIds.length>1?"display-block":"display-none")+" padding-top-sides-1"},s("div",{key:"27599ce74e9f7d6133f6cbfa40db4acfa8c00eeb",class:"display-flex"},s("calcite-label",{key:"b8acd5160effc68b7ee03a85ba8d6d2a5966c3e8",class:"font-bold width-full label-margin-0"},s("div",{key:"b2185de868b979281984019dbea9cf58a8bdef59",class:"display-flex"},this._translations.inputLayer,s("calcite-icon",{key:"3bd42d1897e3d4374c9affeb20a4af09866645b4",class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"refine-input-layer",scale:"s"})),s("map-layer-picker",{key:"3c7202cb44db02ff2650aa2075af55a51f180018",enabledLayerIds:this._enabledLayerIds,locale:this.locale,mapView:this.mapView,onLayerSelectionChange:i=>{this._layerSelectionChange(i)},ref:i=>{this._layerPicker=i},selectedIds:[this._refineLayer.layer.id],showTables:!1})),s("calcite-popover",{key:"90c204cd9c0b7fb339e857ca82d4038aaf133cc1",closable:!0,label:"",overlayPositioning:"fixed",referenceElement:"refine-input-layer"},s("span",{key:"3ab34165e2d0cf5bdf2615ef938b22b135867831",class:"tooltip-message"},this._translations.inputLayerTip)))),s("div",{key:"6066dc8d8e02d05f7e1d2cfb93a52e9ce68f13e3",class:"padding-1"},s("div",{key:"61191f20e96c2bf7d6ac0e36bf6788cc03d76f81",class:"padding-bottom-1"},s("calcite-segmented-control",{key:"c02207e0a112ef9060e4dfe76a05720bd6d2f226",class:"w-100",width:"full"},s("calcite-segmented-control-item",{key:"5879edf2aa7423abd211fd3d8419cde372d30a9b",checked:this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(m.ADD),value:m.ADD},s("span",{key:"29645f694e4df08d3bcfcaed745f1913fe46037a",class:"font-weight-500"},this._translations.add)),s("calcite-segmented-control-item",{key:"f813c4601a40f8d945ca32b95df3a335e9b3d4ff",checked:!this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(m.REMOVE),value:m.REMOVE},s("span",{key:"801cf62e0a90d908357efe83f705c1484d11dbc9",class:"font-weight-500"},this._translations.remove)))),s("div",{key:"0b687ff2e7e4f3997c4559a4dbdb40d4c37fd5bc"},s("map-draw-tools",{key:"23084e78ffa344ae31df39a13cf8abcf0f313b83",active:!0,drawMode:u.REFINE,locale:this.locale,mapView:this.mapView,onDrawRedo:()=>this._redo(),onDrawUndo:()=>this._undo(),onSketchGraphicsChange:i=>this._sketchGraphicsChanged(i),pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,redoEnabled:this._refineSelectionSet?.redoStack.length>0,ref:i=>{this._drawTools=i},undoEnabled:this._refineSelectionSet?.undoStack.length>0})),s("br",{key:"839e5ecbc67cee44924057e197ebb0897c2cbe28"}),s("calcite-list",{key:"7ad6b634078bab2f02c2b117e05b2385c6988aa5",class:"list-border",label:""},this._getRefineSelectionSetList())))}_layerSelectionChange(i){this._setRefineSet(i.detail[0])}_setSelectionMode(i){this._selectionMode=i}_sketchGraphicsChanged(i){const t=i.detail?.graphics[0].geometry;this._selectFeatures(t)}_getEnabledLayerIds(){return this.selectionSets.reduce(((i,t)=>{const e=t?.layerView?.layer.id;return e&&i.indexOf(e)<0?i.push(e):t.workflowType===y.REFINE&&Object.keys(t.refineInfos).forEach((t=>{i.indexOf(t)<0&&i.push(t)})),i}),[])}async _setRefineSet(i){this.selectionSets.some((t=>{if(t.workflowType===y.REFINE)return this._refineSelectionSet=t,Object.keys(t.refineInfos).indexOf(i)>-1}))||await this._initRefineSet(i,this._refineSelectionSet),this._refineLayer=this._refineSelectionSet.refineInfos[i].layerView}async _initRefineSet(i,t){const e={};e[i]={addIds:[],removeIds:[],layerView:await p(this.mapView,i)},t?t.refineInfos={...t.refineInfos,...e}:(this._refineSelectionSet={id:Date.now(),searchResult:void 0,buffer:void 0,distance:0,download:!0,unit:"feet",label:"Refine",selectedIds:[],layerView:void 0,geometries:[],graphics:[],selectLayers:[],workflowType:y.REFINE,searchDistanceEnabled:!1,useLayerFeaturesEnabled:!1,refineInfos:e,redoStack:[],undoStack:[],sketchGraphic:void 0},this.selectionSets.push(this._refineSelectionSet))}_undo(){const i=this._refineSelectionSet.undoStack.pop();this._updateIds(i.ids,i.mode===m.ADD?m.REMOVE:m.ADD,this._refineSelectionSet.redoStack,i.layerView)}_redo(){const i=this._refineSelectionSet.redoStack.pop();this._updateIds(i.ids,i.mode===m.ADD?m.REMOVE:m.ADD,this._refineSelectionSet.undoStack,i.layerView)}_getRefineSelectionSetList(){const i=this._getTotal(this.selectionSets);let t;this.selectionSets.some((i=>{if(i.workflowType===y.REFINE)return t=i,!0}));let e=0,a=0;return Object.keys(t.refineInfos).forEach((i=>{e+=t.refineInfos[i].addIds.length,a+=t.refineInfos[i].removeIds.length})),[s("calcite-list-item",{label:this._translations.featuresAdded.replace("{{n}}",e.toString()),"non-interactive":!0}),s("calcite-list-item",{label:this._translations.featuresRemoved.replace("{{n}}",a.toString()),"non-interactive":!0}),s("calcite-list-item",{label:this._translations.totalSelected.replace("{{n}}",i.toString()),"non-interactive":!0})]}_getTotal(i){const t=f(i);return Object.keys(t).reduce(((i,e)=>i+t[e].ids.length),0)}async _getTranslations(){const i=await n(this.el);this._translations=i[0]}async _selectFeatures(i){this.selectionLoadingChange.emit(!0),this._featuresCollection[this._refineLayer?.layer.id]=[];const t=await b(0,this._refineLayer?.layer,i,this._featuresCollection);this.selectionLoadingChange.emit(!1);let e=[];Object.keys(t).forEach((i=>{i===this._refineLayer?.layer.id&&(e=e.concat(t[i]))}));const s=Array.isArray(e)?e.map((i=>i.attributes[i?.layer?.objectIdField])):[];await this._updateIds(s,this._selectionMode,this._refineSelectionSet.undoStack,this._refineLayer),this._drawTools.clear()}async _highlightFeatures(){this._clearHighlight(),w.highlightHandles=await g(this.selectionSets)}_clearHighlight(){w.removeHandles()}async _updateIds(i,t,e,s){let a=!1;const h=this._refineSelectionSet.refineInfos,l=s.layer.id,n={};n[l]={addIds:[],removeIds:[],layerView:s};const o=Object.keys(h).indexOf(l)>-1?h[l]:n[l];if(t===m.ADD)o.addIds=[...new Set([...i,...o.addIds])],o.addIds.length>0&&e.push({ids:i,mode:t,layerView:s}),o.removeIds.length>0&&(o.removeIds=o.removeIds.filter((t=>i.indexOf(t)<0)));else{const h=this.selectionSets.reduce(((t,e)=>(i.forEach((i=>{e.workflowType!==y.REFINE?e.selectedIds.indexOf(i)>-1&&t.push(i):Object.keys(e.refineInfos).some((a=>{const h=e.refineInfos[a];if(h.layerView.layer.id===s.layer.id&&h.addIds.indexOf(i)>-1)return t.push(i),!0}))})),t)),[]);o.removeIds=[...new Set([...h,...o.removeIds])],o.addIds=o.addIds.filter((i=>h.indexOf(i)<0)),o.removeIds.length>0&&e.push({ids:h,mode:t,layerView:s}),this.selectionSets=this.selectionSets.reduce(((i,t)=>(t.workflowType!==y.REFINE&&t.layerView.layer.id===s.layer.id?(t.selectedIds=t.selectedIds.filter((i=>o.removeIds.indexOf(i)<0)),t.selectedIds.length>0?i.push(t):a=!0):i.push(t),i)),[])}this._refineSelectionSet.refineInfos[l]=o,this.selectionSets=[...this.selectionSets],a&&this.selectionSetsChanged.emit(this.selectionSets),await this._highlightFeatures()}static get watchers(){return{locale:["localeWatchHandler"]}}};x.style=':host{display:block}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir="rtl"] .main-label{display:flex;float:right}.border{outline:1px solid var(--calcite-color-border-input)}.margin-top-1{margin-top:1rem}.esri-sketch{display:flex;flex-flow:column wrap}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:"Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;line-height:1.3em;background-color:var(--calcite-color-foreground-1)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row nowrap;padding:0}*/ .esri-sketch__tool-section{border-right:1px solid rgba(110, 110, 110, .3)}.esri-sketch__section{align-items:center;display:flex;flex-flow:row nowrap;padding:0 7px;margin:6px 0;border-right:1px solid rgba(110, 110, 110, .3)}.display-flex{display:flex}.font-bold{font-weight:bold}.width-full{width:100%}.label-margin-0{--calcite-label-margin-bottom:0}.padding-start-1-2{padding-inline-start:0.5rem}.font-weight-500{font-weight:500}.word-wrap-anywhere{word-wrap:anywhere}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}';export{S as map_select_tools,k as pdf_download,x as refine_selection}
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{p as e,b as a}from"./p-934e8935.js";export{s as setNonce}from"./p-934e8935.js";import{g as l}from"./p-c545b14f.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await l(),a(JSON.parse('[["p-f8854c5e",[[0,"crowdsource-manager",{"appLayout":[1025,"app-layout"],"appProxies":[8,"app-proxies"],"basemapConfig":[16],"coverPageEnabled":[4,"cover-page-enabled"],"customInfoText":[1,"custom-info-text"],"defaultAppLayout":[1,"default-app-layout"],"defaultCenter":[1,"default-center"],"defaultGlobalId":[1,"default-global-id"],"defaultLayer":[1,"default-layer"],"defaultLevel":[1,"default-level"],"defaultOid":[1,"default-oid"],"defaultWebmap":[1,"default-webmap"],"honorMapFieldSettings":[4,"honor-map-field-settings"],"introductionWindowEnabled":[4,"introduction-window-enabled"],"enableAutoRefresh":[4,"enable-auto-refresh"],"enableBasemap":[4,"enable-basemap"],"enableColumnReorder":[4,"enable-column-reorder"],"enableCSV":[4,"enable-c-s-v"],"enableFloorFilter":[4,"enable-floor-filter"],"enableFullscreen":[4,"enable-fullscreen"],"enableHome":[4,"enable-home"],"enableLegend":[4,"enable-legend"],"enableSearch":[4,"enable-search"],"enableShare":[4,"enable-share"],"enableSnapping":[4,"enable-snapping"],"enableZoom":[4,"enable-zoom"],"locale":[1],"mapInfos":[16],"onlyShowUpdatableLayers":[4,"only-show-updatable-layers"],"popupHeaderColor":[1,"popup-header-color"],"popupHeaderHoverColor":[1,"popup-header-hover-color"],"popupHeaderHoverTextColor":[1,"popup-header-hover-text-color"],"popupHeaderTextColor":[1,"popup-header-text-color"],"searchConfiguration":[16],"shareIncludeEmbed":[4,"share-include-embed"],"shareIncludeSocial":[4,"share-include-social"],"showNewestFirst":[4,"show-newest-first"],"theme":[1],"zoomAndScrollToSelected":[4,"zoom-and-scroll-to-selected"],"zoomToScale":[2,"zoom-to-scale"],"_deleteDialogOpen":[32],"_enableCreateFeatures":[32],"_hideFooter":[32],"_hideTable":[32],"_isMobile":[32],"_isPortraitMobile":[32],"_translations":[32],"_layer":[32],"_layoutMode":[32],"_mapInfo":[32],"_mapView":[32],"_panelOpen":[32],"_numSelected":[32],"_filterOpen":[32],"_showInformationHeader":[32],"_layerIds":[32],"_isLoading":[32],"_mapExtentFilterChecked":[32]},[[8,"featureSelectionChange","featureSelectionChange"],[8,"popupClosed","popupClosed"],[8,"layoutChanged","layoutChanged"],[8,"mapChanged","mapChanged"],[8,"layerSelectionChange","layerSelectionChange"],[8,"showDelete","showDelete"],[8,"idsFound","idsFound"]],{"appLayout":["appLayoutWatchHandler"],"enableZoom":["enableZoomWatchHandler"],"locale":["localeWatchHandler"]}]]],["p-4a2870b0",[[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"]}]]],["p-c83b1a4a",[[0,"crowdsource-reporter",{"center":[1],"commentButtonText":[1,"comment-button-text"],"commentSubmittedMessage":[1,"comment-submitted-message"],"defaultWebmap":[1,"default-webmap"],"description":[1],"enableAnonymousAccess":[4,"enable-anonymous-access"],"enableAnonymousComments":[4,"enable-anonymous-comments"],"enableComments":[4,"enable-comments"],"enableHome":[4,"enable-home"],"enableLogin":[4,"enable-login"],"enableNewReports":[4,"enable-new-reports"],"enableSearch":[4,"enable-search"],"enableSnapping":[4,"enable-snapping"],"enableZoom":[4,"enable-zoom"],"isMobile":[4,"is-mobile"],"layerExpressions":[16],"layerId":[1,"layer-id"],"level":[1],"locale":[1],"loginTitle":[1,"login-title"],"mapInfos":[16],"mapView":[16],"objectId":[1,"object-id"],"reportButtonText":[1,"report-button-text"],"reportingOptions":[16],"reportsHeader":[1,"reports-header"],"reportSubmittedMessage":[1,"report-submitted-message"],"searchConfiguration":[16],"showComments":[4,"show-comments"],"showUserImageInCommentsList":[4,"show-user-image-in-comments-list"],"showFeatureSymbol":[4,"show-feature-symbol"],"showMyReportsOnly":[4,"show-my-reports-only"],"submitNewReportsMessage":[1,"submit-new-reports-message"],"theme":[1],"zoomToScale":[2,"zoom-to-scale"],"floorLevel":[1,"floor-level"],"showFullCommentTitle":[4,"show-full-comment-title"],"filterByMapExtent":[4,"filter-by-map-extent"],"sortOption":[1,"sort-option"],"_featureCreationFailedErrorMsg":[32],"_filterActive":[32],"_flowItems":[32],"_hasValidLayers":[32],"_mapInfo":[32],"_reportSubmitted":[32],"_selectedLayerName":[32],"_showSubmitCancelButton":[32],"_showLoadingIndicator":[32],"_sidePanelCollapsed":[32],"_translations":[32],"_updatedProgressBarStatus":[32],"_updatedSorting":[32],"_updatedSortOption":[32],"_commentSubmitted":[32],"_addingCommentFailed":[32],"_filterOpen":[32],"updateLayerExpressionsT9n":[64]},null,{"isMobile":["isMobileWatchHandler"],"locale":["localeWatchHandler"],"mapView":["mapViewWatchHandler"],"floorLevel":["floorLevelWatchHandler"],"showMyReportsOnly":["showMyReportsOnlyWatchHandler"],"sortOption":["sortOptionWatchHandler"],"filterByMapExtent":["filterByMapExtentChangeWatchHandler"],"layerExpressions":["layerExpressionsWatchHandler"],"showFeatureSymbol":["showFeatureSymbolWatchHandler"]}]]],["p-a38eee28",[[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"]}]]],["p-522aaa19",[[1,"pci-calculator",{"showAddDeduct":[32]}]]],["p-5b481f0d",[[1,"solution-item-accordion",{"locale":[1],"listSelectionMode":[1,"list-selection-mode"],"templateInfos":[16],"_sortedTemplateInfos":[32],"_translations":[32],"collapseAll":[64],"deselectAll":[64],"selectItem":[64]},null,{"locale":["localeWatchHandler"],"templateInfos":["templateInfosWatchHandler"]}]]],["p-b04179db",[[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"]}]]],["p-50b4945e",[[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"]}]]],["p-a17f839a",[[0,"store-manager",{"value":[1537],"templates":[1040],"authentication":[1040],"getStoreInfo":[64]}]]],["p-5a38b1b3",[[1,"deduct-calculator"]]],["p-6dc629dc",[[0,"feature-list",{"selectedLayerId":[1,"selected-layer-id"],"mapView":[16],"noFeaturesFoundMsg":[1,"no-features-found-msg"],"pageSize":[2,"page-size"],"highlightOnMap":[4,"highlight-on-map"],"highlightOnHover":[4,"highlight-on-hover"],"locale":[1],"sortingInfo":[16],"whereClause":[1,"where-clause"],"textSize":[1,"text-size"],"showInitialLoading":[4,"show-initial-loading"],"showErrorWhenNoFeatures":[4,"show-error-when-no-features"],"showUserImageInList":[4,"show-user-image-in-list"],"showFeatureSymbol":[4,"show-feature-symbol"],"applyLayerViewFilter":[4,"apply-layer-view-filter"],"reportingOptions":[16],"showFullTitle":[4,"show-full-title"],"filterByMapExtent":[4,"filter-by-map-extent"],"_featureItems":[32],"_featuresCount":[32],"_isLoading":[32],"_searchPlaceHolder":[32],"_fullTextSearchInfo":[32],"_translations":[32],"refresh":[64]},null,{"locale":["localeWatchHandler"],"selectedLayerId":["selectedLayerWatchHandler"],"sortingInfo":["sortingInfoWatchHandler"],"whereClause":["whereClauseHandler"],"filterByMapExtent":["filterByMapExtentHandler"]}]]],["p-0def29e6",[[0,"map-card",{"appLayout":[1,"app-layout"],"appProxies":[8,"app-proxies"],"defaultWebmapId":[1,"default-webmap-id"],"defaultLayerId":[1,"default-layer-id"],"enableHome":[4,"enable-home"],"enableLegend":[4,"enable-legend"],"enableFloorFilter":[4,"enable-floor-filter"],"enableFullscreen":[4,"enable-fullscreen"],"enableShare":[4,"enable-share"],"enableSingleExpand":[4,"enable-single-expand"],"enableSearch":[4,"enable-search"],"enableBasemap":[4,"enable-basemap"],"basemapConfig":[16],"hidden":[4],"homeZoomIndex":[2,"home-zoom-index"],"homeZoomPosition":[1,"home-zoom-position"],"homeZoomToolsSize":[1,"home-zoom-tools-size"],"locale":[1],"mapInfos":[16],"mapWidgetsIndex":[2,"map-widgets-index"],"mapWidgetsPosition":[1,"map-widgets-position"],"mapWidgetsSize":[1,"map-widgets-size"],"mapView":[16],"stackTools":[4,"stack-tools"],"theme":[1],"toolOrder":[16],"isMapLayout":[4,"is-map-layout"],"shareIncludeEmbed":[4,"share-include-embed"],"shareIncludeSocial":[4,"share-include-social"],"selectedFeaturesIds":[16],"selectedLayer":[16],"zoomToScale":[2,"zoom-to-scale"],"onlyShowUpdatableLayers":[4,"only-show-updatable-layers"],"isMobile":[4,"is-mobile"],"mapInfo":[16],"_translations":[32],"_searchConfiguration":[32],"_webMapInfo":[32],"_showHideOpen":[32],"_toolInfos":[32],"_controlsThatFit":[32],"resetFilter":[64],"updateFilterState":[64],"updateLayer":[64]},[[8,"mapInfoChange","mapInfoChange"],[8,"noLayersFound","noLayersFound"],[8,"layerSelectionChange","layerSelectionChange"]],{"appLayout":["appLayoutWatchHandler"],"enableHome":["enableHomeWatchHandler"],"enableShare":["enableShareWatchHandler"],"locale":["localeWatchHandler"],"mapView":["mapViewWatchHandler"],"selectedLayer":["selectedLayerWatchHandler"],"selectedFeaturesIds":["selectedFeaturesIdsWatchHandler"],"_controlsThatFit":["_controlsThatFitWatchHandler"]}],[0,"card-manager",{"customInfoText":[1,"custom-info-text"],"enableEditGeometry":[4,"enable-edit-geometry"],"enableSnapping":[4,"enable-snapping"],"isMobile":[4,"is-mobile"],"layer":[1040],"locale":[1],"mapView":[16],"zoomAndScrollToSelected":[4,"zoom-and-scroll-to-selected"],"selectedFeaturesIds":[16],"enableCreateFeatures":[4,"enable-create-features"],"selectingFeatureFromMap":[4,"selecting-feature-from-map"],"_cardLoading":[32],"_graphics":[32],"_showCreateFeatureComponent":[32],"_showSubmitBtn":[32],"_translations":[32]},[[8,"featureSelectionChange","featureSelectionChange"],[8,"layerSelectionChange","layerSelectionChange"]],{"locale":["localeWatchHandler"]}],[0,"layer-table",{"appLayout":[1,"app-layout"],"defaultGlobalId":[16],"defaultLayerId":[1,"default-layer-id"],"defaultOid":[16],"enableAutoRefresh":[4,"enable-auto-refresh"],"enableColumnReorder":[4,"enable-column-reorder"],"enableCSV":[4,"enable-c-s-v"],"enableInlineEdit":[4,"enable-inline-edit"],"enableShare":[4,"enable-share"],"honorMapFieldSettings":[4,"honor-map-field-settings"],"isMobile":[4,"is-mobile"],"locale":[1],"mapHidden":[4,"map-hidden"],"mapInfo":[16],"mapView":[16],"onlyShowUpdatableLayers":[4,"only-show-updatable-layers"],"selectedIds":[16],"shareIncludeEmbed":[4,"share-include-embed"],"shareIncludeSocial":[4,"share-include-social"],"showNewestFirst":[4,"show-newest-first"],"zoomAndScrollToSelected":[4,"zoom-and-scroll-to-selected"],"zoomToScale":[2,"zoom-to-scale"],"createFilterModal":[4,"create-filter-modal"],"_allIds":[32],"_controlsThatFit":[32],"_csvExporting":[32],"_fetchingData":[32],"_filterActive":[32],"_filterOpen":[32],"_layer":[32],"_selectAllActive":[32],"_showHideOpen":[32],"_showOnlySelected":[32],"_toolInfos":[32],"_translations":[32],"_fullTextSearchInfo":[32],"_searchPlaceHolder":[32],"_size":[32],"_queryingData":[32],"closeFilter":[64],"filterReset":[64],"filterUpdate":[64],"validateTableUpdate":[64],"validateActiveEdits":[64],"refresh":[64]},[[10,"beforeMapInfoChange","beforeMapInfoChange"],[8,"editorInitialized","editorInitialized"],[8,"closeEdit","closeEdit"],[8,"selectionChanged","selectionChanged"],[8,"beforeLayerSelectionChange","beforeLayerSelectionChange"],[8,"layerSelectionChange","layerSelectionChange"],[8,"editsComplete","editsComplete"],[8,"facilityChanged","facilityChanged"],[8,"levelChanged","levelChanged"],[8,"siteChanged","siteChanged"],[8,"noLayersFound","noLayersFound"],[8,"clearSelection","clearSelection"]],{"appLayout":["appLayoutWatchHandler"],"defaultOid":["defaultOidWatchHandler"],"defaultGlobalId":["defaultGlobalIdWatchHandler"],"enableCSV":["enableCSVWatchHandler"],"enableInlineEdit":["enableInlineEditWatchHandler"],"enableShare":["enableShareWatchHandler"],"_controlsThatFit":["_controlsThatFitWatchHandler"],"locale":["localeWatchHandler"],"mapHidden":["mapHiddenWatchHandler"],"isMobile":["isMobileWatchHandler"],"mapView":["mapViewWatchHandler"],"_layer":["_layerWatchHandler"],"selectedIds":["selectedIdsWatchHandler"]}]]],["p-1aad0b63",[[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"]}]]],["p-7f36cfb0",[[0,"feature-details",{"enableSnapping":[4,"enable-snapping"],"mapView":[16],"graphics":[16],"reportingOptions":[16],"layerItemsHash":[16],"locale":[1],"showUserImageInCommentsList":[4,"show-user-image-in-comments-list"],"showFullCommentTitle":[4,"show-full-comment-title"],"_likeFieldAvailable":[32],"_likeCount":[32],"_disLikeCount":[32],"_dislikeFieldAvailable":[32],"_commentsAvailable":[32],"_isLikeBtnClicked":[32],"_isDislikeBtnClicked":[32],"_relatedFeaturesOIDs":[32],"_updating":[32],"refresh":[64],"back":[64],"next":[64],"toggleListView":[64]},null,{"graphics":["graphicsWatchHandler"]}],[0,"create-related-feature",{"customizeSubmit":[4,"customize-submit"],"enableSnapping":[4,"enable-snapping"],"locale":[1],"mapView":[16],"selectedFeature":[16],"showGuidingMsg":[4,"show-guiding-msg"],"table":[16],"_editorLoading":[32],"_translations":[32],"submit":[64]},null,{"locale":["localeWatchHandler"],"mapView":["mapViewWatchHandler"],"_editorLoading":["_editorLoadingWatchHandler"]}],[0,"layer-list",{"mapView":[16],"layers":[16],"locale":[1],"showFeatureCount":[4,"show-feature-count"],"showNextIcon":[4,"show-next-icon"],"applyLayerViewFilter":[4,"apply-layer-view-filter"],"filterByMapExtent":[4,"filter-by-map-extent"],"_noLayersToDisplay":[32],"_mapLayerIds":[32],"_isLoading":[32],"_translations":[32],"refresh":[64]},null,{"locale":["localeWatchHandler"],"filterByMapExtent":["filterByMapExtentWatchHandler"]}]]],["p-f6d19f6d",[[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"]}]]],["p-b8e4345e",[[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"]}]]],["p-f3ba92d5",[[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"]}]]],["p-0a60707c",[[1,"delete-dialog",{"ids":[16],"layer":[16],"locale":[1],"open":[4],"_isDeleting":[32],"_translations":[32]},null,{"locale":["localeWatchHandler"]}]]],["p-95056f7c",[[0,"solution-item-icon",{"isPortal":[4,"is-portal"],"type":[1],"typeKeywords":[16]}]]],["p-60b1fe27",[[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"]}]]],["p-30b5dcaf",[[0,"create-feature",{"customizeSubmit":[4,"customize-submit"],"enableSearch":[4,"enable-search"],"enableSnapping":[4,"enable-snapping"],"floorLevel":[1,"floor-level"],"formElements":[8,"form-elements"],"isMobile":[4,"is-mobile"],"locale":[1],"mapView":[16],"searchConfiguration":[16],"selectedLayerId":[1,"selected-layer-id"],"showGuidingMsg":[4,"show-guiding-msg"],"submitNewReportsMessage":[1,"submit-new-reports-message"],"_currentPage":[32],"_editorLoading":[32],"_translations":[32],"submit":[64],"refresh":[64]},null,{"locale":["localeWatchHandler"],"mapView":["mapViewWatchHandler"],"isMobile":["isMobileHandler"],"_editorLoading":["_editorLoadingWatchHandler"]}],[0,"info-card",{"enableEditGeometry":[4,"enable-edit-geometry"],"enableSnapping":[4,"enable-snapping"],"graphics":[16],"isLoading":[4,"is-loading"],"isMobile":[4,"is-mobile"],"mapView":[16],"allowEditing":[4,"allow-editing"],"highlightEnabled":[4,"highlight-enabled"],"locale":[1],"paginationEnabled":[4,"pagination-enabled"],"position":[1],"showCloseBtn":[4,"show-close-btn"],"_alertOpen":[32],"_count":[32],"_editRecordOpen":[32],"_mobileTitle":[32],"_showListView":[32],"_translations":[32],"_navigatedToRelatedFeature":[32],"getSelectedFeature":[64],"refresh":[64],"back":[64],"next":[64],"toggleListView":[64],"updateCurrentGraphic":[64]},[[8,"closeEdit","closeEdit"],[8,"layerSelectionChange","layerSelectionChange"],[8,"refreshGraphics","refreshGraphics"]],{"graphics":["graphicsWatchHandler"],"isMobile":["isMobileWatchHandler"],"locale":["localeWatchHandler"],"mapView":["mapViewWatchHandler"]}],[1,"delete-button",{"deleteDialog":[8,"delete-dialog"],"buttonType":[1,"button-type"],"disabled":[4],"icon":[1],"ids":[16],"layer":[16],"locale":[1],"_confirmDelete":[32],"_deleteEndabled":[32],"_supportsDelete":[32],"_translations":[32]},null,{"ids":["idsWatchHandler"],"layer":["layerWatchHandler"],"locale":["localeWatchHandler"]}],[0,"edit-card",{"enableEditGeometry":[4,"enable-edit-geometry"],"enableSnapping":[4,"enable-snapping"],"graphicIndex":[2,"graphic-index"],"graphics":[1040],"locale":[1],"mapView":[16],"open":[1028],"_editorLoading":[32],"_translations":[32]},[[8,"featureSelectionChange","featureSelectionChange"]],{"graphics":["graphicsWatchHandler"],"locale":["localeWatchHandler"],"open":["openWatchHandler"]}]]],["p-76126e43",[[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"]}]]]]'),e))));
6
+ import{p as e,b as a}from"./p-934e8935.js";export{s as setNonce}from"./p-934e8935.js";import{g as l}from"./p-c545b14f.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await l(),a(JSON.parse('[["p-e68f5f54",[[0,"crowdsource-manager",{"appLayout":[1025,"app-layout"],"appProxies":[8,"app-proxies"],"basemapConfig":[16],"coverPageEnabled":[4,"cover-page-enabled"],"customInfoText":[1,"custom-info-text"],"defaultAppLayout":[1,"default-app-layout"],"defaultCenter":[1,"default-center"],"defaultGlobalId":[1,"default-global-id"],"defaultLayer":[1,"default-layer"],"defaultLevel":[1,"default-level"],"defaultOid":[1,"default-oid"],"defaultWebmap":[1,"default-webmap"],"honorMapFieldSettings":[4,"honor-map-field-settings"],"introductionWindowEnabled":[4,"introduction-window-enabled"],"enableAutoRefresh":[4,"enable-auto-refresh"],"enableBasemap":[4,"enable-basemap"],"enableColumnReorder":[4,"enable-column-reorder"],"enableCSV":[4,"enable-c-s-v"],"enableFloorFilter":[4,"enable-floor-filter"],"enableFullscreen":[4,"enable-fullscreen"],"enableHome":[4,"enable-home"],"enableLegend":[4,"enable-legend"],"enableSearch":[4,"enable-search"],"enableShare":[4,"enable-share"],"enableSnapping":[4,"enable-snapping"],"enableZoom":[4,"enable-zoom"],"locale":[1],"mapInfos":[16],"onlyShowUpdatableLayers":[4,"only-show-updatable-layers"],"popupHeaderColor":[1,"popup-header-color"],"popupHeaderHoverColor":[1,"popup-header-hover-color"],"popupHeaderHoverTextColor":[1,"popup-header-hover-text-color"],"popupHeaderTextColor":[1,"popup-header-text-color"],"searchConfiguration":[16],"shareIncludeEmbed":[4,"share-include-embed"],"shareIncludeSocial":[4,"share-include-social"],"showNewestFirst":[4,"show-newest-first"],"theme":[1],"zoomAndScrollToSelected":[4,"zoom-and-scroll-to-selected"],"zoomToScale":[2,"zoom-to-scale"],"_deleteDialogOpen":[32],"_enableCreateFeatures":[32],"_hideFooter":[32],"_hideTable":[32],"_isMobile":[32],"_isPortraitMobile":[32],"_translations":[32],"_layer":[32],"_layoutMode":[32],"_mapInfo":[32],"_mapView":[32],"_panelOpen":[32],"_numSelected":[32],"_filterOpen":[32],"_showInformationHeader":[32],"_layerIds":[32],"_isLoading":[32],"_mapExtentFilterChecked":[32]},[[8,"featureSelectionChange","featureSelectionChange"],[8,"popupClosed","popupClosed"],[8,"layoutChanged","layoutChanged"],[8,"mapChanged","mapChanged"],[8,"layerSelectionChange","layerSelectionChange"],[8,"showDelete","showDelete"],[8,"idsFound","idsFound"]],{"appLayout":["appLayoutWatchHandler"],"enableZoom":["enableZoomWatchHandler"],"locale":["localeWatchHandler"]}]]],["p-de3ba7be",[[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"]}]]],["p-11ad8edc",[[0,"crowdsource-reporter",{"center":[1],"commentButtonText":[1,"comment-button-text"],"commentSubmittedMessage":[1,"comment-submitted-message"],"defaultWebmap":[1,"default-webmap"],"description":[1],"enableAnonymousAccess":[4,"enable-anonymous-access"],"enableAnonymousComments":[4,"enable-anonymous-comments"],"enableComments":[4,"enable-comments"],"enableHome":[4,"enable-home"],"enableLogin":[4,"enable-login"],"enableNewReports":[4,"enable-new-reports"],"enableSearch":[4,"enable-search"],"enableSnapping":[4,"enable-snapping"],"enableZoom":[4,"enable-zoom"],"isMobile":[4,"is-mobile"],"layerExpressions":[16],"layerId":[1,"layer-id"],"level":[1],"locale":[1],"loginTitle":[1,"login-title"],"mapInfos":[16],"mapView":[16],"objectId":[1,"object-id"],"reportButtonText":[1,"report-button-text"],"reportingOptions":[16],"reportsHeader":[1,"reports-header"],"reportSubmittedMessage":[1,"report-submitted-message"],"searchConfiguration":[16],"showComments":[4,"show-comments"],"showUserImageInCommentsList":[4,"show-user-image-in-comments-list"],"showFeatureSymbol":[4,"show-feature-symbol"],"showMyReportsOnly":[4,"show-my-reports-only"],"submitNewReportsMessage":[1,"submit-new-reports-message"],"theme":[1],"zoomToScale":[2,"zoom-to-scale"],"floorLevel":[1,"floor-level"],"showFullCommentTitle":[4,"show-full-comment-title"],"filterByMapExtent":[4,"filter-by-map-extent"],"sortOption":[1,"sort-option"],"_featureCreationFailedErrorMsg":[32],"_filterActive":[32],"_flowItems":[32],"_hasValidLayers":[32],"_mapInfo":[32],"_reportSubmitted":[32],"_selectedLayerName":[32],"_showSubmitCancelButton":[32],"_showLoadingIndicator":[32],"_sidePanelCollapsed":[32],"_translations":[32],"_updatedProgressBarStatus":[32],"_updatedSorting":[32],"_updatedSortOption":[32],"_commentSubmitted":[32],"_addingCommentFailed":[32],"_filterOpen":[32],"updateLayerExpressionsT9n":[64]},null,{"isMobile":["isMobileWatchHandler"],"locale":["localeWatchHandler"],"mapView":["mapViewWatchHandler"],"floorLevel":["floorLevelWatchHandler"],"showMyReportsOnly":["showMyReportsOnlyWatchHandler"],"sortOption":["sortOptionWatchHandler"],"filterByMapExtent":["filterByMapExtentChangeWatchHandler"],"layerExpressions":["layerExpressionsWatchHandler"],"showFeatureSymbol":["showFeatureSymbolWatchHandler"]}]]],["p-681a41f3",[[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"]}]]],["p-522aaa19",[[1,"pci-calculator",{"showAddDeduct":[32]}]]],["p-8b05b49c",[[1,"solution-item-accordion",{"locale":[1],"listSelectionMode":[1,"list-selection-mode"],"templateInfos":[16],"_sortedTemplateInfos":[32],"_translations":[32],"collapseAll":[64],"deselectAll":[64],"selectItem":[64]},null,{"locale":["localeWatchHandler"],"templateInfos":["templateInfosWatchHandler"]}]]],["p-b1f11c67",[[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"]}]]],["p-7eec82e3",[[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"]}]]],["p-a17f839a",[[0,"store-manager",{"value":[1537],"templates":[1040],"authentication":[1040],"getStoreInfo":[64]}]]],["p-5a38b1b3",[[1,"deduct-calculator"]]],["p-93ebcb9b",[[0,"feature-list",{"selectedLayerId":[1,"selected-layer-id"],"mapView":[16],"noFeaturesFoundMsg":[1,"no-features-found-msg"],"pageSize":[2,"page-size"],"highlightOnMap":[4,"highlight-on-map"],"highlightOnHover":[4,"highlight-on-hover"],"locale":[1],"sortingInfo":[16],"whereClause":[1,"where-clause"],"textSize":[1,"text-size"],"showInitialLoading":[4,"show-initial-loading"],"showErrorWhenNoFeatures":[4,"show-error-when-no-features"],"showUserImageInList":[4,"show-user-image-in-list"],"showFeatureSymbol":[4,"show-feature-symbol"],"applyLayerViewFilter":[4,"apply-layer-view-filter"],"reportingOptions":[16],"showFullTitle":[4,"show-full-title"],"filterByMapExtent":[4,"filter-by-map-extent"],"_featureItems":[32],"_featuresCount":[32],"_isLoading":[32],"_searchPlaceHolder":[32],"_fullTextSearchInfo":[32],"_translations":[32],"refresh":[64]},null,{"locale":["localeWatchHandler"],"selectedLayerId":["selectedLayerWatchHandler"],"sortingInfo":["sortingInfoWatchHandler"],"whereClause":["whereClauseHandler"],"filterByMapExtent":["filterByMapExtentHandler"]}]]],["p-035a1d38",[[0,"map-card",{"appLayout":[1,"app-layout"],"appProxies":[8,"app-proxies"],"defaultWebmapId":[1,"default-webmap-id"],"defaultLayerId":[1,"default-layer-id"],"enableHome":[4,"enable-home"],"enableLegend":[4,"enable-legend"],"enableFloorFilter":[4,"enable-floor-filter"],"enableFullscreen":[4,"enable-fullscreen"],"enableShare":[4,"enable-share"],"enableSingleExpand":[4,"enable-single-expand"],"enableSearch":[4,"enable-search"],"enableBasemap":[4,"enable-basemap"],"basemapConfig":[16],"hidden":[4],"homeZoomIndex":[2,"home-zoom-index"],"homeZoomPosition":[1,"home-zoom-position"],"homeZoomToolsSize":[1,"home-zoom-tools-size"],"locale":[1],"mapInfos":[16],"mapWidgetsIndex":[2,"map-widgets-index"],"mapWidgetsPosition":[1,"map-widgets-position"],"mapWidgetsSize":[1,"map-widgets-size"],"mapView":[16],"stackTools":[4,"stack-tools"],"theme":[1],"toolOrder":[16],"isMapLayout":[4,"is-map-layout"],"shareIncludeEmbed":[4,"share-include-embed"],"shareIncludeSocial":[4,"share-include-social"],"selectedFeaturesIds":[16],"selectedLayer":[16],"zoomToScale":[2,"zoom-to-scale"],"onlyShowUpdatableLayers":[4,"only-show-updatable-layers"],"isMobile":[4,"is-mobile"],"mapInfo":[16],"_translations":[32],"_searchConfiguration":[32],"_webMapInfo":[32],"_showHideOpen":[32],"_toolInfos":[32],"_controlsThatFit":[32],"resetFilter":[64],"updateFilterState":[64],"updateLayer":[64]},[[8,"mapInfoChange","mapInfoChange"],[8,"noLayersFound","noLayersFound"],[8,"layerSelectionChange","layerSelectionChange"]],{"appLayout":["appLayoutWatchHandler"],"enableHome":["enableHomeWatchHandler"],"enableShare":["enableShareWatchHandler"],"locale":["localeWatchHandler"],"mapView":["mapViewWatchHandler"],"selectedLayer":["selectedLayerWatchHandler"],"selectedFeaturesIds":["selectedFeaturesIdsWatchHandler"],"_controlsThatFit":["_controlsThatFitWatchHandler"]}],[0,"card-manager",{"customInfoText":[1,"custom-info-text"],"enableEditGeometry":[4,"enable-edit-geometry"],"enableSnapping":[4,"enable-snapping"],"isMobile":[4,"is-mobile"],"layer":[1040],"locale":[1],"mapView":[16],"zoomAndScrollToSelected":[4,"zoom-and-scroll-to-selected"],"selectedFeaturesIds":[16],"enableCreateFeatures":[4,"enable-create-features"],"selectingFeatureFromMap":[4,"selecting-feature-from-map"],"_cardLoading":[32],"_graphics":[32],"_showCreateFeatureComponent":[32],"_showSubmitBtn":[32],"_translations":[32]},[[8,"featureSelectionChange","featureSelectionChange"],[8,"layerSelectionChange","layerSelectionChange"]],{"locale":["localeWatchHandler"]}],[0,"layer-table",{"appLayout":[1,"app-layout"],"defaultGlobalId":[16],"defaultLayerId":[1,"default-layer-id"],"defaultOid":[16],"enableAutoRefresh":[4,"enable-auto-refresh"],"enableColumnReorder":[4,"enable-column-reorder"],"enableCSV":[4,"enable-c-s-v"],"enableInlineEdit":[4,"enable-inline-edit"],"enableShare":[4,"enable-share"],"honorMapFieldSettings":[4,"honor-map-field-settings"],"isMobile":[4,"is-mobile"],"locale":[1],"mapHidden":[4,"map-hidden"],"mapInfo":[16],"mapView":[16],"onlyShowUpdatableLayers":[4,"only-show-updatable-layers"],"selectedIds":[16],"shareIncludeEmbed":[4,"share-include-embed"],"shareIncludeSocial":[4,"share-include-social"],"showNewestFirst":[4,"show-newest-first"],"zoomAndScrollToSelected":[4,"zoom-and-scroll-to-selected"],"zoomToScale":[2,"zoom-to-scale"],"createFilterModal":[4,"create-filter-modal"],"_allIds":[32],"_controlsThatFit":[32],"_csvExporting":[32],"_fetchingData":[32],"_filterActive":[32],"_filterOpen":[32],"_layer":[32],"_selectAllActive":[32],"_showHideOpen":[32],"_showOnlySelected":[32],"_toolInfos":[32],"_translations":[32],"_fullTextSearchInfo":[32],"_searchPlaceHolder":[32],"_size":[32],"_queryingData":[32],"closeFilter":[64],"filterReset":[64],"filterUpdate":[64],"validateTableUpdate":[64],"validateActiveEdits":[64],"refresh":[64]},[[10,"beforeMapInfoChange","beforeMapInfoChange"],[8,"editorInitialized","editorInitialized"],[8,"closeEdit","closeEdit"],[8,"selectionChanged","selectionChanged"],[8,"beforeLayerSelectionChange","beforeLayerSelectionChange"],[8,"layerSelectionChange","layerSelectionChange"],[8,"editsComplete","editsComplete"],[8,"facilityChanged","facilityChanged"],[8,"levelChanged","levelChanged"],[8,"siteChanged","siteChanged"],[8,"noLayersFound","noLayersFound"],[8,"clearSelection","clearSelection"]],{"appLayout":["appLayoutWatchHandler"],"defaultOid":["defaultOidWatchHandler"],"defaultGlobalId":["defaultGlobalIdWatchHandler"],"enableCSV":["enableCSVWatchHandler"],"enableInlineEdit":["enableInlineEditWatchHandler"],"enableShare":["enableShareWatchHandler"],"_controlsThatFit":["_controlsThatFitWatchHandler"],"locale":["localeWatchHandler"],"mapHidden":["mapHiddenWatchHandler"],"isMobile":["isMobileWatchHandler"],"mapView":["mapViewWatchHandler"],"_layer":["_layerWatchHandler"],"selectedIds":["selectedIdsWatchHandler"]}]]],["p-b3b5dca4",[[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"]}]]],["p-debeb4dc",[[0,"feature-details",{"enableSnapping":[4,"enable-snapping"],"mapView":[16],"graphics":[16],"reportingOptions":[16],"layerItemsHash":[16],"locale":[1],"showUserImageInCommentsList":[4,"show-user-image-in-comments-list"],"showFullCommentTitle":[4,"show-full-comment-title"],"_likeFieldAvailable":[32],"_likeCount":[32],"_disLikeCount":[32],"_dislikeFieldAvailable":[32],"_commentsAvailable":[32],"_isLikeBtnClicked":[32],"_isDislikeBtnClicked":[32],"_relatedFeaturesOIDs":[32],"_updating":[32],"refresh":[64],"back":[64],"next":[64],"toggleListView":[64]},null,{"graphics":["graphicsWatchHandler"]}],[0,"create-related-feature",{"customizeSubmit":[4,"customize-submit"],"enableSnapping":[4,"enable-snapping"],"locale":[1],"mapView":[16],"selectedFeature":[16],"showGuidingMsg":[4,"show-guiding-msg"],"table":[16],"_editorLoading":[32],"_translations":[32],"submit":[64]},null,{"locale":["localeWatchHandler"],"mapView":["mapViewWatchHandler"],"_editorLoading":["_editorLoadingWatchHandler"]}],[0,"layer-list",{"mapView":[16],"layers":[16],"locale":[1],"showFeatureCount":[4,"show-feature-count"],"showNextIcon":[4,"show-next-icon"],"applyLayerViewFilter":[4,"apply-layer-view-filter"],"filterByMapExtent":[4,"filter-by-map-extent"],"_noLayersToDisplay":[32],"_mapLayerIds":[32],"_isLoading":[32],"_translations":[32],"refresh":[64]},null,{"locale":["localeWatchHandler"],"filterByMapExtent":["filterByMapExtentWatchHandler"]}]]],["p-1325fa9e",[[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"]}]]],["p-c45ba7dd",[[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"]}]]],["p-f2cfed3a",[[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"]}]]],["p-5096280f",[[1,"delete-dialog",{"ids":[16],"layer":[16],"locale":[1],"open":[4],"_isDeleting":[32],"_translations":[32]},null,{"locale":["localeWatchHandler"]}]]],["p-95056f7c",[[0,"solution-item-icon",{"isPortal":[4,"is-portal"],"type":[1],"typeKeywords":[16]}]]],["p-2be59c38",[[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"]}]]],["p-605597cf",[[0,"create-feature",{"customizeSubmit":[4,"customize-submit"],"enableSearch":[4,"enable-search"],"enableSnapping":[4,"enable-snapping"],"floorLevel":[1,"floor-level"],"formElements":[8,"form-elements"],"isMobile":[4,"is-mobile"],"locale":[1],"mapView":[16],"searchConfiguration":[16],"selectedLayerId":[1,"selected-layer-id"],"showGuidingMsg":[4,"show-guiding-msg"],"submitNewReportsMessage":[1,"submit-new-reports-message"],"_currentPage":[32],"_editorLoading":[32],"_translations":[32],"submit":[64],"refresh":[64]},null,{"locale":["localeWatchHandler"],"mapView":["mapViewWatchHandler"],"isMobile":["isMobileHandler"],"_editorLoading":["_editorLoadingWatchHandler"]}],[0,"info-card",{"enableEditGeometry":[4,"enable-edit-geometry"],"enableSnapping":[4,"enable-snapping"],"graphics":[16],"isLoading":[4,"is-loading"],"isMobile":[4,"is-mobile"],"mapView":[16],"allowEditing":[4,"allow-editing"],"highlightEnabled":[4,"highlight-enabled"],"locale":[1],"paginationEnabled":[4,"pagination-enabled"],"position":[1],"showCloseBtn":[4,"show-close-btn"],"_alertOpen":[32],"_count":[32],"_editRecordOpen":[32],"_mobileTitle":[32],"_showListView":[32],"_translations":[32],"_navigatedToRelatedFeature":[32],"getSelectedFeature":[64],"refresh":[64],"back":[64],"next":[64],"toggleListView":[64],"updateCurrentGraphic":[64]},[[8,"closeEdit","closeEdit"],[8,"layerSelectionChange","layerSelectionChange"],[8,"refreshGraphics","refreshGraphics"]],{"graphics":["graphicsWatchHandler"],"isMobile":["isMobileWatchHandler"],"locale":["localeWatchHandler"],"mapView":["mapViewWatchHandler"]}],[1,"delete-button",{"deleteDialog":[8,"delete-dialog"],"buttonType":[1,"button-type"],"disabled":[4],"icon":[1],"ids":[16],"layer":[16],"locale":[1],"_confirmDelete":[32],"_deleteEndabled":[32],"_supportsDelete":[32],"_translations":[32]},null,{"ids":["idsWatchHandler"],"layer":["layerWatchHandler"],"locale":["localeWatchHandler"]}],[0,"edit-card",{"enableEditGeometry":[4,"enable-edit-geometry"],"enableSnapping":[4,"enable-snapping"],"graphicIndex":[2,"graphic-index"],"graphics":[1040],"locale":[1],"mapView":[16],"open":[1028],"_editorLoading":[32],"_translations":[32]},[[8,"featureSelectionChange","featureSelectionChange"]],{"graphics":["graphicsWatchHandler"],"locale":["localeWatchHandler"],"open":["openWatchHandler"]}]]],["p-51033697",[[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"]}]]]]'),e))));
@@ -1,10 +1,10 @@
1
- Built Thu 02/13/2025 14:57:33.81
1
+ Built 02/14/2025 13:19:59.57
2
2
  develop
3
- commit ce90ff281a7407abc409886083f9e0cd69e4850f
4
- Merge: 228ea3a58 c167368f1
3
+ commit 781cc12ae177c0fb85b3a28ebc0da286102ae8b3
4
+ Merge: 470f5e0c4 8a26294dd
5
5
  Author: John Hauck <jhauck@esri.com>
6
- Date: Thu Feb 13 13:53:23 2025 -0800
6
+ Date: Fri Feb 14 13:13:15 2025 -0800
7
7
 
8
- Merge pull request #1192 from Esri/sort-option
8
+ Merge pull request #1195 from Esri/CT-Manager-AGOL-2025.R01
9
9
 
10
- add sortOptionWatchHandler
10
+ Delivery for Manager AGOL-2025.R01 - (#1090, #668)
@@ -333,6 +333,18 @@ export declare class LayerTable {
333
333
  * boolean: When true we will not evaluate if the editor has any pending edits
334
334
  */
335
335
  protected _skipEditCheck: boolean;
336
+ /**
337
+ * __esri.Handle: highlight handle for the current feature
338
+ */
339
+ protected _currentFeatureHighlightHandle: __esri.Handle;
340
+ /**
341
+ * __esri.Handle: highlight handle for the default features
342
+ */
343
+ protected _defaultFeaturesHandle: __esri.Handle;
344
+ /**
345
+ * __esri.Handle: highlight handle for temporary / hovered feature
346
+ */
347
+ protected _temporaryFeatureHandle: __esri.Handle;
336
348
  /**
337
349
  * __esri.Handle: handle for the filter by extent
338
350
  */
@@ -349,6 +361,10 @@ export declare class LayerTable {
349
361
  * boolean: When true allow table to update the records
350
362
  */
351
363
  protected _shouldUpdateTableOnExtentChange: boolean;
364
+ /**
365
+ * any: layer view of the selected layer
366
+ */
367
+ protected _selectedLayerView: any;
352
368
  /**
353
369
  * Update the url params when the appLayout changes
354
370
  */
@@ -754,6 +770,24 @@ export declare class LayerTable {
754
770
  * Handle any updates after a selection change has occured and emit the results
755
771
  */
756
772
  protected _finishOnChange(): void;
773
+ /**
774
+ * Highlight feature when hovered over table row
775
+ * @param e The Feature table pointer over event
776
+ */
777
+ protected tempHighlightOnHover(e: __esri.FeatureTableCellPointeroverEvent): void;
778
+ /**
779
+ * Clears the temporary highlight
780
+ */
781
+ protected _removeTempHighlight(): void;
782
+ /**
783
+ * Highlights the current and secondary features on map
784
+ * @param currentFeatureId selected current feature id
785
+ */
786
+ protected _highlightFeatures(currentFeatureId: number): void;
787
+ /**
788
+ * Clears the highlights
789
+ */
790
+ protected _clearHighlights(): void;
757
791
  /**
758
792
  * Reset the tables column templates when we get new column config
759
793
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/solutions-components",
3
- "version": "0.11.32",
3
+ "version": "0.11.33",
4
4
  "description": "Web Components for Esri's Solutions Applications",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",