@duetds/components 10.0.0-alpha.7 → 10.0.0-alpha.9

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 (748) hide show
  1. package/hydrate/index.js +2340 -255
  2. package/lib/cjs/{a11y-utils-660f6fc9.js → a11y-utils-be617c0c.js} +1 -1
  3. package/lib/cjs/{app-globals-041a56ca.js → app-globals-2b7fff72.js} +1 -1
  4. package/lib/cjs/duet-action-button.cjs.entry.js +2 -2
  5. package/lib/cjs/duet-alert.cjs.entry.js +3 -3
  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 +6 -6
  9. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +4 -4
  10. package/lib/cjs/duet-button_2.cjs.entry.js +10 -10
  11. package/lib/cjs/duet-callout.cjs.entry.js +4 -4
  12. package/lib/cjs/duet-caption_4.cjs.entry.js +11 -10
  13. package/lib/cjs/duet-card.cjs.entry.js +2 -2
  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 → duet-chip.cjs.entry.js} +3 -375
  17. package/lib/cjs/duet-choice_2.cjs.entry.js +11 -11
  18. package/lib/cjs/duet-collapsible.cjs.entry.js +4 -4
  19. package/lib/cjs/duet-combobox.cjs.entry.js +3 -3
  20. package/lib/cjs/duet-contact-card.cjs.entry.js +4 -4
  21. package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
  22. package/lib/cjs/duet-date-picker.cjs.entry.js +7 -7
  23. package/lib/cjs/duet-divider_2.cjs.entry.js +3 -3
  24. package/lib/cjs/duet-editable-table_3.cjs.entry.js +9 -9
  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 +7 -7
  29. package/lib/cjs/duet-grid_2.cjs.entry.js +5 -5
  30. package/lib/cjs/duet-header_2.cjs.entry.js +3 -3
  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 +11 -11
  34. package/lib/cjs/duet-layout.cjs.entry.js +8 -8
  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 +3 -3
  38. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +5 -5
  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 +6 -5
  42. package/lib/cjs/duet-modal.cjs.entry.js +10 -10
  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 +6 -6
  46. package/lib/cjs/duet-number-input.cjs.entry.js +5 -5
  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 +15 -15
  50. package/lib/cjs/duet-phone-input.cjs.entry.js +2002 -0
  51. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +426 -0
  52. package/lib/cjs/duet-progress.cjs.entry.js +2 -2
  53. package/lib/cjs/duet-promo-card.cjs.entry.js +4 -4
  54. package/lib/cjs/duet-radio_2.cjs.entry.js +6 -6
  55. package/lib/cjs/duet-range-slider.cjs.entry.js +5 -5
  56. package/lib/cjs/duet-scrollable_3.cjs.entry.js +33 -21
  57. package/lib/cjs/duet-section-layout.cjs.entry.js +5 -5
  58. package/lib/cjs/duet-select.cjs.entry.js +8 -8
  59. package/lib/cjs/duet-shaped-image.cjs.entry.js +3 -3
  60. package/lib/cjs/duet-show-more.cjs.entry.js +4 -4
  61. package/lib/cjs/duet-slideout-lang.cjs.entry.js +3 -3
  62. package/lib/cjs/duet-slideout-link.cjs.entry.js +22 -4
  63. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +5 -5
  64. package/lib/cjs/duet-slideout-panel.cjs.entry.js +10 -10
  65. package/lib/cjs/duet-slideout.cjs.entry.js +8 -8
  66. package/lib/cjs/duet-status-icon.cjs.entry.js +3 -3
  67. package/lib/cjs/duet-step_2.cjs.entry.js +4 -4
  68. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +3 -3
  69. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +5 -5
  70. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +5 -5
  71. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +2 -2
  72. package/lib/cjs/duet-submenu-bar.cjs.entry.js +6 -6
  73. package/lib/cjs/duet-textarea.cjs.entry.js +7 -7
  74. package/lib/cjs/duet-toggle.cjs.entry.js +5 -5
  75. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +3 -3
  76. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +5 -5
  77. package/lib/cjs/duet-toolbar-item.cjs.entry.js +7 -7
  78. package/lib/cjs/duet-toolbar-link.cjs.entry.js +3 -3
  79. package/lib/cjs/duet-toolbar.cjs.entry.js +3 -3
  80. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +6 -6
  81. package/lib/cjs/duet-tooltip.cjs.entry.js +3 -3
  82. package/lib/cjs/duet-tray.cjs.entry.js +4 -4
  83. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
  84. package/lib/cjs/duet-upload-item.cjs.entry.js +5 -5
  85. package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
  86. package/lib/cjs/duet.cjs.js +3 -3
  87. package/lib/cjs/{errorcodes.utils-381e59b0.js → errorcodes.utils-e3a0f607.js} +1 -1
  88. package/lib/cjs/{focus-utils-8b057c75.js → focus-utils-47d23c45.js} +1 -1
  89. package/lib/cjs/{index-0885358e.js → index-7b1d76ef.js} +339 -2
  90. package/lib/cjs/{label-0db337c3.js → label-874fd84f.js} +1 -1
  91. package/lib/cjs/{language-utils-ae5d768d.js → language-utils-a6a152b8.js} +1 -1
  92. package/lib/cjs/loader.cjs.js +3 -3
  93. package/lib/cjs/{slot-utils-7cc4f68b.js → slot-utils-7e6aa48b.js} +1 -1
  94. package/lib/collection/collection-manifest.json +1 -0
  95. package/lib/collection/components/duet-badge/duet-badge.js +2 -2
  96. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
  97. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
  98. package/lib/collection/components/duet-button/duet-button.css +32 -18
  99. package/lib/collection/components/duet-button/duet-button.js +6 -6
  100. package/lib/collection/components/duet-callout/duet-callout.js +2 -2
  101. package/lib/collection/components/duet-chip/duet-chip.js +1 -1
  102. package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
  103. package/lib/collection/components/duet-choice/duet-choice.js +6 -6
  104. package/lib/collection/components/duet-choice-group/duet-choice-group.js +2 -2
  105. package/lib/collection/components/duet-collapsible/duet-collapsible.js +2 -2
  106. package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
  107. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
  108. package/lib/collection/components/duet-date-picker/duet-date-picker.js +2 -2
  109. package/lib/collection/components/duet-divider/duet-divider.js +1 -1
  110. package/lib/collection/components/duet-editable-table/duet-editable-table.js +2 -2
  111. package/lib/collection/components/duet-empty-state/duet-empty-state.js +2 -2
  112. package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
  113. package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
  114. package/lib/collection/components/duet-footer/duet-footer.js +4 -4
  115. package/lib/collection/components/duet-grid/duet-grid.js +2 -2
  116. package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
  117. package/lib/collection/components/duet-heading/duet-heading.js +22 -2
  118. package/lib/collection/components/duet-hero/duet-hero.js +5 -5
  119. package/lib/collection/components/duet-icon/duet-icon.js +3 -3
  120. package/lib/collection/components/duet-input/duet-input.css +34 -3
  121. package/lib/collection/components/duet-input/duet-input.js +9 -9
  122. package/lib/collection/components/duet-layout/duet-layout.css +0 -3
  123. package/lib/collection/components/duet-layout/duet-layout.js +5 -5
  124. package/lib/collection/components/duet-link/duet-link.js +2 -2
  125. package/lib/collection/components/duet-list/duet-list.js +1 -1
  126. package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
  127. package/lib/collection/components/duet-logo/duet-logo.js +1 -1
  128. package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +2 -2
  129. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +3 -2
  130. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
  131. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
  132. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
  133. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
  134. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
  135. package/lib/collection/components/duet-modal/duet-modal.js +6 -6
  136. package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
  137. package/lib/collection/components/duet-nav/duet-nav.js +1 -1
  138. package/lib/collection/components/duet-notification/duet-notification.js +2 -2
  139. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +2 -2
  140. package/lib/collection/components/duet-number-input/duet-number-input.js +2 -2
  141. package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
  142. package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
  143. package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
  144. package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
  145. package/lib/collection/components/duet-phone-input/duet-phone-input.css +20 -0
  146. package/lib/collection/components/duet-phone-input/duet-phone-input.js +777 -0
  147. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +73 -11
  148. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
  149. package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
  150. package/lib/collection/components/duet-radio/duet-radio.js +3 -3
  151. package/lib/collection/components/duet-radio-group/duet-radio-group.js +1 -1
  152. package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
  153. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
  154. package/lib/collection/components/duet-scrollable/duet-scrollable.css +14 -5
  155. package/lib/collection/components/duet-scrollable/duet-scrollable.js +16 -10
  156. package/lib/collection/components/duet-section-layout/duet-section-layout.css +0 -3
  157. package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
  158. package/lib/collection/components/duet-select/duet-select.js +5 -5
  159. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
  160. package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
  161. package/lib/collection/components/duet-slideout/duet-slideout.js +4 -4
  162. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
  163. package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +17 -2
  164. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +90 -2
  165. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
  166. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
  167. package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
  168. package/lib/collection/components/duet-spinner/duet-spinner.js +2 -2
  169. package/lib/collection/components/duet-status-icon/duet-status-icon.js +2 -2
  170. package/lib/collection/components/duet-step/duet-step.js +2 -2
  171. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  172. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
  173. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
  174. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
  175. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
  176. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
  177. package/lib/collection/components/duet-tab/duet-tab.js +2 -2
  178. package/lib/collection/components/duet-tab-group/duet-tab-group.js +11 -5
  179. package/lib/collection/components/duet-table/duet-table.js +2 -2
  180. package/lib/collection/components/duet-textarea/duet-textarea.js +3 -3
  181. package/lib/collection/components/duet-toggle/duet-toggle.js +2 -2
  182. package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
  183. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
  184. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
  185. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
  186. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
  187. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +2 -2
  188. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
  189. package/lib/collection/components/duet-tray/duet-tray.js +2 -2
  190. package/lib/collection/components/duet-upload/duet-upload.js +2 -2
  191. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
  192. package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
  193. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  194. package/lib/collection/data/countries.js +1762 -0
  195. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  196. package/lib/dist-custom-elements/duet-alert.js +1 -1
  197. package/lib/dist-custom-elements/duet-badge.js +1 -1
  198. package/lib/dist-custom-elements/duet-banner.js +3 -3
  199. package/lib/dist-custom-elements/duet-breadcrumb.js +7 -7
  200. package/lib/dist-custom-elements/duet-breadcrumbs.js +3 -3
  201. package/lib/dist-custom-elements/duet-button.js +1 -1
  202. package/lib/dist-custom-elements/duet-callout.js +4 -4
  203. package/lib/dist-custom-elements/duet-caption.js +1 -1
  204. package/lib/dist-custom-elements/duet-card.js +3 -3
  205. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  206. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  207. package/lib/dist-custom-elements/duet-chip.js +1 -1
  208. package/lib/dist-custom-elements/duet-choice-group.js +10 -10
  209. package/lib/dist-custom-elements/duet-choice.js +10 -10
  210. package/lib/dist-custom-elements/duet-collapsible.js +5 -5
  211. package/lib/dist-custom-elements/duet-combobox.js +14 -14
  212. package/lib/dist-custom-elements/duet-contact-card.js +10 -10
  213. package/lib/dist-custom-elements/duet-cookie-consent.js +7 -7
  214. package/lib/dist-custom-elements/duet-date-picker.js +14 -14
  215. package/lib/dist-custom-elements/duet-divider.js +1 -1
  216. package/lib/dist-custom-elements/duet-editable-table.js +9 -9
  217. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  218. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  219. package/lib/dist-custom-elements/duet-file-chooser.js +3 -3
  220. package/lib/dist-custom-elements/duet-footer.js +11 -11
  221. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  222. package/lib/dist-custom-elements/duet-grid.js +1 -1
  223. package/lib/dist-custom-elements/duet-header.js +8 -8
  224. package/lib/dist-custom-elements/duet-heading.js +1 -1
  225. package/lib/dist-custom-elements/duet-hero.js +14 -14
  226. package/lib/dist-custom-elements/duet-icon.js +1 -1
  227. package/lib/dist-custom-elements/duet-input.js +1 -1
  228. package/lib/dist-custom-elements/duet-label.js +1 -1
  229. package/lib/dist-custom-elements/duet-layout.js +7 -7
  230. package/lib/dist-custom-elements/duet-link.js +1 -1
  231. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  232. package/lib/dist-custom-elements/duet-list.js +1 -1
  233. package/lib/dist-custom-elements/duet-logo.js +1 -1
  234. package/lib/dist-custom-elements/duet-menu-bar-button.js +4 -4
  235. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +4 -4
  236. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +6 -6
  237. package/lib/dist-custom-elements/duet-menu-bar-item.js +4 -4
  238. package/lib/dist-custom-elements/duet-menu-bar-link.js +4 -4
  239. package/lib/dist-custom-elements/duet-menu-bar.js +6 -5
  240. package/lib/dist-custom-elements/duet-modal.js +14 -14
  241. package/lib/dist-custom-elements/duet-multiselect.js +13 -13
  242. package/lib/dist-custom-elements/duet-nav.js +2 -2
  243. package/lib/dist-custom-elements/duet-notification-drawer.js +6 -6
  244. package/lib/dist-custom-elements/duet-notification.js +4 -4
  245. package/lib/dist-custom-elements/duet-number-input.js +12 -12
  246. package/lib/dist-custom-elements/duet-overlay.js +1 -1
  247. package/lib/dist-custom-elements/duet-page-heading.js +5 -5
  248. package/lib/dist-custom-elements/duet-pagination.js +23 -23
  249. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  250. package/lib/dist-custom-elements/duet-phone-input.d.ts +11 -0
  251. package/lib/dist-custom-elements/duet-phone-input.js +2122 -0
  252. package/lib/dist-custom-elements/duet-popup-menu-item.js +1 -1
  253. package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
  254. package/lib/dist-custom-elements/duet-progress.js +1 -1
  255. package/lib/dist-custom-elements/duet-promo-card.js +5 -5
  256. package/lib/dist-custom-elements/duet-radio-group.js +9 -9
  257. package/lib/dist-custom-elements/duet-radio.js +4 -4
  258. package/lib/dist-custom-elements/duet-range-slider.js +3 -3
  259. package/lib/dist-custom-elements/duet-range-stepper.js +6 -6
  260. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  261. package/lib/dist-custom-elements/duet-section-layout.js +5 -5
  262. package/lib/dist-custom-elements/duet-select.js +1 -1
  263. package/lib/dist-custom-elements/duet-shaped-image.js +3 -3
  264. package/lib/dist-custom-elements/duet-show-more.js +1 -1
  265. package/lib/dist-custom-elements/duet-slideout-lang.js +3 -3
  266. package/lib/dist-custom-elements/duet-slideout-link.js +25 -6
  267. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +6 -6
  268. package/lib/dist-custom-elements/duet-slideout-panel.js +8 -8
  269. package/lib/dist-custom-elements/duet-slideout.js +7 -7
  270. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  271. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  272. package/lib/dist-custom-elements/duet-status-icon.js +4 -4
  273. package/lib/dist-custom-elements/duet-step.js +6 -6
  274. package/lib/dist-custom-elements/duet-stepper.js +3 -3
  275. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +4 -4
  276. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +6 -6
  277. package/lib/dist-custom-elements/duet-submenu-bar-item.js +3 -3
  278. package/lib/dist-custom-elements/duet-submenu-bar-link.js +3 -3
  279. package/lib/dist-custom-elements/duet-submenu-bar.js +8 -8
  280. package/lib/dist-custom-elements/duet-tab-group.js +18 -12
  281. package/lib/dist-custom-elements/duet-tab.js +3 -3
  282. package/lib/dist-custom-elements/duet-table.js +1 -1
  283. package/lib/dist-custom-elements/duet-textarea.js +12 -12
  284. package/lib/dist-custom-elements/duet-toggle.js +3 -3
  285. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +4 -4
  286. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +6 -6
  287. package/lib/dist-custom-elements/duet-toolbar-item.js +5 -5
  288. package/lib/dist-custom-elements/duet-toolbar-link.js +4 -4
  289. package/lib/dist-custom-elements/duet-toolbar.js +3 -3
  290. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  291. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  292. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  293. package/lib/dist-custom-elements/duet-tray.js +5 -5
  294. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  295. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  296. package/lib/dist-custom-elements/duet-upload.js +21 -21
  297. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  298. package/lib/dist-custom-elements/index.js +1 -1
  299. package/lib/dist-custom-elements/{p-eddef302.js → p-081025d8.js} +6 -4
  300. package/lib/dist-custom-elements/{p-a2ab7458.js → p-0871ccd4.js} +2 -2
  301. package/lib/dist-custom-elements/{p-4dd6ec0e.js → p-18248c41.js} +3 -3
  302. package/lib/dist-custom-elements/{p-46a8132e.js → p-196352e6.js} +2 -2
  303. package/lib/dist-custom-elements/{p-e8d53fc5.js → p-2768f969.js} +12 -12
  304. package/lib/dist-custom-elements/{p-d18fbbfb.js → p-30810e37.js} +2 -2
  305. package/lib/dist-custom-elements/{p-08eb05f7.js → p-3c70317f.js} +3 -3
  306. package/lib/dist-custom-elements/{p-4006af44.js → p-4150399b.js} +6 -6
  307. package/lib/dist-custom-elements/{p-7a8ebdb7.js → p-548610a6.js} +1 -1
  308. package/lib/dist-custom-elements/{p-076458c1.js → p-592cf939.js} +5 -5
  309. package/lib/dist-custom-elements/{p-66f05bd2.js → p-59782228.js} +3 -3
  310. package/lib/dist-custom-elements/{p-55b83dec.js → p-5d871374.js} +22 -16
  311. package/lib/dist-custom-elements/{p-1a76b580.js → p-5e91471a.js} +4 -4
  312. package/lib/dist-custom-elements/{p-b49e2890.js → p-60316b82.js} +3 -3
  313. package/lib/dist-custom-elements/{p-6560b415.js → p-63963e6b.js} +4 -4
  314. package/lib/dist-custom-elements/{p-e000047c.js → p-6620a58c.js} +16 -16
  315. package/lib/dist-custom-elements/{p-f4511d6b.js → p-77667998.js} +4 -4
  316. package/lib/dist-custom-elements/{p-90aadff1.js → p-77d42564.js} +2 -2
  317. package/lib/dist-custom-elements/{p-df4b16da.js → p-8258c05e.js} +2 -2
  318. package/lib/dist-custom-elements/{p-9a2ea7dc.js → p-8a840972.js} +3 -3
  319. package/lib/dist-custom-elements/{p-5882e967.js → p-8d263ac9.js} +5 -5
  320. package/lib/dist-custom-elements/{p-7cebe2aa.js → p-91cdfcdd.js} +3 -3
  321. package/lib/dist-custom-elements/{p-81287261.js → p-940f9ee8.js} +283 -1
  322. package/lib/dist-custom-elements/{p-4f9c1a9a.js → p-9e31e365.js} +12 -12
  323. package/lib/dist-custom-elements/{p-9bbe7263.js → p-9ee4d52e.js} +10 -10
  324. package/lib/dist-custom-elements/{p-87c8a780.js → p-a9b78a2b.js} +117 -14
  325. package/lib/dist-custom-elements/{p-d2152803.js → p-aaa95dbc.js} +3 -3
  326. package/lib/dist-custom-elements/{p-e9666ab6.js → p-b322feac.js} +3 -3
  327. package/lib/dist-custom-elements/{p-5d29fcaa.js → p-b632bf7b.js} +4 -4
  328. package/lib/dist-custom-elements/{p-f2b84f7d.js → p-ccee2b7f.js} +2 -2
  329. package/lib/dist-custom-elements/{p-3e99b7b2.js → p-df2458b1.js} +2 -2
  330. package/lib/dist-custom-elements/{p-7e262927.js → p-e58296e6.js} +3 -3
  331. package/lib/dist-custom-elements/{p-fbf01fef.js → p-ed1ef4c3.js} +3 -3
  332. package/lib/dist-custom-elements/{p-958921e7.js → p-ed6a907e.js} +1 -1
  333. package/lib/dist-custom-elements/{p-b5147f77.js → p-ed6f3abc.js} +7 -7
  334. package/lib/dist-custom-elements/{p-5e2fd812.js → p-ee0c73c3.js} +3 -3
  335. package/lib/dist-custom-elements/{p-f32d4b93.js → p-f4067b03.js} +1 -1
  336. package/lib/dist-custom-elements/{p-d2e75481.js → p-f6270dca.js} +4 -4
  337. package/lib/duet/duet.esm.js +1 -1
  338. package/lib/duet/duet.js +1 -1
  339. package/lib/duet/{p-d6568e05.entry.js → p-00556ef0.entry.js} +1 -1
  340. package/lib/duet/p-00e58acf.system.entry.js +4 -0
  341. package/lib/duet/p-02d914b6.system.js +4 -0
  342. package/lib/duet/p-03dfd146.system.entry.js +4 -0
  343. package/lib/duet/{p-61a0ad44.entry.js → p-043d8cac.entry.js} +1 -1
  344. package/lib/duet/p-078dc32d.system.js +4 -0
  345. package/lib/duet/{p-402af830.js → p-083bbc28.js} +1 -1
  346. package/lib/duet/{p-4d8136a6.system.entry.js → p-097593e0.system.entry.js} +1 -1
  347. package/lib/duet/{p-a94536d7.entry.js → p-12739ce5.entry.js} +1 -1
  348. package/lib/duet/{p-a8ed2473.system.entry.js → p-154681bc.system.entry.js} +1 -1
  349. package/lib/duet/{p-694cb5c7.system.entry.js → p-16bc0f6a.system.entry.js} +1 -1
  350. package/lib/duet/p-20a9379e.entry.js +4 -0
  351. package/lib/duet/{p-7e8e5ce0.system.entry.js → p-21124f63.system.entry.js} +1 -1
  352. package/lib/duet/{p-569d1162.entry.js → p-222fb4e2.entry.js} +1 -1
  353. package/lib/duet/{p-29b17590.entry.js → p-2306d206.entry.js} +1 -1
  354. package/lib/duet/{p-804d9390.system.entry.js → p-232405fe.system.entry.js} +1 -1
  355. package/lib/duet/{p-0e3bcaa9.entry.js → p-280babbe.entry.js} +1 -1
  356. package/lib/duet/{p-f1083113.system.entry.js → p-29cfae19.system.entry.js} +1 -1
  357. package/lib/duet/{p-de9c27d0.system.entry.js → p-2acb5228.system.entry.js} +1 -1
  358. package/lib/duet/{p-447e1392.system.js → p-2bb44297.system.js} +1 -1
  359. package/lib/duet/{p-5c3bb425.entry.js → p-2d3cfed7.entry.js} +1 -1
  360. package/lib/duet/{p-ca22effd.entry.js → p-2ea79237.entry.js} +1 -1
  361. package/lib/duet/{p-5013078d.system.entry.js → p-2f4a1c87.system.entry.js} +1 -1
  362. package/lib/duet/{p-273ee825.entry.js → p-30424dea.entry.js} +1 -1
  363. package/lib/duet/{p-ca8df590.system.entry.js → p-32f2bb6f.system.entry.js} +1 -1
  364. package/lib/duet/{p-f3463af2.entry.js → p-36d473db.entry.js} +1 -1
  365. package/lib/duet/{p-8e2ad162.entry.js → p-36e38e72.entry.js} +1 -1
  366. package/lib/duet/{p-357c0e81.system.entry.js → p-380e506a.system.entry.js} +1 -1
  367. package/lib/duet/{p-0887bb20.system.entry.js → p-3931d796.system.entry.js} +1 -1
  368. package/lib/duet/{p-73695b8f.entry.js → p-396397f0.entry.js} +1 -1
  369. package/lib/duet/{p-3f295c07.entry.js → p-39c8d5f4.entry.js} +1 -1
  370. package/lib/duet/{p-a27457ec.system.entry.js → p-3c43bf45.system.entry.js} +1 -1
  371. package/lib/duet/{p-361371c0.entry.js → p-3c548017.entry.js} +1 -1
  372. package/lib/duet/{p-cae73efd.system.entry.js → p-3edeecdd.system.entry.js} +2 -2
  373. package/lib/duet/{p-343293f9.system.entry.js → p-422bf802.system.entry.js} +1 -1
  374. package/lib/duet/{p-38e2ca53.system.entry.js → p-42789990.system.entry.js} +1 -1
  375. package/lib/duet/{p-01264667.entry.js → p-44ac35f1.entry.js} +1 -1
  376. package/lib/duet/{p-01ebc478.entry.js → p-49cbde53.entry.js} +1 -1
  377. package/lib/duet/{p-7ba22ad5.system.entry.js → p-49d89759.system.entry.js} +1 -1
  378. package/lib/duet/{p-713fb177.entry.js → p-4af1174c.entry.js} +1 -1
  379. package/lib/duet/p-4bbc1e3f.system.entry.js +4 -0
  380. package/lib/duet/{p-761c3bab.entry.js → p-4d228791.entry.js} +1 -1
  381. package/lib/duet/{p-6a255600.entry.js → p-4e095335.entry.js} +1 -1
  382. package/lib/duet/{p-7610cf8a.system.entry.js → p-4f872b2e.system.entry.js} +1 -1
  383. package/lib/duet/{p-3986c681.system.js → p-4f945200.system.js} +1 -1
  384. package/lib/duet/{p-db44b3b4.entry.js → p-4ffcbae2.entry.js} +1 -1
  385. package/lib/duet/{p-c5e2f011.system.entry.js → p-534baf68.system.entry.js} +1 -1
  386. package/lib/duet/{p-d5299653.entry.js → p-546cf344.entry.js} +1 -1
  387. package/lib/duet/{p-d1d1e439.system.entry.js → p-55b6ebd2.system.entry.js} +1 -1
  388. package/lib/duet/{p-eb28342c.system.entry.js → p-565c967d.system.entry.js} +1 -1
  389. package/lib/duet/{p-10ae39d7.system.entry.js → p-56d5d3bd.system.entry.js} +1 -1
  390. package/lib/duet/{p-1977033e.system.entry.js → p-570fd695.system.entry.js} +1 -1
  391. package/lib/duet/{p-7ff7d213.entry.js → p-597e4a0d.entry.js} +1 -1
  392. package/lib/duet/p-5a148896.entry.js +4 -0
  393. package/lib/duet/p-5a47d2bb.entry.js +4 -0
  394. package/lib/duet/p-5acfa4bf.entry.js +4 -0
  395. package/lib/duet/{p-a81137d2.entry.js → p-5b5a4a8f.entry.js} +1 -1
  396. package/lib/duet/{p-793a7e00.system.entry.js → p-5cbadb53.system.entry.js} +2 -2
  397. package/lib/duet/{p-c9fd4929.entry.js → p-5cc339cf.entry.js} +1 -1
  398. package/lib/duet/{p-b53f2401.entry.js → p-5d1a4238.entry.js} +1 -1
  399. package/lib/duet/{p-07da24e7.system.entry.js → p-5e01a303.system.entry.js} +1 -1
  400. package/lib/duet/{p-28e4efe1.system.entry.js → p-5f668b4a.system.entry.js} +1 -1
  401. package/lib/duet/p-5ffa7838.entry.js +4 -0
  402. package/lib/duet/{p-2cdacb01.system.js → p-61173f11.system.js} +1 -1
  403. package/lib/duet/p-622e1ffc.js +4 -0
  404. package/lib/duet/{p-b3302c2f.system.entry.js → p-64f2d5cf.system.entry.js} +1 -1
  405. package/lib/duet/p-650c6251.system.entry.js +4 -0
  406. package/lib/duet/{p-29d53ea5.system.entry.js → p-69e55527.system.entry.js} +1 -1
  407. package/lib/duet/p-6ac3b242.entry.js +4 -0
  408. package/lib/duet/{p-ce2dd921.entry.js → p-6ac7d70c.entry.js} +1 -1
  409. package/lib/duet/{p-20b6ae5f.system.entry.js → p-6c8f09c8.system.entry.js} +1 -1
  410. package/lib/duet/{p-74214cc5.system.entry.js → p-6eec1445.system.entry.js} +1 -1
  411. package/lib/duet/{p-d60846a0.entry.js → p-6fc78573.entry.js} +1 -1
  412. package/lib/duet/{p-cc2912ff.system.entry.js → p-705dbeac.system.entry.js} +1 -1
  413. package/lib/duet/{p-3042a585.entry.js → p-71a37f03.entry.js} +1 -1
  414. package/lib/duet/{p-e99d4ab0.system.entry.js → p-760919c7.system.entry.js} +1 -1
  415. package/lib/duet/p-7be5b9a7.js +4 -0
  416. package/lib/duet/{p-7980c7c7.system.entry.js → p-7c119b9b.system.entry.js} +1 -1
  417. package/lib/duet/p-7cd899ca.system.entry.js +4 -0
  418. package/lib/duet/p-7d5c5b60.entry.js +4 -0
  419. package/lib/duet/{p-b6859e60.system.entry.js → p-7ea9d8e4.system.entry.js} +1 -1
  420. package/lib/duet/{p-ea2e8887.system.entry.js → p-7fc6af46.system.entry.js} +1 -1
  421. package/lib/duet/{p-c779e3e1.entry.js → p-7fe5e652.entry.js} +1 -1
  422. package/lib/duet/{p-35d862a1.entry.js → p-86038989.entry.js} +1 -1
  423. package/lib/duet/{p-9f1f30d1.entry.js → p-872b746e.entry.js} +1 -1
  424. package/lib/duet/{p-d65bf655.entry.js → p-875d3971.entry.js} +1 -1
  425. package/lib/duet/p-88daf9bb.system.entry.js +4 -0
  426. package/lib/duet/p-89ac2008.system.entry.js +4 -0
  427. package/lib/duet/{p-8296c9c2.system.js → p-89cf1a91.system.js} +1 -1
  428. package/lib/duet/p-8cbd3dfd.entry.js +4 -0
  429. package/lib/duet/p-8d43c8cf.entry.js +4 -0
  430. package/lib/duet/{p-ad6532e2.entry.js → p-8f450e25.entry.js} +1 -1
  431. package/lib/duet/{p-031cd628.system.entry.js → p-907b42ae.system.entry.js} +1 -1
  432. package/lib/duet/{p-2bc7bfb8.system.entry.js → p-9183c04b.system.entry.js} +1 -1
  433. package/lib/duet/{p-a090e7f0.entry.js → p-91b68d54.entry.js} +1 -1
  434. package/lib/duet/{p-846abd90.system.entry.js → p-92d47024.system.entry.js} +1 -1
  435. package/lib/duet/{p-ab1b2d93.entry.js → p-939f268d.entry.js} +1 -1
  436. package/lib/duet/{p-3e294789.system.entry.js → p-93c115a9.system.entry.js} +1 -1
  437. package/lib/duet/{p-9d15f354.system.entry.js → p-943bf2b1.system.entry.js} +1 -1
  438. package/lib/duet/p-9592f6ba.entry.js +4 -0
  439. package/lib/duet/p-96d76a4b.entry.js +4 -0
  440. package/lib/duet/{p-982c17df.entry.js → p-9a57fac7.entry.js} +1 -1
  441. package/lib/duet/{p-841673c0.system.entry.js → p-9b16ba14.system.entry.js} +1 -1
  442. package/lib/duet/{p-8625602d.system.entry.js → p-9b61d7b9.system.entry.js} +2 -2
  443. package/lib/duet/p-9d429df0.system.entry.js +4 -0
  444. package/lib/duet/{p-e622420a.entry.js → p-9e5b11f7.entry.js} +1 -1
  445. package/lib/duet/{p-e7c85aa3.entry.js → p-9ee0f850.entry.js} +1 -1
  446. package/lib/duet/p-a083b91a.js +5 -0
  447. package/lib/duet/{p-794f26b0.system.entry.js → p-a11e1a80.system.entry.js} +1 -1
  448. package/lib/duet/p-a1e5f0d4.entry.js +4 -0
  449. package/lib/duet/{p-e24b7d0e.entry.js → p-a4b80c74.entry.js} +1 -1
  450. package/lib/duet/{p-0e32e0f3.entry.js → p-a7b0d8ce.entry.js} +1 -1
  451. package/lib/duet/{p-a4170fe7.system.js → p-abc0c9c6.system.js} +1 -1
  452. package/lib/duet/{p-f8c6c87c.system.entry.js → p-ad07b21e.system.entry.js} +1 -1
  453. package/lib/duet/{p-b7b88f43.system.entry.js → p-ad0d289a.system.entry.js} +1 -1
  454. package/lib/duet/{p-ead29805.entry.js → p-ad2b37b0.entry.js} +1 -1
  455. package/lib/duet/{p-c81c688f.system.entry.js → p-adc2d7ce.system.entry.js} +2 -2
  456. package/lib/duet/{p-adba09a3.entry.js → p-aef92a68.entry.js} +1 -1
  457. package/lib/duet/{p-28aee391.entry.js → p-b15523c2.entry.js} +1 -1
  458. package/lib/duet/{p-7433065d.system.entry.js → p-b17984d6.system.entry.js} +1 -1
  459. package/lib/duet/{p-4ce70915.entry.js → p-b2df3729.entry.js} +1 -1
  460. package/lib/duet/{p-6b8e825d.entry.js → p-b327a269.entry.js} +1 -1
  461. package/lib/duet/{p-b0ef5620.js → p-b33512d6.js} +1 -1
  462. package/lib/duet/{p-5c6fe96f.js → p-b3d6e031.js} +1 -1
  463. package/lib/duet/p-b48b58e1.entry.js +4 -0
  464. package/lib/duet/{p-924eebeb.system.entry.js → p-b8775dc1.system.entry.js} +1 -1
  465. package/lib/duet/{p-cb6f8369.entry.js → p-bbb92080.entry.js} +1 -1
  466. package/lib/duet/{p-36009a0d.entry.js → p-bd5b0381.entry.js} +1 -1
  467. package/lib/duet/{p-36602fe4.entry.js → p-bdb001df.entry.js} +1 -1
  468. package/lib/duet/{p-724d1682.entry.js → p-be097905.entry.js} +1 -1
  469. package/lib/duet/{p-619a6ecf.js → p-c118fad4.js} +1 -1
  470. package/lib/duet/{p-55183c9c.entry.js → p-c1483141.entry.js} +1 -1
  471. package/lib/duet/{p-78aa46d5.system.entry.js → p-c2e74c89.system.entry.js} +1 -1
  472. package/lib/duet/{p-289e20a4.entry.js → p-c40ee5d3.entry.js} +1 -1
  473. package/lib/duet/{p-7f60def8.entry.js → p-c480533b.entry.js} +1 -1
  474. package/lib/duet/{p-87a8eb57.entry.js → p-c487869c.entry.js} +1 -1
  475. package/lib/duet/{p-b8dbb46c.entry.js → p-c507caa0.entry.js} +1 -1
  476. package/lib/duet/{p-8406ca8e.entry.js → p-c58f3932.entry.js} +1 -1
  477. package/lib/duet/{p-65d0162b.system.entry.js → p-c5d88a34.system.entry.js} +1 -1
  478. package/lib/duet/{p-1b64118e.system.entry.js → p-c6bf2cc4.system.entry.js} +1 -1
  479. package/lib/duet/{p-f2d13294.system.entry.js → p-c6f29010.system.entry.js} +2 -2
  480. package/lib/duet/p-ca29569e.system.js +4 -0
  481. package/lib/duet/p-ca901ab9.entry.js +4 -0
  482. package/lib/duet/{p-1798db32.system.js → p-cdba12cc.system.js} +1 -1
  483. package/lib/duet/{p-0bd8ca70.entry.js → p-ce282523.entry.js} +1 -1
  484. package/lib/duet/{p-b1ac6254.system.entry.js → p-cebffd48.system.entry.js} +2 -2
  485. package/lib/duet/{p-2f701bd3.system.entry.js → p-cf2d66a9.system.entry.js} +1 -1
  486. package/lib/duet/p-cf511280.system.entry.js +4 -0
  487. package/lib/duet/{p-41f062e2.system.entry.js → p-d2875f04.system.entry.js} +1 -1
  488. package/lib/duet/{p-59be5b66.entry.js → p-d40b4a20.entry.js} +1 -1
  489. package/lib/duet/{p-610bd1be.entry.js → p-d4554cf2.entry.js} +1 -1
  490. package/lib/duet/{p-43415ad8.entry.js → p-d4ddd4d1.entry.js} +1 -1
  491. package/lib/duet/{p-0278c664.system.entry.js → p-d5317013.system.entry.js} +2 -2
  492. package/lib/duet/{p-c2f9a318.system.entry.js → p-d68e93e4.system.entry.js} +1 -1
  493. package/lib/duet/{p-28275d12.system.entry.js → p-d6a321fd.system.entry.js} +1 -1
  494. package/lib/duet/{p-56860e41.entry.js → p-d835a292.entry.js} +1 -1
  495. package/lib/duet/{p-3c1abeed.system.entry.js → p-d840dcdc.system.entry.js} +1 -1
  496. package/lib/duet/{p-acba28ca.system.entry.js → p-dac4bc08.system.entry.js} +1 -1
  497. package/lib/duet/{p-6d1f7659.system.entry.js → p-e0b83f6c.system.entry.js} +1 -1
  498. package/lib/duet/{p-2b1be22e.system.entry.js → p-e29d9d5b.system.entry.js} +1 -1
  499. package/lib/duet/{p-3afaf734.js → p-e3857119.js} +1 -1
  500. package/lib/duet/{p-7792b99b.system.entry.js → p-e45d4dc4.system.entry.js} +1 -1
  501. package/lib/duet/{p-b4d7d067.system.entry.js → p-e50214f5.system.entry.js} +2 -2
  502. package/lib/duet/p-e5229df1.entry.js +4 -0
  503. package/lib/duet/{p-9da6fbd0.system.entry.js → p-e7c3186e.system.entry.js} +2 -2
  504. package/lib/duet/p-e89a92a9.entry.js +4 -0
  505. package/lib/duet/{p-36282ff0.system.entry.js → p-eb02c981.system.entry.js} +1 -1
  506. package/lib/duet/{p-a2eb63af.system.entry.js → p-ed086770.system.entry.js} +2 -2
  507. package/lib/duet/{p-5ce6dbbb.system.entry.js → p-eebfe28d.system.entry.js} +1 -1
  508. package/lib/duet/{p-0e12e3b8.entry.js → p-ef520403.entry.js} +1 -1
  509. package/lib/duet/{p-dea429f9.entry.js → p-f0260e4c.entry.js} +1 -1
  510. package/lib/duet/{p-2f715679.system.entry.js → p-f07eace6.system.entry.js} +1 -1
  511. package/lib/duet/p-f1083d8c.system.entry.js +4 -0
  512. package/lib/duet/p-f10d7817.entry.js +4 -0
  513. package/lib/duet/{p-b3f0b1df.system.entry.js → p-f18245aa.system.entry.js} +1 -1
  514. package/lib/duet/p-f4063bd4.entry.js +4 -0
  515. package/lib/duet/{p-8f5c12c8.system.entry.js → p-f56098f1.system.entry.js} +1 -1
  516. package/lib/duet/p-f67921d2.system.entry.js +4 -0
  517. package/lib/duet/{p-4d46054e.system.entry.js → p-f7fe4161.system.entry.js} +1 -1
  518. package/lib/duet/{p-3a1a4161.entry.js → p-f97dd407.entry.js} +1 -1
  519. package/lib/duet/{p-505ef540.entry.js → p-fcfae4d6.entry.js} +1 -1
  520. package/lib/esm/{a11y-utils-7f48d84a.js → a11y-utils-c3a7fd7e.js} +1 -1
  521. package/lib/esm/{app-globals-8f12ab47.js → app-globals-e00fbe9c.js} +1 -1
  522. package/lib/esm/duet-action-button.entry.js +2 -2
  523. package/lib/esm/duet-alert.entry.js +3 -3
  524. package/lib/esm/duet-badge.entry.js +3 -3
  525. package/lib/esm/duet-banner.entry.js +2 -2
  526. package/lib/esm/duet-breadcrumb.entry.js +6 -6
  527. package/lib/esm/duet-breadcrumbs.entry.js +4 -4
  528. package/lib/esm/duet-button_2.entry.js +10 -10
  529. package/lib/esm/duet-callout.entry.js +4 -4
  530. package/lib/esm/duet-caption_4.entry.js +11 -10
  531. package/lib/esm/duet-card.entry.js +2 -2
  532. package/lib/esm/duet-checkbox.entry.js +1 -1
  533. package/lib/esm/duet-checkmark.entry.js +3 -3
  534. package/lib/esm/{duet-chip_3.entry.js → duet-chip.entry.js} +5 -375
  535. package/lib/esm/duet-choice_2.entry.js +11 -11
  536. package/lib/esm/duet-collapsible.entry.js +4 -4
  537. package/lib/esm/duet-combobox.entry.js +3 -3
  538. package/lib/esm/duet-contact-card.entry.js +4 -4
  539. package/lib/esm/duet-cookie-consent.entry.js +2 -2
  540. package/lib/esm/duet-date-picker.entry.js +7 -7
  541. package/lib/esm/duet-divider_2.entry.js +3 -3
  542. package/lib/esm/duet-editable-table_3.entry.js +9 -9
  543. package/lib/esm/duet-empty-state.entry.js +3 -3
  544. package/lib/esm/duet-fieldset.entry.js +5 -5
  545. package/lib/esm/duet-file-chooser.entry.js +2 -2
  546. package/lib/esm/duet-footer.entry.js +7 -7
  547. package/lib/esm/duet-grid_2.entry.js +5 -5
  548. package/lib/esm/duet-header_2.entry.js +3 -3
  549. package/lib/esm/duet-hero.entry.js +8 -8
  550. package/lib/esm/duet-icon.entry.js +4 -4
  551. package/lib/esm/duet-input_2.entry.js +11 -11
  552. package/lib/esm/duet-layout.entry.js +8 -8
  553. package/lib/esm/duet-list_2.entry.js +4 -4
  554. package/lib/esm/duet-menu-bar-button.entry.js +3 -3
  555. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +3 -3
  556. package/lib/esm/duet-menu-bar-dropdown.entry.js +5 -5
  557. package/lib/esm/duet-menu-bar-item.entry.js +6 -6
  558. package/lib/esm/duet-menu-bar-link.entry.js +3 -3
  559. package/lib/esm/duet-menu-bar.entry.js +6 -5
  560. package/lib/esm/duet-modal.entry.js +10 -10
  561. package/lib/esm/duet-multiselect.entry.js +9 -9
  562. package/lib/esm/duet-nav.entry.js +2 -2
  563. package/lib/esm/duet-notification_2.entry.js +6 -6
  564. package/lib/esm/duet-number-input.entry.js +5 -5
  565. package/lib/esm/duet-overlay.entry.js +2 -2
  566. package/lib/esm/duet-page-heading.entry.js +3 -3
  567. package/lib/esm/duet-pagination_2.entry.js +15 -15
  568. package/lib/esm/duet-phone-input.entry.js +1998 -0
  569. package/lib/esm/duet-popup-menu_2.entry.js +421 -0
  570. package/lib/esm/duet-progress.entry.js +2 -2
  571. package/lib/esm/duet-promo-card.entry.js +4 -4
  572. package/lib/esm/duet-radio_2.entry.js +6 -6
  573. package/lib/esm/duet-range-slider.entry.js +5 -5
  574. package/lib/esm/duet-scrollable_3.entry.js +33 -21
  575. package/lib/esm/duet-section-layout.entry.js +5 -5
  576. package/lib/esm/duet-select.entry.js +8 -8
  577. package/lib/esm/duet-shaped-image.entry.js +3 -3
  578. package/lib/esm/duet-show-more.entry.js +4 -4
  579. package/lib/esm/duet-slideout-lang.entry.js +3 -3
  580. package/lib/esm/duet-slideout-link.entry.js +22 -4
  581. package/lib/esm/duet-slideout-panel-dropdown.entry.js +5 -5
  582. package/lib/esm/duet-slideout-panel.entry.js +10 -10
  583. package/lib/esm/duet-slideout.entry.js +8 -8
  584. package/lib/esm/duet-status-icon.entry.js +3 -3
  585. package/lib/esm/duet-step_2.entry.js +4 -4
  586. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +3 -3
  587. package/lib/esm/duet-submenu-bar-dropdown.entry.js +5 -5
  588. package/lib/esm/duet-submenu-bar-item.entry.js +5 -5
  589. package/lib/esm/duet-submenu-bar-link.entry.js +2 -2
  590. package/lib/esm/duet-submenu-bar.entry.js +6 -6
  591. package/lib/esm/duet-textarea.entry.js +7 -7
  592. package/lib/esm/duet-toggle.entry.js +5 -5
  593. package/lib/esm/duet-toolbar-dropdown-link.entry.js +3 -3
  594. package/lib/esm/duet-toolbar-dropdown.entry.js +5 -5
  595. package/lib/esm/duet-toolbar-item.entry.js +7 -7
  596. package/lib/esm/duet-toolbar-link.entry.js +3 -3
  597. package/lib/esm/duet-toolbar.entry.js +3 -3
  598. package/lib/esm/duet-tooltip-button_2.entry.js +6 -6
  599. package/lib/esm/duet-tooltip.entry.js +3 -3
  600. package/lib/esm/duet-tray.entry.js +4 -4
  601. package/lib/esm/duet-upload-aria-status.entry.js +2 -2
  602. package/lib/esm/duet-upload-item.entry.js +5 -5
  603. package/lib/esm/duet-visually-hidden.entry.js +2 -2
  604. package/lib/esm/duet.js +4 -4
  605. package/lib/esm/{errorcodes.utils-66d99a23.js → errorcodes.utils-416994cc.js} +1 -1
  606. package/lib/esm/{focus-utils-b48493c9.js → focus-utils-7bc146cd.js} +1 -1
  607. package/lib/esm/{index-5a27eaf5.js → index-1a6cee61.js} +339 -2
  608. package/lib/esm/{label-00d35a2b.js → label-de5c8cbd.js} +1 -1
  609. package/lib/esm/{language-utils-2c1dd412.js → language-utils-8a9d5323.js} +1 -1
  610. package/lib/esm/loader.js +4 -4
  611. package/lib/esm/{slot-utils-8fc9fbbf.js → slot-utils-bf214ae5.js} +1 -1
  612. package/lib/esm-es5/{a11y-utils-7f48d84a.js → a11y-utils-c3a7fd7e.js} +1 -1
  613. package/lib/esm-es5/{app-globals-8f12ab47.js → app-globals-e00fbe9c.js} +1 -1
  614. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  615. package/lib/esm-es5/duet-alert.entry.js +1 -1
  616. package/lib/esm-es5/duet-badge.entry.js +1 -1
  617. package/lib/esm-es5/duet-banner.entry.js +1 -1
  618. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  619. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  620. package/lib/esm-es5/duet-button_2.entry.js +2 -2
  621. package/lib/esm-es5/duet-callout.entry.js +1 -1
  622. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  623. package/lib/esm-es5/duet-card.entry.js +1 -1
  624. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  625. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  626. package/lib/esm-es5/duet-chip.entry.js +4 -0
  627. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  628. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  629. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  630. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  631. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  632. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  633. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  634. package/lib/esm-es5/duet-editable-table_3.entry.js +2 -2
  635. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  636. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  637. package/lib/esm-es5/duet-file-chooser.entry.js +1 -1
  638. package/lib/esm-es5/duet-footer.entry.js +1 -1
  639. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  640. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  641. package/lib/esm-es5/duet-hero.entry.js +2 -2
  642. package/lib/esm-es5/duet-icon.entry.js +1 -1
  643. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  644. package/lib/esm-es5/duet-layout.entry.js +1 -1
  645. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  646. package/lib/esm-es5/duet-menu-bar-button.entry.js +2 -2
  647. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  648. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  649. package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
  650. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  651. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  652. package/lib/esm-es5/duet-modal.entry.js +1 -1
  653. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  654. package/lib/esm-es5/duet-nav.entry.js +1 -1
  655. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  656. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  657. package/lib/esm-es5/duet-overlay.entry.js +1 -1
  658. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  659. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  660. package/lib/esm-es5/duet-phone-input.entry.js +4 -0
  661. package/lib/esm-es5/duet-popup-menu_2.entry.js +4 -0
  662. package/lib/esm-es5/duet-progress.entry.js +1 -1
  663. package/lib/esm-es5/duet-promo-card.entry.js +1 -1
  664. package/lib/esm-es5/duet-radio_2.entry.js +2 -2
  665. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  666. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  667. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  668. package/lib/esm-es5/duet-select.entry.js +1 -1
  669. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  670. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  671. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  672. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  673. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  674. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  675. package/lib/esm-es5/duet-slideout.entry.js +1 -1
  676. package/lib/esm-es5/duet-status-icon.entry.js +1 -1
  677. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  678. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  679. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  680. package/lib/esm-es5/duet-submenu-bar-item.entry.js +1 -1
  681. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  682. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  683. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  684. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  685. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  686. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  687. package/lib/esm-es5/duet-toolbar-item.entry.js +1 -1
  688. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  689. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  690. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  691. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  692. package/lib/esm-es5/duet-tray.entry.js +1 -1
  693. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  694. package/lib/esm-es5/duet-upload-item.entry.js +2 -2
  695. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  696. package/lib/esm-es5/duet.js +1 -1
  697. package/lib/esm-es5/{errorcodes.utils-66d99a23.js → errorcodes.utils-416994cc.js} +1 -1
  698. package/lib/esm-es5/{focus-utils-b48493c9.js → focus-utils-7bc146cd.js} +1 -1
  699. package/lib/esm-es5/index-1a6cee61.js +4 -0
  700. package/lib/esm-es5/{label-00d35a2b.js → label-de5c8cbd.js} +1 -1
  701. package/lib/esm-es5/{language-utils-2c1dd412.js → language-utils-8a9d5323.js} +1 -1
  702. package/lib/esm-es5/loader.js +1 -1
  703. package/lib/esm-es5/{slot-utils-8fc9fbbf.js → slot-utils-bf214ae5.js} +1 -1
  704. package/lib/types/components/duet-button/duet-button.d.ts +1 -1
  705. package/lib/types/components/duet-heading/duet-heading.d.ts +6 -0
  706. package/lib/types/components/duet-input/duet-input.d.ts +4 -3
  707. package/lib/types/components/duet-phone-input/duet-phone-input.d.ts +156 -0
  708. package/lib/types/components/duet-popup-menu/duet-popup-menu.d.ts +11 -1
  709. package/lib/types/components/duet-scrollable/duet-scrollable.d.ts +1 -0
  710. package/lib/types/components/duet-slideout-link/duet-slideout-link.d.ts +17 -0
  711. package/lib/types/components/duet-tab-group/duet-tab-group.d.ts +1 -0
  712. package/lib/types/components.d.ts +259 -2
  713. package/lib/types/data/countries.d.ts +22 -0
  714. package/package.json +3 -3
  715. package/lib/dist-custom-elements/p-46aa070f.js +0 -287
  716. package/lib/duet/p-024c9ef9.entry.js +0 -4
  717. package/lib/duet/p-0d6ace6f.js +0 -4
  718. package/lib/duet/p-15a35870.system.entry.js +0 -4
  719. package/lib/duet/p-17676f8d.entry.js +0 -4
  720. package/lib/duet/p-22a95bff.system.js +0 -4
  721. package/lib/duet/p-3a8e181e.entry.js +0 -4
  722. package/lib/duet/p-42542284.entry.js +0 -4
  723. package/lib/duet/p-4a4d949c.entry.js +0 -4
  724. package/lib/duet/p-4dcb6a39.js +0 -5
  725. package/lib/duet/p-5488c7f0.entry.js +0 -4
  726. package/lib/duet/p-57daa78e.system.entry.js +0 -4
  727. package/lib/duet/p-654a4d24.entry.js +0 -4
  728. package/lib/duet/p-663d1dbe.system.entry.js +0 -4
  729. package/lib/duet/p-6791f33a.system.entry.js +0 -4
  730. package/lib/duet/p-6833a13e.system.entry.js +0 -4
  731. package/lib/duet/p-6ab7c8ae.entry.js +0 -4
  732. package/lib/duet/p-7094e51e.js +0 -4
  733. package/lib/duet/p-8688d2ab.system.entry.js +0 -4
  734. package/lib/duet/p-97f1f446.system.entry.js +0 -4
  735. package/lib/duet/p-9ba5dbb7.entry.js +0 -4
  736. package/lib/duet/p-9c08f843.entry.js +0 -4
  737. package/lib/duet/p-a011272e.entry.js +0 -4
  738. package/lib/duet/p-aac4f547.system.entry.js +0 -4
  739. package/lib/duet/p-af13cb98.entry.js +0 -4
  740. package/lib/duet/p-b85f2a7b.entry.js +0 -4
  741. package/lib/duet/p-be334873.system.js +0 -4
  742. package/lib/duet/p-c4150af0.entry.js +0 -4
  743. package/lib/duet/p-c44fa6da.system.js +0 -4
  744. package/lib/duet/p-d0d6ecb5.entry.js +0 -4
  745. package/lib/duet/p-e1287a80.entry.js +0 -4
  746. package/lib/duet/p-ecceed3c.system.entry.js +0 -4
  747. package/lib/esm-es5/duet-chip_3.entry.js +0 -4
  748. package/lib/esm-es5/index-5a27eaf5.js +0 -5
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ import{r as t,c as e,h as i,H as a,g as o}from"./p-a083b91a.js";import{f as n}from"./p-d004da5f.js";import{i as r}from"./p-aaa7a7bd.js";import{D as s}from"./p-b3d6e031.js";import{c as d}from"./p-5e59e970.js";import{c as u,r as l}from"./p-df7874f9.js";import{f as p,j as h,e as c,d as b,a as m}from"./p-a45e3f8b.js";import{a as g,c as v,d as f,g as x}from"./p-e3857119.js";import{c as w,p as y}from"./p-b33512d6.js";import{g as k}from"./p-cc67e773.js";import"./p-9c3c64b9.js";import"./p-0d7da85a.js";const S={search:n,email:{title:"form-email",tags:"form email",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M12 23.999c-3.205 0-6.218-1.248-8.484-3.514S.001 15.206.001 12.001s1.248-6.218 3.514-8.485C5.782 1.25 8.795.001 12 .001s6.218 1.248 8.485 3.514A11.92 11.92 0 0 1 24 12v2.25A3.754 3.754 0 0 1 20.25 18a3.77 3.77 0 0 1-3.48-2.365A6.009 6.009 0 0 1 12 18c-3.308 0-6-2.692-6-6s2.692-6 6-6 6 2.692 6 6v2.25c0 1.241 1.009 2.25 2.25 2.25s2.25-1.009 2.25-2.25V12c0-2.804-1.092-5.441-3.075-7.424A10.433 10.433 0 0 0 12 1.501c-2.804 0-5.441 1.092-7.424 3.075S1.501 9.196 1.501 12c0 2.805 1.092 5.441 3.075 7.424s4.619 3.074 7.423 3.074c2.257 0 4.494-.746 6.299-2.1a.749.749 0 1 1 .9 1.199A12.049 12.049 0 0 1 12 23.999zM12 7.5c-2.481 0-4.5 2.019-4.5 4.5s2.019 4.5 4.5 4.5 4.5-2.019 4.5-4.5-2.019-4.5-4.5-4.5z"/></svg>'}},C=class{constructor(i){t(this,i),this.duetInput=e(this,"duetInput",7),this.duetChange=e(this,"duetChange",3),this.duetBlur=e(this,"duetBlur",7),this.duetClear=e(this,"duetClear",7),this.duetFocus=e(this,"duetFocus",7),this.inputId=d("DuetInput"),this.proxyId=d("DuetInput"),this.clearId=d("DuetInputClear"),this.labelId=d("DuetLabel"),this.topCaptionId=d("DuetCaptionTop"),this.topCaptionPlaceholderId=d("DuetCaptionPlaceholderTop"),this.chipCountId=d("DuetInputChipCount"),this.errorId=d("DuetError"),this.disallowPatternRegex=null,this.clearLabel={en:"Clear",fi:"Tyhjennä",sv:"Rensa"},this.timeAnnouncement={en:"Time",fi:"Aika",sv:"Tid"},this.showPasswordLabel={en:"Show password",fi:"Näytä salasana",sv:"Visa lösenord"},this.hidePasswordLabel={en:"Hide password",fi:"Piilota salasana",sv:"Dölj lösenord"},this.passwordShownAriaAnnouncement={en:"Password is shown",fi:"Salasana näytetään",sv:"Lösenordet visas"},this.passwordHiddenAriaAnnouncement={en:"Password is hidden",fi:"Salasana on piilotettu",sv:"Lösenordet är dolt"},this.chipsSelectedDesriptionLabel={en:"selected",fi:"valittu",sv:"valt"},this.onInput=t=>{this.disallowPatternRegex&&u(this.nativeInput,this.disallowPatternRegex),this.chips&&this.clearChipSelection(),this.value=this.nativeInput.value||"",this.duetInput.emit({originalEvent:t,value:this.value,component:"duet-input"})},this.onBlur=t=>{t.relatedTarget!==this.nativeInput&&t.relatedTarget!==this.togglePasswordRevealedButton&&("revealable"===this.variation&&this.isPasswordRevealed&&(this.isPasswordRevealed=!1),this.isFocused=!1,this.duetBlur.emit({originalEvent:t,value:this.value,component:"duet-input"}))},this.onFocus=t=>{this.clearChipSelection(),this.isFocused=!0,this.duetFocus.emit({originalEvent:t,value:this.value,component:"duet-input"})},this.onClear=t=>{this.duetClear.emit({originalEvent:t,value:this.value,component:"duet-input"})},this.getAriaDescribedBy=()=>{const t=[];if(this.isCaptionVisible&&this.topCaptionId&&t.push(this.topCaptionId),this.accessibleDescribedBy&&t.push(this.accessibleDescribedBy),this.chips){const e=this.getAllChips();e.length&&(t.push(this.chipCountId),e.forEach((e=>t.push(e.id))))}return this.error&&t.push(this.errorId),t.length>0?t.join(" "):null},this.handleClearClick=t=>{const e=this.clearInput();return this.onClear(t),e},this.keyHandler=t=>(p(t)&&this.clear&&this.handleClearClick(t),h(t)&&"revealable"===this.variation&&(t.target===this.togglePasswordRevealedButton?t.stopPropagation():this.isPasswordRevealed=!1),this.chips&&0===this.nativeInput.value.length&&(c(t)&&(this.isChipSelected()&&(this.getSelectedChip().removeChip(),setTimeout((()=>this.selectLastChip()))),this.selectLastChip()),b(t)&&this.selectChipToLeft(),m(t)&&this.isChipSelected()&&this.selectChipToRight()),t),this.togglePasswordRevealed=()=>{this.isPasswordRevealed=!this.isPasswordRevealed},this.getInputType=()=>"revealable"===this.variation?this.isPasswordRevealed?"text":"password":this.type,this.language=g(),this.isPasswordRevealed=void 0,this.isFocused=!1,this.accessibleActiveDescendant=void 0,this.accessibleAutocomplete=void 0,this.accessibleControls=void 0,this.accessibleOwns=void 0,this.accessibleExpanded=void 0,this.accessibleDescribedBy="",this.accessibleHasPopup=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleLiveError="polite",this.debounce=0,this.clear=!1,this.caption=void 0,this.echoPlaceholder=!1,this.theme="",this.expand=!1,this.disabled=!1,this.identifier=void 0,this.margin="auto",this.inputAlign="left",this.inputPadding="medium",this.required=!1,this.type="text",this.variation="default",this.chips=!1,this.label="Label",this.labelColor=void 0,this.labelWeight=void 0,this.error="",this.labelHidden=!1,this.numericKeyboard=!1,this.name=void 0,this.pattern=void 0,this.maxlength=void 0,this.minlength=void 0,this.placeholder=void 0,this.component="input",this.role=void 0,this.icon=void 0,this.autoComplete="on",this.disallowPattern=null,this.value=void 0,this.tooltip="",this.tooltipDirection="auto"}disallowedPatternChange(){this.disallowPatternRegex=this.disallowPattern?new RegExp(this.disallowPattern,"gu"):null}valueChanged(){if(this.nativeInput&&this.nativeInput.value!==this.value){const t=l(this.nativeInput);this.nativeInput.value=this.value,t()}this.isCaptionVisible=!!this.caption;const t=()=>this.duetChange.emit({value:this.value,component:"duet-input"});0===this.debounce?t():(clearTimeout(this.timeoutId),this.timeoutId=setTimeout(t,this.debounce))}componentWillLoad(){r(this),this.disallowedPatternChange(),this.isCaptionVisible=!!this.caption,w(this.element,"tooltip","duet-tooltip",1,!0)}componentDidLoad(){"revealable"===this.variation&&this.nativeInput.form&&this.nativeInput.form.addEventListener("submit",(()=>{this.isPasswordRevealed=!1}))}connectedCallback(){v(this)}disconnectedCallback(){f(this)}componentDidRender(){y(this.element,this.proxyId,this.name,this.value,this.required)}async setFocus(t){this.nativeInput&&this.nativeInput.focus(t)}async resetCursor(){if(this.nativeInput){const t=l(this.nativeInput);this.nativeInput.value=this.value,t()}}async clearInput(){this.nativeInput&&(this.nativeInput.value="",this.nativeInput.focus(),this.value="")}getAllChips(){return Array.from(this.element.shadowRoot.querySelectorAll(".duet-input-relative duet-chip"))}isChipSelected(){return this.getAllChips().some((t=>t.selected))}getSelectedChip(){return this.getAllChips().find((t=>t.selected))}clearChipSelection(){this.getAllChips().forEach((t=>t.selected=!1))}selectLastChip(){const t=this.getAllChips();t.length&&(t.forEach((t=>t.selected=!1)),t.at(-1).selected=!0)}selectChipToLeft(){const t=this.getAllChips(),e=t.findIndex((t=>t.selected));t.length&&(t.forEach((t=>t.selected=!1)),-1===e?t.at(-1).selected=!0:0===e?t[0].selected=!0:t[e-1].selected=!0)}selectChipToRight(){const t=this.getAllChips(),e=t.findIndex((t=>t.selected));t.length&&(t.forEach((t=>t.selected=!1)),e>-1&&e<t.length-1&&(t[e+1].selected=!0))}async addChip(t){const e=this.element.shadowRoot.querySelector(".duet-input-relative"),i=e.querySelector("input:not(duet-chip input)");t.id=d("DuetInputChip"),e.insertBefore(t,i)}async hasChip({value:t,text:e}){return this.getAllChips().some((i=>i.value===t&&i.textContent===e))}async getChips(){return this.getAllChips()}async clearChips(){this.getAllChips().forEach((t=>t.remove()))}render(){const t=this.identifier||this.inputId,e={};let o;if(this.numericKeyboard&&(e.inputmode="numeric"),this.pattern&&"tel"!==this.type?e.pattern=this.pattern:this.pattern||"tel"!==this.type||(e.pattern="[0-9+ ]+"),this.value){o=new Date;try{o.setHours(Number(this.value.slice(0,2)),Number(this.value.slice(3,5)),0,0)}catch(t){o=void 0}}const n=!this.icon&&"text"!==this.type&&"tel"!==this.type&&"password"!==this.type&&"time"!==this.type&&"button"!==this.variation;return i(a,{key:"d0b04b19187f9aba6d3db243ba94e675ae9a9e1d",class:{"duet-expand":this.expand,"duet-m-0":"none"===this.margin},onKeyUp:t=>this.keyHandler(t)},"time"===this.type&&i("duet-visually-hidden",{key:"c70a995ae5e64ad348ac4b56c572abe20bdd0084","aria-live":"polite","aria-atomic":"true"},o?`${this.timeAnnouncement[this.language]} ${o.toLocaleTimeString()}`:""),i("div",{key:"73f06e392e23e530bcbd4744a7cb2e29cef9b199",class:{"duet-input-container":!0,"duet-theme-turva":"turva"===this.theme,[`duet-input-variation-${this.variation}`]:!0,"duet-label-hidden":this.labelHidden,"duet-input-top-caption-shown":this.isCaptionVisible,"has-icon":"button"!==this.variation&&(!!this.icon||"text"!==this.type&&"tel"!==this.type&&"password"!==this.type&&"time"!==this.type),"has-error":!!this.error,"has-chips":this.chips,"has-clear":this.clear,"has-focus":this.isFocused,disabled:this.disabled}},i("div",{key:"bcad83ea5d955affdb9185a2764e33bd08d5c3f1",class:"duet-input-label-container"},i(s,{key:"bb48970141e2ac6d514f8e97ed7d3b2336b01605",theme:"turva"===this.theme?"turva":"default",margin:this.isCaptionVisible?"small":"auto",color:this.labelColor,weight:this.labelWeight,id:this.labelId,for:t},this.label),this.tooltip&&i("duet-tooltip",{key:"661651ef6107332614fbbc5c1f797a87b3f178ce",class:"duet-input-tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label,theme:"turva"===this.theme?"turva":"default"},this.tooltip),i("slot",{key:"7e6ee0cb94d09434c67d8d6097d73176f2882fac",name:"tooltip"})),this.caption&&i("duet-caption",{key:"c942fd0d043194baf1f9f711be7b15f63442c13f",id:this.topCaptionId,size:"medium"},this.caption),i("div",{key:"b1d24bb9fde1ead6720ccfb3f81be9b27bd3fb56",class:"duet-input-relative"},this.placeholder&&this.echoPlaceholder&&(this.value||"time"===this.type)&&i("duet-caption",{key:"3121d1a70b4c35b96ea10adfc142034376ca5c46",id:this.topCaptionPlaceholderId,class:"duet-input-placeholder",margin:"none",size:"small"},this.placeholder),this.chips&&i("duet-visually-hidden",{key:"997a33289366e1361a91d225a50b704847d64653",id:this.chipCountId},", ",`${this.getAllChips().length} ${x(this.chipsSelectedDesriptionLabel)}`,","),"button-left"===this.variation&&i("slot",{key:"50367d85d0768215f127619d9d253f4459f278b6",name:"button-left"}),i("input",Object.assign({key:"21fe19ad88326f7ab0b3d12501cee8681949908a",ref:t=>this.nativeInput=t,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus,type:this.getInputType(),class:{"duet-input":!0,disabled:this.disabled,"is-number":"number"===this.component,"is-date":"date"===this.component,"after-chip":this.getAllChips().length>0,"align-right":"right"===this.inputAlign,[`input-padding-${this.inputPadding}`]:!0},value:this.value,disabled:this.disabled,"aria-invalid":this.error?"true":"false","aria-labelledby":this.accessibleLabelledBy?`${this.labelId} ${this.accessibleLabelledBy}`:this.labelId,"aria-controls":this.accessibleControls,"aria-autocomplete":this.accessibleAutocomplete,"aria-activedescendant":this.accessibleActiveDescendant,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-expanded":this.accessibleExpanded,"aria-haspopup":this.accessibleHasPopup,"aria-owns":this.accessibleOwns,"aria-describedby":this.getAriaDescribedBy(),placeholder:this.placeholder,spellcheck:"false",minlength:this.minlength,maxlength:this.maxlength,autocomplete:"password"===this.type?"off":this.autoComplete,required:this.required,role:this.role,name:this.name,id:t},e)),!this.value&&n&&i("div",{key:"073c81d796b322ab02ea19cdca462860b7c03c21",class:"duet-input-icon"},i("duet-icon",{key:"ce4215d934358fcbaa0cd80d94d9ab5b3f1df114",margin:"none",size:"small",icon:S[this.type].svg,color:"currentColor"})),this.clear&&this.value&&i("div",{key:"efaf82f9f2c24b1ffd5d2bece9007bd413124319",class:{"duet-input-clear-icon":!0,"duet-input-clear-icon-single":!n,"duet-input-clear-icon-double":!!this.icon,"duet-input-clear-icon-button":"button"===this.variation}},i("button",{key:"7e37c8e85d027bb8b6c7612ada14a74393c9d3b2",onClick:this.handleClearClick,id:this.clearId,"aria-label":this.clearLabel[this.language],"aria-keyshortcuts":"Escape"},i("duet-icon",{key:"3b11bc5f23d4adb05d1bd7364242df0749c0833b",margin:"none",size:"medium",name:"action-clear-input",color:"currentColor"}))),this.icon&&"button"!==this.variation&&i("div",{key:"5ecd6aa9de04386694cd43d8b09f62d2c2aac83f",class:"duet-input-icon"},i("duet-icon",{key:"4ef808e474a8a83beaa5664c5cb708842c768159",margin:"none",size:"small",name:this.icon,color:"currentColor"})),"button"===this.variation&&i("slot",{key:"197946e80efc48ea90055f40ab37e0d8a5897651",name:"button"}),"revealable"===this.variation&&i("duet-button",{key:"2c45edd5b02477999858dba80c03ee100a1a6c99",ref:t=>this.togglePasswordRevealedButton=t,onBlur:this.onBlur,onFocus:this.onFocus,onClick:this.togglePasswordRevealed,icon:this.isPasswordRevealed?"action-hide":"action-show",accessibleLabel:this.isPasswordRevealed?this.hidePasswordLabel[this.language]:this.showPasswordLabel[this.language],margin:"none",variation:"input-button-embedded",fixed:!0,iconOnly:!0}),"revealable"===this.variation&&void 0!==this.isPasswordRevealed&&i("duet-visually-hidden",{key:"b4a8e3167899794dec8d8226fdcbd4dac5b4cd01"},i("span",{key:"0a3a2efdf243ba4f6b70a64b15aedc342911127e","aria-live":"polite"},this.isPasswordRevealed?this.passwordShownAriaAnnouncement[this.language]:this.passwordHiddenAriaAnnouncement[this.language])),i("slot",{key:"32584b0b73cb3ea2897432dfa8a9473b62020665"})),i("span",{key:"84ed3f4d4fb55ff951d2eb1ee496270fb266a288",class:"duet-input-help",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&i("span",{key:"f73ada51b32993e0f853961ff21de9816bdefbff",class:"duet-input-error"},this.error))))}get element(){return o(this)}static get watchers(){return{disallowPattern:["disallowedPatternChange"],value:["valueChanged"]}}};C.style='.duet-internal-label{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !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 !important;line-height:1.25;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.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)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{margin-right:16px !important}:host(:last-child),:host(:last-of-type){margin-right:0 !important}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;text-align:left;vertical-align:bottom}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}duet-tooltip,::slotted(duet-tooltip){position:relative;top:12px;right:0}@media (min-width: 48em){duet-tooltip,::slotted(duet-tooltip){right:auto}}duet-caption:not(:last-of-type){margin-bottom:0}.duet-input-placeholder{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-input-icon{position:absolute;top:50%;right:16px;z-index:200;width:20px;height:20px;font-size:0;line-height:normal;color:rgb(8, 42, 77);pointer-events:none;transform:translateY(-50%)}.duet-theme-turva .duet-input-icon{color:rgb(23, 28, 58)}.duet-input-container{position:relative;width:100%;height:100%}.duet-input-container.has-clear .duet-input-clear-icon{position:relative;z-index:250}.duet-input-container.has-clear .duet-input-clear-icon button{position:absolute;top:-24px;right:-24px;min-width:48px;min-height:48px;color:rgb(0, 75, 129)}.duet-input-container.has-clear .duet-input-clear-icon button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-input-container.has-clear .duet-input-clear-icon button:focus,.duet-input-container.has-clear .duet-input-clear-icon button:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-input-container.has-clear .duet-input-clear-icon button:active{opacity:0.75;transition:none}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-single button{top:-48px;right:0}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-double button{top:-24px;right:12px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-button button{top:-24px;right:0}.duet-input-container.has-clear.has-icon .duet-input-clear-icon{top:-24px;right:24px}.duet-input-container.duet-theme-turva.has-clear .duet-input-clear-icon button{color:rgb(8, 42, 77)}.duet-input-container.duet-theme-turva.has-clear .duet-input-clear-icon button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a !important}.duet-input-label-container{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between}@media (min-width: 48em){.duet-input-label-container{justify-content:flex-start}}.duet-input{position:relative;z-index:100;display:block !important;width:100% !important;min-width:8rem;max-width:initial !important;height:auto !important;padding:12px 14px !important;margin:initial !important;margin-bottom:initial !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:400 !important;font-variant-numeric:tabular-nums;line-height:1.5 !important;color:rgb(8, 42, 77) !important;cursor:initial !important;background:rgb(255, 255, 255) !important;background-clip:initial !important;border:1px solid rgb(127, 150, 165) !important;border-radius:4px !important;box-shadow:initial !important;transition:box-shadow 150ms ease, border 150ms ease !important}.duet-input.input-padding-small{padding:8px 10px !important}.duet-input.input-padding-x-small{padding:4px 6px !important}.duet-input.input-padding-xx-small{padding:0px 2px !important}.duet-input.is-number{padding-right:112px !important}.duet-input.is-date{padding-right:64px !important}.duet-input.after-chip{padding-left:8px !important}.has-error .duet-input,.has-error .duet-input[disabled]{border-color:rgb(214, 28, 82) !important}.has-error .duet-input+.duet-input-icon,.has-error .duet-input[disabled]+.duet-input-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-input{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-input+.duet-input-icon{color:rgb(214, 28, 82) !important}.has-icon .duet-input{padding-right:48px !important}.duet-theme-turva .duet-input{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) !important;border-color:rgb(143, 147, 158) !important}.duet-input.align-right{text-align:right}.duet-input::-ms-clear{display:none}.duet-input::-webkit-contacts-auto-fill-button{display:none !important}.duet-input::-webkit-input-placeholder{color:rgb(98, 121, 138);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva .duet-input::-webkit-input-placeholder{color:rgb(143, 147, 158)}.duet-input:focus::-webkit-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva .duet-input:focus::-webkit-input-placeholder{color:rgb(199, 202, 207)}.duet-input::-moz-placeholder{color:rgb(98, 121, 138);opacity:1 !important}.duet-theme-turva .duet-input::-moz-placeholder{color:rgb(143, 147, 158)}.duet-input:focus::-moz-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva .duet-input:focus::-moz-placeholder{color:rgb(199, 202, 207)}.duet-input:-ms-input-placeholder{color:rgb(98, 121, 138)}.duet-theme-turva .duet-input:-ms-input-placeholder{color:rgb(143, 147, 158)}.duet-input:focus:-ms-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva .duet-input:focus:-ms-input-placeholder{color:rgb(199, 202, 207)}.duet-input[disabled]{color:rgb(8, 42, 77) !important;cursor:not-allowed !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important;box-shadow:none !important;opacity:1 !important;-webkit-text-fill-color:rgb(8, 42, 77) !important}.duet-theme-turva .duet-input[disabled]{color:rgb(23, 28, 58) !important;background:rgb(245, 247, 250) !important;border-color:rgb(245, 247, 250) !important;-webkit-text-fill-color:rgb(23, 28, 58) !important}.duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #909599 !important}.duet-theme-turva .duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #747475 !important}.has-error .duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #e55039}.duet-input:focus{border-color:rgb(0, 119, 179) !important;outline:0;box-shadow:0 0 0 1px #0077b3 !important;transition:none}.duet-theme-turva .duet-input:focus{border-color:rgb(23, 28, 58) !important;box-shadow:0 0 0 1px #171c3a !important}.duet-theme-turva .duet-input:focus+.duet-input-icon{color:rgb(23, 28, 58)}.has-error .duet-input:focus{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-input:focus{box-shadow:0 0 0 1px #e55039}.duet-input:focus+.duet-input-icon{color:rgb(0, 119, 179)}.duet-input[type=search]:not(:placeholder-shown):focus+.duet-input-icon{display:none}.duet-input:not(:focus):not(:hover):invalid{box-shadow:none !important}.duet-input[type=number]::-webkit-inner-spin-button,.duet-input[type=number]::-webkit-outer-spin-button,.duet-input[type=time]::-webkit-inner-spin-button,.duet-input[type=time]::-webkit-outer-spin-button{display:none;margin:0;-webkit-appearance:none}.duet-input::-webkit-search-cancel-button{margin-right:-28px}.duet-input-help{display:block;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;font-weight:400;line-height:1.25;color:rgb(98, 121, 138);border-radius:4px}.duet-input-help span{display:block;margin-top:8px}.duet-theme-turva .duet-input-help{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 .duet-input-help{color:rgb(214, 28, 82)}.duet-theme-turva.has-error .duet-input-help{color:rgb(214, 28, 82)}.duet-label-hidden label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.duet-input-relative{position:relative;width:100%}.duet-input-variation-button,.duet-input-variation-button-left{position:relative;width:100%}.duet-input-variation-button .duet-input-relative,.duet-input-variation-button-left .duet-input-relative{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;align-items:center;justify-content:flex-start;width:auto}.duet-input-variation-button .duet-input-relative duet-button,.duet-input-variation-button-left .duet-input-relative duet-button{z-index:250;margin-bottom:0}.duet-input-variation-button-left .duet-input-relative{border-radius:4px}.duet-input-variation-button-left.has-focus .duet-input-relative{border-color:rgb(0, 119, 179);box-shadow:0 0 0 1px #0077b3 !important}.duet-input-variation-button-left.duet-theme-turva.has-focus .duet-input-relative{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.duet-input-variation-button-left:hover:not(.disabled) .duet-input-relative{box-shadow:0 0 0 1px #909599}.duet-input-variation-button-left.duet-theme-turva:hover:not(.disabled) .duet-input-relative{box-shadow:0 0 0 1px #747475}.duet-input-variation-button-left .duet-input:focus,.duet-input-variation-button-left .duet-input:hover:not(.disabled){box-shadow:none !important}.duet-input-variation-button .duet-input-relative .duet-input{border-right-width:0 !important;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.duet-input-variation-button-left .duet-input-relative .duet-input{border-left-width:0 !important;border-top-left-radius:0 !important;border-bottom-left-radius:0 !important}.duet-input-variation-revealable{position:relative;width:100%}.duet-input-variation-revealable ::-ms-reveal{display:none}.duet-input-variation-revealable .duet-input-relative{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;align-items:center;justify-content:flex-start;width:auto;border:1px solid rgb(127, 150, 165);border-radius:4px;box-shadow:initial;transition:box-shadow 150ms ease, border 150ms ease}.duet-theme-turva .duet-input-variation-revealable .duet-input-relative{border-color:rgb(143, 147, 158)}.duet-input-variation-revealable .duet-input-relative duet-button{z-index:250;margin-bottom:0}.duet-input-variation-revealable .duet-input-relative .duet-input{border-width:0 !important}.duet-input-variation-revealable .duet-input-relative .duet-input:focus,.duet-input-variation-revealable .duet-input-relative .duet-input:hover{border-width:0 !important;box-shadow:none !important}.duet-input-variation-revealable.disabled .duet-input-relative{background:rgb(245, 248, 250);border-color:rgb(212, 223, 229);box-shadow:none}.duet-input-variation-revealable.has-error .duet-input-relative{border-color:rgb(214, 28, 82)}.duet-input-variation-revealable.duet-theme-turva.has-error .duet-input-relative{border-color:rgb(214, 28, 82)}.duet-input-variation-revealable.has-focus .duet-input-relative{border-color:rgb(0, 119, 179);box-shadow:0 0 0 1px #0077b3 !important}.duet-input-variation-revealable.duet-theme-turva.has-focus .duet-input-relative{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.duet-input-variation-revealable:hover:not(.disabled) .duet-input-relative{box-shadow:0 0 0 1px #909599}.duet-input-variation-revealable.duet-theme-turva:hover:not(.disabled) .duet-input-relative{box-shadow:0 0 0 1px #747475}.duet-input-variation-revealable.has-error:hover:not(.disabled) .duet-input-relative{box-shadow:0 0 0 1px #de2362}.duet-input-variation-revealable.duet-theme-turva.has-error:hover:not(.disabled) .duet-input-relative{box-shadow:0 0 0 1px #e55039}.duet-input-container.has-chips .duet-input-relative{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:flex-start;width:auto;border:1px solid rgb(127, 150, 165);border-radius:4px;box-shadow:initial;transition:box-shadow 150ms ease, border 150ms ease}.duet-theme-turva .duet-input-container.has-chips .duet-input-relative{border-color:rgb(143, 147, 158)}.duet-input-container.has-chips .duet-input-relative .duet-input{flex-basis:4rem;flex-grow:1;padding-left:0 !important;margin-left:12px !important;border-width:0 !important}.duet-input-container.has-chips .duet-input-relative .duet-input:focus,.duet-input-container.has-chips .duet-input-relative .duet-input:hover{border-width:0 !important;box-shadow:none !important}';const z=class{constructor(e){t(this,e),this.theme="",this.for=void 0,this.margin="auto",this.size="medium",this.weight="semi-bold",this.color=""}componentWillLoad(){r(this)}render(){const t=k(this.color);return i(a,{class:{"duet-label":!0,"duet-label-small":"small"===this.size,"duet-theme-turva":"turva"===this.theme,"duet-small-margin":"small"===this.margin,"duet-m-0":"none"===this.margin,[`duet-weight-${this.weight}`]:!0}},i("label",{htmlFor:this.for,style:{color:t}},i("span",null,i("slot",null))))}get element(){return o(this)}};z.style='*.sc-duet-label,*.sc-duet-label::after,*.sc-duet-label::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-label-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;line-height:1.25;cursor:default}.duet-p-0.sc-duet-label-h{padding:0 !important}.duet-m-0.sc-duet-label-h{margin:0 !important}.duet-m-0.sc-duet-label-h{margin-bottom:0 !important}.duet-small-margin.sc-duet-label-h{margin-top:8px !important;margin-bottom:4px !important}.duet-has-tooltip.sc-duet-label-h{padding-right:48px}@media (min-width: 48em){.duet-has-tooltip.sc-duet-label-h{padding-right:0}}label.sc-duet-label{margin:0;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 !important;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word}label.sc-duet-label span.sc-duet-label{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-label-small.sc-duet-label-h label.sc-duet-label{font-size:0.875rem}.duet-label-small.sc-duet-label-h label.sc-duet-label span.sc-duet-label{font-size:0.875rem}.duet-weight-normal.sc-duet-label-h label.sc-duet-label{font-weight:400 !important}.duet-weight-normal.sc-duet-label-h label.sc-duet-label span.sc-duet-label{font-weight:400 !important}.duet-theme-turva.sc-duet-label-h label.sc-duet-label{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)}';export{C as duet_input,z as duet_label}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ import{r as e,c as t,h as i,H as c,g as o}from"./p-a083b91a.js";import{i as n}from"./p-aaa7a7bd.js";import{c as a}from"./p-5e59e970.js";import{s as r,u as d,q as h}from"./p-a45e3f8b.js";import{g as s}from"./p-e3857119.js";import"./p-9c3c64b9.js";const p=class{constructor(i){e(this,i),this.duetChange=t(this,"duetChange",3),this.duetRemove=t(this,"duetRemove",3),this.duetFocus=t(this,"duetFocus",7),this.duetBlur=t(this,"duetBlur",7),this.chipId=a("DuetChip"),this.deleteLabels={fi:"Poista",en:"Remove",sv:"Ta bort"},this.selectedForDeletionLabels={fi:"Valittu, poista askelpalautinnäppäimellä",en:"Selected, remove with backspace",sv:"Valt, ta bort med backsteg"},this.enforceNoDisabledSelected=()=>{this.disabled&&this.checked&&(console.error("Duet error: pre-selected chip may not be disabled"),this.disabled=!1)},this.radioInputListenersRemove=e=>{e.removeEventListener("change",this.onRadioChange),e.removeEventListener("click",this.onRadioClick),e.removeEventListener("focus",this.onFocus),e.removeEventListener("blur",this.onBlur)},this.radioInputListenersAdd=e=>{e.addEventListener("change",this.onRadioChange),e.addEventListener("click",this.onRadioClick),e.addEventListener("focus",this.onFocus),e.addEventListener("blur",this.onBlur)},this.radioInputSetUp=()=>{const e=this.element.querySelector("input[slot=input]"),t=e||document.createElement("input");t.slot="input",t.ariaDisabled=this.disabled?"true":void 0,t.id=this.identifier||this.chipId,t.type="radio",t.name=this.name,t.value=this.value,t.checked=this.checked,t.ariaLabel=this.element.textContent,e?this.radioInputListenersRemove(t):this.element.appendChild(t),this.radioInputListenersAdd(t),this.focusableElement=t},this.popupSetUp=()=>{const e=document.querySelector(`duet-popup-menu#${this.popup}`);if(e){this.popupElement=e,e.controller=this.element;const t=this.element.textContent,i=this.value;e.id||(e.id="popup-menu"),e.addEventListener("duetToggle",(e=>{this.popupOpen=e.detail.open}));const c=()=>{e.querySelectorAll("duet-popup-menu-item").forEach((e=>{e.active=!1}))};e.querySelectorAll("duet-popup-menu-item").forEach((e=>{e.addEventListener("click",(o=>{var n;const a=null!==(n=e.value)&&void 0!==n?n:e.innerText;e.active?(c(),this.element.textContent=t,this.value=i,this.checked=!1):(c(),e.active=!0,this.element.textContent=e.innerText,this.value=a,this.checked=!0),this.emitChange(o),setTimeout((()=>{this.popupElement.isOpen()&&this.popupElement.hide()}))}))}))}},this.onFocus=e=>{this.focus=!0,this.duetFocus.emit({originalEvent:e,checked:this.checked,value:this.value,component:"duet-chip"})},this.onBlur=e=>{this.focus=!1,this.duetBlur.emit({originalEvent:e,checked:this.checked,value:this.value,component:"duet-chip"})},this.emitChange=e=>{this.duetChange.emit({originalEvent:e,checked:this.checked,value:this.value,component:"duet-chip"})},this.onFilterChange=e=>{this.checked=!this.checked,this.emitChange(e)},this.onRadioChange=e=>{this.checked=this.focusableElement.checked,this.emitChange(e)},this.onRadioClick=e=>{this.disabled&&e.preventDefault()},this.onFilterClick=e=>{if(this.disabled)return e.stopPropagation(),void e.preventDefault();this.popupElement&&(e.stopPropagation(),e.preventDefault(),this.popupElement.toggle())},this.onRemoveClick=e=>{null==e||e.stopPropagation(),null==e||e.preventDefault(),this.duetRemove.emit({originalEvent:e,checked:this.checked,value:this.value,component:"duet-chip"}),this.element.remove()},this.focus=!1,this.popupElement=void 0,this.popupOpen=void 0,this.inputChipHover=!1,this.inputChipDeleteFocus=!1,this.accessibleLabel=void 0,this.variation="button",this.size="medium",this.popup=void 0,this.icon="",this.theme="",this.identifier=void 0,this.value=void 0,this.name=void 0,this.selected=!1,this.checked=!1,this.disabled=!1,this.accessibleExpanded=void 0,this.accessiblePopup="false"}clearOtherRadioButtons(){"radio"===this.variation&&this.checked&&document.querySelectorAll(`duet-chip[variation="radio"][name="${this.name}"]`).forEach((e=>{e!==this.element&&(e.checked=!1)}))}componentWillLoad(){n(this),this.popupSetUp(),this.enforceNoDisabledSelected()}connectedCallback(){r(this)}disconnectedCallback(){d(this)}componentDidRender(){"radio"===this.variation&&this.radioInputSetUp()}getAccessibleExpanded(){return null!=this.accessibleExpanded?(!!this.accessibleExpanded).toString():this.popupElement?this.popupOpen?"true":"false":void 0}getAccessiblePopup(){return this.popupElement?"true":null!=this.accessiblePopup?this.accessiblePopup.toString():void 0}getAccessibleDeleteLabel(){return`${s(this.deleteLabels)} ${this.element.textContent}`}getAccessibleInputChipLabel(){return`${this.element.textContent}${this.selected?` (${s(this.selectedForDeletionLabels)}) `:""},`}async setFocus(e){h(),setTimeout((()=>this.focusableElement.focus(e)),200)}async setDeleteFocus(){setTimeout((()=>this.deleteButtonElement.focus()),200)}async removeChip(){this.onRemoveClick()}render(){var e;const t=this.identifier||this.chipId,o={"duet-chip-container":!0,[`duet-chip-${this.variation}`]:!0,"duet-chip-focus":this.focus,"duet-chip-selected":this.selected,"duet-chip-hover":this.inputChipHover,"duet-chip-delete-focus":this.inputChipDeleteFocus,"duet-chip-has-icon":!!this.icon,"duet-chip-has-popup":"filter"===this.variation&&!!this.popupElement,"duet-theme-turva":"turva"===this.theme,"duet-chip-filter-checked":"filter"===this.variation&&this.checked,"duet-chip-radio-checked":"radio"===this.variation&&this.checked,"duet-chip-filter-popup-open":this.popupOpen,"duet-chip-disabled":this.disabled,[this.size]:!0},n={onFocus:this.onFocus,onBlur:this.onBlur,ref:e=>this.focusableElement=e};return i(c,{key:"7be8a97618afcc5aa95a73b6999cbd21a9efe66d",class:{[this.variation]:!0}},"button"===this.variation&&i("span",{key:"20a79f42019bb5456940c408f16cfe4398ce752b",class:o},i("button",Object.assign({key:"0da848870e5d364e5a0c96286863abb8846f3b43",id:t,"aria-label":this.accessibleLabel,"aria-haspopup":this.getAccessiblePopup(),"aria-expanded":this.getAccessibleExpanded(),"aria-disabled":this.disabled?"true":void 0,name:this.name,value:this.value,onClick:this.disabled?e=>e.stopPropagation():void 0},n),i("span",{key:"65963c49ac15e31be9e6c155d713895011247c75",class:"duet-chip-icon-container"},this.icon&&i("duet-icon",{key:"6bdaf78c4129a2e195b2c8d8615fbc030892b35f",name:this.icon,size:"x-small",margin:"none",color:"currentColor"})),i("slot",{key:"115c67252b400a3796064d80b48c940f5db630f6"}))),"input"===this.variation&&i("span",{key:"f88e9e882256e176835645274c7f3ad5feeb43f4",class:o,"aria-label":this.getAccessibleInputChipLabel()},i("button",Object.assign({key:"8966730749b28a27a8d9c3ad0cc5384d7365a224",id:t,class:"duet-chip-input-button",value:this.value,"aria-label":this.accessibleLabel,onMouseOver:()=>this.inputChipHover=!0,onMouseOut:()=>this.inputChipHover=!1,onClick:()=>this.selected=!this.selected},n),i("span",{key:"0c5090f2ae94e37ca202aecfdd26793617d96fcb",class:"duet-chip-icon-container"},this.icon&&i("duet-icon",{key:"296fc12572a339b123691ad64e5140187bc8ce6f",name:this.icon,size:"x-small",margin:"none",color:"currentColor"})),i("slot",{key:"52de610f0eef8aaf1fc353e4832460823b3483b9"})),i("button",{key:"863d5afcb642ad16aea0567cf6043106231e7947",class:"duet-chip-remove-button","aria-label":this.getAccessibleDeleteLabel(),onClick:this.onRemoveClick,onFocus:()=>this.inputChipDeleteFocus=!0,onBlur:()=>this.inputChipDeleteFocus=!1,ref:e=>this.deleteButtonElement=e},i("duet-icon",{key:"bccf50bd40c6e81cb150f8667065b2951b592aa5",name:"activity-close",size:"xx-small",margin:"none",color:"currentColor"}))),"filter"===this.variation&&i("span",{key:"d4d7899b9a4398b11426408014e383041393a0cf",class:o},i("input",Object.assign({key:"b0ba6a4dbe7b1539188e433a26bfd8610619e4c5","aria-haspopup":this.getAccessiblePopup(),"aria-controls":null===(e=this.popupElement)||void 0===e?void 0:e.id,"aria-expanded":this.getAccessibleExpanded(),"aria-disabled":this.disabled?"true":void 0,id:t,type:"checkbox",name:this.name,value:this.value,checked:this.checked,onClick:this.onFilterClick,onChange:this.onFilterChange},n)),i("label",{key:"8facc59cf10af72eec36071be9ae95556591d1cf",htmlFor:t},this.icon&&i("span",{key:"91f1eac1be716140991470852ed8a0844f2b9cec",class:"duet-chip-icon-container"},i("duet-icon",{key:"27053a7b32e80be22bcc07e6b59f224cd3c6cc6d",name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),i("duet-icon",{key:"912f00ad9abb15c939e0ab857b89ae94252335c7",name:"messaging-checked-small",size:"xx-small",margin:"none",color:"currentColor",class:"check-mark"})),i("slot",{key:"549f86327697adc292e4ea26d3c5b582b5b19509"}),this.popupElement&&i("span",{key:"e6f6c8d0996bbfa904d27deeec7e3c51ce2f4a6d",class:"duet-chip-popup-disclosure"},i("duet-icon",{key:"b0e8c8db27bb4f226c36d84c1cfe5b9d09da4b54",name:"action-arrow-down-small",size:"xxx-small",margin:"none",color:"currentColor"})))),"radio"===this.variation&&i("span",{key:"a7810754fc8da2acf0e7c1509202f358b5b01589",class:o},i("slot",{key:"282c8898695898de513270a8e885762aa0ddab6b",name:"input"}),i("label",{key:"e5563a86a6e3f9d948a0edaded7230f2eb99410d",htmlFor:t},this.icon&&i("span",{key:"606119672d3bcb9d2db6d7650ed4009a241588e7",class:"duet-chip-icon-container"},i("duet-icon",{key:"1dfd234360874e73c5b7b6cdef3893909db3a529",name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),i("duet-icon",{key:"81134c606d6e65e10af40eb97d708c4591f31ff6",name:"messaging-checked-small",size:"xx-small",margin:"none",color:"currentColor",class:"check-mark"})),i("slot",{key:"2a3b27a04ab0e0d14a65cd3aef6ea4bcee9e5367"}))))}get element(){return o(this)}static get watchers(){return{checked:["clearOtherRadioButtons"]}}};p.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:8px !important;margin-bottom:12px !important;position:relative;display:inline-block;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.input){margin-top:6px !important;margin-right:0 !important;margin-bottom:6px !important;margin-left:4px !important}.duet-chip-container{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:block;width:100%;padding:1px;hyphens:none;line-height:1.1;color:rgb(8, 42, 77) !important;text-align:center;cursor:pointer;background:rgb(255, 255, 255);border-color:rgb(181, 198, 208);border-style:solid;border-width:1px;border-radius:8px;transition:background-color 300ms ease, color 300ms ease, border-color 300ms ease}.duet-chip-container.duet-p-0{padding:0 !important}.duet-chip-container.duet-m-0{margin:0 !important}.duet-chip-container.duet-theme-turva{color:rgb(23, 28, 58) !important;background:rgb(255, 255, 255);border-color:rgb(199, 202, 207)}.duet-chip-container.duet-theme-turva:hover{border-color:rgb(198, 12, 48)}.duet-chip-container:hover{padding:0 !important;border-color:rgb(0, 119, 179);border-width:2px}.duet-chip-container.duet-chip-disabled{color:rgb(98, 121, 138) !important;cursor:default;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important}.duet-chip-container.duet-chip-disabled.duet-theme-turva{color:rgb(143, 147, 158) !important;background:rgb(245, 247, 250);border-color:rgb(245, 247, 250)}.duet-chip-container.duet-chip-disabled:hover{background:rgb(245, 248, 250);border-color:rgb(245, 248, 250)}.duet-chip-container.duet-chip-disabled:hover.duet-theme-turva{background:rgb(245, 247, 250);border-color:rgb(245, 247, 250)}.duet-chip-container.duet-chip-disabled button,.duet-chip-container.duet-chip-disabled label{cursor:default}.duet-chip-container button,.duet-chip-container label{display:flex;align-items:center;width:100%;height:100%;padding:8px 14px;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;font-weight:600;line-height:1rem;color:rgb(8, 42, 77) !important;cursor:pointer}.duet-chip-container button:focus,.duet-chip-container label:focus{outline:none}.duet-chip-container .duet-chip-icon-container{display:flex;align-items:center;height:16px;padding:0;transition:padding 300ms ease}.duet-chip-container.duet-chip-has-icon .duet-chip-icon-container{width:24px;height:16px;padding-right:10px}.duet-chip-container.duet-chip-has-icon.duet-chip-filter-checked .duet-chip-icon-container,.duet-chip-container.duet-chip-has-icon.duet-chip-radio-checked .duet-chip-icon-container{padding-right:11px;padding-left:3px}.duet-chip-container.duet-chip-has-icon button,.duet-chip-container.duet-chip-has-icon label{padding-left:10px}.duet-chip-container.duet-chip-has-popup button,.duet-chip-container.duet-chip-has-popup label{padding-right:8px}.duet-chip-container duet-icon:not(.check-mark){width:auto;visibility:visible;transition:width 300ms ease, transform 300ms ease;transform:scaleX(1)}.duet-chip-container duet-icon.check-mark{width:0;overflow:hidden;visibility:hidden;transition:width 300ms ease, transform 300ms ease;transform:scaleX(0)}.duet-chip-container.duet-chip-filter-checked,.duet-chip-container.duet-chip-radio-checked{padding:0 !important;background:rgb(228, 241, 247);border-color:rgb(0, 119, 179);border-width:2px}.duet-chip-container.duet-chip-filter-checked:hover,.duet-chip-container.duet-chip-radio-checked:hover{background:rgb(198, 225, 238)}.duet-chip-container.duet-chip-filter-checked.chip-has-icon button,.duet-chip-container.duet-chip-filter-checked.chip-has-icon label,.duet-chip-container.duet-chip-radio-checked.chip-has-icon button,.duet-chip-container.duet-chip-radio-checked.chip-has-icon label{padding-left:10px}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container,.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container{padding-right:10px}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon:not(.check-mark),.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container duet-icon:not(.check-mark){width:0;overflow:hidden;visibility:hidden;transition:width 300ms ease, transform 300ms ease;transform:scaleX(0)}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon.check-mark,.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container duet-icon.check-mark{width:auto;visibility:visible;transition:width 300ms ease, transform 300ms ease;transform:scaleX(1)}.duet-chip-container.duet-chip-filter-checked.duet-theme-turva,.duet-chip-container.duet-chip-radio-checked.duet-theme-turva{background:rgb(245, 247, 250);border-color:rgb(198, 12, 48)}.duet-chip-container.duet-chip-filter-checked.duet-theme-turva:hover,.duet-chip-container.duet-chip-radio-checked.duet-theme-turva:hover{background:rgb(222, 224, 228)}.duet-chip-container .duet-chip-popup-disclosure{padding-right:4.5px;padding-left:12.5px}.duet-chip-container .duet-chip-popup-disclosure duet-icon{transition:transform 300ms ease}.duet-chip-container.duet-chip-filter-popup-open{background:rgb(240, 247, 250);border-color:rgb(240, 247, 250)}.duet-chip-container.duet-chip-filter-popup-open.duet-theme-turva{background:rgb(245, 247, 250);border-color:rgb(245, 247, 250)}.duet-chip-container.duet-chip-filter-popup-open .duet-chip-popup-disclosure duet-icon{transform:rotate(180deg)}.duet-chip-container.duet-chip-input:hover{padding:1px !important;border-color:rgb(181, 198, 208);border-width:1px}.duet-chip-container.duet-chip-input.duet-chip-hover,.duet-chip-container.duet-chip-input.duet-chip-selected{padding:0 !important;border-color:rgb(0, 119, 179);border-width:2px}.duet-chip-container.duet-chip-input.duet-chip-hover .duet-chip-remove-button,.duet-chip-container.duet-chip-input.duet-chip-selected .duet-chip-remove-button{right:0;width:34px;height:34px;background:transparent}.duet-chip-container.duet-chip-input.duet-chip-delete-focus{background:rgb(240, 247, 250)}.duet-chip-container.duet-chip-input .duet-chip-input-button{margin-right:22px}.duet-chip-container.duet-chip-input .duet-chip-remove-button{position:absolute;top:-1px;right:-1px;width:36px;height:36px;padding-left:10px;border:3px solid transparent;border-radius:8px}.duet-chip-container.duet-chip-input .duet-chip-remove-button:hover{background:rgb(217, 236, 245);background-clip:padding-box}.duet-chip-container.duet-chip-input.duet-chip-selected{background:rgb(240, 247, 250)}.duet-chip-container.duet-chip-input.duet-chip-selected.duet-chip-hover{background:rgb(217, 236, 245)}.duet-chip-container.duet-chip-input.duet-chip-selected .duet-chip-remove-button:hover{background:rgb(198, 225, 238);background-clip:padding-box}.duet-chip-container.duet-chip-input.duet-theme-turva:hover{border-color:rgb(199, 202, 207)}.duet-chip-container.duet-chip-input.duet-theme-turva.duet-chip-hover{border-color:rgb(198, 12, 48)}.duet-chip-container.duet-chip-input.duet-theme-turva .duet-chip-remove-button:hover{background:rgb(255, 241, 241)}.duet-chip-container.duet-chip-input.duet-theme-turva.duet-chip-selected{background:rgb(255, 241, 241)}.duet-chip-container.duet-chip-input.duet-theme-turva.duet-chip-selected.duet-chip-hover{background:rgb(255, 213, 215);background-clip:padding-box}.duet-chip-container.duet-chip-input.duet-theme-turva.duet-chip-selected .duet-chip-remove-button:hover{background:rgb(255, 185, 190);background-clip:padding-box}.duet-chip-container.large button,.duet-chip-container.large label{padding:15px 22px}:host(.user-is-tabbing) .duet-chip-focus,:host(.user-is-tabbing) .duet-chip-delete-focus .duet-chip-remove-button{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-chip-focus.duet-theme-turva,:host(.user-is-tabbing) .duet-chip-delete-focus .duet-chip-remove-button.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-chip-container input,*::slotted([slot=input]){position:absolute !important;top:0;left:0;z-index:-1;width:100%;height:100%;margin:0;cursor:pointer;border-width:2px;border-radius:8px;opacity:0;appearance:none}*::slotted([slot=input]:not([aria-disabled=true])){z-index:1}';export{p as duet_chip}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ import{r as t,h as e,H as a,g as o,c as i}from"./p-a083b91a.js";import{i as s}from"./p-aaa7a7bd.js";import{h as n,b as r}from"./p-b33512d6.js";import{s as d,u as l,o as b,p as c,d as u,b as h,a as p,c as g}from"./p-a45e3f8b.js";import{g as m,c as f,d as x,a as v}from"./p-e3857119.js";import{d as k}from"./p-cc67e773.js";import{c as w}from"./p-5e59e970.js";import"./p-9c3c64b9.js";import"./p-0d7da85a.js";const y=class{constructor(e){t(this,e),this.currentIndex=0,this.scrollPaneElement=void 0,this.hasCollapseButtonLabelSlot=!1,this.resizeObserver=new ResizeObserver((t=>{if(1===(null==t?void 0:t.length)){const e=this.getOverlayWidth();this.checkScrollingNeeded(t[0].target,e)}})),this.collapsedOnClick=()=>{this.collapsed=!this.collapsed},this.scrollPaneAtStart=!0,this.needsScrolling=!0,this.scrollPaneAtEnd=!1,this.childrenData={},this.theme="",this.identifier="",this.collapsed=!1,this.buttons=!0,this.buttonAlignment="center",this.buttonPosition="relative",this.center=!1,this.padding="none",this.gap="large",this.selected=0}watchPropHandler(t){this.scrollToElement(t,"center")}componentWillLoad(){s(this),this.hasCollapseButtonLabelSlot=n(this.element,"collapse-button-label")}componentDidLoad(){requestAnimationFrame((()=>{this.scrollPaneElement&&(this.checkScrollingNeeded(this.scrollPaneElement,"absolute"===this.buttonPosition?0:5),this.updateScrollButtons(),this.resizeObserver.observe(this.scrollPaneElement))}))}disconnectedCallback(){this.resizeObserver.disconnect()}getScrollPaneElements(){return r(this.element)}checkScrollingNeeded(t=this.scrollPaneElement,e=5){var a;if(!t)return;const o=(null===(a=t.parentElement)||void 0===a?void 0:a.getBoundingClientRect().width)||0,i=t.scrollWidth,s=2*this.getOverlayWidth();this.needsScrolling=i-s>o+e,this.needsScrolling?this.updateScrollButtons():(this.scrollPaneAtStart=!0,this.scrollPaneAtEnd=!0)}getLastVisibleElement(){const t=this.getScrollPaneElements().find((t=>t.getBoundingClientRect().x+t.getBoundingClientRect().width-this.scrollPaneElement.getBoundingClientRect().x>this.scrollPaneElement.clientWidth)),e=this.getScrollPaneElements().indexOf(t);return t.clientWidth>this.scrollPaneElement.clientWidth?e:e-1}getFirstVisibleElement(){const t=this.getScrollPaneElements(),e=t.find((t=>t.getBoundingClientRect().x>this.scrollPaneElement.getBoundingClientRect().x)),a=e?t.indexOf(e):t.length;var o=Math.max(a-1,0);return t[o].clientWidth>this.scrollPaneElement.clientWidth?o:a}updateScrollButtons(t=null,e=this.scrollPaneElement){if(this.buttons){if(t&&t.clientWidth>this.scrollPaneElement.clientWidth){const e=this.getScrollPaneElements().indexOf(t);return 0==e&&(this.scrollPaneAtStart=!0),void(e==this.getScrollPaneElements().length-1&&(this.scrollPaneAtEnd=!0))}e.scrollLeft<=0?this.scrollPaneAtStart=!0:e.scrollLeft>0&&(this.scrollPaneAtStart=!1),e.clientWidth+e.scrollLeft+this.getOverlayWidth()>=e.scrollWidth?this.scrollPaneAtEnd=!0:e.clientWidth+e.scrollLeft+this.getOverlayWidth()<e.scrollWidth&&(this.scrollPaneAtEnd=!1)}}scrollToElement(t=this.currentIndex,e){const a=this.getScrollPaneElements();if(!a||0===a.length)return;t+1>=a.length&&(t=a.length-1),t<0&&(t=0);let o=a[0].getBoundingClientRect().x,i=5;const s=()=>{if(a[0].getBoundingClientRect().x===o){if(i--,0!==i)return void window.requestAnimationFrame(s);this.updateScrollButtons(a[t])}else window.requestAnimationFrame(s),o=a[0].getBoundingClientRect().x};a[t].scrollIntoView({behavior:"smooth",block:"nearest",inline:e}),window.requestAnimationFrame(s)}scrollLeft(){this.scrollPaneAtEnd=!1;const t=this.getFirstVisibleElement();this.scrollToElement(t-1,"center")}scrollRight(){this.scrollPaneAtStart=!1;const t=this.getLastVisibleElement();this.scrollToElement(t+1,"center")}getOverlayWidth(){return"absolute"===this.buttonPosition?0:10}renderButton(t){const a="turva"===this.theme?"color-primary-darker-turva":"color-primary",o="turva"===this.theme?"color-gray-turva":"color-gray",i=()=>{"left"===t?this.scrollLeft():this.scrollRight()},s="left"===t?this.scrollPaneAtStart:this.scrollPaneAtEnd;return e("div",{class:{"duet-scrollable-button-container":!0,[`${t}`]:!0,"duet-scrollable-button-container--occluded":!this.needsScrolling,[`duet-scrollable-button-container--${this.buttonPosition}`]:!0},hidden:!this.buttons||"absolute"===this.buttonPosition&&s},e("span",{part:`${this.identifier}-button-${t}`,"aria-hidden":"true",class:{"duet-scrollable-button":!0,[`duet-scrollable-button--${this.buttonPosition}`]:!0,[`duet-scrollable-button--${this.buttonAlignment}`]:!0,[`duet-scrollable-button--${t}`]:!0},onClick:()=>{i(),document.activeElement&&document.activeElement.blur()},hidden:!this.buttons||s},e("duet-icon",{color:s?o:a,name:"left"===t?"action-arrow-left":"action-arrow-right",size:"absolute"===this.buttonPosition?"x-small":"small",margin:"none"})))}render(){return e(a,{key:"65a41819ff5a4fc6439dad5a825100dac1b612d5",class:{"duet-theme-turva":"turva"===this.theme,"duet-theme-default":"default"===this.theme}},this.hasCollapseButtonLabelSlot&&e("div",{key:"a6c99e77cba06a8d3860a99fd2dc86e3031788da",class:{collapse:!0,hide:!this.needsScrolling&&!this.collapsed}},e("duet-button",{key:"3b8f3e1e318c3fcded2f9827c4a9af4c6196909c",variation:"plain",margin:"none","center-text":!0,onClick:()=>this.collapsedOnClick()},e("slot",{key:"613245c8fb10c0165cf7d4a0074b9601dc1feca5",name:"collapse-button-label"}))),e("div",{key:"6f36e5e9b18de0faadc546236545b966ef7977e0",class:{"duet-scrollable-items":!0,buttons:this.buttons,center:this.center,"duet-theme-turva":"turva"===this.theme}},this.buttons&&this.renderButton("left"),e("div",{key:"4177a64fde1b078c4141ef466efaa1be1e0a002e",class:{"duet-scrollable-list":!0,[`duet-scrollable-list--${this.buttonPosition}`]:!0,[`gap-${this.gap}`]:!0,collapsed:this.collapsed,[`duet-overflow-padding--${this.padding}`]:"none"!==this.padding,[`duet-scrollable-list--${this.buttonPosition}`]:"absolute"===this.buttonPosition},onScroll:()=>this.updateScrollButtons(),ref:t=>this.scrollPaneElement=t},e("slot",{key:"b83cacb280520642b51ff7380203cd9ff9a4655c"})),this.buttons&&this.renderButton("right")))}get element(){return o(this)}static get watchers(){return{selected:["watchPropHandler"]}}};y.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent}:host{position:relative !important}:host .duet-scrollable-items{position:relative;display:flex}:host .duet-scrollable-items.buttons .duet-scrollable-button-container{position:relative;flex:0 0 auto;flex-basis:40px}:host .duet-scrollable-items.buttons .duet-scrollable-button-container--occluded{flex-basis:0;flex-shrink:1;width:0;padding:10px 0;overflow:hidden;visibility:hidden}:host .duet-scrollable-items.buttons .duet-scrollable-button-container--absolute{position:absolute;top:0;z-index:202;width:auto;height:100%;padding:0 16px;background-color:rgb(255, 255, 255)}:host .duet-scrollable-items.buttons .duet-scrollable-button-container--absolute.left{left:0}:host .duet-scrollable-items.buttons .duet-scrollable-button-container--absolute.right{right:0}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button{position:absolute;display:flex;flex:0 0 auto;flex-basis:40px;align-items:center;height:100%;cursor:pointer;transition:transform 300ms ease}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button:active duet-icon{transition:transform 300ms ease;transform:scale(0.8)}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--left{left:0;padding:10px 10px 10px 0}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--right{right:0;padding:10px 0 10px 10px}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--top{align-items:flex-start}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--bottom{align-items:flex-end}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute{padding:0 7px;border:1px solid rgb(212, 223, 229)}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute.duet-scrollable-button--left{border-radius:8px 0 0 8px}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute.duet-scrollable-button--right{border-radius:0 8px 8px 0}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute:hover{border-color:rgb(0, 119, 179);border-width:2px;}.duet-theme-turva :host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute:hover{border-color:rgb(113, 118, 132)}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button[hidden]{display:none !important}:host .duet-scrollable-items.duet-theme-turva .duet-scrollable-button-container .duet-scrollable-button--absolute:hover{border-color:rgb(113, 118, 132)}:host .duet-scrollable-items .duet-scrollable-list{display:flex;flex-wrap:nowrap;padding-inline:10px;margin-inline:-10px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scroll-snap-type:x mandatory;scroll-behavior:smooth;scroll-margin:0 20px;-ms-overflow-style:-ms-autohiding-scrollbar;-webkit-overflow-scrolling:touch;-webkit-mask:linear-gradient(to right, transparent 0, #fff 10px), linear-gradient(to left, transparent 0, #fff 10px);-webkit-mask-size:50% 100%, 50% 100%;-webkit-mask-position:left, right;-webkit-mask-repeat:no-repeat;mask:linear-gradient(to right, transparent 0, #fff 10px), linear-gradient(to left, transparent 0, #fff 10px);mask-size:50% 100%, 50% 100%;mask-position:left, right;mask-repeat:no-repeat;}:host .duet-scrollable-items .duet-scrollable-list--absolute{padding-right:0;padding-left:2px;margin-inline:0;-webkit-mask:none !important;mask:none !important}:host .duet-scrollable-items .duet-scrollable-list:not(.buttons){white-space:normal}:host .duet-scrollable-items .duet-scrollable-list::-webkit-scrollbar{display:none}:host .duet-scrollable-items .duet-scrollable-list.collapsed{flex-wrap:wrap}:host .duet-scrollable-items .duet-scrollable-list.gap-none{gap:0}:host .duet-scrollable-items .duet-scrollable-list.gap-large{gap:20px}:host .duet-scrollable-items .duet-scrollable-list.duet-overflow-padding--xx-small{padding-top:4px;padding-bottom:4px}:host .duet-scrollable-items .duet-scrollable-list.duet-overflow-padding--x-small{padding-top:8px;padding-bottom:8px}:host .duet-scrollable-items .duet-scrollable-list.duet-overflow-padding--small{padding-top:12px;padding-bottom:12px}:host .duet-scrollable-items .duet-scrollable-list.duet-overflow-padding--medium{padding-top:16px;padding-bottom:16px}:host .duet-scrollable-items.center{justify-content:center}:host .duet-scrollable-items.center .duet-scrollable-list.collapsed{justify-content:center}.collapse{width:100%;text-align:center}.collapse.hide{visibility:hidden}::slotted(*){flex-shrink:0;margin-left:0;-webkit-transition:-webkit-transform 0.2s ease-in-out;transition:-webkit-transform 0.2s ease-in-out;transition:transform 0.2s ease-in-out;transition:transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;scroll-snap-align:center}";const z=class{constructor(e){t(this,e),this.setupContentElement=()=>{this.contentId&&(this.tabpanelElement=document.getElementById(this.contentId),this.tabpanelElement&&(this.tabpanelElement.setAttribute("role","tabpanel"),this.tabpanelElement.setAttribute("tabindex","-1"),this.tabpanelElement.removeEventListener("focus",this.tabpanelElementFocusListener),this.tabpanelElement.removeEventListener("blur",this.tabpanelElementBlurListener),this.tabpanelElement.addEventListener("focus",this.tabpanelElementFocusListener),this.tabpanelElement.addEventListener("blur",this.tabpanelElementBlurListener),this.accessibleDescription&&this.tabpanelElement.setAttribute("aria-description",this.accessibleDescription),this.accessibleLabelledBy&&this.tabpanelElement.setAttribute("aria-labelledby",this.accessibleLabelledBy),this.tabpanelElement.toggleAttribute("hidden",!this.selected)))},this.tabpanelElementFocusListener=()=>{this.element.classList.contains("user-is-tabbing")&&(this.tabpanelElement.style.outline="0",this.tabpanelElement.style.boxShadow=k("turva"===this.theme?"focus-turva":"focus"))},this.tabpanelElementBlurListener=()=>{this.tabpanelElement.style.outline=null,this.tabpanelElement.style.boxShadow=null},this.theme="",this.label=void 0,this.caption=void 0,this.selected=void 0,this.notificationMark=void 0,this.accessibleDescriptionDefault=null,this.accessibleDescription=this.accessibleDescriptionDefault?m(this.accessibleDescriptionDefault):null,this.accessibleLabelledBy=void 0,this.contentId=void 0}componentWillLoad(){s(this)}connectedCallback(){f(this,{prop:"accessibleDescription",defaults:"accessibleDescriptionDefault"}),d(this),this.setupContentElement()}disconnectedCallback(){x(this),l(this),this.tabpanelElement&&(this.tabpanelElement.removeEventListener("focus",this.tabpanelElementFocusListener.bind(this)),this.tabpanelElement.removeEventListener("blur",this.tabpanelElementBlurListener.bind(this)),this.tabpanelElement=void 0)}setupSelected(t,e){!!t!=!!e&&this.setupContentElement()}async setFocus(t){this.tabpanelElement.focus(t)}render(){return e("div",{key:"7b32395451131750ebd28c6967302efb6205f9e8",ref:t=>{this.contentId||(this.tabpanelElement=t)},role:"tabpanel",class:{"duet-theme-turva":"turva"===this.theme,"duet-tab":!0,selected:this.selected,"has-content-id":!!this.contentId},"aria-description":this.accessibleDescription,"aria-labelledby":this.accessibleLabelledBy,tabindex:"-1"},e("slot",{key:"ca8b2a951dc90dc029b9088d1f2888a0deccf673"}))}get element(){return o(this)}static get watchers(){return{selected:["setupSelected"]}}};z.style=":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-tab{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:none;width:100%}.duet-tab.selected{display:block}.duet-tab.has-content-id,.duet-tab.has-content-id.selected{display:none}:host(.user-is-tabbing) .duet-tab:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-tab.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}";const S=class{constructor(e){t(this,e),this.duetChange=i(this,"duetChange",3),this.duetTabChange=i(this,"duetTabChange",7),this.duetTabChangeRequested=i(this,"duetTabChangeRequested",7),this.id=w("DuetTabGroup"),this.handleKeyDown=t=>{let e;u(t)||h(t)?e=t.target.previousElementSibling:(p(t)||g(t))&&(e=t.target.nextElementSibling),b(t)&&!c(t)&&(t.preventDefault(),this.element.querySelector(":scope > duet-tab[selected]").setFocus()),e&&(t.preventDefault(),e.click(),e.focus())},this.onTabSelect=t=>{this.tabChangeConfirm?t!==this.selected&&this.duetTabChangeRequested.emit({value:t,component:"duet-tab-group"}):this.openTab(t)},this.scrollToActive=()=>{setTimeout((()=>{const t=this.tabsContainer.querySelector(".selected");t&&t.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})}),50)},this.tabs=[],this.selected=void 0,this.theme="",this.scrolls=!0,this.collapses=!1,this.accessibleLabel=void 0,this.variation="default",this.language=v(),this.labelDefaults={fi:"Valitse",en:"Choose",sv:"Välj"},this.label=m(this.labelDefaults,this.language),this.labelHidden=!0,this.identifier=this.id,this.margin="auto",this.padding="auto",this.setTabIndex=!0,this.tabChangeConfirm=!1,this.switchLargeBreakpoint="small"}async connectedCallback(){"undefined"!=typeof MutationObserver&&(this.mutationO=new MutationObserver((()=>{this.updateTabs()})),this.mutationO.observe(this.element,{attributes:!0,attributeFilter:["label"],childList:!0,characterData:!0,subtree:!0})),await this.updateTabs(),d(this)}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0),l(this)}componentWillLoad(){s(this)}componentDidLoad(){this.intersectionObserver=new IntersectionObserver((t=>{t.length>0&&t[0].isIntersecting&&(this.scrollToActive(),this.intersectionObserver.disconnect())}),{root:null,threshold:0}),this.intersectionObserver.observe(this.element)}async openTab(t){if(t>=this.tabs.length)throw new Error(`[duet-tabs] Index ${t} is out of bounds of tabs length`);this.selected=t,this.tabs.forEach(((e,a)=>{e.selected=a===t})),this.scrollToActive();const e={value:t,component:"duet-tab-group"};this.duetChange.emit(e),this.duetTabChange.emit(e)}async refresh(){console.log("[duet-tabs] Refresh method is deprecated and will be removed in the future version.")}getTabs(){const t=Array.from(this.element.querySelectorAll("duet-tab")).filter((t=>t.closest("duet-tab-group")===this.element));if(0===t.length)throw new Error("[duet-tabs] Must have at least one tab");return t}getButtonId(t){return`${this.id}-button-${t}`}getTabId(t){return`${this.id}-tab-${t}`}getAccessibleDescription(t){return this.tabs[t].getAttribute("accessible-description")||null}async updateTabs(){this.selected=void 0,this.tabs=this.getTabs(),this.tabs.forEach(((t,e)=>{t.id=this.getTabId(e),t.selected&&(void 0===this.selected?this.selected=e:t.selected=!1)})),void 0===this.selected&&(this.selected=0,this.tabs[0].selected=!0)}isCentered(){return window&&"center"==window.getComputedStyle(this.element).textAlign}render(){const t="plain-scrolling"===this.variation?"duet-tab-variation-plain":`duet-tab-variation-${this.variation}`,a="checked"===this.variation||"plain-scrolling"===this.variation,o=`switch-large-at-${this.switchLargeBreakpoint?this.switchLargeBreakpoint:"small"}`,i=this.tabs.map(((t,a)=>e("button",{role:"tab",id:this.getButtonId(a),"aria-selected":t.selected?"true":"false","aria-description":this.getAccessibleDescription(a),tabindex:t.selected?"0":"-1",part:`${this.identifier}-button ${t.selected?`${this.identifier}-button--selected`:""}`,type:"button",class:{"duet-p-0":"none"===this.padding,"duet-tab-button":!0,"stackable-tab":"checked"===this.variation&&this.tabs.length<=3,selected:t.selected,[`duet-notification-mark-${t.notificationMark}`]:!!t.notificationMark,[o]:!!["default","plain","plain-scrolling"].includes(this.variation)},onClick:()=>this.onTabSelect(a),onKeyDown:t=>this.handleKeyDown(t)},"checked"===this.variation?e("div",{class:{"checked-tab-content":!0,"stackable-checked-tab-content":this.tabs.length<=3}},e("div",{class:{"checked-tab-description":!0,"stackable-description":this.tabs.length<=3}},e("p",null,t.label),e("p",{class:{"tab-caption":!0,selected:t.selected}},t.caption)),e("div",{class:{"stackable-checkmark":this.tabs.length<=3}},e("duet-checkmark",{theme:this.theme,checked:t.selected,type:"radio","presentation-only":!0,center:!0}))):t.label)));return e("div",{key:"3d49c28ce5931105421ca174a2ec6f643d0ce715",class:{"duet-tab-group":!0,"duet-theme-turva":"turva"===this.theme,[t]:!0,"duet-tab-plain-scrolling":"plain-scrolling"===this.variation,"duet-tab-group-scrolls":!0},"aria-label":this.accessibleLabel},e("div",{key:"5cd7a9b5948613b347fc9d95037c73d3e8624031",role:"tablist",class:{"duet-m-0":"none"===this.margin||"checked"===this.variation,"duet-tab-group-tabs":!0,"duet-tab-group-hidden":this.tabs.length>3&&!a},ref:t=>{this.tabsContainer=t}},"checked"===this.variation?i:e("duet-scrollable",{selected:this.selected,identifier:this.identifier,gap:["default","plain","plain-scrolling"].includes(this.variation)?"none":"large",buttonPosition:"default"===this.variation?"absolute":"relative",center:this.isCentered()?this.isCentered():"center"==this.element.style.textAlign},i)),e("div",{key:"f9cecb1f747afdde050d7e14f3803167bf4e8db0",class:{"duet-tab-group-content":!0,"duet-m-0":"none"===this.margin,"checked-group-content":"checked"===this.variation}},e("slot",{key:"89f26fa4755c6a826c439625dc2beef88fc57cfd"})))}get element(){return o(this)}};S.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;display:block;width:100%}.duet-tab-group-tabs{margin-bottom:28px !important;display:block;width:100%;max-width:100%;padding-top:2px;list-style:none}.duet-tab-group-tabs.duet-m-0{margin:0 !important}.duet-tab-variation-plain .duet-tab-group-tabs{border-bottom:1px solid rgb(212, 223, 229)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-group-tabs{border-bottom-color:rgb(222, 224, 228)}.duet-tab-variation-checked .duet-tab-group-tabs{display:flex;gap:4px;padding-top:0;padding-right:12px;padding-left:12px;overflow-x:scroll;-ms-overflow-style:none;scrollbar-width:none;}.duet-tab-variation-checked .duet-tab-group-tabs::-webkit-scrollbar{display:none}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-group-tabs{gap:8px;padding-right:16px;padding-left:16px;overflow:visible}}.duet-tab-plain-scrolling .duet-tab-group-tabs{display:flex;overflow-x:scroll;scroll-behavior:smooth;-ms-overflow-style:none;scrollbar-width:none;}.duet-tab-plain-scrolling .duet-tab-group-tabs::-webkit-scrollbar{display:none}@media (min-width: 36em){.duet-tab-plain-scrolling .duet-tab-group-tabs{display:block;overflow:auto}}@media (min-width: 36em){duet-select{display:none !important}}.duet-tab-button{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:inline-block;width:auto;padding:20px;margin-left:-2px;overflow:visible;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.1;text-align:left;text-decoration:none;cursor:pointer;border-right:2px solid rgb(212, 223, 229);border-radius:0;transition:150ms ease}.duet-tab-button.duet-p-0{padding:0 !important}.duet-tab-button.duet-m-0{margin:0 !important}.duet-tab-button.duet-notification-mark-warning::after{position:absolute;top:6px;right:6px;display:inline-block;width:6px;height:6px;content:"";border-radius:50%;background:rgb(247, 178, 40);box-shadow:0 0 0 1px #dea024}.duet-tab-variation-plain .duet-tab-button.duet-notification-mark-warning::after{top:calc(50% - 0.5rem - 6px);right:-6px}.duet-tab-button.duet-notification-mark-danger::after{position:absolute;top:6px;right:6px;display:inline-block;width:6px;height:6px;content:"";border-radius:50%;background:rgb(214, 28, 82);box-shadow:0 0 0 1px #c1194a}.duet-tab-variation-plain .duet-tab-button.duet-notification-mark-danger::after{top:calc(50% - 0.5rem - 6px);right:-6px}.duet-theme-turva .duet-tab-button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-theme-turva .duet-tab-button.duet-notification-mark-warning::after{position:absolute;top:6px;right:6px;display:inline-block;width:6px;height:6px;content:"";border-radius:50%;background:rgb(247, 178, 40);box-shadow:0 0 0 1px #dea024}.duet-tab-variation-plain .duet-theme-turva .duet-tab-button.duet-notification-mark-warning::after{top:calc(50% - 0.5rem - 6px);right:-6px}.duet-theme-turva .duet-tab-button.duet-notification-mark-danger::after{position:absolute;top:6px;right:6px;display:inline-block;width:6px;height:6px;content:"";border-radius:50%;background:rgb(214, 28, 82);box-shadow:0 0 0 1px #c1194a}.duet-tab-variation-plain .duet-theme-turva .duet-tab-button.duet-notification-mark-danger::after{top:calc(50% - 0.5rem - 6px);right:-6px}.duet-tab-button.duet-p-0{padding:0 !important}.duet-tab-button:hover{z-index:200;border-color:rgb(127, 150, 165)}.duet-theme-turva .duet-tab-button:hover{border-color:rgb(143, 147, 158)}.duet-tab-button:active{opacity:0.75;transition:none}.duet-tab-button.selected{z-index:201;color:rgb(0, 119, 179);background:rgb(255, 255, 255);border-bottom:3px solid rgb(0, 119, 179);outline:0;box-shadow:none !important}.duet-theme-turva .duet-tab-button.selected{color:rgb(198, 12, 48);border-color:rgb(222, 224, 228);border-bottom-color:rgb(198, 12, 48)}.duet-tab-button:focus{z-index:200;outline:0}:host(.user-is-tabbing) .duet-tab-button:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3 !important}:host(.user-is-tabbing) .duet-theme-turva .duet-tab-button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a !important}.duet-tab-variation-default .duet-tab-button{padding:11px 20px 13px 20px;overflow:hidden;font-size:0.875rem;color:rgb(81, 105, 123);background:rgb(245, 248, 250);border:1px solid rgb(212, 223, 229)}.duet-tab-variation-default .duet-tab-button.switch-large-at-always{padding:15px 28px 17px 28px;font-size:1rem}@media (min-width: 36em){.duet-tab-variation-default .duet-tab-button.switch-large-at-small{padding:15px 28px 17px 28px;font-size:1rem}}.duet-tab-variation-default .duet-tab-button.selected{color:rgb(8, 42, 77);background:rgb(255, 255, 255)}.duet-tab-variation-default .duet-tab-button.selected::after{position:absolute;right:-1px;bottom:0;z-index:300;display:block;width:calc(100% + 2px);height:2px;content:"";background-color:rgb(0, 119, 179)}.duet-tab-variation-default .duet-tab-button:not(.selected){box-shadow:0 3px 2px -1px rgba(0, 41, 77, 0.1) inset, 0 0 0 rgb(212, 223, 229)}.duet-tab-variation-default .duet-tab-button:hover:not(.selected){color:rgb(45, 64, 81);background:rgb(228, 236, 239)}.duet-tab-variation-default .duet-tab-button:first-child{border-radius:8px 0 0 8px}.duet-tab-variation-default .duet-tab-button:last-child{border-radius:0 8px 8px 0}.duet-theme-turva.duet-tab-variation-default .duet-tab-button{color:rgb(98, 104, 122)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button.selected{color:rgb(51, 5, 20);background:rgb(255, 255, 255)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button.selected::after{background-color:rgb(198, 12, 48)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button:not(.selected){box-shadow:0 3px 2px -1px rgba(23, 28, 58, 0.1) inset, 0 0 0 rgb(222, 224, 228)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button:hover:not(.selected){color:rgb(45, 52, 79);background:rgb(234, 235, 239)}.duet-tab-variation-plain .duet-tab-button{display:inline-block;width:auto;padding:12px 0;margin-left:0;font-size:0.875rem;color:rgb(98, 121, 138);border-width:0;border-radius:0;transition:none}.duet-tab-variation-plain .duet-tab-button.switch-large-at-always{padding:20px 0;font-size:1rem}@media (min-width: 36em){.duet-tab-variation-plain .duet-tab-button.switch-large-at-small{padding:20px 0;font-size:1rem}}.duet-tab-variation-plain .duet-tab-button:hover{color:rgb(8, 42, 77)}.duet-tab-variation-plain .duet-tab-button.selected{color:rgb(8, 42, 77);border-bottom:2px solid rgb(0, 119, 179)}.duet-tab-variation-plain .duet-tab-button+.duet-tab-button{margin-left:36px}.duet-theme-turva.duet-tab-variation-plain .duet-tab-button{color:rgb(113, 118, 132)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-button:hover{color:rgb(51, 5, 20)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-button.selected{color:rgb(51, 5, 20);border-bottom:2px solid rgb(198, 12, 48)}.duet-tab-variation-checked .duet-tab-button{position:relative;display:inline-block;flex-basis:0;flex-grow:1;width:200px;min-width:200px;padding:8px 4px;border-color:rgb(181, 198, 208);border-top:2px solid rgb(181, 198, 208);border-bottom-color:rgb(0, 119, 179);border-left:2px solid rgb(181, 198, 208);border-radius:4px 4px 0 0;transition:none}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button{border-color:rgb(181, 198, 208);border-bottom-color:rgb(113, 118, 132)}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button{min-width:0;padding:16px}}.duet-tab-variation-checked .duet-tab-button.stackable-tab{min-width:0}.duet-tab-variation-checked .duet-tab-button:first-child{margin-left:auto}.duet-tab-variation-checked .duet-tab-button:last-child{margin-right:auto}.duet-tab-variation-checked .duet-tab-button:active{opacity:1;transition:none}.duet-tab-variation-checked .duet-tab-button.selected{color:rgb(0, 119, 179);background:linear-gradient(180deg, rgb(240, 247, 250) 0%, rgb(255, 255, 255) 100%);border-color:rgb(0, 119, 179);border-bottom-color:#fff}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button.selected{color:rgb(23, 28, 58);background:linear-gradient(180deg, rgb(245, 247, 250) 0%, rgb(255, 255, 255) 100%);border-color:rgb(113, 118, 132);border-bottom-color:#fff}.duet-tab-variation-checked .duet-tab-button .checked-tab-content{display:flex;flex-direction:row;justify-content:space-between}.duet-tab-variation-checked .duet-tab-button .checked-tab-content.stackable-checked-tab-content{flex-direction:column;height:100%}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content.stackable-checked-tab-content{flex-direction:row}}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description{display:flex;flex-direction:column;overflow:hidden;overflow-wrap:break-word}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description.stackable-description{text-align:center}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description.stackable-description{text-align:left}}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{margin-top:4px;font-size:0.875rem;font-weight:400;color:rgb(98, 121, 138)}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{font-size:1rem;text-align:left}}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{color:rgb(113, 118, 132)}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption.selected{color:rgb(0, 119, 179)}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption.selected{color:rgb(113, 118, 132)}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .stackable-checkmark{order:-1;margin-top:8px;margin-bottom:8px}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .stackable-checkmark{order:1}}.duet-tab-group-content{position:relative;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(8, 42, 77);text-align:left}.duet-tab-group-content:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3 !important}.duet-theme-turva .duet-tab-group-content:focus,.duet-tab-group-content:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a !important}.duet-tab-group-content.checked-group-content{padding:28px 0 28px 0}.duet-tab-group-content.checked-group-content::after{position:absolute;top:-2px;left:0;width:100%;height:2px;content:" ";background-color:rgb(0, 119, 179)}.duet-theme-turva .duet-tab-group-content{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-theme-turva .duet-tab-group-content.checked-group-content::after{background-color:rgb(113, 118, 132)}';export{y as duet_scrollable,z as duet_tab,S as duet_tab_group}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,h as t,H as a,g as n}from"./p-4dcb6a39.js";import{i}from"./p-aaa7a7bd.js";const r=class{constructor(t){e(this,t),this.theme="",this.active=!1,this.href="#",this.icon=void 0,this.accessibleLabel=void 0}componentWillLoad(){i(this)}render(){return t(a,{key:"73fa38bbe6bd2a1ab5c43148c47183a41cc149a2",role:"listitem"},t("a",{key:"b0066b2b752490798a03ec6481c87ba9b0172509",class:{"duet-menu-bar-link":!0,"duet-theme-turva":"turva"===this.theme,active:this.active},href:this.href,"aria-current":this.active?"true":"false","aria-label":this.accessibleLabel},this.icon&&t("duet-icon",{key:"58c53cacc9c3350d819ded713740f6145534ec14",class:"menu-bar-link-icon",theme:this.theme,size:"auto",name:this.icon,margin:"none",color:"currentColor"}),t("slot",{key:"9c3f4910e64a251b3d28cc1bc7da48fea680b3f6"})))}get element(){return n(this)}};r.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;height:100%}.duet-menu-bar-link{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 12px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:inherit;text-align:center;text-decoration:none;white-space:nowrap}.duet-menu-bar-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-menu-bar-link:focus,.duet-menu-bar-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-menu-bar-link .menu-bar-link-icon{width:20px;height:20px}@media (min-width: 62em){.duet-menu-bar-link .menu-bar-link-icon{width:16px;height:16px}}.duet-menu-bar-link.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"}@media (min-width: 62em){.duet-menu-bar-link{padding:0 16px}}@media (min-width: 76.25em){.duet-menu-bar-link{padding:0 28px}}.duet-menu-bar-link.active{color:rgb(0, 119, 179)}.duet-menu-bar-link.active::after{position:absolute;top:auto;bottom:2px;left:0;z-index:1;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(2px)}@media (min-width: 62em){.duet-menu-bar-link.active::after{z-index:auto;height:2px}}.duet-menu-bar-link.active.duet-theme-turva{color:rgb(198, 12, 48)}.duet-menu-bar-link.active.duet-theme-turva::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-menu-bar-link:hover{color:rgb(0, 119, 179)}.duet-menu-bar-link:hover.duet-theme-turva{color:rgb(198, 12, 48)}}';export{r as duet_menu_bar_link}
4
+ import{r as e,h as t,H as a,g as n}from"./p-a083b91a.js";import{i}from"./p-aaa7a7bd.js";const r=class{constructor(t){e(this,t),this.theme="",this.active=!1,this.href="#",this.icon=void 0,this.accessibleLabel=void 0}componentWillLoad(){i(this)}render(){return t(a,{key:"fdaeb3bbc3139a6031ea4b61f161d459206fc6d8",role:"listitem"},t("a",{key:"e2163ec995b08f3745ac33a2f456fde9a10de8f1",class:{"duet-menu-bar-link":!0,"duet-theme-turva":"turva"===this.theme,active:this.active},href:this.href,"aria-current":this.active?"true":"false","aria-label":this.accessibleLabel},this.icon&&t("duet-icon",{key:"e41a7f68a2184de5ed830ec665c80df3db14ed05",class:"menu-bar-link-icon",theme:this.theme,size:"auto",name:this.icon,margin:"none",color:"currentColor"}),t("slot",{key:"2b0673f8f66eb2d40694e33f031c5c2e5e85bade"})))}get element(){return n(this)}};r.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;height:100%}.duet-menu-bar-link{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 12px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:inherit;text-align:center;text-decoration:none;white-space:nowrap}.duet-menu-bar-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-menu-bar-link:focus,.duet-menu-bar-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-menu-bar-link .menu-bar-link-icon{width:20px;height:20px}@media (min-width: 62em){.duet-menu-bar-link .menu-bar-link-icon{width:16px;height:16px}}.duet-menu-bar-link.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"}@media (min-width: 62em){.duet-menu-bar-link{padding:0 16px}}@media (min-width: 76.25em){.duet-menu-bar-link{padding:0 28px}}.duet-menu-bar-link.active{color:rgb(0, 119, 179)}.duet-menu-bar-link.active::after{position:absolute;top:auto;bottom:2px;left:0;z-index:1;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(2px)}@media (min-width: 62em){.duet-menu-bar-link.active::after{z-index:auto;height:2px}}.duet-menu-bar-link.active.duet-theme-turva{color:rgb(198, 12, 48)}.duet-menu-bar-link.active.duet-theme-turva::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-menu-bar-link:hover{color:rgb(0, 119, 179)}.duet-menu-bar-link:hover.duet-theme-turva{color:rgb(198, 12, 48)}}';export{r as duet_menu_bar_link}
@@ -1,4 +1,4 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,n){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function o(e){try{s(n.next(e))}catch(e){r(e)}}function d(e){try{s(n["throw"](e))}catch(e){r(e)}}function s(e){e.done?i(e.value):a(e.value).then(o,d)}s((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,a,r,o;return o={next:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function d(e){return function(t){return s([e,t])}}function s(d){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,d[0]&&(i=0)),i)try{if(n=1,a&&(r=d[0]&2?a["return"]:d[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,d[1])).done)return r;if(a=0,r)d=[d[0]&2,r.value];switch(d[0]){case 0:case 1:r=d;break;case 4:i.label++;return{value:d[1],done:false};case 5:i.label++;a=d[1];d=[0];continue;case 7:d=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(d[0]===6||d[0]===2)){i=0;continue}if(d[0]===3&&(!r||d[1]>r[0]&&d[1]<r[3])){i.label=d[1];break}if(d[0]===6&&i.label<r[1]){i.label=r[1];r=d;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(d);break}if(r[2])i.ops.pop();i.trys.pop();continue}d=t.call(e,i)}catch(e){d=[6,e];a=0}finally{n=r=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:true}}};
1
+ var __awaiter=this&&this.__awaiter||function(e,t,i,n){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function o(e){try{d(n.next(e))}catch(e){r(e)}}function s(e){try{d(n["throw"](e))}catch(e){r(e)}}function d(e){e.done?i(e.value):a(e.value).then(o,s)}d((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,a,r,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return d([e,t])}}function d(s){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(i=0)),i)try{if(n=1,a&&(r=s[0]&2?a["return"]:s[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,s[1])).done)return r;if(a=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;a=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){i.label=s[1];break}if(s[0]===6&&i.label<r[1]){i.label=r[1];r=s;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(s);break}if(r[2])i.ops.pop();i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e];a=0}finally{n=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register(["./p-2cdacb01.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-a4170fe7.system.js","./p-afad5fd3.system.js"],(function(e){"use strict";var t,i,n,a,r,o,d,s,u,l,h,c;return{setters:[function(e){t=e.r;i=e.c;n=e.h;a=e.H;r=e.g},function(e){o=e.i},function(e){d=e.c},function(e){s=e.g;u=e.h;l=e.c},function(e){h=e.f;c=e.w}],execute:function(){var f='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:28px !important;margin-bottom:12px !important;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.vertical){margin-right:0 !important}:host(.horizontal){margin-bottom:0 !important;width:auto}:host(.horizontal) .duet-label .duet-label-content{max-width:100%}@media (min-width: 48em){:host(.horizontal-responsive){margin-right:28px !important;margin-bottom:0 !important;width:auto}:host(.horizontal-responsive):last-child,:host(.horizontal-responsive):last-of-type{margin-right:0 !important}:host(.horizontal-responsive) .duet-label .duet-label-content{max-width:100%}}:host(.duet-m-0){margin:0 !important}:host(:last-child:not(:only-child)){margin-right:0 !important;margin-bottom:0 !important}.duet-label{position:relative;z-index:100;display:flex;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;hyphens:auto;line-height:1.5;color:rgb(8, 42, 77);word-break:break-word;overflow-wrap:break-word;cursor:pointer;background:transparent}.duet-theme-turva .duet-label{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-label .duet-label-content{flex-grow:1;font-size:1rem}.duet-label-hidden .duet-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.duet-radio-container{position:relative;width:100%;height:100%}.duet-label::before{z-index:100;flex-shrink:0;width:20px;height:20px;margin:2px 10px 1px 1px;content:"";background:rgb(255, 255, 255);border:1px solid rgb(8, 42, 77);border-radius:50%}.duet-theme-turva .duet-label::before{border-color:rgb(23, 28, 58)}.duet-label.focus::before{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-label.focus::before{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-label.checked::after{position:absolute;top:6px;left:5px;z-index:200;flex-shrink:0;width:12px;height:12px;content:"";background:rgb(0, 119, 179);border-radius:50%}.duet-theme-turva .duet-label.checked::after{background:rgb(23, 28, 58)}.duet-label.disabled{color:rgb(98, 121, 138)}.duet-theme-turva .duet-label.disabled{color:rgb(143, 147, 158)}.duet-label.disabled::before{border-color:rgb(181, 198, 208)}.duet-theme-turva .duet-label.disabled::before{border-color:rgb(143, 147, 158)}.duet-label.disabled.checked::before{border:1px solid rgb(127, 150, 165)}.duet-label.disabled.checked::after{background:rgb(127, 150, 165)}.duet-theme-turva .duet-label.disabled.checked::after{background:rgb(143, 147, 158);border-color:rgb(143, 147, 158)}*::slotted([slot=input]){padding:14px !important;position:absolute;top:0;left:0;z-index:200;width:100%;height:100%;cursor:pointer;opacity:0}*::slotted([slot=input][disabled]){cursor:default}';var b=f;var p=e("duet_radio",function(){function e(e){var n=this;t(this,e);this.duetChange=i(this,"duetChange",7);this.duetFocus=i(this,"duetFocus",7);this.duetBlur=i(this,"duetBlur",7);this.radioId=d("DuetRadio");this.radioInputListenersRemove=function(e){e.removeEventListener("change",n.onChange);e.removeEventListener("focus",n.onFocus);e.removeEventListener("blur",n.onBlur)};this.radioInputListenersAdd=function(e){e.addEventListener("change",n.onChange);e.addEventListener("focus",n.onFocus);e.addEventListener("blur",n.onBlur)};this.radioInputSetUp=function(){var e=n.element.querySelector("input[slot=input]");var t=e||document.createElement("input");t.slot="input";t.disabled=n.disabled||n.groupDisabled?true:undefined;t.id=n.identifier||n.radioId;t.type="radio";t.name=n.name;t.value=n.value;t.checked=n.checked;if(n.accessibleIndex){t.tabIndex=Number(n.accessibleIndex)}t.required=n.required;t.role=n.role;if(n.accessibleControls){t.setAttribute("aria-controls",n.accessibleControls)}if(n.accessibleActiveDescendant){t.setAttribute("aria-activedescendant",n.accessibleActiveDescendant)}if(n.accessibleOwns){t.setAttribute("aria-owns",n.accessibleOwns)}if(n.accessibleDescribedBy){t.setAttribute("aria-describedby",n.accessibleDescribedBy)}if(n.accessibleLabelledBy){t.setAttribute("aria-labelledby",n.accessibleLabelledBy)}if(n.accessibleDetails){t.setAttribute("aria-details",n.accessibleDetails)}if(n.accessibleDescription){t.setAttribute("aria-description",n.accessibleDescription)}if(n.hasLabel){var i=s(n.element,"label");t.ariaLabel=i.length>0?i[0].textContent:n.labelElement.textContent}else{t.ariaLabel=n.labelElement.textContent}if(e){n.radioInputListenersRemove(t)}else{n.element.appendChild(t)}n.radioInputListenersAdd(t);n.focusableElement=t};this.onClick=function(e){e.stopPropagation()};this.onChange=function(e){var t=n.focusableElement;var i=t.checked;n.checked=i;if(n.checked&&!n.blockEvents){n.duetChange.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-radio"})}};this.onBlur=function(e){n.focus=false;n.duetBlur.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-radio"})};this.onFocus=function(e){n.focus=true;n.duetFocus.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-radio"})};this.focus=false;this.accessibleActiveDescendant=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleIndex=undefined;this.margin="auto";this.accessibleControls=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.theme="";this.disabled=false;this.required=false;this.blockEvents=false;this.identifier=undefined;this.label="label";this.name=undefined;this.role=undefined;this.groupDisabled=undefined;this.groupDirection=undefined;this.groupResponsive=undefined;this.checked=undefined;this.value=undefined}e.prototype.componentWillLoad=function(){o(this);this.hasLabel=u(this.element,"label");if(this.value===undefined){this.value=this.identifier}};e.prototype.componentDidRender=function(){this.radioInputSetUp()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.focusableElement.focus(e);return[2]}))}))};e.prototype.render=function(){var e=this;return n(a,{key:"a18e1bea800f34ba634ddbdd7ef3b2741ac05693",onClick:this.onClick,class:{horizontal:this.groupDirection==="horizontal"&&!this.groupResponsive,"horizontal-responsive":this.groupDirection==="horizontal"&&this.groupResponsive,"duet-m-0":this.margin==="none"}},n("div",{key:"dd86df6b4f97f44ee5371a2e586d48eb6673e434",class:{"duet-radio-container":true,"duet-theme-turva":this.theme==="turva"}},n("slot",{key:"bf1968e5b50d89b25ccb6659f6b55450bf9c1d04",name:"input"}),n("label",{key:"3aa9841af26a9ad017a09c58e49f793a08f3d2a5",inert:true,ref:function(t){return e.labelElement=t},class:{"duet-label":true,checked:this.checked,focus:this.focus,disabled:this.disabled||this.groupDisabled}},n("div",{key:"83ebf1480f51c230592b3c03c35d14583c7ffa8c",class:"duet-label-content"},this.hasLabel?n("slot",{name:"label"}):this.label))))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());p.style=b;var g="*,*::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%}:host(.horizontal) .duet-radio-group{display:block}@media (min-width: 48em){:host(.horizontal) .duet-radio-group{display:flex}}:host(.horizontal) .duet-radio-group.duet-no-stacking{display:flex}.deut-radio-group{width:100%}";var m=g;var v=e("duet_radio_group",function(){function e(e){var i=this;t(this,e);this.onSelect=function(e){var t=e.target;if(t){i.value=t.value}e.cancelBubble=true};this.direction="vertical";this.margin="auto";this.theme="";this.error="";this.tooltip="";this.tooltipDirection="auto";this.name=undefined;this.label="Label";this.labelHidden=false;this.caption="";this.responsive=false;this.value=undefined;this.disabled=undefined;this.required=false;this.accessibleLiveError="polite"}e.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;var i=this;return __generator(this,(function(n){switch(n.label){case 0:e=this.element;if(!(this.value===undefined))return[3,2];t=h(e,"duet-radio");if(!(t!==undefined))return[3,2];return[4,t.componentOnReady()];case 1:n.sent();if(this.value===undefined){this.value=t.value}n.label=2;case 2:this.mutationO=c(e,"duet-radio",(function(e){if(e!==undefined){e.componentOnReady().then((function(){i.value=e.value}))}else{i.updateRadios()}}));this.updateRadios();return[2]}}))}))};e.prototype.disconnectedCallback=function(){if(this.mutationO){this.mutationO.disconnect();this.mutationO=undefined}};e.prototype.componentWillLoad=function(){o(this);l(this.element,"tooltip","duet-tooltip",1,true)};e.prototype.updateRadios=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,a,r;return __generator(this,(function(o){e=Array.from(this.element.querySelectorAll("duet-radio"));t=this.value;i=false;for(n=0,a=e;n<a.length;n++){r=a[n];r.name=this.name;r.required=this.required;r.groupDisabled=this.disabled;r.groupDirection=this.direction;r.groupResponsive=this.responsive;if(!i&&r.value===t){i=true;r.checked=true}else{r.checked=false}}if(!i){this.value=undefined}return[2]}))}))};e.prototype.render=function(){return n(a,{key:"06a0092d79d87d126c715a5f80fdca32f81c4260",onDuetChange:this.onSelect,class:{horizontal:this.direction==="horizontal"}},n("duet-fieldset",{key:"b480698152e4ba0f6096e22fe5b2d2ef5719c08f",label:this.label,labelHidden:this.labelHidden,caption:this.caption,error:this.error,margin:this.margin,theme:this.theme,"accessible-live-error":this.accessibleLiveError},this.tooltip&&n("duet-tooltip",{key:"0bbc2332af615b1d1534fdae79d39036dec09fd0",slot:"tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),n("slot",{key:"50b1bddedeb3504bd7ccccd813b537aedd68d213",name:"tooltip"}),n("div",{key:"dbfa825c2a57227ce0ca869e4c5d7081c6fb65fb",class:{"duet-radio-group":true,"duet-no-stacking":!this.responsive}},n("slot",{key:"96dd9c4c5a812fdad734d74fecaaf2b10d4fd513"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{name:["updateRadios"],value:["updateRadios"],disabled:["updateRadios"],direction:["updateRadios"],responsive:["updateRadios"]}},enumerable:false,configurable:true});return e}());v.style=m}}}));
4
+ */System.register(["./p-61173f11.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-abc0c9c6.system.js","./p-afad5fd3.system.js"],(function(e){"use strict";var t,i,n,a,r,o,s,d,u,l,h,c;return{setters:[function(e){t=e.r;i=e.c;n=e.h;a=e.H;r=e.g},function(e){o=e.i},function(e){s=e.c},function(e){d=e.g;u=e.h;l=e.c},function(e){h=e.f;c=e.w}],execute:function(){var f='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:28px !important;margin-bottom:12px !important;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.vertical){margin-right:0 !important}:host(.horizontal){margin-bottom:0 !important;width:auto}:host(.horizontal) .duet-label .duet-label-content{max-width:100%}@media (min-width: 48em){:host(.horizontal-responsive){margin-right:28px !important;margin-bottom:0 !important;width:auto}:host(.horizontal-responsive):last-child,:host(.horizontal-responsive):last-of-type{margin-right:0 !important}:host(.horizontal-responsive) .duet-label .duet-label-content{max-width:100%}}:host(.duet-m-0){margin:0 !important}:host(:last-child:not(:only-child)){margin-right:0 !important;margin-bottom:0 !important}.duet-label{position:relative;z-index:100;display:flex;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;hyphens:auto;line-height:1.5;color:rgb(8, 42, 77);word-break:break-word;overflow-wrap:break-word;cursor:pointer;background:transparent}.duet-theme-turva .duet-label{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-label .duet-label-content{flex-grow:1;font-size:1rem}.duet-label-hidden .duet-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.duet-radio-container{position:relative;width:100%;height:100%}.duet-label::before{z-index:100;flex-shrink:0;width:20px;height:20px;margin:2px 10px 1px 1px;content:"";background:rgb(255, 255, 255);border:1px solid rgb(8, 42, 77);border-radius:50%}.duet-theme-turva .duet-label::before{border-color:rgb(23, 28, 58)}.duet-label.focus::before{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-label.focus::before{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-label.checked::after{position:absolute;top:6px;left:5px;z-index:200;flex-shrink:0;width:12px;height:12px;content:"";background:rgb(0, 119, 179);border-radius:50%}.duet-theme-turva .duet-label.checked::after{background:rgb(23, 28, 58)}.duet-label.disabled{color:rgb(98, 121, 138)}.duet-theme-turva .duet-label.disabled{color:rgb(143, 147, 158)}.duet-label.disabled::before{border-color:rgb(181, 198, 208)}.duet-theme-turva .duet-label.disabled::before{border-color:rgb(143, 147, 158)}.duet-label.disabled.checked::before{border:1px solid rgb(127, 150, 165)}.duet-label.disabled.checked::after{background:rgb(127, 150, 165)}.duet-theme-turva .duet-label.disabled.checked::after{background:rgb(143, 147, 158);border-color:rgb(143, 147, 158)}*::slotted([slot=input]){padding:14px !important;position:absolute;top:0;left:0;z-index:200;width:100%;height:100%;cursor:pointer;opacity:0}*::slotted([slot=input][disabled]){cursor:default}';var b=f;var p=e("duet_radio",function(){function e(e){var n=this;t(this,e);this.duetChange=i(this,"duetChange",7);this.duetFocus=i(this,"duetFocus",7);this.duetBlur=i(this,"duetBlur",7);this.radioId=s("DuetRadio");this.radioInputListenersRemove=function(e){e.removeEventListener("change",n.onChange);e.removeEventListener("focus",n.onFocus);e.removeEventListener("blur",n.onBlur)};this.radioInputListenersAdd=function(e){e.addEventListener("change",n.onChange);e.addEventListener("focus",n.onFocus);e.addEventListener("blur",n.onBlur)};this.radioInputSetUp=function(){var e=n.element.querySelector("input[slot=input]");var t=e||document.createElement("input");t.slot="input";t.disabled=n.disabled||n.groupDisabled?true:undefined;t.id=n.identifier||n.radioId;t.type="radio";t.name=n.name;t.value=n.value;t.checked=n.checked;if(n.accessibleIndex){t.tabIndex=Number(n.accessibleIndex)}t.required=n.required;t.role=n.role;if(n.accessibleControls){t.setAttribute("aria-controls",n.accessibleControls)}if(n.accessibleActiveDescendant){t.setAttribute("aria-activedescendant",n.accessibleActiveDescendant)}if(n.accessibleOwns){t.setAttribute("aria-owns",n.accessibleOwns)}if(n.accessibleDescribedBy){t.setAttribute("aria-describedby",n.accessibleDescribedBy)}if(n.accessibleLabelledBy){t.setAttribute("aria-labelledby",n.accessibleLabelledBy)}if(n.accessibleDetails){t.setAttribute("aria-details",n.accessibleDetails)}if(n.accessibleDescription){t.setAttribute("aria-description",n.accessibleDescription)}if(n.hasLabel){var i=d(n.element,"label");t.ariaLabel=i.length>0?i[0].textContent:n.labelElement.textContent}else{t.ariaLabel=n.labelElement.textContent}if(e){n.radioInputListenersRemove(t)}else{n.element.appendChild(t)}n.radioInputListenersAdd(t);n.focusableElement=t};this.onClick=function(e){e.stopPropagation()};this.onChange=function(e){var t=n.focusableElement;var i=t.checked;n.checked=i;if(n.checked&&!n.blockEvents){n.duetChange.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-radio"})}};this.onBlur=function(e){n.focus=false;n.duetBlur.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-radio"})};this.onFocus=function(e){n.focus=true;n.duetFocus.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-radio"})};this.focus=false;this.accessibleActiveDescendant=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleIndex=undefined;this.margin="auto";this.accessibleControls=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.theme="";this.disabled=false;this.required=false;this.blockEvents=false;this.identifier=undefined;this.label="label";this.name=undefined;this.role=undefined;this.groupDisabled=undefined;this.groupDirection=undefined;this.groupResponsive=undefined;this.checked=undefined;this.value=undefined}e.prototype.componentWillLoad=function(){o(this);this.hasLabel=u(this.element,"label");if(this.value===undefined){this.value=this.identifier}};e.prototype.componentDidRender=function(){this.radioInputSetUp()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.focusableElement.focus(e);return[2]}))}))};e.prototype.render=function(){var e=this;return n(a,{key:"71feb70b911cc0fba0477c38c4c78027fabb993a",onClick:this.onClick,class:{horizontal:this.groupDirection==="horizontal"&&!this.groupResponsive,"horizontal-responsive":this.groupDirection==="horizontal"&&this.groupResponsive,"duet-m-0":this.margin==="none"}},n("div",{key:"26f49063c919e1f8b1985bb2cd00edccec3629e4",class:{"duet-radio-container":true,"duet-theme-turva":this.theme==="turva"}},n("slot",{key:"0188449e087a008b708a81d62230b656f4396191",name:"input"}),n("label",{key:"517939dfd2bc7e479da99c060f25c54bf01fa74a",inert:true,ref:function(t){return e.labelElement=t},class:{"duet-label":true,checked:this.checked,focus:this.focus,disabled:this.disabled||this.groupDisabled}},n("div",{key:"483eac94eeac2d2b5e0fc62672d6605253cf982b",class:"duet-label-content"},this.hasLabel?n("slot",{name:"label"}):this.label))))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());p.style=b;var g="*,*::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%}:host(.horizontal) .duet-radio-group{display:block}@media (min-width: 48em){:host(.horizontal) .duet-radio-group{display:flex}}:host(.horizontal) .duet-radio-group.duet-no-stacking{display:flex}.deut-radio-group{width:100%}";var m=g;var v=e("duet_radio_group",function(){function e(e){var i=this;t(this,e);this.onSelect=function(e){var t=e.target;if(t){i.value=t.value}e.cancelBubble=true};this.direction="vertical";this.margin="auto";this.theme="";this.error="";this.tooltip="";this.tooltipDirection="auto";this.name=undefined;this.label="Label";this.labelHidden=false;this.caption="";this.responsive=false;this.value=undefined;this.disabled=undefined;this.required=false;this.accessibleLiveError="polite"}e.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;var i=this;return __generator(this,(function(n){switch(n.label){case 0:e=this.element;if(!(this.value===undefined))return[3,2];t=h(e,"duet-radio");if(!(t!==undefined))return[3,2];return[4,t.componentOnReady()];case 1:n.sent();if(this.value===undefined){this.value=t.value}n.label=2;case 2:this.mutationO=c(e,"duet-radio",(function(e){if(e!==undefined){e.componentOnReady().then((function(){i.value=e.value}))}else{i.updateRadios()}}));this.updateRadios();return[2]}}))}))};e.prototype.disconnectedCallback=function(){if(this.mutationO){this.mutationO.disconnect();this.mutationO=undefined}};e.prototype.componentWillLoad=function(){o(this);l(this.element,"tooltip","duet-tooltip",1,true)};e.prototype.updateRadios=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,a,r;return __generator(this,(function(o){e=Array.from(this.element.querySelectorAll("duet-radio"));t=this.value;i=false;for(n=0,a=e;n<a.length;n++){r=a[n];r.name=this.name;r.required=this.required;r.groupDisabled=this.disabled;r.groupDirection=this.direction;r.groupResponsive=this.responsive;if(!i&&r.value===t){i=true;r.checked=true}else{r.checked=false}}if(!i){this.value=undefined}return[2]}))}))};e.prototype.render=function(){return n(a,{key:"f3c3b14c2b0d936385748b6cfb3c09a0fde813ff",onDuetChange:this.onSelect,class:{horizontal:this.direction==="horizontal"}},n("duet-fieldset",{key:"dc64cd942714993dc800b15e44055402b833ac63",label:this.label,labelHidden:this.labelHidden,caption:this.caption,error:this.error,margin:this.margin,theme:this.theme,"accessible-live-error":this.accessibleLiveError},this.tooltip&&n("duet-tooltip",{key:"c4e8b11b406cf10c2d2bec5f31bf04d972a02a05",slot:"tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),n("slot",{key:"c3ea1e7fe615d332469195adcd29807d5a71e16c",name:"tooltip"}),n("div",{key:"196baf0e73047d0bff685702fdf92a783563b5ec",class:{"duet-radio-group":true,"duet-no-stacking":!this.responsive}},n("slot",{key:"52e895a33bda7b26e7b95e28219ce7466ab5234a"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{name:["updateRadios"],value:["updateRadios"],disabled:["updateRadios"],direction:["updateRadios"],responsive:["updateRadios"]}},enumerable:false,configurable:true});return e}());v.style=m}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,h as t,H as a,g as i}from"./p-4dcb6a39.js";import{i as s}from"./p-aaa7a7bd.js";import{e as o,d as l}from"./p-fc09c464.js";import{F as n}from"./p-402af830.js";import{a as d,c as r,d as c,g as p}from"./p-3afaf734.js";import{h as u}from"./p-b0ef5620.js";import{g as h}from"./p-cc67e773.js";import"./p-9c3c64b9.js";import"./p-0d7da85a.js";const b=class{constructor(t){e(this,t),this.exitLangObject={en:"Exit the menu",fi:"Poistu valikosta",sv:"Avsluta menyn"},this.backLangObject={en:"Back to main menu",fi:"Takaisin päävalikkoon",sv:"Tillbaka till huvudmenyn"},this.hasStickyHeaderSlot=!1,this.updateLabel=()=>{const e=this.element.querySelector("[slot='label']");this.label=e},this.toggleMenu=()=>{this.open=!this.open},this.onClick=()=>{this.toggleMenu()},this.onCloseClick=e=>{if(e.stopPropagation(),"DUET-SLIDEOUT"===this.element.parentElement.tagName){const e=this.element.parentElement;o(this.dialog),this.bodyScrollLocked=!1,e.toggle()}},this.label=void 0,this.language=d(),this.bodyScrollLocked=!1,this.theme="",this.active=!1,this.open=!1,this.icon=void 0,this.labelSize="medium",this.backgroundColor="primary-lightest",this.badge=!1}componentWillLoad(){s(this),this.updateLabel(),this.hasStickyHeaderSlot=u(this.element,"sticky-header")}connectedCallback(){r(this),this.mutationObserver=new MutationObserver((()=>{if("DUET-SLIDEOUT"===this.element.parentElement.tagName){const e=this.element.parentElement;e.open&&this.open&&!this.bodyScrollLocked?(this.bodyScrollLocked=!0,l(this.dialog,{reserveScrollBarGap:!0})):!e.open&&this.bodyScrollLocked&&(this.bodyScrollLocked=!1,o(this.dialog))}})),this.mutationObserver.observe(this.element.parentElement,{childList:!1,attributeFilter:["open"],subtree:!1})}disconnectedCallback(){c(this),this.dialog&&(o(this.dialog),this.bodyScrollLocked=!1),this.mutationObserver&&this.mutationObserver.disconnect()}handleOpenChange(e,t){!!e!=!!t&&(this.open&&!t?setTimeout((()=>{Array.from(this.element.parentElement.children).forEach((e=>{e!==this.element&&(e.inert=!0)})),this.bodyScrollLocked||(l(this.dialog,{reserveScrollBarGap:!0}),this.bodyScrollLocked=!0),this.closeButton.focus()}),200):!this.open&&t&&setTimeout((()=>{Array.from(this.element.parentElement.children).forEach((e=>{e.inert=!1})),this.openButton.focus(),o(this.dialog),this.bodyScrollLocked=!1}),200))}async setFocus(e){this.open?setTimeout((()=>{this.closeButton.focus(e)}),200):setTimeout((()=>{this.openButton.focus(e)}),200)}render(){const e={background:h("primary-lightest"===this.backgroundColor&&"turva"===this.theme?"gray-lighter":this.backgroundColor,this.theme)},i=p(this.exitLangObject),s=p(this.backLangObject);return t(a,{key:"32c6f6ea4eeac3499498244624a0aaf3f896f1a4"},t("div",{key:"e6563dd635d4f9896633b8a76f697239ce10fda1",class:{"duet-slideout-panel":!0,"duet-theme-turva":"turva"===this.theme,active:this.open}},t("button",{key:"3689db100799eb081f0c070c0fd8e1701d83c092",ref:e=>this.openButton=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{link:!0,active:this.active},onClick:this.onClick,inert:this.open},this.icon&&t("div",{key:"f9eadbe5b58655629aa22fe774b502183e92ddb1",class:"duet-slideout-icon"},t("duet-icon",{key:"f84d1fcd2d420ebb76265242c2d8ef01e5356313",name:this.icon,size:"medium",margin:"none",color:"secondary"}),this.badge&&t("div",{key:"3317aef4eb6b10856b0e8e3dbee6db72697f8732",class:"duet-slideout-badge"})),t("span",{key:"2490ffd21816ef2903f1cea69c2885917aba5016",class:"label"},t("span",{key:"09f27658cd8d89c87a43ec93ebc38da5c5f94c83",class:{"label-text":!0,[this.labelSize]:!0}},t("slot",{key:"fb9e8343be8f8d0169c64509f451027e8d2a6b6b",name:"label"})),t("duet-icon",{key:"d124572f81f6a5c913fa8368f435db597933c30e",class:"caret",name:"action-arrow-right",margin:"none",size:"x-small",color:"secondary"}))),t("div",{key:"2c5ae6d73798fe116493c0813f5f367d9a614341",ref:e=>this.dialog=e,class:{dialog:!0,hidden:!this.open},style:e},t(n,{key:"3871236cfaca8944dea857fe4ab87642fbf1a98d",moveFocusTo:this.closeButton}),t("div",{key:"dc789469f6b408a5909c4032a0d5c19bb36a1cb4",class:{"top-container":!0,"has-sticky-header-slot":this.hasStickyHeaderSlot}},t("div",{key:"729e23f6d5279439445cb25981fa4a48316c0dec",class:"top"},t("button",{key:"7c810b9edc27f5ea8a7928f7163631850ab45e0f",ref:e=>this.closeButton=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-label":`${s}`,type:"button",class:{back:!0},onClick:this.onClick},t("duet-icon",{key:"7db3cd52fec2f81cabda72ca55bb6375dc852e5a",class:"caret",name:"action-arrow-left",margin:"none",size:"small",color:"secondary"})),t("span",{key:"81906fdecddd9f53c7c7a97c9f134a8ca34768c5"},this.label.innerHTML),t("button",{key:"c20b49d22a939f99eb926b46b62860a7b6622a3d",class:"close",type:"button",onClick:this.onCloseClick,"aria-label":`${i}`},t("duet-icon",{key:"ca2f8682f77f2e4e272b86922b724e3c54c8e2e6",name:"navigation-close",size:"small",margin:"none",color:"secondary"}))),t("div",{key:"eb36eaa974c19690abc3abf59309cd22e07ff52e",class:"sticky-header"},t("slot",{key:"e974aeec3fb2cbe118572c4ca35ead87a1c5861d",name:"sticky-header"}))),t("div",{key:"7fa7812d1ac9fe82f7781ae98bb31065498d0667",tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:!0}},t("slot",{key:"fc31455ee1078696b7677b636bbfe8a80ce6fd51"})),t(n,{key:"6045674ecaf7f7db881af487368014f3723238de",moveFocusTo:this.closeButton}))))}get element(){return i(this)}static get watchers(){return{open:["handleOpenChange"]}}};b.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;height:100%}:host slot:not([name=label])::slotted(*){position:relative;top:0.5rem;opacity:0;transition:top 0.3s ease-in, opacity 0.3s ease-in}:host([open]) slot:not([name=label])::slotted(*){top:0;opacity:1}.duet-slideout-panel{position:relative;height:100%}.duet-slideout-panel .link{position:relative;display:flex;gap:20px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:8px 0;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.5rem;font-weight:800;line-height:1.25;color:rgb(8, 42, 77);text-align:left;text-decoration:none;cursor:pointer}.duet-slideout-panel .link .duet-slideout-icon{position:relative;display:inline-flex;font-size:0;line-height:normal;vertical-align:baseline}.duet-slideout-panel .link .duet-slideout-icon .duet-slideout-badge{position:absolute;top:0;left:16px;display:inline-block;width:6px;height:6px;background:rgb(247, 178, 40);border-radius:50%;box-shadow:0 0 0 1px #c18b1f}.duet-theme-turva .duet-slideout-panel .link .duet-slideout-icon .duet-slideout-badge{background:rgb(247, 178, 40)}@media (min-width: 62em){.duet-slideout-panel .link .duet-slideout-icon{margin-right:8px}}.duet-slideout-panel .link .label{display:flex;gap:0.5rem;align-items:center;justify-content:space-between;width:100%}.duet-slideout-panel .link .label-text.small{font-size:1rem;font-weight:600}.duet-slideout-panel .link .label-text.medium{font-size:1.25rem;font-weight:600}.duet-slideout-panel .link .label-text.large{font-size:1.5rem;font-weight:800}.duet-slideout-panel .link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout-panel .link.active .label-text{position:relative}.duet-slideout-panel .link.active .label-text.small::after{height:1px;transform:translateY(1px)}.duet-slideout-panel .link.active .label-text::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:2px;content:"";background:rgb(0, 119, 179);transform:translateY(2px)}.duet-slideout-panel .dialog{position:fixed;top:0;left:0;z-index:600;width:100%;height:100%;overflow-y:auto;visibility:visible}.duet-slideout-panel .dialog.hidden{visibility:hidden}.duet-slideout-panel .dialog.hidden .top .back,.duet-slideout-panel .dialog.hidden .top span{opacity:0}.duet-slideout-panel .top-container.has-sticky-header-slot{position:sticky;top:0;z-index:200}.duet-slideout-panel .top-container.has-sticky-header-slot .top{background:rgb(240, 247, 250)}.duet-slideout-panel .top-container.has-sticky-header-slot .sticky-header{display:block;padding:0 16px}.duet-slideout-panel .top{display:flex;align-items:center;justify-content:space-between;padding:4px}.duet-slideout-panel .top .back{opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .top .back:focus,.duet-slideout-panel .top .close:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout-panel .top duet-icon{padding:16px}.duet-slideout-panel .top span{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.5;color:rgb(8, 42, 77);opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .sticky-header{display:none;width:100%;padding:0 1.5rem;margin-bottom:20px;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229)}.duet-slideout-panel .items{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:1rem 16px;overflow-y:auto;color:rgb(8, 42, 77)}.duet-slideout-panel.duet-theme-turva .link{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-slideout-panel.duet-theme-turva .link:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-panel.duet-theme-turva .link.active .label-text::after{background:rgb(198, 12, 48)}.duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .top{background:rgb(245, 247, 250)}.duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-slideout-panel.duet-theme-turva .top .back:focus,.duet-slideout-panel.duet-theme-turva .top .close:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-panel.duet-theme-turva .top span{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)}slot:not([name=label]){--active-height:1px;--active-translate-y:translateY(1px);font-size:1rem;font-weight:600;color:rgb(8, 42, 77)}.duet-theme-turva slot:not([name=label]){color:rgb(23, 28, 58)}';export{b as duet_slideout_panel}
4
+ import{r as e,h as t,H as a,g as i}from"./p-a083b91a.js";import{i as s}from"./p-aaa7a7bd.js";import{e as o,d as l}from"./p-fc09c464.js";import{F as n}from"./p-083bbc28.js";import{a as d,c as r,d as c,g as p}from"./p-e3857119.js";import{h as u}from"./p-b33512d6.js";import{g as h}from"./p-cc67e773.js";import"./p-9c3c64b9.js";import"./p-0d7da85a.js";const b=class{constructor(t){e(this,t),this.exitLangObject={en:"Exit the menu",fi:"Poistu valikosta",sv:"Avsluta menyn"},this.backLangObject={en:"Back to main menu",fi:"Takaisin päävalikkoon",sv:"Tillbaka till huvudmenyn"},this.hasStickyHeaderSlot=!1,this.updateLabel=()=>{const e=this.element.querySelector("[slot='label']");this.label=e},this.toggleMenu=()=>{this.open=!this.open},this.onClick=()=>{this.toggleMenu()},this.onCloseClick=e=>{if(e.stopPropagation(),"DUET-SLIDEOUT"===this.element.parentElement.tagName){const e=this.element.parentElement;o(this.dialog),this.bodyScrollLocked=!1,e.toggle()}},this.label=void 0,this.language=d(),this.bodyScrollLocked=!1,this.theme="",this.active=!1,this.open=!1,this.icon=void 0,this.labelSize="medium",this.backgroundColor="primary-lightest",this.badge=!1}componentWillLoad(){s(this),this.updateLabel(),this.hasStickyHeaderSlot=u(this.element,"sticky-header")}connectedCallback(){r(this),this.mutationObserver=new MutationObserver((()=>{if("DUET-SLIDEOUT"===this.element.parentElement.tagName){const e=this.element.parentElement;e.open&&this.open&&!this.bodyScrollLocked?(this.bodyScrollLocked=!0,l(this.dialog,{reserveScrollBarGap:!0})):!e.open&&this.bodyScrollLocked&&(this.bodyScrollLocked=!1,o(this.dialog))}})),this.mutationObserver.observe(this.element.parentElement,{childList:!1,attributeFilter:["open"],subtree:!1})}disconnectedCallback(){c(this),this.dialog&&(o(this.dialog),this.bodyScrollLocked=!1),this.mutationObserver&&this.mutationObserver.disconnect()}handleOpenChange(e,t){!!e!=!!t&&(this.open&&!t?setTimeout((()=>{Array.from(this.element.parentElement.children).forEach((e=>{e!==this.element&&(e.inert=!0)})),this.bodyScrollLocked||(l(this.dialog,{reserveScrollBarGap:!0}),this.bodyScrollLocked=!0),this.closeButton.focus()}),200):!this.open&&t&&setTimeout((()=>{Array.from(this.element.parentElement.children).forEach((e=>{e.inert=!1})),this.openButton.focus(),o(this.dialog),this.bodyScrollLocked=!1}),200))}async setFocus(e){this.open?setTimeout((()=>{this.closeButton.focus(e)}),200):setTimeout((()=>{this.openButton.focus(e)}),200)}render(){const e={background:h("primary-lightest"===this.backgroundColor&&"turva"===this.theme?"gray-lighter":this.backgroundColor,this.theme)},i=p(this.exitLangObject),s=p(this.backLangObject);return t(a,{key:"3e5b55f03542b4078ee41b1ff6f0a8d601239791"},t("div",{key:"6220b1c96f0eefd971b0be2d3e64026ac5bfd467",class:{"duet-slideout-panel":!0,"duet-theme-turva":"turva"===this.theme,active:this.open}},t("button",{key:"3d188176100a87926dabcdf167e7843d3c4c73a7",ref:e=>this.openButton=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{link:!0,active:this.active},onClick:this.onClick,inert:this.open},this.icon&&t("div",{key:"5bda62a593954ce9401ac2e8957fd58913a4ff80",class:"duet-slideout-icon"},t("duet-icon",{key:"1a82e4449db67bedd65f5299f6c7d5e38bf0064f",name:this.icon,size:"medium",margin:"none",color:"secondary"}),this.badge&&t("div",{key:"ca9518dd19dbffd4d7e12902d9a79fd3b6d0239f",class:"duet-slideout-badge"})),t("span",{key:"4f3f26845dd7337944a31a6126114aaffade111d",class:"label"},t("span",{key:"79f43f5fcb192dca6f278e44a812ccb18fed9930",class:{"label-text":!0,[this.labelSize]:!0}},t("slot",{key:"0c676ffc9df3fd9f8cdc793aa0775d799f99cf0a",name:"label"})),t("duet-icon",{key:"09fd5d953aee5af50d1ad3096fa8ea5300ad38a1",class:"caret",name:"action-arrow-right",margin:"none",size:"x-small",color:"secondary"}))),t("div",{key:"a2d69000f5e72011f38094306607197da4c1be6d",ref:e=>this.dialog=e,class:{dialog:!0,hidden:!this.open},style:e},t(n,{key:"6a3e44b182bdb7f662e1e1445b5af239ae6d532f",moveFocusTo:this.closeButton}),t("div",{key:"b43e59b1d4307053e6db415a2873b19f7455d4f2",class:{"top-container":!0,"has-sticky-header-slot":this.hasStickyHeaderSlot}},t("div",{key:"cd3abce2e94d9170ee92c7fde98528f9d80347a2",class:"top"},t("button",{key:"c8db3e61bbc4c5e70f83a6ed219d925d7ed66624",ref:e=>this.closeButton=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-label":`${s}`,type:"button",class:{back:!0},onClick:this.onClick},t("duet-icon",{key:"0d633063603734ae6696a55f78b46d69f9a123ee",class:"caret",name:"action-arrow-left",margin:"none",size:"small",color:"secondary"})),t("span",{key:"9b47722f8b18d8009370dd8dad1e3efd01549c19"},this.label.innerHTML),t("button",{key:"8a03a8ec1baddd5b6c3cec3b82449c25baaf72be",class:"close",type:"button",onClick:this.onCloseClick,"aria-label":`${i}`},t("duet-icon",{key:"c5b46e81e5e280b3d23fee48a9fe88fd3e291291",name:"navigation-close",size:"small",margin:"none",color:"secondary"}))),t("div",{key:"7f6f22a3a232ced9de34b211fbbab88d5292168d",class:"sticky-header"},t("slot",{key:"afed92ed2333e55b311eea33f10550ce7a39c776",name:"sticky-header"}))),t("div",{key:"95b7ac98ec07f7665815fe24b5bd156a27eaa6f1",tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:!0}},t("slot",{key:"82b84a76815223e3c3e0478d5300fba75385d269"})),t(n,{key:"fbdc0a4eb86430546ecb7dd3e407fe5537b070c6",moveFocusTo:this.closeButton}))))}get element(){return i(this)}static get watchers(){return{open:["handleOpenChange"]}}};b.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;height:100%}:host slot:not([name=label])::slotted(*){position:relative;top:0.5rem;opacity:0;transition:top 0.3s ease-in, opacity 0.3s ease-in}:host([open]) slot:not([name=label])::slotted(*){top:0;opacity:1}.duet-slideout-panel{position:relative;height:100%}.duet-slideout-panel .link{position:relative;display:flex;gap:20px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:8px 0;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.5rem;font-weight:800;line-height:1.25;color:rgb(8, 42, 77);text-align:left;text-decoration:none;cursor:pointer}.duet-slideout-panel .link .duet-slideout-icon{position:relative;display:inline-flex;font-size:0;line-height:normal;vertical-align:baseline}.duet-slideout-panel .link .duet-slideout-icon .duet-slideout-badge{position:absolute;top:0;left:16px;display:inline-block;width:6px;height:6px;background:rgb(247, 178, 40);border-radius:50%;box-shadow:0 0 0 1px #c18b1f}.duet-theme-turva .duet-slideout-panel .link .duet-slideout-icon .duet-slideout-badge{background:rgb(247, 178, 40)}@media (min-width: 62em){.duet-slideout-panel .link .duet-slideout-icon{margin-right:8px}}.duet-slideout-panel .link .label{display:flex;gap:0.5rem;align-items:center;justify-content:space-between;width:100%}.duet-slideout-panel .link .label-text.small{font-size:1rem;font-weight:600}.duet-slideout-panel .link .label-text.medium{font-size:1.25rem;font-weight:600}.duet-slideout-panel .link .label-text.large{font-size:1.5rem;font-weight:800}.duet-slideout-panel .link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout-panel .link.active .label-text{position:relative}.duet-slideout-panel .link.active .label-text.small::after{height:1px;transform:translateY(1px)}.duet-slideout-panel .link.active .label-text::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:2px;content:"";background:rgb(0, 119, 179);transform:translateY(2px)}.duet-slideout-panel .dialog{position:fixed;top:0;left:0;z-index:600;width:100%;height:100%;overflow-y:auto;visibility:visible}.duet-slideout-panel .dialog.hidden{visibility:hidden}.duet-slideout-panel .dialog.hidden .top .back,.duet-slideout-panel .dialog.hidden .top span{opacity:0}.duet-slideout-panel .top-container.has-sticky-header-slot{position:sticky;top:0;z-index:200}.duet-slideout-panel .top-container.has-sticky-header-slot .top{background:rgb(240, 247, 250)}.duet-slideout-panel .top-container.has-sticky-header-slot .sticky-header{display:block;padding:0 16px}.duet-slideout-panel .top{display:flex;align-items:center;justify-content:space-between;padding:4px}.duet-slideout-panel .top .back{opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .top .back:focus,.duet-slideout-panel .top .close:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout-panel .top duet-icon{padding:16px}.duet-slideout-panel .top span{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.5;color:rgb(8, 42, 77);opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .sticky-header{display:none;width:100%;padding:0 1.5rem;margin-bottom:20px;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229)}.duet-slideout-panel .items{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:1rem 16px;overflow-y:auto;color:rgb(8, 42, 77)}.duet-slideout-panel.duet-theme-turva .link{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-slideout-panel.duet-theme-turva .link:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-panel.duet-theme-turva .link.active .label-text::after{background:rgb(198, 12, 48)}.duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .top{background:rgb(245, 247, 250)}.duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-slideout-panel.duet-theme-turva .top .back:focus,.duet-slideout-panel.duet-theme-turva .top .close:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-panel.duet-theme-turva .top span{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)}slot:not([name=label]){--active-height:1px;--active-translate-y:translateY(1px);font-size:1rem;font-weight:600;color:rgb(8, 42, 77)}.duet-theme-turva slot:not([name=label]){color:rgb(23, 28, 58)}';export{b as duet_slideout_panel}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,h as t,H as a,g as r}from"./p-4dcb6a39.js";const n=class{constructor(t){e(this,t)}render(){return t(a,{key:"07a0c619ae83ddb2963351585eda20ca0007b2fc",class:"duet-visually-hidden"},t("slot",{key:"916e0207629fc62f5dee03454e83e2825db3191c"}))}get element(){return r(this)}};n.style=":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}";export{n as duet_visually_hidden}
4
+ import{r as e,h as a,H as t,g as r}from"./p-a083b91a.js";const n=class{constructor(a){e(this,a)}render(){return a(t,{key:"4e73b8e8e3d246d4e425a653526f8e3847675c05",class:"duet-visually-hidden"},a("slot",{key:"43ab02712801040eeaa472a683c20629d6f4e865"}))}get element(){return r(this)}};n.style=":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}";export{n as duet_visually_hidden}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- System.register(["./p-2cdacb01.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-447e1392.system.js","./p-98636086.system.js"],(function(e){"use strict";var r,s,t,a,i,n,o,d,p;return{setters:[function(e){r=e.r;s=e.h;t=e.H;a=e.g},function(e){i=e.i},function(e){n=e.c},function(e){o=e.g;d=e.c;p=e.d},function(){}],execute:function(){var u="*,*::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:inherit}.duet-progress{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%;min-height:1px;}.duet-progress .progress-bar{position:relative;display:block;width:100%;height:inherit;min-height:1px;background-color:rgb(240, 247, 250);border-radius:0;box-shadow:none}.duet-theme-turva .duet-progress .progress-bar{background-color:rgb(255, 241, 241)}.duet-progress .progress-bar>span{display:block;height:inherit;text-indent:-9999px;background-color:rgb(0, 119, 179);border-radius:0}.duet-theme-turva .duet-progress .progress-bar>span{background-color:rgb(198, 12, 48)}.duet-progress progress[value]{display:flex;width:100%;height:inherit;min-height:1px;color:rgb(0, 119, 179);border:0 none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.duet-progress progress[value]::-webkit-progress-bar{background-color:rgb(240, 247, 250);border-radius:0}.duet-progress progress[value]::-webkit-progress-value{background-color:rgb(0, 119, 179);background-size:35px 20px, 100% 100%, 100% 100%;border-radius:0;-webkit-animation:animate-stripes 5s linear infinite;animation:animate-stripes 5s linear infinite}.duet-progress progress[value] ::-moz-progress-bar{background-color:rgb(240, 247, 250)}.duet-progress.duet-theme-turva progress[value]{color:rgb(198, 12, 48)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-bar{background-color:rgb(255, 241, 241)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-value{background-color:rgb(198, 12, 48)}.duet-progress.duet-theme-turva progress[value] ::-moz-progress-bar{background-color:rgb(255, 241, 241)}";var g=u;var l=e("duet_progress",function(){function e(e){r(this,e);this.progressId=n("DuetProgress");this.progressLabelId=n("DuetProgressLabel");this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLabel=undefined;this.accessibleLabelUploadDefaults={fi:["lähetys valmis","lähetys käynnissä"],sv:["Uppladdningen är klar","Uppladdning pågår"],en:["upload completed","upload in progress"]};this.accessibleLabelUpload=o(this.accessibleLabelUploadDefaults);this.progress=0;this.caption=undefined;this.height="10px";this.theme=""}e.prototype.componentWillLoad=function(){i(this)};e.prototype.connectedCallback=function(){d(this,{prop:"accessibleLabelUpload",defaults:"accessibleLabelUploadDefaults"})};e.prototype.disconnectedCallback=function(){p(this)};e.prototype.render=function(){return s(t,null,s("div",{"aria-live":this.accessibleLabel?"polite":"off","aria-hidden":this.accessibleLabel?"false":"true","aria-atomic":"true",style:{height:this.height},id:this.progressId,class:{"duet-progress":true,"duet-progress-done":this.progress===100,"duet-progress-start":this.progress===0,"duet-progress-inprogress":this.progress<99&&this.progress!==0,"duet-theme-turva":this.theme==="turva"}},s("duet-visually-hidden",null,s("label",{htmlFor:this.progressLabelId},s("span",null,this.accessibleLabel,this.progress!==0&&", ".concat(this.accessibleLabelUpload[this.progress<99?1:0])))),this.caption&&s("div",{class:"duet-progress-caption"},s("span",null,this.caption)),s("progress",{id:this.progressLabelId,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,role:"progressbar",value:this.progress,max:"100","aria-valuemin":"0","aria-valuemax":"100"},s("div",{class:"progress-bar"},s("span",{style:{width:"".concat(this.progress,"%;")}},"Progress: ",this.progress,"%")))))};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());l.style=g}}}));
4
+ System.register(["./p-61173f11.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-2bb44297.system.js","./p-98636086.system.js"],(function(e){"use strict";var r,s,t,a,i,n,o,p,d;return{setters:[function(e){r=e.r;s=e.h;t=e.H;a=e.g},function(e){i=e.i},function(e){n=e.c},function(e){o=e.g;p=e.c;d=e.d},function(){}],execute:function(){var u="*,*::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:inherit}.duet-progress{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%;min-height:1px;}.duet-progress .progress-bar{position:relative;display:block;width:100%;height:inherit;min-height:1px;background-color:rgb(240, 247, 250);border-radius:0;box-shadow:none}.duet-theme-turva .duet-progress .progress-bar{background-color:rgb(255, 241, 241)}.duet-progress .progress-bar>span{display:block;height:inherit;text-indent:-9999px;background-color:rgb(0, 119, 179);border-radius:0}.duet-theme-turva .duet-progress .progress-bar>span{background-color:rgb(198, 12, 48)}.duet-progress progress[value]{display:flex;width:100%;height:inherit;min-height:1px;color:rgb(0, 119, 179);border:0 none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.duet-progress progress[value]::-webkit-progress-bar{background-color:rgb(240, 247, 250);border-radius:0}.duet-progress progress[value]::-webkit-progress-value{background-color:rgb(0, 119, 179);background-size:35px 20px, 100% 100%, 100% 100%;border-radius:0;-webkit-animation:animate-stripes 5s linear infinite;animation:animate-stripes 5s linear infinite}.duet-progress progress[value] ::-moz-progress-bar{background-color:rgb(240, 247, 250)}.duet-progress.duet-theme-turva progress[value]{color:rgb(198, 12, 48)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-bar{background-color:rgb(255, 241, 241)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-value{background-color:rgb(198, 12, 48)}.duet-progress.duet-theme-turva progress[value] ::-moz-progress-bar{background-color:rgb(255, 241, 241)}";var g=u;var b=e("duet_progress",function(){function e(e){r(this,e);this.progressId=n("DuetProgress");this.progressLabelId=n("DuetProgressLabel");this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLabel=undefined;this.accessibleLabelUploadDefaults={fi:["lähetys valmis","lähetys käynnissä"],sv:["Uppladdningen är klar","Uppladdning pågår"],en:["upload completed","upload in progress"]};this.accessibleLabelUpload=o(this.accessibleLabelUploadDefaults);this.progress=0;this.caption=undefined;this.height="10px";this.theme=""}e.prototype.componentWillLoad=function(){i(this)};e.prototype.connectedCallback=function(){p(this,{prop:"accessibleLabelUpload",defaults:"accessibleLabelUploadDefaults"})};e.prototype.disconnectedCallback=function(){d(this)};e.prototype.render=function(){return s(t,null,s("div",{"aria-live":this.accessibleLabel?"polite":"off","aria-hidden":this.accessibleLabel?"false":"true","aria-atomic":"true",style:{height:this.height},id:this.progressId,class:{"duet-progress":true,"duet-progress-done":this.progress===100,"duet-progress-start":this.progress===0,"duet-progress-inprogress":this.progress<99&&this.progress!==0,"duet-theme-turva":this.theme==="turva"}},s("duet-visually-hidden",null,s("label",{htmlFor:this.progressLabelId},s("span",null,this.accessibleLabel,this.progress!==0&&", ".concat(this.accessibleLabelUpload[this.progress<99?1:0])))),this.caption&&s("div",{class:"duet-progress-caption"},s("span",null,this.caption)),s("progress",{id:this.progressLabelId,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,role:"progressbar",value:this.progress,max:"100","aria-valuemin":"0","aria-valuemax":"100"},s("div",{class:"progress-bar"},s("span",{style:{width:"".concat(this.progress,"%;")}},"Progress: ",this.progress,"%")))))};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());b.style=g}}}));
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(t,e,n,i){function u(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,r){function s(t){try{o(i.next(t))}catch(t){r(t)}}function a(t){try{o(i["throw"](t))}catch(t){r(t)}}function o(t){t.done?n(t.value):u(t.value).then(s,a)}o((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,u,r,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return o([t,e])}}function o(a){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(n=0)),n)try{if(i=1,u&&(r=a[0]&2?u["return"]:a[0]?u["throw"]||((r=u["return"])&&r.call(u),0):u.next)&&!(r=r.call(u,a[1])).done)return r;if(u=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;u=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t];u=0}finally{i=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register(["./p-2cdacb01.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-752fa0fc.system.js","./p-447e1392.system.js","./p-a4170fe7.system.js","./p-98636086.system.js"],(function(t){"use strict";var e,n,i,u,r,s,a,o,d,l,h,c,b,f,p,m,v,g,y,w,x;return{setters:[function(t){e=t.r;n=t.c;i=t.h;u=t.H;r=t.g},function(t){s=t.i},function(t){a=t.c},function(t){o=t.a;d=t.b;l=t.c;h=t.d;c=t.e;b=t.s;f=t.u},function(t){p=t.a;m=t.b;v=t.g;g=t.c;y=t.d},function(t){w=t.c;x=t.p},function(){}],execute:function(){var k={title:"action-add",tags:"action add plus",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M12 24a.75.75 0 0 1-.75-.75v-10.5H.75a.75.75 0 0 1 0-1.5h10.5V.75a.75.75 0 0 1 1.5 0v10.5h10.5a.75.75 0 0 1 0 1.5h-10.5v10.5A.75.75 0 0 1 12 24z"/></svg>'};var A={title:"action-subtract",tags:"action subtract minus remove delete cancel",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.75 12.788a.75.75 0 0 1 0-1.5h22.5a.75.75 0 0 1 0 1.5z"/></svg>'};function D(t,e){var n;if(typeof t==="string"){if(t===""){return null}var i=t.replace("−","-").replace("‐","-").replace("−","-").replace("–","-").replace("—","-");if(e){i=N(i,e,false)}i=i.replace(/\s+/g,"");n=parseFloat(i)}if(typeof t==="number"){n=parseFloat(String(t))}if(!isNaN(Number(n))){return Number(n)}if(t===null||t===undefined){return null}throw new Error("Invalid value passed to SafeParseFloat")}function N(t,e,n){if(n===void 0){n=false}var i;var u=new Intl.NumberFormat(e).format(1/2).replace(/[0-9]/g,"");var r=new Intl.NumberFormat("en-US").format(1/2).replace(/[0-9]/g,"");var s=new Intl.NumberFormat(e).format(1e3).replace(/[0-9]/g,"");var a=new Intl.NumberFormat("en-US").format(1e3).replace(/[0-9]/g,"");i=t.replace(u,"DECIMALSEPARATOR");if(n){i=i.replace(s,"THOUSANDSEPARATOR")}else{i=i.replace(s,"")}i=i.replace("DECIMALSEPARATOR",r);i=i.replace("THOUSANDSEPARATOR",a);return i}var S=function(t,e){return Math.round(t/e)*e};var E=function(t,e,n){return Math.min(Math.max(t,e),n)};var _='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;line-height:1.25;text-align:left;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}.duet-number-container{position:relative;width:100%}.duet-number-buttons{-webkit-user-select:none;user-select:none;position:absolute;top:1px;right:1px;z-index:200;width:96px;height:calc(100% - 2px)}.duet-number-buttons .duet-number-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:50%;height:100%;text-align:center;cursor:pointer;background:transparent;-webkit-appearance:none;appearance:none}.duet-number-buttons .duet-number-button[aria-disabled=true],.duet-number-buttons .duet-number-button:disabled{pointer-events:none}.duet-number-buttons .duet-number-button[aria-disabled=true] duet-icon,.duet-number-buttons .duet-number-button:disabled duet-icon{opacity:0.4}.duet-number-buttons .duet-number-button:active duet-icon{transform:translateY(1px)}.duet-number-buttons .duet-number-button:focus{outline:0}:host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus{z-index:2;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva :host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus{box-shadow:0 0 0 2px #171c3a !important}.duet-number-buttons .duet-number-button:first-of-type{border-left:1px solid rgb(181, 198, 208)}.duet-number-buttons .duet-number-button:first-of-type::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:"";background:linear-gradient(to left, rgba(181, 198, 208, 0.2) 0%, rgba(181, 198, 208, 0.2) 1px, rgba(181, 198, 208, 0.1) 1px, rgba(181, 198, 208, 0) 100%)}.duet-number-buttons .duet-number-button:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}.duet-number-buttons .duet-number-button:last-of-type::before{position:absolute;top:20%;left:0;width:1px;height:60%;content:"";background:rgb(212, 223, 229)}:host(.duet-theme-turva) .duet-number-buttons .duet-number-button:first-of-type::before{background:linear-gradient(to left, rgba(199, 202, 207, 0.2) 0%, rgba(199, 202, 207, 0.2) 1px, rgba(199, 202, 207, 0.1) 1px, rgba(199, 202, 207, 0) 100%)}:host(.duet-theme-turva) .duet-number-buttons .duet-number-button:last-of-type::before{background:rgb(222, 224, 228)}';var z=_;var C=t("duet_number_input",function(){function t(t){var i=this;e(this,t);this.duetChange=n(this,"duetChange",3);this.duetInput=n(this,"duetInput",3);this.duetBlur=n(this,"duetBlur",7);this.duetFocus=n(this,"duetFocus",7);this.inputId=a("DuetInput");this.proxyId=a("DuetInput");this.handleFocus=function(){i.focusedValue=i.value};this.handleKeyDown=function(t){if(o(t)||d(t)){i.add(t)}else if(l(t)||h(t)){i.subtract(t)}else if(c(t)){i.clearValue(t)}};this.handleChange=function(t){t.stopPropagation();var e=t.target;if(e&&e.value){try{var n=D(e.value,i.locale);if(isNaN(n)||n==null){n=i.min||0}i.setValue(n);i.duetInput.emit({component:"duet-number-input",originalEvent:t,value:D(i.value,i.locale).toString(),valueAsNumber:n})}catch(n){if(e.value!=="-"){i.clearValue(t)}i.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}}else{i.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}};this.handleBlur=function(t){var e=t.target;if(!e){return}if(e.value){try{var n=D(e.value,i.locale);if(i.rounding){n=S(n,i.step)}n=E(n,i.min,i.max);if(n!==D(i.value,i.locale)||n!==D(i.focusedValue,i.locale)){i.setValue(n);i.emitChange(t)}}catch(e){i.emitNull(t)}}else{i.emitNull(t)}};this.emitChange=function(t){var e=D(i.value,i.locale);i.duetChange.emit({originalEvent:t,value:e.toString(),valueAsNumber:e,component:"duet-number-input"})};this.emitNull=function(t){i.duetChange.emit({originalEvent:t,value:null,valueAsNumber:null,component:"duet-number-input"})};this.localizeValue=function(t){return t.toLocaleString(i.locale)};this.setValue=function(t){i.value=i.localizeValue(t);i.duetInputElement.value="".concat(i.value," ").concat(i.unit)};this.add=function(t){if(t){t.preventDefault()}var e=D(i.value,i.locale);if(e===i.max){return}var n=e==null?i.min:e+i.step;if(n%i.step!==0){var u=n%i.step;n-=u}var r=E(n,i.min,i.max);i.value=i.localizeValue(r);i.emitChange(t)};this.subtract=function(t){if(t){t.preventDefault()}var e=D(i.value,i.locale);if(e===i.min){return}var n=e-i.step;if(n%i.step!==0){var u=i.step-n%i.step;n+=u}n=E(n,i.min,i.max);i.value=i.localizeValue(n);i.emitChange(t)};this.language=p();this.locale=m(this.language).locale;this.unit=m(this.language).money;this.focusedValue=undefined;this.accessibleActiveDescendant=undefined;this.accessibleControls=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.accessibleLiveDefaults={fi:"{current} euroa valittuna",en:"{current} euros selected",sv:"{current} euro valt"};this.accessibleLive=v(this.accessibleLiveDefaults,this.language);this.accessibleLiveEnabled=true;this.accessibleAddDefaults={fi:"Lisää summaan",en:"Add to the amount",sv:"Lägg till beloppet"};this.accessibleAdd=v(this.accessibleAddDefaults,this.language);this.accessibleSubtractDefaults={fi:"Vähennä summasta",en:"Subtract from the amount",sv:"Dra från beloppet"};this.accessibleSubtract=v(this.accessibleSubtractDefaults,this.language);this.theme="";this.margin="auto";this.expand=false;this.identifier=undefined;this.min=0;this.labelDefaults={fi:"Nimilappu",en:"Label",sv:"Etikett"};this.label=v(this.labelDefaults,this.language);this.labelHidden=false;this.max=1e6;this.name=undefined;this.error="";this.tooltip="";this.step=5e3;this.rounding=true;this.role=undefined;this.disabled=false;this.required=false;this.value=undefined}t.prototype.componentWillLoad=function(){s(this);if(this.value){this.value=this.localizeValue(D(this.value,this.locale))}w(this.element,"tooltip","duet-tooltip",1,true)};t.prototype.connectedCallback=function(){g(this,[{prop:"accessibleLive",defaults:"accessibleLiveDefaults"},{prop:"accessibleAdd",defaults:"accessibleAddDefaults"},{prop:"accessibleSubtract",defaults:"accessibleSubtractDefaults"},{prop:"label",defaults:"labelDefaults"}]);b(this)};t.prototype.disconnectedCallback=function(){y(this);f(this)};t.prototype.componentDidRender=function(){x(this.element,this.proxyId,this.name,this.value?"".concat(this.value," ").concat(this.unit):"",this.required)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.duetInputElement.setFocus(t);return[2]}))}))};t.prototype.getValueAsNumber=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=D(this.value,this.locale);return[2,this.value===undefined||this.value===null||isNaN(t)?null:t]}))}))};t.prototype.clearValue=function(t){this.duetInputElement.value="";if(this.value!==null){this.value=null;this.emitNull(t)}};t.prototype.formatAnnouncement=function(){var t=!!this.value?D(this.value,this.locale):null;if(t==null){return""}return this.accessibleLive.replace("{current}",t.toString(10))};t.prototype.render=function(){var t=this;var e=this.identifier||this.inputId;var n="".concat(this.localizeValue(this.max)," ").concat(this.unit).length;var r=!!this.value?D(this.value,this.locale):null;return i(u,{key:"8093a1d061b11762890e8316f35f3aadbb4314d3",class:{"duet-theme-turva":this.theme==="turva","duet-expand":this.expand,"duet-m-0":this.margin==="none"}},i("div",{key:"0bb70d7bec69c413f6615987e535327bc2c44bbd",class:"duet-number-container"},i("duet-input",{key:"a982640544b7be253b5d8c66d8a67ea55293438a",ref:function(e){return t.duetInputElement=e},onDuetChange:function(e){return t.handleChange(e)},onDuetFocus:this.handleFocus,onDuetBlur:function(e){return t.handleBlur(e)},onKeyDown:function(e){return t.handleKeyDown(e)},label:this.label,value:this.value?"".concat(this.value," ").concat(this.unit):"",error:this.error,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":r!=null?r:"",maxlength:n,name:this.name,component:"number",required:this.required,disabled:this.disabled,role:this.role,labelHidden:this.labelHidden,tooltip:this.tooltip,identifier:e,theme:this.theme,margin:"none",expand:true,numericKeyboard:true,autoComplete:"off",type:"text",accessibleActiveDescendant:this.accessibleActiveDescendant,accessibleLabelledBy:this.accessibleLabelledBy,accessibleDescription:this.accessibleDescription,accessibleDetails:this.accessibleDetails,accessibleControls:this.accessibleControls,accessibleOwns:this.accessibleOwns,accessibleDescribedBy:this.accessibleDescribedBy},i("slot",{key:"c16ccee69695abcdb5385552dc28cb701e20d340",name:"tooltip"}),i("div",{key:"e59ef878a5a4237f7955df5aa74ed0f369796fc5",class:{"duet-number-buttons":true,"duet-no-label":this.labelHidden}},i("button",{key:"a9ad3cff4c5393368dce5983d16ef740b7d2f57d",disabled:this.disabled,"aria-disabled":r==null||r===this.min?"true":"false",class:"duet-number-button duet-number-button-subtract",onClick:this.subtract,type:"button"},i("duet-visually-hidden",{key:"29db7b9642afb66860b3f5c7951192aa6890a77b"},this.accessibleSubtract," ",this.step),i("duet-icon",{key:"2d3351ce5f1246e8f91ab4f94937ba522b8c7b7a",icon:A.svg,size:"small",margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary"})),i("button",{key:"d01ef0e639112dff95d22e3df9e9efc1cc5ba478",disabled:this.disabled,"aria-disabled":r===this.max?"true":"false",class:"duet-number-button duet-number-button-add",onClick:this.add,type:"button"},i("duet-visually-hidden",{key:"08371480b73665e20caa60b21a35180e9536f0e2"},this.accessibleAdd," ",this.step),i("duet-icon",{key:"c773a6ff733534fabc60fdce53a157a9935e6a2b",icon:k.svg,size:"small",margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary"})))),this.accessibleLiveEnabled&&i("duet-visually-hidden",{key:"5eefd62f3963ed1f71c3419f8d80110f98f68f74","aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement())))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());C.style=z}}}));
4
+ */System.register(["./p-61173f11.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-752fa0fc.system.js","./p-2bb44297.system.js","./p-abc0c9c6.system.js","./p-98636086.system.js"],(function(t){"use strict";var e,n,i,u,r,s,a,o,d,c,l,h,b,f,p,m,v,g,y,w,x;return{setters:[function(t){e=t.r;n=t.c;i=t.h;u=t.H;r=t.g},function(t){s=t.i},function(t){a=t.c},function(t){o=t.a;d=t.b;c=t.c;l=t.d;h=t.e;b=t.s;f=t.u},function(t){p=t.a;m=t.b;v=t.g;g=t.c;y=t.d},function(t){w=t.c;x=t.p},function(){}],execute:function(){var k={title:"action-add",tags:"action add plus",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M12 24a.75.75 0 0 1-.75-.75v-10.5H.75a.75.75 0 0 1 0-1.5h10.5V.75a.75.75 0 0 1 1.5 0v10.5h10.5a.75.75 0 0 1 0 1.5h-10.5v10.5A.75.75 0 0 1 12 24z"/></svg>'};var A={title:"action-subtract",tags:"action subtract minus remove delete cancel",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.75 12.788a.75.75 0 0 1 0-1.5h22.5a.75.75 0 0 1 0 1.5z"/></svg>'};function D(t,e){var n;if(typeof t==="string"){if(t===""){return null}var i=t.replace("−","-").replace("‐","-").replace("−","-").replace("–","-").replace("—","-");if(e){i=N(i,e,false)}i=i.replace(/\s+/g,"");n=parseFloat(i)}if(typeof t==="number"){n=parseFloat(String(t))}if(!isNaN(Number(n))){return Number(n)}if(t===null||t===undefined){return null}throw new Error("Invalid value passed to SafeParseFloat")}function N(t,e,n){if(n===void 0){n=false}var i;var u=new Intl.NumberFormat(e).format(1/2).replace(/[0-9]/g,"");var r=new Intl.NumberFormat("en-US").format(1/2).replace(/[0-9]/g,"");var s=new Intl.NumberFormat(e).format(1e3).replace(/[0-9]/g,"");var a=new Intl.NumberFormat("en-US").format(1e3).replace(/[0-9]/g,"");i=t.replace(u,"DECIMALSEPARATOR");if(n){i=i.replace(s,"THOUSANDSEPARATOR")}else{i=i.replace(s,"")}i=i.replace("DECIMALSEPARATOR",r);i=i.replace("THOUSANDSEPARATOR",a);return i}var S=function(t,e){return Math.round(t/e)*e};var E=function(t,e,n){return Math.min(Math.max(t,e),n)};var _='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;line-height:1.25;text-align:left;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}.duet-number-container{position:relative;width:100%}.duet-number-buttons{-webkit-user-select:none;user-select:none;position:absolute;top:1px;right:1px;z-index:200;width:96px;height:calc(100% - 2px)}.duet-number-buttons .duet-number-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:50%;height:100%;text-align:center;cursor:pointer;background:transparent;-webkit-appearance:none;appearance:none}.duet-number-buttons .duet-number-button[aria-disabled=true],.duet-number-buttons .duet-number-button:disabled{pointer-events:none}.duet-number-buttons .duet-number-button[aria-disabled=true] duet-icon,.duet-number-buttons .duet-number-button:disabled duet-icon{opacity:0.4}.duet-number-buttons .duet-number-button:active duet-icon{transform:translateY(1px)}.duet-number-buttons .duet-number-button:focus{outline:0}:host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus{z-index:2;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva :host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus{box-shadow:0 0 0 2px #171c3a !important}.duet-number-buttons .duet-number-button:first-of-type{border-left:1px solid rgb(181, 198, 208)}.duet-number-buttons .duet-number-button:first-of-type::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:"";background:linear-gradient(to left, rgba(181, 198, 208, 0.2) 0%, rgba(181, 198, 208, 0.2) 1px, rgba(181, 198, 208, 0.1) 1px, rgba(181, 198, 208, 0) 100%)}.duet-number-buttons .duet-number-button:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}.duet-number-buttons .duet-number-button:last-of-type::before{position:absolute;top:20%;left:0;width:1px;height:60%;content:"";background:rgb(212, 223, 229)}:host(.duet-theme-turva) .duet-number-buttons .duet-number-button:first-of-type::before{background:linear-gradient(to left, rgba(199, 202, 207, 0.2) 0%, rgba(199, 202, 207, 0.2) 1px, rgba(199, 202, 207, 0.1) 1px, rgba(199, 202, 207, 0) 100%)}:host(.duet-theme-turva) .duet-number-buttons .duet-number-button:last-of-type::before{background:rgb(222, 224, 228)}';var z=_;var C=t("duet_number_input",function(){function t(t){var i=this;e(this,t);this.duetChange=n(this,"duetChange",3);this.duetInput=n(this,"duetInput",3);this.duetBlur=n(this,"duetBlur",7);this.duetFocus=n(this,"duetFocus",7);this.inputId=a("DuetInput");this.proxyId=a("DuetInput");this.handleFocus=function(){i.focusedValue=i.value};this.handleKeyDown=function(t){if(o(t)||d(t)){i.add(t)}else if(c(t)||l(t)){i.subtract(t)}else if(h(t)){i.clearValue(t)}};this.handleChange=function(t){t.stopPropagation();var e=t.target;if(e&&e.value){try{var n=D(e.value,i.locale);if(isNaN(n)||n==null){n=i.min||0}i.setValue(n);i.duetInput.emit({component:"duet-number-input",originalEvent:t,value:D(i.value,i.locale).toString(),valueAsNumber:n})}catch(n){if(e.value!=="-"){i.clearValue(t)}i.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}}else{i.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}};this.handleBlur=function(t){var e=t.target;if(!e){return}if(e.value){try{var n=D(e.value,i.locale);if(i.rounding){n=S(n,i.step)}n=E(n,i.min,i.max);if(n!==D(i.value,i.locale)||n!==D(i.focusedValue,i.locale)){i.setValue(n);i.emitChange(t)}}catch(e){i.emitNull(t)}}else{i.emitNull(t)}};this.emitChange=function(t){var e=D(i.value,i.locale);i.duetChange.emit({originalEvent:t,value:e.toString(),valueAsNumber:e,component:"duet-number-input"})};this.emitNull=function(t){i.duetChange.emit({originalEvent:t,value:null,valueAsNumber:null,component:"duet-number-input"})};this.localizeValue=function(t){return t.toLocaleString(i.locale)};this.setValue=function(t){i.value=i.localizeValue(t);i.duetInputElement.value="".concat(i.value," ").concat(i.unit)};this.add=function(t){if(t){t.preventDefault()}var e=D(i.value,i.locale);if(e===i.max){return}var n=e==null?i.min:e+i.step;if(n%i.step!==0){var u=n%i.step;n-=u}var r=E(n,i.min,i.max);i.value=i.localizeValue(r);i.emitChange(t)};this.subtract=function(t){if(t){t.preventDefault()}var e=D(i.value,i.locale);if(e===i.min){return}var n=e-i.step;if(n%i.step!==0){var u=i.step-n%i.step;n+=u}n=E(n,i.min,i.max);i.value=i.localizeValue(n);i.emitChange(t)};this.language=p();this.locale=m(this.language).locale;this.unit=m(this.language).money;this.focusedValue=undefined;this.accessibleActiveDescendant=undefined;this.accessibleControls=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.accessibleLiveDefaults={fi:"{current} euroa valittuna",en:"{current} euros selected",sv:"{current} euro valt"};this.accessibleLive=v(this.accessibleLiveDefaults,this.language);this.accessibleLiveEnabled=true;this.accessibleAddDefaults={fi:"Lisää summaan",en:"Add to the amount",sv:"Lägg till beloppet"};this.accessibleAdd=v(this.accessibleAddDefaults,this.language);this.accessibleSubtractDefaults={fi:"Vähennä summasta",en:"Subtract from the amount",sv:"Dra från beloppet"};this.accessibleSubtract=v(this.accessibleSubtractDefaults,this.language);this.theme="";this.margin="auto";this.expand=false;this.identifier=undefined;this.min=0;this.labelDefaults={fi:"Nimilappu",en:"Label",sv:"Etikett"};this.label=v(this.labelDefaults,this.language);this.labelHidden=false;this.max=1e6;this.name=undefined;this.error="";this.tooltip="";this.step=5e3;this.rounding=true;this.role=undefined;this.disabled=false;this.required=false;this.value=undefined}t.prototype.componentWillLoad=function(){s(this);if(this.value){this.value=this.localizeValue(D(this.value,this.locale))}w(this.element,"tooltip","duet-tooltip",1,true)};t.prototype.connectedCallback=function(){g(this,[{prop:"accessibleLive",defaults:"accessibleLiveDefaults"},{prop:"accessibleAdd",defaults:"accessibleAddDefaults"},{prop:"accessibleSubtract",defaults:"accessibleSubtractDefaults"},{prop:"label",defaults:"labelDefaults"}]);b(this)};t.prototype.disconnectedCallback=function(){y(this);f(this)};t.prototype.componentDidRender=function(){x(this.element,this.proxyId,this.name,this.value?"".concat(this.value," ").concat(this.unit):"",this.required)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.duetInputElement.setFocus(t);return[2]}))}))};t.prototype.getValueAsNumber=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=D(this.value,this.locale);return[2,this.value===undefined||this.value===null||isNaN(t)?null:t]}))}))};t.prototype.clearValue=function(t){this.duetInputElement.value="";if(this.value!==null){this.value=null;this.emitNull(t)}};t.prototype.formatAnnouncement=function(){var t=!!this.value?D(this.value,this.locale):null;if(t==null){return""}return this.accessibleLive.replace("{current}",t.toString(10))};t.prototype.render=function(){var t=this;var e=this.identifier||this.inputId;var n="".concat(this.localizeValue(this.max)," ").concat(this.unit).length;var r=!!this.value?D(this.value,this.locale):null;return i(u,{key:"5ed199d090d8a0872fb5fb71f1059e43aba26d4c",class:{"duet-theme-turva":this.theme==="turva","duet-expand":this.expand,"duet-m-0":this.margin==="none"}},i("div",{key:"63f6850749d3a91de8dc708c6d9e83cbc77162bc",class:"duet-number-container"},i("duet-input",{key:"070cabe6a0925a671ad9ddc7070d1348f794dbcf",ref:function(e){return t.duetInputElement=e},onDuetChange:function(e){return t.handleChange(e)},onDuetFocus:this.handleFocus,onDuetBlur:function(e){return t.handleBlur(e)},onKeyDown:function(e){return t.handleKeyDown(e)},label:this.label,value:this.value?"".concat(this.value," ").concat(this.unit):"",error:this.error,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":r!=null?r:"",maxlength:n,name:this.name,component:"number",required:this.required,disabled:this.disabled,role:this.role,labelHidden:this.labelHidden,tooltip:this.tooltip,identifier:e,theme:this.theme,margin:"none",expand:true,numericKeyboard:true,autoComplete:"off",type:"text",accessibleActiveDescendant:this.accessibleActiveDescendant,accessibleLabelledBy:this.accessibleLabelledBy,accessibleDescription:this.accessibleDescription,accessibleDetails:this.accessibleDetails,accessibleControls:this.accessibleControls,accessibleOwns:this.accessibleOwns,accessibleDescribedBy:this.accessibleDescribedBy},i("slot",{key:"94b40f1c3b6ce0692bc5d7cf0222e028bad4e4b2",name:"tooltip"}),i("div",{key:"1b502276d16f8ad84edca78924a0c5870e6ddafe",class:{"duet-number-buttons":true,"duet-no-label":this.labelHidden}},i("button",{key:"601d8355b9dc371e36c8a9a92460cc696e38451a",disabled:this.disabled,"aria-disabled":r==null||r===this.min?"true":"false",class:"duet-number-button duet-number-button-subtract",onClick:this.subtract,type:"button"},i("duet-visually-hidden",{key:"d2955734b439b22cfa02f9d98545dbc733ba6394"},this.accessibleSubtract," ",this.step),i("duet-icon",{key:"9c5b59351156afacc9e65d4a942ee47ee6ee34be",icon:A.svg,size:"small",margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary"})),i("button",{key:"0424d9c8941778cb4c0b347dc68d38f4d00dc084",disabled:this.disabled,"aria-disabled":r===this.max?"true":"false",class:"duet-number-button duet-number-button-add",onClick:this.add,type:"button"},i("duet-visually-hidden",{key:"48141d6126c58f0516df731b9432e599a2112c3b"},this.accessibleAdd," ",this.step),i("duet-icon",{key:"0e025a57bde24ea190b80b33719e3debcde1a007",icon:k.svg,size:"small",margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary"})))),this.accessibleLiveEnabled&&i("duet-visually-hidden",{key:"75e4d922c576062fae39183be5ae2c5730609cb2","aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement())))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());C.style=z}}}));
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ import{r as t,h as e,g as a}from"./p-a083b91a.js";import{i}from"./p-aaa7a7bd.js";import{s as o,u as r}from"./p-a45e3f8b.js";import{a as d,g as n,c as s,d as c}from"./p-e3857119.js";import{a as l}from"./p-115c79b6.js";import"./p-9c3c64b9.js";const h=class{constructor(e){t(this,e),this.language=d(),this.accessibleLabelUnreadDefaults={en:"Unread",fi:"Lukematon",sv:"Oläst"},this.accessibleLabelUnread=n(this.accessibleLabelUnreadDefaults,this.language),this.url="#",this.date="",this.highlight=!1,this.external=!1,this.theme=""}componentWillLoad(){i(this)}connectedCallback(){s(this,{prop:"accessibleLabelUnread",defaults:"accessibleLabelUnreadDefaults"}),o(this)}disconnectedCallback(){c(this),r(this)}async setFocus(t){this.linkElement.focus(t)}render(){return e("div",{key:"53bf3fb42fabb1085aaa8de5091a92d3f2e2ff2a",role:"listitem",class:{"duet-notification":!0,"duet-notification-highlight":this.highlight,"duet-theme-turva":"turva"===this.theme}},e("a",{key:"fbe3d967cc547d2af9d278c4932020280f13cbf7",ref:t=>this.linkElement=t,href:this.url,target:this.external?"_blank":"_self"},e("div",{key:"adcc72e86dfef46c9236b2ce62c3e6c4ebf09356",class:"duet-notification-container"},e("div",{key:"aaf3d1dc837c9e164542046406e7e3420272634c",class:"duet-notification-badge-container"},this.highlight&&e("div",{key:"6982bb6d18d19f198c4ac129764a5f9aa7642109",class:"duet-notification-badge"},e("duet-visually-hidden",{key:"49beecb60f8a1bade31c9c1a99808778ae1855df"},this.accessibleLabelUnread,":"))),e("div",{key:"5af9a7fc09f3a855d94527067934ea3af667056d",class:"duet-notification-content"},e("slot",{key:"344506570c443641459719001e49ba16bfefbcb5"})),e("div",{key:"3597fe58bd170ae199f8a1cf0a0b4643b26fca53",class:"duet-notification-date"},this.date))))}get element(){return a(this)}};h.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%}:host(:not([highlight])) ::slotted(duet-heading),:host(:not([highlight])) ::slotted(duet-paragraph){opacity:0.7}.duet-notification{display:block;padding:16px;padding-bottom:0;cursor:pointer}:host(:first-of-type) .duet-notification{border-top-left-radius:8px;border-top-right-radius:8px}:host(:last-of-type) .duet-notification{border-bottom:0;border-bottom-right-radius:8px;border-bottom-left-radius:8px}.duet-notification.duet-theme-turva{color:rgb(23, 28, 58);border-bottom-color:rgb(222, 224, 228)}.duet-notification.duet-notification-highlight{font-weight:600}.duet-notification.duet-notification-highlight.duet-theme-turva{background:rgb(245, 247, 250)}@media (min-width: 62em){.duet-notification:hover{background:rgb(240, 247, 250)}.duet-notification:hover.duet-theme-turva{background:rgb(245, 247, 250)}}.duet-notification a{text-decoration:none}.duet-notification a:focus{outline:0}:host(.user-is-tabbing) .duet-notification:focus-within{z-index:1;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-notification:focus-within.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-notification-container{position:relative;display:flex;padding-bottom:16px;border-bottom:1px solid rgb(212, 223, 229)}.duet-notification-badge-container{position:relative;width:16px}.duet-notification-badge{position:absolute;top:6px;left:-2px;width:8px;height:8px;background:rgb(0, 119, 179);border-radius:50%}.duet-theme-turva .duet-notification-badge{background:rgb(198, 12, 48)}.duet-notification-content{flex:1}.duet-notification-date{position:absolute;top:2px;right:0;width:96px;font-size:0.75rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);text-align:right;text-transform:uppercase;opacity:0.7}@media (max-width: 35.9375em){.duet-notification-date{width:auto}}.duet-theme-turva .duet-notification-date{color:rgb(113, 118, 132)}@media (min-width: 62em){:host(:not([highlight])) ::slotted(duet-heading),:host(:not([highlight])) ::slotted(duet-paragraph){opacity:1}.duet-notification{padding:16px;border-bottom:1px solid rgb(212, 223, 229)}.duet-notification:hover{background:rgb(228, 241, 247)}.duet-notification.duet-notification-highlight{font-weight:600;background:rgb(240, 247, 250)}.duet-notification-container{padding-bottom:0;border-bottom-style:none}}::slotted(duet-heading){padding-right:80px !important}::slotted(duet-paragraph){margin-bottom:2px !important}";const u=class{constructor(e){t(this,e),this.handleKeyDown=t=>{this.isOpen&&27===t.keyCode&&this.close()},this.toggleMenu=t=>{t.stopPropagation(),this.isOpen?this.close():this.open()},this.updateNotificationState=()=>{this.hasNotifications=this.element.children.length>0},this.isOpen=!1,this.hasNotifications=void 0,this.icon="",this.label="Label",this.language=d(),this.accessibleLabelNotificationsDefaults={en:"No notifications",fi:"Ei ilmoituksia",sv:"Inga notifikationer"},this.accessibleLabelNotifications=n(this.accessibleLabelNotificationsDefaults),this.badge=!1,this.theme="",this.direction="left"}componentWillLoad(){i(this),this.updateNotificationState()}connectedCallback(){this.observer=new MutationObserver(this.updateNotificationState),this.observer.observe(this.element,{childList:!0}),o(this)}disconnectedCallback(){this.observer.disconnect(),this.observer=null,r(this)}handleClickFocusOutside(t){this.isOpen&&!this.element.contains(t.target)&&this.close(!1)}async setFocus(t){this.drawerButtonEl.focus(t)}async open(){const t=this.element.closest("duet-header");t&&t.closeMenus(),this.isOpen=!0,this.drawerContentEl.scrollTop=0}async close(t=!0){this.isOpen=!1,t&&this.setFocus({preventScroll:!0})}render(){return e("div",{key:"684aa1ca53fe55ed070c4c196fd3c43deb08e687",class:{"duet-drawer":!0,"duet-theme-turva":"turva"===this.theme},onKeyDown:this.handleKeyDown},e("button",{key:"6b4409fd5268778305473af525a945d47d9c39da",ref:t=>this.drawerButtonEl=t,type:"button",class:"duet-drawer-toggle",id:"duet-drawer-toggle","aria-controls":"duet-drawer-content","aria-expanded":this.isOpen?"true":"false",onClick:this.toggleMenu},this.icon&&e("div",{key:"c9267c1af9c1c5915c7d6ede76e91ca27f50a9b5",class:"duet-drawer-icon"},e("duet-icon",{key:"2ef2cadda49403ad82f2cd6954f04042b2428f54",margin:"none",size:"x-small",name:this.icon,color:"currentColor"}),this.badge&&e("div",{key:"163a12602500df35689a05fbcde4c58cbd55afc7",class:"duet-drawer-badge"})),e("span",{key:"154857b69805d0d6cfe60e1559b34ce1a8b8e576",class:"duet-drawer-label"},this.label),e("div",{key:"03cfd2876e6313e194f1092491135389b2c67aa2",class:"duet-drawer-caret"},e("duet-icon",{key:"13706101d1d24e17c8e295b632de914dea29e653",margin:"none",size:"auto",icon:l.svg,color:"currentColor"}))),e("div",{key:"731f3d300edc47c3ee18617d848b51720c63bff6",id:"duet-drawer-content",class:{"duet-drawer-content":!0,"duet-drawer-right":"right"===this.direction,"duet-drawer-left":"left"===this.direction,"duet-drawer-open":this.isOpen},ref:t=>this.drawerContentEl=t},this.hasNotifications?e("div",{role:"list"},e("slot",null)):e("duet-empty-state",{size:"small"},e("duet-paragraph",{size:"small",margin:"none"},this.accessibleLabelNotifications))))}get element(){return a(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;width:100%}.duet-drawer{position:relative}@media (min-width: 62em){.duet-drawer{display:inline-block}}.duet-drawer-toggle{position:relative;display:flex;align-items:center;width:100%;height:48px;padding:0 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:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:48px;color:rgb(8, 42, 77);text-align:left;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background-color:rgb(255, 255, 255);border-bottom:1px solid rgb(212, 223, 229);border-radius:0;-webkit-appearance:none;appearance:none}@media (min-width: 62em){.duet-drawer-toggle{z-index:200;width:auto;max-width:200px;padding:0 30px 0 12px;overflow:hidden;font-size:0.875rem;line-height:4rem;border:0;border-radius:4px;transition:border 300ms ease}}.duet-theme-turva .duet-drawer-toggle{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);background-color:rgb(255, 255, 255);border-color:rgb(222, 224, 228)}.duet-drawer-toggle:active{opacity:0.75}.duet-drawer-toggle:focus{outline:0}:host(.user-is-tabbing) .duet-drawer-toggle: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-drawer-toggle:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-drawer-toggle:hover{color:rgb(0, 75, 129)}.duet-theme-turva .duet-drawer-toggle:hover{color:rgb(113, 118, 132)}.duet-drawer-toggle::after{display:none !important}@media (min-width: 62em){.duet-drawer-toggle::after{position:absolute;top:auto;bottom:0;left:0;display:block !important;width:100%;height:3px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(3px)}.duet-theme-turva .duet-drawer-toggle::after{background:rgb(198, 12, 48)}}.duet-drawer-toggle[aria-expanded=true],.duet-drawer-toggle[aria-expanded=true]:hover{color:rgb(0, 75, 129);border-bottom:1px solid rgb(245, 248, 250);border-radius:0}.duet-theme-turva .duet-drawer-toggle[aria-expanded=true],.duet-theme-turva .duet-drawer-toggle[aria-expanded=true]:hover{color:rgb(113, 118, 132);border-color:rgb(245, 247, 250)}@media (min-width: 62em){.duet-drawer-toggle[aria-expanded=true],.duet-drawer-toggle[aria-expanded=true]:hover{border:0}.duet-drawer-toggle[aria-expanded=true]::after,.duet-drawer-toggle[aria-expanded=true]:hover::after{left:0;width:100%;transform:translateY(0)}}.duet-drawer-icon{position:relative;display:inline-flex;min-width:12px;margin-right:12px;font-size:0;line-height:normal;vertical-align:baseline}@media (min-width: 62em){.duet-drawer-icon{margin-right:8px}}.duet-drawer-label{line-height:1}.duet-drawer-caret{position:absolute;top:50%;right:20px;display:flex;width:10px;height:10px;margin-left:8px;line-height:normal;pointer-events:none;transition:300ms ease;transform:translateY(-50%);transform-origin:50% 50%}@media (min-width: 62em){.duet-drawer-caret{right:16px;width:7px;height:7px}}.duet-drawer-caret duet-icon{width:10px}.duet-drawer-toggle[aria-expanded=true] .duet-drawer-caret{transform:translateY(-50%) rotate(180deg)}.duet-drawer-badge{position:absolute;top:0;right:0;display:inline-block;width:6px;height:6px;background:rgb(247, 178, 40);border-radius:50%;box-shadow:0 0 0 1px #c18b1f}.duet-theme-turva .duet-drawer-badge{background:rgb(247, 178, 40)}.duet-drawer-content{display:none;background-color:rgb(255, 255, 255);border-bottom:1px solid rgb(212, 223, 229)}.duet-drawer-content:focus{outline:0}.duet-theme-turva .duet-drawer-content{background-color:rgb(255, 255, 255);border-color:rgb(212, 223, 229)}@media (min-width: 62em){.duet-drawer-content{position:absolute;top:100%;z-index:600;display:block;width:450px;max-height:420px;padding-left:0;overflow-y:auto;visibility:hidden;background-color:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-radius:4px;border-top-left-radius:0;border-top-right-radius:0;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transition:300ms ease;transform:scale(0.95) translateZ(0) translateY(-10px);transform-origin:50% 0}.duet-theme-turva .duet-drawer-content{background-color:rgb(255, 255, 255)}.duet-drawer-content.duet-drawer-left{right:0}.duet-drawer-content.duet-drawer-right{left:0}}.duet-drawer-content.duet-drawer-open{display:block}@media (min-width: 62em){.duet-drawer-content.duet-drawer-open{visibility:visible;opacity:1;transform:scale(1) translateZ(0) translateY(0)}}';export{h as duet_notification,u as duet_notification_drawer}