@esri/solutions-components 0.10.22 → 0.10.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (382) hide show
  1. package/dist/cjs/basemap-gallery_7.cjs.entry.js +1 -1
  2. package/dist/cjs/{calcite-accordion-item.cjs.entry.js → calcite-accordion_2.cjs.entry.js} +83 -1
  3. package/dist/cjs/calcite-alert_5.cjs.entry.js +2 -2
  4. package/dist/cjs/calcite-combobox_3.cjs.entry.js +17 -2
  5. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +6 -6
  6. package/dist/cjs/{calcite-tree_3.cjs.entry.js → calcite-tree_2.cjs.entry.js} +0 -317
  7. package/dist/cjs/card-manager_3.cjs.entry.js +4 -4
  8. package/dist/cjs/crowdsource-manager.cjs.entry.js +3 -2
  9. package/dist/cjs/{downloadUtils-470f6a27.js → downloadUtils-17f08e5e.js} +235 -160
  10. package/dist/cjs/feature-list.cjs.entry.js +2 -2
  11. package/dist/cjs/{index.es-6387d8fb.js → index.es-2518dd41.js} +36 -47
  12. package/dist/cjs/loader.cjs.js +1 -1
  13. package/dist/cjs/map-select-tools_3.cjs.entry.js +1 -1
  14. package/dist/cjs/{popupUtils-c38f840d.js → popupUtils-24306e6b.js} +1 -1
  15. package/dist/cjs/public-notification.cjs.entry.js +1 -1
  16. package/dist/cjs/solution-contents_3.cjs.entry.js +1 -1
  17. package/dist/cjs/solution-item-accordion.cjs.entry.js +233 -0
  18. package/dist/cjs/solution-item-icon.cjs.entry.js +328 -0
  19. package/dist/cjs/solutions-components.cjs.js +1 -1
  20. package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
  21. package/dist/collection/assets/t9n/solution-item-accordion/resources.json +3 -0
  22. package/dist/collection/assets/t9n/solution-item-accordion/resources_en.json +3 -0
  23. package/dist/collection/collection-manifest.json +1 -0
  24. package/dist/collection/components/crowdsource-manager/crowdsource-manager.css +4 -0
  25. package/dist/collection/components/crowdsource-manager/crowdsource-manager.js +2 -1
  26. package/dist/collection/components/layer-table/layer-table.js +3 -3
  27. package/dist/collection/components/map-layer-picker/map-layer-picker.js +17 -2
  28. package/dist/collection/components/map-picker/map-picker.js +1 -1
  29. package/dist/collection/components/solution-item-accordion/solution-item-accordion.css +23 -0
  30. package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +287 -0
  31. package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
  32. package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
  33. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
  34. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
  35. package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
  36. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
  37. package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
  38. package/dist/collection/components/solution-variables/solution-variables.js +1 -1
  39. package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
  40. package/dist/collection/demos/solution-item-accordion.html +345 -0
  41. package/dist/collection/utils/interfaces.ts +11 -0
  42. package/dist/{esm/calcite-accordion-item.entry.js → components/accordion-item.js} +47 -16
  43. package/dist/{esm/calcite-accordion.entry.js → components/accordion.js} +36 -10
  44. package/dist/components/calcite-accordion-item.js +1 -222
  45. package/dist/components/calcite-accordion.js +1 -110
  46. package/dist/components/crowdsource-manager.js +3 -2
  47. package/dist/components/downloadUtils.js +234 -159
  48. package/dist/components/index.es.js +35 -46
  49. package/dist/components/layer-table2.js +3 -3
  50. package/dist/components/map-layer-picker2.js +17 -2
  51. package/dist/components/map-picker2.js +1 -1
  52. package/dist/components/solution-item-accordion.d.ts +11 -0
  53. package/dist/components/solution-item-accordion.js +336 -0
  54. package/dist/components/solution-item-details2.js +1 -1
  55. package/dist/components/solution-item-icon2.js +1 -1
  56. package/dist/components/solution-item-sharing2.js +1 -1
  57. package/dist/components/solution-organization-variables2.js +1 -1
  58. package/dist/components/solution-resource-item2.js +1 -1
  59. package/dist/components/solution-spatial-ref2.js +1 -1
  60. package/dist/components/solution-template-data2.js +1 -1
  61. package/dist/components/solution-variables2.js +1 -1
  62. package/dist/components/spatial-ref.js +1 -1
  63. package/dist/esm/{ExpandToggle-b5147279.js → ExpandToggle-9289b7ca.js} +1 -1
  64. package/dist/esm/{ar-e0e64e78.js → ar-8dded5d5.js} +8 -8
  65. package/dist/esm/basemap-gallery_7.entry.js +1 -1
  66. package/dist/esm/{bg-d2d8dbe0.js → bg-c1cdf619.js} +8 -8
  67. package/dist/esm/{bs-d883901d.js → bs-a40506a4.js} +8 -8
  68. package/dist/esm/buffer-tools_3.entry.js +1 -1
  69. package/dist/esm/{ca-064729ad.js → ca-67879a0c.js} +8 -8
  70. package/dist/esm/calcite-accordion_2.entry.js +279 -0
  71. package/dist/esm/calcite-action-bar.entry.js +4 -4
  72. package/dist/esm/calcite-action-group.entry.js +3 -3
  73. package/dist/esm/calcite-action-menu_2.entry.js +3 -3
  74. package/dist/esm/calcite-action-pad_2.entry.js +4 -4
  75. package/dist/esm/calcite-action_2.entry.js +6 -6
  76. package/dist/esm/calcite-alert_5.entry.js +6 -6
  77. package/dist/esm/calcite-avatar.entry.js +1 -1
  78. package/dist/esm/calcite-block-section.entry.js +3 -3
  79. package/dist/esm/calcite-block_5.entry.js +9 -9
  80. package/dist/esm/calcite-button.entry.js +5 -5
  81. package/dist/esm/calcite-card-group.entry.js +1 -1
  82. package/dist/esm/calcite-card.entry.js +3 -3
  83. package/dist/esm/calcite-carousel.entry.js +3 -3
  84. package/dist/esm/calcite-checkbox.entry.js +3 -3
  85. package/dist/esm/calcite-chip-group.entry.js +1 -1
  86. package/dist/esm/calcite-chip_2.entry.js +4 -4
  87. package/dist/esm/calcite-color-picker-hex-input_2.entry.js +1 -1
  88. package/dist/esm/calcite-color-picker.entry.js +3 -3
  89. package/dist/esm/calcite-combobox-item-group.entry.js +2 -2
  90. package/dist/esm/calcite-combobox_3.entry.js +25 -10
  91. package/dist/esm/calcite-date-picker-day_3.entry.js +3 -3
  92. package/dist/esm/calcite-dialog.entry.js +5 -5
  93. package/dist/esm/calcite-dropdown_2.entry.js +3 -3
  94. package/dist/esm/calcite-fab.entry.js +1 -1
  95. package/dist/esm/calcite-filter_5.entry.js +3 -3
  96. package/dist/esm/calcite-graph_2.entry.js +4 -4
  97. package/dist/esm/calcite-icon_2.entry.js +2 -2
  98. package/dist/esm/calcite-inline-editable.entry.js +4 -4
  99. package/dist/esm/calcite-input-number.entry.js +5 -5
  100. package/dist/esm/calcite-input-text.entry.js +5 -5
  101. package/dist/esm/{calcite-input-time-picker-66e7a9f3.js → calcite-input-time-picker-37845feb.js} +56 -56
  102. package/dist/esm/calcite-input-time-picker.entry.js +8 -8
  103. package/dist/esm/calcite-input-time-zone.entry.js +5 -5
  104. package/dist/esm/calcite-input_2.entry.js +5 -5
  105. package/dist/esm/calcite-label.entry.js +2 -2
  106. package/dist/esm/calcite-link.entry.js +1 -1
  107. package/dist/esm/calcite-menu-item.entry.js +3 -3
  108. package/dist/esm/calcite-menu.entry.js +3 -3
  109. package/dist/esm/calcite-meter.entry.js +3 -3
  110. package/dist/esm/calcite-modal_3.entry.js +5 -5
  111. package/dist/esm/calcite-navigation.entry.js +1 -1
  112. package/dist/esm/calcite-notice.entry.js +4 -4
  113. package/dist/esm/calcite-option_2.entry.js +3 -3
  114. package/dist/esm/calcite-pagination.entry.js +3 -3
  115. package/dist/esm/calcite-pick-list-group.entry.js +1 -1
  116. package/dist/esm/calcite-pick-list-item.entry.js +3 -3
  117. package/dist/esm/calcite-pick-list.entry.js +2 -2
  118. package/dist/esm/calcite-radio-button-group.entry.js +1 -1
  119. package/dist/esm/calcite-radio-button.entry.js +3 -3
  120. package/dist/esm/calcite-rating.entry.js +5 -5
  121. package/dist/esm/calcite-scrim.entry.js +3 -3
  122. package/dist/esm/calcite-segmented-control_2.entry.js +3 -3
  123. package/dist/esm/calcite-sheet.entry.js +3 -3
  124. package/dist/esm/calcite-shell-center-row.entry.js +1 -1
  125. package/dist/esm/calcite-shell-panel_14.entry.js +10 -10
  126. package/dist/esm/calcite-sortable-list.entry.js +1 -1
  127. package/dist/esm/calcite-stepper-item.entry.js +3 -3
  128. package/dist/esm/calcite-stepper.entry.js +3 -3
  129. package/dist/esm/calcite-switch.entry.js +3 -3
  130. package/dist/esm/calcite-table-cell_2.entry.js +3 -3
  131. package/dist/esm/calcite-table-row.entry.js +1 -1
  132. package/dist/esm/calcite-table.entry.js +3 -3
  133. package/dist/esm/calcite-text-area.entry.js +5 -5
  134. package/dist/esm/calcite-tile-group.entry.js +1 -1
  135. package/dist/esm/calcite-tile.entry.js +1 -1
  136. package/dist/esm/calcite-time-picker.entry.js +4 -4
  137. package/dist/esm/calcite-tip-manager.entry.js +3 -3
  138. package/dist/esm/calcite-tip.entry.js +3 -3
  139. package/dist/esm/calcite-tooltip.entry.js +3 -3
  140. package/dist/esm/{calcite-tree_3.entry.js → calcite-tree_2.entry.js} +3 -319
  141. package/dist/esm/card-manager_3.entry.js +4 -4
  142. package/dist/esm/crowdsource-manager.entry.js +3 -2
  143. package/dist/esm/{cs-3751e560.js → cs-b01aecfc.js} +8 -8
  144. package/dist/esm/{da-227f8ad5.js → da-87ac64be.js} +8 -8
  145. package/dist/esm/{date-87a67cb4.js → date-7a1345c1.js} +1 -1
  146. package/dist/esm/{de-a5d2b25b.js → de-0eb6c065.js} +8 -8
  147. package/dist/esm/{de-at-66232b80.js → de-at-2db1a5d5.js} +8 -8
  148. package/dist/esm/{de-ch-1264ed4c.js → de-ch-063c0a6b.js} +8 -8
  149. package/dist/esm/{dom-63d2d41c.js → dom-451ed293.js} +1 -1
  150. package/dist/esm/{downloadUtils-d1f791c5.js → downloadUtils-4a34c86a.js} +235 -160
  151. package/dist/esm/{el-f5bf7ca3.js → el-eb29e645.js} +8 -8
  152. package/dist/esm/{en-au-2ac8f62e.js → en-au-00f884ad.js} +8 -8
  153. package/dist/esm/{en-ca-a1602b49.js → en-ca-1e7456d7.js} +8 -8
  154. package/dist/esm/{en-gb-28354b2e.js → en-gb-60a33692.js} +8 -8
  155. package/dist/esm/{es-feb7aad2.js → es-74f8b164.js} +8 -8
  156. package/dist/esm/{es-mx-5d64f899.js → es-mx-2bfa704a.js} +8 -8
  157. package/dist/esm/{et-173d2f49.js → et-b1a2d978.js} +8 -8
  158. package/dist/esm/feature-list.entry.js +2 -2
  159. package/dist/esm/{fi-ff9bb719.js → fi-70441d5b.js} +8 -8
  160. package/dist/esm/{floating-ui-c7ae81d9.js → floating-ui-4b1f5138.js} +1 -1
  161. package/dist/esm/{focusTrapComponent-833b1234.js → focusTrapComponent-b9709e71.js} +1 -1
  162. package/dist/esm/{form-08e1bcb7.js → form-fa4c471b.js} +1 -1
  163. package/dist/esm/{fr-e3af6835.js → fr-cea05ec9.js} +8 -8
  164. package/dist/esm/{fr-ch-491f1abe.js → fr-ch-8faa2fcf.js} +8 -8
  165. package/dist/esm/{he-47aa8dde.js → he-058ece46.js} +8 -8
  166. package/dist/esm/{hi-1700df3e.js → hi-163a268e.js} +8 -8
  167. package/dist/esm/{hr-68b828f5.js → hr-2b69b2ad.js} +8 -8
  168. package/dist/esm/{hu-df6a8f29.js → hu-e46e0cb6.js} +8 -8
  169. package/dist/esm/{id-8091582d.js → id-ebccdbbb.js} +8 -8
  170. package/dist/esm/{index.es-decad494.js → index.es-5f44061b.js} +36 -47
  171. package/dist/esm/{it-1f5e149d.js → it-813be6d0.js} +8 -8
  172. package/dist/esm/{it-ch-bf7fcac6.js → it-ch-bc95119e.js} +8 -8
  173. package/dist/esm/{ja-a5117166.js → ja-3488d28c.js} +8 -8
  174. package/dist/esm/{ko-9d7a9e79.js → ko-54faa268.js} +8 -8
  175. package/dist/esm/{label-4c4e06d6.js → label-414f1003.js} +1 -1
  176. package/dist/esm/loader.js +1 -1
  177. package/dist/esm/{locale-4441c976.js → locale-337dc231.js} +1 -1
  178. package/dist/esm/{lt-2e1c53de.js → lt-8c773940.js} +8 -8
  179. package/dist/esm/{lv-ca1ba866.js → lv-4882a326.js} +8 -8
  180. package/dist/esm/map-select-tools_3.entry.js +1 -1
  181. package/dist/esm/{mk-421d0d41.js → mk-d045a827.js} +8 -8
  182. package/dist/esm/{nb-5b103e32.js → nb-529fd6f8.js} +8 -8
  183. package/dist/esm/{nl-eac33461.js → nl-ebd398ac.js} +8 -8
  184. package/dist/esm/{openCloseComponent-c8c8645b.js → openCloseComponent-80c6ee4b.js} +1 -1
  185. package/dist/esm/{pl-03531ccb.js → pl-4cd334ed.js} +8 -8
  186. package/dist/esm/{popupUtils-4e0a103f.js → popupUtils-3ccb86bd.js} +1 -1
  187. package/dist/esm/{pt-b5d8bffc.js → pt-be0c86a5.js} +8 -8
  188. package/dist/esm/{pt-br-dee45728.js → pt-br-29226fc3.js} +8 -8
  189. package/dist/esm/public-notification.entry.js +1 -1
  190. package/dist/esm/{ro-df6cb584.js → ro-6555f5dd.js} +8 -8
  191. package/dist/esm/{ru-e7c02faa.js → ru-67b5c59c.js} +8 -8
  192. package/dist/esm/{shared-list-render-cadae2eb.js → shared-list-render-c8da5fde.js} +1 -1
  193. package/dist/esm/{sk-cae387d2.js → sk-81f19081.js} +8 -8
  194. package/dist/esm/{sl-2892ad87.js → sl-4b892d99.js} +8 -8
  195. package/dist/esm/solution-contents_3.entry.js +1 -1
  196. package/dist/esm/solution-item-accordion.entry.js +229 -0
  197. package/dist/esm/solution-item-icon.entry.js +324 -0
  198. package/dist/esm/solutions-components.js +1 -1
  199. package/dist/esm/spatial-ref.entry.js +1 -1
  200. package/dist/esm/{sr-11e6839f.js → sr-6cb6f797.js} +8 -8
  201. package/dist/esm/{sv-fd5c6ca5.js → sv-aacab364.js} +8 -8
  202. package/dist/esm/{t9n-b7ea1a61.js → t9n-7d4462c0.js} +1 -1
  203. package/dist/esm/{th-170cf6b1.js → th-6b423678.js} +8 -8
  204. package/dist/esm/{time-a7f1020b.js → time-b0bba3f9.js} +1 -1
  205. package/dist/esm/{tr-1d6ca382.js → tr-0e2b854e.js} +8 -8
  206. package/dist/esm/{uk-35eec84e.js → uk-af0a30cc.js} +8 -8
  207. package/dist/esm/{utils-62514064.js → utils-37bc2853.js} +1 -1
  208. package/dist/esm/{vi-2713ee26.js → vi-62071c6f.js} +8 -8
  209. package/dist/esm/{zh-cn-ed066014.js → zh-cn-8f53db2f.js} +8 -8
  210. package/dist/esm/{zh-hk-a118dced.js → zh-hk-a8c68b9c.js} +8 -8
  211. package/dist/esm/{zh-tw-c9bbf220.js → zh-tw-3006115d.js} +8 -8
  212. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources.json +3 -0
  213. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_en.json +3 -0
  214. package/dist/solutions-components/demos/solution-item-accordion.html +345 -0
  215. package/dist/solutions-components/{p-02ea30d1.entry.js → p-00cfce5b.entry.js} +1 -1
  216. package/dist/solutions-components/{p-ac11cf8f.entry.js → p-01510268.entry.js} +1 -1
  217. package/dist/solutions-components/{p-cd5a9034.entry.js → p-030e5077.entry.js} +1 -1
  218. package/dist/solutions-components/{p-de3ee7a6.entry.js → p-075a3c9d.entry.js} +1 -1
  219. package/dist/solutions-components/{p-267ef1b8.entry.js → p-0bd7752a.entry.js} +1 -1
  220. package/dist/solutions-components/{p-8c6a301f.entry.js → p-109cabd8.entry.js} +2 -2
  221. package/dist/solutions-components/{p-87f928a5.entry.js → p-116927af.entry.js} +3 -3
  222. package/dist/solutions-components/{p-8da5aeea.entry.js → p-118e1989.entry.js} +1 -1
  223. package/dist/solutions-components/p-16261018.js +11 -0
  224. package/dist/solutions-components/{p-c5facecd.entry.js → p-16d721ef.entry.js} +1 -1
  225. package/dist/solutions-components/{p-f7bc99fb.entry.js → p-1794a1aa.entry.js} +3 -3
  226. package/dist/solutions-components/{p-cf9e6515.entry.js → p-19697807.entry.js} +2 -2
  227. package/dist/solutions-components/{p-25b5ffea.js → p-1a7c4e9a.js} +1 -1
  228. package/dist/solutions-components/{p-5067d77e.entry.js → p-1c5f17cb.entry.js} +1 -1
  229. package/dist/solutions-components/p-1cfc581f.js +11 -0
  230. package/dist/solutions-components/{p-d784f756.entry.js → p-20393dcf.entry.js} +1 -1
  231. package/dist/solutions-components/{p-4e7aa926.js → p-203b4081.js} +1 -1
  232. package/dist/solutions-components/p-228c3bf3.entry.js +17 -0
  233. package/dist/solutions-components/{p-e4ef6f49.js → p-24192cfe.js} +1 -1
  234. package/dist/solutions-components/{p-d75ef009.entry.js → p-25ee25ea.entry.js} +2 -2
  235. package/dist/solutions-components/{p-7b2ef872.entry.js → p-2756e4ac.entry.js} +1 -1
  236. package/dist/solutions-components/{p-691cb5f4.js → p-290dee0b.js} +2 -2
  237. package/dist/solutions-components/{p-aa68a36e.entry.js → p-2ace1fe7.entry.js} +2 -2
  238. package/dist/solutions-components/{p-8bb2c169.js → p-2afb3a2b.js} +1 -1
  239. package/dist/solutions-components/{p-95c3b305.entry.js → p-2b212cd0.entry.js} +1 -1
  240. package/dist/solutions-components/p-2c00221b.js +6 -0
  241. package/dist/solutions-components/{p-3c1ecf85.entry.js → p-2fafe489.entry.js} +1 -1
  242. package/dist/solutions-components/{p-9560a1fd.entry.js → p-30b555dc.entry.js} +1 -1
  243. package/dist/solutions-components/{p-347d9ce0.js → p-328fbcb5.js} +1 -1
  244. package/dist/solutions-components/{p-aa341d46.entry.js → p-32cf5a71.entry.js} +1 -1
  245. package/dist/solutions-components/{p-712873f0.js → p-33fe9a28.js} +1 -1
  246. package/dist/solutions-components/{p-80f49acc.js → p-35f33a32.js} +1 -1
  247. package/dist/solutions-components/p-374d0fdc.entry.js +6 -0
  248. package/dist/solutions-components/{p-fb3e0eae.js → p-3955461a.js} +1 -1
  249. package/dist/solutions-components/p-39e9ae5c.entry.js +6 -0
  250. package/dist/solutions-components/{p-54a9017c.entry.js → p-3f6d5f14.entry.js} +1 -1
  251. package/dist/solutions-components/{p-1a06bf01.js → p-3fb350ea.js} +1 -1
  252. package/dist/solutions-components/{p-a79f4c52.entry.js → p-41744516.entry.js} +1 -1
  253. package/dist/solutions-components/{p-c40b0ec5.js → p-4182a628.js} +3 -3
  254. package/dist/solutions-components/{p-304cef31.js → p-42552409.js} +3 -3
  255. package/dist/solutions-components/{p-0e851a4b.js → p-4336e44a.js} +1 -1
  256. package/dist/solutions-components/{p-c25e8c35.js → p-441f1992.js} +1 -1
  257. package/dist/solutions-components/{p-fa68f43a.entry.js → p-451b483d.entry.js} +1 -1
  258. package/dist/solutions-components/{p-9bc84681.js → p-472be784.js} +1 -1
  259. package/dist/solutions-components/p-48c58b28.js +6 -0
  260. package/dist/solutions-components/{p-ca6055a3.js → p-4993c7b1.js} +1 -1
  261. package/dist/solutions-components/{p-b8ce880d.js → p-4a35785b.js} +1 -1
  262. package/dist/solutions-components/{p-de8121a4.js → p-4d97016e.js} +1 -1
  263. package/dist/solutions-components/{p-990d8b4b.js → p-4f4f00a9.js} +1 -1
  264. package/dist/solutions-components/{p-b3e8da19.entry.js → p-50203a2d.entry.js} +1 -1
  265. package/dist/solutions-components/{p-19b466d0.js → p-546a2802.js} +1 -1
  266. package/dist/solutions-components/{p-66b01781.js → p-54fa7a94.js} +2 -2
  267. package/dist/solutions-components/{p-04294b8e.js → p-57b673e2.js} +1 -1
  268. package/dist/solutions-components/{p-c163b67f.js → p-593a6f17.js} +1 -1
  269. package/dist/solutions-components/{p-5a3cab12.entry.js → p-5c0d42e9.entry.js} +1 -1
  270. package/dist/solutions-components/{p-9fa7a7ad.entry.js → p-5cef36d6.entry.js} +1 -1
  271. package/dist/solutions-components/{p-2aa44a02.entry.js → p-5d4efa42.entry.js} +2 -2
  272. package/dist/solutions-components/{p-7fce703f.entry.js → p-5d8a5e53.entry.js} +1 -1
  273. package/dist/solutions-components/{p-793f1b14.entry.js → p-5fe92f6e.entry.js} +2 -2
  274. package/dist/solutions-components/{p-da80cfbc.entry.js → p-6384a9a5.entry.js} +1 -1
  275. package/dist/solutions-components/{p-b8f33145.js → p-6518727d.js} +1 -1
  276. package/dist/solutions-components/p-671fd156.entry.js +6 -0
  277. package/dist/solutions-components/{p-52f19286.entry.js → p-67392838.entry.js} +1 -1
  278. package/dist/solutions-components/{p-54b7e680.js → p-6e0b76ce.js} +1 -1
  279. package/dist/solutions-components/{p-1017609e.js → p-6e3f1d71.js} +2 -2
  280. package/dist/solutions-components/{p-5f7c1e49.js → p-6f39a13f.js} +1 -1
  281. package/dist/solutions-components/{p-0b6e5486.js → p-71c0a413.js} +1 -1
  282. package/dist/solutions-components/{p-fedbf657.entry.js → p-728ec094.entry.js} +1 -1
  283. package/dist/solutions-components/{p-b8b78283.entry.js → p-72d0eda0.entry.js} +1 -1
  284. package/dist/solutions-components/p-743ad3a7.entry.js +6 -0
  285. package/dist/solutions-components/{p-732bb88c.entry.js → p-78c438c0.entry.js} +1 -1
  286. package/dist/solutions-components/{p-1ef6a1c2.entry.js → p-7b63f249.entry.js} +1 -1
  287. package/dist/solutions-components/{p-91b7a7dc.entry.js → p-7f090468.entry.js} +1 -1
  288. package/dist/solutions-components/{p-770a0e12.js → p-7f31be6a.js} +1 -1
  289. package/dist/solutions-components/{p-cb07016a.entry.js → p-8419b5a1.entry.js} +2 -2
  290. package/dist/solutions-components/{p-dfeb6a2e.entry.js → p-86ca6cfe.entry.js} +1 -1
  291. package/dist/solutions-components/{p-66afdfdd.entry.js → p-8846430d.entry.js} +3 -3
  292. package/dist/solutions-components/{p-508b2b7b.js → p-89ddc916.js} +1 -1
  293. package/dist/solutions-components/{p-9db30b19.entry.js → p-89f14b8a.entry.js} +1 -1
  294. package/dist/solutions-components/{p-23dd68de.entry.js → p-8ae73529.entry.js} +2 -2
  295. package/dist/solutions-components/{p-64bf4d2e.entry.js → p-8badcaf5.entry.js} +1 -1
  296. package/dist/solutions-components/{p-eb2859d6.js → p-8eacc640.js} +1 -1
  297. package/dist/solutions-components/{p-798b9928.entry.js → p-8f840208.entry.js} +1 -1
  298. package/dist/solutions-components/{p-c7eaade6.entry.js → p-9232245b.entry.js} +1 -1
  299. package/dist/solutions-components/{p-1490c752.js → p-926664d9.js} +1 -1
  300. package/dist/solutions-components/{p-919e9de7.entry.js → p-92de7cd3.entry.js} +1 -1
  301. package/dist/solutions-components/{p-9c5f4347.js → p-96919110.js} +1 -1
  302. package/dist/solutions-components/{p-222e0445.entry.js → p-981afe9e.entry.js} +1 -1
  303. package/dist/solutions-components/{p-550da58b.js → p-9901e971.js} +1 -1
  304. package/dist/solutions-components/{p-986ff43b.entry.js → p-9957c7b8.entry.js} +1 -1
  305. package/dist/solutions-components/{p-6b0fa1eb.entry.js → p-9c6f2672.entry.js} +1 -1
  306. package/dist/solutions-components/{p-bb0f549a.js → p-a0ef9cee.js} +1 -1
  307. package/dist/solutions-components/{p-d47abf9b.entry.js → p-a16449b2.entry.js} +1 -1
  308. package/dist/solutions-components/{p-08d1cc1f.js → p-a2d4c97e.js} +2 -2
  309. package/dist/solutions-components/{p-bae65813.entry.js → p-a68f4775.entry.js} +1 -1
  310. package/dist/solutions-components/{p-79f78acc.entry.js → p-a8d4a522.entry.js} +1 -1
  311. package/dist/solutions-components/{p-6c080ac7.entry.js → p-a9f65057.entry.js} +1 -1
  312. package/dist/solutions-components/{p-40175313.entry.js → p-ab8f4820.entry.js} +2 -2
  313. package/dist/solutions-components/{p-f6f2018a.js → p-abc30e04.js} +1 -1
  314. package/dist/solutions-components/{p-c0d25be5.entry.js → p-ac7868a6.entry.js} +1 -1
  315. package/dist/solutions-components/{p-9524e5e4.js → p-acf135cc.js} +1 -1
  316. package/dist/solutions-components/{p-b96233e3.entry.js → p-af3e49d8.entry.js} +1 -1
  317. package/dist/solutions-components/p-af8a7aff.entry.js +6 -0
  318. package/dist/solutions-components/{p-924ec704.js → p-b3b042df.js} +1 -1
  319. package/dist/solutions-components/{p-8fb06a85.entry.js → p-b6b4c707.entry.js} +1 -1
  320. package/dist/solutions-components/{p-4c179300.entry.js → p-b7a49673.entry.js} +1 -1
  321. package/dist/solutions-components/{p-40f5df15.entry.js → p-b955a19b.entry.js} +1 -1
  322. package/dist/solutions-components/{p-c4953b5e.entry.js → p-b9eefee6.entry.js} +2 -2
  323. package/dist/solutions-components/p-bb9492ed.js +6 -0
  324. package/dist/solutions-components/{p-8537518d.entry.js → p-bc86c87d.entry.js} +2 -2
  325. package/dist/solutions-components/{p-8614d1a0.entry.js → p-bd3c130b.entry.js} +1 -1
  326. package/dist/solutions-components/{p-e74bc7b3.js → p-bdc425fc.js} +1 -1
  327. package/dist/solutions-components/{p-92ba99ff.js → p-beba6703.js} +1 -1
  328. package/dist/solutions-components/{p-cd6eee11.js → p-c1242d4b.js} +1 -1
  329. package/dist/solutions-components/{p-a4e35c2d.entry.js → p-c26ac7d9.entry.js} +1 -1
  330. package/dist/solutions-components/{p-b76ed1c7.entry.js → p-c3782a7e.entry.js} +2 -2
  331. package/dist/solutions-components/{p-936037e4.js → p-c5520bba.js} +1 -1
  332. package/dist/solutions-components/{p-29a09798.js → p-c58ec2d0.js} +3 -3
  333. package/dist/solutions-components/{p-53b5a39e.js → p-c5d26e3a.js} +1 -1
  334. package/dist/solutions-components/{p-a37d1b17.entry.js → p-c8325ead.entry.js} +1 -1
  335. package/dist/solutions-components/{p-94ae78d6.js → p-cba777d2.js} +1 -1
  336. package/dist/solutions-components/{p-01dae909.js → p-d1371897.js} +1 -1
  337. package/dist/solutions-components/{p-d1cc620f.entry.js → p-d6c50190.entry.js} +1 -1
  338. package/dist/solutions-components/{p-fcd33b4f.js → p-d726e895.js} +1 -1
  339. package/dist/solutions-components/{p-270ead49.js → p-d8a54947.js} +1 -1
  340. package/dist/solutions-components/{p-a85fd786.entry.js → p-da6e25cb.entry.js} +1 -1
  341. package/dist/solutions-components/{p-ee9b7fab.js → p-db2c82ad.js} +1 -1
  342. package/dist/solutions-components/{p-e0ee0556.entry.js → p-dbcfdc6d.entry.js} +1 -1
  343. package/dist/solutions-components/{p-67c34d05.entry.js → p-ddc97e93.entry.js} +1 -1
  344. package/dist/solutions-components/{p-74fbad1c.js → p-dec62e5d.js} +30 -31
  345. package/dist/solutions-components/{p-245c35ce.js → p-e013e797.js} +1 -1
  346. package/dist/solutions-components/{p-0d6b3f44.js → p-e3bb02cc.js} +1 -1
  347. package/dist/solutions-components/{p-5440c8dd.js → p-e5ec69a4.js} +1 -1
  348. package/dist/solutions-components/p-e8aa44e2.entry.js +6 -0
  349. package/dist/solutions-components/{p-49bbe45e.js → p-ea119eee.js} +1 -1
  350. package/dist/solutions-components/{p-062f4457.js → p-ec59efb8.js} +1 -1
  351. package/dist/solutions-components/{p-bc6cf10f.entry.js → p-ef360459.entry.js} +1 -1
  352. package/dist/solutions-components/{p-0dc73313.js → p-f14d11f1.js} +1 -1
  353. package/dist/solutions-components/{p-6319ca20.js → p-f4d6771a.js} +1 -1
  354. package/dist/solutions-components/{p-5f705984.js → p-f4e30ab2.js} +1 -1
  355. package/dist/solutions-components/p-f6dc7347.entry.js +6 -0
  356. package/dist/solutions-components/{p-7ae41cd8.js → p-f7680693.js} +1 -1
  357. package/dist/solutions-components/{p-9277a339.entry.js → p-faf7740b.entry.js} +1 -1
  358. package/dist/solutions-components/{p-707ee1d1.entry.js → p-fb95ec69.entry.js} +2 -2
  359. package/dist/solutions-components/{p-2264e8d5.entry.js → p-fbf86656.entry.js} +1 -1
  360. package/dist/solutions-components/{p-7c854814.js → p-fd730974.js} +2 -2
  361. package/dist/solutions-components/{p-4fe5e9c3.entry.js → p-ff96d7ee.entry.js} +3 -3
  362. package/dist/solutions-components/solutions-components.esm.js +1 -1
  363. package/dist/solutions-components/utils/interfaces.ts +11 -0
  364. package/dist/types/components/map-layer-picker/map-layer-picker.d.ts +6 -0
  365. package/dist/types/components/solution-item-accordion/solution-item-accordion.d.ts +117 -0
  366. package/dist/types/components.d.ts +23 -2
  367. package/dist/types/preact.d.ts +2 -0
  368. package/dist/types/utils/interfaces.d.ts +10 -0
  369. package/package.json +6 -6
  370. package/dist/cjs/calcite-accordion.cjs.entry.js +0 -95
  371. package/dist/solutions-components/p-2007eaa4.entry.js +0 -6
  372. package/dist/solutions-components/p-23ce9afa.entry.js +0 -11
  373. package/dist/solutions-components/p-24a813a4.entry.js +0 -6
  374. package/dist/solutions-components/p-2d17790c.js +0 -6
  375. package/dist/solutions-components/p-2e06ec97.js +0 -6
  376. package/dist/solutions-components/p-33db098c.js +0 -6
  377. package/dist/solutions-components/p-3a47fde6.entry.js +0 -11
  378. package/dist/solutions-components/p-79f5a8be.js +0 -11
  379. package/dist/solutions-components/p-a5e64f6b.entry.js +0 -6
  380. package/dist/solutions-components/p-bd2278cf.entry.js +0 -6
  381. package/dist/solutions-components/p-d36878db.js +0 -11
  382. package/dist/solutions-components/p-fd79adec.entry.js +0 -6
@@ -0,0 +1,345 @@
1
+ <html>
2
+
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
6
+ <title>Solution Item Accordion</title>
7
+ <!--
8
+ | Copyright 2024 Esri
9
+ |
10
+ | Licensed under the Apache License, Version 2.0 (the "License");
11
+ | you may not use this file except in compliance with the License.
12
+ | You may obtain a copy of the License at
13
+ |
14
+ | http://www.apache.org/licenses/LICENSE-2.0
15
+ |
16
+ | Unless required by applicable law or agreed to in writing, software
17
+ | distributed under the License is distributed on an "AS IS" BASIS,
18
+ | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ | See the License for the specific language governing permissions and
20
+ | limitations under the License.
21
+ -->
22
+ <style>
23
+ .main {
24
+ background-color: var(--calcite-color-foreground-1);
25
+ display: grid;
26
+ align-self: center;
27
+ }
28
+
29
+ .column {
30
+ min-width: 300px;
31
+ padding: 1rem;
32
+ border: 1px solid var(--calcite-color-border-2);
33
+ }
34
+ </style>
35
+
36
+ <script type="module" src="https://js.arcgis.com/calcite-components/2.12.2/calcite.esm.js"></script>
37
+ <link rel="stylesheet" type="text/css" href="https://js.arcgis.com/calcite-components/2.12.2/calcite.css" />
38
+ <link rel="stylesheet" href="../solutions-components.css" type="text/css">
39
+
40
+ <script type="module" src="../solutions-components.esm.js"></script>
41
+
42
+ <script>
43
+ function addValues() {
44
+ const demo = document.getElementById("demo");
45
+ demo.templateInfos = [
46
+ {
47
+ "id": "31758ff487e5485893234eba01c79b77",
48
+ "type": "Web Mapping Application",
49
+ "title": "Citizen Problem Reporter",
50
+ "typeKeywords": [
51
+ "JavaScript",
52
+ "Map",
53
+ "Mapping Site",
54
+ "Online Map",
55
+ "Web Map"
56
+ ],
57
+ "description": "A Crowdsource Reporter app used by the general public to submit non-emergency requests in their community."
58
+ },
59
+ {
60
+ "id": "86599d4eeabc417d99578b6a1f7ab03a",
61
+ "type": "Web Mapping Application",
62
+ "title": "Citizen Problem Manager",
63
+ "typeKeywords": [
64
+ "JavaScript",
65
+ "Map",
66
+ "Mapping Site",
67
+ "Online Map",
68
+ "Web Map"
69
+ ],
70
+ "description": "A Crowdsource Manager app used by local government personnel to triage non-emergency requests and update the status of each."
71
+ },
72
+ {
73
+ "id": "d2054e602d6146afb6a25d309e27370b",
74
+ "type": "CSV",
75
+ "title": "Request Types",
76
+ "typeKeywords": [
77
+ "CSV"
78
+ ],
79
+ "description": "A CSV used by the Citizen Problem Reporter app to define the request categories and types."
80
+ },
81
+ {
82
+ "id": "954675e532574bc4a8c7f2358ebff437",
83
+ "type": "Form",
84
+ "title": "Citizen Problem Satisfaction Survey",
85
+ "typeKeywords": [
86
+ "Form",
87
+ "Survey123",
88
+ "Survey123 Connect",
89
+ "xForm"
90
+ ],
91
+ "description": "An ArcGIS Survey123 form used by the general public to report their satisfaction regarding the service requested."
92
+ },
93
+ {
94
+ "id": "80f9f143f8fd4df8a46a8054b245e6dd",
95
+ "type": "Dashboard",
96
+ "title": "Citizen Problem Dashboard",
97
+ "typeKeywords": [
98
+ "Arcade Data Expression",
99
+ "ArcGIS Dashboards",
100
+ "Dashboard",
101
+ "Extent Filter",
102
+ "Operations Dashboard",
103
+ "Relative Date Filter"
104
+ ],
105
+ "description": "An ArcGIS Dashboards app used by local government personnel to monitor non-emergency requests and satisfaction survey responses."
106
+ },
107
+ {
108
+ "id": "4d33ef6ca616432aaa4179b091d84db9",
109
+ "type": "Hub Site Application",
110
+ "title": "Citizen Request Center",
111
+ "typeKeywords": [
112
+ "Hub",
113
+ "hubSite",
114
+ "hubSolution",
115
+ "JavaScript",
116
+ "Map",
117
+ "Mapping Site",
118
+ "Online Map",
119
+ "OpenData",
120
+ "Ready To Use",
121
+ "selfConfigured",
122
+ "Web Map",
123
+ "Registered App"
124
+ ],
125
+ "description": "An ArcGIS Hub site used by the general public to learn how they can submit a non-emergency request to help improve the community."
126
+ },
127
+ {
128
+ "id": "cc06da1fa54a45c4b2a1762df957ffcd",
129
+ "type": "Group",
130
+ "title": "Citizen Problem Reporter",
131
+ "typeKeywords": [],
132
+ "description": "A group used in the Citizen Problem Reporter app to submit nonemergency problems in their community."
133
+ },
134
+ {
135
+ "id": "e6a0f7410f524fac9e6f4ce7ce950480",
136
+ "type": "Web Map",
137
+ "title": "Citizen Problem Dashboard",
138
+ "typeKeywords": [
139
+ "ArcGIS Online",
140
+ "Collector",
141
+ "Data Editing",
142
+ "Explorer Web Map",
143
+ "Map",
144
+ "Online Map",
145
+ "useOnly",
146
+ "Web Map"
147
+ ],
148
+ "description": "A map used in the Citizen Problem Reporter Dashboard to monitor non-emergency requests."
149
+ },
150
+ {
151
+ "id": "1563c627529a4b038e32113a4f491d91",
152
+ "type": "Web Map",
153
+ "title": "Citizen Problem Survey",
154
+ "typeKeywords": [
155
+ "ArcGIS Online",
156
+ "Explorer Web Map",
157
+ "Map",
158
+ "Online Map",
159
+ "useOnly",
160
+ "Web Map"
161
+ ],
162
+ "description": "A map used in the Citizen Problem Reporter Dashboard to monitor satisfaction survey responses."
163
+ },
164
+ {
165
+ "id": "e0b46c3a56b04d3c8659dc69dd763b93",
166
+ "type": "Group",
167
+ "title": "Citizen Problem Manager",
168
+ "typeKeywords": [],
169
+ "description": "A group used in the Citizen Problem Manager app to triage non-emergency problems and requests and update the status as needed."
170
+ },
171
+ {
172
+ "id": "390746c7baf04df9bff478f9d14f4e70",
173
+ "type": "Feature Service",
174
+ "title": "Requests_public",
175
+ "typeKeywords": [
176
+ "ArcGIS Server",
177
+ "Data",
178
+ "Feature Access",
179
+ "Feature Service",
180
+ "Multilayer",
181
+ "Service",
182
+ "Hosted Service",
183
+ "View Service"
184
+ ],
185
+ "description": "A public view of non-emergency requests submitted by general public and internal staff."
186
+ },
187
+ {
188
+ "id": "bda9fcc1178b43c3af872fdb1fdaf36b",
189
+ "type": "Feature Service",
190
+ "title": "SatisfactionSurveys_public",
191
+ "typeKeywords": [
192
+ "ArcGIS Server",
193
+ "Data",
194
+ "Feature Access",
195
+ "Feature Service",
196
+ "Service",
197
+ "Singlelayer",
198
+ "Table",
199
+ "Hosted Service",
200
+ "View Service"
201
+ ],
202
+ "description": "A feature layer view used to share satisfaction survey results with the public."
203
+ },
204
+ {
205
+ "id": "28c68d4ce4a04bceba3857f4b2135f68",
206
+ "type": "Hub Page",
207
+ "title": "Manage Requests",
208
+ "typeKeywords": [
209
+ "Hub",
210
+ "hubPage",
211
+ "JavaScript",
212
+ "Map",
213
+ "Mapping Site",
214
+ "Online Map",
215
+ "OpenData",
216
+ "selfConfigured",
217
+ "Web Map"
218
+ ],
219
+ "description": "An ArcGIS Hub Page used by local government personnel to triage and monitor the response to non-emergency problems and requests in the community."
220
+ },
221
+ {
222
+ "id": "e60b649516fd411ba21538dca263ecca",
223
+ "type": "Feature Service",
224
+ "title": "SatisfactionSurveys_submit",
225
+ "typeKeywords": [
226
+ "ArcGIS Server",
227
+ "Data",
228
+ "Feature Access",
229
+ "Feature Service",
230
+ "Public Data Collection",
231
+ "Service",
232
+ "Singlelayer",
233
+ "Table",
234
+ "Hosted Service",
235
+ "View Service"
236
+ ],
237
+ "description": "A feature layer view used by the Citizen Problem Satisfaction Survey form to submit satisfaction survey responses."
238
+ },
239
+ {
240
+ "id": "3d0cd75e700a4eda962663d2da393940",
241
+ "type": "Web Map",
242
+ "title": "Citizen Problem Reporter",
243
+ "typeKeywords": [
244
+ "ArcGIS Online",
245
+ "Collector",
246
+ "Data Editing",
247
+ "Explorer Web Map",
248
+ "Map",
249
+ "Online Map",
250
+ "useOnly",
251
+ "Web Map"
252
+ ],
253
+ "description": "A map used in the Citizen Problem Reporter app to submit non-emergency requests in the community."
254
+ },
255
+ {
256
+ "id": "757ab315deb140789c717d4c390f5f29",
257
+ "type": "Feature Service",
258
+ "title": "Requests_reporter",
259
+ "typeKeywords": [
260
+ "ArcGIS Server",
261
+ "Data",
262
+ "Feature Access",
263
+ "Feature Service",
264
+ "Multilayer",
265
+ "Public Data Collection",
266
+ "Service",
267
+ "Hosted Service",
268
+ "View Service"
269
+ ],
270
+ "description": "A feature layer view used by the Citizen Problem Reporter app to submit non-emergency problems and requests in the community."
271
+ },
272
+ {
273
+ "id": "9daf5761f0974c2ba20afa6e8c386d0e",
274
+ "type": "Feature Service",
275
+ "title": "Requests",
276
+ "typeKeywords": [
277
+ "ArcGIS Server",
278
+ "Data",
279
+ "Feature Access",
280
+ "Feature Service",
281
+ "Metadata",
282
+ "Multilayer",
283
+ "Service",
284
+ "Hosted Service"
285
+ ],
286
+ "description": "Non-emergency requests submitted by general public and internal staff."
287
+ },
288
+ {
289
+ "id": "9f308af70d084b949dff7a79910e6a93",
290
+ "type": "Web Map",
291
+ "title": "Citizen Problem Manager",
292
+ "typeKeywords": [
293
+ "ArcGIS Online",
294
+ "Collector",
295
+ "Data Editing",
296
+ "Explorer Web Map",
297
+ "Map",
298
+ "Online Map",
299
+ "useOnly",
300
+ "Web Map"
301
+ ],
302
+ "description": "A map used in the Citizen Problem Manager app to triage non-emergency requests and update the status of each"
303
+ },
304
+ {
305
+ "id": "da70a4d1ebf7488bbf75dcf681f218b5",
306
+ "type": "Feature Service",
307
+ "title": "Requests_survey",
308
+ "typeKeywords": [
309
+ "ArcGIS Server",
310
+ "Data",
311
+ "Feature Access",
312
+ "Feature Service",
313
+ "Multi Services View",
314
+ "Service",
315
+ "Singlelayer",
316
+ "Hosted Service",
317
+ "View Service"
318
+ ],
319
+ "description": "A feature layer view used to monitor survey results reported by general public through Citizen Problem Satisfaction Survey."
320
+ },
321
+ {
322
+ "id": "20ba141f80384ff1ad797002e2d4cb90",
323
+ "type": "Feature Service",
324
+ "title": "SatisfactionSurveys",
325
+ "typeKeywords": [
326
+ "ArcGIS Server",
327
+ "Data",
328
+ "Feature Access",
329
+ "Feature Service",
330
+ "Metadata",
331
+ "Service",
332
+ "Hosted Service"
333
+ ],
334
+ "description": "Satisfaction survey responses submitted by general public."
335
+ }
336
+ ];
337
+ }
338
+ </script>
339
+ </head>
340
+
341
+ <body onload="addValues()">
342
+ <solution-item-accordion id="demo" class="main column"></solution-item-accordion>
343
+ </body>
344
+
345
+ </html>
@@ -3,7 +3,7 @@
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,h as a,g as s}from"./p-6eb37ed2.js";import{e as o}from"./p-c25e8c35.js";import{c as e,u as d,d as i,I as l}from"./p-1ce2608d.js";import{s as r,a as c,c as n}from"./p-3e828614.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";
6
+ import{r as t,h as a,g as s}from"./p-6eb37ed2.js";import{d as o}from"./p-441f1992.js";import{c as e,u as d,d as i,I as l}from"./p-1ce2608d.js";import{s as r,a as c,c as n}from"./p-3e828614.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";
7
7
  /*!
8
8
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
9
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
@@ -3,7 +3,7 @@
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,h as i,g as n}from"./p-6eb37ed2.js";import{c as o,d as c,u as a,I as s}from"./p-1ce2608d.js";import{s as l,t as r}from"./p-c25e8c35.js";import{c as d,a as h,s as p}from"./p-3e828614.js";import"./p-4b9b7778.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";
6
+ import{r as e,c as t,h as i,g as n}from"./p-6eb37ed2.js";import{c as o,d as c,u as a,I as s}from"./p-1ce2608d.js";import{s as l,t as r}from"./p-441f1992.js";import{c as d,a as h,s as p}from"./p-3e828614.js";import"./p-4b9b7778.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";
7
7
  /*!
8
8
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
9
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
@@ -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 i,c as t,g as e,h as s,H as a}from"./p-6eb37ed2.js";import{a as h,l,g as n}from"./p-2058b5d9.js";import{e as o,h as r,k as c,l as d,c as p,m as b,n as g,o as f}from"./p-d572627c.js";import{a as y,e as m,f as u}from"./p-80cb7c73.js";import{s as w}from"./p-5dcec135.js";import{d as v,a as _}from"./p-74fbad1c.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-720a12c0.js";import"./p-d0d020a5.js";import"./p-7530a02f.js";import"./p-9bb44f57.js";const S=class{constructor(e){i(this,e),this.selectionSetChange=t(this,"selectionSetChange",7),this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.enabledLayerIds=[],this.enableLayerFeatures=!0,this.enableLayerFeaturesOnLoad=!1,this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.enableSketchTools=!0,this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.geometries=[],this.isUpdate=!1,this.layerViews=[],this.locale=void 0,this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionSet=void 0,this.selectionLayerIds=[],this.selectLayerView=void 0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._numSelected=0,this._searchDistanceEnabled=!1,this._searchTerm=void 0,this._selectionLoading=!1,this._translations=void 0,this._useLayerFeaturesEnabled=!1}get el(){return e(this)}_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(i,t){if(i!==t){const t=0===i.length;if(await this._clearResults(t,t),i.length>0)return this._highlightWithOIDsOrGeoms()}}async mapViewWatchHandler(i,t){i&&i!==t&&await this._init()}async watchSearchConfigurationHandler(i,t){JSON.stringify(i)!==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(i){this.searchConfiguration=i.detail}async distanceChanged(i){await this._distanceChanged(i.detail)}async unitChanged(i){i.detail.newValue!==i.detail.oldValue&&(this._unit=i.detail.newValue,await this._updateLabel())}async componentWillLoad(){await this._getTranslations(),await this._initModules()}async componentDidLoad(){await this._init()}render(){const i=this.enableSketchTools?"":"display-none",t=this.enableSketchTools?"padding-top-1":"";return s(a,{key:"6753158d00a33dd5dfbb1f22cc27388baf4c0b5e"},this._getMapLayerPicker(),s("div",{key:"082c6be48d3dfbe2e39be2c462959c7772a91d40",class:"border-bottom"}),s("div",{key:"0e8133a809b05bef34c2f19adeff43c1e57cc002",class:"padding-top-sides-1"},s("div",{key:"4434b5b4d073f3ba9a7e44b82078b9b81733025b",class:"search-widget",ref:i=>{this._searchElement=i}}),s("div",{key:"6f01e27e06ea365de6ff98df3f9edd973d87117c",class:t},s("map-draw-tools",{key:"24ffe562d080955f2aacfd080c0baa1997f8eaab",active:!0,class:i,editGraphicsEnabled:!this._useLayerFeaturesEnabled,graphics:this._graphics,mapView:this.mapView,onSketchGraphicsChange:i=>{this._sketchGraphicsChanged(i)},pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,ref:i=>{this._drawTools=i}})),this.enableSearchDistance?this._getBufferOptions():void 0,this.enableLayerFeatures?this._getUseLayerFeaturesOptions():void 0,this._getNumSelected()),s("div",{key:"4c7cf401b5bcc7e4adef34e140d22676fce8ebbc",class:"border-bottom"}),this._getNameInput())}_getBufferOptions(){this.enableSearchDistanceOnLoad&&(this._searchDistanceEnabled=!0,this.enableSearchDistanceOnLoad=!1);const i=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:i},s("buffer-tools",{disabled:!this._searchDistanceEnabled,distance:t,geometries:this.geometries,onBufferComplete:i=>{this._bufferComplete(i)},ref:i=>this._bufferTools=i,unit:this.selectionSet?.unit||this.defaultBufferUnit})))}_getUseLayerFeaturesOptions(){this.enableLayerFeaturesOnLoad&&(this._useLayerFeaturesEnabled=!0,this.enableLayerFeaturesOnLoad=!1);const i=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:i+" padding-top-1"},s("map-layer-picker",{enabledLayerIds:this.selectionLayerIds,mapView:this.mapView,onLayerSelectionChange:i=>{this._layerSelectionChange(i)},selectedIds:this.layerViews.map((i=>i.layer.id)),showTables:!1})))}_getNumSelected(){const i=h(this.el),t=i&&"en"===i?`${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:i=>{this._labelName=i},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,mapView:this.mapView,onLayerSelectionChange:i=>{this._inputLayerSelectionChange(i)},selectedIds:this.selectLayerView?[this.selectLayerView.layer.id]:this.selectionSet?[this.selectionSet.layerView.layer.id]:[],showTables:!1})))}async _initModules(){const[i,t,e,s,a,h]=await l(["esri/request","esri/layers/GraphicsLayer","esri/Graphic","esri/widgets/Search","esri/geometry/geometryEngine","esri/layers/FeatureLayer"]);this._esriRequest=i,this.GraphicsLayer=t,this.Graphic=e,this.Search=s,this._geometryEngine=a,this.FeatureLayer=h}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((i=>new this.Graphic({geometry:i,symbol:"point"===i.type?this.sketchPointSymbol:"polyline"===i.type?this.sketchLineSymbol:this.sketchPolygonSymbol}))),this._selectionLabel=this.selectionSet?.label,this._useLayerFeaturesEnabled||await(this._drawTools?.updateGraphics()),await o(this.selectionSet.selectedIds,this.selectionSet.layerView,this.mapView,!1))}async _initSearchWidget(){if(this.mapView&&this._searchElement){const i=this._getSearchConfig(this.searchConfiguration,this.mapView),t={view:this.mapView,container:this._searchElement,searchTerm:this._searchTerm,...i};this._searchWidget=new this.Search(t),this._searchWidget.popupEnabled=!1,this._searchWidget.resultGraphicEnabled=!1,this._searchWidget.on("search-clear",(()=>{const i=this._searchClearLabel();this._clearResults(!1,i)})),this._searchWidget.on("select-result",(i=>{this._selectResult(i.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(i){if(i){this._searchResult=i;const t=i.feature,e=t?.layer,s=this.selectLayerView.layer,a=t?.getObjectId();let h,l;e.sourceJSON?.isView&&(h=await this._getViewSourceUrl(e.url)),s.sourceJSON?.isView&&(l=await this._getViewSourceUrl(s.url));const n=e?.url?.toLowerCase(),o=h?.toLowerCase(),r=s?.url?.toLowerCase(),c=l?.toLowerCase(),d=n&&r&&(n===r||n===c||o===r||o===c)&&!isNaN(a),p=d?[a]:void 0;this._workflowType=y.SEARCH,this._updateLabel();const b=[i.feature];this._updateSelection(b,d,p),this._drawTools.graphics=b,this._searchWidget.resultGraphic.visible=!1}else{const i=this._searchClearLabel();this._clearResults(!1,i)}}async _getViewSourceUrl(i){let t="";const e=`${i}/sources?f=json`;try{const i=await this._esriRequest(e,{query:{f:"json"}});1===i?.data?.services?.length&&(t=i.data.services[0].url)}catch(i){console.log(i)}return t}_searchClearLabel(){return this._searchResult?.name&&this._labelName.value.indexOf(this._searchResult.name)>-1}_getSearchConfig(i,t){const e=i?.sources;return e?.length>0?(i={...i,includeDefaultSources:!1},e.forEach((i=>{if(i.hasOwnProperty("layer")){const e=i,s=e.layer?.id,a=s?t.map.findLayerById(s):null,h=e?.layer?.url;a?e.layer=a:h&&(e.layer=new this.FeatureLayer(h))}})),e?.forEach((i=>{if(i.hasOwnProperty("locator")){const t=i;"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}}))):i={...i,includeDefaultSources:!0},i}_initGraphicsLayer(){const i=this._translations.bufferLayer;if(this.mapView){const t=this.mapView.map.layers.findIndex((t=>t.title===i));if(t>-1)this._bufferGraphicsLayer=this.mapView.map.layers.getItemAt(t);else{this._bufferGraphicsLayer=new this.GraphicsLayer({title:i,listMode:"hide"}),w.managedLayers[i]="buffer";const t=this.mapView.map.layers.findIndex((i=>i.title===this._translations.sketchLayer));t>-1?this.mapView.map.layers.add(this._bufferGraphicsLayer,t):this.mapView.map.layers.add(this._bufferGraphicsLayer)}}}async _sketchGraphicsChanged(i,t=!1){const e=i.detail.graphics;if(e.length>0&&e[0])if(t||(this._sketchGraphic=e[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 i=Array.isArray(e)?e.map((i=>i.geometry)):this.geometries;await this._selectLayerFeatures(i[0])}else{const t=e.reduce(((i,t)=>(t?.layer?.objectIdField?i.push(t.attributes[t.layer.objectIdField]):t.getObjectId&&i.push(t.getObjectId()),i)),[]),s=i.detail.useOIDs&&t.length>0;this._updateSelection(e,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(i){w.removeHandles(),i.length>0&&w.highlightHandles.push(await r(i,this.selectLayerView,this.mapView)),this._numSelected=i.length,this.selectionSetChange.emit(i.length)}async _selectFeatures(i){this._selectionLoading=!0,this._selectedIds=await c(i,this.selectLayerView.layer),this._selectionLoading=!1,this._drawTools.graphics=this._graphics,await this._highlightFeatures(this._selectedIds)}async _bufferComplete(i){this._bufferGeometry=Array.isArray(i.detail)?i.detail[0]:i.detail;let t=this._bufferTools.distance,e=0;if(this._bufferGeometry){const i=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(i),await this._selectFeatures([this._bufferGeometry]),await this.mapView.goTo(i.geometry.extent),e=t,t=0}else this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),await this._highlightWithOIDsOrGeoms();await this._distanceChanged({oldValue:t,newValue:e})}_geomQuery(i){const t=d(i,this._geometryEngine);return this._selectFeatures(t)}async _clearResults(i=!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(),i&&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(i,t,e){this._selectedIds=t&&e?e:this._selectedIds,this._skipGeomOIDs=t?e:void 0,this.geometries=Array.isArray(i)?i.map((i=>i.geometry)):this.geometries,this._graphics=i}async _updateLabel(){if(this.enableSearchDistance){const i=this._selectionLabel.indexOf(this._translations.sketch)>-1,t=this._selectionLabel.indexOf(this._translations.select)>-1,e=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,h=await this._bufferTools.getTranslatedUnit(a),l=isNaN(this._distance)?this._bufferTools.distance:this._distance;this._selectionLabel=i||t||e||!this._selectionLabel?`${s} ${l} ${h}`:this._selectionLabel,this._labelName.value=this._selectionLabel}}async _layerSelectionChange(i){if(Array.isArray(i.detail)&&i.detail.length>0){const t=i.detail.map((i=>p(this.mapView,i)));return Promise.all(t).then((i=>{this.layerViews=i,this._featuresCollection={},this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}))}}async _inputLayerSelectionChange(i){const t=i?.detail?.length>0?i.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(i){i.newValue!==i.oldValue&&(this._distance=i.newValue,await this._updateLabel())}async _selectLayerFeatures(i){this._selectionLoading=!0;const t=this.layerViews.map((t=>(this._featuresCollection[t.layer.id]=[],b(0,t.layer,i,this._featuresCollection))));return Promise.all(t).then((async i=>{this._selectionLoading=!1;let t=[];i.forEach((i=>{Object.keys(i).forEach((e=>{t=t.concat(i[e])}))}));let e=!1;t.forEach((i=>{const t=i.geometry;i.symbol="point"===t.type?this.sketchPointSymbol:"polyline"===t.type?this.sketchLineSymbol:"polygon"===t.type?this.sketchPolygonSymbol:void 0,e=i?.layer?.hasOwnProperty("objectIdField")||i.hasOwnProperty("getObjectId")}));const s=this.layerViews[0].layer.url===this.selectLayerView.layer.url&&e;await this._sketchGraphicsChanged({detail:{graphics:t,useOIDs:s}},!0)}))}_useLayerFeaturesEnabledChanged(){this._useLayerFeaturesEnabled=!this._useLayerFeaturesEnabled,this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}async _getTranslations(){const i=await n(this.el);this._translations=i[0]}static get watchers(){return{geometries:["watchGeometriesHandler"],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){i(this,t),this.defaultNumLabelsPerPage=void 0,this.disabled=!1,this._translations=void 0}get el(){return e(this)}_labelInfoElement;_intl;async downloadCSV(i,t,e,s=!0){return v(i,t,!0,e,s)}async downloadPDF(i,t,e=!1,s="",a=""){return _(i,t,this._labelInfoElement.selectedOption?.value,e,s,a)}async componentWillLoad(){await this._getTranslations(),await this._initModules()}render(){return s(a,{key:"ff0ad2a97a113ccfaa10d5219d93f5b07319fb33"},s("calcite-select",{key:"4675536d2732329715198c54b5c03c8748d7732a",disabled:this.disabled,label:"",ref:i=>{this._labelInfoElement=i}}))}componentDidLoad(){this._renderOptions()}async _initModules(){const[i]=await l(["esri/intl"]);this._intl=i}_getLabelSizeText(i){const t="&lrm;"+i.descriptionPDF.labelWidthDisplay+" x "+i.descriptionPDF.labelHeightDisplay+"&rlm;";return this._translations.pdfLabel.replace("{{n}}",i.descriptionPDF.labelsPerPageDisplay).replace("{{labelSize}}",t)}async _getTranslations(){const i=await n(this.el);this._translations=i[0]}_renderOptions(){(L.default||L).sort(((i,t)=>{const e=parseInt(i.descriptionPDF.labelsPerPageDisplay,10),s=parseInt(t.descriptionPDF.labelsPerPageDisplay,10);return e<s?-1:e>s?1:0})).forEach(((i,t)=>{const e=document.createElement("calcite-option");e.value=i,e.innerHTML=this._getLabelSizeText(i),this._labelInfoElement.appendChild(e),(this.defaultNumLabelsPerPage?parseInt(i.descriptionPDF.labelsPerPageDisplay,10)===this.defaultNumLabelsPerPage:0===t)&&(e.selected=!0,this._labelInfoElement.selectedOption=e)}))}};k.style=":host{display:block}";const P=class{constructor(e){i(this,e),this.selectionLoadingChange=t(this,"selectionLoadingChange",7),this.selectionSetsChanged=t(this,"selectionSetsChanged",7),this.addresseeLayer=void 0,this.enabledLayerIds=[],this.locale=void 0,this.mapView=void 0,this.selectionSets=[],this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._translations=void 0,this._selectionMode=m.ADD,this._refineLayer=void 0}get el(){return e(this)}_addEnabled=!0;_drawTools;_refineSets=[];_enabledLayerIds=[];_layerPicker;_featuresCollection={};_refineSelectionSet;selectionLoadingChange;selectionSetsChanged;async componentWillLoad(){await this._getTranslations(),this._enabledLayerIds=this._getEnabledLayerIds(),await this._setRefineSet(this._enabledLayerIds[0])}render(){return s(a,{key:"b3693694a5d007dd6add79848d1254a1ee52b8e3"},s("div",{key:"c464770d28fb981e9fba4d5cb3709684e41cbdc3",class:(this._enabledLayerIds.length>1?"display-block":"display-none")+" padding-top-sides-1"},s("div",{key:"2972637e3194c86d097a491678eb8b508bbf2fd2",class:"display-flex"},s("calcite-label",{key:"242295f4d8f2f17554b99748795a5bc1e1f05dcb",class:"font-bold width-full label-margin-0"},s("div",{key:"f2643bf44301aaa0a1d67595dac537c6bad21928",class:"display-flex"},this._translations.inputLayer,s("calcite-icon",{key:"1d068bd809b36b4aba7e3836d2fc8b33d6de5d3e",class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"refine-input-layer",scale:"s"})),s("map-layer-picker",{key:"e97947859dfa0a718595bfb54c843b6358ece94e",enabledLayerIds:this._enabledLayerIds,mapView:this.mapView,onLayerSelectionChange:i=>{this._layerSelectionChange(i)},ref:i=>{this._layerPicker=i},selectedIds:[this._refineLayer.layer.id],showTables:!1})),s("calcite-popover",{key:"e78a114a50aec427b6f6f0e4f8096447e464ba7e",closable:!0,label:"",referenceElement:"refine-input-layer"},s("span",{key:"b7abd37b2907c0ef98059fd280dd30cfa4eea2d2",class:"tooltip-message"},this._translations.inputLayerTip)))),s("div",{key:"3d5869d473e7c8068969e07619fc891268422f2b",class:"padding-1"},s("div",{key:"b89ed77287dc4ae5a6f7a7589faccbbc4da3b524",class:"padding-bottom-1"},s("calcite-segmented-control",{key:"1f0d85ab4ed9af445ff8b9bc5c7d4be80733f573",class:"w-100",width:"full"},s("calcite-segmented-control-item",{key:"229473e79f8ddc6c95ad0a09fdd3fef08c176b1e",checked:this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(m.ADD),value:m.ADD},s("span",{key:"27f7e1f70da8ae44cab4d2643d58b0bfe8e3ad6c",class:"font-weight-500"},this._translations.add)),s("calcite-segmented-control-item",{key:"b6c4199b48d7cedec36510572de7f63ee105b605",checked:!this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(m.REMOVE),value:m.REMOVE},s("span",{key:"c3047bd7b4564b171ed8cb7c7842b64e7a4677f8",class:"font-weight-500"},this._translations.remove)))),s("div",{key:"14408ec1abdbb64e4c4ccc473b3615d7036399f7"},s("map-draw-tools",{key:"fe946dc9ae433dabe45f5da695cde3daaa9e057d",active:!0,drawMode:u.REFINE,mapView:this.mapView,onDrawRedo:()=>this._redo(),onDrawUndo:()=>this._undo(),onSketchGraphicsChange:i=>this._sketchGraphicsChanged(i),pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,redoEnabled:this._refineSelectionSet?.redoStack.length>0,ref:i=>{this._drawTools=i},undoEnabled:this._refineSelectionSet?.undoStack.length>0})),s("br",{key:"a532f7b86708d6839449397841a68f2258645410"}),s("calcite-list",{key:"ef51c27c396c52c8fcb1c512957b3b2e276306e4",class:"list-border"},this._getRefineSelectionSetList())))}_layerSelectionChange(i){this._setRefineSet(i.detail[0])}_setSelectionMode(i){this._selectionMode=i}_sketchGraphicsChanged(i){const t=i.detail?.graphics[0].geometry;this._selectFeatures(t)}_getEnabledLayerIds(){return this.selectionSets.reduce(((i,t)=>{const e=t?.layerView?.layer.id;return e&&i.indexOf(e)<0?i.push(e):t.workflowType===y.REFINE&&Object.keys(t.refineInfos).forEach((t=>{i.indexOf(t)<0&&i.push(t)})),i}),[])}async _setRefineSet(i){this.selectionSets.some((t=>{if(t.workflowType===y.REFINE)return this._refineSelectionSet=t,Object.keys(t.refineInfos).indexOf(i)>-1}))||await this._initRefineSet(i,this._refineSelectionSet),this._refineLayer=this._refineSelectionSet.refineInfos[i].layerView}async _initRefineSet(i,t){const e={};e[i]={addIds:[],removeIds:[],layerView:await p(this.mapView,i)},t?t.refineInfos={...t.refineInfos,...e}:(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:e,redoStack:[],undoStack:[],sketchGraphic:void 0},this.selectionSets.push(this._refineSelectionSet))}_undo(){const i=this._refineSelectionSet.undoStack.pop();this._updateIds(i.ids,i.mode===m.ADD?m.REMOVE:m.ADD,this._refineSelectionSet.redoStack,i.layerView)}_redo(){const i=this._refineSelectionSet.redoStack.pop();this._updateIds(i.ids,i.mode===m.ADD?m.REMOVE:m.ADD,this._refineSelectionSet.undoStack,i.layerView)}_getRefineSelectionSetList(){const i=this._getTotal(this.selectionSets);let t;this.selectionSets.some((i=>{if(i.workflowType===y.REFINE)return t=i,!0}));let e=0,a=0;return Object.keys(t.refineInfos).forEach((i=>{e+=t.refineInfos[i].addIds.length,a+=t.refineInfos[i].removeIds.length})),[s("calcite-list-item",{label:this._translations.featuresAdded.replace("{{n}}",e.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}}",i.toString()),"non-interactive":!0})]}_getTotal(i){const t=g(i);return Object.keys(t).reduce(((i,e)=>i+t[e].ids.length),0)}async _getTranslations(){const i=await n(this.el);this._translations=i[0]}async _selectFeatures(i){this.selectionLoadingChange.emit(!0),this._featuresCollection[this._refineLayer?.layer.id]=[];const t=await b(0,this._refineLayer?.layer,i,this._featuresCollection);this.selectionLoadingChange.emit(!1);let e=[];Object.keys(t).forEach((i=>{i===this._refineLayer?.layer.id&&(e=e.concat(t[i]))}));const s=Array.isArray(e)?e.map((i=>i.attributes[i?.layer?.objectIdField])):[];await this._updateIds(s,this._selectionMode,this._refineSelectionSet.undoStack,this._refineLayer),this._drawTools.clear()}async _highlightFeatures(){this._clearHighlight(),w.highlightHandles=await f(this.selectionSets)}_clearHighlight(){w.removeHandles()}async _updateIds(i,t,e,s){let a=!1;const h=this._refineSelectionSet.refineInfos,l=s.layer.id,n={};n[l]={addIds:[],removeIds:[],layerView:s};const o=Object.keys(h).indexOf(l)>-1?h[l]:n[l];if(t===m.ADD)o.addIds=[...new Set([...i,...o.addIds])],o.addIds.length>0&&e.push({ids:i,mode:t,layerView:s}),o.removeIds.length>0&&(o.removeIds=o.removeIds.filter((t=>i.indexOf(t)<0)));else{const h=this.selectionSets.reduce(((t,e)=>(i.forEach((i=>{e.workflowType!==y.REFINE?e.selectedIds.indexOf(i)>-1&&t.push(i):Object.keys(e.refineInfos).some((a=>{const h=e.refineInfos[a];if(h.layerView.layer.id===s.layer.id&&h.addIds.indexOf(i)>-1)return t.push(i),!0}))})),t)),[]);o.removeIds=[...new Set([...h,...o.removeIds])],o.addIds=o.addIds.filter((i=>h.indexOf(i)<0)),o.removeIds.length>0&&e.push({ids:h,mode:t,layerView:s}),this.selectionSets=this.selectionSets.reduce(((i,t)=>(t.workflowType!==y.REFINE&&t.layerView.layer.id===s.layer.id?(t.selectedIds=t.selectedIds.filter((i=>o.removeIds.indexOf(i)<0)),t.selectedIds.length>0?i.push(t):a=!0):i.push(t),i)),[])}this._refineSelectionSet.refineInfos[l]=o,this.selectionSets=[...this.selectionSets],a&&this.selectionSetsChanged.emit(this.selectionSets),await this._highlightFeatures()}};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 i,c as t,g as e,h as s,H as a}from"./p-6eb37ed2.js";import{a as h,l,g as n}from"./p-2058b5d9.js";import{e as o,h as r,k as c,l as d,c as p,m as b,n as g,o as f}from"./p-d572627c.js";import{a as y,e as m,f as u}from"./p-80cb7c73.js";import{s as w}from"./p-5dcec135.js";import{d as v,a as _}from"./p-dec62e5d.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";import"./p-720a12c0.js";import"./p-d0d020a5.js";import"./p-7530a02f.js";import"./p-9bb44f57.js";const S=class{constructor(e){i(this,e),this.selectionSetChange=t(this,"selectionSetChange",7),this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.enabledLayerIds=[],this.enableLayerFeatures=!0,this.enableLayerFeaturesOnLoad=!1,this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.enableSketchTools=!0,this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.geometries=[],this.isUpdate=!1,this.layerViews=[],this.locale=void 0,this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionSet=void 0,this.selectionLayerIds=[],this.selectLayerView=void 0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._numSelected=0,this._searchDistanceEnabled=!1,this._searchTerm=void 0,this._selectionLoading=!1,this._translations=void 0,this._useLayerFeaturesEnabled=!1}get el(){return e(this)}_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(i,t){if(i!==t){const t=0===i.length;if(await this._clearResults(t,t),i.length>0)return this._highlightWithOIDsOrGeoms()}}async mapViewWatchHandler(i,t){i&&i!==t&&await this._init()}async watchSearchConfigurationHandler(i,t){JSON.stringify(i)!==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(i){this.searchConfiguration=i.detail}async distanceChanged(i){await this._distanceChanged(i.detail)}async unitChanged(i){i.detail.newValue!==i.detail.oldValue&&(this._unit=i.detail.newValue,await this._updateLabel())}async componentWillLoad(){await this._getTranslations(),await this._initModules()}async componentDidLoad(){await this._init()}render(){const i=this.enableSketchTools?"":"display-none",t=this.enableSketchTools?"padding-top-1":"";return s(a,{key:"6753158d00a33dd5dfbb1f22cc27388baf4c0b5e"},this._getMapLayerPicker(),s("div",{key:"082c6be48d3dfbe2e39be2c462959c7772a91d40",class:"border-bottom"}),s("div",{key:"0e8133a809b05bef34c2f19adeff43c1e57cc002",class:"padding-top-sides-1"},s("div",{key:"4434b5b4d073f3ba9a7e44b82078b9b81733025b",class:"search-widget",ref:i=>{this._searchElement=i}}),s("div",{key:"6f01e27e06ea365de6ff98df3f9edd973d87117c",class:t},s("map-draw-tools",{key:"24ffe562d080955f2aacfd080c0baa1997f8eaab",active:!0,class:i,editGraphicsEnabled:!this._useLayerFeaturesEnabled,graphics:this._graphics,mapView:this.mapView,onSketchGraphicsChange:i=>{this._sketchGraphicsChanged(i)},pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,ref:i=>{this._drawTools=i}})),this.enableSearchDistance?this._getBufferOptions():void 0,this.enableLayerFeatures?this._getUseLayerFeaturesOptions():void 0,this._getNumSelected()),s("div",{key:"4c7cf401b5bcc7e4adef34e140d22676fce8ebbc",class:"border-bottom"}),this._getNameInput())}_getBufferOptions(){this.enableSearchDistanceOnLoad&&(this._searchDistanceEnabled=!0,this.enableSearchDistanceOnLoad=!1);const i=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:i},s("buffer-tools",{disabled:!this._searchDistanceEnabled,distance:t,geometries:this.geometries,onBufferComplete:i=>{this._bufferComplete(i)},ref:i=>this._bufferTools=i,unit:this.selectionSet?.unit||this.defaultBufferUnit})))}_getUseLayerFeaturesOptions(){this.enableLayerFeaturesOnLoad&&(this._useLayerFeaturesEnabled=!0,this.enableLayerFeaturesOnLoad=!1);const i=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:i+" padding-top-1"},s("map-layer-picker",{enabledLayerIds:this.selectionLayerIds,mapView:this.mapView,onLayerSelectionChange:i=>{this._layerSelectionChange(i)},selectedIds:this.layerViews.map((i=>i.layer.id)),showTables:!1})))}_getNumSelected(){const i=h(this.el),t=i&&"en"===i?`${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:i=>{this._labelName=i},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,mapView:this.mapView,onLayerSelectionChange:i=>{this._inputLayerSelectionChange(i)},selectedIds:this.selectLayerView?[this.selectLayerView.layer.id]:this.selectionSet?[this.selectionSet.layerView.layer.id]:[],showTables:!1})))}async _initModules(){const[i,t,e,s,a,h]=await l(["esri/request","esri/layers/GraphicsLayer","esri/Graphic","esri/widgets/Search","esri/geometry/geometryEngine","esri/layers/FeatureLayer"]);this._esriRequest=i,this.GraphicsLayer=t,this.Graphic=e,this.Search=s,this._geometryEngine=a,this.FeatureLayer=h}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((i=>new this.Graphic({geometry:i,symbol:"point"===i.type?this.sketchPointSymbol:"polyline"===i.type?this.sketchLineSymbol:this.sketchPolygonSymbol}))),this._selectionLabel=this.selectionSet?.label,this._useLayerFeaturesEnabled||await(this._drawTools?.updateGraphics()),await o(this.selectionSet.selectedIds,this.selectionSet.layerView,this.mapView,!1))}async _initSearchWidget(){if(this.mapView&&this._searchElement){const i=this._getSearchConfig(this.searchConfiguration,this.mapView),t={view:this.mapView,container:this._searchElement,searchTerm:this._searchTerm,...i};this._searchWidget=new this.Search(t),this._searchWidget.popupEnabled=!1,this._searchWidget.resultGraphicEnabled=!1,this._searchWidget.on("search-clear",(()=>{const i=this._searchClearLabel();this._clearResults(!1,i)})),this._searchWidget.on("select-result",(i=>{this._selectResult(i.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(i){if(i){this._searchResult=i;const t=i.feature,e=t?.layer,s=this.selectLayerView.layer,a=t?.getObjectId();let h,l;e.sourceJSON?.isView&&(h=await this._getViewSourceUrl(e.url)),s.sourceJSON?.isView&&(l=await this._getViewSourceUrl(s.url));const n=e?.url?.toLowerCase(),o=h?.toLowerCase(),r=s?.url?.toLowerCase(),c=l?.toLowerCase(),d=n&&r&&(n===r||n===c||o===r||o===c)&&!isNaN(a),p=d?[a]:void 0;this._workflowType=y.SEARCH,this._updateLabel();const b=[i.feature];this._updateSelection(b,d,p),this._drawTools.graphics=b,this._searchWidget.resultGraphic.visible=!1}else{const i=this._searchClearLabel();this._clearResults(!1,i)}}async _getViewSourceUrl(i){let t="";const e=`${i}/sources?f=json`;try{const i=await this._esriRequest(e,{query:{f:"json"}});1===i?.data?.services?.length&&(t=i.data.services[0].url)}catch(i){console.log(i)}return t}_searchClearLabel(){return this._searchResult?.name&&this._labelName.value.indexOf(this._searchResult.name)>-1}_getSearchConfig(i,t){const e=i?.sources;return e?.length>0?(i={...i,includeDefaultSources:!1},e.forEach((i=>{if(i.hasOwnProperty("layer")){const e=i,s=e.layer?.id,a=s?t.map.findLayerById(s):null,h=e?.layer?.url;a?e.layer=a:h&&(e.layer=new this.FeatureLayer(h))}})),e?.forEach((i=>{if(i.hasOwnProperty("locator")){const t=i;"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}}))):i={...i,includeDefaultSources:!0},i}_initGraphicsLayer(){const i=this._translations.bufferLayer;if(this.mapView){const t=this.mapView.map.layers.findIndex((t=>t.title===i));if(t>-1)this._bufferGraphicsLayer=this.mapView.map.layers.getItemAt(t);else{this._bufferGraphicsLayer=new this.GraphicsLayer({title:i,listMode:"hide"}),w.managedLayers[i]="buffer";const t=this.mapView.map.layers.findIndex((i=>i.title===this._translations.sketchLayer));t>-1?this.mapView.map.layers.add(this._bufferGraphicsLayer,t):this.mapView.map.layers.add(this._bufferGraphicsLayer)}}}async _sketchGraphicsChanged(i,t=!1){const e=i.detail.graphics;if(e.length>0&&e[0])if(t||(this._sketchGraphic=e[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 i=Array.isArray(e)?e.map((i=>i.geometry)):this.geometries;await this._selectLayerFeatures(i[0])}else{const t=e.reduce(((i,t)=>(t?.layer?.objectIdField?i.push(t.attributes[t.layer.objectIdField]):t.getObjectId&&i.push(t.getObjectId()),i)),[]),s=i.detail.useOIDs&&t.length>0;this._updateSelection(e,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(i){w.removeHandles(),i.length>0&&w.highlightHandles.push(await r(i,this.selectLayerView,this.mapView)),this._numSelected=i.length,this.selectionSetChange.emit(i.length)}async _selectFeatures(i){this._selectionLoading=!0,this._selectedIds=await c(i,this.selectLayerView.layer),this._selectionLoading=!1,this._drawTools.graphics=this._graphics,await this._highlightFeatures(this._selectedIds)}async _bufferComplete(i){this._bufferGeometry=Array.isArray(i.detail)?i.detail[0]:i.detail;let t=this._bufferTools.distance,e=0;if(this._bufferGeometry){const i=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(i),await this._selectFeatures([this._bufferGeometry]),await this.mapView.goTo(i.geometry.extent),e=t,t=0}else this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),await this._highlightWithOIDsOrGeoms();await this._distanceChanged({oldValue:t,newValue:e})}_geomQuery(i){const t=d(i,this._geometryEngine);return this._selectFeatures(t)}async _clearResults(i=!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(),i&&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(i,t,e){this._selectedIds=t&&e?e:this._selectedIds,this._skipGeomOIDs=t?e:void 0,this.geometries=Array.isArray(i)?i.map((i=>i.geometry)):this.geometries,this._graphics=i}async _updateLabel(){if(this.enableSearchDistance){const i=this._selectionLabel.indexOf(this._translations.sketch)>-1,t=this._selectionLabel.indexOf(this._translations.select)>-1,e=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,h=await this._bufferTools.getTranslatedUnit(a),l=isNaN(this._distance)?this._bufferTools.distance:this._distance;this._selectionLabel=i||t||e||!this._selectionLabel?`${s} ${l} ${h}`:this._selectionLabel,this._labelName.value=this._selectionLabel}}async _layerSelectionChange(i){if(Array.isArray(i.detail)&&i.detail.length>0){const t=i.detail.map((i=>p(this.mapView,i)));return Promise.all(t).then((i=>{this.layerViews=i,this._featuresCollection={},this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}))}}async _inputLayerSelectionChange(i){const t=i?.detail?.length>0?i.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(i){i.newValue!==i.oldValue&&(this._distance=i.newValue,await this._updateLabel())}async _selectLayerFeatures(i){this._selectionLoading=!0;const t=this.layerViews.map((t=>(this._featuresCollection[t.layer.id]=[],b(0,t.layer,i,this._featuresCollection))));return Promise.all(t).then((async i=>{this._selectionLoading=!1;let t=[];i.forEach((i=>{Object.keys(i).forEach((e=>{t=t.concat(i[e])}))}));let e=!1;t.forEach((i=>{const t=i.geometry;i.symbol="point"===t.type?this.sketchPointSymbol:"polyline"===t.type?this.sketchLineSymbol:"polygon"===t.type?this.sketchPolygonSymbol:void 0,e=i?.layer?.hasOwnProperty("objectIdField")||i.hasOwnProperty("getObjectId")}));const s=this.layerViews[0].layer.url===this.selectLayerView.layer.url&&e;await this._sketchGraphicsChanged({detail:{graphics:t,useOIDs:s}},!0)}))}_useLayerFeaturesEnabledChanged(){this._useLayerFeaturesEnabled=!this._useLayerFeaturesEnabled,this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}async _getTranslations(){const i=await n(this.el);this._translations=i[0]}static get watchers(){return{geometries:["watchGeometriesHandler"],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){i(this,t),this.defaultNumLabelsPerPage=void 0,this.disabled=!1,this._translations=void 0}get el(){return e(this)}_labelInfoElement;_intl;async downloadCSV(i,t,e,s=!0){return v(i,t,!0,e,s)}async downloadPDF(i,t,e=!1,s="",a=""){return _(i,t,this._labelInfoElement.selectedOption?.value,e,s,a)}async componentWillLoad(){await this._getTranslations(),await this._initModules()}render(){return s(a,{key:"ff0ad2a97a113ccfaa10d5219d93f5b07319fb33"},s("calcite-select",{key:"4675536d2732329715198c54b5c03c8748d7732a",disabled:this.disabled,label:"",ref:i=>{this._labelInfoElement=i}}))}componentDidLoad(){this._renderOptions()}async _initModules(){const[i]=await l(["esri/intl"]);this._intl=i}_getLabelSizeText(i){const t="&lrm;"+i.descriptionPDF.labelWidthDisplay+" x "+i.descriptionPDF.labelHeightDisplay+"&rlm;";return this._translations.pdfLabel.replace("{{n}}",i.descriptionPDF.labelsPerPageDisplay).replace("{{labelSize}}",t)}async _getTranslations(){const i=await n(this.el);this._translations=i[0]}_renderOptions(){(L.default||L).sort(((i,t)=>{const e=parseInt(i.descriptionPDF.labelsPerPageDisplay,10),s=parseInt(t.descriptionPDF.labelsPerPageDisplay,10);return e<s?-1:e>s?1:0})).forEach(((i,t)=>{const e=document.createElement("calcite-option");e.value=i,e.innerHTML=this._getLabelSizeText(i),this._labelInfoElement.appendChild(e),(this.defaultNumLabelsPerPage?parseInt(i.descriptionPDF.labelsPerPageDisplay,10)===this.defaultNumLabelsPerPage:0===t)&&(e.selected=!0,this._labelInfoElement.selectedOption=e)}))}};k.style=":host{display:block}";const P=class{constructor(e){i(this,e),this.selectionLoadingChange=t(this,"selectionLoadingChange",7),this.selectionSetsChanged=t(this,"selectionSetsChanged",7),this.addresseeLayer=void 0,this.enabledLayerIds=[],this.locale=void 0,this.mapView=void 0,this.selectionSets=[],this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._translations=void 0,this._selectionMode=m.ADD,this._refineLayer=void 0}get el(){return e(this)}_addEnabled=!0;_drawTools;_refineSets=[];_enabledLayerIds=[];_layerPicker;_featuresCollection={};_refineSelectionSet;selectionLoadingChange;selectionSetsChanged;async componentWillLoad(){await this._getTranslations(),this._enabledLayerIds=this._getEnabledLayerIds(),await this._setRefineSet(this._enabledLayerIds[0])}render(){return s(a,{key:"b3693694a5d007dd6add79848d1254a1ee52b8e3"},s("div",{key:"c464770d28fb981e9fba4d5cb3709684e41cbdc3",class:(this._enabledLayerIds.length>1?"display-block":"display-none")+" padding-top-sides-1"},s("div",{key:"2972637e3194c86d097a491678eb8b508bbf2fd2",class:"display-flex"},s("calcite-label",{key:"242295f4d8f2f17554b99748795a5bc1e1f05dcb",class:"font-bold width-full label-margin-0"},s("div",{key:"f2643bf44301aaa0a1d67595dac537c6bad21928",class:"display-flex"},this._translations.inputLayer,s("calcite-icon",{key:"1d068bd809b36b4aba7e3836d2fc8b33d6de5d3e",class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"refine-input-layer",scale:"s"})),s("map-layer-picker",{key:"e97947859dfa0a718595bfb54c843b6358ece94e",enabledLayerIds:this._enabledLayerIds,mapView:this.mapView,onLayerSelectionChange:i=>{this._layerSelectionChange(i)},ref:i=>{this._layerPicker=i},selectedIds:[this._refineLayer.layer.id],showTables:!1})),s("calcite-popover",{key:"e78a114a50aec427b6f6f0e4f8096447e464ba7e",closable:!0,label:"",referenceElement:"refine-input-layer"},s("span",{key:"b7abd37b2907c0ef98059fd280dd30cfa4eea2d2",class:"tooltip-message"},this._translations.inputLayerTip)))),s("div",{key:"3d5869d473e7c8068969e07619fc891268422f2b",class:"padding-1"},s("div",{key:"b89ed77287dc4ae5a6f7a7589faccbbc4da3b524",class:"padding-bottom-1"},s("calcite-segmented-control",{key:"1f0d85ab4ed9af445ff8b9bc5c7d4be80733f573",class:"w-100",width:"full"},s("calcite-segmented-control-item",{key:"229473e79f8ddc6c95ad0a09fdd3fef08c176b1e",checked:this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(m.ADD),value:m.ADD},s("span",{key:"27f7e1f70da8ae44cab4d2643d58b0bfe8e3ad6c",class:"font-weight-500"},this._translations.add)),s("calcite-segmented-control-item",{key:"b6c4199b48d7cedec36510572de7f63ee105b605",checked:!this._addEnabled,class:"w-50 word-wrap-anywhere",onClick:()=>this._setSelectionMode(m.REMOVE),value:m.REMOVE},s("span",{key:"c3047bd7b4564b171ed8cb7c7842b64e7a4677f8",class:"font-weight-500"},this._translations.remove)))),s("div",{key:"14408ec1abdbb64e4c4ccc473b3615d7036399f7"},s("map-draw-tools",{key:"fe946dc9ae433dabe45f5da695cde3daaa9e057d",active:!0,drawMode:u.REFINE,mapView:this.mapView,onDrawRedo:()=>this._redo(),onDrawUndo:()=>this._undo(),onSketchGraphicsChange:i=>this._sketchGraphicsChanged(i),pointSymbol:this.sketchPointSymbol,polygonSymbol:this.sketchPolygonSymbol,polylineSymbol:this.sketchLineSymbol,redoEnabled:this._refineSelectionSet?.redoStack.length>0,ref:i=>{this._drawTools=i},undoEnabled:this._refineSelectionSet?.undoStack.length>0})),s("br",{key:"a532f7b86708d6839449397841a68f2258645410"}),s("calcite-list",{key:"ef51c27c396c52c8fcb1c512957b3b2e276306e4",class:"list-border"},this._getRefineSelectionSetList())))}_layerSelectionChange(i){this._setRefineSet(i.detail[0])}_setSelectionMode(i){this._selectionMode=i}_sketchGraphicsChanged(i){const t=i.detail?.graphics[0].geometry;this._selectFeatures(t)}_getEnabledLayerIds(){return this.selectionSets.reduce(((i,t)=>{const e=t?.layerView?.layer.id;return e&&i.indexOf(e)<0?i.push(e):t.workflowType===y.REFINE&&Object.keys(t.refineInfos).forEach((t=>{i.indexOf(t)<0&&i.push(t)})),i}),[])}async _setRefineSet(i){this.selectionSets.some((t=>{if(t.workflowType===y.REFINE)return this._refineSelectionSet=t,Object.keys(t.refineInfos).indexOf(i)>-1}))||await this._initRefineSet(i,this._refineSelectionSet),this._refineLayer=this._refineSelectionSet.refineInfos[i].layerView}async _initRefineSet(i,t){const e={};e[i]={addIds:[],removeIds:[],layerView:await p(this.mapView,i)},t?t.refineInfos={...t.refineInfos,...e}:(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:e,redoStack:[],undoStack:[],sketchGraphic:void 0},this.selectionSets.push(this._refineSelectionSet))}_undo(){const i=this._refineSelectionSet.undoStack.pop();this._updateIds(i.ids,i.mode===m.ADD?m.REMOVE:m.ADD,this._refineSelectionSet.redoStack,i.layerView)}_redo(){const i=this._refineSelectionSet.redoStack.pop();this._updateIds(i.ids,i.mode===m.ADD?m.REMOVE:m.ADD,this._refineSelectionSet.undoStack,i.layerView)}_getRefineSelectionSetList(){const i=this._getTotal(this.selectionSets);let t;this.selectionSets.some((i=>{if(i.workflowType===y.REFINE)return t=i,!0}));let e=0,a=0;return Object.keys(t.refineInfos).forEach((i=>{e+=t.refineInfos[i].addIds.length,a+=t.refineInfos[i].removeIds.length})),[s("calcite-list-item",{label:this._translations.featuresAdded.replace("{{n}}",e.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}}",i.toString()),"non-interactive":!0})]}_getTotal(i){const t=g(i);return Object.keys(t).reduce(((i,e)=>i+t[e].ids.length),0)}async _getTranslations(){const i=await n(this.el);this._translations=i[0]}async _selectFeatures(i){this.selectionLoadingChange.emit(!0),this._featuresCollection[this._refineLayer?.layer.id]=[];const t=await b(0,this._refineLayer?.layer,i,this._featuresCollection);this.selectionLoadingChange.emit(!1);let e=[];Object.keys(t).forEach((i=>{i===this._refineLayer?.layer.id&&(e=e.concat(t[i]))}));const s=Array.isArray(e)?e.map((i=>i.attributes[i?.layer?.objectIdField])):[];await this._updateIds(s,this._selectionMode,this._refineSelectionSet.undoStack,this._refineLayer),this._drawTools.clear()}async _highlightFeatures(){this._clearHighlight(),w.highlightHandles=await f(this.selectionSets)}_clearHighlight(){w.removeHandles()}async _updateIds(i,t,e,s){let a=!1;const h=this._refineSelectionSet.refineInfos,l=s.layer.id,n={};n[l]={addIds:[],removeIds:[],layerView:s};const o=Object.keys(h).indexOf(l)>-1?h[l]:n[l];if(t===m.ADD)o.addIds=[...new Set([...i,...o.addIds])],o.addIds.length>0&&e.push({ids:i,mode:t,layerView:s}),o.removeIds.length>0&&(o.removeIds=o.removeIds.filter((t=>i.indexOf(t)<0)));else{const h=this.selectionSets.reduce(((t,e)=>(i.forEach((i=>{e.workflowType!==y.REFINE?e.selectedIds.indexOf(i)>-1&&t.push(i):Object.keys(e.refineInfos).some((a=>{const h=e.refineInfos[a];if(h.layerView.layer.id===s.layer.id&&h.addIds.indexOf(i)>-1)return t.push(i),!0}))})),t)),[]);o.removeIds=[...new Set([...h,...o.removeIds])],o.addIds=o.addIds.filter((i=>h.indexOf(i)<0)),o.removeIds.length>0&&e.push({ids:h,mode:t,layerView:s}),this.selectionSets=this.selectionSets.reduce(((i,t)=>(t.workflowType!==y.REFINE&&t.layerView.layer.id===s.layer.id?(t.selectedIds=t.selectedIds.filter((i=>o.removeIds.indexOf(i)<0)),t.selectedIds.length>0?i.push(t):a=!0):i.push(t),i)),[])}this._refineSelectionSet.refineInfos[l]=o,this.selectionSets=[...this.selectionSets],a&&this.selectionSetsChanged.emit(this.selectionSets),await this._highlightFeatures()}};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,7 +3,7 @@
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 i,h as t,H as c,g as a}from"./p-6eb37ed2.js";import{s as n,t as s,g as l}from"./p-c25e8c35.js";import{a as o,s as r,c as d}from"./p-3e828614.js";import{u as h,c as p,d as g,s as m}from"./p-1017609e.js";import{c as b,u as v,d as u,I as x}from"./p-1ce2608d.js";import{c as f,d as k}from"./p-304cef31.js";import{i as y}from"./p-64a34d92.js";import{g as z}from"./p-27d462c0.js";import{i as w}from"./p-4b9b7778.js";import{c as C,d as j}from"./p-f8d23498.js";import{g as I}from"./p-aaa56cbf.js";import{g as S,i as L,a as H}from"./p-29a09798.js";import"./p-8bfa18b7.js";import"./p-1c249530.js";
6
+ import{r as e,c as i,h as t,H as c,g as a}from"./p-6eb37ed2.js";import{s as n,t as s,g as l}from"./p-441f1992.js";import{a as o,s as r,c as d}from"./p-3e828614.js";import{u as h,c as p,d as g,s as m}from"./p-6e3f1d71.js";import{c as b,u as v,d as u,I as x}from"./p-1ce2608d.js";import{c as f,d as k}from"./p-42552409.js";import{i as y}from"./p-64a34d92.js";import{g as z}from"./p-27d462c0.js";import{i as w}from"./p-4b9b7778.js";import{c as C,d as j}from"./p-f8d23498.js";import{g as I}from"./p-aaa56cbf.js";import{g as S,i as L,a as H}from"./p-c58ec2d0.js";import"./p-8bfa18b7.js";import"./p-1c249530.js";
7
7
  /*!
8
8
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
9
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
@@ -3,7 +3,7 @@
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 e,H as a,g as o}from"./p-6eb37ed2.js";import{c as s,d as n}from"./p-f8d23498.js";import{h as c}from"./p-c25e8c35.js";import{s as r,a as d,c as l}from"./p-3e828614.js";import{c as h,d as p}from"./p-304cef31.js";import{u,c as m,d as f,s as v}from"./p-1017609e.js";import{t as g,E as b}from"./p-08d1cc1f.js";import{c as x}from"./p-1c249530.js";import{l as y}from"./p-4cd4cb85.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-150394be.js";import"./p-fa56b7c2.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";
6
+ import{r as t,c as i,h as e,H as a,g as o}from"./p-6eb37ed2.js";import{c as s,d as n}from"./p-f8d23498.js";import{e as c}from"./p-441f1992.js";import{s as r,a as d,c as l}from"./p-3e828614.js";import{c as h,d as p}from"./p-42552409.js";import{u,c as m,d as f,s as v}from"./p-6e3f1d71.js";import{t as g,E as b}from"./p-a2d4c97e.js";import{c as x}from"./p-1c249530.js";import{l as y}from"./p-4cd4cb85.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-150394be.js";import"./p-fa56b7c2.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";
7
7
  /*!
8
8
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
9
  * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.