@esri/solutions-components 0.11.15 → 0.11.17

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 (724) hide show
  1. package/dist/cjs/{asyncToGenerator-ccb3278b.js → asyncToGenerator-c7fc3ee4.js} +1 -1
  2. package/dist/cjs/basemap-gallery_7.cjs.entry.js +9 -9
  3. package/dist/cjs/buffer-tools_2.cjs.entry.js +6 -6
  4. package/dist/cjs/card-manager_3.cjs.entry.js +22 -14
  5. package/dist/cjs/consent-manager.cjs.entry.js +5 -5
  6. package/dist/cjs/create-feature_4.cjs.entry.js +14 -15
  7. package/dist/cjs/create-related-feature_3.cjs.entry.js +16 -12
  8. package/dist/cjs/crowdsource-manager.cjs.entry.js +16 -10
  9. package/dist/cjs/crowdsource-reporter.cjs.entry.js +24 -20
  10. package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
  11. package/dist/cjs/delete-dialog.cjs.entry.js +3 -3
  12. package/dist/cjs/{downloadUtils-9de366bc.js → downloadUtils-88ec0e88.js} +5 -5
  13. package/dist/cjs/{effects-78c31457.js → effects-3607d1ba.js} +1 -1
  14. package/dist/cjs/feature-list.cjs.entry.js +148 -14
  15. package/dist/cjs/{helpers-67a2c953.js → helpers-a65cb83a.js} +3 -3
  16. package/dist/cjs/{index-b936ec03.js → index-2c21082d.js} +24 -17
  17. package/dist/cjs/{index-b2821254.js → index-90ef3c01.js} +1 -1
  18. package/dist/cjs/{index.es-0441a948.js → index.es-3c2404c3.js} +2 -2
  19. package/dist/cjs/instant-apps-app-guide.cjs.entry.js +5 -5
  20. package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +7 -7
  21. package/dist/cjs/instant-apps-control-panel.cjs.entry.js +3 -3
  22. package/dist/cjs/instant-apps-create.cjs.entry.js +5 -5
  23. package/dist/cjs/instant-apps-export-views.cjs.entry.js +5 -5
  24. package/dist/cjs/instant-apps-export.cjs.entry.js +5 -5
  25. package/dist/cjs/instant-apps-filter-list_2.cjs.entry.js +5 -5
  26. package/dist/cjs/instant-apps-header.cjs.entry.js +3 -3
  27. package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +6 -6
  28. package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +6 -6
  29. package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +6 -6
  30. package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +6 -6
  31. package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +8 -8
  32. package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +5 -5
  33. package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
  34. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +8 -8
  35. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +8 -8
  36. package/dist/cjs/instant-apps-measurement-tool.cjs.entry.js +3 -3
  37. package/dist/cjs/instant-apps-measurement.cjs.entry.js +5 -5
  38. package/dist/cjs/instant-apps-popover.cjs.entry.js +5 -5
  39. package/dist/cjs/instant-apps-popovers.cjs.entry.js +1 -1
  40. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +5 -5
  41. package/dist/cjs/instant-apps-sign-in.cjs.entry.js +5 -5
  42. package/dist/cjs/instant-apps-splash.cjs.entry.js +5 -5
  43. package/dist/cjs/instant-apps-time-filter.cjs.entry.js +7 -7
  44. package/dist/cjs/json-editor_7.cjs.entry.js +12 -12
  45. package/dist/cjs/{languageSwitcher-e2118cc6.js → languageSwitcher-19a22439.js} +1 -1
  46. package/dist/cjs/{languageUtil-f22ce913.js → languageUtil-a3e1eafd.js} +1 -1
  47. package/dist/cjs/{loadModules-accd5295.js → loadModules-e9d8977c.js} +1 -1
  48. package/dist/cjs/loader.cjs.js +2 -2
  49. package/dist/cjs/{locale-e2a974ae.js → locale-0a273172.js} +3 -3
  50. package/dist/cjs/{locale-8017d061.js → locale-c09e93fb.js} +2 -2
  51. package/dist/cjs/map-layer-picker.cjs.entry.js +7 -7
  52. package/dist/cjs/map-select-tools_3.cjs.entry.js +11 -11
  53. package/dist/cjs/{mapViewUtils-18c46b84.js → mapViewUtils-319df9ec.js} +1 -1
  54. package/dist/cjs/pci-calculator.cjs.entry.js +2 -2
  55. package/dist/cjs/{popupUtils-3b069427.js → popupUtils-ca1127aa.js} +2 -2
  56. package/dist/cjs/public-notification.cjs.entry.js +9 -9
  57. package/dist/cjs/{publicNotificationStore-76755c44.js → publicNotificationStore-ee00411f.js} +1 -1
  58. package/dist/cjs/solution-configuration.cjs.entry.js +8 -8
  59. package/dist/cjs/solution-contents_3.cjs.entry.js +8 -8
  60. package/dist/cjs/solution-item-accordion.cjs.entry.js +37 -5
  61. package/dist/cjs/solution-item-icon.cjs.entry.js +2 -2
  62. package/dist/cjs/{solution-store-a2a8422d.js → solution-store-6208ce28.js} +1 -1
  63. package/dist/cjs/solutions-components.cjs.js +3 -3
  64. package/dist/cjs/spatial-ref.cjs.entry.js +4 -4
  65. package/dist/cjs/store-manager.cjs.entry.js +3 -3
  66. package/dist/cjs/{utils-0f287cfa.js → utils-30344ce0.js} +2 -2
  67. package/dist/collection/assets/t9n/consent-manager/resources_ar.json +5 -0
  68. package/dist/collection/assets/t9n/consent-manager/resources_bg.json +5 -0
  69. package/dist/collection/assets/t9n/consent-manager/resources_bs.json +5 -0
  70. package/dist/collection/assets/t9n/consent-manager/resources_ca.json +5 -0
  71. package/dist/collection/assets/t9n/consent-manager/resources_cs.json +5 -0
  72. package/dist/collection/assets/t9n/consent-manager/resources_da.json +5 -0
  73. package/dist/collection/assets/t9n/consent-manager/resources_de.json +5 -0
  74. package/dist/collection/assets/t9n/consent-manager/resources_el.json +5 -0
  75. package/dist/collection/assets/t9n/consent-manager/resources_es.json +5 -0
  76. package/dist/collection/assets/t9n/consent-manager/resources_et.json +5 -0
  77. package/dist/collection/assets/t9n/consent-manager/resources_fi.json +5 -0
  78. package/dist/collection/assets/t9n/consent-manager/resources_fr.json +5 -0
  79. package/dist/collection/assets/t9n/consent-manager/resources_he.json +5 -0
  80. package/dist/collection/assets/t9n/consent-manager/resources_hr.json +5 -0
  81. package/dist/collection/assets/t9n/consent-manager/resources_hu.json +5 -0
  82. package/dist/collection/assets/t9n/consent-manager/resources_id.json +5 -0
  83. package/dist/collection/assets/t9n/consent-manager/resources_it.json +5 -0
  84. package/dist/collection/assets/t9n/consent-manager/resources_ja.json +5 -0
  85. package/dist/collection/assets/t9n/consent-manager/resources_ko.json +5 -0
  86. package/dist/collection/assets/t9n/consent-manager/resources_lt.json +5 -0
  87. package/dist/collection/assets/t9n/consent-manager/resources_lv.json +5 -0
  88. package/dist/collection/assets/t9n/consent-manager/resources_nb.json +5 -0
  89. package/dist/collection/assets/t9n/consent-manager/resources_nl.json +5 -0
  90. package/dist/collection/assets/t9n/consent-manager/resources_pl.json +5 -0
  91. package/dist/collection/assets/t9n/consent-manager/resources_pt-BR.json +5 -0
  92. package/dist/collection/assets/t9n/consent-manager/resources_pt-PT.json +5 -0
  93. package/dist/collection/assets/t9n/consent-manager/resources_ro.json +5 -0
  94. package/dist/collection/assets/t9n/consent-manager/resources_ru.json +5 -0
  95. package/dist/collection/assets/t9n/consent-manager/resources_sk.json +5 -0
  96. package/dist/collection/assets/t9n/consent-manager/resources_sl.json +5 -0
  97. package/dist/collection/assets/t9n/consent-manager/resources_sr.json +5 -0
  98. package/dist/collection/assets/t9n/consent-manager/resources_sv.json +5 -0
  99. package/dist/collection/assets/t9n/consent-manager/resources_th.json +5 -0
  100. package/dist/collection/assets/t9n/consent-manager/resources_tr.json +5 -0
  101. package/dist/collection/assets/t9n/consent-manager/resources_uk.json +5 -0
  102. package/dist/collection/assets/t9n/consent-manager/resources_vi.json +5 -0
  103. package/dist/collection/assets/t9n/consent-manager/resources_zh-CN.json +5 -0
  104. package/dist/collection/assets/t9n/consent-manager/resources_zh-HK.json +5 -0
  105. package/dist/collection/assets/t9n/consent-manager/resources_zh-TW.json +5 -0
  106. package/dist/collection/assets/t9n/create-feature/resources_pt-BR.json +1 -1
  107. package/dist/collection/assets/t9n/crowdsource-reporter/resources.json +3 -1
  108. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ar.json +2 -1
  109. package/dist/collection/assets/t9n/crowdsource-reporter/resources_bg.json +2 -1
  110. package/dist/collection/assets/t9n/crowdsource-reporter/resources_bs.json +2 -1
  111. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ca.json +2 -1
  112. package/dist/collection/assets/t9n/crowdsource-reporter/resources_cs.json +2 -1
  113. package/dist/collection/assets/t9n/crowdsource-reporter/resources_da.json +2 -1
  114. package/dist/collection/assets/t9n/crowdsource-reporter/resources_de.json +2 -1
  115. package/dist/collection/assets/t9n/crowdsource-reporter/resources_el.json +2 -1
  116. package/dist/collection/assets/t9n/crowdsource-reporter/resources_en.json +3 -1
  117. package/dist/collection/assets/t9n/crowdsource-reporter/resources_es.json +2 -1
  118. package/dist/collection/assets/t9n/crowdsource-reporter/resources_et.json +2 -1
  119. package/dist/collection/assets/t9n/crowdsource-reporter/resources_fi.json +2 -1
  120. package/dist/collection/assets/t9n/crowdsource-reporter/resources_fr.json +2 -1
  121. package/dist/collection/assets/t9n/crowdsource-reporter/resources_he.json +2 -1
  122. package/dist/collection/assets/t9n/crowdsource-reporter/resources_hr.json +2 -1
  123. package/dist/collection/assets/t9n/crowdsource-reporter/resources_hu.json +2 -1
  124. package/dist/collection/assets/t9n/crowdsource-reporter/resources_id.json +2 -1
  125. package/dist/collection/assets/t9n/crowdsource-reporter/resources_it.json +2 -1
  126. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ja.json +2 -1
  127. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ko.json +2 -1
  128. package/dist/collection/assets/t9n/crowdsource-reporter/resources_lt.json +2 -1
  129. package/dist/collection/assets/t9n/crowdsource-reporter/resources_lv.json +2 -1
  130. package/dist/collection/assets/t9n/crowdsource-reporter/resources_nb.json +2 -1
  131. package/dist/collection/assets/t9n/crowdsource-reporter/resources_nl.json +2 -1
  132. package/dist/collection/assets/t9n/crowdsource-reporter/resources_pl.json +2 -1
  133. package/dist/collection/assets/t9n/crowdsource-reporter/resources_pt-BR.json +2 -1
  134. package/dist/collection/assets/t9n/crowdsource-reporter/resources_pt-PT.json +2 -1
  135. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ro.json +2 -1
  136. package/dist/collection/assets/t9n/crowdsource-reporter/resources_ru.json +2 -1
  137. package/dist/collection/assets/t9n/crowdsource-reporter/resources_sk.json +2 -1
  138. package/dist/collection/assets/t9n/crowdsource-reporter/resources_sl.json +2 -1
  139. package/dist/collection/assets/t9n/crowdsource-reporter/resources_sr.json +2 -1
  140. package/dist/collection/assets/t9n/crowdsource-reporter/resources_sv.json +2 -1
  141. package/dist/collection/assets/t9n/crowdsource-reporter/resources_th.json +2 -1
  142. package/dist/collection/assets/t9n/crowdsource-reporter/resources_tr.json +2 -1
  143. package/dist/collection/assets/t9n/crowdsource-reporter/resources_uk.json +2 -1
  144. package/dist/collection/assets/t9n/crowdsource-reporter/resources_vi.json +2 -1
  145. package/dist/collection/assets/t9n/crowdsource-reporter/resources_zh-CN.json +2 -1
  146. package/dist/collection/assets/t9n/crowdsource-reporter/resources_zh-HK.json +2 -1
  147. package/dist/collection/assets/t9n/crowdsource-reporter/resources_zh-TW.json +2 -1
  148. package/dist/collection/assets/t9n/edit-card/resources_fr.json +1 -1
  149. package/dist/collection/assets/t9n/feature-list/resources.json +3 -1
  150. package/dist/collection/assets/t9n/feature-list/resources_ar.json +3 -1
  151. package/dist/collection/assets/t9n/feature-list/resources_bg.json +3 -1
  152. package/dist/collection/assets/t9n/feature-list/resources_bs.json +3 -1
  153. package/dist/collection/assets/t9n/feature-list/resources_ca.json +3 -1
  154. package/dist/collection/assets/t9n/feature-list/resources_cs.json +3 -1
  155. package/dist/collection/assets/t9n/feature-list/resources_da.json +3 -1
  156. package/dist/collection/assets/t9n/feature-list/resources_de.json +3 -1
  157. package/dist/collection/assets/t9n/feature-list/resources_el.json +3 -1
  158. package/dist/collection/assets/t9n/feature-list/resources_en.json +3 -1
  159. package/dist/collection/assets/t9n/feature-list/resources_es.json +3 -1
  160. package/dist/collection/assets/t9n/feature-list/resources_et.json +3 -1
  161. package/dist/collection/assets/t9n/feature-list/resources_fi.json +3 -1
  162. package/dist/collection/assets/t9n/feature-list/resources_fr.json +3 -1
  163. package/dist/collection/assets/t9n/feature-list/resources_he.json +3 -1
  164. package/dist/collection/assets/t9n/feature-list/resources_hr.json +3 -1
  165. package/dist/collection/assets/t9n/feature-list/resources_hu.json +3 -1
  166. package/dist/collection/assets/t9n/feature-list/resources_id.json +3 -1
  167. package/dist/collection/assets/t9n/feature-list/resources_it.json +3 -1
  168. package/dist/collection/assets/t9n/feature-list/resources_ja.json +3 -1
  169. package/dist/collection/assets/t9n/feature-list/resources_ko.json +3 -1
  170. package/dist/collection/assets/t9n/feature-list/resources_lt.json +3 -1
  171. package/dist/collection/assets/t9n/feature-list/resources_lv.json +3 -1
  172. package/dist/collection/assets/t9n/feature-list/resources_nb.json +3 -1
  173. package/dist/collection/assets/t9n/feature-list/resources_nl.json +3 -1
  174. package/dist/collection/assets/t9n/feature-list/resources_pl.json +3 -1
  175. package/dist/collection/assets/t9n/feature-list/resources_pt-BR.json +3 -1
  176. package/dist/collection/assets/t9n/feature-list/resources_pt-PT.json +3 -1
  177. package/dist/collection/assets/t9n/feature-list/resources_ro.json +3 -1
  178. package/dist/collection/assets/t9n/feature-list/resources_ru.json +3 -1
  179. package/dist/collection/assets/t9n/feature-list/resources_sk.json +3 -1
  180. package/dist/collection/assets/t9n/feature-list/resources_sl.json +3 -1
  181. package/dist/collection/assets/t9n/feature-list/resources_sr.json +3 -1
  182. package/dist/collection/assets/t9n/feature-list/resources_sv.json +3 -1
  183. package/dist/collection/assets/t9n/feature-list/resources_th.json +3 -1
  184. package/dist/collection/assets/t9n/feature-list/resources_tr.json +3 -1
  185. package/dist/collection/assets/t9n/feature-list/resources_uk.json +3 -1
  186. package/dist/collection/assets/t9n/feature-list/resources_vi.json +3 -1
  187. package/dist/collection/assets/t9n/feature-list/resources_zh-CN.json +3 -1
  188. package/dist/collection/assets/t9n/feature-list/resources_zh-HK.json +3 -1
  189. package/dist/collection/assets/t9n/feature-list/resources_zh-TW.json +3 -1
  190. package/dist/collection/assets/t9n/info-card/resources_et.json +1 -1
  191. package/dist/collection/assets/t9n/info-card/resources_ko.json +1 -1
  192. package/dist/collection/assets/t9n/info-card/resources_pt-PT.json +1 -1
  193. package/dist/collection/assets/t9n/info-card/resources_ru.json +1 -1
  194. package/dist/collection/assets/t9n/info-card/resources_sk.json +1 -1
  195. package/dist/collection/assets/t9n/info-card/resources_vi.json +1 -1
  196. package/dist/collection/assets/t9n/info-card/resources_zh-CN.json +1 -1
  197. package/dist/collection/assets/t9n/map-card/resources_ar.json +1 -1
  198. package/dist/collection/assets/t9n/map-card/resources_bg.json +1 -1
  199. package/dist/collection/assets/t9n/map-card/resources_bs.json +1 -1
  200. package/dist/collection/assets/t9n/map-card/resources_ca.json +1 -1
  201. package/dist/collection/assets/t9n/map-card/resources_cs.json +1 -1
  202. package/dist/collection/assets/t9n/map-card/resources_da.json +1 -1
  203. package/dist/collection/assets/t9n/map-card/resources_de.json +1 -1
  204. package/dist/collection/assets/t9n/map-card/resources_el.json +1 -1
  205. package/dist/collection/assets/t9n/map-card/resources_es.json +1 -1
  206. package/dist/collection/assets/t9n/map-card/resources_et.json +1 -1
  207. package/dist/collection/assets/t9n/map-card/resources_fi.json +1 -1
  208. package/dist/collection/assets/t9n/map-card/resources_fr.json +1 -1
  209. package/dist/collection/assets/t9n/map-card/resources_he.json +1 -1
  210. package/dist/collection/assets/t9n/map-card/resources_hr.json +1 -1
  211. package/dist/collection/assets/t9n/map-card/resources_hu.json +1 -1
  212. package/dist/collection/assets/t9n/map-card/resources_id.json +1 -1
  213. package/dist/collection/assets/t9n/map-card/resources_it.json +1 -1
  214. package/dist/collection/assets/t9n/map-card/resources_ja.json +1 -1
  215. package/dist/collection/assets/t9n/map-card/resources_ko.json +1 -1
  216. package/dist/collection/assets/t9n/map-card/resources_lt.json +1 -1
  217. package/dist/collection/assets/t9n/map-card/resources_lv.json +1 -1
  218. package/dist/collection/assets/t9n/map-card/resources_nb.json +1 -1
  219. package/dist/collection/assets/t9n/map-card/resources_nl.json +1 -1
  220. package/dist/collection/assets/t9n/map-card/resources_pl.json +1 -1
  221. package/dist/collection/assets/t9n/map-card/resources_pt-BR.json +1 -1
  222. package/dist/collection/assets/t9n/map-card/resources_pt-PT.json +1 -1
  223. package/dist/collection/assets/t9n/map-card/resources_ro.json +1 -1
  224. package/dist/collection/assets/t9n/map-card/resources_ru.json +1 -1
  225. package/dist/collection/assets/t9n/map-card/resources_sk.json +1 -1
  226. package/dist/collection/assets/t9n/map-card/resources_sl.json +1 -1
  227. package/dist/collection/assets/t9n/map-card/resources_sr.json +1 -1
  228. package/dist/collection/assets/t9n/map-card/resources_sv.json +1 -1
  229. package/dist/collection/assets/t9n/map-card/resources_th.json +1 -1
  230. package/dist/collection/assets/t9n/map-card/resources_tr.json +1 -1
  231. package/dist/collection/assets/t9n/map-card/resources_uk.json +1 -1
  232. package/dist/collection/assets/t9n/map-card/resources_vi.json +1 -1
  233. package/dist/collection/assets/t9n/map-card/resources_zh-CN.json +1 -1
  234. package/dist/collection/assets/t9n/map-card/resources_zh-HK.json +1 -1
  235. package/dist/collection/assets/t9n/map-card/resources_zh-TW.json +1 -1
  236. package/dist/collection/assets/t9n/map-select-tools/resources_zh-HK.json +1 -1
  237. package/dist/collection/assets/t9n/map-select-tools/resources_zh-TW.json +1 -1
  238. package/dist/collection/assets/t9n/solution-item-accordion/resources_ar.json +3 -0
  239. package/dist/collection/assets/t9n/solution-item-accordion/resources_bg.json +3 -0
  240. package/dist/collection/assets/t9n/solution-item-accordion/resources_bs.json +3 -0
  241. package/dist/collection/assets/t9n/solution-item-accordion/resources_ca.json +3 -0
  242. package/dist/collection/assets/t9n/solution-item-accordion/resources_cs.json +3 -0
  243. package/dist/collection/assets/t9n/solution-item-accordion/resources_da.json +3 -0
  244. package/dist/collection/assets/t9n/solution-item-accordion/resources_de.json +3 -0
  245. package/dist/collection/assets/t9n/solution-item-accordion/resources_el.json +3 -0
  246. package/dist/collection/assets/t9n/solution-item-accordion/resources_es.json +3 -0
  247. package/dist/collection/assets/t9n/solution-item-accordion/resources_et.json +3 -0
  248. package/dist/collection/assets/t9n/solution-item-accordion/resources_fi.json +3 -0
  249. package/dist/collection/assets/t9n/solution-item-accordion/resources_fr.json +3 -0
  250. package/dist/collection/assets/t9n/solution-item-accordion/resources_he.json +3 -0
  251. package/dist/collection/assets/t9n/solution-item-accordion/resources_hr.json +3 -0
  252. package/dist/collection/assets/t9n/solution-item-accordion/resources_hu.json +3 -0
  253. package/dist/collection/assets/t9n/solution-item-accordion/resources_id.json +3 -0
  254. package/dist/collection/assets/t9n/solution-item-accordion/resources_it.json +3 -0
  255. package/dist/collection/assets/t9n/solution-item-accordion/resources_ja.json +3 -0
  256. package/dist/collection/assets/t9n/solution-item-accordion/resources_ko.json +3 -0
  257. package/dist/collection/assets/t9n/solution-item-accordion/resources_lt.json +3 -0
  258. package/dist/collection/assets/t9n/solution-item-accordion/resources_lv.json +3 -0
  259. package/dist/collection/assets/t9n/solution-item-accordion/resources_nb.json +3 -0
  260. package/dist/collection/assets/t9n/solution-item-accordion/resources_nl.json +3 -0
  261. package/dist/collection/assets/t9n/solution-item-accordion/resources_pl.json +3 -0
  262. package/dist/collection/assets/t9n/solution-item-accordion/resources_pt-BR.json +3 -0
  263. package/dist/collection/assets/t9n/solution-item-accordion/resources_pt-PT.json +3 -0
  264. package/dist/collection/assets/t9n/solution-item-accordion/resources_ro.json +3 -0
  265. package/dist/collection/assets/t9n/solution-item-accordion/resources_ru.json +3 -0
  266. package/dist/collection/assets/t9n/solution-item-accordion/resources_sk.json +3 -0
  267. package/dist/collection/assets/t9n/solution-item-accordion/resources_sl.json +3 -0
  268. package/dist/collection/assets/t9n/solution-item-accordion/resources_sr.json +3 -0
  269. package/dist/collection/assets/t9n/solution-item-accordion/resources_sv.json +3 -0
  270. package/dist/collection/assets/t9n/solution-item-accordion/resources_th.json +3 -0
  271. package/dist/collection/assets/t9n/solution-item-accordion/resources_tr.json +3 -0
  272. package/dist/collection/assets/t9n/solution-item-accordion/resources_uk.json +3 -0
  273. package/dist/collection/assets/t9n/solution-item-accordion/resources_vi.json +3 -0
  274. package/dist/collection/assets/t9n/solution-item-accordion/resources_zh-CN.json +3 -0
  275. package/dist/collection/assets/t9n/solution-item-accordion/resources_zh-HK.json +3 -0
  276. package/dist/collection/assets/t9n/solution-item-accordion/resources_zh-TW.json +3 -0
  277. package/dist/collection/collection-manifest.json +1 -1
  278. package/dist/collection/components/create-feature/create-feature.js +5 -6
  279. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +12 -6
  280. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +40 -16
  281. package/dist/collection/components/feature-details/feature-details.js +30 -6
  282. package/dist/collection/components/feature-list/feature-list.css +16 -6
  283. package/dist/collection/components/feature-list/feature-list.js +162 -6
  284. package/dist/collection/components/floor-filter/floor-filter.js +1 -1
  285. package/dist/collection/components/info-card/info-card.js +2 -2
  286. package/dist/collection/components/json-editor/json-editor.js +1 -1
  287. package/dist/collection/components/layer-list/layer-list.css +2 -2
  288. package/dist/collection/components/layer-list/layer-list.js +1 -1
  289. package/dist/collection/components/layer-table/layer-table.js +15 -7
  290. package/dist/collection/components/map-card/map-card.js +1 -1
  291. package/dist/collection/components/map-draw-tools/map-draw-tools.js +1 -1
  292. package/dist/collection/components/map-fullscreen/map-fullscreen.js +1 -1
  293. package/dist/collection/components/map-layer-picker/map-layer-picker.js +1 -1
  294. package/dist/collection/components/map-legend/map-legend.js +1 -1
  295. package/dist/collection/components/map-picker/map-picker.js +1 -1
  296. package/dist/collection/components/map-search/map-search.js +1 -1
  297. package/dist/collection/components/map-select-tools/map-select-tools.js +1 -1
  298. package/dist/collection/components/map-tools/map-tools.js +1 -1
  299. package/dist/collection/components/pci-calculator/pci-calculator.js +1 -1
  300. package/dist/collection/components/pdf-download/pdf-download.js +1 -1
  301. package/dist/collection/components/public-notification/public-notification.js +1 -1
  302. package/dist/collection/components/refine-selection/refine-selection.js +1 -1
  303. package/dist/collection/components/solution-configuration/solution-configuration.js +3 -3
  304. package/dist/collection/components/solution-contents/solution-contents.js +1 -1
  305. package/dist/collection/components/solution-item/solution-item.js +1 -1
  306. package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +83 -2
  307. package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
  308. package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
  309. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
  310. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
  311. package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
  312. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
  313. package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
  314. package/dist/collection/components/solution-variables/solution-variables.js +1 -1
  315. package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
  316. package/dist/collection/demos/crowdsource-manager.html +1 -0
  317. package/dist/collection/demos/crowdsource-reporter.html +1 -0
  318. package/dist/collection/demos/solution-item-accordion.html +12 -1
  319. package/dist/collection/utils/mapViewUtils.js +1 -1
  320. package/dist/collection/utils/mapViewUtils.ts +1 -1
  321. package/dist/components/create-feature2.js +5 -6
  322. package/dist/components/crowdsource-manager.js +12 -6
  323. package/dist/components/crowdsource-reporter.js +21 -16
  324. package/dist/components/feature-details2.js +11 -6
  325. package/dist/components/feature-list2.js +144 -7
  326. package/dist/components/floor-filter2.js +1 -1
  327. package/dist/components/info-card2.js +2 -2
  328. package/dist/components/json-editor2.js +1 -1
  329. package/dist/components/layer-list2.js +2 -2
  330. package/dist/components/layer-table2.js +15 -7
  331. package/dist/components/map-card2.js +1 -1
  332. package/dist/components/map-draw-tools2.js +1 -1
  333. package/dist/components/map-fullscreen2.js +1 -1
  334. package/dist/components/map-layer-picker2.js +1 -1
  335. package/dist/components/map-legend2.js +1 -1
  336. package/dist/components/map-picker2.js +1 -1
  337. package/dist/components/map-search2.js +1 -1
  338. package/dist/components/map-select-tools2.js +1 -1
  339. package/dist/components/map-tools2.js +1 -1
  340. package/dist/components/mapViewUtils.js +1 -1
  341. package/dist/components/pci-calculator.js +1 -1
  342. package/dist/components/pdf-download2.js +1 -1
  343. package/dist/components/public-notification.js +1 -1
  344. package/dist/components/refine-selection2.js +1 -1
  345. package/dist/components/solution-configuration.js +3 -3
  346. package/dist/components/solution-contents2.js +1 -1
  347. package/dist/components/solution-item-accordion.js +37 -3
  348. package/dist/components/solution-item-details2.js +1 -1
  349. package/dist/components/solution-item-icon2.js +1 -1
  350. package/dist/components/solution-item-sharing2.js +1 -1
  351. package/dist/components/solution-item2.js +1 -1
  352. package/dist/components/solution-organization-variables2.js +1 -1
  353. package/dist/components/solution-resource-item2.js +1 -1
  354. package/dist/components/solution-spatial-ref2.js +1 -1
  355. package/dist/components/solution-template-data2.js +1 -1
  356. package/dist/components/solution-variables2.js +1 -1
  357. package/dist/components/spatial-ref.js +1 -1
  358. package/dist/esm/{asyncToGenerator-48cd21fe.js → asyncToGenerator-96b2368d.js} +1 -1
  359. package/dist/esm/basemap-gallery_7.entry.js +9 -9
  360. package/dist/esm/buffer-tools_2.entry.js +6 -6
  361. package/dist/esm/card-manager_3.entry.js +22 -14
  362. package/dist/esm/consent-manager.entry.js +5 -5
  363. package/dist/esm/create-feature_4.entry.js +14 -15
  364. package/dist/esm/create-related-feature_3.entry.js +16 -12
  365. package/dist/esm/crowdsource-manager.entry.js +16 -10
  366. package/dist/esm/crowdsource-reporter.entry.js +24 -20
  367. package/dist/esm/deduct-calculator.entry.js +1 -1
  368. package/dist/esm/delete-dialog.entry.js +3 -3
  369. package/dist/esm/{downloadUtils-992b4e25.js → downloadUtils-22a8f2d8.js} +5 -5
  370. package/dist/esm/{effects-45daffc6.js → effects-38bc1195.js} +1 -1
  371. package/dist/esm/feature-list.entry.js +148 -14
  372. package/dist/esm/{helpers-38ea1ae1.js → helpers-77bdd30e.js} +3 -3
  373. package/dist/esm/{index-000c7a7c.js → index-3702583a.js} +24 -17
  374. package/dist/esm/{index-f7533fcc.js → index-6de7c296.js} +1 -1
  375. package/dist/esm/{index.es-c379ea10.js → index.es-87662946.js} +2 -2
  376. package/dist/esm/instant-apps-app-guide.entry.js +5 -5
  377. package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +7 -7
  378. package/dist/esm/instant-apps-control-panel.entry.js +3 -3
  379. package/dist/esm/instant-apps-create.entry.js +5 -5
  380. package/dist/esm/instant-apps-export-views.entry.js +5 -5
  381. package/dist/esm/instant-apps-export.entry.js +5 -5
  382. package/dist/esm/instant-apps-filter-list_2.entry.js +5 -5
  383. package/dist/esm/instant-apps-header.entry.js +3 -3
  384. package/dist/esm/instant-apps-interactive-legend-classic.entry.js +6 -6
  385. package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +6 -6
  386. package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +6 -6
  387. package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +6 -6
  388. package/dist/esm/instant-apps-interactive-legend.entry.js +8 -8
  389. package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +5 -5
  390. package/dist/esm/instant-apps-landing-page.entry.js +1 -1
  391. package/dist/esm/instant-apps-language-switcher.entry.js +8 -8
  392. package/dist/esm/instant-apps-language-translator.entry.js +8 -8
  393. package/dist/esm/instant-apps-measurement-tool.entry.js +3 -3
  394. package/dist/esm/instant-apps-measurement.entry.js +5 -5
  395. package/dist/esm/instant-apps-popover.entry.js +5 -5
  396. package/dist/esm/instant-apps-popovers.entry.js +1 -1
  397. package/dist/esm/instant-apps-scoreboard.entry.js +5 -5
  398. package/dist/esm/instant-apps-sign-in.entry.js +5 -5
  399. package/dist/esm/instant-apps-splash.entry.js +5 -5
  400. package/dist/esm/instant-apps-time-filter.entry.js +7 -7
  401. package/dist/esm/json-editor_7.entry.js +12 -12
  402. package/dist/esm/{languageSwitcher-446c6fe7.js → languageSwitcher-49bad3f4.js} +1 -1
  403. package/dist/esm/{languageUtil-a3e6adf6.js → languageUtil-2b6e191a.js} +1 -1
  404. package/dist/esm/{loadModules-736e0284.js → loadModules-947ccfd4.js} +1 -1
  405. package/dist/esm/loader.js +3 -3
  406. package/dist/esm/{locale-8a3e6795.js → locale-aa656a2c.js} +2 -2
  407. package/dist/esm/{locale-5b76949e.js → locale-b0016f8e.js} +3 -3
  408. package/dist/esm/map-layer-picker.entry.js +7 -7
  409. package/dist/esm/map-select-tools_3.entry.js +11 -11
  410. package/dist/esm/{mapViewUtils-f54edae3.js → mapViewUtils-a854e298.js} +1 -1
  411. package/dist/esm/pci-calculator.entry.js +2 -2
  412. package/dist/esm/{popupUtils-12e61a9a.js → popupUtils-1314cb13.js} +2 -2
  413. package/dist/esm/public-notification.entry.js +9 -9
  414. package/dist/esm/{publicNotificationStore-e5306ea6.js → publicNotificationStore-70219049.js} +1 -1
  415. package/dist/esm/solution-configuration.entry.js +8 -8
  416. package/dist/esm/solution-contents_3.entry.js +8 -8
  417. package/dist/esm/solution-item-accordion.entry.js +37 -5
  418. package/dist/esm/solution-item-icon.entry.js +2 -2
  419. package/dist/esm/{solution-store-26e3d8c6.js → solution-store-2493275a.js} +1 -1
  420. package/dist/esm/solutions-components.js +4 -4
  421. package/dist/esm/spatial-ref.entry.js +4 -4
  422. package/dist/esm/store-manager.entry.js +3 -3
  423. package/dist/esm/{utils-793f7261.js → utils-68015f9d.js} +2 -2
  424. package/dist/solutions-components/assets/t9n/consent-manager/resources_ar.json +5 -0
  425. package/dist/solutions-components/assets/t9n/consent-manager/resources_bg.json +5 -0
  426. package/dist/solutions-components/assets/t9n/consent-manager/resources_bs.json +5 -0
  427. package/dist/solutions-components/assets/t9n/consent-manager/resources_ca.json +5 -0
  428. package/dist/solutions-components/assets/t9n/consent-manager/resources_cs.json +5 -0
  429. package/dist/solutions-components/assets/t9n/consent-manager/resources_da.json +5 -0
  430. package/dist/solutions-components/assets/t9n/consent-manager/resources_de.json +5 -0
  431. package/dist/solutions-components/assets/t9n/consent-manager/resources_el.json +5 -0
  432. package/dist/solutions-components/assets/t9n/consent-manager/resources_es.json +5 -0
  433. package/dist/solutions-components/assets/t9n/consent-manager/resources_et.json +5 -0
  434. package/dist/solutions-components/assets/t9n/consent-manager/resources_fi.json +5 -0
  435. package/dist/solutions-components/assets/t9n/consent-manager/resources_fr.json +5 -0
  436. package/dist/solutions-components/assets/t9n/consent-manager/resources_he.json +5 -0
  437. package/dist/solutions-components/assets/t9n/consent-manager/resources_hr.json +5 -0
  438. package/dist/solutions-components/assets/t9n/consent-manager/resources_hu.json +5 -0
  439. package/dist/solutions-components/assets/t9n/consent-manager/resources_id.json +5 -0
  440. package/dist/solutions-components/assets/t9n/consent-manager/resources_it.json +5 -0
  441. package/dist/solutions-components/assets/t9n/consent-manager/resources_ja.json +5 -0
  442. package/dist/solutions-components/assets/t9n/consent-manager/resources_ko.json +5 -0
  443. package/dist/solutions-components/assets/t9n/consent-manager/resources_lt.json +5 -0
  444. package/dist/solutions-components/assets/t9n/consent-manager/resources_lv.json +5 -0
  445. package/dist/solutions-components/assets/t9n/consent-manager/resources_nb.json +5 -0
  446. package/dist/solutions-components/assets/t9n/consent-manager/resources_nl.json +5 -0
  447. package/dist/solutions-components/assets/t9n/consent-manager/resources_pl.json +5 -0
  448. package/dist/solutions-components/assets/t9n/consent-manager/resources_pt-BR.json +5 -0
  449. package/dist/solutions-components/assets/t9n/consent-manager/resources_pt-PT.json +5 -0
  450. package/dist/solutions-components/assets/t9n/consent-manager/resources_ro.json +5 -0
  451. package/dist/solutions-components/assets/t9n/consent-manager/resources_ru.json +5 -0
  452. package/dist/solutions-components/assets/t9n/consent-manager/resources_sk.json +5 -0
  453. package/dist/solutions-components/assets/t9n/consent-manager/resources_sl.json +5 -0
  454. package/dist/solutions-components/assets/t9n/consent-manager/resources_sr.json +5 -0
  455. package/dist/solutions-components/assets/t9n/consent-manager/resources_sv.json +5 -0
  456. package/dist/solutions-components/assets/t9n/consent-manager/resources_th.json +5 -0
  457. package/dist/solutions-components/assets/t9n/consent-manager/resources_tr.json +5 -0
  458. package/dist/solutions-components/assets/t9n/consent-manager/resources_uk.json +5 -0
  459. package/dist/solutions-components/assets/t9n/consent-manager/resources_vi.json +5 -0
  460. package/dist/solutions-components/assets/t9n/consent-manager/resources_zh-CN.json +5 -0
  461. package/dist/solutions-components/assets/t9n/consent-manager/resources_zh-HK.json +5 -0
  462. package/dist/solutions-components/assets/t9n/consent-manager/resources_zh-TW.json +5 -0
  463. package/dist/solutions-components/assets/t9n/create-feature/resources_pt-BR.json +1 -1
  464. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources.json +3 -1
  465. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ar.json +2 -1
  466. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_bg.json +2 -1
  467. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_bs.json +2 -1
  468. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ca.json +2 -1
  469. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_cs.json +2 -1
  470. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_da.json +2 -1
  471. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_de.json +2 -1
  472. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_el.json +2 -1
  473. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_en.json +3 -1
  474. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_es.json +2 -1
  475. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_et.json +2 -1
  476. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_fi.json +2 -1
  477. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_fr.json +2 -1
  478. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_he.json +2 -1
  479. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_hr.json +2 -1
  480. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_hu.json +2 -1
  481. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_id.json +2 -1
  482. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_it.json +2 -1
  483. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ja.json +2 -1
  484. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ko.json +2 -1
  485. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_lt.json +2 -1
  486. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_lv.json +2 -1
  487. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_nb.json +2 -1
  488. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_nl.json +2 -1
  489. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_pl.json +2 -1
  490. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_pt-BR.json +2 -1
  491. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_pt-PT.json +2 -1
  492. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ro.json +2 -1
  493. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_ru.json +2 -1
  494. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sk.json +2 -1
  495. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sl.json +2 -1
  496. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sr.json +2 -1
  497. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_sv.json +2 -1
  498. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_th.json +2 -1
  499. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_tr.json +2 -1
  500. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_uk.json +2 -1
  501. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_vi.json +2 -1
  502. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_zh-CN.json +2 -1
  503. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_zh-HK.json +2 -1
  504. package/dist/solutions-components/assets/t9n/crowdsource-reporter/resources_zh-TW.json +2 -1
  505. package/dist/solutions-components/assets/t9n/edit-card/resources_fr.json +1 -1
  506. package/dist/solutions-components/assets/t9n/feature-list/resources.json +3 -1
  507. package/dist/solutions-components/assets/t9n/feature-list/resources_ar.json +3 -1
  508. package/dist/solutions-components/assets/t9n/feature-list/resources_bg.json +3 -1
  509. package/dist/solutions-components/assets/t9n/feature-list/resources_bs.json +3 -1
  510. package/dist/solutions-components/assets/t9n/feature-list/resources_ca.json +3 -1
  511. package/dist/solutions-components/assets/t9n/feature-list/resources_cs.json +3 -1
  512. package/dist/solutions-components/assets/t9n/feature-list/resources_da.json +3 -1
  513. package/dist/solutions-components/assets/t9n/feature-list/resources_de.json +3 -1
  514. package/dist/solutions-components/assets/t9n/feature-list/resources_el.json +3 -1
  515. package/dist/solutions-components/assets/t9n/feature-list/resources_en.json +3 -1
  516. package/dist/solutions-components/assets/t9n/feature-list/resources_es.json +3 -1
  517. package/dist/solutions-components/assets/t9n/feature-list/resources_et.json +3 -1
  518. package/dist/solutions-components/assets/t9n/feature-list/resources_fi.json +3 -1
  519. package/dist/solutions-components/assets/t9n/feature-list/resources_fr.json +3 -1
  520. package/dist/solutions-components/assets/t9n/feature-list/resources_he.json +3 -1
  521. package/dist/solutions-components/assets/t9n/feature-list/resources_hr.json +3 -1
  522. package/dist/solutions-components/assets/t9n/feature-list/resources_hu.json +3 -1
  523. package/dist/solutions-components/assets/t9n/feature-list/resources_id.json +3 -1
  524. package/dist/solutions-components/assets/t9n/feature-list/resources_it.json +3 -1
  525. package/dist/solutions-components/assets/t9n/feature-list/resources_ja.json +3 -1
  526. package/dist/solutions-components/assets/t9n/feature-list/resources_ko.json +3 -1
  527. package/dist/solutions-components/assets/t9n/feature-list/resources_lt.json +3 -1
  528. package/dist/solutions-components/assets/t9n/feature-list/resources_lv.json +3 -1
  529. package/dist/solutions-components/assets/t9n/feature-list/resources_nb.json +3 -1
  530. package/dist/solutions-components/assets/t9n/feature-list/resources_nl.json +3 -1
  531. package/dist/solutions-components/assets/t9n/feature-list/resources_pl.json +3 -1
  532. package/dist/solutions-components/assets/t9n/feature-list/resources_pt-BR.json +3 -1
  533. package/dist/solutions-components/assets/t9n/feature-list/resources_pt-PT.json +3 -1
  534. package/dist/solutions-components/assets/t9n/feature-list/resources_ro.json +3 -1
  535. package/dist/solutions-components/assets/t9n/feature-list/resources_ru.json +3 -1
  536. package/dist/solutions-components/assets/t9n/feature-list/resources_sk.json +3 -1
  537. package/dist/solutions-components/assets/t9n/feature-list/resources_sl.json +3 -1
  538. package/dist/solutions-components/assets/t9n/feature-list/resources_sr.json +3 -1
  539. package/dist/solutions-components/assets/t9n/feature-list/resources_sv.json +3 -1
  540. package/dist/solutions-components/assets/t9n/feature-list/resources_th.json +3 -1
  541. package/dist/solutions-components/assets/t9n/feature-list/resources_tr.json +3 -1
  542. package/dist/solutions-components/assets/t9n/feature-list/resources_uk.json +3 -1
  543. package/dist/solutions-components/assets/t9n/feature-list/resources_vi.json +3 -1
  544. package/dist/solutions-components/assets/t9n/feature-list/resources_zh-CN.json +3 -1
  545. package/dist/solutions-components/assets/t9n/feature-list/resources_zh-HK.json +3 -1
  546. package/dist/solutions-components/assets/t9n/feature-list/resources_zh-TW.json +3 -1
  547. package/dist/solutions-components/assets/t9n/info-card/resources_et.json +1 -1
  548. package/dist/solutions-components/assets/t9n/info-card/resources_ko.json +1 -1
  549. package/dist/solutions-components/assets/t9n/info-card/resources_pt-PT.json +1 -1
  550. package/dist/solutions-components/assets/t9n/info-card/resources_ru.json +1 -1
  551. package/dist/solutions-components/assets/t9n/info-card/resources_sk.json +1 -1
  552. package/dist/solutions-components/assets/t9n/info-card/resources_vi.json +1 -1
  553. package/dist/solutions-components/assets/t9n/info-card/resources_zh-CN.json +1 -1
  554. package/dist/solutions-components/assets/t9n/map-card/resources_ar.json +1 -1
  555. package/dist/solutions-components/assets/t9n/map-card/resources_bg.json +1 -1
  556. package/dist/solutions-components/assets/t9n/map-card/resources_bs.json +1 -1
  557. package/dist/solutions-components/assets/t9n/map-card/resources_ca.json +1 -1
  558. package/dist/solutions-components/assets/t9n/map-card/resources_cs.json +1 -1
  559. package/dist/solutions-components/assets/t9n/map-card/resources_da.json +1 -1
  560. package/dist/solutions-components/assets/t9n/map-card/resources_de.json +1 -1
  561. package/dist/solutions-components/assets/t9n/map-card/resources_el.json +1 -1
  562. package/dist/solutions-components/assets/t9n/map-card/resources_es.json +1 -1
  563. package/dist/solutions-components/assets/t9n/map-card/resources_et.json +1 -1
  564. package/dist/solutions-components/assets/t9n/map-card/resources_fi.json +1 -1
  565. package/dist/solutions-components/assets/t9n/map-card/resources_fr.json +1 -1
  566. package/dist/solutions-components/assets/t9n/map-card/resources_he.json +1 -1
  567. package/dist/solutions-components/assets/t9n/map-card/resources_hr.json +1 -1
  568. package/dist/solutions-components/assets/t9n/map-card/resources_hu.json +1 -1
  569. package/dist/solutions-components/assets/t9n/map-card/resources_id.json +1 -1
  570. package/dist/solutions-components/assets/t9n/map-card/resources_it.json +1 -1
  571. package/dist/solutions-components/assets/t9n/map-card/resources_ja.json +1 -1
  572. package/dist/solutions-components/assets/t9n/map-card/resources_ko.json +1 -1
  573. package/dist/solutions-components/assets/t9n/map-card/resources_lt.json +1 -1
  574. package/dist/solutions-components/assets/t9n/map-card/resources_lv.json +1 -1
  575. package/dist/solutions-components/assets/t9n/map-card/resources_nb.json +1 -1
  576. package/dist/solutions-components/assets/t9n/map-card/resources_nl.json +1 -1
  577. package/dist/solutions-components/assets/t9n/map-card/resources_pl.json +1 -1
  578. package/dist/solutions-components/assets/t9n/map-card/resources_pt-BR.json +1 -1
  579. package/dist/solutions-components/assets/t9n/map-card/resources_pt-PT.json +1 -1
  580. package/dist/solutions-components/assets/t9n/map-card/resources_ro.json +1 -1
  581. package/dist/solutions-components/assets/t9n/map-card/resources_ru.json +1 -1
  582. package/dist/solutions-components/assets/t9n/map-card/resources_sk.json +1 -1
  583. package/dist/solutions-components/assets/t9n/map-card/resources_sl.json +1 -1
  584. package/dist/solutions-components/assets/t9n/map-card/resources_sr.json +1 -1
  585. package/dist/solutions-components/assets/t9n/map-card/resources_sv.json +1 -1
  586. package/dist/solutions-components/assets/t9n/map-card/resources_th.json +1 -1
  587. package/dist/solutions-components/assets/t9n/map-card/resources_tr.json +1 -1
  588. package/dist/solutions-components/assets/t9n/map-card/resources_uk.json +1 -1
  589. package/dist/solutions-components/assets/t9n/map-card/resources_vi.json +1 -1
  590. package/dist/solutions-components/assets/t9n/map-card/resources_zh-CN.json +1 -1
  591. package/dist/solutions-components/assets/t9n/map-card/resources_zh-HK.json +1 -1
  592. package/dist/solutions-components/assets/t9n/map-card/resources_zh-TW.json +1 -1
  593. package/dist/solutions-components/assets/t9n/map-select-tools/resources_zh-HK.json +1 -1
  594. package/dist/solutions-components/assets/t9n/map-select-tools/resources_zh-TW.json +1 -1
  595. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_ar.json +3 -0
  596. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_bg.json +3 -0
  597. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_bs.json +3 -0
  598. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_ca.json +3 -0
  599. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_cs.json +3 -0
  600. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_da.json +3 -0
  601. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_de.json +3 -0
  602. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_el.json +3 -0
  603. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_es.json +3 -0
  604. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_et.json +3 -0
  605. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_fi.json +3 -0
  606. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_fr.json +3 -0
  607. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_he.json +3 -0
  608. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_hr.json +3 -0
  609. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_hu.json +3 -0
  610. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_id.json +3 -0
  611. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_it.json +3 -0
  612. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_ja.json +3 -0
  613. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_ko.json +3 -0
  614. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_lt.json +3 -0
  615. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_lv.json +3 -0
  616. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_nb.json +3 -0
  617. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_nl.json +3 -0
  618. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_pl.json +3 -0
  619. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_pt-BR.json +3 -0
  620. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_pt-PT.json +3 -0
  621. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_ro.json +3 -0
  622. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_ru.json +3 -0
  623. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_sk.json +3 -0
  624. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_sl.json +3 -0
  625. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_sr.json +3 -0
  626. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_sv.json +3 -0
  627. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_th.json +3 -0
  628. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_tr.json +3 -0
  629. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_uk.json +3 -0
  630. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_vi.json +3 -0
  631. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_zh-CN.json +3 -0
  632. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_zh-HK.json +3 -0
  633. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_zh-TW.json +3 -0
  634. package/dist/solutions-components/demos/crowdsource-manager.html +1 -0
  635. package/dist/solutions-components/demos/crowdsource-reporter.html +1 -0
  636. package/dist/solutions-components/demos/solution-item-accordion.html +12 -1
  637. package/dist/solutions-components/{p-f9b7f97e.entry.js → p-032d4411.entry.js} +1 -1
  638. package/dist/solutions-components/{p-a4bd7b09.js → p-08ad0b7a.js} +1 -1
  639. package/dist/solutions-components/{p-1e364924.js → p-173d5fce.js} +1 -1
  640. package/dist/solutions-components/{p-3e25c5b0.js → p-174fa218.js} +1 -1
  641. package/dist/solutions-components/{p-0d311ebf.entry.js → p-1890b884.entry.js} +1 -1
  642. package/dist/solutions-components/p-1b0588d2.js +7 -0
  643. package/dist/solutions-components/{p-ae7bcbff.entry.js → p-1ddd7128.entry.js} +1 -1
  644. package/dist/solutions-components/{p-ff3d2df3.entry.js → p-1dffcc22.entry.js} +1 -1
  645. package/dist/solutions-components/{p-2b9d58dc.entry.js → p-1fe3577a.entry.js} +1 -1
  646. package/dist/solutions-components/{p-c1a752b9.entry.js → p-265f5dc4.entry.js} +1 -1
  647. package/dist/solutions-components/{p-056d4371.entry.js → p-2b556610.entry.js} +1 -1
  648. package/dist/solutions-components/{p-d600ca73.entry.js → p-2c8360b4.entry.js} +1 -1
  649. package/dist/solutions-components/{p-b2a6916d.entry.js → p-2dcf8f00.entry.js} +1 -1
  650. package/dist/solutions-components/{p-0d879c77.entry.js → p-300ff31e.entry.js} +1 -1
  651. package/dist/solutions-components/{p-9e92da5e.entry.js → p-335a630e.entry.js} +1 -1
  652. package/dist/solutions-components/{p-91bb7fdc.js → p-3c3aecdd.js} +1 -1
  653. package/dist/solutions-components/{p-ea6440fd.js → p-3d20e307.js} +1 -1
  654. package/dist/solutions-components/{p-f64eeaad.entry.js → p-43d9bb7d.entry.js} +1 -1
  655. package/dist/solutions-components/{p-340c71f3.entry.js → p-4426901e.entry.js} +1 -1
  656. package/dist/solutions-components/{p-bf007c87.js → p-48942eb8.js} +2 -2
  657. package/dist/solutions-components/{p-79083691.entry.js → p-4bdd4009.entry.js} +1 -1
  658. package/dist/solutions-components/p-4ebc471b.entry.js +6 -0
  659. package/dist/solutions-components/{p-20085e58.js → p-4f514c6d.js} +2 -2
  660. package/dist/solutions-components/{p-8af77823.entry.js → p-579628d9.entry.js} +1 -1
  661. package/dist/solutions-components/p-5ea1e18b.entry.js +6 -0
  662. package/dist/solutions-components/{p-256ce5cc.entry.js → p-68d49e1a.entry.js} +2 -2
  663. package/dist/solutions-components/{p-5474d6f0.entry.js → p-699a9557.entry.js} +1 -1
  664. package/dist/solutions-components/{p-5c05f28a.entry.js → p-6d62a4fa.entry.js} +1 -1
  665. package/dist/solutions-components/{p-a1d1dc83.entry.js → p-6da8fe2d.entry.js} +1 -1
  666. package/dist/solutions-components/{p-a5c51211.entry.js → p-70036eb6.entry.js} +1 -1
  667. package/dist/solutions-components/{p-c25ebd5a.entry.js → p-70e8be5c.entry.js} +1 -1
  668. package/dist/solutions-components/{p-e508cfaf.entry.js → p-7f6cbe61.entry.js} +1 -1
  669. package/dist/solutions-components/{p-0bb54295.entry.js → p-8107be38.entry.js} +1 -1
  670. package/dist/solutions-components/{p-a7d18a21.entry.js → p-81ae30bd.entry.js} +1 -1
  671. package/dist/solutions-components/p-87919d6d.entry.js +6 -0
  672. package/dist/solutions-components/{p-78051ff1.js → p-89fbc318.js} +1 -1
  673. package/dist/solutions-components/{p-1309ac58.js → p-8b218ba7.js} +1 -1
  674. package/dist/solutions-components/p-8ea0a36a.entry.js +6 -0
  675. package/dist/solutions-components/{p-3ea987a7.js → p-8f7957a2.js} +1 -1
  676. package/dist/solutions-components/{p-d572627c.js → p-952da957.js} +1 -1
  677. package/dist/solutions-components/{p-60bdf635.entry.js → p-959cb673.entry.js} +1 -1
  678. package/dist/solutions-components/{p-e8fa98f5.entry.js → p-9d953313.entry.js} +1 -1
  679. package/dist/solutions-components/{p-7e1c353c.entry.js → p-a003600b.entry.js} +1 -1
  680. package/dist/solutions-components/{p-af2c8aa9.js → p-ac122d9e.js} +1 -1
  681. package/dist/solutions-components/{p-0d110867.entry.js → p-acd2699e.entry.js} +1 -1
  682. package/dist/solutions-components/p-afc3ac6d.entry.js +6 -0
  683. package/dist/solutions-components/p-b37be371.entry.js +6 -0
  684. package/dist/solutions-components/{p-74b3e39c.entry.js → p-b40b5be5.entry.js} +1 -1
  685. package/dist/solutions-components/{p-d995adc3.entry.js → p-b560498c.entry.js} +1 -1
  686. package/dist/solutions-components/{p-da1ac695.entry.js → p-bc2548ba.entry.js} +1 -1
  687. package/dist/solutions-components/p-bf2598f8.entry.js +6 -0
  688. package/dist/solutions-components/{p-ad03f5cf.entry.js → p-ce8377c6.entry.js} +1 -1
  689. package/dist/solutions-components/{p-62a0aa8e.js → p-d65f8b73.js} +1 -1
  690. package/dist/solutions-components/{p-6d1ee086.js → p-dc188d13.js} +1 -1
  691. package/dist/solutions-components/{p-fa639501.js → p-e23b4193.js} +1 -1
  692. package/dist/solutions-components/{p-8ab5efc1.entry.js → p-e81e2d83.entry.js} +2 -2
  693. package/dist/solutions-components/{p-c44cbee6.entry.js → p-e85da876.entry.js} +1 -1
  694. package/dist/solutions-components/{p-ed8f7591.entry.js → p-ea64b72e.entry.js} +1 -1
  695. package/dist/solutions-components/{p-ffa545ee.entry.js → p-eb97b5ad.entry.js} +1 -1
  696. package/dist/solutions-components/{p-a23de3b0.js → p-ee2cbba0.js} +1 -1
  697. package/dist/solutions-components/{p-097bac90.entry.js → p-ee863ffb.entry.js} +1 -1
  698. package/dist/solutions-components/{p-c421d92d.entry.js → p-f07a02e2.entry.js} +1 -1
  699. package/dist/solutions-components/{p-c5f701bd.entry.js → p-fa09caf3.entry.js} +1 -1
  700. package/dist/solutions-components/{p-2010e62e.entry.js → p-ff5db601.entry.js} +1 -1
  701. package/dist/solutions-components/solutions-components.esm.js +1 -1
  702. package/dist/solutions-components/utils/mapViewUtils.ts +1 -1
  703. package/dist/solutions-components_commit.txt +7 -6
  704. package/dist/types/components/crowdsource-manager/crowdsource-manager.d.ts +6 -0
  705. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +8 -4
  706. package/dist/types/components/feature-details/feature-details.d.ts +4 -0
  707. package/dist/types/components/feature-list/feature-list.d.ts +52 -0
  708. package/dist/types/components/solution-item-accordion/solution-item-accordion.d.ts +12 -0
  709. package/dist/types/components.d.ts +33 -0
  710. package/package.json +17 -17
  711. package/dist/solutions-components/p-0e3b3aa8.entry.js +0 -6
  712. package/dist/solutions-components/p-44105d86.entry.js +0 -6
  713. package/dist/solutions-components/p-47abefd3.entry.js +0 -6
  714. package/dist/solutions-components/p-8169d4af.entry.js +0 -6
  715. package/dist/solutions-components/p-88de10d1.entry.js +0 -6
  716. package/dist/solutions-components/p-8c40bdec.js +0 -7
  717. package/dist/solutions-components/p-b0551d23.entry.js +0 -6
  718. package/dist/solutions-components/p-d32b5127.entry.js +0 -6
  719. /package/dist/cjs/{esri-loader-a56cbcbe.js → esri-loader-08dc41bd.js} +0 -0
  720. /package/dist/cjs/{typeof-920a4426.js → typeof-2a7e2dec.js} +0 -0
  721. /package/dist/esm/{esri-loader-781d738a.js → esri-loader-c6842c6b.js} +0 -0
  722. /package/dist/esm/{typeof-2511410e.js → typeof-ef2a007d.js} +0 -0
  723. /package/dist/solutions-components/{p-6a68306c.js → p-0a24ad5f.js} +0 -0
  724. /package/dist/solutions-components/{p-af7e43e0.js → p-4fe489cf.js} +0 -0
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as e,c as t,g as i,h as s,H as a}from"./p-8c40bdec.js";import{a as l,l as h,g as n}from"./p-a23de3b0.js";import{e as r,h as c,k as o,l as d,c as p,m as b,n as f,o as g}from"./p-d572627c.js";import{a as y,e as m,f as u}from"./p-80cb7c73.js";import{s as w}from"./p-bf007c87.js";import{d as _,a as v}from"./p-20085e58.js";import"./p-6a68306c.js";import"./p-d4056c1c.js";import"./p-fa639501.js";import"./p-af7e43e0.js";import"./p-2bc98cb0.js";import"./p-4f236b5d.js";import"./p-570b13d9.js";import"./p-0668e30d.js";const S=class{constructor(i){e(this,i),this.selectionSetChange=t(this,"selectionSetChange",7)}get el(){return i(this)}bufferColor=[227,139,79,.8];bufferOutlineColor=[255,255,255];customLabelEnabled;enabledLayerIds=[];enableLayerFeatures=!0;enableLayerFeaturesOnLoad=!1;enableSearchDistance=!0;enableSearchDistanceOnLoad=!1;enableSketchTools=!0;defaultBufferDistance;defaultBufferUnit;geometries=[];isUpdate=!1;layerViews=[];locale;mapView;noResultText;searchConfiguration;selectionSet;selectionLayerIds=[];selectLayerView;sketchLineSymbol;sketchPointSymbol;sketchPolygonSymbol;searchDistanceEnabled=!1;useLayerFeaturesEnabled=!1;_numSelected=0;_searchTerm;_selectionLoading=!1;_translations;_esriRequest;FeatureLayer;Graphic;GraphicsLayer;Search;_geometryEngine;_bufferGeometry;_bufferGraphicsLayer;_bufferTools;_distance;_drawTools;_labelName;_selectLayers;_searchElement;_searchResult;_searchWidget;_selectedIds=[];_selectionLabel="";_skipGeomOIDs;_sketchGraphic;_graphics=[];_unit;_workflowType;_featuresCollection={};async watchGeometriesHandler(e,t){if(e!==t){const t=0===e.length;if(await this._clearResults(t,t),e.length>0)return this._highlightWithOIDsOrGeoms()}}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(e,t){e&&e!==t&&await this._init()}async watchSearchConfigurationHandler(e,t){JSON.stringify(e)!==JSON.stringify(t)&&await this._initSearchWidget()}async clearSelection(){return this._clearResults(!0,!0)}async getSelection(){return/\S+/gm.test(this._selectionLabel)||await this._updateLabel(),{id:this.isUpdate?this.selectionSet.id:Date.now(),searchResult:this._searchResult,buffer:this._bufferGeometry,distance:this._bufferTools?.distance,download:!0,unit:this._bufferTools?.unit,label:this._selectionLabel,selectedIds:this._selectedIds,layerView:this.selectLayerView,geometries:this.geometries,graphics:this._graphics,selectLayers:this.layerViews,skipGeomOIDs:this._skipGeomOIDs,searchDistanceEnabled:this.searchDistanceEnabled,workflowType:this._workflowType,useLayerFeaturesEnabled:this.useLayerFeaturesEnabled,sketchGraphic:this._sketchGraphic}}selectionSetChange;searchConfigurationChangeChanged(e){this.searchConfiguration=e.detail}async distanceChanged(e){await this._distanceChanged(e.detail)}async unitChanged(e){e.detail.newValue!==e.detail.oldValue&&(this._unit=e.detail.newValue,await this._updateLabel())}async componentWillLoad(){await this._getTranslations(),await this._initModules()}async componentDidLoad(){await this._init()}render(){const e=this.enableSketchTools?"":"display-none",t=this.enableSketchTools?"padding-top-1":"";return s(a,{key:"5aa96f3189490b1f544bc6802772e99ce24e30ca"},this._getMapLayerPicker(),s("div",{key:"677afdaf1c84e5c7cf0217abe331afe47682b61f",class:"border-bottom"}),s("div",{key:"45d85c333df0e1f081a85b11e94e2a29fe5b8782",class:"padding-top-sides-1"},s("div",{key:"f26f760210ee8307eea537e0df28a4856876fccc",class:"search-widget",ref:e=>{this._searchElement=e}}),s("div",{key:"d9d703d05bc2990f2345036a227fe1e57c9d79ce",class:t},s("map-draw-tools",{key:"8f0eff15a801d654dfaf855f16fe165fad013c49",active:!0,class:e,editGraphicsEnabled:!this.useLayerFeaturesEnabled,graphics:this._graphics,locale:this.locale,mapView:this.mapView,onSketchGraphicsChange:e=>{this._sketchGraphicsChanged(e)},pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,ref:e=>{this._drawTools=e}})),this.enableSearchDistance?this._getBufferOptions():void 0,this.enableLayerFeatures?this._getUseLayerFeaturesOptions():void 0,this._getNumSelected()),s("div",{key:"89a597f46094f93d80b87c4c86a5b7f3fb6a1889",class:"border-bottom"}),this._getNameInput())}_getBufferOptions(){this.enableSearchDistanceOnLoad&&(this.searchDistanceEnabled=!0,this.enableSearchDistanceOnLoad=!1);const e=this.searchDistanceEnabled?"search-distance":"div-not-visible",t="number"==typeof this.selectionSet?.distance?this.selectionSet.distance:this.defaultBufferDistance;return s("div",null,s("div",{class:"padding-top-1 display-flex"},s("calcite-label",{class:"label-margin-0 w-100",layout:"inline-space-between"},s("div",{class:"tooltip-container"},this._translations.searchDistance,s("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"search-distance-icon",scale:"s"}))),s("calcite-popover",{closable:!0,label:"",referenceElement:"search-distance-icon"},s("span",{class:"tooltip-message"},this._translations.useSearchDistanceTootip)),s("calcite-switch",{checked:this.searchDistanceEnabled,onCalciteSwitchChange:()=>this.searchDistanceEnabled=!this.searchDistanceEnabled})),s("div",{class:e},s("buffer-tools",{disabled:!this.searchDistanceEnabled,distance:t,geometries:this.geometries,locale:this.locale,onBufferComplete:e=>{this._bufferComplete(e)},ref:e=>this._bufferTools=e,unit:this.selectionSet?.unit||this.defaultBufferUnit})))}_getUseLayerFeaturesOptions(){this.enableLayerFeaturesOnLoad&&(this.useLayerFeaturesEnabled=!0,this.enableLayerFeaturesOnLoad=!1);const e=this.useLayerFeaturesEnabled?"div-visible":"div-not-visible";return s("div",null,s("div",{class:"padding-top-1 display-flex"},s("calcite-label",{class:"label-margin-0 w-100",layout:"inline-space-between"},s("div",{class:"tooltip-container"},this._translations.useLayerFeatures,s("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"use-layer-features-icon",scale:"s"}))),s("calcite-popover",{closable:!0,label:"",referenceElement:"use-layer-features-icon"},s("span",{class:"tooltip-message"},this._translations.useLayerFeaturesTooltip)),s("calcite-switch",{checked:this.useLayerFeaturesEnabled,onCalciteSwitchChange:()=>{this._useLayerFeaturesEnabledChanged()}})),s("div",{class:e+" padding-top-1"},s("map-layer-picker",{enabledLayerIds:this.selectionLayerIds,locale:this.locale,mapView:this.mapView,onLayerSelectionChange:e=>{this._layerSelectionChange(e)},selectedIds:this.layerViews.map((e=>e.layer.id)),showTables:!1})))}_getNumSelected(){const e=l(this.el),t=e&&"en"===e?`${this._translations.selectionLoading}...`:this._translations.selectionLoading;return s("div",{class:"padding-top-1 padding-bottom-1",style:{"align-items":"end",display:"flex"}},this._selectionLoading?s("div",null,s("calcite-loader",{class:"info-blue",inline:!0,label:t,scale:"m",type:"indeterminate"})):s("calcite-icon",{class:"info-blue padding-end-1-2",icon:"feature-layer",scale:"s"}),s("calcite-input-message",{class:"info-blue",scale:"m"},this._selectionLoading?t:this.noResultText&&0===this._numSelected?this.noResultText:this._translations.selectedFeatures.replace("{{n}}",this._numSelected.toString())))}_getNameInput(){return s("div",{class:"padding-sides-1 padding-top-1 "+(this.customLabelEnabled?"":"display-none")},s("calcite-label",{class:"font-bold"},this._translations.listName,s("calcite-input",{onInput:()=>{this._selectionLabel=this._labelName.value},placeholder:this._translations.listNamePlaceholder,ref:e=>{this._labelName=e},value:this._selectionLabel||""})))}_getMapLayerPicker(){return s("div",{class:"display-flex padding-sides-1 padding-bottom-1"},s("calcite-label",{class:"font-bold width-full label-margin-0"},this._translations.inputLayer,s("map-layer-picker",{enabledLayerIds:this.enabledLayerIds,locale:this.locale,mapView:this.mapView,onLayerSelectionChange:e=>{this._inputLayerSelectionChange(e)},selectedIds:this.selectLayerView?[this.selectLayerView.layer.id]:this.selectionSet?[this.selectionSet.layerView.layer.id]:[],showTables:!1})))}async _initModules(){const[e,t,i,s,a,l]=await h(["esri/request","esri/layers/GraphicsLayer","esri/Graphic","esri/widgets/Search","esri/geometry/geometryEngine","esri/layers/FeatureLayer"]);this._esriRequest=e,this.GraphicsLayer=t,this.Graphic=i,this.Search=s,this._geometryEngine=a,this.FeatureLayer=l}async _init(){this._initGraphicsLayer(),await this._initSelectionSet(),await this._initSearchWidget()}async _initSelectionSet(){this.selectionSet&&(this._searchTerm=this.selectionSet.searchResult?.name,this._searchResult=this.selectionSet.searchResult,this._selectLayers=this.selectionSet.selectLayers,this._selectedIds=this.selectionSet.selectedIds,this._skipGeomOIDs=this.selectionSet.skipGeomOIDs,this.searchDistanceEnabled=this.selectionSet.searchDistanceEnabled,this.useLayerFeaturesEnabled=this.selectionSet.useLayerFeaturesEnabled,this._distance=this.selectionSet.searchDistanceEnabled?this.selectionSet.distance:0,this._unit=this.selectionSet.unit,this._workflowType=this.selectionSet.workflowType,this.selectLayerView=this.selectionSet.layerView,this._sketchGraphic=this.selectionSet.sketchGraphic,this.geometries=[...this.selectionSet?.geometries||[]],this._graphics=this.geometries.map((e=>new this.Graphic({geometry:e,symbol:"point"===e.type?this.sketchPointSymbol:"polyline"===e.type?this.sketchLineSymbol:this.sketchPolygonSymbol}))),this._selectionLabel=this.selectionSet?.label,this.useLayerFeaturesEnabled||await(this._drawTools?.updateGraphics()),await r(this.selectionSet.selectedIds,this.selectionSet.layerView,this.mapView,!1))}async _initSearchWidget(){if(this.mapView&&this._searchElement){const e=this._getSearchConfig(this.searchConfiguration,this.mapView),t={view:this.mapView,container:this._searchElement,searchTerm:this._searchTerm,...e};this._searchWidget=new this.Search(t),this._searchWidget.popupEnabled=!1,this._searchWidget.resultGraphicEnabled=!1,this._searchWidget.on("search-clear",(()=>{const e=this._searchClearLabel();this._clearResults(!1,e)})),this._searchWidget.on("select-result",(e=>{this._selectResult(e.result)})),await this._searchWidget.when((()=>{this._searchWidget.allPlaceholder=this.searchConfiguration?.allPlaceholder&&"find address or place"!==this.searchConfiguration.allPlaceholder.toLowerCase()?this.searchConfiguration.allPlaceholder:this._translations.placeholder}))}}async _selectResult(e){if(e){this._searchResult=e;const t=e.feature,i=t?.layer,s=this.selectLayerView.layer,a=t?.getObjectId();let l,h;i?.sourceJSON?.isView&&(l=await this._getViewSourceUrl(i.url)),s?.sourceJSON?.isView&&(h=await this._getViewSourceUrl(s.url));const n=i?.url?.toLowerCase(),r=l?.toLowerCase(),c=s?.url?.toLowerCase(),o=h?.toLowerCase(),d=n&&c&&(n===c||n===o||r===c||r===o)&&!isNaN(a),p=d?[a]:void 0;this._workflowType=y.SEARCH,this._updateLabel();const b=[e.feature];this._updateSelection(b,d,p),this._drawTools.graphics=b,this._searchWidget.resultGraphic.visible=!1}else{const e=this._searchClearLabel();this._clearResults(!1,e)}}async _getViewSourceUrl(e){let t="";const i=`${e}/sources?f=json`;try{const e=await this._esriRequest(i,{query:{f:"json"}});1===e?.data?.services?.length&&(t=e.data.services[0].url)}catch(e){console.log(e)}return t}_searchClearLabel(){return this._searchResult?.name&&this._labelName.value.indexOf(this._searchResult.name)>-1}_getSearchConfig(e,t){const i=e?.sources;return i?.length>0?(e={...e,includeDefaultSources:!1},i.forEach((e=>{if(e.hasOwnProperty("layer")){const i=e,s=i.layer?.id,a=s?t.map.findLayerById(s):null,l=i?.layer?.url;a?i.layer=a:l&&(i.layer=new this.FeatureLayer(l))}})),i?.forEach((e=>{if(e.hasOwnProperty("locator")){const t=e;"ArcGIS World Geocoding Service"===t?.name&&(t.outFields=t.outFields||["Addr_type","Match_addr","StAddr","City"],t.singleLineFieldName="SingleLine"),t.url=t.url,delete t.url}}))):e={...e,includeDefaultSources:!0},e}_initGraphicsLayer(){const e=this._translations.bufferLayer;if(this.mapView){const t=this.mapView.map.layers.findIndex((t=>t.title===e));if(t>-1)this._bufferGraphicsLayer=this.mapView.map.layers.getItemAt(t);else{this._bufferGraphicsLayer=new this.GraphicsLayer({title:e,listMode:"hide"}),w.managedLayers[e]="buffer";const t=this.mapView.map.layers.findIndex((e=>e.title===this._translations.sketchLayer));t>-1?this.mapView.map.layers.add(this._bufferGraphicsLayer,t):this.mapView.map.layers.add(this._bufferGraphicsLayer)}}}async _sketchGraphicsChanged(e,t=!1){const i=e.detail.graphics;if(i.length>0&&i[0])if(t||(this._sketchGraphic=i[0]),this._workflowType=this.useLayerFeaturesEnabled?y.SELECT:y.SKETCH,this._workflowType===y.SKETCH&&await this._drawTools.updateGraphics(),await this._updateLabel(),this._clearSearchWidget(),this.useLayerFeaturesEnabled&&!t){const e=Array.isArray(i)?i.map((e=>e.geometry)):this.geometries;await this._selectLayerFeatures(e[0])}else{const t=i.reduce(((e,t)=>(t?.layer?.objectIdField?e.push(t.attributes[t.layer.objectIdField]):t.getObjectId&&e.push(t.getObjectId()),e)),[]),s=e.detail.useOIDs&&t.length>0;this._updateSelection(i,s,t),s&&await this._highlightFeatures(t)}else await this._clearResults(!0,!0)}async _highlightWithOIDsOrGeoms(){return this._skipGeomOIDs?.length>0?(this._selectedIds=this._skipGeomOIDs,this._highlightFeatures(this._selectedIds)):this._geomQuery(this.geometries)}async _highlightFeatures(e){w.removeHandles(),e.length>0&&w.highlightHandles.push(await c(e,this.selectLayerView,this.mapView)),this._numSelected=e.length,this.selectionSetChange.emit(e.length)}async _selectFeatures(e){this._selectionLoading=!0,this._selectedIds=await o(e,this.selectLayerView.layer),this._selectionLoading=!1,this._drawTools.graphics=this._graphics,await this._highlightFeatures(this._selectedIds)}async _bufferComplete(e){this._bufferGeometry=Array.isArray(e.detail)?e.detail[0]:e.detail;let t=this._bufferTools.distance,i=0;if(this._bufferGeometry){const e=new this.Graphic({geometry:this._bufferGeometry,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});this._bufferGraphicsLayer.removeAll(),this._bufferGraphicsLayer.add(e),await this._selectFeatures([this._bufferGeometry]),await this.mapView.goTo(e.geometry.extent),i=t,t=0}else this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),await this._highlightWithOIDsOrGeoms();await this._distanceChanged({oldValue:t,newValue:i})}_geomQuery(e){const t=d(e,this._geometryEngine);return this._selectFeatures(t)}async _clearResults(e=!0,t=!1){this._selectedIds=[],this._distance=void 0,this._unit=void 0,t&&(this._selectionLabel="",this._labelName&&(this._labelName.value="")),this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),e&&this._searchWidget&&this._clearSearchWidget(),w.removeHandles(),this._drawTools?.clear&&(this._graphics=[],await this._drawTools.clear()),this._numSelected=this._selectedIds.length,this.selectionSetChange.emit(this._numSelected)}_clearSearchWidget(){this._searchWidget.clear(),this._searchResult=void 0}_updateSelection(e,t,i){this._selectedIds=t&&i?i:this._selectedIds,this._skipGeomOIDs=t?i:void 0,this.geometries=Array.isArray(e)?e.map((e=>e.geometry)):this.geometries,this._graphics=e}async _updateLabel(){if(this.enableSearchDistance){const e=this._selectionLabel.indexOf(this._translations.sketch)>-1,t=this._selectionLabel.indexOf(this._translations.select)>-1,i=this._selectionLabel.indexOf(this._searchResult?.name)>-1,s=this._workflowType===y.SEARCH?this._searchResult?.name:this._workflowType===y.SELECT?this._translations.select:this._translations.sketch,a=this._unit?this._unit:this._bufferTools.unit,l=await this._bufferTools.getTranslatedUnit(a),h=isNaN(this._distance)?this._bufferTools.distance:this._distance;this._selectionLabel=e||t||i||!this._selectionLabel?`${s} ${h} ${l}`:this._selectionLabel,this._labelName.value=this._selectionLabel}}async _layerSelectionChange(e){if(Array.isArray(e.detail)&&e.detail.length>0){const t=e.detail.map((e=>p(this.mapView,e)));return Promise.all(t).then((e=>{this.layerViews=e,this._featuresCollection={},this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}))}}async _inputLayerSelectionChange(e){const t=e?.detail?.length>0?e.detail[0]:"";this.selectLayerView&&t===this.selectLayerView.layer.id||(this.selectLayerView=await p(this.mapView,t),await this._updateLabel(),this._bufferGeometry?await this._selectFeatures([this._bufferGeometry]):await this._highlightWithOIDsOrGeoms())}async _distanceChanged(e){e.newValue!==e.oldValue&&(this._distance=e.newValue,await this._updateLabel())}async _selectLayerFeatures(e){this._selectionLoading=!0;const t=this.layerViews.map((t=>(this._featuresCollection[t.layer.id]=[],b(0,t.layer,e,this._featuresCollection))));return Promise.all(t).then((async e=>{this._selectionLoading=!1;let t=[];e.forEach((e=>{Object.keys(e).forEach((i=>{t=t.concat(e[i])}))}));let i=!1;t.forEach((e=>{const t=e.geometry;e.symbol="point"===t.type?this.sketchPointSymbol:"polyline"===t.type?this.sketchLineSymbol:"polygon"===t.type?this.sketchPolygonSymbol:void 0,i=e?.layer?.hasOwnProperty("objectIdField")||e.hasOwnProperty("getObjectId")}));const s=this.layerViews[0].layer,a=this.selectLayerView.layer,l=i&&s.url===a.url&&a.layerId===s.layerId;await this._sketchGraphicsChanged({detail:{graphics:t,useOIDs:l}},!0)}))}_useLayerFeaturesEnabledChanged(){this.useLayerFeaturesEnabled=!this.useLayerFeaturesEnabled,this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}async _getTranslations(){const e=await n(this.el);this._translations=e[0]}static get watchers(){return{geometries:["watchGeometriesHandler"],locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"]}}};S.style=':host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100% !important;border:1px solid var(--calcite-color-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:"1rem" !important}.end-border{border-inline-end:1px solid var(--calcite-color-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.tooltip-container{display:flex}.padding-start-1-2{padding-inline-start:0.5rem}.icon{--calcite-color-icon-color:var(--calcite-color-brand)}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2)}';const L=Object.freeze({__proto__:null,default:[{descriptionPDF:{labelWidthDisplay:"2-5/8",labelHeightDisplay:"1",labelsPerPageDisplay:"30",averyPartNumber:"*60"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.1875,rightMargin:.1875,topMargin:.5,bottomMargin:.5},numLabelsAcross:3,numLabelsDown:10,labelWidth:2.625,labelHeight:1,horizGapIn:.125,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1",labelsPerPageDisplay:"20",averyPartNumber:"*61"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.47637821,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:10,labelWidth:4,labelHeight:1.0025,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1-1/3",labelsPerPageDisplay:"14",averyPartNumber:"*62"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.81889808,bottomMargin:.83464612},numLabelsAcross:2,numLabelsDown:7,labelWidth:4,labelHeight:1.3352,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:6}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"2",labelsPerPageDisplay:"10",averyPartNumber:"*63"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.5,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:5,labelWidth:4,labelHeight:2,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:12,maxNumLabelLines:10}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"3-1/3",labelsPerPageDisplay:"6",averyPartNumber:"*64"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.4724412,bottomMargin:.50000027},numLabelsAcross:2,numLabelsDown:3,labelWidth:4,labelHeight:3.342,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:14,maxNumLabelLines:12}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"1/2",labelsPerPageDisplay:"80",averyPartNumber:"*67"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.307086375,rightMargin:.307086375,topMargin:.4724412,bottomMargin:.49606326},numLabelsAcross:4,numLabelsDown:20,labelWidth:1.75,labelHeight:.50155,horizGapIn:.29527575,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:3}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"2/3",labelsPerPageDisplay:"60",averyPartNumber:"*95"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.28936983,rightMargin:.28936983,topMargin:.53937037,bottomMargin:.5511814},numLabelsAcross:4,numLabelsDown:15,labelWidth:1.75,labelHeight:.6605,horizGapIn:.30708678,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:4}}]}),k=class{constructor(t){e(this,t)}get el(){return i(this)}defaultNumLabelsPerPage;disabled=!1;locale;_translations;_labelInfoElement;_intl;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async downloadCSV(e,t,i,s=!0){return _(e,t,!0,i,s)}async downloadPDF(e,t,i=!1,s="",a=""){return v(e,t,this._labelInfoElement.selectedOption?.value,i,s,a)}async componentWillLoad(){await this._getTranslations(),await this._initModules()}render(){return s(a,{key:"afa6cf667c52c3923d99db3f53854f5acb12ecb3"},s("calcite-select",{key:"97eed0501514f4b1466d02dfc8f58ddce55cc2ec",disabled:this.disabled,label:"",ref:e=>{this._labelInfoElement=e}}))}componentDidLoad(){this._renderOptions()}async _initModules(){const[e]=await h(["esri/intl"]);this._intl=e}_getLabelSizeText(e){const t="&lrm;"+e.descriptionPDF.labelWidthDisplay+" x "+e.descriptionPDF.labelHeightDisplay+"&rlm;";return this._translations.pdfLabel.replace("{{n}}",e.descriptionPDF.labelsPerPageDisplay).replace("{{labelSize}}",t)}async _getTranslations(){const e=await n(this.el);this._translations=e[0]}_renderOptions(){(L.default||L).sort(((e,t)=>{const i=parseInt(e.descriptionPDF.labelsPerPageDisplay,10),s=parseInt(t.descriptionPDF.labelsPerPageDisplay,10);return i<s?-1:i>s?1:0})).forEach(((e,t)=>{const i=document.createElement("calcite-option");i.value=e,i.innerHTML=this._getLabelSizeText(e),this._labelInfoElement.appendChild(i),(this.defaultNumLabelsPerPage?parseInt(e.descriptionPDF.labelsPerPageDisplay,10)===this.defaultNumLabelsPerPage:0===t)&&(i.selected=!0)}))}static get watchers(){return{locale:["localeWatchHandler"]}}};k.style=":host{display:block}";const P=class{constructor(i){e(this,i),this.selectionLoadingChange=t(this,"selectionLoadingChange",7),this.selectionSetsChanged=t(this,"selectionSetsChanged",7)}get el(){return i(this)}addresseeLayer;enabledLayerIds=[];locale;mapView;selectionSets=[];sketchLineSymbol;sketchPointSymbol;sketchPolygonSymbol;_translations;_selectionMode=m.ADD;_refineLayer;_addEnabled=!0;_drawTools;_refineSets=[];_enabledLayerIds=[];_layerPicker;_featuresCollection={};_refineSelectionSet;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}selectionLoadingChange;selectionSetsChanged;async componentWillLoad(){await this._getTranslations(),this._enabledLayerIds=this._getEnabledLayerIds(),await this._setRefineSet(this._enabledLayerIds[0])}render(){return s(a,{key:"01d9d6eb8f212f458bd6651d8e874bb108a6e773"},s("div",{key:"eb9fb249f89a671e9c67fb83db2203713814d72b",class:(this._enabledLayerIds.length>1?"display-block":"display-none")+" padding-top-sides-1"},s("div",{key:"a5991f6da0f888e85e1cf88967c8c8aa12790575",class:"display-flex"},s("calcite-label",{key:"e8f31c546ceae8a02ed1d49ec8ae9f1f6fb78022",class:"font-bold width-full label-margin-0"},s("div",{key:"d4be658063d140f56356ce7b694841e9bc89a1b3",class:"display-flex"},this._translations.inputLayer,s("calcite-icon",{key:"6d3ff8cbb1bcc62aca444eb4d030a236466adfac",class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"refine-input-layer",scale:"s"})),s("map-layer-picker",{key:"1e9dad9f2c8ff2ce130f79c37d804d4bd8162a96",enabledLayerIds:this._enabledLayerIds,locale:this.locale,mapView:this.mapView,onLayerSelectionChange:e=>{this._layerSelectionChange(e)},ref:e=>{this._layerPicker=e},selectedIds:[this._refineLayer.layer.id],showTables:!1})),s("calcite-popover",{key:"b4f838f56f88cff5973d8f5fd3c54b7f0d7c72b3",closable:!0,label:"",referenceElement:"refine-input-layer"},s("span",{key:"fcbdf68353eabcf090e60d8a239f07230f4bb37c",class:"tooltip-message"},this._translations.inputLayerTip)))),s("div",{key:"33891e7ff61cdd224a8652bae3e9d55256eb44a0",class:"padding-1"},s("div",{key:"a291edada53ed10197bec5fcc53d999f79042203",class:"padding-bottom-1"},s("calcite-segmented-control",{key:"0c84665a705a12d1e51fb470e604bc52d8ac7543",class:"w-100",width:"full"},s("calcite-segmented-control-item",{key:"e50d78508164a4ddf2a5da9def80a19a4562cb8c",checked:this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(m.ADD),value:m.ADD},s("span",{key:"b48811b1a2e56942965c944ff1eb35e10edd1db8",class:"font-weight-500"},this._translations.add)),s("calcite-segmented-control-item",{key:"dff6a191781fc4c6c3bde6fb3290da0ce96dea84",checked:!this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(m.REMOVE),value:m.REMOVE},s("span",{key:"6dd86784de32c25ffbe8c5e61847cb506a122b5e",class:"font-weight-500"},this._translations.remove)))),s("div",{key:"d39ce91248e4eb7867049bfe9d5537a74f96a0d2"},s("map-draw-tools",{key:"24a30d188807bf40749def362c21048ee92bb81b",active:!0,drawMode:u.REFINE,locale:this.locale,mapView:this.mapView,onDrawRedo:()=>this._redo(),onDrawUndo:()=>this._undo(),onSketchGraphicsChange:e=>this._sketchGraphicsChanged(e),pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,redoEnabled:this._refineSelectionSet?.redoStack.length>0,ref:e=>{this._drawTools=e},undoEnabled:this._refineSelectionSet?.undoStack.length>0})),s("br",{key:"7d28ea63ea92de45bd457f0aef93d99deea62553"}),s("calcite-list",{key:"9b3c34304632ccf9253eec71e955502a0be48a13",class:"list-border",label:""},this._getRefineSelectionSetList())))}_layerSelectionChange(e){this._setRefineSet(e.detail[0])}_setSelectionMode(e){this._selectionMode=e}_sketchGraphicsChanged(e){const t=e.detail?.graphics[0].geometry;this._selectFeatures(t)}_getEnabledLayerIds(){return this.selectionSets.reduce(((e,t)=>{const i=t?.layerView?.layer.id;return i&&e.indexOf(i)<0?e.push(i):t.workflowType===y.REFINE&&Object.keys(t.refineInfos).forEach((t=>{e.indexOf(t)<0&&e.push(t)})),e}),[])}async _setRefineSet(e){this.selectionSets.some((t=>{if(t.workflowType===y.REFINE)return this._refineSelectionSet=t,Object.keys(t.refineInfos).indexOf(e)>-1}))||await this._initRefineSet(e,this._refineSelectionSet),this._refineLayer=this._refineSelectionSet.refineInfos[e].layerView}async _initRefineSet(e,t){const i={};i[e]={addIds:[],removeIds:[],layerView:await p(this.mapView,e)},t?t.refineInfos={...t.refineInfos,...i}:(this._refineSelectionSet={id:Date.now(),searchResult:void 0,buffer:void 0,distance:0,download:!0,unit:"feet",label:"Refine",selectedIds:[],layerView:void 0,geometries:[],graphics:[],selectLayers:[],workflowType:y.REFINE,searchDistanceEnabled:!1,useLayerFeaturesEnabled:!1,refineInfos:i,redoStack:[],undoStack:[],sketchGraphic:void 0},this.selectionSets.push(this._refineSelectionSet))}_undo(){const e=this._refineSelectionSet.undoStack.pop();this._updateIds(e.ids,e.mode===m.ADD?m.REMOVE:m.ADD,this._refineSelectionSet.redoStack,e.layerView)}_redo(){const e=this._refineSelectionSet.redoStack.pop();this._updateIds(e.ids,e.mode===m.ADD?m.REMOVE:m.ADD,this._refineSelectionSet.undoStack,e.layerView)}_getRefineSelectionSetList(){const e=this._getTotal(this.selectionSets);let t;this.selectionSets.some((e=>{if(e.workflowType===y.REFINE)return t=e,!0}));let i=0,a=0;return Object.keys(t.refineInfos).forEach((e=>{i+=t.refineInfos[e].addIds.length,a+=t.refineInfos[e].removeIds.length})),[s("calcite-list-item",{label:this._translations.featuresAdded.replace("{{n}}",i.toString()),"non-interactive":!0}),s("calcite-list-item",{label:this._translations.featuresRemoved.replace("{{n}}",a.toString()),"non-interactive":!0}),s("calcite-list-item",{label:this._translations.totalSelected.replace("{{n}}",e.toString()),"non-interactive":!0})]}_getTotal(e){const t=f(e);return Object.keys(t).reduce(((e,i)=>e+t[i].ids.length),0)}async _getTranslations(){const e=await n(this.el);this._translations=e[0]}async _selectFeatures(e){this.selectionLoadingChange.emit(!0),this._featuresCollection[this._refineLayer?.layer.id]=[];const t=await b(0,this._refineLayer?.layer,e,this._featuresCollection);this.selectionLoadingChange.emit(!1);let i=[];Object.keys(t).forEach((e=>{e===this._refineLayer?.layer.id&&(i=i.concat(t[e]))}));const s=Array.isArray(i)?i.map((e=>e.attributes[e?.layer?.objectIdField])):[];await this._updateIds(s,this._selectionMode,this._refineSelectionSet.undoStack,this._refineLayer),this._drawTools.clear()}async _highlightFeatures(){this._clearHighlight(),w.highlightHandles=await g(this.selectionSets)}_clearHighlight(){w.removeHandles()}async _updateIds(e,t,i,s){let a=!1;const l=this._refineSelectionSet.refineInfos,h=s.layer.id,n={};n[h]={addIds:[],removeIds:[],layerView:s};const r=Object.keys(l).indexOf(h)>-1?l[h]:n[h];if(t===m.ADD)r.addIds=[...new Set([...e,...r.addIds])],r.addIds.length>0&&i.push({ids:e,mode:t,layerView:s}),r.removeIds.length>0&&(r.removeIds=r.removeIds.filter((t=>e.indexOf(t)<0)));else{const l=this.selectionSets.reduce(((t,i)=>(e.forEach((e=>{i.workflowType!==y.REFINE?i.selectedIds.indexOf(e)>-1&&t.push(e):Object.keys(i.refineInfos).some((a=>{const l=i.refineInfos[a];if(l.layerView.layer.id===s.layer.id&&l.addIds.indexOf(e)>-1)return t.push(e),!0}))})),t)),[]);r.removeIds=[...new Set([...l,...r.removeIds])],r.addIds=r.addIds.filter((e=>l.indexOf(e)<0)),r.removeIds.length>0&&i.push({ids:l,mode:t,layerView:s}),this.selectionSets=this.selectionSets.reduce(((e,t)=>(t.workflowType!==y.REFINE&&t.layerView.layer.id===s.layer.id?(t.selectedIds=t.selectedIds.filter((e=>r.removeIds.indexOf(e)<0)),t.selectedIds.length>0?e.push(t):a=!0):e.push(t),e)),[])}this._refineSelectionSet.refineInfos[h]=r,this.selectionSets=[...this.selectionSets],a&&this.selectionSetsChanged.emit(this.selectionSets),await this._highlightFeatures()}static get watchers(){return{locale:["localeWatchHandler"]}}};P.style=':host{display:block}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir="rtl"] .main-label{display:flex;float:right}.border{outline:1px solid var(--calcite-color-border-input)}.margin-top-1{margin-top:1rem}.esri-sketch{display:flex;flex-flow:column wrap}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:"Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;line-height:1.3em;background-color:var(--calcite-color-foreground-1)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row nowrap;padding:0}*/ .esri-sketch__tool-section{border-right:1px solid rgba(110, 110, 110, .3)}.esri-sketch__section{align-items:center;display:flex;flex-flow:row nowrap;padding:0 7px;margin:6px 0;border-right:1px solid rgba(110, 110, 110, .3)}.display-flex{display:flex}.font-bold{font-weight:bold}.width-full{width:100%}.label-margin-0{--calcite-label-margin-bottom:0}.padding-start-1-2{padding-inline-start:0.5rem}.font-weight-500{font-weight:500}.word-wrap-anywhere{word-wrap:anywhere}';export{S as map_select_tools,k as pdf_download,P as refine_selection}
6
+ import{r as e,c as t,g as i,h as s,H as a}from"./p-1b0588d2.js";import{a as l,l as h,g as n}from"./p-ee2cbba0.js";import{e as r,h as c,k as o,l as d,c as p,m as b,n as f,o as g}from"./p-952da957.js";import{a as y,e as m,f as u}from"./p-80cb7c73.js";import{s as w}from"./p-48942eb8.js";import{d as _,a as v}from"./p-4f514c6d.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-e23b4193.js";import"./p-4fe489cf.js";import"./p-2bc98cb0.js";import"./p-4f236b5d.js";import"./p-570b13d9.js";import"./p-0668e30d.js";const S=class{constructor(i){e(this,i),this.selectionSetChange=t(this,"selectionSetChange",7)}get el(){return i(this)}bufferColor=[227,139,79,.8];bufferOutlineColor=[255,255,255];customLabelEnabled;enabledLayerIds=[];enableLayerFeatures=!0;enableLayerFeaturesOnLoad=!1;enableSearchDistance=!0;enableSearchDistanceOnLoad=!1;enableSketchTools=!0;defaultBufferDistance;defaultBufferUnit;geometries=[];isUpdate=!1;layerViews=[];locale;mapView;noResultText;searchConfiguration;selectionSet;selectionLayerIds=[];selectLayerView;sketchLineSymbol;sketchPointSymbol;sketchPolygonSymbol;searchDistanceEnabled=!1;useLayerFeaturesEnabled=!1;_numSelected=0;_searchTerm;_selectionLoading=!1;_translations;_esriRequest;FeatureLayer;Graphic;GraphicsLayer;Search;_geometryEngine;_bufferGeometry;_bufferGraphicsLayer;_bufferTools;_distance;_drawTools;_labelName;_selectLayers;_searchElement;_searchResult;_searchWidget;_selectedIds=[];_selectionLabel="";_skipGeomOIDs;_sketchGraphic;_graphics=[];_unit;_workflowType;_featuresCollection={};async watchGeometriesHandler(e,t){if(e!==t){const t=0===e.length;if(await this._clearResults(t,t),e.length>0)return this._highlightWithOIDsOrGeoms()}}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async mapViewWatchHandler(e,t){e&&e!==t&&await this._init()}async watchSearchConfigurationHandler(e,t){JSON.stringify(e)!==JSON.stringify(t)&&await this._initSearchWidget()}async clearSelection(){return this._clearResults(!0,!0)}async getSelection(){return/\S+/gm.test(this._selectionLabel)||await this._updateLabel(),{id:this.isUpdate?this.selectionSet.id:Date.now(),searchResult:this._searchResult,buffer:this._bufferGeometry,distance:this._bufferTools?.distance,download:!0,unit:this._bufferTools?.unit,label:this._selectionLabel,selectedIds:this._selectedIds,layerView:this.selectLayerView,geometries:this.geometries,graphics:this._graphics,selectLayers:this.layerViews,skipGeomOIDs:this._skipGeomOIDs,searchDistanceEnabled:this.searchDistanceEnabled,workflowType:this._workflowType,useLayerFeaturesEnabled:this.useLayerFeaturesEnabled,sketchGraphic:this._sketchGraphic}}selectionSetChange;searchConfigurationChangeChanged(e){this.searchConfiguration=e.detail}async distanceChanged(e){await this._distanceChanged(e.detail)}async unitChanged(e){e.detail.newValue!==e.detail.oldValue&&(this._unit=e.detail.newValue,await this._updateLabel())}async componentWillLoad(){await this._getTranslations(),await this._initModules()}async componentDidLoad(){await this._init()}render(){const e=this.enableSketchTools?"":"display-none",t=this.enableSketchTools?"padding-top-1":"";return s(a,{key:"a5001c196db1464bffa746310638b2853ff5fdf9"},this._getMapLayerPicker(),s("div",{key:"3e023a81f76bdd371c84d9ecb42e97a9160c6f89",class:"border-bottom"}),s("div",{key:"c6be571bee2d2c1fe82407aee9a1cf9f1f27280d",class:"padding-top-sides-1"},s("div",{key:"aaf5992f616728f6be5be034700ac09b9b5b733f",class:"search-widget",ref:e=>{this._searchElement=e}}),s("div",{key:"a86b4e147b7baf4b93272bed7f189a47faf65ab8",class:t},s("map-draw-tools",{key:"9b3c2faaa8f612d055189206e2baeb868d55dceb",active:!0,class:e,editGraphicsEnabled:!this.useLayerFeaturesEnabled,graphics:this._graphics,locale:this.locale,mapView:this.mapView,onSketchGraphicsChange:e=>{this._sketchGraphicsChanged(e)},pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,ref:e=>{this._drawTools=e}})),this.enableSearchDistance?this._getBufferOptions():void 0,this.enableLayerFeatures?this._getUseLayerFeaturesOptions():void 0,this._getNumSelected()),s("div",{key:"73b3039f0861046a3f955872180b64c15bd5c5d9",class:"border-bottom"}),this._getNameInput())}_getBufferOptions(){this.enableSearchDistanceOnLoad&&(this.searchDistanceEnabled=!0,this.enableSearchDistanceOnLoad=!1);const e=this.searchDistanceEnabled?"search-distance":"div-not-visible",t="number"==typeof this.selectionSet?.distance?this.selectionSet.distance:this.defaultBufferDistance;return s("div",null,s("div",{class:"padding-top-1 display-flex"},s("calcite-label",{class:"label-margin-0 w-100",layout:"inline-space-between"},s("div",{class:"tooltip-container"},this._translations.searchDistance,s("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"search-distance-icon",scale:"s"}))),s("calcite-popover",{closable:!0,label:"",referenceElement:"search-distance-icon"},s("span",{class:"tooltip-message"},this._translations.useSearchDistanceTootip)),s("calcite-switch",{checked:this.searchDistanceEnabled,onCalciteSwitchChange:()=>this.searchDistanceEnabled=!this.searchDistanceEnabled})),s("div",{class:e},s("buffer-tools",{disabled:!this.searchDistanceEnabled,distance:t,geometries:this.geometries,locale:this.locale,onBufferComplete:e=>{this._bufferComplete(e)},ref:e=>this._bufferTools=e,unit:this.selectionSet?.unit||this.defaultBufferUnit})))}_getUseLayerFeaturesOptions(){this.enableLayerFeaturesOnLoad&&(this.useLayerFeaturesEnabled=!0,this.enableLayerFeaturesOnLoad=!1);const e=this.useLayerFeaturesEnabled?"div-visible":"div-not-visible";return s("div",null,s("div",{class:"padding-top-1 display-flex"},s("calcite-label",{class:"label-margin-0 w-100",layout:"inline-space-between"},s("div",{class:"tooltip-container"},this._translations.useLayerFeatures,s("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"use-layer-features-icon",scale:"s"}))),s("calcite-popover",{closable:!0,label:"",referenceElement:"use-layer-features-icon"},s("span",{class:"tooltip-message"},this._translations.useLayerFeaturesTooltip)),s("calcite-switch",{checked:this.useLayerFeaturesEnabled,onCalciteSwitchChange:()=>{this._useLayerFeaturesEnabledChanged()}})),s("div",{class:e+" padding-top-1"},s("map-layer-picker",{enabledLayerIds:this.selectionLayerIds,locale:this.locale,mapView:this.mapView,onLayerSelectionChange:e=>{this._layerSelectionChange(e)},selectedIds:this.layerViews.map((e=>e.layer.id)),showTables:!1})))}_getNumSelected(){const e=l(this.el),t=e&&"en"===e?`${this._translations.selectionLoading}...`:this._translations.selectionLoading;return s("div",{class:"padding-top-1 padding-bottom-1",style:{"align-items":"end",display:"flex"}},this._selectionLoading?s("div",null,s("calcite-loader",{class:"info-blue",inline:!0,label:t,scale:"m",type:"indeterminate"})):s("calcite-icon",{class:"info-blue padding-end-1-2",icon:"feature-layer",scale:"s"}),s("calcite-input-message",{class:"info-blue",scale:"m"},this._selectionLoading?t:this.noResultText&&0===this._numSelected?this.noResultText:this._translations.selectedFeatures.replace("{{n}}",this._numSelected.toString())))}_getNameInput(){return s("div",{class:"padding-sides-1 padding-top-1 "+(this.customLabelEnabled?"":"display-none")},s("calcite-label",{class:"font-bold"},this._translations.listName,s("calcite-input",{onInput:()=>{this._selectionLabel=this._labelName.value},placeholder:this._translations.listNamePlaceholder,ref:e=>{this._labelName=e},value:this._selectionLabel||""})))}_getMapLayerPicker(){return s("div",{class:"display-flex padding-sides-1 padding-bottom-1"},s("calcite-label",{class:"font-bold width-full label-margin-0"},this._translations.inputLayer,s("map-layer-picker",{enabledLayerIds:this.enabledLayerIds,locale:this.locale,mapView:this.mapView,onLayerSelectionChange:e=>{this._inputLayerSelectionChange(e)},selectedIds:this.selectLayerView?[this.selectLayerView.layer.id]:this.selectionSet?[this.selectionSet.layerView.layer.id]:[],showTables:!1})))}async _initModules(){const[e,t,i,s,a,l]=await h(["esri/request","esri/layers/GraphicsLayer","esri/Graphic","esri/widgets/Search","esri/geometry/geometryEngine","esri/layers/FeatureLayer"]);this._esriRequest=e,this.GraphicsLayer=t,this.Graphic=i,this.Search=s,this._geometryEngine=a,this.FeatureLayer=l}async _init(){this._initGraphicsLayer(),await this._initSelectionSet(),await this._initSearchWidget()}async _initSelectionSet(){this.selectionSet&&(this._searchTerm=this.selectionSet.searchResult?.name,this._searchResult=this.selectionSet.searchResult,this._selectLayers=this.selectionSet.selectLayers,this._selectedIds=this.selectionSet.selectedIds,this._skipGeomOIDs=this.selectionSet.skipGeomOIDs,this.searchDistanceEnabled=this.selectionSet.searchDistanceEnabled,this.useLayerFeaturesEnabled=this.selectionSet.useLayerFeaturesEnabled,this._distance=this.selectionSet.searchDistanceEnabled?this.selectionSet.distance:0,this._unit=this.selectionSet.unit,this._workflowType=this.selectionSet.workflowType,this.selectLayerView=this.selectionSet.layerView,this._sketchGraphic=this.selectionSet.sketchGraphic,this.geometries=[...this.selectionSet?.geometries||[]],this._graphics=this.geometries.map((e=>new this.Graphic({geometry:e,symbol:"point"===e.type?this.sketchPointSymbol:"polyline"===e.type?this.sketchLineSymbol:this.sketchPolygonSymbol}))),this._selectionLabel=this.selectionSet?.label,this.useLayerFeaturesEnabled||await(this._drawTools?.updateGraphics()),await r(this.selectionSet.selectedIds,this.selectionSet.layerView,this.mapView,!1))}async _initSearchWidget(){if(this.mapView&&this._searchElement){const e=this._getSearchConfig(this.searchConfiguration,this.mapView),t={view:this.mapView,container:this._searchElement,searchTerm:this._searchTerm,...e};this._searchWidget=new this.Search(t),this._searchWidget.popupEnabled=!1,this._searchWidget.resultGraphicEnabled=!1,this._searchWidget.on("search-clear",(()=>{const e=this._searchClearLabel();this._clearResults(!1,e)})),this._searchWidget.on("select-result",(e=>{this._selectResult(e.result)})),await this._searchWidget.when((()=>{this._searchWidget.allPlaceholder=this.searchConfiguration?.allPlaceholder&&"find address or place"!==this.searchConfiguration.allPlaceholder.toLowerCase()?this.searchConfiguration.allPlaceholder:this._translations.placeholder}))}}async _selectResult(e){if(e){this._searchResult=e;const t=e.feature,i=t?.layer,s=this.selectLayerView.layer,a=t?.getObjectId();let l,h;i?.sourceJSON?.isView&&(l=await this._getViewSourceUrl(i.url)),s?.sourceJSON?.isView&&(h=await this._getViewSourceUrl(s.url));const n=i?.url?.toLowerCase(),r=l?.toLowerCase(),c=s?.url?.toLowerCase(),o=h?.toLowerCase(),d=n&&c&&(n===c||n===o||r===c||r===o)&&!isNaN(a),p=d?[a]:void 0;this._workflowType=y.SEARCH,this._updateLabel();const b=[e.feature];this._updateSelection(b,d,p),this._drawTools.graphics=b,this._searchWidget.resultGraphic.visible=!1}else{const e=this._searchClearLabel();this._clearResults(!1,e)}}async _getViewSourceUrl(e){let t="";const i=`${e}/sources?f=json`;try{const e=await this._esriRequest(i,{query:{f:"json"}});1===e?.data?.services?.length&&(t=e.data.services[0].url)}catch(e){console.log(e)}return t}_searchClearLabel(){return this._searchResult?.name&&this._labelName.value.indexOf(this._searchResult.name)>-1}_getSearchConfig(e,t){const i=e?.sources;return i?.length>0?(e={...e,includeDefaultSources:!1},i.forEach((e=>{if(e.hasOwnProperty("layer")){const i=e,s=i.layer?.id,a=s?t.map.findLayerById(s):null,l=i?.layer?.url;a?i.layer=a:l&&(i.layer=new this.FeatureLayer(l))}})),i?.forEach((e=>{if(e.hasOwnProperty("locator")){const t=e;"ArcGIS World Geocoding Service"===t?.name&&(t.outFields=t.outFields||["Addr_type","Match_addr","StAddr","City"],t.singleLineFieldName="SingleLine"),t.url=t.url,delete t.url}}))):e={...e,includeDefaultSources:!0},e}_initGraphicsLayer(){const e=this._translations.bufferLayer;if(this.mapView){const t=this.mapView.map.layers.findIndex((t=>t.title===e));if(t>-1)this._bufferGraphicsLayer=this.mapView.map.layers.getItemAt(t);else{this._bufferGraphicsLayer=new this.GraphicsLayer({title:e,listMode:"hide"}),w.managedLayers[e]="buffer";const t=this.mapView.map.layers.findIndex((e=>e.title===this._translations.sketchLayer));t>-1?this.mapView.map.layers.add(this._bufferGraphicsLayer,t):this.mapView.map.layers.add(this._bufferGraphicsLayer)}}}async _sketchGraphicsChanged(e,t=!1){const i=e.detail.graphics;if(i.length>0&&i[0])if(t||(this._sketchGraphic=i[0]),this._workflowType=this.useLayerFeaturesEnabled?y.SELECT:y.SKETCH,this._workflowType===y.SKETCH&&await this._drawTools.updateGraphics(),await this._updateLabel(),this._clearSearchWidget(),this.useLayerFeaturesEnabled&&!t){const e=Array.isArray(i)?i.map((e=>e.geometry)):this.geometries;await this._selectLayerFeatures(e[0])}else{const t=i.reduce(((e,t)=>(t?.layer?.objectIdField?e.push(t.attributes[t.layer.objectIdField]):t.getObjectId&&e.push(t.getObjectId()),e)),[]),s=e.detail.useOIDs&&t.length>0;this._updateSelection(i,s,t),s&&await this._highlightFeatures(t)}else await this._clearResults(!0,!0)}async _highlightWithOIDsOrGeoms(){return this._skipGeomOIDs?.length>0?(this._selectedIds=this._skipGeomOIDs,this._highlightFeatures(this._selectedIds)):this._geomQuery(this.geometries)}async _highlightFeatures(e){w.removeHandles(),e.length>0&&w.highlightHandles.push(await c(e,this.selectLayerView,this.mapView)),this._numSelected=e.length,this.selectionSetChange.emit(e.length)}async _selectFeatures(e){this._selectionLoading=!0,this._selectedIds=await o(e,this.selectLayerView.layer),this._selectionLoading=!1,this._drawTools.graphics=this._graphics,await this._highlightFeatures(this._selectedIds)}async _bufferComplete(e){this._bufferGeometry=Array.isArray(e.detail)?e.detail[0]:e.detail;let t=this._bufferTools.distance,i=0;if(this._bufferGeometry){const e=new this.Graphic({geometry:this._bufferGeometry,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});this._bufferGraphicsLayer.removeAll(),this._bufferGraphicsLayer.add(e),await this._selectFeatures([this._bufferGeometry]),await this.mapView.goTo(e.geometry.extent),i=t,t=0}else this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),await this._highlightWithOIDsOrGeoms();await this._distanceChanged({oldValue:t,newValue:i})}_geomQuery(e){const t=d(e,this._geometryEngine);return this._selectFeatures(t)}async _clearResults(e=!0,t=!1){this._selectedIds=[],this._distance=void 0,this._unit=void 0,t&&(this._selectionLabel="",this._labelName&&(this._labelName.value="")),this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),e&&this._searchWidget&&this._clearSearchWidget(),w.removeHandles(),this._drawTools?.clear&&(this._graphics=[],await this._drawTools.clear()),this._numSelected=this._selectedIds.length,this.selectionSetChange.emit(this._numSelected)}_clearSearchWidget(){this._searchWidget.clear(),this._searchResult=void 0}_updateSelection(e,t,i){this._selectedIds=t&&i?i:this._selectedIds,this._skipGeomOIDs=t?i:void 0,this.geometries=Array.isArray(e)?e.map((e=>e.geometry)):this.geometries,this._graphics=e}async _updateLabel(){if(this.enableSearchDistance){const e=this._selectionLabel.indexOf(this._translations.sketch)>-1,t=this._selectionLabel.indexOf(this._translations.select)>-1,i=this._selectionLabel.indexOf(this._searchResult?.name)>-1,s=this._workflowType===y.SEARCH?this._searchResult?.name:this._workflowType===y.SELECT?this._translations.select:this._translations.sketch,a=this._unit?this._unit:this._bufferTools.unit,l=await this._bufferTools.getTranslatedUnit(a),h=isNaN(this._distance)?this._bufferTools.distance:this._distance;this._selectionLabel=e||t||i||!this._selectionLabel?`${s} ${h} ${l}`:this._selectionLabel,this._labelName.value=this._selectionLabel}}async _layerSelectionChange(e){if(Array.isArray(e.detail)&&e.detail.length>0){const t=e.detail.map((e=>p(this.mapView,e)));return Promise.all(t).then((e=>{this.layerViews=e,this._featuresCollection={},this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}))}}async _inputLayerSelectionChange(e){const t=e?.detail?.length>0?e.detail[0]:"";this.selectLayerView&&t===this.selectLayerView.layer.id||(this.selectLayerView=await p(this.mapView,t),await this._updateLabel(),this._bufferGeometry?await this._selectFeatures([this._bufferGeometry]):await this._highlightWithOIDsOrGeoms())}async _distanceChanged(e){e.newValue!==e.oldValue&&(this._distance=e.newValue,await this._updateLabel())}async _selectLayerFeatures(e){this._selectionLoading=!0;const t=this.layerViews.map((t=>(this._featuresCollection[t.layer.id]=[],b(0,t.layer,e,this._featuresCollection))));return Promise.all(t).then((async e=>{this._selectionLoading=!1;let t=[];e.forEach((e=>{Object.keys(e).forEach((i=>{t=t.concat(e[i])}))}));let i=!1;t.forEach((e=>{const t=e.geometry;e.symbol="point"===t.type?this.sketchPointSymbol:"polyline"===t.type?this.sketchLineSymbol:"polygon"===t.type?this.sketchPolygonSymbol:void 0,i=e?.layer?.hasOwnProperty("objectIdField")||e.hasOwnProperty("getObjectId")}));const s=this.layerViews[0].layer,a=this.selectLayerView.layer,l=i&&s.url===a.url&&a.layerId===s.layerId;await this._sketchGraphicsChanged({detail:{graphics:t,useOIDs:l}},!0)}))}_useLayerFeaturesEnabledChanged(){this.useLayerFeaturesEnabled=!this.useLayerFeaturesEnabled,this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}async _getTranslations(){const e=await n(this.el);this._translations=e[0]}static get watchers(){return{geometries:["watchGeometriesHandler"],locale:["localeWatchHandler"],mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"]}}};S.style=':host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100% !important;border:1px solid var(--calcite-color-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:"1rem" !important}.end-border{border-inline-end:1px solid var(--calcite-color-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.tooltip-container{display:flex}.padding-start-1-2{padding-inline-start:0.5rem}.icon{--calcite-color-icon-color:var(--calcite-color-brand)}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2)}';const L=Object.freeze({__proto__:null,default:[{descriptionPDF:{labelWidthDisplay:"2-5/8",labelHeightDisplay:"1",labelsPerPageDisplay:"30",averyPartNumber:"*60"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.1875,rightMargin:.1875,topMargin:.5,bottomMargin:.5},numLabelsAcross:3,numLabelsDown:10,labelWidth:2.625,labelHeight:1,horizGapIn:.125,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1",labelsPerPageDisplay:"20",averyPartNumber:"*61"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.47637821,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:10,labelWidth:4,labelHeight:1.0025,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1-1/3",labelsPerPageDisplay:"14",averyPartNumber:"*62"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.81889808,bottomMargin:.83464612},numLabelsAcross:2,numLabelsDown:7,labelWidth:4,labelHeight:1.3352,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:6}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"2",labelsPerPageDisplay:"10",averyPartNumber:"*63"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.5,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:5,labelWidth:4,labelHeight:2,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:12,maxNumLabelLines:10}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"3-1/3",labelsPerPageDisplay:"6",averyPartNumber:"*64"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.4724412,bottomMargin:.50000027},numLabelsAcross:2,numLabelsDown:3,labelWidth:4,labelHeight:3.342,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:14,maxNumLabelLines:12}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"1/2",labelsPerPageDisplay:"80",averyPartNumber:"*67"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.307086375,rightMargin:.307086375,topMargin:.4724412,bottomMargin:.49606326},numLabelsAcross:4,numLabelsDown:20,labelWidth:1.75,labelHeight:.50155,horizGapIn:.29527575,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:3}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"2/3",labelsPerPageDisplay:"60",averyPartNumber:"*95"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.28936983,rightMargin:.28936983,topMargin:.53937037,bottomMargin:.5511814},numLabelsAcross:4,numLabelsDown:15,labelWidth:1.75,labelHeight:.6605,horizGapIn:.30708678,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:4}}]}),k=class{constructor(t){e(this,t)}get el(){return i(this)}defaultNumLabelsPerPage;disabled=!1;locale;_translations;_labelInfoElement;_intl;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async downloadCSV(e,t,i,s=!0){return _(e,t,!0,i,s)}async downloadPDF(e,t,i=!1,s="",a=""){return v(e,t,this._labelInfoElement.selectedOption?.value,i,s,a)}async componentWillLoad(){await this._getTranslations(),await this._initModules()}render(){return s(a,{key:"2fd2ec44e8962468e3698b81e98746ddf6b7a3ca"},s("calcite-select",{key:"d24fca5c39aa358116ee8557249f7a4b09727b3f",disabled:this.disabled,label:"",ref:e=>{this._labelInfoElement=e}}))}componentDidLoad(){this._renderOptions()}async _initModules(){const[e]=await h(["esri/intl"]);this._intl=e}_getLabelSizeText(e){const t="&lrm;"+e.descriptionPDF.labelWidthDisplay+" x "+e.descriptionPDF.labelHeightDisplay+"&rlm;";return this._translations.pdfLabel.replace("{{n}}",e.descriptionPDF.labelsPerPageDisplay).replace("{{labelSize}}",t)}async _getTranslations(){const e=await n(this.el);this._translations=e[0]}_renderOptions(){(L.default||L).sort(((e,t)=>{const i=parseInt(e.descriptionPDF.labelsPerPageDisplay,10),s=parseInt(t.descriptionPDF.labelsPerPageDisplay,10);return i<s?-1:i>s?1:0})).forEach(((e,t)=>{const i=document.createElement("calcite-option");i.value=e,i.innerHTML=this._getLabelSizeText(e),this._labelInfoElement.appendChild(i),(this.defaultNumLabelsPerPage?parseInt(e.descriptionPDF.labelsPerPageDisplay,10)===this.defaultNumLabelsPerPage:0===t)&&(i.selected=!0)}))}static get watchers(){return{locale:["localeWatchHandler"]}}};k.style=":host{display:block}";const P=class{constructor(i){e(this,i),this.selectionLoadingChange=t(this,"selectionLoadingChange",7),this.selectionSetsChanged=t(this,"selectionSetsChanged",7)}get el(){return i(this)}addresseeLayer;enabledLayerIds=[];locale;mapView;selectionSets=[];sketchLineSymbol;sketchPointSymbol;sketchPolygonSymbol;_translations;_selectionMode=m.ADD;_refineLayer;_addEnabled=!0;_drawTools;_refineSets=[];_enabledLayerIds=[];_layerPicker;_featuresCollection={};_refineSelectionSet;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}selectionLoadingChange;selectionSetsChanged;async componentWillLoad(){await this._getTranslations(),this._enabledLayerIds=this._getEnabledLayerIds(),await this._setRefineSet(this._enabledLayerIds[0])}render(){return s(a,{key:"8220100e14abd8339947a74df2d8072d06fb2a25"},s("div",{key:"1d7426778d638f347b563bfd29478fae7598e2dd",class:(this._enabledLayerIds.length>1?"display-block":"display-none")+" padding-top-sides-1"},s("div",{key:"cfb649989c24c403bde7d358794933f8f7959bb8",class:"display-flex"},s("calcite-label",{key:"dce85bbfa526941a0fb46c1aeba57f4b028948ef",class:"font-bold width-full label-margin-0"},s("div",{key:"86c19198643381fd99681c53bf0b2b5e66ecf7dc",class:"display-flex"},this._translations.inputLayer,s("calcite-icon",{key:"392022947cd9f53b4b83895992c5b0b32e56fb06",class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"refine-input-layer",scale:"s"})),s("map-layer-picker",{key:"d0946a46e7a79fc613b9eb9aa3e6f896c12bef92",enabledLayerIds:this._enabledLayerIds,locale:this.locale,mapView:this.mapView,onLayerSelectionChange:e=>{this._layerSelectionChange(e)},ref:e=>{this._layerPicker=e},selectedIds:[this._refineLayer.layer.id],showTables:!1})),s("calcite-popover",{key:"3b733fd5e7ceb011446112e65aa1ee1b0c5899c7",closable:!0,label:"",referenceElement:"refine-input-layer"},s("span",{key:"2076104710f4fbdd1de1f31b552b17749ebf9239",class:"tooltip-message"},this._translations.inputLayerTip)))),s("div",{key:"040efdfd6a269244790101cc0712a1cb0bac40d8",class:"padding-1"},s("div",{key:"be963f2cb157fda55980166359e53139a5713405",class:"padding-bottom-1"},s("calcite-segmented-control",{key:"459fa98e8852ea96afd0c9ab5864787f80ff6559",class:"w-100",width:"full"},s("calcite-segmented-control-item",{key:"965fa774838ecd3292c19a430cdbdfc7b44c82b2",checked:this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(m.ADD),value:m.ADD},s("span",{key:"e0b6fddbded9c78fa98674709ff03f050fd47300",class:"font-weight-500"},this._translations.add)),s("calcite-segmented-control-item",{key:"56e453183fc559ddbce5b041095fad5a8d6262ab",checked:!this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(m.REMOVE),value:m.REMOVE},s("span",{key:"13593da569557fa57822c98e12a5654cade219a1",class:"font-weight-500"},this._translations.remove)))),s("div",{key:"029fec164d9475274294a1d740a434cab2535cdc"},s("map-draw-tools",{key:"a212c5d21b2b1cdf7ba284a95dacaf83cf0180c9",active:!0,drawMode:u.REFINE,locale:this.locale,mapView:this.mapView,onDrawRedo:()=>this._redo(),onDrawUndo:()=>this._undo(),onSketchGraphicsChange:e=>this._sketchGraphicsChanged(e),pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,redoEnabled:this._refineSelectionSet?.redoStack.length>0,ref:e=>{this._drawTools=e},undoEnabled:this._refineSelectionSet?.undoStack.length>0})),s("br",{key:"352a0523461cfeeae3bae09ae1cc6f8fa759616b"}),s("calcite-list",{key:"948c7f0aa24d827d29cbc1c2c702deb52134e771",class:"list-border",label:""},this._getRefineSelectionSetList())))}_layerSelectionChange(e){this._setRefineSet(e.detail[0])}_setSelectionMode(e){this._selectionMode=e}_sketchGraphicsChanged(e){const t=e.detail?.graphics[0].geometry;this._selectFeatures(t)}_getEnabledLayerIds(){return this.selectionSets.reduce(((e,t)=>{const i=t?.layerView?.layer.id;return i&&e.indexOf(i)<0?e.push(i):t.workflowType===y.REFINE&&Object.keys(t.refineInfos).forEach((t=>{e.indexOf(t)<0&&e.push(t)})),e}),[])}async _setRefineSet(e){this.selectionSets.some((t=>{if(t.workflowType===y.REFINE)return this._refineSelectionSet=t,Object.keys(t.refineInfos).indexOf(e)>-1}))||await this._initRefineSet(e,this._refineSelectionSet),this._refineLayer=this._refineSelectionSet.refineInfos[e].layerView}async _initRefineSet(e,t){const i={};i[e]={addIds:[],removeIds:[],layerView:await p(this.mapView,e)},t?t.refineInfos={...t.refineInfos,...i}:(this._refineSelectionSet={id:Date.now(),searchResult:void 0,buffer:void 0,distance:0,download:!0,unit:"feet",label:"Refine",selectedIds:[],layerView:void 0,geometries:[],graphics:[],selectLayers:[],workflowType:y.REFINE,searchDistanceEnabled:!1,useLayerFeaturesEnabled:!1,refineInfos:i,redoStack:[],undoStack:[],sketchGraphic:void 0},this.selectionSets.push(this._refineSelectionSet))}_undo(){const e=this._refineSelectionSet.undoStack.pop();this._updateIds(e.ids,e.mode===m.ADD?m.REMOVE:m.ADD,this._refineSelectionSet.redoStack,e.layerView)}_redo(){const e=this._refineSelectionSet.redoStack.pop();this._updateIds(e.ids,e.mode===m.ADD?m.REMOVE:m.ADD,this._refineSelectionSet.undoStack,e.layerView)}_getRefineSelectionSetList(){const e=this._getTotal(this.selectionSets);let t;this.selectionSets.some((e=>{if(e.workflowType===y.REFINE)return t=e,!0}));let i=0,a=0;return Object.keys(t.refineInfos).forEach((e=>{i+=t.refineInfos[e].addIds.length,a+=t.refineInfos[e].removeIds.length})),[s("calcite-list-item",{label:this._translations.featuresAdded.replace("{{n}}",i.toString()),"non-interactive":!0}),s("calcite-list-item",{label:this._translations.featuresRemoved.replace("{{n}}",a.toString()),"non-interactive":!0}),s("calcite-list-item",{label:this._translations.totalSelected.replace("{{n}}",e.toString()),"non-interactive":!0})]}_getTotal(e){const t=f(e);return Object.keys(t).reduce(((e,i)=>e+t[i].ids.length),0)}async _getTranslations(){const e=await n(this.el);this._translations=e[0]}async _selectFeatures(e){this.selectionLoadingChange.emit(!0),this._featuresCollection[this._refineLayer?.layer.id]=[];const t=await b(0,this._refineLayer?.layer,e,this._featuresCollection);this.selectionLoadingChange.emit(!1);let i=[];Object.keys(t).forEach((e=>{e===this._refineLayer?.layer.id&&(i=i.concat(t[e]))}));const s=Array.isArray(i)?i.map((e=>e.attributes[e?.layer?.objectIdField])):[];await this._updateIds(s,this._selectionMode,this._refineSelectionSet.undoStack,this._refineLayer),this._drawTools.clear()}async _highlightFeatures(){this._clearHighlight(),w.highlightHandles=await g(this.selectionSets)}_clearHighlight(){w.removeHandles()}async _updateIds(e,t,i,s){let a=!1;const l=this._refineSelectionSet.refineInfos,h=s.layer.id,n={};n[h]={addIds:[],removeIds:[],layerView:s};const r=Object.keys(l).indexOf(h)>-1?l[h]:n[h];if(t===m.ADD)r.addIds=[...new Set([...e,...r.addIds])],r.addIds.length>0&&i.push({ids:e,mode:t,layerView:s}),r.removeIds.length>0&&(r.removeIds=r.removeIds.filter((t=>e.indexOf(t)<0)));else{const l=this.selectionSets.reduce(((t,i)=>(e.forEach((e=>{i.workflowType!==y.REFINE?i.selectedIds.indexOf(e)>-1&&t.push(e):Object.keys(i.refineInfos).some((a=>{const l=i.refineInfos[a];if(l.layerView.layer.id===s.layer.id&&l.addIds.indexOf(e)>-1)return t.push(e),!0}))})),t)),[]);r.removeIds=[...new Set([...l,...r.removeIds])],r.addIds=r.addIds.filter((e=>l.indexOf(e)<0)),r.removeIds.length>0&&i.push({ids:l,mode:t,layerView:s}),this.selectionSets=this.selectionSets.reduce(((e,t)=>(t.workflowType!==y.REFINE&&t.layerView.layer.id===s.layer.id?(t.selectedIds=t.selectedIds.filter((e=>r.removeIds.indexOf(e)<0)),t.selectedIds.length>0?e.push(t):a=!0):e.push(t),e)),[])}this._refineSelectionSet.refineInfos[h]=r,this.selectionSets=[...this.selectionSets],a&&this.selectionSetsChanged.emit(this.selectionSets),await this._highlightFeatures()}static get watchers(){return{locale:["localeWatchHandler"]}}};P.style=':host{display:block}.div-visible{display:inherit}.div-not-visible{display:none !important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir="rtl"] .main-label{display:flex;float:right}.border{outline:1px solid var(--calcite-color-border-input)}.margin-top-1{margin-top:1rem}.esri-sketch{display:flex;flex-flow:column wrap}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:"Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;line-height:1.3em;background-color:var(--calcite-color-foreground-1)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row nowrap;padding:0}*/ .esri-sketch__tool-section{border-right:1px solid rgba(110, 110, 110, .3)}.esri-sketch__section{align-items:center;display:flex;flex-flow:row nowrap;padding:0 7px;margin:6px 0;border-right:1px solid rgba(110, 110, 110, .3)}.display-flex{display:flex}.font-bold{font-weight:bold}.width-full{width:100%}.label-margin-0{--calcite-label-margin-bottom:0}.padding-start-1-2{padding-inline-start:0.5rem}.font-weight-500{font-weight:500}.word-wrap-anywhere{word-wrap:anywhere}';export{S as map_select_tools,k as pdf_download,P as refine_selection}
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as t,g as e,h as i,H as a,c as s}from"./p-8c40bdec.js";import{g as n}from"./p-a23de3b0.js";import{s as c}from"./p-1309ac58.js";import{d as o}from"./p-80cb7c73.js";import{E as l}from"./p-4f236b5d.js";import"./p-6a68306c.js";import"./p-d4056c1c.js";import"./p-fa639501.js";import"./p-570b13d9.js";import"./p-0668e30d.js";const d=class{constructor(e){t(this,e)}get el(){return e(this)}hasChanges=!1;hasErrors=!1;instanceid="";locale;value="";async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}componentDidLoad(){const t=document.getElementById(`${this.instanceid}-container`);if(t){this._editor=monaco.editor.create(t,{value:this.value,language:"json",theme:"vs",minimap:{enabled:!1},automaticLayout:!0,scrollBeyondLastLine:!1}),this._currentModel=this._editor.getModel(),this._contentChanged=this._currentModel.onDidChangeContent(this._onEditorChange.bind(this));const e=monaco.editor.setModelMarkers,i=this;monaco.editor.setModelMarkers=function(t,a,s){t.id===i._currentModel.id&&(i._flagEditorHasErrors(s.length>0),i.hasErrors||(i._flagEditorHasChanges(i._currentModel?.canUndo()),i._currentModel?.canUndo()&&i._flagEditorContentChanged()),document.getElementById(`${i.instanceid}-errorFlag`).style.visibility=i.hasErrors?"visible":"hidden"),e.call(monaco.editor,t,a,s)},this._diffEditor=monaco.editor.createDiffEditor(document.getElementById(`${this.instanceid}-diff-container`),{automaticLayout:!0}),this._setDiffModel(),this._loaded=!0,this._toggleUndoRedo()}}async componentWillLoad(){this._initValueObserver(),await this._getTranslations()}render(){return i(a,{key:"ba7c8a397da913d86f5d294cdfbb5ec1b84d89de"},i("div",{key:"bc5c6d1ee443b2096cc44d0b66850d4ebe8462da",id:`${this.instanceid}-editor-container`,class:"editor-container padding-right"},i("div",{key:"dbaf682cba354ce7eef21b03a71832fd39911332",class:"editor-controls"},i("div",{key:"e454e1dd36aa620abf2ffb7877bebb9adc70ff15",class:"editor-buttons"},i("calcite-icon",{key:"1de67e151c6e65b004a431d89dc785ca286a8e11",id:`${this.instanceid}-errorFlag`,icon:"exclamation-mark-triangle",title:this._translations.errorFlag,scale:"s",class:"edit-error-flag"}),i("calcite-button",{key:"33de20955d29287a3ec981e7650562a036343e3a",id:`${this.instanceid}-undo`,color:"blue",appearance:"solid",title:this._translations.undo,onClick:()=>this._undo(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"9bed02f1e8a367ad2ed764747f044a4ce27de52b",icon:"undo",scale:"s"})),i("calcite-button",{key:"07562443286c4eeec28577a7cff0401e8cea0ba8",id:`${this.instanceid}-redo`,color:"blue",appearance:"solid",title:this._translations.redo,onClick:()=>this._redo(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"5f24902a66eae644d0d358a4826a98d45e905493",icon:"redo",scale:"s"})),i("calcite-button",{key:"02f4f3f8ab93e5f1146176ec3699e2a6d25ecbeb",id:`${this.instanceid}-diff`,color:"blue",appearance:"solid",title:this._translations.diff,onClick:()=>this._toggleEditor(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"0bcd20d28e9ec34f1736a2888d78bfcd9cb82a4d",icon:"compare",scale:"s"})),i("calcite-button",{key:"cf3a7672ebd3ebef00123096ec304456b8f102fc",id:`${this.instanceid}-search`,appearance:"outline",color:"blue",title:this._translations.search,onClick:()=>this._search(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"36aac5e89ebf593d8d1981d7b8f6267fbbadfd24",icon:"search",scale:"s"})),i("calcite-button",{key:"cc981ff7580acfa3a3395c4ce7a96b3022bbbb4b",id:`${this.instanceid}-reset`,color:"blue",appearance:"solid",disabled:!0,title:this._translations.cancelEdits,onClick:()=>this._reset(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"3c4fc1da749f4b4f64d814fcd58dc035634f6b1b",icon:"reset",scale:"s"})))),i("div",{key:"6c33ec4851d804dac7fd9762e3c8c7e416a27cf4",class:"edit-parent"},i("div",{key:"a6e9721127bbd43f9974af65e0899489370e1868",id:`${this.instanceid}-container`,class:"json-edit-container"}),i("div",{key:"c1d1ea305c0e451c24beddb8ac3f8e85a3fca088",id:`${this.instanceid}-diff-container`,class:"json-edit-container display-none"}))))}_cancelEditsBtnHandler;_contentChanged;_currentModel;_diffEditor;_editor;_loaded=!1;_searchBtnHandler;_translations;_useDiffEditor=!1;_valueObserver;async getEditorContents(){return new Promise(((t,e)=>{try{t(this._currentModel.getValue())}catch(t){e(t)}}))}async prepareForDeletion(){this._searchBtnHandler?.removeEventListener("click",this._search),this._cancelEditsBtnHandler?.removeEventListener("click",this._reset),this._valueObserver?.disconnect(),this._contentChanged?.dispose(),this._editor?.dispose()}async replaceCurrentSelection(t){const e=this._editor.getSelection();this._editor.executeEdits("",[{range:e,text:t}])}async reset(){return new Promise(((t,e)=>{try{this._reset(),t({success:!0})}catch(t){e(t)}}))}_disableButton(t){document.getElementById(t)?.setAttribute("disabled","")}_enableButton(t){document.getElementById(t)?.removeAttribute("disabled")}_flagEditorContentChanged(){window.dispatchEvent(new CustomEvent("solutionEditorContentChanged",{detail:{id:this.instanceid,contents:this._currentModel.getValue()},bubbles:!0,cancelable:!1,composed:!0}))}_flagEditorHasChanges(t){this.hasChanges!==t&&(window.dispatchEvent(new CustomEvent("solutionEditorHasChanges",{detail:t,bubbles:!0,cancelable:!1,composed:!0})),this.hasChanges=t)}_flagEditorHasErrors(t){this.hasErrors!==t&&(window.dispatchEvent(new CustomEvent("solutionEditorHasErrors",{detail:t,bubbles:!0,cancelable:!1,composed:!0})),this.hasErrors=t)}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}_initValueObserver(){this._valueObserver=new MutationObserver((t=>{t.forEach((t=>{"attributes"===t.type&&"value"===t.attributeName&&t.target[t.attributeName]!==t.oldValue&&this._loaded&&this._currentModel.setValue(this.value)}))})),this._valueObserver.observe(this.el,{attributes:!0,attributeOldValue:!0})}_onEditorChange(){this._toggleUndoRedo()}_redo(){this._currentModel?.canRedo()&&(this._currentModel.redo(),this._toggleUndoRedo())}_reset(){this._currentModel.setValue(this.value),this._toggleUndoRedo()}_search(){this._editor.trigger("toggleFind","actions.find")}_setDiffModel(){this._diffEditor&&this._diffEditor.setModel({original:monaco.editor.createModel(this.value,"json"),modified:this._editor.getModel()})}_toggleEditor(){this._useDiffEditor=!this._useDiffEditor;let t=document.getElementById(`${this.instanceid}-diff-container`),e=document.getElementById(`${this.instanceid}-container`);this._useDiffEditor?(this._setDiffModel(),t.classList.remove("display-none"),e.classList.add("display-none")):(t.classList.add("display-none"),e.classList.remove("display-none"))}_toggleUndoRedo(){this._currentModel?.canUndo()?this._enableButton(`${this.instanceid}-undo`):this._disableButton(`${this.instanceid}-undo`),this._currentModel?.canRedo()?this._enableButton(`${this.instanceid}-redo`):this._disableButton(`${this.instanceid}-redo`),this._currentModel?.canUndo()||this._currentModel?.canRedo()?this._enableButton(`${this.instanceid}-reset`):this._disableButton(`${this.instanceid}-reset`)}_undo(){this._currentModel?.canUndo()&&(this._currentModel.undo(),this._toggleUndoRedo())}static get assetsDirs(){return["assets"]}static get watchers(){return{locale:["localeWatchHandler"]}}};d.style=":host{display:block}.editor-container{position:relative;height:100%}.editor-controls{height:2.75rem;padding-right:0.5rem;background-color:#F4F4F4}.editor-buttons{float:right}html[dir=rtl] .editor-buttons{float:left}.edit-error-flag{padding-top:0.5rem;color:red;visibility:hidden}.edit-button{padding-inline-start:0.5rem}.editor-text{width:100%;overflow-y:auto;background-color:#FFFFFF}.edit-width{width:100%}.edit-parent{box-sizing:border-box;width:100%;height:calc(100% - 46px)}.json-edit-container{height:100%;width:100%;border:1px #808080 solid}.padding-right{padding-inline-end:0.125rem}.btn{margin-bottom:1rem;display:flex;align-content:center;height:25px;width:120px}.select-ctrl{margin-bottom:1rem}.all-edits{margin-top:4rem}.floating-title{font-size:2rem;z-index:100;position:absolute;left:0.5rem;pointer-events:none}.floating-title-button{pointer-events:auto}.json-editor-position1{position:absolute;left:0px;top:0px;margin:0px;height:100%;width:100%;overflow:hidden;padding:0px;max-height:100% !important}.json-editor-position2a{position:absolute;left:0px;top:0px;margin:0px;height:100%;width:50%;overflow:hidden;padding:0px;max-height:100% !important}.json-editor-position2b{position:absolute;right:0px;top:0px;margin:0px;height:100%;width:50%;overflow:hidden;padding:0px;max-height:100% !important}";const r=class{constructor(e){t(this,e)}get el(){return e(this)}itemId="";locale;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async componentWillLoad(){return this._getTranslations()}async componentWillRender(){return this.itemEdit=c.getItemInfo(this.itemId),this.itemEdit&&(this.itemDetails=this.itemEdit.item,this.itemType=this.itemDetails.type),Promise.resolve()}render(){return i(a,{key:"032ff1aeb8c703b36ff4746508e0b6b35ad29516"},i("div",{key:"a6ef24150d812c790a9762c7e6dcaefcfacc2c36",class:"parent-container"},i("div",{key:"e03091a4557a0e15af35782350aec472c94a0151",class:"inputBottomSeparation"},i("calcite-input",{key:"e45e06e9e140cc1bcd070faef6efeccd773ce7cc",id:"item-title",value:this.itemDetails.title})),i("div",{key:"9f62241ee3f46730aa48f40c5c9e55ea823c2e6f",class:"inputBottomSeparation"},i("input",{key:"1c90efe7904fffbccb189032069396cf21e21228",accept:".jpg,.gif,.png,image/jpg,image/gif,image/png",class:"display-none",onChange:t=>this._updateThumbnail(t),ref:t=>this.browseForThumbnail=t,type:"file"}),i("button",{key:"fbc1a6f8c40ac4ba7840bf80d16b4039d2bbb5a7",class:"font-size--3 btn-link inline-block trailer-quarter",onClick:()=>this._getThumbnail()},i("svg",{key:"1d4eacbc6445262ffa9bd9fe3d407a8a4560dd36",class:"icon-inline icon-inline--on-left",height:"16",viewBox:"0 0 16 16",width:"16"},i("path",{key:"58eaaf7e259d7ef37ae352874488fce873a416b9",d:"M14.792 2.666l-1.414-1.413a.965.965 0 0 0-1.385-.03l-1.444 1.444-8.763 8.72L.03 15.481a.371.371 0 0 0 .488.488l4.096-1.756 8.763-8.72-.001-.001.002.002 1.443-1.444a.965.965 0 0 0-.03-1.385zM1.569 14.431l.554-1.293.74.739zm2.338-.924l-1.414-1.414 7.963-7.92 1.414 1.415zm8.67-8.626l-1.413-1.414 1.29-1.29a.306.306 0 0 1 .433 0l.981.98a.306.306 0 0 1 0 .433z"})),this._translations.editThumbnail),i("div",{key:"a1d50881d34eddd023e0a9b677575a7573df583a",class:"flex"},i("div",{key:"e31f5d4cdaaee8765cc982ba9adda88df977e803",class:"img-container",ref:t=>this.thumbnailContainer=t},i("img",{key:"c2d9b5e31e25b1bc139e1c119042044fdd8b31dd",class:"scale-down",height:"133",id:"item-thumbnail",ref:t=>this.thumbnail=t,width:"200"})),i("div",{key:"eaa96a675562d8969124ba3169e46d4fe9d180cb",class:"snippet-count-container"},i("calcite-input",{key:"47d6b25a65fbe60f38668710b1eb14129c4aa6f2",id:"item-snippet",maxLength:250,type:"textarea",value:this.itemDetails.snippet}),i("label",{key:"8267140b46c94425eda185020c76307e70c33684",class:"font-size--3",id:"item-snippet-count",ref:t=>this.itemSnippetCount=t})))),i("calcite-label",{key:"70ffbe01451016a0016d044e2f3e4d1e41722cb0"},this._translations.description,i("label",{key:"f7c014575c2a6964a45fad059646d79ebadf5e18",id:"item-description-label"},i("calcite-input",{key:"34d78b42697be944d413102975aff3d31498abba",id:"item-description",type:"textarea",value:this.itemDetails.description}))),i("calcite-label",{key:"2d51c7a3b709b41e5adb0f73756a9528f86c20a5"},this._translations.tags,i("label",{key:"ea9ddfa6662d7ab8eb92301c59b6fd5876d7d59b",id:"item-tags-label"},i("calcite-input",{key:"aec1f0ee4408d4cb687bb31b313cb47b58979733",id:"item-tags",value:(this.itemDetails.tags&&Array.isArray(this.itemDetails.tags)?this.itemDetails.tags:[this.itemDetails.tags]).join(",")}))),"Group"!==this.itemType?i("calcite-label",null,this._translations.credits,i("label",{id:"item-credits-label"},i("calcite-input",{id:"item-credits",value:this.itemDetails.accessInformation}))):null,"Group"!==this.itemType?i("calcite-label",null,i("label",{id:"item-terms-label"},this._translations.termsOfUse,i("calcite-input",{id:"item-terms",type:"textarea",value:this.itemDetails.licenseInfo}))):null))}componentDidRender(){this._loadThumb()}browseForThumbnail;itemDetails={accessInformation:"",description:"",licenseInfo:"",snippet:"",tags:[],title:""};itemEdit;itemType;_translations;itemSnippetCount;thumbnail;thumbnailContainer;inputReceivedHandler(t){switch(t.target.id){case"item-title":this.itemDetails.title=t.target.value,this._updateStore();break;case"item-snippet":t.target.value.length>250&&(t.target.value=t.target.value.substring(0,250)),this.itemDetails.snippet=t.target.value,this._updateLengthLabel(this.itemDetails.snippet),this._updateStore();break;case"item-description":this.itemDetails.description=t.target.value,this._updateStore();break;case"item-tags":this.itemDetails.tags=t.target.value,this._updateStore();break;case"item-credits":this.itemDetails.accessInformation=t.target.value,this._updateStore();break;case"item-terms":this.itemDetails.licenseInfo=t.target.value,this._updateStore()}}_getThumbnail(){this.browseForThumbnail.click()}_loadThumb(){this.thumbnail&&this.itemEdit?.thumbnail?(this.thumbnail.src=URL.createObjectURL(this.itemEdit.thumbnail),this.thumbnailContainer.classList.remove("empty-box"),this.thumbnail.classList.remove("display-none")):(this.thumbnailContainer.classList.add("empty-box"),this.thumbnail.classList.add("display-none"))}_updateLengthLabel(t){this.itemSnippetCount.innerText=this._translations.snippetCountPattern.replace("{{n}}",t.length.toString())}_updateStore(){this.itemEdit=c.getItemInfo(this.itemId),this.itemEdit.item=this.itemDetails,c.setItemInfo(this.itemEdit)}_updateThumbnail(t){const e=t.target.files;e&&e[0]&&this.thumbnail&&(this.thumbnail.src=URL.createObjectURL(e[0]),this.itemEdit=c.getItemInfo(this.itemId),this.itemEdit.thumbnail=e[0],c.replaceItemThumbnail(this.itemEdit))}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"]}}};r.style=".inputBottomSeparation{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1.5rem}.icon-inline--on-left,.icon-inline--on-right{display:inline;vertical-align:middle;margin-inline-end:0.375rem;fill:#0079c1}.scale-down{-o-object-fit:scale-down;object-fit:scale-down}.img-container{display:inline;margin-inline-end:1rem;max-width:363px}.summary-count-container{display:inline;flex-grow:1;margin-inline-start:0.75rem}.snippet-count-container{width:calc(100vw - 363px)}.parent-container{max-width:100%;padding:1rem}label{position:relative;margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1.5rem;display:block;min-width:-moz-min-content;min-width:min-content}";const h=class{constructor(e){t(this,e)}get el(){return e(this)}groupId="";locale;itemIdWatchHandler(){const t=c.getItemInfo(this.groupId);this.sharing=t.groupDetails}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async componentWillLoad(){return this._getTranslations()}render(){return i(a,{key:"eca66b743e748d9f915c6d356ea84075ab21709a"},i("div",{key:"b0765e14cc9de5a81afa5d20bc41e7f78913a37e",class:"container-border"},i("calcite-label",{key:"36cbf3b48a2641bcb2107e61609c2ec6c9f18991"},this._translations.groupInfo),this._renderItems(this.sharing)))}_translations;sharing=[];async getShareInfo(){return this.sharing}_renderItems(t){return t&&t.length>0?t.map((t=>i("calcite-label",{layout:"inline"},i("calcite-switch",{checked:t.shareItem,id:t.id,name:"setting",onCalciteSwitchChange:t=>this._updateItem(t),scale:"m",value:"enabled"}),i("solution-item-icon",{type:t.type,typeKeywords:t.typeKeywords}),i("span",{class:"icon-text",title:t.title},t.title)))):null}_updateItem(t){const e=t.target.id;this.sharing=this.sharing.map((i=>{if(i.id===e){i.shareItem=t.target.checked;const a=c.getItemInfo(e);if(i.shareItem)a.groups?a.groups.indexOf(this.groupId)<0&&a.groups.push(this.groupId):a.groups=[this.groupId];else if(a.groups){const t=a.groups.indexOf(this.groupId);t>-1&&a.groups.splice(t,1)}c.setItemInfo(a)}return i}))}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{groupId:["itemIdWatchHandler"],locale:["localeWatchHandler"]}}};h.style=":host{display:block}.container-border{padding:1rem}.icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";const b=class{constructor(e){t(this,e),this.organizationVariableSelected=s(this,"organizationVariableSelected",7)}get el(){return e(this)}locale;value="";async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}valueWatchHandler(){this._organizationVariables=JSON.parse(this.value)}async componentWillLoad(){return this._getTranslations()}render(){return i(a,{key:"4d1a39b53287d445a1fc66cd5088a7bc60516ab6"},i("div",{key:"7a40ad712fe1af01e92701d128f65b0590aa15bc"},i("h4",{key:"7517fc56b5b0128ee102dc3f57e334501befe14f",class:"org-var-header"},this._translations.orgVariables)),i("div",{key:"d48cbc3ffb24ba54ded2b24c7c518ecf8114cd55",class:"container-border"},i("calcite-tree",{key:"383124c0ae3d646dc9ee857109051e7a151dbe62",id:"variable-label"},this._renderHierarchy(this._organizationVariables))))}_organizationVariables=[];_translations;organizationVariableSelected;_renderHierarchy(t){return t.map((t=>i("calcite-tree-item",{onClick:()=>this._treeItemSelected(t.id,t.value)},t.title)))}_treeItemSelected(t,e){this.organizationVariableSelected.emit({itemId:t,value:e})}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],value:["valueWatchHandler"]}}};b.style=":host{display:block}.container-border{overflow-y:auto}.org-var-header{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1rem}";const p=class{constructor(e){t(this,e)}get el(){return e(this)}authentication;itemId="";locale;itemIdWatchHandler(){const t=c.getItemInfo(this.itemId);this.resourceFilePaths=t.resourceFilePaths,this.resources=t.resources.map((t=>t.substring(t.lastIndexOf("/")+1)))}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}componentWillLoad(){return this._getTranslations()}render(){const t=this._hasValidResources();return i(a,{key:"36017a54e5f8fafda593af2b727f1fbda80c7455"},i("div",{key:"eb9f53c9b4161c09e0b00d9a4d90a814d944819c",class:"resource-item"},i("div",{key:"504dfa5fb623ed27a0829f60ebbf5de17b6d467f",class:"margin-bottom-1"},i("calcite-button",{key:"e578443e1ef409917c5946c77e660c04d273cb6c",appearance:"solid",class:"resource-button",color:"blue",onClick:()=>this._addNewResource()},this._translations.addResource),i("calcite-button",{key:"e4c11326d7c5d96de1d0983eb0beb3cf726177c8",appearance:"solid",color:"blue",disabled:!t,onClick:()=>this._downloadAll()},this._translations.downloadAll)),i("div",{key:"3617bf40ac8b01d70b523642757a624c977ea491",class:"resources-container",style:{display:t?"inherit":"none"}},this._renderResourceList())))}resourceFilePaths=[];resources=[];_translations;_removedResources={};_renderResourceList(){return i("calcite-value-list",{multiple:!0},this.resourceFilePaths.reduce(((t,e)=>(e.type!==l.Thumbnail&&t.push(this._renderResource(e)),t)),[]))}_renderResource(t){const e=t.updateType===o.Remove;return i("calcite-value-list-item",{class:e?"disabled":"",label:t.folder?t.folder+"/"+t.filename:t.filename,nonInteractive:!0,value:t.url},i("calcite-action-group",{"expand-disabled":"true",layout:"horizontal",slot:"actions-end"},i("calcite-action",{disabled:e,icon:"download",label:this._translations.download,onClick:()=>this._download(t.url,t.filename),scale:"m",text:this._translations.download,title:this._translations.download}),i("calcite-action",{disabled:e,icon:"upload-to",label:this._translations.update,onClick:()=>this._upload(t),scale:"m",text:this._translations.update,title:this._translations.update}),i("calcite-action",{disabled:e,icon:"trash",label:this._translations.delete,onClick:()=>this._delete(t),scale:"m",text:this._translations.delete,title:this._translations.delete}),e?i("calcite-action",{icon:"reset",label:this._translations.reset,onClick:()=>this._reset(t.filename),scale:"m",text:this._translations.reset,title:this._translations.reset}):i("div",{class:"display-none"})))}_delete(t){t.updateType=o.Remove,this.resourceFilePaths=[...this.resourceFilePaths],this._updateStore()}_reset(t){this.resourceFilePaths=this.resources.some((e=>e===t))?this.resourceFilePaths.map((e=>(e.filename===t&&(e.updateType=o.None),e))):this.resourceFilePaths.map((e=>(e.filename===t&&(e.updateType=o.Add),e))),this._updateStore()}_downloadAll(){this.resourceFilePaths.forEach((t=>{this._download(t.url,t.filename)}))}_download(t,e){t.startsWith("blob")?this.downloadFile(t,e):this.fetchAndDownload(`${t}?token=${this.authentication.token}`,e)}downloadFile(t,e){const i=document.createElement("a");i.href=t,i.download=e,i.target="_blank",i.click()}_hasValidResources(){return this.resourceFilePaths.some((t=>t.url.indexOf("_info_thumbnail")<0))}async fetchAndDownload(t,e){const i=await fetch(t),a=await i.blob(),s=URL.createObjectURL(a);this.downloadFile(s,e)}_upload(t){const e=document.createElement("input");e.classList.add("display-none"),e.onchange=this._updateResource.bind(this,t),e.type="file",e.click()}_addNewResource(){const t=document.createElement("input");t.classList.add("display-none"),t.onchange=this._add.bind(this),t.type="file",t.click()}_updateResource(t,e){const i=e.target.files;i&&i[0]&&(t.blob=i[0],t.updateType=o.Update,this._updateStore())}_add(t){const e=t.target.files;if(e&&e[0]){const t=URL.createObjectURL(e[0]),i=e[0].name;this.resourceFilePaths.some((e=>e.filename===i&&e.url===t))||(this.resourceFilePaths=[...this.resourceFilePaths,{url:t,type:l.Data,folder:void 0,filename:i,blob:e[0],updateType:o.Add}],this._updateStore())}}_updateStore(){const t=c.getItemInfo(this.itemId);t.resourceFilePaths=this.resourceFilePaths,c.setItemInfo(t)}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{itemId:["itemIdWatchHandler"],locale:["localeWatchHandler"]}}};p.style=":host{display:block}.resource-item{padding:1rem}.resource-button{margin-inline-end:1rem}.resource-progress{padding-top:1rem}.resources-container{border:1px #808080 solid}.margin-bottom-1{margin-bottom:1rem}";const f=class{get el(){return e(this)}instanceid="";itemId="";itemIdWatchHandler(){this._initializing=!0,this.value=JSON.stringify("data"===this.instanceid?c.getItemInfo(this.itemId).data:c.getItemInfo(this.itemId).properties,null,2)}locale;organizationVariables="";solutionVariables="";varsOpen=!0;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}constructor(e){t(this,e),window.addEventListener("solutionEditorContentChanged",(t=>{if(this.itemId){const{id:e,contents:i}=t.detail,[a,s]=e.split("|");if(a==this.itemId&&s===this.instanceid){if(!this._initializing&&i.length>0){const t=c.getItemInfo(a);"data"===s?t.data=JSON.parse(i):t.properties=JSON.parse(i),c.setItemInfo(t)}this._initializing=!1}}}))}componentWillLoad(){return this._getTranslations()}render(){return i(a,{key:"db99cf57229d7d8b9fe6315e180d95de0b20fc8d"},i("div",{key:"83473f420d1417c85ebb4119be9f359cab878c54",class:"solution-data-container"},i("calcite-shell",{key:"013754ef962c2e5c112f6a8cc6c5d1b8e768078e",class:"light var-container",dir:"ltr"},i("calcite-panel",{key:"11ab2a07fe4af542d8cefc1c131246deef43dd9a",class:"json-editor"},i("div",{key:"ba0460977eb0375acaf5b11ce951986a08ece39b",class:"solution-data-child-container calcite-match-height"},i("json-editor",{key:"53251c1583aa7e8cf2a4e9a1f22e4c72430d3928",class:"solution-data-editor-container",instanceid:this.itemId+"|"+this.instanceid,locale:this.locale,value:this.value}))),i("calcite-shell-panel",{key:"30c47797a35ff7228c4318a5633aec57de05b8cf","height-scale":"l",position:"end",slot:"contextual-panel","width-scale":"xs"},i("div",{key:"028b16654835744f0735b880ca85a3d174963414",class:this.varsOpen?"solution-data-child-container":"solution-data-child-container-collapsed"},i("calcite-button",{key:"bb5049611e778b970454544851a625ccef47d23a",appearance:"transparent",class:"collapse-btn","icon-start":this.varsOpen?"chevrons-right":"chevrons-left",id:"collapse-vars",onClick:()=>this._toggleVars(),scale:"s",title:this.varsOpen?this._translations.collapse:this._translations.expand}),i("div",{key:"c2a30a7c27db181e0dfe0e201d9d3b2742247080",class:this.varsOpen?"org-vars":"org-vars display-none",id:"orgVars"},i("solution-organization-variables",{key:"178c4301c8558c4fe7114c8f6cf5bc0df10883a0",locale:this.locale,value:this.organizationVariables})),i("div",{key:"f85375bac946cff856b6915f340bf926498265ea",class:this.varsOpen?"sol-vars":"sol-vars display-none",id:"solVars"},i("solution-variables",{key:"166d0752746994bc4aebd4e41660f8a2d2c678ea",locale:this.locale,value:this.solutionVariables})))))))}_translations;value="";_initializing=!1;_toggleVars(){this.varsOpen=!this.varsOpen}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{itemId:["itemIdWatchHandler"],locale:["localeWatchHandler"]}}};f.style=":host{display:flexbox}.solution-data-container{position:absolute;height:-moz-available;height:calc(100% - 48px);height:-webkit-fill-available;height:stretch;width:-moz-available;width:100%;width:-webkit-fill-available;width:stretch}.solution-data-child-container{display:flex;height:100%;width:100%;flex-direction:column;overflow-y:auto}.solution-data-editor-container{height:100%}.solution-data-child-container-collapsed{display:flex;height:100%;flex-direction:column;overflow:auto;width:50px}.inputBottomSeparation{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1.5rem}.json-editor{margin:1rem;width:auto;width:-webkit-fill-available -moz-available}.collapse-btn{padding-left:1rem;padding-right:1rem;padding-top:1rem;padding-bottom:0px}.org-vars{padding-left:1rem;padding-right:1rem;padding-top:1rem;padding-bottom:0px}.sol-vars{padding-top:0px;padding-bottom:0px;padding-left:1rem;padding-right:1rem;min-height:45%}.padding-1{padding:1rem}.light{background-color:#F4F4F4}";const u=class{constructor(e){t(this,e),this.solutionVariableSelected=s(this,"solutionVariableSelected",7)}get el(){return e(this)}value="";locale;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}valueWatchHandler(){this._solutionVariables=JSON.parse(this.value)}componentWillLoad(){return this._getTranslations()}render(){return i(a,{key:"a9354a1d3b3d91b9b9522bec945726e106487b78"},i("div",{key:"d38d0151ba9f8421e3ec863ce90b234964cb7f21"},i("h4",{key:"3d10129c3327e803e38b4fc21976764f9ac91693",class:"org-var-header"},this._translations.solVariables)),i("div",{key:"8b79cef63c5b8f5f66b0e11a4b94021f6a025fc3",class:"container-border"},i("calcite-tree",{key:"7f69edec6e35a65e45b461d69e92d0e163563bee",id:"variable-label"},this._renderHierarchy(this._solutionVariables))))}_solutionVariables=[];_translations;solutionVariableSelected;_renderHierarchy(t){return t.map((t=>t.dependencies&&t.dependencies.length>0?i("calcite-tree-item",{onClick:t=>this._toggleExpand(t)},i("solution-item-icon",{type:t.type}),i("span",{class:"icon-text",title:t.title},t.title),i("calcite-tree",{slot:"children"},this._renderHierarchy(t.dependencies))):i("calcite-tree-item",{onClick:()=>this._treeItemSelected(t.id,t.value)},t.title)))}_treeItemSelected(t,e){this.solutionVariableSelected.emit({itemId:t,value:e})}_toggleExpand(t){const e=t?.target?.closest("calcite-tree-item");e&&(e.expanded=!e.expanded)}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],value:["valueWatchHandler"]}}};u.style=":host{display:block}.container-border{overflow-y:hidden}.org-var-header{margin-top:1rem;margin-bottom:1rem;margin-left:0px;margin-right:0px}.icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";export{d as json_editor,r as solution_item_details,h as solution_item_sharing,b as solution_organization_variables,p as solution_resource_item,f as solution_template_data,u as solution_variables}
6
+ import{r as t,g as e,h as i,H as a,c as s}from"./p-1b0588d2.js";import{g as n}from"./p-ee2cbba0.js";import{s as c}from"./p-8b218ba7.js";import{d as o}from"./p-80cb7c73.js";import{E as l}from"./p-4f236b5d.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-e23b4193.js";import"./p-570b13d9.js";import"./p-0668e30d.js";const d=class{constructor(e){t(this,e)}get el(){return e(this)}hasChanges=!1;hasErrors=!1;instanceid="";locale;value="";async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}componentDidLoad(){const t=document.getElementById(`${this.instanceid}-container`);if(t){this._editor=monaco.editor.create(t,{value:this.value,language:"json",theme:"vs",minimap:{enabled:!1},automaticLayout:!0,scrollBeyondLastLine:!1}),this._currentModel=this._editor.getModel(),this._contentChanged=this._currentModel.onDidChangeContent(this._onEditorChange.bind(this));const e=monaco.editor.setModelMarkers,i=this;monaco.editor.setModelMarkers=function(t,a,s){t.id===i._currentModel.id&&(i._flagEditorHasErrors(s.length>0),i.hasErrors||(i._flagEditorHasChanges(i._currentModel?.canUndo()),i._currentModel?.canUndo()&&i._flagEditorContentChanged()),document.getElementById(`${i.instanceid}-errorFlag`).style.visibility=i.hasErrors?"visible":"hidden"),e.call(monaco.editor,t,a,s)},this._diffEditor=monaco.editor.createDiffEditor(document.getElementById(`${this.instanceid}-diff-container`),{automaticLayout:!0}),this._setDiffModel(),this._loaded=!0,this._toggleUndoRedo()}}async componentWillLoad(){this._initValueObserver(),await this._getTranslations()}render(){return i(a,{key:"e9c806dbfc886daac9be93350e461246339787dd"},i("div",{key:"5f31103bc0392042581d1421530f2ddcdebcc507",id:`${this.instanceid}-editor-container`,class:"editor-container padding-right"},i("div",{key:"560c74b9864cd94f4e689bf65cb8e1fac42b94af",class:"editor-controls"},i("div",{key:"73ca9ac97f3d40fb408e98477641a9d94e1cd32e",class:"editor-buttons"},i("calcite-icon",{key:"2d83934e4493595f66e047c608a87e316279ec1b",id:`${this.instanceid}-errorFlag`,icon:"exclamation-mark-triangle",title:this._translations.errorFlag,scale:"s",class:"edit-error-flag"}),i("calcite-button",{key:"fe95dd90ec0db23c6d6d6766d6d405c32468cec1",id:`${this.instanceid}-undo`,color:"blue",appearance:"solid",title:this._translations.undo,onClick:()=>this._undo(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"d802118d2ac7b8cbf2750f3af11252fd52173dd0",icon:"undo",scale:"s"})),i("calcite-button",{key:"9e9af33be6b712ff83ec70e024776c2429086761",id:`${this.instanceid}-redo`,color:"blue",appearance:"solid",title:this._translations.redo,onClick:()=>this._redo(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"bb5bfd3a99902b03c4ffb704b8fdc963c006e664",icon:"redo",scale:"s"})),i("calcite-button",{key:"a88fcffeb9c82394470717ebc6659b42ad9a1c20",id:`${this.instanceid}-diff`,color:"blue",appearance:"solid",title:this._translations.diff,onClick:()=>this._toggleEditor(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"f902baf72fee24ef3b56da2c4d9337db96ab63b1",icon:"compare",scale:"s"})),i("calcite-button",{key:"841abd705338fb1e43c892c4858bff00591958c3",id:`${this.instanceid}-search`,appearance:"outline",color:"blue",title:this._translations.search,onClick:()=>this._search(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"01c24bdbf30cd22a06064bf26a47b38516508879",icon:"search",scale:"s"})),i("calcite-button",{key:"2d6b9dc60e26e347272c76ff9f8ada529975265b",id:`${this.instanceid}-reset`,color:"blue",appearance:"solid",disabled:!0,title:this._translations.cancelEdits,onClick:()=>this._reset(),scale:"s",class:"edit-button"},i("calcite-icon",{key:"a373dc694d97992dfbd60f49f38536ba34684381",icon:"reset",scale:"s"})))),i("div",{key:"6cdebae478b9d1b61e317155000bf62ad4c5b8a3",class:"edit-parent"},i("div",{key:"e3914618f86335e9538969b5cb7f7797212985c2",id:`${this.instanceid}-container`,class:"json-edit-container"}),i("div",{key:"4a17fd062060ddf2e5dca5c2fb6c9883ed9aadd4",id:`${this.instanceid}-diff-container`,class:"json-edit-container display-none"}))))}_cancelEditsBtnHandler;_contentChanged;_currentModel;_diffEditor;_editor;_loaded=!1;_searchBtnHandler;_translations;_useDiffEditor=!1;_valueObserver;async getEditorContents(){return new Promise(((t,e)=>{try{t(this._currentModel.getValue())}catch(t){e(t)}}))}async prepareForDeletion(){this._searchBtnHandler?.removeEventListener("click",this._search),this._cancelEditsBtnHandler?.removeEventListener("click",this._reset),this._valueObserver?.disconnect(),this._contentChanged?.dispose(),this._editor?.dispose()}async replaceCurrentSelection(t){const e=this._editor.getSelection();this._editor.executeEdits("",[{range:e,text:t}])}async reset(){return new Promise(((t,e)=>{try{this._reset(),t({success:!0})}catch(t){e(t)}}))}_disableButton(t){document.getElementById(t)?.setAttribute("disabled","")}_enableButton(t){document.getElementById(t)?.removeAttribute("disabled")}_flagEditorContentChanged(){window.dispatchEvent(new CustomEvent("solutionEditorContentChanged",{detail:{id:this.instanceid,contents:this._currentModel.getValue()},bubbles:!0,cancelable:!1,composed:!0}))}_flagEditorHasChanges(t){this.hasChanges!==t&&(window.dispatchEvent(new CustomEvent("solutionEditorHasChanges",{detail:t,bubbles:!0,cancelable:!1,composed:!0})),this.hasChanges=t)}_flagEditorHasErrors(t){this.hasErrors!==t&&(window.dispatchEvent(new CustomEvent("solutionEditorHasErrors",{detail:t,bubbles:!0,cancelable:!1,composed:!0})),this.hasErrors=t)}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}_initValueObserver(){this._valueObserver=new MutationObserver((t=>{t.forEach((t=>{"attributes"===t.type&&"value"===t.attributeName&&t.target[t.attributeName]!==t.oldValue&&this._loaded&&this._currentModel.setValue(this.value)}))})),this._valueObserver.observe(this.el,{attributes:!0,attributeOldValue:!0})}_onEditorChange(){this._toggleUndoRedo()}_redo(){this._currentModel?.canRedo()&&(this._currentModel.redo(),this._toggleUndoRedo())}_reset(){this._currentModel.setValue(this.value),this._toggleUndoRedo()}_search(){this._editor.trigger("toggleFind","actions.find")}_setDiffModel(){this._diffEditor&&this._diffEditor.setModel({original:monaco.editor.createModel(this.value,"json"),modified:this._editor.getModel()})}_toggleEditor(){this._useDiffEditor=!this._useDiffEditor;let t=document.getElementById(`${this.instanceid}-diff-container`),e=document.getElementById(`${this.instanceid}-container`);this._useDiffEditor?(this._setDiffModel(),t.classList.remove("display-none"),e.classList.add("display-none")):(t.classList.add("display-none"),e.classList.remove("display-none"))}_toggleUndoRedo(){this._currentModel?.canUndo()?this._enableButton(`${this.instanceid}-undo`):this._disableButton(`${this.instanceid}-undo`),this._currentModel?.canRedo()?this._enableButton(`${this.instanceid}-redo`):this._disableButton(`${this.instanceid}-redo`),this._currentModel?.canUndo()||this._currentModel?.canRedo()?this._enableButton(`${this.instanceid}-reset`):this._disableButton(`${this.instanceid}-reset`)}_undo(){this._currentModel?.canUndo()&&(this._currentModel.undo(),this._toggleUndoRedo())}static get assetsDirs(){return["assets"]}static get watchers(){return{locale:["localeWatchHandler"]}}};d.style=":host{display:block}.editor-container{position:relative;height:100%}.editor-controls{height:2.75rem;padding-right:0.5rem;background-color:#F4F4F4}.editor-buttons{float:right}html[dir=rtl] .editor-buttons{float:left}.edit-error-flag{padding-top:0.5rem;color:red;visibility:hidden}.edit-button{padding-inline-start:0.5rem}.editor-text{width:100%;overflow-y:auto;background-color:#FFFFFF}.edit-width{width:100%}.edit-parent{box-sizing:border-box;width:100%;height:calc(100% - 46px)}.json-edit-container{height:100%;width:100%;border:1px #808080 solid}.padding-right{padding-inline-end:0.125rem}.btn{margin-bottom:1rem;display:flex;align-content:center;height:25px;width:120px}.select-ctrl{margin-bottom:1rem}.all-edits{margin-top:4rem}.floating-title{font-size:2rem;z-index:100;position:absolute;left:0.5rem;pointer-events:none}.floating-title-button{pointer-events:auto}.json-editor-position1{position:absolute;left:0px;top:0px;margin:0px;height:100%;width:100%;overflow:hidden;padding:0px;max-height:100% !important}.json-editor-position2a{position:absolute;left:0px;top:0px;margin:0px;height:100%;width:50%;overflow:hidden;padding:0px;max-height:100% !important}.json-editor-position2b{position:absolute;right:0px;top:0px;margin:0px;height:100%;width:50%;overflow:hidden;padding:0px;max-height:100% !important}";const r=class{constructor(e){t(this,e)}get el(){return e(this)}itemId="";locale;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async componentWillLoad(){return this._getTranslations()}async componentWillRender(){return this.itemEdit=c.getItemInfo(this.itemId),this.itemEdit&&(this.itemDetails=this.itemEdit.item,this.itemType=this.itemDetails.type),Promise.resolve()}render(){return i(a,{key:"8ad2bab229a9ee6cd80efde17d269a484288f5ae"},i("div",{key:"a066afedf3e5ea056579e07cac6c38496fe00d79",class:"parent-container"},i("div",{key:"fe7d207e2d28f0e70507ef048d993bc3ddc62297",class:"inputBottomSeparation"},i("calcite-input",{key:"f0714ef845c9b4aa791e3fc6f5ac28fe6572127d",id:"item-title",value:this.itemDetails.title})),i("div",{key:"40b6f0d4d34ff62134f25fdd42887f395407aa45",class:"inputBottomSeparation"},i("input",{key:"216060434e37ff499a47b4cc24d7682ac6e55ba7",accept:".jpg,.gif,.png,image/jpg,image/gif,image/png",class:"display-none",onChange:t=>this._updateThumbnail(t),ref:t=>this.browseForThumbnail=t,type:"file"}),i("button",{key:"a6b71fac06b9231a91b32a0416cb3a723b6ac6dd",class:"font-size--3 btn-link inline-block trailer-quarter",onClick:()=>this._getThumbnail()},i("svg",{key:"395adfcd43d737fe049f765b3700d7358c06e8a0",class:"icon-inline icon-inline--on-left",height:"16",viewBox:"0 0 16 16",width:"16"},i("path",{key:"5e541a3fcb79fe3a306b720a08e745f0dd69d557",d:"M14.792 2.666l-1.414-1.413a.965.965 0 0 0-1.385-.03l-1.444 1.444-8.763 8.72L.03 15.481a.371.371 0 0 0 .488.488l4.096-1.756 8.763-8.72-.001-.001.002.002 1.443-1.444a.965.965 0 0 0-.03-1.385zM1.569 14.431l.554-1.293.74.739zm2.338-.924l-1.414-1.414 7.963-7.92 1.414 1.415zm8.67-8.626l-1.413-1.414 1.29-1.29a.306.306 0 0 1 .433 0l.981.98a.306.306 0 0 1 0 .433z"})),this._translations.editThumbnail),i("div",{key:"e6dc45b53a0deac24d29a7be29569c55857a7801",class:"flex"},i("div",{key:"8c81b6db29e4b03a5188e729eb8e27b8dcf22e5f",class:"img-container",ref:t=>this.thumbnailContainer=t},i("img",{key:"cfbfad50a4eb55166cb49be45a20f680b7d482d3",class:"scale-down",height:"133",id:"item-thumbnail",ref:t=>this.thumbnail=t,width:"200"})),i("div",{key:"0cf010a87106c0434ff7d54f7889bc2eb08fd733",class:"snippet-count-container"},i("calcite-input",{key:"85eedc1b801db3afdc2dfb606aa93de489bac491",id:"item-snippet",maxLength:250,type:"textarea",value:this.itemDetails.snippet}),i("label",{key:"783be9f5082085add36a16f1a8bc55ecc11dc7e8",class:"font-size--3",id:"item-snippet-count",ref:t=>this.itemSnippetCount=t})))),i("calcite-label",{key:"63bdfb42b95d1e8086e792efd757919676230354"},this._translations.description,i("label",{key:"aa9056a2807d9fd14c7dcd81775d902a30a2df63",id:"item-description-label"},i("calcite-input",{key:"61d584f29afd305913039e0cf4d6be7d54f1aa2f",id:"item-description",type:"textarea",value:this.itemDetails.description}))),i("calcite-label",{key:"4daf0f44b2b14274fe8992bad5607c8ba82d6fa4"},this._translations.tags,i("label",{key:"142f41ae1667c916e2ef32e7b7eb9aacad80e17d",id:"item-tags-label"},i("calcite-input",{key:"2f576b51a68370ce1112b999c35eef0714595e9f",id:"item-tags",value:(this.itemDetails.tags&&Array.isArray(this.itemDetails.tags)?this.itemDetails.tags:[this.itemDetails.tags]).join(",")}))),"Group"!==this.itemType?i("calcite-label",null,this._translations.credits,i("label",{id:"item-credits-label"},i("calcite-input",{id:"item-credits",value:this.itemDetails.accessInformation}))):null,"Group"!==this.itemType?i("calcite-label",null,i("label",{id:"item-terms-label"},this._translations.termsOfUse,i("calcite-input",{id:"item-terms",type:"textarea",value:this.itemDetails.licenseInfo}))):null))}componentDidRender(){this._loadThumb()}browseForThumbnail;itemDetails={accessInformation:"",description:"",licenseInfo:"",snippet:"",tags:[],title:""};itemEdit;itemType;_translations;itemSnippetCount;thumbnail;thumbnailContainer;inputReceivedHandler(t){switch(t.target.id){case"item-title":this.itemDetails.title=t.target.value,this._updateStore();break;case"item-snippet":t.target.value.length>250&&(t.target.value=t.target.value.substring(0,250)),this.itemDetails.snippet=t.target.value,this._updateLengthLabel(this.itemDetails.snippet),this._updateStore();break;case"item-description":this.itemDetails.description=t.target.value,this._updateStore();break;case"item-tags":this.itemDetails.tags=t.target.value,this._updateStore();break;case"item-credits":this.itemDetails.accessInformation=t.target.value,this._updateStore();break;case"item-terms":this.itemDetails.licenseInfo=t.target.value,this._updateStore()}}_getThumbnail(){this.browseForThumbnail.click()}_loadThumb(){this.thumbnail&&this.itemEdit?.thumbnail?(this.thumbnail.src=URL.createObjectURL(this.itemEdit.thumbnail),this.thumbnailContainer.classList.remove("empty-box"),this.thumbnail.classList.remove("display-none")):(this.thumbnailContainer.classList.add("empty-box"),this.thumbnail.classList.add("display-none"))}_updateLengthLabel(t){this.itemSnippetCount.innerText=this._translations.snippetCountPattern.replace("{{n}}",t.length.toString())}_updateStore(){this.itemEdit=c.getItemInfo(this.itemId),this.itemEdit.item=this.itemDetails,c.setItemInfo(this.itemEdit)}_updateThumbnail(t){const e=t.target.files;e&&e[0]&&this.thumbnail&&(this.thumbnail.src=URL.createObjectURL(e[0]),this.itemEdit=c.getItemInfo(this.itemId),this.itemEdit.thumbnail=e[0],c.replaceItemThumbnail(this.itemEdit))}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"]}}};r.style=".inputBottomSeparation{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1.5rem}.icon-inline--on-left,.icon-inline--on-right{display:inline;vertical-align:middle;margin-inline-end:0.375rem;fill:#0079c1}.scale-down{-o-object-fit:scale-down;object-fit:scale-down}.img-container{display:inline;margin-inline-end:1rem;max-width:363px}.summary-count-container{display:inline;flex-grow:1;margin-inline-start:0.75rem}.snippet-count-container{width:calc(100vw - 363px)}.parent-container{max-width:100%;padding:1rem}label{position:relative;margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1.5rem;display:block;min-width:-moz-min-content;min-width:min-content}";const h=class{constructor(e){t(this,e)}get el(){return e(this)}groupId="";locale;itemIdWatchHandler(){const t=c.getItemInfo(this.groupId);this.sharing=t.groupDetails}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}async componentWillLoad(){return this._getTranslations()}render(){return i(a,{key:"1c7dbee68fbf0eabf736fb783f173ade2f408122"},i("div",{key:"3c3d88ab122d4a8bc69363224a2754c4a4b092ba",class:"container-border"},i("calcite-label",{key:"137bb704b258a3cd1e5e5b7a18c53aca331d7f91"},this._translations.groupInfo),this._renderItems(this.sharing)))}_translations;sharing=[];async getShareInfo(){return this.sharing}_renderItems(t){return t&&t.length>0?t.map((t=>i("calcite-label",{layout:"inline"},i("calcite-switch",{checked:t.shareItem,id:t.id,name:"setting",onCalciteSwitchChange:t=>this._updateItem(t),scale:"m",value:"enabled"}),i("solution-item-icon",{type:t.type,typeKeywords:t.typeKeywords}),i("span",{class:"icon-text",title:t.title},t.title)))):null}_updateItem(t){const e=t.target.id;this.sharing=this.sharing.map((i=>{if(i.id===e){i.shareItem=t.target.checked;const a=c.getItemInfo(e);if(i.shareItem)a.groups?a.groups.indexOf(this.groupId)<0&&a.groups.push(this.groupId):a.groups=[this.groupId];else if(a.groups){const t=a.groups.indexOf(this.groupId);t>-1&&a.groups.splice(t,1)}c.setItemInfo(a)}return i}))}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{groupId:["itemIdWatchHandler"],locale:["localeWatchHandler"]}}};h.style=":host{display:block}.container-border{padding:1rem}.icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";const b=class{constructor(e){t(this,e),this.organizationVariableSelected=s(this,"organizationVariableSelected",7)}get el(){return e(this)}locale;value="";async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}valueWatchHandler(){this._organizationVariables=JSON.parse(this.value)}async componentWillLoad(){return this._getTranslations()}render(){return i(a,{key:"3f72a5c1b8fb6bcdab858ee061eadb38cb9965d9"},i("div",{key:"118c7cafc8330c44e72a59a76fd81ca0f39696e1"},i("h4",{key:"86934bdf3cbf162a732a53579e324c5fff8beead",class:"org-var-header"},this._translations.orgVariables)),i("div",{key:"ed5c1df397286a7d1c8e61b5ce04623fa13d74cc",class:"container-border"},i("calcite-tree",{key:"47f4f9bf5a81ded9a37a33a94fac6a230263e917",id:"variable-label"},this._renderHierarchy(this._organizationVariables))))}_organizationVariables=[];_translations;organizationVariableSelected;_renderHierarchy(t){return t.map((t=>i("calcite-tree-item",{onClick:()=>this._treeItemSelected(t.id,t.value)},t.title)))}_treeItemSelected(t,e){this.organizationVariableSelected.emit({itemId:t,value:e})}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],value:["valueWatchHandler"]}}};b.style=":host{display:block}.container-border{overflow-y:auto}.org-var-header{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1rem}";const f=class{constructor(e){t(this,e)}get el(){return e(this)}authentication;itemId="";locale;itemIdWatchHandler(){const t=c.getItemInfo(this.itemId);this.resourceFilePaths=t.resourceFilePaths,this.resources=t.resources.map((t=>t.substring(t.lastIndexOf("/")+1)))}async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}componentWillLoad(){return this._getTranslations()}render(){const t=this._hasValidResources();return i(a,{key:"13f2759a882d2eca48bf9dda58e74caade76142b"},i("div",{key:"498ced2e29b8af9138a8aa9d77ec78e07e3c64de",class:"resource-item"},i("div",{key:"d76a967373a990906a67d88ea6466030c41401ff",class:"margin-bottom-1"},i("calcite-button",{key:"96cd2ee08adadef9e1b29db12c38d4748b0689c0",appearance:"solid",class:"resource-button",color:"blue",onClick:()=>this._addNewResource()},this._translations.addResource),i("calcite-button",{key:"49326139cad065995512d3e3568c7d8e7f5cef4f",appearance:"solid",color:"blue",disabled:!t,onClick:()=>this._downloadAll()},this._translations.downloadAll)),i("div",{key:"9c056d9ab7242ea10cbcf57eaabce4bd9777541e",class:"resources-container",style:{display:t?"inherit":"none"}},this._renderResourceList())))}resourceFilePaths=[];resources=[];_translations;_removedResources={};_renderResourceList(){return i("calcite-value-list",{multiple:!0},this.resourceFilePaths.reduce(((t,e)=>(e.type!==l.Thumbnail&&t.push(this._renderResource(e)),t)),[]))}_renderResource(t){const e=t.updateType===o.Remove;return i("calcite-value-list-item",{class:e?"disabled":"",label:t.folder?t.folder+"/"+t.filename:t.filename,nonInteractive:!0,value:t.url},i("calcite-action-group",{"expand-disabled":"true",layout:"horizontal",slot:"actions-end"},i("calcite-action",{disabled:e,icon:"download",label:this._translations.download,onClick:()=>this._download(t.url,t.filename),scale:"m",text:this._translations.download,title:this._translations.download}),i("calcite-action",{disabled:e,icon:"upload-to",label:this._translations.update,onClick:()=>this._upload(t),scale:"m",text:this._translations.update,title:this._translations.update}),i("calcite-action",{disabled:e,icon:"trash",label:this._translations.delete,onClick:()=>this._delete(t),scale:"m",text:this._translations.delete,title:this._translations.delete}),e?i("calcite-action",{icon:"reset",label:this._translations.reset,onClick:()=>this._reset(t.filename),scale:"m",text:this._translations.reset,title:this._translations.reset}):i("div",{class:"display-none"})))}_delete(t){t.updateType=o.Remove,this.resourceFilePaths=[...this.resourceFilePaths],this._updateStore()}_reset(t){this.resourceFilePaths=this.resources.some((e=>e===t))?this.resourceFilePaths.map((e=>(e.filename===t&&(e.updateType=o.None),e))):this.resourceFilePaths.map((e=>(e.filename===t&&(e.updateType=o.Add),e))),this._updateStore()}_downloadAll(){this.resourceFilePaths.forEach((t=>{this._download(t.url,t.filename)}))}_download(t,e){t.startsWith("blob")?this.downloadFile(t,e):this.fetchAndDownload(`${t}?token=${this.authentication.token}`,e)}downloadFile(t,e){const i=document.createElement("a");i.href=t,i.download=e,i.target="_blank",i.click()}_hasValidResources(){return this.resourceFilePaths.some((t=>t.url.indexOf("_info_thumbnail")<0))}async fetchAndDownload(t,e){const i=await fetch(t),a=await i.blob(),s=URL.createObjectURL(a);this.downloadFile(s,e)}_upload(t){const e=document.createElement("input");e.classList.add("display-none"),e.onchange=this._updateResource.bind(this,t),e.type="file",e.click()}_addNewResource(){const t=document.createElement("input");t.classList.add("display-none"),t.onchange=this._add.bind(this),t.type="file",t.click()}_updateResource(t,e){const i=e.target.files;i&&i[0]&&(t.blob=i[0],t.updateType=o.Update,this._updateStore())}_add(t){const e=t.target.files;if(e&&e[0]){const t=URL.createObjectURL(e[0]),i=e[0].name;this.resourceFilePaths.some((e=>e.filename===i&&e.url===t))||(this.resourceFilePaths=[...this.resourceFilePaths,{url:t,type:l.Data,folder:void 0,filename:i,blob:e[0],updateType:o.Add}],this._updateStore())}}_updateStore(){const t=c.getItemInfo(this.itemId);t.resourceFilePaths=this.resourceFilePaths,c.setItemInfo(t)}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{itemId:["itemIdWatchHandler"],locale:["localeWatchHandler"]}}};f.style=":host{display:block}.resource-item{padding:1rem}.resource-button{margin-inline-end:1rem}.resource-progress{padding-top:1rem}.resources-container{border:1px #808080 solid}.margin-bottom-1{margin-bottom:1rem}";const p=class{get el(){return e(this)}instanceid="";itemId="";itemIdWatchHandler(){this._initializing=!0,this.value=JSON.stringify("data"===this.instanceid?c.getItemInfo(this.itemId).data:c.getItemInfo(this.itemId).properties,null,2)}locale;organizationVariables="";solutionVariables="";varsOpen=!0;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}constructor(e){t(this,e),window.addEventListener("solutionEditorContentChanged",(t=>{if(this.itemId){const{id:e,contents:i}=t.detail,[a,s]=e.split("|");if(a==this.itemId&&s===this.instanceid){if(!this._initializing&&i.length>0){const t=c.getItemInfo(a);"data"===s?t.data=JSON.parse(i):t.properties=JSON.parse(i),c.setItemInfo(t)}this._initializing=!1}}}))}componentWillLoad(){return this._getTranslations()}render(){return i(a,{key:"3f853006c19509c8cf484d4420b3f687aaad5161"},i("div",{key:"f524e1ee3c8dc972779be0909372c11c26092dd0",class:"solution-data-container"},i("calcite-shell",{key:"56797702bc53b08051360975dc529c884eb7d294",class:"light var-container",dir:"ltr"},i("calcite-panel",{key:"6208ac7b63ab8b69bc29ad88abdb9bcdeaaa707a",class:"json-editor"},i("div",{key:"66e99550359b5665b4dd04f794d8108e4ee34284",class:"solution-data-child-container calcite-match-height"},i("json-editor",{key:"7a7f5afa5d424fb6099b7167f274ce211e791a56",class:"solution-data-editor-container",instanceid:this.itemId+"|"+this.instanceid,locale:this.locale,value:this.value}))),i("calcite-shell-panel",{key:"7cc8bac91bfc5be96018d005cc87be457278ed6d","height-scale":"l",position:"end",slot:"contextual-panel","width-scale":"xs"},i("div",{key:"4ce0c251d30d5735781394f5c213523867205886",class:this.varsOpen?"solution-data-child-container":"solution-data-child-container-collapsed"},i("calcite-button",{key:"814c8996b854102b022f7ac482498dd6aac36ec8",appearance:"transparent",class:"collapse-btn","icon-start":this.varsOpen?"chevrons-right":"chevrons-left",id:"collapse-vars",onClick:()=>this._toggleVars(),scale:"s",title:this.varsOpen?this._translations.collapse:this._translations.expand}),i("div",{key:"6b872cfc1c60870fb6262808f5d9f61cc35f0f44",class:this.varsOpen?"org-vars":"org-vars display-none",id:"orgVars"},i("solution-organization-variables",{key:"e8e9ee594b6dcb5ddaabd05c322fb33d568ac7b5",locale:this.locale,value:this.organizationVariables})),i("div",{key:"109d17a77a54a13818af6aa2a9beb92526100ea7",class:this.varsOpen?"sol-vars":"sol-vars display-none",id:"solVars"},i("solution-variables",{key:"46902ed69897ed01334def99817fedafbda2e8d5",locale:this.locale,value:this.solutionVariables})))))))}_translations;value="";_initializing=!1;_toggleVars(){this.varsOpen=!this.varsOpen}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{itemId:["itemIdWatchHandler"],locale:["localeWatchHandler"]}}};p.style=":host{display:flexbox}.solution-data-container{position:absolute;height:-moz-available;height:calc(100% - 48px);height:-webkit-fill-available;height:stretch;width:-moz-available;width:100%;width:-webkit-fill-available;width:stretch}.solution-data-child-container{display:flex;height:100%;width:100%;flex-direction:column;overflow-y:auto}.solution-data-editor-container{height:100%}.solution-data-child-container-collapsed{display:flex;height:100%;flex-direction:column;overflow:auto;width:50px}.inputBottomSeparation{margin-left:0px;margin-right:0px;margin-top:0px;margin-bottom:1.5rem}.json-editor{margin:1rem;width:auto;width:-webkit-fill-available -moz-available}.collapse-btn{padding-left:1rem;padding-right:1rem;padding-top:1rem;padding-bottom:0px}.org-vars{padding-left:1rem;padding-right:1rem;padding-top:1rem;padding-bottom:0px}.sol-vars{padding-top:0px;padding-bottom:0px;padding-left:1rem;padding-right:1rem;min-height:45%}.padding-1{padding:1rem}.light{background-color:#F4F4F4}";const u=class{constructor(e){t(this,e),this.solutionVariableSelected=s(this,"solutionVariableSelected",7)}get el(){return e(this)}value="";locale;async localeWatchHandler(){this.el.lang=this.locale,await this._getTranslations()}valueWatchHandler(){this._solutionVariables=JSON.parse(this.value)}componentWillLoad(){return this._getTranslations()}render(){return i(a,{key:"a90cdfc9a32279cb07938fc57f9dd7e38d822f6d"},i("div",{key:"6826e3dd84034368f419ff759962a721a275dc9c"},i("h4",{key:"5ebdf456e8c4dc006b036dc182fa75218aac0e01",class:"org-var-header"},this._translations.solVariables)),i("div",{key:"06fc04c1e61dc1897989e3cc11df7b173f1fdb2a",class:"container-border"},i("calcite-tree",{key:"15500194129af7440ec05dc495b060fc18f22324",id:"variable-label"},this._renderHierarchy(this._solutionVariables))))}_solutionVariables=[];_translations;solutionVariableSelected;_renderHierarchy(t){return t.map((t=>t.dependencies&&t.dependencies.length>0?i("calcite-tree-item",{onClick:t=>this._toggleExpand(t)},i("solution-item-icon",{type:t.type}),i("span",{class:"icon-text",title:t.title},t.title),i("calcite-tree",{slot:"children"},this._renderHierarchy(t.dependencies))):i("calcite-tree-item",{onClick:()=>this._treeItemSelected(t.id,t.value)},t.title)))}_treeItemSelected(t,e){this.solutionVariableSelected.emit({itemId:t,value:e})}_toggleExpand(t){const e=t?.target?.closest("calcite-tree-item");e&&(e.expanded=!e.expanded)}async _getTranslations(){const t=await n(this.el);this._translations=t[0]}static get watchers(){return{locale:["localeWatchHandler"],value:["valueWatchHandler"]}}};u.style=":host{display:block}.container-border{overflow-y:hidden}.org-var-header{margin-top:1rem;margin-bottom:1rem;margin-left:0px;margin-right:0px}.icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";export{d as json_editor,r as solution_item_details,h as solution_item_sharing,b as solution_organization_variables,f as solution_resource_item,p as solution_template_data,u as solution_variables}
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as n,c as t,h as a,g as i,H as e}from"./p-8c40bdec.js";import{g as s}from"./p-a42ff7fe.js";var p;!function(n){n.TopLeft="top-left",n.TopCenter="top-center",n.TopRight="top-right",n.CenterLeft="center-left",n.Center="center",n.CenterRight="center-right",n.BottomLeft="bottom-left",n.BottomCenter="bottom-center",n.BottomRight="bottom-right"}(p||(p={}));const g={s:" instant-apps-landing-page__icon-image-scale--s",m:" instant-apps-landing-page__icon-image-scale--m",l:" instant-apps-landing-page__icon-image-scale--l"},l=class{constructor(a){n(this,a),this.landingPageOpen=t(this,"landingPageOpen",7),this.landingPageClose=t(this,"landingPageClose",7),this.titleText=void 0,this.subtitleText=void 0,this.descriptionText=void 0,this.entryButtonText=void 0,this.iconImage=void 0,this.iconImageScale="m",this.iconImageAltText=void 0,this.alignment=p.Center,this.disableTransition=!0,this.backgroundImageSrc=void 0,this.open=!0,this.entryButtonScale="l",this.fontFamily="var(--calcite-sans-family);",this.enableSignIn=void 0,this.portal=void 0,this.oauthappid=void 0}emitToggleEvent(){this.open?this.landingPageOpen.emit():this.landingPageClose.emit()}async componentWillRender(){await this.checkEnableSignIn()}render(){const n=this.renderLandingPageContent();return a(e,{key:"ea71727939f905d2f22bf8e45cd4a4cefe9557ae"},n)}renderLandingPageContent(){const n=this.open?"":this.disableTransition?" instant-apps-landing-page--closed-no-transition":" instant-apps-landing-page--closed",t=this.getAlignmentClass(),i=this.disableTransition?" instant-apps-landing-page__remove-transition":"",e=this.getContentStyle();return a("div",{style:e,class:`instant-apps-landing-page${t}${n}${i}`},a("div",{class:"instant-apps-landing-page__content-container"},this.renderIconImage(),this.renderTitleText(),this.renderSubtitleText(),this.renderDescriptionText()),this.renderEntryButtonContainer())}renderEntryButtonContainer(){return this.enableSignIn?this.renderLandingPageSignIn():a("div",{class:"instant-apps-landing-page__button-container"},this.renderEntryButton(),a("slot",{name:"secondary-action"}))}renderLandingPageSignIn(){return a("instant-apps-sign-in",{type:"landingPage",landingPage:!0,portal:this.portal,oauthappid:this.oauthappid,titleText:this.titleText,subtitleText:this.subtitleText,descriptionText:this.descriptionText,closeLandingPage:this.closeLandingPage.bind(this)})}renderIconImage(){return this.iconImage?a("img",{class:`instant-apps-landing-page__icon-image${this.getIconImageScale()}`,src:this.iconImage,alt:this.iconImageAltText}):null}renderTitleText(){return a("h1",{class:"instant-apps-landing-page__title-text"},this.titleText)}renderSubtitleText(){return a("span",{class:"instant-apps-landing-page__subtitle-text"},this.subtitleText)}renderDescriptionText(){return a("p",{class:"instant-apps-landing-page__description-text"},this.descriptionText)}renderEntryButton(){return a("calcite-button",{class:"instant-apps-landing-page__entry-button",onClick:this.closeLandingPage.bind(this),scale:this.entryButtonScale,appearance:"outline-fill"},this.entryButtonText?this.entryButtonText:"Enter")}closeLandingPage(){this.open=!1}getAlignmentClass(){return` instant-apps-landing-page__alignment--${this.alignment}`}getIconImageScale(){const{iconImageScale:n}=this,{s:t,m:a,l:i}=g;return"l"===n?i:"s"===n?t:a}getContentStyle(){const n=s(this.fontFamily);return this.backgroundImageSrc?{fontFamily:n,backgroundSize:"cover",backgroundImage:`url("${this.backgroundImageSrc}")`,backgroundRepeat:"no-repeat",backgroundPosition:"center"}:{fontFamily:n}}checkEnableSignIn(){return new Promise((n=>{if(this.enableSignIn){const n=localStorage.getItem("signing-in")?Number(localStorage.getItem("signing-in")):null;if(null!=n){const t=2;(Date.now()-n)/6e4<t&&(this.open=!1),localStorage.removeItem("signing-in")}}n()}))}get el(){return i(this)}static get watchers(){return{open:["emitToggleEvent"]}}};l.style=":host{--instant-apps-landing-page-background-color:var(--calcite-color-brand);--instant-apps-landing-page-text-color:var(--calcite-color-text-inverse);--instant-apps-landing-page-entry-button-color:var(--calcite-color-brand);--instant-apps-landing-page-title-text-font-size:var(--calcite-font-size-6);--instant-apps-landing-page-subtitle-text-font-size:var(--calcite-font-size-3);--instant-apps-landing-page-description-text-font-size:var(--calcite-font-size-0);--instant-apps-landing-page-icon-image-scale--s:100px;--instant-apps-landing-page-icon-image-scale--m:250px;--instant-apps-landing-page-icon-image-scale--l:500px;--instant-apps-landing-page-entry-button-margin:0}:host .instant-apps-landing-page{box-sizing:border-box;position:absolute;top:0;left:0;z-index:9000;display:flex;flex-direction:column;width:100%;height:100%;padding:2.5%;transition:top 0.5s ease-in-out;background-color:var(--instant-apps-landing-page-background-color);color:var(--instant-apps-landing-page-text-color)}:host .instant-apps-landing-page__title-text{color:var(--instant-apps-landing-page-text-color);font-size:var(--instant-apps-landing-page-title-text-font-size);margin:0}:host .instant-apps-landing-page__subtitle-text{font-weight:var(--calcite-font-weight-medium);font-size:var(--instant-apps-landing-page-subtitle-text-font-size)}:host .instant-apps-landing-page__description-text{font-size:var(--instant-apps-landing-page-description-text-font-size);width:50%;min-width:250px}:host .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__subtitle-text{text-shadow:0px 4px 3px rgba(0, 0, 0, 0.4), 0px 8px 13px rgba(0, 0, 0, 0.1), 0px 18px 23px rgba(0, 0, 0, 0.1)}:host .instant-apps-landing-page__icon-image{margin-bottom:5px;max-width:50%}:host .instant-apps-landing-page__icon-image-scale--s{width:100px}:host .instant-apps-landing-page__icon-image-scale--m{width:250px}:host .instant-apps-landing-page__icon-image-scale--l{width:500px}:host .instant-apps-landing-page__button-container{display:flex}:host .instant-apps-landing-page__button-container .instant-apps-landing-page__entry-button{margin:var(--instant-apps-landing-page-entry-button-margin)}:host .instant-apps-landing-page__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)}:host .instant-apps-landing-page__remove-transition{transition:none}:host .instant-apps-landing-page__remove-padding{padding:0}:host .instant-apps-landing-page--closed-no-transition{display:none}:host .instant-apps-landing-page--closed{top:-100%}:host .instant-apps-landing-page__alignment--top-center{justify-content:flex-start;align-items:center}:host .instant-apps-landing-page__alignment--top-center .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:center;justify-content:center}:host .instant-apps-landing-page__alignment--center{justify-content:center;align-items:center}:host .instant-apps-landing-page__alignment--center .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:center}:host .instant-apps-landing-page__alignment--bottom-center{justify-content:flex-end;align-items:center}:host .instant-apps-landing-page__alignment--bottom-center .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:center}:host .instant-apps-landing-page__alignment--top-left{justify-content:flex-start;align-items:flex-start}:host .instant-apps-landing-page__alignment--center-left{justify-content:center;align-items:flex-start}:host .instant-apps-landing-page__alignment--bottom-left{justify-content:flex-end;align-items:flex-start}:host .instant-apps-landing-page__alignment--top-right{justify-content:flex-start;align-items:flex-end}:host .instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:flex-end}:host .instant-apps-landing-page__alignment--center-right{justify-content:center;align-items:flex-end}:host .instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:flex-end}:host .instant-apps-landing-page__alignment--bottom-right{justify-content:flex-end;align-items:flex-end}:host .instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:flex-end}:host .instant-apps-landing-page__alignment--top-left .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--top-left .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--top-left .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:left}:host .instant-apps-landing-page__alignment--center-left .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--center-left .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--center-left .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:left}:host .instant-apps-landing-page__alignment--bottom-left .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--bottom-left .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--bottom-left .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:left}:host .instant-apps-landing-page__alignment--top-center .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--top-center .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--top-center .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:center}:host .instant-apps-landing-page__alignment--center .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--center .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--center .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:center}:host .instant-apps-landing-page__alignment--bottom-center .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--bottom-center .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--bottom-center .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:center}:host .instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:right}:host .instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:right}:host .instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:right}:host instant-apps-sign-in{width:50%}@media screen and (max-width: 500px){:host instant-apps-sign-in{width:100%}}@media only screen and (max-width: 768px){:host .instant-apps-landing-page__icon-image{max-width:70%;margin-bottom:20px}:host .instant-apps-landing-page__description-text{width:80%}:host .instant-apps-landing-page__title-text{font-size:var(--calcite-font-size-3)}:host .instant-apps-landing-page__subtitle-text{font-size:var(--calcite-font-size-0)}:host .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:center;margin-top:auto}:host .instant-apps-landing-page__button-container{display:flex;flex-direction:column;width:100%;margin-top:auto}:host .instant-apps-landing-page__button-container .instant-apps-landing-page__entry-button{width:100%;margin-right:unset;margin-bottom:10px}:host .instant-apps-landing-page instant-apps-sign-in{margin-bottom:auto}}@media only screen and (max-width: 896px) and (orientation: landscape){:host .instant-apps-landing-page__icon-image{max-width:25%}}";export{l as instant_apps_landing_page}
6
+ import{r as n,c as t,h as a,g as i,H as e}from"./p-1b0588d2.js";import{g as s}from"./p-a42ff7fe.js";var p;!function(n){n.TopLeft="top-left",n.TopCenter="top-center",n.TopRight="top-right",n.CenterLeft="center-left",n.Center="center",n.CenterRight="center-right",n.BottomLeft="bottom-left",n.BottomCenter="bottom-center",n.BottomRight="bottom-right"}(p||(p={}));const g={s:" instant-apps-landing-page__icon-image-scale--s",m:" instant-apps-landing-page__icon-image-scale--m",l:" instant-apps-landing-page__icon-image-scale--l"},l=class{constructor(a){n(this,a),this.landingPageOpen=t(this,"landingPageOpen",7),this.landingPageClose=t(this,"landingPageClose",7),this.titleText=void 0,this.subtitleText=void 0,this.descriptionText=void 0,this.entryButtonText=void 0,this.iconImage=void 0,this.iconImageScale="m",this.iconImageAltText=void 0,this.alignment=p.Center,this.disableTransition=!0,this.backgroundImageSrc=void 0,this.open=!0,this.entryButtonScale="l",this.fontFamily="var(--calcite-sans-family);",this.enableSignIn=void 0,this.portal=void 0,this.oauthappid=void 0}emitToggleEvent(){this.open?this.landingPageOpen.emit():this.landingPageClose.emit()}async componentWillRender(){await this.checkEnableSignIn()}render(){const n=this.renderLandingPageContent();return a(e,{key:"ea71727939f905d2f22bf8e45cd4a4cefe9557ae"},n)}renderLandingPageContent(){const n=this.open?"":this.disableTransition?" instant-apps-landing-page--closed-no-transition":" instant-apps-landing-page--closed",t=this.getAlignmentClass(),i=this.disableTransition?" instant-apps-landing-page__remove-transition":"",e=this.getContentStyle();return a("div",{style:e,class:`instant-apps-landing-page${t}${n}${i}`},a("div",{class:"instant-apps-landing-page__content-container"},this.renderIconImage(),this.renderTitleText(),this.renderSubtitleText(),this.renderDescriptionText()),this.renderEntryButtonContainer())}renderEntryButtonContainer(){return this.enableSignIn?this.renderLandingPageSignIn():a("div",{class:"instant-apps-landing-page__button-container"},this.renderEntryButton(),a("slot",{name:"secondary-action"}))}renderLandingPageSignIn(){return a("instant-apps-sign-in",{type:"landingPage",landingPage:!0,portal:this.portal,oauthappid:this.oauthappid,titleText:this.titleText,subtitleText:this.subtitleText,descriptionText:this.descriptionText,closeLandingPage:this.closeLandingPage.bind(this)})}renderIconImage(){return this.iconImage?a("img",{class:`instant-apps-landing-page__icon-image${this.getIconImageScale()}`,src:this.iconImage,alt:this.iconImageAltText}):null}renderTitleText(){return a("h1",{class:"instant-apps-landing-page__title-text"},this.titleText)}renderSubtitleText(){return a("span",{class:"instant-apps-landing-page__subtitle-text"},this.subtitleText)}renderDescriptionText(){return a("p",{class:"instant-apps-landing-page__description-text"},this.descriptionText)}renderEntryButton(){return a("calcite-button",{class:"instant-apps-landing-page__entry-button",onClick:this.closeLandingPage.bind(this),scale:this.entryButtonScale,appearance:"outline-fill"},this.entryButtonText?this.entryButtonText:"Enter")}closeLandingPage(){this.open=!1}getAlignmentClass(){return` instant-apps-landing-page__alignment--${this.alignment}`}getIconImageScale(){const{iconImageScale:n}=this,{s:t,m:a,l:i}=g;return"l"===n?i:"s"===n?t:a}getContentStyle(){const n=s(this.fontFamily);return this.backgroundImageSrc?{fontFamily:n,backgroundSize:"cover",backgroundImage:`url("${this.backgroundImageSrc}")`,backgroundRepeat:"no-repeat",backgroundPosition:"center"}:{fontFamily:n}}checkEnableSignIn(){return new Promise((n=>{if(this.enableSignIn){const n=localStorage.getItem("signing-in")?Number(localStorage.getItem("signing-in")):null;if(null!=n){const t=2;(Date.now()-n)/6e4<t&&(this.open=!1),localStorage.removeItem("signing-in")}}n()}))}get el(){return i(this)}static get watchers(){return{open:["emitToggleEvent"]}}};l.style=":host{--instant-apps-landing-page-background-color:var(--calcite-color-brand);--instant-apps-landing-page-text-color:var(--calcite-color-text-inverse);--instant-apps-landing-page-entry-button-color:var(--calcite-color-brand);--instant-apps-landing-page-title-text-font-size:var(--calcite-font-size-6);--instant-apps-landing-page-subtitle-text-font-size:var(--calcite-font-size-3);--instant-apps-landing-page-description-text-font-size:var(--calcite-font-size-0);--instant-apps-landing-page-icon-image-scale--s:100px;--instant-apps-landing-page-icon-image-scale--m:250px;--instant-apps-landing-page-icon-image-scale--l:500px;--instant-apps-landing-page-entry-button-margin:0}:host .instant-apps-landing-page{box-sizing:border-box;position:absolute;top:0;left:0;z-index:9000;display:flex;flex-direction:column;width:100%;height:100%;padding:2.5%;transition:top 0.5s ease-in-out;background-color:var(--instant-apps-landing-page-background-color);color:var(--instant-apps-landing-page-text-color)}:host .instant-apps-landing-page__title-text{color:var(--instant-apps-landing-page-text-color);font-size:var(--instant-apps-landing-page-title-text-font-size);margin:0}:host .instant-apps-landing-page__subtitle-text{font-weight:var(--calcite-font-weight-medium);font-size:var(--instant-apps-landing-page-subtitle-text-font-size)}:host .instant-apps-landing-page__description-text{font-size:var(--instant-apps-landing-page-description-text-font-size);width:50%;min-width:250px}:host .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__subtitle-text{text-shadow:0px 4px 3px rgba(0, 0, 0, 0.4), 0px 8px 13px rgba(0, 0, 0, 0.1), 0px 18px 23px rgba(0, 0, 0, 0.1)}:host .instant-apps-landing-page__icon-image{margin-bottom:5px;max-width:50%}:host .instant-apps-landing-page__icon-image-scale--s{width:100px}:host .instant-apps-landing-page__icon-image-scale--m{width:250px}:host .instant-apps-landing-page__icon-image-scale--l{width:500px}:host .instant-apps-landing-page__button-container{display:flex}:host .instant-apps-landing-page__button-container .instant-apps-landing-page__entry-button{margin:var(--instant-apps-landing-page-entry-button-margin)}:host .instant-apps-landing-page__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)}:host .instant-apps-landing-page__remove-transition{transition:none}:host .instant-apps-landing-page__remove-padding{padding:0}:host .instant-apps-landing-page--closed-no-transition{display:none}:host .instant-apps-landing-page--closed{top:-100%}:host .instant-apps-landing-page__alignment--top-center{justify-content:flex-start;align-items:center}:host .instant-apps-landing-page__alignment--top-center .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:center;justify-content:center}:host .instant-apps-landing-page__alignment--center{justify-content:center;align-items:center}:host .instant-apps-landing-page__alignment--center .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:center}:host .instant-apps-landing-page__alignment--bottom-center{justify-content:flex-end;align-items:center}:host .instant-apps-landing-page__alignment--bottom-center .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:center}:host .instant-apps-landing-page__alignment--top-left{justify-content:flex-start;align-items:flex-start}:host .instant-apps-landing-page__alignment--center-left{justify-content:center;align-items:flex-start}:host .instant-apps-landing-page__alignment--bottom-left{justify-content:flex-end;align-items:flex-start}:host .instant-apps-landing-page__alignment--top-right{justify-content:flex-start;align-items:flex-end}:host .instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:flex-end}:host .instant-apps-landing-page__alignment--center-right{justify-content:center;align-items:flex-end}:host .instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:flex-end}:host .instant-apps-landing-page__alignment--bottom-right{justify-content:flex-end;align-items:flex-end}:host .instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:flex-end}:host .instant-apps-landing-page__alignment--top-left .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--top-left .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--top-left .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:left}:host .instant-apps-landing-page__alignment--center-left .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--center-left .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--center-left .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:left}:host .instant-apps-landing-page__alignment--bottom-left .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--bottom-left .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--bottom-left .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:left}:host .instant-apps-landing-page__alignment--top-center .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--top-center .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--top-center .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:center}:host .instant-apps-landing-page__alignment--center .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--center .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--center .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:center}:host .instant-apps-landing-page__alignment--bottom-center .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--bottom-center .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--bottom-center .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:center}:host .instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:right}:host .instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:right}:host .instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:right}:host instant-apps-sign-in{width:50%}@media screen and (max-width: 500px){:host instant-apps-sign-in{width:100%}}@media only screen and (max-width: 768px){:host .instant-apps-landing-page__icon-image{max-width:70%;margin-bottom:20px}:host .instant-apps-landing-page__description-text{width:80%}:host .instant-apps-landing-page__title-text{font-size:var(--calcite-font-size-3)}:host .instant-apps-landing-page__subtitle-text{font-size:var(--calcite-font-size-0)}:host .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:center;margin-top:auto}:host .instant-apps-landing-page__button-container{display:flex;flex-direction:column;width:100%;margin-top:auto}:host .instant-apps-landing-page__button-container .instant-apps-landing-page__entry-button{width:100%;margin-right:unset;margin-bottom:10px}:host .instant-apps-landing-page instant-apps-sign-in{margin-bottom:auto}}@media only screen and (max-width: 896px) and (orientation: landscape){:host .instant-apps-landing-page__icon-image{max-width:25%}}";export{l as instant_apps_landing_page}
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as t,c as e,h as a,H as s,g as i}from"./p-8c40bdec.js";import{g as n}from"./p-af2c8aa9.js";import{S as h}from"./p-2bc98cb0.js";import{w as o}from"./p-04674a1e.js";import{g as r}from"./p-a42ff7fe.js";import"./p-6a68306c.js";import"./p-d4056c1c.js";const d={base:"instant-apps-header--standard",headerContainer:"instant-apps-header__header-container",headerContent:"instant-apps-header__header-content",flipRtl:"instant-apps-header--rtl",logoScale:"instant-apps-header__logo-scale--",logoHeight:"instant-apps-header__logo-height--",standardHeight:"instant-apps-header__standard-height",actionsEndContainer:"instant-apps-header__actions-end-container",alignment:{center:"instant-apps-header__header-content--center",right:"instant-apps-header__header-content--right"}},p=class{constructor(a){t(this,a),this.infoIsOpenChanged=e(this,"infoIsOpenChanged",6),this._sanitizer=new h({whiteList:{h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],img:["style","src","width","height"],pre:["style"],p:["id","class","style"],div:["id","class","style","role"],span:["id","class","style","role"],figure:["class","style"],header:["id","class","style","role"]}},!0),this.dir=void 0,this.titleText=void 0,this.titleTextLink=void 0,this.backgroundColor=void 0,this.textColor=void 0,this.logoImage=void 0,this.logoScale="m",this.logoImageAltText=void 0,this.logoLink=void 0,this.infoButton=!1,this.infoIsOpen=!1,this.infoTitleText=void 0,this.customHeaderHtml=void 0,this.headerAlignment="left",this.customHeaderCss=void 0,this.fontFamily="var(--calcite-sans-family);",this.mobileWidthBreakpoint=o.medium[1],this.initialScale="m"}sanitizeCustomHeaderHtml(){this.customHeaderHtml=this._sanitizer.sanitize(this.customHeaderHtml)}componentWillLoad(){this.dir=n(this.el),this.handleMobileBreakpoints(),this.dir=n(this.el),this.customHeaderHtml=this._sanitizer.sanitize(this.customHeaderHtml)}render(){var t,e,i,n;const h="undefined"===this.logoImage||"undefined"===(null===(e=null===(t=this.logoImage)||void 0===t?void 0:t.split("?"))||void 0===e?void 0:e[0])||""===(null===(n=null===(i=this.logoImage)||void 0===i?void 0:i.split("?"))||void 0===n?void 0:n[0])||!this.logoImage,o=this.renderLogo(h),p=this.renderTitle(),l="right"===this.headerAlignment||"center"===this.headerAlignment?d.headerContent.concat(" ",d.alignment[this.headerAlignment]):d.headerContent,c=r(this.fontFamily);return a(s,{key:"f2d1760c4a1345ef24c913a24f95691d0de6867d"},this.customHeaderHtml?[a("style",null,this.customHeaderCss),a("div",{id:"customHeader",innerHTML:this.customHeaderHtml})]:a("header",{class:`${d.base}${"rtl"===this.dir?` ${d.flipRtl}`:""}${this.logoImage&&!h?` ${d.logoHeight}${this.logoScale}`:` ${d.standardHeight}`}`,style:{backgroundColor:this.backgroundColor,fontFamily:c}},a("div",{class:d.headerContainer},a("span",{class:l},o,p,this.infoButton?a("calcite-button",{style:{"--calcite-color-text-1":this.textColor},id:"infoButton",alignment:"start",appearance:"transparent",kind:"neutral","icon-start":"information-f",scale:"s",label:this.infoTitleText,title:this.infoTitleText,onClick:this.toggleInfo.bind(this)}):null),a("div",{class:d.actionsEndContainer},a("slot",{name:"actions-end"})))))}renderLogo(t){return t?"":this.logoImage&&this.logoLink?a("a",{href:`${this.logoLink}`,target:"_blank"},a("img",{class:`${d.logoScale}${this.logoScale}`,src:`${this.logoImage}`,alt:`${this.logoImageAltText}`})):this.logoImage?a("img",{class:`${d.logoScale}${this.logoScale}`,src:`${this.logoImage}`,alt:this.logoImageAltText}):""}renderTitle(){return this.titleText&&this.titleTextLink?a("a",{style:{color:this.textColor},href:`${this.titleTextLink}`,rel:"noopener noreferrer",target:"_blank"},a("h1",{style:{color:this.textColor}},this.titleText)):a("h1",{style:{color:this.textColor}},this.titleText)}toggleInfo(){return this.infoIsOpen=!this.infoIsOpen,this.infoIsOpenChanged.emit(this.infoIsOpen),Promise.resolve()}mqlCallback(){return t=>{const{matches:e}=t;this.logoScale=e?"s":this.initialScale}}handleMobileBreakpoints(){this.initialScale=this.logoScale;const t=window.matchMedia(`(max-width: ${this.mobileWidthBreakpoint}px)`);t.matches&&(this.logoScale="s"),t.addEventListener("change",this.mqlCallback())}get el(){return i(this)}static get watchers(){return{customHeaderHtml:["sanitizeCustomHeaderHtml"]}}};p.style=":host{--instant-apps-header-height:auto;--instant-apps-header-min-height:50px;--instant-apps-header-title-text-link-decoration:underline;--instant-apps-header-height--logo-scale--s:55px;--instant-apps-header-logo-width--logo-scale--s:35px;--instant-apps-header-logo-height--logo-scale--s:35px;--instant-apps-header-height--logo-scale--m:70px;--instant-apps-header-logo-width--logo-scale--m:50px;--instant-apps-header-logo-height--logo-scale--m:50px;--instant-apps-header-height--logo-scale--l:80px;--instant-apps-header-logo-width--logo-scale--l:60px;--instant-apps-header-logo-height--logo-scale--l:60px;--instant-apps-header-actions-end-height:auto;width:100%}:host .image.image_resized img{width:100%}:host .instant-apps-header--standard{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;height:var(--instant-apps-header-height);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);font-family:var(--calcite-sans-family);min-height:var(--instant-apps-header-min-height)}:host .instant-apps-header--standard .instant-apps-header__header-container{display:flex;align-items:center;width:100%;height:inherit}:host .instant-apps-header--standard .instant-apps-header__header-container slot{display:flex;height:inherit}:host .instant-apps-header--standard .instant-apps-header__header-container ::slotted(*){display:flex;min-height:var(--instant-apps-header-min-height);height:var(--instant-apps-header-height)}:host .instant-apps-header--standard .instant-apps-header__header-container ::slotted(*) calcite-button{height:100%}:host .instant-apps-header--standard .instant-apps-header__header-content{box-sizing:border-box;display:flex;align-items:center;width:100%;min-width:0;height:inherit;padding:5px 10px}:host .instant-apps-header--standard .instant-apps-header__header-content a{display:flex;align-items:center;-webkit-text-decoration:var(--instant-apps-header-title-text-link-decoration);text-decoration:var(--instant-apps-header-title-text-link-decoration)}:host .instant-apps-header--standard .instant-apps-header__header-content a img{padding-right:0}:host .instant-apps-header--standard .instant-apps-header__header-content img{margin:10px}:host .instant-apps-header--standard .instant-apps-header__header-content h1{margin:0;font-size:1.25rem;color:var(--calcite-color-text-1);font-weight:430;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .instant-apps-header--standard .instant-apps-header__header-content #infoButton{margin-inline-start:10px}:host .instant-apps-header--standard .instant-apps-header__header-content--center{justify-content:center}:host .instant-apps-header--standard .instant-apps-header__header-content--right{justify-content:end}:host .instant-apps-header__logo-height--s{height:var(--instant-apps-header-height--logo-scale--s)}:host .instant-apps-header__logo-height--s .instant-apps-header__header-content h1{font-size:1.125rem}:host .instant-apps-header__logo-scale--s{width:var(--instant-apps-header-logo-width--logo-scale--s);height:var(--instant-apps-header-logo-height--logo-scale--s)}:host .instant-apps-header__logo-height--m{height:var(--instant-apps-header-height--logo-scale--m)}:host .instant-apps-header__logo-scale--m{width:var(--instant-apps-header-logo-width--logo-scale--m);height:var(--instant-apps-header-logo-height--logo-scale--m)}:host .instant-apps-header__logo-height--l{height:var(--instant-apps-header-height--logo-scale--l)}:host .instant-apps-header__logo-height--l .instant-apps-header__header-content h1{font-size:1.375rem}:host .instant-apps-header__logo-scale--l{width:var(--instant-apps-header-logo-width--logo-scale--l);height:var(--instant-apps-header-logo-height--logo-scale--l)}:host .instant-apps-header__actions-end-container{height:var(--instant-apps-header-actions-end-height);display:flex}:host .instant-apps-header__sign-in-container{height:inherit;display:flex;align-items:center}:host .instant-apps-header__sign-in-container calcite-dropdown,:host .instant-apps-header__sign-in-container calcite-navigation-user{height:100%}:host .instant-apps-header__sign-in-container calcite-button{margin:0 10px}:host .instant-apps-header__sign-in-container calcite-dropdown-group{min-width:140px}";export{p as instant_apps_header}
6
+ import{r as t,c as e,h as a,H as s,g as i}from"./p-1b0588d2.js";import{g as n}from"./p-ac122d9e.js";import{S as h}from"./p-2bc98cb0.js";import{w as o}from"./p-04674a1e.js";import{g as r}from"./p-a42ff7fe.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";const d={base:"instant-apps-header--standard",headerContainer:"instant-apps-header__header-container",headerContent:"instant-apps-header__header-content",flipRtl:"instant-apps-header--rtl",logoScale:"instant-apps-header__logo-scale--",logoHeight:"instant-apps-header__logo-height--",standardHeight:"instant-apps-header__standard-height",actionsEndContainer:"instant-apps-header__actions-end-container",alignment:{center:"instant-apps-header__header-content--center",right:"instant-apps-header__header-content--right"}},p=class{constructor(a){t(this,a),this.infoIsOpenChanged=e(this,"infoIsOpenChanged",6),this._sanitizer=new h({whiteList:{h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],img:["style","src","width","height"],pre:["style"],p:["id","class","style"],div:["id","class","style","role"],span:["id","class","style","role"],figure:["class","style"],header:["id","class","style","role"]}},!0),this.dir=void 0,this.titleText=void 0,this.titleTextLink=void 0,this.backgroundColor=void 0,this.textColor=void 0,this.logoImage=void 0,this.logoScale="m",this.logoImageAltText=void 0,this.logoLink=void 0,this.infoButton=!1,this.infoIsOpen=!1,this.infoTitleText=void 0,this.customHeaderHtml=void 0,this.headerAlignment="left",this.customHeaderCss=void 0,this.fontFamily="var(--calcite-sans-family);",this.mobileWidthBreakpoint=o.medium[1],this.initialScale="m"}sanitizeCustomHeaderHtml(){this.customHeaderHtml=this._sanitizer.sanitize(this.customHeaderHtml)}componentWillLoad(){this.dir=n(this.el),this.handleMobileBreakpoints(),this.dir=n(this.el),this.customHeaderHtml=this._sanitizer.sanitize(this.customHeaderHtml)}render(){var t,e,i,n;const h="undefined"===this.logoImage||"undefined"===(null===(e=null===(t=this.logoImage)||void 0===t?void 0:t.split("?"))||void 0===e?void 0:e[0])||""===(null===(n=null===(i=this.logoImage)||void 0===i?void 0:i.split("?"))||void 0===n?void 0:n[0])||!this.logoImage,o=this.renderLogo(h),p=this.renderTitle(),l="right"===this.headerAlignment||"center"===this.headerAlignment?d.headerContent.concat(" ",d.alignment[this.headerAlignment]):d.headerContent,c=r(this.fontFamily);return a(s,{key:"f2d1760c4a1345ef24c913a24f95691d0de6867d"},this.customHeaderHtml?[a("style",null,this.customHeaderCss),a("div",{id:"customHeader",innerHTML:this.customHeaderHtml})]:a("header",{class:`${d.base}${"rtl"===this.dir?` ${d.flipRtl}`:""}${this.logoImage&&!h?` ${d.logoHeight}${this.logoScale}`:` ${d.standardHeight}`}`,style:{backgroundColor:this.backgroundColor,fontFamily:c}},a("div",{class:d.headerContainer},a("span",{class:l},o,p,this.infoButton?a("calcite-button",{style:{"--calcite-color-text-1":this.textColor},id:"infoButton",alignment:"start",appearance:"transparent",kind:"neutral","icon-start":"information-f",scale:"s",label:this.infoTitleText,title:this.infoTitleText,onClick:this.toggleInfo.bind(this)}):null),a("div",{class:d.actionsEndContainer},a("slot",{name:"actions-end"})))))}renderLogo(t){return t?"":this.logoImage&&this.logoLink?a("a",{href:`${this.logoLink}`,target:"_blank"},a("img",{class:`${d.logoScale}${this.logoScale}`,src:`${this.logoImage}`,alt:`${this.logoImageAltText}`})):this.logoImage?a("img",{class:`${d.logoScale}${this.logoScale}`,src:`${this.logoImage}`,alt:this.logoImageAltText}):""}renderTitle(){return this.titleText&&this.titleTextLink?a("a",{style:{color:this.textColor},href:`${this.titleTextLink}`,rel:"noopener noreferrer",target:"_blank"},a("h1",{style:{color:this.textColor}},this.titleText)):a("h1",{style:{color:this.textColor}},this.titleText)}toggleInfo(){return this.infoIsOpen=!this.infoIsOpen,this.infoIsOpenChanged.emit(this.infoIsOpen),Promise.resolve()}mqlCallback(){return t=>{const{matches:e}=t;this.logoScale=e?"s":this.initialScale}}handleMobileBreakpoints(){this.initialScale=this.logoScale;const t=window.matchMedia(`(max-width: ${this.mobileWidthBreakpoint}px)`);t.matches&&(this.logoScale="s"),t.addEventListener("change",this.mqlCallback())}get el(){return i(this)}static get watchers(){return{customHeaderHtml:["sanitizeCustomHeaderHtml"]}}};p.style=":host{--instant-apps-header-height:auto;--instant-apps-header-min-height:50px;--instant-apps-header-title-text-link-decoration:underline;--instant-apps-header-height--logo-scale--s:55px;--instant-apps-header-logo-width--logo-scale--s:35px;--instant-apps-header-logo-height--logo-scale--s:35px;--instant-apps-header-height--logo-scale--m:70px;--instant-apps-header-logo-width--logo-scale--m:50px;--instant-apps-header-logo-height--logo-scale--m:50px;--instant-apps-header-height--logo-scale--l:80px;--instant-apps-header-logo-width--logo-scale--l:60px;--instant-apps-header-logo-height--logo-scale--l:60px;--instant-apps-header-actions-end-height:auto;width:100%}:host .image.image_resized img{width:100%}:host .instant-apps-header--standard{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;height:var(--instant-apps-header-height);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);font-family:var(--calcite-sans-family);min-height:var(--instant-apps-header-min-height)}:host .instant-apps-header--standard .instant-apps-header__header-container{display:flex;align-items:center;width:100%;height:inherit}:host .instant-apps-header--standard .instant-apps-header__header-container slot{display:flex;height:inherit}:host .instant-apps-header--standard .instant-apps-header__header-container ::slotted(*){display:flex;min-height:var(--instant-apps-header-min-height);height:var(--instant-apps-header-height)}:host .instant-apps-header--standard .instant-apps-header__header-container ::slotted(*) calcite-button{height:100%}:host .instant-apps-header--standard .instant-apps-header__header-content{box-sizing:border-box;display:flex;align-items:center;width:100%;min-width:0;height:inherit;padding:5px 10px}:host .instant-apps-header--standard .instant-apps-header__header-content a{display:flex;align-items:center;-webkit-text-decoration:var(--instant-apps-header-title-text-link-decoration);text-decoration:var(--instant-apps-header-title-text-link-decoration)}:host .instant-apps-header--standard .instant-apps-header__header-content a img{padding-right:0}:host .instant-apps-header--standard .instant-apps-header__header-content img{margin:10px}:host .instant-apps-header--standard .instant-apps-header__header-content h1{margin:0;font-size:1.25rem;color:var(--calcite-color-text-1);font-weight:430;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .instant-apps-header--standard .instant-apps-header__header-content #infoButton{margin-inline-start:10px}:host .instant-apps-header--standard .instant-apps-header__header-content--center{justify-content:center}:host .instant-apps-header--standard .instant-apps-header__header-content--right{justify-content:end}:host .instant-apps-header__logo-height--s{height:var(--instant-apps-header-height--logo-scale--s)}:host .instant-apps-header__logo-height--s .instant-apps-header__header-content h1{font-size:1.125rem}:host .instant-apps-header__logo-scale--s{width:var(--instant-apps-header-logo-width--logo-scale--s);height:var(--instant-apps-header-logo-height--logo-scale--s)}:host .instant-apps-header__logo-height--m{height:var(--instant-apps-header-height--logo-scale--m)}:host .instant-apps-header__logo-scale--m{width:var(--instant-apps-header-logo-width--logo-scale--m);height:var(--instant-apps-header-logo-height--logo-scale--m)}:host .instant-apps-header__logo-height--l{height:var(--instant-apps-header-height--logo-scale--l)}:host .instant-apps-header__logo-height--l .instant-apps-header__header-content h1{font-size:1.375rem}:host .instant-apps-header__logo-scale--l{width:var(--instant-apps-header-logo-width--logo-scale--l);height:var(--instant-apps-header-logo-height--logo-scale--l)}:host .instant-apps-header__actions-end-container{height:var(--instant-apps-header-actions-end-height);display:flex}:host .instant-apps-header__sign-in-container{height:inherit;display:flex;align-items:center}:host .instant-apps-header__sign-in-container calcite-dropdown,:host .instant-apps-header__sign-in-container calcite-navigation-user{height:100%}:host .instant-apps-header__sign-in-container calcite-button{margin:0 10px}:host .instant-apps-header__sign-in-container calcite-dropdown-group{min-width:140px}";export{p as instant_apps_header}
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as t,c as i,h as o,H as e,g as a}from"./p-8c40bdec.js";import{g as l}from"./p-1e364924.js";import"./p-a4bd7b09.js";import"./p-6a68306c.js";import"./p-d4056c1c.js";import"./p-af2c8aa9.js";const n=class{constructor(o){t(this,o),this.measureActive=i(this,"measureActive",7),this.messages=void 0,this.view=void 0,this.areaUnit=void 0,this.linearUnit=void 0,this.coordinateFormat=void 0,this.activeToolType=void 0,this.closable=!1}async componentWillLoad(){l(this)}componentDidLoad(){}render(){var t;return o(e,{key:"843dd716e3f9b125044afd9a2919a60b937ae8b0"},o("calcite-panel",{key:"45dd9e43decdcdc0526139938751d727bd73b3e0",heading:null===(t=null==this?void 0:this.messages)||void 0===t?void 0:t.label,closable:this.closable},o("div",{key:"953365a04fd1f977b08d4b9309fdb52d44363b67",slot:"content-top"},this.renderActionPad()),o("div",{key:"57ce5b75a8aff0d796073bbf2a2f36ea71f65b3c"},this.renderMeasureToolPanel())))}renderMeasureToolPanel(){const{view:t,coordinateFormat:i,areaUnit:e,linearUnit:a,activeToolType:l}=this;return o("calcite-panel",{class:"instant-apps-measurement__content"},o("instant-apps-measurement-tool",{ref:t=>{this.measureTool=t},view:t,measureConfiguration:{coordinateFormat:i,areaUnit:e,linearUnit:a,activeToolType:l}}))}renderActionPad(){const{messages:t,activeToolType:i}=this;return o("calcite-action-pad",{"expand-disabled":!0,layout:"horizontal",position:"end"},o("calcite-action",{class:"distance"===i?"active-tool":"",text:null==t?void 0:t.line,icon:"measure",scale:"m","data-value":"distance",onClick:this._handleToolClick.bind(this)},o("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},null==t?void 0:t.line)),o("calcite-action",{class:"area"===i?"active-tool":"",text:null==t?void 0:t.area,scale:"m",icon:"measure-area","data-value":"area",onClick:this._handleToolClick.bind(this)},o("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},null==t?void 0:t.area)),o("calcite-action",{class:"point"===i?"active-tool":"",text:null==t?void 0:t.point,scale:"m",icon:"pin-plus","data-value":"point",onClick:this._handleToolClick.bind(this)},o("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},null==t?void 0:t.point)),o("calcite-action",{text:null==t?void 0:t.clear,scale:"m",icon:"trash","data-value":"clear",onClick:this._handleToolClick.bind(this)},o("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},null==t?void 0:t.clear)))}_handleToolClick(t){var i,o,e,a;if(!(null==this?void 0:this.measureTool))return;const l=null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.dataset.value;this.measureTool.activeTool=l;const n=document.getElementsByClassName("active-tool");for(let t=0;t<(null==n?void 0:n.length);t++)null===(e=null===(o=n[t])||void 0===o?void 0:o.classList)||void 0===e||e.remove("active-tool");null===(a=null==t?void 0:t.target)||void 0===a||a.classList.add("active-tool"),this.measureActive.emit(void 0!==l&&"clear"!==l)}get el(){return a(this)}};n.style=".sc-instant-apps-measurement-h .sc-instant-apps-measurement.sc-instant-apps-measurement{background:var(--calcite-color-foreground-1)}.sc-instant-apps-measurement-h .active-tool.sc-instant-apps-measurement{--calcite-color-foreground-1:#c7eaff}";export{n as instant_apps_measurement}
6
+ import{r as t,c as i,h as o,H as e,g as a}from"./p-1b0588d2.js";import{g as l}from"./p-173d5fce.js";import"./p-08ad0b7a.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-ac122d9e.js";const n=class{constructor(o){t(this,o),this.measureActive=i(this,"measureActive",7),this.messages=void 0,this.view=void 0,this.areaUnit=void 0,this.linearUnit=void 0,this.coordinateFormat=void 0,this.activeToolType=void 0,this.closable=!1}async componentWillLoad(){l(this)}componentDidLoad(){}render(){var t;return o(e,{key:"843dd716e3f9b125044afd9a2919a60b937ae8b0"},o("calcite-panel",{key:"45dd9e43decdcdc0526139938751d727bd73b3e0",heading:null===(t=null==this?void 0:this.messages)||void 0===t?void 0:t.label,closable:this.closable},o("div",{key:"953365a04fd1f977b08d4b9309fdb52d44363b67",slot:"content-top"},this.renderActionPad()),o("div",{key:"57ce5b75a8aff0d796073bbf2a2f36ea71f65b3c"},this.renderMeasureToolPanel())))}renderMeasureToolPanel(){const{view:t,coordinateFormat:i,areaUnit:e,linearUnit:a,activeToolType:l}=this;return o("calcite-panel",{class:"instant-apps-measurement__content"},o("instant-apps-measurement-tool",{ref:t=>{this.measureTool=t},view:t,measureConfiguration:{coordinateFormat:i,areaUnit:e,linearUnit:a,activeToolType:l}}))}renderActionPad(){const{messages:t,activeToolType:i}=this;return o("calcite-action-pad",{"expand-disabled":!0,layout:"horizontal",position:"end"},o("calcite-action",{class:"distance"===i?"active-tool":"",text:null==t?void 0:t.line,icon:"measure",scale:"m","data-value":"distance",onClick:this._handleToolClick.bind(this)},o("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},null==t?void 0:t.line)),o("calcite-action",{class:"area"===i?"active-tool":"",text:null==t?void 0:t.area,scale:"m",icon:"measure-area","data-value":"area",onClick:this._handleToolClick.bind(this)},o("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},null==t?void 0:t.area)),o("calcite-action",{class:"point"===i?"active-tool":"",text:null==t?void 0:t.point,scale:"m",icon:"pin-plus","data-value":"point",onClick:this._handleToolClick.bind(this)},o("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},null==t?void 0:t.point)),o("calcite-action",{text:null==t?void 0:t.clear,scale:"m",icon:"trash","data-value":"clear",onClick:this._handleToolClick.bind(this)},o("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},null==t?void 0:t.clear)))}_handleToolClick(t){var i,o,e,a;if(!(null==this?void 0:this.measureTool))return;const l=null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.dataset.value;this.measureTool.activeTool=l;const n=document.getElementsByClassName("active-tool");for(let t=0;t<(null==n?void 0:n.length);t++)null===(e=null===(o=n[t])||void 0===o?void 0:o.classList)||void 0===e||e.remove("active-tool");null===(a=null==t?void 0:t.target)||void 0===a||a.classList.add("active-tool"),this.measureActive.emit(void 0!==l&&"clear"!==l)}get el(){return a(this)}};n.style=".sc-instant-apps-measurement-h .sc-instant-apps-measurement.sc-instant-apps-measurement{background:var(--calcite-color-foreground-1)}.sc-instant-apps-measurement-h .active-tool.sc-instant-apps-measurement{--calcite-color-foreground-1:#c7eaff}";export{n as instant_apps_measurement}