@esri/solutions-components 5.1.0-next.97 → 5.1.0-next.99

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 (140) hide show
  1. package/dist/cdn/{ZPWKF5SM.js → 2ASJ2RMU.js} +1 -1
  2. package/dist/cdn/{MWMNRIUD.js → 2HLILJFJ.js} +1 -1
  3. package/dist/cdn/{KLLT6LQO.js → 2MK34V3V.js} +1 -1
  4. package/dist/cdn/{VRM54VB2.js → 3RJKHADA.js} +1 -1
  5. package/dist/cdn/{AG22WAP3.js → 44R32SU3.js} +1 -1
  6. package/dist/cdn/{YDNNXKDK.js → 5AGYVY7S.js} +1 -1
  7. package/dist/cdn/{2BUUN32T.js → 6ENQ42XY.js} +1 -1
  8. package/dist/cdn/{63RUMXWC.js → 74OJ22BW.js} +1 -1
  9. package/dist/cdn/{DSLOJFRD.js → 7RFQ7MW2.js} +1 -1
  10. package/dist/cdn/{AMEUOI76.js → 7SJP3QTP.js} +1 -1
  11. package/dist/cdn/{EN6E35NY.js → AOM2RML2.js} +1 -1
  12. package/dist/cdn/AWQQ3CNF.js +2 -0
  13. package/dist/cdn/{RTA6KNSK.js → C47FRSF6.js} +1 -1
  14. package/dist/cdn/{BGXRCU7G.js → CRFLICFH.js} +1 -1
  15. package/dist/cdn/{NBX7J6DU.js → D5FLGJ5G.js} +1 -1
  16. package/dist/cdn/{XGZCGPHU.js → DHPZIFHE.js} +1 -1
  17. package/dist/cdn/{OZE4W3UQ.js → DJFXVUF7.js} +1 -1
  18. package/dist/cdn/{5K6B2WSQ.js → DOK6WZN3.js} +1 -1
  19. package/dist/cdn/{BIVYOKLF.js → E63XW5PH.js} +1 -1
  20. package/dist/cdn/{ZKGLAGUM.js → E6YARJM2.js} +1 -1
  21. package/dist/cdn/{SAI5O6SI.js → GSK7CUMC.js} +1 -1
  22. package/dist/cdn/{EVEXF6IH.js → HHVIWWK2.js} +1 -1
  23. package/dist/cdn/{6HZIF7DC.js → HM4YDFBC.js} +1 -1
  24. package/dist/cdn/{UYY6JODL.js → IVSYM7YY.js} +1 -1
  25. package/dist/cdn/{BSXTZCNH.js → J3MAWMYQ.js} +1 -1
  26. package/dist/cdn/{PVM4ETZ7.js → J6LCEXM3.js} +1 -1
  27. package/dist/cdn/{QKJ4PGBO.js → J6MVIDTT.js} +1 -1
  28. package/dist/cdn/JSJWGKKI.js +2 -0
  29. package/dist/cdn/{G7N3V3YJ.js → JU2VI6UQ.js} +1 -1
  30. package/dist/cdn/{RX3VLQGY.js → KH2WXNMT.js} +1 -1
  31. package/dist/cdn/{Y5N6ESUO.js → LEBQMVF6.js} +1 -1
  32. package/dist/cdn/{FZBIZBOO.js → LOINOBXI.js} +1 -1
  33. package/dist/cdn/{VFZ2J4EW.js → MZXEOLNG.js} +1 -1
  34. package/dist/cdn/{2NVL4Z5G.js → NM7MKM5L.js} +1 -1
  35. package/dist/cdn/{IC2D4LPZ.js → OG6IMWBH.js} +1 -1
  36. package/dist/cdn/{TTV5UYNT.js → Q6XLTRMA.js} +1 -1
  37. package/dist/cdn/{OF33IXBV.js → R3QHE3VT.js} +1 -1
  38. package/dist/cdn/{URVOLZIY.js → TFZ2AK22.js} +1 -1
  39. package/dist/cdn/{TRBSV6ZY.js → TSEG3YWM.js} +1 -1
  40. package/dist/cdn/{3JQP6RGM.js → U3YLNV47.js} +1 -1
  41. package/dist/cdn/{3EVMNCX6.js → UUPARGLA.js} +1 -1
  42. package/dist/cdn/{6ZRRFBIZ.js → VG6ML5VK.js} +1 -1
  43. package/dist/cdn/{U6CZXWSF.js → VLBW4YNM.js} +1 -1
  44. package/dist/cdn/{I2GXCEQM.js → XKFPWKMX.js} +1 -1
  45. package/dist/cdn/{NEM3F44J.js → Y3PCMVG7.js} +1 -1
  46. package/dist/cdn/{7RK7YWYV.js → ZS6XB5WK.js} +1 -1
  47. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ar.json +1 -1
  48. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.bg.json +1 -1
  49. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.bs.json +1 -1
  50. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ca.json +1 -1
  51. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.cs.json +1 -1
  52. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.da.json +1 -1
  53. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.de.json +1 -1
  54. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.el.json +1 -1
  55. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.es.json +1 -1
  56. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.et.json +1 -1
  57. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.fi.json +1 -1
  58. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.fr.json +1 -1
  59. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.he.json +1 -1
  60. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.hr.json +1 -1
  61. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.hu.json +1 -1
  62. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.id.json +1 -1
  63. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.it.json +1 -1
  64. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ja.json +1 -1
  65. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ko.json +1 -1
  66. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.lt.json +1 -1
  67. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.lv.json +1 -1
  68. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.nl.json +1 -1
  69. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.no.json +1 -1
  70. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pl.json +1 -1
  71. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pt-BR.json +1 -1
  72. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pt-PT.json +1 -1
  73. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ro.json +1 -1
  74. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ru.json +1 -1
  75. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sk.json +1 -1
  76. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sl.json +1 -1
  77. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sr.json +1 -1
  78. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sv.json +1 -1
  79. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.th.json +1 -1
  80. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.tr.json +1 -1
  81. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.uk.json +1 -1
  82. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.vi.json +1 -1
  83. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-CN.json +1 -1
  84. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-HK.json +1 -1
  85. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-TW.json +1 -1
  86. package/dist/cdn/assets/solution-details-panel/t9n/messages.en.json +1 -1
  87. package/dist/cdn/assets/solution-details-panel/t9n/messages.json +1 -1
  88. package/dist/cdn/assets/solution-item-accordion/t9n/messages.ar.json +1 -1
  89. package/dist/cdn/assets/solution-item-accordion/t9n/messages.bg.json +1 -1
  90. package/dist/cdn/assets/solution-item-accordion/t9n/messages.bs.json +1 -1
  91. package/dist/cdn/assets/solution-item-accordion/t9n/messages.ca.json +1 -1
  92. package/dist/cdn/assets/solution-item-accordion/t9n/messages.cs.json +1 -1
  93. package/dist/cdn/assets/solution-item-accordion/t9n/messages.da.json +1 -1
  94. package/dist/cdn/assets/solution-item-accordion/t9n/messages.de.json +1 -1
  95. package/dist/cdn/assets/solution-item-accordion/t9n/messages.el.json +1 -1
  96. package/dist/cdn/assets/solution-item-accordion/t9n/messages.es.json +1 -1
  97. package/dist/cdn/assets/solution-item-accordion/t9n/messages.et.json +1 -1
  98. package/dist/cdn/assets/solution-item-accordion/t9n/messages.fi.json +1 -1
  99. package/dist/cdn/assets/solution-item-accordion/t9n/messages.fr.json +1 -1
  100. package/dist/cdn/assets/solution-item-accordion/t9n/messages.he.json +1 -1
  101. package/dist/cdn/assets/solution-item-accordion/t9n/messages.hr.json +1 -1
  102. package/dist/cdn/assets/solution-item-accordion/t9n/messages.hu.json +1 -1
  103. package/dist/cdn/assets/solution-item-accordion/t9n/messages.id.json +1 -1
  104. package/dist/cdn/assets/solution-item-accordion/t9n/messages.it.json +1 -1
  105. package/dist/cdn/assets/solution-item-accordion/t9n/messages.ja.json +1 -1
  106. package/dist/cdn/assets/solution-item-accordion/t9n/messages.ko.json +1 -1
  107. package/dist/cdn/assets/solution-item-accordion/t9n/messages.lt.json +1 -1
  108. package/dist/cdn/assets/solution-item-accordion/t9n/messages.lv.json +1 -1
  109. package/dist/cdn/assets/solution-item-accordion/t9n/messages.nl.json +1 -1
  110. package/dist/cdn/assets/solution-item-accordion/t9n/messages.no.json +1 -1
  111. package/dist/cdn/assets/solution-item-accordion/t9n/messages.pl.json +1 -1
  112. package/dist/cdn/assets/solution-item-accordion/t9n/messages.pt-BR.json +1 -1
  113. package/dist/cdn/assets/solution-item-accordion/t9n/messages.pt-PT.json +1 -1
  114. package/dist/cdn/assets/solution-item-accordion/t9n/messages.ro.json +1 -1
  115. package/dist/cdn/assets/solution-item-accordion/t9n/messages.ru.json +1 -1
  116. package/dist/cdn/assets/solution-item-accordion/t9n/messages.sk.json +1 -1
  117. package/dist/cdn/assets/solution-item-accordion/t9n/messages.sl.json +1 -1
  118. package/dist/cdn/assets/solution-item-accordion/t9n/messages.sr.json +1 -1
  119. package/dist/cdn/assets/solution-item-accordion/t9n/messages.sv.json +1 -1
  120. package/dist/cdn/assets/solution-item-accordion/t9n/messages.th.json +1 -1
  121. package/dist/cdn/assets/solution-item-accordion/t9n/messages.tr.json +1 -1
  122. package/dist/cdn/assets/solution-item-accordion/t9n/messages.uk.json +1 -1
  123. package/dist/cdn/assets/solution-item-accordion/t9n/messages.vi.json +1 -1
  124. package/dist/cdn/assets/solution-item-accordion/t9n/messages.zh-CN.json +1 -1
  125. package/dist/cdn/assets/solution-item-accordion/t9n/messages.zh-HK.json +1 -1
  126. package/dist/cdn/assets/solution-item-accordion/t9n/messages.zh-TW.json +1 -1
  127. package/dist/cdn/index.js +1 -1
  128. package/dist/chunks/helpers.js +1 -1
  129. package/dist/components/solution-deployed-card-panel/customElement.js +1 -1
  130. package/dist/components/solution-details-card/customElement.js +25 -22
  131. package/dist/components/solution-details-panel/customElement.d.ts +8 -0
  132. package/dist/components/solution-details-panel/customElement.js +140 -124
  133. package/dist/components/solution-details-panel/index.js +2 -0
  134. package/dist/docs/api.json +1 -1
  135. package/dist/docs/docs.json +1 -1
  136. package/dist/docs/web-types.json +1 -1
  137. package/dist/solutions-components_commit.txt +8 -5
  138. package/package.json +1 -1
  139. package/dist/cdn/3CDDDNHX.js +0 -2
  140. package/dist/cdn/QADMFYXT.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import f from"./3CDDDNHX.js";import e from"./NEM3F44J.js";import d from"./AMEUOI76.js";import"./QPNIPE5H.js";import"./ZYCAAXQF.js";import"./O3O4EPB6.js";import"./ESBPGZRY.js";import c from"./BGXRCU7G.js";import b from"./UYY6JODL.js";import a from"./QKJ4PGBO.js";import"./2B4SGB3I.js";import"./YKQDHR27.js";import"./J75MHJID.js";import"./R67EKKSL.js";import"./BVWAUO73.js";import"./K3DQKY7V.js";import"./TEHBW75B.js";import"./ALSK2SPM.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./BMBNSJZQ.js";import"./5HZMUGQD.js";import"./5VDDAINK.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./XQQ52NKX.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import"./KIUBUHVM.js";import"./H5E6ISYP.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,,a])=>{return a},a,b,c,d,e,f)
2
+ import f from"./JSJWGKKI.js";import e from"./Y3PCMVG7.js";import d from"./7SJP3QTP.js";import"./QPNIPE5H.js";import"./ZYCAAXQF.js";import"./O3O4EPB6.js";import"./ESBPGZRY.js";import c from"./CRFLICFH.js";import b from"./IVSYM7YY.js";import a from"./J6MVIDTT.js";import"./2B4SGB3I.js";import"./YKQDHR27.js";import"./J75MHJID.js";import"./R67EKKSL.js";import"./BVWAUO73.js";import"./K3DQKY7V.js";import"./TEHBW75B.js";import"./ALSK2SPM.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./BMBNSJZQ.js";import"./5HZMUGQD.js";import"./5VDDAINK.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./XQQ52NKX.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import"./KIUBUHVM.js";import"./H5E6ISYP.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,,a])=>{return a},a,b,c,d,e,f)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import h from"./NBPM6OJQ.js";import{a as H}from"./BU5PIAGS.js";import e from"./BGXRCU7G.js";import d from"./QKJ4PGBO.js";import c from"./CEP54NLT.js";import a from"./YVNP437O.js";import{a as S}from"./R67EKKSL.js";import{b as E}from"./KIUBUHVM.js";import{E as g,F as f,G as x,I as b,h as v,i as o,l as _,q as p,t as T}from"./H5E6ISYP.js";export default $arcgis.t(([L,c,M,w,{c:O},{c:C,d:A,j:y},{l:F},{f:m},{b:$}])=>{var R=v`@layer{:host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.display-none{display:none}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51-px{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir=rtl] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-surface-1)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none!important}vaadin-grid-cell-content{font-size:14px!important;color:var(--calcite-color-text-3)!important}.absolute-right{position:absolute;right:0;left:unset}html[dir=rtl] .absolute-right{left:0;right:unset}.disabled{cursor:default!important;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.actions-end{height:50px!important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-dialog-content-space: 0}.esri-feature-table__table-container{height:100%}.search-container{background-color:var(--calcite-color-surface-2)!important}.search{--calcite-color-border-input: var(--calcite-color-border-3);width:60%;padding:10px}.delete-red{--calcite-icon-color: var(--calcite-color-status-danger);--calcite-color-text-1: var(--calcite-color-status-danger);--calcite-color-text-3: var(--calcite-color-status-danger)}.label-override{white-space:nowrap}.padding-start-1-4{padding-inline-start:.5rem}.panel-header-override{--calcite-panel-header-content-space: 0px}.danger-label-color{color:var(--calcite-color-status-danger)}.danger-icon-color{--calcite-icon-color: var(--calcite-color-status-danger)}.width-51{width:51px}.height-51{height:51px}calcite-action-bar{--calcite-internal-action-bar-gap: 0px;--calcite-internal-action-bar-padding: 0px}}`,I=class extends x{constructor(){super(),this.defaultGlobalId=[],this.defaultLayerId="",this.defaultOid=[],this.enableAutoRefresh=!1,this.enableColumnReorder=!0,this.enableCSV=!1,this.enableInlineEdit=!1,this.enableShare=!1,this.enableTableAutosave=!0,this.featureSelectionMode="multiple",this.selectedRelatedIds=[],this.honorMapFieldSettings=!1,this.isMobile=!1,this.mapHidden=!1,this.showOnlyUpdatableLayers=!1,this.selectedIds=[],this.shareIncludeEmbed=!1,this.shareIncludeSocial=!1,this.showNewestFirst=!1,this.zoomAndScrollToSelected=!1,this._allIds=[],this._configLayerOrderDefined=!1,this._csvExporting=!1,this._fetchingData=!1,this._hideTable=!1,this._filterActive=!1,this._selectAllActive=!1,this._showHideOpen=!1,this._showOnlySelected=!1,this._toolInfos=[],this._translations=S({name:"layer-table",blocking:!0}),this._fullTextSearchInfo=[],this._searchPlaceHolder="",this._size=0,this._queryingData=!1,this._editEnabled=!1,this._enabledLayerIds=[],this._defaultGlobalIdHonored=!1,this._defaultOidHonored=!1,this._deleteEnabled=!1,this._floorExpression="",this._floorField="",this._floorLevel="",this._loaded=!1,this._shareNode=g(),this._toolbar=g(),this._searchExpression="",this._skipEditCheck=!1,this._tempSelectedIds=[],this._outOFExtentOids=[],this._shouldUpdateTableOnExtentChange=!0,this._creatingFeature=!1,this._searchNode=g(),this.columnReorder=p(),this.featureSelectionChange=p(),this.toggleFilter=p(),this.showDelete=p(),this.relatedRecordToggled=p(),this.editMultipleFeatures=p(),this.listenOn(window,"beforeMapInfoChange",this.beforeMapInfoChange,{capture:!0}),this.listenOn(window,"editorInitialized",this.editorInitialized),this.listenOn(window,"closeEdit",this.closeEdit),this.listenOn(window,"selectionChanged",this.selectionChanged),this.listenOn(window,"beforeLayerSelectionChange",this.beforeLayerSelectionChange),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"editsComplete",this.editsComplete),this.listenOn(window,"facilityChanged",this.facilityChanged),this.listenOn(window,"levelChanged",this.levelChanged),this.listenOn(window,"siteChanged",this.siteChanged),this.listenOn(window,"noLayersFound",this.noLayersFound),this.listenOn(window,"clearSelection",this.clearSelection),this.listenOn(window,"mapChanged",this.mapChanged),this.listenOn(window,"featuresSelected",this.featuresSelected),this.listenOn(window,"createWorkFlowStarted",this.createWorkFlowStarted),this.listenOn(window,"backFromCreateWorkFlow",this.backFromCreateWorkFlow),H(window)}static{this.properties={appLayout:1,defaultGlobalId:0,defaultLayerId:1,defaultOid:0,enableAutoRefresh:5,enableColumnReorder:5,enableCSV:5,enableInlineEdit:5,enableShare:5,enableTableAutosave:5,featureSelectionMode:1,selectedRelatedIds:0,honorMapFieldSettings:5,isMobile:5,mapHidden:5,mapInfo:0,mapView:0,showOnlyUpdatableLayers:5,selectedIds:0,shareIncludeEmbed:5,shareIncludeSocial:5,showNewestFirst:5,zoomAndScrollToSelected:5,zoomToScale:9,_allIds:16,_configLayerOrderDefined:16,_csvExporting:16,_fetchingData:16,_hideTable:16,_filterActive:16,_layer:16,_selectAllActive:16,_showHideOpen:16,_showOnlySelected:16,_toolInfos:16,_translations:16,_fullTextSearchInfo:16,_searchPlaceHolder:16,_size:16,_queryingData:16}}static{this.styles=R}static{this.shadowRootOptions=T}willUpdate(e){if(e.has("appLayout")&&this.appLayoutWatchHandler(),e.has("defaultOid")&&this.defaultOidWatchHandler(),e.has("defaultGlobalId")&&this.defaultGlobalIdWatchHandler(),e.has("enableCSV")&&this.enableCSVWatchHandler(),e.has("enableInlineEdit")&&this.enableInlineEditWatchHandler(),e.has("mapHidden")&&this.mapHiddenWatchHandler(),e.has("isMobile")&&this.isMobileWatchHandler(),e.has("mapInfo")&&this.mapInfoWatchHandler(),e.has("mapView")&&this.mapViewWatchHandler(),e.has("_layer")&&this._layerWatchHandler(),e.has("selectedIds")&&(this.hasUpdated||JSON.stringify(e.get("selectedIds"))!==JSON.stringify(this.selectedIds))&&this.selectedIdsWatchHandler(),e.has("selectedRelatedIds")&&(this.hasUpdated||JSON.stringify(e.get("selectedRelatedIds"))!==JSON.stringify(this.selectedRelatedIds))&&this.selectedRelatedIdsWatchHandler(),e.has("enableTableAutosave")&&this.hasUpdated&&this._table&&(this._table.autoSaveEnabled=this.enableTableAutosave),e.has("_translations")){let t=this._translations._lang,i=e.get("_translations")?._lang;t&&i&&t!==i&&this._initToolInfos()}}async appLayoutWatchHandler(){await this._initToolInfos(),this._updateShareUrl()}async defaultOidWatchHandler(){await this._handleDefaults()}async defaultGlobalIdWatchHandler(){await this._handleDefaults()}async enableCSVWatchHandler(){this._toolInfos?.length>0&&await this._initToolInfos()}enableInlineEditWatchHandler(){this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit)}async mapHiddenWatchHandler(){this._toolInfos?.length>0&&await this._initToolInfos()}async isMobileWatchHandler(){!this._toolInfos&&!this.isMobile&&await this._initToolInfos()}async mapInfoWatchHandler(){this._configLayerOrderDefined="configLayerOrder"in(this.mapInfo?.layerOptions||{}),this._enabledLayerIds=F(this.mapInfo?.layerOptions?.layers||[],this.mapInfo?.layerOptions?.configLayerOrder),this._table&&(this._resetColumnTemplates(),this._sortTable(),await this._initToolInfos())}async mapViewWatchHandler(){this._mapClickHandle&&this._mapClickHandle.remove(),this.mapView&&(this._floorExpression="",this._searchExpression="undefined",this.mapView.highlights=[{name:"default",color:"#00FFFF"},{name:"current-selection",color:"#ff00ff"},{name:"temporary",color:"#FFFF00"}],this._updateShareUrl(),this._mapClickHandle=c.on(()=>this.mapView,"click",e=>{this._creatingFeature||this._mapClicked(e)}))}async _layerWatchHandler(){if(this._hideTable=!1,this._fetchingData=!0,!this._layer){this._fetchingData=!1,this._hideTable=!0;return}try{await this._layer.when(),this._floorField=this._layer.floorInfo?.floorField||"",this._updateFloorDefinitionExpression(),await this._resetTable(),this._updateShareUrl()}catch(e){console.error(e),this._hideTable=!0}finally{this._fetchingData=!1}}async selectedIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions(),this._selectAllActive&&this.selectedIds.length!==this._allIds.length&&(this._selectAllActive=!1),this.selectedIds.length>0&&(this._table.rowHighlightIds.removeAll(),this._table.rowHighlightIds.add(this.selectedIds[0])),this.selectedIds.length===0&&setTimeout(()=>{this.featureSelectionChange.emit(this.selectedIds)},700)}async selectedRelatedIdsWatchHandler(){this._validateEnabledActions(),this.selectedRelatedIds.length>0&&(this._relatedFeatureTable?.rowHighlightIds.removeAll(),this._relatedFeatureTable?.rowHighlightIds.add(this.selectedRelatedIds[0]))}async closeFilter(){await this._closeFilter()}async filterReset(){this._filterByExtentHandle&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle.remove(),this._filterByExtentHandle=void 0),await this._handleFilterListReset()}async filterUpdate(e,t){await this._handleFilterUpdate(e),t?(this._shouldUpdateTableOnExtentChange=!0,this._handleTableOnMapExtent()):t===!1&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle?.remove(),this._filterByExtentHandle=void 0,await this._updateAllIds())}async validateTableUpdate(e){this._shouldUpdateTableOnExtentChange=e}async validateActiveEdits(){return this._validateActiveEdits([],this.selectedIds)}async refresh(){this._table&&await this._refresh()}async setColumnOrder(e){this._setColumnTemplates(e)}async beforeMapInfoChange(e){let t=e.detail.ref,i=e.detail.mapInfo;if(this._hasPendingEdits()){e.preventDefault();let s=await this._validateActiveEdits([],this.selectedIds);await t.setMapByID(s?i.id:e.detail.currentId,!s)}}async editorInitialized(e){this._shouldUpdateTableOnExtentChange=!1,this._editor=e.detail}async closeEdit(){this._shouldUpdateTableOnExtentChange=!0,this._filterByExtentHandle&&this._handleTableOnMapExtent()}async selectionChanged(e){let t=e.detail.selectedFeature[0],i=Number(t.getObjectId()),s=this._table;if(s.rowHighlightIds.length&&s.rowHighlightIds.removeAll(),s.rowHighlightIds.add(i),this._highlightFeatures(i),this.zoomAndScrollToSelected&&s&&this.mapView){let a=s.viewModel.getObjectIdIndex(i);s.scrollToIndex(a);let l=t.layer,h=this.mapView.allLayerViews.toArray(),n;h.some(async r=>r.layer.title===l?.title&&r.layer.type==="feature"?(n=r,this.mapView&&await y([i],n,this.mapView,!0,void 0,this.zoomToScale),!0):!1)}}async beforeLayerSelectionChange(e){if(this._hasPendingEdits()){e.preventDefault();let t=e.detail.ref,i=await this._validateActiveEdits([],this.selectedIds);return e.detail.selectedIds?await t.setLayerByIds(i?e.detail.newIds:e.detail.currentIds,!0):await t.setLayerById(i?e.detail.newId:e.detail.currentId,!0)}}async layerSelectionChange(e){await this._layerSelectionChanged(e)}async editsComplete(e){let t=e.detail;(t==="delete"||t==="add")&&(this._allIds=await this.queryAllIds()),await this._refresh()}async facilityChanged(e){this._updateFloorDefinitionExpression()}async levelChanged(e){this._floorLevel=e.detail,this._updateFloorDefinitionExpression()}async siteChanged(e){this._updateFloorDefinitionExpression()}async noLayersFound(){this._layer=void 0,this._allIds=[],this._size=0,this._clearSelection()}async clearSelection(){await this._validateActiveEdits([],this.selectedIds)&&this._clearSelection()}async mapChanged(){this._queryingData=!1,this._creatingFeature=!1,this._clearSelection()}async featuresSelected(e){e.detail.forEach(t=>{let i=this._table?.highlightIds.indexOf(t);i&&i<0&&this._table?.highlightIds.add(t)})}createWorkFlowStarted(){this._creatingFeature=!0}backFromCreateWorkFlow(){this._creatingFeature=!1}async load(){await this._initToolInfos()}render(){let e=this._fetchingData||this._hideTable?"display-none":"",t=this._fetchingData?"":"display-none",i=this._queryingData?"":"display-none",s=this._size.toString(),a=this.selectedIds.length.toString(),l=this.isMobile?"height-full":"height-full-adjusted",h=this._canShowFullTextSearch();return this._validateActiveActions(),o`<div><calcite-scrim class=${b(i)} .loading=${this._queryingData}></calcite-scrim><calcite-shell><div class=${`width-full ${l}`}><calcite-panel class="height-full width-full panel-header-override">${this._getMapLayerPicker("header-actions-start")}${!this.isMobile&&o`${this._getTableControlRow("header-content")}${this._getActionsEnd("header-actions-end")}`||""}${h&&o`<div class="search-container border-bottom"><calcite-input class=search clearable icon=search @calciteInputChange=${n=>{this._searchTextChanged(n)}} .placeholder=${this._searchPlaceHolder} title=${this._searchPlaceHolder??_} type=search ${f(this._searchNode)}></calcite-input></div>`||""}<calcite-loader class=${b(t)} .label=${this._translations.fetchingData} scale=l></calcite-loader><div class=${b(e)} ${f(this.onTableNodeCreate)}></div></calcite-panel></div>${this.isMobile?void 0:o`<div class="bottom-left text-color height-19" id=solutions-selected-count-div>${(this._translations.recordsTotal?.replace("{{total-number-of-records}}",s)+" | "+this._translations.recordsSelected.replace("{{selected-number-of-records}}",a)).replace("{{total}}",s).replace("{{selected}}",a)}</div>`}</calcite-shell></div>`}updated(){this._table&&this.updateRelatedAttachmentColumns()}async _searchTextChanged(e){this._fullTextSearchInfo.forEach(t=>{t.searchTerm=e.target.value}),this._searchFullText()}async _searchFullText(){let e=[],t=!1;if(this._showOnlySelected)e=this._tempSelectedIds,t=!0;else if(await this._validateActiveEdits([],this.selectedIds))this._clearSelection(),this._tempSelectedIds=[];else return;this._searchExpression&&this._clearSearchDefinitionExpression();let i=[];if(this._fullTextSearchInfo?.length&&this._fullTextSearchInfo[0].searchTerm){let s=this._layer?.createQuery();s.fullText=this._fullTextSearchInfo,i=this._layer?await this._layer.queryObjectIds(s):[],t&&e?.length&&(i=i.filter(a=>e.includes(a))),await this._updateSearchDefinitionExpression(i?.length?i:[-1])}t&&i?.length&&(this._showOnlySelected=!0,this._table?.highlightIds.addMany(i.reverse())),await new Promise(s=>setTimeout(s,800)),await this._updateAllIds()}_clearSearchDefinitionExpression(){let e=this._layer?.definitionExpression;this._searchExpression&&e&&e?.indexOf(this._searchExpression)>-1&&this._layer&&(e?.indexOf(" AND ("+this._searchExpression)>-1?this._layer.definitionExpression=e.replace(` AND (${this._searchExpression})`,""):this._layer.definitionExpression=e.replace(this._searchExpression,"")),this._searchExpression=""}async _updateSearchDefinitionExpression(e){let t=this._layer?.definitionExpression;if(this._layer)if(e?.length){let i=`objectId in(${e})`;this._layer.definitionExpression=this._searchExpression&&t&&t.includes(this._searchExpression)?t.replace(this._searchExpression,i):t?`${t} AND (${i})`:i,this._searchExpression=i}else this._clearSearchDefinitionExpression()}_canShowFullTextSearch(){return this._layer?.capabilities?.query?.supportsFullTextSearch&&this._layer.indexes.items.filter(e=>e.indexType=="FullText").length>0}_getFullTextSearchInfo(){if(this._fullTextSearchInfo=[],this._layer?.capabilities?.query?.supportsFullTextSearch){let e=this._layer.indexes?.filter(t=>t.indexType=="FullText");if(e?.length){let t=[];e.forEach(s=>{t.push(...s.fields.split(","))});let i=[];t.forEach(s=>{let a=this._layer?.getField(s.trim());a?.alias&&i.push(a.alias)}),this._searchPlaceHolder=this._translations.searchPlaceholder.replace("{{field_names}}",i.join(", ")),this._fullTextSearchInfo.push({onFields:["*"],searchTerm:"",searchType:"prefix"})}}}_getMapLayerPicker(e){let t=this.isMobile?"display-none":"";return o`<div class=${`border-end ${t}`} id=solutions-map-layer-picker-container slot=${e??_}><map-layer-picker appearance=transparent .configLayerOrderDefined=${this._configLayerOrderDefined} .defaultLayerId=${this.defaultLayerId} display=inline-flex .enabledLayerIds=${this._enabledLayerIds} height=50 .isMobile=${this.isMobile} .mapView=${this.mapView} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} placeholder-icon=layers scale=l .selectedIds=${this._layer?[this._layer?.id]:[]} show-single-layer-as-label show-tables type=dropdown></map-layer-picker></div>`}_getLayerOption(e){let t;return this.mapInfo?.layerOptions?.layers.some(i=>i.id===e?(t=i,!0):!1),t}_getActionsEnd(e){let t=this._relatedFeatureTable?this._relatedFeatureTable.layer:this._layer,i=this._relatedFeatureTable||this._table,s=this._getLayerOption(t?.id||"");return o`<div class="display-flex" slot=${e??_}><field-selection .configExtraFields=${s?.extraFields} .layer=${t} .mapView=${this.mapView} .table=${i} .tableRef=${this.el}></field-selection>${this.enableShare&&!this.isMobile?this._getShare("share"):void 0}</div>`}_getTableControlRow(e){return o`<div class=${"height-51-px width-full display-flex"} slot=${e??_} ${f(this._toolbar)}>${this._getActionBar()}</div>`}_getActionBar(){return o`<calcite-action-bar class=width-full expand-disabled id=${this._getId("bar")??_} layout=horizontal><calcite-action-group>${this.isMobile?void 0:this._getActions()}</calcite-action-group></calcite-action-bar>`}_getActions(){return this._toolInfos?.reduce((e,t)=>(t&&e.push(t.isDanger?this._getDangerAction(t.icon,t.label,t.func,t.disabled):this._getAction(t.active,t.icon,t.indicator,t.label,t.func,t.disabled,!!t.loading,t.toolTip)),e),[])}_validateEnabledActions(){let e=this._getIds().length,t=["zoom-to-object","pencil","trash","erase","selected-items-filter"];this._toolInfos?.forEach(i=>{i&&t.indexOf(i.icon)>-1&&(i.disabled=i.icon==="pencil"?e<2||e>m:e<1,i.toolTip=i.icon==="pencil"?e>m?this._translations.featureEditLimitNotice:this._translations.editMultiple:i.toolTip)})}_validateActiveActions(){let e=["filter","list-check-all","selected-items-filter"];this._toolInfos?.forEach(t=>{t&&e.indexOf(t.icon)>-1&&(t.icon==="filter"&&(t.indicator=this._filterActive),t.icon==="list-check-all"&&(t.active=this._selectAllActive),t.icon==="selected-items-filter"&&(t.active=this._showOnlySelected,t.label=this._showOnlySelected?this._translations.showAll:this._translations.showSelected))})}async _initToolInfos(){let e=this._getIds().length>0,t=this._relatedFeatureTable?this._relatedFeatureTable.layer.isTable:this._layer?.isTable,i=this.featureSelectionMode==="multiple"&&this._layer?.capabilities?.operations.supportsUpdate,s=this._getSelectedIds().length<2||this._getSelectedIds().length>m,a=!this.mapHidden&&!t,l=!this._relatedFeatureTable&&(!this._layer?.isTable||this._hasFilterExpressions()),h=this._featuresEmpty(),n=this.featureSelectionMode==="single",r=this.enableCSV;if(this._relatedFeatureTable){let u=await this._queryRelatedFeatures();r=u&&Object.keys(u).length>0}let d=[];l&&d.push({active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>this.toggleFilter.emit(),disabled:!1,toolTip:this._translations.filters}),a&&d.push({active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>this._zoom(),disabled:!e,toolTip:this._translations.zoom}),i&&d.push({active:!1,icon:"pencil",indicator:!1,label:this._translations.editMultiple,func:()=>this.editMultipleFeatures.emit(this._getSelectedIds()),disabled:s,toolTip:this._translations.editMultiple}),this._deleteEnabled&&d.push({active:!1,icon:"trash",indicator:!1,label:this._translations.delete,func:()=>this._showDelete(),disabled:!e,isDanger:!0,toolTip:this._translations.delete}),d.push({active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>{this.clearSelection()},disabled:!e,toolTip:this._translations.clearSelection}),this._relatedFeatureTable||d.push({active:!1,icon:"selected-items-filter",indicator:!1,label:this._showOnlySelected?this._translations.showAll:this._translations.showSelected,func:()=>this._toggleShowSelected(),disabled:!e,toolTip:this._showOnlySelected?this._translations.showAll:this._translations.showSelected}),!n&&!this._relatedFeatureTable&&d.push({active:!1,icon:"list-check-all",indicator:!1,func:async()=>await this._selectAll(),label:this._translations.selectAll,disabled:h,toolTip:this._translations.selectAll}),!n&&!this._relatedFeatureTable&&d.push({active:!1,icon:"compare",indicator:!1,func:async()=>await this._switchSelected(),label:this._translations.switchSelected,disabled:h,toolTip:this._translations.switchSelected}),d.push({active:!1,icon:"refresh",indicator:!1,func:()=>{this._refresh()},label:this._translations.refresh,disabled:!1,toolTip:this._translations.refresh}),r&&d.push({active:!1,icon:"export",indicator:!1,func:()=>{this._exportToCSV()},label:this._translations.exportCSV,loading:this._csvExporting,disabled:h,toolTip:this._translations.exportCSV}),this._toolInfos=[...d]}_updateFloorDefinitionExpression(){if(this._floorField&&this._floorLevel){let e=`${this._floorField} = '${this._floorLevel}'`,t=this._layer?.definitionExpression;this._layer&&(this._layer.definitionExpression=t&&this._floorExpression&&t?.indexOf(this._floorExpression)>-1?t.replace(this._floorExpression,e):t?`${t} AND (${e})`:e),this._floorExpression=e}}_featuresEmpty(){return this._allIds?.length===0}_hasFilterExpressions(){let e=[],t=this._layer?.id;return this.mapInfo?.filterConfig?.layerExpressions&&t!==void 0&&(e=this.mapInfo.filterConfig.layerExpressions.filter(i=>i.id===t)),e.length>0}_getAction(e,t,i,s,a,l,h,n){let r=this._layer===void 0?!0:l;return o`<calcite-action .active=${e} appearance=solid .disabled=${r} .icon=${t} .id=${`layer-table-${t}`} .indicator=${i} .label=${s} .loading=${h} @click=${a} text text-enabled><div class="display-flex"><span class="label-override padding-start-1-4">${s}</span></div></calcite-action>${this._getToolTip("auto",`layer-table-${t}`,n)}`}_showDelete(){this.showDelete.emit({ids:this._getIds()})}_getShare(e){return o`<div id=${this._getId(e)??_}><instant-apps-social-share class="height-51 width-51 display-flex" .embed=${this.shareIncludeEmbed} flip-rtl popover-button-icon-scale=s scale=m share-button-color=neutral share-button-type=action .socialMedia=${this.shareIncludeSocial} .view=${this.mapView} ${f(this._shareNode)}></instant-apps-social-share>${this._getToolTip("bottom",e,this._translations.share)}</div>`}_updateShareUrl(){let e=this._shareNode.value?.shareUrl;if(!e)return;let t=new URL(e);this.mapInfo?.id?t.searchParams.set("webmap",this.mapInfo.id):t.searchParams.delete("webmap"),this._layer?.id?t.searchParams.set("layer",this._layer.id):t.searchParams.delete("layer"),this.selectedIds?.length>0?t.searchParams.set("oid",this.selectedIds.reverse().join(",")):t.searchParams.delete("oid"),this.appLayout&&t.searchParams.set("applayout",this.appLayout),this.selectedRelatedIds?.length>0&&this._relatedFeatureTable?.layer?.id&&(t.searchParams.set("oid",this.selectedRelatedIds.join(",")),t.searchParams.set("layer",this._relatedFeatureTable?.layer?.id.toString())),this._shareNode.value&&(this._shareNode.value.autoUpdateShareUrl=!1,this._shareNode.value.shareUrl=t.href)}_getToolTip(e,t,i){return o`<calcite-tooltip .placement=${e} .referenceElement=${t}><span>${i}</span></calcite-tooltip>`}_getId(e){return`solutions-action-${e}`}_getDangerAction(e,t,i,s){let a=this._layer===void 0?!0:s;return o`<div class="display-flex" id=${this._getId(e)??_}>${o`<calcite-action appearance=solid .disabled=${a} .id=${`layer-table-${e}`} @click=${i} text><calcite-icon class="danger-icon-color" .icon=${e} scale=s></calcite-icon><span class="label-override padding-start-1-4 danger-label-color">${t}</span></calcite-action>`}${this._getToolTip("bottom",`layer-table-${e}`,t)}</div>`}_getIds(){let e=this._relatedFeatureTable??this._table;return this._relatedFeatureTable&&this._table&&this._table.highlightIds.getItemAt(0)!==this.selectedIds[0]&&(e=this._table),e?.highlightIds.map(t=>Number.parseInt(t.toString(),10)).toArray()??[]}onTableNodeCreate(e){this._tableNode=e}async _getTable(e,t){this._layer&&(await this._layer.when(()=>{this._table=new L({autoRefreshEnabled:this.enableAutoRefresh,autoSaveEnabled:this.enableTableAutosave,layer:this._layer,view:this.mapView,columnReorderingEnabled:this.enableColumnReorder,editingEnabled:this._editEnabled&&this.enableInlineEdit,relatedRecordsEnabled:!0,attachmentsEnabled:!0,highlightEnabled:!1,multiSortEnabled:!1,visibleElements:{columnDescriptions:!1,header:!1,menu:!1,progress:!1},tableTemplate:{columnTemplates:t},container:e})}),await this._table?.when(()=>{this._table?.viewModel.addHandles(this._table.highlightIds.on("change",i=>{this._handleOnChange(i)})),this._table?.viewModel.addHandles(this._table.on("cell-pointerover",this.tempHighlightOnHover.bind(this))),this._table?.viewModel.addHandles(this._table.on("cell-pointerout",this._removeTempHighlight.bind(this))),this._table?.viewModel.addHandles(this._table.on("column-reorder",this._handleColumnReorder.bind(this))),this.listenOn(this._tableNode,"mouseleave",this._removeTempHighlight),this._table?.viewModel.addHandles(c.watch(()=>this._table.size,i=>{this._size=i})),c?.watch(()=>this._table?.relatedTable,async i=>{if(i){if(i.rowHighlightIds.length){let a={added:[i.rowHighlightIds.getItemAt(0)],removed:[]};this._handleOnChange(a)}let s=i.layer;if(this._layerEditHandle=s.on("edits",async()=>{await new Promise(a=>setTimeout(a,50)),await this._refresh(!0)}),this._checkEditEnabled(s),i.editingEnabled=this._editEnabled&&this.enableInlineEdit,i.autoSaveEnabled=this.enableTableAutosave,this._relatedFeatureTable=i,typeof i.layer?.id=="string"&&i.layer?.fields){let a=i.layer.popupTemplate?.fieldInfos,l=this._getColumnTemplates(i.layer.id,i.layer.fields,a);this._relatedFeatureTable.tableTemplate=new w({columnTemplates:l})}i.highlightIds.on("change",a=>{this._handleRelatedRecordsChange(a)})}else{this.selectedRelatedIds=[],this._relatedFeatureTable=void 0,this._layerEditHandle&&this._layerEditHandle.remove();let s=this._layer;this._refresh(),s&&this.relatedRecordToggled.emit(s),this._finishOnChange()}await this._initToolInfos()})}))}async _handleRelatedRecordsChange(e){await this._handleOnChange(e),this._updateShareUrl()}hasAttachmentsEnabled(e){if(!e?.capabilities)return!1;let{capabilities:{data:{supportsAttachment:t},operations:{supportsQueryAttachments:i}}}=e;return t&&i}async _handleOnChange(e){if(!await this._validateActiveEdits([...e.added],[...e.removed]))return;let t=[...this._getIds()],i=this._getSelectedLayer(t);this._relatedFeatureTable&&this._table?.highlightIds.getItemAt(0)!==this.selectedIds[0]&&(i=this._layer,await this._initToolInfos()),i&&this.relatedRecordToggled.emit(i),this.featureSelectionMode==="single"&&(this._relatedFeatureTable&&t.length>1?(this._relatedFeatureTable.highlightIds.remove(t[0]),t.shift()):t.length>1&&!this._selectAllActive&&(this._table?.highlightIds.remove(t[0]),t.shift())),!this._relatedFeatureTable||this._relatedFeatureTable&&this._table?.highlightIds.getItemAt(0)!==this.selectedIds[0]?(this.selectedRelatedIds=[],this.selectedIds=t.reverse(),this._tempSelectedIds=[...this.selectedIds],this._highlightFeatures(this.selectedIds[0])):this.selectedRelatedIds=t.reverse(),this._finishOnChange()}async _validateActiveEdits(e,t){let i=!0;if(this._editor&&!this._skipEditCheck){if(this._hasPendingEdits()){let s=!1;try{this._editor.viewModel.activeWorkflow&&await this._editor.viewModel.activeWorkflow.cancel({force:!1})}catch(a){s=a?.name==="workflow:cancel-denied"}if(s){let a=this._relatedFeatureTable&&this._relatedFeatureTable.highlightIds.length>0?this._relatedFeatureTable:this._table;i=!1,this._skipEditCheck=!0,e.length>0?a?.highlightIds.removeMany(e):t.length>0&&a?.highlightIds.addMany(t)}}}else i=!this._skipEditCheck,this._skipEditCheck=!1;return this._shouldUpdateTableOnExtentChange=i,i}_hasPendingEdits(){let e=this._editor?.viewModel?.hasPendingEdits,t=this._editor?.activeWorkflow?.activeWorkflow?.hasPendingEdits;return e||t}_finishOnChange(){this._showOnlySelected&&!this._relatedFeatureTable&&(this._table&&this._getSelectedIds().length>0?this._table.filterBySelectionEnabled=!0:this._toggleShowSelected());let e=this._getSelectedIds();setTimeout(()=>{this.featureSelectionChange.emit(e)},50)}_handleColumnReorder(){this.columnReorder.emit()}tempHighlightOnHover(e){if(this._removeTempHighlight(),this._selectedLayerView){let t=e.feature;this._temporaryFeatureHandle=this._selectedLayerView?.highlight([t],{name:"temporary"})}}_removeTempHighlight(){this._temporaryFeatureHandle&&this._temporaryFeatureHandle.remove()}_highlightFeatures(e){if(this._clearHighlights(),this.selectedIds.length>0&&this._selectedLayerView&&(this._currentFeatureHighlightHandle=this._selectedLayerView?.highlight([e],{name:"current-selection"}),this.selectedIds.length>1)){let t=this.selectedIds.filter(i=>i!==e);this._defaultFeaturesHandle=this._selectedLayerView?.highlight(t,{name:"default"})}}_clearHighlights(){this._removeTempHighlight(),this._currentFeatureHighlightHandle&&this._currentFeatureHighlightHandle.remove(),this._defaultFeaturesHandle&&this._defaultFeaturesHandle.remove()}_resetColumnTemplates(){if(this._layer){let e=this._layer.popupTemplate?.fieldInfos,t=this._getColumnTemplates(this._layer.id,this._layer.fields,e);t?.length===0?this._tableNode?.classList.add("display-none"):this._tableNode?.classList.remove("display-none");let i=this._table?.tableTemplate?.columnTemplates,s=i&&t&&i.length!==t.length||t?.some((a,l)=>i&&i[l]?JSON.stringify(i[l])!==JSON.stringify(a):!1);if(this._table&&t&&(s||!this._columnsInfo)){this._table.tableTemplate=new w({columnTemplates:t});let a=t.map(l=>l.fieldName);this._initColumnsInfo(a)}}}_setColumnTemplates(e){this._table&&e&&(this._table.tableTemplate=new w({columnTemplates:e}))}async _resetTable(){if(this._loaded=!1,this._clearSelection(),this._allIds=await this.queryAllIds(),!this._table&&this._layer){let e=this._layer.popupTemplate?.fieldInfos,t=this._getColumnTemplates(this._layer.id,this._layer.fields,e);this._tableNode&&await this._getTable(this._tableNode,t)}else this._table&&(this._table.view=this.mapView,this._table.layer=this._layer);await this._initLayerRefresh(),this._checkEditEnabled(this._layer),this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit,this._table.autoSaveEnabled=this.enableTableAutosave,await this._table.when(),setTimeout(()=>{this._loaded||this.finishLoading()},1e3),await c.once(()=>this._table?.state==="loaded").then(async()=>{await this.finishLoading()}))}async finishLoading(){try{this._loaded=!0,this._table?.highlightIds.removeAll(),this._table.objectIds.removeAll(),this._resetColumnTemplates(),this._showOnlySelected=!1,await this._handleDefaults(),await this._sortTable(),await this._initToolInfos(),["esri-feature-table","esri-widget"].forEach(e=>{this._tableNode&&!this._tableNode.classList.contains(e)&&this._tableNode.classList.add(e)})}catch(e){console.log(e)}}async _initLayerRefresh(){this._refreshHandle&&this._refreshHandle.remove(),this._layer&&(this._refreshHandle=this._layer.on("refresh",e=>{e.dataChanged&&this._updateAllIds()}))}async _updateAllIds(){let e=await this.queryAllIds(),t=this.selectedIds.filter(i=>this._allIds.indexOf(i)>-1);(JSON.stringify(e)!==JSON.stringify(this._allIds)||JSON.stringify(this.selectedIds)!==JSON.stringify(t))&&(this._allIds=e,this.selectedIds=t,await this._refresh())}async _handleDefaults(){if(!this._defaultOidHonored&&this.defaultOid?.length>0&&this.defaultOid[0]>-1&&this._table&&(await this._selectDefaultFeature(this.defaultOid),this._defaultOidHonored=!0,this.defaultOid=[],this._showOnlySelected=!1,this._toggleShowSelected()),!this._defaultGlobalIdHonored&&this.defaultGlobalId&&this.defaultGlobalId?.length>0&&this._table&&this._layer){let e=await O(this.defaultGlobalId,this._layer),t=e?.length>0?e.map(i=>Number(i.getObjectId())):void 0;t&&await this._selectDefaultFeature(t),this._defaultGlobalIdHonored=!0,this.defaultGlobalId=[],this._showOnlySelected=!1,this._toggleShowSelected()}}_initColumnsInfo(e){let t=this._table?.columns.reduce((s,a)=>((!e||e?.indexOf(a.name)>-1)&&(s[a.name]=!a.hidden),s),{}),i=this._table?.columns.map(s=>s.name);(e&&i?e.filter(s=>i.indexOf(s)<0):[]).forEach(s=>{t[s]=!0}),this._columnsInfo=e?e.reduce((s,a)=>(s[a]=t[a],s),{}):t}async _selectDefaultFeature(e){e.length>0&&this._table?.highlightIds.addMany(e)}_checkEditEnabled(e){this._editEnabled=!!(e?.editingEnabled&&e?.capabilities?.operations.supportsUpdate),this._deleteEnabled=!!(e?.editingEnabled&&e?.capabilities?.operations.supportsDelete)}async _sortTable(){let e=this._layer?.objectIdField,t="desc",i,s=this.mapInfo?.layerOptions?.layers,a=this._layer?.id;s&&s.length>0&&a!==void 0&&(i=s.filter(l=>l.id===a),i&&i.length>0&&(i=i[0],i.sortField&&i.fields?.includes(i.sortField)&&(e=i.sortField),t=i?.sortOrder?i.sortOrder:"desc")),this._table&&this._layer&&(await this._table.when(),await this._layer.when(()=>{e&&this._table?.sortColumn(e,t)}))}async _handleFilterListReset(){this._filterActive=!1,this._updateShareUrl(),await this._searchFullText()}async _handleFilterUpdate(e){if(this._floorExpression&&this._layer){let t=this._layer.definitionExpression,i=new RegExp(`${this._floorField} = ['].+[']`,"gm");this._layer.definitionExpression=t&&this._floorField&&t.indexOf(`${this._floorField} = '`)>-1?t.replace(i,this._floorExpression):t?`${t} AND (${this._floorExpression})`:this._floorExpression}this._filterActive=e,this._updateShareUrl(),await this._searchFullText()}_handleTableOnMapExtent(){this._table&&(this._filterByExtentHandle=c.when(()=>this.mapView?.stationary,async()=>{if(this._shouldUpdateTableOnExtentChange&&this.appLayout==="splitView"){if(await new Promise(e=>setTimeout(e,800)),this._table&&this.mapView){this._table.filterGeometry=this.mapView.extent;let e={geometry:this.mapView.extent},t=this._layer&&await this._layer.queryObjectIds(e),i=this.selectedIds.filter(a=>!t?.includes(a)),s=this._outOFExtentOids.filter(a=>t?.includes(a));i.length>0&&(this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table.highlightIds.removeMany(i),this._outOFExtentOids=[...this._outOFExtentOids,...i]),s.length>0&&(this.selectedIds=[...new Set([...this.selectedIds,...s])],this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(this.selectedIds.reverse()),this._outOFExtentOids=this._outOFExtentOids.filter(a=>!s.includes(a)))}this._allIds=await this.queryAllIds()}},{initial:!0}))}async _closeFilter(){this._allIds=await this.queryAllIds()}async queryAllIds(){if(this._layer){let e=this._layer.createQuery();return e.geometry=this._filterByExtentHandle&&this.mapView?this.mapView.extent:null,e.where=this._layer.definitionExpression||"1=1",await this._layer.queryObjectIds(e)}else return[]}async _mapClicked(e){let t={include:this._layer},i=await this.mapView?.hitTest(e.screenPoint,t);if(i&&i.results.length>0){let s=i.results;if(this.featureSelectionMode==="single"){this._table?.highlightIds.removeAll();let a=s[0].graphic.getObjectId();if(a){let l=this._table?.highlightIds.indexOf(a);l!==void 0&&l<0&&this._table?.highlightIds.add(a)}}else s.forEach(a=>{let l=Number(a.graphic.getObjectId()),h=this._table?.highlightIds.indexOf(l);h&&h<0&&l&&this._table?.highlightIds.add(l)});this._showOnlySelected&&this._table&&(this._table.filterBySelectionEnabled=!0)}else await this.clearSelection()}async _selectAll(){let e=this._allIds,t=e.filter(i=>this.selectedIds.indexOf(i)<0);await this._validateActiveEdits(t,this.selectedIds)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(e),this.selectedIds=e,this._finishOnChange(),this._selectAllActive=!0):this._skipEditCheck=!1}_toggleShowSelected(){this._showOnlySelected=!this._showOnlySelected,this._table&&(this._table.filterBySelectionEnabled=this._showOnlySelected)}_clearSelection(){this._relatedFeatureTable||(this.selectedIds=[],this._outOFExtentOids=[],this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table?.highlightIds.removeAll(),this._clearHighlights(),this._table?.rowHighlightIds.removeAll()),this._relatedFeatureTable&&(this._relatedFeatureTable?.highlightIds.removeAll(),this.selectedRelatedIds=[]),this._finishOnChange()}async _switchSelected(){let e=[...this.selectedIds],t=this._allIds.reduce((i,s)=>(e.indexOf(s)<0&&i.push(s),i),[]).sort((i,s)=>i-s);await this._validateActiveEdits(t,e)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(t),this.selectedIds=t,this._finishOnChange()):this._skipEditCheck=!1}async _exportToCSV(){let e=this._relatedFeatureTable?this._relatedFeatureTable.layer:this._layer;if(!e)return;let t={},i=this._getIds();if(this._relatedFeatureTable?.tableParent&&this._relatedFeatureTable.highlightIds.length===0){let l=this._relatedFeatureTable.tableParent.highlightIds?.getItemAt(0);if(l!==void 0){let h=await this._queryRelatedFeatures(),n=[];h&&h[l]?.features&&(h[l].features.forEach(r=>{r.attributes&&n.push(r.attributes[e.objectIdField])}),i=n.length>0?n:[])}}t[e.id]={selectionSetNames:[e.title||""],ids:i,layer:e};let s=this._relatedFeatureTable??this._table;if(!s)return;let a=s&&s.columns.toArray().reduce((l,h)=>{if(!h.hidden){let n=h?.name||h?.fieldName;n&&l.push(n.toLocaleLowerCase())}return l},[]);this._updateToolInfoLoading("export",!0),this._csvExporting=!0,this.mapView?.map&&await $(this.mapView.map,t,!1,!1,!0,a,!0,!0),this._updateToolInfoLoading("export",!1),this._csvExporting=!1}async _queryRelatedFeatures(){let e=this._relatedFeatureTable?this._relatedFeatureTable?this._relatedFeatureTable.layer:this._relatedFeatureTable.tableParent?.layer:this._layer,t=this._relatedFeatureTable?.tableParent?.highlightIds?.items[0],i=this._relatedFeatureTable?.tableParent?.layer,s=e?.relationships?.find(l=>i.relationships?.some(h=>h.id===l.id)),a=new M({objectIds:[t],outFields:["*"],relationshipId:s?.id});return t&&a&&await i.queryRelatedFeatures(a).catch(async l=>{console.error(l)})}_updateToolInfoLoading(e,t){this._toolInfos.some(i=>i?.icon===e?(i.loading=t,!0):!1)}async _refresh(e){if(await this._validateActiveEdits([],this.selectedIds)){this._table&&await this._table.refresh(),this._relatedFeatureTable&&await this._relatedFeatureTable.refresh(),this._allIds=await this.queryAllIds();let t=this._getSelectedLayer(this.selectedRelatedIds);if(t&&this.relatedRecordToggled.emit(t),!e){let i=this._getSelectedIds();this.featureSelectionChange.emit(i)}}}_getSelectedIds(){let e;return this._relatedFeatureTable?this.selectedRelatedIds.length>0?e=this.selectedRelatedIds:e=this._relatedFeatureTable.tableParent?.highlightIds.toArray()??[]:e=this.selectedIds,e}_getSelectedLayer(e){let t;return this._relatedFeatureTable?e.length>0?t=this._relatedFeatureTable.layer:t=this._relatedFeatureTable.tableParent?.layer:t=this._layer,t}async _clearSearchText(){if(this._searchNode.value){this._searchNode.value.value="";let e={target:{value:""}};await this._searchTextChanged(e)}}async _zoom(){this._layer&&this.mapView&&await y(this.selectedIds,this._selectedLayerView,this.mapView,!0,void 0,this.zoomToScale)}async _layerSelectionChanged(e){let t=e.detail[0];if(t!==this._layer?.id||this._featuresEmpty()){this._fetchingData=!0,await this._clearSearchText();let i=this.mapView&&await A(this.mapView,t);i&&await i.when(async()=>{this._selectedLayerView=!i.isTable&&this.mapView?await C(this.mapView,i.id):null,this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._shouldUpdateTableOnExtentChange=!0,this._layer=i,await this._initToolInfos(),this._getFullTextSearchInfo()})}this._creatingFeature=!1,this._fetchingData=!1}_getColumnTemplates(e,t,i){let s=this._getLayerOption(e),a=this._layer?.attributeTableTemplate?.elements,l=[];a?.length>0&&this.honorMapFieldSettings&&(l=a.map(r=>r.fieldName));let h=s?.fields&&s?.fieldOrder?s.fieldOrder.filter(r=>s?.fields&&s.fields.indexOf(r)>-1):l.length>0?l:void 0,n;return t&&(n=t.reduce((r,d)=>{let u={type:"field",fieldName:d.name,label:this.getFieldLabel(d,i),menuConfig:this._getMenuConfig(d.name)};return s&&s.fields&&s?.fields?.length>0?s.fields.indexOf(d.name)>-1&&r.push(u):l.length>0?l.indexOf(d.name)>-1&&r.push(u):r.push(u),r},[])),n?h?n?.sort(this._sortFields.bind(this,h)):n:[]}updateRelatedAttachmentColumns(){let e=this._getLayerOption(this._layer?.id||""),t=this.hasAttachmentsEnabled(this._layer),i=!0,s="attachments",a=(e?.extraFields||[]).reduce((h,n)=>(n.startsWith("related:")?h.related.push(n.split("related:")[1]):h.extra.push(n),h),{related:[],extra:[]}),l=a.extra.some(h=>h.toLowerCase()===s);a&&(t=l&&t,i=a.related.length>0,this._table?.columns.forEach(h=>{h.fieldName.startsWith("EsriFeatureTableRelationshipColumn")&&(h.hidden=!a.related.includes(h.effectiveLabel)),h.fieldName.startsWith("EsriFeatureTableAttachmentsColumn")&&(h.hidden=!a.extra.some(n=>n.toLowerCase()===h.effectiveLabel.toLowerCase()))})),this._table.relatedRecordsEnabled=i,this._table.attachmentsEnabled=t}getFieldLabel(e,t){let i=e.alias?e.alias:e.name;return t?.some(s=>s.fieldName===e.name?(i=s.label,!0):!1),i||e.name}_sortFields(e,t,i){return e?.indexOf(t.fieldName)-e.indexOf(i.fieldName)}_getMenuConfig(e){return{items:[{label:this._translations.hideField,icon:"view-hide",autoCloseMenu:!0,clickFunction:()=>{this._handleHideClick(e)}}]}}_handleHideClick(e){this._columnsInfo&&this._table&&(this._columnsInfo[e]=!1,this._table.hideColumn(e),this._table.tableTemplate&&this._table.tableTemplate.columnTemplates.forEach(t=>{t.fieldName===e&&(t.visible=!1)}))}};E("layer-table",I);return I},"widgets/FeatureTable","core/reactiveUtils","rest/support/RelationshipQuery","widgets/FeatureTable/support/TableTemplate",a,c,d,e,h)
2
+ import h from"./NBPM6OJQ.js";import{a as H}from"./BU5PIAGS.js";import e from"./CRFLICFH.js";import d from"./J6MVIDTT.js";import c from"./CEP54NLT.js";import a from"./YVNP437O.js";import{a as S}from"./R67EKKSL.js";import{b as E}from"./KIUBUHVM.js";import{E as g,F as f,G as x,I as b,h as v,i as o,l as _,q as p,t as T}from"./H5E6ISYP.js";export default $arcgis.t(([L,c,M,w,{c:O},{c:C,d:A,j:y},{l:F},{f:m},{b:$}])=>{var R=v`@layer{:host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.display-none{display:none}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51-px{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir=rtl] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-surface-1)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none!important}vaadin-grid-cell-content{font-size:14px!important;color:var(--calcite-color-text-3)!important}.absolute-right{position:absolute;right:0;left:unset}html[dir=rtl] .absolute-right{left:0;right:unset}.disabled{cursor:default!important;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.actions-end{height:50px!important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-dialog-content-space: 0}.esri-feature-table__table-container{height:100%}.search-container{background-color:var(--calcite-color-surface-2)!important}.search{--calcite-color-border-input: var(--calcite-color-border-3);width:60%;padding:10px}.delete-red{--calcite-icon-color: var(--calcite-color-status-danger);--calcite-color-text-1: var(--calcite-color-status-danger);--calcite-color-text-3: var(--calcite-color-status-danger)}.label-override{white-space:nowrap}.padding-start-1-4{padding-inline-start:.5rem}.panel-header-override{--calcite-panel-header-content-space: 0px}.danger-label-color{color:var(--calcite-color-status-danger)}.danger-icon-color{--calcite-icon-color: var(--calcite-color-status-danger)}.width-51{width:51px}.height-51{height:51px}calcite-action-bar{--calcite-internal-action-bar-gap: 0px;--calcite-internal-action-bar-padding: 0px}}`,I=class extends x{constructor(){super(),this.defaultGlobalId=[],this.defaultLayerId="",this.defaultOid=[],this.enableAutoRefresh=!1,this.enableColumnReorder=!0,this.enableCSV=!1,this.enableInlineEdit=!1,this.enableShare=!1,this.enableTableAutosave=!0,this.featureSelectionMode="multiple",this.selectedRelatedIds=[],this.honorMapFieldSettings=!1,this.isMobile=!1,this.mapHidden=!1,this.showOnlyUpdatableLayers=!1,this.selectedIds=[],this.shareIncludeEmbed=!1,this.shareIncludeSocial=!1,this.showNewestFirst=!1,this.zoomAndScrollToSelected=!1,this._allIds=[],this._configLayerOrderDefined=!1,this._csvExporting=!1,this._fetchingData=!1,this._hideTable=!1,this._filterActive=!1,this._selectAllActive=!1,this._showHideOpen=!1,this._showOnlySelected=!1,this._toolInfos=[],this._translations=S({name:"layer-table",blocking:!0}),this._fullTextSearchInfo=[],this._searchPlaceHolder="",this._size=0,this._queryingData=!1,this._editEnabled=!1,this._enabledLayerIds=[],this._defaultGlobalIdHonored=!1,this._defaultOidHonored=!1,this._deleteEnabled=!1,this._floorExpression="",this._floorField="",this._floorLevel="",this._loaded=!1,this._shareNode=g(),this._toolbar=g(),this._searchExpression="",this._skipEditCheck=!1,this._tempSelectedIds=[],this._outOFExtentOids=[],this._shouldUpdateTableOnExtentChange=!0,this._creatingFeature=!1,this._searchNode=g(),this.columnReorder=p(),this.featureSelectionChange=p(),this.toggleFilter=p(),this.showDelete=p(),this.relatedRecordToggled=p(),this.editMultipleFeatures=p(),this.listenOn(window,"beforeMapInfoChange",this.beforeMapInfoChange,{capture:!0}),this.listenOn(window,"editorInitialized",this.editorInitialized),this.listenOn(window,"closeEdit",this.closeEdit),this.listenOn(window,"selectionChanged",this.selectionChanged),this.listenOn(window,"beforeLayerSelectionChange",this.beforeLayerSelectionChange),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"editsComplete",this.editsComplete),this.listenOn(window,"facilityChanged",this.facilityChanged),this.listenOn(window,"levelChanged",this.levelChanged),this.listenOn(window,"siteChanged",this.siteChanged),this.listenOn(window,"noLayersFound",this.noLayersFound),this.listenOn(window,"clearSelection",this.clearSelection),this.listenOn(window,"mapChanged",this.mapChanged),this.listenOn(window,"featuresSelected",this.featuresSelected),this.listenOn(window,"createWorkFlowStarted",this.createWorkFlowStarted),this.listenOn(window,"backFromCreateWorkFlow",this.backFromCreateWorkFlow),H(window)}static{this.properties={appLayout:1,defaultGlobalId:0,defaultLayerId:1,defaultOid:0,enableAutoRefresh:5,enableColumnReorder:5,enableCSV:5,enableInlineEdit:5,enableShare:5,enableTableAutosave:5,featureSelectionMode:1,selectedRelatedIds:0,honorMapFieldSettings:5,isMobile:5,mapHidden:5,mapInfo:0,mapView:0,showOnlyUpdatableLayers:5,selectedIds:0,shareIncludeEmbed:5,shareIncludeSocial:5,showNewestFirst:5,zoomAndScrollToSelected:5,zoomToScale:9,_allIds:16,_configLayerOrderDefined:16,_csvExporting:16,_fetchingData:16,_hideTable:16,_filterActive:16,_layer:16,_selectAllActive:16,_showHideOpen:16,_showOnlySelected:16,_toolInfos:16,_translations:16,_fullTextSearchInfo:16,_searchPlaceHolder:16,_size:16,_queryingData:16}}static{this.styles=R}static{this.shadowRootOptions=T}willUpdate(e){if(e.has("appLayout")&&this.appLayoutWatchHandler(),e.has("defaultOid")&&this.defaultOidWatchHandler(),e.has("defaultGlobalId")&&this.defaultGlobalIdWatchHandler(),e.has("enableCSV")&&this.enableCSVWatchHandler(),e.has("enableInlineEdit")&&this.enableInlineEditWatchHandler(),e.has("mapHidden")&&this.mapHiddenWatchHandler(),e.has("isMobile")&&this.isMobileWatchHandler(),e.has("mapInfo")&&this.mapInfoWatchHandler(),e.has("mapView")&&this.mapViewWatchHandler(),e.has("_layer")&&this._layerWatchHandler(),e.has("selectedIds")&&(this.hasUpdated||JSON.stringify(e.get("selectedIds"))!==JSON.stringify(this.selectedIds))&&this.selectedIdsWatchHandler(),e.has("selectedRelatedIds")&&(this.hasUpdated||JSON.stringify(e.get("selectedRelatedIds"))!==JSON.stringify(this.selectedRelatedIds))&&this.selectedRelatedIdsWatchHandler(),e.has("enableTableAutosave")&&this.hasUpdated&&this._table&&(this._table.autoSaveEnabled=this.enableTableAutosave),e.has("_translations")){let t=this._translations._lang,i=e.get("_translations")?._lang;t&&i&&t!==i&&this._initToolInfos()}}async appLayoutWatchHandler(){await this._initToolInfos(),this._updateShareUrl()}async defaultOidWatchHandler(){await this._handleDefaults()}async defaultGlobalIdWatchHandler(){await this._handleDefaults()}async enableCSVWatchHandler(){this._toolInfos?.length>0&&await this._initToolInfos()}enableInlineEditWatchHandler(){this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit)}async mapHiddenWatchHandler(){this._toolInfos?.length>0&&await this._initToolInfos()}async isMobileWatchHandler(){!this._toolInfos&&!this.isMobile&&await this._initToolInfos()}async mapInfoWatchHandler(){this._configLayerOrderDefined="configLayerOrder"in(this.mapInfo?.layerOptions||{}),this._enabledLayerIds=F(this.mapInfo?.layerOptions?.layers||[],this.mapInfo?.layerOptions?.configLayerOrder),this._table&&(this._resetColumnTemplates(),this._sortTable(),await this._initToolInfos())}async mapViewWatchHandler(){this._mapClickHandle&&this._mapClickHandle.remove(),this.mapView&&(this._floorExpression="",this._searchExpression="undefined",this.mapView.highlights=[{name:"default",color:"#00FFFF"},{name:"current-selection",color:"#ff00ff"},{name:"temporary",color:"#FFFF00"}],this._updateShareUrl(),this._mapClickHandle=c.on(()=>this.mapView,"click",e=>{this._creatingFeature||this._mapClicked(e)}))}async _layerWatchHandler(){if(this._hideTable=!1,this._fetchingData=!0,!this._layer){this._fetchingData=!1,this._hideTable=!0;return}try{await this._layer.when(),this._floorField=this._layer.floorInfo?.floorField||"",this._updateFloorDefinitionExpression(),await this._resetTable(),this._updateShareUrl()}catch(e){console.error(e),this._hideTable=!0}finally{this._fetchingData=!1}}async selectedIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions(),this._selectAllActive&&this.selectedIds.length!==this._allIds.length&&(this._selectAllActive=!1),this.selectedIds.length>0&&(this._table.rowHighlightIds.removeAll(),this._table.rowHighlightIds.add(this.selectedIds[0])),this.selectedIds.length===0&&setTimeout(()=>{this.featureSelectionChange.emit(this.selectedIds)},700)}async selectedRelatedIdsWatchHandler(){this._validateEnabledActions(),this.selectedRelatedIds.length>0&&(this._relatedFeatureTable?.rowHighlightIds.removeAll(),this._relatedFeatureTable?.rowHighlightIds.add(this.selectedRelatedIds[0]))}async closeFilter(){await this._closeFilter()}async filterReset(){this._filterByExtentHandle&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle.remove(),this._filterByExtentHandle=void 0),await this._handleFilterListReset()}async filterUpdate(e,t){await this._handleFilterUpdate(e),t?(this._shouldUpdateTableOnExtentChange=!0,this._handleTableOnMapExtent()):t===!1&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle?.remove(),this._filterByExtentHandle=void 0,await this._updateAllIds())}async validateTableUpdate(e){this._shouldUpdateTableOnExtentChange=e}async validateActiveEdits(){return this._validateActiveEdits([],this.selectedIds)}async refresh(){this._table&&await this._refresh()}async setColumnOrder(e){this._setColumnTemplates(e)}async beforeMapInfoChange(e){let t=e.detail.ref,i=e.detail.mapInfo;if(this._hasPendingEdits()){e.preventDefault();let s=await this._validateActiveEdits([],this.selectedIds);await t.setMapByID(s?i.id:e.detail.currentId,!s)}}async editorInitialized(e){this._shouldUpdateTableOnExtentChange=!1,this._editor=e.detail}async closeEdit(){this._shouldUpdateTableOnExtentChange=!0,this._filterByExtentHandle&&this._handleTableOnMapExtent()}async selectionChanged(e){let t=e.detail.selectedFeature[0],i=Number(t.getObjectId()),s=this._table;if(s.rowHighlightIds.length&&s.rowHighlightIds.removeAll(),s.rowHighlightIds.add(i),this._highlightFeatures(i),this.zoomAndScrollToSelected&&s&&this.mapView){let a=s.viewModel.getObjectIdIndex(i);s.scrollToIndex(a);let l=t.layer,h=this.mapView.allLayerViews.toArray(),n;h.some(async r=>r.layer.title===l?.title&&r.layer.type==="feature"?(n=r,this.mapView&&await y([i],n,this.mapView,!0,void 0,this.zoomToScale),!0):!1)}}async beforeLayerSelectionChange(e){if(this._hasPendingEdits()){e.preventDefault();let t=e.detail.ref,i=await this._validateActiveEdits([],this.selectedIds);return e.detail.selectedIds?await t.setLayerByIds(i?e.detail.newIds:e.detail.currentIds,!0):await t.setLayerById(i?e.detail.newId:e.detail.currentId,!0)}}async layerSelectionChange(e){await this._layerSelectionChanged(e)}async editsComplete(e){let t=e.detail;(t==="delete"||t==="add")&&(this._allIds=await this.queryAllIds()),await this._refresh()}async facilityChanged(e){this._updateFloorDefinitionExpression()}async levelChanged(e){this._floorLevel=e.detail,this._updateFloorDefinitionExpression()}async siteChanged(e){this._updateFloorDefinitionExpression()}async noLayersFound(){this._layer=void 0,this._allIds=[],this._size=0,this._clearSelection()}async clearSelection(){await this._validateActiveEdits([],this.selectedIds)&&this._clearSelection()}async mapChanged(){this._queryingData=!1,this._creatingFeature=!1,this._clearSelection()}async featuresSelected(e){e.detail.forEach(t=>{let i=this._table?.highlightIds.indexOf(t);i&&i<0&&this._table?.highlightIds.add(t)})}createWorkFlowStarted(){this._creatingFeature=!0}backFromCreateWorkFlow(){this._creatingFeature=!1}async load(){await this._initToolInfos()}render(){let e=this._fetchingData||this._hideTable?"display-none":"",t=this._fetchingData?"":"display-none",i=this._queryingData?"":"display-none",s=this._size.toString(),a=this.selectedIds.length.toString(),l=this.isMobile?"height-full":"height-full-adjusted",h=this._canShowFullTextSearch();return this._validateActiveActions(),o`<div><calcite-scrim class=${b(i)} .loading=${this._queryingData}></calcite-scrim><calcite-shell><div class=${`width-full ${l}`}><calcite-panel class="height-full width-full panel-header-override">${this._getMapLayerPicker("header-actions-start")}${!this.isMobile&&o`${this._getTableControlRow("header-content")}${this._getActionsEnd("header-actions-end")}`||""}${h&&o`<div class="search-container border-bottom"><calcite-input class=search clearable icon=search @calciteInputChange=${n=>{this._searchTextChanged(n)}} .placeholder=${this._searchPlaceHolder} title=${this._searchPlaceHolder??_} type=search ${f(this._searchNode)}></calcite-input></div>`||""}<calcite-loader class=${b(t)} .label=${this._translations.fetchingData} scale=l></calcite-loader><div class=${b(e)} ${f(this.onTableNodeCreate)}></div></calcite-panel></div>${this.isMobile?void 0:o`<div class="bottom-left text-color height-19" id=solutions-selected-count-div>${(this._translations.recordsTotal?.replace("{{total-number-of-records}}",s)+" | "+this._translations.recordsSelected.replace("{{selected-number-of-records}}",a)).replace("{{total}}",s).replace("{{selected}}",a)}</div>`}</calcite-shell></div>`}updated(){this._table&&this.updateRelatedAttachmentColumns()}async _searchTextChanged(e){this._fullTextSearchInfo.forEach(t=>{t.searchTerm=e.target.value}),this._searchFullText()}async _searchFullText(){let e=[],t=!1;if(this._showOnlySelected)e=this._tempSelectedIds,t=!0;else if(await this._validateActiveEdits([],this.selectedIds))this._clearSelection(),this._tempSelectedIds=[];else return;this._searchExpression&&this._clearSearchDefinitionExpression();let i=[];if(this._fullTextSearchInfo?.length&&this._fullTextSearchInfo[0].searchTerm){let s=this._layer?.createQuery();s.fullText=this._fullTextSearchInfo,i=this._layer?await this._layer.queryObjectIds(s):[],t&&e?.length&&(i=i.filter(a=>e.includes(a))),await this._updateSearchDefinitionExpression(i?.length?i:[-1])}t&&i?.length&&(this._showOnlySelected=!0,this._table?.highlightIds.addMany(i.reverse())),await new Promise(s=>setTimeout(s,800)),await this._updateAllIds()}_clearSearchDefinitionExpression(){let e=this._layer?.definitionExpression;this._searchExpression&&e&&e?.indexOf(this._searchExpression)>-1&&this._layer&&(e?.indexOf(" AND ("+this._searchExpression)>-1?this._layer.definitionExpression=e.replace(` AND (${this._searchExpression})`,""):this._layer.definitionExpression=e.replace(this._searchExpression,"")),this._searchExpression=""}async _updateSearchDefinitionExpression(e){let t=this._layer?.definitionExpression;if(this._layer)if(e?.length){let i=`objectId in(${e})`;this._layer.definitionExpression=this._searchExpression&&t&&t.includes(this._searchExpression)?t.replace(this._searchExpression,i):t?`${t} AND (${i})`:i,this._searchExpression=i}else this._clearSearchDefinitionExpression()}_canShowFullTextSearch(){return this._layer?.capabilities?.query?.supportsFullTextSearch&&this._layer.indexes.items.filter(e=>e.indexType=="FullText").length>0}_getFullTextSearchInfo(){if(this._fullTextSearchInfo=[],this._layer?.capabilities?.query?.supportsFullTextSearch){let e=this._layer.indexes?.filter(t=>t.indexType=="FullText");if(e?.length){let t=[];e.forEach(s=>{t.push(...s.fields.split(","))});let i=[];t.forEach(s=>{let a=this._layer?.getField(s.trim());a?.alias&&i.push(a.alias)}),this._searchPlaceHolder=this._translations.searchPlaceholder.replace("{{field_names}}",i.join(", ")),this._fullTextSearchInfo.push({onFields:["*"],searchTerm:"",searchType:"prefix"})}}}_getMapLayerPicker(e){let t=this.isMobile?"display-none":"";return o`<div class=${`border-end ${t}`} id=solutions-map-layer-picker-container slot=${e??_}><map-layer-picker appearance=transparent .configLayerOrderDefined=${this._configLayerOrderDefined} .defaultLayerId=${this.defaultLayerId} display=inline-flex .enabledLayerIds=${this._enabledLayerIds} height=50 .isMobile=${this.isMobile} .mapView=${this.mapView} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} placeholder-icon=layers scale=l .selectedIds=${this._layer?[this._layer?.id]:[]} show-single-layer-as-label show-tables type=dropdown></map-layer-picker></div>`}_getLayerOption(e){let t;return this.mapInfo?.layerOptions?.layers.some(i=>i.id===e?(t=i,!0):!1),t}_getActionsEnd(e){let t=this._relatedFeatureTable?this._relatedFeatureTable.layer:this._layer,i=this._relatedFeatureTable||this._table,s=this._getLayerOption(t?.id||"");return o`<div class="display-flex" slot=${e??_}><field-selection .configExtraFields=${s?.extraFields} .layer=${t} .mapView=${this.mapView} .table=${i} .tableRef=${this.el}></field-selection>${this.enableShare&&!this.isMobile?this._getShare("share"):void 0}</div>`}_getTableControlRow(e){return o`<div class=${"height-51-px width-full display-flex"} slot=${e??_} ${f(this._toolbar)}>${this._getActionBar()}</div>`}_getActionBar(){return o`<calcite-action-bar class=width-full expand-disabled id=${this._getId("bar")??_} layout=horizontal><calcite-action-group>${this.isMobile?void 0:this._getActions()}</calcite-action-group></calcite-action-bar>`}_getActions(){return this._toolInfos?.reduce((e,t)=>(t&&e.push(t.isDanger?this._getDangerAction(t.icon,t.label,t.func,t.disabled):this._getAction(t.active,t.icon,t.indicator,t.label,t.func,t.disabled,!!t.loading,t.toolTip)),e),[])}_validateEnabledActions(){let e=this._getIds().length,t=["zoom-to-object","pencil","trash","erase","selected-items-filter"];this._toolInfos?.forEach(i=>{i&&t.indexOf(i.icon)>-1&&(i.disabled=i.icon==="pencil"?e<2||e>m:e<1,i.toolTip=i.icon==="pencil"?e>m?this._translations.featureEditLimitNotice:this._translations.editMultiple:i.toolTip)})}_validateActiveActions(){let e=["filter","list-check-all","selected-items-filter"];this._toolInfos?.forEach(t=>{t&&e.indexOf(t.icon)>-1&&(t.icon==="filter"&&(t.indicator=this._filterActive),t.icon==="list-check-all"&&(t.active=this._selectAllActive),t.icon==="selected-items-filter"&&(t.active=this._showOnlySelected,t.label=this._showOnlySelected?this._translations.showAll:this._translations.showSelected))})}async _initToolInfos(){let e=this._getIds().length>0,t=this._relatedFeatureTable?this._relatedFeatureTable.layer.isTable:this._layer?.isTable,i=this.featureSelectionMode==="multiple"&&this._layer?.capabilities?.operations.supportsUpdate,s=this._getSelectedIds().length<2||this._getSelectedIds().length>m,a=!this.mapHidden&&!t,l=!this._relatedFeatureTable&&(!this._layer?.isTable||this._hasFilterExpressions()),h=this._featuresEmpty(),n=this.featureSelectionMode==="single",r=this.enableCSV;if(this._relatedFeatureTable){let u=await this._queryRelatedFeatures();r=u&&Object.keys(u).length>0}let d=[];l&&d.push({active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>this.toggleFilter.emit(),disabled:!1,toolTip:this._translations.filters}),a&&d.push({active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>this._zoom(),disabled:!e,toolTip:this._translations.zoom}),i&&d.push({active:!1,icon:"pencil",indicator:!1,label:this._translations.editMultiple,func:()=>this.editMultipleFeatures.emit(this._getSelectedIds()),disabled:s,toolTip:this._translations.editMultiple}),this._deleteEnabled&&d.push({active:!1,icon:"trash",indicator:!1,label:this._translations.delete,func:()=>this._showDelete(),disabled:!e,isDanger:!0,toolTip:this._translations.delete}),d.push({active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>{this.clearSelection()},disabled:!e,toolTip:this._translations.clearSelection}),this._relatedFeatureTable||d.push({active:!1,icon:"selected-items-filter",indicator:!1,label:this._showOnlySelected?this._translations.showAll:this._translations.showSelected,func:()=>this._toggleShowSelected(),disabled:!e,toolTip:this._showOnlySelected?this._translations.showAll:this._translations.showSelected}),!n&&!this._relatedFeatureTable&&d.push({active:!1,icon:"list-check-all",indicator:!1,func:async()=>await this._selectAll(),label:this._translations.selectAll,disabled:h,toolTip:this._translations.selectAll}),!n&&!this._relatedFeatureTable&&d.push({active:!1,icon:"compare",indicator:!1,func:async()=>await this._switchSelected(),label:this._translations.switchSelected,disabled:h,toolTip:this._translations.switchSelected}),d.push({active:!1,icon:"refresh",indicator:!1,func:()=>{this._refresh()},label:this._translations.refresh,disabled:!1,toolTip:this._translations.refresh}),r&&d.push({active:!1,icon:"export",indicator:!1,func:()=>{this._exportToCSV()},label:this._translations.exportCSV,loading:this._csvExporting,disabled:h,toolTip:this._translations.exportCSV}),this._toolInfos=[...d]}_updateFloorDefinitionExpression(){if(this._floorField&&this._floorLevel){let e=`${this._floorField} = '${this._floorLevel}'`,t=this._layer?.definitionExpression;this._layer&&(this._layer.definitionExpression=t&&this._floorExpression&&t?.indexOf(this._floorExpression)>-1?t.replace(this._floorExpression,e):t?`${t} AND (${e})`:e),this._floorExpression=e}}_featuresEmpty(){return this._allIds?.length===0}_hasFilterExpressions(){let e=[],t=this._layer?.id;return this.mapInfo?.filterConfig?.layerExpressions&&t!==void 0&&(e=this.mapInfo.filterConfig.layerExpressions.filter(i=>i.id===t)),e.length>0}_getAction(e,t,i,s,a,l,h,n){let r=this._layer===void 0?!0:l;return o`<calcite-action .active=${e} appearance=solid .disabled=${r} .icon=${t} .id=${`layer-table-${t}`} .indicator=${i} .label=${s} .loading=${h} @click=${a} text text-enabled><div class="display-flex"><span class="label-override padding-start-1-4">${s}</span></div></calcite-action>${this._getToolTip("auto",`layer-table-${t}`,n)}`}_showDelete(){this.showDelete.emit({ids:this._getIds()})}_getShare(e){return o`<div id=${this._getId(e)??_}><instant-apps-social-share class="height-51 width-51 display-flex" .embed=${this.shareIncludeEmbed} flip-rtl popover-button-icon-scale=s scale=m share-button-color=neutral share-button-type=action .socialMedia=${this.shareIncludeSocial} .view=${this.mapView} ${f(this._shareNode)}></instant-apps-social-share>${this._getToolTip("bottom",e,this._translations.share)}</div>`}_updateShareUrl(){let e=this._shareNode.value?.shareUrl;if(!e)return;let t=new URL(e);this.mapInfo?.id?t.searchParams.set("webmap",this.mapInfo.id):t.searchParams.delete("webmap"),this._layer?.id?t.searchParams.set("layer",this._layer.id):t.searchParams.delete("layer"),this.selectedIds?.length>0?t.searchParams.set("oid",this.selectedIds.reverse().join(",")):t.searchParams.delete("oid"),this.appLayout&&t.searchParams.set("applayout",this.appLayout),this.selectedRelatedIds?.length>0&&this._relatedFeatureTable?.layer?.id&&(t.searchParams.set("oid",this.selectedRelatedIds.join(",")),t.searchParams.set("layer",this._relatedFeatureTable?.layer?.id.toString())),this._shareNode.value&&(this._shareNode.value.autoUpdateShareUrl=!1,this._shareNode.value.shareUrl=t.href)}_getToolTip(e,t,i){return o`<calcite-tooltip .placement=${e} .referenceElement=${t}><span>${i}</span></calcite-tooltip>`}_getId(e){return`solutions-action-${e}`}_getDangerAction(e,t,i,s){let a=this._layer===void 0?!0:s;return o`<div class="display-flex" id=${this._getId(e)??_}>${o`<calcite-action appearance=solid .disabled=${a} .id=${`layer-table-${e}`} @click=${i} text><calcite-icon class="danger-icon-color" .icon=${e} scale=s></calcite-icon><span class="label-override padding-start-1-4 danger-label-color">${t}</span></calcite-action>`}${this._getToolTip("bottom",`layer-table-${e}`,t)}</div>`}_getIds(){let e=this._relatedFeatureTable??this._table;return this._relatedFeatureTable&&this._table&&this._table.highlightIds.getItemAt(0)!==this.selectedIds[0]&&(e=this._table),e?.highlightIds.map(t=>Number.parseInt(t.toString(),10)).toArray()??[]}onTableNodeCreate(e){this._tableNode=e}async _getTable(e,t){this._layer&&(await this._layer.when(()=>{this._table=new L({autoRefreshEnabled:this.enableAutoRefresh,autoSaveEnabled:this.enableTableAutosave,layer:this._layer,view:this.mapView,columnReorderingEnabled:this.enableColumnReorder,editingEnabled:this._editEnabled&&this.enableInlineEdit,relatedRecordsEnabled:!0,attachmentsEnabled:!0,highlightEnabled:!1,multiSortEnabled:!1,visibleElements:{columnDescriptions:!1,header:!1,menu:!1,progress:!1},tableTemplate:{columnTemplates:t},container:e})}),await this._table?.when(()=>{this._table?.viewModel.addHandles(this._table.highlightIds.on("change",i=>{this._handleOnChange(i)})),this._table?.viewModel.addHandles(this._table.on("cell-pointerover",this.tempHighlightOnHover.bind(this))),this._table?.viewModel.addHandles(this._table.on("cell-pointerout",this._removeTempHighlight.bind(this))),this._table?.viewModel.addHandles(this._table.on("column-reorder",this._handleColumnReorder.bind(this))),this.listenOn(this._tableNode,"mouseleave",this._removeTempHighlight),this._table?.viewModel.addHandles(c.watch(()=>this._table.size,i=>{this._size=i})),c?.watch(()=>this._table?.relatedTable,async i=>{if(i){if(i.rowHighlightIds.length){let a={added:[i.rowHighlightIds.getItemAt(0)],removed:[]};this._handleOnChange(a)}let s=i.layer;if(this._layerEditHandle=s.on("edits",async()=>{await new Promise(a=>setTimeout(a,50)),await this._refresh(!0)}),this._checkEditEnabled(s),i.editingEnabled=this._editEnabled&&this.enableInlineEdit,i.autoSaveEnabled=this.enableTableAutosave,this._relatedFeatureTable=i,typeof i.layer?.id=="string"&&i.layer?.fields){let a=i.layer.popupTemplate?.fieldInfos,l=this._getColumnTemplates(i.layer.id,i.layer.fields,a);this._relatedFeatureTable.tableTemplate=new w({columnTemplates:l})}i.highlightIds.on("change",a=>{this._handleRelatedRecordsChange(a)})}else{this.selectedRelatedIds=[],this._relatedFeatureTable=void 0,this._layerEditHandle&&this._layerEditHandle.remove();let s=this._layer;this._refresh(),s&&this.relatedRecordToggled.emit(s),this._finishOnChange()}await this._initToolInfos()})}))}async _handleRelatedRecordsChange(e){await this._handleOnChange(e),this._updateShareUrl()}hasAttachmentsEnabled(e){if(!e?.capabilities)return!1;let{capabilities:{data:{supportsAttachment:t},operations:{supportsQueryAttachments:i}}}=e;return t&&i}async _handleOnChange(e){if(!await this._validateActiveEdits([...e.added],[...e.removed]))return;let t=[...this._getIds()],i=this._getSelectedLayer(t);this._relatedFeatureTable&&this._table?.highlightIds.getItemAt(0)!==this.selectedIds[0]&&(i=this._layer,await this._initToolInfos()),i&&this.relatedRecordToggled.emit(i),this.featureSelectionMode==="single"&&(this._relatedFeatureTable&&t.length>1?(this._relatedFeatureTable.highlightIds.remove(t[0]),t.shift()):t.length>1&&!this._selectAllActive&&(this._table?.highlightIds.remove(t[0]),t.shift())),!this._relatedFeatureTable||this._relatedFeatureTable&&this._table?.highlightIds.getItemAt(0)!==this.selectedIds[0]?(this.selectedRelatedIds=[],this.selectedIds=t.reverse(),this._tempSelectedIds=[...this.selectedIds],this._highlightFeatures(this.selectedIds[0])):this.selectedRelatedIds=t.reverse(),this._finishOnChange()}async _validateActiveEdits(e,t){let i=!0;if(this._editor&&!this._skipEditCheck){if(this._hasPendingEdits()){let s=!1;try{this._editor.viewModel.activeWorkflow&&await this._editor.viewModel.activeWorkflow.cancel({force:!1})}catch(a){s=a?.name==="workflow:cancel-denied"}if(s){let a=this._relatedFeatureTable&&this._relatedFeatureTable.highlightIds.length>0?this._relatedFeatureTable:this._table;i=!1,this._skipEditCheck=!0,e.length>0?a?.highlightIds.removeMany(e):t.length>0&&a?.highlightIds.addMany(t)}}}else i=!this._skipEditCheck,this._skipEditCheck=!1;return this._shouldUpdateTableOnExtentChange=i,i}_hasPendingEdits(){let e=this._editor?.viewModel?.hasPendingEdits,t=this._editor?.activeWorkflow?.activeWorkflow?.hasPendingEdits;return e||t}_finishOnChange(){this._showOnlySelected&&!this._relatedFeatureTable&&(this._table&&this._getSelectedIds().length>0?this._table.filterBySelectionEnabled=!0:this._toggleShowSelected());let e=this._getSelectedIds();setTimeout(()=>{this.featureSelectionChange.emit(e)},50)}_handleColumnReorder(){this.columnReorder.emit()}tempHighlightOnHover(e){if(this._removeTempHighlight(),this._selectedLayerView){let t=e.feature;this._temporaryFeatureHandle=this._selectedLayerView?.highlight([t],{name:"temporary"})}}_removeTempHighlight(){this._temporaryFeatureHandle&&this._temporaryFeatureHandle.remove()}_highlightFeatures(e){if(this._clearHighlights(),this.selectedIds.length>0&&this._selectedLayerView&&(this._currentFeatureHighlightHandle=this._selectedLayerView?.highlight([e],{name:"current-selection"}),this.selectedIds.length>1)){let t=this.selectedIds.filter(i=>i!==e);this._defaultFeaturesHandle=this._selectedLayerView?.highlight(t,{name:"default"})}}_clearHighlights(){this._removeTempHighlight(),this._currentFeatureHighlightHandle&&this._currentFeatureHighlightHandle.remove(),this._defaultFeaturesHandle&&this._defaultFeaturesHandle.remove()}_resetColumnTemplates(){if(this._layer){let e=this._layer.popupTemplate?.fieldInfos,t=this._getColumnTemplates(this._layer.id,this._layer.fields,e);t?.length===0?this._tableNode?.classList.add("display-none"):this._tableNode?.classList.remove("display-none");let i=this._table?.tableTemplate?.columnTemplates,s=i&&t&&i.length!==t.length||t?.some((a,l)=>i&&i[l]?JSON.stringify(i[l])!==JSON.stringify(a):!1);if(this._table&&t&&(s||!this._columnsInfo)){this._table.tableTemplate=new w({columnTemplates:t});let a=t.map(l=>l.fieldName);this._initColumnsInfo(a)}}}_setColumnTemplates(e){this._table&&e&&(this._table.tableTemplate=new w({columnTemplates:e}))}async _resetTable(){if(this._loaded=!1,this._clearSelection(),this._allIds=await this.queryAllIds(),!this._table&&this._layer){let e=this._layer.popupTemplate?.fieldInfos,t=this._getColumnTemplates(this._layer.id,this._layer.fields,e);this._tableNode&&await this._getTable(this._tableNode,t)}else this._table&&(this._table.view=this.mapView,this._table.layer=this._layer);await this._initLayerRefresh(),this._checkEditEnabled(this._layer),this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit,this._table.autoSaveEnabled=this.enableTableAutosave,await this._table.when(),setTimeout(()=>{this._loaded||this.finishLoading()},1e3),await c.once(()=>this._table?.state==="loaded").then(async()=>{await this.finishLoading()}))}async finishLoading(){try{this._loaded=!0,this._table?.highlightIds.removeAll(),this._table.objectIds.removeAll(),this._resetColumnTemplates(),this._showOnlySelected=!1,await this._handleDefaults(),await this._sortTable(),await this._initToolInfos(),["esri-feature-table","esri-widget"].forEach(e=>{this._tableNode&&!this._tableNode.classList.contains(e)&&this._tableNode.classList.add(e)})}catch(e){console.log(e)}}async _initLayerRefresh(){this._refreshHandle&&this._refreshHandle.remove(),this._layer&&(this._refreshHandle=this._layer.on("refresh",e=>{e.dataChanged&&this._updateAllIds()}))}async _updateAllIds(){let e=await this.queryAllIds(),t=this.selectedIds.filter(i=>this._allIds.indexOf(i)>-1);(JSON.stringify(e)!==JSON.stringify(this._allIds)||JSON.stringify(this.selectedIds)!==JSON.stringify(t))&&(this._allIds=e,this.selectedIds=t,await this._refresh())}async _handleDefaults(){if(!this._defaultOidHonored&&this.defaultOid?.length>0&&this.defaultOid[0]>-1&&this._table&&(await this._selectDefaultFeature(this.defaultOid),this._defaultOidHonored=!0,this.defaultOid=[],this._showOnlySelected=!1,this._toggleShowSelected()),!this._defaultGlobalIdHonored&&this.defaultGlobalId&&this.defaultGlobalId?.length>0&&this._table&&this._layer){let e=await O(this.defaultGlobalId,this._layer),t=e?.length>0?e.map(i=>Number(i.getObjectId())):void 0;t&&await this._selectDefaultFeature(t),this._defaultGlobalIdHonored=!0,this.defaultGlobalId=[],this._showOnlySelected=!1,this._toggleShowSelected()}}_initColumnsInfo(e){let t=this._table?.columns.reduce((s,a)=>((!e||e?.indexOf(a.name)>-1)&&(s[a.name]=!a.hidden),s),{}),i=this._table?.columns.map(s=>s.name);(e&&i?e.filter(s=>i.indexOf(s)<0):[]).forEach(s=>{t[s]=!0}),this._columnsInfo=e?e.reduce((s,a)=>(s[a]=t[a],s),{}):t}async _selectDefaultFeature(e){e.length>0&&this._table?.highlightIds.addMany(e)}_checkEditEnabled(e){this._editEnabled=!!(e?.editingEnabled&&e?.capabilities?.operations.supportsUpdate),this._deleteEnabled=!!(e?.editingEnabled&&e?.capabilities?.operations.supportsDelete)}async _sortTable(){let e=this._layer?.objectIdField,t="desc",i,s=this.mapInfo?.layerOptions?.layers,a=this._layer?.id;s&&s.length>0&&a!==void 0&&(i=s.filter(l=>l.id===a),i&&i.length>0&&(i=i[0],i.sortField&&i.fields?.includes(i.sortField)&&(e=i.sortField),t=i?.sortOrder?i.sortOrder:"desc")),this._table&&this._layer&&(await this._table.when(),await this._layer.when(()=>{e&&this._table?.sortColumn(e,t)}))}async _handleFilterListReset(){this._filterActive=!1,this._updateShareUrl(),await this._searchFullText()}async _handleFilterUpdate(e){if(this._floorExpression&&this._layer){let t=this._layer.definitionExpression,i=new RegExp(`${this._floorField} = ['].+[']`,"gm");this._layer.definitionExpression=t&&this._floorField&&t.indexOf(`${this._floorField} = '`)>-1?t.replace(i,this._floorExpression):t?`${t} AND (${this._floorExpression})`:this._floorExpression}this._filterActive=e,this._updateShareUrl(),await this._searchFullText()}_handleTableOnMapExtent(){this._table&&(this._filterByExtentHandle=c.when(()=>this.mapView?.stationary,async()=>{if(this._shouldUpdateTableOnExtentChange&&this.appLayout==="splitView"){if(await new Promise(e=>setTimeout(e,800)),this._table&&this.mapView){this._table.filterGeometry=this.mapView.extent;let e={geometry:this.mapView.extent},t=this._layer&&await this._layer.queryObjectIds(e),i=this.selectedIds.filter(a=>!t?.includes(a)),s=this._outOFExtentOids.filter(a=>t?.includes(a));i.length>0&&(this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table.highlightIds.removeMany(i),this._outOFExtentOids=[...this._outOFExtentOids,...i]),s.length>0&&(this.selectedIds=[...new Set([...this.selectedIds,...s])],this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(this.selectedIds.reverse()),this._outOFExtentOids=this._outOFExtentOids.filter(a=>!s.includes(a)))}this._allIds=await this.queryAllIds()}},{initial:!0}))}async _closeFilter(){this._allIds=await this.queryAllIds()}async queryAllIds(){if(this._layer){let e=this._layer.createQuery();return e.geometry=this._filterByExtentHandle&&this.mapView?this.mapView.extent:null,e.where=this._layer.definitionExpression||"1=1",await this._layer.queryObjectIds(e)}else return[]}async _mapClicked(e){let t={include:this._layer},i=await this.mapView?.hitTest(e.screenPoint,t);if(i&&i.results.length>0){let s=i.results;if(this.featureSelectionMode==="single"){this._table?.highlightIds.removeAll();let a=s[0].graphic.getObjectId();if(a){let l=this._table?.highlightIds.indexOf(a);l!==void 0&&l<0&&this._table?.highlightIds.add(a)}}else s.forEach(a=>{let l=Number(a.graphic.getObjectId()),h=this._table?.highlightIds.indexOf(l);h&&h<0&&l&&this._table?.highlightIds.add(l)});this._showOnlySelected&&this._table&&(this._table.filterBySelectionEnabled=!0)}else await this.clearSelection()}async _selectAll(){let e=this._allIds,t=e.filter(i=>this.selectedIds.indexOf(i)<0);await this._validateActiveEdits(t,this.selectedIds)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(e),this.selectedIds=e,this._finishOnChange(),this._selectAllActive=!0):this._skipEditCheck=!1}_toggleShowSelected(){this._showOnlySelected=!this._showOnlySelected,this._table&&(this._table.filterBySelectionEnabled=this._showOnlySelected)}_clearSelection(){this._relatedFeatureTable||(this.selectedIds=[],this._outOFExtentOids=[],this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table?.highlightIds.removeAll(),this._clearHighlights(),this._table?.rowHighlightIds.removeAll()),this._relatedFeatureTable&&(this._relatedFeatureTable?.highlightIds.removeAll(),this.selectedRelatedIds=[]),this._finishOnChange()}async _switchSelected(){let e=[...this.selectedIds],t=this._allIds.reduce((i,s)=>(e.indexOf(s)<0&&i.push(s),i),[]).sort((i,s)=>i-s);await this._validateActiveEdits(t,e)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(t),this.selectedIds=t,this._finishOnChange()):this._skipEditCheck=!1}async _exportToCSV(){let e=this._relatedFeatureTable?this._relatedFeatureTable.layer:this._layer;if(!e)return;let t={},i=this._getIds();if(this._relatedFeatureTable?.tableParent&&this._relatedFeatureTable.highlightIds.length===0){let l=this._relatedFeatureTable.tableParent.highlightIds?.getItemAt(0);if(l!==void 0){let h=await this._queryRelatedFeatures(),n=[];h&&h[l]?.features&&(h[l].features.forEach(r=>{r.attributes&&n.push(r.attributes[e.objectIdField])}),i=n.length>0?n:[])}}t[e.id]={selectionSetNames:[e.title||""],ids:i,layer:e};let s=this._relatedFeatureTable??this._table;if(!s)return;let a=s&&s.columns.toArray().reduce((l,h)=>{if(!h.hidden){let n=h?.name||h?.fieldName;n&&l.push(n.toLocaleLowerCase())}return l},[]);this._updateToolInfoLoading("export",!0),this._csvExporting=!0,this.mapView?.map&&await $(this.mapView.map,t,!1,!1,!0,a,!0,!0),this._updateToolInfoLoading("export",!1),this._csvExporting=!1}async _queryRelatedFeatures(){let e=this._relatedFeatureTable?this._relatedFeatureTable?this._relatedFeatureTable.layer:this._relatedFeatureTable.tableParent?.layer:this._layer,t=this._relatedFeatureTable?.tableParent?.highlightIds?.items[0],i=this._relatedFeatureTable?.tableParent?.layer,s=e?.relationships?.find(l=>i.relationships?.some(h=>h.id===l.id)),a=new M({objectIds:[t],outFields:["*"],relationshipId:s?.id});return t&&a&&await i.queryRelatedFeatures(a).catch(async l=>{console.error(l)})}_updateToolInfoLoading(e,t){this._toolInfos.some(i=>i?.icon===e?(i.loading=t,!0):!1)}async _refresh(e){if(await this._validateActiveEdits([],this.selectedIds)){this._table&&await this._table.refresh(),this._relatedFeatureTable&&await this._relatedFeatureTable.refresh(),this._allIds=await this.queryAllIds();let t=this._getSelectedLayer(this.selectedRelatedIds);if(t&&this.relatedRecordToggled.emit(t),!e){let i=this._getSelectedIds();this.featureSelectionChange.emit(i)}}}_getSelectedIds(){let e;return this._relatedFeatureTable?this.selectedRelatedIds.length>0?e=this.selectedRelatedIds:e=this._relatedFeatureTable.tableParent?.highlightIds.toArray()??[]:e=this.selectedIds,e}_getSelectedLayer(e){let t;return this._relatedFeatureTable?e.length>0?t=this._relatedFeatureTable.layer:t=this._relatedFeatureTable.tableParent?.layer:t=this._layer,t}async _clearSearchText(){if(this._searchNode.value){this._searchNode.value.value="";let e={target:{value:""}};await this._searchTextChanged(e)}}async _zoom(){this._layer&&this.mapView&&await y(this.selectedIds,this._selectedLayerView,this.mapView,!0,void 0,this.zoomToScale)}async _layerSelectionChanged(e){let t=e.detail[0];if(t!==this._layer?.id||this._featuresEmpty()){this._fetchingData=!0,await this._clearSearchText();let i=this.mapView&&await A(this.mapView,t);i&&await i.when(async()=>{this._selectedLayerView=!i.isTable&&this.mapView?await C(this.mapView,i.id):null,this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._shouldUpdateTableOnExtentChange=!0,this._layer=i,await this._initToolInfos(),this._getFullTextSearchInfo()})}this._creatingFeature=!1,this._fetchingData=!1}_getColumnTemplates(e,t,i){let s=this._getLayerOption(e),a=this._layer?.attributeTableTemplate?.elements,l=[];a?.length>0&&this.honorMapFieldSettings&&(l=a.map(r=>r.fieldName));let h=s?.fields&&s?.fieldOrder?s.fieldOrder.filter(r=>s?.fields&&s.fields.indexOf(r)>-1):l.length>0?l:void 0,n;return t&&(n=t.reduce((r,d)=>{let u={type:"field",fieldName:d.name,label:this.getFieldLabel(d,i),menuConfig:this._getMenuConfig(d.name)};return s&&s.fields&&s?.fields?.length>0?s.fields.indexOf(d.name)>-1&&r.push(u):l.length>0?l.indexOf(d.name)>-1&&r.push(u):r.push(u),r},[])),n?h?n?.sort(this._sortFields.bind(this,h)):n:[]}updateRelatedAttachmentColumns(){let e=this._getLayerOption(this._layer?.id||""),t=this.hasAttachmentsEnabled(this._layer),i=!0,s="attachments",a=(e?.extraFields||[]).reduce((h,n)=>(n.startsWith("related:")?h.related.push(n.split("related:")[1]):h.extra.push(n),h),{related:[],extra:[]}),l=a.extra.some(h=>h.toLowerCase()===s);a&&(t=l&&t,i=a.related.length>0,this._table?.columns.forEach(h=>{h.fieldName.startsWith("EsriFeatureTableRelationshipColumn")&&(h.hidden=!a.related.includes(h.effectiveLabel)),h.fieldName.startsWith("EsriFeatureTableAttachmentsColumn")&&(h.hidden=!a.extra.some(n=>n.toLowerCase()===h.effectiveLabel.toLowerCase()))})),this._table.relatedRecordsEnabled=i,this._table.attachmentsEnabled=t}getFieldLabel(e,t){let i=e.alias?e.alias:e.name;return t?.some(s=>s.fieldName===e.name?(i=s.label,!0):!1),i||e.name}_sortFields(e,t,i){return e?.indexOf(t.fieldName)-e.indexOf(i.fieldName)}_getMenuConfig(e){return{items:[{label:this._translations.hideField,icon:"view-hide",autoCloseMenu:!0,clickFunction:()=>{this._handleHideClick(e)}}]}}_handleHideClick(e){this._columnsInfo&&this._table&&(this._columnsInfo[e]=!1,this._table.hideColumn(e),this._table.tableTemplate&&this._table.tableTemplate.columnTemplates.forEach(t=>{t.fieldName===e&&(t.visible=!1)}))}};E("layer-table",I);return I},"widgets/FeatureTable","core/reactiveUtils","rest/support/RelationshipQuery","widgets/FeatureTable/support/TableTemplate",a,c,d,e,h)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import i from"./6ZRRFBIZ.js";import h from"./NBPM6OJQ.js";import"./US5FON7D.js";import"./BU5PIAGS.js";import"./VVZAS55G.js";import"./NP7POZTI.js";import g from"./BGXRCU7G.js";import e from"./UYY6JODL.js";import d from"./QKJ4PGBO.js";import"./2B4SGB3I.js";import"./YKQDHR27.js";import"./J75MHJID.js";import c from"./CEP54NLT.js";import a from"./YVNP437O.js";import{a as y}from"./R67EKKSL.js";import"./BVWAUO73.js";import"./K3DQKY7V.js";import"./TEHBW75B.js";import"./ALSK2SPM.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./BMBNSJZQ.js";import"./5HZMUGQD.js";import"./5VDDAINK.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./XQQ52NKX.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import{b as u}from"./KIUBUHVM.js";import{F as f,G as b,h as p,i as m}from"./H5E6ISYP.js";import"./QPIMTXPL.js";export default $arcgis.t(([])=>{var v=p`.height-51{height:51px}.width-51{width:51px}`,h=class extends b{constructor(){super(),this._translations=y({name:"field-selection",blocking:!0}),this._fieldSortOrder="default",this._selectedFields=[],this._fieldVisibilityPopoverClickHandler=i=>{this._fieldVisibilityPopoverNode?this._isInNode(i.target,"arcgis-field-pick-list")||(document.body.removeChild(this._fieldVisibilityPopoverNode),this._fieldVisibilityPopoverNode=void 0,document.removeEventListener("click",this._fieldVisibilityPopoverClickHandler)):document.removeEventListener("click",this._fieldVisibilityPopoverClickHandler)},this.listenOn(window,"columnReorder",this.handleColumnReorder,{capture:!0})}static{this.properties={configExtraFields:1,layer:0,mapView:0,table:0,tableRef:0,_translations:16}}static{this.styles=v}render(){return m`<calcite-action alignment=center appearance=solid class="height-51 width-51" id=solutions-field-selection .text=${this._translations.fieldVisibility} scale=m @click=${()=>this._handleFieldVisibilityClick()} @mouseover=${()=>this._addTableTooltip(this._fieldVisibilityActionNode,this._translations.fieldVisibility)} @mouseout=${()=>this._removeTableTooltip()} @focus=${()=>this._addTableTooltip(this._fieldVisibilityActionNode,this._translations.fieldVisibility)} ${f(i=>this._fieldVisibilityActionNode=i)}><calcite-icon scale=s icon=gear></calcite-icon></calcite-action>`}handleColumnReorder(){this._fieldSortOrder="default",this._fieldVisibilityPopoverNode&&(this.removeFieldsPickList(),this._handleFieldVisibilityClick())}_handleFieldVisibilityClick(){if(this._fieldVisibilityPopoverNode)return;let i=this.table?.tableTemplate?.columnTemplates;if(this.layer&&this.mapView&&i&&this._fieldVisibilityActionNode){document.removeEventListener("click",this._fieldVisibilityPopoverClickHandler);let t=this.table.fieldColumns.map(l=>({alias:l.field.alias,description:l.field.description,name:l.field.name,type:l.field.type}));if(this._hasAttachmentsEnabled(this.layer)){let l="Attachments";if(this._shouldShowField(l.toUpperCase(),!1)){if(!i.some(s=>s.fieldName.toUpperCase()===l.toUpperCase())){let s={fieldName:l,type:"attachment",visible:!0};i.push(s)}t.push({name:l,alias:"Photos and files",type:"none",description:l})}}if(this.table.relatedRecordsEnabled&&this.layer.relationships&&this.layer.relationships.length>0){let l=this.layer.parent;this.layer.relationships.forEach(s=>{let o,d=this._shouldShowField(s.name||"",!0);if(!i.some(a=>a.fieldName.toLowerCase()===s.name?.toLowerCase()?(o=s.name,!0):!1))if(s.name){o=s.name;let a={fieldName:o,type:"relationship",visible:!0};d=this._shouldShowField(o,!0),i.push(a)}else{let a=[...l?.layers||[],...l?.tables],c;if(a.some(n=>n.layerId===s.relatedTableId?(c=n,!0):!1),c){o=c.title,s.name=o;let n={fieldName:o,type:"relationship",visible:!0};d=this._shouldShowField(o,!0),i.push(n)}}o&&d&&t.push({name:o,alias:`Related ${o}`,type:"none",description:`related:${o}`})})}let e=this._fieldVisibilityPopoverNode?this._fieldVisibilityPopoverNode:document.createElement("arcgis-field-pick-list");e.layer=this.layer,e.fields=t,e.showFieldInfo=!0,e.showFieldName=!0,e.showDescription=!1,e.showSelectionAll=!0,e.hideCancel=!0,e.hideSort=!1,e.showFilterLength=5,e.multiple=!0,e.heading=this._translations.fieldVisibility,e.okBtnText=this._translations.doneWithFieldChanges,e.filterPlaceholderText=this._translations.filterFields,e.sortBy=this._fieldSortOrder??"default";let r=this.table?.visibleColumns.map(l=>l.fieldName.startsWith("EsriFeatureTableRelationshipColumn")||l.fieldName.startsWith("EsriFeatureTableAttachmentsColumn")?l.effectiveLabel:l.fieldName);e.selectedFields=i.reduce((l,s)=>((r?r.indexOf(s.fieldName)>-1:s.visible)&&l.push(s.fieldName),l),[]),this._selectedFields=e.selectedFields,e.style.minHeight="340px",e.popoverProps={refElement:this._fieldVisibilityActionNode,popoverWidth:300,placement:"bottom-end",offsetDistance:-20,triggerDisabled:!1,autoClose:!1},e.addEventListener("arcgisChange",l=>{l.stopPropagation();let s=l.detail.selectedFields,o=this._getDifference(s,this._selectedFields),d=this._getDifference(this._selectedFields,s);o.concat(d).forEach(a=>{let c=this.layer?.relationships?.map(n=>n.name)||[];if(a==="Attachments"){let n=this.table.columns.find(_=>"onShowAttachments"in _);n.hidden=d.indexOf(a)>-1}else c.indexOf(a)>-1?this.table.columns.filter(n=>"relationshipId"in n).forEach(n=>{d.indexOf(a)>-1,a==n.effectiveLabel&&(n.hidden=d.indexOf(a)>-1)}):this.table.toggleColumnVisibility(a)}),this._selectedFields=s,this._updateTable(this.table.tableTemplate)}),e.addEventListener("arcgisSortByChange",l=>{l.stopPropagation(),this._fieldSortOrder=l.detail,this._sortFields(l.detail)}),e.addEventListener("arcgisClose",()=>{this._closePopovers(),setTimeout(()=>this._fieldVisibilityActionNode.setFocus(),200)}),document.body.appendChild(e),this._fieldVisibilityPopoverNode=e,setTimeout(()=>document.addEventListener("click",this._fieldVisibilityPopoverClickHandler),200)}}_shouldShowField(i,t){return(this.configExtraFields||[]).some(e=>t?e.replace("related:","").toUpperCase()===i.toUpperCase():e.toUpperCase()===i.toUpperCase())}removeFieldsPickList(){this._fieldVisibilityPopoverNode&&(document.body.removeChild(this._fieldVisibilityPopoverNode),this._fieldVisibilityPopoverNode=void 0)}_sortFields(i){let t=this.table.tableTemplate.columnTemplates,e=this._getSortOrder(i),r=t.filter(s=>s.type!=="attachment"&&s.type!=="relationship").sort((s,o)=>{let d=e.indexOf(s.fieldName),a=e.indexOf(o.fieldName);return d===-1&&a!==-1?1:d!==-1&&a===-1?-1:d===-1&&a===-1?0:d-a}),l=t.filter(s=>s.type==="attachment"||s.type==="relationship");this.tableRef.setColumnOrder([...r,...l]),this._updateTable(this.table.tableTemplate)}_getSortOrder(i){let t=[...this.layer.fields];return i==="display"?t.sort((e,r)=>e.alias.localeCompare(r.alias)):i==="field"?t.sort((e,r)=>e.name.localeCompare(r.name)):i==="type"&&t.sort((e,r)=>e.type.localeCompare(r.type)),t.map(e=>e.name)}_getDifference(i,t){return i.filter(e=>!t.includes(e))}_updateTable(i){this.table.tableTemplate=i,this._isStandardView()&&this._syncAttributeTableTemplate()}async _syncAttributeTableTemplate(){let i=this.table.layer;if(i.attributeTableTemplate){let{_modules:t}=this,e=i.attributeTableTemplate.clone();t?.attributeTableTemplateUtils.syncAttributeTableTemplate(this.table,e),JSON.stringify(e)!==JSON.stringify(i.attributeTableTemplate)&&(i.attributeTableTemplate=e)}if(i.attributeTableTemplate?.orderByFields?.length>1){let t=i.attributeTableTemplate.clone(),e=this.table.activeSortOrders[0];t.orderByFields=[{field:e.fieldName,order:e.direction}],i.attributeTableTemplate=t,this._syncColumnDirectionsWithOrderByFields()}}_syncColumnDirectionsWithOrderByFields(){let i=this.table.activeSortOrders[0]?.fieldName;this.table.columns.forEach(t=>{"fieldName"in t&&t.fieldName!==i&&(t.direction=void 0)}),this.table.tableTemplate?.columnTemplates.forEach(t=>{"fieldName"in t&&t.fieldName!==i&&(t.direction=void 0)})}_isStandardView(){return!this.table.relatedTable&&!this.table.attachmentsViewOptions.objectId}_closePopovers(){document.removeEventListener("click",this._fieldVisibilityPopoverClickHandler),this._fieldVisibilityPopoverNode&&(document.body.removeChild(this._fieldVisibilityPopoverNode),this._fieldVisibilityPopoverNode=void 0)}_addTableTooltip(i,t){let e=document.createElement("calcite-tooltip");e.className="table-tooltip",e.referenceElement=i,e.placement="trailing-start",e.open=!0;let r=document.createElement("div");r.className="tooltip",r.innerHTML=t,e.append(r),document.body.append(e)}_removeTableTooltip(){document.querySelectorAll(".table-tooltip").forEach(i=>i.parentNode?.removeChild(i))}_isInNode(i,t){for(;i;){if(i.nodeName===t.toUpperCase())return!0;i=i.parentElement}return!1}_hasAttachmentsEnabled(i){if(!i?.capabilities)return!1;let{capabilities:{data:{supportsAttachment:t},operations:{supportsQueryAttachments:e}}}=i;return t&&e}};u("field-selection",h);return h},a,c,d,e,g,h,i)
2
+ import i from"./VG6ML5VK.js";import h from"./NBPM6OJQ.js";import"./US5FON7D.js";import"./BU5PIAGS.js";import"./VVZAS55G.js";import"./NP7POZTI.js";import g from"./CRFLICFH.js";import e from"./IVSYM7YY.js";import d from"./J6MVIDTT.js";import"./2B4SGB3I.js";import"./YKQDHR27.js";import"./J75MHJID.js";import c from"./CEP54NLT.js";import a from"./YVNP437O.js";import{a as y}from"./R67EKKSL.js";import"./BVWAUO73.js";import"./K3DQKY7V.js";import"./TEHBW75B.js";import"./ALSK2SPM.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./3IHLJADI.js";import"./BMBNSJZQ.js";import"./5HZMUGQD.js";import"./5VDDAINK.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LPBP7CBN.js";import"./3FMOO3PJ.js";import"./XQQ52NKX.js";import"./JUUVYK2H.js";import"./DKD2EGQP.js";import"./4HFHJOS3.js";import"./45M33Q5G.js";import"./FES7B3SJ.js";import{b as u}from"./KIUBUHVM.js";import{F as f,G as b,h as p,i as m}from"./H5E6ISYP.js";import"./QPIMTXPL.js";export default $arcgis.t(([])=>{var v=p`.height-51{height:51px}.width-51{width:51px}`,h=class extends b{constructor(){super(),this._translations=y({name:"field-selection",blocking:!0}),this._fieldSortOrder="default",this._selectedFields=[],this._fieldVisibilityPopoverClickHandler=i=>{this._fieldVisibilityPopoverNode?this._isInNode(i.target,"arcgis-field-pick-list")||(document.body.removeChild(this._fieldVisibilityPopoverNode),this._fieldVisibilityPopoverNode=void 0,document.removeEventListener("click",this._fieldVisibilityPopoverClickHandler)):document.removeEventListener("click",this._fieldVisibilityPopoverClickHandler)},this.listenOn(window,"columnReorder",this.handleColumnReorder,{capture:!0})}static{this.properties={configExtraFields:1,layer:0,mapView:0,table:0,tableRef:0,_translations:16}}static{this.styles=v}render(){return m`<calcite-action alignment=center appearance=solid class="height-51 width-51" id=solutions-field-selection .text=${this._translations.fieldVisibility} scale=m @click=${()=>this._handleFieldVisibilityClick()} @mouseover=${()=>this._addTableTooltip(this._fieldVisibilityActionNode,this._translations.fieldVisibility)} @mouseout=${()=>this._removeTableTooltip()} @focus=${()=>this._addTableTooltip(this._fieldVisibilityActionNode,this._translations.fieldVisibility)} ${f(i=>this._fieldVisibilityActionNode=i)}><calcite-icon scale=s icon=gear></calcite-icon></calcite-action>`}handleColumnReorder(){this._fieldSortOrder="default",this._fieldVisibilityPopoverNode&&(this.removeFieldsPickList(),this._handleFieldVisibilityClick())}_handleFieldVisibilityClick(){if(this._fieldVisibilityPopoverNode)return;let i=this.table?.tableTemplate?.columnTemplates;if(this.layer&&this.mapView&&i&&this._fieldVisibilityActionNode){document.removeEventListener("click",this._fieldVisibilityPopoverClickHandler);let t=this.table.fieldColumns.map(l=>({alias:l.field.alias,description:l.field.description,name:l.field.name,type:l.field.type}));if(this._hasAttachmentsEnabled(this.layer)){let l="Attachments";if(this._shouldShowField(l.toUpperCase(),!1)){if(!i.some(s=>s.fieldName.toUpperCase()===l.toUpperCase())){let s={fieldName:l,type:"attachment",visible:!0};i.push(s)}t.push({name:l,alias:"Photos and files",type:"none",description:l})}}if(this.table.relatedRecordsEnabled&&this.layer.relationships&&this.layer.relationships.length>0){let l=this.layer.parent;this.layer.relationships.forEach(s=>{let o,d=this._shouldShowField(s.name||"",!0);if(!i.some(a=>a.fieldName.toLowerCase()===s.name?.toLowerCase()?(o=s.name,!0):!1))if(s.name){o=s.name;let a={fieldName:o,type:"relationship",visible:!0};d=this._shouldShowField(o,!0),i.push(a)}else{let a=[...l?.layers||[],...l?.tables],c;if(a.some(n=>n.layerId===s.relatedTableId?(c=n,!0):!1),c){o=c.title,s.name=o;let n={fieldName:o,type:"relationship",visible:!0};d=this._shouldShowField(o,!0),i.push(n)}}o&&d&&t.push({name:o,alias:`Related ${o}`,type:"none",description:`related:${o}`})})}let e=this._fieldVisibilityPopoverNode?this._fieldVisibilityPopoverNode:document.createElement("arcgis-field-pick-list");e.layer=this.layer,e.fields=t,e.showFieldInfo=!0,e.showFieldName=!0,e.showDescription=!1,e.showSelectionAll=!0,e.hideCancel=!0,e.hideSort=!1,e.showFilterLength=5,e.multiple=!0,e.heading=this._translations.fieldVisibility,e.okBtnText=this._translations.doneWithFieldChanges,e.filterPlaceholderText=this._translations.filterFields,e.sortBy=this._fieldSortOrder??"default";let r=this.table?.visibleColumns.map(l=>l.fieldName.startsWith("EsriFeatureTableRelationshipColumn")||l.fieldName.startsWith("EsriFeatureTableAttachmentsColumn")?l.effectiveLabel:l.fieldName);e.selectedFields=i.reduce((l,s)=>((r?r.indexOf(s.fieldName)>-1:s.visible)&&l.push(s.fieldName),l),[]),this._selectedFields=e.selectedFields,e.style.minHeight="340px",e.popoverProps={refElement:this._fieldVisibilityActionNode,popoverWidth:300,placement:"bottom-end",offsetDistance:-20,triggerDisabled:!1,autoClose:!1},e.addEventListener("arcgisChange",l=>{l.stopPropagation();let s=l.detail.selectedFields,o=this._getDifference(s,this._selectedFields),d=this._getDifference(this._selectedFields,s);o.concat(d).forEach(a=>{let c=this.layer?.relationships?.map(n=>n.name)||[];if(a==="Attachments"){let n=this.table.columns.find(_=>"onShowAttachments"in _);n.hidden=d.indexOf(a)>-1}else c.indexOf(a)>-1?this.table.columns.filter(n=>"relationshipId"in n).forEach(n=>{d.indexOf(a)>-1,a==n.effectiveLabel&&(n.hidden=d.indexOf(a)>-1)}):this.table.toggleColumnVisibility(a)}),this._selectedFields=s,this._updateTable(this.table.tableTemplate)}),e.addEventListener("arcgisSortByChange",l=>{l.stopPropagation(),this._fieldSortOrder=l.detail,this._sortFields(l.detail)}),e.addEventListener("arcgisClose",()=>{this._closePopovers(),setTimeout(()=>this._fieldVisibilityActionNode.setFocus(),200)}),document.body.appendChild(e),this._fieldVisibilityPopoverNode=e,setTimeout(()=>document.addEventListener("click",this._fieldVisibilityPopoverClickHandler),200)}}_shouldShowField(i,t){return(this.configExtraFields||[]).some(e=>t?e.replace("related:","").toUpperCase()===i.toUpperCase():e.toUpperCase()===i.toUpperCase())}removeFieldsPickList(){this._fieldVisibilityPopoverNode&&(document.body.removeChild(this._fieldVisibilityPopoverNode),this._fieldVisibilityPopoverNode=void 0)}_sortFields(i){let t=this.table.tableTemplate.columnTemplates,e=this._getSortOrder(i),r=t.filter(s=>s.type!=="attachment"&&s.type!=="relationship").sort((s,o)=>{let d=e.indexOf(s.fieldName),a=e.indexOf(o.fieldName);return d===-1&&a!==-1?1:d!==-1&&a===-1?-1:d===-1&&a===-1?0:d-a}),l=t.filter(s=>s.type==="attachment"||s.type==="relationship");this.tableRef.setColumnOrder([...r,...l]),this._updateTable(this.table.tableTemplate)}_getSortOrder(i){let t=[...this.layer.fields];return i==="display"?t.sort((e,r)=>e.alias.localeCompare(r.alias)):i==="field"?t.sort((e,r)=>e.name.localeCompare(r.name)):i==="type"&&t.sort((e,r)=>e.type.localeCompare(r.type)),t.map(e=>e.name)}_getDifference(i,t){return i.filter(e=>!t.includes(e))}_updateTable(i){this.table.tableTemplate=i,this._isStandardView()&&this._syncAttributeTableTemplate()}async _syncAttributeTableTemplate(){let i=this.table.layer;if(i.attributeTableTemplate){let{_modules:t}=this,e=i.attributeTableTemplate.clone();t?.attributeTableTemplateUtils.syncAttributeTableTemplate(this.table,e),JSON.stringify(e)!==JSON.stringify(i.attributeTableTemplate)&&(i.attributeTableTemplate=e)}if(i.attributeTableTemplate?.orderByFields?.length>1){let t=i.attributeTableTemplate.clone(),e=this.table.activeSortOrders[0];t.orderByFields=[{field:e.fieldName,order:e.direction}],i.attributeTableTemplate=t,this._syncColumnDirectionsWithOrderByFields()}}_syncColumnDirectionsWithOrderByFields(){let i=this.table.activeSortOrders[0]?.fieldName;this.table.columns.forEach(t=>{"fieldName"in t&&t.fieldName!==i&&(t.direction=void 0)}),this.table.tableTemplate?.columnTemplates.forEach(t=>{"fieldName"in t&&t.fieldName!==i&&(t.direction=void 0)})}_isStandardView(){return!this.table.relatedTable&&!this.table.attachmentsViewOptions.objectId}_closePopovers(){document.removeEventListener("click",this._fieldVisibilityPopoverClickHandler),this._fieldVisibilityPopoverNode&&(document.body.removeChild(this._fieldVisibilityPopoverNode),this._fieldVisibilityPopoverNode=void 0)}_addTableTooltip(i,t){let e=document.createElement("calcite-tooltip");e.className="table-tooltip",e.referenceElement=i,e.placement="trailing-start",e.open=!0;let r=document.createElement("div");r.className="tooltip",r.innerHTML=t,e.append(r),document.body.append(e)}_removeTableTooltip(){document.querySelectorAll(".table-tooltip").forEach(i=>i.parentNode?.removeChild(i))}_isInNode(i,t){for(;i;){if(i.nodeName===t.toUpperCase())return!0;i=i.parentElement}return!1}_hasAttachmentsEnabled(i){if(!i?.capabilities)return!1;let{capabilities:{data:{supportsAttachment:t},operations:{supportsQueryAttachments:e}}}=i;return t&&e}};u("field-selection",h);return h},a,c,d,e,g,h,i)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import a from"./QKJ4PGBO.js";import{a as f,b as v}from"./2B4SGB3I.js";import{b as r}from"./YKQDHR27.js";import{a as b}from"./R67EKKSL.js";import{b as g}from"./KIUBUHVM.js";import{E as s,F as l,G as p,J as u,h as d,i,j as h,q as o}from"./H5E6ISYP.js";export default $arcgis.t(([{q:m,r:x}])=>{var w=d`calcite-shell-panel{z-index:var(--calcite-z-index-1)}.display-flex{display:flex}.flex-1,.flex-grow{flex:1}.flex-shrink-0{flex:0 0 auto}.leader-1{margin-top:var(--calcite-spacing-xxl)}.trailer-1{margin-bottom:var(--calcite-spacing-xxl)}.warning-text{max-width:35em;margin-left:auto;margin-right:auto;font-size:var(--calcite-font-size-md)}.text-center{text-align:center}.border-override{border-top-width:var(--calcite-border-width-none);border-bottom-width:var(--calcite-border-width-none)}.header-override{--calcite-panel-header-content-space: var(--calcite-spacing-none);--calcite-panel-header-background-color: var(--calcite-color-surface-3)}.panel-override{--calcite-panel-background-color: var(--calcite-color-surface-3);--calcite-panel-border-color: none}.label-override{--calcite-label-margin-bottom: var(--calcite-spacing-none);font-weight:var(--calcite-font-weight-medium)}.header-content-wrapper{padding-inline-start:var(--calcite-spacing-xxs)}.header-button-padding{padding-top:var(--calcite-spacing-sm);padding-bottom:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-lg);padding-inline-end:var(--calcite-spacing-lg)}.padding-start{padding-inline-start:var(--calcite-spacing-lg)}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.justify-content-start{justify-content:start}.filter-width-350{--calcite-shell-panel-width: 350px}.z-index-2{z-index:2}.mock-fab{--calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);box-shadow:var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));--calcite-button-background-color: var(--calcite-fab-background-color);--calcite-button-border-color: var(--calcite-fab-border-color);--calcite-button-text-color: var(--calcite-fab-text-color);--calcite-button-loader-color: var(--calcite-fab-loader-color)}.position-relative{position:relative;height:100%;overflow:hidden}.height-100{height:100%}.height-50{height:50px}.sign-in-prompt{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%}.sign-in-icon{transform:translate(-20px)}.height-150{height:150px}.width-150{width:150px}.padding-top-8{padding-top:8px}`,c=class extends p{constructor(){super(),this.solutionsCount=0,this.filterOpen=!0,this.isMobile=!1,this._translations=b({name:"solutions-deployed-shell",blocking:!0}),this._configContextConsumer=r({context:v,subscribe:!0}),this._isMobileContextConsumer=r({context:f,subscribe:!0,callback:e=>this.isMobile=e}),this._solutionsDeployedPanelRef=s(),this._mainPanelRef=s(),this._panelFixed=!1,this.filterRemoved=o(),this.tokenRefreshed=o(),this._handleSignIn=()=>{let e=window.location.pathname.endsWith("deployments")?"":"deployments";this._configContextConsumer.value?.authentication?.signIn(e)},this.listenOn(window,"deployedCardFetchFailed",e=>{let t=e.detail;x({kind:"danger",icon:"exclamation-mark-triangle",title:t.title,message:t.message,autoClose:!1})})}static{this.properties={solutionsCount:9,filterOpen:16,isMobile:16,_translations:16}}static{this.styles=w}willUpdate(e){e.has("isMobile")&&(this.filterOpen=!this.isMobile)}async searchSolutions(e){this._solutionsDeployedPanelRef.value?.setSearchOptions(e),("sortType"in e||"searchTerm"in e)&&this._solutionsDeployedPanelRef.value?.searchSolutions(e)}async load(){this._isMobileContextConsumer.value&&(this.isMobile=this._isMobileContextConsumer.value)}updated(){this._fixPanelContentWrapperFocus()}_fixPanelContentWrapperFocus(){if(!this._panelFixed&&this._mainPanelRef.value){let e=this._mainPanelRef.value;e.componentOnReady?.().then(()=>{if(e.shadowRoot){let t=e.shadowRoot.querySelector(".content-wrapper");t&&(t.tabIndex=-1,this._panelFixed=!0,this._setupPanelObserver())}}).catch(()=>{this._panelFixed=!0})}}_setupPanelObserver(){if(this._panelObserver)return;this._panelObserver=new MutationObserver(t=>{t.forEach(n=>{if(n.type==="attributes"&&n.attributeName==="tabindex"){let a=n.target;a.classList.contains("content-wrapper")&&a.tabIndex===0&&(a.tabIndex=-1)}})});let e=this._mainPanelRef.value;if(e?.shadowRoot){let t=e.shadowRoot.querySelector(".content-wrapper");t&&this._panelObserver.observe(t,{attributes:!0,attributeFilter:["tabindex"]})}}disconnectedCallback(){super.disconnectedCallback(),this._panelObserver?.disconnect()}render(){if(!this._configContextConsumer.value?.authentication?.IsSignedIn)return this._getSignInPrompt();let e=this.isMobile?"justify-content-start":"";return i`<calcite-shell class="position-relative"><calcite-panel class="border-override header-override panel-override z-index-1" ${l(this._mainPanelRef)}><div class=${`display-flex align-items-center height-50 header-content-wrapper ${e}`} slot=header-content><calcite-label class="label-override flex-shrink-0 padding-top-8" layout=inline>${this._translations.numberOfDeployments?.replace("{{count}}",this.solutionsCount.toString())}</calcite-label></div>${this._getSolutionsDeployedPanel()}</calcite-panel></calcite-shell>`}_getSignInPrompt(){return i`<div class="sign-in-prompt">${this._getSignInIcon()}<div class="text-center leader-1 warning-text trailer-1">${this._translations.signInMessage}</div><calcite-button appearance=outline @click=${this._handleSignIn} @keydown=${e=>m(e,()=>this._handleSignIn())} scale=l>${this._translations.signIn}</calcite-button></div>`}_getSolutionsDeployedPanel(){let e=this.isMobile&&this.filterOpen?{display:"none"}:"";return i`<div><solutions-deployed-panel @deployedCardsFetched=${this._updateSolutionCount} style=${u(e)} ${l(this._solutionsDeployedPanelRef)}></solutions-deployed-panel></div>`}_updateSolutionCount(e){this.solutionsCount=e.detail}_getSignInIcon(){return i`<div class="sign-in-icon"><svg viewBox="0 0 64 64" width=200 height=200 xmlns=http://www.w3.org/2000/svg>${h`<path d="M56.9 4.1V60h-.8V4.9H23.3l25.6 7.47v39.26l-28.8 8.4V35h.8v23.97l27.2-7.94V12.97L20.9 5.03V30h-.8V4.1h36.8zM30.735 41.7l.565.566 9.766-9.766-9.766-9.766-.565.567 8.799 8.799H5v.8h34.534l-8.8 8.8z" fill=var(--calcite-color-text-3) />`}</svg></div>`}};g("solutions-deployed-shell",c);return c},a)
2
+ import a from"./J6MVIDTT.js";import{a as f,b as v}from"./2B4SGB3I.js";import{b as r}from"./YKQDHR27.js";import{a as b}from"./R67EKKSL.js";import{b as g}from"./KIUBUHVM.js";import{E as s,F as l,G as p,J as u,h as d,i,j as h,q as o}from"./H5E6ISYP.js";export default $arcgis.t(([{q:m,r:x}])=>{var w=d`calcite-shell-panel{z-index:var(--calcite-z-index-1)}.display-flex{display:flex}.flex-1,.flex-grow{flex:1}.flex-shrink-0{flex:0 0 auto}.leader-1{margin-top:var(--calcite-spacing-xxl)}.trailer-1{margin-bottom:var(--calcite-spacing-xxl)}.warning-text{max-width:35em;margin-left:auto;margin-right:auto;font-size:var(--calcite-font-size-md)}.text-center{text-align:center}.border-override{border-top-width:var(--calcite-border-width-none);border-bottom-width:var(--calcite-border-width-none)}.header-override{--calcite-panel-header-content-space: var(--calcite-spacing-none);--calcite-panel-header-background-color: var(--calcite-color-surface-3)}.panel-override{--calcite-panel-background-color: var(--calcite-color-surface-3);--calcite-panel-border-color: none}.label-override{--calcite-label-margin-bottom: var(--calcite-spacing-none);font-weight:var(--calcite-font-weight-medium)}.header-content-wrapper{padding-inline-start:var(--calcite-spacing-xxs)}.header-button-padding{padding-top:var(--calcite-spacing-sm);padding-bottom:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-lg);padding-inline-end:var(--calcite-spacing-lg)}.padding-start{padding-inline-start:var(--calcite-spacing-lg)}.align-items-center{align-items:center}.justify-content-end{justify-content:end}.justify-content-start{justify-content:start}.filter-width-350{--calcite-shell-panel-width: 350px}.z-index-2{z-index:2}.mock-fab{--calcite-fab-shadow-internal: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);box-shadow:var(--calcite-fab-shadow, var(--calcite-fab-shadow-internal));--calcite-button-background-color: var(--calcite-fab-background-color);--calcite-button-border-color: var(--calcite-fab-border-color);--calcite-button-text-color: var(--calcite-fab-text-color);--calcite-button-loader-color: var(--calcite-fab-loader-color)}.position-relative{position:relative;height:100%;overflow:hidden}.height-100{height:100%}.height-50{height:50px}.sign-in-prompt{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%}.sign-in-icon{transform:translate(-20px)}.height-150{height:150px}.width-150{width:150px}.padding-top-8{padding-top:8px}`,c=class extends p{constructor(){super(),this.solutionsCount=0,this.filterOpen=!0,this.isMobile=!1,this._translations=b({name:"solutions-deployed-shell",blocking:!0}),this._configContextConsumer=r({context:v,subscribe:!0}),this._isMobileContextConsumer=r({context:f,subscribe:!0,callback:e=>this.isMobile=e}),this._solutionsDeployedPanelRef=s(),this._mainPanelRef=s(),this._panelFixed=!1,this.filterRemoved=o(),this.tokenRefreshed=o(),this._handleSignIn=()=>{let e=window.location.pathname.endsWith("deployments")?"":"deployments";this._configContextConsumer.value?.authentication?.signIn(e)},this.listenOn(window,"deployedCardFetchFailed",e=>{let t=e.detail;x({kind:"danger",icon:"exclamation-mark-triangle",title:t.title,message:t.message,autoClose:!1})})}static{this.properties={solutionsCount:9,filterOpen:16,isMobile:16,_translations:16}}static{this.styles=w}willUpdate(e){e.has("isMobile")&&(this.filterOpen=!this.isMobile)}async searchSolutions(e){this._solutionsDeployedPanelRef.value?.setSearchOptions(e),("sortType"in e||"searchTerm"in e)&&this._solutionsDeployedPanelRef.value?.searchSolutions(e)}async load(){this._isMobileContextConsumer.value&&(this.isMobile=this._isMobileContextConsumer.value)}updated(){this._fixPanelContentWrapperFocus()}_fixPanelContentWrapperFocus(){if(!this._panelFixed&&this._mainPanelRef.value){let e=this._mainPanelRef.value;e.componentOnReady?.().then(()=>{if(e.shadowRoot){let t=e.shadowRoot.querySelector(".content-wrapper");t&&(t.tabIndex=-1,this._panelFixed=!0,this._setupPanelObserver())}}).catch(()=>{this._panelFixed=!0})}}_setupPanelObserver(){if(this._panelObserver)return;this._panelObserver=new MutationObserver(t=>{t.forEach(n=>{if(n.type==="attributes"&&n.attributeName==="tabindex"){let a=n.target;a.classList.contains("content-wrapper")&&a.tabIndex===0&&(a.tabIndex=-1)}})});let e=this._mainPanelRef.value;if(e?.shadowRoot){let t=e.shadowRoot.querySelector(".content-wrapper");t&&this._panelObserver.observe(t,{attributes:!0,attributeFilter:["tabindex"]})}}disconnectedCallback(){super.disconnectedCallback(),this._panelObserver?.disconnect()}render(){if(!this._configContextConsumer.value?.authentication?.IsSignedIn)return this._getSignInPrompt();let e=this.isMobile?"justify-content-start":"";return i`<calcite-shell class="position-relative"><calcite-panel class="border-override header-override panel-override z-index-1" ${l(this._mainPanelRef)}><div class=${`display-flex align-items-center height-50 header-content-wrapper ${e}`} slot=header-content><calcite-label class="label-override flex-shrink-0 padding-top-8" layout=inline>${this._translations.numberOfDeployments?.replace("{{count}}",this.solutionsCount.toString())}</calcite-label></div>${this._getSolutionsDeployedPanel()}</calcite-panel></calcite-shell>`}_getSignInPrompt(){return i`<div class="sign-in-prompt">${this._getSignInIcon()}<div class="text-center leader-1 warning-text trailer-1">${this._translations.signInMessage}</div><calcite-button appearance=outline @click=${this._handleSignIn} @keydown=${e=>m(e,()=>this._handleSignIn())} scale=l>${this._translations.signIn}</calcite-button></div>`}_getSolutionsDeployedPanel(){let e=this.isMobile&&this.filterOpen?{display:"none"}:"";return i`<div><solutions-deployed-panel @deployedCardsFetched=${this._updateSolutionCount} style=${u(e)} ${l(this._solutionsDeployedPanelRef)}></solutions-deployed-panel></div>`}_updateSolutionCount(e){this.solutionsCount=e.detail}_getSignInIcon(){return i`<div class="sign-in-icon"><svg viewBox="0 0 64 64" width=200 height=200 xmlns=http://www.w3.org/2000/svg>${h`<path d="M56.9 4.1V60h-.8V4.9H23.3l25.6 7.47v39.26l-28.8 8.4V35h.8v23.97l27.2-7.94V12.97L20.9 5.03V30h-.8V4.1h36.8zM30.735 41.7l.565.566 9.766-9.766-9.766-9.766-.565.567 8.799 8.799H5v.8h34.534l-8.8 8.8z" fill=var(--calcite-color-text-3) />`}</svg></div>`}};g("solutions-deployed-shell",c);return c},a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import b from"./UYY6JODL.js";import a from"./QKJ4PGBO.js";import{b as u}from"./2B4SGB3I.js";import{b as m}from"./YKQDHR27.js";import{a as g}from"./R67EKKSL.js";import{b as p}from"./KIUBUHVM.js";import{E as l,F as d,G as h,K as s,h as c,i}from"./H5E6ISYP.js";export default $arcgis.t(([,,,{q:f},{b:r}])=>{var b=c`*[tabindex]:focus-visible{outline:solid 2px var(--calcite-color-brand);outline-offset:2px}.display-flex{display:flex}.align-items-center{align-items:center}.justify-content-center{justify-content:center}.screenshot-container{width:100%;overflow:hidden}.footer{width:100%}.footer-override{--calcite-dialog-footer-space: 0px}.footer-card{width:200px;height:110px;cursor:pointer}.padding-1{padding:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-end-1{padding-inline-end:1rem}.padding-start-1{padding-inline-start:1rem}.padding-top-1{padding-top:1rem}.padding-top-1-2{padding-top:.5rem}.background-black{background-color:var(--calcite-color-surface-4)}calcite-card:hover img{-webkit-filter:brightness(30%);filter:brightness(30%);-webkit-transition:all .1s ease;-moz-transition:all .1s ease;-o-transition:all .1s ease;-ms-transition:all .1s ease;transition:all .1s ease}calcite-card:hover{outline:2px solid var(--calcite-color-brand);box-sizing:border-box;cursor:pointer;padding-bottom:2px}.calcite-card-selected{outline:2px solid var(--calcite-color-brand);box-sizing:border-box;cursor:pointer;padding-bottom:2px}calcite-card:hover .hover-text{opacity:1;color:#fff}.hover-text{transition:.1s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%;font-size:var(--calcite-spacing-lg)}.card-image-wrap{width:100%;position:relative;margin-bottom:0;-webkit-box-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}.footer-card img{background-color:var(--calcite-color-surface-2)}.card-image{width:100%;display:block}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip;display:block;object-fit:contain}`,n=class extends h{constructor(){super(...arguments),this.open=!1,this._screenshots=[],this._translations=g({name:"solution-snapshot-gallery",blocking:!0}),this._configContextConsumer=m({context:u,subscribe:!0}),this._displayText="",this._paginationControl=l(),this._screenshotNames=[]}static{this.properties={card:0,screenshot:0,itemProperties:0,open:5,_screenshots:16,_translations:16}}static{this.styles=b}willUpdate(t){t.has("screenshot")&&this.screenshot&&(this._displayText=this.screenshot.description||this.screenshot.alt),t.has("itemProperties")&&this.itemProperties&&(this._screenshots=this.itemProperties.preview.filter(e=>e.format==="image"),this._screenshotNames=this._screenshots.map(e=>e.name))}render(){return i`<calcite-dialog class="footer-override" .heading=${this.card?.title} modal @calciteDialogClose=${()=>this.open=!1} .open=${this.open} outside-close-disabled width=l>${this._getScreenshotView()}${this._getFooter()}</calcite-dialog>`}_getScreenshotView(){return this.screenshot?i`<div class="display-flex justify-content-center screenshot-container">${this._getImage(this.screenshot)}</div>`:""}_getFooter(){let t=this._screenshotNames.indexOf(this.screenshot?.name||""),e=document.body.classList.contains("calcite-mode-dark")?"calcite-mode-dark":"";return i`<div class="footer" slot=footer><div class=${`display-flex align-items-center padding-start-1 padding-top-1-2 background-black ${e}`}><calcite-label layout=inline><calcite-pagination class="padding-end-1" @calcitePaginationChange=${this._changeScreenshot} page-size=1 start-item=${t+1} total-items=${this._screenshots.length??s} ${d(this._paginationControl)}></calcite-pagination><span tabindex=0>${this._displayText}</span></calcite-label></div>${this._getCards()}</div>`}_changeScreenshot(){this.screenshot=this._screenshots[this._paginationControl.value.startItem-1]}_getCards(){return i`<calcite-card-group class="card-group padding-1" .label=${this._translations.seeSolutionScreenshots} selection-mode=single>${this._screenshots.map(t=>{let e=t.name===this.screenshot?.name;return i`<calcite-card class=${`footer-card ${e?"calcite-card-selected":""}`} .label=${t.alt} @click=${()=>this._showScreenshot(t)} @keydown=${o=>f(o,()=>this._showScreenshot(t))} .selected=${e}><div class="card-image-wrap" slot=thumbnail>${this._getImage(t,"thumbnail")}<div class="hover-text">${this._translations.viewScreenshot}</div></div></calcite-card>`})}</calcite-card-group>`}_getImage(t,e){return i`<img alt=${t.alt??s} slot=${e??s} src=${this._getSource(this._configContextConsumer.value.authentication,this.card?.id||"",t.name)??s}>`}_showScreenshot(t){this.screenshot=t}_getSource(t,e,o){let a=this._configContextConsumer.value;return a.agoBasedEnterpriseSolutionsGroupId&&a.isEnterprise?r(e||"",o,void 0,a.agolPortalUrl):t?r(e||"",o,t):""}};p("solution-snapshot-gallery",n);return n},"identity/IdentityManager","identity/OAuthInfo","portal/Portal",a,b)
2
+ import b from"./IVSYM7YY.js";import a from"./J6MVIDTT.js";import{b as u}from"./2B4SGB3I.js";import{b as m}from"./YKQDHR27.js";import{a as g}from"./R67EKKSL.js";import{b as p}from"./KIUBUHVM.js";import{E as l,F as d,G as h,K as s,h as c,i}from"./H5E6ISYP.js";export default $arcgis.t(([,,,{q:f},{b:r}])=>{var b=c`*[tabindex]:focus-visible{outline:solid 2px var(--calcite-color-brand);outline-offset:2px}.display-flex{display:flex}.align-items-center{align-items:center}.justify-content-center{justify-content:center}.screenshot-container{width:100%;overflow:hidden}.footer{width:100%}.footer-override{--calcite-dialog-footer-space: 0px}.footer-card{width:200px;height:110px;cursor:pointer}.padding-1{padding:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-end-1{padding-inline-end:1rem}.padding-start-1{padding-inline-start:1rem}.padding-top-1{padding-top:1rem}.padding-top-1-2{padding-top:.5rem}.background-black{background-color:var(--calcite-color-surface-4)}calcite-card:hover img{-webkit-filter:brightness(30%);filter:brightness(30%);-webkit-transition:all .1s ease;-moz-transition:all .1s ease;-o-transition:all .1s ease;-ms-transition:all .1s ease;transition:all .1s ease}calcite-card:hover{outline:2px solid var(--calcite-color-brand);box-sizing:border-box;cursor:pointer;padding-bottom:2px}.calcite-card-selected{outline:2px solid var(--calcite-color-brand);box-sizing:border-box;cursor:pointer;padding-bottom:2px}calcite-card:hover .hover-text{opacity:1;color:#fff}.hover-text{transition:.1s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%;font-size:var(--calcite-spacing-lg)}.card-image-wrap{width:100%;position:relative;margin-bottom:0;-webkit-box-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}.footer-card img{background-color:var(--calcite-color-surface-2)}.card-image{width:100%;display:block}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip;display:block;object-fit:contain}`,n=class extends h{constructor(){super(...arguments),this.open=!1,this._screenshots=[],this._translations=g({name:"solution-snapshot-gallery",blocking:!0}),this._configContextConsumer=m({context:u,subscribe:!0}),this._displayText="",this._paginationControl=l(),this._screenshotNames=[]}static{this.properties={card:0,screenshot:0,itemProperties:0,open:5,_screenshots:16,_translations:16}}static{this.styles=b}willUpdate(t){t.has("screenshot")&&this.screenshot&&(this._displayText=this.screenshot.description||this.screenshot.alt),t.has("itemProperties")&&this.itemProperties&&(this._screenshots=this.itemProperties.preview.filter(e=>e.format==="image"),this._screenshotNames=this._screenshots.map(e=>e.name))}render(){return i`<calcite-dialog class="footer-override" .heading=${this.card?.title} modal @calciteDialogClose=${()=>this.open=!1} .open=${this.open} outside-close-disabled width=l>${this._getScreenshotView()}${this._getFooter()}</calcite-dialog>`}_getScreenshotView(){return this.screenshot?i`<div class="display-flex justify-content-center screenshot-container">${this._getImage(this.screenshot)}</div>`:""}_getFooter(){let t=this._screenshotNames.indexOf(this.screenshot?.name||""),e=document.body.classList.contains("calcite-mode-dark")?"calcite-mode-dark":"";return i`<div class="footer" slot=footer><div class=${`display-flex align-items-center padding-start-1 padding-top-1-2 background-black ${e}`}><calcite-label layout=inline><calcite-pagination class="padding-end-1" @calcitePaginationChange=${this._changeScreenshot} page-size=1 start-item=${t+1} total-items=${this._screenshots.length??s} ${d(this._paginationControl)}></calcite-pagination><span tabindex=0>${this._displayText}</span></calcite-label></div>${this._getCards()}</div>`}_changeScreenshot(){this.screenshot=this._screenshots[this._paginationControl.value.startItem-1]}_getCards(){return i`<calcite-card-group class="card-group padding-1" .label=${this._translations.seeSolutionScreenshots} selection-mode=single>${this._screenshots.map(t=>{let e=t.name===this.screenshot?.name;return i`<calcite-card class=${`footer-card ${e?"calcite-card-selected":""}`} .label=${t.alt} @click=${()=>this._showScreenshot(t)} @keydown=${o=>f(o,()=>this._showScreenshot(t))} .selected=${e}><div class="card-image-wrap" slot=thumbnail>${this._getImage(t,"thumbnail")}<div class="hover-text">${this._translations.viewScreenshot}</div></div></calcite-card>`})}</calcite-card-group>`}_getImage(t,e){return i`<img alt=${t.alt??s} slot=${e??s} src=${this._getSource(this._configContextConsumer.value.authentication,this.card?.id||"",t.name)??s}>`}_showScreenshot(t){this.screenshot=t}_getSource(t,e,o){let a=this._configContextConsumer.value;return a.agoBasedEnterpriseSolutionsGroupId&&a.isEnterprise?r(e||"",o,void 0,a.agolPortalUrl):t?r(e||"",o,t):""}};p("solution-snapshot-gallery",n);return n},"identity/IdentityManager","identity/OAuthInfo","portal/Portal",a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import a from"./QKJ4PGBO.js";export default $arcgis.t(([{k:i}])=>{function w(e,t){let r=[];return e.forEach(n=>{t.has(n.id)&&r.push(n)}),r}function m(e,t,r){if(t<1||e.length<t)return{cards:[],paging:{start:t,num:0,nextStart:-1,total:e.length}};let n=Math.min(t+r,e.length+1),s=n<e.length?n:-1;return{cards:e.slice(t-1,n-1),paging:{start:t,num:n-t,nextStart:s,total:e.length}}}function g(e,t){let r=d(e);return l(r,t)}function l(e,t){let r=[];return t.forEach(n=>{let s=c(n);s&&e.indexOf(s)>=0&&n.relatedSolutions&&(r=r.concat(n.relatedSolutions))}),new Set(r)}function c(e){let t="solutionid-",r=e.typeKeywords.filter(s=>s.startsWith(t)),n=null;return Array.isArray(r)&&r.length>0&&(n=r[0].substring(t.length)),n}function d(e){let t=[];return e?(e.forEach(r=>{let n=c(r);n&&t.push(n)}),t=Array.from(new Set(t)),t):[]}function p(e){let t="solutionversion-",r=(e.typeKeywords||[]).reduce((n,s)=>(s.startsWith(t)&&(n=Number(s.replace(t,""))),n),-1);return isNaN(r)?-1:r}function y(e,t,r){let n,s=r==="asc"?1:-1;switch(t){case"created":n=(a,o)=>s*(a.createdMs<o.createdMs?-1:a.createdMs>o.createdMs?1:0);break;case"numviews":n=(a,o)=>s*(a.numViews<o.numViews?-1:a.numViews>o.numViews?1:0);break;case"title":n=(a,o)=>s*(a.title.toLowerCase()<o.title.toLowerCase()?-1:a.title.toLowerCase()>o.title.toLowerCase()?1:0);break;default:n=()=>0;break}return e.sort(n),e}function u(e){return e.toLowerCase().replace(/\s+/g,"-")}function b(e,t){return e.find(r=>u(r.title)===t||t===r.id)}function C(e,t){let r="solutionid-";return e.find(n=>i(n.typeKeywords,r)===t)}function S(e,t){let r=e.find(n=>t===n.deployCommonId);return u(r.title)}return{a:w,b:m,c:g,d:p,e:y,f:u,g:b,h:C,i:S}},a)
2
+ import a from"./J6MVIDTT.js";export default $arcgis.t(([{k:i}])=>{function w(e,t){let r=[];return e.forEach(n=>{t.has(n.id)&&r.push(n)}),r}function m(e,t,r){if(t<1||e.length<t)return{cards:[],paging:{start:t,num:0,nextStart:-1,total:e.length}};let n=Math.min(t+r,e.length+1),s=n<e.length?n:-1;return{cards:e.slice(t-1,n-1),paging:{start:t,num:n-t,nextStart:s,total:e.length}}}function g(e,t){let r=d(e);return l(r,t)}function l(e,t){let r=[];return t.forEach(n=>{let s=c(n);s&&e.indexOf(s)>=0&&n.relatedSolutions&&(r=r.concat(n.relatedSolutions))}),new Set(r)}function c(e){let t="solutionid-",r=e.typeKeywords.filter(s=>s.startsWith(t)),n=null;return Array.isArray(r)&&r.length>0&&(n=r[0].substring(t.length)),n}function d(e){let t=[];return e?(e.forEach(r=>{let n=c(r);n&&t.push(n)}),t=Array.from(new Set(t)),t):[]}function p(e){let t="solutionversion-",r=(e.typeKeywords||[]).reduce((n,s)=>(s.startsWith(t)&&(n=Number(s.replace(t,""))),n),-1);return isNaN(r)?-1:r}function y(e,t,r){let n,s=r==="asc"?1:-1;switch(t){case"created":n=(a,o)=>s*(a.createdMs<o.createdMs?-1:a.createdMs>o.createdMs?1:0);break;case"numviews":n=(a,o)=>s*(a.numViews<o.numViews?-1:a.numViews>o.numViews?1:0);break;case"title":n=(a,o)=>s*(a.title.toLowerCase()<o.title.toLowerCase()?-1:a.title.toLowerCase()>o.title.toLowerCase()?1:0);break;default:n=()=>0;break}return e.sort(n),e}function u(e){return e.toLowerCase().replace(/\s+/g,"-")}function b(e,t){return e.find(r=>u(r.title)===t||t===r.id)}function C(e,t){let r="solutionid-";return e.find(n=>i(n.typeKeywords,r)===t)}function S(e,t){let r=e.find(n=>t===n.deployCommonId);return u(r.title)}return{a:w,b:m,c:g,d:p,e:y,f:u,g:b,h:C,i:S}},a)
@@ -1 +1 @@
1
- {"agentProgress":{"explorerAgentSearching":"بيت_Searching ArcGIS Solutions documentation_______________________لاحقة...","explorerAgentReading":"بيت_Reading through the documentation___________________لاحقة...","explorerAgentReviewing":"بيت_Reviewing what I found__________________________لاحقة...","explorerAgentPreparing":"بيت_Preparing a response________________________لاحقة..."},"builderMessages":{"understandingRequest":"بيت_Understanding your request______________________________لاحقة...","selectTemplatePrompt":"بيت_This use case could be supported in a few different ways. Choose the option that best matches what you want to accomplish______________________________________________________________لاحقة.","searchingExistingSolutions":"بيت_Searching for existing solutions___________________لاحقة...","existingSolutionMatch":"بيت_We have an existing solution, {{solutionMatch}}, that closely matches your use case and may already meet your needs. Do you want to continue building your solution___________________________________________________________________________________لاحقة?","creatingDesign":"بيت_Generating solution design______________________________لاحقة...","updatingDesign":"بيت_Updating solution design____________________________لاحقة...","applyChangeFailed":"بيت_I wasn't able to apply that change. The design was not modified. Please try rephrasing your request___________________________________________________لاحقة."},"betaTag":"بيت_Beta_________لاحقة","defaultStartUpMessage":"بيت_Welcome to the ArcGIS Solutions assistant! I can help you learn more about ArcGIS Solutions, locate the right solution, or build a solution tailored to your unique needs______________________________________________________________________________________لاحقة.","defaultFollowUpQuestions":{"roadwayAssets":"بيت_Can you help me inspect roadway assets_____________________لاحقة?","publicSafety":"بيت_What solutions support public safety agencies________________________لاحقة?","howToDeploy":"بيت_How do I deploy a solution____________________________لاحقة?","buildOwnSolution":"بيت_I want to build my own solution_________________لاحقة."},"disclaimerMessage":"يتم إنشاء الردود بواسطة الذكاء الاصطناعي وقد تكون غير دقيقة.","executingSolutionsAssistantAgent":"بيت_Preparing a response________________________لاحقة...","genericErrorMessage":"بيت_I'm sorry, I ran into a problem with your request. Please try again, or rephrase your question for better results__________________________________________________________لاحقة.","newConversationStarted":"تم بدء محادثة جديدة","noPermissionTitle":"بيت_ArcGIS Solutions assistant is not available_______________________لاحقة.","noPermissionMessage":"بيت_To use the ArcGIS Solutions assistant, an <a href='{{orgUrl}}' target='_blank'>ArcGIS Online organizational account</a> with privileges to use AI assistants is required. Other account types, such as public accounts, are not currently supported. In addition, your ArcGIS Online administrator must <a href='{{configAI}}' target='_blank'>configure AI assistants</a>_______________________________________________________________________________________________________________________________________________________________________________________لاحقة.","reportConcern":"الإبلاغ عن مشكلة أمنية.","solutionsDocReference":"مرجع","solutionsDocReferences":"مراجع","sendMessage":"اكتب سؤالك","solutionAssistantTitle":"المساعد في ArcGIS Solutions","signIn":"تسجيل الدخول","signInMessage":"بيت_Sign in with your ArcGIS account to start using the ArcGIS Solutions assistant_________________________________________لاحقة.","tooltips":{"close":"بيت_Close___________لاحقة","likeButton":"تقييم إيجابي","dislikeButton":"تقييم سلبي","copyButton":"نسخ","newConversation":"محادثة جديدة","sendQuestion":"إرسال","solutionBuilder":"بيت_Solution builder_________________لاحقة","toggleSolutionBuilder":"بيت_Toggle solution builder panel______________________________لاحقة"},"viewSolutionInApp":"عرض الحل"}
1
+ {"agentProgress":{"explorerAgentSearching":"بيت_Searching ArcGIS Solutions documentation_______________________لاحقة...","explorerAgentReading":"بيت_Reading through the documentation___________________لاحقة...","explorerAgentReviewing":"بيت_Reviewing what I found__________________________لاحقة...","explorerAgentPreparing":"بيت_Preparing a response________________________لاحقة..."},"builderMessages":{"understandingRequest":"بيت_Understanding your request______________________________لاحقة...","selectTemplatePrompt":"بيت_This use case could be supported in a few different ways. Choose the option that best matches what you want to accomplish______________________________________________________________لاحقة.","searchingExistingSolutions":"بيت_Searching for existing solutions___________________لاحقة...","existingSolutionMatch":"بيت_I found an existing solution that closely matches your use case and may already meet your needs: {{solutionMatch}}. Do you want to continue building your solution___________________________________________________________________________________لاحقة?","creatingDesign":"بيت_Generating solution design______________________________لاحقة...","updatingDesign":"بيت_Updating solution design____________________________لاحقة...","applyChangeFailed":"بيت_I wasn't able to apply that change. The design was not modified. Please try rephrasing your request___________________________________________________لاحقة."},"betaTag":"بيت_Beta_________لاحقة","defaultStartUpMessage":"بيت_Welcome to the ArcGIS Solutions assistant! I can help you learn more about ArcGIS Solutions, locate the right solution, or build a solution tailored to your unique needs______________________________________________________________________________________لاحقة.","defaultFollowUpQuestions":{"roadwayAssets":"بيت_Can you help me inspect roadway assets_____________________لاحقة?","publicSafety":"بيت_What solutions support public safety agencies________________________لاحقة?","howToDeploy":"بيت_How do I deploy a solution____________________________لاحقة?","buildOwnSolution":"بيت_I want to build my own solution_________________لاحقة."},"disclaimerMessage":"يتم إنشاء الردود بواسطة الذكاء الاصطناعي وقد تكون غير دقيقة.","executingSolutionsAssistantAgent":"بيت_Preparing a response________________________لاحقة...","genericErrorMessage":"بيت_I'm sorry, I ran into a problem with your request. Please try again, or rephrase your question for better results__________________________________________________________لاحقة.","newConversationStarted":"تم بدء محادثة جديدة","noPermissionTitle":"بيت_ArcGIS Solutions assistant is not available_______________________لاحقة.","noPermissionMessage":"بيت_To use the ArcGIS Solutions assistant, an <a href='{{orgUrl}}' target='_blank'>ArcGIS Online organizational account</a> with privileges to use AI assistants is required. Other account types, such as public accounts, are not currently supported. In addition, your ArcGIS Online administrator must <a href='{{configAI}}' target='_blank'>configure AI assistants</a>_______________________________________________________________________________________________________________________________________________________________________________________لاحقة.","reportConcern":"الإبلاغ عن مشكلة أمنية.","solutionsDocReference":"مرجع","solutionsDocReferences":"مراجع","sendMessage":"اكتب سؤالك","solutionAssistantTitle":"المساعد في ArcGIS Solutions","signIn":"تسجيل الدخول","signInMessage":"بيت_Sign in with your ArcGIS account to start using the ArcGIS Solutions assistant_________________________________________لاحقة.","tooltips":{"close":"بيت_Close___________لاحقة","likeButton":"تقييم إيجابي","dislikeButton":"تقييم سلبي","copyButton":"نسخ","newConversation":"محادثة جديدة","sendQuestion":"إرسال","solutionBuilder":"بيت_Solution builder_________________لاحقة","toggleSolutionBuilder":"بيت_Toggle solution builder panel______________________________لاحقة"},"viewSolutionInApp":"عرض الحل"}
@@ -1 +1 @@
1
- {"agentProgress":{"explorerAgentSearching":"й_Searching ArcGIS Solutions documentation_______________________й...","explorerAgentReading":"й_Reading through the documentation___________________й...","explorerAgentReviewing":"й_Reviewing what I found__________________________й...","explorerAgentPreparing":"й_Preparing a response________________________й..."},"builderMessages":{"understandingRequest":"й_Understanding your request______________________________й...","selectTemplatePrompt":"й_This use case could be supported in a few different ways. Choose the option that best matches what you want to accomplish______________________________________________________________й.","searchingExistingSolutions":"й_Searching for existing solutions___________________й...","existingSolutionMatch":"й_We have an existing solution, {{solutionMatch}}, that closely matches your use case and may already meet your needs. Do you want to continue building your solution___________________________________________________________________________________й?","creatingDesign":"й_Generating solution design______________________________й...","updatingDesign":"й_Updating solution design____________________________й...","applyChangeFailed":"й_I wasn't able to apply that change. The design was not modified. Please try rephrasing your request___________________________________________________й."},"betaTag":"й_Beta_________й","defaultStartUpMessage":"й_Welcome to the ArcGIS Solutions assistant! I can help you learn more about ArcGIS Solutions, locate the right solution, or build a solution tailored to your unique needs______________________________________________________________________________________й.","defaultFollowUpQuestions":{"roadwayAssets":"й_Can you help me inspect roadway assets_____________________й?","publicSafety":"й_What solutions support public safety agencies________________________й?","howToDeploy":"й_How do I deploy a solution____________________________й?","buildOwnSolution":"й_I want to build my own solution_________________й."},"disclaimerMessage":"Отговорите се генерират от ИИ и може да са неточни.","executingSolutionsAssistantAgent":"й_Preparing a response________________________й...","genericErrorMessage":"й_I'm sorry, I ran into a problem with your request. Please try again, or rephrase your question for better results__________________________________________________________й.","newConversationStarted":"Започна нов разговор.","noPermissionTitle":"й_ArcGIS Solutions assistant is not available_______________________й.","noPermissionMessage":"й_To use the ArcGIS Solutions assistant, an <a href='{{orgUrl}}' target='_blank'>ArcGIS Online organizational account</a> with privileges to use AI assistants is required. Other account types, such as public accounts, are not currently supported. In addition, your ArcGIS Online administrator must <a href='{{configAI}}' target='_blank'>configure AI assistants</a>_______________________________________________________________________________________________________________________________________________________________________________________й.","reportConcern":"Докладване на проблем със сигурността.","solutionsDocReference":"препратка","solutionsDocReferences":"препратки","sendMessage":"Въведете въпроса си","solutionAssistantTitle":"Асистент за ArcGIS Solutions","signIn":"Вписване","signInMessage":"й_Sign in with your ArcGIS account to start using the ArcGIS Solutions assistant_________________________________________й.","tooltips":{"close":"й_Close___________й","likeButton":"Положителна обратна връзка","dislikeButton":"Отрицателна обратна връзка","copyButton":"Копиране","newConversation":"Нов разговор","sendQuestion":"Изпращане","solutionBuilder":"й_Solution builder_________________й","toggleSolutionBuilder":"й_Toggle solution builder panel______________________________й"},"viewSolutionInApp":"Преглед на решение"}
1
+ {"agentProgress":{"explorerAgentSearching":"й_Searching ArcGIS Solutions documentation_______________________й...","explorerAgentReading":"й_Reading through the documentation___________________й...","explorerAgentReviewing":"й_Reviewing what I found__________________________й...","explorerAgentPreparing":"й_Preparing a response________________________й..."},"builderMessages":{"understandingRequest":"й_Understanding your request______________________________й...","selectTemplatePrompt":"й_This use case could be supported in a few different ways. Choose the option that best matches what you want to accomplish______________________________________________________________й.","searchingExistingSolutions":"й_Searching for existing solutions___________________й...","existingSolutionMatch":"й_I found an existing solution that closely matches your use case and may already meet your needs: {{solutionMatch}}. Do you want to continue building your solution___________________________________________________________________________________й?","creatingDesign":"й_Generating solution design______________________________й...","updatingDesign":"й_Updating solution design____________________________й...","applyChangeFailed":"й_I wasn't able to apply that change. The design was not modified. Please try rephrasing your request___________________________________________________й."},"betaTag":"й_Beta_________й","defaultStartUpMessage":"й_Welcome to the ArcGIS Solutions assistant! I can help you learn more about ArcGIS Solutions, locate the right solution, or build a solution tailored to your unique needs______________________________________________________________________________________й.","defaultFollowUpQuestions":{"roadwayAssets":"й_Can you help me inspect roadway assets_____________________й?","publicSafety":"й_What solutions support public safety agencies________________________й?","howToDeploy":"й_How do I deploy a solution____________________________й?","buildOwnSolution":"й_I want to build my own solution_________________й."},"disclaimerMessage":"Отговорите се генерират от ИИ и може да са неточни.","executingSolutionsAssistantAgent":"й_Preparing a response________________________й...","genericErrorMessage":"й_I'm sorry, I ran into a problem with your request. Please try again, or rephrase your question for better results__________________________________________________________й.","newConversationStarted":"Започна нов разговор.","noPermissionTitle":"й_ArcGIS Solutions assistant is not available_______________________й.","noPermissionMessage":"й_To use the ArcGIS Solutions assistant, an <a href='{{orgUrl}}' target='_blank'>ArcGIS Online organizational account</a> with privileges to use AI assistants is required. Other account types, such as public accounts, are not currently supported. In addition, your ArcGIS Online administrator must <a href='{{configAI}}' target='_blank'>configure AI assistants</a>_______________________________________________________________________________________________________________________________________________________________________________________й.","reportConcern":"Докладване на проблем със сигурността.","solutionsDocReference":"препратка","solutionsDocReferences":"препратки","sendMessage":"Въведете въпроса си","solutionAssistantTitle":"Асистент за ArcGIS Solutions","signIn":"Вписване","signInMessage":"й_Sign in with your ArcGIS account to start using the ArcGIS Solutions assistant_________________________________________й.","tooltips":{"close":"й_Close___________й","likeButton":"Положителна обратна връзка","dislikeButton":"Отрицателна обратна връзка","copyButton":"Копиране","newConversation":"Нов разговор","sendQuestion":"Изпращане","solutionBuilder":"й_Solution builder_________________й","toggleSolutionBuilder":"й_Toggle solution builder panel______________________________й"},"viewSolutionInApp":"Преглед на решение"}
@@ -1 +1 @@
1
- {"agentProgress":{"explorerAgentSearching":"Č_Searching ArcGIS Solutions documentation_______________________ž...","explorerAgentReading":"Č_Reading through the documentation___________________ž...","explorerAgentReviewing":"Č_Reviewing what I found__________________________ž...","explorerAgentPreparing":"Č_Preparing a response________________________ž..."},"builderMessages":{"understandingRequest":"Č_Understanding your request______________________________ž...","selectTemplatePrompt":"Č_This use case could be supported in a few different ways. Choose the option that best matches what you want to accomplish______________________________________________________________ž.","searchingExistingSolutions":"Č_Searching for existing solutions___________________ž...","existingSolutionMatch":"Č_We have an existing solution, {{solutionMatch}}, that closely matches your use case and may already meet your needs. Do you want to continue building your solution___________________________________________________________________________________ž?","creatingDesign":"Č_Generating solution design______________________________ž...","updatingDesign":"Č_Updating solution design____________________________ž...","applyChangeFailed":"Č_I wasn't able to apply that change. The design was not modified. Please try rephrasing your request___________________________________________________ž."},"betaTag":"Č_Beta_________ž","defaultStartUpMessage":"Č_Welcome to the ArcGIS Solutions assistant! I can help you learn more about ArcGIS Solutions, locate the right solution, or build a solution tailored to your unique needs______________________________________________________________________________________ž.","defaultFollowUpQuestions":{"roadwayAssets":"Č_Can you help me inspect roadway assets_____________________ž?","publicSafety":"Č_What solutions support public safety agencies________________________ž?","howToDeploy":"Č_How do I deploy a solution____________________________ž?","buildOwnSolution":"Č_I want to build my own solution_________________ž."},"disclaimerMessage":"Odgovore generira umjetna inteligencija i mogu biti netočni.","executingSolutionsAssistantAgent":"Č_Preparing a response________________________ž...","genericErrorMessage":"Č_I'm sorry, I ran into a problem with your request. Please try again, or rephrase your question for better results__________________________________________________________ž.","newConversationStarted":"Započet je novi razgovor","noPermissionTitle":"Č_ArcGIS Solutions assistant is not available_______________________ž.","noPermissionMessage":"Č_To use the ArcGIS Solutions assistant, an <a href='{{orgUrl}}' target='_blank'>ArcGIS Online organizational account</a> with privileges to use AI assistants is required. Other account types, such as public accounts, are not currently supported. In addition, your ArcGIS Online administrator must <a href='{{configAI}}' target='_blank'>configure AI assistants</a>_______________________________________________________________________________________________________________________________________________________________________________________ž.","reportConcern":"Prijavite sigurnosni problem.","solutionsDocReference":"referenca","solutionsDocReferences":"reference","sendMessage":"Unesite svoje pitanje","solutionAssistantTitle":"ArcGIS Solutions pomoćnik","signIn":"Prijavite se","signInMessage":"Č_Sign in with your ArcGIS account to start using the ArcGIS Solutions assistant_________________________________________ž.","tooltips":{"close":"Č_Close___________ž","likeButton":"Pozitivne povratne informacije","dislikeButton":"Negativne povratne informacije","copyButton":"Kopiraj","newConversation":"Novi razgovor","sendQuestion":"Pošalji","solutionBuilder":"Č_Solution builder_________________ž","toggleSolutionBuilder":"Č_Toggle solution builder panel______________________________ž"},"viewSolutionInApp":"Prikaz rješenja"}
1
+ {"agentProgress":{"explorerAgentSearching":"Č_Searching ArcGIS Solutions documentation_______________________ž...","explorerAgentReading":"Č_Reading through the documentation___________________ž...","explorerAgentReviewing":"Č_Reviewing what I found__________________________ž...","explorerAgentPreparing":"Č_Preparing a response________________________ž..."},"builderMessages":{"understandingRequest":"Č_Understanding your request______________________________ž...","selectTemplatePrompt":"Č_This use case could be supported in a few different ways. Choose the option that best matches what you want to accomplish______________________________________________________________ž.","searchingExistingSolutions":"Č_Searching for existing solutions___________________ž...","existingSolutionMatch":"Č_I found an existing solution that closely matches your use case and may already meet your needs: {{solutionMatch}}. Do you want to continue building your solution___________________________________________________________________________________ž?","creatingDesign":"Č_Generating solution design______________________________ž...","updatingDesign":"Č_Updating solution design____________________________ž...","applyChangeFailed":"Č_I wasn't able to apply that change. The design was not modified. Please try rephrasing your request___________________________________________________ž."},"betaTag":"Č_Beta_________ž","defaultStartUpMessage":"Č_Welcome to the ArcGIS Solutions assistant! I can help you learn more about ArcGIS Solutions, locate the right solution, or build a solution tailored to your unique needs______________________________________________________________________________________ž.","defaultFollowUpQuestions":{"roadwayAssets":"Č_Can you help me inspect roadway assets_____________________ž?","publicSafety":"Č_What solutions support public safety agencies________________________ž?","howToDeploy":"Č_How do I deploy a solution____________________________ž?","buildOwnSolution":"Č_I want to build my own solution_________________ž."},"disclaimerMessage":"Odgovore generira umjetna inteligencija i mogu biti netočni.","executingSolutionsAssistantAgent":"Č_Preparing a response________________________ž...","genericErrorMessage":"Č_I'm sorry, I ran into a problem with your request. Please try again, or rephrase your question for better results__________________________________________________________ž.","newConversationStarted":"Započet je novi razgovor","noPermissionTitle":"Č_ArcGIS Solutions assistant is not available_______________________ž.","noPermissionMessage":"Č_To use the ArcGIS Solutions assistant, an <a href='{{orgUrl}}' target='_blank'>ArcGIS Online organizational account</a> with privileges to use AI assistants is required. Other account types, such as public accounts, are not currently supported. In addition, your ArcGIS Online administrator must <a href='{{configAI}}' target='_blank'>configure AI assistants</a>_______________________________________________________________________________________________________________________________________________________________________________________ž.","reportConcern":"Prijavite sigurnosni problem.","solutionsDocReference":"referenca","solutionsDocReferences":"reference","sendMessage":"Unesite svoje pitanje","solutionAssistantTitle":"ArcGIS Solutions pomoćnik","signIn":"Prijavite se","signInMessage":"Č_Sign in with your ArcGIS account to start using the ArcGIS Solutions assistant_________________________________________ž.","tooltips":{"close":"Č_Close___________ž","likeButton":"Pozitivne povratne informacije","dislikeButton":"Negativne povratne informacije","copyButton":"Kopiraj","newConversation":"Novi razgovor","sendQuestion":"Pošalji","solutionBuilder":"Č_Solution builder_________________ž","toggleSolutionBuilder":"Č_Toggle solution builder panel______________________________ž"},"viewSolutionInApp":"Prikaz rješenja"}
@@ -1 +1 @@
1
- {"agentProgress":{"explorerAgentSearching":"ó_Searching ArcGIS Solutions documentation_______________________à...","explorerAgentReading":"ó_Reading through the documentation___________________à...","explorerAgentReviewing":"ó_Reviewing what I found__________________________à...","explorerAgentPreparing":"ó_Preparing a response________________________à..."},"builderMessages":{"understandingRequest":"ó_Understanding your request______________________________à...","selectTemplatePrompt":"ó_This use case could be supported in a few different ways. Choose the option that best matches what you want to accomplish______________________________________________________________à.","searchingExistingSolutions":"ó_Searching for existing solutions___________________à...","existingSolutionMatch":"ó_We have an existing solution, {{solutionMatch}}, that closely matches your use case and may already meet your needs. Do you want to continue building your solution___________________________________________________________________________________à?","creatingDesign":"ó_Generating solution design______________________________à...","updatingDesign":"ó_Updating solution design____________________________à...","applyChangeFailed":"ó_I wasn't able to apply that change. The design was not modified. Please try rephrasing your request___________________________________________________à."},"betaTag":"ó_Beta_________à","defaultStartUpMessage":"ó_Welcome to the ArcGIS Solutions assistant! I can help you learn more about ArcGIS Solutions, locate the right solution, or build a solution tailored to your unique needs______________________________________________________________________________________à.","defaultFollowUpQuestions":{"roadwayAssets":"ó_Can you help me inspect roadway assets_____________________à?","publicSafety":"ó_What solutions support public safety agencies________________________à?","howToDeploy":"ó_How do I deploy a solution____________________________à?","buildOwnSolution":"ó_I want to build my own solution_________________à."},"disclaimerMessage":"Les respostes es generen amb IA i és possible que no siguin correctes.","executingSolutionsAssistantAgent":"ó_Preparing a response________________________à...","genericErrorMessage":"ó_I'm sorry, I ran into a problem with your request. Please try again, or rephrase your question for better results__________________________________________________________à.","newConversationStarted":"S'ha iniciat una conversa nova","noPermissionTitle":"ó_ArcGIS Solutions assistant is not available_______________________à.","noPermissionMessage":"ó_To use the ArcGIS Solutions assistant, an <a href='{{orgUrl}}' target='_blank'>ArcGIS Online organizational account</a> with privileges to use AI assistants is required. Other account types, such as public accounts, are not currently supported. In addition, your ArcGIS Online administrator must <a href='{{configAI}}' target='_blank'>configure AI assistants</a>_______________________________________________________________________________________________________________________________________________________________________________________à.","reportConcern":"Informeu d'un problema de seguretat.","solutionsDocReference":"referència","solutionsDocReferences":"referències","sendMessage":"Escriviu la pregunta","solutionAssistantTitle":"Assistent de l'ArcGIS Solutions","signIn":"Inicia la sessió","signInMessage":"ó_Sign in with your ArcGIS account to start using the ArcGIS Solutions assistant_________________________________________à.","tooltips":{"close":"ó_Close___________à","likeButton":"Comentaris positius","dislikeButton":"Comentaris negatius","copyButton":"Copia","newConversation":"Conversa nova","sendQuestion":"Envia","solutionBuilder":"ó_Solution builder_________________à","toggleSolutionBuilder":"ó_Toggle solution builder panel______________________________à"},"viewSolutionInApp":"Mostra la solució"}
1
+ {"agentProgress":{"explorerAgentSearching":"ó_Searching ArcGIS Solutions documentation_______________________à...","explorerAgentReading":"ó_Reading through the documentation___________________à...","explorerAgentReviewing":"ó_Reviewing what I found__________________________à...","explorerAgentPreparing":"ó_Preparing a response________________________à..."},"builderMessages":{"understandingRequest":"ó_Understanding your request______________________________à...","selectTemplatePrompt":"ó_This use case could be supported in a few different ways. Choose the option that best matches what you want to accomplish______________________________________________________________à.","searchingExistingSolutions":"ó_Searching for existing solutions___________________à...","existingSolutionMatch":"ó_I found an existing solution that closely matches your use case and may already meet your needs: {{solutionMatch}}. Do you want to continue building your solution___________________________________________________________________________________à?","creatingDesign":"ó_Generating solution design______________________________à...","updatingDesign":"ó_Updating solution design____________________________à...","applyChangeFailed":"ó_I wasn't able to apply that change. The design was not modified. Please try rephrasing your request___________________________________________________à."},"betaTag":"ó_Beta_________à","defaultStartUpMessage":"ó_Welcome to the ArcGIS Solutions assistant! I can help you learn more about ArcGIS Solutions, locate the right solution, or build a solution tailored to your unique needs______________________________________________________________________________________à.","defaultFollowUpQuestions":{"roadwayAssets":"ó_Can you help me inspect roadway assets_____________________à?","publicSafety":"ó_What solutions support public safety agencies________________________à?","howToDeploy":"ó_How do I deploy a solution____________________________à?","buildOwnSolution":"ó_I want to build my own solution_________________à."},"disclaimerMessage":"Les respostes es generen amb IA i és possible que no siguin correctes.","executingSolutionsAssistantAgent":"ó_Preparing a response________________________à...","genericErrorMessage":"ó_I'm sorry, I ran into a problem with your request. Please try again, or rephrase your question for better results__________________________________________________________à.","newConversationStarted":"S'ha iniciat una conversa nova","noPermissionTitle":"ó_ArcGIS Solutions assistant is not available_______________________à.","noPermissionMessage":"ó_To use the ArcGIS Solutions assistant, an <a href='{{orgUrl}}' target='_blank'>ArcGIS Online organizational account</a> with privileges to use AI assistants is required. Other account types, such as public accounts, are not currently supported. In addition, your ArcGIS Online administrator must <a href='{{configAI}}' target='_blank'>configure AI assistants</a>_______________________________________________________________________________________________________________________________________________________________________________________à.","reportConcern":"Informeu d'un problema de seguretat.","solutionsDocReference":"referència","solutionsDocReferences":"referències","sendMessage":"Escriviu la pregunta","solutionAssistantTitle":"Assistent de l'ArcGIS Solutions","signIn":"Inicia la sessió","signInMessage":"ó_Sign in with your ArcGIS account to start using the ArcGIS Solutions assistant_________________________________________à.","tooltips":{"close":"ó_Close___________à","likeButton":"Comentaris positius","dislikeButton":"Comentaris negatius","copyButton":"Copia","newConversation":"Conversa nova","sendQuestion":"Envia","solutionBuilder":"ó_Solution builder_________________à","toggleSolutionBuilder":"ó_Toggle solution builder panel______________________________à"},"viewSolutionInApp":"Mostra la solució"}
@@ -1 +1 @@
1
- {"agentProgress":{"explorerAgentSearching":"Ř_Searching ArcGIS Solutions documentation_______________________ů...","explorerAgentReading":"Ř_Reading through the documentation___________________ů...","explorerAgentReviewing":"Ř_Reviewing what I found__________________________ů...","explorerAgentPreparing":"Ř_Preparing a response________________________ů..."},"builderMessages":{"understandingRequest":"Ř_Understanding your request______________________________ů...","selectTemplatePrompt":"Ř_This use case could be supported in a few different ways. Choose the option that best matches what you want to accomplish______________________________________________________________ů.","searchingExistingSolutions":"Ř_Searching for existing solutions___________________ů...","existingSolutionMatch":"Ř_We have an existing solution, {{solutionMatch}}, that closely matches your use case and may already meet your needs. Do you want to continue building your solution___________________________________________________________________________________ů?","creatingDesign":"Ř_Generating solution design______________________________ů...","updatingDesign":"Ř_Updating solution design____________________________ů...","applyChangeFailed":"Ř_I wasn't able to apply that change. The design was not modified. Please try rephrasing your request___________________________________________________ů."},"betaTag":"Ř_Beta_________ů","defaultStartUpMessage":"Ř_Welcome to the ArcGIS Solutions assistant! I can help you learn more about ArcGIS Solutions, locate the right solution, or build a solution tailored to your unique needs______________________________________________________________________________________ů.","defaultFollowUpQuestions":{"roadwayAssets":"Ř_Can you help me inspect roadway assets_____________________ů?","publicSafety":"Ř_What solutions support public safety agencies________________________ů?","howToDeploy":"Ř_How do I deploy a solution____________________________ů?","buildOwnSolution":"Ř_I want to build my own solution_________________ů."},"disclaimerMessage":"Odpovědi jsou generovány pomocí AI a mohou být nepřesné.","executingSolutionsAssistantAgent":"Ř_Preparing a response________________________ů...","genericErrorMessage":"Ř_I'm sorry, I ran into a problem with your request. Please try again, or rephrase your question for better results__________________________________________________________ů.","newConversationStarted":"Nová konverzace byla zahájena","noPermissionTitle":"Ř_ArcGIS Solutions assistant is not available_______________________ů.","noPermissionMessage":"Ř_To use the ArcGIS Solutions assistant, an <a href='{{orgUrl}}' target='_blank'>ArcGIS Online organizational account</a> with privileges to use AI assistants is required. Other account types, such as public accounts, are not currently supported. In addition, your ArcGIS Online administrator must <a href='{{configAI}}' target='_blank'>configure AI assistants</a>_______________________________________________________________________________________________________________________________________________________________________________________ů.","reportConcern":"Nahlaste problém se zabezpečením.","solutionsDocReference":"reference","solutionsDocReferences":"reference","sendMessage":"Zadejte svou otázku","solutionAssistantTitle":"Asistent pro ArcGIS Solutions","signIn":"Přihlásit se","signInMessage":"Ř_Sign in with your ArcGIS account to start using the ArcGIS Solutions assistant_________________________________________ů.","tooltips":{"close":"Ř_Close___________ů","likeButton":"Pozitivní zpětná vazba","dislikeButton":"Negativní zpětná vazba","copyButton":"Kopírovat","newConversation":"Nová konverzace","sendQuestion":"Odeslat","solutionBuilder":"Ř_Solution builder_________________ů","toggleSolutionBuilder":"Ř_Toggle solution builder panel______________________________ů"},"viewSolutionInApp":"Zobrazit řešení"}
1
+ {"agentProgress":{"explorerAgentSearching":"Ř_Searching ArcGIS Solutions documentation_______________________ů...","explorerAgentReading":"Ř_Reading through the documentation___________________ů...","explorerAgentReviewing":"Ř_Reviewing what I found__________________________ů...","explorerAgentPreparing":"Ř_Preparing a response________________________ů..."},"builderMessages":{"understandingRequest":"Ř_Understanding your request______________________________ů...","selectTemplatePrompt":"Ř_This use case could be supported in a few different ways. Choose the option that best matches what you want to accomplish______________________________________________________________ů.","searchingExistingSolutions":"Ř_Searching for existing solutions___________________ů...","existingSolutionMatch":"Ř_I found an existing solution that closely matches your use case and may already meet your needs: {{solutionMatch}}. Do you want to continue building your solution___________________________________________________________________________________ů?","creatingDesign":"Ř_Generating solution design______________________________ů...","updatingDesign":"Ř_Updating solution design____________________________ů...","applyChangeFailed":"Ř_I wasn't able to apply that change. The design was not modified. Please try rephrasing your request___________________________________________________ů."},"betaTag":"Ř_Beta_________ů","defaultStartUpMessage":"Ř_Welcome to the ArcGIS Solutions assistant! I can help you learn more about ArcGIS Solutions, locate the right solution, or build a solution tailored to your unique needs______________________________________________________________________________________ů.","defaultFollowUpQuestions":{"roadwayAssets":"Ř_Can you help me inspect roadway assets_____________________ů?","publicSafety":"Ř_What solutions support public safety agencies________________________ů?","howToDeploy":"Ř_How do I deploy a solution____________________________ů?","buildOwnSolution":"Ř_I want to build my own solution_________________ů."},"disclaimerMessage":"Odpovědi jsou generovány pomocí AI a mohou být nepřesné.","executingSolutionsAssistantAgent":"Ř_Preparing a response________________________ů...","genericErrorMessage":"Ř_I'm sorry, I ran into a problem with your request. Please try again, or rephrase your question for better results__________________________________________________________ů.","newConversationStarted":"Nová konverzace byla zahájena","noPermissionTitle":"Ř_ArcGIS Solutions assistant is not available_______________________ů.","noPermissionMessage":"Ř_To use the ArcGIS Solutions assistant, an <a href='{{orgUrl}}' target='_blank'>ArcGIS Online organizational account</a> with privileges to use AI assistants is required. Other account types, such as public accounts, are not currently supported. In addition, your ArcGIS Online administrator must <a href='{{configAI}}' target='_blank'>configure AI assistants</a>_______________________________________________________________________________________________________________________________________________________________________________________ů.","reportConcern":"Nahlaste problém se zabezpečením.","solutionsDocReference":"reference","solutionsDocReferences":"reference","sendMessage":"Zadejte svou otázku","solutionAssistantTitle":"Asistent pro ArcGIS Solutions","signIn":"Přihlásit se","signInMessage":"Ř_Sign in with your ArcGIS account to start using the ArcGIS Solutions assistant_________________________________________ů.","tooltips":{"close":"Ř_Close___________ů","likeButton":"Pozitivní zpětná vazba","dislikeButton":"Negativní zpětná vazba","copyButton":"Kopírovat","newConversation":"Nová konverzace","sendQuestion":"Odeslat","solutionBuilder":"Ř_Solution builder_________________ů","toggleSolutionBuilder":"Ř_Toggle solution builder panel______________________________ů"},"viewSolutionInApp":"Zobrazit řešení"}
@@ -1 +1 @@
1
- {"agentProgress":{"explorerAgentSearching":"ø_Searching ArcGIS Solutions documentation_______________________å...","explorerAgentReading":"ø_Reading through the documentation___________________å...","explorerAgentReviewing":"ø_Reviewing what I found__________________________å...","explorerAgentPreparing":"ø_Preparing a response________________________å..."},"builderMessages":{"understandingRequest":"ø_Understanding your request______________________________å...","selectTemplatePrompt":"ø_This use case could be supported in a few different ways. Choose the option that best matches what you want to accomplish______________________________________________________________å.","searchingExistingSolutions":"ø_Searching for existing solutions___________________å...","existingSolutionMatch":"ø_We have an existing solution, {{solutionMatch}}, that closely matches your use case and may already meet your needs. Do you want to continue building your solution___________________________________________________________________________________å?","creatingDesign":"ø_Generating solution design______________________________å...","updatingDesign":"ø_Updating solution design____________________________å...","applyChangeFailed":"ø_I wasn't able to apply that change. The design was not modified. Please try rephrasing your request___________________________________________________å."},"betaTag":"ø_Beta_________å","defaultStartUpMessage":"ø_Welcome to the ArcGIS Solutions assistant! I can help you learn more about ArcGIS Solutions, locate the right solution, or build a solution tailored to your unique needs______________________________________________________________________________________å.","defaultFollowUpQuestions":{"roadwayAssets":"ø_Can you help me inspect roadway assets_____________________å?","publicSafety":"ø_What solutions support public safety agencies________________________å?","howToDeploy":"ø_How do I deploy a solution____________________________å?","buildOwnSolution":"ø_I want to build my own solution_________________å."},"disclaimerMessage":"Svarene er genereret af AI og er muligvis ikke nøjagtige.","executingSolutionsAssistantAgent":"ø_Preparing a response________________________å...","genericErrorMessage":"ø_I'm sorry, I ran into a problem with your request. Please try again, or rephrase your question for better results__________________________________________________________å.","newConversationStarted":"Nyt samtale startet","noPermissionTitle":"ø_ArcGIS Solutions assistant is not available_______________________å.","noPermissionMessage":"ø_To use the ArcGIS Solutions assistant, an <a href='{{orgUrl}}' target='_blank'>ArcGIS Online organizational account</a> with privileges to use AI assistants is required. Other account types, such as public accounts, are not currently supported. In addition, your ArcGIS Online administrator must <a href='{{configAI}}' target='_blank'>configure AI assistants</a>_______________________________________________________________________________________________________________________________________________________________________________________å.","reportConcern":"Rapportér et sikkerhedsproblem.","solutionsDocReference":"reference","solutionsDocReferences":"referencer","sendMessage":"Indtast dit spørgsmål","solutionAssistantTitle":"ArcGIS Solutions-assistent","signIn":"Log ind","signInMessage":"ø_Sign in with your ArcGIS account to start using the ArcGIS Solutions assistant_________________________________________å.","tooltips":{"close":"ø_Close___________å","likeButton":"Positivt feeback","dislikeButton":"Negativt feedback","copyButton":"Kopiér","newConversation":"Ny samtale","sendQuestion":"Send","solutionBuilder":"ø_Solution builder_________________å","toggleSolutionBuilder":"ø_Toggle solution builder panel______________________________å"},"viewSolutionInApp":"Vis løsning"}
1
+ {"agentProgress":{"explorerAgentSearching":"ø_Searching ArcGIS Solutions documentation_______________________å...","explorerAgentReading":"ø_Reading through the documentation___________________å...","explorerAgentReviewing":"ø_Reviewing what I found__________________________å...","explorerAgentPreparing":"ø_Preparing a response________________________å..."},"builderMessages":{"understandingRequest":"ø_Understanding your request______________________________å...","selectTemplatePrompt":"ø_This use case could be supported in a few different ways. Choose the option that best matches what you want to accomplish______________________________________________________________å.","searchingExistingSolutions":"ø_Searching for existing solutions___________________å...","existingSolutionMatch":"ø_I found an existing solution that closely matches your use case and may already meet your needs: {{solutionMatch}}. Do you want to continue building your solution___________________________________________________________________________________å?","creatingDesign":"ø_Generating solution design______________________________å...","updatingDesign":"ø_Updating solution design____________________________å...","applyChangeFailed":"ø_I wasn't able to apply that change. The design was not modified. Please try rephrasing your request___________________________________________________å."},"betaTag":"ø_Beta_________å","defaultStartUpMessage":"ø_Welcome to the ArcGIS Solutions assistant! I can help you learn more about ArcGIS Solutions, locate the right solution, or build a solution tailored to your unique needs______________________________________________________________________________________å.","defaultFollowUpQuestions":{"roadwayAssets":"ø_Can you help me inspect roadway assets_____________________å?","publicSafety":"ø_What solutions support public safety agencies________________________å?","howToDeploy":"ø_How do I deploy a solution____________________________å?","buildOwnSolution":"ø_I want to build my own solution_________________å."},"disclaimerMessage":"Svarene er genereret af AI og er muligvis ikke nøjagtige.","executingSolutionsAssistantAgent":"ø_Preparing a response________________________å...","genericErrorMessage":"ø_I'm sorry, I ran into a problem with your request. Please try again, or rephrase your question for better results__________________________________________________________å.","newConversationStarted":"Nyt samtale startet","noPermissionTitle":"ø_ArcGIS Solutions assistant is not available_______________________å.","noPermissionMessage":"ø_To use the ArcGIS Solutions assistant, an <a href='{{orgUrl}}' target='_blank'>ArcGIS Online organizational account</a> with privileges to use AI assistants is required. Other account types, such as public accounts, are not currently supported. In addition, your ArcGIS Online administrator must <a href='{{configAI}}' target='_blank'>configure AI assistants</a>_______________________________________________________________________________________________________________________________________________________________________________________å.","reportConcern":"Rapportér et sikkerhedsproblem.","solutionsDocReference":"reference","solutionsDocReferences":"referencer","sendMessage":"Indtast dit spørgsmål","solutionAssistantTitle":"ArcGIS Solutions-assistent","signIn":"Log ind","signInMessage":"ø_Sign in with your ArcGIS account to start using the ArcGIS Solutions assistant_________________________________________å.","tooltips":{"close":"ø_Close___________å","likeButton":"Positivt feeback","dislikeButton":"Negativt feedback","copyButton":"Kopiér","newConversation":"Ny samtale","sendQuestion":"Send","solutionBuilder":"ø_Solution builder_________________å","toggleSolutionBuilder":"ø_Toggle solution builder panel______________________________å"},"viewSolutionInApp":"Vis løsning"}
@@ -1 +1 @@
1
- {"agentProgress":{"explorerAgentSearching":"ä_Searching ArcGIS Solutions documentation_______________________Ü...","explorerAgentReading":"ä_Reading through the documentation___________________Ü...","explorerAgentReviewing":"ä_Reviewing what I found__________________________Ü...","explorerAgentPreparing":"ä_Preparing a response________________________Ü..."},"builderMessages":{"understandingRequest":"ä_Understanding your request______________________________Ü...","selectTemplatePrompt":"ä_This use case could be supported in a few different ways. Choose the option that best matches what you want to accomplish______________________________________________________________Ü.","searchingExistingSolutions":"ä_Searching for existing solutions___________________Ü...","existingSolutionMatch":"ä_We have an existing solution, {{solutionMatch}}, that closely matches your use case and may already meet your needs. Do you want to continue building your solution___________________________________________________________________________________Ü?","creatingDesign":"ä_Generating solution design______________________________Ü...","updatingDesign":"ä_Updating solution design____________________________Ü...","applyChangeFailed":"ä_I wasn't able to apply that change. The design was not modified. Please try rephrasing your request___________________________________________________Ü."},"betaTag":"ä_Beta_________Ü","defaultStartUpMessage":"ä_Welcome to the ArcGIS Solutions assistant! I can help you learn more about ArcGIS Solutions, locate the right solution, or build a solution tailored to your unique needs______________________________________________________________________________________Ü.","defaultFollowUpQuestions":{"roadwayAssets":"ä_Can you help me inspect roadway assets_____________________Ü?","publicSafety":"ä_What solutions support public safety agencies________________________Ü?","howToDeploy":"ä_How do I deploy a solution____________________________Ü?","buildOwnSolution":"ä_I want to build my own solution_________________Ü."},"disclaimerMessage":"Die Antworten werden von einer KI generiert und können ungenau sein.","executingSolutionsAssistantAgent":"ä_Preparing a response________________________Ü...","genericErrorMessage":"ä_I'm sorry, I ran into a problem with your request. Please try again, or rephrase your question for better results__________________________________________________________Ü.","newConversationStarted":"Neue Unterhaltung gestartet","noPermissionTitle":"ä_ArcGIS Solutions assistant is not available_______________________Ü.","noPermissionMessage":"ä_To use the ArcGIS Solutions assistant, an <a href='{{orgUrl}}' target='_blank'>ArcGIS Online organizational account</a> with privileges to use AI assistants is required. Other account types, such as public accounts, are not currently supported. In addition, your ArcGIS Online administrator must <a href='{{configAI}}' target='_blank'>configure AI assistants</a>_______________________________________________________________________________________________________________________________________________________________________________________Ü.","reportConcern":"Ein Sicherheitsproblem melden.","solutionsDocReference":"Referenz","solutionsDocReferences":"Referenzen","sendMessage":"Geben Sie Ihre Frage ein.","solutionAssistantTitle":"ArcGIS Solutions-Assistent","signIn":"Anmelden","signInMessage":"ä_Sign in with your ArcGIS account to start using the ArcGIS Solutions assistant_________________________________________Ü.","tooltips":{"close":"ä_Close___________Ü","likeButton":"Positives Feedback","dislikeButton":"Negatives Feedback","copyButton":"Kopieren","newConversation":"Neue Unterhaltung","sendQuestion":"Senden","solutionBuilder":"ä_Solution builder_________________Ü","toggleSolutionBuilder":"ä_Toggle solution builder panel______________________________Ü"},"viewSolutionInApp":"Lösung anzeigen"}
1
+ {"agentProgress":{"explorerAgentSearching":"ä_Searching ArcGIS Solutions documentation_______________________Ü...","explorerAgentReading":"ä_Reading through the documentation___________________Ü...","explorerAgentReviewing":"ä_Reviewing what I found__________________________Ü...","explorerAgentPreparing":"ä_Preparing a response________________________Ü..."},"builderMessages":{"understandingRequest":"ä_Understanding your request______________________________Ü...","selectTemplatePrompt":"ä_This use case could be supported in a few different ways. Choose the option that best matches what you want to accomplish______________________________________________________________Ü.","searchingExistingSolutions":"ä_Searching for existing solutions___________________Ü...","existingSolutionMatch":"ä_I found an existing solution that closely matches your use case and may already meet your needs: {{solutionMatch}}. Do you want to continue building your solution___________________________________________________________________________________Ü?","creatingDesign":"ä_Generating solution design______________________________Ü...","updatingDesign":"ä_Updating solution design____________________________Ü...","applyChangeFailed":"ä_I wasn't able to apply that change. The design was not modified. Please try rephrasing your request___________________________________________________Ü."},"betaTag":"ä_Beta_________Ü","defaultStartUpMessage":"ä_Welcome to the ArcGIS Solutions assistant! I can help you learn more about ArcGIS Solutions, locate the right solution, or build a solution tailored to your unique needs______________________________________________________________________________________Ü.","defaultFollowUpQuestions":{"roadwayAssets":"ä_Can you help me inspect roadway assets_____________________Ü?","publicSafety":"ä_What solutions support public safety agencies________________________Ü?","howToDeploy":"ä_How do I deploy a solution____________________________Ü?","buildOwnSolution":"ä_I want to build my own solution_________________Ü."},"disclaimerMessage":"Die Antworten werden von einer KI generiert und können ungenau sein.","executingSolutionsAssistantAgent":"ä_Preparing a response________________________Ü...","genericErrorMessage":"ä_I'm sorry, I ran into a problem with your request. Please try again, or rephrase your question for better results__________________________________________________________Ü.","newConversationStarted":"Neue Unterhaltung gestartet","noPermissionTitle":"ä_ArcGIS Solutions assistant is not available_______________________Ü.","noPermissionMessage":"ä_To use the ArcGIS Solutions assistant, an <a href='{{orgUrl}}' target='_blank'>ArcGIS Online organizational account</a> with privileges to use AI assistants is required. Other account types, such as public accounts, are not currently supported. In addition, your ArcGIS Online administrator must <a href='{{configAI}}' target='_blank'>configure AI assistants</a>_______________________________________________________________________________________________________________________________________________________________________________________Ü.","reportConcern":"Ein Sicherheitsproblem melden.","solutionsDocReference":"Referenz","solutionsDocReferences":"Referenzen","sendMessage":"Geben Sie Ihre Frage ein.","solutionAssistantTitle":"ArcGIS Solutions-Assistent","signIn":"Anmelden","signInMessage":"ä_Sign in with your ArcGIS account to start using the ArcGIS Solutions assistant_________________________________________Ü.","tooltips":{"close":"ä_Close___________Ü","likeButton":"Positives Feedback","dislikeButton":"Negatives Feedback","copyButton":"Kopieren","newConversation":"Neue Unterhaltung","sendQuestion":"Senden","solutionBuilder":"ä_Solution builder_________________Ü","toggleSolutionBuilder":"ä_Toggle solution builder panel______________________________Ü"},"viewSolutionInApp":"Lösung anzeigen"}
@@ -1 +1 @@
1
- {"agentProgress":{"explorerAgentSearching":"π_Searching ArcGIS Solutions documentation_______________________Ω...","explorerAgentReading":"π_Reading through the documentation___________________Ω...","explorerAgentReviewing":"π_Reviewing what I found__________________________Ω...","explorerAgentPreparing":"π_Preparing a response________________________Ω..."},"builderMessages":{"understandingRequest":"π_Understanding your request______________________________Ω...","selectTemplatePrompt":"π_This use case could be supported in a few different ways. Choose the option that best matches what you want to accomplish______________________________________________________________Ω.","searchingExistingSolutions":"π_Searching for existing solutions___________________Ω...","existingSolutionMatch":"π_We have an existing solution, {{solutionMatch}}, that closely matches your use case and may already meet your needs. Do you want to continue building your solution___________________________________________________________________________________Ω?","creatingDesign":"π_Generating solution design______________________________Ω...","updatingDesign":"π_Updating solution design____________________________Ω...","applyChangeFailed":"π_I wasn't able to apply that change. The design was not modified. Please try rephrasing your request___________________________________________________Ω."},"betaTag":"π_Beta_________Ω","defaultStartUpMessage":"π_Welcome to the ArcGIS Solutions assistant! I can help you learn more about ArcGIS Solutions, locate the right solution, or build a solution tailored to your unique needs______________________________________________________________________________________Ω.","defaultFollowUpQuestions":{"roadwayAssets":"π_Can you help me inspect roadway assets_____________________Ω?","publicSafety":"π_What solutions support public safety agencies________________________Ω?","howToDeploy":"π_How do I deploy a solution____________________________Ω?","buildOwnSolution":"π_I want to build my own solution_________________Ω."},"disclaimerMessage":"Οι απαντήσεις είναι προϊόν τεχνητής νοημοσύνης και μπορεί να είναι ανακριβείς.","executingSolutionsAssistantAgent":"π_Preparing a response________________________Ω...","genericErrorMessage":"π_I'm sorry, I ran into a problem with your request. Please try again, or rephrase your question for better results__________________________________________________________Ω.","newConversationStarted":"Έναρξη νέας συνομιλίας","noPermissionTitle":"π_ArcGIS Solutions assistant is not available_______________________Ω.","noPermissionMessage":"π_To use the ArcGIS Solutions assistant, an <a href='{{orgUrl}}' target='_blank'>ArcGIS Online organizational account</a> with privileges to use AI assistants is required. Other account types, such as public accounts, are not currently supported. In addition, your ArcGIS Online administrator must <a href='{{configAI}}' target='_blank'>configure AI assistants</a>_______________________________________________________________________________________________________________________________________________________________________________________Ω.","reportConcern":"Αναφέρετε ένα ζήτημα ασφάλειας.","solutionsDocReference":"αναφορά","solutionsDocReferences":"αναφορές","sendMessage":"Πληκτρολογήστε την ερώτησή σας","solutionAssistantTitle":"Βοηθός ArcGIS Solutions","signIn":"Σύνδεση","signInMessage":"π_Sign in with your ArcGIS account to start using the ArcGIS Solutions assistant_________________________________________Ω.","tooltips":{"close":"π_Close___________Ω","likeButton":"Θετική γνώμη","dislikeButton":"Αρνητική γνώμη","copyButton":"Αντιγραφή","newConversation":"Νέα συζήτηση","sendQuestion":"Αποστολή","solutionBuilder":"π_Solution builder_________________Ω","toggleSolutionBuilder":"π_Toggle solution builder panel______________________________Ω"},"viewSolutionInApp":"Προβολή λύσης"}
1
+ {"agentProgress":{"explorerAgentSearching":"π_Searching ArcGIS Solutions documentation_______________________Ω...","explorerAgentReading":"π_Reading through the documentation___________________Ω...","explorerAgentReviewing":"π_Reviewing what I found__________________________Ω...","explorerAgentPreparing":"π_Preparing a response________________________Ω..."},"builderMessages":{"understandingRequest":"π_Understanding your request______________________________Ω...","selectTemplatePrompt":"π_This use case could be supported in a few different ways. Choose the option that best matches what you want to accomplish______________________________________________________________Ω.","searchingExistingSolutions":"π_Searching for existing solutions___________________Ω...","existingSolutionMatch":"π_I found an existing solution that closely matches your use case and may already meet your needs: {{solutionMatch}}. Do you want to continue building your solution___________________________________________________________________________________Ω?","creatingDesign":"π_Generating solution design______________________________Ω...","updatingDesign":"π_Updating solution design____________________________Ω...","applyChangeFailed":"π_I wasn't able to apply that change. The design was not modified. Please try rephrasing your request___________________________________________________Ω."},"betaTag":"π_Beta_________Ω","defaultStartUpMessage":"π_Welcome to the ArcGIS Solutions assistant! I can help you learn more about ArcGIS Solutions, locate the right solution, or build a solution tailored to your unique needs______________________________________________________________________________________Ω.","defaultFollowUpQuestions":{"roadwayAssets":"π_Can you help me inspect roadway assets_____________________Ω?","publicSafety":"π_What solutions support public safety agencies________________________Ω?","howToDeploy":"π_How do I deploy a solution____________________________Ω?","buildOwnSolution":"π_I want to build my own solution_________________Ω."},"disclaimerMessage":"Οι απαντήσεις είναι προϊόν τεχνητής νοημοσύνης και μπορεί να είναι ανακριβείς.","executingSolutionsAssistantAgent":"π_Preparing a response________________________Ω...","genericErrorMessage":"π_I'm sorry, I ran into a problem with your request. Please try again, or rephrase your question for better results__________________________________________________________Ω.","newConversationStarted":"Έναρξη νέας συνομιλίας","noPermissionTitle":"π_ArcGIS Solutions assistant is not available_______________________Ω.","noPermissionMessage":"π_To use the ArcGIS Solutions assistant, an <a href='{{orgUrl}}' target='_blank'>ArcGIS Online organizational account</a> with privileges to use AI assistants is required. Other account types, such as public accounts, are not currently supported. In addition, your ArcGIS Online administrator must <a href='{{configAI}}' target='_blank'>configure AI assistants</a>_______________________________________________________________________________________________________________________________________________________________________________________Ω.","reportConcern":"Αναφέρετε ένα ζήτημα ασφάλειας.","solutionsDocReference":"αναφορά","solutionsDocReferences":"αναφορές","sendMessage":"Πληκτρολογήστε την ερώτησή σας","solutionAssistantTitle":"Βοηθός ArcGIS Solutions","signIn":"Σύνδεση","signInMessage":"π_Sign in with your ArcGIS account to start using the ArcGIS Solutions assistant_________________________________________Ω.","tooltips":{"close":"π_Close___________Ω","likeButton":"Θετική γνώμη","dislikeButton":"Αρνητική γνώμη","copyButton":"Αντιγραφή","newConversation":"Νέα συζήτηση","sendQuestion":"Αποστολή","solutionBuilder":"π_Solution builder_________________Ω","toggleSolutionBuilder":"π_Toggle solution builder panel______________________________Ω"},"viewSolutionInApp":"Προβολή λύσης"}