@duetds/components 9.11.0 → 9.12.1

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 (856) hide show
  1. package/hydrate/index.js +364 -304
  2. package/lib/cjs/{a11y-utils-e5f6d8f8.js → a11y-utils-eb7d7eaf.js} +1 -1
  3. package/lib/cjs/{app-globals-f4b39f4a.js → app-globals-0c7238c4.js} +1 -1
  4. package/lib/cjs/duet-action-button.cjs.entry.js +4 -4
  5. package/lib/cjs/duet-alert.cjs.entry.js +32 -9
  6. package/lib/cjs/duet-badge.cjs.entry.js +5 -5
  7. package/lib/cjs/duet-banner.cjs.entry.js +5 -5
  8. package/lib/cjs/duet-breadcrumb.cjs.entry.js +7 -7
  9. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +6 -6
  10. package/lib/cjs/duet-button_2.cjs.entry.js +12 -12
  11. package/lib/cjs/duet-callout.cjs.entry.js +6 -6
  12. package/lib/cjs/duet-caption_4.cjs.entry.js +17 -17
  13. package/lib/cjs/duet-card.cjs.entry.js +7 -7
  14. package/lib/cjs/duet-checkbox.cjs.entry.js +3 -3
  15. package/lib/cjs/duet-checkmark.cjs.entry.js +5 -5
  16. package/lib/cjs/duet-chip.cjs.entry.js +13 -6
  17. package/lib/cjs/duet-choice_2.cjs.entry.js +12 -6
  18. package/lib/cjs/duet-collapsible.cjs.entry.js +6 -6
  19. package/lib/cjs/duet-combobox.cjs.entry.js +5 -5
  20. package/lib/cjs/duet-contact-card.cjs.entry.js +6 -6
  21. package/lib/cjs/duet-cookie-consent.cjs.entry.js +4 -4
  22. package/lib/cjs/duet-date-picker.cjs.entry.js +6 -6
  23. package/lib/cjs/duet-divider_2.cjs.entry.js +5 -5
  24. package/lib/cjs/duet-editable-table_3.cjs.entry.js +9 -9
  25. package/lib/cjs/duet-empty-state.cjs.entry.js +5 -5
  26. package/lib/cjs/duet-fieldset.cjs.entry.js +7 -7
  27. package/lib/cjs/duet-file-chooser.cjs.entry.js +3 -3
  28. package/lib/cjs/duet-footer.cjs.entry.js +9 -9
  29. package/lib/cjs/duet-grid_2.cjs.entry.js +3 -3
  30. package/lib/cjs/duet-header_2.cjs.entry.js +5 -5
  31. package/lib/cjs/duet-hero.cjs.entry.js +10 -10
  32. package/lib/cjs/duet-icon.cjs.entry.js +6 -6
  33. package/lib/cjs/duet-input_2.cjs.entry.js +6 -6
  34. package/lib/cjs/duet-layout.cjs.entry.js +7 -7
  35. package/lib/cjs/duet-list_2.cjs.entry.js +6 -6
  36. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +5 -5
  37. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +5 -5
  38. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +7 -7
  39. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +8 -8
  40. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +5 -5
  41. package/lib/cjs/duet-menu-bar.cjs.entry.js +6 -6
  42. package/lib/cjs/duet-modal.cjs.entry.js +12 -12
  43. package/lib/cjs/duet-multiselect.cjs.entry.js +10 -10
  44. package/lib/cjs/duet-nav.cjs.entry.js +3 -3
  45. package/lib/cjs/duet-notification_2.cjs.entry.js +9 -9
  46. package/lib/cjs/duet-number-input.cjs.entry.js +5 -5
  47. package/lib/cjs/duet-overlay.cjs.entry.js +5 -4
  48. package/lib/cjs/duet-page-heading.cjs.entry.js +5 -5
  49. package/lib/cjs/duet-pagination_2.cjs.entry.js +18 -18
  50. package/lib/cjs/duet-phone-input.cjs.entry.js +15 -14
  51. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +11 -11
  52. package/lib/cjs/duet-progress.cjs.entry.js +4 -4
  53. package/lib/cjs/duet-promo-card.cjs.entry.js +5 -5
  54. package/lib/cjs/duet-radio_2.cjs.entry.js +11 -5
  55. package/lib/cjs/duet-range-slider.cjs.entry.js +3 -3
  56. package/lib/cjs/duet-scrollable_3.cjs.entry.js +15 -15
  57. package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
  58. package/lib/cjs/duet-select.cjs.entry.js +4 -4
  59. package/lib/cjs/duet-shaped-image.cjs.entry.js +4 -4
  60. package/lib/cjs/duet-share-chart-item.cjs.entry.js +2 -2
  61. package/lib/cjs/duet-share-chart.cjs.entry.js +15 -8
  62. package/lib/cjs/duet-show-more.cjs.entry.js +6 -6
  63. package/lib/cjs/duet-slideout-lang.cjs.entry.js +5 -5
  64. package/lib/cjs/duet-slideout-link.cjs.entry.js +8 -8
  65. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +7 -7
  66. package/lib/cjs/duet-slideout-panel.cjs.entry.js +12 -12
  67. package/lib/cjs/duet-slideout.cjs.entry.js +10 -10
  68. package/lib/cjs/duet-status-icon.cjs.entry.js +3 -3
  69. package/lib/cjs/duet-step_2.cjs.entry.js +5 -5
  70. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +5 -5
  71. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +7 -7
  72. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +7 -7
  73. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +4 -4
  74. package/lib/cjs/duet-submenu-bar.cjs.entry.js +8 -8
  75. package/lib/cjs/duet-textarea.cjs.entry.js +11 -5
  76. package/lib/cjs/duet-toggle.cjs.entry.js +3 -3
  77. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +5 -5
  78. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +7 -7
  79. package/lib/cjs/duet-toolbar-item.cjs.entry.js +9 -9
  80. package/lib/cjs/duet-toolbar-link.cjs.entry.js +5 -5
  81. package/lib/cjs/duet-toolbar.cjs.entry.js +5 -5
  82. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +10 -10
  83. package/lib/cjs/duet-tooltip.cjs.entry.js +9 -3
  84. package/lib/cjs/duet-tray.cjs.entry.js +6 -6
  85. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
  86. package/lib/cjs/duet-upload-item.cjs.entry.js +6 -6
  87. package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
  88. package/lib/cjs/duet.cjs.js +3 -3
  89. package/lib/cjs/{errorcodes.utils-e378d9dc.js → errorcodes.utils-0f49bb86.js} +1 -1
  90. package/lib/cjs/{focus-utils-af58f610.js → focus-utils-6f3c697c.js} +1 -1
  91. package/lib/cjs/{index-24f91959.js → index-12fb92a8.js} +1 -1
  92. package/lib/cjs/{language-utils-e33fa0af.js → language-utils-50137d46.js} +1 -1
  93. package/lib/cjs/loader.cjs.js +3 -3
  94. package/lib/cjs/{slot-utils-48820df1.js → slot-utils-474c87ed.js} +1 -1
  95. package/lib/cjs/themeable-component-de7d5c0a.js +62 -0
  96. package/lib/collection/common/themeable-component.js +45 -7
  97. package/lib/collection/components/duet-action-button/duet-action-button.css +7 -3
  98. package/lib/collection/components/duet-alert/duet-alert.js +28 -5
  99. package/lib/collection/components/duet-badge/duet-badge.css +4 -4
  100. package/lib/collection/components/duet-badge/duet-badge.js +2 -2
  101. package/lib/collection/components/duet-banner/duet-banner.js +2 -2
  102. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
  103. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.css +3 -3
  104. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
  105. package/lib/collection/components/duet-button/duet-button.css +25 -25
  106. package/lib/collection/components/duet-button/duet-button.js +5 -5
  107. package/lib/collection/components/duet-callout/duet-callout.css +1 -1
  108. package/lib/collection/components/duet-callout/duet-callout.js +2 -2
  109. package/lib/collection/components/duet-caption/duet-caption.css +1 -1
  110. package/lib/collection/components/duet-caption/duet-caption.js +2 -2
  111. package/lib/collection/components/duet-card/duet-card.css +4 -4
  112. package/lib/collection/components/duet-card/duet-card.js +3 -3
  113. package/lib/collection/components/duet-checkbox/duet-checkbox.css +4 -4
  114. package/lib/collection/components/duet-chip/duet-chip.css +11 -11
  115. package/lib/collection/components/duet-chip/duet-chip.js +10 -1
  116. package/lib/collection/components/duet-choice/duet-checkmark.css +2 -2
  117. package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
  118. package/lib/collection/components/duet-choice/duet-choice.css +20 -19
  119. package/lib/collection/components/duet-choice-group/duet-choice-group.js +9 -0
  120. package/lib/collection/components/duet-collapsible/duet-collapsible.css +1 -1
  121. package/lib/collection/components/duet-collapsible/duet-collapsible.js +2 -2
  122. package/lib/collection/components/duet-combobox/duet-combobox.css +2 -2
  123. package/lib/collection/components/duet-contact-card/duet-contact-card.css +1 -1
  124. package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
  125. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.css +2 -2
  126. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
  127. package/lib/collection/components/duet-date-picker/duet-date-picker.css +11 -11
  128. package/lib/collection/components/duet-divider/duet-divider.css +4 -0
  129. package/lib/collection/components/duet-divider/duet-divider.js +1 -1
  130. package/lib/collection/components/duet-empty-state/duet-empty-state.css +2 -1
  131. package/lib/collection/components/duet-empty-state/duet-empty-state.js +2 -2
  132. package/lib/collection/components/duet-fieldset/duet-fieldset.css +1 -1
  133. package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
  134. package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
  135. package/lib/collection/components/duet-footer/duet-footer.css +5 -5
  136. package/lib/collection/components/duet-footer/duet-footer.js +4 -4
  137. package/lib/collection/components/duet-grid-item/duet-grid-item.css +1 -1
  138. package/lib/collection/components/duet-header/duet-header.css +23 -23
  139. package/lib/collection/components/duet-heading/duet-heading.css +1 -1
  140. package/lib/collection/components/duet-heading/duet-heading.js +2 -2
  141. package/lib/collection/components/duet-hero/duet-hero.css +5 -5
  142. package/lib/collection/components/duet-hero/duet-hero.js +5 -5
  143. package/lib/collection/components/duet-icon/duet-icon.css +1 -1
  144. package/lib/collection/components/duet-icon/duet-icon.js +3 -3
  145. package/lib/collection/components/duet-input/duet-input.css +22 -13
  146. package/lib/collection/components/duet-label/duet-label.css +1 -1
  147. package/lib/collection/components/duet-layout/duet-layout.js +5 -5
  148. package/lib/collection/components/duet-link/duet-link.css +7 -7
  149. package/lib/collection/components/duet-link/duet-link.js +2 -2
  150. package/lib/collection/components/duet-list/duet-list.js +1 -1
  151. package/lib/collection/components/duet-list-item/duet-list-item.css +5 -5
  152. package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
  153. package/lib/collection/components/duet-logo/duet-logo.js +1 -1
  154. package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +2 -2
  155. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +2 -2
  156. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.css +1 -1
  157. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
  158. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.css +4 -4
  159. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
  160. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.css +2 -2
  161. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
  162. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.css +4 -4
  163. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
  164. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.css +3 -3
  165. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
  166. package/lib/collection/components/duet-modal/duet-modal.css +5 -5
  167. package/lib/collection/components/duet-modal/duet-modal.js +6 -6
  168. package/lib/collection/components/duet-multiselect/duet-multiselect.css +12 -12
  169. package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
  170. package/lib/collection/components/duet-nav/duet-nav.js +1 -1
  171. package/lib/collection/components/duet-notification/duet-notification.css +5 -5
  172. package/lib/collection/components/duet-notification/duet-notification.js +2 -2
  173. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.css +5 -4
  174. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +2 -2
  175. package/lib/collection/components/duet-number-input/duet-number-input.css +2 -2
  176. package/lib/collection/components/duet-overlay/duet-overlay.css +1 -1
  177. package/lib/collection/components/duet-overlay/duet-overlay.js +2 -1
  178. package/lib/collection/components/duet-page-heading/duet-page-heading.css +3 -3
  179. package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
  180. package/lib/collection/components/duet-pagination/duet-pagination.css +1 -1
  181. package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
  182. package/lib/collection/components/duet-paragraph/duet-paragraph.css +5 -2
  183. package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
  184. package/lib/collection/components/duet-phone-input/duet-phone-input.js +11 -10
  185. package/lib/collection/components/duet-popup-menu/duet-popup-menu.css +1 -1
  186. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +3 -3
  187. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.css +3 -3
  188. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
  189. package/lib/collection/components/duet-progress/duet-progress.css +6 -6
  190. package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
  191. package/lib/collection/components/duet-radio/duet-radio.css +7 -7
  192. package/lib/collection/components/duet-radio-group/duet-radio-group.js +9 -0
  193. package/lib/collection/components/duet-range-slider/duet-range-slider.css +12 -15
  194. package/lib/collection/components/duet-range-stepper/duet-range-stepper.css +1 -1
  195. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
  196. package/lib/collection/components/duet-scrollable/duet-scrollable.css +2 -2
  197. package/lib/collection/components/duet-scrollable/duet-scrollable.js +5 -5
  198. package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
  199. package/lib/collection/components/duet-select/duet-select.css +10 -20
  200. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
  201. package/lib/collection/components/duet-share-chart/duet-share-chart.css +1 -1
  202. package/lib/collection/components/duet-share-chart/duet-share-chart.js +10 -4
  203. package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +1 -1
  204. package/lib/collection/components/duet-show-more/duet-show-more.css +1 -1
  205. package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
  206. package/lib/collection/components/duet-slideout/duet-slideout.css +9 -9
  207. package/lib/collection/components/duet-slideout/duet-slideout.js +4 -4
  208. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.css +1 -1
  209. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
  210. package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +3 -3
  211. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
  212. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.css +7 -7
  213. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
  214. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.css +3 -3
  215. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
  216. package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
  217. package/lib/collection/components/duet-spinner/duet-spinner.css +1 -1
  218. package/lib/collection/components/duet-spinner/duet-spinner.js +2 -2
  219. package/lib/collection/components/duet-status-icon/duet-status-icon.js +2 -2
  220. package/lib/collection/components/duet-step/duet-step.css +3 -3
  221. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  222. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +4 -4
  223. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
  224. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.css +7 -7
  225. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
  226. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.css +5 -5
  227. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
  228. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.css +7 -7
  229. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
  230. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.css +7 -7
  231. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
  232. package/lib/collection/components/duet-tab-group/duet-tab-group.css +9 -9
  233. package/lib/collection/components/duet-tab-group/duet-tab-group.js +4 -4
  234. package/lib/collection/components/duet-table/duet-table.css +39 -22
  235. package/lib/collection/components/duet-table/duet-table.js +2 -2
  236. package/lib/collection/components/duet-textarea/duet-textarea.css +13 -10
  237. package/lib/collection/components/duet-textarea/duet-textarea.js +30 -2
  238. package/lib/collection/components/duet-toggle/duet-toggle.css +3 -3
  239. package/lib/collection/components/duet-toolbar/duet-toolbar.css +2 -2
  240. package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
  241. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.css +6 -6
  242. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
  243. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.css +3 -3
  244. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
  245. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.css +8 -8
  246. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
  247. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.css +8 -8
  248. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
  249. package/lib/collection/components/duet-tooltip/duet-tooltip-button.css +2 -2
  250. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +3 -3
  251. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.css +8 -8
  252. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
  253. package/lib/collection/components/duet-tooltip/duet-tooltip.js +6 -0
  254. package/lib/collection/components/duet-tray/duet-tray.css +5 -5
  255. package/lib/collection/components/duet-tray/duet-tray.js +2 -2
  256. package/lib/collection/components/duet-upload/duet-upload.js +2 -2
  257. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
  258. package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
  259. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  260. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  261. package/lib/dist-custom-elements/duet-alert.js +1 -1
  262. package/lib/dist-custom-elements/duet-badge.js +1 -1
  263. package/lib/dist-custom-elements/duet-banner.js +6 -6
  264. package/lib/dist-custom-elements/duet-breadcrumb.js +8 -8
  265. package/lib/dist-custom-elements/duet-breadcrumbs.js +5 -5
  266. package/lib/dist-custom-elements/duet-button.js +1 -1
  267. package/lib/dist-custom-elements/duet-callout.js +6 -6
  268. package/lib/dist-custom-elements/duet-caption.js +1 -1
  269. package/lib/dist-custom-elements/duet-card.js +8 -8
  270. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  271. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  272. package/lib/dist-custom-elements/duet-chip.js +1 -1
  273. package/lib/dist-custom-elements/duet-choice-group.js +17 -11
  274. package/lib/dist-custom-elements/duet-choice.js +6 -6
  275. package/lib/dist-custom-elements/duet-collapsible.js +7 -7
  276. package/lib/dist-custom-elements/duet-combobox.js +17 -17
  277. package/lib/dist-custom-elements/duet-contact-card.js +12 -12
  278. package/lib/dist-custom-elements/duet-cookie-consent.js +9 -9
  279. package/lib/dist-custom-elements/duet-date-picker.js +15 -15
  280. package/lib/dist-custom-elements/duet-divider.js +1 -1
  281. package/lib/dist-custom-elements/duet-editable-table.js +8 -8
  282. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  283. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  284. package/lib/dist-custom-elements/duet-file-chooser.js +4 -4
  285. package/lib/dist-custom-elements/duet-footer.js +13 -13
  286. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  287. package/lib/dist-custom-elements/duet-grid.js +1 -1
  288. package/lib/dist-custom-elements/duet-header.js +10 -10
  289. package/lib/dist-custom-elements/duet-heading.js +1 -1
  290. package/lib/dist-custom-elements/duet-hero.js +16 -16
  291. package/lib/dist-custom-elements/duet-icon.js +1 -1
  292. package/lib/dist-custom-elements/duet-input.js +1 -1
  293. package/lib/dist-custom-elements/duet-label.js +1 -1
  294. package/lib/dist-custom-elements/duet-layout.js +6 -6
  295. package/lib/dist-custom-elements/duet-link.js +1 -1
  296. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  297. package/lib/dist-custom-elements/duet-list.js +1 -1
  298. package/lib/dist-custom-elements/duet-logo.js +1 -1
  299. package/lib/dist-custom-elements/duet-menu-bar-button.js +6 -6
  300. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +6 -6
  301. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +8 -8
  302. package/lib/dist-custom-elements/duet-menu-bar-item.js +6 -6
  303. package/lib/dist-custom-elements/duet-menu-bar-link.js +6 -6
  304. package/lib/dist-custom-elements/duet-menu-bar.js +6 -6
  305. package/lib/dist-custom-elements/duet-modal.js +16 -16
  306. package/lib/dist-custom-elements/duet-multiselect.js +16 -16
  307. package/lib/dist-custom-elements/duet-nav.js +3 -3
  308. package/lib/dist-custom-elements/duet-notification-drawer.js +8 -8
  309. package/lib/dist-custom-elements/duet-notification.js +6 -6
  310. package/lib/dist-custom-elements/duet-number-input.js +13 -13
  311. package/lib/dist-custom-elements/duet-overlay.js +1 -1
  312. package/lib/dist-custom-elements/duet-page-heading.js +7 -7
  313. package/lib/dist-custom-elements/duet-pagination.js +26 -26
  314. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  315. package/lib/dist-custom-elements/duet-phone-input.js +28 -27
  316. package/lib/dist-custom-elements/duet-popup-menu-item.js +1 -1
  317. package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
  318. package/lib/dist-custom-elements/duet-progress.js +1 -1
  319. package/lib/dist-custom-elements/duet-promo-card.js +6 -6
  320. package/lib/dist-custom-elements/duet-radio-group.js +17 -11
  321. package/lib/dist-custom-elements/duet-radio.js +3 -3
  322. package/lib/dist-custom-elements/duet-range-slider.js +4 -4
  323. package/lib/dist-custom-elements/duet-range-stepper.js +8 -8
  324. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  325. package/lib/dist-custom-elements/duet-section-layout.js +4 -4
  326. package/lib/dist-custom-elements/duet-select.js +1 -1
  327. package/lib/dist-custom-elements/duet-shaped-image.js +4 -4
  328. package/lib/dist-custom-elements/duet-share-chart-item.js +2 -2
  329. package/lib/dist-custom-elements/duet-share-chart.js +14 -8
  330. package/lib/dist-custom-elements/duet-show-more.js +1 -1
  331. package/lib/dist-custom-elements/duet-slideout-lang.js +5 -5
  332. package/lib/dist-custom-elements/duet-slideout-link.js +6 -6
  333. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +8 -8
  334. package/lib/dist-custom-elements/duet-slideout-panel.js +10 -10
  335. package/lib/dist-custom-elements/duet-slideout.js +9 -9
  336. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  337. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  338. package/lib/dist-custom-elements/duet-status-icon.js +1 -1
  339. package/lib/dist-custom-elements/duet-step.js +6 -6
  340. package/lib/dist-custom-elements/duet-stepper.js +4 -4
  341. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +6 -6
  342. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +8 -8
  343. package/lib/dist-custom-elements/duet-submenu-bar-item.js +5 -5
  344. package/lib/dist-custom-elements/duet-submenu-bar-link.js +5 -5
  345. package/lib/dist-custom-elements/duet-submenu-bar.js +10 -10
  346. package/lib/dist-custom-elements/duet-tab-group.js +13 -13
  347. package/lib/dist-custom-elements/duet-tab.js +2 -2
  348. package/lib/dist-custom-elements/duet-table.js +1 -1
  349. package/lib/dist-custom-elements/duet-textarea.js +19 -12
  350. package/lib/dist-custom-elements/duet-toggle.js +4 -4
  351. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +6 -6
  352. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +8 -8
  353. package/lib/dist-custom-elements/duet-toolbar-item.js +7 -7
  354. package/lib/dist-custom-elements/duet-toolbar-link.js +6 -6
  355. package/lib/dist-custom-elements/duet-toolbar.js +5 -5
  356. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  357. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  358. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  359. package/lib/dist-custom-elements/duet-tray.js +7 -7
  360. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  361. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  362. package/lib/dist-custom-elements/duet-upload.js +23 -23
  363. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  364. package/lib/dist-custom-elements/index.js +1 -1
  365. package/lib/dist-custom-elements/{p-4c285b52.js → p-06ac6648.js} +5 -5
  366. package/lib/dist-custom-elements/{p-c40058d8.js → p-17d482c6.js} +12 -12
  367. package/lib/dist-custom-elements/{p-01efda2f.js → p-197e9dc0.js} +3 -3
  368. package/lib/dist-custom-elements/{p-b9c89113.js → p-2d794b1d.js} +10 -10
  369. package/lib/dist-custom-elements/{p-45c98b8e.js → p-45e549db.js} +5 -5
  370. package/lib/dist-custom-elements/{p-c795152b.js → p-4ac094e9.js} +3 -3
  371. package/lib/dist-custom-elements/{p-c3b33c9a.js → p-4d548619.js} +7 -7
  372. package/lib/dist-custom-elements/{p-bb1122e6.js → p-610436af.js} +17 -17
  373. package/lib/dist-custom-elements/p-63bf5af7.js +148 -0
  374. package/lib/dist-custom-elements/{p-caaa4cf4.js → p-659d9275.js} +5 -5
  375. package/lib/dist-custom-elements/{p-66fcb9f0.js → p-67ff4699.js} +4 -4
  376. package/lib/dist-custom-elements/p-6f57e174.js +60 -0
  377. package/lib/dist-custom-elements/{p-a3276bf8.js → p-7e303b62.js} +5 -5
  378. package/lib/dist-custom-elements/{p-14e0a137.js → p-7e522fe1.js} +13 -13
  379. package/lib/dist-custom-elements/{p-a5610227.js → p-7e7fb279.js} +6 -6
  380. package/lib/dist-custom-elements/{p-eb46205a.js → p-7f3ef3e8.js} +9 -9
  381. package/lib/dist-custom-elements/{p-a2cba858.js → p-811ef13f.js} +3 -3
  382. package/lib/dist-custom-elements/{p-c2ad08eb.js → p-8275df70.js} +7 -7
  383. package/lib/dist-custom-elements/{p-1139f384.js → p-8d1c675d.js} +2 -2
  384. package/lib/dist-custom-elements/{p-dd5fe334.js → p-9d2dd122.js} +4 -4
  385. package/lib/dist-custom-elements/{p-bc29127b.js → p-9e5e7021.js} +6 -6
  386. package/lib/dist-custom-elements/{p-4fa318d8.js → p-9f521e63.js} +5 -5
  387. package/lib/dist-custom-elements/{p-2340b254.js → p-a3ee9b04.js} +2 -2
  388. package/lib/dist-custom-elements/{p-b29cfa95.js → p-aa1176f3.js} +3 -3
  389. package/lib/dist-custom-elements/{p-87f8e376.js → p-aa2c1980.js} +3 -3
  390. package/lib/dist-custom-elements/{p-bc935fa9.js → p-aa47d8c8.js} +1 -1
  391. package/lib/dist-custom-elements/{p-46de25d9.js → p-aca34830.js} +6 -6
  392. package/lib/dist-custom-elements/{p-176cf304.js → p-b1b35ed8.js} +5 -4
  393. package/lib/dist-custom-elements/{p-8485fda0.js → p-b2a93a65.js} +4 -4
  394. package/lib/dist-custom-elements/{p-543f99f3.js → p-b5858313.js} +11 -11
  395. package/lib/dist-custom-elements/{p-59cfba72.js → p-b7bb3a5e.js} +15 -7
  396. package/lib/dist-custom-elements/{p-ce47f0d0.js → p-c42aabf4.js} +3 -3
  397. package/lib/dist-custom-elements/{p-05a2aaf3.js → p-d2076dc4.js} +12 -12
  398. package/lib/dist-custom-elements/{p-15f4e6e6.js → p-de9060f8.js} +5 -5
  399. package/lib/dist-custom-elements/{p-c195c569.js → p-dfe33d53.js} +1 -1
  400. package/lib/dist-custom-elements/{p-a8d3c31c.js → p-e42a99da.js} +5 -5
  401. package/lib/dist-custom-elements/{p-eafb360c.js → p-e43cba09.js} +6 -6
  402. package/lib/dist-custom-elements/{p-d9e0ed3d.js → p-ec27d97c.js} +5 -5
  403. package/lib/dist-custom-elements/{p-ae60aedc.js → p-f0814752.js} +36 -13
  404. package/lib/dist-custom-elements/{p-6c774bf0.js → p-f24d48e7.js} +12 -6
  405. package/lib/dist-custom-elements/{p-8a08c2ba.js → p-fef4533f.js} +7 -7
  406. package/lib/duet/duet.esm.js +1 -1
  407. package/lib/duet/duet.js +1 -1
  408. package/lib/duet/{p-d0c4f3be.system.entry.js → p-01108865.system.entry.js} +1 -1
  409. package/lib/duet/{p-f2c7b7a7.entry.js → p-01fb38a7.entry.js} +1 -1
  410. package/lib/duet/{p-317a6b01.system.entry.js → p-03f6997b.system.entry.js} +1 -1
  411. package/lib/duet/p-04110930.entry.js +4 -0
  412. package/lib/duet/{p-0f2ce038.system.entry.js → p-04f0d026.system.entry.js} +2 -2
  413. package/lib/duet/p-050296c6.system.entry.js +4 -0
  414. package/lib/duet/p-051686ca.system.entry.js +4 -0
  415. package/lib/duet/{p-addc72ed.entry.js → p-0565c078.entry.js} +1 -1
  416. package/lib/duet/{p-ff2921ce.entry.js → p-0616ff06.entry.js} +1 -1
  417. package/lib/duet/{p-21f862ba.entry.js → p-064be793.entry.js} +1 -1
  418. package/lib/duet/p-067a03de.entry.js +4 -0
  419. package/lib/duet/p-06e4bb08.system.entry.js +4 -0
  420. package/lib/duet/{p-032a3916.entry.js → p-07e5c1ee.entry.js} +1 -1
  421. package/lib/duet/{p-b374c6d4.entry.js → p-0868b0ab.entry.js} +1 -1
  422. package/lib/duet/{p-a7fe475b.js → p-08bba53e.js} +1 -1
  423. package/lib/duet/p-0a2ca8d4.entry.js +4 -0
  424. package/lib/duet/{p-f6c0e8f6.system.entry.js → p-0b311af8.system.entry.js} +1 -1
  425. package/lib/duet/{p-1e3f1ae9.js → p-0c7b1f02.js} +1 -1
  426. package/lib/duet/{p-dfa29477.system.entry.js → p-0e332dee.system.entry.js} +1 -1
  427. package/lib/duet/{p-7511b87b.system.js → p-0e5663a5.system.js} +1 -1
  428. package/lib/duet/{p-96a6b699.entry.js → p-0e9d4260.entry.js} +1 -1
  429. package/lib/duet/{p-009a5ed8.system.entry.js → p-0ecbbcd0.system.entry.js} +2 -2
  430. package/lib/duet/{p-d8a3a455.entry.js → p-101ca8af.entry.js} +1 -1
  431. package/lib/duet/{p-c3ce7291.entry.js → p-10e64a2b.entry.js} +1 -1
  432. package/lib/duet/{p-058f9a4a.entry.js → p-12ba0e70.entry.js} +1 -1
  433. package/lib/duet/{p-ce660d1e.system.entry.js → p-13f29f11.system.entry.js} +1 -1
  434. package/lib/duet/{p-f4b38b74.entry.js → p-15210ebf.entry.js} +1 -1
  435. package/lib/duet/{p-cf8e48d4.system.entry.js → p-16dab8b1.system.entry.js} +1 -1
  436. package/lib/duet/{p-8a04e00e.system.entry.js → p-181173c9.system.entry.js} +2 -2
  437. package/lib/duet/p-18ba9b1b.system.entry.js +4 -0
  438. package/lib/duet/{p-3d0fd313.system.entry.js → p-1a563828.system.entry.js} +1 -1
  439. package/lib/duet/{p-e0738105.entry.js → p-1c3fe02c.entry.js} +1 -1
  440. package/lib/duet/p-1d18b853.system.entry.js +4 -0
  441. package/lib/duet/{p-53e9e625.entry.js → p-1e413da2.entry.js} +1 -1
  442. package/lib/duet/{p-48546dcd.js → p-1ee687f8.js} +1 -1
  443. package/lib/duet/{p-3f7e6bfa.system.entry.js → p-1f18231b.system.entry.js} +1 -1
  444. package/lib/duet/p-1f4598d2.system.entry.js +4 -0
  445. package/lib/duet/p-23829f27.system.entry.js +4 -0
  446. package/lib/duet/p-260f26f5.system.js +4 -0
  447. package/lib/duet/{p-5bb0e24b.entry.js → p-262f5b02.entry.js} +1 -1
  448. package/lib/duet/{p-a848b7be.entry.js → p-26382102.entry.js} +1 -1
  449. package/lib/duet/p-27624e46.system.entry.js +4 -0
  450. package/lib/duet/p-292da4fb.system.entry.js +4 -0
  451. package/lib/duet/{p-96b5040c.system.entry.js → p-29863ae9.system.entry.js} +1 -1
  452. package/lib/duet/{p-1e4bb89a.entry.js → p-2b9fce6b.entry.js} +1 -1
  453. package/lib/duet/{p-f620628c.system.entry.js → p-2da78b69.system.entry.js} +1 -1
  454. package/lib/duet/{p-df767f70.entry.js → p-2ecba133.entry.js} +1 -1
  455. package/lib/duet/{p-f6541707.entry.js → p-2f81e969.entry.js} +1 -1
  456. package/lib/duet/p-312af8bd.entry.js +4 -0
  457. package/lib/duet/{p-22acf75a.entry.js → p-3298b606.entry.js} +1 -1
  458. package/lib/duet/p-32f02f64.system.entry.js +4 -0
  459. package/lib/duet/p-33673113.system.entry.js +4 -0
  460. package/lib/duet/{p-bfae23ac.entry.js → p-3500d34b.entry.js} +1 -1
  461. package/lib/duet/p-35166e3f.entry.js +4 -0
  462. package/lib/duet/p-361f8626.system.entry.js +4 -0
  463. package/lib/duet/{p-fc4ab34f.system.entry.js → p-39d24328.system.entry.js} +2 -2
  464. package/lib/duet/{p-4286716c.system.entry.js → p-3a63986f.system.entry.js} +1 -1
  465. package/lib/duet/p-3a7af916.entry.js +4 -0
  466. package/lib/duet/p-3d1ab7fe.system.entry.js +4 -0
  467. package/lib/duet/{p-60ef7612.entry.js → p-3d7cf9ac.entry.js} +1 -1
  468. package/lib/duet/{p-4c705015.entry.js → p-3ff6b3af.entry.js} +1 -1
  469. package/lib/duet/{p-cfd4a8d6.entry.js → p-3ffb0c67.entry.js} +1 -1
  470. package/lib/duet/{p-7f6788ac.system.js → p-40092524.system.js} +1 -1
  471. package/lib/duet/{p-80c2fd49.entry.js → p-41abde10.entry.js} +1 -1
  472. package/lib/duet/p-421491ad.system.entry.js +4 -0
  473. package/lib/duet/p-431e6648.entry.js +4 -0
  474. package/lib/duet/{p-4400f98c.entry.js → p-436ccd36.entry.js} +1 -1
  475. package/lib/duet/{p-81e96117.system.entry.js → p-4431973b.system.entry.js} +1 -1
  476. package/lib/duet/{p-e422bba3.system.entry.js → p-4af8a986.system.entry.js} +1 -1
  477. package/lib/duet/{p-fc7e3f1c.system.entry.js → p-4da54416.system.entry.js} +1 -1
  478. package/lib/duet/{p-dc51a397.entry.js → p-4dd65e5d.entry.js} +1 -1
  479. package/lib/duet/p-4e82ca26.entry.js +4 -0
  480. package/lib/duet/{p-69917aca.entry.js → p-4ea2e217.entry.js} +1 -1
  481. package/lib/duet/{p-a7539ce8.system.entry.js → p-4ecea3e6.system.entry.js} +1 -1
  482. package/lib/duet/p-53b8bc61.entry.js +4 -0
  483. package/lib/duet/{p-973da923.system.entry.js → p-54a78bb7.system.entry.js} +1 -1
  484. package/lib/duet/{p-25406dc2.entry.js → p-5646f856.entry.js} +1 -1
  485. package/lib/duet/{p-f6adf35f.entry.js → p-58d62f62.entry.js} +1 -1
  486. package/lib/duet/{p-d3847906.system.entry.js → p-5947c8fc.system.entry.js} +1 -1
  487. package/lib/duet/{p-fa051572.entry.js → p-597d57cf.entry.js} +1 -1
  488. package/lib/duet/p-597e39d7.js +5 -0
  489. package/lib/duet/p-5ab9b2f2.system.entry.js +4 -0
  490. package/lib/duet/{p-14298080.system.entry.js → p-5aebfc50.system.entry.js} +1 -1
  491. package/lib/duet/{p-86859fa9.entry.js → p-5be207bf.entry.js} +1 -1
  492. package/lib/duet/{p-80dceb63.system.entry.js → p-5cad5c31.system.entry.js} +1 -1
  493. package/lib/duet/p-5ddb7055.entry.js +4 -0
  494. package/lib/duet/{p-6807122b.system.entry.js → p-5f47699f.system.entry.js} +1 -1
  495. package/lib/duet/p-61e0218c.js +4 -0
  496. package/lib/duet/p-6232b9ae.system.entry.js +4 -0
  497. package/lib/duet/{p-8aa62ae7.entry.js → p-6388394f.entry.js} +1 -1
  498. package/lib/duet/{p-a5ec5a20.system.entry.js → p-63ce7199.system.entry.js} +1 -1
  499. package/lib/duet/{p-9ee1bee5.entry.js → p-650bdc25.entry.js} +1 -1
  500. package/lib/duet/{p-2af8bb5b.entry.js → p-654b8fd6.entry.js} +1 -1
  501. package/lib/duet/{p-58ccbfbc.system.entry.js → p-657f06e2.system.entry.js} +1 -1
  502. package/lib/duet/p-65972f71.system.entry.js +4 -0
  503. package/lib/duet/p-67cbf075.system.entry.js +4 -0
  504. package/lib/duet/{p-74e1ad60.entry.js → p-69c35153.entry.js} +1 -1
  505. package/lib/duet/{p-a536e3a0.entry.js → p-6febb548.entry.js} +1 -1
  506. package/lib/duet/p-71c36d89.entry.js +4 -0
  507. package/lib/duet/{p-a4e8eef3.entry.js → p-7526e5be.entry.js} +1 -1
  508. package/lib/duet/p-7738ff68.system.entry.js +4 -0
  509. package/lib/duet/{p-2d3a9127.system.entry.js → p-795182e4.system.entry.js} +1 -1
  510. package/lib/duet/p-7a91e718.system.entry.js +4 -0
  511. package/lib/duet/p-7c9c8402.entry.js +4 -0
  512. package/lib/duet/p-7da43883.entry.js +4 -0
  513. package/lib/duet/p-7f0ed16a.system.entry.js +4 -0
  514. package/lib/duet/{p-b841982a.system.entry.js → p-84c31ed7.system.entry.js} +1 -1
  515. package/lib/duet/p-85f8ab4a.system.js +4 -0
  516. package/lib/duet/p-87e52e22.system.entry.js +4 -0
  517. package/lib/duet/p-8962c32b.system.entry.js +4 -0
  518. package/lib/duet/{p-e73d04ec.entry.js → p-89f663e3.entry.js} +1 -1
  519. package/lib/duet/{p-5e3881fb.system.entry.js → p-8b2d95a9.system.entry.js} +1 -1
  520. package/lib/duet/{p-c046ca7f.entry.js → p-8ce6d5a4.entry.js} +1 -1
  521. package/lib/duet/{p-aff63498.system.entry.js → p-912e1084.system.entry.js} +1 -1
  522. package/lib/duet/{p-52cff2cb.entry.js → p-924f7ee7.entry.js} +1 -1
  523. package/lib/duet/{p-3b9b55a6.entry.js → p-9335920c.entry.js} +1 -1
  524. package/lib/duet/p-93858ff9.js +4 -0
  525. package/lib/duet/p-9452de48.system.entry.js +4 -0
  526. package/lib/duet/{p-553e9a82.entry.js → p-9515506f.entry.js} +1 -1
  527. package/lib/duet/{p-fd0af915.system.entry.js → p-9535e410.system.entry.js} +1 -1
  528. package/lib/duet/{p-bc5c6ecb.entry.js → p-9692fc04.entry.js} +1 -1
  529. package/lib/duet/{p-ba93a877.entry.js → p-9a86f97f.entry.js} +1 -1
  530. package/lib/duet/{p-5178e544.entry.js → p-a237b26a.entry.js} +1 -1
  531. package/lib/duet/{p-734c25f9.system.js → p-a284304c.system.js} +1 -1
  532. package/lib/duet/{p-0fb78561.entry.js → p-a34354c3.entry.js} +1 -1
  533. package/lib/duet/p-a6f60427.system.entry.js +4 -0
  534. package/lib/duet/{p-9b926e8e.system.entry.js → p-a7582ffa.system.entry.js} +1 -1
  535. package/lib/duet/{p-ee135214.system.entry.js → p-a856a264.system.entry.js} +1 -1
  536. package/lib/duet/{p-d68185fb.system.entry.js → p-a90171c5.system.entry.js} +1 -1
  537. package/lib/duet/{p-6fd4afc8.entry.js → p-aade89bd.entry.js} +1 -1
  538. package/lib/duet/{p-43d2bdf1.system.entry.js → p-ad92101a.system.entry.js} +1 -1
  539. package/lib/duet/{p-be782730.system.entry.js → p-b02acbb7.system.entry.js} +1 -1
  540. package/lib/duet/{p-cc250f3a.entry.js → p-b0ad7329.entry.js} +1 -1
  541. package/lib/duet/p-b0e2711d.system.entry.js +4 -0
  542. package/lib/duet/p-b3501770.system.entry.js +4 -0
  543. package/lib/duet/{p-d801f359.system.entry.js → p-b6b5fcac.system.entry.js} +1 -1
  544. package/lib/duet/p-bbad70b3.system.entry.js +4 -0
  545. package/lib/duet/{p-5ca4d3d1.system.entry.js → p-bc77d7d6.system.entry.js} +2 -2
  546. package/lib/duet/{p-8ba69a2e.system.entry.js → p-c00b9de0.system.entry.js} +2 -2
  547. package/lib/duet/{p-18c6d7a7.system.entry.js → p-c0170c7f.system.entry.js} +1 -1
  548. package/lib/duet/{p-e69859f2.system.js → p-c095dda3.system.js} +1 -1
  549. package/lib/duet/{p-d2813b52.entry.js → p-c0c9db4b.entry.js} +1 -1
  550. package/lib/duet/{p-9c2ffb4f.entry.js → p-c2fad6a5.entry.js} +1 -1
  551. package/lib/duet/p-c31db313.system.entry.js +4 -0
  552. package/lib/duet/{p-4f53b3a5.entry.js → p-c35f014e.entry.js} +1 -1
  553. package/lib/duet/p-c54d743f.entry.js +4 -0
  554. package/lib/duet/p-ca4ce779.system.entry.js +4 -0
  555. package/lib/duet/p-cc163e81.system.js +4 -0
  556. package/lib/duet/{p-399a0bf4.entry.js → p-cccbf193.entry.js} +1 -1
  557. package/lib/duet/{p-bd3655f0.entry.js → p-ceadecc7.entry.js} +1 -1
  558. package/lib/duet/{p-75e9e7dd.system.entry.js → p-cf2d6343.system.entry.js} +1 -1
  559. package/lib/duet/{p-ff024fa4.system.entry.js → p-cf86a2c5.system.entry.js} +1 -1
  560. package/lib/duet/{p-755eb00f.system.js → p-d16254bc.system.js} +1 -1
  561. package/lib/duet/p-d18e475d.js +4 -0
  562. package/lib/duet/{p-c6f6f357.entry.js → p-d2ebebb1.entry.js} +1 -1
  563. package/lib/duet/{p-a9b8edca.system.entry.js → p-d3273de6.system.entry.js} +1 -1
  564. package/lib/duet/{p-ca8a3ab8.entry.js → p-d343e764.entry.js} +1 -1
  565. package/lib/duet/{p-4b2b7fec.entry.js → p-d496bebb.entry.js} +1 -1
  566. package/lib/duet/p-d727b6a0.system.js +4 -0
  567. package/lib/duet/{p-f00ebb0b.entry.js → p-d8326db8.entry.js} +1 -1
  568. package/lib/duet/{p-ff336afc.entry.js → p-d8bad54e.entry.js} +1 -1
  569. package/lib/duet/{p-a555cf62.entry.js → p-dc54c51c.entry.js} +1 -1
  570. package/lib/duet/{p-20f9da14.entry.js → p-dcb5349d.entry.js} +1 -1
  571. package/lib/duet/{p-a53202be.system.entry.js → p-dd3f683b.system.entry.js} +1 -1
  572. package/lib/duet/p-dd766c73.js +4 -0
  573. package/lib/duet/{p-0cf30d86.entry.js → p-de09a768.entry.js} +1 -1
  574. package/lib/duet/{p-3d7a5124.entry.js → p-def5e665.entry.js} +1 -1
  575. package/lib/duet/p-e3c5b05c.entry.js +4 -0
  576. package/lib/duet/{p-8788ab31.system.entry.js → p-e4687509.system.entry.js} +1 -1
  577. package/lib/duet/p-e6af90e5.system.entry.js +4 -0
  578. package/lib/duet/p-e8b29168.system.entry.js +4 -0
  579. package/lib/duet/p-ea16c673.system.entry.js +4 -0
  580. package/lib/duet/{p-0c8a4678.system.entry.js → p-eac6f6c4.system.entry.js} +1 -1
  581. package/lib/duet/{p-365ec86f.entry.js → p-eac80482.entry.js} +1 -1
  582. package/lib/duet/{p-64ab501a.entry.js → p-ec2870db.entry.js} +1 -1
  583. package/lib/duet/{p-83e82dff.system.entry.js → p-ed98e3ec.system.entry.js} +2 -2
  584. package/lib/duet/p-ee777922.entry.js +4 -0
  585. package/lib/duet/{p-e5bb414d.entry.js → p-eeefee8e.entry.js} +1 -1
  586. package/lib/duet/{p-6f029ccf.system.entry.js → p-f2ea381a.system.entry.js} +1 -1
  587. package/lib/duet/{p-0f570568.entry.js → p-f48761f3.entry.js} +1 -1
  588. package/lib/duet/p-f78dca2e.entry.js +4 -0
  589. package/lib/duet/p-fc15d9eb.system.entry.js +4 -0
  590. package/lib/duet/p-fc738e75.system.entry.js +4 -0
  591. package/lib/duet/{p-defb2e9d.entry.js → p-fd2005f3.entry.js} +1 -1
  592. package/lib/duet/{p-c3dde668.system.entry.js → p-fe992c7f.system.entry.js} +1 -1
  593. package/lib/esm/{a11y-utils-7401b486.js → a11y-utils-ce831a3f.js} +1 -1
  594. package/lib/esm/{app-globals-6b42a456.js → app-globals-ccf6e0cb.js} +1 -1
  595. package/lib/esm/duet-action-button.entry.js +4 -4
  596. package/lib/esm/duet-alert.entry.js +32 -9
  597. package/lib/esm/duet-badge.entry.js +5 -5
  598. package/lib/esm/duet-banner.entry.js +5 -5
  599. package/lib/esm/duet-breadcrumb.entry.js +7 -7
  600. package/lib/esm/duet-breadcrumbs.entry.js +6 -6
  601. package/lib/esm/duet-button_2.entry.js +12 -12
  602. package/lib/esm/duet-callout.entry.js +6 -6
  603. package/lib/esm/duet-caption_4.entry.js +17 -17
  604. package/lib/esm/duet-card.entry.js +7 -7
  605. package/lib/esm/duet-checkbox.entry.js +3 -3
  606. package/lib/esm/duet-checkmark.entry.js +5 -5
  607. package/lib/esm/duet-chip.entry.js +13 -6
  608. package/lib/esm/duet-choice_2.entry.js +12 -6
  609. package/lib/esm/duet-collapsible.entry.js +6 -6
  610. package/lib/esm/duet-combobox.entry.js +5 -5
  611. package/lib/esm/duet-contact-card.entry.js +6 -6
  612. package/lib/esm/duet-cookie-consent.entry.js +4 -4
  613. package/lib/esm/duet-date-picker.entry.js +6 -6
  614. package/lib/esm/duet-divider_2.entry.js +5 -5
  615. package/lib/esm/duet-editable-table_3.entry.js +9 -9
  616. package/lib/esm/duet-empty-state.entry.js +5 -5
  617. package/lib/esm/duet-fieldset.entry.js +7 -7
  618. package/lib/esm/duet-file-chooser.entry.js +3 -3
  619. package/lib/esm/duet-footer.entry.js +9 -9
  620. package/lib/esm/duet-grid_2.entry.js +3 -3
  621. package/lib/esm/duet-header_2.entry.js +5 -5
  622. package/lib/esm/duet-hero.entry.js +10 -10
  623. package/lib/esm/duet-icon.entry.js +6 -6
  624. package/lib/esm/duet-input_2.entry.js +6 -6
  625. package/lib/esm/duet-layout.entry.js +7 -7
  626. package/lib/esm/duet-list_2.entry.js +6 -6
  627. package/lib/esm/duet-menu-bar-button.entry.js +5 -5
  628. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +5 -5
  629. package/lib/esm/duet-menu-bar-dropdown.entry.js +7 -7
  630. package/lib/esm/duet-menu-bar-item.entry.js +8 -8
  631. package/lib/esm/duet-menu-bar-link.entry.js +5 -5
  632. package/lib/esm/duet-menu-bar.entry.js +6 -6
  633. package/lib/esm/duet-modal.entry.js +12 -12
  634. package/lib/esm/duet-multiselect.entry.js +10 -10
  635. package/lib/esm/duet-nav.entry.js +3 -3
  636. package/lib/esm/duet-notification_2.entry.js +9 -9
  637. package/lib/esm/duet-number-input.entry.js +5 -5
  638. package/lib/esm/duet-overlay.entry.js +5 -4
  639. package/lib/esm/duet-page-heading.entry.js +5 -5
  640. package/lib/esm/duet-pagination_2.entry.js +18 -18
  641. package/lib/esm/duet-phone-input.entry.js +15 -14
  642. package/lib/esm/duet-popup-menu_2.entry.js +11 -11
  643. package/lib/esm/duet-progress.entry.js +4 -4
  644. package/lib/esm/duet-promo-card.entry.js +5 -5
  645. package/lib/esm/duet-radio_2.entry.js +11 -5
  646. package/lib/esm/duet-range-slider.entry.js +3 -3
  647. package/lib/esm/duet-scrollable_3.entry.js +15 -15
  648. package/lib/esm/duet-section-layout.entry.js +4 -4
  649. package/lib/esm/duet-select.entry.js +4 -4
  650. package/lib/esm/duet-shaped-image.entry.js +4 -4
  651. package/lib/esm/duet-share-chart-item.entry.js +2 -2
  652. package/lib/esm/duet-share-chart.entry.js +15 -8
  653. package/lib/esm/duet-show-more.entry.js +6 -6
  654. package/lib/esm/duet-slideout-lang.entry.js +5 -5
  655. package/lib/esm/duet-slideout-link.entry.js +8 -8
  656. package/lib/esm/duet-slideout-panel-dropdown.entry.js +7 -7
  657. package/lib/esm/duet-slideout-panel.entry.js +12 -12
  658. package/lib/esm/duet-slideout.entry.js +10 -10
  659. package/lib/esm/duet-status-icon.entry.js +3 -3
  660. package/lib/esm/duet-step_2.entry.js +5 -5
  661. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +5 -5
  662. package/lib/esm/duet-submenu-bar-dropdown.entry.js +7 -7
  663. package/lib/esm/duet-submenu-bar-item.entry.js +7 -7
  664. package/lib/esm/duet-submenu-bar-link.entry.js +4 -4
  665. package/lib/esm/duet-submenu-bar.entry.js +8 -8
  666. package/lib/esm/duet-textarea.entry.js +11 -5
  667. package/lib/esm/duet-toggle.entry.js +3 -3
  668. package/lib/esm/duet-toolbar-dropdown-link.entry.js +5 -5
  669. package/lib/esm/duet-toolbar-dropdown.entry.js +7 -7
  670. package/lib/esm/duet-toolbar-item.entry.js +9 -9
  671. package/lib/esm/duet-toolbar-link.entry.js +5 -5
  672. package/lib/esm/duet-toolbar.entry.js +5 -5
  673. package/lib/esm/duet-tooltip-button_2.entry.js +10 -10
  674. package/lib/esm/duet-tooltip.entry.js +9 -3
  675. package/lib/esm/duet-tray.entry.js +6 -6
  676. package/lib/esm/duet-upload-aria-status.entry.js +2 -2
  677. package/lib/esm/duet-upload-item.entry.js +6 -6
  678. package/lib/esm/duet-visually-hidden.entry.js +2 -2
  679. package/lib/esm/duet.js +4 -4
  680. package/lib/esm/{errorcodes.utils-fbd04a2f.js → errorcodes.utils-d809738b.js} +1 -1
  681. package/lib/esm/{focus-utils-fb23619c.js → focus-utils-107c9dcc.js} +1 -1
  682. package/lib/esm/{index-4dab47c5.js → index-82e1aa6b.js} +1 -1
  683. package/lib/esm/{language-utils-4b9dc3af.js → language-utils-5ce51b7f.js} +1 -1
  684. package/lib/esm/loader.js +4 -4
  685. package/lib/esm/{slot-utils-14a62b07.js → slot-utils-2a4783cb.js} +1 -1
  686. package/lib/esm/themeable-component-6ed84cf7.js +60 -0
  687. package/lib/esm-es5/{a11y-utils-7401b486.js → a11y-utils-ce831a3f.js} +1 -1
  688. package/lib/esm-es5/{app-globals-6b42a456.js → app-globals-ccf6e0cb.js} +1 -1
  689. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  690. package/lib/esm-es5/duet-alert.entry.js +1 -1
  691. package/lib/esm-es5/duet-badge.entry.js +1 -1
  692. package/lib/esm-es5/duet-banner.entry.js +1 -1
  693. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  694. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  695. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  696. package/lib/esm-es5/duet-callout.entry.js +1 -1
  697. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  698. package/lib/esm-es5/duet-card.entry.js +1 -1
  699. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  700. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  701. package/lib/esm-es5/duet-chip.entry.js +1 -1
  702. package/lib/esm-es5/duet-choice_2.entry.js +2 -2
  703. package/lib/esm-es5/duet-collapsible.entry.js +2 -2
  704. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  705. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  706. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  707. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  708. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  709. package/lib/esm-es5/duet-editable-table_3.entry.js +2 -2
  710. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  711. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  712. package/lib/esm-es5/duet-file-chooser.entry.js +2 -2
  713. package/lib/esm-es5/duet-footer.entry.js +2 -2
  714. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  715. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  716. package/lib/esm-es5/duet-hero.entry.js +1 -1
  717. package/lib/esm-es5/duet-icon.entry.js +1 -1
  718. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  719. package/lib/esm-es5/duet-layout.entry.js +1 -1
  720. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  721. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  722. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  723. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +2 -2
  724. package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
  725. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  726. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  727. package/lib/esm-es5/duet-modal.entry.js +1 -1
  728. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  729. package/lib/esm-es5/duet-nav.entry.js +1 -1
  730. package/lib/esm-es5/duet-notification_2.entry.js +2 -2
  731. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  732. package/lib/esm-es5/duet-overlay.entry.js +1 -1
  733. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  734. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  735. package/lib/esm-es5/duet-phone-input.entry.js +1 -1
  736. package/lib/esm-es5/duet-popup-menu_2.entry.js +1 -1
  737. package/lib/esm-es5/duet-progress.entry.js +1 -1
  738. package/lib/esm-es5/duet-promo-card.entry.js +2 -2
  739. package/lib/esm-es5/duet-radio_2.entry.js +2 -2
  740. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  741. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  742. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  743. package/lib/esm-es5/duet-select.entry.js +2 -2
  744. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  745. package/lib/esm-es5/duet-share-chart-item.entry.js +1 -1
  746. package/lib/esm-es5/duet-share-chart.entry.js +1 -1
  747. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  748. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  749. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  750. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +2 -2
  751. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  752. package/lib/esm-es5/duet-slideout.entry.js +1 -1
  753. package/lib/esm-es5/duet-status-icon.entry.js +1 -1
  754. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  755. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  756. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  757. package/lib/esm-es5/duet-submenu-bar-item.entry.js +2 -2
  758. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  759. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  760. package/lib/esm-es5/duet-textarea.entry.js +2 -2
  761. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  762. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  763. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  764. package/lib/esm-es5/duet-toolbar-item.entry.js +1 -1
  765. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  766. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  767. package/lib/esm-es5/duet-tooltip-button_2.entry.js +2 -2
  768. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  769. package/lib/esm-es5/duet-tray.entry.js +1 -1
  770. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  771. package/lib/esm-es5/duet-upload-item.entry.js +2 -2
  772. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  773. package/lib/esm-es5/duet.js +1 -1
  774. package/lib/esm-es5/{errorcodes.utils-fbd04a2f.js → errorcodes.utils-d809738b.js} +1 -1
  775. package/lib/esm-es5/focus-utils-107c9dcc.js +4 -0
  776. package/lib/esm-es5/index-82e1aa6b.js +4 -0
  777. package/lib/esm-es5/{language-utils-4b9dc3af.js → language-utils-5ce51b7f.js} +1 -1
  778. package/lib/esm-es5/loader.js +1 -1
  779. package/lib/esm-es5/{slot-utils-14a62b07.js → slot-utils-2a4783cb.js} +1 -1
  780. package/lib/esm-es5/themeable-component-6ed84cf7.js +4 -0
  781. package/lib/types/components/duet-alert/duet-alert.d.ts +1 -0
  782. package/lib/types/components/duet-chip/duet-chip.d.ts +1 -0
  783. package/lib/types/components/duet-choice-group/duet-choice-group.d.ts +1 -0
  784. package/lib/types/components/duet-overlay/duet-overlay.d.ts +4 -0
  785. package/lib/types/components/duet-radio-group/duet-radio-group.d.ts +1 -0
  786. package/lib/types/components/duet-textarea/duet-textarea.d.ts +4 -2
  787. package/lib/types/components.d.ts +14 -4
  788. package/package.json +4 -4
  789. package/lib/cjs/themeable-component-851fd595.js +0 -23
  790. package/lib/dist-custom-elements/p-347269f4.js +0 -21
  791. package/lib/dist-custom-elements/p-797cd5a8.js +0 -148
  792. package/lib/duet/p-011ca56b.entry.js +0 -4
  793. package/lib/duet/p-05c1677e.system.entry.js +0 -4
  794. package/lib/duet/p-07bd1ef4.entry.js +0 -4
  795. package/lib/duet/p-0a39295c.entry.js +0 -4
  796. package/lib/duet/p-0a53642c.system.js +0 -4
  797. package/lib/duet/p-0a6c13c9.system.entry.js +0 -4
  798. package/lib/duet/p-0d13539d.system.entry.js +0 -4
  799. package/lib/duet/p-10626c96.system.entry.js +0 -4
  800. package/lib/duet/p-10e71547.system.entry.js +0 -4
  801. package/lib/duet/p-12b9d5ef.system.entry.js +0 -4
  802. package/lib/duet/p-1e377e29.entry.js +0 -4
  803. package/lib/duet/p-3111baaa.system.entry.js +0 -4
  804. package/lib/duet/p-3462a1dc.entry.js +0 -4
  805. package/lib/duet/p-347269f4.js +0 -4
  806. package/lib/duet/p-3c539a14.system.entry.js +0 -4
  807. package/lib/duet/p-3f5c74ac.js +0 -5
  808. package/lib/duet/p-3f9cd215.system.entry.js +0 -4
  809. package/lib/duet/p-435ad516.entry.js +0 -4
  810. package/lib/duet/p-48c2bd2d.system.entry.js +0 -4
  811. package/lib/duet/p-4bc1a3d4.system.entry.js +0 -4
  812. package/lib/duet/p-4e21466c.system.entry.js +0 -4
  813. package/lib/duet/p-55d5039c.entry.js +0 -4
  814. package/lib/duet/p-5d17c050.system.js +0 -4
  815. package/lib/duet/p-5ece86f5.system.entry.js +0 -4
  816. package/lib/duet/p-62dc04eb.system.entry.js +0 -4
  817. package/lib/duet/p-6337d717.system.entry.js +0 -4
  818. package/lib/duet/p-63d96d93.system.entry.js +0 -4
  819. package/lib/duet/p-67c1a50f.js +0 -4
  820. package/lib/duet/p-6934bb18.entry.js +0 -4
  821. package/lib/duet/p-69d3e6c6.system.entry.js +0 -4
  822. package/lib/duet/p-6b8fad89.js +0 -4
  823. package/lib/duet/p-6bc4e422.system.entry.js +0 -4
  824. package/lib/duet/p-6ec53971.system.js +0 -4
  825. package/lib/duet/p-7113c656.entry.js +0 -4
  826. package/lib/duet/p-7ae7be92.system.entry.js +0 -4
  827. package/lib/duet/p-80567c97.system.entry.js +0 -4
  828. package/lib/duet/p-8e318bf7.system.entry.js +0 -4
  829. package/lib/duet/p-90448196.js +0 -4
  830. package/lib/duet/p-957014cb.entry.js +0 -4
  831. package/lib/duet/p-96ed8863.system.entry.js +0 -4
  832. package/lib/duet/p-aaec2385.system.entry.js +0 -4
  833. package/lib/duet/p-b15112ee.system.entry.js +0 -4
  834. package/lib/duet/p-b2d44f57.system.js +0 -4
  835. package/lib/duet/p-b8cdd3d1.entry.js +0 -4
  836. package/lib/duet/p-bf4a9de4.system.entry.js +0 -4
  837. package/lib/duet/p-c1361d9f.entry.js +0 -4
  838. package/lib/duet/p-c2a7391a.entry.js +0 -4
  839. package/lib/duet/p-d073f201.entry.js +0 -4
  840. package/lib/duet/p-d289c401.system.entry.js +0 -4
  841. package/lib/duet/p-d4f774e7.system.entry.js +0 -4
  842. package/lib/duet/p-d656652c.entry.js +0 -4
  843. package/lib/duet/p-d6fde438.system.entry.js +0 -4
  844. package/lib/duet/p-dbe3b545.system.entry.js +0 -4
  845. package/lib/duet/p-dc83334b.system.entry.js +0 -4
  846. package/lib/duet/p-df511350.system.entry.js +0 -4
  847. package/lib/duet/p-eb7db6af.system.entry.js +0 -4
  848. package/lib/duet/p-ef22612f.entry.js +0 -4
  849. package/lib/duet/p-f3e7d0f7.entry.js +0 -4
  850. package/lib/duet/p-f6022272.system.entry.js +0 -4
  851. package/lib/duet/p-ffd718ec.system.entry.js +0 -4
  852. package/lib/duet/p-fff5d1b3.system.entry.js +0 -4
  853. package/lib/esm/themeable-component-4fc6639e.js +0 -21
  854. package/lib/esm-es5/focus-utils-fb23619c.js +0 -4
  855. package/lib/esm-es5/index-4dab47c5.js +0 -4
  856. package/lib/esm-es5/themeable-component-4fc6639e.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,c as t,h as i,H as a,g as n}from"./p-3f5c74ac.js";import{a as o,b as s}from"./p-d32bd233.js";import{i as r}from"./p-347269f4.js";import{a as d}from"./p-1e3f1ae9.js";import"./p-9c3c64b9.js";const h=class{constructor(i){e(this,i),this.duetEvent=t(this,"duetEvent",7),this.mql=[window.matchMedia(o.replace(/'/g,"")),window.matchMedia(s.replace(/'/g,""))],this.boundMqlFunctions=[],this.previousYScroll=0,this.scrollbarCheck=()=>{this.leftMoreVisible=this.container.scrollLeft>0,this.rightMoreVisible=this.container.scrollLeft!==this.container.scrollWidth-this.container.clientWidth},this.scrollToActive=()=>{let e;this.element.querySelectorAll("[active]").forEach((t=>{t.active&&(e=t)})),e&&e.offsetLeft&&e.offsetLeft>50&&(this.container.scrollLeft=e.offsetLeft-this.element.getBoundingClientRect().width/2+e.offsetWidth/2)},this.checkCenterSlot=()=>{const e=this.element.querySelector('[slot="center"]');this.centerSlotUsed=!!e},this.changeLogoSize=()=>{this.checkCenterSlot(),this.logoSize=this.mql[1].matches&&this.centerSlotUsed?"large":"medium"},this.handleLogoClick=e=>{this.duetEvent.emit({name:"logoClick",component:"duet-menu-bar",data:{logoHref:this.logoHref},originalEvent:e})},this.hidden=!1,this.onBottom=!1,this.logoSize="large",this.leftMoreVisible=!1,this.rightMoreVisible=!1,this.centerSlotUsed=!1,this.theme="",this.language=d(),this.logo=!0,this.logoHref=void 0,this.logoLinkAccessibleLabel=void 0,this.accessibleLabel=void 0,this.hideOnScroll=!1}checkScroll(){this.hideOnScroll&&(window.scrollY>this.previousYScroll?window.scrollY>100&&(this.hideOnScroll&&(clearTimeout(this.zindexTimer),this.onBottom=!0),this.hidden=!0):window.scrollY<150&&(this.hideOnScroll&&(this.zindexTimer=setTimeout((()=>{this.onBottom=!1}),300)),this.hidden=!1),this.previousYScroll=window.scrollY)}componentWillLoad(){r(this)}connectedCallback(){this.changeLogoSize();for(let e=0;e<this.mql.length;e++)if(this.mql[e].addEventListener){const t=this.changeLogoSize.bind(this);this.mql[e].addEventListener("change",t),this.boundMqlFunctions[e]=t}this.checkCenterSlot()}disconnectedCallback(){for(let e=0;e<this.mql.length;e++)this.mql[e].removeEventListener&&this.mql[e].removeEventListener("change",this.boundMqlFunctions[e]);this.boundMqlFunctions=[]}componentDidLoad(){setTimeout((()=>{this.scrollbarCheck(),this.scrollToActive(),this.checkCenterSlot()}),0)}onWindowResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout((()=>{this.scrollToActive()}),100)}render(){const e=document.querySelectorAll("duet-slideout").length>0;return i(a,{key:"ba51ccb8c54c3fe7671eddff8378534eb0aa4503"},i("nav",{key:"77477660c912b5e361daedbcf8dce77d85e1fdaa",class:{"duet-menu-bar":!0,"duet-theme-turva":"turva"===this.theme,"horizontal-nav":e&&!this.logo,"duet-menu-bar-slim":!this.centerSlotUsed,hidden:this.hidden&&this.hideOnScroll,bottom:this.onBottom},"aria-label":this.accessibleLabel},i("div",{key:"b78519eb96e7fce14819a328e80794bdaaeb4614",class:"top"}),i("div",{key:"569571f9f4fea275f14d8cf27bed3d9c9ebaccfe",class:{container:!0},ref:e=>this.container=e,onScroll:()=>this.scrollbarCheck()},this.logo&&i("div",{key:"204c1ae8618cfdb39f1e05e23375a10e2872c194"},i("duet-logo",{key:"b0175b7ed2254da32ad9495cb1b089d72ad0f3e4",size:this.logoSize,margin:"none",theme:this.theme,href:this.logoHref,accessibleLabel:this.logoLinkAccessibleLabel,onClick:this.handleLogoClick,language:this.language})),i("div",{key:"a1dfa3d10da3c0f2d0b999dffbd24366d6285128",class:"list center",role:"list"},i("div",{key:"60d126975451f170fc5c38d1804fff0ac95c3037",class:"more-left",hidden:!this.leftMoreVisible,role:"presentation"}),i("slot",{key:"ea4b5d602de4baf6ebea7142e3d9617eda1c8cff",name:"center"}),i("div",{key:"d0b27d21ad85f447011cbdde964b255bcb9c1375",class:"more-right",hidden:!this.rightMoreVisible,role:"presentation"})),i("div",{key:"d7b1e7dbbf01436ab09d792ce9c47736cdc9fe52",class:"list right",role:"list"},i("slot",{key:"d0ff87de435ef2a5e3c4f96d6992704957542c84",name:"right"}))),i("div",{key:"c5ac242c2634edc9c46423f4051d98a47bac300a",class:"bottom"})))}get element(){return n(this)}};h.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;width:100%}.duet-menu-bar{position:relative;top:0;z-index:2;display:flex;align-items:center;justify-content:center;background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07);transition:top 0.3s}.duet-menu-bar.hidden{top:-200px}.duet-menu-bar.bottom{z-index:1}@media (min-width: 62em){.duet-menu-bar{box-shadow:0 3px 6px 0 rgba(0, 41, 77, 0.1)}}.duet-menu-bar .top{display:none}.duet-menu-bar .bottom{display:none}.duet-menu-bar.horizontal-nav{position:relative}.duet-menu-bar.horizontal-nav .top{position:absolute;top:0;left:3.5%;display:block;width:93%;height:1px;background:rgb(245, 248, 250)}.duet-menu-bar.horizontal-nav .bottom{position:absolute;bottom:0;left:0;display:block;width:100%;height:1px;background:rgb(212, 223, 229)}.duet-menu-bar.horizontal-nav .more-left{position:absolute;top:0;left:0;z-index:1;width:56px;height:49px;pointer-events:none;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%)}@media (min-width: 62em){.duet-menu-bar.horizontal-nav .more-left{display:none}}.duet-menu-bar.horizontal-nav .more-right{position:absolute;top:0;right:0;z-index:1;width:56px;height:49px;pointer-events:none;background:linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%)}@media (min-width: 62em){.duet-menu-bar.horizontal-nav .more-right{display:none}}@media (pointer: fine){.duet-menu-bar.horizontal-nav{display:none}}@media (pointer: fine) and ((min-width: 62em)){.duet-menu-bar.horizontal-nav{display:flex}}.duet-menu-bar .container{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1440px;height:100%;height:3.25rem;padding:0 8px 0 20px;overflow-x:auto;scrollbar-width:none}.duet-menu-bar .container::-webkit-scrollbar{width:0;height:0}@media (min-width: 62em){.duet-menu-bar .container{height:5rem;padding:0 28px;overflow-x:visible}}.duet-menu-bar .container .list{height:100%;list-style-type:none}.duet-menu-bar .container ::slotted(*){height:100%}.duet-menu-bar .container>*{display:flex;align-items:center;justify-content:center;height:100%}.duet-menu-bar .container>:first-child{flex-basis:0;flex-grow:1;justify-content:flex-start}.duet-menu-bar .container>:last-child{flex-basis:0;flex-grow:1;justify-content:flex-end}.duet-menu-bar .container ::slotted(*){display:flex;align-items:center;justify-content:center;height:100%}.duet-menu-bar.duet-theme-turva{background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(23, 28, 58, 0.07)}@media (min-width: 62em){.duet-menu-bar.duet-theme-turva{box-shadow:0 3px 6px 0 rgba(23, 28, 58, 0.1)}}@media (min-width: 62em){.duet-menu-bar.duet-menu-bar-slim .container{height:4rem}}.center{font-size:1rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77)}.duet-theme-turva .center{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)}.right{font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 75, 129)}.duet-theme-turva .right{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)}:host(.duet-theme-turva2) .duet-theme-turva .center{color:rgb(35, 46, 61)}:host(.duet-theme-turva2) .duet-theme-turva .right{color:rgb(35, 46, 61)}';export{h as duet_menu_bar}
4
+ import{r as e,c as t,h as i,H as a,g as n}from"./p-597e39d7.js";import{a as o,b as s}from"./p-d32bd233.js";import{i as r}from"./p-d18e475d.js";import{a as d}from"./p-0c7b1f02.js";import"./p-9c3c64b9.js";const h=class{constructor(i){e(this,i),this.duetEvent=t(this,"duetEvent",7),this.mql=[window.matchMedia(o.replace(/'/g,"")),window.matchMedia(s.replace(/'/g,""))],this.boundMqlFunctions=[],this.previousYScroll=0,this.scrollbarCheck=()=>{this.leftMoreVisible=this.container.scrollLeft>0,this.rightMoreVisible=this.container.scrollLeft!==this.container.scrollWidth-this.container.clientWidth},this.scrollToActive=()=>{let e;this.element.querySelectorAll("[active]").forEach((t=>{t.active&&(e=t)})),e&&e.offsetLeft&&e.offsetLeft>50&&(this.container.scrollLeft=e.offsetLeft-this.element.getBoundingClientRect().width/2+e.offsetWidth/2)},this.checkCenterSlot=()=>{const e=this.element.querySelector('[slot="center"]');this.centerSlotUsed=!!e},this.changeLogoSize=()=>{this.checkCenterSlot(),this.logoSize=this.mql[1].matches&&this.centerSlotUsed?"large":"medium"},this.handleLogoClick=e=>{this.duetEvent.emit({name:"logoClick",component:"duet-menu-bar",data:{logoHref:this.logoHref},originalEvent:e})},this.hidden=!1,this.onBottom=!1,this.logoSize="large",this.leftMoreVisible=!1,this.rightMoreVisible=!1,this.centerSlotUsed=!1,this.theme="",this.language=d(),this.logo=!0,this.logoHref=void 0,this.logoLinkAccessibleLabel=void 0,this.accessibleLabel=void 0,this.hideOnScroll=!1}checkScroll(){this.hideOnScroll&&(window.scrollY>this.previousYScroll?window.scrollY>100&&(this.hideOnScroll&&(clearTimeout(this.zindexTimer),this.onBottom=!0),this.hidden=!0):window.scrollY<150&&(this.hideOnScroll&&(this.zindexTimer=setTimeout((()=>{this.onBottom=!1}),300)),this.hidden=!1),this.previousYScroll=window.scrollY)}componentWillLoad(){r(this)}connectedCallback(){this.changeLogoSize();for(let e=0;e<this.mql.length;e++)if(this.mql[e].addEventListener){const t=this.changeLogoSize.bind(this);this.mql[e].addEventListener("change",t),this.boundMqlFunctions[e]=t}this.checkCenterSlot()}disconnectedCallback(){for(let e=0;e<this.mql.length;e++)this.mql[e].removeEventListener&&this.mql[e].removeEventListener("change",this.boundMqlFunctions[e]);this.boundMqlFunctions=[]}componentDidLoad(){setTimeout((()=>{this.scrollbarCheck(),this.scrollToActive(),this.checkCenterSlot()}),0)}onWindowResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout((()=>{this.scrollToActive()}),100)}render(){const e=document.querySelectorAll("duet-slideout").length>0;return i(a,{key:"664846aed5fa5418883aa8e7d285f43bca31b9b7"},i("nav",{key:"67eb2be48aa07d8839de507ac2e7a3d549a7bf1b",class:{"duet-menu-bar":!0,"duet-theme-turva":"turva"===this.theme,"horizontal-nav":e&&!this.logo,"duet-menu-bar-slim":!this.centerSlotUsed,hidden:this.hidden&&this.hideOnScroll,bottom:this.onBottom},"aria-label":this.accessibleLabel},i("div",{key:"e4cb471892ccd3b07e2ba137cfe5f09d2aede935",class:"top"}),i("div",{key:"a3956e49657add3b004a7f48c1039c95e768cf3f",class:{container:!0},ref:e=>this.container=e,onScroll:()=>this.scrollbarCheck()},this.logo&&i("div",{key:"daa83bf253d89d2691a128d4449ec3bd27a0fd1c"},i("duet-logo",{key:"519732ee4b3a9e8db70315d561859b569c3acf9d",size:this.logoSize,margin:"none",theme:this.theme,href:this.logoHref,accessibleLabel:this.logoLinkAccessibleLabel,onClick:this.handleLogoClick,language:this.language})),i("div",{key:"7baa6a6cfbfcfe80e4965d9a2ba8fbd5c2e908fb",class:"list center",role:"list"},i("div",{key:"214ec3b02204a0ff8f09f5ebe8545b3b52e4b27a",class:"more-left",hidden:!this.leftMoreVisible,role:"presentation"}),i("slot",{key:"8f039e09a7b69764151356d5697a2ab65e7b5a2e",name:"center"}),i("div",{key:"25fb60d81a3cb648049e51f9497282feddf24d48",class:"more-right",hidden:!this.rightMoreVisible,role:"presentation"})),i("div",{key:"b86943b205d836a309c61260e20599ff95bf1a1a",class:"list right",role:"list"},i("slot",{key:"16eaaf4fb82ae25c9fd3d8324134f100b0b77c19",name:"right"}))),i("div",{key:"637eb362a07458d226c916447385262fb2b0c32d",class:"bottom"})))}get element(){return n(this)}};h.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;width:100%}.duet-menu-bar{position:relative;top:0;z-index:2;display:flex;align-items:center;justify-content:center;background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07);transition:top 0.3s}.duet-menu-bar.hidden{top:-200px}.duet-menu-bar.bottom{z-index:1}@media (min-width: 62em){.duet-menu-bar{box-shadow:0 3px 6px 0 rgba(0, 41, 77, 0.1)}}.duet-menu-bar .top{display:none}.duet-menu-bar .bottom{display:none}.duet-menu-bar.horizontal-nav{position:relative}.duet-menu-bar.horizontal-nav .top{position:absolute;top:0;left:3.5%;display:block;width:93%;height:1px;background:rgb(245, 248, 250)}.duet-menu-bar.horizontal-nav .bottom{position:absolute;bottom:0;left:0;display:block;width:100%;height:1px;background:rgb(212, 223, 229)}.duet-menu-bar.horizontal-nav .more-left{position:absolute;top:0;left:0;z-index:1;width:56px;height:49px;pointer-events:none;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%)}@media (min-width: 62em){.duet-menu-bar.horizontal-nav .more-left{display:none}}.duet-menu-bar.horizontal-nav .more-right{position:absolute;top:0;right:0;z-index:1;width:56px;height:49px;pointer-events:none;background:linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%)}@media (min-width: 62em){.duet-menu-bar.horizontal-nav .more-right{display:none}}@media (pointer: fine){.duet-menu-bar.horizontal-nav{display:none}}@media (pointer: fine) and ((min-width: 62em)){.duet-menu-bar.horizontal-nav{display:flex}}.duet-menu-bar .container{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1440px;height:100%;height:3.25rem;padding:0 8px 0 20px;overflow-x:auto;scrollbar-width:none}.duet-menu-bar .container::-webkit-scrollbar{width:0;height:0}@media (min-width: 62em){.duet-menu-bar .container{height:5rem;padding:0 28px;overflow-x:visible}}.duet-menu-bar .container .list{height:100%;list-style-type:none}.duet-menu-bar .container ::slotted(*){height:100%}.duet-menu-bar .container>*{display:flex;align-items:center;justify-content:center;height:100%}.duet-menu-bar .container>:first-child{flex-basis:0;flex-grow:1;justify-content:flex-start}.duet-menu-bar .container>:last-child{flex-basis:0;flex-grow:1;justify-content:flex-end}.duet-menu-bar .container ::slotted(*){display:flex;align-items:center;justify-content:center;height:100%}.duet-menu-bar.duet-theme-turva{background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(23, 28, 58, 0.07)}@media (min-width: 62em){.duet-menu-bar.duet-theme-turva{box-shadow:0 3px 6px 0 rgba(23, 28, 58, 0.1)}}@media (min-width: 62em){.duet-menu-bar.duet-menu-bar-slim .container{height:4rem}}.center{font-size:1rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77)}.duet-theme-turva .center{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)}.right{font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 75, 129)}.duet-theme-turva .right{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)}:host(.duet-theme-turva2) .duet-theme-turva .center{color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .right{color:#172a3b}';export{h as duet_menu_bar}
@@ -1,4 +1,4 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,a,i){function n(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,r){function d(t){try{l(i.next(t))}catch(t){r(t)}}function o(t){try{l(i["throw"](t))}catch(t){r(t)}}function l(t){t.done?a(t.value):n(t.value).then(d,o)}l((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,n,r,d;return d={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(d[Symbol.iterator]=function(){return this}),d;function o(t){return function(e){return l([t,e])}}function l(o){if(i)throw new TypeError("Generator is already executing.");while(d&&(d=0,o[0]&&(a=0)),a)try{if(i=1,n&&(r=o[0]&2?n["return"]:o[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;if(n=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:a.label++;return{value:o[1],done:false};case 5:a.label++;n=o[1];o=[0];continue;case 7:o=a.ops.pop();a.trys.pop();continue;default:if(!(r=a.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){a=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(o[0]===6&&a.label<r[1]){a.label=r[1];r=o;break}if(r&&a.label<r[2]){a.label=r[2];a.ops.push(o);break}if(r[2])a.ops.pop();a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t];n=0}finally{i=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,a){if(a||arguments.length===2)for(var i=0,n=e.length,r;i<n;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))};
1
+ var __awaiter=this&&this.__awaiter||function(t,e,a,i){function d(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,n){function r(t){try{o(i.next(t))}catch(t){n(t)}}function l(t){try{o(i["throw"](t))}catch(t){n(t)}}function o(t){t.done?a(t.value):d(t.value).then(r,l)}o((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,d,n,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(t){return function(e){return o([t,e])}}function o(l){if(i)throw new TypeError("Generator is already executing.");while(r&&(r=0,l[0]&&(a=0)),a)try{if(i=1,d&&(n=l[0]&2?d["return"]:l[0]?d["throw"]||((n=d["return"])&&n.call(d),0):d.next)&&!(n=n.call(d,l[1])).done)return n;if(d=0,n)l=[l[0]&2,n.value];switch(l[0]){case 0:case 1:n=l;break;case 4:a.label++;return{value:l[1],done:false};case 5:a.label++;d=l[1];l=[0];continue;case 7:l=a.ops.pop();a.trys.pop();continue;default:if(!(n=a.trys,n=n.length>0&&n[n.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]<n[3])){a.label=l[1];break}if(l[0]===6&&a.label<n[1]){a.label=n[1];n=l;break}if(n&&a.label<n[2]){a.label=n[2];a.ops.push(l);break}if(n[2])a.ops.pop();a.trys.pop();continue}l=e.call(t,a)}catch(t){l=[6,t];d=0}finally{i=n=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,a){if(a||arguments.length===2)for(var i=0,d=e.length,n;i<d;i++){if(n||!(i in e)){if(!n)n=Array.prototype.slice.call(e,0,i);n[i]=e[i]}}return t.concat(n||Array.prototype.slice.call(e))};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register(["./p-7511b87b.system.js","./p-0a53642c.system.js","./p-41982d26.system.js","./p-752fa0fc.system.js","./p-755eb00f.system.js","./p-64959c1d.system.js","./p-9508ee67.system.js","./p-e6b5a1c7.system.js","./p-98636086.system.js","./p-7f6788ac.system.js"],(function(t){"use strict";var e,a,i,n,r,d,o,l,s,u,h,f,b,c,p,m,g,v,y,x,w,k,_;return{setters:[function(t){e=t.h;a=t.r;i=t.c;n=t.H;r=t.g;d=t.F},function(t){o=t.i},function(t){l=t.f;s=t.d},function(t){u=t.i},function(t){h=t.a;f=t.c;b=t.d;c=t.g;p=t.s},function(t){m=t.p;g=t.s},function(t){v=t.b;y=t.a},function(t){x=t.c},function(t){w=t.p},function(t){k=t.g;_=t.a}],execute:function(){var T=function(t,a){var i=t.data,n=t.groupId,r=t.alignment;var d="duet-editable-table duet-editable-table-content-".concat(n);if(typeof i==="string"){return e("td",{innerHTML:i,class:d,part:"".concat(n,"content"),style:{verticalAlign:r}})}else{return e("td",{class:d,part:"".concat(n,"content"),style:{verticalAlign:r}},i)}};var j=".sc-duet-editable-table-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-editable-table-actions-menu.sc-duet-editable-table{position:relative;padding:0 !important;margin:0}.duet-editable-table-actions-menu-button.sc-duet-editable-table{position:relative;right:-16px;float:right;padding:0}.duet-editable-table-actions-menu-icon.sc-duet-editable-table .duet-icon.sc-duet-editable-table{max-width:16px;max-height:16px}.duet-editable-table-row.duet-table-action-row.sc-duet-editable-table .duet-text-right.sc-duet-editable-table{text-align:right}.duet-editable-table-header.sc-duet-editable-table tr.sc-duet-editable-table .duet-editable-table-header-hidden.sc-duet-editable-table{padding:0 !important;font-size:0;border-bottom:0}";var E=j;var S=t("duet_editable_table",function(){function t(t){var e=this;a(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,a){a.preventDefault();var i=t.sort_order,n=t.direction,r=t.index,d=t.key;e.duetTableToggle.emit({sort_order:i,index:r,direction:n,key:d,component:"duet-editable-table",originalEvent:a})};this.handleKeyDown=function(t,a){if(u(a)){e.toggleColumn(t,a)}};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(){o(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(){b(this)};t.prototype.createLabel=function(t){var a=this;var i=t.sort_order,n=t.direction,r=t.index,d=t.label;var o=c(d);if(!this.sortable){return o}var l=function(){if(!!i&&n===1){return"action-arrow-down-small"}else if(!!i&&n===-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:l(),"icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":true,onClick:function(e){return a.toggleColumn(t,e)},onKeyDown:function(e){return a.handleKeyDown(t,e)}},o))};t.prototype.getSortedColumns=function(){return __spreadArray([],this.columns,true).sort(l(["index"]))};t.prototype.getRowSortOrder=function(){var t=__spreadArray([],this.columns,true).sort(l(["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 a=this.getSortedColumns();return e("tr",{class:{"duet-table-action-header":!!this.actions}},a.map((function(a){if(a.display!==false){var i=t.createLabel(a);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,a){var i=this;if(!this.actions){return}return e("td",{class:"duet-text-right"},this.actions.map((function(n){return e("duet-action-button",{actionMeta:Object.assign({},(t===null||t===void 0?void 0:t.meta)||{},{index:a}),actionId:(t===null||t===void 0?void 0:t.uid)||(t===null||t===void 0?void 0:t.id)||null,actionName:n.name,theme:i.theme,iconName:n.icon,iconColor:n.color,iconSize:n.size,background:n.background,"accessible-label":"".concat(t.actionDescription||""," ").concat(c(n.label)," ")})})))};t.prototype.renderTableBody=function(){var t=this;var a=this.getSortedColumns();var i=this.getRowSortOrder();var n=__spreadArray([],this.rows,true).sort(l(i));return n.map((function(i,n){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)},a.map((function(a){var n=i[a.key]?i[a.key]:i.item;if(a.display!==false){return e(T,{data:n,groupId:t.groupId})}})),t.actions&&t.renderActions(i,n))}))};t.prototype.render=function(){var t;return e(n,{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",{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",{role:this.accessibleRole},e("caption",null,e("slot",{name:"tcaption"})),e("thead",null,this.hasHeadSlotFirst&&e("tr",null,e("td",{class:"duet-editable-table-actions-menu",colSpan:99},e("slot",{name:"thead-first"}))),this.renderTableHeader(),this.hasHeadSlotLast&&e("tr",null,e("td",{class:"duet-editable-table-actions-menu",colSpan:99},e("slot",{name:"thead-last"})))),e("tbody",null,this.renderTableBody()),this.hasFootSlot&&e("tfoot",null,e("tr",null,e("td",{class:"duet-editable-table-footer-menu",colSpan:99},e("slot",{name:"tfoot"})))))))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());S.style=E;var L='duet-table{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;font-variant-numeric:tabular-nums}duet-table table,duet-table thead,duet-table tbody,duet-table tfoot,duet-table th,duet-table td,duet-table tr{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}duet-table.duet-m-0{margin:0 !important}duet-table table{width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;text-align:left;border-spacing:0;border-collapse:separate}duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead,duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead *{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}duet-table.duet-theme-turva table{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}duet-table td{-webkit-hyphens:auto;hyphens:auto;color:rgb(8, 42, 77)}duet-table.duet-theme-turva td{color:rgb(23, 28, 58)}duet-table th{font-weight:600;line-height:1.25;color:rgb(98, 121, 138);text-align:left}duet-table.duet-theme-turva th{color:rgb(143, 147, 158)}duet-table tbody th{font-weight:600;color:rgb(8, 42, 77)}duet-table.duet-theme-turva tbody th{color:rgb(23, 28, 58)}duet-table .duet-table-action-row td:last-child{justify-self:end;padding-right:20px !important;white-space:nowrap}duet-table span.duet-table-cell-heading{display:none}.duet-table-flattened table,.duet-table-flattened thead,.duet-table-flattened tbody,.duet-table-flattened tfoot,.duet-table-flattened th,.duet-table-flattened td,.duet-table-flattened tr{display:block}.duet-table-flattened thead tr{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}.duet-table-flattened td{line-height:1.25}.duet-table-flattened td:not(:last-child){margin-bottom:16px !important}.duet-table-flattened td span.duet-table-cell-heading{margin-bottom:4px !important;display:block;font-size:1rem;font-weight:600;color:rgb(8, 42, 77)}.duet-table-flattened.duet-theme-turva td span.duet-table-cell-heading{color:rgb(23, 28, 58)}.duet-table-flattened tbody td,.duet-table-flattened tbody th,.duet-table-flattened tfoot td{padding:0 !important;text-align:left !important}.duet-table-flattened tbody th{font-weight:600;line-height:1.25;color:rgb(98, 121, 138);text-align:left}.duet-table-sticky thead th{position:sticky;top:0;background:rgb(255, 255, 255)}.duet-table-striped td,.duet-table-striped th{padding:20px !important}@media (max-width: 35.9375em){.duet-table-striped td,.duet-table-striped th{padding:20px 12px !important}}.duet-table-striped tbody th{background:rgb(255, 255, 255)}.duet-table-striped.duet-table-sticky thead th{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-table-sticky.duet-theme-turva thead th{border-bottom-color:rgb(222, 224, 228)}.duet-table-striped tbody:not(:first-of-type) th{padding-top:40px !important}.duet-table-striped tbody:only-of-type tr:nth-of-type(odd){background:rgba(4, 81, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(4, 81, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tfoot td{border-top:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-theme-turva tfoot td{border-top-color:rgb(222, 224, 228)}.duet-table-striped.duet-table-flattened tbody:not(:first-of-type) th{padding-top:20px !important}.duet-table-striped.duet-table-flattened tr{padding:20px !important}.duet-table-striped.duet-table-flattened tfoot td{border-top:0}.duet-table-striped.duet-table-flattened tfoot tr{border-top:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:rgb(222, 224, 228)}.duet-table-fixed th,.duet-table-minimal th,.duet-table-plain th{padding:16px !important;border-bottom:1px solid rgb(98, 121, 138)}.duet-table-fixed th:first-child,.duet-table-minimal th:first-child,.duet-table-plain th:first-child{padding-left:0 !important}.duet-table-fixed th:last-child,.duet-table-minimal th:last-child,.duet-table-plain th:last-child{padding-right:0 !important}.duet-theme-turva.duet-table-fixed th,.duet-theme-turva.duet-table-minimal th,.duet-theme-turva.duet-table-plain th{border-bottom-color:rgb(113, 118, 132)}.duet-table-fixed tbody th,.duet-table-minimal tbody th,.duet-table-plain tbody th{padding-top:40px !important;border-bottom-color:rgb(212, 223, 229)}.duet-theme-turva.duet-table-fixed tbody th,.duet-theme-turva.duet-table-minimal tbody th,.duet-theme-turva.duet-table-plain tbody th{border-bottom-color:rgb(222, 224, 228)}.duet-table-fixed td,.duet-table-minimal td,.duet-table-plain td{padding:16px !important}.duet-table-fixed td:first-child,.duet-table-minimal td:first-child,.duet-table-plain td:first-child{padding-left:0 !important}.duet-table-fixed td:last-child,.duet-table-minimal td:last-child,.duet-table-plain td:last-child{padding-right:0 !important}.duet-table-fixed tbody td,.duet-table-minimal tbody td,.duet-table-plain tbody td{border-bottom:1px solid rgb(212, 223, 229)}.duet-theme-turva.duet-table-fixed tbody td,.duet-theme-turva.duet-table-minimal tbody td,.duet-theme-turva.duet-table-plain tbody td{border-bottom-color:rgb(222, 224, 228)}.duet-table-flattened.duet-table-fixed tbody:first-of-type th,.duet-table-flattened.duet-table-minimal tbody:first-of-type th,.duet-table-flattened.duet-table-plain tbody:first-of-type th{padding-top:0 !important}.duet-table-flattened.duet-table-fixed td,.duet-table-flattened.duet-table-minimal td,.duet-table-flattened.duet-table-plain td,.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{border-bottom:0}.duet-table-flattened.duet-table-fixed tr,.duet-table-flattened.duet-table-minimal tr,.duet-table-flattened.duet-table-plain tr{padding:20px 0 !important}.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{padding-top:20px !important}.duet-table-flattened.duet-table-fixed tfoot td,.duet-table-flattened.duet-table-minimal tfoot td,.duet-table-flattened.duet-table-plain tfoot td{margin-bottom:4px !important}.duet-table-flattened.duet-table-fixed tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-minimal tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-plain tbody:not(:only-of-type) tr:first-child{border-bottom:0}.duet-table-plain.duet-table-flattened tbody tr{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:rgb(222, 224, 228)}.duet-table-minimal tbody tr,.duet-table-minimal tbody tr td{vertical-align:top;border-bottom:0 none}.duet-table-minimal tbody tr:last-of-type,.duet-table-minimal tbody tr:last-of-type td{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-minimal.duet-table-flattened tbody tr,.duet-table-minimal.duet-table-flattened tbody tr td{border-bottom:0 none}.duet-table-minimal.duet-table-flattened tbody tr td[data-heading]::before{display:none}.duet-table-minimal.duet-table-flattened tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-fixed table{table-layout:fixed}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td,.duet-table-fixed tbody tr td:first-child{padding:4px !important;vertical-align:text-bottom;border-bottom:0 none}.duet-table-fixed thead{display:none}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td{border-bottom:0 none}.duet-table-fixed:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-fixed:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-scrollable{position:relative;width:100%;overflow-x:auto;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0)), linear-gradient(-90deg, #fff 0%, rgba(255, 255, 255, 0)) 100% 0, radial-gradient(farthest-side at 0% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)) 100% 0%;background-repeat:no-repeat;background-attachment:local, local, scroll, scroll;background-size:100px 100%, 100px 100%, 12px 100%, 12px 100%}.duet-table-selected-column{background:rgba(0, 119, 179, 0.08)}.duet-theme-turva .duet-table-selected-column{background:rgba(113, 118, 132, 0.08)}.duet-table-sortable tbody tr td:first-child,.duet-table-sortable thead tr th:first-child{padding:20px}.duet-table-sortable:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-sortable:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-actions table{table-layout:auto}.duet-table-actions thead th:last-child{width:1px;white-space:nowrap}.duet-editable-table-table.duet-table-flattened tr{display:grid;grid-template-columns:repeat(2, 1fr);grid-auto-rows:auto;gap:10px}.duet-editable-table-table.duet-table-flattened tr.duet-table-action-row td:last-child::before{padding:0;content:""}.duet-editable-table-table.duet-table-flattened td{grid-column:1/2}.duet-editable-table-table.duet-table-flattened td:first-child{grid-row:1;grid-column:1}.duet-editable-table-table.duet-table-flattened td:last-child{grid-row:1;grid-column:2}duet-table.duet-theme-turva2.duet-theme-turva td{color:rgb(35, 46, 61)}duet-table.duet-theme-turva2.duet-theme-turva tbody th{color:rgb(35, 46, 61)}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva.duet-table-sticky thead th{border-bottom-color:rgb(248, 229, 217)}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(35, 46, 61, 0.04)}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(35, 46, 61, 0.04)}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tfoot td{border-top-color:rgb(248, 229, 217)}duet-table.duet-theme-turva2.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:rgb(248, 229, 217)}duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody th{border-bottom-color:rgb(248, 229, 217)}duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody td{border-bottom-color:rgb(248, 229, 217)}duet-table.duet-theme-turva2.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:rgb(248, 229, 217)}duet-table.duet-theme-turva2.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:rgb(248, 229, 217)}duet-table.duet-theme-turva2.duet-table-fixed.duet-theme-turva:not(.duet-table-flattened) tfoot{border-top-color:rgb(248, 229, 217)}duet-table.duet-theme-turva2.duet-table-sortable.duet-theme-turva:not(.duet-table-flattened) tfoot{border-top-color:rgb(248, 229, 217)}';var z=L;var A={none:0,"with-links":parseFloat(m)*16,"without-links":parseFloat(g)*16};var F=t("duet_table",function(){function t(t){var e=this;a(this,t);this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)";this.handleMediaQueryChange=function(t){e.matchesBreakpoint=v.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 a=this;if(t!==e){setTimeout((function(){return a.copyHeadingsToCells()}),50)}};t.prototype.connectedCallback=function(){var t=this;var e=this.breakpoint==="none"||this.breakpoint==="none-scrollable"?"all":y[this.breakpoint];this.mq=matchMedia(e);this.mq.addEventListener("change",s(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);this.observer=new MutationObserver((function(){return s(t.copyHeadingsToCells(),50)}));this.observer.observe(this.element,{childList:true,subtree:true})};t.prototype.componentWillLoad=function(){o(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=A[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;b(this)};t.prototype.copyHeadingsToCells=function(){var t=this.element.querySelectorAll(this.headingSelector);var e=this.element.querySelectorAll("tbody tr");var a=Array.from(t).map((function(t){return t.textContent.trim()}));e.forEach((function(t){t.querySelectorAll("td").forEach((function(t,e){if(a[e]){var i=t.querySelector(".duet-table-cell-heading");if(!i||i.textContent!==a[e]){i===null||i===void 0?void 0:i.remove();var n=document.createElement("span");n.textContent=a[e];n.classList.add("duet-table-cell-heading");n.setAttribute("aria-hidden","true");n.inert=true;t.prepend(n)}}}))}))};t.prototype.render=function(){var t;return e(n,{key:"e518ffcdb3a5e1623d0d00b9d056f16ded2e9a91",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:"ead482e0e02136ea9147737239f539b3478f7925"}))};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}());F.style=z;var M=[{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 U={fi:"Liiteluettelo",sv:"Lista över bilagor",en:"Attachments list"};var D=function(t){var a=t.label,i=t.categoryLabel;return e("div",{class:"items-header",tabindex:"-1","aria-label":c(U)},i&&e("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},c(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"},c(a)))};var C=function(t,e){if(!e){return true}var a=t.split(".");var i=e.split(",");var n=a[a.length-1];return i.includes(n)};var P=function(t,e){if(!e||!t){return true}var a=e.split(",");var i=false;a.forEach((function(e){var a=e.split("/");var n=t.split("/");if(a[0]===n[0]&&(a[1]===n[1]||a[1]==="*")){i=true}}));return i};var I=function(t,e){if(!e||!t){return true}return e>=t};var O=function(t,e,a){var i=e.allowedMimetypes,n=e.allowedExtensions,r=e.maxBytes;var d=false;var o=k("default",a);if(t){var l=t.name,s=t.type,u=t.size;var h=P(s,i);var f=n==="all"||n===""||n===" "||n===undefined?true:C(l.toLowerCase(),n);var b=I(u,r);if(!h){o=k("duet-upload-101",a)}if(!f){o=k("duet-upload-100",a)}if(!b){o=k("duet-upload-201",a)}d=h&&f&&b}else{d=false}return{valid:d,errorMessage:d?undefined:c(o.message),errorSystem:d?undefined:o.system_message,errorType:d?undefined:o.type}};var W=function(t,e){var a=0;if(e){t.forEach((function(t){if(t.valid&&t.size){a+=t.size}}));if(a>=e){return true}}return false};var R=function(t,e){var a=0;if(e){t.forEach((function(t){if(t.valid){a++}}));if(a>=e){return true}}return false};var N=function(t,e,a){if(t+e>a){return true}return false};var Y=function(t,e,a){var i=0;if(a){t.forEach((function(t){if(t.valid&&t.size){i+=t.size}}));e.forEach((function(t){if(t.size){i+=t.size}}));if(i>=a){return true}}return false};var q=function(t){var e=t.payload,a=t.options,i=t.onFailure,n=t.onSuccess,r=t.onProgress;var d=a.type,o=d===void 0?"POST":d,l=a.xhr,s=a.uri,u=a.argument,h=u===void 0?null:u,f=a.headers,b=f===void 0?null:f;l.open(o,"".concat(s).concat(h||""),true);var c=e.data,p=e.name;if(b){Object.keys(b).forEach((function(t){l.setRequestHeader(t,b[t])}))}if(o==="POST"){l.onreadystatechange=function(){if(l.readyState===XMLHttpRequest.DONE&&l.status>=200&&l.status<300){n(l,p,l.status)}if(l.readyState===XMLHttpRequest.DONE&&l.status>=300&&l.status<999){i(l,p,l.status)}};r(p)}l.send(c);return l};var B="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::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 H=B;var J=t("duet_upload",function(){function t(t){var n=this;a(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=x("DuetButton");this.labelId=x("DuetLabel");this.uploadId=x("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=s((function(){n.tick=Date.now()}),30);this.categoryLabel={en:"Category",sv:"Filtyp",fi:"Tiedostotyyppi"};this.listenForActionEvents=function(){n.element.addEventListener("duetActionEvent",(function(t){var e=t.detail;var a=e.action,i=e.id,r=e.originalEvent;switch(a){case"delete":n.onDelete(i,r);break;case"cancel":n.onCancel(i,r);break}}))};this.verifyValidity=function(){var t=n.getFilesAsArray(),e=t.invalid,a=t.valid;var i=n.valid;n.valid=e.length===0&&a.length!==0;if(n.valid!==i){n.duetState.emit({originalEvent:undefined,data:{valid:n.valid,from:"componentWillRender"},component:"duet-upload"})}};this.getGroupFromItemData=function(t){if(t.valid&&t.progress===100){return n.DefaultGroups.success}else if(t.progress>0&&t.progress!==100){return n.DefaultGroups.inprogress}else if(!t.valid){return n.DefaultGroups.failure}else if(t.pending){return n.DefaultGroups.pending}else if(t.group){return t.group}else{return"none"}};this.mapFilesToUploadItems=function(t,a,i,r){if(a===n.DefaultGroups.success){return e("duet-upload-item",{theme:n.theme,actions:n.getActions(a,r),type:"success",data:t,showLinks:n.showLinks,linkClickEvent:n.emitEvent?n.linkClick:undefined,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:n.processedButtonTitles,ref:function(e){n.itemRefs.set(t.uid,e)}})}else if(a===n.DefaultGroups.inprogress){return e("duet-upload-item",{theme:n.theme,actions:n.getActions(a,r),type:"inprogress",data:t,showLinks:n.showLinks,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:n.processedButtonTitles,ref:function(e){n.itemRefs.set(t.uid,e)}})}else if(a===n.DefaultGroups.pending){return e("duet-upload-item",{theme:n.theme,actions:n.getActions(a,r),type:"pending",data:t,showLinks:n.showLinks,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:n.processedButtonTitles,ref:function(e){n.itemRefs.set(t.uid,e)}})}else if(a===n.DefaultGroups.failure){return e("duet-upload-item",{theme:n.theme,actions:n.getActions(a,r),type:"failure",data:t,showLinks:n.showLinks,errorCodes:n.errorCodes,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:n.processedButtonTitles,ref:function(e){n.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,a,i){if(i===void 0){i=true}try{var r=n.files.get(t);r[e]=a;n.files.set(t,r);if(n.external&&e!=="url"){n.trackProgress(t,e==="uploaded")}}catch(t){}if(i){n.kick()}};this.updateProgress=function(t,e){var a=function(a){n.updateValueInMap(e,"progress",a);n.onProgress(e,a,t)};if(t.lengthComputable){var i=t.loaded/t.total*100;a(i)}else{console.log("cant read progress")}};this.trackProgress=function(t,e){if(e===void 0){e=false}if(e){n.filesInProgress.delete(t)}else{n.filesInProgress.set(t,"inprogress")}if(n.filesInProgress.size===0){n.onDone()}};this.getFilesAsArray=function(){var t=[];var e=[];n.files.forEach((function(a){if(a.valid&&!a.deleted){t.push(a)}else if(!a.valid&&!a.deleted){e.push(a)}}));return{valid:t,invalid:e}};this.resetFormFields=function(){n.nativeInput.value=""};this.startUpload=function(t){var e=[];for(var a=1;a<arguments.length;a++){e[a-1]=arguments[a]}return __awaiter(n,__spreadArray([t],e,true),void 0,(function(t,e){var a,i,n;if(e===void 0){e=undefined}return __generator(this,(function(r){a=this.validateTotals(),i=a.bytesMaxReached,n=a.fileMaxReached;if(i||n){this.kick();return[2]}this.metaData=e;this.nativeInput.click();this.onUpload(t,e);t.stopPropagation();t.preventDefault();return[2]}))}))};this.transferComplete=function(t){n.updateValueInMap(t,"progress",100,false);n.trackProgress(t,true)};this.transferDone=function(t,e,a){n.updateValueInMap(e,"status",a,false);n.updateValueInMap(e,"uploaded",true,false);try{var i=JSON.parse(t.response);n.updateValueInMap(e,"url",i.url)}catch(t){n.updateValueInMap(e,"url",null);console.error("Server did not respond with expected response {url: string}")}return};this.transferDoneWithFailure=function(t,e,a){try{var i=JSON.parse(t.response).error;n.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}");n.updateValueInMap(e,"error",{type:a},false)}n.updateValueInMap(e,"valid",false,true)};this.transferFailed=function(t){n.updateValueInMap(t,"error",_("duet-upload-001",n.errorCodes))};this.transferCanceled=function(t){n.files.delete(t);n.validateTotals(t);n.kick()};this.validateTotals=function(t){var e=W(n.files,n.maxBytesTotal);var a=R(n.files,n.maxFiles);if(e&&t){n.updateValueInMap(t,"error",_("duet-upload-202",n.errorCodes),false)}if(a&&t){n.updateValueInMap(t,"error",_("duet-upload-301",n.errorCodes),false)}n.bytesMaxReached=e;n.fileMaxReached=a;return{bytesMaxReached:e,fileMaxReached:a}};this.uploadFile=function(t){var e=[];for(var a=1;a<arguments.length;a++){e[a-1]=arguments[a]}return __awaiter(n,__spreadArray([t],e,true),void 0,(function(t,e,a){var i,n,r;if(e===void 0){e=false}return __generator(this,(function(d){switch(d.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)}d.label=1;case 1:d.trys.push([1,4,,5]);if(!(!this.deferUpload||e))return[3,3];i=new FormData;i.append("file",t.item);if(a){i.append("key",a)}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}));n=t;return[4,this.makeXHRPostRequest(i)];case 2:n.xhr=d.sent();d.label=3;case 3:return[3,5];case 4:r=d.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(n.files.entries());t<e.length;t++){var a=e[t],i=a[0],r=a[1];if(r.group==="pending"&&r.pending===true){n.uploadFile(r,true,i)}}};this.getItemFromUID=function(t){for(var e=0,a=Array.from(n.files.entries());e<a.length;e++){var i=a[e],r=i[0],d=i[1];if(d.uid===t){return{value:d,key:r}}}return null};this.handleExternalUploadButton=function(t,e){if(n.externalUploadButton){if(t||e){n.externalUploadButton.disabled=true}else{n.externalUploadButton.disabled=false}}};this.onDelete=function(t,e){var a=n.getItemFromUID(t);var i=a.key;var r=n.files.get(i);n.files.delete(i);var d=n.validateTotals(),o=d.bytesMaxReached,l=d.fileMaxReached;n.handleExternalUploadButton(o,l);n.kick();n.duetDelete.emit({originalEvent:e,data:{deletion:r},component:"duet-upload"});if(!n.external&&!r.pending){n.makeXHRDeleteRequest(r)}n.resetFormFields()};this.onCancel=function(t,e){var a=n.getItemFromUID(t).key;var i=n.files.get(a);n.files.delete(a);var r=n.validateTotals(),d=r.bytesMaxReached,o=r.fileMaxReached;n.handleExternalUploadButton(d,o);if(!n.external){var l=i.xhr;if(l){l.abort()}}n.kick();n.resetFormFields();n.duetCancel.emit({originalEvent:e,data:{cancelled:i},component:"duet-upload"})};this.onUpload=function(t,e){n.duetUpload.emit({originalEvent:t,metaData:e,component:"duet-upload"})};this.onBlur=function(t){n.duetBlur.emit({originalEvent:t,component:"duet-upload"})};this.onProgress=function(t,e,a){n.duetChange.emit({originalEvent:a,data:{key:t,percentComplete:e},component:"duet-upload"})};this.onFocus=function(t){n.duetFocus.emit({originalEvent:t,component:"duet-upload"})};this.onReady=function(){n.duetReady.emit({component:"duet-upload"})};this.onDone=function(){n.duetDone.emit({component:"duet-upload",data:{files:n.files}})};this.filterMap=function(){var t=Array.from(n.files.values());var e=[];var a=[];var i=[];var r=[];var d=false;t.forEach((function(t){var o=n.getGroupFromItemData(t);if(t.meta&&!!t.meta.badges){d=true}if(o===n.DefaultGroups.success){r.push({uid:t.uid,data:t})}else if(o===n.DefaultGroups.inprogress){e.push({uid:t.uid,data:t})}else if(o===n.DefaultGroups.pending){i.push({uid:t.uid,data:t})}else if(o===n.DefaultGroups.failure){a.push({uid:t.uid,data:t})}else if(t.group){e.push({uid:t.uid,data:t})}}));return{pending:i,failure:a,success:r,inprogress:e,hasCategory:d}};this.getActions=function(t,e){return e.filter((function(e){return e.map.includes(t)}))};this.renderUploadedItems=function(){n.itemRefs.clear();var t=n.filterMap();var a=t.hasCategory;var i=n.hideCancelButton?n.actions.filter((function(t){return t.name!=="cancel"})):n.actions;var r=n.groups.map((function(r){var o=t[r.id];if(!(o===null||o===void 0?void 0:o.length)){return}return e(d,null,!n.hideGroups&&e(D,{categoryLabel:a?n.categoryLabel:undefined,label:r.label}),o.map((function(t){return n.mapFilesToUploadItems(t.data,r.id,a,i)})))}));return e(d,null,n.showUploadedItemsHeader&&e(D,{categoryLabel:a?n.categoryLabel:undefined,label:n.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=c(this.statusLabelDefaults);this.buttonLabelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add an attachment"};this.buttonLabel=c(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=c(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=c(this.descriptionDefaults);this.fileListEmptyDefaults={fi:"Ei vielä lisättyjä tiedostoja.",sv:"Inga filer har lagts till ännu.",en:"No files added yet."};this.fileListEmpty=c(this.fileListEmptyDefaults);this.error="";this.errorCodes=M;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=p(this.groups)}else{this.internalStatusMessageLabel=this.statusMessageLabel}o(this);this.listenForActionEvents();this.onReady();this.externalUploadButton=document.querySelector("#".concat(this.externalUploadButtonId));this.processedButtonTitles=w(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,a,i;if(t===void 0){t=undefined}return __generator(this,(function(n){e=this.validateTotals(),a=e.bytesMaxReached,i=e.fileMaxReached;if(a||i){this.handleExternalUploadButton(a,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,a){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.updateValueInMap(t,e,a);return[2]}))}))};t.prototype.focusActionButton=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(a){switch(a.label){case 0:return[4,(e=this.itemRefs.get(t))===null||e===void 0?void 0:e.focusActionButton()];case 1:a.sent();return[2]}}))}))};t.prototype.render=function(){var t=this;var a=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 o=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());o=o.replace(/{maxbytes}/g,"".concat(r.toString()," MB"));o=o.replace(/{maxbytestotal}/g,"".concat(i.toString()," MB"));o=o.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", "));if(this.externalUploadButton){this.externalUploadButton.accessibleLabel="".concat(this.externalUploadButton.innerText,". ").concat(o)}return e(n,{key:"3289ebfcf7be2cb204e3109f4bd774c023c1311b",class:{"duet-m-0":this.margin==="none"}},e("duet-fieldset",{key:"d7df1dc6a9f7d71d9f2dc5cfea209bae0767111e","label-heading-level":this.headerHeadingLevel,"label-hidden":this.hideHeader,label:this.label},e("slot",{key:"0cc5766408e69476d186039cce9325df4a0cea3d",name:"header"}),!this.files.size&&e("duet-empty-state",{key:"8441562b8677278cadc9f054163de15716507753",id:this.labelId,part:this.identifier?"".concat(this.identifier,"-empty-state"):"duet-upload-empty-state",icon:"messaging-attachment"},e("duet-paragraph",{key:"d077aa4e3663bf9faca0ba05ec2dce5ba4666286",margin:"none"},this.fileListEmpty)),!!this.files.size&&e("slot",{key:"e70ef44d5bc02d5e0eefdd0cdd34ebc6323cd85a",name:"fileheader"}),!!this.files.size&&e("duet-upload-aria-status",{key:"16b0035978c73e97c5148ba569a318b2736f53e2",invalid:this.getFilesAsArray().invalid.length,valid:this.getFilesAsArray().valid.length,inprogress:this.filesInProgress.size,total:this.files.size,statusMessageLabel:this.internalStatusMessageLabel}),!!this.files.size&&this.renderUploadedItems(),!!this.files.size&&e("slot",{key:"f500f8ede694b648fc115e2c9c0a575958c39bbb",name:"filefooter"}),e("slot",{key:"1ee35a65d6b56561a9c17f5a6dea294826eca780",name:"uploadfooter"}),this.captionOnBottom&&e("duet-caption",{key:"37e7c183776e7103f0e68cf130fce9cdf0215055",margin:"none",size:"small"},e("div",{key:"66ae65e6cadb22b5373cb54019885615facb8ea0",class:"upload-bottom-caption"},o)),e("slot",{key:"2e8ef445f7637398102d0be1547e27081c9ecf2d",name:"afterfooter"}),!this.hideButton&&e(d,{key:"0449ef097df354a51990e2694ce270b43e0920f4"},e("duet-spacer",{key:"76fcd53d37a524972a778bd974d156eb03a9aba6",size:"large"}),e("duet-button",{key:"4cd5efca2ac98ee8ea478e9a7269a5d2e702b7ef",id:this.buttonId,onClick:this.startUpload,"accessible-controls":a,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel||"".concat(this.buttonLabel,". ").concat(o),"accessible-owns":a,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(d,{key:"2f4db6f88150427eb99c623c1404f0556848a3e2"},e("duet-spacer",{key:"d9a182225a80cf3b31272bc3f45db3ae7f8456a2",size:"medium"}),e("duet-alert",{key:"8d2209357e096a6c47fe1465d8ca66d900c8935b",part:this.identifier?"".concat(this.identifier,"-error-notification"):"duet-upload-error-notification"},this.fileMaxReached&&_("duet-upload-301",this.errorCodes),this.bytesMaxReached&&_("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&_("duet-upload-302",this.errorCodes),this.filesToUploadTotalSizeIsAboveMax&&_("duet-upload-203",this.errorCodes))),e("duet-visually-hidden",{key:"4be261bd112017729973d2def23f9b384d11b556","aria-hidden":"true"},e("input",{key:"03b8b40bd9488b6de5091aa5ae46e4d146732f17",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 a=new XMLHttpRequest;var i=t.get("name");a.upload.addEventListener("progress",(function(t){e.updateProgress(t,i)}));a.upload.addEventListener("load",(function(){e.transferComplete(i)}));a.upload.addEventListener("error",(function(){e.transferFailed(i)}));a.upload.addEventListener("abort",(function(){e.transferCanceled(i)}));var n={payload:{data:t,name:i},options:{type:"POST",uri:this.uri,xhr:a,argument:null,headers:undefined},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){n=this.middleware(n)}return q(n)};t.prototype.makeXHRDeleteRequest=function(t){var e=t.uid,a=t.item;var i=new XMLHttpRequest;var n={"x-fileuid":e,"x-filename":a.name};var r={payload:{data:null,name:name},options:{type:"DELETE",xhr:i,uri:this.uri,argument:"?key=".concat(e,"&name=").concat(a.name),headers:n},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){r=this.middleware(r)}return q(r)};t.prototype.escapeSpecialCharacters=function(t){return(t+"").replace(/[\\"'(){}\[\]*?$^+]/g,"\\$&").replace(/\u0000/g,"\\0")};t.prototype.getRenamedFileName=function(t,e){var a=new RegExp("".concat(this.escapeSpecialCharacters(t)," \\(\\d+\\).").concat(e));var i=Array.from(this.files.entries()).map((function(t){var e=t[0],a=t[1];return e})).filter((function(i){return a.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 n=parseInt(i.split("(").pop().slice(0,-1));return"".concat(t," (").concat(n+1,").").concat(e)};t.prototype.renameFiles=function(t){var e=this;return t.map((function(t){if(e.files.get(t.name)){var a=t.name.split(".");var i=a.pop();var n=a.join(".");var r=e.getRenamedFileName(n,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,a,i,n,r,d,o,l,s,u,h,f;return __generator(this,(function(b){switch(b.label){case 0:a=Array.from((e=this.nativeInput)===null||e===void 0?void 0:e.files);this.filesToUploadExceedsLimit=false;if(N(this.files.size,a.length,this.maxFiles)){this.filesToUploadExceedsLimit=true;this.kick();return[2]}this.filesToUploadTotalSizeIsAboveMax=false;if(Y(this.files,a,this.maxBytesTotal)){this.filesToUploadTotalSizeIsAboveMax=true;this.kick();return[2]}if(!a)return[3,6];if(this.renameDuplicates){a=this.renameFiles(a)}i=0,n=a;b.label=1;case 1:if(!(i<n.length))return[3,6];r=n[i];d=O(r,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),o=d.valid,l=d.errorMessage,s=d.errorType,u=d.errorSystem;h=this.genHashName();f={uid:h,item:r,size:r.size,meta:this.metaData,uploaded:false,valid:o,error:{type:o?undefined:s,message:o?undefined:l,system_message:o?undefined:u},progress:0,deleted:false,xhr:false,url:false};this.files.set(r.name,f);if(!(o&&!this.external))return[3,3];return[4,this.uploadFile(f)];case 2:b.sent();return[3,4];case 3:if(o&&this.external){this.updateValueInMap(f.item.name,"pending",true,false);this.updateValueInMap(f.item.name,"group","pending",true)}else if(!o){this.updateValueInMap(r.name,"valid",false,true)}b.label=4;case 4:this.kick();b.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}());J.style=H}}}));
4
+ */System.register(["./p-0e5663a5.system.js","./p-260f26f5.system.js","./p-41982d26.system.js","./p-752fa0fc.system.js","./p-d16254bc.system.js","./p-64959c1d.system.js","./p-9508ee67.system.js","./p-e6b5a1c7.system.js","./p-98636086.system.js","./p-40092524.system.js"],(function(t){"use strict";var e,a,i,d,n,r,l,o,s,u,h,f,b,c,p,m,g,v,y,x,w,k,_;return{setters:[function(t){e=t.h;a=t.r;i=t.c;d=t.H;n=t.g;r=t.F},function(t){l=t.i},function(t){o=t.f;s=t.d},function(t){u=t.i},function(t){h=t.a;f=t.c;b=t.d;c=t.g;p=t.s},function(t){m=t.p;g=t.s},function(t){v=t.b;y=t.a},function(t){x=t.c},function(t){w=t.p},function(t){k=t.g;_=t.a}],execute:function(){var T=function(t,a){var i=t.data,d=t.groupId,n=t.alignment;var r="duet-editable-table duet-editable-table-content-".concat(d);if(typeof i==="string"){return e("td",{innerHTML:i,class:r,part:"".concat(d,"content"),style:{verticalAlign:n}})}else{return e("td",{class:r,part:"".concat(d,"content"),style:{verticalAlign:n}},i)}};var j=".sc-duet-editable-table-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-editable-table-actions-menu.sc-duet-editable-table{position:relative;padding:0 !important;margin:0}.duet-editable-table-actions-menu-button.sc-duet-editable-table{position:relative;right:-16px;float:right;padding:0}.duet-editable-table-actions-menu-icon.sc-duet-editable-table .duet-icon.sc-duet-editable-table{max-width:16px;max-height:16px}.duet-editable-table-row.duet-table-action-row.sc-duet-editable-table .duet-text-right.sc-duet-editable-table{text-align:right}.duet-editable-table-header.sc-duet-editable-table tr.sc-duet-editable-table .duet-editable-table-header-hidden.sc-duet-editable-table{padding:0 !important;font-size:0;border-bottom:0}";var E=j;var S=t("duet_editable_table",function(){function t(t){var e=this;a(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,a){a.preventDefault();var i=t.sort_order,d=t.direction,n=t.index,r=t.key;e.duetTableToggle.emit({sort_order:i,index:n,direction:d,key:r,component:"duet-editable-table",originalEvent:a})};this.handleKeyDown=function(t,a){if(u(a)){e.toggleColumn(t,a)}};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(){l(this);this.hasHeadSlotFirst=!!this.element.querySelector("[slot='thead-first']");this.hasHeadSlotLast=!!this.element.querySelector("[slot='thead-last']");this.hasFootSlot=!!this.element.querySelector("[slot='tfoot']")};t.prototype.connectedCallback=function(){f(this)};t.prototype.disconnectedCallback=function(){b(this)};t.prototype.createLabel=function(t){var a=this;var i=t.sort_order,d=t.direction,n=t.index,r=t.label;var l=c(r);if(!this.sortable){return l}var o=function(){if(!!i&&d===1){return"action-arrow-down-small"}else if(!!i&&d===-1){return"action-arrow-up-small"}return"action-subtract-small"};return e("span",{class:"duet-table-label","data-index":n},e("duet-button",{size:"small",icon:o(),"icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":true,onClick:function(e){return a.toggleColumn(t,e)},onKeyDown:function(e){return a.handleKeyDown(t,e)}},l))};t.prototype.getSortedColumns=function(){return __spreadArray([],this.columns,true).sort(o(["index"]))};t.prototype.getRowSortOrder=function(){var t=__spreadArray([],this.columns,true).sort(o(["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 a=this.getSortedColumns();return e("tr",{class:{"duet-table-action-header":!!this.actions}},a.map((function(a){if(a.display!==false){var i=t.createLabel(a);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,a){var i=this;if(!this.actions){return}return e("td",{class:"duet-text-right"},this.actions.map((function(d){return e("duet-action-button",{actionMeta:Object.assign({},(t===null||t===void 0?void 0:t.meta)||{},{index:a}),actionId:(t===null||t===void 0?void 0:t.uid)||(t===null||t===void 0?void 0:t.id)||null,actionName:d.name,theme:i.theme,iconName:d.icon,iconColor:d.color,iconSize:d.size,background:d.background,"accessible-label":"".concat(t.actionDescription||""," ").concat(c(d.label)," ")})})))};t.prototype.renderTableBody=function(){var t=this;var a=this.getSortedColumns();var i=this.getRowSortOrder();var d=__spreadArray([],this.rows,true).sort(o(i));return d.map((function(i,d){var n;return e("tr",{class:(n={"duet-table-action-row":!!t.actions,"duet-editable-table-row":true},n["duet-editable-table-row-".concat(t.groupId)]=true,n),"data-meta":JSON.stringify(i.meta)},a.map((function(a){var d=i[a.key]?i[a.key]:i.item;if(a.display!==false){return e(T,{data:d,groupId:t.groupId})}})),t.actions&&t.renderActions(i,d))}))};t.prototype.render=function(){var t;return e(d,{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",{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",{role:this.accessibleRole},e("caption",null,e("slot",{name:"tcaption"})),e("thead",null,this.hasHeadSlotFirst&&e("tr",null,e("td",{class:"duet-editable-table-actions-menu",colSpan:99},e("slot",{name:"thead-first"}))),this.renderTableHeader(),this.hasHeadSlotLast&&e("tr",null,e("td",{class:"duet-editable-table-actions-menu",colSpan:99},e("slot",{name:"thead-last"})))),e("tbody",null,this.renderTableBody()),this.hasFootSlot&&e("tfoot",null,e("tr",null,e("td",{class:"duet-editable-table-footer-menu",colSpan:99},e("slot",{name:"tfoot"})))))))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());S.style=E;var L='duet-table{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;font-variant-numeric:tabular-nums}duet-table table,duet-table thead,duet-table tbody,duet-table tfoot,duet-table th,duet-table td,duet-table tr{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}duet-table.duet-m-0{margin:0 !important}duet-table table{width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;text-align:left;border-spacing:0;border-collapse:separate}duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead,duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead *{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}duet-table.duet-theme-turva table{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}duet-table td{-webkit-hyphens:auto;hyphens:auto;color:rgb(8, 42, 77)}duet-table.duet-theme-turva td{color:rgb(23, 28, 58)}duet-table th{font-weight:600;line-height:1.25;color:rgb(98, 121, 138);text-align:left}duet-table.duet-theme-turva th{color:rgb(143, 147, 158)}duet-table tbody th{font-weight:600;color:rgb(8, 42, 77)}duet-table.duet-theme-turva tbody th{color:rgb(23, 28, 58)}duet-table .duet-table-action-row td:last-child{justify-self:end;padding-right:20px !important;white-space:nowrap}duet-table span.duet-table-cell-heading{display:none}.duet-table-flattened table,.duet-table-flattened thead,.duet-table-flattened tbody,.duet-table-flattened tfoot,.duet-table-flattened th,.duet-table-flattened td,.duet-table-flattened tr{display:block}.duet-table-flattened thead tr{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}.duet-table-flattened td{line-height:1.25}.duet-table-flattened td:not(:last-child){margin-bottom:16px !important}.duet-table-flattened td span.duet-table-cell-heading{margin-bottom:4px !important;display:block;font-size:1rem;font-weight:600;color:rgb(8, 42, 77)}.duet-table-flattened.duet-theme-turva td span.duet-table-cell-heading{color:rgb(23, 28, 58)}.duet-table-flattened tbody td,.duet-table-flattened tbody th,.duet-table-flattened tfoot td{padding:0 !important;text-align:left !important}.duet-table-flattened tbody th{font-weight:600;line-height:1.25;color:rgb(98, 121, 138);text-align:left}.duet-table-sticky thead th,.duet-table-sticky thead td{position:sticky;top:0;background:rgb(255, 255, 255)}.duet-table-striped td,.duet-table-striped th{padding:20px !important}@media (max-width: 35.9375em){.duet-table-striped td,.duet-table-striped th{padding:20px 12px !important}}.duet-table-striped tbody th{background:rgb(255, 255, 255)}.duet-table-striped.duet-table-sticky thead th,.duet-table-striped.duet-table-sticky thead td{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-table-sticky.duet-theme-turva thead th,.duet-table-striped.duet-table-sticky.duet-theme-turva thead td{border-bottom-color:rgb(222, 224, 228)}.duet-table-striped tbody:not(:first-of-type) th{padding-top:40px !important}.duet-table-striped tbody:only-of-type tr:nth-of-type(odd){background:rgba(4, 81, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(4, 81, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tfoot td{border-top:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-theme-turva tfoot td{border-top-color:rgb(222, 224, 228)}.duet-table-striped.duet-table-flattened tbody:not(:first-of-type) th{padding-top:20px !important}.duet-table-striped.duet-table-flattened tr{padding:20px !important}.duet-table-striped.duet-table-flattened tfoot td{border-top:0}.duet-table-striped.duet-table-flattened tfoot tr{border-top:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:rgb(222, 224, 228)}.duet-table-fixed th,.duet-table-minimal th,.duet-table-plain th,.duet-table-fixed thead td,.duet-table-minimal thead td,.duet-table-plain thead td{padding:16px !important;border-bottom:1px solid rgb(98, 121, 138)}.duet-table-fixed th:first-child,.duet-table-minimal th:first-child,.duet-table-plain th:first-child,.duet-table-fixed thead td:first-child,.duet-table-minimal thead td:first-child,.duet-table-plain thead td:first-child{padding-left:0 !important}.duet-table-fixed th:last-child,.duet-table-minimal th:last-child,.duet-table-plain th:last-child,.duet-table-fixed thead td:last-child,.duet-table-minimal thead td:last-child,.duet-table-plain thead td:last-child{padding-right:0 !important}.duet-theme-turva.duet-table-fixed th,.duet-theme-turva.duet-table-minimal th,.duet-theme-turva.duet-table-plain th,.duet-theme-turva.duet-table-fixed thead td,.duet-theme-turva.duet-table-minimal thead td,.duet-theme-turva.duet-table-plain thead td{border-bottom-color:rgb(113, 118, 132)}.duet-table-fixed tbody th,.duet-table-minimal tbody th,.duet-table-plain tbody th{padding-top:40px !important;border-bottom-color:rgb(212, 223, 229)}.duet-theme-turva.duet-table-fixed tbody th,.duet-theme-turva.duet-table-minimal tbody th,.duet-theme-turva.duet-table-plain tbody th{border-bottom-color:rgb(222, 224, 228)}.duet-table-fixed td,.duet-table-minimal td,.duet-table-plain td{padding:16px !important}.duet-table-fixed td:first-child,.duet-table-minimal td:first-child,.duet-table-plain td:first-child{padding-left:0 !important}.duet-table-fixed td:last-child,.duet-table-minimal td:last-child,.duet-table-plain td:last-child{padding-right:0 !important}.duet-table-fixed tbody td,.duet-table-minimal tbody td,.duet-table-plain tbody td{border-bottom:1px solid rgb(212, 223, 229)}.duet-theme-turva.duet-table-fixed tbody td,.duet-theme-turva.duet-table-minimal tbody td,.duet-theme-turva.duet-table-plain tbody td{border-bottom-color:rgb(222, 224, 228)}.duet-table-flattened.duet-table-fixed tbody:first-of-type th,.duet-table-flattened.duet-table-minimal tbody:first-of-type th,.duet-table-flattened.duet-table-plain tbody:first-of-type th{padding-top:0 !important}.duet-table-flattened.duet-table-fixed td,.duet-table-flattened.duet-table-minimal td,.duet-table-flattened.duet-table-plain td,.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{border-bottom:0}.duet-table-flattened.duet-table-fixed tr,.duet-table-flattened.duet-table-minimal tr,.duet-table-flattened.duet-table-plain tr{padding:20px 0 !important}.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{padding-top:20px !important}.duet-table-flattened.duet-table-fixed tfoot td,.duet-table-flattened.duet-table-minimal tfoot td,.duet-table-flattened.duet-table-plain tfoot td{margin-bottom:4px !important}.duet-table-flattened.duet-table-fixed tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-minimal tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-plain tbody:not(:only-of-type) tr:first-child{border-bottom:0}.duet-table-plain.duet-table-flattened tbody tr{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:rgb(222, 224, 228)}.duet-table-minimal tbody tr,.duet-table-minimal tbody tr td{vertical-align:top;border-bottom:0 none}.duet-table-minimal tbody tr:last-of-type,.duet-table-minimal tbody tr:last-of-type td{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-minimal.duet-table-flattened tbody tr,.duet-table-minimal.duet-table-flattened tbody tr td{border-bottom:0 none}.duet-table-minimal.duet-table-flattened tbody tr td[data-heading]::before{display:none}.duet-table-minimal.duet-table-flattened tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-fixed table{table-layout:fixed}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td,.duet-table-fixed tbody tr td:first-child{padding:4px !important;vertical-align:text-bottom;border-bottom:0 none}.duet-table-fixed thead{display:none}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td{border-bottom:0 none}.duet-table-fixed:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-fixed:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-scrollable{position:relative;width:100%;overflow-x:auto;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0)), linear-gradient(-90deg, #fff 0%, rgba(255, 255, 255, 0)) 100% 0, radial-gradient(farthest-side at 0% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)) 100% 0%;background-repeat:no-repeat;background-attachment:local, local, scroll, scroll;background-size:100px 100%, 100px 100%, 12px 100%, 12px 100%}.duet-table-selected-column{background:rgba(0, 119, 179, 0.08)}.duet-theme-turva .duet-table-selected-column{background:rgba(113, 118, 132, 0.08)}.duet-table-sortable tbody tr td:first-child,.duet-table-sortable thead tr th:first-child{padding:20px}.duet-table-sortable:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-sortable:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-actions table{table-layout:auto}.duet-table-actions thead th:last-child{width:1px;white-space:nowrap}.duet-editable-table-table.duet-table-flattened tr{display:grid;grid-template-columns:repeat(2, 1fr);grid-auto-rows:auto;gap:10px}.duet-editable-table-table.duet-table-flattened tr.duet-table-action-row td:last-child::before{padding:0;content:""}.duet-editable-table-table.duet-table-flattened td{grid-column:1/2}.duet-editable-table-table.duet-table-flattened td:first-child{grid-row:1;grid-column:1}.duet-editable-table-table.duet-table-flattened td:last-child{grid-row:1;grid-column:2}duet-table.duet-theme-turva2.duet-theme-turva td{color:#172a3b}duet-table.duet-theme-turva2.duet-theme-turva tbody th{color:#172a3b}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva.duet-table-sticky thead th,duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva.duet-table-sticky thead td{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 42, 59, 0.04)}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 42, 59, 0.04)}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tfoot td{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody th,duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody td{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody td{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-fixed.duet-theme-turva:not(.duet-table-flattened) tfoot{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-sortable.duet-theme-turva:not(.duet-table-flattened) tfoot{border-top-color:#fbe1d1}';var z=L;var A={none:0,"with-links":parseFloat(m)*16,"without-links":parseFloat(g)*16};var F=t("duet_table",function(){function t(t){var e=this;a(this,t);this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)";this.handleMediaQueryChange=function(t){e.matchesBreakpoint=v.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 a=this;if(t!==e){setTimeout((function(){return a.copyHeadingsToCells()}),50)}};t.prototype.connectedCallback=function(){var t=this;var e=this.breakpoint==="none"||this.breakpoint==="none-scrollable"?"all":y[this.breakpoint];this.mq=matchMedia(e);this.mq.addEventListener("change",s(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);this.observer=new MutationObserver((function(){return s(t.copyHeadingsToCells(),50)}));this.observer.observe(this.element,{childList:true,subtree:true})};t.prototype.componentWillLoad=function(){l(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=A[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;b(this)};t.prototype.copyHeadingsToCells=function(){var t=this.element.querySelectorAll(this.headingSelector);var e=this.element.querySelectorAll("tbody tr");var a=Array.from(t).map((function(t){return t.textContent.trim()}));e.forEach((function(t){t.querySelectorAll("td").forEach((function(t,e){if(a[e]){var i=t.querySelector(".duet-table-cell-heading");if(!i||i.textContent!==a[e]){i===null||i===void 0?void 0:i.remove();var d=document.createElement("span");d.textContent=a[e];d.classList.add("duet-table-cell-heading");d.setAttribute("aria-hidden","true");d.inert=true;t.prepend(d)}}}))}))};t.prototype.render=function(){var t;return e(d,{key:"97ec17516c3b7f8a75b2f2d8b64e21358260e1e3",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:"174a174db7425f0abc109ad212ab9a665adc8797"}))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{language:["watchLanguageStateHandler"]}},enumerable:false,configurable:true});return t}());F.style=z;var M=[{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 U={fi:"Liiteluettelo",sv:"Lista över bilagor",en:"Attachments list"};var D=function(t){var a=t.label,i=t.categoryLabel;return e("div",{class:"items-header",tabindex:"-1","aria-label":c(U)},i&&e("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},c(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"},c(a)))};var C=function(t,e){if(!e){return true}var a=t.split(".");var i=e.split(",");var d=a[a.length-1];return i.includes(d)};var P=function(t,e){if(!e||!t){return true}var a=e.split(",");var i=false;a.forEach((function(e){var a=e.split("/");var d=t.split("/");if(a[0]===d[0]&&(a[1]===d[1]||a[1]==="*")){i=true}}));return i};var I=function(t,e){if(!e||!t){return true}return e>=t};var O=function(t,e,a){var i=e.allowedMimetypes,d=e.allowedExtensions,n=e.maxBytes;var r=false;var l=k("default",a);if(t){var o=t.name,s=t.type,u=t.size;var h=P(s,i);var f=d==="all"||d===""||d===" "||d===undefined?true:C(o.toLowerCase(),d);var b=I(u,n);if(!h){l=k("duet-upload-101",a)}if(!f){l=k("duet-upload-100",a)}if(!b){l=k("duet-upload-201",a)}r=h&&f&&b}else{r=false}return{valid:r,errorMessage:r?undefined:c(l.message),errorSystem:r?undefined:l.system_message,errorType:r?undefined:l.type}};var W=function(t,e){var a=0;if(e){t.forEach((function(t){if(t.valid&&t.size){a+=t.size}}));if(a>=e){return true}}return false};var R=function(t,e){var a=0;if(e){t.forEach((function(t){if(t.valid){a++}}));if(a>=e){return true}}return false};var N=function(t,e,a){if(t+e>a){return true}return false};var Y=function(t,e,a){var i=0;if(a){t.forEach((function(t){if(t.valid&&t.size){i+=t.size}}));e.forEach((function(t){if(t.size){i+=t.size}}));if(i>=a){return true}}return false};var q=function(t){var e=t.payload,a=t.options,i=t.onFailure,d=t.onSuccess,n=t.onProgress;var r=a.type,l=r===void 0?"POST":r,o=a.xhr,s=a.uri,u=a.argument,h=u===void 0?null:u,f=a.headers,b=f===void 0?null:f;o.open(l,"".concat(s).concat(h||""),true);var c=e.data,p=e.name;if(b){Object.keys(b).forEach((function(t){o.setRequestHeader(t,b[t])}))}if(l==="POST"){o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE&&o.status>=200&&o.status<300){d(o,p,o.status)}if(o.readyState===XMLHttpRequest.DONE&&o.status>=300&&o.status<999){i(o,p,o.status)}};n(p)}o.send(c);return o};var B="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::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 H=B;var J=t("duet_upload",function(){function t(t){var d=this;a(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=x("DuetButton");this.labelId=x("DuetLabel");this.uploadId=x("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=s((function(){d.tick=Date.now()}),30);this.categoryLabel={en:"Category",sv:"Filtyp",fi:"Tiedostotyyppi"};this.listenForActionEvents=function(){d.element.addEventListener("duetActionEvent",(function(t){var e=t.detail;var a=e.action,i=e.id,n=e.originalEvent;switch(a){case"delete":d.onDelete(i,n);break;case"cancel":d.onCancel(i,n);break}}))};this.verifyValidity=function(){var t=d.getFilesAsArray(),e=t.invalid,a=t.valid;var i=d.valid;d.valid=e.length===0&&a.length!==0;if(d.valid!==i){d.duetState.emit({originalEvent:undefined,data:{valid:d.valid,from:"componentWillRender"},component:"duet-upload"})}};this.getGroupFromItemData=function(t){if(t.valid&&t.progress===100){return d.DefaultGroups.success}else if(t.progress>0&&t.progress!==100){return d.DefaultGroups.inprogress}else if(!t.valid){return d.DefaultGroups.failure}else if(t.pending){return d.DefaultGroups.pending}else if(t.group){return t.group}else{return"none"}};this.mapFilesToUploadItems=function(t,a,i,n){if(a===d.DefaultGroups.success){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"success",data:t,showLinks:d.showLinks,linkClickEvent:d.emitEvent?d.linkClick:undefined,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(a===d.DefaultGroups.inprogress){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"inprogress",data:t,showLinks:d.showLinks,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(a===d.DefaultGroups.pending){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"pending",data:t,showLinks:d.showLinks,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(a===d.DefaultGroups.failure){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"failure",data:t,showLinks:d.showLinks,errorCodes:d.errorCodes,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.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,a,i){if(i===void 0){i=true}try{var n=d.files.get(t);n[e]=a;d.files.set(t,n);if(d.external&&e!=="url"){d.trackProgress(t,e==="uploaded")}}catch(t){}if(i){d.kick()}};this.updateProgress=function(t,e){var a=function(a){d.updateValueInMap(e,"progress",a);d.onProgress(e,a,t)};if(t.lengthComputable){var i=t.loaded/t.total*100;a(i)}else{console.log("cant read progress")}};this.trackProgress=function(t,e){if(e===void 0){e=false}if(e){d.filesInProgress.delete(t)}else{d.filesInProgress.set(t,"inprogress")}if(d.filesInProgress.size===0){d.onDone()}};this.getFilesAsArray=function(){var t=[];var e=[];d.files.forEach((function(a){if(a.valid&&!a.deleted){t.push(a)}else if(!a.valid&&!a.deleted){e.push(a)}}));return{valid:t,invalid:e}};this.resetFormFields=function(){d.nativeInput.value=""};this.startUpload=function(t){var e=[];for(var a=1;a<arguments.length;a++){e[a-1]=arguments[a]}return __awaiter(d,__spreadArray([t],e,true),void 0,(function(t,e){var a,i,d;if(e===void 0){e=undefined}return __generator(this,(function(n){a=this.validateTotals(),i=a.bytesMaxReached,d=a.fileMaxReached;if(i||d){this.kick();return[2]}this.metaData=e;this.nativeInput.click();this.onUpload(t,e);t.stopPropagation();t.preventDefault();return[2]}))}))};this.transferComplete=function(t){d.updateValueInMap(t,"progress",100,false);d.trackProgress(t,true)};this.transferDone=function(t,e,a){d.updateValueInMap(e,"status",a,false);d.updateValueInMap(e,"uploaded",true,false);try{var i=JSON.parse(t.response);d.updateValueInMap(e,"url",i.url)}catch(t){d.updateValueInMap(e,"url",null);console.error("Server did not respond with expected response {url: string}")}return};this.transferDoneWithFailure=function(t,e,a){try{var i=JSON.parse(t.response).error;d.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}");d.updateValueInMap(e,"error",{type:a},false)}d.updateValueInMap(e,"valid",false,true)};this.transferFailed=function(t){d.updateValueInMap(t,"error",_("duet-upload-001",d.errorCodes))};this.transferCanceled=function(t){d.files.delete(t);d.validateTotals(t);d.kick()};this.validateTotals=function(t){var e=W(d.files,d.maxBytesTotal);var a=R(d.files,d.maxFiles);if(e&&t){d.updateValueInMap(t,"error",_("duet-upload-202",d.errorCodes),false)}if(a&&t){d.updateValueInMap(t,"error",_("duet-upload-301",d.errorCodes),false)}d.bytesMaxReached=e;d.fileMaxReached=a;return{bytesMaxReached:e,fileMaxReached:a}};this.uploadFile=function(t){var e=[];for(var a=1;a<arguments.length;a++){e[a-1]=arguments[a]}return __awaiter(d,__spreadArray([t],e,true),void 0,(function(t,e,a){var i,d,n;if(e===void 0){e=false}return __generator(this,(function(r){switch(r.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)}r.label=1;case 1:r.trys.push([1,4,,5]);if(!(!this.deferUpload||e))return[3,3];i=new FormData;i.append("file",t.item);if(a){i.append("key",a)}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}));d=t;return[4,this.makeXHRPostRequest(i)];case 2:d.xhr=r.sent();r.label=3;case 3:return[3,5];case 4:n=r.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(d.files.entries());t<e.length;t++){var a=e[t],i=a[0],n=a[1];if(n.group==="pending"&&n.pending===true){d.uploadFile(n,true,i)}}};this.getItemFromUID=function(t){for(var e=0,a=Array.from(d.files.entries());e<a.length;e++){var i=a[e],n=i[0],r=i[1];if(r.uid===t){return{value:r,key:n}}}return null};this.handleExternalUploadButton=function(t,e){if(d.externalUploadButton){if(t||e){d.externalUploadButton.disabled=true}else{d.externalUploadButton.disabled=false}}};this.onDelete=function(t,e){var a=d.getItemFromUID(t);var i=a.key;var n=d.files.get(i);d.files.delete(i);var r=d.validateTotals(),l=r.bytesMaxReached,o=r.fileMaxReached;d.handleExternalUploadButton(l,o);d.kick();d.duetDelete.emit({originalEvent:e,data:{deletion:n},component:"duet-upload"});if(!d.external&&!n.pending){d.makeXHRDeleteRequest(n)}d.resetFormFields()};this.onCancel=function(t,e){var a=d.getItemFromUID(t).key;var i=d.files.get(a);d.files.delete(a);var n=d.validateTotals(),r=n.bytesMaxReached,l=n.fileMaxReached;d.handleExternalUploadButton(r,l);if(!d.external){var o=i.xhr;if(o){o.abort()}}d.kick();d.resetFormFields();d.duetCancel.emit({originalEvent:e,data:{cancelled:i},component:"duet-upload"})};this.onUpload=function(t,e){d.duetUpload.emit({originalEvent:t,metaData:e,component:"duet-upload"})};this.onBlur=function(t){d.duetBlur.emit({originalEvent:t,component:"duet-upload"})};this.onProgress=function(t,e,a){d.duetChange.emit({originalEvent:a,data:{key:t,percentComplete:e},component:"duet-upload"})};this.onFocus=function(t){d.duetFocus.emit({originalEvent:t,component:"duet-upload"})};this.onReady=function(){d.duetReady.emit({component:"duet-upload"})};this.onDone=function(){d.duetDone.emit({component:"duet-upload",data:{files:d.files}})};this.filterMap=function(){var t=Array.from(d.files.values());var e=[];var a=[];var i=[];var n=[];var r=false;t.forEach((function(t){var l=d.getGroupFromItemData(t);if(t.meta&&!!t.meta.badges){r=true}if(l===d.DefaultGroups.success){n.push({uid:t.uid,data:t})}else if(l===d.DefaultGroups.inprogress){e.push({uid:t.uid,data:t})}else if(l===d.DefaultGroups.pending){i.push({uid:t.uid,data:t})}else if(l===d.DefaultGroups.failure){a.push({uid:t.uid,data:t})}else if(t.group){e.push({uid:t.uid,data:t})}}));return{pending:i,failure:a,success:n,inprogress:e,hasCategory:r}};this.getActions=function(t,e){return e.filter((function(e){return e.map.includes(t)}))};this.renderUploadedItems=function(){d.itemRefs.clear();var t=d.filterMap();var a=t.hasCategory;var i=d.hideCancelButton?d.actions.filter((function(t){return t.name!=="cancel"})):d.actions;var n=d.groups.map((function(n){var l=t[n.id];if(!(l===null||l===void 0?void 0:l.length)){return}return e(r,null,!d.hideGroups&&e(D,{categoryLabel:a?d.categoryLabel:undefined,label:n.label}),l.map((function(t){return d.mapFilesToUploadItems(t.data,n.id,a,i)})))}));return e(r,null,d.showUploadedItemsHeader&&e(D,{categoryLabel:a?d.categoryLabel:undefined,label:d.uploadedItemsHeaderLabel}),n)};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=c(this.statusLabelDefaults);this.buttonLabelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add an attachment"};this.buttonLabel=c(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=c(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=c(this.descriptionDefaults);this.fileListEmptyDefaults={fi:"Ei vielä lisättyjä tiedostoja.",sv:"Inga filer har lagts till ännu.",en:"No files added yet."};this.fileListEmpty=c(this.fileListEmptyDefaults);this.error="";this.errorCodes=M;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=p(this.groups)}else{this.internalStatusMessageLabel=this.statusMessageLabel}l(this);this.listenForActionEvents();this.onReady();this.externalUploadButton=document.querySelector("#".concat(this.externalUploadButtonId));this.processedButtonTitles=w(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,a,i;if(t===void 0){t=undefined}return __generator(this,(function(d){e=this.validateTotals(),a=e.bytesMaxReached,i=e.fileMaxReached;if(a||i){this.handleExternalUploadButton(a,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,a){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.updateValueInMap(t,e,a);return[2]}))}))};t.prototype.focusActionButton=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(a){switch(a.label){case 0:return[4,(e=this.itemRefs.get(t))===null||e===void 0?void 0:e.focusActionButton()];case 1:a.sent();return[2]}}))}))};t.prototype.render=function(){var t=this;var a=this.identifier||this.uploadId;var i=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024);var n=Math.round(this.maxBytes/1024/1024);var l=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());l=l.replace(/{maxbytes}/g,"".concat(n.toString()," MB"));l=l.replace(/{maxbytestotal}/g,"".concat(i.toString()," MB"));l=l.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", "));if(this.externalUploadButton){this.externalUploadButton.accessibleLabel="".concat(this.externalUploadButton.innerText,". ").concat(l)}return e(d,{key:"f9ee10da87fd3355fcdd111de9f144c0d7c2b166",class:{"duet-m-0":this.margin==="none"}},e("duet-fieldset",{key:"5a6c4b3035d050ce23a552a1c41979faa0c17cb0","label-heading-level":this.headerHeadingLevel,"label-hidden":this.hideHeader,label:this.label},e("slot",{key:"432dc470d2efd214fe1d88d543c38f406a4e780a",name:"header"}),!this.files.size&&e("duet-empty-state",{key:"52b0aab8690ef9199d1608041674a372e9a791c9",id:this.labelId,part:this.identifier?"".concat(this.identifier,"-empty-state"):"duet-upload-empty-state",icon:"messaging-attachment"},e("duet-paragraph",{key:"3b47a899fea671720085c8d3355cb7aa7b30189b",margin:"none"},this.fileListEmpty)),!!this.files.size&&e("slot",{key:"6e6d3af2664ebbbf73e244ef4693d7603d72da66",name:"fileheader"}),!!this.files.size&&e("duet-upload-aria-status",{key:"2ab9e83fb0412a27c031b264b9a677c2ec7c2595",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:"d545f2932dc0c960ea21bafa8ba7ee2bfa592143",name:"filefooter"}),e("slot",{key:"50e7c76f552cecf4d61d629a51fd6b96777fb648",name:"uploadfooter"}),this.captionOnBottom&&e("duet-caption",{key:"98e1b98cb84e96aa7cb4a974273c7fbf9d81db53",margin:"none",size:"small"},e("div",{key:"422397c62df67cfac2908473e490429b6ce35188",class:"upload-bottom-caption"},l)),e("slot",{key:"f62ca6af83cae8a0ad4c4ed2236c34b0aebf5e82",name:"afterfooter"}),!this.hideButton&&e(r,{key:"f9827fd2d5057ebe8a9206b9ae367e14382ea6b2"},e("duet-spacer",{key:"726f7fe1442e5beaf238abda4f7b4b984f673230",size:"large"}),e("duet-button",{key:"72a8245cb718d0a29f7ffe155688bed7e118ce2d",id:this.buttonId,onClick:this.startUpload,"accessible-controls":a,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel||"".concat(this.buttonLabel,". ").concat(l),"accessible-owns":a,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(r,{key:"9b42acb8206cd9db5b01b839dc458f5be93d2c30"},e("duet-spacer",{key:"8010d59d3fda9775fcfaac799a1d7923c36ca280",size:"medium"}),e("duet-alert",{key:"d78bb705dbfee5d5f3d161f030680effa67c5ca7",part:this.identifier?"".concat(this.identifier,"-error-notification"):"duet-upload-error-notification"},this.fileMaxReached&&_("duet-upload-301",this.errorCodes),this.bytesMaxReached&&_("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&_("duet-upload-302",this.errorCodes),this.filesToUploadTotalSizeIsAboveMax&&_("duet-upload-203",this.errorCodes))),e("duet-visually-hidden",{key:"37ab8ffec8b318cea26e2d538ab0653949211fb4","aria-hidden":"true"},e("input",{key:"195d6bf7e5360d3f10c3fc149927c9f911f11bf0",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 a=new XMLHttpRequest;var i=t.get("name");a.upload.addEventListener("progress",(function(t){e.updateProgress(t,i)}));a.upload.addEventListener("load",(function(){e.transferComplete(i)}));a.upload.addEventListener("error",(function(){e.transferFailed(i)}));a.upload.addEventListener("abort",(function(){e.transferCanceled(i)}));var d={payload:{data:t,name:i},options:{type:"POST",uri:this.uri,xhr:a,argument:null,headers:undefined},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){d=this.middleware(d)}return q(d)};t.prototype.makeXHRDeleteRequest=function(t){var e=t.uid,a=t.item;var i=new XMLHttpRequest;var d={"x-fileuid":e,"x-filename":a.name};var n={payload:{data:null,name:name},options:{type:"DELETE",xhr:i,uri:this.uri,argument:"?key=".concat(e,"&name=").concat(a.name),headers:d},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){n=this.middleware(n)}return q(n)};t.prototype.escapeSpecialCharacters=function(t){return(t+"").replace(/[\\"'(){}\[\]*?$^+]/g,"\\$&").replace(/\u0000/g,"\\0")};t.prototype.getRenamedFileName=function(t,e){var a=new RegExp("".concat(this.escapeSpecialCharacters(t)," \\(\\d+\\).").concat(e));var i=Array.from(this.files.entries()).map((function(t){var e=t[0],a=t[1];return e})).filter((function(i){return a.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 d=parseInt(i.split("(").pop().slice(0,-1));return"".concat(t," (").concat(d+1,").").concat(e)};t.prototype.renameFiles=function(t){var e=this;return t.map((function(t){if(e.files.get(t.name)){var a=t.name.split(".");var i=a.pop();var d=a.join(".");var n=e.getRenamedFileName(d,i);return new File([t],n,{type:t.type,lastModified:t.lastModified})}else{return t}}))};t.prototype.onChange=function(t){return __awaiter(this,void 0,void 0,(function(){var e,a,i,d,n,r,l,o,s,u,h,f;return __generator(this,(function(b){switch(b.label){case 0:a=Array.from((e=this.nativeInput)===null||e===void 0?void 0:e.files);this.filesToUploadExceedsLimit=false;if(N(this.files.size,a.length,this.maxFiles)){this.filesToUploadExceedsLimit=true;this.kick();return[2]}this.filesToUploadTotalSizeIsAboveMax=false;if(Y(this.files,a,this.maxBytesTotal)){this.filesToUploadTotalSizeIsAboveMax=true;this.kick();return[2]}if(!a)return[3,6];if(this.renameDuplicates){a=this.renameFiles(a)}i=0,d=a;b.label=1;case 1:if(!(i<d.length))return[3,6];n=d[i];r=O(n,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),l=r.valid,o=r.errorMessage,s=r.errorType,u=r.errorSystem;h=this.genHashName();f={uid:h,item:n,size:n.size,meta:this.metaData,uploaded:false,valid:l,error:{type:l?undefined:s,message:l?undefined:o,system_message:l?undefined:u},progress:0,deleted:false,xhr:false,url:false};this.files.set(n.name,f);if(!(l&&!this.external))return[3,3];return[4,this.uploadFile(f)];case 2:b.sent();return[3,4];case 3:if(l&&this.external){this.updateValueInMap(f.item.name,"pending",true,false);this.updateValueInMap(f.item.name,"group","pending",true)}else if(!l){this.updateValueInMap(n.name,"valid",false,true)}b.label=4;case 4:this.kick();b.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 n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{valid:["watchValidHandler"]}},enumerable:false,configurable:true});return t}());J.style=H}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,h as t,H as a,g as i}from"./p-3f5c74ac.js";import{i as o}from"./p-347269f4.js";import{e as s,d as l}from"./p-fc09c464.js";import{F as n}from"./p-6b8fad89.js";import{a as d,c as r,d as c,g as u}from"./p-1e3f1ae9.js";import{h as p}from"./p-a7fe475b.js";import{g as h}from"./p-5de30279.js";import"./p-9c3c64b9.js";import"./p-17efced0.js";const b=class{constructor(t){e(this,t),this.exitLangObject={en:"Exit the menu",fi:"Poistu valikosta",sv:"Avsluta menyn"},this.backLangObject={en:"Back to main menu",fi:"Takaisin päävalikkoon",sv:"Tillbaka till huvudmenyn"},this.hasStickyHeaderSlot=!1,this.updateLabel=()=>{const e=this.element.querySelector("[slot='label']");this.label=e},this.toggleMenu=()=>{this.open=!this.open},this.onClick=()=>{this.toggleMenu()},this.onCloseClick=e=>{if(e.stopPropagation(),"DUET-SLIDEOUT"===this.element.parentElement.tagName){const e=this.element.parentElement;s(this.dialog),this.bodyScrollLocked=!1,e.toggle()}},this.label=void 0,this.language=d(),this.bodyScrollLocked=!1,this.theme="",this.active=!1,this.open=!1,this.icon=void 0,this.labelSize="medium",this.backgroundColor="primary-lightest",this.badge=!1}componentWillLoad(){o(this),this.updateLabel(),this.hasStickyHeaderSlot=p(this.element,"sticky-header")}connectedCallback(){r(this),this.mutationObserver=new MutationObserver((()=>{if("DUET-SLIDEOUT"===this.element.parentElement.tagName){const e=this.element.parentElement;e.open&&this.open&&!this.bodyScrollLocked?(this.bodyScrollLocked=!0,l(this.dialog,{reserveScrollBarGap:!0})):!e.open&&this.bodyScrollLocked&&(this.bodyScrollLocked=!1,s(this.dialog))}})),this.mutationObserver.observe(this.element.parentElement,{childList:!1,attributeFilter:["open"],subtree:!1})}disconnectedCallback(){c(this),this.dialog&&(s(this.dialog),this.bodyScrollLocked=!1),this.mutationObserver&&this.mutationObserver.disconnect()}handleOpenChange(e,t){!!e!=!!t&&(this.open&&!t?setTimeout((()=>{Array.from(this.element.parentElement.children).forEach((e=>{e!==this.element&&(e.inert=!0)})),this.bodyScrollLocked||(l(this.dialog,{reserveScrollBarGap:!0}),this.bodyScrollLocked=!0),this.closeButton.focus()}),200):!this.open&&t&&setTimeout((()=>{Array.from(this.element.parentElement.children).forEach((e=>{e.inert=!1})),this.openButton.focus(),s(this.dialog),this.bodyScrollLocked=!1}),200))}async setFocus(e){this.open?setTimeout((()=>{this.closeButton.focus(e)}),200):setTimeout((()=>{this.openButton.focus(e)}),200)}render(){const e={background:h("primary-lightest"===this.backgroundColor&&"turva"===this.theme?"gray-lighter":this.backgroundColor,this.theme)},i=u(this.exitLangObject),o=u(this.backLangObject);return t(a,{key:"cb822cc9737388e773957e9167d9a3f3092a5024"},t("div",{key:"ecf89dccd7aaa7516815ddb1b3283dcb88561624",class:{"duet-slideout-panel":!0,"duet-theme-turva":"turva"===this.theme,active:this.open}},t("button",{key:"1c5d2a8c1e0ccc4d56c57c12e32f37fd2d8bdf28",ref:e=>this.openButton=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{link:!0,active:this.active},onClick:this.onClick,inert:this.open},this.icon&&t("div",{key:"2ed84760445304c52dc13d7d5691fa83386a3fb3",class:"duet-slideout-icon"},t("duet-icon",{key:"a80ea5ba954811c488852ac37d6d7239b7b33a14",name:this.icon,size:"medium",margin:"none",color:"secondary"}),this.badge&&t("div",{key:"a66f32d3b20af0bbad481d024da7cc5616b1c879",class:"duet-slideout-badge"})),t("span",{key:"da846f3815471fb3fdcd4c1319e18f1a5597cfa0",class:"label"},t("span",{key:"f6e260a2a4e4b97d6f724f45e1e46ab386dff47d",class:{"label-text":!0,[this.labelSize]:!0}},t("slot",{key:"abddec9671e9c3b3a3cf43ee916ee198a06b0516",name:"label"})),t("duet-icon",{key:"ed3ef00614b835aac2526866e71b05198dabe225",class:"caret",name:"action-arrow-right",margin:"none",size:"x-small",color:"secondary"}))),t("div",{key:"f004a0beebfa0aea1f9140d94f44a53def61be84",ref:e=>this.dialog=e,class:{dialog:!0,hidden:!this.open},style:e},t(n,{key:"141275269b60c09c78245f2cdba73e3c1556ec89",moveFocusTo:this.closeButton}),t("div",{key:"8835c47450104420f6dd3a208375dfc129fe13fc",class:{"top-container":!0,"has-sticky-header-slot":this.hasStickyHeaderSlot}},t("div",{key:"e26413e851f98164d3f00b4839899a7a05c57a0d",class:"top"},t("button",{key:"e47be55cb0d87b1031a051ce164af014ca773e17",ref:e=>this.closeButton=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-label":`${o}`,type:"button",class:{back:!0},onClick:this.onClick},t("duet-icon",{key:"6c1caa323b815ad3940991fdc7aacec7aab7f94a",class:"caret",name:"action-arrow-left",margin:"none",size:"small",color:"secondary"})),t("span",{key:"96e9ac9d7ff5121db3d90ce76613d00db1864778"},this.label.innerHTML),t("button",{key:"4557397517d57085b8442828c0b60164ce048a3e",class:"close",type:"button",onClick:this.onCloseClick,"aria-label":`${i}`},t("duet-icon",{key:"7c00e8108b826b44fc9343d172fcda9eb700d4a9",name:"navigation-close",size:"small",margin:"none",color:"secondary"}))),t("div",{key:"b9f1ebcaf47a9635917063bec751725fd580f019",class:"sticky-header"},t("slot",{key:"d70c5e23758b79af9cfadfab39349bf9b71b4a76",name:"sticky-header"}))),t("div",{key:"c87464365151093c3edca5fc7478af7b3b90e2ff",tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:!0}},t("slot",{key:"a0dd655320d212ccc005c3fb096b578f19f9c0a8"})),t(n,{key:"dafafa79bc1b13a9c9eb46379181a02ab0487aa5",moveFocusTo:this.closeButton}))))}get element(){return i(this)}static get watchers(){return{open:["handleOpenChange"]}}};b.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}:host slot:not([name=label])::slotted(*){position:relative;top:0.5rem;opacity:0;transition:top 0.3s ease-in, opacity 0.3s ease-in}:host([open]) slot:not([name=label])::slotted(*){top:0;opacity:1}.duet-slideout-panel{position:relative;height:100%}.duet-slideout-panel .link{position:relative;display:flex;gap:20px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:8px 0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.5rem;font-weight:800;line-height:1.25;color:rgb(8, 42, 77);text-align:left;text-decoration:none;cursor:pointer}.duet-slideout-panel .link .duet-slideout-icon{position:relative;display:inline-flex;font-size:0;line-height:normal;vertical-align:baseline}.duet-slideout-panel .link .duet-slideout-icon .duet-slideout-badge{position:absolute;top:0;left:16px;display:inline-block;width:6px;height:6px;background:rgb(247, 178, 40);border-radius:50%;box-shadow:0 0 0 1px #c18b1f}.duet-theme-turva .duet-slideout-panel .link .duet-slideout-icon .duet-slideout-badge{background:rgb(247, 178, 40)}@media (min-width: 62em){.duet-slideout-panel .link .duet-slideout-icon{margin-right:8px}}.duet-slideout-panel .link .label{display:flex;gap:0.5rem;align-items:center;justify-content:space-between;width:100%}.duet-slideout-panel .link .label-text.small{font-size:1rem;font-weight:600}.duet-slideout-panel .link .label-text.medium{font-size:1.25rem;font-weight:600}.duet-slideout-panel .link .label-text.large{font-size:1.5rem;font-weight:800}.duet-slideout-panel .link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout-panel .link.active .label-text{position:relative}.duet-slideout-panel .link.active .label-text.small::after{height:1px;transform:translateY(1px)}.duet-slideout-panel .link.active .label-text::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:2px;content:"";background:rgb(0, 119, 179);transform:translateY(2px)}.duet-slideout-panel .dialog{position:fixed;top:0;left:0;z-index:600;width:100%;height:100%;overflow-y:auto;visibility:visible}.duet-slideout-panel .dialog.hidden{visibility:hidden}.duet-slideout-panel .dialog.hidden .top .back,.duet-slideout-panel .dialog.hidden .top span{opacity:0}.duet-slideout-panel .top-container.has-sticky-header-slot{position:sticky;top:0;z-index:200}.duet-slideout-panel .top-container.has-sticky-header-slot .top{background:rgb(240, 247, 250)}.duet-slideout-panel .top-container.has-sticky-header-slot .sticky-header{display:block;padding:0 16px}.duet-slideout-panel .top{display:flex;align-items:center;justify-content:space-between;padding:4px}.duet-slideout-panel .top .back{opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .top .back:focus,.duet-slideout-panel .top .close:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout-panel .top duet-icon{padding:16px}.duet-slideout-panel .top span{font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(8, 42, 77);opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .sticky-header{display:none;width:100%;padding:0 1.5rem;margin-bottom:20px;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229)}.duet-slideout-panel .items{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:1rem 16px;overflow-y:auto;color:rgb(8, 42, 77)}.duet-slideout-panel.duet-theme-turva .link{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-slideout-panel.duet-theme-turva .link:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-panel.duet-theme-turva .link.active .label-text::after{background:rgb(198, 12, 48)}.duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .top{background:rgb(245, 247, 250)}.duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-slideout-panel.duet-theme-turva .top .back:focus,.duet-slideout-panel.duet-theme-turva .top .close:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-panel.duet-theme-turva .top span{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}slot:not([name=label]){--active-height:1px;--active-translate-y:translateY(1px);font-size:1rem;font-weight:600;color:rgb(8, 42, 77)}.duet-theme-turva slot:not([name=label]){color:rgb(23, 28, 58)}:host(.duet-theme-turva2) .duet-slideout-panel.duet-theme-turva .link{color:rgb(35, 46, 61)}:host(.duet-theme-turva2) .duet-slideout-panel.duet-theme-turva .link.active .label-text::after{background:rgb(197, 29, 65)}:host(.duet-theme-turva2) .duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .top{background:rgb(253, 247, 242)}:host(.duet-theme-turva2) .duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .sticky-header{background:rgb(253, 247, 242);border-bottom-color:rgb(248, 229, 217)}:host(.duet-theme-turva2) .duet-slideout-panel.duet-theme-turva .top span{color:rgb(35, 46, 61)}:host(.duet-theme-turva2) slot:not([name=label]){color:rgb(35, 46, 61)}';export{b as duet_slideout_panel}
4
+ import{r as e,h as t,H as a,g as i}from"./p-597e39d7.js";import{i as o}from"./p-d18e475d.js";import{e as s,d as l}from"./p-fc09c464.js";import{F as n}from"./p-61e0218c.js";import{a as d,c as r,d as c,g as u}from"./p-0c7b1f02.js";import{h as p}from"./p-08bba53e.js";import{g as b}from"./p-5de30279.js";import"./p-9c3c64b9.js";import"./p-17efced0.js";const h=class{constructor(t){e(this,t),this.exitLangObject={en:"Exit the menu",fi:"Poistu valikosta",sv:"Avsluta menyn"},this.backLangObject={en:"Back to main menu",fi:"Takaisin päävalikkoon",sv:"Tillbaka till huvudmenyn"},this.hasStickyHeaderSlot=!1,this.updateLabel=()=>{const e=this.element.querySelector("[slot='label']");this.label=e},this.toggleMenu=()=>{this.open=!this.open},this.onClick=()=>{this.toggleMenu()},this.onCloseClick=e=>{if(e.stopPropagation(),"DUET-SLIDEOUT"===this.element.parentElement.tagName){const e=this.element.parentElement;s(this.dialog),this.bodyScrollLocked=!1,e.toggle()}},this.label=void 0,this.language=d(),this.bodyScrollLocked=!1,this.theme="",this.active=!1,this.open=!1,this.icon=void 0,this.labelSize="medium",this.backgroundColor="primary-lightest",this.badge=!1}componentWillLoad(){o(this),this.updateLabel(),this.hasStickyHeaderSlot=p(this.element,"sticky-header")}connectedCallback(){r(this),this.mutationObserver=new MutationObserver((()=>{if("DUET-SLIDEOUT"===this.element.parentElement.tagName){const e=this.element.parentElement;e.open&&this.open&&!this.bodyScrollLocked?(this.bodyScrollLocked=!0,l(this.dialog,{reserveScrollBarGap:!0})):!e.open&&this.bodyScrollLocked&&(this.bodyScrollLocked=!1,s(this.dialog))}})),this.mutationObserver.observe(this.element.parentElement,{childList:!1,attributeFilter:["open"],subtree:!1})}disconnectedCallback(){c(this),this.dialog&&(s(this.dialog),this.bodyScrollLocked=!1),this.mutationObserver&&this.mutationObserver.disconnect()}handleOpenChange(e,t){!!e!=!!t&&(this.open&&!t?setTimeout((()=>{Array.from(this.element.parentElement.children).forEach((e=>{e!==this.element&&(e.inert=!0)})),this.bodyScrollLocked||(l(this.dialog,{reserveScrollBarGap:!0}),this.bodyScrollLocked=!0),this.closeButton.focus()}),200):!this.open&&t&&setTimeout((()=>{Array.from(this.element.parentElement.children).forEach((e=>{e.inert=!1})),this.openButton.focus(),s(this.dialog),this.bodyScrollLocked=!1}),200))}async setFocus(e){this.open?setTimeout((()=>{this.closeButton.focus(e)}),200):setTimeout((()=>{this.openButton.focus(e)}),200)}render(){const e={background:b("primary-lightest"===this.backgroundColor&&"turva"===this.theme?"gray-lighter":this.backgroundColor,this.theme)},i=u(this.exitLangObject),o=u(this.backLangObject);return t(a,{key:"c618207a4d1f48bf3d6826e1403f814dfefab575"},t("div",{key:"24aeed548e03a4ba674fd5273c4f702f8121db77",class:{"duet-slideout-panel":!0,"duet-theme-turva":"turva"===this.theme,active:this.open}},t("button",{key:"86f88c9bbe4895bd068180e5b995b33f32d02062",ref:e=>this.openButton=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{link:!0,active:this.active},onClick:this.onClick,inert:this.open},this.icon&&t("div",{key:"4c2c622204fdd0f993285435eb35d99c469deba7",class:"duet-slideout-icon"},t("duet-icon",{key:"47471be5905639b85633ca7c078fc8a2b8b3434c",name:this.icon,size:"medium",margin:"none",color:"secondary"}),this.badge&&t("div",{key:"010cb1b61008c593fdc2ae9a75b85f4333bbf6b4",class:"duet-slideout-badge"})),t("span",{key:"83e55977bce3226cacaddf855b620fca72b06d39",class:"label"},t("span",{key:"9d2cab5ad2ffd23583afc55ddf53cab71f8a3774",class:{"label-text":!0,[this.labelSize]:!0}},t("slot",{key:"d5ae73ff0c7304bf80d6a42bb58265fadadc6261",name:"label"})),t("duet-icon",{key:"b1500d208ee1d7f73139aef3eb067d7f88bd161f",class:"caret",name:"action-arrow-right",margin:"none",size:"x-small",color:"secondary"}))),t("div",{key:"b4b7095bd5b8b0bf9123970308284d05910d29ff",ref:e=>this.dialog=e,class:{dialog:!0,hidden:!this.open},style:e},t(n,{key:"b727beeabc7dbf3ddac34ec3bb2b83088fdd8a64",moveFocusTo:this.closeButton}),t("div",{key:"ae27f00c16f42cdc381e039374ca60469b7e47e8",class:{"top-container":!0,"has-sticky-header-slot":this.hasStickyHeaderSlot}},t("div",{key:"2247b741022af7ea503e766eb23d88317153e4be",class:"top"},t("button",{key:"b5845650af972cd12875faf5f7591636fb26e936",ref:e=>this.closeButton=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-label":`${o}`,type:"button",class:{back:!0},onClick:this.onClick},t("duet-icon",{key:"9db41b0be45366ff69d05b07144ddb0e61200fef",class:"caret",name:"action-arrow-left",margin:"none",size:"small",color:"secondary"})),t("span",{key:"3c77687dc007b4c7f2d8f64db30a512cfccb84c7"},this.label.innerHTML),t("button",{key:"b483ddbfbb812cd765892a1233b51ebeb609f794",class:"close",type:"button",onClick:this.onCloseClick,"aria-label":`${i}`},t("duet-icon",{key:"4c752e1fae7537d84b3a4d0c5c3f49a65510129a",name:"navigation-close",size:"small",margin:"none",color:"secondary"}))),t("div",{key:"90a3a6cc8807e8d3d47532498277130ad8b06cc5",class:"sticky-header"},t("slot",{key:"bb9821613913f9b1698091345f6f9570a6b53c05",name:"sticky-header"}))),t("div",{key:"efed104d95f95cfe31d0a4e785c54f089c221811",tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:!0}},t("slot",{key:"fa57d978d819397f7b0ef84ed9e5581899d41750"})),t(n,{key:"b42d0431e7a6c14f457ca07a5d703dfa22039b5f",moveFocusTo:this.closeButton}))))}get element(){return i(this)}static get watchers(){return{open:["handleOpenChange"]}}};h.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}:host slot:not([name=label])::slotted(*){position:relative;top:0.5rem;opacity:0;transition:top 0.3s ease-in, opacity 0.3s ease-in}:host([open]) slot:not([name=label])::slotted(*){top:0;opacity:1}.duet-slideout-panel{position:relative;height:100%}.duet-slideout-panel .link{position:relative;display:flex;gap:20px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:8px 0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.5rem;font-weight:800;line-height:1.25;color:rgb(8, 42, 77);text-align:left;text-decoration:none;cursor:pointer}.duet-slideout-panel .link .duet-slideout-icon{position:relative;display:inline-flex;font-size:0;line-height:normal;vertical-align:baseline}.duet-slideout-panel .link .duet-slideout-icon .duet-slideout-badge{position:absolute;top:0;left:16px;display:inline-block;width:6px;height:6px;background:rgb(247, 178, 40);border-radius:50%;box-shadow:0 0 0 1px #c18b1f}.duet-theme-turva .duet-slideout-panel .link .duet-slideout-icon .duet-slideout-badge{background:rgb(247, 178, 40)}@media (min-width: 62em){.duet-slideout-panel .link .duet-slideout-icon{margin-right:8px}}.duet-slideout-panel .link .label{display:flex;gap:0.5rem;align-items:center;justify-content:space-between;width:100%}.duet-slideout-panel .link .label-text.small{font-size:1rem;font-weight:600}.duet-slideout-panel .link .label-text.medium{font-size:1.25rem;font-weight:600}.duet-slideout-panel .link .label-text.large{font-size:1.5rem;font-weight:800}.duet-slideout-panel .link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout-panel .link.active .label-text{position:relative}.duet-slideout-panel .link.active .label-text.small::after{height:1px;transform:translateY(1px)}.duet-slideout-panel .link.active .label-text::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:2px;content:"";background:rgb(0, 119, 179);transform:translateY(2px)}.duet-slideout-panel .dialog{position:fixed;top:0;left:0;z-index:600;width:100%;height:100%;overflow-y:auto;visibility:visible}.duet-slideout-panel .dialog.hidden{visibility:hidden}.duet-slideout-panel .dialog.hidden .top .back,.duet-slideout-panel .dialog.hidden .top span{opacity:0}.duet-slideout-panel .top-container.has-sticky-header-slot{position:sticky;top:0;z-index:200}.duet-slideout-panel .top-container.has-sticky-header-slot .top{background:rgb(240, 247, 250)}.duet-slideout-panel .top-container.has-sticky-header-slot .sticky-header{display:block;padding:0 16px}.duet-slideout-panel .top{display:flex;align-items:center;justify-content:space-between;padding:4px}.duet-slideout-panel .top .back{opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .top .back:focus,.duet-slideout-panel .top .close:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout-panel .top duet-icon{padding:16px}.duet-slideout-panel .top span{font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(8, 42, 77);opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .sticky-header{display:none;width:100%;padding:0 1.5rem;margin-bottom:20px;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229)}.duet-slideout-panel .items{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:1rem 16px;overflow-y:auto;color:rgb(8, 42, 77)}.duet-slideout-panel.duet-theme-turva .link{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-slideout-panel.duet-theme-turva .link:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-panel.duet-theme-turva .link.active .label-text::after{background:rgb(198, 12, 48)}.duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .top{background:rgb(245, 247, 250)}.duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-slideout-panel.duet-theme-turva .top .back:focus,.duet-slideout-panel.duet-theme-turva .top .close:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-panel.duet-theme-turva .top span{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}slot:not([name=label]){--active-height:1px;--active-translate-y:translateY(1px);font-size:1rem;font-weight:600;color:rgb(8, 42, 77)}.duet-theme-turva slot:not([name=label]){color:rgb(23, 28, 58)}:host(.duet-theme-turva2) .duet-slideout-panel.duet-theme-turva .link{color:#172a3b}:host(.duet-theme-turva2) .duet-slideout-panel.duet-theme-turva .link.active .label-text::after{background:#e61740}:host(.duet-theme-turva2) .duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .top{background:#fdf7f2}:host(.duet-theme-turva2) .duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .sticky-header{background:#fdf7f2;border-bottom-color:#fbe1d1}:host(.duet-theme-turva2) .duet-slideout-panel.duet-theme-turva .top span{color:#172a3b}:host(.duet-theme-turva2) slot:not([name=label]){color:#172a3b}';export{h as duet_slideout_panel}
@@ -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-3f5c74ac.js";import{d as i,e as o}from"./p-8354d1f1.js";import{i as s}from"./p-347269f4.js";import{a as l}from"./p-cc531319.js";import{f as r}from"./p-6b8fad89.js";import{f as n}from"./p-a45e3f8b.js";import{a as m,g as u,c as h,d as p}from"./p-1e3f1ae9.js";import{h as c}from"./p-a7fe475b.js";import{T as g}from"./p-8cb0e6bd.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:"9bd3048e4d9313e5c9af47dbc33af4eb66ed3a5a",class:"duet-modal-close"},a("duet-button",{key:"ab6131730c34219274154937f6f57aca53dbbdb5",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:"3161f0487179b9f75ec61b82ce3b6c5faa246539",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:"b81c8fe6ffd00fa450ed6cc3f752e55ad337892c","z-index":"-1",visible:this.open,variation:"loader"===this.variation?"white":"default"}),a("div",{key:"dca19f7447b771f47b47e976f73544b47b2b736d",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:"e21d68503cd3507f94b63280f1b8fda4333e3a58",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:"27491137eba94ef6a4f244dc0f89bae403048f9e"}),this.hasStickyHeader?a("div",{class:"duet-modal-sticky-header"},o,a("slot",{name:"sticky-header"})):o,a("div",{key:"ae43c8158067a7111ebaf5fb712e5f35dda5fcea",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:"76fec413d37c3b45fde13b208024a3abb3f6fb44",class:"duet-modal-header"},a("span",{key:"a013002e8b1471967659999a6cec3c26020c2850",class:"duet-modal-inner-slot-top"},a("slot",{key:"a1b38d58fcffb2b67b15ea27b831109144235773",name:"top"})),this.icon&&a("duet-icon",{key:"909e82f5051f2118d366ffc2d7d6387250d995e3",name:this.icon,size:"xx-large",color:this.color||d}),this.heading&&a("duet-heading",{key:"3b5de36ab65d6025941ddbd822da4296422756a1","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:"a46059a4b80c8551d56d8848b75f2823711a3c3b",class:"duet-modal-spinner"},a("duet-spinner",{key:"6e3e934c35c7be05854d7fe19d26b1d8fa082167",size:"large",color:"primary"})),a("div",{key:"b94e2c9f6f7995f2bb66d9738dd1a22636359455",class:"duet-modal-inner-slot-default",ref:e=>this.slotContainerEl=e,"aria-live":"loader"===this.variation?"assertive":"off"},a("slot",{key:"a3d455bffeae35e973dd16cda76c36f3a6370f48"}))))))}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:16px;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:16px 16px 0 0;opacity:1;transition:top 600ms ease}.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: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}:host(.duet-theme-turva2) .duet-theme-turva .duet-modal{color:rgb(35, 46, 61)}:host(.duet-theme-turva2) .duet-theme-turva .duet-modal-sticky-header{background:rgb(253, 247, 242);border-bottom:1px solid rgb(248, 229, 217)}';export{b as duet_modal}
4
+ import{r as e,c as t,h as d,g as a}from"./p-597e39d7.js";import{d as i,e as o}from"./p-8354d1f1.js";import{i as s}from"./p-d18e475d.js";import{a as l}from"./p-cc531319.js";import{f as r}from"./p-61e0218c.js";import{f as n}from"./p-a45e3f8b.js";import{a as m,g as u,c as h,d as p}from"./p-0c7b1f02.js";import{h as c}from"./p-08bba53e.js";import{T as b}from"./p-8cb0e6bd.js";import"./p-9c3c64b9.js";const g=class{constructor(d){var a,i;e(this,d),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===(a=null===navigator||void 0===navigator?void 0:navigator.userAgent)||void 0===a?void 0:a.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 b(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 d=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,a=this.modalEl.querySelector(".duet-modal-body").computedStyleMap().get("padding-top");this.slotContainerEl.style.scrollMarginTop=`${e+a.value}px`,this.slotContainerEl.scrollIntoView({behavior:d})}else this.modalEl.querySelector(".duet-modal-body").scrollIntoView({behavior:d})}async addMessage(e,t=!0){const d=document.createElement(t?"duet-paragraph":"duet-visually-hidden");d.textContent=e,d.classList.add("duet-loader-message"),t&&setTimeout((()=>{this.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((e=>e.classList.remove("show"))),d.classList.add("show")}),10),this.slotContainerEl.appendChild(d)}closeModal(e){this.duetBeforeClose.emit({originalEvent:e,component:"duet-modal"}),e.defaultPrevented||setTimeout((()=>{this.hide()}),1)}render(){var e,t;let a="primary",i="secondary";const o=d("div",{key:"675dc50327ab1e0f8033a2befcdf37cd4d3e0bf2",class:"duet-modal-close"},d("duet-button",{key:"4184913dd9b92a9b95f1d5e773800766530b97cf",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&&(a="primary-turva",i="secondary-turva"),d("div",{key:"0751e3ddbaa09c8c1abc7986e3fabd97dba82be6",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}},d("duet-overlay",{key:"c1e924fd65887cf4378aab5b0a8a240ed48eb04a","z-index":"-1",visible:this.open,variation:"loader"===this.variation?"white":"default"}),d("div",{key:"a9e7ab02f299be796797683d7f1ba696bc5c884f",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)}},d("div",{key:"86107c52f7cdb102f409586020bdeb116c041720",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&&d("duet-spacer",{key:"c728a3caf6df68ed0c97baf1425c2ddab6a98f5b"}),this.hasStickyHeader?d("div",{class:"duet-modal-sticky-header"},o,d("slot",{name:"sticky-header"})):o,d("div",{key:"36b15d0c3595fdcecc6f14abb3578eefef74a8c9",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}},d("div",{key:"5dfb5b08e6593777e82f58c9a8d4db36cd3efbbc",class:"duet-modal-header"},d("span",{key:"0a95f7b53f47eb9e75ea99a007b0951b9a0fe11a",class:"duet-modal-inner-slot-top"},d("slot",{key:"56cbb6d090f309f66c7e79f90b3b8b4920501fca",name:"top"})),this.icon&&d("duet-icon",{key:"1918983d8ba93e09a80ab19f9dd2d5d88b9c483e",name:this.icon,size:"xx-large",color:this.color||a}),this.heading&&d("duet-heading",{key:"7e77994203cb473aa15b6e7356660278bad02d57","visual-level":null!==(t=this.headingVisualLevel)&&void 0!==t?t:this.headingLevel,level:this.headingLevel,theme:this.theme},this.heading)),"loader"===this.variation&&d("div",{key:"cb74816a66ac5eb67938c8a4358d0ecb2f7769f3",class:"duet-modal-spinner"},d("duet-spinner",{key:"70156c240cc4d32e660349992be704be48d55c54",size:"large",color:"primary"})),d("div",{key:"7d20cd4b16628ed66118f41c9f2cb626cb87fd6b",class:"duet-modal-inner-slot-default",ref:e=>this.slotContainerEl=e,"aria-live":"loader"===this.variation?"assertive":"off"},d("slot",{key:"229d35cca36167acf3d262376b3d11a6473d5635"}))))))}get element(){return a(this)}static get watchers(){return{open:["openChanged"],active:["activeChanged"]}}};g.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.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:16px;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:16px 16px 0 0;opacity:1;transition:top 600ms ease}.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: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:8px;right:8px}.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}:host(.duet-theme-turva2) .duet-theme-turva .duet-modal{color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .duet-modal-sticky-header{background:#fdf7f2;border-bottom:1px solid #d4dde2}';export{g as duet_modal}