@duetds/components 9.9.0 → 9.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (852) hide show
  1. package/hydrate/index.js +191 -144
  2. package/lib/cjs/{a11y-utils-050310c7.js → a11y-utils-e5f6d8f8.js} +1 -1
  3. package/lib/cjs/{app-globals-f4faf11d.js → app-globals-f4b39f4a.js} +1 -1
  4. package/lib/cjs/{common-strings-2984301e.js → common-strings-a54bbf77.js} +6 -0
  5. package/lib/cjs/duet-action-button.cjs.entry.js +4 -4
  6. package/lib/cjs/duet-alert.cjs.entry.js +4 -4
  7. package/lib/cjs/duet-badge.cjs.entry.js +3 -3
  8. package/lib/cjs/duet-banner.cjs.entry.js +3 -3
  9. package/lib/cjs/duet-breadcrumb.cjs.entry.js +3 -3
  10. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +4 -4
  11. package/lib/cjs/duet-button_2.cjs.entry.js +9 -8
  12. package/lib/cjs/duet-callout.cjs.entry.js +4 -4
  13. package/lib/cjs/duet-caption_4.cjs.entry.js +15 -12
  14. package/lib/cjs/duet-card.cjs.entry.js +4 -4
  15. package/lib/cjs/duet-checkbox.cjs.entry.js +3 -3
  16. package/lib/cjs/duet-checkmark.cjs.entry.js +3 -3
  17. package/lib/cjs/duet-chip.cjs.entry.js +4 -4
  18. package/lib/cjs/duet-choice_2.cjs.entry.js +6 -6
  19. package/lib/cjs/duet-collapsible.cjs.entry.js +4 -4
  20. package/lib/cjs/duet-combobox.cjs.entry.js +5 -5
  21. package/lib/cjs/duet-contact-card.cjs.entry.js +4 -4
  22. package/lib/cjs/duet-cookie-consent.cjs.entry.js +3 -3
  23. package/lib/cjs/duet-date-picker.cjs.entry.js +6 -6
  24. package/lib/cjs/duet-divider_2.cjs.entry.js +2 -2
  25. package/lib/cjs/duet-editable-table_3.cjs.entry.js +5 -5
  26. package/lib/cjs/duet-empty-state.cjs.entry.js +3 -3
  27. package/lib/cjs/duet-fieldset.cjs.entry.js +5 -5
  28. package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
  29. package/lib/cjs/duet-footer.cjs.entry.js +6 -6
  30. package/lib/cjs/duet-grid_2.cjs.entry.js +34 -5
  31. package/lib/cjs/duet-header_2.cjs.entry.js +5 -5
  32. package/lib/cjs/duet-hero.cjs.entry.js +6 -6
  33. package/lib/cjs/duet-icon.cjs.entry.js +3 -3
  34. package/lib/cjs/duet-input_2.cjs.entry.js +6 -6
  35. package/lib/cjs/duet-layout.cjs.entry.js +2 -2
  36. package/lib/cjs/duet-list_2.cjs.entry.js +11 -5
  37. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +3 -3
  38. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +3 -3
  39. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +3 -3
  40. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +7 -7
  41. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +3 -3
  42. package/lib/cjs/duet-menu-bar.cjs.entry.js +4 -4
  43. package/lib/cjs/duet-modal.cjs.entry.js +7 -7
  44. package/lib/cjs/duet-multiselect.cjs.entry.js +6 -6
  45. package/lib/cjs/duet-nav.cjs.entry.js +2 -2
  46. package/lib/cjs/duet-notification_2.cjs.entry.js +5 -5
  47. package/lib/cjs/duet-number-input.cjs.entry.js +5 -5
  48. package/lib/cjs/duet-overlay.cjs.entry.js +3 -3
  49. package/lib/cjs/duet-page-heading.cjs.entry.js +3 -3
  50. package/lib/cjs/duet-pagination_2.cjs.entry.js +5 -5
  51. package/lib/cjs/duet-phone-input.cjs.entry.js +4 -4
  52. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +12 -9
  53. package/lib/cjs/duet-progress.cjs.entry.js +4 -4
  54. package/lib/cjs/duet-promo-card.cjs.entry.js +3 -3
  55. package/lib/cjs/duet-radio_2.cjs.entry.js +4 -4
  56. package/lib/cjs/duet-range-slider.cjs.entry.js +3 -3
  57. package/lib/cjs/duet-scrollable_3.cjs.entry.js +6 -6
  58. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
  59. package/lib/cjs/duet-select.cjs.entry.js +4 -4
  60. package/lib/cjs/duet-shaped-image.cjs.entry.js +2 -2
  61. package/lib/cjs/duet-share-chart-item.cjs.entry.js +1 -1
  62. package/lib/cjs/duet-share-chart.cjs.entry.js +4 -4
  63. package/lib/cjs/duet-show-more.cjs.entry.js +4 -4
  64. package/lib/cjs/duet-slideout-lang.cjs.entry.js +4 -4
  65. package/lib/cjs/duet-slideout-link.cjs.entry.js +7 -7
  66. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +3 -3
  67. package/lib/cjs/duet-slideout-panel.cjs.entry.js +6 -6
  68. package/lib/cjs/duet-slideout.cjs.entry.js +6 -6
  69. package/lib/cjs/duet-status-icon.cjs.entry.js +1 -1
  70. package/lib/cjs/duet-step_2.cjs.entry.js +19 -5
  71. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +3 -3
  72. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +3 -3
  73. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +7 -7
  74. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +3 -3
  75. package/lib/cjs/duet-submenu-bar.cjs.entry.js +3 -3
  76. package/lib/cjs/duet-textarea.cjs.entry.js +7 -7
  77. package/lib/cjs/duet-toggle.cjs.entry.js +3 -3
  78. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +3 -3
  79. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +3 -3
  80. package/lib/cjs/duet-toolbar-item.cjs.entry.js +7 -7
  81. package/lib/cjs/duet-toolbar-link.cjs.entry.js +3 -3
  82. package/lib/cjs/duet-toolbar.cjs.entry.js +3 -3
  83. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +5 -5
  84. package/lib/cjs/duet-tooltip.cjs.entry.js +4 -4
  85. package/lib/cjs/duet-tray.cjs.entry.js +4 -4
  86. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  87. package/lib/cjs/duet-upload-item.cjs.entry.js +4 -4
  88. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  89. package/lib/cjs/duet.cjs.js +3 -3
  90. package/lib/cjs/{errorcodes.utils-6917a13a.js → errorcodes.utils-e378d9dc.js} +1 -1
  91. package/lib/cjs/{floating-ui.dom.esm-bdde8521.js → floating-ui.dom.esm-806e7c53.js} +27 -50
  92. package/lib/cjs/{focus-utils-17b92876.js → focus-utils-af58f610.js} +1 -1
  93. package/lib/cjs/{index-45354cdd.js → index-24f91959.js} +1 -1
  94. package/lib/cjs/{language-utils-5a4f4a41.js → language-utils-e33fa0af.js} +9 -1
  95. package/lib/cjs/loader.cjs.js +3 -3
  96. package/lib/cjs/{slot-utils-4e1bb28c.js → slot-utils-48820df1.js} +1 -1
  97. package/lib/cjs/{themeable-component-ad21363c.js → themeable-component-851fd595.js} +8 -1
  98. package/lib/collection/common/themeable-component.js +8 -1
  99. package/lib/collection/common-strings.js +5 -0
  100. package/lib/collection/components/duet-action-button/duet-action-button.css +15 -0
  101. package/lib/collection/components/duet-action-button/duet-action-button.js +2 -2
  102. package/lib/collection/components/duet-alert/duet-alert.js +1 -1
  103. package/lib/collection/components/duet-badge/duet-badge.css +12 -0
  104. package/lib/collection/components/duet-banner/duet-banner.js +1 -1
  105. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.css +11 -0
  106. package/lib/collection/components/duet-button/duet-button.css +61 -0
  107. package/lib/collection/components/duet-button/duet-button.js +5 -5
  108. package/lib/collection/components/duet-callout/duet-callout.css +5 -0
  109. package/lib/collection/components/duet-caption/duet-caption.css +4 -0
  110. package/lib/collection/components/duet-caption/duet-caption.js +1 -1
  111. package/lib/collection/components/duet-card/duet-card.css +13 -0
  112. package/lib/collection/components/duet-card/duet-card.js +3 -3
  113. package/lib/collection/components/duet-checkbox/duet-checkbox.css +11 -0
  114. package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
  115. package/lib/collection/components/duet-chip/duet-chip.css +25 -0
  116. package/lib/collection/components/duet-chip/duet-chip.js +6 -6
  117. package/lib/collection/components/duet-choice/duet-checkmark.css +4 -0
  118. package/lib/collection/components/duet-choice/duet-choice.css +51 -0
  119. package/lib/collection/components/duet-choice/duet-choice.js +3 -3
  120. package/lib/collection/components/duet-collapsible/duet-collapsible.css +8 -0
  121. package/lib/collection/components/duet-collapsible/duet-collapsible.js +3 -3
  122. package/lib/collection/components/duet-combobox/duet-combobox.css +7 -0
  123. package/lib/collection/components/duet-combobox/duet-combobox.js +3 -3
  124. package/lib/collection/components/duet-contact-card/duet-contact-card.css +4 -0
  125. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.css +9 -0
  126. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
  127. package/lib/collection/components/duet-date-picker/duet-date-picker.css +37 -1
  128. package/lib/collection/components/duet-date-picker/duet-date-picker.js +4 -4
  129. package/lib/collection/components/duet-divider/duet-divider.js +1 -1
  130. package/lib/collection/components/duet-editable-table/duet-editable-table.js +5 -5
  131. package/lib/collection/components/duet-empty-state/duet-empty-state.css +4 -0
  132. package/lib/collection/components/duet-empty-state/duet-empty-state.js +1 -1
  133. package/lib/collection/components/duet-fieldset/duet-fieldset.css +4 -0
  134. package/lib/collection/components/duet-fieldset/duet-fieldset.js +1 -1
  135. package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
  136. package/lib/collection/components/duet-footer/duet-footer.css +15 -0
  137. package/lib/collection/components/duet-footer/duet-footer.js +7 -7
  138. package/lib/collection/components/duet-grid/duet-grid.js +34 -5
  139. package/lib/collection/components/duet-grid-item/duet-grid-item.css +4 -0
  140. package/lib/collection/components/duet-header/duet-header.css +69 -0
  141. package/lib/collection/components/duet-header/duet-header.js +15 -15
  142. package/lib/collection/components/duet-heading/duet-heading.css +4 -0
  143. package/lib/collection/components/duet-heading/duet-heading.js +1 -1
  144. package/lib/collection/components/duet-hero/duet-hero.css +17 -0
  145. package/lib/collection/components/duet-hero/duet-hero.js +5 -5
  146. package/lib/collection/components/duet-icon/duet-icon.css +7 -0
  147. package/lib/collection/components/duet-input/duet-input.css +34 -0
  148. package/lib/collection/components/duet-input/duet-input.js +8 -8
  149. package/lib/collection/components/duet-label/duet-label.css +4 -0
  150. package/lib/collection/components/duet-label/duet-label.js +2 -2
  151. package/lib/collection/components/duet-layout/duet-layout.js +1 -1
  152. package/lib/collection/components/duet-link/duet-link.css +74 -0
  153. package/lib/collection/components/duet-link/duet-link.js +10 -3
  154. package/lib/collection/components/duet-list/duet-list.js +3 -3
  155. package/lib/collection/components/duet-list-item/duet-list-item.css +20 -0
  156. package/lib/collection/components/duet-list-item/duet-list-item.js +35 -2
  157. package/lib/collection/components/duet-logo/duet-logo.js +1 -1
  158. package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +7 -0
  159. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +1 -1
  160. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.css +6 -0
  161. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.css +13 -0
  162. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.css +7 -0
  163. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.css +15 -0
  164. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.css +12 -0
  165. package/lib/collection/components/duet-modal/duet-modal.css +8 -0
  166. package/lib/collection/components/duet-modal/duet-modal.js +4 -4
  167. package/lib/collection/components/duet-multiselect/duet-multiselect.css +30 -0
  168. package/lib/collection/components/duet-multiselect/duet-multiselect.js +7 -7
  169. package/lib/collection/components/duet-notification/duet-notification.css +16 -0
  170. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.css +12 -0
  171. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +1 -1
  172. package/lib/collection/components/duet-number-input/duet-number-input.css +7 -0
  173. package/lib/collection/components/duet-number-input/duet-number-input.js +4 -4
  174. package/lib/collection/components/duet-overlay/duet-overlay.css +4 -0
  175. package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
  176. package/lib/collection/components/duet-page-heading/duet-page-heading.css +27 -11
  177. package/lib/collection/components/duet-pagination/duet-pagination.css +4 -0
  178. package/lib/collection/components/duet-pagination/duet-pagination.js +2 -2
  179. package/lib/collection/components/duet-paragraph/duet-paragraph.css +7 -0
  180. package/lib/collection/components/duet-paragraph/duet-paragraph.js +3 -3
  181. package/lib/collection/components/duet-phone-input/duet-phone-input.js +4 -4
  182. package/lib/collection/components/duet-popup-menu/duet-popup-menu.css +4 -0
  183. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +1 -1
  184. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.css +10 -0
  185. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +7 -4
  186. package/lib/collection/components/duet-progress/duet-progress.css +19 -0
  187. package/lib/collection/components/duet-radio/duet-radio.css +20 -0
  188. package/lib/collection/components/duet-radio/duet-radio.js +3 -3
  189. package/lib/collection/components/duet-range-slider/duet-range-slider.css +40 -0
  190. package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
  191. package/lib/collection/components/duet-range-stepper/duet-range-stepper.css +4 -0
  192. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +1 -1
  193. package/lib/collection/components/duet-scrollable/duet-scrollable.css +7 -0
  194. package/lib/collection/components/duet-select/duet-select.css +33 -0
  195. package/lib/collection/components/duet-select/duet-select.js +5 -5
  196. package/lib/collection/components/duet-share-chart/duet-share-chart.css +4 -0
  197. package/lib/collection/components/duet-show-more/duet-show-more.css +4 -0
  198. package/lib/collection/components/duet-show-more/duet-show-more.js +1 -1
  199. package/lib/collection/components/duet-slideout/duet-slideout.css +28 -0
  200. package/lib/collection/components/duet-slideout/duet-slideout.js +1 -1
  201. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.css +4 -0
  202. package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +10 -0
  203. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.css +20 -0
  204. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.css +13 -0
  205. package/lib/collection/components/duet-spacer/duet-spacer.js +2 -2
  206. package/lib/collection/components/duet-spinner/duet-spinner.css +3 -0
  207. package/lib/collection/components/duet-spinner/duet-spinner.js +4 -6
  208. package/lib/collection/components/duet-step/duet-step.css +13 -0
  209. package/lib/collection/components/duet-step/duet-step.js +2 -2
  210. package/lib/collection/components/duet-stepper/duet-stepper.js +24 -6
  211. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +14 -0
  212. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.css +31 -0
  213. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.css +18 -0
  214. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.css +20 -0
  215. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.css +22 -0
  216. package/lib/collection/components/duet-tab-group/duet-tab-group.css +31 -0
  217. package/lib/collection/components/duet-tab-group/duet-tab-group.js +5 -5
  218. package/lib/collection/components/duet-table/duet-table.css +40 -0
  219. package/lib/collection/components/duet-textarea/duet-textarea.css +29 -0
  220. package/lib/collection/components/duet-textarea/duet-textarea.js +7 -7
  221. package/lib/collection/components/duet-toggle/duet-toggle.css +11 -0
  222. package/lib/collection/components/duet-toggle/duet-toggle.js +1 -1
  223. package/lib/collection/components/duet-toolbar/duet-toolbar.css +7 -0
  224. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.css +21 -0
  225. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.css +10 -0
  226. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.css +25 -0
  227. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.css +24 -0
  228. package/lib/collection/components/duet-tooltip/duet-tooltip-button.css +7 -0
  229. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.css +25 -0
  230. package/lib/collection/components/duet-tooltip/duet-tooltip.js +1 -1
  231. package/lib/collection/components/duet-tray/duet-tray.css +12 -0
  232. package/lib/collection/components/duet-upload/duet-upload.js +14 -14
  233. package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
  234. package/lib/collection/utils/language-utils.js +7 -0
  235. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  236. package/lib/dist-custom-elements/duet-alert.js +1 -1
  237. package/lib/dist-custom-elements/duet-badge.js +1 -1
  238. package/lib/dist-custom-elements/duet-banner.js +4 -4
  239. package/lib/dist-custom-elements/duet-breadcrumb.js +5 -5
  240. package/lib/dist-custom-elements/duet-breadcrumbs.js +4 -4
  241. package/lib/dist-custom-elements/duet-button.js +1 -1
  242. package/lib/dist-custom-elements/duet-callout.js +4 -4
  243. package/lib/dist-custom-elements/duet-caption.js +1 -1
  244. package/lib/dist-custom-elements/duet-card.js +5 -5
  245. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  246. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  247. package/lib/dist-custom-elements/duet-chip.js +1 -1
  248. package/lib/dist-custom-elements/duet-choice-group.js +9 -9
  249. package/lib/dist-custom-elements/duet-choice.js +8 -8
  250. package/lib/dist-custom-elements/duet-collapsible.js +5 -5
  251. package/lib/dist-custom-elements/duet-combobox.js +18 -18
  252. package/lib/dist-custom-elements/duet-contact-card.js +11 -11
  253. package/lib/dist-custom-elements/duet-cookie-consent.js +8 -8
  254. package/lib/dist-custom-elements/duet-date-picker.js +16 -16
  255. package/lib/dist-custom-elements/duet-divider.js +1 -1
  256. package/lib/dist-custom-elements/duet-editable-table.js +9 -9
  257. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  258. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  259. package/lib/dist-custom-elements/duet-file-chooser.js +3 -3
  260. package/lib/dist-custom-elements/duet-footer.js +11 -11
  261. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  262. package/lib/dist-custom-elements/duet-grid.js +1 -1
  263. package/lib/dist-custom-elements/duet-header.js +12 -12
  264. package/lib/dist-custom-elements/duet-heading.js +1 -1
  265. package/lib/dist-custom-elements/duet-hero.js +13 -13
  266. package/lib/dist-custom-elements/duet-icon.js +1 -1
  267. package/lib/dist-custom-elements/duet-input.js +1 -1
  268. package/lib/dist-custom-elements/duet-label.js +1 -1
  269. package/lib/dist-custom-elements/duet-layout.js +1 -1
  270. package/lib/dist-custom-elements/duet-link.js +1 -1
  271. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  272. package/lib/dist-custom-elements/duet-list.js +1 -1
  273. package/lib/dist-custom-elements/duet-logo.js +1 -1
  274. package/lib/dist-custom-elements/duet-menu-bar-button.js +4 -4
  275. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +4 -4
  276. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +4 -4
  277. package/lib/dist-custom-elements/duet-menu-bar-item.js +6 -6
  278. package/lib/dist-custom-elements/duet-menu-bar-link.js +4 -4
  279. package/lib/dist-custom-elements/duet-menu-bar.js +5 -5
  280. package/lib/dist-custom-elements/duet-modal.js +12 -12
  281. package/lib/dist-custom-elements/duet-multiselect.js +13 -13
  282. package/lib/dist-custom-elements/duet-nav.js +2 -2
  283. package/lib/dist-custom-elements/duet-notification-drawer.js +7 -7
  284. package/lib/dist-custom-elements/duet-notification.js +5 -5
  285. package/lib/dist-custom-elements/duet-number-input.js +14 -14
  286. package/lib/dist-custom-elements/duet-overlay.js +1 -1
  287. package/lib/dist-custom-elements/duet-page-heading.js +5 -5
  288. package/lib/dist-custom-elements/duet-pagination.js +16 -16
  289. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  290. package/lib/dist-custom-elements/duet-phone-input.js +18 -18
  291. package/lib/dist-custom-elements/duet-popup-menu-item.js +1 -1
  292. package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
  293. package/lib/dist-custom-elements/duet-progress.js +1 -1
  294. package/lib/dist-custom-elements/duet-promo-card.js +4 -4
  295. package/lib/dist-custom-elements/duet-radio-group.js +9 -9
  296. package/lib/dist-custom-elements/duet-radio.js +3 -3
  297. package/lib/dist-custom-elements/duet-range-slider.js +4 -4
  298. package/lib/dist-custom-elements/duet-range-stepper.js +7 -7
  299. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  300. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  301. package/lib/dist-custom-elements/duet-select.js +1 -1
  302. package/lib/dist-custom-elements/duet-shaped-image.js +2 -2
  303. package/lib/dist-custom-elements/duet-share-chart-item.js +1 -1
  304. package/lib/dist-custom-elements/duet-share-chart.js +4 -4
  305. package/lib/dist-custom-elements/duet-show-more.js +1 -1
  306. package/lib/dist-custom-elements/duet-slideout-lang.js +5 -5
  307. package/lib/dist-custom-elements/duet-slideout-link.js +6 -6
  308. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +4 -4
  309. package/lib/dist-custom-elements/duet-slideout-panel.js +5 -5
  310. package/lib/dist-custom-elements/duet-slideout.js +6 -6
  311. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  312. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  313. package/lib/dist-custom-elements/duet-status-icon.js +1 -1
  314. package/lib/dist-custom-elements/duet-step.js +6 -6
  315. package/lib/dist-custom-elements/duet-stepper.js +20 -6
  316. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +4 -4
  317. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +4 -4
  318. package/lib/dist-custom-elements/duet-submenu-bar-item.js +6 -6
  319. package/lib/dist-custom-elements/duet-submenu-bar-link.js +4 -4
  320. package/lib/dist-custom-elements/duet-submenu-bar.js +5 -5
  321. package/lib/dist-custom-elements/duet-tab-group.js +10 -10
  322. package/lib/dist-custom-elements/duet-tab.js +3 -3
  323. package/lib/dist-custom-elements/duet-table.js +1 -1
  324. package/lib/dist-custom-elements/duet-textarea.js +15 -15
  325. package/lib/dist-custom-elements/duet-toggle.js +4 -4
  326. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +4 -4
  327. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +4 -4
  328. package/lib/dist-custom-elements/duet-toolbar-item.js +6 -6
  329. package/lib/dist-custom-elements/duet-toolbar-link.js +4 -4
  330. package/lib/dist-custom-elements/duet-toolbar.js +3 -3
  331. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  332. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  333. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  334. package/lib/dist-custom-elements/duet-tray.js +6 -6
  335. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  336. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  337. package/lib/dist-custom-elements/duet-upload.js +22 -22
  338. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  339. package/lib/dist-custom-elements/index.js +1 -1
  340. package/lib/dist-custom-elements/{p-bd7dd1f2.js → p-01efda2f.js} +3 -3
  341. package/lib/dist-custom-elements/{p-b388715c.js → p-05a2aaf3.js} +7 -7
  342. package/lib/dist-custom-elements/{p-85b61ebc.js → p-1139f384.js} +1 -1
  343. package/lib/dist-custom-elements/{p-1eb29b1c.js → p-14e0a137.js} +12 -12
  344. package/lib/dist-custom-elements/{p-b1717bf1.js → p-15f4e6e6.js} +3 -3
  345. package/lib/dist-custom-elements/{p-42b1e9d0.js → p-176cf304.js} +3 -3
  346. package/lib/dist-custom-elements/{p-2a0aefe4.js → p-2340b254.js} +1 -1
  347. package/lib/dist-custom-elements/{p-2e417433.js → p-347269f4.js} +8 -1
  348. package/lib/dist-custom-elements/{p-06c403d9.js → p-45c98b8e.js} +3 -3
  349. package/lib/dist-custom-elements/{p-3acb66c0.js → p-46de25d9.js} +13 -8
  350. package/lib/dist-custom-elements/{p-57a0b5df.js → p-4c285b52.js} +3 -3
  351. package/lib/dist-custom-elements/{p-2e0d729f.js → p-4fa318d8.js} +12 -4
  352. package/lib/dist-custom-elements/{p-dca657f2.js → p-543f99f3.js} +8 -8
  353. package/lib/dist-custom-elements/{p-1c4fcb41.js → p-59cfba72.js} +5 -5
  354. package/lib/dist-custom-elements/{p-761fd588.js → p-66fcb9f0.js} +2 -2
  355. package/lib/dist-custom-elements/{p-56cd0edf.js → p-6c774bf0.js} +34 -57
  356. package/lib/dist-custom-elements/{p-bc7aeee0.js → p-797cd5a8.js} +4 -4
  357. package/lib/dist-custom-elements/{p-dcd7d6d2.js → p-8485fda0.js} +5 -5
  358. package/lib/dist-custom-elements/{p-813debec.js → p-87f8e376.js} +2 -2
  359. package/lib/dist-custom-elements/{p-bec2501d.js → p-8a08c2ba.js} +4 -4
  360. package/lib/dist-custom-elements/{p-9df4cfa4.js → p-9b044291.js} +6 -1
  361. package/lib/dist-custom-elements/{p-7a37b78a.js → p-a2cba858.js} +3 -3
  362. package/lib/dist-custom-elements/{p-86746543.js → p-a3276bf8.js} +6 -6
  363. package/lib/dist-custom-elements/{p-4d6e3fcc.js → p-a5610227.js} +9 -6
  364. package/lib/dist-custom-elements/{p-b7bf60cf.js → p-a8d3c31c.js} +6 -5
  365. package/lib/dist-custom-elements/{p-49773f56.js → p-ae60aedc.js} +9 -9
  366. package/lib/dist-custom-elements/{p-df8428db.js → p-b29cfa95.js} +3 -3
  367. package/lib/dist-custom-elements/{p-238a3868.js → p-b9c89113.js} +10 -10
  368. package/lib/dist-custom-elements/{p-7947d2cd.js → p-bb1122e6.js} +15 -15
  369. package/lib/dist-custom-elements/{p-79480384.js → p-bc29127b.js} +4 -4
  370. package/lib/dist-custom-elements/{p-42eebb86.js → p-bc935fa9.js} +1 -1
  371. package/lib/dist-custom-elements/{p-175fc551.js → p-c195c569.js} +32 -3
  372. package/lib/dist-custom-elements/{p-b5c0ae56.js → p-c2ad08eb.js} +5 -5
  373. package/lib/dist-custom-elements/{p-647c78a8.js → p-c3b33c9a.js} +5 -5
  374. package/lib/dist-custom-elements/{p-132b261a.js → p-c40058d8.js} +13 -13
  375. package/lib/dist-custom-elements/{p-cda5f601.js → p-c795152b.js} +2 -2
  376. package/lib/dist-custom-elements/{p-9d462464.js → p-caaa4cf4.js} +3 -3
  377. package/lib/dist-custom-elements/{p-fee53217.js → p-ce47f0d0.js} +3 -3
  378. package/lib/dist-custom-elements/{p-35375593.js → p-d9b2e80e.js} +8 -1
  379. package/lib/dist-custom-elements/{p-1f610268.js → p-d9e0ed3d.js} +3 -3
  380. package/lib/dist-custom-elements/{p-fd3dd124.js → p-dd5fe334.js} +2 -2
  381. package/lib/dist-custom-elements/{p-f2b72f2d.js → p-eafb360c.js} +3 -3
  382. package/lib/dist-custom-elements/{p-b8c6f396.js → p-eb46205a.js} +8 -8
  383. package/lib/duet/duet.esm.js +1 -1
  384. package/lib/duet/duet.js +1 -1
  385. package/lib/duet/p-009a5ed8.system.entry.js +4 -0
  386. package/lib/duet/{p-b1fb2829.entry.js → p-011ca56b.entry.js} +1 -1
  387. package/lib/duet/{p-b8a0329d.entry.js → p-032a3916.entry.js} +1 -1
  388. package/lib/duet/{p-6d16043c.entry.js → p-058f9a4a.entry.js} +1 -1
  389. package/lib/duet/p-05c1677e.system.entry.js +4 -0
  390. package/lib/duet/p-07bd1ef4.entry.js +4 -0
  391. package/lib/duet/{p-2e51ccc4.entry.js → p-0a39295c.entry.js} +1 -1
  392. package/lib/duet/p-0a53642c.system.js +4 -0
  393. package/lib/duet/p-0a6c13c9.system.entry.js +4 -0
  394. package/lib/duet/{p-e79cba3f.system.entry.js → p-0c8a4678.system.entry.js} +2 -2
  395. package/lib/duet/{p-5b908466.entry.js → p-0cf30d86.entry.js} +1 -1
  396. package/lib/duet/p-0d13539d.system.entry.js +4 -0
  397. package/lib/duet/p-0dc9089b.system.js +4 -0
  398. package/lib/duet/p-0f2ce038.system.entry.js +4 -0
  399. package/lib/duet/{p-0fe8704c.entry.js → p-0f570568.entry.js} +1 -1
  400. package/lib/duet/{p-fe66eee6.entry.js → p-0fb78561.entry.js} +1 -1
  401. package/lib/duet/p-10626c96.system.entry.js +4 -0
  402. package/lib/duet/p-10e71547.system.entry.js +4 -0
  403. package/lib/duet/p-12b9d5ef.system.entry.js +4 -0
  404. package/lib/duet/{p-67b4c262.system.entry.js → p-14298080.system.entry.js} +1 -1
  405. package/lib/duet/{p-e5606a0f.system.entry.js → p-18c6d7a7.system.entry.js} +1 -1
  406. package/lib/duet/{p-16a2b903.entry.js → p-1e377e29.entry.js} +1 -1
  407. package/lib/duet/p-1e3f1ae9.js +4 -0
  408. package/lib/duet/{p-02f8661f.entry.js → p-1e4bb89a.entry.js} +1 -1
  409. package/lib/duet/{p-0a9b1b0b.entry.js → p-20f9da14.entry.js} +1 -1
  410. package/lib/duet/{p-c2509427.entry.js → p-21f862ba.entry.js} +1 -1
  411. package/lib/duet/p-22acf75a.entry.js +4 -0
  412. package/lib/duet/p-25406dc2.entry.js +4 -0
  413. package/lib/duet/{p-d0ba77fe.entry.js → p-2af8bb5b.entry.js} +1 -1
  414. package/lib/duet/{p-151fb80c.system.entry.js → p-2d3a9127.system.entry.js} +1 -1
  415. package/lib/duet/p-3111baaa.system.entry.js +4 -0
  416. package/lib/duet/{p-2b2a0e6f.system.entry.js → p-317a6b01.system.entry.js} +1 -1
  417. package/lib/duet/p-3462a1dc.entry.js +4 -0
  418. package/lib/duet/p-347269f4.js +4 -0
  419. package/lib/duet/p-365ec86f.entry.js +4 -0
  420. package/lib/duet/{p-00f58c81.entry.js → p-399a0bf4.entry.js} +1 -1
  421. package/lib/duet/{p-74f7b2c7.entry.js → p-3b9b55a6.entry.js} +1 -1
  422. package/lib/duet/p-3c539a14.system.entry.js +4 -0
  423. package/lib/duet/p-3d0fd313.system.entry.js +4 -0
  424. package/lib/duet/{p-953ec2bf.entry.js → p-3d7a5124.entry.js} +1 -1
  425. package/lib/duet/{p-ed0179f9.js → p-3f5c74ac.js} +1 -1
  426. package/lib/duet/p-3f7e6bfa.system.entry.js +4 -0
  427. package/lib/duet/p-3f9cd215.system.entry.js +4 -0
  428. package/lib/duet/{p-4393178b.system.entry.js → p-4286716c.system.entry.js} +1 -1
  429. package/lib/duet/{p-f5d1a11c.entry.js → p-435ad516.entry.js} +1 -1
  430. package/lib/duet/p-43d2bdf1.system.entry.js +4 -0
  431. package/lib/duet/{p-fa05d75c.entry.js → p-4400f98c.entry.js} +1 -1
  432. package/lib/duet/{p-85bd737a.js → p-48546dcd.js} +1 -1
  433. package/lib/duet/p-48c2bd2d.system.entry.js +4 -0
  434. package/lib/duet/{p-1921b16d.entry.js → p-4b2b7fec.entry.js} +1 -1
  435. package/lib/duet/p-4bc1a3d4.system.entry.js +4 -0
  436. package/lib/duet/{p-d535f442.entry.js → p-4c705015.entry.js} +1 -1
  437. package/lib/duet/{p-dadd8c19.system.entry.js → p-4e21466c.system.entry.js} +1 -1
  438. package/lib/duet/{p-20611247.entry.js → p-4f53b3a5.entry.js} +1 -1
  439. package/lib/duet/p-5178e544.entry.js +4 -0
  440. package/lib/duet/{p-ea8bc817.entry.js → p-52cff2cb.entry.js} +1 -1
  441. package/lib/duet/{p-ce092918.entry.js → p-53e9e625.entry.js} +1 -1
  442. package/lib/duet/{p-60162940.entry.js → p-553e9a82.entry.js} +1 -1
  443. package/lib/duet/p-55d5039c.entry.js +4 -0
  444. package/lib/duet/{p-0128eef9.system.entry.js → p-58ccbfbc.system.entry.js} +1 -1
  445. package/lib/duet/{p-303a9f45.entry.js → p-5bb0e24b.entry.js} +1 -1
  446. package/lib/duet/{p-56cef695.system.entry.js → p-5ca4d3d1.system.entry.js} +1 -1
  447. package/lib/duet/p-5d17c050.system.js +4 -0
  448. package/lib/duet/{p-0484d391.system.entry.js → p-5e3881fb.system.entry.js} +1 -1
  449. package/lib/duet/p-5ece86f5.system.entry.js +4 -0
  450. package/lib/duet/{p-5844d557.entry.js → p-60ef7612.entry.js} +1 -1
  451. package/lib/duet/p-62dc04eb.system.entry.js +4 -0
  452. package/lib/duet/p-6337d717.system.entry.js +4 -0
  453. package/lib/duet/{p-015b7bce.system.entry.js → p-63d96d93.system.entry.js} +1 -1
  454. package/lib/duet/{p-9a04c2b1.entry.js → p-64ab501a.entry.js} +1 -1
  455. package/lib/duet/p-67c1a50f.js +4 -0
  456. package/lib/duet/{p-ae0c29d6.system.entry.js → p-6807122b.system.entry.js} +1 -1
  457. package/lib/duet/{p-e9c354e0.entry.js → p-6934bb18.entry.js} +1 -1
  458. package/lib/duet/{p-44d6dc12.entry.js → p-69917aca.entry.js} +1 -1
  459. package/lib/duet/p-69d3e6c6.system.entry.js +4 -0
  460. package/lib/duet/p-6b8fad89.js +4 -0
  461. package/lib/duet/{p-f6099430.system.entry.js → p-6bc4e422.system.entry.js} +1 -1
  462. package/lib/duet/{p-ad694b62.system.js → p-6ec53971.system.js} +1 -1
  463. package/lib/duet/{p-00c275a8.system.entry.js → p-6f029ccf.system.entry.js} +1 -1
  464. package/lib/duet/{p-bb19eb2d.entry.js → p-6fd4afc8.entry.js} +1 -1
  465. package/lib/duet/p-7113c656.entry.js +4 -0
  466. package/lib/duet/{p-af5d05c3.system.js → p-734c25f9.system.js} +1 -1
  467. package/lib/duet/{p-dbe6cf3c.entry.js → p-74e1ad60.entry.js} +1 -1
  468. package/lib/duet/{p-7df350f6.system.js → p-7511b87b.system.js} +1 -1
  469. package/lib/duet/p-755eb00f.system.js +4 -0
  470. package/lib/duet/{p-e91e9697.system.entry.js → p-75e9e7dd.system.entry.js} +1 -1
  471. package/lib/duet/p-76332920.system.js +4 -0
  472. package/lib/duet/p-7ae7be92.system.entry.js +4 -0
  473. package/lib/duet/{p-94e4f977.system.js → p-7f6788ac.system.js} +1 -1
  474. package/lib/duet/{p-599ce571.system.entry.js → p-80567c97.system.entry.js} +1 -1
  475. package/lib/duet/p-80c2fd49.entry.js +4 -0
  476. package/lib/duet/{p-74941bed.system.entry.js → p-80dceb63.system.entry.js} +1 -1
  477. package/lib/duet/p-81287261.js +4 -0
  478. package/lib/duet/p-81e96117.system.entry.js +4 -0
  479. package/lib/duet/{p-15aaf279.system.entry.js → p-83e82dff.system.entry.js} +1 -1
  480. package/lib/duet/{p-67fc5d1c.entry.js → p-86859fa9.entry.js} +1 -1
  481. package/lib/duet/{p-06479d57.system.entry.js → p-8788ab31.system.entry.js} +1 -1
  482. package/lib/duet/p-8a04e00e.system.entry.js +4 -0
  483. package/lib/duet/p-8aa62ae7.entry.js +4 -0
  484. package/lib/duet/p-8ba69a2e.system.entry.js +4 -0
  485. package/lib/duet/p-8e318bf7.system.entry.js +4 -0
  486. package/lib/duet/p-90448196.js +4 -0
  487. package/lib/duet/p-957014cb.entry.js +4 -0
  488. package/lib/duet/{p-636a177b.entry.js → p-96a6b699.entry.js} +1 -1
  489. package/lib/duet/{p-24c9714a.system.entry.js → p-96b5040c.system.entry.js} +2 -2
  490. package/lib/duet/p-96ed8863.system.entry.js +4 -0
  491. package/lib/duet/{p-1f337fe3.system.entry.js → p-973da923.system.entry.js} +2 -2
  492. package/lib/duet/{p-94a34398.system.entry.js → p-9b926e8e.system.entry.js} +1 -1
  493. package/lib/duet/{p-dcd70e16.entry.js → p-9c2ffb4f.entry.js} +1 -1
  494. package/lib/duet/p-9ee1bee5.entry.js +4 -0
  495. package/lib/duet/{p-c9bed1f1.entry.js → p-a4e8eef3.entry.js} +1 -1
  496. package/lib/duet/{p-9240897c.system.entry.js → p-a53202be.system.entry.js} +1 -1
  497. package/lib/duet/{p-3c6da86e.entry.js → p-a536e3a0.entry.js} +1 -1
  498. package/lib/duet/p-a555cf62.entry.js +4 -0
  499. package/lib/duet/{p-a7e0505e.system.entry.js → p-a5ec5a20.system.entry.js} +1 -1
  500. package/lib/duet/p-a7539ce8.system.entry.js +4 -0
  501. package/lib/duet/{p-ae924d35.js → p-a7fe475b.js} +1 -1
  502. package/lib/duet/{p-ef2872f7.entry.js → p-a848b7be.entry.js} +1 -1
  503. package/lib/duet/{p-7e257f15.system.entry.js → p-a9b8edca.system.entry.js} +1 -1
  504. package/lib/duet/p-aaec2385.system.entry.js +4 -0
  505. package/lib/duet/{p-4b3b6db2.entry.js → p-addc72ed.entry.js} +1 -1
  506. package/lib/duet/{p-d45702f5.system.entry.js → p-aff63498.system.entry.js} +1 -1
  507. package/lib/duet/p-b15112ee.system.entry.js +4 -0
  508. package/lib/duet/{p-6bbac3f9.system.js → p-b2d44f57.system.js} +1 -1
  509. package/lib/duet/{p-e6236342.entry.js → p-b374c6d4.entry.js} +1 -1
  510. package/lib/duet/p-b841982a.system.entry.js +4 -0
  511. package/lib/duet/{p-8aeb58ba.entry.js → p-b8cdd3d1.entry.js} +1 -1
  512. package/lib/duet/{p-cff0ecb0.entry.js → p-ba93a877.entry.js} +1 -1
  513. package/lib/duet/{p-793b2147.entry.js → p-bc5c6ecb.entry.js} +1 -1
  514. package/lib/duet/{p-9e736904.entry.js → p-bd3655f0.entry.js} +1 -1
  515. package/lib/duet/{p-b6ba7e61.system.entry.js → p-be782730.system.entry.js} +1 -1
  516. package/lib/duet/{p-42f8f330.system.entry.js → p-bf4a9de4.system.entry.js} +1 -1
  517. package/lib/duet/{p-88f1717c.entry.js → p-bfae23ac.entry.js} +1 -1
  518. package/lib/duet/p-c046ca7f.entry.js +4 -0
  519. package/lib/duet/{p-65e8cb09.entry.js → p-c1361d9f.entry.js} +1 -1
  520. package/lib/duet/{p-4d7b963e.entry.js → p-c2a7391a.entry.js} +1 -1
  521. package/lib/duet/{p-55865968.entry.js → p-c3ce7291.entry.js} +1 -1
  522. package/lib/duet/p-c3dde668.system.entry.js +4 -0
  523. package/lib/duet/{p-d45de9cb.entry.js → p-c6f6f357.entry.js} +1 -1
  524. package/lib/duet/p-ca8a3ab8.entry.js +4 -0
  525. package/lib/duet/{p-238fa831.entry.js → p-cc250f3a.entry.js} +1 -1
  526. package/lib/duet/p-cc531319.js +4 -0
  527. package/lib/duet/{p-a5c6603f.system.entry.js → p-ce660d1e.system.entry.js} +1 -1
  528. package/lib/duet/{p-baa4658c.system.entry.js → p-cf8e48d4.system.entry.js} +1 -1
  529. package/lib/duet/{p-f189d547.entry.js → p-cfd4a8d6.entry.js} +1 -1
  530. package/lib/duet/p-d073f201.entry.js +4 -0
  531. package/lib/duet/{p-d286a412.system.entry.js → p-d0c4f3be.system.entry.js} +1 -1
  532. package/lib/duet/{p-ff06b22b.entry.js → p-d2813b52.entry.js} +1 -1
  533. package/lib/duet/p-d289c401.system.entry.js +4 -0
  534. package/lib/duet/{p-d440f795.system.entry.js → p-d3847906.system.entry.js} +1 -1
  535. package/lib/duet/{p-efeb6892.system.entry.js → p-d4f774e7.system.entry.js} +1 -1
  536. package/lib/duet/{p-5e0962cd.entry.js → p-d656652c.entry.js} +1 -1
  537. package/lib/duet/{p-8763fcda.system.entry.js → p-d68185fb.system.entry.js} +2 -2
  538. package/lib/duet/p-d6fde438.system.entry.js +4 -0
  539. package/lib/duet/{p-c4538952.system.entry.js → p-d801f359.system.entry.js} +2 -2
  540. package/lib/duet/{p-b1ba3c6a.entry.js → p-d8a3a455.entry.js} +1 -1
  541. package/lib/duet/p-dbe3b545.system.entry.js +4 -0
  542. package/lib/duet/{p-ac5d2bcc.entry.js → p-dc51a397.entry.js} +1 -1
  543. package/lib/duet/p-dc83334b.system.entry.js +4 -0
  544. package/lib/duet/p-defb2e9d.entry.js +4 -0
  545. package/lib/duet/p-df511350.system.entry.js +4 -0
  546. package/lib/duet/{p-16997663.entry.js → p-df767f70.entry.js} +1 -1
  547. package/lib/duet/{p-d13e3716.system.entry.js → p-dfa29477.system.entry.js} +1 -1
  548. package/lib/duet/{p-c07e462d.entry.js → p-e0738105.entry.js} +1 -1
  549. package/lib/duet/{p-062c814d.system.entry.js → p-e422bba3.system.entry.js} +1 -1
  550. package/lib/duet/p-e5bb414d.entry.js +4 -0
  551. package/lib/duet/{p-c378ccdd.system.js → p-e69859f2.system.js} +1 -1
  552. package/lib/duet/{p-1b7ac0a5.entry.js → p-e73d04ec.entry.js} +1 -1
  553. package/lib/duet/p-eb7db6af.system.entry.js +4 -0
  554. package/lib/duet/{p-7bf8f183.system.entry.js → p-ee135214.system.entry.js} +1 -1
  555. package/lib/duet/p-ef22612f.entry.js +4 -0
  556. package/lib/duet/{p-de9a637d.entry.js → p-f00ebb0b.entry.js} +1 -1
  557. package/lib/duet/p-f2c7b7a7.entry.js +4 -0
  558. package/lib/duet/p-f3e7d0f7.entry.js +4 -0
  559. package/lib/duet/{p-0936d659.entry.js → p-f4b38b74.entry.js} +1 -1
  560. package/lib/duet/p-f6022272.system.entry.js +4 -0
  561. package/lib/duet/{p-2b4f458d.system.entry.js → p-f620628c.system.entry.js} +1 -1
  562. package/lib/duet/{p-eb4ce4cc.entry.js → p-f6541707.entry.js} +1 -1
  563. package/lib/duet/{p-e2bf5465.entry.js → p-f6adf35f.entry.js} +1 -1
  564. package/lib/duet/{p-c03f1b5c.system.entry.js → p-f6c0e8f6.system.entry.js} +1 -1
  565. package/lib/duet/{p-b1ab0652.entry.js → p-fa051572.entry.js} +1 -1
  566. package/lib/duet/{p-89fb266e.system.entry.js → p-fc4ab34f.system.entry.js} +2 -2
  567. package/lib/duet/{p-1de43ba1.system.entry.js → p-fc7e3f1c.system.entry.js} +1 -1
  568. package/lib/duet/{p-3f35573d.system.entry.js → p-fd0af915.system.entry.js} +2 -2
  569. package/lib/duet/{p-407dcb6c.system.entry.js → p-ff024fa4.system.entry.js} +1 -1
  570. package/lib/duet/p-ff2921ce.entry.js +4 -0
  571. package/lib/duet/{p-adaf3f59.entry.js → p-ff336afc.entry.js} +1 -1
  572. package/lib/duet/p-ffd718ec.system.entry.js +4 -0
  573. package/lib/duet/p-fff5d1b3.system.entry.js +4 -0
  574. package/lib/esm/{a11y-utils-ba8ce43e.js → a11y-utils-7401b486.js} +1 -1
  575. package/lib/esm/{app-globals-90a110af.js → app-globals-6b42a456.js} +1 -1
  576. package/lib/esm/{common-strings-af765cad.js → common-strings-a48b3fba.js} +6 -1
  577. package/lib/esm/duet-action-button.entry.js +4 -4
  578. package/lib/esm/duet-alert.entry.js +4 -4
  579. package/lib/esm/duet-badge.entry.js +3 -3
  580. package/lib/esm/duet-banner.entry.js +3 -3
  581. package/lib/esm/duet-breadcrumb.entry.js +3 -3
  582. package/lib/esm/duet-breadcrumbs.entry.js +4 -4
  583. package/lib/esm/duet-button_2.entry.js +9 -8
  584. package/lib/esm/duet-callout.entry.js +4 -4
  585. package/lib/esm/duet-caption_4.entry.js +15 -12
  586. package/lib/esm/duet-card.entry.js +4 -4
  587. package/lib/esm/duet-checkbox.entry.js +3 -3
  588. package/lib/esm/duet-checkmark.entry.js +3 -3
  589. package/lib/esm/duet-chip.entry.js +4 -4
  590. package/lib/esm/duet-choice_2.entry.js +6 -6
  591. package/lib/esm/duet-collapsible.entry.js +4 -4
  592. package/lib/esm/duet-combobox.entry.js +5 -5
  593. package/lib/esm/duet-contact-card.entry.js +4 -4
  594. package/lib/esm/duet-cookie-consent.entry.js +3 -3
  595. package/lib/esm/duet-date-picker.entry.js +6 -6
  596. package/lib/esm/duet-divider_2.entry.js +2 -2
  597. package/lib/esm/duet-editable-table_3.entry.js +5 -5
  598. package/lib/esm/duet-empty-state.entry.js +3 -3
  599. package/lib/esm/duet-fieldset.entry.js +5 -5
  600. package/lib/esm/duet-file-chooser.entry.js +2 -2
  601. package/lib/esm/duet-footer.entry.js +6 -6
  602. package/lib/esm/duet-grid_2.entry.js +34 -5
  603. package/lib/esm/duet-header_2.entry.js +5 -5
  604. package/lib/esm/duet-hero.entry.js +6 -6
  605. package/lib/esm/duet-icon.entry.js +3 -3
  606. package/lib/esm/duet-input_2.entry.js +6 -6
  607. package/lib/esm/duet-layout.entry.js +2 -2
  608. package/lib/esm/duet-list_2.entry.js +11 -5
  609. package/lib/esm/duet-menu-bar-button.entry.js +3 -3
  610. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +3 -3
  611. package/lib/esm/duet-menu-bar-dropdown.entry.js +3 -3
  612. package/lib/esm/duet-menu-bar-item.entry.js +7 -7
  613. package/lib/esm/duet-menu-bar-link.entry.js +3 -3
  614. package/lib/esm/duet-menu-bar.entry.js +4 -4
  615. package/lib/esm/duet-modal.entry.js +7 -7
  616. package/lib/esm/duet-multiselect.entry.js +6 -6
  617. package/lib/esm/duet-nav.entry.js +2 -2
  618. package/lib/esm/duet-notification_2.entry.js +5 -5
  619. package/lib/esm/duet-number-input.entry.js +5 -5
  620. package/lib/esm/duet-overlay.entry.js +3 -3
  621. package/lib/esm/duet-page-heading.entry.js +3 -3
  622. package/lib/esm/duet-pagination_2.entry.js +5 -5
  623. package/lib/esm/duet-phone-input.entry.js +4 -4
  624. package/lib/esm/duet-popup-menu_2.entry.js +12 -9
  625. package/lib/esm/duet-progress.entry.js +4 -4
  626. package/lib/esm/duet-promo-card.entry.js +3 -3
  627. package/lib/esm/duet-radio_2.entry.js +4 -4
  628. package/lib/esm/duet-range-slider.entry.js +3 -3
  629. package/lib/esm/duet-scrollable_3.entry.js +6 -6
  630. package/lib/esm/duet-section-layout.entry.js +1 -1
  631. package/lib/esm/duet-select.entry.js +4 -4
  632. package/lib/esm/duet-shaped-image.entry.js +2 -2
  633. package/lib/esm/duet-share-chart-item.entry.js +1 -1
  634. package/lib/esm/duet-share-chart.entry.js +4 -4
  635. package/lib/esm/duet-show-more.entry.js +4 -4
  636. package/lib/esm/duet-slideout-lang.entry.js +4 -4
  637. package/lib/esm/duet-slideout-link.entry.js +7 -7
  638. package/lib/esm/duet-slideout-panel-dropdown.entry.js +3 -3
  639. package/lib/esm/duet-slideout-panel.entry.js +6 -6
  640. package/lib/esm/duet-slideout.entry.js +6 -6
  641. package/lib/esm/duet-status-icon.entry.js +1 -1
  642. package/lib/esm/duet-step_2.entry.js +19 -5
  643. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +3 -3
  644. package/lib/esm/duet-submenu-bar-dropdown.entry.js +3 -3
  645. package/lib/esm/duet-submenu-bar-item.entry.js +7 -7
  646. package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
  647. package/lib/esm/duet-submenu-bar.entry.js +3 -3
  648. package/lib/esm/duet-textarea.entry.js +7 -7
  649. package/lib/esm/duet-toggle.entry.js +3 -3
  650. package/lib/esm/duet-toolbar-dropdown-link.entry.js +3 -3
  651. package/lib/esm/duet-toolbar-dropdown.entry.js +3 -3
  652. package/lib/esm/duet-toolbar-item.entry.js +7 -7
  653. package/lib/esm/duet-toolbar-link.entry.js +3 -3
  654. package/lib/esm/duet-toolbar.entry.js +3 -3
  655. package/lib/esm/duet-tooltip-button_2.entry.js +5 -5
  656. package/lib/esm/duet-tooltip.entry.js +4 -4
  657. package/lib/esm/duet-tray.entry.js +4 -4
  658. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  659. package/lib/esm/duet-upload-item.entry.js +4 -4
  660. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  661. package/lib/esm/duet.js +4 -4
  662. package/lib/esm/{errorcodes.utils-755952c8.js → errorcodes.utils-fbd04a2f.js} +1 -1
  663. package/lib/esm/{floating-ui.dom.esm-ef361ca5.js → floating-ui.dom.esm-ebc91b33.js} +27 -50
  664. package/lib/esm/{focus-utils-a8518a11.js → focus-utils-fb23619c.js} +1 -1
  665. package/lib/esm/{index-56e364b1.js → index-4dab47c5.js} +1 -1
  666. package/lib/esm/{language-utils-abee49de.js → language-utils-4b9dc3af.js} +9 -2
  667. package/lib/esm/loader.js +4 -4
  668. package/lib/esm/{slot-utils-2d133bd0.js → slot-utils-14a62b07.js} +1 -1
  669. package/lib/esm/{themeable-component-2575bd2f.js → themeable-component-4fc6639e.js} +8 -1
  670. package/lib/esm-es5/{a11y-utils-ba8ce43e.js → a11y-utils-7401b486.js} +1 -1
  671. package/lib/esm-es5/{app-globals-90a110af.js → app-globals-6b42a456.js} +1 -1
  672. package/lib/esm-es5/{common-strings-af765cad.js → common-strings-a48b3fba.js} +1 -1
  673. package/lib/esm-es5/duet-action-button.entry.js +2 -2
  674. package/lib/esm-es5/duet-alert.entry.js +1 -1
  675. package/lib/esm-es5/duet-badge.entry.js +1 -1
  676. package/lib/esm-es5/duet-banner.entry.js +1 -1
  677. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  678. package/lib/esm-es5/duet-breadcrumbs.entry.js +2 -2
  679. package/lib/esm-es5/duet-button_2.entry.js +2 -2
  680. package/lib/esm-es5/duet-callout.entry.js +1 -1
  681. package/lib/esm-es5/duet-caption_4.entry.js +2 -2
  682. package/lib/esm-es5/duet-card.entry.js +2 -2
  683. package/lib/esm-es5/duet-checkbox.entry.js +2 -2
  684. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  685. package/lib/esm-es5/duet-chip.entry.js +1 -1
  686. package/lib/esm-es5/duet-choice_2.entry.js +2 -2
  687. package/lib/esm-es5/duet-collapsible.entry.js +2 -2
  688. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  689. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  690. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  691. package/lib/esm-es5/duet-date-picker.entry.js +2 -2
  692. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  693. package/lib/esm-es5/duet-editable-table_3.entry.js +2 -2
  694. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  695. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  696. package/lib/esm-es5/duet-file-chooser.entry.js +1 -1
  697. package/lib/esm-es5/duet-footer.entry.js +2 -2
  698. package/lib/esm-es5/duet-grid_2.entry.js +2 -2
  699. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  700. package/lib/esm-es5/duet-hero.entry.js +1 -1
  701. package/lib/esm-es5/duet-icon.entry.js +1 -1
  702. package/lib/esm-es5/duet-input_2.entry.js +2 -2
  703. package/lib/esm-es5/duet-layout.entry.js +1 -1
  704. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  705. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  706. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  707. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +2 -2
  708. package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
  709. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  710. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  711. package/lib/esm-es5/duet-modal.entry.js +1 -1
  712. package/lib/esm-es5/duet-multiselect.entry.js +2 -2
  713. package/lib/esm-es5/duet-nav.entry.js +1 -1
  714. package/lib/esm-es5/duet-notification_2.entry.js +2 -2
  715. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  716. package/lib/esm-es5/duet-overlay.entry.js +1 -1
  717. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  718. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  719. package/lib/esm-es5/duet-phone-input.entry.js +1 -1
  720. package/lib/esm-es5/duet-popup-menu_2.entry.js +2 -2
  721. package/lib/esm-es5/duet-progress.entry.js +1 -1
  722. package/lib/esm-es5/duet-promo-card.entry.js +1 -1
  723. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  724. package/lib/esm-es5/duet-range-slider.entry.js +2 -2
  725. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  726. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  727. package/lib/esm-es5/duet-select.entry.js +2 -2
  728. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  729. package/lib/esm-es5/duet-share-chart-item.entry.js +1 -1
  730. package/lib/esm-es5/duet-share-chart.entry.js +1 -1
  731. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  732. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  733. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  734. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +2 -2
  735. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  736. package/lib/esm-es5/duet-slideout.entry.js +1 -1
  737. package/lib/esm-es5/duet-status-icon.entry.js +1 -1
  738. package/lib/esm-es5/duet-step_2.entry.js +2 -2
  739. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  740. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +2 -2
  741. package/lib/esm-es5/duet-submenu-bar-item.entry.js +2 -2
  742. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  743. package/lib/esm-es5/duet-submenu-bar.entry.js +2 -2
  744. package/lib/esm-es5/duet-textarea.entry.js +2 -2
  745. package/lib/esm-es5/duet-toggle.entry.js +2 -2
  746. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  747. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +2 -2
  748. package/lib/esm-es5/duet-toolbar-item.entry.js +2 -2
  749. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  750. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  751. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  752. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  753. package/lib/esm-es5/duet-tray.entry.js +1 -1
  754. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  755. package/lib/esm-es5/duet-upload-item.entry.js +2 -2
  756. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  757. package/lib/esm-es5/duet.js +1 -1
  758. package/lib/esm-es5/{errorcodes.utils-755952c8.js → errorcodes.utils-fbd04a2f.js} +1 -1
  759. package/lib/esm-es5/floating-ui.dom.esm-ebc91b33.js +4 -0
  760. package/lib/esm-es5/focus-utils-fb23619c.js +4 -0
  761. package/lib/esm-es5/{index-56e364b1.js → index-4dab47c5.js} +1 -1
  762. package/lib/esm-es5/language-utils-4b9dc3af.js +4 -0
  763. package/lib/esm-es5/loader.js +1 -1
  764. package/lib/esm-es5/{slot-utils-2d133bd0.js → slot-utils-14a62b07.js} +1 -1
  765. package/lib/esm-es5/themeable-component-4fc6639e.js +4 -0
  766. package/lib/types/common-strings.d.ts +1 -0
  767. package/lib/types/common-types.d.ts +1 -1
  768. package/lib/types/components/duet-list-item/duet-list-item.d.ts +9 -3
  769. package/lib/types/components/duet-popup-menu-item/duet-popup-menu-item.d.ts +1 -0
  770. package/lib/types/components/duet-spinner/duet-spinner.d.ts +1 -0
  771. package/lib/types/components/duet-stepper/duet-stepper.d.ts +5 -2
  772. package/lib/types/components.d.ts +10 -2
  773. package/lib/types/utils/language-utils.d.ts +1 -0
  774. package/package.json +4 -4
  775. package/lib/duet/p-00a1eee5.entry.js +0 -4
  776. package/lib/duet/p-0773901d.js +0 -4
  777. package/lib/duet/p-0a5a0f9f.system.entry.js +0 -4
  778. package/lib/duet/p-0c27b62a.system.entry.js +0 -4
  779. package/lib/duet/p-0dd3a7c9.entry.js +0 -4
  780. package/lib/duet/p-116c7db8.system.entry.js +0 -4
  781. package/lib/duet/p-12a12f9c.entry.js +0 -4
  782. package/lib/duet/p-17aa4bbe.system.entry.js +0 -4
  783. package/lib/duet/p-184e698a.system.entry.js +0 -4
  784. package/lib/duet/p-1c107ee6.system.entry.js +0 -4
  785. package/lib/duet/p-1fe573fb.system.entry.js +0 -4
  786. package/lib/duet/p-28b88f1b.entry.js +0 -4
  787. package/lib/duet/p-2afae3ba.system.entry.js +0 -4
  788. package/lib/duet/p-2b30e991.entry.js +0 -4
  789. package/lib/duet/p-2e417433.js +0 -4
  790. package/lib/duet/p-31bb5751.js +0 -4
  791. package/lib/duet/p-321b7867.system.entry.js +0 -4
  792. package/lib/duet/p-34afb5ae.system.entry.js +0 -4
  793. package/lib/duet/p-393c06a4.system.entry.js +0 -4
  794. package/lib/duet/p-3964bb3b.entry.js +0 -4
  795. package/lib/duet/p-3e7f5733.entry.js +0 -4
  796. package/lib/duet/p-437d2bb6.entry.js +0 -4
  797. package/lib/duet/p-442222ef.system.entry.js +0 -4
  798. package/lib/duet/p-48bd046c.system.entry.js +0 -4
  799. package/lib/duet/p-5373b8ad.system.entry.js +0 -4
  800. package/lib/duet/p-55a8a353.entry.js +0 -4
  801. package/lib/duet/p-5a9197a4.entry.js +0 -4
  802. package/lib/duet/p-6229bcd8.system.js +0 -4
  803. package/lib/duet/p-64d39db4.js +0 -4
  804. package/lib/duet/p-682e6943.system.entry.js +0 -4
  805. package/lib/duet/p-68eb7faa.entry.js +0 -4
  806. package/lib/duet/p-70ae6f2c.system.entry.js +0 -4
  807. package/lib/duet/p-725c2a9e.system.entry.js +0 -4
  808. package/lib/duet/p-737130d0.js +0 -4
  809. package/lib/duet/p-74184074.system.entry.js +0 -4
  810. package/lib/duet/p-7930b999.system.js +0 -4
  811. package/lib/duet/p-793f3625.system.entry.js +0 -4
  812. package/lib/duet/p-7a33d0be.entry.js +0 -4
  813. package/lib/duet/p-7c0e1242.system.entry.js +0 -4
  814. package/lib/duet/p-86a187a0.system.entry.js +0 -4
  815. package/lib/duet/p-89aebeb3.entry.js +0 -4
  816. package/lib/duet/p-8da50ca3.entry.js +0 -4
  817. package/lib/duet/p-912efbb2.system.entry.js +0 -4
  818. package/lib/duet/p-938f9b3e.system.entry.js +0 -4
  819. package/lib/duet/p-96c232c1.entry.js +0 -4
  820. package/lib/duet/p-9bdb177a.system.entry.js +0 -4
  821. package/lib/duet/p-9c39ff09.system.entry.js +0 -4
  822. package/lib/duet/p-a0cc3a57.system.entry.js +0 -4
  823. package/lib/duet/p-a1105b5c.system.js +0 -4
  824. package/lib/duet/p-a487e706.system.entry.js +0 -4
  825. package/lib/duet/p-aa59a64b.system.entry.js +0 -4
  826. package/lib/duet/p-ab6757f6.entry.js +0 -4
  827. package/lib/duet/p-ac8c8a39.system.entry.js +0 -4
  828. package/lib/duet/p-ad3f1daf.system.entry.js +0 -4
  829. package/lib/duet/p-afa617d4.system.entry.js +0 -4
  830. package/lib/duet/p-b4676151.system.entry.js +0 -4
  831. package/lib/duet/p-b84219f5.entry.js +0 -4
  832. package/lib/duet/p-beeb12f1.js +0 -4
  833. package/lib/duet/p-bfa81195.entry.js +0 -4
  834. package/lib/duet/p-c45f948b.system.entry.js +0 -4
  835. package/lib/duet/p-c6ad88ca.system.entry.js +0 -4
  836. package/lib/duet/p-c708fd70.system.entry.js +0 -4
  837. package/lib/duet/p-c9f780bb.system.entry.js +0 -4
  838. package/lib/duet/p-cb66bf76.system.entry.js +0 -4
  839. package/lib/duet/p-cc5e6288.system.js +0 -4
  840. package/lib/duet/p-d64d72d6.system.entry.js +0 -4
  841. package/lib/duet/p-d7f543fb.js +0 -4
  842. package/lib/duet/p-d8861775.system.js +0 -4
  843. package/lib/duet/p-dfc8cb16.system.entry.js +0 -4
  844. package/lib/duet/p-e0880953.system.entry.js +0 -4
  845. package/lib/duet/p-e52a6209.entry.js +0 -4
  846. package/lib/duet/p-e57748ed.entry.js +0 -4
  847. package/lib/duet/p-eaf430ed.entry.js +0 -4
  848. package/lib/duet/p-f0939f30.entry.js +0 -4
  849. package/lib/esm-es5/floating-ui.dom.esm-ef361ca5.js +0 -4
  850. package/lib/esm-es5/focus-utils-a8518a11.js +0 -4
  851. package/lib/esm-es5/language-utils-abee49de.js +0 -4
  852. package/lib/esm-es5/themeable-component-2575bd2f.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,h as i,H as a}from"./p-ed0179f9.js";import{i as t}from"./p-2e417433.js";const l=class{constructor(i){e(this,i),this.getDisplayBreakpoint=()=>this.displayDevice.startsWith("not")?this.displayDevice.substring(this.displayDevice.indexOf("-")+1):this.displayDevice,this.visible=!0,this.keepStackingContext=!1,this.modalOverlay=!1,this.theme="",this.displayDevice="all",this.transition="slowly",this.zIndex="400",this.variation="default"}componentWillLoad(){t(this)}render(){return i(a,{key:"630cf19ec25638aba0f6031c109f0b9c7813961e","aria-hidden":"true"},i("div",{key:"1b2b98da2ddf66ae1ef4ef862eab832b08c87f7a",style:{zIndex:this.zIndex},class:{"duet-overlay":!0,"duet-theme-turva":"turva"===this.theme,"keep-stacking-context":this.keepStackingContext,[`transition-${this.transition}`]:"immediate"!==this.transition,"display-x-small":"x-small"===this.getDisplayBreakpoint(),"display-small":"small"===this.getDisplayBreakpoint(),"display-medium":"medium"===this.getDisplayBreakpoint(),"display-large":"large"===this.getDisplayBreakpoint(),not:this.displayDevice.startsWith("not"),hidden:!this.visible,[this.variation]:!0}}))}};l.style=".duet-overlay{position:fixed;top:0;left:0;display:block;width:100%;height:100%;visibility:visible;background:rgb(8, 42, 77);opacity:0.3}.duet-overlay.duet-theme-turva{background:rgb(23, 28, 58)}.duet-overlay.keep-stacking-context{position:absolute;top:unset;left:unset;z-index:unset !important}.duet-overlay.modal-overlay{z-index:-1}.duet-overlay.hidden{visibility:hidden;opacity:0}.duet-overlay.dark{opacity:0.85}.duet-overlay.white{background:rgb(255, 255, 255);opacity:0.9}.duet-overlay.white.duet-theme-turva{background:rgb(255, 255, 255)}.duet-overlay.display-x-small{display:none}@media (max-width: 35.9375em){.duet-overlay.display-x-small{display:block}}.duet-overlay.display-x-small.not{display:block}@media (max-width: 35.9375em){.duet-overlay.display-x-small.not{display:none}}.duet-overlay.display-small{display:none}@media (min-width: 36em){.duet-overlay.display-small{display:block}}.duet-overlay.display-small.not{display:block}@media (min-width: 36em){.duet-overlay.display-small.not{display:none}}.duet-overlay.display-medium{display:none}@media (min-width: 48em){.duet-overlay.display-medium{display:block}}.duet-overlay.display-medium.not{display:block}@media (min-width: 48em){.duet-overlay.display-medium.not{display:none}}.duet-overlay.display-large{display:none}@media (min-width: 62em){.duet-overlay.display-large{display:block}}.duet-overlay.display-large.not{display:block}@media (min-width: 62em){.duet-overlay.display-large.not{display:none}}.duet-overlay.transition-slowly{transition:600ms ease}.duet-overlay.transition-quickly{transition:300ms ease}";export{l as duet_overlay}
4
+ import{r as e,h as i,H as a}from"./p-3f5c74ac.js";import{i as t}from"./p-347269f4.js";const l=class{constructor(i){e(this,i),this.getDisplayBreakpoint=()=>this.displayDevice.startsWith("not")?this.displayDevice.substring(this.displayDevice.indexOf("-")+1):this.displayDevice,this.visible=!0,this.keepStackingContext=!1,this.modalOverlay=!1,this.theme="",this.displayDevice="all",this.transition="slowly",this.zIndex="400",this.variation="default"}componentWillLoad(){t(this)}render(){return i(a,{key:"630cf19ec25638aba0f6031c109f0b9c7813961e","aria-hidden":"true"},i("div",{key:"1b2b98da2ddf66ae1ef4ef862eab832b08c87f7a",style:{zIndex:this.zIndex},class:{"duet-overlay":!0,"duet-theme-turva":"turva"===this.theme,"keep-stacking-context":this.keepStackingContext,[`transition-${this.transition}`]:"immediate"!==this.transition,"display-x-small":"x-small"===this.getDisplayBreakpoint(),"display-small":"small"===this.getDisplayBreakpoint(),"display-medium":"medium"===this.getDisplayBreakpoint(),"display-large":"large"===this.getDisplayBreakpoint(),not:this.displayDevice.startsWith("not"),hidden:!this.visible,[this.variation]:!0}}))}};l.style=".duet-overlay{position:fixed;top:0;left:0;display:block;width:100%;height:100%;visibility:visible;background:rgb(8, 42, 77);opacity:0.3}.duet-overlay.duet-theme-turva{background:rgb(23, 28, 58)}.duet-overlay.keep-stacking-context{position:absolute;top:unset;left:unset;z-index:unset !important}.duet-overlay.modal-overlay{z-index:-1}.duet-overlay.hidden{visibility:hidden;opacity:0}.duet-overlay.dark{opacity:0.85}.duet-overlay.white{background:rgb(255, 255, 255);opacity:0.9}.duet-overlay.white.duet-theme-turva{background:rgb(255, 255, 255)}.duet-overlay.display-x-small{display:none}@media (max-width: 35.9375em){.duet-overlay.display-x-small{display:block}}.duet-overlay.display-x-small.not{display:block}@media (max-width: 35.9375em){.duet-overlay.display-x-small.not{display:none}}.duet-overlay.display-small{display:none}@media (min-width: 36em){.duet-overlay.display-small{display:block}}.duet-overlay.display-small.not{display:block}@media (min-width: 36em){.duet-overlay.display-small.not{display:none}}.duet-overlay.display-medium{display:none}@media (min-width: 48em){.duet-overlay.display-medium{display:block}}.duet-overlay.display-medium.not{display:block}@media (min-width: 48em){.duet-overlay.display-medium.not{display:none}}.duet-overlay.display-large{display:none}@media (min-width: 62em){.duet-overlay.display-large{display:block}}.duet-overlay.display-large.not{display:block}@media (min-width: 62em){.duet-overlay.display-large.not{display:none}}.duet-overlay.transition-slowly{transition:600ms ease}.duet-overlay.transition-quickly{transition:300ms ease}:host(.duet-theme-turva2) .duet-overlay.duet-theme-turva{background:rgb(35, 46, 61)}";export{l as duet_overlay}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{E as t,r as e,h as i,H as s,g as a}from"./p-ed0179f9.js";import{i as o}from"./p-2e417433.js";import{g as n,r as d}from"./p-5de30279.js";import"./p-17efced0.js";const h=t=>{if("script"===t.nodeName.toLowerCase())return!1;for(let e=0;e<t.attributes.length;e++)if(0===t.attributes[e].name.toLowerCase().indexOf("on"))return!1;if(t.children)for(let e=0;e<t.children.length;e++)if(!h(t.children[e]))return!1;return!0},r={};const c=class{constructor(t){e(this,t),this.svgContent=void 0,this.theme="",this.icon=void 0,this.src=void 0,this.name="action-add",this.margin="auto",this.responsive=!0,this.color="",this.background="",this.backgroundOpacity=1,this.backgroundRotation=0,this.size="medium",this.outline="",this.shape="circle"}async componentWillLoad(){o(this),this.src&&this.icon&&console.warn("[DUET COMPONENTS]: <duet-icon> should have either have src or icon attributes, but not both. icon attribute will take precedence","icon:",this.icon,"src:",this.src),await this.loadIcon(null,null)}async loadIcon(e,i){if(this.icon)return void(this.svgContent=this.icon);if(this.element.shadowRoot.querySelector("svg")&&!this.svgContent){if(null===i&&null===e)return;if(this.element.shadowRoot.querySelector(`.duet-icon-svg[data-name="${e}"]`))return}const s=this.src?this.src:this.name?(e=>{const i=window.duetcdnuri?window.duetcdnuri:t.cdnURIProd;return i.includes("localhost")?`${i}/icons/lib/assets/${e}.svg`:`${i}/icons/${t.duetIconVersion}/lib/assets/${e}.svg`})(this.name):"";if(s)try{this.svgContent=await function(t){if(r[t])return r[t];const e=async function(){const e=await fetch(t);if(!e.ok)throw new Error(`SVG request failed: ${e.status} ${e.statusText}`);const i=(t=>{if("undefined"==typeof document||!t)return;const e=document.createElement("div");e.innerHTML=t;for(let t=e.childNodes.length-1;t>=0;t--)"svg"!==e.childNodes[t].nodeName.toLowerCase()&&e.removeChild(e.childNodes[t]);return e.firstElementChild})(await e.text());if(!h(i))throw new Error("SVG validation failed");const s=document.createElement("div");return s.appendChild(i),s.innerHTML}();return r[t]=e}(s)}catch(t){console.warn(`[DUET COMPONENTS]: <duet-icon> could not load SVG from URL: ${s}.`,t)}else this.svgContent=""}render(){const t="currentColor"===this.color?"currentColor":n(this.color,this.theme)||n(this.outline,this.theme),e=this.backgroundRotation?{transform:`rotate(${this.backgroundRotation}deg)`,"transform-origin":"center center"}:{},a=Object.assign({color:t,background:d(n(this.background,this.theme),this.backgroundOpacity),"border-color":n(this.outline,this.theme)},e),o=Object.assign({},this.backgroundRotation?{transform:`rotate(-${this.backgroundRotation}deg)`,"transform-origin":"center center"}:{}),h="brand-rotated"===this.shape?"duet-icon-shape-brand":`duet-icon-shape-${this.shape}`;return i(s,{key:"84c42b49ccdbce122db670bd99c0390de4ac152a",class:{"duet-m-0":"none"===this.margin,"duet-icon-has-outline":!!this.outline,"duet-icon-has-background":!!this.background}},i("span",{key:"20eba260f00af16a6b59a0fe9a92b2fbdebeba48","aria-hidden":"true",style:a,class:{"duet-icon":!0,"duet-theme-turva":"turva"===this.theme,"duet-theme-default":"default"===this.theme,"duet-icon-has-outline":!!this.outline,"duet-icon-has-background":!!this.background,[h]:!0,rotated:"brand-rotated"===this.shape&&"turva"!==this.theme,"duet-icon-not-responsive":!this.responsive}},i("span",{key:"2092b7fff365bcdf2260d992c78e346fed24b3ca","aria-hidden":"true",class:{"duet-icon-svg":!0,rotated:"brand-rotated"===this.shape&&"turva"!==this.theme},"data-name":this.name,innerHTML:this.svgContent,style:o})))}get element(){return a(this)}static get watchers(){return{src:["loadIcon"],icon:["loadIcon"],name:["loadIcon"]}}};c.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;display:inline-block;width:auto;max-width:100%;color:inherit;-webkit-tap-highlight-color:transparent}@media (max-width: 35.9375em){:host(.duet-icon-has-outline){margin-bottom:0 !important}}@media (max-width: 35.9375em){:host(.duet-icon-has-background){margin-bottom:0 !important}}:host(.duet-m-0){margin:0 !important}@media (max-width: 35.9375em){:host(.duet-m-0){margin:0 !important}}.duet-icon{-webkit-user-select:none;user-select:none;display:block;width:100%;height:100%;transform-origin:top center}.duet-icon.duet-icon-has-outline{padding:12px;border-style:solid;border-width:1px}@media (max-width: 35.9375em){.duet-icon.duet-icon-has-outline{outline:1px solid transparent;transform:scale(0.8)}}.duet-icon.duet-icon-has-background{padding:16px;color:rgb(255, 255, 255)}@media (max-width: 35.9375em){.duet-icon.duet-icon-has-background{outline:1px solid transparent;transform:scale(0.8)}}.duet-icon.duet-icon-has-background.duet-theme-turva,.duet-icon.duet-icon-has-background.duet-theme-default{color:rgb(255, 255, 255)}.duet-icon.duet-icon-shape-circle{border-radius:50%}.duet-icon.duet-icon-shape-brand{border-radius:25%}@media (max-width: 35.9375em){.duet-icon.duet-icon-not-responsive{transform:scale(1) !important}}.duet-icon.duet-theme-default{color:rgb(0, 119, 179)}.duet-icon.duet-theme-turva{color:rgb(198, 12, 48)}.duet-icon.duet-icon-shape-brand.rotated{transform:rotate(7deg) scale(0.875);transform-origin:center}.duet-icon.duet-icon-shape-brand.duet-theme-turva{display:flex;align-items:center;justify-content:center;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 144 130' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M67.4002 0.00277722C71.354 0.0260204 75.7751 0.261773 80.1626 0.90262C83.3916 1.37412 86.6046 1.97513 89.824 2.51802C91.5585 2.81022 93.3026 3.05925 95.0291 3.3996C102.623 4.89215 109.884 7.35924 116.592 11.4152C122.597 15.0478 127.726 19.7163 131.919 25.4756C135.024 29.7374 137.515 34.3662 139.4 39.3319C140.317 41.7459 141.075 44.2262 141.854 46.695C142.021 47.2196 141.984 47.8157 142.021 48.3801C142.354 53.5833 142.664 58.7864 143.018 63.9879C143.237 67.2021 143.528 70.4097 143.768 73.6206C144.067 77.5985 144.095 81.578 143.746 85.5576C143.501 88.3567 143.106 91.1293 142.437 93.8537C141.117 99.2395 138.941 104.207 135.603 108.58C132.414 112.759 128.49 116.036 123.975 118.561C120.429 120.544 116.702 122.058 112.824 123.175C109.121 124.241 105.361 125.011 101.548 125.493C100.916 125.572 100.351 125.768 99.783 126.074C98.1525 126.95 96.3956 127.47 94.6163 127.912C91.4225 128.705 88.1775 129.168 84.9149 129.495C83.0572 129.681 81.1978 129.838 79.3385 129.995C79.1337 130.012 78.9097 129.985 78.7161 129.916C76.2087 129.009 73.6566 128.255 71.0356 127.825C68.8547 127.467 66.6529 127.135 64.4512 127.047C58.4156 126.809 52.54 125.717 46.7989 123.809C40.8193 121.822 35.1245 119.181 29.8458 115.634C24.3911 111.97 19.5668 107.566 15.4705 102.313C10.9582 96.5267 7.406 90.1597 4.73864 83.2598C2.95772 78.6544 1.67604 73.8978 0.898394 68.9935C0.328759 65.3975 0.0183391 61.7798 0.000737963 58.1373C-0.0120628 55.3132 0.141547 52.4992 0.471168 49.6934C0.867992 46.3131 1.46643 42.9728 2.35449 39.6955C2.6121 38.7458 3.02813 37.8327 3.44735 36.9395C4.105 35.5366 4.70343 34.0773 5.54829 32.8006C7.15959 30.3683 8.51487 27.8182 9.53734 25.0705C9.60134 24.8962 9.71655 24.7302 9.84136 24.5957C12.1119 22.1535 14.5201 19.8674 17.0514 17.7191C23.9622 11.8551 31.6315 7.39743 40.0769 4.39076C44.0019 2.99285 48.023 1.97015 52.1144 1.24795C56.6011 0.45934 62.4495 -0.0420489 67.4002 0.00277722Z' /%3E%3C/svg%3E\");-webkit-mask-repeat:no-repeat;mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 144 130' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M67.4002 0.00277722C71.354 0.0260204 75.7751 0.261773 80.1626 0.90262C83.3916 1.37412 86.6046 1.97513 89.824 2.51802C91.5585 2.81022 93.3026 3.05925 95.0291 3.3996C102.623 4.89215 109.884 7.35924 116.592 11.4152C122.597 15.0478 127.726 19.7163 131.919 25.4756C135.024 29.7374 137.515 34.3662 139.4 39.3319C140.317 41.7459 141.075 44.2262 141.854 46.695C142.021 47.2196 141.984 47.8157 142.021 48.3801C142.354 53.5833 142.664 58.7864 143.018 63.9879C143.237 67.2021 143.528 70.4097 143.768 73.6206C144.067 77.5985 144.095 81.578 143.746 85.5576C143.501 88.3567 143.106 91.1293 142.437 93.8537C141.117 99.2395 138.941 104.207 135.603 108.58C132.414 112.759 128.49 116.036 123.975 118.561C120.429 120.544 116.702 122.058 112.824 123.175C109.121 124.241 105.361 125.011 101.548 125.493C100.916 125.572 100.351 125.768 99.783 126.074C98.1525 126.95 96.3956 127.47 94.6163 127.912C91.4225 128.705 88.1775 129.168 84.9149 129.495C83.0572 129.681 81.1978 129.838 79.3385 129.995C79.1337 130.012 78.9097 129.985 78.7161 129.916C76.2087 129.009 73.6566 128.255 71.0356 127.825C68.8547 127.467 66.6529 127.135 64.4512 127.047C58.4156 126.809 52.54 125.717 46.7989 123.809C40.8193 121.822 35.1245 119.181 29.8458 115.634C24.3911 111.97 19.5668 107.566 15.4705 102.313C10.9582 96.5267 7.406 90.1597 4.73864 83.2598C2.95772 78.6544 1.67604 73.8978 0.898394 68.9935C0.328759 65.3975 0.0183391 61.7798 0.000737963 58.1373C-0.0120628 55.3132 0.141547 52.4992 0.471168 49.6934C0.867992 46.3131 1.46643 42.9728 2.35449 39.6955C2.6121 38.7458 3.02813 37.8327 3.44735 36.9395C4.105 35.5366 4.70343 34.0773 5.54829 32.8006C7.15959 30.3683 8.51487 27.8182 9.53734 25.0705C9.60134 24.8962 9.71655 24.7302 9.84136 24.5957C12.1119 22.1535 14.5201 19.8674 17.0514 17.7191C23.9622 11.8551 31.6315 7.39743 40.0769 4.39076C44.0019 2.99285 48.023 1.97015 52.1144 1.24795C56.6011 0.45934 62.4495 -0.0420489 67.4002 0.00277722Z' /%3E%3C/svg%3E\");mask-repeat:no-repeat;mask-position:center}.duet-icon.duet-icon-shape-brand.duet-theme-turva .duet-icon-svg{min-width:auto}.duet-icon .duet-icon-svg{display:block;width:24px;min-width:100%;height:24px;font-size:0}.duet-icon .duet-icon-svg.rotated{transform:rotate(-7deg) scale(1.14)}.duet-icon svg{width:100%;min-width:100%;overflow:clip;fill:currentColor;overflow-clip-margin:1px}:host([size=auto]) .duet-icon-svg{width:100%;height:100%}:host([size=xxx-small]) .duet-icon-svg{width:7px;height:7px}:host([size=xxx-small]) .duet-icon-has-background{padding:6px}:host([size=xxx-small]) .duet-icon-has-outline{padding:4px}:host([size=xxx-small]) .duet-icon-has-background .duet-icon-svg,:host([size=xxx-small]) .duet-icon-has-outline .duet-icon-svg{width:10px;height:10px}:host([size=xxx-small]) .duet-icon-shape-brand{padding:0}:host([size=xxx-small]) .duet-icon-shape-brand .duet-icon-svg{width:0;height:0}:host([size=xx-small]) .duet-icon-svg{width:10px;height:10px}:host([size=xx-small]) .duet-icon-has-background{padding:8px}:host([size=xx-small]) .duet-icon-has-outline{padding:7px}:host([size=xx-small]) .duet-icon-has-background .duet-icon-svg,:host([size=xx-small]) .duet-icon-has-outline .duet-icon-svg{width:16px;height:16px}:host([size=xx-small]) .duet-icon-shape-brand{padding:4px}:host([size=xx-small]) .duet-icon-shape-brand .duet-icon-svg{width:10px;height:10px}:host([size=xx-small]) .duet-theme-turva .duet-icon-shape-brand{width:18px;height:15px;padding:0}:host([size=x-small]) .duet-icon-svg{width:16px;height:16px}:host([size=x-small]) .duet-icon-has-outline{padding:10px}:host([size=x-small]) .duet-icon-has-background{padding:12px}:host([size=x-small]) .duet-icon-shape-brand{padding:8px}:host([size=x-small]) .duet-icon-shape-brand .duet-icon-svg{width:16px;height:16px}:host([size=x-small]) .duet-theme-turva .duet-icon-shape-brand{width:32px;height:30px;padding:0}:host([size=small]) .duet-icon-svg{width:20px;height:20px}:host([size=small]) .duet-icon-has-background{padding:14px}:host([size=small]) .duet-icon-shape-brand{padding:8px}:host([size=small]) .duet-icon-shape-brand .duet-icon-svg{width:20px;height:20px}:host([size=small]) .duet-theme-turva .duet-icon-shape-brand{width:36px;height:34px;padding:0}:host([size=medium]) .duet-icon-shape-brand{padding:12px}:host([size=medium]) .duet-icon-shape-brand .duet-icon-svg{width:24px;height:24px}:host([size=medium]) .duet-theme-turva .duet-icon-shape-brand{width:48px;height:44px;padding:0}:host([size=large]) .duet-icon-svg{width:30px;height:30px}:host([size=large]) .duet-icon-shape-brand{padding:16px}:host([size=large]) .duet-icon-shape-brand .duet-icon-svg{width:30px;height:30px}:host([size=large]) .duet-theme-turva .duet-icon-shape-brand{width:62px;height:56px;padding:0}:host([size=x-large]) .duet-icon-svg{width:36px;height:36px}:host([size=x-large]) .duet-icon-shape-brand{padding:20px}:host([size=x-large]) .duet-icon-shape-brand .duet-icon-svg{width:36px;height:36px}:host([size=x-large]) .duet-theme-turva .duet-icon-shape-brand{width:76px;height:68px;padding:0}:host([size=xx-large]) .duet-icon-svg{width:48px;height:48px}:host([size=xx-large]) .duet-icon-shape-brand{padding:24px}:host([size=xx-large]) .duet-icon-shape-brand .duet-icon-svg{width:48px;height:48px}:host([size=xx-large]) .duet-theme-turva .duet-icon-shape-brand{width:95px;height:86px;padding:0}:host([size=xxx-large]) .duet-icon-svg{width:48px;height:48px}@media (min-width: 48em){:host([size=xxx-large]) .duet-icon-svg{width:72px;height:72px}}:host([size=xxx-large]) .duet-icon-shape-brand{padding:36px}:host([size=xxx-large]) .duet-icon-shape-brand .duet-icon-svg{width:72px;height:72px}:host([size=xxx-large]) .duet-theme-turva .duet-icon-shape-brand{width:144px;height:130px;padding:0}";export{c as duet_icon}
4
+ import{E as t,r as e,h as i,H as s,g as o}from"./p-3f5c74ac.js";import{i as a}from"./p-347269f4.js";import{g as n,r as d}from"./p-5de30279.js";import"./p-17efced0.js";const h=t=>{if("script"===t.nodeName.toLowerCase())return!1;for(let e=0;e<t.attributes.length;e++)if(0===t.attributes[e].name.toLowerCase().indexOf("on"))return!1;if(t.children)for(let e=0;e<t.children.length;e++)if(!h(t.children[e]))return!1;return!0},r={};const u=class{constructor(t){e(this,t),this.svgContent=void 0,this.theme="",this.icon=void 0,this.src=void 0,this.name="action-add",this.margin="auto",this.responsive=!0,this.color="",this.background="",this.backgroundOpacity=1,this.backgroundRotation=0,this.size="medium",this.outline="",this.shape="circle"}async componentWillLoad(){a(this),this.src&&this.icon&&console.warn("[DUET COMPONENTS]: <duet-icon> should have either have src or icon attributes, but not both. icon attribute will take precedence","icon:",this.icon,"src:",this.src),await this.loadIcon(null,null)}async loadIcon(e,i){if(this.icon)return void(this.svgContent=this.icon);if(this.element.shadowRoot.querySelector("svg")&&!this.svgContent){if(null===i&&null===e)return;if(this.element.shadowRoot.querySelector(`.duet-icon-svg[data-name="${e}"]`))return}const s=this.src?this.src:this.name?(e=>{const i=window.duetcdnuri?window.duetcdnuri:t.cdnURIProd;return i.includes("localhost")?`${i}/icons/lib/assets/${e}.svg`:`${i}/icons/${t.duetIconVersion}/lib/assets/${e}.svg`})(this.name):"";if(s)try{this.svgContent=await function(t){if(r[t])return r[t];const e=async function(){const e=await fetch(t);if(!e.ok)throw new Error(`SVG request failed: ${e.status} ${e.statusText}`);const i=(t=>{if("undefined"==typeof document||!t)return;const e=document.createElement("div");e.innerHTML=t;for(let t=e.childNodes.length-1;t>=0;t--)"svg"!==e.childNodes[t].nodeName.toLowerCase()&&e.removeChild(e.childNodes[t]);return e.firstElementChild})(await e.text());if(!h(i))throw new Error("SVG validation failed");const s=document.createElement("div");return s.appendChild(i),s.innerHTML}();return r[t]=e}(s)}catch(t){console.warn(`[DUET COMPONENTS]: <duet-icon> could not load SVG from URL: ${s}.`,t)}else this.svgContent=""}render(){const t="currentColor"===this.color?"currentColor":n(this.color,this.theme)||n(this.outline,this.theme),e=this.backgroundRotation?{transform:`rotate(${this.backgroundRotation}deg)`,"transform-origin":"center center"}:{},o=Object.assign({color:t,background:d(n(this.background,this.theme),this.backgroundOpacity),"border-color":n(this.outline,this.theme)},e),a=Object.assign({},this.backgroundRotation?{transform:`rotate(-${this.backgroundRotation}deg)`,"transform-origin":"center center"}:{}),h="brand-rotated"===this.shape?"duet-icon-shape-brand":`duet-icon-shape-${this.shape}`;return i(s,{key:"84c42b49ccdbce122db670bd99c0390de4ac152a",class:{"duet-m-0":"none"===this.margin,"duet-icon-has-outline":!!this.outline,"duet-icon-has-background":!!this.background}},i("span",{key:"20eba260f00af16a6b59a0fe9a92b2fbdebeba48","aria-hidden":"true",style:o,class:{"duet-icon":!0,"duet-theme-turva":"turva"===this.theme,"duet-theme-default":"default"===this.theme,"duet-icon-has-outline":!!this.outline,"duet-icon-has-background":!!this.background,[h]:!0,rotated:"brand-rotated"===this.shape&&"turva"!==this.theme,"duet-icon-not-responsive":!this.responsive}},i("span",{key:"2092b7fff365bcdf2260d992c78e346fed24b3ca","aria-hidden":"true",class:{"duet-icon-svg":!0,rotated:"brand-rotated"===this.shape&&"turva"!==this.theme},"data-name":this.name,innerHTML:this.svgContent,style:a})))}get element(){return o(this)}static get watchers(){return{src:["loadIcon"],icon:["loadIcon"],name:["loadIcon"]}}};u.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;display:inline-block;width:auto;max-width:100%;color:inherit;-webkit-tap-highlight-color:transparent}@media (max-width: 35.9375em){:host(.duet-icon-has-outline){margin-bottom:0 !important}}@media (max-width: 35.9375em){:host(.duet-icon-has-background){margin-bottom:0 !important}}:host(.duet-m-0){margin:0 !important}@media (max-width: 35.9375em){:host(.duet-m-0){margin:0 !important}}.duet-icon{-webkit-user-select:none;user-select:none;display:block;width:100%;height:100%;transform-origin:top center}.duet-icon.duet-icon-has-outline{padding:12px;border-style:solid;border-width:1px}@media (max-width: 35.9375em){.duet-icon.duet-icon-has-outline{outline:1px solid transparent;transform:scale(0.8)}}.duet-icon.duet-icon-has-background{padding:16px;color:rgb(255, 255, 255)}@media (max-width: 35.9375em){.duet-icon.duet-icon-has-background{outline:1px solid transparent;transform:scale(0.8)}}.duet-icon.duet-icon-has-background.duet-theme-turva,.duet-icon.duet-icon-has-background.duet-theme-default{color:rgb(255, 255, 255)}.duet-icon.duet-icon-shape-circle{border-radius:50%}.duet-icon.duet-icon-shape-brand{border-radius:25%}@media (max-width: 35.9375em){.duet-icon.duet-icon-not-responsive{transform:scale(1) !important}}.duet-icon.duet-theme-default{color:rgb(0, 119, 179)}.duet-icon.duet-theme-turva{color:rgb(198, 12, 48)}.duet-icon.duet-icon-shape-brand.rotated{transform:rotate(7deg) scale(0.875);transform-origin:center}.duet-icon.duet-icon-shape-brand.duet-theme-turva{display:flex;align-items:center;justify-content:center;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 144 130' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M67.4002 0.00277722C71.354 0.0260204 75.7751 0.261773 80.1626 0.90262C83.3916 1.37412 86.6046 1.97513 89.824 2.51802C91.5585 2.81022 93.3026 3.05925 95.0291 3.3996C102.623 4.89215 109.884 7.35924 116.592 11.4152C122.597 15.0478 127.726 19.7163 131.919 25.4756C135.024 29.7374 137.515 34.3662 139.4 39.3319C140.317 41.7459 141.075 44.2262 141.854 46.695C142.021 47.2196 141.984 47.8157 142.021 48.3801C142.354 53.5833 142.664 58.7864 143.018 63.9879C143.237 67.2021 143.528 70.4097 143.768 73.6206C144.067 77.5985 144.095 81.578 143.746 85.5576C143.501 88.3567 143.106 91.1293 142.437 93.8537C141.117 99.2395 138.941 104.207 135.603 108.58C132.414 112.759 128.49 116.036 123.975 118.561C120.429 120.544 116.702 122.058 112.824 123.175C109.121 124.241 105.361 125.011 101.548 125.493C100.916 125.572 100.351 125.768 99.783 126.074C98.1525 126.95 96.3956 127.47 94.6163 127.912C91.4225 128.705 88.1775 129.168 84.9149 129.495C83.0572 129.681 81.1978 129.838 79.3385 129.995C79.1337 130.012 78.9097 129.985 78.7161 129.916C76.2087 129.009 73.6566 128.255 71.0356 127.825C68.8547 127.467 66.6529 127.135 64.4512 127.047C58.4156 126.809 52.54 125.717 46.7989 123.809C40.8193 121.822 35.1245 119.181 29.8458 115.634C24.3911 111.97 19.5668 107.566 15.4705 102.313C10.9582 96.5267 7.406 90.1597 4.73864 83.2598C2.95772 78.6544 1.67604 73.8978 0.898394 68.9935C0.328759 65.3975 0.0183391 61.7798 0.000737963 58.1373C-0.0120628 55.3132 0.141547 52.4992 0.471168 49.6934C0.867992 46.3131 1.46643 42.9728 2.35449 39.6955C2.6121 38.7458 3.02813 37.8327 3.44735 36.9395C4.105 35.5366 4.70343 34.0773 5.54829 32.8006C7.15959 30.3683 8.51487 27.8182 9.53734 25.0705C9.60134 24.8962 9.71655 24.7302 9.84136 24.5957C12.1119 22.1535 14.5201 19.8674 17.0514 17.7191C23.9622 11.8551 31.6315 7.39743 40.0769 4.39076C44.0019 2.99285 48.023 1.97015 52.1144 1.24795C56.6011 0.45934 62.4495 -0.0420489 67.4002 0.00277722Z' /%3E%3C/svg%3E\");-webkit-mask-repeat:no-repeat;mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 144 130' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M67.4002 0.00277722C71.354 0.0260204 75.7751 0.261773 80.1626 0.90262C83.3916 1.37412 86.6046 1.97513 89.824 2.51802C91.5585 2.81022 93.3026 3.05925 95.0291 3.3996C102.623 4.89215 109.884 7.35924 116.592 11.4152C122.597 15.0478 127.726 19.7163 131.919 25.4756C135.024 29.7374 137.515 34.3662 139.4 39.3319C140.317 41.7459 141.075 44.2262 141.854 46.695C142.021 47.2196 141.984 47.8157 142.021 48.3801C142.354 53.5833 142.664 58.7864 143.018 63.9879C143.237 67.2021 143.528 70.4097 143.768 73.6206C144.067 77.5985 144.095 81.578 143.746 85.5576C143.501 88.3567 143.106 91.1293 142.437 93.8537C141.117 99.2395 138.941 104.207 135.603 108.58C132.414 112.759 128.49 116.036 123.975 118.561C120.429 120.544 116.702 122.058 112.824 123.175C109.121 124.241 105.361 125.011 101.548 125.493C100.916 125.572 100.351 125.768 99.783 126.074C98.1525 126.95 96.3956 127.47 94.6163 127.912C91.4225 128.705 88.1775 129.168 84.9149 129.495C83.0572 129.681 81.1978 129.838 79.3385 129.995C79.1337 130.012 78.9097 129.985 78.7161 129.916C76.2087 129.009 73.6566 128.255 71.0356 127.825C68.8547 127.467 66.6529 127.135 64.4512 127.047C58.4156 126.809 52.54 125.717 46.7989 123.809C40.8193 121.822 35.1245 119.181 29.8458 115.634C24.3911 111.97 19.5668 107.566 15.4705 102.313C10.9582 96.5267 7.406 90.1597 4.73864 83.2598C2.95772 78.6544 1.67604 73.8978 0.898394 68.9935C0.328759 65.3975 0.0183391 61.7798 0.000737963 58.1373C-0.0120628 55.3132 0.141547 52.4992 0.471168 49.6934C0.867992 46.3131 1.46643 42.9728 2.35449 39.6955C2.6121 38.7458 3.02813 37.8327 3.44735 36.9395C4.105 35.5366 4.70343 34.0773 5.54829 32.8006C7.15959 30.3683 8.51487 27.8182 9.53734 25.0705C9.60134 24.8962 9.71655 24.7302 9.84136 24.5957C12.1119 22.1535 14.5201 19.8674 17.0514 17.7191C23.9622 11.8551 31.6315 7.39743 40.0769 4.39076C44.0019 2.99285 48.023 1.97015 52.1144 1.24795C56.6011 0.45934 62.4495 -0.0420489 67.4002 0.00277722Z' /%3E%3C/svg%3E\");mask-repeat:no-repeat;mask-position:center}.duet-icon.duet-icon-shape-brand.duet-theme-turva .duet-icon-svg{min-width:auto}.duet-icon .duet-icon-svg{display:block;width:24px;min-width:100%;height:24px;font-size:0}.duet-icon .duet-icon-svg.rotated{transform:rotate(-7deg) scale(1.14)}.duet-icon svg{width:100%;min-width:100%;overflow:clip;fill:currentColor;overflow-clip-margin:1px}:host([size=auto]) .duet-icon-svg{width:100%;height:100%}:host([size=xxx-small]) .duet-icon-svg{width:7px;height:7px}:host([size=xxx-small]) .duet-icon-has-background{padding:6px}:host([size=xxx-small]) .duet-icon-has-outline{padding:4px}:host([size=xxx-small]) .duet-icon-has-background .duet-icon-svg,:host([size=xxx-small]) .duet-icon-has-outline .duet-icon-svg{width:10px;height:10px}:host([size=xxx-small]) .duet-icon-shape-brand{padding:0}:host([size=xxx-small]) .duet-icon-shape-brand .duet-icon-svg{width:0;height:0}:host([size=xx-small]) .duet-icon-svg{width:10px;height:10px}:host([size=xx-small]) .duet-icon-has-background{padding:8px}:host([size=xx-small]) .duet-icon-has-outline{padding:7px}:host([size=xx-small]) .duet-icon-has-background .duet-icon-svg,:host([size=xx-small]) .duet-icon-has-outline .duet-icon-svg{width:16px;height:16px}:host([size=xx-small]) .duet-icon-shape-brand{padding:4px}:host([size=xx-small]) .duet-icon-shape-brand .duet-icon-svg{width:10px;height:10px}:host([size=xx-small]) .duet-theme-turva .duet-icon-shape-brand{width:18px;height:15px;padding:0}:host([size=x-small]) .duet-icon-svg{width:16px;height:16px}:host([size=x-small]) .duet-icon-has-outline{padding:10px}:host([size=x-small]) .duet-icon-has-background{padding:12px}:host([size=x-small]) .duet-icon-shape-brand{padding:8px}:host([size=x-small]) .duet-icon-shape-brand .duet-icon-svg{width:16px;height:16px}:host([size=x-small]) .duet-theme-turva .duet-icon-shape-brand{width:32px;height:30px;padding:0}:host([size=small]) .duet-icon-svg{width:20px;height:20px}:host([size=small]) .duet-icon-has-background{padding:14px}:host([size=small]) .duet-icon-shape-brand{padding:8px}:host([size=small]) .duet-icon-shape-brand .duet-icon-svg{width:20px;height:20px}:host([size=small]) .duet-theme-turva .duet-icon-shape-brand{width:36px;height:34px;padding:0}:host([size=medium]) .duet-icon-shape-brand{padding:12px}:host([size=medium]) .duet-icon-shape-brand .duet-icon-svg{width:24px;height:24px}:host([size=medium]) .duet-theme-turva .duet-icon-shape-brand{width:48px;height:44px;padding:0}:host([size=large]) .duet-icon-svg{width:30px;height:30px}:host([size=large]) .duet-icon-shape-brand{padding:16px}:host([size=large]) .duet-icon-shape-brand .duet-icon-svg{width:30px;height:30px}:host([size=large]) .duet-theme-turva .duet-icon-shape-brand{width:62px;height:56px;padding:0}:host([size=x-large]) .duet-icon-svg{width:36px;height:36px}:host([size=x-large]) .duet-icon-shape-brand{padding:20px}:host([size=x-large]) .duet-icon-shape-brand .duet-icon-svg{width:36px;height:36px}:host([size=x-large]) .duet-theme-turva .duet-icon-shape-brand{width:76px;height:68px;padding:0}:host([size=xx-large]) .duet-icon-svg{width:48px;height:48px}:host([size=xx-large]) .duet-icon-shape-brand{padding:24px}:host([size=xx-large]) .duet-icon-shape-brand .duet-icon-svg{width:48px;height:48px}:host([size=xx-large]) .duet-theme-turva .duet-icon-shape-brand{width:95px;height:86px;padding:0}:host([size=xxx-large]) .duet-icon-svg{width:48px;height:48px}@media (min-width: 48em){:host([size=xxx-large]) .duet-icon-svg{width:72px;height:72px}}:host([size=xxx-large]) .duet-icon-shape-brand{padding:36px}:host([size=xxx-large]) .duet-icon-shape-brand .duet-icon-svg{width:72px;height:72px}:host([size=xxx-large]) .duet-theme-turva .duet-icon-shape-brand{width:144px;height:130px;padding:0}:host(.duet-theme-turva2) .duet-icon.duet-theme-turva{color:rgb(197, 29, 65)}:host(.duet-theme-turva2) .duet-icon.duet-theme-turva.duet-icon-has-background{color:rgb(255, 255, 255)}";export{u as duet_icon}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as t,c as i,h as e,H as u,g as n}from"./p-ed0179f9.js";import{f as s}from"./p-d004da5f.js";import{i as a}from"./p-2e417433.js";import{c as o}from"./p-5e59e970.js";import{c as d,r as p}from"./p-df7874f9.js";import{f as r,j as l,e as c,d as h,a as b}from"./p-a45e3f8b.js";import{a as m,c as g,d as v,g as x}from"./p-0773901d.js";import{c as f}from"./p-ae924d35.js";import{g as w}from"./p-5de30279.js";import"./p-9c3c64b9.js";import"./p-17efced0.js";const y={search:s,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>'}},k=class{constructor(e){t(this,e),this.duetInput=i(this,"duetInput",7),this.duetChange=i(this,"duetChange",3),this.duetBlur=i(this,"duetBlur",7),this.duetClear=i(this,"duetClear",7),this.duetFocus=i(this,"duetFocus",7),this.inputId=o("DuetInput"),this.clearId=o("DuetInputClear"),this.labelId=o("DuetLabel"),this.topCaptionId=o("DuetCaptionTop"),this.topCaptionPlaceholderId=o("DuetCaptionPlaceholderTop"),this.chipCountId=o("DuetInputChipCount"),this.errorId=o("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&&d(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 i=this.getAllChips();i.length&&(t.push(this.chipCountId),i.forEach((i=>t.push(i.id))))}return this.error&&t.push(this.errorId),t.length>0?t.join(" "):null},this.handleClearClick=t=>{const i=this.clearInput();return this.onClear(t),i},this.keyHandler=t=>(r(t)&&this.clear&&this.handleClearClick(t),l(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()),h(t)&&this.selectChipToLeft(),b(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=m(),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=p(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))}get validity(){return this.nativeInput.validity}componentWillLoad(){a(this),this.disallowedPatternChange(),this.isCaptionVisible=!!this.caption,f(this.element,"tooltip","duet-tooltip",1,!0)}componentDidLoad(){"revealable"===this.variation&&this.nativeInput.form&&this.nativeInput.form.addEventListener("submit",(()=>{this.isPasswordRevealed=!1}))}connectedCallback(){g(this)}disconnectedCallback(){v(this)}async setFocus(t){this.nativeInput&&this.nativeInput.focus(t)}async resetCursor(){if(this.nativeInput){const t=p(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.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(),i=t.findIndex((t=>t.selected));t.length&&(t.forEach((t=>t.selected=!1)),-1===i?t.at(-1).selected=!0:0===i?t[0].selected=!0:t[i-1].selected=!0)}selectChipToRight(){const t=this.getAllChips(),i=t.findIndex((t=>t.selected));t.length&&(t.forEach((t=>t.selected=!1)),i>-1&&i<t.length-1&&(t[i+1].selected=!0))}async addChip(t){const i=this.element.querySelector(".duet-input-relative"),e=i.querySelector("input:not(duet-chip input)");t.id=o("DuetInputChip"),i.insertBefore(t,e)}async hasChip({value:t,text:i}){return this.getAllChips().some((e=>e.value===t&&e.textContent===i))}async getChips(){return this.getAllChips()}async clearChips(){this.getAllChips().forEach((t=>t.remove()))}render(){const t=this.identifier||this.inputId,i={};let n;if(this.numericKeyboard&&(i.inputmode="numeric"),this.pattern&&"tel"!==this.type?i.pattern=this.pattern:this.pattern||"tel"!==this.type||(i.pattern="[0-9+ ]+"),this.value){n=new Date;try{n.setHours(Number(this.value.slice(0,2)),Number(this.value.slice(3,5)),0,0)}catch(t){n=void 0}}const s=!this.icon&&"text"!==this.type&&"tel"!==this.type&&"password"!==this.type&&"time"!==this.type&&"button"!==this.variation;return e(u,{class:{"duet-expand":this.expand,"duet-m-0":"none"===this.margin},onKeyUp:t=>this.keyHandler(t)},"time"===this.type&&e("duet-visually-hidden",{"aria-live":"polite","aria-atomic":"true"},n?`${this.timeAnnouncement[this.language]} ${n.toLocaleTimeString()}`:""),e("div",{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}},e("div",{class:"duet-input-label-container"},e("duet-label",{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&&e("duet-tooltip",{class:"duet-input-tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label,theme:"turva"===this.theme?"turva":"default"},this.tooltip),e("slot",{name:"tooltip"})),this.caption&&e("duet-caption",{id:this.topCaptionId,size:"medium"},this.caption),e("div",{class:"duet-input-relative"},this.placeholder&&this.echoPlaceholder&&(this.value||"time"===this.type)&&e("duet-caption",{id:this.topCaptionPlaceholderId,class:"duet-input-placeholder",margin:"none",size:"small"},this.placeholder),this.chips&&e("duet-visually-hidden",{id:this.chipCountId},", ",`${this.getAllChips().length} ${x(this.chipsSelectedDesriptionLabel)}`,","),"button-left"===this.variation&&e("slot",{name:"button-left"}),e("input",Object.assign({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},i)),!this.value&&s&&e("div",{class:"duet-input-icon"},e("duet-icon",{margin:"none",size:"small",icon:y[this.type].svg,color:"currentColor"})),this.clear&&this.value&&e("div",{class:{"duet-input-clear-icon":!0,"duet-input-clear-icon-single":!s,"duet-input-clear-icon-double":!!this.icon,"duet-input-clear-icon-button":"button"===this.variation,[`input-padding-${this.inputPadding}`]:!0}},e("button",{onClick:this.handleClearClick,id:this.clearId,"aria-label":this.clearLabel[this.language],"aria-keyshortcuts":"Escape"},e("duet-icon",{margin:"none",size:"medium",name:"action-clear-input",color:"currentColor"}))),this.icon&&"button"!==this.variation&&e("div",{class:"duet-input-icon"},e("duet-icon",{margin:"none",size:"small",name:this.icon,color:"currentColor"})),"button"===this.variation&&e("slot",{name:"button"}),"revealable"===this.variation&&e("duet-button",{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&&e("duet-visually-hidden",null,e("span",{"aria-live":"polite"},this.isPasswordRevealed?this.passwordShownAriaAnnouncement[this.language]:this.passwordHiddenAriaAnnouncement[this.language])),e("slot",null)),e("span",{class:"duet-input-help",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&e("span",{class:"duet-input-error"},this.error))))}get element(){return n(this)}static get watchers(){return{disallowPattern:["disallowedPatternChange"],value:["valueChanged"]}}};k.style='*.sc-duet-input,*.sc-duet-input::after,*.sc-duet-input::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-input-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;text-align:left;vertical-align:bottom}.sc-duet-input-h:last-child,.sc-duet-input-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-input-h{width:calc(50% - 16px - 3px)}}.duet-expand.sc-duet-input-h{width:100% !important}.duet-m-0.sc-duet-input-h{margin:0 !important}input[type=search].sc-duet-input::-webkit-search-cancel-button{-webkit-appearance:none}duet-tooltip.sc-duet-input,.sc-duet-input-s>duet-tooltip{position:relative;top:12px;right:0}@media (min-width: 48em){duet-tooltip.sc-duet-input,.sc-duet-input-s>duet-tooltip{right:auto}}duet-caption.sc-duet-input:not(:last-of-type){margin-bottom:0}.duet-input-placeholder.sc-duet-input{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.sc-duet-input{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.sc-duet-input .duet-input-icon.sc-duet-input{color:rgb(23, 28, 58)}.duet-input-container.sc-duet-input{position:relative;width:100%;height:100%}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input{position:relative;z-index:250}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input{position:absolute;top:-24px;right:-24px;min-width:48px;min-height:48px;color:rgb(0, 75, 129)}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva.sc-duet-input .duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input:focus,.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input: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.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input:active{opacity:0.75;transition:none}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.input-padding-xx-small.sc-duet-input button.sc-duet-input{top:-12px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.input-padding-x-small.sc-duet-input button.sc-duet-input{top:-16px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.input-padding-small.sc-duet-input button.sc-duet-input{top:-20px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-single.sc-duet-input button.sc-duet-input{top:-48px;right:0}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-single.input-padding-xx-small.sc-duet-input button.sc-duet-input{top:-36px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-single.input-padding-x-small.sc-duet-input button.sc-duet-input{top:-40px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-single.input-padding-small.sc-duet-input button.sc-duet-input{top:-44px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-double.sc-duet-input button.sc-duet-input{top:-24px;right:12px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-double.input-padding-xx-small.sc-duet-input button.sc-duet-input{top:-12px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-double.input-padding-x-small.sc-duet-input button.sc-duet-input{top:-16px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-double.input-padding-small.sc-duet-input button.sc-duet-input{top:-20px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-button.sc-duet-input button.sc-duet-input{top:-24px;right:0}.duet-input-container.has-clear.has-icon.sc-duet-input .duet-input-clear-icon.sc-duet-input{top:-24px;right:24px}.duet-input-container.duet-theme-turva.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input{color:rgb(8, 42, 77)}.duet-input-container.duet-theme-turva.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a !important}.duet-input-label-container.sc-duet-input{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between}@media (min-width: 48em){.duet-input-label-container.sc-duet-input{justify-content:flex-start}}.duet-input.sc-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.sc-duet-input{padding:8px 10px !important}.duet-input.input-padding-x-small.sc-duet-input{padding:4px 6px !important}.duet-input.input-padding-xx-small.sc-duet-input{padding:0px 2px !important}.duet-input.is-number.sc-duet-input{padding-right:112px !important}.duet-input.is-date.sc-duet-input{padding-right:64px !important}.duet-input.after-chip.sc-duet-input{padding-left:8px !important}.has-error.sc-duet-input .duet-input.sc-duet-input{border-color:rgb(214, 28, 82) !important}.has-error.sc-duet-input .duet-input.sc-duet-input+.duet-input-icon.sc-duet-input{color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error.sc-duet-input .duet-input.sc-duet-input{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error.sc-duet-input .duet-input.sc-duet-input+.duet-input-icon.sc-duet-input{color:rgb(214, 28, 82) !important}.has-icon.sc-duet-input .duet-input.sc-duet-input{padding-right:48px !important}.duet-theme-turva.sc-duet-input .duet-input.sc-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.sc-duet-input{text-align:right}.duet-input.sc-duet-input::-ms-clear{display:none}.duet-input.sc-duet-input::-webkit-contacts-auto-fill-button{display:none !important}.duet-input.sc-duet-input::-webkit-input-placeholder{color:rgb(98, 121, 138);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input::-webkit-input-placeholder{color:rgb(143, 147, 158)}.duet-input.sc-duet-input:focus::-webkit-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus::-webkit-input-placeholder{color:rgb(199, 202, 207)}.duet-input.sc-duet-input::-moz-placeholder{color:rgb(98, 121, 138);opacity:1 !important}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input::-moz-placeholder{color:rgb(143, 147, 158)}.duet-input.sc-duet-input:focus::-moz-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus::-moz-placeholder{color:rgb(199, 202, 207)}.duet-input.sc-duet-input:-ms-input-placeholder{color:rgb(98, 121, 138)}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:-ms-input-placeholder{color:rgb(143, 147, 158)}.duet-input.sc-duet-input:focus:-ms-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus:-ms-input-placeholder{color:rgb(199, 202, 207)}.duet-input[disabled].sc-duet-input{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.sc-duet-input .duet-input[disabled].sc-duet-input{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.sc-duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #909599 !important}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #747475 !important}.has-error.sc-duet-input .duet-input.sc-duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error.sc-duet-input .duet-input.sc-duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #e55039}.duet-input.sc-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.sc-duet-input .duet-input.sc-duet-input:focus{border-color:rgb(23, 28, 58) !important;box-shadow:0 0 0 1px #171c3a !important}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus+.duet-input-icon.sc-duet-input{color:rgb(23, 28, 58)}.has-error.sc-duet-input .duet-input.sc-duet-input:focus{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error.sc-duet-input .duet-input.sc-duet-input:focus{box-shadow:0 0 0 1px #e55039}.duet-input.sc-duet-input:focus+.duet-input-icon.sc-duet-input{color:rgb(0, 119, 179)}.duet-input[type=search].sc-duet-input:not(:placeholder-shown):focus+.duet-input-icon.sc-duet-input{display:none}.duet-input.sc-duet-input:not(:focus):not(:hover):invalid{box-shadow:none !important}.duet-input[type=number].sc-duet-input::-webkit-inner-spin-button,.duet-input[type=number].sc-duet-input::-webkit-outer-spin-button,.duet-input[type=time].sc-duet-input::-webkit-inner-spin-button,.duet-input[type=time].sc-duet-input::-webkit-outer-spin-button{display:none;margin:0;-webkit-appearance:none}.duet-input.sc-duet-input::-webkit-search-cancel-button{margin-right:-28px}.duet-input-help.sc-duet-input{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.sc-duet-input span.sc-duet-input{display:block;margin-top:8px}.duet-theme-turva.sc-duet-input .duet-input-help.sc-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(143, 147, 158)}.has-error.sc-duet-input .duet-input-help.sc-duet-input{color:rgb(214, 28, 82)}.duet-theme-turva.has-error.sc-duet-input .duet-input-help.sc-duet-input{color:rgb(214, 28, 82)}.duet-label-hidden.sc-duet-input duet-label.sc-duet-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.duet-input-relative.sc-duet-input{position:relative;width:100%}.duet-input-variation-button.sc-duet-input,.duet-input-variation-button-left.sc-duet-input{position:relative;width:100%}.duet-input-variation-button.sc-duet-input .duet-input-relative.sc-duet-input,.duet-input-variation-button-left.sc-duet-input .duet-input-relative.sc-duet-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;align-items:center;justify-content:flex-start;width:auto}.duet-input-variation-button.sc-duet-input .duet-input-relative.sc-duet-input duet-button.sc-duet-input,.duet-input-variation-button-left.sc-duet-input .duet-input-relative.sc-duet-input duet-button.sc-duet-input{z-index:250;margin-bottom:0}.duet-input-variation-button-left.sc-duet-input .duet-input-relative.sc-duet-input{border-radius:4px}.duet-input-variation-button-left.has-focus.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(0, 119, 179);box-shadow:0 0 0 1px #0077b3 !important}.duet-input-variation-button-left.duet-theme-turva.has-focus.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.duet-input-variation-button-left.sc-duet-input:hover:not(.disabled) .duet-input-relative.sc-duet-input{box-shadow:0 0 0 1px #909599}.duet-input-variation-button-left.duet-theme-turva.sc-duet-input:hover:not(.disabled) .duet-input-relative.sc-duet-input{box-shadow:0 0 0 1px #747475}.duet-input-variation-button-left.sc-duet-input .duet-input.sc-duet-input:focus,.duet-input-variation-button-left.sc-duet-input .duet-input.sc-duet-input:hover:not(.disabled){box-shadow:none !important}.duet-input-variation-button.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input{border-right-width:0 !important;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.duet-input-variation-button-left.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input{border-left-width:0 !important;border-top-left-radius:0 !important;border-bottom-left-radius:0 !important}.duet-input-variation-revealable.sc-duet-input{position:relative;width:100%}.duet-input-variation-revealable.sc-duet-input .sc-duet-input::-ms-reveal{display:none}.duet-input-variation-revealable.sc-duet-input .duet-input-relative.sc-duet-input{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.sc-duet-input .duet-input-variation-revealable.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(143, 147, 158)}.duet-input-variation-revealable.sc-duet-input .duet-input-relative.sc-duet-input duet-button.sc-duet-input{z-index:250;margin-bottom:0}.duet-input-variation-revealable.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input{border-width:0 !important}.duet-input-variation-revealable.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input:focus,.duet-input-variation-revealable.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input:hover{border-width:0 !important;box-shadow:none !important}.duet-input-variation-revealable.disabled.sc-duet-input .duet-input-relative.sc-duet-input{background:rgb(245, 248, 250);border-color:rgb(212, 223, 229);box-shadow:none}.duet-input-variation-revealable.has-error.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(214, 28, 82)}.duet-input-variation-revealable.duet-theme-turva.has-error.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(214, 28, 82)}.duet-input-variation-revealable.has-focus.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(0, 119, 179);box-shadow:0 0 0 1px #0077b3 !important}.duet-input-variation-revealable.duet-theme-turva.has-focus.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.duet-input-variation-revealable.sc-duet-input:hover:not(.disabled) .duet-input-relative.sc-duet-input{box-shadow:0 0 0 1px #909599}.duet-input-variation-revealable.duet-theme-turva.sc-duet-input:hover:not(.disabled) .duet-input-relative.sc-duet-input{box-shadow:0 0 0 1px #747475}.duet-input-variation-revealable.has-error.sc-duet-input:hover:not(.disabled) .duet-input-relative.sc-duet-input{box-shadow:0 0 0 1px #de2362}.duet-input-variation-revealable.duet-theme-turva.has-error.sc-duet-input:hover:not(.disabled) .duet-input-relative.sc-duet-input{box-shadow:0 0 0 1px #e55039}.duet-input-container.has-chips.sc-duet-input .duet-input-relative.sc-duet-input{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.sc-duet-input .duet-input-container.has-chips.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(143, 147, 158)}.duet-input-container.has-chips.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-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.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input:focus,.duet-input-container.has-chips.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input:hover{border-width:0 !important;box-shadow:none !important}';const C=class{constructor(i){t(this,i),this.theme="",this.for=void 0,this.margin="auto",this.size="medium",this.weight="semi-bold",this.color=""}componentWillLoad(){a(this)}render(){const t=w(this.color);return e(u,{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}},e("label",{htmlFor:this.for,style:{color:t}},e("span",null,e("slot",null))))}get element(){return n(this)}};C.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{k as duet_input,C as duet_label}
4
+ import{r as t,c as e,h as i,H as u,g as n}from"./p-3f5c74ac.js";import{f as s}from"./p-d004da5f.js";import{i as a}from"./p-347269f4.js";import{c as o}from"./p-5e59e970.js";import{c as d,r as p}from"./p-df7874f9.js";import{f as r,j as c,e as l,d as h,a as b}from"./p-a45e3f8b.js";import{a as m,c as v,d as g,g as x}from"./p-1e3f1ae9.js";import{c as f}from"./p-a7fe475b.js";import{g as w}from"./p-5de30279.js";import"./p-9c3c64b9.js";import"./p-17efced0.js";const y={search:s,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>'}},k=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=o("DuetInput"),this.clearId=o("DuetInputClear"),this.labelId=o("DuetLabel"),this.topCaptionId=o("DuetCaptionTop"),this.topCaptionPlaceholderId=o("DuetCaptionPlaceholderTop"),this.chipCountId=o("DuetInputChipCount"),this.errorId=o("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&&d(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=>(r(t)&&this.clear&&this.handleClearClick(t),c(t)&&"revealable"===this.variation&&(t.target===this.togglePasswordRevealedButton?t.stopPropagation():this.isPasswordRevealed=!1),this.chips&&0===this.nativeInput.value.length&&(l(t)&&(this.isChipSelected()&&(this.getSelectedChip().removeChip(),setTimeout((()=>this.selectLastChip()))),this.selectLastChip()),h(t)&&this.selectChipToLeft(),b(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=m(),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=p(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))}get validity(){return this.nativeInput.validity}componentWillLoad(){a(this),this.disallowedPatternChange(),this.isCaptionVisible=!!this.caption,f(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(){g(this)}async setFocus(t){this.nativeInput&&this.nativeInput.focus(t)}async resetCursor(){if(this.nativeInput){const t=p(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.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.querySelector(".duet-input-relative"),i=e.querySelector("input:not(duet-chip input)");t.id=o("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 n;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){n=new Date;try{n.setHours(Number(this.value.slice(0,2)),Number(this.value.slice(3,5)),0,0)}catch(t){n=void 0}}const s=!this.icon&&"text"!==this.type&&"tel"!==this.type&&"password"!==this.type&&"time"!==this.type&&"button"!==this.variation;return i(u,{class:{"duet-expand":this.expand,"duet-m-0":"none"===this.margin},onKeyUp:t=>this.keyHandler(t)},"time"===this.type&&i("duet-visually-hidden",{"aria-live":"polite","aria-atomic":"true"},n?`${this.timeAnnouncement[this.language]} ${n.toLocaleTimeString()}`:""),i("div",{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",{class:"duet-input-label-container"},i("duet-label",{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",{class:"duet-input-tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label,theme:"turva"===this.theme?"turva":"default"},this.tooltip),i("slot",{name:"tooltip"})),this.caption&&i("duet-caption",{id:this.topCaptionId,size:"medium"},this.caption),i("div",{class:"duet-input-relative"},this.placeholder&&this.echoPlaceholder&&(this.value||"time"===this.type)&&i("duet-caption",{id:this.topCaptionPlaceholderId,class:"duet-input-placeholder",margin:"none",size:"small"},this.placeholder),this.chips&&i("duet-visually-hidden",{id:this.chipCountId},", ",`${this.getAllChips().length} ${x(this.chipsSelectedDesriptionLabel)}`,","),"button-left"===this.variation&&i("slot",{name:"button-left"}),i("input",Object.assign({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&&s&&i("div",{class:"duet-input-icon"},i("duet-icon",{margin:"none",size:"small",icon:y[this.type].svg,color:"currentColor"})),this.clear&&this.value&&i("div",{class:{"duet-input-clear-icon":!0,"duet-input-clear-icon-single":!s,"duet-input-clear-icon-double":!!this.icon,"duet-input-clear-icon-button":"button"===this.variation,[`input-padding-${this.inputPadding}`]:!0}},i("button",{onClick:this.handleClearClick,id:this.clearId,"aria-label":this.clearLabel[this.language],"aria-keyshortcuts":"Escape"},i("duet-icon",{margin:"none",size:"medium",name:"action-clear-input",color:"currentColor"}))),this.icon&&"button"!==this.variation&&i("div",{class:"duet-input-icon"},i("duet-icon",{margin:"none",size:"small",name:this.icon,color:"currentColor"})),"button"===this.variation&&i("slot",{name:"button"}),"revealable"===this.variation&&i("duet-button",{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",null,i("span",{"aria-live":"polite"},this.isPasswordRevealed?this.passwordShownAriaAnnouncement[this.language]:this.passwordHiddenAriaAnnouncement[this.language])),i("slot",null)),i("span",{class:"duet-input-help",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&i("span",{class:"duet-input-error"},this.error))))}get element(){return n(this)}static get watchers(){return{disallowPattern:["disallowedPatternChange"],value:["valueChanged"]}}};k.style='*.sc-duet-input,*.sc-duet-input::after,*.sc-duet-input::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-input-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;text-align:left;vertical-align:bottom}.sc-duet-input-h:last-child,.sc-duet-input-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-input-h{width:calc(50% - 16px - 3px)}}.duet-expand.sc-duet-input-h{width:100% !important}.duet-m-0.sc-duet-input-h{margin:0 !important}input[type=search].sc-duet-input::-webkit-search-cancel-button{-webkit-appearance:none}duet-tooltip.sc-duet-input,.sc-duet-input-s>duet-tooltip{position:relative;top:12px;right:0}@media (min-width: 48em){duet-tooltip.sc-duet-input,.sc-duet-input-s>duet-tooltip{right:auto}}duet-caption.sc-duet-input:not(:last-of-type){margin-bottom:0}.duet-input-placeholder.sc-duet-input{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.sc-duet-input{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.sc-duet-input .duet-input-icon.sc-duet-input{color:rgb(23, 28, 58)}.duet-input-container.sc-duet-input{position:relative;width:100%;height:100%}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input{position:relative;z-index:250}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input{position:absolute;top:-24px;right:-24px;min-width:48px;min-height:48px;color:rgb(0, 75, 129)}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva.sc-duet-input .duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input:focus,.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input: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.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input:active{opacity:0.75;transition:none}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.input-padding-xx-small.sc-duet-input button.sc-duet-input{top:-12px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.input-padding-x-small.sc-duet-input button.sc-duet-input{top:-16px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.input-padding-small.sc-duet-input button.sc-duet-input{top:-20px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-single.sc-duet-input button.sc-duet-input{top:-48px;right:0}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-single.input-padding-xx-small.sc-duet-input button.sc-duet-input{top:-36px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-single.input-padding-x-small.sc-duet-input button.sc-duet-input{top:-40px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-single.input-padding-small.sc-duet-input button.sc-duet-input{top:-44px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-double.sc-duet-input button.sc-duet-input{top:-24px;right:12px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-double.input-padding-xx-small.sc-duet-input button.sc-duet-input{top:-12px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-double.input-padding-x-small.sc-duet-input button.sc-duet-input{top:-16px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-double.input-padding-small.sc-duet-input button.sc-duet-input{top:-20px}.duet-input-container.has-clear.sc-duet-input .duet-input-clear-icon.duet-input-clear-icon-button.sc-duet-input button.sc-duet-input{top:-24px;right:0}.duet-input-container.has-clear.has-icon.sc-duet-input .duet-input-clear-icon.sc-duet-input{top:-24px;right:24px}.duet-input-container.duet-theme-turva.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input{color:rgb(8, 42, 77)}.duet-input-container.duet-theme-turva.has-clear.sc-duet-input .duet-input-clear-icon.sc-duet-input button.sc-duet-input:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a !important}.duet-input-label-container.sc-duet-input{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between}@media (min-width: 48em){.duet-input-label-container.sc-duet-input{justify-content:flex-start}}.duet-input.sc-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.sc-duet-input{padding:8px 10px !important}.duet-input.input-padding-x-small.sc-duet-input{padding:4px 6px !important}.duet-input.input-padding-xx-small.sc-duet-input{padding:0px 2px !important}.duet-input.is-number.sc-duet-input{padding-right:112px !important}.duet-input.is-date.sc-duet-input{padding-right:64px !important}.duet-input.after-chip.sc-duet-input{padding-left:8px !important}.has-error.sc-duet-input .duet-input.sc-duet-input{border-color:rgb(214, 28, 82) !important}.has-error.sc-duet-input .duet-input.sc-duet-input+.duet-input-icon.sc-duet-input{color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error.sc-duet-input .duet-input.sc-duet-input{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error.sc-duet-input .duet-input.sc-duet-input+.duet-input-icon.sc-duet-input{color:rgb(214, 28, 82) !important}.has-icon.sc-duet-input .duet-input.sc-duet-input{padding-right:48px !important}.duet-theme-turva.sc-duet-input .duet-input.sc-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.sc-duet-input{text-align:right}.duet-input.sc-duet-input::-ms-clear{display:none}.duet-input.sc-duet-input::-webkit-contacts-auto-fill-button{display:none !important}.duet-input.sc-duet-input::-webkit-input-placeholder{color:rgb(98, 121, 138);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input::-webkit-input-placeholder{color:rgb(143, 147, 158)}.duet-input.sc-duet-input:focus::-webkit-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus::-webkit-input-placeholder{color:rgb(199, 202, 207)}.duet-input.sc-duet-input::-moz-placeholder{color:rgb(98, 121, 138);opacity:1 !important}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input::-moz-placeholder{color:rgb(143, 147, 158)}.duet-input.sc-duet-input:focus::-moz-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus::-moz-placeholder{color:rgb(199, 202, 207)}.duet-input.sc-duet-input:-ms-input-placeholder{color:rgb(98, 121, 138)}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:-ms-input-placeholder{color:rgb(143, 147, 158)}.duet-input.sc-duet-input:focus:-ms-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus:-ms-input-placeholder{color:rgb(199, 202, 207)}.duet-input[disabled].sc-duet-input{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.sc-duet-input .duet-input[disabled].sc-duet-input{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.sc-duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #909599 !important}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #747475 !important}.has-error.sc-duet-input .duet-input.sc-duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error.sc-duet-input .duet-input.sc-duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #e55039}.duet-input.sc-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.sc-duet-input .duet-input.sc-duet-input:focus{border-color:rgb(23, 28, 58) !important;box-shadow:0 0 0 1px #171c3a !important}.duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus+.duet-input-icon.sc-duet-input{color:rgb(23, 28, 58)}.has-error.sc-duet-input .duet-input.sc-duet-input:focus{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error.sc-duet-input .duet-input.sc-duet-input:focus{box-shadow:0 0 0 1px #e55039}.duet-input.sc-duet-input:focus+.duet-input-icon.sc-duet-input{color:rgb(0, 119, 179)}.duet-input[type=search].sc-duet-input:not(:placeholder-shown):focus+.duet-input-icon.sc-duet-input{display:none}.duet-input.sc-duet-input:not(:focus):not(:hover):invalid{box-shadow:none !important}.duet-input[type=number].sc-duet-input::-webkit-inner-spin-button,.duet-input[type=number].sc-duet-input::-webkit-outer-spin-button,.duet-input[type=time].sc-duet-input::-webkit-inner-spin-button,.duet-input[type=time].sc-duet-input::-webkit-outer-spin-button{display:none;margin:0;-webkit-appearance:none}.duet-input.sc-duet-input::-webkit-search-cancel-button{margin-right:-28px}.duet-input-help.sc-duet-input{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.sc-duet-input span.sc-duet-input{display:block;margin-top:8px}.duet-theme-turva.sc-duet-input .duet-input-help.sc-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(143, 147, 158)}.has-error.sc-duet-input .duet-input-help.sc-duet-input{color:rgb(214, 28, 82)}.duet-theme-turva.has-error.sc-duet-input .duet-input-help.sc-duet-input{color:rgb(214, 28, 82)}.duet-label-hidden.sc-duet-input duet-label.sc-duet-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.duet-input-relative.sc-duet-input{position:relative;width:100%}.duet-input-variation-button.sc-duet-input,.duet-input-variation-button-left.sc-duet-input{position:relative;width:100%}.duet-input-variation-button.sc-duet-input .duet-input-relative.sc-duet-input,.duet-input-variation-button-left.sc-duet-input .duet-input-relative.sc-duet-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;align-items:center;justify-content:flex-start;width:auto}.duet-input-variation-button.sc-duet-input .duet-input-relative.sc-duet-input duet-button.sc-duet-input,.duet-input-variation-button-left.sc-duet-input .duet-input-relative.sc-duet-input duet-button.sc-duet-input{z-index:250;margin-bottom:0}.duet-input-variation-button-left.sc-duet-input .duet-input-relative.sc-duet-input{border-radius:4px}.duet-input-variation-button-left.has-focus.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(0, 119, 179);box-shadow:0 0 0 1px #0077b3 !important}.duet-input-variation-button-left.duet-theme-turva.has-focus.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.duet-input-variation-button-left.sc-duet-input:hover:not(.disabled) .duet-input-relative.sc-duet-input{box-shadow:0 0 0 1px #909599}.duet-input-variation-button-left.duet-theme-turva.sc-duet-input:hover:not(.disabled) .duet-input-relative.sc-duet-input{box-shadow:0 0 0 1px #747475}.duet-input-variation-button-left.sc-duet-input .duet-input.sc-duet-input:focus,.duet-input-variation-button-left.sc-duet-input .duet-input.sc-duet-input:hover:not(.disabled){box-shadow:none !important}.duet-input-variation-button.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input{border-right-width:0 !important;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.duet-input-variation-button-left.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input{border-left-width:0 !important;border-top-left-radius:0 !important;border-bottom-left-radius:0 !important}.duet-input-variation-revealable.sc-duet-input{position:relative;width:100%}.duet-input-variation-revealable.sc-duet-input .sc-duet-input::-ms-reveal{display:none}.duet-input-variation-revealable.sc-duet-input .duet-input-relative.sc-duet-input{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.sc-duet-input .duet-input-variation-revealable.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(143, 147, 158)}.duet-input-variation-revealable.sc-duet-input .duet-input-relative.sc-duet-input duet-button.sc-duet-input{z-index:250;margin-bottom:0}.duet-input-variation-revealable.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input{border-width:0 !important}.duet-input-variation-revealable.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input:focus,.duet-input-variation-revealable.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input:hover{border-width:0 !important;box-shadow:none !important}.duet-input-variation-revealable.disabled.sc-duet-input .duet-input-relative.sc-duet-input{background:rgb(245, 248, 250);border-color:rgb(212, 223, 229);box-shadow:none}.duet-input-variation-revealable.has-error.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(214, 28, 82)}.duet-input-variation-revealable.duet-theme-turva.has-error.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(214, 28, 82)}.duet-input-variation-revealable.has-focus.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(0, 119, 179);box-shadow:0 0 0 1px #0077b3 !important}.duet-input-variation-revealable.duet-theme-turva.has-focus.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.duet-input-variation-revealable.sc-duet-input:hover:not(.disabled) .duet-input-relative.sc-duet-input{box-shadow:0 0 0 1px #909599}.duet-input-variation-revealable.duet-theme-turva.sc-duet-input:hover:not(.disabled) .duet-input-relative.sc-duet-input{box-shadow:0 0 0 1px #747475}.duet-input-variation-revealable.has-error.sc-duet-input:hover:not(.disabled) .duet-input-relative.sc-duet-input{box-shadow:0 0 0 1px #de2362}.duet-input-variation-revealable.duet-theme-turva.has-error.sc-duet-input:hover:not(.disabled) .duet-input-relative.sc-duet-input{box-shadow:0 0 0 1px #e55039}.duet-input-container.has-chips.sc-duet-input .duet-input-relative.sc-duet-input{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.sc-duet-input .duet-input-container.has-chips.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(143, 147, 158)}.duet-input-container.has-chips.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-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.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input:focus,.duet-input-container.has-chips.sc-duet-input .duet-input-relative.sc-duet-input .duet-input.sc-duet-input:hover{border-width:0 !important;box-shadow:none !important}.duet-theme-turva2.sc-duet-input-h .duet-theme-turva.sc-duet-input .duet-input-icon.sc-duet-input{color:rgb(35, 46, 61)}.duet-theme-turva2.sc-duet-input-h .duet-theme-turva.sc-duet-input .duet-input.sc-duet-input{color:rgb(35, 46, 61) !important}.duet-theme-turva2.sc-duet-input-h .duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus::-webkit-input-placeholder{color:rgb(244, 213, 193)}.duet-theme-turva2.sc-duet-input-h .duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus::-moz-placeholder{color:rgb(244, 213, 193)}.duet-theme-turva2.sc-duet-input-h .duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus:-ms-input-placeholder{color:rgb(244, 213, 193)}.duet-theme-turva2.sc-duet-input-h .duet-theme-turva.sc-duet-input .duet-input[disabled].sc-duet-input{color:rgb(35, 46, 61) !important;background:rgb(253, 247, 242) !important;border-color:rgb(253, 247, 242) !important;-webkit-text-fill-color:rgb(35, 46, 61) !important}.duet-theme-turva2.sc-duet-input-h .duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus{border-color:rgb(35, 46, 61) !important}.duet-theme-turva2.sc-duet-input-h .duet-theme-turva.sc-duet-input .duet-input.sc-duet-input:focus+.duet-input-icon.sc-duet-input{color:rgb(35, 46, 61)}.duet-theme-turva2.sc-duet-input-h .duet-theme-turva.sc-duet-input .duet-input-variation-button-left.has-focus.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(35, 46, 61)}.duet-theme-turva2.sc-duet-input-h .duet-theme-turva.sc-duet-input .duet-input-variation-revealable.has-focus.sc-duet-input .duet-input-relative.sc-duet-input{border-color:rgb(35, 46, 61)}';const C=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(){a(this)}render(){const t=w(this.color);return i(u,{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 n(this)}};C.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)}.duet-theme-turva2.duet-theme-turva.sc-duet-label-h label.sc-duet-label{color:rgb(35, 46, 61)}';export{k as duet_input,C as duet_label}
@@ -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 i,g as a}from"./p-ed0179f9.js";import{a as o}from"./p-f11208c3.js";import{D as s}from"./p-beeb12f1.js";import{i as n}from"./p-2e417433.js";import{g as l}from"./p-85bd737a.js";import{g as r,c as d,d as c}from"./p-0773901d.js";import"./p-ae924d35.js";import"./p-9c3c64b9.js";const p=class{constructor(t){e(this,t),this.accessibleLabel=void 0,this.theme="",this.targetLanguage=void 0,this.active=!1,this.href="#",this.icon=void 0,this.size="inherit",this.caret=!1,this.menuItem=!1,this.accessibleLabelExternalDefaults=s,this.accessibleLabelExternal=r(this.accessibleLabelExternalDefaults),this.external=!1}componentWillLoad(){n(this)}connectedCallback(){d(this,{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"})}disconnectedCallback(){c(this)}render(){return t(i,{key:"9c7e694f19f234e14ac86c900c0f7ae6f765f7ab"},t("a",{key:"ff3e3a23d2d1b3f56b0b994e7eeccb6f71b4c5be",target:this.href?this.external?"_blank":"_self":null,class:{"duet-slideout-link":!0,"duet-theme-turva":"turva"===this.theme,active:this.active,[this.size]:!0},href:this.href,"aria-current":this.active?"true":"false",lang:this.targetLanguage,hreflang:this.targetLanguage,"aria-label":this.href&&l(this)||this.accessibleLabel,rel:this.external?"noopener":void 0},this.icon&&t("duet-icon",{key:"f7528118eb9ac1331797c4e375e5373511ed2b5a",name:this.icon,color:"secondary",size:this.menuItem?"x-small":"medium",margin:"none"}),t("div",{key:"7ade705aba28a34b24d53a09ec067823b94c03d6",class:"label"},t("span",{key:"84085ddeaa526502419641aefd0cd30106b89fe0"},t("span",{key:"792db99a27189102d713db6351e724547297670f",class:"label-container"},t("span",{key:"1416b4f044e1320c2f71a2db1b3839e21d482979",class:"label-content"},t("slot",{key:"7f66789e0c27b6c09309f446179cdc8e5a6dfa6d"})),this.external&&t("duet-icon",{key:"b1e870744e89431b43907f9ca6030a075af36be7",class:"external-icon",theme:this.theme,name:o.title,margin:"none",size:"auto",color:"currentColor"})),t("slot",{key:"3dcd61fca8f725f97ea83d397d676ede325fb624",name:"description"})),this.caret&&t("duet-icon",{key:"4bcd014bb5cd4c1d1af3d42d113407b26bcad004",name:"action-arrow-right",color:"secondary",size:"x-small",margin:"none"}))))}get element(){return a(this)}};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;width:100%;height:100%}.duet-slideout-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:inherit;font-weight:inherit;line-height:1.25;color:inherit;text-align:left;text-decoration:none}.duet-slideout-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-slideout-link:focus,.duet-slideout-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-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"}.duet-slideout-link.active span{position:relative}.duet-slideout-link.active .label-content::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:var(--active-height, 2px);content:"";background:rgb(0, 119, 179);transform:var(--active-translate-y, translateY(2px))}.duet-slideout-link.active.duet-theme-turva span::after{background:rgb(198, 12, 48)}.duet-slideout-link.small{font-size:1rem;font-weight:600}.duet-slideout-link.small span::after{--active-height:1px;--active-translate-y:1px}.duet-slideout-link.medium{font-size:1.25rem;font-weight:600}.duet-slideout-link.large{font-size:1.5rem;font-weight:800}.duet-slideout-link .label{display:flex;gap:8px;align-items:center;justify-content:space-between;width:100%}.duet-slideout-link .label-container{display:flex;gap:8px;align-items:center;justify-content:flex-start;width:100%}.duet-slideout-link .external-icon{width:10px;height:10px}.duet-slideout-link.medium .external-icon,.duet-slideout-link.large .external-icon{width:12px;height:12px}slot[name=description]::slotted(*){display:block;padding:8px 0 0;font-size:1rem;font-size:1.25;font-weight:400;color:rgb(98, 121, 138)}.duet-theme-turva slot[name=description]::slotted(*){color:rgb(113, 118, 132)}';export{p as duet_slideout_link}
4
+ import{r as e,h as t,H as i,g as a}from"./p-3f5c74ac.js";import{a as o}from"./p-f11208c3.js";import{D as s}from"./p-cc531319.js";import{i as n}from"./p-347269f4.js";import{g as l}from"./p-48546dcd.js";import{g as r,c as d,d as c}from"./p-1e3f1ae9.js";import"./p-a7fe475b.js";import"./p-9c3c64b9.js";const u=class{constructor(t){e(this,t),this.accessibleLabel=void 0,this.theme="",this.targetLanguage=void 0,this.active=!1,this.href="#",this.icon=void 0,this.size="inherit",this.caret=!1,this.menuItem=!1,this.accessibleLabelExternalDefaults=s,this.accessibleLabelExternal=r(this.accessibleLabelExternalDefaults),this.external=!1}componentWillLoad(){n(this)}connectedCallback(){d(this,{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"})}disconnectedCallback(){c(this)}render(){return t(i,{key:"9c7e694f19f234e14ac86c900c0f7ae6f765f7ab"},t("a",{key:"ff3e3a23d2d1b3f56b0b994e7eeccb6f71b4c5be",target:this.href?this.external?"_blank":"_self":null,class:{"duet-slideout-link":!0,"duet-theme-turva":"turva"===this.theme,active:this.active,[this.size]:!0},href:this.href,"aria-current":this.active?"true":"false",lang:this.targetLanguage,hreflang:this.targetLanguage,"aria-label":this.href&&l(this)||this.accessibleLabel,rel:this.external?"noopener":void 0},this.icon&&t("duet-icon",{key:"f7528118eb9ac1331797c4e375e5373511ed2b5a",name:this.icon,color:"secondary",size:this.menuItem?"x-small":"medium",margin:"none"}),t("div",{key:"7ade705aba28a34b24d53a09ec067823b94c03d6",class:"label"},t("span",{key:"84085ddeaa526502419641aefd0cd30106b89fe0"},t("span",{key:"792db99a27189102d713db6351e724547297670f",class:"label-container"},t("span",{key:"1416b4f044e1320c2f71a2db1b3839e21d482979",class:"label-content"},t("slot",{key:"7f66789e0c27b6c09309f446179cdc8e5a6dfa6d"})),this.external&&t("duet-icon",{key:"b1e870744e89431b43907f9ca6030a075af36be7",class:"external-icon",theme:this.theme,name:o.title,margin:"none",size:"auto",color:"currentColor"})),t("slot",{key:"3dcd61fca8f725f97ea83d397d676ede325fb624",name:"description"})),this.caret&&t("duet-icon",{key:"4bcd014bb5cd4c1d1af3d42d113407b26bcad004",name:"action-arrow-right",color:"secondary",size:"x-small",margin:"none"}))))}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;width:100%;height:100%}.duet-slideout-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:inherit;font-weight:inherit;line-height:1.25;color:inherit;text-align:left;text-decoration:none}.duet-slideout-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-slideout-link:focus,.duet-slideout-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-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"}.duet-slideout-link.active span{position:relative}.duet-slideout-link.active .label-content::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:var(--active-height, 2px);content:"";background:rgb(0, 119, 179);transform:var(--active-translate-y, translateY(2px))}.duet-slideout-link.active.duet-theme-turva span::after{background:rgb(198, 12, 48)}.duet-slideout-link.small{font-size:1rem;font-weight:600}.duet-slideout-link.small span::after{--active-height:1px;--active-translate-y:1px}.duet-slideout-link.medium{font-size:1.25rem;font-weight:600}.duet-slideout-link.large{font-size:1.5rem;font-weight:800}.duet-slideout-link .label{display:flex;gap:8px;align-items:center;justify-content:space-between;width:100%}.duet-slideout-link .label-container{display:flex;gap:8px;align-items:center;justify-content:flex-start;width:100%}.duet-slideout-link .external-icon{width:10px;height:10px}.duet-slideout-link.medium .external-icon,.duet-slideout-link.large .external-icon{width:12px;height:12px}slot[name=description]::slotted(*){display:block;padding:8px 0 0;font-size:1rem;font-size:1.25;font-weight:400;color:rgb(98, 121, 138)}.duet-theme-turva slot[name=description]::slotted(*){color:rgb(113, 118, 132)}:host(.duet-theme-turva2) .duet-slideout-link.duet-theme-turva{color:rgb(35, 46, 61)}:host(.duet-theme-turva2) .duet-slideout-link.duet-theme-turva.active .label-content::after{background:rgb(197, 29, 65)}:host(.duet-theme-turva2) slot[name=description]::slotted(*){color:rgb(35, 46, 61)}';export{u as duet_slideout_link}
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,i,a){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function s(e){try{d(a.next(e))}catch(e){n(e)}}function o(e){try{d(a["throw"](e))}catch(e){n(e)}}function d(e){e.done?i(e.value):r(e.value).then(s,o)}d((a=a.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},a,r,n,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return d([e,t])}}function d(o){if(a)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(i=0)),i)try{if(a=1,r&&(n=o[0]&2?r["return"]:o[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,o[1])).done)return n;if(r=0,n)o=[o[0]&2,n.value];switch(o[0]){case 0:case 1:n=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;r=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]<n[3])){i.label=o[1];break}if(o[0]===6&&i.label<n[1]){i.label=n[1];n=o;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(o);break}if(n[2])i.ops.pop();i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e];r=0}finally{a=n=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register(["./p-7df350f6.system.js","./p-6229bcd8.system.js","./p-e6b5a1c7.system.js","./p-752fa0fc.system.js","./p-a1105b5c.system.js","./p-6bbac3f9.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,i,a,r,n,s,o,d,u,c,l,f,h;return{setters:[function(e){t=e.r;i=e.c;a=e.h;r=e.H;n=e.g},function(e){s=e.i},function(e){o=e.c},function(e){d=e.s;u=e.u},function(e){c=e.g;l=e.c;f=e.d},function(e){h=e.h},function(){}],execute:function(){var p='*,*::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%;max-height:999px;transition:opacity 300ms ease, visibility 300ms ease, transform 300ms ease, max-height 300ms ease}:host(:focus){outline:0}:host(.user-is-tabbing:focus){border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing.duet-theme-turva:focus){box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}:host(.duet-alert-is-dismissed){max-height:0;overflow:hidden;visibility:hidden !important;opacity:0;transform:scale(0.98)}:host(.duet-alert-is-dismissed) .duet-alert{margin:0 !important}.duet-alert-wrapper{margin-bottom:16px !important;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.25;color:rgb(8, 42, 77);background:rgb(228, 241, 247);border:1px solid rgb(172, 210, 229);border-radius:12px;transition:margin 100ms 300ms ease}.duet-alert-wrapper.duet-p-0{padding:0 !important}.duet-alert-wrapper.duet-m-0{margin:0 !important}.duet-alert-wrapper.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"}.duet-alert-wrapper.warning{color:rgb(38, 26, 4);background:rgb(255, 247, 221);border:1px solid rgb(255, 217, 120)}.duet-alert-wrapper.danger{color:rgb(89, 0, 45);background:rgb(255, 225, 231);border:1px solid rgb(252, 136, 162)}.duet-alert-wrapper.success{color:rgb(4, 38, 33);background:rgb(231, 248, 239);border:1px solid rgb(163, 229, 202)}.duet-alert-wrapper.below-nav{margin-bottom:0 !important;border:0;border-bottom:1px solid rgb(212, 223, 229);border-radius:0}.duet-alert-wrapper .duet-alert{position:relative;width:100%;max-width:1384px;padding:16px;margin:0 auto}.duet-alert-wrapper .duet-alert.duet-alert-is-dismissible{padding:16px 72px 16px 16px;text-align:left}.duet-alert-wrapper .duet-alert.duet-alert-is-dismissible .duet-alert-container{text-align:left}.duet-alert-wrapper .duet-alert.duet-alert-has-show-more{padding-bottom:0}.duet-alert-wrapper .duet-alert.duet-alert-has-icon .duet-alert-show-more{margin-left:36px}.duet-alert-wrapper .duet-alert.duet-alert-expandable{padding-right:20px}.duet-alert-dismiss{position:absolute;top:3px;right:3px}.duet-alert-dismiss duet-button:hover{background-color:rgb(198, 225, 238);border-radius:8px}.warning .duet-alert-dismiss duet-button:hover{background-color:rgb(255, 232, 160)}.danger .duet-alert-dismiss duet-button:hover{background-color:rgb(255, 173, 190)}.success .duet-alert-dismiss duet-button:hover{background-color:rgb(191, 239, 218)}.duet-alert-container{display:inline-flex;align-items:flex-start;width:100%;margin:0 auto !important}.duet-alert-container .duet-alert-content{flex-grow:1;line-height:1.5}.duet-alert-has-icon .duet-alert-container{margin-top:2px !important}.duet-alert-container:focus{outline:none}.duet-alert-icon{position:relative;top:2px;display:inline-block;width:20px;min-width:20px;height:20px;margin:0 16px 0 0 !important}.duet-alert-icon duet-icon{width:20px;height:20px}.duet-alert-expander{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;width:calc(100% + 32px + 40px);padding:16px;padding-right:20px;padding-left:52px;margin:-16px;margin-left:-52px;font-family:inherit;color:inherit;cursor:pointer;background-color:inherit}.duet-alert-expanded .duet-alert-expander{margin-bottom:-4px}.duet-alert-expander .expanding-title{flex-grow:1;font-size:1rem;line-height:1.5;text-align:left}.duet-alert-expander duet-icon{position:relative;top:4px;transition:rotate 300ms ease}.duet-alert-expanded .duet-alert-expander duet-icon{rotate:180deg}.duet-alert-expander:hover{filter:brightness(85%)}';var b=p;var m=e("duet_alert",function(){function e(e){var a=this;t(this,e);this.duetDismiss=i(this,"duetDismiss",7);this.duetCloseComplete=i(this,"duetCloseComplete",7);this.descriptiveId=o("DuetAlert");this.hasShowMoreSlot=false;this.handleDismiss=function(e){a.handleHide();a.duetDismiss.emit({component:"duet-alert",originalEvent:e})};this.handleShow=function(){a.isDismissed=false};this.handleHide=function(){a.isDismissed=true;a.element.addEventListener("transitionend",(function(){return a.duetCloseComplete.emit()}),{once:true})};this.handleExpandToggle=function(){a.isExpanded=!a.isExpanded};this.theme="";this.isDismissed=false;this.isExpanded=false;this.timeoutID=undefined;this.accessibleLabelDefaults={fi:"Painike viestin sulkemiseen",sv:"Knapp för att stänga meddelandet",en:"Button to close the message"};this.accessibleLabel=c(this.accessibleLabelDefaults);this.announcements=true;this.icon="";this.autoDismiss=undefined;this.margin="auto";this.padding="auto";this.variation="default";this.position="content";this.dismissible=false;this.focusable=false;this.expandingTitle=""}e.prototype.componentWillLoad=function(){s(this);this.hasShowMoreSlot=h(this.element,"show-more")};e.prototype.componentDidLoad=function(){var e=this;if(this.autoDismiss){this.timeoutID=setTimeout((function(){return e.handleDismiss()}),this.autoDismiss)}};e.prototype.connectedCallback=function(){l(this,{prop:"accessibleLabel",defaults:"accessibleLabelDefaults"});d(this)};e.prototype.disconnectedCallback=function(){if(this.timeoutID){clearTimeout(this.timeoutID)}f(this);u(this)};e.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.handleShow();return[2]}))}))};e.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.handleHide();return[2]}))}))};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.alertContainer.focus(e);return[2]}))}))};e.prototype.render=function(){var e,t;var i=this;var n=["default","success","danger","warning"].includes(this.variation)?this.variation:"default";return a(r,{key:"b9a786006544e12ee10ee1a8af704ac65c97c3b3",class:{"duet-theme-turva":this.theme==="turva","duet-alert-is-dismissed":this.isDismissed},role:this.announcements?"alert":undefined},a("div",{key:"3abfcee0d83c8806925875c34cafd4898a045cbe",class:(e={"duet-alert-wrapper":true,"duet-p-0":this.padding==="none","duet-m-0":this.margin==="none"},e[n]=true,e[this.position]=true,e["duet-theme-turva"]=this.theme==="turva",e)},a("div",{key:"64bdd7788c6f4de9c409597f57b0a4c04e4d08c0",class:(t={"duet-alert":true,"duet-alert-expandable":!!this.expandingTitle,"duet-alert-expanded":this.isExpanded,"duet-alert-has-icon":!!this.icon||this.position==="below-nav","duet-alert-has-show-more":this.hasShowMoreSlot,"duet-alert-is-dismissible":this.dismissible,"duet-p-0":this.padding==="none","duet-m-0":this.margin==="none"},t[n]=true,t["duet-theme-turva"]=this.theme==="turva",t)},a("div",{key:"23c686f352e1d59a16c2418d870d9bac5a7bc7a0",class:"duet-alert-container",ref:function(e){i.alertContainer=e},tabindex:this.focusable?"0":undefined},this.position!=="below-nav"&&a("div",{key:"03f16f41c1f3021d20e826cefc4beb0de0b24c04",class:"duet-alert-icon"},this.icon&&a("duet-icon",{key:"8afb7844d4941299ce755eb0fcf2b0d5bc9848ca",size:"auto",name:this.icon,color:"currentColor"})||a("duet-status-icon",{key:"acb87af93cf0e438fc2424b03c66a47d7c2377fc",strong:true,variation:n,margin:"none",size:"auto"})),this.position==="below-nav"&&a("div",{key:"c4d34eb31fc386b50b5f0a5c52f88487d83fe29b",class:"duet-alert-icon below-nav"},a("duet-status-icon",{key:"f38cba8f102c47aca6e902a76e89d8a3633891f0",strong:true,variation:n,margin:"none",size:"auto"})),a("div",{key:"4af2b55a31cdab6c1481c1a174e677f09311f0ac",class:"duet-alert-content",id:this.descriptiveId},this.expandingTitle&&a("button",{key:"7e77ad8d36c7ddeb1118ba8585f3b50e8af2264d","aria-expanded":this.isExpanded.toString(),"aria-controls":"".concat(this.descriptiveId,"-content"),class:"duet-alert-expander",onClick:this.handleExpandToggle},a("span",{key:"dea341c2b66217c66fabb05236a83bfdde7155d8",class:"expanding-title"},this.expandingTitle),a("duet-icon",{key:"4a4dfb197c068d1cf585cd3fd4c510586bf7ba6c",name:"action-arrow-down",color:n==="default"?"lt-blue-800":"".concat(n,"-800"),margin:"none",size:"x-small"})),(!this.expandingTitle||this.isExpanded)&&a("div",{key:"fe30abd1f14777e30a7f39c7d6e09965d31bfcc3",id:"".concat(this.descriptiveId,"-content")},a("slot",{key:"12180f3b78a1bd75b76e2a5842800f8a6c5552c8"})))),this.hasShowMoreSlot&&a("duet-show-more",{key:"1369e15586f49ec467770522ae394be560c2d461",margin:"none",class:"duet-alert-show-more"},a("slot",{key:"24c5b71daf8a6ae0136006a21fe789e590faf960",name:"show-more"})),this.dismissible&&!this.expandingTitle&&a("div",{key:"75f16a5078ded896ce370396dc422fa959d90e2c",class:"duet-alert-dismiss"},a("duet-button",{key:"243a3bec904a6d8bac1fb2c2d47e206213d60832",variation:"plain",accessibleLabel:this.accessibleLabel,accessibleDescribedBy:this.descriptiveId,iconSize:"medium",icon:"navigation-close",iconOnly:true,margin:"none",color:n==="default"?"lt-blue-800":"".concat(n,"-800"),theme:this.theme,onClick:this.handleDismiss,fixed:true})))))};Object.defineProperty(e.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());m.style=b}}}));
4
+ */System.register(["./p-7511b87b.system.js","./p-0a53642c.system.js","./p-e6b5a1c7.system.js","./p-752fa0fc.system.js","./p-755eb00f.system.js","./p-b2d44f57.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,i,a,r,n,s,o,d,u,c,l,f,h;return{setters:[function(e){t=e.r;i=e.c;a=e.h;r=e.H;n=e.g},function(e){s=e.i},function(e){o=e.c},function(e){d=e.s;u=e.u},function(e){c=e.g;l=e.c;f=e.d},function(e){h=e.h},function(){}],execute:function(){var p='*,*::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%;max-height:999px;transition:opacity 300ms ease, visibility 300ms ease, transform 300ms ease, max-height 300ms ease}:host(:focus){outline:0}:host(.user-is-tabbing:focus){border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing.duet-theme-turva:focus){box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}:host(.duet-alert-is-dismissed){max-height:0;overflow:hidden;visibility:hidden !important;opacity:0;transform:scale(0.98)}:host(.duet-alert-is-dismissed) .duet-alert{margin:0 !important}.duet-alert-wrapper{margin-bottom:16px !important;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.25;color:rgb(8, 42, 77);background:rgb(228, 241, 247);border:1px solid rgb(172, 210, 229);border-radius:12px;transition:margin 100ms 300ms ease}.duet-alert-wrapper.duet-p-0{padding:0 !important}.duet-alert-wrapper.duet-m-0{margin:0 !important}.duet-alert-wrapper.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"}.duet-alert-wrapper.warning{color:rgb(38, 26, 4);background:rgb(255, 247, 221);border:1px solid rgb(255, 217, 120)}.duet-alert-wrapper.danger{color:rgb(89, 0, 45);background:rgb(255, 225, 231);border:1px solid rgb(252, 136, 162)}.duet-alert-wrapper.success{color:rgb(4, 38, 33);background:rgb(231, 248, 239);border:1px solid rgb(163, 229, 202)}.duet-alert-wrapper.below-nav{margin-bottom:0 !important;border:0;border-bottom:1px solid rgb(212, 223, 229);border-radius:0}.duet-alert-wrapper .duet-alert{position:relative;width:100%;max-width:1384px;padding:16px;margin:0 auto}.duet-alert-wrapper .duet-alert.duet-alert-is-dismissible{padding:16px 72px 16px 16px;text-align:left}.duet-alert-wrapper .duet-alert.duet-alert-is-dismissible .duet-alert-container{text-align:left}.duet-alert-wrapper .duet-alert.duet-alert-has-show-more{padding-bottom:0}.duet-alert-wrapper .duet-alert.duet-alert-has-icon .duet-alert-show-more{margin-left:36px}.duet-alert-wrapper .duet-alert.duet-alert-expandable{padding-right:20px}.duet-alert-dismiss{position:absolute;top:3px;right:3px}.duet-alert-dismiss duet-button:hover{background-color:rgb(198, 225, 238);border-radius:8px}.warning .duet-alert-dismiss duet-button:hover{background-color:rgb(255, 232, 160)}.danger .duet-alert-dismiss duet-button:hover{background-color:rgb(255, 173, 190)}.success .duet-alert-dismiss duet-button:hover{background-color:rgb(191, 239, 218)}.duet-alert-container{display:inline-flex;align-items:flex-start;width:100%;margin:0 auto !important}.duet-alert-container .duet-alert-content{flex-grow:1;line-height:1.5}.duet-alert-has-icon .duet-alert-container{margin-top:2px !important}.duet-alert-container:focus{outline:none}.duet-alert-icon{position:relative;top:2px;display:inline-block;width:20px;min-width:20px;height:20px;margin:0 16px 0 0 !important}.duet-alert-icon duet-icon{width:20px;height:20px}.duet-alert-expander{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;width:calc(100% + 32px + 40px);padding:16px;padding-right:20px;padding-left:52px;margin:-16px;margin-left:-52px;font-family:inherit;color:inherit;cursor:pointer;background-color:inherit}.duet-alert-expanded .duet-alert-expander{margin-bottom:-4px}.duet-alert-expander .expanding-title{flex-grow:1;font-size:1rem;line-height:1.5;text-align:left}.duet-alert-expander duet-icon{position:relative;top:4px;transition:rotate 300ms ease}.duet-alert-expanded .duet-alert-expander duet-icon{rotate:180deg}.duet-alert-expander:hover{filter:brightness(85%)}';var b=p;var m=e("duet_alert",function(){function e(e){var a=this;t(this,e);this.duetDismiss=i(this,"duetDismiss",7);this.duetCloseComplete=i(this,"duetCloseComplete",7);this.descriptiveId=o("DuetAlert");this.hasShowMoreSlot=false;this.handleDismiss=function(e){a.handleHide();a.duetDismiss.emit({component:"duet-alert",originalEvent:e})};this.handleShow=function(){a.isDismissed=false};this.handleHide=function(){a.isDismissed=true;a.element.addEventListener("transitionend",(function(){return a.duetCloseComplete.emit()}),{once:true})};this.handleExpandToggle=function(){a.isExpanded=!a.isExpanded};this.theme="";this.isDismissed=false;this.isExpanded=false;this.timeoutID=undefined;this.accessibleLabelDefaults={fi:"Painike viestin sulkemiseen",sv:"Knapp för att stänga meddelandet",en:"Button to close the message"};this.accessibleLabel=c(this.accessibleLabelDefaults);this.announcements=true;this.icon="";this.autoDismiss=undefined;this.margin="auto";this.padding="auto";this.variation="default";this.position="content";this.dismissible=false;this.focusable=false;this.expandingTitle=""}e.prototype.componentWillLoad=function(){s(this);this.hasShowMoreSlot=h(this.element,"show-more")};e.prototype.componentDidLoad=function(){var e=this;if(this.autoDismiss){this.timeoutID=setTimeout((function(){return e.handleDismiss()}),this.autoDismiss)}};e.prototype.connectedCallback=function(){l(this,{prop:"accessibleLabel",defaults:"accessibleLabelDefaults"});d(this)};e.prototype.disconnectedCallback=function(){if(this.timeoutID){clearTimeout(this.timeoutID)}f(this);u(this)};e.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.handleShow();return[2]}))}))};e.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.handleHide();return[2]}))}))};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.alertContainer.focus(e);return[2]}))}))};e.prototype.render=function(){var e,t;var i=this;var n=["default","success","danger","warning"].includes(this.variation)?this.variation:"default";return a(r,{key:"b9a786006544e12ee10ee1a8af704ac65c97c3b3",class:{"duet-theme-turva":this.theme==="turva","duet-alert-is-dismissed":this.isDismissed},role:this.announcements?"alert":undefined},a("div",{key:"3abfcee0d83c8806925875c34cafd4898a045cbe",class:(e={"duet-alert-wrapper":true,"duet-p-0":this.padding==="none","duet-m-0":this.margin==="none"},e[n]=true,e[this.position]=true,e["duet-theme-turva"]=this.theme==="turva",e)},a("div",{key:"64bdd7788c6f4de9c409597f57b0a4c04e4d08c0",class:(t={"duet-alert":true,"duet-alert-expandable":!!this.expandingTitle,"duet-alert-expanded":this.isExpanded,"duet-alert-has-icon":!!this.icon||this.position==="below-nav","duet-alert-has-show-more":this.hasShowMoreSlot,"duet-alert-is-dismissible":this.dismissible,"duet-p-0":this.padding==="none","duet-m-0":this.margin==="none"},t[n]=true,t["duet-theme-turva"]=this.theme==="turva",t)},a("div",{key:"23c686f352e1d59a16c2418d870d9bac5a7bc7a0",class:"duet-alert-container",ref:function(e){i.alertContainer=e},tabindex:this.focusable?"0":undefined},this.position!=="below-nav"&&a("div",{key:"03f16f41c1f3021d20e826cefc4beb0de0b24c04",class:"duet-alert-icon"},this.icon&&a("duet-icon",{key:"8afb7844d4941299ce755eb0fcf2b0d5bc9848ca",size:"auto",name:this.icon,color:"currentColor"})||a("duet-status-icon",{key:"acb87af93cf0e438fc2424b03c66a47d7c2377fc",strong:true,variation:n,margin:"none",size:"auto"})),this.position==="below-nav"&&a("div",{key:"c4d34eb31fc386b50b5f0a5c52f88487d83fe29b",class:"duet-alert-icon below-nav"},a("duet-status-icon",{key:"f38cba8f102c47aca6e902a76e89d8a3633891f0",strong:true,variation:n,margin:"none",size:"auto"})),a("div",{key:"4af2b55a31cdab6c1481c1a174e677f09311f0ac",class:"duet-alert-content",id:this.descriptiveId},this.expandingTitle&&a("button",{key:"7e77ad8d36c7ddeb1118ba8585f3b50e8af2264d","aria-expanded":this.isExpanded.toString(),"aria-controls":"".concat(this.descriptiveId,"-content"),class:"duet-alert-expander",onClick:this.handleExpandToggle},a("span",{key:"dea341c2b66217c66fabb05236a83bfdde7155d8",class:"expanding-title"},this.expandingTitle),a("duet-icon",{key:"4a4dfb197c068d1cf585cd3fd4c510586bf7ba6c",name:"action-arrow-down",color:n==="default"?"lt-blue-800":"".concat(n,"-800"),margin:"none",size:"x-small"})),(!this.expandingTitle||this.isExpanded)&&a("div",{key:"fe30abd1f14777e30a7f39c7d6e09965d31bfcc3",id:"".concat(this.descriptiveId,"-content")},a("slot",{key:"12180f3b78a1bd75b76e2a5842800f8a6c5552c8"})))),this.hasShowMoreSlot&&a("duet-show-more",{key:"1369e15586f49ec467770522ae394be560c2d461",margin:"none",class:"duet-alert-show-more"},a("slot",{key:"24c5b71daf8a6ae0136006a21fe789e590faf960",name:"show-more"})),this.dismissible&&!this.expandingTitle&&a("div",{key:"75f16a5078ded896ce370396dc422fa959d90e2c",class:"duet-alert-dismiss"},a("duet-button",{key:"243a3bec904a6d8bac1fb2c2d47e206213d60832",variation:"plain",accessibleLabel:this.accessibleLabel,accessibleDescribedBy:this.descriptiveId,iconSize:"medium",icon:"navigation-close",iconOnly:true,margin:"none",color:n==="default"?"lt-blue-800":"".concat(n,"-800"),theme:this.theme,onClick:this.handleDismiss,fixed:true})))))};Object.defineProperty(e.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());m.style=b}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- System.register(["./p-7df350f6.system.js","./p-6229bcd8.system.js","./p-e6b5a1c7.system.js","./p-6bbac3f9.system.js"],(function(e){"use strict";var t,i,a,o,d,n,s;return{setters:[function(e){t=e.r;i=e.h;a=e.H;o=e.g},function(e){d=e.i},function(e){n=e.c},function(e){s=e.h}],execute:function(){var l='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:12px !important;display:block;width:100%}:host(.duet-m-0){margin:0 !important}fieldset{position:relative;width:100%;min-width:0;border:0}fieldset legend{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}.duet-legend-wrapper{position:relative;display:block;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(8, 42, 77);text-align:left;background:transparent}.duet-legend-wrapper.duet-legend-compact:not(.duet-legend-has-caption){line-height:1.25}.duet-theme-turva .duet-legend-wrapper{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-fieldset-label{margin-bottom:12px !important;margin-top:8px}.duet-legend-has-caption .duet-fieldset-label{margin-bottom:6px !important}.duet-legend-has-tooltip .duet-fieldset-label{padding-right:36px}@media (min-width: 48em){.duet-legend-has-tooltip .duet-fieldset-label{margin-bottom:3px !important;padding-right:0}}@media (min-width: 48em){.duet-legend-has-tooltip.duet-legend-has-caption .duet-fieldset-label{margin-bottom:-3px !important}}.duet-fieldset-caption{margin-bottom:12px !important}.duet-fieldset-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(214, 28, 82);border-radius:4px}.duet-fieldset-help span{display:block;margin-top:12px}.duet-fieldset-help span.duet-m-0{margin-top:0}.duet-theme-turva .duet-fieldset-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(214, 28, 82)}::slotted(duet-tooltip){position:absolute;top:4px;right:0}@media (min-width: 48em){::slotted(duet-tooltip){position:relative;right:auto}}.duet-legend-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}';var r=l;var p=e("duet_fieldset",function(){function e(e){var i=this;t(this,e);this.errorId=n("DuetError");this.labelId=n("DuetLabel");this.checkHasTooltip=function(){i.hasTooltip=s(i.element,"tooltip")};this.checkLastItem=function(){if(i.element){var e=i.element.lastElementChild;i.lastItemIsChip=e?e.nodeName==="DUET-CHIP":false}};this.hasTooltip=false;this.lastItemIsChip=false;this.theme="";this.margin="auto";this.caption=undefined;this.label=undefined;this.compactLabel=false;this.error=undefined;this.accessibleLiveError="polite";this.labelHeadingLevel="span";this.labelHidden=false}e.prototype.connectedCallback=function(){this.checkLastItem()};e.prototype.componentWillLoad=function(){d(this);this.checkHasTooltip()};e.prototype.render=function(){return i(a,{key:"4965e01be8b42d5a6e51b749161c751d6a4b6ebd",class:{"duet-m-0":this.margin==="none"}},i("fieldset",{key:"57768b043d2c10dd06d6289d821737c8a817c695","aria-labelledby":this.labelId,"aria-describedby":this.error?this.errorId:null,class:{"duet-fieldset":true,"duet-theme-turva":this.theme==="turva"}},i("legend",{key:"fbd8f94114ffedaac873f6b3368e6cac74d39d4b",id:this.labelId},i(this.labelHeadingLevel,{key:"a0a9547c1312eba4e91d47bb1bbddab4da333768"},this.label),this.caption&&i("span",{key:"03c499050ea7ea6c375287fb1c07be16d03444d8"},this.caption)),i("div",{key:"26bbf1a230b1c0cc2b9aadfdd1f945796060ea1d",class:{"duet-legend-wrapper":true,"duet-legend-has-caption":!!this.caption,"duet-legend-has-tooltip":this.hasTooltip,"duet-legend-hidden":this.labelHidden,"duet-legend-compact":this.compactLabel}},i("div",{key:"053c58092176f9a556c09f4fa77cac8ee1d49109",class:"duet-fieldset-label"},i("span",{key:"9cf85084056cc302c55956fad1a15a18299aba47","aria-hidden":"true"},this.label),i("slot",{key:"abf25503935362fd46dab5848f7efbe8631d089a",onSlotchange:this.checkHasTooltip,name:"tooltip"})),this.caption&&i("div",{key:"4f42e9c66a866c1c3eabf4bb47648b8eb2f8dff2",class:"duet-fieldset-caption","aria-hidden":"true"},i("duet-caption",{key:"c4d55da1e05b562682f538daf0a33e7fe8f8d15b",theme:this.theme,margin:"none"},this.caption))),i("slot",{key:"bd81475b5cc6b4a1bd13feabd97070efc2e9f875"}),i("span",{key:"722f5f333d566a3620d65711629d2d059c852eea",class:"duet-fieldset-help",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&i("span",{key:"7d85a6389b3a73990470f683de2d81397047ed85",class:{"duet-m-0":this.lastItemIsChip}},this.error))))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());p.style=r}}}));
4
+ System.register(["./p-7511b87b.system.js","./p-0a53642c.system.js","./p-e6b5a1c7.system.js","./p-b2d44f57.system.js"],(function(e){"use strict";var t,i,a,o,d,n,s;return{setters:[function(e){t=e.r;i=e.h;a=e.H;o=e.g},function(e){d=e.i},function(e){n=e.c},function(e){s=e.h}],execute:function(){var l='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:12px !important;display:block;width:100%}:host(.duet-m-0){margin:0 !important}fieldset{position:relative;width:100%;min-width:0;border:0}fieldset legend{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}.duet-legend-wrapper{position:relative;display:block;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(8, 42, 77);text-align:left;background:transparent}.duet-legend-wrapper.duet-legend-compact:not(.duet-legend-has-caption){line-height:1.25}.duet-theme-turva .duet-legend-wrapper{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-fieldset-label{margin-bottom:12px !important;margin-top:8px}.duet-legend-has-caption .duet-fieldset-label{margin-bottom:6px !important}.duet-legend-has-tooltip .duet-fieldset-label{padding-right:36px}@media (min-width: 48em){.duet-legend-has-tooltip .duet-fieldset-label{margin-bottom:3px !important;padding-right:0}}@media (min-width: 48em){.duet-legend-has-tooltip.duet-legend-has-caption .duet-fieldset-label{margin-bottom:-3px !important}}.duet-fieldset-caption{margin-bottom:12px !important}.duet-fieldset-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(214, 28, 82);border-radius:4px}.duet-fieldset-help span{display:block;margin-top:12px}.duet-fieldset-help span.duet-m-0{margin-top:0}.duet-theme-turva .duet-fieldset-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(214, 28, 82)}::slotted(duet-tooltip){position:absolute;top:4px;right:0}@media (min-width: 48em){::slotted(duet-tooltip){position:relative;right:auto}}.duet-legend-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}:host(.duet-theme-turva2) .duet-theme-turva .duet-legend-wrapper{color:rgb(35, 46, 61)}';var r=l;var p=e("duet_fieldset",function(){function e(e){var i=this;t(this,e);this.errorId=n("DuetError");this.labelId=n("DuetLabel");this.checkHasTooltip=function(){i.hasTooltip=s(i.element,"tooltip")};this.checkLastItem=function(){if(i.element){var e=i.element.lastElementChild;i.lastItemIsChip=e?e.nodeName==="DUET-CHIP":false}};this.hasTooltip=false;this.lastItemIsChip=false;this.theme="";this.margin="auto";this.caption=undefined;this.label=undefined;this.compactLabel=false;this.error=undefined;this.accessibleLiveError="polite";this.labelHeadingLevel="span";this.labelHidden=false}e.prototype.connectedCallback=function(){this.checkLastItem()};e.prototype.componentWillLoad=function(){d(this);this.checkHasTooltip()};e.prototype.render=function(){return i(a,{key:"4965e01be8b42d5a6e51b749161c751d6a4b6ebd",class:{"duet-m-0":this.margin==="none"}},i("fieldset",{key:"57768b043d2c10dd06d6289d821737c8a817c695","aria-labelledby":this.labelId,"aria-describedby":this.error?this.errorId:null,class:{"duet-fieldset":true,"duet-theme-turva":this.theme==="turva"}},i("legend",{key:"fbd8f94114ffedaac873f6b3368e6cac74d39d4b",id:this.labelId},i(this.labelHeadingLevel,{key:"a0a9547c1312eba4e91d47bb1bbddab4da333768"},this.label),this.caption&&i("span",{key:"03c499050ea7ea6c375287fb1c07be16d03444d8"},this.caption)),i("div",{key:"26bbf1a230b1c0cc2b9aadfdd1f945796060ea1d",class:{"duet-legend-wrapper":true,"duet-legend-has-caption":!!this.caption,"duet-legend-has-tooltip":this.hasTooltip,"duet-legend-hidden":this.labelHidden,"duet-legend-compact":this.compactLabel}},i("div",{key:"053c58092176f9a556c09f4fa77cac8ee1d49109",class:"duet-fieldset-label"},i("span",{key:"9cf85084056cc302c55956fad1a15a18299aba47","aria-hidden":"true"},this.label),i("slot",{key:"abf25503935362fd46dab5848f7efbe8631d089a",onSlotchange:this.checkHasTooltip,name:"tooltip"})),this.caption&&i("div",{key:"4f42e9c66a866c1c3eabf4bb47648b8eb2f8dff2",class:"duet-fieldset-caption","aria-hidden":"true"},i("duet-caption",{key:"c4d55da1e05b562682f538daf0a33e7fe8f8d15b",theme:this.theme,margin:"none"},this.caption))),i("slot",{key:"bd81475b5cc6b4a1bd13feabd97070efc2e9f875"}),i("span",{key:"849271add4278250a9053cfed7539726a10cb0be",class:"duet-fieldset-help duet-fieldset-error",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&i("span",{key:"6e49839de83795bb7d404464911b2527ed002dc6",class:{"duet-m-0":this.lastItemIsChip}},this.error))))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());p.style=r}}}));
@@ -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-ed0179f9.js";const n=class{constructor(t){e(this,t)}render(){return t(a,{key:"81729e236a3e09d14d3277ea9b94888f01399635",class:"duet-visually-hidden"},t("slot",{key:"3bb4693405e983049a265d5da7dbe012116aab45"}))}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-3f5c74ac.js";const n=class{constructor(a){e(this,a)}render(){return a(t,{key:"81729e236a3e09d14d3277ea9b94888f01399635",class:"duet-visually-hidden"},a("slot",{key:"3bb4693405e983049a265d5da7dbe012116aab45"}))}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}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ import{h as t,r as e,c as a,H as i,g as d,F as s}from"./p-3f5c74ac.js";import{i as l}from"./p-347269f4.js";import{f as o,d as r}from"./p-9e371678.js";import{i as n}from"./p-a45e3f8b.js";import{a as h,c as u,d as b,g as p,s as m}from"./p-1e3f1ae9.js";import{p as c,s as f}from"./p-17efced0.js";import{b as g,a as y}from"./p-5de30279.js";import{c as v}from"./p-5e59e970.js";import{p as x}from"./p-9c3c64b9.js";import{g as k,a as w}from"./p-67c1a50f.js";const T=({data:e,groupId:a,alignment:i})=>{const d=`duet-editable-table duet-editable-table-content-${a}`;return"string"==typeof e?t("td",{innerHTML:e,class:d,part:`${a}content`,style:{verticalAlign:i}}):t("td",{class:d,part:`${a}content`,style:{verticalAlign:i}},e)},L=class{constructor(t){e(this,t),this.duetTableToggle=a(this,"duetTableToggle",7),this.duetMenuClick=a(this,"duetMenuClick",7),this.hasHeadSlotFirst=!1,this.hasHeadSlotLast=!1,this.hasFootSlot=!1,this.sortableDefaultLabel={fi:"Järjestä",en:"Click to sort",sv:"Klicka för att sortera"},this.actionColumnLabel={en:"Actions for rows",fi:"Toiminnot rivillä",sv:"Åtgärder för rader"},this.toggleColumn=(t,e)=>{e.preventDefault();const{sort_order:a,direction:i,index:d,key:s}=t;this.duetTableToggle.emit({sort_order:a,index:d,direction:i,key:s,component:"duet-editable-table",originalEvent:e})},this.handleKeyDown=(t,e)=>{n(e)&&this.toggleColumn(t,e)},this.language=h(),this.margin="auto",this.variation="striped",this.sticky=!1,this.stickyDistance="with-links",this.breakpoint="small",this.actions=void 0,this.columns=void 0,this.rows=void 0,this.sortable=!1,this.groupId="",this.theme="",this.accessibleRole=void 0,this.hideHeadVisually=!1}componentWillLoad(){l(this),this.hasHeadSlotFirst=!!this.element.querySelector("[slot='thead-first']"),this.hasHeadSlotLast=!!this.element.querySelector("[slot='thead-last']"),this.hasFootSlot=!!this.element.querySelector("[slot='tfoot']")}connectedCallback(){u(this)}disconnectedCallback(){b(this)}createLabel(e){const{sort_order:a,direction:i,index:d,label:s}=e,l=p(s);return this.sortable?t("span",{class:"duet-table-label","data-index":d},t("duet-button",{size:"small",icon:a&&1===i?"action-arrow-down-small":a&&-1===i?"action-arrow-up-small":"action-subtract-small","icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":!0,onClick:t=>this.toggleColumn(e,t),onKeyDown:t=>this.handleKeyDown(e,t)},l)):l}getSortedColumns(){return[...this.columns].sort(o(["index"]))}getRowSortOrder(){return[...this.columns].sort(o(["sort_order"])).filter((t=>t.sort_order)).map((t=>-1===t.direction?`-${t.key}`:t.key))}renderTableHeader(){if(!this.columns)return;const e=this.getSortedColumns();return t("tr",{class:{"duet-table-action-header":!!this.actions}},e.map((e=>{if(!1!==e.display){const a=this.createLabel(e);return""!==a?t("th",{scope:"col"},a):t("td",null)}})),this.actions&&t("th",{scope:"col",class:"duet-table-action-header-heading"},this.actions&&t("duet-visually-hidden",null,this.actionColumnLabel[this.language])))}renderActions(e,a){if(this.actions)return t("td",{class:"duet-text-right"},this.actions.map((i=>t("duet-action-button",{actionMeta:Object.assign({},(null==e?void 0:e.meta)||{},{index:a}),actionId:(null==e?void 0:e.uid)||(null==e?void 0:e.id)||null,actionName:i.name,theme:this.theme,iconName:i.icon,iconColor:i.color,iconSize:i.size,background:i.background,"accessible-label":`${e.actionDescription||""} ${p(i.label)} `}))))}renderTableBody(){const e=this.getSortedColumns(),a=this.getRowSortOrder();return[...this.rows].sort(o(a)).map(((a,i)=>t("tr",{class:{"duet-table-action-row":!!this.actions,"duet-editable-table-row":!0,[`duet-editable-table-row-${this.groupId}`]:!0},"data-meta":JSON.stringify(a.meta)},e.map((e=>{if(!1!==e.display)return t(T,{data:a[e.key]?a[e.key]:a.item,groupId:this.groupId})})),this.actions&&this.renderActions(a,i))))}render(){return t(i,{class:{[`duet-editable-table-${this.variation}`]:!0,"duet-editable-table":!0,[`duet-editable-table-${this.theme}`]:!0,"duet-editable-table-scrollable":"none-scrollable"===this.breakpoint,"duet-editable-table-sortable":this.sortable,"duet-editable-table-actions":!!this.actions,"duet-m-0":"none"===this.margin,"duet-theme-turva":"turva"===this.theme}},t("duet-table",{class:"duet-editable-table-table",sticky:this.sticky,stickyDistance:this.stickyDistance,margin:this.margin,theme:this.theme,variation:this.variation,breakpoint:this.breakpoint,"hide-head-visually":this.hideHeadVisually},t("table",{role:this.accessibleRole},t("caption",null,t("slot",{name:"tcaption"})),t("thead",null,this.hasHeadSlotFirst&&t("tr",null,t("td",{class:"duet-editable-table-actions-menu",colSpan:99},t("slot",{name:"thead-first"}))),this.renderTableHeader(),this.hasHeadSlotLast&&t("tr",null,t("td",{class:"duet-editable-table-actions-menu",colSpan:99},t("slot",{name:"thead-last"})))),t("tbody",null,this.renderTableBody()),this.hasFootSlot&&t("tfoot",null,t("tr",null,t("td",{class:"duet-editable-table-footer-menu",colSpan:99},t("slot",{name:"tfoot"})))))))}get element(){return d(this)}};L.style=".sc-duet-editable-table-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-editable-table-actions-menu.sc-duet-editable-table{position:relative;padding:0 !important;margin:0}.duet-editable-table-actions-menu-button.sc-duet-editable-table{position:relative;right:-16px;float:right;padding:0}.duet-editable-table-actions-menu-icon.sc-duet-editable-table .duet-icon.sc-duet-editable-table{max-width:16px;max-height:16px}.duet-editable-table-row.duet-table-action-row.sc-duet-editable-table .duet-text-right.sc-duet-editable-table{text-align:right}.duet-editable-table-header.sc-duet-editable-table tr.sc-duet-editable-table .duet-editable-table-header-hidden.sc-duet-editable-table{padding:0 !important;font-size:0;border-bottom:0}";const S={none:0,"with-links":16*parseFloat(c),"without-links":16*parseFloat(f)},E=class{constructor(t){e(this,t),this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)",this.handleMediaQueryChange=t=>{this.matchesBreakpoint=g.includes(this.breakpoint)?!t.matches:t.matches},this.matchesBreakpoint=!0,this.language=h(),this.theme=void 0,this.margin="auto",this.variation="striped",this.sticky=!1,this.stickyDistance="with-links",this.breakpoint="small",this.hideHeadVisually=!1}watchLanguageStateHandler(t,e){t!==e&&setTimeout((()=>this.copyHeadingsToCells()),50)}connectedCallback(){this.mq=matchMedia("none"===this.breakpoint||"none-scrollable"===this.breakpoint?"all":y[this.breakpoint]),this.mq.addEventListener("change",r(this.handleMediaQueryChange,50)),this.handleMediaQueryChange(this.mq),this.observer=new MutationObserver((()=>r(this.copyHeadingsToCells(),50))),this.observer.observe(this.element,{childList:!0,subtree:!0})}componentWillLoad(){if(l(this),this.copyHeadingsToCells(),this.sticky&&"none-scrollable"===this.breakpoint&&console.warn('[DUET WARNING]: sticky and breakpoint="none-scrollable" are incompatible. Scrollable takes precedence'),this.sticky){const t=S[this.stickyDistance];this.element.querySelectorAll(this.headingSelector).forEach((e=>e.style.top=`${t}px`))}}componentDidLoad(){this.observer&&this.observer.takeRecords(),u(this)}disconnectedCallback(){this.observer.disconnect(),this.observer=null,this.mq.removeListener(this.handleMediaQueryChange),this.mq=null,this.matchesBreakpoint=!0,b(this)}copyHeadingsToCells(){const t=this.element.querySelectorAll(this.headingSelector),e=this.element.querySelectorAll("tbody tr"),a=Array.from(t).map((t=>t.textContent.trim()));e.forEach((t=>{t.querySelectorAll("td").forEach(((t,e)=>{if(a[e]){const i=t.querySelector(".duet-table-cell-heading");if(!i||i.textContent!==a[e]){null==i||i.remove();const d=document.createElement("span");d.textContent=a[e],d.classList.add("duet-table-cell-heading"),d.setAttribute("aria-hidden","true"),d.inert=!0,t.prepend(d)}}}))}))}render(){return t(i,{key:"e518ffcdb3a5e1623d0d00b9d056f16ded2e9a91",class:{[`duet-table-${this.variation}`]:!0,"duet-table-flattened":!this.matchesBreakpoint,"duet-table-sticky":this.matchesBreakpoint&&this.sticky,"duet-table-scrollable":"none-scrollable"===this.breakpoint,"duet-m-0":"none"===this.margin,"duet-theme-turva":"turva"===this.theme,"duet-table-hide-head-visually":this.hideHeadVisually}},t("slot",{key:"ead482e0e02136ea9147737239f539b3478f7925"}))}get element(){return d(this)}static get watchers(){return{language:["watchLanguageStateHandler"]}}};E.style='duet-table{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;font-variant-numeric:tabular-nums}duet-table table,duet-table thead,duet-table tbody,duet-table tfoot,duet-table th,duet-table td,duet-table tr{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}duet-table.duet-m-0{margin:0 !important}duet-table table{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;text-align:left;border-spacing:0;border-collapse:separate}duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead,duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead *{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}duet-table.duet-theme-turva table{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}duet-table td{-webkit-hyphens:auto;hyphens:auto;color:rgb(8, 42, 77)}duet-table.duet-theme-turva td{color:rgb(23, 28, 58)}duet-table th{font-weight:600;line-height:1.25;color:rgb(98, 121, 138);text-align:left}duet-table.duet-theme-turva th{color:rgb(143, 147, 158)}duet-table tbody th{font-weight:600;color:rgb(8, 42, 77)}duet-table.duet-theme-turva tbody th{color:rgb(23, 28, 58)}duet-table .duet-table-action-row td:last-child{justify-self:end;padding-right:20px !important;white-space:nowrap}duet-table span.duet-table-cell-heading{display:none}.duet-table-flattened table,.duet-table-flattened thead,.duet-table-flattened tbody,.duet-table-flattened tfoot,.duet-table-flattened th,.duet-table-flattened td,.duet-table-flattened tr{display:block}.duet-table-flattened thead tr{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}.duet-table-flattened td{line-height:1.25}.duet-table-flattened td:not(:last-child){margin-bottom:16px !important}.duet-table-flattened td span.duet-table-cell-heading{margin-bottom:4px !important;display:block;font-size:1rem;font-weight:600;color:rgb(8, 42, 77)}.duet-table-flattened.duet-theme-turva td span.duet-table-cell-heading{color:rgb(23, 28, 58)}.duet-table-flattened tbody td,.duet-table-flattened tbody th,.duet-table-flattened tfoot td{padding:0 !important;text-align:left !important}.duet-table-flattened tbody th{font-weight:600;line-height:1.25;color:rgb(98, 121, 138);text-align:left}.duet-table-sticky thead th{position:sticky;top:0;background:rgb(255, 255, 255)}.duet-table-striped td,.duet-table-striped th{padding:20px !important}@media (max-width: 35.9375em){.duet-table-striped td,.duet-table-striped th{padding:20px 12px !important}}.duet-table-striped tbody th{background:rgb(255, 255, 255)}.duet-table-striped.duet-table-sticky thead th{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-table-sticky.duet-theme-turva thead th{border-bottom-color:rgb(222, 224, 228)}.duet-table-striped tbody:not(:first-of-type) th{padding-top:40px !important}.duet-table-striped tbody:only-of-type tr:nth-of-type(odd){background:rgba(4, 81, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(4, 81, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tfoot td{border-top:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-theme-turva tfoot td{border-top-color:rgb(222, 224, 228)}.duet-table-striped.duet-table-flattened tbody:not(:first-of-type) th{padding-top:20px !important}.duet-table-striped.duet-table-flattened tr{padding:20px !important}.duet-table-striped.duet-table-flattened tfoot td{border-top:0}.duet-table-striped.duet-table-flattened tfoot tr{border-top:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:rgb(222, 224, 228)}.duet-table-fixed th,.duet-table-minimal th,.duet-table-plain th{padding:16px !important;border-bottom:1px solid rgb(98, 121, 138)}.duet-table-fixed th:first-child,.duet-table-minimal th:first-child,.duet-table-plain th:first-child{padding-left:0 !important}.duet-table-fixed th:last-child,.duet-table-minimal th:last-child,.duet-table-plain th:last-child{padding-right:0 !important}.duet-theme-turva.duet-table-fixed th,.duet-theme-turva.duet-table-minimal th,.duet-theme-turva.duet-table-plain th{border-bottom-color:rgb(113, 118, 132)}.duet-table-fixed tbody th,.duet-table-minimal tbody th,.duet-table-plain tbody th{padding-top:40px !important;border-bottom-color:rgb(212, 223, 229)}.duet-theme-turva.duet-table-fixed tbody th,.duet-theme-turva.duet-table-minimal tbody th,.duet-theme-turva.duet-table-plain tbody th{border-bottom-color:rgb(222, 224, 228)}.duet-table-fixed td,.duet-table-minimal td,.duet-table-plain td{padding:16px !important}.duet-table-fixed td:first-child,.duet-table-minimal td:first-child,.duet-table-plain td:first-child{padding-left:0 !important}.duet-table-fixed td:last-child,.duet-table-minimal td:last-child,.duet-table-plain td:last-child{padding-right:0 !important}.duet-table-fixed tbody td,.duet-table-minimal tbody td,.duet-table-plain tbody td{border-bottom:1px solid rgb(212, 223, 229)}.duet-theme-turva.duet-table-fixed tbody td,.duet-theme-turva.duet-table-minimal tbody td,.duet-theme-turva.duet-table-plain tbody td{border-bottom-color:rgb(222, 224, 228)}.duet-table-flattened.duet-table-fixed tbody:first-of-type th,.duet-table-flattened.duet-table-minimal tbody:first-of-type th,.duet-table-flattened.duet-table-plain tbody:first-of-type th{padding-top:0 !important}.duet-table-flattened.duet-table-fixed td,.duet-table-flattened.duet-table-minimal td,.duet-table-flattened.duet-table-plain td,.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{border-bottom:0}.duet-table-flattened.duet-table-fixed tr,.duet-table-flattened.duet-table-minimal tr,.duet-table-flattened.duet-table-plain tr{padding:20px 0 !important}.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{padding-top:20px !important}.duet-table-flattened.duet-table-fixed tfoot td,.duet-table-flattened.duet-table-minimal tfoot td,.duet-table-flattened.duet-table-plain tfoot td{margin-bottom:4px !important}.duet-table-flattened.duet-table-fixed tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-minimal tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-plain tbody:not(:only-of-type) tr:first-child{border-bottom:0}.duet-table-plain.duet-table-flattened tbody tr{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:rgb(222, 224, 228)}.duet-table-minimal tbody tr,.duet-table-minimal tbody tr td{vertical-align:top;border-bottom:0 none}.duet-table-minimal tbody tr:last-of-type,.duet-table-minimal tbody tr:last-of-type td{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-minimal.duet-table-flattened tbody tr,.duet-table-minimal.duet-table-flattened tbody tr td{border-bottom:0 none}.duet-table-minimal.duet-table-flattened tbody tr td[data-heading]::before{display:none}.duet-table-minimal.duet-table-flattened tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-fixed table{table-layout:fixed}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td,.duet-table-fixed tbody tr td:first-child{padding:4px !important;vertical-align:text-bottom;border-bottom:0 none}.duet-table-fixed thead{display:none}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td{border-bottom:0 none}.duet-table-fixed:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-fixed:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-scrollable{position:relative;width:100%;overflow-x:auto;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0)), linear-gradient(-90deg, #fff 0%, rgba(255, 255, 255, 0)) 100% 0, radial-gradient(farthest-side at 0% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)) 100% 0%;background-repeat:no-repeat;background-attachment:local, local, scroll, scroll;background-size:100px 100%, 100px 100%, 12px 100%, 12px 100%}.duet-table-selected-column{background:rgba(0, 119, 179, 0.08)}.duet-theme-turva .duet-table-selected-column{background:rgba(113, 118, 132, 0.08)}.duet-table-sortable tbody tr td:first-child,.duet-table-sortable thead tr th:first-child{padding:20px}.duet-table-sortable:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-sortable:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-actions table{table-layout:auto}.duet-table-actions thead th:last-child{width:1px;white-space:nowrap}.duet-editable-table-table.duet-table-flattened tr{display:grid;grid-template-columns:repeat(2, 1fr);grid-auto-rows:auto;gap:10px}.duet-editable-table-table.duet-table-flattened tr.duet-table-action-row td:last-child::before{padding:0;content:""}.duet-editable-table-table.duet-table-flattened td{grid-column:1/2}.duet-editable-table-table.duet-table-flattened td:first-child{grid-row:1;grid-column:1}.duet-editable-table-table.duet-table-flattened td:last-child{grid-row:1;grid-column:2}duet-table.duet-theme-turva2.duet-theme-turva td{color:rgb(35, 46, 61)}duet-table.duet-theme-turva2.duet-theme-turva tbody th{color:rgb(35, 46, 61)}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva.duet-table-sticky thead th{border-bottom-color:rgb(248, 229, 217)}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(35, 46, 61, 0.04)}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(35, 46, 61, 0.04)}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tfoot td{border-top-color:rgb(248, 229, 217)}duet-table.duet-theme-turva2.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:rgb(248, 229, 217)}duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody th{border-bottom-color:rgb(248, 229, 217)}duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody td{border-bottom-color:rgb(248, 229, 217)}duet-table.duet-theme-turva2.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:rgb(248, 229, 217)}duet-table.duet-theme-turva2.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:rgb(248, 229, 217)}duet-table.duet-theme-turva2.duet-table-fixed.duet-theme-turva:not(.duet-table-flattened) tfoot{border-top-color:rgb(248, 229, 217)}duet-table.duet-theme-turva2.duet-table-sortable.duet-theme-turva:not(.duet-table-flattened) tfoot{border-top-color:rgb(248, 229, 217)}';const j=[{type:"default",system_message:"unknown error",message:{fi:"Tapahtui tuntematon virhe, ole hyvä ja yritä uudelleen.",sv:"Ett okänt fel uppstod, försök igen.",en:"An unknown error occured, please try again."}},{type:"400",system_message:"Bad Request: The server could not understand the request due to invalid syntax.",message:{fi:"Tiedostoa ei hyväksytty.",sv:"Servern avvisade din fil.",en:"The server rejected your file."}},{type:"401",system_message:"Not Authenticated: The client must authenticate itself to get the requested response...",message:{fi:"Vain kirjautunut käyttäjä voi lähettää tiedostoja.",sv:"Du måste vara inloggad för att ladda upp filer.",en:"You need to be logged in to upload files."}},{type:"403",system_message:"No Access: The client does not have access rights to the content.",message:{fi:"Ei oikeuksia lähettää tiedostoja.",sv:"Du har inte rätt åtkomsträttigheter för att ladda upp filer.",en:"You do not have the correct access rights to upload files."}},{type:"413",system_message:"Payload too large",message:{fi:"Tiedosto oli liian vastaanotettavaksi.",sv:"Filen var för stor för servern att hantera.",en:"The file was to large for the server to handle."}},{type:"415",system_message:"Unsupported media type",message:{fi:"Tiedoston tyyppi oli väärä.",sv:"Servern avvisade filen eftersom den hade fel typ.",en:"The server rejected the file because it had the wrong type."}},{type:"429",system_message:"Too many request from same address",message:{fi:"Liian monta yritystä, ole hyvä ja yritä myöhemmin uudelleen.",sv:"Servern har fått många förfrågningar från dig, försök igen senare.",en:"The server has received to many request from you, please try again later."}},{type:"500",system_message:"Internal Server Error",message:{fi:"Palvelin ilmoitti tuntemattomasta virheestä ja lataus epäonnistui.",sv:"Servern rapporterade ett okänt fel och uppladdningen misslyckades.",en:"The server reported an unknown error and the upload failed."}},{type:"duet-upload-100",system_message:"File extension not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den type.",en:"You cannot upload files with that extension."}},{type:"duet-upload-001",system_message:"File transfer failed",message:{fi:"Tiedoston lähetys keskeytyi, ole hyvä ja yritä uudelleen.",sv:"Din anslutning till servern avbröts, försök igen.",en:"Your connection to the server was interrupted, try again."}},{type:"duet-upload-101",system_message:"File mimetype not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den typ.",en:"You cannot upload files of that type."}},{type:"duet-upload-201",system_message:"File is too large",message:{fi:"Tiedosto on liian iso.",sv:"Filen är större än tillåtet.",en:"The file is larger than permitted."}},{type:"duet-upload-202",system_message:"The combined size of all files is too large",message:{fi:"Tiedostojen yhteenlaskettu koko on liian iso.",sv:"Du har nått den maximala kombinerade filstorleken.",en:"You have reached the maximum combined filesize."}},{type:"duet-upload-203",system_message:"Files to upload exceed total byte size limit",message:{fi:"Yritit lisätä tiedostoja, jotka ylittäisivät suurimman sallitun yhteenlasketun koon.",sv:"Du försökte lägga till filer som skulle överskrida den maximala kombinerade storleken.",en:"You tried to add files that would exceed the maximum combined size."}},{type:"duet-upload-301",system_message:"The maximum file limit has been reached",message:{fi:"Liitteiden maksimimäärä saavutettu.",sv:"Maximalt antal bilagor har uppnåtts.",en:"Maximum number of attachments reached."}},{type:"duet-upload-302",system_message:"Files to upload exceeds limits",message:{fi:"Et voi lähettää enempää kuin enimmäismäärän liitteitä.",sv:"Du kan inte ladda upp fler än det maximala antalet bilagor.",en:"You can't upload more than maximum number of attachments."}}],$={fi:"Liiteluettelo",sv:"Lista över bilagor",en:"Attachments list"},M=({label:e,categoryLabel:a})=>t("div",{class:"items-header",tabindex:"-1","aria-label":p($)},a&&t("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},p(a)),t("duet-heading",{class:{"filename-header":!0,"no-category":!a},border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},p(e))),z=(t,e,a)=>{const{allowedMimetypes:i,allowedExtensions:d,maxBytes:s}=e;let l=!1,o=k("default",a);if(t){const{name:e,type:r,size:n}=t,h=((t,e)=>{if(!e||!t)return!0;const a=e.split(",");let i=!1;return a.forEach((e=>{const a=e.split("/"),d=t.split("/");a[0]!==d[0]||a[1]!==d[1]&&"*"!==a[1]||(i=!0)})),i})(r,i),u="all"===d||""===d||" "===d||void 0===d||((t,e)=>{if(!e)return!0;const a=t.split(".");return e.split(",").includes(a[a.length-1])})(e.toLowerCase(),d),b=((t,e)=>!e||!t||e>=t)(n,s);h||(o=k("duet-upload-101",a)),u||(o=k("duet-upload-100",a)),b||(o=k("duet-upload-201",a)),l=h&&u&&b}else l=!1;return{valid:l,errorMessage:l?void 0:p(o.message),errorSystem:l?void 0:o.system_message,errorType:l?void 0:o.type}},F=({payload:t,options:e,onFailure:a,onSuccess:i,onProgress:d})=>{const{type:s="POST",xhr:l,uri:o,argument:r=null,headers:n=null}=e;l.open(s,`${o}${r||""}`,!0);const{data:h,name:u}=t;return n&&Object.keys(n).forEach((t=>{l.setRequestHeader(t,n[t])})),"POST"===s&&(l.onreadystatechange=()=>{l.readyState===XMLHttpRequest.DONE&&l.status>=200&&l.status<300&&i(l,u,l.status),l.readyState===XMLHttpRequest.DONE&&l.status>=300&&l.status<999&&a(l,u,l.status)},d(u)),l.send(h),l},C=class{constructor(i){e(this,i),this.duetChange=a(this,"duetChange",3),this.duetBlur=a(this,"duetBlur",7),this.duetFocus=a(this,"duetFocus",7),this.duetReady=a(this,"duetReady",7),this.duetDone=a(this,"duetDone",3),this.duetState=a(this,"duetState",3),this.duetDelete=a(this,"duetDelete",3),this.duetCancel=a(this,"duetCancel",3),this.duetProgress=a(this,"duetProgress",3),this.duetUpload=a(this,"duetUpload",3),this.linkClick=a(this,"linkClick",3),this.buttonId=v("DuetButton"),this.labelId=v("DuetLabel"),this.uploadId=v("DuetUpload"),this.filesInProgress=new Map,this.fileMaxReached=!1,this.bytesMaxReached=!1,this.filesToUploadExceedsLimit=!1,this.filesToUploadTotalSizeIsAboveMax=!1,this.internalStatusMessageLabel=void 0,this.itemRefs=new Map,this.DefaultGroups={inprogress:"inprogress",success:"success",pending:"pending",failure:"failure"},this.kick=r((()=>{this.tick=Date.now()}),30),this.categoryLabel={en:"Category",sv:"Filtyp",fi:"Tiedostotyyppi"},this.listenForActionEvents=()=>{this.element.addEventListener("duetActionEvent",(t=>{const e=t.detail,{action:a,id:i,originalEvent:d}=e;switch(a){case"delete":this.onDelete(i,d);break;case"cancel":this.onCancel(i,d)}}))},this.verifyValidity=()=>{const{invalid:t,valid:e}=this.getFilesAsArray(),a=this.valid;this.valid=0===t.length&&0!==e.length,this.valid!==a&&this.duetState.emit({originalEvent:void 0,data:{valid:this.valid,from:"componentWillRender"},component:"duet-upload"})},this.getGroupFromItemData=t=>t.valid&&100===t.progress?this.DefaultGroups.success:t.progress>0&&100!==t.progress?this.DefaultGroups.inprogress:t.valid?t.pending?this.DefaultGroups.pending:t.group?t.group:"none":this.DefaultGroups.failure,this.mapFilesToUploadItems=(e,a,i,d)=>a===this.DefaultGroups.success?t("duet-upload-item",{theme:this.theme,actions:this.getActions(a,d),type:"success",data:e,showLinks:this.showLinks,linkClickEvent:this.emitEvent?this.linkClick:void 0,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:this.processedButtonTitles,ref:t=>{this.itemRefs.set(e.uid,t)}}):a===this.DefaultGroups.inprogress?t("duet-upload-item",{theme:this.theme,actions:this.getActions(a,d),type:"inprogress",data:e,showLinks:this.showLinks,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:this.processedButtonTitles,ref:t=>{this.itemRefs.set(e.uid,t)}}):a===this.DefaultGroups.pending?t("duet-upload-item",{theme:this.theme,actions:this.getActions(a,d),type:"pending",data:e,showLinks:this.showLinks,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:this.processedButtonTitles,ref:t=>{this.itemRefs.set(e.uid,t)}}):a===this.DefaultGroups.failure?t("duet-upload-item",{theme:this.theme,actions:this.getActions(a,d),type:"failure",data:e,showLinks:this.showLinks,errorCodes:this.errorCodes,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:this.processedButtonTitles,ref:t=>{this.itemRefs.set(e.uid,t)}}):e.group?e.html:"none",this.genHashName=()=>Date.now().toString(36)+Math.random(),this.updateValueInMap=(t,e,a,i=!0)=>{try{const i=this.files.get(t);i[e]=a,this.files.set(t,i),this.external&&"url"!==e&&this.trackProgress(t,"uploaded"===e)}catch(t){}i&&this.kick()},this.updateProgress=(t,e)=>{t.lengthComputable?(a=>{this.updateValueInMap(e,"progress",a),this.onProgress(e,a,t)})(t.loaded/t.total*100):console.log("cant read progress")},this.trackProgress=(t,e=!1)=>{e?this.filesInProgress.delete(t):this.filesInProgress.set(t,"inprogress"),0===this.filesInProgress.size&&this.onDone()},this.getFilesAsArray=()=>{const t=[],e=[];return this.files.forEach((a=>{a.valid&&!a.deleted?t.push(a):a.valid||a.deleted||e.push(a)})),{valid:t,invalid:e}},this.resetFormFields=()=>{this.nativeInput.value=""},this.startUpload=async(t,e)=>{const{bytesMaxReached:a,fileMaxReached:i}=this.validateTotals();a||i?this.kick():(this.metaData=e,this.nativeInput.click(),this.onUpload(t,e),t.stopPropagation(),t.preventDefault())},this.transferComplete=t=>{this.updateValueInMap(t,"progress",100,!1),this.trackProgress(t,!0)},this.transferDone=(t,e,a)=>{this.updateValueInMap(e,"status",a,!1),this.updateValueInMap(e,"uploaded",!0,!1);try{const a=JSON.parse(t.response);this.updateValueInMap(e,"url",a.url)}catch(t){this.updateValueInMap(e,"url",null),console.error("Server did not respond with expected response {url: string}")}},this.transferDoneWithFailure=(t,e,a)=>{try{const{error:a}=JSON.parse(t.response);this.updateValueInMap(e,"error",{message:a.message,type:a.type},!1)}catch(t){console.error("Server did not respond with expected response error:{message: string, type: int}"),this.updateValueInMap(e,"error",{type:a},!1)}this.updateValueInMap(e,"valid",!1,!0)},this.transferFailed=t=>{this.updateValueInMap(t,"error",w("duet-upload-001",this.errorCodes))},this.transferCanceled=t=>{this.files.delete(t),this.validateTotals(t),this.kick()},this.validateTotals=t=>{const e=((t,e)=>{let a=0;return!!(e&&(this.files.forEach((t=>{t.valid&&t.size&&(a+=t.size)})),a>=e))})(0,this.maxBytesTotal),a=((t,e)=>{let a=0;return!!(e&&(this.files.forEach((t=>{t.valid&&a++})),a>=e))})(0,this.maxFiles);return e&&t&&this.updateValueInMap(t,"error",w("duet-upload-202",this.errorCodes),!1),a&&t&&this.updateValueInMap(t,"error",w("duet-upload-301",this.errorCodes),!1),this.bytesMaxReached=e,this.fileMaxReached=a,{bytesMaxReached:e,fileMaxReached:a}},this.uploadFile=async(t,e=!1,a)=>{!e&&this.deferUpload?(this.updateValueInMap(t.item.name,"pending",!0,!1),this.updateValueInMap(t.item.name,"group","pending",!0)):e&&(this.updateValueInMap(t.item.name,"pending",!1,!1),this.updateValueInMap(t.item.name,"group",void 0,!0));try{if(!this.deferUpload||e){const e=new FormData;e.append("file",t.item),a&&e.append("key",a),e.append("uid",t.uid),e.append("name",t.item.name),e.append("metadata",JSON.stringify({uid:t.uid,url:this.uri,size:t.item.size,meta:t.meta})),t.xhr=await this.makeXHRPostRequest(e)}}catch(e){this.updateValueInMap(t.item.name,"valid",!1,!1)}},this.uploadPendingFiles=()=>{for(const[t,e]of Array.from(this.files.entries()))"pending"===e.group&&!0===e.pending&&this.uploadFile(e,!0,t)},this.getItemFromUID=t=>{for(const[e,a]of Array.from(this.files.entries()))if(a.uid===t)return{value:a,key:e};return null},this.handleExternalUploadButton=(t,e)=>{this.externalUploadButton&&(this.externalUploadButton.disabled=!(!t&&!e))},this.onDelete=(t,e)=>{const a=this.getItemFromUID(t).key,i=this.files.get(a);this.files.delete(a);const{bytesMaxReached:d,fileMaxReached:s}=this.validateTotals();this.handleExternalUploadButton(d,s),this.kick(),this.duetDelete.emit({originalEvent:e,data:{deletion:i},component:"duet-upload"}),this.external||i.pending||this.makeXHRDeleteRequest(i),this.resetFormFields()},this.onCancel=(t,e)=>{const a=this.getItemFromUID(t).key,i=this.files.get(a);this.files.delete(a);const{bytesMaxReached:d,fileMaxReached:s}=this.validateTotals();if(this.handleExternalUploadButton(d,s),!this.external){const{xhr:t}=i;t&&t.abort()}this.kick(),this.resetFormFields(),this.duetCancel.emit({originalEvent:e,data:{cancelled:i},component:"duet-upload"})},this.onUpload=(t,e)=>{this.duetUpload.emit({originalEvent:t,metaData:e,component:"duet-upload"})},this.onBlur=t=>{this.duetBlur.emit({originalEvent:t,component:"duet-upload"})},this.onProgress=(t,e,a)=>{this.duetChange.emit({originalEvent:a,data:{key:t,percentComplete:e},component:"duet-upload"})},this.onFocus=t=>{this.duetFocus.emit({originalEvent:t,component:"duet-upload"})},this.onReady=()=>{this.duetReady.emit({component:"duet-upload"})},this.onDone=()=>{this.duetDone.emit({component:"duet-upload",data:{files:this.files}})},this.filterMap=()=>{const t=Array.from(this.files.values()),e=[],a=[],i=[],d=[];let s=!1;return t.forEach((t=>{const l=this.getGroupFromItemData(t);t.meta&&t.meta.badges&&(s=!0),l===this.DefaultGroups.success?d.push({uid:t.uid,data:t}):l===this.DefaultGroups.inprogress?e.push({uid:t.uid,data:t}):l===this.DefaultGroups.pending?i.push({uid:t.uid,data:t}):l===this.DefaultGroups.failure?a.push({uid:t.uid,data:t}):t.group&&e.push({uid:t.uid,data:t})})),{pending:i,failure:a,success:d,inprogress:e,hasCategory:s}},this.getActions=(t,e)=>e.filter((e=>e.map.includes(t))),this.renderUploadedItems=()=>{this.itemRefs.clear();const e=this.filterMap(),a=e.hasCategory,i=this.hideCancelButton?this.actions.filter((t=>"cancel"!==t.name)):this.actions,d=this.groups.map((d=>{const l=e[d.id];if(null==l?void 0:l.length)return t(s,null,!this.hideGroups&&t(M,{categoryLabel:a?this.categoryLabel:void 0,label:d.label}),l.map((t=>this.mapFilesToUploadItems(t.data,d.id,a,i))))}));return t(s,null,this.showUploadedItemsHeader&&t(M,{categoryLabel:a?this.categoryLabel:void 0,label:this.uploadedItemsHeaderLabel}),d)},this.tick=Date.now(),this.accessibleActiveDescendant=void 0,this.accessibleDescribedBy=void 0,this.accessibleControls=void 0,this.accessibleOwns=void 0,this.external=!1,this.middleware=null,this.deferUpload=!1,this.hideButton=!1,this.actions=[{icon:"action-delete",color:"color-danger",size:"x-small",background:"gray-lightest",name:"delete",map:["success","failure"],label:{fi:"Poista tiedosto",en:"Delete the file",sv:"Ta bort filen"}},{icon:"navigation-close",color:"primary",size:"x-small",background:"gray-lightest",name:"cancel",map:["inprogress","pending"],label:{fi:"Keskeytä lähetys",en:"Cancel the upload",sv:"Stop överföringen"}}],this.uri=void 0,this.showLinks=!1,this.caption=void 0,this.statusLabelDefaults={fi:{inProgress:"Lähetetään {filesUploaded}, yhteensä lähetettävänä {filesTotal}.",inProgressWithErrors:"Lähetetään {filesInProgress}, lähetetty {filesUploaded}, yhteensä lähetettävänä {filesTotal}, {filesWithErrors} epäonnistui",done:"Lähetys valmis, {filesTotal} lisätty onnistuneesti",doneWithErrors:"Lähetys valmis, {filesUploaded} lisätty onnistuneesti, {filesWithErrors} epäonnistui",files:"tiedostoa",file:"tiedosto"},sv:{inProgress:"Laddar upp {filesUploaded} av {filesTotal}",inProgressWithErrors:"Laddar upp {filesInProgress}, {filesUploaded} uppladdad av {filesTotal}, {filesWithErrors} misslyckades",done:"Uppladdningen slutförd, {filesTotal} har lagts till",doneWithErrors:"Uppladdningen slutförd, {filesUploaded} har lagts till, {filesWithErrors} misslyckades",files:"filer",file:"fil"},en:{inProgress:"Uploading {filesUploaded} of {filesTotal}",inProgressWithErrors:"Uploading {filesInProgress}, {filesUploaded} uploaded of {filesTotal}, {filesWithErrors} failed",done:"Upload completed, {filesTotal} added successfully",doneWithErrors:"Upload completed, {filesUploaded} added successfully, {filesWithErrors} failed.",files:"files",file:"file"}},this.statusMessageLabel=p(this.statusLabelDefaults),this.buttonLabelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add an attachment"},this.buttonLabel=p(this.buttonLabelDefaults),this.accessibleButtonLabel=void 0,this.theme="",this.disabled=!1,this.identifier=void 0,this.margin="auto",this.required=!1,this.alignment="middle",this.hideGroups=!1,this.files=new Map,this.valid=!this.required,this.labelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add attachments"},this.label=p(this.labelDefaults),this.descriptionDefaults={en:"You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytestotal} of files at a time, and add up to {maxfiles} attachments at a time each no larger than {maxbytes}.",sv:"Du kan bifoga följande filtyper: {filetypes} - samt de vanligaste videofilerna. Du kan ladda upp {maxbytestotal} av filer åt gången, och lägga till upp till {maxfiles} bilagor åt gången varje inte större än {maxbytes}.",fi:"Voit liittää seuraavat tiedostotyypit: {filetypes} - sekä yleisimmät videotiedostot. Voit lähettää {maxbytestotal} tiedostoa kerrallaan, ja lisätä enintään {maxfiles} liitettä kerrallaan, jokainen enintään {maxbytes} kokoisena."},this.description=p(this.descriptionDefaults),this.fileListEmptyDefaults={fi:"Ei vielä lisättyjä tiedostoja.",sv:"Inga filer har lagts till ännu.",en:"No files added yet."},this.fileListEmpty=p(this.fileListEmptyDefaults),this.error="",this.errorCodes=j,this.name=void 0,this.maxBytes=2e8,this.maxBytesTotal=void 0,this.maxFiles=99,this.allowedExtensions="all",this.allowedMimetypes="",this.multiple=!0,this.limitSelection=!1,this.hideCancelButton=!1,this.value=void 0,this.externalUploadButtonId=void 0,this.captionOnBottom=!1,this.showUploadedItemsHeader=!1,this.uploadedItemsHeaderLabel={fi:"Ladattu tiedosto",sv:"Lägg till en bilaga",en:"Uploaded file"},this.headerHeadingLevel="h3",this.hideHeader=!1,this.emitEvent=!1,this.actionButtonTitles={cancel:!1,delete:!1},this.renameDuplicates=!1,this.groups=[{id:this.DefaultGroups.success,label:{fi:"Valmiit tiedostot",sv:"Files success",en:"Files success"}},{id:this.DefaultGroups.failure,label:{fi:"Tiedostot, joissa on virheitä",sv:"Filer med fel",en:"Files with errors"}},{id:this.DefaultGroups.inprogress,label:{fi:"Kesken olevat tiedostot",sv:"Filer inprogress",en:"Files inprogress"}},{id:this.DefaultGroups.pending,label:{en:"Files to upload",sv:"Filer att ladda",fi:"Ladattavat tiedostot"}}]}watchValidHandler(t,e){t!==e&&this.kick()}componentWillLoad(){this.internalStatusMessageLabel="string"==typeof this.statusMessageLabel?m(this.groups):this.statusMessageLabel,l(this),this.listenForActionEvents(),this.onReady(),this.externalUploadButton=document.querySelector(`#${this.externalUploadButtonId}`),this.processedButtonTitles=x(this.actionButtonTitles)}componentWillRender(){this.verifyValidity()}async setFocus(t){this.nativeInput&&this.nativeInput.focus(t)}async upload(t){const{bytesMaxReached:e,fileMaxReached:a}=this.validateTotals();if(e||a)return this.handleExternalUploadButton(e,a),void this.kick();this.metaData=t,this.nativeInput.click()}async uploadPending(){this.uploadPendingFiles()}async refresh(){this.kick(),await this.setFocus()}async getFiles(){return!(!this.files||0===this.files.size)&&this.getFilesAsArray()}async updateValue(t,e,a){this.updateValueInMap(t,e,a)}async focusActionButton(t){var e;await(null===(e=this.itemRefs.get(t))||void 0===e?void 0:e.focusActionButton())}render(){const e=this.identifier||this.uploadId,a=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024),d=Math.round(this.maxBytes/1024/1024);let l=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());return l=l.replace(/{maxbytes}/g,`${d.toString()} MB`),l=l.replace(/{maxbytestotal}/g,`${a.toString()} MB`),l=l.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", ")),this.externalUploadButton&&(this.externalUploadButton.accessibleLabel=`${this.externalUploadButton.innerText}. ${l}`),t(i,{key:"3289ebfcf7be2cb204e3109f4bd774c023c1311b",class:{"duet-m-0":"none"===this.margin}},t("duet-fieldset",{key:"d7df1dc6a9f7d71d9f2dc5cfea209bae0767111e","label-heading-level":this.headerHeadingLevel,"label-hidden":this.hideHeader,label:this.label},t("slot",{key:"0cc5766408e69476d186039cce9325df4a0cea3d",name:"header"}),!this.files.size&&t("duet-empty-state",{key:"8441562b8677278cadc9f054163de15716507753",id:this.labelId,part:this.identifier?`${this.identifier}-empty-state`:"duet-upload-empty-state",icon:"messaging-attachment"},t("duet-paragraph",{key:"d077aa4e3663bf9faca0ba05ec2dce5ba4666286",margin:"none"},this.fileListEmpty)),!!this.files.size&&t("slot",{key:"e70ef44d5bc02d5e0eefdd0cdd34ebc6323cd85a",name:"fileheader"}),!!this.files.size&&t("duet-upload-aria-status",{key:"16b0035978c73e97c5148ba569a318b2736f53e2",invalid:this.getFilesAsArray().invalid.length,valid:this.getFilesAsArray().valid.length,inprogress:this.filesInProgress.size,total:this.files.size,statusMessageLabel:this.internalStatusMessageLabel}),!!this.files.size&&this.renderUploadedItems(),!!this.files.size&&t("slot",{key:"f500f8ede694b648fc115e2c9c0a575958c39bbb",name:"filefooter"}),t("slot",{key:"1ee35a65d6b56561a9c17f5a6dea294826eca780",name:"uploadfooter"}),this.captionOnBottom&&t("duet-caption",{key:"37e7c183776e7103f0e68cf130fce9cdf0215055",margin:"none",size:"small"},t("div",{key:"66ae65e6cadb22b5373cb54019885615facb8ea0",class:"upload-bottom-caption"},l)),t("slot",{key:"2e8ef445f7637398102d0be1547e27081c9ecf2d",name:"afterfooter"}),!this.hideButton&&t(s,{key:"0449ef097df354a51990e2694ce270b43e0920f4"},t("duet-spacer",{key:"76fcd53d37a524972a778bd974d156eb03a9aba6",size:"large"}),t("duet-button",{key:"4cd5efca2ac98ee8ea478e9a7269a5d2e702b7ef",id:this.buttonId,onClick:this.startUpload,"accessible-controls":e,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel||`${this.buttonLabel}. ${l}`,"accessible-owns":e,size:"small",variation:"secondary",fixed:!0,icon:"action-add-circle",part:this.identifier?`${this.identifier}-button-upload`:"duet-upload-button-upload"},this.buttonLabel)),(this.fileMaxReached||this.bytesMaxReached||this.filesToUploadExceedsLimit||this.filesToUploadTotalSizeIsAboveMax)&&t(s,{key:"2f4db6f88150427eb99c623c1404f0556848a3e2"},t("duet-spacer",{key:"d9a182225a80cf3b31272bc3f45db3ae7f8456a2",size:"medium"}),t("duet-alert",{key:"8d2209357e096a6c47fe1465d8ca66d900c8935b",part:this.identifier?`${this.identifier}-error-notification`:"duet-upload-error-notification"},this.fileMaxReached&&w("duet-upload-301",this.errorCodes),this.bytesMaxReached&&w("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&w("duet-upload-302",this.errorCodes),this.filesToUploadTotalSizeIsAboveMax&&w("duet-upload-203",this.errorCodes))),t("duet-visually-hidden",{key:"4be261bd112017729973d2def23f9b384d11b556","aria-hidden":"true"},t("input",{key:"03b8b40bd9488b6de5091aa5ae46e4d146732f17",ref:t=>{this.nativeInput=t},accept:this.limitSelection?`${this.allowedMimetypes},${this.allowedExtensions}`:void 0,onBlur:this.onBlur,onFocus:this.onFocus,onChange:t=>this.onChange(t),type:"file",class:{"duet-upload":!0},disabled:this.disabled,"aria-hidden":"true",required:this.required,name:this.name,id:this.identifier,multiple:this.multiple,tabIndex:-1}))))}makeXHRPostRequest(t){const e=new XMLHttpRequest,a=t.get("name");e.upload.addEventListener("progress",(t=>{this.updateProgress(t,a)})),e.upload.addEventListener("load",(()=>{this.transferComplete(a)})),e.upload.addEventListener("error",(()=>{this.transferFailed(a)})),e.upload.addEventListener("abort",(()=>{this.transferCanceled(a)}));let i={payload:{data:t,name:a},options:{type:"POST",uri:this.uri,xhr:e,argument:null,headers:void 0},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};return this.middleware&&(i=this.middleware(i)),F(i)}makeXHRDeleteRequest(t){const{uid:e,item:a}=t,i=new XMLHttpRequest;let d={payload:{data:null,name},options:{type:"DELETE",xhr:i,uri:this.uri,argument:`?key=${e}&name=${a.name}`,headers:{"x-fileuid":e,"x-filename":a.name}},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};return this.middleware&&(d=this.middleware(d)),F(d)}escapeSpecialCharacters(t){return(t+"").replace(/[\\"'(){}\[\]*?$^+]/g,"\\$&").replace(/\u0000/g,"\\0")}getRenamedFileName(t,e){const a=new RegExp(`${this.escapeSpecialCharacters(t)} \\(\\d+\\).${e}`),i=Array.from(this.files.entries()).map((t=>{const[e,a]=t;return e})).filter((i=>a.test(i)||i===`${t}.${e}`)).sort(((t,e)=>t.split(".").slice(0,-1).join(".")>e.split(".").slice(0,-1).join(".")?1:-1)).pop().split(".").slice(0,-1).join(".");if(i===t)return`${t} (1).${e}`;const d=parseInt(i.split("(").pop().slice(0,-1));return`${t} (${d+1}).${e}`}renameFiles(t){return t.map((t=>{if(this.files.get(t.name)){const e=t.name.split("."),a=e.pop(),i=e.join("."),d=this.getRenamedFileName(i,a);return new File([t],d,{type:t.type,lastModified:t.lastModified})}return t}))}async onChange(t){var e;let a=Array.from(null===(e=this.nativeInput)||void 0===e?void 0:e.files);if(this.filesToUploadExceedsLimit=!1,this.files.size+a.length>this.maxFiles)return this.filesToUploadExceedsLimit=!0,void this.kick();if(this.filesToUploadTotalSizeIsAboveMax=!1,((t,e,a)=>{let i=0;return!!(a&&(this.files.forEach((t=>{t.valid&&t.size&&(i+=t.size)})),e.forEach((t=>{t.size&&(i+=t.size)})),i>=a))})(0,a,this.maxBytesTotal))return this.filesToUploadTotalSizeIsAboveMax=!0,void this.kick();if(a){this.renameDuplicates&&(a=this.renameFiles(a));for(const t of a){const{valid:e,errorMessage:a,errorType:i,errorSystem:d}=z(t,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),s={uid:this.genHashName(),item:t,size:t.size,meta:this.metaData,uploaded:!1,valid:e,error:{type:e?void 0:i,message:e?void 0:a,system_message:e?void 0:d},progress:0,deleted:!1,xhr:!1,url:!1};this.files.set(t.name,s),e&&!this.external?await this.uploadFile(s):e&&this.external?(this.updateValueInMap(s.item.name,"pending",!0,!1),this.updateValueInMap(s.item.name,"group","pending",!0)):e||this.updateValueInMap(t.name,"valid",!1,!0),this.kick()}}this.resetFormFields(),this.metaData=void 0,this.duetChange.emit({originalEvent:t,data:{files:this.files},component:"duet-upload"})}get element(){return d(this)}static get watchers(){return{valid:["watchValidHandler"]}}};C.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}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}::slotted([slot=uploadfooter]){margin-top:20px}.duet-upload{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}duet-paragraph::part(duet-paragraph){word-break:break-word}duet-editable-table tfoot{display:none}.upload-bottom-caption{margin-top:12px;margin-bottom:16px;line-height:1.4rem}.items-header{display:none;flex-direction:row;margin-bottom:0}@media (min-width: 36em){.items-header{display:flex}}.items-header:not(:last-child),.items-header:not(:first-child){margin-top:12px}.items-header .category-header{width:35%}.items-header .filename-header{width:65%}.items-header .filename-header.no-category{width:100%}.upload-item-row{display:flex;flex-direction:column;gap:16px;align-content:center;align-items:center;padding:16px 0 16px 0;border-bottom:1px solid rgb(212, 223, 229)}@media (min-width: 36em){.upload-item-row{flex-direction:row;gap:10px}}.upload-item-row .item-categories{width:100%}@media (min-width: 36em){.upload-item-row .item-categories{width:35%}}.upload-item-row .item-name{position:relative;bottom:2px;width:100%;text-align:left}@media (min-width: 36em){.upload-item-row .item-name{width:50%}.upload-item-row .item-name.no-category{width:85%}}.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:block}@media (min-width: 36em){.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:none}}.upload-item-row .item-actions{width:100%;margin-left:-8px;text-align:left}@media (min-width: 36em){.upload-item-row .item-actions{width:15%;padding-top:0;margin-left:auto;text-align:right}}.upload-item-row .duet-upload-item-name duet-icon{position:relative;top:4px}.upload-item-row .duet-upload-item-name duet-progress{display:block;margin-top:16px}";export{L as duet_editable_table,E as duet_table,C as duet_upload}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,c as t,h as s,H as o,g as a}from"./p-ed0179f9.js";import{i}from"./p-2e417433.js";import{c as n}from"./p-5e59e970.js";import{i as r}from"./p-a45e3f8b.js";import{a as h,g as l,c,d}from"./p-0773901d.js";import"./p-9c3c64b9.js";const m=class{constructor(s){e(this,s),this.duetToggle=t(this,"duetToggle",7),this.contentId=n("DuetShowMore"),this.buttonId=n("DuetShowMoreButton"),this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent),this.handleKeyDown=e=>{r(e)&&this.handleClick(e)},this.handleClick=e=>{e.preventDefault();const t=!this.open;this.open=t,t?(setTimeout((()=>{this.contentElement.focus()}),100),setTimeout((()=>{this.buttonAriaOpen=t}),500)):this.buttonAriaOpen=t,this.duetToggle.emit({component:"duet-show-more",originalEvent:e})},this.buttonAriaOpen=!1,this.theme="",this.language=h(),this.showMoreLabelDefaults={fi:"Näytä lisää",sv:"Visa mer",en:"Show more"},this.showMoreLabel=l(this.showMoreLabelDefaults),this.showLessLabelDefaults={fi:"Näytä vähemmän",sv:"Visa mindre",en:"Show less"},this.showLessLabel=l(this.showLessLabelDefaults),this.showMoreAccessibleLabelDefaults={fi:"Näytä lisää tästä aiheesta",sv:"Visa mer om detta ämne",en:"Show more about this subject"},this.showMoreAccessibleLabel=l(this.showMoreAccessibleLabelDefaults),this.showLessAccessibleLabelDefaults={fi:"Näytä vähemmän tästä aiheesta",sv:"Visa mindre om detta ämne",en:"Show less about this subject"},this.showLessAccessibleLabel=l(this.showLessAccessibleLabelDefaults),this.margin="auto",this.buttonMargin="auto",this.buttonPadding="auto",this.open=!1}componentWillLoad(){i(this),this.buttonAriaOpen=this.open}connectedCallback(){c(this,[{prop:"showMoreLabel",defaults:"showMoreLabelDefaults"},{prop:"showLessLabel",defaults:"showLessLabelDefaults"},{prop:"showMoreAccessibleLabel",defaults:"showMoreAccessibleLabelDefaults"},{prop:"showLessAccessibleLabel",defaults:"showLessAccessibleLabelDefaults"}])}disconnectedCallback(){d(this)}render(){return s(o,{key:"cf001cd88b6d046f5d38edb4415fea3e14621949"},s("div",{key:"7b3e3eb12202d72e88304e7168d92ec9775b1907",class:{"duet-show-more":!0,"duet-theme-turva":"turva"===this.theme,"duet-m-0":"none"===this.margin,open:this.open}},s("div",{key:"bc1f2d3525d4e5ce6b10770013aa6696822a71aa",ref:e=>this.contentElement=e,class:{content:!0},id:this.contentId,tabindex:this.open?"-1":""},s("div",{key:"b250102aac08de1604938717797afcfc7f28f624",class:{"slotted-content":!0}},s("slot",{key:"95f39f8e5abf0a79bf9f40cf34281013991cdd8b"}))),s("duet-button",{key:"b07f00cb1d84ba412a711f7f1f37e7e3269e1984",id:this.buttonId,variation:"plain","accessible-label":this.buttonAriaOpen?this.showLessAccessibleLabel:this.showMoreAccessibleLabel,"accessible-expanded":this.buttonAriaOpen?"true":"false","accessible-controls":this.contentId,accessiblePressed:this.isSafariBrowser?this.open:null,onClick:this.handleClick,onKeyDown:this.handleKeyDown,"icon-right":!0,icon:this.open?"action-arrow-up-small":"action-arrow-down-small","icon-size":"medium-small",size:"small",margin:this.buttonMargin,padding:this.buttonPadding,theme:"turva"===this.theme?"turva":"default"},s("span",{key:"33157363432909baaa57cb03d67c71c0de61b073"},this.open?this.showLessLabel:this.showMoreLabel))))}get element(){return a(this)}};m.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block}.duet-show-more{margin-bottom:16px !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;line-height:1.5;color:rgb(8, 42, 77)}.duet-show-more.duet-m-0{margin:0 !important}.duet-show-more .slotted-content{display:none}.duet-show-more.open .slotted-content{display:block}.duet-show-more .content:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-show-more.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-show-more.duet-theme-turva .content:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}';export{m as duet_show_more}
4
+ import{r as e,c as t,h as s,H as o,g as a}from"./p-3f5c74ac.js";import{i}from"./p-347269f4.js";import{c as n}from"./p-5e59e970.js";import{i as r}from"./p-a45e3f8b.js";import{a as h,g as l,c,d}from"./p-1e3f1ae9.js";import"./p-9c3c64b9.js";const m=class{constructor(s){e(this,s),this.duetToggle=t(this,"duetToggle",7),this.contentId=n("DuetShowMore"),this.buttonId=n("DuetShowMoreButton"),this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent),this.handleKeyDown=e=>{r(e)&&this.handleClick(e)},this.handleClick=e=>{e.preventDefault();const t=!this.open;this.open=t,t?(setTimeout((()=>{this.contentElement.focus()}),100),setTimeout((()=>{this.buttonAriaOpen=t}),500)):this.buttonAriaOpen=t,this.duetToggle.emit({component:"duet-show-more",originalEvent:e})},this.buttonAriaOpen=!1,this.theme="",this.language=h(),this.showMoreLabelDefaults={fi:"Näytä lisää",sv:"Visa mer",en:"Show more"},this.showMoreLabel=l(this.showMoreLabelDefaults),this.showLessLabelDefaults={fi:"Näytä vähemmän",sv:"Visa mindre",en:"Show less"},this.showLessLabel=l(this.showLessLabelDefaults),this.showMoreAccessibleLabelDefaults={fi:"Näytä lisää tästä aiheesta",sv:"Visa mer om detta ämne",en:"Show more about this subject"},this.showMoreAccessibleLabel=l(this.showMoreAccessibleLabelDefaults),this.showLessAccessibleLabelDefaults={fi:"Näytä vähemmän tästä aiheesta",sv:"Visa mindre om detta ämne",en:"Show less about this subject"},this.showLessAccessibleLabel=l(this.showLessAccessibleLabelDefaults),this.margin="auto",this.buttonMargin="auto",this.buttonPadding="auto",this.open=!1}componentWillLoad(){i(this),this.buttonAriaOpen=this.open}connectedCallback(){c(this,[{prop:"showMoreLabel",defaults:"showMoreLabelDefaults"},{prop:"showLessLabel",defaults:"showLessLabelDefaults"},{prop:"showMoreAccessibleLabel",defaults:"showMoreAccessibleLabelDefaults"},{prop:"showLessAccessibleLabel",defaults:"showLessAccessibleLabelDefaults"}])}disconnectedCallback(){d(this)}render(){return s(o,{key:"cf001cd88b6d046f5d38edb4415fea3e14621949"},s("div",{key:"7b3e3eb12202d72e88304e7168d92ec9775b1907",class:{"duet-show-more":!0,"duet-theme-turva":"turva"===this.theme,"duet-m-0":"none"===this.margin,open:this.open}},s("div",{key:"bc1f2d3525d4e5ce6b10770013aa6696822a71aa",ref:e=>this.contentElement=e,class:{content:!0},id:this.contentId,tabindex:this.open?"-1":""},s("div",{key:"b250102aac08de1604938717797afcfc7f28f624",class:{"slotted-content":!0}},s("slot",{key:"95f39f8e5abf0a79bf9f40cf34281013991cdd8b"}))),s("duet-button",{key:"b07f00cb1d84ba412a711f7f1f37e7e3269e1984",id:this.buttonId,variation:"plain","accessible-label":this.buttonAriaOpen?this.showLessAccessibleLabel:this.showMoreAccessibleLabel,"accessible-expanded":this.buttonAriaOpen?"true":"false","accessible-controls":this.contentId,accessiblePressed:this.isSafariBrowser?this.open:null,onClick:this.handleClick,onKeyDown:this.handleKeyDown,"icon-right":!0,icon:this.open?"action-arrow-up-small":"action-arrow-down-small","icon-size":"medium-small",size:"small",margin:this.buttonMargin,padding:this.buttonPadding,theme:"turva"===this.theme?"turva":"default"},s("span",{key:"33157363432909baaa57cb03d67c71c0de61b073"},this.open?this.showLessLabel:this.showMoreLabel))))}get element(){return a(this)}};m.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block}.duet-show-more{margin-bottom:16px !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;line-height:1.5;color:rgb(8, 42, 77)}.duet-show-more.duet-m-0{margin:0 !important}.duet-show-more .slotted-content{display:none}.duet-show-more.open .slotted-content{display:block}.duet-show-more .content:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-show-more.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-show-more.duet-theme-turva .content:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}:host(.duet-theme-turva2) .duet-show-more.duet-theme-turva{color:rgb(35, 46, 61)}';export{m as duet_show_more}