@duetds/components 9.3.1 → 9.4.0

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 (705) hide show
  1. package/hydrate/index.js +319 -201
  2. package/lib/cjs/{a11y-utils-b489bafd.js → a11y-utils-9a2b3c7b.js} +1 -1
  3. package/lib/cjs/{app-globals-3993d4ba.js → app-globals-041a56ca.js} +1 -1
  4. package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
  5. package/lib/cjs/duet-alert.cjs.entry.js +4 -4
  6. package/lib/cjs/duet-badge.cjs.entry.js +3 -3
  7. package/lib/cjs/duet-banner.cjs.entry.js +2 -2
  8. package/lib/cjs/duet-breadcrumb.cjs.entry.js +7 -7
  9. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +4 -4
  10. package/lib/cjs/duet-button_2.cjs.entry.js +4 -4
  11. package/lib/cjs/duet-callout.cjs.entry.js +4 -4
  12. package/lib/cjs/duet-caption_4.cjs.entry.js +11 -11
  13. package/lib/cjs/duet-card.cjs.entry.js +3 -3
  14. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  15. package/lib/cjs/duet-checkmark.cjs.entry.js +3 -3
  16. package/lib/cjs/duet-chip_3.cjs.entry.js +8 -7
  17. package/lib/cjs/duet-choice_2.cjs.entry.js +4 -4
  18. package/lib/cjs/duet-collapsible.cjs.entry.js +17 -6
  19. package/lib/cjs/duet-combobox.cjs.entry.js +4 -4
  20. package/lib/cjs/duet-contact-card.cjs.entry.js +4 -4
  21. package/lib/cjs/duet-cookie-consent.cjs.entry.js +3 -3
  22. package/lib/cjs/duet-date-picker.cjs.entry.js +4 -4
  23. package/lib/cjs/duet-divider_2.cjs.entry.js +3 -3
  24. package/lib/cjs/duet-editable-table_3.cjs.entry.js +8 -8
  25. package/lib/cjs/duet-empty-state.cjs.entry.js +3 -3
  26. package/lib/cjs/duet-fieldset.cjs.entry.js +5 -5
  27. package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
  28. package/lib/cjs/duet-footer.cjs.entry.js +8 -8
  29. package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
  30. package/lib/cjs/duet-header_2.cjs.entry.js +4 -4
  31. package/lib/cjs/duet-hero.cjs.entry.js +8 -8
  32. package/lib/cjs/duet-icon.cjs.entry.js +4 -4
  33. package/lib/cjs/duet-input_2.cjs.entry.js +4 -4
  34. package/lib/cjs/duet-layout.cjs.entry.js +7 -7
  35. package/lib/cjs/duet-list_2.cjs.entry.js +4 -4
  36. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +3 -3
  37. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +4 -4
  38. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +6 -6
  39. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +6 -6
  40. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +3 -3
  41. package/lib/cjs/duet-menu-bar.cjs.entry.js +4 -4
  42. package/lib/cjs/duet-modal.cjs.entry.js +11 -11
  43. package/lib/cjs/duet-multiselect.cjs.entry.js +9 -9
  44. package/lib/cjs/duet-nav.cjs.entry.js +2 -2
  45. package/lib/cjs/duet-notification_2.cjs.entry.js +7 -7
  46. package/lib/cjs/duet-number-input.cjs.entry.js +4 -4
  47. package/lib/cjs/duet-overlay.cjs.entry.js +2 -2
  48. package/lib/cjs/duet-page-heading.cjs.entry.js +3 -3
  49. package/lib/cjs/duet-pagination_2.cjs.entry.js +16 -16
  50. package/lib/cjs/duet-progress.cjs.entry.js +2 -2
  51. package/lib/cjs/duet-promo-card.cjs.entry.js +4 -4
  52. package/lib/cjs/duet-radio_2.cjs.entry.js +2 -2
  53. package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
  54. package/lib/cjs/duet-scrollable_3.cjs.entry.js +29 -28
  55. package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
  56. package/lib/cjs/duet-select.cjs.entry.js +2 -2
  57. package/lib/cjs/duet-shaped-image.cjs.entry.js +3 -3
  58. package/lib/cjs/duet-show-more.cjs.entry.js +5 -5
  59. package/lib/cjs/duet-slideout-lang.cjs.entry.js +3 -3
  60. package/lib/cjs/duet-slideout-link.cjs.entry.js +3 -3
  61. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +5 -5
  62. package/lib/cjs/duet-slideout-panel.cjs.entry.js +10 -10
  63. package/lib/cjs/duet-slideout.cjs.entry.js +28 -14
  64. package/lib/cjs/duet-status-icon.cjs.entry.js +86 -0
  65. package/lib/cjs/duet-step_2.cjs.entry.js +3 -3
  66. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +4 -4
  67. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +6 -6
  68. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +6 -6
  69. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +3 -3
  70. package/lib/cjs/duet-submenu-bar.cjs.entry.js +6 -6
  71. package/lib/cjs/duet-textarea.cjs.entry.js +3 -3
  72. package/lib/cjs/duet-toggle.cjs.entry.js +2 -2
  73. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +4 -4
  74. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +6 -6
  75. package/lib/cjs/duet-toolbar-item.cjs.entry.js +7 -7
  76. package/lib/cjs/duet-toolbar-link.cjs.entry.js +3 -3
  77. package/lib/cjs/duet-toolbar.cjs.entry.js +3 -3
  78. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +7 -7
  79. package/lib/cjs/duet-tooltip.cjs.entry.js +3 -3
  80. package/lib/cjs/duet-tray.cjs.entry.js +5 -5
  81. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
  82. package/lib/cjs/duet-upload-item.cjs.entry.js +5 -5
  83. package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
  84. package/lib/cjs/duet.cjs.js +3 -3
  85. package/lib/cjs/{errorcodes.utils-3e4d2f19.js → errorcodes.utils-381e59b0.js} +1 -1
  86. package/lib/cjs/{focus-utils-5c18768b.js → focus-utils-8b057c75.js} +1 -1
  87. package/lib/cjs/{index-308de19b.js → index-0885358e.js} +1 -1
  88. package/lib/cjs/{keyboard-utils-681e11ec.js → keyboard-utils-f7c9f980.js} +4 -0
  89. package/lib/cjs/{language-utils-9e680f03.js → language-utils-ae5d768d.js} +1 -1
  90. package/lib/cjs/loader.cjs.js +3 -3
  91. package/lib/cjs/{slot-utils-5b1180b0.js → slot-utils-63bd5fd6.js} +1 -1
  92. package/lib/collection/collection-manifest.json +1 -0
  93. package/lib/collection/components/duet-badge/duet-badge.js +2 -2
  94. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
  95. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
  96. package/lib/collection/components/duet-callout/duet-callout.js +2 -2
  97. package/lib/collection/components/duet-chip/duet-chip.js +3 -2
  98. package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
  99. package/lib/collection/components/duet-collapsible/duet-collapsible.css +17 -1
  100. package/lib/collection/components/duet-collapsible/duet-collapsible.js +33 -2
  101. package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
  102. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
  103. package/lib/collection/components/duet-divider/duet-divider.js +1 -1
  104. package/lib/collection/components/duet-empty-state/duet-empty-state.js +2 -2
  105. package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
  106. package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
  107. package/lib/collection/components/duet-footer/duet-footer.js +4 -4
  108. package/lib/collection/components/duet-heading/duet-heading.css +1 -0
  109. package/lib/collection/components/duet-heading/duet-heading.js +2 -2
  110. package/lib/collection/components/duet-hero/duet-hero.js +5 -5
  111. package/lib/collection/components/duet-icon/duet-icon.js +3 -3
  112. package/lib/collection/components/duet-layout/duet-layout.js +5 -5
  113. package/lib/collection/components/duet-link/duet-link.js +2 -2
  114. package/lib/collection/components/duet-list/duet-list.js +1 -1
  115. package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
  116. package/lib/collection/components/duet-logo/duet-logo.js +1 -1
  117. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +2 -2
  118. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
  119. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
  120. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
  121. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
  122. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
  123. package/lib/collection/components/duet-modal/duet-modal.js +6 -6
  124. package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
  125. package/lib/collection/components/duet-nav/duet-nav.js +1 -1
  126. package/lib/collection/components/duet-notification/duet-notification.js +2 -2
  127. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +2 -2
  128. package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
  129. package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
  130. package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
  131. package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
  132. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
  133. package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
  134. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
  135. package/lib/collection/components/duet-scrollable/duet-scrollable.css +8 -33
  136. package/lib/collection/components/duet-scrollable/duet-scrollable.js +15 -17
  137. package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
  138. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
  139. package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
  140. package/lib/collection/components/duet-slideout/duet-slideout.js +23 -9
  141. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
  142. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
  143. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
  144. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
  145. package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
  146. package/lib/collection/components/duet-spinner/duet-spinner.js +2 -2
  147. package/lib/collection/components/duet-status-icon/duet-status-icon.js +182 -0
  148. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  149. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
  150. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
  151. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
  152. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
  153. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
  154. package/lib/collection/components/duet-tab-group/duet-tab-group.css +36 -3
  155. package/lib/collection/components/duet-tab-group/duet-tab-group.js +28 -5
  156. package/lib/collection/components/duet-table/duet-table.js +2 -2
  157. package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
  158. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
  159. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
  160. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
  161. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
  162. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +2 -2
  163. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
  164. package/lib/collection/components/duet-tray/duet-tray.js +2 -2
  165. package/lib/collection/components/duet-upload/duet-upload.js +2 -2
  166. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
  167. package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
  168. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  169. package/lib/collection/utils/keyboard-utils.js +3 -0
  170. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  171. package/lib/dist-custom-elements/duet-alert.js +1 -1
  172. package/lib/dist-custom-elements/duet-badge.js +1 -1
  173. package/lib/dist-custom-elements/duet-banner.js +3 -3
  174. package/lib/dist-custom-elements/duet-breadcrumb.js +8 -8
  175. package/lib/dist-custom-elements/duet-breadcrumbs.js +3 -3
  176. package/lib/dist-custom-elements/duet-button.js +1 -1
  177. package/lib/dist-custom-elements/duet-callout.js +4 -4
  178. package/lib/dist-custom-elements/duet-caption.js +1 -1
  179. package/lib/dist-custom-elements/duet-card.js +4 -4
  180. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  181. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  182. package/lib/dist-custom-elements/duet-chip.js +1 -1
  183. package/lib/dist-custom-elements/duet-choice-group.js +8 -8
  184. package/lib/dist-custom-elements/duet-choice.js +5 -5
  185. package/lib/dist-custom-elements/duet-collapsible.js +25 -7
  186. package/lib/dist-custom-elements/duet-combobox.js +16 -16
  187. package/lib/dist-custom-elements/duet-contact-card.js +10 -10
  188. package/lib/dist-custom-elements/duet-cookie-consent.js +8 -8
  189. package/lib/dist-custom-elements/duet-date-picker.js +13 -13
  190. package/lib/dist-custom-elements/duet-divider.js +1 -1
  191. package/lib/dist-custom-elements/duet-editable-table.js +8 -8
  192. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  193. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  194. package/lib/dist-custom-elements/duet-file-chooser.js +3 -3
  195. package/lib/dist-custom-elements/duet-footer.js +12 -12
  196. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  197. package/lib/dist-custom-elements/duet-grid.js +1 -1
  198. package/lib/dist-custom-elements/duet-header.js +9 -9
  199. package/lib/dist-custom-elements/duet-heading.js +1 -1
  200. package/lib/dist-custom-elements/duet-hero.js +14 -14
  201. package/lib/dist-custom-elements/duet-icon.js +1 -1
  202. package/lib/dist-custom-elements/duet-input.js +1 -1
  203. package/lib/dist-custom-elements/duet-label.js +1 -1
  204. package/lib/dist-custom-elements/duet-layout.js +6 -6
  205. package/lib/dist-custom-elements/duet-link.js +1 -1
  206. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  207. package/lib/dist-custom-elements/duet-list.js +1 -1
  208. package/lib/dist-custom-elements/duet-logo.js +1 -1
  209. package/lib/dist-custom-elements/duet-menu-bar-button.js +4 -4
  210. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +5 -5
  211. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +7 -7
  212. package/lib/dist-custom-elements/duet-menu-bar-item.js +4 -4
  213. package/lib/dist-custom-elements/duet-menu-bar-link.js +4 -4
  214. package/lib/dist-custom-elements/duet-menu-bar.js +4 -4
  215. package/lib/dist-custom-elements/duet-modal.js +15 -15
  216. package/lib/dist-custom-elements/duet-multiselect.js +15 -15
  217. package/lib/dist-custom-elements/duet-nav.js +2 -2
  218. package/lib/dist-custom-elements/duet-notification-drawer.js +7 -7
  219. package/lib/dist-custom-elements/duet-notification.js +5 -5
  220. package/lib/dist-custom-elements/duet-number-input.js +12 -12
  221. package/lib/dist-custom-elements/duet-overlay.js +1 -1
  222. package/lib/dist-custom-elements/duet-page-heading.js +5 -5
  223. package/lib/dist-custom-elements/duet-pagination.js +25 -25
  224. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  225. package/lib/dist-custom-elements/duet-popup-menu-item.js +1 -1
  226. package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
  227. package/lib/dist-custom-elements/duet-progress.js +1 -1
  228. package/lib/dist-custom-elements/duet-promo-card.js +5 -5
  229. package/lib/dist-custom-elements/duet-radio-group.js +8 -8
  230. package/lib/dist-custom-elements/duet-radio.js +1 -1
  231. package/lib/dist-custom-elements/duet-range-slider.js +3 -3
  232. package/lib/dist-custom-elements/duet-range-stepper.js +7 -7
  233. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  234. package/lib/dist-custom-elements/duet-section-layout.js +4 -4
  235. package/lib/dist-custom-elements/duet-select.js +1 -1
  236. package/lib/dist-custom-elements/duet-shaped-image.js +3 -3
  237. package/lib/dist-custom-elements/duet-show-more.js +1 -1
  238. package/lib/dist-custom-elements/duet-slideout-lang.js +3 -3
  239. package/lib/dist-custom-elements/duet-slideout-link.js +4 -4
  240. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +6 -6
  241. package/lib/dist-custom-elements/duet-slideout-panel.js +8 -8
  242. package/lib/dist-custom-elements/duet-slideout.js +27 -13
  243. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  244. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  245. package/lib/dist-custom-elements/duet-status-icon.d.ts +11 -0
  246. package/lib/dist-custom-elements/duet-status-icon.js +111 -0
  247. package/lib/dist-custom-elements/duet-step.js +5 -5
  248. package/lib/dist-custom-elements/duet-stepper.js +3 -3
  249. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +5 -5
  250. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +7 -7
  251. package/lib/dist-custom-elements/duet-submenu-bar-item.js +4 -4
  252. package/lib/dist-custom-elements/duet-submenu-bar-link.js +4 -4
  253. package/lib/dist-custom-elements/duet-submenu-bar.js +8 -8
  254. package/lib/dist-custom-elements/duet-tab-group.js +18 -14
  255. package/lib/dist-custom-elements/duet-tab.js +2 -2
  256. package/lib/dist-custom-elements/duet-table.js +1 -1
  257. package/lib/dist-custom-elements/duet-textarea.js +10 -10
  258. package/lib/dist-custom-elements/duet-toggle.js +3 -3
  259. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +5 -5
  260. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +7 -7
  261. package/lib/dist-custom-elements/duet-toolbar-item.js +5 -5
  262. package/lib/dist-custom-elements/duet-toolbar-link.js +4 -4
  263. package/lib/dist-custom-elements/duet-toolbar.js +3 -3
  264. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  265. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  266. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  267. package/lib/dist-custom-elements/duet-tray.js +6 -6
  268. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  269. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  270. package/lib/dist-custom-elements/duet-upload.js +21 -21
  271. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  272. package/lib/dist-custom-elements/index.js +1 -1
  273. package/lib/dist-custom-elements/{p-fa93d549.js → p-09815b2b.js} +3 -3
  274. package/lib/dist-custom-elements/{p-f7678084.js → p-0c770b66.js} +3 -3
  275. package/lib/dist-custom-elements/{p-11ff6ee6.js → p-0f108a55.js} +3 -3
  276. package/lib/dist-custom-elements/{p-03144d67.js → p-12cf5e61.js} +5 -5
  277. package/lib/dist-custom-elements/{p-b44cec63.js → p-137df5b8.js} +4 -4
  278. package/lib/dist-custom-elements/{p-925a14eb.js → p-1565f818.js} +2 -2
  279. package/lib/dist-custom-elements/{p-10e71cb5.js → p-2307d2d1.js} +5 -5
  280. package/lib/dist-custom-elements/{p-919ca6dd.js → p-2b22f87f.js} +1 -1
  281. package/lib/dist-custom-elements/{p-1281e1e4.js → p-2de672fa.js} +3 -3
  282. package/lib/dist-custom-elements/{p-c0c88c27.js → p-379ead88.js} +8 -8
  283. package/lib/dist-custom-elements/{p-728ed30b.js → p-43fd1a4e.js} +1 -1
  284. package/lib/dist-custom-elements/{p-116723b5.js → p-4a5693c1.js} +11 -11
  285. package/lib/dist-custom-elements/{p-86cda54d.js → p-5e0c9ae3.js} +2 -2
  286. package/lib/dist-custom-elements/{p-ca500368.js → p-64ac2d82.js} +5 -4
  287. package/lib/dist-custom-elements/{p-232eed7a.js → p-6800a20c.js} +1 -1
  288. package/lib/dist-custom-elements/{p-6296e23f.js → p-728d540b.js} +6 -6
  289. package/lib/dist-custom-elements/{p-72037967.js → p-74a62a18.js} +2 -2
  290. package/lib/dist-custom-elements/{p-146d2870.js → p-779bb3cb.js} +4 -4
  291. package/lib/dist-custom-elements/{p-db1bb078.js → p-7a8ebdb7.js} +1 -1
  292. package/lib/dist-custom-elements/{p-6c0aecd9.js → p-7ef40153.js} +6 -6
  293. package/lib/dist-custom-elements/{p-aee23cfb.js → p-7ff2883f.js} +4 -4
  294. package/lib/dist-custom-elements/{p-87c9ca7e.js → p-8756bed2.js} +2 -2
  295. package/lib/dist-custom-elements/{p-ca700701.js → p-8db11326.js} +4 -1
  296. package/lib/dist-custom-elements/{p-a8691042.js → p-958921e7.js} +1 -1
  297. package/lib/dist-custom-elements/{p-8ccceae3.js → p-9b617d26.js} +4 -4
  298. package/lib/dist-custom-elements/{p-b638e31c.js → p-a20d05a4.js} +2 -2
  299. package/lib/dist-custom-elements/p-a40c2591.js +80 -0
  300. package/lib/dist-custom-elements/{p-30b9325f.js → p-ab6edc77.js} +2 -2
  301. package/lib/dist-custom-elements/{p-d1d9f6b0.js → p-b4bf10b0.js} +2 -2
  302. package/lib/dist-custom-elements/{p-73ffdef5.js → p-b81ca2db.js} +21 -23
  303. package/lib/dist-custom-elements/{p-18a8c997.js → p-c93eb05d.js} +7 -7
  304. package/lib/dist-custom-elements/{p-17527d09.js → p-d8614705.js} +1 -1
  305. package/lib/dist-custom-elements/{p-4f9534fd.js → p-d98c8b50.js} +3 -3
  306. package/lib/dist-custom-elements/{p-740f2c93.js → p-dbd1adfc.js} +8 -8
  307. package/lib/dist-custom-elements/{p-031904df.js → p-e241b5a5.js} +2 -2
  308. package/lib/dist-custom-elements/{p-1698c5c6.js → p-e867abf5.js} +12 -12
  309. package/lib/dist-custom-elements/{p-b94d7fea.js → p-ea9b9b2f.js} +3 -3
  310. package/lib/dist-custom-elements/{p-32cc8d09.js → p-edee5233.js} +4 -4
  311. package/lib/dist-custom-elements/{p-d4204bb3.js → p-ef22eef0.js} +4 -4
  312. package/lib/dist-custom-elements/{p-10792647.js → p-fc61e76b.js} +3 -3
  313. package/lib/duet/duet.esm.js +1 -1
  314. package/lib/duet/duet.js +1 -1
  315. package/lib/duet/{p-d4f3806f.system.entry.js → p-01138f48.system.entry.js} +1 -1
  316. package/lib/duet/{p-15c699cd.system.entry.js → p-03e62726.system.entry.js} +1 -1
  317. package/lib/duet/{p-cb77c1de.system.entry.js → p-07da24e7.system.entry.js} +1 -1
  318. package/lib/duet/{p-aa2dec8a.system.entry.js → p-0b35587c.system.entry.js} +1 -1
  319. package/lib/duet/{p-6002a245.entry.js → p-0b7a9e7e.entry.js} +1 -1
  320. package/lib/duet/{p-d39de46c.system.entry.js → p-0be1d10e.system.entry.js} +1 -1
  321. package/lib/duet/{p-7b0299a8.system.entry.js → p-0bf58ef6.system.entry.js} +1 -1
  322. package/lib/duet/{p-d03e48cd.system.entry.js → p-0c298b66.system.entry.js} +1 -1
  323. package/lib/duet/{p-3b6a3c28.entry.js → p-0cdced5e.entry.js} +1 -1
  324. package/lib/duet/p-0d6ace6f.js +4 -0
  325. package/lib/duet/{p-2af47fcd.system.entry.js → p-0e7d38cc.system.entry.js} +1 -1
  326. package/lib/duet/{p-5d392e73.system.entry.js → p-0fbac587.system.entry.js} +1 -1
  327. package/lib/duet/p-11654b49.entry.js +4 -0
  328. package/lib/duet/{p-28ba70b1.entry.js → p-11be757f.entry.js} +1 -1
  329. package/lib/duet/{p-101017ca.entry.js → p-122749fb.entry.js} +1 -1
  330. package/lib/duet/{p-44e8ce81.system.entry.js → p-157dff13.system.entry.js} +1 -1
  331. package/lib/duet/{p-1d206455.entry.js → p-157e23af.entry.js} +1 -1
  332. package/lib/duet/{p-94ac429e.system.entry.js → p-15a53691.system.entry.js} +1 -1
  333. package/lib/duet/{p-3621960b.entry.js → p-162799c6.entry.js} +1 -1
  334. package/lib/duet/{p-4524ff9c.entry.js → p-16faee9f.entry.js} +1 -1
  335. package/lib/duet/{p-de1b9216.system.entry.js → p-17895d18.system.entry.js} +1 -1
  336. package/lib/duet/{p-29b4ce3d.system.js → p-1798db32.system.js} +1 -1
  337. package/lib/duet/{p-3a916337.entry.js → p-1a79e62b.entry.js} +1 -1
  338. package/lib/duet/{p-50ad66d1.entry.js → p-1cd57607.entry.js} +1 -1
  339. package/lib/duet/{p-08f7ea67.system.entry.js → p-21e80fca.system.entry.js} +1 -1
  340. package/lib/duet/{p-47c7c781.entry.js → p-21e9479b.entry.js} +1 -1
  341. package/lib/duet/{p-10a0daae.system.entry.js → p-223809b0.system.entry.js} +1 -1
  342. package/lib/duet/{p-00e5331e.system.entry.js → p-228c4e1a.system.entry.js} +1 -1
  343. package/lib/duet/{p-be498a29.system.entry.js → p-2333b3be.system.entry.js} +2 -2
  344. package/lib/duet/{p-b3c2e814.system.entry.js → p-24430da8.system.entry.js} +1 -1
  345. package/lib/duet/{p-0dbe3c36.system.entry.js → p-255e535e.system.entry.js} +2 -2
  346. package/lib/duet/{p-dd683304.system.entry.js → p-26673b69.system.entry.js} +1 -1
  347. package/lib/duet/{p-8367480b.entry.js → p-27c6a5e8.entry.js} +1 -1
  348. package/lib/duet/{p-79766f1c.system.entry.js → p-289411d8.system.entry.js} +1 -1
  349. package/lib/duet/{p-b2b6d11a.system.entry.js → p-29ce7512.system.entry.js} +2 -2
  350. package/lib/duet/p-2b2cc6ec.system.entry.js +4 -0
  351. package/lib/duet/{p-8093f39c.system.entry.js → p-2c111433.system.entry.js} +1 -1
  352. package/lib/duet/{p-7f554f9f.system.js → p-2cdacb01.system.js} +1 -1
  353. package/lib/duet/{p-693a0309.entry.js → p-2d1ba8e7.entry.js} +1 -1
  354. package/lib/duet/{p-6953a6f7.system.entry.js → p-2de788fb.system.entry.js} +1 -1
  355. package/lib/duet/{p-96a12ba9.entry.js → p-2e8b6b27.entry.js} +1 -1
  356. package/lib/duet/p-2ebd7e11.entry.js +4 -0
  357. package/lib/duet/{p-58571830.system.entry.js → p-3023a9c8.system.entry.js} +1 -1
  358. package/lib/duet/p-30377b9c.system.entry.js +4 -0
  359. package/lib/duet/{p-8572f3a7.entry.js → p-30958aff.entry.js} +1 -1
  360. package/lib/duet/p-309ed04d.entry.js +4 -0
  361. package/lib/duet/p-31c8a4f9.entry.js +4 -0
  362. package/lib/duet/{p-d9f56096.system.entry.js → p-32789a75.system.entry.js} +1 -1
  363. package/lib/duet/{p-5bf5d856.system.entry.js → p-34aaba6d.system.entry.js} +2 -2
  364. package/lib/duet/p-3670f3bf.js +4 -0
  365. package/lib/duet/{p-fbe2e4c7.entry.js → p-37f5330c.entry.js} +1 -1
  366. package/lib/duet/{p-e9979b39.system.entry.js → p-386f4b25.system.entry.js} +1 -1
  367. package/lib/duet/{p-f83de21f.entry.js → p-390c7d6b.entry.js} +1 -1
  368. package/lib/duet/{p-2a6a064b.system.js → p-3986c681.system.js} +1 -1
  369. package/lib/duet/{p-cb105d1c.entry.js → p-3ae84db5.entry.js} +1 -1
  370. package/lib/duet/{p-40b8cc8d.system.entry.js → p-3ae8a375.system.entry.js} +1 -1
  371. package/lib/duet/{p-6aa58c2c.js → p-3afaf734.js} +1 -1
  372. package/lib/duet/{p-47197af7.entry.js → p-3db76aae.entry.js} +1 -1
  373. package/lib/duet/{p-82a14ed2.entry.js → p-3dfeb490.entry.js} +1 -1
  374. package/lib/duet/{p-35749d88.entry.js → p-3f3cea24.entry.js} +1 -1
  375. package/lib/duet/{p-c62f5d52.js → p-402af830.js} +1 -1
  376. package/lib/duet/{p-3475d53a.system.entry.js → p-40f1f79f.system.entry.js} +1 -1
  377. package/lib/duet/{p-349e5b05.system.entry.js → p-40f5341f.system.entry.js} +1 -1
  378. package/lib/duet/{p-d8aa2d16.entry.js → p-412ea70f.entry.js} +1 -1
  379. package/lib/duet/{p-037e9404.system.js → p-447e1392.system.js} +1 -1
  380. package/lib/duet/{p-df812be9.entry.js → p-4621935a.entry.js} +1 -1
  381. package/lib/duet/{p-0c9adf52.entry.js → p-48c4241a.entry.js} +1 -1
  382. package/lib/duet/{p-9f76aa43.system.entry.js → p-49782d32.system.entry.js} +1 -1
  383. package/lib/duet/{p-9b7f2415.entry.js → p-4b260d34.entry.js} +1 -1
  384. package/lib/duet/{p-f3d2fee1.entry.js → p-4ca65f0e.entry.js} +1 -1
  385. package/lib/duet/{p-dcf5c2c2.entry.js → p-4d6b7fc3.entry.js} +1 -1
  386. package/lib/duet/{p-b8fecd5a.system.entry.js → p-4dc5c722.system.entry.js} +1 -1
  387. package/lib/duet/{p-fbc91093.js → p-4dcb6a39.js} +1 -1
  388. package/lib/duet/{p-41aac653.entry.js → p-4e431348.entry.js} +1 -1
  389. package/lib/duet/p-4ed3dbdb.entry.js +4 -0
  390. package/lib/duet/p-537b9b7c.entry.js +4 -0
  391. package/lib/duet/{p-acfb271d.system.entry.js → p-5a18d272.system.entry.js} +2 -2
  392. package/lib/duet/{p-52647e6d.entry.js → p-5c24625f.entry.js} +1 -1
  393. package/lib/duet/p-5c58f1d6.system.js +4 -0
  394. package/lib/duet/{p-d882fce1.system.entry.js → p-61458b6d.system.entry.js} +1 -1
  395. package/lib/duet/{p-2e7c2306.system.entry.js → p-677ee7c2.system.entry.js} +1 -1
  396. package/lib/duet/{p-f47a9dc3.system.entry.js → p-6789bfc3.system.entry.js} +2 -2
  397. package/lib/duet/{p-559b8005.entry.js → p-67eefd11.entry.js} +1 -1
  398. package/lib/duet/{p-bc182d55.entry.js → p-689d753c.entry.js} +1 -1
  399. package/lib/duet/{p-375fd45d.entry.js → p-6b0a411f.entry.js} +1 -1
  400. package/lib/duet/{p-a1ab523a.js → p-6b7d8a09.js} +1 -1
  401. package/lib/duet/{p-4ad78094.entry.js → p-6b8e825d.entry.js} +1 -1
  402. package/lib/duet/{p-676dccd2.entry.js → p-6d21309f.entry.js} +1 -1
  403. package/lib/duet/{p-3322fce0.entry.js → p-6d979036.entry.js} +1 -1
  404. package/lib/duet/{p-0d59c909.js → p-7094e51e.js} +1 -1
  405. package/lib/duet/{p-3cdc41d0.entry.js → p-71088a03.entry.js} +1 -1
  406. package/lib/duet/{p-dfceca24.entry.js → p-71daec5c.entry.js} +1 -1
  407. package/lib/duet/{p-d676377f.system.entry.js → p-728018d9.system.entry.js} +1 -1
  408. package/lib/duet/{p-f3347fc4.system.entry.js → p-72c8f523.system.entry.js} +1 -1
  409. package/lib/duet/{p-34d7dd10.system.js → p-752fa0fc.system.js} +1 -1
  410. package/lib/duet/{p-0f78a880.entry.js → p-77300e28.entry.js} +1 -1
  411. package/lib/duet/{p-bc70d945.system.entry.js → p-787d25f2.system.entry.js} +1 -1
  412. package/lib/duet/{p-e840989c.system.entry.js → p-7983c4a8.system.entry.js} +1 -1
  413. package/lib/duet/{p-f5554879.system.entry.js → p-7a14a530.system.entry.js} +1 -1
  414. package/lib/duet/{p-c81de8ef.entry.js → p-7bd6f4b7.entry.js} +1 -1
  415. package/lib/duet/{p-cabd0c63.system.entry.js → p-7c8ae4e7.system.entry.js} +1 -1
  416. package/lib/duet/{p-1dfc4d3d.system.entry.js → p-7ce19618.system.entry.js} +1 -1
  417. package/lib/duet/{p-9373bf53.system.entry.js → p-7fcef23b.system.entry.js} +1 -1
  418. package/lib/duet/{p-d293eadd.entry.js → p-80149654.entry.js} +1 -1
  419. package/lib/duet/{p-ab30e71c.system.js → p-8296c9c2.system.js} +1 -1
  420. package/lib/duet/p-832b9f34.system.js +4 -0
  421. package/lib/duet/{p-8a5a4459.entry.js → p-8398084e.entry.js} +1 -1
  422. package/lib/duet/{p-000c8091.entry.js → p-8687fcc2.entry.js} +1 -1
  423. package/lib/duet/{p-ce30e9b2.entry.js → p-8735343c.entry.js} +1 -1
  424. package/lib/duet/{p-1c9a14c5.entry.js → p-88fb65a2.entry.js} +1 -1
  425. package/lib/duet/{p-ab2ecb6b.entry.js → p-8c6cdf79.entry.js} +1 -1
  426. package/lib/duet/p-8cb2fdd0.entry.js +4 -0
  427. package/lib/duet/{p-a4d75a65.entry.js → p-8cc83f72.entry.js} +1 -1
  428. package/lib/duet/p-8d6f34c7.entry.js +4 -0
  429. package/lib/duet/p-8e661448.entry.js +4 -0
  430. package/lib/duet/{p-9aff55d2.system.entry.js → p-8ea78391.system.entry.js} +1 -1
  431. package/lib/duet/{p-4ca08279.entry.js → p-90deab2b.entry.js} +1 -1
  432. package/lib/duet/{p-5bc6023c.system.entry.js → p-929a9ac4.system.entry.js} +1 -1
  433. package/lib/duet/p-95dfc82e.entry.js +4 -0
  434. package/lib/duet/{p-2ab5e379.entry.js → p-9720b69d.entry.js} +1 -1
  435. package/lib/duet/{p-8993fa9f.system.entry.js → p-97f5cc5f.system.entry.js} +1 -1
  436. package/lib/duet/{p-cd414949.entry.js → p-987d35e4.entry.js} +1 -1
  437. package/lib/duet/{p-4ea54546.entry.js → p-9a51b302.entry.js} +1 -1
  438. package/lib/duet/{p-93a028f8.entry.js → p-9a699405.entry.js} +1 -1
  439. package/lib/duet/p-9ab1ed28.entry.js +4 -0
  440. package/lib/duet/{p-9548b5ad.entry.js → p-9b31aec7.entry.js} +1 -1
  441. package/lib/duet/p-9b975c4d.system.entry.js +4 -0
  442. package/lib/duet/{p-34ef022a.system.entry.js → p-9f448577.system.entry.js} +1 -1
  443. package/lib/duet/p-a45e3f8b.js +4 -0
  444. package/lib/duet/{p-5285f6cb.system.entry.js → p-a90dbdf5.system.entry.js} +1 -1
  445. package/lib/duet/{p-c4927a81.system.entry.js → p-a9b15fd2.system.entry.js} +1 -1
  446. package/lib/duet/{p-b286b3a4.system.entry.js → p-ad829c9c.system.entry.js} +2 -2
  447. package/lib/duet/{p-bbfa1306.system.entry.js → p-afb94f9d.system.entry.js} +1 -1
  448. package/lib/duet/{p-77a35713.system.entry.js → p-b4240572.system.entry.js} +1 -1
  449. package/lib/duet/{p-b2fee964.system.entry.js → p-b4c99a36.system.entry.js} +1 -1
  450. package/lib/duet/{p-3a183ef9.system.entry.js → p-b6d838f9.system.entry.js} +1 -1
  451. package/lib/duet/{p-fb47f14d.system.entry.js → p-b9652b11.system.entry.js} +2 -2
  452. package/lib/duet/{p-83479f79.system.entry.js → p-bade7a64.system.entry.js} +1 -1
  453. package/lib/duet/{p-3f94c117.system.entry.js → p-baeada3f.system.entry.js} +1 -1
  454. package/lib/duet/p-c44fa6da.system.js +4 -0
  455. package/lib/duet/{p-c50ad055.entry.js → p-c65a8fd5.entry.js} +1 -1
  456. package/lib/duet/{p-bb6c0288.entry.js → p-c7999f61.entry.js} +1 -1
  457. package/lib/duet/{p-bc7bebb9.system.entry.js → p-ca7e058e.system.entry.js} +1 -1
  458. package/lib/duet/{p-76fe845d.entry.js → p-cbceab61.entry.js} +1 -1
  459. package/lib/duet/{p-771cf850.system.entry.js → p-cd19a1eb.system.entry.js} +2 -2
  460. package/lib/duet/{p-622af6ea.entry.js → p-ce62a521.entry.js} +1 -1
  461. package/lib/duet/{p-1b3498d6.entry.js → p-ce90eee7.entry.js} +1 -1
  462. package/lib/duet/{p-64c92e74.system.entry.js → p-d0850ee7.system.entry.js} +2 -2
  463. package/lib/duet/{p-e8aa5603.system.entry.js → p-d1299867.system.entry.js} +1 -1
  464. package/lib/duet/p-d1c50a7f.entry.js +4 -0
  465. package/lib/duet/{p-5901c2b4.system.entry.js → p-d2cca9d5.system.entry.js} +1 -1
  466. package/lib/duet/p-d3c0331b.system.entry.js +4 -0
  467. package/lib/duet/{p-9d3970f3.entry.js → p-d4cb4cd0.entry.js} +1 -1
  468. package/lib/duet/{p-e2060a86.system.entry.js → p-d603dd16.system.entry.js} +1 -1
  469. package/lib/duet/{p-d3f8f2ca.system.entry.js → p-d68f8928.system.entry.js} +1 -1
  470. package/lib/duet/p-d9bf3529.system.entry.js +4 -0
  471. package/lib/duet/{p-8194bb99.entry.js → p-dc575c6f.entry.js} +1 -1
  472. package/lib/duet/{p-635737ff.system.entry.js → p-e039b7fb.system.entry.js} +1 -1
  473. package/lib/duet/{p-c8fb283f.entry.js → p-e08b5b39.entry.js} +1 -1
  474. package/lib/duet/{p-292a85f3.entry.js → p-e6e0246c.entry.js} +1 -1
  475. package/lib/duet/p-e8c1027b.system.entry.js +4 -0
  476. package/lib/duet/{p-823521aa.entry.js → p-ea3c0f7a.entry.js} +1 -1
  477. package/lib/duet/{p-7598a3e2.entry.js → p-ea44e8dd.entry.js} +1 -1
  478. package/lib/duet/p-eb17346a.system.entry.js +4 -0
  479. package/lib/duet/{p-ce8db2b5.entry.js → p-eb66b734.entry.js} +1 -1
  480. package/lib/duet/{p-a1ba1ce3.system.entry.js → p-ed2ba463.system.entry.js} +1 -1
  481. package/lib/duet/{p-344eb22a.system.entry.js → p-edc41e58.system.entry.js} +1 -1
  482. package/lib/duet/{p-2dda809f.system.entry.js → p-edf6efb7.system.entry.js} +1 -1
  483. package/lib/duet/{p-06bcf0f6.entry.js → p-f02aa41c.entry.js} +1 -1
  484. package/lib/duet/{p-bda6b275.entry.js → p-f2e8bda0.entry.js} +1 -1
  485. package/lib/duet/p-f4328c39.entry.js +4 -0
  486. package/lib/duet/{p-3e949daf.system.entry.js → p-f53fb433.system.entry.js} +1 -1
  487. package/lib/duet/{p-5e797987.system.entry.js → p-f80d1698.system.entry.js} +1 -1
  488. package/lib/duet/{p-d2305166.system.entry.js → p-f8f61f7d.system.entry.js} +1 -1
  489. package/lib/duet/{p-7fb35f58.entry.js → p-fa569461.entry.js} +1 -1
  490. package/lib/duet/p-fa88cac4.system.entry.js +4 -0
  491. package/lib/duet/{p-bdea7ea0.entry.js → p-fc30d695.entry.js} +1 -1
  492. package/lib/esm/{a11y-utils-f2222b42.js → a11y-utils-efd1151b.js} +1 -1
  493. package/lib/esm/{app-globals-ea4c814c.js → app-globals-8f12ab47.js} +1 -1
  494. package/lib/esm/duet-action-button.entry.js +3 -3
  495. package/lib/esm/duet-alert.entry.js +4 -4
  496. package/lib/esm/duet-badge.entry.js +3 -3
  497. package/lib/esm/duet-banner.entry.js +2 -2
  498. package/lib/esm/duet-breadcrumb.entry.js +7 -7
  499. package/lib/esm/duet-breadcrumbs.entry.js +4 -4
  500. package/lib/esm/duet-button_2.entry.js +4 -4
  501. package/lib/esm/duet-callout.entry.js +4 -4
  502. package/lib/esm/duet-caption_4.entry.js +11 -11
  503. package/lib/esm/duet-card.entry.js +3 -3
  504. package/lib/esm/duet-checkbox.entry.js +1 -1
  505. package/lib/esm/duet-checkmark.entry.js +3 -3
  506. package/lib/esm/duet-chip_3.entry.js +8 -7
  507. package/lib/esm/duet-choice_2.entry.js +4 -4
  508. package/lib/esm/duet-collapsible.entry.js +17 -6
  509. package/lib/esm/duet-combobox.entry.js +4 -4
  510. package/lib/esm/duet-contact-card.entry.js +4 -4
  511. package/lib/esm/duet-cookie-consent.entry.js +3 -3
  512. package/lib/esm/duet-date-picker.entry.js +4 -4
  513. package/lib/esm/duet-divider_2.entry.js +3 -3
  514. package/lib/esm/duet-editable-table_3.entry.js +8 -8
  515. package/lib/esm/duet-empty-state.entry.js +3 -3
  516. package/lib/esm/duet-fieldset.entry.js +5 -5
  517. package/lib/esm/duet-file-chooser.entry.js +2 -2
  518. package/lib/esm/duet-footer.entry.js +8 -8
  519. package/lib/esm/duet-grid_2.entry.js +1 -1
  520. package/lib/esm/duet-header_2.entry.js +4 -4
  521. package/lib/esm/duet-hero.entry.js +8 -8
  522. package/lib/esm/duet-icon.entry.js +4 -4
  523. package/lib/esm/duet-input_2.entry.js +4 -4
  524. package/lib/esm/duet-layout.entry.js +7 -7
  525. package/lib/esm/duet-list_2.entry.js +4 -4
  526. package/lib/esm/duet-menu-bar-button.entry.js +3 -3
  527. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +4 -4
  528. package/lib/esm/duet-menu-bar-dropdown.entry.js +6 -6
  529. package/lib/esm/duet-menu-bar-item.entry.js +6 -6
  530. package/lib/esm/duet-menu-bar-link.entry.js +3 -3
  531. package/lib/esm/duet-menu-bar.entry.js +4 -4
  532. package/lib/esm/duet-modal.entry.js +11 -11
  533. package/lib/esm/duet-multiselect.entry.js +9 -9
  534. package/lib/esm/duet-nav.entry.js +2 -2
  535. package/lib/esm/duet-notification_2.entry.js +7 -7
  536. package/lib/esm/duet-number-input.entry.js +4 -4
  537. package/lib/esm/duet-overlay.entry.js +2 -2
  538. package/lib/esm/duet-page-heading.entry.js +3 -3
  539. package/lib/esm/duet-pagination_2.entry.js +16 -16
  540. package/lib/esm/duet-progress.entry.js +2 -2
  541. package/lib/esm/duet-promo-card.entry.js +4 -4
  542. package/lib/esm/duet-radio_2.entry.js +2 -2
  543. package/lib/esm/duet-range-slider.entry.js +2 -2
  544. package/lib/esm/duet-scrollable_3.entry.js +29 -28
  545. package/lib/esm/duet-section-layout.entry.js +4 -4
  546. package/lib/esm/duet-select.entry.js +2 -2
  547. package/lib/esm/duet-shaped-image.entry.js +3 -3
  548. package/lib/esm/duet-show-more.entry.js +5 -5
  549. package/lib/esm/duet-slideout-lang.entry.js +3 -3
  550. package/lib/esm/duet-slideout-link.entry.js +3 -3
  551. package/lib/esm/duet-slideout-panel-dropdown.entry.js +5 -5
  552. package/lib/esm/duet-slideout-panel.entry.js +10 -10
  553. package/lib/esm/duet-slideout.entry.js +28 -14
  554. package/lib/esm/duet-status-icon.entry.js +82 -0
  555. package/lib/esm/duet-step_2.entry.js +3 -3
  556. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +4 -4
  557. package/lib/esm/duet-submenu-bar-dropdown.entry.js +6 -6
  558. package/lib/esm/duet-submenu-bar-item.entry.js +6 -6
  559. package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
  560. package/lib/esm/duet-submenu-bar.entry.js +6 -6
  561. package/lib/esm/duet-textarea.entry.js +3 -3
  562. package/lib/esm/duet-toggle.entry.js +2 -2
  563. package/lib/esm/duet-toolbar-dropdown-link.entry.js +4 -4
  564. package/lib/esm/duet-toolbar-dropdown.entry.js +6 -6
  565. package/lib/esm/duet-toolbar-item.entry.js +7 -7
  566. package/lib/esm/duet-toolbar-link.entry.js +3 -3
  567. package/lib/esm/duet-toolbar.entry.js +3 -3
  568. package/lib/esm/duet-tooltip-button_2.entry.js +7 -7
  569. package/lib/esm/duet-tooltip.entry.js +3 -3
  570. package/lib/esm/duet-tray.entry.js +5 -5
  571. package/lib/esm/duet-upload-aria-status.entry.js +2 -2
  572. package/lib/esm/duet-upload-item.entry.js +5 -5
  573. package/lib/esm/duet-visually-hidden.entry.js +2 -2
  574. package/lib/esm/duet.js +4 -4
  575. package/lib/esm/{errorcodes.utils-1ac5fe3d.js → errorcodes.utils-66d99a23.js} +1 -1
  576. package/lib/esm/{focus-utils-4430bb1e.js → focus-utils-b48493c9.js} +1 -1
  577. package/lib/esm/{index-eedb042d.js → index-5a27eaf5.js} +1 -1
  578. package/lib/esm/{keyboard-utils-439bcc8b.js → keyboard-utils-daf80d44.js} +4 -1
  579. package/lib/esm/{language-utils-238c5ed0.js → language-utils-2c1dd412.js} +1 -1
  580. package/lib/esm/loader.js +4 -4
  581. package/lib/esm/{slot-utils-866b1fd5.js → slot-utils-2823028d.js} +1 -1
  582. package/lib/esm-es5/{a11y-utils-f2222b42.js → a11y-utils-efd1151b.js} +1 -1
  583. package/lib/esm-es5/{app-globals-ea4c814c.js → app-globals-8f12ab47.js} +1 -1
  584. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  585. package/lib/esm-es5/duet-alert.entry.js +1 -1
  586. package/lib/esm-es5/duet-badge.entry.js +1 -1
  587. package/lib/esm-es5/duet-banner.entry.js +1 -1
  588. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  589. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  590. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  591. package/lib/esm-es5/duet-callout.entry.js +1 -1
  592. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  593. package/lib/esm-es5/duet-card.entry.js +1 -1
  594. package/lib/esm-es5/duet-checkbox.entry.js +2 -2
  595. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  596. package/lib/esm-es5/duet-chip_3.entry.js +1 -1
  597. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  598. package/lib/esm-es5/duet-collapsible.entry.js +2 -2
  599. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  600. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  601. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  602. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  603. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  604. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  605. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  606. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  607. package/lib/esm-es5/duet-file-chooser.entry.js +2 -2
  608. package/lib/esm-es5/duet-footer.entry.js +1 -1
  609. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  610. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  611. package/lib/esm-es5/duet-hero.entry.js +1 -1
  612. package/lib/esm-es5/duet-icon.entry.js +1 -1
  613. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  614. package/lib/esm-es5/duet-layout.entry.js +1 -1
  615. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  616. package/lib/esm-es5/duet-menu-bar-button.entry.js +2 -2
  617. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  618. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  619. package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
  620. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  621. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  622. package/lib/esm-es5/duet-modal.entry.js +1 -1
  623. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  624. package/lib/esm-es5/duet-nav.entry.js +1 -1
  625. package/lib/esm-es5/duet-notification_2.entry.js +2 -2
  626. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  627. package/lib/esm-es5/duet-overlay.entry.js +1 -1
  628. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  629. package/lib/esm-es5/duet-pagination_2.entry.js +2 -2
  630. package/lib/esm-es5/duet-progress.entry.js +1 -1
  631. package/lib/esm-es5/duet-promo-card.entry.js +2 -2
  632. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  633. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  634. package/lib/esm-es5/duet-scrollable_3.entry.js +2 -2
  635. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  636. package/lib/esm-es5/duet-select.entry.js +1 -1
  637. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  638. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  639. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  640. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  641. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +2 -2
  642. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  643. package/lib/esm-es5/duet-slideout.entry.js +2 -2
  644. package/lib/esm-es5/duet-status-icon.entry.js +4 -0
  645. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  646. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  647. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  648. package/lib/esm-es5/duet-submenu-bar-item.entry.js +1 -1
  649. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  650. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  651. package/lib/esm-es5/duet-textarea.entry.js +2 -2
  652. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  653. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  654. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  655. package/lib/esm-es5/duet-toolbar-item.entry.js +2 -2
  656. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  657. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  658. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  659. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  660. package/lib/esm-es5/duet-tray.entry.js +1 -1
  661. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  662. package/lib/esm-es5/duet-upload-item.entry.js +2 -2
  663. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  664. package/lib/esm-es5/duet.js +1 -1
  665. package/lib/esm-es5/{errorcodes.utils-1ac5fe3d.js → errorcodes.utils-66d99a23.js} +1 -1
  666. package/lib/esm-es5/{focus-utils-4430bb1e.js → focus-utils-b48493c9.js} +1 -1
  667. package/lib/esm-es5/{index-eedb042d.js → index-5a27eaf5.js} +1 -1
  668. package/lib/esm-es5/{keyboard-utils-439bcc8b.js → keyboard-utils-daf80d44.js} +1 -1
  669. package/lib/esm-es5/{language-utils-238c5ed0.js → language-utils-2c1dd412.js} +1 -1
  670. package/lib/esm-es5/loader.js +1 -1
  671. package/lib/esm-es5/{slot-utils-866b1fd5.js → slot-utils-2823028d.js} +1 -1
  672. package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +5 -0
  673. package/lib/types/components/duet-scrollable/duet-scrollable.d.ts +4 -1
  674. package/lib/types/components/duet-slideout/duet-slideout.d.ts +2 -0
  675. package/lib/types/components/duet-status-icon/duet-status-icon.d.ts +26 -0
  676. package/lib/types/components/duet-tab-group/duet-tab-group.d.ts +5 -0
  677. package/lib/types/components.d.ts +61 -0
  678. package/lib/types/utils/keyboard-utils.d.ts +1 -0
  679. package/package.json +4 -4
  680. package/lib/dist-custom-elements/p-18c1f644.js +0 -80
  681. package/lib/duet/p-0613dcbe.entry.js +0 -4
  682. package/lib/duet/p-0f009884.system.js +0 -4
  683. package/lib/duet/p-15f176e9.entry.js +0 -4
  684. package/lib/duet/p-2c09278a.entry.js +0 -4
  685. package/lib/duet/p-2fec0954.system.entry.js +0 -4
  686. package/lib/duet/p-45adef32.system.js +0 -4
  687. package/lib/duet/p-48d70be1.system.entry.js +0 -4
  688. package/lib/duet/p-5d29704d.entry.js +0 -4
  689. package/lib/duet/p-6f16fc4f.system.entry.js +0 -4
  690. package/lib/duet/p-7002577a.entry.js +0 -4
  691. package/lib/duet/p-7e6375aa.system.entry.js +0 -4
  692. package/lib/duet/p-96486337.js +0 -4
  693. package/lib/duet/p-970edda4.entry.js +0 -4
  694. package/lib/duet/p-a1b7f2a0.js +0 -4
  695. package/lib/duet/p-a399d9d6.entry.js +0 -4
  696. package/lib/duet/p-a42586fb.entry.js +0 -4
  697. package/lib/duet/p-a47eff30.system.entry.js +0 -4
  698. package/lib/duet/p-af179120.system.entry.js +0 -4
  699. package/lib/duet/p-b22a0621.entry.js +0 -4
  700. package/lib/duet/p-ca57993e.entry.js +0 -4
  701. package/lib/duet/p-d7c1c367.entry.js +0 -4
  702. package/lib/duet/p-e6294bbd.entry.js +0 -4
  703. package/lib/duet/p-ee5fe94f.system.js +0 -4
  704. package/lib/duet/p-f3c9648a.system.entry.js +0 -4
  705. package/lib/duet/p-f4cfdc49.js +0 -4
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(t,e,a,r){function i(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function n(t){try{u(r["throw"](t))}catch(t){o(t)}}function u(t){t.done?a(t.value):i(t.value).then(s,n)}u((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:n(0),throw:n(1),return:n(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function n(t){return function(e){return u([t,e])}}function u(n){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,n[0]&&(a=0)),a)try{if(r=1,i&&(o=n[0]&2?i["return"]:n[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,n[1])).done)return o;if(i=0,o)n=[n[0]&2,o.value];switch(n[0]){case 0:case 1:o=n;break;case 4:a.label++;return{value:n[1],done:false};case 5:a.label++;i=n[1];n=[0];continue;case 7:n=a.ops.pop();a.trys.pop();continue;default:if(!(o=a.trys,o=o.length>0&&o[o.length-1])&&(n[0]===6||n[0]===2)){a=0;continue}if(n[0]===3&&(!o||n[1]>o[0]&&n[1]<o[3])){a.label=n[1];break}if(n[0]===6&&a.label<o[1]){a.label=o[1];o=n;break}if(o&&a.label<o[2]){a.label=o[2];a.ops.push(n);break}if(o[2])a.ops.pop();a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t];i=0}finally{r=o=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register(["./p-7f554f9f.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-e12066c8.system.js","./p-037e9404.system.js","./p-45adef32.system.js","./p-98636086.system.js"],(function(t){"use strict";var e,a,r,i,o,s,n,u,d,c,l,h;return{setters:[function(t){e=t.r;a=t.c;r=t.h;i=t.H;o=t.g},function(t){s=t.i},function(t){n=t.c},function(t){u=t.c},function(t){d=t.g;c=t.c;l=t.d},function(t){h=t.c},function(){}],execute:function(){var p='*.sc-duet-textarea,*.sc-duet-textarea::after,*.sc-duet-textarea::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-textarea-h{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:block;width:100%;max-width:100%;text-align:left}.sc-duet-textarea-h:last-child,.sc-duet-textarea-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-textarea-h{width:calc(50% - 16px - 3px)}.duet-expand.sc-duet-textarea-h{width:100% !important}}.duet-m-0.sc-duet-textarea-h{margin:0 !important}duet-tooltip.sc-duet-textarea,.sc-duet-textarea-s>duet-tooltip{position:absolute;top:12px;right:0}@media (min-width: 48em){duet-tooltip.sc-duet-textarea,.sc-duet-textarea-s>duet-tooltip{position:relative;top:4px;right:auto}}.duet-textarea-container.sc-duet-textarea{position:relative;width:100%;height:100%}.duet-textarea-container.sc-duet-textarea .duet-input-top-caption.sc-duet-textarea{display:none}.duet-textarea-container.duet-input-top-caption-shown.sc-duet-textarea .duet-input-top-caption.sc-duet-textarea{display:flex !important}.duet-textarea-wrapper.sc-duet-textarea{position:relative}.duet-textarea-placeholder.sc-duet-textarea{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-textarea.sc-duet-textarea{padding:15px !important;position:relative;z-index:100;display:block;width:100%;min-width:8rem;min-height:160px;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;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);resize:vertical;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:4px;transition:150ms ease}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea{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);border-color:rgb(143, 147, 158)}.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea{border-color:rgb(214, 28, 82) !important}.duet-textarea.sc-duet-textarea::-webkit-input-placeholder{color:rgb(98, 121, 138);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea::-webkit-input-placeholder{color:rgb(143, 147, 158)}.duet-textarea.sc-duet-textarea:focus::-webkit-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus::-webkit-input-placeholder{color:rgb(199, 202, 207)}.duet-textarea.sc-duet-textarea::-moz-placeholder{color:rgb(98, 121, 138);opacity:1 !important}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea::-moz-placeholder{color:rgb(143, 147, 158)}.duet-textarea.sc-duet-textarea:focus::-moz-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus::-moz-placeholder{color:rgb(199, 202, 207)}.duet-textarea.sc-duet-textarea:-ms-input-placeholder{color:rgb(98, 121, 138)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:-ms-input-placeholder{color:rgb(143, 147, 158)}.duet-textarea.sc-duet-textarea:focus:-ms-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus:-ms-input-placeholder{color:rgb(199, 202, 207)}.duet-textarea[disabled].sc-duet-textarea{color:rgb(98, 121, 138) !important;cursor:not-allowed !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important}.duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea{color:rgb(143, 147, 158) !important;background:rgb(245, 247, 250) !important;border-color:rgb(245, 247, 250) !important}.duet-textarea[disabled].sc-duet-textarea::-webkit-input-placeholder{color:rgb(8, 42, 77);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea::-webkit-input-placeholder{color:rgb(23, 28, 58)}.duet-textarea[disabled].sc-duet-textarea::-moz-placeholder{color:rgb(8, 42, 77);opacity:1 !important}.duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea::-moz-placeholder{color:rgb(23, 28, 58)}.duet-textarea[disabled].sc-duet-textarea:-ms-input-placeholder{color:rgb(8, 42, 77)}.duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea:-ms-input-placeholder{color:rgb(23, 28, 58)}.duet-textarea.sc-duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px #909599}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px #747475}.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px #e55039}.duet-textarea.sc-duet-textarea:focus{border-color:rgb(0, 119, 179);outline:0;box-shadow:0 0 0 1px #0077b3 !important;transition:none}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus{box-shadow:0 0 0 1px #e55039}.duet-textarea.sc-duet-textarea:not(:focus):not(:hover):invalid{box-shadow:none}.duet-textarea-help.sc-duet-textarea{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.875rem;line-height:1.25}.duet-textarea-help.sc-duet-textarea span.sc-duet-textarea{display:block;margin-top:8px}.duet-theme-turva.sc-duet-textarea .duet-textarea-help.sc-duet-textarea{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(143, 147, 158)}.has-error.sc-duet-textarea .duet-textarea-help.sc-duet-textarea{color:rgb(214, 28, 82)}.duet-theme-turva.has-error.sc-duet-textarea .duet-textarea-help.sc-duet-textarea{color:rgb(214, 28, 82)}.duet-label-hidden.sc-duet-textarea duet-label.sc-duet-textarea{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.duet-character-count.sc-duet-textarea{display:block;margin:8px 0 0 auto}';var x=p;var m=function(t){var e=t.value,a=t.maxlength,i=t.label,o=t.theme;if(a==null){return}var s=e.length;var n=Math.max(a-s,0);var u=n/a<=.1;return r("div",{class:"duet-character-count"},r("duet-caption",{margin:"none",theme:o,size:"small"},r("duet-visually-hidden",{"aria-live":"polite","aria-atomic":"true",class:"duet-textarea-counter-remaining"},u&&"".concat(n," ").concat(i)),r("span",{"aria-hidden":"true"},s,"/",a)))};var f=t("duet_textarea",function(){function t(t){var r=this;e(this,t);this.duetInput=a(this,"duetInput",7);this.duetChange=a(this,"duetChange",7);this.duetBlur=a(this,"duetBlur",7);this.duetFocus=a(this,"duetFocus",7);this.textareaId=n("DuetTextarea");this.topCaptionId=n("DuetCaptionTop");this.topCaptionPlaceholderId=n("DuetCaptionPlaceholderTop");this.labelId=n("DuetLabel");this.errorId=n("DuetError");this.characterCountId=n("DuetCharacterCount");this.disallowPatternRegex=null;this.counterLabelDefaults={fi:"merkkiä jäljellä",en:"characters remaining",sv:"tecken kvar"};this.handleInput=function(t){if(r.disallowPatternRegex){u(r.nativeInput,r.disallowPatternRegex)}r.value=r.nativeInput.value;r.isCaptionVisible=!!r.caption;r.duetInput.emit({originalEvent:t,value:r.value,component:"duet-textarea"})};this.handleChange=function(t){r.value=r.nativeInput.value;r.duetChange.emit({originalEvent:t,value:r.value,component:"duet-textarea"})};this.handleBlur=function(t){r.duetBlur.emit({originalEvent:t,value:r.value,component:"duet-textarea"})};this.handleFocus=function(t){if(r.counter){r.hiddenCounterLabel.textContent="".concat(Math.max(r.maxlength-r.value.length,0),"/").concat(r.maxlength," ").concat(r.counterLabel)}r.duetFocus.emit({originalEvent:t,value:r.value,component:"duet-textarea"})};this.getDescribedBy=function(){var t=[];if(r.isCaptionVisible&&r.topCaptionId){t.push(r.topCaptionId)}if(r.accessibleDescribedBy){t.push(r.accessibleDescribedBy)}if(r.error){t.push(r.errorId)}if(r.counter){t.push(r.characterCountId)}return t.length>0?t.join(" "):null};this.margin="auto";this.accessibleActiveDescendant=undefined;this.accessibleAutocomplete=undefined;this.accessibleControls=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLiveError="polite";this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.theme="";this.expand=false;this.disabled=false;this.identifier=undefined;this.required=false;this.label="label";this.labelColor=undefined;this.labelWeight=undefined;this.labelHidden=false;this.name=undefined;this.placeholder=undefined;this.caption=undefined;this.echoPlaceholder=false;this.maxlength=undefined;this.minlength=undefined;this.error="";this.role=undefined;this.tooltip="";this.tooltipDirection="auto";this.value="";this.disallowPattern=null;this.counter=false;this.counterLabel=d(this.counterLabelDefaults)}t.prototype.disallowedPatternChange=function(){this.disallowPatternRegex=this.disallowPattern?new RegExp(this.disallowPattern,"gu"):null};t.prototype.componentWillLoad=function(){s(this);this.disallowedPatternChange();this.isCaptionVisible=!!this.caption;h(this.element,"tooltip","duet-tooltip",1,true);if(this.counter&&this.maxlength==null){console.warn("[DUET WARNING]: counter will only take effect if maxlength is set")}};t.prototype.connectedCallback=function(){c(this,{prop:"counterLabel",defaults:"counterLabelDefaults"})};t.prototype.disconnectedCallback=function(){l(this)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.nativeInput.focus(t);return[2]}))}))};t.prototype.render=function(){var t=this;var e=this.identifier||this.textareaId;return r(i,{class:{"duet-m-0":this.margin==="none","duet-has-counter":this.counter&&!this.error,"duet-expand":this.expand}},r("div",{class:{"duet-textarea-container":true,"duet-theme-turva":this.theme==="turva","duet-label-hidden":this.labelHidden,"duet-input-top-caption-shown":this.isCaptionVisible,"has-error":!!this.error}},r("duet-label",{theme:this.theme==="turva"?"turva":"default",class:{"duet-has-tooltip":!!this.tooltip},margin:this.isCaptionVisible?"small":"auto",color:this.labelColor,weight:this.labelWeight,id:this.labelId,for:e},this.label),this.tooltip&&r("duet-tooltip",{direction:this.tooltipDirection,accessibleInputLabel:this.label,theme:this.theme==="turva"?"turva":"default"},this.tooltip),r("slot",{name:"tooltip"}),this.caption&&r("duet-caption",{id:this.topCaptionId,size:"medium",theme:this.theme==="turva"?"turva":"default"},this.caption),r("div",{class:"duet-textarea-wrapper"},this.placeholder&&this.echoPlaceholder&&this.value&&r("duet-caption",{id:this.topCaptionPlaceholderId,class:"duet-textarea-placeholder",size:"small"},this.placeholder),r("textarea",{onInput:this.handleInput,onChange:this.handleChange,onBlur:this.handleBlur,onFocus:this.handleFocus,ref:function(e){return t.nativeInput=e},class:{"duet-textarea":true,disabled:this.disabled},value:this.value,disabled:this.disabled,"aria-labelledby":this.accessibleLabelledBy?"".concat(this.labelId," ").concat(this.accessibleLabelledBy):this.labelId,"aria-controls":this.accessibleControls,"aria-autocomplete":this.accessibleAutocomplete,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.getDescribedBy(),"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,placeholder:this.placeholder,spellcheck:"false",required:this.required,minlength:this.minlength,maxlength:this.maxlength,role:this.role,name:this.name,id:e})),r("duet-grid",{alignment:"stretch"},r("duet-grid-item",{margin:"none",fill:true},r("div",{class:"duet-textarea-help",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&r("span",null,this.error))),r("duet-grid-item",{margin:"none",class:"duet-character-count-caption"},this.counter&&r(m,{theme:this.theme,value:this.value,maxlength:this.maxlength,label:this.counterLabel}))),this.counter&&r("duet-visually-hidden",{class:"duet-visually-hidden",id:this.characterCountId,ref:function(e){t.hiddenCounterLabel=e}})))};Object.defineProperty(t.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disallowPattern:["disallowedPatternChange"]}},enumerable:false,configurable:true});return t}());f.style=x}}}));
4
+ */System.register(["./p-2cdacb01.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-e12066c8.system.js","./p-447e1392.system.js","./p-5c58f1d6.system.js","./p-98636086.system.js"],(function(t){"use strict";var e,a,r,i,o,s,n,u,d,c,l,h;return{setters:[function(t){e=t.r;a=t.c;r=t.h;i=t.H;o=t.g},function(t){s=t.i},function(t){n=t.c},function(t){u=t.c},function(t){d=t.g;c=t.c;l=t.d},function(t){h=t.c},function(){}],execute:function(){var p='*.sc-duet-textarea,*.sc-duet-textarea::after,*.sc-duet-textarea::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-textarea-h{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:block;width:100%;max-width:100%;text-align:left}.sc-duet-textarea-h:last-child,.sc-duet-textarea-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-textarea-h{width:calc(50% - 16px - 3px)}.duet-expand.sc-duet-textarea-h{width:100% !important}}.duet-m-0.sc-duet-textarea-h{margin:0 !important}duet-tooltip.sc-duet-textarea,.sc-duet-textarea-s>duet-tooltip{position:absolute;top:12px;right:0}@media (min-width: 48em){duet-tooltip.sc-duet-textarea,.sc-duet-textarea-s>duet-tooltip{position:relative;top:4px;right:auto}}.duet-textarea-container.sc-duet-textarea{position:relative;width:100%;height:100%}.duet-textarea-container.sc-duet-textarea .duet-input-top-caption.sc-duet-textarea{display:none}.duet-textarea-container.duet-input-top-caption-shown.sc-duet-textarea .duet-input-top-caption.sc-duet-textarea{display:flex !important}.duet-textarea-wrapper.sc-duet-textarea{position:relative}.duet-textarea-placeholder.sc-duet-textarea{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-textarea.sc-duet-textarea{padding:15px !important;position:relative;z-index:100;display:block;width:100%;min-width:8rem;min-height:160px;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;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);resize:vertical;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:4px;transition:150ms ease}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea{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);border-color:rgb(143, 147, 158)}.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea{border-color:rgb(214, 28, 82) !important}.duet-textarea.sc-duet-textarea::-webkit-input-placeholder{color:rgb(98, 121, 138);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea::-webkit-input-placeholder{color:rgb(143, 147, 158)}.duet-textarea.sc-duet-textarea:focus::-webkit-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus::-webkit-input-placeholder{color:rgb(199, 202, 207)}.duet-textarea.sc-duet-textarea::-moz-placeholder{color:rgb(98, 121, 138);opacity:1 !important}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea::-moz-placeholder{color:rgb(143, 147, 158)}.duet-textarea.sc-duet-textarea:focus::-moz-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus::-moz-placeholder{color:rgb(199, 202, 207)}.duet-textarea.sc-duet-textarea:-ms-input-placeholder{color:rgb(98, 121, 138)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:-ms-input-placeholder{color:rgb(143, 147, 158)}.duet-textarea.sc-duet-textarea:focus:-ms-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus:-ms-input-placeholder{color:rgb(199, 202, 207)}.duet-textarea[disabled].sc-duet-textarea{color:rgb(98, 121, 138) !important;cursor:not-allowed !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important}.duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea{color:rgb(143, 147, 158) !important;background:rgb(245, 247, 250) !important;border-color:rgb(245, 247, 250) !important}.duet-textarea[disabled].sc-duet-textarea::-webkit-input-placeholder{color:rgb(8, 42, 77);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea::-webkit-input-placeholder{color:rgb(23, 28, 58)}.duet-textarea[disabled].sc-duet-textarea::-moz-placeholder{color:rgb(8, 42, 77);opacity:1 !important}.duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea::-moz-placeholder{color:rgb(23, 28, 58)}.duet-textarea[disabled].sc-duet-textarea:-ms-input-placeholder{color:rgb(8, 42, 77)}.duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea:-ms-input-placeholder{color:rgb(23, 28, 58)}.duet-textarea.sc-duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px #909599}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px #747475}.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px #e55039}.duet-textarea.sc-duet-textarea:focus{border-color:rgb(0, 119, 179);outline:0;box-shadow:0 0 0 1px #0077b3 !important;transition:none}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus{box-shadow:0 0 0 1px #e55039}.duet-textarea.sc-duet-textarea:not(:focus):not(:hover):invalid{box-shadow:none}.duet-textarea-help.sc-duet-textarea{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.875rem;line-height:1.25}.duet-textarea-help.sc-duet-textarea span.sc-duet-textarea{display:block;margin-top:8px}.duet-theme-turva.sc-duet-textarea .duet-textarea-help.sc-duet-textarea{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(143, 147, 158)}.has-error.sc-duet-textarea .duet-textarea-help.sc-duet-textarea{color:rgb(214, 28, 82)}.duet-theme-turva.has-error.sc-duet-textarea .duet-textarea-help.sc-duet-textarea{color:rgb(214, 28, 82)}.duet-label-hidden.sc-duet-textarea duet-label.sc-duet-textarea{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.duet-character-count.sc-duet-textarea{display:block;margin:8px 0 0 auto}';var x=p;var m=function(t){var e=t.value,a=t.maxlength,i=t.label,o=t.theme;if(a==null){return}var s=e.length;var n=Math.max(a-s,0);var u=n/a<=.1;return r("div",{class:"duet-character-count"},r("duet-caption",{margin:"none",theme:o,size:"small"},r("duet-visually-hidden",{"aria-live":"polite","aria-atomic":"true",class:"duet-textarea-counter-remaining"},u&&"".concat(n," ").concat(i)),r("span",{"aria-hidden":"true"},s,"/",a)))};var f=t("duet_textarea",function(){function t(t){var r=this;e(this,t);this.duetInput=a(this,"duetInput",7);this.duetChange=a(this,"duetChange",7);this.duetBlur=a(this,"duetBlur",7);this.duetFocus=a(this,"duetFocus",7);this.textareaId=n("DuetTextarea");this.topCaptionId=n("DuetCaptionTop");this.topCaptionPlaceholderId=n("DuetCaptionPlaceholderTop");this.labelId=n("DuetLabel");this.errorId=n("DuetError");this.characterCountId=n("DuetCharacterCount");this.disallowPatternRegex=null;this.counterLabelDefaults={fi:"merkkiä jäljellä",en:"characters remaining",sv:"tecken kvar"};this.handleInput=function(t){if(r.disallowPatternRegex){u(r.nativeInput,r.disallowPatternRegex)}r.value=r.nativeInput.value;r.isCaptionVisible=!!r.caption;r.duetInput.emit({originalEvent:t,value:r.value,component:"duet-textarea"})};this.handleChange=function(t){r.value=r.nativeInput.value;r.duetChange.emit({originalEvent:t,value:r.value,component:"duet-textarea"})};this.handleBlur=function(t){r.duetBlur.emit({originalEvent:t,value:r.value,component:"duet-textarea"})};this.handleFocus=function(t){if(r.counter){r.hiddenCounterLabel.textContent="".concat(Math.max(r.maxlength-r.value.length,0),"/").concat(r.maxlength," ").concat(r.counterLabel)}r.duetFocus.emit({originalEvent:t,value:r.value,component:"duet-textarea"})};this.getDescribedBy=function(){var t=[];if(r.isCaptionVisible&&r.topCaptionId){t.push(r.topCaptionId)}if(r.accessibleDescribedBy){t.push(r.accessibleDescribedBy)}if(r.error){t.push(r.errorId)}if(r.counter){t.push(r.characterCountId)}return t.length>0?t.join(" "):null};this.margin="auto";this.accessibleActiveDescendant=undefined;this.accessibleAutocomplete=undefined;this.accessibleControls=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLiveError="polite";this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.theme="";this.expand=false;this.disabled=false;this.identifier=undefined;this.required=false;this.label="label";this.labelColor=undefined;this.labelWeight=undefined;this.labelHidden=false;this.name=undefined;this.placeholder=undefined;this.caption=undefined;this.echoPlaceholder=false;this.maxlength=undefined;this.minlength=undefined;this.error="";this.role=undefined;this.tooltip="";this.tooltipDirection="auto";this.value="";this.disallowPattern=null;this.counter=false;this.counterLabel=d(this.counterLabelDefaults)}t.prototype.disallowedPatternChange=function(){this.disallowPatternRegex=this.disallowPattern?new RegExp(this.disallowPattern,"gu"):null};t.prototype.componentWillLoad=function(){s(this);this.disallowedPatternChange();this.isCaptionVisible=!!this.caption;h(this.element,"tooltip","duet-tooltip",1,true);if(this.counter&&this.maxlength==null){console.warn("[DUET WARNING]: counter will only take effect if maxlength is set")}};t.prototype.connectedCallback=function(){c(this,{prop:"counterLabel",defaults:"counterLabelDefaults"})};t.prototype.disconnectedCallback=function(){l(this)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.nativeInput.focus(t);return[2]}))}))};t.prototype.render=function(){var t=this;var e=this.identifier||this.textareaId;return r(i,{class:{"duet-m-0":this.margin==="none","duet-has-counter":this.counter&&!this.error,"duet-expand":this.expand}},r("div",{class:{"duet-textarea-container":true,"duet-theme-turva":this.theme==="turva","duet-label-hidden":this.labelHidden,"duet-input-top-caption-shown":this.isCaptionVisible,"has-error":!!this.error}},r("duet-label",{theme:this.theme==="turva"?"turva":"default",class:{"duet-has-tooltip":!!this.tooltip},margin:this.isCaptionVisible?"small":"auto",color:this.labelColor,weight:this.labelWeight,id:this.labelId,for:e},this.label),this.tooltip&&r("duet-tooltip",{direction:this.tooltipDirection,accessibleInputLabel:this.label,theme:this.theme==="turva"?"turva":"default"},this.tooltip),r("slot",{name:"tooltip"}),this.caption&&r("duet-caption",{id:this.topCaptionId,size:"medium",theme:this.theme==="turva"?"turva":"default"},this.caption),r("div",{class:"duet-textarea-wrapper"},this.placeholder&&this.echoPlaceholder&&this.value&&r("duet-caption",{id:this.topCaptionPlaceholderId,class:"duet-textarea-placeholder",size:"small"},this.placeholder),r("textarea",{onInput:this.handleInput,onChange:this.handleChange,onBlur:this.handleBlur,onFocus:this.handleFocus,ref:function(e){return t.nativeInput=e},class:{"duet-textarea":true,disabled:this.disabled},value:this.value,disabled:this.disabled,"aria-labelledby":this.accessibleLabelledBy?"".concat(this.labelId," ").concat(this.accessibleLabelledBy):this.labelId,"aria-controls":this.accessibleControls,"aria-autocomplete":this.accessibleAutocomplete,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.getDescribedBy(),"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,placeholder:this.placeholder,spellcheck:"false",required:this.required,minlength:this.minlength,maxlength:this.maxlength,role:this.role,name:this.name,id:e})),r("duet-grid",{alignment:"stretch"},r("duet-grid-item",{margin:"none",fill:true},r("div",{class:"duet-textarea-help",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&r("span",null,this.error))),r("duet-grid-item",{margin:"none",class:"duet-character-count-caption"},this.counter&&r(m,{theme:this.theme,value:this.value,maxlength:this.maxlength,label:this.counterLabel}))),this.counter&&r("duet-visually-hidden",{class:"duet-visually-hidden",id:this.characterCountId,ref:function(e){t.hiddenCounterLabel=e}})))};Object.defineProperty(t.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disallowPattern:["disallowedPatternChange"]}},enumerable:false,configurable:true});return t}());f.style=x}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{h as t,r as i,c as s,H as e,g as h}from"./p-fbc91093.js";import{i as o}from"./p-aaa7a7bd.js";import{c as n}from"./p-5e59e970.js";import{d as a}from"./p-9e371678.js";import{j as r,f as l,o as d,b as c,c as u}from"./p-a1b7f2a0.js";import{g as m,a as p,c as v,d as b}from"./p-6aa58c2c.js";import{a as f}from"./p-a1ab523a.js";import{r as g,p as x}from"./p-9c3c64b9.js";const y=({item:i,activeDescendant:s,selected:e,label:h,clickHandler:o=(t=>{t.preventDefault()}),keyHandler:n=(t=>{t.preventDefault()}),search:a,isAndroidDevice:r,id:l})=>{const d=a.split(" ").filter((t=>!!t.trim())).map((t=>g(t))),c=""!==a?new RegExp(`(${d.join("|")})`,"i"):void 0;return t("duet-popup-menu-item",{id:s?l:"",active:e,"data-index":i.id,"aria-selected":s?"true":void 0,"aria-current":e?"true":void 0,role:"option","aria-label":h,tabindex:r?"-1":null,onClick:t=>o(t),onKeyUp:t=>n(t),accessibleRole:"option",activeDescendant:s},c?t("span",{class:"option-container","aria-hidden":"true"},t("span",{innerHTML:i.name.replace(c,'<span style="text-decoration: underline">$&</span>')})):i.name,i.tags&&t("span",{class:"option-tags"},i.tags.join(", ")))},S=class{constructor(t){var e,h;i(this,t),this.duetChange=s(this,"duetChange",3),this.listBoxId=n("duet-combobox-list-element"),this.inputId=n("duet-combobox-input-id"),this.activeDescendantId=n("duet-combobox-active-descendant"),this.isAndroidDevice=(null===(h=null===(e=null===navigator||void 0===navigator?void 0:navigator.userAgent)||void 0===e?void 0:e.toLowerCase())||void 0===h?void 0:h.indexOf("android"))>-1||null,this.resizeObserver=new ResizeObserver(a((t=>{var i,s,e;if(1===(null==t?void 0:t.length)){const h=null===(s=null===(i=t[0])||void 0===i?void 0:i.target)||void 0===s?void 0:s.getBoundingClientRect().width,o=parseInt(null===(e=getComputedStyle(this.listContainer.shadowRoot.querySelector(".duet-popup-menu-list")))||void 0===e?void 0:e.padding);this.listContainer.style.setProperty("--popup-width",h-2*o+"px")}}),100)),this.onInputChange=async t=>{this.inputValue=t.detail.value},this.onInputClick=()=>{var t,i;this.listOpen=this.openListOnClick?!this.listOpen:(null===(t=this.inputValue)||void 0===t?void 0:t.length)>=this.minCharacters,(null===(i=this.getFilteredItems())||void 0===i?void 0:i.length)||(this.listOpen=!1)},this.onInputTyping=async t=>{var i;const s=t.detail.value;!this.force&&!this.multiple&&this.selectedItems.size>0&&s!==this.getSelectedItemLabel()&&this.selectedItems.clear(),this.force||this.multiple||""!==s||(this.value=void 0),this.listOpen=String(s).length>=this.minCharacters&&(null===(i=this.getFilteredItems())||void 0===i?void 0:i.length)>0},this.onKeyDown=t=>{var i,s,e;const h=this.returnFilteredOrNonFiltered(),o=h.filter((t=>!this.selectedItems.has(t.id)));if(this.input.accessibleActiveDescendant=void 0,r(t))return t.preventDefault(),this.listOpen&&void 0!==this.activeItem&&h[this.activeItem]&&!this.selectedItems.has(h[this.activeItem].id)?this.multiple?this.addSelectedItem(h[this.activeItem].id,!0):this.updateSelectedItem(h[this.activeItem].id,!0):!this.multiple&&this.listOpen&&1===o.length&&o[0].name.toLowerCase()===this.input.value.toLowerCase()&&this.updateSelectedItem(o[0].id,!0),this.activeItem=void 0,void(this.listOpen=!1);if(l(t)||d(t))return this.listOpen&&t.preventDefault(),this.updateInputText(!0),this.activeItem=void 0,void(this.listOpen=!1);let n=this.activeItem;if(c(t))t.preventDefault(),n=this.activeItem-1;else if(u(t)){if((null!==(e=null===(s=null===(i=this.input)||void 0===i?void 0:i.value)||void 0===s?void 0:s.length)&&void 0!==e?e:0)<this.minCharacters)return;t.preventDefault(),n=this.listOpen?this.activeItem+1:this.activeItem,this.listOpen=!0}(u(t)||c(t))&&((n<0||!n)&&(n=0),n>=h.length&&(n=h.length-1),this.input.accessibleActiveDescendant=this.activeDescendantId,this.activeItem=n,this.scrollToActive())},this.processedItems=null,this.inputValue="",this.listOpen=!1,this.selectedItems=new Set,this.activeItem=void 0,this.accessibleLabelDefaults={en:{heading:"Select:",item:"{name}",itemFiltered:"{name}, {hiddenItems} filtered"},fi:{heading:"Valitse:",item:"{name}",itemFiltered:"{name}, {hiddenItems} suodatettu"},sv:{heading:"Välj:",item:"{name}",itemFiltered:"{name}, {hiddenItems} filtrerade"}},this.accessibleLabels=m(this.accessibleLabelDefaults,p()),this.label="",this.caption="",this.theme="",this.force=!1,this.multiple=!1,this.items=void 0,this.formatter=t=>t&&t.name?t.name:"",this.value=void 0,this.minCharacters=0,this.openListOnClick=!1,this.filterType="startsWith"}popupMenuOpenHandler(){this.listOpen?this.listContainer.show():this.listContainer.hide()}activeItemHandler(t){this.input.accessibleActiveDescendant=this.listOpen&&(t||0===t)?this.activeDescendantId:""}inputValueHandler(){setTimeout((async()=>{const t=await this.getSelectedItemLabel();""==this.input.value&&t&&(this.input.value="",this.value=void 0)}),200)}handleDocumentClick(t){t.composedPath().every((t=>t!==this.element))&&(this.updateInputText(!0),this.listOpen=!1)}async formatItem(t){return this.formatter(t)}processItems(){const t=[];if(this.processedItems=x(this.items),!Array.isArray(this.processedItems))return void console.error("DuetCombobox: Items should be an array");this.processedItems.length!==new Set([...this.processedItems]).size&&console.warn("DuetCombobox: Duplicate item values found in the list"),this.processedItems=this.processedItems.map(((i,s)=>("string"==typeof i&&(i={name:i,value:i}),i.id=void 0!==i.id?String(i.id):`${JSON.stringify(i.value)}-${i.name}`,t.includes(i.id)&&(console.warn("DuetCombobox: Duplicate item id found in the list, postfixed with index"),i.id=`${i.id}-${s}`),t.push(i.id),i)));const i=Array.from(this.selectedItems).filter((t=>!this.processedItems.find((i=>i.id===t))));i.length&&(this.multiple?i.forEach((t=>this.removeSelectedItem(t))):this.updateSelectedItem(i[0],!0))}processValue(){if(""!==this.value&&!this.value)return void this.selectedItems.clear();const t=Array.isArray(this.value)?this.value:[this.value],i=this.processedItems.filter((i=>t.includes(i.value))).map((t=>t.id));if(i.length!==this.selectedItems.size||!i.every((t=>this.selectedItems.has(t))))if(this.multiple)this.selectedItems.clear(),this.input.clearChips(),i.forEach((t=>this.addSelectedItem(t)));else{const t=this.processedItems.find((t=>t.value===this.value));this.updateSelectedItem(t.id)}}processListOpenChange(){this.openListOnClick&&(this.input.icon=this.listOpen?"action-arrow-up":"action-arrow-down"),this.input.accessibleExpanded=this.listOpen?"true":"false"}componentWillLoad(){o(this)}connectedCallback(){this.items&&this.processItems();const t=f(this.element);t.length?this.input=t[0]:(this.input=document.createElement("duet-input"),this.input.label=this.label,this.input.caption=this.caption,this.input.expand=!0,this.element.prepend(this.input)),this.input.chips=this.multiple,this.input.addEventListener("duetChange",this.onInputChange),this.input.addEventListener("duetInput",this.onInputTyping),this.input.addEventListener("click",this.onInputClick),this.input.role="combobox",this.input.accessibleExpanded=this.listOpen?"true":"false",this.input.accessibleAutocomplete="list",this.input.accessibleControls=this.listBoxId,this.input.id=this.inputId,this.element.addEventListener("keydown",this.onKeyDown),v(this,{prop:"accessibleLabels",defaults:"accessibleLabelDefaults"}),this.processListOpenChange()}disconnectedCallback(){this.input.removeEventListener("duetChange",this.onInputChange),this.input.removeEventListener("click",this.onInputClick),this.element.removeEventListener("keydown",this.onKeyDown),this.resizeObserver.disconnect(),b(this)}componentDidLoad(){this.resizeObserver.observe(this.input),this.processValue()}shouldListBeFiltered(){var t;if(!this.multiple&&this.selectedItems.size&&this.input.value===this.inputValue&&(null===(t=this.inputValue)||void 0===t?void 0:t.length)<this.minCharacters){const t=this.processedItems.find((t=>this.selectedItems.has(t.id)));return!(this.formatter(t).toLowerCase()===this.input.value.toLowerCase())}return!0}returnFilteredOrNonFiltered(){return this.processedItems?this.shouldListBeFiltered()?this.getFilteredItems():this.sortFilteredItems(this.processedItems):[]}emitChangeEvent(t){const i=this.processedItems.find((i=>i.id===t));this.duetChange.emit({item:i,value:this.value,component:"duet-combobox"})}updateMultipleValue(){this.value=this.processedItems.filter((t=>this.selectedItems.has(t.id))).map((t=>t.value)),this.input.value="",this.updateChips(),this.input.setFocus()}addSelectedItem(t,i){this.selectedItems.has(t)||(this.selectedItems.add(t),this.updateMultipleValue(),i&&this.emitChangeEvent(t))}removeSelectedItem(t,i){this.selectedItems.has(t)&&(this.selectedItems.delete(t),this.updateMultipleValue(),i&&this.emitChangeEvent(t))}async updateSelectedItem(t,i){this.selectedItems.clear(),this.selectedItems.add(t),this.value=this.processedItems.find((i=>i.id===t)).value,i&&this.emitChangeEvent(this.value&&t),await this.updateInputText()}async updateChips(){const t=Array.from(this.selectedItems),i=await this.input.getChips();t.forEach((async t=>{const i=this.processedItems.find((i=>i.id===t)),s=await this.formatItem(i);if(!await this.input.hasChip({value:`${t}`,text:s})){const i=document.createElement("duet-chip");i.variation="input",i.role="option",i.value=`${t}`,i.textContent=s,i.addEventListener("duetRemove",(t=>{this.removeSelectedItem(t.detail.value,!0)})),this.input.addChip(i)}})),i.forEach((i=>{t.includes(i.value)||i.remove()}))}async getSelectedItemLabel(){const t=this.processedItems.find((t=>this.selectedItems.has(t.id)));return t?await this.formatItem(t):""}async updateInputText(t=!1){if(t&&this.multiple)this.input.value="";else{if(t&&this.force){const t=this.returnFilteredOrNonFiltered();!this.multiple&&this.listOpen&&1===t.length&&t[0].name.toLowerCase()===this.input.value.toLowerCase()&&this.updateSelectedItem(t[0].id,!0),this.input.value=0===this.selectedItems.size?"":await this.getSelectedItemLabel()}!t&&this.selectedItems.size>0&&(this.input.value="",this.input.value=await this.getSelectedItemLabel(),this.input.scrollLeft=this.input.scrollWidth,await this.input.setFocus())}}onListClick(t,i){return t.preventDefault(),t.stopPropagation(),this.multiple?this.addSelectedItem(i.id,!0):this.updateSelectedItem(i.id,!0),this.activeItem=void 0,this.listOpen=!1,this.listOpen}scrollToActive(){const t=document.getElementById(`${this.activeDescendantId}`);t&&t.scrollIntoView({behavior:"smooth",block:"center"})}formatLabel(t,i,s,e){return t&&void 0!==e?(s===e?this.accessibleLabels.item:this.accessibleLabels.itemFiltered).replace("{name}",String(t.name)).replace("{current}",String(i+1)).replace("{total}",String(s)).replace("{hiddenItems}",String(e-s)):""}getFilteredItems(){const t=this.processedItems.filter((t=>{var i,s,e,h,o;return(null===(i=String(t.value))||void 0===i?void 0:i.toLowerCase()[this.filterType](null===(s=this.inputValue)||void 0===s?void 0:s.toLowerCase()))||(null===(e=String(t.name))||void 0===e?void 0:e.toLowerCase()[this.filterType](null===(h=this.inputValue)||void 0===h?void 0:h.toLowerCase()))||this.formatter(t).toLowerCase()[this.filterType](null===(o=this.inputValue)||void 0===o?void 0:o.toLowerCase())||this.selectedItems.has(t.id)})).filter((t=>{let i=!0;return this.multiple&&this.selectedItems.has(t.id)&&(i=!1),i}));return this.sortFilteredItems(t)}sortFilteredItems(t){return t.length>0&&t.filter((t=>this.selectedItems.has(t.id))).forEach((i=>{const s=t.indexOf(i);t.splice(s,1),t.unshift(i)})),t}render(){const i=this.returnFilteredOrNonFiltered();return t(e,{class:{"duet-combobox":!0,[`duet-theme-${this.theme}`]:!0}},t("slot",null),t("div",null,t("duet-popup-menu",{id:this.listBoxId,controller:this.input,ref:t=>this.listContainer=t,accessibleRole:"listbox",allowVerticalFlip:!1},t("div",{class:"combobox-menu-container"},this.listOpen&&i.map(((s,e)=>t(y,{id:this.activeDescendantId,item:s,activeDescendant:e===this.activeItem,selected:this.selectedItems.has(s.id),search:this.inputValue,clickHandler:t=>this.onListClick(t,s),label:this.formatLabel(s,e,i.length,this.processedItems.length),isAndroidDevice:this.isAndroidDevice}))),t("duet-spacer",{size:"x-small"})))))}get element(){return h(this)}static get watchers(){return{listOpen:["popupMenuOpenHandler","processListOpenChange"],activeItem:["activeItemHandler"],inputValue:["inputValueHandler"],items:["processItems"],value:["processValue"]}}};S.style='.sc-duet-combobox-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:inline-block;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";color:rgb(8, 42, 77)}.sc-duet-combobox-h a.sc-duet-combobox{color:rgb(8, 42, 77);transition:none}.duet-theme-turva.sc-duet-combobox-h{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.sc-duet-combobox-h a.sc-duet-combobox{color:rgb(23, 28, 58)}.combobox-menu-container.sc-duet-combobox{width:var(--popup-width);max-height:200px}';export{S as duet_combobox}
4
+ import{h as t,r as i,c as s,H as e,g as h}from"./p-4dcb6a39.js";import{i as o}from"./p-aaa7a7bd.js";import{c as n}from"./p-5e59e970.js";import{d as a}from"./p-9e371678.js";import{j as r,f as l,o as d,b as c,c as u}from"./p-a45e3f8b.js";import{g as m,a as p,c as v,d as b}from"./p-3afaf734.js";import{a as f}from"./p-6b7d8a09.js";import{r as g,p as x}from"./p-9c3c64b9.js";const y=({item:i,activeDescendant:s,selected:e,label:h,clickHandler:o=(t=>{t.preventDefault()}),keyHandler:n=(t=>{t.preventDefault()}),search:a,isAndroidDevice:r,id:l})=>{const d=a.split(" ").filter((t=>!!t.trim())).map((t=>g(t))),c=""!==a?new RegExp(`(${d.join("|")})`,"i"):void 0;return t("duet-popup-menu-item",{id:s?l:"",active:e,"data-index":i.id,"aria-selected":s?"true":void 0,"aria-current":e?"true":void 0,role:"option","aria-label":h,tabindex:r?"-1":null,onClick:t=>o(t),onKeyUp:t=>n(t),accessibleRole:"option",activeDescendant:s},c?t("span",{class:"option-container","aria-hidden":"true"},t("span",{innerHTML:i.name.replace(c,'<span style="text-decoration: underline">$&</span>')})):i.name,i.tags&&t("span",{class:"option-tags"},i.tags.join(", ")))},S=class{constructor(t){var e,h;i(this,t),this.duetChange=s(this,"duetChange",3),this.listBoxId=n("duet-combobox-list-element"),this.inputId=n("duet-combobox-input-id"),this.activeDescendantId=n("duet-combobox-active-descendant"),this.isAndroidDevice=(null===(h=null===(e=null===navigator||void 0===navigator?void 0:navigator.userAgent)||void 0===e?void 0:e.toLowerCase())||void 0===h?void 0:h.indexOf("android"))>-1||null,this.resizeObserver=new ResizeObserver(a((t=>{var i,s,e;if(1===(null==t?void 0:t.length)){const h=null===(s=null===(i=t[0])||void 0===i?void 0:i.target)||void 0===s?void 0:s.getBoundingClientRect().width,o=parseInt(null===(e=getComputedStyle(this.listContainer.shadowRoot.querySelector(".duet-popup-menu-list")))||void 0===e?void 0:e.padding);this.listContainer.style.setProperty("--popup-width",h-2*o+"px")}}),100)),this.onInputChange=async t=>{this.inputValue=t.detail.value},this.onInputClick=()=>{var t,i;this.listOpen=this.openListOnClick?!this.listOpen:(null===(t=this.inputValue)||void 0===t?void 0:t.length)>=this.minCharacters,(null===(i=this.getFilteredItems())||void 0===i?void 0:i.length)||(this.listOpen=!1)},this.onInputTyping=async t=>{var i;const s=t.detail.value;!this.force&&!this.multiple&&this.selectedItems.size>0&&s!==this.getSelectedItemLabel()&&this.selectedItems.clear(),this.force||this.multiple||""!==s||(this.value=void 0),this.listOpen=String(s).length>=this.minCharacters&&(null===(i=this.getFilteredItems())||void 0===i?void 0:i.length)>0},this.onKeyDown=t=>{var i,s,e;const h=this.returnFilteredOrNonFiltered(),o=h.filter((t=>!this.selectedItems.has(t.id)));if(this.input.accessibleActiveDescendant=void 0,r(t))return t.preventDefault(),this.listOpen&&void 0!==this.activeItem&&h[this.activeItem]&&!this.selectedItems.has(h[this.activeItem].id)?this.multiple?this.addSelectedItem(h[this.activeItem].id,!0):this.updateSelectedItem(h[this.activeItem].id,!0):!this.multiple&&this.listOpen&&1===o.length&&o[0].name.toLowerCase()===this.input.value.toLowerCase()&&this.updateSelectedItem(o[0].id,!0),this.activeItem=void 0,void(this.listOpen=!1);if(l(t)||d(t))return this.listOpen&&t.preventDefault(),this.updateInputText(!0),this.activeItem=void 0,void(this.listOpen=!1);let n=this.activeItem;if(c(t))t.preventDefault(),n=this.activeItem-1;else if(u(t)){if((null!==(e=null===(s=null===(i=this.input)||void 0===i?void 0:i.value)||void 0===s?void 0:s.length)&&void 0!==e?e:0)<this.minCharacters)return;t.preventDefault(),n=this.listOpen?this.activeItem+1:this.activeItem,this.listOpen=!0}(u(t)||c(t))&&((n<0||!n)&&(n=0),n>=h.length&&(n=h.length-1),this.input.accessibleActiveDescendant=this.activeDescendantId,this.activeItem=n,this.scrollToActive())},this.processedItems=null,this.inputValue="",this.listOpen=!1,this.selectedItems=new Set,this.activeItem=void 0,this.accessibleLabelDefaults={en:{heading:"Select:",item:"{name}",itemFiltered:"{name}, {hiddenItems} filtered"},fi:{heading:"Valitse:",item:"{name}",itemFiltered:"{name}, {hiddenItems} suodatettu"},sv:{heading:"Välj:",item:"{name}",itemFiltered:"{name}, {hiddenItems} filtrerade"}},this.accessibleLabels=m(this.accessibleLabelDefaults,p()),this.label="",this.caption="",this.theme="",this.force=!1,this.multiple=!1,this.items=void 0,this.formatter=t=>t&&t.name?t.name:"",this.value=void 0,this.minCharacters=0,this.openListOnClick=!1,this.filterType="startsWith"}popupMenuOpenHandler(){this.listOpen?this.listContainer.show():this.listContainer.hide()}activeItemHandler(t){this.input.accessibleActiveDescendant=this.listOpen&&(t||0===t)?this.activeDescendantId:""}inputValueHandler(){setTimeout((async()=>{const t=await this.getSelectedItemLabel();""==this.input.value&&t&&(this.input.value="",this.value=void 0)}),200)}handleDocumentClick(t){t.composedPath().every((t=>t!==this.element))&&(this.updateInputText(!0),this.listOpen=!1)}async formatItem(t){return this.formatter(t)}processItems(){const t=[];if(this.processedItems=x(this.items),!Array.isArray(this.processedItems))return void console.error("DuetCombobox: Items should be an array");this.processedItems.length!==new Set([...this.processedItems]).size&&console.warn("DuetCombobox: Duplicate item values found in the list"),this.processedItems=this.processedItems.map(((i,s)=>("string"==typeof i&&(i={name:i,value:i}),i.id=void 0!==i.id?String(i.id):`${JSON.stringify(i.value)}-${i.name}`,t.includes(i.id)&&(console.warn("DuetCombobox: Duplicate item id found in the list, postfixed with index"),i.id=`${i.id}-${s}`),t.push(i.id),i)));const i=Array.from(this.selectedItems).filter((t=>!this.processedItems.find((i=>i.id===t))));i.length&&(this.multiple?i.forEach((t=>this.removeSelectedItem(t))):this.updateSelectedItem(i[0],!0))}processValue(){if(""!==this.value&&!this.value)return void this.selectedItems.clear();const t=Array.isArray(this.value)?this.value:[this.value],i=this.processedItems.filter((i=>t.includes(i.value))).map((t=>t.id));if(i.length!==this.selectedItems.size||!i.every((t=>this.selectedItems.has(t))))if(this.multiple)this.selectedItems.clear(),this.input.clearChips(),i.forEach((t=>this.addSelectedItem(t)));else{const t=this.processedItems.find((t=>t.value===this.value));this.updateSelectedItem(t.id)}}processListOpenChange(){this.openListOnClick&&(this.input.icon=this.listOpen?"action-arrow-up":"action-arrow-down"),this.input.accessibleExpanded=this.listOpen?"true":"false"}componentWillLoad(){o(this)}connectedCallback(){this.items&&this.processItems();const t=f(this.element);t.length?this.input=t[0]:(this.input=document.createElement("duet-input"),this.input.label=this.label,this.input.caption=this.caption,this.input.expand=!0,this.element.prepend(this.input)),this.input.chips=this.multiple,this.input.addEventListener("duetChange",this.onInputChange),this.input.addEventListener("duetInput",this.onInputTyping),this.input.addEventListener("click",this.onInputClick),this.input.role="combobox",this.input.accessibleExpanded=this.listOpen?"true":"false",this.input.accessibleAutocomplete="list",this.input.accessibleControls=this.listBoxId,this.input.id=this.inputId,this.element.addEventListener("keydown",this.onKeyDown),v(this,{prop:"accessibleLabels",defaults:"accessibleLabelDefaults"}),this.processListOpenChange()}disconnectedCallback(){this.input.removeEventListener("duetChange",this.onInputChange),this.input.removeEventListener("click",this.onInputClick),this.element.removeEventListener("keydown",this.onKeyDown),this.resizeObserver.disconnect(),b(this)}componentDidLoad(){this.resizeObserver.observe(this.input),this.processValue()}shouldListBeFiltered(){var t;if(!this.multiple&&this.selectedItems.size&&this.input.value===this.inputValue&&(null===(t=this.inputValue)||void 0===t?void 0:t.length)<this.minCharacters){const t=this.processedItems.find((t=>this.selectedItems.has(t.id)));return!(this.formatter(t).toLowerCase()===this.input.value.toLowerCase())}return!0}returnFilteredOrNonFiltered(){return this.processedItems?this.shouldListBeFiltered()?this.getFilteredItems():this.sortFilteredItems(this.processedItems):[]}emitChangeEvent(t){const i=this.processedItems.find((i=>i.id===t));this.duetChange.emit({item:i,value:this.value,component:"duet-combobox"})}updateMultipleValue(){this.value=this.processedItems.filter((t=>this.selectedItems.has(t.id))).map((t=>t.value)),this.input.value="",this.updateChips(),this.input.setFocus()}addSelectedItem(t,i){this.selectedItems.has(t)||(this.selectedItems.add(t),this.updateMultipleValue(),i&&this.emitChangeEvent(t))}removeSelectedItem(t,i){this.selectedItems.has(t)&&(this.selectedItems.delete(t),this.updateMultipleValue(),i&&this.emitChangeEvent(t))}async updateSelectedItem(t,i){this.selectedItems.clear(),this.selectedItems.add(t),this.value=this.processedItems.find((i=>i.id===t)).value,i&&this.emitChangeEvent(this.value&&t),await this.updateInputText()}async updateChips(){const t=Array.from(this.selectedItems),i=await this.input.getChips();t.forEach((async t=>{const i=this.processedItems.find((i=>i.id===t)),s=await this.formatItem(i);if(!await this.input.hasChip({value:`${t}`,text:s})){const i=document.createElement("duet-chip");i.variation="input",i.role="option",i.value=`${t}`,i.textContent=s,i.addEventListener("duetRemove",(t=>{this.removeSelectedItem(t.detail.value,!0)})),this.input.addChip(i)}})),i.forEach((i=>{t.includes(i.value)||i.remove()}))}async getSelectedItemLabel(){const t=this.processedItems.find((t=>this.selectedItems.has(t.id)));return t?await this.formatItem(t):""}async updateInputText(t=!1){if(t&&this.multiple)this.input.value="";else{if(t&&this.force){const t=this.returnFilteredOrNonFiltered();!this.multiple&&this.listOpen&&1===t.length&&t[0].name.toLowerCase()===this.input.value.toLowerCase()&&this.updateSelectedItem(t[0].id,!0),this.input.value=0===this.selectedItems.size?"":await this.getSelectedItemLabel()}!t&&this.selectedItems.size>0&&(this.input.value="",this.input.value=await this.getSelectedItemLabel(),this.input.scrollLeft=this.input.scrollWidth,await this.input.setFocus())}}onListClick(t,i){return t.preventDefault(),t.stopPropagation(),this.multiple?this.addSelectedItem(i.id,!0):this.updateSelectedItem(i.id,!0),this.activeItem=void 0,this.listOpen=!1,this.listOpen}scrollToActive(){const t=document.getElementById(`${this.activeDescendantId}`);t&&t.scrollIntoView({behavior:"smooth",block:"center"})}formatLabel(t,i,s,e){return t&&void 0!==e?(s===e?this.accessibleLabels.item:this.accessibleLabels.itemFiltered).replace("{name}",String(t.name)).replace("{current}",String(i+1)).replace("{total}",String(s)).replace("{hiddenItems}",String(e-s)):""}getFilteredItems(){const t=this.processedItems.filter((t=>{var i,s,e,h,o;return(null===(i=String(t.value))||void 0===i?void 0:i.toLowerCase()[this.filterType](null===(s=this.inputValue)||void 0===s?void 0:s.toLowerCase()))||(null===(e=String(t.name))||void 0===e?void 0:e.toLowerCase()[this.filterType](null===(h=this.inputValue)||void 0===h?void 0:h.toLowerCase()))||this.formatter(t).toLowerCase()[this.filterType](null===(o=this.inputValue)||void 0===o?void 0:o.toLowerCase())||this.selectedItems.has(t.id)})).filter((t=>{let i=!0;return this.multiple&&this.selectedItems.has(t.id)&&(i=!1),i}));return this.sortFilteredItems(t)}sortFilteredItems(t){return t.length>0&&t.filter((t=>this.selectedItems.has(t.id))).forEach((i=>{const s=t.indexOf(i);t.splice(s,1),t.unshift(i)})),t}render(){const i=this.returnFilteredOrNonFiltered();return t(e,{class:{"duet-combobox":!0,[`duet-theme-${this.theme}`]:!0}},t("slot",null),t("div",null,t("duet-popup-menu",{id:this.listBoxId,controller:this.input,ref:t=>this.listContainer=t,accessibleRole:"listbox",allowVerticalFlip:!1},t("div",{class:"combobox-menu-container"},this.listOpen&&i.map(((s,e)=>t(y,{id:this.activeDescendantId,item:s,activeDescendant:e===this.activeItem,selected:this.selectedItems.has(s.id),search:this.inputValue,clickHandler:t=>this.onListClick(t,s),label:this.formatLabel(s,e,i.length,this.processedItems.length),isAndroidDevice:this.isAndroidDevice}))),t("duet-spacer",{size:"x-small"})))))}get element(){return h(this)}static get watchers(){return{listOpen:["popupMenuOpenHandler","processListOpenChange"],activeItem:["activeItemHandler"],inputValue:["inputValueHandler"],items:["processItems"],value:["processValue"]}}};S.style='.sc-duet-combobox-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:inline-block;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";color:rgb(8, 42, 77)}.sc-duet-combobox-h a.sc-duet-combobox{color:rgb(8, 42, 77);transition:none}.duet-theme-turva.sc-duet-combobox-h{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.sc-duet-combobox-h a.sc-duet-combobox{color:rgb(23, 28, 58)}.combobox-menu-container.sc-duet-combobox{width:var(--popup-width);max-height:200px}';export{S as duet_combobox}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- System.register(["./p-7f554f9f.system.js"],(function(n){"use strict";return{setters:[function(){}],execute:function(){var t=function(){{globalThis.ds={log:function(){return},warn:function(){return},info:function(){return}}}};var r=function(){t()};var u=n("g",r)}}}));
4
+ System.register(["./p-2cdacb01.system.js"],(function(n){"use strict";return{setters:[function(){}],execute:function(){var t=function(){{globalThis.ds={log:function(){return},warn:function(){return},info:function(){return}}}};var r=function(){t()};var u=n("g",r)}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,h as a,H as r,g as t}from"./p-fbc91093.js";import{i as n}from"./p-aaa7a7bd.js";const o=class{constructor(a){e(this,a),this.theme="",this.icon="messaging-question",this.size="medium"}componentWillLoad(){n(this)}render(){return a(r,{key:"71695aef6ccc177f6ee64bf983f3b7804ad48e9a"},a("div",{key:"37fa981612523d137531585f970a2dd053aa13be",class:{"duet-empty-state":!0,"duet-theme-turva":"turva"===this.theme,"duet-is-small":"small"===this.size}},a("duet-icon",{key:"cf95919f2fafcac684eb58f23f84a19d954e3bd8",color:"currentColor",name:this.icon,size:"small"===this.size?"large":"x-large"}),a("div",{key:"902c40f812f728963756ff1939df300b2ad47762"},a("slot",{key:"d256a82414798539a4adcf52d2cb18cbd465271e"}))))}get element(){return t(this)}};o.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;display:block;width:100%;height:100%}.duet-empty-state{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%;padding:48px;color:rgb(8, 42, 77);text-align:center;background:rgb(245, 248, 250);border-radius:4px}.duet-empty-state.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(245, 247, 250)}";export{o as duet_empty_state}
4
+ import{r as e,h as a,H as r,g as t}from"./p-4dcb6a39.js";import{i as n}from"./p-aaa7a7bd.js";const o=class{constructor(a){e(this,a),this.theme="",this.icon="messaging-question",this.size="medium"}componentWillLoad(){n(this)}render(){return a(r,{key:"227d54f00e9a51140efcb258a3b9aabd0403e53c"},a("div",{key:"ec272041ba4a302da9529e32cd67fc782102a783",class:{"duet-empty-state":!0,"duet-theme-turva":"turva"===this.theme,"duet-is-small":"small"===this.size}},a("duet-icon",{key:"0a04c1df954274e9e5371101e9756eafacfc803c",color:"currentColor",name:this.icon,size:"small"===this.size?"large":"x-large"}),a("div",{key:"be984ad3dd5092ed1ae6207f72e383cd4398cdc4"},a("slot",{key:"440fab721d208b694cab78140c322242812e708f"}))))}get element(){return t(this)}};o.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;display:block;width:100%;height:100%}.duet-empty-state{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%;padding:48px;color:rgb(8, 42, 77);text-align:center;background:rgb(245, 248, 250);border-radius:4px}.duet-empty-state.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(245, 247, 250)}";export{o as duet_empty_state}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- System.register(["./p-7f554f9f.system.js","./p-b864159a.system.js","./p-45adef32.system.js"],(function(t){"use strict";var e,d,i,a,n,p;return{setters:[function(t){e=t.r;d=t.h;i=t.H;a=t.g},function(t){n=t.i},function(t){p=t.c}],execute:function(){var o="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=page-heading]){width:calc(100% + 32px);margin:0 -16px 0 -16px}@media (min-width: 36em){::slotted([slot=page-heading]){width:calc(100% + 56px);margin:0 -28px 0 -28px}}@media (min-width: 62em){::slotted([slot=page-heading]){width:calc(100% + 112px);margin:0 -56px 0 -56px}}:host(.center) ::slotted([slot=page-heading]){width:calc(100% + 32px);margin:0 -16px 0 -16px}@media (min-width: 36em){:host(.center) ::slotted([slot=page-heading]){width:calc(100% + 96px);margin:0 -48px 0 -48px}}@media (min-width: 48em){:host(.center) ::slotted([slot=page-heading]){width:calc(100% + 144px);margin:0 -72px 0 -72px}}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;flex:1 0 auto;width:100%}:host(.duet-middle){display:flex}:host(.duet-middle) .duet-layout{padding:36px 28px !important}@media (min-width: 36em){:host(.duet-middle) .duet-layout{padding:48px 36px !important}}@media (min-width: 62em){:host(.duet-middle) .duet-layout{padding:56px !important}}:host(.duet-middle) .heading-wrapper{padding:0 !important}:host(.duet-ie){height:100%}:host(.duet-middle.duet-ie){height:auto}.duet-layout-wrapper{display:block;margin:48px 0 36px;overflow-x:clip}@media (min-width: 36em){.duet-layout-wrapper{margin-top:72px}}@media (min-width: 62em){.duet-layout-wrapper{margin-bottom:48px}}.duet-layout-wrapper.duet-m-0{margin-top:0 !important;margin-bottom:0 !important}.duet-layout-wrapper>*{width:100%}.duet-layout{position:relative;padding:0 16px;margin:0 auto}@media (max-width: 20.5em){.duet-layout.padding-xxx-small{padding:0}}@media (max-width: 22.5em){.duet-layout.padding-xx-small{padding:0}}@media (max-width: 35.9375em){.duet-layout.padding-x-small{padding:0}}@media (min-width: 36em){.duet-layout.padding-small{padding:0}}@media (min-width: 48em){.duet-layout.padding-medium{padding:0}}@media (min-width: 62em){.duet-layout.padding-large{padding:0}}@media (min-width: 64.0625em){.duet-layout.padding-x-large{padding:0}}@media (min-width: 76.25em){.duet-layout.padding-xx-large{padding:0}}@media (min-width: 106.25em){.duet-layout.padding-xxx-large{padding:0}}.duet-layout.duet-center{display:flex;align-items:center;justify-content:center;width:100%;max-width:888px}@media (min-width: 36em){.duet-layout.duet-center{padding:0 48px}}@media (min-width: 48em){.duet-layout.duet-center{padding:0 72px}}@media (min-width: 62em){.duet-layout.duet-center{width:100%}}@media (min-width: 36em){.duet-layout{padding:0 28px}}@media (min-width: 62em){.duet-layout{display:flex;flex-direction:row;padding:0 56px}}@media (min-width: 76.25em){.duet-layout{max-width:1110px;padding:0}}.duet-main,.duet-sidebar,.duet-layout-top,.duet-layout-bottom{display:block;width:100%}.duet-layout-top{position:relative;display:block;width:100%}.duet-layout-top .duet-layout-top-wrapper{padding:0 20px;margin:0 auto}@media (min-width: 36em){.duet-layout-top .duet-layout-top-wrapper{padding:0 28px}}@media (min-width: 62em){.duet-layout-top .duet-layout-top-wrapper{padding:0 56px}}@media (min-width: 76.25em){.duet-layout-top .duet-layout-top-wrapper{max-width:1110px;padding:0}}.duet-center .duet-layout-top-wrapper{max-width:888px}@media (min-width: 36em){.duet-center .duet-layout-top-wrapper{padding:0 48px}}@media (min-width: 48em){.duet-center .duet-layout-top-wrapper{padding:0 72px}}@media (min-width: 62em){.duet-main{min-width:600px;margin:0 auto}.has-sidebar .duet-main{max-width:734px;margin-right:20px}}@media (min-width: 62em){.duet-sidebar{min-width:256px;max-width:356px}}@media (min-width: 62em){.duet-sidebar-container{width:auto;max-width:356px}}@media (min-width: 62em){.duet-sidebar-container.has-tabs{margin-top:89px}}@media (min-width: 62em){.duet-sidebar-container.sticky{position:sticky}.duet-sidebar-container.sticky.with-links{top:calc(3rem + 20px)}.duet-sidebar-container.sticky.without-links{top:calc(4rem + 20px)}}";var m=o;var u=t("duet_layout",function(){function t(t){e(this,t);this.hasSidebar=false;this.hasTop=false;this.hasPageHeading=false;this.sticky=false;this.margin="auto";this.stickyDistance="with-links";this.center=false;this.tabs=false;this.middle=false;this.paddingBreakpoint=undefined}t.prototype.componentWillLoad=function(){this.hasSidebar=!!this.element.querySelector("[slot='sidebar']");this.hasTop=!!this.element.querySelector("[slot='top']");this.hasPageHeading=!!this.element.querySelector("[slot='page-heading']");p(this.element,"page-heading","duet-page-heading",1,true);if(!this.element.querySelector("[slot='main']")){console.warn("[DUET WARNING]: Nothing passed to <duet-layout> named slots. Please use one of 'main', 'sidebar' or 'top' to display contents.")}};t.prototype.render=function(){var t,e;return d(i,{key:"815cf46b505a58a4f1db64f0737eb2461fffe1b4",class:{center:this.center,"duet-middle":this.middle,"duet-ie":n()}},d("div",{key:"0db8d45f16f7bec516c0b831393cb05f962bfdb8",class:{"duet-layout-wrapper":true,"duet-m-0":this.margin==="none"}},this.hasTop&&d("div",{key:"b65a92ce153b41318cb757b3457dfc470c11c4c6",class:{"duet-layout-top":true,"duet-center":this.center}},d("div",{key:"777fc5b75ff85428b7234d94739f7471f5dc8011",class:"duet-layout-top-wrapper"},d("slot",{key:"513fa6d80b00980efc02c454889726f24b3af6a9",name:"top"}))),d("div",{key:"8d24cdd9f0a38cadf71cf74df0f44c547a9fb4f3",class:(t={"duet-layout":true,"has-sidebar":this.hasSidebar,"duet-center":this.center},t["padding-".concat(this.paddingBreakpoint)]=!!this.paddingBreakpoint,t)},d("main",{key:"e98b4d6704819e6a07f5ccc7b29227d6623e2bc2",class:"duet-main"},this.hasPageHeading&&d("slot",{key:"642f458827bfce2732c708d5cff00b382180a202",name:"page-heading"}),d("slot",{key:"929847b72cf01ed5be66b9fdc6e0e204281d0eab",name:"main"})),this.hasSidebar&&d("aside",{key:"9cf127c89c37b47642d7d3234476c16d5c38fd11",class:"duet-sidebar"},d("div",{key:"043863761695cf57b596ab6759e99ae32e09f432",class:(e={"duet-sidebar-container":true,"has-tabs":this.tabs,sticky:this.sticky},e[this.stickyDistance]=this.sticky,e)},d("slot",{key:"772f164951137306ec8289a095a829fd2fc0a87b",name:"sidebar"}))))))};Object.defineProperty(t.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());u.style=m}}}));
4
+ System.register(["./p-2cdacb01.system.js","./p-b864159a.system.js","./p-5c58f1d6.system.js"],(function(t){"use strict";var e,d,a,i,n,p;return{setters:[function(t){e=t.r;d=t.h;a=t.H;i=t.g},function(t){n=t.i},function(t){p=t.c}],execute:function(){var o="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=page-heading]){width:calc(100% + 32px);margin:0 -16px 0 -16px}@media (min-width: 36em){::slotted([slot=page-heading]){width:calc(100% + 56px);margin:0 -28px 0 -28px}}@media (min-width: 62em){::slotted([slot=page-heading]){width:calc(100% + 112px);margin:0 -56px 0 -56px}}:host(.center) ::slotted([slot=page-heading]){width:calc(100% + 32px);margin:0 -16px 0 -16px}@media (min-width: 36em){:host(.center) ::slotted([slot=page-heading]){width:calc(100% + 96px);margin:0 -48px 0 -48px}}@media (min-width: 48em){:host(.center) ::slotted([slot=page-heading]){width:calc(100% + 144px);margin:0 -72px 0 -72px}}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;flex:1 0 auto;width:100%}:host(.duet-middle){display:flex}:host(.duet-middle) .duet-layout{padding:36px 28px !important}@media (min-width: 36em){:host(.duet-middle) .duet-layout{padding:48px 36px !important}}@media (min-width: 62em){:host(.duet-middle) .duet-layout{padding:56px !important}}:host(.duet-middle) .heading-wrapper{padding:0 !important}:host(.duet-ie){height:100%}:host(.duet-middle.duet-ie){height:auto}.duet-layout-wrapper{display:block;margin:48px 0 36px;overflow-x:clip}@media (min-width: 36em){.duet-layout-wrapper{margin-top:72px}}@media (min-width: 62em){.duet-layout-wrapper{margin-bottom:48px}}.duet-layout-wrapper.duet-m-0{margin-top:0 !important;margin-bottom:0 !important}.duet-layout-wrapper>*{width:100%}.duet-layout{position:relative;padding:0 16px;margin:0 auto}@media (max-width: 20.5em){.duet-layout.padding-xxx-small{padding:0}}@media (max-width: 22.5em){.duet-layout.padding-xx-small{padding:0}}@media (max-width: 35.9375em){.duet-layout.padding-x-small{padding:0}}@media (min-width: 36em){.duet-layout.padding-small{padding:0}}@media (min-width: 48em){.duet-layout.padding-medium{padding:0}}@media (min-width: 62em){.duet-layout.padding-large{padding:0}}@media (min-width: 64.0625em){.duet-layout.padding-x-large{padding:0}}@media (min-width: 76.25em){.duet-layout.padding-xx-large{padding:0}}@media (min-width: 106.25em){.duet-layout.padding-xxx-large{padding:0}}.duet-layout.duet-center{display:flex;align-items:center;justify-content:center;width:100%;max-width:888px}@media (min-width: 36em){.duet-layout.duet-center{padding:0 48px}}@media (min-width: 48em){.duet-layout.duet-center{padding:0 72px}}@media (min-width: 62em){.duet-layout.duet-center{width:100%}}@media (min-width: 36em){.duet-layout{padding:0 28px}}@media (min-width: 62em){.duet-layout{display:flex;flex-direction:row;padding:0 56px}}@media (min-width: 76.25em){.duet-layout{max-width:1110px;padding:0}}.duet-main,.duet-sidebar,.duet-layout-top,.duet-layout-bottom{display:block;width:100%}.duet-layout-top{position:relative;display:block;width:100%}.duet-layout-top .duet-layout-top-wrapper{padding:0 20px;margin:0 auto}@media (min-width: 36em){.duet-layout-top .duet-layout-top-wrapper{padding:0 28px}}@media (min-width: 62em){.duet-layout-top .duet-layout-top-wrapper{padding:0 56px}}@media (min-width: 76.25em){.duet-layout-top .duet-layout-top-wrapper{max-width:1110px;padding:0}}.duet-center .duet-layout-top-wrapper{max-width:888px}@media (min-width: 36em){.duet-center .duet-layout-top-wrapper{padding:0 48px}}@media (min-width: 48em){.duet-center .duet-layout-top-wrapper{padding:0 72px}}@media (min-width: 62em){.duet-main{min-width:600px;margin:0 auto}.has-sidebar .duet-main{max-width:734px;margin-right:20px}}@media (min-width: 62em){.duet-sidebar{min-width:256px;max-width:356px}}@media (min-width: 62em){.duet-sidebar-container{width:auto;max-width:356px}}@media (min-width: 62em){.duet-sidebar-container.has-tabs{margin-top:89px}}@media (min-width: 62em){.duet-sidebar-container.sticky{position:sticky}.duet-sidebar-container.sticky.with-links{top:calc(3rem + 20px)}.duet-sidebar-container.sticky.without-links{top:calc(4rem + 20px)}}";var m=o;var u=t("duet_layout",function(){function t(t){e(this,t);this.hasSidebar=false;this.hasTop=false;this.hasPageHeading=false;this.sticky=false;this.margin="auto";this.stickyDistance="with-links";this.center=false;this.tabs=false;this.middle=false;this.paddingBreakpoint=undefined}t.prototype.componentWillLoad=function(){this.hasSidebar=!!this.element.querySelector("[slot='sidebar']");this.hasTop=!!this.element.querySelector("[slot='top']");this.hasPageHeading=!!this.element.querySelector("[slot='page-heading']");p(this.element,"page-heading","duet-page-heading",1,true);if(!this.element.querySelector("[slot='main']")){console.warn("[DUET WARNING]: Nothing passed to <duet-layout> named slots. Please use one of 'main', 'sidebar' or 'top' to display contents.")}};t.prototype.render=function(){var t,e;return d(a,{key:"77e2f191178d05f54711416debb0c7f64780a0fd",class:{center:this.center,"duet-middle":this.middle,"duet-ie":n()}},d("div",{key:"905dcf1de42b34427d89e098f157126507d12aa5",class:{"duet-layout-wrapper":true,"duet-m-0":this.margin==="none"}},this.hasTop&&d("div",{key:"aff4d94915e6db5fec05f1591702ddf5d32309b8",class:{"duet-layout-top":true,"duet-center":this.center}},d("div",{key:"e9a78a2f90f64572d0f9eb0095696f7292231b90",class:"duet-layout-top-wrapper"},d("slot",{key:"5c8632796fc97f96a9db17cb193730d394d63bc6",name:"top"}))),d("div",{key:"7e0243ab692a0f95ae46a7f41afaac27ab6f8c2f",class:(t={"duet-layout":true,"has-sidebar":this.hasSidebar,"duet-center":this.center},t["padding-".concat(this.paddingBreakpoint)]=!!this.paddingBreakpoint,t)},d("main",{key:"e0eb98840d79da68f19c18dfb6b0b738c50a8563",class:"duet-main"},this.hasPageHeading&&d("slot",{key:"a8dc3953ae2de7c4d6cdfb7b732a0a2f6ff59ba8",name:"page-heading"}),d("slot",{key:"9dc9657dba0718b7553aa79d2ba525fdfeb14279",name:"main"})),this.hasSidebar&&d("aside",{key:"2ca95869b0244da856be5a537d4781fcba395eda",class:"duet-sidebar"},d("div",{key:"63c6ea53fff4a0f22940410c70619ce468179c20",class:(e={"duet-sidebar-container":true,"has-tabs":this.tabs,sticky:this.sticky},e[this.stickyDistance]=this.sticky,e)},d("slot",{key:"7329e6f47779d50e1ce873a0bb93e67b3a5cdcfb",name:"sidebar"}))))))};Object.defineProperty(t.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());u.style=m}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import"./p-fbc91093.js";import{c as e}from"./p-9c3c64b9.js";const t={fi:"fi-FI",en:"en-GB",us:"en-US",sv:"sv-SE"},n={fi:"€",en:"£",us:"$",sv:"€"},r=["fi","en","sv"],o="fi",a=()=>document.documentElement.lang?document.documentElement.lang.toLowerCase():o,s=(e=a())=>r.includes(e)?e:o,i=(e=a())=>s(e),c=e=>{const r={locale:t[e],money:n[e]};if(r.locale&&r.money)return r;throw new Error(`Locale for "${e}" not found`)},u=t=>{if("string"==typeof t)try{return JSON.parse(e(t))}catch(e){console.log("sanitizeString received a string, that didnt parse to json object",t,e)}return t},f=(e,t)=>{const n=u(e);return t?n[s(t)]:n[i()]},l=new Set,p=new WeakMap;new MutationObserver((e=>{let t=o;for(const n of e)if("attributes"===n.type&&"lang"===n.attributeName){t=n.oldValue;break}"false"!==document.documentElement.dataset.duetLangObserve&&l.forEach((e=>{e.language&&(e.language=i()),p.has(e)&&p.get(e).forEach((n=>{e[n.defaults]&&e[n.prop]===e[n.defaults][t]&&(e[n.prop]=f(e[n.defaults]))}))}))})).observe(document.documentElement,{attributeFilter:["lang"],attributeOldValue:!0});const d=(e,t)=>{l.add(e),t&&(Array.isArray(t)||(t=[t]),t.some((t=>!(t.prop in e)||!(t.defaults in e)))&&(console.error("connectLanguageChangeObserver: component must have target.prop and target.defaults properties"),t=t.filter((t=>t.prop in e&&t.defaults in e))),p.set(e,t))},g=e=>{l.delete(e),p.delete(e)};export{i as a,c as b,d as c,g as d,f as g,u as s}
4
+ import"./p-4dcb6a39.js";import{c as e}from"./p-9c3c64b9.js";const t={fi:"fi-FI",en:"en-GB",us:"en-US",sv:"sv-SE"},n={fi:"€",en:"£",us:"$",sv:"€"},r=["fi","en","sv"],o="fi",a=()=>document.documentElement.lang?document.documentElement.lang.toLowerCase():o,s=(e=a())=>r.includes(e)?e:o,i=(e=a())=>s(e),c=e=>{const r={locale:t[e],money:n[e]};if(r.locale&&r.money)return r;throw new Error(`Locale for "${e}" not found`)},u=t=>{if("string"==typeof t)try{return JSON.parse(e(t))}catch(e){console.log("sanitizeString received a string, that didnt parse to json object",t,e)}return t},f=(e,t)=>{const n=u(e);return t?n[s(t)]:n[i()]},d=new Set,l=new WeakMap;new MutationObserver((e=>{let t=o;for(const n of e)if("attributes"===n.type&&"lang"===n.attributeName){t=n.oldValue;break}"false"!==document.documentElement.dataset.duetLangObserve&&d.forEach((e=>{e.language&&(e.language=i()),l.has(e)&&l.get(e).forEach((n=>{e[n.defaults]&&e[n.prop]===e[n.defaults][t]&&(e[n.prop]=f(e[n.defaults]))}))}))})).observe(document.documentElement,{attributeFilter:["lang"],attributeOldValue:!0});const p=(e,t)=>{d.add(e),t&&(Array.isArray(t)||(t=[t]),t.some((t=>!(t.prop in e)||!(t.defaults in e)))&&(console.error("connectLanguageChangeObserver: component must have target.prop and target.defaults properties"),t=t.filter((t=>t.prop in e&&t.defaults in e))),l.set(e,t))},g=e=>{d.delete(e),l.delete(e)};export{i as a,c as b,p as c,g as d,f as g,u as s}
@@ -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 o,g as n}from"./p-fbc91093.js";import{a}from"./p-f6000a03.js";import{i as r}from"./p-aaa7a7bd.js";import{f as d}from"./p-a1b7f2a0.js";const i=class{constructor(t){e(this,t),this.mql=[window.matchMedia(a.replace(/'/g,""))],this.boundMqlFunctions=[],this.checkIsDesktop=()=>{this.isDesktop=!!this.mql[0].matches},this.onClick=()=>{const e=this.open;if(!this.isDesktop){const e=Array.from(this.element.parentElement.querySelectorAll("duet-submenu-bar-dropdown"));for(const t of e)t.open=!1}this.open=!e},this.isDesktop=!1,this.theme="",this.active=!1,this.open=!1,this.icon=void 0}handleFocus(e){e.composedPath().every((e=>e!==this.element))&&this.isDesktop&&(this.open=!1)}componentWillLoad(){r(this)}connectedCallback(){this.checkIsDesktop();for(let e=0;e<this.mql.length;e++)if(this.mql[e].addEventListener){const t=this.checkIsDesktop.bind(this);this.mql[e].addEventListener("change",t),this.boundMqlFunctions[e]=t}}disconnectedCallback(){for(let e=0;e<this.mql.length;e++)this.mql[e].removeEventListener&&this.mql[e].removeEventListener("change",this.boundMqlFunctions[e]);this.boundMqlFunctions=[]}handleEscape(e){if(d(e))if(this.open)this.open=!1;else{const e=this.element.closest("duet-submenu-bar");e.open=!1,e.setFocus()}}async setFocus(e){this.button.focus(e)}render(){return t(o,{key:"27c7987ace491bb1c392d343e7fb77964a8e01e6",role:"listitem"},t("div",{key:"c81d2ea06dd9d7be974b8ce0afb38aec268083f2",class:{"duet-submenu-bar-dropdown":!0,"duet-theme-turva":"turva"===this.theme,open:this.open,active:this.active}},t("button",{key:"e5aa57571f004c86e1da8f35b31be84f85c9b795",ref:e=>this.button=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{open:this.open,active:this.active},onClick:this.onClick,onKeyUp:e=>this.handleEscape(e)},this.icon&&t("duet-icon",{key:"28d03b6fd216ea81b1510b5c0af41df61b69610e",class:"submenu-bar-dropdown-icon",theme:this.theme,name:this.icon,size:"auto",margin:"none",color:"currentColor"}),t("div",{key:"388a6679345cd44d696d41dc027ec479ae0db473",class:"label"},t("span",{key:"88e6ce4a33c009e72e1258d35f1eddabbacc3654",class:"label-text"},t("slot",{key:"246e8f4033aa438782153691904e29a76450734c",name:"label"})),t("duet-icon",{key:"932079ae3e397891f203e7e876afbc83bb1258de",class:"caret",theme:this.theme,name:"action-arrow-down-small",margin:"none",size:"xxx-small",color:"currentColor"}))),t("div",{key:"2353d72ac49a26b83fe262e30dd443819169bc1d",tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:!0,hidden:!this.open}},t("slot",{key:"c21a441648636df186c7440b2c12f248712aecae"}))))}get element(){return n(this)}};i.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;width:100%;height:100%}@media (min-width: 62em){:host{width:auto}}.duet-submenu-bar-dropdown{position:relative;height:100%}.duet-submenu-bar-dropdown button{position:relative;display:flex;flex-direction:row;gap:16px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:12px 1.5rem;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.25;color:rgb(8, 42, 77);text-align:center;text-decoration:none;cursor:pointer}@media (min-width: 62em){.duet-submenu-bar-dropdown button{flex-direction:column;gap:5px;align-items:center;justify-content:center;width:auto;font-size:0.875rem;color:rgb(0, 75, 129)}}.duet-submenu-bar-dropdown button .label{display:flex;gap:5px;align-items:center;justify-content:center}@media (min-width: 62em){.duet-submenu-bar-dropdown button.open{background:rgb(228, 241, 247)}}.duet-submenu-bar-dropdown button.open .caret{transform:rotate(180deg)}.duet-submenu-bar-dropdown button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-submenu-bar-dropdown button.active .label-text{position:relative}.duet-submenu-bar-dropdown button.active .label-text::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transform:1px}@media (min-width: 62em){.duet-submenu-bar-dropdown button.active .label-text::after{display:none}}@media (min-width: 62em){.duet-submenu-bar-dropdown button .caret{position:absolute;right:12px}.duet-submenu-bar-dropdown button:hover{color:rgb(8, 42, 77);background:rgb(228, 241, 247)}.duet-submenu-bar-dropdown button:hover.active{color:rgb(8, 42, 77)}.duet-theme-turva .duet-submenu-bar-dropdown button:hover.active{color:rgb(23, 28, 58)}.duet-submenu-bar-dropdown button.active{color:rgb(0, 119, 179)}.duet-theme-turva .duet-submenu-bar-dropdown button.active{color:rgb(198, 12, 48)}.duet-submenu-bar-dropdown button.active::after,.duet-submenu-bar-dropdown button.open::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(1px)}.duet-theme-turva .duet-submenu-bar-dropdown button.active::after,.duet-theme-turva .duet-submenu-bar-dropdown button.open::after{background:rgb(198, 12, 48)}}.duet-submenu-bar-dropdown .submenu-bar-dropdown-icon{width:20px;height:20px}@media (min-width: 62em){.duet-submenu-bar-dropdown .submenu-bar-dropdown-icon{width:16px;height:16px}}.duet-submenu-bar-dropdown .items{display:flex;flex-direction:column;align-items:center;justify-content:center;max-height:1000px;padding:4px 0 16px;overflow-y:auto;color:rgb(8, 42, 77);visibility:visible;transition:max-height 0.3s ease-in, padding 0.3s ease-in;-ms-overflow-style:none;scrollbar-width:none}.duet-submenu-bar-dropdown .items::-webkit-scrollbar{display:none}@media (min-width: 62em){.duet-submenu-bar-dropdown .items{position:absolute;top:93%;z-index:600;min-width:320px;padding:8px;background:rgb(255, 255, 255);border-radius:8px;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.07), 0 4px 10px 0 rgba(0, 41, 77, 0.15);transition:none}}.duet-submenu-bar-dropdown .items.hidden{max-height:0;padding:0;overflow:hidden;visibility:hidden;transition:max-height 0.3s ease-in, padding 0.3s ease-in}.duet-submenu-bar-dropdown.duet-theme-turva 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)}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva button:hover{background:rgb(222, 224, 228)}}.duet-submenu-bar-dropdown.duet-theme-turva button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-submenu-bar-dropdown.duet-theme-turva button.active .label-text::after,.duet-submenu-bar-dropdown.duet-theme-turva button.open .label-text::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva button.active,.duet-submenu-bar-dropdown.duet-theme-turva button.open{color:rgb(126, 2, 35)}}.duet-submenu-bar-dropdown.duet-theme-turva button.active::after,.duet-submenu-bar-dropdown.duet-theme-turva button.open::after{background:rgb(126, 2, 35)}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva button.open{background:rgb(222, 224, 228)}}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva .items{background:rgb(255, 255, 255)}}';export{i as duet_submenu_bar_dropdown}
4
+ import{r as e,h as t,H as o,g as n}from"./p-4dcb6a39.js";import{a}from"./p-f6000a03.js";import{i as r}from"./p-aaa7a7bd.js";import{f as d}from"./p-a45e3f8b.js";const i=class{constructor(t){e(this,t),this.mql=[window.matchMedia(a.replace(/'/g,""))],this.boundMqlFunctions=[],this.checkIsDesktop=()=>{this.isDesktop=!!this.mql[0].matches},this.onClick=()=>{const e=this.open;if(!this.isDesktop){const e=Array.from(this.element.parentElement.querySelectorAll("duet-submenu-bar-dropdown"));for(const t of e)t.open=!1}this.open=!e},this.isDesktop=!1,this.theme="",this.active=!1,this.open=!1,this.icon=void 0}handleFocus(e){e.composedPath().every((e=>e!==this.element))&&this.isDesktop&&(this.open=!1)}componentWillLoad(){r(this)}connectedCallback(){this.checkIsDesktop();for(let e=0;e<this.mql.length;e++)if(this.mql[e].addEventListener){const t=this.checkIsDesktop.bind(this);this.mql[e].addEventListener("change",t),this.boundMqlFunctions[e]=t}}disconnectedCallback(){for(let e=0;e<this.mql.length;e++)this.mql[e].removeEventListener&&this.mql[e].removeEventListener("change",this.boundMqlFunctions[e]);this.boundMqlFunctions=[]}handleEscape(e){if(d(e))if(this.open)this.open=!1;else{const e=this.element.closest("duet-submenu-bar");e.open=!1,e.setFocus()}}async setFocus(e){this.button.focus(e)}render(){return t(o,{key:"6b5d2434a5a7d5afdfaf40e2134d1f02d2f8e222",role:"listitem"},t("div",{key:"efe625a31b8e3fa67d845250f6802633a3e970d3",class:{"duet-submenu-bar-dropdown":!0,"duet-theme-turva":"turva"===this.theme,open:this.open,active:this.active}},t("button",{key:"7b631206096ecd24fd7018850656a6ab3cf3f89b",ref:e=>this.button=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{open:this.open,active:this.active},onClick:this.onClick,onKeyUp:e=>this.handleEscape(e)},this.icon&&t("duet-icon",{key:"3c9030513cf42a8633d8359be8003179bd5913b6",class:"submenu-bar-dropdown-icon",theme:this.theme,name:this.icon,size:"auto",margin:"none",color:"currentColor"}),t("div",{key:"66fc2c66e8e27bee53464ce406797f4c32ca3b5c",class:"label"},t("span",{key:"a073565bff14d28d8cf5167eec655716e3e0e61e",class:"label-text"},t("slot",{key:"14f7ef42fc76a1363bb5e0eacf4eac6bbb080490",name:"label"})),t("duet-icon",{key:"66884d73e81fa44ca37f1b3fe6d5d5dd02114ac6",class:"caret",theme:this.theme,name:"action-arrow-down-small",margin:"none",size:"xxx-small",color:"currentColor"}))),t("div",{key:"16f20eb6a5a4f169b34bf32c8dbe1e3f401a97b9",tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:!0,hidden:!this.open}},t("slot",{key:"39e9087f187e2ed824ae75f02eea9894648c4bba"}))))}get element(){return n(this)}};i.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;width:100%;height:100%}@media (min-width: 62em){:host{width:auto}}.duet-submenu-bar-dropdown{position:relative;height:100%}.duet-submenu-bar-dropdown button{position:relative;display:flex;flex-direction:row;gap:16px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:12px 1.5rem;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.25;color:rgb(8, 42, 77);text-align:center;text-decoration:none;cursor:pointer}@media (min-width: 62em){.duet-submenu-bar-dropdown button{flex-direction:column;gap:5px;align-items:center;justify-content:center;width:auto;font-size:0.875rem;color:rgb(0, 75, 129)}}.duet-submenu-bar-dropdown button .label{display:flex;gap:5px;align-items:center;justify-content:center}@media (min-width: 62em){.duet-submenu-bar-dropdown button.open{background:rgb(228, 241, 247)}}.duet-submenu-bar-dropdown button.open .caret{transform:rotate(180deg)}.duet-submenu-bar-dropdown button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-submenu-bar-dropdown button.active .label-text{position:relative}.duet-submenu-bar-dropdown button.active .label-text::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transform:1px}@media (min-width: 62em){.duet-submenu-bar-dropdown button.active .label-text::after{display:none}}@media (min-width: 62em){.duet-submenu-bar-dropdown button .caret{position:absolute;right:12px}.duet-submenu-bar-dropdown button:hover{color:rgb(8, 42, 77);background:rgb(228, 241, 247)}.duet-submenu-bar-dropdown button:hover.active{color:rgb(8, 42, 77)}.duet-theme-turva .duet-submenu-bar-dropdown button:hover.active{color:rgb(23, 28, 58)}.duet-submenu-bar-dropdown button.active{color:rgb(0, 119, 179)}.duet-theme-turva .duet-submenu-bar-dropdown button.active{color:rgb(198, 12, 48)}.duet-submenu-bar-dropdown button.active::after,.duet-submenu-bar-dropdown button.open::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(1px)}.duet-theme-turva .duet-submenu-bar-dropdown button.active::after,.duet-theme-turva .duet-submenu-bar-dropdown button.open::after{background:rgb(198, 12, 48)}}.duet-submenu-bar-dropdown .submenu-bar-dropdown-icon{width:20px;height:20px}@media (min-width: 62em){.duet-submenu-bar-dropdown .submenu-bar-dropdown-icon{width:16px;height:16px}}.duet-submenu-bar-dropdown .items{display:flex;flex-direction:column;align-items:center;justify-content:center;max-height:1000px;padding:4px 0 16px;overflow-y:auto;color:rgb(8, 42, 77);visibility:visible;transition:max-height 0.3s ease-in, padding 0.3s ease-in;-ms-overflow-style:none;scrollbar-width:none}.duet-submenu-bar-dropdown .items::-webkit-scrollbar{display:none}@media (min-width: 62em){.duet-submenu-bar-dropdown .items{position:absolute;top:93%;z-index:600;min-width:320px;padding:8px;background:rgb(255, 255, 255);border-radius:8px;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.07), 0 4px 10px 0 rgba(0, 41, 77, 0.15);transition:none}}.duet-submenu-bar-dropdown .items.hidden{max-height:0;padding:0;overflow:hidden;visibility:hidden;transition:max-height 0.3s ease-in, padding 0.3s ease-in}.duet-submenu-bar-dropdown.duet-theme-turva 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)}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva button:hover{background:rgb(222, 224, 228)}}.duet-submenu-bar-dropdown.duet-theme-turva button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-submenu-bar-dropdown.duet-theme-turva button.active .label-text::after,.duet-submenu-bar-dropdown.duet-theme-turva button.open .label-text::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva button.active,.duet-submenu-bar-dropdown.duet-theme-turva button.open{color:rgb(126, 2, 35)}}.duet-submenu-bar-dropdown.duet-theme-turva button.active::after,.duet-submenu-bar-dropdown.duet-theme-turva button.open::after{background:rgb(126, 2, 35)}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva button.open{background:rgb(222, 224, 228)}}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva .items{background:rgb(255, 255, 255)}}';export{i as duet_submenu_bar_dropdown}
@@ -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-fbc91093.js";import{i as u}from"./p-aaa7a7bd.js";import{c as r}from"./p-5e59e970.js";import{a,b as o,c as h,d as b,e as d,s as l,u as c}from"./p-a1b7f2a0.js";import{a as p,b as m,g,c as v,d as f}from"./p-6aa58c2c.js";import{c as x}from"./p-a1ab523a.js";import"./p-9c3c64b9.js";function w(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,""),u=new Intl.NumberFormat("en-US").format(.5).replace(/[0-9]/g,""),r=new Intl.NumberFormat(e).format(1e3).replace(/[0-9]/g,""),a=new Intl.NumberFormat("en-US").format(1e3).replace(/[0-9]/g,"");return s=t.replace(n,"DECIMALSEPARATOR"),s=s.replace(r,i?"THOUSANDSEPARATOR":""),s=s.replace("DECIMALSEPARATOR",u),s=s.replace("THOUSANDSEPARATOR",a),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 y=(t,e,i)=>Math.min(Math.max(t,e),i),A=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.handleFocus=()=>{this.focusedValue=this.value},this.handleKeyDown=t=>{a(t)||o(t)?this.add(t):h(t)||b(t)?this.subtract(t):d(t)&&this.clearValue(t)},this.handleChange=t=>{const e=t.target;if(e&&e.value)try{let i=w(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:w(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=w(e.value,this.locale);this.rounding&&(i=this.step,s=Math.round(s/i)*i),s=y(s,this.min,this.max),s===w(this.value,this.locale)&&s===w(this.focusedValue,this.locale)||(this.setValue(s),this.emitChange(t))}catch(e){this.emitNull(t)}else this.emitNull(t)},this.emitChange=t=>{const e=w(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),this.setValue=t=>{this.value=this.localizeValue(t),this.duetInputElement.value=`${this.value} ${this.unit}`},this.add=t=>{t&&t.preventDefault();const e=w(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=y(i,this.min,this.max);this.value=this.localizeValue(s),this.emitChange(t)},this.subtract=t=>{t&&t.preventDefault();const e=w(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=y(i,this.min,this.max),this.value=this.localizeValue(i),this.emitChange(t)},this.language=p(),this.locale=m(this.language).locale,this.unit=m(this.language).money,this.focusedValue=void 0,this.accessibleActiveDescendant=void 0,this.accessibleControls=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleOwns=void 0,this.accessibleDescribedBy=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.identifier=void 0,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.name=void 0,this.error="",this.tooltip="",this.step=5e3,this.rounding=!0,this.role=void 0,this.disabled=!1,this.required=!1,this.value=void 0}componentWillLoad(){u(this),this.value&&(this.value=this.localizeValue(w(this.value,this.locale))),x(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"}]),l(this)}disconnectedCallback(){f(this),c(this)}async setFocus(t){this.duetInputElement.setFocus(t)}async getValueAsNumber(){const t=w(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))}formatAnnouncement(){const t=this.value?w(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.unit}`.length,n=this.value?w(this.value,this.locale):null;return i(s,{class:{"duet-theme-turva":"turva"===this.theme,"duet-expand":this.expand,"duet-m-0":"none"===this.margin}},i("div",{class:"duet-number-container"},i("duet-input",{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.unit}`:"",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",{name:"tooltip"}),i("div",{class:{"duet-number-buttons":!0,"duet-no-label":this.labelHidden}},i("button",{"aria-controls":t,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",null,this.accessibleSubtract," ",this.step),i("duet-icon",{icon:'<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>',size:"small",margin:"none",color:"turva"===this.theme?"secondary-turva":"secondary"})),i("button",{"aria-controls":t,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",null,this.accessibleAdd," ",this.step),i("duet-icon",{icon:'<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>',size:"small",margin:"none",color:"turva"===this.theme?"secondary-turva":"secondary"})))),this.accessibleLiveEnabled&&i("duet-visually-hidden",{"aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement())))}get element(){return n(this)}};A.style='*.sc-duet-number-input,*.sc-duet-number-input::after,*.sc-duet-number-input::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-number-input-h{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}.sc-duet-number-input-h:last-child,.sc-duet-number-input-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-number-input-h{width:calc(50% - 16px - 3px)}}.duet-expand.sc-duet-number-input-h{width:100% !important}.duet-m-0.sc-duet-number-input-h{margin:0 !important}.duet-number-container.sc-duet-number-input{position:relative;width:100%}.duet-number-buttons.sc-duet-number-input{-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.sc-duet-number-input .duet-number-button.sc-duet-number-input{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.sc-duet-number-input .duet-number-button[aria-disabled=true].sc-duet-number-input,.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:disabled{pointer-events:none}.duet-number-buttons.sc-duet-number-input .duet-number-button[aria-disabled=true].sc-duet-number-input duet-icon.sc-duet-number-input,.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:disabled duet-icon.sc-duet-number-input{opacity:0.4}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:active duet-icon.sc-duet-number-input{transform:translateY(1px)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:focus{outline:0}.user-is-tabbing.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:focus{z-index:2;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva .user-is-tabbing.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:focus{box-shadow:0 0 0 2px #171c3a !important}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:first-of-type{border-left:1px solid rgb(181, 198, 208)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input: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.sc-duet-number-input .duet-number-button.sc-duet-number-input:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:last-of-type::before{position:absolute;top:20%;left:0;width:1px;height:60%;content:"";background:rgb(212, 223, 229)}.duet-theme-turva.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input: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%)}.duet-theme-turva.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:last-of-type::before{background:rgb(222, 224, 228)}';export{A as duet_number_input}
4
+ import{r as t,c as e,h as i,H as s,g as n}from"./p-4dcb6a39.js";import{i as u}from"./p-aaa7a7bd.js";import{c as r}from"./p-5e59e970.js";import{a,b as o,c as h,d as b,e as d,s as l,u as c}from"./p-a45e3f8b.js";import{a as p,b as m,g,c as f,d as v}from"./p-3afaf734.js";import{c as x}from"./p-6b7d8a09.js";import"./p-9c3c64b9.js";function w(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,""),u=new Intl.NumberFormat("en-US").format(.5).replace(/[0-9]/g,""),r=new Intl.NumberFormat(e).format(1e3).replace(/[0-9]/g,""),a=new Intl.NumberFormat("en-US").format(1e3).replace(/[0-9]/g,"");return s=t.replace(n,"DECIMALSEPARATOR"),s=s.replace(r,i?"THOUSANDSEPARATOR":""),s=s.replace("DECIMALSEPARATOR",u),s=s.replace("THOUSANDSEPARATOR",a),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 y=(t,e,i)=>Math.min(Math.max(t,e),i),A=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.handleFocus=()=>{this.focusedValue=this.value},this.handleKeyDown=t=>{a(t)||o(t)?this.add(t):h(t)||b(t)?this.subtract(t):d(t)&&this.clearValue(t)},this.handleChange=t=>{const e=t.target;if(e&&e.value)try{let i=w(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:w(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=w(e.value,this.locale);this.rounding&&(i=this.step,s=Math.round(s/i)*i),s=y(s,this.min,this.max),s===w(this.value,this.locale)&&s===w(this.focusedValue,this.locale)||(this.setValue(s),this.emitChange(t))}catch(e){this.emitNull(t)}else this.emitNull(t)},this.emitChange=t=>{const e=w(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),this.setValue=t=>{this.value=this.localizeValue(t),this.duetInputElement.value=`${this.value} ${this.unit}`},this.add=t=>{t&&t.preventDefault();const e=w(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=y(i,this.min,this.max);this.value=this.localizeValue(s),this.emitChange(t)},this.subtract=t=>{t&&t.preventDefault();const e=w(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=y(i,this.min,this.max),this.value=this.localizeValue(i),this.emitChange(t)},this.language=p(),this.locale=m(this.language).locale,this.unit=m(this.language).money,this.focusedValue=void 0,this.accessibleActiveDescendant=void 0,this.accessibleControls=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleOwns=void 0,this.accessibleDescribedBy=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.identifier=void 0,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.name=void 0,this.error="",this.tooltip="",this.step=5e3,this.rounding=!0,this.role=void 0,this.disabled=!1,this.required=!1,this.value=void 0}componentWillLoad(){u(this),this.value&&(this.value=this.localizeValue(w(this.value,this.locale))),x(this.element,"tooltip","duet-tooltip",1,!0)}connectedCallback(){f(this,[{prop:"accessibleLive",defaults:"accessibleLiveDefaults"},{prop:"accessibleAdd",defaults:"accessibleAddDefaults"},{prop:"accessibleSubtract",defaults:"accessibleSubtractDefaults"},{prop:"label",defaults:"labelDefaults"}]),l(this)}disconnectedCallback(){v(this),c(this)}async setFocus(t){this.duetInputElement.setFocus(t)}async getValueAsNumber(){const t=w(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))}formatAnnouncement(){const t=this.value?w(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.unit}`.length,n=this.value?w(this.value,this.locale):null;return i(s,{class:{"duet-theme-turva":"turva"===this.theme,"duet-expand":this.expand,"duet-m-0":"none"===this.margin}},i("div",{class:"duet-number-container"},i("duet-input",{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.unit}`:"",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",{name:"tooltip"}),i("div",{class:{"duet-number-buttons":!0,"duet-no-label":this.labelHidden}},i("button",{"aria-controls":t,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",null,this.accessibleSubtract," ",this.step),i("duet-icon",{icon:'<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>',size:"small",margin:"none",color:"turva"===this.theme?"secondary-turva":"secondary"})),i("button",{"aria-controls":t,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",null,this.accessibleAdd," ",this.step),i("duet-icon",{icon:'<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>',size:"small",margin:"none",color:"turva"===this.theme?"secondary-turva":"secondary"})))),this.accessibleLiveEnabled&&i("duet-visually-hidden",{"aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement())))}get element(){return n(this)}};A.style='*.sc-duet-number-input,*.sc-duet-number-input::after,*.sc-duet-number-input::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-number-input-h{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}.sc-duet-number-input-h:last-child,.sc-duet-number-input-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-number-input-h{width:calc(50% - 16px - 3px)}}.duet-expand.sc-duet-number-input-h{width:100% !important}.duet-m-0.sc-duet-number-input-h{margin:0 !important}.duet-number-container.sc-duet-number-input{position:relative;width:100%}.duet-number-buttons.sc-duet-number-input{-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.sc-duet-number-input .duet-number-button.sc-duet-number-input{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.sc-duet-number-input .duet-number-button[aria-disabled=true].sc-duet-number-input,.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:disabled{pointer-events:none}.duet-number-buttons.sc-duet-number-input .duet-number-button[aria-disabled=true].sc-duet-number-input duet-icon.sc-duet-number-input,.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:disabled duet-icon.sc-duet-number-input{opacity:0.4}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:active duet-icon.sc-duet-number-input{transform:translateY(1px)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:focus{outline:0}.user-is-tabbing.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:focus{z-index:2;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva .user-is-tabbing.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:focus{box-shadow:0 0 0 2px #171c3a !important}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:first-of-type{border-left:1px solid rgb(181, 198, 208)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input: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.sc-duet-number-input .duet-number-button.sc-duet-number-input:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:last-of-type::before{position:absolute;top:20%;left:0;width:1px;height:60%;content:"";background:rgb(212, 223, 229)}.duet-theme-turva.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input: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%)}.duet-theme-turva.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:last-of-type::before{background:rgb(222, 224, 228)}';export{A as duet_number_input}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,c as t,h as i,g as r,H as o}from"./p-fbc91093.js";import{i as a}from"./p-aaa7a7bd.js";import{c as s}from"./p-5e59e970.js";import{i as n,s as d,u as p}from"./p-a1b7f2a0.js";const u=class{constructor(i){e(this,i),this.duetStepClick=t(this,"duetStepClick",7),this.buttonId=s("DuetStepButton"),this.contentId=s("DuetStepContent"),this.handleKeyDown=e=>{this.isClickDisabled()||n(e)&&(e.preventDefault(),this.handleStepClick(e))},this.handleClick=e=>{this.isClickDisabled()||this.handleStepClick(e)},this.theme="",this.heading=void 0,this.headingLevel=void 0,this.stepIndex=void 0,this.state=void 0,this.roundedTop=!1,this.roundedBottom=!1}handleStepClick(e){this.duetStepClick.emit({originalEvent:e,component:"duet-step",stepIndex:this.stepIndex})}componentWillLoad(){a(this)}connectedCallback(){d(this)}disconnectedCallback(){p(this)}async setFocus(e={preventScroll:!0}){this.buttonElement.focus(e)}isClickDisabled(){return"complete"!==this.state}headingColor(){return"incomplete"!==this.state?"":"turva"!==this.theme?"gray-darker":"gray-dark-turva"}renderStepCounter(){return"complete"===this.state||"disabled"===this.state?i("div",{class:"duet-step-icon"},i("duet-icon",{margin:"none",size:"auto",color:"gray-lightest",icon:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.748 24a.755.755 0 0 1-.531-.22.754.754 0 0 1-.196-.716l1.77-6.905a.84.84 0 0 1 .045-.121.73.73 0 0 1 .151-.223L16.513 1.289A4.355 4.355 0 0 1 19.611 0c1.178 0 2.277.454 3.106 1.279l.029.029a4.367 4.367 0 0 1 1.251 3.121 4.356 4.356 0 0 1-1.32 3.087L8.183 22.01a.735.735 0 0 1-.231.154.784.784 0 0 1-.111.042L.933 23.978A.773.773 0 0 1 .748 24zm1.041-1.791 4.41-1.131-3.281-3.275zm5.868-1.795 13.02-13.02-4.074-4.074L3.58 16.344zM21.736 6.332a2.893 2.893 0 0 0-.059-3.972l-.02-.02a2.872 2.872 0 0 0-2.037-.84v-.375l-.001.375a2.873 2.873 0 0 0-1.954.762z"/></svg>'})):`${this.stepIndex+1} `}render(){return i("div",{class:{"duet-step":!0,[`is-${this.state}`]:!0,"rounded-top":this.roundedTop,"rounded-bottom":this.roundedBottom,"duet-theme-turva":"turva"===this.theme}},i("div",{class:"duet-step-heading",id:this.buttonId,role:"current"!==this.state?"button":"region","aria-current":"current"===this.state?"step":void 0,tabindex:"current"!==this.state?"0":void 0,"aria-disabled":this.isClickDisabled().toString(),"aria-expanded":("current"===this.state).toString(),"aria-controls":this.contentId,"aria-selected":("current"===this.state).toString(),onClick:this.handleClick,onKeyDown:this.handleKeyDown,ref:e=>this.buttonElement=e},i("div",{"aria-hidden":"true"},i("div",{class:"duet-step-counter"},this.renderStepCounter())),i("duet-spacer",{direction:"horizontal",size:"large",breakpoint:"small"}),i("duet-spacer",{direction:"horizontal",size:"medium",breakpoint:"x-small"}),i("div",null,i("duet-heading",{theme:this.theme,level:this.headingLevel,visualLevel:"h4",color:this.headingColor(),margin:"none"},this.heading)),i("duet-spacer",{direction:"horizontal",size:"large"}),i("div",{class:"duet-step-heading-slot"},i("slot",{name:"heading-content"}))),i("div",{class:"duet-step-content-wrapper"},i("div",{class:"duet-step-content",role:"region","aria-labelledby":this.buttonId,id:this.contentId},i("slot",null))))}get element(){return r(this)}};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;display:block}.duet-step{padding:20px !important;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;background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-step.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";box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-step.rounded-top{border-top-left-radius:4px;border-top-right-radius:4px}.duet-step.rounded-bottom{margin-bottom:20px !important;border-bottom-right-radius:4px;border-bottom-left-radius:4px}@media (min-width: 36em){.duet-step.rounded-bottom{margin-bottom:0 !important}}@media (min-width: 36em){.duet-step{padding:0 20px 0 0 !important;margin:0 !important;font-size:1.25rem;box-shadow:none !important}}.duet-step-heading{display:flex;align-items:center;border-radius:4px}.duet-step-heading[aria-disabled=false]{cursor:pointer}.duet-step-heading:focus{outline:0}.duet-step-heading:active{opacity:0.75}:host(.user-is-tabbing) .duet-step-heading: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-step-heading:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.is-complete .duet-step-heading:hover .duet-step-counter,.is-disabled .duet-step-heading:hover .duet-step-counter{background-color:#005f8f}.duet-theme-turva.is-complete .duet-step-heading:hover .duet-step-counter,.duet-theme-turva.is-disabled .duet-step-heading:hover .duet-step-counter{background-color:#9e0a26}.is-current .duet-step-heading{margin-bottom:20px}@media (min-width: 36em){.duet-step-heading{margin-top:8px;margin-bottom:8px !important}:host(:first-of-type) .duet-step-heading{margin-top:0}:host(:last-of-type) .duet-step-heading{margin-bottom:0 !important}}.duet-step-counter{-webkit-user-select:none;user-select:none;display:flex;align-items:center;justify-content:center;width:30px;height:30px;line-height:30px;color:rgb(255, 255, 255);text-align:center;border-radius:50%;transition:background-color 300ms ease}@media (min-width: 36em){.duet-step-counter{width:40px;height:40px;line-height:40px}}.is-complete .duet-step-counter,.is-current .duet-step-counter,.is-disabled .duet-step-counter{background-color:rgb(0, 119, 179)}.duet-theme-turva.is-complete .duet-step-counter,.duet-theme-turva.is-current .duet-step-counter,.duet-theme-turva.is-disabled .duet-step-counter{background-color:rgb(198, 12, 48)}.is-incomplete .duet-step-counter{background-color:rgb(98, 121, 138)}.duet-theme-turva.is-incomplete .duet-step-counter{background-color:rgb(143, 147, 158)}.duet-step-icon{display:flex;align-items:center;justify-content:center;width:16px;height:16px}@media (min-width: 36em){.duet-step-icon{width:20px;height:20px}}.duet-step-icon duet-icon{width:16px;height:16px}@media (min-width: 36em){.duet-step-icon duet-icon{width:20px;height:20px}}@media (min-width: 36em){.duet-step-content-wrapper{min-height:20px;padding-left:40px;margin-left:19px;border-left:2px solid rgb(212, 223, 229)}.duet-theme-turva .duet-step-content-wrapper{border-color:rgb(222, 224, 228)}:host(:last-of-type) .duet-step-content-wrapper{min-height:0;border:transparent}}.duet-step-content{display:none;padding-bottom:16px}@media (min-width: 36em){.duet-step-content{padding-bottom:28px}}.is-current .duet-step-content{display:block}.duet-step-heading-slot{display:none;margin-top:2px}@media (min-width: 48em){.duet-step-heading-slot{display:block}}';const c=class{constructor(i){e(this,i),this.duetStepChange=t(this,"duetStepChange",7),this.theme="",this.accessibleLive="Lista jossa {total} kohtaa. Olet kohdassa {current}.",this.margin="auto",this.backDisabled=!1,this.selected=0}currentStepChanged(e){if(isNaN(e))throw new Error(`step must be a number. got: ${e}`);if(e<0)throw new Error(`step must be not be less than zero. got: ${e}`);if(e>this.getSteps().length)throw new Error("step must not exceed total number of steps");this.updateStepState(),setTimeout((()=>this.setStepFocus()),50)}currentStepInvokedDisable(){this.updateStepState()}onDuetStepClick(e){this.duetStepChange.emit({fromStep:this.selected,toStep:e.detail.stepIndex,component:"duet-stepper"})}componentWillLoad(){a(this)}async connectedCallback(){this.updateStepState()}getSteps(){return Array.from(this.element.querySelectorAll("duet-step"))}setStepFocus(){this.getSteps()[this.selected].setFocus()}updateStepState(){const e=this.getSteps();e.forEach(((e,t)=>{let i;i=t<this.selected?this.backDisabled?"disabled":"complete":t>this.selected?"incomplete":"current",e.theme=this.theme,e.state=i,e.stepIndex=t}));const t=function(e,t){const i={};return t.forEach((e=>{const t=e.state;i[t]||(i[t]=[]),i[t].push(e)})),i}(0,e);Object.values(t).forEach((e=>{e.forEach(((t,i)=>{t.roundedTop=0===i,t.roundedBottom=i===e.length-1}))}))}formatAnnouncement(){const e=this.getSteps(),t=(this.selected+1).toString(10),i=e.length.toString(10);return this.accessibleLive.replace("{current}",t).replace("{total}",i)}render(){return i(o,{key:"9cd2e878ee57bb71fe5fbd410f88af372dc31cde",class:{"duet-m-0":"none"===this.margin}},i("div",{key:"f97a9e7f94f0968bb70ed9def756541279783bc7",class:{"duet-stepper":!0,"duet-theme-turva":"turva"===this.theme}},i("duet-visually-hidden",{key:"c6bc42ab6164ea260b6860c4c8350f8fecc83a2f","aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement()),i("slot",{key:"fa2a987f757693d3f287fc0707466d751d7fb8ba"})))}get element(){return r(this)}static get watchers(){return{selected:["currentStepChanged"],backDisabled:["currentStepInvokedDisable"]}}};c.style=":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;width:100%}:host(.duet-m-0){margin:0 !important}.duet-stepper{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}@media (min-width: 36em){.duet-stepper{padding:28px !important;padding-top:36px !important;padding-bottom:36px !important;background:rgb(255, 255, 255);border-radius:4px;box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}}";export{u as duet_step,c as duet_stepper}
4
+ import{r as t,c as e,h as i,g as r,H as o}from"./p-4dcb6a39.js";import{i as a}from"./p-aaa7a7bd.js";import{c as s}from"./p-5e59e970.js";import{i as n,s as d,u as p}from"./p-a45e3f8b.js";const u=class{constructor(i){t(this,i),this.duetStepClick=e(this,"duetStepClick",7),this.buttonId=s("DuetStepButton"),this.contentId=s("DuetStepContent"),this.handleKeyDown=t=>{this.isClickDisabled()||n(t)&&(t.preventDefault(),this.handleStepClick(t))},this.handleClick=t=>{this.isClickDisabled()||this.handleStepClick(t)},this.theme="",this.heading=void 0,this.headingLevel=void 0,this.stepIndex=void 0,this.state=void 0,this.roundedTop=!1,this.roundedBottom=!1}handleStepClick(t){this.duetStepClick.emit({originalEvent:t,component:"duet-step",stepIndex:this.stepIndex})}componentWillLoad(){a(this)}connectedCallback(){d(this)}disconnectedCallback(){p(this)}async setFocus(t={preventScroll:!0}){this.buttonElement.focus(t)}isClickDisabled(){return"complete"!==this.state}headingColor(){return"incomplete"!==this.state?"":"turva"!==this.theme?"gray-darker":"gray-dark-turva"}renderStepCounter(){return"complete"===this.state||"disabled"===this.state?i("div",{class:"duet-step-icon"},i("duet-icon",{margin:"none",size:"auto",color:"gray-lightest",icon:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.748 24a.755.755 0 0 1-.531-.22.754.754 0 0 1-.196-.716l1.77-6.905a.84.84 0 0 1 .045-.121.73.73 0 0 1 .151-.223L16.513 1.289A4.355 4.355 0 0 1 19.611 0c1.178 0 2.277.454 3.106 1.279l.029.029a4.367 4.367 0 0 1 1.251 3.121 4.356 4.356 0 0 1-1.32 3.087L8.183 22.01a.735.735 0 0 1-.231.154.784.784 0 0 1-.111.042L.933 23.978A.773.773 0 0 1 .748 24zm1.041-1.791 4.41-1.131-3.281-3.275zm5.868-1.795 13.02-13.02-4.074-4.074L3.58 16.344zM21.736 6.332a2.893 2.893 0 0 0-.059-3.972l-.02-.02a2.872 2.872 0 0 0-2.037-.84v-.375l-.001.375a2.873 2.873 0 0 0-1.954.762z"/></svg>'})):`${this.stepIndex+1} `}render(){return i("div",{class:{"duet-step":!0,[`is-${this.state}`]:!0,"rounded-top":this.roundedTop,"rounded-bottom":this.roundedBottom,"duet-theme-turva":"turva"===this.theme}},i("div",{class:"duet-step-heading",id:this.buttonId,role:"current"!==this.state?"button":"region","aria-current":"current"===this.state?"step":void 0,tabindex:"current"!==this.state?"0":void 0,"aria-disabled":this.isClickDisabled().toString(),"aria-expanded":("current"===this.state).toString(),"aria-controls":this.contentId,"aria-selected":("current"===this.state).toString(),onClick:this.handleClick,onKeyDown:this.handleKeyDown,ref:t=>this.buttonElement=t},i("div",{"aria-hidden":"true"},i("div",{class:"duet-step-counter"},this.renderStepCounter())),i("duet-spacer",{direction:"horizontal",size:"large",breakpoint:"small"}),i("duet-spacer",{direction:"horizontal",size:"medium",breakpoint:"x-small"}),i("div",null,i("duet-heading",{theme:this.theme,level:this.headingLevel,visualLevel:"h4",color:this.headingColor(),margin:"none"},this.heading)),i("duet-spacer",{direction:"horizontal",size:"large"}),i("div",{class:"duet-step-heading-slot"},i("slot",{name:"heading-content"}))),i("div",{class:"duet-step-content-wrapper"},i("div",{class:"duet-step-content",role:"region","aria-labelledby":this.buttonId,id:this.contentId},i("slot",null))))}get element(){return r(this)}};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;display:block}.duet-step{padding:20px !important;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;background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-step.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";box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-step.rounded-top{border-top-left-radius:4px;border-top-right-radius:4px}.duet-step.rounded-bottom{margin-bottom:20px !important;border-bottom-right-radius:4px;border-bottom-left-radius:4px}@media (min-width: 36em){.duet-step.rounded-bottom{margin-bottom:0 !important}}@media (min-width: 36em){.duet-step{padding:0 20px 0 0 !important;margin:0 !important;font-size:1.25rem;box-shadow:none !important}}.duet-step-heading{display:flex;align-items:center;border-radius:4px}.duet-step-heading[aria-disabled=false]{cursor:pointer}.duet-step-heading:focus{outline:0}.duet-step-heading:active{opacity:0.75}:host(.user-is-tabbing) .duet-step-heading: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-step-heading:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.is-complete .duet-step-heading:hover .duet-step-counter,.is-disabled .duet-step-heading:hover .duet-step-counter{background-color:#005f8f}.duet-theme-turva.is-complete .duet-step-heading:hover .duet-step-counter,.duet-theme-turva.is-disabled .duet-step-heading:hover .duet-step-counter{background-color:#9e0a26}.is-current .duet-step-heading{margin-bottom:20px}@media (min-width: 36em){.duet-step-heading{margin-top:8px;margin-bottom:8px !important}:host(:first-of-type) .duet-step-heading{margin-top:0}:host(:last-of-type) .duet-step-heading{margin-bottom:0 !important}}.duet-step-counter{-webkit-user-select:none;user-select:none;display:flex;align-items:center;justify-content:center;width:30px;height:30px;line-height:30px;color:rgb(255, 255, 255);text-align:center;border-radius:50%;transition:background-color 300ms ease}@media (min-width: 36em){.duet-step-counter{width:40px;height:40px;line-height:40px}}.is-complete .duet-step-counter,.is-current .duet-step-counter,.is-disabled .duet-step-counter{background-color:rgb(0, 119, 179)}.duet-theme-turva.is-complete .duet-step-counter,.duet-theme-turva.is-current .duet-step-counter,.duet-theme-turva.is-disabled .duet-step-counter{background-color:rgb(198, 12, 48)}.is-incomplete .duet-step-counter{background-color:rgb(98, 121, 138)}.duet-theme-turva.is-incomplete .duet-step-counter{background-color:rgb(143, 147, 158)}.duet-step-icon{display:flex;align-items:center;justify-content:center;width:16px;height:16px}@media (min-width: 36em){.duet-step-icon{width:20px;height:20px}}.duet-step-icon duet-icon{width:16px;height:16px}@media (min-width: 36em){.duet-step-icon duet-icon{width:20px;height:20px}}@media (min-width: 36em){.duet-step-content-wrapper{min-height:20px;padding-left:40px;margin-left:19px;border-left:2px solid rgb(212, 223, 229)}.duet-theme-turva .duet-step-content-wrapper{border-color:rgb(222, 224, 228)}:host(:last-of-type) .duet-step-content-wrapper{min-height:0;border:transparent}}.duet-step-content{display:none;padding-bottom:16px}@media (min-width: 36em){.duet-step-content{padding-bottom:28px}}.is-current .duet-step-content{display:block}.duet-step-heading-slot{display:none;margin-top:2px}@media (min-width: 48em){.duet-step-heading-slot{display:block}}';const c=class{constructor(i){t(this,i),this.duetStepChange=e(this,"duetStepChange",7),this.theme="",this.accessibleLive="Lista jossa {total} kohtaa. Olet kohdassa {current}.",this.margin="auto",this.backDisabled=!1,this.selected=0}currentStepChanged(t){if(isNaN(t))throw new Error(`step must be a number. got: ${t}`);if(t<0)throw new Error(`step must be not be less than zero. got: ${t}`);if(t>this.getSteps().length)throw new Error("step must not exceed total number of steps");this.updateStepState(),setTimeout((()=>this.setStepFocus()),50)}currentStepInvokedDisable(){this.updateStepState()}onDuetStepClick(t){this.duetStepChange.emit({fromStep:this.selected,toStep:t.detail.stepIndex,component:"duet-stepper"})}componentWillLoad(){a(this)}async connectedCallback(){this.updateStepState()}getSteps(){return Array.from(this.element.querySelectorAll("duet-step"))}setStepFocus(){this.getSteps()[this.selected].setFocus()}updateStepState(){const t=this.getSteps();t.forEach(((t,e)=>{let i;i=e<this.selected?this.backDisabled?"disabled":"complete":e>this.selected?"incomplete":"current",t.theme=this.theme,t.state=i,t.stepIndex=e}));const e=function(t,e){const i={};return e.forEach((t=>{const e=t.state;i[e]||(i[e]=[]),i[e].push(t)})),i}(0,t);Object.values(e).forEach((t=>{t.forEach(((e,i)=>{e.roundedTop=0===i,e.roundedBottom=i===t.length-1}))}))}formatAnnouncement(){const t=this.getSteps(),e=(this.selected+1).toString(10),i=t.length.toString(10);return this.accessibleLive.replace("{current}",e).replace("{total}",i)}render(){return i(o,{key:"22b196db710cbed3e8ad8b4dd0650c115a3f88d5",class:{"duet-m-0":"none"===this.margin}},i("div",{key:"a0285f6474768b1dd10b9ed222a69f1d3bdcba88",class:{"duet-stepper":!0,"duet-theme-turva":"turva"===this.theme}},i("duet-visually-hidden",{key:"bf50d57a713aa062329cc40685b7441e31dc892c","aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement()),i("slot",{key:"fb7bb222787bd590d30cce8f5619cc8c30c1f4b4"})))}get element(){return r(this)}static get watchers(){return{selected:["currentStepChanged"],backDisabled:["currentStepInvokedDisable"]}}};c.style=":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;width:100%}:host(.duet-m-0){margin:0 !important}.duet-stepper{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}@media (min-width: 36em){.duet-stepper{padding:28px !important;padding-top:36px !important;padding-bottom:36px !important;background:rgb(255, 255, 255);border-radius:4px;box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}}";export{u as duet_step,c as duet_stepper}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{h as o}from"./p-fbc91093.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-4dcb6a39.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
- System.register(["./p-7f554f9f.system.js","./p-e216bea4.system.js","./p-34d7dd10.system.js","./p-037e9404.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,i,a,r,n,s,o,c,d,b,u;return{setters:[function(e){t=e.r;i=e.h;a=e.H;r=e.g},function(e){n=e.i},function(e){s=e.s;o=e.u},function(e){c=e.a;d=e.c;b=e.d;u=e.g},function(){}],execute:function(){var l={title:"action-arrow-right-small",tags:"action arrow right small caret",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M19.5 12a2.3 2.3 0 0 1-.78 1.729L7.568 23.54a1.847 1.847 0 0 1-2.439-2.773l9.752-8.579a.25.25 0 0 0 0-.376L5.129 3.233A1.847 1.847 0 0 1 7.568.46l11.148 9.808A2.31 2.31 0 0 1 19.5 12z"/></svg>'};var h="*,*::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;display:list-item;width:auto}.container{display:flex;gap:8px;align-items:center}.hide{display:none}.duet-breadrumbs-arrow{display:block;align-items:center;justify-content:center;width:0.375rem;min-width:0.375rem;height:0.375rem;min-height:0.375rem}.duet-breadcrumb{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;height:100%;font-size:0.875rem;font-weight:inherit;line-height:1.25;color:inherit;text-decoration:none}.duet-breadcrumb:focus{outline:0}:host(.user-is-tabbing) .duet-breadcrumb:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-breadcrumb.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}";var f=h;var m=e("duet_breadcrumb",function(){function e(e){t(this,e);this.currentCrumb={fi:"disabled. Nykyinen sivu",sv:"disabled. Visa mer",en:"disabled. Nuvarande sida"};this.hasSlottedContent=false;this.theme="";this.language=c();this.href="";this.icon="arrow-right-small-icon";this.iconSize="x-small";this.accessibleLabel=undefined}e.prototype.componentWillLoad=function(){n(this)};e.prototype.connectedCallback=function(){d(this);s(this);this.hasSlottedContent=Array.from(this.element.childNodes).length>0};e.prototype.disconnectedCallback=function(){b(this);o(this)};e.prototype.render=function(){var e;return i(a,{key:"5507d8811565f6ba44aa8ac7cdcfd80af38b17be",role:"listitem"},i("div",{key:"f81a05e3ff108ac5a6951c7f43fd918e9b72348c",class:"container"},this.icon==="arrow-right-small-icon"&&i("duet-icon",{key:"2b55ec337f3592b5a5bab62730e88792a9b031fc",class:"duet-breadrumbs-arrow",size:"auto",icon:l.svg,margin:"none",color:"currentColor"}),i("a",{key:"2d355db059be9572e3bee4af2976d52e3cb8b032",class:{"duet-breadcrumb":true,"duet-theme-turva":this.theme==="turva"},href:this.href?this.href:undefined,"aria-label":"".concat(!this.href?"".concat(u(this.currentCrumb)," "):"").concat((e=this.accessibleLabel)!==null&&e!==void 0?e:this.element.innerHTML),role:"link"},this.icon!=="arrow-right-small-icon"&&this.icon&&[i("duet-icon",{key:"0d905f6b5a31c16ed0710b929692deab65a012df",size:this.iconSize,name:this.icon,margin:"none",color:"currentColor"}),this.hasSlottedContent&&i("duet-spacer",{key:"149a01e2cc3fcf4278eb88881a600ed588231dfb",size:"x-small",direction:"horizontal"})],i("slot",{key:"c9100d96b29f13b0827855cf280a2f2d8adbe956"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());m.style=f}}}));
4
+ System.register(["./p-2cdacb01.system.js","./p-e216bea4.system.js","./p-752fa0fc.system.js","./p-447e1392.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,i,r,a,n,s,o,c,d,u,l;return{setters:[function(e){t=e.r;i=e.h;r=e.H;a=e.g},function(e){n=e.i},function(e){s=e.s;o=e.u},function(e){c=e.a;d=e.c;u=e.d;l=e.g},function(){}],execute:function(){var b={title:"action-arrow-right-small",tags:"action arrow right small caret",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M19.5 12a2.3 2.3 0 0 1-.78 1.729L7.568 23.54a1.847 1.847 0 0 1-2.439-2.773l9.752-8.579a.25.25 0 0 0 0-.376L5.129 3.233A1.847 1.847 0 0 1 7.568.46l11.148 9.808A2.31 2.31 0 0 1 19.5 12z"/></svg>'};var h="*,*::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;display:list-item;width:auto}.container{display:flex;gap:8px;align-items:center}.hide{display:none}.duet-breadrumbs-arrow{display:block;align-items:center;justify-content:center;width:0.375rem;min-width:0.375rem;height:0.375rem;min-height:0.375rem}.duet-breadcrumb{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;height:100%;font-size:0.875rem;font-weight:inherit;line-height:1.25;color:inherit;text-decoration:none}.duet-breadcrumb:focus{outline:0}:host(.user-is-tabbing) .duet-breadcrumb:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-breadcrumb.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}";var f=h;var m=e("duet_breadcrumb",function(){function e(e){t(this,e);this.currentCrumb={fi:"disabled. Nykyinen sivu",sv:"disabled. Visa mer",en:"disabled. Nuvarande sida"};this.hasSlottedContent=false;this.theme="";this.language=c();this.href="";this.icon="arrow-right-small-icon";this.iconSize="x-small";this.accessibleLabel=undefined}e.prototype.componentWillLoad=function(){n(this)};e.prototype.connectedCallback=function(){d(this);s(this);this.hasSlottedContent=Array.from(this.element.childNodes).length>0};e.prototype.disconnectedCallback=function(){u(this);o(this)};e.prototype.render=function(){var e;return i(r,{key:"86f359b6ae37d52eefe60d2524b28e90389853a3",role:"listitem"},i("div",{key:"a7e38d3f15c6b459db45ee75194892c626dda720",class:"container"},this.icon==="arrow-right-small-icon"&&i("duet-icon",{key:"271bc89989282bafdc1c02251786cc4ff9d29c94",class:"duet-breadrumbs-arrow",size:"auto",icon:b.svg,margin:"none",color:"currentColor"}),i("a",{key:"27e40d9d4b5213650880dc8fd347708c8074ba7b",class:{"duet-breadcrumb":true,"duet-theme-turva":this.theme==="turva"},href:this.href?this.href:undefined,"aria-label":"".concat(!this.href?"".concat(l(this.currentCrumb)," "):"").concat((e=this.accessibleLabel)!==null&&e!==void 0?e:this.element.innerHTML),role:"link"},this.icon!=="arrow-right-small-icon"&&this.icon&&[i("duet-icon",{key:"f7693293ba453f019340e643224ae2d4bc615892",size:this.iconSize,name:this.icon,margin:"none",color:"currentColor"}),this.hasSlottedContent&&i("duet-spacer",{key:"9f5a4594c9c261eb89dad2e969993c776a71dcec",size:"x-small",direction:"horizontal"})],i("slot",{key:"7103eb6d7c67af60d40d4eb4c01df8cb60d8f122"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());m.style=f}}}));
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(a,e,t,i){function d(a){return a instanceof t?a:new t((function(e){e(a)}))}return new(t||(t=Promise))((function(t,r){function n(a){try{p(i.next(a))}catch(a){r(a)}}function o(a){try{p(i["throw"](a))}catch(a){r(a)}}function p(a){a.done?t(a.value):d(a.value).then(n,o)}p((i=i.apply(a,e||[])).next())}))};var __generator=this&&this.__generator||function(a,e){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,d,r,n;return n={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(a){return function(e){return p([a,e])}}function p(o){if(i)throw new TypeError("Generator is already executing.");while(n&&(n=0,o[0]&&(t=0)),t)try{if(i=1,d&&(r=o[0]&2?d["return"]:o[0]?d["throw"]||((r=d["return"])&&r.call(d),0):d.next)&&!(r=r.call(d,o[1])).done)return r;if(d=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:t.label++;return{value:o[1],done:false};case 5:t.label++;d=o[1];o=[0];continue;case 7:o=t.ops.pop();t.trys.pop();continue;default:if(!(r=t.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){t.label=o[1];break}if(o[0]===6&&t.label<r[1]){t.label=r[1];r=o;break}if(r&&t.label<r[2]){t.label=r[2];t.ops.push(o);break}if(r[2])t.ops.pop();t.trys.pop();continue}o=e.call(a,t)}catch(a){o=[6,a];d=0}finally{i=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(a,e,t){if(t||arguments.length===2)for(var i=0,d=e.length,r;i<d;i++){if(r||!(i in e)){if(!r)r=Array.prototype.slice.call(e,0,i);r[i]=e[i]}}return a.concat(r||Array.prototype.slice.call(e))};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register(["./p-7f554f9f.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-34d7dd10.system.js","./p-45adef32.system.js","./p-98636086.system.js","./p-cbbf6d6a.system.js","./p-ef731dfb.system.js"],(function(a){"use strict";var e,t,i,d,r,n,o,p,m,s,c,x,u,h;return{setters:[function(a){e=a.r;t=a.c;i=a.h;d=a.F;r=a.H;n=a.g},function(a){o=a.i},function(a){p=a.c},function(a){m=a.i;s=a.s;c=a.u},function(a){x=a.g},function(a){u=a.s},function(a){h=a.g},function(){}],execute:function(){var l=["h1","h2","h3","h4","h5","h6"];var g="div";var f={title:"action-arrow-up",tags:"action arrow up caret",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.75 17.939a.752.752 0 0 1-.53-1.281L10.94 5.94c.283-.284.659-.44 1.059-.44.401 0 .777.156 1.06.438l10.721 10.72a.752.752 0 0 1-.53 1.281.743.743 0 0 1-.53-.22L12 7 1.28 17.719a.743.743 0 0 1-.53.22z"/></svg>'};var b='*,*::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:20px !important;display:flex;width:100%;vertical-align:top}:host(.duet-card-info){margin-bottom:16px !important}:host(.duet-m-0){margin:0 !important}.duet-card{padding:20px !important;position:relative;display:flex;flex-direction:column;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-style:normal;font-weight:400;line-height:1.5;color:rgb(8, 42, 77);text-decoration:none;border-radius:4px;box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-card.duet-p-0{padding:0 !important}.duet-card.duet-m-0{margin:0 !important}.duet-card:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-card:focus,.duet-card:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}@media (max-width: 20.5em){.duet-card.shadow-xxx-small{box-shadow:none}}@media (max-width: 22.5em){.duet-card.shadow-xx-small{box-shadow:none}}@media (max-width: 35.9375em){.duet-card.shadow-x-small{box-shadow:none}}@media (min-width: 36em){.duet-card.shadow-small{box-shadow:none}}@media (min-width: 48em){.duet-card.shadow-medium{box-shadow:none}}@media (min-width: 62em){.duet-card.shadow-large{box-shadow:none}}@media (min-width: 64.0625em){.duet-card.shadow-x-large{box-shadow:none}}@media (min-width: 76.25em){.duet-card.shadow-xx-large{box-shadow:none}}@media (min-width: 106.25em){.duet-card.shadow-xxx-large{box-shadow:none}}@media (min-width: 36em){.duet-card{padding:28px !important}}.duet-card.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);box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}@media (min-width: 36em){.duet-card.xx-small{padding:12px !important}}@media (min-width: 36em){.duet-card.x-small{padding:20px !important}}@media (min-width: 36em){.duet-card.medium{padding:28px !important}}@media (min-width: 48em){.duet-card.medium{padding:36px !important}}@media (min-width: 36em){.duet-card.large{padding:36px !important}}@media (min-width: 48em){.duet-card.large{padding:48px !important}}@media (min-width: 36em){.duet-card.x-large{padding:48px !important}}@media (min-width: 48em){.duet-card.x-large{padding:72px !important}}.duet-card.duet-card-collapsed{padding-bottom:0 !important}@media (min-width: 36em){.duet-card.duet-card-collapsed{padding-bottom:0 !important}}.duet-card.info{background:rgba(4, 81, 128, 0.04) !important;box-shadow:none}.duet-card.info.duet-theme-turva{background:rgba(23, 28, 58, 0.035) !important}.duet-card.plain{box-shadow:none}.duet-card.plain:not(.duet-card-has-bg){background:transparent !important}.duet-card-heading-grid{display:flex;flex-direction:row}.duet-card-icon{align-self:center}.duet-card-heading-text{flex:1;word-break:break-word}.duet-card-secondary-heading{font-size:1rem;font-weight:600;word-break:break-word}.duet-card-secondary-heading--inline{display:block;flex:1;align-self:flex-start;line-height:1.875;text-align:right}@media (max-width: 22.5em){.duet-card-secondary-heading--inline{display:none}}.duet-card-secondary-heading--new-line{display:none}@media (max-width: 22.5em){.duet-card-secondary-heading--new-line{display:block}}.duet-card-heading{position:relative;display:block;padding:16px 20px;margin:-20px -20px 20px;overflow:hidden;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:1.25rem;font-weight:800;color:rgb(8, 42, 77);border-bottom:1px solid rgb(212, 223, 229);border-radius:4px 4px 0 0}@media (min-width: 36em){.duet-card-heading{padding:15px 28px 16px !important;margin:-28px -28px 20px}.none .duet-card-heading{padding:0 !important;margin:0}}.duet-card-image-mask+.duet-card-heading{border-radius:0}.duet-card-heading.duet-card-heading--collapsible{cursor:pointer}.duet-card-heading.duet-card-heading--collapsible button{width:100%;font-family:inherit;font-size:inherit;font-weight:inherit;color:inherit;text-align:left;cursor:pointer}.duet-card-heading.duet-card-heading--collapsible button:focus{outline:0}:host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus{border-radius:4px;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-card-heading.duet-card-heading--collapsible button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-card-collapsed .duet-card-heading{margin-bottom:0 !important;border-bottom:0 !important}.duet-theme-turva .duet-card-heading{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);border-color:rgb(222, 224, 228)}@media (min-width: 36em){.xx-small .duet-card-heading{padding:6px 12px 7px !important;margin:-12px -12px 12px}}@media (min-width: 48em){.xx-small .duet-card-heading{padding:6px 12px 7px !important;margin:-12px -12px 12px}}@media (min-width: 36em){.x-small .duet-card-heading{padding:10px 20px 11px !important;margin:-20px -20px 20px}}@media (min-width: 48em){.x-small .duet-card-heading{padding:10px 20px 11px !important;margin:-20px -20px 20px}}.medium .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.medium .duet-card-heading{padding:15px 28px 16px !important;margin:-28px -28px 20px}}@media (min-width: 48em){.medium .duet-card-heading{padding:19px 36px 20px !important;margin:-36px -36px 28px}}.large .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.large .duet-card-heading{padding:19px 36px 20px !important;margin:-36px -36px 28px}}@media (min-width: 48em){.large .duet-card-heading{padding:26px 48px 27px !important;margin:-48px -48px 36px}}.x-large .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.x-large .duet-card-heading{padding:26px 48px 27px !important;margin:-48px -48px 36px}}@media (min-width: 48em){.x-large .duet-card-heading{padding:39px 72px 40px !important;margin:-72px -72px 48px}}.none .duet-card-heading{padding:0;margin:0}.duet-card-footer{padding:20px;margin:20px -20px -20px;font-size:0.875rem;line-height:1.25;background:rgb(245, 248, 250);border-bottom-right-radius:4px;border-bottom-left-radius:4px}.duet-theme-turva .duet-card-footer{background:rgb(245, 247, 250)}@media (min-width: 36em){.duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){.duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 36em){.xx-small .duet-card-footer{padding:10px 20px 11px !important;padding-left:12px !important;margin:12px -12px -12px}}@media (min-width: 36em){.x-small .duet-card-footer{padding:15px 28px 16px !important;padding-left:20px !important;margin:20px -20px -20px}}@media (min-width: 36em){.medium .duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){.medium .duet-card-footer{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 36em){.large .duet-card-footer{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 48em){.large .duet-card-footer{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 36em){.x-large .duet-card-footer{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 48em){.x-large .duet-card-footer{padding:39px 72px 40px !important;margin:48px -72px -72px}}.none .duet-card-footer{padding:0;margin:0}.duet-card-content{flex:1 1 auto;width:100%}.duet-card-collapsed .duet-card-content{display:none}.duet-card-caret{position:relative;top:6px;align-self:flex-start;transition:300ms ease}[aria-expanded=false] .duet-card-caret{transform:rotate(-180deg)}.duet-card-image-mask{position:relative;width:calc(100% + 40px);margin:-20px 0 20px -20px;overflow:hidden;border-top-left-radius:4px;border-top-right-radius:4px}@media (min-width: 36em){.small .duet-card-image-mask{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 36em){.medium .duet-card-image-mask{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 48em){.medium .duet-card-image-mask{width:calc(100% + 72px);margin:-36px 0 28px -36px}}@media (min-width: 36em){.large .duet-card-image-mask{width:calc(100% + 72px);margin:-36px 0 36px -36px}}@media (min-width: 48em){.large .duet-card-image-mask{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 36em){.x-large .duet-card-image-mask{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 48em){.x-large .duet-card-image-mask{width:calc(100% + 144px);margin:-72px 0 36px -72px}}.none .duet-card-image-mask{width:100%;padding:0;margin:0}.duet-card-image{display:block;width:102%;min-width:1px;max-width:102%;height:auto;min-height:1px;margin-left:-1%;transition:transform 300ms ease;transform:scale(1.0001)}a.duet-card{transition:box-shadow 300ms ease, background-position 300ms ease}a.duet-card:hover{box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(0, 41, 77, 0.1)}a.duet-card:hover .duet-card-image{transform:scale(1.024)}.duet-theme-turva a.duet-card:hover{box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(117, 117, 117, 0.15)}a.duet-card:active{transition:none;transform:translateY(1px)}';var w=b;var y=a("duet_card",function(){function a(a){var i=this;e(this,a);this.duetToggle=t(this,"duetToggle",7);this.cardId=p("DuetCard");this.togglePanel=function(a){a.preventDefault();i.open=!i.open;i.duetToggle.emit({component:"duet-card",originalEvent:a})};this.handleKeyDown=function(a){if(m(a)){i.togglePanel(a)}};this.accessibleLabel=undefined;this.heading="";this.secondaryHeading="";this.variation="default";this.collapsible=false;this.open=true;this.headingLevel="h2";this.headingBackground=undefined;this.icon=undefined;this.image=undefined;this.background="gray-lightest";this.padding="small";this.margin="auto";this.theme="";this.url=undefined;this.shadowBreakpoint=undefined}a.prototype.componentWillLoad=function(){o(this);this.hasHeadingSlot=!!this.element.querySelector(":scope > [slot='heading']");this.hasFooter=!!this.element.querySelector("[slot='footer']")};a.prototype.connectedCallback=function(){s(this)};a.prototype.disconnectedCallback=function(){c(this)};a.prototype.renderHeading=function(){var a;var e=u(this.headingLevel);var t=__spreadArray(__spreadArray([],l,true),[g],false).some((function(a){return a===e}))?e:"h2";var r={backgroundColor:h(this.headingBackground)};var n=i(d,null,i("div",{class:"duet-card-heading-grid"},this.icon&&i(d,null,i("duet-icon",{class:"duet-card-icon",name:this.icon,size:"medium",margin:"none",color:"currentColor"}),i("duet-spacer",{direction:"horizontal",size:"small"})),i("div",{class:"duet-card-heading-text"},this.heading?this.heading:i("slot",{name:"heading"})),this.secondaryHeading&&i(d,null,i("duet-spacer",{direction:"horizontal",size:"small"}),i("div",{class:"duet-card-secondary-heading duet-card-secondary-heading--inline"},this.secondaryHeading)),this.collapsible&&i(d,null,i("duet-spacer",{direction:"horizontal",size:"small"}),i("duet-icon",{class:"duet-card-caret",icon:f.svg,size:"small",margin:"none",color:"currentColor"}))),this.secondaryHeading&&i("div",{class:"duet-card-secondary-heading duet-card-secondary-heading--new-line"},this.secondaryHeading),i("slot",{name:"below-heading"}));if(this.collapsible){var o=(a=x(this.element,"heading"))===null||a===void 0?void 0:a.map((function(a){return a.textContent})).join(" ");return i(t,{style:r,class:"duet-card-heading duet-card-heading--collapsible",onClick:this.togglePanel,onKeyDown:this.handleKeyDown},i("button",{type:"button","aria-controls":this.cardId,"aria-expanded":this.open?"true":"false","aria-label":o},n))}else{return i(t,{style:r,class:"duet-card-heading"},n)}};a.prototype.setFocus=function(a){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.nativeCard){this.nativeCard.focus(a)}return[2]}))}))};a.prototype.render=function(){var a;var e=this;var t=this.url?"a":"div";var d={backgroundColor:h(this.background)};return i(r,{key:"81af7af276b2b67f13855aa9e11bd95e8abeaa2d",class:{"duet-m-0":this.margin==="none","duet-card-info":this.variation==="info"}},i(t,{key:"9c121ca16ed478f72e8c5976cc73499de2c48de2",href:this.url,style:d,ref:function(a){return e.nativeCard=a},"aria-label":this.accessibleLabel,class:(a={"duet-card":true},a[this.padding]=true,a[this.variation]=true,a["shadow-".concat(this.shadowBreakpoint)]=!!this.shadowBreakpoint,a["duet-p-0"]=this.padding==="none",a["duet-theme-turva"]=this.theme==="turva",a["duet-card-has-bg"]=this.background!=="gray-lightest",a["duet-card-has-icon"]=!!this.icon,a["duet-card-collapsed"]=this.collapsible&&!this.open,a)},this.image&&i("div",{key:"370ab67ee9e9e00267dfe6a034d9258fc41deb9c",class:"duet-card-image-mask"},i("img",{key:"f93b70812e33b71f9057b5a890baba36894012ea",src:this.image,class:"duet-card-image",loading:"lazy",alt:"","aria-hidden":"true"})),(this.heading||this.hasHeadingSlot)&&this.renderHeading(),i("div",{key:"64b6d8e1e2d02085fa6101f54cf95f15c6c4e3b8",class:"duet-card-content",id:this.cardId},i("slot",{key:"9a20c3971a53038f5786c9321214cd2dc19bdcef"}),this.hasFooter&&i("div",{key:"5009d44d6ffb5c7d6774a0c22664979d84a12561",class:"duet-card-footer"},i("slot",{key:"e177a2f18a636b5e6c093150e52614e56ad56c68",name:"footer"})))))};Object.defineProperty(a.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return a}());y.style=w}}}));
4
+ */System.register(["./p-2cdacb01.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-752fa0fc.system.js","./p-5c58f1d6.system.js","./p-98636086.system.js","./p-cbbf6d6a.system.js","./p-ef731dfb.system.js"],(function(a){"use strict";var e,t,i,d,r,n,o,p,m,s,c,x,u,h;return{setters:[function(a){e=a.r;t=a.c;i=a.h;d=a.F;r=a.H;n=a.g},function(a){o=a.i},function(a){p=a.c},function(a){m=a.i;s=a.s;c=a.u},function(a){x=a.g},function(a){u=a.s},function(a){h=a.g},function(){}],execute:function(){var l=["h1","h2","h3","h4","h5","h6"];var g="div";var f={title:"action-arrow-up",tags:"action arrow up caret",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.75 17.939a.752.752 0 0 1-.53-1.281L10.94 5.94c.283-.284.659-.44 1.059-.44.401 0 .777.156 1.06.438l10.721 10.72a.752.752 0 0 1-.53 1.281.743.743 0 0 1-.53-.22L12 7 1.28 17.719a.743.743 0 0 1-.53.22z"/></svg>'};var b='*,*::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:20px !important;display:flex;width:100%;vertical-align:top}:host(.duet-card-info){margin-bottom:16px !important}:host(.duet-m-0){margin:0 !important}.duet-card{padding:20px !important;position:relative;display:flex;flex-direction:column;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-style:normal;font-weight:400;line-height:1.5;color:rgb(8, 42, 77);text-decoration:none;border-radius:4px;box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-card.duet-p-0{padding:0 !important}.duet-card.duet-m-0{margin:0 !important}.duet-card:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-card:focus,.duet-card:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}@media (max-width: 20.5em){.duet-card.shadow-xxx-small{box-shadow:none}}@media (max-width: 22.5em){.duet-card.shadow-xx-small{box-shadow:none}}@media (max-width: 35.9375em){.duet-card.shadow-x-small{box-shadow:none}}@media (min-width: 36em){.duet-card.shadow-small{box-shadow:none}}@media (min-width: 48em){.duet-card.shadow-medium{box-shadow:none}}@media (min-width: 62em){.duet-card.shadow-large{box-shadow:none}}@media (min-width: 64.0625em){.duet-card.shadow-x-large{box-shadow:none}}@media (min-width: 76.25em){.duet-card.shadow-xx-large{box-shadow:none}}@media (min-width: 106.25em){.duet-card.shadow-xxx-large{box-shadow:none}}@media (min-width: 36em){.duet-card{padding:28px !important}}.duet-card.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);box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}@media (min-width: 36em){.duet-card.xx-small{padding:12px !important}}@media (min-width: 36em){.duet-card.x-small{padding:20px !important}}@media (min-width: 36em){.duet-card.medium{padding:28px !important}}@media (min-width: 48em){.duet-card.medium{padding:36px !important}}@media (min-width: 36em){.duet-card.large{padding:36px !important}}@media (min-width: 48em){.duet-card.large{padding:48px !important}}@media (min-width: 36em){.duet-card.x-large{padding:48px !important}}@media (min-width: 48em){.duet-card.x-large{padding:72px !important}}.duet-card.duet-card-collapsed{padding-bottom:0 !important}@media (min-width: 36em){.duet-card.duet-card-collapsed{padding-bottom:0 !important}}.duet-card.info{background:rgba(4, 81, 128, 0.04) !important;box-shadow:none}.duet-card.info.duet-theme-turva{background:rgba(23, 28, 58, 0.035) !important}.duet-card.plain{box-shadow:none}.duet-card.plain:not(.duet-card-has-bg){background:transparent !important}.duet-card-heading-grid{display:flex;flex-direction:row}.duet-card-icon{align-self:center}.duet-card-heading-text{flex:1;word-break:break-word}.duet-card-secondary-heading{font-size:1rem;font-weight:600;word-break:break-word}.duet-card-secondary-heading--inline{display:block;flex:1;align-self:flex-start;line-height:1.875;text-align:right}@media (max-width: 22.5em){.duet-card-secondary-heading--inline{display:none}}.duet-card-secondary-heading--new-line{display:none}@media (max-width: 22.5em){.duet-card-secondary-heading--new-line{display:block}}.duet-card-heading{position:relative;display:block;padding:16px 20px;margin:-20px -20px 20px;overflow:hidden;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:1.25rem;font-weight:800;color:rgb(8, 42, 77);border-bottom:1px solid rgb(212, 223, 229);border-radius:4px 4px 0 0}@media (min-width: 36em){.duet-card-heading{padding:15px 28px 16px !important;margin:-28px -28px 20px}.none .duet-card-heading{padding:0 !important;margin:0}}.duet-card-image-mask+.duet-card-heading{border-radius:0}.duet-card-heading.duet-card-heading--collapsible{cursor:pointer}.duet-card-heading.duet-card-heading--collapsible button{width:100%;font-family:inherit;font-size:inherit;font-weight:inherit;color:inherit;text-align:left;cursor:pointer}.duet-card-heading.duet-card-heading--collapsible button:focus{outline:0}:host(.user-is-tabbing) .duet-card-heading.duet-card-heading--collapsible button:focus{border-radius:4px;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-card-heading.duet-card-heading--collapsible button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-card-collapsed .duet-card-heading{margin-bottom:0 !important;border-bottom:0 !important}.duet-theme-turva .duet-card-heading{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);border-color:rgb(222, 224, 228)}@media (min-width: 36em){.xx-small .duet-card-heading{padding:6px 12px 7px !important;margin:-12px -12px 12px}}@media (min-width: 48em){.xx-small .duet-card-heading{padding:6px 12px 7px !important;margin:-12px -12px 12px}}@media (min-width: 36em){.x-small .duet-card-heading{padding:10px 20px 11px !important;margin:-20px -20px 20px}}@media (min-width: 48em){.x-small .duet-card-heading{padding:10px 20px 11px !important;margin:-20px -20px 20px}}.medium .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.medium .duet-card-heading{padding:15px 28px 16px !important;margin:-28px -28px 20px}}@media (min-width: 48em){.medium .duet-card-heading{padding:19px 36px 20px !important;margin:-36px -36px 28px}}.large .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.large .duet-card-heading{padding:19px 36px 20px !important;margin:-36px -36px 28px}}@media (min-width: 48em){.large .duet-card-heading{padding:26px 48px 27px !important;margin:-48px -48px 36px}}.x-large .duet-card-heading{margin:-20px -20px 20px}@media (min-width: 36em){.x-large .duet-card-heading{padding:26px 48px 27px !important;margin:-48px -48px 36px}}@media (min-width: 48em){.x-large .duet-card-heading{padding:39px 72px 40px !important;margin:-72px -72px 48px}}.none .duet-card-heading{padding:0;margin:0}.duet-card-footer{padding:20px;margin:20px -20px -20px;font-size:0.875rem;line-height:1.25;background:rgb(245, 248, 250);border-bottom-right-radius:4px;border-bottom-left-radius:4px}.duet-theme-turva .duet-card-footer{background:rgb(245, 247, 250)}@media (min-width: 36em){.duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){.duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 36em){.xx-small .duet-card-footer{padding:10px 20px 11px !important;padding-left:12px !important;margin:12px -12px -12px}}@media (min-width: 36em){.x-small .duet-card-footer{padding:15px 28px 16px !important;padding-left:20px !important;margin:20px -20px -20px}}@media (min-width: 36em){.medium .duet-card-footer{padding:15px 28px 16px !important;margin:20px -28px -28px}}@media (min-width: 48em){.medium .duet-card-footer{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 36em){.large .duet-card-footer{padding:19px 36px 20px !important;margin:28px -36px -36px}}@media (min-width: 48em){.large .duet-card-footer{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 36em){.x-large .duet-card-footer{padding:26px 48px 27px !important;margin:36px -48px -48px}}@media (min-width: 48em){.x-large .duet-card-footer{padding:39px 72px 40px !important;margin:48px -72px -72px}}.none .duet-card-footer{padding:0;margin:0}.duet-card-content{flex:1 1 auto;width:100%}.duet-card-collapsed .duet-card-content{display:none}.duet-card-caret{position:relative;top:6px;align-self:flex-start;transition:300ms ease}[aria-expanded=false] .duet-card-caret{transform:rotate(-180deg)}.duet-card-image-mask{position:relative;width:calc(100% + 40px);margin:-20px 0 20px -20px;overflow:hidden;border-top-left-radius:4px;border-top-right-radius:4px}@media (min-width: 36em){.small .duet-card-image-mask{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 36em){.medium .duet-card-image-mask{width:calc(100% + 56px);margin:-28px 0 28px -28px}}@media (min-width: 48em){.medium .duet-card-image-mask{width:calc(100% + 72px);margin:-36px 0 28px -36px}}@media (min-width: 36em){.large .duet-card-image-mask{width:calc(100% + 72px);margin:-36px 0 36px -36px}}@media (min-width: 48em){.large .duet-card-image-mask{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 36em){.x-large .duet-card-image-mask{width:calc(100% + 96px);margin:-48px 0 36px -48px}}@media (min-width: 48em){.x-large .duet-card-image-mask{width:calc(100% + 144px);margin:-72px 0 36px -72px}}.none .duet-card-image-mask{width:100%;padding:0;margin:0}.duet-card-image{display:block;width:102%;min-width:1px;max-width:102%;height:auto;min-height:1px;margin-left:-1%;transition:transform 300ms ease;transform:scale(1.0001)}a.duet-card{transition:box-shadow 300ms ease, background-position 300ms ease}a.duet-card:hover{box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(0, 41, 77, 0.1)}a.duet-card:hover .duet-card-image{transform:scale(1.024)}.duet-theme-turva a.duet-card:hover{box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(117, 117, 117, 0.15)}a.duet-card:active{transition:none;transform:translateY(1px)}';var w=b;var y=a("duet_card",function(){function a(a){var i=this;e(this,a);this.duetToggle=t(this,"duetToggle",7);this.cardId=p("DuetCard");this.togglePanel=function(a){a.preventDefault();i.open=!i.open;i.duetToggle.emit({component:"duet-card",originalEvent:a})};this.handleKeyDown=function(a){if(m(a)){i.togglePanel(a)}};this.accessibleLabel=undefined;this.heading="";this.secondaryHeading="";this.variation="default";this.collapsible=false;this.open=true;this.headingLevel="h2";this.headingBackground=undefined;this.icon=undefined;this.image=undefined;this.background="gray-lightest";this.padding="small";this.margin="auto";this.theme="";this.url=undefined;this.shadowBreakpoint=undefined}a.prototype.componentWillLoad=function(){o(this);this.hasHeadingSlot=!!this.element.querySelector(":scope > [slot='heading']");this.hasFooter=!!this.element.querySelector("[slot='footer']")};a.prototype.connectedCallback=function(){s(this)};a.prototype.disconnectedCallback=function(){c(this)};a.prototype.renderHeading=function(){var a;var e=u(this.headingLevel);var t=__spreadArray(__spreadArray([],l,true),[g],false).some((function(a){return a===e}))?e:"h2";var r={backgroundColor:h(this.headingBackground)};var n=i(d,null,i("div",{class:"duet-card-heading-grid"},this.icon&&i(d,null,i("duet-icon",{class:"duet-card-icon",name:this.icon,size:"medium",margin:"none",color:"currentColor"}),i("duet-spacer",{direction:"horizontal",size:"small"})),i("div",{class:"duet-card-heading-text"},this.heading?this.heading:i("slot",{name:"heading"})),this.secondaryHeading&&i(d,null,i("duet-spacer",{direction:"horizontal",size:"small"}),i("div",{class:"duet-card-secondary-heading duet-card-secondary-heading--inline"},this.secondaryHeading)),this.collapsible&&i(d,null,i("duet-spacer",{direction:"horizontal",size:"small"}),i("duet-icon",{class:"duet-card-caret",icon:f.svg,size:"small",margin:"none",color:"currentColor"}))),this.secondaryHeading&&i("div",{class:"duet-card-secondary-heading duet-card-secondary-heading--new-line"},this.secondaryHeading),i("slot",{name:"below-heading"}));if(this.collapsible){var o=(a=x(this.element,"heading"))===null||a===void 0?void 0:a.map((function(a){return a.textContent})).join(" ");return i(t,{style:r,class:"duet-card-heading duet-card-heading--collapsible",onClick:this.togglePanel,onKeyDown:this.handleKeyDown},i("button",{type:"button","aria-controls":this.cardId,"aria-expanded":this.open?"true":"false","aria-label":o},n))}else{return i(t,{style:r,class:"duet-card-heading"},n)}};a.prototype.setFocus=function(a){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.nativeCard){this.nativeCard.focus(a)}return[2]}))}))};a.prototype.render=function(){var a;var e=this;var t=this.url?"a":"div";var d={backgroundColor:h(this.background)};return i(r,{key:"81af7af276b2b67f13855aa9e11bd95e8abeaa2d",class:{"duet-m-0":this.margin==="none","duet-card-info":this.variation==="info"}},i(t,{key:"9c121ca16ed478f72e8c5976cc73499de2c48de2",href:this.url,style:d,ref:function(a){return e.nativeCard=a},"aria-label":this.accessibleLabel,class:(a={"duet-card":true},a[this.padding]=true,a[this.variation]=true,a["shadow-".concat(this.shadowBreakpoint)]=!!this.shadowBreakpoint,a["duet-p-0"]=this.padding==="none",a["duet-theme-turva"]=this.theme==="turva",a["duet-card-has-bg"]=this.background!=="gray-lightest",a["duet-card-has-icon"]=!!this.icon,a["duet-card-collapsed"]=this.collapsible&&!this.open,a)},this.image&&i("div",{key:"370ab67ee9e9e00267dfe6a034d9258fc41deb9c",class:"duet-card-image-mask"},i("img",{key:"f93b70812e33b71f9057b5a890baba36894012ea",src:this.image,class:"duet-card-image",loading:"lazy",alt:"","aria-hidden":"true"})),(this.heading||this.hasHeadingSlot)&&this.renderHeading(),i("div",{key:"64b6d8e1e2d02085fa6101f54cf95f15c6c4e3b8",class:"duet-card-content",id:this.cardId},i("slot",{key:"9a20c3971a53038f5786c9321214cd2dc19bdcef"}),this.hasFooter&&i("div",{key:"5009d44d6ffb5c7d6774a0c22664979d84a12561",class:"duet-card-footer"},i("slot",{key:"e177a2f18a636b5e6c093150e52614e56ad56c68",name:"footer"})))))};Object.defineProperty(a.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return a}());y.style=w}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as t,h as i,H as s,g as e}from"./p-fbc91093.js";import{m as o,a}from"./p-f6000a03.js";import{c as h,f as n,s as l,a as p,b as r}from"./p-81287261.js";import{i as d}from"./p-aaa7a7bd.js";import{c}from"./p-5e59e970.js";import{f as m}from"./p-a1b7f2a0.js";import{a as u,g as b,c as f,d as v}from"./p-6aa58c2c.js";import"./p-9c3c64b9.js";const g=class{constructor(i){t(this,i),this.mql=[window.matchMedia(o.replace(/'/g,"")),window.matchMedia(a.replace(/'/g,""))],this.tooltipId=c("DuetTooltip"),this.aboutString={fi:"aiheesta",en:"about",sv:"om"},this.openTooltip=()=>{this.active=!0,setTimeout((()=>{this.contentEl.focus({preventScroll:!0}),this.buttonActive=!0}),200)},this.closeTooltip=(t=!1)=>{this.active=!1,t&&setTimeout((()=>{this.buttonEl.setFocus({preventScroll:!0})}),200),setTimeout((()=>{this.buttonActive=!1})),setTimeout((()=>{this.updatePlacement()}),200)},this.toggleOpen=()=>{this.active?this.closeTooltip():this.openTooltip()},this.updatePlacement=async()=>{var t,i;let s=!0;("large"!==this.breakpoint||this.mql[1].matches)&&("medium"!==this.breakpoint||this.mql[0].matches)||(s=!1);let e=s?"top-start":"top-end";"left"===this.direction?e="top-end":"right"===this.direction&&(e="top-start");const o=await h(this.buttonEl,this.popupElement,{placement:e,middleware:[n(),l({padding:5}),p({element:this.arrowEl})]});this.tooltipY=o.y,this.tooltipX=o.x,this.placement=o.placement,this.arrowY=null===(t=o.middlewareData.arrow)||void 0===t?void 0:t.y,this.arrowX=null===(i=o.middlewareData.arrow)||void 0===i?void 0:i.x},this.placement="bottom",this.tooltipY=void 0,this.tooltipX=void 0,this.arrowX=void 0,this.arrowY=void 0,this.buttonActive=void 0,this.theme="",this.language=u(),this.accessibleLabelDefault={fi:"Näytä lisätietoja",en:"Show more information",sv:"Visa mer tilläggsuppgifter"},this.accessibleLabel=b(this.accessibleLabelDefault,this.language),this.accessibleAboutLabel=void 0,this.accessibleInputLabel=void 0,this.accessibleCloseLabelDefault={fi:"Sulje lisätiedot",en:"Close details",sv:"Stäng tilläggsuppgifter"},this.accessibleCloseLabel=b(this.accessibleCloseLabelDefault,this.language),this.label="",this.breakpoint="medium",this.direction="auto",this.positionVertical="0",this.positionHorizontal="0",this.active=!1,this.negative=!1}componentWillLoad(){d(this),this.buttonActive=this.active}async componentDidLoad(){this.arrowEl=await this.popupElement.getArrowElement(),this.contentEl=await this.popupElement.getContentElement(),this.updatePlacement(),this.active&&(this.openTooltip(),await this.handleActiveChange(this.active)),this.intersectionObserver=new IntersectionObserver(this.updatePlacement,{root:document.body}),this.intersectionObserver.observe(this.element)}connectedCallback(){f(this,[{prop:"accessibleLabel",defaults:"accessibleLabelDefault"},{prop:"accessibleCloseLabel",defaults:"accessibleCloseLabelDefault"}])}disconnectedCallback(){v(this)}handleDocumentClick(t){this.active&&t.composedPath().every((t=>t!==this.element&&t!==this.contentEl))&&this.closeTooltip()}handleKeyDown(t){this.active&&m(t)&&this.closeTooltip(!0)}handlePopupClose(){this.active&&this.closeTooltip(!0)}async handleActiveChange(t){t?this.autoUpdateCleanup=r(this.buttonEl,this.popupElement,this.updatePlacement):this.autoUpdateCleanup()}render(){const t={position:"relative",overflow:this.active?"visible":"hidden"},e={top:`${this.tooltipY}px`,left:`${this.tooltipX}px`,display:"block","pointer-events":this.active?"auto":"none"},o={top:this.arrowY?`${this.arrowY}px`:void 0,left:this.arrowX?`${this.arrowX}px`:void 0};return i(s,{style:{transform:`translateY(${this.positionVertical}) translateX(${this.positionHorizontal})`,zIndex:this.active?"201":""}},i("duet-tooltip-button",{ref:t=>this.buttonEl=t,active:this.buttonActive,tooltipId:this.tooltipId,label:this.label,accessibleLabel:this.accessibleInputLabel&&`${this.accessibleInputLabel}, ${this.accessibleLabel}`||this.accessibleAboutLabel&&`${this.accessibleLabel} ${this.aboutString[this.language]} ${this.accessibleAboutLabel}`||this.accessibleLabel,onClick:this.toggleOpen,theme:this.theme,negative:this.negative}),i("div",{style:t},i("duet-tooltip-popup",{ref:t=>this.popupElement=t,active:this.active,tooltipId:this.tooltipId,arrowStyles:o,style:e,placement:this.placement,accessibleCloseLabel:this.accessibleCloseLabel,theme:this.theme},i("slot",null))))}get element(){return e(this)}static get watchers(){return{active:["handleActiveChange"]}}};g.style="*.sc-duet-tooltip,*.sc-duet-tooltip::after,*.sc-duet-tooltip::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-tooltip-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;z-index:200;display:inline-flex;width:auto;margin-top:-16px !important;margin-left:-3px !important;-webkit-tap-highlight-color:transparent}duet-tooltip-button.sc-duet-tooltip{position:relative}duet-tooltip-popup.sc-duet-tooltip{position:absolute}";export{g as duet_tooltip}
4
+ import{r as t,h as i,H as s,g as e}from"./p-4dcb6a39.js";import{m as o,a}from"./p-f6000a03.js";import{c as h,f as n,s as l,a as p,b as r}from"./p-81287261.js";import{i as d}from"./p-aaa7a7bd.js";import{c}from"./p-5e59e970.js";import{f as m}from"./p-a45e3f8b.js";import{a as u,g as b,c as f,d as v}from"./p-3afaf734.js";import"./p-9c3c64b9.js";const g=class{constructor(i){t(this,i),this.mql=[window.matchMedia(o.replace(/'/g,"")),window.matchMedia(a.replace(/'/g,""))],this.tooltipId=c("DuetTooltip"),this.aboutString={fi:"aiheesta",en:"about",sv:"om"},this.openTooltip=()=>{this.active=!0,setTimeout((()=>{this.contentEl.focus({preventScroll:!0}),this.buttonActive=!0}),200)},this.closeTooltip=(t=!1)=>{this.active=!1,t&&setTimeout((()=>{this.buttonEl.setFocus({preventScroll:!0})}),200),setTimeout((()=>{this.buttonActive=!1})),setTimeout((()=>{this.updatePlacement()}),200)},this.toggleOpen=()=>{this.active?this.closeTooltip():this.openTooltip()},this.updatePlacement=async()=>{var t,i;let s=!0;("large"!==this.breakpoint||this.mql[1].matches)&&("medium"!==this.breakpoint||this.mql[0].matches)||(s=!1);let e=s?"top-start":"top-end";"left"===this.direction?e="top-end":"right"===this.direction&&(e="top-start");const o=await h(this.buttonEl,this.popupElement,{placement:e,middleware:[n(),l({padding:5}),p({element:this.arrowEl})]});this.tooltipY=o.y,this.tooltipX=o.x,this.placement=o.placement,this.arrowY=null===(t=o.middlewareData.arrow)||void 0===t?void 0:t.y,this.arrowX=null===(i=o.middlewareData.arrow)||void 0===i?void 0:i.x},this.placement="bottom",this.tooltipY=void 0,this.tooltipX=void 0,this.arrowX=void 0,this.arrowY=void 0,this.buttonActive=void 0,this.theme="",this.language=u(),this.accessibleLabelDefault={fi:"Näytä lisätietoja",en:"Show more information",sv:"Visa mer tilläggsuppgifter"},this.accessibleLabel=b(this.accessibleLabelDefault,this.language),this.accessibleAboutLabel=void 0,this.accessibleInputLabel=void 0,this.accessibleCloseLabelDefault={fi:"Sulje lisätiedot",en:"Close details",sv:"Stäng tilläggsuppgifter"},this.accessibleCloseLabel=b(this.accessibleCloseLabelDefault,this.language),this.label="",this.breakpoint="medium",this.direction="auto",this.positionVertical="0",this.positionHorizontal="0",this.active=!1,this.negative=!1}componentWillLoad(){d(this),this.buttonActive=this.active}async componentDidLoad(){this.arrowEl=await this.popupElement.getArrowElement(),this.contentEl=await this.popupElement.getContentElement(),this.updatePlacement(),this.active&&(this.openTooltip(),await this.handleActiveChange(this.active)),this.intersectionObserver=new IntersectionObserver(this.updatePlacement,{root:document.body}),this.intersectionObserver.observe(this.element)}connectedCallback(){f(this,[{prop:"accessibleLabel",defaults:"accessibleLabelDefault"},{prop:"accessibleCloseLabel",defaults:"accessibleCloseLabelDefault"}])}disconnectedCallback(){v(this)}handleDocumentClick(t){this.active&&t.composedPath().every((t=>t!==this.element&&t!==this.contentEl))&&this.closeTooltip()}handleKeyDown(t){this.active&&m(t)&&this.closeTooltip(!0)}handlePopupClose(){this.active&&this.closeTooltip(!0)}async handleActiveChange(t){t?this.autoUpdateCleanup=r(this.buttonEl,this.popupElement,this.updatePlacement):this.autoUpdateCleanup()}render(){const t={position:"relative",overflow:this.active?"visible":"hidden"},e={top:`${this.tooltipY}px`,left:`${this.tooltipX}px`,display:"block","pointer-events":this.active?"auto":"none"},o={top:this.arrowY?`${this.arrowY}px`:void 0,left:this.arrowX?`${this.arrowX}px`:void 0};return i(s,{style:{transform:`translateY(${this.positionVertical}) translateX(${this.positionHorizontal})`,zIndex:this.active?"201":""}},i("duet-tooltip-button",{ref:t=>this.buttonEl=t,active:this.buttonActive,tooltipId:this.tooltipId,label:this.label,accessibleLabel:this.accessibleInputLabel&&`${this.accessibleInputLabel}, ${this.accessibleLabel}`||this.accessibleAboutLabel&&`${this.accessibleLabel} ${this.aboutString[this.language]} ${this.accessibleAboutLabel}`||this.accessibleLabel,onClick:this.toggleOpen,theme:this.theme,negative:this.negative}),i("div",{style:t},i("duet-tooltip-popup",{ref:t=>this.popupElement=t,active:this.active,tooltipId:this.tooltipId,arrowStyles:o,style:e,placement:this.placement,accessibleCloseLabel:this.accessibleCloseLabel,theme:this.theme},i("slot",null))))}get element(){return e(this)}static get watchers(){return{active:["handleActiveChange"]}}};g.style="*.sc-duet-tooltip,*.sc-duet-tooltip::after,*.sc-duet-tooltip::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-tooltip-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;z-index:200;display:inline-flex;width:auto;margin-top:-16px !important;margin-left:-3px !important;-webkit-tap-highlight-color:transparent}duet-tooltip-button.sc-duet-tooltip{position:relative}duet-tooltip-popup.sc-duet-tooltip{position:absolute}";export{g as duet_tooltip}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- System.register(["./p-7f554f9f.system.js","./p-98636086.system.js"],(function(n){"use strict";var r;return{setters:[function(){},function(n){r=n.c}],execute:function(){var t={fi:"fi-FI",en:"en-GB",us:"en-US",sv:"sv-SE"};var e={fi:"€",en:"£",us:"$",sv:"€"};var i=["fi","en","sv"];var a="fi";var u=function(){return document.documentElement.lang?document.documentElement.lang.toLowerCase():a};var o=function(n){return i.includes(n)};var f=function(n){if(n===void 0){n=u()}if(o(n)){return n}else{return a}};var c=n("a",(function(n){if(n===void 0){n=u()}return f(n)}));var s=n("b",(function(n){var r={locale:t[n],money:e[n]};if(r.locale&&r.money){return r}throw new Error('Locale for "'.concat(n,'" not found'))}));var v=n("s",(function(n){var t=typeof n==="string";if(t){try{return JSON.parse(r(n))}catch(r){console.log("sanitizeString received a string, that didnt parse to json object",n,r)}}return n}));var d=n("g",(function(n,r){var t=v(n);if(r){return t[f(r)]}else{return t[c()]}}));var l=new Set;var g=new WeakMap;var m=function(n){var r=a;for(var t=0,e=n;t<e.length;t++){var i=e[t];if(i.type==="attributes"&&i.attributeName==="lang"){r=i.oldValue;break}}if(document.documentElement.dataset.duetLangObserve!=="false"){l.forEach((function(n){if(n.language){n.language=c()}if(g.has(n)){g.get(n).forEach((function(t){if(n[t.defaults]&&n[t.prop]===n[t.defaults][r]){n[t.prop]=d(n[t.defaults])}}))}}))}};{var p=new MutationObserver(m);p.observe(document.documentElement,{attributeFilter:["lang"],attributeOldValue:true})}var b=n("c",(function(n,r){l.add(n);if(r){if(!Array.isArray(r)){r=[r]}if(r.some((function(r){return!(r.prop in n)||!(r.defaults in n)}))){console.error("connectLanguageChangeObserver: component must have target.prop and target.defaults properties");r=r.filter((function(r){return r.prop in n&&r.defaults in n}))}g.set(n,r)}}));var y=n("d",(function(n){l.delete(n);g.delete(n)}))}}}));
4
+ System.register(["./p-2cdacb01.system.js","./p-98636086.system.js"],(function(n){"use strict";var r;return{setters:[function(){},function(n){r=n.c}],execute:function(){var t={fi:"fi-FI",en:"en-GB",us:"en-US",sv:"sv-SE"};var e={fi:"€",en:"£",us:"$",sv:"€"};var i=["fi","en","sv"];var a="fi";var u=function(){return document.documentElement.lang?document.documentElement.lang.toLowerCase():a};var o=function(n){return i.includes(n)};var f=function(n){if(n===void 0){n=u()}if(o(n)){return n}else{return a}};var c=n("a",(function(n){if(n===void 0){n=u()}return f(n)}));var s=n("b",(function(n){var r={locale:t[n],money:e[n]};if(r.locale&&r.money){return r}throw new Error('Locale for "'.concat(n,'" not found'))}));var v=n("s",(function(n){var t=typeof n==="string";if(t){try{return JSON.parse(r(n))}catch(r){console.log("sanitizeString received a string, that didnt parse to json object",n,r)}}return n}));var d=n("g",(function(n,r){var t=v(n);if(r){return t[f(r)]}else{return t[c()]}}));var l=new Set;var g=new WeakMap;var m=function(n){var r=a;for(var t=0,e=n;t<e.length;t++){var i=e[t];if(i.type==="attributes"&&i.attributeName==="lang"){r=i.oldValue;break}}if(document.documentElement.dataset.duetLangObserve!=="false"){l.forEach((function(n){if(n.language){n.language=c()}if(g.has(n)){g.get(n).forEach((function(t){if(n[t.defaults]&&n[t.prop]===n[t.defaults][r]){n[t.prop]=d(n[t.defaults])}}))}}))}};{var p=new MutationObserver(m);p.observe(document.documentElement,{attributeFilter:["lang"],attributeOldValue:true})}var b=n("c",(function(n,r){l.add(n);if(r){if(!Array.isArray(r)){r=[r]}if(r.some((function(r){return!(r.prop in n)||!(r.defaults in n)}))){console.error("connectLanguageChangeObserver: component must have target.prop and target.defaults properties");r=r.filter((function(r){return r.prop in n&&r.defaults in n}))}g.set(n,r)}}));var y=n("d",(function(n){l.delete(n);g.delete(n)}))}}}));