@esri/solutions-components 0.10.23 → 0.10.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (365) hide show
  1. package/dist/cjs/{calcite-accordion-item.cjs.entry.js → calcite-accordion_2.cjs.entry.js} +83 -1
  2. package/dist/cjs/calcite-alert_5.cjs.entry.js +2 -2
  3. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +6 -6
  4. package/dist/cjs/{calcite-tree_3.cjs.entry.js → calcite-tree_2.cjs.entry.js} +0 -317
  5. package/dist/cjs/card-manager_3.cjs.entry.js +4 -4
  6. package/dist/cjs/{downloadUtils-470f6a27.js → downloadUtils-17f08e5e.js} +235 -160
  7. package/dist/cjs/feature-list.cjs.entry.js +2 -2
  8. package/dist/cjs/{index.es-6387d8fb.js → index.es-2518dd41.js} +36 -47
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/map-select-tools_3.cjs.entry.js +1 -1
  11. package/dist/cjs/{popupUtils-c38f840d.js → popupUtils-24306e6b.js} +1 -1
  12. package/dist/cjs/public-notification.cjs.entry.js +1 -1
  13. package/dist/cjs/solution-contents_3.cjs.entry.js +1 -1
  14. package/dist/cjs/solution-item-accordion.cjs.entry.js +233 -0
  15. package/dist/cjs/solution-item-icon.cjs.entry.js +328 -0
  16. package/dist/cjs/solutions-components.cjs.js +1 -1
  17. package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
  18. package/dist/collection/assets/t9n/solution-item-accordion/resources.json +3 -0
  19. package/dist/collection/assets/t9n/solution-item-accordion/resources_en.json +3 -0
  20. package/dist/collection/collection-manifest.json +1 -0
  21. package/dist/collection/components/layer-table/layer-table.js +3 -3
  22. package/dist/collection/components/solution-item-accordion/solution-item-accordion.css +23 -0
  23. package/dist/collection/components/solution-item-accordion/solution-item-accordion.js +287 -0
  24. package/dist/collection/components/solution-item-details/solution-item-details.js +1 -1
  25. package/dist/collection/components/solution-item-icon/solution-item-icon.js +1 -1
  26. package/dist/collection/components/solution-item-sharing/solution-item-sharing.js +1 -1
  27. package/dist/collection/components/solution-organization-variables/solution-organization-variables.js +1 -1
  28. package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
  29. package/dist/collection/components/solution-spatial-ref/solution-spatial-ref.js +1 -1
  30. package/dist/collection/components/solution-template-data/solution-template-data.js +1 -1
  31. package/dist/collection/components/solution-variables/solution-variables.js +1 -1
  32. package/dist/collection/components/spatial-ref/spatial-ref.js +1 -1
  33. package/dist/collection/demos/solution-item-accordion.html +345 -0
  34. package/dist/collection/utils/interfaces.ts +11 -0
  35. package/dist/{esm/calcite-accordion-item.entry.js → components/accordion-item.js} +47 -16
  36. package/dist/{esm/calcite-accordion.entry.js → components/accordion.js} +36 -10
  37. package/dist/components/calcite-accordion-item.js +1 -222
  38. package/dist/components/calcite-accordion.js +1 -110
  39. package/dist/components/downloadUtils.js +234 -159
  40. package/dist/components/index.es.js +35 -46
  41. package/dist/components/layer-table2.js +3 -3
  42. package/dist/components/solution-item-accordion.d.ts +11 -0
  43. package/dist/components/solution-item-accordion.js +336 -0
  44. package/dist/components/solution-item-details2.js +1 -1
  45. package/dist/components/solution-item-icon2.js +1 -1
  46. package/dist/components/solution-item-sharing2.js +1 -1
  47. package/dist/components/solution-organization-variables2.js +1 -1
  48. package/dist/components/solution-resource-item2.js +1 -1
  49. package/dist/components/solution-spatial-ref2.js +1 -1
  50. package/dist/components/solution-template-data2.js +1 -1
  51. package/dist/components/solution-variables2.js +1 -1
  52. package/dist/components/spatial-ref.js +1 -1
  53. package/dist/esm/{ExpandToggle-b5147279.js → ExpandToggle-9289b7ca.js} +1 -1
  54. package/dist/esm/{ar-e0e64e78.js → ar-8dded5d5.js} +8 -8
  55. package/dist/esm/{bg-d2d8dbe0.js → bg-c1cdf619.js} +8 -8
  56. package/dist/esm/{bs-d883901d.js → bs-a40506a4.js} +8 -8
  57. package/dist/esm/buffer-tools_3.entry.js +1 -1
  58. package/dist/esm/{ca-064729ad.js → ca-67879a0c.js} +8 -8
  59. package/dist/esm/calcite-accordion_2.entry.js +279 -0
  60. package/dist/esm/calcite-action-bar.entry.js +4 -4
  61. package/dist/esm/calcite-action-group.entry.js +3 -3
  62. package/dist/esm/calcite-action-menu_2.entry.js +3 -3
  63. package/dist/esm/calcite-action-pad_2.entry.js +4 -4
  64. package/dist/esm/calcite-action_2.entry.js +6 -6
  65. package/dist/esm/calcite-alert_5.entry.js +6 -6
  66. package/dist/esm/calcite-avatar.entry.js +1 -1
  67. package/dist/esm/calcite-block-section.entry.js +3 -3
  68. package/dist/esm/calcite-block_5.entry.js +9 -9
  69. package/dist/esm/calcite-button.entry.js +5 -5
  70. package/dist/esm/calcite-card-group.entry.js +1 -1
  71. package/dist/esm/calcite-card.entry.js +3 -3
  72. package/dist/esm/calcite-carousel.entry.js +3 -3
  73. package/dist/esm/calcite-checkbox.entry.js +3 -3
  74. package/dist/esm/calcite-chip-group.entry.js +1 -1
  75. package/dist/esm/calcite-chip_2.entry.js +4 -4
  76. package/dist/esm/calcite-color-picker-hex-input_2.entry.js +1 -1
  77. package/dist/esm/calcite-color-picker.entry.js +3 -3
  78. package/dist/esm/calcite-combobox-item-group.entry.js +2 -2
  79. package/dist/esm/calcite-combobox_3.entry.js +8 -8
  80. package/dist/esm/calcite-date-picker-day_3.entry.js +3 -3
  81. package/dist/esm/calcite-dialog.entry.js +5 -5
  82. package/dist/esm/calcite-dropdown_2.entry.js +3 -3
  83. package/dist/esm/calcite-fab.entry.js +1 -1
  84. package/dist/esm/calcite-filter_5.entry.js +3 -3
  85. package/dist/esm/calcite-graph_2.entry.js +4 -4
  86. package/dist/esm/calcite-icon_2.entry.js +2 -2
  87. package/dist/esm/calcite-inline-editable.entry.js +4 -4
  88. package/dist/esm/calcite-input-number.entry.js +5 -5
  89. package/dist/esm/calcite-input-text.entry.js +5 -5
  90. package/dist/esm/{calcite-input-time-picker-66e7a9f3.js → calcite-input-time-picker-37845feb.js} +56 -56
  91. package/dist/esm/calcite-input-time-picker.entry.js +8 -8
  92. package/dist/esm/calcite-input-time-zone.entry.js +5 -5
  93. package/dist/esm/calcite-input_2.entry.js +5 -5
  94. package/dist/esm/calcite-label.entry.js +2 -2
  95. package/dist/esm/calcite-link.entry.js +1 -1
  96. package/dist/esm/calcite-menu-item.entry.js +3 -3
  97. package/dist/esm/calcite-menu.entry.js +3 -3
  98. package/dist/esm/calcite-meter.entry.js +3 -3
  99. package/dist/esm/calcite-modal_3.entry.js +5 -5
  100. package/dist/esm/calcite-navigation.entry.js +1 -1
  101. package/dist/esm/calcite-notice.entry.js +4 -4
  102. package/dist/esm/calcite-option_2.entry.js +3 -3
  103. package/dist/esm/calcite-pagination.entry.js +3 -3
  104. package/dist/esm/calcite-pick-list-group.entry.js +1 -1
  105. package/dist/esm/calcite-pick-list-item.entry.js +3 -3
  106. package/dist/esm/calcite-pick-list.entry.js +2 -2
  107. package/dist/esm/calcite-radio-button-group.entry.js +1 -1
  108. package/dist/esm/calcite-radio-button.entry.js +3 -3
  109. package/dist/esm/calcite-rating.entry.js +5 -5
  110. package/dist/esm/calcite-scrim.entry.js +3 -3
  111. package/dist/esm/calcite-segmented-control_2.entry.js +3 -3
  112. package/dist/esm/calcite-sheet.entry.js +3 -3
  113. package/dist/esm/calcite-shell-center-row.entry.js +1 -1
  114. package/dist/esm/calcite-shell-panel_14.entry.js +10 -10
  115. package/dist/esm/calcite-sortable-list.entry.js +1 -1
  116. package/dist/esm/calcite-stepper-item.entry.js +3 -3
  117. package/dist/esm/calcite-stepper.entry.js +3 -3
  118. package/dist/esm/calcite-switch.entry.js +3 -3
  119. package/dist/esm/calcite-table-cell_2.entry.js +3 -3
  120. package/dist/esm/calcite-table-row.entry.js +1 -1
  121. package/dist/esm/calcite-table.entry.js +3 -3
  122. package/dist/esm/calcite-text-area.entry.js +5 -5
  123. package/dist/esm/calcite-tile-group.entry.js +1 -1
  124. package/dist/esm/calcite-tile.entry.js +1 -1
  125. package/dist/esm/calcite-time-picker.entry.js +4 -4
  126. package/dist/esm/calcite-tip-manager.entry.js +3 -3
  127. package/dist/esm/calcite-tip.entry.js +3 -3
  128. package/dist/esm/calcite-tooltip.entry.js +3 -3
  129. package/dist/esm/{calcite-tree_3.entry.js → calcite-tree_2.entry.js} +3 -319
  130. package/dist/esm/card-manager_3.entry.js +4 -4
  131. package/dist/esm/{cs-3751e560.js → cs-b01aecfc.js} +8 -8
  132. package/dist/esm/{da-227f8ad5.js → da-87ac64be.js} +8 -8
  133. package/dist/esm/{date-87a67cb4.js → date-7a1345c1.js} +1 -1
  134. package/dist/esm/{de-a5d2b25b.js → de-0eb6c065.js} +8 -8
  135. package/dist/esm/{de-at-66232b80.js → de-at-2db1a5d5.js} +8 -8
  136. package/dist/esm/{de-ch-1264ed4c.js → de-ch-063c0a6b.js} +8 -8
  137. package/dist/esm/{dom-63d2d41c.js → dom-451ed293.js} +1 -1
  138. package/dist/esm/{downloadUtils-d1f791c5.js → downloadUtils-4a34c86a.js} +235 -160
  139. package/dist/esm/{el-f5bf7ca3.js → el-eb29e645.js} +8 -8
  140. package/dist/esm/{en-au-2ac8f62e.js → en-au-00f884ad.js} +8 -8
  141. package/dist/esm/{en-ca-a1602b49.js → en-ca-1e7456d7.js} +8 -8
  142. package/dist/esm/{en-gb-28354b2e.js → en-gb-60a33692.js} +8 -8
  143. package/dist/esm/{es-feb7aad2.js → es-74f8b164.js} +8 -8
  144. package/dist/esm/{es-mx-5d64f899.js → es-mx-2bfa704a.js} +8 -8
  145. package/dist/esm/{et-173d2f49.js → et-b1a2d978.js} +8 -8
  146. package/dist/esm/feature-list.entry.js +2 -2
  147. package/dist/esm/{fi-ff9bb719.js → fi-70441d5b.js} +8 -8
  148. package/dist/esm/{floating-ui-c7ae81d9.js → floating-ui-4b1f5138.js} +1 -1
  149. package/dist/esm/{focusTrapComponent-833b1234.js → focusTrapComponent-b9709e71.js} +1 -1
  150. package/dist/esm/{form-08e1bcb7.js → form-fa4c471b.js} +1 -1
  151. package/dist/esm/{fr-e3af6835.js → fr-cea05ec9.js} +8 -8
  152. package/dist/esm/{fr-ch-491f1abe.js → fr-ch-8faa2fcf.js} +8 -8
  153. package/dist/esm/{he-47aa8dde.js → he-058ece46.js} +8 -8
  154. package/dist/esm/{hi-1700df3e.js → hi-163a268e.js} +8 -8
  155. package/dist/esm/{hr-68b828f5.js → hr-2b69b2ad.js} +8 -8
  156. package/dist/esm/{hu-df6a8f29.js → hu-e46e0cb6.js} +8 -8
  157. package/dist/esm/{id-8091582d.js → id-ebccdbbb.js} +8 -8
  158. package/dist/esm/{index.es-decad494.js → index.es-5f44061b.js} +36 -47
  159. package/dist/esm/{it-1f5e149d.js → it-813be6d0.js} +8 -8
  160. package/dist/esm/{it-ch-bf7fcac6.js → it-ch-bc95119e.js} +8 -8
  161. package/dist/esm/{ja-a5117166.js → ja-3488d28c.js} +8 -8
  162. package/dist/esm/{ko-9d7a9e79.js → ko-54faa268.js} +8 -8
  163. package/dist/esm/{label-4c4e06d6.js → label-414f1003.js} +1 -1
  164. package/dist/esm/loader.js +1 -1
  165. package/dist/esm/{locale-4441c976.js → locale-337dc231.js} +1 -1
  166. package/dist/esm/{lt-2e1c53de.js → lt-8c773940.js} +8 -8
  167. package/dist/esm/{lv-ca1ba866.js → lv-4882a326.js} +8 -8
  168. package/dist/esm/map-select-tools_3.entry.js +1 -1
  169. package/dist/esm/{mk-421d0d41.js → mk-d045a827.js} +8 -8
  170. package/dist/esm/{nb-5b103e32.js → nb-529fd6f8.js} +8 -8
  171. package/dist/esm/{nl-eac33461.js → nl-ebd398ac.js} +8 -8
  172. package/dist/esm/{openCloseComponent-c8c8645b.js → openCloseComponent-80c6ee4b.js} +1 -1
  173. package/dist/esm/{pl-03531ccb.js → pl-4cd334ed.js} +8 -8
  174. package/dist/esm/{popupUtils-4e0a103f.js → popupUtils-3ccb86bd.js} +1 -1
  175. package/dist/esm/{pt-b5d8bffc.js → pt-be0c86a5.js} +8 -8
  176. package/dist/esm/{pt-br-dee45728.js → pt-br-29226fc3.js} +8 -8
  177. package/dist/esm/public-notification.entry.js +1 -1
  178. package/dist/esm/{ro-df6cb584.js → ro-6555f5dd.js} +8 -8
  179. package/dist/esm/{ru-e7c02faa.js → ru-67b5c59c.js} +8 -8
  180. package/dist/esm/{shared-list-render-cadae2eb.js → shared-list-render-c8da5fde.js} +1 -1
  181. package/dist/esm/{sk-cae387d2.js → sk-81f19081.js} +8 -8
  182. package/dist/esm/{sl-2892ad87.js → sl-4b892d99.js} +8 -8
  183. package/dist/esm/solution-contents_3.entry.js +1 -1
  184. package/dist/esm/solution-item-accordion.entry.js +229 -0
  185. package/dist/esm/solution-item-icon.entry.js +324 -0
  186. package/dist/esm/solutions-components.js +1 -1
  187. package/dist/esm/spatial-ref.entry.js +1 -1
  188. package/dist/esm/{sr-11e6839f.js → sr-6cb6f797.js} +8 -8
  189. package/dist/esm/{sv-fd5c6ca5.js → sv-aacab364.js} +8 -8
  190. package/dist/esm/{t9n-b7ea1a61.js → t9n-7d4462c0.js} +1 -1
  191. package/dist/esm/{th-170cf6b1.js → th-6b423678.js} +8 -8
  192. package/dist/esm/{time-a7f1020b.js → time-b0bba3f9.js} +1 -1
  193. package/dist/esm/{tr-1d6ca382.js → tr-0e2b854e.js} +8 -8
  194. package/dist/esm/{uk-35eec84e.js → uk-af0a30cc.js} +8 -8
  195. package/dist/esm/{utils-62514064.js → utils-37bc2853.js} +1 -1
  196. package/dist/esm/{vi-2713ee26.js → vi-62071c6f.js} +8 -8
  197. package/dist/esm/{zh-cn-ed066014.js → zh-cn-8f53db2f.js} +8 -8
  198. package/dist/esm/{zh-hk-a118dced.js → zh-hk-a8c68b9c.js} +8 -8
  199. package/dist/esm/{zh-tw-c9bbf220.js → zh-tw-3006115d.js} +8 -8
  200. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources.json +3 -0
  201. package/dist/solutions-components/assets/t9n/solution-item-accordion/resources_en.json +3 -0
  202. package/dist/solutions-components/demos/solution-item-accordion.html +345 -0
  203. package/dist/solutions-components/{p-02ea30d1.entry.js → p-00cfce5b.entry.js} +1 -1
  204. package/dist/solutions-components/{p-ac11cf8f.entry.js → p-01510268.entry.js} +1 -1
  205. package/dist/solutions-components/{p-cd5a9034.entry.js → p-030e5077.entry.js} +1 -1
  206. package/dist/solutions-components/{p-de3ee7a6.entry.js → p-075a3c9d.entry.js} +1 -1
  207. package/dist/solutions-components/{p-267ef1b8.entry.js → p-0bd7752a.entry.js} +1 -1
  208. package/dist/solutions-components/{p-8c6a301f.entry.js → p-109cabd8.entry.js} +2 -2
  209. package/dist/solutions-components/{p-87f928a5.entry.js → p-116927af.entry.js} +3 -3
  210. package/dist/solutions-components/{p-8da5aeea.entry.js → p-118e1989.entry.js} +1 -1
  211. package/dist/solutions-components/p-16261018.js +11 -0
  212. package/dist/solutions-components/{p-c5facecd.entry.js → p-16d721ef.entry.js} +1 -1
  213. package/dist/solutions-components/{p-f7bc99fb.entry.js → p-1794a1aa.entry.js} +3 -3
  214. package/dist/solutions-components/{p-cf9e6515.entry.js → p-19697807.entry.js} +2 -2
  215. package/dist/solutions-components/{p-25b5ffea.js → p-1a7c4e9a.js} +1 -1
  216. package/dist/solutions-components/{p-5067d77e.entry.js → p-1c5f17cb.entry.js} +1 -1
  217. package/dist/solutions-components/p-1cfc581f.js +11 -0
  218. package/dist/solutions-components/{p-d784f756.entry.js → p-20393dcf.entry.js} +1 -1
  219. package/dist/solutions-components/{p-4e7aa926.js → p-203b4081.js} +1 -1
  220. package/dist/solutions-components/p-228c3bf3.entry.js +17 -0
  221. package/dist/solutions-components/{p-e4ef6f49.js → p-24192cfe.js} +1 -1
  222. package/dist/solutions-components/{p-d75ef009.entry.js → p-25ee25ea.entry.js} +2 -2
  223. package/dist/solutions-components/{p-7b2ef872.entry.js → p-2756e4ac.entry.js} +1 -1
  224. package/dist/solutions-components/{p-691cb5f4.js → p-290dee0b.js} +2 -2
  225. package/dist/solutions-components/{p-aa68a36e.entry.js → p-2ace1fe7.entry.js} +2 -2
  226. package/dist/solutions-components/{p-8bb2c169.js → p-2afb3a2b.js} +1 -1
  227. package/dist/solutions-components/{p-95c3b305.entry.js → p-2b212cd0.entry.js} +1 -1
  228. package/dist/solutions-components/p-2c00221b.js +6 -0
  229. package/dist/solutions-components/{p-3c1ecf85.entry.js → p-2fafe489.entry.js} +1 -1
  230. package/dist/solutions-components/{p-9560a1fd.entry.js → p-30b555dc.entry.js} +1 -1
  231. package/dist/solutions-components/{p-347d9ce0.js → p-328fbcb5.js} +1 -1
  232. package/dist/solutions-components/{p-aa341d46.entry.js → p-32cf5a71.entry.js} +1 -1
  233. package/dist/solutions-components/{p-712873f0.js → p-33fe9a28.js} +1 -1
  234. package/dist/solutions-components/{p-80f49acc.js → p-35f33a32.js} +1 -1
  235. package/dist/solutions-components/p-374d0fdc.entry.js +6 -0
  236. package/dist/solutions-components/{p-fb3e0eae.js → p-3955461a.js} +1 -1
  237. package/dist/solutions-components/p-39e9ae5c.entry.js +6 -0
  238. package/dist/solutions-components/{p-54a9017c.entry.js → p-3f6d5f14.entry.js} +1 -1
  239. package/dist/solutions-components/{p-1a06bf01.js → p-3fb350ea.js} +1 -1
  240. package/dist/solutions-components/{p-a79f4c52.entry.js → p-41744516.entry.js} +1 -1
  241. package/dist/solutions-components/{p-c40b0ec5.js → p-4182a628.js} +3 -3
  242. package/dist/solutions-components/{p-304cef31.js → p-42552409.js} +3 -3
  243. package/dist/solutions-components/{p-0e851a4b.js → p-4336e44a.js} +1 -1
  244. package/dist/solutions-components/{p-c25e8c35.js → p-441f1992.js} +1 -1
  245. package/dist/solutions-components/{p-fa68f43a.entry.js → p-451b483d.entry.js} +1 -1
  246. package/dist/solutions-components/{p-9bc84681.js → p-472be784.js} +1 -1
  247. package/dist/solutions-components/p-48c58b28.js +6 -0
  248. package/dist/solutions-components/{p-ca6055a3.js → p-4993c7b1.js} +1 -1
  249. package/dist/solutions-components/{p-b8ce880d.js → p-4a35785b.js} +1 -1
  250. package/dist/solutions-components/{p-de8121a4.js → p-4d97016e.js} +1 -1
  251. package/dist/solutions-components/{p-990d8b4b.js → p-4f4f00a9.js} +1 -1
  252. package/dist/solutions-components/{p-b3e8da19.entry.js → p-50203a2d.entry.js} +1 -1
  253. package/dist/solutions-components/{p-19b466d0.js → p-546a2802.js} +1 -1
  254. package/dist/solutions-components/{p-66b01781.js → p-54fa7a94.js} +2 -2
  255. package/dist/solutions-components/{p-04294b8e.js → p-57b673e2.js} +1 -1
  256. package/dist/solutions-components/{p-c163b67f.js → p-593a6f17.js} +1 -1
  257. package/dist/solutions-components/{p-5a3cab12.entry.js → p-5c0d42e9.entry.js} +1 -1
  258. package/dist/solutions-components/{p-9fa7a7ad.entry.js → p-5cef36d6.entry.js} +1 -1
  259. package/dist/solutions-components/{p-2aa44a02.entry.js → p-5d4efa42.entry.js} +2 -2
  260. package/dist/solutions-components/{p-7fce703f.entry.js → p-5d8a5e53.entry.js} +1 -1
  261. package/dist/solutions-components/{p-c7046172.entry.js → p-5fe92f6e.entry.js} +2 -2
  262. package/dist/solutions-components/{p-da80cfbc.entry.js → p-6384a9a5.entry.js} +1 -1
  263. package/dist/solutions-components/{p-b8f33145.js → p-6518727d.js} +1 -1
  264. package/dist/solutions-components/{p-52f19286.entry.js → p-67392838.entry.js} +1 -1
  265. package/dist/solutions-components/{p-54b7e680.js → p-6e0b76ce.js} +1 -1
  266. package/dist/solutions-components/{p-1017609e.js → p-6e3f1d71.js} +2 -2
  267. package/dist/solutions-components/{p-5f7c1e49.js → p-6f39a13f.js} +1 -1
  268. package/dist/solutions-components/{p-0b6e5486.js → p-71c0a413.js} +1 -1
  269. package/dist/solutions-components/{p-fedbf657.entry.js → p-728ec094.entry.js} +1 -1
  270. package/dist/solutions-components/{p-b8b78283.entry.js → p-72d0eda0.entry.js} +1 -1
  271. package/dist/solutions-components/p-743ad3a7.entry.js +6 -0
  272. package/dist/solutions-components/{p-732bb88c.entry.js → p-78c438c0.entry.js} +1 -1
  273. package/dist/solutions-components/{p-1ef6a1c2.entry.js → p-7b63f249.entry.js} +1 -1
  274. package/dist/solutions-components/{p-91b7a7dc.entry.js → p-7f090468.entry.js} +1 -1
  275. package/dist/solutions-components/{p-770a0e12.js → p-7f31be6a.js} +1 -1
  276. package/dist/solutions-components/{p-cb07016a.entry.js → p-8419b5a1.entry.js} +2 -2
  277. package/dist/solutions-components/{p-dfeb6a2e.entry.js → p-86ca6cfe.entry.js} +1 -1
  278. package/dist/solutions-components/{p-66afdfdd.entry.js → p-8846430d.entry.js} +3 -3
  279. package/dist/solutions-components/{p-508b2b7b.js → p-89ddc916.js} +1 -1
  280. package/dist/solutions-components/{p-9db30b19.entry.js → p-89f14b8a.entry.js} +1 -1
  281. package/dist/solutions-components/{p-23dd68de.entry.js → p-8ae73529.entry.js} +2 -2
  282. package/dist/solutions-components/{p-64bf4d2e.entry.js → p-8badcaf5.entry.js} +1 -1
  283. package/dist/solutions-components/{p-eb2859d6.js → p-8eacc640.js} +1 -1
  284. package/dist/solutions-components/{p-798b9928.entry.js → p-8f840208.entry.js} +1 -1
  285. package/dist/solutions-components/{p-c7eaade6.entry.js → p-9232245b.entry.js} +1 -1
  286. package/dist/solutions-components/{p-1490c752.js → p-926664d9.js} +1 -1
  287. package/dist/solutions-components/{p-919e9de7.entry.js → p-92de7cd3.entry.js} +1 -1
  288. package/dist/solutions-components/{p-9c5f4347.js → p-96919110.js} +1 -1
  289. package/dist/solutions-components/{p-222e0445.entry.js → p-981afe9e.entry.js} +1 -1
  290. package/dist/solutions-components/{p-550da58b.js → p-9901e971.js} +1 -1
  291. package/dist/solutions-components/{p-986ff43b.entry.js → p-9957c7b8.entry.js} +1 -1
  292. package/dist/solutions-components/{p-6b0fa1eb.entry.js → p-9c6f2672.entry.js} +1 -1
  293. package/dist/solutions-components/{p-bb0f549a.js → p-a0ef9cee.js} +1 -1
  294. package/dist/solutions-components/{p-d47abf9b.entry.js → p-a16449b2.entry.js} +1 -1
  295. package/dist/solutions-components/{p-08d1cc1f.js → p-a2d4c97e.js} +2 -2
  296. package/dist/solutions-components/{p-bae65813.entry.js → p-a68f4775.entry.js} +1 -1
  297. package/dist/solutions-components/{p-79f78acc.entry.js → p-a8d4a522.entry.js} +1 -1
  298. package/dist/solutions-components/{p-6c080ac7.entry.js → p-a9f65057.entry.js} +1 -1
  299. package/dist/solutions-components/{p-40175313.entry.js → p-ab8f4820.entry.js} +2 -2
  300. package/dist/solutions-components/{p-f6f2018a.js → p-abc30e04.js} +1 -1
  301. package/dist/solutions-components/{p-c0d25be5.entry.js → p-ac7868a6.entry.js} +1 -1
  302. package/dist/solutions-components/{p-9524e5e4.js → p-acf135cc.js} +1 -1
  303. package/dist/solutions-components/{p-b96233e3.entry.js → p-af3e49d8.entry.js} +1 -1
  304. package/dist/solutions-components/p-af8a7aff.entry.js +6 -0
  305. package/dist/solutions-components/{p-924ec704.js → p-b3b042df.js} +1 -1
  306. package/dist/solutions-components/{p-8fb06a85.entry.js → p-b6b4c707.entry.js} +1 -1
  307. package/dist/solutions-components/{p-4c179300.entry.js → p-b7a49673.entry.js} +1 -1
  308. package/dist/solutions-components/{p-40f5df15.entry.js → p-b955a19b.entry.js} +1 -1
  309. package/dist/solutions-components/{p-c4953b5e.entry.js → p-b9eefee6.entry.js} +2 -2
  310. package/dist/solutions-components/p-bb9492ed.js +6 -0
  311. package/dist/solutions-components/{p-8537518d.entry.js → p-bc86c87d.entry.js} +2 -2
  312. package/dist/solutions-components/{p-8614d1a0.entry.js → p-bd3c130b.entry.js} +1 -1
  313. package/dist/solutions-components/{p-e74bc7b3.js → p-bdc425fc.js} +1 -1
  314. package/dist/solutions-components/{p-92ba99ff.js → p-beba6703.js} +1 -1
  315. package/dist/solutions-components/{p-cd6eee11.js → p-c1242d4b.js} +1 -1
  316. package/dist/solutions-components/{p-a4e35c2d.entry.js → p-c26ac7d9.entry.js} +1 -1
  317. package/dist/solutions-components/{p-b76ed1c7.entry.js → p-c3782a7e.entry.js} +2 -2
  318. package/dist/solutions-components/{p-936037e4.js → p-c5520bba.js} +1 -1
  319. package/dist/solutions-components/{p-29a09798.js → p-c58ec2d0.js} +3 -3
  320. package/dist/solutions-components/{p-53b5a39e.js → p-c5d26e3a.js} +1 -1
  321. package/dist/solutions-components/{p-a37d1b17.entry.js → p-c8325ead.entry.js} +1 -1
  322. package/dist/solutions-components/{p-94ae78d6.js → p-cba777d2.js} +1 -1
  323. package/dist/solutions-components/{p-01dae909.js → p-d1371897.js} +1 -1
  324. package/dist/solutions-components/{p-d1cc620f.entry.js → p-d6c50190.entry.js} +1 -1
  325. package/dist/solutions-components/{p-fcd33b4f.js → p-d726e895.js} +1 -1
  326. package/dist/solutions-components/{p-270ead49.js → p-d8a54947.js} +1 -1
  327. package/dist/solutions-components/{p-a85fd786.entry.js → p-da6e25cb.entry.js} +1 -1
  328. package/dist/solutions-components/{p-ee9b7fab.js → p-db2c82ad.js} +1 -1
  329. package/dist/solutions-components/{p-e0ee0556.entry.js → p-dbcfdc6d.entry.js} +1 -1
  330. package/dist/solutions-components/{p-67c34d05.entry.js → p-ddc97e93.entry.js} +1 -1
  331. package/dist/solutions-components/{p-74fbad1c.js → p-dec62e5d.js} +30 -31
  332. package/dist/solutions-components/{p-245c35ce.js → p-e013e797.js} +1 -1
  333. package/dist/solutions-components/{p-0d6b3f44.js → p-e3bb02cc.js} +1 -1
  334. package/dist/solutions-components/{p-5440c8dd.js → p-e5ec69a4.js} +1 -1
  335. package/dist/solutions-components/p-e8aa44e2.entry.js +6 -0
  336. package/dist/solutions-components/{p-49bbe45e.js → p-ea119eee.js} +1 -1
  337. package/dist/solutions-components/{p-062f4457.js → p-ec59efb8.js} +1 -1
  338. package/dist/solutions-components/{p-bc6cf10f.entry.js → p-ef360459.entry.js} +1 -1
  339. package/dist/solutions-components/{p-0dc73313.js → p-f14d11f1.js} +1 -1
  340. package/dist/solutions-components/{p-6319ca20.js → p-f4d6771a.js} +1 -1
  341. package/dist/solutions-components/{p-5f705984.js → p-f4e30ab2.js} +1 -1
  342. package/dist/solutions-components/{p-7ae41cd8.js → p-f7680693.js} +1 -1
  343. package/dist/solutions-components/{p-9277a339.entry.js → p-faf7740b.entry.js} +1 -1
  344. package/dist/solutions-components/{p-707ee1d1.entry.js → p-fb95ec69.entry.js} +2 -2
  345. package/dist/solutions-components/{p-2264e8d5.entry.js → p-fbf86656.entry.js} +1 -1
  346. package/dist/solutions-components/{p-7c854814.js → p-fd730974.js} +2 -2
  347. package/dist/solutions-components/{p-4fe5e9c3.entry.js → p-ff96d7ee.entry.js} +3 -3
  348. package/dist/solutions-components/solutions-components.esm.js +1 -1
  349. package/dist/solutions-components/utils/interfaces.ts +11 -0
  350. package/dist/types/components/solution-item-accordion/solution-item-accordion.d.ts +117 -0
  351. package/dist/types/components.d.ts +23 -2
  352. package/dist/types/preact.d.ts +2 -0
  353. package/dist/types/utils/interfaces.d.ts +10 -0
  354. package/package.json +6 -6
  355. package/dist/cjs/calcite-accordion.cjs.entry.js +0 -95
  356. package/dist/solutions-components/p-2007eaa4.entry.js +0 -6
  357. package/dist/solutions-components/p-23ce9afa.entry.js +0 -11
  358. package/dist/solutions-components/p-2d17790c.js +0 -6
  359. package/dist/solutions-components/p-2e06ec97.js +0 -6
  360. package/dist/solutions-components/p-33db098c.js +0 -6
  361. package/dist/solutions-components/p-3a47fde6.entry.js +0 -11
  362. package/dist/solutions-components/p-79f5a8be.js +0 -11
  363. package/dist/solutions-components/p-a5e64f6b.entry.js +0 -6
  364. package/dist/solutions-components/p-d36878db.js +0 -11
  365. package/dist/solutions-components/p-fd79adec.entry.js +0 -6
@@ -3,4 +3,4 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as t,c as i,g as s,a as e,h as a,H as l}from"./p-6eb37ed2.js";import{b as o,c as n,a as h}from"./p-80cb7c73.js";import{l as c,g as r}from"./p-2058b5d9.js";import{e as d,h as p}from"./p-d572627c.js";import{s as g}from"./p-5dcec135.js";import{c as b,r as m}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 u=class{constructor(s){t(this,s),this.searchConfigurationChange=i(this,"searchConfigurationChange",7),this.addresseeLayerIds=[],this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.defaultExportTitle="",this.defaultNumLabelsPerPage=6,this.enableLayerFeatures=!0,this.enableLayerFeaturesOnLoad=!1,this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.enableSketchTools=!0,this.featureEffect=void 0,this.featureHighlightEnabled=void 0,this.locale=void 0,this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionLayerIds=[],this.showRefineSelection=!1,this.showSearchSettings=!0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._exportGraphics=!1,this._addMap=!1,this._addResults=!0,this._addTitle=!1,this._downloadActive=!0,this._exportType=o.PDF,this._fetchingData=!1,this._isMobile=void 0,this._numDuplicates=0,this._pageType=n.LIST,this._saveEnabled=!1,this._selectionSets=[],this._translations=void 0}get el(){return s(this)}_activeSelection;_downloadTools;_geometryEngine;Graphic;_jsonUtils;_onboardingImageUrl="";_popupsEnabled;_removeDuplicates;_searchConfiguration;_selectTools;_mediaQuery;_titleElement;_titleValue=void 0;_numSelected=0;async mapViewWatchHandler(t){t?.popup&&(this._popupsEnabled=t?.popup.autoOpenEnabled),this._initSearchConfiguration(this.searchConfiguration)}async watchSearchConfigurationHandler(t,i){const s=JSON.stringify(t);this.mapView&&(s!==JSON.stringify(i)||s&&!this._searchConfiguration)&&(this._searchConfiguration=JSON.parse(s),this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}async sketchLineSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setLineSymbol(t)}async sketchPointSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPointSymbol(t)}async sketchPolygonSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPolygonSymbol(t)}async pageTypeWatchHandler(t,i){if(this._checkPopups(),this.mapView?.popup&&(this.mapView.popupEnabled=t===n.LIST&&this._popupsEnabled),t===n.EXPORT&&(this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._updateExportGraphics(),this._fetchingData=!1),this._clearHighlight(),i!==n.SELECT&&i!==n.REFINE||await this._clearSelection(),i===n.EXPORT&&this._removeExportGraphics(),t!==n.SELECT)return this._highlightFeatures()}searchConfigurationChange;selectionSetsChanged(t){this._selectionSets=[...t.detail]}connectedCallback(){this._mediaQuery=window.matchMedia("(max-width: 600px)"),this._mediaQuery.addEventListener("change",(t=>this._setIsMobile(t)))}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initSymbols(),this._onboardingImageUrl=e("assets/data/images/onboarding.png")}render(){return a(l,{key:"019074cdfaddd8121a6ed255f42dea427aac9440"},a("calcite-shell",{key:"ece21e206f6519627bc8f139c35f68838eb701a2"},a("calcite-action-bar",{key:"92883d5df9fcf43584f3934bf7f61640afed2bdb",class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:this._isMobile?"footer":"header"},this._getActionGroup("list-check",n.LIST,this._translations.myLists),this.showRefineSelection?this._getActionGroup("test-data",n.REFINE,this._translations.refineSelection):null,this._getActionGroup("export",n.EXPORT,this._translations.export)),this._getPage(this._pageType)))}async componentDidLoad(){this._initSearchConfiguration(this.searchConfiguration)}disconnectedCallback(){this._mediaQuery.removeEventListener("change",(t=>this._setIsMobile(t)))}async _initModules(){const[t,i,s]=await c(["esri/geometry/geometryEngine","esri/symbols/support/jsonUtils","esri/Graphic"]);this._geometryEngine=t,this._jsonUtils=i,this.Graphic=s}_initSearchConfiguration(t){this.searchConfiguration&&!this._searchConfiguration&&this.mapView&&(this._searchConfiguration=t,this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}_initSymbols(){this._setLineSymbol(this.sketchLineSymbol),this._setPointSymbol(this.sketchPointSymbol),this._setPolygonSymbol(this.sketchPolygonSymbol)}_setLineSymbol(t){this.sketchLineSymbol="simple-line"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSLS",color:[130,130,130,255],width:2,style:"esriSLSSolid"})}_setPointSymbol(t){this.sketchPointSymbol="simple-marker"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSMS",color:[255,255,255,255],angle:0,xoffset:0,yoffset:0,size:6,style:"esriSMSCircle",outline:{type:"esriSLS",color:[50,50,50,255],width:1,style:"esriSLSSolid"}})}_setPolygonSymbol(t){this.sketchPolygonSymbol="simple-fill"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSFS",color:[150,150,150,51],outline:{type:"esriSLS",color:[50,50,50,255],width:2,style:"esriSLSSolid"},style:"esriSFSSolid"})}_setIsMobile(t){this._isMobile=t.matches}_getActionGroup(t,i,s){return a("calcite-action-group",{class:this.showRefineSelection?"w-1-3":"w-1-2",layout:"horizontal"},a("div",{class:"background-override"},a("calcite-action",{active:this._pageType===i,alignment:"center",class:"width-full height-full",compact:!1,icon:t,id:t,onClick:()=>{this._setPageType(i)},text:""})),a("calcite-tooltip",{label:"",placement:"bottom","reference-element":t},a("span",null,s)))}_setPageType(t){this._pageType=t}_getPage(t){let i;switch(t){case n.LIST:i=this._getListPage();break;case n.SELECT:i=this._getSelectPage();break;case n.EXPORT:i=this._getExportPage();break;case n.REFINE:i=this._getRefinePage()}return i}_getListPage(){const t=this._hasSelections();return a("calcite-panel",null,this._getLabel(this._translations.myLists),this._getNotice(t?this._translations.listHasSetsTip:this._translations.selectLayerAndAdd,"padding-sides-1 padding-bottom-1","word-wrap-anywhere"),t?this._getSelectionSetList():this._getOnboardingImage(),a("div",{class:"display-flex padding-1"},a("calcite-button",{onClick:()=>{this._setPageType(n.SELECT)},width:"full"},a("span",{class:"font-weight-500"},this._translations.add))))}_getOnboardingImage(){return a("div",{class:"display-flex padding-sides-1"},a("img",{class:"img-container",role:"presentation",src:this._onboardingImageUrl}))}_getSelectionSetList(){return a("div",{class:"padding-top-1-2 padding-bottom-1-2"},a("calcite-list",{class:"list-border margin-sides-1"},this._selectionSets.reduce(((t,i,s)=>{const e=this._getSelectionSetIds(i);let l=!0;return i.workflowType===h.REFINE&&(l=Object.keys(i.refineInfos).reduce(((t,s)=>{const e=i.refineInfos[s];return t+(e.addIds.length+e.removeIds.length)}),0)>0),l&&t.push(a("calcite-list-item",{label:i.label,onClick:()=>this._gotoSelection(i,this.mapView)},a("div",{slot:"content"},a("div",{class:"list-label"},i.label),a("div",{class:"list-description"},i?.layerView?.layer.title),a("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",e.length.toString()))),this._getAction(!0,"pencil","",(t=>this._openSelection(i,t)),!1,"actions-end"),this._getAction(!0,"x","",(t=>this._deleteSelection(s,t)),!1,"actions-end"))),t}),[])))}_getSelectionSetIds(t){return t.workflowType!==h.REFINE?t.selectedIds:Object.keys(t.refineInfos).reduce(((i,s)=>[...i,...t.refineInfos[s].addIds]),[])}_hasSelections(t=!1){let i=[];const s=this._selectionSets.some((t=>{if(t.workflowType===h.REFINE)return i=this._getSelectionSetIds(t),!0}));return t&&s?i.length>0||this._selectionSets.length>1:this._selectionSets.length>0}async _getNumDuplicates(){const t=this._getExportInfos(),i=await b(this.mapView.map,t),s=m(i);return i.length-s.length}_getExportInfos(){return this._selectionSets.reduce(((t,i)=>(i.download&&(i.workflowType!==h.REFINE?this._updateIds(i.layerView.layer.id,i.layerView,i.selectedIds,t):Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds.length>0&&this._updateIds(s,e.layerView,e.addIds,t)}))),t)),{})}_updateIds(t,i,s,e){return e[t]?e[t].ids=e[t].ids.concat(s):e[t]={layerView:i,ids:s},e}_getSelectPage(){const t=this._translations.selectSearchTip;return a("calcite-panel",null,this._getLabel(this._translations.stepTwoFull,!0),this._getNotice(t,"padding-1","word-wrap-anywhere"),a("div",null,a("map-select-tools",{bufferColor:this.bufferColor,bufferOutlineColor:this.bufferOutlineColor,class:"font-bold",customLabelEnabled:this.customLabelEnabled,defaultBufferDistance:this.defaultBufferDistance,defaultBufferUnit:this.defaultBufferUnit,enableLayerFeatures:this.enableLayerFeatures,enableLayerFeaturesOnLoad:this.enableLayerFeaturesOnLoad,enableSearchDistance:this.enableSearchDistance,enableSearchDistanceOnLoad:this.enableSearchDistanceOnLoad,enableSketchTools:this.enableSketchTools,enabledLayerIds:this.addresseeLayerIds,isUpdate:!!this._activeSelection,locale:this.locale,mapView:this.mapView,noResultText:this.noResultText,onSelectionSetChange:t=>this._updateForSelection(t),ref:t=>{this._selectTools=t},searchConfiguration:this._searchConfiguration,selectionLayerIds:this.selectionLayerIds,selectionSet:this._activeSelection,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})),this._getPageNavButtons(this._translations.done,0===this._numSelected,(()=>{this._saveSelection()}),this._translations.cancel,!1,(()=>{this._home()})))}_getExportPage(){const t=this._hasSelections(this.showRefineSelection),i=this._numDuplicates>0?"display-block":"display-none";return a("calcite-panel",null,a("div",null,this._getLabel(this._translations.export,!1),t?a("div",null,this._getNotice(this._translations.exportTip,"padding-sides-1"),this._getLabel(this._translations.exportListsLabel),this._getExportSelectionLists(),a("div",{class:"padding-sides-1 "+i},a("div",{class:"display-flex"},a("calcite-label",{layout:"inline"},a("calcite-checkbox",{ref:t=>{this._removeDuplicates=t}}),a("div",{class:"display-flex"},this._translations.removeDuplicate,a("div",{class:"info-message padding-start-1-2"},a("calcite-input-message",{class:"info-blue margin-top-0",scale:"m"},` ${this._translations.numDuplicates.replace("{{n}}",this._numDuplicates.toString())}`)))),a("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"remove-duplicates-icon",scale:"s"})),a("calcite-popover",{closable:!0,label:"",referenceElement:"remove-duplicates-icon"},a("span",{class:"tooltip-message"},this._translations.duplicatesTip))),a("div",{class:"border-bottom"}),a("div",{class:"padding-top-sides-1"},a("calcite-segmented-control",{class:"w-100",onCalciteSegmentedControlChange:t=>this._exportTypeChange(t),width:"full"},a("calcite-segmented-control-item",{checked:this._exportType===o.PDF,class:"w-50 end-border",value:o.PDF},a("span",{class:"font-weight-500"},this._translations.pdf)),a("calcite-segmented-control-item",{checked:this._exportType===o.CSV,class:"w-50",value:o.CSV},a("span",{class:"font-weight-500"},this._translations.csv)))),a("div",{class:"padding-bottom-1"},this._getExportOptions()),a("div",{class:"padding-1 display-flex"},a("calcite-button",{disabled:!this._downloadActive||this._fetchingData||!this._addMap&&!this._addResults,loading:this._fetchingData,onClick:()=>{this._export()},width:"full"},a("span",{class:"font-weight-500"},this._translations.export)))):this._getNotice(this._translations.downloadNoLists,"padding-sides-1 padding-bottom-1")))}_exportTypeChange(t){this._exportType=t.target.value}_getExportOptions(){const t=this._addTitle?"display-block":"display-none",i=this._addMap?"display-flex":"display-none",s=this._titleValue?this._titleValue:this.defaultExportTitle?this.defaultExportTitle:"",e=this._addResults?"":"display-none";return a("div",{class:this._exportType===o.PDF?"display-block":"display-none"},this._getLabel(this._translations.pdfOptions,!0),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addResults,onCalciteCheckboxChange:()=>this._addResults=!this._addResults}),this._translations.addResults)),a("div",{class:`padding-top-sides-1 ${e}`},a("calcite-label",{class:"label-margin-0"},this._translations.selectPDFLabelOption)),a("div",{class:`padding-sides-1 ${e}`},a("pdf-download",{defaultNumLabelsPerPage:parseInt(this.defaultNumLabelsPerPage.toString(),10),disabled:!this._downloadActive,ref:t=>{this._downloadTools=t}})),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addTitle,onCalciteCheckboxChange:()=>this._addTitle=!this._addTitle}),this._translations.title)),a("div",{class:t},this._getLabel(this._translations.title,!0,""),a("calcite-input-text",{class:"padding-sides-1",onCalciteInputTextInput:()=>this._changeTitle(),placeholder:this._translations.titlePlaceholder,ref:t=>{this._titleElement=t},value:s})),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addMap,onCalciteCheckboxChange:()=>this._handleAddMapChange()}),this._translations.includeMap)),a("div",{class:`padding-top-sides-1 ${i}`},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._exportGraphics,onCalciteCheckboxChange:()=>this._handleExportGraphicsChange()}),this._translations.listGraphics),a("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"list-graphics-icon",scale:"s"}),a("calcite-popover",{closable:!0,label:"",referenceElement:"list-graphics-icon"},a("span",{class:"tooltip-message"},this._translations.listGraphicsTip))))}_handleAddMapChange(){this._addMap=!this._addMap,this._updateExportGraphics()}_handleExportGraphicsChange(){this._exportGraphics=!this._exportGraphics,this._updateExportGraphics()}_getManagedLayer(t){let i;return Object.keys(g.managedLayers).some((s=>{const e=this.mapView.map.layers.findIndex((t=>t.title===s));if(g.managedLayers[s]===t)return i=this.mapView.map.layers.getItemAt(e),!0})),i}_updateExportGraphics(t=!1){!t&&this._exportGraphics&&this._addMap||this._removeExportGraphics(),this._exportGraphics&&this._addMap&&this._addExportGraphics()}_removeExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");t&&t.graphics.removeAll(),i&&i.graphics.removeAll()}_addExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");this._selectionSets.forEach((s=>{if(s.download&&(t&&t.graphics.add(s.sketchGraphic),i)){const t=new this.Graphic({geometry:s.buffer,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});i.graphics.add(t)}}))}_getRefinePage(){const t=this._hasSelections();return a("calcite-panel",null,this._getLabel(this._translations.refineSelection),t?a("div",null,this._getNotice(this._translations.refineTip,"padding-sides-1"),a("refine-selection",{enabledLayerIds:this.selectionLayerIds,locale:this.locale,mapView:this.mapView,selectionSets:this._selectionSets,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})):this._getNotice(this._translations.refineTipNoSelections,"padding-sides-1"))}_getPageNavButtons(t,i,s,e,l,o){return a("div",{class:"padding-bottom-1"},a("div",{class:"display-flex padding-top-sides-1"},a("calcite-button",{disabled:i,onClick:s,width:"full"},a("span",{class:"font-weight-500"},t))),a("div",{class:"display-flex padding-top-1-2 padding-sides-1"},a("calcite-button",{appearance:"outline",disabled:l,onClick:o,width:"full"},a("span",{class:"font-weight-500"},e))))}_changeTitle(){this._titleValue=this._titleElement.value}_getNotice(t,i="padding-1",s=""){return a("calcite-notice",{class:i,icon:"lightbulb",kind:"success",open:!0},a("div",{class:s,slot:"message"},t))}_getLabel(t,i=!1,s="font-bold"){return a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:s+=i?" label-margin-0":""},t))}_getExportSelectionLists(){return this._selectionSets.reduce(((t,i)=>{const s=this._getSelectionSetIds(i),e=i.workflowType!==h.REFINE||s.length>0;return!this._downloadActive&&i.download&&e&&(this._downloadActive=!0),e&&t.push(a("div",{class:"display-flex padding-sides-1 padding-bottom-1"},a("calcite-checkbox",{checked:i.download,class:"align-center",onClick:()=>{this._toggleDownload(i.id)}}),a("calcite-list",{class:"list-border margin-start-1-2 width-full",id:"download-list"},a("calcite-list-item",{disabled:!i.download,label:i.label,onClick:()=>{this._toggleDownload(i.id)}},a("div",{slot:"content"},a("div",{class:"list-label"},i.label),a("div",{class:"list-description"},i?.layerView?.layer.title),a("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",s.length.toString()))))))),t}),[])||a("div",null)}async _toggleDownload(t){let i=!1;this._selectionSets=this._selectionSets.map((s=>(s.download=s.id===t?!s.download:s.download,i=!!s.download||i,s))),this._updateExportGraphics(!0),this._downloadActive=i,this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._fetchingData=!1,await this._highlightFeatures()}async _export(){const t=this._addResults?this._getSelectionIdsAndViews(this._selectionSets,!0):{};if(this._exportType===o.PDF){let i="";if(this._addMap&&this.mapView){const t=await this.mapView.takeScreenshot({width:1500,height:2e3});i=t?.dataUrl}this._fetchingData=!0,await this._downloadTools.downloadPDF(this.mapView.map,t,this._removeDuplicates.checked,this._addTitle?this._titleElement.value:"",i),this._fetchingData=!1}this._exportType===o.CSV&&(this._fetchingData=!0,await this._downloadTools.downloadCSV(this.mapView.map,t,this._removeDuplicates.checked),this._fetchingData=!1)}_getSelectionIdsAndViews(t,i=!1){return(i?t.filter((t=>t.download)):t).reduce(((t,i)=>{if(i.workflowType===h.REFINE)Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds&&(t=this._updateExportInfos(t,e.layerView.layer.id,i.label,e.addIds,e.layerView))}));else{const s=i?.layerView?.layer.id;t=this._updateExportInfos(t,s,i.label,i.selectedIds,i.layerView)}return t}),{})}_updateExportInfos(t,i,s,e,a){return i&&Object.keys(t).indexOf(i)>-1?(t[i].ids=[...new Set([...t[i].ids,...e])],t[i].selectionSetNames.push(s)):i&&(t[i]={ids:e,layerView:a,selectionSetNames:[s]}),t}_getAction(t,i,s,e,l=!1,o=""){return a("calcite-action",{disabled:!t,icon:i,iconFlipRtl:!0,indicator:l,onClick:e,slot:o,text:s})}_updateForSelection(t){this._numSelected=t.detail,this._saveEnabled=this._numSelected>0}async _home(){await this._clearSelection(),this._setPageType(n.LIST)}async _saveSelection(){const t=await(this._selectTools?.getSelection()),i=this._selectTools?.isUpdate;return this._selectionSets=i?this._selectionSets.map((i=>i.id===t.id?t:i)):[...this._selectionSets,t],this._home()}async _clearSelection(){await(this._selectTools?.clearSelection()),this._numSelected=0,this._activeSelection=void 0}_deleteSelection(t,i){return i.stopPropagation(),this._selectionSets=this._selectionSets.filter(((i,s)=>{if(s!==t)return i})),this._highlightFeatures()}_gotoSelection(t,i){d(t.selectedIds,t.layerView,i,this.featureHighlightEnabled,this.featureEffect)}_openSelection(t,i){i.stopPropagation(),this._activeSelection=t,this._pageType=t.workflowType===h.REFINE?n.REFINE:n.SELECT}async _highlightFeatures(){this._clearHighlight();const t=this._getSelectionIdsAndViews(this._selectionSets,this._pageType===n.EXPORT),i=Object.keys(t);if(i.length>0)for(let s=0;s<i.length;s++){const e=t[i[s]];g.highlightHandles.push(await p(e.ids,e.layerView,this.mapView))}}_checkPopups(){"boolean"!=typeof this._popupsEnabled&&(this._popupsEnabled=this.mapView?.popupEnabled)}_clearHighlight(){g&&g.highlightHandles&&g.removeHandles()}async _getTranslations(){const t=await r(this.el);this._translations=t[0]}static get watchers(){return{mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"],sketchLineSymbol:["sketchLineSymbolWatchHandler"],sketchPointSymbol:["sketchPointSymbolWatchHandler"],sketchPolygonSymbol:["sketchPolygonSymbolWatchHandler"],_pageType:["pageTypeWatchHandler"]}}};u.style=':host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.padding-top-1-2{padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-start-1-2{padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-color-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir="rtl"]{float:left}.float-left{float:left}.float-left[dir="rtl"]{float:right}.margin-top-0{margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-color-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir="rtl"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-color-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:0.125rem;color:var(--calcite-color-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-color-foreground-3:var(--calcite-color-brand);--calcite-color-foreground-2:var(--calcite-color-brand-hover);--calcite-color-text-1:var(--calcite-color-text-inverse)}.word-wrap-anywhere{word-wrap:anywhere}';export{u as public_notification}
6
+ import{r as t,c as i,g as s,a as e,h as a,H as l}from"./p-6eb37ed2.js";import{b as o,c as n,a as h}from"./p-80cb7c73.js";import{l as c,g as r}from"./p-2058b5d9.js";import{e as d,h as p}from"./p-d572627c.js";import{s as g}from"./p-5dcec135.js";import{c as b,r as m}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 u=class{constructor(s){t(this,s),this.searchConfigurationChange=i(this,"searchConfigurationChange",7),this.addresseeLayerIds=[],this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=void 0,this.defaultBufferDistance=void 0,this.defaultBufferUnit=void 0,this.defaultExportTitle="",this.defaultNumLabelsPerPage=6,this.enableLayerFeatures=!0,this.enableLayerFeaturesOnLoad=!1,this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.enableSketchTools=!0,this.featureEffect=void 0,this.featureHighlightEnabled=void 0,this.locale=void 0,this.mapView=void 0,this.noResultText=void 0,this.searchConfiguration=void 0,this.selectionLayerIds=[],this.showRefineSelection=!1,this.showSearchSettings=!0,this.sketchLineSymbol=void 0,this.sketchPointSymbol=void 0,this.sketchPolygonSymbol=void 0,this._exportGraphics=!1,this._addMap=!1,this._addResults=!0,this._addTitle=!1,this._downloadActive=!0,this._exportType=o.PDF,this._fetchingData=!1,this._isMobile=void 0,this._numDuplicates=0,this._pageType=n.LIST,this._saveEnabled=!1,this._selectionSets=[],this._translations=void 0}get el(){return s(this)}_activeSelection;_downloadTools;_geometryEngine;Graphic;_jsonUtils;_onboardingImageUrl="";_popupsEnabled;_removeDuplicates;_searchConfiguration;_selectTools;_mediaQuery;_titleElement;_titleValue=void 0;_numSelected=0;async mapViewWatchHandler(t){t?.popup&&(this._popupsEnabled=t?.popup.autoOpenEnabled),this._initSearchConfiguration(this.searchConfiguration)}async watchSearchConfigurationHandler(t,i){const s=JSON.stringify(t);this.mapView&&(s!==JSON.stringify(i)||s&&!this._searchConfiguration)&&(this._searchConfiguration=JSON.parse(s),this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}async sketchLineSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setLineSymbol(t)}async sketchPointSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPointSymbol(t)}async sketchPolygonSymbolWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._setPolygonSymbol(t)}async pageTypeWatchHandler(t,i){if(this._checkPopups(),this.mapView?.popup&&(this.mapView.popupEnabled=t===n.LIST&&this._popupsEnabled),t===n.EXPORT&&(this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._updateExportGraphics(),this._fetchingData=!1),this._clearHighlight(),i!==n.SELECT&&i!==n.REFINE||await this._clearSelection(),i===n.EXPORT&&this._removeExportGraphics(),t!==n.SELECT)return this._highlightFeatures()}searchConfigurationChange;selectionSetsChanged(t){this._selectionSets=[...t.detail]}connectedCallback(){this._mediaQuery=window.matchMedia("(max-width: 600px)"),this._mediaQuery.addEventListener("change",(t=>this._setIsMobile(t)))}async componentWillLoad(){await this._getTranslations(),await this._initModules(),this._initSymbols(),this._onboardingImageUrl=e("assets/data/images/onboarding.png")}render(){return a(l,{key:"019074cdfaddd8121a6ed255f42dea427aac9440"},a("calcite-shell",{key:"ece21e206f6519627bc8f139c35f68838eb701a2"},a("calcite-action-bar",{key:"92883d5df9fcf43584f3934bf7f61640afed2bdb",class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:this._isMobile?"footer":"header"},this._getActionGroup("list-check",n.LIST,this._translations.myLists),this.showRefineSelection?this._getActionGroup("test-data",n.REFINE,this._translations.refineSelection):null,this._getActionGroup("export",n.EXPORT,this._translations.export)),this._getPage(this._pageType)))}async componentDidLoad(){this._initSearchConfiguration(this.searchConfiguration)}disconnectedCallback(){this._mediaQuery.removeEventListener("change",(t=>this._setIsMobile(t)))}async _initModules(){const[t,i,s]=await c(["esri/geometry/geometryEngine","esri/symbols/support/jsonUtils","esri/Graphic"]);this._geometryEngine=t,this._jsonUtils=i,this.Graphic=s}_initSearchConfiguration(t){this.searchConfiguration&&!this._searchConfiguration&&this.mapView&&(this._searchConfiguration=t,this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}_initSymbols(){this._setLineSymbol(this.sketchLineSymbol),this._setPointSymbol(this.sketchPointSymbol),this._setPolygonSymbol(this.sketchPolygonSymbol)}_setLineSymbol(t){this.sketchLineSymbol="simple-line"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSLS",color:[130,130,130,255],width:2,style:"esriSLSSolid"})}_setPointSymbol(t){this.sketchPointSymbol="simple-marker"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSMS",color:[255,255,255,255],angle:0,xoffset:0,yoffset:0,size:6,style:"esriSMSCircle",outline:{type:"esriSLS",color:[50,50,50,255],width:1,style:"esriSLSSolid"}})}_setPolygonSymbol(t){this.sketchPolygonSymbol="simple-fill"===t?.type?t:this._jsonUtils.fromJSON(t||{type:"esriSFS",color:[150,150,150,51],outline:{type:"esriSLS",color:[50,50,50,255],width:2,style:"esriSLSSolid"},style:"esriSFSSolid"})}_setIsMobile(t){this._isMobile=t.matches}_getActionGroup(t,i,s){return a("calcite-action-group",{class:this.showRefineSelection?"w-1-3":"w-1-2",layout:"horizontal"},a("div",{class:"background-override"},a("calcite-action",{active:this._pageType===i,alignment:"center",class:"width-full height-full",compact:!1,icon:t,id:t,onClick:()=>{this._setPageType(i)},text:""})),a("calcite-tooltip",{label:"",placement:"bottom","reference-element":t},a("span",null,s)))}_setPageType(t){this._pageType=t}_getPage(t){let i;switch(t){case n.LIST:i=this._getListPage();break;case n.SELECT:i=this._getSelectPage();break;case n.EXPORT:i=this._getExportPage();break;case n.REFINE:i=this._getRefinePage()}return i}_getListPage(){const t=this._hasSelections();return a("calcite-panel",null,this._getLabel(this._translations.myLists),this._getNotice(t?this._translations.listHasSetsTip:this._translations.selectLayerAndAdd,"padding-sides-1 padding-bottom-1","word-wrap-anywhere"),t?this._getSelectionSetList():this._getOnboardingImage(),a("div",{class:"display-flex padding-1"},a("calcite-button",{onClick:()=>{this._setPageType(n.SELECT)},width:"full"},a("span",{class:"font-weight-500"},this._translations.add))))}_getOnboardingImage(){return a("div",{class:"display-flex padding-sides-1"},a("img",{class:"img-container",role:"presentation",src:this._onboardingImageUrl}))}_getSelectionSetList(){return a("div",{class:"padding-top-1-2 padding-bottom-1-2"},a("calcite-list",{class:"list-border margin-sides-1"},this._selectionSets.reduce(((t,i,s)=>{const e=this._getSelectionSetIds(i);let l=!0;return i.workflowType===h.REFINE&&(l=Object.keys(i.refineInfos).reduce(((t,s)=>{const e=i.refineInfos[s];return t+(e.addIds.length+e.removeIds.length)}),0)>0),l&&t.push(a("calcite-list-item",{label:i.label,onClick:()=>this._gotoSelection(i,this.mapView)},a("div",{slot:"content"},a("div",{class:"list-label"},i.label),a("div",{class:"list-description"},i?.layerView?.layer.title),a("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",e.length.toString()))),this._getAction(!0,"pencil","",(t=>this._openSelection(i,t)),!1,"actions-end"),this._getAction(!0,"x","",(t=>this._deleteSelection(s,t)),!1,"actions-end"))),t}),[])))}_getSelectionSetIds(t){return t.workflowType!==h.REFINE?t.selectedIds:Object.keys(t.refineInfos).reduce(((i,s)=>[...i,...t.refineInfos[s].addIds]),[])}_hasSelections(t=!1){let i=[];const s=this._selectionSets.some((t=>{if(t.workflowType===h.REFINE)return i=this._getSelectionSetIds(t),!0}));return t&&s?i.length>0||this._selectionSets.length>1:this._selectionSets.length>0}async _getNumDuplicates(){const t=this._getExportInfos(),i=await b(this.mapView.map,t),s=m(i);return i.length-s.length}_getExportInfos(){return this._selectionSets.reduce(((t,i)=>(i.download&&(i.workflowType!==h.REFINE?this._updateIds(i.layerView.layer.id,i.layerView,i.selectedIds,t):Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds.length>0&&this._updateIds(s,e.layerView,e.addIds,t)}))),t)),{})}_updateIds(t,i,s,e){return e[t]?e[t].ids=e[t].ids.concat(s):e[t]={layerView:i,ids:s},e}_getSelectPage(){const t=this._translations.selectSearchTip;return a("calcite-panel",null,this._getLabel(this._translations.stepTwoFull,!0),this._getNotice(t,"padding-1","word-wrap-anywhere"),a("div",null,a("map-select-tools",{bufferColor:this.bufferColor,bufferOutlineColor:this.bufferOutlineColor,class:"font-bold",customLabelEnabled:this.customLabelEnabled,defaultBufferDistance:this.defaultBufferDistance,defaultBufferUnit:this.defaultBufferUnit,enableLayerFeatures:this.enableLayerFeatures,enableLayerFeaturesOnLoad:this.enableLayerFeaturesOnLoad,enableSearchDistance:this.enableSearchDistance,enableSearchDistanceOnLoad:this.enableSearchDistanceOnLoad,enableSketchTools:this.enableSketchTools,enabledLayerIds:this.addresseeLayerIds,isUpdate:!!this._activeSelection,locale:this.locale,mapView:this.mapView,noResultText:this.noResultText,onSelectionSetChange:t=>this._updateForSelection(t),ref:t=>{this._selectTools=t},searchConfiguration:this._searchConfiguration,selectionLayerIds:this.selectionLayerIds,selectionSet:this._activeSelection,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})),this._getPageNavButtons(this._translations.done,0===this._numSelected,(()=>{this._saveSelection()}),this._translations.cancel,!1,(()=>{this._home()})))}_getExportPage(){const t=this._hasSelections(this.showRefineSelection),i=this._numDuplicates>0?"display-block":"display-none";return a("calcite-panel",null,a("div",null,this._getLabel(this._translations.export,!1),t?a("div",null,this._getNotice(this._translations.exportTip,"padding-sides-1"),this._getLabel(this._translations.exportListsLabel),this._getExportSelectionLists(),a("div",{class:"padding-sides-1 "+i},a("div",{class:"display-flex"},a("calcite-label",{layout:"inline"},a("calcite-checkbox",{ref:t=>{this._removeDuplicates=t}}),a("div",{class:"display-flex"},this._translations.removeDuplicate,a("div",{class:"info-message padding-start-1-2"},a("calcite-input-message",{class:"info-blue margin-top-0",scale:"m"},` ${this._translations.numDuplicates.replace("{{n}}",this._numDuplicates.toString())}`)))),a("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"remove-duplicates-icon",scale:"s"})),a("calcite-popover",{closable:!0,label:"",referenceElement:"remove-duplicates-icon"},a("span",{class:"tooltip-message"},this._translations.duplicatesTip))),a("div",{class:"border-bottom"}),a("div",{class:"padding-top-sides-1"},a("calcite-segmented-control",{class:"w-100",onCalciteSegmentedControlChange:t=>this._exportTypeChange(t),width:"full"},a("calcite-segmented-control-item",{checked:this._exportType===o.PDF,class:"w-50 end-border",value:o.PDF},a("span",{class:"font-weight-500"},this._translations.pdf)),a("calcite-segmented-control-item",{checked:this._exportType===o.CSV,class:"w-50",value:o.CSV},a("span",{class:"font-weight-500"},this._translations.csv)))),a("div",{class:"padding-bottom-1"},this._getExportOptions()),a("div",{class:"padding-1 display-flex"},a("calcite-button",{disabled:!this._downloadActive||this._fetchingData||!this._addMap&&!this._addResults,loading:this._fetchingData,onClick:()=>{this._export()},width:"full"},a("span",{class:"font-weight-500"},this._translations.export)))):this._getNotice(this._translations.downloadNoLists,"padding-sides-1 padding-bottom-1")))}_exportTypeChange(t){this._exportType=t.target.value}_getExportOptions(){const t=this._addTitle?"display-block":"display-none",i=this._addMap?"display-flex":"display-none",s=this._titleValue?this._titleValue:this.defaultExportTitle?this.defaultExportTitle:"",e=this._addResults?"":"display-none";return a("div",{class:this._exportType===o.PDF?"display-block":"display-none"},this._getLabel(this._translations.pdfOptions,!0),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addResults,onCalciteCheckboxChange:()=>this._addResults=!this._addResults}),this._translations.addResults)),a("div",{class:`padding-top-sides-1 ${e}`},a("calcite-label",{class:"label-margin-0"},this._translations.selectPDFLabelOption)),a("div",{class:`padding-sides-1 ${e}`},a("pdf-download",{defaultNumLabelsPerPage:parseInt(this.defaultNumLabelsPerPage.toString(),10),disabled:!this._downloadActive,ref:t=>{this._downloadTools=t}})),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addTitle,onCalciteCheckboxChange:()=>this._addTitle=!this._addTitle}),this._translations.title)),a("div",{class:t},this._getLabel(this._translations.title,!0,""),a("calcite-input-text",{class:"padding-sides-1",onCalciteInputTextInput:()=>this._changeTitle(),placeholder:this._translations.titlePlaceholder,ref:t=>{this._titleElement=t},value:s})),a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._addMap,onCalciteCheckboxChange:()=>this._handleAddMapChange()}),this._translations.includeMap)),a("div",{class:`padding-top-sides-1 ${i}`},a("calcite-label",{class:"label-margin-0",layout:"inline"},a("calcite-checkbox",{checked:this._exportGraphics,onCalciteCheckboxChange:()=>this._handleExportGraphicsChange()}),this._translations.listGraphics),a("calcite-icon",{class:"padding-start-1-2 icon",flipRtl:!("he"===this.locale?.toLowerCase()),icon:"question",id:"list-graphics-icon",scale:"s"}),a("calcite-popover",{closable:!0,label:"",referenceElement:"list-graphics-icon"},a("span",{class:"tooltip-message"},this._translations.listGraphicsTip))))}_handleAddMapChange(){this._addMap=!this._addMap,this._updateExportGraphics()}_handleExportGraphicsChange(){this._exportGraphics=!this._exportGraphics,this._updateExportGraphics()}_getManagedLayer(t){let i;return Object.keys(g.managedLayers).some((s=>{const e=this.mapView.map.layers.findIndex((t=>t.title===s));if(g.managedLayers[s]===t)return i=this.mapView.map.layers.getItemAt(e),!0})),i}_updateExportGraphics(t=!1){!t&&this._exportGraphics&&this._addMap||this._removeExportGraphics(),this._exportGraphics&&this._addMap&&this._addExportGraphics()}_removeExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");t&&t.graphics.removeAll(),i&&i.graphics.removeAll()}_addExportGraphics(){const t=this._getManagedLayer("sketch"),i=this._getManagedLayer("buffer");this._selectionSets.forEach((s=>{if(s.download&&(t&&t.graphics.add(s.sketchGraphic),i)){const t=new this.Graphic({geometry:s.buffer,symbol:{type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}}});i.graphics.add(t)}}))}_getRefinePage(){const t=this._hasSelections();return a("calcite-panel",null,this._getLabel(this._translations.refineSelection),t?a("div",null,this._getNotice(this._translations.refineTip,"padding-sides-1"),a("refine-selection",{enabledLayerIds:this.selectionLayerIds,locale:this.locale,mapView:this.mapView,selectionSets:this._selectionSets,sketchLineSymbol:this.sketchLineSymbol,sketchPointSymbol:this.sketchPointSymbol,sketchPolygonSymbol:this.sketchPolygonSymbol})):this._getNotice(this._translations.refineTipNoSelections,"padding-sides-1"))}_getPageNavButtons(t,i,s,e,l,o){return a("div",{class:"padding-bottom-1"},a("div",{class:"display-flex padding-top-sides-1"},a("calcite-button",{disabled:i,onClick:s,width:"full"},a("span",{class:"font-weight-500"},t))),a("div",{class:"display-flex padding-top-1-2 padding-sides-1"},a("calcite-button",{appearance:"outline",disabled:l,onClick:o,width:"full"},a("span",{class:"font-weight-500"},e))))}_changeTitle(){this._titleValue=this._titleElement.value}_getNotice(t,i="padding-1",s=""){return a("calcite-notice",{class:i,icon:"lightbulb",kind:"success",open:!0},a("div",{class:s,slot:"message"},t))}_getLabel(t,i=!1,s="font-bold"){return a("div",{class:"padding-top-sides-1"},a("calcite-label",{class:s+=i?" label-margin-0":""},t))}_getExportSelectionLists(){return this._selectionSets.reduce(((t,i)=>{const s=this._getSelectionSetIds(i),e=i.workflowType!==h.REFINE||s.length>0;return!this._downloadActive&&i.download&&e&&(this._downloadActive=!0),e&&t.push(a("div",{class:"display-flex padding-sides-1 padding-bottom-1"},a("calcite-checkbox",{checked:i.download,class:"align-center",onClick:()=>{this._toggleDownload(i.id)}}),a("calcite-list",{class:"list-border margin-start-1-2 width-full",id:"download-list"},a("calcite-list-item",{disabled:!i.download,label:i.label,onClick:()=>{this._toggleDownload(i.id)}},a("div",{slot:"content"},a("div",{class:"list-label"},i.label),a("div",{class:"list-description"},i?.layerView?.layer.title),a("div",{class:"list-description"},this._translations.selectedFeatures.replace("{{n}}",s.length.toString()))))))),t}),[])||a("div",null)}async _toggleDownload(t){let i=!1;this._selectionSets=this._selectionSets.map((s=>(s.download=s.id===t?!s.download:s.download,i=!!s.download||i,s))),this._updateExportGraphics(!0),this._downloadActive=i,this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._fetchingData=!1,await this._highlightFeatures()}async _export(){const t=this._addResults?this._getSelectionIdsAndViews(this._selectionSets,!0):{};if(this._exportType===o.PDF){let i="";if(this._addMap&&this.mapView){const t=await this.mapView.takeScreenshot({width:1500,height:2e3});i=t?.dataUrl}this._fetchingData=!0,await this._downloadTools.downloadPDF(this.mapView.map,t,this._removeDuplicates.checked,this._addTitle?this._titleElement.value:"",i),this._fetchingData=!1}this._exportType===o.CSV&&(this._fetchingData=!0,await this._downloadTools.downloadCSV(this.mapView.map,t,this._removeDuplicates.checked),this._fetchingData=!1)}_getSelectionIdsAndViews(t,i=!1){return(i?t.filter((t=>t.download)):t).reduce(((t,i)=>{if(i.workflowType===h.REFINE)Object.keys(i.refineInfos).forEach((s=>{const e=i.refineInfos[s];e.addIds&&(t=this._updateExportInfos(t,e.layerView.layer.id,i.label,e.addIds,e.layerView))}));else{const s=i?.layerView?.layer.id;t=this._updateExportInfos(t,s,i.label,i.selectedIds,i.layerView)}return t}),{})}_updateExportInfos(t,i,s,e,a){return i&&Object.keys(t).indexOf(i)>-1?(t[i].ids=[...new Set([...t[i].ids,...e])],t[i].selectionSetNames.push(s)):i&&(t[i]={ids:e,layerView:a,selectionSetNames:[s]}),t}_getAction(t,i,s,e,l=!1,o=""){return a("calcite-action",{disabled:!t,icon:i,iconFlipRtl:!0,indicator:l,onClick:e,slot:o,text:s})}_updateForSelection(t){this._numSelected=t.detail,this._saveEnabled=this._numSelected>0}async _home(){await this._clearSelection(),this._setPageType(n.LIST)}async _saveSelection(){const t=await(this._selectTools?.getSelection()),i=this._selectTools?.isUpdate;return this._selectionSets=i?this._selectionSets.map((i=>i.id===t.id?t:i)):[...this._selectionSets,t],this._home()}async _clearSelection(){await(this._selectTools?.clearSelection()),this._numSelected=0,this._activeSelection=void 0}_deleteSelection(t,i){return i.stopPropagation(),this._selectionSets=this._selectionSets.filter(((i,s)=>{if(s!==t)return i})),this._highlightFeatures()}_gotoSelection(t,i){d(t.selectedIds,t.layerView,i,this.featureHighlightEnabled,this.featureEffect)}_openSelection(t,i){i.stopPropagation(),this._activeSelection=t,this._pageType=t.workflowType===h.REFINE?n.REFINE:n.SELECT}async _highlightFeatures(){this._clearHighlight();const t=this._getSelectionIdsAndViews(this._selectionSets,this._pageType===n.EXPORT),i=Object.keys(t);if(i.length>0)for(let s=0;s<i.length;s++){const e=t[i[s]];g.highlightHandles.push(await p(e.ids,e.layerView,this.mapView))}}_checkPopups(){"boolean"!=typeof this._popupsEnabled&&(this._popupsEnabled=this.mapView?.popupEnabled)}_clearHighlight(){g&&g.highlightHandles&&g.removeHandles()}async _getTranslations(){const t=await r(this.el);this._translations=t[0]}static get watchers(){return{mapView:["mapViewWatchHandler"],searchConfiguration:["watchSearchConfigurationHandler"],sketchLineSymbol:["sketchLineSymbolWatchHandler"],sketchPointSymbol:["sketchPointSymbolWatchHandler"],sketchPolygonSymbol:["sketchPolygonSymbolWatchHandler"],_pageType:["pageTypeWatchHandler"]}}};u.style=':host{display:block;--calcite-input-message-spacing-value:0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.padding-top-1-2{padding-block-start:.5rem}.padding-top-1{padding-top:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-bottom-1-2{padding-bottom:.5rem}.info-blue{color:#00A0FF}.info-message{justify-content:center;display:grid}.font-bold{font-weight:bold}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-start-1-2{padding-inline-start:0.5rem}.list-border{border:1px solid var(--calcite-color-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:0.5rem}.float-right{float:right}.float-right[dir="rtl"]{float:left}.float-left{float:left}.float-left[dir="rtl"]{float:right}.margin-top-0{margin-block-start:0 !important}.height-1-1-2{height:1.5rem}.main-background{background-color:var(--calcite-color-foreground-2)}.position-right{position:absolute;right:1rem}.position-right[dir="rtl"]{position:absolute;left:1rem}.label-margin-0{--calcite-label-margin-bottom:0}.list-label{color:var(--calcite-color-text-1)}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:0.125rem;color:var(--calcite-color-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-color-foreground-3:var(--calcite-color-brand);--calcite-color-foreground-2:var(--calcite-color-brand-hover);--calcite-color-text-1:var(--calcite-color-text-inverse)}.word-wrap-anywhere{word-wrap:anywhere}';export{u as public_notification}
@@ -0,0 +1,11 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{n}from"./p-42552409.js";
7
+ /*!
8
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
10
+ * v2.12.2
11
+ */function t(n,t,r){if(!n)return;const e=n.getTime(),a=!(t instanceof Date)||e>=t.getTime(),o=!(r instanceof Date)||e<=r.getTime();return a&&o}function r(n,t,r){if(!(n instanceof Date))return null;const e=n.getTime(),a=t instanceof Date&&e<t.getTime(),o=r instanceof Date&&e>r.getTime();return a?t:o?r:n}function e(n,t=!1){if(n instanceof Date)return n;if(!n||"string"!=typeof n)return null;const r=n.split(/[: T-]/).map(parseFloat),e=new Date(r[0],(r[1]||1)-1,r[2]||1);if(e.setFullYear(r[0]),isNaN(e.getTime()))throw new Error(`Invalid ISO 8601 date: "${n}"`);return t?m(e):e}function a(n,t){if(!t)return null;const{separator:r}=t,e=function(n,t){const{day:r,month:e,year:a}=i(n,t);return{day:parseInt(r),month:parseInt(e)-1,year:parseInt(a)}}(n,t),{day:a,month:s}=e,u=o(e.year,t),c=new Date(u,s,a);c.setFullYear(u);const f=a>0,d=s>-1,D=!isNaN(c.getTime()),y=n.split(r).filter((n=>n)).length>2,l=u.toString().length>0;return f&&d&&D&&y&&l?c:null}function o(n,t){return u(n,t,"read")}function s(n,t){return u(n,t,"write")}function u(n,t,r){return"buddhist"!==t["default-calendar"]?n:n+543*("read"===r?-1:1)}function i(t,r){const{separator:e,unitOrder:a}=r,o=l(a),s=t.split(e).map((t=>n.delocalize(t)));return{day:s[o.indexOf("d")],month:s[o.indexOf("m")],year:s[o.indexOf("y")]}}function c(n){if(n instanceof Date){const t=String(n.getMonth()+1).padStart(2,"0"),r=String(n.getDate()).padStart(2,"0");return`${String(n.getFullYear()).padStart(4,"0")}-${t}-${r}`}return""}function f(n){const t=n.split("-");return{day:t[2],month:t[1],year:t[0]}}function d(n,t){return n instanceof Date&&t instanceof Date&&n.getDate()===t.getDate()&&n.getMonth()===t.getMonth()&&n.getFullYear()===t.getFullYear()}function D(n){const t=n.getMonth(),r=new Date(n);return r.setMonth(t-1),t===r.getMonth()?new Date(n.getFullYear(),t,0):r}function y(n){const t=n.getMonth(),r=new Date(n);return r.setMonth(t+1),(t+2)%7==r.getMonth()%7?new Date(n.getFullYear(),t+2,0):r}function l(n){const t=n.toLowerCase();return["d","m","y"].sort(((n,r)=>t.indexOf(n)-t.indexOf(r)))}function p(n,t){return(n.getTime()-t.getTime())/864e5}function m(n){return n.setHours(23,59,59,999),n}export{c as a,r as b,f as c,e as d,i as e,a as f,p as g,d as h,t as i,l as j,s as k,o as l,y as n,D as p,m as s}
@@ -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,f as e,h as i,H as o,g as n,c as a}from"./p-6eb37ed2.js";import{t as s,H as r,f as c,r as l}from"./p-c25e8c35.js";import{g as d}from"./p-aaa56cbf.js";import{c as h,d as p,u as f,I as b}from"./p-1ce2608d.js";import{s as u,a as m,c as v}from"./p-3e828614.js";import{c as g,d as x}from"./p-304cef31.js";import{c as y}from"./p-1c249530.js";import{g as k}from"./p-27d462c0.js";import{u as w,c as z,s as j,d as E}from"./p-1017609e.js";import{i as C}from"./p-4b9b7778.js";import{f as H,c as D,b as L,a as P,r as F,F as R}from"./p-8bb2c169.js";import{d as $,a as O,c as A,u as I}from"./p-c40b0ec5.js";import{o as S}from"./p-79f5a8be.js";import{H as T}from"./p-1b229454.js";import{F as B}from"./p-4920ee12.js";import{i as M}from"./p-64a34d92.js";import"./p-8bfa18b7.js";import"./p-c8d3207e.js";import"./p-0ef9d36b.js";
6
+ import{r as t,f as e,h as i,H as o,g as n,c as a}from"./p-6eb37ed2.js";import{t as s,H as r,f as c,r as l}from"./p-441f1992.js";import{g as d}from"./p-aaa56cbf.js";import{c as h,d as p,u as f,I as b}from"./p-1ce2608d.js";import{s as u,a as m,c as v}from"./p-3e828614.js";import{c as g,d as x}from"./p-42552409.js";import{c as y}from"./p-1c249530.js";import{g as k}from"./p-27d462c0.js";import{u as w,c as z,s as j,d as E}from"./p-6e3f1d71.js";import{i as C}from"./p-4b9b7778.js";import{f as H,c as D,b as L,a as P,r as F,F as R}from"./p-2afb3a2b.js";import{d as $,a as O,c as A,u as I}from"./p-4182a628.js";import{o as S}from"./p-16261018.js";import{H as T}from"./p-1b229454.js";import{F as B}from"./p-4920ee12.js";import{i as M}from"./p-64a34d92.js";import"./p-8bfa18b7.js";import"./p-c8d3207e.js";import"./p-0ef9d36b.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{d as u}from"./p-924ec704.js";import"./p-6eb37ed2.js";import"./p-66b01781.js";import"./p-c25e8c35.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1ce2608d.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-7c854814.js";import"./p-27d462c0.js";import"./p-3e828614.js";import"./p-304cef31.js";import"./p-1c249530.js";import"./p-c40b0ec5.js";import"./p-0ef9d36b.js";import"./p-f6f2018a.js";import"./p-d9e930c8.js";import"./p-1017609e.js";import"./p-ef67c743.js";import"./p-14f027b5.js";function t(u,t,i,m){var a={s:"muutama sekunti",m:"minuutti",mm:"%d minuuttia",h:"tunti",hh:"%d tuntia",d:"päivä",dd:"%d päivää",M:"kuukausi",MM:"%d kuukautta",y:"vuosi",yy:"%d vuotta",numbers:"nolla_yksi_kaksi_kolme_neljä_viisi_kuusi_seitsemän_kahdeksan_yhdeksän".split("_")},s={s:"muutaman sekunnin",m:"minuutin",mm:"%d minuutin",h:"tunnin",hh:"%d tunnin",d:"päivän",dd:"%d päivän",M:"kuukauden",MM:"%d kuukauden",y:"vuoden",yy:"%d vuoden",numbers:"nollan_yhden_kahden_kolmen_neljän_viiden_kuuden_seitsemän_kahdeksan_yhdeksän".split("_")},e=m&&!t?s:a;return e[i].replace("%d",u<10?e.numbers[u]:u)}var i={name:"fi",weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),ordinal:function(u){return u+"."},weekStart:1,yearStart:4,relativeTime:{future:"%s päästä",past:"%s sitten",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM[ta] YYYY",LLL:"D. MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, D. MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"D. MMM YYYY",lll:"D. MMM YYYY, [klo] HH.mm",llll:"ddd, D. MMM YYYY, [klo] HH.mm"}};u.locale(i,null,!0);export{i as default}
6
+ import{d as u}from"./p-b3b042df.js";import"./p-6eb37ed2.js";import"./p-54fa7a94.js";import"./p-441f1992.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1ce2608d.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-fd730974.js";import"./p-27d462c0.js";import"./p-3e828614.js";import"./p-42552409.js";import"./p-1c249530.js";import"./p-4182a628.js";import"./p-0ef9d36b.js";import"./p-abc30e04.js";import"./p-d9e930c8.js";import"./p-6e3f1d71.js";import"./p-ef67c743.js";import"./p-14f027b5.js";function t(u,t,i,a){var m={s:"muutama sekunti",m:"minuutti",mm:"%d minuuttia",h:"tunti",hh:"%d tuntia",d:"päivä",dd:"%d päivää",M:"kuukausi",MM:"%d kuukautta",y:"vuosi",yy:"%d vuotta",numbers:"nolla_yksi_kaksi_kolme_neljä_viisi_kuusi_seitsemän_kahdeksan_yhdeksän".split("_")},s={s:"muutaman sekunnin",m:"minuutin",mm:"%d minuutin",h:"tunnin",hh:"%d tunnin",d:"päivän",dd:"%d päivän",M:"kuukauden",MM:"%d kuukauden",y:"vuoden",yy:"%d vuoden",numbers:"nollan_yhden_kahden_kolmen_neljän_viiden_kuuden_seitsemän_kahdeksan_yhdeksän".split("_")},e=a&&!t?s:m;return e[i].replace("%d",u<10?e.numbers[u]:u)}var i={name:"fi",weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),ordinal:function(u){return u+"."},weekStart:1,yearStart:4,relativeTime:{future:"%s päästä",past:"%s sitten",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM[ta] YYYY",LLL:"D. MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, D. MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"D. MMM YYYY",lll:"D. MMM YYYY, [klo] HH.mm",llll:"ddd, D. MMM YYYY, [klo] HH.mm"}};u.locale(i,null,!0);export{i as default}
@@ -0,0 +1,17 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as i,c as e,h as t,g as c,H as n}from"./p-6eb37ed2.js";import{c as a}from"./p-1c249530.js";import{c as o,d as r}from"./p-f8d23498.js";import{g as l,h as s,t as d,a as h}from"./p-441f1992.js";import{C as m}from"./p-8bfa18b7.js";import{g as p}from"./p-27d462c0.js";import{s as v,a as g,c as b}from"./p-3e828614.js";import"./p-4b9b7778.js";import"./p-aaa56cbf.js";
7
+ /*!
8
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
10
+ * v2.12.2
11
+ */const f="accordion",u="accordion--transparent",x=class{constructor(t){i(this,t),this.calciteInternalAccordionChange=e(this,"calciteInternalAccordionChange",6),this.mutationObserver=a("mutation",(()=>this.updateAccordionItems())),this.appearance="solid",this.iconPosition="end",this.iconType="chevron",this.scale="m",this.selectionMode="multiple"}handlePropsChange(){this.updateAccordionItems()}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0}),this.updateAccordionItems()}disconnectedCallback(){this.mutationObserver?.disconnect()}render(){const i="transparent"===this.appearance;return t("div",{key:"1399ab312fad432bde78fdedd0435848b53109ef",class:{[u]:i,[f]:!i}},t("slot",{key:"3ab7863d23eabb6c5ce499de42dab74df885ccdd"}))}updateActiveItemOnChange(i){this.calciteInternalAccordionChange.emit({requestedAccordionItem:i.detail.requestedAccordionItem}),i.stopPropagation()}updateAccordionItems(){this.el.querySelectorAll("calcite-accordion-item").forEach((i=>{i.iconPosition=this.iconPosition,i.iconType=this.iconType,i.scale=this.scale})),document.dispatchEvent(new CustomEvent("calciteInternalAccordionItemsSync"))}get el(){return c(this)}static get watchers(){return{iconPosition:["handlePropsChange"],iconType:["handlePropsChange"],scale:["handlePropsChange"],selectionMode:["handlePropsChange"]}}};x.style=":host{position:relative;display:block;max-inline-size:100%;line-height:1.5rem}.accordion{border-width:1px;border-block-end-width:0px;border-style:solid;border-color:var(--calcite-accordion-border-color, var(--calcite-color-border-2));background-color:var(--calcite-accordion-background-color, var(--calcite-color-foreground-1))}.accordion--transparent{--calcite-accordion-border-color:transparent;border-color:var(--calcite-color-transparent);background-color:var(--calcite-color-transparent)}:host([scale=s]){--calcite-internal-accordion-item-spacing-unit:0.25rem;--calcite-internal-accordion-icon-margin:0.5rem;--calcite-internal-accordion-item-padding:var(--calcite-internal-accordion-item-spacing-unit) 0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-internal-accordion-item-spacing-unit:0.5rem;--calcite-internal-accordion-icon-margin:0.75rem;--calcite-internal-accordion-item-padding:var(--calcite-internal-accordion-item-spacing-unit) 0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-internal-accordion-item-spacing-unit:0.75rem;--calcite-internal-accordion-icon-margin:1rem;--calcite-internal-accordion-item-padding:var(--calcite-internal-accordion-item-spacing-unit) 1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([hidden]){display:none}[hidden]{display:none}";
12
+ /*!
13
+ * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
14
+ * See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
15
+ * v2.12.2
16
+ */
17
+ const k="actions-start",y="actions-end",w="header",C="icon",I="icon--end",A="icon--start",z="section",j="section-toggle",P=class{constructor(t){i(this,t),this.calciteInternalAccordionItemSelect=e(this,"calciteInternalAccordionItemSelect",6),this.calciteInternalAccordionItemClose=e(this,"calciteInternalAccordionItemClose",6),this.storeHeaderEl=i=>{this.headerEl=i},this.itemHeaderClickHandler=()=>this.emitRequestedItem(),this.expanded=!1,this.heading=void 0,this.description=void 0,this.iconStart=void 0,this.iconEnd=void 0,this.iconFlipRtl=void 0,this.iconPosition=void 0,this.iconType=void 0,this.accordionParent=void 0,this.scale=void 0}connectedCallback(){o(this)}componentWillLoad(){v(this)}componentDidLoad(){g(this)}disconnectedCallback(){r(this)}renderActionsStart(){const{el:i}=this;return l(i,k)?t("div",{class:"actions-start"},t("slot",{name:k})):null}renderActionsEnd(){const{el:i}=this;return l(i,y)?t("div",{class:"actions-end"},t("slot",{name:y})):null}render(){const{iconFlipRtl:i}=this,e=s(this.el),c=this.iconStart?t("calcite-icon",{class:{[C]:!0,[A]:!0},flipRtl:"both"===i||"start"===i,icon:this.iconStart,key:"icon-start",scale:p(this.scale)}):null,a=this.iconEnd?t("calcite-icon",{class:{[I]:!0,[C]:!0},flipRtl:"both"===i||"end"===i,icon:this.iconEnd,key:"icon-end",scale:p(this.scale)}):null,{description:o}=this;return t(n,{key:"814d4825cae2104f75b2f9929536082846cf57bd"},t("div",{key:"2db2128ea0666b97849c6dae790540f233c9d0c1",class:{[`icon-position--${this.iconPosition}`]:!0,[`icon-type--${this.iconType}`]:!0}},t("div",{key:"64fe888d6f47db3f9338327280b3e321bb770518",class:{[w]:!0,[m.rtl]:"rtl"===e}},this.renderActionsStart(),t("div",{key:"9b76d09efa231d1840c913245832a10bedd8ea4b","aria-controls":z,"aria-expanded":d(this.expanded),class:"header-content",id:j,onClick:this.itemHeaderClickHandler,ref:this.storeHeaderEl,role:"button",tabindex:"0"},t("div",{key:"59c73bc01a0321f23b296b12fa4bd9476084ce4b",class:"header-container"},c,t("div",{key:"c9d3551a823a31d4cc54934f780272e437f38ef1",class:"header-text"},t("span",{key:"350ea0660f827ced975b326287dc285ad1417b4c",class:"heading"},this.heading),o?t("span",{class:"description"},o):null),a),t("calcite-icon",{key:"497edd46ef65a4ac27a844f7c6c5de5cfb2cb0e7",class:"expand-icon",icon:"chevron"===this.iconType?"chevronDown":"caret"===this.iconType?"caretDown":this.expanded?"minus":"plus",scale:p(this.scale)})),this.renderActionsEnd()),t("section",{key:"1b7cd480d664d6b3f65c145e19c5866107d19413","aria-labelledby":j,class:"content",id:z},t("slot",{key:"1156f3056966f11ee0836a5185cce700911c8c8b"}))))}keyDownHandler(i){if(i.target===this.el)switch(i.key){case" ":case"Enter":this.emitRequestedItem(),i.preventDefault()}}updateActiveItemOnChange(i){const[e]=i.composedPath(),t=h(this.el,"calcite-accordion");e===t&&(this.determineActiveItem(t.selectionMode,i.detail.requestedAccordionItem),i.stopPropagation())}accordionItemSyncHandler(i){const[e]=i.composedPath(),t=this.el;if(t.parentElement===e)return;const c=h(t,"calcite-accordion");e===c&&(t.iconPosition=c.iconPosition,t.iconType=c.iconType,t.scale=c.scale,i.stopPropagation())}async setFocus(){await b(this),this.headerEl.focus()}determineActiveItem(i,e){switch(i){case"multiple":this.el===e&&(this.expanded=!this.expanded);break;case"single":this.expanded=this.el===e&&!this.expanded;break;case"single-persist":this.expanded=this.el===e}}emitRequestedItem(){this.calciteInternalAccordionItemSelect.emit({requestedAccordionItem:this.el})}get el(){return c(this)}};P.style=".icon-position--end,.icon-position--start{--calcite-internal-accordion-item-icon-rotation:calc(90deg * -1);--calcite-internal-accordion-item-active-icon-rotation:0deg;--calcite-internal-accordion-item-icon-rotation-rtl:90deg;--calcite-internal-accordion-item-active-icon-rotation-rtl:0deg}:host{position:relative;display:flex;flex-direction:column;text-decoration-line:none;color:var(--calcite-accordion-text-color, var(--calcite-color-text-3));border-width:0}.icon-position--start{--calcite-internal-accordion-item-flex-direction:row-reverse;--calcite-internal-accordion-item-icon-spacing-start:0;--calcite-internal-accordion-item-icon-spacing-end:var(--calcite-internal-accordion-icon-margin)}.icon-position--end{--calcite-internal-accordion-item-flex-direction:row;--calcite-internal-accordion-item-icon-spacing-start:var(--calcite-internal-accordion-icon-margin);--calcite-internal-accordion-item-icon-spacing-end:0}.icon-position--end:not(.icon-type--plus-minus){--calcite-internal-accordion-item-icon-rotation:0deg;--calcite-internal-accordion-item-active-icon-rotation:180deg;--calcite-internal-accordion-item-icon-rotation-rtl:0deg;--calcite-internal-accordion-item-active-icon-rotation-rtl:calc(180deg * -1)}.content,.header{border-block-end-width:var(--calcite-border-width-sm);border-block-end-style:solid;border-color:var(--calcite-accordion-border-color, var(--calcite-color-border-2))}.header-content,.content{padding:var(--calcite-accordion-item-content-space, var(--calcite-internal-accordion-item-padding, var(--calcite-internal-accordion-item-spacing-unit, 0.5rem 0.75rem)))}.header{display:flex;align-items:stretch}.header *{display:inline-flex;align-items:center;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);word-wrap:break-word;word-break:break-word}.header-content{flex-grow:1;cursor:pointer;outline-color:transparent;flex-direction:var(--calcite-internal-accordion-item-flex-direction)}.header-content:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}.header-content:focus,.header-content:hover,.header-content:active{color:var(--calcite-accordion-text-color-hover, var(--calcite-color-text-2))}.header-content:focus .expand-icon,.header-content:focus .heading,.header-content:hover .expand-icon,.header-content:hover .heading,.header-content:active .expand-icon,.header-content:active .heading{color:var(--calcite-accordion-text-color-pressed, var(--calcite-color-text-1))}.header-container{inline-size:100%}.header-text{margin-block:0px;flex-grow:1;flex-direction:column;padding-block:0px;text-align:initial;margin-inline-end:auto}.heading,.description{display:flex;inline-size:100%}.heading{font-weight:var(--calcite-font-weight-medium)}.actions-start,.actions-end{display:flex;align-items:center}.icon{display:flex;align-items:center;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);margin-inline-end:var(--calcite-internal-accordion-item-icon-spacing-start);margin-inline-start:var(--calcite-internal-accordion-item-icon-spacing-end)}.icon--start{margin-inline-end:var(--calcite-internal-accordion-icon-margin)}.icon--end{margin-inline-end:var(--calcite-internal-accordion-icon-margin);margin-inline-start:var(--calcite-internal-accordion-icon-margin)}.expand-icon{color:var(--calcite-accordion-text-color, var(--calcite-color-text-3));margin-inline-start:var(--calcite-internal-accordion-item-icon-spacing-start);margin-inline-end:var(--calcite-internal-accordion-item-icon-spacing-end);transform:rotate(var(--calcite-internal-accordion-item-icon-rotation))}.calcite--rtl .expand-icon{transform:rotate(var(--calcite-internal-accordion-item-icon-rotation-rtl))}.description{margin-block-start:0.25rem}.content{display:none;padding-block-start:0px;text-align:initial}:host(:not(:focus):not(:hover):not([expanded])) .heading{color:var(--calcite-accordion-text-color-hover, var(--calcite-color-text-2))}:host([expanded]){color:var(--calcite-accordion-text-color-pressed, var(--calcite-color-text-1))}:host([expanded]) .header{border-block-end-color:transparent}:host([expanded]) .expand-icon{color:var(--calcite-accordion-text-color-hover, var(--calcite-color-text-2));transform:rotate(var(--calcite-internal-accordion-item-active-icon-rotation))}:host([expanded]) .calcite--rtl .expand-icon{transform:rotate(var(--calcite-internal-accordion-item-active-icon-rotation-rtl))}:host([expanded]) .description{color:var(--calcite-accordion-text-color-hover, var(--calcite-color-text-2))}:host([expanded]) .content{display:block}@media (forced-colors: active){:host([expanded]) .header{border-block-end:none}:host([expanded]) .heading{font-weight:bolder}.header-content:hover .heading,.header-content:focus .heading{text-decoration:underline}}:host([hidden]){display:none}[hidden]{display:none}";export{x as calcite_accordion,P as calcite_accordion_item}
@@ -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{d as e}from"./p-924ec704.js";import"./p-6eb37ed2.js";import"./p-66b01781.js";import"./p-c25e8c35.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1ce2608d.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-7c854814.js";import"./p-27d462c0.js";import"./p-3e828614.js";import"./p-304cef31.js";import"./p-1c249530.js";import"./p-c40b0ec5.js";import"./p-0ef9d36b.js";import"./p-f6f2018a.js";import"./p-d9e930c8.js";import"./p-1017609e.js";import"./p-ef67c743.js";import"./p-14f027b5.js";var o={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un' ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(e){return e+"º"}};e.locale(o,null,!0);export{o as default}
6
+ import{d as o}from"./p-b3b042df.js";import"./p-6eb37ed2.js";import"./p-54fa7a94.js";import"./p-441f1992.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1ce2608d.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-fd730974.js";import"./p-27d462c0.js";import"./p-3e828614.js";import"./p-42552409.js";import"./p-1c249530.js";import"./p-4182a628.js";import"./p-0ef9d36b.js";import"./p-abc30e04.js";import"./p-d9e930c8.js";import"./p-6e3f1d71.js";import"./p-ef67c743.js";import"./p-14f027b5.js";var e={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un' ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(o){return o+"º"}};o.locale(e,null,!0);export{e as default}
@@ -3,9 +3,9 @@
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,g as s}from"./p-6eb37ed2.js";import{c as a,d as o,u as n,I as r}from"./p-1ce2608d.js";import{c as d}from"./p-1c249530.js";import{d as c,c as h}from"./p-0a165419.js";import{e as l}from"./p-c25e8c35.js";import"./p-4b9b7778.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";
6
+ import{r as t,c as i,h as s,g as e}from"./p-6eb37ed2.js";import{c as a,d as o,u as n,I as r}from"./p-1ce2608d.js";import{c as d}from"./p-1c249530.js";import{d as c,c as h}from"./p-0a165419.js";import{d as l}from"./p-441f1992.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.
10
10
  * v2.12.2
11
- */const b="container",p="container--horizontal",f="container--vertical",m=class{constructor(e){t(this,e),this.calciteListOrderChange=i(this,"calciteListOrderChange",6),this.items=[],this.mutationObserver=d("mutation",(()=>{this.setUpSorting()})),this.dragEnabled=!0,this.canPull=void 0,this.canPut=void 0,this.dragSelector=void 0,this.group=void 0,this.handleSelector="calcite-handle",this.layout="vertical",this.disabled=!1,this.loading=!1}connectedCallback(){this.setUpSorting(),this.beginObserving(),a(this)}disconnectedCallback(){o(this),c(this),this.endObserving()}componentDidRender(){n(this)}calciteHandleNudgeNextHandler(t){this.handleNudgeEvent(t)}onGlobalDragStart(){this.endObserving()}onGlobalDragEnd(){this.beginObserving()}onDragEnd(){}onDragStart(){}onDragSort(){this.items=Array.from(this.el.children),this.calciteListOrderChange.emit()}handleNudgeEvent(t){const{direction:i}=t.detail,e=t.composedPath().find((t=>t.matches(this.handleSelector))),s=this.items.find((i=>i.contains(e)||t.composedPath().includes(i))),a=this.items.length-1,o=this.items.indexOf(s);let n,r=!1;"up"===i?0===o?r=!0:n=o-1:o===a?n=0:o===a-1?r=!0:n=o+2,this.endObserving(),r?s.parentElement.appendChild(s):s.parentElement.insertBefore(s,this.items[n]),this.items=Array.from(this.el.children),this.beginObserving(),requestAnimationFrame((()=>l(e))),"selected"in e&&(e.selected=!0)}setUpSorting(){this.items=Array.from(this.el.children),h(this)}beginObserving(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}endObserving(){this.mutationObserver?.disconnect()}render(){const{disabled:t,layout:i}=this,s="horizontal"===i||!1;return e(r,{key:"d88bb6eff8ac0c12fe058290a15b644f52b15efe",disabled:t},e("div",{key:"0ac98b39280cbe2f61103d5c2120a9822ccee243",class:{[b]:!0,[f]:!s,[p]:s}},e("slot",{key:"9b2cc37a435d630ed79ad33ad95ff578ed701999"})))}get el(){return s(this)}};m.style=":host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.container{display:flex;flex:1 1 auto}.container--vertical{flex-direction:column}.container--horizontal{flex-direction:row}:host([hidden]){display:none}[hidden]{display:none}";export{m as calcite_sortable_list}
11
+ */const b="container",p="container--horizontal",f="container--vertical",m=class{constructor(s){t(this,s),this.calciteListOrderChange=i(this,"calciteListOrderChange",6),this.items=[],this.mutationObserver=d("mutation",(()=>{this.setUpSorting()})),this.dragEnabled=!0,this.canPull=void 0,this.canPut=void 0,this.dragSelector=void 0,this.group=void 0,this.handleSelector="calcite-handle",this.layout="vertical",this.disabled=!1,this.loading=!1}connectedCallback(){this.setUpSorting(),this.beginObserving(),a(this)}disconnectedCallback(){o(this),c(this),this.endObserving()}componentDidRender(){n(this)}calciteHandleNudgeNextHandler(t){this.handleNudgeEvent(t)}onGlobalDragStart(){this.endObserving()}onGlobalDragEnd(){this.beginObserving()}onDragEnd(){}onDragStart(){}onDragSort(){this.items=Array.from(this.el.children),this.calciteListOrderChange.emit()}handleNudgeEvent(t){const{direction:i}=t.detail,s=t.composedPath().find((t=>t.matches(this.handleSelector))),e=this.items.find((i=>i.contains(s)||t.composedPath().includes(i))),a=this.items.length-1,o=this.items.indexOf(e);let n,r=!1;"up"===i?0===o?r=!0:n=o-1:o===a?n=0:o===a-1?r=!0:n=o+2,this.endObserving(),r?e.parentElement.appendChild(e):e.parentElement.insertBefore(e,this.items[n]),this.items=Array.from(this.el.children),this.beginObserving(),requestAnimationFrame((()=>l(s))),"selected"in s&&(s.selected=!0)}setUpSorting(){this.items=Array.from(this.el.children),h(this)}beginObserving(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}endObserving(){this.mutationObserver?.disconnect()}render(){const{disabled:t,layout:i}=this,e="horizontal"===i||!1;return s(r,{key:"d88bb6eff8ac0c12fe058290a15b644f52b15efe",disabled:t},s("div",{key:"0ac98b39280cbe2f61103d5c2120a9822ccee243",class:{[b]:!0,[f]:!e,[p]:e}},s("slot",{key:"9b2cc37a435d630ed79ad33ad95ff578ed701999"})))}get el(){return e(this)}};m.style=":host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.container{display:flex;flex:1 1 auto}.container--vertical{flex-direction:column}.container--horizontal{flex-direction:row}:host([hidden]){display:none}[hidden]{display:none}";export{m as calcite_sortable_list}
@@ -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 e,h as s,H as o,g as i}from"./p-6eb37ed2.js";import{a,t as c}from"./p-c25e8c35.js";import{c as n,d as r,H as l}from"./p-66b01781.js";import{g as h}from"./p-aaa56cbf.js";import{c as d,d as b,u as p,I as f}from"./p-1ce2608d.js";import{i as m}from"./p-64a34d92.js";import{c as g,d as u,g as k}from"./p-7c854814.js";import{c as v,s as x,a as y}from"./p-3e828614.js";import{C as z}from"./p-8bfa18b7.js";import"./p-4b9b7778.js";import"./p-27d462c0.js";
6
+ import{r as t,c as e,h as s,H as o,g as i}from"./p-6eb37ed2.js";import{h as a,t as c}from"./p-441f1992.js";import{c as n,d as r,H as l}from"./p-54fa7a94.js";import{g as h}from"./p-aaa56cbf.js";import{c as d,d as b,u as p,I as f}from"./p-1ce2608d.js";import{i as m}from"./p-64a34d92.js";import{c as g,d as u,g as k}from"./p-fd730974.js";import{c as v,s as x,a as y}from"./p-3e828614.js";import{C as z}from"./p-8bfa18b7.js";import"./p-4b9b7778.js";import"./p-27d462c0.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{_ as t}from"./p-74fbad1c.js";import{l as s}from"./p-2058b5d9.js";
6
+ import{_ as t}from"./p-dec62e5d.js";import{l as s}from"./p-2058b5d9.js";
7
7
  /** @license
8
8
  * Copyright 2022 Esri
9
9
  *
@@ -18,4 +18,4 @@ import{_ as t}from"./p-74fbad1c.js";import{l as s}from"./p-2058b5d9.js";
18
18
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
19
  * See the License for the specific language governing permissions and
20
20
  * limitations under the License.
21
- */class i{arcade;intl;async getPopupTitle(s,i){this.arcade||await this._initModules();let e={};for(const[t,i]of Object.entries(s.attributes))e={...e,[`{${t.toUpperCase()}}`]:i};const a=s.layer,o=this._removeTags(a?.popupTemplate?.title);if(o.includes("{expression/expr")&&null!=a?.popupTemplate?.expressionInfos)for(let t=0;t<a.popupTemplate?.expressionInfos.length;t++){const o=a.popupTemplate.expressionInfos[t],n=this.arcade.createArcadeProfile("popup");try{const t=await this.arcade.createArcadeExecutor(o.expression,n),r=await t.executeAsync({$feature:s,$layer:a,$map:i});null==r&&""===r||(e[`{expression/${o.name}}`.toUpperCase()]=r)}catch(t){console.error(t);continue}}return a.popupTemplate?.fieldInfos&&a.fields.forEach((i=>{const o=s.attributes[i.name],n=a.popupTemplate.fieldInfos.find((t=>t.fieldName.toLowerCase()===i.name.toLowerCase())),r=t(o,i.type,i.domain,n?.format,this.intl);e[`{${i.name.toUpperCase()}}`]=r??o})),o?.replace(/{.*?}/g,(t=>null!=e[t.toUpperCase()]?e[t.toUpperCase()]:""))}_removeTags(t){return null==t||""===t?"":t.toString().replace(/(<([^>]+)>)/gi,"")}async _initModules(){const[t,i]=await s(["esri/arcade","esri/intl"]);this.arcade=t,this.intl=i}}export{i as P}
21
+ */class e{arcade;intl;async getPopupTitle(s,e){this.arcade||await this._initModules();let i={};for(const[t,e]of Object.entries(s.attributes))i={...i,[`{${t.toUpperCase()}}`]:e};const a=s.layer,o=this._removeTags(a?.popupTemplate?.title);if(o.includes("{expression/expr")&&null!=a?.popupTemplate?.expressionInfos)for(let t=0;t<a.popupTemplate?.expressionInfos.length;t++){const o=a.popupTemplate.expressionInfos[t],n=this.arcade.createArcadeProfile("popup");try{const t=await this.arcade.createArcadeExecutor(o.expression,n),r=await t.executeAsync({$feature:s,$layer:a,$map:e});null==r&&""===r||(i[`{expression/${o.name}}`.toUpperCase()]=r)}catch(t){console.error(t);continue}}return a.popupTemplate?.fieldInfos&&a.fields.forEach((e=>{const o=s.attributes[e.name],n=a.popupTemplate.fieldInfos.find((t=>t.fieldName.toLowerCase()===e.name.toLowerCase())),r=t(o,e.type,e.domain,n?.format,this.intl);i[`{${e.name.toUpperCase()}}`]=r??o})),o?.replace(/{.*?}/g,(t=>null!=i[t.toUpperCase()]?i[t.toUpperCase()]:""))}_removeTags(t){return null==t||""===t?"":t.toString().replace(/(<([^>]+)>)/gi,"")}async _initModules(){const[t,e]=await s(["esri/arcade","esri/intl"]);this.arcade=t,this.intl=e}}export{e as P}
@@ -3,9 +3,9 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as t,c as e,h as o,H as i,g as c}from"./p-6eb37ed2.js";import{f as s,t as a}from"./p-c25e8c35.js";import{i as n}from"./p-64a34d92.js";import{c as r,d as l}from"./p-304cef31.js";import{u as h,c as d,s as g,d as p}from"./p-1017609e.js";import{c as v,s as b,a as f}from"./p-3e828614.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1c249530.js";import"./p-4b9b7778.js";
6
+ import{r as t,c as e,h as o,H as i,g as c}from"./p-6eb37ed2.js";import{f as s,t as a}from"./p-441f1992.js";import{i as n}from"./p-64a34d92.js";import{c as r,d as l}from"./p-42552409.js";import{u as d,c as h,s as g,d as p}from"./p-6e3f1d71.js";import{c as v,s as f,a as b}from"./p-3e828614.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1c249530.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.
10
10
  * v2.12.2
11
- */const u="content",m="toggle",x="invalid",w="section-header",k="status-icon",y="toggle",_="toggle--switch",j="toggle-container",C="valid",z={menuOpen:"chevron-up",menuClosed:"chevron-down",valid:"check-circle",invalid:"exclamation-mark-triangle"},L=class{constructor(o){t(this,o),this.calciteBlockSectionToggle=e(this,"calciteBlockSectionToggle",6),this.handleHeaderKeyDown=t=>{n(t.key)&&(this.toggleSection(),t.preventDefault(),t.stopPropagation())},this.toggleSection=()=>{this.open=!this.open,this.calciteBlockSectionToggle.emit()},this.iconEnd=void 0,this.iconFlipRtl=void 0,this.iconStart=void 0,this.open=!1,this.status=void 0,this.text=void 0,this.toggleDisplay="button",this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale=void 0,this.defaultMessages=void 0}onMessagesChange(){}async setFocus(){await v(this),s(this.el)}effectiveLocaleChange(){h(this,this.effectiveLocale)}connectedCallback(){r(this),d(this)}async componentWillLoad(){await g(this),b(this)}componentDidLoad(){f(this)}disconnectedCallback(){l(this),p(this)}renderStatusIcon(){const{status:t}=this,e=z[t]??!1;return e?o("calcite-icon",{class:{[k]:!0,[C]:"valid"==t,[x]:"invalid"==t},icon:e,scale:"s"}):null}renderIcon(t){const{iconFlipRtl:e}=this;if(void 0===t)return null;const i=t===this.iconStart;return o("calcite-icon",{class:i?"icon--start":"icon--end",flipRtl:i?"both"===e||"start"===e:"both"===e||"end"===e,icon:i?this.iconStart:this.iconEnd,key:i?this.iconStart:this.iconEnd,scale:"s"})}render(){const{messages:t,open:e,text:c,toggleDisplay:s}=this,n=e?z.menuOpen:z.menuClosed,r=e?t.collapse:t.expand,l="switch"===s?o("div",{class:{[j]:!0}},o("div",{"aria-controls":u,"aria-expanded":a(e),class:{[y]:!0,[_]:!0},id:m,onClick:this.toggleSection,onKeyDown:this.handleHeaderKeyDown,role:"button",tabIndex:0,title:r},this.renderIcon(this.iconStart),o("div",{class:"toggle--switch__content"},o("span",{class:"toggle--switch__text"},c)),this.renderIcon(this.iconEnd),this.renderStatusIcon(),o("calcite-switch",{checked:e,class:"switch",inert:!0,label:r,scale:"s"}))):o("div",{class:{[j]:!0}},o("button",{"aria-controls":u,"aria-expanded":a(e),class:{[w]:!0,[y]:!0},id:m,onClick:this.toggleSection},this.renderIcon(this.iconStart),o("span",{class:"section-header__text"},c),this.renderIcon(this.iconEnd),this.renderStatusIcon(),o("calcite-icon",{class:"chevron-icon",icon:n,scale:"s"})));return o(i,{key:"224c2187de037da1611a3228195e95ba43bde093"},l,o("section",{key:"8b8849645851e21e26c63cef44428f30d2429a0b","aria-labelledby":m,class:"content",hidden:!e,id:u},o("slot",{key:"3f6d783aaa6d886bb4533a4dec96aafc8ba058ef"})))}static get assetsDirs(){return["assets"]}get el(){return c(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};L.style=":host{box-sizing:border-box;display:block;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-2)}:host([open]){border-width:0px;border-block-end-width:1px;border-style:solid;border-block-end-color:var(--calcite-color-border-3)}:host([open]) .toggle{color:var(--calcite-color-text-1)}:host([open]) .toggle:hover{color:var(--calcite-color-text-1)}:host([open]) .chevron-icon{color:var(--calcite-color-text-3)}:host([open]) .chevron-icon:hover{color:var(--calcite-color-text-1)}:host(:last-child){border-block-end-width:0px}.toggle{inline-size:100%;border-width:0px;background-color:transparent;font-family:var(--calcite-font-family);gap:var(--calcite-spacing-md);color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-normal)}.toggle:hover{color:var(--calcite-color-text-1)}.toggle--switch,.section-header{margin-inline:0px;margin-block:0.25rem;display:flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;padding-inline:0px;padding-block:0.5rem;font-size:var(--calcite-font-size--1);outline-color:transparent}.toggle--switch:focus,.section-header:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}.toggle--switch:hover,.section-header:hover{color:var(--calcite-color-text-1)}.section-header__text{margin-block:0px;flex:1 1 auto;text-align:initial;word-wrap:anywhere}.toggle-container{position:relative;display:flex;align-items:center;background-color:transparent;word-break:break-word}.toggle-container .toggle--switch__content{display:flex;flex:1 1 auto;align-items:center}.toggle-container .icon--end,.toggle-container .icon--start,.toggle-container .chevron-icon{display:flex;align-items:center;color:var(--calcite-color-text-3)}.toggle-container .icon--end:hover,.toggle-container .icon--start:hover,.toggle-container .chevron-icon:hover{color:var(--calcite-color-text-1)}.status-icon{display:flex;align-items:center}.status-icon.valid{color:var(--calcite-color-status-success)}.status-icon.invalid{color:var(--calcite-color-status-danger)}:host([hidden]){display:none}[hidden]{display:none}";export{L as calcite_block_section}
11
+ */const u="content",m="toggle",x="invalid",w="section-header",k="status-icon",y="toggle",_="toggle--switch",j="toggle-container",C="valid",z={menuOpen:"chevron-up",menuClosed:"chevron-down",valid:"check-circle",invalid:"exclamation-mark-triangle"},L=class{constructor(o){t(this,o),this.calciteBlockSectionToggle=e(this,"calciteBlockSectionToggle",6),this.handleHeaderKeyDown=t=>{n(t.key)&&(this.toggleSection(),t.preventDefault(),t.stopPropagation())},this.toggleSection=()=>{this.open=!this.open,this.calciteBlockSectionToggle.emit()},this.iconEnd=void 0,this.iconFlipRtl=void 0,this.iconStart=void 0,this.open=!1,this.status=void 0,this.text=void 0,this.toggleDisplay="button",this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale=void 0,this.defaultMessages=void 0}onMessagesChange(){}async setFocus(){await v(this),s(this.el)}effectiveLocaleChange(){d(this,this.effectiveLocale)}connectedCallback(){r(this),h(this)}async componentWillLoad(){await g(this),f(this)}componentDidLoad(){b(this)}disconnectedCallback(){l(this),p(this)}renderStatusIcon(){const{status:t}=this,e=z[t]??!1;return e?o("calcite-icon",{class:{[k]:!0,[C]:"valid"==t,[x]:"invalid"==t},icon:e,scale:"s"}):null}renderIcon(t){const{iconFlipRtl:e}=this;if(void 0===t)return null;const i=t===this.iconStart;return o("calcite-icon",{class:i?"icon--start":"icon--end",flipRtl:i?"both"===e||"start"===e:"both"===e||"end"===e,icon:i?this.iconStart:this.iconEnd,key:i?this.iconStart:this.iconEnd,scale:"s"})}render(){const{messages:t,open:e,text:c,toggleDisplay:s}=this,n=e?z.menuOpen:z.menuClosed,r=e?t.collapse:t.expand,l="switch"===s?o("div",{class:{[j]:!0}},o("div",{"aria-controls":u,"aria-expanded":a(e),class:{[y]:!0,[_]:!0},id:m,onClick:this.toggleSection,onKeyDown:this.handleHeaderKeyDown,role:"button",tabIndex:0,title:r},this.renderIcon(this.iconStart),o("div",{class:"toggle--switch__content"},o("span",{class:"toggle--switch__text"},c)),this.renderIcon(this.iconEnd),this.renderStatusIcon(),o("calcite-switch",{checked:e,class:"switch",inert:!0,label:r,scale:"s"}))):o("div",{class:{[j]:!0}},o("button",{"aria-controls":u,"aria-expanded":a(e),class:{[w]:!0,[y]:!0},id:m,onClick:this.toggleSection},this.renderIcon(this.iconStart),o("span",{class:"section-header__text"},c),this.renderIcon(this.iconEnd),this.renderStatusIcon(),o("calcite-icon",{class:"chevron-icon",icon:n,scale:"s"})));return o(i,{key:"224c2187de037da1611a3228195e95ba43bde093"},l,o("section",{key:"8b8849645851e21e26c63cef44428f30d2429a0b","aria-labelledby":m,class:"content",hidden:!e,id:u},o("slot",{key:"3f6d783aaa6d886bb4533a4dec96aafc8ba058ef"})))}static get assetsDirs(){return["assets"]}get el(){return c(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};L.style=":host{box-sizing:border-box;display:block;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-2)}:host([open]){border-width:0px;border-block-end-width:1px;border-style:solid;border-block-end-color:var(--calcite-color-border-3)}:host([open]) .toggle{color:var(--calcite-color-text-1)}:host([open]) .toggle:hover{color:var(--calcite-color-text-1)}:host([open]) .chevron-icon{color:var(--calcite-color-text-3)}:host([open]) .chevron-icon:hover{color:var(--calcite-color-text-1)}:host(:last-child){border-block-end-width:0px}.toggle{inline-size:100%;border-width:0px;background-color:transparent;font-family:var(--calcite-font-family);gap:var(--calcite-spacing-md);color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-normal)}.toggle:hover{color:var(--calcite-color-text-1)}.toggle--switch,.section-header{margin-inline:0px;margin-block:0.25rem;display:flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;padding-inline:0px;padding-block:0.5rem;font-size:var(--calcite-font-size--1);outline-color:transparent}.toggle--switch:focus,.section-header:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}.toggle--switch:hover,.section-header:hover{color:var(--calcite-color-text-1)}.section-header__text{margin-block:0px;flex:1 1 auto;text-align:initial;word-wrap:anywhere}.toggle-container{position:relative;display:flex;align-items:center;background-color:transparent;word-break:break-word}.toggle-container .toggle--switch__content{display:flex;flex:1 1 auto;align-items:center}.toggle-container .icon--end,.toggle-container .icon--start,.toggle-container .chevron-icon{display:flex;align-items:center;color:var(--calcite-color-text-3)}.toggle-container .icon--end:hover,.toggle-container .icon--start:hover,.toggle-container .chevron-icon:hover{color:var(--calcite-color-text-1)}.status-icon{display:flex;align-items:center}.status-icon.valid{color:var(--calcite-color-status-success)}.status-icon.invalid{color:var(--calcite-color-status-danger)}:host([hidden]){display:none}[hidden]{display:none}";export{L as calcite_block_section}
@@ -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{D as t}from"./p-8bfa18b7.js";import{a as n}from"./p-c25e8c35.js";import{i as e}from"./p-4b9b7778.js";import{d as o}from"./p-c8d3207e.js";const r=["top","right","bottom","left"],i=["start","end"],a=r.reduce(((t,n)=>t.concat(n,n+"-"+i[0],n+"-"+i[1])),[]),l=Math.min,c=Math.max,s=Math.round,u=Math.floor,f=t=>({x:t,y:t}),d={left:"right",right:"left",bottom:"top",top:"bottom"},m={start:"end",end:"start"};function p(t,n,e){return c(t,l(n,e))}function y(t,n){return"function"==typeof t?t(n):t}function g(t){return t.split("-")[0]}function h(t){return t.split("-")[1]}function w(t){return"x"===t?"y":"x"}function v(t){return"y"===t?"height":"width"}function x(t){return["top","bottom"].includes(g(t))?"y":"x"}function b(t){return w(x(t))}function A(t,n,e){void 0===e&&(e=!1);const o=h(t),r=b(t),i=v(r);let a="x"===r?o===(e?"end":"start")?"right":"left":"start"===o?"bottom":"top";return n.reference[i]>n.floating[i]&&(a=k(a)),[a,k(a)]}function S(t){return t.replace(/start|end/g,(t=>m[t]))}function k(t){return t.replace(/left|right|bottom|top/g,(t=>d[t]))}function D(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function P(t){const{x:n,y:e,width:o,height:r}=t;return{width:o,height:r,top:e,left:n,right:n+o,bottom:e+r,x:n,y:e}}function O(t,n,e){let{reference:o,floating:r}=t;const i=x(n),a=b(n),l=v(a),c=g(n),s="y"===i,u=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,d=o[l]/2-r[l]/2;let m;switch(c){case"top":m={x:u,y:o.y-r.height};break;case"bottom":m={x:u,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:f};break;case"left":m={x:o.x-r.width,y:f};break;default:m={x:o.x,y:o.y}}switch(h(n)){case"start":m[a]-=d*(e&&s?-1:1);break;case"end":m[a]+=d*(e&&s?-1:1)}return m}async function R(t,n){var e;void 0===n&&(n={});const{x:o,y:r,platform:i,rects:a,elements:l,strategy:c}=t,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:m=0}=y(n,t),p=D(m),g=l[d?"floating"===f?"reference":"floating":f],h=P(await i.getClippingRect({element:null==(e=await(null==i.isElement?void 0:i.isElement(g)))||e?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:s,rootBoundary:u,strategy:c})),w="floating"===f?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),x=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},b=P(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:v,strategy:c}):w);return{top:(h.top-b.top+p.top)/x.y,bottom:(b.bottom-h.bottom+p.bottom)/x.y,left:(h.left-b.left+p.left)/x.x,right:(b.right-h.right+p.right)/x.x}}function E(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function F(t){return r.some((n=>t[n]>=0))}function M(t){return C(t)?(t.nodeName||"").toLowerCase():"#document"}function T(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function j(t){var n;return null==(n=(C(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function C(t){return t instanceof Node||t instanceof T(t).Node}function $(t){return t instanceof Element||t instanceof T(t).Element}function z(t){return t instanceof HTMLElement||t instanceof T(t).HTMLElement}function B(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof T(t).ShadowRoot)}function L(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=Y(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!["inline","contents"].includes(r)}function H(t){return["table","td","th"].includes(M(t))}function I(t){return[":popover-open",":modal"].some((n=>{try{return t.matches(n)}catch(t){return!1}}))}function W(t){const n=N(),e=$(t)?Y(t):t;return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function N(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function q(t){return["html","body","#document"].includes(M(t))}function Y(t){return T(t).getComputedStyle(t)}function U(t){return $(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function V(t){if("html"===M(t))return t;const n=t.assignedSlot||t.parentNode||B(t)&&t.host||j(t);return B(n)?n.host:n}function X(t){const n=V(t);return q(n)?t.ownerDocument?t.ownerDocument.body:t.body:z(n)&&L(n)?n:X(n)}function _(t,n,e){var o;void 0===n&&(n=[]),void 0===e&&(e=!0);const r=X(t),i=r===(null==(o=t.ownerDocument)?void 0:o.body),a=T(r);if(i){const t=G(a);return n.concat(a,a.visualViewport||[],L(r)?r:[],t&&e?_(t):[])}return n.concat(r,_(r,[],e))}function G(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function J(t){const n=Y(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const r=z(t),i=r?t.offsetWidth:e,a=r?t.offsetHeight:o,l=s(e)!==i||s(o)!==a;return l&&(e=i,o=a),{width:e,height:o,$:l}}function K(t){return $(t)?t:t.contextElement}function Q(t){const n=K(t);if(!z(n))return f(1);const e=n.getBoundingClientRect(),{width:o,height:r,$:i}=J(n);let a=(i?s(e.width):e.width)/o,l=(i?s(e.height):e.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Z=f(0);function tt(t){const n=T(t);return N()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:Z}function nt(t,n,e,o){void 0===n&&(n=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),i=K(t);let a=f(1);n&&(o?$(o)&&(a=Q(o)):a=Q(t));const l=function(t,n,e){return void 0===n&&(n=!1),!(!e||n&&e!==T(t))&&n}(i,e,o)?tt(i):f(0);let c=(r.left+l.x)/a.x,s=(r.top+l.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i){const t=T(i),n=o&&$(o)?T(o):o;let e=t,r=G(e);for(;r&&o&&n!==e;){const t=Q(r),n=r.getBoundingClientRect(),o=Y(r),i=n.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,a=n.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,s*=t.y,u*=t.x,d*=t.y,c+=i,s+=a,e=T(r),r=G(e)}}return P({width:u,height:d,x:c,y:s})}function et(t){return nt(j(t)).left+U(t).scrollLeft}function ot(t,n,e){let o;if("viewport"===n)o=function(t,n){const e=T(t),o=j(t),r=e.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;const t=N();(!t||t&&"fixed"===n)&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l,y:c}}(t,e);else if("document"===n)o=function(t){const n=j(t),e=U(t),o=t.ownerDocument.body,r=c(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),i=c(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let a=-e.scrollLeft+et(t);const l=-e.scrollTop;return"rtl"===Y(o).direction&&(a+=c(n.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}(j(t));else if($(n))o=function(t,n){const e=nt(t,!0,"fixed"===n),o=e.top+t.clientTop,r=e.left+t.clientLeft,i=z(t)?Q(t):f(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(n,e);else{const e=tt(t);o={...n,x:n.x-e.x,y:n.y-e.y}}return P(o)}function rt(t,n){const e=V(t);return!(e===n||!$(e)||q(e))&&("fixed"===Y(e).position||rt(e,n))}function it(t,n,e){const o=z(n),r=j(n),i="fixed"===e,a=nt(t,!0,i,n);let l={scrollLeft:0,scrollTop:0};const c=f(0);if(o||!o&&!i)if(("body"!==M(n)||L(r))&&(l=U(n)),o){const t=nt(n,!0,i,n);c.x=t.x+n.clientLeft,c.y=t.y+n.clientTop}else r&&(c.x=et(r));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function at(t){return"static"===Y(t).position}function lt(t,n){return z(t)&&"fixed"!==Y(t).position?n?n(t):t.offsetParent:null}function ct(t,n){const e=T(t);if(I(t))return e;if(!z(t)){let n=V(t);for(;n&&!q(n);){if($(n)&&!at(n))return n;n=V(n)}return e}let o=lt(t,n);for(;o&&H(o)&&at(o);)o=lt(o,n);return o&&q(o)&&at(o)&&!W(o)?e:o||function(t){let n=V(t);for(;z(n)&&!q(n);){if(W(n))return n;if(I(n))return null;n=V(n)}return null}(t)||e}const st={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:n,rect:e,offsetParent:o,strategy:r}=t;const i="fixed"===r,a=j(o),l=!!n&&I(n.floating);if(o===a||l&&i)return e;let c={scrollLeft:0,scrollTop:0},s=f(1);const u=f(0),d=z(o);if((d||!d&&!i)&&(("body"!==M(o)||L(a))&&(c=U(o)),z(o))){const t=nt(o);s=Q(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-c.scrollLeft*s.x+u.x,y:e.y*s.y-c.scrollTop*s.y+u.y}},getDocumentElement:j,getClippingRect:function(t){let{element:n,boundary:e,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===e?I(n)?[]:function(t,n){const e=n.get(t);if(e)return e;let o=_(t,[],!1).filter((t=>$(t)&&"body"!==M(t))),r=null;const i="fixed"===Y(t).position;let a=i?V(t):t;for(;$(a)&&!q(a);){const n=Y(a),e=W(a);e||"fixed"!==n.position||(r=null),(i?!e&&!r:!e&&"static"===n.position&&r&&["absolute","fixed"].includes(r.position)||L(a)&&!e&&rt(t,a))?o=o.filter((t=>t!==a)):r=n,a=V(a)}return n.set(t,o),o}(n,this._c):[].concat(e),o],a=i.reduce(((t,e)=>{const o=ot(n,e,r);return t.top=c(o.top,t.top),t.right=l(o.right,t.right),t.bottom=l(o.bottom,t.bottom),t.left=c(o.left,t.left),t}),ot(n,i[0],r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:ct,getElementRects:async function(t){const n=this.getOffsetParent||ct,e=this.getDimensions,o=await e(t.floating);return{reference:it(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:n,height:e}=J(t);return{width:n,height:e}},getScale:Q,isElement:$,isRTL:function(t){return"rtl"===Y(t).direction}};function ut(t,n,e,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:f=!1}=o,d=K(t),m=r||i?[...d?_(d):[],..._(n)]:[];m.forEach((t=>{r&&t.addEventListener("scroll",e,{passive:!0}),i&&t.addEventListener("resize",e)}));const p=d&&s?function(t,n){let e,o=null;const r=j(t);function i(){var t;clearTimeout(e),null==(t=o)||t.disconnect(),o=null}return function a(s,f){void 0===s&&(s=!1),void 0===f&&(f=1),i();const{left:d,top:m,width:p,height:y}=t.getBoundingClientRect();if(s||n(),!p||!y)return;const g={rootMargin:-u(m)+"px "+-u(r.clientWidth-(d+p))+"px "+-u(r.clientHeight-(m+y))+"px "+-u(d)+"px",threshold:c(0,l(1,f))||1};let h=!0;function w(t){const n=t[0].intersectionRatio;if(n!==f){if(!h)return a();n?a(!1,n):e=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{o=new IntersectionObserver(w,{...g,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(w,g)}o.observe(t)}(!0),i}(d,e):null;let y,g=-1,h=null;a&&(h=new ResizeObserver((t=>{let[o]=t;o&&o.target===d&&h&&(h.unobserve(n),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var t;null==(t=h)||t.observe(n)}))),e()})),d&&!f&&h.observe(d),h.observe(n));let w=f?nt(t):null;return f&&function n(){const o=nt(t);!w||o.x===w.x&&o.y===w.y&&o.width===w.width&&o.height===w.height||e(),w=o,y=requestAnimationFrame(n)}(),e(),()=>{var t;m.forEach((t=>{r&&t.removeEventListener("scroll",e),i&&t.removeEventListener("resize",e)})),null==p||p(),null==(t=h)||t.disconnect(),h=null,f&&cancelAnimationFrame(y)}}const ft=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(n){var e,o;const{x:r,y:i,placement:a,middlewareData:l}=n,c=await async function(t,n){const{placement:e,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=g(e),l=h(e),c="y"===x(e),s=["left","top"].includes(a)?-1:1,u=i&&c?-1:1,f=y(n,t);let{mainAxis:d,crossAxis:m,alignmentAxis:p}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&"number"==typeof p&&(m="end"===l?-1*p:p),c?{x:m*u,y:d*s}:{x:d*s,y:m*u}}(n,t);return a===(null==(e=l.offset)?void 0:e.placement)&&null!=(o=l.arrow)&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:a}}}}},dt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var e,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:l,platform:c,elements:s}=n,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:w=!0,...v}=y(t,n);if(null!=(e=i.arrow)&&e.alignmentOffset)return{};const b=g(r),D=x(l),P=g(l)===l,O=await(null==c.isRTL?void 0:c.isRTL(s.floating)),E=d||(P||!w?[k(l)]:function(t){const n=k(t);return[S(t),n,S(n)]}(l)),F="none"!==p;!d&&F&&E.push(...function(t,n,e,o){const r=h(t);let i=function(t,n,e){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?n?r:o:n?o:r;case"left":case"right":return n?i:a;default:return[]}}(g(t),"start"===e,o);return r&&(i=i.map((t=>t+"-"+r)),n&&(i=i.concat(i.map(S)))),i}(l,w,p,O));const M=[l,...E],T=await R(n,v),j=[];let C=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&j.push(T[b]),f){const t=A(r,a,O);j.push(T[t[0]],T[t[1]])}if(C=[...C,{placement:r,overflows:j}],!j.every((t=>t<=0))){var $,z;const t=((null==($=i.flip)?void 0:$.index)||0)+1,n=M[t];if(n)return{data:{index:t,overflows:C},reset:{placement:n}};let e=null==(z=C.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:z.placement;if(!e)switch(m){case"bestFit":{var B;const t=null==(B=C.filter((t=>{if(F){const n=x(t.placement);return n===D||"y"===n}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:B[0];t&&(e=t);break}case"initialPlacement":e=l}if(r!==e)return{reset:{placement:e}}}return{}}}},mt=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(n){const{rects:e}=n,{strategy:o="referenceHidden",...r}=y(t,n);switch(o){case"referenceHidden":{const t=E(await R(n,{...r,elementContext:"reference"}),e.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:F(t)}}}case"escaped":{const t=E(await R(n,{...r,altBoundary:!0}),e.floating);return{data:{escapedOffsets:t,escaped:F(t)}}}default:return{}}}}};function pt(t){return function(t){for(let n=t;n;n=yt(n))if(n instanceof Element&&"none"===getComputedStyle(n).display)return null;for(let n=yt(t);n;n=yt(n)){if(!(n instanceof Element))continue;const t=getComputedStyle(n);if("contents"!==t.display){if("static"!==t.position||W(t))return n;if("BODY"===n.tagName)return n}}return null}
6
+ import{D as t}from"./p-8bfa18b7.js";import{h as n}from"./p-441f1992.js";import{i as e}from"./p-4b9b7778.js";import{d as o}from"./p-c8d3207e.js";const r=["top","right","bottom","left"],i=["start","end"],a=r.reduce(((t,n)=>t.concat(n,n+"-"+i[0],n+"-"+i[1])),[]),l=Math.min,c=Math.max,s=Math.round,u=Math.floor,f=t=>({x:t,y:t}),d={left:"right",right:"left",bottom:"top",top:"bottom"},m={start:"end",end:"start"};function p(t,n,e){return c(t,l(n,e))}function y(t,n){return"function"==typeof t?t(n):t}function g(t){return t.split("-")[0]}function h(t){return t.split("-")[1]}function w(t){return"x"===t?"y":"x"}function v(t){return"y"===t?"height":"width"}function x(t){return["top","bottom"].includes(g(t))?"y":"x"}function b(t){return w(x(t))}function A(t,n,e){void 0===e&&(e=!1);const o=h(t),r=b(t),i=v(r);let a="x"===r?o===(e?"end":"start")?"right":"left":"start"===o?"bottom":"top";return n.reference[i]>n.floating[i]&&(a=k(a)),[a,k(a)]}function S(t){return t.replace(/start|end/g,(t=>m[t]))}function k(t){return t.replace(/left|right|bottom|top/g,(t=>d[t]))}function D(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function P(t){const{x:n,y:e,width:o,height:r}=t;return{width:o,height:r,top:e,left:n,right:n+o,bottom:e+r,x:n,y:e}}function O(t,n,e){let{reference:o,floating:r}=t;const i=x(n),a=b(n),l=v(a),c=g(n),s="y"===i,u=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,d=o[l]/2-r[l]/2;let m;switch(c){case"top":m={x:u,y:o.y-r.height};break;case"bottom":m={x:u,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:f};break;case"left":m={x:o.x-r.width,y:f};break;default:m={x:o.x,y:o.y}}switch(h(n)){case"start":m[a]-=d*(e&&s?-1:1);break;case"end":m[a]+=d*(e&&s?-1:1)}return m}async function R(t,n){var e;void 0===n&&(n={});const{x:o,y:r,platform:i,rects:a,elements:l,strategy:c}=t,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:m=0}=y(n,t),p=D(m),g=l[d?"floating"===f?"reference":"floating":f],h=P(await i.getClippingRect({element:null==(e=await(null==i.isElement?void 0:i.isElement(g)))||e?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:s,rootBoundary:u,strategy:c})),w="floating"===f?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),x=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},b=P(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:v,strategy:c}):w);return{top:(h.top-b.top+p.top)/x.y,bottom:(b.bottom-h.bottom+p.bottom)/x.y,left:(h.left-b.left+p.left)/x.x,right:(b.right-h.right+p.right)/x.x}}function E(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function F(t){return r.some((n=>t[n]>=0))}function M(t){return C(t)?(t.nodeName||"").toLowerCase():"#document"}function T(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function j(t){var n;return null==(n=(C(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function C(t){return t instanceof Node||t instanceof T(t).Node}function $(t){return t instanceof Element||t instanceof T(t).Element}function z(t){return t instanceof HTMLElement||t instanceof T(t).HTMLElement}function B(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof T(t).ShadowRoot)}function L(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=Y(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!["inline","contents"].includes(r)}function H(t){return["table","td","th"].includes(M(t))}function I(t){return[":popover-open",":modal"].some((n=>{try{return t.matches(n)}catch(t){return!1}}))}function W(t){const n=N(),e=$(t)?Y(t):t;return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function N(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function q(t){return["html","body","#document"].includes(M(t))}function Y(t){return T(t).getComputedStyle(t)}function U(t){return $(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function V(t){if("html"===M(t))return t;const n=t.assignedSlot||t.parentNode||B(t)&&t.host||j(t);return B(n)?n.host:n}function X(t){const n=V(t);return q(n)?t.ownerDocument?t.ownerDocument.body:t.body:z(n)&&L(n)?n:X(n)}function _(t,n,e){var o;void 0===n&&(n=[]),void 0===e&&(e=!0);const r=X(t),i=r===(null==(o=t.ownerDocument)?void 0:o.body),a=T(r);if(i){const t=G(a);return n.concat(a,a.visualViewport||[],L(r)?r:[],t&&e?_(t):[])}return n.concat(r,_(r,[],e))}function G(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function J(t){const n=Y(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const r=z(t),i=r?t.offsetWidth:e,a=r?t.offsetHeight:o,l=s(e)!==i||s(o)!==a;return l&&(e=i,o=a),{width:e,height:o,$:l}}function K(t){return $(t)?t:t.contextElement}function Q(t){const n=K(t);if(!z(n))return f(1);const e=n.getBoundingClientRect(),{width:o,height:r,$:i}=J(n);let a=(i?s(e.width):e.width)/o,l=(i?s(e.height):e.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Z=f(0);function tt(t){const n=T(t);return N()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:Z}function nt(t,n,e,o){void 0===n&&(n=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),i=K(t);let a=f(1);n&&(o?$(o)&&(a=Q(o)):a=Q(t));const l=function(t,n,e){return void 0===n&&(n=!1),!(!e||n&&e!==T(t))&&n}(i,e,o)?tt(i):f(0);let c=(r.left+l.x)/a.x,s=(r.top+l.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i){const t=T(i),n=o&&$(o)?T(o):o;let e=t,r=G(e);for(;r&&o&&n!==e;){const t=Q(r),n=r.getBoundingClientRect(),o=Y(r),i=n.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,a=n.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,s*=t.y,u*=t.x,d*=t.y,c+=i,s+=a,e=T(r),r=G(e)}}return P({width:u,height:d,x:c,y:s})}function et(t){return nt(j(t)).left+U(t).scrollLeft}function ot(t,n,e){let o;if("viewport"===n)o=function(t,n){const e=T(t),o=j(t),r=e.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;const t=N();(!t||t&&"fixed"===n)&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l,y:c}}(t,e);else if("document"===n)o=function(t){const n=j(t),e=U(t),o=t.ownerDocument.body,r=c(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),i=c(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let a=-e.scrollLeft+et(t);const l=-e.scrollTop;return"rtl"===Y(o).direction&&(a+=c(n.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}(j(t));else if($(n))o=function(t,n){const e=nt(t,!0,"fixed"===n),o=e.top+t.clientTop,r=e.left+t.clientLeft,i=z(t)?Q(t):f(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(n,e);else{const e=tt(t);o={...n,x:n.x-e.x,y:n.y-e.y}}return P(o)}function rt(t,n){const e=V(t);return!(e===n||!$(e)||q(e))&&("fixed"===Y(e).position||rt(e,n))}function it(t,n,e){const o=z(n),r=j(n),i="fixed"===e,a=nt(t,!0,i,n);let l={scrollLeft:0,scrollTop:0};const c=f(0);if(o||!o&&!i)if(("body"!==M(n)||L(r))&&(l=U(n)),o){const t=nt(n,!0,i,n);c.x=t.x+n.clientLeft,c.y=t.y+n.clientTop}else r&&(c.x=et(r));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function at(t){return"static"===Y(t).position}function lt(t,n){return z(t)&&"fixed"!==Y(t).position?n?n(t):t.offsetParent:null}function ct(t,n){const e=T(t);if(I(t))return e;if(!z(t)){let n=V(t);for(;n&&!q(n);){if($(n)&&!at(n))return n;n=V(n)}return e}let o=lt(t,n);for(;o&&H(o)&&at(o);)o=lt(o,n);return o&&q(o)&&at(o)&&!W(o)?e:o||function(t){let n=V(t);for(;z(n)&&!q(n);){if(W(n))return n;if(I(n))return null;n=V(n)}return null}(t)||e}const st={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:n,rect:e,offsetParent:o,strategy:r}=t;const i="fixed"===r,a=j(o),l=!!n&&I(n.floating);if(o===a||l&&i)return e;let c={scrollLeft:0,scrollTop:0},s=f(1);const u=f(0),d=z(o);if((d||!d&&!i)&&(("body"!==M(o)||L(a))&&(c=U(o)),z(o))){const t=nt(o);s=Q(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-c.scrollLeft*s.x+u.x,y:e.y*s.y-c.scrollTop*s.y+u.y}},getDocumentElement:j,getClippingRect:function(t){let{element:n,boundary:e,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===e?I(n)?[]:function(t,n){const e=n.get(t);if(e)return e;let o=_(t,[],!1).filter((t=>$(t)&&"body"!==M(t))),r=null;const i="fixed"===Y(t).position;let a=i?V(t):t;for(;$(a)&&!q(a);){const n=Y(a),e=W(a);e||"fixed"!==n.position||(r=null),(i?!e&&!r:!e&&"static"===n.position&&r&&["absolute","fixed"].includes(r.position)||L(a)&&!e&&rt(t,a))?o=o.filter((t=>t!==a)):r=n,a=V(a)}return n.set(t,o),o}(n,this._c):[].concat(e),o],a=i.reduce(((t,e)=>{const o=ot(n,e,r);return t.top=c(o.top,t.top),t.right=l(o.right,t.right),t.bottom=l(o.bottom,t.bottom),t.left=c(o.left,t.left),t}),ot(n,i[0],r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:ct,getElementRects:async function(t){const n=this.getOffsetParent||ct,e=this.getDimensions,o=await e(t.floating);return{reference:it(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:n,height:e}=J(t);return{width:n,height:e}},getScale:Q,isElement:$,isRTL:function(t){return"rtl"===Y(t).direction}};function ut(t,n,e,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:f=!1}=o,d=K(t),m=r||i?[...d?_(d):[],..._(n)]:[];m.forEach((t=>{r&&t.addEventListener("scroll",e,{passive:!0}),i&&t.addEventListener("resize",e)}));const p=d&&s?function(t,n){let e,o=null;const r=j(t);function i(){var t;clearTimeout(e),null==(t=o)||t.disconnect(),o=null}return function a(s,f){void 0===s&&(s=!1),void 0===f&&(f=1),i();const{left:d,top:m,width:p,height:y}=t.getBoundingClientRect();if(s||n(),!p||!y)return;const g={rootMargin:-u(m)+"px "+-u(r.clientWidth-(d+p))+"px "+-u(r.clientHeight-(m+y))+"px "+-u(d)+"px",threshold:c(0,l(1,f))||1};let h=!0;function w(t){const n=t[0].intersectionRatio;if(n!==f){if(!h)return a();n?a(!1,n):e=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{o=new IntersectionObserver(w,{...g,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(w,g)}o.observe(t)}(!0),i}(d,e):null;let y,g=-1,h=null;a&&(h=new ResizeObserver((t=>{let[o]=t;o&&o.target===d&&h&&(h.unobserve(n),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var t;null==(t=h)||t.observe(n)}))),e()})),d&&!f&&h.observe(d),h.observe(n));let w=f?nt(t):null;return f&&function n(){const o=nt(t);!w||o.x===w.x&&o.y===w.y&&o.width===w.width&&o.height===w.height||e(),w=o,y=requestAnimationFrame(n)}(),e(),()=>{var t;m.forEach((t=>{r&&t.removeEventListener("scroll",e),i&&t.removeEventListener("resize",e)})),null==p||p(),null==(t=h)||t.disconnect(),h=null,f&&cancelAnimationFrame(y)}}const ft=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(n){var e,o;const{x:r,y:i,placement:a,middlewareData:l}=n,c=await async function(t,n){const{placement:e,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=g(e),l=h(e),c="y"===x(e),s=["left","top"].includes(a)?-1:1,u=i&&c?-1:1,f=y(n,t);let{mainAxis:d,crossAxis:m,alignmentAxis:p}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&"number"==typeof p&&(m="end"===l?-1*p:p),c?{x:m*u,y:d*s}:{x:d*s,y:m*u}}(n,t);return a===(null==(e=l.offset)?void 0:e.placement)&&null!=(o=l.arrow)&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:a}}}}},dt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var e,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:l,platform:c,elements:s}=n,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:w=!0,...v}=y(t,n);if(null!=(e=i.arrow)&&e.alignmentOffset)return{};const b=g(r),D=x(l),P=g(l)===l,O=await(null==c.isRTL?void 0:c.isRTL(s.floating)),E=d||(P||!w?[k(l)]:function(t){const n=k(t);return[S(t),n,S(n)]}(l)),F="none"!==p;!d&&F&&E.push(...function(t,n,e,o){const r=h(t);let i=function(t,n,e){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?n?r:o:n?o:r;case"left":case"right":return n?i:a;default:return[]}}(g(t),"start"===e,o);return r&&(i=i.map((t=>t+"-"+r)),n&&(i=i.concat(i.map(S)))),i}(l,w,p,O));const M=[l,...E],T=await R(n,v),j=[];let C=(null==(o=i.flip)?void 0:o.overflows)||[];if(u&&j.push(T[b]),f){const t=A(r,a,O);j.push(T[t[0]],T[t[1]])}if(C=[...C,{placement:r,overflows:j}],!j.every((t=>t<=0))){var $,z;const t=((null==($=i.flip)?void 0:$.index)||0)+1,n=M[t];if(n)return{data:{index:t,overflows:C},reset:{placement:n}};let e=null==(z=C.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:z.placement;if(!e)switch(m){case"bestFit":{var B;const t=null==(B=C.filter((t=>{if(F){const n=x(t.placement);return n===D||"y"===n}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:B[0];t&&(e=t);break}case"initialPlacement":e=l}if(r!==e)return{reset:{placement:e}}}return{}}}},mt=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(n){const{rects:e}=n,{strategy:o="referenceHidden",...r}=y(t,n);switch(o){case"referenceHidden":{const t=E(await R(n,{...r,elementContext:"reference"}),e.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:F(t)}}}case"escaped":{const t=E(await R(n,{...r,altBoundary:!0}),e.floating);return{data:{escapedOffsets:t,escaped:F(t)}}}default:return{}}}}};function pt(t){return function(t){for(let n=t;n;n=yt(n))if(n instanceof Element&&"none"===getComputedStyle(n).display)return null;for(let n=yt(t);n;n=yt(n)){if(!(n instanceof Element))continue;const t=getComputedStyle(n);if("contents"!==t.display){if("static"!==t.position||W(t))return n;if("BODY"===n.tagName)return n}}return null}
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 a,H as r,g as i,F as s}from"./p-6eb37ed2.js";import{a as o,h as n,b as c,i as h,j as d,n as l,p,k as f,l as g}from"./p-d36878db.js";import{c as v,t as u}from"./p-c25e8c35.js";import{I as y,c as b,u as m,d as w}from"./p-1ce2608d.js";import{i as x}from"./p-64a34d92.js";import{n as k}from"./p-304cef31.js";import{s as z,a as D,c as j}from"./p-3e828614.js";import{H as I}from"./p-1b229454.js";import{g as C}from"./p-27d462c0.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";import"./p-1c249530.js";const S=class{constructor(a){e(this,a),this.calciteDaySelect=t(this,"calciteDaySelect",6),this.calciteInternalDayHover=t(this,"calciteInternalDayHover",6),this.onClick=()=>{this.disabled||this.calciteDaySelect.emit()},this.keyDownHandler=e=>{x(e.key)&&(!this.disabled&&this.calciteDaySelect.emit(),e.preventDefault())},this.day=void 0,this.dateTimeFormat=void 0,this.disabled=!1,this.currentMonth=!1,this.selected=!1,this.highlighted=!1,this.range=!1,this.rangeEdge=void 0,this.startOfRange=!1,this.endOfRange=!1,this.rangeHover=!1,this.active=!1,this.scale=void 0,this.value=void 0}pointerOverHandler(){this.disabled||this.calciteInternalDayHover.emit()}async componentWillLoad(){z(this),this.parentDatePickerEl=v(this.el,"calcite-date-picker")}componentDidLoad(){D(this)}async setFocus(){await j(this),this.el.focus()}render(){const e=o(this.value).replaceAll("-","");if(this.parentDatePickerEl){const{numberingSystem:e,lang:t}=this.parentDatePickerEl;k.numberFormatOptions={useGrouping:!1,...e&&{numberingSystem:e},...t&&{locale:t}}}const t=k.localize(String(this.day)),i=this.dateTimeFormat.format(this.value);return a(r,{key:"21762e1ba60bf298f05cb5c0499eb57bfc5a279d","aria-disabled":u(this.disabled),"aria-label":i,"aria-selected":u(this.active),id:e,onClick:this.onClick,onKeyDown:this.keyDownHandler,role:"button",tabIndex:this.active&&!this.disabled?0:-1},a(y,{key:"449226e496db81d7a029172ae69e1bf9da229603",disabled:this.disabled},a("div",{key:"147f12c8bc782776df768e01ab8e6de0a6a2eb9f","aria-hidden":"true",class:{"day-v-wrapper":!0}},a("div",{key:"e38b3d2b999df042c92a609474a35ef2937dd024",class:"day-wrapper"},a("span",{key:"f8e97122b32053d78ff43ef85771fbeb8ff7b180",class:"day"},a("span",{key:"a10f30dea71f9774bdf10b55b3564f54c62e7970",class:"text"},t))))))}connectedCallback(){b(this)}componentDidRender(){m(this)}disconnectedCallback(){w(this)}get el(){return i(this)}};S.style=':host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:flex;cursor:pointer;color:var(--calcite-color-text-3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.day-v-wrapper{flex:1 1 auto}.day-wrapper{position:relative;display:flex;flex-direction:column;align-items:center}:host([range]) .day-wrapper::before,:host([range]) .day-wrapper::after,:host([range-hover]) .day-wrapper::before,:host([range-hover]) .day-wrapper::after{pointer-events:none;position:absolute;inset-block:0;content:"";block-size:var(--calcite-internal-day-size);inline-size:var(--calcite-internal-day-size)}.day{z-index:var(--calcite-z-index);display:flex;align-items:center;justify-content:center;border-radius:9999px;font-size:var(--calcite-font-size--2);line-height:1rem;line-height:1;color:var(--calcite-color-text-3);outline-color:transparent;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;background:none;box-shadow:0 0 0 2px transparent;block-size:var(--calcite-internal-day-size);inline-size:var(--calcite-internal-day-size)}.text{margin-block:1px 0px;margin-inline-start:0px}:host([scale=s]){--calcite-internal-day-size:27px}:host([scale=s]) .day-v-wrapper{padding-block:0.125rem}:host([scale=s]) .day-wrapper{padding:0px}:host([scale=s]) .day{font-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-internal-day-size:33px}:host([scale=m]) .day-v-wrapper{padding-block:0.25rem}:host([scale=m]) .day-wrapper{padding:0px}:host([scale=m]) .day{font-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-internal-day-size:43px}:host([scale=l]) .day-v-wrapper{padding-block:0.25rem}:host([scale=l]) .day-wrapper{padding-inline:0.25rem}:host([scale=l]) .day{font-size:var(--calcite-font-size-0)}:host(:not([current-month])) .day{opacity:var(--calcite-opacity-disabled)}:host(:hover:not([disabled]):not([selected])) .day,:host([active]:not([range]):not([selected])) .day{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}:host(:focus),:host([active]){outline:2px solid transparent;outline-offset:2px}:host(:focus:not([disabled])) .day{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}:host([selected]) .day{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-color-brand);color:var(--calcite-color-foreground-1)}:host(:focus:not([disabled])) .day,:host([start-of-range]:not(:focus)) .day,:host([end-of-range]:not(:focus)) .day{box-shadow:0 0 0 2px var(--calcite-color-foreground-1)}:host([range-hover]:not([selected])) .day-wrapper::before,:host([highlighted]:not([selected])) .day-wrapper::before{inset-inline-end:50%;border-radius:0}:host([range-hover]:not([selected])) .day-wrapper::after,:host([highlighted]:not([selected])) .day-wrapper::after{inset-inline-start:50%;border-radius:0}:host([range-hover]:not([selected])) .day,:host([highlighted]:not([selected])) .day{color:var(--calcite-color-text-1)}:host([highlighted]) .day-wrapper::before,:host([highlighted]) .day-wrapper::after,:host([selected]:not(.hover--outside-range)) .day-wrapper::before,:host([selected]:not(.hover--outside-range)) .day-wrapper::after{background-color:var(--calcite-color-foreground-current)}:host([range-hover]:not([selected])) .day-wrapper::before,:host([range-hover]:not([selected])) .day-wrapper::after{background-color:var(--calcite-color-foreground-2)}:host(:hover[range-hover]:not([selected]).focused--end) .day-wrapper::before,:host([highlighted][end-of-range]) .day-wrapper::before,:host([highlighted][range-edge=end]) .day-wrapper::before,:host([range-hover][range-edge=end]) .day-wrapper::before,:host(:hover[range-hover].focused--end.hover--outside-range) .day-wrapper::before{inset-inline-end:50%}:host(:hover[range-hover]:not([selected]).focused--end) .day-wrapper::after,:host([highlighted][end-of-range]) .day-wrapper::after,:host([highlighted][range-edge=end]) .day-wrapper::after,:host([range-hover][range-edge=end]) .day-wrapper::after,:host(:hover[range-hover].focused--end.hover--outside-range) .day-wrapper::after{inset-inline-start:50%;border-start-end-radius:var(--calcite-internal-day-size);border-end-end-radius:var(--calcite-internal-day-size);inline-size:calc(var(--calcite-internal-day-size) / 2)}:host([highlighted][start-of-range]) .day-wrapper::before,:host([highlighted][range-edge=start]) .day-wrapper::before,:host([range-hover][range-edge=start]) .day-wrapper::before,:host(:hover[range-hover]:not([selected]).focused--start) .day-wrapper::before,:host([start-of-range].hover--inside-range) .day-wrapper::before,:host(:hover[range-hover].focused--start.hover--outside-range) .day-wrapper::before{inset-inline-end:50%;border-start-start-radius:var(--calcite-internal-day-size);border-end-start-radius:var(--calcite-internal-day-size);inline-size:calc(var(--calcite-internal-day-size) / 2)}:host([highlighted][start-of-range]) .day-wrapper::after,:host([highlighted][range-edge=start]) .day-wrapper::after,:host([range-hover][range-edge=start]) .day-wrapper::after,:host(:hover[range-hover]:not([selected]).focused--start) .day-wrapper::after,:host([start-of-range].hover--inside-range) .day-wrapper::after,:host(:hover[range-hover].focused--start.hover--outside-range) .day-wrapper::after{inset-inline-start:50%}:host([range-hover][start-of-range][range-edge=end]) .day-wrapper::after,:host([range-hover][start-of-range][range-edge=end]) .day-wrapper::before,:host([range-hover][end-of-range][range-edge=start]) .day-wrapper::after,:host([range-hover][end-of-range][range-edge=start]) .day-wrapper::before,:host([start-of-range][range-edge=end].hover--inside-range) .day-wrapper::after,:host([start-of-range][range-edge=end].hover--inside-range) .day-wrapper::before,:host([end-of-range]) .day-wrapper::after,:host([end-of-range]) .day-wrapper::before{content:unset}:host(:hover[range-hover]:not([selected]).focused--start) .day,:host(:hover[range-hover]:not([selected]).focused--end) .day,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .day,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .day{box-shadow:0 0 0 2px var(--calcite-color-foreground-1)}@media (forced-colors: active){.day{border-radius:0px}:host([selected]){outline:2px solid canvasText}:host(:hover:not([selected])) .day{border-radius:50%}:host([range][selected]) .day-wrapper::before,:host([range][selected]) .day-wrapper::after,:host([highlighted]) .day-wrapper::before,:host([highlighted]) .day-wrapper::after,:host([range-hover]:not([selected])) .day-wrapper::before,:host([range-hover]:not([selected])) .day-wrapper::after{background-color:highlight}:host([range-hover]) .day-wrapper::before,:host([range-hover]) .day-wrapper::after,:host([range][selected][start-of-range]) .day-wrapper::before,:host([range][selected][start-of-range]) .day-wrapper::after,:host([range][selected][end-of-range]) .day-wrapper::before,:host([range][selected][end-of-range]) .day-wrapper::after{background-color:canvas}}:host([hidden]){display:none}[hidden]{display:none}';const M=class{constructor(a){e(this,a),this.calciteInternalDatePickerSelect=t(this,"calciteInternalDatePickerSelect",6),this.calciteInternalDatePickerHover=t(this,"calciteInternalDatePickerHover",6),this.calciteInternalDatePickerActiveDateChange=t(this,"calciteInternalDatePickerActiveDateChange",6),this.calciteInternalDatePickerMouseOut=t(this,"calciteInternalDatePickerMouseOut",6),this.keyDownHandler=e=>{if(e.defaultPrevented)return;const t="rtl"===this.el.dir;switch(e.key){case"ArrowUp":e.preventDefault(),this.addDays(-7);break;case"ArrowRight":e.preventDefault(),this.addDays(t?-1:1);break;case"ArrowDown":e.preventDefault(),this.addDays(7);break;case"ArrowLeft":e.preventDefault(),this.addDays(t?1:-1);break;case"PageUp":e.preventDefault(),this.addMonths(-1);break;case"PageDown":e.preventDefault(),this.addMonths(1);break;case"Home":e.preventDefault(),this.activeDate.setDate(1),this.addDays();break;case"End":e.preventDefault(),this.activeDate.setDate(new Date(this.activeDate.getFullYear(),this.activeDate.getMonth()+1,0).getDate()),this.addDays();break;case"Enter":case" ":e.preventDefault();break;case"Tab":this.activeFocus=!1}},this.disableActiveFocus=()=>{this.activeFocus=!1},this.dayHover=e=>{const t=e.target;t.disabled?this.calciteInternalDatePickerMouseOut.emit():this.calciteInternalDatePickerHover.emit(t.value),e.stopPropagation()},this.daySelect=e=>{this.calciteInternalDatePickerSelect.emit(e.target.value)},this.dateTimeFormat=void 0,this.selectedDate=void 0,this.activeDate=new Date,this.startDate=void 0,this.endDate=void 0,this.min=void 0,this.max=void 0,this.scale=void 0,this.localeData=void 0,this.hoverRange=void 0}pointerOutHandler(){this.calciteInternalDatePickerMouseOut.emit()}render(){const e=this.activeDate.getMonth(),t=this.activeDate.getFullYear(),i=this.localeData.weekStart%7,{abbreviated:s,short:o,narrow:c}=this.localeData.days,h="s"===this.scale?c||o||s:o||s||c,d=[...h.slice(i,7),...h.slice(0,i)],l=this.getCurrentMonthDays(e,t),p=this.getPreviousMonthDays(e,t,i),f=this.getNextMonthDays(e,t,i);let g=0;const v=()=>g++%7,u=[...p.map((a=>({active:!1,day:a,dayInWeek:v(),date:new Date(t,e-1,a)}))),...l.map((a=>{const r=new Date(t,e,a);return{active:n(r,this.activeDate),currentMonth:!0,day:a,dayInWeek:v(),date:r,ref:!0}})),...f.map((a=>({active:!1,day:a,dayInWeek:v(),date:new Date(t,e+1,a)})))];return a(r,{onFocusout:this.disableActiveFocus,onKeyDown:this.keyDownHandler},a("div",{class:"calendar",role:"grid"},a("div",{class:"week-headers",role:"row"},d.map((e=>a("span",{class:"week-header",role:"columnheader"},e)))),a("div",{class:"week-days",role:"row"},u.map(((e,t)=>this.renderDateDay(e,t))))))}addMonths(e){const t=new Date(this.activeDate);t.setMonth(this.activeDate.getMonth()+e),this.calciteInternalDatePickerActiveDateChange.emit(c(t,this.min,this.max)),this.activeFocus=!0}addDays(e=0){const t=new Date(this.activeDate);t.setDate(this.activeDate.getDate()+e),this.calciteInternalDatePickerActiveDateChange.emit(c(t,this.min,this.max)),this.activeFocus=!0}getPreviousMonthDays(e,t,a){const r=new Date(t,e,0),i=r.getDate(),s=r.getDay(),o=[];if(s===(a+6)%7)return o;if(s===a)return[i];for(let e=(7+s-a)%7;e>=0;e--)o.push(i-e);return o}getCurrentMonthDays(e,t){const a=new Date(t,e+1,0).getDate(),r=[];for(let e=0;e<a;e++)r.push(e+1);return r}getNextMonthDays(e,t,a){const r=new Date(t,e+1,0).getDay(),i=[];if(r===(a+6)%7)return i;for(let e=0;e<(6-(r-a))%7;e++)i.push(e+1);return i}betweenSelectedRange(e){return!(!(this.startDate&&this.endDate&&e>this.startDate&&e<this.endDate)||this.isRangeHover(e))}isSelected(e){return!!(n(e,this.selectedDate)||this.startDate&&n(e,this.startDate)||this.endDate&&n(e,this.endDate))}isStartOfRange(e){return!(!this.startDate||n(this.startDate,this.endDate)||!n(this.startDate,e)||this.isEndOfRange(e))}isEndOfRange(e){return!!(this.endDate&&!n(this.startDate,this.endDate)&&n(this.endDate,e)||!this.endDate&&this.hoverRange&&n(this.startDate,this.hoverRange.end)&&n(e,this.hoverRange.end))}renderDateDay({active:e,currentMonth:t,date:r,day:i,dayInWeek:s,ref:o},c){const d=this.isFocusedOnStart(),l=this.isHoverInRange()||!this.endDate&&this.hoverRange&&n(this.hoverRange?.end,this.startDate);return a("div",{class:"day",key:c,role:"gridcell"},a("calcite-date-picker-day",{active:e,class:{"hover--inside-range":this.startDate&&l,"hover--outside-range":this.startDate&&!l,"focused--start":d,"focused--end":!d},currentMonth:t,dateTimeFormat:this.dateTimeFormat,day:i,disabled:!h(r,this.min,this.max),endOfRange:this.isEndOfRange(r),highlighted:this.betweenSelectedRange(r),onCalciteDaySelect:this.daySelect,onCalciteInternalDayHover:this.dayHover,range:!!this.startDate&&!!this.endDate&&!n(this.startDate,this.endDate),rangeEdge:0===s?"start":6===s?"end":void 0,rangeHover:this.isRangeHover(r),ref:t=>{o&&e&&this.activeFocus&&t?.setFocus()},scale:this.scale,selected:this.isSelected(r),startOfRange:this.isStartOfRange(r),value:r}))}isFocusedOnStart(){return"start"===this.hoverRange?.focused}isHoverInRange(){if(!this.hoverRange)return!1;const{start:e,end:t}=this.hoverRange;return!!(!this.isFocusedOnStart()&&this.startDate&&(!this.endDate||t<this.endDate)||this.isFocusedOnStart()&&this.startDate&&e>this.startDate)}isRangeHover(e){if(!this.hoverRange)return!1;const{start:t,end:a}=this.hoverRange,r=this.isFocusedOnStart(),i=this.isHoverInRange(),s=i&&(!r&&e>this.startDate&&(e<a||n(e,a))||r&&e<this.endDate&&(e>t||n(e,t))),o=!i&&(!r&&e>=this.endDate&&(e<a||n(e,a))||r&&(this.startDate&&e<this.startDate||this.endDate&&n(e,this.startDate))&&(t&&e>t||n(e,t)));return s||o}get el(){return i(this)}};M.style=":host([hidden]){display:none}[hidden]{display:none}.calendar{margin-block-end:0.25rem}.week-headers{display:flex;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);padding-block:0px;padding-inline:0.25rem}.week-header{text-align:center;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-3);inline-size:14.2857142857%}.day{display:flex;min-inline-size:0px;justify-content:center;inline-size:100%}.day calcite-date-picker-day{inline-size:100%}:host([scale=s]) .week-header{padding-inline:0px;padding-block:0.5rem 0.75rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) .week-header{padding-inline:0px;padding-block:0.75rem 1rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=l]) .week-header{padding-inline:0px;padding-block:1rem 1.25rem;font-size:var(--calcite-font-size--1);line-height:1rem}.week-days{display:grid;grid-template-columns:repeat(7, 1fr);grid-auto-rows:1fr;padding-block:0;padding-inline:6px}.week-days:focus{outline:2px solid transparent;outline-offset:2px}";
6
+ import{r as e,c as t,h as a,H as r,g as i,F as s}from"./p-6eb37ed2.js";import{a as o,h as n,b as c,i as h,j as d,n as l,p,k as f,l as g}from"./p-1cfc581f.js";import{a as v,t as u}from"./p-441f1992.js";import{I as y,c as b,u as m,d as w}from"./p-1ce2608d.js";import{i as x}from"./p-64a34d92.js";import{n as k}from"./p-42552409.js";import{s as z,a as D,c as j}from"./p-3e828614.js";import{H as I}from"./p-1b229454.js";import{g as C}from"./p-27d462c0.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";import"./p-1c249530.js";const S=class{constructor(a){e(this,a),this.calciteDaySelect=t(this,"calciteDaySelect",6),this.calciteInternalDayHover=t(this,"calciteInternalDayHover",6),this.onClick=()=>{this.disabled||this.calciteDaySelect.emit()},this.keyDownHandler=e=>{x(e.key)&&(!this.disabled&&this.calciteDaySelect.emit(),e.preventDefault())},this.day=void 0,this.dateTimeFormat=void 0,this.disabled=!1,this.currentMonth=!1,this.selected=!1,this.highlighted=!1,this.range=!1,this.rangeEdge=void 0,this.startOfRange=!1,this.endOfRange=!1,this.rangeHover=!1,this.active=!1,this.scale=void 0,this.value=void 0}pointerOverHandler(){this.disabled||this.calciteInternalDayHover.emit()}async componentWillLoad(){z(this),this.parentDatePickerEl=v(this.el,"calcite-date-picker")}componentDidLoad(){D(this)}async setFocus(){await j(this),this.el.focus()}render(){const e=o(this.value).replaceAll("-","");if(this.parentDatePickerEl){const{numberingSystem:e,lang:t}=this.parentDatePickerEl;k.numberFormatOptions={useGrouping:!1,...e&&{numberingSystem:e},...t&&{locale:t}}}const t=k.localize(String(this.day)),i=this.dateTimeFormat.format(this.value);return a(r,{key:"21762e1ba60bf298f05cb5c0499eb57bfc5a279d","aria-disabled":u(this.disabled),"aria-label":i,"aria-selected":u(this.active),id:e,onClick:this.onClick,onKeyDown:this.keyDownHandler,role:"button",tabIndex:this.active&&!this.disabled?0:-1},a(y,{key:"449226e496db81d7a029172ae69e1bf9da229603",disabled:this.disabled},a("div",{key:"147f12c8bc782776df768e01ab8e6de0a6a2eb9f","aria-hidden":"true",class:{"day-v-wrapper":!0}},a("div",{key:"e38b3d2b999df042c92a609474a35ef2937dd024",class:"day-wrapper"},a("span",{key:"f8e97122b32053d78ff43ef85771fbeb8ff7b180",class:"day"},a("span",{key:"a10f30dea71f9774bdf10b55b3564f54c62e7970",class:"text"},t))))))}connectedCallback(){b(this)}componentDidRender(){m(this)}disconnectedCallback(){w(this)}get el(){return i(this)}};S.style=':host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:flex;cursor:pointer;color:var(--calcite-color-text-3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.day-v-wrapper{flex:1 1 auto}.day-wrapper{position:relative;display:flex;flex-direction:column;align-items:center}:host([range]) .day-wrapper::before,:host([range]) .day-wrapper::after,:host([range-hover]) .day-wrapper::before,:host([range-hover]) .day-wrapper::after{pointer-events:none;position:absolute;inset-block:0;content:"";block-size:var(--calcite-internal-day-size);inline-size:var(--calcite-internal-day-size)}.day{z-index:var(--calcite-z-index);display:flex;align-items:center;justify-content:center;border-radius:9999px;font-size:var(--calcite-font-size--2);line-height:1rem;line-height:1;color:var(--calcite-color-text-3);outline-color:transparent;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;background:none;box-shadow:0 0 0 2px transparent;block-size:var(--calcite-internal-day-size);inline-size:var(--calcite-internal-day-size)}.text{margin-block:1px 0px;margin-inline-start:0px}:host([scale=s]){--calcite-internal-day-size:27px}:host([scale=s]) .day-v-wrapper{padding-block:0.125rem}:host([scale=s]) .day-wrapper{padding:0px}:host([scale=s]) .day{font-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-internal-day-size:33px}:host([scale=m]) .day-v-wrapper{padding-block:0.25rem}:host([scale=m]) .day-wrapper{padding:0px}:host([scale=m]) .day{font-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-internal-day-size:43px}:host([scale=l]) .day-v-wrapper{padding-block:0.25rem}:host([scale=l]) .day-wrapper{padding-inline:0.25rem}:host([scale=l]) .day{font-size:var(--calcite-font-size-0)}:host(:not([current-month])) .day{opacity:var(--calcite-opacity-disabled)}:host(:hover:not([disabled]):not([selected])) .day,:host([active]:not([range]):not([selected])) .day{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}:host(:focus),:host([active]){outline:2px solid transparent;outline-offset:2px}:host(:focus:not([disabled])) .day{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}:host([selected]) .day{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-color-brand);color:var(--calcite-color-foreground-1)}:host(:focus:not([disabled])) .day,:host([start-of-range]:not(:focus)) .day,:host([end-of-range]:not(:focus)) .day{box-shadow:0 0 0 2px var(--calcite-color-foreground-1)}:host([range-hover]:not([selected])) .day-wrapper::before,:host([highlighted]:not([selected])) .day-wrapper::before{inset-inline-end:50%;border-radius:0}:host([range-hover]:not([selected])) .day-wrapper::after,:host([highlighted]:not([selected])) .day-wrapper::after{inset-inline-start:50%;border-radius:0}:host([range-hover]:not([selected])) .day,:host([highlighted]:not([selected])) .day{color:var(--calcite-color-text-1)}:host([highlighted]) .day-wrapper::before,:host([highlighted]) .day-wrapper::after,:host([selected]:not(.hover--outside-range)) .day-wrapper::before,:host([selected]:not(.hover--outside-range)) .day-wrapper::after{background-color:var(--calcite-color-foreground-current)}:host([range-hover]:not([selected])) .day-wrapper::before,:host([range-hover]:not([selected])) .day-wrapper::after{background-color:var(--calcite-color-foreground-2)}:host(:hover[range-hover]:not([selected]).focused--end) .day-wrapper::before,:host([highlighted][end-of-range]) .day-wrapper::before,:host([highlighted][range-edge=end]) .day-wrapper::before,:host([range-hover][range-edge=end]) .day-wrapper::before,:host(:hover[range-hover].focused--end.hover--outside-range) .day-wrapper::before{inset-inline-end:50%}:host(:hover[range-hover]:not([selected]).focused--end) .day-wrapper::after,:host([highlighted][end-of-range]) .day-wrapper::after,:host([highlighted][range-edge=end]) .day-wrapper::after,:host([range-hover][range-edge=end]) .day-wrapper::after,:host(:hover[range-hover].focused--end.hover--outside-range) .day-wrapper::after{inset-inline-start:50%;border-start-end-radius:var(--calcite-internal-day-size);border-end-end-radius:var(--calcite-internal-day-size);inline-size:calc(var(--calcite-internal-day-size) / 2)}:host([highlighted][start-of-range]) .day-wrapper::before,:host([highlighted][range-edge=start]) .day-wrapper::before,:host([range-hover][range-edge=start]) .day-wrapper::before,:host(:hover[range-hover]:not([selected]).focused--start) .day-wrapper::before,:host([start-of-range].hover--inside-range) .day-wrapper::before,:host(:hover[range-hover].focused--start.hover--outside-range) .day-wrapper::before{inset-inline-end:50%;border-start-start-radius:var(--calcite-internal-day-size);border-end-start-radius:var(--calcite-internal-day-size);inline-size:calc(var(--calcite-internal-day-size) / 2)}:host([highlighted][start-of-range]) .day-wrapper::after,:host([highlighted][range-edge=start]) .day-wrapper::after,:host([range-hover][range-edge=start]) .day-wrapper::after,:host(:hover[range-hover]:not([selected]).focused--start) .day-wrapper::after,:host([start-of-range].hover--inside-range) .day-wrapper::after,:host(:hover[range-hover].focused--start.hover--outside-range) .day-wrapper::after{inset-inline-start:50%}:host([range-hover][start-of-range][range-edge=end]) .day-wrapper::after,:host([range-hover][start-of-range][range-edge=end]) .day-wrapper::before,:host([range-hover][end-of-range][range-edge=start]) .day-wrapper::after,:host([range-hover][end-of-range][range-edge=start]) .day-wrapper::before,:host([start-of-range][range-edge=end].hover--inside-range) .day-wrapper::after,:host([start-of-range][range-edge=end].hover--inside-range) .day-wrapper::before,:host([end-of-range]) .day-wrapper::after,:host([end-of-range]) .day-wrapper::before{content:unset}:host(:hover[range-hover]:not([selected]).focused--start) .day,:host(:hover[range-hover]:not([selected]).focused--end) .day,:host(:hover[range-hover]:not([selected]).focused--start.hover--outside-range) .day,:host(:hover[range-hover]:not([selected]).focused--end.hover--outside-range) .day{box-shadow:0 0 0 2px var(--calcite-color-foreground-1)}@media (forced-colors: active){.day{border-radius:0px}:host([selected]){outline:2px solid canvasText}:host(:hover:not([selected])) .day{border-radius:50%}:host([range][selected]) .day-wrapper::before,:host([range][selected]) .day-wrapper::after,:host([highlighted]) .day-wrapper::before,:host([highlighted]) .day-wrapper::after,:host([range-hover]:not([selected])) .day-wrapper::before,:host([range-hover]:not([selected])) .day-wrapper::after{background-color:highlight}:host([range-hover]) .day-wrapper::before,:host([range-hover]) .day-wrapper::after,:host([range][selected][start-of-range]) .day-wrapper::before,:host([range][selected][start-of-range]) .day-wrapper::after,:host([range][selected][end-of-range]) .day-wrapper::before,:host([range][selected][end-of-range]) .day-wrapper::after{background-color:canvas}}:host([hidden]){display:none}[hidden]{display:none}';const M=class{constructor(a){e(this,a),this.calciteInternalDatePickerSelect=t(this,"calciteInternalDatePickerSelect",6),this.calciteInternalDatePickerHover=t(this,"calciteInternalDatePickerHover",6),this.calciteInternalDatePickerActiveDateChange=t(this,"calciteInternalDatePickerActiveDateChange",6),this.calciteInternalDatePickerMouseOut=t(this,"calciteInternalDatePickerMouseOut",6),this.keyDownHandler=e=>{if(e.defaultPrevented)return;const t="rtl"===this.el.dir;switch(e.key){case"ArrowUp":e.preventDefault(),this.addDays(-7);break;case"ArrowRight":e.preventDefault(),this.addDays(t?-1:1);break;case"ArrowDown":e.preventDefault(),this.addDays(7);break;case"ArrowLeft":e.preventDefault(),this.addDays(t?1:-1);break;case"PageUp":e.preventDefault(),this.addMonths(-1);break;case"PageDown":e.preventDefault(),this.addMonths(1);break;case"Home":e.preventDefault(),this.activeDate.setDate(1),this.addDays();break;case"End":e.preventDefault(),this.activeDate.setDate(new Date(this.activeDate.getFullYear(),this.activeDate.getMonth()+1,0).getDate()),this.addDays();break;case"Enter":case" ":e.preventDefault();break;case"Tab":this.activeFocus=!1}},this.disableActiveFocus=()=>{this.activeFocus=!1},this.dayHover=e=>{const t=e.target;t.disabled?this.calciteInternalDatePickerMouseOut.emit():this.calciteInternalDatePickerHover.emit(t.value),e.stopPropagation()},this.daySelect=e=>{this.calciteInternalDatePickerSelect.emit(e.target.value)},this.dateTimeFormat=void 0,this.selectedDate=void 0,this.activeDate=new Date,this.startDate=void 0,this.endDate=void 0,this.min=void 0,this.max=void 0,this.scale=void 0,this.localeData=void 0,this.hoverRange=void 0}pointerOutHandler(){this.calciteInternalDatePickerMouseOut.emit()}render(){const e=this.activeDate.getMonth(),t=this.activeDate.getFullYear(),i=this.localeData.weekStart%7,{abbreviated:s,short:o,narrow:c}=this.localeData.days,h="s"===this.scale?c||o||s:o||s||c,d=[...h.slice(i,7),...h.slice(0,i)],l=this.getCurrentMonthDays(e,t),p=this.getPreviousMonthDays(e,t,i),f=this.getNextMonthDays(e,t,i);let g=0;const v=()=>g++%7,u=[...p.map((a=>({active:!1,day:a,dayInWeek:v(),date:new Date(t,e-1,a)}))),...l.map((a=>{const r=new Date(t,e,a);return{active:n(r,this.activeDate),currentMonth:!0,day:a,dayInWeek:v(),date:r,ref:!0}})),...f.map((a=>({active:!1,day:a,dayInWeek:v(),date:new Date(t,e+1,a)})))];return a(r,{onFocusout:this.disableActiveFocus,onKeyDown:this.keyDownHandler},a("div",{class:"calendar",role:"grid"},a("div",{class:"week-headers",role:"row"},d.map((e=>a("span",{class:"week-header",role:"columnheader"},e)))),a("div",{class:"week-days",role:"row"},u.map(((e,t)=>this.renderDateDay(e,t))))))}addMonths(e){const t=new Date(this.activeDate);t.setMonth(this.activeDate.getMonth()+e),this.calciteInternalDatePickerActiveDateChange.emit(c(t,this.min,this.max)),this.activeFocus=!0}addDays(e=0){const t=new Date(this.activeDate);t.setDate(this.activeDate.getDate()+e),this.calciteInternalDatePickerActiveDateChange.emit(c(t,this.min,this.max)),this.activeFocus=!0}getPreviousMonthDays(e,t,a){const r=new Date(t,e,0),i=r.getDate(),s=r.getDay(),o=[];if(s===(a+6)%7)return o;if(s===a)return[i];for(let e=(7+s-a)%7;e>=0;e--)o.push(i-e);return o}getCurrentMonthDays(e,t){const a=new Date(t,e+1,0).getDate(),r=[];for(let e=0;e<a;e++)r.push(e+1);return r}getNextMonthDays(e,t,a){const r=new Date(t,e+1,0).getDay(),i=[];if(r===(a+6)%7)return i;for(let e=0;e<(6-(r-a))%7;e++)i.push(e+1);return i}betweenSelectedRange(e){return!(!(this.startDate&&this.endDate&&e>this.startDate&&e<this.endDate)||this.isRangeHover(e))}isSelected(e){return!!(n(e,this.selectedDate)||this.startDate&&n(e,this.startDate)||this.endDate&&n(e,this.endDate))}isStartOfRange(e){return!(!this.startDate||n(this.startDate,this.endDate)||!n(this.startDate,e)||this.isEndOfRange(e))}isEndOfRange(e){return!!(this.endDate&&!n(this.startDate,this.endDate)&&n(this.endDate,e)||!this.endDate&&this.hoverRange&&n(this.startDate,this.hoverRange.end)&&n(e,this.hoverRange.end))}renderDateDay({active:e,currentMonth:t,date:r,day:i,dayInWeek:s,ref:o},c){const d=this.isFocusedOnStart(),l=this.isHoverInRange()||!this.endDate&&this.hoverRange&&n(this.hoverRange?.end,this.startDate);return a("div",{class:"day",key:c,role:"gridcell"},a("calcite-date-picker-day",{active:e,class:{"hover--inside-range":this.startDate&&l,"hover--outside-range":this.startDate&&!l,"focused--start":d,"focused--end":!d},currentMonth:t,dateTimeFormat:this.dateTimeFormat,day:i,disabled:!h(r,this.min,this.max),endOfRange:this.isEndOfRange(r),highlighted:this.betweenSelectedRange(r),onCalciteDaySelect:this.daySelect,onCalciteInternalDayHover:this.dayHover,range:!!this.startDate&&!!this.endDate&&!n(this.startDate,this.endDate),rangeEdge:0===s?"start":6===s?"end":void 0,rangeHover:this.isRangeHover(r),ref:t=>{o&&e&&this.activeFocus&&t?.setFocus()},scale:this.scale,selected:this.isSelected(r),startOfRange:this.isStartOfRange(r),value:r}))}isFocusedOnStart(){return"start"===this.hoverRange?.focused}isHoverInRange(){if(!this.hoverRange)return!1;const{start:e,end:t}=this.hoverRange;return!!(!this.isFocusedOnStart()&&this.startDate&&(!this.endDate||t<this.endDate)||this.isFocusedOnStart()&&this.startDate&&e>this.startDate)}isRangeHover(e){if(!this.hoverRange)return!1;const{start:t,end:a}=this.hoverRange,r=this.isFocusedOnStart(),i=this.isHoverInRange(),s=i&&(!r&&e>this.startDate&&(e<a||n(e,a))||r&&e<this.endDate&&(e>t||n(e,t))),o=!i&&(!r&&e>=this.endDate&&(e<a||n(e,a))||r&&(this.startDate&&e<this.startDate||this.endDate&&n(e,this.startDate))&&(t&&e>t||n(e,t)));return s||o}get el(){return i(this)}};M.style=":host([hidden]){display:none}[hidden]{display:none}.calendar{margin-block-end:0.25rem}.week-headers{display:flex;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);padding-block:0px;padding-inline:0.25rem}.week-header{text-align:center;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-3);inline-size:14.2857142857%}.day{display:flex;min-inline-size:0px;justify-content:center;inline-size:100%}.day calcite-date-picker-day{inline-size:100%}:host([scale=s]) .week-header{padding-inline:0px;padding-block:0.5rem 0.75rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) .week-header{padding-inline:0px;padding-block:0.75rem 1rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=l]) .week-header{padding-inline:0px;padding-block:1rem 1.25rem;font-size:var(--calcite-font-size--1);line-height:1rem}.week-days{display:grid;grid-template-columns:repeat(7, 1fr);grid-auto-rows:1fr;padding-block:0;padding-inline:6px}.week-days:focus{outline:2px solid transparent;outline-offset:2px}";
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.
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{d as r}from"./p-b3b042df.js";import"./p-6eb37ed2.js";import"./p-54fa7a94.js";import"./p-441f1992.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1ce2608d.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-fd730974.js";import"./p-27d462c0.js";import"./p-3e828614.js";import"./p-42552409.js";import"./p-1c249530.js";import"./p-4182a628.js";import"./p-0ef9d36b.js";import"./p-abc30e04.js";import"./p-d9e930c8.js";import"./p-6e3f1d71.js";import"./p-ef67c743.js";import"./p-14f027b5.js";var t={name:"hu",weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),ordinal:function(r){return r+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(r,t,e,p){return"néhány másodperc"+(p||t?"":"e")},m:function(r,t,e,p){return"egy perc"+(p||t?"":"e")},mm:function(r,t,e,p){return r+" perc"+(p||t?"":"e")},h:function(r,t,e,p){return"egy "+(p||t?"óra":"órája")},hh:function(r,t,e,p){return r+" "+(p||t?"óra":"órája")},d:function(r,t,e,p){return"egy "+(p||t?"nap":"napja")},dd:function(r,t,e,p){return r+" "+(p||t?"nap":"napja")},M:function(r,t,e,p){return"egy "+(p||t?"hónap":"hónapja")},MM:function(r,t,e,p){return r+" "+(p||t?"hónap":"hónapja")},y:function(r,t,e,p){return"egy "+(p||t?"év":"éve")},yy:function(r,t,e,p){return r+" "+(p||t?"év":"éve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};r.locale(t,null,!0);export{t as default}
@@ -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 e,h as i,g as s,H as n}from"./p-6eb37ed2.js";import{f as a}from"./p-47a0be20.js";import{c as o,u as c,d as l,I as r}from"./p-1ce2608d.js";import{s as h,a as d,c as f}from"./p-3e828614.js";import{c as u,d as p,n as b}from"./p-304cef31.js";import{u as g,s as m,c as v,d as y}from"./p-1017609e.js";import{D as x}from"./p-8bfa18b7.js";import{d as C}from"./p-c8d3207e.js";import{t as k,s as w,F as I,a as L}from"./p-c25e8c35.js";import{c as S}from"./p-1c249530.js";import{M as z,a as D,I as E,C as A,S as F}from"./p-2868a42b.js";import{i as P}from"./p-4b9b7778.js";import{d as M,c as j}from"./p-0a165419.js";import"./p-64a34d92.js";import"./p-aaa56cbf.js";
6
+ import{r as t,c as e,h as i,g as s,H as n}from"./p-6eb37ed2.js";import{f as a}from"./p-47a0be20.js";import{c as o,u as c,d as l,I as r}from"./p-1ce2608d.js";import{s as h,a as d,c as f}from"./p-3e828614.js";import{c as u,d as p,n as b}from"./p-42552409.js";import{u as g,s as m,c as v,d as y}from"./p-6e3f1d71.js";import{D as x}from"./p-8bfa18b7.js";import{d as C}from"./p-c8d3207e.js";import{t as k,s as w,F as I,h as L}from"./p-441f1992.js";import{c as S}from"./p-1c249530.js";import{M as z,a as D,I as E,C as A,S as F}from"./p-2868a42b.js";import{i as P}from"./p-4b9b7778.js";import{d as M,c as j}from"./p-0a165419.js";import"./p-64a34d92.js";import"./p-aaa56cbf.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 e,c as t,h as s,H as a,g as i}from"./p-6eb37ed2.js";import{d as c,e as o,t as r}from"./p-c25e8c35.js";import{c as d,u as n,d as h,I as l}from"./p-1ce2608d.js";import{a as p,s as b,b as f}from"./p-3e828614.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";const u=class{constructor(s){e(this,s),this.calciteCardGroupSelect=t(this,"calciteCardGroupSelect",6),this.items=[],this.udpateItemsOnSelectionModeChange=()=>{this.updateSlottedItems(this.slotRefEl),this.updateSelectedItems()},this.updateItemsOnSlotChange=e=>{this.updateSlottedItems(e.target),this.updateSelectedItems()},this.updateSlottedItems=e=>{this.items=e.assignedElements({flatten:!0}).filter((e=>e?.matches("calcite-card")))},this.updateSelectedItems=()=>{this.items.forEach((e=>{e.selectionMode=this.selectionMode})),this.setSelectedItems(!1)},this.setSelectedItems=(e,t)=>{t&&this.items.forEach((e=>{const s=t===e;switch(this.selectionMode){case"multiple":s&&(e.selected=!e.selected);break;case"single":e.selected=!!s&&!e.selected;break;case"single-persist":e.selected=!!s}})),this.selectedItems=this.items.filter((e=>e.selected)),e&&"none"!==this.selectionMode&&!this.disabled&&this.calciteCardGroupSelect.emit()},this.disabled=!1,this.label=void 0,this.selectionMode="none",this.selectedItems=[]}onSelectionModeChange(){this.udpateItemsOnSelectionModeChange()}connectedCallback(){d(this)}componentDidRender(){n(this)}componentDidLoad(){p(this)}disconnectedCallback(){h(this)}async componentWillLoad(){b(this)}calciteInternalCardKeyEventListener(e){if(e.composedPath().includes(this.el)){const t=this.items.filter((e=>!e.disabled));switch(e.detail.key){case"ArrowRight":c(t,e.target,"next");break;case"ArrowLeft":c(t,e.target,"previous");break;case"Home":c(t,e.target,"first");break;case"End":c(t,e.target,"last")}}}calciteCardSelectListener(e){e.composedPath().includes(this.el)&&!e.target.selectable&&this.setSelectedItems(!0,e.target)}async setFocus(){await f(this),this.disabled||o(this.items[0])}render(){const e="none"===this.selectionMode||"multiple"===this.selectionMode?"group":"radiogroup";return s(a,{key:"f7d72ac0d0c8b0cec9b1c5c048ed2a8ee304d9e2"},s(l,{key:"b477bbced684168f1e68c1fe0d8511a689653995",disabled:this.disabled},s("div",{key:"ce0aa841b96ad23886e109203a14ac2b0e54b948","aria-disabled":r(this.disabled),"aria-label":this.label,class:"container",role:e},s("slot",{key:"338c12be0a5a675daf911aad6049aff6319d3064",onSlotchange:this.updateItemsOnSlotChange,ref:e=>this.slotRefEl=e}))))}get el(){return i(this)}static get watchers(){return{selectionMode:["onSelectionModeChange"]}}};u.style=":host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{--calcite-card-group-gap:var(--calcite-size-md);display:block}.container{display:flex;flex-wrap:wrap;gap:var(--calcite-card-group-gap)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}";export{u as calcite_card_group}
6
+ import{r as e,c as t,h as s,H as a,g as i}from"./p-6eb37ed2.js";import{b as c,d as o,t as r}from"./p-441f1992.js";import{c as d,u as n,d as h,I as l}from"./p-1ce2608d.js";import{a as p,s as b,b as f}from"./p-3e828614.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-4b9b7778.js";const u=class{constructor(s){e(this,s),this.calciteCardGroupSelect=t(this,"calciteCardGroupSelect",6),this.items=[],this.udpateItemsOnSelectionModeChange=()=>{this.updateSlottedItems(this.slotRefEl),this.updateSelectedItems()},this.updateItemsOnSlotChange=e=>{this.updateSlottedItems(e.target),this.updateSelectedItems()},this.updateSlottedItems=e=>{this.items=e.assignedElements({flatten:!0}).filter((e=>e?.matches("calcite-card")))},this.updateSelectedItems=()=>{this.items.forEach((e=>{e.selectionMode=this.selectionMode})),this.setSelectedItems(!1)},this.setSelectedItems=(e,t)=>{t&&this.items.forEach((e=>{const s=t===e;switch(this.selectionMode){case"multiple":s&&(e.selected=!e.selected);break;case"single":e.selected=!!s&&!e.selected;break;case"single-persist":e.selected=!!s}})),this.selectedItems=this.items.filter((e=>e.selected)),e&&"none"!==this.selectionMode&&!this.disabled&&this.calciteCardGroupSelect.emit()},this.disabled=!1,this.label=void 0,this.selectionMode="none",this.selectedItems=[]}onSelectionModeChange(){this.udpateItemsOnSelectionModeChange()}connectedCallback(){d(this)}componentDidRender(){n(this)}componentDidLoad(){p(this)}disconnectedCallback(){h(this)}async componentWillLoad(){b(this)}calciteInternalCardKeyEventListener(e){if(e.composedPath().includes(this.el)){const t=this.items.filter((e=>!e.disabled));switch(e.detail.key){case"ArrowRight":c(t,e.target,"next");break;case"ArrowLeft":c(t,e.target,"previous");break;case"Home":c(t,e.target,"first");break;case"End":c(t,e.target,"last")}}}calciteCardSelectListener(e){e.composedPath().includes(this.el)&&!e.target.selectable&&this.setSelectedItems(!0,e.target)}async setFocus(){await f(this),this.disabled||o(this.items[0])}render(){const e="none"===this.selectionMode||"multiple"===this.selectionMode?"group":"radiogroup";return s(a,{key:"f7d72ac0d0c8b0cec9b1c5c048ed2a8ee304d9e2"},s(l,{key:"b477bbced684168f1e68c1fe0d8511a689653995",disabled:this.disabled},s("div",{key:"ce0aa841b96ad23886e109203a14ac2b0e54b948","aria-disabled":r(this.disabled),"aria-label":this.label,class:"container",role:e},s("slot",{key:"338c12be0a5a675daf911aad6049aff6319d3064",onSlotchange:this.updateItemsOnSlotChange,ref:e=>this.slotRefEl=e}))))}get el(){return i(this)}static get watchers(){return{selectionMode:["onSelectionModeChange"]}}};u.style=":host([disabled]){cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{--calcite-card-group-gap:var(--calcite-size-md);display:block}.container{display:flex;flex-wrap:wrap;gap:var(--calcite-card-group-gap)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}";export{u as calcite_card_group}
@@ -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{d as e}from"./p-924ec704.js";import"./p-6eb37ed2.js";import"./p-66b01781.js";import"./p-c25e8c35.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1ce2608d.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-7c854814.js";import"./p-27d462c0.js";import"./p-3e828614.js";import"./p-304cef31.js";import"./p-1c249530.js";import"./p-c40b0ec5.js";import"./p-0ef9d36b.js";import"./p-f6f2018a.js";import"./p-d9e930c8.js";import"./p-1017609e.js";import"./p-ef67c743.js";import"./p-14f027b5.js";var a={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(e){return"["+e+(1===e||8===e||e>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};e.locale(a,null,!0);export{a as default}
6
+ import{d as e}from"./p-b3b042df.js";import"./p-6eb37ed2.js";import"./p-54fa7a94.js";import"./p-441f1992.js";import"./p-aaa56cbf.js";import"./p-8bfa18b7.js";import"./p-1ce2608d.js";import"./p-4b9b7778.js";import"./p-64a34d92.js";import"./p-fd730974.js";import"./p-27d462c0.js";import"./p-3e828614.js";import"./p-42552409.js";import"./p-1c249530.js";import"./p-4182a628.js";import"./p-0ef9d36b.js";import"./p-abc30e04.js";import"./p-d9e930c8.js";import"./p-6e3f1d71.js";import"./p-ef67c743.js";import"./p-14f027b5.js";var a={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(e){return"["+e+(1===e||8===e||e>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};e.locale(a,null,!0);export{a as default}