@duetds/components 10.0.0-alpha.2 → 10.0.0-alpha.4

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 (730) hide show
  1. package/hydrate/index.js +818 -323
  2. package/lib/cjs/{a11y-utils-8177cf00.js → a11y-utils-5ac97fdd.js} +1 -1
  3. package/lib/cjs/{app-globals-718a3704.js → app-globals-087a6bf3.js} +1 -1
  4. package/lib/cjs/duet-action-button.cjs.entry.js +4 -4
  5. package/lib/cjs/duet-alert.cjs.entry.js +3 -3
  6. package/lib/cjs/duet-badge.cjs.entry.js +3 -3
  7. package/lib/cjs/duet-banner.cjs.entry.js +4 -4
  8. package/lib/cjs/duet-breadcrumb.cjs.entry.js +6 -6
  9. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +6 -6
  10. package/lib/cjs/duet-button_2.cjs.entry.js +16 -13
  11. package/lib/cjs/duet-callout.cjs.entry.js +4 -4
  12. package/lib/cjs/duet-caption_4.cjs.entry.js +17 -47
  13. package/lib/cjs/duet-card.cjs.entry.js +10 -7
  14. package/lib/cjs/duet-checkbox.cjs.entry.js +4 -4
  15. package/lib/cjs/duet-checkmark.cjs.entry.js +3 -3
  16. package/lib/cjs/duet-chip_3.cjs.entry.js +9 -9
  17. package/lib/cjs/duet-choice_2.cjs.entry.js +11 -11
  18. package/lib/cjs/duet-collapsible.cjs.entry.js +4 -4
  19. package/lib/cjs/duet-combobox.cjs.entry.js +3 -3
  20. package/lib/cjs/duet-contact-card.cjs.entry.js +4 -4
  21. package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
  22. package/lib/cjs/duet-date-picker.cjs.entry.js +12 -7
  23. package/lib/cjs/duet-divider_2.cjs.entry.js +5 -5
  24. package/lib/cjs/duet-editable-table_3.cjs.entry.js +507 -14
  25. package/lib/cjs/duet-empty-state.cjs.entry.js +3 -3
  26. package/lib/cjs/duet-fieldset.cjs.entry.js +5 -5
  27. package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
  28. package/lib/cjs/duet-footer.cjs.entry.js +7 -7
  29. package/lib/cjs/duet-grid_2.cjs.entry.js +5 -5
  30. package/lib/cjs/duet-header_2.cjs.entry.js +4 -4
  31. package/lib/cjs/duet-hero.cjs.entry.js +8 -8
  32. package/lib/cjs/duet-icon.cjs.entry.js +6 -6
  33. package/lib/cjs/duet-input_2.cjs.entry.js +12 -12
  34. package/lib/cjs/duet-layout.cjs.entry.js +7 -7
  35. package/lib/cjs/duet-list_2.cjs.entry.js +4 -4
  36. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +3 -3
  37. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +3 -3
  38. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +5 -5
  39. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +6 -6
  40. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +3 -3
  41. package/lib/cjs/duet-menu-bar.cjs.entry.js +4 -4
  42. package/lib/cjs/duet-modal.cjs.entry.js +10 -10
  43. package/lib/cjs/duet-multiselect.cjs.entry.js +9 -9
  44. package/lib/cjs/duet-nav.cjs.entry.js +2 -2
  45. package/lib/cjs/duet-notification_2.cjs.entry.js +6 -6
  46. package/lib/cjs/duet-number-input.cjs.entry.js +5 -5
  47. package/lib/cjs/duet-overlay.cjs.entry.js +2 -2
  48. package/lib/cjs/duet-page-heading.cjs.entry.js +3 -3
  49. package/lib/cjs/duet-pagination_2.cjs.entry.js +17 -17
  50. package/lib/cjs/duet-progress.cjs.entry.js +2 -2
  51. package/lib/cjs/duet-promo-card.cjs.entry.js +6 -6
  52. package/lib/cjs/duet-radio_2.cjs.entry.js +6 -6
  53. package/lib/cjs/duet-range-slider.cjs.entry.js +6 -6
  54. package/lib/cjs/duet-scrollable_3.cjs.entry.js +50 -50
  55. package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
  56. package/lib/cjs/duet-select.cjs.entry.js +8 -8
  57. package/lib/cjs/duet-shaped-image.cjs.entry.js +3 -3
  58. package/lib/cjs/duet-show-more.cjs.entry.js +4 -4
  59. package/lib/cjs/duet-slideout-lang.cjs.entry.js +3 -3
  60. package/lib/cjs/duet-slideout-link.cjs.entry.js +3 -3
  61. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +5 -5
  62. package/lib/cjs/duet-slideout-panel.cjs.entry.js +12 -12
  63. package/lib/cjs/duet-slideout.cjs.entry.js +21 -18
  64. package/lib/cjs/duet-step_2.cjs.entry.js +4 -4
  65. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +3 -3
  66. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +5 -5
  67. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +5 -5
  68. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +2 -2
  69. package/lib/cjs/duet-submenu-bar.cjs.entry.js +6 -6
  70. package/lib/cjs/duet-textarea.cjs.entry.js +7 -7
  71. package/lib/cjs/duet-toggle.cjs.entry.js +5 -5
  72. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +3 -3
  73. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +5 -5
  74. package/lib/cjs/duet-toolbar-item.cjs.entry.js +7 -7
  75. package/lib/cjs/duet-toolbar-link.cjs.entry.js +3 -3
  76. package/lib/cjs/duet-toolbar.cjs.entry.js +3 -3
  77. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +6 -6
  78. package/lib/cjs/duet-tooltip.cjs.entry.js +3 -3
  79. package/lib/cjs/duet-tray.cjs.entry.js +5 -5
  80. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
  81. package/lib/cjs/duet-upload-item.cjs.entry.js +5 -5
  82. package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
  83. package/lib/cjs/duet.cjs.js +3 -3
  84. package/lib/cjs/{errorcodes.utils-4e8a9de4.js → errorcodes.utils-62e9ce86.js} +1 -1
  85. package/lib/cjs/{focus-utils-2a0030aa.js → focus-utils-d551f3ab.js} +1 -1
  86. package/lib/cjs/{index-21e67ab3.js → index-b496e711.js} +1 -1
  87. package/lib/cjs/{label-2abeac23.js → label-65ad1748.js} +1 -1
  88. package/lib/cjs/{language-utils-b5940c7b.js → language-utils-de99a5da.js} +1 -1
  89. package/lib/cjs/loader.cjs.js +3 -3
  90. package/lib/cjs/{slot-utils-382633cf.js → slot-utils-0a5c7c03.js} +1 -1
  91. package/lib/cjs/{token-utils-12717808.js → token-utils-5000595c.js} +1 -1
  92. package/lib/cjs/{tokens.module-46ddb47a.js → tokens.module-7c947029.js} +16 -0
  93. package/lib/collection/components/duet-badge/duet-badge.js +2 -2
  94. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
  95. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
  96. package/lib/collection/components/duet-button/duet-button.js +10 -7
  97. package/lib/collection/components/duet-callout/duet-callout.js +2 -2
  98. package/lib/collection/components/duet-caption/duet-caption.js +2 -2
  99. package/lib/collection/components/duet-card/duet-card.js +7 -4
  100. package/lib/collection/components/duet-checkbox/duet-checkbox.css +9 -4
  101. package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -6
  102. package/lib/collection/components/duet-chip/duet-chip.js +1 -1
  103. package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
  104. package/lib/collection/components/duet-choice/duet-choice.js +6 -6
  105. package/lib/collection/components/duet-choice-group/duet-choice-group.js +2 -2
  106. package/lib/collection/components/duet-collapsible/duet-collapsible.js +2 -2
  107. package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
  108. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
  109. package/lib/collection/components/duet-date-picker/duet-date-picker.js +7 -2
  110. package/lib/collection/components/duet-divider/duet-divider.js +1 -1
  111. package/lib/collection/components/duet-editable-table/duet-editable-table.js +3 -6
  112. package/lib/collection/components/duet-empty-state/duet-empty-state.js +2 -2
  113. package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
  114. package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
  115. package/lib/collection/components/duet-footer/duet-footer.js +4 -4
  116. package/lib/collection/components/duet-grid/duet-grid.js +2 -2
  117. package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
  118. package/lib/collection/components/duet-heading/duet-heading.js +2 -2
  119. package/lib/collection/components/duet-hero/duet-hero.js +7 -10
  120. package/lib/collection/components/duet-icon/duet-icon.js +3 -3
  121. package/lib/collection/components/duet-input/duet-input.js +6 -6
  122. package/lib/collection/components/duet-layout/duet-layout.js +5 -5
  123. package/lib/collection/components/duet-link/duet-link.css +42 -0
  124. package/lib/collection/components/duet-link/duet-link.js +5 -42
  125. package/lib/collection/components/duet-list/duet-list.js +1 -1
  126. package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
  127. package/lib/collection/components/duet-logo/duet-logo.js +1 -1
  128. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +2 -2
  129. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
  130. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
  131. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
  132. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
  133. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
  134. package/lib/collection/components/duet-modal/duet-modal.js +6 -6
  135. package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
  136. package/lib/collection/components/duet-nav/duet-nav.js +1 -1
  137. package/lib/collection/components/duet-notification/duet-notification.js +2 -2
  138. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +2 -2
  139. package/lib/collection/components/duet-number-input/duet-number-input.js +2 -2
  140. package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
  141. package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
  142. package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
  143. package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
  144. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +2 -2
  145. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
  146. package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
  147. package/lib/collection/components/duet-radio/duet-radio.js +3 -3
  148. package/lib/collection/components/duet-radio-group/duet-radio-group.js +1 -1
  149. package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
  150. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
  151. package/lib/collection/components/duet-scrollable/duet-scrollable.css +44 -1
  152. package/lib/collection/components/duet-scrollable/duet-scrollable.js +61 -8
  153. package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
  154. package/lib/collection/components/duet-select/duet-select.js +5 -5
  155. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
  156. package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
  157. package/lib/collection/components/duet-slideout/duet-slideout.js +15 -12
  158. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
  159. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
  160. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
  161. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
  162. package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
  163. package/lib/collection/components/duet-spinner/duet-spinner.js +2 -2
  164. package/lib/collection/components/duet-step/duet-step.js +2 -2
  165. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  166. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
  167. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
  168. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
  169. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
  170. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
  171. package/lib/collection/components/duet-tab/duet-tab.js +2 -2
  172. package/lib/collection/components/duet-tab-group/duet-tab-group.css +66 -56
  173. package/lib/collection/components/duet-tab-group/duet-tab-group.js +39 -40
  174. package/lib/collection/components/duet-table/duet-table-styles.js +499 -0
  175. package/lib/collection/components/duet-table/duet-table.js +5 -12
  176. package/lib/collection/components/duet-textarea/duet-textarea.js +3 -3
  177. package/lib/collection/components/duet-toggle/duet-toggle.js +2 -2
  178. package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
  179. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
  180. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
  181. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
  182. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
  183. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +2 -2
  184. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
  185. package/lib/collection/components/duet-tray/duet-tray.js +2 -2
  186. package/lib/collection/components/duet-upload/duet-upload.js +2 -2
  187. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
  188. package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
  189. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  190. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  191. package/lib/dist-custom-elements/duet-alert.js +1 -1
  192. package/lib/dist-custom-elements/duet-badge.js +1 -1
  193. package/lib/dist-custom-elements/duet-banner.js +4 -4
  194. package/lib/dist-custom-elements/duet-breadcrumb.js +7 -7
  195. package/lib/dist-custom-elements/duet-breadcrumbs.js +4 -4
  196. package/lib/dist-custom-elements/duet-button.js +1 -1
  197. package/lib/dist-custom-elements/duet-callout.js +4 -4
  198. package/lib/dist-custom-elements/duet-caption.js +1 -1
  199. package/lib/dist-custom-elements/duet-card.js +11 -8
  200. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  201. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  202. package/lib/dist-custom-elements/duet-chip.js +1 -1
  203. package/lib/dist-custom-elements/duet-choice-group.js +10 -10
  204. package/lib/dist-custom-elements/duet-choice.js +10 -10
  205. package/lib/dist-custom-elements/duet-collapsible.js +4 -4
  206. package/lib/dist-custom-elements/duet-combobox.js +14 -14
  207. package/lib/dist-custom-elements/duet-contact-card.js +10 -10
  208. package/lib/dist-custom-elements/duet-cookie-consent.js +7 -7
  209. package/lib/dist-custom-elements/duet-date-picker.js +19 -14
  210. package/lib/dist-custom-elements/duet-divider.js +1 -1
  211. package/lib/dist-custom-elements/duet-editable-table.js +9 -9
  212. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  213. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  214. package/lib/dist-custom-elements/duet-file-chooser.js +3 -3
  215. package/lib/dist-custom-elements/duet-footer.js +11 -11
  216. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  217. package/lib/dist-custom-elements/duet-grid.js +1 -1
  218. package/lib/dist-custom-elements/duet-header.js +8 -8
  219. package/lib/dist-custom-elements/duet-heading.js +1 -1
  220. package/lib/dist-custom-elements/duet-hero.js +14 -14
  221. package/lib/dist-custom-elements/duet-icon.js +1 -1
  222. package/lib/dist-custom-elements/duet-input.js +1 -1
  223. package/lib/dist-custom-elements/duet-label.js +2 -2
  224. package/lib/dist-custom-elements/duet-layout.js +6 -6
  225. package/lib/dist-custom-elements/duet-link.js +1 -1
  226. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  227. package/lib/dist-custom-elements/duet-list.js +1 -1
  228. package/lib/dist-custom-elements/duet-logo.js +1 -1
  229. package/lib/dist-custom-elements/duet-menu-bar-button.js +4 -4
  230. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +4 -4
  231. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +6 -6
  232. package/lib/dist-custom-elements/duet-menu-bar-item.js +4 -4
  233. package/lib/dist-custom-elements/duet-menu-bar-link.js +4 -4
  234. package/lib/dist-custom-elements/duet-menu-bar.js +4 -4
  235. package/lib/dist-custom-elements/duet-modal.js +14 -14
  236. package/lib/dist-custom-elements/duet-multiselect.js +13 -13
  237. package/lib/dist-custom-elements/duet-nav.js +2 -2
  238. package/lib/dist-custom-elements/duet-notification-drawer.js +6 -6
  239. package/lib/dist-custom-elements/duet-notification.js +4 -4
  240. package/lib/dist-custom-elements/duet-number-input.js +12 -12
  241. package/lib/dist-custom-elements/duet-overlay.js +1 -1
  242. package/lib/dist-custom-elements/duet-page-heading.js +5 -5
  243. package/lib/dist-custom-elements/duet-pagination.js +24 -24
  244. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  245. package/lib/dist-custom-elements/duet-popup-menu-item.js +1 -1
  246. package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
  247. package/lib/dist-custom-elements/duet-progress.js +1 -1
  248. package/lib/dist-custom-elements/duet-promo-card.js +6 -6
  249. package/lib/dist-custom-elements/duet-radio-group.js +9 -9
  250. package/lib/dist-custom-elements/duet-radio.js +4 -4
  251. package/lib/dist-custom-elements/duet-range-slider.js +4 -4
  252. package/lib/dist-custom-elements/duet-range-stepper.js +6 -6
  253. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  254. package/lib/dist-custom-elements/duet-section-layout.js +4 -4
  255. package/lib/dist-custom-elements/duet-select.js +1 -1
  256. package/lib/dist-custom-elements/duet-shaped-image.js +3 -3
  257. package/lib/dist-custom-elements/duet-show-more.js +1 -1
  258. package/lib/dist-custom-elements/duet-slideout-lang.js +3 -3
  259. package/lib/dist-custom-elements/duet-slideout-link.js +4 -4
  260. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +6 -6
  261. package/lib/dist-custom-elements/duet-slideout-panel.js +9 -9
  262. package/lib/dist-custom-elements/duet-slideout.js +19 -16
  263. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  264. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  265. package/lib/dist-custom-elements/duet-step.js +6 -6
  266. package/lib/dist-custom-elements/duet-stepper.js +3 -3
  267. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +4 -4
  268. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +6 -6
  269. package/lib/dist-custom-elements/duet-submenu-bar-item.js +3 -3
  270. package/lib/dist-custom-elements/duet-submenu-bar-link.js +3 -3
  271. package/lib/dist-custom-elements/duet-submenu-bar.js +8 -8
  272. package/lib/dist-custom-elements/duet-tab-group.js +40 -77
  273. package/lib/dist-custom-elements/duet-tab.js +4 -4
  274. package/lib/dist-custom-elements/duet-table.js +1 -1
  275. package/lib/dist-custom-elements/duet-textarea.js +12 -12
  276. package/lib/dist-custom-elements/duet-toggle.js +3 -3
  277. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +4 -4
  278. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +6 -6
  279. package/lib/dist-custom-elements/duet-toolbar-item.js +5 -5
  280. package/lib/dist-custom-elements/duet-toolbar-link.js +4 -4
  281. package/lib/dist-custom-elements/duet-toolbar.js +3 -3
  282. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  283. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  284. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  285. package/lib/dist-custom-elements/duet-tray.js +6 -6
  286. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  287. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  288. package/lib/dist-custom-elements/duet-upload.js +21 -21
  289. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  290. package/lib/dist-custom-elements/index.js +1 -1
  291. package/lib/dist-custom-elements/{p-88ed3495.js → p-0562173d.js} +2 -2
  292. package/lib/dist-custom-elements/{p-b4289ed0.js → p-06932c23.js} +5 -5
  293. package/lib/dist-custom-elements/{p-2c4fc6d3.js → p-09509e38.js} +3 -3
  294. package/lib/dist-custom-elements/{p-d77db171.js → p-188506d4.js} +1 -1
  295. package/lib/dist-custom-elements/{p-29782b53.js → p-19a763d1.js} +4 -4
  296. package/lib/dist-custom-elements/{p-4c1f4287.js → p-1f07910e.js} +5 -5
  297. package/lib/dist-custom-elements/{p-726ae243.js → p-3a8f6bf2.js} +3 -3
  298. package/lib/dist-custom-elements/{p-e4936fed.js → p-44f0c510.js} +12 -12
  299. package/lib/dist-custom-elements/{p-3b5e8904.js → p-48b9317e.js} +3 -3
  300. package/lib/dist-custom-elements/{p-c0a30d29.js → p-5c3b173b.js} +2 -2
  301. package/lib/dist-custom-elements/{p-f9994ef4.js → p-5ccb11e5.js} +4 -4
  302. package/lib/dist-custom-elements/{p-e5a55204.js → p-641af615.js} +12 -12
  303. package/lib/dist-custom-elements/{p-35ad7f77.js → p-69dae529.js} +3 -3
  304. package/lib/dist-custom-elements/{p-d5812145.js → p-7307e4ef.js} +2 -2
  305. package/lib/dist-custom-elements/p-77f4f1d9.js +642 -0
  306. package/lib/dist-custom-elements/{p-86f479be.js → p-7897b8a7.js} +4 -4
  307. package/lib/dist-custom-elements/{p-723b6358.js → p-82f4662e.js} +8 -39
  308. package/lib/dist-custom-elements/{p-1e88beeb.js → p-8b5ed6f5.js} +2 -2
  309. package/lib/dist-custom-elements/{p-5086d1a0.js → p-9263fe36.js} +2 -2
  310. package/lib/dist-custom-elements/{p-87b1c772.js → p-9a9bfcd7.js} +4 -4
  311. package/lib/dist-custom-elements/{p-a0f74881.js → p-9b7e188a.js} +7 -7
  312. package/lib/dist-custom-elements/{p-19172e2c.js → p-a6f6eeea.js} +4 -4
  313. package/lib/dist-custom-elements/{p-a9e09647.js → p-a95aa79f.js} +23 -14
  314. package/lib/dist-custom-elements/{p-6a285be8.js → p-b3ffc8ec.js} +2 -2
  315. package/lib/dist-custom-elements/{p-254d2993.js → p-b59bcc0d.js} +4 -4
  316. package/lib/dist-custom-elements/{p-a2b5c68e.js → p-b59d4ed8.js} +5 -5
  317. package/lib/dist-custom-elements/{p-3c7d413f.js → p-b605dc21.js} +3 -3
  318. package/lib/dist-custom-elements/p-bc8e5d5f.js +154 -0
  319. package/lib/dist-custom-elements/{p-fca5b65b.js → p-c5766108.js} +3 -3
  320. package/lib/dist-custom-elements/{p-a1e17113.js → p-ca6c91da.js} +15 -12
  321. package/lib/dist-custom-elements/{p-4c179c1e.js → p-cea716f7.js} +1 -1
  322. package/lib/dist-custom-elements/{p-d2a5148f.js → p-ceace5a5.js} +3 -3
  323. package/lib/dist-custom-elements/{p-64139e5c.js → p-d3f11b87.js} +3 -3
  324. package/lib/dist-custom-elements/{p-1df834b1.js → p-d46e8086.js} +4 -4
  325. package/lib/dist-custom-elements/{p-55bbb3b6.js → p-e13570ea.js} +15 -15
  326. package/lib/dist-custom-elements/{p-e774334b.js → p-f08fd5ce.js} +4 -4
  327. package/lib/dist-custom-elements/{p-56d9b926.js → p-f459d4e1.js} +3 -3
  328. package/lib/dist-custom-elements/{p-1f7ae97d.js → p-fa0f5c3a.js} +6 -6
  329. package/lib/dist-custom-elements/{p-7f69e1e3.js → p-fbf7b0a3.js} +5 -5
  330. package/lib/dist-custom-elements/{p-c81244d9.js → p-fc1fca67.js} +3 -3
  331. package/lib/duet/duet.esm.js +1 -1
  332. package/lib/duet/duet.js +1 -1
  333. package/lib/duet/{p-7f5c1da2.entry.js → p-000e222f.entry.js} +1 -1
  334. package/lib/duet/{p-1183d305.system.entry.js → p-0252f72e.system.entry.js} +1 -1
  335. package/lib/duet/p-02ed65bb.entry.js +4 -0
  336. package/lib/duet/p-0591a60a.entry.js +4 -0
  337. package/lib/duet/{p-8ad8b9a8.entry.js → p-065b1525.entry.js} +1 -1
  338. package/lib/duet/{p-b865116a.entry.js → p-07ee8a5a.entry.js} +1 -1
  339. package/lib/duet/{p-eca1904d.system.entry.js → p-094a08cd.system.entry.js} +1 -1
  340. package/lib/duet/{p-9fcce08c.system.entry.js → p-0ca126ad.system.entry.js} +2 -2
  341. package/lib/duet/p-0d7da85a.js +4 -0
  342. package/lib/duet/{p-8d462e3a.system.entry.js → p-0ede7f02.system.entry.js} +1 -1
  343. package/lib/duet/{p-95836be2.system.entry.js → p-0ee00147.system.entry.js} +1 -1
  344. package/lib/duet/{p-105f1a75.entry.js → p-0f6cce6b.entry.js} +1 -1
  345. package/lib/duet/p-1098a40f.system.js +4 -0
  346. package/lib/duet/{p-8b397c1a.entry.js → p-13dc711a.entry.js} +1 -1
  347. package/lib/duet/{p-d3c304b5.system.js → p-149b677a.system.js} +1 -1
  348. package/lib/duet/{p-f78099b6.entry.js → p-150dbbea.entry.js} +1 -1
  349. package/lib/duet/{p-4f527f43.entry.js → p-169b720a.entry.js} +1 -1
  350. package/lib/duet/{p-bc6e219f.system.entry.js → p-16d57da2.system.entry.js} +1 -1
  351. package/lib/duet/{p-7fe5e0dc.system.entry.js → p-1721c077.system.entry.js} +1 -1
  352. package/lib/duet/p-19119130.entry.js +4 -0
  353. package/lib/duet/p-1a570ee1.system.entry.js +4 -0
  354. package/lib/duet/p-1ac41e38.entry.js +4 -0
  355. package/lib/duet/{p-435a217b.entry.js → p-1bd826bf.entry.js} +1 -1
  356. package/lib/duet/{p-e5cb7fc9.entry.js → p-1e0cebdf.entry.js} +1 -1
  357. package/lib/duet/p-1e5e00f9.entry.js +4 -0
  358. package/lib/duet/{p-7606ec6c.system.entry.js → p-1feb6b08.system.entry.js} +1 -1
  359. package/lib/duet/{p-d85741b1.entry.js → p-20fd92d9.entry.js} +1 -1
  360. package/lib/duet/{p-376a0839.system.entry.js → p-23e0edcb.system.entry.js} +1 -1
  361. package/lib/duet/{p-705c5299.entry.js → p-23f70a40.entry.js} +1 -1
  362. package/lib/duet/{p-319e77d6.entry.js → p-25953772.entry.js} +1 -1
  363. package/lib/duet/{p-c6617f16.entry.js → p-26807a70.entry.js} +1 -1
  364. package/lib/duet/{p-8f31572d.system.entry.js → p-268864c3.system.entry.js} +1 -1
  365. package/lib/duet/{p-032fbfa1.system.entry.js → p-2bd1ad09.system.entry.js} +1 -1
  366. package/lib/duet/{p-02200dcc.entry.js → p-2dcfcae6.entry.js} +1 -1
  367. package/lib/duet/{p-a19244e5.system.js → p-2e0eb8a4.system.js} +1 -1
  368. package/lib/duet/{p-3b3c341e.system.entry.js → p-3170270d.system.entry.js} +1 -1
  369. package/lib/duet/{p-605e69c8.system.js → p-32a09a31.system.js} +1 -1
  370. package/lib/duet/{p-76d69a18.system.js → p-35a1ffee.system.js} +1 -1
  371. package/lib/duet/{p-df19c239.system.entry.js → p-3a1eeb98.system.entry.js} +1 -1
  372. package/lib/duet/{p-f2f1e0e9.entry.js → p-3a76a6b7.entry.js} +1 -1
  373. package/lib/duet/{p-ca691c4a.entry.js → p-3b807b7b.entry.js} +1 -1
  374. package/lib/duet/{p-a437992b.system.entry.js → p-3d6d7bad.system.entry.js} +1 -1
  375. package/lib/duet/{p-14bae734.system.entry.js → p-3d96fc7c.system.entry.js} +1 -1
  376. package/lib/duet/p-3e39a663.system.entry.js +4 -0
  377. package/lib/duet/{p-3b8dbebe.system.entry.js → p-3ee6543a.system.entry.js} +1 -1
  378. package/lib/duet/{p-97ec270c.entry.js → p-3f4ee42c.entry.js} +1 -1
  379. package/lib/duet/{p-eb0d15a0.system.entry.js → p-410f94e9.system.entry.js} +1 -1
  380. package/lib/duet/p-477a0ad7.system.entry.js +4 -0
  381. package/lib/duet/{p-e2daf94c.entry.js → p-4816c631.entry.js} +1 -1
  382. package/lib/duet/{p-d5dfa70d.system.entry.js → p-4a96a1cc.system.entry.js} +1 -1
  383. package/lib/duet/{p-a23eec0f.entry.js → p-4ac45e30.entry.js} +1 -1
  384. package/lib/duet/{p-0937f800.system.entry.js → p-4ba72133.system.entry.js} +1 -1
  385. package/lib/duet/{p-066b94ca.entry.js → p-4c30f1b5.entry.js} +1 -1
  386. package/lib/duet/{p-d62da84e.system.entry.js → p-4cd00958.system.entry.js} +1 -1
  387. package/lib/duet/{p-cbbf6d6a.system.js → p-4cff3036.system.js} +1 -1
  388. package/lib/duet/{p-abec198c.system.entry.js → p-4dcf7aab.system.entry.js} +1 -1
  389. package/lib/duet/{p-2437b4cb.js → p-51b2f340.js} +1 -1
  390. package/lib/duet/{p-2fa7ecef.entry.js → p-51b8e39a.entry.js} +1 -1
  391. package/lib/duet/{p-67dd83cc.entry.js → p-529bb649.entry.js} +1 -1
  392. package/lib/duet/{p-3d794db6.system.entry.js → p-539ee8e9.system.entry.js} +1 -1
  393. package/lib/duet/{p-0458abd0.system.entry.js → p-53b490bf.system.entry.js} +1 -1
  394. package/lib/duet/{p-265fdd97.system.entry.js → p-5428f3f5.system.entry.js} +1 -1
  395. package/lib/duet/{p-68fd5f9a.entry.js → p-547f2129.entry.js} +1 -1
  396. package/lib/duet/{p-f43e134e.system.entry.js → p-54a3643a.system.entry.js} +1 -1
  397. package/lib/duet/p-55309597.system.entry.js +4 -0
  398. package/lib/duet/{p-2af9e483.entry.js → p-57930d52.entry.js} +1 -1
  399. package/lib/duet/{p-6f285100.system.entry.js → p-57ab6af5.system.entry.js} +1 -1
  400. package/lib/duet/{p-3cd80f60.system.entry.js → p-58ea29ca.system.entry.js} +1 -1
  401. package/lib/duet/{p-27a43e79.entry.js → p-59435e55.entry.js} +1 -1
  402. package/lib/duet/{p-f8b6380d.entry.js → p-5acb3f21.entry.js} +1 -1
  403. package/lib/duet/{p-ed6a110f.system.entry.js → p-5ca36d56.system.entry.js} +1 -1
  404. package/lib/duet/{p-c7ecec29.entry.js → p-5dea17eb.entry.js} +1 -1
  405. package/lib/duet/{p-07200cbb.entry.js → p-5e234865.entry.js} +1 -1
  406. package/lib/duet/{p-3cd483ab.entry.js → p-5e780477.entry.js} +1 -1
  407. package/lib/duet/{p-502bf069.entry.js → p-5ebe5e38.entry.js} +1 -1
  408. package/lib/duet/{p-2034ac6f.system.entry.js → p-602843ca.system.entry.js} +1 -1
  409. package/lib/duet/{p-3ab3a8c6.entry.js → p-60d2344e.entry.js} +1 -1
  410. package/lib/duet/{p-58f6b887.system.entry.js → p-645cfb68.system.entry.js} +2 -2
  411. package/lib/duet/{p-d7d86092.js → p-6817c980.js} +1 -1
  412. package/lib/duet/{p-2af3edb3.system.entry.js → p-68209f39.system.entry.js} +2 -2
  413. package/lib/duet/{p-639def3e.system.entry.js → p-6898b482.system.entry.js} +1 -1
  414. package/lib/duet/p-6a263519.entry.js +4 -0
  415. package/lib/duet/{p-042576d6.system.entry.js → p-6a30f4a1.system.entry.js} +1 -1
  416. package/lib/duet/{p-e95e650d.system.entry.js → p-6c10d77d.system.entry.js} +1 -1
  417. package/lib/duet/{p-7813d124.system.entry.js → p-6e72268d.system.entry.js} +1 -1
  418. package/lib/duet/{p-947ceeb6.system.entry.js → p-6fe2f15f.system.entry.js} +1 -1
  419. package/lib/duet/p-6fe8172a.entry.js +4 -0
  420. package/lib/duet/p-735aecee.system.entry.js +4 -0
  421. package/lib/duet/{p-cef3ec26.entry.js → p-74f62fcc.entry.js} +1 -1
  422. package/lib/duet/{p-38908608.system.entry.js → p-751e58ce.system.entry.js} +1 -1
  423. package/lib/duet/{p-8ceddf7a.entry.js → p-76a9c7a5.entry.js} +1 -1
  424. package/lib/duet/{p-1d016525.system.entry.js → p-76ce944a.system.entry.js} +1 -1
  425. package/lib/duet/{p-a51f3a0b.entry.js → p-78368247.entry.js} +1 -1
  426. package/lib/duet/p-79bdb03d.entry.js +4 -0
  427. package/lib/duet/{p-0ecb70e0.system.entry.js → p-79e58ba1.system.entry.js} +2 -2
  428. package/lib/duet/{p-8abb0984.js → p-7a75bff7.js} +1 -1
  429. package/lib/duet/p-7b47d427.entry.js +4 -0
  430. package/lib/duet/{p-86176559.entry.js → p-7ee6ca05.entry.js} +1 -1
  431. package/lib/duet/{p-87e96a18.system.entry.js → p-80d8a60b.system.entry.js} +1 -1
  432. package/lib/duet/{p-1e17463d.system.js → p-81835239.system.js} +1 -1
  433. package/lib/duet/p-85e7cc53.entry.js +4 -0
  434. package/lib/duet/{p-d41543d3.entry.js → p-863b96d9.entry.js} +1 -1
  435. package/lib/duet/{p-f0fa9c9a.system.entry.js → p-885bdca8.system.entry.js} +1 -1
  436. package/lib/duet/{p-fdb3098f.system.entry.js → p-88f8dcab.system.entry.js} +1 -1
  437. package/lib/duet/{p-c551216e.system.entry.js → p-8bee9cd3.system.entry.js} +1 -1
  438. package/lib/duet/{p-c6995496.system.entry.js → p-8c0a6ad4.system.entry.js} +1 -1
  439. package/lib/duet/{p-ab4c886f.system.entry.js → p-8c7b6794.system.entry.js} +1 -1
  440. package/lib/duet/{p-7acabaa7.system.js → p-8e540cf9.system.js} +1 -1
  441. package/lib/duet/{p-84bfc619.system.entry.js → p-8f2cac21.system.entry.js} +1 -1
  442. package/lib/duet/{p-5e6b91f6.entry.js → p-8fe4cb7b.entry.js} +1 -1
  443. package/lib/duet/{p-e797e2f4.system.entry.js → p-915b2385.system.entry.js} +1 -1
  444. package/lib/duet/{p-b0b00dad.system.entry.js → p-942d73b3.system.entry.js} +1 -1
  445. package/lib/duet/{p-03af0f0d.system.entry.js → p-97406378.system.entry.js} +1 -1
  446. package/lib/duet/{p-a2b93336.system.entry.js → p-99c527c4.system.entry.js} +1 -1
  447. package/lib/duet/{p-77e70fca.entry.js → p-99d8e4b1.entry.js} +1 -1
  448. package/lib/duet/{p-772dbed5.entry.js → p-9a3a1129.entry.js} +1 -1
  449. package/lib/duet/p-9bcd8d52.system.js +4 -0
  450. package/lib/duet/{p-27ed5ca7.system.entry.js → p-9c9e3bf3.system.entry.js} +1 -1
  451. package/lib/duet/{p-bed279f6.entry.js → p-9cc7444d.entry.js} +1 -1
  452. package/lib/duet/{p-63016bc3.entry.js → p-9cdabda3.entry.js} +1 -1
  453. package/lib/duet/p-9d6cf60e.entry.js +4 -0
  454. package/lib/duet/{p-1da5945a.system.entry.js → p-9e014353.system.entry.js} +1 -1
  455. package/lib/duet/p-a030ecff.entry.js +4 -0
  456. package/lib/duet/{p-53366e23.entry.js → p-a49aa1e4.entry.js} +1 -1
  457. package/lib/duet/{p-e7558f6c.entry.js → p-a6ca2484.entry.js} +1 -1
  458. package/lib/duet/{p-8ff30ce6.system.entry.js → p-abb0f090.system.entry.js} +1 -1
  459. package/lib/duet/{p-8440bd4f.entry.js → p-af086dc4.entry.js} +1 -1
  460. package/lib/duet/{p-3b3432e2.system.entry.js → p-b065a169.system.entry.js} +1 -1
  461. package/lib/duet/p-b4f3e81a.js +4 -0
  462. package/lib/duet/{p-38685b43.system.entry.js → p-b5ce0b66.system.entry.js} +1 -1
  463. package/lib/duet/{p-d04dbf1f.system.entry.js → p-b6689aeb.system.entry.js} +1 -1
  464. package/lib/duet/{p-ffe6fbbb.entry.js → p-b7247c4a.entry.js} +1 -1
  465. package/lib/duet/p-b909d55e.system.entry.js +4 -0
  466. package/lib/duet/p-ba03d034.system.js +4 -0
  467. package/lib/duet/{p-ed17957c.system.entry.js → p-c31aff06.system.entry.js} +2 -2
  468. package/lib/duet/{p-3987eed8.system.entry.js → p-c4b27218.system.entry.js} +1 -1
  469. package/lib/duet/{p-807bf6da.system.entry.js → p-c4cd0199.system.entry.js} +1 -1
  470. package/lib/duet/{p-2b6a7397.js → p-c553a49a.js} +1 -1
  471. package/lib/duet/{p-77b21edc.entry.js → p-c59bc2db.entry.js} +1 -1
  472. package/lib/duet/{p-70651da4.system.entry.js → p-c64eb22a.system.entry.js} +1 -1
  473. package/lib/duet/{p-e283e9fe.entry.js → p-c86a2ae1.entry.js} +1 -1
  474. package/lib/duet/p-c8bd1ccb.entry.js +4 -0
  475. package/lib/duet/{p-4eb70cc2.system.entry.js → p-c90242c5.system.entry.js} +1 -1
  476. package/lib/duet/{p-10c530d1.js → p-cc67e773.js} +1 -1
  477. package/lib/duet/{p-dc4b5372.system.entry.js → p-cc70a233.system.entry.js} +1 -1
  478. package/lib/duet/{p-ffd1290e.system.entry.js → p-cc8d3ed0.system.entry.js} +1 -1
  479. package/lib/duet/{p-bf5c8102.entry.js → p-cd9f1743.entry.js} +1 -1
  480. package/lib/duet/{p-17aa3a20.entry.js → p-cfa7d3f2.entry.js} +1 -1
  481. package/lib/duet/{p-4f212753.entry.js → p-d07788a4.entry.js} +1 -1
  482. package/lib/duet/{p-328d9919.system.entry.js → p-d146e39b.system.entry.js} +1 -1
  483. package/lib/duet/{p-7cce22af.system.js → p-d41e4088.system.js} +1 -1
  484. package/lib/duet/{p-824d882f.entry.js → p-d4ccd7cd.entry.js} +1 -1
  485. package/lib/duet/{p-7512d569.entry.js → p-d71ee4e2.entry.js} +1 -1
  486. package/lib/duet/{p-48618d75.entry.js → p-d8e196af.entry.js} +1 -1
  487. package/lib/duet/{p-7a25f374.entry.js → p-dd7fb771.entry.js} +1 -1
  488. package/lib/duet/{p-b0d79ffe.entry.js → p-de4bf9cc.entry.js} +1 -1
  489. package/lib/duet/{p-88fe57e8.system.entry.js → p-e033daf1.system.entry.js} +1 -1
  490. package/lib/duet/{p-084ab781.entry.js → p-e0f5fed4.entry.js} +1 -1
  491. package/lib/duet/{p-d42b2af0.entry.js → p-e2c7e2d3.entry.js} +1 -1
  492. package/lib/duet/{p-7b8b93c3.entry.js → p-e385f91d.entry.js} +1 -1
  493. package/lib/duet/{p-472b3fbd.entry.js → p-e395172c.entry.js} +1 -1
  494. package/lib/duet/{p-26d1dc6c.system.entry.js → p-e4b4cb3c.system.entry.js} +1 -1
  495. package/lib/duet/{p-4bd72541.entry.js → p-e57690a5.entry.js} +1 -1
  496. package/lib/duet/{p-3b281171.entry.js → p-e7596a00.entry.js} +1 -1
  497. package/lib/duet/{p-8520e026.system.entry.js → p-ea4c67d7.system.entry.js} +1 -1
  498. package/lib/duet/{p-bbeafbd0.entry.js → p-eb00f684.entry.js} +1 -1
  499. package/lib/duet/p-ec87c2c0.entry.js +4 -0
  500. package/lib/duet/{p-eca03d5e.js → p-ecf89776.js} +1 -1
  501. package/lib/duet/p-f0d3cbf0.entry.js +4 -0
  502. package/lib/duet/{p-8c9eb171.js → p-f2462d98.js} +1 -1
  503. package/lib/duet/{p-1fd3ec9e.system.entry.js → p-f3e11ae2.system.entry.js} +1 -1
  504. package/lib/duet/{p-020be412.system.entry.js → p-f4cd0368.system.entry.js} +1 -1
  505. package/lib/duet/{p-274473a3.system.entry.js → p-f609ba36.system.entry.js} +1 -1
  506. package/lib/duet/{p-20213e01.system.entry.js → p-f64fe362.system.entry.js} +1 -1
  507. package/lib/duet/{p-009c7325.entry.js → p-f691b978.entry.js} +1 -1
  508. package/lib/duet/{p-bbb56267.entry.js → p-f8956559.entry.js} +1 -1
  509. package/lib/duet/{p-d62b6ca1.system.entry.js → p-fb8e8fbf.system.entry.js} +2 -2
  510. package/lib/duet/{p-2eae4a0b.js → p-fbc347fd.js} +1 -1
  511. package/lib/duet/{p-9dda3449.system.entry.js → p-fcd4f841.system.entry.js} +1 -1
  512. package/lib/esm/{a11y-utils-8fc393f6.js → a11y-utils-c52606bf.js} +1 -1
  513. package/lib/esm/{app-globals-00959ca9.js → app-globals-18e70157.js} +1 -1
  514. package/lib/esm/duet-action-button.entry.js +4 -4
  515. package/lib/esm/duet-alert.entry.js +3 -3
  516. package/lib/esm/duet-badge.entry.js +3 -3
  517. package/lib/esm/duet-banner.entry.js +4 -4
  518. package/lib/esm/duet-breadcrumb.entry.js +6 -6
  519. package/lib/esm/duet-breadcrumbs.entry.js +6 -6
  520. package/lib/esm/duet-button_2.entry.js +16 -13
  521. package/lib/esm/duet-callout.entry.js +4 -4
  522. package/lib/esm/duet-caption_4.entry.js +17 -47
  523. package/lib/esm/duet-card.entry.js +10 -7
  524. package/lib/esm/duet-checkbox.entry.js +4 -4
  525. package/lib/esm/duet-checkmark.entry.js +3 -3
  526. package/lib/esm/duet-chip_3.entry.js +9 -9
  527. package/lib/esm/duet-choice_2.entry.js +11 -11
  528. package/lib/esm/duet-collapsible.entry.js +4 -4
  529. package/lib/esm/duet-combobox.entry.js +3 -3
  530. package/lib/esm/duet-contact-card.entry.js +4 -4
  531. package/lib/esm/duet-cookie-consent.entry.js +2 -2
  532. package/lib/esm/duet-date-picker.entry.js +12 -7
  533. package/lib/esm/duet-divider_2.entry.js +5 -5
  534. package/lib/esm/duet-editable-table_3.entry.js +507 -14
  535. package/lib/esm/duet-empty-state.entry.js +3 -3
  536. package/lib/esm/duet-fieldset.entry.js +5 -5
  537. package/lib/esm/duet-file-chooser.entry.js +2 -2
  538. package/lib/esm/duet-footer.entry.js +7 -7
  539. package/lib/esm/duet-grid_2.entry.js +5 -5
  540. package/lib/esm/duet-header_2.entry.js +4 -4
  541. package/lib/esm/duet-hero.entry.js +8 -8
  542. package/lib/esm/duet-icon.entry.js +6 -6
  543. package/lib/esm/duet-input_2.entry.js +12 -12
  544. package/lib/esm/duet-layout.entry.js +7 -7
  545. package/lib/esm/duet-list_2.entry.js +4 -4
  546. package/lib/esm/duet-menu-bar-button.entry.js +3 -3
  547. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +3 -3
  548. package/lib/esm/duet-menu-bar-dropdown.entry.js +5 -5
  549. package/lib/esm/duet-menu-bar-item.entry.js +6 -6
  550. package/lib/esm/duet-menu-bar-link.entry.js +3 -3
  551. package/lib/esm/duet-menu-bar.entry.js +4 -4
  552. package/lib/esm/duet-modal.entry.js +10 -10
  553. package/lib/esm/duet-multiselect.entry.js +9 -9
  554. package/lib/esm/duet-nav.entry.js +2 -2
  555. package/lib/esm/duet-notification_2.entry.js +6 -6
  556. package/lib/esm/duet-number-input.entry.js +5 -5
  557. package/lib/esm/duet-overlay.entry.js +2 -2
  558. package/lib/esm/duet-page-heading.entry.js +3 -3
  559. package/lib/esm/duet-pagination_2.entry.js +17 -17
  560. package/lib/esm/duet-progress.entry.js +2 -2
  561. package/lib/esm/duet-promo-card.entry.js +6 -6
  562. package/lib/esm/duet-radio_2.entry.js +6 -6
  563. package/lib/esm/duet-range-slider.entry.js +6 -6
  564. package/lib/esm/duet-scrollable_3.entry.js +50 -50
  565. package/lib/esm/duet-section-layout.entry.js +4 -4
  566. package/lib/esm/duet-select.entry.js +8 -8
  567. package/lib/esm/duet-shaped-image.entry.js +3 -3
  568. package/lib/esm/duet-show-more.entry.js +4 -4
  569. package/lib/esm/duet-slideout-lang.entry.js +3 -3
  570. package/lib/esm/duet-slideout-link.entry.js +3 -3
  571. package/lib/esm/duet-slideout-panel-dropdown.entry.js +5 -5
  572. package/lib/esm/duet-slideout-panel.entry.js +12 -12
  573. package/lib/esm/duet-slideout.entry.js +21 -18
  574. package/lib/esm/duet-step_2.entry.js +4 -4
  575. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +3 -3
  576. package/lib/esm/duet-submenu-bar-dropdown.entry.js +5 -5
  577. package/lib/esm/duet-submenu-bar-item.entry.js +5 -5
  578. package/lib/esm/duet-submenu-bar-link.entry.js +2 -2
  579. package/lib/esm/duet-submenu-bar.entry.js +6 -6
  580. package/lib/esm/duet-textarea.entry.js +7 -7
  581. package/lib/esm/duet-toggle.entry.js +5 -5
  582. package/lib/esm/duet-toolbar-dropdown-link.entry.js +3 -3
  583. package/lib/esm/duet-toolbar-dropdown.entry.js +5 -5
  584. package/lib/esm/duet-toolbar-item.entry.js +7 -7
  585. package/lib/esm/duet-toolbar-link.entry.js +3 -3
  586. package/lib/esm/duet-toolbar.entry.js +3 -3
  587. package/lib/esm/duet-tooltip-button_2.entry.js +6 -6
  588. package/lib/esm/duet-tooltip.entry.js +3 -3
  589. package/lib/esm/duet-tray.entry.js +5 -5
  590. package/lib/esm/duet-upload-aria-status.entry.js +2 -2
  591. package/lib/esm/duet-upload-item.entry.js +5 -5
  592. package/lib/esm/duet-visually-hidden.entry.js +2 -2
  593. package/lib/esm/duet.js +4 -4
  594. package/lib/esm/{errorcodes.utils-d9431251.js → errorcodes.utils-e12abdc5.js} +1 -1
  595. package/lib/esm/{focus-utils-adcd9463.js → focus-utils-4226b57a.js} +1 -1
  596. package/lib/esm/{index-1d0b7c66.js → index-4b4e4ec8.js} +1 -1
  597. package/lib/esm/{label-ce262202.js → label-a30d1f04.js} +1 -1
  598. package/lib/esm/{language-utils-14969cef.js → language-utils-1b413a6b.js} +1 -1
  599. package/lib/esm/loader.js +4 -4
  600. package/lib/esm/{slot-utils-4e5ed4eb.js → slot-utils-ae4dc467.js} +1 -1
  601. package/lib/esm/{token-utils-a32eb753.js → token-utils-b9ba8c5e.js} +1 -1
  602. package/lib/esm/{tokens.module-a746651a.js → tokens.module-2d02f5ff.js} +1 -1
  603. package/lib/esm-es5/{a11y-utils-8fc393f6.js → a11y-utils-c52606bf.js} +1 -1
  604. package/lib/esm-es5/{app-globals-00959ca9.js → app-globals-18e70157.js} +1 -1
  605. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  606. package/lib/esm-es5/duet-alert.entry.js +1 -1
  607. package/lib/esm-es5/duet-badge.entry.js +1 -1
  608. package/lib/esm-es5/duet-banner.entry.js +1 -1
  609. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  610. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  611. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  612. package/lib/esm-es5/duet-callout.entry.js +1 -1
  613. package/lib/esm-es5/duet-caption_4.entry.js +2 -2
  614. package/lib/esm-es5/duet-card.entry.js +2 -2
  615. package/lib/esm-es5/duet-checkbox.entry.js +2 -2
  616. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  617. package/lib/esm-es5/duet-chip_3.entry.js +1 -1
  618. package/lib/esm-es5/duet-choice_2.entry.js +2 -2
  619. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  620. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  621. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  622. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  623. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  624. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  625. package/lib/esm-es5/duet-editable-table_3.entry.js +2 -2
  626. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  627. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  628. package/lib/esm-es5/duet-file-chooser.entry.js +2 -2
  629. package/lib/esm-es5/duet-footer.entry.js +1 -1
  630. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  631. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  632. package/lib/esm-es5/duet-hero.entry.js +2 -2
  633. package/lib/esm-es5/duet-icon.entry.js +1 -1
  634. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  635. package/lib/esm-es5/duet-layout.entry.js +1 -1
  636. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  637. package/lib/esm-es5/duet-menu-bar-button.entry.js +2 -2
  638. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  639. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  640. package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
  641. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  642. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  643. package/lib/esm-es5/duet-modal.entry.js +1 -1
  644. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  645. package/lib/esm-es5/duet-nav.entry.js +1 -1
  646. package/lib/esm-es5/duet-notification_2.entry.js +2 -2
  647. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  648. package/lib/esm-es5/duet-overlay.entry.js +1 -1
  649. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  650. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  651. package/lib/esm-es5/duet-progress.entry.js +1 -1
  652. package/lib/esm-es5/duet-promo-card.entry.js +1 -1
  653. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  654. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  655. package/lib/esm-es5/duet-scrollable_3.entry.js +2 -2
  656. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  657. package/lib/esm-es5/duet-select.entry.js +1 -1
  658. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  659. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  660. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  661. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  662. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +2 -2
  663. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  664. package/lib/esm-es5/duet-slideout.entry.js +2 -2
  665. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  666. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  667. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  668. package/lib/esm-es5/duet-submenu-bar-item.entry.js +2 -2
  669. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  670. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  671. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  672. package/lib/esm-es5/duet-toggle.entry.js +2 -2
  673. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  674. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  675. package/lib/esm-es5/duet-toolbar-item.entry.js +2 -2
  676. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  677. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  678. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  679. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  680. package/lib/esm-es5/duet-tray.entry.js +1 -1
  681. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  682. package/lib/esm-es5/duet-upload-item.entry.js +2 -2
  683. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  684. package/lib/esm-es5/duet.js +1 -1
  685. package/lib/esm-es5/{errorcodes.utils-d9431251.js → errorcodes.utils-e12abdc5.js} +1 -1
  686. package/lib/esm-es5/focus-utils-4226b57a.js +4 -0
  687. package/lib/esm-es5/{index-1d0b7c66.js → index-4b4e4ec8.js} +1 -1
  688. package/lib/esm-es5/{label-ce262202.js → label-a30d1f04.js} +1 -1
  689. package/lib/esm-es5/{language-utils-14969cef.js → language-utils-1b413a6b.js} +1 -1
  690. package/lib/esm-es5/loader.js +1 -1
  691. package/lib/esm-es5/{slot-utils-4e5ed4eb.js → slot-utils-ae4dc467.js} +1 -1
  692. package/lib/esm-es5/{token-utils-a32eb753.js → token-utils-b9ba8c5e.js} +1 -1
  693. package/lib/esm-es5/{tokens.module-a746651a.js → tokens.module-2d02f5ff.js} +1 -1
  694. package/lib/types/components/duet-hero/duet-hero.d.ts +1 -2
  695. package/lib/types/components/duet-link/duet-link.d.ts +0 -7
  696. package/lib/types/components/duet-scrollable/duet-scrollable.d.ts +8 -0
  697. package/lib/types/components/duet-tab-group/duet-tab-group.d.ts +9 -4
  698. package/lib/types/components/duet-table/duet-table-styles.d.ts +1 -0
  699. package/lib/types/components.d.ts +12 -6
  700. package/package.json +3 -3
  701. package/lib/collection/components/duet-table/duet-table.css +0 -365
  702. package/lib/dist-custom-elements/p-5fbb6039.js +0 -154
  703. package/lib/dist-custom-elements/p-ffa44070.js +0 -148
  704. package/lib/duet/p-0c4aa4d0.system.entry.js +0 -4
  705. package/lib/duet/p-1004af75.js +0 -4
  706. package/lib/duet/p-150e5f1b.entry.js +0 -4
  707. package/lib/duet/p-23376e2a.entry.js +0 -4
  708. package/lib/duet/p-29672737.entry.js +0 -4
  709. package/lib/duet/p-2c9a6e05.entry.js +0 -4
  710. package/lib/duet/p-3f97122e.system.entry.js +0 -4
  711. package/lib/duet/p-4289f34a.entry.js +0 -4
  712. package/lib/duet/p-50ca9099.system.entry.js +0 -4
  713. package/lib/duet/p-5db9497a.entry.js +0 -4
  714. package/lib/duet/p-61a93486.system.entry.js +0 -4
  715. package/lib/duet/p-6c25b6a4.system.entry.js +0 -4
  716. package/lib/duet/p-716865fe.entry.js +0 -4
  717. package/lib/duet/p-7af3fb35.entry.js +0 -4
  718. package/lib/duet/p-806adaa3.entry.js +0 -4
  719. package/lib/duet/p-851e1a0f.entry.js +0 -4
  720. package/lib/duet/p-88d8265d.entry.js +0 -4
  721. package/lib/duet/p-965e597c.system.js +0 -4
  722. package/lib/duet/p-a48acf0f.system.entry.js +0 -4
  723. package/lib/duet/p-c1b1801d.entry.js +0 -4
  724. package/lib/duet/p-cdb6c612.entry.js +0 -4
  725. package/lib/duet/p-d3aa7a74.entry.js +0 -4
  726. package/lib/duet/p-dfef2cbe.entry.js +0 -4
  727. package/lib/duet/p-e1c881da.system.js +0 -4
  728. package/lib/duet/p-ef731dfb.system.js +0 -4
  729. package/lib/duet/p-fd78f61a.js +0 -4
  730. package/lib/esm-es5/focus-utils-adcd9463.js +0 -4
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(t,e,n,i){function u(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,r){function s(t){try{o(i.next(t))}catch(t){r(t)}}function a(t){try{o(i["throw"](t))}catch(t){r(t)}}function o(t){t.done?n(t.value):u(t.value).then(s,a)}o((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,u,r,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return o([t,e])}}function o(a){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(n=0)),n)try{if(i=1,u&&(r=a[0]&2?u["return"]:a[0]?u["throw"]||((r=u["return"])&&r.call(u),0):u.next)&&!(r=r.call(u,a[1])).done)return r;if(u=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;u=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t];u=0}finally{i=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register(["./p-a19244e5.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-34d7dd10.system.js","./p-1e17463d.system.js","./p-7cce22af.system.js","./p-98636086.system.js"],(function(t){"use strict";var e,n,i,u,r,s,a,o,d,l,h,c,b,f,p,m,v,g,y,w,x;return{setters:[function(t){e=t.r;n=t.c;i=t.h;u=t.H;r=t.g},function(t){s=t.i},function(t){a=t.c},function(t){o=t.a;d=t.b;l=t.c;h=t.d;c=t.e;b=t.s;f=t.u},function(t){p=t.a;m=t.b;v=t.g;g=t.c;y=t.d},function(t){w=t.c;x=t.p},function(){}],execute:function(){var k={title:"action-add",tags:"action add plus",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M12 24a.75.75 0 0 1-.75-.75v-10.5H.75a.75.75 0 0 1 0-1.5h10.5V.75a.75.75 0 0 1 1.5 0v10.5h10.5a.75.75 0 0 1 0 1.5h-10.5v10.5A.75.75 0 0 1 12 24z"/></svg>'};var A={title:"action-subtract",tags:"action subtract minus remove delete cancel",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.75 12.788a.75.75 0 0 1 0-1.5h22.5a.75.75 0 0 1 0 1.5z"/></svg>'};function D(t,e){var n;if(typeof t==="string"){if(t===""){return null}var i=t.replace("−","-").replace("‐","-").replace("−","-").replace("–","-").replace("—","-");if(e){i=N(i,e,false)}i=i.replace(/\s+/g,"");n=parseFloat(i)}if(typeof t==="number"){n=parseFloat(String(t))}if(!isNaN(Number(n))){return Number(n)}if(t===null||t===undefined){return null}throw new Error("Invalid value passed to SafeParseFloat")}function N(t,e,n){if(n===void 0){n=false}var i;var u=new Intl.NumberFormat(e).format(1/2).replace(/[0-9]/g,"");var r=new Intl.NumberFormat("en-US").format(1/2).replace(/[0-9]/g,"");var s=new Intl.NumberFormat(e).format(1e3).replace(/[0-9]/g,"");var a=new Intl.NumberFormat("en-US").format(1e3).replace(/[0-9]/g,"");i=t.replace(u,"DECIMALSEPARATOR");if(n){i=i.replace(s,"THOUSANDSEPARATOR")}else{i=i.replace(s,"")}i=i.replace("DECIMALSEPARATOR",r);i=i.replace("THOUSANDSEPARATOR",a);return i}var S=function(t,e){return Math.round(t/e)*e};var E=function(t,e,n){return Math.min(Math.max(t,e),n)};var _='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;line-height:1.25;text-align:left;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}.duet-number-container{position:relative;width:100%}.duet-number-buttons{-webkit-user-select:none;user-select:none;position:absolute;top:1px;right:1px;z-index:200;width:96px;height:calc(100% - 2px)}.duet-number-buttons .duet-number-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:50%;height:100%;text-align:center;cursor:pointer;background:transparent;-webkit-appearance:none;appearance:none}.duet-number-buttons .duet-number-button[aria-disabled=true],.duet-number-buttons .duet-number-button:disabled{pointer-events:none}.duet-number-buttons .duet-number-button[aria-disabled=true] duet-icon,.duet-number-buttons .duet-number-button:disabled duet-icon{opacity:0.4}.duet-number-buttons .duet-number-button:active duet-icon{transform:translateY(1px)}.duet-number-buttons .duet-number-button:focus{outline:0}:host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus{z-index:2;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva :host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus{box-shadow:0 0 0 2px #171c3a !important}.duet-number-buttons .duet-number-button:first-of-type{border-left:1px solid rgb(181, 198, 208)}.duet-number-buttons .duet-number-button:first-of-type::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:"";background:linear-gradient(to left, rgba(181, 198, 208, 0.2) 0%, rgba(181, 198, 208, 0.2) 1px, rgba(181, 198, 208, 0.1) 1px, rgba(181, 198, 208, 0) 100%)}.duet-number-buttons .duet-number-button:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}.duet-number-buttons .duet-number-button:last-of-type::before{position:absolute;top:20%;left:0;width:1px;height:60%;content:"";background:rgb(212, 223, 229)}:host(.duet-theme-turva) .duet-number-buttons .duet-number-button:first-of-type::before{background:linear-gradient(to left, rgba(199, 202, 207, 0.2) 0%, rgba(199, 202, 207, 0.2) 1px, rgba(199, 202, 207, 0.1) 1px, rgba(199, 202, 207, 0) 100%)}:host(.duet-theme-turva) .duet-number-buttons .duet-number-button:last-of-type::before{background:rgb(222, 224, 228)}';var z=_;var C=t("duet_number_input",function(){function t(t){var i=this;e(this,t);this.duetChange=n(this,"duetChange",3);this.duetInput=n(this,"duetInput",3);this.duetBlur=n(this,"duetBlur",7);this.duetFocus=n(this,"duetFocus",7);this.inputId=a("DuetInput");this.proxyId=a("DuetInput");this.handleFocus=function(){i.focusedValue=i.value};this.handleKeyDown=function(t){if(o(t)||d(t)){i.add(t)}else if(l(t)||h(t)){i.subtract(t)}else if(c(t)){i.clearValue(t)}};this.handleChange=function(t){t.stopPropagation();var e=t.target;if(e&&e.value){try{var n=D(e.value,i.locale);if(isNaN(n)||n==null){n=i.min||0}i.setValue(n);i.duetInput.emit({component:"duet-number-input",originalEvent:t,value:D(i.value,i.locale).toString(),valueAsNumber:n})}catch(n){if(e.value!=="-"){i.clearValue(t)}i.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}}else{i.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}};this.handleBlur=function(t){var e=t.target;if(!e){return}if(e.value){try{var n=D(e.value,i.locale);if(i.rounding){n=S(n,i.step)}n=E(n,i.min,i.max);if(n!==D(i.value,i.locale)||n!==D(i.focusedValue,i.locale)){i.setValue(n);i.emitChange(t)}}catch(e){i.emitNull(t)}}else{i.emitNull(t)}};this.emitChange=function(t){var e=D(i.value,i.locale);i.duetChange.emit({originalEvent:t,value:e.toString(),valueAsNumber:e,component:"duet-number-input"})};this.emitNull=function(t){i.duetChange.emit({originalEvent:t,value:null,valueAsNumber:null,component:"duet-number-input"})};this.localizeValue=function(t){return t.toLocaleString(i.locale)};this.setValue=function(t){i.value=i.localizeValue(t);i.duetInputElement.value="".concat(i.value," ").concat(i.unit)};this.add=function(t){if(t){t.preventDefault()}var e=D(i.value,i.locale);if(e===i.max){return}var n=e==null?i.min:e+i.step;if(n%i.step!==0){var u=n%i.step;n-=u}var r=E(n,i.min,i.max);i.value=i.localizeValue(r);i.emitChange(t)};this.subtract=function(t){if(t){t.preventDefault()}var e=D(i.value,i.locale);if(e===i.min){return}var n=e-i.step;if(n%i.step!==0){var u=i.step-n%i.step;n+=u}n=E(n,i.min,i.max);i.value=i.localizeValue(n);i.emitChange(t)};this.language=p();this.locale=m(this.language).locale;this.unit=m(this.language).money;this.focusedValue=undefined;this.accessibleActiveDescendant=undefined;this.accessibleControls=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.accessibleLiveDefaults={fi:"{current} euroa valittuna",en:"{current} euros selected",sv:"{current} euro valt"};this.accessibleLive=v(this.accessibleLiveDefaults,this.language);this.accessibleLiveEnabled=true;this.accessibleAddDefaults={fi:"Lisää summaan",en:"Add to the amount",sv:"Lägg till beloppet"};this.accessibleAdd=v(this.accessibleAddDefaults,this.language);this.accessibleSubtractDefaults={fi:"Vähennä summasta",en:"Subtract from the amount",sv:"Dra från beloppet"};this.accessibleSubtract=v(this.accessibleSubtractDefaults,this.language);this.theme="";this.margin="auto";this.expand=false;this.identifier=undefined;this.min=0;this.labelDefaults={fi:"Nimilappu",en:"Label",sv:"Etikett"};this.label=v(this.labelDefaults,this.language);this.labelHidden=false;this.max=1e6;this.name=undefined;this.error="";this.tooltip="";this.step=5e3;this.rounding=true;this.role=undefined;this.disabled=false;this.required=false;this.value=undefined}t.prototype.componentWillLoad=function(){s(this);if(this.value){this.value=this.localizeValue(D(this.value,this.locale))}w(this.element,"tooltip","duet-tooltip",1,true)};t.prototype.connectedCallback=function(){g(this,[{prop:"accessibleLive",defaults:"accessibleLiveDefaults"},{prop:"accessibleAdd",defaults:"accessibleAddDefaults"},{prop:"accessibleSubtract",defaults:"accessibleSubtractDefaults"},{prop:"label",defaults:"labelDefaults"}]);b(this)};t.prototype.disconnectedCallback=function(){y(this);f(this)};t.prototype.componentDidRender=function(){x(this.element,this.proxyId,this.name,this.value?"".concat(this.value," ").concat(this.unit):"",this.required)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.duetInputElement.setFocus(t);return[2]}))}))};t.prototype.getValueAsNumber=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=D(this.value,this.locale);return[2,this.value===undefined||this.value===null||isNaN(t)?null:t]}))}))};t.prototype.clearValue=function(t){this.duetInputElement.value="";if(this.value!==null){this.value=null;this.emitNull(t)}};t.prototype.formatAnnouncement=function(){var t=!!this.value?D(this.value,this.locale):null;if(t==null){return""}return this.accessibleLive.replace("{current}",t.toString(10))};t.prototype.render=function(){var t=this;var e=this.identifier||this.inputId;var n="".concat(this.localizeValue(this.max)," ").concat(this.unit).length;var r=!!this.value?D(this.value,this.locale):null;return i(u,{key:"27634a68033872b85ed0ac1d2baa3ab694680d41",class:{"duet-theme-turva":this.theme==="turva","duet-expand":this.expand,"duet-m-0":this.margin==="none"}},i("div",{key:"6827f8b2e63c45d4c1a102af1cc451806e22c6b2",class:"duet-number-container"},i("duet-input",{key:"6ebc92848603fb489852d878a1d26aa75401527d",ref:function(e){return t.duetInputElement=e},onDuetChange:function(e){return t.handleChange(e)},onDuetFocus:this.handleFocus,onDuetBlur:function(e){return t.handleBlur(e)},onKeyDown:function(e){return t.handleKeyDown(e)},label:this.label,value:this.value?"".concat(this.value," ").concat(this.unit):"",error:this.error,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":r!=null?r:"",maxlength:n,name:this.name,component:"number",required:this.required,disabled:this.disabled,role:this.role,labelHidden:this.labelHidden,tooltip:this.tooltip,identifier:e,theme:this.theme,margin:"none",expand:true,numericKeyboard:true,autoComplete:"off",type:"text",accessibleActiveDescendant:this.accessibleActiveDescendant,accessibleLabelledBy:this.accessibleLabelledBy,accessibleDescription:this.accessibleDescription,accessibleDetails:this.accessibleDetails,accessibleControls:this.accessibleControls,accessibleOwns:this.accessibleOwns,accessibleDescribedBy:this.accessibleDescribedBy},i("slot",{key:"8d5588224b8d90b55c49aedf839923eccff05d0f",name:"tooltip"}),i("div",{key:"26ecdb715139c53e42ad0365ddde6b73b66ba525",class:{"duet-number-buttons":true,"duet-no-label":this.labelHidden}},i("button",{key:"9ee76518bfa2851ddb3c195b1f2ae44b55b81a94",disabled:this.disabled,"aria-disabled":r==null||r===this.min?"true":"false",class:"duet-number-button duet-number-button-subtract",onClick:this.subtract,type:"button"},i("duet-visually-hidden",{key:"af735c2a71d3ec8f158bad31f424f58eda96b371"},this.accessibleSubtract," ",this.step),i("duet-icon",{key:"315b5a60f0c2930f1ebdbf54fa61b6f00ca2a2cc",icon:A.svg,size:"small",margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary"})),i("button",{key:"9b0f29334057be1214d1ed30a1cf192f5a40bca2",disabled:this.disabled,"aria-disabled":r===this.max?"true":"false",class:"duet-number-button duet-number-button-add",onClick:this.add,type:"button"},i("duet-visually-hidden",{key:"dad3dcf4e65c811e03147889494f664b875f0b95"},this.accessibleAdd," ",this.step),i("duet-icon",{key:"d9662ee9fd8d82605e4ee26c0b00826500674b0a",icon:k.svg,size:"small",margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary"})))),this.accessibleLiveEnabled&&i("duet-visually-hidden",{key:"974d023f255a72941f249af920c4ffbff4786b37","aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement())))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());C.style=z}}}));
4
+ */System.register(["./p-2e0eb8a4.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-34d7dd10.system.js","./p-81835239.system.js","./p-d41e4088.system.js","./p-98636086.system.js"],(function(t){"use strict";var e,n,i,u,r,s,a,o,d,c,l,h,b,f,p,m,v,g,y,w,x;return{setters:[function(t){e=t.r;n=t.c;i=t.h;u=t.H;r=t.g},function(t){s=t.i},function(t){a=t.c},function(t){o=t.a;d=t.b;c=t.c;l=t.d;h=t.e;b=t.s;f=t.u},function(t){p=t.a;m=t.b;v=t.g;g=t.c;y=t.d},function(t){w=t.c;x=t.p},function(){}],execute:function(){var k={title:"action-add",tags:"action add plus",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M12 24a.75.75 0 0 1-.75-.75v-10.5H.75a.75.75 0 0 1 0-1.5h10.5V.75a.75.75 0 0 1 1.5 0v10.5h10.5a.75.75 0 0 1 0 1.5h-10.5v10.5A.75.75 0 0 1 12 24z"/></svg>'};var A={title:"action-subtract",tags:"action subtract minus remove delete cancel",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.75 12.788a.75.75 0 0 1 0-1.5h22.5a.75.75 0 0 1 0 1.5z"/></svg>'};function D(t,e){var n;if(typeof t==="string"){if(t===""){return null}var i=t.replace("−","-").replace("‐","-").replace("−","-").replace("–","-").replace("—","-");if(e){i=N(i,e,false)}i=i.replace(/\s+/g,"");n=parseFloat(i)}if(typeof t==="number"){n=parseFloat(String(t))}if(!isNaN(Number(n))){return Number(n)}if(t===null||t===undefined){return null}throw new Error("Invalid value passed to SafeParseFloat")}function N(t,e,n){if(n===void 0){n=false}var i;var u=new Intl.NumberFormat(e).format(1/2).replace(/[0-9]/g,"");var r=new Intl.NumberFormat("en-US").format(1/2).replace(/[0-9]/g,"");var s=new Intl.NumberFormat(e).format(1e3).replace(/[0-9]/g,"");var a=new Intl.NumberFormat("en-US").format(1e3).replace(/[0-9]/g,"");i=t.replace(u,"DECIMALSEPARATOR");if(n){i=i.replace(s,"THOUSANDSEPARATOR")}else{i=i.replace(s,"")}i=i.replace("DECIMALSEPARATOR",r);i=i.replace("THOUSANDSEPARATOR",a);return i}var S=function(t,e){return Math.round(t/e)*e};var E=function(t,e,n){return Math.min(Math.max(t,e),n)};var _='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;line-height:1.25;text-align:left;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}.duet-number-container{position:relative;width:100%}.duet-number-buttons{-webkit-user-select:none;user-select:none;position:absolute;top:1px;right:1px;z-index:200;width:96px;height:calc(100% - 2px)}.duet-number-buttons .duet-number-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:50%;height:100%;text-align:center;cursor:pointer;background:transparent;-webkit-appearance:none;appearance:none}.duet-number-buttons .duet-number-button[aria-disabled=true],.duet-number-buttons .duet-number-button:disabled{pointer-events:none}.duet-number-buttons .duet-number-button[aria-disabled=true] duet-icon,.duet-number-buttons .duet-number-button:disabled duet-icon{opacity:0.4}.duet-number-buttons .duet-number-button:active duet-icon{transform:translateY(1px)}.duet-number-buttons .duet-number-button:focus{outline:0}:host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus{z-index:2;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva :host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus{box-shadow:0 0 0 2px #171c3a !important}.duet-number-buttons .duet-number-button:first-of-type{border-left:1px solid rgb(181, 198, 208)}.duet-number-buttons .duet-number-button:first-of-type::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:"";background:linear-gradient(to left, rgba(181, 198, 208, 0.2) 0%, rgba(181, 198, 208, 0.2) 1px, rgba(181, 198, 208, 0.1) 1px, rgba(181, 198, 208, 0) 100%)}.duet-number-buttons .duet-number-button:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}.duet-number-buttons .duet-number-button:last-of-type::before{position:absolute;top:20%;left:0;width:1px;height:60%;content:"";background:rgb(212, 223, 229)}:host(.duet-theme-turva) .duet-number-buttons .duet-number-button:first-of-type::before{background:linear-gradient(to left, rgba(199, 202, 207, 0.2) 0%, rgba(199, 202, 207, 0.2) 1px, rgba(199, 202, 207, 0.1) 1px, rgba(199, 202, 207, 0) 100%)}:host(.duet-theme-turva) .duet-number-buttons .duet-number-button:last-of-type::before{background:rgb(222, 224, 228)}';var z=_;var C=t("duet_number_input",function(){function t(t){var i=this;e(this,t);this.duetChange=n(this,"duetChange",3);this.duetInput=n(this,"duetInput",3);this.duetBlur=n(this,"duetBlur",7);this.duetFocus=n(this,"duetFocus",7);this.inputId=a("DuetInput");this.proxyId=a("DuetInput");this.handleFocus=function(){i.focusedValue=i.value};this.handleKeyDown=function(t){if(o(t)||d(t)){i.add(t)}else if(c(t)||l(t)){i.subtract(t)}else if(h(t)){i.clearValue(t)}};this.handleChange=function(t){t.stopPropagation();var e=t.target;if(e&&e.value){try{var n=D(e.value,i.locale);if(isNaN(n)||n==null){n=i.min||0}i.setValue(n);i.duetInput.emit({component:"duet-number-input",originalEvent:t,value:D(i.value,i.locale).toString(),valueAsNumber:n})}catch(n){if(e.value!=="-"){i.clearValue(t)}i.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}}else{i.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}};this.handleBlur=function(t){var e=t.target;if(!e){return}if(e.value){try{var n=D(e.value,i.locale);if(i.rounding){n=S(n,i.step)}n=E(n,i.min,i.max);if(n!==D(i.value,i.locale)||n!==D(i.focusedValue,i.locale)){i.setValue(n);i.emitChange(t)}}catch(e){i.emitNull(t)}}else{i.emitNull(t)}};this.emitChange=function(t){var e=D(i.value,i.locale);i.duetChange.emit({originalEvent:t,value:e.toString(),valueAsNumber:e,component:"duet-number-input"})};this.emitNull=function(t){i.duetChange.emit({originalEvent:t,value:null,valueAsNumber:null,component:"duet-number-input"})};this.localizeValue=function(t){return t.toLocaleString(i.locale)};this.setValue=function(t){i.value=i.localizeValue(t);i.duetInputElement.value="".concat(i.value," ").concat(i.unit)};this.add=function(t){if(t){t.preventDefault()}var e=D(i.value,i.locale);if(e===i.max){return}var n=e==null?i.min:e+i.step;if(n%i.step!==0){var u=n%i.step;n-=u}var r=E(n,i.min,i.max);i.value=i.localizeValue(r);i.emitChange(t)};this.subtract=function(t){if(t){t.preventDefault()}var e=D(i.value,i.locale);if(e===i.min){return}var n=e-i.step;if(n%i.step!==0){var u=i.step-n%i.step;n+=u}n=E(n,i.min,i.max);i.value=i.localizeValue(n);i.emitChange(t)};this.language=p();this.locale=m(this.language).locale;this.unit=m(this.language).money;this.focusedValue=undefined;this.accessibleActiveDescendant=undefined;this.accessibleControls=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.accessibleLiveDefaults={fi:"{current} euroa valittuna",en:"{current} euros selected",sv:"{current} euro valt"};this.accessibleLive=v(this.accessibleLiveDefaults,this.language);this.accessibleLiveEnabled=true;this.accessibleAddDefaults={fi:"Lisää summaan",en:"Add to the amount",sv:"Lägg till beloppet"};this.accessibleAdd=v(this.accessibleAddDefaults,this.language);this.accessibleSubtractDefaults={fi:"Vähennä summasta",en:"Subtract from the amount",sv:"Dra från beloppet"};this.accessibleSubtract=v(this.accessibleSubtractDefaults,this.language);this.theme="";this.margin="auto";this.expand=false;this.identifier=undefined;this.min=0;this.labelDefaults={fi:"Nimilappu",en:"Label",sv:"Etikett"};this.label=v(this.labelDefaults,this.language);this.labelHidden=false;this.max=1e6;this.name=undefined;this.error="";this.tooltip="";this.step=5e3;this.rounding=true;this.role=undefined;this.disabled=false;this.required=false;this.value=undefined}t.prototype.componentWillLoad=function(){s(this);if(this.value){this.value=this.localizeValue(D(this.value,this.locale))}w(this.element,"tooltip","duet-tooltip",1,true)};t.prototype.connectedCallback=function(){g(this,[{prop:"accessibleLive",defaults:"accessibleLiveDefaults"},{prop:"accessibleAdd",defaults:"accessibleAddDefaults"},{prop:"accessibleSubtract",defaults:"accessibleSubtractDefaults"},{prop:"label",defaults:"labelDefaults"}]);b(this)};t.prototype.disconnectedCallback=function(){y(this);f(this)};t.prototype.componentDidRender=function(){x(this.element,this.proxyId,this.name,this.value?"".concat(this.value," ").concat(this.unit):"",this.required)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.duetInputElement.setFocus(t);return[2]}))}))};t.prototype.getValueAsNumber=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=D(this.value,this.locale);return[2,this.value===undefined||this.value===null||isNaN(t)?null:t]}))}))};t.prototype.clearValue=function(t){this.duetInputElement.value="";if(this.value!==null){this.value=null;this.emitNull(t)}};t.prototype.formatAnnouncement=function(){var t=!!this.value?D(this.value,this.locale):null;if(t==null){return""}return this.accessibleLive.replace("{current}",t.toString(10))};t.prototype.render=function(){var t=this;var e=this.identifier||this.inputId;var n="".concat(this.localizeValue(this.max)," ").concat(this.unit).length;var r=!!this.value?D(this.value,this.locale):null;return i(u,{key:"3da7c782ce445861599dc9a836d50866b7950bef",class:{"duet-theme-turva":this.theme==="turva","duet-expand":this.expand,"duet-m-0":this.margin==="none"}},i("div",{key:"a42d62f6fbf766e1d8ca3289cedad8c0da51683d",class:"duet-number-container"},i("duet-input",{key:"802ffebd0db05445c6644fac9a8cd77a36a2df32",ref:function(e){return t.duetInputElement=e},onDuetChange:function(e){return t.handleChange(e)},onDuetFocus:this.handleFocus,onDuetBlur:function(e){return t.handleBlur(e)},onKeyDown:function(e){return t.handleKeyDown(e)},label:this.label,value:this.value?"".concat(this.value," ").concat(this.unit):"",error:this.error,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":r!=null?r:"",maxlength:n,name:this.name,component:"number",required:this.required,disabled:this.disabled,role:this.role,labelHidden:this.labelHidden,tooltip:this.tooltip,identifier:e,theme:this.theme,margin:"none",expand:true,numericKeyboard:true,autoComplete:"off",type:"text",accessibleActiveDescendant:this.accessibleActiveDescendant,accessibleLabelledBy:this.accessibleLabelledBy,accessibleDescription:this.accessibleDescription,accessibleDetails:this.accessibleDetails,accessibleControls:this.accessibleControls,accessibleOwns:this.accessibleOwns,accessibleDescribedBy:this.accessibleDescribedBy},i("slot",{key:"e724d4f60cb5ae0847b2280ff46141601b922955",name:"tooltip"}),i("div",{key:"bddebaeb4d842b216f3c5ab57d27398c9072ecba",class:{"duet-number-buttons":true,"duet-no-label":this.labelHidden}},i("button",{key:"9c0809c67e56135776e7f7730a11f5f2da4fabd8",disabled:this.disabled,"aria-disabled":r==null||r===this.min?"true":"false",class:"duet-number-button duet-number-button-subtract",onClick:this.subtract,type:"button"},i("duet-visually-hidden",{key:"d8771c771af162cf210be52b909ff79a6e0b7e49"},this.accessibleSubtract," ",this.step),i("duet-icon",{key:"35c87ddeaf36725a3c5502711615eae4f15e4329",icon:A.svg,size:"small",margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary"})),i("button",{key:"8988e8d80684cdd0d3a561e3e418d5bdf799d0de",disabled:this.disabled,"aria-disabled":r===this.max?"true":"false",class:"duet-number-button duet-number-button-add",onClick:this.add,type:"button"},i("duet-visually-hidden",{key:"163ab6c2ccdc27ec467ff3acdb2ece1b789c57d7"},this.accessibleAdd," ",this.step),i("duet-icon",{key:"da61399d82dcb9263d33dd636279857685fda111",icon:k.svg,size:"small",margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary"})))),this.accessibleLiveEnabled&&i("duet-visually-hidden",{key:"4370e4cd37e5acc790bec55999ec64bfcd5b2467","aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement())))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());C.style=z}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,h as a,H as t,g as n}from"./p-8abb0984.js";import{i as o}from"./p-aaa7a7bd.js";import{a as r,c as i,d as s,g as d}from"./p-2437b4cb.js";import"./p-9c3c64b9.js";const c=class{constructor(a){e(this,a),this.chooseLangObject={en:"Choose language",fi:"Valitse kieli",sv:"Välj språk"},this.language=r(),this.theme=""}componentWillLoad(){o(this)}connectedCallback(){i(this)}disconnectedCallback(){s(this)}render(){const e=d(this.chooseLangObject);return a(t,{key:"d163f56230650efc540cf21892239905271a775e"},a("div",{key:"7b1d95d36da23db34a90055407a7f307ab0d4ffa",class:"duet-slideout-lang",role:"group","aria-label":e},a("duet-icon",{key:"07ed0679705221e14ba5e20d0db83a5b3073a7cf",name:"navigation-language",margin:"none",color:"secondary"}),a("slot",{key:"e847d0a2bf84e7099988d6bc9f6e59dfa0ba99d7"})))}get element(){return n(this)}};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}.duet-slideout-lang{display:flex;gap:20px;align-items:center;justify-content:flex-start;width:min-content;white-space:nowrap}::slotted(*){position:relative}::slotted(:not(:first-child)){padding-right:0;padding-left:0.5rem}::slotted(:not(:last-child))::after{position:absolute;top:25%;right:-16px;width:2px;height:50%;content:"";background:rgb(8, 42, 77)}.duet-theme-turva ::slotted(:not(:last-child))::after{background:rgb(23, 28, 58)}';export{c as duet_slideout_lang}
4
+ import{r as e,h as a,H as t,g as n}from"./p-7a75bff7.js";import{i as o}from"./p-aaa7a7bd.js";import{a as r,c as i,d as s,g as d}from"./p-51b2f340.js";import"./p-9c3c64b9.js";const c=class{constructor(a){e(this,a),this.chooseLangObject={en:"Choose language",fi:"Valitse kieli",sv:"Välj språk"},this.language=r(),this.theme=""}componentWillLoad(){o(this)}connectedCallback(){i(this)}disconnectedCallback(){s(this)}render(){const e=d(this.chooseLangObject);return a(t,{key:"2e3786b9379cc0898afe8242d6261f7f638ee055"},a("div",{key:"d732dcd99d2623c69b4ef90da80250d92a181345",class:"duet-slideout-lang",role:"group","aria-label":e},a("duet-icon",{key:"40bcd65531b9bf0b184b4839edb93999bb1baf8f",name:"navigation-language",margin:"none",color:"secondary"}),a("slot",{key:"80aba1c3733a7372e2d923efae445d312ae77eef"})))}get element(){return n(this)}};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}.duet-slideout-lang{display:flex;gap:20px;align-items:center;justify-content:flex-start;width:min-content;white-space:nowrap}::slotted(*){position:relative}::slotted(:not(:first-child)){padding-right:0;padding-left:0.5rem}::slotted(:not(:last-child))::after{position:absolute;top:25%;right:-16px;width:2px;height:50%;content:"";background:rgb(8, 42, 77)}.duet-theme-turva ::slotted(:not(:last-child))::after{background:rgb(23, 28, 58)}';export{c as duet_slideout_lang}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- System.register(["./p-a19244e5.system.js","./p-e216bea4.system.js"],(function(e){"use strict";var t,i,a,n,o;return{setters:[function(e){t=e.r;i=e.h;a=e.H;n=e.g},function(e){o=e.i}],execute:function(){var s='*,*::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 span::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:0.5rem;align-items:center;justify-content:space-between;width:100%}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)}';var r=s;var l=e("duet_slideout_link",function(){function e(e){t(this,e);this.accessibleLabel=undefined;this.theme="";this.targetLanguage=undefined;this.active=false;this.href="#";this.icon=undefined;this.size="inherit";this.caret=false;this.menuItem=false}e.prototype.componentWillLoad=function(){o(this)};e.prototype.render=function(){var e;return i(a,{key:"dbcb8bf6b8c65743fb716cbdda625cf4ea5162f8"},i("a",{key:"542c9910bad183af64eff3b965ef1cec19b4ac7b",class:(e={"duet-slideout-link":true,"duet-theme-turva":this.theme==="turva",active:this.active},e[this.size]=true,e),href:this.href,"aria-current":this.active?"true":"false",lang:this.targetLanguage,hreflang:this.targetLanguage,"aria-label":this.accessibleLabel},this.icon&&i("duet-icon",{key:"c192e191c1323e742022c48651a75c16017b4837",name:this.icon,color:"secondary",size:this.menuItem?"x-small":"medium",margin:"none"}),i("div",{key:"b0e214e358e524f13a884c78e1d78118b171e3ed",class:"label"},i("span",{key:"af8697663031dc729bc98cf7c15cd2d58a03f861"},i("slot",{key:"84b1b365ac8fabcbf3c6451a8aa51caa18010aa9"}),i("slot",{key:"82b78e911b41cfd441fb9eab798093f6b726c993",name:"description"})),this.caret&&i("duet-icon",{key:"ee835e2bd7427531239041e03b19ed4335b8ad74",name:"action-arrow-right",color:"secondary",size:"x-small",margin:"none"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());l.style=r}}}));
4
+ System.register(["./p-2e0eb8a4.system.js","./p-e216bea4.system.js"],(function(e){"use strict";var t,i,a,n,o;return{setters:[function(e){t=e.r;i=e.h;a=e.H;n=e.g},function(e){o=e.i}],execute:function(){var s='*,*::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 span::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:0.5rem;align-items:center;justify-content:space-between;width:100%}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)}';var r=s;var l=e("duet_slideout_link",function(){function e(e){t(this,e);this.accessibleLabel=undefined;this.theme="";this.targetLanguage=undefined;this.active=false;this.href="#";this.icon=undefined;this.size="inherit";this.caret=false;this.menuItem=false}e.prototype.componentWillLoad=function(){o(this)};e.prototype.render=function(){var e;return i(a,{key:"a029203320f713bb35536f330eb844dd30a6f642"},i("a",{key:"a4330b8ae522bc1f1730777fbb3d2238617cb8bd",class:(e={"duet-slideout-link":true,"duet-theme-turva":this.theme==="turva",active:this.active},e[this.size]=true,e),href:this.href,"aria-current":this.active?"true":"false",lang:this.targetLanguage,hreflang:this.targetLanguage,"aria-label":this.accessibleLabel},this.icon&&i("duet-icon",{key:"2f6f44567d1d0977a30ccad6fac3c15d6f324ba2",name:this.icon,color:"secondary",size:this.menuItem?"x-small":"medium",margin:"none"}),i("div",{key:"10cdd450e97db14094ee2650b9d15fee0d11b8ac",class:"label"},i("span",{key:"a7819f3cb48b547fd6a033b048148fb0a0b3d1dc"},i("slot",{key:"1b4500ab2c18ba67f3b0c356156cbc4939248376"}),i("slot",{key:"f1b1cab15e6bd356e34438076c4292d998bd5881",name:"description"})),this.caret&&i("duet-icon",{key:"757f3c16fe571ce1743a9175fe99da0b107dc59b",name:"action-arrow-right",color:"secondary",size:"x-small",margin:"none"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());l.style=r}}}));
@@ -0,0 +1,4 @@
1
+ var __awaiter=this&&this.__awaiter||function(t,e,n,i){function a(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,r){function o(t){try{d(i.next(t))}catch(t){r(t)}}function s(t){try{d(i["throw"](t))}catch(t){r(t)}}function d(t){t.done?n(t.value):a(t.value).then(o,s)}d((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,a,r,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return d([t,e])}}function d(s){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(n=0)),n)try{if(i=1,a&&(r=s[0]&2?a["return"]:s[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,s[1])).done)return r;if(a=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;a=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){n.label=s[1];break}if(s[0]===6&&n.label<r[1]){n.label=r[1];r=s;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(s);break}if(r[2])n.ops.pop();n.trys.pop();continue}s=e.call(t,n)}catch(t){s=[6,t];a=0}finally{i=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var i=0,a=e.length,r;i<a;i++){if(r||!(i in e)){if(!r)r=Array.prototype.slice.call(e,0,i);r[i]=e[i]}}return t.concat(r||Array.prototype.slice.call(e))};
2
+ /*!
3
+ * Built with Duet Design System
4
+ */System.register(["./p-2e0eb8a4.system.js","./p-e216bea4.system.js","./p-41982d26.system.js","./p-34d7dd10.system.js","./p-81835239.system.js","./p-ba03d034.system.js","./p-4cff3036.system.js","./p-e6b5a1c7.system.js","./p-98636086.system.js","./p-35a1ffee.system.js"],(function(t){"use strict";var e,n,i,a,r,o,s,d,l,u,h,f,c,p,b,m,g,v,y,k,w,x,_,T,j,L,z,E,S,A,D,F,M,C,U,P,O,W,R,N,Y,q;return{setters:[function(t){e=t.h;n=t.r;i=t.c;a=t.H;r=t.g;o=t.F},function(t){s=t.i},function(t){d=t.f;l=t.d},function(t){u=t.i},function(t){h=t.a;f=t.c;c=t.d;p=t.g;b=t.s},function(t){m=t.p;g=t.q;v=t.r;y=t.u;k=t.v;w=t.w;x=t.x;_=t.y;T=t.z;j=t.A;L=t.B;z=t.C;E=t.n;S=t.a;A=t.D;D=t.E;F=t.F;M=t.G;C=t.k;U=t.H;P=t.s},function(t){O=t.b;W=t.a},function(t){R=t.c},function(t){N=t.p},function(t){Y=t.g;q=t.a}],execute:function(){var I=function(t,n){var i=t.data,a=t.groupId,r=t.alignment;var o="duet-editable-table duet-editable-table-content-".concat(a);if(typeof i==="string"){return e("td",{innerHTML:i,class:o,part:"".concat(a,"content"),style:{verticalAlign:r}})}else{return e("td",{class:o,part:"".concat(a,"content"),style:{verticalAlign:r}},i)}};var B=":host{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,td.duet-editable-table-actions-menu{position:relative;padding:0 !important;margin:0}.duet-editable-table-actions-menu-button{position:relative;right:-16px;float:right;padding:0}.duet-editable-table-actions-menu-icon .duet-icon{max-width:16px;max-height:16px}.duet-editable-table-row.duet-table-action-row .duet-text-right{text-align:right}.duet-editable-table-header tr .duet-editable-table-header-hidden{padding:0 !important;font-size:0;border-bottom:0}";var H=B;var J=t("duet_editable_table",function(){function t(t){var e=this;n(this,t);this.duetTableToggle=i(this,"duetTableToggle",7);this.duetMenuClick=i(this,"duetMenuClick",7);this.hasHeadSlotFirst=false;this.hasHeadSlotLast=false;this.hasFootSlot=false;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=function(t,n){n.preventDefault();var i=t.sort_order,a=t.direction,r=t.index,o=t.key;e.duetTableToggle.emit({sort_order:i,index:r,direction:a,key:o,component:"duet-editable-table",originalEvent:n})};this.handleKeyDown=function(t,n){if(u(n)){e.toggleColumn(t,n)}};this.language=h();this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.actions=undefined;this.columns=undefined;this.rows=undefined;this.sortable=false;this.groupId="";this.theme="";this.accessibleRole=undefined;this.hideHeadVisually=false}t.prototype.componentWillLoad=function(){s(this);this.hasHeadSlotFirst=!!this.element.querySelector("[slot='thead-first']");this.hasHeadSlotLast=!!this.element.querySelector("[slot='thead-last']");this.hasFootSlot=!!this.element.querySelector("[slot='tfoot']")};t.prototype.connectedCallback=function(){f(this)};t.prototype.disconnectedCallback=function(){c(this)};t.prototype.createLabel=function(t){var n=this;var i=t.sort_order,a=t.direction,r=t.index,o=t.label;var s=p(o);if(!this.sortable){return s}var d=function(){if(!!i&&a===1){return"action-arrow-down-small"}else if(!!i&&a===-1){return"action-arrow-up-small"}return"action-subtract-small"};return e("span",{class:"duet-table-label","data-index":r},e("duet-button",{size:"small",icon:d(),"icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":true,onClick:function(e){return n.toggleColumn(t,e)},onKeyDown:function(e){return n.handleKeyDown(t,e)}},s))};t.prototype.getSortedColumns=function(){return __spreadArray([],this.columns,true).sort(d(["index"]))};t.prototype.getRowSortOrder=function(){var t=__spreadArray([],this.columns,true).sort(d(["sort_order"]));return t.filter((function(t){return t.sort_order})).map((function(t){return t.direction===-1?"-".concat(t.key):t.key}))};t.prototype.renderTableHeader=function(){var t=this;if(!this.columns){return}var n=this.getSortedColumns();return e("tr",{class:{"duet-table-action-header":!!this.actions}},n.map((function(n){if(n.display!==false){var i=t.createLabel(n);return i!==""?e("th",{scope:"col"},i):e("td",null)}})),this.actions&&e("th",{scope:"col",class:"duet-table-action-header-heading"},this.actions&&e("duet-visually-hidden",null,this.actionColumnLabel[this.language])))};t.prototype.renderActions=function(t,n){var i=this;if(!this.actions){return}return e("td",{class:"duet-text-right"},this.actions.map((function(a){return e("duet-action-button",{actionMeta:Object.assign({},(t===null||t===void 0?void 0:t.meta)||{},{index:n}),actionId:(t===null||t===void 0?void 0:t.uid)||(t===null||t===void 0?void 0:t.id)||null,actionName:a.name,theme:i.theme,iconName:a.icon,iconColor:a.color,iconSize:a.size,background:a.background,"accessible-label":"".concat(t.actionDescription||""," ").concat(p(a.label)," ")})})))};t.prototype.renderTableBody=function(){var t=this;var n=this.getSortedColumns();var i=this.getRowSortOrder();var a=__spreadArray([],this.rows,true).sort(d(i));return a.map((function(i,a){var r;return e("tr",{class:(r={"duet-table-action-row":!!t.actions,"duet-editable-table-row":true},r["duet-editable-table-row-".concat(t.groupId)]=true,r),"data-meta":JSON.stringify(i.meta)},n.map((function(n){var a=i[n.key]?i[n.key]:i.item;if(n.display!==false){return e(I,{data:a,groupId:t.groupId})}})),t.actions&&t.renderActions(i,a))}))};t.prototype.render=function(){var t;return e(a,{key:"e0065483ff2e0a3993860c8a4d070937902722aa",class:(t={},t["duet-editable-table-".concat(this.variation)]=true,t["duet-editable-table"]=true,t["duet-editable-table-".concat(this.theme)]=true,t["duet-editable-table-scrollable"]=this.breakpoint==="none-scrollable",t["duet-editable-table-sortable"]=this.sortable,t["duet-editable-table-actions"]=!!this.actions,t["duet-m-0"]=this.margin==="none",t["duet-theme-turva"]=this.theme==="turva",t)},e("duet-table",{key:"37756309155291fdc6d3113763314f524036daba",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},e("table",{key:"6ed48cc74d29b6c4110eb776fbd4b3afe494a309",role:this.accessibleRole},e("caption",{key:"54ac0fe11e3828afb9fe55efe2091c051cbf606a"},e("slot",{key:"0748c8c3a1a86c9bb2e5461bc0ae2febe813ba96",name:"tcaption"})),e("thead",{key:"70a834880f36029abaf6bd4c9b18a41445d5e42f"},this.hasHeadSlotFirst&&e("tr",{key:"f2ee281168541b6f200e49a8cf70e92c5a304207"},e("td",{key:"cf84d555a041b917cc3d16367f0def966c66575a",class:"duet-editable-table-actions-menu",colSpan:99},e("slot",{key:"62be9b17b585a33e2ab03443c35036271077c98c",name:"thead-first"}))),this.renderTableHeader(),this.hasHeadSlotLast&&e("tr",{key:"330b1ab67298bbaf5d1e811ddd5f55d25643a85f"},e("td",{key:"0153682e3091a90a81d47e12f66cbb5eb9147f8c",class:"duet-editable-table-actions-menu",colSpan:99},e("slot",{key:"53c665398c691d197be3444a2a4f78da2b433b30",name:"thead-last"})))),e("tbody",{key:"c4de0827a831ef580cbf2b3927957aa4e0f74e6e"},this.renderTableBody()),this.hasFootSlot&&e("tfoot",{key:"b222604c1a1967cc0a214677160d02edb71f6c27"},e("tr",{key:"3a55e26899ec472bddcecf7031cd139961c9d914"},e("td",{key:"924929d81c5308e0dbde8379b3ad93afe27339ac",class:"duet-editable-table-footer-menu",colSpan:99},e("slot",{key:"f475ebbe8088e6fd696500f6bf3221ebeb0fa8e1",name:"tfoot"})))))))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());J.style=H;var V="\nduet-table {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n background: transparent;\n border: 0;\n -moz-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n margin-bottom: ".concat(m," !important;\n display: block;\n font-variant-numeric: tabular-nums;\n\n table,\n thead,\n tbody,\n tfoot,\n th,\n td,\n tr {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n background: transparent;\n border: 0;\n -moz-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n }\n\n &.duet-m-0 {\n margin: 0 !important;\n }\n\n table {\n width: 100%;\n font-family: ").concat(g,";\n font-size: ").concat(v,";\n text-align: left;\n border-spacing: 0;\n border-collapse: separate;\n }\n\n &.duet-table-hide-head-visually.duet-table-hide-head-visually {\n thead,\n thead * {\n position: absolute !important;\n top: 0;\n width: 1px !important;\n height: 1px !important;\n padding: 0 !important;\n overflow: hidden !important;\n clip: rect(1px, 1px, 1px, 1px) !important;\n border: 0 !important;\n }\n }\n\n &.duet-theme-turva table {\n font-family: ").concat(y,";\n }\n\n td {\n -webkit-hyphens: auto;\n hyphens: auto;\n color: ").concat(k,";\n }\n\n &.duet-theme-turva td {\n color: ").concat(w,";\n }\n\n th {\n font-weight: ").concat(x,";\n line-height: ").concat(_,";\n color: ").concat(T,";\n text-align: left;\n }\n\n &.duet-theme-turva th {\n color: ").concat(j,";\n }\n\n tbody th {\n font-weight: ").concat(x,";\n color: ").concat(k,";\n }\n\n &.duet-theme-turva tbody th {\n color: ").concat(w,";\n }\n\n & .duet-table-action-row {\n & td:last-child {\n justify-self: end;\n padding-right: ").concat(m," !important;\n white-space: nowrap;\n }\n }\n\n span.duet-table-cell-heading {\n display: none;\n }\n}\n\n.duet-table-flattened {\n table,\n thead,\n tbody,\n tfoot,\n th,\n td,\n tr {\n display: block;\n }\n\n thead tr {\n position: absolute !important;\n top: 0;\n width: 1px !important;\n height: 1px !important;\n padding: 0 !important;\n overflow: hidden !important;\n clip: rect(1px, 1px, 1px, 1px) !important;\n border: 0 !important;\n }\n\n td {\n line-height: ").concat(_,";\n\n &:not(:last-child) {\n margin-bottom: ").concat(L,";\n }\n\n span.duet-table-cell-heading {\n margin-bottom: ").concat(z,";\n display: block;\n font-size: ").concat(v,";\n font-weight: ").concat(x,";\n color: ").concat(k,";\n }\n }\n\n &.duet-theme-turva td span.duet-table-cell-heading {\n color: ").concat(w,";\n }\n\n tbody td,\n tbody th,\n tfoot td {\n padding: 0 !important;\n text-align: left !important;\n }\n\n tbody th {\n font-weight: ").concat(x,";\n line-height: ").concat(_,";\n color: ").concat(T,";\n text-align: left;\n }\n}\n\n.duet-table-sticky thead th {\n position: sticky;\n top: 0;\n background: ").concat(E,";\n}\n\n.duet-table-striped {\n td,\n th {\n padding: ").concat(m," !important;\n @media ").concat(S.replace("'","").replace("'","")," {\n padding: ").concat(m," ").concat(A," !important;\n }\n }\n\n tbody th {\n background: ").concat(E,";\n }\n\n &.duet-table-sticky {\n thead th {\n border-bottom: 1px solid ").concat(D,";\n }\n\n &.duet-theme-turva thead th {\n border-bottom-color: ").concat(F,";\n }\n }\n\n tbody:not(:first-of-type) th {\n padding-top: calc(").concat(m," * 2) !important;\n }\n\n tbody:only-of-type tr:nth-of-type(odd) {\n background: rgba(4, 81, 128, 0.04);\n }\n\n &.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd) {\n background: rgba(").concat(w,", 0.04);\n }\n\n tbody:not(:only-of-type) tr:nth-of-type(even) {\n background: rgba(4, 81, 128, 0.04);\n }\n\n &.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even) {\n background: rgba(").concat(w,", 0.04);\n }\n\n tfoot td {\n border-top: 1px solid ").concat(D,";\n }\n\n &.duet-theme-turva tfoot td {\n border-top-color: ").concat(F,";\n }\n\n &.duet-table-flattened {\n tbody:not(:first-of-type) th {\n padding-top: ").concat(m," !important;\n }\n\n tr {\n padding: ").concat(m," !important;\n }\n\n tfoot {\n td {\n border-top: 0;\n }\n\n tr {\n border-top: 1px solid ").concat(D,";\n }\n }\n\n &.duet-theme-turva tfoot tr {\n border-top-color: ").concat(F,";\n }\n }\n}\n\n.duet-table-plain, .duet-table-fixed, .duet-table-minimal {\n th {\n padding: ").concat(L," !important;\n border-bottom: 1px solid ").concat(T,";\n\n &:first-child {\n padding-left: 0 !important;\n }\n\n &:last-child {\n padding-right: 0 !important;\n }\n }\n\n &.duet-theme-turva th {\n border-bottom-color: ").concat(M,";\n }\n\n tbody th {\n padding-top: calc(").concat(m," * 2) !important;\n border-bottom-color: ").concat(D,";\n }\n\n &.duet-theme-turva tbody th {\n border-bottom-color: ").concat(F,";\n }\n\n td {\n padding: ").concat(L," !important;\n\n &:first-child {\n padding-left: 0 !important;\n }\n\n &:last-child {\n padding-right: 0 !important;\n }\n }\n\n tbody td {\n border-bottom: 1px solid ").concat(D,";\n }\n\n &.duet-theme-turva tbody td {\n border-bottom-color: ").concat(F,";\n }\n\n &.duet-table-flattened {\n tbody:first-of-type th {\n padding-top: 0 !important;\n }\n\n td,\n tbody th {\n border-bottom: 0;\n }\n\n tr {\n padding: ").concat(m," 0 !important;\n }\n\n tbody th {\n padding-top: ").concat(m," !important;\n }\n\n tfoot td {\n margin-bottom: ").concat(z," !important;\n }\n\n tbody:not(:only-of-type) tr:first-child {\n border-bottom: 0;\n }\n }\n}\n\n.duet-table-plain {\n\n &.duet-table-flattened {\n tbody tr {\n border-bottom: 1px solid ").concat(D,";\n }\n\n &.duet-theme-turva tbody tr {\n border-bottom-color: ").concat(F,";\n }\n }\n}\n\n.duet-table-minimal {\n\n tbody tr,\n tbody tr td {\n vertical-align: top;\n border-bottom: 0 none;\n }\n\n tbody tr:last-of-type,\n tbody tr:last-of-type td {\n border-bottom: 1px solid ").concat(D,";\n }\n\n &.duet-table-flattened {\n tbody tr,\n tbody tr td {\n border-bottom: 0 none;\n }\n\n tbody tr td[data-heading]::before {\n display: none;\n }\n\n tfoot {\n border-top: 1px solid ").concat(D,";\n }\n\n &.duet-theme-turva tfoot {\n border-top-color: ").concat(F,";\n }\n }\n}\n\n.duet-table-fixed {\n\n table {\n table-layout: fixed;\n }\n\n tbody tr,\n tbody tr td,\n tbody tr td:first-child {\n padding: 4px !important;\n vertical-align: text-bottom;\n border-bottom: 0 none;\n }\n\n thead {\n display: none;\n }\n\n tbody tr,\n tbody tr td {\n border-bottom: 0 none;\n }\n\n &:not(.duet-table-flattened) {\n tfoot {\n border-top: 1px solid ").concat(D,";\n }\n\n &.duet-theme-turva tfoot {\n border-top-color: ").concat(F,";\n }\n }\n}\n.duet-table-scrollable {\n position: relative;\n width: 100%;\n overflow-x: auto;\n 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%;\n background-repeat: no-repeat;\n background-attachment: local, local, scroll, scroll;\n background-size: 100px 100%, 100px 100%, 12px 100%, 12px 100%;\n}\n\n.duet-table-selected-column {\n background: rgba(").concat(C,", 0.08);\n\n .duet-theme-turva & {\n background: rgba(").concat(M,", 0.08);\n }\n}\n\n.duet-table-sortable {\n tbody tr td:first-child,\n thead tr th:first-child {\n padding: ").concat(m,";\n }\n\n &:not(.duet-table-flattened) {\n tfoot {\n border-top: 1px solid ").concat(D,";\n }\n\n &.duet-theme-turva tfoot {\n border-top-color: ").concat(F,';\n }\n }\n}\n\n\n.duet-table-actions {\n table {\n table-layout: auto;\n }\n\n thead {\n & th:last-child {\n width: 1px;\n white-space: nowrap;\n }\n }\n}\n\n.duet-editable-table-table.duet-table-flattened {\n tr {\n display: grid;\n grid-template-columns: repeat(2, 1fr);\n grid-auto-rows: auto;\n gap: 10px;\n\n &.duet-table-action-row td:last-child::before {\n padding: 0;\n content: "";\n }\n }\n\n td {\n grid-column: 1 / 2;\n\n &:first-child {\n grid-row: 1;\n grid-column: 1;\n }\n\n &:last-child {\n grid-row: 1;\n grid-column: 2;\n }\n }\n}\n').replace(/[\n\r\t]/gm,"");function K(t){var e=t.getRootNode();var n=e instanceof ShadowRoot;if(n){var i=new CSSStyleSheet;i.replace(V).then((function(){e.adoptedStyleSheets.push(i)}))}else{var a=document.querySelector("style#duet-table-styles");if(a){return}var r=document.createElement("style");r.id="duet-table-styles";r.innerHTML=V;document.head.append(r)}}var X={none:0,"with-links":parseFloat(U)*16,"without-links":parseFloat(P)*16};var G=t("duet_table",function(){function t(t){var e=this;n(this,t);this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)";this.handleMediaQueryChange=function(t){e.matchesBreakpoint=O.includes(e.breakpoint)?!t.matches:t.matches};this.matchesBreakpoint=true;this.language=h();this.theme=undefined;this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.hideHeadVisually=false}t.prototype.watchLanguageStateHandler=function(t,e){var n=this;if(t!==e){setTimeout((function(){return n.copyHeadingsToCells()}),50)}};t.prototype.connectedCallback=function(){var t=this;K(this.element);var e=this.breakpoint==="none"||this.breakpoint==="none-scrollable"?"all":W[this.breakpoint];this.mq=matchMedia(e);this.mq.addEventListener("change",l(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);this.observer=new MutationObserver((function(){return l(t.copyHeadingsToCells(),50)}));this.observer.observe(this.element,{childList:true,subtree:true})};t.prototype.componentWillLoad=function(){s(this);this.copyHeadingsToCells();if(this.sticky&&this.breakpoint==="none-scrollable"){console.warn('[DUET WARNING]: sticky and breakpoint="none-scrollable" are incompatible. Scrollable takes precedence')}if(this.sticky){var t=X[this.stickyDistance];var e=this.element.querySelectorAll(this.headingSelector);e.forEach((function(e){return e.style.top="".concat(t,"px")}))}};t.prototype.componentDidLoad=function(){this.observer?this.observer.takeRecords():null;f(this)};t.prototype.disconnectedCallback=function(){this.observer.disconnect();this.observer=null;this.mq.removeListener(this.handleMediaQueryChange);this.mq=null;this.matchesBreakpoint=true;c(this)};t.prototype.copyHeadingsToCells=function(){var t=this.element.querySelectorAll(this.headingSelector);var e=this.element.querySelectorAll("tbody tr");var n=Array.from(t).map((function(t){return t.textContent.trim()}));e.forEach((function(t){t.querySelectorAll("td").forEach((function(t,e){if(n[e]){var i=t.querySelector(".duet-table-cell-heading");if(!i||i.textContent!==n[e]){i===null||i===void 0?void 0:i.remove();var a=document.createElement("span");a.textContent=n[e];a.classList.add("duet-table-cell-heading");a.setAttribute("aria-hidden","true");a.inert=true;t.prepend(a)}}}))}))};t.prototype.render=function(){var t;return e(a,{key:"15e609b307b99f28efe4daac634c7f978f43b1dc",class:(t={},t["duet-table-".concat(this.variation)]=true,t["duet-table-flattened"]=!this.matchesBreakpoint,t["duet-table-sticky"]=this.matchesBreakpoint&&this.sticky,t["duet-table-scrollable"]=this.breakpoint==="none-scrollable",t["duet-m-0"]=this.margin==="none",t["duet-theme-turva"]=this.theme==="turva",t["duet-table-hide-head-visually"]=this.hideHeadVisually,t)},e("slot",{key:"1af0a343ef68668f75358fdbc91a601ef62e8dd4"}))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{language:["watchLanguageStateHandler"]}},enumerable:false,configurable:true});return t}());var $=[{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."}}];var Q={fi:"Liiteluettelo",sv:"Lista över bilagor",en:"Attachments list"};var Z=function(t){var n=t.label,i=t.categoryLabel;return e("div",{class:"items-header",tabindex:"-1","aria-label":p(Q)},i&&e("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},p(i)),e("duet-heading",{class:{"filename-header":true,"no-category":!i},border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},p(n)))};var tt=function(t,e){if(!e){return true}var n=t.split(".");var i=e.split(",");var a=n[n.length-1];return i.includes(a)};var et=function(t,e){if(!e||!t){return true}var n=e.split(",");var i=false;n.forEach((function(e){var n=e.split("/");var a=t.split("/");if(n[0]===a[0]&&(n[1]===a[1]||n[1]==="*")){i=true}}));return i};var nt=function(t,e){if(!e||!t){return true}return e>=t};var it=function(t,e,n){var i=e.allowedMimetypes,a=e.allowedExtensions,r=e.maxBytes;var o=false;var s=Y("default",n);if(t){var d=t.name,l=t.type,u=t.size;var h=et(l,i);var f=a==="all"||a===""||a===" "||a===undefined?true:tt(d.toLowerCase(),a);var c=nt(u,r);if(!h){s=Y("duet-upload-101",n)}if(!f){s=Y("duet-upload-100",n)}if(!c){s=Y("duet-upload-201",n)}o=h&&f&&c}else{o=false}return{valid:o,errorMessage:o?undefined:p(s.message),errorSystem:o?undefined:s.system_message,errorType:o?undefined:s.type}};var at=function(t,e){var n=0;if(e){t.forEach((function(t){if(t.valid&&t.size){n+=t.size}}));if(n>=e){return true}}return false};var rt=function(t,e){var n=0;if(e){t.forEach((function(t){if(t.valid){n++}}));if(n>=e){return true}}return false};var ot=function(t,e,n){if(t+e>n){return true}return false};var st=function(t,e,n){var i=0;if(n){t.forEach((function(t){if(t.valid&&t.size){i+=t.size}}));e.forEach((function(t){if(t.size){i+=t.size}}));if(i>=n){return true}}return false};var dt=function(t){var e=t.payload,n=t.options,i=t.onFailure,a=t.onSuccess,r=t.onProgress;var o=n.type,s=o===void 0?"POST":o,d=n.xhr,l=n.uri,u=n.argument,h=u===void 0?null:u,f=n.headers,c=f===void 0?null:f;d.open(s,"".concat(l).concat(h||""),true);var p=e.data,b=e.name;if(c){Object.keys(c).forEach((function(t){d.setRequestHeader(t,c[t])}))}if(s==="POST"){d.onreadystatechange=function(){if(d.readyState===XMLHttpRequest.DONE&&d.status>=200&&d.status<300){a(d,b,d.status)}if(d.readyState===XMLHttpRequest.DONE&&d.status>=300&&d.status<999){i(d,b,d.status)}};r(b)}d.send(p);return d};var lt="*,*::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}";var ut=lt;var ht=t("duet_upload",function(){function t(t){var a=this;n(this,t);this.duetChange=i(this,"duetChange",3);this.duetBlur=i(this,"duetBlur",7);this.duetFocus=i(this,"duetFocus",7);this.duetReady=i(this,"duetReady",7);this.duetDone=i(this,"duetDone",3);this.duetState=i(this,"duetState",3);this.duetDelete=i(this,"duetDelete",3);this.duetCancel=i(this,"duetCancel",3);this.duetProgress=i(this,"duetProgress",3);this.duetUpload=i(this,"duetUpload",3);this.linkClick=i(this,"linkClick",3);this.buttonId=R("DuetButton");this.labelId=R("DuetLabel");this.uploadId=R("DuetUpload");this.filesInProgress=new Map;this.fileMaxReached=false;this.bytesMaxReached=false;this.filesToUploadExceedsLimit=false;this.filesToUploadTotalSizeIsAboveMax=false;this.internalStatusMessageLabel=undefined;this.itemRefs=new Map;this.DefaultGroups={inprogress:"inprogress",success:"success",pending:"pending",failure:"failure"};this.kick=l((function(){a.tick=Date.now()}),30);this.categoryLabel={en:"Category",sv:"Filtyp",fi:"Tiedostotyyppi"};this.listenForActionEvents=function(){a.element.addEventListener("duetActionEvent",(function(t){var e=t.detail;var n=e.action,i=e.id,r=e.originalEvent;switch(n){case"delete":a.onDelete(i,r);break;case"cancel":a.onCancel(i,r);break}}))};this.verifyValidity=function(){var t=a.getFilesAsArray(),e=t.invalid,n=t.valid;var i=a.valid;a.valid=e.length===0&&n.length!==0;if(a.valid!==i){a.duetState.emit({originalEvent:undefined,data:{valid:a.valid,from:"componentWillRender"},component:"duet-upload"})}};this.getGroupFromItemData=function(t){if(t.valid&&t.progress===100){return a.DefaultGroups.success}else if(t.progress>0&&t.progress!==100){return a.DefaultGroups.inprogress}else if(!t.valid){return a.DefaultGroups.failure}else if(t.pending){return a.DefaultGroups.pending}else if(t.group){return t.group}else{return"none"}};this.mapFilesToUploadItems=function(t,n,i,r){if(n===a.DefaultGroups.success){return e("duet-upload-item",{theme:a.theme,actions:a.getActions(n,r),type:"success",data:t,showLinks:a.showLinks,linkClickEvent:a.emitEvent?a.linkClick:undefined,categoryLabel:a.categoryLabel,label:a.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:a.processedButtonTitles,ref:function(e){a.itemRefs.set(t.uid,e)}})}else if(n===a.DefaultGroups.inprogress){return e("duet-upload-item",{theme:a.theme,actions:a.getActions(n,r),type:"inprogress",data:t,showLinks:a.showLinks,categoryLabel:a.categoryLabel,label:a.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:a.processedButtonTitles,ref:function(e){a.itemRefs.set(t.uid,e)}})}else if(n===a.DefaultGroups.pending){return e("duet-upload-item",{theme:a.theme,actions:a.getActions(n,r),type:"pending",data:t,showLinks:a.showLinks,categoryLabel:a.categoryLabel,label:a.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:a.processedButtonTitles,ref:function(e){a.itemRefs.set(t.uid,e)}})}else if(n===a.DefaultGroups.failure){return e("duet-upload-item",{theme:a.theme,actions:a.getActions(n,r),type:"failure",data:t,showLinks:a.showLinks,errorCodes:a.errorCodes,categoryLabel:a.categoryLabel,label:a.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:a.processedButtonTitles,ref:function(e){a.itemRefs.set(t.uid,e)}})}else if(t.group){return t.html}else{return"none"}};this.genHashName=function(){return Date.now().toString(36)+Math.random()};this.updateValueInMap=function(t,e,n,i){if(i===void 0){i=true}try{var r=a.files.get(t);r[e]=n;a.files.set(t,r);if(a.external&&e!=="url"){a.trackProgress(t,e==="uploaded")}}catch(t){}if(i){a.kick()}};this.updateProgress=function(t,e){var n=function(n){a.updateValueInMap(e,"progress",n);a.onProgress(e,n,t)};if(t.lengthComputable){var i=t.loaded/t.total*100;n(i)}else{console.log("cant read progress")}};this.trackProgress=function(t,e){if(e===void 0){e=false}if(e){a.filesInProgress.delete(t)}else{a.filesInProgress.set(t,"inprogress")}if(a.filesInProgress.size===0){a.onDone()}};this.getFilesAsArray=function(){var t=[];var e=[];a.files.forEach((function(n){if(n.valid&&!n.deleted){t.push(n)}else if(!n.valid&&!n.deleted){e.push(n)}}));return{valid:t,invalid:e}};this.resetFormFields=function(){a.nativeInput.value=""};this.startUpload=function(t){var e=[];for(var n=1;n<arguments.length;n++){e[n-1]=arguments[n]}return __awaiter(a,__spreadArray([t],e,true),void 0,(function(t,e){var n,i,a;if(e===void 0){e=undefined}return __generator(this,(function(r){n=this.validateTotals(),i=n.bytesMaxReached,a=n.fileMaxReached;if(i||a){this.kick();return[2]}this.metaData=e;this.nativeInput.click();this.onUpload(t,e);t.stopPropagation();t.preventDefault();return[2]}))}))};this.transferComplete=function(t){a.updateValueInMap(t,"progress",100,false);a.trackProgress(t,true)};this.transferDone=function(t,e,n){a.updateValueInMap(e,"status",n,false);a.updateValueInMap(e,"uploaded",true,false);try{var i=JSON.parse(t.response);a.updateValueInMap(e,"url",i.url)}catch(t){a.updateValueInMap(e,"url",null);console.error("Server did not respond with expected response {url: string}")}return};this.transferDoneWithFailure=function(t,e,n){try{var i=JSON.parse(t.response).error;a.updateValueInMap(e,"error",{message:i.message,type:i.type},false)}catch(t){console.error("Server did not respond with expected response error:{message: string, type: int}");a.updateValueInMap(e,"error",{type:n},false)}a.updateValueInMap(e,"valid",false,true)};this.transferFailed=function(t){a.updateValueInMap(t,"error",q("duet-upload-001",a.errorCodes))};this.transferCanceled=function(t){a.files.delete(t);a.validateTotals(t);a.kick()};this.validateTotals=function(t){var e=at(a.files,a.maxBytesTotal);var n=rt(a.files,a.maxFiles);if(e&&t){a.updateValueInMap(t,"error",q("duet-upload-202",a.errorCodes),false)}if(n&&t){a.updateValueInMap(t,"error",q("duet-upload-301",a.errorCodes),false)}a.bytesMaxReached=e;a.fileMaxReached=n;return{bytesMaxReached:e,fileMaxReached:n}};this.uploadFile=function(t){var e=[];for(var n=1;n<arguments.length;n++){e[n-1]=arguments[n]}return __awaiter(a,__spreadArray([t],e,true),void 0,(function(t,e,n){var i,a,r;if(e===void 0){e=false}return __generator(this,(function(o){switch(o.label){case 0:if(!e&&this.deferUpload){this.updateValueInMap(t.item.name,"pending",true,false);this.updateValueInMap(t.item.name,"group","pending",true)}else if(e){this.updateValueInMap(t.item.name,"pending",false,false);this.updateValueInMap(t.item.name,"group",undefined,true)}o.label=1;case 1:o.trys.push([1,4,,5]);if(!(!this.deferUpload||e))return[3,3];i=new FormData;i.append("file",t.item);if(n){i.append("key",n)}i.append("uid",t.uid);i.append("name",t.item.name);i.append("metadata",JSON.stringify({uid:t.uid,url:this.uri,size:t.item.size,meta:t.meta}));a=t;return[4,this.makeXHRPostRequest(i)];case 2:a.xhr=o.sent();o.label=3;case 3:return[3,5];case 4:r=o.sent();this.updateValueInMap(t.item.name,"valid",false,false);return[3,5];case 5:return[2]}}))}))};this.uploadPendingFiles=function(){for(var t=0,e=Array.from(a.files.entries());t<e.length;t++){var n=e[t],i=n[0],r=n[1];if(r.group==="pending"&&r.pending===true){a.uploadFile(r,true,i)}}};this.getItemFromUID=function(t){for(var e=0,n=Array.from(a.files.entries());e<n.length;e++){var i=n[e],r=i[0],o=i[1];if(o.uid===t){return{value:o,key:r}}}return null};this.handleExternalUploadButton=function(t,e){if(a.externalUploadButton){if(t||e){a.externalUploadButton.disabled=true}else{a.externalUploadButton.disabled=false}}};this.onDelete=function(t,e){var n=a.getItemFromUID(t);var i=n.key;var r=a.files.get(i);a.files.delete(i);var o=a.validateTotals(),s=o.bytesMaxReached,d=o.fileMaxReached;a.handleExternalUploadButton(s,d);a.kick();a.duetDelete.emit({originalEvent:e,data:{deletion:r},component:"duet-upload"});if(!a.external&&!r.pending){a.makeXHRDeleteRequest(r)}a.resetFormFields()};this.onCancel=function(t,e){var n=a.getItemFromUID(t).key;var i=a.files.get(n);a.files.delete(n);var r=a.validateTotals(),o=r.bytesMaxReached,s=r.fileMaxReached;a.handleExternalUploadButton(o,s);if(!a.external){var d=i.xhr;if(d){d.abort()}}a.kick();a.resetFormFields();a.duetCancel.emit({originalEvent:e,data:{cancelled:i},component:"duet-upload"})};this.onUpload=function(t,e){a.duetUpload.emit({originalEvent:t,metaData:e,component:"duet-upload"})};this.onBlur=function(t){a.duetBlur.emit({originalEvent:t,component:"duet-upload"})};this.onProgress=function(t,e,n){a.duetChange.emit({originalEvent:n,data:{key:t,percentComplete:e},component:"duet-upload"})};this.onFocus=function(t){a.duetFocus.emit({originalEvent:t,component:"duet-upload"})};this.onReady=function(){a.duetReady.emit({component:"duet-upload"})};this.onDone=function(){a.duetDone.emit({component:"duet-upload",data:{files:a.files}})};this.filterMap=function(){var t=Array.from(a.files.values());var e=[];var n=[];var i=[];var r=[];var o=false;t.forEach((function(t){var s=a.getGroupFromItemData(t);if(t.meta&&!!t.meta.badges){o=true}if(s===a.DefaultGroups.success){r.push({uid:t.uid,data:t})}else if(s===a.DefaultGroups.inprogress){e.push({uid:t.uid,data:t})}else if(s===a.DefaultGroups.pending){i.push({uid:t.uid,data:t})}else if(s===a.DefaultGroups.failure){n.push({uid:t.uid,data:t})}else if(t.group){e.push({uid:t.uid,data:t})}}));return{pending:i,failure:n,success:r,inprogress:e,hasCategory:o}};this.getActions=function(t,e){return e.filter((function(e){return e.map.includes(t)}))};this.renderUploadedItems=function(){a.itemRefs.clear();var t=a.filterMap();var n=t.hasCategory;var i=a.hideCancelButton?a.actions.filter((function(t){return t.name!=="cancel"})):a.actions;var r=a.groups.map((function(r){var s=t[r.id];if(!(s===null||s===void 0?void 0:s.length)){return}return e(o,null,!a.hideGroups&&e(Z,{categoryLabel:n?a.categoryLabel:undefined,label:r.label}),s.map((function(t){return a.mapFilesToUploadItems(t.data,r.id,n,i)})))}));return e(o,null,a.showUploadedItemsHeader&&e(Z,{categoryLabel:n?a.categoryLabel:undefined,label:a.uploadedItemsHeaderLabel}),r)};this.tick=Date.now();this.accessibleActiveDescendant=undefined;this.accessibleDescribedBy=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.external=false;this.middleware=null;this.deferUpload=false;this.hideButton=false;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=undefined;this.showLinks=false;this.caption=undefined;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=undefined;this.theme="";this.disabled=false;this.identifier=undefined;this.margin="auto";this.required=false;this.alignment="middle";this.hideGroups=false;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=$;this.name=undefined;this.maxBytes=2e8;this.maxBytesTotal=undefined;this.maxFiles=99;this.allowedExtensions="all";this.allowedMimetypes="";this.multiple=true;this.limitSelection=false;this.hideCancelButton=false;this.value=undefined;this.externalUploadButtonId=undefined;this.captionOnBottom=false;this.showUploadedItemsHeader=false;this.uploadedItemsHeaderLabel={fi:"Ladattu tiedosto",sv:"Lägg till en bilaga",en:"Uploaded file"};this.headerHeadingLevel="h3";this.hideHeader=false;this.emitEvent=false;this.actionButtonTitles={cancel:false,delete:false};this.renameDuplicates=false;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"}}]}t.prototype.watchValidHandler=function(t,e){if(t!==e){this.kick()}};t.prototype.componentWillLoad=function(){if(typeof this.statusMessageLabel==="string"){this.internalStatusMessageLabel=b(this.groups)}else{this.internalStatusMessageLabel=this.statusMessageLabel}s(this);this.listenForActionEvents();this.onReady();this.externalUploadButton=document.querySelector("#".concat(this.externalUploadButtonId));this.processedButtonTitles=N(this.actionButtonTitles)};t.prototype.componentWillRender=function(){this.verifyValidity()};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.nativeInput){this.nativeInput.focus(t)}return[2]}))}))};t.prototype.upload=function(){return __awaiter(this,arguments,void 0,(function(t){var e,n,i;if(t===void 0){t=undefined}return __generator(this,(function(a){e=this.validateTotals(),n=e.bytesMaxReached,i=e.fileMaxReached;if(n||i){this.handleExternalUploadButton(n,i);this.kick();return[2]}this.metaData=t;this.nativeInput.click();return[2]}))}))};t.prototype.uploadPending=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.uploadPendingFiles();return[2]}))}))};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:this.kick();return[4,this.setFocus()];case 1:t.sent();return[2]}}))}))};t.prototype.getFiles=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.files||this.files.size===0){return[2,false]}return[2,this.getFilesAsArray()]}))}))};t.prototype.updateValue=function(t,e,n){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.updateValueInMap(t,e,n);return[2]}))}))};t.prototype.focusActionButton=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:return[4,(e=this.itemRefs.get(t))===null||e===void 0?void 0:e.focusActionButton()];case 1:n.sent();return[2]}}))}))};t.prototype.render=function(){var t=this;var n=this.identifier||this.uploadId;var i=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024);var r=Math.round(this.maxBytes/1024/1024);var s=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());s=s.replace(/{maxbytes}/g,"".concat(r.toString()," MB"));s=s.replace(/{maxbytestotal}/g,"".concat(i.toString()," MB"));s=s.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", "));if(this.externalUploadButton){this.externalUploadButton.accessibleLabel="".concat(this.externalUploadButton.innerText,". ").concat(s)}return e(a,{key:"288aeb8b8850772a57e4333d8ba5b0ff15c3d7fe",class:{"duet-m-0":this.margin==="none"}},e("duet-fieldset",{key:"26201557f31b33446b6453985c8448bb29be72e9","label-heading-level":this.headerHeadingLevel,"label-hidden":this.hideHeader,label:this.label},e("slot",{key:"d7e389e3cd4bb3b8379dcc04480aba78bfbfc860",name:"header"}),!this.files.size&&e("duet-empty-state",{key:"cca76f6ea0ece55302e10f31d32214526e8c8666",id:this.labelId,part:this.identifier?"".concat(this.identifier,"-empty-state"):"duet-upload-empty-state",icon:"messaging-attachment"},e("duet-paragraph",{key:"639f5c01310f844c0a2e0704bfa4c39c893301fa",margin:"none"},this.fileListEmpty)),!!this.files.size&&e("slot",{key:"f30d995ea8304a2d355ea23b6d0018925aca336d",name:"fileheader"}),!!this.files.size&&e("duet-upload-aria-status",{key:"f64a53038b12204aa522fb6ba65171e1b4681f6a",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&&e("slot",{key:"8a8900866831a642e44f58d10c5e6a580c902a41",name:"filefooter"}),e("slot",{key:"e05d622ba10f8c8403fc9694a298881c8ee80e00",name:"uploadfooter"}),this.captionOnBottom&&e("duet-caption",{key:"89ddf7c2aeaa3c4e6a55d3d2743a1d4ef5916946",margin:"none",size:"small"},e("div",{key:"663ee7410aac7691c7ecdcc47d40709011f13f75",class:"upload-bottom-caption"},s)),e("slot",{key:"2fad93888bbaff842a5e3d2e8a1324f194d3c351",name:"afterfooter"}),!this.hideButton&&e(o,{key:"2f6dd6adb1749ddd99170be40ed26fb29ac43097"},e("duet-spacer",{key:"15b5257a9a586ff424c4ec3a221d87abdc411474",size:"large"}),e("duet-button",{key:"0420e40d466d4eeaed5f303e6c36f025da72bee2",id:this.buttonId,onClick:this.startUpload,"accessible-controls":n,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel||"".concat(this.buttonLabel,". ").concat(s),"accessible-owns":n,size:"small",variation:"secondary",fixed:true,icon:"action-add-circle",part:this.identifier?"".concat(this.identifier,"-button-upload"):"duet-upload-button-upload"},this.buttonLabel)),(this.fileMaxReached||this.bytesMaxReached||this.filesToUploadExceedsLimit||this.filesToUploadTotalSizeIsAboveMax)&&e(o,{key:"7a7dfa23e6ed1459f94635e431464e56cede465f"},e("duet-spacer",{key:"a8e54f1b3bb6a21b01b0bcdbeca209aa2b3eb1c2",size:"medium"}),e("duet-alert",{key:"c8324533e240d3c5c19d92f2476b61731c7527f3",part:this.identifier?"".concat(this.identifier,"-error-notification"):"duet-upload-error-notification"},this.fileMaxReached&&q("duet-upload-301",this.errorCodes),this.bytesMaxReached&&q("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&q("duet-upload-302",this.errorCodes),this.filesToUploadTotalSizeIsAboveMax&&q("duet-upload-203",this.errorCodes))),e("duet-visually-hidden",{key:"11a0d6c9c0dc638025da4357fc1f7cea158a36a8","aria-hidden":"true"},e("input",{key:"bd2c685b5b4859881e63d9cfa71e0058aef91e97",ref:function(e){t.nativeInput=e},accept:!this.limitSelection?undefined:"".concat(this.allowedMimetypes,",").concat(this.allowedExtensions),onBlur:this.onBlur,onFocus:this.onFocus,onChange:function(e){return t.onChange(e)},type:"file",class:{"duet-upload":true},disabled:this.disabled,"aria-hidden":"true",required:this.required,name:this.name,id:this.identifier,multiple:this.multiple,tabIndex:-1}))))};t.prototype.makeXHRPostRequest=function(t){var e=this;var n=new XMLHttpRequest;var i=t.get("name");n.upload.addEventListener("progress",(function(t){e.updateProgress(t,i)}));n.upload.addEventListener("load",(function(){e.transferComplete(i)}));n.upload.addEventListener("error",(function(){e.transferFailed(i)}));n.upload.addEventListener("abort",(function(){e.transferCanceled(i)}));var a={payload:{data:t,name:i},options:{type:"POST",uri:this.uri,xhr:n,argument:null,headers:undefined},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){a=this.middleware(a)}return dt(a)};t.prototype.makeXHRDeleteRequest=function(t){var e=t.uid,n=t.item;var i=new XMLHttpRequest;var a={"x-fileuid":e,"x-filename":n.name};var r={payload:{data:null,name:name},options:{type:"DELETE",xhr:i,uri:this.uri,argument:"?key=".concat(e,"&name=").concat(n.name),headers:a},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){r=this.middleware(r)}return dt(r)};t.prototype.escapeSpecialCharacters=function(t){return(t+"").replace(/[\\"'(){}\[\]*?$^+]/g,"\\$&").replace(/\u0000/g,"\\0")};t.prototype.getRenamedFileName=function(t,e){var n=new RegExp("".concat(this.escapeSpecialCharacters(t)," \\(\\d+\\).").concat(e));var i=Array.from(this.files.entries()).map((function(t){var e=t[0],n=t[1];return e})).filter((function(i){return n.test(i)||i==="".concat(t,".").concat(e)})).sort((function(t,e){return t.split(".").slice(0,-1).join(".")>e.split(".").slice(0,-1).join(".")?1:-1})).pop().split(".").slice(0,-1).join(".");if(i===t){return"".concat(t," (1).").concat(e)}var a=parseInt(i.split("(").pop().slice(0,-1));return"".concat(t," (").concat(a+1,").").concat(e)};t.prototype.renameFiles=function(t){var e=this;return t.map((function(t){if(e.files.get(t.name)){var n=t.name.split(".");var i=n.pop();var a=n.join(".");var r=e.getRenamedFileName(a,i);return new File([t],r,{type:t.type,lastModified:t.lastModified})}else{return t}}))};t.prototype.onChange=function(t){return __awaiter(this,void 0,void 0,(function(){var e,n,i,a,r,o,s,d,l,u,h,f;return __generator(this,(function(c){switch(c.label){case 0:n=Array.from((e=this.nativeInput)===null||e===void 0?void 0:e.files);this.filesToUploadExceedsLimit=false;if(ot(this.files.size,n.length,this.maxFiles)){this.filesToUploadExceedsLimit=true;this.kick();return[2]}this.filesToUploadTotalSizeIsAboveMax=false;if(st(this.files,n,this.maxBytesTotal)){this.filesToUploadTotalSizeIsAboveMax=true;this.kick();return[2]}if(!n)return[3,6];if(this.renameDuplicates){n=this.renameFiles(n)}i=0,a=n;c.label=1;case 1:if(!(i<a.length))return[3,6];r=a[i];o=it(r,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),s=o.valid,d=o.errorMessage,l=o.errorType,u=o.errorSystem;h=this.genHashName();f={uid:h,item:r,size:r.size,meta:this.metaData,uploaded:false,valid:s,error:{type:s?undefined:l,message:s?undefined:d,system_message:s?undefined:u},progress:0,deleted:false,xhr:false,url:false};this.files.set(r.name,f);if(!(s&&!this.external))return[3,3];return[4,this.uploadFile(f)];case 2:c.sent();return[3,4];case 3:if(s&&this.external){this.updateValueInMap(f.item.name,"pending",true,false);this.updateValueInMap(f.item.name,"group","pending",true)}else if(!s){this.updateValueInMap(r.name,"valid",false,true)}c.label=4;case 4:this.kick();c.label=5;case 5:i++;return[3,1];case 6:this.resetFormFields();this.metaData=undefined;this.duetChange.emit({originalEvent:t,data:{files:this.files},component:"duet-upload"});return[2]}}))}))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{valid:["watchValidHandler"]}},enumerable:false,configurable:true});return t}());ht.style=ut}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r,h as e,H as s,g as a}from"./p-8abb0984.js";import{i as o}from"./p-aaa7a7bd.js";import{c as t}from"./p-5e59e970.js";import{g as i,c as n,d as p}from"./p-2437b4cb.js";import"./p-9c3c64b9.js";const d=class{constructor(e){r(this,e),this.progressId=t("DuetProgress"),this.progressLabelId=t("DuetProgressLabel"),this.accessibleDescribedBy=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleLabel=void 0,this.accessibleLabelUploadDefaults={fi:["lähetys valmis","lähetys käynnissä"],sv:["Uppladdningen är klar","Uppladdning pågår"],en:["upload completed","upload in progress"]},this.accessibleLabelUpload=i(this.accessibleLabelUploadDefaults),this.progress=0,this.caption=void 0,this.height="10px",this.theme=""}componentWillLoad(){o(this)}connectedCallback(){n(this,{prop:"accessibleLabelUpload",defaults:"accessibleLabelUploadDefaults"})}disconnectedCallback(){p(this)}render(){return e(s,null,e("div",{"aria-live":this.accessibleLabel?"polite":"off","aria-hidden":this.accessibleLabel?"false":"true","aria-atomic":"true",style:{height:this.height},id:this.progressId,class:{"duet-progress":!0,"duet-progress-done":100===this.progress,"duet-progress-start":0===this.progress,"duet-progress-inprogress":this.progress<99&&0!==this.progress,"duet-theme-turva":"turva"===this.theme}},e("duet-visually-hidden",null,e("label",{htmlFor:this.progressLabelId},e("span",null,this.accessibleLabel,0!==this.progress&&`, ${this.accessibleLabelUpload[this.progress<99?1:0]}`))),this.caption&&e("div",{class:"duet-progress-caption"},e("span",null,this.caption)),e("progress",{id:this.progressLabelId,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,role:"progressbar",value:this.progress,max:"100","aria-valuemin":"0","aria-valuemax":"100"},e("div",{class:"progress-bar"},e("span",{style:{width:`${this.progress}%;`}},"Progress: ",this.progress,"%")))))}get element(){return a(this)}};d.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:inherit}.duet-progress{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%;min-height:1px;}.duet-progress .progress-bar{position:relative;display:block;width:100%;height:inherit;min-height:1px;background-color:rgb(240, 247, 250);border-radius:0;box-shadow:none}.duet-theme-turva .duet-progress .progress-bar{background-color:rgb(255, 241, 241)}.duet-progress .progress-bar>span{display:block;height:inherit;text-indent:-9999px;background-color:rgb(0, 119, 179);border-radius:0}.duet-theme-turva .duet-progress .progress-bar>span{background-color:rgb(198, 12, 48)}.duet-progress progress[value]{display:flex;width:100%;height:inherit;min-height:1px;color:rgb(0, 119, 179);border:0 none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.duet-progress progress[value]::-webkit-progress-bar{background-color:rgb(240, 247, 250);border-radius:0}.duet-progress progress[value]::-webkit-progress-value{background-color:rgb(0, 119, 179);background-size:35px 20px, 100% 100%, 100% 100%;border-radius:0;-webkit-animation:animate-stripes 5s linear infinite;animation:animate-stripes 5s linear infinite}.duet-progress progress[value] ::-moz-progress-bar{background-color:rgb(240, 247, 250)}.duet-progress.duet-theme-turva progress[value]{color:rgb(198, 12, 48)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-bar{background-color:rgb(255, 241, 241)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-value{background-color:rgb(198, 12, 48)}.duet-progress.duet-theme-turva progress[value] ::-moz-progress-bar{background-color:rgb(255, 241, 241)}";export{d as duet_progress}
4
+ import{r,h as e,H as s,g as a}from"./p-7a75bff7.js";import{i as o}from"./p-aaa7a7bd.js";import{c as t}from"./p-5e59e970.js";import{g as i,c as n,d as p}from"./p-51b2f340.js";import"./p-9c3c64b9.js";const d=class{constructor(e){r(this,e),this.progressId=t("DuetProgress"),this.progressLabelId=t("DuetProgressLabel"),this.accessibleDescribedBy=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleLabel=void 0,this.accessibleLabelUploadDefaults={fi:["lähetys valmis","lähetys käynnissä"],sv:["Uppladdningen är klar","Uppladdning pågår"],en:["upload completed","upload in progress"]},this.accessibleLabelUpload=i(this.accessibleLabelUploadDefaults),this.progress=0,this.caption=void 0,this.height="10px",this.theme=""}componentWillLoad(){o(this)}connectedCallback(){n(this,{prop:"accessibleLabelUpload",defaults:"accessibleLabelUploadDefaults"})}disconnectedCallback(){p(this)}render(){return e(s,null,e("div",{"aria-live":this.accessibleLabel?"polite":"off","aria-hidden":this.accessibleLabel?"false":"true","aria-atomic":"true",style:{height:this.height},id:this.progressId,class:{"duet-progress":!0,"duet-progress-done":100===this.progress,"duet-progress-start":0===this.progress,"duet-progress-inprogress":this.progress<99&&0!==this.progress,"duet-theme-turva":"turva"===this.theme}},e("duet-visually-hidden",null,e("label",{htmlFor:this.progressLabelId},e("span",null,this.accessibleLabel,0!==this.progress&&`, ${this.accessibleLabelUpload[this.progress<99?1:0]}`))),this.caption&&e("div",{class:"duet-progress-caption"},e("span",null,this.caption)),e("progress",{id:this.progressLabelId,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,role:"progressbar",value:this.progress,max:"100","aria-valuemin":"0","aria-valuemax":"100"},e("div",{class:"progress-bar"},e("span",{style:{width:`${this.progress}%;`}},"Progress: ",this.progress,"%")))))}get element(){return a(this)}};d.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:inherit}.duet-progress{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%;min-height:1px;}.duet-progress .progress-bar{position:relative;display:block;width:100%;height:inherit;min-height:1px;background-color:rgb(240, 247, 250);border-radius:0;box-shadow:none}.duet-theme-turva .duet-progress .progress-bar{background-color:rgb(255, 241, 241)}.duet-progress .progress-bar>span{display:block;height:inherit;text-indent:-9999px;background-color:rgb(0, 119, 179);border-radius:0}.duet-theme-turva .duet-progress .progress-bar>span{background-color:rgb(198, 12, 48)}.duet-progress progress[value]{display:flex;width:100%;height:inherit;min-height:1px;color:rgb(0, 119, 179);border:0 none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.duet-progress progress[value]::-webkit-progress-bar{background-color:rgb(240, 247, 250);border-radius:0}.duet-progress progress[value]::-webkit-progress-value{background-color:rgb(0, 119, 179);background-size:35px 20px, 100% 100%, 100% 100%;border-radius:0;-webkit-animation:animate-stripes 5s linear infinite;animation:animate-stripes 5s linear infinite}.duet-progress progress[value] ::-moz-progress-bar{background-color:rgb(240, 247, 250)}.duet-progress.duet-theme-turva progress[value]{color:rgb(198, 12, 48)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-bar{background-color:rgb(255, 241, 241)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-value{background-color:rgb(198, 12, 48)}.duet-progress.duet-theme-turva progress[value] ::-moz-progress-bar{background-color:rgb(255, 241, 241)}";export{d as duet_progress}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- System.register(["./p-a19244e5.system.js","./p-e216bea4.system.js"],(function(e){"use strict";var t,n,a,i,r;return{setters:[function(e){t=e.r;n=e.h;a=e.H;i=e.g},function(e){r=e.i}],execute:function(){var o='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}.duet-menu-bar-link{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 12px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:inherit;text-align:center;text-decoration:none;white-space:nowrap}.duet-menu-bar-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-menu-bar-link:focus,.duet-menu-bar-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-menu-bar-link .menu-bar-link-icon{width:20px;height:20px}@media (min-width: 62em){.duet-menu-bar-link .menu-bar-link-icon{width:16px;height:16px}}.duet-menu-bar-link.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}@media (min-width: 62em){.duet-menu-bar-link{padding:0 16px}}@media (min-width: 76.25em){.duet-menu-bar-link{padding:0 28px}}.duet-menu-bar-link.active{color:rgb(0, 119, 179)}.duet-menu-bar-link.active::after{position:absolute;top:auto;bottom:2px;left:0;z-index:1;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(2px)}@media (min-width: 62em){.duet-menu-bar-link.active::after{z-index:auto;height:2px}}.duet-menu-bar-link.active.duet-theme-turva{color:rgb(198, 12, 48)}.duet-menu-bar-link.active.duet-theme-turva::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-menu-bar-link:hover{color:rgb(0, 119, 179)}.duet-menu-bar-link:hover.duet-theme-turva{color:rgb(198, 12, 48)}}';var u=o;var d=e("duet_menu_bar_link",function(){function e(e){t(this,e);this.theme="";this.active=false;this.href="#";this.icon=undefined;this.accessibleLabel=undefined}e.prototype.componentWillLoad=function(){r(this)};e.prototype.render=function(){return n(a,{key:"944fc042969f5fb1c958f2e2b3c3b90cf4ed09e8",role:"listitem"},n("a",{key:"8a379484694ccdd6eac62c98606b3d0410fd012f",class:{"duet-menu-bar-link":true,"duet-theme-turva":this.theme==="turva",active:this.active},href:this.href,"aria-current":this.active?"true":"false","aria-label":this.accessibleLabel},this.icon&&n("duet-icon",{key:"6cb57d184b32ccf2d88b480cf6e14febee77d8bd",class:"menu-bar-link-icon",theme:this.theme,size:"auto",name:this.icon,margin:"none",color:"currentColor"}),n("slot",{key:"be23134b984610bea7ed18384aad517712760e84"})))};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());d.style=u}}}));
4
+ System.register(["./p-2e0eb8a4.system.js","./p-e216bea4.system.js"],(function(e){"use strict";var t,n,a,i,r;return{setters:[function(e){t=e.r;n=e.h;a=e.H;i=e.g},function(e){r=e.i}],execute:function(){var o='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}.duet-menu-bar-link{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 12px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:inherit;text-align:center;text-decoration:none;white-space:nowrap}.duet-menu-bar-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-menu-bar-link:focus,.duet-menu-bar-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-menu-bar-link .menu-bar-link-icon{width:20px;height:20px}@media (min-width: 62em){.duet-menu-bar-link .menu-bar-link-icon{width:16px;height:16px}}.duet-menu-bar-link.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}@media (min-width: 62em){.duet-menu-bar-link{padding:0 16px}}@media (min-width: 76.25em){.duet-menu-bar-link{padding:0 28px}}.duet-menu-bar-link.active{color:rgb(0, 119, 179)}.duet-menu-bar-link.active::after{position:absolute;top:auto;bottom:2px;left:0;z-index:1;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(2px)}@media (min-width: 62em){.duet-menu-bar-link.active::after{z-index:auto;height:2px}}.duet-menu-bar-link.active.duet-theme-turva{color:rgb(198, 12, 48)}.duet-menu-bar-link.active.duet-theme-turva::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-menu-bar-link:hover{color:rgb(0, 119, 179)}.duet-menu-bar-link:hover.duet-theme-turva{color:rgb(198, 12, 48)}}';var u=o;var d=e("duet_menu_bar_link",function(){function e(e){t(this,e);this.theme="";this.active=false;this.href="#";this.icon=undefined;this.accessibleLabel=undefined}e.prototype.componentWillLoad=function(){r(this)};e.prototype.render=function(){return n(a,{key:"7b49e5fa6febb45032d34e0267d2c4f86fcdb929",role:"listitem"},n("a",{key:"9a0bc708043462ecb37cddf3a332beb31a44f106",class:{"duet-menu-bar-link":true,"duet-theme-turva":this.theme==="turva",active:this.active},href:this.href,"aria-current":this.active?"true":"false","aria-label":this.accessibleLabel},this.icon&&n("duet-icon",{key:"8d686c07c24a63b2effd37edcf12a283a2f303b8",class:"menu-bar-link-icon",theme:this.theme,size:"auto",name:this.icon,margin:"none",color:"currentColor"}),n("slot",{key:"d17e247634ebfd380b813f7a4b520e925cf2e966"})))};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());d.style=u}}}));
@@ -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 a,g as d}from"./p-8abb0984.js";import{d as i,e as o}from"./p-8354d1f1.js";import{i as s}from"./p-aaa7a7bd.js";import{a as l}from"./p-beeb12f1.js";import{f as r}from"./p-2eae4a0b.js";import{f as n}from"./p-a1b7f2a0.js";import{a as m,g as u,c as h,d as p}from"./p-2437b4cb.js";import{h as c}from"./p-eca03d5e.js";import{T as g}from"./p-ca3cb21e.js";import"./p-9c3c64b9.js";const b=class{constructor(a){var d,i;e(this,a),this.duetOpen=t(this,"duetOpen",7),this.duetClose=t(this,"duetClose",7),this.duetCloseComplete=t(this,"duetCloseComplete",7),this.duetBeforeClose=t(this,"duetBeforeClose",7),this.hasStickyHeader=!1,this.isAndroidDevice=(null===(i=null===(d=null===navigator||void 0===navigator?void 0:navigator.userAgent)||void 0===d?void 0:d.toLowerCase())||void 0===i?void 0:i.indexOf("android"))>-1||null,this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent),this.accessibleLoaderAnnouncementDefaults=l,this.accessibleCloseLabelDefaults={fi:"Sulje ikkuna",sv:"Stäng fönstret",en:"Close the dialog"},this.handleAndroidResizeEvents=()=>{"INPUT"==document.activeElement.tagName&&window.setTimeout((function(){var e;try{null===(e=null===document||void 0===document?void 0:document.activeElement)||void 0===e||e.scrollIntoViewIfNeeded(!0)}catch(e){}}),100)},this.open=!1,this.language=m(),this.accessibleCloseLabel=u(this.accessibleCloseLabelDefaults,this.language),this.accessibleLoaderAnnouncement=u(this.accessibleLoaderAnnouncementDefaults,this.language),this.size="medium",this.accessibleDescribedBy=void 0,this.accessibleLabelledBy=void 0,this.accessibleLabel=void 0,this.accessibleDetails=void 0,this.accessibleDescription=void 0,this.variation="default",this.gutterSize="medium",this.theme="",this.heading="",this.headingLevel="h3",this.headingVisualLevel=void 0,this.icon="",this.color="",this.active=!1,this.closeOnBlur=!1}openChanged(){this.open?(this.modalEl&&this.modalEl.scrollTop&&(this.modalEl.scrollTop=0),this.focusedElBeforeOpen=document.activeElement,i("slide-up"===this.variation?this.modalContentEl:this.modalEl,{reserveScrollBarGap:!0}),this.teleport.makeSiblingsInert(),this.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((e=>e.remove())),setTimeout((()=>{"loader"===this.variation?this.addMessage(this.accessibleLoaderAnnouncement,!1):this.isAndroidDevice?this.modalEl.focus():this.buttonEl.setFocus()}),600),setTimeout((()=>{this.modalEl.classList.add("duet-disable-transitions")}),800),this.isAndroidDevice&&window.addEventListener("resize",this.handleAndroidResizeEvents),this.duetOpen.emit()):(this.modalEl.classList.remove("duet-disable-transitions"),this.modalEl.addEventListener("transitionend",(()=>this.duetCloseComplete.emit()),{once:!0}),o("slide-up"===this.variation?this.modalContentEl:this.modalEl),this.duetClose.emit(),this.teleport.removeInertFromSiblings(),setTimeout((()=>{r(this.focusedElBeforeOpen)}),600),this.isAndroidDevice&&window.removeEventListener("resize",this.handleAndroidResizeEvents))}activeChanged(){this.open=this.active}componentWillLoad(){this.hasStickyHeader=c(this.element,"sticky-header"),s(this)}componentDidLoad(){this.active&&(this.open=!0,this.modalEl.classList.add("duet-disable-transitions"))}connectedCallback(){this.teleport||(this.teleport=new g(this.element)),this.teleport&&this.teleport.activate(),h(this,[{prop:"accessibleCloseLabel",defaults:"accessibleCloseLabelDefaults"},{prop:"accessibleLoaderAnnouncement",defaults:"accessibleLoaderAnnouncementDefaults"}])}disconnectedCallback(){p(this),this.modalEl&&o(this.modalEl)}handleKeyUp(e){this.open&&n(e)&&this.closeModal(e)}async show(){this.open=!0}async hide(){this.open=!1}async scrollToTop(e=!0){var t;const a=e?"smooth":"auto";if("slide-up"===this.variation){const e=(null===(t=this.modalEl.querySelector(".duet-modal-sticky-header"))||void 0===t?void 0:t.clientHeight)||0,d=this.modalEl.querySelector(".duet-modal-body").computedStyleMap().get("padding-top");this.slotContainerEl.style.scrollMarginTop=`${e+d.value}px`,this.slotContainerEl.scrollIntoView({behavior:a})}else this.modalEl.querySelector(".duet-modal-body").scrollIntoView({behavior:a})}async addMessage(e,t=!0){const a=document.createElement(t?"duet-paragraph":"duet-visually-hidden");a.textContent=e,a.classList.add("duet-loader-message"),t&&setTimeout((()=>{this.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((e=>e.classList.remove("show"))),a.classList.add("show")}),10),this.slotContainerEl.appendChild(a)}closeModal(e){this.duetBeforeClose.emit({originalEvent:e,component:"duet-modal"}),e.defaultPrevented||setTimeout((()=>{this.hide()}),1)}render(){var e,t;let d="primary",i="secondary";const o=a("div",{key:"0a05dbaf283737a1f77b62ab112c88b353464350",class:"duet-modal-close"},a("duet-button",{key:"3a87f9968b872763efed783e1014d1117f1d375f",ref:e=>this.buttonEl=e,variation:"plain",accessibleLabel:this.accessibleCloseLabel,color:i,iconSize:"large",icon:"navigation-close",iconOnly:!0,margin:"none",theme:this.theme,onClick:e=>this.closeModal(e),fixed:!0}));return"turva"===this.theme&&(d="primary-turva",i="secondary-turva"),a("div",{key:"c93f95ce929ec3c82786932e3d6a0fe5d82d3173",ref:e=>this.modalEl=e,"aria-label":null!==(e=this.accessibleLabel)&&void 0!==e?e:this.heading,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-describedby":this.accessibleDescribedBy,role:"loader"===this.variation?"alert":"dialog","aria-modal":!this.isSafariBrowser,tabindex:"-1",class:{"duet-modal-container":!0,"duet-theme-turva":"turva"===this.theme,"duet-modal-active":this.open,"duet-modal-slide-up":"slide-up"===this.variation,"duet-modal-has-sticky-header":this.hasStickyHeader}},a("duet-overlay",{key:"874d509e0e869ace4ec126dc6c4316f1618ac0d9","z-index":"-1",visible:this.open,variation:"loader"===this.variation?"white":"default"}),a("div",{key:"fe13b5967653c95bb6fc6087d048de8b0dddae5c",ref:e=>this.modalInnerEl=e,class:{"duet-modal-inner":!0,[this.size]:!0,"duet-modal-slide-up":"slide-up"===this.variation},onClick:e=>{this.closeOnBlur&&(e.target||e.srcElement)===this.modalInnerEl&&this.closeModal(e)}},a("div",{key:"97db4dc604168bf16f732f70233bea7b08bc3269",ref:e=>this.modalContentEl=e,class:{"duet-modal":!0,"duet-modal-has-sticky-header":this.hasStickyHeader,[this.size]:!0,[this.variation]:!0}},"none"!==this.gutterSize&&!this.hasStickyHeader&&a("duet-spacer",{key:"e238c81f94ffdef58ced08126a52e121e010c1ba"}),this.hasStickyHeader?a("div",{class:"duet-modal-sticky-header"},o,a("slot",{name:"sticky-header"})):o,a("div",{key:"e6c7fe686edbee8d767ceb94c6c355b9de5f2932",class:{"duet-modal-body":!0,"duet-modal-gutter-none":"none"===this.gutterSize,"duet-modal-gutter-small":"small"===this.gutterSize,"duet-modal-gutter-medium":"medium"===this.gutterSize,"duet-modal-gutter-large":"large"===this.gutterSize}},a("div",{key:"503f1759d8da05b03424f7cd4dc4fcbc1475b750",class:"duet-modal-header"},a("span",{key:"4da34d236160f41ebebcbedf021756e2e7f16e7a",class:"duet-modal-inner-slot-top"},a("slot",{key:"a4ec96d9dbce295980f9310f4e346b7db2b2ae1c",name:"top"})),this.icon&&a("duet-icon",{key:"189ce6c874db5b0c63f6a4f99832467967660c36",name:this.icon,size:"xx-large",color:this.color||d}),this.heading&&a("duet-heading",{key:"1ea245199b5d0824fc099b8efd3c0c78a5685c46","visual-level":null!==(t=this.headingVisualLevel)&&void 0!==t?t:this.headingLevel,level:this.headingLevel,theme:this.theme},this.heading)),"loader"===this.variation&&a("div",{key:"b6445a691a50ba8c5c675e400b5452ffc8076df5",class:"duet-modal-spinner"},a("duet-spinner",{key:"5931daa7f184bfe4639353d28004a6c940b36854",size:"large",color:"primary"})),a("div",{key:"3fb83728c1ecb7aa1c1c5cebfb426322e57065eb",class:"duet-modal-inner-slot-default",ref:e=>this.slotContainerEl=e,"aria-live":"loader"===this.variation?"assertive":"off"},a("slot",{key:"34cade5d14c9b734a6c330b9648a2d3d33cbe878"}))))))}get element(){return d(this)}static get watchers(){return{open:["openChanged"],active:["activeChanged"]}}};b.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-modal-container{position:fixed;top:0;right:0;bottom:0;left:0;z-index:900;max-height:100vh;overflow-y:auto;visibility:hidden;opacity:0;transition:300ms ease;transition-delay:200ms}.duet-modal-container.duet-modal-active{visibility:visible;opacity:1;transition:300ms ease;transition-delay:0s}.duet-modal-container.duet-disable-transitions{transition:none}.duet-modal-container.duet-modal-slide-up{overflow:hidden}::slotted(img){width:100%}.duet-modal-inner{display:flex;align-items:center;width:100%;min-height:100%;padding:20px 16px}@media (min-width: 36em){.duet-modal-inner{padding:48px 16px}}.duet-modal-inner.duet-modal-slide-up{align-items:stretch;justify-content:center;height:100%;padding-top:48px;padding-bottom:0;overflow:hidden}.duet-modal-inner.duet-modal-slide-up::after{position:absolute;bottom:0;z-index:300;display:block;width:100%;max-width:686px;height:48px;margin:auto;pointer-events:none;content:"";background:linear-gradient(rgba(255, 255, 255, 0), rgb(255, 255, 255))}.duet-modal-inner.duet-modal-slide-up::after.small{max-width:545px}.duet-modal-inner.duet-modal-slide-up::after.large{max-width:100%}@media (min-width: 36em){.duet-modal-inner.duet-modal-slide-up::after.large{max-width:1110px}}@media (max-width: 35.9375em){.duet-modal-inner.large{padding-right:0;padding-left:0}.duet-modal-inner.duet-modal-slide-up{padding:0;padding-top:28px}}.duet-modal{position:relative;width:100%;max-width:686px;margin:auto;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-weight:400;font-variant-numeric:tabular-nums;line-height:1.5;color:rgb(8, 42, 77);background:rgb(255, 255, 255);border-radius:4px;opacity:0;transition:300ms ease;transition-delay:0ms;transform:scale(0.96)}.duet-theme-turva .duet-modal{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-modal-active .duet-modal{opacity:1;transition:300ms ease;transition-delay:200ms;transform:none}.duet-modal-active .duet-modal.slide-up{top:0;transition:top 600ms ease}.duet-modal.loader{text-align:center;background:transparent}.duet-modal.loader .duet-modal-close{display:none}.duet-modal.loader .duet-modal-spinner{position:relative;height:120px}.duet-modal.loader .duet-modal-inner-slot-default{position:relative;backdrop-filter:blur(10px)}.duet-modal.loader duet-paragraph.duet-loader-message{position:absolute;opacity:0;transition:all 300ms ease;transform:scaleY(0);transform-origin:top}.duet-modal.loader duet-paragraph.duet-loader-message.show{opacity:1;transform:scaleY(1);transform-origin:bottom}.duet-modal.loader duet-paragraph.duet-loader-message.show::part(duet-paragraph){backdrop-filter:blur(10px)}.duet-disable-transitions .duet-modal{transition:none}.duet-modal.small{max-width:545px}.duet-modal.large{max-width:100%}@media (min-width: 36em){.duet-modal.large{max-width:1110px}}.duet-modal.slide-up{top:100vh;margin:0;overflow:auto;border-radius:4px 4px 0 0;opacity:1;transition:top 600ms ease}@media (max-width: 35.9375em){.duet-modal.slide-up{border-radius:16px 16px 0 0}}.duet-modal.duet-modal-has-sticky-header{height:100%;overflow:auto}.duet-modal:focus{outline:0}.duet-modal-body,.duet-modal-sticky-header{width:100%;padding:36px 28px}.duet-modal-body.duet-modal-gutter-none,.duet-modal-sticky-header.duet-modal-gutter-none{padding:0 !important}.duet-modal-body.duet-modal-gutter-small,.duet-modal-sticky-header.duet-modal-gutter-small{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}@media (max-width: 22.5em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 28px}}@media (max-width: 35.9375em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}}@media (min-width: 36em){.duet-modal-body,.duet-modal-sticky-header{padding:36px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:28px 72px}}@media (min-width: 48em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 72px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:36px 72px}}@media (min-width: 76.25em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 48px 48px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 94px}.small .duet-modal-body,.small .duet-modal-sticky-header{padding:36px 48px}}.duet-modal-header{text-align:center}.duet-modal-sticky-header{position:sticky;top:0;z-index:300;display:block;padding-bottom:12px;text-align:left;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229);border-radius:4px 4px 0 0}@media (max-width: 35.9375em){.duet-modal-sticky-header{border-radius:16px 16px 0 0}}.duet-theme-turva .duet-modal-sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-modal-close{position:absolute;top:12px;right:12px}.duet-modal-heading{width:100%;padding-right:60px;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-style:normal;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);text-decoration:none;text-overflow:ellipsis;letter-spacing:-0.01rem;white-space:nowrap}.duet-modal-heading.duet-p-0{padding:0 !important}.duet-modal-heading.duet-m-0{margin:0 !important}';export{b as duet_modal}
4
+ import{r as e,c as t,h as a,g as d}from"./p-7a75bff7.js";import{d as i,e as o}from"./p-8354d1f1.js";import{i as s}from"./p-aaa7a7bd.js";import{a as l}from"./p-beeb12f1.js";import{f as r}from"./p-fbc347fd.js";import{f as n}from"./p-a1b7f2a0.js";import{a as m,g as u,c as h,d as p}from"./p-51b2f340.js";import{h as c}from"./p-ecf89776.js";import{T as g}from"./p-ca3cb21e.js";import"./p-9c3c64b9.js";const b=class{constructor(a){var d,i;e(this,a),this.duetOpen=t(this,"duetOpen",7),this.duetClose=t(this,"duetClose",7),this.duetCloseComplete=t(this,"duetCloseComplete",7),this.duetBeforeClose=t(this,"duetBeforeClose",7),this.hasStickyHeader=!1,this.isAndroidDevice=(null===(i=null===(d=null===navigator||void 0===navigator?void 0:navigator.userAgent)||void 0===d?void 0:d.toLowerCase())||void 0===i?void 0:i.indexOf("android"))>-1||null,this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent),this.accessibleLoaderAnnouncementDefaults=l,this.accessibleCloseLabelDefaults={fi:"Sulje ikkuna",sv:"Stäng fönstret",en:"Close the dialog"},this.handleAndroidResizeEvents=()=>{"INPUT"==document.activeElement.tagName&&window.setTimeout((function(){var e;try{null===(e=null===document||void 0===document?void 0:document.activeElement)||void 0===e||e.scrollIntoViewIfNeeded(!0)}catch(e){}}),100)},this.open=!1,this.language=m(),this.accessibleCloseLabel=u(this.accessibleCloseLabelDefaults,this.language),this.accessibleLoaderAnnouncement=u(this.accessibleLoaderAnnouncementDefaults,this.language),this.size="medium",this.accessibleDescribedBy=void 0,this.accessibleLabelledBy=void 0,this.accessibleLabel=void 0,this.accessibleDetails=void 0,this.accessibleDescription=void 0,this.variation="default",this.gutterSize="medium",this.theme="",this.heading="",this.headingLevel="h3",this.headingVisualLevel=void 0,this.icon="",this.color="",this.active=!1,this.closeOnBlur=!1}openChanged(){this.open?(this.modalEl&&this.modalEl.scrollTop&&(this.modalEl.scrollTop=0),this.focusedElBeforeOpen=document.activeElement,i("slide-up"===this.variation?this.modalContentEl:this.modalEl,{reserveScrollBarGap:!0}),this.teleport.makeSiblingsInert(),this.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((e=>e.remove())),setTimeout((()=>{"loader"===this.variation?this.addMessage(this.accessibleLoaderAnnouncement,!1):this.isAndroidDevice?this.modalEl.focus():this.buttonEl.setFocus()}),600),setTimeout((()=>{this.modalEl.classList.add("duet-disable-transitions")}),800),this.isAndroidDevice&&window.addEventListener("resize",this.handleAndroidResizeEvents),this.duetOpen.emit()):(this.modalEl.classList.remove("duet-disable-transitions"),this.modalEl.addEventListener("transitionend",(()=>this.duetCloseComplete.emit()),{once:!0}),o("slide-up"===this.variation?this.modalContentEl:this.modalEl),this.duetClose.emit(),this.teleport.removeInertFromSiblings(),setTimeout((()=>{r(this.focusedElBeforeOpen)}),600),this.isAndroidDevice&&window.removeEventListener("resize",this.handleAndroidResizeEvents))}activeChanged(){this.open=this.active}componentWillLoad(){this.hasStickyHeader=c(this.element,"sticky-header"),s(this)}componentDidLoad(){this.active&&(this.open=!0,this.modalEl.classList.add("duet-disable-transitions"))}connectedCallback(){this.teleport||(this.teleport=new g(this.element)),this.teleport&&this.teleport.activate(),h(this,[{prop:"accessibleCloseLabel",defaults:"accessibleCloseLabelDefaults"},{prop:"accessibleLoaderAnnouncement",defaults:"accessibleLoaderAnnouncementDefaults"}])}disconnectedCallback(){p(this),this.modalEl&&o(this.modalEl)}handleKeyUp(e){this.open&&n(e)&&this.closeModal(e)}async show(){this.open=!0}async hide(){this.open=!1}async scrollToTop(e=!0){var t;const a=e?"smooth":"auto";if("slide-up"===this.variation){const e=(null===(t=this.modalEl.querySelector(".duet-modal-sticky-header"))||void 0===t?void 0:t.clientHeight)||0,d=this.modalEl.querySelector(".duet-modal-body").computedStyleMap().get("padding-top");this.slotContainerEl.style.scrollMarginTop=`${e+d.value}px`,this.slotContainerEl.scrollIntoView({behavior:a})}else this.modalEl.querySelector(".duet-modal-body").scrollIntoView({behavior:a})}async addMessage(e,t=!0){const a=document.createElement(t?"duet-paragraph":"duet-visually-hidden");a.textContent=e,a.classList.add("duet-loader-message"),t&&setTimeout((()=>{this.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((e=>e.classList.remove("show"))),a.classList.add("show")}),10),this.slotContainerEl.appendChild(a)}closeModal(e){this.duetBeforeClose.emit({originalEvent:e,component:"duet-modal"}),e.defaultPrevented||setTimeout((()=>{this.hide()}),1)}render(){var e,t;let d="primary",i="secondary";const o=a("div",{key:"e3680a1a39e49c693a42fc7fb9759bc668d40db6",class:"duet-modal-close"},a("duet-button",{key:"f83e0f5cb99b5a95989e6c142c12dd4abdccd4c5",ref:e=>this.buttonEl=e,variation:"plain",accessibleLabel:this.accessibleCloseLabel,color:i,iconSize:"large",icon:"navigation-close",iconOnly:!0,margin:"none",theme:this.theme,onClick:e=>this.closeModal(e),fixed:!0}));return"turva"===this.theme&&(d="primary-turva",i="secondary-turva"),a("div",{key:"958d3dcd432c8954835f6cb522b2fe09bccafaa4",ref:e=>this.modalEl=e,"aria-label":null!==(e=this.accessibleLabel)&&void 0!==e?e:this.heading,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-describedby":this.accessibleDescribedBy,role:"loader"===this.variation?"alert":"dialog","aria-modal":!this.isSafariBrowser,tabindex:"-1",class:{"duet-modal-container":!0,"duet-theme-turva":"turva"===this.theme,"duet-modal-active":this.open,"duet-modal-slide-up":"slide-up"===this.variation,"duet-modal-has-sticky-header":this.hasStickyHeader}},a("duet-overlay",{key:"fbc2fc13d50311db1c8a0a4f2cc2803129eafe58","z-index":"-1",visible:this.open,variation:"loader"===this.variation?"white":"default"}),a("div",{key:"8a07986bcfc3448a09fef42541dbe3cfada8bdcb",ref:e=>this.modalInnerEl=e,class:{"duet-modal-inner":!0,[this.size]:!0,"duet-modal-slide-up":"slide-up"===this.variation},onClick:e=>{this.closeOnBlur&&(e.target||e.srcElement)===this.modalInnerEl&&this.closeModal(e)}},a("div",{key:"a0b9f37bf6628afa8f99e12a917d57eaeec54583",ref:e=>this.modalContentEl=e,class:{"duet-modal":!0,"duet-modal-has-sticky-header":this.hasStickyHeader,[this.size]:!0,[this.variation]:!0}},"none"!==this.gutterSize&&!this.hasStickyHeader&&a("duet-spacer",{key:"9168f67fd2f8ede394df502d619287153224558e"}),this.hasStickyHeader?a("div",{class:"duet-modal-sticky-header"},o,a("slot",{name:"sticky-header"})):o,a("div",{key:"9f08ea38b797e2f08e90b844af00bc7520f74524",class:{"duet-modal-body":!0,"duet-modal-gutter-none":"none"===this.gutterSize,"duet-modal-gutter-small":"small"===this.gutterSize,"duet-modal-gutter-medium":"medium"===this.gutterSize,"duet-modal-gutter-large":"large"===this.gutterSize}},a("div",{key:"46de5037af55d3b54aea4f8a133aa3ed573c0599",class:"duet-modal-header"},a("span",{key:"ce17770a8dd4f97629729ab7823f9f7da02e5234",class:"duet-modal-inner-slot-top"},a("slot",{key:"b347be9693d36ac02bd0bbfb004c84fbe2a27b2f",name:"top"})),this.icon&&a("duet-icon",{key:"4e60fc0b0a51d95dcc67841be4e780c5e71538e0",name:this.icon,size:"xx-large",color:this.color||d}),this.heading&&a("duet-heading",{key:"3749e6adf5b669773e1ecf50e989b8dceac017bd","visual-level":null!==(t=this.headingVisualLevel)&&void 0!==t?t:this.headingLevel,level:this.headingLevel,theme:this.theme},this.heading)),"loader"===this.variation&&a("div",{key:"ec5d5a5d428cc6cd4cb86c1c7ba9e34f0725a4c0",class:"duet-modal-spinner"},a("duet-spinner",{key:"c4459171ed652867da2bcc125dcab78ba11aca07",size:"large",color:"primary"})),a("div",{key:"4aa8b636aca91d1178fc3749a905d467c102461e",class:"duet-modal-inner-slot-default",ref:e=>this.slotContainerEl=e,"aria-live":"loader"===this.variation?"assertive":"off"},a("slot",{key:"47bb63f76e7bb4ae0a4c765bc4fbd4f26a8b47f9"}))))))}get element(){return d(this)}static get watchers(){return{open:["openChanged"],active:["activeChanged"]}}};b.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-modal-container{position:fixed;top:0;right:0;bottom:0;left:0;z-index:900;max-height:100vh;overflow-y:auto;visibility:hidden;opacity:0;transition:300ms ease;transition-delay:200ms}.duet-modal-container.duet-modal-active{visibility:visible;opacity:1;transition:300ms ease;transition-delay:0s}.duet-modal-container.duet-disable-transitions{transition:none}.duet-modal-container.duet-modal-slide-up{overflow:hidden}::slotted(img){width:100%}.duet-modal-inner{display:flex;align-items:center;width:100%;min-height:100%;padding:20px 16px}@media (min-width: 36em){.duet-modal-inner{padding:48px 16px}}.duet-modal-inner.duet-modal-slide-up{align-items:stretch;justify-content:center;height:100%;padding-top:48px;padding-bottom:0;overflow:hidden}.duet-modal-inner.duet-modal-slide-up::after{position:absolute;bottom:0;z-index:300;display:block;width:100%;max-width:686px;height:48px;margin:auto;pointer-events:none;content:"";background:linear-gradient(rgba(255, 255, 255, 0), rgb(255, 255, 255))}.duet-modal-inner.duet-modal-slide-up::after.small{max-width:545px}.duet-modal-inner.duet-modal-slide-up::after.large{max-width:100%}@media (min-width: 36em){.duet-modal-inner.duet-modal-slide-up::after.large{max-width:1110px}}@media (max-width: 35.9375em){.duet-modal-inner.large{padding-right:0;padding-left:0}.duet-modal-inner.duet-modal-slide-up{padding:0;padding-top:28px}}.duet-modal{position:relative;width:100%;max-width:686px;margin:auto;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-weight:400;font-variant-numeric:tabular-nums;line-height:1.5;color:rgb(8, 42, 77);background:rgb(255, 255, 255);border-radius:4px;opacity:0;transition:300ms ease;transition-delay:0ms;transform:scale(0.96)}.duet-theme-turva .duet-modal{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-modal-active .duet-modal{opacity:1;transition:300ms ease;transition-delay:200ms;transform:none}.duet-modal-active .duet-modal.slide-up{top:0;transition:top 600ms ease}.duet-modal.loader{text-align:center;background:transparent}.duet-modal.loader .duet-modal-close{display:none}.duet-modal.loader .duet-modal-spinner{position:relative;height:120px}.duet-modal.loader .duet-modal-inner-slot-default{position:relative;backdrop-filter:blur(10px)}.duet-modal.loader duet-paragraph.duet-loader-message{position:absolute;opacity:0;transition:all 300ms ease;transform:scaleY(0);transform-origin:top}.duet-modal.loader duet-paragraph.duet-loader-message.show{opacity:1;transform:scaleY(1);transform-origin:bottom}.duet-modal.loader duet-paragraph.duet-loader-message.show::part(duet-paragraph){backdrop-filter:blur(10px)}.duet-disable-transitions .duet-modal{transition:none}.duet-modal.small{max-width:545px}.duet-modal.large{max-width:100%}@media (min-width: 36em){.duet-modal.large{max-width:1110px}}.duet-modal.slide-up{top:100vh;margin:0;overflow:auto;border-radius:4px 4px 0 0;opacity:1;transition:top 600ms ease}@media (max-width: 35.9375em){.duet-modal.slide-up{border-radius:16px 16px 0 0}}.duet-modal.duet-modal-has-sticky-header{height:100%;overflow:auto}.duet-modal:focus{outline:0}.duet-modal-body,.duet-modal-sticky-header{width:100%;padding:36px 28px}.duet-modal-body.duet-modal-gutter-none,.duet-modal-sticky-header.duet-modal-gutter-none{padding:0 !important}.duet-modal-body.duet-modal-gutter-small,.duet-modal-sticky-header.duet-modal-gutter-small{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}@media (max-width: 22.5em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 28px}}@media (max-width: 35.9375em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}}@media (min-width: 36em){.duet-modal-body,.duet-modal-sticky-header{padding:36px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:28px 72px}}@media (min-width: 48em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 72px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:36px 72px}}@media (min-width: 76.25em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 48px 48px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 94px}.small .duet-modal-body,.small .duet-modal-sticky-header{padding:36px 48px}}.duet-modal-header{text-align:center}.duet-modal-sticky-header{position:sticky;top:0;z-index:300;display:block;padding-bottom:12px;text-align:left;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229);border-radius:4px 4px 0 0}@media (max-width: 35.9375em){.duet-modal-sticky-header{border-radius:16px 16px 0 0}}.duet-theme-turva .duet-modal-sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-modal-close{position:absolute;top:12px;right:12px}.duet-modal-heading{width:100%;padding-right:60px;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-style:normal;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);text-decoration:none;text-overflow:ellipsis;letter-spacing:-0.01rem;white-space:nowrap}.duet-modal-heading.duet-p-0{padding:0 !important}.duet-modal-heading.duet-m-0{margin:0 !important}';export{b as duet_modal}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- System.register(["./p-a19244e5.system.js","./p-e216bea4.system.js","./p-cbbf6d6a.system.js","./p-ef731dfb.system.js"],(function(e){"use strict";var t,i,a,h,d,r;return{setters:[function(e){t=e.r;i=e.h;a=e.g;h=e.H},function(e){d=e.i},function(e){r=e.g},function(){}],execute:function(){var s="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-divider{-webkit-user-select:none;user-select:none;display:block;width:100%;height:1px;margin-top:36px !important;margin-bottom:28px;background:rgb(212, 223, 229)}.duet-divider.duet-p-0{padding:0 !important}.duet-divider.duet-m-0{margin:0 !important}.duet-divider.duet-m-s{margin-bottom:16px !important;margin-top:0 !important}.duet-divider.duet-theme-turva{background:rgb(222, 224, 228)}";var n=s;var p=e("duet_divider",function(){function e(e){t(this,e);this.theme="";this.margin="auto";this.color=""}e.prototype.componentWillLoad=function(){d(this)};e.prototype.render=function(){var e=r(this.color);return i("div",{key:"c2cc3db06f08c31c90b7038ebaa32159765ae737",class:{"duet-m-0":this.margin==="none","duet-m-s":this.margin==="small","duet-divider":true,"duet-theme-turva":this.theme==="turva"},style:{background:e}})};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());p.style=n;var m=":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:12px;min-width:12px;height:12px}@media (min-width: 36em){:host{width:16px;min-width:16px;height:16px}}:host(.duet-spacer-horizontal){display:inline-block;height:100% !important}:host(.duet-spacer-horizontal.xx-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.xx-small){width:4px;min-width:4px}}:host(.duet-spacer-horizontal.x-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.x-small){width:8px;min-width:8px}}:host(.duet-spacer-horizontal.small){width:8px;min-width:8px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.small){width:12px;min-width:12px}}:host(.duet-spacer-horizontal.medium){height:100%}:host(.duet-spacer-horizontal.large){width:16px;min-width:16px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.large){width:20px;min-width:20px}}:host(.duet-spacer-horizontal.x-large){width:20px;min-width:20px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.x-large){width:28px;min-width:28px}}:host(.duet-spacer-horizontal.xx-large){width:28px;min-width:28px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.xx-large){width:36px;min-width:36px}}:host(.duet-spacer-horizontal.xxx-large){width:36px;min-width:36px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.xxx-large){width:48px;min-width:48px}}:host(.duet-spacer-horizontal.xxxx-large){width:48px;min-width:48px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.xxxx-large){width:72px;min-width:72px}}:host(.duet-spacer-vertical.xx-small){width:100%;height:4px;min-height:4px}:host(.duet-spacer-vertical.x-small){width:100%;height:4px;min-height:4px}@media (min-width: 36em){:host(.duet-spacer-vertical.x-small){height:8px;min-height:8px}}:host(.duet-spacer-vertical.small){width:100%;height:8px;min-height:8px}@media (min-width: 36em){:host(.duet-spacer-vertical.small){height:12px;min-height:12px}}:host(.duet-spacer-vertical.medium){width:100%}:host(.duet-spacer-vertical.large){width:100%;height:16px;min-height:16px}@media (min-width: 36em){:host(.duet-spacer-vertical.large){height:20px;min-height:20px}}:host(.duet-spacer-vertical.x-large){width:100%;height:20px;min-height:20px}@media (min-width: 36em){:host(.duet-spacer-vertical.x-large){height:28px;min-height:28px}}:host(.duet-spacer-vertical.xx-large){width:100%;height:28px;min-height:28px}@media (min-width: 36em){:host(.duet-spacer-vertical.xx-large){height:36px;min-height:36px}}:host(.duet-spacer-vertical.xxx-large){width:100%;height:36px;min-height:36px}@media (min-width: 36em){:host(.duet-spacer-vertical.xxx-large){height:48px;min-height:48px}}:host(.duet-spacer-vertical.xxxx-large){width:100%;height:48px;min-height:48px}@media (min-width: 36em){:host(.duet-spacer-vertical.xxxx-large){height:72px;min-height:72px}}:host(.duet-spacer-xx-small){display:none}@media (max-width: 22.5em){:host(.duet-spacer-xx-small){display:block}}:host(.duet-spacer-x-small){display:none}@media (max-width: 35.9375em){:host(.duet-spacer-x-small){display:block}}:host(.duet-spacer-small){display:none}@media (min-width: 36em){:host(.duet-spacer-small){display:block}}:host(.duet-spacer-medium){display:none}@media (min-width: 48em){:host(.duet-spacer-medium){display:block}}:host(.duet-spacer-large){display:none}@media (min-width: 62em){:host(.duet-spacer-large){display:block}}:host(.duet-spacer-x-large){display:none}@media (min-width: 64.0625em){:host(.duet-spacer-x-large){display:block}}:host(.duet-spacer-xx-large){display:none}@media (min-width: 76.25em){:host(.duet-spacer-xx-large){display:block}}";var o=m;var l=e("duet_spacer",function(){function e(e){t(this,e);this.size="medium";this.direction="vertical";this.breakpoint=""}e.prototype.render=function(){var e;return i(h,{key:"9983782e43b5323f7af87b3b18656794fa851208",class:(e={"duet-spacer":true,"duet-spacer-xx-small":this.breakpoint==="xx-small","duet-spacer-x-small":this.breakpoint==="x-small","duet-spacer-small":this.breakpoint==="small","duet-spacer-medium":this.breakpoint==="medium","duet-spacer-large":this.breakpoint==="large","duet-spacer-x-large":this.breakpoint==="x-large","duet-spacer-xx-large":this.breakpoint==="xx-large"},e[this.size]=true,e["duet-spacer-".concat(this.direction)]=true,e)})};return e}());l.style=o}}}));
4
+ System.register(["./p-2e0eb8a4.system.js","./p-e216bea4.system.js","./p-4cff3036.system.js","./p-ba03d034.system.js"],(function(e){"use strict";var t,i,a,h,d,r;return{setters:[function(e){t=e.r;i=e.h;a=e.g;h=e.H},function(e){d=e.i},function(e){r=e.g},function(){}],execute:function(){var s="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-divider{-webkit-user-select:none;user-select:none;display:block;width:100%;height:1px;margin-top:36px !important;margin-bottom:28px;background:rgb(212, 223, 229)}.duet-divider.duet-p-0{padding:0 !important}.duet-divider.duet-m-0{margin:0 !important}.duet-divider.duet-m-s{margin-bottom:16px !important;margin-top:0 !important}.duet-divider.duet-theme-turva{background:rgb(222, 224, 228)}";var n=s;var p=e("duet_divider",function(){function e(e){t(this,e);this.theme="";this.margin="auto";this.color=""}e.prototype.componentWillLoad=function(){d(this)};e.prototype.render=function(){var e=r(this.color);return i("div",{key:"25f4714a082e71f77ac7a873e1f4a37a9ba44e1c",class:{"duet-m-0":this.margin==="none","duet-m-s":this.margin==="small","duet-divider":true,"duet-theme-turva":this.theme==="turva"},style:{background:e}})};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());p.style=n;var m=":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:12px;min-width:12px;height:12px}@media (min-width: 36em){:host{width:16px;min-width:16px;height:16px}}:host(.duet-spacer-horizontal){display:inline-block;height:100% !important}:host(.duet-spacer-horizontal.xx-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.xx-small){width:4px;min-width:4px}}:host(.duet-spacer-horizontal.x-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.x-small){width:8px;min-width:8px}}:host(.duet-spacer-horizontal.small){width:8px;min-width:8px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.small){width:12px;min-width:12px}}:host(.duet-spacer-horizontal.medium){height:100%}:host(.duet-spacer-horizontal.large){width:16px;min-width:16px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.large){width:20px;min-width:20px}}:host(.duet-spacer-horizontal.x-large){width:20px;min-width:20px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.x-large){width:28px;min-width:28px}}:host(.duet-spacer-horizontal.xx-large){width:28px;min-width:28px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.xx-large){width:36px;min-width:36px}}:host(.duet-spacer-horizontal.xxx-large){width:36px;min-width:36px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.xxx-large){width:48px;min-width:48px}}:host(.duet-spacer-horizontal.xxxx-large){width:48px;min-width:48px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.xxxx-large){width:72px;min-width:72px}}:host(.duet-spacer-vertical.xx-small){width:100%;height:4px;min-height:4px}:host(.duet-spacer-vertical.x-small){width:100%;height:4px;min-height:4px}@media (min-width: 36em){:host(.duet-spacer-vertical.x-small){height:8px;min-height:8px}}:host(.duet-spacer-vertical.small){width:100%;height:8px;min-height:8px}@media (min-width: 36em){:host(.duet-spacer-vertical.small){height:12px;min-height:12px}}:host(.duet-spacer-vertical.medium){width:100%}:host(.duet-spacer-vertical.large){width:100%;height:16px;min-height:16px}@media (min-width: 36em){:host(.duet-spacer-vertical.large){height:20px;min-height:20px}}:host(.duet-spacer-vertical.x-large){width:100%;height:20px;min-height:20px}@media (min-width: 36em){:host(.duet-spacer-vertical.x-large){height:28px;min-height:28px}}:host(.duet-spacer-vertical.xx-large){width:100%;height:28px;min-height:28px}@media (min-width: 36em){:host(.duet-spacer-vertical.xx-large){height:36px;min-height:36px}}:host(.duet-spacer-vertical.xxx-large){width:100%;height:36px;min-height:36px}@media (min-width: 36em){:host(.duet-spacer-vertical.xxx-large){height:48px;min-height:48px}}:host(.duet-spacer-vertical.xxxx-large){width:100%;height:48px;min-height:48px}@media (min-width: 36em){:host(.duet-spacer-vertical.xxxx-large){height:72px;min-height:72px}}:host(.duet-spacer-xx-small){display:none}@media (max-width: 22.5em){:host(.duet-spacer-xx-small){display:block}}:host(.duet-spacer-x-small){display:none}@media (max-width: 35.9375em){:host(.duet-spacer-x-small){display:block}}:host(.duet-spacer-small){display:none}@media (min-width: 36em){:host(.duet-spacer-small){display:block}}:host(.duet-spacer-medium){display:none}@media (min-width: 48em){:host(.duet-spacer-medium){display:block}}:host(.duet-spacer-large){display:none}@media (min-width: 62em){:host(.duet-spacer-large){display:block}}:host(.duet-spacer-x-large){display:none}@media (min-width: 64.0625em){:host(.duet-spacer-x-large){display:block}}:host(.duet-spacer-xx-large){display:none}@media (min-width: 76.25em){:host(.duet-spacer-xx-large){display:block}}";var o=m;var l=e("duet_spacer",function(){function e(e){t(this,e);this.size="medium";this.direction="vertical";this.breakpoint=""}e.prototype.render=function(){var e;return i(h,{key:"2aa5669c773f8841ad33637ee24c845c7eeb5dd2",class:(e={"duet-spacer":true,"duet-spacer-xx-small":this.breakpoint==="xx-small","duet-spacer-x-small":this.breakpoint==="x-small","duet-spacer-small":this.breakpoint==="small","duet-spacer-medium":this.breakpoint==="medium","duet-spacer-large":this.breakpoint==="large","duet-spacer-x-large":this.breakpoint==="x-large","duet-spacer-xx-large":this.breakpoint==="xx-large"},e[this.size]=true,e["duet-spacer-".concat(this.direction)]=true,e)})};return e}());l.style=o}}}));
@@ -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 o,H as a,g as n}from"./p-8abb0984.js";import{i}from"./p-aaa7a7bd.js";import{s,u as d}from"./p-a1b7f2a0.js";const r=class{constructor(o){e(this,o),this.duetCookieConsent=t(this,"duetCookieConsent",7),this.handleClick=e=>{e.preventDefault(),this.duetCookieConsent.emit({component:"duet-cookie-consent"})},this.accessibleLabel="Hyväksyn evästeiden käytön",this.theme=""}handleFocusIn(e){e.composedPath()[0]!==this.element&&this.element.classList.add("descendant-focused")}handleFocusOut(){this.element.classList.remove("descendant-focused")}componentWillLoad(){i(this)}connectedCallback(){s(this)}disconnectedCallback(){d(this)}render(){return o(a,{key:"61cde7dad29f6806c3bf5f598897ebab55a50c2c",tabindex:"0",class:{"duet-theme-turva":"turva"===this.theme}},o("div",{key:"acb59a9600f655eb3c485a7334dd078c03f82f56",class:{"duet-cookie-consent":!0,"duet-theme-turva":"turva"===this.theme}},o("div",{key:"5d1eb2561aef70174bb1ca9d11e44ae2d743a13a",class:"duet-cookie-consent-content"},o("div",{key:"ef24cb4ba0672188c6216da4007746b52fa46526",class:"expand"},o("slot",{key:"7e170fcdf30814f4308ae952a2236e67b5fecf2e"})),o("duet-spacer",{key:"3155cd41922ea15d6543243292651832b353461f",size:"large",direction:"horizontal"}),o("div",{key:"e6578866cc2ea81852778c514eb5c04f766a2dcc"},o("duet-button",{key:"dae7a5c4b619f93d19fbc3e72e0c782fbef9550f",variation:"negative",size:"small",onClick:this.handleClick,margin:"none","aria-label":this.accessibleLabel,theme:this.theme},"OK")))))}get element(){return n(this)}};r.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:fixed;right:0;bottom:0;left:0;z-index:950;display:block;width:100%;box-shadow:0 2px 20px 0 rgba(0, 0, 0, 0.2)}@media (min-width: 48em){:host{right:28px;bottom:28px;left:auto;width:25rem}}:host(:focus){outline:0}:host(.user-is-tabbing:not(.descendant-focused):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:not(.descendant-focused).duet-theme-turva:focus){box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-cookie-consent{padding:20px;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;color:rgb(255, 255, 255) !important;background-color:rgba(4, 21, 39, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent{background:rgba(4, 21, 39, 0.8);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}}.duet-cookie-consent.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";background-color:rgba(12, 14, 29, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent.duet-theme-turva{background:rgba(12, 14, 29, 0.8)}}@media (min-width: 48em){.duet-cookie-consent{padding:20px;border-radius:4px}}.duet-cookie-consent-content{display:flex;align-items:center;max-width:1110px;margin:0 auto}.duet-cookie-consent-content .expand{flex:1}::slotted(a){font-weight:600;color:rgb(255, 255, 255) !important;text-decoration:underline;white-space:nowrap}::slotted(a[target=_blank]){padding-right:16px;background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjZmZmIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjUgMmExLjUgMS41IDAgMDEuMTQgM0gzLjc1Yy0uMzggMC0uNy4yOC0uNzQuNjVsLS4wMS4xdjE0LjVjMCAuMzguMjguNy42NS43NGwuMS4wMWgxNC41Yy4zOCAwIC43LS4yOC43NC0uNjVsLjAxLS4xdi02Ljg5YTEuNSAxLjUgMCAwMTMgMHY2Ljg5QTMuNzUgMy43NSAwIDAxMTguMjUgMjRIMy43NUEzLjc1IDMuNzUgMCAwMTAgMjAuMjVWNS43NUEzLjc1IDMuNzUgMCAwMTMuNzUgMnptMTItMmMuNzggMCAxLjQyLjYgMS41IDEuMzZWNy41YTEuNSAxLjUgMCAwMS0zIC4xNFY1LjEybC01LjQ0IDUuNDRhMS41IDEuNSAwIDAxLTIuMjItMmwuMS0uMTJMMTguODggM0gxNi41QTEuNSAxLjUgMCAwMTE1IDEuNjRWMS41YzAtLjc4LjYtMS40MiAxLjM2LTEuNWguMTR6Ii8+PC9zdmc+") no-repeat right 50%;background-size:12px 10px}::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva ::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}';export{r as duet_cookie_consent}
4
+ import{r as e,c as t,h as o,H as a,g as n}from"./p-7a75bff7.js";import{i}from"./p-aaa7a7bd.js";import{s,u as d}from"./p-a1b7f2a0.js";const r=class{constructor(o){e(this,o),this.duetCookieConsent=t(this,"duetCookieConsent",7),this.handleClick=e=>{e.preventDefault(),this.duetCookieConsent.emit({component:"duet-cookie-consent"})},this.accessibleLabel="Hyväksyn evästeiden käytön",this.theme=""}handleFocusIn(e){e.composedPath()[0]!==this.element&&this.element.classList.add("descendant-focused")}handleFocusOut(){this.element.classList.remove("descendant-focused")}componentWillLoad(){i(this)}connectedCallback(){s(this)}disconnectedCallback(){d(this)}render(){return o(a,{key:"a1ecd4a76baeb20fb29f1b50713568a61720c2eb",tabindex:"0",class:{"duet-theme-turva":"turva"===this.theme}},o("div",{key:"6b17b8d174b8bc5aa8cc5e8b0df9ddd034a1a2b0",class:{"duet-cookie-consent":!0,"duet-theme-turva":"turva"===this.theme}},o("div",{key:"d56a7cad1fe926db95e6124f4956d638b87d8002",class:"duet-cookie-consent-content"},o("div",{key:"7204cfdbde061697e6d8a9f81f446257eadf8c66",class:"expand"},o("slot",{key:"4a776a6aff7404999fac0ffb8450a35f9446a259"})),o("duet-spacer",{key:"e7f2aeaa800f7b5ae0e87343e46f59e4e46bf558",size:"large",direction:"horizontal"}),o("div",{key:"35fc1ff56232a1bcf2b56867188ec75017be905f"},o("duet-button",{key:"f59636a4e6a53ff79bddabe98ef61cd75b02b45e",variation:"negative",size:"small",onClick:this.handleClick,margin:"none","aria-label":this.accessibleLabel,theme:this.theme},"OK")))))}get element(){return n(this)}};r.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:fixed;right:0;bottom:0;left:0;z-index:950;display:block;width:100%;box-shadow:0 2px 20px 0 rgba(0, 0, 0, 0.2)}@media (min-width: 48em){:host{right:28px;bottom:28px;left:auto;width:25rem}}:host(:focus){outline:0}:host(.user-is-tabbing:not(.descendant-focused):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:not(.descendant-focused).duet-theme-turva:focus){box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-cookie-consent{padding:20px;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;color:rgb(255, 255, 255) !important;background-color:rgba(4, 21, 39, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent{background:rgba(4, 21, 39, 0.8);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}}.duet-cookie-consent.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";background-color:rgba(12, 14, 29, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent.duet-theme-turva{background:rgba(12, 14, 29, 0.8)}}@media (min-width: 48em){.duet-cookie-consent{padding:20px;border-radius:4px}}.duet-cookie-consent-content{display:flex;align-items:center;max-width:1110px;margin:0 auto}.duet-cookie-consent-content .expand{flex:1}::slotted(a){font-weight:600;color:rgb(255, 255, 255) !important;text-decoration:underline;white-space:nowrap}::slotted(a[target=_blank]){padding-right:16px;background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjZmZmIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjUgMmExLjUgMS41IDAgMDEuMTQgM0gzLjc1Yy0uMzggMC0uNy4yOC0uNzQuNjVsLS4wMS4xdjE0LjVjMCAuMzguMjguNy42NS43NGwuMS4wMWgxNC41Yy4zOCAwIC43LS4yOC43NC0uNjVsLjAxLS4xdi02Ljg5YTEuNSAxLjUgMCAwMTMgMHY2Ljg5QTMuNzUgMy43NSAwIDAxMTguMjUgMjRIMy43NUEzLjc1IDMuNzUgMCAwMTAgMjAuMjVWNS43NUEzLjc1IDMuNzUgMCAwMTMuNzUgMnptMTItMmMuNzggMCAxLjQyLjYgMS41IDEuMzZWNy41YTEuNSAxLjUgMCAwMS0zIC4xNFY1LjEybC01LjQ0IDUuNDRhMS41IDEuNSAwIDAxLTIuMjItMmwuMS0uMTJMMTguODggM0gxNi41QTEuNSAxLjUgMCAwMTE1IDEuNjRWMS41YzAtLjc4LjYtMS40MiAxLjM2LTEuNWguMTR6Ii8+PC9zdmc+") no-repeat right 50%;background-size:12px 10px}::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva ::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}';export{r as duet_cookie_consent}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- System.register(["./p-a19244e5.system.js","./p-e216bea4.system.js","./p-34d7dd10.system.js"],(function(e){"use strict";var t,n,a,i,r,o;return{setters:[function(e){t=e.r;n=e.h;a=e.H;i=e.g},function(e){r=e.i},function(e){o=e.f}],execute:function(){var u='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%}@media (min-width: 62em){:host{width:auto}}.duet-submenu-bar-link{display:flex;flex-direction:row;gap:16px;align-items:center;justify-content:flex-start;height:100%;padding:12px 1.5rem;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);text-align:center;text-decoration:none}.duet-submenu-bar-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-submenu-bar-link:focus,.duet-submenu-bar-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-submenu-bar-link .submenu-bar-link-icon{width:20px;height:20px}@media (min-width: 62em){.duet-submenu-bar-link .submenu-bar-link-icon{width:16px;height:16px}}@media (min-width: 62em){.duet-submenu-bar-link{flex-direction:column;gap:5px;align-items:center;justify-content:center;font-size:0.875rem;color:rgb(0, 75, 129)}}@media (min-width: 62em){.duet-submenu-bar-link.active{color:rgb(0, 119, 179)}.duet-submenu-bar-link.active.duet-theme-turva{color:rgb(126, 2, 35)}}.duet-submenu-bar-link.active .label{position:relative}.duet-submenu-bar-link.active .label::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transform:1px}@media (min-width: 62em){.duet-submenu-bar-link.active .label::after{display:none}.duet-submenu-bar-link.active::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(1px)}}.duet-submenu-bar-link.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-submenu-bar-link.duet-theme-turva.active .label::after{background:rgb(126, 2, 35)}.duet-submenu-bar-link.duet-theme-turva.active::after{background:rgb(126, 2, 35)}@media (min-width: 62em){.duet-submenu-bar-link:hover{color:rgb(8, 42, 77);background:rgb(228, 241, 247)}.duet-submenu-bar-link:hover.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(222, 224, 228)}.duet-submenu-bar-link:hover.duet-theme-turva.active{color:rgb(126, 2, 35)}}';var s=u;var b=e("duet_submenu_bar_link",function(){function e(e){t(this,e);this.theme="";this.active=false;this.href="#";this.icon=undefined}e.prototype.componentWillLoad=function(){r(this)};e.prototype.handleEscape=function(e){if(o(e)){var t=this.element.closest("duet-submenu-bar");t.open=false;t.setFocus()}};e.prototype.render=function(){var e=this;return n(a,{key:"d500cddc2f019854bae1756301dc68ae23835b10",role:"listitem"},n("a",{key:"3688cdd47046d93cae4ad667a348881d35449cb8",class:{"duet-submenu-bar-link":true,"duet-theme-turva":this.theme==="turva",active:this.active},href:this.href,onKeyUp:function(t){return e.handleEscape(t)},"aria-current":this.active?"true":"false"},this.icon&&n("duet-icon",{key:"c620d6cac216344f07879ad271f2488f9e4a3036",class:"submenu-bar-link-icon",theme:this.theme,name:this.icon,size:"auto",margin:"none",color:"currentColor"}),n("span",{key:"82438bf5ee24adf621d9e342de9886829f193176",class:"label"},n("slot",{key:"5ee0ae247c68b887845ce939e812e7923b994be8"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());b.style=s}}}));
4
+ System.register(["./p-2e0eb8a4.system.js","./p-e216bea4.system.js","./p-34d7dd10.system.js"],(function(e){"use strict";var t,n,a,i,r,o;return{setters:[function(e){t=e.r;n=e.h;a=e.H;i=e.g},function(e){r=e.i},function(e){o=e.f}],execute:function(){var u='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%}@media (min-width: 62em){:host{width:auto}}.duet-submenu-bar-link{display:flex;flex-direction:row;gap:16px;align-items:center;justify-content:flex-start;height:100%;padding:12px 1.5rem;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);text-align:center;text-decoration:none}.duet-submenu-bar-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-submenu-bar-link:focus,.duet-submenu-bar-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-submenu-bar-link .submenu-bar-link-icon{width:20px;height:20px}@media (min-width: 62em){.duet-submenu-bar-link .submenu-bar-link-icon{width:16px;height:16px}}@media (min-width: 62em){.duet-submenu-bar-link{flex-direction:column;gap:5px;align-items:center;justify-content:center;font-size:0.875rem;color:rgb(0, 75, 129)}}@media (min-width: 62em){.duet-submenu-bar-link.active{color:rgb(0, 119, 179)}.duet-submenu-bar-link.active.duet-theme-turva{color:rgb(126, 2, 35)}}.duet-submenu-bar-link.active .label{position:relative}.duet-submenu-bar-link.active .label::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transform:1px}@media (min-width: 62em){.duet-submenu-bar-link.active .label::after{display:none}.duet-submenu-bar-link.active::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(1px)}}.duet-submenu-bar-link.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-submenu-bar-link.duet-theme-turva.active .label::after{background:rgb(126, 2, 35)}.duet-submenu-bar-link.duet-theme-turva.active::after{background:rgb(126, 2, 35)}@media (min-width: 62em){.duet-submenu-bar-link:hover{color:rgb(8, 42, 77);background:rgb(228, 241, 247)}.duet-submenu-bar-link:hover.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(222, 224, 228)}.duet-submenu-bar-link:hover.duet-theme-turva.active{color:rgb(126, 2, 35)}}';var b=u;var s=e("duet_submenu_bar_link",function(){function e(e){t(this,e);this.theme="";this.active=false;this.href="#";this.icon=undefined}e.prototype.componentWillLoad=function(){r(this)};e.prototype.handleEscape=function(e){if(o(e)){var t=this.element.closest("duet-submenu-bar");t.open=false;t.setFocus()}};e.prototype.render=function(){var e=this;return n(a,{key:"d44a022e91733242dcf9d0715fdea0dd9413fc8c",role:"listitem"},n("a",{key:"a86eeb53bc8714df6212d0a1576df487efd637dd",class:{"duet-submenu-bar-link":true,"duet-theme-turva":this.theme==="turva",active:this.active},href:this.href,onKeyUp:function(t){return e.handleEscape(t)},"aria-current":this.active?"true":"false"},this.icon&&n("duet-icon",{key:"46c05eceaaed109253e10fe7f5f4c4e02b71192d",class:"submenu-bar-link-icon",theme:this.theme,name:this.icon,size:"auto",margin:"none",color:"currentColor"}),n("span",{key:"999718d74fd76be6b9b89bc6b87877614ddc01ba",class:"label"},n("slot",{key:"bce3596e218360bc8f5e19182194a608471e75e3"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());s.style=b}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- System.register(["./p-ef731dfb.system.js"],(function(r){"use strict";var n,t,e,u,i,f,a,o,v,c;return{setters:[function(r){n=r.m;t=r.a;e=r.b;u=r.c;i=r.d;f=r.e;a=r.f;o=r.g;v=r.h;c=r.t}],execute:function(){r({c:p,d:O,g:j,r:w,s:S});var d=["turva"];function s(r){var n=r.includes("-");var t=r.includes(" ")||r.includes("_");var e=r.charAt(0)==="-";return n&&!t&&!e}function l(r){if(r===void 0){r=""}return"".concat(r.charAt(0).toUpperCase()).concat(r.slice(1))}function x(r){if(r===void 0){r=""}return"".concat(r.charAt(0).toLowerCase()).concat(r.slice(1))}function m(r){if(r===void 0){r=""}var n=r.split("-");n.forEach((function(r,t){n[t]=l(r)}));return n.join("")}function g(r){if(r===void 0){r=""}if(d.includes(r.toLowerCase())){return r.toLowerCase()}return""}function p(r){return r.charAt(0).toUpperCase()+r.slice(1)}function b(r,n){if(n===void 0){n=""}return n.indexOf(p(r))===0||n.indexOf(r)===0}function I(r,n){if(n===void 0){n=""}if(n&&!s(n)&&!b(r,n)){return"".concat(r).concat(l(n))}return n}function h(r,n){var t=g(n).length;if(t&&r.indexOf(n)===-1){return"".concat(r).concat(l(n))}return r}function j(r,n){if(n===void 0){n=""}if(!r){return undefined}var t=y(r);var e=y(r,n);var u=c[e];if(!u){u=c[t]}return u}function y(r,n){if(r===void 0){r=""}if(n===void 0){n=""}var t=r;var e=s(r);if(e){t=m(t)}t=I("color",t);t=h(t,n);t=x(t);return t}function M(r,n){if(!n){return undefined}var t=n;var e=s(n);if(e){t=m(t)}t=I(r,t);t=x(t);try{return c[t]}catch(r){return undefined}}function O(r){return M("shadow",r)}function w(r,n){if(!r||n!==0&&!n){return undefined}var t=r.split(",");var e=parseInt(t[0].slice(4)),u=parseInt(t[1]),i=parseInt(t[2]);return"rgba(".concat(e,",").concat(u,",").concat(i,",").concat(n,")")}function S(r,n){var t=r.split(","),e=n<0?0:255,u=n<0?n*-1:n;var i=parseInt(t[0].slice(4)),f=parseInt(t[1]),a=parseInt(t[2]);i=Math.round((e-i)*u)+i;f=Math.round((e-f)*u)+f;a=Math.round((e-a)*u)+a;i=i<0?0:i;i=i>255?255:i;f=f<0?0:f;f=f>255?255:f;a=a<0?0:a;a=a>255?255:a;return"rgb(".concat(i,",").concat(f,",").concat(a,")")}var _=function(r){return r.substring(1,r.length-1)};var k=r("a",{"xxx-small":_(v),"xx-small":_(n),"x-small":_(t),small:_(e),medium:_(u),large:_(i),"x-large":_(f),"xx-large":_(a),"xxx-large":_(o)});var q=r("b",Object.keys(k).filter((function(r){return r.indexOf("x-small")!==-1})));Object.keys(k).filter((function(r){return!q.includes(r)}))}}}));
4
+ System.register(["./p-ba03d034.system.js"],(function(r){"use strict";var n,t,u,e,i,a,f,o,v,c;return{setters:[function(r){n=r.m;t=r.a;u=r.b;e=r.c;i=r.d;a=r.e;f=r.f;o=r.g;v=r.h;c=r.t}],execute:function(){r({c:p,d:O,g:j,r:w,s:S});var d=["turva"];function s(r){var n=r.includes("-");var t=r.includes(" ")||r.includes("_");var u=r.charAt(0)==="-";return n&&!t&&!u}function l(r){if(r===void 0){r=""}return"".concat(r.charAt(0).toUpperCase()).concat(r.slice(1))}function x(r){if(r===void 0){r=""}return"".concat(r.charAt(0).toLowerCase()).concat(r.slice(1))}function m(r){if(r===void 0){r=""}var n=r.split("-");n.forEach((function(r,t){n[t]=l(r)}));return n.join("")}function g(r){if(r===void 0){r=""}if(d.includes(r.toLowerCase())){return r.toLowerCase()}return""}function p(r){return r.charAt(0).toUpperCase()+r.slice(1)}function b(r,n){if(n===void 0){n=""}return n.indexOf(p(r))===0||n.indexOf(r)===0}function I(r,n){if(n===void 0){n=""}if(n&&!s(n)&&!b(r,n)){return"".concat(r).concat(l(n))}return n}function h(r,n){var t=g(n).length;if(t&&r.indexOf(n)===-1){return"".concat(r).concat(l(n))}return r}function j(r,n){if(n===void 0){n=""}if(!r){return undefined}var t=y(r);var u=y(r,n);var e=c[u];if(!e){e=c[t]}return e}function y(r,n){if(r===void 0){r=""}if(n===void 0){n=""}var t=r;var u=s(r);if(u){t=m(t)}t=I("color",t);t=h(t,n);t=x(t);return t}function M(r,n){if(!n){return undefined}var t=n;var u=s(n);if(u){t=m(t)}t=I(r,t);t=x(t);try{return c[t]}catch(r){return undefined}}function O(r){return M("shadow",r)}function w(r,n){if(!r||n!==0&&!n){return undefined}var t=r.split(",");var u=parseInt(t[0].slice(4)),e=parseInt(t[1]),i=parseInt(t[2]);return"rgba(".concat(u,",").concat(e,",").concat(i,",").concat(n,")")}function S(r,n){var t=r.split(","),u=n<0?0:255,e=n<0?n*-1:n;var i=parseInt(t[0].slice(4)),a=parseInt(t[1]),f=parseInt(t[2]);i=Math.round((u-i)*e)+i;a=Math.round((u-a)*e)+a;f=Math.round((u-f)*e)+f;i=i<0?0:i;i=i>255?255:i;a=a<0?0:a;a=a>255?255:a;f=f<0?0:f;f=f>255?255:f;return"rgb(".concat(i,",").concat(a,",").concat(f,")")}var _=function(r){return r.substring(1,r.length-1)};var k=r("a",{"xxx-small":_(v),"xx-small":_(n),"x-small":_(t),small:_(u),medium:_(e),large:_(i),"x-large":_(a),"xx-large":_(f),"xxx-large":_(o)});var q=r("b",Object.keys(k).filter((function(r){return r.indexOf("x-small")!==-1})));Object.keys(k).filter((function(r){return!q.includes(r)}))}}}));
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,n,i){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function o(e){try{u(i["throw"](e))}catch(e){r(e)}}function u(e){e.done?n(e.value):a(e.value).then(s,o)}u((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,a,r,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 u([e,t])}}function u(o){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(n=0)),n)try{if(i=1,a&&(r=o[0]&2?a["return"]:o[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;if(a=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;a=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){n.label=o[1];break}if(o[0]===6&&n.label<r[1]){n.label=r[1];r=o;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(o);break}if(r[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];a=0}finally{i=r=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-a19244e5.system.js","./p-e216bea4.system.js","./p-1e17463d.system.js","./p-76d69a18.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,n,i,a,r,s;return{setters:[function(e){t=e.r;n=e.h;i=e.g},function(e){a=e.i},function(e){r=e.g},function(e){s=e.a},function(){}],execute:function(){var o=function(e,t){if(t===void 0){t=2}if(e===0){return"0 Bytes"}var n=1024;var i=t<0?0:t;var a=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"];var r=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,r)).toFixed(i))+" "+a[r]};var u=".file-link::part(duet-link){text-decoration:none}";var c=u;var l=e("duet_upload_item",function(){function e(e){var n=this;t(this,e);this.fileUploadingInfo={fi:"Tiedosto latautuu",sv:"Filen laddas upp",en:"File is uploading"};this.onLinkClick=function(e){var t=n.data,i=t.url,a=t.meta;if(!!n.linkClickEvent){e.preventDefault();n.linkClickEvent.emit({component:"duet-upload",data:{name:n.data.item.name,url:i,meta:a}})}};this.theme="";this.data=undefined;this.type=undefined;this.showLinks=undefined;this.actions=undefined;this.buttonTitles=undefined;this.label=undefined;this.categoryLabel=undefined;this.errorCodes=undefined;this.showCategory=undefined;this.linkClickEvent=undefined}e.prototype.componentWillLoad=function(){a(this)};e.prototype.focusActionButton=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!this.actionButton)return[3,2];return[4,this.actionButton.setFocus({preventScroll:true})];case 1:e.sent();this.actionButton.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"});e.label=2;case 2:return[2]}}))}))};e.prototype.getFileNameLine=function(){var e=this.data,t=e.item,i=e.size,a=e.uploaded,u=e.url,c=e.progress,l=e.error;var d=t.name;var h=n("span",{class:"duet-upload-item-name"},n("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),d);var f=n("span",{class:"duet-upload-item-size",style:{fontSize:"14px",fontWeight:"400"}},"(",o(i),")");switch(this.type){case"inprogress":return n("span",{class:"duet-upload-item-name",role:"status"},n("duet-paragraph",{class:"duet-upload-item-name",color:"gray-darker",margin:"none",weight:"semi-bold"},n("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),d),n("duet-visually-hidden",null,n("duet-paragraph",null,r(this.fileUploadingInfo))),n("duet-progress",{theme:this.theme,progress:Math.ceil(c),"aria-hidden":true}));case"pending":return n("span",{class:"duet-upload-item-name"},n("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),d);case"failure":return n("span",{class:"duet-upload-item-error",role:"status"},n("duet-paragraph",{class:"duet-upload-item-name",color:"danger",margin:"none",weight:"semi-bold"},n("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),d),n("duet-paragraph",{class:"duet-upload-item-error-label",size:"small",margin:"none",color:"danger"},s(l.type,this.errorCodes)));default:return a&&u&&this.showLinks?n("duet-paragraph",{color:"secondary",margin:"none",weight:"semi-bold"},n("duet-link",{class:"file-link",onClick:this.onLinkClick,url:u},h),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),f):n("duet-paragraph",{color:"secondary",margin:"none",weight:"semi-bold"},h,n("duet-spacer",{size:"xx-small",direction:"horizontal"}),f)}};e.prototype.getActionButtonTitle=function(e){if(this.buttonTitles[e.name]===true||this.buttonTitles[e.name]===false){return e}return r(this.buttonTitles[e.name])};e.prototype.render=function(){var e=this;var t=this.data,i=t.uid,a=t.meta,s=t.item;var o=a&&a.badges?n("span",null,a.badges.map((function(e){return n("duet-badge",{color:"primary"},e)}))):undefined;var u="".concat(a&&a.badges?a.badges.join(","):""," ").concat(s.name);return n("div",{key:"499163ce1be1b45ff2d97156ce06d7d9f3fefeb2",class:{"upload-item-row":true}},this.showCategory&&n("div",{key:"0486c8703101bcb3837161c24ad0fc1a4ffe215f",class:"item-categories"},n("duet-heading",{key:"292cc4893eebebb39be0360efc9559c5de47b22e",class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},r(this.categoryLabel)),o),n("div",{key:"8e6c67e49f9b5bc79fc011bc44362392eb3b7b24",class:{"item-name":true,"no-category":!this.showCategory}},!!this.label&&n("duet-heading",{key:"24f05bb11ee5970722963e688fd5c5e797a0e77c",class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},r(this.label)),this.getFileNameLine()),n("div",{key:"1c93322e3405f0c329978af89b70c91e7eb9733d",class:"item-actions"},this.actions.map((function(t){return n("duet-action-button",{actionMeta:Object.assign({},a||{}),actionId:i||null,actionName:t.name,theme:e.theme,iconName:t.icon,iconColor:t.color,iconSize:t.size,background:t.background,"accessible-label":"".concat(u," ").concat(r(t.label)," "),accessibleTitle:e.getActionButtonTitle(t),ref:function(t){return e.actionButton=t}})}))))};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());l.style=c}}}));
4
+ */System.register(["./p-2e0eb8a4.system.js","./p-e216bea4.system.js","./p-81835239.system.js","./p-35a1ffee.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,n,i,a,r,s;return{setters:[function(e){t=e.r;n=e.h;i=e.g},function(e){a=e.i},function(e){r=e.g},function(e){s=e.a},function(){}],execute:function(){var o=function(e,t){if(t===void 0){t=2}if(e===0){return"0 Bytes"}var n=1024;var i=t<0?0:t;var a=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"];var r=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,r)).toFixed(i))+" "+a[r]};var u=".file-link::part(duet-link){text-decoration:none}";var c=u;var l=e("duet_upload_item",function(){function e(e){var n=this;t(this,e);this.fileUploadingInfo={fi:"Tiedosto latautuu",sv:"Filen laddas upp",en:"File is uploading"};this.onLinkClick=function(e){var t=n.data,i=t.url,a=t.meta;if(!!n.linkClickEvent){e.preventDefault();n.linkClickEvent.emit({component:"duet-upload",data:{name:n.data.item.name,url:i,meta:a}})}};this.theme="";this.data=undefined;this.type=undefined;this.showLinks=undefined;this.actions=undefined;this.buttonTitles=undefined;this.label=undefined;this.categoryLabel=undefined;this.errorCodes=undefined;this.showCategory=undefined;this.linkClickEvent=undefined}e.prototype.componentWillLoad=function(){a(this)};e.prototype.focusActionButton=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!this.actionButton)return[3,2];return[4,this.actionButton.setFocus({preventScroll:true})];case 1:e.sent();this.actionButton.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"});e.label=2;case 2:return[2]}}))}))};e.prototype.getFileNameLine=function(){var e=this.data,t=e.item,i=e.size,a=e.uploaded,u=e.url,c=e.progress,l=e.error;var d=t.name;var f=n("span",{class:"duet-upload-item-name"},n("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),d);var h=n("span",{class:"duet-upload-item-size",style:{fontSize:"14px",fontWeight:"400"}},"(",o(i),")");switch(this.type){case"inprogress":return n("span",{class:"duet-upload-item-name",role:"status"},n("duet-paragraph",{class:"duet-upload-item-name",color:"gray-darker",margin:"none",weight:"semi-bold"},n("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),d),n("duet-visually-hidden",null,n("duet-paragraph",null,r(this.fileUploadingInfo))),n("duet-progress",{theme:this.theme,progress:Math.ceil(c),"aria-hidden":true}));case"pending":return n("span",{class:"duet-upload-item-name"},n("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),d);case"failure":return n("span",{class:"duet-upload-item-error",role:"status"},n("duet-paragraph",{class:"duet-upload-item-name",color:"danger",margin:"none",weight:"semi-bold"},n("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),d),n("duet-paragraph",{class:"duet-upload-item-error-label",size:"small",margin:"none",color:"danger"},s(l.type,this.errorCodes)));default:return a&&u&&this.showLinks?n("duet-paragraph",{color:"secondary",margin:"none",weight:"semi-bold"},n("duet-link",{class:"file-link",onClick:this.onLinkClick,url:u},f),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),h):n("duet-paragraph",{color:"secondary",margin:"none",weight:"semi-bold"},f,n("duet-spacer",{size:"xx-small",direction:"horizontal"}),h)}};e.prototype.getActionButtonTitle=function(e){if(this.buttonTitles[e.name]===true||this.buttonTitles[e.name]===false){return e}return r(this.buttonTitles[e.name])};e.prototype.render=function(){var e=this;var t=this.data,i=t.uid,a=t.meta,s=t.item;var o=a&&a.badges?n("span",null,a.badges.map((function(e){return n("duet-badge",{color:"primary"},e)}))):undefined;var u="".concat(a&&a.badges?a.badges.join(","):""," ").concat(s.name);return n("div",{key:"4ab1c6316a88d990b67ea8597d4a7fbbfee17149",class:{"upload-item-row":true}},this.showCategory&&n("div",{key:"1f7a34acdaf8ec6a9dcb722258a5fd186a57bebe",class:"item-categories"},n("duet-heading",{key:"10436d1372a207a993d1728730719b7c13c21bc8",class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},r(this.categoryLabel)),o),n("div",{key:"778f28143ab6bf8b98084c6b4f85125d73ee538a",class:{"item-name":true,"no-category":!this.showCategory}},!!this.label&&n("duet-heading",{key:"0444becdae05b55a29fdb77b898f55baff7292f1",class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},r(this.label)),this.getFileNameLine()),n("div",{key:"e7a63578ffccc5077f77dfb54c11c681bb860956",class:"item-actions"},this.actions.map((function(t){return n("duet-action-button",{actionMeta:Object.assign({},a||{}),actionId:i||null,actionName:t.name,theme:e.theme,iconName:t.icon,iconColor:t.color,iconSize:t.size,background:t.background,"accessible-label":"".concat(u," ").concat(r(t.label)," "),accessibleTitle:e.getActionButtonTitle(t),ref:function(t){return e.actionButton=t}})}))))};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());l.style=c}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import"./p-8abb0984.js";import{c as e}from"./p-9c3c64b9.js";const t={fi:"fi-FI",en:"en-GB",us:"en-US",sv:"sv-SE"},n={fi:"€",en:"£",us:"$",sv:"€"},r=["fi","en","sv"],o="fi",a=()=>document.documentElement.lang?document.documentElement.lang.toLowerCase():o,s=(e=a())=>r.includes(e)?e:o,i=(e=a())=>s(e),c=e=>{const r={locale:t[e],money:n[e]};if(r.locale&&r.money)return r;throw new Error(`Locale for "${e}" not found`)},u=t=>{if("string"==typeof t)try{return JSON.parse(e(t))}catch(e){console.log("sanitizeString received a string, that didnt parse to json object",t,e)}return t},f=(e,t)=>{const n=u(e);return t?n[s(t)]:n[i()]},l=new Set,p=new WeakMap;new MutationObserver((e=>{let t=o;for(const n of e)if("attributes"===n.type&&"lang"===n.attributeName){t=n.oldValue;break}"false"!==document.documentElement.dataset.duetLangObserve&&l.forEach((e=>{e.language&&(e.language=i()),p.has(e)&&p.get(e).forEach((n=>{e[n.defaults]&&e[n.prop]===e[n.defaults][t]&&(e[n.prop]=f(e[n.defaults]))}))}))})).observe(document.documentElement,{attributeFilter:["lang"],attributeOldValue:!0});const d=(e,t)=>{l.add(e),t&&(Array.isArray(t)||(t=[t]),t.some((t=>!(t.prop in e)||!(t.defaults in e)))&&(console.error("connectLanguageChangeObserver: component must have target.prop and target.defaults properties"),t=t.filter((t=>t.prop in e&&t.defaults in e))),p.set(e,t))},b=e=>{l.delete(e),p.delete(e)};export{i as a,c as b,d as c,b as d,f as g,u as s}
4
+ import"./p-7a75bff7.js";import{c as e}from"./p-9c3c64b9.js";const t={fi:"fi-FI",en:"en-GB",us:"en-US",sv:"sv-SE"},n={fi:"€",en:"£",us:"$",sv:"€"},r=["fi","en","sv"],o="fi",a=()=>document.documentElement.lang?document.documentElement.lang.toLowerCase():o,s=(e=a())=>r.includes(e)?e:o,i=(e=a())=>s(e),c=e=>{const r={locale:t[e],money:n[e]};if(r.locale&&r.money)return r;throw new Error(`Locale for "${e}" not found`)},u=t=>{if("string"==typeof t)try{return JSON.parse(e(t))}catch(e){console.log("sanitizeString received a string, that didnt parse to json object",t,e)}return t},f=(e,t)=>{const n=u(e);return t?n[s(t)]:n[i()]},l=new Set,p=new WeakMap;new MutationObserver((e=>{let t=o;for(const n of e)if("attributes"===n.type&&"lang"===n.attributeName){t=n.oldValue;break}"false"!==document.documentElement.dataset.duetLangObserve&&l.forEach((e=>{e.language&&(e.language=i()),p.has(e)&&p.get(e).forEach((n=>{e[n.defaults]&&e[n.prop]===e[n.defaults][t]&&(e[n.prop]=f(e[n.defaults]))}))}))})).observe(document.documentElement,{attributeFilter:["lang"],attributeOldValue:!0});const d=(e,t)=>{l.add(e),t&&(Array.isArray(t)||(t=[t]),t.some((t=>!(t.prop in e)||!(t.defaults in e)))&&(console.error("connectLanguageChangeObserver: component must have target.prop and target.defaults properties"),t=t.filter((t=>t.prop in e&&t.defaults in e))),p.set(e,t))},g=e=>{l.delete(e),p.delete(e)};export{i as a,c as b,d as c,g as d,f as g,u as s}