@esri/solutions-components 0.11.19 → 0.11.21

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 (1534) hide show
  1. package/dist/cjs/asyncToGenerator-c7fc3ee4.js +92 -0
  2. package/dist/cjs/basemap-gallery_7.cjs.entry.js +2 -2
  3. package/dist/cjs/buffer-tools_2.cjs.entry.js +4 -3
  4. package/dist/cjs/card-manager_3.cjs.entry.js +4 -4
  5. package/dist/cjs/consent-manager.cjs.entry.js +4 -4
  6. package/dist/cjs/create-feature_4.cjs.entry.js +51 -47
  7. package/dist/cjs/create-related-feature_3.cjs.entry.js +3 -2
  8. package/dist/cjs/crowdsource-manager.cjs.entry.js +4 -5
  9. package/dist/cjs/crowdsource-reporter.cjs.entry.js +5 -4
  10. package/dist/cjs/delete-dialog.cjs.entry.js +2 -2
  11. package/dist/cjs/downloadUtils-fcae8eb1.js +3223 -0
  12. package/dist/cjs/effects-3607d1ba.js +83 -0
  13. package/dist/cjs/feature-list.cjs.entry.js +5 -5
  14. package/dist/cjs/helpers-8d452256.js +867 -0
  15. package/dist/cjs/index.es-3c2404c3.js +11195 -0
  16. package/dist/cjs/instant-apps-app-guide.cjs.entry.js +4 -4
  17. package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +5 -5
  18. package/dist/cjs/instant-apps-control-panel.cjs.entry.js +2 -2
  19. package/dist/cjs/instant-apps-create.cjs.entry.js +4 -4
  20. package/dist/cjs/instant-apps-export-views.cjs.entry.js +4 -4
  21. package/dist/cjs/instant-apps-export.cjs.entry.js +4 -4
  22. package/dist/cjs/instant-apps-filter-list_2.cjs.entry.js +4 -4
  23. package/dist/cjs/instant-apps-header.cjs.entry.js +2 -2
  24. package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +4 -4
  25. package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +4 -4
  26. package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +4 -4
  27. package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +4 -4
  28. package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +6 -6
  29. package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +4 -4
  30. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +6 -6
  31. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +6 -6
  32. package/dist/cjs/instant-apps-measurement-tool.cjs.entry.js +2 -2
  33. package/dist/cjs/instant-apps-measurement.cjs.entry.js +4 -4
  34. package/dist/cjs/instant-apps-popover.cjs.entry.js +4 -4
  35. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +4 -4
  36. package/dist/cjs/instant-apps-sign-in.cjs.entry.js +4 -4
  37. package/dist/cjs/instant-apps-splash.cjs.entry.js +4 -4
  38. package/dist/cjs/instant-apps-time-filter.cjs.entry.js +5 -5
  39. package/dist/cjs/json-editor_7.cjs.entry.js +2 -2
  40. package/dist/cjs/languageSwitcher-19a22439.js +52 -0
  41. package/dist/cjs/languageUtil-a3e1eafd.js +69 -0
  42. package/dist/cjs/loadModules-e9d8977c.js +23 -0
  43. package/dist/cjs/loader.cjs.js +1 -1
  44. package/dist/cjs/locale-1c60be9c.js +160 -0
  45. package/dist/cjs/locale-da41a06f.js +943 -0
  46. package/dist/cjs/map-layer-picker.cjs.entry.js +2 -2
  47. package/dist/cjs/map-select-tools_3.cjs.entry.js +4 -4
  48. package/dist/cjs/popupUtils-87b006a6.js +121 -0
  49. package/dist/cjs/public-notification.cjs.entry.js +4 -4
  50. package/dist/cjs/solution-configuration.cjs.entry.js +2 -2
  51. package/dist/cjs/solution-contents_3.cjs.entry.js +2 -2
  52. package/dist/cjs/solution-item-accordion.cjs.entry.js +2 -2
  53. package/dist/cjs/solutions-components.cjs.js +1 -1
  54. package/dist/cjs/spatial-ref.cjs.entry.js +2 -2
  55. package/dist/cjs/utils-3e512114.js +153 -0
  56. package/dist/collection/assets/t9n/buffer-tools/resources_no.json +6 -0
  57. package/dist/collection/assets/t9n/card-manager/resources_no.json +7 -0
  58. package/dist/collection/assets/t9n/comment-card/resources_no.json +4 -0
  59. package/dist/collection/assets/t9n/consent-manager/resources_no.json +5 -0
  60. package/dist/collection/assets/t9n/create-feature/resources.json +1 -1
  61. package/dist/collection/assets/t9n/create-feature/resources_ar.json +1 -1
  62. package/dist/collection/assets/t9n/create-feature/resources_bg.json +1 -1
  63. package/dist/collection/assets/t9n/create-feature/resources_bs.json +1 -1
  64. package/dist/collection/assets/t9n/create-feature/resources_ca.json +1 -1
  65. package/dist/collection/assets/t9n/create-feature/resources_cs.json +1 -1
  66. package/dist/collection/assets/t9n/create-feature/resources_da.json +1 -1
  67. package/dist/collection/assets/t9n/create-feature/resources_de.json +1 -1
  68. package/dist/collection/assets/t9n/create-feature/resources_el.json +1 -1
  69. package/dist/collection/assets/t9n/create-feature/resources_en.json +1 -1
  70. package/dist/collection/assets/t9n/create-feature/resources_es.json +1 -1
  71. package/dist/collection/assets/t9n/create-feature/resources_et.json +1 -1
  72. package/dist/collection/assets/t9n/create-feature/resources_fi.json +1 -1
  73. package/dist/collection/assets/t9n/create-feature/resources_fr.json +1 -1
  74. package/dist/collection/assets/t9n/create-feature/resources_he.json +1 -1
  75. package/dist/collection/assets/t9n/create-feature/resources_hr.json +1 -1
  76. package/dist/collection/assets/t9n/create-feature/resources_hu.json +1 -1
  77. package/dist/collection/assets/t9n/create-feature/resources_id.json +1 -1
  78. package/dist/collection/assets/t9n/create-feature/resources_it.json +1 -1
  79. package/dist/collection/assets/t9n/create-feature/resources_ja.json +1 -1
  80. package/dist/collection/assets/t9n/create-feature/resources_ko.json +1 -1
  81. package/dist/collection/assets/t9n/create-feature/resources_lt.json +1 -1
  82. package/dist/collection/assets/t9n/create-feature/resources_lv.json +1 -1
  83. package/dist/collection/assets/t9n/create-feature/resources_nb.json +1 -1
  84. package/dist/collection/assets/t9n/create-feature/resources_nl.json +1 -1
  85. package/dist/collection/assets/t9n/create-feature/resources_no.json +5 -0
  86. package/dist/collection/assets/t9n/create-feature/resources_pl.json +1 -1
  87. package/dist/collection/assets/t9n/create-feature/resources_pt-BR.json +1 -1
  88. package/dist/collection/assets/t9n/create-feature/resources_pt-PT.json +1 -1
  89. package/dist/collection/assets/t9n/create-feature/resources_ro.json +1 -1
  90. package/dist/collection/assets/t9n/create-feature/resources_ru.json +1 -1
  91. package/dist/collection/assets/t9n/create-feature/resources_sk.json +1 -1
  92. package/dist/collection/assets/t9n/create-feature/resources_sl.json +1 -1
  93. package/dist/collection/assets/t9n/create-feature/resources_sr.json +1 -1
  94. package/dist/collection/assets/t9n/create-feature/resources_sv.json +1 -1
  95. package/dist/collection/assets/t9n/create-feature/resources_th.json +1 -1
  96. package/dist/collection/assets/t9n/create-feature/resources_tr.json +1 -1
  97. package/dist/collection/assets/t9n/create-feature/resources_uk.json +1 -1
  98. package/dist/collection/assets/t9n/create-feature/resources_vi.json +1 -1
  99. package/dist/collection/assets/t9n/create-feature/resources_zh-CN.json +1 -1
  100. package/dist/collection/assets/t9n/create-feature/resources_zh-HK.json +1 -1
  101. package/dist/collection/assets/t9n/create-feature/resources_zh-TW.json +1 -1
  102. package/dist/collection/assets/t9n/create-related-feature/resources_no.json +3 -0
  103. package/dist/collection/assets/t9n/crowdsource-manager/resources_ar.json +4 -1
  104. package/dist/collection/assets/t9n/crowdsource-manager/resources_bg.json +4 -1
  105. package/dist/collection/assets/t9n/crowdsource-manager/resources_bs.json +4 -1
  106. package/dist/collection/assets/t9n/crowdsource-manager/resources_ca.json +4 -1
  107. package/dist/collection/assets/t9n/crowdsource-manager/resources_cs.json +4 -1
  108. package/dist/collection/assets/t9n/crowdsource-manager/resources_da.json +4 -1
  109. package/dist/collection/assets/t9n/crowdsource-manager/resources_de.json +4 -1
  110. package/dist/collection/assets/t9n/crowdsource-manager/resources_el.json +4 -1
  111. package/dist/collection/assets/t9n/crowdsource-manager/resources_es.json +4 -1
  112. package/dist/collection/assets/t9n/crowdsource-manager/resources_et.json +4 -1
  113. package/dist/collection/assets/t9n/crowdsource-manager/resources_fi.json +4 -1
  114. package/dist/collection/assets/t9n/crowdsource-manager/resources_fr.json +4 -1
  115. package/dist/collection/assets/t9n/crowdsource-manager/resources_he.json +4 -1
  116. package/dist/collection/assets/t9n/crowdsource-manager/resources_hr.json +4 -1
  117. package/dist/collection/assets/t9n/crowdsource-manager/resources_hu.json +4 -1
  118. package/dist/collection/assets/t9n/crowdsource-manager/resources_id.json +4 -1
  119. package/dist/collection/assets/t9n/crowdsource-manager/resources_it.json +4 -1
  120. package/dist/collection/assets/t9n/crowdsource-manager/resources_ja.json +4 -1
  121. package/dist/collection/assets/t9n/crowdsource-manager/resources_ko.json +4 -1
  122. package/dist/collection/assets/t9n/crowdsource-manager/resources_lt.json +4 -1
  123. package/dist/collection/assets/t9n/crowdsource-manager/resources_lv.json +4 -1
  124. package/dist/collection/assets/t9n/crowdsource-manager/resources_nb.json +4 -1
  125. package/dist/collection/assets/t9n/crowdsource-manager/resources_nl.json +4 -1
  126. package/dist/collection/assets/t9n/crowdsource-manager/resources_no.json +15 -0
  127. package/dist/collection/assets/t9n/crowdsource-manager/resources_pl.json +4 -1
  128. package/dist/collection/assets/t9n/crowdsource-manager/resources_pt-BR.json +4 -1
  129. package/dist/collection/assets/t9n/crowdsource-manager/resources_pt-PT.json +4 -1
  130. package/dist/collection/assets/t9n/crowdsource-manager/resources_ro.json +4 -1
  131. package/dist/collection/assets/t9n/crowdsource-manager/resources_ru.json +4 -1
  132. package/dist/collection/assets/t9n/crowdsource-manager/resources_sk.json +4 -1
  133. package/dist/collection/assets/t9n/crowdsource-manager/resources_sl.json +4 -1
  134. package/dist/collection/assets/t9n/crowdsource-manager/resources_sr.json +4 -1
  135. package/dist/collection/assets/t9n/crowdsource-manager/resources_sv.json +4 -1
  136. package/dist/collection/assets/t9n/crowdsource-manager/resources_th.json +4 -1
  137. package/dist/collection/assets/t9n/crowdsource-manager/resources_tr.json +4 -1
  138. package/dist/collection/assets/t9n/crowdsource-manager/resources_uk.json +4 -1
  139. package/dist/collection/assets/t9n/crowdsource-manager/resources_vi.json +4 -1
  140. package/dist/collection/assets/t9n/crowdsource-manager/resources_zh-CN.json +4 -1
  141. package/dist/collection/assets/t9n/crowdsource-manager/resources_zh-HK.json +4 -1
  142. package/dist/collection/assets/t9n/crowdsource-manager/resources_zh-TW.json +4 -1
  143. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ar.json +2 -1
  144. package/dist/collection/assets/t9n/crowdsource-reporter/resources_bg.json +2 -1
  145. package/dist/collection/assets/t9n/crowdsource-reporter/resources_bs.json +2 -1
  146. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ca.json +2 -1
  147. package/dist/collection/assets/t9n/crowdsource-reporter/resources_cs.json +2 -1
  148. package/dist/collection/assets/t9n/crowdsource-reporter/resources_da.json +2 -1
  149. package/dist/collection/assets/t9n/crowdsource-reporter/resources_de.json +2 -1
  150. package/dist/collection/assets/t9n/crowdsource-reporter/resources_el.json +2 -1
  151. package/dist/collection/assets/t9n/crowdsource-reporter/resources_es.json +2 -1
  152. package/dist/collection/assets/t9n/crowdsource-reporter/resources_et.json +2 -1
  153. package/dist/collection/assets/t9n/crowdsource-reporter/resources_fi.json +2 -1
  154. package/dist/collection/assets/t9n/crowdsource-reporter/resources_fr.json +2 -1
  155. package/dist/collection/assets/t9n/crowdsource-reporter/resources_he.json +2 -1
  156. package/dist/collection/assets/t9n/crowdsource-reporter/resources_hr.json +2 -1
  157. package/dist/collection/assets/t9n/crowdsource-reporter/resources_hu.json +2 -1
  158. package/dist/collection/assets/t9n/crowdsource-reporter/resources_id.json +2 -1
  159. package/dist/collection/assets/t9n/crowdsource-reporter/resources_it.json +2 -1
  160. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ja.json +2 -1
  161. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ko.json +2 -1
  162. package/dist/collection/assets/t9n/crowdsource-reporter/resources_lt.json +2 -1
  163. package/dist/collection/assets/t9n/crowdsource-reporter/resources_lv.json +2 -1
  164. package/dist/collection/assets/t9n/crowdsource-reporter/resources_nb.json +2 -1
  165. package/dist/collection/assets/t9n/crowdsource-reporter/resources_nl.json +2 -1
  166. package/dist/collection/assets/t9n/crowdsource-reporter/resources_no.json +32 -0
  167. package/dist/collection/assets/t9n/crowdsource-reporter/resources_pl.json +2 -1
  168. package/dist/collection/assets/t9n/crowdsource-reporter/resources_pt-BR.json +2 -1
  169. package/dist/collection/assets/t9n/crowdsource-reporter/resources_pt-PT.json +2 -1
  170. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ro.json +2 -1
  171. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ru.json +2 -1
  172. package/dist/collection/assets/t9n/crowdsource-reporter/resources_sk.json +2 -1
  173. package/dist/collection/assets/t9n/crowdsource-reporter/resources_sl.json +2 -1
  174. package/dist/collection/assets/t9n/crowdsource-reporter/resources_sr.json +2 -1
  175. package/dist/collection/assets/t9n/crowdsource-reporter/resources_sv.json +2 -1
  176. package/dist/collection/assets/t9n/crowdsource-reporter/resources_th.json +2 -1
  177. package/dist/collection/assets/t9n/crowdsource-reporter/resources_tr.json +2 -1
  178. package/dist/collection/assets/t9n/crowdsource-reporter/resources_uk.json +2 -1
  179. package/dist/collection/assets/t9n/crowdsource-reporter/resources_vi.json +2 -1
  180. package/dist/collection/assets/t9n/crowdsource-reporter/resources_zh-CN.json +2 -1
  181. package/dist/collection/assets/t9n/crowdsource-reporter/resources_zh-HK.json +2 -1
  182. package/dist/collection/assets/t9n/crowdsource-reporter/resources_zh-TW.json +2 -1
  183. package/dist/collection/assets/t9n/delete-button/resources_no.json +8 -0
  184. package/dist/collection/assets/t9n/edit-card/resources_no.json +3 -0
  185. package/dist/collection/assets/t9n/feature-list/resources_no.json +8 -0
  186. package/dist/collection/assets/t9n/info-card/resources_no.json +10 -0
  187. package/dist/collection/assets/t9n/layer-list/resources_no.json +4 -0
  188. package/dist/collection/assets/t9n/layer-table/resources_no.json +22 -0
  189. package/dist/collection/assets/t9n/map-card/resources_no.json +10 -0
  190. package/dist/collection/assets/t9n/map-draw-tools/resources_no.json +5 -0
  191. package/dist/collection/assets/t9n/map-layer-picker/resources_no.json +5 -0
  192. package/dist/collection/assets/t9n/map-picker/resources_no.json +3 -0
  193. package/dist/collection/assets/t9n/map-search/resources_no.json +3 -0
  194. package/dist/collection/assets/t9n/map-select-tools/resources_no.json +16 -0
  195. package/dist/collection/assets/t9n/map-tools/resources_no.json +10 -0
  196. package/dist/collection/assets/t9n/pdf-download/resources_no.json +3 -0
  197. package/dist/collection/assets/t9n/public-notification/resources_no.json +44 -0
  198. package/dist/collection/assets/t9n/refine-selection/resources_no.json +9 -0
  199. package/dist/collection/assets/t9n/solution-item-accordion/resources_ar.json +1 -1
  200. package/dist/collection/assets/t9n/solution-item-accordion/resources_bg.json +1 -1
  201. package/dist/collection/assets/t9n/solution-item-accordion/resources_bs.json +1 -1
  202. package/dist/collection/assets/t9n/solution-item-accordion/resources_ca.json +1 -1
  203. package/dist/collection/assets/t9n/solution-item-accordion/resources_cs.json +1 -1
  204. package/dist/collection/assets/t9n/solution-item-accordion/resources_da.json +1 -1
  205. package/dist/collection/assets/t9n/solution-item-accordion/resources_de.json +1 -1
  206. package/dist/collection/assets/t9n/solution-item-accordion/resources_el.json +1 -1
  207. package/dist/collection/assets/t9n/solution-item-accordion/resources_es.json +1 -1
  208. package/dist/collection/assets/t9n/solution-item-accordion/resources_et.json +1 -1
  209. package/dist/collection/assets/t9n/solution-item-accordion/resources_fi.json +1 -1
  210. package/dist/collection/assets/t9n/solution-item-accordion/resources_fr.json +1 -1
  211. package/dist/collection/assets/t9n/solution-item-accordion/resources_he.json +1 -1
  212. package/dist/collection/assets/t9n/solution-item-accordion/resources_hr.json +1 -1
  213. package/dist/collection/assets/t9n/solution-item-accordion/resources_hu.json +1 -1
  214. package/dist/collection/assets/t9n/solution-item-accordion/resources_id.json +1 -1
  215. package/dist/collection/assets/t9n/solution-item-accordion/resources_it.json +1 -1
  216. package/dist/collection/assets/t9n/solution-item-accordion/resources_ja.json +1 -1
  217. package/dist/collection/assets/t9n/solution-item-accordion/resources_ko.json +1 -1
  218. package/dist/collection/assets/t9n/solution-item-accordion/resources_lt.json +1 -1
  219. package/dist/collection/assets/t9n/solution-item-accordion/resources_lv.json +1 -1
  220. package/dist/collection/assets/t9n/solution-item-accordion/resources_nb.json +1 -1
  221. package/dist/collection/assets/t9n/solution-item-accordion/resources_nl.json +1 -1
  222. package/dist/collection/assets/t9n/solution-item-accordion/resources_no.json +3 -0
  223. package/dist/collection/assets/t9n/solution-item-accordion/resources_pl.json +1 -1
  224. package/dist/collection/assets/t9n/solution-item-accordion/resources_pt-BR.json +1 -1
  225. package/dist/collection/assets/t9n/solution-item-accordion/resources_pt-PT.json +1 -1
  226. package/dist/collection/assets/t9n/solution-item-accordion/resources_ro.json +1 -1
  227. package/dist/collection/assets/t9n/solution-item-accordion/resources_ru.json +1 -1
  228. package/dist/collection/assets/t9n/solution-item-accordion/resources_sk.json +1 -1
  229. package/dist/collection/assets/t9n/solution-item-accordion/resources_sl.json +1 -1
  230. package/dist/collection/assets/t9n/solution-item-accordion/resources_sr.json +1 -1
  231. package/dist/collection/assets/t9n/solution-item-accordion/resources_sv.json +1 -1
  232. package/dist/collection/assets/t9n/solution-item-accordion/resources_th.json +1 -1
  233. package/dist/collection/assets/t9n/solution-item-accordion/resources_tr.json +1 -1
  234. package/dist/collection/assets/t9n/solution-item-accordion/resources_uk.json +1 -1
  235. package/dist/collection/assets/t9n/solution-item-accordion/resources_vi.json +1 -1
  236. package/dist/collection/assets/t9n/solution-item-accordion/resources_zh-CN.json +1 -1
  237. package/dist/collection/assets/t9n/solution-item-accordion/resources_zh-HK.json +1 -1
  238. package/dist/collection/assets/t9n/solution-item-accordion/resources_zh-TW.json +1 -1
  239. package/dist/collection/components/create-feature/create-feature.js +132 -111
  240. package/dist/collection/components/create-related-feature/create-related-feature.js +1 -0
  241. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +2 -3
  242. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +22 -2
  243. package/dist/collection/components/edit-card/edit-card.js +1 -0
  244. package/dist/collection/components/info-card/info-card.js +3 -2
  245. package/dist/collection/components/map-draw-tools/map-draw-tools.js +2 -1
  246. package/dist/collection/vendor/calcite-components/22LZVO5E.js +4 -0
  247. package/dist/collection/vendor/calcite-components/2A6QEASM.js +4 -0
  248. package/dist/collection/vendor/calcite-components/2BGT5TEK.js +4 -0
  249. package/dist/collection/vendor/calcite-components/2CPYXWOG.js +4 -0
  250. package/dist/collection/vendor/calcite-components/2GEBE6K3.js +4 -0
  251. package/dist/collection/vendor/calcite-components/2QA56E26.js +4 -0
  252. package/dist/collection/vendor/calcite-components/2YRZB4NM.js +4 -0
  253. package/dist/collection/vendor/calcite-components/36XHP2FJ.js +4 -0
  254. package/dist/collection/vendor/calcite-components/3COQK7PF.js +4 -0
  255. package/dist/collection/vendor/calcite-components/3DM4HAHW.js +4 -0
  256. package/dist/collection/vendor/calcite-components/3PTTJYHL.js +4 -0
  257. package/dist/collection/vendor/calcite-components/3QHDLMLZ.js +4 -0
  258. package/dist/collection/vendor/calcite-components/3QTJJQOU.js +4 -0
  259. package/dist/collection/vendor/calcite-components/42IFRZST.js +4 -0
  260. package/dist/collection/vendor/calcite-components/43WAE6RK.js +4 -0
  261. package/dist/collection/vendor/calcite-components/4657LRIL.js +4 -0
  262. package/dist/collection/vendor/calcite-components/4D34RBQ3.js +4 -0
  263. package/dist/collection/vendor/calcite-components/4EMDDOBJ.js +4 -0
  264. package/dist/collection/vendor/calcite-components/4IX3YHER.js +4 -0
  265. package/dist/collection/vendor/calcite-components/4JFCCMPV.js +4 -0
  266. package/dist/collection/vendor/calcite-components/4RVJ5ZT4.js +4 -0
  267. package/dist/collection/vendor/calcite-components/53I6TTJJ.js +4 -0
  268. package/dist/collection/vendor/calcite-components/54KMPSZ3.js +4 -0
  269. package/dist/collection/vendor/calcite-components/555IAPRW.js +4 -0
  270. package/dist/collection/vendor/calcite-components/5BBZL5AE.js +4 -0
  271. package/dist/collection/vendor/calcite-components/5G52FOTN.js +4 -0
  272. package/dist/collection/vendor/calcite-components/5GU33MPG.js +4 -0
  273. package/dist/collection/vendor/calcite-components/5SFTADR5.js +4 -0
  274. package/dist/collection/vendor/calcite-components/5WCCH3GL.js +4 -0
  275. package/dist/collection/vendor/calcite-components/662YEAMX.js +4 -0
  276. package/dist/collection/vendor/calcite-components/6FZUWDUT.js +4 -0
  277. package/dist/collection/vendor/calcite-components/6PFLQ26Z.js +4 -0
  278. package/dist/collection/vendor/calcite-components/6PJ43C67.js +4 -0
  279. package/dist/collection/vendor/calcite-components/6TRPZGJP.js +4 -0
  280. package/dist/collection/vendor/calcite-components/6TWWOPNX.js +4 -0
  281. package/dist/collection/vendor/calcite-components/727HQUFD.js +4 -0
  282. package/dist/collection/vendor/calcite-components/74RWJ4QY.js +4 -0
  283. package/dist/collection/vendor/calcite-components/7AMBDXFL.js +4 -0
  284. package/dist/collection/vendor/calcite-components/7BGF2YXV.js +5 -0
  285. package/dist/collection/vendor/calcite-components/7KCRDGKA.js +4 -0
  286. package/dist/collection/vendor/calcite-components/7LREBCFI.js +4 -0
  287. package/dist/collection/vendor/calcite-components/7MTWQHV5.js +4 -0
  288. package/dist/collection/vendor/calcite-components/7NELI6UD.js +4 -0
  289. package/dist/collection/vendor/calcite-components/7PXHM6EH.js +4 -0
  290. package/dist/collection/vendor/calcite-components/7R52MWAP.js +4 -0
  291. package/dist/collection/vendor/calcite-components/A4XKVBOI.js +4 -0
  292. package/dist/collection/vendor/calcite-components/A57QY65K.js +4 -0
  293. package/dist/collection/vendor/calcite-components/A6VQQWXZ.js +4 -0
  294. package/dist/collection/vendor/calcite-components/AIDMQYMU.js +4 -0
  295. package/dist/collection/vendor/calcite-components/ASXEEA2B.js +4 -0
  296. package/dist/collection/vendor/calcite-components/AWSMJMWQ.js +4 -0
  297. package/dist/collection/vendor/calcite-components/AZ54J6HD.js +4 -0
  298. package/dist/collection/vendor/calcite-components/B2ETPGYX.js +4 -0
  299. package/dist/collection/vendor/calcite-components/B2JBOZ4Z.js +4 -0
  300. package/dist/collection/vendor/calcite-components/B4FD6KD7.js +4 -0
  301. package/dist/collection/vendor/calcite-components/B7E6VYNK.js +4 -0
  302. package/dist/collection/vendor/calcite-components/BD6SDCR6.js +4 -0
  303. package/dist/collection/vendor/calcite-components/BFQ3IRQW.js +4 -0
  304. package/dist/collection/vendor/calcite-components/BW2NQ5TQ.js +4 -0
  305. package/dist/collection/vendor/calcite-components/BZOMVSAG.js +4 -0
  306. package/dist/collection/vendor/calcite-components/C3AZYUGU.js +4 -0
  307. package/dist/collection/vendor/calcite-components/CBX7R3DS.js +4 -0
  308. package/dist/collection/vendor/calcite-components/CCXXBM5B.js +4 -0
  309. package/dist/collection/vendor/calcite-components/CG5B4XKZ.js +4 -0
  310. package/dist/collection/vendor/calcite-components/CHGJHDWI.js +4 -0
  311. package/dist/collection/vendor/calcite-components/CNADH63F.js +4 -0
  312. package/dist/collection/vendor/calcite-components/CV3G4HMQ.js +4 -0
  313. package/dist/collection/vendor/calcite-components/CWSVXKFX.js +4 -0
  314. package/dist/collection/vendor/calcite-components/CY5O5AGQ.js +4 -0
  315. package/dist/collection/vendor/calcite-components/D23ZXMLS.js +4 -0
  316. package/dist/collection/vendor/calcite-components/D276FT6Z.js +4 -0
  317. package/dist/collection/vendor/calcite-components/DG2T33QN.js +4 -0
  318. package/dist/collection/vendor/calcite-components/DJQ34CXE.js +4 -0
  319. package/dist/collection/vendor/calcite-components/DJREGHLR.js +6 -0
  320. package/dist/collection/vendor/calcite-components/DMXUBDZW.js +4 -0
  321. package/dist/collection/vendor/calcite-components/DNQY4EKR.js +4 -0
  322. package/dist/collection/vendor/calcite-components/DPFVN4EN.js +4 -0
  323. package/dist/collection/vendor/calcite-components/DRXWIPMI.js +4 -0
  324. package/dist/collection/vendor/calcite-components/DRYFM2IO.js +4 -0
  325. package/dist/collection/vendor/calcite-components/DUL66KKH.js +4 -0
  326. package/dist/collection/vendor/calcite-components/DVC5KGLT.js +4 -0
  327. package/dist/collection/vendor/calcite-components/E6X3KIZL.js +4 -0
  328. package/dist/collection/vendor/calcite-components/EG6UCGFB.js +4 -0
  329. package/dist/collection/vendor/calcite-components/EHAHKKFL.js +4 -0
  330. package/dist/collection/vendor/calcite-components/EIMDRXSI.js +4 -0
  331. package/dist/collection/vendor/calcite-components/EM7TVLTF.js +4 -0
  332. package/dist/collection/vendor/calcite-components/EP7IEI22.js +4 -0
  333. package/dist/collection/vendor/calcite-components/EWJY2L2V.js +4 -0
  334. package/dist/collection/vendor/calcite-components/EYQQPU2W.js +4 -0
  335. package/dist/collection/vendor/calcite-components/FB7CD3CH.js +4 -0
  336. package/dist/collection/vendor/calcite-components/FDBZMO4P.js +4 -0
  337. package/dist/collection/vendor/calcite-components/FFPGVFSC.js +4 -0
  338. package/dist/collection/vendor/calcite-components/FGYULWTE.js +4 -0
  339. package/dist/collection/vendor/calcite-components/FMKUEBDG.js +4 -0
  340. package/dist/collection/vendor/calcite-components/FRM3YXTH.js +4 -0
  341. package/dist/collection/vendor/calcite-components/FW6R63UX.js +4 -0
  342. package/dist/collection/vendor/calcite-components/FXTXVVOM.js +4 -0
  343. package/dist/collection/vendor/calcite-components/FXXGJ3RT.js +4 -0
  344. package/dist/collection/vendor/calcite-components/FYHE5C5Q.js +4 -0
  345. package/dist/collection/vendor/calcite-components/G33CDSRC.js +4 -0
  346. package/dist/collection/vendor/calcite-components/G6XUWYVF.js +4 -0
  347. package/dist/collection/vendor/calcite-components/GCIH5FK5.js +4 -0
  348. package/dist/collection/vendor/calcite-components/GE5Y3RWM.js +4 -0
  349. package/dist/collection/vendor/calcite-components/GEZNDNDH.js +4 -0
  350. package/dist/collection/vendor/calcite-components/GNJWHQYO.js +4 -0
  351. package/dist/collection/vendor/calcite-components/GZ5TMSIR.js +4 -0
  352. package/dist/collection/vendor/calcite-components/GZJIMDTR.js +4 -0
  353. package/dist/collection/vendor/calcite-components/H23GHBD2.js +5 -0
  354. package/dist/collection/vendor/calcite-components/H2SIT2TB.js +4 -0
  355. package/dist/collection/vendor/calcite-components/HC7MYCXC.js +4 -0
  356. package/dist/collection/vendor/calcite-components/HD5QD64Q.js +4 -0
  357. package/dist/collection/vendor/calcite-components/HDELZP2B.js +4 -0
  358. package/dist/collection/vendor/calcite-components/HGDJL4SA.js +4 -0
  359. package/dist/collection/vendor/calcite-components/HHVWJ7MU.js +4 -0
  360. package/dist/collection/vendor/calcite-components/HJYTX5BK.js +4 -0
  361. package/dist/collection/vendor/calcite-components/HMFDWMJH.js +4 -0
  362. package/dist/collection/vendor/calcite-components/HXESYKZM.js +4 -0
  363. package/dist/collection/vendor/calcite-components/I4BAPULM.js +4 -0
  364. package/dist/collection/vendor/calcite-components/I6RIFD3V.js +5 -0
  365. package/dist/collection/vendor/calcite-components/IDZWSTZZ.js +4 -0
  366. package/dist/collection/vendor/calcite-components/IFAY5ZXB.js +4 -0
  367. package/dist/collection/vendor/calcite-components/IO5HOHW4.js +4 -0
  368. package/dist/collection/vendor/calcite-components/ISXEUIFH.js +4 -0
  369. package/dist/collection/vendor/calcite-components/IXUF77L2.js +4 -0
  370. package/dist/collection/vendor/calcite-components/J27B5CWI.js +4 -0
  371. package/dist/collection/vendor/calcite-components/JAKKKROM.js +4 -0
  372. package/dist/collection/vendor/calcite-components/JNDUGIK6.js +4 -0
  373. package/dist/collection/vendor/calcite-components/JNNP4QF3.js +4 -0
  374. package/dist/collection/vendor/calcite-components/JVSUOTAZ.js +4 -0
  375. package/dist/collection/vendor/calcite-components/JWEMBAET.js +4 -0
  376. package/dist/collection/vendor/calcite-components/JWKRGDRV.js +4 -0
  377. package/dist/collection/vendor/calcite-components/JZQ73NRM.js +4 -0
  378. package/dist/collection/vendor/calcite-components/K7OAUX24.js +4 -0
  379. package/dist/collection/vendor/calcite-components/KKM7CKQA.js +4 -0
  380. package/dist/collection/vendor/calcite-components/KMEUFDPK.js +4 -0
  381. package/dist/collection/vendor/calcite-components/KNH6FSL4.js +4 -0
  382. package/dist/collection/vendor/calcite-components/KPMQXN4M.js +4 -0
  383. package/dist/collection/vendor/calcite-components/KWU2E4JE.js +4 -0
  384. package/dist/collection/vendor/calcite-components/L4WAR5X4.js +4 -0
  385. package/dist/collection/vendor/calcite-components/LKJAWTVJ.js +4 -0
  386. package/dist/collection/vendor/calcite-components/LLS4XVIW.js +4 -0
  387. package/dist/collection/vendor/calcite-components/LNECFRUM.js +4 -0
  388. package/dist/collection/vendor/calcite-components/LYQ7FJT2.js +4 -0
  389. package/dist/collection/vendor/calcite-components/M2KTEEUG.js +4 -0
  390. package/dist/collection/vendor/calcite-components/M5OIZS7N.js +28 -0
  391. package/dist/collection/vendor/calcite-components/M64PHLHQ.js +4 -0
  392. package/dist/collection/vendor/calcite-components/MQ3MSMTP.js +4 -0
  393. package/dist/collection/vendor/calcite-components/MTNJMPLV.js +4 -0
  394. package/dist/collection/vendor/calcite-components/MXGPGCYC.js +4 -0
  395. package/dist/collection/vendor/calcite-components/MYNPH67G.js +4 -0
  396. package/dist/collection/vendor/calcite-components/N5OBZLJZ.js +4 -0
  397. package/dist/collection/vendor/calcite-components/NJYFPOKV.js +4 -0
  398. package/dist/collection/vendor/calcite-components/NJZE4A4X.js +4 -0
  399. package/dist/collection/vendor/calcite-components/NSHK3NTJ.js +4 -0
  400. package/dist/collection/vendor/calcite-components/NYER6YT7.js +4 -0
  401. package/dist/collection/vendor/calcite-components/NYZ4ODDA.js +4 -0
  402. package/dist/collection/vendor/calcite-components/O4AAP54K.js +4 -0
  403. package/dist/collection/vendor/calcite-components/OETUMACB.js +4 -0
  404. package/dist/collection/vendor/calcite-components/OFPYZZUF.js +4 -0
  405. package/dist/collection/vendor/calcite-components/OFXV3CF7.js +4 -0
  406. package/dist/collection/vendor/calcite-components/PAJGY3XV.js +4 -0
  407. package/dist/collection/vendor/calcite-components/PENB3O7H.js +4 -0
  408. package/dist/collection/vendor/calcite-components/PNCVHWAE.js +4 -0
  409. package/dist/collection/vendor/calcite-components/PYGWJ6OV.js +4 -0
  410. package/dist/collection/vendor/calcite-components/Q32GNFQO.js +22 -0
  411. package/dist/collection/vendor/calcite-components/Q6HTE6MQ.js +4 -0
  412. package/dist/collection/vendor/calcite-components/QAO6BQAD.js +4 -0
  413. package/dist/collection/vendor/calcite-components/QBMZKO4M.js +4 -0
  414. package/dist/collection/vendor/calcite-components/QCKKEDB2.js +4 -0
  415. package/dist/collection/vendor/calcite-components/QQEBBK2A.js +4 -0
  416. package/dist/collection/vendor/calcite-components/R4J2EZFU.js +4 -0
  417. package/dist/collection/vendor/calcite-components/R5EHQKMO.js +4 -0
  418. package/dist/collection/vendor/calcite-components/R7GOP347.js +4 -0
  419. package/dist/collection/vendor/calcite-components/RBMLFM2L.js +4 -0
  420. package/dist/collection/vendor/calcite-components/RBQ6BI6C.js +4 -0
  421. package/dist/collection/vendor/calcite-components/REF7SAQQ.js +4 -0
  422. package/dist/collection/vendor/calcite-components/REWMVFVL.js +4 -0
  423. package/dist/collection/vendor/calcite-components/RI3WTZXE.js +4 -0
  424. package/dist/collection/vendor/calcite-components/RL7IIXTZ.js +4 -0
  425. package/dist/collection/vendor/calcite-components/RM7LSSHL.js +4 -0
  426. package/dist/collection/vendor/calcite-components/RREZDRNN.js +4 -0
  427. package/dist/collection/vendor/calcite-components/SHERIRO4.js +4 -0
  428. package/dist/collection/vendor/calcite-components/SK7NKNHK.js +4 -0
  429. package/dist/collection/vendor/calcite-components/SODGHLU2.js +4 -0
  430. package/dist/collection/vendor/calcite-components/SP6U5EWI.js +4 -0
  431. package/dist/collection/vendor/calcite-components/SQKZ5EZF.js +4 -0
  432. package/dist/collection/vendor/calcite-components/SX4MCPF2.js +5 -0
  433. package/dist/collection/vendor/calcite-components/TIGHTLQD.js +4 -0
  434. package/dist/collection/vendor/calcite-components/TMKEB7G7.js +4 -0
  435. package/dist/collection/vendor/calcite-components/TURDT3VB.js +4 -0
  436. package/dist/collection/vendor/calcite-components/TX7QHHK5.js +4 -0
  437. package/dist/collection/vendor/calcite-components/TYMOPXYL.js +4 -0
  438. package/dist/collection/vendor/calcite-components/TZECTLA6.js +4 -0
  439. package/dist/collection/vendor/calcite-components/U3RO6UCM.js +4 -0
  440. package/dist/collection/vendor/calcite-components/U5FUMAFV.js +4 -0
  441. package/dist/collection/vendor/calcite-components/UM5EV3V4.js +4 -0
  442. package/dist/collection/vendor/calcite-components/UOX45Z7K.js +4 -0
  443. package/dist/collection/vendor/calcite-components/UXTWTW75.js +4 -0
  444. package/dist/collection/vendor/calcite-components/V5ZZKGAM.js +4 -0
  445. package/dist/collection/vendor/calcite-components/VTA2PRG5.js +4 -0
  446. package/dist/collection/vendor/calcite-components/VY37PIFG.js +4 -0
  447. package/dist/collection/vendor/calcite-components/W25AOEEB.js +4 -0
  448. package/dist/collection/vendor/calcite-components/W3TNJWVO.js +4 -0
  449. package/dist/collection/vendor/calcite-components/WQHOMJR2.js +4 -0
  450. package/dist/collection/vendor/calcite-components/WW65BUEL.js +4 -0
  451. package/dist/collection/vendor/calcite-components/WWZTCRUR.js +4 -0
  452. package/dist/collection/vendor/calcite-components/X6UMFXM3.js +4 -0
  453. package/dist/collection/vendor/calcite-components/XCTRH7IZ.js +4 -0
  454. package/dist/collection/vendor/calcite-components/XJTPF3VE.js +4 -0
  455. package/dist/collection/vendor/calcite-components/XNWWFGXG.js +4 -0
  456. package/dist/collection/vendor/calcite-components/YG6EDHOT.js +4 -0
  457. package/dist/collection/vendor/calcite-components/YHRT6LHF.js +4 -0
  458. package/dist/collection/vendor/calcite-components/YMNIMOT5.js +4 -0
  459. package/dist/collection/vendor/calcite-components/YQDDGBKI.js +4 -0
  460. package/dist/collection/vendor/calcite-components/YYWX5ACS.js +4 -0
  461. package/dist/collection/vendor/calcite-components/Z5J5AV2N.js +4 -0
  462. package/dist/collection/vendor/calcite-components/Z5POWLIV.js +4 -0
  463. package/dist/collection/vendor/calcite-components/ZCF5FXJ6.js +4 -0
  464. package/dist/collection/vendor/calcite-components/ZCPJODER.js +4 -0
  465. package/dist/collection/vendor/calcite-components/ZIIE4X52.js +4 -0
  466. package/dist/collection/vendor/calcite-components/ZQ4RAM3U.js +4 -0
  467. package/dist/collection/vendor/calcite-components/ZXDWFKG4.js +4 -0
  468. package/dist/collection/vendor/calcite-components/assets/icon/hammerCoin16.json +1 -0
  469. package/dist/collection/vendor/calcite-components/assets/icon/hammerCoin24.json +1 -0
  470. package/dist/collection/vendor/calcite-components/assets/icon/hammerCoin32.json +1 -0
  471. package/dist/collection/vendor/calcite-components/assets/icon/hammerLock16.json +1 -0
  472. package/dist/collection/vendor/calcite-components/assets/icon/hammerLock24.json +1 -0
  473. package/dist/collection/vendor/calcite-components/assets/icon/hammerLock32.json +1 -0
  474. package/dist/collection/vendor/calcite-components/calcite.esm.js +2 -2
  475. package/dist/components/create-feature2.js +50 -47
  476. package/dist/components/create-related-feature2.js +1 -0
  477. package/dist/components/crowdsource-manager.js +2 -3
  478. package/dist/components/crowdsource-reporter.js +4 -2
  479. package/dist/components/edit-card2.js +1 -0
  480. package/dist/components/info-card2.js +3 -2
  481. package/dist/components/map-draw-tools2.js +2 -1
  482. package/dist/esm/asyncToGenerator-96b2368d.js +88 -0
  483. package/dist/esm/basemap-gallery_7.entry.js +2 -2
  484. package/dist/esm/buffer-tools_2.entry.js +4 -3
  485. package/dist/esm/card-manager_3.entry.js +4 -4
  486. package/dist/esm/consent-manager.entry.js +4 -4
  487. package/dist/esm/create-feature_4.entry.js +51 -47
  488. package/dist/esm/create-related-feature_3.entry.js +3 -2
  489. package/dist/esm/crowdsource-manager.entry.js +4 -5
  490. package/dist/esm/crowdsource-reporter.entry.js +5 -4
  491. package/dist/esm/delete-dialog.entry.js +2 -2
  492. package/dist/esm/downloadUtils-078cd709.js +3217 -0
  493. package/dist/esm/effects-38bc1195.js +81 -0
  494. package/dist/esm/feature-list.entry.js +5 -5
  495. package/dist/esm/helpers-15d5cd56.js +841 -0
  496. package/dist/esm/index.es-87662946.js +11108 -0
  497. package/dist/esm/instant-apps-app-guide.entry.js +4 -4
  498. package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +5 -5
  499. package/dist/esm/instant-apps-control-panel.entry.js +2 -2
  500. package/dist/esm/instant-apps-create.entry.js +4 -4
  501. package/dist/esm/instant-apps-export-views.entry.js +4 -4
  502. package/dist/esm/instant-apps-export.entry.js +4 -4
  503. package/dist/esm/instant-apps-filter-list_2.entry.js +4 -4
  504. package/dist/esm/instant-apps-header.entry.js +2 -2
  505. package/dist/esm/instant-apps-interactive-legend-classic.entry.js +4 -4
  506. package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +4 -4
  507. package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +4 -4
  508. package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +4 -4
  509. package/dist/esm/instant-apps-interactive-legend.entry.js +6 -6
  510. package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +4 -4
  511. package/dist/esm/instant-apps-language-switcher.entry.js +6 -6
  512. package/dist/esm/instant-apps-language-translator.entry.js +6 -6
  513. package/dist/esm/instant-apps-measurement-tool.entry.js +2 -2
  514. package/dist/esm/instant-apps-measurement.entry.js +4 -4
  515. package/dist/esm/instant-apps-popover.entry.js +4 -4
  516. package/dist/esm/instant-apps-scoreboard.entry.js +4 -4
  517. package/dist/esm/instant-apps-sign-in.entry.js +4 -4
  518. package/dist/esm/instant-apps-splash.entry.js +4 -4
  519. package/dist/esm/instant-apps-time-filter.entry.js +5 -5
  520. package/dist/esm/json-editor_7.entry.js +2 -2
  521. package/dist/esm/languageSwitcher-49bad3f4.js +49 -0
  522. package/dist/esm/languageUtil-2b6e191a.js +66 -0
  523. package/dist/esm/loadModules-947ccfd4.js +21 -0
  524. package/dist/esm/loader.js +1 -1
  525. package/dist/esm/locale-7874c756.js +155 -0
  526. package/dist/esm/locale-e02b0e14.js +938 -0
  527. package/dist/esm/map-layer-picker.entry.js +2 -2
  528. package/dist/esm/map-select-tools_3.entry.js +4 -4
  529. package/dist/esm/popupUtils-6a965512.js +119 -0
  530. package/dist/esm/public-notification.entry.js +4 -4
  531. package/dist/esm/solution-configuration.entry.js +2 -2
  532. package/dist/esm/solution-contents_3.entry.js +2 -2
  533. package/dist/esm/solution-item-accordion.entry.js +2 -2
  534. package/dist/esm/solutions-components.js +1 -1
  535. package/dist/esm/spatial-ref.entry.js +2 -2
  536. package/dist/esm/utils-6fe5b5fa.js +142 -0
  537. package/dist/solutions-components/assets/t9n/buffer-tools/resources_no.json +6 -0
  538. package/dist/solutions-components/assets/t9n/card-manager/resources_no.json +7 -0
  539. package/dist/solutions-components/assets/t9n/comment-card/resources_no.json +4 -0
  540. package/dist/solutions-components/assets/t9n/consent-manager/resources_no.json +5 -0
  541. package/dist/solutions-components/assets/t9n/create-feature/resources.json +1 -1
  542. package/dist/solutions-components/assets/t9n/create-feature/resources_ar.json +1 -1
  543. package/dist/solutions-components/assets/t9n/create-feature/resources_bg.json +1 -1
  544. package/dist/solutions-components/assets/t9n/create-feature/resources_bs.json +1 -1
  545. package/dist/solutions-components/assets/t9n/create-feature/resources_ca.json +1 -1
  546. package/dist/solutions-components/assets/t9n/create-feature/resources_cs.json +1 -1
  547. package/dist/solutions-components/assets/t9n/create-feature/resources_da.json +1 -1
  548. package/dist/solutions-components/assets/t9n/create-feature/resources_de.json +1 -1
  549. package/dist/solutions-components/assets/t9n/create-feature/resources_el.json +1 -1
  550. package/dist/solutions-components/assets/t9n/create-feature/resources_en.json +1 -1
  551. package/dist/solutions-components/assets/t9n/create-feature/resources_es.json +1 -1
  552. package/dist/solutions-components/assets/t9n/create-feature/resources_et.json +1 -1
  553. package/dist/solutions-components/assets/t9n/create-feature/resources_fi.json +1 -1
  554. package/dist/solutions-components/assets/t9n/create-feature/resources_fr.json +1 -1
  555. package/dist/solutions-components/assets/t9n/create-feature/resources_he.json +1 -1
  556. package/dist/solutions-components/assets/t9n/create-feature/resources_hr.json +1 -1
  557. package/dist/solutions-components/assets/t9n/create-feature/resources_hu.json +1 -1
  558. package/dist/solutions-components/assets/t9n/create-feature/resources_id.json +1 -1
  559. package/dist/solutions-components/assets/t9n/create-feature/resources_it.json +1 -1
  560. package/dist/solutions-components/assets/t9n/create-feature/resources_ja.json +1 -1
  561. package/dist/solutions-components/assets/t9n/create-feature/resources_ko.json +1 -1
  562. package/dist/solutions-components/assets/t9n/create-feature/resources_lt.json +1 -1
  563. package/dist/solutions-components/assets/t9n/create-feature/resources_lv.json +1 -1
  564. package/dist/solutions-components/assets/t9n/create-feature/resources_nb.json +1 -1
  565. package/dist/solutions-components/assets/t9n/create-feature/resources_nl.json +1 -1
  566. package/dist/solutions-components/assets/t9n/create-feature/resources_no.json +5 -0
  567. package/dist/solutions-components/assets/t9n/create-feature/resources_pl.json +1 -1
  568. package/dist/solutions-components/assets/t9n/create-feature/resources_pt-BR.json +1 -1
  569. package/dist/solutions-components/assets/t9n/create-feature/resources_pt-PT.json +1 -1
  570. package/dist/solutions-components/assets/t9n/create-feature/resources_ro.json +1 -1
  571. package/dist/solutions-components/assets/t9n/create-feature/resources_ru.json +1 -1
  572. package/dist/solutions-components/assets/t9n/create-feature/resources_sk.json +1 -1
  573. package/dist/solutions-components/assets/t9n/create-feature/resources_sl.json +1 -1
  574. package/dist/solutions-components/assets/t9n/create-feature/resources_sr.json +1 -1
  575. package/dist/solutions-components/assets/t9n/create-feature/resources_sv.json +1 -1
  576. package/dist/solutions-components/assets/t9n/create-feature/resources_th.json +1 -1
  577. package/dist/solutions-components/assets/t9n/create-feature/resources_tr.json +1 -1
  578. package/dist/solutions-components/assets/t9n/create-feature/resources_uk.json +1 -1
  579. package/dist/solutions-components/assets/t9n/create-feature/resources_vi.json +1 -1
  580. package/dist/solutions-components/assets/t9n/create-feature/resources_zh-CN.json +1 -1
  581. package/dist/solutions-components/assets/t9n/create-feature/resources_zh-HK.json +1 -1
  582. package/dist/solutions-components/assets/t9n/create-feature/resources_zh-TW.json +1 -1
  583. package/dist/solutions-components/assets/t9n/create-related-feature/resources_no.json +3 -0
  584. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_ar.json +4 -1
  585. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_bg.json +4 -1
  586. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_bs.json +4 -1
  587. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_ca.json +4 -1
  588. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_cs.json +4 -1
  589. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_da.json +4 -1
  590. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_de.json +4 -1
  591. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_el.json +4 -1
  592. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_es.json +4 -1
  593. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_et.json +4 -1
  594. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_fi.json +4 -1
  595. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_fr.json +4 -1
  596. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_he.json +4 -1
  597. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_hr.json +4 -1
  598. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_hu.json +4 -1
  599. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_id.json +4 -1
  600. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_it.json +4 -1
  601. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_ja.json +4 -1
  602. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_ko.json +4 -1
  603. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_lt.json +4 -1
  604. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_lv.json +4 -1
  605. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_nb.json +4 -1
  606. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_nl.json +4 -1
  607. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_no.json +15 -0
  608. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_pl.json +4 -1
  609. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_pt-BR.json +4 -1
  610. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_pt-PT.json +4 -1
  611. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_ro.json +4 -1
  612. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_ru.json +4 -1
  613. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_sk.json +4 -1
  614. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_sl.json +4 -1
  615. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_sr.json +4 -1
  616. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_sv.json +4 -1
  617. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_th.json +4 -1
  618. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_tr.json +4 -1
  619. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_uk.json +4 -1
  620. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_vi.json +4 -1
  621. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_zh-CN.json +4 -1
  622. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_zh-HK.json +4 -1
  623. package/dist/solutions-components/assets/t9n/crowdsource-manager/resources_zh-TW.json +4 -1
  624. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ar.json +2 -1
  625. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_bg.json +2 -1
  626. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_bs.json +2 -1
  627. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ca.json +2 -1
  628. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_cs.json +2 -1
  629. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_da.json +2 -1
  630. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_de.json +2 -1
  631. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_el.json +2 -1
  632. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_es.json +2 -1
  633. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_et.json +2 -1
  634. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_fi.json +2 -1
  635. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_fr.json +2 -1
  636. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_he.json +2 -1
  637. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_hr.json +2 -1
  638. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_hu.json +2 -1
  639. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_id.json +2 -1
  640. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_it.json +2 -1
  641. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ja.json +2 -1
  642. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ko.json +2 -1
  643. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_lt.json +2 -1
  644. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_lv.json +2 -1
  645. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_nb.json +2 -1
  646. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_nl.json +2 -1
  647. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_no.json +32 -0
  648. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_pl.json +2 -1
  649. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_pt-BR.json +2 -1
  650. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_pt-PT.json +2 -1
  651. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ro.json +2 -1
  652. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ru.json +2 -1
  653. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sk.json +2 -1
  654. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sl.json +2 -1
  655. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sr.json +2 -1
  656. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sv.json +2 -1
  657. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_th.json +2 -1
  658. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_tr.json +2 -1
  659. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_uk.json +2 -1
  660. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_vi.json +2 -1
  661. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_zh-CN.json +2 -1
  662. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_zh-HK.json +2 -1
  663. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_zh-TW.json +2 -1
  664. package/dist/solutions-components/assets/t9n/delete-button/resources_no.json +8 -0
  665. package/dist/solutions-components/assets/t9n/edit-card/resources_no.json +3 -0
  666. package/dist/solutions-components/assets/t9n/feature-list/resources_no.json +8 -0
  667. package/dist/solutions-components/assets/t9n/info-card/resources_no.json +10 -0
  668. package/dist/solutions-components/assets/t9n/layer-list/resources_no.json +4 -0
  669. package/dist/solutions-components/assets/t9n/layer-table/resources_no.json +22 -0
  670. package/dist/solutions-components/assets/t9n/map-card/resources_no.json +10 -0
  671. package/dist/solutions-components/assets/t9n/map-draw-tools/resources_no.json +5 -0
  672. package/dist/solutions-components/assets/t9n/map-layer-picker/resources_no.json +5 -0
  673. package/dist/solutions-components/assets/t9n/map-picker/resources_no.json +3 -0
  674. package/dist/solutions-components/assets/t9n/map-search/resources_no.json +3 -0
  675. package/dist/solutions-components/assets/t9n/map-select-tools/resources_no.json +16 -0
  676. package/dist/solutions-components/assets/t9n/map-tools/resources_no.json +10 -0
  677. package/dist/solutions-components/assets/t9n/pdf-download/resources_no.json +3 -0
  678. package/dist/solutions-components/assets/t9n/public-notification/resources_no.json +44 -0
  679. package/dist/solutions-components/assets/t9n/refine-selection/resources_no.json +9 -0
  680. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_ar.json +1 -1
  681. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_bg.json +1 -1
  682. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_bs.json +1 -1
  683. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_ca.json +1 -1
  684. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_cs.json +1 -1
  685. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_da.json +1 -1
  686. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_de.json +1 -1
  687. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_el.json +1 -1
  688. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_es.json +1 -1
  689. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_et.json +1 -1
  690. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_fi.json +1 -1
  691. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_fr.json +1 -1
  692. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_he.json +1 -1
  693. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_hr.json +1 -1
  694. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_hu.json +1 -1
  695. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_id.json +1 -1
  696. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_it.json +1 -1
  697. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_ja.json +1 -1
  698. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_ko.json +1 -1
  699. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_lt.json +1 -1
  700. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_lv.json +1 -1
  701. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_nb.json +1 -1
  702. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_nl.json +1 -1
  703. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_no.json +3 -0
  704. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_pl.json +1 -1
  705. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_pt-BR.json +1 -1
  706. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_pt-PT.json +1 -1
  707. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_ro.json +1 -1
  708. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_ru.json +1 -1
  709. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_sk.json +1 -1
  710. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_sl.json +1 -1
  711. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_sr.json +1 -1
  712. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_sv.json +1 -1
  713. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_th.json +1 -1
  714. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_tr.json +1 -1
  715. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_uk.json +1 -1
  716. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_vi.json +1 -1
  717. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_zh-CN.json +1 -1
  718. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_zh-HK.json +1 -1
  719. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_zh-TW.json +1 -1
  720. package/dist/solutions-components/p-00ec642f.entry.js +6 -0
  721. package/dist/solutions-components/p-02c4e6fc.entry.js +6 -0
  722. package/dist/solutions-components/p-0326f1f4.entry.js +21 -0
  723. package/dist/solutions-components/p-08ad0b7a.js +6 -0
  724. package/dist/solutions-components/p-174fa218.js +6 -0
  725. package/dist/solutions-components/p-1e1dfef6.js +6 -0
  726. package/dist/solutions-components/p-244316dd.entry.js +6 -0
  727. package/dist/solutions-components/p-2884ca49.js +6 -0
  728. package/dist/solutions-components/p-3ce5c7fd.entry.js +6 -0
  729. package/dist/solutions-components/p-404cbf48.js +36 -0
  730. package/dist/solutions-components/p-41a3b49a.entry.js +6 -0
  731. package/dist/solutions-components/p-443168f0.entry.js +6 -0
  732. package/dist/solutions-components/p-4ced7b11.entry.js +6 -0
  733. package/dist/solutions-components/p-4d5dd39e.entry.js +6 -0
  734. package/dist/solutions-components/p-4e7514a3.entry.js +6 -0
  735. package/dist/solutions-components/p-4f7fb338.entry.js +6 -0
  736. package/dist/solutions-components/p-5786b9da.entry.js +6 -0
  737. package/dist/solutions-components/p-5a202f3f.entry.js +6 -0
  738. package/dist/solutions-components/p-65105504.entry.js +6 -0
  739. package/dist/solutions-components/p-698656b8.entry.js +6 -0
  740. package/dist/solutions-components/p-72d04c7a.entry.js +11 -0
  741. package/dist/solutions-components/p-832707fd.entry.js +6 -0
  742. package/dist/solutions-components/p-837e0939.entry.js +21 -0
  743. package/dist/solutions-components/p-84bb6925.js +6 -0
  744. package/dist/solutions-components/p-8859b622.entry.js +6 -0
  745. package/dist/solutions-components/p-89fbc318.js +6 -0
  746. package/dist/solutions-components/p-8a010f9e.entry.js +6 -0
  747. package/dist/solutions-components/p-8dd677dd.entry.js +6 -0
  748. package/dist/solutions-components/p-9927342d.entry.js +6 -0
  749. package/dist/solutions-components/p-a277d08c.entry.js +6 -0
  750. package/dist/solutions-components/p-a5eaf7fe.entry.js +6 -0
  751. package/dist/solutions-components/p-a6e763aa.entry.js +6 -0
  752. package/dist/solutions-components/p-aad84d69.entry.js +6 -0
  753. package/dist/solutions-components/p-ac122d9e.js +6 -0
  754. package/dist/solutions-components/p-b394f504.entry.js +6 -0
  755. package/dist/solutions-components/p-ba4e219a.entry.js +6 -0
  756. package/dist/solutions-components/p-bf04c6f4.js +21 -0
  757. package/dist/solutions-components/p-c6c697e5.entry.js +6 -0
  758. package/dist/solutions-components/p-d324196d.entry.js +6 -0
  759. package/dist/solutions-components/p-d65f8b73.js +6 -0
  760. package/dist/solutions-components/p-db3391b9.js +488 -0
  761. package/dist/solutions-components/p-dc188d13.js +61 -0
  762. package/dist/solutions-components/p-de42e8b2.entry.js +6 -0
  763. package/dist/solutions-components/p-ea566af0.entry.js +6 -0
  764. package/dist/solutions-components/p-eb3c867f.entry.js +6 -0
  765. package/dist/solutions-components/p-ec867c21.entry.js +6 -0
  766. package/dist/solutions-components/p-ed1ecb5b.entry.js +6 -0
  767. package/dist/solutions-components/p-ee3bb943.entry.js +6 -0
  768. package/dist/solutions-components/p-f165921f.entry.js +6 -0
  769. package/dist/solutions-components/p-f75786a8.entry.js +6 -0
  770. package/dist/solutions-components/p-f956c598.entry.js +6 -0
  771. package/dist/solutions-components/p-fa663804.entry.js +6 -0
  772. package/dist/solutions-components/p-ff317687.entry.js +6 -0
  773. package/dist/solutions-components/solutions-components.esm.js +1 -1
  774. package/dist/solutions-components/vendor/calcite-components/22LZVO5E.js +4 -0
  775. package/dist/solutions-components/vendor/calcite-components/2A6QEASM.js +4 -0
  776. package/dist/solutions-components/vendor/calcite-components/2BGT5TEK.js +4 -0
  777. package/dist/solutions-components/vendor/calcite-components/2CPYXWOG.js +4 -0
  778. package/dist/solutions-components/vendor/calcite-components/2GEBE6K3.js +4 -0
  779. package/dist/solutions-components/vendor/calcite-components/2QA56E26.js +4 -0
  780. package/dist/solutions-components/vendor/calcite-components/2YRZB4NM.js +4 -0
  781. package/dist/solutions-components/vendor/calcite-components/36XHP2FJ.js +4 -0
  782. package/dist/solutions-components/vendor/calcite-components/3COQK7PF.js +4 -0
  783. package/dist/solutions-components/vendor/calcite-components/3DM4HAHW.js +4 -0
  784. package/dist/solutions-components/vendor/calcite-components/3PTTJYHL.js +4 -0
  785. package/dist/solutions-components/vendor/calcite-components/3QHDLMLZ.js +4 -0
  786. package/dist/solutions-components/vendor/calcite-components/3QTJJQOU.js +4 -0
  787. package/dist/solutions-components/vendor/calcite-components/42IFRZST.js +4 -0
  788. package/dist/solutions-components/vendor/calcite-components/43WAE6RK.js +4 -0
  789. package/dist/solutions-components/vendor/calcite-components/4657LRIL.js +4 -0
  790. package/dist/solutions-components/vendor/calcite-components/4D34RBQ3.js +4 -0
  791. package/dist/solutions-components/vendor/calcite-components/4EMDDOBJ.js +4 -0
  792. package/dist/solutions-components/vendor/calcite-components/4IX3YHER.js +4 -0
  793. package/dist/solutions-components/vendor/calcite-components/4JFCCMPV.js +4 -0
  794. package/dist/solutions-components/vendor/calcite-components/4RVJ5ZT4.js +4 -0
  795. package/dist/solutions-components/vendor/calcite-components/53I6TTJJ.js +4 -0
  796. package/dist/solutions-components/vendor/calcite-components/54KMPSZ3.js +4 -0
  797. package/dist/solutions-components/vendor/calcite-components/555IAPRW.js +4 -0
  798. package/dist/solutions-components/vendor/calcite-components/5BBZL5AE.js +4 -0
  799. package/dist/solutions-components/vendor/calcite-components/5G52FOTN.js +4 -0
  800. package/dist/solutions-components/vendor/calcite-components/5GU33MPG.js +4 -0
  801. package/dist/solutions-components/vendor/calcite-components/5SFTADR5.js +4 -0
  802. package/dist/solutions-components/vendor/calcite-components/5WCCH3GL.js +4 -0
  803. package/dist/solutions-components/vendor/calcite-components/662YEAMX.js +4 -0
  804. package/dist/solutions-components/vendor/calcite-components/6FZUWDUT.js +4 -0
  805. package/dist/solutions-components/vendor/calcite-components/6PFLQ26Z.js +4 -0
  806. package/dist/solutions-components/vendor/calcite-components/6PJ43C67.js +4 -0
  807. package/dist/solutions-components/vendor/calcite-components/6TRPZGJP.js +4 -0
  808. package/dist/solutions-components/vendor/calcite-components/6TWWOPNX.js +4 -0
  809. package/dist/solutions-components/vendor/calcite-components/727HQUFD.js +4 -0
  810. package/dist/solutions-components/vendor/calcite-components/74RWJ4QY.js +4 -0
  811. package/dist/solutions-components/vendor/calcite-components/7AMBDXFL.js +4 -0
  812. package/dist/solutions-components/vendor/calcite-components/7BGF2YXV.js +5 -0
  813. package/dist/solutions-components/vendor/calcite-components/7KCRDGKA.js +4 -0
  814. package/dist/solutions-components/vendor/calcite-components/7LREBCFI.js +4 -0
  815. package/dist/solutions-components/vendor/calcite-components/7MTWQHV5.js +4 -0
  816. package/dist/solutions-components/vendor/calcite-components/7NELI6UD.js +4 -0
  817. package/dist/solutions-components/vendor/calcite-components/7PXHM6EH.js +4 -0
  818. package/dist/solutions-components/vendor/calcite-components/7R52MWAP.js +4 -0
  819. package/dist/solutions-components/vendor/calcite-components/A4XKVBOI.js +4 -0
  820. package/dist/solutions-components/vendor/calcite-components/A57QY65K.js +4 -0
  821. package/dist/solutions-components/vendor/calcite-components/A6VQQWXZ.js +4 -0
  822. package/dist/solutions-components/vendor/calcite-components/AIDMQYMU.js +4 -0
  823. package/dist/solutions-components/vendor/calcite-components/ASXEEA2B.js +4 -0
  824. package/dist/solutions-components/vendor/calcite-components/AWSMJMWQ.js +4 -0
  825. package/dist/solutions-components/vendor/calcite-components/AZ54J6HD.js +4 -0
  826. package/dist/solutions-components/vendor/calcite-components/B2ETPGYX.js +4 -0
  827. package/dist/solutions-components/vendor/calcite-components/B2JBOZ4Z.js +4 -0
  828. package/dist/solutions-components/vendor/calcite-components/B4FD6KD7.js +4 -0
  829. package/dist/solutions-components/vendor/calcite-components/B7E6VYNK.js +4 -0
  830. package/dist/solutions-components/vendor/calcite-components/BD6SDCR6.js +4 -0
  831. package/dist/solutions-components/vendor/calcite-components/BFQ3IRQW.js +4 -0
  832. package/dist/solutions-components/vendor/calcite-components/BW2NQ5TQ.js +4 -0
  833. package/dist/solutions-components/vendor/calcite-components/BZOMVSAG.js +4 -0
  834. package/dist/solutions-components/vendor/calcite-components/C3AZYUGU.js +4 -0
  835. package/dist/solutions-components/vendor/calcite-components/CBX7R3DS.js +4 -0
  836. package/dist/solutions-components/vendor/calcite-components/CCXXBM5B.js +4 -0
  837. package/dist/solutions-components/vendor/calcite-components/CG5B4XKZ.js +4 -0
  838. package/dist/solutions-components/vendor/calcite-components/CHGJHDWI.js +4 -0
  839. package/dist/solutions-components/vendor/calcite-components/CNADH63F.js +4 -0
  840. package/dist/solutions-components/vendor/calcite-components/CV3G4HMQ.js +4 -0
  841. package/dist/solutions-components/vendor/calcite-components/CWSVXKFX.js +4 -0
  842. package/dist/solutions-components/vendor/calcite-components/CY5O5AGQ.js +4 -0
  843. package/dist/solutions-components/vendor/calcite-components/D23ZXMLS.js +4 -0
  844. package/dist/solutions-components/vendor/calcite-components/D276FT6Z.js +4 -0
  845. package/dist/solutions-components/vendor/calcite-components/DG2T33QN.js +4 -0
  846. package/dist/solutions-components/vendor/calcite-components/DJQ34CXE.js +4 -0
  847. package/dist/solutions-components/vendor/calcite-components/DJREGHLR.js +6 -0
  848. package/dist/solutions-components/vendor/calcite-components/DMXUBDZW.js +4 -0
  849. package/dist/solutions-components/vendor/calcite-components/DNQY4EKR.js +4 -0
  850. package/dist/solutions-components/vendor/calcite-components/DPFVN4EN.js +4 -0
  851. package/dist/solutions-components/vendor/calcite-components/DRXWIPMI.js +4 -0
  852. package/dist/solutions-components/vendor/calcite-components/DRYFM2IO.js +4 -0
  853. package/dist/solutions-components/vendor/calcite-components/DUL66KKH.js +4 -0
  854. package/dist/solutions-components/vendor/calcite-components/DVC5KGLT.js +4 -0
  855. package/dist/solutions-components/vendor/calcite-components/E6X3KIZL.js +4 -0
  856. package/dist/solutions-components/vendor/calcite-components/EG6UCGFB.js +4 -0
  857. package/dist/solutions-components/vendor/calcite-components/EHAHKKFL.js +4 -0
  858. package/dist/solutions-components/vendor/calcite-components/EIMDRXSI.js +4 -0
  859. package/dist/solutions-components/vendor/calcite-components/EM7TVLTF.js +4 -0
  860. package/dist/solutions-components/vendor/calcite-components/EP7IEI22.js +4 -0
  861. package/dist/solutions-components/vendor/calcite-components/EWJY2L2V.js +4 -0
  862. package/dist/solutions-components/vendor/calcite-components/EYQQPU2W.js +4 -0
  863. package/dist/solutions-components/vendor/calcite-components/FB7CD3CH.js +4 -0
  864. package/dist/solutions-components/vendor/calcite-components/FDBZMO4P.js +4 -0
  865. package/dist/solutions-components/vendor/calcite-components/FFPGVFSC.js +4 -0
  866. package/dist/solutions-components/vendor/calcite-components/FGYULWTE.js +4 -0
  867. package/dist/solutions-components/vendor/calcite-components/FMKUEBDG.js +4 -0
  868. package/dist/solutions-components/vendor/calcite-components/FRM3YXTH.js +4 -0
  869. package/dist/solutions-components/vendor/calcite-components/FW6R63UX.js +4 -0
  870. package/dist/solutions-components/vendor/calcite-components/FXTXVVOM.js +4 -0
  871. package/dist/solutions-components/vendor/calcite-components/FXXGJ3RT.js +4 -0
  872. package/dist/solutions-components/vendor/calcite-components/FYHE5C5Q.js +4 -0
  873. package/dist/solutions-components/vendor/calcite-components/G33CDSRC.js +4 -0
  874. package/dist/solutions-components/vendor/calcite-components/G6XUWYVF.js +4 -0
  875. package/dist/solutions-components/vendor/calcite-components/GCIH5FK5.js +4 -0
  876. package/dist/solutions-components/vendor/calcite-components/GE5Y3RWM.js +4 -0
  877. package/dist/solutions-components/vendor/calcite-components/GEZNDNDH.js +4 -0
  878. package/dist/solutions-components/vendor/calcite-components/GNJWHQYO.js +4 -0
  879. package/dist/solutions-components/vendor/calcite-components/GZ5TMSIR.js +4 -0
  880. package/dist/solutions-components/vendor/calcite-components/GZJIMDTR.js +4 -0
  881. package/dist/solutions-components/vendor/calcite-components/H23GHBD2.js +5 -0
  882. package/dist/solutions-components/vendor/calcite-components/H2SIT2TB.js +4 -0
  883. package/dist/solutions-components/vendor/calcite-components/HC7MYCXC.js +4 -0
  884. package/dist/solutions-components/vendor/calcite-components/HD5QD64Q.js +4 -0
  885. package/dist/solutions-components/vendor/calcite-components/HDELZP2B.js +4 -0
  886. package/dist/solutions-components/vendor/calcite-components/HGDJL4SA.js +4 -0
  887. package/dist/solutions-components/vendor/calcite-components/HHVWJ7MU.js +4 -0
  888. package/dist/solutions-components/vendor/calcite-components/HJYTX5BK.js +4 -0
  889. package/dist/solutions-components/vendor/calcite-components/HMFDWMJH.js +4 -0
  890. package/dist/solutions-components/vendor/calcite-components/HXESYKZM.js +4 -0
  891. package/dist/solutions-components/vendor/calcite-components/I4BAPULM.js +4 -0
  892. package/dist/solutions-components/vendor/calcite-components/I6RIFD3V.js +5 -0
  893. package/dist/solutions-components/vendor/calcite-components/IDZWSTZZ.js +4 -0
  894. package/dist/solutions-components/vendor/calcite-components/IFAY5ZXB.js +4 -0
  895. package/dist/solutions-components/vendor/calcite-components/IO5HOHW4.js +4 -0
  896. package/dist/solutions-components/vendor/calcite-components/ISXEUIFH.js +4 -0
  897. package/dist/solutions-components/vendor/calcite-components/IXUF77L2.js +4 -0
  898. package/dist/solutions-components/vendor/calcite-components/J27B5CWI.js +4 -0
  899. package/dist/solutions-components/vendor/calcite-components/JAKKKROM.js +4 -0
  900. package/dist/solutions-components/vendor/calcite-components/JNDUGIK6.js +4 -0
  901. package/dist/solutions-components/vendor/calcite-components/JNNP4QF3.js +4 -0
  902. package/dist/solutions-components/vendor/calcite-components/JVSUOTAZ.js +4 -0
  903. package/dist/solutions-components/vendor/calcite-components/JWEMBAET.js +4 -0
  904. package/dist/solutions-components/vendor/calcite-components/JWKRGDRV.js +4 -0
  905. package/dist/solutions-components/vendor/calcite-components/JZQ73NRM.js +4 -0
  906. package/dist/solutions-components/vendor/calcite-components/K7OAUX24.js +4 -0
  907. package/dist/solutions-components/vendor/calcite-components/KKM7CKQA.js +4 -0
  908. package/dist/solutions-components/vendor/calcite-components/KMEUFDPK.js +4 -0
  909. package/dist/solutions-components/vendor/calcite-components/KNH6FSL4.js +4 -0
  910. package/dist/solutions-components/vendor/calcite-components/KPMQXN4M.js +4 -0
  911. package/dist/solutions-components/vendor/calcite-components/KWU2E4JE.js +4 -0
  912. package/dist/solutions-components/vendor/calcite-components/L4WAR5X4.js +4 -0
  913. package/dist/solutions-components/vendor/calcite-components/LKJAWTVJ.js +4 -0
  914. package/dist/solutions-components/vendor/calcite-components/LLS4XVIW.js +4 -0
  915. package/dist/solutions-components/vendor/calcite-components/LNECFRUM.js +4 -0
  916. package/dist/solutions-components/vendor/calcite-components/LYQ7FJT2.js +4 -0
  917. package/dist/solutions-components/vendor/calcite-components/M2KTEEUG.js +4 -0
  918. package/dist/solutions-components/vendor/calcite-components/M5OIZS7N.js +28 -0
  919. package/dist/solutions-components/vendor/calcite-components/M64PHLHQ.js +4 -0
  920. package/dist/solutions-components/vendor/calcite-components/MQ3MSMTP.js +4 -0
  921. package/dist/solutions-components/vendor/calcite-components/MTNJMPLV.js +4 -0
  922. package/dist/solutions-components/vendor/calcite-components/MXGPGCYC.js +4 -0
  923. package/dist/solutions-components/vendor/calcite-components/MYNPH67G.js +4 -0
  924. package/dist/solutions-components/vendor/calcite-components/N5OBZLJZ.js +4 -0
  925. package/dist/solutions-components/vendor/calcite-components/NJYFPOKV.js +4 -0
  926. package/dist/solutions-components/vendor/calcite-components/NJZE4A4X.js +4 -0
  927. package/dist/solutions-components/vendor/calcite-components/NSHK3NTJ.js +4 -0
  928. package/dist/solutions-components/vendor/calcite-components/NYER6YT7.js +4 -0
  929. package/dist/solutions-components/vendor/calcite-components/NYZ4ODDA.js +4 -0
  930. package/dist/solutions-components/vendor/calcite-components/O4AAP54K.js +4 -0
  931. package/dist/solutions-components/vendor/calcite-components/OETUMACB.js +4 -0
  932. package/dist/solutions-components/vendor/calcite-components/OFPYZZUF.js +4 -0
  933. package/dist/solutions-components/vendor/calcite-components/OFXV3CF7.js +4 -0
  934. package/dist/solutions-components/vendor/calcite-components/PAJGY3XV.js +4 -0
  935. package/dist/solutions-components/vendor/calcite-components/PENB3O7H.js +4 -0
  936. package/dist/solutions-components/vendor/calcite-components/PNCVHWAE.js +4 -0
  937. package/dist/solutions-components/vendor/calcite-components/PYGWJ6OV.js +4 -0
  938. package/dist/solutions-components/vendor/calcite-components/Q32GNFQO.js +22 -0
  939. package/dist/solutions-components/vendor/calcite-components/Q6HTE6MQ.js +4 -0
  940. package/dist/solutions-components/vendor/calcite-components/QAO6BQAD.js +4 -0
  941. package/dist/solutions-components/vendor/calcite-components/QBMZKO4M.js +4 -0
  942. package/dist/solutions-components/vendor/calcite-components/QCKKEDB2.js +4 -0
  943. package/dist/solutions-components/vendor/calcite-components/QQEBBK2A.js +4 -0
  944. package/dist/solutions-components/vendor/calcite-components/R4J2EZFU.js +4 -0
  945. package/dist/solutions-components/vendor/calcite-components/R5EHQKMO.js +4 -0
  946. package/dist/solutions-components/vendor/calcite-components/R7GOP347.js +4 -0
  947. package/dist/solutions-components/vendor/calcite-components/RBMLFM2L.js +4 -0
  948. package/dist/solutions-components/vendor/calcite-components/RBQ6BI6C.js +4 -0
  949. package/dist/solutions-components/vendor/calcite-components/REF7SAQQ.js +4 -0
  950. package/dist/solutions-components/vendor/calcite-components/REWMVFVL.js +4 -0
  951. package/dist/solutions-components/vendor/calcite-components/RI3WTZXE.js +4 -0
  952. package/dist/solutions-components/vendor/calcite-components/RL7IIXTZ.js +4 -0
  953. package/dist/solutions-components/vendor/calcite-components/RM7LSSHL.js +4 -0
  954. package/dist/solutions-components/vendor/calcite-components/RREZDRNN.js +4 -0
  955. package/dist/solutions-components/vendor/calcite-components/SHERIRO4.js +4 -0
  956. package/dist/solutions-components/vendor/calcite-components/SK7NKNHK.js +4 -0
  957. package/dist/solutions-components/vendor/calcite-components/SODGHLU2.js +4 -0
  958. package/dist/solutions-components/vendor/calcite-components/SP6U5EWI.js +4 -0
  959. package/dist/solutions-components/vendor/calcite-components/SQKZ5EZF.js +4 -0
  960. package/dist/solutions-components/vendor/calcite-components/SX4MCPF2.js +5 -0
  961. package/dist/solutions-components/vendor/calcite-components/TIGHTLQD.js +4 -0
  962. package/dist/solutions-components/vendor/calcite-components/TMKEB7G7.js +4 -0
  963. package/dist/solutions-components/vendor/calcite-components/TURDT3VB.js +4 -0
  964. package/dist/solutions-components/vendor/calcite-components/TX7QHHK5.js +4 -0
  965. package/dist/solutions-components/vendor/calcite-components/TYMOPXYL.js +4 -0
  966. package/dist/solutions-components/vendor/calcite-components/TZECTLA6.js +4 -0
  967. package/dist/solutions-components/vendor/calcite-components/U3RO6UCM.js +4 -0
  968. package/dist/solutions-components/vendor/calcite-components/U5FUMAFV.js +4 -0
  969. package/dist/solutions-components/vendor/calcite-components/UM5EV3V4.js +4 -0
  970. package/dist/solutions-components/vendor/calcite-components/UOX45Z7K.js +4 -0
  971. package/dist/solutions-components/vendor/calcite-components/UXTWTW75.js +4 -0
  972. package/dist/solutions-components/vendor/calcite-components/V5ZZKGAM.js +4 -0
  973. package/dist/solutions-components/vendor/calcite-components/VTA2PRG5.js +4 -0
  974. package/dist/solutions-components/vendor/calcite-components/VY37PIFG.js +4 -0
  975. package/dist/solutions-components/vendor/calcite-components/W25AOEEB.js +4 -0
  976. package/dist/solutions-components/vendor/calcite-components/W3TNJWVO.js +4 -0
  977. package/dist/solutions-components/vendor/calcite-components/WQHOMJR2.js +4 -0
  978. package/dist/solutions-components/vendor/calcite-components/WW65BUEL.js +4 -0
  979. package/dist/solutions-components/vendor/calcite-components/WWZTCRUR.js +4 -0
  980. package/dist/solutions-components/vendor/calcite-components/X6UMFXM3.js +4 -0
  981. package/dist/solutions-components/vendor/calcite-components/XCTRH7IZ.js +4 -0
  982. package/dist/solutions-components/vendor/calcite-components/XJTPF3VE.js +4 -0
  983. package/dist/solutions-components/vendor/calcite-components/XNWWFGXG.js +4 -0
  984. package/dist/solutions-components/vendor/calcite-components/YG6EDHOT.js +4 -0
  985. package/dist/solutions-components/vendor/calcite-components/YHRT6LHF.js +4 -0
  986. package/dist/solutions-components/vendor/calcite-components/YMNIMOT5.js +4 -0
  987. package/dist/solutions-components/vendor/calcite-components/YQDDGBKI.js +4 -0
  988. package/dist/solutions-components/vendor/calcite-components/YYWX5ACS.js +4 -0
  989. package/dist/solutions-components/vendor/calcite-components/Z5J5AV2N.js +4 -0
  990. package/dist/solutions-components/vendor/calcite-components/Z5POWLIV.js +4 -0
  991. package/dist/solutions-components/vendor/calcite-components/ZCF5FXJ6.js +4 -0
  992. package/dist/solutions-components/vendor/calcite-components/ZCPJODER.js +4 -0
  993. package/dist/solutions-components/vendor/calcite-components/ZIIE4X52.js +4 -0
  994. package/dist/solutions-components/vendor/calcite-components/ZQ4RAM3U.js +4 -0
  995. package/dist/solutions-components/vendor/calcite-components/ZXDWFKG4.js +4 -0
  996. package/dist/solutions-components/vendor/calcite-components/assets/icon/hammerCoin16.json +1 -0
  997. package/dist/solutions-components/vendor/calcite-components/assets/icon/hammerCoin24.json +1 -0
  998. package/dist/solutions-components/vendor/calcite-components/assets/icon/hammerCoin32.json +1 -0
  999. package/dist/solutions-components/vendor/calcite-components/assets/icon/hammerLock16.json +1 -0
  1000. package/dist/solutions-components/vendor/calcite-components/assets/icon/hammerLock24.json +1 -0
  1001. package/dist/solutions-components/vendor/calcite-components/assets/icon/hammerLock32.json +1 -0
  1002. package/dist/solutions-components/vendor/calcite-components/calcite.esm.js +2 -2
  1003. package/dist/solutions-components_commit.txt +6 -6
  1004. package/dist/types/components/create-feature/create-feature.d.ts +54 -50
  1005. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +4 -0
  1006. package/dist/types/components.d.ts +16 -0
  1007. package/package.json +2 -2
  1008. package/dist/cjs/asyncToGenerator-f169429a.js +0 -92
  1009. package/dist/cjs/downloadUtils-b269c7a1.js +0 -3223
  1010. package/dist/cjs/effects-2f75069e.js +0 -83
  1011. package/dist/cjs/helpers-69e520bd.js +0 -867
  1012. package/dist/cjs/index.es-644259ff.js +0 -11195
  1013. package/dist/cjs/languageSwitcher-c8e62594.js +0 -52
  1014. package/dist/cjs/languageUtil-bd49af69.js +0 -69
  1015. package/dist/cjs/loadModules-3b29fa24.js +0 -23
  1016. package/dist/cjs/locale-905e6063.js +0 -160
  1017. package/dist/cjs/locale-c923d7b6.js +0 -943
  1018. package/dist/cjs/popupUtils-5378e04a.js +0 -121
  1019. package/dist/cjs/utils-3739960f.js +0 -153
  1020. package/dist/collection/vendor/calcite-components/2BGOXXHV.js +0 -4
  1021. package/dist/collection/vendor/calcite-components/2EBGD5ZQ.js +0 -4
  1022. package/dist/collection/vendor/calcite-components/2HEEVITF.js +0 -4
  1023. package/dist/collection/vendor/calcite-components/2QBRISAS.js +0 -4
  1024. package/dist/collection/vendor/calcite-components/2SKIGCTJ.js +0 -4
  1025. package/dist/collection/vendor/calcite-components/2ZPEMPPG.js +0 -4
  1026. package/dist/collection/vendor/calcite-components/36DTW2EC.js +0 -4
  1027. package/dist/collection/vendor/calcite-components/36E6CTNX.js +0 -4
  1028. package/dist/collection/vendor/calcite-components/36HITQ3A.js +0 -4
  1029. package/dist/collection/vendor/calcite-components/3FJPBCHI.js +0 -4
  1030. package/dist/collection/vendor/calcite-components/3TINKPLC.js +0 -4
  1031. package/dist/collection/vendor/calcite-components/3TXD2SW4.js +0 -4
  1032. package/dist/collection/vendor/calcite-components/43C4CZJO.js +0 -4
  1033. package/dist/collection/vendor/calcite-components/44DZGTF5.js +0 -4
  1034. package/dist/collection/vendor/calcite-components/4IWRJJPT.js +0 -4
  1035. package/dist/collection/vendor/calcite-components/4L6L5YMT.js +0 -4
  1036. package/dist/collection/vendor/calcite-components/4NZHY4FQ.js +0 -4
  1037. package/dist/collection/vendor/calcite-components/4OSJHPNQ.js +0 -4
  1038. package/dist/collection/vendor/calcite-components/4ZNEZOAP.js +0 -4
  1039. package/dist/collection/vendor/calcite-components/4ZTXEQT4.js +0 -4
  1040. package/dist/collection/vendor/calcite-components/57U74PDQ.js +0 -4
  1041. package/dist/collection/vendor/calcite-components/5BEKT6RT.js +0 -4
  1042. package/dist/collection/vendor/calcite-components/5JAMHCQS.js +0 -6
  1043. package/dist/collection/vendor/calcite-components/5UP5TQJN.js +0 -4
  1044. package/dist/collection/vendor/calcite-components/5VK77MGP.js +0 -4
  1045. package/dist/collection/vendor/calcite-components/5ZFIOILW.js +0 -4
  1046. package/dist/collection/vendor/calcite-components/62G23PKY.js +0 -4
  1047. package/dist/collection/vendor/calcite-components/6A464LBG.js +0 -4
  1048. package/dist/collection/vendor/calcite-components/6KXUZBIZ.js +0 -4
  1049. package/dist/collection/vendor/calcite-components/6OCJIDQZ.js +0 -4
  1050. package/dist/collection/vendor/calcite-components/6PBZNCIY.js +0 -4
  1051. package/dist/collection/vendor/calcite-components/6SREDGMN.js +0 -4
  1052. package/dist/collection/vendor/calcite-components/73K4GSAV.js +0 -4
  1053. package/dist/collection/vendor/calcite-components/757M5TSP.js +0 -5
  1054. package/dist/collection/vendor/calcite-components/7F6EUEAO.js +0 -4
  1055. package/dist/collection/vendor/calcite-components/7GOGBJPD.js +0 -4
  1056. package/dist/collection/vendor/calcite-components/7PLD33LH.js +0 -4
  1057. package/dist/collection/vendor/calcite-components/7TNMI44V.js +0 -4
  1058. package/dist/collection/vendor/calcite-components/7VZFYJY5.js +0 -4
  1059. package/dist/collection/vendor/calcite-components/7XZR3QPX.js +0 -4
  1060. package/dist/collection/vendor/calcite-components/A3M4FM7N.js +0 -4
  1061. package/dist/collection/vendor/calcite-components/A5WZ32T6.js +0 -4
  1062. package/dist/collection/vendor/calcite-components/A6H6UTO7.js +0 -4
  1063. package/dist/collection/vendor/calcite-components/AA6WUYLQ.js +0 -4
  1064. package/dist/collection/vendor/calcite-components/ADRZSXZD.js +0 -4
  1065. package/dist/collection/vendor/calcite-components/AKXBPGJ4.js +0 -4
  1066. package/dist/collection/vendor/calcite-components/ALGCYGFE.js +0 -4
  1067. package/dist/collection/vendor/calcite-components/B3YKMJGM.js +0 -4
  1068. package/dist/collection/vendor/calcite-components/B6DZ4O5H.js +0 -4
  1069. package/dist/collection/vendor/calcite-components/B747CT5Q.js +0 -5
  1070. package/dist/collection/vendor/calcite-components/BAHKYVUM.js +0 -4
  1071. package/dist/collection/vendor/calcite-components/BTHSKXWS.js +0 -4
  1072. package/dist/collection/vendor/calcite-components/BWCV737I.js +0 -4
  1073. package/dist/collection/vendor/calcite-components/BZV465ZG.js +0 -4
  1074. package/dist/collection/vendor/calcite-components/C4A2PCZ4.js +0 -4
  1075. package/dist/collection/vendor/calcite-components/C5MKAGNV.js +0 -4
  1076. package/dist/collection/vendor/calcite-components/CK3TASCY.js +0 -4
  1077. package/dist/collection/vendor/calcite-components/D2MINRBA.js +0 -4
  1078. package/dist/collection/vendor/calcite-components/DDOM5RYZ.js +0 -4
  1079. package/dist/collection/vendor/calcite-components/DJ4JGNMM.js +0 -4
  1080. package/dist/collection/vendor/calcite-components/DL75ZJBG.js +0 -4
  1081. package/dist/collection/vendor/calcite-components/DO4RITGJ.js +0 -4
  1082. package/dist/collection/vendor/calcite-components/DSL2FNLA.js +0 -4
  1083. package/dist/collection/vendor/calcite-components/DTEHSI7W.js +0 -4
  1084. package/dist/collection/vendor/calcite-components/DUTPXINY.js +0 -4
  1085. package/dist/collection/vendor/calcite-components/DY22I2GZ.js +0 -4
  1086. package/dist/collection/vendor/calcite-components/DYN74HSB.js +0 -4
  1087. package/dist/collection/vendor/calcite-components/E3CWAGXE.js +0 -4
  1088. package/dist/collection/vendor/calcite-components/E3QBKOQQ.js +0 -4
  1089. package/dist/collection/vendor/calcite-components/EBFZRB3A.js +0 -4
  1090. package/dist/collection/vendor/calcite-components/ECGXAEDQ.js +0 -4
  1091. package/dist/collection/vendor/calcite-components/EGC7NBN5.js +0 -4
  1092. package/dist/collection/vendor/calcite-components/EILXZAAH.js +0 -4
  1093. package/dist/collection/vendor/calcite-components/EISHHIYI.js +0 -4
  1094. package/dist/collection/vendor/calcite-components/EN6Y5YN5.js +0 -4
  1095. package/dist/collection/vendor/calcite-components/ERDL4UCD.js +0 -4
  1096. package/dist/collection/vendor/calcite-components/EYPFBUR7.js +0 -4
  1097. package/dist/collection/vendor/calcite-components/F6DYUGAJ.js +0 -4
  1098. package/dist/collection/vendor/calcite-components/FAQ7B73H.js +0 -4
  1099. package/dist/collection/vendor/calcite-components/FAULLEJY.js +0 -4
  1100. package/dist/collection/vendor/calcite-components/FH7G4JPL.js +0 -28
  1101. package/dist/collection/vendor/calcite-components/FHAH57CK.js +0 -4
  1102. package/dist/collection/vendor/calcite-components/FHGZNYTT.js +0 -4
  1103. package/dist/collection/vendor/calcite-components/FLXOWNYW.js +0 -4
  1104. package/dist/collection/vendor/calcite-components/FVABUFOH.js +0 -4
  1105. package/dist/collection/vendor/calcite-components/G2JF63JV.js +0 -4
  1106. package/dist/collection/vendor/calcite-components/G63OZT6W.js +0 -4
  1107. package/dist/collection/vendor/calcite-components/GESC7PRY.js +0 -4
  1108. package/dist/collection/vendor/calcite-components/GIAH7CPN.js +0 -4
  1109. package/dist/collection/vendor/calcite-components/GNZIY4A2.js +0 -4
  1110. package/dist/collection/vendor/calcite-components/GPNKRGK6.js +0 -4
  1111. package/dist/collection/vendor/calcite-components/GSUR5POR.js +0 -4
  1112. package/dist/collection/vendor/calcite-components/GY22257T.js +0 -4
  1113. package/dist/collection/vendor/calcite-components/H2PEX7CU.js +0 -4
  1114. package/dist/collection/vendor/calcite-components/H2UMFA24.js +0 -4
  1115. package/dist/collection/vendor/calcite-components/H7D6N2ZS.js +0 -4
  1116. package/dist/collection/vendor/calcite-components/HALAA7KD.js +0 -4
  1117. package/dist/collection/vendor/calcite-components/HHC7VSD3.js +0 -4
  1118. package/dist/collection/vendor/calcite-components/HNGJKPNS.js +0 -4
  1119. package/dist/collection/vendor/calcite-components/HQLH54Q4.js +0 -4
  1120. package/dist/collection/vendor/calcite-components/HZLG5SUR.js +0 -4
  1121. package/dist/collection/vendor/calcite-components/HZUKYZNP.js +0 -4
  1122. package/dist/collection/vendor/calcite-components/IHBCPOXF.js +0 -4
  1123. package/dist/collection/vendor/calcite-components/IIERNP6W.js +0 -4
  1124. package/dist/collection/vendor/calcite-components/ILJVRQHM.js +0 -4
  1125. package/dist/collection/vendor/calcite-components/IQTGVLQG.js +0 -4
  1126. package/dist/collection/vendor/calcite-components/IRW4MFB4.js +0 -4
  1127. package/dist/collection/vendor/calcite-components/J4KGM5S7.js +0 -5
  1128. package/dist/collection/vendor/calcite-components/JCQBVDTR.js +0 -4
  1129. package/dist/collection/vendor/calcite-components/JCZIZMKQ.js +0 -4
  1130. package/dist/collection/vendor/calcite-components/JE5DGAJR.js +0 -4
  1131. package/dist/collection/vendor/calcite-components/JL7OLH3T.js +0 -4
  1132. package/dist/collection/vendor/calcite-components/JTWLPIB2.js +0 -4
  1133. package/dist/collection/vendor/calcite-components/K53JENHF.js +0 -4
  1134. package/dist/collection/vendor/calcite-components/K5ODBKLP.js +0 -4
  1135. package/dist/collection/vendor/calcite-components/KC4IYMUL.js +0 -4
  1136. package/dist/collection/vendor/calcite-components/KE7WVOAV.js +0 -4
  1137. package/dist/collection/vendor/calcite-components/KGJ4OJVP.js +0 -4
  1138. package/dist/collection/vendor/calcite-components/KI2CJ7JL.js +0 -4
  1139. package/dist/collection/vendor/calcite-components/KNE7ABCR.js +0 -4
  1140. package/dist/collection/vendor/calcite-components/KOFGYSC5.js +0 -4
  1141. package/dist/collection/vendor/calcite-components/KOH6G4XV.js +0 -4
  1142. package/dist/collection/vendor/calcite-components/KRO7CG2Q.js +0 -4
  1143. package/dist/collection/vendor/calcite-components/KRZW2DWF.js +0 -4
  1144. package/dist/collection/vendor/calcite-components/KSFXKRML.js +0 -4
  1145. package/dist/collection/vendor/calcite-components/KTJZCONU.js +0 -4
  1146. package/dist/collection/vendor/calcite-components/KXJRCIPX.js +0 -4
  1147. package/dist/collection/vendor/calcite-components/L5DK3NJQ.js +0 -4
  1148. package/dist/collection/vendor/calcite-components/LEAJPPH4.js +0 -4
  1149. package/dist/collection/vendor/calcite-components/LKNGKUUT.js +0 -4
  1150. package/dist/collection/vendor/calcite-components/LLYFYC3S.js +0 -4
  1151. package/dist/collection/vendor/calcite-components/LLYVXFI4.js +0 -4
  1152. package/dist/collection/vendor/calcite-components/LMPMNF4U.js +0 -4
  1153. package/dist/collection/vendor/calcite-components/LNUDHR7T.js +0 -4
  1154. package/dist/collection/vendor/calcite-components/LRXQU7WR.js +0 -4
  1155. package/dist/collection/vendor/calcite-components/MDS5OEJ4.js +0 -4
  1156. package/dist/collection/vendor/calcite-components/MEXPAXRW.js +0 -4
  1157. package/dist/collection/vendor/calcite-components/MI3K57KT.js +0 -4
  1158. package/dist/collection/vendor/calcite-components/MIOMFK6B.js +0 -4
  1159. package/dist/collection/vendor/calcite-components/MJII73PP.js +0 -4
  1160. package/dist/collection/vendor/calcite-components/MJIKLRLZ.js +0 -4
  1161. package/dist/collection/vendor/calcite-components/MQSDYLGW.js +0 -4
  1162. package/dist/collection/vendor/calcite-components/MWJLXQ5U.js +0 -4
  1163. package/dist/collection/vendor/calcite-components/N2PDJVSE.js +0 -4
  1164. package/dist/collection/vendor/calcite-components/NERFG233.js +0 -4
  1165. package/dist/collection/vendor/calcite-components/NIUBMFXO.js +0 -4
  1166. package/dist/collection/vendor/calcite-components/NK25FAZ6.js +0 -4
  1167. package/dist/collection/vendor/calcite-components/NK4ED4IH.js +0 -5
  1168. package/dist/collection/vendor/calcite-components/NOJTDKA6.js +0 -4
  1169. package/dist/collection/vendor/calcite-components/NUY7EYNX.js +0 -4
  1170. package/dist/collection/vendor/calcite-components/NWA7UYBI.js +0 -4
  1171. package/dist/collection/vendor/calcite-components/NWNWCSUO.js +0 -4
  1172. package/dist/collection/vendor/calcite-components/NYJ2KJKN.js +0 -4
  1173. package/dist/collection/vendor/calcite-components/O6RKIBH2.js +0 -4
  1174. package/dist/collection/vendor/calcite-components/OP2QHRHR.js +0 -4
  1175. package/dist/collection/vendor/calcite-components/P5ZVYEQW.js +0 -4
  1176. package/dist/collection/vendor/calcite-components/P6BFNJVU.js +0 -4
  1177. package/dist/collection/vendor/calcite-components/P6VB45CQ.js +0 -4
  1178. package/dist/collection/vendor/calcite-components/PNTWJB75.js +0 -4
  1179. package/dist/collection/vendor/calcite-components/PTUZR2XV.js +0 -4
  1180. package/dist/collection/vendor/calcite-components/QBNHVQWS.js +0 -4
  1181. package/dist/collection/vendor/calcite-components/QD6WQCPN.js +0 -4
  1182. package/dist/collection/vendor/calcite-components/QEBXFL3K.js +0 -4
  1183. package/dist/collection/vendor/calcite-components/QNRLRRZZ.js +0 -4
  1184. package/dist/collection/vendor/calcite-components/QTGKBVAW.js +0 -4
  1185. package/dist/collection/vendor/calcite-components/QVLHSABE.js +0 -4
  1186. package/dist/collection/vendor/calcite-components/RATZT6K7.js +0 -4
  1187. package/dist/collection/vendor/calcite-components/RAWIO5CJ.js +0 -4
  1188. package/dist/collection/vendor/calcite-components/RC4M4Q6U.js +0 -4
  1189. package/dist/collection/vendor/calcite-components/ROTKUEC4.js +0 -4
  1190. package/dist/collection/vendor/calcite-components/RRR3UCDP.js +0 -4
  1191. package/dist/collection/vendor/calcite-components/RXJQR5VC.js +0 -4
  1192. package/dist/collection/vendor/calcite-components/RYBJ6HQX.js +0 -4
  1193. package/dist/collection/vendor/calcite-components/S2CHZ5WW.js +0 -4
  1194. package/dist/collection/vendor/calcite-components/S5QILLXK.js +0 -4
  1195. package/dist/collection/vendor/calcite-components/S5WUGWLI.js +0 -4
  1196. package/dist/collection/vendor/calcite-components/SLILJOTA.js +0 -4
  1197. package/dist/collection/vendor/calcite-components/SZIQPAWB.js +0 -4
  1198. package/dist/collection/vendor/calcite-components/T2EFD7MK.js +0 -4
  1199. package/dist/collection/vendor/calcite-components/TJ6U6Y2A.js +0 -4
  1200. package/dist/collection/vendor/calcite-components/TRXE64SN.js +0 -4
  1201. package/dist/collection/vendor/calcite-components/TVXUNVVJ.js +0 -4
  1202. package/dist/collection/vendor/calcite-components/TZPOTIWO.js +0 -4
  1203. package/dist/collection/vendor/calcite-components/UKOMGWYV.js +0 -4
  1204. package/dist/collection/vendor/calcite-components/ULI2WHN6.js +0 -4
  1205. package/dist/collection/vendor/calcite-components/UPO2OA2C.js +0 -4
  1206. package/dist/collection/vendor/calcite-components/V7QQRUYR.js +0 -4
  1207. package/dist/collection/vendor/calcite-components/VA6SEF3H.js +0 -4
  1208. package/dist/collection/vendor/calcite-components/VCGYS6AC.js +0 -4
  1209. package/dist/collection/vendor/calcite-components/VHIVTMYL.js +0 -22
  1210. package/dist/collection/vendor/calcite-components/VIFJTMJE.js +0 -4
  1211. package/dist/collection/vendor/calcite-components/VKUXTBMA.js +0 -4
  1212. package/dist/collection/vendor/calcite-components/VYBRMYZA.js +0 -4
  1213. package/dist/collection/vendor/calcite-components/VYSYUSUT.js +0 -4
  1214. package/dist/collection/vendor/calcite-components/WHQERKO3.js +0 -4
  1215. package/dist/collection/vendor/calcite-components/WLKZ6TCC.js +0 -4
  1216. package/dist/collection/vendor/calcite-components/WRRV2226.js +0 -4
  1217. package/dist/collection/vendor/calcite-components/X5OT5VWP.js +0 -4
  1218. package/dist/collection/vendor/calcite-components/X7WD2RXW.js +0 -4
  1219. package/dist/collection/vendor/calcite-components/XGGCYCLU.js +0 -4
  1220. package/dist/collection/vendor/calcite-components/XJUGTTYP.js +0 -4
  1221. package/dist/collection/vendor/calcite-components/XK6ESUWM.js +0 -4
  1222. package/dist/collection/vendor/calcite-components/XODNGXTR.js +0 -4
  1223. package/dist/collection/vendor/calcite-components/XP22SQKN.js +0 -4
  1224. package/dist/collection/vendor/calcite-components/XUCLKKAR.js +0 -4
  1225. package/dist/collection/vendor/calcite-components/XWO5T62V.js +0 -4
  1226. package/dist/collection/vendor/calcite-components/XY7DR573.js +0 -4
  1227. package/dist/collection/vendor/calcite-components/Y4WWNYQO.js +0 -4
  1228. package/dist/collection/vendor/calcite-components/YF3UCGCR.js +0 -4
  1229. package/dist/collection/vendor/calcite-components/YH3WSHXS.js +0 -4
  1230. package/dist/collection/vendor/calcite-components/YOI4NTGG.js +0 -4
  1231. package/dist/collection/vendor/calcite-components/YP2GEKXK.js +0 -4
  1232. package/dist/collection/vendor/calcite-components/YQDF2N5J.js +0 -4
  1233. package/dist/collection/vendor/calcite-components/YRCGG4BE.js +0 -4
  1234. package/dist/collection/vendor/calcite-components/YTSHEMU3.js +0 -4
  1235. package/dist/collection/vendor/calcite-components/YUQIXR5A.js +0 -4
  1236. package/dist/collection/vendor/calcite-components/ZAY3SU5H.js +0 -4
  1237. package/dist/collection/vendor/calcite-components/ZFGK5MNZ.js +0 -4
  1238. package/dist/collection/vendor/calcite-components/ZITAONDY.js +0 -4
  1239. package/dist/collection/vendor/calcite-components/ZLW5U3G6.js +0 -4
  1240. package/dist/collection/vendor/calcite-components/ZNMXPSOQ.js +0 -4
  1241. package/dist/collection/vendor/calcite-components/ZSLV2NNR.js +0 -4
  1242. package/dist/esm/asyncToGenerator-e51717ed.js +0 -88
  1243. package/dist/esm/downloadUtils-d04d4095.js +0 -3217
  1244. package/dist/esm/effects-602e7b51.js +0 -81
  1245. package/dist/esm/helpers-520f100c.js +0 -841
  1246. package/dist/esm/index.es-ca80d0c5.js +0 -11108
  1247. package/dist/esm/languageSwitcher-ccdf79d4.js +0 -49
  1248. package/dist/esm/languageUtil-2bac3910.js +0 -66
  1249. package/dist/esm/loadModules-1b0b108c.js +0 -21
  1250. package/dist/esm/locale-15e42305.js +0 -155
  1251. package/dist/esm/locale-29d08ded.js +0 -938
  1252. package/dist/esm/popupUtils-b71abb01.js +0 -119
  1253. package/dist/esm/utils-89be1743.js +0 -142
  1254. package/dist/solutions-components/p-0132213f.entry.js +0 -21
  1255. package/dist/solutions-components/p-039ab075.js +0 -61
  1256. package/dist/solutions-components/p-04277d48.entry.js +0 -6
  1257. package/dist/solutions-components/p-04546ef6.js +0 -6
  1258. package/dist/solutions-components/p-0607044f.js +0 -6
  1259. package/dist/solutions-components/p-099379e6.entry.js +0 -6
  1260. package/dist/solutions-components/p-0b1c830a.entry.js +0 -6
  1261. package/dist/solutions-components/p-0ea99464.entry.js +0 -6
  1262. package/dist/solutions-components/p-1054e10a.entry.js +0 -6
  1263. package/dist/solutions-components/p-1adc6874.entry.js +0 -6
  1264. package/dist/solutions-components/p-258aa58e.js +0 -21
  1265. package/dist/solutions-components/p-29baf8a2.entry.js +0 -6
  1266. package/dist/solutions-components/p-2a1ed83a.entry.js +0 -6
  1267. package/dist/solutions-components/p-2a7f23fc.entry.js +0 -6
  1268. package/dist/solutions-components/p-2cb8c175.entry.js +0 -6
  1269. package/dist/solutions-components/p-2d3b8412.entry.js +0 -6
  1270. package/dist/solutions-components/p-2d8300ba.entry.js +0 -6
  1271. package/dist/solutions-components/p-3423b5ef.js +0 -6
  1272. package/dist/solutions-components/p-34338938.entry.js +0 -6
  1273. package/dist/solutions-components/p-36e3b39c.js +0 -488
  1274. package/dist/solutions-components/p-37cc79c6.entry.js +0 -6
  1275. package/dist/solutions-components/p-3f8b1062.entry.js +0 -6
  1276. package/dist/solutions-components/p-436b869c.entry.js +0 -6
  1277. package/dist/solutions-components/p-438fdc33.js +0 -6
  1278. package/dist/solutions-components/p-4454af38.entry.js +0 -6
  1279. package/dist/solutions-components/p-532ed572.entry.js +0 -6
  1280. package/dist/solutions-components/p-59a1c5a9.entry.js +0 -6
  1281. package/dist/solutions-components/p-6ac03d17.entry.js +0 -6
  1282. package/dist/solutions-components/p-6e879de9.entry.js +0 -6
  1283. package/dist/solutions-components/p-7bf7d67b.js +0 -6
  1284. package/dist/solutions-components/p-86b6f918.entry.js +0 -6
  1285. package/dist/solutions-components/p-8db12ee9.entry.js +0 -21
  1286. package/dist/solutions-components/p-8f973b3d.js +0 -6
  1287. package/dist/solutions-components/p-97abbf8f.entry.js +0 -6
  1288. package/dist/solutions-components/p-a397e773.js +0 -36
  1289. package/dist/solutions-components/p-b6a6fdcf.entry.js +0 -11
  1290. package/dist/solutions-components/p-b8f29a99.entry.js +0 -6
  1291. package/dist/solutions-components/p-ba472e45.entry.js +0 -6
  1292. package/dist/solutions-components/p-c3aac15b.entry.js +0 -6
  1293. package/dist/solutions-components/p-cd38fc53.js +0 -6
  1294. package/dist/solutions-components/p-d45b0400.entry.js +0 -6
  1295. package/dist/solutions-components/p-d885880a.entry.js +0 -6
  1296. package/dist/solutions-components/p-da1e4ff1.entry.js +0 -6
  1297. package/dist/solutions-components/p-dbf2c455.entry.js +0 -6
  1298. package/dist/solutions-components/p-dda0aa41.entry.js +0 -6
  1299. package/dist/solutions-components/p-e79b69e6.entry.js +0 -6
  1300. package/dist/solutions-components/p-edfcce2c.entry.js +0 -6
  1301. package/dist/solutions-components/p-f292f56e.entry.js +0 -6
  1302. package/dist/solutions-components/p-f36b4778.entry.js +0 -6
  1303. package/dist/solutions-components/p-f457e8be.entry.js +0 -6
  1304. package/dist/solutions-components/p-f93a9d92.js +0 -6
  1305. package/dist/solutions-components/p-f99a78f1.entry.js +0 -6
  1306. package/dist/solutions-components/p-fdf0d66f.entry.js +0 -6
  1307. package/dist/solutions-components/vendor/calcite-components/2BGOXXHV.js +0 -4
  1308. package/dist/solutions-components/vendor/calcite-components/2EBGD5ZQ.js +0 -4
  1309. package/dist/solutions-components/vendor/calcite-components/2HEEVITF.js +0 -4
  1310. package/dist/solutions-components/vendor/calcite-components/2QBRISAS.js +0 -4
  1311. package/dist/solutions-components/vendor/calcite-components/2SKIGCTJ.js +0 -4
  1312. package/dist/solutions-components/vendor/calcite-components/2ZPEMPPG.js +0 -4
  1313. package/dist/solutions-components/vendor/calcite-components/36DTW2EC.js +0 -4
  1314. package/dist/solutions-components/vendor/calcite-components/36E6CTNX.js +0 -4
  1315. package/dist/solutions-components/vendor/calcite-components/36HITQ3A.js +0 -4
  1316. package/dist/solutions-components/vendor/calcite-components/3FJPBCHI.js +0 -4
  1317. package/dist/solutions-components/vendor/calcite-components/3TINKPLC.js +0 -4
  1318. package/dist/solutions-components/vendor/calcite-components/3TXD2SW4.js +0 -4
  1319. package/dist/solutions-components/vendor/calcite-components/43C4CZJO.js +0 -4
  1320. package/dist/solutions-components/vendor/calcite-components/44DZGTF5.js +0 -4
  1321. package/dist/solutions-components/vendor/calcite-components/4IWRJJPT.js +0 -4
  1322. package/dist/solutions-components/vendor/calcite-components/4L6L5YMT.js +0 -4
  1323. package/dist/solutions-components/vendor/calcite-components/4NZHY4FQ.js +0 -4
  1324. package/dist/solutions-components/vendor/calcite-components/4OSJHPNQ.js +0 -4
  1325. package/dist/solutions-components/vendor/calcite-components/4ZNEZOAP.js +0 -4
  1326. package/dist/solutions-components/vendor/calcite-components/4ZTXEQT4.js +0 -4
  1327. package/dist/solutions-components/vendor/calcite-components/57U74PDQ.js +0 -4
  1328. package/dist/solutions-components/vendor/calcite-components/5BEKT6RT.js +0 -4
  1329. package/dist/solutions-components/vendor/calcite-components/5JAMHCQS.js +0 -6
  1330. package/dist/solutions-components/vendor/calcite-components/5UP5TQJN.js +0 -4
  1331. package/dist/solutions-components/vendor/calcite-components/5VK77MGP.js +0 -4
  1332. package/dist/solutions-components/vendor/calcite-components/5ZFIOILW.js +0 -4
  1333. package/dist/solutions-components/vendor/calcite-components/62G23PKY.js +0 -4
  1334. package/dist/solutions-components/vendor/calcite-components/6A464LBG.js +0 -4
  1335. package/dist/solutions-components/vendor/calcite-components/6KXUZBIZ.js +0 -4
  1336. package/dist/solutions-components/vendor/calcite-components/6OCJIDQZ.js +0 -4
  1337. package/dist/solutions-components/vendor/calcite-components/6PBZNCIY.js +0 -4
  1338. package/dist/solutions-components/vendor/calcite-components/6SREDGMN.js +0 -4
  1339. package/dist/solutions-components/vendor/calcite-components/73K4GSAV.js +0 -4
  1340. package/dist/solutions-components/vendor/calcite-components/757M5TSP.js +0 -5
  1341. package/dist/solutions-components/vendor/calcite-components/7F6EUEAO.js +0 -4
  1342. package/dist/solutions-components/vendor/calcite-components/7GOGBJPD.js +0 -4
  1343. package/dist/solutions-components/vendor/calcite-components/7PLD33LH.js +0 -4
  1344. package/dist/solutions-components/vendor/calcite-components/7TNMI44V.js +0 -4
  1345. package/dist/solutions-components/vendor/calcite-components/7VZFYJY5.js +0 -4
  1346. package/dist/solutions-components/vendor/calcite-components/7XZR3QPX.js +0 -4
  1347. package/dist/solutions-components/vendor/calcite-components/A3M4FM7N.js +0 -4
  1348. package/dist/solutions-components/vendor/calcite-components/A5WZ32T6.js +0 -4
  1349. package/dist/solutions-components/vendor/calcite-components/A6H6UTO7.js +0 -4
  1350. package/dist/solutions-components/vendor/calcite-components/AA6WUYLQ.js +0 -4
  1351. package/dist/solutions-components/vendor/calcite-components/ADRZSXZD.js +0 -4
  1352. package/dist/solutions-components/vendor/calcite-components/AKXBPGJ4.js +0 -4
  1353. package/dist/solutions-components/vendor/calcite-components/ALGCYGFE.js +0 -4
  1354. package/dist/solutions-components/vendor/calcite-components/B3YKMJGM.js +0 -4
  1355. package/dist/solutions-components/vendor/calcite-components/B6DZ4O5H.js +0 -4
  1356. package/dist/solutions-components/vendor/calcite-components/B747CT5Q.js +0 -5
  1357. package/dist/solutions-components/vendor/calcite-components/BAHKYVUM.js +0 -4
  1358. package/dist/solutions-components/vendor/calcite-components/BTHSKXWS.js +0 -4
  1359. package/dist/solutions-components/vendor/calcite-components/BWCV737I.js +0 -4
  1360. package/dist/solutions-components/vendor/calcite-components/BZV465ZG.js +0 -4
  1361. package/dist/solutions-components/vendor/calcite-components/C4A2PCZ4.js +0 -4
  1362. package/dist/solutions-components/vendor/calcite-components/C5MKAGNV.js +0 -4
  1363. package/dist/solutions-components/vendor/calcite-components/CK3TASCY.js +0 -4
  1364. package/dist/solutions-components/vendor/calcite-components/D2MINRBA.js +0 -4
  1365. package/dist/solutions-components/vendor/calcite-components/DDOM5RYZ.js +0 -4
  1366. package/dist/solutions-components/vendor/calcite-components/DJ4JGNMM.js +0 -4
  1367. package/dist/solutions-components/vendor/calcite-components/DL75ZJBG.js +0 -4
  1368. package/dist/solutions-components/vendor/calcite-components/DO4RITGJ.js +0 -4
  1369. package/dist/solutions-components/vendor/calcite-components/DSL2FNLA.js +0 -4
  1370. package/dist/solutions-components/vendor/calcite-components/DTEHSI7W.js +0 -4
  1371. package/dist/solutions-components/vendor/calcite-components/DUTPXINY.js +0 -4
  1372. package/dist/solutions-components/vendor/calcite-components/DY22I2GZ.js +0 -4
  1373. package/dist/solutions-components/vendor/calcite-components/DYN74HSB.js +0 -4
  1374. package/dist/solutions-components/vendor/calcite-components/E3CWAGXE.js +0 -4
  1375. package/dist/solutions-components/vendor/calcite-components/E3QBKOQQ.js +0 -4
  1376. package/dist/solutions-components/vendor/calcite-components/EBFZRB3A.js +0 -4
  1377. package/dist/solutions-components/vendor/calcite-components/ECGXAEDQ.js +0 -4
  1378. package/dist/solutions-components/vendor/calcite-components/EGC7NBN5.js +0 -4
  1379. package/dist/solutions-components/vendor/calcite-components/EILXZAAH.js +0 -4
  1380. package/dist/solutions-components/vendor/calcite-components/EISHHIYI.js +0 -4
  1381. package/dist/solutions-components/vendor/calcite-components/EN6Y5YN5.js +0 -4
  1382. package/dist/solutions-components/vendor/calcite-components/ERDL4UCD.js +0 -4
  1383. package/dist/solutions-components/vendor/calcite-components/EYPFBUR7.js +0 -4
  1384. package/dist/solutions-components/vendor/calcite-components/F6DYUGAJ.js +0 -4
  1385. package/dist/solutions-components/vendor/calcite-components/FAQ7B73H.js +0 -4
  1386. package/dist/solutions-components/vendor/calcite-components/FAULLEJY.js +0 -4
  1387. package/dist/solutions-components/vendor/calcite-components/FH7G4JPL.js +0 -28
  1388. package/dist/solutions-components/vendor/calcite-components/FHAH57CK.js +0 -4
  1389. package/dist/solutions-components/vendor/calcite-components/FHGZNYTT.js +0 -4
  1390. package/dist/solutions-components/vendor/calcite-components/FLXOWNYW.js +0 -4
  1391. package/dist/solutions-components/vendor/calcite-components/FVABUFOH.js +0 -4
  1392. package/dist/solutions-components/vendor/calcite-components/G2JF63JV.js +0 -4
  1393. package/dist/solutions-components/vendor/calcite-components/G63OZT6W.js +0 -4
  1394. package/dist/solutions-components/vendor/calcite-components/GESC7PRY.js +0 -4
  1395. package/dist/solutions-components/vendor/calcite-components/GIAH7CPN.js +0 -4
  1396. package/dist/solutions-components/vendor/calcite-components/GNZIY4A2.js +0 -4
  1397. package/dist/solutions-components/vendor/calcite-components/GPNKRGK6.js +0 -4
  1398. package/dist/solutions-components/vendor/calcite-components/GSUR5POR.js +0 -4
  1399. package/dist/solutions-components/vendor/calcite-components/GY22257T.js +0 -4
  1400. package/dist/solutions-components/vendor/calcite-components/H2PEX7CU.js +0 -4
  1401. package/dist/solutions-components/vendor/calcite-components/H2UMFA24.js +0 -4
  1402. package/dist/solutions-components/vendor/calcite-components/H7D6N2ZS.js +0 -4
  1403. package/dist/solutions-components/vendor/calcite-components/HALAA7KD.js +0 -4
  1404. package/dist/solutions-components/vendor/calcite-components/HHC7VSD3.js +0 -4
  1405. package/dist/solutions-components/vendor/calcite-components/HNGJKPNS.js +0 -4
  1406. package/dist/solutions-components/vendor/calcite-components/HQLH54Q4.js +0 -4
  1407. package/dist/solutions-components/vendor/calcite-components/HZLG5SUR.js +0 -4
  1408. package/dist/solutions-components/vendor/calcite-components/HZUKYZNP.js +0 -4
  1409. package/dist/solutions-components/vendor/calcite-components/IHBCPOXF.js +0 -4
  1410. package/dist/solutions-components/vendor/calcite-components/IIERNP6W.js +0 -4
  1411. package/dist/solutions-components/vendor/calcite-components/ILJVRQHM.js +0 -4
  1412. package/dist/solutions-components/vendor/calcite-components/IQTGVLQG.js +0 -4
  1413. package/dist/solutions-components/vendor/calcite-components/IRW4MFB4.js +0 -4
  1414. package/dist/solutions-components/vendor/calcite-components/J4KGM5S7.js +0 -5
  1415. package/dist/solutions-components/vendor/calcite-components/JCQBVDTR.js +0 -4
  1416. package/dist/solutions-components/vendor/calcite-components/JCZIZMKQ.js +0 -4
  1417. package/dist/solutions-components/vendor/calcite-components/JE5DGAJR.js +0 -4
  1418. package/dist/solutions-components/vendor/calcite-components/JL7OLH3T.js +0 -4
  1419. package/dist/solutions-components/vendor/calcite-components/JTWLPIB2.js +0 -4
  1420. package/dist/solutions-components/vendor/calcite-components/K53JENHF.js +0 -4
  1421. package/dist/solutions-components/vendor/calcite-components/K5ODBKLP.js +0 -4
  1422. package/dist/solutions-components/vendor/calcite-components/KC4IYMUL.js +0 -4
  1423. package/dist/solutions-components/vendor/calcite-components/KE7WVOAV.js +0 -4
  1424. package/dist/solutions-components/vendor/calcite-components/KGJ4OJVP.js +0 -4
  1425. package/dist/solutions-components/vendor/calcite-components/KI2CJ7JL.js +0 -4
  1426. package/dist/solutions-components/vendor/calcite-components/KNE7ABCR.js +0 -4
  1427. package/dist/solutions-components/vendor/calcite-components/KOFGYSC5.js +0 -4
  1428. package/dist/solutions-components/vendor/calcite-components/KOH6G4XV.js +0 -4
  1429. package/dist/solutions-components/vendor/calcite-components/KRO7CG2Q.js +0 -4
  1430. package/dist/solutions-components/vendor/calcite-components/KRZW2DWF.js +0 -4
  1431. package/dist/solutions-components/vendor/calcite-components/KSFXKRML.js +0 -4
  1432. package/dist/solutions-components/vendor/calcite-components/KTJZCONU.js +0 -4
  1433. package/dist/solutions-components/vendor/calcite-components/KXJRCIPX.js +0 -4
  1434. package/dist/solutions-components/vendor/calcite-components/L5DK3NJQ.js +0 -4
  1435. package/dist/solutions-components/vendor/calcite-components/LEAJPPH4.js +0 -4
  1436. package/dist/solutions-components/vendor/calcite-components/LKNGKUUT.js +0 -4
  1437. package/dist/solutions-components/vendor/calcite-components/LLYFYC3S.js +0 -4
  1438. package/dist/solutions-components/vendor/calcite-components/LLYVXFI4.js +0 -4
  1439. package/dist/solutions-components/vendor/calcite-components/LMPMNF4U.js +0 -4
  1440. package/dist/solutions-components/vendor/calcite-components/LNUDHR7T.js +0 -4
  1441. package/dist/solutions-components/vendor/calcite-components/LRXQU7WR.js +0 -4
  1442. package/dist/solutions-components/vendor/calcite-components/MDS5OEJ4.js +0 -4
  1443. package/dist/solutions-components/vendor/calcite-components/MEXPAXRW.js +0 -4
  1444. package/dist/solutions-components/vendor/calcite-components/MI3K57KT.js +0 -4
  1445. package/dist/solutions-components/vendor/calcite-components/MIOMFK6B.js +0 -4
  1446. package/dist/solutions-components/vendor/calcite-components/MJII73PP.js +0 -4
  1447. package/dist/solutions-components/vendor/calcite-components/MJIKLRLZ.js +0 -4
  1448. package/dist/solutions-components/vendor/calcite-components/MQSDYLGW.js +0 -4
  1449. package/dist/solutions-components/vendor/calcite-components/MWJLXQ5U.js +0 -4
  1450. package/dist/solutions-components/vendor/calcite-components/N2PDJVSE.js +0 -4
  1451. package/dist/solutions-components/vendor/calcite-components/NERFG233.js +0 -4
  1452. package/dist/solutions-components/vendor/calcite-components/NIUBMFXO.js +0 -4
  1453. package/dist/solutions-components/vendor/calcite-components/NK25FAZ6.js +0 -4
  1454. package/dist/solutions-components/vendor/calcite-components/NK4ED4IH.js +0 -5
  1455. package/dist/solutions-components/vendor/calcite-components/NOJTDKA6.js +0 -4
  1456. package/dist/solutions-components/vendor/calcite-components/NUY7EYNX.js +0 -4
  1457. package/dist/solutions-components/vendor/calcite-components/NWA7UYBI.js +0 -4
  1458. package/dist/solutions-components/vendor/calcite-components/NWNWCSUO.js +0 -4
  1459. package/dist/solutions-components/vendor/calcite-components/NYJ2KJKN.js +0 -4
  1460. package/dist/solutions-components/vendor/calcite-components/O6RKIBH2.js +0 -4
  1461. package/dist/solutions-components/vendor/calcite-components/OP2QHRHR.js +0 -4
  1462. package/dist/solutions-components/vendor/calcite-components/P5ZVYEQW.js +0 -4
  1463. package/dist/solutions-components/vendor/calcite-components/P6BFNJVU.js +0 -4
  1464. package/dist/solutions-components/vendor/calcite-components/P6VB45CQ.js +0 -4
  1465. package/dist/solutions-components/vendor/calcite-components/PNTWJB75.js +0 -4
  1466. package/dist/solutions-components/vendor/calcite-components/PTUZR2XV.js +0 -4
  1467. package/dist/solutions-components/vendor/calcite-components/QBNHVQWS.js +0 -4
  1468. package/dist/solutions-components/vendor/calcite-components/QD6WQCPN.js +0 -4
  1469. package/dist/solutions-components/vendor/calcite-components/QEBXFL3K.js +0 -4
  1470. package/dist/solutions-components/vendor/calcite-components/QNRLRRZZ.js +0 -4
  1471. package/dist/solutions-components/vendor/calcite-components/QTGKBVAW.js +0 -4
  1472. package/dist/solutions-components/vendor/calcite-components/QVLHSABE.js +0 -4
  1473. package/dist/solutions-components/vendor/calcite-components/RATZT6K7.js +0 -4
  1474. package/dist/solutions-components/vendor/calcite-components/RAWIO5CJ.js +0 -4
  1475. package/dist/solutions-components/vendor/calcite-components/RC4M4Q6U.js +0 -4
  1476. package/dist/solutions-components/vendor/calcite-components/ROTKUEC4.js +0 -4
  1477. package/dist/solutions-components/vendor/calcite-components/RRR3UCDP.js +0 -4
  1478. package/dist/solutions-components/vendor/calcite-components/RXJQR5VC.js +0 -4
  1479. package/dist/solutions-components/vendor/calcite-components/RYBJ6HQX.js +0 -4
  1480. package/dist/solutions-components/vendor/calcite-components/S2CHZ5WW.js +0 -4
  1481. package/dist/solutions-components/vendor/calcite-components/S5QILLXK.js +0 -4
  1482. package/dist/solutions-components/vendor/calcite-components/S5WUGWLI.js +0 -4
  1483. package/dist/solutions-components/vendor/calcite-components/SLILJOTA.js +0 -4
  1484. package/dist/solutions-components/vendor/calcite-components/SZIQPAWB.js +0 -4
  1485. package/dist/solutions-components/vendor/calcite-components/T2EFD7MK.js +0 -4
  1486. package/dist/solutions-components/vendor/calcite-components/TJ6U6Y2A.js +0 -4
  1487. package/dist/solutions-components/vendor/calcite-components/TRXE64SN.js +0 -4
  1488. package/dist/solutions-components/vendor/calcite-components/TVXUNVVJ.js +0 -4
  1489. package/dist/solutions-components/vendor/calcite-components/TZPOTIWO.js +0 -4
  1490. package/dist/solutions-components/vendor/calcite-components/UKOMGWYV.js +0 -4
  1491. package/dist/solutions-components/vendor/calcite-components/ULI2WHN6.js +0 -4
  1492. package/dist/solutions-components/vendor/calcite-components/UPO2OA2C.js +0 -4
  1493. package/dist/solutions-components/vendor/calcite-components/V7QQRUYR.js +0 -4
  1494. package/dist/solutions-components/vendor/calcite-components/VA6SEF3H.js +0 -4
  1495. package/dist/solutions-components/vendor/calcite-components/VCGYS6AC.js +0 -4
  1496. package/dist/solutions-components/vendor/calcite-components/VHIVTMYL.js +0 -22
  1497. package/dist/solutions-components/vendor/calcite-components/VIFJTMJE.js +0 -4
  1498. package/dist/solutions-components/vendor/calcite-components/VKUXTBMA.js +0 -4
  1499. package/dist/solutions-components/vendor/calcite-components/VYBRMYZA.js +0 -4
  1500. package/dist/solutions-components/vendor/calcite-components/VYSYUSUT.js +0 -4
  1501. package/dist/solutions-components/vendor/calcite-components/WHQERKO3.js +0 -4
  1502. package/dist/solutions-components/vendor/calcite-components/WLKZ6TCC.js +0 -4
  1503. package/dist/solutions-components/vendor/calcite-components/WRRV2226.js +0 -4
  1504. package/dist/solutions-components/vendor/calcite-components/X5OT5VWP.js +0 -4
  1505. package/dist/solutions-components/vendor/calcite-components/X7WD2RXW.js +0 -4
  1506. package/dist/solutions-components/vendor/calcite-components/XGGCYCLU.js +0 -4
  1507. package/dist/solutions-components/vendor/calcite-components/XJUGTTYP.js +0 -4
  1508. package/dist/solutions-components/vendor/calcite-components/XK6ESUWM.js +0 -4
  1509. package/dist/solutions-components/vendor/calcite-components/XODNGXTR.js +0 -4
  1510. package/dist/solutions-components/vendor/calcite-components/XP22SQKN.js +0 -4
  1511. package/dist/solutions-components/vendor/calcite-components/XUCLKKAR.js +0 -4
  1512. package/dist/solutions-components/vendor/calcite-components/XWO5T62V.js +0 -4
  1513. package/dist/solutions-components/vendor/calcite-components/XY7DR573.js +0 -4
  1514. package/dist/solutions-components/vendor/calcite-components/Y4WWNYQO.js +0 -4
  1515. package/dist/solutions-components/vendor/calcite-components/YF3UCGCR.js +0 -4
  1516. package/dist/solutions-components/vendor/calcite-components/YH3WSHXS.js +0 -4
  1517. package/dist/solutions-components/vendor/calcite-components/YOI4NTGG.js +0 -4
  1518. package/dist/solutions-components/vendor/calcite-components/YP2GEKXK.js +0 -4
  1519. package/dist/solutions-components/vendor/calcite-components/YQDF2N5J.js +0 -4
  1520. package/dist/solutions-components/vendor/calcite-components/YRCGG4BE.js +0 -4
  1521. package/dist/solutions-components/vendor/calcite-components/YTSHEMU3.js +0 -4
  1522. package/dist/solutions-components/vendor/calcite-components/YUQIXR5A.js +0 -4
  1523. package/dist/solutions-components/vendor/calcite-components/ZAY3SU5H.js +0 -4
  1524. package/dist/solutions-components/vendor/calcite-components/ZFGK5MNZ.js +0 -4
  1525. package/dist/solutions-components/vendor/calcite-components/ZITAONDY.js +0 -4
  1526. package/dist/solutions-components/vendor/calcite-components/ZLW5U3G6.js +0 -4
  1527. package/dist/solutions-components/vendor/calcite-components/ZNMXPSOQ.js +0 -4
  1528. package/dist/solutions-components/vendor/calcite-components/ZSLV2NNR.js +0 -4
  1529. /package/dist/cjs/{esri-loader-1e8cc247.js → esri-loader-08dc41bd.js} +0 -0
  1530. /package/dist/cjs/{typeof-eba0a941.js → typeof-2a7e2dec.js} +0 -0
  1531. /package/dist/esm/{esri-loader-d10d860d.js → esri-loader-c6842c6b.js} +0 -0
  1532. /package/dist/esm/{typeof-a3e780e1.js → typeof-ef2a007d.js} +0 -0
  1533. /package/dist/solutions-components/{p-3b3f77bc.js → p-0a24ad5f.js} +0 -0
  1534. /package/dist/solutions-components/{p-19bce2cc.js → p-4fe489cf.js} +0 -0
@@ -0,0 +1,21 @@
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:"dd68b412fe4fbf053491eb1a7ec6a3c1703ceb17"},this._solutionIsLoaded?null:i("calcite-loader",{label:""}),i("div",{key:"b36eee569f4ca90453f0c3eca215576f8e98b95a",class:"configuration-container"},i("div",{key:"653f75751fc960cce09cbb653504600dbe6f01c7",class:"configuration"},i("calcite-tabs",{key:"de3dd520000f03cada90e7bb7964583e62adf229",class:"config-tabs"},i("calcite-tab-nav",{key:"846d714f94a2476314f7843682483e4cda407a7c",slot:"tab-nav"},i("calcite-tab-title",{key:"7146aced1bd7dd4928e2bd6c49d52ef3003aabc1"},this._translations.definitionTab),e?i("calcite-tab-title",null,this._translations.spatialReferenceTab):null),i("calcite-tab",{key:"5b8672dd8089a21a49139c2bedc4a9ab91d2b2e2",class:"config-tab",selected:!0},i("div",{key:"1bf9bf03f6418212807afc5657e807faa45557d6",class:"config-solution"},i("div",{key:"718a6a90a39844562d547e4e08abc4b133945a68",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:"25039c4b3c3e97d587fd3d3aec4791f53875d9bf",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:"5970c8ed59c6cb9fa02c574c3c1a3949940dfec6",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}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{l}from"./p-08ad0b7a.js";import{g as n}from"./p-89fbc318.js";import{c as o}from"./p-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}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as t,c as i,g as e,h as s,H as a}from"./p-e996c38f.js";import{g as h}from"./p-404cbf48.js";import{g as n,d as o,n as l}from"./p-dcd2f00b.js";import{s as r}from"./p-e6859850.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-80cb7c73.js";import"./p-8717729a.js";const c=class{constructor(e){t(this,e),this.beforeLayerSelectionChange=i(this,"beforeLayerSelectionChange",7),this.idsFound=i(this,"idsFound",7),this.noLayersFound=i(this,"noLayersFound",7),this.layerSelectionChange=i(this,"layerSelectionChange",7),this.appearance="transparent",this.defaultLayerId="",this.display="inline-block",this.enabledLayerIds=[],this.enabledTableIds=[],this.height=void 0,this.isMobile=void 0,this.locale=void 0,this.mapView=void 0,this.onlyShowUpdatableLayers=void 0,this.placeholderIcon="",this.selectedIds=[],this.scale="m",this.showTables=void 0,this.showTablesDisabled=void 0,this.showSingleLayerAsLabel=!1,this.type="select",this._hasMultipleLayers=!0,this._hasValidLayers=!0,this._isDropdownOpen=void 0,this.ids=[],this.selectedName="",this._translations=void 0}get el(){return e(this)}defaultLayerHonored=!1;_layerElement;_layerNameHash;_skipEditCheck=!1;_tableNameHash;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(){await this._setLayers(),this.ids.length>0?(this._hasValidLayers=!0,this._hasMultipleLayers=this.ids.length>1,this._setSelectedLayer(this.ids[0])):(this._hasValidLayers=!1,this.noLayersFound.emit())}async setLayerById(t,i=!1){this._skipEditCheck=i,this._setSelectedLayer(t),this._skipEditCheck=!1}async setLayerByIds(t,i=!1){this._skipEditCheck=i,this._layerSelectionChange(t),this._skipEditCheck=!1}async updateLayer(){this._setSelectedLayer(this.ids[0])}beforeLayerSelectionChange;idsFound;noLayersFound;layerSelectionChange;async componentWillLoad(){await this._getTranslations(),await this._setLayers()}async componentWillRender(){if(this.ids.length>0||1===this.selectedIds.length){const t=1===this.selectedIds.length?this.selectedIds[0]:this.ids[0];if(t!==this.selectedIds[0])this._setSelectedLayer(t);else{const t=await n(this.mapView,this.selectedIds[0]);this.selectedName=t?.title}}}render(){const t="map-layer-picker";let i=this.height>0?{height:`${this.height.toString()}px`}:{};return i={...i,display:this.display},s(a,{key:"a4d7a923fcf0b6ec488fafa3af8b3c3a9599d61a"},s("div",{key:"54d5cde231707391537fbd649647a5b9e86a1ab3",class:"map-layer-picker-container",style:i},s("div",{key:"1d1329f393778e561bfed22a1c1542cd75d4b55b",class:"map-layer-picker",style:i},this._hasValidLayers?!this._hasMultipleLayers&&this.showSingleLayerAsLabel?this._getSingleLayerPlaceholder():"combobox"===this.type?this._getCombobox(t):"select"===this.type?this._getSelect(t):this._getDropdown(t):this._getInvalidPlaceholder())))}async componentDidLoad(){if(this.ids.length>0||1===this.selectedIds.length){const t=1===this.selectedIds.length?this.selectedIds[0]:this.ids[0];"select"===this.type?this._layerElement.value=t:"dropdown"===this.type&&(this.selectedName=Object.keys(this._layerNameHash).indexOf(t)>-1?this._layerNameHash[t].name:Object.keys(this._tableNameHash).indexOf(t)>-1?this._tableNameHash[t].name:"")}}_getInvalidPlaceholder(){return s("div",null,s("calcite-notice",{class:"height-100",icon:"exclamation-mark-triangle",id:"no-valid-layers",kind:"danger",open:!0},s("div",{slot:"message"},this._translations.noLayersFound)),s("calcite-tooltip",{label:this._translations.enableEditUpdate,placement:"bottom","reference-element":"no-valid-layers"},s("span",null,this._translations.enableEditUpdate)))}_getSingleLayerPlaceholder(){const t=this._getItemTypeIcon();return s("div",{class:"layer-picker-label-container cursor-default"},s("calcite-icon",{icon:t,scale:"s"}),s("calcite-label",{class:"no-bottom-margin padding-start-1"},this.selectedName))}_getSelect(t){return s("calcite-select",{id:t,label:"",onCalciteSelectChange:()=>this._layerSelectionChange(),ref:t=>{this._layerElement=t},scale:this.scale},this._getMapLayerOptions())}_getCombobox(t){return s("calcite-combobox",{clearDisabled:!0,id:t,label:"",onCalciteComboboxChange:()=>this._layerSelectionChange(),"placeholder-icon":this.placeholderIcon,ref:t=>{this._layerElement=t},scale:this.scale,"selection-mode":"single"},this._getMapLayerOptions())}_getDropdown(t){return s("calcite-dropdown",{class:"layer-picker-dropdown",onCalciteDropdownBeforeClose:()=>this._isDropdownOpen=!1,onCalciteDropdownBeforeOpen:()=>this._isDropdownOpen=!0},this.isMobile?this._getDropdownButton():this._getActionDropdownButton(t),s("calcite-dropdown-group",{"selection-mode":"single"},this._getMapLayerOptions()))}_getActionDropdownButton(t){return s("calcite-action",{id:t,slot:"trigger",text:""},this._getDropdownButton())}_getDropdownButton(){const t=this._getItemTypeIcon();return s("calcite-button",{alignment:"icon-end-space-between",appearance:this.appearance,class:this.isMobile?"":"max-width-350",iconEnd:this._isDropdownOpen?"chevron-up":"chevron-down",iconStart:t,kind:"neutral",slot:this.isMobile?"trigger":"",width:"full"},s("div",null,this.selectedName))}_getItemTypeIcon(){let t="layers";if(this.selectedIds.length>0){const i=this.selectedIds[0];t=Object.keys(this._layerNameHash).indexOf(i)>-1?"layers":"table"}return t}_getMapLayerOptions(){return this.ids.reduce(((t,i)=>(this._validLayer(i)?t.push(this._getItem(i,"layer")):this._validTable(i)&&t.push(this._getItem(i,"table")),t)),[])}_getItem(t,i){const e="layer"===i?this._layerNameHash[t]:this._tableNameHash[t],a=!!this.onlyShowUpdatableLayers&&!e.supportsUpdate,h=e.name,n=this.selectedIds.indexOf(t)>-1;return"combobox"===this.type?s("calcite-combobox-item",{disabled:a,selected:n,textLabel:h,value:t}):"select"===this.type?s("calcite-option",{disabled:a,label:h,selected:n,value:t}):s("calcite-dropdown-group",{class:a?"disabled":"",selectionMode:a?"none":"single"},s("calcite-dropdown-item",{disabled:"table"===i&&this.showTablesDisabled,"icon-start":i,onClick:a?void 0:()=>{this._setSelectedLayer(t)},selected:n},h))}_setSelectedLayer(t){let i;this.defaultLayerId&&!this.defaultLayerHonored&&(i=this._getLayerFromHash(this.defaultLayerId),this.defaultLayerHonored=void 0!==i,t=this.defaultLayerHonored?this.defaultLayerId:t),i=i||this._getLayerFromHash(t),(this._skipEditCheck||!this.beforeLayerSelectionChange.emit({currentId:this.selectedIds[0],newId:t,ref:this.el}).defaultPrevented)&&(this.selectedName=i?.name,this.selectedIds=[t],this.layerSelectionChange.emit(this.selectedIds))}_getLayerFromHash(t){return Object.keys(this._layerNameHash).indexOf(t)>-1?this._layerNameHash[t]:Object.keys(this._tableNameHash).indexOf(t)>-1?this._tableNameHash[t]:void 0}async _setLayers(){if(this.mapView){await this._initLayerTableHash();const t=this.onlyShowUpdatableLayers?this._getEditableIds(this._layerNameHash):Object.keys(this._layerNameHash),i=this.showTables?this.onlyShowUpdatableLayers?this._getEditableIds(this._tableNameHash):Object.keys(this._tableNameHash):[];this.ids=[...t.reverse().filter((t=>!(this.enabledLayerIds?.length>0)||this.enabledLayerIds.reverse().indexOf(t)>-1)),...i.reverse().filter((t=>!(this.enabledTableIds?.length>0)||this.enabledTableIds.reverse().indexOf(t)>-1))],this.idsFound.emit({layerIds:t,tableIds:i})}}_getEditableIds(t){return Object.keys(t).reduce(((i,e)=>(t[e].supportsUpdate&&i.push(e),i)),[])}async _initLayerTableHash(){this._layerNameHash=await o(this.mapView,this.onlyShowUpdatableLayers),this._tableNameHash=this.showTables?await l(this.mapView,this.onlyShowUpdatableLayers):{}}_validLayer(t){const i=this._layerNameHash[t]?.name;return i&&Object.keys(r.managedLayers).indexOf(i)<0&&(!(this.enabledLayerIds.length>0)||this.enabledLayerIds.indexOf(t)>-1)}_validTable(t){const i=this._tableNameHash[t]?.name,e=i&&this.showTables;return e?r.managedTables.indexOf(i)<0&&(!(this.enabledTableIds.length>0)||this.enabledTableIds.indexOf(t)>-1):e}_layerSelectionChange(t){const i=t||(Array.isArray(this._layerElement.value)?this._layerElement.value:[this._layerElement.value]);if(JSON.stringify(i)!==JSON.stringify([""])){if(!this._skipEditCheck&&this.beforeLayerSelectionChange.emit({currentIds:this.selectedIds,newIds:i,ref:this.el}).defaultPrevented)return;this.selectedIds=i,this.layerSelectionChange.emit(this.selectedIds)}}async _getTranslations(){const t=await h(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"]}}};c.style=":host{display:block}.map-layer-picker-container{width:100%;align-items:center}.map-layer-picker{position:relative;width:100%;display:inline-block}.padding-bottom-1{padding-bottom:1rem}.layer-picker-dropdown{height:100%;width:100%}.max-width-350{max-width:350px}.height-100{height:100%}.disabled{cursor:default !important;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.no-bottom-margin{--calcite-label-margin-bottom:0px}.layer-picker-label-container{align-items:center;display:inline-flex;height:100%;padding-inline-start:1rem;padding-inline-end:1rem}.padding-start-1{padding-inline-start:1rem}.cursor-default{cursor:default}";export{c as map_layer_picker}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{l}from"./p-08ad0b7a.js";async function n(n,t,e){const[o]=await l(["esri/layers/effects/jsonUtils"]),{toJSON:s,fromJSON:i}=o,c=null==t?void 0:t.layer;if(!n)return(null==c?void 0:c.effect)?c.effect:(null==c?void 0:c.featureEffect)?"includedEffect"===e?c.featureEffect.includedEffect:c.featureEffect.excludedEffect:null;const f=s(n);let r;r=c.featureEffect?"includedEffect"===e?c.featureEffect.includedEffect:c.featureEffect.excludedEffect:c.effect;const u=r?s(r):null;if(!u)return i(f);let a=[...u];return f&&f.forEach((l=>{a.forEach((n=>{const{value:t}=n;if(t)t.forEach(((e,o)=>{e.type===l.type?t[o]=l:!n.value.find((l=>l.type===f[0].type))&&(n.value=[...n.value,...f])}));else{const t=!a.find((l=>l.type===n.type));!a.find((n=>n.type===l.type))&&(a=[...a,l]),t&&(a=[...a,n])}}))})),i(a)}export{n as g}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as a,c as t,h as n,H as s,F as e,g as l}from"./p-e996c38f.js";import{i as r,g as i,a as g,s as o,E as u,b as p,l as d,c,u as h}from"./p-1e1dfef6.js";import{l as m}from"./p-08ad0b7a.js";import{c as v}from"./p-2884ca49.js";import{g as T,f as k}from"./p-174fa218.js";import"./p-8717729a.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-ac122d9e.js";const b={full:{ar:{language:"Arabic",translated:"عربي"},bg:{language:"Bulgarian",translated:"Български"},bs:{language:"Bosnian",translated:"Bosanski"},ca:{language:"Catalan",translated:"Català"},cs:{language:"Czech",translated:"čeština"},da:{language:"Danish",translated:"Dansk"},de:{language:"German",translated:"Deutsch"},el:{language:"Greek",translated:"Ελλάδα"},en:{language:"English",translated:"English"},es:{language:"Spanish",translated:"Español"},et:{language:"Estonian",translated:"Eesti"},fi:{language:"Finnish",translated:"Suomi"},fr:{language:"French",translated:"Français"},he:{language:"Hebrew",translated:"עברית"},hr:{language:"Croatian",translated:"Hrvatski"},hu:{language:"Hungarian",translated:"Magyar"},id:{language:"Indonesian",translated:"Bahasa Indonesia",supportsAutoTranslate:!0},it:{language:"Italian",translated:"Italiano"},ja:{language:"Japanese",translated:"日本語"},ko:{language:"Korean",translated:"한국어"},lt:{language:"Lithuanian",translated:"Lietuvių"},lv:{language:"Latvian",translated:"Latviešu"},nb:{language:"Norwegian",translated:"Norsk"},nl:{language:"Dutch",translated:"Nederlands"},pl:{language:"Polish",translated:"Polski"},"pt-BR":{language:"Portuguese (Brazil)",translated:"Português (Brasil)"},"pt-PT":{language:"Portuguese (Portugal)",translated:"Português (Portugal)"},ro:{language:"Romanian",translated:"Română"},ru:{language:"Russian",translated:"Русский"},sk:{language:"Slovak",translated:"Slovenčina"},sl:{language:"Slovenian",translated:"Slovenščina"},sr:{language:"Serbian",translated:"Srpski"},sv:{language:"Swedish",translated:"Svenska"},th:{language:"Thai",translated:"ไทย"},tr:{language:"Turkish",translated:"Türkiye"},uk:{language:"Ukrainian",translated:"Україна"},vi:{language:"Vietnamese",translated:"Tiếng Việt"},"zh-CN":{language:"Simplified Chinese",translated:"简体中文"},"zh-HK":{language:"Traditional Chinese (Hong Kong)",translated:"繁體中文(香港)"},"zh-TW":{language:"Traditional Chinese (Taiwan)",translated:"繁體中文(台灣)"}},partial:{ab:{language:"Abkhaz",translated:"Аҧсуа"},aa:{language:"Afar",translated:"Afar"},af:{language:"Afrikaans",translated:"Afrikaans",supportsAutoTranslate:!0},ak:{language:"Akan",translated:"Akan"},sq:{language:"Albanian",translated:"Shqip",supportsAutoTranslate:!0},am:{language:"Amharic",translated:"አማርኛ",supportsAutoTranslate:!0},an:{language:"Aragonese",translated:"Aragonés"},hy:{language:"Armenian",translated:"Հայերեն",supportsAutoTranslate:!0},as:{language:"Assamese",translated:"অসমীয়া",supportsAutoTranslate:!0},av:{language:"Avaric",translated:"авар мацӀ"},ae:{language:"Avestan",translated:"Avesta"},ay:{language:"Aymara",translated:"aymar aru"},az:{language:"Azerbaijani",translated:"azərbaycan dili"},bm:{language:"Bambara",translated:"bamanankan"},ba:{language:"Bashkir",translated:"Башҡорт теле",supportsAutoTranslate:!0},eu:{language:"Basque",translated:"euskara",supportsAutoTranslate:!0},be:{language:"Belarusian",translated:"Беларуская"},bn:{language:"Bengali",translated:"বাংলা"},bh:{language:"Bihari",translated:"भोजपुरी"},bi:{language:"Bislama",translated:"Bislama"},br:{language:"Breton",translated:"Brezhoneg"},my:{language:"Burmese",translated:"ဗမာစာ"},ch:{language:"Chamorro",translated:"Chamoru"},ce:{language:"Chechen",translated:"нохчийн мотт"},ny:{language:"Chichewa",translated:"chiCheŵa"},cu:{language:"Church Slavic",translated:"ѩзыкъ словѣньскъ"},cv:{language:"Chuvash",translated:"чӑваш чӗлхи"},kw:{language:"Cornish",translated:"Kernewek"},co:{language:"Corsican",translated:"corsu"},cr:{language:"Cree",translated:"ᓀᐦᐃᔭᐍᐏᐣ"},dv:{language:"Divehi",translated:"ދިވެހި",supportsAutoTranslate:!0},eo:{language:"Esperanto",translated:"Esperanto"},ee:{language:"Ewe",translated:"Ɛʋɛgbɛ"},fo:{language:"Faroese",translated:"føroyskt",supportsAutoTranslate:!0},fj:{language:"Fijian",translated:"Vosa Vakaviti"},ff:{language:"Fulah",translated:"Fulfulde"},gl:{language:"Galician",translated:"galego",supportsAutoTranslate:!0},ka:{language:"Georgian",translated:"ქართული",supportsAutoTranslate:!0},gn:{language:"Guarani",translated:"Avañe'ẽ"},gu:{language:"Gujarati",translated:"ગુજરાતી",supportsAutoTranslate:!0},ht:{language:"Haitian Creole",translated:"Kreyòl Ayisyen",supportsAutoTranslate:!0},ha:{language:"Hausa",translated:"هَوُسَ",supportsAutoTranslate:!0},hz:{language:"Herero",translated:"Otjiherero"},hi:{language:"Hindi",translated:"हिन्दी"},ho:{language:"Hiri Motu",translated:"Hiri Motu"},is:{language:"Icelandic",translated:"Íslenska",supportsAutoTranslate:!0},io:{language:"Ido",translated:"Ido"},ig:{language:"Igbo",translated:"Asụsụ Igbo",supportsAutoTranslate:!0},ia:{language:"Interlingua",translated:"Interlingua"},ie:{language:"Interlingue",translated:"Interlingue"},iu:{language:"Inuktitut",translated:"ᐃᓄᒃᑎᑐᑦ",supportsAutoTranslate:!0},ip:{language:"Inupiaq",translated:"Iñupiaq"},ga:{language:"Irish",translated:"Gaeilge",supportsAutoTranslate:!0},jv:{language:"Javanese",translated:"ꦧꦱꦗꦮ"},kl:{language:"Kalaallisut",translated:"kalaallisut"},kn:{language:"Kannada",translated:"ಕನ್ನಡ",supportsAutoTranslate:!0},kr:{language:"Kanuri",translated:"Kanuri"},ks:{language:"Kashmiri",translated:"कश्मीरी",supportsAutoTranslate:!0},kk:{language:"Kazakh",translated:"қазақ тілі",supportsAutoTranslate:!0},km:{language:"Khmer",translated:"ខ្មែរ",supportsAutoTranslate:!0},ki:{language:"Kikuyu",translated:"Gĩkũyũ"},rw:{language:"Kinyarwanda",translated:"Kinyarwanda",supportsAutoTranslate:!0},rn:{language:"Kirundi",translated:"Ikirundi"},kv:{language:"Komi",translated:"коми кыв"},kg:{language:"Kongo",translated:"Kikongo"},ku:{language:"Kurdish",translated:"Kurdî",supportsAutoTranslate:!0},kj:{language:"Kwanyama",translated:"Kuanyama"},ky:{language:"Kyrgyz",translated:"Кыргызча"},lo:{language:"Lao",translated:"ພາສາລາວ",supportsAutoTranslate:!0},la:{language:"Latin",translated:"latine"},li:{language:"Limburgish",translated:"Limburgs"},ln:{language:"Lingala",translated:"Lingála"},lu:{language:"Luba-Katanga",translated:"Kiluba"},lg:{language:"Luganda",translated:"Luganda"},lb:{language:"Luxembourgish",translated:"Lëtzebuergesch"},mk:{language:"Macedonian",translated:"македонски јазик",supportsAutoTranslate:!0},mg:{language:"Malagasy",translated:"fiteny malagasy",supportsAutoTranslate:!0},ms:{language:"Malay",translated:"Bahasa Melayu",supportsAutoTranslate:!0},ml:{language:"Malayalam",translated:"മലയാളം",supportsAutoTranslate:!0},mt:{language:"Maltese",translated:"Malti",supportsAutoTranslate:!0},gv:{language:"Manx",translated:"Gailck"},mi:{language:"Maori",translated:"te reo Māori",supportsAutoTranslate:!0},mr:{language:"Marathi",translated:"मराठी",supportsAutoTranslate:!0},mh:{language:"Marshallese",translated:"Kajin M̧ajeļ"},mn:{language:"Mongolian",translated:"Монгол хэл"},na:{language:"Nauru",translated:"Ekakairũ Naoero"},nv:{language:"Navajo",translated:"Diné bizaad"},ng:{language:"Ndonga",translated:"Owambo"},ne:{language:"Nepali",translated:"नेपाली",supportsAutoTranslate:!0},nd:{language:"North Ndebele",translated:"isiNdebele"},se:{language:"Northern Sami",translated:"Davvisámegiella"},no:{language:"Norwegian",translated:"Norsk"},nn:{language:"Norwegian Nynorsk",translated:"Norsk nynorsk"},ii:{language:"Nuosu",translated:"ꆈꌠ꒿ Nuosuhxop"},oc:{language:"Occitan",translated:"occitan"},oj:{language:"Ojibwe",translated:"ᐊᓂᔑᓈᐯᒧᐎᓐ"},or:{language:"Oriya",translated:"ଓଡ଼ିଆ",supportsAutoTranslate:!0},om:{language:"Oromo",translated:"Afaan Oromoo"},os:{language:"Ossetian",translated:"ирон æвзаг"},pi:{language:"Pali",translated:"पाऴि"},pa:{language:"Panjabi",translated:"ਪੰਜਾਬੀ"},ps:{language:"Pashto",translated:"پښتو",supportsAutoTranslate:!0},fa:{language:"Persian",translated:"فارسی",supportsAutoTranslate:!0},qu:{language:"Quechua",translated:"Runa Simi"},rm:{language:"Romansh",translated:"rumantsch grischun"},sm:{language:"Samoan",translated:"gagana fa'a Samoa",supportsAutoTranslate:!0},sg:{language:"Sango",translated:"yângâ tî sängö"},sa:{language:"Sanskrit",translated:"संस्कृतम्"},sc:{language:"Sardinian",translated:"sardu"},gd:{language:"Scottish Gaelic",translated:"Gàidhlig"},sn:{language:"Shona",translated:"chiShona"},sd:{language:"Sindhi",translated:"सिन्धी",supportsAutoTranslate:!0},si:{language:"Sinhala",translated:"සිංහල",supportsAutoTranslate:!0},so:{language:"Somali",translated:"Soomaaliga",supportsAutoTranslate:!0},nr:{language:"South Ndebele",translated:"isiNdebele"},st:{language:"Southern Sotho",translated:"Sesotho"},su:{language:"Sundanese",translated:"Basa Sunda"},sw:{language:"Swahili",translated:"Kiswahili",supportsAutoTranslate:!0},ss:{language:"Swati",translated:"SiSwati"},tl:{language:"Tagalog",translated:"Wikang Tagalog"},ty:{language:"Tahitian",translated:"Reo Tahiti",supportsAutoTranslate:!0},tg:{language:"Tajik",translated:"тоҷикӣ"},ta:{language:"Tamil",translated:"தமிழ்",supportsAutoTranslate:!0},tt:{language:"Tatar",translated:"татар теле",supportsAutoTranslate:!0},te:{language:"Telugu",translated:"తెలుగు",supportsAutoTranslate:!0},bo:{language:"Tibetan",translated:"བོད་ཡིག",supportsAutoTranslate:!0},ti:{language:"Tigrinya",translated:"ትግርኛ",supportsAutoTranslate:!0},to:{language:"Tonga",translated:"faka Tonga",supportsAutoTranslate:!0},ts:{language:"Tsonga",translated:"Xitsonga"},tn:{language:"Tswana",translated:"Setswana"},tk:{language:"Turkmen",translated:"Türkmen",supportsAutoTranslate:!0},tw:{language:"Twi",translated:"Twi"},ug:{language:"Uighur",translated:"Uyƣurqə"},ur:{language:"Urdu",translated:"اردو",supportsAutoTranslate:!0},uz:{language:"Uzbek",translated:"O'zbek",supportsAutoTranslate:!0},ve:{language:"Venda",translated:"Tshivenḓa"},vo:{language:"Volapük",translated:"Volapük"},wa:{language:"Walloon",translated:"walon"},cy:{language:"Welsh",translated:"Cymraeg",supportsAutoTranslate:!0},fy:{language:"Western Frisian",translated:"Frysk"},wo:{language:"Wolof",translated:"Wollof"},xh:{language:"Xhosa",translated:"isiXhosa",supportsAutoTranslate:!0},yi:{language:"Yiddish",translated:"ייִדיש"},yo:{language:"Yoruba",translated:"Yorùbá",supportsAutoTranslate:!0},za:{language:"Zhuang",translated:"Saɯ cueŋƅ"},zu:{language:"Zulu",translated:"isiZulu",supportsAutoTranslate:!0}}},_="instant-apps-language-translator",y={BASE:_,header:`${_}__header`,headerText:`${_}__header-text`,savingIndicator:`${_}__saving-indicator`,closeButton:`${_}__close-button`,headerTip:`${_}__header-tip`,topBar:`${_}__top-bar`,topBarSection:`${_}__top-bar-section`,collapseSearchContainer:`${_}__collapse-search-container`,userLangText:`${_}__user-lang-text`,lastItem:`${_}--last-item`,writingIcon:`${_}__writing-icon`,primaryContent:`${_}__primary-content`,lastAutoSave:`${_}__last-auto-save`},A=class{constructor(n){a(this,n),this.translatorDataUpdated=t(this,"translatorDataUpdated",7),this.portalItem=void 0,this.appSettings=void 0,this.locales=void 0,this.open=!1,this.userLocaleInputOnChangeCallback=void 0,this.translatedLocaleInputOnChangeCallback=void 0,this.saving=!1,this.messages=void 0,this.isCollapse=!0}handleT9nItemUpdate(){this.translatorDataUpdated.emit()}handleLocaleChange(){this.initUIData(),this.initSelectLanguage()}handleAppSettings(){this.initUIData(),this.initSelectLanguage()}componentWillLoad(){r()}async componentDidLoad(){this.initialize()}async initialize(){const[a,t]=await m(["esri/intl","esri/request"]);this.intl=a,this.request=t,await this.initMessages(),this.initUIData(),this.initPortalItemResourceT9nData(),this.initSelectLanguage()}async initMessages(){try{const{el:a}=this,t=await i(a);return this.messages=t,Promise.resolve()}catch(a){return Promise.reject()}}initUIData(){const{appSettings:a,locales:t}=this,n=g(a,t);o.set("uiData",n)}initSelectLanguage(){var a,t;if(!this.intl)return;const{locales:n}=this,s=null!==(t=null===(a=null==n?void 0:n[0])||void 0===a?void 0:a.locale)&&void 0!==t?t:this.intl.getLocale(),e=o.get("currentLanguage");0===this.locales.filter((a=>a.locale===e)).length&&o.set("currentLanguage",s)}async initPortalItemResourceT9nData(){try{const a=await T(this.portalItem);o.set("portalItemResource",a);const t=await k(a);o.set("lastSave",t.lastSave),o.set("portalItemResourceT9n",null!=t?t:{})}catch(a){}}render(){return n(s,{key:"ca098bb65294625c8e99c35a5ffa803f2bb84d18"},this.renderDialog(),this.renderPopoverTip())}renderDialog(){return n("calcite-dialog",{open:this.open,scale:"l",placement:"cover",onCalciteDialogClose:this.close.bind(this)},this.renderHeader(),this.renderContent(),this.renderPrimaryContent())}renderPopoverTip(){var a;return n("calcite-popover",{label:"",referenceElement:"headerTip",placement:"trailing","auto-close":!0,closable:!0},n("div",{class:y.headerTip},null===(a=this.messages)||void 0===a?void 0:a.headerTip))}renderHeader(){return n("header",{class:y.header,slot:"header-content"},this.renderHeaderText())}renderHeaderText(){const{messages:a}=this;return n("div",{class:y.headerText},n("span",null,null==a?void 0:a.header),n("calcite-button",{id:"headerTip",appearance:"transparent"},n("calcite-icon",{icon:u.Popover,scale:"s"})))}renderSavingIndicator(){var a;const t=null===(a=this.messages)||void 0===a?void 0:a.saving;return n("div",{class:y.savingIndicator},n("calcite-loader",{label:t,inline:!0}),n("span",null,t))}renderContent(){const a=p(this.locales);return n("div",null,this.renderTopBar(),(null==a?void 0:a.length)>0?this.renderUIData():this.renderNotice())}renderTopBar(){return n("div",{class:y.topBar},this.renderLeadingTopBarSection(),this.renderTrailingTopBarSection())}renderLeadingTopBarSection(){return n("div",{class:y.topBarSection},this.renderUserLocale(),this.renderCollapseSearchContainer())}renderUserLocale(){var a;const t=null===(a=this.messages)||void 0===a?void 0:a.languages,s=v();return n("div",{class:y.userLangText},null==t?void 0:t[s])}renderCollapseSearchContainer(){return n("div",{class:y.collapseSearchContainer},this.renderExpandCollapseButton(),this.renderSearch())}renderExpandCollapseButton(){const{isCollapse:a,messages:t}=this,s=a?null==t?void 0:t.collapseAll:null==t?void 0:t.expandAll;return n(e,null,n("slot",{name:"primary-custom-action"}),n("slot",{name:"secondary-custom-action"}),n("calcite-button",{onClick:this.handleExpandCollapseAll.bind(this),appearance:"transparent","icon-start":u.ExpandCollapse},s))}renderSearch(){var a;return n("instant-apps-language-translator-search",{onSuggestionSelected:this.onSuggestionSelect.bind(this),t9nPlaceholder:null===(a=this.messages)||void 0===a?void 0:a.searchPlaceholder})}renderTrailingTopBarSection(){return n("div",{class:y.topBarSection},this.renderLanguageSelection(),n("slot",{name:"translation-custom-action"}))}renderLanguageSelection(){var a;return n("calcite-label",{layout:"inline"},null===(a=this.messages)||void 0===a?void 0:a.translatedLanguage,n("calcite-select",{label:"",onCalciteSelectChange:this.handleLanguageSelection.bind(this)},this.renderTranslatedLangOptions()))}renderTranslatedLangOptions(){const a=o.get("uiData"),t=null==a?void 0:a.get("locales"),s=p(t),e=Object.keys(b.partial);return null==s?void 0:s.map((a=>{const t=-1!==e.indexOf(a),s=b[t?"partial":"full"],{language:l,translated:r}=s[a];return n("calcite-option",{key:`translated-lang-option-${a}`,value:a},`${l} - ${r}`)}))}renderUIData(){if(!(null==d?void 0:d.uiData))return;const a=c();return n("div",null,null==a?void 0:a.map(((t,n)=>this.renderUIDataItem(t,n,a.length))))}renderNotice(){var a;const t=null===(a=this.messages)||void 0===a?void 0:a.noLanguage;return n("calcite-notice",{open:!0,icon:"exclamation-mark-triangle",kind:"warning"},n("div",{slot:"title"},null==t?void 0:t.title),n("div",{slot:"message"},null==t?void 0:t.message))}renderUIDataItem(a,t,s){var e,l;const r=null===(l=null===(e=this.appSettings)||void 0===e?void 0:e.translatedLanguageLabels)||void 0===l?void 0:l[d.currentLanguage],i=`${t===s-1?y.lastItem:""}`,g=this.appSettings.content.filter((t=>t.id===a))[0];return n("instant-apps-language-translator-item",{key:`${a}-${t}`,class:i,fieldName:a,translatedLanguageLabels:r,setting:g,userLocaleInputOnChangeCallback:async(a,t)=>{try{await this.userLocaleInputOnChangeCallback(a,t);const n=o.get("portalItemResource");h(n)}catch(a){}},translatedLocaleInputOnChangeCallback:async(a,t,n,s)=>{try{await this.translatedLocaleInputOnChangeCallback(a,t,n,s),h(s)}catch(a){}}})}renderPrimaryContent(){var a,t;return n("div",{class:y.primaryContent,slot:"footer-end"},o.get("saving")?this.renderSavingIndicator():null,o.get("lastSave")?n("span",{key:"last-save",class:y.lastAutoSave},null===(a=this.messages)||void 0===a?void 0:a.lastAutoSave," ",this.intl.formatDate(o.get("lastSave"))):null,n("calcite-button",{onClick:()=>this.open=!1,class:y.closeButton},null===(t=this.messages)||void 0===t?void 0:t.close))}handleExpandCollapseAll(){this.isCollapse=!this.isCollapse;const a=new Map(d.uiData);c().forEach((t=>a.get(t).expanded=this.isCollapse)),o.set("uiData",a)}onSuggestionSelect(a){const t=a.detail,n=new Map(d.uiData);c().forEach((a=>{n.get(a).selected=a===t})),o.set("uiData",n)}close(){this.open=!1}handleLanguageSelection(a){o.set("currentLanguage",a.target.value)}async getTranslationData(){return o.get("portalItemResourceT9n")}async setTranslationData(a){return o.set("portalItemResourceT9n",a)}async getPortalItemResource(){return o.get("portalItemResource")}async batchWriteToPortalItemResource(a){o.set("saving",!0);try{const t=await this.getPortalItemResource(),n=Date.now();o.set("lastSave",n);const s=JSON.stringify(Object.assign(Object.assign({},a),{lastSave:n})),e=new Blob([s],{type:"application/json"});return await t.update(e),setTimeout((()=>o.set("saving",!1)),1500),this.translatorDataUpdated.emit(),Promise.resolve()}catch(a){return console.error("Error writing to portal item resource: ",a),o.set("saving",!1),Promise.reject()}}get el(){return l(this)}static get watchers(){return{locales:["handleLocaleChange"],appSettings:["handleAppSettings"]}}};A.style=".sc-instant-apps-language-translator-h{display:block}.sc-instant-apps-language-translator-h calcite-modal.sc-instant-apps-language-translator{--calcite-modal-content-padding:0}.sc-instant-apps-language-translator-h .instant-apps-language-translator__header.sc-instant-apps-language-translator{display:flex;justify-content:space-between;width:100%}.sc-instant-apps-language-translator-h .instant-apps-language-translator__header-text.sc-instant-apps-language-translator{font-size:18px}.sc-instant-apps-language-translator-h .instant-apps-language-translator__saving-indicator.sc-instant-apps-language-translator{display:flex;align-items:center;font-size:14.5px;color:var(--calcite-color-brand)}.sc-instant-apps-language-translator-h .instant-apps-language-translator__writing-icon.sc-instant-apps-language-translator{display:flex;justify-content:center;align-items:center;margin-right:5px}.sc-instant-apps-language-translator-h .instant-apps-language-translator__close-button.sc-instant-apps-language-translator{width:175px}.sc-instant-apps-language-translator-h .instant-apps-language-translator__header-tip.sc-instant-apps-language-translator{padding:20px;max-width:45vw}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar.sc-instant-apps-language-translator{display:flex;width:100%;position:sticky;top:-2%;background:var(--calcite-color-foreground-1);z-index:1}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar.sc-instant-apps-language-translator calcite-label.sc-instant-apps-language-translator{--calcite-label-margin-bottom:0;font-weight:var(--calcite-font-weight-medium)}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar-section.sc-instant-apps-language-translator{box-sizing:border-box;display:flex;align-items:center;width:50%;padding:0.5%}.sc-instant-apps-language-translator-h .instant-apps-language-translator__user-lang-text.sc-instant-apps-language-translator{font-weight:var(--calcite-font-weight-medium)}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar-section.sc-instant-apps-language-translator:first-child{display:flex;justify-content:space-between}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar-section.sc-instant-apps-language-translator:nth-child(2) calcite-select.sc-instant-apps-language-translator{width:255px}.sc-instant-apps-language-translator-h .instant-apps-language-translator__collapse-search-container.sc-instant-apps-language-translator{display:flex;justify-content:space-between}.sc-instant-apps-language-translator-h .instant-apps-language-translator__collapse-search-container.sc-instant-apps-language-translator calcite-input.sc-instant-apps-language-translator{width:300px;margin-left:30px}.sc-instant-apps-language-translator-h .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator{display:flex;align-items:center}.sc-instant-apps-language-translator-h .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator .instant-apps-language-translator__close-button.sc-instant-apps-language-translator,.sc-instant-apps-language-translator-h .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator .instant-apps-language-translator__saving-indicator.sc-instant-apps-language-translator,.sc-instant-apps-language-translator-h .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator .instant-apps-language-translator__last-auto-save.sc-instant-apps-language-translator{margin-right:20px}.ck.ck-reset.ck-editor.ck-rounded-corners.sc-instant-apps-language-translator{margin-top:10px !important;margin-left:55px !important}.ck-editor__editable.sc-instant-apps-language-translator{height:70px !important;font-size:0.875rem !important;line-height:1.375 !important}.ck.ck-editor__editable_inline.sc-instant-apps-language-translator>.sc-instant-apps-language-translator:first-child,.ck.ck-editor__editable_inline.sc-instant-apps-language-translator>.sc-instant-apps-language-translator:last-child{--ck-spacing-large:0.5rem !important}html[dir=rtl] .sc-instant-apps-language-translator-h .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator .instant-apps-language-translator__close-button.sc-instant-apps-language-translator,html[dir=rtl] .sc-instant-apps-language-translator-h .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator .instant-apps-language-translator__saving-indicator.sc-instant-apps-language-translator,html[dir=rtl] .sc-instant-apps-language-translator-h .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator .instant-apps-language-translator__last-auto-save.sc-instant-apps-language-translator{margin-right:unset;margin-left:20px}";export{A as instant_apps_language_translator}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as t,c as n,h as i,H as s,g as e}from"./p-e996c38f.js";import{l as o}from"./p-08ad0b7a.js";import{g as r}from"./p-2884ca49.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}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as t,c as i,h as s,H as o,g as e}from"./p-e996c38f.js";import{l as n}from"./p-08ad0b7a.js";import{b as a}from"./p-2884ca49.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}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as t,h as i,g as o}from"./p-e996c38f.js";import{g as n}from"./p-2884ca49.js";import"./p-08ad0b7a.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-ac122d9e.js";const a=class{constructor(i){t(this,i),this.popoverTitle=void 0,this.subtitle=void 0,this.content=void 0,this.imgSrc=void 0,this.imgAlt=void 0,this.mediaSrc=void 0,this.index=void 0,this.referenceElement=void 0,this.parent=void 0,this.placement="trailing-start",this.refId=void 0,this.pagination=!1,this.disableAction=!1,this.popoverAction=void 0,this.messages=void 0,this.messageOverrides=void 0}async componentDidLoad(){n(this,this.messageOverrides)}componentDidUpdate(){this.popoverEl.referenceElement=this.referenceElement}render(){var t,o,n,a,e;return i("calcite-popover",{key:"3849f154df2469bc69e860169af0eb64c4f77762",ref:t=>this.popoverEl=t,heading:this.popoverTitle,"auto-close":!0,placement:this.placement,messageOverrides:{close:null===(t=this.messages)||void 0===t?void 0:t.close},"trigger-disabled":!0,"ref-id":this.refId,closable:!0,referenceElement:this.referenceElement,label:this.popoverTitle},i("div",{key:"7a718011648474a15322e6857f96b5ffff2a8c0b",class:"instant-apps-popover__content"+(this.disableAction?" instant-apps-popover--action-disabled":"")},this.disableAction?null:i("calcite-action",{key:"popover-action",class:"instant-apps-popover__action",onClick:this.popoverAction,icon:"rtl"===document.dir?"chevron-right":"chevron-left",compact:!0,"text-enabled":!0,text:(null===(o=this.messageOverrides)||void 0===o?void 0:o.popoverAction)?this.messageOverrides.popoverAction:this.messages.back}),i("section",{key:"2455c7714dce23fe24b30564d02cfbe7c1038a6f"},i("span",{key:"f986951bea30dabd88bbafdba5c7bd041999fd4e",id:"subtitle"},this.subtitle),i("p",{key:"f2b632aae0a34a0fbbbec3e003cca6f7cfcd9343"},this.content),this.imgSrc?i("img",{key:`iac-popover-img-${this.refId}`,class:"instant-apps-popover__img",src:this.imgSrc,alt:this.imgAlt?this.imgAlt:""}):null),this.pagination?i("div",{key:`iac-popover-footer-${this.index}`,class:"instant-apps-popover__footer"},i("span",null,this.index+1," ",null===(n=this.messages)||void 0===n?void 0:n.of," ",null===(e=null===(a=this.parent)||void 0===a?void 0:a.instantAppsPopovers)||void 0===e?void 0:e.size),this.renderPagination()):null))}renderPagination(){var t,o;const{index:n,messages:a,parent:e}=this,s=n===(null===(o=null===(t=this.parent)||void 0===t?void 0:t.instantAppsPopovers)||void 0===o?void 0:o.size)-1;return i("div",{key:"pagination-button-container",class:"instant-apps-popover__button-container"},0===n?null:i("calcite-button",{key:"prev",onClick:()=>null==e?void 0:e.previous(),appearance:"outline",kind:"neutral"},null==a?void 0:a.back),i("calcite-button",{key:"next",onClick:()=>{s?null==e||e.done():null==e||e.next()}},s?null==a?void 0:a.done:null==a?void 0:a.next))}get el(){return o(this)}};a.style=":host{display:block}.instant-apps-popover__content{display:flex;flex-direction:column;padding:0 5% 5% 5%;max-width:35vw;font-family:var(--calcite-sans-family);font-size:0.875rem}.instant-apps-popover__content .instant-apps-popover__action{align-self:flex-start;--calcite-color-foreground-2:transparent}.instant-apps-popover__content span{display:inline-block;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);margin:0 0 10px 0;font-family:var(--calcite-sans-family)}.instant-apps-popover__content p{line-height:19.12px;margin:0;margin-bottom:10px;font-family:var(--calcite-sans-family)}.instant-apps-popover__content .instant-apps-popover__footer{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.instant-apps-popover__content .instant-apps-popover__footer span{margin-bottom:0;font-weight:normal;font-size:0.875rem;font-family:var(--calcite-sans-family)}.instant-apps-popover__content .instant-apps-popover__footer calcite-button:first-child{--calcite-color-foreground-3:transparent}.instant-apps-popover__content .instant-apps-popover__footer calcite-button:last-child{margin-left:5px}.instant-apps-popover__content .instant-apps-popover__img{width:100%;margin-bottom:10px}.instant-apps-popover__content.instant-apps-popover--action-disabled{padding:5%}.instant-apps-popover__content.instant-apps-popover--action-disabled #subtitle{margin:0 0 10px 0}";export{a as instant_apps_popover}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as t,c as i,g as s,h as e,H as a}from"./p-e996c38f.js";import{l as h,g as n}from"./p-404cbf48.js";import{f as l}from"./p-80cb7c73.js";import{s as r}from"./p-e6859850.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-8717729a.js";const o=class{constructor(s){t(this,s),this.bufferComplete=i(this,"bufferComplete",7),this.distanceChanged=i(this,"distanceChanged",7),this.unitChanged=i(this,"unitChanged",7),this.appearance="text",this.distance=0,this.geometries=[],this.locale=void 0,this.max=void 0,this.min=0,this.sliderTicks=10,this.unionResults=!0,this.unit="meters",this.disabled=!1,this._translations=void 0}get el(){return s(this)}_geometryEngine;_bufferTimeout;_unitElement;_units;geometriesWatchHandler(){this._buffer()}disabledWatchHandler(){this._buffer()}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async getTranslatedUnit(t){return this._units||await this._defineTranslations(),this._units[t]}bufferComplete;distanceChanged;unitChanged;async componentWillLoad(){await this._defineTranslations(),await this._initModules()}render(){return e(a,{key:"56719f53eabb0743adb129546e27e7dc99399021"},"text"===this.appearance?this._getTextBoxDisplay():this._getSliderDisplay())}async _defineTranslations(){await this._getTranslations(),this._initTranslatedUnits()}async _initModules(){const[t]=await h(["esri/geometry/geometryEngine"]);this._geometryEngine=t}_initTranslatedUnits(){this._units={feet:this._translations.feet,meters:this._translations.meters,miles:this._translations.miles,kilometers:this._translations.kilometers}}_getUnits(){return Object.keys(this._units).map((t=>e("calcite-option",{label:this._units[t],selected:this.unit===t,value:t})))}_setDistance(t){const i=parseInt(t.target.value,10);this.distance!==i&&i>=this.min&&(this.distanceChanged.emit({oldValue:this.distance,newValue:i}),this.distance=i,this.distance>0?this._buffer():this.bufferComplete.emit(void 0))}_setUnit(t){this.unitChanged.emit({oldValue:this.unit,newValue:t}),this.unit=t,this._buffer()}_buffer(){this.disabled?this.bufferComplete.emit(void 0):(this._bufferTimeout&&clearTimeout(this._bufferTimeout),this._bufferTimeout=setTimeout((()=>{if(this.geometries?.length>0&&this.unit&&this.distance>0){const t=this.geometries[0].spatialReference,i=t.isWGS84||t.isWebMercator?this._geometryEngine.geodesicBuffer(this.geometries,this.distance,this.unit,this.unionResults):this._geometryEngine.buffer(this.geometries,this.distance,this.unit,this.unionResults);this.bufferComplete.emit(i)}}),400))}_getTextBoxDisplay(){return e("div",{class:"c-container"},e("calcite-input",{class:"padding-end-1 w-50",max:this.max&&this.max>0?this.max:void 0,min:this.min,"number-button-type":"vertical",onCalciteInputInput:t=>this._setDistance(t),placeholder:"0",type:"number",value:this.distance?this.distance.toString():void 0}),e("calcite-select",{class:"flex-1 w-50",label:"label",onCalciteSelectChange:()=>this._setUnit(this._unitElement.value),ref:t=>{this._unitElement=t}},this._getUnits()))}_getSliderDisplay(){return e("div",null,e("calcite-slider",{labelHandles:!0,max:this.max&&this.max>0?this.max:void 0,min:this.min,ticks:this.sliderTicks}))}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}_testAccess(t,i){switch(t){case"_setUnit":return this._setUnit(i);case"_setDistance":return this._setDistance(i)}return null}static get watchers(){return{geometries:["geometriesWatchHandler"],disabled:["disabledWatchHandler"],locale:["localeWatchHandler"]}}};o.style=':host{display:block}.c-container{display:inline-flex}.flex-1{flex:"1"}.padding-end-1{padding-inline-end:1rem}.w-50{width:50%}';const c=class{constructor(s){t(this,s),this.selectionLoadingChange=i(this,"selectionLoadingChange",7),this.sketchGraphicsChange=i(this,"sketchGraphicsChange",7),this.drawUndo=i(this,"drawUndo",7),this.drawRedo=i(this,"drawRedo",7),this.active=!1,this.drawMode=l.SKETCH,this.editGraphicsEnabled=!0,this.graphics=void 0,this.locale=void 0,this.mapView=void 0,this.pointSymbol=void 0,this.polylineSymbol=void 0,this.polygonSymbol=void 0,this.redoEnabled=!1,this.undoEnabled=!1,this._translations=void 0,this._selectionMode=void 0}get el(){return s(this)}GraphicsLayer;SketchViewModel;Sketch;_sketchGraphicsLayer;_sketchViewModel;_sketchWidget;_sketchElement;graphicsWatchHandler(t,i){t&&t.length>0&&JSON.stringify(t)!==JSON.stringify(i)&&this._sketchGraphicsLayer&&(this._updateGraphicsSymbols(t),this._sketchGraphicsLayer.removeAll(),this._sketchGraphicsLayer.addMany(t))}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}mapViewWatchHandler(t,i){t&&t!==i&&this._init()}async clear(){this._clearSketch()}async updateGraphics(){this._updateGraphics()}selectionLoadingChange;sketchGraphicsChange;drawUndo;drawRedo;async componentWillLoad(){await this._getTranslations(),await this._initModules()}componentDidLoad(){this._init()}disconnectedCallback(){this._sketchWidget.cancel(),this._clearSketch()}render(){const t=this.drawMode===l.SKETCH?"display-none":"esri-widget esri-sketch__panel border-left esri-sketch__section";return e(a,{key:"da7ef0973544c8b88ced49ef8c5a89b5d5cf48ea"},e("div",{key:"6cf3a4276a2a319c6f1a74d2824b0bb3003c9f9b",class:this.drawMode===l.SKETCH?"border":"border esri-widget esri-sketch__panel"},e("div",{key:"dade38f4d01fa7c28915a4fce879f9383d5892b9",ref:t=>{this._sketchElement=t}}),e("div",{key:"6e2fbb2dcfb2e4e51f35aa615c0003a65fa3bd66",class:t},e("calcite-action",{key:"8156802d2740aaa483e4f312cadadc5744f13486",disabled:!this.undoEnabled,icon:"undo",onClick:()=>this._undo(),scale:"s",text:this._translations.undo}),e("calcite-action",{key:"cd05845f66e187a317215e18d6a18696328960bf",disabled:!this.redoEnabled,icon:"redo",onClick:()=>this._redo(),scale:"s",text:this._translations.redo}))))}async _initModules(){const[t,i,s]=await h(["esri/layers/GraphicsLayer","esri/widgets/Sketch","esri/widgets/Sketch/SketchViewModel"]);this.GraphicsLayer=t,this.Sketch=i,this.SketchViewModel=s}_init(){this.mapView&&this._sketchElement&&(this._initGraphicsLayer(),this._initSketch())}_initGraphicsLayer(){const t=this._translations.sketchLayer,i=this.mapView.map.layers.findIndex((i=>i.title===t));i>-1?this._sketchGraphicsLayer=this.mapView.map.layers.getItemAt(i):(this._sketchGraphicsLayer=new this.GraphicsLayer({title:t,listMode:"hide"}),r.managedLayers[t]="sketch",this.mapView.map.layers.add(this._sketchGraphicsLayer)),this.graphics&&this.graphics.length>0&&this._sketchGraphicsLayer.addMany(this.graphics)}_initSketch(){const t={layer:this._sketchGraphicsLayer,view:this.mapView,defaultCreateOptions:{mode:"hybrid"},defaultUpdateOptions:{preserveAspectRatio:!1,enableScaling:!1,enableRotation:!1,tool:"reshape",toggleToolOnClick:!1}};this._sketchWidget=new this.Sketch({...t,container:this._sketchElement,creationMode:"single",toolbarKind:"docked",visibleElements:{duplicateButton:!1,selectionTools:{"lasso-selection":!1,"rectangle-selection":!1},createTools:{circle:!1},undoRedoMenu:!1,settingsMenu:this.drawMode===l.SKETCH}}),this._sketchViewModel=new this.SketchViewModel({...t}),this._sketchWidget.viewModel.polylineSymbol=this.polylineSymbol,this._sketchWidget.viewModel.pointSymbol=this.pointSymbol,this._sketchWidget.viewModel.polygonSymbol=this.polygonSymbol;let i=!1;this._sketchWidget.on("create",(t=>{"complete"===t.state&&(this.graphics=[t.graphic],this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1}),this.drawMode===l.REFINE&&(i=!0,this._sketchWidget.viewModel.create(t.tool))),"cancel"===t.state&&this.drawMode===l.REFINE&&i&&(i=!i,this._sketchWidget.viewModel.create(t.tool))})),this._sketchWidget.on("update",(t=>{if(this.editGraphicsEnabled){const i=t?.toolEventInfo?.type;"reshape-stop"!==i&&"move-stop"!==i||(this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1}))}else this._sketchWidget.viewModel.cancel(),this._sketchViewModel.cancel()})),this._sketchWidget.on("delete",(()=>{this.graphics=[],this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})})),this._sketchWidget.on("undo",(t=>{this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})})),this._sketchWidget.on("redo",(t=>{this.graphics=t.graphics,this.sketchGraphicsChange.emit({graphics:this.graphics,useOIDs:!1})}))}_clearSketch(){this._sketchWidget?.viewModel.cancel(),this.graphics=[],this._sketchGraphicsLayer?.removeAll()}_undo(){this.drawUndo.emit()}_redo(){this.drawRedo.emit()}_updateGraphics(){setTimeout((()=>{1===this.graphics.length&&this._sketchWidget.update(this.graphics,{tool:"reshape",enableRotation:!1,enableScaling:!1,preserveAspectRatio:!1,toggleToolOnClick:!1})}),100)}_updateGraphicsSymbols(t){const i=t[0].geometry.type,s="point"===i?this.pointSymbol:"polyline"===i?this.polylineSymbol:"polygon"===i?this.polygonSymbol:void 0;s&&t.forEach((t=>t.symbol=s))}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{graphics:["graphicsWatchHandler"],locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"]}}};c.style=':host{display:block}.border{outline:1px solid var(--calcite-color-border-input)}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir="rtl"] .main-label{display:flex;float:right}.margin-top-1{margin-top:1rem}.border-left{border-left:1px solid rgba(110, 110, 110, .3)}.border-left[dir="rtl"]{border-right:1px solid rgba(110, 110, 110, .3)}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:"Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;line-height:1.3em;background-color:#fff;--esri-widget-padding-v:12px;--esri-widget-padding-h:15px;--esri-widget-padding:var(--esri-widget-padding-v) var(--esri-widget-padding-h)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row wrap;padding:0;justify-content:flex-start !important}.esri-sketch__section{align-items:center;display:flex;flex-flow:row wrap;padding:0 7px;margin:6px 0}';export{o as buffer_tools,c as map_draw_tools}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as t,c as i,g as s,h as e,F as a}from"./p-e996c38f.js";import{l as h,g as c,f as n}from"./p-404cbf48.js";import{b as o,d as l,a as r,c as d}from"./p-dcd2f00b.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-80cb7c73.js";const p=class{constructor(s){t(this,s),this.success=i(this,"success",7),this.fail=i(this,"fail",7),this.isActionPending=i(this,"isActionPending",7),this.formReady=i(this,"formReady",7),this.locale=void 0,this.mapView=void 0,this.table=void 0,this.selectedFeature=void 0,this.customizeSubmit=!1,this.showGuidingMsg=!0,this._editorLoading=!1,this._translations=void 0}get el(){return s(this)}Editor;_editor;reactiveUtils;_container;_addingAttachment;_isSubmitBtnClicked=!1;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(){await this.mapView.when((async()=>{await this.init()}))}async _editorLoadingWatchHandler(t){t&&(this._container?.classList.add("display-none"),await this.startCreate(),this._container?.classList.remove("display-none"),this._editorLoading=!1)}async submit(){this._editor&&(this._isSubmitBtnClicked=!0,this._editor.viewModel.featureFormViewModel.submit())}success;fail;isActionPending;formReady;async componentWillLoad(){await this._getTranslations(),await this.initModules()}async init(){this.mapView&&await this.createEditorWidget()}async initModules(){const[t,i]=await h(["esri/widgets/Editor","esri/core/reactiveUtils"]);this.Editor=t,this.reactiveUtils=i}render(){const t=this._editorLoading?"":"display-none";return e(a,{key:"261308f81b5bbed3e136efbb2100db9c1e5994a4"},this.showGuidingMsg&&e("calcite-notice",{key:"3aca1d3f48e46208ce07f2ccdd76ac4af752162d",class:"notice-msg",icon:"lightbulb",kind:"success",open:!0},e("div",{key:"f449d7dcde1cc75bf7470a75ae0ce915ef457459",slot:"message"},this._translations.provideDetailsMsg)),e("calcite-loader",{key:"e94e971b96ddba0ab36f27ffd4e37b820bb2432f",class:t,label:"",scale:"s"}))}async componentDidLoad(){await this.init()}disconnectedCallback(){this._editor&&this._editor.destroy()}async createEditorWidget(){this._editor&&this._editor.destroy(),this._container=document.createElement("div"),this._container?.classList.add("display-none"),this._editor=new this.Editor({view:this.mapView,visibleElements:{flow:!0,snappingControls:!1},container:this._container}),this.el.appendChild(this._container);const t=this.reactiveUtils.watch((()=>this._editor.viewModel.featureTemplatesViewModel.state),(t=>{"ready"===t&&(this._editorLoading=!0)}));this._editor.viewModel.addHandles(t);const i=this.reactiveUtils.watch((()=>this._editor.viewModel.state),(t=>{"adding-attachment"===t||"editing-attachment"===t?(this._addingAttachment=!0,this.isActionPending.emit(!0)):this._addingAttachment&&(this.isActionPending.emit(!1),this._addingAttachment=!1)}));this._editor.viewModel.addHandles(i);const s=this.reactiveUtils.watch((()=>this._editor.viewModel.featureFormViewModel?.state),(t=>{"ready"===t&&this.formReady.emit()}));this._editor.viewModel.addHandles(s)}async startCreate(){const t=this.selectedFeature.layer,i=this.table,s=t.relationships[0],e=i.relationships.find((i=>t.layerId===i.relatedTableId)),a=await t.queryFeatures({objectIds:[this.selectedFeature.getObjectId()],outFields:[t.objectIdField,s.keyField]}),h=i.templates[0],c={attributeOverrides:this.makeAttributesForRelatedFeature(a.features[0],s,e),layer:i,template:h};await this._editor.startCreateFeaturesWorkflowAtFeatureCreation(c),await this.hideEditorsElements(),this._editor.viewModel.featureFormViewModel.on("submit",this.submitted.bind(this))}async hideEditorsElements(){this.customizeSubmit&&(await this.timeout(700),this.el.querySelector(".esri-editor")?.querySelectorAll("calcite-flow-item")?.forEach((t=>{const i=t.shadowRoot?.querySelector("calcite-panel")?.shadowRoot?.querySelector("article");i?.querySelector("header")?.setAttribute("style","display: none"),i?.querySelector("footer")?.setAttribute("style","display: none")})))}makeAttributesForRelatedFeature(t,i,s){const e=i.keyField;let a;t.attributes.hasOwnProperty(e)?a=t.getAttribute(e):t.attributes.hasOwnProperty(e.toLowerCase())?a=t.getAttribute(e.toLowerCase()):t.attributes.hasOwnProperty(e.toUpperCase())&&(a=t.getAttribute(e.toUpperCase()));let h=s.keyField;const c=this.table.fields.find((t=>t.name.toLocaleLowerCase()===h.toLocaleLowerCase()));return h=c.name,{[h]:a}}async submitted(t){if(t.invalid.length)this._isSubmitBtnClicked=!1;else if(t.valid.length&&this._isSubmitBtnClicked){this._isSubmitBtnClicked=!1;try{await this._editor.activeWorkflow.commit(),this._editor.viewModel.failures?.length&&this._editor.viewModel.failures.some((t=>{if(t.error)throw t.error}))}catch(t){return void this.fail.emit(t)}this.success.emit()}}timeout(t){return new Promise((i=>setTimeout(i,t)))}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],_editorLoading:["_editorLoadingWatchHandler"]}}};p.style=":host{display:block}.esri-editor__panel-toolbar{display:none !important}.display-none{display:none !important}.esri-editor__panel-content{padding-block:10px !important}.notice-msg{padding:10px;width:calc(100% - 20px)}";const b=class{constructor(s){t(this,s),this.loadingStatus=i(this,"loadingStatus",7),this.commentSelect=i(this,"commentSelect",7),this.addComment=i(this,"addComment",7),this.likeOrDislikeClicked=i(this,"likeOrDislikeClicked",7),this.featureSelectionChange=i(this,"featureSelectionChange",7),this.mapView=void 0,this.graphics=void 0,this.reportingOptions=void 0,this.layerItemsHash=void 0,this.locale=void 0,this.showUserImageInCommentsList=!1,this.showFullCommentTitle=!0,this._likeFieldAvailable=!1,this._likeCount=0,this._disLikeCount=0,this._dislikeFieldAvailable=!1,this._commentsAvailable=!1,this._isLikeBtnClicked=!1,this._isDislikeBtnClicked=!1,this._relatedFeaturesOIDs=void 0,this._updating=!1}get el(){return s(this)}_infoCard;_commentsList;_selectedGraphic;_likeField;_dislikeField;Graphic;RelationshipQuery;_validFieldTypes=["small-integer","integer","big-integer","single","long"];relatedTableId;async graphicsWatchHandler(){await this.getCompleteGraphic(this.graphics[0]),this.checkLikeDislikeFields(),await this.processComments()}async refresh(t){await this.getCompleteGraphic(t),await this.processComments(),this.isLikeDislikeConfigured(t.layer)?t&&this.graphics.length>1&&this.checkLikeDislikeFields():(this._likeFieldAvailable=!1,this._dislikeFieldAvailable=!1)}async back(){this._infoCard.back()}async next(){this._infoCard.next()}async toggleListView(){this._infoCard.toggleListView()}loadingStatus;commentSelect;addComment;likeOrDislikeClicked;featureSelectionChange;async componentWillLoad(){await this._initModules(),await this.getCompleteGraphic(this.graphics[0]),this.checkLikeDislikeFields(),await this.processComments()}render(){const t=this._relatedFeaturesOIDs?.length>0?`objectId in(${this._relatedFeaturesOIDs})`:"1=0";return e("calcite-panel",{key:"577f06f7bc41875b38e07a44f3c734ccc839e596","full-height":!0},e("info-card",{key:"e815f75d02bcdfe9cc11796c913be2a6c2bfecd2",allowEditing:!1,graphics:this.graphics,highlightEnabled:!1,isLoading:!1,isMobile:!1,locale:this.locale,mapView:this.mapView,onSelectionChanged:t=>{this.featureSelectionChange.emit(t.detail)},paginationEnabled:!1,position:"relative",ref:t=>this._infoCard=t}),(this._likeFieldAvailable||this._dislikeFieldAvailable||this._commentsAvailable)&&e("div",{key:"16d0af6b0e75b595573bd0816744f03d9d6dec37",class:"buttons-container"},this._commentsAvailable&&e("calcite-button",{key:"550b3af830911a1437fa3e967492666ec8c5a2e4",appearance:"transparent",iconEnd:"speech-bubble",kind:"neutral",onClick:()=>{this.addComment.emit()},scale:"m"},this._relatedFeaturesOIDs.length),this._likeFieldAvailable&&e("calcite-button",{key:"741848445c2083f4c0a3d9464cd810deee4a1218",appearance:"transparent",iconEnd:"thumbs-up",kind:this._isLikeBtnClicked?"brand":"neutral",loading:this._updating,onClick:this.onLikeButtonClick.bind(this),scale:"m"},this._likeCount??this._selectedGraphic.attributes[this._likeField]??0),this._dislikeFieldAvailable&&e("calcite-button",{key:"4d5e8ae279559dbf981b1b91238706adbd6ebeef",appearance:"transparent",iconEnd:"thumbs-down",kind:this._isDislikeBtnClicked?"brand":"neutral",loading:this._updating,onClick:this.onDislikeButtonClick.bind(this),scale:"m"},this._disLikeCount??this._selectedGraphic.attributes[this._dislikeField]??0)),this.relatedTableId&&this._commentsAvailable&&e("feature-list",{key:"0daad9b37b13a05afc4b8a3a6eca70a7356afd8f",class:"height-full",locale:this.locale,mapView:this.mapView,onFeatureSelect:t=>{this.commentSelect.emit(t.detail)},pageSize:5,ref:t=>this._commentsList=t,selectedLayerId:this.relatedTableId,showErrorWhenNoFeatures:!1,showFullTitle:this.showFullCommentTitle,showInitialLoading:!1,showUserImageInList:this.showUserImageInCommentsList,textSize:"small",whereClause:t}))}async _initModules(){const[t,i]=await h(["esri/rest/support/RelationshipQuery","esri/Graphic"]);this.RelationshipQuery=t,this.Graphic=i}async getCompleteGraphic(t){if(t){const i=t.layer,s=i.createQuery();s.objectIds=[t.getObjectId()];const e=await i.queryFeatures(s);this._selectedGraphic=e.features[0]}}async processComments(){const t=this._selectedGraphic.layer;if(this.reportingOptions&&this.reportingOptions[t.id]&&this.reportingOptions[t.id].comment&&t.relationships?.length>0){const i=await o(this.mapView);let s=null,e=null;if(t.relationships.some((a=>{const h=i.filter((i=>t.url===i.url&&i.layerId===a.relatedTableId));if(h&&h.length>0)return s=h[0],e=a.id,!0})),this.relatedTableId=s?.id??"",this.relatedTableId){const i=this._selectedGraphic.attributes[t.objectIdField],a=new this.RelationshipQuery({objectIds:[i],outFields:["*"],relationshipId:e}),h=await t.queryRelatedFeatures(a).catch((t=>{console.error(t)})),c=[];h[i]&&h[i].features.forEach((t=>{c.push(t.attributes[s.objectIdField])})),this._relatedFeaturesOIDs=c,this._commentsAvailable=!0}else this._relatedFeaturesOIDs=[],this._commentsAvailable=!1}else this._relatedFeaturesOIDs=[],this._commentsAvailable=!1,this.relatedTableId=""}isLikeDislikeConfigured(t){let i=!1,s=!1;if(this.reportingOptions&&this.reportingOptions[t.id]){if(!this.reportingOptions[t.id].like&&!this.reportingOptions[t.id].dislike)return!1;const e=this.reportingOptions[t.id].likeField,a=this.reportingOptions[t.id].dislikeField;if(!e&&!a)return!1;t.fields.forEach((h=>{this._validFieldTypes.indexOf(h.type)>-1&&this.layerItemsHash[t.id].supportsUpdate&&(h.name===e&&this.reportingOptions[t.id].like?i=!0:h.name===a&&this.reportingOptions[t.id].dislike&&(s=!0))}))}return i||s}checkLikeDislikeFields(){this._likeFieldAvailable=!1,this._dislikeFieldAvailable=!1,this._isLikeBtnClicked=!1,this._isDislikeBtnClicked=!1,this._likeCount=0,this._disLikeCount=0;const t=this._selectedGraphic.layer;if(this.reportingOptions&&this.reportingOptions[t.id]){if(this._likeField=this.reportingOptions[t.id].likeField,this._dislikeField=this.reportingOptions[t.id].dislikeField,!this._likeField&&!this._dislikeField)return;t.fields.forEach((i=>{this._validFieldTypes.indexOf(i.type)>-1&&this.layerItemsHash[t.id].supportsUpdate&&(i.name===this._likeField&&this.reportingOptions[t.id].like?(this._likeFieldAvailable=!0,this._likeCount=this._selectedGraphic.attributes[i.name]):i.name===this._dislikeField&&this.reportingOptions[t.id].dislike&&(this._dislikeFieldAvailable=!0,this._disLikeCount=this._selectedGraphic.attributes[i.name]))})),this.getFromLocalStorage()}}onLikeButtonClick(){this._isDislikeBtnClicked&&this.reportingOptions[this._selectedGraphic.layer.id].dislike&&this.onDislikeButtonClick(),this._isLikeBtnClicked=!this._isLikeBtnClicked,this._isLikeBtnClicked?this._likeCount++:this._likeCount--,this.updateFeaturesLikeDislikeField(this._likeField,this._isLikeBtnClicked)}onDislikeButtonClick(){this._isLikeBtnClicked&&this.reportingOptions[this._selectedGraphic.layer.id].like&&this.onLikeButtonClick(),this._isDislikeBtnClicked=!this._isDislikeBtnClicked,this._isDislikeBtnClicked?this._disLikeCount++:this._disLikeCount--,this.updateFeaturesLikeDislikeField(this._dislikeField,this._isDislikeBtnClicked)}async updateFeaturesLikeDislikeField(t,i){const s={},e=this._selectedGraphic.layer;this._updating=!0;const a=this._selectedGraphic;a.attributes[t]=Number(a.attributes[t])+(i?1:-1),s[e.objectIdField]=a.attributes[e.objectIdField],s[t]=a.attributes[t];const h=new this.Graphic;h.attributes=s;const c={updateFeatures:[h]};await e.applyEdits(c).then((()=>{this._selectedGraphic=a,this.setInLocalStorage(),this._updating=!1,this.likeOrDislikeClicked.emit()}),(t=>{this._updating=!1,console.log(t)}))}getFromLocalStorage(){const t=localStorage[this._selectedGraphic.layer.id];if(t){const i=JSON.parse(t).filter((t=>t.id===this._selectedGraphic.getObjectId()));i.length>0&&(this._isLikeBtnClicked=i[0].like,this._isDislikeBtnClicked=i[0].dislike)}}setInLocalStorage(){const t=this._selectedGraphic.layer.id,i=localStorage[t];let s=[];if(i){s=JSON.parse(i);const t=s.findIndex((t=>t.id===this._selectedGraphic.getObjectId()));t>=0&&s.splice(t,1)}s.push({id:this._selectedGraphic.getObjectId(),like:this._isLikeBtnClicked&&0!==this._likeCount,dislike:this._isDislikeBtnClicked&&0!==this._disLikeCount}),localStorage.setItem(t,JSON.stringify(s))}static get watchers(){return{graphics:["graphicsWatchHandler"]}}};b.style=":host{display:block}.buttons-container{align-items:center;display:flex;padding:4px;color:var(--calcite-color-text-1) !important;background-color:var(--calcite-color-foreground-1) !important;border-block-start:1px solid var(--calcite-color-border-3);border-block-end:1px solid var(--calcite-color-border-3)}";const y=class{constructor(s){t(this,s),this.layerSelect=i(this,"layerSelect",7),this.layersListLoaded=i(this,"layersListLoaded",7),this.mapView=void 0,this.layers=void 0,this.locale=void 0,this.showFeatureCount=!0,this.showNextIcon=!1,this.applyLayerViewFilter=!1,this._noLayersToDisplay=!1,this._mapLayerIds=[],this._isLoading=!1,this._translations=void 0}get el(){return s(this)}_layerItemsHash;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async refresh(){await this.setLayers()}layerSelect;layersListLoaded;async componentWillLoad(){await this._getTranslations()}async componentDidLoad(){await this.setLayers()}render(){return e(a,{key:"a151c8fd65c50aacb23dcd0c858e52c0c7cd7e5e"},this._isLoading&&e("calcite-loader",{key:"544a134bccc29048ca80b996844cc944bcd97a24",label:"",scale:"m"}),!this._isLoading&&this.mapView&&this._noLayersToDisplay&&e("calcite-notice",{key:"7557f91c8c3349c120c043ea59458b4c834dce2e",class:"error-msg",icon:"layers-reference",kind:"danger",open:!0},e("div",{key:"ea8b20f8c7da5053641cfad56e3395ae3c6286f5",slot:"title"},this._translations.error),e("div",{key:"38aaed7b456aba0b1dd70183be03e9133834dfb4",slot:"message"},this._translations.noLayerToDisplayErrorMsg)),!this._isLoading&&this.mapView&&e("calcite-list",{key:"547b0681145fd8d8663b786472be9e5161cbd693",label:"","selection-appearance":"border","selection-mode":"none"},this.renderLayerList()))}async setLayers(){this.mapView&&(this._isLoading=!0,await this.initLayerHash(),this._isLoading=!1)}async initLayerHash(){const t=[];this._layerItemsHash=await l(this.mapView,!0);const i=await r(this.mapView);for(const s of i)if("feature"===s?.type&&this.showFeatureCount){const i=s.createQuery();if(s?.definitionExpression&&(i.where=i.where+" AND "+s.definitionExpression),this.applyLayerViewFilter){const t=await d(this.mapView,s.id);t?.filter?.where&&(i.where=i.where?i.where+" AND "+t.filter.where:t.filter.where)}const e=s.queryFeatureCount(i);t.push(e),e.then((async t=>{const i=isNaN(t)?"":await n(t,{places:0,api:4,type:"decimal"});this._layerItemsHash[s.id].formattedFeatureCount=i}))}await Promise.all(t).then((()=>{const t=this.getLayersToBeShownInList(this._layerItemsHash);this._mapLayerIds=t.reverse(),this.handleNoLayersToDisplay()}),(()=>{this._mapLayerIds=[],this.handleNoLayersToDisplay()}))}handleNoLayersToDisplay(){this._noLayersToDisplay=!(this._mapLayerIds.length>0),this.layersListLoaded.emit(this._mapLayerIds)}getLayersToBeShownInList(t){const i=this.layers?.length>0?this.layers:[];return Object.keys(t).reduce(((t,s)=>(i.indexOf(s)>-1&&t.push(s),t)),[])}renderLayerList(){return this._mapLayerIds.length>0&&this._mapLayerIds.reduce(((t,i)=>(this._layerItemsHash[i]&&t.push(this.getLayerListItem(i)),t)),[])}getLayerListItem(t){const i=this._layerItemsHash[t].formattedFeatureCount;return e("calcite-list-item",{onCalciteListItemSelect:()=>{this.onLayerItemSelected(t)}},e("div",{class:"layer-name",slot:"content-start"},this._layerItemsHash[t].name),this.showFeatureCount&&void 0!==i&&""!==i&&e("div",{class:"feature-count",slot:"content-end"},"("+i+")"),this.showNextIcon&&e("calcite-icon",{flipRtl:!0,icon:"chevron-right",scale:"s",slot:"content-end"}))}onLayerItemSelected(t){this.layerSelect.emit({layerId:t,layerName:this._layerItemsHash[t].name})}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"]}}};y.style=":host{display:block}.error-msg{padding:10px}.layer-name{font-weight:500;word-break:break-word}.feature-count{padding:0 10px}";export{p as create_related_feature,b as feature_details,y as layer_list}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as i,h as n,g as t,H as s}from"./p-e996c38f.js";import{l as a}from"./p-08ad0b7a.js";import{g as o}from"./p-2884ca49.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-ac122d9e.js";const e="instant-apps-sign-in__entry-button",r=class{constructor(n){i(this,n),this.type="navigation",this.portal=void 0,this.oauthappid=void 0,this.openInPopup=void 0,this.landingPage=void 0,this.isSignedIn=void 0,this.user=void 0,this.titleText=void 0,this.subtitleText=void 0,this.descriptionText=void 0,this.showIndicator=!0,this.closeLandingPage=void 0,this.signInDropdownItems=void 0,this.ready=!1,this.messages=void 0}async watchPortal(){await this.initSignIn()}async watchOauthappid(){await this.initSignIn()}async componentWillLoad(){o(this),await this.initSignIn()}render(){const i=this.ready?this.renderContent():null;return n(s,{key:"ab1c9e194ed4eed74680dd242e0ea0f314cf1f56"},i)}renderContent(){return"landingPage"===this.type?this.renderLandingPageSignIn():this.renderSignInContainer()}renderSignInContainer(){return n("div",{class:"instant-apps-sign-in__container"},this.isSignedIn?this.renderSignInDropdown():this.renderSignInButton())}renderSignInDropdown(){var i,t,s,a,o,e,r,l,c,p,d,h,g,u,v,_;const m=this.showIndicator?"instant-apps-sign-in__indicator":"";return n("calcite-dropdown",{placement:"bottom-end",scale:"navigation"===this.type?"m":"s"},"navigation"===this.type?n("calcite-navigation-user",{class:m,slot:"trigger",thumbnail:null===(i=this.user)||void 0===i?void 0:i.thumbnailUrl,"full-name":null===(t=this.user)||void 0===t?void 0:t.fullName,username:null===(s=this.user)||void 0===s?void 0:s.username,"user-id":null!==(o=null===(a=this.user)||void 0===a?void 0:a.id)&&void 0!==o?o:null===(r=null===(e=this.user)||void 0===e?void 0:e.sourceJSON)||void 0===r?void 0:r.id,textDisabled:!0}):n("button",{slot:"trigger"},n("calcite-avatar",{class:m,thumbnail:null===(l=this.user)||void 0===l?void 0:l.thumbnailUrl,"full-name":null===(c=this.user)||void 0===c?void 0:c.fullName,username:null===(p=this.user)||void 0===p?void 0:p.username,"user-id":null!==(h=null===(d=this.user)||void 0===d?void 0:d.id)&&void 0!==h?h:null===(u=null===(g=this.user)||void 0===g?void 0:g.sourceJSON)||void 0===u?void 0:u.id})),n("slot",{name:"sign-in-dropdown-top"}),n("calcite-dropdown-group",{"selection-mode":"none"},null===(v=this.signInDropdownItems)||void 0===v?void 0:v.map((i=>n("calcite-dropdown-item",{onClick:i.onClick},i.label))),n("calcite-dropdown-item",{onClick:this.signOut.bind(this)},null===(_=this.messages)||void 0===_?void 0:_.signOut)))}renderSignInButton(){var i;const t="navigation"===this.type?"transparent":"solid";return n("calcite-button",{class:"navigation"===this.type?"instant-apps-sign-in__sign-in-btn":"",onClick:this.signIn.bind(this),scale:"s","icon-start":"sign-in",appearance:t},null===(i=this.messages)||void 0===i?void 0:i.signIn)}renderLandingPageSignIn(){var i,t;return n("div",{class:"instant-apps-sign-in__entry-button-container"},n("calcite-button",{class:e,scale:"l",onClick:this.landingPageSignIn.bind(this)},null===(i=this.messages)||void 0===i?void 0:i.signIn),n("calcite-button",{class:e,scale:"l",appearance:"outline-fill",onClick:this.guestOnClick.bind(this)},null===(t=this.messages)||void 0===t?void 0:t.continueAsGuest))}async initSignIn(){if(null==this.portal||null==this.oauthappid)return;const[i,n,t]=await a(["esri/identity/OAuthInfo","esri/identity/IdentityManager","esri/core/reactiveUtils"]);this.idManager=n,this.info=new i({appId:this.oauthappid,portalUrl:this.portal.url,flowType:"authorization-code",popup:this.openInPopup}),this.idManager.registerOAuthInfos([this.info]),this.isSignedIn=await this.checkSignInStatus(),this.ready=!0,this.isSignedIn&&(await t.whenOnce((()=>this.portal.user)),this.user=this.portal.user)}async signIn(){this.setSignInLocalStorage(),await this.idManager.getCredential(`${this.info.portalUrl}/sharing`,{oAuthPopupConfirmation:!1}),await this.checkSignInStatus()}signOut(){var i;null===(i=this.portal.credential)||void 0===i||i.destroy(),this.idManager.destroyCredentials(),this.portal.authMode="anonymous",this.portal.credential=null;const n=window.location.href;this.setSignInLocalStorage(),window.location.href=`${this.portal.restUrl}/oauth2/signout?client_id=${this.oauthappid}&redirect_uri=${n}`}async landingPageSignIn(){await this.signIn(),null!=this.closeLandingPage&&this.closeLandingPage()}guestOnClick(){this.isSignedIn?this.signOut():null!=this.closeLandingPage&&this.closeLandingPage()}async checkSignInStatus(){try{const i=await this.idManager.checkSignInStatus(`${this.info.portalUrl}/sharing`);return this.portal.credential=i,!0}catch(i){return this.portal.credential=null,!1}}setSignInLocalStorage(){const i=new Date;localStorage.setItem("signing-in",i.getTime().toString()),setTimeout((()=>{localStorage.removeItem("signing-in")}),2e3)}get el(){return t(this)}static get watchers(){return{portal:["watchPortal"],oauthappid:["watchOauthappid"]}}};r.style=':host{--instant-apps-sign-in-indicator-color:#007ac2;display:block;box-shadow:none !important}:host .instant-apps-sign-in__container{height:inherit;display:flex;align-items:center}:host .instant-apps-sign-in__container calcite-dropdown,:host .instant-apps-sign-in__container calcite-navigation-user{height:100%}:host .instant-apps-sign-in__container calcite-navigation-user{--calcite-color-foreground-2:rgba(0, 0, 0, 0.04);--calcite-color-foreground-3:rgba(0, 0, 0, 0.04)}:host .instant-apps-sign-in__container .instant-apps-sign-in__indicator::after{content:"";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;inset-block-end:-0.275rem;inset-inline-end:-0.275rem;background-color:var(--instant-apps-sign-in-indicator-color);bottom:calc(50% - 15px);right:calc(50% - 15px)}:host .instant-apps-sign-in__container .instant-apps-sign-in__sign-in-btn{margin:10px}:host .instant-apps-sign-in__container calcite-dropdown[scale=m] calcite-dropdown-group{min-width:140px}:host .instant-apps-sign-in__container calcite-dropdown[scale=s] calcite-dropdown-group{min-width:100px}:host .instant-apps-sign-in__container button{height:32px;width:32px;padding:0;box-sizing:border-box;display:flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;appearance:none;-moz-appearance:none;-webkit-appearance:none;text-decoration-line:none;transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, box-shadow var(--calcite-animation-timing) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;border:none;border-radius:50%;background:#000}:host .instant-apps-sign-in__container button:hover calcite-avatar{opacity:0.7;transition:0.3s}:host .instant-apps-sign-in__landing-page{display:flex;flex-direction:column;justify-content:center;padding:40px;width:50%;min-height:30%;background:rgba(255, 255, 255, 0.8);color:#151515;text-align:center}:host .instant-apps-sign-in__landing-page h1{font-size:22px;margin:10px 0}:host .instant-apps-sign-in__landing-page h2{font-size:16px;margin:0 0 10px}:host .instant-apps-sign-in__landing-page p{font-size:16px;margin:0}:host .instant-apps-sign-in__entry-button-container{display:flex;justify-content:center;gap:8px}:host .instant-apps-sign-in__entry-button{--calcite-color-brand:var(--instant-apps-landing-page-entry-button-color);--calcite-color-brand-hover:var(--instant-apps-landing-page-entry-button-color);--calcite-color-brand-press:var(--instant-apps-landing-page-entry-button-color);min-width:165px}:host .instant-apps-sign-in__entry-button[appearance=solid]{border:1px solid #fff}:host .instant-apps-sign-in__entry-button[appearance=solid]:hover,:host .instant-apps-sign-in__entry-button[appearance=solid]:focus{filter:brightness(0.9)}@media screen and (max-width: 767px){:host{flex-direction:column;align-items:center}:host calcite-button{width:100%}:host .instant-apps-sign-in__entry-button-container{display:flex;flex-direction:column}}';export{r as instant_apps_sign_in}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import"./p-0a24ad5f.js";const t=new Map([["ar","ar"],["bg","bg"],["bs","bs"],["ca","ca"],["cs","cs"],["da","da"],["de","de"],["el","el"],["en","en"],["es","es"],["et","et"],["fi","fi"],["fr","fr"],["he","he"],["hr","hr"],["hu","hu"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["lt","lt"],["lv","lv"],["nb","nb"],["nl","nl"],["pl","pl"],["pt-br","pt-BR"],["pt-pt","pt-PT"],["ro","ro"],["ru","ru"],["sk","sk"],["sl","sl"],["sr","sr"],["sv","sv"],["th","th"],["tr","tr"],["uk","uk"],["vi","vi"],["zh-cn","zh-CN"],["zh-hk","zh-HK"],["zh-tw","zh-TW"]]);function r(t){return function(t){const r=t.closest("[dir]");return r?r.getAttribute("dir"):"ltr"}(t)}export{r as g,t as l}