@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
@@ -1,6 +0,0 @@
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 o,H as e,g as s}from"./p-e996c38f.js";import{l as n}from"./p-d001e961.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";const i="components",r=`[slot="${i}"]`,a=class{constructor(o){t(this,o),this.components=[],this.view=void 0}async componentWillLoad(){const[t]=await n(["esri/widgets/Expand"]);this.Expand=t,this._handleComponents()}componentWillUpdate(){this._handleComponents()}render(){return o(e,{key:"45edbd93de055768fb4b58e9d12a7570d24bdd22"},o("slot",{key:"47d507e456dfc86a068948280b21386bc08e735c",name:i}))}_handleComponents(){const t=this._getComponentsNode();t&&(this._resetUI(t),this._attachComponents(t))}_attachComponents(t){this.components.forEach(this._attachmentComponent(t))}_attachmentComponent(t){return(o,e)=>{let s=o.content;o.isExpand&&(s=this._getExpand(o),o.expandIcon&&(s.expandIcon=o.expandIcon),o.collapseTooltip&&(s.collapseTooltip=o.collapseTooltip),o.expandTooltip&&(s.expandTooltip=o.expandTooltip)),s.container||(s.container=document.createElement("div")),null==t||t.appendChild(s.container),e!==this.components.length-1&&(s.container.style="border-bottom: 1px solid var(--calcite-color-border-3)")}}_getExpand(t){var o;const{view:e}=this,{content:s}=t,n=null!==(o=null==t?void 0:t.expanded)&&void 0!==o&&o;return new this.Expand({content:s,view:e,expanded:n,mode:"floating",group:"instant-apps-control-panel"})}_getComponentsNode(){return this.el.querySelector(r)}_resetUI(t){if(t.children.length>0){const{firstChild:o}=t;for(;o;)t.removeChild(o)}}get el(){return s(this)}};a.style=":host{display:block}";export{a as instant_apps_control_panel}
@@ -1,6 +0,0 @@
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-d001e961.js";import{g as n}from"./p-80262cb7.js";import{c as o}from"./p-8717729a.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}
@@ -1,6 +0,0 @@
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{h as e,r as i,f as t,g as n}from"./p-e996c38f.js";import{h as a,s,g as l,v as r,a as c,i as o,b as d,c as v,d as p,e as u,f as g,j as h,u as f,k as m,l as y}from"./p-97f33e9f.js";import{c as _}from"./p-d4056c1c.js";import{l as b}from"./p-d001e961.js";import"./p-80262cb7.js";import"./p-8717729a.js";import"./p-0a24ad5f.js";const w=96;function k(e){return e?e/72*w:0}var x={exports:{}};!function(e){var i,t="http://www.w3.org/",n="".concat(t,"2000/svg"),a="".concat(t,"1999/xlink"),s=[],l=function(e,i){var t={};return Object.keys(e).forEach((function(i){t[i]=e[i]})),i&&Object.keys(i).forEach((function(e){t[e]=i[e]})),t},r=function(e,i){return e.vnodeSelector===i.vnodeSelector&&(e.properties&&i.properties?e.properties.key===i.properties.key&&e.properties.bind===i.properties.bind:!e.properties&&!i.properties)},c=function(e){if("string"!=typeof e)throw new Error("Style values must be strings")},o=function(e,i,t){if(""!==i.vnodeSelector)for(var n=t;n<e.length;n++)if(r(e[n],i))return n;return-1},d=function(e,i,t,n){var a=e[i];if(""!==a.vnodeSelector){var s=a.properties;if(!(s?void 0===s.key?s.bind:s.key:void 0))for(var l=0;l<e.length;l++)if(l!==i&&r(e[l],a))throw{error:new Error("".concat(t.vnodeSelector," had a ").concat(a.vnodeSelector," child ").concat("added"===n?n:"removed",", but there is now more than one. You must add unique key properties to make them distinguishable.")),parentNode:t,childNode:a}}},v=function(e){if(e.properties){var i=e.properties.enterAnimation;i&&i(e.domNode,e.properties)}},p=[],u=!1,g=function(e){(e.children||[]).forEach(g),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},h=function(){u=!1,p.forEach(g),p.length=0},f=function(e){p.push(e),u||(u=!0,"undefined"!=typeof window&&"requestIdleCallback"in window?window.requestIdleCallback(h,{timeout:16}):setTimeout(h,16))},m=function(e){var i=e.domNode;if(e.properties){var t=e.properties.exitAnimation;if(t){i.style.pointerEvents="none";return void t(i,(function(){i.parentNode&&(i.parentNode.removeChild(i),f(e))}),e.properties)}}i.parentNode&&(i.parentNode.removeChild(i),f(e))},y=function(e,i,t){(function(e,i,t){if(i)for(var n=0,a=i;n<a.length;n++)_(a[n],e,void 0,t)})(e,i.children,t),i.text&&(e.textContent=i.text),function(e,i,t){if(i)for(var s=t.eventHandlerInterceptor,l=Object.keys(i),r=l.length,o=function(r){var o,d=l[r],v=i[d];if("className"===d)throw new Error('Property "className" is not supported, use "class".');if("class"===d)b(e,v,!0);else if("classes"===d)for(var p=Object.keys(v),u=p.length,g=0;g<u;g++){var h=p[g];v[h]&&e.classList.add(h)}else if("styles"===d){var f=Object.keys(v),m=f.length;for(g=0;g<m;g++){var y=f[g],_=v[y];_&&(c(_),t.styleApplyer(e,y,_))}}else if("key"!==d&&null!=v){var w=typeof v;"function"===w?(0===d.lastIndexOf("on",0)&&(s&&(v=s(d,v,e,i)),"oninput"===d&&(o=v,v=function(e){o.apply(this,[e]),e.target["oninput-value"]=e.target.value})),e[d]=v):t.namespace===n?"href"===d?e.setAttributeNS(a,d,v):e.setAttribute(d,v):"string"===w&&"value"!==d&&"innerHTML"!==d?e.setAttribute(d,v):e[d]=v}},d=0;d<r;d++)o(d)}(e,i.properties,t),i.properties&&i.properties.afterCreate&&i.properties.afterCreate.apply(i.properties.bind||i.properties,[e,t,i.vnodeSelector,i.properties,i.children])},_=function(e,i,t,a){var s,r,c=0,o=e.vnodeSelector,d=i.ownerDocument;if(""===o)e.domNode?e.domNode.nodeValue=e.text:(r=e.domNode=d.createTextNode(e.text),void 0!==t?i.insertBefore(r,t):i.appendChild(r));else{for(var v=0;v<=o.length;++v){var p=o.charAt(v);if(v===o.length||"."===p||"#"===p){var u=o.charAt(c-1),g=o.slice(c,v);"."===u?r.classList.add(g):"#"===u?r.id=g:("svg"===g&&(a=l(a,{namespace:n})),void 0!==a.namespace?r=e.domNode=d.createElementNS(a.namespace,g):(r=e.domNode=e.domNode||((null===(s=e.properties)||void 0===s?void 0:s.is)?d.createElement(g,{is:e.properties.is}):d.createElement(g)),"input"===g&&e.properties&&void 0!==e.properties.type&&r.setAttribute("type",e.properties.type)),void 0!==t?i.insertBefore(r,t):r.parentNode!==i&&i.appendChild(r)),c=v+1}}y(r,e,a)}},b=function(e,i,t){i&&i.split(" ").forEach((function(i){i&&e.classList.toggle(i,t)}))};i=function(e,t,p){var u=e.domNode,g=!1;if(e===t)return!1;var h=!1;if(""===t.vnodeSelector){if(t.text!==e.text){var f=u.ownerDocument.createTextNode(t.text);return u.parentNode.replaceChild(f,u),t.domNode=f,!0}t.domNode=u}else 0===t.vnodeSelector.lastIndexOf("svg",0)&&(p=l(p,{namespace:n})),e.text!==t.text&&(h=!0,void 0===t.text?u.removeChild(u.firstChild):u.textContent=t.text),t.domNode=u,h=function(e,t,n,a,l){if(n===a)return!1;for(var c,p=(n=n||s).length,u=(a=a||s).length,g=0,h=0,f=!1;h<u;){var y=g<p?n[g]:void 0,b=a[h];if(void 0!==y&&r(y,b))f=i(y,b,l)||f,g++;else{var w=o(n,b,g+1);if(w>=0){for(c=g;c<w;c++)m(n[c]),d(n,c,e,"removed");f=i(n[w],b,l)||f,g=w+1}else _(b,t,g<p?n[g].domNode:void 0,l),v(b),d(a,h,e,"added")}h++}if(p>g)for(c=g;c<p;c++)m(n[c]),d(n,c,e,"removed");return f}(t,u,e.children,t.children,p)||h,h=function(e,i,t,s){if(t){for(var l=!1,r=Object.keys(t),o=r.length,d=0;d<o;d++){var v=r[d],p=t[v],u=i[v];if("class"===v)u!==p&&(b(e,u,!1),b(e,p,!0));else if("classes"===v)for(var g=e.classList,h=Object.keys(p),f=h.length,m=0;m<f;m++){var y=h[m],_=!!p[y];_!==!!u[y]&&(l=!0,_?g.add(y):g.remove(y))}else if("styles"===v){var w=Object.keys(p),k=w.length;for(m=0;m<k;m++){var x=w[m],$=p[x];$!==u[x]&&(l=!0,$?(c($),s.styleApplyer(e,x,$)):s.styleApplyer(e,x,""))}}else if(p||"string"!=typeof u||(p=""),"value"===v){var L=e[v];L!==p&&(e["oninput-value"]?L===e["oninput-value"]:p!==u)&&(e[v]=p,e["oninput-value"]=void 0),p!==u&&(l=!0)}else if(p!==u){var j=typeof p;"function"===j&&s.eventHandlerInterceptor||(s.namespace===n?"href"===v?e.setAttributeNS(a,v,p):e.setAttribute(v,p):"string"===j&&"innerHTML"!==v?"role"===v&&""===p?e.removeAttribute(v):e.setAttribute(v,p):e[v]!==p&&(e[v]=p),l=!0)}}return l}}(u,e.properties,t.properties,p)||h,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[u,p,t.vnodeSelector,t.properties,t.children]);return h&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(u,t.properties,e.properties),g};var w=function(e,t){return{getLastRender:function(){return e},update:function(n){if(e.vnodeSelector!==n.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");var a=e;e=n,i(a,n,t)},domNode:e.domNode}},k={namespace:void 0,performanceLogger:function(){},eventHandlerInterceptor:void 0,styleApplyer:function(e,i,t){"-"===i.charAt(0)?e.style.setProperty(i,t):e.style[i]=t}},x=function(e){return l(k,e)},$={create:function(e,i){return i=x(i),_(e,document.createElement("div"),void 0,i),w(e,i)},append:function(e,i,t){return t=x(t),_(i,e,void 0,t),w(i,t)},insertBefore:function(e,i,t){return t=x(t),_(i,e.parentNode,e,t),w(i,t)},merge:function(e,i,t){return t=x(t),i.domNode=e,y(e,i,t),w(i,t)},replace:function(e,i,t){return t=x(t),_(i,e.parentNode,e,t),e.parentNode.removeChild(e),w(i,t)}},L=function(e,i,t){for(var n=0,a=i.length;n<a;n++){var s=i[n];Array.isArray(s)?L(e,s,t):null!=s&&!1!==s&&("string"==typeof s&&(s={vnodeSelector:"",properties:void 0,children:void 0,text:s.toString(),domNode:null}),t.push(s))}};var j;j=Array.prototype.find?function(e,i){return e.find(i)}:function(e,i){return e.filter(i)[0]};var O=function(e,i,t){return function(){return n};function n(n){t("domEvent",n);var a=i(),s=function(e,i){for(var t=[];e&&e!==i;)t.push(e),e=e.parentNode;return t}(n.currentTarget,a.domNode);s.reverse();var l,r=function(e,i){var t=e;return i.forEach((function(e){t=t&&t.children?j(t.children,(function(i){return i.domNode===e})):void 0})),t}(a.getLastRender(),s);return e.scheduleRender(),r&&(l=r.properties["on".concat(n.type)].apply(r.properties.bind||this,arguments)),t("domEventProcessed",n),l}};e.createCache=function(){var e,i;return{invalidate:function(){i=void 0,e=void 0},result:function(t,n){if(e)for(var a=0;a<t.length;a++)e[a]!==t[a]&&(i=void 0);return i||(i=n(),e=t),i}}},e.createMapping=function(e,i,t){var n=[],a=[];return{results:a,map:function(s){for(var l=s.map(e),r=a.slice(),c=0,o=0;o<s.length;o++){var d=s[o],v=l[o];if(v===n[c])a[o]=r[c],t(d,r[c],o),c++;else{for(var p=!1,u=1;u<n.length+1;u++){var g=(c+u)%n.length;if(n[g]===v){a[o]=r[g],t(s[o],r[g],o),c=g+1,p=!0;break}}p||(a[o]=i(d,o))}}a.length=s.length,n=l}}},e.createProjector=function(e){var i,t,n=x(e),a=n.performanceLogger,s=!0,l=!1,r=[],c=[],o=function(e,t,s){var l;n.eventHandlerInterceptor=O(i,(function(){return l}),a),l=e(t,s(),n),r.push(l),c.push(s)},d=function(){if(t=void 0,s){s=!1,a("renderStart",void 0);for(var e=0;e<r.length;e++){var i=c[e]();a("rendered",void 0),r[e].update(i),a("patched",void 0)}a("renderDone",void 0),s=!0}};return i={renderNow:d,scheduleRender:function(){t||l||(t=requestAnimationFrame(d))},stop:function(){t&&(cancelAnimationFrame(t),t=void 0),l=!0},resume:function(){l=!1,s=!0,i.scheduleRender()},append:function(e,i){o($.append,e,i)},insertBefore:function(e,i){o($.insertBefore,e,i)},merge:function(e,i){o($.merge,e,i)},replace:function(e,i){o($.replace,e,i)},detach:function(e){for(var i=0;i<c.length;i++)if(c[i]===e)return c.splice(i,1),r.splice(i,1)[0];throw new Error("renderFunction was not found")}}},e.dom=$,e.h=function(e,i,t){if(Array.isArray(i))t=i,i=void 0;else if(i&&("string"==typeof i||i.vnodeSelector)||t&&("string"==typeof t||t.vnodeSelector))throw new Error("h called with invalid arguments");var n,a;return t&&1===t.length&&"string"==typeof t[0]?n=t[0]:t&&(L(e,t,a=[]),0===a.length&&(a=void 0)),{vnodeSelector:e,properties:i,children:a,text:""===n?void 0:n,domNode:null}}}(x.exports);const $=x.exports.createProjector(),L=20,j={univariateAboveAndBelowSymbol:"esri-univariate-above-and-below-ramp__symbol",colorRamp:"esri-legend__color-ramp"};function O(i="vertical"){const t="stroke:rgb(200, 200, 200);stroke-width:1";return"vertical"===i?e("svg",{height:"4",width:"10"},e("line",{x1:"0",y1:"2",x2:"10",y2:"2",style:t})):e("svg",{height:"10",width:"10"},e("line",{x1:"5",y1:"0",x2:"5",y2:"10",style:t}))}function z(e,i="vertical"){const t=document.createElement("div");return t.style.height=`${L}px`,t.className=j.univariateAboveAndBelowSymbol,null!=e&&(t.style.opacity=e.toString()),$.append(t,O.bind(null,i)),t}function R(e,i,t="vertical",n){e.infos.forEach(((e,a)=>{if(n&&2===a)e.preview=z(i,t);else{const{size:i}=e,n=k(i)+("horizontal"===t?20:10),a="div"===e.preview.tagName.toLowerCase(),s=a?e.preview:document.createElement("div");s&&(s.className=j.univariateAboveAndBelowSymbol),"horizontal"===t?s&&(s.style.width=`${n}px`):s&&(s.style.height=`${n}px`),a||s&&s.appendChild(e.preview),e.preview=s}}))}function E(e,i="classic"){const t=e.infos,n=t[0].size,a=t[t.length-1].size;return"classic"===i?(k(n)+10)/2:(k(n)-k(a))/2}async function A(e,i){if(!e)return Promise.resolve(null);const t=e.infos.map((e=>e.color)),[n]=await b(["esri/symbols/support/symbolUtils"]),a=n.renderColorRampPreviewHTML("full"===i.type?t:"above"===i.type?t.slice(0,3):t.slice(2,5),{width:i.width,height:i.height,align:i.rampAlignment,effectList:i.effectList});return a.className=j.colorRamp,null!=i.opacity&&(a.style.opacity=i.opacity.toString()),Promise.resolve(a)}function F(e,i,t,n="vertical"){const a=function(e,i,t,n="vertical"){let a=0;const s=e.infos,l=Math.floor(s.length/2),r="full"===i||"below"===i?s.length-1:l;for(let e="full"===i||"above"===i?0:l;e<=r;e++)a+=t&&e===l?"horizontal"===n?10:L:k(s[e].size)+("horizontal"===n?20:10);return Math.round(a)}(e,i,t,n),s=e.infos,l=Math.floor(s.length/2),r="full"===i||"above"===i?0:l,c="full"===i||"below"===i?s.length-1:l,o=t?"vertical"===n?L:10:0,d="vertical"===n?10*("full"===i?2:1):20*("full"===i?2:1);return Math.round(a-(k("full"===i?s[r].size+s[c].size:"above"===i?s[r].size:s[c].size)/2+o/2+d/2))}const M="esri-legend__layer-body",C="esri-legend__layer-row",I="esri-legend__layer-cell esri-legend__layer-cell--info",T="esri-legend__layer-cell esri-legend__layer-cell--symbols",N="esri-legend__symbol",S="esri-legend__ramps",P="esri-legend__size-ramp",H="esri-legend__ramp-labels",D="esri-legend__ramp-label",q="esri-univariate-above-and-below-ramp__label",B={display:"flex",alignItems:"flex-start"},U={marginLeft:"3px"},V={display:"table-cell",verticalAlign:"middle"},W=class{constructor(e){i(this,e),this.calculatingFeatureCount=!1,this.legendvm=void 0,this.zoomTo=!1,this.featureCount=!1,this.filterMode={type:"filter"},this.messages=void 0,this.isLoading=!0,this.intLegendId=void 0}handleFilterModeChange(){a(this.filterMode,this.legendvm.view)}async connectedCallback(){if(this.handles)return;const[e]=await b(["esri/core/Handles"]);this.handles=new e}async componentWillLoad(){new MutationObserver((()=>{t(this.el)})).observe(this.el,{attributes:!0});const[e,i]=await b(["esri/intl","esri/core/reactiveUtils"]);this.reactiveUtils=i,this.intl=e}async componentDidLoad(){this.initLegend()}async initLegend(){try{await this.reactiveUtils.whenOnce((()=>{var e;return null===(e=this.legendvm)||void 0===e?void 0:e.view}));const e=async()=>{var e,i,t,n;try{const a=await(null===(t=null===(i=null===(e=this.legendvm)||void 0===e?void 0:e.view)||void 0===i?void 0:i.map)||void 0===t?void 0:t.load());await(null===(n=null==a?void 0:a.basemap)||void 0===n?void 0:n.load());const l=null==a?void 0:a.allLayers,r=null==l?void 0:l.map((e=>e.load())),c=(await Promise.allSettled(r)).map((e=>"fulfilled"===(null==e?void 0:e.status)&&(null==e?void 0:e.value)?e.value:null)).filter((e=>!!e)),d=[];c.forEach((e=>{var i;(null===(i=this.legendvm)||void 0===i?void 0:i.view)&&d.push(this.legendvm.view.whenLayerView(e))})),await Promise.allSettled(d);const v=await u(this.legendvm,this.reactiveUtils);s.set("data",Object.assign(Object.assign({},o.data),v)),this.isLoading=!1,this.setupWatchersAndListeners()}catch(e){console.error(e),this.isLoading=!1}};this.legendvm.view.when(e),this.legendvm.view.map.layers.on("after-changes",e)}catch(e){this.isLoading=!1}}disconnectedCallback(){var e,i;null===(e=this.handles)||void 0===e||e.removeAll(),null===(i=this.handles)||void 0===i||i.destroy(),this.handles=null}render(){var i,t,n;const a=this.renderFilteredLayers(),r=s.get("compact")?" instant-apps-interactive-legend__compact":"";return this.isLoading?e("calcite-loader",{key:"interactive-legend-loader",scale:"m",label:null===(i=this.messages)||void 0===i?void 0:i.loading,text:null===(t=this.messages)||void 0===t?void 0:t.loading}):e("div",{key:"interactive-legend-classic-container",class:`${l(this.el)}${r}`},(null==a?void 0:a.length)>0?a:e("div",{class:"esri-legend__message"},null===(n=this.messages)||void 0===n?void 0:n.noLegend))}renderFilteredLayers(){var e,i;return(null===(i=null===(e=this.legendvm)||void 0===e?void 0:e.activeLayerInfos)||void 0===i?void 0:i.toArray()).map((e=>this.renderLegendForLayer(e))).filter((e=>!!e))}renderLegendForLayer(i,t){var n,a;if(!i.ready)return null;if(i.children.length){const a=i.children.map((e=>this.renderLegendForLayer(e,!0))).toArray();return e("instant-apps-interactive-legend-group-legend-element",{class:l(this.el),legendvm:this.legendvm,featureCount:this.featureCount,activeLayerInfo:i,isChild:t},e("div",{style:{paddingLeft:"20px"},id:`${null===(n=null==i?void 0:i.layer)||void 0===n?void 0:n.id}-legend-layer`,slot:"content"},a))}const s=i.legendElements;if(s&&!s.length)return null;const r=s.map(((e,t)=>this.renderLegendForElement(e,i.layer,i.effectList,i,t))).filter((e=>!!e));return r.length?e("instant-apps-interactive-legend-layer-element",{class:l(this.el),legendvm:this.legendvm,featureCount:this.featureCount,activeLayerInfo:i,messages:this.messages,isChild:t},e("div",{slot:"content",id:`${null===(a=null==i?void 0:i.layer)||void 0===a?void 0:a.id}-legend-layer`,class:"esri-legend__layer"},r)):null}renderLegendForElement(i,t,n,a,s,c,o){const d="color-ramp"===i.type,v="opacity-ramp"===i.type,p="size-ramp"===i.type;let u=null;const g=r(a,i,s),h="relationship-ramp"===(null==i?void 0:i.type);if("symbol-table"===i.type||p){const l=i.infos.map(((e,l)=>this.renderLegendForElementInfo(e,t,n,p,i,a,s,l,g,o||null))).filter((e=>!!e));l.length&&(u=e("div",{class:M},l))}else"color-ramp"===i.type||"opacity-ramp"===i.type||"heatmap-ramp"===i.type||"stretch-ramp"===i.type?u=this.renderLegendForRamp(i,t.opacity):"relationship-ramp"===i.type?u=e("instant-apps-interactive-legend-relationship",{class:l(this.el),key:"relationship-ramp",filterMode:this.filterMode,activeLayerInfo:a,legendElement:i,messages:this.messages}):"pie-chart-ramp"===i.type?u=this.renderPieChartRamp(i):"univariate-above-and-below-ramp"===i.type?u=this.renderUnivariateAboveAndBelowRamp(i,t.opacity,n):"univariate-color-size-ramp"===i.type&&(u=this.renderUnivariateColorSizeRamp(i,t.opacity,n));if(!u)return null;const f=i.title;let m=null;if("string"==typeof f)m=f;else if(f){const e=this.getTitle(this.messages,f,d||v);m=this.isRendererTitle(f,d||v)&&f.title?`${f.title} (${e})`:e}return e("instant-apps-interactive-legend-legend-element",{class:l(this.el),activeLayerInfo:a,isSizeRamp:p,isChild:c,isColorRamp:d,isRelationshipRamp:h,isInteractive:g,zoomTo:this.zoomTo,legendElement:i,titleText:m,legendvm:this.legendvm,legendElementIndex:s,messages:this.messages},e("div",{slot:"content"},u))}renderPieChartRamp(i){var t;return e("div",{innerHTML:`${null===(t=i.preview)||void 0===t?void 0:t.outerHTML}`})}async renderUnivariateAboveAndBelowRamp(i,t,n){const{sizeRampElement:a,colorRampElement:s}=function(e,i,t="vertical"){const n=e.infos;let a=n.find((({type:e})=>"size-ramp"===e)),s=n.find((({type:e})=>"color-ramp"===e));return a&&(a=Object.assign({},a),a.infos=[...a.infos],R(a,i,t,!0)),s&&(s=Object.assign({},s),s.infos=[...s.infos]),"horizontal"===t&&(null==a||a.infos.reverse(),null==s||s.infos.reverse()),{sizeRampElement:a,colorRampElement:s}}(i,t);if(!a)return null;const l=F(a,"above",!0),r=F(a,"below",!0),c=await A(s,{width:12,height:l,rampAlignment:"vertical",opacity:t,type:"above",effectList:n}),o=await A(s,{width:12,height:r,rampAlignment:"vertical",opacity:t,type:"below",effectList:n}),d=E(a),v=a.infos.map((e=>e.label)),p=v.map(((i,t)=>{const n=2===t;return 0===t?e("div",{class:i?c?q:D:""},i):n?e("div",null):null})),u=v.length-1,g=Math.floor(v.length/2),h=v.map(((i,t)=>t===g||t===u?e("div",{class:i?c?q:D:""},i):null)),f={display:"table-cell",verticalAlign:"middle"},m={marginTop:`${d}px`},y={height:`${l}px`},_={height:`${r}px`};return e("div",{key:"univariate-above-and-below-ramp-preview",style:B},e("div",{class:M},a.infos.map(((i,t)=>e("div",{class:`${C} ${P}`},e("div",{class:N,style:f,innerHTML:`${i.preview.outerHTML}`}),c||t%2!=0?null:e("div",{class:I},v[t]))))),c?e("div",{style:m,key:"color-ramp-preview"},e("div",{style:U},e("div",{style:V},e("div",{class:S},c)),e("div",{style:V},e("div",{class:H,style:y},p))),e("div",{style:U},e("div",{style:V},e("div",{class:S},o)),e("div",{style:V},e("div",{class:H,style:_},h)))):null)}renderUnivariateColorSizeRamp(i,t,n){const{sizeRampElement:a,colorRampElement:s}=function(e,i="vertical"){const t=e.infos;let n=t.find((({type:e})=>"size-ramp"===e)),a=t.find((({type:e})=>"color-ramp"===e));return n&&(n=Object.assign({},n),n.infos=[...n.infos],R(n,null,i,!1)),a&&(a=Object.assign({},a),a.infos=[...a.infos]),"horizontal"===i&&(null==n||n.infos.reverse(),null==a||a.infos.reverse()),{sizeRampElement:n,colorRampElement:a}}(i);if(!a)return null;const l=E(a),r=F(a,"full",!1),c=A(s,{width:12,height:r,rampAlignment:"vertical",opacity:t,type:"full",effectList:n}),o=a.infos.length-1,d=a.infos.map(((i,t)=>0===t||t===o?e("div",{class:i.label?s?q:D:""},i.label):null)),v={display:"table-cell",verticalAlign:"middle"},p={marginTop:`${l}px`},u={height:`${r}px`};return e("div",{key:"univariate-above-and-below-ramp-preview",style:B},e("div",{class:M},a.infos.map((i=>e("div",{class:`${C} ${P}`},e("div",{class:N,style:v,innerHTML:`${i.preview.outerHTML}`}))))),e("div",{style:p,key:"color-ramp-preview"},e("div",{style:U},e("div",{style:V},e("div",{class:S},c)),e("div",{style:V},e("div",{class:H,style:u},d)))))}renderLegendForRamp(i,t){var n;const a=i.infos,s="heatmap-ramp"===i.type,l="stretch-ramp"===i.type,r=i.preview,c="opacity-ramp"===i.type?"esri-legend__opacity-ramp":"";r&&(r.classList.add("esri-legend__color-ramp"),c&&r.classList.add(c)),null!=t&&r&&(r.style.opacity=t.toString());const o=a.map((i=>e("div",{class:i.label?D:""},s?this.messages[i.label]||i.label:l?this.getStretchStopLabel(i):i.label))),d={height:null===(n=null==r?void 0:r.style)||void 0===n?void 0:n.height};return e("div",{class:C},e("div",{class:T,style:Object.assign({},{width:"24px"})},e("div",{ref:e=>{var i;(null==e?void 0:e.firstChild)&&(null===(i=null==e?void 0:e.firstChild)||void 0===i||i.remove()),null==e||e.appendChild(r)},class:S})),e("div",{class:I},e("div",{class:H,style:Object.assign({},d)},o)))}getStretchStopLabel(e){return e.label?this.messages[e.label]+": "+("string"==typeof e.value?e.value:this.intl.formatNumber(e.value,{style:"decimal",notation:e.value.toString().includes("e")?"scientific":"standard"})):""}renderLegendForElementInfo(i,t,n,a,r,p,u,g,h,f){var m,_;if(i.type)return this.renderLegendForElement(i,t,n,p,u,!0,i);let b;if(i.preview?b=e("div",{class:N,innerHTML:`${i.preview.outerHTML}`}):i.src&&(b=this.renderImage(i,t,!1)),!b)return null;const w=a?` ${P}`:"";let k;const x=y(t),$=c(x,f);if(o.data){const e=d(x,t,i,$,g),n=v($?null==$?void 0:$.nestedInfos:x);k=1===(null===(m=null==x?void 0:x.categories)||void 0===m?void 0:m.size)?!(null==e?void 0:e.selected):n||(null==e?void 0:e.selected)}const L=!($&&!(null==i?void 0:i.value))&&h,j=s.get("compact"),O=this.getTitle(this.messages,i.label,!1)||"";return L?e("button",{onClick:this.applyFilter(i,t,g,f),class:`${C} instant-apps-interactive-legend__layer-row--interactive${k?" instant-apps-interactive-legend-element-info--selected":""}`,title:j?`${O}`:void 0},e("div",{class:`${T}${w}`},b),e("div",{class:`${I}`},this.getTitle(this.messages,i.label,!1)||""),this.featureCount&&!j?e("instant-apps-interactive-legend-count",{class:l(this.el),categoryId:$?r.title:null!==(_=i.label)&&void 0!==_?_:null==t?void 0:t.id,activeLayerInfo:p,legendvm:this.legendvm,messages:this.messages,selected:k,legendElement:r,infoIndex:g}):null):e("div",{class:C},e("div",{class:`${T}${w}`},b),e("div",{class:`${I}`},O))}renderImage(i,t,n){const{label:a,src:s,opacity:l}=i,r=n?" esri-legend__imagery-layer-image--stretched":"",c=n?"":` ${N}`,o={opacity:`${null!=l?l:t.opacity}`};return e("img",{alt:this.getTitle(this.messages,a,!1),src:s,width:i.width,height:i.height,class:`$${r}${c}`,style:o})}getTitle(e,i,t){var n,a;if(!i)return;if("string"==typeof i||"number"==typeof i)return i;if("value"in i||"unit"in i)return this.intl.substitute(null!==(n=null==e?void 0:e.dotValue)&&void 0!==n?n:"",i);if("colorName"in i||"bandName"in i)return e[i.colorName]+": "+(e[i.bandName]||i.bandName);if("showCount"in i)return i.showCount?e.clusterCountTitle:null;let s=null;return this.isRampTitle(i,t)?s=i.ratioPercentTotal?"showRatioPercentTotal":i.ratioPercent?"showRatioPercent":i.ratio?"showRatio":i.normField?"showNormField":i.field?"showField":null:this.isRendererTitle(i,t)&&(s=i.normField?"showNormField":i.normByPct?"showNormPct":i.field?"showField":null),s?null===(a=this.intl)||void 0===a?void 0:a.substitute("showField"===s?"{field}":e[s],{field:i.field,normField:i.normField}):""}isRampTitle(e,i){return i}isRendererTitle(e,i){return!i}setupWatchersAndListeners(){var e,i,n,a,l,r,c;const d=null===(a=null===(n=null===(i=null===(e=this.legendvm)||void 0===e?void 0:e.view)||void 0===i?void 0:i.map)||void 0===n?void 0:n.allLayers)||void 0===a?void 0:a.filter((e=>"feature"===(null==e?void 0:e.type)));d.forEach((async e=>{var i,t,n,a;try{const s=await(null===(t=null===(i=this.legendvm)||void 0===i?void 0:i.view)||void 0===t?void 0:t.whenLayerView(e)),l=`fLayerViewScale-${null==e?void 0:e.id}`;(null===(n=this.handles)||void 0===n?void 0:n.has(l))||null===(a=this.handles)||void 0===a||a.add(s.watch("visibleAtCurrentScale",(async()=>this.createDataForLayer(e))),l)}catch(e){}})),null==d||d.forEach((e=>{var i,t,n;const a=`fLayer-${null==e?void 0:e.id}`;(null===(i=this.handles)||void 0===i?void 0:i.has(a))||null===(t=this.handles)||void 0===t||t.add(null===(n=this.reactiveUtils)||void 0===n?void 0:n.watch((()=>null==e?void 0:e.visible),(async()=>this.createDataForLayer(e))),a)})),null===(l=this.handles)||void 0===l||l.add(this.reactiveUtils.when((()=>this.legendvm),(()=>{this.reactiveUtils.watch((()=>{var e,i;return null===(i=null===(e=this.legendvm)||void 0===e?void 0:e.view)||void 0===i?void 0:i.updating}),(()=>{var e,i;this.calculatingFeatureCount||(null===(i=null===(e=this.legendvm)||void 0===e?void 0:e.view)||void 0===i?void 0:i.updating)&&(this.calculatingFeatureCount=!0,this.reactiveUtils.when((()=>{var e,i;return!(null===(i=null===(e=this.legendvm)||void 0===e?void 0:e.view)||void 0===i?void 0:i.updating)}),(async()=>{const e=await p(this.legendvm,o.data);s.set("data",Object.assign(Object.assign({},o.data),e)),this.calculatingFeatureCount=!1}),{once:!0,initial:!0}))}),{initial:!0})}),{initial:!0,once:!0})),null===(r=this.handles)||void 0===r||r.add(this.reactiveUtils.on((()=>{var e;return null===(e=this.legendvm)||void 0===e?void 0:e.activeLayerInfos}),"change",(async e=>{var i;const n=await u(this.legendvm,this.reactiveUtils);s.set("data",Object.assign(Object.assign({},o.data),n)),t(this.el),null===(i=this.handles)||void 0===i||i.add(this.reactiveUtils.on((()=>e.children),"change",(async()=>{const e=await u(this.legendvm,this.reactiveUtils);s.set("data",Object.assign(Object.assign({},o.data),e)),t(this.el)})))}))),null===(c=this.handles)||void 0===c||c.add(this.reactiveUtils.on((()=>{var e,i,t;return null===(t=null===(i=null===(e=this.legendvm)||void 0===e?void 0:e.view)||void 0===i?void 0:i.map)||void 0===t?void 0:t.layers}),"after-changes",(async()=>{const e=await p(this.legendvm,o.data);s.set("data",Object.assign(Object.assign({},o.data),e)),this.calculatingFeatureCount=!1})))}async createDataForLayer(e){var i;const t=s.get("data"),n=null==t?void 0:t[null==e?void 0:e.id],a=g(null===(i=this.legendvm)||void 0===i?void 0:i.activeLayerInfos),l=null==a?void 0:a.find((i=>{var t;return(null===(t=null==i?void 0:i.layer)||void 0===t?void 0:t.id)===(null==e?void 0:e.id)}));if(!n&&l){const i=await h(this.legendvm,l,this.reactiveUtils);if(f({intLegendLayerData:i,layerId:null==e?void 0:e.id}),this.featureCount){const e=await p(this.legendvm,o.data);s.set("data",Object.assign(Object.assign({},o.data),e))}}}applyFilter(e,i,t,n){return async()=>{var a;const s=Object.assign({},null===(a=o.data)||void 0===a?void 0:a[null==i?void 0:i.id]);n?await m(s,e,t,this.filterMode,n):await m(s,e,t,this.filterMode),f({intLegendLayerData:s,layerId:null==i?void 0:i.id})}}get el(){return n(this)}static get watchers(){return{filterMode:["handleFilterModeChange"]}}};W.style=".sc-instant-apps-interactive-legend-classic-h{display:block;--instant-apps-interactive-legend-heading-font-size:1rem;--instant-apps-interactive-legend-heading-font-weight:normal;--instant-apps-interactive-legend-caption-font-weight:normal;--instant-apps-interactive-legend-secondary-color:var(--calcite-color-text-1);--instant-apps-interactive-legend-field-name-font-size:1rem;--instant-apps-interactive-legend-total-feature-count-font-size:0.875rem;--instant-apps-interactive-legend-info-font-size:0.875rem;--instant-apps-interactive-legend-info-item-background--selected:#c7ebff;--instant-apps-interactive-legend-info-item-background--selected--dark:#009af2;--instant-apps-interactive-legend-info-item-background--hover:#e9e9e9;--instant-apps-interactive-legend-info-item-background--hover--dark:#4a4a4a;--instant-apps-interactive-legend-info-item-color--selected:var(--calcite-color-text-2);--instant-apps-interactive-legend-secondary-background-color:var(--calcite-color-background);--instant-apps-interactive-legend-ui-margin:20px 15px;--instant-apps-interactive-legend-ui-padding:20px 15px}.sc-instant-apps-interactive-legend-classic-h .esri-legend__service.sc-instant-apps-interactive-legend-classic{padding:0}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-body.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__group-layer-child.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-child-table.sc-instant-apps-interactive-legend-classic{margin:0;overflow:hidden}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic calcite-action.sc-instant-apps-interactive-legend-classic{margin-right:5px}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-classic{white-space:nowrap}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-classic calcite-button.sc-instant-apps-interactive-legend-classic{margin:2px}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell.esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{font-size:var(--instant-apps-interactive-legend-info-font-size);text-align:left}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic{display:flex;align-items:center}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.sc-instant-apps-interactive-legend-classic .esri-legend__layer-body.sc-instant-apps-interactive-legend-classic{display:block;margin:var(--instant-apps-interactive-legend-ui-margin)}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.instant-apps-interactive-legend__nested-unique-symbol.sc-instant-apps-interactive-legend-classic>.esri-legend__layer-body.sc-instant-apps-interactive-legend-classic{margin:0}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.sc-instant-apps-interactive-legend-classic .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic{display:table-row}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.sc-instant-apps-interactive-legend-classic .esri-legend__layer-cell.sc-instant-apps-interactive-legend-classic{display:table-cell}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell--symbols.sc-instant-apps-interactive-legend-classic{justify-content:center;width:20%}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{width:65%}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic{margin:1px;background:transparent;border:none;width:100%}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic{padding:var(--instant-apps-interactive-legend-ui-padding)}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic{position:relative}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend-element-info--selected.sc-instant-apps-interactive-legend-classic{background-color:var(--instant-apps-interactive-legend-info-item-background--selected)}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend-element-info--selected.sc-instant-apps-interactive-legend-classic{cursor:pointer;background-color:var(--instant-apps-interactive-legend-info-item-background--selected--dark)}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend-element-info--selected.sc-instant-apps-interactive-legend-classic .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{color:var(--calcite-color-text-inverse)}.sc-instant-apps-interactive-legend-classic-h .hide.sc-instant-apps-interactive-legend-classic{display:none}.instant-apps-interactive-legend__compact.sc-instant-apps-interactive-legend-classic .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic{--instant-apps-interactive-legend-ui-padding:10px 5px}.instant-apps-interactive-legend__compact.sc-instant-apps-interactive-legend-classic .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;line-clamp:2;line-height:1.3125rem;max-height:2.625rem}@media (min-width: 992px){.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic{cursor:pointer}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover)}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover.instant-apps-interactive-legend-element-info--selected{background-color:#e2f2fe}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover--dark)}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover.instant-apps-interactive-legend-element-info--selected{background-color:#26a9f4}}";export{W as instant_apps_interactive_legend_classic}
@@ -1,6 +0,0 @@
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 a,g as e,h as i,H as t}from"./p-e996c38f.js";import{c as l}from"./p-747d4b59.js";const s=class{constructor(e){a(this,e),this.showAddDeduct=!1}get el(){return e(this)}_deductValuesElement;render(){const a=this.showAddDeduct?"position-relative":"display-none";return i(t,{key:"9ebd821665a19fc6708e09b2e44260214990dcdd"},i("div",{key:"02f0a5c314fe16375507a74703aea0f9e2328eae",class:this.showAddDeduct?"display-none":"display-grid"},i("div",{key:"051c8b68051cb9f2942d7314c9362551f9da5fc5",class:"label-display"},i("calcite-label",{key:"d4cc480632b676835357bb6b6bc49faa64d88a67",class:"label-display"},"Enter comma delimited deduct values",this._getDeductValuesInput())),i("div",{key:"d31ae7e152dc81a64f23fa3afe417cc2819dda18"},this._getCalculateButton())),i("div",{key:"e1b9defe18ae895870bae941833d58680cad6f32",class:a},i("div",{key:"832a4e9cf3f6b216bb5c8141fac98262c1b7fac2",class:"position-right"},i("calcite-action",{key:"892c1c30895c1e6d076a1a38d7f1c3f5db3ab5ca",appearance:"transparent",class:"float-end",icon:"x",onClick:()=>this._toggleShowAddDeduct(),scale:"s",text:""})),i("deduct-calculator",{key:"f2690de17acd803348f25743a3b9f1db482afd0a",class:"display-grid padding-top-1",onDeductValueComplete:a=>this._addDeductValue(a)})))}_getDeductValuesInput(){return i("div",{class:"display-flex"},i("calcite-input",{class:"main-input",ref:a=>{this._deductValuesElement=a}}),i("calcite-action",{appearance:"transparent",icon:"plus-circle",onClick:()=>this._toggleShowAddDeduct(),scale:"s",text:""}))}_getCalculateButton(){return i("calcite-button",{onClick:()=>this._calculatePCI(this._deductValuesElement.value)},"Calculate PCI")}_toggleShowAddDeduct(){this.showAddDeduct=!this.showAddDeduct}_addDeductValue(a){this._toggleShowAddDeduct(),this._deductValuesElement.value+=Math.abs(parseFloat(this._deductValuesElement.value))>0?`,${a.detail}`:a.detail}_calculatePCI(a){const e=l(a,!0),i=e<=10?"Failed":e<=25?"Serious":e<=40?"Very Poor":e<=55?"Poor":e<=70?"Fair":e<=85?"Satisfactory":"Good";console.log(`PCI: ${e}`),console.log(`Rating: ${i}`),alert("See debug console for results")}};s.style=":host{display:block;--calcite-label-margin-bottom:0}.label-display{display:block;padding-bottom:1rem}.display-flex{display:flex}.display-grid{display:grid}.display-table{display:table}.display-inline-table{display:inline-table}.display-none{display:none}.display-inherit{display:inherit}.padding-top-1{padding-top:1rem}.main-input{width:300px;padding-inline-end:1rem}.float-end{float:inline-end}.position-relative{position:relative}.position-right{position:absolute;right:0px}";export{s as pci_calculator}
@@ -1,21 +0,0 @@
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{g as t,r as e,h as i,H as n}from"./p-e996c38f.js";import{g as s,a as r,b as o}from"./p-f6e81cf8.js";import{s as a}from"./p-da1e098c.js";import"./p-4f236b5d.js";import{g as h}from"./p-404cbf48.js";import{r as c,N as u,c as l,e as f,A as d}from"./p-0668e30d.js";import"./p-80cb7c73.js";import"./p-570b13d9.js";import"./p-8717729a.js";import"./p-d4056c1c.js";import"./p-0a24ad5f.js";
7
- /*! *****************************************************************************
8
- Copyright (c) Microsoft Corporation.
9
-
10
- Permission to use, copy, modify, and/or distribute this software for any
11
- purpose with or without fee is hereby granted.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
- PERFORMANCE OF THIS SOFTWARE.
20
- ***************************************************************************** */
21
- var p=function(){return p=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var s in e=arguments[i])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},p.apply(this,arguments)};function w(t,e){var i=e;return i.rawResponse=!1,c(t,i).then((function(t){var e={token:t.access_token,username:t.username,expires:new Date(Date.now()+(1e3*t.expires_in-1e3)),ssl:!0===t.ssl};return t.refresh_token&&(e.refreshToken=t.refresh_token),e}))}function m(t,e){var i=e;return i.params.referer="undefined"!=typeof window&&window.location&&window.location.host?window.location.host:u,c(t,i)}var g=/^https?:\/\/(\S+)\.arcgis\.com.+/;function v(t){return g.test(t)}function b(t){if(!g.test(t))return null;var e=t.match(g)[1].split(".").pop();return e.includes("dev")?"dev":e.includes("qa")?"qa":"production"}var k=function(){function t(t){if(this.clientId=t.clientId,this._refreshToken=t.refreshToken,this._refreshTokenExpires=t.refreshTokenExpires,this.username=t.username,this.password=t.password,this._token=t.token,this._tokenExpires=t.tokenExpires,this.portal=t.portal?l(t.portal):"https://www.arcgis.com/sharing/rest",this.ssl=t.ssl,this.provider=t.provider||"arcgis",this.tokenDuration=t.tokenDuration||20160,this.redirectUri=t.redirectUri,this.refreshTokenTTL=t.refreshTokenTTL||20160,this.server=t.server,this.federatedServers={},this.trustedDomains=[],t.server){var e=this.getServerRootUrl(t.server);this.federatedServers[e]={token:t.token,expires:t.tokenExpires}}this._pendingTokenRequests={}}return Object.defineProperty(t.prototype,"token",{get:function(){return this._token},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tokenExpires",{get:function(){return this._tokenExpires},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refreshToken",{get:function(){return this._refreshToken},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refreshTokenExpires",{get:function(){return this._refreshTokenExpires},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trustedServers",{get:function(){return console.log("DEPRECATED: use federatedServers instead"),this.federatedServers},enumerable:!1,configurable:!0}),t.beginOAuth2=function(e,i){void 0===i&&(i=window),e.duration&&console.log("DEPRECATED: 'duration' is deprecated - use 'expiration' instead");var n,s=p({portal:"https://www.arcgis.com/sharing/rest",provider:"arcgis",expiration:20160,popup:!0,popupWindowFeatures:"height=400,width=600,menubar=no,location=yes,resizable=yes,scrollbars=yes,status=yes",state:e.clientId,locale:""},e),r=s.portal,o=s.provider,a=s.clientId,h=s.expiration,c=s.redirectUri,u=s.popup,l=s.popupWindowFeatures,w=s.state,m=s.locale,g=s.params;if(n="arcgis"===o?r+"/oauth2/authorize?client_id="+a+"&response_type=token&expiration="+(e.duration||h)+"&redirect_uri="+encodeURIComponent(c)+"&state="+w+"&locale="+m:r+"/oauth2/social/authorize?client_id="+a+"&socialLoginProviderName="+o+"&autoAccountCreateForSocial=true&response_type=token&expiration="+(e.duration||h)+"&redirect_uri="+encodeURIComponent(c)+"&state="+w+"&locale="+m,g&&(n=n+"&"+f(g)),u){var v,b=((v={promise:null,resolve:null,reject:null}).promise=new Promise((function(t,e){v.resolve=t,v.reject=e})),v);return i["__ESRI_REST_AUTH_HANDLER_"+a]=function(e,i){if(e){var n=JSON.parse(e);b.reject(new d(n.errorMessage,n.error))}else if(i){var s=JSON.parse(i);b.resolve(new t({clientId:a,portal:r,ssl:s.ssl,token:s.token,tokenExpires:new Date(s.expires),username:s.username}))}},i.open(n,"oauth-window",l),b.promise}i.location.href=n},t.completeOAuth2=function(e,i){void 0===i&&(i=window);var n=p({portal:"https://www.arcgis.com/sharing/rest",popup:!0},e),s=n.portal,r=n.clientId,o=n.popup;function a(e,n){try{var a=void 0,h="__ESRI_REST_AUTH_HANDLER_"+r;if(o&&(i.opener?i.opener.parent&&i.opener.parent[h]?a=i.opener.parent[h]:i.opener&&i.opener[h]&&(a=i.opener[h]):i!==i.parent&&i.parent&&i.parent[h]&&(a=i.parent[h]),a))return a(e?JSON.stringify(e):void 0,JSON.stringify(n)),void i.close()}catch(t){throw new d('Unable to complete authentication. It\'s possible you specified popup based oAuth2 but no handler from "beginOAuth2()" present. This generally happens because the "popup" option differs between "beginOAuth2()" and "completeOAuth2()".')}if(e)throw new d(e.errorMessage,e.error);return new t({clientId:r,portal:s,ssl:n.ssl,token:n.token,tokenExpires:n.expires,username:n.username})}var h=i.location.hash.replace(/^#/,"").split("&").reduce((function(t,e){var i=function(t){var e=t.split("="),i=e[1];return{key:decodeURIComponent(e[0]),value:decodeURIComponent(i)}}(e);return t[i.key]=i.value,t}),{});if(!h.access_token){var c=void 0,u="Unknown error";return h.error&&(c=h.error,u=h.error_description),a({error:c,errorMessage:u})}return a(void 0,{token:h.access_token,expires:new Date(Date.now()+1e3*parseInt(h.expires_in,10)-6e4),ssl:"true"===h.ssl,username:h.username})},t.fromParent=function(e,i){var n;return!i&&window&&(i=window),new Promise((function(s,r){i.addEventListener("message",n=function(e){if(e.source===i.parent&&e.data)try{return s(t.parentMessageHandler(e))}catch(t){return r(t)}},!1),i.parent.postMessage({type:"arcgis:auth:requestCredential"},e)})).then((function(t){return i.removeEventListener("message",n,!1),t}))},t.authorize=function(t,e){t.duration&&console.log("DEPRECATED: 'duration' is deprecated - use 'expiration' instead");var i=p({portal:"https://arcgis.com/sharing/rest",expiration:20160},t);e.writeHead(301,{Location:i.portal+"/oauth2/authorize?client_id="+i.clientId+"&expiration="+(t.duration||i.expiration)+"&response_type=code&redirect_uri="+encodeURIComponent(i.redirectUri)}),e.end()},t.exchangeAuthorizationCode=function(e,i){var n=p({portal:"https://www.arcgis.com/sharing/rest",refreshTokenTTL:20160},e),s=n.portal,r=n.clientId,o=n.redirectUri,a=n.refreshTokenTTL;return w(s+"/oauth2/token",{params:{grant_type:"authorization_code",client_id:r,redirect_uri:o,code:i}}).then((function(e){return new t({clientId:r,portal:s,ssl:e.ssl,redirectUri:o,refreshToken:e.refreshToken,refreshTokenTTL:a,refreshTokenExpires:new Date(Date.now()+60*(a-1)*1e3),token:e.token,tokenExpires:e.expires,username:e.username})}))},t.deserialize=function(e){var i=JSON.parse(e);return new t({clientId:i.clientId,refreshToken:i.refreshToken,refreshTokenExpires:new Date(i.refreshTokenExpires),username:i.username,password:i.password,token:i.token,tokenExpires:new Date(i.tokenExpires),portal:i.portal,ssl:i.ssl,tokenDuration:i.tokenDuration,redirectUri:i.redirectUri,refreshTokenTTL:i.refreshTokenTTL})},t.fromCredential=function(e){var i=void 0===e.ssl||e.ssl,n=e.expires||Date.now()+72e5;return new t({portal:e.server.includes("sharing/rest")?e.server:e.server+"/sharing/rest",ssl:i,token:e.token,username:e.userId,tokenExpires:new Date(n)})},t.parentMessageHandler=function(e){if("arcgis:auth:credential"===e.data.type)return t.fromCredential(e.data.credential);if("arcgis:auth:error"===e.data.type){var i=new Error(e.data.error.message);throw i.name=e.data.error.name,i}throw new Error("Unknown message type.")},t.prototype.toCredential=function(){return{expires:this.tokenExpires.getTime(),server:this.portal,ssl:this.ssl,token:this.token,userId:this.username}},t.prototype.getUser=function(t){var e=this;if(this._pendingUserRequest)return this._pendingUserRequest;if(this._user)return Promise.resolve(this._user);var i=this.portal+"/community/self",n=p(p({httpMethod:"GET",authentication:this},t),{rawResponse:!1});return this._pendingUserRequest=c(i,n).then((function(t){return e._user=t,e._pendingUserRequest=null,t})),this._pendingUserRequest},t.prototype.getPortal=function(t){var e=this;if(this._pendingPortalRequest)return this._pendingPortalRequest;if(this._portalInfo)return Promise.resolve(this._portalInfo);var i=this.portal+"/portals/self",n=p(p({httpMethod:"GET",authentication:this},t),{rawResponse:!1});return this._pendingPortalRequest=c(i,n).then((function(t){return e._portalInfo=t,e._pendingPortalRequest=null,t})),this._pendingPortalRequest},t.prototype.getUsername=function(){return this.username?Promise.resolve(this.username):this._user?Promise.resolve(this._user.username):this.getUser().then((function(t){return t.username}))},t.prototype.getToken=function(t,e){return n=t,s=v(i=this.portal),r=v(n),o=b(i),a=b(n),s&&r&&o===a||new RegExp(this.portal,"i").test(t)?this.getFreshToken(e):this.getTokenForServer(t,e);var i,n,s,r,o,a},t.prototype.validateAppAccess=function(t){return this.getToken(this.portal).then((function(e){return function(t,e,i){return void 0===i&&(i="https://www.arcgis.com/sharing/rest"),c(i+"/oauth2/validateAppAccess",{method:"POST",params:{f:"json",client_id:e,token:t}})}(e,t)}))},t.prototype.toJSON=function(){return{clientId:this.clientId,refreshToken:this.refreshToken,refreshTokenExpires:this.refreshTokenExpires,username:this.username,password:this.password,token:this.token,tokenExpires:this.tokenExpires,portal:this.portal,ssl:this.ssl,tokenDuration:this.tokenDuration,redirectUri:this.redirectUri,refreshTokenTTL:this.refreshTokenTTL}},t.prototype.serialize=function(){return JSON.stringify(this)},t.prototype.enablePostMessageAuth=function(t,e){!e&&window&&(e=window),this._hostHandler=this.createPostMessageHandler(t),e.addEventListener("message",this._hostHandler,!1)},t.prototype.disablePostMessageAuth=function(t){!t&&window&&(t=window),t.removeEventListener("message",this._hostHandler,!1)},t.prototype.refreshSession=function(t){return this._user=null,this.username&&this.password?this.refreshWithUsernameAndPassword(t):this.clientId&&this.refreshToken?this.refreshWithRefreshToken():Promise.reject(new d("Unable to refresh token."))},t.prototype.getServerRootUrl=function(t){var e=l(t).split(/\/rest(\/admin)?\/services(?:\/|#|\?|$)/)[0].match(/(https?:\/\/)(.+)/),i=e[1],n=e[2].split("/"),s=n[0],r=n.slice(1);return""+i+s.toLowerCase()+"/"+r.join("/")},t.prototype.getDomainCredentials=function(t){return this.trustedDomains&&this.trustedDomains.length&&this.trustedDomains.some((function(e){return t.startsWith(e)}))?"include":"same-origin"},t.prototype.createPostMessageHandler=function(t){var e=this;return function(i){var n=t.indexOf(i.origin)>-1,s="arcgis:auth:requestCredential"===i.data.type,r=e.tokenExpires.getTime()>Date.now();if(n&&s){var o={};if(r){var a=e.toCredential();a.server=a.server.replace("/sharing/rest",""),o={type:"arcgis:auth:credential",credential:a}}else o={type:"arcgis:auth:error",error:{name:"tokenExpiredError",message:"Session token was expired, and not returned to the child application"}};i.source.postMessage(o,i.origin)}}},t.prototype.getTokenForServer=function(t,e){var i=this,n=this.getServerRootUrl(t),s=this.federatedServers[n];return s&&s.expires&&s.expires.getTime()>Date.now()?Promise.resolve(s.token):(this._pendingTokenRequests[n]||(this._pendingTokenRequests[n]=this.fetchAuthorizedDomains().then((function(){return c(n+"/rest/info",{credentials:i.getDomainCredentials(t)}).then((function(s){if(s.owningSystemUrl){if(r=s.owningSystemUrl,o=l(function(t){if(!g.test(t))return t;switch(b(t)){case"dev":return"https://devext.arcgis.com/sharing/rest";case"qa":return"https://qaext.arcgis.com/sharing/rest";default:return"https://www.arcgis.com/sharing/rest"}}(i.portal)).replace(/https?:\/\//,""),a=l(r).replace(/https?:\/\//,""),new RegExp(a,"i").test(o))return c(s.owningSystemUrl+"/sharing/rest/info",e);throw new d(t+" is not federated with "+i.portal+".","NOT_FEDERATED")}var r,o,a;if(s.authInfo&&void 0!==i.federatedServers[n])return Promise.resolve({authInfo:s.authInfo});throw new d(t+" is not federated with any portal and is not explicitly trusted.","NOT_FEDERATED")})).then((function(t){return t.authInfo.tokenServicesUrl})).then((function(e){return i.token&&i.tokenExpires.getTime()>Date.now()?m(e,{params:{token:i.token,serverUrl:t,expiration:i.tokenDuration,client:"referer"}}):m(e,{params:{username:i.username,password:i.password,expiration:i.tokenDuration,client:"referer"}}).then((function(t){return i._token=t.token,i._tokenExpires=new Date(t.expires),t}))})).then((function(t){return i.federatedServers[n]={expires:new Date(t.expires),token:t.token},delete i._pendingTokenRequests[n],t.token}))}))),this._pendingTokenRequests[n])},t.prototype.getFreshToken=function(t){var e=this;return this.token&&!this.tokenExpires||this.token&&this.tokenExpires&&this.tokenExpires.getTime()>Date.now()?Promise.resolve(this.token):(this._pendingTokenRequests[this.portal]||(this._pendingTokenRequests[this.portal]=this.refreshSession(t).then((function(t){return e._pendingTokenRequests[e.portal]=null,t.token}))),this._pendingTokenRequests[this.portal])},t.prototype.refreshWithUsernameAndPassword=function(t){var e=this,i=p({params:{username:this.username,password:this.password,expiration:this.tokenDuration}},t);return m(this.portal+"/generateToken",i).then((function(t){return e._token=t.token,e._tokenExpires=new Date(t.expires),e}))},t.prototype.refreshWithRefreshToken=function(t){var e=this;if(this.refreshToken&&this.refreshTokenExpires&&this.refreshTokenExpires.getTime()<Date.now())return this.refreshRefreshToken(t);var i=p({params:{client_id:this.clientId,refresh_token:this.refreshToken,grant_type:"refresh_token"}},t);return w(this.portal+"/oauth2/token",i).then((function(t){return e._token=t.token,e._tokenExpires=t.expires,e}))},t.prototype.refreshRefreshToken=function(t){var e=this,i=p({params:{client_id:this.clientId,refresh_token:this.refreshToken,redirect_uri:this.redirectUri,grant_type:"exchange_refresh_token"}},t);return w(this.portal+"/oauth2/token",i).then((function(t){return e._token=t.token,e._tokenExpires=t.expires,e._refreshToken=t.refreshToken,e._refreshTokenExpires=new Date(Date.now()+60*(e.refreshTokenTTL-1)*1e3),e}))},t.prototype.fetchAuthorizedDomains=function(){var t=this;return this.server||!this.portal?Promise.resolve(this):this.getPortal().then((function(e){return e.authorizedCrossOriginDomains&&e.authorizedCrossOriginDomains.length&&(t.trustedDomains=e.authorizedCrossOriginDomains.filter((function(t){return!t.startsWith("http://")})).map((function(t){return t.startsWith("https://")?t:"https://"+t}))),t}))},t}();const y=class{get el(){return t(this)}async serializedAuthenticationWatchHandler(){this.authentication=this.serializedAuthentication?k.deserialize(this.serializedAuthentication):new k({})}async valueWatchHandler(){await this._loadSolution(this.solutionItemId)}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}constructor(t){e(this,t),this.authentication=new k({}),this.locale=void 0,this.serializedAuthentication="",this.solutionItemId="",this.showLoading=!1,this._currentEditItemId="",this._organizationVariables="",this._solutionContentsComponent=void 0,this._solutionIsLoaded=!1,this._solutionVariables="",this._templateHierarchy=[],this._translations=void 0,this._treeOpen=!0,this.serializedAuthentication&&(this.authentication=k.deserialize(this.serializedAuthentication)),this._loadSolution(this.solutionItemId),window.addEventListener("solutionStoreHasChanges",(t=>{this._updateSaveability(this._solutionStoreHasChanges=t.detail,this._solutionEditorHasChanges,this._solutionEditorHasErrors)})),window.addEventListener("solutionEditorHasChanges",(t=>{this._updateSaveability(this._solutionStoreHasChanges,this._solutionEditorHasChanges=t.detail,this._solutionEditorHasErrors)})),window.addEventListener("solutionEditorHasErrors",(t=>{this._updateSaveability(this._solutionStoreHasChanges,this._solutionEditorHasChanges,this._solutionEditorHasErrors=t.detail)}))}async componentWillLoad(){return this._getTranslations()}render(){const t=a.getStoreInfo("spatialReferenceInfo"),e=a.getStoreInfo("featureServices").length>0,o=a.getStoreInfo("solutionData");return this._solutionVariables=JSON.stringify(s(o.templates,this._translations)),this._organizationVariables=JSON.stringify(r(this._translations)),i(n,{key:"f35438d2bb88a8d3bc41d33af02e2fe36e2471de"},this._solutionIsLoaded?null:i("calcite-loader",{label:""}),i("div",{key:"cb9773d8ab59089cde1de594960e0d978ec6b1fb",class:"configuration-container"},i("div",{key:"b72462547e2930c170552816ea6bd1640326e67e",class:"configuration"},i("calcite-tabs",{key:"4d2f673c9463a6ad40a64e9dd4ea7771be1658cf",class:"config-tabs"},i("calcite-tab-nav",{key:"850511fd6a627da0117e8b93451fe5da0ef7ad8c",slot:"tab-nav"},i("calcite-tab-title",{key:"8b3db2665846b1529c4fcd4829516b854705028b"},this._translations.definitionTab),e?i("calcite-tab-title",null,this._translations.spatialReferenceTab):null),i("calcite-tab",{key:"6298bbcc14066f2ffce75076718a5b802bc7dcb1",class:"config-tab",selected:!0},i("div",{key:"6876e11323dce264ead965243d476abff1e0d3f4",class:"config-solution"},i("div",{key:"011f8114fa18676728410ef45eccdec512c81f93",class:this._treeOpen?"config-inventory":"config-inventory-hide"},i("solution-contents",{id:"configInventory",key:`${this.solutionItemId}-contents`,ref:t=>this._solutionContentsComponent=t})),i("calcite-button",{key:"e38b67164540f2a0bd8aa7ceb19b1944e6c30a49",appearance:"transparent",class:"collapse-btn","icon-start":this._treeOpen?"chevrons-left":"chevrons-right",id:"collapse-vars",onClick:()=>this._toggleTree(),scale:"s",title:this._treeOpen?this._translations.collapse:this._translations.expand}),i("div",{key:"26e352cfd8e3f701bac219afc10e8f33f22042c0",class:"config-item"},i("solution-item",{authentication:this.authentication,"item-id":this._currentEditItemId,key:`${this.solutionItemId}-item`,locale:this.locale,"organization-variables":this._organizationVariables,"solution-item-id":this.solutionItemId,"solution-variables":this._solutionVariables})))),e?i("calcite-tab",{class:"config-tab"},i("div",{class:"config-solution"},i("solution-spatial-ref",{enableDefault:!!t.default,enabled:t?.enabled,featureServices:a.getStoreInfo("featureServices").map((t=>t.name)),id:"configure-solution-spatial-ref",key:`${this.solutionItemId}-spatial-ref`,locale:this.locale}))):null))))}_solutionStoreHasChanges=!1;_solutionEditorHasChanges=!1;_solutionEditorHasErrors=!1;_canSave=!1;_solutionItemSelected(t){this._currentEditItemId=t.detail}async getSpatialReferenceInfo(){return Promise.resolve(a.getStoreInfo("spatialReferenceInfo"))}async saveSolution(){this._solutionIsLoaded=!1,await a.saveSolution(),this._solutionIsLoaded=!0,this.solutionItemId=null}async unloadSolution(){this.solutionItemId=null}_initProps(){const t=a.getStoreInfo("solutionData");let e;this._templateHierarchy=[...o(t.templates)],this._solutionContentsComponent&&(this._solutionContentsComponent.templateHierarchy=this._templateHierarchy),this._templateHierarchy.length>0&&(e=a.getItemInfo(this._templateHierarchy[0].id)),this._currentEditItemId=e?e.itemId:""}async _loadSolution(t){return t?(this._solutionIsLoaded=!1,await a.loadSolution(t,this.authentication),this._initProps(),this._solutionIsLoaded=!0):this._reset(),Promise.resolve()}_reset(){this._currentEditItemId="",this._organizationVariables="",this._solutionVariables="",this._templateHierarchy=[]}_toggleTree(){this._treeOpen=!this._treeOpen}_updateSaveability(t,e,i){const n=(t||e)&&!i;this._canSave!==n&&window.dispatchEvent(new CustomEvent("solutionCanSave",{detail:n,bubbles:!0,cancelable:!1,composed:!0})),this._canSave=n}async _getTranslations(){const t=await h(this.el);this._translations=t[0]}static get watchers(){return{serializedAuthentication:["serializedAuthenticationWatchHandler"],solutionItemId:["valueWatchHandler"],locale:["localeWatchHandler"]}}};y.style=".configuration-container{position:relative;height:100%;width:100%}.configuration{position:absolute;top:0px;right:0px;bottom:0px;left:0px;display:flex;padding:0.5rem;border:1px #808080 solid}.config-tabs{width:100%}.config-tab{width:100%}.config-solution{position:absolute;top:3.5rem;right:-1px;bottom:-1px;left:-1px;display:flex;padding:0.5rem}.config-inventory{display:inline;max-width:-moz-min-content;max-width:min-content;flex-grow:0;overflow-y:auto}.config-inventory-hide{display:none;max-width:-moz-min-content;max-width:min-content;flex-grow:0;overflow-y:auto}.config-item{position:relative;display:inline;flex-grow:1;overflow-y:auto;margin-inline-start:0.5rem}solution-contents{position:relative;height:100%}solution-item{position:relative;height:100%}solution-spatial-ref{position:relative;height:100%;width:100%;overflow-y:auto}";export{y as solution_configuration}
@@ -1,6 +0,0 @@
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 i,H as e,g as n}from"./p-e996c38f.js";import{c as l}from"./p-8717729a.js";import{l as o}from"./p-d001e961.js";import{g as r}from"./p-80262cb7.js";import{g as a}from"./p-648b5a9e.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-ac122d9e.js";const{state:d,onChange:s}=l({timeInfoConfigItems:[],filterMode:{type:"filter"},view:null,timeSlider:null,timeInfoItems:[],selectedTimeInfoItem:null,loading:!0,timeSliderConfig:{},autoPlay:!1}),u="time-slider-watch",v=new class{constructor(){this.initializeModules()}async initializeModules(){try{const[t,i,e,n,l,r,a]=await o(["esri/core/Handles","esri/core/reactiveUtils","esri/widgets/TimeSlider","esri/time/TimeExtent","esri/time/TimeInterval","esri/layers/support/FeatureFilter","esri/layers/support/FeatureEffect"]);this.reactiveUtils=i,this.handles=new t,this.TimeSlider=e,this.TimeExtent=n,this.TimeInterval=l,this.FeatureFilter=r,this.FeatureEffect=a}catch(t){}}async init(t){var i,e,n;t&&(t.innerHTML=""),"playing"===(null===(e=null===(i=null==d?void 0:d.timeSlider)||void 0===i?void 0:i.viewModel)||void 0===e?void 0:e.state)&&d.timeSlider.stop();const{view:l,timeInfoConfigItems:o}=d;if(l)try{if(await l.when(),1===o.length&&"map"===(null===(n=o[0])||void 0===n?void 0:n.type))this.initTimeSlider(t,o[0]);else{const i=await this.getTimeLayerViews(l,o);d.timeInfoItems=this.generateTimeInfoItems(i,o),this.initTimeSlider(t)}return Promise.resolve()}catch(t){}finally{this.setupFilterModeWatcher()}}destroy(){var t,i;null===(t=this.handles)||void 0===t||t.removeAll(),this.handles=null,null===(i=d.timeSlider)||void 0===i||i.destroy()}async getTimeLayerViews(t,i){const{allLayers:e}=t.map,n=i.map((({id:t})=>{return i=t,e.find((({id:t})=>i===t));var i})).map((i=>t.whenLayerView(i)));return await Promise.all(n)}generateTimeInfoItems(t,i){return[...i].map((i=>{const e=t.find((({layer:t})=>t.id===i.id));return this.generateTimeInfoItem(e,i)}))}generateTimeInfoItem(t,{increments:i,rangeStart:e,rangeEnd:n,timeIntervalValue:l}){var o;const r=null==t?void 0:t.layer,a=null===(o=null==r?void 0:r.timeInfo)||void 0===o?void 0:o.fullTimeExtent;return{layerView:t,unit:i,timeIntervalValue:null!=l?l:1,rangeStart:new Date(e),rangeEnd:new Date(n),timeExtent:a,previousTimeExtent:null}}initTimeSlider(t,i){var e,n;const{TimeSlider:l}=this,o=t=>{d.timeSlider=new l(t),d.autoPlay&&d.timeSlider.play()};if(i)o(this.getTimeSliderConfig(t,i));else{const i=null===(e=null==d?void 0:d.timeInfoItems)||void 0===e?void 0:e[0];if(!i)return;d.selectedTimeInfoItem=i,o(this.getTimeSliderConfig(t))}"2d"===(null===(n=d.view)||void 0===n?void 0:n.type)&&this.initialize2DView()}setupFilterModeWatcher(){s("filterMode",(t=>d.timeInfoItems.forEach((i=>{var e,n,l;const o=i.layerView;this.applyTimeExtent(o,(null===(n=null===(e=null==o?void 0:o.featureEffect)||void 0===e?void 0:e.filter)||void 0===n?void 0:n.timeExtent)||(null===(l=o.filter)||void 0===l?void 0:l.timeExtent),t)}))))}getTimeSliderConfig(t,i){var e,n,l,o,r,a,s,u;const{TimeExtent:v,TimeInterval:c}=this,h=Object.assign({container:t,mode:"time-window",view:"3d"===(null===(e=d.view)||void 0===e?void 0:e.type)?d.view:null},d.timeSliderConfig);if(i){const t=null===(o=null===(l=null===(n=d.view)||void 0===n?void 0:n.map)||void 0===l?void 0:l.widgets)||void 0===o?void 0:o.timeSlider,i=Object.assign(Object.assign({},h),{fullTimeExtent:null==t?void 0:t.fullTimeExtent,timeExtent:null==t?void 0:t.currentTimeExtent});return(null===(r=null==t?void 0:t.stopInterval)||void 0===r?void 0:r.unit)&&(null===(a=null==t?void 0:t.stopInterval)||void 0===a?void 0:a.value)&&(i.stops={interval:new c({unit:null===(s=null==t?void 0:t.stopInterval)||void 0===s?void 0:s.unit,value:null===(u=null==t?void 0:t.stopInterval)||void 0===u?void 0:u.value})}),i}{const[{timeExtent:t,rangeStart:i,rangeEnd:e,unit:n,timeIntervalValue:l}]=d.timeInfoItems;return Object.assign(Object.assign({},h),{fullTimeExtent:t,timeExtent:new v({start:i,end:e}),stops:{interval:new c({unit:n,value:l})}})}}initialize2DView(){d.timeInfoItems.forEach((t=>this.applyTimeExtent(t.layerView,new this.TimeExtent({start:t.rangeStart,end:t.rangeEnd})))),this.setupTimeExtentWatcher()}applyTimeExtent(t,i,e){var n;"effect"===(null===(n=d.filterMode)||void 0===n?void 0:n.type)?this.applyFeatureEffect(t,i,e):this.applyFeatureFilter(t,i)}applyFeatureEffect(t,i,e){var n;t&&(t.filter&&t.set("filter",null),(null==t?void 0:t.featureEffect)&&(null===(n=null==t?void 0:t.featureEffect)||void 0===n?void 0:n.filter)&&!e?t.featureEffect.filter.timeExtent=i:this.handleUpdatedFeatureEffect(t,i))}async handleUpdatedFeatureEffect(t,i){var e,n,l,o;const{FeatureEffect:a}=this;t.featureEffect=new a({filter:{timeExtent:i},includedEffect:await r(null===(n=null===(e=d.filterMode)||void 0===e?void 0:e.effect)||void 0===n?void 0:n.includedEffect,t,"includedEffect"),excludedEffect:await r(null===(o=null===(l=d.filterMode)||void 0===l?void 0:l.effect)||void 0===o?void 0:o.excludedEffect,t,"excludedEffect")})}applyFeatureFilter(t,i){t.featureEffect&&t.set("featureEffect",null),t.filter?t.filter.timeExtent=i:t.filter=new this.FeatureFilter({timeExtent:i})}setupTimeExtentWatcher(){var t,i,e,n;(null===(t=this.handles)||void 0===t?void 0:t.has(u))&&(null===(i=this.handles)||void 0===i||i.remove(u)),null===(e=this.handles)||void 0===e||e.add(null===(n=null==d?void 0:d.timeSlider)||void 0===n?void 0:n.watch("timeExtent",(t=>{var i;return this.applyTimeExtent(null===(i=d.selectedTimeInfoItem)||void 0===i?void 0:i.layerView,t)})),u)}updateSelectedTimeInfoItem(t){d.timeSlider&&(d.selectedTimeInfoItem&&(d.selectedTimeInfoItem.previousTimeExtent=d.timeSlider.timeExtent),d.selectedTimeInfoItem=t,this.reconfigureTimeSlider(t),this.applyTimeExtent(t.layerView,d.timeSlider.timeExtent),this.setupTimeExtentWatcher())}reconfigureTimeSlider(t){d.timeSlider&&(d.timeSlider.fullTimeExtent=t.timeExtent,d.timeSlider.timeExtent=this.getTimeExtent(t),d.timeSlider.stops={interval:this.getTimeInterval(t)})}getTimeExtent({rangeStart:t,rangeEnd:i,previousTimeExtent:e}){const{TimeExtent:n}=this;return null!=e?e:new n({start:t,end:i})}getTimeInterval(t){var i,e,n,l,o;const{TimeInterval:r}=this;return new r({unit:null!==(i=t.unit)&&void 0!==i?i:null===(o=null===(l=null===(n=null===(e=t.layerView)||void 0===e?void 0:e.layer)||void 0===n?void 0:n.timeInfo)||void 0===l?void 0:l.interval)||void 0===o?void 0:o.unit,value:1})}getLabel(t){var i,e;return(null===(e=null===(i=null==t?void 0:t.layerView)||void 0===i?void 0:i.layer)||void 0===e?void 0:e.title)||""}},c=class{constructor(i){t(this,i),this.timeSliderRef=void 0,this.timeInfoConfigItems=[],this.filterMode=void 0,this.view=void 0,this.timeSliderConfig=void 0,this.autoPlay=!1}async updateTimeInfoConfigItems(){d.timeInfoConfigItems=this.timeInfoConfigItems,await v.init(this.timeSliderRef)}async updateFilterMode(){d.filterMode=this.filterMode}async updateTimeSliderConfig(){d.timeSliderConfig=this.timeSliderConfig,await v.init(this.timeSliderRef)}async updateAutoPlay(){d.autoPlay=this.autoPlay,d.timeSlider&&(d.autoPlay?d.timeSlider.play():d.timeSlider.stop())}async componentWillLoad(){try{d.view=this.view,d.timeInfoConfigItems=this.timeInfoConfigItems,d.autoPlay=!!this.autoPlay,this.timeSliderConfig&&(d.timeSliderConfig=this.timeSliderConfig),this.filterMode&&(d.filterMode=this.filterMode),await a(this)}catch(t){}}async componentDidLoad(){try{await v.init(this.timeSliderRef)}catch(t){}finally{d.loading=!1}}disconnectedcallback(){v.destroy()}render(){return i(e,{key:"70cc1da4bf2334962b6034fe79383ae016e5738e"},this._renderBase())}_renderBase(){return i("div",{class:"instant-apps-time-filter"+("2d"!==this.view.type?" instant-apps-time-filter--3d":"")},this._renderLoader(),"2d"===this.view.type&&this._renderTopEl(),i("div",{key:"time-slider",ref:t=>this.timeSliderRef=t}))}_renderLoader(){var t,e;return d.loading&&i("div",null,i("div",{class:"instant-apps-time-filter__background"}),i("div",{class:"instant-apps-time-filter__loading-container"},i("calcite-loader",{scale:"m",label:null===(t=this.messages)||void 0===t?void 0:t.loading,text:null===(e=this.messages)||void 0===e?void 0:e.loading})))}_renderTopEl(){return this.timeInfoConfigItems.length>1?this._renderDropdown():this._renderLayerTitle()}_renderLayerTitle(){var t,e,n;const l=null===(n=null===(e=null===(t=d.selectedTimeInfoItem)||void 0===t?void 0:t.layerView)||void 0===e?void 0:e.layer)||void 0===n?void 0:n.title;return i("span",{class:"instant-apps-time-filter__layer-title"},l)}_renderDropdown(){return d.selectedTimeInfoItem&&i("calcite-dropdown",null,this._renderDropdownButton(),this._renderDropdownItems())}_renderDropdownButton(){return i("calcite-button",{slot:"trigger",appearance:"transparent",iconEnd:"chevron-down",width:"full",alignment:"space-between"},v.getLabel(d.selectedTimeInfoItem))}_renderDropdownItems(){return d.timeInfoItems.map((t=>this._renderDropdownItem(t)))}_renderDropdownItem(t){var e,n,l,o,r;const a=null===(l=null===(n=null===(e=d.selectedTimeInfoItem)||void 0===e?void 0:e.layerView)||void 0===n?void 0:n.layer)||void 0===l?void 0:l.id,s=null===(r=null===(o=null==t?void 0:t.layerView)||void 0===o?void 0:o.layer)||void 0===r?void 0:r.id;return i("calcite-dropdown-item",{onCalciteDropdownItemSelect:()=>v.updateSelectedTimeInfoItem(t),selected:a===s},v.getLabel(t))}get el(){return n(this)}static get watchers(){return{timeInfoConfigItems:["updateTimeInfoConfigItems"],filterMode:["updateFilterMode"],timeSliderConfig:["updateTimeSliderConfig"],autoPlay:["updateAutoPlay"]}}};c.style=".instant-apps-time-filter{position:relative;display:block;min-width:375px;min-height:200px}.instant-apps-time-filter__background{background-color:var(--calcite-ui-background);position:absolute;top:0;left:0;width:100%;height:100%;z-index:0}.instant-apps-time-filter calcite-dropdown{width:100%}.instant-apps-time-filter calcite-dropdown calcite-button{--calcite-color-brand:var(--calcite-ui-text-1);--calcite-ui-brand:var(--calcite-ui-text-1)}.instant-apps-time-filter__layer-title{font-weight:550;display:inline-block;padding:10px}.instant-apps-time-filter__loading-container{display:flex;justify-content:center;align-items:center;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.instant-apps-time-filter--3d{min-height:160px}";export{c as instant_apps_time_filter}
@@ -1,6 +0,0 @@
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-e996c38f.js";import{l as n}from"./p-d001e961.js";import{b as a}from"./p-648b5a9e.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`}},u=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,u={previous:a||n,next:r||n},b="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:u.previous,alignment:d,scale:m,appearance:b,text:v.previous,label:v.previous}),s("calcite-action",{onClick:this.nextItem.bind(this),icon:p,disabled:u.next,alignment:d,scale:m,appearance:b,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"]}}};u.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{u as instant_apps_scoreboard}
@@ -1,6 +0,0 @@
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 s,h as i,g as e}from"./p-e996c38f.js";import{S as o}from"./p-2bc98cb0.js";import{g as n}from"./p-648b5a9e.js";import"./p-d001e961.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-ac122d9e.js";function a(t){var s;return!!(null===(s=null===window||void 0===window?void 0:window.localStorage)||void 0===s?void 0:s.getItem(t))}const l=class{constructor(i){var e;t(this,i),this.splashClose=s(this,"splashClose",7),this._sanitizer=null==(e=o)||"function"!=typeof e?null:new e({whiteList:{h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],img:["style","src","width","height"],pre:["style"],p:["id","class","style"],div:["id","class","style","role"],span:["id","class","style","role"],figure:["class","style"]}},!0),this.localStorageKey=void 0,this.titleText="",this.content="",this.primaryButtonText="",this.open=!0,this.closeButtonDisabled=!1,this.outsideCloseDisabled=!1,this.secondaryButton=!1,this.secondaryButtonText=void 0,this.secondaryButtonIcon=void 0,this.secondaryButtonCallback=void 0,this.messages=void 0}sanitizeContent(){this.content=this._sanitizer.sanitize(this.content)}componentWillLoad(){let t;const{localStorageKey:s}=this;t=s?this.open&&!a(this.localStorageKey):this.open,this.el.open=t,this.content&&this._sanitizer&&this.sanitizeContent()}componentDidLoad(){n(this)}render(){return i("calcite-dialog",{key:"54fee94d89c740af32dc8eb83f90eaf48a53eff1",open:this.open,modal:!0,heading:this.titleText,onCalciteDialogClose:this.close.bind(this),closeDisabled:this.closeButtonDisabled,outsideCloseDisabled:this.outsideCloseDisabled},i("div",{key:"d342dfff544dca0f9b748ff5815ceddcbc32ca09",innerHTML:this.content}),i("slot",{key:"c85d47ef9d9358884d0f46d5c6d5c032f7d6e992",name:"custom-action"}),this.localStorageKey?this.renderDontShowThisAgainCheckbox():null,this.secondaryButton?this.renderSecondaryButton():null,this.renderPrimaryButton())}renderDontShowThisAgainCheckbox(){const{localStorageKey:t,messages:s}=this,e=!!a(t)||null;return i("div",{class:"instant-apps-splash__back-content",slot:"footer-start"},i("calcite-label",{layout:"inline"},i("calcite-checkbox",{onCalciteCheckboxChange:this.handleDontShowThisAgain.bind(this),checked:null!=e?e:void 0}),null==s?void 0:s.dontShowThisAgain))}renderPrimaryButton(){const{primaryButtonText:t}=this;return i("calcite-button",{onClick:this.close.bind(this),slot:"footer-end"},t||"Enter")}renderSecondaryButton(){var t;return i("calcite-button",{onClick:null===(t=this.secondaryButtonCallback)||void 0===t?void 0:t.bind(this),slot:"footer-end","icon-start":this.secondaryButtonIcon,appearance:"outline"},this.secondaryButtonText)}close(){this.open=!1,this.splashClose.emit()}handleDontShowThisAgain(t){const{localStorageKey:s}=this;if(!s)return;const i=t.target,{checked:e}=i;e?null===window||void 0===window||window.localStorage.setItem(s,"false"):function(t){var s;null===(s=null===window||void 0===window?void 0:window.localStorage)||void 0===s||s.removeItem(t)}(s)}get el(){return e(this)}static get watchers(){return{content:["sanitizeContent"]}}};l.style=":host{--instant-apps-splash-content-max-height:100%;display:block}:host .image.image_resized img{width:100%}:host .instant-apps-splash__back-content{display:flex;align-items:center}:host .instant-apps-splash__back-content calcite-label{--calcite-label-margin-bottom:0}:host .instant-apps-splash__content{max-height:var(--instant-apps-splash-content-max-height)}";export{l as instant_apps_splash}
@@ -1,6 +0,0 @@
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-e996c38f.js";import{l as n}from"./p-d001e961.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";const o="instant-apps-measurement-tool",a={base:o,hide:`${o}__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:a.base},s("div",{key:"8826eb9665c17f8eed640e0bcab3cff50a02ec23",ref:t=>{this._measureElement=t}}),s("div",{key:"0e3b7364403866976f5e6578c08b8fdc50d1e33f",class:a.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 n(["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 n=this.view.type;this._measureWidget.clear(),null===(s=this._coordinateElement)||void 0===s||s.classList.add(a.hide),"distance"===t?this._measureWidget.activeTool="2d"===n?"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(a.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}
@@ -1,6 +0,0 @@
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 e,H as i,g as a}from"./p-e996c38f.js";import{g as s}from"./p-648b5a9e.js";import"./p-d001e961.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-ac122d9e.js";class n{constructor(){this.pages=[],this.headerText="",this.pages=[]}setPages(t){this.pages=t,this.setDefaultHeaderText()}setDefaultHeaderText(){this.headerText=this.pages.length?this.pages[0].title:""}}const p=class{constructor(e){t(this,e),this._viewModel=new n,this.header=!0,this.data=void 0,this.messages=void 0,this.headerText=void 0}watchPropHandler(t){this._setContent(t)}watchStateHandler(t){this._viewModel.headerText=t}componentWillLoad(){this._setContent(null==this?void 0:this.data)}componentDidLoad(){s(this)}render(){const t=this._renderAppGuidePages(this._viewModel.pages),a=this._renderAppGuideHeader();return e(i,{key:"d51ebf2ffce61a29806d07f5ca2ab187a3437086"},e("calcite-panel",{key:"f2af393d6c5342726d05cf04fc3a8989f5eea113",scale:"s"},a,e("calcite-carousel",{key:"221eb316a6f758f5cec40eaecdf68311ec950cfa",label:"App Guide",onCalciteCarouselChange:()=>this._updateHeaderText(),ref:t=>this._carouselRef=t,"arrow-type":this._getArrowType()},t)))}_setContent(t){this._viewModel.setPages(t),this.headerText=this._viewModel.headerText}_updateHeaderText(){var t;const{_viewModel:e,_carouselRef:i,messages:a}=this;if(!e||!i)return;const s=Array.from(i.childNodes).indexOf(i.selectedItem),n=null==e?void 0:e.pages,p=null!==(t=null==n?void 0:n[s])&&void 0!==t?t:n[0];this.headerText=(null==p?void 0:p.title)||(null==a?void 0:a.headerText)}_getArrowType(){return this._viewModel.pages.length>2?"inline":"none"}_renderAppGuideHeader(){const{messages:t,header:i,headerText:a}=this;return i&&(null==t?void 0:t.headerText)?e("span",{slot:"header-content"},a||(null==t?void 0:t.headerText)," ",e("calcite-icon",{icon:"lightbulb",scale:"s"})):null}_renderAppGuidePages(t){return t.map(((t,i)=>{const{content:a,type:s,title:n}=t;return e("calcite-carousel-item",{label:n,key:`page_${i}`},e("div",{class:"instant-apps-app-guide__content-wrapper"},this._renderContentItems(a,s)))}))}_renderContentItems(t,i){return"list"===i?e("ol",{class:"instant-apps-app-guide__content-list"},t.map(((t,i)=>e("li",{key:`content-list-item-${i}`,class:"instant-apps-app-guide__content-list--item"},t)))):t.map(((t,i)=>e("p",{key:`content-paragraph-${i}`},t)))}get el(){return a(this)}static get watchers(){return{data:["watchPropHandler"],headerText:["watchStateHandler"]}}};p.style=":host{--instant-apps-app-guide-width:300px;--instant-apps-app-guide-height:400px;--instant-apps-app-guide-list-item-bubble-size:22px;width:var(--instant-apps-app-guide-width);height:var(--instant-apps-app-guide-height);display:block}:host calcite-panel{max-width:var(--instant-apps-app-guide-width);max-height:var(--instant-apps-app-guide-height);display:flex}:host calcite-carousel{flex:1;height:-moz-fit-content;height:fit-content;background-color:var(--calcite-color-foreground-1);overflow:auto}:host [slot=header-content]{display:flex;gap:var(--calcite-spacing-sm);padding-inline-start:0.25rem;font-weight:var(--calcite-font-weight-bold)}:host calcite-carousel-item{flex-grow:1;display:flex;flex-direction:column}:host .instant-apps-app-guide__content-wrapper{padding-block-start:0.5rem;padding-inline:0.5rem;flex-shrink:1;flex-grow:0}:host calcite-icon{--calcite-ui-icon-color:var(--calcite-color-brand)}:host .instant-apps-app-guide__content-list{counter-set:item-counter;margin-inline:0;padding-inline-start:var(--calcite-spacing-xxxl);padding-inline-end:var(--calcite-spacing-lg);position:relative}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item{counter-increment:item-counter;margin-block-start:var(--calcite-spacing-lg);display:flex;align-items:flex-start}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item::before{content:counter(item-counter);background-color:var(--calcite-color-text-2);color:var(--calcite-color-text-inverse);line-height:var(--calcite-font-line-height-fixed-xl);width:var(--instant-apps-app-guide-list-item-bubble-size);left:0;border-radius:var(--calcite-corner-radius-pill);display:flex;justify-content:center;font-size:var(--calcite-font-size-sm);position:absolute;max-height:var(--instant-apps-app-guide-list-item-bubble-size)}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item::marker{color:var(--calcite-color-transparent)}";export{p as instant_apps_app_guide}
@@ -1,6 +0,0 @@
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{e as a}from"./p-0a24ad5f.js";const s=async(s,t)=>(a.exports.setDefaultOptions({url:"https://js.arcgis.com/4.31/"}),(await a.exports.loadModules(s,t)).map((a=>a.__esModule&&a.default?a.default:a)));export{s as l}
@@ -1,6 +0,0 @@
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 o,H as e,g as a}from"./p-e996c38f.js";import{g as l}from"./p-648b5a9e.js";import"./p-d001e961.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-ac122d9e.js";const n=class{constructor(o){t(this,o),this.measureActive=i(this,"measureActive",7),this.messages=void 0,this.view=void 0,this.areaUnit=void 0,this.linearUnit=void 0,this.coordinateFormat=void 0,this.activeToolType=void 0,this.closable=!1}async componentWillLoad(){l(this)}componentDidLoad(){}render(){var t;return o(e,{key:"843dd716e3f9b125044afd9a2919a60b937ae8b0"},o("calcite-panel",{key:"45dd9e43decdcdc0526139938751d727bd73b3e0",heading:null===(t=null==this?void 0:this.messages)||void 0===t?void 0:t.label,closable:this.closable},o("div",{key:"953365a04fd1f977b08d4b9309fdb52d44363b67",slot:"content-top"},this.renderActionPad()),o("div",{key:"57ce5b75a8aff0d796073bbf2a2f36ea71f65b3c"},this.renderMeasureToolPanel())))}renderMeasureToolPanel(){const{view:t,coordinateFormat:i,areaUnit:e,linearUnit:a,activeToolType:l}=this;return o("calcite-panel",{class:"instant-apps-measurement__content"},o("instant-apps-measurement-tool",{ref:t=>{this.measureTool=t},view:t,measureConfiguration:{coordinateFormat:i,areaUnit:e,linearUnit:a,activeToolType:l}}))}renderActionPad(){const{messages:t,activeToolType:i}=this;return o("calcite-action-pad",{"expand-disabled":!0,layout:"horizontal",position:"end"},o("calcite-action",{class:"distance"===i?"active-tool":"",text:null==t?void 0:t.line,icon:"measure",scale:"m","data-value":"distance",onClick:this._handleToolClick.bind(this)},o("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},null==t?void 0:t.line)),o("calcite-action",{class:"area"===i?"active-tool":"",text:null==t?void 0:t.area,scale:"m",icon:"measure-area","data-value":"area",onClick:this._handleToolClick.bind(this)},o("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},null==t?void 0:t.area)),o("calcite-action",{class:"point"===i?"active-tool":"",text:null==t?void 0:t.point,scale:"m",icon:"pin-plus","data-value":"point",onClick:this._handleToolClick.bind(this)},o("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},null==t?void 0:t.point)),o("calcite-action",{text:null==t?void 0:t.clear,scale:"m",icon:"trash","data-value":"clear",onClick:this._handleToolClick.bind(this)},o("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},null==t?void 0:t.clear)))}_handleToolClick(t){var i,o,e,a;if(!(null==this?void 0:this.measureTool))return;const l=null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.dataset.value;this.measureTool.activeTool=l;const n=document.getElementsByClassName("active-tool");for(let t=0;t<(null==n?void 0:n.length);t++)null===(e=null===(o=n[t])||void 0===o?void 0:o.classList)||void 0===e||e.remove("active-tool");null===(a=null==t?void 0:t.target)||void 0===a||a.classList.add("active-tool"),this.measureActive.emit(void 0!==l&&"clear"!==l)}get el(){return a(this)}};n.style=".sc-instant-apps-measurement-h .sc-instant-apps-measurement.sc-instant-apps-measurement{background:var(--calcite-color-foreground-1)}.sc-instant-apps-measurement-h .active-tool.sc-instant-apps-measurement{--calcite-color-foreground-1:#c7eaff}";export{n as instant_apps_measurement}
@@ -1,6 +0,0 @@
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,f as t,h as n,g as i,c as a}from"./p-e996c38f.js";import{l as s}from"./p-d001e961.js";import{s as c,g as r,i as l,q as p,r as o,t as d,n as v,w as g,x as h,l as m,v as u}from"./p-97f33e9f.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-80262cb7.js";import"./p-8717729a.js";const f=class{constructor(t){e(this,t),this.showTotal=!1,this.legendvm=void 0,this.activeLayerInfo=void 0,this.categoryId=void 0,this.infoIndex=void 0,this.messages=void 0,this.selected=void 0,this.legendElement=void 0}async componentWillLoad(){new MutationObserver((()=>{t(this.el)})).observe(this.el,{attributes:!0});const[e]=await s(["esri/intl","esri/core/reactiveUtils","esri/core/Handles"]);this.intl=e}render(){var e;const t=c.get("compact")?"instant-apps-interactive-legend-count--compact":"";return n("div",{key:"int-legend-count",class:t},this.showTotal?n("span",{class:"instant-apps-interactive-legend__total-feature-count"},null===(e=this.messages)||void 0===e?void 0:e.totalFeatureCount,": ",this.getTotalFeatureCount()):n("span",{key:"element-info-count",class:` instant-apps-interactive-legend__info-count-text ${r(this.el)}${this.selected?" instant-apps-interactive-legend__info-count-text--selected":""}`},this.getCount()))}getCount(){var e,t;const{categoryId:n}=this,i=this.activeLayerInfo.layer.id,a=null===(t=null===(e=l.data[i])||void 0===e?void 0:e.categories)||void 0===t?void 0:t.size;if(!(l.data&&i&&n||a))return"";const s=l.data[i];if(!s)return;const{categories:c}=s,r=c.get(n);let p;return p=(null==r?void 0:r.nestedInfos)?h(r,this.infoIndex):r,isNaN(null==p?void 0:p.count)?"":this.intl.formatNumber(p.count)}getTotalFeatureCount(){const e=this.activeLayerInfo.layer.id;if(!l.data||!e)return"";const t=l.data[e];if(!t)return;const{categories:n}=t,i=p(n);let a;if(o(n))a=d(i);else if(v(this.activeLayerInfo)){const e=m(this.activeLayerInfo.layer);a=p(e.categories)[1].count}else a=g(i);return this.intl.formatNumber(a)}get el(){return i(this)}};f.style=".sc-instant-apps-interactive-legend-count-h{display:flex;align-items:center}.instant-apps-interactive-legend__total-feature-count.sc-instant-apps-interactive-legend-count{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.instant-apps-interactive-legend__info-count-text.sc-instant-apps-interactive-legend-count{font-size:var(--instant-apps-interactive-legend-info-font-size);color:var(--instant-apps-interactive-legend-secondary-color)}.calcite-mode-dark.instant-apps-interactive-legend__info-count-text.instant-apps-interactive-legend__info-count-text--selected.sc-instant-apps-interactive-legend-count{color:var(--calcite-color-text-inverse)}.instant-apps-interactive-legend-count--compact.sc-instant-apps-interactive-legend-count .instant-apps-interactive-legend__total-feature-count.sc-instant-apps-interactive-legend-count{font-size:0.75rem}html[dir=rtl] .sc-instant-apps-interactive-legend-count-h{margin-left:0;margin-right:auto}";const y=class{constructor(t){e(this,t),this.layerCaptionElementExpandUpdatedEvent=a(this,"layerCaptionElementExpandUpdated",7),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=!1,this.expanded=!0}render(){var e,t,i,a;const s=u(this.activeLayerInfo),{expanded:l}=this,p=l?null===(e=this.messages)||void 0===e?void 0:e.collapse:null===(t=this.messages)||void 0===t?void 0:t.expand,o=this.isChild?" instant-apps-interactive-legend__heading-text--group-item":"",d=c.get("compact")?" instant-apps-interactive-legend__header--compact":"";return n("header",{key:"6bc1b3736153ea626431070c6697498f70f89467",class:`instant-apps-interactive-legend__header ${r(this.el)}${d}`},n("calcite-action",{key:"ce171727aa6e4e755717260871d96ab7b48b9341",onClick:this.toggleExpanded(),icon:l?"chevron-down":"chevron-up",appearance:"transparent",text:p,label:p,scale:"s"}),n("span",{key:"5367ded56ab1ecafd48ac908d82bf90c9be256eb"},n("span",{key:"e7cf6987d2dd6ecd49685332f9357b14db571445",class:"instant-apps-interactive-legend__header-action-container"},n("h3",{key:"b6948f3130904beaadd30cf8234cfe8753bb69c2",class:`esri-widget__heading esri-legend__service-label${o}`,title:null===(i=this.activeLayerInfo)||void 0===i?void 0:i.title},null===(a=this.activeLayerInfo)||void 0===a?void 0:a.title)),this.featureCount&&s?n("instant-apps-interactive-legend-count",{activeLayerInfo:this.activeLayerInfo,"show-total":!0,messages:this.messages,legendvm:this.legendvm}):null))}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.layerCaptionElementExpandUpdatedEvent.emit(this.expanded)}}get el(){return i(this)}};y.style=".sc-instant-apps-interactive-legend-layer-element-caption-h{display:block;--instant-apps-interactive-legend-heading-font-size:1rem;--instant-apps-interactive-legend-heading-font-weight:500;--instant-apps-interactive-legend-secondary-color:var(--calcite-color-text-1);--instant-apps-interactive-legend-ui-padding:15px 10px}.sc-instant-apps-interactive-legend-layer-element-caption-h .instant-apps-interactive-legend__header--compact.sc-instant-apps-interactive-legend-layer-element-caption .esri-widget__heading.sc-instant-apps-interactive-legend-layer-element-caption{font-size:0.9rem}.sc-instant-apps-interactive-legend-layer-element-caption-h .esri-widget__heading.sc-instant-apps-interactive-legend-layer-element-caption{overflow:hidden;margin:0;display:inline-block;font-size:var(--calcite-font-size-1);font-weight:var(--instant-apps-interactive-legend-heading-font-weight)}.sc-instant-apps-interactive-legend-layer-element-caption-h .esri-widget__heading.sc-instant-apps-interactive-legend-layer-element-caption header.sc-instant-apps-interactive-legend-layer-element-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}.sc-instant-apps-interactive-legend-layer-element-caption-h header.sc-instant-apps-interactive-legend-layer-element-caption{display:flex;text-align:left;padding:var(--instant-apps-interactive-legend-ui-padding);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-layer-element-caption-h header.sc-instant-apps-interactive-legend-layer-element-caption h3.sc-instant-apps-interactive-legend-layer-element-caption{margin-bottom:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal;color:var(--instant-apps-interactive-legend-secondary-color);margin-bottom:5px}.sc-instant-apps-interactive-legend-layer-element-caption-h header.sc-instant-apps-interactive-legend-layer-element-caption .instant-apps-interactive-legend__heading-text--group-item.sc-instant-apps-interactive-legend-layer-element-caption{-webkit-line-clamp:2;line-clamp:2}.sc-instant-apps-interactive-legend-layer-element-caption-h header.sc-instant-apps-interactive-legend-layer-element-caption span.sc-instant-apps-interactive-legend-layer-element-caption{width:100%;font-size:var(--instant-apps-interactive-legend-total-feature-count-font-size);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-layer-element-caption-h header.sc-instant-apps-interactive-legend-layer-element-caption .instant-apps-interactive-legend__header-action-container.sc-instant-apps-interactive-legend-layer-element-caption{display:flex;align-items:center}.sc-instant-apps-interactive-legend-layer-element-caption-h .esri-widget__heading.sc-instant-apps-interactive-legend-layer-element-caption header.sc-instant-apps-interactive-legend-layer-element-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}.sc-instant-apps-interactive-legend-layer-element-caption-h .esri-widget--panel.sc-instant-apps-interactive-legend-layer-element-caption{margin:0}.calcite-mode-dark.sc-instant-apps-interactive-legend-layer-element-caption-h .instant-apps-interactive-legend__header.sc-instant-apps-interactive-legend-layer-element-caption{background-color:#242424;color:var(--calcite-color-text-1)}.calcite-mode-light.sc-instant-apps-interactive-legend-layer-element-caption-h .instant-apps-interactive-legend__header.sc-instant-apps-interactive-legend-layer-element-caption{background-color:#ffffff;color:var(--calcite-color-text-1)}";export{f as instant_apps_interactive_legend_count,y as instant_apps_interactive_legend_layer_element_caption}
@@ -1,6 +0,0 @@
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 e,h as a,H as s,g as i}from"./p-e996c38f.js";import{g as n}from"./p-ac122d9e.js";import{S as h}from"./p-2bc98cb0.js";import{w as o}from"./p-04674a1e.js";import{g as r}from"./p-a42ff7fe.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";const d={base:"instant-apps-header--standard",headerContainer:"instant-apps-header__header-container",headerContent:"instant-apps-header__header-content",flipRtl:"instant-apps-header--rtl",logoScale:"instant-apps-header__logo-scale--",logoHeight:"instant-apps-header__logo-height--",standardHeight:"instant-apps-header__standard-height",actionsEndContainer:"instant-apps-header__actions-end-container",alignment:{center:"instant-apps-header__header-content--center",right:"instant-apps-header__header-content--right"}},p=class{constructor(a){t(this,a),this.infoIsOpenChanged=e(this,"infoIsOpenChanged",6),this._sanitizer=new h({whiteList:{h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],img:["style","src","width","height"],pre:["style"],p:["id","class","style"],div:["id","class","style","role"],span:["id","class","style","role"],figure:["class","style"],header:["id","class","style","role"]}},!0),this.dir=void 0,this.titleText=void 0,this.titleTextLink=void 0,this.backgroundColor=void 0,this.textColor=void 0,this.logoImage=void 0,this.logoScale="m",this.logoImageAltText=void 0,this.logoLink=void 0,this.infoButton=!1,this.infoIsOpen=!1,this.infoTitleText=void 0,this.customHeaderHtml=void 0,this.headerAlignment="left",this.customHeaderCss=void 0,this.fontFamily="var(--calcite-sans-family);",this.mobileWidthBreakpoint=o.medium[1],this.initialScale="m"}sanitizeCustomHeaderHtml(){this.customHeaderHtml=this._sanitizer.sanitize(this.customHeaderHtml)}componentWillLoad(){this.dir=n(this.el),this.handleMobileBreakpoints(),this.dir=n(this.el),this.customHeaderHtml=this._sanitizer.sanitize(this.customHeaderHtml)}render(){var t,e,i,n;const h="undefined"===this.logoImage||"undefined"===(null===(e=null===(t=this.logoImage)||void 0===t?void 0:t.split("?"))||void 0===e?void 0:e[0])||""===(null===(n=null===(i=this.logoImage)||void 0===i?void 0:i.split("?"))||void 0===n?void 0:n[0])||!this.logoImage,o=this.renderLogo(h),p=this.renderTitle(),l="right"===this.headerAlignment||"center"===this.headerAlignment?d.headerContent.concat(" ",d.alignment[this.headerAlignment]):d.headerContent,c=r(this.fontFamily);return a(s,{key:"f2d1760c4a1345ef24c913a24f95691d0de6867d"},this.customHeaderHtml?[a("style",null,this.customHeaderCss),a("div",{id:"customHeader",innerHTML:this.customHeaderHtml})]:a("header",{class:`${d.base}${"rtl"===this.dir?` ${d.flipRtl}`:""}${this.logoImage&&!h?` ${d.logoHeight}${this.logoScale}`:` ${d.standardHeight}`}`,style:{backgroundColor:this.backgroundColor,fontFamily:c}},a("div",{class:d.headerContainer},a("span",{class:l},o,p,this.infoButton?a("calcite-button",{style:{"--calcite-color-text-1":this.textColor},id:"infoButton",alignment:"start",appearance:"transparent",kind:"neutral","icon-start":"information-f",scale:"s",label:this.infoTitleText,title:this.infoTitleText,onClick:this.toggleInfo.bind(this)}):null),a("div",{class:d.actionsEndContainer},a("slot",{name:"actions-end"})))))}renderLogo(t){return t?"":this.logoImage&&this.logoLink?a("a",{href:`${this.logoLink}`,target:"_blank"},a("img",{class:`${d.logoScale}${this.logoScale}`,src:`${this.logoImage}`,alt:`${this.logoImageAltText}`})):this.logoImage?a("img",{class:`${d.logoScale}${this.logoScale}`,src:`${this.logoImage}`,alt:this.logoImageAltText}):""}renderTitle(){return this.titleText&&this.titleTextLink?a("a",{style:{color:this.textColor},href:`${this.titleTextLink}`,rel:"noopener noreferrer",target:"_blank"},a("h1",{style:{color:this.textColor}},this.titleText)):a("h1",{style:{color:this.textColor}},this.titleText)}toggleInfo(){return this.infoIsOpen=!this.infoIsOpen,this.infoIsOpenChanged.emit(this.infoIsOpen),Promise.resolve()}mqlCallback(){return t=>{const{matches:e}=t;this.logoScale=e?"s":this.initialScale}}handleMobileBreakpoints(){this.initialScale=this.logoScale;const t=window.matchMedia(`(max-width: ${this.mobileWidthBreakpoint}px)`);t.matches&&(this.logoScale="s"),t.addEventListener("change",this.mqlCallback())}get el(){return i(this)}static get watchers(){return{customHeaderHtml:["sanitizeCustomHeaderHtml"]}}};p.style=":host{--instant-apps-header-height:auto;--instant-apps-header-min-height:50px;--instant-apps-header-title-text-link-decoration:underline;--instant-apps-header-height--logo-scale--s:55px;--instant-apps-header-logo-width--logo-scale--s:35px;--instant-apps-header-logo-height--logo-scale--s:35px;--instant-apps-header-height--logo-scale--m:70px;--instant-apps-header-logo-width--logo-scale--m:50px;--instant-apps-header-logo-height--logo-scale--m:50px;--instant-apps-header-height--logo-scale--l:80px;--instant-apps-header-logo-width--logo-scale--l:60px;--instant-apps-header-logo-height--logo-scale--l:60px;--instant-apps-header-actions-end-height:auto;width:100%}:host .image.image_resized img{width:100%}:host .instant-apps-header--standard{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;height:var(--instant-apps-header-height);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);font-family:var(--calcite-sans-family);min-height:var(--instant-apps-header-min-height)}:host .instant-apps-header--standard .instant-apps-header__header-container{display:flex;align-items:center;width:100%;height:inherit}:host .instant-apps-header--standard .instant-apps-header__header-container slot{display:flex;height:inherit}:host .instant-apps-header--standard .instant-apps-header__header-container ::slotted(*){display:flex;min-height:var(--instant-apps-header-min-height);height:var(--instant-apps-header-height)}:host .instant-apps-header--standard .instant-apps-header__header-container ::slotted(*) calcite-button{height:100%}:host .instant-apps-header--standard .instant-apps-header__header-content{box-sizing:border-box;display:flex;align-items:center;width:100%;min-width:0;height:inherit;padding:5px 10px}:host .instant-apps-header--standard .instant-apps-header__header-content a{display:flex;align-items:center;-webkit-text-decoration:var(--instant-apps-header-title-text-link-decoration);text-decoration:var(--instant-apps-header-title-text-link-decoration)}:host .instant-apps-header--standard .instant-apps-header__header-content a img{padding-right:0}:host .instant-apps-header--standard .instant-apps-header__header-content img{margin:10px}:host .instant-apps-header--standard .instant-apps-header__header-content h1{margin:0;font-size:1.25rem;color:var(--calcite-color-text-1);font-weight:430;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .instant-apps-header--standard .instant-apps-header__header-content #infoButton{margin-inline-start:10px}:host .instant-apps-header--standard .instant-apps-header__header-content--center{justify-content:center}:host .instant-apps-header--standard .instant-apps-header__header-content--right{justify-content:end}:host .instant-apps-header__logo-height--s{height:var(--instant-apps-header-height--logo-scale--s)}:host .instant-apps-header__logo-height--s .instant-apps-header__header-content h1{font-size:1.125rem}:host .instant-apps-header__logo-scale--s{width:var(--instant-apps-header-logo-width--logo-scale--s);height:var(--instant-apps-header-logo-height--logo-scale--s)}:host .instant-apps-header__logo-height--m{height:var(--instant-apps-header-height--logo-scale--m)}:host .instant-apps-header__logo-scale--m{width:var(--instant-apps-header-logo-width--logo-scale--m);height:var(--instant-apps-header-logo-height--logo-scale--m)}:host .instant-apps-header__logo-height--l{height:var(--instant-apps-header-height--logo-scale--l)}:host .instant-apps-header__logo-height--l .instant-apps-header__header-content h1{font-size:1.375rem}:host .instant-apps-header__logo-scale--l{width:var(--instant-apps-header-logo-width--logo-scale--l);height:var(--instant-apps-header-logo-height--logo-scale--l)}:host .instant-apps-header__actions-end-container{height:var(--instant-apps-header-actions-end-height);display:flex}:host .instant-apps-header__sign-in-container{height:inherit;display:flex;align-items:center}:host .instant-apps-header__sign-in-container calcite-dropdown,:host .instant-apps-header__sign-in-container calcite-navigation-user{height:100%}:host .instant-apps-header__sign-in-container calcite-button{margin:0 10px}:host .instant-apps-header__sign-in-container calcite-dropdown-group{min-width:140px}";export{p as instant_apps_header}
@@ -1,6 +0,0 @@
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 n,h as i,H as s,g as e}from"./p-e996c38f.js";import{l as o}from"./p-d001e961.js";import{g as r}from"./p-648b5a9e.js";import{g as a}from"./p-a9a72626.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-ac122d9e.js";const p=(()=>{let t=0;return()=>(t+=1,`u${`0000${(Math.random()*36**4|0).toString(36)}`.slice(-4)}${t}`)})();function c(t){const n=[];for(let i=0,s=t.length;i<s;i++)n.push(t[i]);return n}function l(t,n){const i=(t.ownerDocument.defaultView||window).getComputedStyle(t).getPropertyValue(n);return i?parseFloat(i.replace("px","")):0}function h(t,n={}){return{width:n.width||function(t){const n=l(t,"border-left-width"),i=l(t,"border-right-width");return t.clientWidth+n+i}(t),height:n.height||function(t){const n=l(t,"border-top-width"),i=l(t,"border-bottom-width");return t.clientHeight+n+i}(t)}}const d=16384;function u(t){return new Promise(((n,i)=>{const s=new Image;s.decode=()=>n(s),s.onload=()=>n(s),s.onerror=i,s.crossOrigin="anonymous",s.decoding="async",s.src=t}))}const f=(t,n)=>{if(t instanceof n)return!0;const i=Object.getPrototypeOf(t);return null!==i&&(i.constructor.name===n.name||f(i,n))};function g(t,n,i){const s=window.getComputedStyle(t,i),e=s.getPropertyValue("content");if(""===e||"none"===e)return;const o=p();try{n.className=`${n.className} ${o}`}catch(t){return}const r=document.createElement("style");r.appendChild(function(t,n,i){const s=`.${t}:${n}`,e=i.cssText?function(t){const n=t.getPropertyValue("content");return`${t.cssText} content: '${n.replace(/'|"/g,"")}';`}(i):function(t){return c(t).map((n=>`${n}: ${t.getPropertyValue(n)}${t.getPropertyPriority(n)?" !important":""};`)).join(" ")}(i);return document.createTextNode(`${s}{${e}}`)}(o,i,s)),n.appendChild(r)}const v="application/font-woff",x="image/jpeg",m={woff:v,woff2:v,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:x,jpeg:x,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function _(t){const n=function(t){const n=/\.([^./]*?)$/g.exec(t);return n?n[1]:""}(t).toLowerCase();return m[n]||""}function b(t){return-1!==t.search(/^(data:)/)}function w(t,n){return`data:${n};base64,${t}`}async function y(t,n,i){const s=await fetch(t,n);if(404===s.status)throw new Error(`Resource "${s.url}" not found`);const e=await s.blob();return new Promise(((t,n)=>{const o=new FileReader;o.onerror=n,o.onloadend=()=>{try{t(i({res:s,result:o.result}))}catch(t){n(t)}},o.readAsDataURL(e)}))}const k={};async function P(t,n,i){const s=function(t,n,i){let s=t.replace(/\?.*/,"");return i&&(s=t),/ttf|otf|eot|woff2?/i.test(s)&&(s=s.replace(/.*\//,"")),n?`[${n}]${s}`:s}(t,n,i.includeQueryParams);if(null!=k[s])return k[s];let e;i.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime());try{const s=await y(t,i.fetchRequestInit,(({res:t,result:i})=>(n||(n=t.headers.get("Content-Type")||""),function(t){return t.split(/,/)[1]}(i))));e=w(s,n)}catch(n){e=i.imagePlaceholder||"";let s=`Failed to fetch resource: ${t}`;n&&(s="string"==typeof n?n:n.message),s&&console.warn(s)}return k[s]=e,e}const $=t=>null!=t.tagName&&"SLOT"===t.tagName.toUpperCase();async function S(t,n,i){return i||!n.filter||n.filter(t)?Promise.resolve(t).then((t=>async function(t,n){return f(t,HTMLCanvasElement)?async function(t){const n=t.toDataURL();return"data:,"===n?t.cloneNode(!1):u(n)}(t):f(t,HTMLVideoElement)?async function(t,n){if(t.currentSrc){const n=document.createElement("canvas"),i=n.getContext("2d");return n.width=t.clientWidth,n.height=t.clientHeight,null==i||i.drawImage(t,0,0,n.width,n.height),u(n.toDataURL())}const i=t.poster,s=_(i);return u(await P(i,s,n))}(t,n):f(t,HTMLIFrameElement)?async function(t){var n;try{if(null===(n=null==t?void 0:t.contentDocument)||void 0===n?void 0:n.body)return await S(t.contentDocument.body,{},!0)}catch(t){}return t.cloneNode(!1)}(t):t.cloneNode(!1)}(t,n))).then((i=>async function(t,n,i){var s,e;let o=[];return o=$(t)&&t.assignedNodes?c(t.assignedNodes()):f(t,HTMLIFrameElement)&&(null===(s=t.contentDocument)||void 0===s?void 0:s.body)?c(t.contentDocument.body.childNodes):c((null!==(e=t.shadowRoot)&&void 0!==e?e:t).childNodes),0===o.length||f(t,HTMLVideoElement)||await o.reduce(((t,s)=>t.then((()=>S(s,i))).then((t=>{t&&n.appendChild(t)}))),Promise.resolve()),n}(t,i,n))).then((n=>function(t,n){return f(n,Element)&&(function(t,n){const i=n.style;if(!i)return;const s=window.getComputedStyle(t);s.cssText?(i.cssText=s.cssText,i.transformOrigin=s.transformOrigin):c(s).forEach((e=>{let o=s.getPropertyValue(e);if("font-size"===e&&o.endsWith("px")){const t=Math.floor(parseFloat(o.substring(0,o.length-2)))-.1;o=`${t}px`}f(t,HTMLIFrameElement)&&"display"===e&&"inline"===o&&(o="block"),"d"===e&&n.getAttribute("d")&&(o=`path(${n.getAttribute("d")})`),i.setProperty(e,o,s.getPropertyPriority(e))}))}(t,n),function(t,n){g(t,n,":before"),g(t,n,":after")}(t,n),function(t,n){f(t,HTMLTextAreaElement)&&(n.innerHTML=t.value),f(t,HTMLInputElement)&&n.setAttribute("value",t.value)}(t,n),function(t,n){if(f(t,HTMLSelectElement)){const i=Array.from(n.children).find((n=>t.value===n.getAttribute("value")));i&&i.setAttribute("selected","")}}(t,n)),n}(t,n))).then((t=>async function(t,n){const i=t.querySelectorAll?t.querySelectorAll("use"):[];if(0===i.length)return t;const s={};for(let e=0;e<i.length;e++){const o=i[e].getAttribute("xlink:href");if(o){const i=t.querySelector(o),e=document.querySelector(o);i||!e||s[o]||(s[o]=await S(e,n,!0))}}const e=Object.values(s);if(e.length){const n="http://www.w3.org/1999/xhtml",i=document.createElementNS(n,"svg");i.setAttribute("xmlns",n),i.style.position="absolute",i.style.width="0",i.style.height="0",i.style.overflow="hidden",i.style.display="none";const s=document.createElementNS(n,"defs");i.appendChild(s);for(let t=0;t<e.length;t++)s.appendChild(e[t]);t.appendChild(i)}return t}(t,n))):null}const C=/url\((['"]?)([^'"]+?)\1\)/g,E=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,F=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function M(t){return-1!==t.search(C)}async function j(t,n,i){if(!M(t))return t;const s=function(t,{preferredFontFormat:n}){return n?t.replace(F,(t=>{for(;;){const[i,,s]=E.exec(t)||[];if(!s)return"";if(s===n)return`src: ${i};`}})):t}(t,i),e=function(t){const n=[];return t.replace(C,((t,i,s)=>(n.push(s),t))),n.filter((t=>!b(t)))}(s);return e.reduce(((t,s)=>t.then((t=>async function(t,n,i,s,e){try{const o=i?function(t,n){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;const i=document.implementation.createHTMLDocument(),s=i.createElement("base"),e=i.createElement("a");return i.head.appendChild(s),i.body.appendChild(e),n&&(s.href=n),e.href=t,e.href}(n,i):n,r=_(n);let a;return a=e?w(await e(o),r):await P(o,r,s),t.replace(function(t){const n=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${n})(['"]?\\))`,"g")}(n),`$1${a}$3`)}catch(t){}return t}(t,s,n,i)))),Promise.resolve(s))}async function T(t,n,i){var s;const e=null===(s=n.style)||void 0===s?void 0:s.getPropertyValue(t);if(e){const s=await j(e,null,i);return n.style.setProperty(t,s,n.style.getPropertyPriority(t)),!0}return!1}async function L(t,n){f(t,Element)&&(await async function(t,n){await T("background",t,n)||await T("background-image",t,n),await T("mask",t,n)||await T("mask-image",t,n)}(t,n),await async function(t,n){const i=f(t,HTMLImageElement);if((!i||b(t.src))&&(!f(t,SVGImageElement)||b(t.href.baseVal)))return;const s=i?t.src:t.href.baseVal,e=await P(s,_(s),n);await new Promise(((n,s)=>{t.onload=n,t.onerror=s;const o=t;o.decode&&(o.decode=n),"lazy"===o.loading&&(o.loading="eager"),i?(t.srcset="",t.src=e):t.href.baseVal=e}))}(t,n),await async function(t,n){const i=c(t.childNodes).map((t=>L(t,n)));await Promise.all(i).then((()=>t))}(t,n))}const D={};async function I(t){let n=D[t];if(null!=n)return n;const i=await fetch(t);return n={url:t,cssText:await i.text()},D[t]=n,n}async function O(t,n){let i=t.cssText;const s=/url\(["']?([^"')]+)["']?\)/g,e=(i.match(/url\([^)]+\)/g)||[]).map((async e=>{let o=e.replace(s,"$1");return o.startsWith("https://")||(o=new URL(o,t.url).href),y(o,n.fetchRequestInit,(({result:t})=>(i=i.replace(e,`url(${t})`),[e,t])))}));return Promise.all(e).then((()=>i))}function z(t){if(null==t)return[];const n=[];let i=t.replace(/(\/\*[\s\S]*?\*\/)/gi,"");const s=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const t=s.exec(i);if(null===t)break;n.push(t[0])}i=i.replace(s,"");const e=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let t=e.exec(i);if(null===t){if(t=o.exec(i),null===t)break;e.lastIndex=o.lastIndex}else o.lastIndex=e.lastIndex;n.push(t[0])}return n}async function R(t,n){const i=null!=n.fontEmbedCSS?n.fontEmbedCSS:n.skipFonts?null:await async function(t,n){const i=await async function(t,n){if(null==t.ownerDocument)throw new Error("Provided element is not within a Document");const i=c(t.ownerDocument.styleSheets),s=await async function(t,n){const i=[],s=[];return t.forEach((i=>{if("cssRules"in i)try{c(i.cssRules||[]).forEach(((t,e)=>{if(t.type===CSSRule.IMPORT_RULE){let o=e+1;const r=I(t.href).then((t=>O(t,n))).then((t=>z(t).forEach((t=>{try{i.insertRule(t,t.startsWith("@import")?o+=1:i.cssRules.length)}catch(n){console.error("Error inserting rule from remote css",{rule:t,error:n})}})))).catch((t=>{console.error("Error loading remote css",t.toString())}));s.push(r)}}))}catch(e){const o=t.find((t=>null==t.href))||document.styleSheets[0];null!=i.href&&s.push(I(i.href).then((t=>O(t,n))).then((t=>z(t).forEach((t=>{o.insertRule(t,i.cssRules.length)})))).catch((t=>{console.error("Error loading remote stylesheet",t)}))),console.error("Error inlining remote css file",e)}})),Promise.all(s).then((()=>(t.forEach((t=>{if("cssRules"in t)try{c(t.cssRules||[]).forEach((t=>{i.push(t)}))}catch(n){console.error(`Error while reading CSS rules from ${t.href}`,n)}})),i)))}(i,n);return function(t){return t.filter((t=>t.type===CSSRule.FONT_FACE_RULE)).filter((t=>M(t.style.getPropertyValue("src"))))}(s)}(t,n);return(await Promise.all(i.map((t=>j(t.cssText,t.parentStyleSheet?t.parentStyleSheet.href:null,n))))).join("\n")}(t,n);if(i){const n=document.createElement("style"),s=document.createTextNode(i);n.appendChild(s),t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)}}async function H(t,n={}){const{width:i,height:s}=h(t,n),e=await S(t,n,!0);return await R(e,n),await L(e,n),function(t,n){const{style:i}=t;n.backgroundColor&&(i.backgroundColor=n.backgroundColor),n.width&&(i.width=`${n.width}px`),n.height&&(i.height=`${n.height}px`);const s=n.style;null!=s&&Object.keys(s).forEach((t=>{i[t]=s[t]}))}(e,n),await async function(t,n,i){const s="http://www.w3.org/2000/svg",e=document.createElementNS(s,"svg"),o=document.createElementNS(s,"foreignObject");return e.setAttribute("width",`${n}`),e.setAttribute("height",`${i}`),e.setAttribute("viewBox",`0 0 ${n} ${i}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),e.appendChild(o),o.appendChild(t),async function(t){return Promise.resolve().then((()=>(new XMLSerializer).serializeToString(t))).then(encodeURIComponent).then((t=>`data:image/svg+xml;charset=utf-8,${t}`))}(e)}(e,i,s)}async function V(t,n={}){const{width:i,height:s}=h(t,n),e=await H(t,n),o=await u(e),r=document.createElement("canvas"),a=r.getContext("2d"),p=n.pixelRatio||function(){let t,n;try{n=process}catch(t){}const i=n&&n.env?n.env.devicePixelRatio:null;return i&&(t=parseInt(i,10),Number.isNaN(t)&&(t=1)),t||window.devicePixelRatio||1}(),c=n.canvasWidth||i,l=n.canvasHeight||s;return r.width=c*p,r.height=l*p,n.skipAutoScale||function(t){(t.width>d||t.height>d)&&(t.width>d&&t.height>d?t.width>t.height?(t.height*=d/t.width,t.width=d):(t.width*=d/t.height,t.height=d):t.width>d?(t.height*=d/t.width,t.width=d):(t.width*=d/t.height,t.height=d))}(r),r.style.width=`${c}`,r.style.height=`${l}`,n.backgroundColor&&(a.fillStyle=n.backgroundColor,a.fillRect(0,0,r.width,r.height)),a.drawImage(o,0,0,r.width,r.height),r}async function G(t,n={}){return(await V(t,n)).toDataURL("image/jpeg",n.quality||1)}const U="instant-apps-export calcite-mode-light",W="instant-apps-export-print instant-apps-export-print__pdf",A="instant-apps-export-print instant-apps-export-print__img",B="instant-apps-export-print__img--extra-content",N="instant-apps-export-print__content-container",J="instant-apps-export-print__extra-container",q="instant-apps-export-print__legend-container",X="instant-apps-export-print__compass-container",K="instant-apps-export-print__scale-bar-container",Q="instant-apps-export-print__popup-container",Y="instant-apps-export-print__popup-content",Z="instant-apps-export-print__popup-title",tt="instant-apps-export-print__view",nt="instant-apps-export-print__view-container",it="instant-apps-export-print__view-wrapper",st="instant-app-export-drag",et=class{constructor(i){t(this,i),this.exportOutputUpdated=n(this,"exportOutputUpdated",7),this.fileTypes=["PDF","JPG","PNG"],this.output=void 0,this.beforeExport=()=>Promise.resolve(),this.popoverIcon="export",this.extraContent=void 0,this.extraContentLabel=void 0,this.headerTitle="",this.logoImage="",this.includeExtraContent=!0,this.showExtraContentInImg=!1,this.includeLegend=!0,this.includeMap=!0,this.includePopup=!1,this.includeFileFormat=!0,this.mode="popover",this.popoverPositioning="absolute",this.popoverPlacement="auto",this.scale="m",this.showHeaderTitle=!0,this.showIncludeLegend=!0,this.showIncludeMap=!1,this.showIncludePopup=!0,this.showScaleBar=!1,this.view=void 0,this.maskBackground="rgba(255, 51, 0, 0.1)",this.maskBorder="2px dashed rgb(255, 51, 0)",this.baseClass=U,this.exportIsLoading=void 0,this.messages=void 0,this.selectedFileType="PDF"}watchIncludeMap(t){t&&this.updateLegend()}watchView(){this.handleIncludePopup()}async componentWillLoad(){this.baseClass="dark"===a(this.el)?"instant-apps-export calcite-mode-dark":U,r(this),await this.initializeModules()}componentDidLoad(){this.printContainerEl.prepend(this.printEl),this.handleIncludePopup()}async initializeModules(){const[t,n]=await o(["esri/core/Handles","esri/core/reactiveUtils"]);return this.handles=new t,this.reactiveUtils=n,Promise.resolve()}render(){const t="popover"===this.mode?this.renderPopover():this.renderPanel(),n=this.renderCompass();return i(s,{key:"9811c244faf2c794db3edaad498a9a902cb3faad"},i("div",{key:"cb880c04d46ec06a9588cedc0bd90ab62d25c0ac",class:this.baseClass,onMouseEnter:this.handleWidgetCreation.bind(this),onFocusin:this.handleWidgetCreation.bind(this)},t,i("div",{key:"fc7ccd1eeb4b6a82bd9804d1aa73c4f242085a56",class:"instant-apps-export__visually-hidden"},n)))}renderPopover(){var t,n,s;const e=this.renderPanel();return[i("calcite-popover",{referenceElement:"export-popover-btn",label:null===(t=this.messages)||void 0===t?void 0:t.exportPopover,overlayPositioning:this.popoverPositioning,placement:this.popoverPlacement,autoClose:!0,ref:t=>this.popoverEl=t},e),i("calcite-action",{id:"export-popover-btn",alignment:"center",icon:this.popoverIcon,scale:this.scale,title:null===(n=this.messages)||void 0===n?void 0:n.exportBtn,text:null===(s=this.messages)||void 0===s?void 0:s.exportBtn})]}renderPanel(){var t,n,s;const e=this.showHeaderTitle?this.renderTitle():null,o=null!=this.extraContent?this.renderSwitch("includeExtraContent",this.extraContentLabel,"PDF"!==this.selectedFileType&&!this.showExtraContentInImg):null,r=this.showIncludeMap?this.renderSwitch("includeMap",void 0,"PDF"!==this.selectedFileType):null,a=this.includeMap?this.renderMapOptions():null,p=this.includeFileFormat?this.renderSelectFileType():null,c="PDF"===this.selectedFileType?this.renderPrint():this.renderImg();return i("div",{class:"inline"===this.mode?"instant-apps-export__inline-container":"instant-apps-export__popover-container"},e,o,r,a,p,this.includeMap?i("calcite-button",{appearance:"transparent",width:"full",onClick:this.setMapAreaOnClick.bind(this,!0),disabled:this.exportIsLoading},null===(t=this.messages)||void 0===t?void 0:t.setMapArea):null,i("calcite-button",{width:"full",onClick:this.exportOnClick.bind(this),disabled:this.exportIsLoading},"PDF"===this.selectedFileType?null===(n=this.messages)||void 0===n?void 0:n.export:null===(s=this.messages)||void 0===s?void 0:s.preview),c)}renderTitle(){var t;return i("calcite-label",null,null===(t=this.messages)||void 0===t?void 0:t.title,i("calcite-input",{value:this.headerTitle,onCalciteInputInput:this.updateHeaderTitle.bind(this)}))}renderSwitch(t,n,s){var e;const o=null!=n?n:null===(e=this.messages)||void 0===e?void 0:e[t];return i("calcite-label",{layout:"inline-space-between"},o,i("calcite-switch",{checked:this[t],value:t,onCalciteSwitchChange:this.optionOnChange.bind(this),disabled:s}))}renderSelectFileType(){var t;return i("calcite-label",null,null===(t=this.messages)||void 0===t?void 0:t.fileType,i("calcite-select",{label:"",onCalciteSelectChange:this.handleSelectFileType.bind(this)},this.fileTypes.map((t=>i("calcite-option",{value:t,selected:t===this.selectedFileType},t)))))}renderMapOptions(){const t=this.showIncludeLegend?this.renderSwitch("includeLegend"):null,n=this.showIncludePopup?this.renderSwitch("includePopup"):null;return i("div",null,t,n)}renderPrint(){const t=this.includeMap?this.renderPrintMap():null,n=this.renderExtraContent(),s=this.includeMap&&this.showIncludeLegend?this.renderLegend():null,e=this.includeMap&&this.showIncludePopup?this.renderPopup():null;return i("div",{ref:t=>this.printContainerEl=t},i("div",{class:W,ref:t=>this.printEl=t},t,s,i("div",{class:N},e,n)))}renderPrintMap(){return i("div",{class:nt,ref:t=>this.viewContainerEl=t},i("div",{class:it,ref:t=>this.viewWrapperEl=t},this.headerTitle?i("instant-apps-header",{logoImage:this.logoImage,logoScale:"s",titleText:this.headerTitle,backgroundColor:"#fff",textColor:"#323232"}):null,i("img",{class:tt,ref:t=>this.viewEl=t}),i("div",{class:K,ref:t=>this.scaleBarContainerEl=t})))}renderLegend(){return i("div",{class:q,ref:t=>this.legendContainerEl=t})}renderCompass(){return i("div",{class:X,ref:t=>this.compassContainerEl=t})}renderPopup(){return i("div",{class:Q,ref:t=>this.popupContainerEl=t},i("div",{ref:t=>this.popupTitleEl=t,class:Z}),i("div",{ref:t=>this.popupContentEl=t,class:Y}))}renderExtraContent(){return i("div",{class:J,id:"export-content",ref:t=>this.extraContainerEl=t})}renderImg(){const t=this.includeMap?this.renderPrintMap():null,n=this.includeMap&&this.showIncludeLegend?this.renderLegend():null;let s;return this.includeMap&&this.showIncludePopup?s=this.renderPopup():this.showExtraContentInImg&&null!=this.extraContent&&this.includeExtraContent&&(s=this.renderExtraContent()),i("div",{ref:t=>this.printContainerEl=t},i("div",{class:A,ref:t=>this.printEl=t},t,n,s))}optionOnChange(t){const{checked:n,value:i}=t.target;this[i]=n,this.updateExportOutput()}updateHeaderTitle(t){this.headerTitle=t.target.value,this.updateExportOutput()}async exportOnClick(){this.removeScreenshotElements(),await this.beforeExport(),null==this.viewWrapperEl||this.viewWrapperEl.contains(this.compassContainerEl)||this.viewWrapperEl.append(this.compassContainerEl),this.handleViewExportOnClick(),null!=this.popoverEl&&(this.popoverEl.open=!1)}async exportPreviewOnClick(){"PDF"===this.selectedFileType?await this.exportPDF():this.exportImg()}async exportPDF(){this.removeScreenshotElements(),await this.beforeExport(),null==this.viewWrapperEl||this.viewWrapperEl.contains(this.compassContainerEl)||this.viewWrapperEl.append(this.compassContainerEl),this.handleViewExportOnClick(),null!=this.popoverEl&&(this.popoverEl.open=!1)}exportImg(){var t;if(this.resetPopupVisibility(),null==this.dataUrl)return;const n=document.createElement("a");n.id="download-link",n.href=this.dataUrl,n.download=null!==(t=this.headerTitle)&&void 0!==t?t:document.title,n.click(),this.dataUrl=null,this.exportIsLoading=!1,this.removeScreenshotElements(),this.resetPrintContent()}async handleViewExportOnClick(){null!=this.view?(this.addPrintStyling(),document.body.prepend(this.printEl),this.handleExtraContent(),this.includeMap?(this.updateScaleBar(),this.viewScreenshot(),this.handleImgLoaded()):this.handleImgLoaded()):null!=this.popoverEl&&(this.popoverEl.open=!1)}addPrintStyling(){null==this.printStyleEl&&(this.printStyleEl=document.createElement("style"),this.printStyleEl.innerHTML='\n @media print {\n @page {\n size: Portrait;\n margin: .25in;\n }\n\n html, body {\n padding: 0;\n margin: 0;\n height: 100%;\n width: 100%;\n }\n\n body > *:not(.instant-apps-export-print) { display: none; }\n }\n\n * {\n -webkit-print-color-adjust: exact;\n color-adjust: exact;\n }\n\n\n .instant-apps-export-print {\n position: absolute;\n z-index: -999;\n color: #323232 !important;\n --esri-calcite-mode-name: "light";\n }\n\n .instant-apps-export-print__pdf {\n height: 100%;\n width: 100%;\n display: grid;\n gap: 24px;\n grid-auto-flow: row;\n }\n\n .instant-apps-export-print__img {\n display: grid;\n width: auto;\n }\n\n .instant-apps-export-print__img--extra-content {\n grid-template-columns: 2fr minmax(0, 325px);\n }\n\n .instant-apps-export-print, .instant-apps-export-print * {\n box-sizing: border-box;\n }\n\n .instant-apps-export-print__view-section {\n height: 100%;\n }\n\n .instant-apps-export-print__view-container {\n height: 100%;\n width: 100%;\n display: flex;\n justify-content: center;\n }\n\n .instant-apps-export-print__img .instant-apps-export-print__view-container {\n grid-row: 1;\n grid-column: 1;\n }\n\n .instant-apps-export-print__view-wrapper {\n height: fit-content;\n width: fit-content;\n position: relative;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n }\n\n .instant-apps-export-print__pdf .instant-apps-export-print__view-wrapper {\n border: 2pt solid #323232;\n }\n\n .instant-apps-export-print__img .instant-apps-export-print__view-wrapper {\n border: 1pt solid #323232;\n }\n\n .instant-apps-export-print__view {\n object-fit: contain;\n }\n\n .instant-apps-export-print__extra-container {\n grid-row: 1 / span 2;\n grid-column: 2;\n }\n \n .instant-apps-export-print__extra-container .esri-feature.esri-widget .esri-widget__heading.esri-feature__title {\n display: block;\n }\n\n .instant-apps-export-print__popup-container {\n height: min-content;\n max-width: 325px;\n display: none;\n color: #323232;\n background: #fff;\n break-inside: avoid;\n }\n\n .instant-apps-export-print__pdf .instant-apps-export-print__popup-container {\n border: 1pt solid #323232;\n }\n\n .instant-apps-export-print__img .instant-apps-export-print__popup-container {\n grid-row: 1 / span 2;\n grid-column: 2;\n }\n\n .instant-apps-export-print__popup-title {\n border-bottom: 1pt solid #323232;\n }\n\n .instant-apps-export-print__popup-content {\n background: #fff;\n padding-top: 8pt;\n }\n\n .instant-apps-export-print__popup-content .esri-feature-media__chart {\n background: #fff;\n }\n\n .instant-apps-export-print__legend-container {\n height: min-content;\n background: #fff;\n overflow: unset;\n }\n\n .instant-apps-export-print__img .instant-apps-export-print__legend-container {\n margin: 14px;\n grid-row: 2;\n grid-column: 1;\n }\n\n .esri-legend--card, .esri-legend--card__service-content {\n flex-flow: row wrap;\n }\n\n .instant-apps-export-print .esri-widget > *:not(.esri-scale-bar.esri-widget > *) {\n background: #fff;\n color: #323232;\n }\n\n .instant-apps-export-print__popup-content *, .instant-apps-export-print__img .esri-feature.esri-widget * {\n color: #323232;\n }\n\n .instant-apps-export-print .esri-widget__heading {\n margin: 4pt 7pt;\n padding: 0;\n color: #323232;\n }\n\n .instant-apps-export-print .esri-legend__ramp-label:before {\n border-color: rgba(0,0,0,0) rgba(50,50,50,.8) rgba(0,0,0,0) rgba(0,0,0,0);\n }\n\n .instant-apps-export-print .esri-legend--card__section {\n padding: 4pt 0 4pt;\n min-width: unset;\n border-left: none;\n }\n\n .instant-apps-export-print .esri-legend--card__section:first-child {\n border-left: none;\n }\n\n .instant-apps-export-print .esri-legend--card__service {\n border: none;\n flex: 0 1 auto;\n break-inside: avoid;\n }\n\n .instant-apps-export-print .esri-legend--card {\n border: none;\n gap: 6pt 12pt;\n }\n\n .instant-apps-export-print .esri-legend--card:not(:first-child),\n .instant-apps-export-print .esri-compass.esri-widget:not(:first-child) {\n display: none;\n }\n\n .instant-apps-export-print .esri-legend--card__service-caption-container {\n height: unset;\n padding: 0;\n border-bottom: none;\n }\n\n .instant-apps-export-print .esri-legend--card__service-caption-text {\n padding-bottom: 4px;\n }\n\n .instant-apps-export-print__compass-container {\n position: absolute;\n top: 65px;\n left: 15px;\n background: #fff;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);\n --calcite-ui-icon-color: #000;\n border-radius: 50%;\n height: fit-content;\n }\n\n .instant-apps-export-print__compass-container .esri-compass {\n background: #fff;\n }\n\n .instant-apps-export-print__compass-container .esri-compass__icon.esri-icon-compass {\n color: #000;\n }\n\n .instant-apps-export-print__compass-container.esri-compass.esri-widget--button {\n background: #fff;\n }\n\n .instant-apps-export-print__scale-bar-container {\n width: 100%;\n position: absolute;\n bottom: 15px;\n margin: 0 15px;\n }\n\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__label {\n color: #323232;\n font-size: 10px;\n padding: 0 4px;\n }\n \n .instant-apps-export-print__scale-bar-container--position .esri-scale-bar__label {\n height: 10px;\n padding: 0 2px;\n line-height: 11px;\n }\n\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__bar-container:nth-child(1n+3) {\n display: none;\n }\n\n .instant-apps-export-print__scale-bar-container--position .esri-scale-bar__bar-container.esri-scale-bar__bar-container--line {\n align-items: center;\n }\n\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line {\n background-color: rgba(255, 255, 255, 0.66);\n }\n\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--top {\n width: var(--instant-apps-scale-bar-top) !important;\n border-bottom: 2px solid #323232;\n }\n\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--bottom {\n width: var(--instant-apps-scale-bar-bottom) !important;\n border-top: 2px solid #323232;\n }\n\n .instant-apps-export-print__scale-bar-container--position .esri-scale-bar__label-container--line {\n position: unset;\n margin: 0 2px;\n background-color: rgba(255, 255, 255, 0.66);\n height: 10px;\n display: flex;\n align-items: center;\n }\n\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--top:before,\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--top:after,\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--bottom:before,\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--bottom:after {\n background-color: #323232;\n border-right: 2px solid #323232;\n }\n\n .instant-apps-export-print__popup-container .esri-feature-media__item-navigation {\n display: none;\n }\n\n .instant-apps-export-print__popup-container .esri-feature-media__chart.esri-feature-media__chart--rendered * {\n width: 100%!important;\n }\n\n .instant-apps-export-print__popup-content .esri-popup__content {\n margin: 0;\n }\n\n .instant-apps-export-print__content-container {\n display: flex;\n gap: 24px;\n break-inside: avoid;\n break-before: auto;\n }',document.body.prepend(this.printStyleEl))}handleImgLoaded(){this.exportIsLoading=!0,setTimeout((()=>{"PDF"===this.selectedFileType&&(this.exportIsLoading=!1),this.setupViewPrintElements()}),1500)}handleExtraContent(){const t=this.printEl.querySelector("#export-content");if(null!=t){t.innerHTML="";const n=null!=this.extraContent&&this.includeExtraContent;this.printEl.classList.toggle(B,"PDF"!==this.selectedFileType&&this.showExtraContentInImg&&n),n?(t.style.display="block",t.append(this.extraContent.cloneNode(!0))):t.style.display="none"}else this.showExtraContentInImg&&"PDF"!==this.selectedFileType&&!this.includeExtraContent&&this.printEl.classList.toggle(B,!1)}resetPrintContent(){var t,n,i;if(null!=this.view){this.screenshot=null,null===(t=this.printContainerEl)||void 0===t||t.prepend(this.printEl),null===(n=this.printStyleEl)||void 0===n||n.remove(),null===(i=this.tmpPopupTitleEl)||void 0===i||i.remove(),this.printStyleEl=void 0;const s=this.printEl.querySelector("#export-content");s&&(s.innerHTML="")}}async updatePopupToPrint(){var t,n;if(null==this.view||null==this.popupContainerEl)return;this.popupContainerEl.style.display=this.includePopup&&this.view.popup.visible?"block":"none",this.checkPopupOpen();const i=this.includePopup&&(this.view.popup.visible||this.popupHiddenByMapArea)&&null!=this.view.popup.selectedFeature;if(this.printEl.classList.toggle(B,"PDF"!==this.selectedFileType&&i),i){const i=document.createElement(`h${null!==(t=this.view.popup.headingLevel)&&void 0!==t?t:2}`);i.innerHTML=null!==(n=this.view.popup.title)&&void 0!==n?n:"",i.className="esri-widget__heading esri-popup__header-title",null==this.popupTitleEl?(this.tmpPopupTitleEl=document.createElement("div"),this.tmpPopupTitleEl.prepend(i),this.tmpPopupTitleEl.style.display=this.view.popup.title?"block":"none",this.popupContainerEl.prepend(this.tmpPopupTitleEl)):(this.popupTitleEl.style.display=this.view.popup.title?"block":"none",this.popupTitleEl.innerHTML="",this.popupTitleEl.prepend(i))}}updateExportOutput(){this.output={},this.showHeaderTitle&&(this.output.headerTitle=this.headerTitle),this.showIncludeLegend&&(this.output.includeLegend=this.includeLegend),this.showIncludeMap&&(this.output.includeMap=this.includeMap),this.showIncludePopup&&(this.output.includePopup=this.includePopup),this.exportOutputUpdated.emit()}setupViewPrintElements(){if(null!=this.view)if(this.handleLegendSetup(),"PDF"===this.selectedFileType){const t=document.title;this.showHeaderTitle&&this.headerTitle&&(document.title=this.headerTitle),window.print(),document.title=t,setTimeout((()=>{this.resetPrintContent()}),1e3)}else this.convertToImage()}async convertToImage(){const t={backgroundColor:"#FFF",skipFonts:!0};let n="";try{n="JPG"===this.selectedFileType?await G(this.printEl,t):await async function(t,n={}){return(await V(t,n)).toDataURL()}(this.printEl,t)}catch(i){this.logoImage=void 0,await new Promise((t=>setTimeout(t,500))),n=await G(this.printEl,t)}finally{this.handleGetImage(n)}}handleGetImage(t){var n;this.resetPrintContent(),t&&(this.dataUrl=t,this.setMapAreaOnClick(!1),this.showPreview(t),null===(n=this.view)||void 0===n||n.container.classList.remove("screenshot-cursor"),this.setMaskPosition(null))}handleLegendSetup(){var t;if(this.showIncludeLegend&&null!=this.view&&this.includeMap&&null!=this.legendContainerEl){const n=null!=this.legend&&(null===(t=this.legend.activeLayerInfos)||void 0===t?void 0:t.length)>0;this.legendContainerEl.style.display=this.includeLegend&&n?"block":"none"}}handleWidgetCreation(){this.includeMap&&(this.handleLegendCreation(),this.handleCompassCreation(),this.updatePopupToPrint())}handleIncludePopup(){var t,n;if(this.showIncludePopup){const i="includePopup";null===(t=this.handles)||void 0===t||t.remove(i),null===(n=this.reactiveUtils)||void 0===n||n.whenOnce((()=>{var t;return null===(t=this.view)||void 0===t?void 0:t.ready})).then((()=>{var t;null===(t=this.handles)||void 0===t||t.add(this.reactiveUtils.watch((()=>{var t,n;return null===(n=null===(t=this.view)||void 0===t?void 0:t.popup)||void 0===n?void 0:n.visible}),(t=>{this.settingMapArea||(this.includePopup=t)})),i)}))}}handleLegendCreation(){var t,n,i,s,e;if(null!=this.view&&this.showIncludeLegend&&null!=this.legendContainerEl){const o=this.view.map,r=null===(n=null===(t=this.legend)||void 0===t?void 0:t.view)||void 0===n?void 0:n.map;null!=(null===(i=null==o?void 0:o.portalItem)||void 0===i?void 0:i.id)&&(null===(s=null==o?void 0:o.portalItem)||void 0===s?void 0:s.id)===(null===(e=null==r?void 0:r.portalItem)||void 0===e?void 0:e.id)||this.updateLegend()}}updateLegend(){var t;null===(t=this.view)||void 0===t||t.when((async t=>{if(null!=this.legend&&(this.legend.destroy(),this.legend=null),null!=this.legendContainerEl){this.legendContainerEl.innerHTML="";const n=document.createElement("div");this.legendContainerEl.append(n);const[i]=await o(["esri/widgets/Legend"]);this.legend=new i({container:n,view:t,respectLayerDefinitionExpression:!0,style:{type:"card",layout:"side-by-side"}})}}))}handleCompassCreation(){var t,n,i,s;if(null!=this.view&&null!=this.compassContainerEl){const e=this.view.map,o=null===(n=null===(t=this.compass)||void 0===t?void 0:t.view)||void 0===n?void 0:n.map;(null===(i=null==e?void 0:e.portalItem)||void 0===i?void 0:i.id)===(null===(s=null==o?void 0:o.portalItem)||void 0===s?void 0:s.id)||this.updateCompass()}}updateCompass(){var t;null===(t=this.view)||void 0===t||t.when((async t=>{var n;null===(n=this.compass)||void 0===n||n.destroy(),this.compass=null;const i=document.createElement("div");this.compassContainerEl.append(i);const[s]=await o(["esri/widgets/Compass"]);this.compass=new s({container:i,view:t})}))}updateScaleBar(){if(this.scaleBarContainerEl&&null!=this.view&&(this.scaleBarContainerEl.innerHTML="",this.showScaleBar)){const t=this.view.ui.getComponents(),n=null==t?void 0:t.find((({container:t})=>{var n;return null===(n=null==t?void 0:t.className)||void 0===n?void 0:n.includes("esri-scale-bar")}));null!=(null==n?void 0:n.container)&&"string"!=typeof n.container&&this.scaleBarContainerEl.append(n.container.cloneNode(!0))}}async viewScreenshot(){var t;if(null!=this.view&&this.includeMap&&(null==this.screenshot&&(null===(t=this.scaleBarContainerEl)||void 0===t||t.classList.toggle("instant-apps-export-print__scale-bar-container--position",this.view.width>1e3),this.screenshot=await this.view.takeScreenshot({width:2*this.view.width,height:2*this.view.height})),this.handleScaleBarSize(),null!=this.viewEl&&null!=this.viewWrapperEl)){const{height:t,width:n}=this.screenshot.data;t>n?this.setMaxRowHeightOnViewContainer():this.setMaxWidthOnViewContainer(),this.viewEl.src=this.screenshot.dataUrl}}setMaxRowHeightOnViewContainer(){"PDF"===this.selectedFileType&&(this.printEl.style.gridTemplateRows="minmax(auto, 70%)"),this.viewEl.style.height="100%",this.viewEl.style.width="",this.viewWrapperEl.style.height="100%",this.viewWrapperEl.style.width="fit-content"}setMaxWidthOnViewContainer(){this.printEl.style.gridTemplateRows="",this.viewEl.style.width="100%",this.viewEl.style.height="",this.viewWrapperEl.style.height="fit-content",this.viewWrapperEl.style.width="100%"}checkPopupOpen(){if(null!=this.view){const t=this.view.popup.container,n=null==t?void 0:t.querySelector(".esri-popup .esri-feature__main-container");if(null!=n){const t=n.querySelectorAll("canvas");this.popupContentEl.innerHTML="",this.popupContentEl.append(n.cloneNode(!0));const i=this.popupContentEl.querySelectorAll("canvas");t.forEach(((t,n)=>{var s;const e=t.toDataURL(),o=document.createElement("img");o.src=e;const r=t.getAttribute("style");r&&o.setAttribute("style",r);const a=i[n];null!=a&&(a.replaceWith(o),document.querySelector("link[href*='esri/themes/dark/main.css']")&&null!=(null===(s=o.parentElement)||void 0===s?void 0:s.parentElement)&&(o.parentElement.style.background="#242424",o.parentElement.parentElement.style.background="#242424"))}))}}}createScreenshot(){var t,n,i;if(null!=this.view){this.screenshotPreview=document.createElement("div"),this.screenshotPreview.className="screenshot-preview hide",this.screenshotImgContainer=document.createElement("div"),this.screenshotImgContainer.className="screenshot-img-container",this.screenshotImg=document.createElement("img");const s=document.createElement("div"),e=document.createElement("calcite-button"),o=document.createElement("calcite-button");e.innerHTML="PDF"===this.selectedFileType?null===(t=this.messages)||void 0===t?void 0:t.export:null===(n=this.messages)||void 0===n?void 0:n.downloadImage,o.innerHTML=null===(i=this.messages)||void 0===i?void 0:i.returnToMap,o.appearance="outline-fill",e.onclick=this.exportPreviewOnClick.bind(this),o.onclick=this.screenshotReturn.bind(this),s.append(o,e),this.screenshotImgContainer.append(this.screenshotImg,s),this.screenshotPreview.append(this.screenshotImgContainer),this.view.container.append(this.screenshotPreview)}}createMaskDiv(){null!=this.view&&(this.maskDivEl=document.createElement("div"),this.maskDivEl.id="screenshot-mask",this.maskDivEl.className="hide screenshot-cursor",this.maskDivEl.style.setProperty("--instant-apps-screenshot-mask-background",this.maskBackground),this.maskDivEl.style.setProperty("--instant-apps-screenshot-mask-border",this.maskBorder),this.screenshotStyle=document.createElement("style"),this.screenshotStyle.innerHTML="\n.screenshot-preview.hide, .hide {\n display: none;\n}\n\n.screenshot-cursor {\n cursor: crosshair;\n}\n\n.relative {\n position: relative;\n}\n\n#screenshot-mask {\n position: absolute;\n background: var(--instant-apps-screenshot-mask-background);\n border: var(--instant-apps-screenshot-mask-border);\n}\n\n.screenshot-preview {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n text-align: center;\n background-color: rgba(0, 0, 0, 0.75);\n}\n\n.screenshot-preview * {\n box-sizing: border-box;\n}\n\n.screenshot-img-container img {\n max-height: 75%;\n max-width: 75%;\n object-fit: contain;\n box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.5);\n margin-bottom: 0.5em;\n}\n\n.screenshot-img-container {\n height: 100%;\n width: 100%;\n overflow-y: auto;\n margin-bottom: 8px;\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n}\n\n.screenshot-img-container calcite-button {\n margin: 5px;\n}",this.view.container.append(this.screenshotStyle),this.view.container.append(this.maskDivEl))}screenshotReturn(){this.removeScreenshotElements(),this.exportIsLoading=!1,this.screenshot=null,this.resetPopupVisibility()}setMapAreaOnClick(t){null!=this.view&&(this.settingMapArea=!0,t&&this.view.popup.visible&&(this.popupHiddenByMapArea=!0,this.view.popup.container.style.display="none"),this.exportIsLoading=!0,this.createMaskDiv(),this.createScreenshot(),this.view.container.classList.add("screenshot-cursor","relative"),this.view.addHandles(this.view.on("drag",(async t=>{null!=this.view&&(t.stopPropagation(),"end"!==t.action?this.updateMaskSize(t):this.maskScreenshot())})),st))}updateMaskSize(t){if(null!=this.view){const n=this.clamp(Math.min(t.origin.x,t.x),0,this.view.width),i=this.clamp(Math.max(t.origin.x,t.x),0,this.view.width),s=this.clamp(Math.min(t.origin.y,t.y),0,this.view.height),e=this.clamp(Math.max(t.origin.y,t.y),0,this.view.height);this.area={x:n,y:s,width:i-n,height:e-s},this.setMaskPosition(this.area)}}maskScreenshot(){var t;if(null!=this.view&&null!=this.area){this.view.removeHandles(st);const n=this.area.height,i=this.area.width;this.showScaleBar&&(null===(t=this.scaleBarContainerEl)||void 0===t||t.classList.toggle("instant-apps-export-print__scale-bar-container--position",this.view.width>1e3&&.75*this.view.width<i)),this.view.takeScreenshot({area:this.area,width:2*i,height:2*n,format:"jpg"}).then((t=>{var n;this.screenshot=t,null===(n=this.view)||void 0===n||n.container.classList.remove("screenshot-cursor"),this.setMaskPosition(null),"PDF"===this.selectedFileType?(this.showPreview(null==t?void 0:t.dataUrl),this.resetPopupVisibility()):(null==this.viewWrapperEl||this.viewWrapperEl.contains(this.compassContainerEl)||this.viewWrapperEl.append(this.compassContainerEl),this.handleViewExportOnClick(),null!=this.popoverEl&&(this.popoverEl.open=!1))}))}}setMaskPosition(t){null!=t?(this.maskDivEl.classList.remove("hide"),this.maskDivEl.style.left=`${t.x}px`,this.maskDivEl.style.top=`${t.y}px`,this.maskDivEl.style.width=`${t.width}px`,this.maskDivEl.style.height=`${t.height}px`):this.maskDivEl.remove()}clamp(t,n,i){return t<n?n:t>i?i:t}showPreview(t){t&&(this.screenshotPreview.classList.remove("hide"),null!=this.screenshotImg&&(this.screenshotImg.src=t))}handleScaleBarSize(){var t;if(this.showScaleBar&&"2d"===(null===(t=this.view)||void 0===t?void 0:t.type)&&null!=this.scaleBarContainerEl){const t=this.scaleBarContainerEl.querySelector(".esri-scale-bar__line--top"),n=this.scaleBarContainerEl.querySelector(".esri-scale-bar__line--bottom");this.setScalebarWidth(t,"top"),this.setScalebarWidth(n,"bottom")}}setScalebarWidth(t,n){var i;if(null!=t&&null!=this.screenshot){const s=this.screenshot.data.width/2,e=Number(t.style.width.replace("px",""));null===(i=this.scaleBarContainerEl)||void 0===i||i.style.setProperty(`--instant-apps-scale-bar-${n}`,e/s*100+"%")}}removeScreenshotElements(){var t,n,i;null===(t=this.view)||void 0===t||t.removeHandles(st),null===(n=this.screenshotPreview)||void 0===n||n.remove(),null===(i=this.screenshotStyle)||void 0===i||i.remove()}resetPopupVisibility(){this.view&&this.settingMapArea&&this.popupHiddenByMapArea&&(this.view.popup.container.style.display=""),this.settingMapArea=!1,this.popupHiddenByMapArea=!1}handleSelectFileType(t){this.selectedFileType=t.target.value,"PDF"===this.selectedFileType?(this.includeMap=this.pdfIncludeMap,this.showExtraContentInImg||(this.includeExtraContent=this.pdfIncludeExtraContent)):(this.pdfIncludeMap=this.includeMap,this.includeMap=!0,this.showExtraContentInImg||(this.pdfIncludeExtraContent=this.includeExtraContent,this.includeMap=!0,this.includeExtraContent=!1))}get el(){return e(this)}static get watchers(){return{includeMap:["watchIncludeMap"],view:["watchView"]}}};et.style=":host{display:block;--instant-apps-export-action-background:var(--calcite-color-foreground-1);--instant-apps-export-action-background-hover:var(--calcite-color-foreground-2);--instant-apps-export-action-background-press:var(--calcite-color-foreground-3);--instant-apps-export-action-height:100%;--instant-apps-export-action-width:fit-content;--instant-apps-export-action-icon-color:var(--calcite-color-text-3);--instant-apps-export-action-icon-hover-color:var(--calcite-color-text-1);--instant-apps-export-background:var(--calcite-color-foreground-1);--instant-apps-export-text-color:var(--calcite-color-text-1);--instant-apps-export-popover-width:250px}.instant-apps-export{height:100%}.instant-apps-export *{box-sizing:border-box}.instant-apps-export__popover-container,.instant-apps-export__inline-container{padding:12px;background:var(--instant-apps-export-background);--calcite-color-text-1:var(--instant-apps-export-text-color)}.instant-apps-export__popover-container{width:var(--instant-apps-export-popover-width)}.instant-apps-export calcite-action{height:var(--instant-apps-export-action-height);width:var(--instant-apps-export-action-width);--calcite-color-foreground-1:var(--instant-apps-export-action-background);--calcite-color-foreground-2:var(--instant-apps-export-action-background-hover);--calcite-color-foreground-3:var(--instant-apps-export-action-background-press);--calcite-color-text-3:var(--instant-apps-export-action-icon-color);--calcite-color-text-1:var(--instant-apps-export-action-icon-hover-color)}.instant-apps-export .instant-apps-export-print{display:none}.instant-apps-export .instant-apps-export-print_img{display:flex;flex-flow:row wrap}.instant-apps-export__visually-hidden{position:absolute;top:0;z-index:-1;visibility:hidden}.instant-apps-export calcite-input{--calcite-color-foreground-1:var(--instant-apps-export-background);--calcite-color-text-1:var(--instant-apps-export-text-color)}.instant-apps-export calcite-popover{--calcite-color-foreground-1:var(--instant-apps-export-background)}.instant-apps-export calcite-switch{--calcite-color-foreground-1:#fff;--calcite-color-foreground-2:#f3f3f3}.instant-apps-export calcite-button:last-of-type{margin-top:0.5rem}.instant-apps-export .calcite-mode-dark calcite-switch{--calcite-color-foreground-1:#2b2b2b;--calcite-color-foreground-2:#202020}.instant-apps-export__compass-container.esri-widget{background:#fff;box-shadow:0 1px 2px rgba(0, 0, 0, 0.3)}.instant-apps-export__compass-container.esri-widget .esri-compass__icon.esri-icon-compass{color:#6e6e6e}.hide{display:none}.screenshotCursor{cursor:crosshair}";export{et as instant_apps_export}