@esri/solutions-components 0.11.12 → 0.11.14

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 (1278) hide show
  1. package/dist/cjs/basemap-gallery_7.cjs.entry.js +258 -49
  2. package/dist/cjs/buffer-tools_2.cjs.entry.js +122 -28
  3. package/dist/cjs/card-manager_3.cjs.entry.js +427 -98
  4. package/dist/cjs/consent-manager.cjs.entry.js +54 -12
  5. package/dist/cjs/create-feature_4.cjs.entry.js +247 -53
  6. package/dist/cjs/create-related-feature_3.cjs.entry.js +166 -35
  7. package/dist/cjs/crowdsource-manager.cjs.entry.js +247 -58
  8. package/dist/cjs/crowdsource-reporter.cjs.entry.js +213 -52
  9. package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
  10. package/dist/cjs/delete-dialog.cjs.entry.js +37 -8
  11. package/dist/cjs/downloadUtils-1935500f.js +3223 -0
  12. package/dist/cjs/effects-3607d1ba.js +83 -0
  13. package/dist/cjs/feature-list.cjs.entry.js +95 -24
  14. package/dist/cjs/helpers-b511b55e.js +867 -0
  15. package/dist/cjs/index-b2821254.js +201 -0
  16. package/dist/cjs/index-b936ec03.js +1903 -0
  17. package/dist/cjs/index.es-3c2404c3.js +11195 -0
  18. package/dist/cjs/instant-apps-app-guide.cjs.entry.js +3 -3
  19. package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +5 -5
  20. package/dist/cjs/instant-apps-control-panel.cjs.entry.js +2 -2
  21. package/dist/cjs/instant-apps-create.cjs.entry.js +3 -3
  22. package/dist/cjs/instant-apps-export-views.cjs.entry.js +3 -3
  23. package/dist/cjs/instant-apps-export.cjs.entry.js +3 -3
  24. package/dist/cjs/instant-apps-filter-list_2.cjs.entry.js +3 -3
  25. package/dist/cjs/instant-apps-header.cjs.entry.js +1 -1
  26. package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +5 -5
  27. package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +5 -5
  28. package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +5 -5
  29. package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +5 -5
  30. package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +6 -6
  31. package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +20 -20
  32. package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
  33. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +826 -20
  34. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +817 -10
  35. package/dist/cjs/instant-apps-measurement-tool.cjs.entry.js +2 -2
  36. package/dist/cjs/instant-apps-measurement.cjs.entry.js +3 -3
  37. package/dist/cjs/instant-apps-popover.cjs.entry.js +3 -3
  38. package/dist/cjs/instant-apps-popovers.cjs.entry.js +1 -1
  39. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +3 -3
  40. package/dist/cjs/instant-apps-sign-in.cjs.entry.js +3 -3
  41. package/dist/cjs/instant-apps-splash.cjs.entry.js +3 -3
  42. package/dist/cjs/instant-apps-time-filter.cjs.entry.js +5 -5
  43. package/dist/cjs/json-editor_7.cjs.entry.js +227 -49
  44. package/dist/cjs/languageSwitcher-19a22439.js +52 -0
  45. package/dist/cjs/loadModules-e9d8977c.js +23 -0
  46. package/dist/cjs/loader.cjs.js +1 -1
  47. package/dist/cjs/locale-4187fc82.js +943 -0
  48. package/dist/cjs/locale-98346201.js +160 -0
  49. package/dist/cjs/map-layer-picker.cjs.entry.js +112 -27
  50. package/dist/cjs/map-select-tools_3.cjs.entry.js +229 -50
  51. package/dist/cjs/pci-calculator.cjs.entry.js +15 -2
  52. package/dist/cjs/popupUtils-c0921a77.js +121 -0
  53. package/dist/cjs/public-notification.cjs.entry.js +194 -44
  54. package/dist/cjs/publicNotificationStore-76755c44.js +47 -0
  55. package/dist/cjs/solution-configuration.cjs.entry.js +52 -17
  56. package/dist/cjs/solution-contents_3.cjs.entry.js +84 -18
  57. package/dist/cjs/solution-item-accordion.cjs.entry.js +39 -9
  58. package/dist/cjs/solution-item-icon.cjs.entry.js +18 -4
  59. package/dist/cjs/solution-store-a2a8422d.js +1105 -0
  60. package/dist/cjs/solutions-components.cjs.js +2 -2
  61. package/dist/cjs/spatial-ref.cjs.entry.js +45 -10
  62. package/dist/cjs/store-manager.cjs.entry.js +21 -6
  63. package/dist/cjs/utils-16dbc236.js +153 -0
  64. package/dist/collection/collection-manifest.json +1 -1
  65. package/dist/collection/components/basemap-gallery/basemap-gallery.js +19 -5
  66. package/dist/collection/components/buffer-tools/buffer-tools.js +52 -13
  67. package/dist/collection/components/card-manager/card-manager.js +71 -17
  68. package/dist/collection/components/consent-manager/consent-manager.js +52 -12
  69. package/dist/collection/components/create-feature/create-feature.js +68 -16
  70. package/dist/collection/components/create-related-feature/create-related-feature.js +44 -10
  71. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +245 -58
  72. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +211 -52
  73. package/dist/collection/components/delete-button/delete-button.js +55 -13
  74. package/dist/collection/components/delete-dialog/delete-dialog.js +35 -8
  75. package/dist/collection/components/edit-card/edit-card.js +43 -10
  76. package/dist/collection/components/feature-details/feature-details.js +70 -17
  77. package/dist/collection/components/feature-list/feature-list.js +91 -22
  78. package/dist/collection/components/floor-filter/floor-filter.js +19 -5
  79. package/dist/collection/components/info-card/info-card.js +77 -18
  80. package/dist/collection/components/json-editor/json-editor.js +28 -7
  81. package/dist/collection/components/layer-list/layer-list.js +50 -12
  82. package/dist/collection/components/layer-table/layer-table.js +171 -41
  83. package/dist/collection/components/map-card/map-card.js +182 -43
  84. package/dist/collection/components/map-draw-tools/map-draw-tools.js +66 -15
  85. package/dist/collection/components/map-fullscreen/map-fullscreen.js +18 -4
  86. package/dist/collection/components/map-layer-picker/map-layer-picker.js +108 -25
  87. package/dist/collection/components/map-legend/map-legend.js +15 -4
  88. package/dist/collection/components/map-picker/map-picker.js +35 -8
  89. package/dist/collection/components/map-search/map-search.js +35 -8
  90. package/dist/collection/components/map-select-tools/map-select-tools.js +138 -32
  91. package/dist/collection/components/map-tools/map-tools.js +115 -27
  92. package/dist/collection/components/pci-calculator/pci-calculator.js +14 -3
  93. package/dist/collection/components/pdf-download/pdf-download.js +27 -6
  94. package/dist/collection/components/public-notification/public-notification.js +189 -41
  95. package/dist/collection/components/refine-selection/refine-selection.js +59 -13
  96. package/dist/collection/components/solution-configuration/solution-configuration.js +48 -13
  97. package/dist/collection/components/solution-contents/solution-contents.js +13 -4
  98. package/dist/collection/components/solution-item/solution-item.js +36 -9
  99. package/dist/collection/components/solution-item-accordion/solution-item-accordion.css +0 -4
  100. package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +36 -8
  101. package/dist/collection/components/solution-item-details/solution-item-details.js +35 -16
  102. package/dist/collection/components/solution-item-icon/solution-item-icon.js +17 -5
  103. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +27 -6
  104. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +24 -6
  105. package/dist/collection/components/solution-resource-item/solution-resource-item.js +36 -8
  106. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +31 -7
  107. package/dist/collection/components/solution-template-data/solution-template-data.js +49 -8
  108. package/dist/collection/components/solution-variables/solution-variables.js +24 -6
  109. package/dist/collection/components/spatial-ref/spatial-ref.js +43 -8
  110. package/dist/collection/components/store-manager/store-manager.js +18 -5
  111. package/dist/collection/vendor/calcite-components/2BGOXXHV.js +4 -0
  112. package/dist/collection/vendor/calcite-components/2EBGD5ZQ.js +4 -0
  113. package/dist/collection/vendor/calcite-components/2HEEVITF.js +4 -0
  114. package/dist/collection/vendor/calcite-components/2QBRISAS.js +4 -0
  115. package/dist/collection/vendor/calcite-components/2SKIGCTJ.js +4 -0
  116. package/dist/collection/vendor/calcite-components/2ZPEMPPG.js +4 -0
  117. package/dist/collection/vendor/calcite-components/36DTW2EC.js +4 -0
  118. package/dist/collection/vendor/calcite-components/36E6CTNX.js +4 -0
  119. package/dist/collection/vendor/calcite-components/36HITQ3A.js +4 -0
  120. package/dist/collection/vendor/calcite-components/3FJPBCHI.js +4 -0
  121. package/dist/collection/vendor/calcite-components/3TINKPLC.js +4 -0
  122. package/dist/collection/vendor/calcite-components/3TXD2SW4.js +4 -0
  123. package/dist/collection/vendor/calcite-components/43C4CZJO.js +4 -0
  124. package/dist/collection/vendor/calcite-components/44DZGTF5.js +4 -0
  125. package/dist/collection/vendor/calcite-components/4IWRJJPT.js +4 -0
  126. package/dist/collection/vendor/calcite-components/4L6L5YMT.js +4 -0
  127. package/dist/collection/vendor/calcite-components/4NZHY4FQ.js +4 -0
  128. package/dist/collection/vendor/calcite-components/4OSJHPNQ.js +4 -0
  129. package/dist/collection/vendor/calcite-components/4ZNEZOAP.js +4 -0
  130. package/dist/collection/vendor/calcite-components/4ZTXEQT4.js +4 -0
  131. package/dist/collection/vendor/calcite-components/57U74PDQ.js +4 -0
  132. package/dist/collection/vendor/calcite-components/5BEKT6RT.js +4 -0
  133. package/dist/collection/vendor/calcite-components/5JAMHCQS.js +6 -0
  134. package/dist/collection/vendor/calcite-components/5UP5TQJN.js +4 -0
  135. package/dist/collection/vendor/calcite-components/5VK77MGP.js +4 -0
  136. package/dist/collection/vendor/calcite-components/5ZFIOILW.js +4 -0
  137. package/dist/collection/vendor/calcite-components/62G23PKY.js +4 -0
  138. package/dist/collection/vendor/calcite-components/6A464LBG.js +4 -0
  139. package/dist/collection/vendor/calcite-components/6KXUZBIZ.js +4 -0
  140. package/dist/collection/vendor/calcite-components/6OCJIDQZ.js +4 -0
  141. package/dist/collection/vendor/calcite-components/6PBZNCIY.js +4 -0
  142. package/dist/collection/vendor/calcite-components/6SREDGMN.js +4 -0
  143. package/dist/collection/vendor/calcite-components/73K4GSAV.js +4 -0
  144. package/dist/collection/vendor/calcite-components/757M5TSP.js +5 -0
  145. package/dist/collection/vendor/calcite-components/7F6EUEAO.js +4 -0
  146. package/dist/collection/vendor/calcite-components/7GOGBJPD.js +4 -0
  147. package/dist/collection/vendor/calcite-components/7PLD33LH.js +4 -0
  148. package/dist/collection/vendor/calcite-components/7TNMI44V.js +4 -0
  149. package/dist/collection/vendor/calcite-components/7VZFYJY5.js +4 -0
  150. package/dist/collection/vendor/calcite-components/7XZR3QPX.js +4 -0
  151. package/dist/collection/vendor/calcite-components/A3M4FM7N.js +4 -0
  152. package/dist/collection/vendor/calcite-components/A5WZ32T6.js +4 -0
  153. package/dist/collection/vendor/calcite-components/A6H6UTO7.js +4 -0
  154. package/dist/collection/vendor/calcite-components/AA6WUYLQ.js +4 -0
  155. package/dist/collection/vendor/calcite-components/ADRZSXZD.js +4 -0
  156. package/dist/collection/vendor/calcite-components/AKXBPGJ4.js +4 -0
  157. package/dist/collection/vendor/calcite-components/ALGCYGFE.js +4 -0
  158. package/dist/collection/vendor/calcite-components/B3YKMJGM.js +4 -0
  159. package/dist/collection/vendor/calcite-components/B6DZ4O5H.js +4 -0
  160. package/dist/collection/vendor/calcite-components/B747CT5Q.js +5 -0
  161. package/dist/collection/vendor/calcite-components/BAHKYVUM.js +4 -0
  162. package/dist/collection/vendor/calcite-components/BTHSKXWS.js +4 -0
  163. package/dist/collection/vendor/calcite-components/BWCV737I.js +4 -0
  164. package/dist/collection/vendor/calcite-components/BZV465ZG.js +4 -0
  165. package/dist/collection/vendor/calcite-components/C4A2PCZ4.js +4 -0
  166. package/dist/collection/vendor/calcite-components/C5MKAGNV.js +4 -0
  167. package/dist/collection/vendor/calcite-components/CK3TASCY.js +4 -0
  168. package/dist/collection/vendor/calcite-components/D2MINRBA.js +4 -0
  169. package/dist/collection/vendor/calcite-components/DDOM5RYZ.js +4 -0
  170. package/dist/collection/vendor/calcite-components/DJ4JGNMM.js +4 -0
  171. package/dist/collection/vendor/calcite-components/DL75ZJBG.js +4 -0
  172. package/dist/collection/vendor/calcite-components/DO4RITGJ.js +4 -0
  173. package/dist/collection/vendor/calcite-components/DSL2FNLA.js +4 -0
  174. package/dist/collection/vendor/calcite-components/DTEHSI7W.js +4 -0
  175. package/dist/collection/vendor/calcite-components/DUTPXINY.js +4 -0
  176. package/dist/collection/vendor/calcite-components/DY22I2GZ.js +4 -0
  177. package/dist/collection/vendor/calcite-components/DYN74HSB.js +4 -0
  178. package/dist/collection/vendor/calcite-components/E3CWAGXE.js +4 -0
  179. package/dist/collection/vendor/calcite-components/E3QBKOQQ.js +4 -0
  180. package/dist/collection/vendor/calcite-components/EBFZRB3A.js +4 -0
  181. package/dist/collection/vendor/calcite-components/ECGXAEDQ.js +4 -0
  182. package/dist/collection/vendor/calcite-components/EGC7NBN5.js +4 -0
  183. package/dist/collection/vendor/calcite-components/EILXZAAH.js +4 -0
  184. package/dist/collection/vendor/calcite-components/EISHHIYI.js +4 -0
  185. package/dist/collection/vendor/calcite-components/EN6Y5YN5.js +4 -0
  186. package/dist/collection/vendor/calcite-components/ERDL4UCD.js +4 -0
  187. package/dist/collection/vendor/calcite-components/EYPFBUR7.js +4 -0
  188. package/dist/collection/vendor/calcite-components/F6DYUGAJ.js +4 -0
  189. package/dist/collection/vendor/calcite-components/FAQ7B73H.js +4 -0
  190. package/dist/collection/vendor/calcite-components/FAULLEJY.js +4 -0
  191. package/dist/collection/vendor/calcite-components/FH7G4JPL.js +28 -0
  192. package/dist/collection/vendor/calcite-components/FHAH57CK.js +4 -0
  193. package/dist/collection/vendor/calcite-components/FHGZNYTT.js +4 -0
  194. package/dist/collection/vendor/calcite-components/FLXOWNYW.js +4 -0
  195. package/dist/collection/vendor/calcite-components/FVABUFOH.js +4 -0
  196. package/dist/collection/vendor/calcite-components/G2JF63JV.js +4 -0
  197. package/dist/collection/vendor/calcite-components/G63OZT6W.js +4 -0
  198. package/dist/collection/vendor/calcite-components/GESC7PRY.js +4 -0
  199. package/dist/collection/vendor/calcite-components/GIAH7CPN.js +4 -0
  200. package/dist/collection/vendor/calcite-components/GNZIY4A2.js +4 -0
  201. package/dist/collection/vendor/calcite-components/GPNKRGK6.js +4 -0
  202. package/dist/collection/vendor/calcite-components/GSUR5POR.js +4 -0
  203. package/dist/collection/vendor/calcite-components/GY22257T.js +4 -0
  204. package/dist/collection/vendor/calcite-components/H2PEX7CU.js +4 -0
  205. package/dist/collection/vendor/calcite-components/H2UMFA24.js +4 -0
  206. package/dist/collection/vendor/calcite-components/H7D6N2ZS.js +4 -0
  207. package/dist/collection/vendor/calcite-components/HALAA7KD.js +4 -0
  208. package/dist/collection/vendor/calcite-components/HHC7VSD3.js +4 -0
  209. package/dist/collection/vendor/calcite-components/HNGJKPNS.js +4 -0
  210. package/dist/collection/vendor/calcite-components/HQLH54Q4.js +4 -0
  211. package/dist/collection/vendor/calcite-components/HZLG5SUR.js +4 -0
  212. package/dist/collection/vendor/calcite-components/HZUKYZNP.js +4 -0
  213. package/dist/collection/vendor/calcite-components/IHBCPOXF.js +4 -0
  214. package/dist/collection/vendor/calcite-components/IIERNP6W.js +4 -0
  215. package/dist/collection/vendor/calcite-components/ILJVRQHM.js +4 -0
  216. package/dist/collection/vendor/calcite-components/IQTGVLQG.js +4 -0
  217. package/dist/collection/vendor/calcite-components/IRW4MFB4.js +4 -0
  218. package/dist/collection/vendor/calcite-components/J4KGM5S7.js +5 -0
  219. package/dist/collection/vendor/calcite-components/JCQBVDTR.js +4 -0
  220. package/dist/collection/vendor/calcite-components/JCZIZMKQ.js +4 -0
  221. package/dist/collection/vendor/calcite-components/JE5DGAJR.js +4 -0
  222. package/dist/collection/vendor/calcite-components/JL7OLH3T.js +4 -0
  223. package/dist/collection/vendor/calcite-components/JTWLPIB2.js +4 -0
  224. package/dist/collection/vendor/calcite-components/K53JENHF.js +4 -0
  225. package/dist/collection/vendor/calcite-components/K5ODBKLP.js +4 -0
  226. package/dist/collection/vendor/calcite-components/KC4IYMUL.js +4 -0
  227. package/dist/collection/vendor/calcite-components/KE7WVOAV.js +4 -0
  228. package/dist/collection/vendor/calcite-components/KGJ4OJVP.js +4 -0
  229. package/dist/collection/vendor/calcite-components/KI2CJ7JL.js +4 -0
  230. package/dist/collection/vendor/calcite-components/KNE7ABCR.js +4 -0
  231. package/dist/collection/vendor/calcite-components/KOFGYSC5.js +4 -0
  232. package/dist/collection/vendor/calcite-components/KOH6G4XV.js +4 -0
  233. package/dist/collection/vendor/calcite-components/KRO7CG2Q.js +4 -0
  234. package/dist/collection/vendor/calcite-components/KRZW2DWF.js +4 -0
  235. package/dist/collection/vendor/calcite-components/KSFXKRML.js +4 -0
  236. package/dist/collection/vendor/calcite-components/KTJZCONU.js +4 -0
  237. package/dist/collection/vendor/calcite-components/KXJRCIPX.js +4 -0
  238. package/dist/collection/vendor/calcite-components/L5DK3NJQ.js +4 -0
  239. package/dist/collection/vendor/calcite-components/LEAJPPH4.js +4 -0
  240. package/dist/collection/vendor/calcite-components/LKNGKUUT.js +4 -0
  241. package/dist/collection/vendor/calcite-components/LLYFYC3S.js +4 -0
  242. package/dist/collection/vendor/calcite-components/LLYVXFI4.js +4 -0
  243. package/dist/collection/vendor/calcite-components/LMPMNF4U.js +4 -0
  244. package/dist/collection/vendor/calcite-components/LNUDHR7T.js +4 -0
  245. package/dist/collection/vendor/calcite-components/LRXQU7WR.js +4 -0
  246. package/dist/collection/vendor/calcite-components/MDS5OEJ4.js +4 -0
  247. package/dist/collection/vendor/calcite-components/MEXPAXRW.js +4 -0
  248. package/dist/collection/vendor/calcite-components/MI3K57KT.js +4 -0
  249. package/dist/collection/vendor/calcite-components/MIOMFK6B.js +4 -0
  250. package/dist/collection/vendor/calcite-components/MJII73PP.js +4 -0
  251. package/dist/collection/vendor/calcite-components/MJIKLRLZ.js +4 -0
  252. package/dist/collection/vendor/calcite-components/MQSDYLGW.js +4 -0
  253. package/dist/collection/vendor/calcite-components/MWJLXQ5U.js +4 -0
  254. package/dist/collection/vendor/calcite-components/N2PDJVSE.js +4 -0
  255. package/dist/collection/vendor/calcite-components/NERFG233.js +4 -0
  256. package/dist/collection/vendor/calcite-components/NIUBMFXO.js +4 -0
  257. package/dist/collection/vendor/calcite-components/NK25FAZ6.js +4 -0
  258. package/dist/collection/vendor/calcite-components/NK4ED4IH.js +5 -0
  259. package/dist/collection/vendor/calcite-components/NOJTDKA6.js +4 -0
  260. package/dist/collection/vendor/calcite-components/NUY7EYNX.js +4 -0
  261. package/dist/collection/vendor/calcite-components/NWA7UYBI.js +4 -0
  262. package/dist/collection/vendor/calcite-components/NWNWCSUO.js +4 -0
  263. package/dist/collection/vendor/calcite-components/NYJ2KJKN.js +4 -0
  264. package/dist/collection/vendor/calcite-components/O6RKIBH2.js +4 -0
  265. package/dist/collection/vendor/calcite-components/OP2QHRHR.js +4 -0
  266. package/dist/collection/vendor/calcite-components/P5ZVYEQW.js +4 -0
  267. package/dist/collection/vendor/calcite-components/P6BFNJVU.js +4 -0
  268. package/dist/collection/vendor/calcite-components/P6VB45CQ.js +4 -0
  269. package/dist/collection/vendor/calcite-components/PNTWJB75.js +4 -0
  270. package/dist/collection/vendor/calcite-components/PTUZR2XV.js +4 -0
  271. package/dist/collection/vendor/calcite-components/QBNHVQWS.js +4 -0
  272. package/dist/collection/vendor/calcite-components/QD6WQCPN.js +4 -0
  273. package/dist/collection/vendor/calcite-components/QEBXFL3K.js +4 -0
  274. package/dist/collection/vendor/calcite-components/QNRLRRZZ.js +4 -0
  275. package/dist/collection/vendor/calcite-components/QTGKBVAW.js +4 -0
  276. package/dist/collection/vendor/calcite-components/QVLHSABE.js +4 -0
  277. package/dist/collection/vendor/calcite-components/RATZT6K7.js +4 -0
  278. package/dist/collection/vendor/calcite-components/RAWIO5CJ.js +4 -0
  279. package/dist/collection/vendor/calcite-components/RC4M4Q6U.js +4 -0
  280. package/dist/collection/vendor/calcite-components/ROTKUEC4.js +4 -0
  281. package/dist/collection/vendor/calcite-components/RRR3UCDP.js +4 -0
  282. package/dist/collection/vendor/calcite-components/RXJQR5VC.js +4 -0
  283. package/dist/collection/vendor/calcite-components/RYBJ6HQX.js +4 -0
  284. package/dist/collection/vendor/calcite-components/S2CHZ5WW.js +4 -0
  285. package/dist/collection/vendor/calcite-components/S5QILLXK.js +4 -0
  286. package/dist/collection/vendor/calcite-components/S5WUGWLI.js +4 -0
  287. package/dist/collection/vendor/calcite-components/SLILJOTA.js +4 -0
  288. package/dist/collection/vendor/calcite-components/SZIQPAWB.js +4 -0
  289. package/dist/collection/vendor/calcite-components/T2EFD7MK.js +4 -0
  290. package/dist/collection/vendor/calcite-components/TJ6U6Y2A.js +4 -0
  291. package/dist/collection/vendor/calcite-components/TRXE64SN.js +4 -0
  292. package/dist/collection/vendor/calcite-components/TVXUNVVJ.js +4 -0
  293. package/dist/collection/vendor/calcite-components/TZPOTIWO.js +4 -0
  294. package/dist/collection/vendor/calcite-components/UKOMGWYV.js +4 -0
  295. package/dist/collection/vendor/calcite-components/ULI2WHN6.js +4 -0
  296. package/dist/collection/vendor/calcite-components/UPO2OA2C.js +4 -0
  297. package/dist/collection/vendor/calcite-components/V7QQRUYR.js +4 -0
  298. package/dist/collection/vendor/calcite-components/VA6SEF3H.js +4 -0
  299. package/dist/collection/vendor/calcite-components/VCGYS6AC.js +4 -0
  300. package/dist/collection/vendor/calcite-components/VHIVTMYL.js +22 -0
  301. package/dist/collection/vendor/calcite-components/VIFJTMJE.js +4 -0
  302. package/dist/collection/vendor/calcite-components/VKUXTBMA.js +4 -0
  303. package/dist/collection/vendor/calcite-components/VYBRMYZA.js +4 -0
  304. package/dist/collection/vendor/calcite-components/VYSYUSUT.js +4 -0
  305. package/dist/collection/vendor/calcite-components/WHQERKO3.js +4 -0
  306. package/dist/collection/vendor/calcite-components/WLKZ6TCC.js +4 -0
  307. package/dist/collection/vendor/calcite-components/WRRV2226.js +4 -0
  308. package/dist/collection/vendor/calcite-components/X5OT5VWP.js +4 -0
  309. package/dist/collection/vendor/calcite-components/X7WD2RXW.js +4 -0
  310. package/dist/collection/vendor/calcite-components/XGGCYCLU.js +4 -0
  311. package/dist/collection/vendor/calcite-components/XJUGTTYP.js +4 -0
  312. package/dist/collection/vendor/calcite-components/XK6ESUWM.js +4 -0
  313. package/dist/collection/vendor/calcite-components/XODNGXTR.js +4 -0
  314. package/dist/collection/vendor/calcite-components/XP22SQKN.js +4 -0
  315. package/dist/collection/vendor/calcite-components/XUCLKKAR.js +4 -0
  316. package/dist/collection/vendor/calcite-components/XWO5T62V.js +4 -0
  317. package/dist/collection/vendor/calcite-components/XY7DR573.js +4 -0
  318. package/dist/collection/vendor/calcite-components/Y4WWNYQO.js +4 -0
  319. package/dist/collection/vendor/calcite-components/YF3UCGCR.js +4 -0
  320. package/dist/collection/vendor/calcite-components/YH3WSHXS.js +4 -0
  321. package/dist/collection/vendor/calcite-components/YOI4NTGG.js +4 -0
  322. package/dist/collection/vendor/calcite-components/YP2GEKXK.js +4 -0
  323. package/dist/collection/vendor/calcite-components/YQDF2N5J.js +4 -0
  324. package/dist/collection/vendor/calcite-components/YRCGG4BE.js +4 -0
  325. package/dist/collection/vendor/calcite-components/YTSHEMU3.js +4 -0
  326. package/dist/collection/vendor/calcite-components/YUQIXR5A.js +4 -0
  327. package/dist/collection/vendor/calcite-components/ZAY3SU5H.js +4 -0
  328. package/dist/collection/vendor/calcite-components/ZFGK5MNZ.js +4 -0
  329. package/dist/collection/vendor/calcite-components/ZITAONDY.js +4 -0
  330. package/dist/collection/vendor/calcite-components/ZLW5U3G6.js +4 -0
  331. package/dist/collection/vendor/calcite-components/ZNMXPSOQ.js +4 -0
  332. package/dist/collection/vendor/calcite-components/ZSLV2NNR.js +4 -0
  333. package/dist/collection/vendor/calcite-components/assets/icon/crosshair16.json +1 -0
  334. package/dist/collection/vendor/calcite-components/assets/icon/crosshair24.json +1 -0
  335. package/dist/collection/vendor/calcite-components/assets/icon/crosshair32.json +1 -0
  336. package/dist/collection/vendor/calcite-components/assets/icon/utilityNetworkLayer16.json +1 -0
  337. package/dist/collection/vendor/calcite-components/assets/icon/utilityNetworkLayer24.json +1 -0
  338. package/dist/collection/vendor/calcite-components/assets/icon/utilityNetworkLayer32.json +1 -0
  339. package/dist/collection/vendor/calcite-components/calcite.esm.js +4 -6
  340. package/dist/components/basemap-gallery2.js +19 -3
  341. package/dist/components/buffer-tools2.js +52 -11
  342. package/dist/components/card-manager2.js +71 -15
  343. package/dist/components/consent-manager.js +52 -10
  344. package/dist/components/create-feature2.js +68 -14
  345. package/dist/components/create-related-feature2.js +44 -8
  346. package/dist/components/crowdsource-manager.js +245 -56
  347. package/dist/components/crowdsource-reporter.js +211 -50
  348. package/dist/components/delete-button2.js +55 -11
  349. package/dist/components/delete-dialog2.js +35 -6
  350. package/dist/components/edit-card2.js +43 -8
  351. package/dist/components/feature-details2.js +70 -15
  352. package/dist/components/feature-list2.js +91 -20
  353. package/dist/components/floor-filter2.js +19 -3
  354. package/dist/components/index.es.js +6 -5
  355. package/dist/components/info-card2.js +77 -16
  356. package/dist/components/instant-apps-keyboard-shortcuts.js +17 -17
  357. package/dist/components/instant-apps-language-switcher.js +815 -9
  358. package/dist/components/instant-apps-language-translator2.js +1 -1
  359. package/dist/components/json-editor2.js +28 -5
  360. package/dist/components/layer-list2.js +50 -10
  361. package/dist/components/layer-table2.js +171 -39
  362. package/dist/components/loadModules2.js +1 -1
  363. package/dist/components/map-card2.js +182 -41
  364. package/dist/components/map-draw-tools2.js +66 -13
  365. package/dist/components/map-fullscreen2.js +18 -2
  366. package/dist/components/map-layer-picker2.js +108 -23
  367. package/dist/components/map-legend2.js +15 -2
  368. package/dist/components/map-picker2.js +35 -6
  369. package/dist/components/map-search2.js +35 -6
  370. package/dist/components/map-select-tools2.js +138 -30
  371. package/dist/components/map-tools2.js +115 -25
  372. package/dist/components/pci-calculator.js +14 -1
  373. package/dist/components/pdf-download2.js +27 -4
  374. package/dist/components/public-notification.js +189 -39
  375. package/dist/components/refine-selection2.js +59 -11
  376. package/dist/components/solution-configuration.js +48 -13
  377. package/dist/components/solution-contents2.js +13 -2
  378. package/dist/components/solution-item-accordion.js +37 -7
  379. package/dist/components/solution-item-details2.js +35 -14
  380. package/dist/components/solution-item-icon2.js +17 -3
  381. package/dist/components/solution-item-sharing2.js +27 -4
  382. package/dist/components/solution-item2.js +36 -7
  383. package/dist/components/solution-organization-variables2.js +24 -4
  384. package/dist/components/solution-resource-item2.js +36 -6
  385. package/dist/components/solution-spatial-ref2.js +31 -5
  386. package/dist/components/solution-template-data2.js +49 -8
  387. package/dist/components/solution-variables2.js +24 -4
  388. package/dist/components/spatial-ref.js +43 -8
  389. package/dist/components/store-manager.js +18 -3
  390. package/dist/esm/basemap-gallery_7.entry.js +258 -49
  391. package/dist/esm/buffer-tools_2.entry.js +122 -28
  392. package/dist/esm/card-manager_3.entry.js +427 -98
  393. package/dist/esm/consent-manager.entry.js +54 -12
  394. package/dist/esm/create-feature_4.entry.js +247 -53
  395. package/dist/esm/create-related-feature_3.entry.js +166 -35
  396. package/dist/esm/crowdsource-manager.entry.js +247 -58
  397. package/dist/esm/crowdsource-reporter.entry.js +213 -52
  398. package/dist/esm/deduct-calculator.entry.js +1 -1
  399. package/dist/esm/delete-dialog.entry.js +37 -8
  400. package/dist/esm/downloadUtils-3f4d34a4.js +3217 -0
  401. package/dist/esm/effects-38bc1195.js +81 -0
  402. package/dist/esm/feature-list.entry.js +95 -24
  403. package/dist/esm/helpers-5df33e11.js +841 -0
  404. package/dist/esm/index-000c7a7c.js +1870 -0
  405. package/dist/esm/index-f7533fcc.js +199 -0
  406. package/dist/esm/index.es-87662946.js +11108 -0
  407. package/dist/esm/instant-apps-app-guide.entry.js +3 -3
  408. package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +5 -5
  409. package/dist/esm/instant-apps-control-panel.entry.js +2 -2
  410. package/dist/esm/instant-apps-create.entry.js +3 -3
  411. package/dist/esm/instant-apps-export-views.entry.js +3 -3
  412. package/dist/esm/instant-apps-export.entry.js +3 -3
  413. package/dist/esm/instant-apps-filter-list_2.entry.js +3 -3
  414. package/dist/esm/instant-apps-header.entry.js +1 -1
  415. package/dist/esm/instant-apps-interactive-legend-classic.entry.js +5 -5
  416. package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +5 -5
  417. package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +5 -5
  418. package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +5 -5
  419. package/dist/esm/instant-apps-interactive-legend.entry.js +6 -6
  420. package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +20 -20
  421. package/dist/esm/instant-apps-landing-page.entry.js +1 -1
  422. package/dist/esm/instant-apps-language-switcher.entry.js +820 -14
  423. package/dist/esm/instant-apps-language-translator.entry.js +813 -6
  424. package/dist/esm/instant-apps-measurement-tool.entry.js +2 -2
  425. package/dist/esm/instant-apps-measurement.entry.js +3 -3
  426. package/dist/esm/instant-apps-popover.entry.js +3 -3
  427. package/dist/esm/instant-apps-popovers.entry.js +1 -1
  428. package/dist/esm/instant-apps-scoreboard.entry.js +3 -3
  429. package/dist/esm/instant-apps-sign-in.entry.js +3 -3
  430. package/dist/esm/instant-apps-splash.entry.js +3 -3
  431. package/dist/esm/instant-apps-time-filter.entry.js +5 -5
  432. package/dist/esm/json-editor_7.entry.js +227 -49
  433. package/dist/esm/languageSwitcher-49bad3f4.js +49 -0
  434. package/dist/esm/loadModules-947ccfd4.js +21 -0
  435. package/dist/esm/loader.js +2 -2
  436. package/dist/esm/locale-857bb2e4.js +938 -0
  437. package/dist/esm/locale-fd7f8659.js +155 -0
  438. package/dist/esm/map-layer-picker.entry.js +112 -27
  439. package/dist/esm/map-select-tools_3.entry.js +229 -50
  440. package/dist/esm/pci-calculator.entry.js +15 -2
  441. package/dist/esm/popupUtils-43fafc2f.js +119 -0
  442. package/dist/esm/public-notification.entry.js +194 -44
  443. package/dist/esm/publicNotificationStore-e5306ea6.js +45 -0
  444. package/dist/esm/solution-configuration.entry.js +52 -17
  445. package/dist/esm/solution-contents_3.entry.js +84 -18
  446. package/dist/esm/solution-item-accordion.entry.js +39 -9
  447. package/dist/esm/solution-item-icon.entry.js +18 -4
  448. package/dist/esm/solution-store-26e3d8c6.js +1103 -0
  449. package/dist/esm/solutions-components.js +3 -3
  450. package/dist/esm/spatial-ref.entry.js +45 -10
  451. package/dist/esm/store-manager.entry.js +21 -6
  452. package/dist/esm/utils-ebba7c2e.js +142 -0
  453. package/dist/solutions-components/p-056d4371.entry.js +6 -0
  454. package/dist/solutions-components/p-0592d206.entry.js +6 -0
  455. package/dist/solutions-components/p-075979ef.js +36 -0
  456. package/dist/solutions-components/p-08ad0b7a.js +6 -0
  457. package/dist/solutions-components/p-0b974e3c.entry.js +6 -0
  458. package/dist/solutions-components/p-0db26b05.entry.js +6 -0
  459. package/dist/solutions-components/p-1309ac58.js +129 -0
  460. package/dist/solutions-components/p-174fa218.js +6 -0
  461. package/dist/solutions-components/p-193034c9.entry.js +6 -0
  462. package/dist/solutions-components/p-1a1791ae.entry.js +21 -0
  463. package/dist/solutions-components/p-1b6461c5.entry.js +6 -0
  464. package/dist/solutions-components/p-1e57a3bd.entry.js +6 -0
  465. package/dist/solutions-components/p-21b280a8.js +21 -0
  466. package/dist/solutions-components/p-2672ee69.entry.js +6 -0
  467. package/dist/solutions-components/p-2937baee.js +6 -0
  468. package/dist/solutions-components/p-3c1c2ca5.entry.js +11 -0
  469. package/dist/solutions-components/p-3d7eeb2d.js +488 -0
  470. package/dist/solutions-components/p-3de6e5d8.entry.js +6 -0
  471. package/dist/solutions-components/p-40578f4b.entry.js +6 -0
  472. package/dist/solutions-components/p-48fcfd06.entry.js +6 -0
  473. package/dist/solutions-components/p-4db43d2c.entry.js +6 -0
  474. package/dist/solutions-components/p-4e34c101.entry.js +6 -0
  475. package/dist/solutions-components/p-4f683af6.entry.js +6 -0
  476. package/dist/solutions-components/p-529325da.entry.js +6 -0
  477. package/dist/solutions-components/p-5c05f28a.entry.js +6 -0
  478. package/dist/solutions-components/p-5dfab24b.entry.js +6 -0
  479. package/dist/solutions-components/p-60bdf635.entry.js +6 -0
  480. package/dist/solutions-components/p-73ba31c4.entry.js +6 -0
  481. package/dist/solutions-components/p-7c958237.entry.js +6 -0
  482. package/dist/solutions-components/p-8169d4af.entry.js +6 -0
  483. package/dist/solutions-components/p-89cae891.entry.js +6 -0
  484. package/dist/solutions-components/p-89fbc318.js +6 -0
  485. package/dist/solutions-components/p-8c40bdec.js +7 -0
  486. package/dist/solutions-components/p-a5069229.entry.js +6 -0
  487. package/dist/solutions-components/p-a5073249.entry.js +6 -0
  488. package/dist/solutions-components/p-a5c51211.entry.js +6 -0
  489. package/dist/solutions-components/p-a940dc0c.entry.js +6 -0
  490. package/dist/solutions-components/p-b6422554.entry.js +6 -0
  491. package/dist/solutions-components/p-b67ff61f.entry.js +6 -0
  492. package/dist/solutions-components/p-b711a822.entry.js +6 -0
  493. package/dist/solutions-components/p-bf007c87.js +21 -0
  494. package/dist/solutions-components/p-c19c273f.entry.js +6 -0
  495. package/dist/solutions-components/p-c223bd87.js +6 -0
  496. package/dist/solutions-components/p-c25ebd5a.entry.js +6 -0
  497. package/dist/solutions-components/p-c63ce830.entry.js +6 -0
  498. package/dist/solutions-components/p-c691c1d1.entry.js +6 -0
  499. package/dist/solutions-components/p-c9e111d7.entry.js +6 -0
  500. package/dist/solutions-components/p-cc3e637d.entry.js +6 -0
  501. package/dist/solutions-components/p-d1d8e331.entry.js +6 -0
  502. package/dist/solutions-components/p-dc188d13.js +61 -0
  503. package/dist/solutions-components/p-ded33011.entry.js +6 -0
  504. package/dist/solutions-components/p-e133f9b2.entry.js +6 -0
  505. package/dist/solutions-components/p-e16bb956.entry.js +6 -0
  506. package/dist/solutions-components/p-e6158877.entry.js +6 -0
  507. package/dist/solutions-components/p-ea19f91b.js +6 -0
  508. package/dist/solutions-components/p-f1faec42.entry.js +6 -0
  509. package/dist/solutions-components/p-f24d6b3e.entry.js +6 -0
  510. package/dist/solutions-components/p-f71dc88a.entry.js +21 -0
  511. package/dist/solutions-components/p-f7c10b7f.entry.js +6 -0
  512. package/dist/solutions-components/p-fa639501.js +6 -0
  513. package/dist/solutions-components/p-fb4dfcbe.entry.js +6 -0
  514. package/dist/solutions-components/solutions-components.esm.js +1 -1
  515. package/dist/solutions-components/vendor/calcite-components/2BGOXXHV.js +4 -0
  516. package/dist/solutions-components/vendor/calcite-components/2EBGD5ZQ.js +4 -0
  517. package/dist/solutions-components/vendor/calcite-components/2HEEVITF.js +4 -0
  518. package/dist/solutions-components/vendor/calcite-components/2QBRISAS.js +4 -0
  519. package/dist/solutions-components/vendor/calcite-components/2SKIGCTJ.js +4 -0
  520. package/dist/solutions-components/vendor/calcite-components/2ZPEMPPG.js +4 -0
  521. package/dist/solutions-components/vendor/calcite-components/36DTW2EC.js +4 -0
  522. package/dist/solutions-components/vendor/calcite-components/36E6CTNX.js +4 -0
  523. package/dist/solutions-components/vendor/calcite-components/36HITQ3A.js +4 -0
  524. package/dist/solutions-components/vendor/calcite-components/3FJPBCHI.js +4 -0
  525. package/dist/solutions-components/vendor/calcite-components/3TINKPLC.js +4 -0
  526. package/dist/solutions-components/vendor/calcite-components/3TXD2SW4.js +4 -0
  527. package/dist/solutions-components/vendor/calcite-components/43C4CZJO.js +4 -0
  528. package/dist/solutions-components/vendor/calcite-components/44DZGTF5.js +4 -0
  529. package/dist/solutions-components/vendor/calcite-components/4IWRJJPT.js +4 -0
  530. package/dist/solutions-components/vendor/calcite-components/4L6L5YMT.js +4 -0
  531. package/dist/solutions-components/vendor/calcite-components/4NZHY4FQ.js +4 -0
  532. package/dist/solutions-components/vendor/calcite-components/4OSJHPNQ.js +4 -0
  533. package/dist/solutions-components/vendor/calcite-components/4ZNEZOAP.js +4 -0
  534. package/dist/solutions-components/vendor/calcite-components/4ZTXEQT4.js +4 -0
  535. package/dist/solutions-components/vendor/calcite-components/57U74PDQ.js +4 -0
  536. package/dist/solutions-components/vendor/calcite-components/5BEKT6RT.js +4 -0
  537. package/dist/solutions-components/vendor/calcite-components/5JAMHCQS.js +6 -0
  538. package/dist/solutions-components/vendor/calcite-components/5UP5TQJN.js +4 -0
  539. package/dist/solutions-components/vendor/calcite-components/5VK77MGP.js +4 -0
  540. package/dist/solutions-components/vendor/calcite-components/5ZFIOILW.js +4 -0
  541. package/dist/solutions-components/vendor/calcite-components/62G23PKY.js +4 -0
  542. package/dist/solutions-components/vendor/calcite-components/6A464LBG.js +4 -0
  543. package/dist/solutions-components/vendor/calcite-components/6KXUZBIZ.js +4 -0
  544. package/dist/solutions-components/vendor/calcite-components/6OCJIDQZ.js +4 -0
  545. package/dist/solutions-components/vendor/calcite-components/6PBZNCIY.js +4 -0
  546. package/dist/solutions-components/vendor/calcite-components/6SREDGMN.js +4 -0
  547. package/dist/solutions-components/vendor/calcite-components/73K4GSAV.js +4 -0
  548. package/dist/solutions-components/vendor/calcite-components/757M5TSP.js +5 -0
  549. package/dist/solutions-components/vendor/calcite-components/7F6EUEAO.js +4 -0
  550. package/dist/solutions-components/vendor/calcite-components/7GOGBJPD.js +4 -0
  551. package/dist/solutions-components/vendor/calcite-components/7PLD33LH.js +4 -0
  552. package/dist/solutions-components/vendor/calcite-components/7TNMI44V.js +4 -0
  553. package/dist/solutions-components/vendor/calcite-components/7VZFYJY5.js +4 -0
  554. package/dist/solutions-components/vendor/calcite-components/7XZR3QPX.js +4 -0
  555. package/dist/solutions-components/vendor/calcite-components/A3M4FM7N.js +4 -0
  556. package/dist/solutions-components/vendor/calcite-components/A5WZ32T6.js +4 -0
  557. package/dist/solutions-components/vendor/calcite-components/A6H6UTO7.js +4 -0
  558. package/dist/solutions-components/vendor/calcite-components/AA6WUYLQ.js +4 -0
  559. package/dist/solutions-components/vendor/calcite-components/ADRZSXZD.js +4 -0
  560. package/dist/solutions-components/vendor/calcite-components/AKXBPGJ4.js +4 -0
  561. package/dist/solutions-components/vendor/calcite-components/ALGCYGFE.js +4 -0
  562. package/dist/solutions-components/vendor/calcite-components/B3YKMJGM.js +4 -0
  563. package/dist/solutions-components/vendor/calcite-components/B6DZ4O5H.js +4 -0
  564. package/dist/solutions-components/vendor/calcite-components/B747CT5Q.js +5 -0
  565. package/dist/solutions-components/vendor/calcite-components/BAHKYVUM.js +4 -0
  566. package/dist/solutions-components/vendor/calcite-components/BTHSKXWS.js +4 -0
  567. package/dist/solutions-components/vendor/calcite-components/BWCV737I.js +4 -0
  568. package/dist/solutions-components/vendor/calcite-components/BZV465ZG.js +4 -0
  569. package/dist/solutions-components/vendor/calcite-components/C4A2PCZ4.js +4 -0
  570. package/dist/solutions-components/vendor/calcite-components/C5MKAGNV.js +4 -0
  571. package/dist/solutions-components/vendor/calcite-components/CK3TASCY.js +4 -0
  572. package/dist/solutions-components/vendor/calcite-components/D2MINRBA.js +4 -0
  573. package/dist/solutions-components/vendor/calcite-components/DDOM5RYZ.js +4 -0
  574. package/dist/solutions-components/vendor/calcite-components/DJ4JGNMM.js +4 -0
  575. package/dist/solutions-components/vendor/calcite-components/DL75ZJBG.js +4 -0
  576. package/dist/solutions-components/vendor/calcite-components/DO4RITGJ.js +4 -0
  577. package/dist/solutions-components/vendor/calcite-components/DSL2FNLA.js +4 -0
  578. package/dist/solutions-components/vendor/calcite-components/DTEHSI7W.js +4 -0
  579. package/dist/solutions-components/vendor/calcite-components/DUTPXINY.js +4 -0
  580. package/dist/solutions-components/vendor/calcite-components/DY22I2GZ.js +4 -0
  581. package/dist/solutions-components/vendor/calcite-components/DYN74HSB.js +4 -0
  582. package/dist/solutions-components/vendor/calcite-components/E3CWAGXE.js +4 -0
  583. package/dist/solutions-components/vendor/calcite-components/E3QBKOQQ.js +4 -0
  584. package/dist/solutions-components/vendor/calcite-components/EBFZRB3A.js +4 -0
  585. package/dist/solutions-components/vendor/calcite-components/ECGXAEDQ.js +4 -0
  586. package/dist/solutions-components/vendor/calcite-components/EGC7NBN5.js +4 -0
  587. package/dist/solutions-components/vendor/calcite-components/EILXZAAH.js +4 -0
  588. package/dist/solutions-components/vendor/calcite-components/EISHHIYI.js +4 -0
  589. package/dist/solutions-components/vendor/calcite-components/EN6Y5YN5.js +4 -0
  590. package/dist/solutions-components/vendor/calcite-components/ERDL4UCD.js +4 -0
  591. package/dist/solutions-components/vendor/calcite-components/EYPFBUR7.js +4 -0
  592. package/dist/solutions-components/vendor/calcite-components/F6DYUGAJ.js +4 -0
  593. package/dist/solutions-components/vendor/calcite-components/FAQ7B73H.js +4 -0
  594. package/dist/solutions-components/vendor/calcite-components/FAULLEJY.js +4 -0
  595. package/dist/solutions-components/vendor/calcite-components/FH7G4JPL.js +28 -0
  596. package/dist/solutions-components/vendor/calcite-components/FHAH57CK.js +4 -0
  597. package/dist/solutions-components/vendor/calcite-components/FHGZNYTT.js +4 -0
  598. package/dist/solutions-components/vendor/calcite-components/FLXOWNYW.js +4 -0
  599. package/dist/solutions-components/vendor/calcite-components/FVABUFOH.js +4 -0
  600. package/dist/solutions-components/vendor/calcite-components/G2JF63JV.js +4 -0
  601. package/dist/solutions-components/vendor/calcite-components/G63OZT6W.js +4 -0
  602. package/dist/solutions-components/vendor/calcite-components/GESC7PRY.js +4 -0
  603. package/dist/solutions-components/vendor/calcite-components/GIAH7CPN.js +4 -0
  604. package/dist/solutions-components/vendor/calcite-components/GNZIY4A2.js +4 -0
  605. package/dist/solutions-components/vendor/calcite-components/GPNKRGK6.js +4 -0
  606. package/dist/solutions-components/vendor/calcite-components/GSUR5POR.js +4 -0
  607. package/dist/solutions-components/vendor/calcite-components/GY22257T.js +4 -0
  608. package/dist/solutions-components/vendor/calcite-components/H2PEX7CU.js +4 -0
  609. package/dist/solutions-components/vendor/calcite-components/H2UMFA24.js +4 -0
  610. package/dist/solutions-components/vendor/calcite-components/H7D6N2ZS.js +4 -0
  611. package/dist/solutions-components/vendor/calcite-components/HALAA7KD.js +4 -0
  612. package/dist/solutions-components/vendor/calcite-components/HHC7VSD3.js +4 -0
  613. package/dist/solutions-components/vendor/calcite-components/HNGJKPNS.js +4 -0
  614. package/dist/solutions-components/vendor/calcite-components/HQLH54Q4.js +4 -0
  615. package/dist/solutions-components/vendor/calcite-components/HZLG5SUR.js +4 -0
  616. package/dist/solutions-components/vendor/calcite-components/HZUKYZNP.js +4 -0
  617. package/dist/solutions-components/vendor/calcite-components/IHBCPOXF.js +4 -0
  618. package/dist/solutions-components/vendor/calcite-components/IIERNP6W.js +4 -0
  619. package/dist/solutions-components/vendor/calcite-components/ILJVRQHM.js +4 -0
  620. package/dist/solutions-components/vendor/calcite-components/IQTGVLQG.js +4 -0
  621. package/dist/solutions-components/vendor/calcite-components/IRW4MFB4.js +4 -0
  622. package/dist/solutions-components/vendor/calcite-components/J4KGM5S7.js +5 -0
  623. package/dist/solutions-components/vendor/calcite-components/JCQBVDTR.js +4 -0
  624. package/dist/solutions-components/vendor/calcite-components/JCZIZMKQ.js +4 -0
  625. package/dist/solutions-components/vendor/calcite-components/JE5DGAJR.js +4 -0
  626. package/dist/solutions-components/vendor/calcite-components/JL7OLH3T.js +4 -0
  627. package/dist/solutions-components/vendor/calcite-components/JTWLPIB2.js +4 -0
  628. package/dist/solutions-components/vendor/calcite-components/K53JENHF.js +4 -0
  629. package/dist/solutions-components/vendor/calcite-components/K5ODBKLP.js +4 -0
  630. package/dist/solutions-components/vendor/calcite-components/KC4IYMUL.js +4 -0
  631. package/dist/solutions-components/vendor/calcite-components/KE7WVOAV.js +4 -0
  632. package/dist/solutions-components/vendor/calcite-components/KGJ4OJVP.js +4 -0
  633. package/dist/solutions-components/vendor/calcite-components/KI2CJ7JL.js +4 -0
  634. package/dist/solutions-components/vendor/calcite-components/KNE7ABCR.js +4 -0
  635. package/dist/solutions-components/vendor/calcite-components/KOFGYSC5.js +4 -0
  636. package/dist/solutions-components/vendor/calcite-components/KOH6G4XV.js +4 -0
  637. package/dist/solutions-components/vendor/calcite-components/KRO7CG2Q.js +4 -0
  638. package/dist/solutions-components/vendor/calcite-components/KRZW2DWF.js +4 -0
  639. package/dist/solutions-components/vendor/calcite-components/KSFXKRML.js +4 -0
  640. package/dist/solutions-components/vendor/calcite-components/KTJZCONU.js +4 -0
  641. package/dist/solutions-components/vendor/calcite-components/KXJRCIPX.js +4 -0
  642. package/dist/solutions-components/vendor/calcite-components/L5DK3NJQ.js +4 -0
  643. package/dist/solutions-components/vendor/calcite-components/LEAJPPH4.js +4 -0
  644. package/dist/solutions-components/vendor/calcite-components/LKNGKUUT.js +4 -0
  645. package/dist/solutions-components/vendor/calcite-components/LLYFYC3S.js +4 -0
  646. package/dist/solutions-components/vendor/calcite-components/LLYVXFI4.js +4 -0
  647. package/dist/solutions-components/vendor/calcite-components/LMPMNF4U.js +4 -0
  648. package/dist/solutions-components/vendor/calcite-components/LNUDHR7T.js +4 -0
  649. package/dist/solutions-components/vendor/calcite-components/LRXQU7WR.js +4 -0
  650. package/dist/solutions-components/vendor/calcite-components/MDS5OEJ4.js +4 -0
  651. package/dist/solutions-components/vendor/calcite-components/MEXPAXRW.js +4 -0
  652. package/dist/solutions-components/vendor/calcite-components/MI3K57KT.js +4 -0
  653. package/dist/solutions-components/vendor/calcite-components/MIOMFK6B.js +4 -0
  654. package/dist/solutions-components/vendor/calcite-components/MJII73PP.js +4 -0
  655. package/dist/solutions-components/vendor/calcite-components/MJIKLRLZ.js +4 -0
  656. package/dist/solutions-components/vendor/calcite-components/MQSDYLGW.js +4 -0
  657. package/dist/solutions-components/vendor/calcite-components/MWJLXQ5U.js +4 -0
  658. package/dist/solutions-components/vendor/calcite-components/N2PDJVSE.js +4 -0
  659. package/dist/solutions-components/vendor/calcite-components/NERFG233.js +4 -0
  660. package/dist/solutions-components/vendor/calcite-components/NIUBMFXO.js +4 -0
  661. package/dist/solutions-components/vendor/calcite-components/NK25FAZ6.js +4 -0
  662. package/dist/solutions-components/vendor/calcite-components/NK4ED4IH.js +5 -0
  663. package/dist/solutions-components/vendor/calcite-components/NOJTDKA6.js +4 -0
  664. package/dist/solutions-components/vendor/calcite-components/NUY7EYNX.js +4 -0
  665. package/dist/solutions-components/vendor/calcite-components/NWA7UYBI.js +4 -0
  666. package/dist/solutions-components/vendor/calcite-components/NWNWCSUO.js +4 -0
  667. package/dist/solutions-components/vendor/calcite-components/NYJ2KJKN.js +4 -0
  668. package/dist/solutions-components/vendor/calcite-components/O6RKIBH2.js +4 -0
  669. package/dist/solutions-components/vendor/calcite-components/OP2QHRHR.js +4 -0
  670. package/dist/solutions-components/vendor/calcite-components/P5ZVYEQW.js +4 -0
  671. package/dist/solutions-components/vendor/calcite-components/P6BFNJVU.js +4 -0
  672. package/dist/solutions-components/vendor/calcite-components/P6VB45CQ.js +4 -0
  673. package/dist/solutions-components/vendor/calcite-components/PNTWJB75.js +4 -0
  674. package/dist/solutions-components/vendor/calcite-components/PTUZR2XV.js +4 -0
  675. package/dist/solutions-components/vendor/calcite-components/QBNHVQWS.js +4 -0
  676. package/dist/solutions-components/vendor/calcite-components/QD6WQCPN.js +4 -0
  677. package/dist/solutions-components/vendor/calcite-components/QEBXFL3K.js +4 -0
  678. package/dist/solutions-components/vendor/calcite-components/QNRLRRZZ.js +4 -0
  679. package/dist/solutions-components/vendor/calcite-components/QTGKBVAW.js +4 -0
  680. package/dist/solutions-components/vendor/calcite-components/QVLHSABE.js +4 -0
  681. package/dist/solutions-components/vendor/calcite-components/RATZT6K7.js +4 -0
  682. package/dist/solutions-components/vendor/calcite-components/RAWIO5CJ.js +4 -0
  683. package/dist/solutions-components/vendor/calcite-components/RC4M4Q6U.js +4 -0
  684. package/dist/solutions-components/vendor/calcite-components/ROTKUEC4.js +4 -0
  685. package/dist/solutions-components/vendor/calcite-components/RRR3UCDP.js +4 -0
  686. package/dist/solutions-components/vendor/calcite-components/RXJQR5VC.js +4 -0
  687. package/dist/solutions-components/vendor/calcite-components/RYBJ6HQX.js +4 -0
  688. package/dist/solutions-components/vendor/calcite-components/S2CHZ5WW.js +4 -0
  689. package/dist/solutions-components/vendor/calcite-components/S5QILLXK.js +4 -0
  690. package/dist/solutions-components/vendor/calcite-components/S5WUGWLI.js +4 -0
  691. package/dist/solutions-components/vendor/calcite-components/SLILJOTA.js +4 -0
  692. package/dist/solutions-components/vendor/calcite-components/SZIQPAWB.js +4 -0
  693. package/dist/solutions-components/vendor/calcite-components/T2EFD7MK.js +4 -0
  694. package/dist/solutions-components/vendor/calcite-components/TJ6U6Y2A.js +4 -0
  695. package/dist/solutions-components/vendor/calcite-components/TRXE64SN.js +4 -0
  696. package/dist/solutions-components/vendor/calcite-components/TVXUNVVJ.js +4 -0
  697. package/dist/solutions-components/vendor/calcite-components/TZPOTIWO.js +4 -0
  698. package/dist/solutions-components/vendor/calcite-components/UKOMGWYV.js +4 -0
  699. package/dist/solutions-components/vendor/calcite-components/ULI2WHN6.js +4 -0
  700. package/dist/solutions-components/vendor/calcite-components/UPO2OA2C.js +4 -0
  701. package/dist/solutions-components/vendor/calcite-components/V7QQRUYR.js +4 -0
  702. package/dist/solutions-components/vendor/calcite-components/VA6SEF3H.js +4 -0
  703. package/dist/solutions-components/vendor/calcite-components/VCGYS6AC.js +4 -0
  704. package/dist/solutions-components/vendor/calcite-components/VHIVTMYL.js +22 -0
  705. package/dist/solutions-components/vendor/calcite-components/VIFJTMJE.js +4 -0
  706. package/dist/solutions-components/vendor/calcite-components/VKUXTBMA.js +4 -0
  707. package/dist/solutions-components/vendor/calcite-components/VYBRMYZA.js +4 -0
  708. package/dist/solutions-components/vendor/calcite-components/VYSYUSUT.js +4 -0
  709. package/dist/solutions-components/vendor/calcite-components/WHQERKO3.js +4 -0
  710. package/dist/solutions-components/vendor/calcite-components/WLKZ6TCC.js +4 -0
  711. package/dist/solutions-components/vendor/calcite-components/WRRV2226.js +4 -0
  712. package/dist/solutions-components/vendor/calcite-components/X5OT5VWP.js +4 -0
  713. package/dist/solutions-components/vendor/calcite-components/X7WD2RXW.js +4 -0
  714. package/dist/solutions-components/vendor/calcite-components/XGGCYCLU.js +4 -0
  715. package/dist/solutions-components/vendor/calcite-components/XJUGTTYP.js +4 -0
  716. package/dist/solutions-components/vendor/calcite-components/XK6ESUWM.js +4 -0
  717. package/dist/solutions-components/vendor/calcite-components/XODNGXTR.js +4 -0
  718. package/dist/solutions-components/vendor/calcite-components/XP22SQKN.js +4 -0
  719. package/dist/solutions-components/vendor/calcite-components/XUCLKKAR.js +4 -0
  720. package/dist/solutions-components/vendor/calcite-components/XWO5T62V.js +4 -0
  721. package/dist/solutions-components/vendor/calcite-components/XY7DR573.js +4 -0
  722. package/dist/solutions-components/vendor/calcite-components/Y4WWNYQO.js +4 -0
  723. package/dist/solutions-components/vendor/calcite-components/YF3UCGCR.js +4 -0
  724. package/dist/solutions-components/vendor/calcite-components/YH3WSHXS.js +4 -0
  725. package/dist/solutions-components/vendor/calcite-components/YOI4NTGG.js +4 -0
  726. package/dist/solutions-components/vendor/calcite-components/YP2GEKXK.js +4 -0
  727. package/dist/solutions-components/vendor/calcite-components/YQDF2N5J.js +4 -0
  728. package/dist/solutions-components/vendor/calcite-components/YRCGG4BE.js +4 -0
  729. package/dist/solutions-components/vendor/calcite-components/YTSHEMU3.js +4 -0
  730. package/dist/solutions-components/vendor/calcite-components/YUQIXR5A.js +4 -0
  731. package/dist/solutions-components/vendor/calcite-components/ZAY3SU5H.js +4 -0
  732. package/dist/solutions-components/vendor/calcite-components/ZFGK5MNZ.js +4 -0
  733. package/dist/solutions-components/vendor/calcite-components/ZITAONDY.js +4 -0
  734. package/dist/solutions-components/vendor/calcite-components/ZLW5U3G6.js +4 -0
  735. package/dist/solutions-components/vendor/calcite-components/ZNMXPSOQ.js +4 -0
  736. package/dist/solutions-components/vendor/calcite-components/ZSLV2NNR.js +4 -0
  737. package/dist/solutions-components/vendor/calcite-components/assets/icon/crosshair16.json +1 -0
  738. package/dist/solutions-components/vendor/calcite-components/assets/icon/crosshair24.json +1 -0
  739. package/dist/solutions-components/vendor/calcite-components/assets/icon/crosshair32.json +1 -0
  740. package/dist/solutions-components/vendor/calcite-components/assets/icon/utilityNetworkLayer16.json +1 -0
  741. package/dist/solutions-components/vendor/calcite-components/assets/icon/utilityNetworkLayer24.json +1 -0
  742. package/dist/solutions-components/vendor/calcite-components/assets/icon/utilityNetworkLayer32.json +1 -0
  743. package/dist/solutions-components/vendor/calcite-components/calcite.esm.js +4 -6
  744. package/dist/solutions-components_commit.txt +6 -6
  745. package/package.json +2 -2
  746. package/dist/cjs/constants-bed33322.js +0 -860
  747. package/dist/cjs/downloadUtils-9ce90176.js +0 -3223
  748. package/dist/cjs/effects-fdd163a9.js +0 -83
  749. package/dist/cjs/helpers-6a222aa7.js +0 -867
  750. package/dist/cjs/index-af14245a.js +0 -1828
  751. package/dist/cjs/index-ffd12cb0.js +0 -201
  752. package/dist/cjs/index.es-6549e26a.js +0 -11194
  753. package/dist/cjs/loadModules-df8b13ca.js +0 -23
  754. package/dist/cjs/locale-1c60be9c.js +0 -160
  755. package/dist/cjs/locale-2dd3020a.js +0 -943
  756. package/dist/cjs/popupUtils-93b14f86.js +0 -121
  757. package/dist/cjs/publicNotificationStore-beb782de.js +0 -47
  758. package/dist/cjs/solution-store-3cf25b71.js +0 -1105
  759. package/dist/cjs/utils-53383d03.js +0 -153
  760. package/dist/collection/vendor/calcite-components/2OHLWTVV.js +0 -6
  761. package/dist/collection/vendor/calcite-components/2YNPAPXX.js +0 -6
  762. package/dist/collection/vendor/calcite-components/3MV46GBB.js +0 -6
  763. package/dist/collection/vendor/calcite-components/3OQ2ZMWE.js +0 -6
  764. package/dist/collection/vendor/calcite-components/3VYZVKRG.js +0 -6
  765. package/dist/collection/vendor/calcite-components/3YAQ3WXL.js +0 -6
  766. package/dist/collection/vendor/calcite-components/3YMYDWGD.js +0 -6
  767. package/dist/collection/vendor/calcite-components/4BBHRHVO.js +0 -6
  768. package/dist/collection/vendor/calcite-components/4Y32YCMF.js +0 -6
  769. package/dist/collection/vendor/calcite-components/52M672S5.js +0 -6
  770. package/dist/collection/vendor/calcite-components/5DHYCNO3.js +0 -6
  771. package/dist/collection/vendor/calcite-components/5MCURGUM.js +0 -6
  772. package/dist/collection/vendor/calcite-components/5O6ZNC7G.js +0 -6
  773. package/dist/collection/vendor/calcite-components/5RROROO5.js +0 -6
  774. package/dist/collection/vendor/calcite-components/5WC57GPQ.js +0 -6
  775. package/dist/collection/vendor/calcite-components/5WSY45L7.js +0 -6
  776. package/dist/collection/vendor/calcite-components/5XKYFEBC.js +0 -6
  777. package/dist/collection/vendor/calcite-components/66KPC4YV.js +0 -6
  778. package/dist/collection/vendor/calcite-components/67MILQAM.js +0 -6
  779. package/dist/collection/vendor/calcite-components/67YJME3J.js +0 -7
  780. package/dist/collection/vendor/calcite-components/6BG6DXGU.js +0 -6
  781. package/dist/collection/vendor/calcite-components/6J7J7RFI.js +0 -6
  782. package/dist/collection/vendor/calcite-components/6KJHPKLM.js +0 -6
  783. package/dist/collection/vendor/calcite-components/6LBWQVLS.js +0 -6
  784. package/dist/collection/vendor/calcite-components/6LOB5NKS.js +0 -6
  785. package/dist/collection/vendor/calcite-components/74AHNYT6.js +0 -6
  786. package/dist/collection/vendor/calcite-components/75LS6AUK.js +0 -6
  787. package/dist/collection/vendor/calcite-components/7AC4OZRT.js +0 -6
  788. package/dist/collection/vendor/calcite-components/7CTQOYNN.js +0 -6
  789. package/dist/collection/vendor/calcite-components/7IMTQM3A.js +0 -6
  790. package/dist/collection/vendor/calcite-components/7NNFVP5Y.js +0 -6
  791. package/dist/collection/vendor/calcite-components/7PLH76D5.js +0 -6
  792. package/dist/collection/vendor/calcite-components/7SRUH72U.js +0 -6
  793. package/dist/collection/vendor/calcite-components/7WIMMB52.js +0 -6
  794. package/dist/collection/vendor/calcite-components/A3TZO3T4.js +0 -6
  795. package/dist/collection/vendor/calcite-components/A4JSLISH.js +0 -7
  796. package/dist/collection/vendor/calcite-components/A77L2PAE.js +0 -6
  797. package/dist/collection/vendor/calcite-components/AAJZVCOQ.js +0 -6
  798. package/dist/collection/vendor/calcite-components/AK7JTREX.js +0 -6
  799. package/dist/collection/vendor/calcite-components/APJDJGRX.js +0 -6
  800. package/dist/collection/vendor/calcite-components/B7XAXKYO.js +0 -6
  801. package/dist/collection/vendor/calcite-components/B7YRQCNE.js +0 -6
  802. package/dist/collection/vendor/calcite-components/BAAOO7UE.js +0 -6
  803. package/dist/collection/vendor/calcite-components/BKJX2UVI.js +0 -6
  804. package/dist/collection/vendor/calcite-components/BMTT77MQ.js +0 -6
  805. package/dist/collection/vendor/calcite-components/BMULWGQL.js +0 -6
  806. package/dist/collection/vendor/calcite-components/BOOD43TE.js +0 -6
  807. package/dist/collection/vendor/calcite-components/BT6BGDUQ.js +0 -6
  808. package/dist/collection/vendor/calcite-components/C4BI2I6X.js +0 -6
  809. package/dist/collection/vendor/calcite-components/CARSEP6Y.js +0 -6
  810. package/dist/collection/vendor/calcite-components/CARUWMRC.js +0 -6
  811. package/dist/collection/vendor/calcite-components/CGP5NAVZ.js +0 -6
  812. package/dist/collection/vendor/calcite-components/CHPU2ORW.js +0 -6
  813. package/dist/collection/vendor/calcite-components/CKCZ6NNQ.js +0 -6
  814. package/dist/collection/vendor/calcite-components/CLWQ573O.js +0 -6
  815. package/dist/collection/vendor/calcite-components/COVTDEEB.js +0 -6
  816. package/dist/collection/vendor/calcite-components/CSDMYGZU.js +0 -6
  817. package/dist/collection/vendor/calcite-components/CSR5Q44Q.js +0 -6
  818. package/dist/collection/vendor/calcite-components/CWDZ4NQP.js +0 -6
  819. package/dist/collection/vendor/calcite-components/D7V3NS2J.js +0 -6
  820. package/dist/collection/vendor/calcite-components/DHITRFFR.js +0 -6
  821. package/dist/collection/vendor/calcite-components/DL6GCZF7.js +0 -6
  822. package/dist/collection/vendor/calcite-components/DPLQUB7Z.js +0 -6
  823. package/dist/collection/vendor/calcite-components/DQWJPC22.js +0 -6
  824. package/dist/collection/vendor/calcite-components/DRM7BNH3.js +0 -6
  825. package/dist/collection/vendor/calcite-components/DWIP44NC.js +0 -6
  826. package/dist/collection/vendor/calcite-components/E3RER5S3.js +0 -6
  827. package/dist/collection/vendor/calcite-components/ECWNOIEW.js +0 -6
  828. package/dist/collection/vendor/calcite-components/EPKORG4B.js +0 -6
  829. package/dist/collection/vendor/calcite-components/ERE76CER.js +0 -6
  830. package/dist/collection/vendor/calcite-components/EU5GIDX7.js +0 -6
  831. package/dist/collection/vendor/calcite-components/FB6NATRQ.js +0 -6
  832. package/dist/collection/vendor/calcite-components/FHAIE7PW.js +0 -6
  833. package/dist/collection/vendor/calcite-components/FITCS5RA.js +0 -6
  834. package/dist/collection/vendor/calcite-components/FJUGYL5W.js +0 -6
  835. package/dist/collection/vendor/calcite-components/FP5CKCOM.js +0 -6
  836. package/dist/collection/vendor/calcite-components/FQ6G6HKC.js +0 -6
  837. package/dist/collection/vendor/calcite-components/FQTOWUOI.js +0 -6
  838. package/dist/collection/vendor/calcite-components/FSBJYIK7.js +0 -6
  839. package/dist/collection/vendor/calcite-components/FUR5QRYV.js +0 -6
  840. package/dist/collection/vendor/calcite-components/FV5F4TOB.js +0 -30
  841. package/dist/collection/vendor/calcite-components/GHRW2Z4J.js +0 -6
  842. package/dist/collection/vendor/calcite-components/GKLGNYAX.js +0 -6
  843. package/dist/collection/vendor/calcite-components/GRGOLBJ6.js +0 -6
  844. package/dist/collection/vendor/calcite-components/H2QNORW6.js +0 -6
  845. package/dist/collection/vendor/calcite-components/H6JENZS2.js +0 -6
  846. package/dist/collection/vendor/calcite-components/HE6ZJBOG.js +0 -6
  847. package/dist/collection/vendor/calcite-components/HEYQRNVV.js +0 -6
  848. package/dist/collection/vendor/calcite-components/HJ7LTJIL.js +0 -6
  849. package/dist/collection/vendor/calcite-components/HUXUCABV.js +0 -6
  850. package/dist/collection/vendor/calcite-components/HVG3FNW6.js +0 -6
  851. package/dist/collection/vendor/calcite-components/I5RDDH5E.js +0 -6
  852. package/dist/collection/vendor/calcite-components/IGLINVEB.js +0 -6
  853. package/dist/collection/vendor/calcite-components/IH6XHUKC.js +0 -6
  854. package/dist/collection/vendor/calcite-components/IN4OTIGO.js +0 -6
  855. package/dist/collection/vendor/calcite-components/IOQ5NGFA.js +0 -6
  856. package/dist/collection/vendor/calcite-components/ITIJ42U7.js +0 -6
  857. package/dist/collection/vendor/calcite-components/ITILALYC.js +0 -6
  858. package/dist/collection/vendor/calcite-components/J3NSY2Y7.js +0 -6
  859. package/dist/collection/vendor/calcite-components/J4RAJYKF.js +0 -6
  860. package/dist/collection/vendor/calcite-components/J6IGXQYQ.js +0 -6
  861. package/dist/collection/vendor/calcite-components/JA2ML5I6.js +0 -6
  862. package/dist/collection/vendor/calcite-components/JOTIQZAS.js +0 -6
  863. package/dist/collection/vendor/calcite-components/JULIKI65.js +0 -6
  864. package/dist/collection/vendor/calcite-components/JW6QBCWN.js +0 -6
  865. package/dist/collection/vendor/calcite-components/JWIQZFGO.js +0 -6
  866. package/dist/collection/vendor/calcite-components/K4HQ6WGE.js +0 -6
  867. package/dist/collection/vendor/calcite-components/K4OPLD7F.js +0 -6
  868. package/dist/collection/vendor/calcite-components/KHULIKKP.js +0 -7
  869. package/dist/collection/vendor/calcite-components/KRZMNBJS.js +0 -6
  870. package/dist/collection/vendor/calcite-components/LDAXCWWP.js +0 -6
  871. package/dist/collection/vendor/calcite-components/LMRFYM2J.js +0 -6
  872. package/dist/collection/vendor/calcite-components/LSUXEOMN.js +0 -6
  873. package/dist/collection/vendor/calcite-components/M5BOCCQL.js +0 -6
  874. package/dist/collection/vendor/calcite-components/M5XI6NNV.js +0 -6
  875. package/dist/collection/vendor/calcite-components/M7MOBM7M.js +0 -6
  876. package/dist/collection/vendor/calcite-components/MA2YIQZL.js +0 -6
  877. package/dist/collection/vendor/calcite-components/MBJAGWVS.js +0 -6
  878. package/dist/collection/vendor/calcite-components/MI3BWAKN.js +0 -6
  879. package/dist/collection/vendor/calcite-components/MOO4BCRV.js +0 -6
  880. package/dist/collection/vendor/calcite-components/MVHJMI6L.js +0 -6
  881. package/dist/collection/vendor/calcite-components/MZRLL3GR.js +0 -6
  882. package/dist/collection/vendor/calcite-components/N2FZGLE3.js +0 -6
  883. package/dist/collection/vendor/calcite-components/N2UM5A2L.js +0 -6
  884. package/dist/collection/vendor/calcite-components/NNL2N4OB.js +0 -6
  885. package/dist/collection/vendor/calcite-components/NP3SY2AL.js +0 -6
  886. package/dist/collection/vendor/calcite-components/NPYZ3JS7.js +0 -6
  887. package/dist/collection/vendor/calcite-components/NS47CSEP.js +0 -6
  888. package/dist/collection/vendor/calcite-components/NSL6XZ2B.js +0 -6
  889. package/dist/collection/vendor/calcite-components/NW4BVBVD.js +0 -6
  890. package/dist/collection/vendor/calcite-components/O66NAEPJ.js +0 -6
  891. package/dist/collection/vendor/calcite-components/OA55VNGP.js +0 -6
  892. package/dist/collection/vendor/calcite-components/OHEBCS4O.js +0 -6
  893. package/dist/collection/vendor/calcite-components/OI755RA3.js +0 -6
  894. package/dist/collection/vendor/calcite-components/OUC47AKY.js +0 -6
  895. package/dist/collection/vendor/calcite-components/PIOS7EUM.js +0 -6
  896. package/dist/collection/vendor/calcite-components/PJPFKU6T.js +0 -6
  897. package/dist/collection/vendor/calcite-components/PJT7DMRY.js +0 -6
  898. package/dist/collection/vendor/calcite-components/QDTRI7C7.js +0 -6
  899. package/dist/collection/vendor/calcite-components/QIG2J5PE.js +0 -6
  900. package/dist/collection/vendor/calcite-components/QO6KDHE7.js +0 -6
  901. package/dist/collection/vendor/calcite-components/QP3WP6XK.js +0 -6
  902. package/dist/collection/vendor/calcite-components/QRMUPTEN.js +0 -6
  903. package/dist/collection/vendor/calcite-components/QS2H5WWV.js +0 -7
  904. package/dist/collection/vendor/calcite-components/QSXIXUQG.js +0 -6
  905. package/dist/collection/vendor/calcite-components/R4UWD64I.js +0 -6
  906. package/dist/collection/vendor/calcite-components/R6R2QDCZ.js +0 -6
  907. package/dist/collection/vendor/calcite-components/R7BOWUQR.js +0 -6
  908. package/dist/collection/vendor/calcite-components/RBX4II3R.js +0 -6
  909. package/dist/collection/vendor/calcite-components/RGXKBYDS.js +0 -6
  910. package/dist/collection/vendor/calcite-components/RIG4ZWVJ.js +0 -6
  911. package/dist/collection/vendor/calcite-components/RM7DO3WC.js +0 -6
  912. package/dist/collection/vendor/calcite-components/RM7JYDOG.js +0 -6
  913. package/dist/collection/vendor/calcite-components/RS3QB5Z6.js +0 -6
  914. package/dist/collection/vendor/calcite-components/RTNOQY3F.js +0 -6
  915. package/dist/collection/vendor/calcite-components/RXFQEBLZ.js +0 -6
  916. package/dist/collection/vendor/calcite-components/S72C3HDO.js +0 -6
  917. package/dist/collection/vendor/calcite-components/SCVHHYPP.js +0 -6
  918. package/dist/collection/vendor/calcite-components/SH3ZYF5Y.js +0 -6
  919. package/dist/collection/vendor/calcite-components/SLRX7WEV.js +0 -6
  920. package/dist/collection/vendor/calcite-components/SQBCUXGV.js +0 -6
  921. package/dist/collection/vendor/calcite-components/SUMUVN3S.js +0 -6
  922. package/dist/collection/vendor/calcite-components/SUOP4NP6.js +0 -6
  923. package/dist/collection/vendor/calcite-components/SV2NJMD7.js +0 -6
  924. package/dist/collection/vendor/calcite-components/T5H4BCFU.js +0 -6
  925. package/dist/collection/vendor/calcite-components/T5XJU6AI.js +0 -24
  926. package/dist/collection/vendor/calcite-components/T6NZYTYO.js +0 -6
  927. package/dist/collection/vendor/calcite-components/TEFAP3AK.js +0 -6
  928. package/dist/collection/vendor/calcite-components/TEGL7RHQ.js +0 -6
  929. package/dist/collection/vendor/calcite-components/TGH5IJQY.js +0 -6
  930. package/dist/collection/vendor/calcite-components/TGYJTTJS.js +0 -6
  931. package/dist/collection/vendor/calcite-components/TITRCHWJ.js +0 -6
  932. package/dist/collection/vendor/calcite-components/TRYKNJDA.js +0 -6
  933. package/dist/collection/vendor/calcite-components/TYYR7NIL.js +0 -8
  934. package/dist/collection/vendor/calcite-components/TZEZTECF.js +0 -6
  935. package/dist/collection/vendor/calcite-components/U2E5SVFR.js +0 -6
  936. package/dist/collection/vendor/calcite-components/U5VSHGIS.js +0 -6
  937. package/dist/collection/vendor/calcite-components/U64XMC5X.js +0 -6
  938. package/dist/collection/vendor/calcite-components/UK4SFYVV.js +0 -6
  939. package/dist/collection/vendor/calcite-components/UKF62PNM.js +0 -6
  940. package/dist/collection/vendor/calcite-components/UOL6J47W.js +0 -6
  941. package/dist/collection/vendor/calcite-components/UV7H22PE.js +0 -6
  942. package/dist/collection/vendor/calcite-components/UXOOSEIU.js +0 -6
  943. package/dist/collection/vendor/calcite-components/UXZ36VC5.js +0 -6
  944. package/dist/collection/vendor/calcite-components/UY67UAZN.js +0 -6
  945. package/dist/collection/vendor/calcite-components/VFBARPZ3.js +0 -6
  946. package/dist/collection/vendor/calcite-components/VGYCDODV.js +0 -6
  947. package/dist/collection/vendor/calcite-components/VHXHAFDO.js +0 -6
  948. package/dist/collection/vendor/calcite-components/VN2EAAQF.js +0 -6
  949. package/dist/collection/vendor/calcite-components/VOECRNMH.js +0 -6
  950. package/dist/collection/vendor/calcite-components/VQRNTTAX.js +0 -6
  951. package/dist/collection/vendor/calcite-components/VVXJONZL.js +0 -6
  952. package/dist/collection/vendor/calcite-components/W5CGAHOI.js +0 -6
  953. package/dist/collection/vendor/calcite-components/WA7LZURK.js +0 -6
  954. package/dist/collection/vendor/calcite-components/WAAS66H6.js +0 -6
  955. package/dist/collection/vendor/calcite-components/WAE55O4U.js +0 -6
  956. package/dist/collection/vendor/calcite-components/WAXI7XKE.js +0 -6
  957. package/dist/collection/vendor/calcite-components/WEFAANMG.js +0 -6
  958. package/dist/collection/vendor/calcite-components/WH772PDM.js +0 -6
  959. package/dist/collection/vendor/calcite-components/X43KWDQ7.js +0 -6
  960. package/dist/collection/vendor/calcite-components/X5W76SNV.js +0 -6
  961. package/dist/collection/vendor/calcite-components/X6IC7EBC.js +0 -6
  962. package/dist/collection/vendor/calcite-components/XBYWX3OD.js +0 -6
  963. package/dist/collection/vendor/calcite-components/XIJN5ZXM.js +0 -6
  964. package/dist/collection/vendor/calcite-components/XKQ2CMVV.js +0 -6
  965. package/dist/collection/vendor/calcite-components/YBQG5R2L.js +0 -6
  966. package/dist/collection/vendor/calcite-components/YHWNAASP.js +0 -6
  967. package/dist/collection/vendor/calcite-components/YMNUCKVA.js +0 -6
  968. package/dist/collection/vendor/calcite-components/YMR2Q5CU.js +0 -6
  969. package/dist/collection/vendor/calcite-components/YNGSTQ4R.js +0 -6
  970. package/dist/collection/vendor/calcite-components/YP2D5DKM.js +0 -6
  971. package/dist/collection/vendor/calcite-components/YPRJFE6R.js +0 -6
  972. package/dist/collection/vendor/calcite-components/YVIEKCN2.js +0 -6
  973. package/dist/collection/vendor/calcite-components/YWM7TWVP.js +0 -6
  974. package/dist/collection/vendor/calcite-components/YZ3FOSUR.js +0 -6
  975. package/dist/collection/vendor/calcite-components/YZG67JHT.js +0 -6
  976. package/dist/collection/vendor/calcite-components/ZBSXA5F6.js +0 -6
  977. package/dist/collection/vendor/calcite-components/ZFAXCWF5.js +0 -6
  978. package/dist/collection/vendor/calcite-components/ZFKXMQJP.js +0 -6
  979. package/dist/collection/vendor/calcite-components/ZK7O524P.js +0 -6
  980. package/dist/collection/vendor/calcite-components/ZKNKPGVW.js +0 -6
  981. package/dist/collection/vendor/calcite-components/ZLFRGGT3.js +0 -6
  982. package/dist/esm/constants-637a40f5.js +0 -856
  983. package/dist/esm/downloadUtils-1179f077.js +0 -3217
  984. package/dist/esm/effects-d42ccf96.js +0 -81
  985. package/dist/esm/helpers-bd1ff401.js +0 -841
  986. package/dist/esm/index-c247b62b.js +0 -199
  987. package/dist/esm/index-df5db8e9.js +0 -1795
  988. package/dist/esm/index.es-6b399444.js +0 -11107
  989. package/dist/esm/loadModules-d5a25252.js +0 -21
  990. package/dist/esm/locale-4744c8a4.js +0 -938
  991. package/dist/esm/locale-7874c756.js +0 -155
  992. package/dist/esm/popupUtils-cfe51dfd.js +0 -119
  993. package/dist/esm/publicNotificationStore-9ec5e22a.js +0 -45
  994. package/dist/esm/solution-store-4c39c654.js +0 -1103
  995. package/dist/esm/utils-04fffcaf.js +0 -142
  996. package/dist/solutions-components/p-1d1d7e63.entry.js +0 -6
  997. package/dist/solutions-components/p-28858c2f.entry.js +0 -6
  998. package/dist/solutions-components/p-2a16aa29.entry.js +0 -6
  999. package/dist/solutions-components/p-30ea587b.entry.js +0 -6
  1000. package/dist/solutions-components/p-318f5c87.entry.js +0 -6
  1001. package/dist/solutions-components/p-3335285a.js +0 -21
  1002. package/dist/solutions-components/p-33d03eb9.entry.js +0 -6
  1003. package/dist/solutions-components/p-34b50565.entry.js +0 -6
  1004. package/dist/solutions-components/p-37ae171f.entry.js +0 -6
  1005. package/dist/solutions-components/p-37fe59a0.entry.js +0 -6
  1006. package/dist/solutions-components/p-38814554.entry.js +0 -6
  1007. package/dist/solutions-components/p-3f14b242.entry.js +0 -6
  1008. package/dist/solutions-components/p-3f83917b.entry.js +0 -6
  1009. package/dist/solutions-components/p-404cbf48.js +0 -36
  1010. package/dist/solutions-components/p-4695cfab.js +0 -6
  1011. package/dist/solutions-components/p-48242dd4.js +0 -61
  1012. package/dist/solutions-components/p-4b98adf3.entry.js +0 -6
  1013. package/dist/solutions-components/p-552fb1c0.entry.js +0 -6
  1014. package/dist/solutions-components/p-6369b974.entry.js +0 -6
  1015. package/dist/solutions-components/p-648b5a9e.js +0 -6
  1016. package/dist/solutions-components/p-64a6162f.entry.js +0 -6
  1017. package/dist/solutions-components/p-64f814dd.entry.js +0 -6
  1018. package/dist/solutions-components/p-6f4e5c19.entry.js +0 -6
  1019. package/dist/solutions-components/p-72d04c7a.entry.js +0 -11
  1020. package/dist/solutions-components/p-7dc7d3dc.entry.js +0 -6
  1021. package/dist/solutions-components/p-7dc95675.js +0 -6
  1022. package/dist/solutions-components/p-80262cb7.js +0 -6
  1023. package/dist/solutions-components/p-83ba1288.entry.js +0 -6
  1024. package/dist/solutions-components/p-8585c128.entry.js +0 -6
  1025. package/dist/solutions-components/p-8717729a.js +0 -6
  1026. package/dist/solutions-components/p-8d281f47.js +0 -488
  1027. package/dist/solutions-components/p-95d1c104.entry.js +0 -6
  1028. package/dist/solutions-components/p-97f33e9f.js +0 -6
  1029. package/dist/solutions-components/p-980d9473.entry.js +0 -6
  1030. package/dist/solutions-components/p-9e3a40bc.entry.js +0 -6
  1031. package/dist/solutions-components/p-b536e583.entry.js +0 -21
  1032. package/dist/solutions-components/p-bc8d8128.entry.js +0 -6
  1033. package/dist/solutions-components/p-be16bc80.entry.js +0 -6
  1034. package/dist/solutions-components/p-c2e57b81.entry.js +0 -6
  1035. package/dist/solutions-components/p-c50ff9f1.entry.js +0 -6
  1036. package/dist/solutions-components/p-c9686e6c.entry.js +0 -6
  1037. package/dist/solutions-components/p-d001e961.js +0 -6
  1038. package/dist/solutions-components/p-d099573a.entry.js +0 -6
  1039. package/dist/solutions-components/p-d1551601.entry.js +0 -6
  1040. package/dist/solutions-components/p-d324196d.entry.js +0 -6
  1041. package/dist/solutions-components/p-d59fb1a7.entry.js +0 -6
  1042. package/dist/solutions-components/p-da1e098c.js +0 -129
  1043. package/dist/solutions-components/p-dafc6680.entry.js +0 -6
  1044. package/dist/solutions-components/p-dc704bc6.entry.js +0 -6
  1045. package/dist/solutions-components/p-e3e35c14.entry.js +0 -6
  1046. package/dist/solutions-components/p-e43c8944.entry.js +0 -21
  1047. package/dist/solutions-components/p-e5cb329f.entry.js +0 -6
  1048. package/dist/solutions-components/p-e6859850.js +0 -21
  1049. package/dist/solutions-components/p-e996c38f.js +0 -7
  1050. package/dist/solutions-components/p-ea09b078.entry.js +0 -6
  1051. package/dist/solutions-components/p-ed443a0b.entry.js +0 -6
  1052. package/dist/solutions-components/p-ee3bb943.entry.js +0 -6
  1053. package/dist/solutions-components/p-f0b1b6f6.entry.js +0 -6
  1054. package/dist/solutions-components/p-f9deadd7.entry.js +0 -6
  1055. package/dist/solutions-components/p-fe9b2c74.entry.js +0 -6
  1056. package/dist/solutions-components/p-ffe1e3a3.entry.js +0 -6
  1057. package/dist/solutions-components/vendor/calcite-components/2OHLWTVV.js +0 -6
  1058. package/dist/solutions-components/vendor/calcite-components/2YNPAPXX.js +0 -6
  1059. package/dist/solutions-components/vendor/calcite-components/3MV46GBB.js +0 -6
  1060. package/dist/solutions-components/vendor/calcite-components/3OQ2ZMWE.js +0 -6
  1061. package/dist/solutions-components/vendor/calcite-components/3VYZVKRG.js +0 -6
  1062. package/dist/solutions-components/vendor/calcite-components/3YAQ3WXL.js +0 -6
  1063. package/dist/solutions-components/vendor/calcite-components/3YMYDWGD.js +0 -6
  1064. package/dist/solutions-components/vendor/calcite-components/4BBHRHVO.js +0 -6
  1065. package/dist/solutions-components/vendor/calcite-components/4Y32YCMF.js +0 -6
  1066. package/dist/solutions-components/vendor/calcite-components/52M672S5.js +0 -6
  1067. package/dist/solutions-components/vendor/calcite-components/5DHYCNO3.js +0 -6
  1068. package/dist/solutions-components/vendor/calcite-components/5MCURGUM.js +0 -6
  1069. package/dist/solutions-components/vendor/calcite-components/5O6ZNC7G.js +0 -6
  1070. package/dist/solutions-components/vendor/calcite-components/5RROROO5.js +0 -6
  1071. package/dist/solutions-components/vendor/calcite-components/5WC57GPQ.js +0 -6
  1072. package/dist/solutions-components/vendor/calcite-components/5WSY45L7.js +0 -6
  1073. package/dist/solutions-components/vendor/calcite-components/5XKYFEBC.js +0 -6
  1074. package/dist/solutions-components/vendor/calcite-components/66KPC4YV.js +0 -6
  1075. package/dist/solutions-components/vendor/calcite-components/67MILQAM.js +0 -6
  1076. package/dist/solutions-components/vendor/calcite-components/67YJME3J.js +0 -7
  1077. package/dist/solutions-components/vendor/calcite-components/6BG6DXGU.js +0 -6
  1078. package/dist/solutions-components/vendor/calcite-components/6J7J7RFI.js +0 -6
  1079. package/dist/solutions-components/vendor/calcite-components/6KJHPKLM.js +0 -6
  1080. package/dist/solutions-components/vendor/calcite-components/6LBWQVLS.js +0 -6
  1081. package/dist/solutions-components/vendor/calcite-components/6LOB5NKS.js +0 -6
  1082. package/dist/solutions-components/vendor/calcite-components/74AHNYT6.js +0 -6
  1083. package/dist/solutions-components/vendor/calcite-components/75LS6AUK.js +0 -6
  1084. package/dist/solutions-components/vendor/calcite-components/7AC4OZRT.js +0 -6
  1085. package/dist/solutions-components/vendor/calcite-components/7CTQOYNN.js +0 -6
  1086. package/dist/solutions-components/vendor/calcite-components/7IMTQM3A.js +0 -6
  1087. package/dist/solutions-components/vendor/calcite-components/7NNFVP5Y.js +0 -6
  1088. package/dist/solutions-components/vendor/calcite-components/7PLH76D5.js +0 -6
  1089. package/dist/solutions-components/vendor/calcite-components/7SRUH72U.js +0 -6
  1090. package/dist/solutions-components/vendor/calcite-components/7WIMMB52.js +0 -6
  1091. package/dist/solutions-components/vendor/calcite-components/A3TZO3T4.js +0 -6
  1092. package/dist/solutions-components/vendor/calcite-components/A4JSLISH.js +0 -7
  1093. package/dist/solutions-components/vendor/calcite-components/A77L2PAE.js +0 -6
  1094. package/dist/solutions-components/vendor/calcite-components/AAJZVCOQ.js +0 -6
  1095. package/dist/solutions-components/vendor/calcite-components/AK7JTREX.js +0 -6
  1096. package/dist/solutions-components/vendor/calcite-components/APJDJGRX.js +0 -6
  1097. package/dist/solutions-components/vendor/calcite-components/B7XAXKYO.js +0 -6
  1098. package/dist/solutions-components/vendor/calcite-components/B7YRQCNE.js +0 -6
  1099. package/dist/solutions-components/vendor/calcite-components/BAAOO7UE.js +0 -6
  1100. package/dist/solutions-components/vendor/calcite-components/BKJX2UVI.js +0 -6
  1101. package/dist/solutions-components/vendor/calcite-components/BMTT77MQ.js +0 -6
  1102. package/dist/solutions-components/vendor/calcite-components/BMULWGQL.js +0 -6
  1103. package/dist/solutions-components/vendor/calcite-components/BOOD43TE.js +0 -6
  1104. package/dist/solutions-components/vendor/calcite-components/BT6BGDUQ.js +0 -6
  1105. package/dist/solutions-components/vendor/calcite-components/C4BI2I6X.js +0 -6
  1106. package/dist/solutions-components/vendor/calcite-components/CARSEP6Y.js +0 -6
  1107. package/dist/solutions-components/vendor/calcite-components/CARUWMRC.js +0 -6
  1108. package/dist/solutions-components/vendor/calcite-components/CGP5NAVZ.js +0 -6
  1109. package/dist/solutions-components/vendor/calcite-components/CHPU2ORW.js +0 -6
  1110. package/dist/solutions-components/vendor/calcite-components/CKCZ6NNQ.js +0 -6
  1111. package/dist/solutions-components/vendor/calcite-components/CLWQ573O.js +0 -6
  1112. package/dist/solutions-components/vendor/calcite-components/COVTDEEB.js +0 -6
  1113. package/dist/solutions-components/vendor/calcite-components/CSDMYGZU.js +0 -6
  1114. package/dist/solutions-components/vendor/calcite-components/CSR5Q44Q.js +0 -6
  1115. package/dist/solutions-components/vendor/calcite-components/CWDZ4NQP.js +0 -6
  1116. package/dist/solutions-components/vendor/calcite-components/D7V3NS2J.js +0 -6
  1117. package/dist/solutions-components/vendor/calcite-components/DHITRFFR.js +0 -6
  1118. package/dist/solutions-components/vendor/calcite-components/DL6GCZF7.js +0 -6
  1119. package/dist/solutions-components/vendor/calcite-components/DPLQUB7Z.js +0 -6
  1120. package/dist/solutions-components/vendor/calcite-components/DQWJPC22.js +0 -6
  1121. package/dist/solutions-components/vendor/calcite-components/DRM7BNH3.js +0 -6
  1122. package/dist/solutions-components/vendor/calcite-components/DWIP44NC.js +0 -6
  1123. package/dist/solutions-components/vendor/calcite-components/E3RER5S3.js +0 -6
  1124. package/dist/solutions-components/vendor/calcite-components/ECWNOIEW.js +0 -6
  1125. package/dist/solutions-components/vendor/calcite-components/EPKORG4B.js +0 -6
  1126. package/dist/solutions-components/vendor/calcite-components/ERE76CER.js +0 -6
  1127. package/dist/solutions-components/vendor/calcite-components/EU5GIDX7.js +0 -6
  1128. package/dist/solutions-components/vendor/calcite-components/FB6NATRQ.js +0 -6
  1129. package/dist/solutions-components/vendor/calcite-components/FHAIE7PW.js +0 -6
  1130. package/dist/solutions-components/vendor/calcite-components/FITCS5RA.js +0 -6
  1131. package/dist/solutions-components/vendor/calcite-components/FJUGYL5W.js +0 -6
  1132. package/dist/solutions-components/vendor/calcite-components/FP5CKCOM.js +0 -6
  1133. package/dist/solutions-components/vendor/calcite-components/FQ6G6HKC.js +0 -6
  1134. package/dist/solutions-components/vendor/calcite-components/FQTOWUOI.js +0 -6
  1135. package/dist/solutions-components/vendor/calcite-components/FSBJYIK7.js +0 -6
  1136. package/dist/solutions-components/vendor/calcite-components/FUR5QRYV.js +0 -6
  1137. package/dist/solutions-components/vendor/calcite-components/FV5F4TOB.js +0 -30
  1138. package/dist/solutions-components/vendor/calcite-components/GHRW2Z4J.js +0 -6
  1139. package/dist/solutions-components/vendor/calcite-components/GKLGNYAX.js +0 -6
  1140. package/dist/solutions-components/vendor/calcite-components/GRGOLBJ6.js +0 -6
  1141. package/dist/solutions-components/vendor/calcite-components/H2QNORW6.js +0 -6
  1142. package/dist/solutions-components/vendor/calcite-components/H6JENZS2.js +0 -6
  1143. package/dist/solutions-components/vendor/calcite-components/HE6ZJBOG.js +0 -6
  1144. package/dist/solutions-components/vendor/calcite-components/HEYQRNVV.js +0 -6
  1145. package/dist/solutions-components/vendor/calcite-components/HJ7LTJIL.js +0 -6
  1146. package/dist/solutions-components/vendor/calcite-components/HUXUCABV.js +0 -6
  1147. package/dist/solutions-components/vendor/calcite-components/HVG3FNW6.js +0 -6
  1148. package/dist/solutions-components/vendor/calcite-components/I5RDDH5E.js +0 -6
  1149. package/dist/solutions-components/vendor/calcite-components/IGLINVEB.js +0 -6
  1150. package/dist/solutions-components/vendor/calcite-components/IH6XHUKC.js +0 -6
  1151. package/dist/solutions-components/vendor/calcite-components/IN4OTIGO.js +0 -6
  1152. package/dist/solutions-components/vendor/calcite-components/IOQ5NGFA.js +0 -6
  1153. package/dist/solutions-components/vendor/calcite-components/ITIJ42U7.js +0 -6
  1154. package/dist/solutions-components/vendor/calcite-components/ITILALYC.js +0 -6
  1155. package/dist/solutions-components/vendor/calcite-components/J3NSY2Y7.js +0 -6
  1156. package/dist/solutions-components/vendor/calcite-components/J4RAJYKF.js +0 -6
  1157. package/dist/solutions-components/vendor/calcite-components/J6IGXQYQ.js +0 -6
  1158. package/dist/solutions-components/vendor/calcite-components/JA2ML5I6.js +0 -6
  1159. package/dist/solutions-components/vendor/calcite-components/JOTIQZAS.js +0 -6
  1160. package/dist/solutions-components/vendor/calcite-components/JULIKI65.js +0 -6
  1161. package/dist/solutions-components/vendor/calcite-components/JW6QBCWN.js +0 -6
  1162. package/dist/solutions-components/vendor/calcite-components/JWIQZFGO.js +0 -6
  1163. package/dist/solutions-components/vendor/calcite-components/K4HQ6WGE.js +0 -6
  1164. package/dist/solutions-components/vendor/calcite-components/K4OPLD7F.js +0 -6
  1165. package/dist/solutions-components/vendor/calcite-components/KHULIKKP.js +0 -7
  1166. package/dist/solutions-components/vendor/calcite-components/KRZMNBJS.js +0 -6
  1167. package/dist/solutions-components/vendor/calcite-components/LDAXCWWP.js +0 -6
  1168. package/dist/solutions-components/vendor/calcite-components/LMRFYM2J.js +0 -6
  1169. package/dist/solutions-components/vendor/calcite-components/LSUXEOMN.js +0 -6
  1170. package/dist/solutions-components/vendor/calcite-components/M5BOCCQL.js +0 -6
  1171. package/dist/solutions-components/vendor/calcite-components/M5XI6NNV.js +0 -6
  1172. package/dist/solutions-components/vendor/calcite-components/M7MOBM7M.js +0 -6
  1173. package/dist/solutions-components/vendor/calcite-components/MA2YIQZL.js +0 -6
  1174. package/dist/solutions-components/vendor/calcite-components/MBJAGWVS.js +0 -6
  1175. package/dist/solutions-components/vendor/calcite-components/MI3BWAKN.js +0 -6
  1176. package/dist/solutions-components/vendor/calcite-components/MOO4BCRV.js +0 -6
  1177. package/dist/solutions-components/vendor/calcite-components/MVHJMI6L.js +0 -6
  1178. package/dist/solutions-components/vendor/calcite-components/MZRLL3GR.js +0 -6
  1179. package/dist/solutions-components/vendor/calcite-components/N2FZGLE3.js +0 -6
  1180. package/dist/solutions-components/vendor/calcite-components/N2UM5A2L.js +0 -6
  1181. package/dist/solutions-components/vendor/calcite-components/NNL2N4OB.js +0 -6
  1182. package/dist/solutions-components/vendor/calcite-components/NP3SY2AL.js +0 -6
  1183. package/dist/solutions-components/vendor/calcite-components/NPYZ3JS7.js +0 -6
  1184. package/dist/solutions-components/vendor/calcite-components/NS47CSEP.js +0 -6
  1185. package/dist/solutions-components/vendor/calcite-components/NSL6XZ2B.js +0 -6
  1186. package/dist/solutions-components/vendor/calcite-components/NW4BVBVD.js +0 -6
  1187. package/dist/solutions-components/vendor/calcite-components/O66NAEPJ.js +0 -6
  1188. package/dist/solutions-components/vendor/calcite-components/OA55VNGP.js +0 -6
  1189. package/dist/solutions-components/vendor/calcite-components/OHEBCS4O.js +0 -6
  1190. package/dist/solutions-components/vendor/calcite-components/OI755RA3.js +0 -6
  1191. package/dist/solutions-components/vendor/calcite-components/OUC47AKY.js +0 -6
  1192. package/dist/solutions-components/vendor/calcite-components/PIOS7EUM.js +0 -6
  1193. package/dist/solutions-components/vendor/calcite-components/PJPFKU6T.js +0 -6
  1194. package/dist/solutions-components/vendor/calcite-components/PJT7DMRY.js +0 -6
  1195. package/dist/solutions-components/vendor/calcite-components/QDTRI7C7.js +0 -6
  1196. package/dist/solutions-components/vendor/calcite-components/QIG2J5PE.js +0 -6
  1197. package/dist/solutions-components/vendor/calcite-components/QO6KDHE7.js +0 -6
  1198. package/dist/solutions-components/vendor/calcite-components/QP3WP6XK.js +0 -6
  1199. package/dist/solutions-components/vendor/calcite-components/QRMUPTEN.js +0 -6
  1200. package/dist/solutions-components/vendor/calcite-components/QS2H5WWV.js +0 -7
  1201. package/dist/solutions-components/vendor/calcite-components/QSXIXUQG.js +0 -6
  1202. package/dist/solutions-components/vendor/calcite-components/R4UWD64I.js +0 -6
  1203. package/dist/solutions-components/vendor/calcite-components/R6R2QDCZ.js +0 -6
  1204. package/dist/solutions-components/vendor/calcite-components/R7BOWUQR.js +0 -6
  1205. package/dist/solutions-components/vendor/calcite-components/RBX4II3R.js +0 -6
  1206. package/dist/solutions-components/vendor/calcite-components/RGXKBYDS.js +0 -6
  1207. package/dist/solutions-components/vendor/calcite-components/RIG4ZWVJ.js +0 -6
  1208. package/dist/solutions-components/vendor/calcite-components/RM7DO3WC.js +0 -6
  1209. package/dist/solutions-components/vendor/calcite-components/RM7JYDOG.js +0 -6
  1210. package/dist/solutions-components/vendor/calcite-components/RS3QB5Z6.js +0 -6
  1211. package/dist/solutions-components/vendor/calcite-components/RTNOQY3F.js +0 -6
  1212. package/dist/solutions-components/vendor/calcite-components/RXFQEBLZ.js +0 -6
  1213. package/dist/solutions-components/vendor/calcite-components/S72C3HDO.js +0 -6
  1214. package/dist/solutions-components/vendor/calcite-components/SCVHHYPP.js +0 -6
  1215. package/dist/solutions-components/vendor/calcite-components/SH3ZYF5Y.js +0 -6
  1216. package/dist/solutions-components/vendor/calcite-components/SLRX7WEV.js +0 -6
  1217. package/dist/solutions-components/vendor/calcite-components/SQBCUXGV.js +0 -6
  1218. package/dist/solutions-components/vendor/calcite-components/SUMUVN3S.js +0 -6
  1219. package/dist/solutions-components/vendor/calcite-components/SUOP4NP6.js +0 -6
  1220. package/dist/solutions-components/vendor/calcite-components/SV2NJMD7.js +0 -6
  1221. package/dist/solutions-components/vendor/calcite-components/T5H4BCFU.js +0 -6
  1222. package/dist/solutions-components/vendor/calcite-components/T5XJU6AI.js +0 -24
  1223. package/dist/solutions-components/vendor/calcite-components/T6NZYTYO.js +0 -6
  1224. package/dist/solutions-components/vendor/calcite-components/TEFAP3AK.js +0 -6
  1225. package/dist/solutions-components/vendor/calcite-components/TEGL7RHQ.js +0 -6
  1226. package/dist/solutions-components/vendor/calcite-components/TGH5IJQY.js +0 -6
  1227. package/dist/solutions-components/vendor/calcite-components/TGYJTTJS.js +0 -6
  1228. package/dist/solutions-components/vendor/calcite-components/TITRCHWJ.js +0 -6
  1229. package/dist/solutions-components/vendor/calcite-components/TRYKNJDA.js +0 -6
  1230. package/dist/solutions-components/vendor/calcite-components/TYYR7NIL.js +0 -8
  1231. package/dist/solutions-components/vendor/calcite-components/TZEZTECF.js +0 -6
  1232. package/dist/solutions-components/vendor/calcite-components/U2E5SVFR.js +0 -6
  1233. package/dist/solutions-components/vendor/calcite-components/U5VSHGIS.js +0 -6
  1234. package/dist/solutions-components/vendor/calcite-components/U64XMC5X.js +0 -6
  1235. package/dist/solutions-components/vendor/calcite-components/UK4SFYVV.js +0 -6
  1236. package/dist/solutions-components/vendor/calcite-components/UKF62PNM.js +0 -6
  1237. package/dist/solutions-components/vendor/calcite-components/UOL6J47W.js +0 -6
  1238. package/dist/solutions-components/vendor/calcite-components/UV7H22PE.js +0 -6
  1239. package/dist/solutions-components/vendor/calcite-components/UXOOSEIU.js +0 -6
  1240. package/dist/solutions-components/vendor/calcite-components/UXZ36VC5.js +0 -6
  1241. package/dist/solutions-components/vendor/calcite-components/UY67UAZN.js +0 -6
  1242. package/dist/solutions-components/vendor/calcite-components/VFBARPZ3.js +0 -6
  1243. package/dist/solutions-components/vendor/calcite-components/VGYCDODV.js +0 -6
  1244. package/dist/solutions-components/vendor/calcite-components/VHXHAFDO.js +0 -6
  1245. package/dist/solutions-components/vendor/calcite-components/VN2EAAQF.js +0 -6
  1246. package/dist/solutions-components/vendor/calcite-components/VOECRNMH.js +0 -6
  1247. package/dist/solutions-components/vendor/calcite-components/VQRNTTAX.js +0 -6
  1248. package/dist/solutions-components/vendor/calcite-components/VVXJONZL.js +0 -6
  1249. package/dist/solutions-components/vendor/calcite-components/W5CGAHOI.js +0 -6
  1250. package/dist/solutions-components/vendor/calcite-components/WA7LZURK.js +0 -6
  1251. package/dist/solutions-components/vendor/calcite-components/WAAS66H6.js +0 -6
  1252. package/dist/solutions-components/vendor/calcite-components/WAE55O4U.js +0 -6
  1253. package/dist/solutions-components/vendor/calcite-components/WAXI7XKE.js +0 -6
  1254. package/dist/solutions-components/vendor/calcite-components/WEFAANMG.js +0 -6
  1255. package/dist/solutions-components/vendor/calcite-components/WH772PDM.js +0 -6
  1256. package/dist/solutions-components/vendor/calcite-components/X43KWDQ7.js +0 -6
  1257. package/dist/solutions-components/vendor/calcite-components/X5W76SNV.js +0 -6
  1258. package/dist/solutions-components/vendor/calcite-components/X6IC7EBC.js +0 -6
  1259. package/dist/solutions-components/vendor/calcite-components/XBYWX3OD.js +0 -6
  1260. package/dist/solutions-components/vendor/calcite-components/XIJN5ZXM.js +0 -6
  1261. package/dist/solutions-components/vendor/calcite-components/XKQ2CMVV.js +0 -6
  1262. package/dist/solutions-components/vendor/calcite-components/YBQG5R2L.js +0 -6
  1263. package/dist/solutions-components/vendor/calcite-components/YHWNAASP.js +0 -6
  1264. package/dist/solutions-components/vendor/calcite-components/YMNUCKVA.js +0 -6
  1265. package/dist/solutions-components/vendor/calcite-components/YMR2Q5CU.js +0 -6
  1266. package/dist/solutions-components/vendor/calcite-components/YNGSTQ4R.js +0 -6
  1267. package/dist/solutions-components/vendor/calcite-components/YP2D5DKM.js +0 -6
  1268. package/dist/solutions-components/vendor/calcite-components/YPRJFE6R.js +0 -6
  1269. package/dist/solutions-components/vendor/calcite-components/YVIEKCN2.js +0 -6
  1270. package/dist/solutions-components/vendor/calcite-components/YWM7TWVP.js +0 -6
  1271. package/dist/solutions-components/vendor/calcite-components/YZ3FOSUR.js +0 -6
  1272. package/dist/solutions-components/vendor/calcite-components/YZG67JHT.js +0 -6
  1273. package/dist/solutions-components/vendor/calcite-components/ZBSXA5F6.js +0 -6
  1274. package/dist/solutions-components/vendor/calcite-components/ZFAXCWF5.js +0 -6
  1275. package/dist/solutions-components/vendor/calcite-components/ZFKXMQJP.js +0 -6
  1276. package/dist/solutions-components/vendor/calcite-components/ZK7O524P.js +0 -6
  1277. package/dist/solutions-components/vendor/calcite-components/ZKNKPGVW.js +0 -6
  1278. package/dist/solutions-components/vendor/calcite-components/ZLFRGGT3.js +0 -6
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as t,c as a,h as n,H as s,g as e,F as i}from"./p-8c40bdec.js";import{d as r,e as o,f as l,s as c,h as p,E as u,l as g,j as d,c as h}from"./p-2937baee.js";import"./p-ea19f91b.js";import"./p-08ad0b7a.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-ac122d9e.js";import"./p-fa639501.js";const m="instant-apps-components__ckeditor-wrapper",v=class{constructor(n){t(this,n),this.isFocused=a(this,"isFocused",7),this.dataChanged=a(this,"dataChanged",7),this.value=void 0,this.editorInstance=void 0,this.config=void 0}updateValue(){this.value&&this.editorInstance.setData(this.value)}async componentDidLoad(){this.init()}componentDidUpdate(){this.editorInstance.setData(this.value)}render(){return n(s,{key:"26f62d5413e21916b77253476cf48f69682861d5"},n("div",{key:"45a9d7b859a21e49c81afdaa3bdd5074f1428cd5"}))}init(){this.applyStyles(),this.initEditor()}applyStyles(){if(document.getElementById(m))return;const t=document.createElement("style");t.id=m,t.innerHTML="\n .ck.ck-reset.ck-editor.ck-rounded-corners {\n margin-top: 10px !important;\n margin-left: 55px !important;\n }\n .ck-editor__editable {\n height: 70px !important;\n font-size: 0.875rem !important;\n line-height: \t1.375 !important;\n color: var(--calcite-color-text-1) !important;\n }\n\n .ck.ck-editor__editable_inline>:first-child,\n .ck.ck-editor__editable_inline>:last-child {\n --ck-spacing-large: 0.5rem !important;\n }\n\n .ck.ck-balloon-panel.ck-powered-by-balloon {\n --ck-z-modal: 700;\n z-index: 700;\n }\n\n .calcite-mode-dark .ck-editor__editable {\n color: var(--calcite-color-text-inverse) !important;\n }\n",document.head.prepend(t)}async initEditor(){const t=await this.createEditor();t&&(this.editorInstance=t,(this.value||""===this.value)&&t.setData(this.value),t.editing.view.document.on("change:isFocused",this.getEditorFocusedCallback(t)))}async createEditor(){try{let t;return t=this.config?await ClassicEditor.create(this.el,this.config):await ClassicEditor.create(this.el),this.editorInstance=t,Promise.resolve(t)}catch(t){return console.error(t),Promise.reject(null)}}getEditorFocusedCallback(t){return(a,n,s)=>{if(s)this.isFocused.emit();else{const a=t.getData();this.value!==a&&(this.value=a,this.dataChanged.emit(a))}}}get el(){return e(this)}static get watchers(){return{value:["updateValue"]}}};v.style=":host{display:block}";const _="instant-apps-language-translator-item",f={section:`${_}__section`,selected:`${_}__section--selected`,collapsed:`${_}__section--collapsed`,topRow:`${_}__top-row`,labelContainer:`${_}__label-container`,label:`${_}__label`,uiLocationPopoverContent:`${_}__ui-location-popover-content`,uiLocationItems:`${_}__ui-location-items`,uiLocationItem:`${_}__ui-location-item`,infoIcon:`${_}__info-icon`,infoButton:`${_}__info-button`,tip:`${_}__tip`,nestedInput:`${_}__nested-input`},b=class{constructor(n){t(this,n),this.translatorItemDataUpdated=a(this,"translatorItemDataUpdated",7),this.userInputs={},this.translatedInputs={},this.fieldName=void 0,this.translatedLanguageLabels=void 0,this.setting=void 0,this.userLocaleInputOnChangeCallback=void 0,this.translatedLocaleInputOnChangeCallback=void 0}get isTextEditor(){return this.setting.type===r.TextEditor}get calciteMode(){return o()?l.Dark:l.Light}get hasNestedContent(){var t;return!!(null===(t=this.setting)||void 0===t?void 0:t.content)}get tipID(){return`${this.fieldName}goTo`}componentDidLoad(){this.isTextEditor&&c.onChange("uiData",(()=>this.handleEditorCollapse()))}render(){var t;return"content"in this.setting&&(null===(t=this.setting.content)||void 0===t?void 0:t.every((t=>{var a;return 0===(null===(a=null==t?void 0:t.content)||void 0===a?void 0:a.length)})))?n(i,null):n(s,{class:this.calciteMode},this.renderBase(),this.renderPopover())}renderBase(){return n("div",{class:_},this.renderUserLocaleSection(),this.renderTranslatedLanguageSection())}renderPopover(){const t=this.getTip();return n("calcite-popover",{referenceElement:this.tipID,label:"","auto-close":"true",placement:"trailing",closable:!0},n("span",{class:f.uiLocationPopoverContent},n("span",{class:f.uiLocationItems},this.getUILocation()),t?n("span",{class:f.tip},t):null))}renderUserLocaleSection(){const t=this.getUIDataItem(),a=null==t?void 0:t.userLocaleData,s=null==a?void 0:a.value,e=this.setting.id;return n("div",{class:`${f.section}${(null==t?void 0:t.selected)?` ${f.selected}`:""}`},this.renderItemHeader(p.User,null==a?void 0:a.label,e),this.handleInputRender(p.User,s,e))}renderTranslatedLanguageSection(){var t,a;const s=this.getUIDataItem(),e=this.setting.id,i=c.get("currentLanguage"),r=c.get("portalItemResourceT9n"),o=null===(t=this.translatedLanguageLabels)||void 0===t?void 0:t[this.fieldName],l=null===(a=null==r?void 0:r[i])||void 0===a?void 0:a[e];return n("div",{class:`${f.section}${(null==s?void 0:s.selected)?` ${f.selected}`:""}`},this.renderItemHeader(p.Translation,o,e),this.handleInputRender(p.Translation,l,e))}handleInputRender(t,a,n){const s=this.getUIDataItem();return(null==s?void 0:s.expanded)?this.hasNestedContent?this.renderNestedInputs(t):this.renderInput(t,a,n):null}renderNestedInputs(t,a){const n=null!=a?a:this.setting,{content:s}=n;return null==s?void 0:s.map((a=>a.hasOwnProperty("content")?this.renderNestedInputs(t,a):this.renderNestedInput(t,a)))}renderNestedInput(t,a){var s;const e=c.get("currentLanguage"),i=c.get("portalItemResourceT9n"),r=null==a?void 0:a.id,o=null==i?void 0:i[e],l=null==o?void 0:o[r],{label:u,value:g,id:d}=a,h=t===p.Translation?null===(s=this.translatedLanguageLabels)||void 0===s?void 0:s[d]:u,m=t===p.User?g:l;return n("div",{class:f.nestedInput},this.renderItemHeader(t,h,r,a),this.renderInput(t,m,r,a))}renderItemHeader(t,a,s,e){const i=!this.hasNestedContent||!!e;return n("div",{class:f.topRow},this.renderItemHeaderLabel(t,a,e),i?this.renderCopyButton(t,s):null)}renderItemHeaderLabel(t,a,s){const e=t===p.User&&!s;return n("div",{class:f.labelContainer},s?null:this.renderExpandCollapseButton(),n("calcite-icon",{icon:this.getIcon(s),scale:"s"}),n("span",{class:f.label},a),e?this.renderInfoButton():null)}renderExpandCollapseButton(){const t=this.getUIDataItem(),a=(null==t?void 0:t.expanded)?u.Expanded:u.Collapsed;return n("calcite-action",{onClick:this.handleExpand.bind(this,t),icon:a,scale:"s",appearance:"transparent",text:""})}renderInfoButton(){return n("button",{id:this.tipID,class:f.infoButton},n("calcite-icon",{class:f.infoIcon,icon:u.Popover,scale:"s"}))}renderCopyButton(t,a){return n("calcite-action",{class:this.calciteMode,onClick:this.copySelection.bind(this,t,a),slot:"action",icon:u.Copy,appearance:"transparent",text:""})}renderInput(t,a,n,s){const e=null!=s?s:this.setting;return"string"===e.type||"textarea"===e.type?t===p.User?this.renderUserLocaleInput(a,n):this.renderTranslatedLanguageInput(a,n):this.renderTextEditor(a,t,n)}renderUserLocaleInput(t,a){return n("calcite-input",{ref:t=>this.userInputs[a]=t,key:a,id:a,class:l.Light,"data-field-name":this.fieldName,value:t,onFocus:this.handleSelection,onCalciteInputChange:this.handleUserInputChange.bind(this)})}renderTranslatedLanguageInput(t,a){return n("calcite-input",{ref:t=>this.translatedInputs[a]=t,key:a,id:a,class:l.Light,"data-field-name":this.fieldName,value:t,onFocus:this.handleSelection,onCalciteInputChange:this.handleTranslatedInputChange.bind(this)})}renderTextEditor(t,a,s){return n("instant-apps-ckeditor-wrapper",{id:s,ref:this.setEditor.bind(this,a),onDataChanged:this.handleTextEditorDataChange.bind(this,a),onIsFocused:this.handleSelection,value:null!=t?t:"","data-field-name":this.fieldName,config:{toolbar:[]}})}getUIDataItem(){if(g.uiData)return g.uiData.get(this.fieldName)}updateT9nStore(t,a){const n=c.get("currentLanguage"),s=d(n,{[t]:a});c.set("portalItemResourceT9n",s)}handleExpand(){const t=this.getUIDataItem();t.expanded=!t.expanded;const a=new Map(g.uiData);a.set(this.fieldName,t),c.set("uiData",a)}handleEditorCollapse(){var t,a;const n=c.get("uiData"),s=null==n?void 0:n.get(this.fieldName);if(!(null==s?void 0:s.expanded)&&(null===(t=this.userEditorWrapper)||void 0===t?void 0:t.editorInstance)&&(null===(a=this.translatedEditorWrapper)||void 0===a?void 0:a.editorInstance)){const{userEditorWrapper:t,translatedEditorWrapper:a}=this,n=t.editorInstance.getData();t.value=n;const s=a.editorInstance.getData();a.value=s,t.editorInstance.destroy(),a.editorInstance.destroy()}}handleSelection(t){const a=new Map(g.uiData),n=h();n.forEach((t=>{(null==a?void 0:a.get(t)).selected=!1})),n.forEach((n=>{const s=null==t?void 0:t.target;n===(null==s?void 0:s.getAttribute("data-field-name"))&&((null==a?void 0:a.get(n)).selected=!0)})),c.set("uiData",a)}getUILocation(){const t=this.getUIDataItem(),{uiLocation:a,userLocaleData:s}=t,{section:e,subsection:i}=a,r=[e.label,i.label,s.label].filter((t=>!!t));return r.map(((t,a)=>n("span",{class:f.uiLocationItem},n("span",null,t),a!==r.length-1?n("calcite-icon",{icon:"chevron-right",scale:"s"}):null)))}getTip(){const t=this.getUIDataItem(),{tip:a}=t;return a}copySelection(t,a){this.setting.type===r.TextEditor?this.copyTextEditorContent(t):this.copyCalciteInputContent(a,t)}copyTextEditorContent(t){var a,n;const s=t===p.User?null===(a=this.userEditorWrapper)||void 0===a?void 0:a.editorInstance:null===(n=this.translatedEditorWrapper)||void 0===n?void 0:n.editorInstance;setTimeout((()=>{this.selectContent(s),setTimeout((()=>this.selectContent(s)),50)}),50),this.copyContent(s)}selectContent(t){t.editing.view.focus();const{model:a}=t,n=a.createRangeIn(a.document.getRoot());a.change((t=>t.setSelection(n)))}copyContent(t){const a=t.getData(),n=document.createElement("div");n.contentEditable="true",n.innerHTML=a,document.body.appendChild(n);const s=document.createRange();s.selectNodeContents(n);const e=window.getSelection();null==e||e.removeAllRanges(),null==e||e.addRange(s),document.execCommand("copy"),document.body.removeChild(n)}copyCalciteInputContent(t,a){const n=a===p.User?this.userInputs[t]:this.translatedInputs[t];n&&(n.selectText(),navigator.clipboard.writeText(n.value))}setEditor(t,a){t===p.User?this.userEditorWrapper=a:this.translatedEditorWrapper=a}async handleUserInputChange(t){c.set("saving",!0);try{const a=t.target,n=a.id,s=a.value;this.getUIDataItem().userLocaleData.value=s,await this.userLocaleInputOnChangeCallback(n,s),c.set("saving",!1)}catch(t){c.set("saving",!1)}}async handleUserTextEditorChange(t){c.set("saving",!0);try{const a=t.detail,n=t.target.id;this.getUIDataItem().userLocaleData.value=a,await this.userLocaleInputOnChangeCallback(n,a),c.set("saving",!1)}catch(t){c.set("saving",!1)}}async handleTranslatedInputChange(t){c.set("saving",!0);try{const a=t.composedPath()[0],n=a.id;this.updateT9nStore(n,a.value);const{locale:s,resource:e}=this.getTranslatedLocaleCallbackData(),i=t.target.value;await this.translatedLocaleInputOnChangeCallback(n,i,s,e),setTimeout((()=>c.set("saving",!1)),1500),this.translatorItemDataUpdated.emit()}catch(t){console.error("Error writing to portal item resource: ",t),c.set("saving",!1)}}async handleTranslatedTextEditorChange(t){c.set("saving",!0);try{const a=t.target.id;this.updateT9nStore(a,t.detail);const{locale:n,resource:s}=this.getTranslatedLocaleCallbackData(),e=t.detail;await this.translatedLocaleInputOnChangeCallback(a,e,n,s),setTimeout((()=>c.set("saving",!1)),1500),this.translatorItemDataUpdated.emit()}catch(t){console.error("Error writing to portal item resource: ",t),c.set("saving",!1)}}handleTextEditorDataChange(t,a){t===p.User?this.handleUserTextEditorChange(a):this.handleTranslatedTextEditorChange(a)}getTranslatedLocaleCallbackData(){return{locale:c.get("currentLanguage"),resource:c.get("portalItemResource")}}getIcon(t){switch((null!=t?t:this.setting).stringType){case"title":return u.Title;case"subtitle":return u.Subtitle;case"text":return u.Text;case"button":return u.Button;case"string":return u.String;default:return u.SettingIndicator}}};b.style=".sc-instant-apps-language-translator-item-h{display:block}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item.sc-instant-apps-language-translator-item{display:flex}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item{padding:10px;border-bottom:1px solid var(--calcite-color-border-1);background-color:var(--calcite-color-foreground-2);width:49%}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item .instant-apps-language-translator-item__top-row.sc-instant-apps-language-translator-item{display:flex;align-items:center;justify-content:space-between}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item .instant-apps-language-translator-item__label-container.sc-instant-apps-language-translator-item{display:flex;align-items:center}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item .instant-apps-language-translator-item__label.sc-instant-apps-language-translator-item{display:inline-block;margin-left:10px;font-size:14px;font-weight:var(--calcite-font-weight-medium)}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item calcite-input.sc-instant-apps-language-translator-item{margin-top:10px;margin-left:55px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--last-item.sc-instant-apps-language-translator-item{border-bottom:none}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--selected.sc-instant-apps-language-translator-item{background-color:#f1faff}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item:first-child{margin-right:1%}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__ui-location-popover-content.sc-instant-apps-language-translator-item{display:inline-block;padding:10px;max-width:400px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__ui-location-items.sc-instant-apps-language-translator-item{display:flex}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__ui-location-item.sc-instant-apps-language-translator-item{display:flex;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:14px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__tip.sc-instant-apps-language-translator-item{display:inline-block;font-size:14px;line-height:22px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__info-icon.sc-instant-apps-language-translator-item{color:var(--calcite-color-brand)}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__info-button.sc-instant-apps-language-translator-item{border:0;background-color:transparent;cursor:pointer}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__nested-input.sc-instant-apps-language-translator-item{margin-left:60px;margin-top:8px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__nested-input.sc-instant-apps-language-translator-item calcite-input.sc-instant-apps-language-translator-item{margin-left:30px}.calcite-mode-dark.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--selected.sc-instant-apps-language-translator-item{background-color:#f1faff;background-color:var(--calcite-color-brand);color:var(--calcite-color-text-inverse)}.calcite-mode-dark.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--selected.sc-instant-apps-language-translator-item calcite-action.sc-instant-apps-language-translator-item{--calcite-ui-icon-color:var(--calcite-color-text-inverse)}.calcite-mode-dark.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--selected.sc-instant-apps-language-translator-item calcite-icon.sc-instant-apps-language-translator-item{color:var(--calcite-color-text-inverse)}.instant-apps-language-translator--last-item.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item{border-bottom:none}";const x="instant-apps-language-translator-search",k={base:x,input:`${x}__input`,suggestionList:`${x}__suggestion-list`,suggestionListItem:`${x}__suggestion-list-item`},y=class{constructor(n){t(this,n),this.suggestionSelected=a(this,"suggestionSelected",7),this.t9nPlaceholder=void 0,this.results=[]}render(){return n(s,{key:"80febf289e2bbfcf09636c84b5a5a83e80f377c0"},this.renderSearchInput(),this.renderSuggestions())}renderSearchInput(){return n("calcite-input",{ref:t=>this.searchInput=t,class:k.input,onCalciteInputInput:this.handleSearch.bind(this),type:"search",placeholder:this.t9nPlaceholder,icon:"search"})}renderSuggestions(){return this.results.length>0?this.renderSuggestionList():null}renderSuggestionList(){return n("ul",{class:k.suggestionList},this.results.map((t=>this.renderSuggestionListItem(t))))}renderSuggestionListItem(t){return n("li",{onClick:this.selectSuggestion.bind(this),class:k.suggestionListItem,"data-field-name":t.fieldName},t.userLocaleData.label)}handleSearch(t){var a,n;const s=null===(n=null===(a=t.target.value)||void 0===a?void 0:a.toLowerCase())||void 0===n?void 0:n.trim(),e=c.get("uiData"),i=h(),r=c.get("portalItemResourceT9n"),o=c.get("currentLanguage"),l=r[o],p=this.getSettingDataItems(i).filter(this.matchedResultsCallback(e,l,s,o));this.results=[...p.map((t=>Object.assign({fieldName:t},e.get(t))))]}matchedResultsCallback(t,a,n,s){return e=>{var i;const r=t.get(e),{label:o}=r.userLocaleData,{value:l}=r.userLocaleData,c=t.get("translatedLanguageLabels"),p=null===(i=null==c?void 0:c[s])||void 0===i?void 0:i[e],u=null==a?void 0:a[e],g=this.testUserInput(o,n),d=this.testUserInput(l,n),h=this.testUserInput(p,n),m=this.testUserInput(u,n);return g||d||h||m}}getSettingDataItems(t){return t.filter((t=>"locales"!==t&&"translatedLanguageLabels"!==t))}testUserInput(t,a){var n;return!!(null==t?void 0:t.trim())&&!!(null==a?void 0:a.trim())&&-1!==(null===(n=null==t?void 0:t.toLowerCase())||void 0===n?void 0:n.search(a))}selectSuggestion(t){const a=t.target.getAttribute("data-field-name");this.suggestionSelected.emit(a),this.resetSearchInput()}resetSearchInput(){this.searchInput.value="",this.results=[]}};y.style=".sc-instant-apps-language-translator-search-h{display:block;position:relative}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__input.sc-instant-apps-language-translator-search{width:235.5px}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__suggestion-list.sc-instant-apps-language-translator-search{position:absolute;margin:0;padding:0;width:100%;max-height:30vh;overflow:auto;border-left:none;background-color:var(--calcite-color-foreground-1);border:1px solid #c0c0c0;z-index:702}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__suggestion-list-item.sc-instant-apps-language-translator-search:first-child{border:none}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__suggestion-list-item.sc-instant-apps-language-translator-search{margin-top:0;padding:0.8em 1em;border-top:solid 1px rgba(110, 110, 110, 0.3);display:flex;flex-direction:column;cursor:pointer;word-break:break-word}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__suggestion-list-item.sc-instant-apps-language-translator-search:hover{background-color:var(--calcite-color-foreground-2)}";export{v as instant_apps_ckeditor_wrapper,b as instant_apps_language_translator_item,y as instant_apps_language_translator_search}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{l}from"./p-08ad0b7a.js";import{g as n}from"./p-89fbc318.js";import{c as o}from"./p-fa639501.js";const i=o({data:{},relationshipRampExpandStates:{},compact:!1}),u=i.state,v=i;async function d(l,n,o){var i,u,v,d,t,e,r,a,s;try{const c="group"===(null===(i=null==n?void 0:n.layer)||void 0===i?void 0:i.type),f=null===(v=null===(u=null==n?void 0:n.layer)||void 0===u?void 0:u.layers)||void 0===v?void 0:v.some((l=>l.visible)),$=null===(t=null===(d=null==n?void 0:n.layer)||void 0===d?void 0:d.layers)||void 0===t?void 0:t.every((l=>!(null==l?void 0:l.legendEnabled)));await o.whenOnce((()=>"ready"===(null==l?void 0:l.state))),!c||c&&f?c&&$?await o.whenOnce((()=>{var l;return null===(l=null==n?void 0:n.layer)||void 0===l?void 0:l.loaded})):await o.whenOnce((()=>null==n?void 0:n.ready)):await o.whenOnce((()=>null==n?void 0:n.legendElements));const y=null===(e=null==n?void 0:n.legendElements)||void 0===e?void 0:e[0],m=new Map,p=n.layer,N=await l.view.whenLayerView(p);await o.whenOnce((()=>!1===(null==N?void 0:N.updating)));const A=null===(r=p.renderer)||void 0===r?void 0:r.field;return void 0!==y&&(null===(a=null==y?void 0:y.infos)||void 0===a||a.forEach((l=>{var n;if("symbol-table"===l.type){const n=[];l.infos.forEach((l=>{n.push({count:null,selected:!1,legendElementInfo:l})})),m.set(l.title,{count:null,selected:!1,legendElementInfo:l,nestedInfos:n})}else m.set(null!==(n=l.label)&&void 0!==n?n:p.id,{count:null,selected:!1,legendElementInfo:l})}))),Promise.resolve({activeLayerInfo:n,title:null===(s=null==N?void 0:N.layer)||void 0===s?void 0:s.title,categories:m,field:A,queryExpressions:[],totalCount:null,fLayerView:N,legendElement:y})}catch(l){return Promise.resolve(null)}}async function t(l,n){const o={},i=[];l.activeLayerInfos.forEach(function(l,n,o){return i=>{var u;const v=null===(u=null==i?void 0:i.layer)||void 0===u?void 0:u.type;if("feature"===v||"group"===v){const u=d(n,i,o).then((l=>l));u&&l.push(u);const v=i=>{const u=d(n,i,o).then((l=>l));u&&l.push(u)};i.children.forEach((l=>{var n;v(l),(null===(n=null==l?void 0:l.children)||void 0===n?void 0:n.length)>0&&l.children.forEach((l=>{var n;v(l),(null===(n=null==l?void 0:l.children)||void 0===n?void 0:n.length)>0&&l.children.forEach((l=>{v(l)}))}))}))}}}(i,l,n));try{return(await Promise.all(i)).forEach((l=>{var n,i;return o[null===(i=null===(n=null==l?void 0:l.activeLayerInfo)||void 0===n?void 0:n.layer)||void 0===i?void 0:i.id]=l})),Promise.resolve(o)}catch(l){return Promise.reject(null)}}function e(l){return Array.from(l).map((l=>l[1]))}function r(l,n,o,i,u){var v,d,t;return i?null===(v=null==i?void 0:i.nestedInfos)||void 0===v?void 0:v[u]:null===(d=null==l?void 0:l.categories)||void 0===d?void 0:d.get(null!==(t=null==o?void 0:o.label)&&void 0!==t?t:null==n?void 0:n.id)}function a(l){var n;return null===(n=null==u?void 0:u.data)||void 0===n?void 0:n[null==l?void 0:l.id]}async function s(o,i,u,v,d){var t,e,r,a,s;const[$,m]=await l(["esri/layers/support/FeatureFilter","esri/layers/support/FeatureEffect"]),{queryExpressions:p,fLayerView:N}=o;!function(l,n,o,i){var u,v,d,t;const{field:e,legendElement:r,categories:a,fLayerView:s}=l,$=null==l?void 0:l.queryExpressions;i&&Array.from(l.categories).map((l=>l[1])).forEach((l=>{var n,o;(null===(n=l.nestedInfos)||void 0===n?void 0:n.every((l=>!l.selected)))&&(null===(o=l.nestedInfos)||void 0===o||o.forEach((l=>{const n=e?`${e} = '${l.legendElementInfo.value}'`:null,o=n?$.indexOf(n):-1;n&&-1!==o&&$.splice(o,1)})))}));const m=null==r?void 0:r.infos,p=y(s);let N=p?c(n,s):f(n,e,o,r,m,"");const A=a?i?null===(v=null===(u=a.get(i.title))||void 0===u?void 0:u.nestedInfos)||void 0===v?void 0:v[o]:a.get(null!==(d=n.label)&&void 0!==d?d:null===(t=null==s?void 0:s.layer)||void 0===t?void 0:t.id):null;A&&(A.selected=!(null==A?void 0:A.selected));const O=m&&1===m.length,w=$.indexOf(N);if(p){const l=$.indexOf(N);0===$.length||-1===l?($&&"1=0"===$[0]&&$.splice(0,1),$.push(N)):$&&1===$.length&&N===$[0]?$[0]="1=0":$&&1===$.length||$&&1===$.length&&N!==$[0]&&"1=0"===$[0]?$[0]=N:$&&1===$.length&&N===$[0]&&"1=0"===$[0]?$[0]=null:$.splice(l,1),$.join(" OR ")}else 0===$.length||-1===w?($&&"1=0"===$[0]&&$.splice(0,1),$.push(N)):$&&1===$.length&&N===$[0]&&!O?$[0]="1=0":$&&1===$.length&&!O||$&&1===$.length&&N!==$[0]&&"1=0"===$[0]&&!O?$[0]=N:$&&1===$.length&&N===$[0]&&"1=0"===$[0]&&!O?$[0]=null:$.splice(w,1);if(i){const n=[];Array.from(l.categories).map((l=>l[1])).forEach((l=>{var o,i;(null===(o=l.nestedInfos)||void 0===o?void 0:o.every((l=>!l.selected)))&&(null===(i=l.nestedInfos)||void 0===i||i.forEach((l=>{e&&`${e} = '${l.legendElementInfo.value}'`&&n.push(`${e} = '${l.legendElementInfo.value}'`)})))})),n.forEach((l=>{-1===$.indexOf(l)&&$.push(l)}))}}(o,i,u,d);const A=p.every((l=>l&&l.includes("<>")))?" AND ":" OR ",O=p.join(A),w=null!==(s=null!==(e=null===(t=null==N?void 0:N.filter)||void 0===t?void 0:t.timeExtent)&&void 0!==e?e:null===(a=null===(r=null==N?void 0:N.featureEffect)||void 0===r?void 0:r.filter)||void 0===a?void 0:a.timeExtent)&&void 0!==s?s:null,{type:b}=v;if("filter"===b)N.filter=new $({where:O,timeExtent:w});else if(v.effect){const{includedEffect:l,excludedEffect:o}=v.effect,i=await n(o,N,"excludedEffect"),u=await n(l,N,"includedEffect");N.featureEffect=new m({filter:new $({where:O,timeExtent:w}),includedEffect:u,excludedEffect:i})}return Promise.resolve()}function c(l,n){const o=n?n.layer.renderer.authoringInfo:null,i=o?o.fields:null,u=[];if(!i)return"";if(l.hasOwnProperty("value"))return i.forEach((n=>{l.value!==n&&u.push(`(${l.value} > ${n} OR (${n} IS NULL AND ${l.value} IS NOT NULL AND (${l.value} > 0 OR ${l.value} < 0)))`)})),u.join(" AND ");{const l=[];i.forEach((n=>{l.push(`${n} = 0`)}));const n=[];if(i.length>2){i.forEach((l=>{i.forEach((o=>{if(l===o)return;const u=[];i.forEach((n=>{l!==n&&o!==n&&u.push(`${l} = ${o} AND (${l} > ${n} OR ${l} >= ${n})`)})),n.push(`(${u.join(" AND ")})`)}))}));const o=[];return i.forEach((l=>{o.push(`${l} IS NULL`)})),`(${l.join(" AND ")}) OR (${n.join(" OR ")}) OR (${o.join(" AND ")})`}{const n=[];i.forEach((o=>{i.forEach((i=>{o!==i&&(n.push(`${o} = ${i}`),n.push(`(${l.join(" AND ")})`))}))}));const o=[];return i.forEach((l=>{i.forEach((n=>{l!==n&&o.push(`(${l} = 0 AND ${n} IS NULL) OR (${l} IS NULL AND ${n} IS NULL)`)}))})),`(${n.join(" OR ")}) OR (${o.join(" OR ")})`}}}function f(l,n,o,i,u,v){const{value:d}=l;if("symbol-table"===(null==i?void 0:i.type)){if(!l.hasOwnProperty("value")||Array.isArray(l.value)&&1===(null==u?void 0:u.length)){if((null==u?void 0:u[0].hasOwnProperty("value"))&&Array.isArray(null==u?void 0:u[0].value)&&(null==u?void 0:u[(null==u?void 0:u.length)-2])&&(null==u?void 0:u[(null==u?void 0:u.length)-2].hasOwnProperty("value"))&&Array.isArray(null==u?void 0:u[(null==u?void 0:u.length)-2].value))return v?`((${n}/${v}) > ${null==u?void 0:u[0].value[1]}) OR ((${n}/${v}) < ${null==u?void 0:u[(null==u?void 0:u.length)-2].value[0]}) OR ${v} = 0 OR ${v} IS NULL`:`${n} > ${null==u?void 0:u[0].value[1]} OR ${n} < ${null==u?void 0:u[(null==u?void 0:u.length)-2].value[0]} OR ${n} IS NULL`;if(1===(null==u?void 0:u.length))return"1=0";{const l=[];null==u||u.forEach((o=>{if(null==o?void 0:o.value){const{value:i}=o,u=-1!==i.indexOf("'")?i.split("'").join("''"):null,v=u?`${n} <> '${u}'`:isNaN(i)||"string"==typeof i&&!i.trim()?`${n} <> '${i}'`:`${n} <> ${i} AND ${n} <> '${i}'`;l.push(v)}}));const o=l.join(" AND ");return n&&o?`${o} OR ${n} IS NULL`:""}}{const i=-1!==d.indexOf("'")?d.split("'").join("''"):null,t=Array.isArray(l.value),e=(null==u?void 0:u.length)-1===o,r=!(null==u?void 0:u[(null==u?void 0:u.length)-1].hasOwnProperty("value")),a=o===(null==u?void 0:u.length)-2;return t?v?e||r&&a?`(${n}/${v}) >= ${d[0]} AND (${n}/${v}) <= ${l.value[1]}`:`(${n}/${v}) > ${d[0]} AND (${n}/${v}) <= ${l.value[1]}`:e||r&&a?`${n} >= ${d[0]} AND ${n} <= ${d[1]}`:`${n} > ${d[0]} AND ${n} <= ${d[1]}`:1===(null==u?void 0:u.length)&&n?isNaN(d)||!d.trim().length?`${n} <> '${d}'`:`${n} <> ${d} OR ${n} <> '${d}'`:i?`${n} = '${i}'`:isNaN(d)||!d.trim().length?`${n} = '${d}'`:`${n} = ${d} OR ${n} = '${d}'`}}return""}function $(l){return Array.isArray(l)?l.every((l=>!l.selected)):l&&Array.from(l.categories.entries()).every((l=>!l[1].selected))&&"1=0"!==l.queryExpressions[0]}function y(l){var n,o,i;return"predominance"===(null===(i=null===(o=null===(n=null==l?void 0:l.layer)||void 0===n?void 0:n.renderer)||void 0===o?void 0:o.authoringInfo)||void 0===i?void 0:i.type)}function m(l){var n;return"relationship-ramp"===(null===(n=null==l?void 0:l.legendElements[1])||void 0===n?void 0:n.type)}function p(l,n,o){var i,u,v,d,t,e,r,a,s,c,f,$,m,p,N,A,O,w,b;const E=l.layer,R=null===(i=null==E?void 0:E.renderer)||void 0===i?void 0:i.field,L=null==n?void 0:n.type,D=null==l?void 0:l.layerView,I=null===(v=null===(u=null==D?void 0:D.layer)||void 0===u?void 0:u.renderer)||void 0===v?void 0:v.classBreakInfos,g=(null===(t=null===(d=null==D?void 0:D.layer)||void 0===d?void 0:d.renderer)||void 0===t?void 0:t.uniqueValueInfos)&&R,x="size-ramp"===L,h="color-ramp"===L,P="opacity-ramp"===L,j="heatmap-ramp"===L,U=D&&I&&I.length>1,z=null===(a=null===(r=null===(e=null==D?void 0:D.layer)||void 0===e?void 0:e.renderer)||void 0===r?void 0:r.authoringInfo)||void 0===a?void 0:a.type,F="class-breaks-color"===z,k="class-breaks-size"===z,q=1===(null===(s=null==n?void 0:n.infos)||void 0===s?void 0:s.length)&&!R,V="relationship"===z&&"size-ramp"!==(null==n?void 0:n.type)&&"symbol-table"!==(null==n?void 0:n.type),C="feature"===(null===(c=null==l?void 0:l.layer)||void 0===c?void 0:c.type),T=C&&R&&!h&&!x&&U,M=!(!C||!R||h||x||U),B=!!(M||y(D)&&!x||F&&R||k&&R||q&&!R&&null!==R||V||g),G=(null===(f=null==l?void 0:l.layer)||void 0===f?void 0:f.featureReduction)&&"size-ramp"===(null===(m=null===($=null==l?void 0:l.legendElements)||void 0===$?void 0:$[o])||void 0===m?void 0:m.type),H="symbol-table"===(null==n?void 0:n.type)&&1===(null===(p=null==n?void 0:n.infos)||void 0===p?void 0:p.length),J=!(null==l?void 0:l.legendElements.every((l=>"color-ramp"!==l.type))),K=!(null==l?void 0:l.legendElements.every((l=>"size-ramp"!==l.type))),Q=H&&J,W=H&&K,X=null===(N=null==n?void 0:n.infos)||void 0===N?void 0:N.every((l=>"number"==typeof l.value)),Y="symbol-table"===(null===(O=null===(A=null==l?void 0:l.legendElements)||void 0===A?void 0:A[0])||void 0===O?void 0:O.type)&&"color-ramp"===(null===(b=null===(w=null==l?void 0:l.legendElements)||void 0===w?void 0:w[1])||void 0===b?void 0:b.type),Z="dot-density"===z,_=S(null==l?void 0:l.layer,R);return!(!C||G||P||j||Q||W||X||Y||Z||!_)&&(I?T||B:M||B)}function N(l){var n,o,i,u,v;return l.queryExpressions=[],(null===(o=null===(n=null==l?void 0:l.fLayerView)||void 0===n?void 0:n.filter)||void 0===o?void 0:o.where)&&(l.fLayerView.filter.where=""),(null===(v=null===(u=null===(i=null==l?void 0:l.fLayerView)||void 0===i?void 0:i.featureEffect)||void 0===u?void 0:u.filter)||void 0===v?void 0:v.where)&&(l.fLayerView.featureEffect=null),l.categories.forEach((l=>{l.selected=!1})),l}function A(l,n){var o,i,u,v,d,t,e,r,a,s,c;const f=l.categories.get(n);null===(o=null==f?void 0:f.nestedInfos)||void 0===o||o.forEach((n=>{const o=l.queryExpressions.indexOf(`${l.field} = '${n.legendElementInfo.value}'`);-1!==o&&l.queryExpressions.splice(o,1),n.selected=!1}));const $=[],y=Array.from(l.categories).map((l=>l[1]));y.forEach((n=>{var o,i;(null===(o=n.nestedInfos)||void 0===o?void 0:o.every((l=>!l.selected)))&&(null===(i=n.nestedInfos)||void 0===i||i.forEach((n=>{$.push(`${l.field} = '${n.legendElementInfo.value}'`)})))})),$.forEach((n=>{-1===l.queryExpressions.indexOf(n)&&l.queryExpressions.push(n)}));let m=l.queryExpressions.join(" OR ");const p=y.every((l=>{var n;return null===(n=l.nestedInfos)||void 0===n?void 0:n.every((l=>!l.selected))}));return p?((null===(u=null===(i=null==l?void 0:l.fLayerView)||void 0===i?void 0:i.filter)||void 0===u?void 0:u.where)&&(l.fLayerView.filter.where=""),(null===(t=null===(d=null===(v=null==l?void 0:l.fLayerView)||void 0===v?void 0:v.featureEffect)||void 0===d?void 0:d.filter)||void 0===t?void 0:t.where)&&(l.fLayerView.featureEffect=null),l.queryExpressions=[]):((null===(r=null===(e=null==l?void 0:l.fLayerView)||void 0===e?void 0:e.filter)||void 0===r?void 0:r.where)&&(l.fLayerView.filter.where=m),(null===(c=null===(s=null===(a=null==l?void 0:l.fLayerView)||void 0===a?void 0:a.featureEffect)||void 0===s?void 0:s.filter)||void 0===c?void 0:c.where)&&(l.fLayerView.featureEffect.filter.where=m)),l}async function O(l,n,o){var i,u;const v=l.fLayerView.createQuery();if(o)if(o.nestedInfos.every((l=>!l.selected))){const n=o.nestedInfos.map((n=>`${l.field} = '${n.legendElementInfo.value}'`)).join(" OR ");v.where=n}else{const n=o.nestedInfos.filter((l=>l.selected)).map((n=>`${l.field} = '${n.legendElementInfo.value}'`)).join(" OR ");v.where=n}else{const n=l.queryExpressions.join(" OR ");v.where=n}try{const{extent:o}=await(null===(u=null===(i=null==l?void 0:l.fLayerView)||void 0===i?void 0:i.layer)||void 0===u?void 0:u.queryExtent(v));await n.goTo(o)}catch(l){}}function w(l){return l.map((l=>null==l?void 0:l.count)).reduce(((l,n)=>l+n))}function b(l){return l.map((l=>{var n;return null===(n=null==l?void 0:l.nestedInfos)||void 0===n?void 0:n.map((l=>l.count)).reduce(((l,n)=>l+n))})).reduce(((l,n)=>l+n))}async function E(l,n,o,i,u,v,d,t){var e,r,a;if(!n)return;if(!S(null==n?void 0:n.layer,o))return;const s="feature"===(null===(e=null==n?void 0:n.layer)||void 0===e?void 0:e.type)?n.createQuery():null,$=y(n)?c(i,n):i.type?f(d,o,t,i,i.infos):f(i,o,u,v,v.infos);s&&$&&(s.where="1=0"===$?"1=1":$,s.geometry=l);try{const l=s?await n.queryFeatureCount(s):null;return Promise.resolve({[null!==(r=i.label)&&void 0!==r?r:null===(a=null==n?void 0:n.layer)||void 0===a?void 0:a.id]:l})}catch(l){console.error("FAILURE AT 'getInfoCount': ",l)}return Promise.resolve(null)}async function R(l,n){let o=Object.assign({},n);const{activeLayerInfos:i}=l;let u={};const v={};i.forEach((async o=>{var i,u,d,t;const e=o.legendElements[0],r=null===(u=n[null===(i=null==o?void 0:o.layer)||void 0===i?void 0:i.id])||void 0===u?void 0:u.fLayerView,a=null===(d=o.layer.renderer)||void 0===d?void 0:d.field,s=[];v[o.layer.id]=[],null===(t=null==e?void 0:e.infos)||void 0===t||t.forEach(((n,i)=>{var u;const d=null===(u=e.infos)||void 0===u?void 0:u.every((l=>"symbol-table"===l.type));if(d){const u=[];n.infos.forEach(((o,v)=>{const d=E(l.view.extent,r,a,n,i,e,o,v);u.push(d)})),v[o.layer.id].push(u)}else s.push(E(l.view.extent,r,a,n,i,e)),v[o.layer.id]=s}));const c=o=>{var i,u,d,t;const e=[],r=o.legendElements[0],a=null===(u=n[null===(i=null==o?void 0:o.layer)||void 0===i?void 0:i.id])||void 0===u?void 0:u.fLayerView,s=null===(d=o.layer.renderer)||void 0===d?void 0:d.field;null===(t=null==r?void 0:r.infos)||void 0===t||t.forEach(((n,o)=>e.push(E(l.view.extent,a,s,n,o,r)))),v[o.layer.id]=e};o.children.forEach((async l=>{var n;c(l),(null===(n=null==l?void 0:l.children)||void 0===n?void 0:n.length)>0&&l.children.forEach((l=>{var n;c(l),(null===(n=null==l?void 0:l.children)||void 0===n?void 0:n.length)>0&&l.children.forEach((l=>{c(l)}))}))}))}));for(const l in v){let n=u[l];n||(n=u[l]={});const o=await Promise.all(v[l]);if(o.every((l=>Array.isArray(l)))){const i=await Promise.all(o.map((async l=>(await Promise.all(l)).map((l=>l&&Object.values(l)[0])))));n[l]=i,u[l]=Object.assign({},n[l])}else{const i={};o.forEach((l=>{if(!l)return;const n=Object.keys(l)[0];i[n]=l[n]})),l&&(n[l]=i),u[l]=Object.assign({},n[l])}}return i.forEach((l=>{var o;const i=n[l.layer.id],v=l.layer.id;null===(o=null==i?void 0:i.categories)||void 0===o||o.forEach(((n,o)=>{var d;const t=Array.from(null==i?void 0:i.categories).findIndex((l=>l[0]===o));if(null==n?void 0:n.nestedInfos)null==n||n.nestedInfos.forEach(((n,o)=>{var i,v,d;const e=null===(d=null===(v=null==u?void 0:u[null===(i=null==l?void 0:l.layer)||void 0===i?void 0:i.id])||void 0===v?void 0:v[t])||void 0===d?void 0:d[o];n.count=isNaN(e)?null:e}));else{const l=null===(d=null==u?void 0:u[v])||void 0===d?void 0:d[o];n.count=isNaN(l)?null:l}}));const d=l=>{var o;const i=l.layer.id,v=n[i];null===(o=null==v?void 0:v.categories)||void 0===o||o.forEach(((l,n)=>{var o;const v=null===(o=null==u?void 0:u[i])||void 0===o?void 0:o[n];l.count=v}))};l.children.forEach((l=>{var n;d(l),(null===(n=null==l?void 0:l.children)||void 0===n?void 0:n.length)>0&&l.children.forEach((l=>{var n;d(l),(null===(n=null==l?void 0:l.children)||void 0===n?void 0:n.length)>0&&l.children.forEach((l=>{d(l)}))}))}))})),Promise.resolve(o)}function L(l,n){var o;return null===(o=null==l?void 0:l.nestedInfos)||void 0===o?void 0:o[n]}function D(l){return Array.from(l).map((l=>l[1])).every((l=>!!(null==l?void 0:l.nestedInfos)))}function I(l){var n,o,i,u;return!!(null===(u=null===(i=null===(o=null===(n=null==l?void 0:l.legendElements)||void 0===n?void 0:n[0])||void 0===o?void 0:o.infos)||void 0===i?void 0:i.every)||void 0===u?void 0:u.call(i,(l=>"symbol-table"===(null==l?void 0:l.type))))}function g(l,n){var o;return null===(o=null==l?void 0:l.categories)||void 0===o?void 0:o.get(null==n?void 0:n.title)}function x(l){const n="calcite-mode-",o=`${n}light`,i=`${n}dark`;return l.classList.contains(i)?i:o}function h(l){if(l.layerId&&l.intLegendLayerData){const n=l.layerId,o=l.intLegendLayerData,i=Object.assign(Object.assign({},u.data),{[n]:o});v.set("data",i)}}function P(o,i){const{type:u}=o;"filter"===u?function(l){var n,o;null===(o=null===(n=null==l?void 0:l.allLayerViews)||void 0===n?void 0:n.filter((l=>{var n;return"feature"===(null===(n=null==l?void 0:l.layer)||void 0===n?void 0:n.type)})))||void 0===o||o.forEach((l=>{const n=j(l);l.filter=n,l.set("featureEffect",null)}))}(i):"effect"===u&&function(o,i){var u;null===(u=null==i?void 0:i.allLayerViews)||void 0===u||u.filter((l=>{var n;return"feature"===(null===(n=null==l?void 0:l.layer)||void 0===n?void 0:n.type)})).forEach((async i=>{if((null==o?void 0:o.effect)&&i){const[u]=await l(["esri/layers/support/FeatureEffect"]),{includedEffect:v,excludedEffect:d}=o.effect,t=await n(d,i,"excludedEffect"),e=await n(v,i,"includedEffect"),r=j(i);i.featureEffect=new u({filter:r,includedEffect:e,excludedEffect:t}),i.set("filter",null)}}))}(o,i)}function j(l){var n;return(null==l?void 0:l.filter)||(null===(n=null==l?void 0:l.featureEffect)||void 0===n?void 0:n.filter)}function S(l,n){const o=null==l?void 0:l.fields,i=o&&o.map((l=>l.name));return!n||i&&i.includes(n)}function U(l){const n=[];return l.forEach((l=>z(l,n))),n}function z(l,n){n.push(l),l.children&&l.children.length>0&&l.children.forEach((l=>{z(l,n)}))}export{g as a,r as b,$ as c,R as d,t as e,U as f,x as g,P as h,u as i,d as j,s as k,a as l,I as m,m as n,A as o,N as p,e as q,D as r,v as s,b as t,h as u,p as v,w,L as x,O as z}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as e,c as t,g as a,h as l,H as c}from"./p-8c40bdec.js";import{E as i,a as s,b as d}from"./p-747d4b59.js";const r=class{constructor(a){e(this,a),this.deductValueComplete=t(this,"deductValueComplete",7)}get el(){return a(this)}_densityElement;_typeElement;_severityElement;_types=Object.keys(i).filter((e=>!isNaN(Number(i[e]))));deductValueComplete;render(){return l(c,{key:"bef351adfb4972c2bd84709220171922a4649cd7"},l("div",{key:"51065f0afbe4c2a2c2351f7a41a621d5d1dc8ba2",class:"label-display"},l("calcite-label",{key:"3c9e587ef5b6becd188cb109ec4c262fdb829d92",class:"label-display"},"Density %",this._getDensityInput()),l("calcite-label",{key:"a274eddffc391680e55edc8582ba0c3ade78b48e",class:"label-display"},"Type",this._getTypeInput()),l("calcite-label",{key:"300d544f83a425dc43d6725322d2381872b1acd9",class:"label-display"},"Severity",this._getSeverityInput())),l("div",{key:"511ed7788c57fc3ff8e162f0b910b1ed2a974b3d"},this._getCalculateInput()))}_getDensityInput(){return l("calcite-input",{max:100,min:0,ref:e=>{this._densityElement=e},type:"number"})}_getTypeInput(){return l("calcite-select",{label:"",ref:e=>{this._typeElement=e}},this._types.map(((e,t)=>l("calcite-option",{value:i[e].toString()},`${e} (${t+1})`))))}_getSeverityInput(){return l("calcite-select",{label:"",ref:e=>{this._severityElement=e}},l("calcite-option",{value:s.H},"High"),l("calcite-option",{value:s.M},"Medium"),l("calcite-option",{value:s.L},"Low"))}_getCalculateInput(){return l("calcite-button",{onClick:()=>this._calculateDeduct(parseFloat(this._typeElement.value),this._severityElement.value,parseFloat(this._densityElement.value))},"Calculate Deduct Value")}_calculateDeduct(e,t,a){if(e&&t&&!isNaN(a)){const l=d(e.toString(),t.toString(),a.toString(),!0);this.deductValueComplete.emit(l),alert(l)}else alert("Type, severity, and a density number are required")}};r.style=":host{display:block;--calcite-label-margin-bottom:0}.label-display{display:block;padding-bottom:1rem}";export{r as deduct_calculator}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as t,c as i,h as s,H as e,g as n}from"./p-8c40bdec.js";import{l as o}from"./p-08ad0b7a.js";import{g as a}from"./p-ea19f91b.js";import{g as l}from"./p-a9a72626.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-ac122d9e.js";const r="instant-apps-filter-list calcite-mode-light",c=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function d(t){return t.replaceAll("'","''")}function h(t,i=!1){if(t){const s=new Date(t),e=`${s.getFullYear()}-${s.getMonth()+1}-${s.getDate()}`;return i?`${e} ${s.getHours()}:${s.getMinutes()}:${s.getSeconds()}`:e}}function p(t){var i;if(null!=t){t.value=["",""];const s=null===(i=t.shadowRoot)||void 0===i?void 0:i.querySelectorAll("calcite-input");if(null!=s)for(const t of s)t.value=""}}const u="instant-apps-filter-list__item-container--user-input",v=class{constructor(s){t(this,s),this.filterListReset=i(this,"filterListReset",7),this.filterUpdate=i(this,"filterUpdate",7),this.isLayerExpUpdated=!1,this.layerExpressions=void 0,this.autoUpdateUrl=!1,this.closeBtn=!1,this.closeBtnOnClick=void 0,this.comboboxOverlayPositioning="absolute",this.closeBtnText=void 0,this.openFilters=!1,this.extentSelector=!1,this.extentSelectorConfig=void 0,this.urlParams=void 0,this.filterCount=0,this.view=void 0,this.zoomBtn=!0,this.resetBtn=!0,this.resetFiltersOnDisconnect=!0,this.loading=void 0,this.filterLayerExpressions=void 0,this.messages=void 0,this.baseClass=r,this.initDefExpressions=void 0,this.initMapImageExpressions=void 0,this.initPointCloudFilters=void 0}watchViewHandler(){this.handleWhenView()}watchLayerExpressions(){this.resetAllFilters(),this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate()}getFilterInitState(){return Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}forceReset(){return this.resetExpressions(),Promise.resolve()}updateInitDefExpressions(t){return this.initDefExpressions=t.initDefExpressions,this.initMapImageExpressions=t.initMapImageExpressions,this.initPointCloudFilters=t.initPointCloudFilters,Promise.resolve()}getCurrentLayerExpressions(){const t=structuredClone(this.filterLayerExpressions);return Promise.resolve(t)}handleUpdatingT9nData(t){var i;return null==t||null===(i=this.filterLayerExpressions)||void 0===i||i.forEach((i=>{var s;const e=null==t?void 0:t.find((t=>t.id===i.id));null!=e&&(i.title=e.title,null===(s=i.expressions)||void 0===s||s.forEach((t=>{var i;const s=null===(i=e.expressions)||void 0===i?void 0:i.find((i=>i.id===t.id));null!=s&&(t.name=s.name)})))})),Promise.resolve()}connectedCallback(){null==this.layerExpressions&&null==this.view||(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}async componentWillLoad(){this.baseClass="dark"===l(this.el)?"instant-apps-filter-list calcite-mode-dark":r,await this.initializeModules(),a(this),this.isLayerExpUpdated||(this.isLayerExpUpdated=!0,this.filterLayerExpressions=null!=this.layerExpressions?structuredClone(this.layerExpressions):[],null!=this.view&&this.handleLayerExpressionsUpdate())}componentDidRender(){var t;null!=this.resetBtnEl&&(this.resetBtnEl.disabled=!((null===(t=this.filterLayerExpressions)||void 0===t?void 0:t.length)>0))}disconnectedCallback(){this.resetFiltersOnDisconnect&&(this.isLayerExpUpdated=!1,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.resetAllFilters())}async initializeModules(){const[t,i]=await o(["esri/intl","esri/geometry/support/jsonUtils"]);this.geometryJsonUtils=i,this.locale=t.getLocale(),this.intl=t}render(){const t=this.loading?this.renderLoading():this.initFilterConfig(),i=this.renderFooter();return s(e,{key:"b3949fb2efa7587520eee01619be306a936b2f05"},s("calcite-panel",{key:"2336ee3cd209346516ebb12780f7158fc88aa35c",class:this.baseClass,ref:t=>this.panelEl=t},s("slot",{key:"d7400f3192055b45d9f75d19fcac85138f2958f8",slot:"header-content",name:"filter-header-content"}),s("slot",{key:"fb684d06b51fd62fcc56129851444fad10beafc4",slot:"header-actions-end",name:"filter-header-actions-end"}),s("div",{key:"filter-container",class:"instant-apps-filter-list__container"},t,i)))}renderLoading(){return s("calcite-loader",{label:"Loading filters..."})}renderFilter(t){const{id:i}=t;return t.expressions.map(((e,n)=>"checkbox"==e.type||null==e.type?s("div",{key:`${i}-${n}`,class:"instant-apps-filter-list__item-container"},s("div",{class:"instant-apps-filter-list__title"},s("p",null,e.name)),s("div",{class:"instant-apps-filter-list__checkbox-container"},s("calcite-checkbox",{id:e.id.toString(),scale:"l",checked:null==e?void 0:e.active,onCalciteCheckboxChange:this.handleCheckboxChange.bind(this,t,e)}))):this.initInput(t,e)))}renderLayerBlock(){return this.filterLayerExpressions.map((t=>this.renderFilterBlocks(t)))}renderFilterBlocks(t){var i;const e=this.renderFilter(t),{operator:n}=t,o="OR"===(null==n?void 0:n.trim())?"orOperator":"andOperator",a=this.renderZoomTo(t);return s("calcite-block",{key:t.id,heading:t.title,description:null===(i=this.messages)||void 0===i?void 0:i[o],open:!!this.openFilters||void 0,collapsible:!0},a,e)}renderCombobox(t,i){var e;return s("label",{key:"combo-select",class:u},s("span",null,i.name),s("calcite-combobox",{id:i.id.toString(),onCalciteComboboxChange:this.handleComboSelect.bind(this,i,t),label:i.name,placeholder:i.placeholder,selectionMode:"multiple","max-items":"6",scale:"s",overlayPositioning:this.comboboxOverlayPositioning},null===(e=i.fields)||void 0===e?void 0:e.map(((t,s)=>this.renderComboboxItem(i,t,s)))))}renderComboboxItem(t,i,e){var n;const o=this.createLabel(t,i),a=null==t?void 0:t.selectedFields,l=null!==(n=null==a?void 0:a.includes(i))&&void 0!==n&&n;return s("calcite-combobox-item",{key:`${o}-${e}`,value:i,heading:`${o}`,selected:l})}initFilterConfig(){var t,i;if((null===(t=this.filterLayerExpressions)||void 0===t?void 0:t.length)>0){if(1===this.filterLayerExpressions.length){const{operator:t}=this.filterLayerExpressions[0],e="OR"===(null==t?void 0:t.trim())?"orOperator":"andOperator",n=this.renderZoomTo(this.filterLayerExpressions[0]);return s("calcite-block",{class:"instant-apps-filter-list__operator-description",heading:null===(i=this.messages)||void 0===i?void 0:i[e],open:!0},n,this.renderFilter(this.filterLayerExpressions[0]))}if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}renderNumberSlider(t,i){var e,n,o,a,l,r,c,d;const h=null==i?void 0:i.min,p=null==i?void 0:i.max,v=(null==i?void 0:i.step)?i.step:1,m=null!==(e=null==i?void 0:i.field)&&void 0!==e?e:"",f=[null!=(null===(n=null==i?void 0:i.range)||void 0===n?void 0:n.min)?i.range.min:h,null!=(null===(o=null==i?void 0:i.range)||void 0===o?void 0:o.max)?i.range.max:p];return null!=h&&null!=p?s("label",{key:null==i?void 0:i.id.toString(),class:u},s("span",null,null==i?void 0:i.name),s("div",{class:"instant-apps-filter-list__number-input-container"},s("calcite-slider",{id:null==i?void 0:i.id.toString(),onCalciteSliderChange:this.handleSliderChange.bind(this,i,t),min:h,max:p,minValue:h,maxValue:p,"min-label":null===(l=null===(a=this.messages)||void 0===a?void 0:a.minSlider)||void 0===l?void 0:l.replace("{field}",m),"max-label":null===(c=null===(r=this.messages)||void 0===r?void 0:r.maxSlider)||void 0===c?void 0:c.replace("{field}",m),step:v,labelHandles:!0,snap:!0,value:f,"group-separator":null===(d=null==i?void 0:i.format)||void 0===d?void 0:d.digitSeparator}))):void 0}renderDatePicker(t,i){var e,n,o,a;const{min:l,max:r}=i,c=[null===(e=null==i?void 0:i.range)||void 0===e?void 0:e.min,null===(n=null==i?void 0:i.range)||void 0===n?void 0:n.max];return null!=l&&null!=r?s("label",{class:u},s("span",null,null==i?void 0:i.name),s("div",{class:"instant-apps-filter-list__date-picker-input-container"},s("calcite-input-date-picker",{id:null==i?void 0:i.id.toString(),onCalciteInputDatePickerChange:this.handleDatePickerRangeChange.bind(this,i,t),min:l,max:r,"overlay-positioning":"fixed",lang:null!==(o=this.locale)&&void 0!==o?o:"en",layout:"vertical",value:c,range:!0}),s("calcite-action",{onClick:this.handleResetDatePicker.bind(this,i,t),icon:"reset",text:null===(a=this.messages)||void 0===a?void 0:a.resetDatePicker,scale:"s"}))):null}renderFooter(){var t,i,e;const n=null!=this.closeBtnText?this.closeBtnText:null===(t=this.messages)||void 0===t?void 0:t.close,o=this.closeBtn&&this.resetBtn?"half":"full";return s("div",{class:"instant-apps-filter-list__footer",slot:"footer"},this.resetBtn?s("calcite-button",{appearance:"outline",width:o,ref:t=>this.resetBtnEl=t,onClick:this.handleResetFilter.bind(this)},null===(i=this.messages)||void 0===i?void 0:i.resetFilter):void 0,this.closeBtn?s("calcite-button",{appearance:"solid",width:o,kind:"brand",onClick:null===(e=this.closeBtnOnClick)||void 0===e?void 0:e.bind(this)},n):void 0)}renderZoomTo(t){var i;return this.zoomBtn?s("div",{class:"instant-apps-filter-list__zoom-to"},s("calcite-button",{id:(null==t?void 0:t.sublayerId)?`zoom-to-${t.id}-${t.sublayerId}`:`zoom-to-${t.id}`,appearance:"transparent",kind:"neutral",scale:"s",iconStart:"magnifying-glass-plus",onClick:this.handleZoomTo.bind(this,t)},null===(i=this.messages)||void 0===i?void 0:i.zoomTo)):void 0}handleResetDatePicker(t,i){p(this.panelEl.querySelector(`[id='${t.id}']`)),t.active=!1,t.definitionExpression=void 0,t.range=void 0,this.generateOutput(i)}initInput(t,i){const{type:s,numDisplayOption:e,displayOption:n}=i;return"string"!==s&&"coded-value"!==s&&("number"!==s&&"range"!==s&&"date"!==s||"drop-down"!==e&&"drop-down"!==n)?"number"===s||"range"===s?this.renderNumberSlider(t,i):"date"===s?this.renderDatePicker(t,i):void 0:this.renderCombobox(t,i)}async initExpressions(){this.loading=!0,null!=this.filterLayerExpressions&&null!=this.view?(await this.processExpressions(),this.loading=!1):this.loading=!1}async processExpressions(){if(this.filterLayerExpressions)for(const t of this.filterLayerExpressions)for(const i of t.expressions||[])await this.setInitExpression(t,i)}handleResetFilter(){this.resetExpressions(),this.resetAllFilters(),this.generateURLParams(),this.filterListReset.emit()}resetExpressions(){var t;null===(t=this.filterLayerExpressions)||void 0===t||t.forEach((t=>{var i;null===(i=t.expressions)||void 0===i||i.forEach((t=>{const{type:i,numDisplayOption:s,displayOption:e}=t;let n="";"string"!==i&&"coded-value"!==i&&("date"!==i||"drop-down"!==s&&"drop-down"!==e)&&("number"!==i&&"range"!==i||"drop-down"!==s&&"drop-down"!==e)?"date"===i?n="datePicker":"number"!==i&&"range"!==i||(n="numberRange"):n="combobox",n?this.resetExpressionUI(n,t):this.resetCheckbox(t),t.active=!1}))}))}resetExpressionUI(t,i){const{id:s}=i;switch(t){case"combobox":i.selectedFields=void 0;const t=this.panelEl.querySelector(`[id='${s}']`);t&&Array.from(t.children).forEach((t=>{t.selected=!1}));break;case"datePicker":i.range=void 0,p(this.panelEl.querySelector(`[id='${s}']`));break;case"numberRange":i.range=void 0;const e=this.panelEl.querySelector(`[id='${s}']`);e&&(e.minValue=i.min,e.maxValue=i.max)}}resetCheckbox(t){const{id:i}=t,s=this.panelEl.querySelector(`[id='${i}']`);null!=s&&(s.checked=!1)}resetAllFilters(){var t,i,s,e,n;if(null==this.initDefExpressions)return;const o=null===(s=null===(i=null===(t=this.view)||void 0===t?void 0:t.map)||void 0===i?void 0:i.allLayers)||void 0===s?void 0:s.concat(null===(n=null===(e=this.view)||void 0===e?void 0:e.map)||void 0===n?void 0:n.allTables);null==o||o.forEach((t=>{var i,s;if(!c.includes(t.type))return;const e=t;"point-cloud"===e.type?e.filters=null===(i=this.initPointCloudFilters)||void 0===i?void 0:i[e.id]:"map-image"===e.type?e.allSublayers.forEach((t=>{var i,s;t.definitionExpression=null===(s=null===(i=this.initMapImageExpressions)||void 0===i?void 0:i[e.id])||void 0===s?void 0:s[t.id]})):e.definitionExpression=null===(s=this.initDefExpressions)||void 0===s?void 0:s[e.id]}))}async updateStringExpression(t,i){const s=this.findFilterLayer(t);return await this.getFeatureAttributes(s,i),this.handleDateField(s,i),!!(null==i?void 0:i.selectedFields)&&(i.definitionExpression=this.createDefinitionExpression(i),!0)}handleDateField(t,i){if("date"===i.type){const s=t.fields.find((({name:t})=>t===i.field));"date-only"===(null==s?void 0:s.type)&&(i.dateOnly=!0)}}createDefinitionExpression(t){var i;if(!(null===(i=t.selectedFields)||void 0===i?void 0:i.length))return"";const s=t.selectedFields.map((t=>"number"==typeof t?t:`'${d(t)}'`));return`${t.field} IN (${s.join(",")})`}async updateNumberExpression(t,i){var s,e;if(!(null==i?void 0:i.min)&&0!==(null==i?void 0:i.min)||!(null==i?void 0:i.max)&&0!==(null==i?void 0:i.max)){const n=this.findFilterLayer(t),{field:o}=i;if(null!=o)if(this.setExpressionFormat(n,i,o),"drop-down"===(null==i?void 0:i.numDisplayOption)||"drop-down"===(null==i?void 0:i.displayOption))await this.getFeatureAttributes(n,i);else{const t=await this.calculateMinMaxStatistics(n,o),a=null===(s=null==t?void 0:t[0])||void 0===s?void 0:s.attributes;if(null!=(null===(e=i.format)||void 0===e?void 0:e.places)?(i.min=this.roundMinNumberDown(a[`min${o}`],i.format.places),i.max=this.roundMaxNumberUp(a[`max${o}`],i.format.places)):(i.min=a[`min${o}`],i.max=a[`max${o}`]),(null==i?void 0:i.range)&&Object.keys(i.range).length){const{min:t,max:s}=i.range;return i.definitionExpression=`${i.field} BETWEEN ${t} AND ${s}`,!0}}}return!1}async updateDateExpression(t,i){var s;const{field:e,range:n}=i,o=this.findFilterLayer(t),a=await this.calculateMinMaxStatistics(o,e),l=null===(s=null==a?void 0:a[0])||void 0===s?void 0:s.attributes;if(i.min=h(l[`min${e}`]),i.max=h(l[`max${e}`]),null!=n&&(null!=(null==n?void 0:n.max)||null!=(null==n?void 0:n.min))){let{min:t,max:s}=n;if(t=null==t?void 0:t.replace("+"," "),s=null==s?void 0:s.replace("+"," "),t||s){const n=s&&!t?"<":!s&&t?">":null;return i.definitionExpression=n?`${e} ${n} '${null!=t?t:s}'`:`${e} BETWEEN '${t}' AND '${s}'`,!0}}return!1}async updateCodedValueExpression(t,i,s){var e,n;if(!(null==s?void 0:s.domain)||"coded-value"!==(null===(e=null==s?void 0:s.domain)||void 0===e?void 0:e.type))return!1;const o=this.findFilterLayer(t);await this.getFeatureAttributes(o,i);const a=s.domain.codedValues.reduce(((t,{code:i,name:s})=>(t[i]=s,t)),{});if(i.codedValues=a,null===(n=i.selectedFields)||void 0===n?void 0:n.length){const t=i.selectedFields.map((t=>"number"==typeof t?t:`'${d(t)}'`)).join(",");return i.definitionExpression=`${i.field} IN (${t})`,!0}return!1}updateRangeExpression(t,i){var s;if(!(null==i?void 0:i.domain)||"range"!==(null===(s=null==i?void 0:i.domain)||void 0===s?void 0:s.type))return!1;const{field:e,range:n}=t;return t.min=i.domain.minValue,t.max=i.domain.maxValue,!(!n||!Object.keys(n).length||(t.definitionExpression=`${e} BETWEEN ${n.min} AND ${n.max}`,0))}async getFeatureAttributes(t,i){if(!this.isLayerSupported(t))return void(i.fields=[]);const s=await this.getQueryLayer(t),{maxRecordCount:e,supportsMaxRecordCountFactor:n}=this.extractQueryCapabilities(t),o=await s.queryFeatureCount(),a=this.createQuery(s,i);await this.queryDistinctFeatures(s,a,i),this.shouldPaginate(e,o,n)&&this.handlePagination(s,a,e,n,o,i)}isLayerSupported(t){return t&&c.includes(t.type)}extractQueryCapabilities(t){var i,s,e,n,o,a;return{maxRecordCount:null!==(e=null===(s=null===(i=t.capabilities)||void 0===i?void 0:i.query)||void 0===s?void 0:s.maxRecordCount)&&void 0!==e?e:null===(n=t.sourceJSON)||void 0===n?void 0:n.maxRecordCount,supportsMaxRecordCountFactor:null===(a=null===(o=t.capabilities)||void 0===o?void 0:o.query)||void 0===a?void 0:a.supportsMaxRecordCountFactor}}createQuery(t,i){const s=t.createQuery();this.applyCacheHint(t,s);const e=null==i?void 0:i.field;if(e){const i=this.getInitDefExprFromLayer(t);s.where=i||"1=1",s.outFields=[e],s.orderByFields=[`${e} ASC`],s.returnDistinctValues=!0,s.returnGeometry=!1,s.maxRecordCountFactor=5,this.applyQueryGeometryFromExtentSelector(s)}return s}async queryDistinctFeatures(t,i,s){if(!i.outFields)return;const e=await this.queryForFeatures(t,i,i.outFields[0]);(null==e?void 0:e.length)&&(s.fields=[...new Set(e)],"string"===s.type?s.fields=s.fields.sort(((t,i)=>t.localeCompare(i))):"number"===s.type&&(s.fields=s.fields.sort(((t,i)=>t-i))))}getQueryCount(t,i){return i?5*t:t}shouldPaginate(t,i,s){const e=this.getQueryCount(t,s);return null!=t&&i>e}async handlePagination(t,i,s,e,n,o){const a=this.getQueryCount(s,e),l=[];for(let e=a;e<n;e+=a){const n=i.clone();n.num=s,n.start=e,l.push(this.queryForFeatures(t,n,i.outFields[0]))}Promise.all(l).then((t=>{t.forEach((t=>{(null==t?void 0:t.length)&&o.fields&&o.fields.push(...t)})),o.fields="string"===o.type?[...new Set(o.fields)].sort(((t,i)=>t.localeCompare(i))):"number"===o.type?[...new Set(o.fields)].sort(((t,i)=>t-i)):[...new Set(o.fields)].sort()}))}async queryForFeatures(t,i,s){const e=await t.queryFeatures(i),n=null==e?void 0:e.features.filter((t=>{var i;return null===(i=t.attributes)||void 0===i?void 0:i[s]}));return null==n?void 0:n.map((t=>{var i;return null===(i=t.attributes)||void 0===i?void 0:i[s]}))}async calculateMinMaxStatistics(t,i){if(!t||!c.includes(t.type)||!i)return[];const s=this.createStatisticsQuery(t,i),e=await t.queryFeatures(s);return(null==e?void 0:e.features)||[]}createStatisticsQuery(t,i){const s=t.createQuery();return s.where=this.getInitDefExprFromLayer(t)||"1=1",this.applyCacheHint(t,s),s.outStatistics=[{onStatisticField:i,outStatisticFieldName:`max${i}`,statisticType:"max"},{onStatisticField:i,outStatisticFieldName:`min${i}`,statisticType:"min"}],this.applyQueryGeometryFromExtentSelector(s),s}getExtent(t,i){if(t&&i){const{constraints:t}=i;let s=Object.assign({},t);const e=null==s?void 0:s.geometry;if(e){const t="extent"in e?e:this.geometryJsonUtils.fromJSON(e);if("extent"===(null==t?void 0:t.type)||"polygon"===(null==t?void 0:t.type))return t}}}async setInitExpression(t,i){if(!i.field||!i.type)return void await this.updateExpression(t,i,void 0);const s=this.findFilterLayer(t);s&&("not-loaded"!==s.loadStatus&&"failed"!==s.loadStatus||await s.load(),await s.when((async()=>{var e,n;const o=null===(e=s.fields)||void 0===e?void 0:e.find((({name:t})=>t===i.field)),a=null===(n=null==o?void 0:o.domain)||void 0===n?void 0:n.type;i.type="coded-value"===a||"range"===a?a:i.type,await this.updateExpression(t,i,o)})))}async updateExpression(t,i,s){await this.handleExpressionType(t,i,s)&&this.generateOutput(t)}async handleExpressionType(t,i,s){var e;switch(i.type){case"string":return await this.updateStringExpression(t,i);case"number":return await this.updateNumberExpression(t,i);case"date":return await this.updateDateExpressionBasedOnDisplayOption(t,i);case"coded-value":return await this.updateCodedValueExpression(t,i,s);case"range":return await this.updateRangeExpressionBasedOnDisplayOption(t,i,s);case"checkbox":case null:case void 0:return null!==(e=i.active)&&void 0!==e&&e;default:return!1}}async updateDateExpressionBasedOnDisplayOption(t,i){return"drop-down"===i.displayOption?await this.updateStringExpression(t,i):await this.updateDateExpression(t,i)}async updateRangeExpressionBasedOnDisplayOption(t,i,s){return"drop-down"===i.displayOption?await this.updateStringExpression(t,i):this.updateRangeExpression(i,s)}updateRangeExpressions(t,i,s,e){const n=this.getInitDefExprFromLayerExpression(i);!e&&0!==e||!s&&0!==s||(e===(null==t?void 0:t.min)&&s===(null==t?void 0:t.max)?(t.definitionExpression=void 0,t.active=!1):(t.definitionExpression=n?`(${n}) AND ${null==t?void 0:t.field} BETWEEN ${e} AND ${s}`:`${null==t?void 0:t.field} BETWEEN ${e} AND ${s}`,t.active=!0)),t.range={min:e,max:s}}handleCheckboxChange(t,i,s){i.active=s.target.checked,this.generateOutput(t)}handleSliderChange(t,i,s){const{maxValue:e,minValue:n}=s.target;this.updateRangeExpressions(t,i,e,n),this.generateOutput(i)}handleComboSelect(t,i,s){const e=s.target.selectedItems,{field:n,type:o}=t;if(t.selectedFields=e.map((({value:t})=>t)),e.length){const i=e.map((({value:t})=>"number"==typeof t?t:`'${d(t)}'`));t.definitionExpression="date"===o?i.map((t=>this.buildDateExpression(t,n))).join(" OR "):`${n} IN (${i.join(",")})`,t.active=!0}else t.definitionExpression=void 0,t.active=!1;this.generateOutput(i)}handleDatePickerRangeChange(t,i,s){const e=s.target,[n,o]=e.valueAsDate,a=n?h(Math.floor(n.getTime()),!0):void 0,l=o?h(Math.floor(o.getTime()),!0):void 0;(a||l)&&(t.definitionExpression=this.constructDefinitionExpression(t.field,a,l),t.range={min:a,max:l},t.active=!0,this.generateOutput(i))}constructDefinitionExpression(t,i,s){return i?s?`${t} BETWEEN '${i}' AND '${s}'`:`${t} > '${i}'`:`${t} < '${s}'`}handleURLParams(){if(!("URLSearchParams"in window))return;const t=new URLSearchParams(document.location.search).get("filter");if(!t)return void(this.filterCount=0);const i=t.split(";").map((t=>JSON.parse(t)));this.filterCount=this.applyFilters(i)}applyFilters(t){let i=0;return t.forEach((t=>{var s,e;const n=null===(s=this.filterLayerExpressions)||void 0===s?void 0:s.find((i=>i.id===t.layerId));n&&(null===(e=n.expressions)||void 0===e||e.forEach((s=>{var e,n;(null===(e=s.id)||void 0===e?void 0:e.toString())===(null===(n=t.expressionId)||void 0===n?void 0:n.toString())&&(this.activateExpression(s,t),i++)})))})),i}activateExpression(t,i){t.active=!0,"range"===i.type?t.range=i.range:"select"===i.type&&(t.selectedFields=i.selectedFields)}createURLParamExpression(t,i){const{id:s,range:e,selectedFields:n,type:o}=i;return"string"===o||"coded-value"===o||"drop-down"===(null==i?void 0:i.numDisplayOption)||"drop-down"===(null==i?void 0:i.displayOption)?{type:"select",layerId:t.id,expressionId:s.toString(),selectedFields:n}:"number"===o||"range"===o||"date"===o?{type:"range",layerId:t.id,expressionId:s.toString(),range:e}:{layerId:t.id,expressionId:s.toString()}}autoUpdateURLCheck(t){if(this.autoUpdateUrl){const i=t.toString()?`${window.location.pathname}?${t}`.trim():window.location.pathname;window.history.replaceState({},"",i)}}generateURLParams(){var t;if(!("URLSearchParams"in window))return;const i=new URLSearchParams(window.location.search),s=(null===(t=this.filterLayerExpressions)||void 0===t?void 0:t.flatMap((t=>{var i;return(null===(i=null==t?void 0:t.expressions)||void 0===i?void 0:i.filter((t=>t.active)).map((i=>JSON.stringify(this.createURLParamExpression(t,i)))))||[]})))||[];this.filterCount=s.length,s.length>0?i.set("filter",s.join(";")):i.delete("filter"),this.autoUpdateURLCheck(i),this.urlParams=i}updateFilter(t,i,s){const{id:e}=t,n=this.view.map.findLayerById(e)||this.view.map.findTableById(e);if(null!=n)if("point-cloud"===n.type)this.updateFilterLayerPCLFilter(n,s);else if("map-image"===n.type){const s=n.findSublayerById(null==t?void 0:t.sublayerId);null!=s&&this.updateFilterLayerDefExpression(s,i,t)}else this.updateFilterLayerDefExpression(n,i,t)}updateFilterLayerDefExpression(t,i,s){const{operator:e}=s;let n=this.getInitDefExprFromLayer(t);const o=(null==i?void 0:i.length)>0&&null!=n?`(${i.join(e)}) AND (${n})`:i.length>0?i.join(e):n;t.definitionExpression=o}updateFilterLayerPCLFilter(t,i){t.filters=i}async handleWhenView(){if(null==this.view)return;const t=this.view.map;await t.loadAll(),this.handleLayerExpressionsUpdate()}async handleLayerExpressionsUpdate(){this.updateInitExpressions(),this.handleURLParams(),this.initExpressions()}async handleZoomTo(t){const i=this.panelEl.querySelector((null==t?void 0:t.sublayerId)?`#zoom-to-${t.id}-${t.sublayerId}`:`#zoom-to-${t.id}`),s=(t,s)=>{i&&(i.loading=t,i.disabled=s)};s(!0,!0),await this.getZoomToExtent(t);const e="point"===this.zoomToExtent.type&&1===this.zoomToExtent.count?{target:this.zoomToExtent.extent,zoom:10}:this.zoomToExtent.extent;await this.view.goTo(e),s(!1,!1)}async getZoomToExtent(t){var i;const s=this.view.allLayerViews.find((({layer:i})=>i.id===t.id)),e=s.layer,n="map-image"===e.type?e.findSublayerById(t.sublayerId):e;if("point-cloud"!==n.type&&c.includes(null==n?void 0:n.type)){const t=await this.getQueryLayer(n),s=t.createQuery();s.where=null!==(i=t.definitionExpression)&&void 0!==i?i:"1=1";const e=await t.queryExtent(s);this.zoomToExtent=Object.assign(Object.assign({},e),{type:t.geometryType})}}applyFilterToQuery(t,i){var s,e;const n=this.view.allLayerViews.find((({layer:t})=>t.id===i.id)),o=null!==(e=null===(s=null==n?void 0:n.featureEffect)||void 0===s?void 0:s.filter)&&void 0!==e?e:n.filter;o&&["objectIds","distance","geometry","spatialRelationship","units","where","timeExtent"].forEach((i=>{null!=o[i]&&(t[i]=o[i])}))}generateOutput(t){if(null==this.view)return;const i=[];let s=[];if(t){for(const e of t.expressions){const{active:t,definitionExpression:n,pointCloudFilters:o}=e;t&&n&&i.push(`(${n})`),t&&null!=o&&o.length>0&&(s=s.concat(o))}this.updateFilter(t,i,s),this.generateURLParams(),this.filterUpdate.emit()}}numberWithCommas(t){return t.toLocaleString("en-US",{maximumFractionDigits:20})}scientificRounding(t,i,s){if(null==t)return;let e;if(String(t).includes("e")){const[n,o]=String(t).split("e").map((t=>Number(t)));e=Math[s](+`${n}e${o+i}`)*Math.pow(10,-i)}else e=Math[s](t*Math.pow(10,i))/Math.pow(10,i);return+e.toFixed(i)}roundMinNumberDown(t,i){return this.scientificRounding(t,i,"floor")}roundMaxNumberUp(t,i){return this.scientificRounding(t,i,"ceil")}roundNumber(t,i){var s;return null!==(s=this.scientificRounding(t,i,"round"))&&void 0!==s?s:t}setExpressionFormat(t,i,s){if(null!=(null==t?void 0:t.popupTemplate)){const e=t.popupTemplate.fieldInfos.find((({fieldName:t})=>t===s));i.format=null==e?void 0:e.format}}getInitDefExprFromLayer(t){var i,s,e;return"sublayer"===t.type?null===(s=null===(i=this.initMapImageExpressions)||void 0===i?void 0:i[t.layer.id])||void 0===s?void 0:s[t.id]:null===(e=this.initDefExpressions)||void 0===e?void 0:e[t.id]}getInitDefExprFromLayerExpression(t){var i,s,e;return null!=(null==t?void 0:t.sublayerId)?null===(s=null===(i=this.initMapImageExpressions)||void 0===i?void 0:i[t.id])||void 0===s?void 0:s[t.sublayerId]:null===(e=this.initDefExpressions)||void 0===e?void 0:e[t.id]}findFilterLayer(t){const i=this.view.map.allLayers.concat(this.view.map.allTables).find((({id:i})=>i===t.id));return"map-image"===i.type?null==i?void 0:i.findSublayerById(t.sublayerId):i}createLabel(t,i){var s,e,n;if("coded-value"===t.type)return null===(s=t.codedValues)||void 0===s?void 0:s[i];if("number"===t.type&&"number"==typeof i){let s=i;return null!=(null===(e=t.format)||void 0===e?void 0:e.places)&&(s=this.roundNumber(i,t.format.places)),(null===(n=t.format)||void 0===n?void 0:n.digitSeparator)?this.numberWithCommas(s):s}if("date"===t.type&&!t.dateOnly){const t=this.intl.convertDateFormatToIntlOptions("short-date-long-time");return this.intl.formatDate(i,t)}return i}buildDateExpression(t,i){if(t){const s=new Date(t),e=new Date(t),n=new Date(e.setDate(s.getDate()+1)),o=`${s.getFullYear()}-${s.getMonth()+1}-${s.getDate()}`,a=`${s.getHours()}:${s.getMinutes()}:${s.getSeconds()}`,l=`${n.getHours()}:${n.getMinutes()}:${n.getSeconds()}`;return`${i} BETWEEN '${o} ${a}' AND '${n.getFullYear()}-${n.getMonth()+1}-${n.getDate()} ${l}'`}}async getQueryLayer(t){return"sublayer"===t.type?await t.createFeatureLayer():t}applyCacheHint(t,i){var s,e;(null===(e=null===(s=null==t?void 0:t.capabilities)||void 0===s?void 0:s.query)||void 0===e?void 0:e.supportsCacheHint)&&(i.cacheHint=!0)}applyQueryGeometryFromExtentSelector(t){if(!this.extentSelector||!this.extentSelectorConfig)return;const i=this.getExtent(this.extentSelector,this.extentSelectorConfig);i&&(t.geometry=i,t.spatialRelationship="intersects")}updateInitExpressions(){if(null==this.view)return;const t=this.view.map;this.initDefExpressions={},this.initPointCloudFilters={},this.initMapImageExpressions={},t.allLayers.concat(t.allTables).forEach((t=>{if(!c.includes(t.type))return;const i=t;"point-cloud"===i.type?this.initPointCloudFilters[i.id]=i.filters:"map-image"===i.type?this.initMapImageExpressions[i.id]=i.allSublayers.reduce(((t,i)=>(t[i.id]=i.definitionExpression,t)),{}):this.initDefExpressions[i.id]=i.definitionExpression}))}get el(){return n(this)}static get watchers(){return{view:["watchViewHandler"],layerExpressions:["watchLayerExpressions"]}}};v.style=":host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:normal}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100%;font-size:16px;--calcite-combobox-input-height:24px}.instant-apps-filter-list__number-input-container{width:100%;display:flex;justify-content:center}.instant-apps-filter-list__number-input-container calcite-slider{width:90%}.instant-apps-filter-list__date-picker-input-container{display:flex;align-items:center;justify-content:unset;width:100%}.instant-apps-filter-list__date-picker-input-container calcite-action{height:64px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__title{margin-right:20px}.instant-apps-filter-list__title>p{font-size:14px;font-weight:normal;margin:0}.instant-apps-filter-list__checkbox-container{display:flex}.instant-apps-filter-list__checkbox-container calcite-checkbox{height:18px}.instant-apps-filter-list__operator-description{margin:0;--calcite-font-size--1:12px}.instant-apps-filter-list__zoom-to{display:flex;justify-content:flex-end;margin:8px 0 20px}.instant-apps-filter-list__zoom-to calcite-action{width:-moz-min-content;width:min-content}.instant-apps-filter-list calcite-input-date-picker{--calcite-font-size--1:16px}@media (prefers-reduced-motion){.instant-apps-filter-list calcite-loader{--calcite-internal-duration-factor:2;--calcite-internal-animation-timing-slow:calc(300ms * 2)}}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__header-container{background:#2b2b2b;color:#fff}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__operator-description{background:#353535}";const m="instant-apps-social-share",f=".calcite-mode-dark",_={base:m,dialog:`${m}__dialog`,dialogEmbed:`${m}__dialog-embed`,dialogContent:`${m}__dialog-content`,options:`${m}__options`,tipContainer:`${m}__tip`,tipHeader:`${m}__tip-header`,tipContent:`${m}__tip-content`,icon:`${m}__icon`,iconContainer:`${m}__icon-container`,optionText:`${m}__option-text`,popoverButton:`${m}__popover-button`,layout:{vertical:`${m}__layout--vertical`,horizontal:`${m}__layout--horizontal`},xLogo:{light:`${m}__x-logo--light`,dark:`${m}__x-logo--dark`},success:{container:`${m}__success`,header:`${m}__success-header`,message:`${m}__success-message`,icon:`${m}__success-icon`},embed:{container:`${m}__embed`,header:`${m}__embed-header`,embedCode:{container:`${m}__embed-code`,textArea:`${m}__embed-code-text-area`,copyButton:`${m}__embed-code-copy-button`},textAreaText:`${m}__embed-text-area-text`,dimensions:{container:`${m}__embed-dimensions`,input:`${m}__embed-dimensions-input`}},rtl:{optionText:`${m}__option-text--rtl`,textArea:`${m}__text-area--rtl`}},b={facebook:"https://www.facebook.com/sharer/sharer.php?u={url}",x:"https://x.com/intent/post?url={url}",linkedIn:"https://www.linkedin.com/sharing/share-offsite/?url={url}"},g=class{constructor(i){t(this,i),this.mode="popover",this.shareUrl=window.location.href,this.autoUpdateShareUrl=!0,this.shareText="",this.embed=!1,this.shareButtonColor="neutral",this.shareButtonType="button",this.shareButtonScale=void 0,this.iframeInnerText="",this.popoverButtonIconScale="m",this.view=void 0,this.displayTipText=!0,this.shortenShareUrl=!0,this.socialMedia=!0,this.shareIconsLayout="vertical",this.scale="m",this.successMessage="",this.defaultUrlParams=null,this.inlineSuccessPopoverPlacement="trailing",this.popoverPositioning="absolute",this.removePopoverOffset=!1,this.messages=void 0,this.opened=!1,this.copied=!1,this.inlineCopyLinkOpened=!1,this.inlineCopyEmbedOpened=!1,this.embedWidth=400,this.embedHeight=600}componentDidLoad(){var t,i;a(this),this.setupAutoCloseListeners(),"popover"===this.mode&&(this.opened&&(this.popoverRef.open=!0),this.popoverRef.addEventListener("calcitePopoverOpen",(()=>{this.shareListRef&&this.shareListRef.children[0].focus()})),this.popoverRef.addEventListener("keydown",this.handlePopoverRefKeyDown.bind(this))),this.embed&&(null===(t=this.embedWidthRef)||void 0===t||t.addEventListener("change",this.updateDimensions.bind(this,"width")),null===(i=this.embedHeightRef)||void 0===i||i.addEventListener("change",this.updateDimensions.bind(this,"height")))}disconnectedCallback(){var t,i,s;document.documentElement.removeEventListener("click",this.autoCloseCallback.bind(this)),"popover"===this.mode?null!=this.popoverRef&&(this.popoverRef.removeEventListener("click",this.stopPropagationCallback.bind(this)),this.popoverRef.removeEventListener("calcitePopoverClose",this.resetPopoverCopyState.bind(this)),this.popoverRef.removeEventListener("keydown",this.handlePopoverRefKeyDown.bind(this))):(null===(t=this.embedWidthRef)||void 0===t||t.removeEventListener("change",this.updateDimensions.bind(this)),null===(i=this.embedHeightRef)||void 0===i||i.removeEventListener("change",this.updateDimensions.bind(this)),null===(s=this.dialogContentRef)||void 0===s||s.removeEventListener("click",this.stopPropagationCallback.bind(this)))}setupAutoCloseListeners(){var t,i,s;document.documentElement.addEventListener("click",this.autoCloseCallback.bind(this)),"popover"===this.mode?(null===(t=this.popoverRef)||void 0===t||t.addEventListener("click",this.stopPropagationCallback.bind(this)),null===(i=this.popoverRef)||void 0===i||i.addEventListener("calcitePopoverClose",this.resetPopoverCopyState.bind(this))):null===(s=this.dialogContentRef)||void 0===s||s.addEventListener("click",this.stopPropagationCallback.bind(this))}handlePopoverRefKeyDown(t){var i,s;if("Tab"===t.code){if(!this.shareListRef)return;const s=t.target,e=this.shareListRef.children[0],n=this.shareListRef.children[(null===(i=this.shareListRef)||void 0===i?void 0:i.children.length)-1];t.shiftKey&&s===e?(t.preventDefault(),n.focus()):t.shiftKey||s!==n||(t.preventDefault(),e.focus())}else"Escape"===t.code&&(this.closePopover(),null===(s=this.popoverButtonRef)||void 0===s||s.setFocus())}autoCloseCallback(){"popover"===this.mode?(this.opened=!1,this.popoverRef.open=this.opened):(this.copyLinkPopoverRef&&(this.copyLinkPopoverRef.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef&&(this.copyEmbedPopoverRef.open=!1),this.inlineCopyEmbedOpened=!1)}stopPropagationCallback(t){t.stopPropagation()}resetPopoverCopyState(){var t;null===(t=this.popoverButtonRef)||void 0===t||t.setFocus(),setTimeout((()=>{this.copied=!1}),200)}updateDimensions(t){var i,s;if("width"===t){const t=null===(i=this.embedWidthRef)||void 0===i?void 0:i.value;this.embedWidth=parseInt(t)}else{const t=null===(s=this.embedHeightRef)||void 0===s?void 0:s.value;this.embedHeight=parseInt(t)}}render(){var t,i,n,o,a,l;const r=this.copied&&"popover"===this.mode?this.renderSuccess():s("div",{class:_.dialogContent},this.renderOptions(),this.displayTipText?this.renderTip():null,this.embed?this.renderEmbed():null),c="vertical"===this.shareIconsLayout?` ${_.layout.vertical}`:` ${_.layout.horizontal}`,d=" calcite-mode-"+(this.el.closest(f)?"dark":"light"),h=s("div",{key:"6fa27d9de3fff34dde6702cdbeac00b799355651",ref:t=>this.dialogContentRef=t,class:`${_.dialog}${c}${d}`},r);return s(e,{key:"d35d755dc0d1a827e7859a86366b4f03a6c02a28"},"popover"===this.mode?[s("calcite-popover",{ref:t=>this.popoverRef=t,label:null===(i=null===(t=this.messages)||void 0===t?void 0:t.share)||void 0===i?void 0:i.label,referenceElement:"shareButton",placement:"bottom-start",scale:this.scale,"overlay-positioning":this.popoverPositioning,"offset-distance":this.removePopoverOffset?0:6,"pointer-disabled":this.removePopoverOffset},h),this.renderButton()]:[h,s("calcite-popover",{ref:t=>this.copyLinkPopoverRef=t,label:null===(o=null===(n=this.messages)||void 0===n?void 0:n.share)||void 0===o?void 0:o.label,referenceElement:"copyToClipboard",placement:this.inlineSuccessPopoverPlacement,scale:this.scale},this.renderSuccess()),s("calcite-popover",{ref:t=>this.copyEmbedPopoverRef=t,label:null===(l=null===(a=this.messages)||void 0===a?void 0:a.share)||void 0===l?void 0:l.label,referenceElement:"copyEmbedToClipboard",placement:this.inlineSuccessPopoverPlacement,scale:this.scale},this.renderEmbedSuccess())])}renderButton(){var t,i,e,n,o,a,l,r;const c=null!=this.shareButtonScale?this.shareButtonScale:this.scale;return"button"===this.shareButtonType?s("calcite-button",{ref:t=>this.popoverButtonRef=t,onClick:this.togglePopover.bind(this),id:"shareButton",class:_.popoverButton,kind:this.shareButtonColor,appearance:"transparent",label:null===(i=null===(t=this.messages)||void 0===t?void 0:t.share)||void 0===i?void 0:i.label,title:null===(n=null===(e=this.messages)||void 0===e?void 0:e.share)||void 0===n?void 0:n.label,scale:c},s("div",{class:_.iconContainer},s("calcite-icon",{icon:"share",scale:this.popoverButtonIconScale}))):s("calcite-action",{ref:t=>this.popoverButtonRef=t,onClick:this.togglePopover.bind(this),id:"shareButton",class:_.popoverButton,appearance:"transparent",label:null===(a=null===(o=this.messages)||void 0===o?void 0:o.share)||void 0===a?void 0:a.label,title:null===(r=null===(l=this.messages)||void 0===l?void 0:l.share)||void 0===r?void 0:r.label,scale:c,text:"",alignment:"center"},s("div",{class:_.iconContainer},s("calcite-icon",{icon:"share",scale:this.popoverButtonIconScale})))}renderSuccess(){var t;const i=null===(t=this.messages)||void 0===t?void 0:t.success;return s("div",{class:_.success.container},s("span",{class:_.success.header},s("span",{class:_.success.icon},s("calcite-icon",{icon:"check-circle-f",scale:this.scale})),null==i?void 0:i.label),s("span",{class:_.success.message},this.successMessage||(null==i?void 0:i.url)))}renderEmbedSuccess(){var t;const i=null===(t=this.messages)||void 0===t?void 0:t.success;return s("div",{class:_.success.container},s("span",{class:_.success.header},s("span",{class:_.success.icon},s("calcite-icon",{icon:"check-circle-f",scale:this.scale})),null==i?void 0:i.label),s("span",{class:_.success.message},null==i?void 0:i.embed))}renderOptions(){var t,i,e,n;const o=null===(t=this.messages)||void 0===t?void 0:t.options,a="rtl"===document.dir?` ${_.rtl.optionText}`:"";return s("ul",{ref:t=>this.shareListRef=t,class:_.options,role:"menu"},s("li",{id:"copyToClipboard",onClick:this.handleShareItem.bind(this,"link"),onKeyDown:this.handleOptionKeyDown("link"),role:"menuitem",tabindex:"0"},s("span",{class:_.icon},s("calcite-icon",{icon:"link",scale:this.scale})),s("span",{class:`${_.optionText}${a}`},null===(i=null==o?void 0:o.link)||void 0===i?void 0:i.label)),this.socialMedia?[s("li",{onClick:this.handleShareItem.bind(this,"facebook"),onKeyDown:this.handleOptionKeyDown("facebook"),role:"menuitem",tabindex:"0"},s("span",{class:_.icon},this.renderFacebookIcon()),s("span",{class:`${_.optionText}${a}`},null===(e=null==o?void 0:o.facebook)||void 0===e?void 0:e.label)),s("li",{onClick:this.handleShareItem.bind(this,"x"),onKeyDown:this.handleOptionKeyDown("x"),role:"menuitem",tabindex:"0"},s("span",{class:_.icon},this.renderXIcon()),s("span",{class:`${_.optionText}${a}`},"X")),s("li",{onClick:this.handleShareItem.bind(this,"linkedIn"),onKeyDown:this.handleOptionKeyDown("linkedIn"),role:"menuitem",tabindex:"0"},s("span",{class:_.icon},this.renderLinkedInIcon()),s("span",{class:`${_.optionText}${a}`},null===(n=null==o?void 0:o.linkedIn)||void 0===n?void 0:n.label))]:null)}handleOptionKeyDown(t){return i=>{const s=i.code;("Space"===s||"Enter"===s)&&this.handleShareItem(t)}}renderFacebookIcon(){return s("svg",{height:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},version:"1.1",viewBox:"0 0 512 512",width:"100%",xmlns:"http://www.w3.org/2000/svg"},s("g",null,s("path",{d:"M512,256c0,-141.385 -114.615,-256 -256,-256c-141.385,0 -256,114.615 -256,256c0,127.777 93.616,233.685 216,252.89l0,-178.89l-65,0l0,-74l65,0l0,-56.4c0,-64.16 38.219,-99.6 96.695,-99.6c28.009,0 57.305,5 57.305,5l0,63l-32.281,0c-31.801,0 -41.719,19.733 -41.719,39.978l0,48.022l71,0l-11.35,74l-59.65,0l0,178.89c122.385,-19.205 216,-125.113 216,-252.89Z",style:{fill:"#1877f2",fillRule:"nonzero"}}),s("path",{d:"M355.65,330l11.35,-74l-71,0l0,-48.022c0,-20.245 9.917,-39.978 41.719,-39.978l32.281,0l0,-63c0,0 -29.297,-5 -57.305,-5c-58.476,0 -96.695,35.44 -96.695,99.6l0,56.4l-65,0l0,74l65,0l0,178.89c13.033,2.045 26.392,3.11 40,3.11c13.608,0 26.966,-1.065 40,-3.11l0,-178.89l59.65,0Z",style:{fill:"#fff",fillRule:"nonzero"}})))}renderXIcon(){const t=!!this.el.closest(f);return s("svg",{class:t?_.xLogo.dark:_.xLogo.light,viewBox:"0 0 1200 1227",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("rect",{height:"400",style:{fill:"none"},width:"400",x:"56",y:"56"}),s("path",{d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z",fill:t?"white":"black"}))}renderLinkedInIcon(){return s("svg",{height:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},version:"1.1",viewBox:"0 0 512 512",width:"100%",xmlns:"http://www.w3.org/2000/svg"},s("g",{id:"g5891"},s("path",{d:"M512,64c0,-35.323 -28.677,-64 -64,-64l-384,0c-35.323,0 -64,28.677 -64,64l0,384c0,35.323 28.677,64 64,64l384,0c35.323,0 64,-28.677 64,-64l0,-384Z",id:"background",style:{fill:"#2867b2"}}),s("g",{id:"shapes"},s("rect",{height:"257.962",id:"rect11",style:{fill:"#fff"},width:"85.76",x:"61.053",y:"178.667"}),s("path",{d:"M104.512,54.28c-29.341,0 -48.512,19.29 -48.512,44.573c0,24.752 18.588,44.574 47.377,44.574l0.554,0c29.903,0 48.516,-19.822 48.516,-44.574c-0.555,-25.283 -18.611,-44.573 -47.935,-44.573Z",id:"path13-0",style:{fill:"#fff",fillRule:"nonzero"}}),s("path",{d:"M357.278,172.601c-45.49,0 -65.866,25.017 -77.276,42.589l0,-36.523l-85.738,0c1.137,24.197 0,257.961 0,257.961l85.737,0l0,-144.064c0,-7.711 0.554,-15.42 2.827,-20.931c6.188,-15.4 20.305,-31.352 43.993,-31.352c31.012,0 43.436,23.664 43.436,58.327l0,138.02l85.741,0l0,-147.93c0,-79.237 -42.305,-116.097 -98.72,-116.097Z",id:"path15",style:{fill:"#fff",fillRule:"nonzero"}}))))}renderTip(){var t;const i=null===(t=this.messages)||void 0===t?void 0:t.info;return s("div",{class:_.tipContainer},s("span",{class:_.tipHeader},s("calcite-icon",{icon:"lightbulb",scale:this.scale}),s("span",null,null==i?void 0:i.label)),s("p",{class:_.tipContent},null==i?void 0:i.tooltip))}renderEmbed(){var t,i,e;const n=null===(t=this.messages)||void 0===t?void 0:t.embed,o="rtl"===document.dir?` ${_.rtl.textArea}`:"";return s("div",{class:_.embed.container},s("span",{class:_.embed.header},s("calcite-icon",{icon:"code",scale:this.scale}),s("span",null,null===(e=null===(i=this.messages)||void 0===i?void 0:i.embed)||void 0===e?void 0:e.label)),s("div",{class:_.embed.embedCode.container},s("div",{class:_.embed.embedCode.textArea},s("textarea",{ref:t=>this.embedCodeRef=t,cols:30,rows:5,readonly:!0,class:o,value:this.getEmbedCode()}),s("button",{id:"copyEmbedToClipboard",onClick:this.copyEmbedCode.bind(this),class:_.embed.embedCode.copyButton},s("calcite-icon",{icon:"copy",scale:this.scale}),s("span",null,null==n?void 0:n.copy))),s("span",{class:_.embed.textAreaText},s("slot",{name:"text-area-text"})),s("div",{class:_.embed.dimensions.container},s("label",{class:_.embed.dimensions.input},s("span",null,null==n?void 0:n.width),s("input",{ref:t=>this.embedWidthRef=t,type:"number",onKeyDown:t=>["e","E","+","-"].includes(t.key)&&t.preventDefault(),onChange:this.handleNumberInputOnChange("width"),value:this.embedWidth,min:"1"})),s("label",{class:_.embed.dimensions.input},s("span",null,null==n?void 0:n.height),s("input",{ref:t=>this.embedHeightRef=t,type:"number",onKeyDown:t=>["e","E","+","-"].includes(t.key)&&t.preventDefault(),onChange:this.handleNumberInputOnChange("height"),value:this.embedHeight,min:"1"})))))}handleNumberInputOnChange(t){const i="width"===t?this.embedWidthRef:this.embedHeightRef,s="width"===t?"embedWidth":"embedHeight";return()=>{i&&parseFloat(i.value)<=0&&(this[s]=parseInt("1"),i.value="1")}}togglePopover(t){t.stopPropagation(),this.opened=!this.opened,this.popoverRef.open=this.opened}closePopover(){this.opened=!1,this.popoverRef.open=this.opened}async handleShareItem(t){var i,s,e,n;this.shareUrl=await this.generateShareUrl();let a=null;const l=null!==(s=null===(i=null===navigator||void 0===navigator?void 0:navigator.userAgent)||void 0===i?void 0:i.includes("Chrome"))&&void 0!==s&&s,r=null!==(n=null===(e=null===navigator||void 0===navigator?void 0:navigator.userAgent)||void 0===e?void 0:e.includes("Safari"))&&void 0!==n&&n&&!l;!r&&this.shortenShareUrl&&(a=await this.shortenUrl(this.shareUrl));let c=a||this.shareUrl;switch(t){case"link":return navigator.clipboard.writeText(c),this.embed&&(this.copyEmbedPopoverRef.open=!1,this.inlineCopyEmbedOpened=!1),"inline"===this.mode&&(this.copyLinkPopoverRef.open=!0,setTimeout((()=>this.copyLinkPopoverRef.open=!1),3e3)),this.inlineCopyLinkOpened=!0,this.copied=!0,void("popover"===this.mode&&setTimeout((()=>this.closePopover()),2e3));case"facebook":case"x":case"linkedIn":let i;r&&(i=window.open("","_blank"),this.shortenShareUrl&&(c=await this.shortenUrl(this.shareUrl)||c));const s={url:encodeURI(c)},e="x"===t?Object.assign(Object.assign({},s),{text:this.shareText}):s,[n]=await o(["esri/intl"]),a=n.substitute(b[t],e);return"popover"===this.mode&&this.closePopover(),void(r&&i?(i.location=a,i.focus()):window.open(encodeURI(a),"_blank"))}}async shortenUrl(t){var i,s;const[e]=await o(["esri/request"]),n=await e("https://arcg.is/prod/shorten",{query:{longUrl:t,f:"json"}}),a=null===(s=null===(i=null==n?void 0:n.data)||void 0===i?void 0:i.data)||void 0===s?void 0:s.url;if(a)return a.replace("http://","https://")}getEmbedCode(){return`<iframe src="${this.shareUrl}" width="${this.embedWidth}" height="${this.embedHeight}" frameborder="0" style="border:0" allowfullscreen>${this.iframeInnerText}</iframe>`}copyEmbedCode(){navigator.clipboard.writeText(this.getEmbedCode()),this.copyLinkPopoverRef.open=!1,this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.open=!0,setTimeout((()=>this.copyEmbedPopoverRef.open=!1),3e3),this.inlineCopyEmbedOpened=!0}async generateShareUrl(){var t;if(this.autoUpdateShareUrl&&(this.shareUrl=window.location.href),!this.view||!(null===(t=this.view)||void 0===t?void 0:t.ready))return this.shareUrl;const{x:i,y:s}=this.view.center,{spatialReference:e}=this.view,[n,a]=await o(["esri/geometry/Point","esri/geometry/SpatialReference"]),l=new n({x:i,y:s,spatialReference:new a(Object.assign({},e.toJSON()))}),r=await this.processPoint(l),{isWGS84:c,isWebMercator:d}=r.spatialReference;return this.generateShareUrlParams(r,c||d)}async processPoint(t){const{isWGS84:i,isWebMercator:s}=t.spatialReference;if(i||s)return t;const[e,n]=await o(["esri/geometry/SpatialReference","esri/geometry/projection"]),a=new e({wkid:4326});try{await n.load();const i=n.project(t,a);return Promise.resolve(i)}catch(t){return console.error("Failed to project point",t),Promise.reject(null)}}generateShareUrlParams(t,i){var s,e,n,o,a;const{longitude:l,latitude:r,x:c,y:d}=t;if(void 0===l||void 0===r)return this.shareUrl;const h=this.roundValue(i?l:c),p=this.roundValue(i?r:d),{zoom:u}=this.view,v=this.roundValue(u),m=null===(e=null===(s=this.view)||void 0===s?void 0:s.popup)||void 0===e?void 0:e.selectedFeature,f=null===(o=null===(n=this.view)||void 0===n?void 0:n.popup)||void 0===o?void 0:o.visible;let _,b,g;if(m&&f&&"feature"===(null===(a=null==m?void 0:m.layer)||void 0===a?void 0:a.type)){const t=null==m?void 0:m.layer;_=null==t?void 0:t.id,b=m.attributes[t.objectIdField]}g=this.view.map.allLayers.filter((t=>!t.visible)).toArray().map((t=>t.id)).toString().replaceAll(",",";");const{type:x}=this.view,{defaultUrlParams:w}=this,y=new URL(this.shareUrl),{searchParams:$}=y;if($.get("center")&&$.delete("center"),$.get("level")&&$.delete("level"),$.get("selectedFeature")&&$.delete("selectedFeature"),$.get("hiddenLayers")&&$.delete("hiddenLayers"),$.get("viewpoint")&&$.delete("viewpoint"),"3d"===x){const{camera:t}=this.view,{heading:i,position:s,tilt:e}=t,{longitude:n,latitude:o,z:a}=s,l={longitude:this.roundValue(n,8),latitude:this.roundValue(o,8),z:this.roundValue(a,3),heading:this.roundValue(i,3),tilt:this.roundValue(e,3)};return!1!==(null==w?void 0:w.viewpoint)&&y.searchParams.set("viewpoint",`cam:${l.longitude},${l.latitude},${l.z};${l.heading},${l.tilt}`),_&&b&&!1!==(null==w?void 0:w.selectedFeature)&&y.searchParams.set("selectedFeature",`${_};${b}`),g&&!1!==(null==w?void 0:w.hiddenLayers)&&y.searchParams.set("hiddenLayers",g),y.search=decodeURIComponent(y.search),y.href}return!1!==(null==w?void 0:w.center)&&y.searchParams.set("center",`${h};${p}`),!1!==(null==w?void 0:w.level)&&y.searchParams.set("level",`${v}`),_&&b&&!1!==(null==w?void 0:w.selectedFeature)&&y.searchParams.set("selectedFeature",`${_};${b}`),g&&!1!==(null==w?void 0:w.hiddenLayers)&&y.searchParams.set("hiddenLayers",g),y.search=decodeURIComponent(y.search),y.href}roundValue(t,i=4){return parseFloat(t.toFixed(i))}get el(){return n(this)}};g.style=":host{display:block;--instant-apps-social-share-action-width:initial;--instant-apps-social-share-width--s:200px;--instant-apps-social-share-width--m:280px;--instant-apps-social-share-width--l:320px;--instant-apps-social-share-width-horizontal--s:300px;--instant-apps-social-share-width-horizontal--m:380px;--instant-apps-social-share-width-horizontal--l:420px;--instant-apps-social-share-background-color:var(--calcite-color-foreground-1);--instant-apps-social-share-popover-button-background-color:transparent;--instant-apps-social-share-popover-button-icon-color:var(--calcite-ui-icon-color);--instant-apps-social-share-embed-border:1px solid $border;--instant-apps-social-share-embed-text-area-text:#468540}:host .instant-apps-social-share__popover-button{background-color:var(--instant-apps-social-share-popover-button-background-color)}:host .instant-apps-social-share__popover-button calcite-icon{color:var(--instant-apps-social-share-popover-button-icon-color)}:host .instant-apps-social-share__dialog,:host .instant-apps-social-share__dialog-embed{background-color:var(--instant-apps-social-share-background-color);border:var(--instant-apps-social-share-embed-border)}:host .instant-apps-social-share__dialog{box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__options{margin:0;padding:1% 0 0 0;list-style-type:none}:host .instant-apps-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__options li .instant-apps-social-share__icon,:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{display:inline-block}:host .instant-apps-social-share__options li .instant-apps-social-share__icon{display:flex;align-items:center}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text--rtl{margin-left:0;margin-right:10px}:host .instant-apps-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}:host .instant-apps-social-share__options__x-logo--light path{fill:#000000}:host .instant-apps-social-share__options__x-logo--dark path{fill:#ffffff}:host .instant-apps-social-share__tip{box-sizing:border-box;padding:0 5% 1% 5%}:host .instant-apps-social-share__tip-header{display:flex;align-items:center;color:#007ac2;margin:8px 0 5px 0}:host .instant-apps-social-share__tip-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__tip-content{line-height:17px;margin:0;padding-top:2%}:host .instant-apps-social-share__success{display:flex;flex-direction:column;padding:15px}:host .instant-apps-social-share__success-header{display:flex;align-items:center;font-weight:bold;margin-bottom:10px}:host .instant-apps-social-share__success-icon{display:flex;align-items:center;margin-right:5px}:host .instant-apps-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}:host .instant-apps-social-share__success-message{line-height:16px}:host .instant-apps-social-share__embed{box-sizing:border-box;width:100%;padding:5%;margin-bottom:10px;border-top:1px solid #d3d3d3}:host .instant-apps-social-share__embed-header{display:flex;align-items:center;margin-bottom:5px}:host .instant-apps-social-share__embed-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__embed-code-text-area{border:1px solid #d3d3d3}:host .instant-apps-social-share__embed-code-text-area textarea{box-sizing:border-box;padding:4%;border:none;resize:none;background:transparent;width:100%;font-family:var(--calcite-sans-family);color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button{display:flex;align-items:center;text-align:start;width:100%;border:none;border-top:1px solid #d3d3d3;background-color:transparent;line-height:16px;font-weight:400;padding:3%;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button calcite-icon{color:#007ac2;margin-right:3px}:host .instant-apps-social-share__embed-code-text-area button:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2);transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__embed-text-area-text{font-weight:600;color:var(--instant-apps-social-share-embed-text-area-text)}:host .instant-apps-social-share__embed .instant-apps-social-share__text-area--rtl{text-align:left;direction:ltr}:host .instant-apps-social-share__embed-dimensions{display:flex;justify-content:space-between;margin-top:10px}:host .instant-apps-social-share__embed-dimensions-input{width:47%;box-sizing:border-box}:host .instant-apps-social-share__embed-dimensions-input input{border:1px solid #d3d3d3;width:100%;height:25px;font-family:var(--calcite-sans-family)}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li{flex-direction:column;padding:0}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li .instant-apps-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li:hover{background-color:unset}:host .instant-apps-social-share__icon-container{display:flex;align-items:center}:host calcite-action{width:var(--instant-apps-social-share-action-width)}:host([scale=s]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--s)}:host([scale=s]) .instant-apps-social-share__icon{width:16px;height:16px}:host([scale=s]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--s)}:host([scale=s]) .instant-apps-social-share__tip-header,:host([scale=s]) .instant-apps-social-share__tip-content,:host([scale=s]) .instant-apps-social-share__embed-header,:host([scale=s]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--2)}:host([scale=m]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--m)}:host([scale=m]) .instant-apps-social-share__icon{width:24px;height:24px}:host([scale=m]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--m)}:host([scale=m]) .instant-apps-social-share__tip-header,:host([scale=m]) .instant-apps-social-share__tip-content,:host([scale=m]) .instant-apps-social-share__embed-header,:host([scale=m]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--1)}:host([scale=l]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--l)}:host([scale=l]) .instant-apps-social-share__icon{width:32px;height:32px}:host([scale=l]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--l)}:host([scale=l]) .instant-apps-social-share__tip-header,:host([scale=l]) .instant-apps-social-share__tip-content,:host([scale=l]) .instant-apps-social-share__embed-header,:host([scale=l]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size-0)}";export{v as instant_apps_filter_list,g as instant_apps_social_share}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as t,h as s,H as i,g as e}from"./p-8c40bdec.js";import{l as a}from"./p-08ad0b7a.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";const n="instant-apps-measurement-tool",o={base:n,hide:`${n}__hide`},r=class{constructor(s){t(this,s),this.view=void 0,this.measureConfiguration=void 0,this.activeTool=void 0}async componentWillLoad(){await this._initModules()}componentDidLoad(){this._init()}render(){return s(i,{key:"eabd8e43ae6d095e02bcc99935a2069ba620d66a"},s("div",{key:"5bb33f7f1785e60e4cde37ee8ba08bae4681751d",class:o.base},s("div",{key:"8826eb9665c17f8eed640e0bcab3cff50a02ec23",ref:t=>{this._measureElement=t}}),s("div",{key:"0e3b7364403866976f5e6578c08b8fdc50d1e33f",class:o.hide,ref:t=>{this._coordinateElement=t}})))}disconnectedCallback(){var t,s;null===(t=this._measureWidget)||void 0===t||t.destroy(),null===(s=this._coordinateWidget)||void 0===s||s.destroy()}async _initModules(){const[t,s,i]=await a(["esri/widgets/Measurement","esri/widgets/CoordinateConversion","esri/widgets/CoordinateConversion/support/Conversion"]);this.Measurement=t,this.CoordinateConversion=s,this.Conversion=i}_init(){this._initMeasurementWidget(),this._initCoordinateWidget()}_updateToolType(t){this._setActiveTool(t)}_initMeasurementWidget(){this.view&&this._measureElement&&!this._measureWidget&&(this._measureWidget=new this.Measurement(Object.assign({view:this.view,container:this._measureElement},this.measureConfiguration)),this.measureConfiguration.activeToolType&&this._setActiveTool(this.measureConfiguration.activeToolType))}_setActiveTool(t){var s,i,e;const a=this.view.type;this._measureWidget.clear(),null===(s=this._coordinateElement)||void 0===s||s.classList.add(o.hide),"distance"===t?this._measureWidget.activeTool="2d"===a?"distance":"direct-line":"area"===t?this._measureWidget.activeTool="area":"point"===t&&(null===(e=null===(i=this._coordinateElement)||void 0===i?void 0:i.classList)||void 0===e||e.remove(o.hide))}_initCoordinateWidget(){var t,s;const{activeToolType:i,coordinateFormat:e}=this.measureConfiguration;if((null==this?void 0:this.view)&&this._coordinateElement&&!this._coordinateWidget&&(this._coordinateWidget=new this.CoordinateConversion({view:this.view,storageEnabled:!1,container:this._coordinateElement}),null!=e)){const i=this._coordinateWidget.formats.find((t=>t.name===e));null===(s=null===(t=this._coordinateWidget)||void 0===t?void 0:t.conversions)||void 0===s||s.splice(0,0,new this.Conversion({format:i}))}null!=i&&this._setActiveTool(i)}get el(){return e(this)}static get watchers(){return{activeTool:["_updateToolType"]}}};r.style=".sc-instant-apps-measurement-tool-h .esri-measurement.sc-instant-apps-measurement-tool,.sc-instant-apps-measurement-tool-h .esri-coordinate-conversion.sc-instant-apps-measurement-tool{width:300px}.sc-instant-apps-measurement-tool-h .instant-apps-measurement-tool__hide.sc-instant-apps-measurement-tool{display:none}";export{r as instant_apps_measurement_tool}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as t,c as i,h as s,H as o,g as e}from"./p-8c40bdec.js";import{l as n}from"./p-08ad0b7a.js";import{b as a}from"./p-ea19f91b.js";import{w as r}from"./p-04674a1e.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-ac122d9e.js";const l="instant-apps-scoreboard",d=`${l}--`,c=`${l}__`,h=r.medium[1],p={BASE:l,itemsContainer:`${c}items-container`,items:`${c}items`,item:`${c}item`,label:`${c}item-label`,value:`${c}item-value`,valuePlaceholder:`${c}item-value-placeholder`,position:{bottom:`${c}position--bottom`,side:`${c}position--side`,left:`${c}position--left`,right:`${c}position--right`},mode:{floating:`${c}mode--floating`,pinned:`${c}mode--pinned`}},b=class{constructor(s){t(this,s),this.scoreboardItemsUpdated=i(this,"scoreboardItemsUpdated",7),this.view=void 0,this.items=void 0,this.position="bottom",this.mode="floating",this.itemLimit=6,this.autoDockEnabled=!0,this.geometry=null,this.queryType="layerView",this.state="loading",this.messages=void 0,this.itemIndex=0,this.layers=void 0,this.layerViews=void 0,this.isMobile=!1}scoreboardItemsUpdatedHandler(){this.scoreboardItemsUpdated.emit(this.items)}generateUIDs(){this.itemIndex=0,this.items.forEach(this.generateUID())}async storeLayers(){this.state="calculating",await this.view.map.loadAll();const t=this.items.map((t=>{var i;return null===(i=null==t?void 0:t.layer)||void 0===i?void 0:i.id}));this.layers=this.view.map.allLayers.filter((i=>(i=>(t=>!t.isTable)(i)&&(t=>"feature"===t.type||"scene"===t.type)(i)&&(i=>t.indexOf(i.id)>-1)(i))(i))),this.watchLayerVisibility()}async storeLayerViews(){if(this.layers&&this.layers.length>0){this.layers.forEach((t=>t.outFields=["*"]));const t=[];this.layers.forEach((i=>{const s=this.view.whenLayerView(i);t.push(s)}));const i=(await Promise.allSettled(t)).filter((t=>"fulfilled"==t.status&&t.value)).map((t=>t.value)),s=[];i.forEach((t=>{var i;return s.push(null===(i=this.reactiveUtils)||void 0===i?void 0:i.whenOnce((()=>!t.updating)))})),await Promise.all(s),this.layerViews=new this.Collection([...i])}}calculateScoreboardItemValuesFromGeometry(){this.calculateScoreboardItemValues()}async calculateScoreboardItemValues(){if(this.layers&&0===this.layers.length||this.layerViews&&0===this.layerViews.length)return;this.state="calculating";const t=[...this.items],i=[];this.queryStatDefinitions(t,i);const s=await Promise.all(i);this.handleQueryFeaturesResponses(s,t),this.items.length=0,t.forEach((t=>this.items.push(t))),this.state="complete",this.scoreboardItemsUpdatedHandler(),this.initStationaryWatcher()}async componentWillLoad(){var t;new ResizeObserver((()=>{this.itemIndex=0,this.autoDockEnabled&&(this.isMobile=!!this.checkMobile)})).observe(null===(t=this.el)||void 0===t?void 0:t.parentElement);try{this.state="loading",await this.initMessages()}catch(t){return this.state="disabled",Promise.reject()}finally{if(!this.view||!this.items)return this.state="disabled",Promise.reject();try{return await this.initModules(),Promise.resolve()}catch(t){return this.state="disabled",Promise.reject()}}}async componentDidLoad(){var t;if("disabled"!==this.state)try{await(null===(t=this.reactiveUtils)||void 0===t?void 0:t.whenOnce((()=>{var t;return null===(t=this.view)||void 0===t?void 0:t.ready}))),this.generateUIDs(),await this.loadMapResources(),this.storeLayers(),this.initViewUpdateWatcher()}catch(t){this.state="disabled",console.error(`${l}: FAILED TO LOAD MAP RESOURCES`)}}disconnectedCallback(){var t,i,s,o,e,n;this.state="disabled",this.itemIndex=0,null===(t=this.layers)||void 0===t||t.removeAll(),null===(i=this.layers)||void 0===i||i.destroy(),this.layers=null,null===(s=this.layerViews)||void 0===s||s.removeAll(),null===(o=this.layerViews)||void 0===o||o.destroy(),this.layerViews=null,null===(e=this.handles)||void 0===e||e.removeAll(),null===(n=this.handles)||void 0===n||n.destroy(),this.handles=null}async initMessages(){let t;try{return t=(await a(this.el))[0],this.messages=Object.assign(Object.assign({},this.messages),t),Promise.resolve()}catch(t){console.error("FAILED TO LOAD MESSAGES"),Promise.reject()}}async initModules(){try{const[t,i,s,o]=await n(["esri/core/Handles","esri/core/reactiveUtils","esri/core/Collection","esri/intl"]);return this.reactiveUtils=i,this.Collection=s,this.intl=o,this.handles=new t,this.layers=new s,this.layerViews=new s,Promise.resolve()}catch(t){return console.error(t),this.state="disabled",Promise.reject()}}async loadMapResources(){const{map:t}=this.view,i=t;try{return await i.loadAll(),Promise.resolve()}catch(t){return console.error(t),this.state="disabled",Promise.reject()}}generateUID(){return t=>{const i=Math.random(),s=Math.floor(10*Math.random())+11,o=i.toString(s).replace("0.","");t.uid=o}}render(){var t,i;const{state:e}=this,n="disabled"===e,a="loading"===e||"calculating"===e||"layerView"===this.queryType&&(null===(t=this.view)||void 0===t?void 0:t.updating)?this.renderProgress():null;return s(o,{key:"5a7e3fdc0753d3f951a71397519ebf07ecd68e03",class:`${this.getPositionClass} ${this.getStyleClass}`},n?null:[a,(null===(i=this.items)||void 0===i?void 0:i.length)>0?this.renderBase():null])}renderBase(){return s("div",{key:"instant-apps-scoreboard-base",class:l},this.renderContent())}renderContent(){const{state:t}=this;return"loading"===t?this.renderLoader():"calculating"===t||"complete"===t?this.renderItemsContainer():null}renderItemsContainer(){const[t,i]=this.renderPreviousNextButtons();return s("div",{class:p.itemsContainer},t,this.renderItems(),i)}renderPreviousNextButtons(){var t,i,o;const e=this.getItemLimit(),n=(null===(t=this.items.filter((t=>t.visible)))||void 0===t?void 0:t.length)<=e,a=0===this.itemIndex,r=this.isEnd,l=!!this.isMobile||"bottom"===this.position,d=l?"start":"center",c={previous:l?"chevron-left":"chevron-up",next:l?"chevron-right":"chevron-down"},h=a||n?"blank":c.previous,p=r||n?"blank":c.next,b={previous:a||n,next:r||n},u="transparent",m=this.isMobile?"s":"l",v={previous:null===(i=this.messages)||void 0===i?void 0:i.previous,next:null===(o=this.messages)||void 0===o?void 0:o.next};return[s("calcite-action",{onClick:this.previousItem.bind(this),icon:h,disabled:b.previous,alignment:d,scale:m,appearance:u,text:v.previous,label:v.previous}),s("calcite-action",{onClick:this.nextItem.bind(this),icon:p,disabled:b.next,alignment:d,scale:m,appearance:u,text:v.next,label:v.next})]}renderItems(){const{items:t}=p,i=this.getItemsToDisplay.map((t=>this.renderItem(t)));return s("ul",{class:t},i)}renderItem(t){const{label:i}=t;return s("li",{class:p.item},s("span",{class:p.label,title:i},i),this.renderValue(t))}renderValue(t){var i,o,e;const{displayValue:n}=t,a="disabled"===this.state,r=void 0===n&&"calculating"===this.state,l=n||(null===(i=this.messages)||void 0===i?void 0:i.NA),d=null===(o=this.layers)||void 0===o?void 0:o.find((i=>{var s;return(null===(s=null==t?void 0:t.layer)||void 0===s?void 0:s.id)===i.id})),c=!(null==d?void 0:d.visible),h=r?this.renderValuePlaceholder():a?"":c?s("calcite-icon",{icon:"view-hide",scale:"l",title:null===(e=this.messages)||void 0===e?void 0:e.layerVisibilityOff}):l;return s("span",{class:p.value},h)}renderValuePlaceholder(){return s("span",{class:p.valuePlaceholder})}renderProgress(){return s("calcite-progress",{key:`${d}calcite-progress`,type:"indeterminate"})}renderLoader(){var t;const i=null===(t=this.messages)||void 0===t?void 0:t.loading;return s("calcite-loader",{key:`${d}calcite-loader`,label:i,text:i,scale:"m"})}get getPositionClass(){const{bottom:t,left:i,right:s,side:o}=p.position;return this.isMobile||"bottom"===this.position?t:`${"left"===this.position?i:s} ${o}`}get getStyleClass(){const{floating:t,pinned:i}=p.mode;return this.isMobile?i:"floating"===this.mode?t:i}get checkMobile(){var t,i;const s=null===(i=null===(t=this.el)||void 0===t?void 0:t.parentElement)||void 0===i?void 0:i.offsetWidth;return!isNaN(s)&&s>0&&s<h}get getItemsToDisplay(){const t=this.getItemLimit();return this.items.filter((t=>t.visible)).slice(this.itemIndex,t+this.itemIndex)}get isEnd(){const t=this.getItemLimit(),i=this.items.slice(this.items.length-t).map((t=>t.uid)),s=this.items.slice(this.itemIndex,this.itemIndex+t).map((t=>t.uid));return i.every(((t,i)=>t===s[i]))}previousItem(){this.itemIndex=this.itemIndex-1}nextItem(){this.itemIndex=this.itemIndex+1}queryStatDefinitions(t,i){const s=(t,i)=>{var s,o,e,n,a;const r="layer"===this.queryType?t.layer.createQuery():t.createQuery(),l=this.geometry?this.geometry:this.view.extent;r.outStatistics=[i],r.geometry=l;const d=null!==(a=null!==(o=null===(s=null==t?void 0:t.filter)||void 0===s?void 0:s.timeExtent)&&void 0!==o?o:null===(n=null===(e=null==t?void 0:t.featureEffect)||void 0===e?void 0:e.filter)||void 0===n?void 0:n.timeExtent)&&void 0!==a?a:null;return d&&(r.timeExtent=d),r};t.forEach((()=>async t=>{var o;const e=null===(o=this.layerViews)||void 0===o?void 0:o.find((i=>{var s;return i.layer.id===(null===(s=null==t?void 0:t.layer)||void 0===s?void 0:s.id)}));if(!e)return;const n=(t=>{const{field:i,operation:s}=t;return{onStatisticField:i,outStatisticFieldName:`${i}_${s}`,statisticType:s}})(t),a=s(e,n),r="layer"===this.queryType?e.layer.queryFeatures(a):e.queryFeatures(a);i.push(r)})())}handleQueryFeaturesResponses(t,i){t.forEach((()=>(t,s)=>{const o=(t=>{const i=t.features[0],{attributes:s}=i;return Object.values(s)[0]})(t),e=null!==o,n=e?this.intl.formatNumber(o,{notation:"compact",compactDisplay:"short"}):null;i[s].displayValue=e?`${n}`:"",i[s].value=o})())}initStationaryWatcher(){var t,i;const s={once:!0,initial:!0},o=()=>{var t;return null===(t=this.reactiveUtils)||void 0===t?void 0:t.when((()=>{var t;return!(null===(t=this.view)||void 0===t?void 0:t.interacting)}),(()=>{"layerView"===this.queryType&&this.calculateScoreboardItemValues()}),s)},e="stationary-watcher-key";(null===(t=this.handles)||void 0===t?void 0:t.has(e))&&this.handles.remove(e),null===(i=this.handles)||void 0===i||i.add((()=>{var t;return null===(t=this.reactiveUtils)||void 0===t?void 0:t.when((()=>{var t;return null===(t=this.view)||void 0===t?void 0:t.stationary}),(()=>o()))})(),e)}initViewUpdateWatcher(){return this.reactiveUtils.watch((()=>{var t;return null===(t=this.view)||void 0===t?void 0:t.updating}),(()=>{this.reactiveUtils.when((()=>{var t;return!(null===(t=this.view)||void 0===t?void 0:t.updating)}),(()=>{"layerView"===this.queryType&&this.calculateScoreboardItemValues()}),{once:!0,initial:!0})}),{initial:!0})}watchLayerVisibility(){var t,i;if(!this.layers)return;const s="visbilityWatcherKey";null===(t=this.handles)||void 0===t||t.remove(s);const o=[];this.layers.forEach((t=>{const i=async()=>{const i=await this.view.whenLayerView(t);await this.reactiveUtils.whenOnce((()=>!1===(null==i?void 0:i.updating))),this.calculateScoreboardItemValues()},s=this.reactiveUtils.watch((()=>null==t?void 0:t.visible),(async()=>i()));o.push(s)})),null===(i=this.handles)||void 0===i||i.add([...o],s)}getItemLimit(){return this.itemLimit<2||this.itemLimit>6?6:this.itemLimit}get el(){return e(this)}static get watchers(){return{items:["generateUIDs","storeLayers"],layers:["storeLayerViews"],geometry:["calculateScoreboardItemValuesFromGeometry"],layerViews:["calculateScoreboardItemValues"]}}};b.style=":host{display:block;--instant-apps-scoreboard-background-color:var(--calcite-color-foreground-1);--instant-apps-scoreboard-text-color:var(--calcite-color-text-1);--instant-apps-scoreboard-mobile-position-bottom:0;background-color:var(--instant-apps-scoreboard-background-color);color:var(--instant-apps-scoreboard-text-color)}:host .instant-apps-scoreboard{box-sizing:border-box;border:1px solid var(--calcite-color-border-1);box-shadow:0px 3px 15px rgba(0, 0, 0, 0.2);border-radius:3px}:host .instant-apps-scoreboard calcite-loader{--calcite-loader-padding:1rem}:host .instant-apps-scoreboard__items-container{display:flex}:host .instant-apps-scoreboard__items-container calcite-action{height:100%}:host .instant-apps-scoreboard__items,:host .instant-apps-scoreboard__item{box-sizing:border-box;display:flex}:host .instant-apps-scoreboard__items{list-style-type:none;padding-left:0;margin:0;padding-top:1.75%;padding-bottom:1.75%;width:100%}:host .instant-apps-scoreboard__item{flex-direction:column;justify-content:flex-end;align-items:center;padding:1%}:host .instant-apps-scoreboard__item-label{box-sizing:border-box;line-height:24px;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;word-break:break-word;font-size:1rem;font-weight:400;text-align:center}:host .instant-apps-scoreboard__item-value{display:flex;justify-content:center;align-items:center;min-width:32px;min-height:32px;margin-top:5px;font-size:1.5rem;font-weight:900}:host .instant-apps-scoreboard__item-value-placeholder{display:inline-block;width:32px;height:32px;background-color:var(--calcite-color-foreground-3);border-radius:4px}:host(.instant-apps-scoreboard__position--bottom){bottom:0}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__items{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__item{min-width:10vw;vertical-align:top}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating){left:50%;max-width:calc(100% - 30px);transform:translate(-50%, -15px)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:25vw}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){left:unset;bottom:0;transform:unset;width:100%}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{min-width:unset}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{width:100%;justify-content:space-between}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard{display:flex;justify-content:center;align-items:center;width:10vw;overflow-y:auto}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container{flex-direction:column;height:100%;box-sizing:border-box}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container calcite-action{height:unset;width:100%}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items{flex-direction:column;padding:10px}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__item{padding-top:0.5vh;padding-bottom:0.5vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating){top:15px;left:15px;max-height:calc(100% - 30px)}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:10vw;min-height:35vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned){top:unset;left:unset;transform:unset;height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{justify-content:space-between}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--floating){left:15px}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--floating){left:unset;right:15px}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--pinned){left:0}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--pinned){left:unset;right:0}@media only screen and (min-width: 992px){:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){bottom:var(--instant-apps-scoreboard-mobile-position-bottom)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__item{justify-content:center;min-width:unset;flex-grow:1}}";export{b as instant_apps_scoreboard}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as t,g as e,h as i,H as s,c as a}from"./p-8c40bdec.js";import{l as h,g as n}from"./p-075979ef.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";const o=class{constructor(e){t(this,e)}get el(){return e(this)}mapView;basemapConfig;basemapWidget;BasemapGallery;PortalBasemapsSource;_basemapElement;async basemapConfigWatchHandler(){if(this.basemapWidget?.source){const t=this.basemapWidget?.source;t.query=this.basemapConfig?.basemapGroupId?`id:${this.basemapConfig.basemapGroupId}`:null,await t.refresh()}}async mapViewWatchHandler(){await this.mapView.when((()=>{this._initBaseMapGallery(this.mapView)}))}async componentWillLoad(){return this._initModules()}render(){return i(s,{key:"cc7e423a47742c0f5c3a5023b77157af09e56433"},i("div",{key:"9b41466e49c93e533f1d2a621707c5189c5092b3",ref:t=>{this._basemapElement=t}}))}async componentDidLoad(){this.mapView&&await this.mapViewWatchHandler()}async _initModules(){const[t,e]=await h(["esri/widgets/BasemapGallery","esri/widgets/BasemapGallery/support/PortalBasemapsSource"]);this.BasemapGallery=t,this.PortalBasemapsSource=e}async _initBaseMapGallery(t){if(this.BasemapGallery){this.basemapWidget&&this.basemapWidget.destroy();const e=new this.PortalBasemapsSource({query:this.basemapConfig?.basemapGroupId?`id:${this.basemapConfig.basemapGroupId}`:null,filterFunction:this.basemapConfig?t=>!this.basemapConfig.basemapIdsToFilter.includes(t.portalItem.id):()=>!0});await e.refresh(),this.basemapWidget=new this.BasemapGallery({container:this._basemapElement,view:t,source:e})}}static get watchers(){return{basemapConfig:["basemapConfigWatchHandler"],mapView:["mapViewWatchHandler"]}}};o.style=":host{display:block}";const r=class{constructor(e){t(this,e),this.facilityChanged=a(this,"facilityChanged",7),this.levelChanged=a(this,"levelChanged",7),this.siteChanged=a(this,"siteChanged",7)}get el(){return e(this)}enabled;floorFilterWidget;mapView;FloorFilter;_floorFilterElement;reactiveUtils;_facilityHandle;_levelHandle;_siteHandle;async mapViewWatchHandler(){await this._initFloorFilter(this.mapView)}async enabledWatchHandler(){this.enabled?await this._initFloorFilter(this.mapView):this.enabled||this._destroyWidget()}facilityChanged;levelChanged;siteChanged;async componentWillLoad(){return this._initModules()}render(){return i(s,{key:"51da7a656e7f56ecc8cc4093d3dab856f77b5c7a"},i("div",{key:"d2fda7047f09a673216484f5c202f039fca20108",ref:t=>{this._floorFilterElement=t}}))}async componentDidLoad(){this.mapView&&!this.floorFilterWidget&&await this._initFloorFilter(this.mapView)}async _initModules(){const[t,e]=await h(["esri/widgets/FloorFilter","esri/core/reactiveUtils"]);this.FloorFilter=t,this.reactiveUtils=e}_destroyWidget(){this.floorFilterWidget&&(this.floorFilterWidget.destroy(),this.floorFilterWidget=void 0),this._floorFilterElement&&this._floorFilterElement.remove()}_initContainer(){this._destroyWidget(),this._floorFilterElement=document.createElement("div")}async _initFloorFilter(t){const e=t?.map;await e.when((()=>{t&&this.enabled&&this.FloorFilter&&e?.floorInfo&&(this._initContainer(),this.floorFilterWidget=new this.FloorFilter({container:this._floorFilterElement,view:t}),this._facilityHandle?.remove(),this._facilityHandle=this.reactiveUtils.watch((()=>this.floorFilterWidget.facility),(t=>{this.facilityChanged.emit(t)})),this._levelHandle?.remove(),this._levelHandle=this.reactiveUtils.watch((()=>this.floorFilterWidget.level),(t=>{this.levelChanged.emit(t)})),this._siteHandle?.remove(),this._siteHandle=this.reactiveUtils.watch((()=>this.floorFilterWidget.site),(t=>{this.siteChanged.emit(t)})))}))}static get watchers(){return{mapView:["mapViewWatchHandler"],enabled:["enabledWatchHandler"]}}};r.style=":host{display:block}";const c=class{constructor(e){t(this,e),this.fullscreenStateChange=a(this,"fullscreenStateChange",7)}mapView;fullscreenWidget;Fullscreen;_fullscreenElement;_fullscreenStateChangeHandle;reactiveUtils;async mapViewWatchHandler(){await this.mapView.when((async()=>{await this._initFullscreenWidget()}))}fullscreenStateChange;async componentWillLoad(){await this._initModules()}render(){return i(s,{key:"657b81420a155322e56e3cb20b8656605233c0d4"},i("div",{key:"5ebf1f1b368f1d32bbcc4d8b1380d4aa7b985ab1",class:"fullscreen-widget",ref:t=>{this._fullscreenElement=t}}))}async componentDidUpdate(){await this._initFullscreenWidget()}async componentDidLoad(){await this._initFullscreenWidget()}async _initModules(){const[t,e]=await h(["esri/widgets/Fullscreen","esri/core/reactiveUtils"]);this.Fullscreen=t,this.reactiveUtils=e}async _initFullscreenWidget(){this.mapView&&this._fullscreenElement&&!this.fullscreenWidget?(this.fullscreenWidget=new this.Fullscreen({view:this.mapView}),await this.fullscreenWidget.when((()=>{this._fullscreenStateChangeHandle&&this._fullscreenStateChangeHandle.remove(),this._fullscreenStateChangeHandle=this.reactiveUtils.watch((()=>this.fullscreenWidget.viewModel.state),(t=>this.fullscreenStateChange.emit(t)))}))):this.fullscreenWidget&&(this.fullscreenWidget.view=this.mapView)}static get watchers(){return{mapView:["mapViewWatchHandler"]}}};c.style=":host{display:block}";const l=class{constructor(e){t(this,e)}get el(){return e(this)}mapView;legendWidget;Legend;_legendElement;async mapViewWatchHandler(){await this.mapView.when((()=>{this._initLegend(this.mapView)}))}async componentWillLoad(){return this._initModules()}render(){return i(s,{key:"dd7414c2dccf150f1d47d8f9491d89905feb64af"},i("div",{key:"16951986e7602ea0b66a3f55ee1a678cc0af84ce",ref:t=>{this._legendElement=t}}))}async componentDidLoad(){this.mapView&&await this.mapViewWatchHandler()}async _initModules(){const[t]=await h(["esri/widgets/Legend"]);this.Legend=t}_initLegend(t){t&&this.Legend&&(this.legendWidget?this.legendWidget.view=t:this.legendWidget=new this.Legend({container:this._legendElement,respectLayerDefinitionExpression:!0,view:t}))}static get watchers(){return{mapView:["mapViewWatchHandler"]}}};l.style=":host{display:block}";const d=class{constructor(e){t(this,e),this.beforeMapInfoChange=a(this,"beforeMapInfoChange",7),this.mapInfoChange=a(this,"mapInfoChange",7)}get el(){return e(this)}locale;mapInfos=[];isMapLayout;_mapListExpanded=!1;_translations;_webMapInfo;_list;_loadedId="";_skipEditCheck=!1;_webMapInfoWatchHandler(t,e){t&&JSON.stringify(t)!==JSON.stringify(e)&&(this._loadedId=t?.id,this.mapInfoChange.emit(t))}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapInfosWatchHandler(t,e){t&&JSON.stringify(t)!==JSON.stringify(e)&&this._webMapSelected(t[0])}async setMapByID(t,e=!1){this._skipEditCheck=e;const i=this.mapInfos?.filter((e=>e.id===t));t&&i?.length>0&&this._webMapSelected(i[0]),this._skipEditCheck=!1}async close(){this._mapListExpanded&&(this._mapListExpanded=!1)}async toggle(t){this._mapListExpanded=t}beforeMapInfoChange;mapInfoChange;async componentWillLoad(){await this._getTranslations()}render(){return i(s,{key:"f02389d06d3e4030387c0cded08b665fe8ee36eb"},this._getToolbar(),this._getMapNameList(this._mapListExpanded))}async componentDidLoad(){const t=this.mapInfos&&this.mapInfos.length>0?this.mapInfos[0]:void 0;t&&this._webMapSelected(t)}_getMapPicker(){const t="map-picker-expand-toggle";return i("div",{class:"width-full"},i("calcite-button",{alignment:"icon-end-space-between",appearance:"transparent",class:"width-full height-full",iconEnd:this._mapListExpanded?"chevron-up":"chevron-down",iconStart:"map",id:t,kind:"neutral",onClick:()=>this._chooseMap(),width:"full"},this._webMapInfo?.name),i("calcite-tooltip",{placement:"bottom","reference-element":t},i("span",null,this._translations.switchMap)))}_getToolbar(){return i("div",{class:"display-flex border-right"},i("calcite-action-bar",{class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:"header"},this._getMapPicker()))}_getMapNameList(t){return i("div",{class:t?"map-list border-bottom-1 adjusted-height "+(this.isMapLayout?"width-26":"width-full"):"display-none"},i("calcite-list",{id:"mapList",label:"",ref:t=>this._list=t,selectionAppearance:"border",selectionMode:"single"},this.mapInfos.map((t=>i("calcite-list-item",{label:t.name,onClick:()=>this._webMapSelected(t),selected:t.id===this._loadedId,value:t.id})))))}_webMapSelected(t){const e=this._loadedId;this._loadedId=t.id,this._skipEditCheck?this._webMapInfo=t:this.beforeMapInfoChange.emit({currentId:e,mapInfo:t,ref:this.el}).defaultPrevented||(this._webMapInfo=t),this._mapListExpanded=!1}_chooseMap(){this._mapListExpanded=!this._mapListExpanded}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{_webMapInfo:["_webMapInfoWatchHandler"],locale:["localeWatchHandler"],mapInfos:["mapInfosWatchHandler"]}}};d.style=":host{display:block;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.width-full{width:100%}.width-26{width:26% !important}.height-full{height:100%}.display-flex{display:flex}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.border-right{border-right:1px solid var(--calcite-color-border-3)}.action-bar-size{height:51px;width:100%}.map-list{position:absolute;display:flex;flex-direction:column;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-color-background);z-index:1000;width:100%;height:-moz-fit-content;height:fit-content}.display-none{display:none}.align-center{align-items:center}.adjusted-height{max-height:calc(100% - 52px);overflow-y:auto}";const p=class{constructor(e){t(this,e)}mapView;popupEnabled=!1;resultGraphicEnabled=!1;searchConfiguration;searchTerm;searchWidget;FeatureLayer;Search;_searchElement;_searchResult;async watchSearchConfigurationHandler(){this._initSearchWidget()}async mapViewWatchHandler(){await this.mapView.when((()=>{this._initSearchWidget()}))}async componentWillLoad(){await this._initModules()}async componentDidLoad(){return this._initSearchWidget()}render(){return i(s,{key:"9c344160df28da3a895a9b7c3c7e32b8a43fa6b8"},i("div",{key:"d98417c82b0fae1c7abc5ef54886579182d5464a",class:"search-widget",ref:t=>{this._searchElement=t}}))}async _initModules(){const[t,e]=await h(["esri/widgets/Search","esri/layers/FeatureLayer"]);this.Search=t,this.FeatureLayer=e}_initSearchWidget(){if(this.mapView&&this._searchElement&&!this.searchWidget){let t={view:this.mapView,container:this._searchElement,searchTerm:this.searchTerm};this.searchConfiguration&&(t={...this._getSearchConfig(this.searchConfiguration,this.mapView)}),this.searchWidget=new this.Search(t),this.searchWidget.popupEnabled=this.popupEnabled,this.searchWidget.resultGraphicEnabled=this.resultGraphicEnabled}else this.searchWidget&&(this.searchWidget.view=this.mapView)}_getSearchConfig(t,e){const i=t.sources;return i?.length>0?(t.includeDefaultSources=!1,i.forEach((t=>{if(t.hasOwnProperty("layer")){const i=t,s=i.layer?.id,a=s?e.map.findLayerById(s):null,h=i?.layer?.url;a?i.layer=a:h&&(i.layer=new this.FeatureLayer(h))}})),i?.forEach((t=>{if(t.hasOwnProperty("locator")){const e=t;"ArcGIS World Geocoding Service"===e?.name&&(e.outFields=e.outFields||["Addr_type","Match_addr","StAddr","City"],e.singleLineFieldName="SingleLine"),e.url=e.url,delete e.url}}))):t={...t,includeDefaultSources:!0},t}static get watchers(){return{searchConfiguration:["watchSearchConfigurationHandler"],mapView:["mapViewWatchHandler"]}}};p.style=":host{display:block}.search-widget{width:100% !important;border:1px solid var(--calcite-color-border-input)}";const m=class{constructor(e){t(this,e)}get el(){return e(this)}basemapConfig;enableLegend;enableFloorFilter;enableFullscreen;enableSearch;enableBasemap;enableHome;enableSingleExpand;homeZoomToolsSize="m";layout="vertical";locale;mapView;mapWidgetsSize="m";position="top-right";searchConfiguration;stackTools=!0;toolOrder;_hasFloorInfo=!1;_translations;_showTools=!0;_showBasemapWidget=!1;_showFloorFilter=!1;_showFullscreen=!1;_showLegendWidget=!1;_showSearchWidget=!1;Expand;_basemapElement;_floorFilterElement;_fullscreenElement;_legendElement;_searchElement;_widgets=[];async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(){await this.mapView.when((()=>{this._hasFloorInfo=this.mapView?.map?.floorInfo}))}async _showBasemapWidgetWatchHandler(t){t?this.mapView.ui.add(this._basemapElement.basemapWidget,{position:this.position,index:1}):this.mapView.ui.remove(this._basemapElement.basemapWidget)}async _showFloorFilterWatchHandler(t){const e=this._floorFilterElement.floorFilterWidget;t?this.mapView.ui.add(e,{position:this.position,index:1}):this.mapView.ui.remove(e)}async _showFullscreenWatchHandler(t){const e=this._fullscreenElement.fullscreenWidget;t?"ready"===e.viewModel.state&&e.viewModel.enter():"active"===e.viewModel.state&&e.viewModel.exit()}async _showLegendWidgetWatchHandler(t){t?this.mapView.ui.add(this._legendElement.legendWidget,{position:this.position,index:1}):this.mapView.ui.remove(this._legendElement.legendWidget)}async _showSearchWidgetWatchHandler(t){t?this.mapView.ui.add(this._searchElement.searchWidget,{position:this.position,index:1}):this.mapView.ui.remove(this._searchElement.searchWidget)}async componentWillLoad(){await this._getTranslations(),await this._initModules()}render(){this._setZoomToolsSize();const t=this._showTools?"":"display-none",e=this._showSearchWidget?"":"display-none",a=this._showBasemapWidget?"":"display-none",h=this._showLegendWidget?"":"display-none",n=this._showFloorFilter?"":"display-none",o=this._showFullscreen?"":"display-none",r=this.enableSingleExpand?"margin-top-1-2":"",c=this.toolOrder?this.toolOrder:["legend","search","fullscreen","floorfilter"],l=this.stackTools?"box-shadow":"";return i(s,{key:"2fc2ec5b50545b65962e3942512a935e4017908d"},i("div",{key:"aa7824c19b2dbdaf7e21d1bc59dd066f2b3623b5",class:this.enableBasemap||this.enableFullscreen||this.enableLegend||this.enableSearch?"":"display-none"},this.enableSingleExpand?i("div",{class:"box-shadow"},this._getActionGroup(this._showTools?"chevrons-up":"chevrons-down",!1,this._showTools?this._translations.collapse:this._translations.expand,(()=>this._toggleTools()))):void 0,i("div",{key:"7cd0c1f2f69cf961c11c7b8b3c1989342a300f77",class:`${r} ${l} ${t}`},this._getMapWidgets(c))),i("basemap-gallery",{key:"f6c9fc50b1e8360d4d60df85bd0c2341a0504fcf",basemapConfig:this.basemapConfig,class:a,mapView:this.mapView,ref:t=>{this._basemapElement=t}}),i("map-search",{key:"3e231e74bff5d0b373e6105b738a27aeef880094",class:e,mapView:this.mapView,ref:t=>{this._searchElement=t},resultGraphicEnabled:!0,searchConfiguration:this.searchConfiguration}),i("map-legend",{key:"ce1388b4892e6870ac3a38399e5ad619ab843be1",class:h,mapView:this.mapView,ref:t=>{this._legendElement=t}}),i("map-fullscreen",{key:"414ea8be82bbc1a9fd7f9ab63f5c1ee7e3dc25b1",class:o,mapView:this.mapView,onFullscreenStateChange:t=>this._fullscreenStateChange(t.detail),ref:t=>{this._fullscreenElement=t}}),i("floor-filter",{key:"9dcada2a4f2cd48a1db01d26b74b75aa09f37f8b",class:n,enabled:this.enableFloorFilter,mapView:this.mapView,ref:t=>{this._floorFilterElement=t}}))}async _initModules(){const[t]=await h(["esri/widgets/Expand"]);this.Expand=t}_setZoomToolsSize(){const t=document.getElementsByClassName("esri-zoom")[0]?.children[0],e=document.getElementsByClassName("esri-zoom")[0]?.children[1];if(t&&e){const i="s"===this.homeZoomToolsSize?"32px":"m"===this.homeZoomToolsSize?"40px":"48px";t.style.width=i,t.style.height=i,e.style.width=i,e.style.height=i}}_getMapWidgets(t){const e=this._showFullscreen?"full-screen-exit":"full-screen",i=this._showFullscreen?this._translations.exitFullscreen:this._translations.enterFullscreen;return t.map((t=>{switch(t){case"legend":return this.enableLegend&&this.enableSingleExpand?this._getActionGroup("legend",!1,this._translations.legend,(()=>this._showLegend())):this.enableLegend?this._getWidget(t,this._legendElement?.legendWidget,!0):void 0;case"search":return this.enableSearch&&this.enableSingleExpand?this._getActionGroup("magnifying-glass",!1,this._translations.search,(()=>this._search())):this.enableSearch?this._getWidget(t,this._searchElement?.searchWidget,!0):void 0;case"fullscreen":return this.enableFullscreen&&this.enableSingleExpand?this._getActionGroup(e,!1,i,(()=>this._expand())):this.enableFullscreen?this._getWidget(t,this._fullscreenElement?.fullscreenWidget,!1):void 0;case"basemap":return this.enableBasemap&&this.enableSingleExpand?this._getActionGroup("basemap",!1,this._translations.basemap,(()=>this._toggleBasemapPicker())):this.enableBasemap?this._getWidget(t,this._basemapElement?.basemapWidget,!0):void 0;case"floorfilter":return this.enableFloorFilter&&this._hasFloorInfo&&this.enableSingleExpand?this._getActionGroup("urban-model",!1,this._translations.floorFilter,(()=>this._toggleFloorFilter())):this.enableFloorFilter&&this._hasFloorInfo?this._getWidget(t,this._floorFilterElement?.floorFilterWidget,!0):void 0}}))}_fullscreenStateChange(t){"ready"===t&&this._showFullscreen?this._showFullscreen=!1:"active"!==t||this._showFullscreen||(this._showFullscreen=!0)}_getActionGroup(t,e,s,a){return i("div",null,i("calcite-action",{alignment:"center",class:`${"s"===this.mapWidgetsSize?"square-32":"m"===this.mapWidgetsSize?"square-40":"square-48"} ${this.stackTools?"":"margin-bottom-1-2"} border-bottom ${this.stackTools?"":"box-shadow"}`,disabled:e,icon:t,id:t,onClick:a,scale:"s",text:""},i("calcite-icon",{icon:"cheveron-up",scale:"s",slot:"icon"})),i("calcite-tooltip",{label:"",placement:"trailing","reference-element":t},i("span",null,s)))}_getWidget(t,e,i){if(this._widgets.indexOf(t)<0&&this.mapView&&e){const s=this.toolOrder.indexOf(t),a=new this.Expand({view:this.mapView,content:e});this.mapView.ui.add(i?a:e,{position:this.position,index:s>-1?s+(this.enableHome?2:1):1}),this._widgets.push(t)}}_showLegend(){this._showLegendWidget=!this._showLegendWidget,this._showTools=!1}_search(){this._showSearchWidget=!this._showSearchWidget,this._showTools=!1}_toggleBasemapPicker(){this._showBasemapWidget=!this._showBasemapWidget,this._showTools=!1}_toggleFloorFilter(){this._showFloorFilter=!this._showFloorFilter,this._showTools=!1}_expand(){this._showFullscreen=!this._showFullscreen}_toggleTools(){this._showTools||(this._showBasemapWidget=!1,this._showSearchWidget=!1,this._showLegendWidget=!1,this._showFloorFilter=!1),this._showTools=!this._showTools}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],_showBasemapWidget:["_showBasemapWidgetWatchHandler"],_showFloorFilter:["_showFloorFilterWatchHandler"],_showFullscreen:["_showFullscreenWatchHandler"],_showLegendWidget:["_showLegendWidgetWatchHandler"],_showSearchWidget:["_showSearchWidgetWatchHandler"]}}};m.style=":host{display:block}.display-none{display:none}.margin-top-1-2{margin-top:0.5rem}.square-32{width:32px;height:32px}.square-40{width:40px;height:40px}.square-48{width:48px;height:48px}.width-40{width:40px}.square-40-41{width:40px;height:41px}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.box-shadow{box-shadow:0 1px 2px rgba(0, 0, 0, 0.3)}.margin-bottom-1-2{margin-bottom:0.5rem}";export{o as basemap_gallery,r as floor_filter,c as map_fullscreen,l as map_legend,d as map_picker,p as map_search,m as map_tools}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as e,c as t,g as i,h as s,H as a}from"./p-8c40bdec.js";import{a as l,l as h,g as n}from"./p-075979ef.js";import{e as r,h as c,k as o,l as d,c as p,m as b,n as f,o as g}from"./p-d572627c.js";import{a as y,e as m,f as u}from"./p-80cb7c73.js";import{s as w}from"./p-bf007c87.js";import{d as _,a as v}from"./p-3d7eeb2d.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-fa639501.js";import"./p-4fe489cf.js";import"./p-2bc98cb0.js";import"./p-4f236b5d.js";import"./p-570b13d9.js";import"./p-0668e30d.js";const S=class{constructor(i){e(this,i),this.selectionSetChange=t(this,"selectionSetChange",7)}get el(){return i(this)}bufferColor=[227,139,79,.8];bufferOutlineColor=[255,255,255];customLabelEnabled;enabledLayerIds=[];enableLayerFeatures=!0;enableLayerFeaturesOnLoad=!1;enableSearchDistance=!0;enableSearchDistanceOnLoad=!1;enableSketchTools=!0;defaultBufferDistance;defaultBufferUnit;geometries=[];isUpdate=!1;layerViews=[];locale;mapView;noResultText;searchConfiguration;selectionSet;selectionLayerIds=[];selectLayerView;sketchLineSymbol;sketchPointSymbol;sketchPolygonSymbol;searchDistanceEnabled=!1;useLayerFeaturesEnabled=!1;_numSelected=0;_searchTerm;_selectionLoading=!1;_translations;_esriRequest;FeatureLayer;Graphic;GraphicsLayer;Search;_geometryEngine;_bufferGeometry;_bufferGraphicsLayer;_bufferTools;_distance;_drawTools;_labelName;_selectLayers;_searchElement;_searchResult;_searchWidget;_selectedIds=[];_selectionLabel="";_skipGeomOIDs;_sketchGraphic;_graphics=[];_unit;_workflowType;_featuresCollection={};async watchGeometriesHandler(e,t){if(e!==t){const t=0===e.length;if(await this._clearResults(t,t),e.length>0)return this._highlightWithOIDsOrGeoms()}}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(e,t){e&&e!==t&&await this._init()}async watchSearchConfigurationHandler(e,t){JSON.stringify(e)!==JSON.stringify(t)&&await this._initSearchWidget()}async clearSelection(){return this._clearResults(!0,!0)}async getSelection(){return/\S+/gm.test(this._selectionLabel)||await this._updateLabel(),{id:this.isUpdate?this.selectionSet.id:Date.now(),searchResult:this._searchResult,buffer:this._bufferGeometry,distance:this._bufferTools?.distance,download:!0,unit:this._bufferTools?.unit,label:this._selectionLabel,selectedIds:this._selectedIds,layerView:this.selectLayerView,geometries:this.geometries,graphics:this._graphics,selectLayers:this.layerViews,skipGeomOIDs:this._skipGeomOIDs,searchDistanceEnabled:this.searchDistanceEnabled,workflowType:this._workflowType,useLayerFeaturesEnabled:this.useLayerFeaturesEnabled,sketchGraphic:this._sketchGraphic}}selectionSetChange;searchConfigurationChangeChanged(e){this.searchConfiguration=e.detail}async distanceChanged(e){await this._distanceChanged(e.detail)}async unitChanged(e){e.detail.newValue!==e.detail.oldValue&&(this._unit=e.detail.newValue,await this._updateLabel())}async componentWillLoad(){await this._getTranslations(),await this._initModules()}async componentDidLoad(){await this._init()}render(){const e=this.enableSketchTools?"":"display-none",t=this.enableSketchTools?"padding-top-1":"";return s(a,{key:"5aa96f3189490b1f544bc6802772e99ce24e30ca"},this._getMapLayerPicker(),s("div",{key:"677afdaf1c84e5c7cf0217abe331afe47682b61f",class:"border-bottom"}),s("div",{key:"45d85c333df0e1f081a85b11e94e2a29fe5b8782",class:"padding-top-sides-1"},s("div",{key:"f26f760210ee8307eea537e0df28a4856876fccc",class:"search-widget",ref:e=>{this._searchElement=e}}),s("div",{key:"d9d703d05bc2990f2345036a227fe1e57c9d79ce",class:t},s("map-draw-tools",{key:"8f0eff15a801d654dfaf855f16fe165fad013c49",active:!0,class:e,editGraphicsEnabled:!this.useLayerFeaturesEnabled,graphics:this._graphics,locale:this.locale,mapView:this.mapView,onSketchGraphicsChange:e=>{this._sketchGraphicsChanged(e)},pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,ref:e=>{this._drawTools=e}})),this.enableSearchDistance?this._getBufferOptions():void 0,this.enableLayerFeatures?this._getUseLayerFeaturesOptions():void 0,this._getNumSelected()),s("div",{key:"89a597f46094f93d80b87c4c86a5b7f3fb6a1889",class:"border-bottom"}),this._getNameInput())}_getBufferOptions(){this.enableSearchDistanceOnLoad&&(this.searchDistanceEnabled=!0,this.enableSearchDistanceOnLoad=!1);const e=this.searchDistanceEnabled?"search-distance":"div-not-visible",t="number"==typeof this.selectionSet?.distance?this.selectionSet.distance:this.defaultBufferDistance;return s("div",null,s("div",{class:"padding-top-1 display-flex"},s("calcite-label",{class:"label-margin-0 w-100",layout:"inline-space-between"},s("div",{class:"tooltip-container"},this._translations.searchDistance,s("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"search-distance-icon",scale:"s"}))),s("calcite-popover",{closable:!0,label:"",referenceElement:"search-distance-icon"},s("span",{class:"tooltip-message"},this._translations.useSearchDistanceTootip)),s("calcite-switch",{checked:this.searchDistanceEnabled,onCalciteSwitchChange:()=>this.searchDistanceEnabled=!this.searchDistanceEnabled})),s("div",{class:e},s("buffer-tools",{disabled:!this.searchDistanceEnabled,distance:t,geometries:this.geometries,locale:this.locale,onBufferComplete:e=>{this._bufferComplete(e)},ref:e=>this._bufferTools=e,unit:this.selectionSet?.unit||this.defaultBufferUnit})))}_getUseLayerFeaturesOptions(){this.enableLayerFeaturesOnLoad&&(this.useLayerFeaturesEnabled=!0,this.enableLayerFeaturesOnLoad=!1);const e=this.useLayerFeaturesEnabled?"div-visible":"div-not-visible";return s("div",null,s("div",{class:"padding-top-1 display-flex"},s("calcite-label",{class:"label-margin-0 w-100",layout:"inline-space-between"},s("div",{class:"tooltip-container"},this._translations.useLayerFeatures,s("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"use-layer-features-icon",scale:"s"}))),s("calcite-popover",{closable:!0,label:"",referenceElement:"use-layer-features-icon"},s("span",{class:"tooltip-message"},this._translations.useLayerFeaturesTooltip)),s("calcite-switch",{checked:this.useLayerFeaturesEnabled,onCalciteSwitchChange:()=>{this._useLayerFeaturesEnabledChanged()}})),s("div",{class:e+" padding-top-1"},s("map-layer-picker",{enabledLayerIds:this.selectionLayerIds,locale:this.locale,mapView:this.mapView,onLayerSelectionChange:e=>{this._layerSelectionChange(e)},selectedIds:this.layerViews.map((e=>e.layer.id)),showTables:!1})))}_getNumSelected(){const e=l(this.el),t=e&&"en"===e?`${this._translations.selectionLoading}...`:this._translations.selectionLoading;return s("div",{class:"padding-top-1 padding-bottom-1",style:{"align-items":"end",display:"flex"}},this._selectionLoading?s("div",null,s("calcite-loader",{class:"info-blue",inline:!0,label:t,scale:"m",type:"indeterminate"})):s("calcite-icon",{class:"info-blue padding-end-1-2",icon:"feature-layer",scale:"s"}),s("calcite-input-message",{class:"info-blue",scale:"m"},this._selectionLoading?t:this.noResultText&&0===this._numSelected?this.noResultText:this._translations.selectedFeatures.replace("{{n}}",this._numSelected.toString())))}_getNameInput(){return s("div",{class:"padding-sides-1 padding-top-1 "+(this.customLabelEnabled?"":"display-none")},s("calcite-label",{class:"font-bold"},this._translations.listName,s("calcite-input",{onInput:()=>{this._selectionLabel=this._labelName.value},placeholder:this._translations.listNamePlaceholder,ref:e=>{this._labelName=e},value:this._selectionLabel||""})))}_getMapLayerPicker(){return s("div",{class:"display-flex padding-sides-1 padding-bottom-1"},s("calcite-label",{class:"font-bold width-full label-margin-0"},this._translations.inputLayer,s("map-layer-picker",{enabledLayerIds:this.enabledLayerIds,locale:this.locale,mapView:this.mapView,onLayerSelectionChange:e=>{this._inputLayerSelectionChange(e)},selectedIds:this.selectLayerView?[this.selectLayerView.layer.id]:this.selectionSet?[this.selectionSet.layerView.layer.id]:[],showTables:!1})))}async _initModules(){const[e,t,i,s,a,l]=await h(["esri/request","esri/layers/GraphicsLayer","esri/Graphic","esri/widgets/Search","esri/geometry/geometryEngine","esri/layers/FeatureLayer"]);this._esriRequest=e,this.GraphicsLayer=t,this.Graphic=i,this.Search=s,this._geometryEngine=a,this.FeatureLayer=l}async _init(){this._initGraphicsLayer(),await this._initSelectionSet(),await this._initSearchWidget()}async _initSelectionSet(){this.selectionSet&&(this._searchTerm=this.selectionSet.searchResult?.name,this._searchResult=this.selectionSet.searchResult,this._selectLayers=this.selectionSet.selectLayers,this._selectedIds=this.selectionSet.selectedIds,this._skipGeomOIDs=this.selectionSet.skipGeomOIDs,this.searchDistanceEnabled=this.selectionSet.searchDistanceEnabled,this.useLayerFeaturesEnabled=this.selectionSet.useLayerFeaturesEnabled,this._distance=this.selectionSet.searchDistanceEnabled?this.selectionSet.distance:0,this._unit=this.selectionSet.unit,this._workflowType=this.selectionSet.workflowType,this.selectLayerView=this.selectionSet.layerView,this._sketchGraphic=this.selectionSet.sketchGraphic,this.geometries=[...this.selectionSet?.geometries||[]],this._graphics=this.geometries.map((e=>new this.Graphic({geometry:e,symbol:"point"===e.type?this.sketchPointSymbol:"polyline"===e.type?this.sketchLineSymbol:this.sketchPolygonSymbol}))),this._selectionLabel=this.selectionSet?.label,this.useLayerFeaturesEnabled||await(this._drawTools?.updateGraphics()),await r(this.selectionSet.selectedIds,this.selectionSet.layerView,this.mapView,!1))}async _initSearchWidget(){if(this.mapView&&this._searchElement){const e=this._getSearchConfig(this.searchConfiguration,this.mapView),t={view:this.mapView,container:this._searchElement,searchTerm:this._searchTerm,...e};this._searchWidget=new this.Search(t),this._searchWidget.popupEnabled=!1,this._searchWidget.resultGraphicEnabled=!1,this._searchWidget.on("search-clear",(()=>{const e=this._searchClearLabel();this._clearResults(!1,e)})),this._searchWidget.on("select-result",(e=>{this._selectResult(e.result)})),await this._searchWidget.when((()=>{this._searchWidget.allPlaceholder=this.searchConfiguration?.allPlaceholder&&"find address or place"!==this.searchConfiguration.allPlaceholder.toLowerCase()?this.searchConfiguration.allPlaceholder:this._translations.placeholder}))}}async _selectResult(e){if(e){this._searchResult=e;const t=e.feature,i=t?.layer,s=this.selectLayerView.layer,a=t?.getObjectId();let l,h;i?.sourceJSON?.isView&&(l=await this._getViewSourceUrl(i.url)),s?.sourceJSON?.isView&&(h=await this._getViewSourceUrl(s.url));const n=i?.url?.toLowerCase(),r=l?.toLowerCase(),c=s?.url?.toLowerCase(),o=h?.toLowerCase(),d=n&&c&&(n===c||n===o||r===c||r===o)&&!isNaN(a),p=d?[a]:void 0;this._workflowType=y.SEARCH,this._updateLabel();const b=[e.feature];this._updateSelection(b,d,p),this._drawTools.graphics=b,this._searchWidget.resultGraphic.visible=!1}else{const e=this._searchClearLabel();this._clearResults(!1,e)}}async _getViewSourceUrl(e){let t="";const i=`${e}/sources?f=json`;try{const e=await this._esriRequest(i,{query:{f:"json"}});1===e?.data?.services?.length&&(t=e.data.services[0].url)}catch(e){console.log(e)}return t}_searchClearLabel(){return this._searchResult?.name&&this._labelName.value.indexOf(this._searchResult.name)>-1}_getSearchConfig(e,t){const i=e?.sources;return i?.length>0?(e={...e,includeDefaultSources:!1},i.forEach((e=>{if(e.hasOwnProperty("layer")){const i=e,s=i.layer?.id,a=s?t.map.findLayerById(s):null,l=i?.layer?.url;a?i.layer=a:l&&(i.layer=new this.FeatureLayer(l))}})),i?.forEach((e=>{if(e.hasOwnProperty("locator")){const t=e;"ArcGIS World Geocoding Service"===t?.name&&(t.outFields=t.outFields||["Addr_type","Match_addr","StAddr","City"],t.singleLineFieldName="SingleLine"),t.url=t.url,delete t.url}}))):e={...e,includeDefaultSources:!0},e}_initGraphicsLayer(){const e=this._translations.bufferLayer;if(this.mapView){const t=this.mapView.map.layers.findIndex((t=>t.title===e));if(t>-1)this._bufferGraphicsLayer=this.mapView.map.layers.getItemAt(t);else{this._bufferGraphicsLayer=new this.GraphicsLayer({title:e,listMode:"hide"}),w.managedLayers[e]="buffer";const t=this.mapView.map.layers.findIndex((e=>e.title===this._translations.sketchLayer));t>-1?this.mapView.map.layers.add(this._bufferGraphicsLayer,t):this.mapView.map.layers.add(this._bufferGraphicsLayer)}}}async _sketchGraphicsChanged(e,t=!1){const i=e.detail.graphics;if(i.length>0&&i[0])if(t||(this._sketchGraphic=i[0]),this._workflowType=this.useLayerFeaturesEnabled?y.SELECT:y.SKETCH,this._workflowType===y.SKETCH&&await this._drawTools.updateGraphics(),await this._updateLabel(),this._clearSearchWidget(),this.useLayerFeaturesEnabled&&!t){const e=Array.isArray(i)?i.map((e=>e.geometry)):this.geometries;await this._selectLayerFeatures(e[0])}else{const t=i.reduce(((e,t)=>(t?.layer?.objectIdField?e.push(t.attributes[t.layer.objectIdField]):t.getObjectId&&e.push(t.getObjectId()),e)),[]),s=e.detail.useOIDs&&t.length>0;this._updateSelection(i,s,t),s&&await this._highlightFeatures(t)}else await this._clearResults(!0,!0)}async _highlightWithOIDsOrGeoms(){return this._skipGeomOIDs?.length>0?(this._selectedIds=this._skipGeomOIDs,this._highlightFeatures(this._selectedIds)):this._geomQuery(this.geometries)}async _highlightFeatures(e){w.removeHandles(),e.length>0&&w.highlightHandles.push(await c(e,this.selectLayerView,this.mapView)),this._numSelected=e.length,this.selectionSetChange.emit(e.length)}async _selectFeatures(e){this._selectionLoading=!0,this._selectedIds=await o(e,this.selectLayerView.layer),this._selectionLoading=!1,this._drawTools.graphics=this._graphics,await this._highlightFeatures(this._selectedIds)}async _bufferComplete(e){this._bufferGeometry=Array.isArray(e.detail)?e.detail[0]:e.detail;let t=this._bufferTools.distance,i=0;if(this._bufferGeometry){const e=new this.Graphic({geometry:this._bufferGeometry,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});this._bufferGraphicsLayer.removeAll(),this._bufferGraphicsLayer.add(e),await this._selectFeatures([this._bufferGeometry]),await this.mapView.goTo(e.geometry.extent),i=t,t=0}else this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),await this._highlightWithOIDsOrGeoms();await this._distanceChanged({oldValue:t,newValue:i})}_geomQuery(e){const t=d(e,this._geometryEngine);return this._selectFeatures(t)}async _clearResults(e=!0,t=!1){this._selectedIds=[],this._distance=void 0,this._unit=void 0,t&&(this._selectionLabel="",this._labelName&&(this._labelName.value="")),this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),e&&this._searchWidget&&this._clearSearchWidget(),w.removeHandles(),this._drawTools?.clear&&(this._graphics=[],await this._drawTools.clear()),this._numSelected=this._selectedIds.length,this.selectionSetChange.emit(this._numSelected)}_clearSearchWidget(){this._searchWidget.clear(),this._searchResult=void 0}_updateSelection(e,t,i){this._selectedIds=t&&i?i:this._selectedIds,this._skipGeomOIDs=t?i:void 0,this.geometries=Array.isArray(e)?e.map((e=>e.geometry)):this.geometries,this._graphics=e}async _updateLabel(){if(this.enableSearchDistance){const e=this._selectionLabel.indexOf(this._translations.sketch)>-1,t=this._selectionLabel.indexOf(this._translations.select)>-1,i=this._selectionLabel.indexOf(this._searchResult?.name)>-1,s=this._workflowType===y.SEARCH?this._searchResult?.name:this._workflowType===y.SELECT?this._translations.select:this._translations.sketch,a=this._unit?this._unit:this._bufferTools.unit,l=await this._bufferTools.getTranslatedUnit(a),h=isNaN(this._distance)?this._bufferTools.distance:this._distance;this._selectionLabel=e||t||i||!this._selectionLabel?`${s} ${h} ${l}`:this._selectionLabel,this._labelName.value=this._selectionLabel}}async _layerSelectionChange(e){if(Array.isArray(e.detail)&&e.detail.length>0){const t=e.detail.map((e=>p(this.mapView,e)));return Promise.all(t).then((e=>{this.layerViews=e,this._featuresCollection={},this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}))}}async _inputLayerSelectionChange(e){const t=e?.detail?.length>0?e.detail[0]:"";this.selectLayerView&&t===this.selectLayerView.layer.id||(this.selectLayerView=await p(this.mapView,t),await this._updateLabel(),this._bufferGeometry?await this._selectFeatures([this._bufferGeometry]):await this._highlightWithOIDsOrGeoms())}async _distanceChanged(e){e.newValue!==e.oldValue&&(this._distance=e.newValue,await this._updateLabel())}async _selectLayerFeatures(e){this._selectionLoading=!0;const t=this.layerViews.map((t=>(this._featuresCollection[t.layer.id]=[],b(0,t.layer,e,this._featuresCollection))));return Promise.all(t).then((async e=>{this._selectionLoading=!1;let t=[];e.forEach((e=>{Object.keys(e).forEach((i=>{t=t.concat(e[i])}))}));let i=!1;t.forEach((e=>{const t=e.geometry;e.symbol="point"===t.type?this.sketchPointSymbol:"polyline"===t.type?this.sketchLineSymbol:"polygon"===t.type?this.sketchPolygonSymbol:void 0,i=e?.layer?.hasOwnProperty("objectIdField")||e.hasOwnProperty("getObjectId")}));const s=this.layerViews[0].layer,a=this.selectLayerView.layer,l=i&&s.url===a.url&&a.layerId===s.layerId;await this._sketchGraphicsChanged({detail:{graphics:t,useOIDs:l}},!0)}))}_useLayerFeaturesEnabledChanged(){this.useLayerFeaturesEnabled=!this.useLayerFeaturesEnabled,this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}async _getTranslations(){const e=await n(this.el);this._translations=e[0]}static get watchers(){return{geometries:["watchGeometriesHandler"],locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"]}}};S.style=':host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100% !important;border:1px solid var(--calcite-color-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:"1rem" !important}.end-border{border-inline-end:1px solid var(--calcite-color-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.tooltip-container{display:flex}.padding-start-1-2{padding-inline-start:0.5rem}.icon{--calcite-color-icon-color:var(--calcite-color-brand)}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2)}';const L=Object.freeze({__proto__:null,default:[{descriptionPDF:{labelWidthDisplay:"2-5/8",labelHeightDisplay:"1",labelsPerPageDisplay:"30",averyPartNumber:"*60"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.1875,rightMargin:.1875,topMargin:.5,bottomMargin:.5},numLabelsAcross:3,numLabelsDown:10,labelWidth:2.625,labelHeight:1,horizGapIn:.125,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1",labelsPerPageDisplay:"20",averyPartNumber:"*61"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.47637821,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:10,labelWidth:4,labelHeight:1.0025,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1-1/3",labelsPerPageDisplay:"14",averyPartNumber:"*62"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.81889808,bottomMargin:.83464612},numLabelsAcross:2,numLabelsDown:7,labelWidth:4,labelHeight:1.3352,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:6}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"2",labelsPerPageDisplay:"10",averyPartNumber:"*63"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.5,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:5,labelWidth:4,labelHeight:2,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:12,maxNumLabelLines:10}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"3-1/3",labelsPerPageDisplay:"6",averyPartNumber:"*64"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.4724412,bottomMargin:.50000027},numLabelsAcross:2,numLabelsDown:3,labelWidth:4,labelHeight:3.342,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:14,maxNumLabelLines:12}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"1/2",labelsPerPageDisplay:"80",averyPartNumber:"*67"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.307086375,rightMargin:.307086375,topMargin:.4724412,bottomMargin:.49606326},numLabelsAcross:4,numLabelsDown:20,labelWidth:1.75,labelHeight:.50155,horizGapIn:.29527575,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:3}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"2/3",labelsPerPageDisplay:"60",averyPartNumber:"*95"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.28936983,rightMargin:.28936983,topMargin:.53937037,bottomMargin:.5511814},numLabelsAcross:4,numLabelsDown:15,labelWidth:1.75,labelHeight:.6605,horizGapIn:.30708678,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:4}}]}),k=class{constructor(t){e(this,t)}get el(){return i(this)}defaultNumLabelsPerPage;disabled=!1;locale;_translations;_labelInfoElement;_intl;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async downloadCSV(e,t,i,s=!0){return _(e,t,!0,i,s)}async downloadPDF(e,t,i=!1,s="",a=""){return v(e,t,this._labelInfoElement.selectedOption?.value,i,s,a)}async componentWillLoad(){await this._getTranslations(),await this._initModules()}render(){return s(a,{key:"afa6cf667c52c3923d99db3f53854f5acb12ecb3"},s("calcite-select",{key:"97eed0501514f4b1466d02dfc8f58ddce55cc2ec",disabled:this.disabled,label:"",ref:e=>{this._labelInfoElement=e}}))}componentDidLoad(){this._renderOptions()}async _initModules(){const[e]=await h(["esri/intl"]);this._intl=e}_getLabelSizeText(e){const t="&lrm;"+e.descriptionPDF.labelWidthDisplay+" x "+e.descriptionPDF.labelHeightDisplay+"&rlm;";return this._translations.pdfLabel.replace("{{n}}",e.descriptionPDF.labelsPerPageDisplay).replace("{{labelSize}}",t)}async _getTranslations(){const e=await n(this.el);this._translations=e[0]}_renderOptions(){(L.default||L).sort(((e,t)=>{const i=parseInt(e.descriptionPDF.labelsPerPageDisplay,10),s=parseInt(t.descriptionPDF.labelsPerPageDisplay,10);return i<s?-1:i>s?1:0})).forEach(((e,t)=>{const i=document.createElement("calcite-option");i.value=e,i.innerHTML=this._getLabelSizeText(e),this._labelInfoElement.appendChild(i),(this.defaultNumLabelsPerPage?parseInt(e.descriptionPDF.labelsPerPageDisplay,10)===this.defaultNumLabelsPerPage:0===t)&&(i.selected=!0)}))}static get watchers(){return{locale:["localeWatchHandler"]}}};k.style=":host{display:block}";const P=class{constructor(i){e(this,i),this.selectionLoadingChange=t(this,"selectionLoadingChange",7),this.selectionSetsChanged=t(this,"selectionSetsChanged",7)}get el(){return i(this)}addresseeLayer;enabledLayerIds=[];locale;mapView;selectionSets=[];sketchLineSymbol;sketchPointSymbol;sketchPolygonSymbol;_translations;_selectionMode=m.ADD;_refineLayer;_addEnabled=!0;_drawTools;_refineSets=[];_enabledLayerIds=[];_layerPicker;_featuresCollection={};_refineSelectionSet;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}selectionLoadingChange;selectionSetsChanged;async componentWillLoad(){await this._getTranslations(),this._enabledLayerIds=this._getEnabledLayerIds(),await this._setRefineSet(this._enabledLayerIds[0])}render(){return s(a,{key:"01d9d6eb8f212f458bd6651d8e874bb108a6e773"},s("div",{key:"eb9fb249f89a671e9c67fb83db2203713814d72b",class:(this._enabledLayerIds.length>1?"display-block":"display-none")+" padding-top-sides-1"},s("div",{key:"a5991f6da0f888e85e1cf88967c8c8aa12790575",class:"display-flex"},s("calcite-label",{key:"e8f31c546ceae8a02ed1d49ec8ae9f1f6fb78022",class:"font-bold width-full label-margin-0"},s("div",{key:"d4be658063d140f56356ce7b694841e9bc89a1b3",class:"display-flex"},this._translations.inputLayer,s("calcite-icon",{key:"6d3ff8cbb1bcc62aca444eb4d030a236466adfac",class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"refine-input-layer",scale:"s"})),s("map-layer-picker",{key:"1e9dad9f2c8ff2ce130f79c37d804d4bd8162a96",enabledLayerIds:this._enabledLayerIds,locale:this.locale,mapView:this.mapView,onLayerSelectionChange:e=>{this._layerSelectionChange(e)},ref:e=>{this._layerPicker=e},selectedIds:[this._refineLayer.layer.id],showTables:!1})),s("calcite-popover",{key:"b4f838f56f88cff5973d8f5fd3c54b7f0d7c72b3",closable:!0,label:"",referenceElement:"refine-input-layer"},s("span",{key:"fcbdf68353eabcf090e60d8a239f07230f4bb37c",class:"tooltip-message"},this._translations.inputLayerTip)))),s("div",{key:"33891e7ff61cdd224a8652bae3e9d55256eb44a0",class:"padding-1"},s("div",{key:"a291edada53ed10197bec5fcc53d999f79042203",class:"padding-bottom-1"},s("calcite-segmented-control",{key:"0c84665a705a12d1e51fb470e604bc52d8ac7543",class:"w-100",width:"full"},s("calcite-segmented-control-item",{key:"e50d78508164a4ddf2a5da9def80a19a4562cb8c",checked:this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(m.ADD),value:m.ADD},s("span",{key:"b48811b1a2e56942965c944ff1eb35e10edd1db8",class:"font-weight-500"},this._translations.add)),s("calcite-segmented-control-item",{key:"dff6a191781fc4c6c3bde6fb3290da0ce96dea84",checked:!this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(m.REMOVE),value:m.REMOVE},s("span",{key:"6dd86784de32c25ffbe8c5e61847cb506a122b5e",class:"font-weight-500"},this._translations.remove)))),s("div",{key:"d39ce91248e4eb7867049bfe9d5537a74f96a0d2"},s("map-draw-tools",{key:"24a30d188807bf40749def362c21048ee92bb81b",active:!0,drawMode:u.REFINE,locale:this.locale,mapView:this.mapView,onDrawRedo:()=>this._redo(),onDrawUndo:()=>this._undo(),onSketchGraphicsChange:e=>this._sketchGraphicsChanged(e),pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,redoEnabled:this._refineSelectionSet?.redoStack.length>0,ref:e=>{this._drawTools=e},undoEnabled:this._refineSelectionSet?.undoStack.length>0})),s("br",{key:"7d28ea63ea92de45bd457f0aef93d99deea62553"}),s("calcite-list",{key:"9b3c34304632ccf9253eec71e955502a0be48a13",class:"list-border",label:""},this._getRefineSelectionSetList())))}_layerSelectionChange(e){this._setRefineSet(e.detail[0])}_setSelectionMode(e){this._selectionMode=e}_sketchGraphicsChanged(e){const t=e.detail?.graphics[0].geometry;this._selectFeatures(t)}_getEnabledLayerIds(){return this.selectionSets.reduce(((e,t)=>{const i=t?.layerView?.layer.id;return i&&e.indexOf(i)<0?e.push(i):t.workflowType===y.REFINE&&Object.keys(t.refineInfos).forEach((t=>{e.indexOf(t)<0&&e.push(t)})),e}),[])}async _setRefineSet(e){this.selectionSets.some((t=>{if(t.workflowType===y.REFINE)return this._refineSelectionSet=t,Object.keys(t.refineInfos).indexOf(e)>-1}))||await this._initRefineSet(e,this._refineSelectionSet),this._refineLayer=this._refineSelectionSet.refineInfos[e].layerView}async _initRefineSet(e,t){const i={};i[e]={addIds:[],removeIds:[],layerView:await p(this.mapView,e)},t?t.refineInfos={...t.refineInfos,...i}:(this._refineSelectionSet={id:Date.now(),searchResult:void 0,buffer:void 0,distance:0,download:!0,unit:"feet",label:"Refine",selectedIds:[],layerView:void 0,geometries:[],graphics:[],selectLayers:[],workflowType:y.REFINE,searchDistanceEnabled:!1,useLayerFeaturesEnabled:!1,refineInfos:i,redoStack:[],undoStack:[],sketchGraphic:void 0},this.selectionSets.push(this._refineSelectionSet))}_undo(){const e=this._refineSelectionSet.undoStack.pop();this._updateIds(e.ids,e.mode===m.ADD?m.REMOVE:m.ADD,this._refineSelectionSet.redoStack,e.layerView)}_redo(){const e=this._refineSelectionSet.redoStack.pop();this._updateIds(e.ids,e.mode===m.ADD?m.REMOVE:m.ADD,this._refineSelectionSet.undoStack,e.layerView)}_getRefineSelectionSetList(){const e=this._getTotal(this.selectionSets);let t;this.selectionSets.some((e=>{if(e.workflowType===y.REFINE)return t=e,!0}));let i=0,a=0;return Object.keys(t.refineInfos).forEach((e=>{i+=t.refineInfos[e].addIds.length,a+=t.refineInfos[e].removeIds.length})),[s("calcite-list-item",{label:this._translations.featuresAdded.replace("{{n}}",i.toString()),"non-interactive":!0}),s("calcite-list-item",{label:this._translations.featuresRemoved.replace("{{n}}",a.toString()),"non-interactive":!0}),s("calcite-list-item",{label:this._translations.totalSelected.replace("{{n}}",e.toString()),"non-interactive":!0})]}_getTotal(e){const t=f(e);return Object.keys(t).reduce(((e,i)=>e+t[i].ids.length),0)}async _getTranslations(){const e=await n(this.el);this._translations=e[0]}async _selectFeatures(e){this.selectionLoadingChange.emit(!0),this._featuresCollection[this._refineLayer?.layer.id]=[];const t=await b(0,this._refineLayer?.layer,e,this._featuresCollection);this.selectionLoadingChange.emit(!1);let i=[];Object.keys(t).forEach((e=>{e===this._refineLayer?.layer.id&&(i=i.concat(t[e]))}));const s=Array.isArray(i)?i.map((e=>e.attributes[e?.layer?.objectIdField])):[];await this._updateIds(s,this._selectionMode,this._refineSelectionSet.undoStack,this._refineLayer),this._drawTools.clear()}async _highlightFeatures(){this._clearHighlight(),w.highlightHandles=await g(this.selectionSets)}_clearHighlight(){w.removeHandles()}async _updateIds(e,t,i,s){let a=!1;const l=this._refineSelectionSet.refineInfos,h=s.layer.id,n={};n[h]={addIds:[],removeIds:[],layerView:s};const r=Object.keys(l).indexOf(h)>-1?l[h]:n[h];if(t===m.ADD)r.addIds=[...new Set([...e,...r.addIds])],r.addIds.length>0&&i.push({ids:e,mode:t,layerView:s}),r.removeIds.length>0&&(r.removeIds=r.removeIds.filter((t=>e.indexOf(t)<0)));else{const l=this.selectionSets.reduce(((t,i)=>(e.forEach((e=>{i.workflowType!==y.REFINE?i.selectedIds.indexOf(e)>-1&&t.push(e):Object.keys(i.refineInfos).some((a=>{const l=i.refineInfos[a];if(l.layerView.layer.id===s.layer.id&&l.addIds.indexOf(e)>-1)return t.push(e),!0}))})),t)),[]);r.removeIds=[...new Set([...l,...r.removeIds])],r.addIds=r.addIds.filter((e=>l.indexOf(e)<0)),r.removeIds.length>0&&i.push({ids:l,mode:t,layerView:s}),this.selectionSets=this.selectionSets.reduce(((e,t)=>(t.workflowType!==y.REFINE&&t.layerView.layer.id===s.layer.id?(t.selectedIds=t.selectedIds.filter((e=>r.removeIds.indexOf(e)<0)),t.selectedIds.length>0?e.push(t):a=!0):e.push(t),e)),[])}this._refineSelectionSet.refineInfos[h]=r,this.selectionSets=[...this.selectionSets],a&&this.selectionSetsChanged.emit(this.selectionSets),await this._highlightFeatures()}static get watchers(){return{locale:["localeWatchHandler"]}}};P.style=':host{display:block}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir="rtl"] .main-label{display:flex;float:right}.border{outline:1px solid var(--calcite-color-border-input)}.margin-top-1{margin-top:1rem}.esri-sketch{display:flex;flex-flow:column wrap}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:"Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;line-height:1.3em;background-color:var(--calcite-color-foreground-1)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row nowrap;padding:0}*/ .esri-sketch__tool-section{border-right:1px solid rgba(110, 110, 110, .3)}.esri-sketch__section{align-items:center;display:flex;flex-flow:row nowrap;padding:0 7px;margin:6px 0;border-right:1px solid rgba(110, 110, 110, .3)}.display-flex{display:flex}.font-bold{font-weight:bold}.width-full{width:100%}.label-margin-0{--calcite-label-margin-bottom:0}.padding-start-1-2{padding-inline-start:0.5rem}.font-weight-500{font-weight:500}.word-wrap-anywhere{word-wrap:anywhere}';export{S as map_select_tools,k as pdf_download,P as refine_selection}