@esri/solutions-components 0.8.63 → 0.8.65

Sign up to get free protection for your applications and to get access to all the features.
Files changed (676) hide show
  1. package/dist/cjs/{ExpandToggle-1ff416a1.js → ExpandToggle-08ea7a69.js} +1 -1
  2. package/dist/cjs/{FloatingArrow-ba8caba2.js → FloatingArrow-e430eec3.js} +1 -1
  3. package/dist/cjs/{Heading-f1f9e2dd.js → Heading-15954ee0.js} +1 -1
  4. package/dist/cjs/{Validation-425b2de4.js → Validation-0ed2f4a3.js} +1 -1
  5. package/dist/cjs/{ar-a2f57db2.js → ar-10894ca2.js} +12 -12
  6. package/dist/cjs/arcgis-login.cjs.entry.js +1 -1
  7. package/dist/cjs/basemap-gallery_7.cjs.entry.js +2 -2
  8. package/dist/cjs/{bg-cb903045.js → bg-0e9f4e64.js} +12 -12
  9. package/dist/cjs/{browser-d12b6cd5.js → browser-6137dfdf.js} +1 -1
  10. package/dist/cjs/{bs-3690f22d.js → bs-c3be214f.js} +12 -12
  11. package/dist/cjs/buffer-tools_3.cjs.entry.js +4 -4
  12. package/dist/cjs/{ca-fec18921.js → ca-b9c955ff.js} +12 -12
  13. package/dist/cjs/calcite-accordion-item.cjs.entry.js +3 -3
  14. package/dist/cjs/calcite-accordion.cjs.entry.js +2 -2
  15. package/dist/cjs/calcite-action-bar.cjs.entry.js +7 -7
  16. package/dist/cjs/calcite-action-group.cjs.entry.js +6 -6
  17. package/dist/cjs/calcite-action-menu_3.cjs.entry.js +9 -9
  18. package/dist/cjs/calcite-action-pad_2.cjs.entry.js +7 -7
  19. package/dist/cjs/calcite-action_2.cjs.entry.js +7 -7
  20. package/dist/cjs/calcite-alert_4.cjs.entry.js +10 -10
  21. package/dist/cjs/calcite-avatar_2.cjs.entry.js +2 -2
  22. package/dist/cjs/calcite-block-section.cjs.entry.js +5 -5
  23. package/dist/cjs/calcite-block_5.cjs.entry.js +14 -14
  24. package/dist/cjs/calcite-button.cjs.entry.js +8 -8
  25. package/dist/cjs/calcite-card-group.cjs.entry.js +4 -4
  26. package/dist/cjs/calcite-card.cjs.entry.js +7 -7
  27. package/dist/cjs/calcite-carousel-item.cjs.entry.js +1 -1
  28. package/dist/cjs/calcite-carousel.cjs.entry.js +7 -7
  29. package/dist/cjs/calcite-checkbox.cjs.entry.js +5 -5
  30. package/dist/cjs/calcite-chip-group.cjs.entry.js +4 -4
  31. package/dist/cjs/calcite-chip_2.cjs.entry.js +9 -9
  32. package/dist/cjs/calcite-color-picker-hex-input_2.cjs.entry.js +2 -2
  33. package/dist/cjs/calcite-color-picker.cjs.entry.js +7 -7
  34. package/dist/cjs/calcite-combobox-item-group.cjs.entry.js +2 -2
  35. package/dist/cjs/calcite-combobox_3.cjs.entry.js +12 -12
  36. package/dist/cjs/calcite-date-picker-day_3.cjs.entry.js +8 -8
  37. package/dist/cjs/calcite-dropdown-group_2.cjs.entry.js +5 -5
  38. package/dist/cjs/calcite-dropdown_2.cjs.entry.js +7 -7
  39. package/dist/cjs/calcite-fab.cjs.entry.js +4 -4
  40. package/dist/cjs/calcite-filter_5.cjs.entry.js +7 -7
  41. package/dist/cjs/calcite-flow_6.cjs.entry.js +9 -9
  42. package/dist/cjs/calcite-icon.cjs.entry.js +2 -2
  43. package/dist/cjs/calcite-inline-editable.cjs.entry.js +7 -7
  44. package/dist/cjs/calcite-input-number.cjs.entry.js +9 -9
  45. package/dist/cjs/calcite-input-text.cjs.entry.js +9 -9
  46. package/dist/cjs/{calcite-input-time-picker-686f45e7.js → calcite-input-time-picker-99b4a577.js} +58 -58
  47. package/dist/cjs/calcite-input-time-picker.cjs.entry.js +12 -12
  48. package/dist/cjs/calcite-input-time-zone.cjs.entry.js +8 -8
  49. package/dist/cjs/calcite-input_2.cjs.entry.js +9 -9
  50. package/dist/cjs/calcite-label.cjs.entry.js +1 -1
  51. package/dist/cjs/calcite-link.cjs.entry.js +4 -4
  52. package/dist/cjs/calcite-list-item-group.cjs.entry.js +3 -3
  53. package/dist/cjs/calcite-menu-item.cjs.entry.js +5 -5
  54. package/dist/cjs/calcite-menu.cjs.entry.js +5 -5
  55. package/dist/cjs/calcite-meter.cjs.entry.js +5 -5
  56. package/dist/cjs/calcite-modal.cjs.entry.js +7 -7
  57. package/dist/cjs/calcite-navigation-logo.cjs.entry.js +3 -3
  58. package/dist/cjs/calcite-navigation.cjs.entry.js +2 -2
  59. package/dist/cjs/calcite-notice.cjs.entry.js +7 -7
  60. package/dist/cjs/calcite-option-group.cjs.entry.js +1 -1
  61. package/dist/cjs/calcite-option_2.cjs.entry.js +7 -7
  62. package/dist/cjs/calcite-pagination.cjs.entry.js +5 -5
  63. package/dist/cjs/calcite-panel_2.cjs.entry.js +9 -9
  64. package/dist/cjs/calcite-pick-list-group.cjs.entry.js +4 -4
  65. package/dist/cjs/calcite-pick-list-item.cjs.entry.js +8 -8
  66. package/dist/cjs/calcite-pick-list.cjs.entry.js +6 -6
  67. package/dist/cjs/calcite-radio-button-group.cjs.entry.js +4 -4
  68. package/dist/cjs/calcite-radio-button.cjs.entry.js +5 -5
  69. package/dist/cjs/calcite-rating.cjs.entry.js +8 -8
  70. package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +7 -7
  71. package/dist/cjs/calcite-sheet.cjs.entry.js +4 -4
  72. package/dist/cjs/calcite-shell-center-row.cjs.entry.js +3 -3
  73. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +13 -13
  74. package/dist/cjs/calcite-sortable-list.cjs.entry.js +4 -4
  75. package/dist/cjs/calcite-split-button.cjs.entry.js +4 -4
  76. package/dist/cjs/calcite-stepper-item.cjs.entry.js +7 -7
  77. package/dist/cjs/calcite-stepper.cjs.entry.js +4 -4
  78. package/dist/cjs/calcite-switch.cjs.entry.js +5 -5
  79. package/dist/cjs/calcite-table-cell_2.cjs.entry.js +7 -7
  80. package/dist/cjs/calcite-table-row.cjs.entry.js +3 -3
  81. package/dist/cjs/calcite-table.cjs.entry.js +6 -6
  82. package/dist/cjs/calcite-text-area.cjs.entry.js +9 -9
  83. package/dist/cjs/calcite-tile-group.cjs.entry.js +4 -4
  84. package/dist/cjs/calcite-tile-select-group.cjs.entry.js +3 -3
  85. package/dist/cjs/calcite-tile-select.cjs.entry.js +4 -4
  86. package/dist/cjs/calcite-tile.cjs.entry.js +4 -4
  87. package/dist/cjs/calcite-time-picker.cjs.entry.js +6 -6
  88. package/dist/cjs/calcite-tip-group.cjs.entry.js +1 -1
  89. package/dist/cjs/calcite-tip-manager.cjs.entry.js +5 -5
  90. package/dist/cjs/calcite-tip.cjs.entry.js +6 -6
  91. package/dist/cjs/calcite-tooltip.cjs.entry.js +4 -4
  92. package/dist/cjs/calcite-tree_2.cjs.entry.js +5 -5
  93. package/dist/cjs/card-manager_3.cjs.entry.js +4 -4
  94. package/dist/cjs/{conditionalSlot-349d1b3a.js → conditionalSlot-99fb1621.js} +2 -2
  95. package/dist/cjs/consent-manager.cjs.entry.js +2 -2
  96. package/dist/cjs/crowdsource-manager.cjs.entry.js +2 -2
  97. package/dist/cjs/crowdsource-reporter.cjs.entry.js +5 -4
  98. package/dist/cjs/{cs-b061b441.js → cs-3aaff343.js} +12 -12
  99. package/dist/cjs/{da-e3c379ae.js → da-258fbd9d.js} +12 -12
  100. package/dist/cjs/{date-874bf94e.js → date-00fc3e5c.js} +1 -1
  101. package/dist/cjs/{de-65d2876f.js → de-2aebcdd2.js} +12 -12
  102. package/dist/cjs/{de-at-16b7b50e.js → de-at-49139550.js} +12 -12
  103. package/dist/cjs/{de-ch-11dcd113.js → de-ch-cfb5727e.js} +12 -12
  104. package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
  105. package/dist/cjs/{downloadUtils-08f9ebbd.js → downloadUtils-0d728477.js} +4 -4
  106. package/dist/cjs/{el-321d43b5.js → el-b393b949.js} +12 -12
  107. package/dist/cjs/{en-au-c48e6b73.js → en-au-0bce695e.js} +12 -12
  108. package/dist/cjs/{en-ca-9cc0e8f7.js → en-ca-da691553.js} +12 -12
  109. package/dist/cjs/{en-gb-8ced841b.js → en-gb-1fcd6d59.js} +12 -12
  110. package/dist/cjs/{es-aca5e6b4.js → es-2509530d.js} +12 -12
  111. package/dist/cjs/{es-mx-b69f0ebb.js → es-mx-634125ce.js} +12 -12
  112. package/dist/cjs/{et-7e29340d.js → et-73fb1be6.js} +12 -12
  113. package/dist/cjs/feature-comments.cjs.entry.js +1 -1
  114. package/dist/cjs/feature-form-flow-item.cjs.entry.js +1 -1
  115. package/dist/cjs/feature-list.cjs.entry.js +5 -5
  116. package/dist/cjs/features-flow-item.cjs.entry.js +1 -1
  117. package/dist/cjs/{fi-f215f4d1.js → fi-882d0bd9.js} +12 -12
  118. package/dist/cjs/{floating-ui-beb70d3c.js → floating-ui-d90077fa.js} +1 -1
  119. package/dist/cjs/{form-71a108a7.js → form-eea3b222.js} +1 -1
  120. package/dist/cjs/{fr-ch-76f752e9.js → fr-ch-8dfbc6b7.js} +12 -12
  121. package/dist/cjs/{fr-0daba4be.js → fr-f71b2679.js} +12 -12
  122. package/dist/cjs/{he-32860a76.js → he-b04d3082.js} +12 -12
  123. package/dist/cjs/{helpers-0104985c.js → helpers-3cad996e.js} +1 -1
  124. package/dist/cjs/{hi-c5639f76.js → hi-eeb6d951.js} +12 -12
  125. package/dist/cjs/{hr-eb700fd5.js → hr-4cbb9ab9.js} +12 -12
  126. package/dist/cjs/{hu-e30e3d3a.js → hu-2f0ecbc7.js} +12 -12
  127. package/dist/cjs/{id-a3e96e5b.js → id-4ed2d454.js} +12 -12
  128. package/dist/cjs/{index-ff18be0d.js → index-696e53e6.js} +162 -145
  129. package/dist/cjs/{index-97020c9d.js → index-a0cca96e.js} +1 -1
  130. package/dist/cjs/{index.es-ca867656.js → index.es-5402d486.js} +4 -4
  131. package/dist/cjs/instant-apps-ckeditor-wrapper_3.cjs.entry.js +3 -3
  132. package/dist/cjs/instant-apps-control-panel.cjs.entry.js +1 -1
  133. package/dist/cjs/instant-apps-create.cjs.entry.js +1 -1
  134. package/dist/cjs/instant-apps-export.cjs.entry.js +1 -1
  135. package/dist/cjs/instant-apps-header.cjs.entry.js +1 -1
  136. package/dist/cjs/instant-apps-interactive-legend-classic.cjs.entry.js +3 -3
  137. package/dist/cjs/instant-apps-interactive-legend-count_2.cjs.entry.js +3 -3
  138. package/dist/cjs/instant-apps-interactive-legend-group-legend-element-caption.cjs.entry.js +3 -3
  139. package/dist/cjs/instant-apps-interactive-legend-group-legend-element_5.cjs.entry.js +3 -3
  140. package/dist/cjs/instant-apps-interactive-legend.cjs.entry.js +3 -3
  141. package/dist/cjs/instant-apps-keyboard-shortcuts.cjs.entry.js +1 -1
  142. package/dist/cjs/instant-apps-landing-page.cjs.entry.js +1 -1
  143. package/dist/cjs/instant-apps-language-switcher.cjs.entry.js +3 -3
  144. package/dist/cjs/instant-apps-language-translator.cjs.entry.js +3 -3
  145. package/dist/cjs/instant-apps-measurement.cjs.entry.js +1 -1
  146. package/dist/cjs/instant-apps-popover.cjs.entry.js +1 -1
  147. package/dist/cjs/instant-apps-popovers.cjs.entry.js +1 -1
  148. package/dist/cjs/instant-apps-scoreboard.cjs.entry.js +1 -1
  149. package/dist/cjs/instant-apps-sign-in.cjs.entry.js +1 -1
  150. package/dist/cjs/instant-apps-splash.cjs.entry.js +1 -1
  151. package/dist/cjs/{interactive-7e5c7df4.js → interactive-34bc91a0.js} +2 -2
  152. package/dist/cjs/{it-ch-c78435e7.js → it-ch-82d7d9c4.js} +12 -12
  153. package/dist/cjs/{it-acd3cf54.js → it-fc446914.js} +12 -12
  154. package/dist/cjs/{ja-ede2132a.js → ja-d4a86ac4.js} +12 -12
  155. package/dist/cjs/{ko-fcd96551.js → ko-78c281da.js} +12 -12
  156. package/dist/cjs/layout-manager.cjs.entry.js +2 -2
  157. package/dist/cjs/list-flow-item.cjs.entry.js +1 -1
  158. package/dist/cjs/{loadable-5d538ba2.js → loadable-53f1d561.js} +1 -1
  159. package/dist/cjs/loader.cjs.js +1 -1
  160. package/dist/cjs/{locale-31289fc5.js → locale-0998a9f9.js} +1 -1
  161. package/dist/cjs/{locale-d2a1066a.js → locale-73a540a5.js} +1 -1
  162. package/dist/cjs/location-flow-item.cjs.entry.js +1 -1
  163. package/dist/cjs/{lt-a30330ef.js → lt-81d0a34a.js} +12 -12
  164. package/dist/cjs/{lv-ac3b6560.js → lv-07db6759.js} +12 -12
  165. package/dist/cjs/map-select-tools_3.cjs.entry.js +7 -8
  166. package/dist/cjs/{mk-a3053dea.js → mk-cbbc8b51.js} +12 -12
  167. package/dist/cjs/{nb-7ab0bac1.js → nb-7ed8a253.js} +12 -12
  168. package/dist/cjs/{nl-7fa437ef.js → nl-e4e2b298.js} +12 -12
  169. package/dist/cjs/{observers-2a59d471.js → observers-a2648fc8.js} +1 -1
  170. package/dist/cjs/{openCloseComponent-e752f2a5.js → openCloseComponent-b85eabb5.js} +1 -1
  171. package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
  172. package/dist/cjs/{pl-ea95b104.js → pl-770f8f68.js} +12 -12
  173. package/dist/cjs/{popupUtils-50b3c196.js → popupUtils-79328fc3.js} +2 -2
  174. package/dist/cjs/{pt-472083c2.js → pt-35056b6f.js} +12 -12
  175. package/dist/cjs/{pt-br-5f18543e.js → pt-br-a9159df1.js} +12 -12
  176. package/dist/cjs/public-notification.cjs.entry.js +6 -6
  177. package/dist/cjs/{publicNotificationStore-691f6f30.js → publicNotificationStore-42c4caaa.js} +1 -1
  178. package/dist/cjs/refine-results-flow-item.cjs.entry.js +1 -1
  179. package/dist/cjs/{restHelpersGet-be451f4a.js → restHelpersGet-d99cf121.js} +15 -0
  180. package/dist/cjs/{ro-e8b3d65c.js → ro-6a07a288.js} +12 -12
  181. package/dist/cjs/{ru-becefd01.js → ru-2d8f6f5f.js} +12 -12
  182. package/dist/cjs/share-item.cjs.entry.js +1 -1
  183. package/dist/cjs/{shared-list-render-6491aae1.js → shared-list-render-e0486f17.js} +2 -2
  184. package/dist/cjs/{sk-2f5fd4e0.js → sk-2bdec5ac.js} +12 -12
  185. package/dist/cjs/{sl-3ae17da6.js → sl-4aebcd29.js} +12 -12
  186. package/dist/cjs/solution-configuration.cjs.entry.js +6 -6
  187. package/dist/cjs/solution-contents_3.cjs.entry.js +5 -5
  188. package/dist/cjs/solution-item-icon.cjs.entry.js +1 -1
  189. package/dist/cjs/{solution-store-4e35404b.js → solution-store-3edab9b1.js} +2 -2
  190. package/dist/cjs/solutions-components.cjs.js +2 -2
  191. package/dist/cjs/spatial-ref.cjs.entry.js +2 -2
  192. package/dist/cjs/{sr-7d6b8d1b.js → sr-9b46b071.js} +12 -12
  193. package/dist/cjs/store-manager.cjs.entry.js +5 -5
  194. package/dist/cjs/{sv-9c51da5c.js → sv-6d8df3c4.js} +12 -12
  195. package/dist/cjs/{t9n-ef615628.js → t9n-d347df79.js} +2 -2
  196. package/dist/cjs/{templates-f7a3bf48.js → templates-ff543f5f.js} +1 -1
  197. package/dist/cjs/{th-fec0a074.js → th-bc1b390c.js} +12 -12
  198. package/dist/cjs/{time-089ab043.js → time-882a0f77.js} +1 -1
  199. package/dist/cjs/{tr-8d7c18a1.js → tr-cae9cd45.js} +12 -12
  200. package/dist/cjs/{uk-46a61312.js → uk-b66bf799.js} +12 -12
  201. package/dist/cjs/{utils-d237cb85.js → utils-44b3a80e.js} +1 -1
  202. package/dist/cjs/{utils-0ab15745.js → utils-8d9c798c.js} +1 -1
  203. package/dist/cjs/{vi-4114aa90.js → vi-c4217d0b.js} +12 -12
  204. package/dist/cjs/{zh-cn-30aca6fe.js → zh-cn-8641645c.js} +12 -12
  205. package/dist/cjs/{zh-hk-5971eb67.js → zh-hk-7d2fa590.js} +12 -12
  206. package/dist/cjs/{zh-tw-5fb5e7a9.js → zh-tw-2660bf33.js} +12 -12
  207. package/dist/collection/collection-manifest.json +1 -1
  208. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +3 -2
  209. package/dist/collection/components/feature-details/feature-details.js +1 -1
  210. package/dist/collection/components/map-select-tools/map-select-tools.js +1 -2
  211. package/dist/collection/components/solution-configuration/solution-configuration.js +1 -1
  212. package/dist/collection/components/solution-item/solution-item.js +1 -1
  213. package/dist/collection/components/solution-resource-item/solution-resource-item.js +1 -1
  214. package/dist/collection/components/store-manager/store-manager.js +1 -1
  215. package/dist/components/crowdsource-reporter.js +3 -2
  216. package/dist/components/feature-details2.js +1 -1
  217. package/dist/components/map-select-tools2.js +1 -2
  218. package/dist/components/restHelpersGet.js +15 -0
  219. package/dist/esm/{ExpandToggle-12c73c9f.js → ExpandToggle-0efa470f.js} +1 -1
  220. package/dist/esm/{FloatingArrow-5585c8f7.js → FloatingArrow-c549da32.js} +1 -1
  221. package/dist/esm/{Heading-63031c74.js → Heading-2104570d.js} +1 -1
  222. package/dist/esm/{Validation-6712b322.js → Validation-cc8dc911.js} +1 -1
  223. package/dist/esm/{ar-19d4f5c7.js → ar-c705a441.js} +12 -12
  224. package/dist/esm/arcgis-login.entry.js +1 -1
  225. package/dist/esm/basemap-gallery_7.entry.js +2 -2
  226. package/dist/esm/{bg-63235b1a.js → bg-48ed25da.js} +12 -12
  227. package/dist/esm/{browser-e76c94f7.js → browser-7fe78178.js} +1 -1
  228. package/dist/esm/{bs-a1b74ac8.js → bs-67c8cc20.js} +12 -12
  229. package/dist/esm/buffer-tools_3.entry.js +4 -4
  230. package/dist/esm/{ca-b29c38ed.js → ca-26cc0a78.js} +12 -12
  231. package/dist/esm/calcite-accordion-item.entry.js +3 -3
  232. package/dist/esm/calcite-accordion.entry.js +2 -2
  233. package/dist/esm/calcite-action-bar.entry.js +7 -7
  234. package/dist/esm/calcite-action-group.entry.js +6 -6
  235. package/dist/esm/calcite-action-menu_3.entry.js +9 -9
  236. package/dist/esm/calcite-action-pad_2.entry.js +7 -7
  237. package/dist/esm/calcite-action_2.entry.js +7 -7
  238. package/dist/esm/calcite-alert_4.entry.js +10 -10
  239. package/dist/esm/calcite-avatar_2.entry.js +2 -2
  240. package/dist/esm/calcite-block-section.entry.js +5 -5
  241. package/dist/esm/calcite-block_5.entry.js +14 -14
  242. package/dist/esm/calcite-button.entry.js +8 -8
  243. package/dist/esm/calcite-card-group.entry.js +4 -4
  244. package/dist/esm/calcite-card.entry.js +7 -7
  245. package/dist/esm/calcite-carousel-item.entry.js +1 -1
  246. package/dist/esm/calcite-carousel.entry.js +7 -7
  247. package/dist/esm/calcite-checkbox.entry.js +5 -5
  248. package/dist/esm/calcite-chip-group.entry.js +4 -4
  249. package/dist/esm/calcite-chip_2.entry.js +9 -9
  250. package/dist/esm/calcite-color-picker-hex-input_2.entry.js +2 -2
  251. package/dist/esm/calcite-color-picker.entry.js +7 -7
  252. package/dist/esm/calcite-combobox-item-group.entry.js +2 -2
  253. package/dist/esm/calcite-combobox_3.entry.js +12 -12
  254. package/dist/esm/calcite-date-picker-day_3.entry.js +8 -8
  255. package/dist/esm/calcite-dropdown-group_2.entry.js +5 -5
  256. package/dist/esm/calcite-dropdown_2.entry.js +7 -7
  257. package/dist/esm/calcite-fab.entry.js +4 -4
  258. package/dist/esm/calcite-filter_5.entry.js +7 -7
  259. package/dist/esm/calcite-flow_6.entry.js +9 -9
  260. package/dist/esm/calcite-icon.entry.js +2 -2
  261. package/dist/esm/calcite-inline-editable.entry.js +7 -7
  262. package/dist/esm/calcite-input-number.entry.js +9 -9
  263. package/dist/esm/calcite-input-text.entry.js +9 -9
  264. package/dist/esm/{calcite-input-time-picker-7d1c6e48.js → calcite-input-time-picker-338cf509.js} +58 -58
  265. package/dist/esm/calcite-input-time-picker.entry.js +12 -12
  266. package/dist/esm/calcite-input-time-zone.entry.js +8 -8
  267. package/dist/esm/calcite-input_2.entry.js +9 -9
  268. package/dist/esm/calcite-label.entry.js +1 -1
  269. package/dist/esm/calcite-link.entry.js +4 -4
  270. package/dist/esm/calcite-list-item-group.entry.js +3 -3
  271. package/dist/esm/calcite-menu-item.entry.js +5 -5
  272. package/dist/esm/calcite-menu.entry.js +5 -5
  273. package/dist/esm/calcite-meter.entry.js +5 -5
  274. package/dist/esm/calcite-modal.entry.js +7 -7
  275. package/dist/esm/calcite-navigation-logo.entry.js +3 -3
  276. package/dist/esm/calcite-navigation.entry.js +2 -2
  277. package/dist/esm/calcite-notice.entry.js +7 -7
  278. package/dist/esm/calcite-option-group.entry.js +1 -1
  279. package/dist/esm/calcite-option_2.entry.js +7 -7
  280. package/dist/esm/calcite-pagination.entry.js +5 -5
  281. package/dist/esm/calcite-panel_2.entry.js +9 -9
  282. package/dist/esm/calcite-pick-list-group.entry.js +4 -4
  283. package/dist/esm/calcite-pick-list-item.entry.js +8 -8
  284. package/dist/esm/calcite-pick-list.entry.js +6 -6
  285. package/dist/esm/calcite-radio-button-group.entry.js +4 -4
  286. package/dist/esm/calcite-radio-button.entry.js +5 -5
  287. package/dist/esm/calcite-rating.entry.js +8 -8
  288. package/dist/esm/calcite-segmented-control_2.entry.js +7 -7
  289. package/dist/esm/calcite-sheet.entry.js +4 -4
  290. package/dist/esm/calcite-shell-center-row.entry.js +3 -3
  291. package/dist/esm/calcite-shell-panel_14.entry.js +13 -13
  292. package/dist/esm/calcite-sortable-list.entry.js +4 -4
  293. package/dist/esm/calcite-split-button.entry.js +4 -4
  294. package/dist/esm/calcite-stepper-item.entry.js +7 -7
  295. package/dist/esm/calcite-stepper.entry.js +4 -4
  296. package/dist/esm/calcite-switch.entry.js +5 -5
  297. package/dist/esm/calcite-table-cell_2.entry.js +7 -7
  298. package/dist/esm/calcite-table-row.entry.js +3 -3
  299. package/dist/esm/calcite-table.entry.js +6 -6
  300. package/dist/esm/calcite-text-area.entry.js +9 -9
  301. package/dist/esm/calcite-tile-group.entry.js +4 -4
  302. package/dist/esm/calcite-tile-select-group.entry.js +3 -3
  303. package/dist/esm/calcite-tile-select.entry.js +4 -4
  304. package/dist/esm/calcite-tile.entry.js +4 -4
  305. package/dist/esm/calcite-time-picker.entry.js +6 -6
  306. package/dist/esm/calcite-tip-group.entry.js +1 -1
  307. package/dist/esm/calcite-tip-manager.entry.js +5 -5
  308. package/dist/esm/calcite-tip.entry.js +6 -6
  309. package/dist/esm/calcite-tooltip.entry.js +4 -4
  310. package/dist/esm/calcite-tree_2.entry.js +5 -5
  311. package/dist/esm/card-manager_3.entry.js +4 -4
  312. package/dist/esm/{conditionalSlot-56bdb202.js → conditionalSlot-850652b1.js} +2 -2
  313. package/dist/esm/consent-manager.entry.js +2 -2
  314. package/dist/esm/crowdsource-manager.entry.js +2 -2
  315. package/dist/esm/crowdsource-reporter.entry.js +5 -4
  316. package/dist/esm/{cs-da7231d6.js → cs-3904d9c5.js} +12 -12
  317. package/dist/esm/{da-7e105037.js → da-6631bc66.js} +12 -12
  318. package/dist/esm/{date-93ae46b9.js → date-118148f9.js} +1 -1
  319. package/dist/esm/{de-b5646b5d.js → de-68e0ccb3.js} +12 -12
  320. package/dist/esm/{de-at-1d9434bb.js → de-at-d05edf69.js} +12 -12
  321. package/dist/esm/{de-ch-7beada93.js → de-ch-d7d9f8b9.js} +12 -12
  322. package/dist/esm/deduct-calculator.entry.js +1 -1
  323. package/dist/esm/{downloadUtils-f6e2a736.js → downloadUtils-de5ccf30.js} +4 -4
  324. package/dist/esm/{el-0f4bf89b.js → el-fed50b65.js} +12 -12
  325. package/dist/esm/{en-au-5c144cef.js → en-au-5a92bd2f.js} +12 -12
  326. package/dist/esm/{en-ca-1160089a.js → en-ca-4cb5380c.js} +12 -12
  327. package/dist/esm/{en-gb-ae98fc58.js → en-gb-95bbea85.js} +12 -12
  328. package/dist/esm/{es-88e1743a.js → es-88df3c8f.js} +12 -12
  329. package/dist/esm/{es-mx-020dfaaa.js → es-mx-55caef32.js} +12 -12
  330. package/dist/esm/{et-84f63ef8.js → et-57bffe46.js} +12 -12
  331. package/dist/esm/feature-comments.entry.js +1 -1
  332. package/dist/esm/feature-form-flow-item.entry.js +1 -1
  333. package/dist/esm/feature-list.entry.js +5 -5
  334. package/dist/esm/features-flow-item.entry.js +1 -1
  335. package/dist/esm/{fi-1016ee6e.js → fi-d8584bb7.js} +12 -12
  336. package/dist/esm/{floating-ui-f086572c.js → floating-ui-3e149d85.js} +1 -1
  337. package/dist/esm/{form-8fd73cbd.js → form-8b2f6210.js} +1 -1
  338. package/dist/esm/{fr-0e7ffd73.js → fr-8e4f3326.js} +12 -12
  339. package/dist/esm/{fr-ch-e18bae2c.js → fr-ch-6f2764a9.js} +12 -12
  340. package/dist/esm/{he-0cebe004.js → he-1e8dacc2.js} +12 -12
  341. package/dist/esm/{helpers-3407a4b6.js → helpers-ca6fa5a6.js} +1 -1
  342. package/dist/esm/{hi-cded031d.js → hi-c786d0be.js} +12 -12
  343. package/dist/esm/{hr-5643b2ab.js → hr-6c59640e.js} +12 -12
  344. package/dist/esm/{hu-6d605858.js → hu-bc712f59.js} +12 -12
  345. package/dist/esm/{id-7d804c46.js → id-e11a4447.js} +12 -12
  346. package/dist/esm/{index-d97f4f15.js → index-1dc14abf.js} +1 -1
  347. package/dist/esm/{index-83b693bc.js → index-e3f04fa1.js} +162 -145
  348. package/dist/esm/{index.es-89f753c1.js → index.es-c1c29b61.js} +4 -4
  349. package/dist/esm/instant-apps-ckeditor-wrapper_3.entry.js +3 -3
  350. package/dist/esm/instant-apps-control-panel.entry.js +1 -1
  351. package/dist/esm/instant-apps-create.entry.js +1 -1
  352. package/dist/esm/instant-apps-export.entry.js +1 -1
  353. package/dist/esm/instant-apps-header.entry.js +1 -1
  354. package/dist/esm/instant-apps-interactive-legend-classic.entry.js +3 -3
  355. package/dist/esm/instant-apps-interactive-legend-count_2.entry.js +3 -3
  356. package/dist/esm/instant-apps-interactive-legend-group-legend-element-caption.entry.js +3 -3
  357. package/dist/esm/instant-apps-interactive-legend-group-legend-element_5.entry.js +3 -3
  358. package/dist/esm/instant-apps-interactive-legend.entry.js +3 -3
  359. package/dist/esm/instant-apps-keyboard-shortcuts.entry.js +1 -1
  360. package/dist/esm/instant-apps-landing-page.entry.js +1 -1
  361. package/dist/esm/instant-apps-language-switcher.entry.js +3 -3
  362. package/dist/esm/instant-apps-language-translator.entry.js +3 -3
  363. package/dist/esm/instant-apps-measurement.entry.js +1 -1
  364. package/dist/esm/instant-apps-popover.entry.js +1 -1
  365. package/dist/esm/instant-apps-popovers.entry.js +1 -1
  366. package/dist/esm/instant-apps-scoreboard.entry.js +1 -1
  367. package/dist/esm/instant-apps-sign-in.entry.js +1 -1
  368. package/dist/esm/instant-apps-splash.entry.js +1 -1
  369. package/dist/esm/{interactive-3b9600a6.js → interactive-2e2d102f.js} +2 -2
  370. package/dist/esm/{it-849be361.js → it-4e97c5c6.js} +12 -12
  371. package/dist/esm/{it-ch-453fa26d.js → it-ch-e80d2f46.js} +12 -12
  372. package/dist/esm/{ja-edff1441.js → ja-e3822be4.js} +12 -12
  373. package/dist/esm/{ko-dc103450.js → ko-d6df4c1f.js} +12 -12
  374. package/dist/esm/layout-manager.entry.js +2 -2
  375. package/dist/esm/list-flow-item.entry.js +1 -1
  376. package/dist/esm/{loadable-b765a6f6.js → loadable-01033497.js} +1 -1
  377. package/dist/esm/loader.js +2 -2
  378. package/dist/esm/{locale-4adfc8cf.js → locale-0f1cdb1f.js} +1 -1
  379. package/dist/esm/{locale-a4cbae12.js → locale-60861d67.js} +1 -1
  380. package/dist/esm/location-flow-item.entry.js +1 -1
  381. package/dist/esm/{lt-270cc811.js → lt-9d03bfa7.js} +12 -12
  382. package/dist/esm/{lv-c877043c.js → lv-fff7ca43.js} +12 -12
  383. package/dist/esm/map-select-tools_3.entry.js +7 -8
  384. package/dist/esm/{mk-a816a702.js → mk-3d27ae0d.js} +12 -12
  385. package/dist/esm/{nb-e9c09b70.js → nb-3e1284dc.js} +12 -12
  386. package/dist/esm/{nl-56e70f3b.js → nl-45346a3c.js} +12 -12
  387. package/dist/esm/{observers-fcb1c07b.js → observers-fdb7a374.js} +1 -1
  388. package/dist/esm/{openCloseComponent-bbe76c58.js → openCloseComponent-1fbfcd2f.js} +1 -1
  389. package/dist/esm/pci-calculator.entry.js +1 -1
  390. package/dist/esm/{pl-687b559a.js → pl-851e041f.js} +12 -12
  391. package/dist/esm/{popupUtils-ecec5e6d.js → popupUtils-2c4baa5d.js} +2 -2
  392. package/dist/esm/{pt-8b05fed2.js → pt-8899042f.js} +12 -12
  393. package/dist/esm/{pt-br-85bdf812.js → pt-br-a43d0201.js} +12 -12
  394. package/dist/esm/public-notification.entry.js +6 -6
  395. package/dist/esm/{publicNotificationStore-08faccff.js → publicNotificationStore-c17ad008.js} +1 -1
  396. package/dist/esm/refine-results-flow-item.entry.js +1 -1
  397. package/dist/esm/{restHelpersGet-5c822bcd.js → restHelpersGet-eb33e6e1.js} +15 -0
  398. package/dist/esm/{ro-0975d6bb.js → ro-58f14d8f.js} +12 -12
  399. package/dist/esm/{ru-24b83704.js → ru-4688c237.js} +12 -12
  400. package/dist/esm/share-item.entry.js +1 -1
  401. package/dist/esm/{shared-list-render-07a20fc5.js → shared-list-render-b7b0f245.js} +2 -2
  402. package/dist/esm/{sk-8179af4d.js → sk-cc16b6af.js} +12 -12
  403. package/dist/esm/{sl-e6922692.js → sl-809eaa2e.js} +12 -12
  404. package/dist/esm/solution-configuration.entry.js +6 -6
  405. package/dist/esm/solution-contents_3.entry.js +5 -5
  406. package/dist/esm/solution-item-icon.entry.js +1 -1
  407. package/dist/esm/{solution-store-840c5489.js → solution-store-010d2027.js} +2 -2
  408. package/dist/esm/solutions-components.js +3 -3
  409. package/dist/esm/spatial-ref.entry.js +2 -2
  410. package/dist/esm/{sr-1d30e69e.js → sr-48ddceba.js} +12 -12
  411. package/dist/esm/store-manager.entry.js +5 -5
  412. package/dist/esm/{sv-ea3c4b80.js → sv-2f138f0f.js} +12 -12
  413. package/dist/esm/{t9n-dd2a98fc.js → t9n-5800da82.js} +2 -2
  414. package/dist/esm/{templates-824ea028.js → templates-3bc0b4de.js} +1 -1
  415. package/dist/esm/{th-0f1b35bc.js → th-b3474642.js} +12 -12
  416. package/dist/esm/{time-bc97792f.js → time-7837ffad.js} +1 -1
  417. package/dist/esm/{tr-eb4e860e.js → tr-52b937e8.js} +12 -12
  418. package/dist/esm/{uk-f3ebd952.js → uk-e0460e9b.js} +12 -12
  419. package/dist/esm/{utils-efd425d4.js → utils-8519a5f7.js} +1 -1
  420. package/dist/esm/{utils-bf012a3f.js → utils-e4ed10d3.js} +1 -1
  421. package/dist/esm/{vi-872e449d.js → vi-1b5fccc2.js} +12 -12
  422. package/dist/esm/{zh-cn-8c5a3222.js → zh-cn-559b2148.js} +12 -12
  423. package/dist/esm/{zh-hk-247683c2.js → zh-hk-beb2d45d.js} +12 -12
  424. package/dist/esm/{zh-tw-76a429e9.js → zh-tw-a9743012.js} +12 -12
  425. package/dist/loader/index.d.ts +3 -0
  426. package/dist/solutions-components/{p-15e08453.js → p-0029318e.js} +1 -1
  427. package/dist/solutions-components/{p-7638ce3d.js → p-05c1fa62.js} +1 -1
  428. package/dist/solutions-components/{p-11094d76.entry.js → p-065a0712.entry.js} +1 -1
  429. package/dist/solutions-components/{p-8008449b.entry.js → p-065b269e.entry.js} +2 -2
  430. package/dist/solutions-components/{p-0e8ad7d1.entry.js → p-07aae6af.entry.js} +1 -1
  431. package/dist/solutions-components/{p-9c6c056a.js → p-07ffc0dc.js} +2 -2
  432. package/dist/solutions-components/{p-2d99bd61.js → p-08ea3025.js} +1 -1
  433. package/dist/solutions-components/{p-cc07069d.entry.js → p-0973f502.entry.js} +2 -2
  434. package/dist/solutions-components/{p-4691b6ad.entry.js → p-098ae31a.entry.js} +1 -1
  435. package/dist/solutions-components/p-0a136490.entry.js +6 -0
  436. package/dist/solutions-components/{p-c27bb7cf.entry.js → p-0abfcd37.entry.js} +1 -1
  437. package/dist/solutions-components/{p-a204dcff.entry.js → p-0b592d22.entry.js} +1 -1
  438. package/dist/solutions-components/{p-97421bb9.js → p-0c9b771a.js} +1 -1
  439. package/dist/solutions-components/{p-3b1f45b4.entry.js → p-0d9d1e08.entry.js} +1 -1
  440. package/dist/solutions-components/{p-8dcc5305.entry.js → p-0f02c25c.entry.js} +1 -1
  441. package/dist/solutions-components/{p-f163a137.js → p-103bb44d.js} +1 -1
  442. package/dist/solutions-components/p-14ca9076.entry.js +6 -0
  443. package/dist/solutions-components/{p-1412173c.entry.js → p-15a81116.entry.js} +1 -1
  444. package/dist/solutions-components/{p-62e5aea4.entry.js → p-16aa396b.entry.js} +1 -1
  445. package/dist/solutions-components/{p-6bf91f6e.js → p-16f0f2b8.js} +1 -1
  446. package/dist/solutions-components/{p-8a4f9e8d.entry.js → p-1901d180.entry.js} +1 -1
  447. package/dist/solutions-components/{p-b1a4c444.entry.js → p-1996cf43.entry.js} +1 -1
  448. package/dist/solutions-components/{p-7822e93b.js → p-1aa72bda.js} +1 -1
  449. package/dist/solutions-components/{p-b442aa02.entry.js → p-1abdcee8.entry.js} +3 -3
  450. package/dist/solutions-components/{p-aa967a48.entry.js → p-1c429493.entry.js} +1 -1
  451. package/dist/solutions-components/{p-716a0878.js → p-1c7fa861.js} +1 -1
  452. package/dist/solutions-components/{p-ab8039f5.js → p-1cf65b78.js} +1 -1
  453. package/dist/solutions-components/{p-8241b179.entry.js → p-1f4d9fc9.entry.js} +1 -1
  454. package/dist/solutions-components/{p-ef54f211.js → p-1f58427a.js} +1 -1
  455. package/dist/solutions-components/p-2222c738.entry.js +6 -0
  456. package/dist/solutions-components/p-259e6f21.entry.js +6 -0
  457. package/dist/solutions-components/{p-df0a1d4b.js → p-260d655c.js} +1 -1
  458. package/dist/solutions-components/{p-acef743f.entry.js → p-2670fe22.entry.js} +1 -1
  459. package/dist/solutions-components/{p-ada34f83.js → p-2733d390.js} +1 -1
  460. package/dist/solutions-components/{p-7fea6d8a.js → p-277e0b1d.js} +1 -1
  461. package/dist/solutions-components/{p-ee7f7c24.js → p-27ef34f6.js} +1 -1
  462. package/dist/solutions-components/{p-b592fbc6.entry.js → p-2e4d5103.entry.js} +1 -1
  463. package/dist/solutions-components/{p-4c8fdf0b.entry.js → p-2fc602fd.entry.js} +1 -1
  464. package/dist/solutions-components/{p-30f0687e.entry.js → p-301feae7.entry.js} +1 -1
  465. package/dist/solutions-components/{p-2305749d.entry.js → p-30b43168.entry.js} +1 -1
  466. package/dist/solutions-components/{p-9e77f5c7.js → p-32ddd33b.js} +1 -1
  467. package/dist/solutions-components/{p-5ed825c4.js → p-3309fa6c.js} +1 -1
  468. package/dist/solutions-components/{p-cb6165e9.entry.js → p-335308e3.entry.js} +2 -2
  469. package/dist/solutions-components/{p-2e401f51.js → p-338f1f04.js} +1 -1
  470. package/dist/solutions-components/{p-813d004f.js → p-33ec544d.js} +1 -1
  471. package/dist/solutions-components/{p-e528c321.js → p-342187a4.js} +1 -1
  472. package/dist/solutions-components/{p-75ecff1b.entry.js → p-34d813e1.entry.js} +1 -1
  473. package/dist/solutions-components/{p-34722455.entry.js → p-367fb486.entry.js} +1 -1
  474. package/dist/solutions-components/{p-f539a342.entry.js → p-3f81c301.entry.js} +1 -1
  475. package/dist/solutions-components/{p-4bfec58a.entry.js → p-3fae55fd.entry.js} +1 -1
  476. package/dist/solutions-components/{p-d9e190a4.entry.js → p-40d2e45b.entry.js} +1 -1
  477. package/dist/solutions-components/{p-44043ef6.entry.js → p-41c7d2fa.entry.js} +1 -1
  478. package/dist/solutions-components/{p-b2ba3c28.entry.js → p-429ed200.entry.js} +1 -1
  479. package/dist/solutions-components/{p-bf0bb8c2.entry.js → p-437e64c0.entry.js} +1 -1
  480. package/dist/solutions-components/p-4541ad8e.js +11 -0
  481. package/dist/solutions-components/{p-398ff315.js → p-4845071a.js} +1 -1
  482. package/dist/solutions-components/{p-bc8b4f68.entry.js → p-48651582.entry.js} +2 -2
  483. package/dist/solutions-components/{p-5443995c.entry.js → p-4a398b55.entry.js} +1 -1
  484. package/dist/solutions-components/{p-21965dcd.entry.js → p-4b6c957d.entry.js} +1 -1
  485. package/dist/solutions-components/{p-1fd9cd5f.entry.js → p-4f01d375.entry.js} +1 -1
  486. package/dist/solutions-components/{p-6d51c6bf.js → p-501c2126.js} +1 -1
  487. package/dist/solutions-components/{p-55730588.js → p-508686ba.js} +1 -1
  488. package/dist/solutions-components/{p-5f1fdaf9.js → p-51ed7835.js} +1 -1
  489. package/dist/solutions-components/{p-5eb6219c.js → p-54ec7548.js} +1 -1
  490. package/dist/solutions-components/{p-4b85c3dc.js → p-550cf063.js} +1 -1
  491. package/dist/solutions-components/{p-ed71dfdc.entry.js → p-57d81d7d.entry.js} +1 -1
  492. package/dist/solutions-components/{p-3ac77bd5.entry.js → p-5b72f4eb.entry.js} +1 -1
  493. package/dist/solutions-components/{p-17feaae0.entry.js → p-5bfbb6cf.entry.js} +1 -1
  494. package/dist/solutions-components/{p-1ceaab98.entry.js → p-5e6de74b.entry.js} +2 -2
  495. package/dist/solutions-components/{p-52bdaec9.entry.js → p-5f6807ca.entry.js} +1 -1
  496. package/dist/solutions-components/{p-de4cf79a.entry.js → p-5fb0f8a0.entry.js} +1 -1
  497. package/dist/solutions-components/{p-37e2754a.js → p-602b034e.js} +1 -1
  498. package/dist/solutions-components/{p-a0300d31.js → p-628537e6.js} +1 -1
  499. package/dist/solutions-components/{p-f82d09d2.js → p-658ffb44.js} +1 -1
  500. package/dist/solutions-components/{p-7a646a97.js → p-682354e6.js} +1 -1
  501. package/dist/solutions-components/{p-27c68097.js → p-6a425011.js} +1 -1
  502. package/dist/solutions-components/{p-3ec70ff5.entry.js → p-6aec5175.entry.js} +1 -1
  503. package/dist/solutions-components/{p-2a990146.entry.js → p-6e814f44.entry.js} +1 -1
  504. package/dist/solutions-components/{p-a89e61f4.js → p-6fde2784.js} +1 -1
  505. package/dist/solutions-components/{p-6df9b158.entry.js → p-7011f9fd.entry.js} +1 -1
  506. package/dist/solutions-components/{p-3137377f.entry.js → p-72192d9e.entry.js} +1 -1
  507. package/dist/solutions-components/{p-de279d51.entry.js → p-7253126e.entry.js} +1 -1
  508. package/dist/solutions-components/{p-a146dcbe.entry.js → p-729b22fb.entry.js} +1 -1
  509. package/dist/solutions-components/{p-79c7ff2b.entry.js → p-72af5235.entry.js} +1 -1
  510. package/dist/solutions-components/{p-fc9a49db.js → p-7683f32f.js} +1 -1
  511. package/dist/solutions-components/{p-48ab80c3.entry.js → p-76dd1422.entry.js} +1 -1
  512. package/dist/solutions-components/{p-ec0c2611.entry.js → p-76ffa42b.entry.js} +1 -1
  513. package/dist/solutions-components/{p-b64cc55e.js → p-7c057019.js} +2 -2
  514. package/dist/solutions-components/{p-28fd26ed.js → p-7c4acfd9.js} +1 -1
  515. package/dist/solutions-components/{p-f629ed65.entry.js → p-7ceba956.entry.js} +1 -1
  516. package/dist/solutions-components/{p-2e64dc3b.entry.js → p-7d6c1a52.entry.js} +1 -1
  517. package/dist/solutions-components/{p-2e2e975a.entry.js → p-7ed8ce64.entry.js} +1 -1
  518. package/dist/solutions-components/{p-d72b4031.entry.js → p-81e5a65e.entry.js} +1 -1
  519. package/dist/solutions-components/{p-ddd9d50f.entry.js → p-82855118.entry.js} +1 -1
  520. package/dist/solutions-components/{p-2b4e50ed.js → p-832a3fc3.js} +1 -1
  521. package/dist/solutions-components/{p-f480b275.js → p-83a13261.js} +1 -1
  522. package/dist/solutions-components/{p-c32d79e2.entry.js → p-83d0b202.entry.js} +3 -3
  523. package/dist/solutions-components/{p-4b80b699.entry.js → p-86694085.entry.js} +1 -1
  524. package/dist/solutions-components/{p-3a50fe57.entry.js → p-8891e4a1.entry.js} +1 -1
  525. package/dist/solutions-components/{p-b8d4452e.entry.js → p-8c34de9a.entry.js} +2 -2
  526. package/dist/solutions-components/{p-b5c88983.js → p-8db761a9.js} +1 -1
  527. package/dist/solutions-components/{p-1b4149b8.entry.js → p-8dcf7aa5.entry.js} +2 -2
  528. package/dist/solutions-components/p-8e5cfdef.entry.js +6 -0
  529. package/dist/solutions-components/{p-9377260c.js → p-91866b70.js} +1 -1
  530. package/dist/solutions-components/{p-c63a8225.entry.js → p-91e22963.entry.js} +1 -1
  531. package/dist/solutions-components/{p-83fdb1d4.entry.js → p-920af5d4.entry.js} +1 -1
  532. package/dist/solutions-components/{p-1983d6e8.js → p-92980001.js} +1 -1
  533. package/dist/solutions-components/{p-9088fa3a.js → p-93e4bac5.js} +1 -1
  534. package/dist/solutions-components/{p-2a8b04de.entry.js → p-97014acc.entry.js} +1 -1
  535. package/dist/solutions-components/{p-6067b27a.entry.js → p-977cece9.entry.js} +1 -1
  536. package/dist/solutions-components/{p-e6e4071e.entry.js → p-97bebac7.entry.js} +3 -3
  537. package/dist/solutions-components/{p-465fbfc2.js → p-98e135f6.js} +1 -1
  538. package/dist/solutions-components/{p-bba41eec.entry.js → p-9902916a.entry.js} +1 -1
  539. package/dist/solutions-components/{p-45db29e2.js → p-9946999d.js} +1 -1
  540. package/dist/solutions-components/{p-cc9fdd5f.entry.js → p-9a46618c.entry.js} +1 -1
  541. package/dist/solutions-components/{p-69db1e2c.js → p-9b96afaf.js} +1 -1
  542. package/dist/solutions-components/{p-293d376c.js → p-9c55d3a2.js} +1 -1
  543. package/dist/solutions-components/{p-e7ed87eb.entry.js → p-9dbf1881.entry.js} +1 -1
  544. package/dist/solutions-components/{p-841863b8.js → p-9f2a0621.js} +1 -1
  545. package/dist/solutions-components/{p-6809e050.entry.js → p-9fac2e9d.entry.js} +2 -2
  546. package/dist/solutions-components/{p-9808250d.entry.js → p-a14f24f2.entry.js} +1 -1
  547. package/dist/solutions-components/{p-e6c9e6af.js → p-a1f034be.js} +1 -1
  548. package/dist/solutions-components/p-a24530e2.entry.js +6 -0
  549. package/dist/solutions-components/{p-7058b4fa.entry.js → p-a26763d2.entry.js} +1 -1
  550. package/dist/solutions-components/{p-5db64297.entry.js → p-a3ca129b.entry.js} +1 -1
  551. package/dist/solutions-components/{p-42c2d9d8.entry.js → p-a3f8159e.entry.js} +1 -1
  552. package/dist/solutions-components/{p-4b27da06.entry.js → p-a4193e0c.entry.js} +1 -1
  553. package/dist/solutions-components/{p-7efcfb47.js → p-a60f5c84.js} +1 -1
  554. package/dist/solutions-components/{p-c4ddb206.js → p-a7ba825a.js} +2 -2
  555. package/dist/solutions-components/{p-09de2308.entry.js → p-a800dcb5.entry.js} +1 -1
  556. package/dist/solutions-components/{p-b0985f9d.entry.js → p-a80c076e.entry.js} +1 -1
  557. package/dist/solutions-components/{p-c1936856.js → p-a8b37ac8.js} +4 -4
  558. package/dist/solutions-components/{p-90e3ce7f.js → p-a8f981c6.js} +1 -1
  559. package/dist/solutions-components/{p-27e4dc8a.entry.js → p-ab148739.entry.js} +1 -1
  560. package/dist/solutions-components/{p-7773d8ea.js → p-ac124ef3.js} +1 -1
  561. package/dist/solutions-components/{p-b77b6c26.js → p-ac8990dd.js} +1 -1
  562. package/dist/solutions-components/{p-2599399f.entry.js → p-ad3b05c5.entry.js} +1 -1
  563. package/dist/solutions-components/{p-3102119d.entry.js → p-ae801fd5.entry.js} +1 -1
  564. package/dist/solutions-components/{p-64ee17c6.entry.js → p-af4bccdf.entry.js} +1 -1
  565. package/dist/solutions-components/{p-71ed8170.entry.js → p-b0fbdbe8.entry.js} +2 -2
  566. package/dist/solutions-components/{p-9271710d.js → p-b35a040e.js} +1 -1
  567. package/dist/solutions-components/{p-50aa0e5a.js → p-b4de6baf.js} +1 -1
  568. package/dist/solutions-components/{p-0a053ed7.js → p-b6aed9ca.js} +1 -1
  569. package/dist/solutions-components/{p-5ed5626f.entry.js → p-b6dffb89.entry.js} +1 -1
  570. package/dist/solutions-components/{p-3b931fc5.entry.js → p-b789b4dc.entry.js} +1 -1
  571. package/dist/solutions-components/{p-2671a80b.entry.js → p-ba846354.entry.js} +2 -2
  572. package/dist/solutions-components/{p-80e42752.entry.js → p-bb036a86.entry.js} +1 -1
  573. package/dist/solutions-components/{p-1cc7fcd0.entry.js → p-bec3dd2e.entry.js} +1 -1
  574. package/dist/solutions-components/{p-57a03a95.js → p-c1651f9c.js} +3 -3
  575. package/dist/solutions-components/{p-29c60f3d.entry.js → p-c324cac8.entry.js} +1 -1
  576. package/dist/solutions-components/p-c3896efd.entry.js +6 -0
  577. package/dist/solutions-components/{p-e900ec51.entry.js → p-c52d4a45.entry.js} +1 -1
  578. package/dist/solutions-components/{p-4250f852.entry.js → p-c6e13140.entry.js} +1 -1
  579. package/dist/solutions-components/{p-d11d941c.js → p-cc4f574b.js} +1 -1
  580. package/dist/solutions-components/{p-c0bf1d9f.js → p-cc69b971.js} +3 -3
  581. package/dist/solutions-components/{p-dff78ae3.entry.js → p-cf3e20c5.entry.js} +1 -1
  582. package/dist/solutions-components/{p-24634430.entry.js → p-d0d1c59e.entry.js} +2 -2
  583. package/dist/solutions-components/{p-01ba6099.js → p-d36d12b2.js} +1 -1
  584. package/dist/solutions-components/{p-12f9f81d.js → p-d36fae45.js} +1 -1
  585. package/dist/solutions-components/{p-74dbad36.js → p-d67f3c47.js} +1 -1
  586. package/dist/solutions-components/{p-d31a139f.entry.js → p-d7a6aa4e.entry.js} +1 -1
  587. package/dist/solutions-components/{p-ee62f91c.entry.js → p-d85d49cf.entry.js} +1 -1
  588. package/dist/solutions-components/{p-9dd1049f.entry.js → p-d8c3d175.entry.js} +1 -1
  589. package/dist/solutions-components/{p-03178c37.js → p-d8e74adf.js} +1 -1
  590. package/dist/solutions-components/{p-967411c5.entry.js → p-d8f02b2b.entry.js} +1 -1
  591. package/dist/solutions-components/{p-d6f3fc2c.entry.js → p-dbf6c7d5.entry.js} +1 -1
  592. package/dist/solutions-components/{p-8c6d9b5a.js → p-dcc35070.js} +1 -1
  593. package/dist/solutions-components/p-de1548dd.entry.js +6 -0
  594. package/dist/solutions-components/{p-4fbd1a02.js → p-dea4bc23.js} +1 -1
  595. package/dist/solutions-components/{p-bac8a4cd.js → p-dfe42b3e.js} +1 -1
  596. package/dist/solutions-components/{p-c554abce.entry.js → p-e042889e.entry.js} +2 -2
  597. package/dist/solutions-components/{p-83640661.entry.js → p-e13a02f1.entry.js} +1 -1
  598. package/dist/solutions-components/{p-0ab0b1ad.entry.js → p-e1a972b3.entry.js} +1 -1
  599. package/dist/solutions-components/{p-727b8bf8.entry.js → p-e3db2eda.entry.js} +2 -2
  600. package/dist/solutions-components/{p-ef930f76.entry.js → p-e468b193.entry.js} +1 -1
  601. package/dist/solutions-components/{p-ba569f8b.js → p-e6587ec3.js} +2 -2
  602. package/dist/solutions-components/{p-318eac43.entry.js → p-e7268b06.entry.js} +1 -1
  603. package/dist/solutions-components/{p-76f51550.entry.js → p-e8308ed8.entry.js} +1 -1
  604. package/dist/solutions-components/{p-c8935707.entry.js → p-e86aeefa.entry.js} +1 -1
  605. package/dist/solutions-components/{p-fdd93685.js → p-ea665c43.js} +2 -2
  606. package/dist/solutions-components/{p-13b513ed.entry.js → p-eb08c260.entry.js} +1 -1
  607. package/dist/solutions-components/{p-7f4bc6d2.entry.js → p-ed1c4c06.entry.js} +1 -1
  608. package/dist/solutions-components/{p-d61bbc4c.entry.js → p-edd08170.entry.js} +1 -1
  609. package/dist/solutions-components/{p-6e65d93b.entry.js → p-edead891.entry.js} +1 -1
  610. package/dist/solutions-components/{p-593036f3.js → p-ef375216.js} +2 -2
  611. package/dist/solutions-components/{p-7388563d.js → p-f0324500.js} +1 -1
  612. package/dist/solutions-components/{p-d36fb1b5.entry.js → p-f0981633.entry.js} +1 -1
  613. package/dist/solutions-components/{p-b25e8339.js → p-f0c7d4ee.js} +1 -1
  614. package/dist/solutions-components/{p-9a7e00b8.js → p-f0eb1595.js} +1 -1
  615. package/dist/solutions-components/{p-df2fc967.entry.js → p-f36bd937.entry.js} +1 -1
  616. package/dist/solutions-components/{p-cc388a08.js → p-f3f7638d.js} +2 -2
  617. package/dist/solutions-components/{p-c96bde1d.js → p-f480323e.js} +1 -1
  618. package/dist/solutions-components/p-f4c4a2b7.js +7 -0
  619. package/dist/solutions-components/{p-f8c45269.entry.js → p-f54e4700.entry.js} +1 -1
  620. package/dist/solutions-components/{p-b9e32214.entry.js → p-f9423c07.entry.js} +1 -1
  621. package/dist/solutions-components/{p-8babc507.entry.js → p-f9b71d4f.entry.js} +1 -1
  622. package/dist/solutions-components/{p-8ed6ce4d.js → p-fa214d6f.js} +1 -1
  623. package/dist/solutions-components/{p-09f79715.js → p-fa6dfea8.js} +1 -1
  624. package/dist/solutions-components/{p-61dcdc62.js → p-fc0d199c.js} +1 -1
  625. package/dist/solutions-components/{p-ee309d0b.js → p-fc3a9a40.js} +1 -1
  626. package/dist/solutions-components/{p-d3a2d182.entry.js → p-fc719dff.entry.js} +1 -1
  627. package/dist/solutions-components/{p-0534b446.entry.js → p-fe794766.entry.js} +1 -1
  628. package/dist/solutions-components/p-feaaf637.entry.js +6 -0
  629. package/dist/solutions-components/{p-b4230022.entry.js → p-ff34397d.entry.js} +2 -2
  630. package/dist/solutions-components/solutions-components.esm.js +1 -1
  631. package/dist/types/stencil-public-runtime.d.ts +0 -2
  632. package/package.json +6 -6
  633. package/dist/collection/components/arcgis-login/test/arcgis-login.e2e.js +0 -29
  634. package/dist/collection/components/arcgis-login/test/arcgis-login.spec.js +0 -37
  635. package/dist/collection/components/consent-manager/test/consent-manager.e2e.js +0 -29
  636. package/dist/collection/components/consent-manager/test/consent-manager.spec.js +0 -37
  637. package/dist/collection/components/create-related-feature/test/create-related-feature.e2e.js +0 -14
  638. package/dist/collection/components/create-related-feature/test/create-related-feature.spec.js +0 -22
  639. package/dist/collection/components/delete-button/test/delete-button.e2e.js +0 -29
  640. package/dist/collection/components/delete-button/test/delete-button.spec.js +0 -37
  641. package/dist/collection/components/feature-comments/test/feature-comments.e2e.js +0 -29
  642. package/dist/collection/components/feature-comments/test/feature-comments.spec.js +0 -37
  643. package/dist/collection/components/feature-details/test/feature-details.e2e.js +0 -14
  644. package/dist/collection/components/feature-details/test/feature-details.spec.js +0 -22
  645. package/dist/collection/components/feature-form-flow-item/test/feature-form-flow-item.e2e.js +0 -29
  646. package/dist/collection/components/feature-form-flow-item/test/feature-form-flow-item.spec.js +0 -37
  647. package/dist/collection/components/features-flow-item/test/features-flow-item.e2e.js +0 -29
  648. package/dist/collection/components/features-flow-item/test/features-flow-item.spec.js +0 -37
  649. package/dist/collection/components/list-flow-item/test/list-flow-item.e2e.js +0 -29
  650. package/dist/collection/components/list-flow-item/test/list-flow-item.spec.js +0 -37
  651. package/dist/collection/components/location-flow-item/test/location-flow-item.e2e.js +0 -29
  652. package/dist/collection/components/location-flow-item/test/location-flow-item.spec.js +0 -37
  653. package/dist/collection/components/refine-results-flow-item/test/refine-results-flow-item.e2e.js +0 -29
  654. package/dist/collection/components/refine-results-flow-item/test/refine-results-flow-item.spec.js +0 -37
  655. package/dist/collection/components/share-item/test/share-item.e2e.js +0 -29
  656. package/dist/collection/components/share-item/test/share-item.spec.js +0 -37
  657. package/dist/collection/components/solution-spatial-ref/test/solution-spatial-ref.e2e.js +0 -45
  658. package/dist/collection/components/solution-spatial-ref/test/solution-spatial-ref.spec.js +0 -80
  659. package/dist/collection/components/spatial-ref/test/spatial-ref.e2e.js +0 -71
  660. package/dist/collection/components/spatial-ref/test/spatial-ref.spec.js +0 -158
  661. package/dist/collection/utils/test/csvUtils.spec.js +0 -51
  662. package/dist/collection/utils/test/downloadUtils.spec.js +0 -1003
  663. package/dist/collection/utils/test/pciUtils.spec.js +0 -302
  664. package/dist/collection/utils/test/solution-store.spec.js +0 -444
  665. package/dist/collection/utils/test/templates.e2e.js +0 -30
  666. package/dist/solutions-components/p-046acd6b.entry.js +0 -6
  667. package/dist/solutions-components/p-20a567b0.entry.js +0 -6
  668. package/dist/solutions-components/p-2a2e4578.entry.js +0 -6
  669. package/dist/solutions-components/p-3acc8a71.entry.js +0 -6
  670. package/dist/solutions-components/p-44bfa87d.js +0 -11
  671. package/dist/solutions-components/p-69cfc738.entry.js +0 -6
  672. package/dist/solutions-components/p-7249cfd8.entry.js +0 -6
  673. package/dist/solutions-components/p-853d952d.entry.js +0 -6
  674. package/dist/solutions-components/p-cf0eeb0a.entry.js +0 -6
  675. package/dist/solutions-components/p-fa1ceaf9.js +0 -7
  676. package/dist/solutions-components/p-fb7b9bd3.entry.js +0 -6
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as t,c as s,h as i,g as e}from"./p-f4c4a2b7.js";import{C as a,a as o,D as n,b as l,H as r,O as h,c,S as d,d as p,R as u}from"./p-1dbc5234.js";import{i as f,a as b}from"./p-67b26725.js";import{c as m,d as v,u as g,I as w}from"./p-07ffc0dc.js";import{i as x}from"./p-f50a294b.js";import{c as C,s as y,a as k}from"./p-fa214d6f.js";import{c as A,d as S}from"./p-33ec544d.js";import{r as D,c as $,a as j}from"./p-ebf59857.js";import{u as z,s as F,c as O,d as L}from"./p-4541ad8e.js";import{C as M,n as I,h as N,o as P,a as K,b as U,p as E,c as H,d as R,t as T,e as X,f as V}from"./p-9f56c02c.js";import{t as q}from"./p-29edb87c.js";import"./p-b85be429.js";import"./p-db50226e.js";import"./p-7c057019.js";import"./p-a1f034be.js";import"./p-c8d3207e.js";const B=class{constructor(e){t(this,e),this.calciteColorPickerChange=s(this,"calciteColorPickerChange",6),this.calciteColorPickerInput=s(this,"calciteColorPickerInput",6),this.internalColorUpdateContext=null,this.mode=M.HEX,this.shiftKeyChannelAdjustment=0,this.handleTabActivate=t=>{this.channelMode=t.currentTarget.getAttribute("data-color-mode"),this.updateChannelsFromColor(this.color)},this.handleColorFieldScopeKeyDown=t=>{const{key:s}=t,i={ArrowUp:{x:0,y:-10},ArrowRight:{x:10,y:0},ArrowDown:{x:0,y:10},ArrowLeft:{x:-10,y:0}};i[s]&&(t.preventDefault(),this.scopeOrientation="ArrowDown"===s||"ArrowUp"===s?"vertical":"horizontal",this.captureColorFieldColor(this.colorFieldScopeLeft+i[s].x||0,this.colorFieldScopeTop+i[s].y||0,!1))},this.handleHueScopeKeyDown=t=>{const s=t.shiftKey?10:1,{key:i}=t,e={ArrowUp:1,ArrowRight:1,ArrowDown:-1,ArrowLeft:-1};if(e[i]){t.preventDefault();const a=e[i]*s,o=this.baseColorFieldColor.hue(),n=this.baseColorFieldColor.hue(o+a);this.internalColorSet(n,!1)}},this.handleHexInputChange=t=>{t.stopPropagation();const{isClearable:s,color:i}=this,e=t.target.value;!s||e?e!==(i&&I(N(i,U(this.mode))))&&this.internalColorSet(a(e)):this.internalColorSet(null)},this.handleSavedColorSelect=t=>{this.internalColorSet(a(t.currentTarget.color))},this.handleChannelInput=t=>{const s=t.currentTarget,i=Number(s.getAttribute("data-channel-index")),e=3===i?h.max:"rgb"===this.channelMode?u[Object.keys(u)[i]]:r[Object.keys(r)[i]];let a;if(this.isClearable&&!s.value)a="";else{const t=Number(s.value);a=$(t+this.shiftKeyChannelAdjustment,0,e).toString()}s.value=a,""!==a&&0!==this.shiftKeyChannelAdjustment&&this.handleChannelChange(t)},this.handleChannelChange=t=>{const s=t.currentTarget,i=Number(s.getAttribute("data-channel-index")),e=[...this.channels];if(this.isClearable&&!s.value)return this.channels=[null,null,null,null],void this.internalColorSet(null);const a=3===i,o=Number(s.value);e[i]=a?P(o):o,this.updateColorFromChannels(e)},this.handleSavedColorKeyDown=t=>{x(t.key)&&(t.preventDefault(),this.handleSavedColorSelect(t))},this.handleColorFieldPointerDown=t=>{if(!f(t))return;const{offsetX:s,offsetY:i}=t;window.addEventListener("pointermove",this.globalPointerMoveHandler),window.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.colorFieldRenderingContext,bounds:this.colorFieldRenderingContext.canvas.getBoundingClientRect()},this.captureColorFieldColor(s,i),this.colorFieldScopeNode.focus()},this.handleHueSliderPointerDown=t=>{if(!f(t))return;const{offsetX:s}=t;window.addEventListener("pointermove",this.globalPointerMoveHandler),window.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.hueSliderRenderingContext,bounds:this.hueSliderRenderingContext.canvas.getBoundingClientRect()},this.captureHueSliderColor(s),this.hueScopeNode.focus()},this.handleOpacitySliderPointerDown=t=>{if(!f(t))return;const{offsetX:s}=t;window.addEventListener("pointermove",this.globalPointerMoveHandler),window.addEventListener("pointerup",this.globalPointerUpHandler,{once:!0}),this.activeCanvasInfo={context:this.opacitySliderRenderingContext,bounds:this.opacitySliderRenderingContext.canvas.getBoundingClientRect()},this.captureOpacitySliderValue(s),this.opacityScopeNode.focus()},this.globalPointerUpHandler=t=>{if(!f(t))return;const s=this.activeCanvasInfo;this.activeCanvasInfo=null,this.drawColorControls(),s&&this.calciteColorPickerChange.emit()},this.globalPointerMoveHandler=t=>{const{activeCanvasInfo:s,el:i}=this;if(!i.isConnected||!s)return;const{context:e,bounds:a}=s;let o,n;const{clientX:l,clientY:r}=t;e.canvas.matches(":hover")?(o=l-a.x,n=r-a.y):(o=l<a.x+a.width&&l>a.x?l-a.x:l<a.x?0:a.width,n=r<a.y+a.height&&r>a.y?r-a.y:r<a.y?0:a.height),e===this.colorFieldRenderingContext?this.captureColorFieldColor(o,n,!1):e===this.hueSliderRenderingContext?this.captureHueSliderColor(o):e===this.opacitySliderRenderingContext&&this.captureOpacitySliderValue(o)},this.storeColorFieldScope=t=>{this.colorFieldScopeNode=t},this.storeHueScope=t=>{this.hueScopeNode=t},this.renderChannelsTabTitle=t=>{const{channelMode:s,messages:e}=this;return i("calcite-tab-title",{class:o.colorMode,"data-color-mode":t,key:t,onCalciteTabsActivate:this.handleTabActivate,selected:t===s},"rgb"===t?e.rgb:e.hsv)},this.renderChannelsTab=t=>{const{isClearable:s,channelMode:e,channels:a,messages:n,alphaChannel:l}=this,r=t===e,h="rgb"===t?[n.red,n.green,n.blue]:[n.hue,n.saturation,n.value],c=b(this.el),d=l?a:a.slice(0,3);return i("calcite-tab",{class:o.control,key:t,selected:r},i("div",{class:o.channels,dir:"ltr"},d.map(((t,i)=>{const e=3===i;return e&&(t=s&&!t?t:K(t)),this.renderChannel(t,i,h[i],c,e?"%":"")}))))},this.renderChannel=(t,s,e,a,n)=>i("calcite-input-number",{class:o.channel,"data-channel-index":s,dir:a,key:s,label:e,lang:this.effectiveLocale,numberButtonType:"none",numberingSystem:this.numberingSystem,onCalciteInputNumberChange:this.handleChannelChange,onCalciteInputNumberInput:this.handleChannelInput,onKeyDown:this.handleKeyDown,scale:"l"===this.scale?"m":"s",style:{marginLeft:s>0&&("s"!==this.scale||!this.alphaChannel||3!==s)?"-1px":""},suffixText:n,value:null==t?void 0:t.toString()}),this.deleteColor=()=>{const t=N(this.color,this.alphaChannel);if(!(this.savedColors.indexOf(t)>-1))return;const s=this.savedColors.filter((s=>s!==t));this.savedColors=s,this.storageId&&localStorage.setItem(`${p}${this.storageId}`,JSON.stringify(s))},this.saveColor=()=>{const t=N(this.color,this.alphaChannel);if(this.savedColors.indexOf(t)>-1)return;const s=[...this.savedColors,t];this.savedColors=s,this.storageId&&localStorage.setItem(`${p}${this.storageId}`,JSON.stringify(s))},this.drawColorControls=q(((t="all")=>{"all"!==t&&"color-field"!==t||!this.colorFieldRenderingContext||this.drawColorField(),"all"!==t&&"hue-slider"!==t||!this.hueSliderRenderingContext||this.drawHueSlider(),this.alphaChannel&&("all"===t||"opacity-slider"===t)&&this.opacitySliderRenderingContext&&this.drawOpacitySlider()}),16),this.captureColorFieldColor=(t,s,i=!0)=>{const{dimensions:{colorField:{height:e,width:a}}}=this,o=Math.round(r.s/a*t),n=Math.round(r.v/e*(e-s));this.internalColorSet(this.baseColorFieldColor.hsv().saturationv(o).value(n),i)},this.initColorField=t=>{this.colorFieldRenderingContext=t.getContext("2d"),this.updateCanvasSize("color-field"),this.drawColorControls()},this.initHueSlider=t=>{this.hueSliderRenderingContext=t.getContext("2d"),this.updateCanvasSize("hue-slider"),this.drawHueSlider()},this.initOpacitySlider=t=>{t&&(this.opacitySliderRenderingContext=t.getContext("2d"),this.updateCanvasSize("opacity-slider"),this.drawOpacitySlider())},this.storeOpacityScope=t=>{this.opacityScopeNode=t},this.handleOpacityScopeKeyDown=t=>{const s=t.shiftKey?10:1,{key:i}=t,e={ArrowUp:.01,ArrowRight:.01,ArrowDown:-.01,ArrowLeft:-.01};if(e[i]){t.preventDefault();const a=e[i]*s,o=this.baseColorFieldColor.alpha(),n=this.baseColorFieldColor.alpha(o+a);this.internalColorSet(n,!1)}},this.allowEmpty=!1,this.alphaChannel=!1,this.channelsDisabled=!1,this.clearable=!1,this.color=n,this.disabled=!1,this.format="auto",this.hideChannels=!1,this.hexDisabled=!1,this.hideHex=!1,this.hideSaved=!1,this.savedDisabled=!1,this.scale="m",this.storageId=void 0,this.messageOverrides=void 0,this.numberingSystem=void 0,this.value=I(N(n,this.alphaChannel)),this.defaultMessages=void 0,this.channelMode="rgb",this.channels=this.toChannels(n),this.dimensions=l.m,this.effectiveLocale="",this.messages=void 0,this.savedColors=[],this.colorFieldScopeTop=void 0,this.colorFieldScopeLeft=void 0,this.hueScopeLeft=void 0,this.opacityScopeLeft=void 0,this.scopeOrientation=void 0}handleAllowEmptyOrClearableChange(){this.isClearable=this.clearable||this.allowEmpty}handleAlphaChannelChange(t){const{format:s}=this;t&&"auto"!==s&&!U(s)&&(console.warn(`ignoring alphaChannel as the current format (${s}) does not support alpha`),this.alphaChannel=!1)}handleColorChange(t,s){this.drawColorControls(),this.updateChannelsFromColor(t),this.previousColor=s}handleFormatOrAlphaChannelChange(){this.setMode(this.format),this.internalColorSet(this.color,!1,"internal")}handleScaleChange(t="m"){this.updateDimensions(t),this.updateCanvasSize("all"),this.drawColorControls()}onMessagesChange(){}handleValueChange(t,s){const{isClearable:i,format:e}=this;let o=!1;if(!i||t){const i=E(t);if(!i||"auto"!==e&&i!==e)return this.showIncompatibleColorWarning(t,e),void(this.value=s);o=this.mode!==i,this.setMode(i,null===this.internalColorUpdateContext)}const n=this.activeCanvasInfo;if("initial"===this.internalColorUpdateContext)return;if("user-interaction"===this.internalColorUpdateContext)return this.calciteColorPickerInput.emit(),void(n||this.calciteColorPickerChange.emit());const l=i&&!t?null:a(null!=t&&"object"==typeof t&&U(this.mode)?H(t):t),r=!R(l,this.color);(o||r)&&this.internalColorSet(l,this.alphaChannel&&!(this.mode.endsWith("a")||this.mode.endsWith("a-css")),"internal")}get baseColorFieldColor(){return this.color||this.previousColor||n}effectiveLocaleChange(){z(this,this.effectiveLocale)}handleChannelKeyUpOrDown(t){this.shiftKeyChannelAdjustment=0;const{key:s}=t;if("ArrowUp"!==s&&"ArrowDown"!==s||!t.composedPath().some((t=>{var s;return null===(s=t.classList)||void 0===s?void 0:s.contains(o.channel)})))return;const{shiftKey:i}=t;if(t.preventDefault(),!this.color)return this.internalColorSet(this.previousColor),void t.stopPropagation();this.shiftKeyChannelAdjustment="ArrowUp"===s&&i?9:"ArrowDown"===s&&i?-9:0}async setFocus(){await C(this),this.el.focus()}async componentWillLoad(){y(this),this.handleAllowEmptyOrClearableChange();const{isClearable:t,color:s,format:i,value:e}=this,o=t&&!e,n=E(e),l=o||"auto"===i&&n||i===n,r=o?null:l?a(e):s;l||this.showIncompatibleColorWarning(e,i),this.setMode(i,!1),this.internalColorSet(r,!1,"initial"),this.updateDimensions(this.scale);const h=`${p}${this.storageId}`;this.storageId&&localStorage.getItem(h)&&(this.savedColors=JSON.parse(localStorage.getItem(h))),await F(this)}connectedCallback(){m(this),A(this),O(this)}componentDidLoad(){k(this)}disconnectedCallback(){window.removeEventListener("pointermove",this.globalPointerMoveHandler),window.removeEventListener("pointerup",this.globalPointerUpHandler),v(this),S(this),L(this)}componentDidRender(){g(this)}render(){const{channelsDisabled:t,color:s,colorFieldScopeLeft:e,colorFieldScopeTop:a,dimensions:{slider:{width:l},thumb:{radius:c}},hexDisabled:d,hideChannels:p,hideHex:u,hideSaved:f,hueScopeLeft:b,messages:m,alphaChannel:v,opacityScopeLeft:g,savedColors:x,savedDisabled:C,scale:y,scopeOrientation:k}=this,A=s?N(s,v):null,S=c,D=null!=b?b:l*n.hue()/r.h,$=c,j=null!=g?g:l*K(n.alpha())/h.max,z=null===s,F="vertical"===k,O=d||u,L=t||p,M=C||f,[I,P]=this.getAdjustedScopePosition(e,a),[U,E]=this.getAdjustedScopePosition(D,S),[H,R]=this.getAdjustedScopePosition(j,$);return i(w,{key:"5f347cb136350e7661b7b479ee86a16bb85414c3",disabled:this.disabled},i("div",{key:"0294cbc1d16db228c22a2ae1bd061d9a683c1378",class:o.container},i("div",{key:"f7531da7e77293d52f5f8220443258e40f07f2d3",class:o.controlAndScope},i("canvas",{key:"6738d5bc8ec0f77c01eaac72b6b89edeea39abd3",class:o.colorField,onPointerDown:this.handleColorFieldPointerDown,ref:this.initColorField}),i("div",{key:"932e10e761c6e8732e3412b049c895df18c4358f","aria-label":F?m.value:m.saturation,"aria-valuemax":F?r.v:r.s,"aria-valuemin":"0","aria-valuenow":(F?null==s?void 0:s.saturationv():null==s?void 0:s.value())||"0",class:{[o.scope]:!0,[o.colorFieldScope]:!0},onKeyDown:this.handleColorFieldScopeKeyDown,role:"slider",style:{top:`${P||0}px`,left:`${I||0}px`},tabindex:"0",ref:this.storeColorFieldScope})),i("div",{key:"1d1e670478df18f1a8ad35d9ca217b378e103468",class:o.previewAndSliders},i("calcite-color-picker-swatch",{key:"e65dd58f2aebb184db914c3a2c4e9782eb4b1e7c",class:o.preview,color:A,scale:"l"}),i("div",{key:"98fb46881b6c40899b8fdfa4afeb521356d1e250",class:o.sliders},i("div",{key:"7367b44dcc87a8cfbd5cd913ebee690eeabfcb92",class:o.controlAndScope},i("canvas",{key:"4fe31f39350ac02fe527452da248b07b573dadac",class:{[o.slider]:!0,[o.hueSlider]:!0},onPointerDown:this.handleHueSliderPointerDown,ref:this.initHueSlider}),i("div",{key:"47048d9a779471169b1c4ec14d70a1a258914b1a","aria-label":m.hue,"aria-valuemax":r.h,"aria-valuemin":"0","aria-valuenow":(null==s?void 0:s.round().hue())||n.round().hue(),class:{[o.scope]:!0,[o.hueScope]:!0},onKeyDown:this.handleHueScopeKeyDown,role:"slider",style:{top:`${E}px`,left:`${U}px`},tabindex:"0",ref:this.storeHueScope})),v?i("div",{class:o.controlAndScope},i("canvas",{class:{[o.slider]:!0,[o.opacitySlider]:!0},onPointerDown:this.handleOpacitySliderPointerDown,ref:this.initOpacitySlider}),i("div",{"aria-label":m.opacity,"aria-valuemax":h.max,"aria-valuemin":h.min,"aria-valuenow":(s||n).round().alpha(),class:{[o.scope]:!0,[o.opacityScope]:!0},onKeyDown:this.handleOpacityScopeKeyDown,role:"slider",style:{top:`${R}px`,left:`${H}px`},tabindex:"0",ref:this.storeOpacityScope})):null)),O&&L?null:i("div",{class:{[o.controlSection]:!0,[o.section]:!0}},i("div",{class:o.hexAndChannelsGroup},O?null:i("div",{class:o.hexOptions},i("calcite-color-picker-hex-input",{allowEmpty:this.isClearable,alphaChannel:v,class:o.control,messages:m,numberingSystem:this.numberingSystem,onCalciteColorPickerHexInputChange:this.handleHexInputChange,scale:y,value:A})),L?null:i("calcite-tabs",{class:{[o.colorModeContainer]:!0,[o.splitSection]:!0},scale:"l"===y?"m":"s"},i("calcite-tab-nav",{slot:"title-group"},this.renderChannelsTabTitle("rgb"),this.renderChannelsTabTitle("hsv")),this.renderChannelsTab("rgb"),this.renderChannelsTab("hsv")))),M?null:i("div",{class:{[o.savedColorsSection]:!0,[o.section]:!0}},i("div",{class:o.header},i("label",null,m.saved),i("div",{class:o.savedColorsButtons},i("calcite-button",{appearance:"transparent",class:o.deleteColor,disabled:z,iconStart:"minus",kind:"neutral",label:m.deleteColor,onClick:this.deleteColor,scale:y,type:"button"}),i("calcite-button",{appearance:"transparent",class:o.saveColor,disabled:z,iconStart:"plus",kind:"neutral",label:m.saveColor,onClick:this.saveColor,scale:y,type:"button"}))),x.length>0?i("div",{class:o.savedColors},[...x.map((t=>i("calcite-color-picker-swatch",{class:o.savedColor,color:t,key:t,onClick:this.handleSavedColorSelect,onKeyDown:this.handleSavedColorKeyDown,scale:y,tabIndex:0})))]):null)))}handleKeyDown(t){"Enter"===t.key&&t.preventDefault()}showIncompatibleColorWarning(t,s){console.warn(`ignoring color value (${t}) as it is not compatible with the current format (${s})`)}setMode(t,s=!0){this.mode=this.ensureCompatibleMode("auto"===t?this.mode:t,s)}ensureCompatibleMode(t,s){const{alphaChannel:i}=this,e=U(t);if(i&&!e){const i=V(t);return s&&console.warn(`setting format to (${i}) as the provided one (${t}) does not support alpha`),i}if(!i&&e){const i=T(t);return s&&console.warn(`setting format to (${i}) as the provided one (${t}) does not support alpha`),i}return t}captureHueSliderColor(t){const{dimensions:{slider:{width:s}}}=this;this.internalColorSet(this.baseColorFieldColor.hue(c/s*t),!1)}captureOpacitySliderValue(t){const{dimensions:{slider:{width:s}}}=this,i=P(h.max/s*t);this.internalColorSet(this.baseColorFieldColor.alpha(i),!1)}internalColorSet(t,s=!0,i="user-interaction"){s&&R(t,this.color)||(this.internalColorUpdateContext=i,this.color=t,this.value=this.toValue(t),this.internalColorUpdateContext=null)}toValue(t,s=this.mode){if(!t)return null;if(s.includes("hex")){const i=s===M.HEXA;return I(N(t.round(),i),i)}if(s.includes("-css")){const i=t[s.replace("-css","").replace("a","")]().round().string();return(s.endsWith("a")||s.endsWith("a-css"))&&1===t.alpha()?`${i.slice(0,3)}a(${i.slice(4,-1)}, ${t.alpha()})`:i}const i=t[T(s)]().round().object();return s.endsWith("a")?X(i):i}getSliderCapSpacing(){const{dimensions:{slider:{height:t},thumb:{radius:s}}}=this;return 2*s-t}updateDimensions(t="m"){this.dimensions=l[t]}drawColorField(){const t=this.colorFieldRenderingContext,{dimensions:{colorField:{height:s,width:i}}}=this;t.fillStyle=this.baseColorFieldColor.hsv().saturationv(100).value(100).alpha(1).string(),t.fillRect(0,0,i,s);const e=t.createLinearGradient(0,0,i,0);e.addColorStop(0,"rgba(255,255,255,1)"),e.addColorStop(1,"rgba(255,255,255,0)"),t.fillStyle=e,t.fillRect(0,0,i,s);const a=t.createLinearGradient(0,0,0,s);a.addColorStop(0,"rgba(0,0,0,0)"),a.addColorStop(1,"rgba(0,0,0,1)"),t.fillStyle=a,t.fillRect(0,0,i,s),this.drawActiveColorFieldColor()}setCanvasContextSize(t,{height:s,width:i}){if(!t)return;const e=window.devicePixelRatio||1;t.width=i*e,t.height=s*e,t.style.height=`${s}px`,t.style.width=`${i}px`,t.getContext("2d").scale(e,e)}updateCanvasSize(t="all"){var s,i,e;const{dimensions:a}=this;"all"!==t&&"color-field"!==t||this.setCanvasContextSize(null===(s=this.colorFieldRenderingContext)||void 0===s?void 0:s.canvas,a.colorField);const o={width:a.slider.width,height:a.slider.height+2*(a.thumb.radius-a.slider.height/2)};"all"!==t&&"hue-slider"!==t||this.setCanvasContextSize(null===(i=this.hueSliderRenderingContext)||void 0===i?void 0:i.canvas,o),"all"!==t&&"opacity-slider"!==t||this.setCanvasContextSize(null===(e=this.opacitySliderRenderingContext)||void 0===e?void 0:e.canvas,o)}drawActiveColorFieldColor(){const{color:t}=this;if(!t)return;const s=t.hsv(),{dimensions:{colorField:{height:i,width:e},thumb:{radius:a}}}=this,o=s.saturationv()/(r.s/e),n=i-s.value()/(r.v/i);requestAnimationFrame((()=>{this.colorFieldScopeLeft=o,this.colorFieldScopeTop=n})),this.drawThumb(this.colorFieldRenderingContext,a,o,n,s,!1)}drawThumb(t,s,i,e,a,o){const n=2*Math.PI;if(t.beginPath(),t.arc(i,e,s,0,n),t.fillStyle="#fff",t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),o&&a.alpha()<1){const a=t.createPattern(this.getCheckeredBackgroundPattern(),"repeat");t.beginPath(),t.arc(i,e,s-3,0,n),t.fillStyle=a,t.fill()}t.globalCompositeOperation="source-atop",t.beginPath(),t.arc(i,e,s-3,0,n);const l=o?a.alpha():1;t.fillStyle=a.rgb().alpha(l).string(),t.fill(),t.globalCompositeOperation="source-over"}drawActiveHueSliderColor(){const{color:t}=this;if(!t)return;const s=t.hsv().saturationv(100).value(100),{dimensions:{slider:{width:i},thumb:{radius:e}}}=this,a=s.hue()/(c/i),o=e,n=this.getSliderBoundX(a,i,e);requestAnimationFrame((()=>{this.hueScopeLeft=n})),this.drawThumb(this.hueSliderRenderingContext,e,n,o,s,!1)}drawHueSlider(){const t=this.hueSliderRenderingContext,{dimensions:{slider:{height:s,width:i},thumb:{radius:e}}}=this,o=e-s/2,n=t.createLinearGradient(0,0,i,0),l=["red","yellow","lime","cyan","blue","magenta","#ff0004"],r=1/(l.length-1);let h=0;l.forEach((t=>{n.addColorStop(h,a(t).string()),h+=r})),t.clearRect(0,0,i,s+2*this.getSliderCapSpacing()),this.drawSliderPath(t,s,i,0,o),t.fillStyle=n,t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),this.drawActiveHueSliderColor()}drawOpacitySlider(){const t=this.opacitySliderRenderingContext,{baseColorFieldColor:s,dimensions:{slider:{height:i,width:e},thumb:{radius:a}}}=this,o=a-i/2;t.clearRect(0,0,e,i+2*this.getSliderCapSpacing());const n=t.createLinearGradient(0,o,e,0),l=s.rgb().alpha(0),r=s.rgb().alpha(.5),h=s.rgb().alpha(1);n.addColorStop(0,l.string()),n.addColorStop(.5,r.string()),n.addColorStop(1,h.string()),this.drawSliderPath(t,i,e,0,o);const c=t.createPattern(this.getCheckeredBackgroundPattern(),"repeat");t.fillStyle=c,t.fill(),t.fillStyle=n,t.fill(),t.strokeStyle="rgba(0,0,0,0.3)",t.lineWidth=1,t.stroke(),this.drawActiveOpacitySliderColor()}drawSliderPath(t,s,i,e,a){const o=s/2+1;t.beginPath(),t.moveTo(e+o,a),t.lineTo(e+i-o,a),t.quadraticCurveTo(e+i,a,e+i,a+o),t.lineTo(e+i,a+s-o),t.quadraticCurveTo(e+i,a+s,e+i-o,a+s),t.lineTo(e+o,a+s),t.quadraticCurveTo(e,a+s,e,a+s-o),t.lineTo(e,a+o),t.quadraticCurveTo(e,a,e+o,a),t.closePath()}getCheckeredBackgroundPattern(){if(this.checkerPattern)return this.checkerPattern;const t=document.createElement("canvas");t.width=10,t.height=10;const s=t.getContext("2d");return s.fillStyle="#ccc",s.fillRect(0,0,10,10),s.fillStyle="#fff",s.fillRect(0,0,5,5),s.fillRect(5,5,5,5),this.checkerPattern=t,t}drawActiveOpacitySliderColor(){const{color:t}=this;if(!t)return;const s=t,{dimensions:{slider:{width:i},thumb:{radius:e}}}=this,a=K(s.alpha())/(h.max/i),o=e,n=this.getSliderBoundX(a,i,e);requestAnimationFrame((()=>{this.opacityScopeLeft=n})),this.drawThumb(this.opacitySliderRenderingContext,e,n,o,s,!0)}getSliderBoundX(t,s,i){const e=j(t,s,i);return 0===e?t:-1===e?D(t,0,s,i,2*i):D(t,0,s,s-2*i,s-i)}updateColorFromChannels(t){this.internalColorSet(a(t,this.channelMode))}updateChannelsFromColor(t){this.channels=t?this.toChannels(t):[null,null,null,null]}toChannels(t){const{channelMode:s}=this,i=t[s]().array().map(((t,s)=>3===s?t:Math.floor(t)));return 3===i.length&&i.push(1),i}getAdjustedScopePosition(t,s){return[t-d/2,s-d/2]}static get delegatesFocus(){return!0}static get assetsDirs(){return["assets"]}get el(){return e(this)}static get watchers(){return{allowEmpty:["handleAllowEmptyOrClearableChange"],clearable:["handleAllowEmptyOrClearableChange"],alphaChannel:["handleAlphaChannelChange","handleFormatOrAlphaChannelChange"],color:["handleColorChange"],format:["handleFormatOrAlphaChannelChange"],scale:["handleScaleChange"],messageOverrides:["onMessagesChange"],value:["handleValueChange"],effectiveLocale:["effectiveLocaleChange"]}}};B.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:inline-block;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]){--calcite-color-picker-spacing:8px}:host([scale=s]) .container{inline-size:160px}:host([scale=s]) .saved-colors{gap:0.25rem;grid-template-columns:repeat(auto-fill, 20px)}:host([scale=m]){--calcite-color-picker-spacing:12px}:host([scale=m]) .container{inline-size:272px}:host([scale=l]){--calcite-color-picker-spacing:16px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) .container{inline-size:464px}:host([scale=l]) .section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}:host([scale=l]) .saved-colors{grid-template-columns:repeat(auto-fill, 32px)}:host([scale=l]) .control-section{flex-wrap:nowrap;align-items:baseline;flex-wrap:wrap}:host([scale=l]) .color-hex-options{display:flex;flex-shrink:1;flex-direction:column;justify-content:space-around}:host([scale=l]) .color-mode-container{flex-shrink:3}.container{background-color:var(--calcite-color-foreground-1);display:inline-block;border:1px solid var(--calcite-color-border-1)}.control-and-scope{position:relative;display:flex;cursor:pointer;touch-action:none}.scope{pointer-events:none;position:absolute;z-index:var(--calcite-z-index);block-size:1px;inline-size:1px;border-radius:9999px;background-color:transparent;font-size:var(--calcite-font-size--1);outline-color:transparent}.scope: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 );outline-offset:11px}.hex-and-channels-group{inline-size:100%}.hex-and-channels-group,.control-section{display:flex;flex-direction:row;flex-wrap:wrap}.section{padding-block:0 var(--calcite-color-picker-spacing);padding-inline:var(--calcite-color-picker-spacing)}.section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}.sliders{display:flex;flex-direction:column;justify-content:space-between;margin-inline-start:var(--calcite-color-picker-spacing)}.preview-and-sliders{display:flex;align-items:center;padding:var(--calcite-color-picker-spacing)}.color-hex-options,.section--split{flex-grow:1}.header{display:flex;align-items:center;justify-content:space-between;color:var(--calcite-color-text-1)}.color-mode-container{padding-block-start:var(--calcite-color-picker-spacing)}.channels{display:flex;row-gap:0.125rem}.channel[data-channel-index="3"]{inline-size:159px}:host([scale=s]) .channels{flex-wrap:wrap}:host([scale=s]) .channel{flex-basis:30%;flex-grow:1}:host([scale=s]) .channel[data-channel-index="3"]{inline-size:unset;margin-inline-start:unset}:host([scale=l]) .channel[data-channel-index="3"]{inline-size:131px}.saved-colors{display:grid;gap:0.5rem;padding-block-start:var(--calcite-color-picker-spacing);grid-template-columns:repeat(auto-fill, 24px)}.saved-colors-buttons{display:flex}.saved-color{outline-offset:0;outline-color:transparent;cursor:pointer}.saved-color:focus{outline:2px solid var(--calcite-color-brand);outline-offset:2px}.saved-color:hover{transition:outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;outline:2px solid var(--calcite-color-border-2);outline-offset:2px}:host([hidden]){display:none}[hidden]{display:none}';export{B as calcite_color_picker}
@@ -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 c,H as o,g as i}from"./p-fa1ceaf9.js";import{s as a,g as n,t as r}from"./p-67b26725.js";import{c as s,d as l}from"./p-813d004f.js";import{c as d,d as h,s as p,u as b}from"./p-44bfa87d.js";import{c as f,a as u,s as v}from"./p-8ed6ce4d.js";import{c as m,u as g,d as k,I as w}from"./p-9c6c056a.js";import{i as x}from"./p-f50a294b.js";import"./p-b85be429.js";import"./p-db50226e.js";import"./p-e6c9e6af.js";import"./p-b64cc55e.js";
6
+ import{r as e,c as t,h as c,H as o,g as i}from"./p-f4c4a2b7.js";import{s as a,g as n,t as r}from"./p-67b26725.js";import{c as s,d as l}from"./p-33ec544d.js";import{c as d,d as h,s as p,u as b}from"./p-4541ad8e.js";import{c as f,a as u,s as v}from"./p-fa214d6f.js";import{c as m,u as g,d as k,I as w}from"./p-07ffc0dc.js";import{i as x}from"./p-f50a294b.js";import"./p-b85be429.js";import"./p-db50226e.js";import"./p-a1f034be.js";import"./p-7c057019.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/main/LICENSE.md for details.
@@ -3,7 +3,7 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as t,c as e,h as i,g as n}from"./p-fa1ceaf9.js";import{g as o}from"./p-b85be429.js";import{c as a,d as c,u as l,I as s}from"./p-9c6c056a.js";import{c as r,s as d,a as h}from"./p-8ed6ce4d.js";import"./p-b64cc55e.js";
6
+ import{r as t,c as e,h as i,g as n}from"./p-f4c4a2b7.js";import{g as o}from"./p-b85be429.js";import{c as a,d as c,u as l,I as s}from"./p-07ffc0dc.js";import{c as r,s as d,a as h}from"./p-fa214d6f.js";import"./p-7c057019.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/main/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 e}from"./p-6d51c6bf.js";import"./p-fa1ceaf9.js";import"./p-716a0878.js";import"./p-67b26725.js";import"./p-b85be429.js";import"./p-db50226e.js";import"./p-9c6c056a.js";import"./p-b64cc55e.js";import"./p-f50a294b.js";import"./p-6127f49e.js";import"./p-e6e50975.js";import"./p-8ed6ce4d.js";import"./p-813d004f.js";import"./p-e6c9e6af.js";import"./p-97f0e1b6.js";import"./p-a89e61f4.js";import"./p-ebf59857.js";import"./p-44bfa87d.js";import"./p-ba569f8b.js";import"./p-5f1fdaf9.js";var r={name:"da",weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn._man._tirs._ons._tors._fre._lør.".split("_"),weekdaysMin:"sø._ma._ti._on._to._fr._lø.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,ordinal:function(e){return e+"."},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.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"}};e.locale(r,null,!0);export{r as default}
6
+ import{d as e}from"./p-501c2126.js";import"./p-f4c4a2b7.js";import"./p-1c7fa861.js";import"./p-67b26725.js";import"./p-b85be429.js";import"./p-db50226e.js";import"./p-07ffc0dc.js";import"./p-7c057019.js";import"./p-f50a294b.js";import"./p-6127f49e.js";import"./p-e6e50975.js";import"./p-fa214d6f.js";import"./p-33ec544d.js";import"./p-a1f034be.js";import"./p-97f0e1b6.js";import"./p-6fde2784.js";import"./p-ebf59857.js";import"./p-4541ad8e.js";import"./p-e6587ec3.js";import"./p-51ed7835.js";var r={name:"da",weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn._man._tirs._ons._tors._fre._lør.".split("_"),weekdaysMin:"sø._ma._ti._on._to._fr._lø.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,ordinal:function(e){return e+"."},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.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"}};e.locale(r,null,!0);export{r 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 e,c as t,h as i,H as n,g as o,F as s}from"./p-fa1ceaf9.js";import{s as a,h as l,f as r,t as c}from"./p-67b26725.js";import{c as d,u as h,d as p,I as b}from"./p-9c6c056a.js";import{s as m,a as f,c as u}from"./p-8ed6ce4d.js";import{c as g}from"./p-e6c9e6af.js";import{S as x}from"./p-01ee5ad6.js";import{H as v}from"./p-cc388a08.js";import{c as w,d as y}from"./p-813d004f.js";import{c as k,s as z,d as C,u as S}from"./p-44bfa87d.js";import{S as j,C as A,I as E}from"./p-d2b66bd2.js";import{c as H,d as I}from"./p-27c68097.js";import"./p-b85be429.js";import"./p-db50226e.js";import"./p-b64cc55e.js";import"./p-f50a294b.js";const L=class{constructor(i){e(this,i),this.calcitePanelClose=t(this,"calcitePanelClose",6),this.calcitePanelToggle=t(this,"calcitePanelToggle",6),this.calcitePanelScroll=t(this,"calcitePanelScroll",6),this.resizeObserver=g("resize",(()=>this.resizeHandler())),this.resizeHandler=()=>{const{panelScrollEl:e}=this;e&&"number"==typeof e.scrollHeight&&"number"==typeof e.offsetHeight&&(e.tabIndex=e.scrollHeight>e.offsetHeight?0:-1)},this.setContainerRef=e=>{this.containerEl=e},this.panelKeyDownHandler=e=>{this.closable&&"Escape"===e.key&&!e.defaultPrevented&&(this.close(),e.preventDefault())},this.close=()=>{this.closed=!0,this.calcitePanelClose.emit()},this.collapse=()=>{this.collapsed=!this.collapsed,this.calcitePanelToggle.emit()},this.panelScrollHandler=()=>{this.calcitePanelScroll.emit()},this.handleHeaderActionsStartSlotChange=e=>{this.hasStartActions=a(e)},this.handleHeaderActionsEndSlotChange=e=>{this.hasEndActions=a(e)},this.handleHeaderMenuActionsSlotChange=e=>{this.hasMenuItems=a(e)},this.handleActionBarSlotChange=e=>{const t=l(e).filter((e=>null==e?void 0:e.matches("calcite-action-bar")));t.forEach((e=>e.layout="horizontal")),this.hasActionBar=!!t.length},this.handleHeaderContentSlotChange=e=>{this.hasHeaderContent=a(e)},this.handleFooterSlotChange=e=>{this.hasFooterContent=a(e)},this.handleFooterActionsSlotChange=e=>{this.hasFooterActions=a(e)},this.handleFabSlotChange=e=>{this.hasFab=a(e)},this.setPanelScrollEl=e=>{var t,i;this.panelScrollEl=e,null===(t=this.resizeObserver)||void 0===t||t.disconnect(),e&&(null===(i=this.resizeObserver)||void 0===i||i.observe(e),this.resizeHandler())},this.closed=!1,this.disabled=!1,this.closable=!1,this.collapsed=!1,this.collapseDirection="down",this.collapsible=!1,this.headingLevel=void 0,this.loading=!1,this.heading=void 0,this.description=void 0,this.menuOpen=!1,this.messageOverrides=void 0,this.messages=void 0,this.overlayPositioning="absolute",this.hasStartActions=!1,this.hasEndActions=!1,this.hasMenuItems=!1,this.hasHeaderContent=!1,this.hasActionBar=!1,this.hasFooterContent=!1,this.hasFooterActions=!1,this.hasFab=!1,this.defaultMessages=void 0,this.effectiveLocale="",this.showHeaderContent=!1}onMessagesChange(){}connectedCallback(){d(this),w(this),k(this)}async componentWillLoad(){m(this),await z(this)}componentDidLoad(){f(this)}componentDidRender(){h(this)}disconnectedCallback(){var e;p(this),y(this),C(this),null===(e=this.resizeObserver)||void 0===e||e.disconnect()}effectiveLocaleChange(){S(this,this.effectiveLocale)}async setFocus(){await u(this),r(this.containerEl)}async scrollContentTo(e){var t;null===(t=this.panelScrollEl)||void 0===t||t.scrollTo(e)}renderHeaderContent(){const{heading:e,headingLevel:t,description:n,hasHeaderContent:o}=this,s=e?i(v,{class:A.heading,level:t},e):null,a=n?i("span",{class:A.description},n):null;return o||!s&&!a?null:i("div",{class:A.headerContent,key:"header-content"},s,a)}renderActionBar(){return i("div",{class:A.actionBarContainer,hidden:!this.hasActionBar},i("slot",{name:j.actionBar,onSlotchange:this.handleActionBarSlotChange}))}renderHeaderSlottedContent(){return i("div",{class:A.headerContent,hidden:!this.hasHeaderContent,key:"slotted-header-content"},i("slot",{name:j.headerContent,onSlotchange:this.handleHeaderContentSlotChange}))}renderHeaderStartActions(){const{hasStartActions:e}=this;return i("div",{class:{[A.headerActionsStart]:!0,[A.headerActions]:!0},hidden:!e,key:"header-actions-start"},i("slot",{name:j.headerActionsStart,onSlotchange:this.handleHeaderActionsStartSlotChange}))}renderHeaderActionsEnd(){const{hasEndActions:e,messages:t,closable:n,collapsed:o,collapseDirection:s,collapsible:a,hasMenuItems:l}=this,{collapse:r,expand:d,close:h}=t,p=[E.expand,E.collapse];"up"===s&&p.reverse();const b=a?i("calcite-action",{"aria-expanded":c(!o),"aria-label":r,"data-test":"collapse",icon:o?p[0]:p[1],onClick:this.collapse,text:r,title:o?d:r}):null,m=n?i("calcite-action",{"aria-label":h,"data-test":"close",icon:E.close,onClick:this.close,text:h,title:h}):null,f=i("slot",{name:j.headerActionsEnd,onSlotchange:this.handleHeaderActionsEndSlotChange}),u=e||b||m||l;return i("div",{class:{[A.headerActionsEnd]:!0,[A.headerActions]:!0},hidden:!u,key:"header-actions-end"},f,this.renderMenu(),b,m)}renderMenu(){const{hasMenuItems:e,messages:t,menuOpen:n}=this;return i("calcite-action-menu",{flipPlacements:["top","bottom"],hidden:!e,key:"menu",label:t.options,open:n,overlayPositioning:this.overlayPositioning,placement:"bottom-end"},i("calcite-action",{icon:E.menu,slot:x.trigger,text:t.options}),i("slot",{name:j.headerMenuActions,onSlotchange:this.handleHeaderMenuActionsSlotChange}))}renderHeaderNode(){const{hasHeaderContent:e,hasStartActions:t,hasEndActions:n,closable:o,collapsible:s,hasMenuItems:a,hasActionBar:l}=this,r=this.renderHeaderContent(),c=e||!!r||t||n||s||o||a;return this.showHeaderContent=c,i("header",{class:A.header,hidden:!(c||l)},i("div",{class:{[A.headerContainer]:!0,[A.headerContainerBorderEnd]:l},hidden:!c},this.renderHeaderStartActions(),this.renderHeaderSlottedContent(),r,this.renderHeaderActionsEnd()),this.renderActionBar())}renderFooterNode(){const{hasFooterContent:e,hasFooterActions:t}=this;return i("footer",{class:A.footer,hidden:!(e||t)},i("slot",{key:"footer-slot",name:j.footer,onSlotchange:this.handleFooterSlotChange}),i("slot",{key:"footer-actions-slot",name:j.footerActions,onSlotchange:this.handleFooterActionsSlotChange}))}renderContent(){return i("div",{class:A.contentWrapper,hidden:this.collapsible&&this.collapsed,onScroll:this.panelScrollHandler,ref:this.setPanelScrollEl},i("slot",null),this.renderFab())}renderFab(){return i("div",{class:A.fabContainer,hidden:!this.hasFab},i("slot",{name:j.fab,onSlotchange:this.handleFabSlotChange}))}render(){const{disabled:e,loading:t,panelKeyDownHandler:o,closed:s,closable:a}=this,l=i("article",{key:"c03a39a1d58126b861ce2a4f7610a20d8bee288d","aria-busy":c(t),class:A.container,hidden:s,tabIndex:a?0:-1,ref:this.setContainerRef},this.renderHeaderNode(),this.renderContent(),this.renderFooterNode());return i(n,{key:"0378ba8d08d9c802b21f3c8edd9926f759a6381c",onKeyDown:o},i(b,{key:"ada3c75b32686e450190e407d6c4855e7e1310eb",disabled:e},t?i("calcite-scrim",{loading:t}):null,l))}static get assetsDirs(){return["assets"]}get el(){return o(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};L.style=":host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}: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;block-size:100%;inline-size:100%;flex:1 1 auto;overflow:hidden;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.header{margin:0px;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-color-text-2);color:var(--calcite-color-text-2)}.heading{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:0.5rem}.container{margin:0px;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;background-color:var(--calcite-color-background);padding:0px;transition:max-block-size var(--calcite-animation-timing), inline-size var(--calcite-animation-timing)}.container[hidden]{display:none}.header{z-index:var(--calcite-z-index-header);display:flex;flex-direction:column;background-color:var(--calcite-color-foreground-1);border-block-end:var(--calcite-panel-header-border-block-end, 1px solid var(--calcite-color-border-3))}.header-container{display:flex;inline-size:100%;flex-direction:row;align-items:stretch;justify-content:flex-start;flex:0 0 auto}.header-container--border-end{border-block-end:1px solid var(--calcite-color-border-3)}.action-bar-container{inline-size:100%}.action-bar-container ::slotted(calcite-action-bar){inline-size:100%}.header-content{display:flex;flex-direction:column;overflow:hidden;padding-inline:0.75rem;padding-block:0.875rem;margin-inline-end:auto}.header-content .heading,.header-content .description{display:block;overflow-wrap:break-word;padding:0px}.header-content .heading{margin-inline:0px;margin-block:0px 0.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-medium)}.header-content .heading:only-child{margin-block-end:0px}.header-content .description{font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-2)}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-color-border-3);border-inline-end-width:1px}.header-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch}.header-actions--end{margin-inline-start:auto}.content-wrapper{display:flex;block-size:100%;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;overflow:auto;background-color:var(--calcite-color-background)}.footer{display:flex;inline-size:100%;justify-content:space-evenly;background-color:var(--calcite-color-foreground-1);flex:0 0 auto;padding:var(--calcite-panel-footer-padding, 0.5rem);border-block-start:1px solid var(--calcite-color-border-3)}.fab-container{position:sticky;inset-block-end:0px;z-index:var(--calcite-z-index-sticky);margin-block:0px;margin-inline:auto;display:block;padding:0.5rem;inset-inline:0;inline-size:-moz-fit-content;inline-size:fit-content}:host([hidden]){display:none}[hidden]{display:none}";
6
+ import{r as e,c as t,h as i,H as n,g as o,F as s}from"./p-f4c4a2b7.js";import{s as a,h as l,f as r,t as c}from"./p-67b26725.js";import{c as d,u as h,d as p,I as b}from"./p-07ffc0dc.js";import{s as m,a as f,c as u}from"./p-fa214d6f.js";import{c as g}from"./p-a1f034be.js";import{S as x}from"./p-01ee5ad6.js";import{H as v}from"./p-f3f7638d.js";import{c as w,d as y}from"./p-33ec544d.js";import{c as k,s as z,d as C,u as S}from"./p-4541ad8e.js";import{S as j,C as A,I as E}from"./p-d2b66bd2.js";import{c as H,d as I}from"./p-6a425011.js";import"./p-b85be429.js";import"./p-db50226e.js";import"./p-7c057019.js";import"./p-f50a294b.js";const L=class{constructor(i){e(this,i),this.calcitePanelClose=t(this,"calcitePanelClose",6),this.calcitePanelToggle=t(this,"calcitePanelToggle",6),this.calcitePanelScroll=t(this,"calcitePanelScroll",6),this.resizeObserver=g("resize",(()=>this.resizeHandler())),this.resizeHandler=()=>{const{panelScrollEl:e}=this;e&&"number"==typeof e.scrollHeight&&"number"==typeof e.offsetHeight&&(e.tabIndex=e.scrollHeight>e.offsetHeight?0:-1)},this.setContainerRef=e=>{this.containerEl=e},this.panelKeyDownHandler=e=>{this.closable&&"Escape"===e.key&&!e.defaultPrevented&&(this.close(),e.preventDefault())},this.close=()=>{this.closed=!0,this.calcitePanelClose.emit()},this.collapse=()=>{this.collapsed=!this.collapsed,this.calcitePanelToggle.emit()},this.panelScrollHandler=()=>{this.calcitePanelScroll.emit()},this.handleHeaderActionsStartSlotChange=e=>{this.hasStartActions=a(e)},this.handleHeaderActionsEndSlotChange=e=>{this.hasEndActions=a(e)},this.handleHeaderMenuActionsSlotChange=e=>{this.hasMenuItems=a(e)},this.handleActionBarSlotChange=e=>{const t=l(e).filter((e=>null==e?void 0:e.matches("calcite-action-bar")));t.forEach((e=>e.layout="horizontal")),this.hasActionBar=!!t.length},this.handleHeaderContentSlotChange=e=>{this.hasHeaderContent=a(e)},this.handleFooterSlotChange=e=>{this.hasFooterContent=a(e)},this.handleFooterActionsSlotChange=e=>{this.hasFooterActions=a(e)},this.handleFabSlotChange=e=>{this.hasFab=a(e)},this.setPanelScrollEl=e=>{var t,i;this.panelScrollEl=e,null===(t=this.resizeObserver)||void 0===t||t.disconnect(),e&&(null===(i=this.resizeObserver)||void 0===i||i.observe(e),this.resizeHandler())},this.closed=!1,this.disabled=!1,this.closable=!1,this.collapsed=!1,this.collapseDirection="down",this.collapsible=!1,this.headingLevel=void 0,this.loading=!1,this.heading=void 0,this.description=void 0,this.menuOpen=!1,this.messageOverrides=void 0,this.messages=void 0,this.overlayPositioning="absolute",this.hasStartActions=!1,this.hasEndActions=!1,this.hasMenuItems=!1,this.hasHeaderContent=!1,this.hasActionBar=!1,this.hasFooterContent=!1,this.hasFooterActions=!1,this.hasFab=!1,this.defaultMessages=void 0,this.effectiveLocale="",this.showHeaderContent=!1}onMessagesChange(){}connectedCallback(){d(this),w(this),k(this)}async componentWillLoad(){m(this),await z(this)}componentDidLoad(){f(this)}componentDidRender(){h(this)}disconnectedCallback(){var e;p(this),y(this),C(this),null===(e=this.resizeObserver)||void 0===e||e.disconnect()}effectiveLocaleChange(){S(this,this.effectiveLocale)}async setFocus(){await u(this),r(this.containerEl)}async scrollContentTo(e){var t;null===(t=this.panelScrollEl)||void 0===t||t.scrollTo(e)}renderHeaderContent(){const{heading:e,headingLevel:t,description:n,hasHeaderContent:o}=this,s=e?i(v,{class:A.heading,level:t},e):null,a=n?i("span",{class:A.description},n):null;return o||!s&&!a?null:i("div",{class:A.headerContent,key:"header-content"},s,a)}renderActionBar(){return i("div",{class:A.actionBarContainer,hidden:!this.hasActionBar},i("slot",{name:j.actionBar,onSlotchange:this.handleActionBarSlotChange}))}renderHeaderSlottedContent(){return i("div",{class:A.headerContent,hidden:!this.hasHeaderContent,key:"slotted-header-content"},i("slot",{name:j.headerContent,onSlotchange:this.handleHeaderContentSlotChange}))}renderHeaderStartActions(){const{hasStartActions:e}=this;return i("div",{class:{[A.headerActionsStart]:!0,[A.headerActions]:!0},hidden:!e,key:"header-actions-start"},i("slot",{name:j.headerActionsStart,onSlotchange:this.handleHeaderActionsStartSlotChange}))}renderHeaderActionsEnd(){const{hasEndActions:e,messages:t,closable:n,collapsed:o,collapseDirection:s,collapsible:a,hasMenuItems:l}=this,{collapse:r,expand:d,close:h}=t,p=[E.expand,E.collapse];"up"===s&&p.reverse();const b=a?i("calcite-action",{"aria-expanded":c(!o),"aria-label":r,"data-test":"collapse",icon:o?p[0]:p[1],onClick:this.collapse,text:r,title:o?d:r}):null,m=n?i("calcite-action",{"aria-label":h,"data-test":"close",icon:E.close,onClick:this.close,text:h,title:h}):null,f=i("slot",{name:j.headerActionsEnd,onSlotchange:this.handleHeaderActionsEndSlotChange}),u=e||b||m||l;return i("div",{class:{[A.headerActionsEnd]:!0,[A.headerActions]:!0},hidden:!u,key:"header-actions-end"},f,this.renderMenu(),b,m)}renderMenu(){const{hasMenuItems:e,messages:t,menuOpen:n}=this;return i("calcite-action-menu",{flipPlacements:["top","bottom"],hidden:!e,key:"menu",label:t.options,open:n,overlayPositioning:this.overlayPositioning,placement:"bottom-end"},i("calcite-action",{icon:E.menu,slot:x.trigger,text:t.options}),i("slot",{name:j.headerMenuActions,onSlotchange:this.handleHeaderMenuActionsSlotChange}))}renderHeaderNode(){const{hasHeaderContent:e,hasStartActions:t,hasEndActions:n,closable:o,collapsible:s,hasMenuItems:a,hasActionBar:l}=this,r=this.renderHeaderContent(),c=e||!!r||t||n||s||o||a;return this.showHeaderContent=c,i("header",{class:A.header,hidden:!(c||l)},i("div",{class:{[A.headerContainer]:!0,[A.headerContainerBorderEnd]:l},hidden:!c},this.renderHeaderStartActions(),this.renderHeaderSlottedContent(),r,this.renderHeaderActionsEnd()),this.renderActionBar())}renderFooterNode(){const{hasFooterContent:e,hasFooterActions:t}=this;return i("footer",{class:A.footer,hidden:!(e||t)},i("slot",{key:"footer-slot",name:j.footer,onSlotchange:this.handleFooterSlotChange}),i("slot",{key:"footer-actions-slot",name:j.footerActions,onSlotchange:this.handleFooterActionsSlotChange}))}renderContent(){return i("div",{class:A.contentWrapper,hidden:this.collapsible&&this.collapsed,onScroll:this.panelScrollHandler,ref:this.setPanelScrollEl},i("slot",null),this.renderFab())}renderFab(){return i("div",{class:A.fabContainer,hidden:!this.hasFab},i("slot",{name:j.fab,onSlotchange:this.handleFabSlotChange}))}render(){const{disabled:e,loading:t,panelKeyDownHandler:o,closed:s,closable:a}=this,l=i("article",{key:"c03a39a1d58126b861ce2a4f7610a20d8bee288d","aria-busy":c(t),class:A.container,hidden:s,tabIndex:a?0:-1,ref:this.setContainerRef},this.renderHeaderNode(),this.renderContent(),this.renderFooterNode());return i(n,{key:"0378ba8d08d9c802b21f3c8edd9926f759a6381c",onKeyDown:o},i(b,{key:"ada3c75b32686e450190e407d6c4855e7e1310eb",disabled:e},t?i("calcite-scrim",{loading:t}):null,l))}static get assetsDirs(){return["assets"]}get el(){return o(this)}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}};L.style=":host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}: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;block-size:100%;inline-size:100%;flex:1 1 auto;overflow:hidden;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.header{margin:0px;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-color-text-2);color:var(--calcite-color-text-2)}.heading{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:0.5rem}.container{margin:0px;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;background-color:var(--calcite-color-background);padding:0px;transition:max-block-size var(--calcite-animation-timing), inline-size var(--calcite-animation-timing)}.container[hidden]{display:none}.header{z-index:var(--calcite-z-index-header);display:flex;flex-direction:column;background-color:var(--calcite-color-foreground-1);border-block-end:var(--calcite-panel-header-border-block-end, 1px solid var(--calcite-color-border-3))}.header-container{display:flex;inline-size:100%;flex-direction:row;align-items:stretch;justify-content:flex-start;flex:0 0 auto}.header-container--border-end{border-block-end:1px solid var(--calcite-color-border-3)}.action-bar-container{inline-size:100%}.action-bar-container ::slotted(calcite-action-bar){inline-size:100%}.header-content{display:flex;flex-direction:column;overflow:hidden;padding-inline:0.75rem;padding-block:0.875rem;margin-inline-end:auto}.header-content .heading,.header-content .description{display:block;overflow-wrap:break-word;padding:0px}.header-content .heading{margin-inline:0px;margin-block:0px 0.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-medium)}.header-content .heading:only-child{margin-block-end:0px}.header-content .description{font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-color-text-2)}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-color-border-3);border-inline-end-width:1px}.header-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch}.header-actions--end{margin-inline-start:auto}.content-wrapper{display:flex;block-size:100%;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;overflow:auto;background-color:var(--calcite-color-background)}.footer{display:flex;inline-size:100%;justify-content:space-evenly;background-color:var(--calcite-color-foreground-1);flex:0 0 auto;padding:var(--calcite-panel-footer-padding, 0.5rem);border-block-start:1px solid var(--calcite-color-border-3)}.fab-container{position:sticky;inset-block-end:0px;z-index:var(--calcite-z-index-sticky);margin-block:0px;margin-inline:auto;display:block;padding:0.5rem;inset-inline:0;inline-size:-moz-fit-content;inline-size:fit-content}:host([hidden]){display:none}[hidden]{display:none}";
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/main/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-fa1ceaf9.js";import{a as o,h as n,b as c,i as d,j as h,n as l,p,k as f,l as g}from"./p-df0a1d4b.js";import{c as v,t as u}from"./p-67b26725.js";import{I as y,c as b,u as m,d as w}from"./p-9c6c056a.js";import{i as x}from"./p-f50a294b.js";import{n as k}from"./p-813d004f.js";import{s as z,a as D,c as j}from"./p-8ed6ce4d.js";import{H as I}from"./p-cc388a08.js";import{g as C}from"./p-e6e50975.js";import"./p-b85be429.js";import"./p-db50226e.js";import"./p-b64cc55e.js";import"./p-e6c9e6af.js";const O=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=Object.assign(Object.assign({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:"8de3dbeb652bfeb5ea9e9a490c3cec6a3663aeea","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:"edb52f389027ea4f48067e2c0a4c6a28251bc4ab",disabled:this.disabled},a("div",{key:"fd75d2ebcd2e6ca21afdefb3f4e6f02089b43609","aria-hidden":"true",class:{"day-v-wrapper":!0}},a("div",{key:"d4ac04c544b7f26c1e1992f4b8046c608c6174cd",class:"day-wrapper"},a("span",{key:"8453fd6dd54fa642f1779b99e2f1012a2277cfda",class:"day"},a("span",{key:"fb704e33e0d0af0ce76988983b530e640a361299",class:"text"},t))))))}connectedCallback(){b(this)}componentDidRender(){m(this)}disconnectedCallback(){w(this)}get el(){return i(this)}};O.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 S=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,d="s"===this.scale?c||o||s:o||s||c,h=[...d.slice(i,7),...d.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"},h.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){var h;const l=this.isFocusedOnStart(),p=this.isHoverInRange()||!this.endDate&&this.hoverRange&&n(null===(h=this.hoverRange)||void 0===h?void 0:h.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&&p,"hover--outside-range":this.startDate&&!p,"focused--start":l,"focused--end":!l},currentMonth:t,dateTimeFormat:this.dateTimeFormat,day:i,disabled:!d(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),scale:this.scale,selected:this.isSelected(r),startOfRange:this.isStartOfRange(r),value:r,ref:t=>{o&&e&&this.activeFocus&&(null==t||t.setFocus())}}))}isFocusedOnStart(){var e;return"start"===(null===(e=this.hoverRange)||void 0===e?void 0:e.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)}};S.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-f4c4a2b7.js";import{a as o,h as n,b as c,i as d,j as h,n as l,p,k as f,l as g}from"./p-260d655c.js";import{c as v,t as u}from"./p-67b26725.js";import{I as y,c as b,u as m,d as w}from"./p-07ffc0dc.js";import{i as x}from"./p-f50a294b.js";import{n as k}from"./p-33ec544d.js";import{s as z,a as D,c as j}from"./p-fa214d6f.js";import{H as I}from"./p-f3f7638d.js";import{g as C}from"./p-e6e50975.js";import"./p-b85be429.js";import"./p-db50226e.js";import"./p-7c057019.js";import"./p-a1f034be.js";const O=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=Object.assign(Object.assign({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:"8de3dbeb652bfeb5ea9e9a490c3cec6a3663aeea","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:"edb52f389027ea4f48067e2c0a4c6a28251bc4ab",disabled:this.disabled},a("div",{key:"fd75d2ebcd2e6ca21afdefb3f4e6f02089b43609","aria-hidden":"true",class:{"day-v-wrapper":!0}},a("div",{key:"d4ac04c544b7f26c1e1992f4b8046c608c6174cd",class:"day-wrapper"},a("span",{key:"8453fd6dd54fa642f1779b99e2f1012a2277cfda",class:"day"},a("span",{key:"fb704e33e0d0af0ce76988983b530e640a361299",class:"text"},t))))))}connectedCallback(){b(this)}componentDidRender(){m(this)}disconnectedCallback(){w(this)}get el(){return i(this)}};O.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 S=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,d="s"===this.scale?c||o||s:o||s||c,h=[...d.slice(i,7),...d.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"},h.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){var h;const l=this.isFocusedOnStart(),p=this.isHoverInRange()||!this.endDate&&this.hoverRange&&n(null===(h=this.hoverRange)||void 0===h?void 0:h.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&&p,"hover--outside-range":this.startDate&&!p,"focused--start":l,"focused--end":!l},currentMonth:t,dateTimeFormat:this.dateTimeFormat,day:i,disabled:!d(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),scale:this.scale,selected:this.isSelected(r),startOfRange:this.isStartOfRange(r),value:r,ref:t=>{o&&e&&this.activeFocus&&(null==t||t.setFocus())}}))}isFocusedOnStart(){var e;return"start"===(null===(e=this.hoverRange)||void 0===e?void 0:e.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)}};S.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/main/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 _}from"./p-6d51c6bf.js";import"./p-fa1ceaf9.js";import"./p-716a0878.js";import"./p-67b26725.js";import"./p-b85be429.js";import"./p-db50226e.js";import"./p-9c6c056a.js";import"./p-b64cc55e.js";import"./p-f50a294b.js";import"./p-6127f49e.js";import"./p-e6e50975.js";import"./p-8ed6ce4d.js";import"./p-813d004f.js";import"./p-e6c9e6af.js";import"./p-97f0e1b6.js";import"./p-a89e61f4.js";import"./p-ebf59857.js";import"./p-44bfa87d.js";import"./p-ba569f8b.js";import"./p-5f1fdaf9.js";var m={name:"zh-tw",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(_,m){return"W"===m?_+"週":_+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"},meridiem:function(_,m){var p=100*_+m;return p<600?"凌晨":p<900?"早上":p<1100?"上午":p<1300?"中午":p<1800?"下午":"晚上"}};_.locale(m,null,!0);export{m as default}
6
+ import{d as _}from"./p-501c2126.js";import"./p-f4c4a2b7.js";import"./p-1c7fa861.js";import"./p-67b26725.js";import"./p-b85be429.js";import"./p-db50226e.js";import"./p-07ffc0dc.js";import"./p-7c057019.js";import"./p-f50a294b.js";import"./p-6127f49e.js";import"./p-e6e50975.js";import"./p-fa214d6f.js";import"./p-33ec544d.js";import"./p-a1f034be.js";import"./p-97f0e1b6.js";import"./p-6fde2784.js";import"./p-ebf59857.js";import"./p-4541ad8e.js";import"./p-e6587ec3.js";import"./p-51ed7835.js";var m={name:"zh-tw",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(_,m){return"W"===m?_+"週":_+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"},meridiem:function(_,m){var p=100*_+m;return p<600?"凌晨":p<900?"早上":p<1100?"上午":p<1300?"中午":p<1800?"下午":"晚上"}};_.locale(m,null,!0);export{m as default}
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as c,h as s,H as a,g as t}from"./p-f4c4a2b7.js";const e=class{constructor(s){c(this,s)}render(){return s(a,{key:"6691ddbcebb6a78570c1a7d1317aadcccf51c6e3"},s("slot",{key:"bca9498b533fa13dfc5d85b690a0cc0d80fef1b8"}))}get el(){return t(this)}};e.style=":host{display:block}";export{e as list_flow_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{r as t,c as e,h as i,H as a,g as s}from"./p-fa1ceaf9.js";import{s as l}from"./p-c1936856.js";import{g as c}from"./p-c0bf1d9f.js";import{n}from"./p-eed41e1a.js";import"./p-8c6d9b5a.js";import"./p-c1cf3ebc.js";import"./p-3d7cff5e.js";import"./p-d4056c1c.js";import"./p-a230b270.js";import"./p-a0300d31.js";import"./p-0a24ad5f.js";const r=class{constructor(i){t(this,i),this.solutionItemSelected=e(this,"solutionItemSelected",7),this.selectedItemId=void 0,this.templateHierarchy=[]}valueWatchHandler(t,e){t&&t!==e&&Array.isArray(t)&&t.length>0&&this._treeItemSelected(t[0].id)}componentWillLoad(){this.valueWatchHandler(this.templateHierarchy,[])}render(){return i(a,{key:"7546d1fe9d944520db9f8f81600fb7cf0655f1ab"},i("calcite-tree",{key:"94bea7616cd3bdbb9fbcaddd49bb394e11bcf88b"},this.renderHierarchy(this.templateHierarchy)))}renderHierarchy(t){return t.map((t=>{const e=this.selectedItemId&&this.selectedItemId===t.id;return t.dependencies&&t.dependencies.length>0?i("calcite-tree-item",{onClick:e=>this._treeItemSelected(t.id,e),selected:e},i("solution-item-icon",{type:t.type,typeKeywords:t.typeKeywords}),i("span",{class:"icon-text",title:t.title},t.title),i("calcite-tree",{slot:"children"},this.renderHierarchy(t.dependencies))):i("calcite-tree-item",{onClick:e=>this._treeItemSelected(t.id,e),selected:e},i("solution-item-icon",{type:t.type,typeKeywords:t.typeKeywords}),i("span",{class:"icon-text",title:t.title},t.title))}))}_treeItemSelected(t,e){var i;const a=null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.closest("calcite-tree-item");a&&(a.expanded=!(null==a?void 0:a.expanded)),this.selectedItemId=t,this.solutionItemSelected.emit(t)}static get assetsDirs(){return["item-type-icons"]}get el(){return s(this)}static get watchers(){return{templateHierarchy:["valueWatchHandler"]}}};r.style=".icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";const o=class{constructor(e){t(this,e),this.authentication=void 0,this.itemId="",this.solutionVariables="",this.organizationVariables="",this.itemType=void 0,this._translations=void 0}itemIdWatchHandler(){const t=l.getItemInfo(this.itemId);this.itemType=t.type}async componentWillLoad(){return this._getTranslations()}render(){return i(a,{key:"16de446a44799754d7066eb5cc587585fc9e37c8"},i("div",{key:"ddb7c1e6c86657502dc4b293d495f3b4dee594cf",class:"configuration-container"},i("div",{key:"016954a98a5eb229a1f9eb2a4b9260daff3593bf",class:"configuration"},this._showGroupTabs("Group"===this.itemType),this._showItemTabs("Group"!==this.itemType))))}_showGroupTabs(t){return i("calcite-tabs",{class:"config-tabs",style:{display:t?"inherit":"none"}},i("calcite-tab-nav",{slot:"tab-nav"},i("calcite-tab-title",null,this._translations.groupDetailsTab),i("calcite-tab-title",null,this._translations.sharingTab)),i("calcite-tab",{class:"config-tab",id:"group-tab",selected:!0},i("solution-item-details",{"item-id":this.itemId})),i("calcite-tab",{class:"config-tab",id:"share-tab"},i("solution-item-sharing",{"group-id":this.itemId})))}_showItemTabs(t){return i("calcite-tabs",{class:"config-tabs",style:{display:t?"inherit":"none"}},i("calcite-tab-nav",{slot:"tab-nav"},i("calcite-tab-title",null,this._translations.itemDetailsTab),i("calcite-tab-title",null,this._translations.dataTab),i("calcite-tab-title",null,this._translations.propertiesTab),i("calcite-tab-title",null,this._translations.resourcesTab)),i("calcite-tab",{class:"config-tab",selected:!0},i("solution-item-details",{"item-id":this.itemId})),i("calcite-tab",{class:"config-tab",id:"data-tab"},i("solution-template-data",{instanceid:"data","item-id":this.itemId,"organization-variables":this.organizationVariables,"solution-variables":this.solutionVariables})),i("calcite-tab",{class:"config-tab",id:"props-tab"},i("solution-template-data",{instanceid:"properties","item-id":this.itemId,"organization-variables":this.organizationVariables,"solution-variables":this.solutionVariables})),i("calcite-tab",{class:"config-tab",id:"resources-tab"},i("solution-resource-item",{authentication:this.authentication,class:"solutions-resource-container","item-id":this.itemId})))}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}get el(){return s(this)}static get watchers(){return{itemId:["itemIdWatchHandler"]}}};o.style=".configuration-container{position:relative;height:100%;width:100%}.configuration{position:absolute;top:0px;right:0px;bottom:0px;left:0px;display:flex;padding:0.5rem;border:1px #808080 solid}.config-tabs{width:100%}.config-tab{width:100%;overflow-y:auto;height:inherit}";const d=class{constructor(i){t(this,i),this.featureServiceSpatialReferenceChange=e(this,"featureServiceSpatialReferenceChange",7),this.lockedSpatialReferenceChange=e(this,"lockedSpatialReferenceChange",7),this.defaultWkid=102100,this.loaded=!1,this.locked=!0,this.services=[],this.value=this.defaultWkid.toString(),this._translations=void 0}lockedChanged(t){t||this._setFeatureServiceDefaults(this.services),this.lockedSpatialReferenceChange.emit({locked:t})}componentWillLoad(){return this._getTranslations()}render(){return i(a,{key:"8c5f34b7d44429ed0395ae48956161caf7e62111"},i("label",{key:"69f1178da58409888f0b5b15ae4ffd224bb999d4",class:"switch-label"},i("calcite-switch",{key:"279795c5e21b914c595ea95219e3f589f7270ac4",checked:!this.locked,class:"spatial-ref-switch",onCalciteSwitchChange:t=>this._updateLocked(t),scale:"m"}),this._translations.specifyParam),i("div",{key:"516e621ad3e2f6f881b0fbc0a80d98f1f3b7eecd",class:"spatial-ref-component",id:"spatialRefDefn"},i("calcite-label",{key:"19b05ffa3e80d5e33521d0b6ee8438d882f9481d"},this._translations.spatialReferenceInfo,i("label",{key:"0766edb36aa3e8853bfd4754b9ea7aa955d7d987",class:"spatial-ref-default"},i("spatial-ref",{key:"9f1b37a12e18b5ba3c2d2b4b372f01a4f69ded28",defaultWkid:this.defaultWkid,disabled:this.locked,value:this.value}))),this._getFeatureServices(this.services)))}solutionStoreHasChanges(){this.services=l.getStoreInfo("featureServices").map((t=>t.name))}spatialReferenceChange(t){this.value=t.detail.newValue,l.setStoreInfo("defaultWkid",t.detail.newValue);const e=l.getStoreInfo("spatialReferenceInfo");e.spatialReference=t.detail.newValue,l.setStoreInfo("spatialReferenceInfo",e)}_getFeatureServices(t){const e=l.getStoreInfo("spatialReferenceInfo"),a=t.filter((t=>Object.keys(e.services).some((e=>e===t))));return a.length>0?i("div",null,i("label",{class:"spatial-ref-item-title"},this._translations.featureServicesHeading),i("ul",{class:"spatial-ref-services-list"},a.map((t=>i("li",{class:"spatial-ref-services-list-item"},i("label",{class:"switch-label"},i("calcite-switch",{checked:e.services[t],class:"spatial-ref-item-switch",disabled:this.locked,onCalciteSwitchChange:e=>this._updateEnabledServices(e,t),scale:"m"}),t)))))):null}_setFeatureServiceDefaults(t){n(this.el.getElementsByClassName("spatial-ref-item-switch")).forEach((t=>t.checked=!0)),t.forEach((t=>this._updateEnabledServices({detail:{switched:!0}},t)))}_updateEnabledServices(t,e){var i,a;const s=l.getStoreInfo("spatialReferenceInfo"),c=void 0!==(null===(i=t.detail)||void 0===i?void 0:i.switched)?t.detail.switched:void 0===(null===(a=t.target)||void 0===a?void 0:a.checked)||t.target.checked;s.services[e]=c,l.setStoreInfo("spatialReferenceInfo",s),this.featureServiceSpatialReferenceChange.emit({name:e,enabled:c})}_updateLocked(t){this.locked=!t.target.checked,this._updateStore(),this.loaded||(t.target.checked&&this._setFeatureServiceDefaults(this.services),this.loaded=!0)}_updateStore(){const t=l.getStoreInfo("spatialReferenceInfo");t.enabled=!this.locked,t.spatialReference=this.value,l.setStoreInfo("spatialReferenceInfo",t)}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}get el(){return s(this)}static get watchers(){return{locked:["lockedChanged"]}}};d.style=".spatial-ref-switch{margin-inline-end:0.5rem}.spatial-ref-component{margin-top:0.625rem;margin-inline-start:2.5rem}#spatialRefDefn .sc-calcite-label-h label.sc-calcite-label{margin:0px;background-color:#CBC3E3}.spatial-ref-default{margin:0px}.spatial-ref-item-title{margin-bottom:0.5rem;font-size:0.875rem;line-height:1.25rem}.spatial-ref-item-switch{margin-inline-end:0.5rem}.switch-label{font-size:0.875rem;line-height:1.25rem}.disabled-div{pointer-events:none;opacity:0.4}.spatial-ref-desc{padding-bottom:0.5rem;padding-inline-start:0.25rem}.spatial-ref-services-list{margin-block-start:0.5em;margin-block-end:0.5em;list-style-type:none;padding-inline-start:0}.spatial-ref-services-list-item{margin-top:0.25rem}";export{r as solution_contents,o as solution_item,d as solution_spatial_ref}
6
+ import{r as t,c as e,h as i,H as s,g as a}from"./p-f4c4a2b7.js";import{s as l}from"./p-a8b37ac8.js";import{g as c}from"./p-cc69b971.js";import{n}from"./p-eed41e1a.js";import"./p-dcc35070.js";import"./p-c1cf3ebc.js";import"./p-3d7cff5e.js";import"./p-d4056c1c.js";import"./p-a230b270.js";import"./p-628537e6.js";import"./p-0a24ad5f.js";const r=class{constructor(i){t(this,i),this.solutionItemSelected=e(this,"solutionItemSelected",7),this.selectedItemId=void 0,this.templateHierarchy=[]}valueWatchHandler(t,e){t&&t!==e&&Array.isArray(t)&&t.length>0&&this._treeItemSelected(t[0].id)}componentWillLoad(){this.valueWatchHandler(this.templateHierarchy,[])}render(){return i(s,{key:"7546d1fe9d944520db9f8f81600fb7cf0655f1ab"},i("calcite-tree",{key:"94bea7616cd3bdbb9fbcaddd49bb394e11bcf88b"},this.renderHierarchy(this.templateHierarchy)))}renderHierarchy(t){return t.map((t=>{const e=this.selectedItemId&&this.selectedItemId===t.id;return t.dependencies&&t.dependencies.length>0?i("calcite-tree-item",{onClick:e=>this._treeItemSelected(t.id,e),selected:e},i("solution-item-icon",{type:t.type,typeKeywords:t.typeKeywords}),i("span",{class:"icon-text",title:t.title},t.title),i("calcite-tree",{slot:"children"},this.renderHierarchy(t.dependencies))):i("calcite-tree-item",{onClick:e=>this._treeItemSelected(t.id,e),selected:e},i("solution-item-icon",{type:t.type,typeKeywords:t.typeKeywords}),i("span",{class:"icon-text",title:t.title},t.title))}))}_treeItemSelected(t,e){var i;const s=null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.closest("calcite-tree-item");s&&(s.expanded=!(null==s?void 0:s.expanded)),this.selectedItemId=t,this.solutionItemSelected.emit(t)}static get assetsDirs(){return["item-type-icons"]}get el(){return a(this)}static get watchers(){return{templateHierarchy:["valueWatchHandler"]}}};r.style=".icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";const o=class{constructor(e){t(this,e),this.authentication=void 0,this.itemId="",this.solutionVariables="",this.organizationVariables="",this.itemType=void 0,this._translations=void 0}itemIdWatchHandler(){const t=l.getItemInfo(this.itemId);this.itemType=t.type}async componentWillLoad(){return this._getTranslations()}render(){return i(s,{key:"16de446a44799754d7066eb5cc587585fc9e37c8"},i("div",{key:"ddb7c1e6c86657502dc4b293d495f3b4dee594cf",class:"configuration-container"},i("div",{key:"016954a98a5eb229a1f9eb2a4b9260daff3593bf",class:"configuration"},this._showGroupTabs("Group"===this.itemType),this._showItemTabs("Group"!==this.itemType))))}_showGroupTabs(t){return i("calcite-tabs",{class:"config-tabs",style:{display:t?"inherit":"none"}},i("calcite-tab-nav",{slot:"tab-nav"},i("calcite-tab-title",null,this._translations.groupDetailsTab),i("calcite-tab-title",null,this._translations.sharingTab)),i("calcite-tab",{class:"config-tab",id:"group-tab",selected:!0},i("solution-item-details",{"item-id":this.itemId})),i("calcite-tab",{class:"config-tab",id:"share-tab"},i("solution-item-sharing",{"group-id":this.itemId})))}_showItemTabs(t){return i("calcite-tabs",{class:"config-tabs",style:{display:t?"inherit":"none"}},i("calcite-tab-nav",{slot:"tab-nav"},i("calcite-tab-title",null,this._translations.itemDetailsTab),i("calcite-tab-title",null,this._translations.dataTab),i("calcite-tab-title",null,this._translations.propertiesTab),i("calcite-tab-title",null,this._translations.resourcesTab)),i("calcite-tab",{class:"config-tab",selected:!0},i("solution-item-details",{"item-id":this.itemId})),i("calcite-tab",{class:"config-tab",id:"data-tab"},i("solution-template-data",{instanceid:"data","item-id":this.itemId,"organization-variables":this.organizationVariables,"solution-variables":this.solutionVariables})),i("calcite-tab",{class:"config-tab",id:"props-tab"},i("solution-template-data",{instanceid:"properties","item-id":this.itemId,"organization-variables":this.organizationVariables,"solution-variables":this.solutionVariables})),i("calcite-tab",{class:"config-tab",id:"resources-tab"},i("solution-resource-item",{authentication:this.authentication,class:"solutions-resource-container","item-id":this.itemId})))}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}get el(){return a(this)}static get watchers(){return{itemId:["itemIdWatchHandler"]}}};o.style=".configuration-container{position:relative;height:100%;width:100%}.configuration{position:absolute;top:0px;right:0px;bottom:0px;left:0px;display:flex;padding:0.5rem;border:1px #808080 solid}.config-tabs{width:100%}.config-tab{width:100%;overflow-y:auto;height:inherit}";const d=class{constructor(i){t(this,i),this.featureServiceSpatialReferenceChange=e(this,"featureServiceSpatialReferenceChange",7),this.lockedSpatialReferenceChange=e(this,"lockedSpatialReferenceChange",7),this.defaultWkid=102100,this.loaded=!1,this.locked=!0,this.services=[],this.value=this.defaultWkid.toString(),this._translations=void 0}lockedChanged(t){t||this._setFeatureServiceDefaults(this.services),this.lockedSpatialReferenceChange.emit({locked:t})}componentWillLoad(){return this._getTranslations()}render(){return i(s,{key:"8c5f34b7d44429ed0395ae48956161caf7e62111"},i("label",{key:"69f1178da58409888f0b5b15ae4ffd224bb999d4",class:"switch-label"},i("calcite-switch",{key:"279795c5e21b914c595ea95219e3f589f7270ac4",checked:!this.locked,class:"spatial-ref-switch",onCalciteSwitchChange:t=>this._updateLocked(t),scale:"m"}),this._translations.specifyParam),i("div",{key:"516e621ad3e2f6f881b0fbc0a80d98f1f3b7eecd",class:"spatial-ref-component",id:"spatialRefDefn"},i("calcite-label",{key:"19b05ffa3e80d5e33521d0b6ee8438d882f9481d"},this._translations.spatialReferenceInfo,i("label",{key:"0766edb36aa3e8853bfd4754b9ea7aa955d7d987",class:"spatial-ref-default"},i("spatial-ref",{key:"9f1b37a12e18b5ba3c2d2b4b372f01a4f69ded28",defaultWkid:this.defaultWkid,disabled:this.locked,value:this.value}))),this._getFeatureServices(this.services)))}solutionStoreHasChanges(){this.services=l.getStoreInfo("featureServices").map((t=>t.name))}spatialReferenceChange(t){this.value=t.detail.newValue,l.setStoreInfo("defaultWkid",t.detail.newValue);const e=l.getStoreInfo("spatialReferenceInfo");e.spatialReference=t.detail.newValue,l.setStoreInfo("spatialReferenceInfo",e)}_getFeatureServices(t){const e=l.getStoreInfo("spatialReferenceInfo"),s=t.filter((t=>Object.keys(e.services).some((e=>e===t))));return s.length>0?i("div",null,i("label",{class:"spatial-ref-item-title"},this._translations.featureServicesHeading),i("ul",{class:"spatial-ref-services-list"},s.map((t=>i("li",{class:"spatial-ref-services-list-item"},i("label",{class:"switch-label"},i("calcite-switch",{checked:e.services[t],class:"spatial-ref-item-switch",disabled:this.locked,onCalciteSwitchChange:e=>this._updateEnabledServices(e,t),scale:"m"}),t)))))):null}_setFeatureServiceDefaults(t){n(this.el.getElementsByClassName("spatial-ref-item-switch")).forEach((t=>t.checked=!0)),t.forEach((t=>this._updateEnabledServices({detail:{switched:!0}},t)))}_updateEnabledServices(t,e){var i,s;const a=l.getStoreInfo("spatialReferenceInfo"),c=void 0!==(null===(i=t.detail)||void 0===i?void 0:i.switched)?t.detail.switched:void 0===(null===(s=t.target)||void 0===s?void 0:s.checked)||t.target.checked;a.services[e]=c,l.setStoreInfo("spatialReferenceInfo",a),this.featureServiceSpatialReferenceChange.emit({name:e,enabled:c})}_updateLocked(t){this.locked=!t.target.checked,this._updateStore(),this.loaded||(t.target.checked&&this._setFeatureServiceDefaults(this.services),this.loaded=!0)}_updateStore(){const t=l.getStoreInfo("spatialReferenceInfo");t.enabled=!this.locked,t.spatialReference=this.value,l.setStoreInfo("spatialReferenceInfo",t)}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}get el(){return a(this)}static get watchers(){return{locked:["lockedChanged"]}}};d.style=".spatial-ref-switch{margin-inline-end:0.5rem}.spatial-ref-component{margin-top:0.625rem;margin-inline-start:2.5rem}#spatialRefDefn .sc-calcite-label-h label.sc-calcite-label{margin:0px;background-color:#CBC3E3}.spatial-ref-default{margin:0px}.spatial-ref-item-title{margin-bottom:0.5rem;font-size:0.875rem;line-height:1.25rem}.spatial-ref-item-switch{margin-inline-end:0.5rem}.switch-label{font-size:0.875rem;line-height:1.25rem}.disabled-div{pointer-events:none;opacity:0.4}.spatial-ref-desc{padding-bottom:0.5rem;padding-inline-start:0.25rem}.spatial-ref-services-list{margin-block-start:0.5em;margin-block-end:0.5em;list-style-type:none;padding-inline-start:0}.spatial-ref-services-list-item{margin-top:0.25rem}";export{r as solution_contents,o as solution_item,d as solution_spatial_ref}
@@ -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,h as a,H as e,g as i}from"./p-fa1ceaf9.js";import{g as n}from"./p-1c64264d.js";import{l as r}from"./p-4cd4cb85.js";import{g as s}from"./p-a9a72626.js";import"./p-ac122d9e.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";const o={"instant-apps":{path:"M11.206 4.805v-1.38a2.231 2.231 0 0 1 2.23-2.231h13.168a2.231 2.231 0 0 1 2.231 2.23v11.15a2.231 2.231 0 0 1-2.23 2.231h-1.398V5.555a.75.75 0 0 0-.75-.75zM30.94 27.204l-5.447-4.41a.211.211 0 0 0-.344.164v2.225H8.197a1.344 1.344 0 0 1-1.344-1.344V11.665a.75.75 0 0 1 .75-.75h9.872a.75.75 0 0 1 .75.75l-.003 7.534a2.422 2.422 0 0 1-.798 1.796l-.945.855h4.3a1.075 1.075 0 0 0 1.074-1.075v-10.54a2.231 2.231 0 0 0-2.23-2.23H5.354a2.148 2.148 0 0 0-2.13 2.23v16.507a2.231 2.231 0 0 0 2.23 2.231l19.695-.003v2.725a.211.211 0 0 0 .344.164l5.447-4.41a.158.158 0 0 0 0-.245z",fill:"#83a238"},"map-viewer":{path:"M21.647 13.706A1.647 1.647 0 1 1 20 15.353a1.647 1.647 0 0 1 1.647-1.647zM19 19.083A1.917 1.917 0 1 1 17.082 21 1.917 1.917 0 0 1 19 19.082zm7.684 3.393a2.433 2.433 0 0 1-.64 1.776l-.01.012c-1.045 1.134-3.215 1.8-5.738 1.8-3.815 0-5.054-1.485-8.586-1.828a6.765 6.765 0 0 1 .566-4.07c.98-1.674 2.445-1.568 3.41-2.724.967-1.157.033-3.384 1.397-4.748 1.539-1.538 3.44-.12 4.57-2.542.877-1.884 1.84-2.98 3.68-3.35a.39.39 0 0 1 .047.07c.132.695 1.097 11.68 1.304 15.604zM6.208 8.864A3.054 3.054 0 0 1 8.115 6.17s2.425-.88 3.09-1.029a2.637 2.637 0 0 1 .314-.01 4.967 4.967 0 0 1 1.157.157l.404.095a7.26 7.26 0 0 0-.238 3.294c.188 1.354.657 2.399-.066 4.361-1.003 2.721-2.901 2.585-3.857 4.562-1.285 2.657.21 6.226-2.182 6.835l.004.002.003.003c-.801.114-1.363.22-1.663.272zm21.549-5.09a.055.055 0 0 0-.022-.037.058.058 0 0 0-.037-.01l-7.37 1.025-8.771-2.742a.227.227 0 0 0-.162.01L3.594 5.566a.054.054 0 0 0-.032.045L1.58 29a41.592 41.592 0 0 1 9.115-1.285c2.765.094 6.646 2.287 10.29 2.177 3.51-.108 8.582-2.382 9.564-2.836a.054.054 0 0 0 .03-.056z",fill:"#3DB8FF"},"story-maps":{path:"M25.5 0C23.015 0 21 .953 21 3.433v8.517a1.467 1.467 0 0 0 .43 1.038l3.837 3.827a.33.33 0 0 0 .466 0l3.836-3.827A1.467 1.467 0 0 0 30 11.95V3.433C30 .953 27.985 0 25.5 0zm0 8.1a2.6 2.6 0 1 1 2.6-2.599A2.599 2.599 0 0 1 25.5 8.1zm-7.856.453c.294-.153.312-.457.312-.788v-2.31a.104.104 0 0 0-.129-.1 6.128 6.128 0 0 0-2.248 1.19.14.14 0 0 1-.167.008c-3.437-2.283-8.543-1.52-12.131-.988-.432.064-1.762.34-2.164.424A.146.146 0 0 0 1 6.133V26.69a.147.147 0 0 0 .05.11.134.134 0 0 0 .116.035A36.394 36.394 0 0 1 9.5 25.781c3.283.054 4.403.96 4.967 1.513l.915.897a.164.164 0 0 0 .23 0l.916-.897a5.98 5.98 0 0 1 3.972-1.47 25.341 25.341 0 0 1 5.715.516c.718.109 1.46.22 2.186.312l1.251.16a.308.308 0 0 0 .348-.305v-7.375a.161.161 0 0 0-.303-.077l-.107.2a7.218 7.218 0 0 1-6.902 3.766 10.455 10.455 0 0 0-5.688.796V9.454a.89.89 0 0 1 .332-.693 2.058 2.058 0 0 1 .312-.208zM14 23.817c-3.071-1.38-5.998-.808-9.447-.293l-.253.036a.263.263 0 0 1-.3-.259V8.525a.098.098 0 0 1 .084-.097l.804-.115c2.518-.372 6.303-1.048 8.708.515a.89.89 0 0 1 .404.746z",fill:"#4fbaa9"},dashboards:{path:"M25.819 28H23.18a.181.181 0 0 1-.181-.181V13.18a.181.181 0 0 1 .181-.181h2.638a.181.181 0 0 1 .181.181V27.82a.181.181 0 0 1-.181.181zM21 27.816v-9.631a.184.184 0 0 0-.184-.185h-2.631a.184.184 0 0 0-.185.184v9.631a.184.184 0 0 0 .184.185h2.631a.184.184 0 0 0 .185-.184zm9.82.184a.18.18 0 0 0 .18-.18v-7.64a.18.18 0 0 0-.18-.18h-2.64a.18.18 0 0 0-.18.18v7.64a.18.18 0 0 0 .18.18zM7 9.267v10.475c.706.033 3.538-1.718 4.274-4.7.679-2.751 3.485-2.864 4.443-2.94 1.766-.14 3.588-.607 4.566-2.798A.216.216 0 0 0 20.085 9H7.267A.267.267 0 0 0 7 9.267zm18.997-1.053A4.411 4.411 0 0 0 21.63 4H2.684A.684.684 0 0 0 2 4.684V21.81A3.19 3.19 0 0 0 5.19 25h9.565a.245.245 0 0 0 .245-.245v-2.362a.393.393 0 0 0-.393-.393H6.38A1.385 1.385 0 0 1 5 20.619V7.349A.348.348 0 0 1 5.348 7h16.324A1.346 1.346 0 0 1 23 8.363v1.28a.357.357 0 0 0 .357.357h2.599a.046.046 0 0 0 .046-.046z",fill:"#ee9e01"},"experience-builder":{path:"M30.85 12.82l-2.85 5v7.44A1.78 1.78 0 0 1 26.22 27H25V7.75a.76.76 0 0 0-.75-.75H12V1.31a.28.28 0 0 1 .42-.25L17.51 4h8.71A1.78 1.78 0 0 1 28 5.78v4.42l2.54 1.47a.83.83 0 0 1 .31 1.15zM12 18h8v-6h-8zm7.62 5H7.75a.76.76 0 0 1-.75-.75V4H5.78A1.78 1.78 0 0 0 4 5.78V13l-2.89 5a.85.85 0 0 0 .31 1.15L4 20.59v4.61A1.78 1.78 0 0 0 5.78 27h8.62l5.18 3a.28.28 0 0 0 .42-.24v-6.39a.38.38 0 0 0-.38-.37z",fill:"#09b8ca"},geoBIM:{path:"M17.802 21.398l6.2 2.557-5.14 2.133a.772.772 0 0 1-1.06-.717zM9.311 7.868a.604.604 0 0 1-.003-1.122L16 4.169l8.12 3.148-8.119 3.184zm-3.5 1.541l8.387 3.413v12.554a.772.772 0 0 1-1.06.717l-6.297-2.736a1.639 1.639 0 0 1-1.03-1.521zM3.844 6.03a1.316 1.316 0 0 0-.827 1.22v17.395a1.316 1.316 0 0 0 .827 1.221L16 30.888l12.983-5.317v-2.423l-7.156-3.023 7.156-2.963v-1.95l-5.101-2.2-3.867 1.516L24 16.123l-6.199 2.505v-5.711l.073-.122 11.108-4.487v-1.95l-12.47-5.047a1.384 1.384 0 0 0-1.027 0z",fill:"#11ad1d"},notebooks:{path:"M2.941 25A.906.906 0 0 1 2 24.135v-.271A.906.906 0 0 1 2.941 23h3.118a.906.906 0 0 1 .941.864v.271a.906.906 0 0 1-.941.865zm3.118-8A.906.906 0 0 0 7 16.135v-.271A.906.906 0 0 0 6.059 15H2.941a.906.906 0 0 0-.941.864v.271a.906.906 0 0 0 .941.865zm0-8A.906.906 0 0 0 7 8.135v-.271A.906.906 0 0 0 6.059 7H2.941A.906.906 0 0 0 2 7.864v.271A.906.906 0 0 0 2.941 9zm9.44 16h-3.726a.773.773 0 0 1-.773-.774V6.171A.172.172 0 0 1 11.172 6H15.5a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5H5.342A1.345 1.345 0 0 0 4 4.343V5h2.059A2.904 2.904 0 0 1 9 7.858v.277A2.907 2.907 0 0 1 6.059 11H4v2h2.059A2.907 2.907 0 0 1 9 15.864v.271A2.907 2.907 0 0 1 6.059 19H4v2h2.059A2.907 2.907 0 0 1 9 23.864v.271A2.907 2.907 0 0 1 6.059 27H4v1.405a.595.595 0 0 0 .595.595H15.5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zM20 3.5v2a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 .5.5v18a.5.5 0 0 1-.5.5h-4a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h8a.5.5 0 0 0 .5-.5v-25a.5.5 0 0 0-.5-.5h-8a.5.5 0 0 0-.499.5z",fill:"#6e6e6e"},sites:{path:"M2.656 29A.656.656 0 0 1 2 28.344V6.185A3.189 3.189 0 0 1 5.185 3H29.72a.281.281 0 0 1 .281.281v22.53A3.194 3.194 0 0 1 26.81 29zm2.838-3h21.211a.295.295 0 0 0 .296-.295V13.494a.493.493 0 0 0-.493-.494H5v12.506a.494.494 0 0 0 .494.494zM23 9.91a.09.09 0 0 0 .09.09h3.82a.09.09 0 0 0 .09-.09V6.026A.026.026 0 0 0 26.974 6h-3.948a.026.026 0 0 0-.026.026zM6.633 6A1.597 1.597 0 0 0 5 7.595V10h14.523A.477.477 0 0 0 20 9.523V6.477A.477.477 0 0 0 19.523 6zM16 22v-5h7v5zm-7-2v-3h3v3z",fill:"#7842ed"},webAppBuilder:{path:"M15.044 19.974a.188.188 0 0 1-.192-.001l-3.762-2.35a.188.188 0 0 1-.09-.16v-4.098a.188.188 0 0 1 .096-.163l3.761-2.178a.188.188 0 0 1 .182-.001l3.863 2.179a.188.188 0 0 1 .098.165v4.095a.187.187 0 0 1-.092.161zm15.13-1.04a.052.052 0 0 0 .099.022 8.048 8.048 0 0 0 .67-3.147 7.155 7.155 0 0 0-3.507-6.213L17.59 3.768a4.054 4.054 0 0 0-1.968-.627 3.95 3.95 0 0 0-1.894.485c-.607.334-1.132.67-1.278.754a2.951 2.951 0 0 0-1.39 2.506v1.078a.2.2 0 0 0 .307.167l1.365-.87a4.988 4.988 0 0 1 2.319-.792 4.62 4.62 0 0 1 2.219.792s8.442 5.017 9.392 5.576a7.045 7.045 0 0 1 3.513 6.084zM9.546 23.55l.947-.547a.2.2 0 0 0 0-.345l-1.369-.79a4.326 4.326 0 0 1-2.13-3.842V7.286a7.16 7.16 0 0 1 3.63-6.083l.081-.05a.025.025 0 0 0-.012-.045l-.25-.005a8.333 8.333 0 0 0-3.887.994A7.102 7.102 0 0 0 3.069 8.31v10.786a3.96 3.96 0 0 0 1.89 3.362c.894.545 1.605.974 1.81 1.092a2.787 2.787 0 0 0 2.777 0zm4.383 6.37l9.997-5.773a3.959 3.959 0 0 0 1.967-3.32c.021-.929.034-1.604.034-1.806a2.786 2.786 0 0 0-1.39-2.406l-1.123-.57a.2.2 0 0 0-.289.177v1.604a4.45 4.45 0 0 1-2.218 3.842l-3.708 2.14a3.366 3.366 0 0 1-.256.135L11.6 27.128a6.427 6.427 0 0 1-3.343.938 7.137 7.137 0 0 1-3.513-1.038c-.09-.052-.38-.226-.797-.479a.094.094 0 0 0-.134.12 7.182 7.182 0 0 0 2.942 3.25 7.241 7.241 0 0 0 3.587 1.028 7.243 7.243 0 0 0 3.587-1.028z",fill:"#09b8ca"},urban:{path:"M32 14l-4 .003a1 1 0 0 0-1 1V21a1 1 0 0 1-1 1h-2V5.451l-7.598-3.335A1 1 0 0 0 15 3.03V25a1 1 0 0 1-1 1h-2V11.24h-.02L7.5 9l-4.48 2.24H3V20H0v4h5a1 1 0 0 0 1-1V12.717L7.5 12l1.5.717V28a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2V6.094l3 1.317V24a2 2 0 0 0 2 2h5.02A1.977 1.977 0 0 0 30 24.024V17h2z",fill:"#3DB8FF"}},c=new Map;function l(t){return c[t]||""}Object.keys(o).forEach((t=>{c[t]=`<svg viewBox="0 0 32 32" width="32" height="32" fill="${o[t].fill}"><path d="${o[t].path}"/></svg>`}));const p="instant-apps-create calcite-mode-light",h=class{constructor(a){t(this,a),this.popoverIcon="grid",this.mode="inline",this.popoverPositioning="absolute",this.popoverPlacement="auto",this.showHeader=!0,this.content=void 0,this.options=["instant-apps","map-viewer","story-maps","experience-builder","dashboards"],this.portal=void 0,this.baseClass=p,this.messages={},this.CreateOptionsLookup=void 0}contentChanged(){Object.keys(this.CreateOptionsLookup).forEach((t=>{this.CreateOptionsLookup[t].href=this.hrefLookup(t)}))}componentWillLoad(){return this.baseClass="dark"===s(this.el)?"instant-apps-create calcite-mode-dark":p,this.initializeModules(),n(this).then((()=>{this.initializePredefinedOptions()}))}disconnectedCallback(){var t,a;null===(t=this.handles)||void 0===t||t.removeAll(),null===(a=this.handles)||void 0===a||a.destroy(),this.handles=null}render(){const t="popover"===this.mode?this.renderPopover():this.renderPanel();return a(e,{key:"ee6a5076dce36a238288216de4cbd77d16347c15"},a("div",{key:"c22b60a05f5d0b430c76ab8edcf52577f1eecfaa",class:this.baseClass},t))}async initializeModules(){const[t]=await r(["esri/core/Handles"]);return this.handles=new t,Promise.resolve()}initializePredefinedOptions(){const{instantApps:t,instantAppsDesc:a,mapViewer:e,mapViewerDesc:i,arcgisStoryMaps:n,storyMapsDesc:r,experienceBuilder:s,experienceBuilderDesc:o,dashboards:c,dashboardsDesc:p}=this.messages;this.CreateOptionsLookup={"instant-apps":{title:t,subtitle:a,img:l("instant-apps"),href:this.hrefLookup("instant-apps")},"map-viewer":{title:e,subtitle:i,img:l("map-viewer"),href:this.hrefLookup("map-viewer")},"story-maps":{title:n,subtitle:r,img:l("story-maps"),href:this.hrefLookup("story-maps")},"experience-builder":{title:s,subtitle:o,img:l("experience-builder"),href:this.hrefLookup("experience-builder")},dashboards:{title:c,subtitle:p,img:l("dashboards"),href:this.hrefLookup("dashboards")}}}hrefLookup(t){var a,e;const i=this.getBaseUrl(this.portal),n=this._getEnvironment(i),r=this.contentHref();switch(t){case"instant-apps":return`${i}/apps/instantgallery/index.html?${r}`;case"dashboards":return`${i}/apps/dashboards/new#id=${null===(e=null===(a=this.content)||void 0===a?void 0:a.portalItem)||void 0===e?void 0:e.id}`;case"map-viewer":return`${i}/apps/mapviewer/index.html?${r}`;case"story-maps":return`https://storymaps${"prod"===n?"":n}.arcgis.com/stories/new?${r}`;case"experience-builder":return`https://experience${"prod"===n?"":n}.arcgis.com/builder/page/template/?${r}`}return""}contentHref(){var t,a,e,i,n;return"Web Map"===(null===(a=null===(t=null==this?void 0:this.content)||void 0===t?void 0:t.portalItem)||void 0===a?void 0:a.type)?`webmap=${this.content.portalItem.id}`:"Web Scene"===(null===(i=null===(e=null==this?void 0:this.content)||void 0===e?void 0:e.portalItem)||void 0===i?void 0:i.type)?`webscene=${this.content.portalItem.id}`:"function"==typeof(null===(n=null==this?void 0:this.content)||void 0===n?void 0:n.fetchMembers)?`group=${this.content.id}`:""}getBaseUrl(t){if(!t)return"";const{customBaseUrl:a,portalHostname:e,urlKey:i}=t,{protocol:n}=location;return`${n}//${i?`${i}.${a}`:e}`}_getEnvironment(t){var a;let e=null;try{e=null===(a=new URL(t))||void 0===a?void 0:a.hostname}catch(t){}return null==e||-1===e.indexOf("arcgis.com")?"dev":(-1!==e.indexOf("devext")?"dev":-1!==e.indexOf("qaext")&&"qa")||"prod"}renderPopover(){var t,e;const i=this.renderPanel();return[a("calcite-popover",{referenceElement:"create-popover-btn",overlayPositioning:this.popoverPositioning,placement:this.popoverPlacement,autoClose:!0,ref:t=>this.popoverEl=t,label:"Create panel"},i),a("calcite-action",{id:"create-popover-btn",alignment:"center",icon:this.popoverIcon,title:null===(t=this.messages)||void 0===t?void 0:t.create,text:null===(e=this.messages)||void 0===e?void 0:e.create})]}renderPanel(){const t=this.showHeader?this.renderHeader():null,e=this.renderOptions();return a("div",{class:"inline"===this.mode?"instant-apps-create__inline-container":"instant-apps-create__popover-container"},t,e)}renderHeader(){const{create:t,createSubheading:e}=this.messages;return a("div",{class:"instant-apps-create__header"},a("h3",null,t),a("p",null,e))}renderOptions(){return a("nav",null,this.options.map((t=>this.renderOption(t))))}renderOption(t){var e;"string"==typeof t&&(t=null===(e=null==this?void 0:this.CreateOptionsLookup)||void 0===e?void 0:e[t]);const{title:i,subtitle:n,img:r,href:s}=t||{};return a("a",{class:"instant-apps-create__option",href:s,target:"_blank"},a("span",{class:"instant-apps-create__option-icon",innerHTML:r}),a("span",{class:"instant-apps-create__option-text"},a("span",{class:"instant-apps-create__option-text-wrapper"},a("h3",{class:"instant-apps-create__option-title"},i),a("calcite-icon",{scale:"s",icon:"launch"})),a("p",{class:"instant-apps-create__option-subtitle"},n)))}get el(){return i(this)}static get watchers(){return{content:["contentChanged"]}}};h.style=":host{display:block;--instant-apps-create-action-background:var(--calcite-color-foreground-1);--instant-apps-create-action-background-hover:var(--calcite-color-foreground-2);--instant-apps-create-action-background-press:var(--calcite-color-foreground-3);--instant-apps-create-action-height:100%;--instant-apps-create-action-width:fit-content;--instant-apps-create-action-icon-color:var(--calcite-color-text-3);--instant-apps-create-action-icon-hover-color:var(--calcite-color-text-1);--instant-apps-create-background:var(--calcite-color-foreground-1);--instant-apps-create-text-color:var(--calcite-color-text-1);--instant-apps-create-popover-width:450px}.instant-apps-create{height:100%}.instant-apps-create *{box-sizing:border-box}.instant-apps-create__popover-container,.instant-apps-create__inline-container{padding:1rem 1.5rem;background:var(--instant-apps-create-background);--calcite-color-text-1:var(--instant-apps-create-text-color)}.instant-apps-create__popover-container{width:var(--instant-apps-create-popover-width)}.instant-apps-create calcite-popover{--calcite-color-foreground-1:var(--instant-apps-create-background)}.instant-apps-create calcite-button:last-of-type{margin-top:0.5rem}.instant-apps-create__header h3{margin:0;font-weight:var(--calcite-font-weight-medium)}.instant-apps-create__header p{margin:0;padding:0 0 0.5rem 0;font-weight:var(--calcite-font-weight-normal)}.instant-apps-create__options{display:flex;justify-content:space-between;align-items:center;flex-direction:column}.instant-apps-create__option{display:flex;color:inherit;text-decoration:inherit;height:-moz-fit-content;height:fit-content;margin-bottom:0.5rem;cursor:pointer;--calcite-color-text-link:var(--calcite-color-text-1);align-items:stretch;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow);outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}.instant-apps-create__option:first-of-type{margin-top:0.5rem}.instant-apps-create__option:last-of-type{margin-bottom:0}.instant-apps-create__option:hover{outline:1px solid var(--calcite-color-border-1);outline-offset:2px}.instant-apps-create__option-icon{display:flex;background:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1);font-size:1.25rem;background-color:var(--calcite-color-background);justify-content:center;align-items:center;flex:1 1 auto;max-width:5rem;min-width:5rem;height:auto}.instant-apps-create__option-icon svg{display:block;overflow-clip-margin:content-box;overflow:hidden}.instant-apps-create__option-text{min-height:2rem;font-size:0.75rem;color:var(--calcite-color-text-2);padding:0.75rem 0 0 0.75rem}.instant-apps-create__option-text-wrapper{display:flex;align-items:center}.instant-apps-create__option-text h3{margin:0;font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.instant-apps-create__option-text calcite-icon{margin-left:0.25rem;color:rgb(126, 126, 126);--tw-translate-x:0px;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:0;transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;transition-delay:0s}a:hover .instant-apps-create__option-text calcite-icon{opacity:1;--tw-translate-x:0.5rem;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.instant-apps-create__option-text p{margin:0;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3);line-height:1.35;min-height:3rem}";export{h as instant_apps_create}
6
+ import{r as t,h as a,H as e,g as i}from"./p-f4c4a2b7.js";import{g as n}from"./p-1c64264d.js";import{l as r}from"./p-4cd4cb85.js";import{g as s}from"./p-a9a72626.js";import"./p-ac122d9e.js";import"./p-0a24ad5f.js";import"./p-d4056c1c.js";const o={"instant-apps":{path:"M11.206 4.805v-1.38a2.231 2.231 0 0 1 2.23-2.231h13.168a2.231 2.231 0 0 1 2.231 2.23v11.15a2.231 2.231 0 0 1-2.23 2.231h-1.398V5.555a.75.75 0 0 0-.75-.75zM30.94 27.204l-5.447-4.41a.211.211 0 0 0-.344.164v2.225H8.197a1.344 1.344 0 0 1-1.344-1.344V11.665a.75.75 0 0 1 .75-.75h9.872a.75.75 0 0 1 .75.75l-.003 7.534a2.422 2.422 0 0 1-.798 1.796l-.945.855h4.3a1.075 1.075 0 0 0 1.074-1.075v-10.54a2.231 2.231 0 0 0-2.23-2.23H5.354a2.148 2.148 0 0 0-2.13 2.23v16.507a2.231 2.231 0 0 0 2.23 2.231l19.695-.003v2.725a.211.211 0 0 0 .344.164l5.447-4.41a.158.158 0 0 0 0-.245z",fill:"#83a238"},"map-viewer":{path:"M21.647 13.706A1.647 1.647 0 1 1 20 15.353a1.647 1.647 0 0 1 1.647-1.647zM19 19.083A1.917 1.917 0 1 1 17.082 21 1.917 1.917 0 0 1 19 19.082zm7.684 3.393a2.433 2.433 0 0 1-.64 1.776l-.01.012c-1.045 1.134-3.215 1.8-5.738 1.8-3.815 0-5.054-1.485-8.586-1.828a6.765 6.765 0 0 1 .566-4.07c.98-1.674 2.445-1.568 3.41-2.724.967-1.157.033-3.384 1.397-4.748 1.539-1.538 3.44-.12 4.57-2.542.877-1.884 1.84-2.98 3.68-3.35a.39.39 0 0 1 .047.07c.132.695 1.097 11.68 1.304 15.604zM6.208 8.864A3.054 3.054 0 0 1 8.115 6.17s2.425-.88 3.09-1.029a2.637 2.637 0 0 1 .314-.01 4.967 4.967 0 0 1 1.157.157l.404.095a7.26 7.26 0 0 0-.238 3.294c.188 1.354.657 2.399-.066 4.361-1.003 2.721-2.901 2.585-3.857 4.562-1.285 2.657.21 6.226-2.182 6.835l.004.002.003.003c-.801.114-1.363.22-1.663.272zm21.549-5.09a.055.055 0 0 0-.022-.037.058.058 0 0 0-.037-.01l-7.37 1.025-8.771-2.742a.227.227 0 0 0-.162.01L3.594 5.566a.054.054 0 0 0-.032.045L1.58 29a41.592 41.592 0 0 1 9.115-1.285c2.765.094 6.646 2.287 10.29 2.177 3.51-.108 8.582-2.382 9.564-2.836a.054.054 0 0 0 .03-.056z",fill:"#3DB8FF"},"story-maps":{path:"M25.5 0C23.015 0 21 .953 21 3.433v8.517a1.467 1.467 0 0 0 .43 1.038l3.837 3.827a.33.33 0 0 0 .466 0l3.836-3.827A1.467 1.467 0 0 0 30 11.95V3.433C30 .953 27.985 0 25.5 0zm0 8.1a2.6 2.6 0 1 1 2.6-2.599A2.599 2.599 0 0 1 25.5 8.1zm-7.856.453c.294-.153.312-.457.312-.788v-2.31a.104.104 0 0 0-.129-.1 6.128 6.128 0 0 0-2.248 1.19.14.14 0 0 1-.167.008c-3.437-2.283-8.543-1.52-12.131-.988-.432.064-1.762.34-2.164.424A.146.146 0 0 0 1 6.133V26.69a.147.147 0 0 0 .05.11.134.134 0 0 0 .116.035A36.394 36.394 0 0 1 9.5 25.781c3.283.054 4.403.96 4.967 1.513l.915.897a.164.164 0 0 0 .23 0l.916-.897a5.98 5.98 0 0 1 3.972-1.47 25.341 25.341 0 0 1 5.715.516c.718.109 1.46.22 2.186.312l1.251.16a.308.308 0 0 0 .348-.305v-7.375a.161.161 0 0 0-.303-.077l-.107.2a7.218 7.218 0 0 1-6.902 3.766 10.455 10.455 0 0 0-5.688.796V9.454a.89.89 0 0 1 .332-.693 2.058 2.058 0 0 1 .312-.208zM14 23.817c-3.071-1.38-5.998-.808-9.447-.293l-.253.036a.263.263 0 0 1-.3-.259V8.525a.098.098 0 0 1 .084-.097l.804-.115c2.518-.372 6.303-1.048 8.708.515a.89.89 0 0 1 .404.746z",fill:"#4fbaa9"},dashboards:{path:"M25.819 28H23.18a.181.181 0 0 1-.181-.181V13.18a.181.181 0 0 1 .181-.181h2.638a.181.181 0 0 1 .181.181V27.82a.181.181 0 0 1-.181.181zM21 27.816v-9.631a.184.184 0 0 0-.184-.185h-2.631a.184.184 0 0 0-.185.184v9.631a.184.184 0 0 0 .184.185h2.631a.184.184 0 0 0 .185-.184zm9.82.184a.18.18 0 0 0 .18-.18v-7.64a.18.18 0 0 0-.18-.18h-2.64a.18.18 0 0 0-.18.18v7.64a.18.18 0 0 0 .18.18zM7 9.267v10.475c.706.033 3.538-1.718 4.274-4.7.679-2.751 3.485-2.864 4.443-2.94 1.766-.14 3.588-.607 4.566-2.798A.216.216 0 0 0 20.085 9H7.267A.267.267 0 0 0 7 9.267zm18.997-1.053A4.411 4.411 0 0 0 21.63 4H2.684A.684.684 0 0 0 2 4.684V21.81A3.19 3.19 0 0 0 5.19 25h9.565a.245.245 0 0 0 .245-.245v-2.362a.393.393 0 0 0-.393-.393H6.38A1.385 1.385 0 0 1 5 20.619V7.349A.348.348 0 0 1 5.348 7h16.324A1.346 1.346 0 0 1 23 8.363v1.28a.357.357 0 0 0 .357.357h2.599a.046.046 0 0 0 .046-.046z",fill:"#ee9e01"},"experience-builder":{path:"M30.85 12.82l-2.85 5v7.44A1.78 1.78 0 0 1 26.22 27H25V7.75a.76.76 0 0 0-.75-.75H12V1.31a.28.28 0 0 1 .42-.25L17.51 4h8.71A1.78 1.78 0 0 1 28 5.78v4.42l2.54 1.47a.83.83 0 0 1 .31 1.15zM12 18h8v-6h-8zm7.62 5H7.75a.76.76 0 0 1-.75-.75V4H5.78A1.78 1.78 0 0 0 4 5.78V13l-2.89 5a.85.85 0 0 0 .31 1.15L4 20.59v4.61A1.78 1.78 0 0 0 5.78 27h8.62l5.18 3a.28.28 0 0 0 .42-.24v-6.39a.38.38 0 0 0-.38-.37z",fill:"#09b8ca"},geoBIM:{path:"M17.802 21.398l6.2 2.557-5.14 2.133a.772.772 0 0 1-1.06-.717zM9.311 7.868a.604.604 0 0 1-.003-1.122L16 4.169l8.12 3.148-8.119 3.184zm-3.5 1.541l8.387 3.413v12.554a.772.772 0 0 1-1.06.717l-6.297-2.736a1.639 1.639 0 0 1-1.03-1.521zM3.844 6.03a1.316 1.316 0 0 0-.827 1.22v17.395a1.316 1.316 0 0 0 .827 1.221L16 30.888l12.983-5.317v-2.423l-7.156-3.023 7.156-2.963v-1.95l-5.101-2.2-3.867 1.516L24 16.123l-6.199 2.505v-5.711l.073-.122 11.108-4.487v-1.95l-12.47-5.047a1.384 1.384 0 0 0-1.027 0z",fill:"#11ad1d"},notebooks:{path:"M2.941 25A.906.906 0 0 1 2 24.135v-.271A.906.906 0 0 1 2.941 23h3.118a.906.906 0 0 1 .941.864v.271a.906.906 0 0 1-.941.865zm3.118-8A.906.906 0 0 0 7 16.135v-.271A.906.906 0 0 0 6.059 15H2.941a.906.906 0 0 0-.941.864v.271a.906.906 0 0 0 .941.865zm0-8A.906.906 0 0 0 7 8.135v-.271A.906.906 0 0 0 6.059 7H2.941A.906.906 0 0 0 2 7.864v.271A.906.906 0 0 0 2.941 9zm9.44 16h-3.726a.773.773 0 0 1-.773-.774V6.171A.172.172 0 0 1 11.172 6H15.5a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5H5.342A1.345 1.345 0 0 0 4 4.343V5h2.059A2.904 2.904 0 0 1 9 7.858v.277A2.907 2.907 0 0 1 6.059 11H4v2h2.059A2.907 2.907 0 0 1 9 15.864v.271A2.907 2.907 0 0 1 6.059 19H4v2h2.059A2.907 2.907 0 0 1 9 23.864v.271A2.907 2.907 0 0 1 6.059 27H4v1.405a.595.595 0 0 0 .595.595H15.5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zM20 3.5v2a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 .5.5v18a.5.5 0 0 1-.5.5h-4a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h8a.5.5 0 0 0 .5-.5v-25a.5.5 0 0 0-.5-.5h-8a.5.5 0 0 0-.499.5z",fill:"#6e6e6e"},sites:{path:"M2.656 29A.656.656 0 0 1 2 28.344V6.185A3.189 3.189 0 0 1 5.185 3H29.72a.281.281 0 0 1 .281.281v22.53A3.194 3.194 0 0 1 26.81 29zm2.838-3h21.211a.295.295 0 0 0 .296-.295V13.494a.493.493 0 0 0-.493-.494H5v12.506a.494.494 0 0 0 .494.494zM23 9.91a.09.09 0 0 0 .09.09h3.82a.09.09 0 0 0 .09-.09V6.026A.026.026 0 0 0 26.974 6h-3.948a.026.026 0 0 0-.026.026zM6.633 6A1.597 1.597 0 0 0 5 7.595V10h14.523A.477.477 0 0 0 20 9.523V6.477A.477.477 0 0 0 19.523 6zM16 22v-5h7v5zm-7-2v-3h3v3z",fill:"#7842ed"},webAppBuilder:{path:"M15.044 19.974a.188.188 0 0 1-.192-.001l-3.762-2.35a.188.188 0 0 1-.09-.16v-4.098a.188.188 0 0 1 .096-.163l3.761-2.178a.188.188 0 0 1 .182-.001l3.863 2.179a.188.188 0 0 1 .098.165v4.095a.187.187 0 0 1-.092.161zm15.13-1.04a.052.052 0 0 0 .099.022 8.048 8.048 0 0 0 .67-3.147 7.155 7.155 0 0 0-3.507-6.213L17.59 3.768a4.054 4.054 0 0 0-1.968-.627 3.95 3.95 0 0 0-1.894.485c-.607.334-1.132.67-1.278.754a2.951 2.951 0 0 0-1.39 2.506v1.078a.2.2 0 0 0 .307.167l1.365-.87a4.988 4.988 0 0 1 2.319-.792 4.62 4.62 0 0 1 2.219.792s8.442 5.017 9.392 5.576a7.045 7.045 0 0 1 3.513 6.084zM9.546 23.55l.947-.547a.2.2 0 0 0 0-.345l-1.369-.79a4.326 4.326 0 0 1-2.13-3.842V7.286a7.16 7.16 0 0 1 3.63-6.083l.081-.05a.025.025 0 0 0-.012-.045l-.25-.005a8.333 8.333 0 0 0-3.887.994A7.102 7.102 0 0 0 3.069 8.31v10.786a3.96 3.96 0 0 0 1.89 3.362c.894.545 1.605.974 1.81 1.092a2.787 2.787 0 0 0 2.777 0zm4.383 6.37l9.997-5.773a3.959 3.959 0 0 0 1.967-3.32c.021-.929.034-1.604.034-1.806a2.786 2.786 0 0 0-1.39-2.406l-1.123-.57a.2.2 0 0 0-.289.177v1.604a4.45 4.45 0 0 1-2.218 3.842l-3.708 2.14a3.366 3.366 0 0 1-.256.135L11.6 27.128a6.427 6.427 0 0 1-3.343.938 7.137 7.137 0 0 1-3.513-1.038c-.09-.052-.38-.226-.797-.479a.094.094 0 0 0-.134.12 7.182 7.182 0 0 0 2.942 3.25 7.241 7.241 0 0 0 3.587 1.028 7.243 7.243 0 0 0 3.587-1.028z",fill:"#09b8ca"},urban:{path:"M32 14l-4 .003a1 1 0 0 0-1 1V21a1 1 0 0 1-1 1h-2V5.451l-7.598-3.335A1 1 0 0 0 15 3.03V25a1 1 0 0 1-1 1h-2V11.24h-.02L7.5 9l-4.48 2.24H3V20H0v4h5a1 1 0 0 0 1-1V12.717L7.5 12l1.5.717V28a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2V6.094l3 1.317V24a2 2 0 0 0 2 2h5.02A1.977 1.977 0 0 0 30 24.024V17h2z",fill:"#3DB8FF"}},c=new Map;function l(t){return c[t]||""}Object.keys(o).forEach((t=>{c[t]=`<svg viewBox="0 0 32 32" width="32" height="32" fill="${o[t].fill}"><path d="${o[t].path}"/></svg>`}));const p="instant-apps-create calcite-mode-light",h=class{constructor(a){t(this,a),this.popoverIcon="grid",this.mode="inline",this.popoverPositioning="absolute",this.popoverPlacement="auto",this.showHeader=!0,this.content=void 0,this.options=["instant-apps","map-viewer","story-maps","experience-builder","dashboards"],this.portal=void 0,this.baseClass=p,this.messages={},this.CreateOptionsLookup=void 0}contentChanged(){Object.keys(this.CreateOptionsLookup).forEach((t=>{this.CreateOptionsLookup[t].href=this.hrefLookup(t)}))}componentWillLoad(){return this.baseClass="dark"===s(this.el)?"instant-apps-create calcite-mode-dark":p,this.initializeModules(),n(this).then((()=>{this.initializePredefinedOptions()}))}disconnectedCallback(){var t,a;null===(t=this.handles)||void 0===t||t.removeAll(),null===(a=this.handles)||void 0===a||a.destroy(),this.handles=null}render(){const t="popover"===this.mode?this.renderPopover():this.renderPanel();return a(e,{key:"ee6a5076dce36a238288216de4cbd77d16347c15"},a("div",{key:"c22b60a05f5d0b430c76ab8edcf52577f1eecfaa",class:this.baseClass},t))}async initializeModules(){const[t]=await r(["esri/core/Handles"]);return this.handles=new t,Promise.resolve()}initializePredefinedOptions(){const{instantApps:t,instantAppsDesc:a,mapViewer:e,mapViewerDesc:i,arcgisStoryMaps:n,storyMapsDesc:r,experienceBuilder:s,experienceBuilderDesc:o,dashboards:c,dashboardsDesc:p}=this.messages;this.CreateOptionsLookup={"instant-apps":{title:t,subtitle:a,img:l("instant-apps"),href:this.hrefLookup("instant-apps")},"map-viewer":{title:e,subtitle:i,img:l("map-viewer"),href:this.hrefLookup("map-viewer")},"story-maps":{title:n,subtitle:r,img:l("story-maps"),href:this.hrefLookup("story-maps")},"experience-builder":{title:s,subtitle:o,img:l("experience-builder"),href:this.hrefLookup("experience-builder")},dashboards:{title:c,subtitle:p,img:l("dashboards"),href:this.hrefLookup("dashboards")}}}hrefLookup(t){var a,e;const i=this.getBaseUrl(this.portal),n=this._getEnvironment(i),r=this.contentHref();switch(t){case"instant-apps":return`${i}/apps/instantgallery/index.html?${r}`;case"dashboards":return`${i}/apps/dashboards/new#id=${null===(e=null===(a=this.content)||void 0===a?void 0:a.portalItem)||void 0===e?void 0:e.id}`;case"map-viewer":return`${i}/apps/mapviewer/index.html?${r}`;case"story-maps":return`https://storymaps${"prod"===n?"":n}.arcgis.com/stories/new?${r}`;case"experience-builder":return`https://experience${"prod"===n?"":n}.arcgis.com/builder/page/template/?${r}`}return""}contentHref(){var t,a,e,i,n;return"Web Map"===(null===(a=null===(t=null==this?void 0:this.content)||void 0===t?void 0:t.portalItem)||void 0===a?void 0:a.type)?`webmap=${this.content.portalItem.id}`:"Web Scene"===(null===(i=null===(e=null==this?void 0:this.content)||void 0===e?void 0:e.portalItem)||void 0===i?void 0:i.type)?`webscene=${this.content.portalItem.id}`:"function"==typeof(null===(n=null==this?void 0:this.content)||void 0===n?void 0:n.fetchMembers)?`group=${this.content.id}`:""}getBaseUrl(t){if(!t)return"";const{customBaseUrl:a,portalHostname:e,urlKey:i}=t,{protocol:n}=location;return`${n}//${i?`${i}.${a}`:e}`}_getEnvironment(t){var a;let e=null;try{e=null===(a=new URL(t))||void 0===a?void 0:a.hostname}catch(t){}return null==e||-1===e.indexOf("arcgis.com")?"dev":(-1!==e.indexOf("devext")?"dev":-1!==e.indexOf("qaext")&&"qa")||"prod"}renderPopover(){var t,e;const i=this.renderPanel();return[a("calcite-popover",{referenceElement:"create-popover-btn",overlayPositioning:this.popoverPositioning,placement:this.popoverPlacement,autoClose:!0,ref:t=>this.popoverEl=t,label:"Create panel"},i),a("calcite-action",{id:"create-popover-btn",alignment:"center",icon:this.popoverIcon,title:null===(t=this.messages)||void 0===t?void 0:t.create,text:null===(e=this.messages)||void 0===e?void 0:e.create})]}renderPanel(){const t=this.showHeader?this.renderHeader():null,e=this.renderOptions();return a("div",{class:"inline"===this.mode?"instant-apps-create__inline-container":"instant-apps-create__popover-container"},t,e)}renderHeader(){const{create:t,createSubheading:e}=this.messages;return a("div",{class:"instant-apps-create__header"},a("h3",null,t),a("p",null,e))}renderOptions(){return a("nav",null,this.options.map((t=>this.renderOption(t))))}renderOption(t){var e;"string"==typeof t&&(t=null===(e=null==this?void 0:this.CreateOptionsLookup)||void 0===e?void 0:e[t]);const{title:i,subtitle:n,img:r,href:s}=t||{};return a("a",{class:"instant-apps-create__option",href:s,target:"_blank"},a("span",{class:"instant-apps-create__option-icon",innerHTML:r}),a("span",{class:"instant-apps-create__option-text"},a("span",{class:"instant-apps-create__option-text-wrapper"},a("h3",{class:"instant-apps-create__option-title"},i),a("calcite-icon",{scale:"s",icon:"launch"})),a("p",{class:"instant-apps-create__option-subtitle"},n)))}get el(){return i(this)}static get watchers(){return{content:["contentChanged"]}}};h.style=":host{display:block;--instant-apps-create-action-background:var(--calcite-color-foreground-1);--instant-apps-create-action-background-hover:var(--calcite-color-foreground-2);--instant-apps-create-action-background-press:var(--calcite-color-foreground-3);--instant-apps-create-action-height:100%;--instant-apps-create-action-width:fit-content;--instant-apps-create-action-icon-color:var(--calcite-color-text-3);--instant-apps-create-action-icon-hover-color:var(--calcite-color-text-1);--instant-apps-create-background:var(--calcite-color-foreground-1);--instant-apps-create-text-color:var(--calcite-color-text-1);--instant-apps-create-popover-width:450px}.instant-apps-create{height:100%}.instant-apps-create *{box-sizing:border-box}.instant-apps-create__popover-container,.instant-apps-create__inline-container{padding:1rem 1.5rem;background:var(--instant-apps-create-background);--calcite-color-text-1:var(--instant-apps-create-text-color)}.instant-apps-create__popover-container{width:var(--instant-apps-create-popover-width)}.instant-apps-create calcite-popover{--calcite-color-foreground-1:var(--instant-apps-create-background)}.instant-apps-create calcite-button:last-of-type{margin-top:0.5rem}.instant-apps-create__header h3{margin:0;font-weight:var(--calcite-font-weight-medium)}.instant-apps-create__header p{margin:0;padding:0 0 0.5rem 0;font-weight:var(--calcite-font-weight-normal)}.instant-apps-create__options{display:flex;justify-content:space-between;align-items:center;flex-direction:column}.instant-apps-create__option{display:flex;color:inherit;text-decoration:inherit;height:-moz-fit-content;height:fit-content;margin-bottom:0.5rem;cursor:pointer;--calcite-color-text-link:var(--calcite-color-text-1);align-items:stretch;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow);outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}.instant-apps-create__option:first-of-type{margin-top:0.5rem}.instant-apps-create__option:last-of-type{margin-bottom:0}.instant-apps-create__option:hover{outline:1px solid var(--calcite-color-border-1);outline-offset:2px}.instant-apps-create__option-icon{display:flex;background:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1);font-size:1.25rem;background-color:var(--calcite-color-background);justify-content:center;align-items:center;flex:1 1 auto;max-width:5rem;min-width:5rem;height:auto}.instant-apps-create__option-icon svg{display:block;overflow-clip-margin:content-box;overflow:hidden}.instant-apps-create__option-text{min-height:2rem;font-size:0.75rem;color:var(--calcite-color-text-2);padding:0.75rem 0 0 0.75rem}.instant-apps-create__option-text-wrapper{display:flex;align-items:center}.instant-apps-create__option-text h3{margin:0;font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.instant-apps-create__option-text calcite-icon{margin-left:0.25rem;color:rgb(126, 126, 126);--tw-translate-x:0px;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:0;transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;transition-delay:0s}a:hover .instant-apps-create__option-text calcite-icon{opacity:1;--tw-translate-x:0.5rem;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.instant-apps-create__option-text p{margin:0;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3);line-height:1.35;min-height:3rem}";export{h as instant_apps_create}
@@ -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 s}from"./p-6d51c6bf.js";import"./p-fa1ceaf9.js";import"./p-716a0878.js";import"./p-67b26725.js";import"./p-b85be429.js";import"./p-db50226e.js";import"./p-9c6c056a.js";import"./p-b64cc55e.js";import"./p-f50a294b.js";import"./p-6127f49e.js";import"./p-e6e50975.js";import"./p-8ed6ce4d.js";import"./p-813d004f.js";import"./p-e6c9e6af.js";import"./p-97f0e1b6.js";import"./p-a89e61f4.js";import"./p-ebf59857.js";import"./p-44bfa87d.js";import"./p-ba569f8b.js";import"./p-5f1fdaf9.js";var e={name:"lv",weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),weekStart:1,weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),ordinal:function(s){return s},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},relativeTime:{future:"pēc %s",past:"pirms %s",s:"dažām sekundēm",m:"minūtes",mm:"%d minūtēm",h:"stundas",hh:"%d stundām",d:"dienas",dd:"%d dienām",M:"mēneša",MM:"%d mēnešiem",y:"gada",yy:"%d gadiem"}};s.locale(e,null,!0);export{e as default}
6
+ import{d as s}from"./p-501c2126.js";import"./p-f4c4a2b7.js";import"./p-1c7fa861.js";import"./p-67b26725.js";import"./p-b85be429.js";import"./p-db50226e.js";import"./p-07ffc0dc.js";import"./p-7c057019.js";import"./p-f50a294b.js";import"./p-6127f49e.js";import"./p-e6e50975.js";import"./p-fa214d6f.js";import"./p-33ec544d.js";import"./p-a1f034be.js";import"./p-97f0e1b6.js";import"./p-6fde2784.js";import"./p-ebf59857.js";import"./p-4541ad8e.js";import"./p-e6587ec3.js";import"./p-51ed7835.js";var e={name:"lv",weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),weekStart:1,weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),ordinal:function(s){return s},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},relativeTime:{future:"pēc %s",past:"pirms %s",s:"dažām sekundēm",m:"minūtes",mm:"%d minūtēm",h:"stundas",hh:"%d stundām",d:"dienas",dd:"%d dienām",M:"mēneša",MM:"%d mēnešiem",y:"gada",yy:"%d gadiem"}};s.locale(e,null,!0);export{e 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 i,h as s,g as e}from"./p-fa1ceaf9.js";import{g as a}from"./p-67b26725.js";import{c as o,d as c,u as n,I as d}from"./p-9c6c056a.js";import{c as l,d as h,g as r}from"./p-6127f49e.js";import{s as b,a as p,c as f}from"./p-8ed6ce4d.js";import{c as u,d as m}from"./p-813d004f.js";import{c as v}from"./p-e6c9e6af.js";import{c as y,s as g,d as k,u as w}from"./p-44bfa87d.js";import"./p-b85be429.js";import"./p-db50226e.js";import"./p-b64cc55e.js";import"./p-e6e50975.js";import"./p-f50a294b.js";
6
+ import{r as t,c as i,h as s,g as e}from"./p-f4c4a2b7.js";import{g as a}from"./p-67b26725.js";import{c as o,d as c,u as n,I as d}from"./p-07ffc0dc.js";import{c as l,d as h,g as r}from"./p-6127f49e.js";import{s as b,a as p,c as f}from"./p-fa214d6f.js";import{c as u,d as m}from"./p-33ec544d.js";import{c as v}from"./p-a1f034be.js";import{c as y,s as g,d as k,u as w}from"./p-4541ad8e.js";import"./p-b85be429.js";import"./p-db50226e.js";import"./p-7c057019.js";import"./p-e6e50975.js";import"./p-f50a294b.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/main/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 o,h as t,H as i,g as r}from"./p-fa1ceaf9.js";import{e as s,t as a}from"./p-67b26725.js";import{c,d as n,H as l}from"./p-716a0878.js";import{c as d,d as h,u as b,I as p}from"./p-9c6c056a.js";import{i as m}from"./p-f50a294b.js";import{c as k,d as u,g as f}from"./p-6127f49e.js";import{c as v,s as y,a as g}from"./p-8ed6ce4d.js";import"./p-b85be429.js";import"./p-db50226e.js";import"./p-b64cc55e.js";import"./p-e6e50975.js";const x=class{constructor(t){e(this,t),this.calciteSwitchChange=o(this,"calciteSwitchChange",6),this.keyDownHandler=e=>{!this.disabled&&m(e.key)&&(this.toggle(),e.preventDefault())},this.clickHandler=()=>{this.disabled||this.toggle()},this.setSwitchEl=e=>{this.switchEl=e},this.disabled=!1,this.form=void 0,this.label=void 0,this.name=void 0,this.scale="m",this.checked=!1,this.value=void 0}async setFocus(){await v(this),s(this.switchEl)}syncHiddenFormInput(e){e.type="checkbox"}onLabelClick(){this.disabled||(this.toggle(),this.setFocus())}toggle(){this.checked=!this.checked,this.calciteSwitchChange.emit()}connectedCallback(){d(this),k(this),c(this)}componentWillLoad(){y(this)}componentDidLoad(){g(this)}disconnectedCallback(){h(this),u(this),n(this)}componentDidRender(){b(this)}render(){return t(i,{key:"3844964b46482e9b6e902c07eccf97264970f3de",onClick:this.clickHandler,onKeyDown:this.keyDownHandler},t(p,{key:"c0028a5587e7d346ba4d0d7a214f649606f85e17",disabled:this.disabled},t("div",{key:"ff48a447bbe579ff1b3f104dea12e76c91cbcb88","aria-checked":a(this.checked),"aria-label":f(this),class:"container",role:"switch",tabIndex:0,ref:this.setSwitchEl},t("div",{key:"5b9f7b7dcab019e92d62c8ff18bf00068a286b36",class:"track"},t("div",{key:"7d05ec0e24c81db645735a7d6e03163ec77a2230",class:"handle"})),t(l,{key:"191a29b812bb8e1f31f56a7a84d941a48fb80372",component:this}))))}get el(){return r(this)}};x.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([scale=s]) .container{block-size:0.75rem}:host([scale=s]) .track{block-size:0.75rem;inline-size:1.5rem}:host([scale=s]) .handle{block-size:0.5rem;inline-size:0.5rem}:host([scale=m]) .container{block-size:1rem}:host([scale=m]) .track{block-size:1rem;inline-size:2rem}:host([scale=m]) .handle{block-size:0.75rem;inline-size:0.75rem}:host([scale=l]) .container{block-size:1.5rem}:host([scale=l]) .track{block-size:1.5rem;inline-size:3rem}:host([scale=l]) .handle{block-size:1.25rem;inline-size:1.25rem}:host{position:relative;display:inline-block;inline-size:auto;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;tap-highlight-color:transparent}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.container{outline-width:0px}.track{pointer-events:none;position:relative;box-sizing:border-box;display:inline-block;border-radius:9999px;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-2);background-color:var(--calcite-color-foreground-2);vertical-align:top;outline-color:transparent}:host(:focus) .track{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 )}.handle{pointer-events:none;position:absolute;display:block;border-radius:9999px;border-width:2px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);transition-property:all;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);inset-block-start:-1px;inset-inline:-1px auto}:host(:hover) .handle,:host(:focus) .handle{border-color:var(--calcite-color-brand);box-shadow:inset 0 0 0 1px var(--calcite-color-brand)}:host([checked]) .track{border-color:var(--calcite-color-brand-hover);background-color:var(--calcite-color-brand)}:host([checked]) .handle{border-color:var(--calcite-color-brand);inset-inline:auto -1px}:host([checked]:hover) .track{border-color:var(--calcite-color-brand-hover);background-color:var(--calcite-color-brand)}:host([checked]:hover) .handle{border-color:var(--calcite-color-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-brand-hover)}@media (forced-colors: active){:host([checked]) .track{background-color:canvasText}}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}:host([hidden]){display:none}[hidden]{display:none}";export{x as calcite_switch}
6
+ import{r as e,c as o,h as t,H as i,g as r}from"./p-f4c4a2b7.js";import{e as s,t as a}from"./p-67b26725.js";import{c,d as n,H as l}from"./p-1c7fa861.js";import{c as d,d as h,u as b,I as p}from"./p-07ffc0dc.js";import{i as m}from"./p-f50a294b.js";import{c as f,d as k,g as u}from"./p-6127f49e.js";import{c as v,s as y,a as g}from"./p-fa214d6f.js";import"./p-b85be429.js";import"./p-db50226e.js";import"./p-7c057019.js";import"./p-e6e50975.js";const x=class{constructor(t){e(this,t),this.calciteSwitchChange=o(this,"calciteSwitchChange",6),this.keyDownHandler=e=>{!this.disabled&&m(e.key)&&(this.toggle(),e.preventDefault())},this.clickHandler=()=>{this.disabled||this.toggle()},this.setSwitchEl=e=>{this.switchEl=e},this.disabled=!1,this.form=void 0,this.label=void 0,this.name=void 0,this.scale="m",this.checked=!1,this.value=void 0}async setFocus(){await v(this),s(this.switchEl)}syncHiddenFormInput(e){e.type="checkbox"}onLabelClick(){this.disabled||(this.toggle(),this.setFocus())}toggle(){this.checked=!this.checked,this.calciteSwitchChange.emit()}connectedCallback(){d(this),f(this),c(this)}componentWillLoad(){y(this)}componentDidLoad(){g(this)}disconnectedCallback(){h(this),k(this),n(this)}componentDidRender(){b(this)}render(){return t(i,{key:"3844964b46482e9b6e902c07eccf97264970f3de",onClick:this.clickHandler,onKeyDown:this.keyDownHandler},t(p,{key:"c0028a5587e7d346ba4d0d7a214f649606f85e17",disabled:this.disabled},t("div",{key:"ff48a447bbe579ff1b3f104dea12e76c91cbcb88","aria-checked":a(this.checked),"aria-label":u(this),class:"container",role:"switch",tabIndex:0,ref:this.setSwitchEl},t("div",{key:"5b9f7b7dcab019e92d62c8ff18bf00068a286b36",class:"track"},t("div",{key:"7d05ec0e24c81db645735a7d6e03163ec77a2230",class:"handle"})),t(l,{key:"191a29b812bb8e1f31f56a7a84d941a48fb80372",component:this}))))}get el(){return r(this)}};x.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([scale=s]) .container{block-size:0.75rem}:host([scale=s]) .track{block-size:0.75rem;inline-size:1.5rem}:host([scale=s]) .handle{block-size:0.5rem;inline-size:0.5rem}:host([scale=m]) .container{block-size:1rem}:host([scale=m]) .track{block-size:1rem;inline-size:2rem}:host([scale=m]) .handle{block-size:0.75rem;inline-size:0.75rem}:host([scale=l]) .container{block-size:1.5rem}:host([scale=l]) .track{block-size:1.5rem;inline-size:3rem}:host([scale=l]) .handle{block-size:1.25rem;inline-size:1.25rem}:host{position:relative;display:inline-block;inline-size:auto;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;tap-highlight-color:transparent}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.container{outline-width:0px}.track{pointer-events:none;position:relative;box-sizing:border-box;display:inline-block;border-radius:9999px;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-2);background-color:var(--calcite-color-foreground-2);vertical-align:top;outline-color:transparent}:host(:focus) .track{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 )}.handle{pointer-events:none;position:absolute;display:block;border-radius:9999px;border-width:2px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);transition-property:all;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);inset-block-start:-1px;inset-inline:-1px auto}:host(:hover) .handle,:host(:focus) .handle{border-color:var(--calcite-color-brand);box-shadow:inset 0 0 0 1px var(--calcite-color-brand)}:host([checked]) .track{border-color:var(--calcite-color-brand-hover);background-color:var(--calcite-color-brand)}:host([checked]) .handle{border-color:var(--calcite-color-brand);inset-inline:auto -1px}:host([checked]:hover) .track{border-color:var(--calcite-color-brand-hover);background-color:var(--calcite-color-brand)}:host([checked]:hover) .handle{border-color:var(--calcite-color-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-brand-hover)}@media (forced-colors: active){:host([checked]) .track{background-color:canvasText}}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}:host([hidden]){display:none}[hidden]{display:none}";export{x as calcite_switch}
@@ -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{g as t}from"./p-21fd2b18.js";import{e as s,g as i,t as e}from"./p-67b26725.js";import{S as n}from"./p-23059533.js";import{d as o}from"./p-c8d3207e.js";import{h as r,H as a}from"./p-fa1ceaf9.js";import{I as c}from"./p-9c6c056a.js";import{C as l,S as h}from"./p-f6e10506.js";
6
+ import{g as t}from"./p-21fd2b18.js";import{e as s,g as i,t as e}from"./p-67b26725.js";import{S as n}from"./p-23059533.js";import{d as o}from"./p-c8d3207e.js";import{h as r,H as a}from"./p-f4c4a2b7.js";import{I as c}from"./p-07ffc0dc.js";import{C as l,S as h}from"./p-f6e10506.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/main/LICENSE.md for details.
@@ -3,15 +3,15 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as e,c as t,h as i,H as o,g as a}from"./p-fa1ceaf9.js";import{a as n,t as l}from"./p-67b26725.js";import{a as s,c as r,d as c,H as d}from"./p-716a0878.js";import{c as h,d as m,u as p,I as f}from"./p-9c6c056a.js";import{c as u,d as b}from"./p-6127f49e.js";import{s as g,a as v,c as k}from"./p-8ed6ce4d.js";import{c as y}from"./p-e6c9e6af.js";import{V as w}from"./p-5f1fdaf9.js";import"./p-b85be429.js";import"./p-db50226e.js";import"./p-b64cc55e.js";import"./p-e6e50975.js";
6
+ import{r as e,c as t,h as i,H as o,g as n}from"./p-f4c4a2b7.js";import{a,t as l}from"./p-67b26725.js";import{a as s,c as r,d as c,H as d}from"./p-1c7fa861.js";import{c as h,d as m,u as f,I as p}from"./p-07ffc0dc.js";import{c as u,d as b}from"./p-6127f49e.js";import{s as g,a as v,c as k}from"./p-fa214d6f.js";import{c as y}from"./p-a1f034be.js";import{V as w}from"./p-51ed7835.js";import"./p-b85be429.js";import"./p-db50226e.js";import"./p-7c057019.js";import"./p-e6e50975.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/main/LICENSE.md for details.
10
10
  * v2.8.2
11
- */const x=class{constructor(i){e(this,i),this.calciteSegmentedControlChange=t(this,"calciteSegmentedControlChange",6),this.handleClick=e=>{this.disabled||"calcite-segmented-control-item"===e.target.localName&&this.selectItem(e.target,!0)},this.mutationObserver=y("mutation",(()=>this.setUpItems())),this.appearance="solid",this.disabled=!1,this.form=void 0,this.required=!1,this.name=void 0,this.layout="horizontal",this.scale="m",this.value=null,this.selectedItem=void 0,this.status="idle",this.validationMessage=void 0,this.validationIcon=void 0,this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.width="auto"}handlePropsChange(){this.handleItemPropChange()}valueHandler(e){this.getItems().forEach((t=>t.checked=t.value===e))}handleSelectedItemChange(e,t){if(this.value=null==e?void 0:e.value,e===t)return;const i=this.getItems(),o=i.filter((t=>t===e)).pop();o?this.selectItem(o):i[0]&&(i[0].tabIndex=0)}componentWillLoad(){g(this),this.setUpItems()}componentDidLoad(){s(this,this.value),v(this)}connectedCallback(){var e;h(this),u(this),r(this),null===(e=this.mutationObserver)||void 0===e||e.observe(this.el,{childList:!0}),this.handleItemPropChange()}disconnectedCallback(){var e;m(this),b(this),c(this),null===(e=this.mutationObserver)||void 0===e||e.unobserve(this.el)}componentDidRender(){p(this)}render(){return i(o,{key:"1241947631795e70e18ad5f923ecaab81d75eae9",onClick:this.handleClick,role:"radiogroup"},i("div",{key:"1e1172df2df7a6ecd307f2e927e4bc766b8a1418",class:"item-wrapper"},i(f,{key:"874fc408bafb73b99748769ec5d361848b1b1fff",disabled:this.disabled},i("slot",{key:"629d9b015a690804e8548e4b50dde9ad4c3fa9b7"}),i(d,{key:"3fedcebb6e1fe5a8d5ef426d301f510e7c1fc4f3",component:this}))),this.validationMessage&&"invalid"===this.status?i(w,{icon:this.validationIcon,message:this.validationMessage,scale:this.scale,status:this.status}):null)}handleSelected(e){e.preventDefault(),this.selectItem(e.target),e.stopPropagation()}handleKeyDown(e){const{key:t}=e,{el:i,selectedItem:o}=this;if(-1===["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"," "].indexOf(t))return;let a=t;"rtl"===n(i)&&("ArrowRight"===t&&(a="ArrowLeft"),"ArrowLeft"===t&&(a="ArrowRight"));const l=this.getItems();let s=-1;switch(l.forEach(((e,t)=>{e===o&&(s=t)})),a){case"ArrowLeft":case"ArrowUp":return e.preventDefault(),void this.selectItem(s<1?l[l.length-1]:l[s-1],!0);case"ArrowRight":case"ArrowDown":return e.preventDefault(),void this.selectItem(-1===s?l[1]:l[s+1]||l[0],!0);case" ":return e.preventDefault(),void this.selectItem(e.target,!0);default:return}}async setFocus(){var e;await k(this),null===(e=this.selectedItem||this.getItems()[0])||void 0===e||e.focus()}handleItemPropChange(){this.getItems().forEach((e=>{e.appearance=this.appearance,e.layout=this.layout,e.scale=this.scale}))}onLabelClick(){this.setFocus()}getItems(){return Array.from(this.el.querySelectorAll("calcite-segmented-control-item"))}selectItem(e,t=!1){if(e===this.selectedItem)return;const i=this.getItems();let o=null;i.forEach((i=>{const a=i===e;(a&&!i.checked||!a&&i.checked)&&(i.checked=a),i.tabIndex=a?0:-1,a&&(o=i,t&&this.calciteSegmentedControlChange.emit())})),this.selectedItem=o,o&&o.focus()}setUpItems(){const e=this.getItems(),t=e.filter((e=>e.checked)).pop();t?this.selectItem(t):e[0]&&(e[0].tabIndex=0)}get el(){return a(this)}static get watchers(){return{appearance:["handlePropsChange"],layout:["handlePropsChange"],scale:["handlePropsChange"],value:["valueHandler"],selectedItem:["handleSelectedItemChange"]}}};x.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;flex-direction:column}.item-wrapper{display:flex;background-color:var(--calcite-color-foreground-1);inline-size:-moz-fit-content;inline-size:fit-content;outline:1px solid var(--calcite-color-border-input);outline-offset:-1px}:host([appearance=outline])>.item-wrapper{background-color:transparent}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([layout=vertical])>.item-wrapper{flex-direction:column;align-items:flex-start;align-self:flex-start}:host([width=full])>.item-wrapper{inline-size:100%;min-inline-size:-moz-fit-content;min-inline-size:fit-content}:host([width=full])>.item-wrapper ::slotted(calcite-segmented-control-item){flex:1 1 auto}:host([width=full][layout=vertical])>.item-wrapper ::slotted(calcite-segmented-control-item){justify-content:flex-start}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:0.5rem}:host([scale=s]) .validation-container{padding-block-start:0.25rem}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}:host([hidden]){display:none}[hidden]{display:none}";
11
+ */const x=class{constructor(i){e(this,i),this.calciteSegmentedControlChange=t(this,"calciteSegmentedControlChange",6),this.handleClick=e=>{this.disabled||"calcite-segmented-control-item"===e.target.localName&&this.selectItem(e.target,!0)},this.mutationObserver=y("mutation",(()=>this.setUpItems())),this.appearance="solid",this.disabled=!1,this.form=void 0,this.required=!1,this.name=void 0,this.layout="horizontal",this.scale="m",this.value=null,this.selectedItem=void 0,this.status="idle",this.validationMessage=void 0,this.validationIcon=void 0,this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.width="auto"}handlePropsChange(){this.handleItemPropChange()}valueHandler(e){this.getItems().forEach((t=>t.checked=t.value===e))}handleSelectedItemChange(e,t){if(this.value=null==e?void 0:e.value,e===t)return;const i=this.getItems(),o=i.filter((t=>t===e)).pop();o?this.selectItem(o):i[0]&&(i[0].tabIndex=0)}componentWillLoad(){g(this),this.setUpItems()}componentDidLoad(){s(this,this.value),v(this)}connectedCallback(){var e;h(this),u(this),r(this),null===(e=this.mutationObserver)||void 0===e||e.observe(this.el,{childList:!0}),this.handleItemPropChange()}disconnectedCallback(){var e;m(this),b(this),c(this),null===(e=this.mutationObserver)||void 0===e||e.unobserve(this.el)}componentDidRender(){f(this)}render(){return i(o,{key:"1241947631795e70e18ad5f923ecaab81d75eae9",onClick:this.handleClick,role:"radiogroup"},i("div",{key:"1e1172df2df7a6ecd307f2e927e4bc766b8a1418",class:"item-wrapper"},i(p,{key:"874fc408bafb73b99748769ec5d361848b1b1fff",disabled:this.disabled},i("slot",{key:"629d9b015a690804e8548e4b50dde9ad4c3fa9b7"}),i(d,{key:"3fedcebb6e1fe5a8d5ef426d301f510e7c1fc4f3",component:this}))),this.validationMessage&&"invalid"===this.status?i(w,{icon:this.validationIcon,message:this.validationMessage,scale:this.scale,status:this.status}):null)}handleSelected(e){e.preventDefault(),this.selectItem(e.target),e.stopPropagation()}handleKeyDown(e){const{key:t}=e,{el:i,selectedItem:o}=this;if(-1===["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"," "].indexOf(t))return;let n=t;"rtl"===a(i)&&("ArrowRight"===t&&(n="ArrowLeft"),"ArrowLeft"===t&&(n="ArrowRight"));const l=this.getItems();let s=-1;switch(l.forEach(((e,t)=>{e===o&&(s=t)})),n){case"ArrowLeft":case"ArrowUp":return e.preventDefault(),void this.selectItem(s<1?l[l.length-1]:l[s-1],!0);case"ArrowRight":case"ArrowDown":return e.preventDefault(),void this.selectItem(-1===s?l[1]:l[s+1]||l[0],!0);case" ":return e.preventDefault(),void this.selectItem(e.target,!0);default:return}}async setFocus(){var e;await k(this),null===(e=this.selectedItem||this.getItems()[0])||void 0===e||e.focus()}handleItemPropChange(){this.getItems().forEach((e=>{e.appearance=this.appearance,e.layout=this.layout,e.scale=this.scale}))}onLabelClick(){this.setFocus()}getItems(){return Array.from(this.el.querySelectorAll("calcite-segmented-control-item"))}selectItem(e,t=!1){if(e===this.selectedItem)return;const i=this.getItems();let o=null;i.forEach((i=>{const n=i===e;(n&&!i.checked||!n&&i.checked)&&(i.checked=n),i.tabIndex=n?0:-1,n&&(o=i,t&&this.calciteSegmentedControlChange.emit())})),this.selectedItem=o,o&&o.focus()}setUpItems(){const e=this.getItems(),t=e.filter((e=>e.checked)).pop();t?this.selectItem(t):e[0]&&(e[0].tabIndex=0)}get el(){return n(this)}static get watchers(){return{appearance:["handlePropsChange"],layout:["handlePropsChange"],scale:["handlePropsChange"],value:["valueHandler"],selectedItem:["handleSelectedItemChange"]}}};x.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;flex-direction:column}.item-wrapper{display:flex;background-color:var(--calcite-color-foreground-1);inline-size:-moz-fit-content;inline-size:fit-content;outline:1px solid var(--calcite-color-border-input);outline-offset:-1px}:host([appearance=outline])>.item-wrapper{background-color:transparent}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([layout=vertical])>.item-wrapper{flex-direction:column;align-items:flex-start;align-self:flex-start}:host([width=full])>.item-wrapper{inline-size:100%;min-inline-size:-moz-fit-content;min-inline-size:fit-content}:host([width=full])>.item-wrapper ::slotted(calcite-segmented-control-item){flex:1 1 auto}:host([width=full][layout=vertical])>.item-wrapper ::slotted(calcite-segmented-control-item){justify-content:flex-start}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:0.5rem}:host([scale=s]) .validation-container{padding-block-start:0.25rem}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}:host([hidden]){display:none}[hidden]{display:none}";
12
12
  /*!
13
13
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
14
14
  * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
15
15
  * v2.8.2
16
16
  */
17
- const z="segmented-control-item-icon",C=class{constructor(i){e(this,i),this.calciteInternalSegmentedControlItemChange=t(this,"calciteInternalSegmentedControlItemChange",6),this.checked=!1,this.iconFlipRtl=!1,this.iconStart=void 0,this.iconEnd=void 0,this.value=void 0,this.appearance="solid",this.layout="horizontal",this.scale="m"}handleCheckedChange(){this.calciteInternalSegmentedControlItemChange.emit()}render(){const{appearance:e,checked:t,layout:a,scale:n,value:s}=this,r=this.iconStart?i("calcite-icon",{class:z,flipRtl:this.iconFlipRtl,icon:this.iconStart,key:"icon-start",scale:"s"}):null,c=this.iconEnd?i("calcite-icon",{class:z,flipRtl:this.iconFlipRtl,icon:this.iconEnd,key:"icon-end",scale:"s"}):null;return i(o,{key:"b20e8835703f9dcd6d96a58ca47efe9e57f1ebc7","aria-checked":l(t),"aria-label":s,role:"radio"},i("label",{key:"850c35eb51158b2e3674587163bb77f4b30e554f",class:{"label--scale-s":"s"===n,"label--scale-m":"m"===n,"label--scale-l":"l"===n,"label--horizontal":"horizontal"===a,"label--outline":"outline"===e,"label--outline-fill":"outline-fill"===e}},this.iconStart?r:null,i("slot",{key:"2f41ec01fab8c3e54e16d74b98f8d50d4e69018f"},s),i("slot",{key:"f969ea4b8fbcc0ab01052f5ffd103149540de08f",name:"input"}),this.iconEnd?c:null))}get el(){return a(this)}static get watchers(){return{checked:["handleCheckedChange"]}}};C.style=":host{display:flex;cursor:pointer;align-self:stretch;font-weight:var(--calcite-font-weight-normal);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-animation-timing) ease-in-out}:host label{pointer-events:none;margin:0.125rem;box-sizing:border-box;display:flex;flex:1 1 0%;align-items:center;color:var(--calcite-color-text-3);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-internal-animation-timing-fast) ease-in-out, color var(--calcite-internal-animation-timing-fast) ease-in-out}.label--horizontal{justify-content:center}:host{outline-color:transparent}:host(: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 );outline-offset:-1px}.label--scale-s{padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-block:0.125rem}.label--scale-m{padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-block:0.375rem}.label--scale-l{padding-inline:1rem;padding-block:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host(:hover) label{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}:host(:active) label{background-color:var(--calcite-color-foreground-3)}:host([checked]) label{cursor:default;border-color:var(--calcite-color-brand);background-color:var(--calcite-color-brand);color:var(--calcite-color-text-inverse)}:host([checked]) .label--outline,:host([checked]) .label--outline-fill{border-color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-1);box-shadow:inset 0 0 0 1px var(--calcite-color-brand);color:var(--calcite-color-brand)}:host([checked]) .label--outline{background-color:transparent}::slotted(input){display:none}@media (forced-colors: active){:host([checked]) label{background-color:highlight}:host([checked]) .label--outline,:host([checked]) .label--outline-fill{outline:2px solid transparent;outline-offset:2px}:host([checked]) label:not([class~=label--outline]) .segmented-control-item-icon{color:highlightText}}.segmented-control-item-icon{position:relative;margin:0px;display:inline-flex;line-height:inherit}:host([icon-start]) .label--scale-s .segmented-control-item-icon{margin-inline-end:0.5rem}:host([icon-end]) .label--scale-s .segmented-control-item-icon{margin-inline-start:0.5rem}:host([icon-start]) .label--scale-m .segmented-control-item-icon{margin-inline-end:0.75rem}:host([icon-end]) .label--scale-m .segmented-control-item-icon{margin-inline-start:0.75rem}:host([icon-start]) .label--scale-l .segmented-control-item-icon{margin-inline-end:1rem}:host([icon-end]) .label--scale-l .segmented-control-item-icon{margin-inline-start:1rem}:host([hidden]){display:none}[hidden]{display:none}";export{x as calcite_segmented_control,C as calcite_segmented_control_item}
17
+ const z="segmented-control-item-icon",C=class{constructor(i){e(this,i),this.calciteInternalSegmentedControlItemChange=t(this,"calciteInternalSegmentedControlItemChange",6),this.checked=!1,this.iconFlipRtl=!1,this.iconStart=void 0,this.iconEnd=void 0,this.value=void 0,this.appearance="solid",this.layout="horizontal",this.scale="m"}handleCheckedChange(){this.calciteInternalSegmentedControlItemChange.emit()}render(){const{appearance:e,checked:t,layout:n,scale:a,value:s}=this,r=this.iconStart?i("calcite-icon",{class:z,flipRtl:this.iconFlipRtl,icon:this.iconStart,key:"icon-start",scale:"s"}):null,c=this.iconEnd?i("calcite-icon",{class:z,flipRtl:this.iconFlipRtl,icon:this.iconEnd,key:"icon-end",scale:"s"}):null;return i(o,{key:"b20e8835703f9dcd6d96a58ca47efe9e57f1ebc7","aria-checked":l(t),"aria-label":s,role:"radio"},i("label",{key:"850c35eb51158b2e3674587163bb77f4b30e554f",class:{"label--scale-s":"s"===a,"label--scale-m":"m"===a,"label--scale-l":"l"===a,"label--horizontal":"horizontal"===n,"label--outline":"outline"===e,"label--outline-fill":"outline-fill"===e}},this.iconStart?r:null,i("slot",{key:"2f41ec01fab8c3e54e16d74b98f8d50d4e69018f"},s),i("slot",{key:"f969ea4b8fbcc0ab01052f5ffd103149540de08f",name:"input"}),this.iconEnd?c:null))}get el(){return n(this)}static get watchers(){return{checked:["handleCheckedChange"]}}};C.style=":host{display:flex;cursor:pointer;align-self:stretch;font-weight:var(--calcite-font-weight-normal);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-animation-timing) ease-in-out}:host label{pointer-events:none;margin:0.125rem;box-sizing:border-box;display:flex;flex:1 1 0%;align-items:center;color:var(--calcite-color-text-3);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-internal-animation-timing-fast) ease-in-out, color var(--calcite-internal-animation-timing-fast) ease-in-out}.label--horizontal{justify-content:center}:host{outline-color:transparent}:host(: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 );outline-offset:-1px}.label--scale-s{padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-block:0.125rem}.label--scale-m{padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-block:0.375rem}.label--scale-l{padding-inline:1rem;padding-block:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host(:hover) label{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}:host(:active) label{background-color:var(--calcite-color-foreground-3)}:host([checked]) label{cursor:default;border-color:var(--calcite-color-brand);background-color:var(--calcite-color-brand);color:var(--calcite-color-text-inverse)}:host([checked]) .label--outline,:host([checked]) .label--outline-fill{border-color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-1);box-shadow:inset 0 0 0 1px var(--calcite-color-brand);color:var(--calcite-color-brand)}:host([checked]) .label--outline{background-color:transparent}::slotted(input){display:none}@media (forced-colors: active){:host([checked]) label{background-color:highlight}:host([checked]) .label--outline,:host([checked]) .label--outline-fill{outline:2px solid transparent;outline-offset:2px}:host([checked]) label:not([class~=label--outline]) .segmented-control-item-icon{color:highlightText}}.segmented-control-item-icon{position:relative;margin:0px;display:inline-flex;line-height:inherit}:host([icon-start]) .label--scale-s .segmented-control-item-icon{margin-inline-end:0.5rem}:host([icon-end]) .label--scale-s .segmented-control-item-icon{margin-inline-start:0.5rem}:host([icon-start]) .label--scale-m .segmented-control-item-icon{margin-inline-end:0.75rem}:host([icon-end]) .label--scale-m .segmented-control-item-icon{margin-inline-start:0.75rem}:host([icon-start]) .label--scale-l .segmented-control-item-icon{margin-inline-end:1rem}:host([icon-end]) .label--scale-l .segmented-control-item-icon{margin-inline-start:1rem}:host([hidden]){display:none}[hidden]{display:none}";export{x as calcite_segmented_control,C as calcite_segmented_control_item}