@duetds/components 10.0.0-alpha.26 → 10.0.0-alpha.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (443) hide show
  1. package/hydrate/index.js +364 -273
  2. package/hydrate/index.mjs +364 -273
  3. package/lib/cjs/{a11y-utils-CnLnSK4z.js → a11y-utils-CJbT7JyN.js} +1 -1
  4. package/lib/cjs/{app-globals-B3iie8Hv.js → app-globals-Bg_Qat6e.js} +1 -1
  5. package/lib/cjs/duet-action-button.cjs.entry.js +4 -4
  6. package/lib/cjs/duet-alert.cjs.entry.js +4 -4
  7. package/lib/cjs/duet-badge.cjs.entry.js +5 -5
  8. package/lib/cjs/duet-banner.cjs.entry.js +20 -9
  9. package/lib/cjs/duet-breadcrumb.cjs.entry.js +11 -20
  10. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +7 -7
  11. package/lib/cjs/duet-button_2.cjs.entry.js +7 -7
  12. package/lib/cjs/duet-callout.cjs.entry.js +5 -5
  13. package/lib/cjs/duet-caption_4.cjs.entry.js +10 -10
  14. package/lib/cjs/duet-card.cjs.entry.js +5 -5
  15. package/lib/cjs/duet-checkbox.cjs.entry.js +2 -2
  16. package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
  17. package/lib/cjs/duet-chip.cjs.entry.js +4 -4
  18. package/lib/cjs/duet-choice_2.cjs.entry.js +7 -7
  19. package/lib/cjs/duet-collapsible.cjs.entry.js +17 -8
  20. package/lib/cjs/duet-combobox.cjs.entry.js +4 -4
  21. package/lib/cjs/duet-contact-card.cjs.entry.js +5 -5
  22. package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
  23. package/lib/cjs/duet-date-picker.cjs.entry.js +6 -6
  24. package/lib/cjs/duet-divider_2.cjs.entry.js +4 -4
  25. package/lib/cjs/duet-editable-table_3.cjs.entry.js +9 -9
  26. package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
  27. package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
  28. package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
  29. package/lib/cjs/duet-footer.cjs.entry.js +4 -4
  30. package/lib/cjs/duet-grid_2.cjs.entry.js +11 -10
  31. package/lib/cjs/duet-header_2.cjs.entry.js +5 -5
  32. package/lib/cjs/duet-hero.cjs.entry.js +15 -11
  33. package/lib/cjs/duet-icon.cjs.entry.js +6 -6
  34. package/lib/cjs/duet-indicator.cjs.entry.js +53 -0
  35. package/lib/cjs/duet-input_2.cjs.entry.js +12 -12
  36. package/lib/cjs/duet-layout.cjs.entry.js +7 -7
  37. package/lib/cjs/duet-list_2.cjs.entry.js +5 -5
  38. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +4 -4
  39. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +4 -4
  40. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +6 -6
  41. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +7 -7
  42. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +4 -4
  43. package/lib/cjs/duet-menu-bar.cjs.entry.js +7 -7
  44. package/lib/cjs/duet-modal.cjs.entry.js +13 -13
  45. package/lib/cjs/duet-multiselect.cjs.entry.js +10 -10
  46. package/lib/cjs/duet-nav.cjs.entry.js +4 -4
  47. package/lib/cjs/duet-notification_2.cjs.entry.js +9 -9
  48. package/lib/cjs/duet-number-input.cjs.entry.js +6 -6
  49. package/lib/cjs/duet-overlay.cjs.entry.js +3 -3
  50. package/lib/cjs/duet-page-heading.cjs.entry.js +4 -4
  51. package/lib/cjs/duet-pagination_2.cjs.entry.js +17 -17
  52. package/lib/cjs/duet-panel.cjs.entry.js +5 -5
  53. package/lib/cjs/duet-phone-input.cjs.entry.js +22 -7
  54. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +6 -6
  55. package/lib/cjs/duet-progress.cjs.entry.js +3 -3
  56. package/lib/cjs/duet-promo-card.cjs.entry.js +6 -6
  57. package/lib/cjs/duet-radio_2.cjs.entry.js +7 -7
  58. package/lib/cjs/duet-range-slider.cjs.entry.js +6 -6
  59. package/lib/cjs/duet-scrollable_3.cjs.entry.js +21 -19
  60. package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
  61. package/lib/cjs/duet-select.cjs.entry.js +9 -9
  62. package/lib/cjs/duet-shaped-image.cjs.entry.js +4 -4
  63. package/lib/cjs/duet-share-chart-item.cjs.entry.js +2 -2
  64. package/lib/cjs/duet-share-chart.cjs.entry.js +7 -7
  65. package/lib/cjs/duet-show-more.cjs.entry.js +5 -5
  66. package/lib/cjs/duet-slideout-lang.cjs.entry.js +5 -5
  67. package/lib/cjs/duet-slideout-link.cjs.entry.js +8 -8
  68. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +7 -7
  69. package/lib/cjs/duet-slideout-panel.cjs.entry.js +15 -20
  70. package/lib/cjs/duet-slideout.cjs.entry.js +11 -11
  71. package/lib/cjs/duet-status-icon.cjs.entry.js +3 -3
  72. package/lib/cjs/duet-step_2.cjs.entry.js +6 -6
  73. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +4 -4
  74. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +6 -6
  75. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +6 -6
  76. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +3 -3
  77. package/lib/cjs/duet-submenu-bar.cjs.entry.js +8 -8
  78. package/lib/cjs/duet-textarea.cjs.entry.js +8 -8
  79. package/lib/cjs/duet-toggle.cjs.entry.js +6 -6
  80. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +4 -4
  81. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +6 -6
  82. package/lib/cjs/duet-toolbar-item.cjs.entry.js +9 -9
  83. package/lib/cjs/duet-toolbar-link.cjs.entry.js +4 -4
  84. package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
  85. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +8 -8
  86. package/lib/cjs/duet-tooltip.cjs.entry.js +4 -4
  87. package/lib/cjs/duet-tray.cjs.entry.js +5 -5
  88. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
  89. package/lib/cjs/duet-upload-item.cjs.entry.js +6 -6
  90. package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
  91. package/lib/cjs/duet.cjs.js +3 -3
  92. package/lib/cjs/{errorcodes.utils-BgHe-1YU.js → errorcodes.utils-CvAMXZjl.js} +1 -1
  93. package/lib/cjs/{focus-utils-CT74z9Qb.js → focus-utils-C8MDOQZG.js} +1 -1
  94. package/lib/cjs/{index-C6D9Bly8.js → index-BkDTP7hm.js} +5 -1
  95. package/lib/cjs/{label-tyZX3oPG.js → label-DYV9pC59.js} +1 -1
  96. package/lib/cjs/{language-utils-DcgSN-KH.js → language-utils-BxIeXBGy.js} +1 -1
  97. package/lib/cjs/loader.cjs.js +3 -3
  98. package/lib/cjs/{slot-utils-ByPWwvPp.js → slot-utils-F-Jmx-3a.js} +1 -1
  99. package/lib/cjs/{themeable-component-Doq36ycm.js → themeable-component-DvX_Xgrg.js} +1 -1
  100. package/lib/cjs/{token-utils-DsVwGXGM.js → token-utils-b3aW02zZ.js} +7 -4
  101. package/lib/collection/collection-manifest.json +1 -0
  102. package/lib/collection/components/duet-badge/duet-badge.js +2 -2
  103. package/lib/collection/components/duet-banner/duet-banner.css +27 -0
  104. package/lib/collection/components/duet-banner/duet-banner.js +15 -4
  105. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.css +1 -1
  106. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +9 -22
  107. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.css +3 -3
  108. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
  109. package/lib/collection/components/duet-button/duet-button.css +3 -0
  110. package/lib/collection/components/duet-callout/duet-callout.js +2 -2
  111. package/lib/collection/components/duet-card/duet-card.css +12 -3
  112. package/lib/collection/components/duet-chip/duet-chip.css +6 -6
  113. package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
  114. package/lib/collection/components/duet-choice/duet-choice.css +4 -4
  115. package/lib/collection/components/duet-choice-group/duet-choice-group.js +2 -2
  116. package/lib/collection/components/duet-collapsible/duet-collapsible.js +15 -6
  117. package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
  118. package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
  119. package/lib/collection/components/duet-grid/duet-grid.js +7 -6
  120. package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
  121. package/lib/collection/components/duet-hero/duet-hero.css +220 -29
  122. package/lib/collection/components/duet-hero/duet-hero.js +10 -6
  123. package/lib/collection/components/duet-icon/duet-icon.js +3 -3
  124. package/lib/collection/components/duet-indicator/duet-indicator.css +46 -0
  125. package/lib/collection/components/duet-indicator/duet-indicator.js +104 -0
  126. package/lib/collection/components/duet-input/duet-input.js +8 -8
  127. package/lib/collection/components/duet-layout/duet-layout.js +5 -5
  128. package/lib/collection/components/duet-link/duet-link.js +2 -2
  129. package/lib/collection/components/duet-list/duet-list.js +1 -1
  130. package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
  131. package/lib/collection/components/duet-logo/duet-logo.js +1 -1
  132. package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +4 -0
  133. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +3 -3
  134. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
  135. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
  136. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
  137. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
  138. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
  139. package/lib/collection/components/duet-modal/duet-modal.js +7 -7
  140. package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
  141. package/lib/collection/components/duet-nav/duet-nav.css +4 -0
  142. package/lib/collection/components/duet-nav/duet-nav.js +1 -1
  143. package/lib/collection/components/duet-notification/duet-notification.css +4 -15
  144. package/lib/collection/components/duet-notification/duet-notification.js +2 -2
  145. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.css +0 -15
  146. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +2 -2
  147. package/lib/collection/components/duet-number-input/duet-number-input.js +2 -2
  148. package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
  149. package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
  150. package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
  151. package/lib/collection/components/duet-panel/duet-panel.css +5 -4
  152. package/lib/collection/components/duet-panel/duet-panel.js +2 -2
  153. package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
  154. package/lib/collection/components/duet-phone-input/duet-phone-input.js +56 -3
  155. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
  156. package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
  157. package/lib/collection/components/duet-radio/duet-radio.js +3 -3
  158. package/lib/collection/components/duet-radio-group/duet-radio-group.js +1 -1
  159. package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
  160. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
  161. package/lib/collection/components/duet-scrollable/duet-scrollable.js +5 -5
  162. package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
  163. package/lib/collection/components/duet-select/duet-select.js +5 -5
  164. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
  165. package/lib/collection/components/duet-share-chart/duet-share-chart.js +2 -2
  166. package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +1 -1
  167. package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
  168. package/lib/collection/components/duet-slideout/duet-slideout.css +26 -19
  169. package/lib/collection/components/duet-slideout/duet-slideout.js +4 -4
  170. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.css +2 -2
  171. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
  172. package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +3 -3
  173. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
  174. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.css +16 -22
  175. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +9 -14
  176. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.css +2 -2
  177. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
  178. package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
  179. package/lib/collection/components/duet-spinner/duet-spinner.js +2 -2
  180. package/lib/collection/components/duet-status-icon/duet-status-icon.js +2 -2
  181. package/lib/collection/components/duet-step/duet-step.js +2 -2
  182. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  183. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +4 -0
  184. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
  185. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
  186. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
  187. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
  188. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
  189. package/lib/collection/components/duet-tab/duet-tab.js +53 -3
  190. package/lib/collection/components/duet-tab-group/duet-tab-group.css +6 -61
  191. package/lib/collection/components/duet-tab-group/duet-tab-group.js +5 -6
  192. package/lib/collection/components/duet-table/duet-table.js +2 -2
  193. package/lib/collection/components/duet-textarea/duet-textarea.js +3 -3
  194. package/lib/collection/components/duet-toggle/duet-toggle.js +2 -2
  195. package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
  196. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
  197. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
  198. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.css +9 -14
  199. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
  200. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
  201. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +3 -3
  202. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
  203. package/lib/collection/components/duet-tray/duet-tray.js +2 -2
  204. package/lib/collection/components/duet-upload/duet-upload.js +2 -2
  205. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
  206. package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
  207. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  208. package/lib/collection/utils/token-utils.js +3 -3
  209. package/lib/duet/duet.esm.js +1 -1
  210. package/lib/duet/{p-4da25e3d.entry.js → p-01a9a47d.entry.js} +1 -1
  211. package/lib/duet/{p-534180fa.entry.js → p-09758ca7.entry.js} +1 -1
  212. package/lib/duet/{p-a745298d.entry.js → p-1206ff96.entry.js} +1 -1
  213. package/lib/duet/{p-84777c03.entry.js → p-12ac4ff1.entry.js} +1 -1
  214. package/lib/duet/{p-dd8216e7.entry.js → p-166bc231.entry.js} +1 -1
  215. package/lib/duet/{p-16f691fd.entry.js → p-16a96348.entry.js} +1 -1
  216. package/lib/duet/{p-ec72f3a2.entry.js → p-1a8da00c.entry.js} +1 -1
  217. package/lib/duet/p-20fa2389.entry.js +4 -0
  218. package/lib/duet/p-22e7cf7d.entry.js +4 -0
  219. package/lib/duet/p-2cdeebb1.entry.js +4 -0
  220. package/lib/duet/{p-88216acf.entry.js → p-2f21ed78.entry.js} +1 -1
  221. package/lib/duet/p-2f8ac3ad.entry.js +4 -0
  222. package/lib/duet/{p-a64da31d.entry.js → p-30035283.entry.js} +1 -1
  223. package/lib/duet/{p-0864a12e.entry.js → p-3208daa6.entry.js} +1 -1
  224. package/lib/duet/{p-f82a2ab7.entry.js → p-34ca9627.entry.js} +1 -1
  225. package/lib/duet/{p-d05bbd77.entry.js → p-35fdce02.entry.js} +1 -1
  226. package/lib/duet/{p-4cd019a5.entry.js → p-3a1c718a.entry.js} +1 -1
  227. package/lib/duet/{p-117970c7.entry.js → p-3a4a486b.entry.js} +1 -1
  228. package/lib/duet/p-41558cfd.entry.js +4 -0
  229. package/lib/duet/{p-a704d617.entry.js → p-447520f5.entry.js} +1 -1
  230. package/lib/duet/p-44e44f11.entry.js +4 -0
  231. package/lib/duet/{p-2d62148e.entry.js → p-49534af3.entry.js} +1 -1
  232. package/lib/duet/{p-0fccda7b.entry.js → p-4e6bc806.entry.js} +1 -1
  233. package/lib/duet/{p-2a563d22.entry.js → p-54dff5d5.entry.js} +1 -1
  234. package/lib/duet/p-5a2e2e55.entry.js +4 -0
  235. package/lib/duet/p-5cd78818.entry.js +4 -0
  236. package/lib/duet/{p-1f9c5d58.entry.js → p-5d626b10.entry.js} +1 -1
  237. package/lib/duet/p-5da18b67.entry.js +4 -0
  238. package/lib/duet/{p-806121b1.entry.js → p-631b16b7.entry.js} +1 -1
  239. package/lib/duet/{p-288da581.entry.js → p-66dc053b.entry.js} +1 -1
  240. package/lib/duet/{p-829482da.entry.js → p-68b125c1.entry.js} +1 -1
  241. package/lib/duet/{p-44deeddc.entry.js → p-6b79244a.entry.js} +1 -1
  242. package/lib/duet/{p-e9886226.entry.js → p-6e1454e9.entry.js} +1 -1
  243. package/lib/duet/{p-8194b05d.entry.js → p-6f710a62.entry.js} +1 -1
  244. package/lib/duet/{p-02ba799f.entry.js → p-787b30fc.entry.js} +1 -1
  245. package/lib/duet/{p-15a7a9be.entry.js → p-78db887a.entry.js} +1 -1
  246. package/lib/duet/{p-d079278e.entry.js → p-7912bc42.entry.js} +1 -1
  247. package/lib/duet/{p-4da439ae.entry.js → p-796eec58.entry.js} +1 -1
  248. package/lib/duet/p-7b718349.entry.js +4 -0
  249. package/lib/duet/{p-66cb6021.entry.js → p-7c3fcd96.entry.js} +1 -1
  250. package/lib/duet/{p-9a7382a4.entry.js → p-7e02804f.entry.js} +1 -1
  251. package/lib/duet/p-8017e834.entry.js +4 -0
  252. package/lib/duet/{p-ecb4e99d.entry.js → p-81992942.entry.js} +1 -1
  253. package/lib/duet/{p-f2ae56b2.entry.js → p-8356498a.entry.js} +1 -1
  254. package/lib/duet/p-87fa61b0.entry.js +4 -0
  255. package/lib/duet/p-882f0aaf.entry.js +4 -0
  256. package/lib/duet/{p-92b13088.entry.js → p-88e2e400.entry.js} +1 -1
  257. package/lib/duet/p-8d3c4a3f.entry.js +4 -0
  258. package/lib/duet/p-8de6d1e2.entry.js +4 -0
  259. package/lib/duet/p-97ba0b31.entry.js +4 -0
  260. package/lib/duet/{p-066f855b.entry.js → p-97bb619b.entry.js} +1 -1
  261. package/lib/duet/p-9ac2964f.entry.js +4 -0
  262. package/lib/duet/{p-34706bbb.entry.js → p-9dd85685.entry.js} +1 -1
  263. package/lib/duet/{p-C-YpEPL-.js → p-BFsh4y5I.js} +1 -1
  264. package/lib/duet/{p-DoTAjqzf.js → p-BVUumLs-.js} +1 -1
  265. package/lib/duet/{p-BPFqbaxm.js → p-BfHFKBVa.js} +1 -1
  266. package/lib/duet/p-D3JjrjH_.js +4 -0
  267. package/lib/duet/{p-BkHWWyft.js → p-D4WDSjzx.js} +1 -1
  268. package/lib/duet/p-DEF77zC7.js +4 -0
  269. package/lib/duet/p-DeH5mj7m.js +4 -0
  270. package/lib/duet/p-Do6ugHz0.js +4 -0
  271. package/lib/duet/{p-C2xFZ1pZ.js → p-Yh6R_0l1.js} +1 -1
  272. package/lib/duet/{p-6fa7de01.entry.js → p-a1442533.entry.js} +1 -1
  273. package/lib/duet/{p-23475050.entry.js → p-abd2d2e5.entry.js} +1 -1
  274. package/lib/duet/p-adf33c50.entry.js +4 -0
  275. package/lib/duet/{p-4c118ad6.entry.js → p-b88c7286.entry.js} +1 -1
  276. package/lib/duet/{p-148b6203.entry.js → p-b9125a20.entry.js} +1 -1
  277. package/lib/duet/{p-d71a366e.entry.js → p-b942ee5a.entry.js} +1 -1
  278. package/lib/duet/{p-8625d3ce.entry.js → p-bd08aba8.entry.js} +1 -1
  279. package/lib/duet/p-be077745.entry.js +4 -0
  280. package/lib/duet/{p-433a9f98.entry.js → p-c084c91d.entry.js} +1 -1
  281. package/lib/duet/{p-ad08429f.entry.js → p-c43dc2fd.entry.js} +1 -1
  282. package/lib/duet/{p-15859eb3.entry.js → p-c9ef3dfc.entry.js} +1 -1
  283. package/lib/duet/p-c9fd65ce.entry.js +4 -0
  284. package/lib/duet/{p-0e15fd30.entry.js → p-caf2cab9.entry.js} +1 -1
  285. package/lib/duet/{p-babe244b.entry.js → p-cb78347a.entry.js} +1 -1
  286. package/lib/duet/p-cc343a6c.entry.js +4 -0
  287. package/lib/duet/p-d0cc1c5b.entry.js +4 -0
  288. package/lib/duet/{p-e9becc58.entry.js → p-d83d4c83.entry.js} +1 -1
  289. package/lib/duet/{p-22641f21.entry.js → p-d93c2be4.entry.js} +1 -1
  290. package/lib/duet/{p-5fdfb13d.entry.js → p-daa8f255.entry.js} +1 -1
  291. package/lib/duet/{p-4a325ef1.entry.js → p-dd8692cb.entry.js} +1 -1
  292. package/lib/duet/{p-2f150cd4.entry.js → p-ddbdbe11.entry.js} +1 -1
  293. package/lib/duet/{p-78a9b684.entry.js → p-ea979f26.entry.js} +1 -1
  294. package/lib/duet/p-eab48b73.entry.js +4 -0
  295. package/lib/duet/p-ee38050b.entry.js +4 -0
  296. package/lib/duet/p-f0076621.entry.js +4 -0
  297. package/lib/duet/p-f2b7be73.entry.js +4 -0
  298. package/lib/duet/{p-6b2697ad.entry.js → p-f30823aa.entry.js} +1 -1
  299. package/lib/duet/p-f78c747f.entry.js +4 -0
  300. package/lib/duet/p-fc2d3b85.entry.js +4 -0
  301. package/lib/duet/{p-6dca8f77.entry.js → p-fcc4cd08.entry.js} +1 -1
  302. package/lib/duet/{p-9440a479.entry.js → p-fdab5c0b.entry.js} +1 -1
  303. package/lib/duet/{p-5a6fd350.entry.js → p-fec4da8c.entry.js} +1 -1
  304. package/lib/duet/{p-62df87ea.entry.js → p-ff169773.entry.js} +1 -1
  305. package/lib/duet/{p-D5MfS1RP.js → p-x84EsPoI.js} +1 -1
  306. package/lib/esm/{a11y-utils-C6cn5C3e.js → a11y-utils-CRHgvsu9.js} +1 -1
  307. package/lib/esm/{app-globals-CcxHDwb4.js → app-globals-CYQv_sg4.js} +1 -1
  308. package/lib/esm/duet-action-button.entry.js +4 -4
  309. package/lib/esm/duet-alert.entry.js +4 -4
  310. package/lib/esm/duet-badge.entry.js +5 -5
  311. package/lib/esm/duet-banner.entry.js +20 -9
  312. package/lib/esm/duet-breadcrumb.entry.js +11 -20
  313. package/lib/esm/duet-breadcrumbs.entry.js +7 -7
  314. package/lib/esm/duet-button_2.entry.js +7 -7
  315. package/lib/esm/duet-callout.entry.js +5 -5
  316. package/lib/esm/duet-caption_4.entry.js +10 -10
  317. package/lib/esm/duet-card.entry.js +5 -5
  318. package/lib/esm/duet-checkbox.entry.js +2 -2
  319. package/lib/esm/duet-checkmark.entry.js +4 -4
  320. package/lib/esm/duet-chip.entry.js +4 -4
  321. package/lib/esm/duet-choice_2.entry.js +7 -7
  322. package/lib/esm/duet-collapsible.entry.js +17 -8
  323. package/lib/esm/duet-combobox.entry.js +4 -4
  324. package/lib/esm/duet-contact-card.entry.js +5 -5
  325. package/lib/esm/duet-cookie-consent.entry.js +2 -2
  326. package/lib/esm/duet-date-picker.entry.js +6 -6
  327. package/lib/esm/duet-divider_2.entry.js +4 -4
  328. package/lib/esm/duet-editable-table_3.entry.js +9 -9
  329. package/lib/esm/duet-empty-state.entry.js +2 -2
  330. package/lib/esm/duet-fieldset.entry.js +6 -6
  331. package/lib/esm/duet-file-chooser.entry.js +2 -2
  332. package/lib/esm/duet-footer.entry.js +4 -4
  333. package/lib/esm/duet-grid_2.entry.js +11 -10
  334. package/lib/esm/duet-header_2.entry.js +5 -5
  335. package/lib/esm/duet-hero.entry.js +15 -11
  336. package/lib/esm/duet-icon.entry.js +6 -6
  337. package/lib/esm/duet-indicator.entry.js +51 -0
  338. package/lib/esm/duet-input_2.entry.js +12 -12
  339. package/lib/esm/duet-layout.entry.js +7 -7
  340. package/lib/esm/duet-list_2.entry.js +5 -5
  341. package/lib/esm/duet-menu-bar-button.entry.js +4 -4
  342. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +4 -4
  343. package/lib/esm/duet-menu-bar-dropdown.entry.js +6 -6
  344. package/lib/esm/duet-menu-bar-item.entry.js +7 -7
  345. package/lib/esm/duet-menu-bar-link.entry.js +4 -4
  346. package/lib/esm/duet-menu-bar.entry.js +7 -7
  347. package/lib/esm/duet-modal.entry.js +13 -13
  348. package/lib/esm/duet-multiselect.entry.js +10 -10
  349. package/lib/esm/duet-nav.entry.js +4 -4
  350. package/lib/esm/duet-notification_2.entry.js +9 -9
  351. package/lib/esm/duet-number-input.entry.js +6 -6
  352. package/lib/esm/duet-overlay.entry.js +3 -3
  353. package/lib/esm/duet-page-heading.entry.js +4 -4
  354. package/lib/esm/duet-pagination_2.entry.js +17 -17
  355. package/lib/esm/duet-panel.entry.js +5 -5
  356. package/lib/esm/duet-phone-input.entry.js +22 -7
  357. package/lib/esm/duet-popup-menu_2.entry.js +6 -6
  358. package/lib/esm/duet-progress.entry.js +3 -3
  359. package/lib/esm/duet-promo-card.entry.js +6 -6
  360. package/lib/esm/duet-radio_2.entry.js +7 -7
  361. package/lib/esm/duet-range-slider.entry.js +6 -6
  362. package/lib/esm/duet-scrollable_3.entry.js +21 -19
  363. package/lib/esm/duet-section-layout.entry.js +4 -4
  364. package/lib/esm/duet-select.entry.js +9 -9
  365. package/lib/esm/duet-shaped-image.entry.js +4 -4
  366. package/lib/esm/duet-share-chart-item.entry.js +2 -2
  367. package/lib/esm/duet-share-chart.entry.js +7 -7
  368. package/lib/esm/duet-show-more.entry.js +5 -5
  369. package/lib/esm/duet-slideout-lang.entry.js +5 -5
  370. package/lib/esm/duet-slideout-link.entry.js +8 -8
  371. package/lib/esm/duet-slideout-panel-dropdown.entry.js +7 -7
  372. package/lib/esm/duet-slideout-panel.entry.js +15 -20
  373. package/lib/esm/duet-slideout.entry.js +11 -11
  374. package/lib/esm/duet-status-icon.entry.js +3 -3
  375. package/lib/esm/duet-step_2.entry.js +6 -6
  376. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +4 -4
  377. package/lib/esm/duet-submenu-bar-dropdown.entry.js +6 -6
  378. package/lib/esm/duet-submenu-bar-item.entry.js +6 -6
  379. package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
  380. package/lib/esm/duet-submenu-bar.entry.js +8 -8
  381. package/lib/esm/duet-textarea.entry.js +8 -8
  382. package/lib/esm/duet-toggle.entry.js +6 -6
  383. package/lib/esm/duet-toolbar-dropdown-link.entry.js +4 -4
  384. package/lib/esm/duet-toolbar-dropdown.entry.js +6 -6
  385. package/lib/esm/duet-toolbar-item.entry.js +9 -9
  386. package/lib/esm/duet-toolbar-link.entry.js +4 -4
  387. package/lib/esm/duet-toolbar.entry.js +4 -4
  388. package/lib/esm/duet-tooltip-button_2.entry.js +8 -8
  389. package/lib/esm/duet-tooltip.entry.js +4 -4
  390. package/lib/esm/duet-tray.entry.js +5 -5
  391. package/lib/esm/duet-upload-aria-status.entry.js +2 -2
  392. package/lib/esm/duet-upload-item.entry.js +6 -6
  393. package/lib/esm/duet-visually-hidden.entry.js +2 -2
  394. package/lib/esm/duet.js +4 -4
  395. package/lib/esm/{errorcodes.utils-CEyBUBSM.js → errorcodes.utils-MZm5Z6Ra.js} +1 -1
  396. package/lib/esm/{focus-utils-BhO5oz9w.js → focus-utils-CrtNnjPR.js} +1 -1
  397. package/lib/esm/{index-BPFqbaxm.js → index-BfHFKBVa.js} +5 -1
  398. package/lib/esm/{label-BGqhM4kx.js → label-BewTofiP.js} +1 -1
  399. package/lib/esm/{language-utils-CNMTW_pZ.js → language-utils-BvGD3xAJ.js} +1 -1
  400. package/lib/esm/loader.js +4 -4
  401. package/lib/esm/{slot-utils-BABbKvvc.js → slot-utils-QOcACBKy.js} +1 -1
  402. package/lib/esm/{themeable-component-Csv1RXxf.js → themeable-component-D9rAA2iK.js} +1 -1
  403. package/lib/esm/{token-utils-BGFYWQ6j.js → token-utils-C-c-tsXV.js} +7 -4
  404. package/lib/types/components/duet-banner/duet-banner.d.ts +2 -0
  405. package/lib/types/components/duet-breadcrumbs/duet-breadcrumb.d.ts +2 -4
  406. package/lib/types/components/duet-hero/duet-hero.d.ts +1 -0
  407. package/lib/types/components/duet-indicator/duet-indicator.d.ts +17 -0
  408. package/lib/types/components/duet-input/duet-input.d.ts +0 -2
  409. package/lib/types/components/duet-phone-input/duet-phone-input.d.ts +14 -0
  410. package/lib/types/components/duet-tab/duet-tab.d.ts +10 -0
  411. package/lib/types/components.d.ts +77 -10
  412. package/package.json +3 -3
  413. package/lib/duet/p-0964b56d.entry.js +0 -4
  414. package/lib/duet/p-1ec554c6.entry.js +0 -4
  415. package/lib/duet/p-4c37165a.entry.js +0 -4
  416. package/lib/duet/p-4fc62376.entry.js +0 -4
  417. package/lib/duet/p-57165bf0.entry.js +0 -4
  418. package/lib/duet/p-5bfa5e5d.entry.js +0 -4
  419. package/lib/duet/p-6fdb09d1.entry.js +0 -4
  420. package/lib/duet/p-7b849d35.entry.js +0 -4
  421. package/lib/duet/p-7c1e8291.entry.js +0 -4
  422. package/lib/duet/p-7f0aa937.entry.js +0 -4
  423. package/lib/duet/p-804b326c.entry.js +0 -4
  424. package/lib/duet/p-98aa7ac5.entry.js +0 -4
  425. package/lib/duet/p-9c838ec0.entry.js +0 -4
  426. package/lib/duet/p-B5RO_CRT.js +0 -4
  427. package/lib/duet/p-CwVyzidG.js +0 -4
  428. package/lib/duet/p-DixsuovU.js +0 -4
  429. package/lib/duet/p-Dr2j33H2.js +0 -4
  430. package/lib/duet/p-ad3d8ac8.entry.js +0 -4
  431. package/lib/duet/p-b1f362dc.entry.js +0 -4
  432. package/lib/duet/p-b9acaca1.entry.js +0 -4
  433. package/lib/duet/p-c35c9198.entry.js +0 -4
  434. package/lib/duet/p-c62aeb2e.entry.js +0 -4
  435. package/lib/duet/p-c8a66d4b.entry.js +0 -4
  436. package/lib/duet/p-cfd5c934.entry.js +0 -4
  437. package/lib/duet/p-d110954d.entry.js +0 -4
  438. package/lib/duet/p-d92c5cfa.entry.js +0 -4
  439. package/lib/duet/p-dbab30ea.entry.js +0 -4
  440. package/lib/duet/p-e18a1599.entry.js +0 -4
  441. package/lib/duet/p-e76051c3.entry.js +0 -4
  442. package/lib/duet/p-f51c072f.entry.js +0 -4
  443. package/lib/duet/p-f82079f2.entry.js +0 -4
@@ -1,5 +1,5 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- const t="duet",e={cdnURIProd:"https://cdn.duetds.com/api",duetIconVersion:"4.2.5"};var n=Object.defineProperty,o={isServer:!1},l=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(l||{}),s=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(s||{}),r="type",i="value",c="serialized:",u=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},f=(t,e)=>{t.__stencil__getHostRef=()=>e,e.t=t},a=(t,e)=>e in t,d=(t,e)=>(0,console.error)(t,e),h=new Map,p=new Map,v="s-id",$="sty-id",m="c-id",b="slot-fb{display:contents}slot-fb[hidden]{display:none}",y="http://www.w3.org/1999/xlink",g="undefined"!=typeof window?window:{},w={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},S=t=>Promise.resolve(t),j=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),O=!!j&&(()=>!!g.document&&Object.getOwnPropertyDescriptor(g.document.adoptedStyleSheets,"length").writable)(),k=!1,x=[],N=[],E=(t,e)=>n=>{t.push(n),k||(k=!0,e&&4&w.o?M(I):w.raf(I))},C=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){d(t)}t.length=0},I=()=>{C(x),C(N),(k=x.length>0)&&w.raf(I)},M=t=>S().then(t),R=E(N,!0),T=t=>"object"==(t=typeof t)||"function"===t;function L(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var P=class t{static fromLocalValue(e){const n=e[r],o=i in e?e[i]:void 0;switch(n){case"string":case"boolean":return o;case"bigint":return BigInt(o);case"undefined":return;case"null":return null;case"number":return"NaN"===o?NaN:"-0"===o?-0:"Infinity"===o?1/0:"-Infinity"===o?-1/0:o;case"array":return o.map((e=>t.fromLocalValue(e)));case"date":return new Date(o);case"map":const e=new Map;for(const[n,l]of o){const o="object"==typeof n&&null!==n?t.fromLocalValue(n):n,s=t.fromLocalValue(l);e.set(o,s)}return e;case"object":const l={};for(const[e,n]of o)l[e]=t.fromLocalValue(n);return l;case"regexp":const{pattern:s,flags:r}=o;return RegExp(s,r);case"set":const i=new Set;for(const e of o)i.add(t.fromLocalValue(e));return i;case"symbol":return Symbol(o);default:throw Error("Unsupported type: "+n)}}static fromLocalValueArray(e){return e.map((e=>t.fromLocalValue(e)))}static isLocalValueObject(t){if("object"!=typeof t||null===t)return!1;if(!t.hasOwnProperty(r))return!1;const e=t[r];return!!Object.values({...l,...s}).includes(e)&&("null"===e||"undefined"===e||t.hasOwnProperty(i))}};((t,e)=>{for(var o in e)n(t,o,{get:e[o],enumerable:!0})})({},{err:()=>F,map:()=>U,ok:()=>A,unwrap:()=>D,unwrapErr:()=>_});var A=t=>({isOk:!0,isErr:!1,value:t}),F=t=>({isOk:!1,isErr:!0,value:t});function U(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>A(t))):A(n)}if(t.isErr)return F(t.value);throw"should never get here"}var B,D=t=>{if(t.isOk)return t.value;throw t.value},_=t=>{if(t.isErr)return t.value;throw t.value};function V(t){const e=this.attachShadow({mode:"open",delegatesFocus:!!(16&t.o)});void 0===B&&(B=null),B&&(O?e.adoptedStyleSheets.push(B):e.adoptedStyleSheets=[...e.adoptedStyleSheets,B])}var W=t=>{const e=et(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&z(e,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!q(t,G(t),!1).length)}));let n=0;for(n=0;n<e.length;n++){const t=e[n];1===t.nodeType&&et(t,"childNodes").length&&W(t)}},H=t=>{const e=[];for(let n=0;n<t.length;n++){const o=t[n]["s-nr"]||void 0;o&&o.isConnected&&e.push(o)}return e};function z(t,e,n){let o,l=0,s=[];for(;l<t.length;l++)o=t[l],!o["s-sr"]||e&&o["s-hn"]!==e||void 0!==n||s.push(o),s=[...s,...z(o.childNodes,e,n)];return s}var q=(t,e,n=!0)=>{const o=[];(n&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)G(l)!==e||!n&&l["s-sr"]||o.push(l);return o},J=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,Y=(t,e,n,o)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const l=document.createTextNode("");if(l["s-nr"]=t,!e["s-cr"]||!e["s-cr"].parentNode)return;const s=e["s-cr"].parentNode,r=et(s,"appendChild");if(void 0!==o){l["s-oo"]=o;const t=et(s,"childNodes"),e=[l];t.forEach((t=>{t["s-nr"]&&e.push(t)})),e.sort(((t,e)=>!t["s-oo"]||t["s-oo"]<(e["s-oo"]||0)?-1:!e["s-oo"]||e["s-oo"]<t["s-oo"]?1:0)),e.forEach((t=>r.call(s,t)))}else r.call(s,l);t["s-ol"]=l,t["s-sh"]=e["s-hn"]},G=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function K(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:H(l.childNodes)).forEach((t=>{o===G(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}var Q=t=>{class e extends Array{item(t){return this[t]}}tt("children",t),Object.defineProperty(t,"children",{get(){return this.childNodes.filter((t=>1===t.nodeType))}}),Object.defineProperty(t,"childElementCount",{get(){return this.children.length}}),tt("firstChild",t),Object.defineProperty(t,"firstChild",{get(){return this.childNodes[0]}}),tt("lastChild",t),Object.defineProperty(t,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]}}),tt("childNodes",t),Object.defineProperty(t,"childNodes",{get(){const t=new e;return t.push(...H(this.__childNodes)),t}})},X=["children","nextElementSibling","previousElementSibling"],Z=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function tt(t,e){if(!globalThis.Node||!globalThis.Element)return;let n;X.includes(t)?n=Object.getOwnPropertyDescriptor(Element.prototype,t):Z.includes(t)&&(n=Object.getOwnPropertyDescriptor(Node.prototype,t)),n||(n=Object.getOwnPropertyDescriptor(e,t)),n&&Object.defineProperty(e,"__"+t,n)}function et(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var nt=new WeakMap,ot=(t,e,n)=>{let o=p.get(t);j&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,p.set(t,o)},lt=(t,e)=>{var n;const o=st(e),l=p.get(o);if(!g.document)return o;if(t=11===t.nodeType?t:g.document,l)if("string"==typeof l){let s,r=nt.get(t=t.head||t);if(r||nt.set(t,r=new Set),!r.has(o)){if(t.host&&(s=t.querySelector(`[${$}="${o}"]`)))s.innerHTML=l;else{s=g.document.createElement("style"),s.innerHTML=l;const o=null!=(n=w.i)?n:L(g.document);if(null!=o&&s.setAttribute("nonce",o),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(j){const e=new CSSStyleSheet;e.replaceSync(l),O?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=b),r&&r.add(o)}}else t.adoptedStyleSheets.includes(l)||(O?t.adoptedStyleSheets.push(l):t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o},st=t=>"sc-"+t.u,rt=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),it=(t,e,...n)=>{let o=null,l=null,s=null,r=!1,i=!1;const c=[],u=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((r="function"!=typeof t&&!T(o))&&(o+=""),r&&i?c[c.length-1].h+=o:c.push(r?ct(null,o):o),i=r)};if(u(n),e){e.key&&(l=e.key),e.name&&(s=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,ft);const f=ct(t,null);return f.p=e,c.length>0&&(f.v=c),f.$=l,f.m=s,f},ct=(t,e)=>({o:0,S:t,h:e,j:null,v:null,p:null,$:null,m:null}),ut={},ft={forEach:(t,e)=>t.map(at).forEach(e),map:(t,e)=>t.map(at).map(e).map(dt)},at=t=>({vattrs:t.p,vchildren:t.v,vkey:t.$,vname:t.m,vtag:t.S,vtext:t.h}),dt=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),it(t.vtag,e,...t.vchildren||[])}const e=ct(t.vtag,t.vtext);return e.p=t.vattrs,e.v=t.vchildren,e.$=t.vkey,e.m=t.vname,e},ht=(t,e,n,o,l,s,r,i=[])=>{let c,u,f,a;const d=l["s-sc"];if(1===s.nodeType){if(c=s.getAttribute(m),c&&(u=c.split("."),u[0]===r||"0"===u[0])){f=vt({o:0,O:u[0],k:u[1],N:u[2],C:u[3],S:s.tagName.toLowerCase(),j:s,p:{class:s.className||""}}),e.push(f),s.removeAttribute(m),t.v||(t.v=[]),d&&u[0]===r&&(s["s-si"]=d,f.p.class+=" "+d);const l=f.j.getAttribute("s-sn");"string"==typeof l&&("slot-fb"===f.S&&($t(l,u[2],f,s,t,e,n,o,i),d&&s.classList.add(d)),f.j["s-sn"]=l,f.j.removeAttribute("s-sn")),void 0!==f.C&&(t.v[f.C]=f),t=f,o&&"0"===f.N&&(o[f.C]=f.j)}if(s.shadowRoot)for(a=s.shadowRoot.childNodes.length-1;a>=0;a--)ht(t,e,n,o,l,s.shadowRoot.childNodes[a],r,i);const h=s.__childNodes||s.childNodes;for(a=h.length-1;a>=0;a--)ht(t,e,n,o,l,h[a],r,i)}else if(8===s.nodeType)u=s.nodeValue.split("."),(u[1]===r||"0"===u[1])&&(c=u[0],f=vt({O:u[1],k:u[2],N:u[3],C:u[4]||"0",j:s,p:null,v:null,$:null,m:null,S:null,h:null}),"t"===c?(f.j=bt(s,3),f.j&&3===f.j.nodeType&&(f.h=f.j.textContent,e.push(f),s.remove(),r===f.O&&(t.v||(t.v=[]),t.v[f.C]=f),o&&"0"===f.N&&(o[f.C]=f.j))):"c"===c?(f.j=bt(s,8),f.j&&8===f.j.nodeType&&(e.push(f),s.remove())):f.O===r&&("s"===c?$t(s["s-sn"]=u[5]||"",u[2],f,s,t,e,n,o,i):"r"===c&&(o?s.remove():(l["s-cr"]=s,s["s-cn"]=!0))));else if(t&&"style"===t.S){const e=ct(null,s.textContent);e.j=s,e.C="0",t.v=[e]}else 3!==s.nodeType||s.wholeText.trim()||s["s-nr"]||s.remove();return t},pt=(t,e)=>{if(1===t.nodeType){const n=t[v]||t.getAttribute(v);n&&e.set(n,t);let o=0;if(t.shadowRoot)for(;o<t.shadowRoot.childNodes.length;o++)pt(t.shadowRoot.childNodes[o],e);const l=t.__childNodes||t.childNodes;for(o=0;o<l.length;o++)pt(l[o],e)}else if(8===t.nodeType){const n=t.nodeValue.split(".");"o"===n[0]&&(e.set(n[1]+"."+n[2],t),t.nodeValue="",t["s-en"]=n[3])}},vt=t=>({o:0,O:null,k:null,N:null,C:"0",j:null,p:null,v:null,$:null,m:null,S:null,h:null,...t});function $t(t,e,n,o,l,s,r,i,c){o["s-sr"]=!0,n.m=t||null,n.S="slot";const u=(null==l?void 0:l.j)?l.j["s-id"]||l.j.getAttribute("s-id"):"";if(i&&g.document){const s=n.j=g.document.createElement(n.S);n.m&&n.j.setAttribute("name",t),l.j.shadowRoot&&u&&u!==n.O?et(l.j,"insertBefore")(s,et(l.j,"children")[0]):et(et(o,"parentNode"),"insertBefore")(s,o),mt(c,e,t,o,n.O),o.remove(),"0"===n.N&&(i[n.C]=n.j)}else{const s=n.j,r=u&&u!==n.O&&l.j.shadowRoot;mt(c,e,t,o,r?u:n.O),K(o),r&&l.j.insertBefore(s,l.j.children[0])}s.push(n),r.push(n),l.v||(l.v=[]),l.v[n.C]=n}var mt=(t,e,n,o,l)=>{var s,r;let i=o.nextSibling;if(t[e]=t[e]||[],i&&!(null==(s=i.nodeValue)?void 0:s.startsWith("s.")))do{!i||(i.getAttribute&&i.getAttribute("slot")||i["s-sn"])!==n&&(""!==n||i["s-sn"]||i.getAttribute&&i.getAttribute("slot")||8!==i.nodeType&&3!==i.nodeType)||(i["s-sn"]=n,t[e].push({slot:o,node:i,hostId:l})),i=null==i?void 0:i.nextSibling}while(i&&!(null==(r=i.nodeValue)?void 0:r.startsWith("s.")))},bt=(t,e)=>{let n=t;do{n=n.nextSibling}while(n&&(n.nodeType!==e||!n.nodeValue));return n},yt=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};yt("::slotted"),yt(":host"),yt(":host-context");var gt,wt,St,jt=(t,e)=>{if("string"==typeof t&&t.startsWith(c))return function(t){return"string"==typeof t&&t.startsWith(c)?P.fromLocalValue(JSON.parse(atob(t.slice(11)))):t}(t);if("string"==typeof t&&(16&e||8&e)&&(t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]")))try{return JSON.parse(t)}catch(t){}return null==t||T(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t},Ot=t=>{var e;return null==(e=u(t))?void 0:e.$hostElement$},kt=(t,e,n)=>{const o=Ot(t);return{emit:t=>xt(o,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},xt=(t,e,n)=>{const o=w.ce(e,n);return t.dispatchEvent(o),o},Nt=(t,e,n,o,l,s,r)=>{if(n===o)return;let i=a(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=Ct(n);let s=Ct(o);if((t["s-si"]||t["s-sc"])&&r){const n=t["s-sc"]||t["s-si"];s.push(n),l.forEach((t=>{t.startsWith(n)&&s.push(t)})),s=[...new Set(s)].filter((t=>t)),e.add(...s)}else e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&o(t);else if(i||"o"!==e[0]||"n"!==e[1]){const r=T(o);if((i||r&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}let u=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,u=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(e)||(u?t.removeAttributeNS(y,e):t.removeAttribute(e)):(!i||4&s||l)&&!r&&1===t.nodeType&&(o=!0===o?"":o,u?t.setAttributeNS(y,e,o):t.setAttribute(e,o))}else if(e="-"===e[2]?e.slice(3):a(g,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(It);e=e.replace(Mt,""),n&&w.rel(t,e,n,l),o&&w.ael(t,e,o,l)}},Et=/\s/,Ct=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(Et):[]),It="Capture",Mt=RegExp(It+"$"),Rt=(t,e,n,o)=>{const l=11===e.j.nodeType&&e.j.host?e.j.host:e.j,s=t&&t.p||{},r=e.p||{};for(const t of Tt(Object.keys(s)))t in r||Nt(l,t,s[t],void 0,n,e.o,o);for(const t of Tt(Object.keys(r)))Nt(l,t,s[t],r[t],n,e.o,o)};function Tt(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Lt=!1,Pt=!1,At=!1,Ft=!1,Ut=(t,e,n)=>{var o;const l=e.v[n];let s,r,i,c=0;if(Lt||(At=!0,"slot"===l.S&&(l.o|=l.v?2:1)),null!==l.h)s=l.j=g.document.createTextNode(l.h);else if(1&l.o)s=l.j=g.document.createTextNode(""),Rt(null,l,Ft);else{if(Ft||(Ft="svg"===l.S),!g.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(s=l.j=g.document.createElementNS(Ft?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Lt&&2&l.o?"slot-fb":l.S),Ft&&"foreignObject"===l.S&&(Ft=!1),Rt(null,l,Ft),null!=gt&&void 0!==gt&&s["s-si"]!==gt&&s.classList.add(s["s-si"]=gt),l.v)for(c=0;c<l.v.length;++c)r=Ut(t,l,c),r&&s.appendChild(r);"svg"===l.S?Ft=!1:"foreignObject"===s.tagName&&(Ft=!0)}return s["s-hn"]=St,3&l.o&&(s["s-sr"]=!0,s["s-cr"]=wt,s["s-sn"]=l.m||"",s["s-rf"]=null==(o=l.p)?void 0:o.ref,K(s),i=t&&t.v&&t.v[n],i&&i.S===l.S&&t.j&&Bt(t.j,!1),Gt(wt,s,e.j,null==t?void 0:t.j)),s},Bt=(t,e)=>{w.o|=1;const n=Array.from(t.__childNodes||t.childNodes);for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==St&&o["s-ol"]&&(Yt(Wt(o).parentNode,o,Wt(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,At=!0),e&&Bt(o,e)}w.o&=-2},Dt=(t,e,n,o,l,s)=>{let r,i=t["s-cr"]&&t["s-cr"].parentNode||t;for(i.shadowRoot&&i.tagName===St&&(i=i.shadowRoot);l<=s;++l)o[l]&&(r=Ut(null,n,l),r&&(o[l].j=r,Yt(i,r,Wt(e))))},_t=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.j;Jt(e),t&&(Pt=!0,t["s-ol"]?t["s-ol"].remove():Bt(t,!0),t.remove())}}},Vt=(t,e,n=!1)=>t.S===e.S&&("slot"===t.S?t.m===e.m:n?(n&&!t.$&&e.$&&(t.$=e.$),!0):t.$===e.$),Wt=t=>t&&t["s-ol"]||t,Ht=(t,e,n=!1)=>{const o=e.j=t.j,l=t.v,s=e.v,r=e.S,i=e.h;let c;null===i?(Rt(t,e,Ft="svg"===r||"foreignObject"!==r&&Ft,n),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,r,i=0,c=0,u=0,f=0,a=e.length-1,d=e[0],h=e[a],p=o.length-1,v=o[0],$=o[p];for(;i<=a&&c<=p;)if(null==d)d=e[++i];else if(null==h)h=e[--a];else if(null==v)v=o[++c];else if(null==$)$=o[--p];else if(Vt(d,v,l))Ht(d,v,l),d=e[++i],v=o[++c];else if(Vt(h,$,l))Ht(h,$,l),h=e[--a],$=o[--p];else if(Vt(d,$,l))"slot"!==d.S&&"slot"!==$.S||Bt(d.j.parentNode,!1),Ht(d,$,l),Yt(t,d.j,h.j.nextSibling),d=e[++i],$=o[--p];else if(Vt(h,v,l))"slot"!==d.S&&"slot"!==$.S||Bt(h.j.parentNode,!1),Ht(h,v,l),Yt(t,h.j,d.j),h=e[--a],v=o[++c];else{for(u=-1,f=i;f<=a;++f)if(e[f]&&null!==e[f].$&&e[f].$===v.$){u=f;break}u>=0?(r=e[u],r.S!==v.S?s=Ut(e&&e[c],n,u):(Ht(r,v,l),e[u]=void 0,s=r.j),v=o[++c]):(s=Ut(e&&e[c],n,c),v=o[++c]),s&&Yt(Wt(d.j).parentNode,s,Wt(d.j))}i>a?Dt(t,null==o[p+1]?null:o[p+1].j,n,o,c,p):c>p&&_t(e,i,a)})(o,l,e,s,n):null!==s?(null!==t.h&&(o.textContent=""),Dt(o,null,e,s,0,s.length-1)):n||null===l?n&&null!==l&&null===s&&(e.v=l):_t(l,0,l.length-1),Ft&&"svg"===r&&(Ft=!1)):(c=o["s-cr"])?c.parentNode.textContent=i:t.h!==i&&(o.data=i)},zt=[],qt=t=>{let e,n,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const l=t["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"])if(J(e,l)){let n=zt.find((t=>t.I===e));Pt=!0,e["s-sn"]=e["s-sn"]||l,n?(n.I["s-sh"]=t["s-hn"],n.M=t):(e["s-sh"]=t["s-hn"],zt.push({M:t,I:e})),e["s-sr"]&&zt.map((t=>{J(t.I,e["s-sn"])&&(n=zt.find((t=>t.I===e)),n&&!t.M&&(t.M=n.M))}))}else zt.some((t=>t.I===e))||zt.push({I:e})}1===t.nodeType&&qt(t)}},Jt=t=>{t.p&&t.p.ref&&t.p.ref(null),t.v&&t.v.map(Jt)},Yt=(t,e,n)=>("string"==typeof e["s-sn"]&&e["s-sr"]&&e["s-cr"]&&Gt(e["s-cr"],e,t,e.parentElement),null==t?void 0:t.insertBefore(e,n));function Gt(t,e,n,o){var l,s;let r;if(t&&"string"==typeof e["s-sn"]&&e["s-sr"]&&t.parentNode&&t.parentNode["s-sc"]&&(r=e["s-si"]||t.parentNode["s-sc"])){const t=e["s-sn"],i=e["s-hn"];if(null==(l=n.classList)||l.add(r+"-s"),o&&(null==(s=o.classList)?void 0:s.contains(r+"-s"))){let e=(o.__childNodes||o.childNodes)[0],n=!1;for(;e;){if(e["s-sn"]!==t&&e["s-hn"]===i&&e["s-sr"]){n=!0;break}e=e.nextSibling}n||o.classList.remove(r+"-s")}}}var Kt=(t,e)=>{if(e&&!t.R&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.R=()=>{e["s-p"].splice(n-1,1),o()})))}},Qt=(t,e)=>{if(t.o|=16,4&t.o)return void(t.o|=512);Kt(t,t.T);const n=()=>Xt(t,e);if(!e)return R(n);queueMicrotask((()=>{n()}))},Xt=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return e?(t.o|=256,t.L&&(t.L.map((([t,e])=>se(o,t,e,n))),t.L=void 0),l=se(o,"componentWillLoad",void 0,n)):l=se(o,"componentWillUpdate",void 0,n),l=Zt(l,(()=>se(o,"componentWillRender",void 0,n))),Zt(l,(()=>ee(t,o,e)))},Zt=(t,e)=>te(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),te=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,ee=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.P,n=t.$hostElement$,o=e.o,l=lt(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);ne(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>oe(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},ne=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{var o,l,s,r;const i=t.$hostElement$,c=t.P,u=t.A||ct(null,null),f=(t=>t&&t.S===ut)(e)?e:it(null,null,e);if(St=i.tagName,c.F&&(f.p=f.p||{},c.F.map((([t,e])=>f.p[e]=i[t]))),n&&f.p)for(const t of Object.keys(f.p))i.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(f.p[t]=i[t]);if(f.S=null,f.o|=4,t.A=f,f.j=u.j=i.shadowRoot||i,gt=i["s-sc"],Lt=!(!(1&c.o)||128&c.o),wt=i["s-cr"],Pt=!1,Ht(u,f,n),w.o|=1,At){qt(f.j);for(const t of zt){const e=t.I;if(!e["s-ol"]&&g.document){const t=g.document.createTextNode("");t["s-nr"]=e,Yt(e.parentNode,e["s-ol"]=t,e)}}for(const t of zt){const e=t.I,i=t.M;if(i){const t=i.parentNode;let n=i.nextSibling;{let s=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===e["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===e||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}(!n&&t!==(e.__parentNode||e.parentNode)||(e.__nextSibling||e.nextSibling)!==n)&&e!==n&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),Yt(t,e,n),1===e.nodeType&&"SLOT-FB"!==e.tagName&&(e.hidden=null!=(s=e["s-ih"])&&s)),e&&"function"==typeof i["s-rf"]&&i["s-rf"](i)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(r=e.hidden)&&r),e.hidden=!0)}}Pt&&W(f.j),w.o&=-2,zt.length=0,wt=void 0})(t,e,o)}catch(e){d(e,t.$hostElement$)}return null},oe=t=>{const e=t.$hostElement$,n=t.t,o=t.T;se(n,"componentDidRender",void 0,e),64&t.o?se(n,"componentDidUpdate",void 0,e):(t.o|=64,re(e),se(n,"componentDidLoad",void 0,e),t.U(e),o||le()),t.B(e),t.R&&(t.R(),t.R=void 0),512&t.o&&M((()=>Qt(t,!1))),t.o&=-517},le=()=>{var e;M((()=>xt(g,"appload",{detail:{namespace:t}}))),(null==(e=w.D)?void 0:e.size)&&w.D.clear()},se=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){d(t,o)}},re=t=>t.classList.add("hydrated"),ie=(t,e,n,o)=>{const l=u(t);if(!l)return;if(!l)throw Error(`Couldn't find host element for "${o.u}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const s=l.$hostElement$,r=l._.get(e),i=l.o,c=l.t;if(n=jt(n,o.V[e][0]),(!(8&i)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(l._.set(e,n),c)){if(o.W&&128&i){const t=o.W[e];t&&t.map((t=>{try{c[t](n,r,e)}catch(t){d(t,s)}}))}if(2==(18&i)){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(n,r,e))return;Qt(l,!1)}}},ce=(t,e,n)=>{var o,l;const s=t.prototype;if(e.V||e.W||t.watchers){t.watchers&&!e.W&&(e.W=t.watchers);const r=Object.entries(null!=(o=e.V)?o:{});if(r.map((([t,[o]])=>{if(31&o||2&n&&32&o){const{get:l,set:r}=Object.getOwnPropertyDescriptor(s,t)||{};l&&(e.V[t][0]|=2048),r&&(e.V[t][0]|=4096),(1&n||!l)&&Object.defineProperty(s,t,{get(){{if(!(2048&e.V[t][0]))return((t,e)=>u(this)._.get(e))(0,t);const n=u(this),o=n?n.t:s;if(!o)return;return o[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(l){const s=u(this);if(s){if(r){const n=32&o?this[t]:s.$hostElement$[t];return void 0===n&&s._.get(t)?l=s._.get(t):!s._.get(t)&&n&&s._.set(t,n),r.call(this,jt(l,o)),void ie(this,t,l=32&o?this[t]:s.$hostElement$[t],e)}{if(!(1&n&&4096&e.V[t][0]))return ie(this,t,l,e),void(1&n&&!s.t&&s.H.then((()=>{4096&e.V[t][0]&&s.t[t]!==s._.get(t)&&(s.t[t]=l)})));const r=()=>{const n=s.t[t];!s._.get(t)&&n&&s._.set(t,n),s.t[t]=jt(l,o),ie(this,t,s.t[t],e)};s.t?r():s.H.then((()=>r()))}}}})}else 1&n&&64&o&&Object.defineProperty(s,t,{value(...e){var n;const o=u(this);return null==(n=null==o?void 0:o.q)?void 0:n.then((()=>{var n;return null==(n=o.t)?void 0:n[t](...e)}))}})})),1&n){const n=new Map;s.attributeChangedCallback=function(t,o,l){w.jmp((()=>{var r;const i=n.get(t);if(this.hasOwnProperty(i))l=this[i],delete this[i];else{if(s.hasOwnProperty(i)&&"number"==typeof this[i]&&this[i]==l)return;if(null==i){const n=u(this),s=null==n?void 0:n.o;if(n&&s&&!(8&s)&&128&s&&l!==o){const s=n.t,i=null==(r=e.W)?void 0:r[t];null==i||i.forEach((e=>{null!=s[e]&&s[e].call(s,l,o,t)}))}return}}const c=Object.getOwnPropertyDescriptor(s,i);(l=(null!==l||"boolean"!=typeof this[i])&&l)===this[i]||c.get&&!c.set||(this[i]=l)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=e.W)?l:{}),...r.filter((([t,e])=>31&e[0])).map((([t,o])=>{var l;const s=o[1]||t;return n.set(s,t),512&o[0]&&(null==(l=e.F)||l.push([t,s])),s}))]))}}return t},ue=(t,e)=>{se(t,"connectedCallback",void 0,e)},fe=t=>{if(!(1&w.o)){const e=u(t);if(!e)return;const n=e.P,o=()=>{};if(1&e.o)ve(t,e,n.J),(null==e?void 0:e.t)?ue(e.t,t):(null==e?void 0:e.H)&&e.H.then((()=>ue(e.t,t)));else{let o;if(e.o|=1,o=t.getAttribute(v),o){if(1&n.o){const e=lt(t.shadowRoot,n);t.classList.remove(e+"-h",e+"-s")}else if(2&n.o){const e=st(n);t["s-sc"]=e}((t,e,n,o)=>{var l,s,r;const i=t.shadowRoot,c=[],f=[],a=[],d=i?[]:null,h=ct(e,null);let p;h.j=t,Object.entries((null==(l=o.P)?void 0:l.V)||{}).forEach((([e,[n,l]])=>{var s;if(!(31&n))return;const r=t.getAttribute(l||e);if(null!==r){const t=jt(r,n);null==(s=null==o?void 0:o._)||s.set(e,t)}}));{const e=o.P;e&&10&e.o&&t["s-sc"]?(p=t["s-sc"],t.classList.add(p+"-h")):t["s-sc"]&&delete t["s-sc"]}!g.document||w.D&&w.D.size||pt(g.document.body,w.D=new Map),t[v]=n,t.removeAttribute(v),o.A=ht(h,c,f,d,t,t,n,a);let $=0;const m=c.length;let b;for(;$<m;$++){b=c[$];const n=b.O+"."+b.k,o=w.D.get(n),l=b.j;if(i){if((null==(s=b.S)?void 0:(""+s).includes("-"))&&"slot-fb"!==b.S&&!b.j.shadowRoot){const e=u(b.j);if(e){const n=st(e.P),o=g.document.querySelector(`style[sty-id="${n}"]`);o&&t.shadowRoot.append(o.cloneNode(!0))}}}else l["s-hn"]=e.toUpperCase(),"slot"===b.S&&(l["s-cr"]=t["s-cr"]);"slot"===b.S&&(b.m=b.j["s-sn"]||b.j.name||null,b.v?(b.o|=2,b.j.childNodes.length||b.v.forEach((t=>{b.j.appendChild(t.j)}))):b.o|=1),o&&o.isConnected&&(o.parentElement.shadowRoot&&""===o["s-en"]&&o.parentNode.insertBefore(l,o.nextSibling),o.parentNode.removeChild(o),i||(l["s-oo"]=parseInt(b.k))),o&&!o["s-id"]&&w.D.delete(n)}const y=[],S=a.length;let j,O,k,x,N=0;for(;N<S;N++)if(j=a[N],j&&j.length)for(k=j.length,O=0;O<k;O++){if(x=j[O],y[x.hostId]||(y[x.hostId]=w.D.get(x.hostId)),!y[x.hostId])continue;const t=y[x.hostId];t.shadowRoot&&x.node.parentElement!==t&&t.appendChild(x.node),t.shadowRoot&&i||(x.slot["s-cr"]||(x.slot["s-cr"]=t["s-cr"],x.slot["s-cr"]=!x.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),Y(x.node,x.slot,0,x.node["s-oo"]),(null==(r=x.node.parentElement)?void 0:r.shadowRoot)&&x.node.getAttribute&&x.node.getAttribute("slot")&&x.node.removeAttribute("slot"))}if(p&&f.length&&f.forEach((t=>{t.j.parentElement.classList.add(p+"-s")})),i){let e=0;const n=d.length;if(n){for(;e<n;e++){const t=d[e];t&&i.appendChild(t)}Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-en"]&&"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):(8===t.nodeType&&!t.nodeValue||3===t.nodeType&&!t.wholeText.trim())&&t.parentNode.removeChild(t))}))}}o.$hostElement$=t})(t,n.u,o,e)}o||12&n.o&&ae(t);{let n=t;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Kt(e,e.T=n);break}}n.V&&Object.entries(n.V).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),M((()=>(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.Y){const l=((t,e)=>{const n=t.u.replace(/-/g,"_"),o=t.Y;if(!o)return;const l=h.get(o);return l?l[n]:import(`./${o}.entry.js`).then((t=>(h.set(o,t),t[n])),(t=>{d(t,e.$hostElement$)}))
4
+ const t="duet",e={cdnURIProd:"https://cdn.duetds.com/api",duetIconVersion:"4.2.7"};var n=Object.defineProperty,o={isServer:!1},l=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(l||{}),s=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(s||{}),r="type",i="value",c="serialized:",u=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},f=(t,e)=>{t.__stencil__getHostRef=()=>e,e.t=t},a=(t,e)=>e in t,d=(t,e)=>(0,console.error)(t,e),h=new Map,p=new Map,v="s-id",$="sty-id",m="c-id",b="slot-fb{display:contents}slot-fb[hidden]{display:none}",y="http://www.w3.org/1999/xlink",g="undefined"!=typeof window?window:{},w={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},S=t=>Promise.resolve(t),j=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),O=!!j&&(()=>!!g.document&&Object.getOwnPropertyDescriptor(g.document.adoptedStyleSheets,"length").writable)(),k=!1,x=[],N=[],E=(t,e)=>n=>{t.push(n),k||(k=!0,e&&4&w.o?M(I):w.raf(I))},C=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){d(t)}t.length=0},I=()=>{C(x),C(N),(k=x.length>0)&&w.raf(I)},M=t=>S().then(t),R=E(N,!0),T=t=>"object"==(t=typeof t)||"function"===t;function L(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var P=class t{static fromLocalValue(e){const n=e[r],o=i in e?e[i]:void 0;switch(n){case"string":case"boolean":return o;case"bigint":return BigInt(o);case"undefined":return;case"null":return null;case"number":return"NaN"===o?NaN:"-0"===o?-0:"Infinity"===o?1/0:"-Infinity"===o?-1/0:o;case"array":return o.map((e=>t.fromLocalValue(e)));case"date":return new Date(o);case"map":const e=new Map;for(const[n,l]of o){const o="object"==typeof n&&null!==n?t.fromLocalValue(n):n,s=t.fromLocalValue(l);e.set(o,s)}return e;case"object":const l={};for(const[e,n]of o)l[e]=t.fromLocalValue(n);return l;case"regexp":const{pattern:s,flags:r}=o;return RegExp(s,r);case"set":const i=new Set;for(const e of o)i.add(t.fromLocalValue(e));return i;case"symbol":return Symbol(o);default:throw Error("Unsupported type: "+n)}}static fromLocalValueArray(e){return e.map((e=>t.fromLocalValue(e)))}static isLocalValueObject(t){if("object"!=typeof t||null===t)return!1;if(!t.hasOwnProperty(r))return!1;const e=t[r];return!!Object.values({...l,...s}).includes(e)&&("null"===e||"undefined"===e||t.hasOwnProperty(i))}};((t,e)=>{for(var o in e)n(t,o,{get:e[o],enumerable:!0})})({},{err:()=>F,map:()=>U,ok:()=>A,unwrap:()=>D,unwrapErr:()=>_});var A=t=>({isOk:!0,isErr:!1,value:t}),F=t=>({isOk:!1,isErr:!0,value:t});function U(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>A(t))):A(n)}if(t.isErr)return F(t.value);throw"should never get here"}var B,D=t=>{if(t.isOk)return t.value;throw t.value},_=t=>{if(t.isErr)return t.value;throw t.value};function V(t){const e=this.attachShadow({mode:"open",delegatesFocus:!!(16&t.o)});void 0===B&&(B=null),B&&(O?e.adoptedStyleSheets.push(B):e.adoptedStyleSheets=[...e.adoptedStyleSheets,B])}var W=t=>{const e=et(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&z(e,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!q(t,G(t),!1).length)}));let n=0;for(n=0;n<e.length;n++){const t=e[n];1===t.nodeType&&et(t,"childNodes").length&&W(t)}},H=t=>{const e=[];for(let n=0;n<t.length;n++){const o=t[n]["s-nr"]||void 0;o&&o.isConnected&&e.push(o)}return e};function z(t,e,n){let o,l=0,s=[];for(;l<t.length;l++)o=t[l],!o["s-sr"]||e&&o["s-hn"]!==e||void 0!==n||s.push(o),s=[...s,...z(o.childNodes,e,n)];return s}var q=(t,e,n=!0)=>{const o=[];(n&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)G(l)!==e||!n&&l["s-sr"]||o.push(l);return o},J=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,Y=(t,e,n,o)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const l=document.createTextNode("");if(l["s-nr"]=t,!e["s-cr"]||!e["s-cr"].parentNode)return;const s=e["s-cr"].parentNode,r=et(s,"appendChild");if(void 0!==o){l["s-oo"]=o;const t=et(s,"childNodes"),e=[l];t.forEach((t=>{t["s-nr"]&&e.push(t)})),e.sort(((t,e)=>!t["s-oo"]||t["s-oo"]<(e["s-oo"]||0)?-1:!e["s-oo"]||e["s-oo"]<t["s-oo"]?1:0)),e.forEach((t=>r.call(s,t)))}else r.call(s,l);t["s-ol"]=l,t["s-sh"]=e["s-hn"]},G=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function K(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:H(l.childNodes)).forEach((t=>{o===G(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}var Q=t=>{class e extends Array{item(t){return this[t]}}tt("children",t),Object.defineProperty(t,"children",{get(){return this.childNodes.filter((t=>1===t.nodeType))}}),Object.defineProperty(t,"childElementCount",{get(){return this.children.length}}),tt("firstChild",t),Object.defineProperty(t,"firstChild",{get(){return this.childNodes[0]}}),tt("lastChild",t),Object.defineProperty(t,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]}}),tt("childNodes",t),Object.defineProperty(t,"childNodes",{get(){const t=new e;return t.push(...H(this.__childNodes)),t}})},X=["children","nextElementSibling","previousElementSibling"],Z=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function tt(t,e){if(!globalThis.Node||!globalThis.Element)return;let n;X.includes(t)?n=Object.getOwnPropertyDescriptor(Element.prototype,t):Z.includes(t)&&(n=Object.getOwnPropertyDescriptor(Node.prototype,t)),n||(n=Object.getOwnPropertyDescriptor(e,t)),n&&Object.defineProperty(e,"__"+t,n)}function et(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var nt=new WeakMap,ot=(t,e,n)=>{let o=p.get(t);j&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,p.set(t,o)},lt=(t,e)=>{var n;const o=st(e),l=p.get(o);if(!g.document)return o;if(t=11===t.nodeType?t:g.document,l)if("string"==typeof l){let s,r=nt.get(t=t.head||t);if(r||nt.set(t,r=new Set),!r.has(o)){if(t.host&&(s=t.querySelector(`[${$}="${o}"]`)))s.innerHTML=l;else{s=g.document.createElement("style"),s.innerHTML=l;const o=null!=(n=w.i)?n:L(g.document);if(null!=o&&s.setAttribute("nonce",o),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(j){const e=new CSSStyleSheet;e.replaceSync(l),O?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=b),r&&r.add(o)}}else t.adoptedStyleSheets.includes(l)||(O?t.adoptedStyleSheets.push(l):t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o},st=t=>"sc-"+t.u,rt=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),it=(t,e,...n)=>{let o=null,l=null,s=null,r=!1,i=!1;const c=[],u=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((r="function"!=typeof t&&!T(o))&&(o+=""),r&&i?c[c.length-1].h+=o:c.push(r?ct(null,o):o),i=r)};if(u(n),e){e.key&&(l=e.key),e.name&&(s=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,ft);const f=ct(t,null);return f.p=e,c.length>0&&(f.v=c),f.$=l,f.m=s,f},ct=(t,e)=>({o:0,S:t,h:e,j:null,v:null,p:null,$:null,m:null}),ut={},ft={forEach:(t,e)=>t.map(at).forEach(e),map:(t,e)=>t.map(at).map(e).map(dt)},at=t=>({vattrs:t.p,vchildren:t.v,vkey:t.$,vname:t.m,vtag:t.S,vtext:t.h}),dt=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),it(t.vtag,e,...t.vchildren||[])}const e=ct(t.vtag,t.vtext);return e.p=t.vattrs,e.v=t.vchildren,e.$=t.vkey,e.m=t.vname,e},ht=(t,e,n,o,l,s,r,i=[])=>{let c,u,f,a;const d=l["s-sc"];if(1===s.nodeType){if(c=s.getAttribute(m),c&&(u=c.split("."),u[0]===r||"0"===u[0])){f=vt({o:0,O:u[0],k:u[1],N:u[2],C:u[3],S:s.tagName.toLowerCase(),j:s,p:{class:s.className||""}}),e.push(f),s.removeAttribute(m),t.v||(t.v=[]),d&&u[0]===r&&(s["s-si"]=d,f.p.class+=" "+d);const l=f.j.getAttribute("s-sn");"string"==typeof l&&("slot-fb"===f.S&&($t(l,u[2],f,s,t,e,n,o,i),d&&s.classList.add(d)),f.j["s-sn"]=l,f.j.removeAttribute("s-sn")),void 0!==f.C&&(t.v[f.C]=f),t=f,o&&"0"===f.N&&(o[f.C]=f.j)}if(s.shadowRoot)for(a=s.shadowRoot.childNodes.length-1;a>=0;a--)ht(t,e,n,o,l,s.shadowRoot.childNodes[a],r,i);const h=s.__childNodes||s.childNodes;for(a=h.length-1;a>=0;a--)ht(t,e,n,o,l,h[a],r,i)}else if(8===s.nodeType)u=s.nodeValue.split("."),(u[1]===r||"0"===u[1])&&(c=u[0],f=vt({O:u[1],k:u[2],N:u[3],C:u[4]||"0",j:s,p:null,v:null,$:null,m:null,S:null,h:null}),"t"===c?(f.j=bt(s,3),f.j&&3===f.j.nodeType&&(f.h=f.j.textContent,e.push(f),s.remove(),r===f.O&&(t.v||(t.v=[]),t.v[f.C]=f),o&&"0"===f.N&&(o[f.C]=f.j))):"c"===c?(f.j=bt(s,8),f.j&&8===f.j.nodeType&&(e.push(f),s.remove())):f.O===r&&("s"===c?$t(s["s-sn"]=u[5]||"",u[2],f,s,t,e,n,o,i):"r"===c&&(o?s.remove():(l["s-cr"]=s,s["s-cn"]=!0))));else if(t&&"style"===t.S){const e=ct(null,s.textContent);e.j=s,e.C="0",t.v=[e]}else 3!==s.nodeType||s.wholeText.trim()||s["s-nr"]||s.remove();return t},pt=(t,e)=>{if(1===t.nodeType){const n=t[v]||t.getAttribute(v);n&&e.set(n,t);let o=0;if(t.shadowRoot)for(;o<t.shadowRoot.childNodes.length;o++)pt(t.shadowRoot.childNodes[o],e);const l=t.__childNodes||t.childNodes;for(o=0;o<l.length;o++)pt(l[o],e)}else if(8===t.nodeType){const n=t.nodeValue.split(".");"o"===n[0]&&(e.set(n[1]+"."+n[2],t),t.nodeValue="",t["s-en"]=n[3])}},vt=t=>({o:0,O:null,k:null,N:null,C:"0",j:null,p:null,v:null,$:null,m:null,S:null,h:null,...t});function $t(t,e,n,o,l,s,r,i,c){o["s-sr"]=!0,n.m=t||null,n.S="slot";const u=(null==l?void 0:l.j)?l.j["s-id"]||l.j.getAttribute("s-id"):"";if(i&&g.document){const s=n.j=g.document.createElement(n.S);n.m&&n.j.setAttribute("name",t),l.j.shadowRoot&&u&&u!==n.O?et(l.j,"insertBefore")(s,et(l.j,"children")[0]):et(et(o,"parentNode"),"insertBefore")(s,o),mt(c,e,t,o,n.O),o.remove(),"0"===n.N&&(i[n.C]=n.j)}else{const s=n.j,r=u&&u!==n.O&&l.j.shadowRoot;mt(c,e,t,o,r?u:n.O),K(o),r&&l.j.insertBefore(s,l.j.children[0])}s.push(n),r.push(n),l.v||(l.v=[]),l.v[n.C]=n}var mt=(t,e,n,o,l)=>{var s,r;let i=o.nextSibling;if(t[e]=t[e]||[],i&&!(null==(s=i.nodeValue)?void 0:s.startsWith("s.")))do{!i||(i.getAttribute&&i.getAttribute("slot")||i["s-sn"])!==n&&(""!==n||i["s-sn"]||i.getAttribute&&i.getAttribute("slot")||8!==i.nodeType&&3!==i.nodeType)||(i["s-sn"]=n,t[e].push({slot:o,node:i,hostId:l})),i=null==i?void 0:i.nextSibling}while(i&&!(null==(r=i.nodeValue)?void 0:r.startsWith("s.")))},bt=(t,e)=>{let n=t;do{n=n.nextSibling}while(n&&(n.nodeType!==e||!n.nodeValue));return n},yt=t=>{const e=(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")};yt("::slotted"),yt(":host"),yt(":host-context");var gt,wt,St,jt=(t,e)=>{if("string"==typeof t&&t.startsWith(c))return function(t){return"string"==typeof t&&t.startsWith(c)?P.fromLocalValue(JSON.parse(atob(t.slice(11)))):t}(t);if("string"==typeof t&&(16&e||8&e)&&(t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]")))try{return JSON.parse(t)}catch(t){}return null==t||T(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t},Ot=t=>{var e;return null==(e=u(t))?void 0:e.$hostElement$},kt=(t,e,n)=>{const o=Ot(t);return{emit:t=>xt(o,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},xt=(t,e,n)=>{const o=w.ce(e,n);return t.dispatchEvent(o),o},Nt=(t,e,n,o,l,s,r)=>{if(n===o)return;let i=a(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=Ct(n);let s=Ct(o);if((t["s-si"]||t["s-sc"])&&r){const n=t["s-sc"]||t["s-si"];s.push(n),l.forEach((t=>{t.startsWith(n)&&s.push(t)})),s=[...new Set(s)].filter((t=>t)),e.add(...s)}else e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&o(t);else if(i||"o"!==e[0]||"n"!==e[1]){const r=T(o);if((i||r&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}let u=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,u=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(e)||(u?t.removeAttributeNS(y,e):t.removeAttribute(e)):(!i||4&s||l)&&!r&&1===t.nodeType&&(o=!0===o?"":o,u?t.setAttributeNS(y,e,o):t.setAttribute(e,o))}else if(e="-"===e[2]?e.slice(3):a(g,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(It);e=e.replace(Mt,""),n&&w.rel(t,e,n,l),o&&w.ael(t,e,o,l)}},Et=/\s/,Ct=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(Et):[]),It="Capture",Mt=RegExp(It+"$"),Rt=(t,e,n,o)=>{const l=11===e.j.nodeType&&e.j.host?e.j.host:e.j,s=t&&t.p||{},r=e.p||{};for(const t of Tt(Object.keys(s)))t in r||Nt(l,t,s[t],void 0,n,e.o,o);for(const t of Tt(Object.keys(r)))Nt(l,t,s[t],r[t],n,e.o,o)};function Tt(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Lt=!1,Pt=!1,At=!1,Ft=!1,Ut=(t,e,n)=>{var o;const l=e.v[n];let s,r,i,c=0;if(Lt||(At=!0,"slot"===l.S&&(l.o|=l.v?2:1)),null!==l.h)s=l.j=g.document.createTextNode(l.h);else if(1&l.o)s=l.j=g.document.createTextNode(""),Rt(null,l,Ft);else{if(Ft||(Ft="svg"===l.S),!g.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(s=l.j=g.document.createElementNS(Ft?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Lt&&2&l.o?"slot-fb":l.S),Ft&&"foreignObject"===l.S&&(Ft=!1),Rt(null,l,Ft),null!=gt&&void 0!==gt&&s["s-si"]!==gt&&s.classList.add(s["s-si"]=gt),l.v)for(c=0;c<l.v.length;++c)r=Ut(t,l,c),r&&s.appendChild(r);"svg"===l.S?Ft=!1:"foreignObject"===s.tagName&&(Ft=!0)}return s["s-hn"]=St,3&l.o&&(s["s-sr"]=!0,s["s-cr"]=wt,s["s-sn"]=l.m||"",s["s-rf"]=null==(o=l.p)?void 0:o.ref,K(s),i=t&&t.v&&t.v[n],i&&i.S===l.S&&t.j&&Bt(t.j,!1),Gt(wt,s,e.j,null==t?void 0:t.j)),s},Bt=(t,e)=>{w.o|=1;const n=Array.from(t.__childNodes||t.childNodes);for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==St&&o["s-ol"]&&(Yt(Wt(o).parentNode,o,Wt(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,At=!0),e&&Bt(o,e)}w.o&=-2},Dt=(t,e,n,o,l,s)=>{let r,i=t["s-cr"]&&t["s-cr"].parentNode||t;for(i.shadowRoot&&i.tagName===St&&(i=i.shadowRoot);l<=s;++l)o[l]&&(r=Ut(null,n,l),r&&(o[l].j=r,Yt(i,r,Wt(e))))},_t=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.j;Jt(e),t&&(Pt=!0,t["s-ol"]?t["s-ol"].remove():Bt(t,!0),t.remove())}}},Vt=(t,e,n=!1)=>t.S===e.S&&("slot"===t.S?t.m===e.m:n?(n&&!t.$&&e.$&&(t.$=e.$),!0):t.$===e.$),Wt=t=>t&&t["s-ol"]||t,Ht=(t,e,n=!1)=>{const o=e.j=t.j,l=t.v,s=e.v,r=e.S,i=e.h;let c;null===i?(Rt(t,e,Ft="svg"===r||"foreignObject"!==r&&Ft,n),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,r,i=0,c=0,u=0,f=0,a=e.length-1,d=e[0],h=e[a],p=o.length-1,v=o[0],$=o[p];for(;i<=a&&c<=p;)if(null==d)d=e[++i];else if(null==h)h=e[--a];else if(null==v)v=o[++c];else if(null==$)$=o[--p];else if(Vt(d,v,l))Ht(d,v,l),d=e[++i],v=o[++c];else if(Vt(h,$,l))Ht(h,$,l),h=e[--a],$=o[--p];else if(Vt(d,$,l))"slot"!==d.S&&"slot"!==$.S||Bt(d.j.parentNode,!1),Ht(d,$,l),Yt(t,d.j,h.j.nextSibling),d=e[++i],$=o[--p];else if(Vt(h,v,l))"slot"!==d.S&&"slot"!==$.S||Bt(h.j.parentNode,!1),Ht(h,v,l),Yt(t,h.j,d.j),h=e[--a],v=o[++c];else{for(u=-1,f=i;f<=a;++f)if(e[f]&&null!==e[f].$&&e[f].$===v.$){u=f;break}u>=0?(r=e[u],r.S!==v.S?s=Ut(e&&e[c],n,u):(Ht(r,v,l),e[u]=void 0,s=r.j),v=o[++c]):(s=Ut(e&&e[c],n,c),v=o[++c]),s&&Yt(Wt(d.j).parentNode,s,Wt(d.j))}i>a?Dt(t,null==o[p+1]?null:o[p+1].j,n,o,c,p):c>p&&_t(e,i,a)})(o,l,e,s,n):null!==s?(null!==t.h&&(o.textContent=""),Dt(o,null,e,s,0,s.length-1)):n||null===l?n&&null!==l&&null===s&&(e.v=l):_t(l,0,l.length-1),Ft&&"svg"===r&&(Ft=!1)):(c=o["s-cr"])?c.parentNode.textContent=i:t.h!==i&&(o.data=i)},zt=[],qt=t=>{let e,n,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const l=t["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"])if(J(e,l)){let n=zt.find((t=>t.I===e));Pt=!0,e["s-sn"]=e["s-sn"]||l,n?(n.I["s-sh"]=t["s-hn"],n.M=t):(e["s-sh"]=t["s-hn"],zt.push({M:t,I:e})),e["s-sr"]&&zt.map((t=>{J(t.I,e["s-sn"])&&(n=zt.find((t=>t.I===e)),n&&!t.M&&(t.M=n.M))}))}else zt.some((t=>t.I===e))||zt.push({I:e})}1===t.nodeType&&qt(t)}},Jt=t=>{t.p&&t.p.ref&&t.p.ref(null),t.v&&t.v.map(Jt)},Yt=(t,e,n)=>("string"==typeof e["s-sn"]&&e["s-sr"]&&e["s-cr"]&&Gt(e["s-cr"],e,t,e.parentElement),null==t?void 0:t.insertBefore(e,n));function Gt(t,e,n,o){var l,s;let r;if(t&&"string"==typeof e["s-sn"]&&e["s-sr"]&&t.parentNode&&t.parentNode["s-sc"]&&(r=e["s-si"]||t.parentNode["s-sc"])){const t=e["s-sn"],i=e["s-hn"];if(null==(l=n.classList)||l.add(r+"-s"),o&&(null==(s=o.classList)?void 0:s.contains(r+"-s"))){let e=(o.__childNodes||o.childNodes)[0],n=!1;for(;e;){if(e["s-sn"]!==t&&e["s-hn"]===i&&e["s-sr"]){n=!0;break}e=e.nextSibling}n||o.classList.remove(r+"-s")}}}var Kt=(t,e)=>{if(e&&!t.R&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.R=()=>{e["s-p"].splice(n-1,1),o()})))}},Qt=(t,e)=>{if(t.o|=16,4&t.o)return void(t.o|=512);Kt(t,t.T);const n=()=>Xt(t,e);if(!e)return R(n);queueMicrotask((()=>{n()}))},Xt=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return e?(t.o|=256,t.L&&(t.L.map((([t,e])=>se(o,t,e,n))),t.L=void 0),l=se(o,"componentWillLoad",void 0,n)):l=se(o,"componentWillUpdate",void 0,n),l=Zt(l,(()=>se(o,"componentWillRender",void 0,n))),Zt(l,(()=>ee(t,o,e)))},Zt=(t,e)=>te(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),te=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,ee=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.P,n=t.$hostElement$,o=e.o,l=lt(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);ne(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>oe(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},ne=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{var o,l,s,r;const i=t.$hostElement$,c=t.P,u=t.A||ct(null,null),f=(t=>t&&t.S===ut)(e)?e:it(null,null,e);if(St=i.tagName,c.F&&(f.p=f.p||{},c.F.map((([t,e])=>f.p[e]=i[t]))),n&&f.p)for(const t of Object.keys(f.p))i.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(f.p[t]=i[t]);if(f.S=null,f.o|=4,t.A=f,f.j=u.j=i.shadowRoot||i,gt=i["s-sc"],Lt=!(!(1&c.o)||128&c.o),wt=i["s-cr"],Pt=!1,Ht(u,f,n),w.o|=1,At){qt(f.j);for(const t of zt){const e=t.I;if(!e["s-ol"]&&g.document){const t=g.document.createTextNode("");t["s-nr"]=e,Yt(e.parentNode,e["s-ol"]=t,e)}}for(const t of zt){const e=t.I,i=t.M;if(i){const t=i.parentNode;let n=i.nextSibling;{let s=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===e["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===e||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}(!n&&t!==(e.__parentNode||e.parentNode)||(e.__nextSibling||e.nextSibling)!==n)&&e!==n&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),Yt(t,e,n),1===e.nodeType&&"SLOT-FB"!==e.tagName&&(e.hidden=null!=(s=e["s-ih"])&&s)),e&&"function"==typeof i["s-rf"]&&i["s-rf"](i)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(r=e.hidden)&&r),e.hidden=!0)}}Pt&&W(f.j),w.o&=-2,zt.length=0,wt=void 0})(t,e,o)}catch(e){d(e,t.$hostElement$)}return null},oe=t=>{const e=t.$hostElement$,n=t.t,o=t.T;se(n,"componentDidRender",void 0,e),64&t.o?se(n,"componentDidUpdate",void 0,e):(t.o|=64,re(e),se(n,"componentDidLoad",void 0,e),t.U(e),o||le()),t.B(e),t.R&&(t.R(),t.R=void 0),512&t.o&&M((()=>Qt(t,!1))),t.o&=-517},le=()=>{var e;M((()=>xt(g,"appload",{detail:{namespace:t}}))),(null==(e=w.D)?void 0:e.size)&&w.D.clear()},se=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){d(t,o)}},re=t=>t.classList.add("hydrated"),ie=(t,e,n,o)=>{const l=u(t);if(!l)return;if(!l)throw Error(`Couldn't find host element for "${o.u}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const s=l.$hostElement$,r=l._.get(e),i=l.o,c=l.t;if(n=jt(n,o.V[e][0]),(!(8&i)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(l._.set(e,n),c)){if(o.W&&128&i){const t=o.W[e];t&&t.map((t=>{try{c[t](n,r,e)}catch(t){d(t,s)}}))}if(2==(18&i)){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(n,r,e))return;Qt(l,!1)}}},ce=(t,e,n)=>{var o,l;const s=t.prototype;if(e.V||e.W||t.watchers){t.watchers&&!e.W&&(e.W=t.watchers);const r=Object.entries(null!=(o=e.V)?o:{});if(r.map((([t,[o]])=>{if(31&o||2&n&&32&o){const{get:l,set:r}=Object.getOwnPropertyDescriptor(s,t)||{};l&&(e.V[t][0]|=2048),r&&(e.V[t][0]|=4096),(1&n||!l)&&Object.defineProperty(s,t,{get(){{if(!(2048&e.V[t][0]))return((t,e)=>u(this)._.get(e))(0,t);const n=u(this),o=n?n.t:s;if(!o)return;return o[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(l){const s=u(this);if(s){if(r){const n=32&o?this[t]:s.$hostElement$[t];return void 0===n&&s._.get(t)?l=s._.get(t):!s._.get(t)&&n&&s._.set(t,n),r.call(this,jt(l,o)),void ie(this,t,l=32&o?this[t]:s.$hostElement$[t],e)}{if(!(1&n&&4096&e.V[t][0]))return ie(this,t,l,e),void(1&n&&!s.t&&s.H.then((()=>{4096&e.V[t][0]&&s.t[t]!==s._.get(t)&&(s.t[t]=l)})));const r=()=>{const n=s.t[t];!s._.get(t)&&n&&s._.set(t,n),s.t[t]=jt(l,o),ie(this,t,s.t[t],e)};s.t?r():s.H.then((()=>r()))}}}})}else 1&n&&64&o&&Object.defineProperty(s,t,{value(...e){var n;const o=u(this);return null==(n=null==o?void 0:o.q)?void 0:n.then((()=>{var n;return null==(n=o.t)?void 0:n[t](...e)}))}})})),1&n){const n=new Map;s.attributeChangedCallback=function(t,o,l){w.jmp((()=>{var r;const i=n.get(t);if(this.hasOwnProperty(i))l=this[i],delete this[i];else{if(s.hasOwnProperty(i)&&"number"==typeof this[i]&&this[i]==l)return;if(null==i){const n=u(this),s=null==n?void 0:n.o;if(n&&s&&!(8&s)&&128&s&&l!==o){const s=n.t,i=null==(r=e.W)?void 0:r[t];null==i||i.forEach((e=>{null!=s[e]&&s[e].call(s,l,o,t)}))}return}}const c=Object.getOwnPropertyDescriptor(s,i);(l=(null!==l||"boolean"!=typeof this[i])&&l)===this[i]||c.get&&!c.set||(this[i]=l)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=e.W)?l:{}),...r.filter((([t,e])=>31&e[0])).map((([t,o])=>{var l;const s=o[1]||t;return n.set(s,t),512&o[0]&&(null==(l=e.F)||l.push([t,s])),s}))]))}}return t},ue=(t,e)=>{se(t,"connectedCallback",void 0,e)},fe=t=>{if(!(1&w.o)){const e=u(t);if(!e)return;const n=e.P,o=()=>{};if(1&e.o)ve(t,e,n.J),(null==e?void 0:e.t)?ue(e.t,t):(null==e?void 0:e.H)&&e.H.then((()=>ue(e.t,t)));else{let o;if(e.o|=1,o=t.getAttribute(v),o){if(1&n.o){const e=lt(t.shadowRoot,n);t.classList.remove(e+"-h",e+"-s")}else if(2&n.o){const e=st(n);t["s-sc"]=e}((t,e,n,o)=>{var l,s,r;const i=t.shadowRoot,c=[],f=[],a=[],d=i?[]:null,h=ct(e,null);let p;h.j=t,Object.entries((null==(l=o.P)?void 0:l.V)||{}).forEach((([e,[n,l]])=>{var s;if(!(31&n))return;const r=t.getAttribute(l||e);if(null!==r){const t=jt(r,n);null==(s=null==o?void 0:o._)||s.set(e,t)}}));{const e=o.P;e&&10&e.o&&t["s-sc"]?(p=t["s-sc"],t.classList.add(p+"-h")):t["s-sc"]&&delete t["s-sc"]}!g.document||w.D&&w.D.size||pt(g.document.body,w.D=new Map),t[v]=n,t.removeAttribute(v),o.A=ht(h,c,f,d,t,t,n,a);let $=0;const m=c.length;let b;for(;$<m;$++){b=c[$];const n=b.O+"."+b.k,o=w.D.get(n),l=b.j;if(i){if((null==(s=b.S)?void 0:(""+s).includes("-"))&&"slot-fb"!==b.S&&!b.j.shadowRoot){const e=u(b.j);if(e){const n=st(e.P),o=g.document.querySelector(`style[sty-id="${n}"]`);o&&t.shadowRoot.append(o.cloneNode(!0))}}}else l["s-hn"]=e.toUpperCase(),"slot"===b.S&&(l["s-cr"]=t["s-cr"]);"slot"===b.S&&(b.m=b.j["s-sn"]||b.j.name||null,b.v?(b.o|=2,b.j.childNodes.length||b.v.forEach((t=>{b.j.appendChild(t.j)}))):b.o|=1),o&&o.isConnected&&(o.parentElement.shadowRoot&&""===o["s-en"]&&o.parentNode.insertBefore(l,o.nextSibling),o.parentNode.removeChild(o),i||(l["s-oo"]=parseInt(b.k))),o&&!o["s-id"]&&w.D.delete(n)}const y=[],S=a.length;let j,O,k,x,N=0;for(;N<S;N++)if(j=a[N],j&&j.length)for(k=j.length,O=0;O<k;O++){if(x=j[O],y[x.hostId]||(y[x.hostId]=w.D.get(x.hostId)),!y[x.hostId])continue;const t=y[x.hostId];t.shadowRoot&&x.node.parentElement!==t&&t.appendChild(x.node),t.shadowRoot&&i||(x.slot["s-cr"]||(x.slot["s-cr"]=t["s-cr"],x.slot["s-cr"]=!x.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),Y(x.node,x.slot,0,x.node["s-oo"]),(null==(r=x.node.parentElement)?void 0:r.shadowRoot)&&x.node.getAttribute&&x.node.getAttribute("slot")&&x.node.removeAttribute("slot"))}if(p&&f.length&&f.forEach((t=>{t.j.parentElement.classList.add(p+"-s")})),i){let e=0;const n=d.length;if(n){for(;e<n;e++){const t=d[e];t&&i.appendChild(t)}Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-en"]&&"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):(8===t.nodeType&&!t.nodeValue||3===t.nodeType&&!t.wholeText.trim())&&t.parentNode.removeChild(t))}))}}o.$hostElement$=t})(t,n.u,o,e)}o||12&n.o&&ae(t);{let n=t;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Kt(e,e.T=n);break}}n.V&&Object.entries(n.V).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),M((()=>(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.Y){const l=((t,e)=>{const n=t.u.replace(/-/g,"_"),o=t.Y;if(!o)return;const l=h.get(o);return l?l[n]:import(`./${o}.entry.js`).then((t=>(h.set(o,t),t[n])),(t=>{d(t,e.$hostElement$)}))
5
5
  /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${n.u}#${e.G}" was not found`);o.isProxied||(n.W=o.watchers,ce(o,n,2),o.isProxied=!0);const s=()=>{};e.o|=8;try{new o(e)}catch(e){d(e,t)}e.o&=-9,e.o|=128,s(),ue(e.t,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=st(n);if(!p.has(e)){const o=()=>{};ot(e,t,!!(1&n.o)),o()}}}const l=e.T,s=()=>Qt(e,!0);l&&l["s-rc"]?l["s-rc"].push(s):s()})(t,e,n)))}o()}},ae=t=>{if(!g.document)return;const e=t["s-cr"]=g.document.createComment("");e["s-cn"]=!0,Yt(t,e,t.firstChild)},de=(t,e)=>{se(t,"disconnectedCallback",void 0,e||t)},he=(t,e={})=>{var n;if(!g.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const o=[],l=e.exclude||[],s=g.customElements,r=g.document.head,i=r.querySelector("meta[charset]"),c=g.document.createElement("style"),f=[];let a,d=!0;Object.assign(w,e),w.l=new URL(e.resourcesUrl||"./",g.document.baseURI).href,w.o|=2,(()=>{if(!g.document)return;const t=g.document.querySelectorAll(`[${$}]`);let e=0;for(;e<t.length;e++)ot(t[e].getAttribute($),rt(t[e].innerHTML),!0)})();let h=!1;if(t.map((t=>{t[1].map((e=>{var n;const r={o:e[0],u:e[1],V:e[2],J:e[3]};4&r.o&&(h=!0),r.V=e[2],r.J=e[3],r.F=[],r.W=null!=(n=e[4])?n:{};const i=r.u,c=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={o:0,$hostElement$:t,P:e,_:new Map};n.q=new Promise((t=>n.B=t)),n.H=new Promise((t=>n.U=t)),t["s-p"]=[],t["s-rc"]=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,r),1&r.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.u}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else V.call(t,r)}connectedCallback(){const t=u(this);t&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,ve(this,t,r.J)),a&&(clearTimeout(a),a=null),d?f.push(this):w.jmp((()=>fe(this))))}disconnectedCallback(){w.jmp((()=>(async t=>{if(!(1&w.o)){const e=u(t);(null==e?void 0:e.K)&&(e.K.map((t=>t())),e.K=void 0),(null==e?void 0:e.t)?de(e.t,t):(null==e?void 0:e.H)&&e.H.then((()=>de(e.t,t)))}nt.has(t)&&nt.delete(t),t.shadowRoot&&nt.has(t.shadowRoot)&&nt.delete(t.shadowRoot)})(this))),w.raf((()=>{var t;const e=u(this);if(!e)return;const n=f.findIndex((t=>t===this));n>-1&&f.splice(n,1),(null==(t=null==e?void 0:e.A)?void 0:t.j)instanceof Node&&!e.A.j.isConnected&&delete e.A.j}))}componentOnReady(){var t;return null==(t=u(this))?void 0:t.H}};!(1&r.o)&&256&r.o&&Q(c.prototype),r.Y=t[0],l.includes(i)||s.get(i)||(o.push(i),s.define(i,ce(c,r,1)))}))})),o.length>0&&(h&&(c.textContent+=b),c.innerHTML.length)){c.setAttribute("data-styles","");const t=null!=(n=w.i)?n:L(g.document);null!=t&&c.setAttribute("nonce",t),r.insertBefore(c,i?i.nextSibling:r.firstChild)}d=!1,f.length?f.map((t=>t.connectedCallback())):w.jmp((()=>a=setTimeout(le,30)))},pe=(t,e)=>e,ve=(t,e,n)=>{n&&g.document&&n.map((([n,o,l])=>{const s=me(g.document,t,n),r=$e(e,l),i=be(n);w.ael(s,o,r,i),(e.K=e.K||[]).push((()=>w.rel(s,o,r,i)))}))},$e=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.L=t.L||[]).push([e,n])}catch(e){d(e,t.$hostElement$)}},me=(t,e,n)=>4&n?t:8&n?g:16&n?t.body:e,be=t=>({passive:!!(1&t),capture:!!(2&t)}),ye=t=>w.i=t;export{o as B,e as E,pe as F,ut as H,t as N,he as b,kt as c,Ot as g,it as h,S as p,f as r,ye as s,g as w}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ import{g as o}from"./p-x84EsPoI.js";function n(n){const r=n.element.textContent;return n.accessibleLabel?n.accessibleLabel:(n.download||""===n.download)&&r?`${r}. ${n.accessibleLabelDownload}.`:n.external&&r?`${r}. ${n.accessibleLabelExternal}.`:o(n.element).length?r:null}export{n as g}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import"./p-BPFqbaxm.js";import{c as t}from"./p-C6E9F6QT.js";const e={fi:"fi-FI",en:"en-GB",us:"en-US",sv:"sv-SE"},n={fi:"€",en:"£",us:"$",sv:"€"},r=["fi","en","sv"],a="fi",o=()=>document.documentElement.lang?document.documentElement.lang.toLowerCase():a,s=(t=o())=>r.includes(t)?t:a,i=(t=o())=>s(t),c=t=>{const r={locale:e[t],money:n[t]};if(r.locale&&r.money)return r;throw new Error(`Locale for "${t}" not found`)},u=e=>{if("string"==typeof e)try{return JSON.parse(t(e))}catch(t){console.log("sanitizeString received a string, that didnt parse to json object",e,t)}return e},l=(t,e)=>{const n=u(t);return e?n[s(e)]:n[i()]},m=(t,e,n=o())=>Intl.NumberFormat(n,{style:"decimal",minimumFractionDigits:null!=e?e:0,maximumFractionDigits:null!=e?e:100}).format(t),f=new Set,d=new WeakMap;new MutationObserver((t=>{let e=a;for(const n of t)if("attributes"===n.type&&"lang"===n.attributeName){e=n.oldValue;break}"false"!==document.documentElement.dataset.duetLangObserve&&f.forEach((t=>{t.language&&(t.language=i()),d.has(t)&&d.get(t).forEach((n=>{t[n.defaults]&&t[n.prop]===t[n.defaults][e]&&(t[n.prop]=l(t[n.defaults]))}))}))})).observe(document.documentElement,{attributeFilter:["lang"],attributeOldValue:!0});const g=(t,e)=>{f.add(t),e&&(Array.isArray(e)||(e=[e]),e.some((e=>!(e.prop in t)||!(e.defaults in t)))&&(console.error("connectLanguageChangeObserver: component must have target.prop and target.defaults properties"),e=e.filter((e=>e.prop in t&&e.defaults in t))),d.set(t,e))},p=t=>{f.delete(t),d.delete(t)};export{i as a,c as b,g as c,p as d,m as f,l as g,u as s}
4
+ import"./p-BfHFKBVa.js";import{c as t}from"./p-C6E9F6QT.js";const e={fi:"fi-FI",en:"en-GB",us:"en-US",sv:"sv-SE"},n={fi:"€",en:"£",us:"$",sv:"€"},r=["fi","en","sv"],a="fi",o=()=>document.documentElement.lang?document.documentElement.lang.toLowerCase():a,s=(t=o())=>r.includes(t)?t:a,i=(t=o())=>s(t),c=t=>{const r={locale:e[t],money:n[t]};if(r.locale&&r.money)return r;throw new Error(`Locale for "${t}" not found`)},u=e=>{if("string"==typeof e)try{return JSON.parse(t(e))}catch(t){console.log("sanitizeString received a string, that didnt parse to json object",e,t)}return e},l=(t,e)=>{const n=u(t);return e?n[s(e)]:n[i()]},f=(t,e,n=o())=>Intl.NumberFormat(n,{style:"decimal",minimumFractionDigits:null!=e?e:0,maximumFractionDigits:null!=e?e:100}).format(t),m=new Set,d=new WeakMap;new MutationObserver((t=>{let e=a;for(const n of t)if("attributes"===n.type&&"lang"===n.attributeName){e=n.oldValue;break}"false"!==document.documentElement.dataset.duetLangObserve&&m.forEach((t=>{t.language&&(t.language=i()),d.has(t)&&d.get(t).forEach((n=>{t[n.defaults]&&t[n.prop]===t[n.defaults][e]&&(t[n.prop]=l(t[n.defaults]))}))}))})).observe(document.documentElement,{attributeFilter:["lang"],attributeOldValue:!0});const g=(t,e)=>{m.add(t),e&&(Array.isArray(e)||(e=[e]),e.some((e=>!(e.prop in t)||!(e.defaults in t)))&&(console.error("connectLanguageChangeObserver: component must have target.prop and target.defaults properties"),e=e.filter((e=>e.prop in t&&e.defaults in t))),d.set(t,e))},p=t=>{m.delete(t),d.delete(t)};export{i as a,c as b,g as c,p as d,f,l as g,u as s}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ import{g as s}from"./p-D4WDSjzx.js";import{p as e}from"./p-C6E9F6QT.js";const t=(s,t)=>{let o={type:void 0,system_message:void 0,message:void 0};return o=(t=e(t)).filter((e=>e.type==s))[0],o||(o=t.filter((s=>"default"===s.type))[0]),o},o=(e,o)=>{const r=t(e,o),a=s(r.message);return""!==a&&a?a:r.system_message};export{t as a,o as g}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ import"./p-BfHFKBVa.js";const o=()=>{globalThis.ds={log:()=>{},warn:()=>{},info:()=>{}}};export{o as g}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ import{m as r,e as t,f as n,g as e,h as a,i as u,j as s,k as c,l as i,t as o}from"./p-Z0D6Gy9e.js";const f=["turva"],l=/[A-Z]/g;function $(r){const t=l.test(r),n=!r.includes("_")&&!r.includes("-")&&!r.includes(" ");return t&&n}function d(r){const t=r.includes("-"),n=r.includes(" ")||r.includes("_"),e="-"===r.charAt(0);return t&&!n&&!e}function g(r=""){return`${r.charAt(0).toUpperCase()}${r.slice(1)}`}function m(r=""){return`${r.charAt(0).toLowerCase()}${r.slice(1)}`}function p(r=""){const t=r.split("-");return t.forEach(((r,n)=>{t[n]=g(r)})),t.join("")}function y(r){return r.charAt(0).toUpperCase()+r.slice(1)}function x(r,t=""){return!t||d(t)||function(r,t=""){return 0===t.indexOf(y(r))||0===t.indexOf(r)}(r,t)?t:`${r}${g(t)}`}function h(r,t){if(r)return["","default"].includes(t)||d(r)&&r.endsWith(`-${t}`)||$(r)&&r.endsWith(g(t))?r:o[`color${p(r)}${y(t)}`]?$(r)?`${r}${g(t)}`:`${r}-${t}`:r}function b(r,t=""){if(!r)return;if(("turva"===t||r.endsWith("-turva"))&&"undefined"!=typeof document&&(null===(n=document.documentElement.attributes.getNamedItem("class"))||void 0===n?void 0:n.value.includes("duet-theme-turva2")))switch(r.replace(/-turva$/,"")){case"primary-lightest":return"#fdf7f2";case"primary-lighter":return"#fbebe1";case"primary-light":return"#f1cab2";case"primary":return"#e61740";case"primary-darker":return"#b90329";case"primary-dark":return"#8c001e";case"secondary":return"#172a3b";case"gray-lighter":return"#f5f6f7";case"gray-light":return"#d4dde2";case"gray":return"#b2c2cd";case"gray-dark":return"#7891a4";case"gray-darker":return"#5f7a8f"}var n;const e=v(r),a=t&&v(r,t);return o[a]||o[e]}function v(r="",t=""){let n=r;return d(r)&&(n=p(n)),n=x("color",n),n=function(r,t){const n=function(r=""){return f.includes(r.toLowerCase())?r.toLowerCase():""}(t).length;return n&&-1===r.indexOf(t)?`${r}${g(t)}`:r}(n,t),n=m(n),n}function I(r){return function(r,t){if(!t)return;let n=t;d(t)&&(n=p(n)),n=x("shadow",n),n=m(n);try{return o[n]}catch(r){return}}(0,r)}function k(r,t){if(!r||0!==t&&!t)return;const n=r.split(",");return`rgba(${parseInt(n[0].slice(4))},${parseInt(n[1])},${parseInt(n[2])},${t})`}function j(r,t){const n=r.split(","),e=-1*t;let a=parseInt(n[0].slice(4)),u=parseInt(n[1]),s=parseInt(n[2]);return a=Math.round((0-a)*e)+a,u=Math.round((0-u)*e)+u,s=Math.round((0-s)*e)+s,a=a<0?0:a,a=a>255?255:a,u=u<0?0:u,u=u>255?255:u,s=s<0?0:s,s=s>255?255:s,`rgb(${a},${u},${s})`}const M=r=>r.substring(1,r.length-1),w={"xxx-small":M(i),"xx-small":M(c),"x-small":M(s),small:M(u),medium:M(a),large:M(e),"x-large":M(n),"xx-large":M(t),"xxx-large":M(r)},O=Object.keys(w).filter((r=>-1!==r.indexOf("x-small")));Object.keys(w).filter((r=>!O.includes(r)));export{w as a,O as b,y as c,I as d,b as g,h as p,k as r,j as s}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{h as o}from"./p-BPFqbaxm.js";const s=o=>{"setFocus"in o?o.setFocus():o.focus()},a=({moveFocusTo:a})=>o("div",{class:"duet-focus-guard","aria-hidden":"true",tabIndex:0,onFocus:()=>s(a)});export{a as F,s as f}
4
+ import{h as o}from"./p-BfHFKBVa.js";const s=o=>{"setFocus"in o?o.setFocus():o.focus()},a=({moveFocusTo:a})=>o("div",{class:"duet-focus-guard","aria-hidden":"true",tabIndex:0,onFocus:()=>s(a)});export{a as F,s as f}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,h as t,H as a,g as r}from"./p-BPFqbaxm.js";import{D as o}from"./p-BWvtXbhA.js";import{i as d}from"./p-C-YpEPL-.js";import{g as n}from"./p-BkHWWyft.js";import"./p-C6E9F6QT.js";const g=class{constructor(t){e(this,t),this.theme="",this.variation="default",this.background="normal",this.margin="auto",this.getVariationLabel=()=>{if("subtle"===this.variation)return"";const e=["default","success","danger","warning"].includes(this.variation)?this.variation:"default";return n(o[e])}}componentWillLoad(){d(this)}render(){const e=`background-${this.background}`;return t(a,{key:"b14e614dd4023904fc135cd76117c4c80a32cfc0",class:{"duet-m-0":"none"===this.margin}},t("span",{key:"30f4bceaecb891f532f693953286c38a23c9a6a7",class:{"duet-badge":!0,[this.variation]:!0,[e]:!0,"duet-theme-turva":"turva"===this.theme}},t("duet-visually-hidden",{key:"e42b91566e1f09c725692fbe706fd068a7e1ac6f"},this.getVariationLabel()),t("slot",{key:"7290ab4b6702d3f5a3f5444a8eb66f37163956f1"})))}get element(){return r(this)}};g.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:4px !important;margin-bottom:2px !important;display:inline-block;width:auto;vertical-align:middle}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-badge{display:inline-block;width:100%;padding:4.4444444444px 12px 5.4444444444px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.75rem;font-style:normal;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);text-align:center;word-break:break-word;vertical-align:middle;background:#d9ebf4;border-radius:20rem}.duet-badge.duet-p-0{padding:0 !important}.duet-badge.duet-m-0{margin:0 !important}.duet-badge.duet-theme-turva{padding:5.4444444444px 12px 4.4444444444px;font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-weight:700;color:rgb(23, 28, 58);background:#e8e8eb}.duet-badge.warning{background:#fdecc9}.duet-badge.warning.duet-theme-turva{background:#fdecc9}.duet-badge.danger{background:#f7d2dc}.duet-badge.danger.duet-theme-turva{background:#f7d2dc}.duet-badge.success{background:#d6e6e1}.duet-badge.success.duet-theme-turva{background:#d6e6e1}.duet-badge.subtle{color:rgb(98, 121, 138);background:none;outline:1px solid rgb(212, 223, 229);outline-offset:-1px}.duet-badge.subtle.duet-theme-turva{color:rgb(113, 118, 132);background:none;outline-color:rgb(222, 224, 228)}.duet-badge.background-strong.default{color:rgb(255, 255, 255);background:rgb(0, 119, 179)}.duet-badge.background-strong.default.duet-theme-turva{color:rgb(255, 255, 255);background:rgb(23, 28, 58)}.duet-badge.background-strong.warning{background:#f9c153}.duet-badge.background-strong.warning.duet-theme-turva{background:#f9c153}.duet-badge.background-strong.danger{color:rgb(255, 255, 255);background:rgb(214, 28, 82)}.duet-badge.background-strong.danger.duet-theme-turva{color:rgb(255, 255, 255);background:rgb(214, 28, 82)}.duet-badge.background-strong.success{color:rgb(255, 255, 255);background:rgb(48, 131, 105)}.duet-badge.background-strong.success.duet-theme-turva{color:rgb(255, 255, 255);background:rgb(48, 131, 105)}.duet-badge.background-strong.subtle{border-color:rgb(181, 198, 208);outline-color:rgb(8, 42, 77)}.duet-badge.background-strong.subtle.duet-theme-turva{border-color:rgb(199, 202, 207);outline-color:rgb(23, 28, 58)}:host(.duet-theme-turva2) .duet-badge.duet-theme-turva.default{color:#172a3b;background:#e8eaeb}:host(.duet-theme-turva2) .duet-badge.duet-theme-turva.background-strong.default{color:rgb(255, 255, 255);background:#172a3b}:host(.duet-theme-turva2) .duet-badge.duet-theme-turva.background-strong.subtle{outline-color:#172a3b}';export{g as duet_badge}
4
+ import{r as e,h as t,H as a,g as r}from"./p-BfHFKBVa.js";import{D as o}from"./p-BWvtXbhA.js";import{i as d}from"./p-BFsh4y5I.js";import{g as n}from"./p-D4WDSjzx.js";import"./p-C6E9F6QT.js";const g=class{constructor(t){e(this,t),this.theme="",this.variation="default",this.background="normal",this.margin="auto",this.getVariationLabel=()=>{if("subtle"===this.variation)return"";const e=["default","success","danger","warning"].includes(this.variation)?this.variation:"default";return n(o[e])}}componentWillLoad(){d(this)}render(){const e=`background-${this.background}`;return t(a,{key:"446fcb8a0becb11a4043774efb1611dd9d89d82d",class:{"duet-m-0":"none"===this.margin}},t("span",{key:"56ca2601a6f378068ce6d1c695089c0d131e9b7d",class:{"duet-badge":!0,[this.variation]:!0,[e]:!0,"duet-theme-turva":"turva"===this.theme}},t("duet-visually-hidden",{key:"b1105a9f4a43ee6f9379cb8c02a06328830bbaa6"},this.getVariationLabel()),t("slot",{key:"2922cf32e24472ae3c8685a1ea90a27c0112b740"})))}get element(){return r(this)}};g.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:4px !important;margin-bottom:2px !important;display:inline-block;width:auto;vertical-align:middle}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-badge{display:inline-block;width:100%;padding:4.4444444444px 12px 5.4444444444px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.75rem;font-style:normal;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);text-align:center;word-break:break-word;vertical-align:middle;background:#d9ebf4;border-radius:20rem}.duet-badge.duet-p-0{padding:0 !important}.duet-badge.duet-m-0{margin:0 !important}.duet-badge.duet-theme-turva{padding:5.4444444444px 12px 4.4444444444px;font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-weight:700;color:rgb(23, 28, 58);background:#e8e8eb}.duet-badge.warning{background:#fdecc9}.duet-badge.warning.duet-theme-turva{background:#fdecc9}.duet-badge.danger{background:#f7d2dc}.duet-badge.danger.duet-theme-turva{background:#f7d2dc}.duet-badge.success{background:#d6e6e1}.duet-badge.success.duet-theme-turva{background:#d6e6e1}.duet-badge.subtle{color:rgb(98, 121, 138);background:none;outline:1px solid rgb(212, 223, 229);outline-offset:-1px}.duet-badge.subtle.duet-theme-turva{color:rgb(113, 118, 132);background:none;outline-color:rgb(222, 224, 228)}.duet-badge.background-strong.default{color:rgb(255, 255, 255);background:rgb(0, 119, 179)}.duet-badge.background-strong.default.duet-theme-turva{color:rgb(255, 255, 255);background:rgb(23, 28, 58)}.duet-badge.background-strong.warning{background:#f9c153}.duet-badge.background-strong.warning.duet-theme-turva{background:#f9c153}.duet-badge.background-strong.danger{color:rgb(255, 255, 255);background:rgb(214, 28, 82)}.duet-badge.background-strong.danger.duet-theme-turva{color:rgb(255, 255, 255);background:rgb(214, 28, 82)}.duet-badge.background-strong.success{color:rgb(255, 255, 255);background:rgb(48, 131, 105)}.duet-badge.background-strong.success.duet-theme-turva{color:rgb(255, 255, 255);background:rgb(48, 131, 105)}.duet-badge.background-strong.subtle{border-color:rgb(181, 198, 208);outline-color:rgb(8, 42, 77)}.duet-badge.background-strong.subtle.duet-theme-turva{border-color:rgb(199, 202, 207);outline-color:rgb(23, 28, 58)}:host(.duet-theme-turva2) .duet-badge.duet-theme-turva.default{color:#172a3b;background:#e8eaeb}:host(.duet-theme-turva2) .duet-badge.duet-theme-turva.background-strong.default{color:rgb(255, 255, 255);background:#172a3b}:host(.duet-theme-turva2) .duet-badge.duet-theme-turva.background-strong.subtle{outline-color:#172a3b}';export{g as duet_badge}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,c as a,h as t,H as i}from"./p-BPFqbaxm.js";import{i as n}from"./p-C-YpEPL-.js";const r=class{constructor(t){e(this,t),this.duetChange=a(this,"duetChange",3),this.theme="",this.multiple=!1,this.accept=void 0,this.onChange=e=>{e.preventDefault(),e.stopPropagation(),this.duetChange.emit({originalEvent:e,data:{files:this.nativeInput.files},component:"duet-file-chooser"})}}async open(){var e;null===(e=this.nativeInput)||void 0===e||e.click()}async getFiles(){return this.nativeInput.files}componentWillLoad(){n(this)}render(){return t(i,{key:"d6f332ceab0e71d4a1d4a31f67d8ebaaa1b2a74e"},t("duet-visually-hidden",{key:"d8a1e009bd303b11addfd69cde730a0158e65052","aria-hidden":"true"},t("input",{key:"ed86a42e866d06c423e616b5b2ec3859483874e1",ref:e=>{this.nativeInput=e},type:"file",class:{"duet-upload":!0},"aria-hidden":"true",tabIndex:-1,onChange:this.onChange,multiple:this.multiple,accept:this.accept})))}};r.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.container{display:flex;flex-direction:row;gap:8px;align-items:center}.container .label{margin-bottom:8px}";export{r as duet_file_chooser}
4
+ import{r as e,c as a,h as t,H as i}from"./p-BfHFKBVa.js";import{i as n}from"./p-BFsh4y5I.js";const r=class{constructor(t){e(this,t),this.duetChange=a(this,"duetChange",3),this.theme="",this.multiple=!1,this.accept=void 0,this.onChange=e=>{e.preventDefault(),e.stopPropagation(),this.duetChange.emit({originalEvent:e,data:{files:this.nativeInput.files},component:"duet-file-chooser"})}}async open(){var e;null===(e=this.nativeInput)||void 0===e||e.click()}async getFiles(){return this.nativeInput.files}componentWillLoad(){n(this)}render(){return t(i,{key:"d6f332ceab0e71d4a1d4a31f67d8ebaaa1b2a74e"},t("duet-visually-hidden",{key:"d8a1e009bd303b11addfd69cde730a0158e65052","aria-hidden":"true"},t("input",{key:"ed86a42e866d06c423e616b5b2ec3859483874e1",ref:e=>{this.nativeInput=e},type:"file",class:{"duet-upload":!0},"aria-hidden":"true",tabIndex:-1,onChange:this.onChange,multiple:this.multiple,accept:this.accept})))}};r.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.container{display:flex;flex-direction:row;gap:8px;align-items:center}.container .label{margin-bottom:8px}";export{r as duet_file_chooser}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ import{r as t,h as e,H as a,g as o,c as i}from"./p-BfHFKBVa.js";import{i as r}from"./p-BFsh4y5I.js";import{h as s,g as l}from"./p-x84EsPoI.js";import{s as n,u as d,b,p as u,d as c,e as h,f as p,g}from"./p-Db8rvjPI.js";import{g as m,c as f,d as v,a as x}from"./p-D4WDSjzx.js";import{d as k}from"./p-Do6ugHz0.js";import{c as w}from"./p-Cfr_DJqU.js";import"./p-C6E9F6QT.js";import"./p-Z0D6Gy9e.js";const y=class{constructor(e){t(this,e),this.currentIndex=0,this.scrollPaneElement=void 0,this.hasCollapseButtonLabelSlot=!1,this.scrollPaneAtStart=!0,this.needsScrolling=!0,this.scrollPaneAtEnd=!1,this.childrenData={},this.resizeObserver=new ResizeObserver((t=>{if(1===(null==t?void 0:t.length)){const e=this.getOverlayWidth();this.checkScrollingNeeded(t[0].target,e)}})),this.theme="",this.identifier="",this.collapsed=!1,this.buttons=!0,this.buttonAlignment="center",this.buttonPosition="relative",this.center=!1,this.padding="none",this.gap="large",this.selected=0,this.stretch=!1,this.collapsedOnClick=()=>{this.collapsed=!this.collapsed}}watchPropHandler(t){this.scrollToElement(t,"center")}componentWillLoad(){r(this),this.hasCollapseButtonLabelSlot=s(this.element,"collapse-button-label")}componentDidLoad(){requestAnimationFrame((()=>{this.scrollPaneElement&&(this.checkScrollingNeeded(this.scrollPaneElement,"absolute"===this.buttonPosition?0:5),this.updateScrollButtons(),this.resizeObserver.observe(this.scrollPaneElement))}))}disconnectedCallback(){this.resizeObserver.disconnect()}getScrollPaneElements(){return l(this.element)}checkScrollingNeeded(t=this.scrollPaneElement,e=5){var a;if(!t)return;const o=(null===(a=t.parentElement)||void 0===a?void 0:a.getBoundingClientRect().width)||0,i=t.scrollWidth,r=2*this.getOverlayWidth();this.needsScrolling=i-r>o+e,this.needsScrolling?this.updateScrollButtons():(this.scrollPaneAtStart=!0,this.scrollPaneAtEnd=!0)}getLastVisibleElement(){const t=this.getScrollPaneElements().find((t=>t.getBoundingClientRect().x+t.getBoundingClientRect().width-this.scrollPaneElement.getBoundingClientRect().x>this.scrollPaneElement.clientWidth)),e=this.getScrollPaneElements().indexOf(t);return t.clientWidth>this.scrollPaneElement.clientWidth?e:e-1}getFirstVisibleElement(){const t=this.getScrollPaneElements(),e=t.find((t=>t.getBoundingClientRect().x>this.scrollPaneElement.getBoundingClientRect().x)),a=e?t.indexOf(e):t.length;var o=Math.max(a-1,0);return t[o].clientWidth>this.scrollPaneElement.clientWidth?o:a}updateScrollButtons(t=null,e=this.scrollPaneElement){if(!this.buttons)return;if(t&&t.clientWidth>this.scrollPaneElement.clientWidth){const e=this.getScrollPaneElements().indexOf(t);return 0==e&&(this.scrollPaneAtStart=!0),void(e==this.getScrollPaneElements().length-1&&(this.scrollPaneAtEnd=!0))}e.scrollLeft<=0?this.scrollPaneAtStart=!0:e.scrollLeft>0&&(this.scrollPaneAtStart=!1);const a=Math.round(e.clientWidth+e.scrollLeft+this.getOverlayWidth()),o=Math.round(e.scrollWidth);this.scrollPaneAtEnd=a>=o}scrollToElement(t=this.currentIndex,e){const a=this.getScrollPaneElements();if(!a||0===a.length)return;t+1>=a.length&&(t=a.length-1),t<0&&(t=0);let o=a[0].getBoundingClientRect().x,i=5;const r=()=>{if(a[0].getBoundingClientRect().x===o){if(i--,0!==i)return void window.requestAnimationFrame(r);this.updateScrollButtons(a[t])}else window.requestAnimationFrame(r),o=a[0].getBoundingClientRect().x};a[t].scrollIntoView({behavior:"smooth",block:"nearest",inline:e}),window.requestAnimationFrame(r)}scrollLeft(){this.scrollPaneAtEnd=!1;const t=this.getFirstVisibleElement();this.scrollToElement(t-1,"center")}scrollRight(){this.scrollPaneAtStart=!1;const t=this.getLastVisibleElement();this.scrollToElement(t+1,"center")}getOverlayWidth(){return"absolute"===this.buttonPosition?0:10}renderButton(t){const a="turva"===this.theme?"color-primary-darker-turva":"color-primary",o="turva"===this.theme?"color-gray-turva":"color-gray",i=()=>{"left"===t?this.scrollLeft():this.scrollRight()},r="left"===t?this.scrollPaneAtStart:this.scrollPaneAtEnd;return e("div",{class:{"duet-scrollable-button-container":!0,[`${t}`]:!0,"duet-scrollable-button-container--occluded":!this.needsScrolling,[`duet-scrollable-button-container--${this.buttonPosition}`]:!0},hidden:!this.buttons||"absolute"===this.buttonPosition&&r},e("span",{part:`${this.identifier}-button-${t}`,"aria-hidden":"true",class:{"duet-scrollable-button":!0,[`duet-scrollable-button--${this.buttonPosition}`]:!0,[`duet-scrollable-button--${this.buttonAlignment}`]:!0,[`duet-scrollable-button--${t}`]:!0},onClick:()=>{i(),document.activeElement&&document.activeElement.blur()},hidden:!this.buttons||r},e("duet-icon",{color:r?o:a,name:"left"===t?"action-arrow-left":"action-arrow-right",size:"absolute"===this.buttonPosition?"x-small":"small",margin:"none"})))}render(){return e(a,{key:"08bd619c649c87a18350a6482f12d1e4f5faa74f",class:{"duet-theme-turva":"turva"===this.theme,"duet-theme-default":"default"===this.theme}},this.hasCollapseButtonLabelSlot&&e("div",{key:"bf374209112d29e4af9efff12abdf32d54b68b7b",class:{collapse:!0,hide:!this.needsScrolling&&!this.collapsed}},e("duet-button",{key:"436c9918ceb503be3611af38dc0513ab300891af",variation:"plain",margin:"none","center-text":!0,onClick:()=>this.collapsedOnClick()},e("slot",{key:"64504fe187f7ce121654dbf25597dd06ef23fbb1",name:"collapse-button-label"}))),e("div",{key:"10852d822fc4164466dfe48b2ccf33904cae5e14",class:{"duet-scrollable-items":!0,buttons:this.buttons,center:this.center,"duet-theme-turva":"turva"===this.theme}},this.buttons&&this.renderButton("left"),e("div",{key:"119261686c6a1e4511d4ed3ba74d3c5795f83b34",class:{"duet-scrollable-list":!0,[`duet-scrollable-list--${this.buttonPosition}`]:!0,[`gap-${this.gap}`]:!0,collapsed:this.collapsed,[`duet-overflow-padding--${this.padding}`]:"none"!==this.padding,[`duet-scrollable-list--${this.buttonPosition}`]:"absolute"===this.buttonPosition,"duet-scrollable-stretch":this.stretch},onScroll:()=>this.updateScrollButtons(),ref:t=>this.scrollPaneElement=t},e("slot",{key:"dd02f8d349e59303232b4338d115fd192cb31f9b"})),this.buttons&&this.renderButton("right")))}get element(){return o(this)}static get watchers(){return{selected:["watchPropHandler"]}}};y.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent}:host{position:relative !important}:host .duet-scrollable-items{position:relative;display:flex}:host .duet-scrollable-items.buttons .duet-scrollable-button-container{position:relative;flex:0 0 auto;flex-basis:40px}:host .duet-scrollable-items.buttons .duet-scrollable-button-container--occluded{flex-basis:0;flex-shrink:1;width:0;padding:10px 0;overflow:hidden;visibility:hidden}:host .duet-scrollable-items.buttons .duet-scrollable-button-container--absolute{position:absolute;top:0;z-index:210;width:auto;height:100%;padding:0 16px;background-color:rgb(255, 255, 255)}:host .duet-scrollable-items.buttons .duet-scrollable-button-container--absolute.left{left:0}:host .duet-scrollable-items.buttons .duet-scrollable-button-container--absolute.right{right:0}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button{position:absolute;display:flex;flex:0 0 auto;flex-basis:40px;align-items:center;height:100%;cursor:pointer;transition:transform 300ms ease}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button:active duet-icon{transition:transform 300ms ease;transform:scale(0.8)}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--left{left:0;padding:10px 10px 10px 0}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--right{right:0;padding:10px 0 10px 10px}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--top{align-items:flex-start}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--bottom{align-items:flex-end}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute{padding:0 7px;border:1px solid rgb(212, 223, 229)}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute.duet-scrollable-button--left{border-radius:8px 0 0 8px}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute.duet-scrollable-button--right{border-radius:0 8px 8px 0}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute:hover{border-color:rgb(0, 119, 179);border-width:2px;}.duet-theme-turva :host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute:hover{border-color:rgb(113, 118, 132)}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button[hidden]{display:none !important}:host .duet-scrollable-items.duet-theme-turva .duet-scrollable-button-container .duet-scrollable-button--absolute:hover{border-color:rgb(113, 118, 132)}:host .duet-scrollable-items .duet-scrollable-list{display:flex;flex-wrap:nowrap;padding-inline:10px;margin-inline:-10px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scroll-snap-type:x mandatory;scroll-behavior:smooth;scroll-margin:0 20px;-ms-overflow-style:-ms-autohiding-scrollbar;-webkit-overflow-scrolling:touch;-webkit-mask:linear-gradient(to right, transparent 0, #fff 10px), linear-gradient(to left, transparent 0, #fff 10px);-webkit-mask-size:50% 100%, 50% 100%;-webkit-mask-position:left, right;-webkit-mask-repeat:no-repeat;mask:linear-gradient(to right, transparent 0, #fff 10px), linear-gradient(to left, transparent 0, #fff 10px);mask-size:50% 100%, 50% 100%;mask-position:left, right;mask-repeat:no-repeat;}:host .duet-scrollable-items .duet-scrollable-list--absolute{padding-right:0;padding-left:2px;margin-inline:0;-webkit-mask:none !important;mask:none !important}:host .duet-scrollable-items .duet-scrollable-list:not(.buttons){white-space:normal}:host .duet-scrollable-items .duet-scrollable-list::-webkit-scrollbar{display:none}:host .duet-scrollable-items .duet-scrollable-list.collapsed{flex-wrap:wrap}:host .duet-scrollable-items .duet-scrollable-list.gap-none{gap:0}:host .duet-scrollable-items .duet-scrollable-list.gap-large{gap:20px}:host .duet-scrollable-items .duet-scrollable-list.duet-overflow-padding--xx-small{padding-top:4px;padding-bottom:4px}:host .duet-scrollable-items .duet-scrollable-list.duet-overflow-padding--x-small{padding-top:8px;padding-bottom:8px}:host .duet-scrollable-items .duet-scrollable-list.duet-overflow-padding--small{padding-top:12px;padding-bottom:12px}:host .duet-scrollable-items .duet-scrollable-list.duet-overflow-padding--medium{padding-top:16px;padding-bottom:16px}:host .duet-scrollable-items .duet-scrollable-list.duet-scrollable-stretch{width:100%}:host .duet-scrollable-items.center{justify-content:center}:host .duet-scrollable-items.center .duet-scrollable-list.collapsed{justify-content:center}.collapse{width:100%;text-align:center}.collapse.hide{visibility:hidden}::slotted(*){flex-shrink:0;margin-left:0;-webkit-transition:-webkit-transform 0.2s ease-in-out;transition:-webkit-transform 0.2s ease-in-out;transition:transform 0.2s ease-in-out;transition:transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;scroll-snap-align:center}:host(.duet-theme-turva2) .duet-theme-turva .duet-scrollable-button-container .duet-scrollable-button--absolute:hover{border-color:#7891a4}:host(.duet-theme-turva2) .duet-scrollable-items.duet-theme-turva .duet-scrollable-button-container .duet-scrollable-button--absolute:hover{border-color:#7891a4}";const z=class{constructor(e){t(this,e),this.theme="",this.accessibleDescriptionDefault=null,this.accessibleDescription=this.accessibleDescriptionDefault?m(this.accessibleDescriptionDefault):null,this.accessibleLabelledBy=void 0,this.contentId=void 0,this.setupContentElement=()=>{this.contentId&&(this.tabpanelElement=document.getElementById(this.contentId),this.tabpanelElement&&(this.tabpanelElement.setAttribute("role","tabpanel"),this.tabpanelElement.setAttribute("tabindex","-1"),this.tabpanelElement.removeEventListener("focus",this.tabpanelElementFocusListener),this.tabpanelElement.removeEventListener("blur",this.tabpanelElementBlurListener),this.tabpanelElement.addEventListener("focus",this.tabpanelElementFocusListener),this.tabpanelElement.addEventListener("blur",this.tabpanelElementBlurListener),this.accessibleDescription&&this.tabpanelElement.setAttribute("aria-description",this.accessibleDescription),this.accessibleLabelledBy&&this.tabpanelElement.setAttribute("aria-labelledby",this.accessibleLabelledBy),this.tabpanelElement.toggleAttribute("hidden",!this.selected)))},this.tabpanelElementFocusListener=()=>{this.element.classList.contains("user-is-tabbing")&&(this.tabpanelElement.style.outline="0",this.tabpanelElement.style.boxShadow=k("turva"===this.theme?"focus-turva":"focus"))},this.tabpanelElementBlurListener=()=>{this.tabpanelElement.style.outline=null,this.tabpanelElement.style.boxShadow=null}}componentWillLoad(){r(this)}connectedCallback(){f(this,{prop:"accessibleDescription",defaults:"accessibleDescriptionDefault"}),n(this),this.notificationMark&&(this.indicator="warning"===this.notificationMark?"change":"error"),this.setupContentElement()}disconnectedCallback(){v(this),d(this),this.tabpanelElement&&(this.tabpanelElement.removeEventListener("focus",this.tabpanelElementFocusListener.bind(this)),this.tabpanelElement.removeEventListener("blur",this.tabpanelElementBlurListener.bind(this)),this.tabpanelElement=void 0)}setupSelected(t,e){!!t!=!!e&&this.setupContentElement()}async setFocus(t){this.tabpanelElement.focus(t)}render(){return e("div",{key:"a022a330a4f4eef2664a452c8f0df2b84e46c429",ref:t=>{this.contentId||(this.tabpanelElement=t)},role:"tabpanel",class:{"duet-theme-turva":"turva"===this.theme,"duet-tab":!0,selected:this.selected,"has-content-id":!!this.contentId},"aria-description":this.accessibleDescription,"aria-labelledby":this.accessibleLabelledBy,tabindex:"-1"},e("slot",{key:"fcb609d847cf496ada314f386a9b82dab58a7c19"}))}get element(){return o(this)}static get watchers(){return{selected:["setupSelected"]}}};z.style=":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-tab{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:none;width:100%}.duet-tab.selected{display:block}.duet-tab.has-content-id,.duet-tab.has-content-id.selected{display:none}:host(.user-is-tabbing) .duet-tab:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-tab.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}";const S=class{constructor(e){t(this,e),this.duetChange=i(this,"duetChange",3),this.duetTabChange=i(this,"duetTabChange",7),this.duetTabChangeRequested=i(this,"duetTabChangeRequested",7),this.id=w("DuetTabGroup"),this.tabs=[],this.selected=void 0,this.theme="",this.scrolls=!0,this.collapses=!1,this.accessibleLabel=void 0,this.variation="default",this.language=x(),this.labelDefaults={fi:"Valitse",en:"Choose",sv:"Välj"},this.label=m(this.labelDefaults,this.language),this.labelHidden=!0,this.identifier=this.id,this.margin="auto",this.padding="auto",this.setTabIndex=!0,this.tabChangeConfirm=!1,this.switchLargeBreakpoint="small",this.fillSpace=!1,this.stretch=!1,this.handleKeyDown=t=>{let e;c(t)||h(t)?e=t.target.previousElementSibling:(p(t)||g(t))&&(e=t.target.nextElementSibling),b(t)&&!u(t)&&(t.preventDefault(),this.element.querySelector(":scope > duet-tab[selected]").setFocus()),e&&(t.preventDefault(),e.click(),e.focus())},this.onTabSelect=t=>{this.tabChangeConfirm?t!==this.selected&&this.duetTabChangeRequested.emit({value:t,component:"duet-tab-group"}):this.openTab(t)},this.scrollToActive=()=>{setTimeout((()=>{const t=this.tabsContainer.querySelector(".selected");t&&t.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})}),50)}}async connectedCallback(){"undefined"!=typeof MutationObserver&&(this.mutationO=new MutationObserver((()=>{this.updateTabs()})),this.mutationO.observe(this.element,{attributes:!0,attributeFilter:["label","selected"],childList:!0,characterData:!0,subtree:!0})),await this.updateTabs(),n(this)}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0),d(this)}componentWillLoad(){r(this)}componentDidLoad(){this.intersectionObserver=new IntersectionObserver((t=>{t.length>0&&t[0].isIntersecting&&(this.scrollToActive(),this.intersectionObserver.disconnect())}),{root:null,threshold:0}),this.intersectionObserver.observe(this.element)}async openTab(t){if(t>=this.tabs.length)throw new Error(`[duet-tabs] Index ${t} is out of bounds of tabs length`);this.selected=t,this.tabs.forEach(((e,a)=>{e.selected=a===t})),this.scrollToActive();const e={value:t,component:"duet-tab-group"};this.duetChange.emit(e),this.duetTabChange.emit(e)}async refresh(){console.log("[duet-tabs] Refresh method is deprecated and will be removed in the future version.")}getTabs(){const t=Array.from(this.element.querySelectorAll("duet-tab")).filter((t=>t.closest("duet-tab-group")===this.element));if(0===t.length)throw new Error("[duet-tabs] Must have at least one tab");return t}getButtonId(t){return`${this.identifier}-button-${t}`}getTabId(t){return`${this.identifier}-tab-${t}`}getAccessibleDescription(t){return this.tabs[t].getAttribute("accessible-description")||null}async updateTabs(){let t;this.tabs=this.getTabs(),this.tabs.forEach(((e,a)=>{e.id=this.getTabId(a),e.selected&&(void 0===t?t=a:e.selected=!1)})),void 0===t&&(t=0,this.tabs[0].selected=!0),this.selected=t}isCentered(){return window&&"center"==window.getComputedStyle(this.element).textAlign}render(){const t="plain-scrolling"===this.variation?"duet-tab-variation-plain":`duet-tab-variation-${this.variation}`,a="checked"===this.variation||"plain-scrolling"===this.variation,o=`switch-large-at-${this.switchLargeBreakpoint?this.switchLargeBreakpoint:"small"}`,i=this.tabs.map(((t,a)=>e("button",{role:"tab",id:this.getButtonId(a),"aria-selected":t.selected?"true":"false","aria-description":this.getAccessibleDescription(a),tabindex:t.selected?"0":"-1",part:`${this.identifier}-button ${t.selected?`${this.identifier}-button--selected`:""}`,type:"button",class:{"duet-p-0":"none"===this.padding,"duet-tab-button":!0,"stackable-tab":"checked"===this.variation&&this.tabs.length<=3,selected:t.selected,[o]:!!["default","plain","plain-scrolling"].includes(this.variation)},onClick:()=>this.onTabSelect(a),onKeyDown:t=>this.handleKeyDown(t)},"checked"===this.variation?e("div",{class:{"checked-tab-content":!0,"stackable-checked-tab-content":this.tabs.length<=3}},e("div",{class:{"checked-tab-description":!0,"stackable-description":this.tabs.length<=3}},e("p",null,t.label),e("p",{class:{"tab-caption":!0,selected:t.selected}},t.caption)),e("div",{class:{"stackable-checkmark":this.tabs.length<=3}},e("duet-checkmark",{theme:this.theme,checked:t.selected,type:"radio","presentation-only":!0,center:!0}))):t.label,t.indicator&&e("duet-indicator",{variation:t.indicator,"accessible-label":t.indicatorAccessibleLabel}))));return e("div",{key:"825b9d7dcb582ff4f97f5d28a840ecc73a2eecd0",class:{"duet-tab-group":!0,"duet-theme-turva":"turva"===this.theme,[t]:!0,"duet-tab-plain-scrolling":"plain-scrolling"===this.variation,"duet-tab-group-scrolls":!0},"aria-label":this.accessibleLabel},e("div",{key:"b6c9dbefb1560a3e5c6c4bfe934b1c5f647b4a21",role:"tablist",class:{"duet-m-0":"none"===this.margin||"checked"===this.variation,"duet-tab-group-tabs":!0,"duet-tab-group-hidden":this.tabs.length>3&&!a,"duet-tab-group-fill-space":this.fillSpace&&!this.stretch&&"default"===this.variation,"duet-tab-group-stretch":this.stretch},ref:t=>{this.tabsContainer=t}},"checked"===this.variation?i:e("div",{class:{"duet-tab-group-scrollable-wrapper":!0,"duet-tab-group-fill-space-wrapper":this.fillSpace&&"default"===this.variation}},this.fillSpace&&!this.stretch&&"default"===this.variation&&e("div",{class:"duet-scrollable-stretch-overlay"},e("div",{class:"background"}),e("div",{class:"border"})),e("duet-scrollable",{selected:this.selected,identifier:this.identifier,gap:["default","plain","plain-scrolling"].includes(this.variation)?"none":"large",buttonPosition:"default"===this.variation?"absolute":"relative",center:this.isCentered()?this.isCentered():"center"==this.element.style.textAlign,theme:this.theme,stretch:this.stretch},i))),e("div",{key:"1452eb49358c1531712a04b2da03822e59ab1715",class:{"duet-tab-group-content":!0,"duet-m-0":"none"===this.margin,"checked-group-content":"checked"===this.variation}},e("slot",{key:"dabdab53e662fc855275970752b71965f60aed1c"})))}get element(){return o(this)}};S.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;display:block;width:100%}.duet-tab-group-tabs{margin-bottom:28px !important;display:block;width:100%;max-width:100%;padding-top:2px;list-style:none}.duet-tab-group-tabs.duet-m-0{margin:0 !important}.duet-tab-variation-plain .duet-tab-group-tabs{border-bottom:1px solid rgb(212, 223, 229)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-group-tabs{border-bottom-color:rgb(222, 224, 228)}.duet-tab-variation-checked .duet-tab-group-tabs{display:flex;gap:4px;padding-top:0;padding-right:12px;padding-left:12px;overflow-x:scroll;-ms-overflow-style:none;scrollbar-width:none;}.duet-tab-variation-checked .duet-tab-group-tabs::-webkit-scrollbar{display:none}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-group-tabs{gap:8px;padding-right:16px;padding-left:16px;overflow:visible}}.duet-tab-plain-scrolling .duet-tab-group-tabs{display:flex;overflow-x:scroll;scroll-behavior:smooth;-ms-overflow-style:none;scrollbar-width:none;}.duet-tab-plain-scrolling .duet-tab-group-tabs::-webkit-scrollbar{display:none}@media (min-width: 36em){.duet-tab-plain-scrolling .duet-tab-group-tabs{display:block;overflow:auto}}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper{}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper{position:relative;width:100%;overflow:hidden;border-radius:8px;}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay{display:contents}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay .background,.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay .border{position:absolute;width:100%;height:100%;pointer-events:none;border-radius:8px}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay .background{z-index:100;background:rgb(245, 248, 250)}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay .background::after{position:absolute;top:0;left:0;width:100%;height:100%;margin-block:1px;content:"";border-radius:8px;box-shadow:0 3px 2px -1px rgba(0, 41, 77, 0.1) inset, 0 0 0 rgb(212, 223, 229)}.duet-theme-turva .duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay .background::after{box-shadow:0 3px 2px -1px rgba(23, 28, 58, 0.1) inset, 0 0 0 rgb(222, 224, 228)}.duet-tab-group-tabs .duet-tab-group-scrollable-wrapper.duet-tab-group-fill-space-wrapper .duet-scrollable-stretch-overlay .border{z-index:206;border:1px solid rgb(212, 223, 229)}@media (min-width: 36em){duet-select{display:none !important}}.duet-tab-button{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:inline-block;width:auto;padding:20px;margin-left:-2px;overflow:visible;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.1;text-align:left;text-decoration:none;cursor:pointer;border-right:2px solid rgb(212, 223, 229);border-radius:0;transition:150ms ease}.duet-tab-button.duet-p-0{padding:0 !important}.duet-tab-button.duet-m-0{margin:0 !important}.duet-tab-group-stretch .duet-tab-button{flex:1 1 0;min-width:fit-content;text-align:center}.duet-tab-button duet-indicator{position:absolute;top:5px;right:5px}.duet-tab-variation-plain .duet-tab-button duet-indicator{top:calc(50% - 0.5rem - 7px);right:-7px}.duet-theme-turva .duet-tab-button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-tab-button.duet-p-0{padding:0 !important}.duet-tab-button:hover{z-index:200;border-color:rgb(127, 150, 165)}.duet-theme-turva .duet-tab-button:hover{border-color:rgba(199, 202, 207, 0.8)}.duet-tab-button:active{opacity:0.75;transition:none}.duet-tab-button.selected{z-index:201;color:rgb(0, 119, 179);background:rgb(255, 255, 255);border-bottom:3px solid rgb(0, 119, 179);outline:0;box-shadow:none !important}.duet-theme-turva .duet-tab-button.selected{color:rgb(198, 12, 48);border-color:rgb(222, 224, 228);border-bottom-color:rgb(198, 12, 48)}.duet-tab-button:focus{z-index:205;outline:0}:host(.user-is-tabbing) .duet-tab-button:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-theme-turva .duet-tab-button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-tab-variation-default .duet-tab-button{z-index:200;padding:11px 20px 13px 20px;overflow:hidden;font-size:0.875rem;color:rgb(62, 84, 102);background:rgb(245, 248, 250);border:1px solid rgb(212, 223, 229)}.duet-tab-variation-default .duet-tab-button.switch-large-at-always{padding:15px 28px 17px 28px;font-size:1rem}@media (min-width: 36em){.duet-tab-variation-default .duet-tab-button.switch-large-at-small{padding:15px 28px 17px 28px;font-size:1rem}}.duet-tab-variation-default .duet-tab-button.selected{color:rgb(8, 42, 77);background:rgb(255, 255, 255);transition:none}.duet-tab-variation-default .duet-tab-button.selected::before{position:absolute;right:-1px;bottom:0;z-index:300;display:block;width:calc(100% + 2px);height:2px;content:"";background-color:rgb(0, 119, 179)}.duet-tab-variation-default .duet-tab-button.selected:focus-visible{outline:2px solid rgba(0, 119, 179, 0.8);outline-offset:-5px;box-shadow:none !important}.duet-tab-variation-default .duet-tab-button.selected:focus-visible::before{height:0}.duet-tab-variation-default .duet-tab-button:not(.selected){box-shadow:0 3px 2px -1px rgba(0, 41, 77, 0.1) inset, 0 0 0 rgb(212, 223, 229)}.duet-tab-variation-default .duet-tab-button:hover:not(.selected){color:rgb(30, 45, 59);background:rgb(228, 236, 239)}.duet-tab-variation-default .duet-tab-button:first-child{border-radius:8px 0 0 8px}.duet-tab-variation-default .duet-tab-button:last-child{border-radius:0 8px 8px 0}.duet-tab-variation-default .duet-tab-group-fill-space .duet-tab-button{z-index:200}.duet-tab-variation-default .duet-tab-group-fill-space .duet-tab-button:last-child{border-radius:0}.duet-theme-turva.duet-tab-variation-default .duet-tab-group-fill-space .duet-tab-button::before{height:3px}.duet-theme-turva.duet-tab-variation-default .duet-tab-button{color:rgb(71, 78, 101)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button.selected{color:rgb(23, 28, 58);background:rgb(255, 255, 255)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button.selected::before{background-color:rgb(198, 12, 48)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button:not(.selected){z-index:200;box-shadow:0 3px 2px -1px rgba(23, 28, 58, 0.1) inset, 0 0 0 rgb(222, 224, 228)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button:hover:not(.selected){z-index:200;color:rgb(45, 52, 79);background:rgb(234, 235, 239)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button:focus-visible{border-color:rgb(222, 224, 228);outline-color:rgba(199, 202, 207, 0.8)}.duet-tab-variation-plain .duet-tab-button{display:inline-block;width:auto;padding:12px 0;margin-left:0;font-size:0.875rem;color:rgb(81, 105, 123);border-width:0;border-bottom:2px solid transparent;border-radius:0;transition:none}.duet-tab-variation-plain .duet-tab-button.switch-large-at-always{padding:20px 0;font-size:1rem}@media (min-width: 36em){.duet-tab-variation-plain .duet-tab-button.switch-large-at-small{padding:20px 0;font-size:1rem}}.duet-tab-variation-plain .duet-tab-button:hover{color:rgb(8, 42, 77);border-bottom:2px solid rgb(0, 119, 179)}.duet-tab-variation-plain .duet-tab-button.selected{color:rgb(8, 42, 77);border-bottom:2px solid rgb(0, 119, 179)}.duet-tab-variation-plain .duet-tab-button+.duet-tab-button{margin-left:36px}.duet-theme-turva.duet-tab-variation-plain .duet-tab-button{color:rgb(71, 78, 101)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-button:hover{color:rgb(45, 52, 79);border-bottom:2px solid rgb(198, 12, 48)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-button.selected{color:rgb(23, 28, 58);border-bottom:2px solid rgb(198, 12, 48)}.duet-tab-variation-checked .duet-tab-button{position:relative;display:inline-block;flex-basis:0;flex-grow:1;width:200px;min-width:200px;padding:8px 4px;border-color:rgb(181, 198, 208);border-top:2px solid rgb(181, 198, 208);border-bottom-color:rgb(0, 119, 179);border-left:2px solid rgb(181, 198, 208);border-radius:4px 4px 0 0;transition:none}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button{border-color:rgb(181, 198, 208);border-bottom-color:rgb(113, 118, 132)}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button{min-width:0;padding:16px}}.duet-tab-variation-checked .duet-tab-button.stackable-tab{min-width:0}.duet-tab-variation-checked .duet-tab-button:first-child{margin-left:auto}.duet-tab-variation-checked .duet-tab-button:last-child{margin-right:auto}.duet-tab-variation-checked .duet-tab-button:active{opacity:1;transition:none}.duet-tab-variation-checked .duet-tab-button.selected{color:rgb(0, 119, 179);background:linear-gradient(180deg, rgb(240, 247, 250) 0%, rgb(255, 255, 255) 100%);border-color:rgb(0, 119, 179);border-bottom-color:#fff}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button.selected{color:rgb(23, 28, 58);background:linear-gradient(180deg, rgb(245, 247, 250) 0%, rgb(255, 255, 255) 100%);border-color:rgb(113, 118, 132);border-bottom-color:#fff}.duet-tab-variation-checked .duet-tab-button .checked-tab-content{display:flex;flex-direction:row;justify-content:space-between}.duet-tab-variation-checked .duet-tab-button .checked-tab-content.stackable-checked-tab-content{flex-direction:column;height:100%}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content.stackable-checked-tab-content{flex-direction:row}}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description{display:flex;flex-direction:column;overflow:hidden;overflow-wrap:break-word}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description.stackable-description{text-align:center}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description.stackable-description{text-align:left}}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{margin-top:4px;font-size:0.875rem;font-weight:400;color:rgb(98, 121, 138)}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{font-size:1rem;text-align:left}}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{color:rgb(113, 118, 132)}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption.selected{color:rgb(0, 119, 179)}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption.selected{color:rgb(113, 118, 132)}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .stackable-checkmark{order:-1;margin-top:8px;margin-bottom:8px}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .stackable-checkmark{order:1}}.duet-tab-group-content{position:relative;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(8, 42, 77);text-align:left}.duet-tab-group-content:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3 !important}.duet-theme-turva .duet-tab-group-content:focus,.duet-tab-group-content:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a !important}.duet-tab-group-content.checked-group-content{padding:28px 0 28px 0}.duet-tab-group-content.checked-group-content::after{position:absolute;top:-2px;left:0;width:100%;height:2px;content:" ";background-color:rgb(0, 119, 179)}.duet-theme-turva .duet-tab-group-content{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-theme-turva .duet-tab-group-content.checked-group-content::after{background-color:rgb(113, 118, 132)}:host(.duet-theme-turva2){}:host(.duet-theme-turva2) .duet-theme-turva .duet-tab-group-tabs.duet-tab-variation-plain{border-bottom-color:#fbe1d1}:host(.duet-theme-turva2) .duet-theme-turva.duet-tab-variation-plain .duet-tab-button:hover{border-bottom:2px solid #e61740}:host(.duet-theme-turva2) .duet-theme-turva.duet-tab-variation-plain .duet-tab-button.selected{border-bottom:2px solid #e61740}:host(.duet-theme-turva2) .duet-theme-turva .duet-tab-button{color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .duet-tab-button.selected{color:#172a3b;border-color:#fbe1d1;border-bottom-color:#e61740}:host(.duet-theme-turva2) .duet-theme-turva.duet-tab-variation-default .duet-tab-button.selected::before{background-color:#e61740}:host(.duet-theme-turva2) .duet-theme-turva.duet-tab-variation-default .duet-tab-button:focus-visible{border-color:#fbe1d1}';export{y as duet_scrollable,z as duet_tab,S as duet_tab_group}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as t,c as e,h as i,H as s,g as n}from"./p-BPFqbaxm.js";import{g as a}from"./p-DvwKrUS6.js";import{i as u}from"./p-C-YpEPL-.js";import{c as r}from"./p-Cfr_DJqU.js";import{f as o,e as h,g as l,d as b,o as d,s as c,u as p}from"./p-Db8rvjPI.js";import{a as m,b as f,g,c as v,d as x}from"./p-BkHWWyft.js";import{c as y,p as w}from"./p-D5MfS1RP.js";import"./p-C6E9F6QT.js";var k,A,D,N,S=a(A?k:(A=1,k={title:"action-add",tags:"action add plus",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M12 24a.75.75 0 0 1-.75-.75v-10.5H.75a.75.75 0 0 1 0-1.5h10.5V.75a.75.75 0 0 1 1.5 0v10.5h10.5a.75.75 0 0 1 0 1.5h-10.5v10.5A.75.75 0 0 1 12 24z"/></svg>'})),C=a(N?D:(N=1,D={title:"action-subtract",tags:"action subtract minus remove delete cancel",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.75 12.788a.75.75 0 0 1 0-1.5h22.5a.75.75 0 0 1 0 1.5z"/></svg>'}));function E(t,e){let i;if("string"==typeof t){if(""===t)return null;let s=t.replace("−","-").replace("‐","-").replace("−","-").replace("–","-").replace("—","-");e&&(s=function(t,e,i=!1){let s;const n=new Intl.NumberFormat(e).format(.5).replace(/[0-9]/g,""),a=new Intl.NumberFormat("en-US").format(.5).replace(/[0-9]/g,""),u=new Intl.NumberFormat(e).format(1e3).replace(/[0-9]/g,""),r=new Intl.NumberFormat("en-US").format(1e3).replace(/[0-9]/g,"");return s=t.replace(n,"DECIMALSEPARATOR"),s=s.replace(u,i?"THOUSANDSEPARATOR":""),s=s.replace("DECIMALSEPARATOR",a),s=s.replace("THOUSANDSEPARATOR",r),s}(s,e,!1)),s=s.replace(/\s+/g,""),i=parseFloat(s)}if("number"==typeof t&&(i=parseFloat(String(t))),!isNaN(Number(i)))return Number(i);if(null==t)return null;throw new Error("Invalid value passed to SafeParseFloat")}const I=(t,e,i)=>Math.min(Math.max(t,e),i),j=class{constructor(i){t(this,i),this.duetChange=e(this,"duetChange",3),this.duetInput=e(this,"duetInput",3),this.duetBlur=e(this,"duetBlur",7),this.duetFocus=e(this,"duetFocus",7),this.inputId=r("DuetInput"),this.proxyId=r("DuetInput"),this.language=m(),this.locale=f(this.language).locale,this.unit=f(this.language).money,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleLiveDefaults={fi:"{current} euroa valittuna",en:"{current} euros selected",sv:"{current} euro valt"},this.accessibleLive=g(this.accessibleLiveDefaults,this.language),this.accessibleLiveEnabled=!0,this.accessibleAddDefaults={fi:"Lisää summaan",en:"Add to the amount",sv:"Lägg till beloppet"},this.accessibleAdd=g(this.accessibleAddDefaults,this.language),this.accessibleSubtractDefaults={fi:"Vähennä summasta",en:"Subtract from the amount",sv:"Dra från beloppet"},this.accessibleSubtract=g(this.accessibleSubtractDefaults,this.language),this.theme="",this.margin="auto",this.expand=!1,this.min=0,this.labelDefaults={fi:"Nimilappu",en:"Label",sv:"Etikett"},this.label=g(this.labelDefaults,this.language),this.labelHidden=!1,this.max=1e6,this.error="",this.tooltip="",this.step=5e3,this.rounding=!0,this.disabled=!1,this.required=!1,this.handleFocus=()=>{this.focusedValue=this.value},this.handleKeyDown=t=>{o(t)||h(t)?this.add(t):l(t)||b(t)?this.subtract(t):d(t)&&this.clearValue(t)},this.handleChange=t=>{t.stopPropagation();const e=t.target;if(e&&e.value)try{let i=E(e.value,this.locale);(isNaN(i)||null==i)&&(i=this.min||0),this.setValue(i),this.duetInput.emit({component:"duet-number-input",originalEvent:t,value:E(this.value,this.locale).toString(),valueAsNumber:i})}catch(i){"-"!==e.value&&this.clearValue(t),this.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}else this.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})},this.handleBlur=t=>{const e=t.target;var i;if(e)if(e.value)try{let s=E(e.value,this.locale);this.rounding&&(i=this.step,s=Math.round(s/i)*i),s=I(s,this.min,this.max),s===E(this.value,this.locale)&&s===E(this.focusedValue,this.locale)||(this.setValue(s),this.emitChange(t))}catch(e){this.emitNull(t)}else this.emitNull(t)},this.emitChange=t=>{const e=E(this.value,this.locale);this.duetChange.emit({originalEvent:t,value:e.toString(),valueAsNumber:e,component:"duet-number-input"})},this.emitNull=t=>{this.duetChange.emit({originalEvent:t,value:null,valueAsNumber:null,component:"duet-number-input"})},this.localizeValue=t=>t.toLocaleString(this.locale,{useGrouping:!1}),this.setValue=t=>{this.value=this.localizeValue(t),this.duetInputElement.value=`${this.value}${this.getUnitString()}`},this.add=t=>{t&&t.preventDefault();const e=E(this.value,this.locale);if(e===this.max)return;let i=null==e?this.min:e+this.step;i%this.step!=0&&(i-=i%this.step);const s=I(i,this.min,this.max);this.value=this.localizeValue(s),this.emitChange(t)},this.subtract=t=>{t&&t.preventDefault();const e=E(this.value,this.locale);if(e===this.min)return;let i=e-this.step;i%this.step!=0&&(i+=this.step-i%this.step),i=I(i,this.min,this.max),this.value=this.localizeValue(i),this.emitChange(t)}}componentWillLoad(){u(this),this.value&&(this.value=this.localizeValue(E(this.value,this.locale))),y(this.element,"tooltip","duet-tooltip",1,!0)}connectedCallback(){v(this,[{prop:"accessibleLive",defaults:"accessibleLiveDefaults"},{prop:"accessibleAdd",defaults:"accessibleAddDefaults"},{prop:"accessibleSubtract",defaults:"accessibleSubtractDefaults"},{prop:"label",defaults:"labelDefaults"}]),c(this)}disconnectedCallback(){x(this),p(this)}componentDidRender(){w(this.element,this.proxyId,this.name,this.value?`${this.value} ${this.unit}`:"",this.required)}async setFocus(t){this.duetInputElement.setFocus(t)}async getValueAsNumber(){const t=E(this.value,this.locale);return null==this.value||isNaN(t)?null:t}clearValue(t){this.duetInputElement.value="",null!==this.value&&(this.value=null,this.emitNull(t))}getUnitString(){return this.unit?` ${this.unit}`:""}formatAnnouncement(){const t=this.value?E(this.value,this.locale):null;return null==t?"":this.accessibleLive.replace("{current}",t.toString(10))}render(){const t=this.identifier||this.inputId,e=`${this.localizeValue(this.max)}${this.getUnitString()}`.length,n=this.value?E(this.value,this.locale):null;return i(s,{key:"ff7a3b099b6146f8db869268ecc2609fefa88ca6",class:{"duet-theme-turva":"turva"===this.theme,"duet-expand":this.expand,"duet-m-0":"none"===this.margin}},i("div",{key:"04d204f9d0dc1bf334606a101b0b4b5e165d36a3",class:"duet-number-container"},i("duet-input",{key:"464c323e615b8978944cdeec09e0e1a1503391a0",ref:t=>this.duetInputElement=t,onDuetChange:t=>this.handleChange(t),onDuetFocus:this.handleFocus,onDuetBlur:t=>this.handleBlur(t),onKeyDown:t=>this.handleKeyDown(t),label:this.label,value:this.value?`${this.value}${this.getUnitString()}`:"",error:this.error,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":null!=n?n:"",maxlength:e,name:this.name,component:"number",required:this.required,disabled:this.disabled,role:this.role,labelHidden:this.labelHidden,tooltip:this.tooltip,identifier:t,theme:this.theme,margin:"none",expand:!0,numericKeyboard:!0,autoComplete:"off",type:"text",accessibleActiveDescendant:this.accessibleActiveDescendant,accessibleLabelledBy:this.accessibleLabelledBy,accessibleDescription:this.accessibleDescription,accessibleDetails:this.accessibleDetails,accessibleControls:this.accessibleControls,accessibleOwns:this.accessibleOwns,accessibleDescribedBy:this.accessibleDescribedBy},i("slot",{key:"876fa9e487574bd143648c8649105ac9f5972829",name:"tooltip"}),i("div",{key:"60053c4b4c4602d494693804539eff2149fe2a64",class:{"duet-number-buttons":!0,"duet-no-label":this.labelHidden}},i("button",{key:"083dc0860543ddc7e2532620e345ad9d8d163d13",disabled:this.disabled,"aria-disabled":null==n||n===this.min?"true":"false",class:"duet-number-button duet-number-button-subtract",onClick:this.subtract,type:"button"},i("duet-visually-hidden",{key:"5323ecaf1f86fa97f9267b70bc048dadcca7d34f"},this.accessibleSubtract," ",this.step),i("duet-icon",{key:"d6ab1819fe4c96d6e379570c5a5c4eb41a1a775f",icon:C.svg,size:"small",margin:"none",color:"turva"===this.theme?"secondary-turva":"secondary"})),i("button",{key:"82b9a72bfeba3653c85f853c2e9d295d146b2152",disabled:this.disabled,"aria-disabled":n===this.max?"true":"false",class:"duet-number-button duet-number-button-add",onClick:this.add,type:"button"},i("duet-visually-hidden",{key:"697550e4c1f874401d2e17f60c6c4f324fc97bd8"},this.accessibleAdd," ",this.step),i("duet-icon",{key:"7947d70d3a48a3ea7e36a46aa79c6abc82d52565",icon:S.svg,size:"small",margin:"none",color:"turva"===this.theme?"secondary-turva":"secondary"})))),this.accessibleLiveEnabled&&i("duet-visually-hidden",{key:"0759711664742966c214cb765c179706affc7b2f","aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement())))}get element(){return n(this)}};j.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;line-height:1.25;text-align:left;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}.duet-number-container{position:relative;width:100%}.duet-number-buttons{-webkit-user-select:none;user-select:none;position:absolute;top:1px;right:1px;z-index:200;width:96px;height:calc(100% - 2px)}.duet-number-buttons .duet-number-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:50%;height:100%;text-align:center;cursor:pointer;background:transparent;-webkit-appearance:none;appearance:none}.duet-number-buttons .duet-number-button[aria-disabled=true],.duet-number-buttons .duet-number-button:disabled{pointer-events:none}.duet-number-buttons .duet-number-button[aria-disabled=true] duet-icon,.duet-number-buttons .duet-number-button:disabled duet-icon{opacity:0.4}.duet-number-buttons .duet-number-button:active duet-icon{transform:translateY(1px)}.duet-number-buttons .duet-number-button:focus{outline:0}:host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus{z-index:2;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva :host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus{box-shadow:0 0 0 2px #171c3a !important}.duet-number-buttons .duet-number-button:first-of-type{border-left:1px solid rgb(181, 198, 208)}.duet-number-buttons .duet-number-button:first-of-type::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:"";background:linear-gradient(to left, rgba(181, 198, 208, 0.2) 0%, rgba(181, 198, 208, 0.2) 1px, rgba(181, 198, 208, 0.1) 1px, rgba(181, 198, 208, 0) 100%)}.duet-number-buttons .duet-number-button:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}.duet-number-buttons .duet-number-button:last-of-type::before{position:absolute;top:20%;left:0;width:1px;height:60%;content:"";background:rgb(212, 223, 229)}:host(.duet-theme-turva) .duet-number-buttons .duet-number-button:first-of-type::before{background:linear-gradient(to left, rgba(199, 202, 207, 0.2) 0%, rgba(199, 202, 207, 0.2) 1px, rgba(199, 202, 207, 0.1) 1px, rgba(199, 202, 207, 0) 100%)}:host(.duet-theme-turva) .duet-number-buttons .duet-number-button:last-of-type::before{background:rgb(222, 224, 228)}:host(.duet-theme-turva2) .duet-theme-turva .duet-number-buttons .duet-number-button:first-of-type::before{background:linear-gradient(to left, rgba(178, 194, 205, 0.2) 0%, rgba(178, 194, 205, 0.2) 1px, rgba(178, 194, 205, 0.1) 1px, rgba(178, 194, 205, 0) 100%)}:host(.duet-theme-turva2) .duet-theme-turva .duet-number-buttons .duet-number-button:last-of-type::before{background:#d4dde2}';export{j as duet_number_input}
4
+ import{r as t,c as e,h as s,H as i,g as n}from"./p-BfHFKBVa.js";import{g as a}from"./p-DvwKrUS6.js";import{i as u}from"./p-BFsh4y5I.js";import{c as r}from"./p-Cfr_DJqU.js";import{f as o,e as h,g as b,d as l,o as d,s as c,u as p}from"./p-Db8rvjPI.js";import{a as m,b as f,g,c as v,d as x}from"./p-D4WDSjzx.js";import{c as y,p as w}from"./p-x84EsPoI.js";import"./p-C6E9F6QT.js";var k,D,A,N,S=a(D?k:(D=1,k={title:"action-add",tags:"action add plus",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M12 24a.75.75 0 0 1-.75-.75v-10.5H.75a.75.75 0 0 1 0-1.5h10.5V.75a.75.75 0 0 1 1.5 0v10.5h10.5a.75.75 0 0 1 0 1.5h-10.5v10.5A.75.75 0 0 1 12 24z"/></svg>'})),E=a(N?A:(N=1,A={title:"action-subtract",tags:"action subtract minus remove delete cancel",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.75 12.788a.75.75 0 0 1 0-1.5h22.5a.75.75 0 0 1 0 1.5z"/></svg>'}));function C(t,e){let s;if("string"==typeof t){if(""===t)return null;let i=t.replace("−","-").replace("‐","-").replace("−","-").replace("–","-").replace("—","-");e&&(i=function(t,e,s=!1){let i;const n=new Intl.NumberFormat(e).format(.5).replace(/[0-9]/g,""),a=new Intl.NumberFormat("en-US").format(.5).replace(/[0-9]/g,""),u=new Intl.NumberFormat(e).format(1e3).replace(/[0-9]/g,""),r=new Intl.NumberFormat("en-US").format(1e3).replace(/[0-9]/g,"");return i=t.replace(n,"DECIMALSEPARATOR"),i=i.replace(u,s?"THOUSANDSEPARATOR":""),i=i.replace("DECIMALSEPARATOR",a),i=i.replace("THOUSANDSEPARATOR",r),i}(i,e,!1)),i=i.replace(/\s+/g,""),s=parseFloat(i)}if("number"==typeof t&&(s=parseFloat(String(t))),!isNaN(Number(s)))return Number(s);if(null==t)return null;throw new Error("Invalid value passed to SafeParseFloat")}const I=(t,e,s)=>Math.min(Math.max(t,e),s),j=class{constructor(s){t(this,s),this.duetChange=e(this,"duetChange",3),this.duetInput=e(this,"duetInput",3),this.duetBlur=e(this,"duetBlur",7),this.duetFocus=e(this,"duetFocus",7),this.inputId=r("DuetInput"),this.proxyId=r("DuetInput"),this.language=m(),this.locale=f(this.language).locale,this.unit=f(this.language).money,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleLiveDefaults={fi:"{current} euroa valittuna",en:"{current} euros selected",sv:"{current} euro valt"},this.accessibleLive=g(this.accessibleLiveDefaults,this.language),this.accessibleLiveEnabled=!0,this.accessibleAddDefaults={fi:"Lisää summaan",en:"Add to the amount",sv:"Lägg till beloppet"},this.accessibleAdd=g(this.accessibleAddDefaults,this.language),this.accessibleSubtractDefaults={fi:"Vähennä summasta",en:"Subtract from the amount",sv:"Dra från beloppet"},this.accessibleSubtract=g(this.accessibleSubtractDefaults,this.language),this.theme="",this.margin="auto",this.expand=!1,this.min=0,this.labelDefaults={fi:"Nimilappu",en:"Label",sv:"Etikett"},this.label=g(this.labelDefaults,this.language),this.labelHidden=!1,this.max=1e6,this.error="",this.tooltip="",this.step=5e3,this.rounding=!0,this.disabled=!1,this.required=!1,this.handleFocus=()=>{this.focusedValue=this.value},this.handleKeyDown=t=>{o(t)||h(t)?this.add(t):b(t)||l(t)?this.subtract(t):d(t)&&this.clearValue(t)},this.handleChange=t=>{t.stopPropagation();const e=t.target;if(e&&e.value)try{let s=C(e.value,this.locale);(isNaN(s)||null==s)&&(s=this.min||0),this.setValue(s),this.duetInput.emit({component:"duet-number-input",originalEvent:t,value:C(this.value,this.locale).toString(),valueAsNumber:s})}catch(s){"-"!==e.value&&this.clearValue(t),this.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}else this.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})},this.handleBlur=t=>{const e=t.target;var s;if(e)if(e.value)try{let i=C(e.value,this.locale);this.rounding&&(s=this.step,i=Math.round(i/s)*s),i=I(i,this.min,this.max),i===C(this.value,this.locale)&&i===C(this.focusedValue,this.locale)||(this.setValue(i),this.emitChange(t))}catch(e){this.emitNull(t)}else this.emitNull(t)},this.emitChange=t=>{const e=C(this.value,this.locale);this.duetChange.emit({originalEvent:t,value:e.toString(),valueAsNumber:e,component:"duet-number-input"})},this.emitNull=t=>{this.duetChange.emit({originalEvent:t,value:null,valueAsNumber:null,component:"duet-number-input"})},this.localizeValue=t=>t.toLocaleString(this.locale,{useGrouping:!1}),this.setValue=t=>{this.value=this.localizeValue(t),this.duetInputElement.value=`${this.value}${this.getUnitString()}`},this.add=t=>{t&&t.preventDefault();const e=C(this.value,this.locale);if(e===this.max)return;let s=null==e?this.min:e+this.step;s%this.step!=0&&(s-=s%this.step);const i=I(s,this.min,this.max);this.value=this.localizeValue(i),this.emitChange(t)},this.subtract=t=>{t&&t.preventDefault();const e=C(this.value,this.locale);if(e===this.min)return;let s=e-this.step;s%this.step!=0&&(s+=this.step-s%this.step),s=I(s,this.min,this.max),this.value=this.localizeValue(s),this.emitChange(t)}}componentWillLoad(){u(this),this.value&&(this.value=this.localizeValue(C(this.value,this.locale))),y(this.element,"tooltip","duet-tooltip",1,!0)}connectedCallback(){v(this,[{prop:"accessibleLive",defaults:"accessibleLiveDefaults"},{prop:"accessibleAdd",defaults:"accessibleAddDefaults"},{prop:"accessibleSubtract",defaults:"accessibleSubtractDefaults"},{prop:"label",defaults:"labelDefaults"}]),c(this)}disconnectedCallback(){x(this),p(this)}componentDidRender(){w(this.element,this.proxyId,this.name,this.value?`${this.value} ${this.unit}`:"",this.required)}async setFocus(t){this.duetInputElement.setFocus(t)}async getValueAsNumber(){const t=C(this.value,this.locale);return null==this.value||isNaN(t)?null:t}clearValue(t){this.duetInputElement.value="",null!==this.value&&(this.value=null,this.emitNull(t))}getUnitString(){return this.unit?` ${this.unit}`:""}formatAnnouncement(){const t=this.value?C(this.value,this.locale):null;return null==t?"":this.accessibleLive.replace("{current}",t.toString(10))}render(){const t=this.identifier||this.inputId,e=`${this.localizeValue(this.max)}${this.getUnitString()}`.length,n=this.value?C(this.value,this.locale):null;return s(i,{key:"f7f611052626013e23d6e950187e6ff4bae4785a",class:{"duet-theme-turva":"turva"===this.theme,"duet-expand":this.expand,"duet-m-0":"none"===this.margin}},s("div",{key:"3ab65aa403dd3795d71fc92663c9026decbc03d1",class:"duet-number-container"},s("duet-input",{key:"996f35afadafef64a29b83b0264b2696cda1c4df",ref:t=>this.duetInputElement=t,onDuetChange:t=>this.handleChange(t),onDuetFocus:this.handleFocus,onDuetBlur:t=>this.handleBlur(t),onKeyDown:t=>this.handleKeyDown(t),label:this.label,value:this.value?`${this.value}${this.getUnitString()}`:"",error:this.error,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":null!=n?n:"",maxlength:e,name:this.name,component:"number",required:this.required,disabled:this.disabled,role:this.role,labelHidden:this.labelHidden,tooltip:this.tooltip,identifier:t,theme:this.theme,margin:"none",expand:!0,numericKeyboard:!0,autoComplete:"off",type:"text",accessibleActiveDescendant:this.accessibleActiveDescendant,accessibleLabelledBy:this.accessibleLabelledBy,accessibleDescription:this.accessibleDescription,accessibleDetails:this.accessibleDetails,accessibleControls:this.accessibleControls,accessibleOwns:this.accessibleOwns,accessibleDescribedBy:this.accessibleDescribedBy},s("slot",{key:"3d231debb07358d38d378cb4fe016b2e96db7880",name:"tooltip"}),s("div",{key:"7dda2f48f29615328c419870b24f925b04f826a9",class:{"duet-number-buttons":!0,"duet-no-label":this.labelHidden}},s("button",{key:"0fa07991abc1894a2b6f160321588d0b1844bba6",disabled:this.disabled,"aria-disabled":null==n||n===this.min?"true":"false",class:"duet-number-button duet-number-button-subtract",onClick:this.subtract,type:"button"},s("duet-visually-hidden",{key:"21306421a46e77a48b56f154360d63d2c8731e78"},this.accessibleSubtract," ",this.step),s("duet-icon",{key:"a7f4a92248d8906cdba527342060fcc89c935f75",icon:E.svg,size:"small",margin:"none",color:"turva"===this.theme?"secondary-turva":"secondary"})),s("button",{key:"718295b62b418b47721c0cd09a4dd6d438c81724",disabled:this.disabled,"aria-disabled":n===this.max?"true":"false",class:"duet-number-button duet-number-button-add",onClick:this.add,type:"button"},s("duet-visually-hidden",{key:"63aaf63fc103cb3f02114fc2f6a89111a1f8ecbc"},this.accessibleAdd," ",this.step),s("duet-icon",{key:"1ea520e7852bdcbdfc9c59cfe5f8df96f624b67f",icon:S.svg,size:"small",margin:"none",color:"turva"===this.theme?"secondary-turva":"secondary"})))),this.accessibleLiveEnabled&&s("duet-visually-hidden",{key:"13e72d3b1f8bd4427e4d7b9b0e94e31f787f81ec","aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement())))}get element(){return n(this)}};j.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;line-height:1.25;text-align:left;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}.duet-number-container{position:relative;width:100%}.duet-number-buttons{-webkit-user-select:none;user-select:none;position:absolute;top:1px;right:1px;z-index:200;width:96px;height:calc(100% - 2px)}.duet-number-buttons .duet-number-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:50%;height:100%;text-align:center;cursor:pointer;background:transparent;-webkit-appearance:none;appearance:none}.duet-number-buttons .duet-number-button[aria-disabled=true],.duet-number-buttons .duet-number-button:disabled{pointer-events:none}.duet-number-buttons .duet-number-button[aria-disabled=true] duet-icon,.duet-number-buttons .duet-number-button:disabled duet-icon{opacity:0.4}.duet-number-buttons .duet-number-button:active duet-icon{transform:translateY(1px)}.duet-number-buttons .duet-number-button:focus{outline:0}:host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus{z-index:2;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva :host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus{box-shadow:0 0 0 2px #171c3a !important}.duet-number-buttons .duet-number-button:first-of-type{border-left:1px solid rgb(181, 198, 208)}.duet-number-buttons .duet-number-button:first-of-type::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:"";background:linear-gradient(to left, rgba(181, 198, 208, 0.2) 0%, rgba(181, 198, 208, 0.2) 1px, rgba(181, 198, 208, 0.1) 1px, rgba(181, 198, 208, 0) 100%)}.duet-number-buttons .duet-number-button:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}.duet-number-buttons .duet-number-button:last-of-type::before{position:absolute;top:20%;left:0;width:1px;height:60%;content:"";background:rgb(212, 223, 229)}:host(.duet-theme-turva) .duet-number-buttons .duet-number-button:first-of-type::before{background:linear-gradient(to left, rgba(199, 202, 207, 0.2) 0%, rgba(199, 202, 207, 0.2) 1px, rgba(199, 202, 207, 0.1) 1px, rgba(199, 202, 207, 0) 100%)}:host(.duet-theme-turva) .duet-number-buttons .duet-number-button:last-of-type::before{background:rgb(222, 224, 228)}:host(.duet-theme-turva2) .duet-theme-turva .duet-number-buttons .duet-number-button:first-of-type::before{background:linear-gradient(to left, rgba(178, 194, 205, 0.2) 0%, rgba(178, 194, 205, 0.2) 1px, rgba(178, 194, 205, 0.1) 1px, rgba(178, 194, 205, 0) 100%)}:host(.duet-theme-turva2) .duet-theme-turva .duet-number-buttons .duet-number-button:last-of-type::before{background:#d4dde2}';export{j as duet_number_input}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{E as t,r as e,h as i,H as s,g as a}from"./p-BPFqbaxm.js";import{i as o}from"./p-C-YpEPL-.js";import{g as n,r as d}from"./p-Dr2j33H2.js";import"./p-Z0D6Gy9e.js";const h=t=>{if("script"===t.nodeName.toLowerCase())return!1;for(let e=0;e<t.attributes.length;e++)if(0===t.attributes[e].name.toLowerCase().indexOf("on"))return!1;if(t.children)for(let e=0;e<t.children.length;e++)if(!h(t.children[e]))return!1;return!0},r={};const u=class{constructor(t){e(this,t),this.theme="",this.name="action-add",this.margin="auto",this.responsive=!0,this.color="",this.background="",this.backgroundOpacity=1,this.backgroundRotation=0,this.size="medium",this.outline="",this.shape="circle"}async componentWillLoad(){o(this),this.src&&this.icon&&console.warn("[DUET COMPONENTS]: <duet-icon> should have either have src or icon attributes, but not both. icon attribute will take precedence","icon:",this.icon,"src:",this.src),await this.loadIcon(null,null)}async loadIcon(e,i){if(this.icon)return void(this.svgContent=this.icon);if(this.element.shadowRoot.querySelector("svg")&&!this.svgContent){if(null===i&&null===e)return;if(this.element.shadowRoot.querySelector(`.duet-icon-svg[data-name="${e}"]`))return}const s=this.src?this.src:this.name?(e=>{const i=window.duetcdnuri?window.duetcdnuri:t.cdnURIProd;return i.includes("localhost")?`${i}/icons/lib/assets/${e}.svg`:`${i}/icons/${t.duetIconVersion}/lib/assets/${e}.svg`})(this.name):"";if(s)try{this.svgContent=await function(t){if(r[t])return r[t];const e=async function(){const e=await fetch(t);if(!e.ok)throw new Error(`SVG request failed: ${e.status} ${e.statusText}`);const i=(t=>{if("undefined"==typeof document||!t)return;const e=document.createElement("div");e.innerHTML=t;for(let t=e.childNodes.length-1;t>=0;t--)"svg"!==e.childNodes[t].nodeName.toLowerCase()&&e.removeChild(e.childNodes[t]);return e.firstElementChild})(await e.text());if(!h(i))throw new Error("SVG validation failed");const s=document.createElement("div");return s.appendChild(i),s.innerHTML}();return r[t]=e}(s)}catch(t){console.warn(`[DUET COMPONENTS]: <duet-icon> could not load SVG from URL: ${s}.`,t)}else this.svgContent=""}render(){const t="currentColor"===this.color?"currentColor":n(this.color,this.theme)||n(this.outline,this.theme),e=this.backgroundRotation?{transform:`rotate(${this.backgroundRotation}deg)`,"transform-origin":"center center"}:{},a=Object.assign({color:t,background:d(n(this.background,this.theme),this.backgroundOpacity),"border-color":n(this.outline,this.theme)},e),o=Object.assign({},this.backgroundRotation?{transform:`rotate(-${this.backgroundRotation}deg)`,"transform-origin":"center center"}:{}),h="brand-rotated"===this.shape?"duet-icon-shape-brand":`duet-icon-shape-${this.shape}`;return i(s,{key:"6b2ec509f1a717b623bf627d7451c95e5c1af8be",class:{"duet-m-0":"none"===this.margin,"duet-icon-has-outline":!!this.outline,"duet-icon-has-background":!!this.background}},i("span",{key:"b3fb3d53f1c096a7072c6c85488d191c4bc61880","aria-hidden":"true",style:a,class:{"duet-icon":!0,"duet-theme-turva":"turva"===this.theme,"duet-theme-default":"default"===this.theme,"duet-icon-has-outline":!!this.outline,"duet-icon-has-background":!!this.background,[h]:!0,rotated:"brand-rotated"===this.shape&&"turva"!==this.theme,"duet-icon-not-responsive":!this.responsive}},i("span",{key:"ff22fbc4a55860c2ed936b3b3037a7a09af46d8d","aria-hidden":"true",class:{"duet-icon-svg":!0,rotated:"brand-rotated"===this.shape&&"turva"!==this.theme},"data-name":this.name,innerHTML:this.svgContent,style:o})))}get element(){return a(this)}static get watchers(){return{src:["loadIcon"],icon:["loadIcon"],name:["loadIcon"]}}};u.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;display:inline-block;width:auto;max-width:100%;color:inherit;-webkit-tap-highlight-color:transparent}@media (max-width: 35.9375em){:host(.duet-icon-has-outline){margin-bottom:0 !important}}@media (max-width: 35.9375em){:host(.duet-icon-has-background){margin-bottom:0 !important}}:host(.duet-m-0){margin:0 !important}@media (max-width: 35.9375em){:host(.duet-m-0){margin:0 !important}}.duet-icon{-webkit-user-select:none;user-select:none;display:block;width:100%;height:100%;transform-origin:top center}.duet-icon.duet-icon-has-outline{padding:12px;border-style:solid;border-width:1px}@media (max-width: 35.9375em){.duet-icon.duet-icon-has-outline{outline:1px solid transparent;transform:scale(0.8)}}.duet-icon.duet-icon-has-background{padding:16px;color:rgb(255, 255, 255)}@media (max-width: 35.9375em){.duet-icon.duet-icon-has-background{outline:1px solid transparent;transform:scale(0.8)}}.duet-icon.duet-icon-has-background.duet-theme-turva,.duet-icon.duet-icon-has-background.duet-theme-default{color:rgb(255, 255, 255)}.duet-icon.duet-icon-shape-circle{border-radius:50%}.duet-icon.duet-icon-shape-brand{border-radius:25%}@media (max-width: 35.9375em){.duet-icon.duet-icon-not-responsive{transform:scale(1) !important}}.duet-icon.duet-theme-default{color:rgb(0, 119, 179)}.duet-icon.duet-theme-turva{color:rgb(198, 12, 48)}.duet-icon.duet-icon-shape-brand.rotated{transform:rotate(7deg) scale(0.875);transform-origin:center}.duet-icon.duet-icon-shape-brand.duet-theme-turva{display:flex;align-items:center;justify-content:center;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 144 130' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M67.4002 0.00277722C71.354 0.0260204 75.7751 0.261773 80.1626 0.90262C83.3916 1.37412 86.6046 1.97513 89.824 2.51802C91.5585 2.81022 93.3026 3.05925 95.0291 3.3996C102.623 4.89215 109.884 7.35924 116.592 11.4152C122.597 15.0478 127.726 19.7163 131.919 25.4756C135.024 29.7374 137.515 34.3662 139.4 39.3319C140.317 41.7459 141.075 44.2262 141.854 46.695C142.021 47.2196 141.984 47.8157 142.021 48.3801C142.354 53.5833 142.664 58.7864 143.018 63.9879C143.237 67.2021 143.528 70.4097 143.768 73.6206C144.067 77.5985 144.095 81.578 143.746 85.5576C143.501 88.3567 143.106 91.1293 142.437 93.8537C141.117 99.2395 138.941 104.207 135.603 108.58C132.414 112.759 128.49 116.036 123.975 118.561C120.429 120.544 116.702 122.058 112.824 123.175C109.121 124.241 105.361 125.011 101.548 125.493C100.916 125.572 100.351 125.768 99.783 126.074C98.1525 126.95 96.3956 127.47 94.6163 127.912C91.4225 128.705 88.1775 129.168 84.9149 129.495C83.0572 129.681 81.1978 129.838 79.3385 129.995C79.1337 130.012 78.9097 129.985 78.7161 129.916C76.2087 129.009 73.6566 128.255 71.0356 127.825C68.8547 127.467 66.6529 127.135 64.4512 127.047C58.4156 126.809 52.54 125.717 46.7989 123.809C40.8193 121.822 35.1245 119.181 29.8458 115.634C24.3911 111.97 19.5668 107.566 15.4705 102.313C10.9582 96.5267 7.406 90.1597 4.73864 83.2598C2.95772 78.6544 1.67604 73.8978 0.898394 68.9935C0.328759 65.3975 0.0183391 61.7798 0.000737963 58.1373C-0.0120628 55.3132 0.141547 52.4992 0.471168 49.6934C0.867992 46.3131 1.46643 42.9728 2.35449 39.6955C2.6121 38.7458 3.02813 37.8327 3.44735 36.9395C4.105 35.5366 4.70343 34.0773 5.54829 32.8006C7.15959 30.3683 8.51487 27.8182 9.53734 25.0705C9.60134 24.8962 9.71655 24.7302 9.84136 24.5957C12.1119 22.1535 14.5201 19.8674 17.0514 17.7191C23.9622 11.8551 31.6315 7.39743 40.0769 4.39076C44.0019 2.99285 48.023 1.97015 52.1144 1.24795C56.6011 0.45934 62.4495 -0.0420489 67.4002 0.00277722Z' /%3E%3C/svg%3E\");-webkit-mask-repeat:no-repeat;mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 144 130' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M67.4002 0.00277722C71.354 0.0260204 75.7751 0.261773 80.1626 0.90262C83.3916 1.37412 86.6046 1.97513 89.824 2.51802C91.5585 2.81022 93.3026 3.05925 95.0291 3.3996C102.623 4.89215 109.884 7.35924 116.592 11.4152C122.597 15.0478 127.726 19.7163 131.919 25.4756C135.024 29.7374 137.515 34.3662 139.4 39.3319C140.317 41.7459 141.075 44.2262 141.854 46.695C142.021 47.2196 141.984 47.8157 142.021 48.3801C142.354 53.5833 142.664 58.7864 143.018 63.9879C143.237 67.2021 143.528 70.4097 143.768 73.6206C144.067 77.5985 144.095 81.578 143.746 85.5576C143.501 88.3567 143.106 91.1293 142.437 93.8537C141.117 99.2395 138.941 104.207 135.603 108.58C132.414 112.759 128.49 116.036 123.975 118.561C120.429 120.544 116.702 122.058 112.824 123.175C109.121 124.241 105.361 125.011 101.548 125.493C100.916 125.572 100.351 125.768 99.783 126.074C98.1525 126.95 96.3956 127.47 94.6163 127.912C91.4225 128.705 88.1775 129.168 84.9149 129.495C83.0572 129.681 81.1978 129.838 79.3385 129.995C79.1337 130.012 78.9097 129.985 78.7161 129.916C76.2087 129.009 73.6566 128.255 71.0356 127.825C68.8547 127.467 66.6529 127.135 64.4512 127.047C58.4156 126.809 52.54 125.717 46.7989 123.809C40.8193 121.822 35.1245 119.181 29.8458 115.634C24.3911 111.97 19.5668 107.566 15.4705 102.313C10.9582 96.5267 7.406 90.1597 4.73864 83.2598C2.95772 78.6544 1.67604 73.8978 0.898394 68.9935C0.328759 65.3975 0.0183391 61.7798 0.000737963 58.1373C-0.0120628 55.3132 0.141547 52.4992 0.471168 49.6934C0.867992 46.3131 1.46643 42.9728 2.35449 39.6955C2.6121 38.7458 3.02813 37.8327 3.44735 36.9395C4.105 35.5366 4.70343 34.0773 5.54829 32.8006C7.15959 30.3683 8.51487 27.8182 9.53734 25.0705C9.60134 24.8962 9.71655 24.7302 9.84136 24.5957C12.1119 22.1535 14.5201 19.8674 17.0514 17.7191C23.9622 11.8551 31.6315 7.39743 40.0769 4.39076C44.0019 2.99285 48.023 1.97015 52.1144 1.24795C56.6011 0.45934 62.4495 -0.0420489 67.4002 0.00277722Z' /%3E%3C/svg%3E\");mask-repeat:no-repeat;mask-position:center}.duet-icon.duet-icon-shape-brand.duet-theme-turva .duet-icon-svg{min-width:auto}.duet-icon .duet-icon-svg{display:block;width:24px;min-width:100%;height:24px;font-size:0}.duet-icon .duet-icon-svg.rotated{transform:rotate(-7deg) scale(1.14)}.duet-icon svg{width:100%;min-width:100%;overflow:clip;fill:currentColor;overflow-clip-margin:1px}:host([size=auto]) .duet-icon-svg{width:100%;height:100%}:host([size=xxx-small]) .duet-icon-svg{width:7px;height:7px}:host([size=xxx-small]) .duet-icon-has-background{padding:6px}:host([size=xxx-small]) .duet-icon-has-outline{padding:4px}:host([size=xxx-small]) .duet-icon-has-background .duet-icon-svg,:host([size=xxx-small]) .duet-icon-has-outline .duet-icon-svg{width:10px;height:10px}:host([size=xxx-small]) .duet-icon-shape-brand{padding:0}:host([size=xxx-small]) .duet-icon-shape-brand .duet-icon-svg{width:0;height:0}:host([size=xx-small]) .duet-icon-svg{width:10px;height:10px}:host([size=xx-small]) .duet-icon-has-background{padding:8px}:host([size=xx-small]) .duet-icon-has-outline{padding:7px}:host([size=xx-small]) .duet-icon-has-background .duet-icon-svg,:host([size=xx-small]) .duet-icon-has-outline .duet-icon-svg{width:16px;height:16px}:host([size=xx-small]) .duet-icon-shape-brand{padding:4px}:host([size=xx-small]) .duet-icon-shape-brand .duet-icon-svg{width:10px;height:10px}:host([size=xx-small]) .duet-theme-turva .duet-icon-shape-brand{width:18px;height:15px;padding:0}:host([size=x-small]) .duet-icon-svg{width:16px;height:16px}:host([size=x-small]) .duet-icon-has-outline{padding:10px}:host([size=x-small]) .duet-icon-has-background{padding:12px}:host([size=x-small]) .duet-icon-shape-brand{padding:8px}:host([size=x-small]) .duet-icon-shape-brand .duet-icon-svg{width:16px;height:16px}:host([size=x-small]) .duet-theme-turva .duet-icon-shape-brand{width:32px;height:30px;padding:0}:host([size=small]) .duet-icon-svg{width:20px;height:20px}:host([size=small]) .duet-icon-has-background{padding:14px}:host([size=small]) .duet-icon-shape-brand{padding:8px}:host([size=small]) .duet-icon-shape-brand .duet-icon-svg{width:20px;height:20px}:host([size=small]) .duet-theme-turva .duet-icon-shape-brand{width:36px;height:34px;padding:0}:host([size=medium]) .duet-icon-shape-brand{padding:12px}:host([size=medium]) .duet-icon-shape-brand .duet-icon-svg{width:24px;height:24px}:host([size=medium]) .duet-theme-turva .duet-icon-shape-brand{width:48px;height:44px;padding:0}:host([size=large]) .duet-icon-svg{width:30px;height:30px}:host([size=large]) .duet-icon-shape-brand{padding:16px}:host([size=large]) .duet-icon-shape-brand .duet-icon-svg{width:30px;height:30px}:host([size=large]) .duet-theme-turva .duet-icon-shape-brand{width:62px;height:56px;padding:0}:host([size=x-large]) .duet-icon-svg{width:36px;height:36px}:host([size=x-large]) .duet-icon-shape-brand{padding:20px}:host([size=x-large]) .duet-icon-shape-brand .duet-icon-svg{width:36px;height:36px}:host([size=x-large]) .duet-theme-turva .duet-icon-shape-brand{width:76px;height:68px;padding:0}:host([size=xx-large]) .duet-icon-svg{width:48px;height:48px}:host([size=xx-large]) .duet-icon-shape-brand{padding:24px}:host([size=xx-large]) .duet-icon-shape-brand .duet-icon-svg{width:48px;height:48px}:host([size=xx-large]) .duet-theme-turva .duet-icon-shape-brand{width:95px;height:86px;padding:0}:host([size=xxx-large]) .duet-icon-svg{width:48px;height:48px}@media (min-width: 48em){:host([size=xxx-large]) .duet-icon-svg{width:72px;height:72px}}:host([size=xxx-large]) .duet-icon-shape-brand{padding:36px}:host([size=xxx-large]) .duet-icon-shape-brand .duet-icon-svg{width:72px;height:72px}:host([size=xxx-large]) .duet-theme-turva .duet-icon-shape-brand{width:144px;height:130px;padding:0}:host(.duet-theme-turva2) .duet-icon.duet-theme-turva{color:#e61740}:host(.duet-theme-turva2) .duet-icon.duet-theme-turva.duet-icon-has-background{color:rgb(255, 255, 255)}:host(.duet-theme-turva2) .duet-icon.duet-theme-turva.duet-icon-shape-brand{-webkit-mask-image:none;mask-image:none;border-radius:16%}";export{u as duet_icon}
4
+ import{E as t,r as e,h as i,H as s,g as a}from"./p-BfHFKBVa.js";import{i as o}from"./p-BFsh4y5I.js";import{g as n,r as d}from"./p-Do6ugHz0.js";import"./p-Z0D6Gy9e.js";const h=t=>{if("script"===t.nodeName.toLowerCase())return!1;for(let e=0;e<t.attributes.length;e++)if(0===t.attributes[e].name.toLowerCase().indexOf("on"))return!1;if(t.children)for(let e=0;e<t.children.length;e++)if(!h(t.children[e]))return!1;return!0},r={};const u=class{constructor(t){e(this,t),this.theme="",this.name="action-add",this.margin="auto",this.responsive=!0,this.color="",this.background="",this.backgroundOpacity=1,this.backgroundRotation=0,this.size="medium",this.outline="",this.shape="circle"}async componentWillLoad(){o(this),this.src&&this.icon&&console.warn("[DUET COMPONENTS]: <duet-icon> should have either have src or icon attributes, but not both. icon attribute will take precedence","icon:",this.icon,"src:",this.src),await this.loadIcon(null,null)}async loadIcon(e,i){if(this.icon)return void(this.svgContent=this.icon);if(this.element.shadowRoot.querySelector("svg")&&!this.svgContent){if(null===i&&null===e)return;if(this.element.shadowRoot.querySelector(`.duet-icon-svg[data-name="${e}"]`))return}const s=this.src?this.src:this.name?(e=>{const i=window.duetcdnuri?window.duetcdnuri:t.cdnURIProd;return i.includes("localhost")?`${i}/icons/lib/assets/${e}.svg`:`${i}/icons/${t.duetIconVersion}/lib/assets/${e}.svg`})(this.name):"";if(s)try{this.svgContent=await function(t){if(r[t])return r[t];const e=async function(){const e=await fetch(t);if(!e.ok)throw new Error(`SVG request failed: ${e.status} ${e.statusText}`);const i=(t=>{if("undefined"==typeof document||!t)return;const e=document.createElement("div");e.innerHTML=t;for(let t=e.childNodes.length-1;t>=0;t--)"svg"!==e.childNodes[t].nodeName.toLowerCase()&&e.removeChild(e.childNodes[t]);return e.firstElementChild})(await e.text());if(!h(i))throw new Error("SVG validation failed");const s=document.createElement("div");return s.appendChild(i),s.innerHTML}();return r[t]=e}(s)}catch(t){console.warn(`[DUET COMPONENTS]: <duet-icon> could not load SVG from URL: ${s}.`,t)}else this.svgContent=""}render(){const t="currentColor"===this.color?"currentColor":n(this.color,this.theme)||n(this.outline,this.theme),e=this.backgroundRotation?{transform:`rotate(${this.backgroundRotation}deg)`,"transform-origin":"center center"}:{},a=Object.assign({color:t,background:d(n(this.background,this.theme),this.backgroundOpacity),"border-color":n(this.outline,this.theme)},e),o=Object.assign({},this.backgroundRotation?{transform:`rotate(-${this.backgroundRotation}deg)`,"transform-origin":"center center"}:{}),h="brand-rotated"===this.shape?"duet-icon-shape-brand":`duet-icon-shape-${this.shape}`;return i(s,{key:"2a800d3292964b5a1dd5fd454662f690ce9e6b5a",class:{"duet-m-0":"none"===this.margin,"duet-icon-has-outline":!!this.outline,"duet-icon-has-background":!!this.background}},i("span",{key:"4d5d3fc155d6d2e4f677d8753c116c82eb865a2c","aria-hidden":"true",style:a,class:{"duet-icon":!0,"duet-theme-turva":"turva"===this.theme,"duet-theme-default":"default"===this.theme,"duet-icon-has-outline":!!this.outline,"duet-icon-has-background":!!this.background,[h]:!0,rotated:"brand-rotated"===this.shape&&"turva"!==this.theme,"duet-icon-not-responsive":!this.responsive}},i("span",{key:"6c79866426237ff75ff36401a9117dca1a68cf19","aria-hidden":"true",class:{"duet-icon-svg":!0,rotated:"brand-rotated"===this.shape&&"turva"!==this.theme},"data-name":this.name,innerHTML:this.svgContent,style:o})))}get element(){return a(this)}static get watchers(){return{src:["loadIcon"],icon:["loadIcon"],name:["loadIcon"]}}};u.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;display:inline-block;width:auto;max-width:100%;color:inherit;-webkit-tap-highlight-color:transparent}@media (max-width: 35.9375em){:host(.duet-icon-has-outline){margin-bottom:0 !important}}@media (max-width: 35.9375em){:host(.duet-icon-has-background){margin-bottom:0 !important}}:host(.duet-m-0){margin:0 !important}@media (max-width: 35.9375em){:host(.duet-m-0){margin:0 !important}}.duet-icon{-webkit-user-select:none;user-select:none;display:block;width:100%;height:100%;transform-origin:top center}.duet-icon.duet-icon-has-outline{padding:12px;border-style:solid;border-width:1px}@media (max-width: 35.9375em){.duet-icon.duet-icon-has-outline{outline:1px solid transparent;transform:scale(0.8)}}.duet-icon.duet-icon-has-background{padding:16px;color:rgb(255, 255, 255)}@media (max-width: 35.9375em){.duet-icon.duet-icon-has-background{outline:1px solid transparent;transform:scale(0.8)}}.duet-icon.duet-icon-has-background.duet-theme-turva,.duet-icon.duet-icon-has-background.duet-theme-default{color:rgb(255, 255, 255)}.duet-icon.duet-icon-shape-circle{border-radius:50%}.duet-icon.duet-icon-shape-brand{border-radius:25%}@media (max-width: 35.9375em){.duet-icon.duet-icon-not-responsive{transform:scale(1) !important}}.duet-icon.duet-theme-default{color:rgb(0, 119, 179)}.duet-icon.duet-theme-turva{color:rgb(198, 12, 48)}.duet-icon.duet-icon-shape-brand.rotated{transform:rotate(7deg) scale(0.875);transform-origin:center}.duet-icon.duet-icon-shape-brand.duet-theme-turva{display:flex;align-items:center;justify-content:center;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 144 130' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M67.4002 0.00277722C71.354 0.0260204 75.7751 0.261773 80.1626 0.90262C83.3916 1.37412 86.6046 1.97513 89.824 2.51802C91.5585 2.81022 93.3026 3.05925 95.0291 3.3996C102.623 4.89215 109.884 7.35924 116.592 11.4152C122.597 15.0478 127.726 19.7163 131.919 25.4756C135.024 29.7374 137.515 34.3662 139.4 39.3319C140.317 41.7459 141.075 44.2262 141.854 46.695C142.021 47.2196 141.984 47.8157 142.021 48.3801C142.354 53.5833 142.664 58.7864 143.018 63.9879C143.237 67.2021 143.528 70.4097 143.768 73.6206C144.067 77.5985 144.095 81.578 143.746 85.5576C143.501 88.3567 143.106 91.1293 142.437 93.8537C141.117 99.2395 138.941 104.207 135.603 108.58C132.414 112.759 128.49 116.036 123.975 118.561C120.429 120.544 116.702 122.058 112.824 123.175C109.121 124.241 105.361 125.011 101.548 125.493C100.916 125.572 100.351 125.768 99.783 126.074C98.1525 126.95 96.3956 127.47 94.6163 127.912C91.4225 128.705 88.1775 129.168 84.9149 129.495C83.0572 129.681 81.1978 129.838 79.3385 129.995C79.1337 130.012 78.9097 129.985 78.7161 129.916C76.2087 129.009 73.6566 128.255 71.0356 127.825C68.8547 127.467 66.6529 127.135 64.4512 127.047C58.4156 126.809 52.54 125.717 46.7989 123.809C40.8193 121.822 35.1245 119.181 29.8458 115.634C24.3911 111.97 19.5668 107.566 15.4705 102.313C10.9582 96.5267 7.406 90.1597 4.73864 83.2598C2.95772 78.6544 1.67604 73.8978 0.898394 68.9935C0.328759 65.3975 0.0183391 61.7798 0.000737963 58.1373C-0.0120628 55.3132 0.141547 52.4992 0.471168 49.6934C0.867992 46.3131 1.46643 42.9728 2.35449 39.6955C2.6121 38.7458 3.02813 37.8327 3.44735 36.9395C4.105 35.5366 4.70343 34.0773 5.54829 32.8006C7.15959 30.3683 8.51487 27.8182 9.53734 25.0705C9.60134 24.8962 9.71655 24.7302 9.84136 24.5957C12.1119 22.1535 14.5201 19.8674 17.0514 17.7191C23.9622 11.8551 31.6315 7.39743 40.0769 4.39076C44.0019 2.99285 48.023 1.97015 52.1144 1.24795C56.6011 0.45934 62.4495 -0.0420489 67.4002 0.00277722Z' /%3E%3C/svg%3E\");-webkit-mask-repeat:no-repeat;mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 144 130' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M67.4002 0.00277722C71.354 0.0260204 75.7751 0.261773 80.1626 0.90262C83.3916 1.37412 86.6046 1.97513 89.824 2.51802C91.5585 2.81022 93.3026 3.05925 95.0291 3.3996C102.623 4.89215 109.884 7.35924 116.592 11.4152C122.597 15.0478 127.726 19.7163 131.919 25.4756C135.024 29.7374 137.515 34.3662 139.4 39.3319C140.317 41.7459 141.075 44.2262 141.854 46.695C142.021 47.2196 141.984 47.8157 142.021 48.3801C142.354 53.5833 142.664 58.7864 143.018 63.9879C143.237 67.2021 143.528 70.4097 143.768 73.6206C144.067 77.5985 144.095 81.578 143.746 85.5576C143.501 88.3567 143.106 91.1293 142.437 93.8537C141.117 99.2395 138.941 104.207 135.603 108.58C132.414 112.759 128.49 116.036 123.975 118.561C120.429 120.544 116.702 122.058 112.824 123.175C109.121 124.241 105.361 125.011 101.548 125.493C100.916 125.572 100.351 125.768 99.783 126.074C98.1525 126.95 96.3956 127.47 94.6163 127.912C91.4225 128.705 88.1775 129.168 84.9149 129.495C83.0572 129.681 81.1978 129.838 79.3385 129.995C79.1337 130.012 78.9097 129.985 78.7161 129.916C76.2087 129.009 73.6566 128.255 71.0356 127.825C68.8547 127.467 66.6529 127.135 64.4512 127.047C58.4156 126.809 52.54 125.717 46.7989 123.809C40.8193 121.822 35.1245 119.181 29.8458 115.634C24.3911 111.97 19.5668 107.566 15.4705 102.313C10.9582 96.5267 7.406 90.1597 4.73864 83.2598C2.95772 78.6544 1.67604 73.8978 0.898394 68.9935C0.328759 65.3975 0.0183391 61.7798 0.000737963 58.1373C-0.0120628 55.3132 0.141547 52.4992 0.471168 49.6934C0.867992 46.3131 1.46643 42.9728 2.35449 39.6955C2.6121 38.7458 3.02813 37.8327 3.44735 36.9395C4.105 35.5366 4.70343 34.0773 5.54829 32.8006C7.15959 30.3683 8.51487 27.8182 9.53734 25.0705C9.60134 24.8962 9.71655 24.7302 9.84136 24.5957C12.1119 22.1535 14.5201 19.8674 17.0514 17.7191C23.9622 11.8551 31.6315 7.39743 40.0769 4.39076C44.0019 2.99285 48.023 1.97015 52.1144 1.24795C56.6011 0.45934 62.4495 -0.0420489 67.4002 0.00277722Z' /%3E%3C/svg%3E\");mask-repeat:no-repeat;mask-position:center}.duet-icon.duet-icon-shape-brand.duet-theme-turva .duet-icon-svg{min-width:auto}.duet-icon .duet-icon-svg{display:block;width:24px;min-width:100%;height:24px;font-size:0}.duet-icon .duet-icon-svg.rotated{transform:rotate(-7deg) scale(1.14)}.duet-icon svg{width:100%;min-width:100%;overflow:clip;fill:currentColor;overflow-clip-margin:1px}:host([size=auto]) .duet-icon-svg{width:100%;height:100%}:host([size=xxx-small]) .duet-icon-svg{width:7px;height:7px}:host([size=xxx-small]) .duet-icon-has-background{padding:6px}:host([size=xxx-small]) .duet-icon-has-outline{padding:4px}:host([size=xxx-small]) .duet-icon-has-background .duet-icon-svg,:host([size=xxx-small]) .duet-icon-has-outline .duet-icon-svg{width:10px;height:10px}:host([size=xxx-small]) .duet-icon-shape-brand{padding:0}:host([size=xxx-small]) .duet-icon-shape-brand .duet-icon-svg{width:0;height:0}:host([size=xx-small]) .duet-icon-svg{width:10px;height:10px}:host([size=xx-small]) .duet-icon-has-background{padding:8px}:host([size=xx-small]) .duet-icon-has-outline{padding:7px}:host([size=xx-small]) .duet-icon-has-background .duet-icon-svg,:host([size=xx-small]) .duet-icon-has-outline .duet-icon-svg{width:16px;height:16px}:host([size=xx-small]) .duet-icon-shape-brand{padding:4px}:host([size=xx-small]) .duet-icon-shape-brand .duet-icon-svg{width:10px;height:10px}:host([size=xx-small]) .duet-theme-turva .duet-icon-shape-brand{width:18px;height:15px;padding:0}:host([size=x-small]) .duet-icon-svg{width:16px;height:16px}:host([size=x-small]) .duet-icon-has-outline{padding:10px}:host([size=x-small]) .duet-icon-has-background{padding:12px}:host([size=x-small]) .duet-icon-shape-brand{padding:8px}:host([size=x-small]) .duet-icon-shape-brand .duet-icon-svg{width:16px;height:16px}:host([size=x-small]) .duet-theme-turva .duet-icon-shape-brand{width:32px;height:30px;padding:0}:host([size=small]) .duet-icon-svg{width:20px;height:20px}:host([size=small]) .duet-icon-has-background{padding:14px}:host([size=small]) .duet-icon-shape-brand{padding:8px}:host([size=small]) .duet-icon-shape-brand .duet-icon-svg{width:20px;height:20px}:host([size=small]) .duet-theme-turva .duet-icon-shape-brand{width:36px;height:34px;padding:0}:host([size=medium]) .duet-icon-shape-brand{padding:12px}:host([size=medium]) .duet-icon-shape-brand .duet-icon-svg{width:24px;height:24px}:host([size=medium]) .duet-theme-turva .duet-icon-shape-brand{width:48px;height:44px;padding:0}:host([size=large]) .duet-icon-svg{width:30px;height:30px}:host([size=large]) .duet-icon-shape-brand{padding:16px}:host([size=large]) .duet-icon-shape-brand .duet-icon-svg{width:30px;height:30px}:host([size=large]) .duet-theme-turva .duet-icon-shape-brand{width:62px;height:56px;padding:0}:host([size=x-large]) .duet-icon-svg{width:36px;height:36px}:host([size=x-large]) .duet-icon-shape-brand{padding:20px}:host([size=x-large]) .duet-icon-shape-brand .duet-icon-svg{width:36px;height:36px}:host([size=x-large]) .duet-theme-turva .duet-icon-shape-brand{width:76px;height:68px;padding:0}:host([size=xx-large]) .duet-icon-svg{width:48px;height:48px}:host([size=xx-large]) .duet-icon-shape-brand{padding:24px}:host([size=xx-large]) .duet-icon-shape-brand .duet-icon-svg{width:48px;height:48px}:host([size=xx-large]) .duet-theme-turva .duet-icon-shape-brand{width:95px;height:86px;padding:0}:host([size=xxx-large]) .duet-icon-svg{width:48px;height:48px}@media (min-width: 48em){:host([size=xxx-large]) .duet-icon-svg{width:72px;height:72px}}:host([size=xxx-large]) .duet-icon-shape-brand{padding:36px}:host([size=xxx-large]) .duet-icon-shape-brand .duet-icon-svg{width:72px;height:72px}:host([size=xxx-large]) .duet-theme-turva .duet-icon-shape-brand{width:144px;height:130px;padding:0}:host(.duet-theme-turva2) .duet-icon.duet-theme-turva{color:#e61740}:host(.duet-theme-turva2) .duet-icon.duet-theme-turva.duet-icon-has-background{color:rgb(255, 255, 255)}:host(.duet-theme-turva2) .duet-icon.duet-theme-turva.duet-icon-shape-brand{-webkit-mask-image:none;mask-image:none;border-radius:16%}";export{u as duet_icon}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,h as t,H as a,g as r}from"./p-BPFqbaxm.js";import{i as s}from"./p-C-YpEPL-.js";import{f as i}from"./p-BkHWWyft.js";import{g as o}from"./p-D5MfS1RP.js";import{g as h}from"./p-Dr2j33H2.js";import"./p-C6E9F6QT.js";import"./p-Z0D6Gy9e.js";const l=class{constructor(t){e(this,t),this.defaultColors=["lt-blue-800","lt-blue-600","success-600","success-800","warning-600","danger-600","danger-800"],this.theme="",this.unit="%"}componentWillLoad(){s(this)}connectedCallback(){this.childObserver=new MutationObserver(this.updateChartItems.bind(this)),this.childObserver.observe(this.element,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),this.updateChartItems()}disconnectedCallback(){this.childObserver&&(this.childObserver.disconnect(),this.childObserver=void 0)}updateChartItems(){const e=o(this.element).filter((e=>"duet-share-chart-item"===e.tagName.toLocaleLowerCase()));this.items=e.map(((e,t)=>({text:e.textContent,value:e.value,color:e.color||this.defaultColors[t%this.defaultColors.length]}))),this.itemsTotalValue=this.items.reduce(((e,{value:t})=>e+t),0)}render(){return t(a,{key:"3ada6920466227b32ee18d3bdee2fb8762a555ea"},t("div",{key:"f2abaf3b3e3e631e48c4df538c397953f133c357",class:"duet-share-chart-horizontal-bar",role:"presentation"},this.items.filter((e=>!!e.value)).map((e=>t("span",{class:"duet-share-chart-share",style:{width:e.value/this.itemsTotalValue*100+"%",backgroundColor:h(e.color,this.theme)}})))),t("ul",{key:"47cc62dfd72a9fd17cfd34e42ddefc84368f8277",class:"duet-share-chart-item-list"},this.items.map((e=>t("li",{class:{"duet-theme-turva":"turva"===this.theme}},t("span",{class:"duet-share-chart-item-color",style:{background:h(e.color,this.theme)}}),t("span",{class:"duet-share-chart-item-text"},e.text,":"),t("span",{class:"duet-share-chart-item-value"}," ",i(e.value)," ",this.unit),"%"!==this.unit&&t("duet-visually-hidden",null,`${i(e.value/this.itemsTotalValue*100,0)} %`))))),t("slot",{key:"0dd9f58d3af51af5179e5a93dc18a4ab34c519f3"}))}get element(){return r(this)}};l.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-share-chart-horizontal-bar{height:16px;margin-bottom:20px;border-radius:4px}.duet-share-chart-horizontal-bar .duet-share-chart-share{box-sizing:border-box;display:inline-block;height:16px;border-color:rgb(255, 255, 255);border-style:solid;border-width:0 1px}.duet-share-chart-horizontal-bar .duet-share-chart-share:first-child{border-left-width:0;border-radius:4px 0 0 4px}.duet-share-chart-horizontal-bar .duet-share-chart-share:last-child{border-right-width:0;border-radius:0 4px 4px 0}.duet-share-chart-item-list{padding:0 4px;margin:0;list-style:none}.duet-share-chart-item-list li{display:flex;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-style:normal;font-weight:400;font-variant-numeric:tabular-nums;color:rgb(8, 42, 77)}.duet-share-chart-item-list li.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-share-chart-item-list span{display:inline-block}.duet-share-chart-item-list .duet-share-chart-item-color{flex-shrink:0;width:12px;height:12px;margin-top:calc((1.5rem - 12px) / 2);margin-right:12px;border-radius:4px}.duet-share-chart-item-list .duet-share-chart-item-value{font-weight:600}:host(.duet-theme-turva2) .duet-share-chart-item-list li.duet-theme-turva{color:#172a3b}';export{l as duet_share_chart}
4
+ import{r as e,h as t,H as a,g as r}from"./p-BfHFKBVa.js";import{i as s}from"./p-BFsh4y5I.js";import{f as i}from"./p-D4WDSjzx.js";import{g as o}from"./p-x84EsPoI.js";import{g as h}from"./p-Do6ugHz0.js";import"./p-C6E9F6QT.js";import"./p-Z0D6Gy9e.js";const l=class{constructor(t){e(this,t),this.defaultColors=["lt-blue-800","lt-blue-600","success-600","success-800","warning-600","danger-600","danger-800"],this.theme="",this.unit="%"}componentWillLoad(){s(this)}connectedCallback(){this.childObserver=new MutationObserver(this.updateChartItems.bind(this)),this.childObserver.observe(this.element,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),this.updateChartItems()}disconnectedCallback(){this.childObserver&&(this.childObserver.disconnect(),this.childObserver=void 0)}updateChartItems(){const e=o(this.element).filter((e=>"duet-share-chart-item"===e.tagName.toLocaleLowerCase()));this.items=e.map(((e,t)=>({text:e.textContent,value:e.value,color:e.color||this.defaultColors[t%this.defaultColors.length]}))),this.itemsTotalValue=this.items.reduce(((e,{value:t})=>e+t),0)}render(){return t(a,{key:"c22523d7e91ce5ef59f5553ed847309cc45c9499"},t("div",{key:"9aa4f2e4c117c5f7c30bce27585c7abc4d5568ea",class:"duet-share-chart-horizontal-bar",role:"presentation"},this.items.filter((e=>!!e.value)).map((e=>t("span",{class:"duet-share-chart-share",style:{width:e.value/this.itemsTotalValue*100+"%",backgroundColor:h(e.color,this.theme)}})))),t("ul",{key:"428d17dde9185b071455325d5d2195618f4a0267",class:"duet-share-chart-item-list"},this.items.map((e=>t("li",{class:{"duet-theme-turva":"turva"===this.theme}},t("span",{class:"duet-share-chart-item-color",style:{background:h(e.color,this.theme)}}),t("span",{class:"duet-share-chart-item-text"},e.text,":"),t("span",{class:"duet-share-chart-item-value"}," ",i(e.value)," ",this.unit),"%"!==this.unit&&t("duet-visually-hidden",null,`${i(e.value/this.itemsTotalValue*100,0)} %`))))),t("slot",{key:"2f394e013dfe0a533524bef6f0649f57d1c2d957"}))}get element(){return r(this)}};l.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-share-chart-horizontal-bar{height:16px;margin-bottom:20px;border-radius:4px}.duet-share-chart-horizontal-bar .duet-share-chart-share{box-sizing:border-box;display:inline-block;height:16px;border-color:rgb(255, 255, 255);border-style:solid;border-width:0 1px}.duet-share-chart-horizontal-bar .duet-share-chart-share:first-child{border-left-width:0;border-radius:4px 0 0 4px}.duet-share-chart-horizontal-bar .duet-share-chart-share:last-child{border-right-width:0;border-radius:0 4px 4px 0}.duet-share-chart-item-list{padding:0 4px;margin:0;list-style:none}.duet-share-chart-item-list li{display:flex;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-style:normal;font-weight:400;font-variant-numeric:tabular-nums;color:rgb(8, 42, 77)}.duet-share-chart-item-list li.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-share-chart-item-list span{display:inline-block}.duet-share-chart-item-list .duet-share-chart-item-color{flex-shrink:0;width:12px;height:12px;margin-top:calc((1.5rem - 12px) / 2);margin-right:12px;border-radius:4px}.duet-share-chart-item-list .duet-share-chart-item-value{font-weight:600}:host(.duet-theme-turva2) .duet-share-chart-item-list li.duet-theme-turva{color:#172a3b}';export{l as duet_share_chart}