@duetds/components 6.11.2 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (640) hide show
  1. package/hydrate/index.js +309 -230
  2. package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
  3. package/lib/cjs/duet-alert.cjs.entry.js +14 -2
  4. package/lib/cjs/duet-badge.cjs.entry.js +1 -1
  5. package/lib/cjs/duet-banner.cjs.entry.js +3 -3
  6. package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
  7. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
  8. package/lib/cjs/duet-button_2.cjs.entry.js +3 -3
  9. package/lib/cjs/duet-callout.cjs.entry.js +1 -1
  10. package/lib/cjs/duet-caption_4.cjs.entry.js +3 -3
  11. package/lib/cjs/duet-card.cjs.entry.js +3 -3
  12. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  13. package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
  14. package/lib/cjs/duet-chip.cjs.entry.js +1 -1
  15. package/lib/cjs/duet-choice_2.cjs.entry.js +2 -2
  16. package/lib/cjs/duet-collapsible.cjs.entry.js +1 -1
  17. package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
  18. package/lib/cjs/duet-contact-card.cjs.entry.js +1 -1
  19. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  20. package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
  21. package/lib/cjs/duet-divider_2.cjs.entry.js +3 -3
  22. package/lib/cjs/duet-editable-table_3.cjs.entry.js +25 -19
  23. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  24. package/lib/cjs/duet-fieldset.cjs.entry.js +3 -2
  25. package/lib/cjs/duet-footer.cjs.entry.js +1 -1
  26. package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
  27. package/lib/cjs/duet-header_2.cjs.entry.js +14 -9
  28. package/lib/cjs/duet-hero.cjs.entry.js +1 -1
  29. package/lib/cjs/duet-icon.cjs.entry.js +3 -3
  30. package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
  31. package/lib/cjs/duet-layout.cjs.entry.js +1 -1
  32. package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
  33. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +1 -1
  34. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
  35. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
  36. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
  37. package/lib/cjs/duet-menu-bar.cjs.entry.js +1 -1
  38. package/lib/cjs/duet-modal.cjs.entry.js +6 -2
  39. package/lib/cjs/duet-multiselect.cjs.entry.js +1 -1
  40. package/lib/cjs/duet-nav.cjs.entry.js +1 -1
  41. package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
  42. package/lib/cjs/duet-number-input.cjs.entry.js +4 -1
  43. package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
  44. package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
  45. package/lib/cjs/duet-popup-menu-item.cjs.entry.js +1 -1
  46. package/lib/cjs/duet-popup-menu.cjs.entry.js +5 -5
  47. package/lib/cjs/duet-progress.cjs.entry.js +1 -1
  48. package/lib/cjs/duet-promo-card.cjs.entry.js +3 -3
  49. package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
  50. package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
  51. package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
  52. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
  53. package/lib/cjs/duet-select.cjs.entry.js +1 -1
  54. package/lib/cjs/duet-shaped-image.cjs.entry.js +1 -1
  55. package/lib/cjs/duet-show-more.cjs.entry.js +1 -1
  56. package/lib/cjs/duet-slideout-lang.cjs.entry.js +1 -1
  57. package/lib/cjs/duet-slideout-link.cjs.entry.js +1 -1
  58. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
  59. package/lib/cjs/duet-slideout-panel.cjs.entry.js +4 -4
  60. package/lib/cjs/duet-slideout.cjs.entry.js +4 -4
  61. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  62. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
  63. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +1 -1
  64. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
  65. package/lib/cjs/duet-submenu-bar.cjs.entry.js +1 -1
  66. package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
  67. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  68. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -1
  69. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
  70. package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
  71. package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
  72. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +2 -2
  73. package/lib/cjs/duet-tooltip.cjs.entry.js +5 -5
  74. package/lib/cjs/duet-tray.cjs.entry.js +2 -2
  75. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  76. package/lib/cjs/duet-upload-item.cjs.entry.js +5 -4
  77. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  78. package/lib/cjs/duet.cjs.js +2 -2
  79. package/lib/cjs/{teleport-d79735ca.js → floating-ui.dom.esm-d537b048.js} +154 -195
  80. package/lib/cjs/{focus-utils-e486f272.js → focus-utils-6d4f01d9.js} +1 -1
  81. package/lib/cjs/{index-04de4d35.js → index-b7f668db.js} +1 -1
  82. package/lib/cjs/loader.cjs.js +2 -2
  83. package/lib/cjs/teleport-04ad16c2.js +88 -0
  84. package/lib/cjs/{token-utils-18a05118.js → token-utils-c1864408.js} +1 -1
  85. package/lib/cjs/{tokens.module-d30fb52a.js → tokens.module-5fe478ed.js} +0 -1
  86. package/lib/collection/components/duet-action-button/duet-action-button.js +2 -2
  87. package/lib/collection/components/duet-alert/duet-alert.js +54 -2
  88. package/lib/collection/components/duet-button/duet-button.js +5 -5
  89. package/lib/collection/components/duet-caption/duet-caption.js +1 -1
  90. package/lib/collection/components/duet-card/duet-card.js +3 -3
  91. package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
  92. package/lib/collection/components/duet-chip/duet-chip.js +4 -4
  93. package/lib/collection/components/duet-choice/duet-choice.js +3 -3
  94. package/lib/collection/components/duet-collapsible/duet-collapsible.js +3 -3
  95. package/lib/collection/components/duet-combobox/duet-combobox.js +3 -3
  96. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
  97. package/lib/collection/components/duet-date-picker/duet-date-picker.js +4 -4
  98. package/lib/collection/components/duet-divider/duet-divider.js +1 -1
  99. package/lib/collection/components/duet-editable-table/duet-editable-table.js +5 -5
  100. package/lib/collection/components/duet-empty-state/duet-empty-state.js +1 -1
  101. package/lib/collection/components/duet-fieldset/duet-fieldset.js +25 -1
  102. package/lib/collection/components/duet-footer/duet-footer.js +7 -7
  103. package/lib/collection/components/duet-grid/duet-grid.js +3 -3
  104. package/lib/collection/components/duet-header/duet-header.js +28 -23
  105. package/lib/collection/components/duet-heading/duet-heading.js +1 -1
  106. package/lib/collection/components/duet-hero/duet-hero.js +5 -5
  107. package/lib/collection/components/duet-icon/duet-icon.js +1 -1
  108. package/lib/collection/components/duet-input/duet-input.js +8 -8
  109. package/lib/collection/components/duet-label/duet-label.js +2 -2
  110. package/lib/collection/components/duet-layout/duet-layout.js +1 -1
  111. package/lib/collection/components/duet-list/duet-list.js +3 -3
  112. package/lib/collection/components/duet-logo/duet-logo.js +1 -1
  113. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +1 -1
  114. package/lib/collection/components/duet-modal/duet-modal.js +7 -3
  115. package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
  116. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +1 -1
  117. package/lib/collection/components/duet-number-input/duet-number-input.js +4 -4
  118. package/lib/collection/components/duet-pagination/duet-pagination.js +2 -2
  119. package/lib/collection/components/duet-paragraph/duet-paragraph.js +3 -3
  120. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +1 -1
  121. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
  122. package/lib/collection/components/duet-radio/duet-radio.js +3 -3
  123. package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
  124. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +1 -1
  125. package/lib/collection/components/duet-select/duet-select.js +5 -5
  126. package/lib/collection/components/duet-show-more/duet-show-more.js +1 -1
  127. package/lib/collection/components/duet-slideout/duet-slideout.js +1 -1
  128. package/lib/collection/components/duet-spacer/duet-spacer.js +2 -2
  129. package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
  130. package/lib/collection/components/duet-step/duet-step.js +2 -2
  131. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  132. package/lib/collection/components/duet-tab-group/duet-tab-group.js +5 -5
  133. package/lib/collection/components/duet-textarea/duet-textarea.js +4 -4
  134. package/lib/collection/components/duet-toggle/duet-toggle.js +1 -1
  135. package/lib/collection/components/duet-tooltip/duet-tooltip.js +1 -1
  136. package/lib/collection/components/duet-upload/duet-upload.js +53 -29
  137. package/lib/collection/components/duet-upload/upload-item-header.js +6 -1
  138. package/lib/collection/components/duet-upload-item/duet-upload-item.js +5 -4
  139. package/lib/collection/utils/math.utils.js +3 -0
  140. package/lib/collection/utils/teleport.js +55 -7
  141. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  142. package/lib/dist-custom-elements/duet-alert.js +1 -1
  143. package/lib/dist-custom-elements/duet-badge.js +1 -1
  144. package/lib/dist-custom-elements/duet-banner.js +5 -5
  145. package/lib/dist-custom-elements/duet-breadcrumb.js +2 -2
  146. package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
  147. package/lib/dist-custom-elements/duet-button.js +1 -1
  148. package/lib/dist-custom-elements/duet-callout.js +3 -3
  149. package/lib/dist-custom-elements/duet-caption.js +1 -1
  150. package/lib/dist-custom-elements/duet-card.js +4 -4
  151. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  152. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  153. package/lib/dist-custom-elements/duet-chip.js +2 -2
  154. package/lib/dist-custom-elements/duet-choice-group.js +8 -8
  155. package/lib/dist-custom-elements/duet-choice.js +5 -5
  156. package/lib/dist-custom-elements/duet-collapsible.js +2 -2
  157. package/lib/dist-custom-elements/duet-combobox.js +2 -2
  158. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  159. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  160. package/lib/dist-custom-elements/duet-date-picker.js +12 -12
  161. package/lib/dist-custom-elements/duet-divider.js +1 -1
  162. package/lib/dist-custom-elements/duet-editable-table.js +7 -7
  163. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  164. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  165. package/lib/dist-custom-elements/duet-footer.js +4 -4
  166. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  167. package/lib/dist-custom-elements/duet-grid.js +1 -1
  168. package/lib/dist-custom-elements/duet-header.js +20 -15
  169. package/lib/dist-custom-elements/duet-heading.js +1 -1
  170. package/lib/dist-custom-elements/duet-hero.js +9 -9
  171. package/lib/dist-custom-elements/duet-icon.js +1 -1
  172. package/lib/dist-custom-elements/duet-input.js +1 -1
  173. package/lib/dist-custom-elements/duet-label.js +1 -1
  174. package/lib/dist-custom-elements/duet-layout.js +1 -1
  175. package/lib/dist-custom-elements/duet-link.js +1 -1
  176. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  177. package/lib/dist-custom-elements/duet-list.js +1 -1
  178. package/lib/dist-custom-elements/duet-logo.js +1 -1
  179. package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
  180. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
  181. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
  182. package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
  183. package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
  184. package/lib/dist-custom-elements/duet-modal.js +11 -7
  185. package/lib/dist-custom-elements/duet-multiselect.js +10 -10
  186. package/lib/dist-custom-elements/duet-nav.js +1 -1
  187. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  188. package/lib/dist-custom-elements/duet-notification.js +2 -2
  189. package/lib/dist-custom-elements/duet-number-input.js +14 -11
  190. package/lib/dist-custom-elements/duet-page-heading.js +2 -2
  191. package/lib/dist-custom-elements/duet-pagination.js +7 -7
  192. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  193. package/lib/dist-custom-elements/duet-popup-menu-item.js +2 -2
  194. package/lib/dist-custom-elements/duet-popup-menu.js +3 -2
  195. package/lib/dist-custom-elements/duet-progress.js +1 -1
  196. package/lib/dist-custom-elements/duet-promo-card.js +4 -4
  197. package/lib/dist-custom-elements/duet-radio-group.js +8 -8
  198. package/lib/dist-custom-elements/duet-radio.js +1 -1
  199. package/lib/dist-custom-elements/duet-range-slider.js +3 -3
  200. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  201. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  202. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  203. package/lib/dist-custom-elements/duet-select.js +1 -1
  204. package/lib/dist-custom-elements/duet-shaped-image.js +1 -1
  205. package/lib/dist-custom-elements/duet-show-more.js +5 -5
  206. package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
  207. package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
  208. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
  209. package/lib/dist-custom-elements/duet-slideout-panel.js +3 -3
  210. package/lib/dist-custom-elements/duet-slideout.js +3 -3
  211. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  212. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  213. package/lib/dist-custom-elements/duet-step.js +4 -4
  214. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  215. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
  216. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +2 -2
  217. package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
  218. package/lib/dist-custom-elements/duet-submenu-bar.js +2 -2
  219. package/lib/dist-custom-elements/duet-tab-group.js +13 -13
  220. package/lib/dist-custom-elements/duet-tab.js +1 -1
  221. package/lib/dist-custom-elements/duet-table.js +1 -1
  222. package/lib/dist-custom-elements/duet-textarea.js +10 -10
  223. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  224. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
  225. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
  226. package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
  227. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  228. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  229. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  230. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  231. package/lib/dist-custom-elements/duet-tray.js +4 -4
  232. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  233. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  234. package/lib/dist-custom-elements/duet-upload.js +41 -34
  235. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  236. package/lib/dist-custom-elements/index.js +1 -1
  237. package/lib/dist-custom-elements/{p-e354b687.js → p-19b04293.js} +1 -1
  238. package/lib/dist-custom-elements/{p-b260c7b8.js → p-1fef65c4.js} +1 -1
  239. package/lib/dist-custom-elements/{p-f9076d3e.js → p-20d8a7ab.js} +14 -13
  240. package/lib/dist-custom-elements/{p-a5cb00f4.js → p-28facbdc.js} +2 -2
  241. package/lib/dist-custom-elements/{p-2bd44c3c.js → p-32a42529.js} +4 -4
  242. package/lib/dist-custom-elements/{p-4f3d4b28.js → p-34d193a7.js} +1 -1
  243. package/lib/dist-custom-elements/{p-411af53d.js → p-371290d2.js} +3 -3
  244. package/lib/dist-custom-elements/{p-44316a49.js → p-47bc3fc6.js} +1 -1
  245. package/lib/dist-custom-elements/{p-67584a63.js → p-4fa0d10e.js} +3 -3
  246. package/lib/dist-custom-elements/{p-df34106b.js → p-507ae246.js} +2 -2
  247. package/lib/dist-custom-elements/{p-f79fe19b.js → p-591040e5.js} +1 -1
  248. package/lib/dist-custom-elements/p-63c149ab.js +86 -0
  249. package/lib/dist-custom-elements/{p-baa9e0f3.js → p-66206ea5.js} +1 -1
  250. package/lib/dist-custom-elements/{p-9dc40c4f.js → p-80bd412e.js} +10 -10
  251. package/lib/dist-custom-elements/{p-2ca516d3.js → p-84003069.js} +5 -3
  252. package/lib/dist-custom-elements/{p-b244b9d4.js → p-86f35893.js} +1 -1
  253. package/lib/dist-custom-elements/{p-784fe90e.js → p-8adb9463.js} +155 -195
  254. package/lib/dist-custom-elements/{p-e4198c92.js → p-8dbc5e4b.js} +1 -1
  255. package/lib/dist-custom-elements/{p-748fb4e9.js → p-8e9d78b5.js} +1 -1
  256. package/lib/dist-custom-elements/{p-726f277c.js → p-91f98ca2.js} +5 -5
  257. package/lib/dist-custom-elements/{p-c56b4bad.js → p-93609c40.js} +2 -2
  258. package/lib/dist-custom-elements/{p-b4163126.js → p-960b00e1.js} +2 -2
  259. package/lib/dist-custom-elements/{p-2159ffc3.js → p-9fb22951.js} +2 -2
  260. package/lib/dist-custom-elements/{p-32fdcec8.js → p-a7cc7bd9.js} +2 -2
  261. package/lib/dist-custom-elements/{p-e22956bf.js → p-b1fa6ee7.js} +2 -2
  262. package/lib/dist-custom-elements/{p-351b0f8c.js → p-b95006a5.js} +2 -2
  263. package/lib/dist-custom-elements/{p-7a906a81.js → p-c2a056b1.js} +2 -2
  264. package/lib/dist-custom-elements/{p-c624c26b.js → p-c85f0028.js} +8 -8
  265. package/lib/dist-custom-elements/{p-229871c3.js → p-cbc43bac.js} +21 -7
  266. package/lib/dist-custom-elements/{p-d9bf49cf.js → p-da75f5d9.js} +1 -1
  267. package/lib/dist-custom-elements/{p-66ab9994.js → p-dd112690.js} +5 -5
  268. package/lib/dist-custom-elements/{p-7c68ac5a.js → p-de10f837.js} +7 -6
  269. package/lib/dist-custom-elements/{p-661e7864.js → p-de68431d.js} +1 -1
  270. package/lib/dist-custom-elements/{p-f13081a0.js → p-e78bd379.js} +3 -3
  271. package/lib/dist-custom-elements/{p-cd9b5f96.js → p-e8475b3c.js} +1 -1
  272. package/lib/dist-custom-elements/{p-ce09b821.js → p-eb0475d3.js} +1 -1
  273. package/lib/dist-custom-elements/{p-f30df343.js → p-f3ffb5b4.js} +2 -2
  274. package/lib/dist-custom-elements/{p-7ece12ec.js → p-f933f857.js} +1 -1
  275. package/lib/duet/duet.esm.js +1 -1
  276. package/lib/duet/duet.js +1 -1
  277. package/lib/duet/{p-31441d04.system.entry.js → p-01aaac6a.system.entry.js} +1 -1
  278. package/lib/duet/{p-cc9f1e7e.system.entry.js → p-01f3e23e.system.entry.js} +1 -1
  279. package/lib/duet/{p-5d5f6c7c.entry.js → p-02ce139d.entry.js} +1 -1
  280. package/lib/duet/{p-e0af1e68.system.entry.js → p-02fa277e.system.entry.js} +1 -1
  281. package/lib/duet/{p-581baf04.system.entry.js → p-04dd24ca.system.entry.js} +1 -1
  282. package/lib/duet/p-05545e81.entry.js +4 -0
  283. package/lib/duet/{p-beb2fcfd.entry.js → p-07871336.entry.js} +1 -1
  284. package/lib/duet/{p-4aa7c43e.entry.js → p-090b0eb4.entry.js} +1 -1
  285. package/lib/duet/{p-fb763129.system.entry.js → p-0c3cfb88.system.entry.js} +1 -1
  286. package/lib/duet/{p-97b7d224.entry.js → p-0ec7bc0d.entry.js} +1 -1
  287. package/lib/duet/{p-20a3bf2b.entry.js → p-104758cf.entry.js} +1 -1
  288. package/lib/duet/{p-02c5180a.entry.js → p-10b014f5.entry.js} +1 -1
  289. package/lib/duet/{p-ff433afd.entry.js → p-1137a234.entry.js} +1 -1
  290. package/lib/duet/{p-27c853fe.system.entry.js → p-11a22107.system.entry.js} +1 -1
  291. package/lib/duet/{p-8b533166.system.entry.js → p-125fff3c.system.entry.js} +1 -1
  292. package/lib/duet/{p-da62279b.system.entry.js → p-15c364ef.system.entry.js} +1 -1
  293. package/lib/duet/p-180b9ef7.entry.js +4 -0
  294. package/lib/duet/{p-9e675661.entry.js → p-1e2689a2.entry.js} +1 -1
  295. package/lib/duet/{p-23ba8301.entry.js → p-231e217b.entry.js} +1 -1
  296. package/lib/duet/{p-7d15ac32.system.entry.js → p-2362c81c.system.entry.js} +1 -1
  297. package/lib/duet/{p-e8323345.system.entry.js → p-236348a6.system.entry.js} +1 -1
  298. package/lib/duet/{p-2ec51250.entry.js → p-26082482.entry.js} +1 -1
  299. package/lib/duet/{p-d67196da.entry.js → p-27831ad1.entry.js} +1 -1
  300. package/lib/duet/{p-a47b67e2.system.entry.js → p-27cbcb00.system.entry.js} +1 -1
  301. package/lib/duet/{p-a262eecf.entry.js → p-28cbcde9.entry.js} +1 -1
  302. package/lib/duet/{p-abdf2879.system.entry.js → p-2b90e0bf.system.entry.js} +1 -1
  303. package/lib/duet/{p-994fd476.entry.js → p-2f8baf13.entry.js} +1 -1
  304. package/lib/duet/{p-a1d40591.entry.js → p-2f8ff010.entry.js} +1 -1
  305. package/lib/duet/{p-bd3fd83f.system.entry.js → p-31f51b63.system.entry.js} +1 -1
  306. package/lib/duet/{p-05dc550e.entry.js → p-3351f110.entry.js} +1 -1
  307. package/lib/duet/{p-3c2ae0d5.js → p-33620d03.js} +1 -1
  308. package/lib/duet/{p-cc6b57eb.entry.js → p-3493bd62.entry.js} +1 -1
  309. package/lib/duet/{p-262f4bf7.system.entry.js → p-361a40a6.system.entry.js} +1 -1
  310. package/lib/duet/{p-57fbcba7.entry.js → p-399ae33f.entry.js} +1 -1
  311. package/lib/duet/{p-5e96a337.system.entry.js → p-3a48878a.system.entry.js} +1 -1
  312. package/lib/duet/{p-dae9d8eb.entry.js → p-3addfa0b.entry.js} +1 -1
  313. package/lib/duet/{p-c4917f80.system.entry.js → p-3bd38a60.system.entry.js} +1 -1
  314. package/lib/duet/{p-475d6e82.entry.js → p-3bdaca53.entry.js} +1 -1
  315. package/lib/duet/{p-e380af5d.system.entry.js → p-3bf13db2.system.entry.js} +1 -1
  316. package/lib/duet/{p-ef2eb6d8.entry.js → p-3ddc61bc.entry.js} +1 -1
  317. package/lib/duet/p-3e3f76cc.entry.js +4 -0
  318. package/lib/duet/{p-b5ea61f3.entry.js → p-407bc2e8.entry.js} +1 -1
  319. package/lib/duet/{p-6753d3e9.entry.js → p-4525bb7b.entry.js} +1 -1
  320. package/lib/duet/p-45d92a24.system.js +4 -0
  321. package/lib/duet/{p-e6ebe252.system.entry.js → p-46ae0197.system.entry.js} +1 -1
  322. package/lib/duet/{p-a77b749b.system.entry.js → p-4908aa39.system.entry.js} +1 -1
  323. package/lib/duet/{p-00cf42c2.system.js → p-491006e1.system.js} +1 -1
  324. package/lib/duet/{p-9915e4e4.system.entry.js → p-494e7691.system.entry.js} +1 -1
  325. package/lib/duet/{p-07bea2fe.system.entry.js → p-49e39bc1.system.entry.js} +1 -1
  326. package/lib/duet/p-4b3bef47.entry.js +4 -0
  327. package/lib/duet/{p-c674c251.system.entry.js → p-4b57b898.system.entry.js} +1 -1
  328. package/lib/duet/{p-37fb65e4.entry.js → p-4d272de8.entry.js} +1 -1
  329. package/lib/duet/{p-aec52fd0.system.entry.js → p-4ee4938c.system.entry.js} +1 -1
  330. package/lib/duet/{p-de07a6c7.system.entry.js → p-4f99c879.system.entry.js} +1 -1
  331. package/lib/duet/{p-3b651d8c.entry.js → p-5003f2f7.entry.js} +1 -1
  332. package/lib/duet/p-501d76ac.system.entry.js +4 -0
  333. package/lib/duet/{p-c3c627fe.entry.js → p-51ea8a1e.entry.js} +1 -1
  334. package/lib/duet/{p-66dfe352.entry.js → p-56e8e51e.entry.js} +1 -1
  335. package/lib/duet/{p-df3c0a26.system.entry.js → p-5700d7df.system.entry.js} +1 -1
  336. package/lib/duet/{p-d7cb8511.system.entry.js → p-5726b0c6.system.entry.js} +1 -1
  337. package/lib/duet/{p-5aa537c3.system.entry.js → p-57c81cdf.system.entry.js} +1 -1
  338. package/lib/duet/{p-fc25294f.entry.js → p-58d191e0.entry.js} +1 -1
  339. package/lib/duet/{p-2dd573a3.system.entry.js → p-5bb44d21.system.entry.js} +1 -1
  340. package/lib/duet/{p-99cc8fb5.entry.js → p-5be89661.entry.js} +1 -1
  341. package/lib/duet/{p-1dc34d52.entry.js → p-5c682b2c.entry.js} +1 -1
  342. package/lib/duet/{p-892dab61.system.entry.js → p-5d06caee.system.entry.js} +1 -1
  343. package/lib/duet/{p-e8bef1aa.entry.js → p-5d1f9c44.entry.js} +1 -1
  344. package/lib/duet/{p-e500eae6.system.entry.js → p-61c551d2.system.entry.js} +1 -1
  345. package/lib/duet/{p-6049c423.system.entry.js → p-63330f08.system.entry.js} +1 -1
  346. package/lib/duet/{p-5b27a74d.system.entry.js → p-63566970.system.entry.js} +1 -1
  347. package/lib/duet/p-63c149ab.js +4 -0
  348. package/lib/duet/{p-a8ea10a9.system.entry.js → p-66ab3c0e.system.entry.js} +1 -1
  349. package/lib/duet/{p-3d94b518.system.entry.js → p-6c1482e6.system.entry.js} +1 -1
  350. package/lib/duet/{p-e7ddaaf0.entry.js → p-715db5f9.entry.js} +1 -1
  351. package/lib/duet/{p-277d9e45.system.js → p-71a46879.system.js} +1 -1
  352. package/lib/duet/{p-a829f5f4.entry.js → p-720ffaf8.entry.js} +1 -1
  353. package/lib/duet/{p-19babdcf.entry.js → p-74bee1d0.entry.js} +1 -1
  354. package/lib/duet/{p-dd6874b5.entry.js → p-7709b117.entry.js} +1 -1
  355. package/lib/duet/{p-107887be.entry.js → p-7a3c5568.entry.js} +1 -1
  356. package/lib/duet/{p-807acf6d.system.entry.js → p-7d1b0468.system.entry.js} +1 -1
  357. package/lib/duet/{p-b6e0c13e.entry.js → p-7d5e5659.entry.js} +1 -1
  358. package/lib/duet/{p-f08bc317.entry.js → p-7e43823e.entry.js} +1 -1
  359. package/lib/duet/{p-00ff74e5.system.entry.js → p-8894b5f8.system.entry.js} +1 -1
  360. package/lib/duet/p-892b0784.system.js +5 -0
  361. package/lib/duet/p-8ace7a8f.entry.js +4 -0
  362. package/lib/duet/{p-6ecf1c48.entry.js → p-8adadd0e.entry.js} +1 -1
  363. package/lib/duet/p-8adb9463.js +4 -0
  364. package/lib/duet/{p-2d1e8451.system.entry.js → p-8aee7f16.system.entry.js} +1 -1
  365. package/lib/duet/{p-7431d1f1.system.entry.js → p-8b01d5ae.system.entry.js} +1 -1
  366. package/lib/duet/p-8be782cb.system.entry.js +4 -0
  367. package/lib/duet/{p-6999dcca.system.entry.js → p-8bfe774e.system.entry.js} +1 -1
  368. package/lib/duet/{p-10695d55.system.js → p-8c6e3c4f.system.js} +1 -1
  369. package/lib/duet/{p-1a5b2354.system.entry.js → p-8e64876c.system.entry.js} +1 -1
  370. package/lib/duet/p-90b90630.system.entry.js +4 -0
  371. package/lib/duet/p-90d5fb9a.entry.js +4 -0
  372. package/lib/duet/{p-72e1da72.system.entry.js → p-9116810a.system.entry.js} +1 -1
  373. package/lib/duet/{p-e232c9a6.entry.js → p-91e92ff0.entry.js} +1 -1
  374. package/lib/duet/{p-1f2686b7.system.entry.js → p-92a26eb7.system.entry.js} +1 -1
  375. package/lib/duet/{p-a11c326b.entry.js → p-939bceb1.entry.js} +1 -1
  376. package/lib/duet/{p-a6b44386.system.entry.js → p-968c8724.system.entry.js} +1 -1
  377. package/lib/duet/{p-2f3e999c.system.entry.js → p-9837720e.system.entry.js} +1 -1
  378. package/lib/duet/{p-164aa67a.entry.js → p-99a6c65d.entry.js} +1 -1
  379. package/lib/duet/{p-9793321f.system.entry.js → p-9a9f4f83.system.entry.js} +1 -1
  380. package/lib/duet/{p-60b48a3d.entry.js → p-9ad54264.entry.js} +1 -1
  381. package/lib/duet/{p-3f96bb94.entry.js → p-9bad6410.entry.js} +1 -1
  382. package/lib/duet/{p-f601fb92.entry.js → p-9ef41dff.entry.js} +1 -1
  383. package/lib/duet/{p-9364781c.system.entry.js → p-a04538da.system.entry.js} +2 -2
  384. package/lib/duet/{p-b482b06d.system.entry.js → p-a4dc39b7.system.entry.js} +1 -1
  385. package/lib/duet/{p-2a49661d.entry.js → p-a61f629f.entry.js} +1 -1
  386. package/lib/duet/p-a659351d.system.js +4 -0
  387. package/lib/duet/{p-ac93ef4d.entry.js → p-a6a78989.entry.js} +1 -1
  388. package/lib/duet/{p-75f7a572.js → p-a76ceaf6.js} +1 -1
  389. package/lib/duet/{p-78207603.entry.js → p-acfd55b1.entry.js} +1 -1
  390. package/lib/duet/{p-2f35384b.entry.js → p-afd647b4.entry.js} +1 -1
  391. package/lib/duet/{p-6586bc19.entry.js → p-b150413c.entry.js} +1 -1
  392. package/lib/duet/{p-5ccd0a8a.system.entry.js → p-b4548652.system.entry.js} +1 -1
  393. package/lib/duet/{p-88b565dc.system.entry.js → p-b50fe6a3.system.entry.js} +1 -1
  394. package/lib/duet/p-b63e9d32.system.entry.js +4 -0
  395. package/lib/duet/p-b63fdf97.entry.js +4 -0
  396. package/lib/duet/{p-c84acb8f.entry.js → p-b70632f4.entry.js} +1 -1
  397. package/lib/duet/{p-d202fbd4.system.entry.js → p-b8f45b9b.system.entry.js} +1 -1
  398. package/lib/duet/{p-ab7d36e8.system.entry.js → p-ba8d654e.system.entry.js} +1 -1
  399. package/lib/duet/{p-1507d44f.entry.js → p-c047dce3.entry.js} +1 -1
  400. package/lib/duet/{p-2d4c9a5b.system.entry.js → p-c06dd7ff.system.entry.js} +1 -1
  401. package/lib/duet/{p-3ba5bafd.system.entry.js → p-c1aa415d.system.entry.js} +1 -1
  402. package/lib/duet/p-c6265d54.system.entry.js +4 -0
  403. package/lib/duet/{p-11c031c1.system.entry.js → p-c7f078b4.system.entry.js} +1 -1
  404. package/lib/duet/{p-18607658.entry.js → p-ca587193.entry.js} +1 -1
  405. package/lib/duet/{p-66604d21.system.entry.js → p-cc2c3bda.system.entry.js} +1 -1
  406. package/lib/duet/{p-aa6a1a0e.system.entry.js → p-ccbd26f8.system.entry.js} +1 -1
  407. package/lib/duet/{p-7b8bd6ae.system.entry.js → p-cd494ec0.system.entry.js} +1 -1
  408. package/lib/duet/{p-a9997645.entry.js → p-d0517764.entry.js} +1 -1
  409. package/lib/duet/{p-b4b2f99a.entry.js → p-d1ada824.entry.js} +1 -1
  410. package/lib/duet/{p-94ecf766.system.entry.js → p-d23f5574.system.entry.js} +1 -1
  411. package/lib/duet/{p-14fc2fba.entry.js → p-d38f4401.entry.js} +1 -1
  412. package/lib/duet/{p-eb3a72fc.system.entry.js → p-d5a72abd.system.entry.js} +1 -1
  413. package/lib/duet/{p-375a323f.system.entry.js → p-d976e355.system.entry.js} +1 -1
  414. package/lib/duet/p-dafb7efd.js +5 -0
  415. package/lib/duet/{p-a9a34171.system.entry.js → p-dc00285e.system.entry.js} +1 -1
  416. package/lib/duet/{p-ab26e29d.entry.js → p-ddec1906.entry.js} +1 -1
  417. package/lib/duet/{p-cfea40ab.system.entry.js → p-dfecd542.system.entry.js} +1 -1
  418. package/lib/duet/{p-a93132ea.entry.js → p-e1a2ad9b.entry.js} +1 -1
  419. package/lib/duet/{p-2b1d7c14.entry.js → p-e26224c8.entry.js} +1 -1
  420. package/lib/duet/{p-a6307cb3.entry.js → p-e2674cbd.entry.js} +1 -1
  421. package/lib/duet/{p-489c0d61.entry.js → p-e464c127.entry.js} +1 -1
  422. package/lib/duet/{p-2a6ca4ea.system.entry.js → p-e62bcf02.system.entry.js} +1 -1
  423. package/lib/duet/{p-9355b478.system.entry.js → p-e73904ab.system.entry.js} +1 -1
  424. package/lib/duet/{p-8459e611.entry.js → p-e775f206.entry.js} +1 -1
  425. package/lib/duet/{p-7de54682.entry.js → p-e8496052.entry.js} +1 -1
  426. package/lib/duet/p-e8e50fdb.entry.js +4 -0
  427. package/lib/duet/{p-dee965b3.system.entry.js → p-ecfdc7d9.system.entry.js} +1 -1
  428. package/lib/duet/p-edddef22.entry.js +4 -0
  429. package/lib/duet/{p-6a640a77.system.entry.js → p-ee2dc527.system.entry.js} +1 -1
  430. package/lib/duet/{p-86c132c9.entry.js → p-ee3d6a73.entry.js} +1 -1
  431. package/lib/duet/{p-9fbdd8b6.entry.js → p-ef194759.entry.js} +1 -1
  432. package/lib/duet/{p-747807c9.system.entry.js → p-f06b4b03.system.entry.js} +1 -1
  433. package/lib/duet/{p-3fcc6db9.entry.js → p-f29123b4.entry.js} +1 -1
  434. package/lib/duet/{p-e3b90925.system.js → p-f36c856d.system.js} +1 -1
  435. package/lib/duet/{p-197496f4.system.entry.js → p-f36ee41c.system.entry.js} +1 -1
  436. package/lib/duet/p-fa56fe59.entry.js +4 -0
  437. package/lib/duet/{p-e91ebfb3.system.entry.js → p-fa7cdc28.system.entry.js} +1 -1
  438. package/lib/duet/{p-8ac9042e.system.entry.js → p-fc3275ba.system.entry.js} +1 -1
  439. package/lib/duet/p-fd4785ab.js +4 -0
  440. package/lib/duet/{p-1274aa0f.system.entry.js → p-fd54a219.system.entry.js} +1 -1
  441. package/lib/duet/{p-3d8f8731.entry.js → p-fe4cd626.entry.js} +1 -1
  442. package/lib/esm/duet-action-button.entry.js +3 -3
  443. package/lib/esm/duet-alert.entry.js +14 -2
  444. package/lib/esm/duet-badge.entry.js +1 -1
  445. package/lib/esm/duet-banner.entry.js +3 -3
  446. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  447. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  448. package/lib/esm/duet-button_2.entry.js +3 -3
  449. package/lib/esm/duet-callout.entry.js +1 -1
  450. package/lib/esm/duet-caption_4.entry.js +3 -3
  451. package/lib/esm/duet-card.entry.js +3 -3
  452. package/lib/esm/duet-checkbox.entry.js +1 -1
  453. package/lib/esm/duet-checkmark.entry.js +1 -1
  454. package/lib/esm/duet-chip.entry.js +1 -1
  455. package/lib/esm/duet-choice_2.entry.js +2 -2
  456. package/lib/esm/duet-collapsible.entry.js +1 -1
  457. package/lib/esm/duet-combobox.entry.js +1 -1
  458. package/lib/esm/duet-contact-card.entry.js +1 -1
  459. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  460. package/lib/esm/duet-date-picker.entry.js +2 -2
  461. package/lib/esm/duet-divider_2.entry.js +3 -3
  462. package/lib/esm/duet-editable-table_3.entry.js +25 -19
  463. package/lib/esm/duet-empty-state.entry.js +1 -1
  464. package/lib/esm/duet-fieldset.entry.js +3 -2
  465. package/lib/esm/duet-footer.entry.js +1 -1
  466. package/lib/esm/duet-grid_2.entry.js +1 -1
  467. package/lib/esm/duet-header_2.entry.js +14 -9
  468. package/lib/esm/duet-hero.entry.js +1 -1
  469. package/lib/esm/duet-icon.entry.js +3 -3
  470. package/lib/esm/duet-input_2.entry.js +1 -1
  471. package/lib/esm/duet-layout.entry.js +1 -1
  472. package/lib/esm/duet-list_2.entry.js +1 -1
  473. package/lib/esm/duet-menu-bar-button.entry.js +1 -1
  474. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
  475. package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
  476. package/lib/esm/duet-menu-bar-link.entry.js +1 -1
  477. package/lib/esm/duet-menu-bar.entry.js +1 -1
  478. package/lib/esm/duet-modal.entry.js +6 -2
  479. package/lib/esm/duet-multiselect.entry.js +1 -1
  480. package/lib/esm/duet-nav.entry.js +1 -1
  481. package/lib/esm/duet-notification_2.entry.js +1 -1
  482. package/lib/esm/duet-number-input.entry.js +4 -1
  483. package/lib/esm/duet-page-heading.entry.js +1 -1
  484. package/lib/esm/duet-pagination_2.entry.js +1 -1
  485. package/lib/esm/duet-popup-menu-item.entry.js +1 -1
  486. package/lib/esm/duet-popup-menu.entry.js +3 -3
  487. package/lib/esm/duet-progress.entry.js +1 -1
  488. package/lib/esm/duet-promo-card.entry.js +3 -3
  489. package/lib/esm/duet-radio_2.entry.js +1 -1
  490. package/lib/esm/duet-range-slider.entry.js +2 -2
  491. package/lib/esm/duet-scrollable_3.entry.js +1 -1
  492. package/lib/esm/duet-section-layout.entry.js +1 -1
  493. package/lib/esm/duet-select.entry.js +1 -1
  494. package/lib/esm/duet-shaped-image.entry.js +1 -1
  495. package/lib/esm/duet-show-more.entry.js +1 -1
  496. package/lib/esm/duet-slideout-lang.entry.js +1 -1
  497. package/lib/esm/duet-slideout-link.entry.js +1 -1
  498. package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
  499. package/lib/esm/duet-slideout-panel.entry.js +4 -4
  500. package/lib/esm/duet-slideout.entry.js +4 -4
  501. package/lib/esm/duet-step_2.entry.js +1 -1
  502. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
  503. package/lib/esm/duet-submenu-bar-dropdown.entry.js +1 -1
  504. package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
  505. package/lib/esm/duet-submenu-bar.entry.js +1 -1
  506. package/lib/esm/duet-textarea.entry.js +1 -1
  507. package/lib/esm/duet-toggle.entry.js +1 -1
  508. package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
  509. package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
  510. package/lib/esm/duet-toolbar-link.entry.js +1 -1
  511. package/lib/esm/duet-toolbar.entry.js +1 -1
  512. package/lib/esm/duet-tooltip-button_2.entry.js +2 -2
  513. package/lib/esm/duet-tooltip.entry.js +3 -3
  514. package/lib/esm/duet-tray.entry.js +2 -2
  515. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  516. package/lib/esm/duet-upload-item.entry.js +5 -4
  517. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  518. package/lib/esm/duet.js +3 -3
  519. package/lib/esm/{teleport-542f423e.js → floating-ui.dom.esm-6025c98f.js} +155 -195
  520. package/lib/esm/{focus-utils-8008bc82.js → focus-utils-8a8cfffd.js} +1 -1
  521. package/lib/esm/{index-79528b07.js → index-d48e2c74.js} +1 -1
  522. package/lib/esm/loader.js +3 -3
  523. package/lib/esm/teleport-4ede216d.js +86 -0
  524. package/lib/esm/{token-utils-058d6220.js → token-utils-a1dcaa4b.js} +1 -1
  525. package/lib/esm/{tokens.module-f436c2cd.js → tokens.module-ed773027.js} +1 -1
  526. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  527. package/lib/esm-es5/duet-alert.entry.js +2 -2
  528. package/lib/esm-es5/duet-badge.entry.js +1 -1
  529. package/lib/esm-es5/duet-banner.entry.js +1 -1
  530. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  531. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  532. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  533. package/lib/esm-es5/duet-callout.entry.js +1 -1
  534. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  535. package/lib/esm-es5/duet-card.entry.js +1 -1
  536. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  537. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  538. package/lib/esm-es5/duet-chip.entry.js +1 -1
  539. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  540. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  541. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  542. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  543. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  544. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  545. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  546. package/lib/esm-es5/duet-editable-table_3.entry.js +2 -2
  547. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  548. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  549. package/lib/esm-es5/duet-footer.entry.js +1 -1
  550. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  551. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  552. package/lib/esm-es5/duet-hero.entry.js +1 -1
  553. package/lib/esm-es5/duet-icon.entry.js +1 -1
  554. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  555. package/lib/esm-es5/duet-layout.entry.js +1 -1
  556. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  557. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  558. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  559. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  560. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  561. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  562. package/lib/esm-es5/duet-modal.entry.js +1 -1
  563. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  564. package/lib/esm-es5/duet-nav.entry.js +1 -1
  565. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  566. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  567. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  568. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  569. package/lib/esm-es5/duet-popup-menu-item.entry.js +1 -1
  570. package/lib/esm-es5/duet-popup-menu.entry.js +1 -1
  571. package/lib/esm-es5/duet-progress.entry.js +1 -1
  572. package/lib/esm-es5/duet-promo-card.entry.js +1 -1
  573. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  574. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  575. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  576. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  577. package/lib/esm-es5/duet-select.entry.js +1 -1
  578. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  579. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  580. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  581. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  582. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  583. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  584. package/lib/esm-es5/duet-slideout.entry.js +2 -2
  585. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  586. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  587. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  588. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  589. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  590. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  591. package/lib/esm-es5/duet-toggle.entry.js +2 -2
  592. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  593. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  594. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  595. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  596. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  597. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  598. package/lib/esm-es5/duet-tray.entry.js +1 -1
  599. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  600. package/lib/esm-es5/duet-upload-item.entry.js +1 -1
  601. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  602. package/lib/esm-es5/duet.js +1 -1
  603. package/lib/esm-es5/floating-ui.dom.esm-6025c98f.js +4 -0
  604. package/lib/esm-es5/focus-utils-8a8cfffd.js +4 -0
  605. package/lib/esm-es5/index-d48e2c74.js +5 -0
  606. package/lib/esm-es5/loader.js +1 -1
  607. package/lib/esm-es5/teleport-4ede216d.js +4 -0
  608. package/lib/esm-es5/{token-utils-058d6220.js → token-utils-a1dcaa4b.js} +1 -1
  609. package/lib/esm-es5/{tokens.module-f436c2cd.js → tokens.module-ed773027.js} +1 -1
  610. package/lib/types/components/duet-alert/duet-alert.d.ts +12 -0
  611. package/lib/types/components/duet-fieldset/duet-fieldset.d.ts +6 -1
  612. package/lib/types/components/duet-header/duet-header.d.ts +3 -0
  613. package/lib/types/components/duet-modal/duet-modal.d.ts +1 -0
  614. package/lib/types/components/duet-upload/duet-upload.d.ts +20 -16
  615. package/lib/types/components.d.ts +32 -4
  616. package/lib/types/utils/teleport.d.ts +14 -2
  617. package/package.json +5 -5
  618. package/lib/duet/p-042b1636.entry.js +0 -4
  619. package/lib/duet/p-0e6350bf.system.entry.js +0 -4
  620. package/lib/duet/p-1002e2ae.system.entry.js +0 -4
  621. package/lib/duet/p-247f5600.entry.js +0 -4
  622. package/lib/duet/p-27530b53.js +0 -5
  623. package/lib/duet/p-30218ca6.system.entry.js +0 -4
  624. package/lib/duet/p-3ca2dafc.entry.js +0 -4
  625. package/lib/duet/p-4c063f5f.entry.js +0 -4
  626. package/lib/duet/p-7649b95e.js +0 -4
  627. package/lib/duet/p-7a0c7e22.system.entry.js +0 -4
  628. package/lib/duet/p-8c7ae2a9.system.js +0 -4
  629. package/lib/duet/p-8f416ae3.entry.js +0 -4
  630. package/lib/duet/p-949c4fd0.entry.js +0 -4
  631. package/lib/duet/p-be192c5b.js +0 -4
  632. package/lib/duet/p-be52bfd0.system.entry.js +0 -4
  633. package/lib/duet/p-be567ab1.entry.js +0 -4
  634. package/lib/duet/p-d86d90f2.entry.js +0 -4
  635. package/lib/duet/p-e15bdc0f.entry.js +0 -4
  636. package/lib/duet/p-ea8d7c61.system.js +0 -5
  637. package/lib/duet/p-f1d9862a.entry.js +0 -4
  638. package/lib/esm-es5/focus-utils-8008bc82.js +0 -4
  639. package/lib/esm-es5/index-79528b07.js +0 -5
  640. package/lib/esm-es5/teleport-542f423e.js +0 -4
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,a,r){function i(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,d){function n(e){try{s(r.next(e))}catch(e){d(e)}}function o(e){try{s(r["throw"](e))}catch(e){d(e)}}function s(e){e.done?a(e.value):i(e.value).then(n,o)}s((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},r,i,d,n;return n={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(e){return function(t){return s([e,t])}}function s(o){if(r)throw new TypeError("Generator is already executing.");while(n&&(n=0,o[0]&&(a=0)),a)try{if(r=1,i&&(d=o[0]&2?i["return"]:o[0]?i["throw"]||((d=i["return"])&&d.call(i),0):i.next)&&!(d=d.call(i,o[1])).done)return d;if(i=0,d)o=[o[0]&2,d.value];switch(o[0]){case 0:case 1:d=o;break;case 4:a.label++;return{value:o[1],done:false};case 5:a.label++;i=o[1];o=[0];continue;case 7:o=a.ops.pop();a.trys.pop();continue;default:if(!(d=a.trys,d=d.length>0&&d[d.length-1])&&(o[0]===6||o[0]===2)){a=0;continue}if(o[0]===3&&(!d||o[1]>d[0]&&o[1]<d[3])){a.label=o[1];break}if(o[0]===6&&a.label<d[1]){a.label=d[1];d=o;break}if(d&&a.label<d[2]){a.label=d[2];a.ops.push(o);break}if(d[2])a.ops.pop();a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e];i=0}finally{r=d=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,a){if(a||arguments.length===2)for(var r=0,i=t.length,d;r<i;r++){if(d||!(r in t)){if(!d)d=Array.prototype.slice.call(t,0,r);d[r]=t[r]}}return e.concat(d||Array.prototype.slice.call(t))};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register(["./p-ea8d7c61.system.js","./p-8f477bd6.system.js","./p-45e609b1.system.js","./p-d863e150.system.js","./p-c7ae95bd.system.js","./p-33b3aba4.system.js","./p-51721695.system.js","./p-c8dc599d.system.js","./p-b6d51921.system.js","./p-0c4bbd65.system.js","./p-10695d55.system.js","./p-5f6bd5db.system.js"],(function(e){"use strict";var t,a,r,i,d,n,o,s,l,u,h,c,p,g,m,v,b,f,w,x,k,y,S,C,L,M,z,I,O,E;return{setters:[function(e){t=e.h;a=e.r;r=e.c;i=e.B;d=e.H;n=e.F;o=e.g},function(e){s=e.f},function(e){l=e.a},function(e){u=e.d;h=e.e},function(e){c=e.D},function(e){p=e.i},function(e){g=e.f;m=e.g;v=e.d;b=e.b;f=e.a;w=e.c},function(e){x=e.g;k=e.a;y=e.c;S=e.d},function(e){C=e.p},function(e){L=e.a},function(e){M=e.n;z=e.o;I=e.i;O=e.k},function(e){E=e.c}],execute:function(){var A={title:"navigation-contact-dropdown",tags:"navigation contact dropdown speech bubbles",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M20.247 24a.743.743 0 0 1-.53-.22l-4.28-4.28h-.439c-3.308 0-6-2.692-6-6s2.692-6 6-6h3c3.309.001 6 2.692 6 6a5.974 5.974 0 0 1-3 5.179v4.571a.75.75 0 0 1-.751.75zm-5.25-15c-2.481 0-4.5 2.019-4.5 4.5s2.019 4.5 4.5 4.5h.75c.198 0 .391.08.53.22l3.22 3.22v-3.213c0-.289.169-.555.429-.678a4.51 4.51 0 0 0 2.571-4.049 4.504 4.504 0 0 0-4.498-4.499h-3.002z"/><path d="M3.747 16.5a.747.747 0 0 1-.75-.75v-4.57a5.967 5.967 0 0 1-2.65-3.171A5.948 5.948 0 0 1 .57 3.431 6.014 6.014 0 0 1 5.985 0h3.012a6.04 6.04 0 0 1 5.752 4.286.751.751 0 0 1-.718.964.755.755 0 0 1-.719-.536A4.531 4.531 0 0 0 8.997 1.5h-3a4.511 4.511 0 0 0-4.071 2.572c-.512 1.084-.571 2.302-.167 3.431s1.224 2.032 2.308 2.545c.261.123.43.39.43.678v3.214l1.72-1.72a.744.744 0 0 1 1.06 0 .752.752 0 0 1 0 1.061l-3 3a.744.744 0 0 1-.53.219z"/></svg>'};var _={title:"navigation-language",tags:"navigation language earth world map",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M11.996 24c-2.732 0-5.309-.901-7.453-2.605l-.017-.012-.031-.025a12.68 12.68 0 0 1-.238-.196c-.071-.06-.142-.122-.213-.184l-.143-.126c-.13-.118-.257-.24-.381-.363l-.018-.018a11.904 11.904 0 0 1-3.445-9.695l.001-.007c.018-.174.041-.348.067-.523l.019-.125c.028-.174.058-.348.093-.521l.003-.013C1.379 4.031 6.321 0 11.996 0c6.617 0 12 5.383 12 12 0 1.083-.148 2.164-.44 3.214l-.009.032a12.172 12.172 0 0 1-.671 1.809s-.072.155-.1.212a11.896 11.896 0 0 1-.189.368A11.987 11.987 0 0 1 11.996 24zm-6.181-3.519a10.388 10.388 0 0 0 6.181 2.019c3.471 0 6.642-1.669 8.611-4.497h-.59a2.244 2.244 0 0 1-2.22-1.879L17.111 12h-.944a2.252 2.252 0 0 1-2.182-2.796l.75-3A2.245 2.245 0 0 1 16.917 4.5h2.416A10.49 10.49 0 0 0 1.934 9h4.391c1.034 0 1.932.701 2.183 1.704l.75 3a2.235 2.235 0 0 1-.592 2.137c-.425.425-.99.659-1.591.659h-.464zm-4.248-9.687-.015.116a9.092 9.092 0 0 0-.053.96l-.002.17c.001.145.005.29.011.435l.006.127c.009.154.02.308.035.461l.005.041c.071.68.209 1.354.411 2.003l.009.028a10.457 10.457 0 0 0 2.537 4.222l.75-3.751A.75.75 0 0 1 5.996 15h1.079a.75.75 0 0 0 .728-.932l-.75-3a.751.751 0 0 0-.729-.568H1.606l-.039.294zM16.917 6a.75.75 0 0 0-.728.568l-.75 3a.752.752 0 0 0 .728.932h1.579c.368 0 .679.264.74.627l.791 4.75a.748.748 0 0 0 .74.626h1.461c.171-.358.321-.727.449-1.1l.021-.062A10.486 10.486 0 0 0 20.598 6z"/></svg>'};var B={title:"navigation-login",tags:"navigation login sign in lock locked key",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M5.25 24A2.252 2.252 0 0 1 3 21.75v-10.5A2.252 2.252 0 0 1 5.25 9H6V6c0-3.308 2.692-6 6-6s6 2.692 6 6v3h.75A2.252 2.252 0 0 1 21 11.25v10.5A2.252 2.252 0 0 1 18.75 24zm0-13.5a.75.75 0 0 0-.75.75v10.5c0 .414.336.75.75.75h13.5a.75.75 0 0 0 .75-.75v-10.5a.75.75 0 0 0-.75-.75zM16.5 9V6c0-2.481-2.019-4.5-4.5-4.5S7.5 3.519 7.5 6v3z"/><path d="M12 17.25c-.62 0-1.125-.505-1.125-1.125a1.127 1.127 0 0 1 1.923-.794A1.126 1.126 0 0 1 12 17.25z"/></svg>'};var D={title:"navigation-logout",tags:"navigation logout sign out lock unlocked key",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M8.25 24A2.252 2.252 0 0 1 6 21.75v-10.5A2.252 2.252 0 0 1 8.25 9h2.25V6c0-2.481-2.019-4.5-4.5-4.5S1.5 3.519 1.5 6v3.75a.75.75 0 0 1-1.5 0V6c0-3.308 2.692-6 6-6s6 2.692 6 6v3h9.75A2.252 2.252 0 0 1 24 11.25v10.5A2.252 2.252 0 0 1 21.75 24zm0-13.5a.75.75 0 0 0-.75.75v10.5c0 .414.336.75.75.75h13.5a.75.75 0 0 0 .75-.75v-10.5a.75.75 0 0 0-.75-.75z"/><path d="M15 17.25c-.62 0-1.125-.505-1.125-1.125a1.127 1.127 0 0 1 1.923-.794A1.126 1.126 0 0 1 15 17.25z"/></svg>'};var V={title:"navigation-user",tags:"navigation user human person head circle",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M12 15.75c-3.308 0-6-2.692-6-6s2.692-6 6-6 6 2.692 6 6-2.692 6-6 6zm0-10.5c-2.481 0-4.5 2.019-4.5 4.5s2.019 4.5 4.5 4.5 4.5-2.019 4.5-4.5-2.019-4.5-4.5-4.5z"/><path d="M12 24c-2.677 0-5.211-.868-7.332-2.51a.507.507 0 0 1-.126-.099C1.655 19.094 0 15.674 0 12 0 5.383 5.383 0 12 0s12 5.383 12 12c0 3.674-1.655 7.094-4.543 9.391l-.015.016c-.043.043-.087.069-.112.084A11.868 11.868 0 0 1 12 24zm-5.716-3.199A10.408 10.408 0 0 0 12 22.5a10.41 10.41 0 0 0 5.717-1.699 8.966 8.966 0 0 0-5.716-2.045 8.965 8.965 0 0 0-5.717 2.045zM12 1.5C6.21 1.5 1.5 6.21 1.5 12c0 3.023 1.294 5.875 3.562 7.874A10.449 10.449 0 0 1 12 17.257c2.573 0 5.023.927 6.938 2.616 2.268-2 3.562-4.851 3.562-7.874C22.5 6.21 17.79 1.5 12 1.5z"/></svg>'};var j=function(e,a){var r=e.iconSize?e.iconSize:"x-small";return t("span",{class:"duet-header-icon ".concat(e.class?e.class:"")},t("duet-icon",{margin:"none",size:r,icon:e.icon,color:"currentColor"}))};var U=function(e,a){var r,i,d;var n=e.accessibleText?e.accessibleText:e.label;return t("div",{class:(r={},r["duet-header-dropdown"]=true,r[e.className]=!!e.className,r)},t("button",{ref:e.toggleRef,"aria-haspopup":"listbox","aria-controls":e.id,"aria-expanded":e.isOpen?"true":"false","aria-labelledby":"".concat(e.id,"-accessible-label"),id:"".concat(e.id,"-button"),type:"button",class:(i={},i[e.id]=true,i["duet-header-dropdown-toggle"]=true,i["duet-header-button"]=true,i.active=e.active,i.open=e.isOpen,i),onClick:e.onToggle},e.icon&&t(j,{icon:e.icon}),t("span",{"aria-hidden":"true",id:"".concat(e.id,"-label"),class:"duet-header-dropdown-label"},e.label),e.badge&&t("div",{class:"duet-header-badge"}),t("div",{class:"duet-header-caret","aria-hidden":"true"},t("duet-icon",{margin:"none",size:"auto",icon:L.svg,color:"currentColor"})),t("duet-visually-hidden",{id:"".concat(e.id,"-accessible-label")},n)),t("div",{ref:e.itemsRef,tabindex:"-1",role:"menu",id:e.id,"aria-labelledby":"".concat(e.id,"-button"),class:(d={"duet-header-dropdown-content":true},d["".concat(e.id,"-items")]=true,d.active=e.isOpen,d)},a))};var R=function(){return t("div",{class:"duet-header-hamburger"},t("span",{class:"duet-header-bar"}),t("span",{class:"duet-header-bar"}),t("span",{class:"duet-header-bar"}),t("span",{class:"duet-header-bar"}))};var T='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}@supports (position: -webkit-sticky){:host{position:-webkit-sticky;top:-4rem;z-index:400}}@supports (position: sticky){:host{position:sticky;top:-4rem;z-index:400}}@supports (position: -webkit-sticky){:host(.duet-header-multi-level-variation){top:0}}@supports (position: sticky){:host(.duet-header-multi-level-variation){top:0}}.duet-header-reserved-space{height:4rem}@media (min-width: 62em){.duet-header-reserved-space.duet-with-links{height:7rem}}.duet-header{-webkit-user-select:none;user-select:none;position:fixed;top:0;left:0;z-index:400;display:block;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.5;color:rgb(0, 41, 77);text-align:left}.duet-header.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}@media (min-width: 62em){.duet-header.duet-theme-turva{box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13)}}@media (min-width: 62em){.duet-header{position:absolute;box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07)}.duet-header.duet-header-inactive{position:fixed}}.duet-header *{-webkit-tap-highlight-color:rgba(0, 0, 0, 0)}.duet-header-top{position:relative;z-index:200;display:flex;flex-direction:row;align-items:center;width:100%;height:4rem;padding:0 16px;background:rgb(255, 255, 255);border-bottom:1px solid rgb(225, 227, 230);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07)}@media (min-width: 62em){.duet-header-top{z-index:100;padding:0 28px;box-shadow:none}.duet-header-top duet-logo{padding-right:4px}}@media (min-width: 106.25em){.duet-header-top{padding:0 48px}}.duet-theme-turva .duet-header-top{border-color:rgb(228, 228, 230);box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13)}@media (min-width: 62em){.duet-theme-turva .duet-header-top{box-shadow:none}}.duet-theme-turva .duet-header-top duet-logo{left:-80px !important;margin-top:-8px !important}.duet-header-top .duet-header-region{max-width:200px;padding-left:16px;margin-top:1px;margin-right:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-left:1px solid rgb(207, 210, 212)}.duet-theme-turva .duet-header-top .duet-header-region{border-color:rgb(207, 207, 209)}@media (max-width: 35.9375em){.duet-header-top .duet-header-region{display:none}}@media (min-width: 62em){.duet-header-top .duet-header-region{padding-left:19px}}.duet-header-bottom{position:fixed;top:4rem;bottom:0;left:0;z-index:100;display:flex;flex-direction:column;width:100%;overflow-y:auto;visibility:hidden;background:rgb(243, 249, 252);opacity:0;-webkit-overflow-scrolling:touch}.duet-theme-turva .duet-header-bottom{background:rgb(245, 245, 247)}@media (min-width: 62em){.duet-header-bottom{position:relative;top:auto;bottom:auto;z-index:200;flex-direction:row;overflow:visible;visibility:visible;background:rgb(255, 255, 255);opacity:1}.duet-header-bottom.duet-header-inactive{position:relative}}.duet-header-bottom.active{visibility:visible;opacity:1;transition:opacity 300ms ease, visibility 300ms ease}@media (min-width: 62em){.duet-header-bottom{position:relative;transition:none !important}}.duet-header-items,.duet-header-bottom-utils,.duet-header-utils{opacity:0;transition:transform 600ms ease, opacity 600ms ease;transform:translateY(-28px)}@media (min-width: 62em){.duet-header-items,.duet-header-bottom-utils,.duet-header-utils{opacity:1;transition:none !important;transform:none}}.active .duet-header-items,.active .duet-header-bottom-utils,.active .duet-header-utils{opacity:1;transform:translateY(0)}.duet-header-items{position:relative;z-index:300;display:block;width:100%;font-size:1rem;font-weight:400;line-height:1.5;background:rgb(255, 255, 255)}@media (min-width: 62em){.duet-header-items{z-index:100;display:flex;flex-direction:row;padding:0 21.5384615385px}}@media (min-width: 106.25em){.duet-header-items{padding-left:43.6363636364px}}.duet-header-items .duet-header-item-container{border-bottom:1px solid rgb(225, 227, 230);border-radius:0}@media (min-width: 62em){.duet-header-items .duet-header-item-container{border:0}}.duet-header-items .duet-header-second-level .duet-header-item{padding:0 40px;border:0}.duet-header-items .duet-header-second-level .duet-header-button{border:0}.duet-header-items .duet-header-second-level .duet-header-dropdown-content{padding:0;border:0}.duet-header-items .duet-header-third-level .duet-header-item{padding:0 75px}.duet-header-items .duet-header-item{position:relative;display:flex;align-items:center;width:100%;padding:0 20px;overflow:hidden;font-size:1rem;line-height:48px;color:rgb(0, 41, 77);text-decoration:none;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 62em){.duet-header-items .duet-header-item{font-weight:600;border-radius:4px}}.duet-theme-turva .duet-header-items .duet-header-item{color:rgb(23, 28, 58);border-color:rgb(225, 227, 230)}.duet-header-items .duet-header-item:hover{color:rgb(0, 77, 128)}.duet-theme-turva .duet-header-items .duet-header-item:hover{color:rgb(68, 68, 69)}.duet-header-items .duet-header-item:focus{outline:0}:host(.user-is-tabbing) .duet-header-items .duet-header-item:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-theme-turva .duet-header-items .duet-header-item:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}@media (min-width: 62em){.duet-header-items .duet-header-item{width:auto;max-width:300px;padding:0 12px;overflow:hidden;font-size:0.875rem;text-overflow:ellipsis;border:0}}.duet-header-items .duet-header-item.active{color:rgb(0, 119, 179)}.duet-theme-turva .duet-header-items .duet-header-item.active{color:rgb(198, 12, 48)}.duet-header-items .duet-header-item.active:hover{color:rgb(0, 119, 179)}.duet-theme-turva .duet-header-items .duet-header-item.active:hover{color:rgb(198, 12, 48)}.duet-header-items .duet-header-item.active::after{position:absolute;top:0;bottom:0;left:0;width:4px;content:"";background:rgb(0, 119, 179)}.duet-theme-turva .duet-header-items .duet-header-item.active::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-header-items .duet-header-item.active::after{top:auto;left:12px;width:calc(100% - 24px);height:3px}}.duet-header-toggle{display:flex;align-items:center;justify-content:center;width:48px;height:48px;margin-right:-8px;margin-left:auto;cursor:pointer;border-radius:4px;-webkit-appearance:none;appearance:none}.duet-header-toggle:focus{outline:0}:host(.user-is-tabbing) .duet-header-toggle:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-theme-turva .duet-header-toggle:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}@media (min-width: 62em){.duet-header-toggle{display:none}}.duet-header-hamburger{position:relative;width:24px;height:24px;margin-top:5px !important;pointer-events:none;transition:0.4s ease-in-out;backface-visibility:hidden}.duet-header-hamburger .duet-header-bar{position:absolute;left:0;display:block;width:100%;height:2px;background:rgb(0, 41, 77);border-radius:20rem;opacity:1;transition:0.25s ease-in-out;transform:rotate(0deg) scale(0.98)}.duet-theme-turva .duet-header-hamburger .duet-header-bar{background:rgb(23, 28, 58)}.duet-header-hamburger .duet-header-bar:nth-child(1){top:0}.duet-header-hamburger .duet-header-bar:nth-child(2),.duet-header-hamburger .duet-header-bar:nth-child(3){top:7px}.duet-header-hamburger .duet-header-bar:nth-child(4){top:14px}button.active .duet-header-hamburger .duet-header-bar:nth-child(1){top:7px;left:50%;width:0%}button.active .duet-header-hamburger .duet-header-bar:nth-child(2){transform:rotate(45deg)}button.active .duet-header-hamburger .duet-header-bar:nth-child(3){transform:rotate(-45deg)}button.active .duet-header-hamburger .duet-header-bar:nth-child(4){top:7px;left:50%;width:0%}.duet-header-utils{display:flex;flex-direction:column;width:100%}@media (min-width: 62em){.duet-header-utils{position:absolute;top:-4rem;right:0;z-index:999999999;flex-direction:row;align-items:center;justify-content:space-between;width:auto;margin-right:20px}}@media (min-width: 106.25em){.duet-header-utils{margin-right:36px}}@media (min-width: 62em){.duet-header-bottom-utils{position:absolute;top:0;right:0;z-index:999999999;margin-right:20px}}@media (min-width: 106.25em){.duet-header-bottom-utils{margin-right:36px}}button{font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-theme-turva button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-header-button{position:relative;display:flex;align-items:center;width:100%;height:48px;padding:0 20px;overflow:hidden;font-size:1rem;font-weight:400;line-height:48px;color:rgb(0, 41, 77);text-align:left;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;border-bottom:1px solid rgb(225, 227, 230);border-radius:4px;-webkit-appearance:none;appearance:none}.duet-theme-turva .duet-header-button{color:rgb(23, 28, 58);border-color:rgb(228, 228, 230)}.duet-header-button:hover{color:rgb(0, 77, 128)}.duet-theme-turva .duet-header-button:hover{color:rgb(148, 9, 37)}.duet-header-button:focus{outline:0}:host(.user-is-tabbing) .duet-header-button:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-theme-turva .duet-header-button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-header-button:active{opacity:0.75}@media (min-width: 62em){.duet-header-button{width:auto;max-width:200px;height:4rem;padding:0 16px;font-size:0.875rem;line-height:4rem;border:0}.duet-header-button::before{position:absolute;top:50%;right:0;width:1px;height:20px;content:"";background:rgb(207, 210, 212);transform:translateY(-50%)}.duet-theme-turva .duet-header-button::before{background:rgb(207, 207, 209)}}.duet-header-button.active{color:rgb(0, 119, 179);border-radius:0}.duet-theme-turva .duet-header-button.active{color:rgb(198, 12, 48)}.duet-header-button.active:hover{color:rgb(0, 119, 179)}.duet-theme-turva .duet-header-button.active:hover{color:rgb(198, 12, 48)}@media (min-width: 62em){.duet-header-button.active::after{position:absolute;top:0;bottom:0;left:0;width:3px;content:"";background:rgb(0, 119, 179)}.duet-theme-turva .duet-header-button.active::after{color:rgb(198, 12, 48)}}.duet-header-button.duet-header-logout .duet-header-icon.mobile{display:block}.duet-header-button.duet-header-logout .duet-header-icon.desktop{display:none}@media (min-width: 62em){.duet-header-button.duet-header-logout .duet-header-icon.mobile{display:none}.duet-header-button.duet-header-logout .duet-header-icon.desktop{display:block}}.duet-header-utils .duet-header-button.duet-header-logout{align-self:center;justify-content:center;width:auto;height:2.5rem;margin:2.25rem 0;font-weight:600;border:2px solid rgb(0, 41, 77);border-radius:20rem}.duet-theme-turva .duet-header-utils .duet-header-button.duet-header-logout{border-color:rgb(23, 28, 58)}.duet-header-utils .duet-header-button.duet-header-logout .duet-header-icon{margin-right:0.5rem}.duet-header-utils .duet-header-button.duet-header-logout .duet-header-button-label{font-size:0.875rem}@media (min-width: 62em){.duet-header-utils .duet-header-button.duet-header-logout{height:4rem;margin:0;font-weight:400;border:0}.duet-header-utils .duet-header-button.duet-header-logout .duet-header-icon{margin-right:0.75rem}}.duet-header-no-action{pointer-events:none}.duet-header-user-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 62em){.duet-header-utils>*:last-child::before,.duet-header-utils>*:last-child button::before{display:none}}@media (min-width: 62em){.duet-header-utils>*:last-child .duet-header-dropdown-content{right:0;left:auto}}.duet-header-language{text-transform:uppercase}.duet-header-language.active,.duet-header-language.active:hover,.duet-header-contact.active,.duet-header-contact.active:hover{color:inherit}.duet-theme-turva .duet-header-language.active,.duet-theme-turva .duet-header-language.active:hover,.duet-theme-turva .duet-header-contact.active,.duet-theme-turva .duet-header-contact.active:hover{color:inherit}.duet-header-dropdown .duet-header-language.duet-header-dropdown-toggle.active::after,.duet-header-dropdown .duet-header-language.duet-header-dropdown-toggle.active:hover::after,.duet-header-dropdown .duet-header-contact.duet-header-dropdown-toggle.active::after,.duet-header-dropdown .duet-header-contact.duet-header-dropdown-toggle.active:hover::after{width:0}@media (min-width: 62em){.duet-header-dropdown .duet-header-language.duet-header-dropdown-toggle.active::after,.duet-header-dropdown .duet-header-language.duet-header-dropdown-toggle.active:hover::after,.duet-header-dropdown .duet-header-contact.duet-header-dropdown-toggle.active::after,.duet-header-dropdown .duet-header-contact.duet-header-dropdown-toggle.active:hover::after{width:100%}}.duet-header-icon{display:inline-flex;min-width:12px;margin-right:12px;font-size:0;line-height:normal;vertical-align:baseline}@media (min-width: 62em){.duet-header-icon{margin-right:8px}}.duet-header-caret{position:absolute;top:50%;right:20px;display:flex;width:10px;height:10px;margin-left:8px;line-height:normal;pointer-events:none;transition:300ms ease;transform:translateY(-50%);transform-origin:50% 50%}@media (min-width: 62em){.duet-header-caret{width:7px;height:7px}}.duet-header-caret duet-icon{width:10px}.duet-header-dropdown-toggle.active .duet-header-caret{transform:translateY(-50%) rotate(180deg)}.duet-header-dropdown-toggle:focus{outline:0}:host(.user-is-tabbing) .duet-header-dropdown-toggle:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-theme-turva .duet-header-dropdown-toggle:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-header-dropdown-toggle:active{outline:none}.duet-header-badge{display:inline-block;width:6px;height:6px;margin-top:-1rem;margin-left:5px;vertical-align:top;background:rgb(247, 178, 40);border-radius:50%;box-shadow:0 0 0 1px #c18b1f}.duet-theme-turva .duet-header-badge{background:rgb(250, 164, 15)}.active-bar{color:rgb(0, 119, 179)}.active-bar::after{position:absolute;top:0;bottom:0;left:0;width:4px;content:"";background:rgb(0, 119, 179)}.duet-theme-turva .active-bar::after{background:rgb(198, 12, 48)}.duet-header-dropdown{position:relative}@media (min-width: 62em){.duet-header-dropdown .duet-header-dropdown-toggle{z-index:200;padding-right:36px;overflow:hidden;transition:border 300ms ease}}@media (min-width: 62em){.duet-header-dropdown .duet-header-dropdown-toggle::after{position:absolute;top:auto;bottom:0;left:0;display:block !important;width:100%;height:3px !important;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(3px)}.duet-theme-turva .duet-header-dropdown .duet-header-dropdown-toggle::after{background:rgb(198, 12, 48)}}.duet-header-dropdown .duet-header-dropdown-toggle.active,.duet-header-dropdown .duet-header-dropdown-toggle.active:hover{border-bottom:1px solid rgb(245, 248, 250)}.duet-header-dropdown .duet-header-dropdown-toggle.active::after,.duet-header-dropdown .duet-header-dropdown-toggle.active:hover::after{position:absolute;top:0;bottom:0;left:0;width:4px;content:"";background:rgb(0, 119, 179)}.duet-theme-turva .duet-header-dropdown .duet-header-dropdown-toggle.active::after,.duet-theme-turva .duet-header-dropdown .duet-header-dropdown-toggle.active:hover::after{background:rgb(198, 12, 48)}.duet-theme-turva .duet-header-dropdown .duet-header-dropdown-toggle.active,.duet-theme-turva .duet-header-dropdown .duet-header-dropdown-toggle.active:hover{border-color:rgb(245, 245, 247)}@media (min-width: 62em){.duet-header-dropdown .duet-header-dropdown-toggle.active,.duet-header-dropdown .duet-header-dropdown-toggle.active:hover{color:rgb(0, 77, 128);border:0}.duet-header-dropdown .duet-header-dropdown-toggle.active::after,.duet-header-dropdown .duet-header-dropdown-toggle.active:hover::after{position:absolute;top:auto;bottom:0;left:0;width:100%;height:3px;transform:translateY(0)}.duet-theme-turva .duet-header-dropdown .duet-header-dropdown-toggle.active,.duet-theme-turva .duet-header-dropdown .duet-header-dropdown-toggle.active:hover{color:rgb(148, 9, 37)}}@media (min-width: 62em){.duet-theme-turva .duet-header-dropdown .duet-header-dropdown-toggle.duet-header-session{color:rgb(255, 255, 255);background:rgb(198, 12, 48);border-radius:0}.duet-theme-turva .duet-header-dropdown .duet-header-dropdown-toggle.duet-header-session:hover,.duet-theme-turva .duet-header-dropdown .duet-header-dropdown-toggle.duet-header-session.active,.duet-theme-turva .duet-header-dropdown .duet-header-dropdown-toggle.duet-header-session.active:hover{color:rgb(255, 255, 255);background:rgb(148, 9, 37)}}.duet-header-dropdown .duet-header-dropdown-content{display:none;padding-bottom:16px;background:rgb(243, 249, 252);border-bottom:1px solid rgb(225, 227, 230)}.duet-theme-turva .duet-header-dropdown .duet-header-dropdown-content{background:rgb(245, 245, 247);border-color:rgb(225, 227, 230)}@media (min-width: 62em){.duet-header-dropdown .duet-header-dropdown-content{position:absolute;top:100%;left:0;z-index:600;display:block;min-width:150px;padding-top:16px;padding-left:0;visibility:hidden;border:0;border-radius:4px;border-top-left-radius:0;border-top-right-radius:0;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transition:300ms ease;transform:scale(0.85) translateZ(0) translateY(-20px)}.duet-header-dropdown .duet-header-dropdown-content.duet-header-session-items{right:0%;left:auto;min-width:225px}.duet-header-dropdown .duet-header-dropdown-content.duet-header-session-items .duet-header-session-label{padding:0 20px;font-weight:600}}@media (min-width: 64.0625em){.duet-header-dropdown .duet-header-dropdown-content{min-width:170px}.duet-header-dropdown .duet-header-dropdown-content.duet-header-session-items{min-width:225px}}.duet-header-dropdown .duet-header-dropdown-content.active{display:block}@media (min-width: 62em){.duet-header-dropdown .duet-header-dropdown-content.active{visibility:visible;opacity:1;transform:translateZ(0) translateY(0)}}.duet-header-dropdown .duet-header-dropdown-content a:not(.duet-header-item){padding:3px 8px 4px !important;position:relative;display:block;width:100%;padding-right:16px;padding-left:48px !important;overflow:hidden;font-size:0.875rem;font-weight:400;line-height:1.5;color:rgb(0, 41, 77);text-align:left;text-decoration:none;white-space:nowrap;cursor:pointer;transition:300ms ease}.duet-theme-turva .duet-header-dropdown .duet-header-dropdown-content a:not(.duet-header-item){color:rgb(23, 28, 58)}@media (min-width: 62em){.duet-header-dropdown .duet-header-dropdown-content a:not(.duet-header-item){padding-right:20px !important;padding-left:20px !important}}@media (min-width: 62em){.duet-header-dropdown .duet-header-dropdown-content a:not(.duet-header-item):hover{background:rgb(230, 242, 248)}.duet-theme-turva .duet-header-dropdown .duet-header-dropdown-content a:not(.duet-header-item):hover{background:rgb(228, 228, 230)}}.duet-header-dropdown .duet-header-dropdown-content a:not(.duet-header-item):focus{outline:0}:host(.user-is-tabbing) .duet-header-dropdown .duet-header-dropdown-content a:not(.duet-header-item):focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-theme-turva .duet-header-dropdown .duet-header-dropdown-content a:not(.duet-header-item):focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-header-dropdown .duet-header-dropdown-content a:not(.duet-header-item).active{padding-right:36px;font-weight:600;vertical-align:baseline}.duet-theme-turva .duet-header-dropdown .duet-header-dropdown-content a:not(.duet-header-item).active{font-weight:700}@media (min-width: 62em){.duet-header-dropdown .duet-header-dropdown-content a:not(.duet-header-item).active{color:rgb(255, 255, 255);background:rgb(0, 119, 179)}.duet-theme-turva .duet-header-dropdown .duet-header-dropdown-content a:not(.duet-header-item).active{background:rgb(198, 12, 48)}}.duet-header-dropdown .duet-header-dropdown-content .duet-header-link-external{margin-left:4px}.duet-header-back .duet-header-top{flex-direction:row;align-items:center;justify-content:center}.duet-header-back duet-button{position:absolute;top:50%;left:36px;transform:translateY(-50%)}@media (max-width: 35.9375em){.duet-header-back duet-button{left:20px;max-width:40px;padding:0 12px;overflow:hidden}}.duet-header-back .duet-header-toggle{display:none !important}.duet-header-skip{padding:15px 28px 16px !important;position:absolute;top:-100%;left:-100%;z-index:200;width:1px;min-width:190px;height:1px;overflow:hidden;font-weight:600;color:rgb(0, 119, 179);text-align:center;text-decoration:none;background:rgb(255, 255, 255);border-radius:4px;opacity:0}.duet-header-skip:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-theme-turva .duet-header-skip:focus,.duet-header-skip:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-theme-turva .duet-header-skip{min-width:120px;color:rgb(23, 28, 58)}@media (min-width: 106.25em){.duet-header-skip{margin-left:20px}}.duet-header-skip:focus{top:12px;left:20px;width:auto;height:auto;outline:0;opacity:1}@media (min-width: 62em){.duet-header-items-have-sub-items{display:none}}.duet-header-multi-level{display:none;height:6rem}@media (min-width: 62em){.duet-header-multi-level{display:block}}.duet-header-multi-level .duet-header-top{justify-content:space-between;height:6rem}.duet-header-multi-level .duet-header-button{height:6rem}.duet-header-multi-level .logo-and-segment{display:flex;flex-basis:0;flex-direction:column;flex-grow:1;padding-top:1rem}.duet-header-multi-level .logo-and-segment .duet-header-dropdown{z-index:400;margin-left:2rem}.duet-header-multi-level .logo-and-segment .duet-header-dropdown .duet-header-dropdown-content{background:rgb(243, 249, 252)}.duet-header-multi-level .logo-and-segment button{align-items:flex-start;height:2rem;font-weight:600;line-height:1rem}.duet-header-multi-level .logo-and-segment button::before{display:none}.duet-header-multi-level .logo-and-segment .duet-header-caret{top:25%}.duet-header-multi-level-nav{display:flex}.duet-header-multi-level-nav .duet-header-dropdown{position:static}.duet-header-multi-level-nav .duet-header-dropdown .duet-header-dropdown-toggle{z-index:400;padding-right:1rem;font-size:1rem;font-weight:600}.duet-header-multi-level-nav .duet-header-dropdown .duet-header-dropdown-toggle.active{color:rgb(0, 119, 179)}.duet-header-multi-level-nav .duet-header-dropdown .duet-header-dropdown-toggle.active:not(.open) .duet-header-caret{transform:translateY(-50%) rotate(0deg)}.duet-header-multi-level-nav .duet-header-dropdown .duet-header-dropdown-content{z-index:399;display:flex;justify-content:center;width:100%;height:4.5rem;padding:0;background:rgb(243, 249, 252);border-top:1px solid rgb(225, 227, 230);border-bottom:1px solid rgb(225, 227, 230);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07);transition:none}.duet-header-multi-level-nav .duet-header-dropdown .duet-header-dropdown-content a{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:auto;min-width:6rem;height:100%;padding:0 1rem !important;font-weight:600}.duet-header-multi-level-nav .duet-header-dropdown .duet-header-dropdown-content a::after{position:absolute;top:auto;bottom:0;left:0;display:block !important;width:100%;height:3px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(3px)}.duet-header-multi-level-nav .duet-header-dropdown .duet-header-dropdown-content a.active{font-weight:600;color:rgb(0, 119, 179);background:none}.duet-header-multi-level-nav .duet-header-dropdown .duet-header-dropdown-content a.active::after{transform:translateY(0)}.duet-header-multi-level-nav .duet-header-dropdown .duet-header-dropdown-content a .duet-header-icon{margin:0}.duet-header-multi-level-nav .duet-header-dropdown .duet-header-dropdown-content .duet-header-badge{position:absolute;margin-top:-2rem;margin-right:-2.25rem}.duet-header-multi-level-nav button::before{display:none}.duet-header-multi-level-nav .duet-header-caret{right:1%}.duet-header-multi-level-utils{display:flex;flex-basis:0;flex-grow:1;justify-content:flex-end}.duet-header-multi-level-utils>:last-child::before{display:none}.duet-header-multi-level-utils>:last-child.duet-header-dropdown .duet-header-button::before{display:none}.duet-header-multi-level-utils .duet-header-dropdown{z-index:400}.duet-header-multi-level-utils .duet-header-dropdown .duet-header-dropdown-content{background:rgb(243, 249, 252)}.duet-header-multi-level-utils .duet-header-button-label,.duet-header-multi-level-utils .duet-header-dropdown-label{display:none}@media (min-width: 64.0625em){.duet-header-multi-level-utils .duet-header-button-label,.duet-header-multi-level-utils .duet-header-dropdown-label{display:initial}}.duet-header-multi-level .duet-theme-turva .logo-and-segment .duet-header-dropdown{margin-left:0}.duet-header-multi-level .duet-theme-turva .logo-and-segment .duet-header-dropdown-toggle{padding-left:0.5rem}.duet-header-multi-level .duet-theme-turva .logo-and-segment .duet-header-dropdown .duet-header-dropdown-content{background:rgb(245, 245, 247)}.duet-header-multi-level .duet-theme-turva .duet-header-multi-level-utils>:nth-last-child(2).duet-header-dropdown .duet-header-button::before{display:none}.duet-header-multi-level .duet-theme-turva .duet-header-multi-level-nav .duet-header-dropdown .duet-header-dropdown-toggle.active{color:rgb(198, 12, 48)}.duet-header-multi-level .duet-theme-turva .duet-header-multi-level-nav .duet-header-dropdown .duet-header-dropdown-content{background:rgb(245, 245, 247);border-color:rgb(228, 228, 230)}.duet-header-multi-level .duet-theme-turva .duet-header-multi-level-nav .duet-header-dropdown .duet-header-dropdown-content a::after{background:rgb(198, 12, 48)}.duet-header-multi-level .duet-theme-turva .duet-header-multi-level-nav .duet-header-dropdown .duet-header-dropdown-content a.active{color:rgb(198, 12, 48);background:none}.duet-header-multi-level .duet-theme-turva .duet-header-multi-level-utils .duet-header-dropdown .duet-header-dropdown-content{background:rgb(245, 245, 247)}';var H=function(e,t){return{component:"duet-header",data:t,originalEvent:e}};var q=e("duet_header",function(){function e(e){var t=this;a(this,e);this.duetChange=r(this,"duetChange",3);this.duetSessionClick=r(this,"duetSessionClick",7);this.duetSearchClick=r(this,"duetSearchClick",7);this.duetUserClick=r(this,"duetUserClick",7);this.duetLanguageSelect=r(this,"duetLanguageSelect",7);this.duetLogoClick=r(this,"duetLogoClick",7);this.duetBackClick=r(this,"duetBackClick",7);this.duetContactClick=r(this,"duetContactClick",7);this.duetItemClick=r(this,"duetItemClick",7);this.duetSkipClick=r(this,"duetSkipClick",7);this.duetAnalytics=r(this,"duetAnalytics",7);this.duetMobileNavToggle=r(this,"duetMobileNavToggle",7);this.duetEvent=r(this,"duetEvent",7);var i;this.subMenuItemRefs={};this.subMenuButtonRefs={};this.hasLanguageChanged=false;this.mql=[window.matchMedia(l.replace(/'/g,""))];this.boundMqlFunctions=[];this.handleClick=function(e){if(e.data.analyticsId){t.duetAnalytics.emit({component:"duet-header",analyticsId:e.data.analyticsId})}t.duetChange.emit(e);t.closeMenus();t.closeMobileNavigation()};this.handleSessionClick=function(e){var a=H(e,t.processedSession);t.handleClick(a);t.duetSessionClick.emit(a)};this.handleSessionItemClick=function(e,a){var r=H(e,a);t.handleClick(r);t.duetSessionClick.emit(r)};this.handleSearchClick=function(e){var a=H(e,t.processedSearch);t.handleClick(a);t.duetSearchClick.emit(a)};this.handleUserClick=function(e){var a=H(e,t.processedUser);t.handleClick(a);t.duetUserClick.emit(a)};this.handleBackClick=function(e){var a=H(e,t.processedBack);t.handleClick(a);t.duetBackClick.emit(a)};this.handleSkipClick=function(e){var a=t.accessibleI18nLabels.skipLabel;var r=H(e,{href:t.skipToId,label:a});t.handleClick(r);t.duetSkipClick.emit(r)};this.handleLogoClick=function(e){var a=H(e,{href:t.logoHref,label:"logo"});t.handleClick(a);t.duetLogoClick.emit(a)};this.handleArrowKeys=function(e){var t;if(v(e)||b(e)){t=e.target.previousElementSibling}else if(f(e)||w(e)){t=e.target.nextElementSibling}if(t){e.preventDefault();t.focus()}};this.toggleMenu=function(e,a,r,i){var d;e.preventDefault();e.stopPropagation();if(i===true&&!t.openMenu){var n=t.closedActives?__spreadArray([],t.closedActives,true):[];var o=n.findIndex((function(e){return e===r}));if(o>-1){n.splice(o,1);t.closedActives=__spreadArray([],n,true)}else{t.closedActives=__spreadArray(__spreadArray([],n,true),[r],false)}}else{t.openMenu=t.openMenu===r?null:r}if(a==="language"){t.isContactOpen=false;t.isLanguageOpen=!t.isLanguageOpen;t.isSegmentOpen=false;t.isSessionOpen=false;d=t.languageItemsEl}if(a==="session"){t.isContactOpen=false;t.isLanguageOpen=false;t.isSegmentOpen=false;t.isSessionOpen=!t.isSessionOpen;d=t.sessionItemsEl}else if(a==="contact"){t.isLanguageOpen=false;t.isContactOpen=!t.isContactOpen;t.isSegmentOpen=false;t.isSessionOpen=false;d=t.contactItemsEl}else if(a==="mobile"){t.isContactOpen=false;t.isLanguageOpen=false;t.isSegmentOpen=false;t.isSessionOpen=false;d=t.navigationEl;var s=!t.isSlideOutOpen;t.isSlideOutOpen=s;t.duetMobileNavToggle.emit({originalEvent:e,open:s});if(t.isSlideOutOpen){u(t.navigationEl,{reserveScrollBarGap:true})}else{h(t.navigationEl)}}else if(a==="sub"){t.isContactOpen=false;t.isLanguageOpen=false;t.isSegmentOpen=false;t.isSessionOpen=false;d=t.subMenuItemRefs[r]}else if(a==="segment"){t.isContactOpen=false;t.isLanguageOpen=false;t.isSessionOpen=false;t.isSegmentOpen=!t.isSegmentOpen;d=t.segmentItemsEl}if(t.isSlideOutOpen||t.isLanguageOpen||t.isContactOpen||t.isSegmentOpen||t.isSessionOpen||t.openMenu){var l=t.element.querySelector("duet-notification-drawer");if(l){l.close(false)}setTimeout((function(){d.querySelector("a").focus()}),300)}};this.emitDuetEvent=function(e,a){t.duetEvent.emit({component:"duet-header",data:a,originalEvent:e})};this.isContactOpen=false;this.isLanguageOpen=false;this.isSessionOpen=false;this.isSlideOutOpen=false;this.isSegmentOpen=false;this.openMenu=null;this.closedActives=null;this.processedItems=null;this.processedLanguageItems=null;this.processedContactItems=null;this.processedSession=null;this.processedSearch=null;this.processedUser=null;this.processedBack=null;this.renderDesktopNav=(i=this.mql[0])===null||i===void 0?void 0:i.matches;this.theme="";this.language=x();this.accessibleI18nLabelsDefaults={fi:{skipLabel:"Siirry pääsisältöön",changeLanguage:"Vaihda kieltä",activeLanguage:"Suomi valittuna"},sv:{skipLabel:"Gå till huvudinnehåll",changeLanguage:"Ändra Språk",activeLanguage:"Svenska valt"},en:{skipLabel:"Skip to main content",changeLanguage:"Change language",activeLanguage:"English selected"}};this.accessibleI18nLabels=k(this.accessibleI18nLabelsDefaults);this.accessibleLabelExternalDefaults=c;this.accessibleLabelExternal=k(this.accessibleLabelExternalDefaults);this.accessibleLabelDefaults={fi:"Valikko",sv:"Meny",en:"Menu"};this.accessibleLabel=k(this.accessibleLabelDefaults);this.user=undefined;this.logoHref="/";this.currentHref="/";this.skipToId="";this.items=undefined;this.region="";this.session=undefined;this.search=undefined;this.back=undefined;this.contact="";this.contactItems=undefined;this.languageItems=undefined}e.prototype.watchLanguageStateHandler=function(e,t){if(e!==t&&this.accessibleLabel===this.accessibleLabelDefaults[t]){this.accessibleLabel=k(this.accessibleLabelDefaults,e)}if(e!==t&&this.accessibleI18nLabels===this.accessibleI18nLabelsDefaults[t]){this.accessibleI18nLabels=k(this.accessibleI18nLabelsDefaults,e)}if(e!==t&&this.accessibleLabelExternal===this.accessibleLabelExternalDefaults[t]){this.accessibleLabelExternal=k(this.accessibleLabelExternalDefaults,e)}};e.prototype.componentWillLoad=function(){p(this);this.refresh()};e.prototype.connectedCallback=function(){for(var e=0;e<this.mql.length;e++){if(this.mql[e].addEventListener){var t=this.refresh.bind(this);this.mql[e].addEventListener("change",t);this.boundMqlFunctions[e]=t}}y(this)};e.prototype.disconnectedCallback=function(){if(this.navigationEl){h(this.navigationEl)}for(var e=0;e<this.mql.length;e++){if(this.mql[e].removeEventListener){this.mql[e].removeEventListener("change",this.boundMqlFunctions[e])}}this.boundMqlFunctions=[];S(this)};e.prototype.handleKeyUp=function(e){if(g(e)){this.closeMenus(true);this.closeMobileNavigation()}};e.prototype.handleKeyDown=function(e){if(this.isContactOpen||this.isLanguageOpen||this.isSegmentOpen){var t=this.element.shadowRoot.activeElement;if(m(e)&&t){e.preventDefault();e.stopPropagation();if(this.isContactOpen){this.closeMenus()}else if(this.isLanguageOpen){this.closeMenus(true)}else if(this.isSegmentOpen){this.closeMenus()}else if(this.openMenu){this.closeMenus()}t.click()}}};e.prototype.handleDocumentClick=function(){this.closeMenus();this.closeMobileNavigation()};e.prototype.handleLanguageClick=function(e,t){this.language=t.country;this.hasLanguageChanged=true;var a=H(e,t);this.handleClick(a);this.duetLanguageSelect.emit(a)};e.prototype.handleContactClick=function(e,t){var a=H(e,t);this.handleClick(a);this.duetContactClick.emit(a)};e.prototype.handleItemClick=function(e,t){var a=H(e,t);this.handleClick(a);this.duetItemClick.emit(a)};e.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(a){if(this.renderDesktopNav!==i.isServer?true:(e=this.mql[0])===null||e===void 0?void 0:e.matches){this.renderDesktopNav=(t=this.mql[0])===null||t===void 0?void 0:t.matches;this.openMenu=null;if(this.isSlideOutOpen){this.toggleMenu(document.createEvent("UIEvents"),"mobile")}}this.processedItems=C(this.items);this.processedLanguageItems=C(this.languageItems);this.processedContactItems=C(this.contactItems);this.processedSession=C(this.session);this.processedSearch=C(this.search);this.processedUser=C(this.user);this.processedBack=C(this.back);return[2]}))}))};e.prototype.closeMobileNavigation=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.isSlideOutOpen){this.isSlideOutOpen=false;h(this.navigationEl)}return[2]}))}))};e.prototype.closeMenus=function(e){if(e===void 0){e=false}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.isContactOpen||this.isLanguageOpen||this.isSegmentOpen||this.isSessionOpen||this.openMenu){if(this.isContactOpen&&e){this.contactItemsButtonEl.focus({preventScroll:true})}if(this.isLanguageOpen&&e){this.languageItemsButtonEl.focus({preventScroll:true})}if(this.isSegmentOpen&&e){this.segmentItemsButtonEl.focus({preventScroll:true})}if(this.isSessionOpen&&e){this.sessionItemsButtonEl.focus({preventScroll:true})}if(this.openMenu&&e){this.subMenuButtonRefs[this.openMenu].focus({preventScroll:true})}this.isContactOpen=false;this.isLanguageOpen=false;this.isSegmentOpen=false;this.isSessionOpen=false;this.openMenu=null}return[2]}))}))};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.logoEl.setFocus(e);return[2]}))}))};e.prototype.render=function(){var e=this;var a=this.accessibleI18nLabels,r=a.skipLabel,i=a.changeLanguage,o=a.activeLanguage;var l=function(){return e.skipToId?t("a",{href:e.skipToId,class:"duet-header-skip",onClick:e.handleSkipClick},r):null};var u=function(){return t("duet-logo",{href:e.logoHref,size:"medium",ref:function(t){return e.logoEl=t},language:e.language,theme:e.theme,onClick:e.handleLogoClick})};var h=function(){return t("duet-logo",{href:e.logoHref,size:"large",ref:function(t){return e.logoEl=t},language:e.language,theme:e.theme,onClick:e.handleLogoClick})};var c=function(){return e.contact&&e.processedContactItems?t(U,{id:"duet-header-contact",label:e.contact,icon:A.svg,active:e.isContactOpen,isOpen:e.isContactOpen,badge:false,toggleRef:function(t){return e.contactItemsButtonEl=t},itemsRef:function(t){return e.contactItemsEl=t},onToggle:function(t){return e.toggleMenu(t,"contact")}},e.processedContactItems.map((function(a){return t("a",{role:"menuitem",href:a.href||"#",id:a.id,onClick:function(t){return e.handleContactClick(t,a)},onKeyDown:function(t){return e.handleArrowKeys(t)},target:a.external?"_blank":"_self"},a.label,a.external&&t(n,null,t("duet-visually-hidden",null,", ",e.accessibleLabelExternal),t("span",{class:"duet-header-link-external"},t("duet-icon",{name:"action-new-window-small",size:"xx-small",margin:"none",color:e.theme==="turva"?"primary-turva":"primary"}))))}))):null};var p=function(){return e.language&&e.processedLanguageItems?t(U,{id:"duet-header-language",label:e.language,icon:_.svg,accessibleText:"".concat(i).concat(e.hasLanguageChanged?", ".concat(o):""),active:e.isLanguageOpen,isOpen:e.isLanguageOpen,badge:false,toggleRef:function(t){return e.languageItemsButtonEl=t},itemsRef:function(t){return e.languageItemsEl=t},onToggle:function(t){return e.toggleMenu(t,"language")}},e.processedLanguageItems.map((function(a){return t("a",{class:{active:e.language===a.country},"aria-selected":e.language===a.country,role:"menuitem",id:a.id,lang:a.country,href:a.href||"#",onClick:function(t){return e.handleLanguageClick(t,a)},onKeyDown:e.handleArrowKeys},a.label)}))):null};var g=function(){return e.processedUser&&e.processedUser.href?t("a",{href:e.processedUser.href||"#",id:e.processedUser.id,class:"duet-header-user duet-header-button",onClick:e.handleUserClick},t(j,{icon:V.svg}),t("span",{class:"duet-header-user-label"},e.processedUser.label)):null};var m=function(){return e.processedUser&&!e.processedUser.href?t("span",{id:e.processedUser.id,class:"duet-header-user duet-header-button duet-header-no-action"},t(j,{icon:V.svg}),t("span",{class:"duet-header-user-label"},e.processedUser.label)):null};var v=function(){return e.processedSession?t("a",{href:e.processedSession.href||"#",id:e.processedSession.id,class:"duet-header-logout duet-header-button",onClick:e.handleSessionClick},t(j,{class:"desktop",icon:e.processedSession.type==="logout"?D.svg:B.svg,iconSize:"x-small"}),t(j,{class:"mobile",icon:e.processedSession.type==="logout"?D.svg:B.svg,iconSize:"small"}),t("span",{class:"duet-header-button-label"},e.processedSession.label)):null};var b=function(){return e.processedSession&&e.processedSession.sessionItems?t(U,{className:"duet-header-session",id:"duet-header-session",label:e.processedSession.label,icon:e.processedSession.type==="logout"?D.svg:B.svg,active:e.isSessionOpen,isOpen:e.isSessionOpen,badge:false,toggleRef:function(t){return e.sessionItemsButtonEl=t},itemsRef:function(t){return e.sessionItemsEl=t},onToggle:function(t){return e.toggleMenu(t,"session")}},e.processedSession.sessionItems.map((function(a,r){return t(n,null,a.label&&t("span",{class:"duet-header-session-label"},a.label),t("duet-spacer",{size:"small","aria-hidden":"true"}),a.items.map((function(r){return t("a",{role:"menuitem","aria-label":a.label?"".concat(a.label," ").concat(r.label):r.label,id:r.id,href:r.href||"#",onClick:function(t){return e.handleSessionItemClick(t,r)},onKeyDown:e.handleArrowKeys},r.label)})),r!==e.processedSession.sessionItems.length-1&&t(n,null,t("duet-spacer",{size:"x-small","aria-hidden":"true"}),t("duet-divider",{margin:"none","aria-hidden":"true"})))}))):null};var f=function(){return e.processedSearch?t("a",{href:e.processedSearch.href||"#",id:e.processedSearch.id,class:"duet-header-search duet-header-button",onClick:e.handleSearchClick},t(j,{icon:s.svg}),t("span",{class:"duet-header-button-label"},e.processedSearch.label)):null};if(this.processedBack){return t(d,{class:"duet-header-back-variation"},t("div",{class:"duet-header-reserved-space"},t("header",{class:{"duet-header":true,"duet-theme-turva":this.theme==="turva","duet-header-back":true,"duet-header-inactive":true},part:"header"},t("div",{class:"duet-header-top"},l(),t("duet-button",{url:this.processedBack.href,id:this.processedBack.id,theme:this.theme,variation:"plain",color:this.theme==="turva"?"secondary-turva":"secondary",icon:"navigation-arrow-left",iconSize:"large",onClick:this.handleBackClick},this.processedBack.label),u(),t("slot",{name:"logo-utility"})))))}var w=this.processedItems&&this.processedItems.some((function(e){return e.items&&e.items.length>0}));var x=this.processedItems&&this.processedItems.some((function(e){return e.items&&e.items.some((function(e){return e.active===true}))}));var k=this.processedItems&&this.processedItems.some((function(e){return e.items&&e.items.some((function(e){return e.items&&e.items.some((function(e){return e.active===true}))}))}));var y=t("div",{class:{"duet-header-reserved-space":true,"duet-with-links":!!this.processedItems,"duet-header-second-level-active":x,"duet-header-third-level-active":k,"duet-header-items-have-sub-items":w}},t("header",{class:{"duet-header":true,"duet-theme-turva":this.theme==="turva","duet-header-inactive":!this.processedItems},part:"header"},t("div",{class:"duet-header-top"},l(),u(),t("slot",{name:"logo-utility"},this.region&&t("div",{class:"duet-header-region"},this.region)),(this.processedItems||p()||c()||this.processedSession||this.processedUser)&&t("button",{class:{"duet-header-toggle":true,active:this.isSlideOutOpen},onClick:function(t){return e.toggleMenu(t,"mobile")},type:"button"},t("duet-visually-hidden",null,this.accessibleLabel),t(R,null))),t("div",{ref:function(t){return e.navigationEl=t},class:{"duet-header-bottom":true,active:this.isSlideOutOpen,inactive:!this.processedItems}},t("nav",{class:"duet-header-items",role:"navigation"},this.processedItems&&this.processedItems.map((function(a,r){return t("div",{class:"duet-header-item-container"},t("a",{class:{"duet-header-first-level":true,"duet-header-item":true,active:!w&&e.currentHref===a.href||a.active===true&&!e.openMenu&&e.closedActives&&e.closedActives.length===1||a.active===true&&!e.openMenu&&a.items&&!a.items.some((function(e){return e.active===true}))},href:a.href||"#",id:a.id||"header-item-".concat(r),onClick:function(t){return e.handleItemClick(t,a)},onMouseEnter:function(t){return e.emitDuetEvent(t,a)},onTouchStart:function(t){return e.emitDuetEvent(t,a)}},a.label,a.badge&&t("div",{class:"duet-header-badge"})),a.items&&a.items.filter((function(e){return e.items&&e.items.length>0})).map((function(a,i){var d=a.id||"header-item-".concat(r,"-").concat(i);var n=!e.openMenu&&a.active===true&&!(e.closedActives&&!!e.closedActives.find((function(e){return e===d})))||e.openMenu===d;var o=n&&!(a.items&&a.items.some((function(e){return e.active===true})));return t(U,{id:d,className:"duet-header-second-level",label:a.label,icon:"".concat(a.icon,".svg"),active:o,isOpen:n,badge:a.badge,toggleRef:function(t){return e.subMenuButtonRefs[d]=t},itemsRef:function(t){return e.subMenuItemRefs[d]=t},onToggle:function(t){return e.toggleMenu(t,"sub",d,a.active===true)}},t("div",{class:"duet-header-third-level"},a.items&&a.items.map((function(a){return t("a",{class:{"duet-header-item":true,active:a.active===true},role:"menuitem",href:a.href||"#",id:a.id,onClick:function(t){return e.handleItemClick(t,a)},onKeyDown:function(t){return e.handleArrowKeys(t)},onMouseEnter:function(t){return e.emitDuetEvent(t,a)},onTouchStart:function(t){return e.emitDuetEvent(t,a)},target:a.external?"_blank":"_self"},a.icon&&t("div",{class:"duet-header-icon"},t("duet-icon",{margin:"none",size:"medium",name:a.icon,color:"currentColor"})),t("span",null,a.label),a.badge&&t("div",{class:"duet-header-badge"}))}))))})))}))),t("div",{class:"duet-header-bottom-utils"},t("slot",{name:"utility"})),t("div",{class:"duet-header-utils"},!w&&c(),p(),!w&&t(n,null,g(),m()),f(),v()))));if(w){var S=this.processedItems.find((function(e){return e.active}));var C=this.processedItems&&this.processedItems.some((function(e){return e.items&&e.items.some((function(e){return e.items&&e.items.some((function(e){return e.active===true}))}))}));var L="duet-header-segment";return t(d,{class:"duet-header-multi-level-variation"},t("div",{class:{"duet-header-multi-level":true,"duet-header-multi-level-third-level-is-open":C}},t("header",{class:{"duet-header":true,"duet-theme-turva":this.theme==="turva","duet-header-inactive":!this.processedItems},part:"header"},t("div",{class:"duet-header-top"},l(),t("div",{class:"logo-and-segment"},t("div",null,h()),this.processedItems&&t(U,{id:L,label:S.label,active:this.isSegmentOpen,isOpen:this.isSegmentOpen,badge:false,toggleRef:function(t){return e.segmentItemsButtonEl=t},itemsRef:function(t){return e.segmentItemsEl=t},onToggle:function(t){return e.toggleMenu(t,"segment")}},this.processedItems.map((function(a){return t("a",{class:{active:S===a},role:"menuitem",href:a.href||"#",id:a.id,onClick:function(t){return e.handleItemClick(t,a)},onKeyDown:function(t){return e.handleArrowKeys(t)},onMouseEnter:function(t){return e.emitDuetEvent(t,a)},onTouchStart:function(t){return e.emitDuetEvent(t,a)},target:a.external?"_blank":"_self"},a.icon&&t("div",{class:"duet-header-icon"},t("duet-icon",{margin:"none",size:"x-small",name:a.icon,color:"currentColor"})),t("span",null,a.label),a.badge&&t("div",{class:"duet-header-badge"}))})))),t("nav",{class:"duet-header-multi-level-nav"},S.items&&S.items.filter((function(e){return e.items&&e.items.length>0})).map((function(a,r){var i=a.id||"segment-item-".concat(r);return t(U,{id:i,label:a.label,active:!e.openMenu&&a.active===true||e.openMenu===i,isOpen:e.openMenu===i,badge:a.badge,toggleRef:function(t){return e.subMenuButtonRefs[i]=t},itemsRef:function(t){return e.subMenuItemRefs[i]=t},onToggle:function(t){return e.toggleMenu(t,"sub",i)}},a.items&&a.items.map((function(a){return t("a",{class:{active:a.active},role:"menuitem",href:a.href||"#",id:a.id,onClick:function(t){return e.handleItemClick(t,a)},onKeyDown:function(t){return e.handleArrowKeys(t)},onMouseEnter:function(t){return e.emitDuetEvent(t,a)},onTouchStart:function(t){return e.emitDuetEvent(t,a)},target:a.external?"_blank":"_self"},a.icon&&t("div",{class:"duet-header-icon"},t("duet-icon",{margin:"none",size:"medium",name:a.icon,color:"currentColor"})),t("span",null,a.label),a.badge&&t("div",{class:"duet-header-badge"}))})))}))),t("div",{class:"duet-header-multi-level-utils"},f(),p(),b()!=null?b():v()),t("slot",{name:"utility"})))),y)}return t(d,{class:{"duet-header-default-variation":true}},y)};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{language:["watchLanguageStateHandler"],user:["refresh"],items:["refresh"],session:["refresh"],back:["refresh"],contactItems:["refresh"],languageItems:["refresh"]}},enumerable:false,configurable:true});return e}());q.style=T;var K="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:8px !important;display:inline-block;width:auto;vertical-align:middle}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-logo{-webkit-user-select:none;user-select:none;display:block;width:154px;height:40px;border-radius:4px}.duet-logo:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-theme-turva .duet-logo:focus,.duet-logo:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-logo.duet-logo-en{width:166px}.duet-logo.duet-logo-sv{width:167px}.duet-logo.duet-theme-turva{width:110px;height:40px}.duet-logo svg{display:block;width:100%;height:auto}.duet-logo.large{width:184.8px;height:48px}.duet-logo.large.duet-logo-en{width:199.2px}.duet-logo.large.duet-logo-sv{width:200.4px}.duet-logo.large.duet-theme-turva{width:149.6px;height:54.4px}";var N=function(e){var a=e.inverse,r=e.logoId;var i=a?M:z;var d=a?M:I;return t("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":r,viewBox:"0 0 305 111"},t("title",{id:r},"Turva"),t("path",{fill:i,d:"M79 90.1A40.5 40.5 0 0 0 98.3 58H79v32.2z"}),t("path",{fill:i,d:"M45.1 57.9V46.4h52.3a40.5 40.5 0 1 0-30 48.5V58H45z"}),t("path",{fill:d,d:"M278.9 80.3v-9.8l-7.4.4c-2.4.3-4.3.6-5.7 1-1.7.4-4 1.3-5 2.3-1 1-2.3 2.8-2.3 4.6 0 2 .8 3.8 2 4.8s3.3 2 5.7 2a22 22 0 0 0 12.7-5.3zm4.2 8H279v-4.1l-3 1.9-2.8 1.5a17.4 17.4 0 0 1-7.4 1.6c-3 0-6.3-.7-8-2.3a9.6 9.6 0 0 1-3.4-7.2 9 9 0 0 1 1.8-5.9c1.1-1.6 3.1-3.3 5.2-4.2 2.1-1 4.7-1.6 7.7-1.9 3.4-.4 6.8-.6 9.8-.7v-1.1a6 6 0 0 0-.7-3.3 8 8 0 0 0-2.6-2.5c-.8-.5-2.2-1-3.4-1.1a25.7 25.7 0 0 0-8.8.4c-1.9.4-3.3 1-5.4 1.7h-.3v-4.3c1.2-.3 2.3-.7 4.5-1a37.7 37.7 0 0 1 12.8 0c1.8.4 2.9 1 4.2 2 1.3 1 2.3 2.3 3 3.8.7 1.5 1 3.2 1 4.7v22zM250.1 56l-14 32.4h-4.8L217.4 56h4.5l12 27.7L245.6 56zM137.7 88.2l-2.7.7c-.9.2-2 .4-4.2.4a9 9 0 0 1-7.2-3c-1.9-1.8-2.6-5-2.6-9.3V60.2h-5.2V56h5.2V47h4.2v9h12.6v4.2h-12.6v14.2c0 1.8 0 4.3.2 5.4 0 1 .3 2.5.8 3.4.5.8 1.4 1.4 2.2 1.8.8.4 2.7.5 4.1.5 1-.1 1.7-.2 2.7-.5l2.2-.6h.3v3.8zM176.4 88.4h-4.2v-3.9c-2 1.6-4.5 2.8-6.3 3.6-1.8.8-3.8 1.3-6 1.3-3.6 0-6-1.2-8-3.4s-2.5-5.5-2.5-9.9v-20h4.2V74c0 1.8.1 3.8.3 5 .2 1.3.5 3 1 3.8a5 5 0 0 0 2.2 2c1 .5 2.2.7 4 .7 1.5 0 3.1-.4 5-1.2 1.7-.8 4.5-2.4 6-3.6V56.1h4.3v32.3zM210.4 61h-.3a21.6 21.6 0 0 0-5.4-.7c-1.9 0-3.6.4-5.3 1.2a31 31 0 0 0-5.4 3.7v23.2h-4.3V56h4.3v5.2c2.3-1.9 5-3.2 6.7-4 1.8-.8 3.6-1.2 5.5-1.2a22.3 22.3 0 0 1 4.2.4v4.4z"}))};var Y={fi:{viewBox:"0 0 427 111",title:"LähiTapiola",path:"M131.6 69.6v1.3l-.3 1c0 .2-.2.4-.3.5l-.5.1h-16c-.5 0-1-.1-1.4-.5-.5-.3-.7-.9-.7-1.7V38.7l.2-.5c.1-.2.3-.3.6-.4l1-.2a15.7 15.7 0 0 1 4.6.2c.3.1.5.2.6.4l.2.5v28h11l.4.1.3.5.2 1 .1 1.3M164.3 70c.2.5.4 1 .4 1.4 0 .4 0 .7-.2.9-.2.2-.5.3-1 .3a25.2 25.2 0 0 1-5.4 0l-.6-.4-.3-.6-2.3-7h-13l-2.3 6.8c0 .3-.2.5-.3.6-.1.2-.3.4-.6.4l-1 .3a25.9 25.9 0 0 1-3.9 0l-1-.5c-.1-.2-.2-.5-.1-.8 0-.4.2-1 .4-1.5l10.7-31 .4-.7c.1-.2.4-.3.7-.4l1.3-.2a47.7 47.7 0 0 1 6.2.2c.4 0 .6.2.8.4l.4.8 10.7 31zm-17.9-38.8c0 1.3-.2 2.2-.7 2.7-.5.5-1.4.7-2.8.7s-2.3-.2-2.8-.7c-.5-.5-.7-1.4-.7-2.6 0-1.2.2-2.1.7-2.6.5-.5 1.4-.8 2.8-.8s2.4.3 2.8.7c.5.5.7 1.4.7 2.6zm2 13.1h-.1l-5 14.9h10l-5-14.9zm9.8-13c0 1.2-.2 2-.7 2.6-.5.5-1.5.7-2.9.7s-2.3-.2-2.8-.7c-.4-.5-.7-1.4-.7-2.6 0-1.2.3-2.1.8-2.6s1.4-.8 2.8-.8 2.3.3 2.8.7c.5.5.7 1.4.7 2.6zM196.4 71.6c0 .2 0 .3-.2.5l-.5.3-1.1.2a14 14 0 0 1-4.5-.2c-.3 0-.5-.2-.6-.3a.7.7 0 0 1-.2-.5V57.5h-13v14c0 .3 0 .4-.2.6l-.5.3-1.1.2a14.3 14.3 0 0 1-4.5-.2c-.3 0-.5-.2-.6-.3a.8.8 0 0 1-.2-.5v-33c0-.1 0-.3.2-.4.1-.2.3-.3.6-.4l1-.2a15.6 15.6 0 0 1 4.6.2l.5.4.2.5v12.8h13V38.7c0-.2 0-.4.2-.5.1-.2.3-.3.6-.4l1-.2a15.9 15.9 0 0 1 4.6.2l.5.4c.2.1.2.3.2.5v32.9zM211.1 71.6c0 .2 0 .3-.2.5l-.5.3-1.1.2a14.3 14.3 0 0 1-4.5-.2c-.3 0-.5-.2-.6-.3a.8.8 0 0 1-.2-.5v-33c0-.1 0-.3.2-.4.1-.2.3-.3.6-.4l1-.2a15.3 15.3 0 0 1 4.6.2l.5.4c.2.1.2.3.2.5v32.9zM242 40.6l-.1 1.3-.2 1-.4.4-.4.2h-8.7v28c0 .3 0 .4-.2.6l-.6.3a14 14 0 0 1-5.6 0c-.3 0-.4-.2-.6-.3a.8.8 0 0 1-.1-.5V43.5h-8.8c-.1 0-.3 0-.4-.2-.1 0-.3-.3-.3-.5l-.2-.9a10.9 10.9 0 0 1 .2-3.6c0-.2.2-.4.3-.5l.4-.1H241l.4.1.4.5.2 1v1.3M270.3 70l.4 1.4c0 .4 0 .7-.2.9-.2.2-.6.3-1 .3a24.3 24.3 0 0 1-5.5 0l-.5-.4-.3-.6-2.4-7h-13l-2.3 6.8-.2.6c-.2.2-.3.4-.6.4a25.9 25.9 0 0 1-5 .2c-.4 0-.7-.2-.9-.4-.2-.2-.2-.5-.2-.8 0-.4.2-1 .4-1.5l10.8-31c0-.3.2-.5.3-.7l.7-.4 1.3-.2a47.8 47.8 0 0 1 6.2.2c.4 0 .7.2.8.4l.4.8 10.8 31zm-16-25.7l-5 14.9h9.9l-5-14.9zM299 48.3c0 2-.3 3.7-.9 5.2a10 10 0 0 1-2.7 3.8c-1.1 1-2.6 1.8-4.3 2.3a20 20 0 0 1-6 .8h-2.9v11.2l-.1.5-.6.3-1.1.2a14 14 0 0 1-4.5-.2c-.3 0-.5-.2-.6-.3a.8.8 0 0 1-.2-.5V40.2c0-.8.3-1.5.7-1.9.4-.4 1-.6 1.7-.6h8.3a28 28 0 0 1 5 .5c1 .2 2.1.6 3.2 1.1a8.8 8.8 0 0 1 4.5 5.1c.3 1.2.5 2.5.5 3.9m-7.4.5c0-1.2-.2-2.2-.6-3-.5-.8-1-1.4-1.6-1.8-.7-.4-1.3-.6-2-.7l-2.2-.1h-3V55h3.2c1.1 0 2-.2 2.9-.5a4.9 4.9 0 0 0 3-3.2c.2-.8.3-1.6.3-2.5M311.6 71.6c0 .2 0 .3-.2.5l-.5.3-1.1.2a14.2 14.2 0 0 1-4.5-.2c-.3 0-.5-.2-.6-.3a.8.8 0 0 1-.2-.5v-33c0-.1 0-.3.2-.4.1-.2.3-.3.6-.4l1-.2a15.2 15.2 0 0 1 4.6.2l.5.4c.2.1.2.3.2.5v32.9zM350.6 54.7c0 2.9-.4 5.5-1.1 7.8-.7 2.2-1.8 4.2-3.2 5.8a13.7 13.7 0 0 1-5.3 3.6 21.3 21.3 0 0 1-14.4.2 12.3 12.3 0 0 1-8-8.8 28 28 0 0 1 0-15.6c.8-2.2 1.8-4.2 3.3-5.7a14 14 0 0 1 5.2-3.7c2.1-.8 4.5-1.2 7.3-1.2 2.7 0 5 .3 7 1s3.7 1.8 5 3.2a14 14 0 0 1 3.1 5.6c.7 2.2 1 4.8 1 7.8m-7.4.4c0-1.8-.1-3.5-.4-5-.3-1.5-.8-2.8-1.5-3.9a7 7 0 0 0-2.7-2.4 9.4 9.4 0 0 0-4.3-1c-1.8 0-3.2.4-4.4 1a8 8 0 0 0-2.8 2.7 11 11 0 0 0-1.5 3.8 27.8 27.8 0 0 0 0 9.8 11 11 0 0 0 1.4 3.9c.7 1 1.6 1.9 2.7 2.5 1.2.5 2.6.8 4.4.8 1.7 0 3.2-.3 4.3-1a7.8 7.8 0 0 0 2.9-2.6c.7-1.1 1.2-2.4 1.5-3.9.3-1.5.4-3 .4-4.7M375.7 69.6a10.5 10.5 0 0 1-.3 2.3c0 .2-.2.4-.3.5l-.5.1h-16c-.6 0-1-.1-1.5-.5-.4-.3-.6-.9-.6-1.7V38.7c0-.2 0-.4.2-.5.1-.2.3-.3.6-.4l1-.2a15.7 15.7 0 0 1 4.6.2c.3.1.5.2.6.4l.1.5v28h11l.5.1.3.5.2 1v1.3M408.4 70c.2.6.4 1 .4 1.4 0 .4 0 .7-.2.9-.2.2-.5.3-1 .3a24.3 24.3 0 0 1-5.4 0 1 1 0 0 1-.6-.4 2 2 0 0 1-.3-.6l-2.3-7h-13.1l-2.2 6.8c0 .3-.2.5-.3.6-.1.2-.3.4-.6.4a26 26 0 0 1-5 .2c-.3 0-.7-.2-.8-.4-.2-.2-.3-.5-.2-.8 0-.4.2-1 .4-1.5l10.7-31 .4-.7c.1-.2.4-.3.7-.4l1.3-.2a47.7 47.7 0 0 1 6.2.2c.3 0 .6.2.7.4l.4.8 10.8 31zm-16-25.7l-5 14.9h10l-5-14.9zM22.5 68.5c-6.9-6.9-6.9-18 0-24.9l23.8-23.8a17.6 17.6 0 0 1 20-3.4v.1L42.9 39.9a5.9 5.9 0 0 0 8.2 8.3l4.2-4.1c2.3-2.4 4.7-2.4 6.7-.4l9 8.9c2.3 2.4 2.6 4.4 0 7.1l-8.5 8.5c-2.4 2.3-4.6 2.5-7.1 0L39 51.9a5.9 5.9 0 0 0-8.3 8.3L51.5 81c4 4 10.6 4 14.7 0l17.4-17.5c4-4 4-10.6 0-14.7L70.3 35.4c-2.1-2-2-4.4.2-6.6l4.3-4.2.5-.7L92 40.6a21.8 21.8 0 0 1 0 31L74.2 89.2a21.9 21.9 0 0 1-30.9 0L22.5 68.5z"},sv:{viewBox:"0 0 463 111",title:"LokalTapiola",path:"M131 69.6l-.1 1.4-.2.9-.4.5-.4.2h-16c-.6 0-1.1-.2-1.5-.6-.4-.3-.6-.9-.6-1.7V38.7l.1-.5.6-.4 1.1-.2a15 15 0 0 1 4.5.2c.3.1.5.2.6.4l.2.5v28h11c.1 0 .3 0 .4.2.2 0 .3.2.4.4l.2 1v1.3M157.4 55c0-1.7-.1-3.4-.4-4.9-.3-1.5-.8-2.8-1.5-3.9a7 7 0 0 0-2.7-2.4 9.5 9.5 0 0 0-4.3-1c-1.8 0-3.2.4-4.4 1a8 8 0 0 0-2.8 2.7c-.8 1-1.3 2.4-1.6 3.8a27.6 27.6 0 0 0 0 9.8 11 11 0 0 0 1.5 4c.7 1 1.6 1.8 2.7 2.4 1.2.6 2.6.8 4.4.8a7.9 7.9 0 0 0 7.2-3.6c.7-1 1.2-2.4 1.5-3.9.3-1.5.4-3 .4-4.7m7.5-.4c0 3-.4 5.5-1.1 7.8-.7 2.3-1.8 4.2-3.2 5.8a13.7 13.7 0 0 1-5.3 3.6c-2 .9-4.5 1.3-7.3 1.3-2.7 0-5-.4-7-1a12.4 12.4 0 0 1-8.1-8.9 28 28 0 0 1 0-15.6 14 14 0 0 1 8.5-9.4c2.1-.8 4.5-1.2 7.3-1.2 2.6 0 5 .3 7 1a12.4 12.4 0 0 1 8.1 8.8c.7 2.2 1 4.8 1 7.8M196.3 71.5l-.1.5a1 1 0 0 1-.6.4l-1.2.2a17 17 0 0 1-4.3 0c-.5-.1-.9-.2-1.1-.4l-.5-.7L177.9 55v16.5l-.1.6-.6.3-1 .2a15 15 0 0 1-4.6-.2c-.3 0-.5-.2-.6-.3a.8.8 0 0 1-.2-.6V38.7c0-.2 0-.4.2-.5.1-.2.3-.3.6-.4l1-.2a14.8 14.8 0 0 1 4.6.2c.3.1.5.2.6.4l.1.5v14.8l10.2-14.8.5-.6.7-.3a20.7 20.7 0 0 1 5.7 0l.6.4.2.5-.3 1-.9 1.5-9.6 12.5 10.5 15.8.7 1.4.1.6M213.6 44.3l-5 14.9h10l-5-14.9zm16 25.6l.4 1.6c0 .3 0 .6-.2.8-.2.2-.6.3-1 .4a26.7 26.7 0 0 1-5.5-.2 1 1 0 0 1-.5-.3l-.3-.6-2.3-7H207l-2.2 6.8-.3.7-.6.4-1.1.2a27.7 27.7 0 0 1-3.8 0c-.5-.1-.8-.2-1-.4-.2-.2-.2-.5-.2-1l.4-1.4 10.8-31c0-.3.2-.5.4-.7.1-.2.3-.4.6-.4l1.4-.2a44.9 44.9 0 0 1 6.2.2c.3 0 .6.2.7.4l.4.8 10.8 31zM253.6 69.6V71l-.2.9-.4.5-.4.2h-16c-.6 0-1.1-.2-1.5-.6-.4-.3-.6-.9-.6-1.7V38.7c0-.2 0-.4.2-.5 0-.2.3-.3.5-.4l1.1-.2a15 15 0 0 1 4.5.2c.3.1.5.2.6.4l.2.5v28h11c.1 0 .3 0 .4.2.2 0 .3.2.4.4l.2 1v1.3M276.3 40.6v1.3l-.3 1-.3.4-.5.2h-8.7v28.1c0 .2 0 .3-.2.5l-.6.3-1 .2a15.2 15.2 0 0 1-4.6-.2l-.6-.3a.7.7 0 0 1-.1-.5V43.5h-8.8c-.1 0-.3 0-.4-.2-.2 0-.3-.3-.3-.5l-.2-.9a10.7 10.7 0 0 1 .2-3.6c0-.2.1-.4.3-.5l.4-.1h24.6l.5.1.3.5.2 1v1.3M288.6 44.3l-5 14.9h10l-5-14.9zm16 25.6l.4 1.6c0 .3 0 .6-.2.8-.2.2-.5.3-1 .4a26.8 26.8 0 0 1-5.4-.2 1 1 0 0 1-.6-.3l-.3-.6-2.3-7H282l-2.2 6.8-.3.7-.6.4-1 .2a27.9 27.9 0 0 1-3.9 0c-.5-.1-.8-.2-1-.4-.2-.2-.2-.5-.2-1l.4-1.4 10.8-31 .4-.7c.1-.2.3-.4.7-.4l1.3-.2a45 45 0 0 1 6.2.2c.3 0 .6.2.7.4l.4.8 10.8 31zM326 48.8c0-1.2-.3-2.2-.7-3-.4-.8-1-1.4-1.6-1.8-.6-.4-1.3-.6-2-.7l-2.1-.1h-3V55h3.2c1.1 0 2-.2 2.8-.5.8-.3 1.4-.7 1.9-1.2a8 8 0 0 0 1.5-4.5m7.4-.5c0 2-.3 3.7-1 5.2a10 10 0 0 1-2.6 3.8c-1.2 1-2.6 1.8-4.3 2.4a20 20 0 0 1-6 .8h-3V72l-.7.3-1 .2a14.8 14.8 0 0 1-4.6-.2c-.2 0-.4-.2-.5-.3a.8.8 0 0 1-.2-.5V40.2c0-.8.2-1.5.7-1.9.4-.4 1-.6 1.7-.6h8.2a27.3 27.3 0 0 1 5 .5c1.1.2 2.2.6 3.2 1.1 1 .6 2 1.3 2.8 2.1.7.9 1.3 1.9 1.7 3 .4 1.2.6 2.5.6 3.9M346 71.6c0 .2 0 .3-.2.5l-.6.3-1 .2a15.1 15.1 0 0 1-4.6-.2c-.2 0-.4-.2-.5-.3a.8.8 0 0 1-.2-.5v-33c0-.1 0-.3.2-.4 0-.2.3-.3.5-.4l1.1-.2a14.5 14.5 0 0 1 4.5.2c.3.1.5.2.6.4l.2.5v32.9zM377.5 55c0-1.7-.1-3.4-.4-4.9-.3-1.5-.8-2.8-1.5-3.9a7 7 0 0 0-2.7-2.4 9.5 9.5 0 0 0-4.3-1c-1.8 0-3.2.4-4.4 1a8 8 0 0 0-2.8 2.7c-.8 1-1.3 2.4-1.6 3.8a27.8 27.8 0 0 0 0 9.8 11 11 0 0 0 1.5 4c.7 1 1.6 1.8 2.7 2.4 1.2.6 2.6.8 4.4.8a7.9 7.9 0 0 0 7.2-3.6c.7-1 1.2-2.4 1.5-3.9.3-1.5.4-3 .4-4.7m7.5-.4c0 3-.4 5.5-1.1 7.8-.7 2.3-1.8 4.2-3.2 5.8a13.8 13.8 0 0 1-5.3 3.6c-2 .9-4.5 1.3-7.2 1.3-2.8 0-5.1-.4-7.1-1a12.3 12.3 0 0 1-8.1-8.9 28 28 0 0 1 0-15.6 14 14 0 0 1 8.5-9.4c2.1-.8 4.5-1.2 7.3-1.2 2.6 0 5 .3 7 1a12.4 12.4 0 0 1 8.1 8.8c.7 2.2 1 4.8 1 7.8M410.1 69.6V71l-.3.9c0 .2-.2.4-.3.5l-.5.2h-16c-.6 0-1-.2-1.5-.6-.4-.3-.6-.9-.6-1.7V38.7c0-.2 0-.4.2-.5.1-.2.3-.3.6-.4l1-.2a14.9 14.9 0 0 1 4.6.2c.3.1.5.2.6.4l.2.5v28h11c.1 0 .3 0 .4.2l.3.4.2 1 .1 1.3M426.8 44.3l-5 14.9h10l-5-14.9zm16 25.6l.5 1.6c0 .3 0 .6-.3.8-.2.2-.5.3-1 .4a26.8 26.8 0 0 1-5.4-.2 1 1 0 0 1-.6-.3l-.2-.6-2.4-7h-13l-2.3 6.8c0 .3-.2.5-.3.7l-.5.4-1.1.2a27.6 27.6 0 0 1-3.9 0l-1-.4c-.1-.2-.2-.5-.1-1l.4-1.4 10.7-31 .4-.7c.2-.2.4-.4.7-.4l1.3-.2a45 45 0 0 1 6.2.2c.4 0 .6.2.8.4l.4.8 10.8 31zM21.8 68.6c-7-7-7-18.1 0-25l23.8-23.8a17.7 17.7 0 0 1 20-3.4L42.2 40a5.9 5.9 0 0 0 8.2 8.3l4.2-4.1c2.3-2.4 4.6-2.4 6.7-.4l9 9c2.3 2.3 2.6 4.4 0 7l-8.6 8.5c-2.3 2.3-4.5 2.5-7 0L38.3 51.9a5.9 5.9 0 0 0-8.3 8.3L50.8 81c4 4 10.6 4 14.6 0L83 63.4c4-4 4-10.6 0-14.7L69.6 35.4c-2.1-2-2-4.4.2-6.6l4.3-4.3.5-.6 16.7 16.7a21.9 21.9 0 0 1 0 31L73.5 89.3a21.9 21.9 0 0 1-31 0L21.9 68.6z"},en:{viewBox:"0 0 460 111",title:"LocalTapiola",path:"M131.6 69.7V71l-.3 1c0 .2-.2.4-.3.5l-.5.1h-16c-.5 0-1-.1-1.4-.5-.5-.3-.7-1-.7-1.7V38.7l.2-.4c.1-.2.3-.3.6-.4l1-.2a14.8 14.8 0 0 1 4.6.2c.3.1.5.2.6.4l.2.4v28h11l.4.2.3.5.2 1 .1 1.3M158 55.2c0-1.8 0-3.5-.4-5-.2-1.5-.7-2.8-1.4-3.9a7 7 0 0 0-2.8-2.4 9.4 9.4 0 0 0-4.3-1c-1.7 0-3.2.4-4.4 1a8 8 0 0 0-2.8 2.7c-.7 1-1.2 2.4-1.5 3.8a27.6 27.6 0 0 0 0 9.8 11 11 0 0 0 1.4 3.9c.7 1 1.6 1.9 2.8 2.5 1.1.5 2.6.8 4.3.8a7.9 7.9 0 0 0 7.2-3.6c.7-1.1 1.2-2.4 1.5-3.9.3-1.5.5-3 .5-4.7m7.4-.4c0 2.9-.4 5.5-1 7.8-.8 2.2-1.9 4.2-3.3 5.8A13.7 13.7 0 0 1 156 72c-2.1.8-4.6 1.3-7.3 1.3s-5-.4-7.1-1.1a12.3 12.3 0 0 1-8-8.8 28 28 0 0 1 0-15.6 14 14 0 0 1 8.5-9.4c2-.8 4.5-1.2 7.2-1.2s5 .3 7 1 3.7 1.8 5.1 3.2c1.4 1.5 2.4 3.3 3 5.6.8 2.2 1.1 4.8 1.1 7.8M213.2 44.4l-5 14.8h10l-5-14.8zm16 25.6c.3.6.4 1.2.4 1.5 0 .4 0 .7-.2.9-.2.2-.5.3-1 .3a26.6 26.6 0 0 1-5.4-.1c-.3 0-.5-.2-.6-.3l-.3-.6-2.3-7h-13l-2.3 6.8c0 .3-.2.5-.3.6l-.5.4-1.1.2a27.2 27.2 0 0 1-3.9 0c-.4 0-.8-.2-1-.4-.1-.2-.2-.5-.1-.8l.4-1.6L208.7 39l.4-.7.7-.5 1.3-.1a47 47 0 0 1 6.2.1c.4.1.6.3.8.5l.4.8L229.2 70zM253.3 69.7l-.1 1.3-.2 1-.3.5-.5.1h-16c-.6 0-1-.1-1.5-.5-.4-.3-.6-1-.6-1.7V38.7c0-.1 0-.3.2-.4.1-.2.3-.3.6-.4l1-.2a14.8 14.8 0 0 1 4.6.2l.5.4c.2.1.2.3.2.4v28h11l.5.2.3.5.2 1v1.3M275.9 40.7V42l-.3 1-.3.4-.5.2h-8.7v28c0 .2 0 .4-.2.6l-.6.3-1 .2a15.3 15.3 0 0 1-4.6-.2c-.2 0-.4-.2-.5-.3a.7.7 0 0 1-.2-.5V43.6h-8.7c-.2 0-.4 0-.5-.2l-.3-.5-.2-.9a10.9 10.9 0 0 1 .2-3.6c0-.2.2-.4.3-.5l.5-.1h24.5l.5.1.3.5.2 1v1.3M288.2 44.4l-5 14.8h10l-5-14.8zm16 25.6l.4 1.5c0 .4 0 .7-.2.9-.2.2-.6.3-1 .3a26.7 26.7 0 0 1-5.5-.1 1 1 0 0 1-.5-.3l-.3-.6-2.3-7h-13.1l-2.2 6.8-.3.6c-.1.2-.3.3-.6.4l-1 .2a27.3 27.3 0 0 1-3.9 0c-.5 0-.8-.2-1-.4-.2-.2-.2-.5-.2-.8l.4-1.6L283.7 39l.4-.7c.1-.2.3-.4.7-.5l1.3-.1a47.4 47.4 0 0 1 6.2.1c.3.1.6.3.7.5l.4.8L304.2 70zM325.5 48.9c0-1.2-.2-2.2-.6-3-.5-.8-1-1.4-1.6-1.8-.6-.4-1.3-.6-2-.7l-2.1-.2h-3v11.9h3.1c1.2 0 2.1-.2 2.9-.5.7-.3 1.4-.7 1.8-1.3.5-.5.9-1.2 1.1-2 .3-.7.4-1.5.4-2.4m7.4-.5c0 2-.3 3.7-.9 5.2a10 10 0 0 1-2.6 3.8c-1.2 1-2.6 1.8-4.3 2.3-1.7.6-3.7.8-6 .8h-3v11.2l-.1.5-.6.3-1 .2a14.9 14.9 0 0 1-4.6-.2c-.3 0-.5-.2-.6-.3a.8.8 0 0 1-.1-.5V40.3c0-.8.2-1.5.6-1.9.5-.4 1-.6 1.8-.6h8.2a27.6 27.6 0 0 1 5 .5c1 .2 2.1.6 3.2 1.1a8.9 8.9 0 0 1 4.5 5.1c.3 1.2.5 2.4.5 3.9M345.5 71.7l-.1.5-.6.3-1 .2a15 15 0 0 1-4.6-.2c-.3 0-.5-.2-.6-.3a.8.8 0 0 1-.2-.5v-33c0-.1 0-.3.2-.4.1-.2.3-.3.6-.4l1-.2a14.5 14.5 0 0 1 4.6.2c.3.1.5.2.6.4l.1.4v33zM377 55.2c0-1.8 0-3.5-.4-5-.3-1.5-.7-2.8-1.4-3.9a7 7 0 0 0-2.8-2.4 9.4 9.4 0 0 0-4.3-1c-1.8 0-3.2.4-4.4 1a8 8 0 0 0-2.8 2.7c-.7 1-1.2 2.4-1.5 3.8a27.8 27.8 0 0 0 0 9.8 11 11 0 0 0 1.4 3.9c.7 1 1.6 1.9 2.8 2.5 1.1.5 2.6.8 4.3.8a7.9 7.9 0 0 0 7.2-3.6c.7-1.1 1.2-2.4 1.5-3.9.3-1.5.5-3 .5-4.7m7.4-.4c0 2.9-.4 5.5-1 7.8-.8 2.2-1.9 4.2-3.3 5.8A13.8 13.8 0 0 1 375 72a21.6 21.6 0 0 1-14.4.2 12.3 12.3 0 0 1-8-8.8 28 28 0 0 1 0-15.6c.8-2.2 1.9-4.2 3.3-5.7a14 14 0 0 1 5.2-3.7c2.1-.8 4.6-1.2 7.3-1.2s5 .3 7 1 3.7 1.8 5 3.2c1.4 1.5 2.5 3.3 3.2 5.6.7 2.2 1 4.8 1 7.8M409.6 69.7a11.5 11.5 0 0 1-.3 2.3c0 .2-.2.4-.3.5l-.5.1h-16c-.5 0-1-.1-1.4-.5-.4-.3-.7-1-.7-1.7V38.7l.2-.4c.1-.2.3-.3.6-.4l1.1-.2a14.7 14.7 0 0 1 4.5.2c.3.1.5.2.6.4l.2.4v28h11l.4.2.3.5.2 1 .1 1.3M426.3 44.4l-5 14.8h10l-5-14.8zm16 25.6c.3.6.4 1.2.4 1.5.1.4 0 .7-.2.9-.2.2-.5.3-1 .3a26.7 26.7 0 0 1-5.4-.1c-.3 0-.5-.2-.6-.3l-.3-.6-2.3-7h-13l-2.3 6.8c0 .3-.2.5-.3.6 0 .2-.3.3-.5.4l-1.1.2a27.1 27.1 0 0 1-3.9 0c-.4 0-.7-.2-1-.4-.1-.2-.2-.5-.1-.8l.4-1.6L421.8 39l.4-.7.7-.5 1.3-.1a47.3 47.3 0 0 1 6.2.1c.4.1.6.3.8.5l.4.8L442.3 70zM22.5 68.6c-6.9-6.9-6.9-18 0-25L46.3 20a17.6 17.6 0 0 1 20-3.4v.1L42.9 40a5.9 5.9 0 0 0 8.2 8.3l4.2-4.1c2.3-2.4 4.7-2.4 6.7-.4l9 8.9c2.3 2.4 2.6 4.4 0 7.1l-8.5 8.5c-2.4 2.3-4.6 2.5-7.1 0L39 52a5.9 5.9 0 0 0-8.3 8.3L51.5 81c4 4 10.6 4 14.7 0l17.4-17.5c4-4 4-10.6 0-14.7L70.3 35.5c-2.1-2-2-4.4.2-6.6l4.3-4.3.5-.6L92 40.7a21.8 21.8 0 0 1 0 31L74.2 89.3a21.8 21.8 0 0 1-30.9 0L22.5 68.6zM195.7 67.4a13.7 13.7 0 0 1-.2 2l-.2.5-.5.6c-.2.2-.5.5-1.1.8l-2 1a18.2 18.2 0 0 1-6.3 1A18 18 0 0 1 179 72c-2-.7-3.6-1.8-5-3.3a14.7 14.7 0 0 1-3-5.4c-.7-2.2-1.1-4.8-1.1-7.7 0-3 .4-5.6 1.2-7.9.8-2.3 1.9-4.2 3.3-5.7 1.4-1.6 3.1-2.8 5-3.6a17.2 17.2 0 0 1 14 .6l1.3.8.5.6.2.7.1.9a16.4 16.4 0 0 1-.2 3.5c0 .2-.2.4-.3.5l-.5.2-1-.5a16.8 16.8 0 0 0-4-2 10 10 0 0 0-6.9.3 8 8 0 0 0-2.7 2.4c-.8 1-1.4 2.3-1.8 3.8-.4 1.5-.6 3.2-.6 5 0 2 .3 3.9.7 5.4.4 1.5 1 2.7 1.8 3.7s1.7 1.7 2.8 2.1c1.1.5 2.3.7 3.7.7a10.6 10.6 0 0 0 5.6-1.4l1.7-1c.4-.2.7-.4 1-.4l.4.1c0 .1.2.2.2.5l.2.9v1.5"}};var F=function(e){var a=e.inverse,r=e.logoId,i=e.language;var d=a?M:O;var n=Y[i],o=n.title,s=n.path,l=n.viewBox;return t("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",fill:d,"aria-labelledby":r,viewBox:l},t("title",{id:r},o),t("path",{d:s}))};var P=e("duet_logo",function(){function e(e){a(this,e);this.logoId=E("DuetLogo");this.theme="";this.margin="auto";this.inverse=false;this.size="medium";this.href="/";this.accessibleLabelDefaults={fi:"Siirry etusivulle.",sv:"Gå till förstasidan.",en:"Go to front page."};this.accessibleLabel=k(this.accessibleLabelDefaults);this.language=x()}e.prototype.watchLanguageStateHandler=function(e,t){if(e!==t&&this.accessibleLabel===this.accessibleLabelDefaults[t]){this.accessibleLabel=k(this.accessibleLabelDefaults,e)}};e.prototype.componentWillLoad=function(){p(this)};e.prototype.connectedCallback=function(){y(this)};e.prototype.disconnectedCallback=function(){S(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.nativeLink){this.nativeLink.focus(e)}return[2]}))}))};e.prototype.render=function(){var e;var a=this;var r=this.href?"a":"div";return t(d,{class:{"duet-m-0":this.margin==="none"}},t(r,{href:this.href,ref:function(e){return a.nativeLink=e},"aria-label":this.accessibleLabel,class:(e={"duet-logo":true},e[this.size]=true,e["duet-theme-turva"]=this.theme==="turva",e["duet-logo-en"]=this.language==="en",e["duet-logo-sv"]=this.language==="sv",e)},this.theme==="turva"?t(N,{logoId:this.logoId,inverse:this.inverse}):t(F,{logoId:this.logoId,inverse:this.inverse,language:this.language})))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{language:["watchLanguageStateHandler"]}},enumerable:false,configurable:true});return e}());P.style=K}}}));
@@ -1,4 +0,0 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n["throw"](t))}catch(t){o(t)}}function l(t){t.done?r(t.value):i(t.value).then(a,s)}l((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return l([t,e])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(r=0)),r)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=e.call(t,r)}catch(t){s=[6,t];i=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(t,e){var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0)r[n]=t[n];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++){if(e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i]))r[n[i]]=t[n[i]]}return r};var __spreadArray=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n<i;n++){if(o||!(n in e)){if(!o)o=Array.prototype.slice.call(e,0,n);o[n]=e[n]}}return t.concat(o||Array.prototype.slice.call(e))};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register(["./p-10695d55.system.js"],(function(t){"use strict";var e;return{setters:[function(t){e=t.z}],execute:function(){var r=this;function n(t){return t.split("-")[1]}function i(t){return t==="y"?"height":"width"}function o(t){return t.split("-")[0]}function a(t){return["top","bottom"].includes(o(t))?"x":"y"}function s(t,e,r){var s=t.reference,l=t.floating;var f=s.x+s.width/2-l.width/2;var u=s.y+s.height/2-l.height/2;var c=a(e);var v=i(c);var d=s[v]/2-l[v]/2;var h=o(e);var p=c==="x";var g;switch(h){case"top":g={x:f,y:s.y-l.height};break;case"bottom":g={x:f,y:s.y+s.height};break;case"right":g={x:s.x+s.width,y:u};break;case"left":g={x:s.x-l.width,y:u};break;default:g={x:s.x,y:s.y}}switch(n(e)){case"start":g[c]-=d*(r&&p?-1:1);break;case"end":g[c]+=d*(r&&p?-1:1);break}return g}var l=function(t,e,n){return __awaiter(r,void 0,void 0,(function(){var r,i,o,a,l,f,u,c,v,d,h,p,g,y,m,x,_,b,w,A,R,T,E,L,k,O;var S,P;return __generator(this,(function(C){switch(C.label){case 0:r=n.placement,i=r===void 0?"bottom":r,o=n.strategy,a=o===void 0?"absolute":o,l=n.middleware,f=l===void 0?[]:l,u=n.platform;c=f.filter(Boolean);return[4,u.isRTL==null?void 0:u.isRTL(e)];case 1:v=C.sent();return[4,u.getElementRects({reference:t,floating:e,strategy:a})];case 2:d=C.sent();h=s(d,i,v),p=h.x,g=h.y;y=i;m={};x=0;_=0;C.label=3;case 3:if(!(_<c.length))return[3,11];b=c[_],w=b.name,A=b.fn;return[4,A({x:p,y:g,initialPlacement:i,placement:y,strategy:a,middlewareData:m,rects:d,platform:u,elements:{reference:t,floating:e}})];case 4:R=C.sent(),T=R.x,E=R.y,L=R.data,k=R.reset;p=T!=null?T:p;g=E!=null?E:g;m=__assign(__assign({},m),(S={},S[w]=__assign(__assign({},m[w]),L),S));if(!(k&&x<=50))return[3,10];x++;if(!(typeof k==="object"))return[3,9];if(k.placement){y=k.placement}if(!k.rects)return[3,8];if(!(k.rects===true))return[3,6];return[4,u.getElementRects({reference:t,floating:e,strategy:a})];case 5:O=C.sent();return[3,7];case 6:O=k.rects;C.label=7;case 7:d=O;C.label=8;case 8:P=s(d,y,v),p=P.x,g=P.y;C.label=9;case 9:_=-1;return[3,10];case 10:_++;return[3,3];case 11:return[2,{x:p,y:g,placement:y,strategy:a,middlewareData:m}]}}))}))};function f(t){return __assign({top:0,right:0,bottom:0,left:0},t)}function u(t){return typeof t!=="number"?f(t):{top:t,right:t,bottom:t,left:t}}function c(t){return __assign(__assign({},t),{top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height})}function v(t,e){return __awaiter(this,void 0,void 0,(function(){var r,n,i,o,a,s,l,f,v,d,h,p,g,y,m,x,_,b,w,A,R,T,E,L,k,O,S,P,C,D,j,F,W;var H;return __generator(this,(function(B){switch(B.label){case 0:if(e===void 0){e={}}n=t.x,i=t.y,o=t.platform,a=t.rects,s=t.elements,l=t.strategy;f=e.boundary,v=f===void 0?"clippingAncestors":f,d=e.rootBoundary,h=d===void 0?"viewport":d,p=e.elementContext,g=p===void 0?"floating":p,y=e.altBoundary,m=y===void 0?false:y,x=e.padding,_=x===void 0?0:x;b=u(_);w=g==="floating"?"reference":"floating";A=s[m?w:g];T=c;L=(E=o).getClippingRect;H={};return[4,o.isElement==null?void 0:o.isElement(A)];case 1:if(!((r=B.sent())!=null?r:true))return[3,2];k=A;return[3,5];case 2:O=A.contextElement;if(O)return[3,4];return[4,o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)];case 3:O=B.sent();B.label=4;case 4:k=O;B.label=5;case 5:return[4,L.apply(E,[(H.element=k,H.boundary=v,H.rootBoundary=h,H.strategy=l,H)])];case 6:R=T.apply(void 0,[B.sent()]);S=g==="floating"?__assign(__assign({},a.floating),{x:n,y:i}):a.reference;return[4,o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)];case 7:P=B.sent();return[4,o.isElement==null?void 0:o.isElement(P)];case 8:if(!B.sent())return[3,10];return[4,o.getScale==null?void 0:o.getScale(P)];case 9:D=B.sent()||{x:1,y:1};return[3,11];case 10:D={x:1,y:1};B.label=11;case 11:C=D;F=c;if(!o.convertOffsetParentRelativeRectToViewportRelativeRect)return[3,13];return[4,o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:S,offsetParent:P,strategy:l})];case 12:W=B.sent();return[3,14];case 13:W=S;B.label=14;case 14:j=F.apply(void 0,[W]);return[2,{top:(R.top-j.top+b.top)/C.y,bottom:(j.bottom-R.bottom+b.bottom)/C.y,left:(R.left-j.left+b.left)/C.x,right:(j.right-R.right+b.right)/C.x}]}}))}))}var d=Math.min;var h=Math.max;function p(t,e,r){return h(t,d(e,r))}var g=t("a",(function(t){return{name:"arrow",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,o,s,l,f,c,v,d,h,g,y,m,x,_,b,w,A,R,T,E,L,k,O,S,P,C,D,j,F,W,H;var B,V;return __generator(this,(function(M){switch(M.label){case 0:r=t||{},o=r.element,s=r.padding,l=s===void 0?0:s;f=e.x,c=e.y,v=e.placement,d=e.rects,h=e.platform,g=e.elements;if(o==null){return[2,{}]}y=u(l);m={x:f,y:c};x=a(v);_=i(x);return[4,h.getDimensions(o)];case 1:b=M.sent();w=x==="y";A=w?"top":"left";R=w?"bottom":"right";T=w?"clientHeight":"clientWidth";E=d.reference[_]+d.reference[x]-m[x]-d.floating[_];L=m[x]-d.reference[x];return[4,h.getOffsetParent==null?void 0:h.getOffsetParent(o)];case 2:k=M.sent();O=k?k[T]:0;S=!O;if(S)return[3,4];return[4,h.isElement==null?void 0:h.isElement(k)];case 3:S=!M.sent();M.label=4;case 4:if(S){O=g.floating[T]||d.floating[_]}P=E/2-L/2;C=y[A];D=O-b[_]-y[R];j=O/2-b[_]/2+P;F=p(C,j,D);W=n(v)!=null&&j!=F&&d.reference[_]/2-(j<C?y[A]:y[R])-b[_]/2<0;H=W?j<C?C-j:D-j:0;return[2,(B={},B[x]=m[x]-H,B.data=(V={},V[x]=F,V.centerOffset=j-F,V),B)]}}))}))}}}));var y={left:"right",right:"left",bottom:"top",top:"bottom"};function m(t){return t.replace(/left|right|bottom|top/g,(function(t){return y[t]}))}function x(t,e,r){if(r===void 0){r=false}var o=n(t);var s=a(t);var l=i(s);var f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";if(e.reference[l]>e.floating[l]){f=m(f)}return{main:f,cross:m(f)}}var _={start:"end",end:"start"};function b(t){return t.replace(/start|end/g,(function(t){return _[t]}))}function w(t){var e=m(t);return[b(t),e,b(e)]}function A(t,e,r){var n=["left","right"];var i=["right","left"];var o=["top","bottom"];var a=["bottom","top"];switch(t){case"top":case"bottom":if(r)return e?i:n;return e?n:i;case"left":case"right":return e?o:a;default:return[]}}function R(t,e,r,i){var a=n(t);var s=A(o(t),r==="start",i);if(a){s=s.map((function(t){return t+"-"+a}));if(e){s=s.concat(s.map(b))}}return s}var T=t("f",(function(t){if(t===void 0){t={}}return{name:"flip",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,n,i,a,s,l,f,u,c,d,h,p,g,y,_,b,A,T,E,L,k,O,S,P,C,D,j,F,W,H,B,V,M,N,z,I,X;return __generator(this,(function(Y){switch(Y.label){case 0:n=e.placement,i=e.middlewareData,a=e.rects,s=e.initialPlacement,l=e.platform,f=e.elements;u=t.mainAxis,c=u===void 0?true:u,d=t.crossAxis,h=d===void 0?true:d,p=t.fallbackPlacements,g=t.fallbackStrategy,y=g===void 0?"bestFit":g,_=t.fallbackAxisSideDirection,b=_===void 0?"none":_,A=t.flipAlignment,T=A===void 0?true:A,E=__rest(t,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);L=o(n);k=o(s)===s;return[4,l.isRTL==null?void 0:l.isRTL(f.floating)];case 1:O=Y.sent();S=p||(k||!T?[m(s)]:w(s));if(!p&&b!=="none"){S.push.apply(S,R(s,T,b,O))}P=__spreadArray([s],S,true);return[4,v(e,E)];case 2:C=Y.sent();D=[];j=((r=i.flip)==null?void 0:r.overflows)||[];if(c){D.push(C[L])}if(h){F=x(n,a,O),W=F.main,H=F.cross;D.push(C[W],C[H])}j=__spreadArray(__spreadArray([],j,true),[{placement:n,overflows:D}],false);if(!D.every((function(t){return t<=0}))){M=(((B=i.flip)==null?void 0:B.index)||0)+1;N=P[M];if(N){return[2,{data:{index:M,overflows:j},reset:{placement:N}}]}z=(V=j.filter((function(t){return t.overflows[0]<=0})).sort((function(t,e){return t.overflows[1]-e.overflows[1]}))[0])==null?void 0:V.placement;if(!z){switch(y){case"bestFit":{X=(I=j.map((function(t){return[t.placement,t.overflows.filter((function(t){return t>0})).reduce((function(t,e){return t+e}),0)]})).sort((function(t,e){return t[1]-e[1]}))[0])==null?void 0:I[0];if(X){z=X}break}case"initialPlacement":z=s;break}}if(n!==z){return[2,{reset:{placement:z}}]}}return[2,{}]}}))}))}}}));function E(t,e){return __awaiter(this,void 0,void 0,(function(){var r,i,s,l,f,u,c,v,d,h,p,g,y,m;return __generator(this,(function(x){switch(x.label){case 0:r=t.placement,i=t.platform,s=t.elements;return[4,i.isRTL==null?void 0:i.isRTL(s.floating)];case 1:l=x.sent();f=o(r);u=n(r);c=a(r)==="x";v=["left","top"].includes(f)?-1:1;d=l&&c?-1:1;h=typeof e==="function"?e(t):e;p=typeof h==="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:__assign({mainAxis:0,crossAxis:0,alignmentAxis:null},h),g=p.mainAxis,y=p.crossAxis,m=p.alignmentAxis;if(u&&typeof m==="number"){y=u==="end"?m*-1:m}return[2,c?{x:y*d,y:g*v}:{x:g*v,y:y*d}]}}))}))}var L=t("o",(function(t){if(t===void 0){t=0}return{name:"offset",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,n,i;return __generator(this,(function(o){switch(o.label){case 0:r=e.x,n=e.y;return[4,E(e,t)];case 1:i=o.sent();return[2,{x:r+i.x,y:n+i.y,data:i}]}}))}))}}}));function k(t){return t==="x"?"y":"x"}var O=t("s",(function(t){if(t===void 0){t={}}return{name:"shift",options:t,fn:function(e){return __awaiter(this,void 0,void 0,(function(){var r,n,i,s,l,f,u,c,d,h,g,y,m,x,_,b,w,A,R,T,w,A,E,L,O;var S;return __generator(this,(function(P){switch(P.label){case 0:r=e.x,n=e.y,i=e.placement;s=t.mainAxis,l=s===void 0?true:s,f=t.crossAxis,u=f===void 0?false:f,c=t.limiter,d=c===void 0?{fn:function(t){var e=t.x,r=t.y;return{x:e,y:r}}}:c,h=__rest(t,["mainAxis","crossAxis","limiter"]);g={x:r,y:n};return[4,v(e,h)];case 1:y=P.sent();m=a(o(i));x=k(m);_=g[m];b=g[x];if(l){w=m==="y"?"top":"left";A=m==="y"?"bottom":"right";R=_+y[w];T=_-y[A];_=p(R,_,T)}if(u){w=x==="y"?"top":"left";A=x==="y"?"bottom":"right";E=b+y[w];L=b-y[A];b=p(E,b,L)}O=d.fn(__assign(__assign({},e),(S={},S[m]=_,S[x]=b,S)));return[2,__assign(__assign({},O),{data:{x:O.x-r,y:O.y-n}})]}}))}))}}}));function S(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function P(t){return S(t).getComputedStyle(t)}function C(t){return t instanceof S(t).Node}function D(t){return C(t)?(t.nodeName||"").toLowerCase():""}function j(t){return t instanceof S(t).HTMLElement}function F(t){return t instanceof S(t).Element}function W(t){if(typeof ShadowRoot==="undefined"){return false}var e=S(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function H(t){var e=P(t),r=e.overflow,n=e.overflowX,i=e.overflowY,o=e.display;return/auto|scroll|overlay|hidden|clip/.test(r+i+n)&&!["inline","contents"].includes(o)}function B(t){return["table","td","th"].includes(D(t))}function V(t){var e=M();var r=P(t);return r.transform!=="none"||r.perspective!=="none"||!e&&(r.backdropFilter?r.backdropFilter!=="none":false)||!e&&(r.filter?r.filter!=="none":false)||["transform","perspective","filter"].some((function(t){return(r.willChange||"").includes(t)}))||["paint","layout","strict","content"].some((function(t){return(r.contain||"").includes(t)}))}function M(){if(typeof CSS==="undefined"||!CSS.supports)return false;return CSS.supports("-webkit-backdrop-filter","none")}function N(t){return["html","body","#document"].includes(D(t))}var z=Math.min;var I=Math.max;var X=Math.round;function Y(t){var e=P(t);var r=parseFloat(e.width)||0;var n=parseFloat(e.height)||0;var i=j(t);var o=i?t.offsetWidth:r;var a=i?t.offsetHeight:n;var s=X(r)!==o||X(n)!==a;if(s){r=o;n=a}return{width:r,height:n,fallback:s}}function G(t){return!F(t)?t.contextElement:t}var q={x:1,y:1};function J(t){var e=G(t);if(!j(e)){return q}var r=e.getBoundingClientRect();var n=Y(e),i=n.width,o=n.height,a=n.fallback;var s=(a?X(r.width):r.width)/i;var l=(a?X(r.height):r.height)/o;if(!s||!Number.isFinite(s)){s=1}if(!l||!Number.isFinite(l)){l=1}return{x:s,y:l}}var K={x:0,y:0};function Q(t,e,r){var n,i;if(e===void 0){e=true}if(!M()){return K}var o=t?S(t):window;if(!r||e&&r!==o){return K}return{x:((n=o.visualViewport)==null?void 0:n.offsetLeft)||0,y:((i=o.visualViewport)==null?void 0:i.offsetTop)||0}}function U(t,e,r,n){if(e===void 0){e=false}if(r===void 0){r=false}var i=t.getBoundingClientRect();var o=G(t);var a=q;if(e){if(n){if(F(n)){a=J(n)}}else{a=J(t)}}var s=Q(o,r,n);var l=(i.left+s.x)/a.x;var f=(i.top+s.y)/a.y;var u=i.width/a.x;var v=i.height/a.y;if(o){var d=S(o);var h=n&&F(n)?S(n):n;var p=d.frameElement;while(p&&n&&h!==d){var g=J(p);var y=p.getBoundingClientRect();var m=getComputedStyle(p);y.x+=(p.clientLeft+parseFloat(m.paddingLeft))*g.x;y.y+=(p.clientTop+parseFloat(m.paddingTop))*g.y;l*=g.x;f*=g.y;u*=g.x;v*=g.y;l+=y.x;f+=y.y;p=S(p).frameElement}}return c({width:u,height:v,x:l,y:f})}function Z(t){return((C(t)?t.ownerDocument:t.document)||window.document).documentElement}function $(t){if(F(t)){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function tt(t){var e=t.rect,r=t.offsetParent,n=t.strategy;var i=j(r);var o=Z(r);if(r===o){return e}var a={scrollLeft:0,scrollTop:0};var s={x:1,y:1};var l={x:0,y:0};if(i||!i&&n!=="fixed"){if(D(r)!=="body"||H(o)){a=$(r)}if(j(r)){var f=U(r);s=J(r);l.x=f.x+r.clientLeft;l.y=f.y+r.clientTop}}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}}function et(t){return U(Z(t)).left+$(t).scrollLeft}function rt(t){var e=Z(t);var r=$(t);var n=t.ownerDocument.body;var i=I(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth);var o=I(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);var a=-r.scrollLeft+et(t);var s=-r.scrollTop;if(P(n).direction==="rtl"){a+=I(e.clientWidth,n.clientWidth)-i}return{width:i,height:o,x:a,y:s}}function nt(t){if(D(t)==="html"){return t}var e=t.assignedSlot||t.parentNode||W(t)&&t.host||Z(t);return W(e)?e.host:e}function it(t){var e=nt(t);if(N(e)){return e.ownerDocument.body}if(j(e)&&H(e)){return e}return it(e)}function ot(t,e){var r;if(e===void 0){e=[]}var n=it(t);var i=n===((r=t.ownerDocument)==null?void 0:r.body);var o=S(n);if(i){return e.concat(o,o.visualViewport||[],H(n)?n:[])}return e.concat(n,ot(n))}function at(t,e){var r=S(t);var n=Z(t);var i=r.visualViewport;var o=n.clientWidth;var a=n.clientHeight;var s=0;var l=0;if(i){o=i.width;a=i.height;var f=M();if(!f||f&&e==="fixed"){s=i.offsetLeft;l=i.offsetTop}}return{width:o,height:a,x:s,y:l}}function st(t,e){var r=U(t,true,e==="fixed");var n=r.top+t.clientTop;var i=r.left+t.clientLeft;var o=j(t)?J(t):{x:1,y:1};var a=t.clientWidth*o.x;var s=t.clientHeight*o.y;var l=i*o.x;var f=n*o.y;return{width:a,height:s,x:l,y:f}}function lt(t,e,r){var n;if(e==="viewport"){n=at(t,r)}else if(e==="document"){n=rt(Z(t))}else if(F(e)){n=st(e,r)}else{var i=Q(t);n=__assign(__assign({},e),{x:e.x-i.x,y:e.y-i.y})}return c(n)}function ft(t,e){var r=nt(t);if(r===e||!F(r)||N(r)){return false}return P(r).position==="fixed"||ft(r,e)}function ut(t,e){var r=e.get(t);if(r){return r}var n=ot(t).filter((function(t){return F(t)&&D(t)!=="body"}));var i=null;var o=P(t).position==="fixed";var a=o?nt(t):t;while(F(a)&&!N(a)){var s=P(a);var l=V(a);if(!l&&s.position==="fixed"){i=null}var f=o?!l&&!i:!l&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||H(a)&&!l&&ft(t,a);if(f){n=n.filter((function(t){return t!==a}))}else{i=s}a=nt(a)}e.set(t,n);return n}function ct(t){var e=t.element,r=t.boundary,n=t.rootBoundary,i=t.strategy;var o=r==="clippingAncestors"?ut(e,this._c):[].concat(r);var a=__spreadArray(__spreadArray([],o,true),[n],false);var s=a[0];var l=a.reduce((function(t,r){var n=lt(e,r,i);t.top=I(n.top,t.top);t.right=z(n.right,t.right);t.bottom=z(n.bottom,t.bottom);t.left=I(n.left,t.left);return t}),lt(e,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function vt(t){return Y(t)}function dt(t,e){if(!j(t)||P(t).position==="fixed"){return null}if(e){return e(t)}return t.offsetParent}function ht(t){var e=nt(t);while(j(e)&&!N(e)){if(V(e)){return e}else{e=nt(e)}}return null}function pt(t,e){var r=S(t);if(!j(t)){return r}var n=dt(t,e);while(n&&B(n)&&P(n).position==="static"){n=dt(n,e)}if(n&&(D(n)==="html"||D(n)==="body"&&P(n).position==="static"&&!V(n))){return r}return n||ht(t)||r}function gt(t,e,r){var n=j(e);var i=Z(e);var o=r==="fixed";var a=U(t,true,o,e);var s={scrollLeft:0,scrollTop:0};var l={x:0,y:0};if(n||!n&&!o){if(D(e)!=="body"||H(i)){s=$(e)}if(j(e)){var f=U(e,true,o,e);l.x=f.x+e.clientLeft;l.y=f.y+e.clientTop}else if(i){l.x=et(i)}}return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}var yt={getClippingRect:ct,convertOffsetParentRelativeRectToViewportRelativeRect:tt,isElement:F,getDimensions:vt,getOffsetParent:pt,getDocumentElement:Z,getScale:J,getElementRects:function(t){return __awaiter(this,void 0,void 0,(function(){var e,r,n,i,o,a,s,l;var f;return __generator(this,(function(u){switch(u.label){case 0:e=t.reference,r=t.floating,n=t.strategy;i=this.getOffsetParent||pt;o=this.getDimensions;f={};a=gt;s=[e];return[4,i(r)];case 1:f.reference=a.apply(void 0,s.concat([u.sent(),n]));l=[{x:0,y:0}];return[4,o(r)];case 2:return[2,(f.floating=__assign.apply(void 0,l.concat([u.sent()])),f)]}}))}))},getClientRects:function(t){return Array.from(t.getClientRects())},isRTL:function(t){return P(t).direction==="rtl"}};var mt=t("c",(function(t,e,r){var n=new Map;var i=__assign({platform:yt},r);var o=__assign(__assign({},i.platform),{_c:n});return l(t,e,__assign(__assign({},i),{platform:o}))}));var xt=function(){function t(t,e){this.element=t;this.target=e||document.body}t.prototype.go=function(){this.stub=document.createElement("div");this.element.insertAdjacentElement("afterend",this.stub);this.target.appendChild(this.element);this.element.style.zIndex=e};t.prototype.resume=function(t){if(t===void 0){t=0}if(t){setTimeout(this._resume.bind(this),t)}else{this._resume()}};t.prototype._resume=function(){this.element.style.zIndex="";this.stub.insertAdjacentElement("beforebegin",this.element);this.stub.remove()};return t}();t("T",xt)}}}));
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as t,c as e,h as i,g as a}from"./p-27530b53.js";import{d,e as o}from"./p-bd779757.js";import{i as s}from"./p-4ebf1618.js";import{c as n}from"./p-c1325e35.js";import{f as l,F as r}from"./p-3c2ae0d5.js";import{f as m}from"./p-f077c646.js";import{g as h,a as u,c as p,d as g}from"./p-076452be.js";import"./p-5a9d75e1.js";const c=class{constructor(i){var a,d;t(this,i),this.duetOpen=e(this,"duetOpen",7),this.duetClose=e(this,"duetClose",7),this.duetBeforeClose=e(this,"duetBeforeClose",7),this.modalId=n("DuetModal"),this.slotDefaultId=n("DuetModal-default-slot"),this.isAndroidDevice=(null===(d=null===(a=null===navigator||void 0===navigator?void 0:navigator.userAgent)||void 0===a?void 0:a.toLowerCase())||void 0===d?void 0:d.indexOf("android"))>-1||null,this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent),this.handleAndroidResizeEvents=()=>{"INPUT"==document.activeElement.tagName&&window.setTimeout((function(){var t;try{null===(t=null===document||void 0===document?void 0:document.activeElement)||void 0===t||t.scrollIntoViewIfNeeded(!0)}catch(t){}}),100)},this.open=!1,this.language=h(),this.accessibleCloseLabelDefaults={fi:"Sulje ikkuna",sv:"Stäng fönstret",en:"Close the dialog"},this.accessibleCloseLabel=u(this.accessibleCloseLabelDefaults,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.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,d(this.modalEl,{reserveScrollBarGap:!0}),setTimeout((()=>{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"),o(this.modalEl),this.duetClose.emit(),setTimeout((()=>{l(this.focusedElBeforeOpen)}),600),this.isAndroidDevice&&window.removeEventListener("resize",this.handleAndroidResizeEvents))}watchLanguageStateHandler(t,e){t!==e&&this.accessibleCloseLabel===this.accessibleCloseLabelDefaults[e]&&(this.accessibleCloseLabel=u(this.accessibleCloseLabelDefaults,t))}activeChanged(){this.open=this.active}componentWillLoad(){s(this)}componentDidLoad(){this.active&&(this.open=!0,this.modalEl.classList.add("duet-disable-transitions"))}connectedCallback(){p(this)}disconnectedCallback(){g(this),o(this.modalEl)}handleKeyUp(t){this.open&&m(t)&&this.closeModal(t)}async show(){this.open=!0}async hide(){this.open=!1}closeModal(t){this.duetBeforeClose.emit({originalEvent:t,component:"duet-modal"}),t.defaultPrevented||setTimeout((()=>{this.hide()}),1)}render(){var t;let e="primary",a="secondary";return"turva"===this.theme&&(e="primary-turva",a="secondary-turva"),i("div",{ref:t=>this.modalEl=t,"aria-label":this.accessibleLabel,"aria-labelledby":!!this.heading&&this.modalId,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-describedby":this.accessibleDescribedBy,role:"dialog","aria-modal":!this.isSafariBrowser,tabindex:"-1","aria-flowto":this.slotDefaultId,class:{"duet-modal-overlay":!0,"duet-theme-turva":"turva"===this.theme,"duet-modal-active":this.open}},i(r,{moveFocusTo:this.buttonEl}),i("div",{ref:t=>this.modalInnerEl=t,class:{"duet-modal-inner":!0,"duet-modal-large":"large"===this.size},onClick:t=>{this.closeOnBlur&&(t.target||t.srcElement)===this.modalInnerEl&&this.closeModal(t)}},i("div",{class:{"duet-modal":!0,[this.size]:!0}},"none"!==this.gutterSize&&i("duet-spacer",null),i("div",{class:"duet-modal-close"},i("duet-button",{ref:t=>this.buttonEl=t,variation:"plain",accessibleLabel:this.accessibleCloseLabel,color:a,iconSize:"large",icon:"navigation-close",iconOnly:!0,margin:"none",theme:this.theme,onClick:t=>this.closeModal(t),fixed:!0})),i("div",{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}},i("div",{class:"duet-modal-header"},i("span",{class:"duet-modal-inner-slot-top"},i("slot",{name:"top"})),this.icon&&i("duet-icon",{name:this.icon,size:"xx-large",color:this.color||e}),this.heading&&i("duet-heading",{"visual-level":null!==(t=this.headingVisualLevel)&&void 0!==t?t:this.headingLevel,level:this.headingLevel,theme:this.theme,id:this.modalId},this.heading)),i("span",{class:"duet-modal-inner-slot-default",id:this.slotDefaultId},i("slot",null))))),i(r,{moveFocusTo:this.buttonEl}))}get element(){return a(this)}static get watchers(){return{open:["openChanged"],language:["watchLanguageStateHandler"],active:["activeChanged"]}}};c.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:900;max-height:100vh;overflow-y:auto;visibility:hidden;background:rgba(0, 41, 77, 0.85);opacity:0;transition:300ms ease;transition-delay:200ms}.duet-modal-overlay.duet-theme-turva{background:rgba(23, 28, 58, 0.85)}.duet-modal-overlay.duet-modal-active{visibility:visible;opacity:1;transition:300ms ease;transition-delay:0s}.duet-modal-overlay.duet-disable-transitions{transition:none}::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}}@media (max-width: 35.9375em){.duet-modal-inner.duet-modal-large{padding-right:0;padding-left:0}}.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(0, 41, 77);background:rgb(255, 255, 255);border-radius:4px;opacity:0;transition:300ms ease;transition-delay:0ms;transform:scale(0.96)}.duet-theme-turva .duet-modal{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-modal-active .duet-modal{opacity:1;transition:300ms ease;transition-delay:200ms;transform:none}.duet-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:focus{outline:0}.duet-modal-body{width:100%;padding:36px 28px}.duet-modal-body.duet-modal-gutter-none{padding:0 !important}.duet-modal-body.duet-modal-gutter-small{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large{padding:48px 36px}@media (max-width: 22.5em){.duet-modal-body{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large{padding:48px 28px}}@media (max-width: 35.9375em){.duet-modal-body{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large{padding:48px 36px}}@media (min-width: 36em){.duet-modal-body{padding:36px}.duet-modal-body.duet-modal-gutter-large{padding:28px 72px}}@media (min-width: 48em){.duet-modal-body{padding:36px 72px}.duet-modal-body.duet-modal-gutter-large{padding:36px 72px}}@media (min-width: 76.25em){.duet-modal-body{padding:36px 48px 48px}.duet-modal-body.duet-modal-gutter-large{padding:48px 94px}.small .duet-modal-body{padding:36px 48px}}.duet-modal-header{text-align:center}.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(0, 41, 77);text-decoration:none;text-overflow:ellipsis;letter-spacing:-0.01rem;white-space:nowrap}.duet-modal-heading.duet-p-0{padding:0 !important}.duet-modal-heading.duet-m-0{margin:0 !important}';export{c as duet_modal}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as t,c as i,h as e,F as a,H as s,g as n}from"./p-27530b53.js";import{i as r}from"./p-4ebf1618.js";import{c as o}from"./p-c1325e35.js";import{d as h}from"./p-0b3f675e.js";import{k as l,l as p,d,b as u,a as c,c as g,m,n as b}from"./p-f077c646.js";import{g as v,a as k,c as w,d as f}from"./p-076452be.js";import"./p-5a9d75e1.js";const y=class{constructor(e){t(this,e),this.duetPageChange=i(this,"duetPageChange",3),this.listId=o("duet-pagination-list"),this.actionChain=async(t,i)=>{if(0===t)this.current=1;else if(i!==t){const i=Math.ceil(t/this.visibleItems)-1;i!==this.internalSectionIndex&&(this.internalSectionIndex=i,await this.setFocus())}return!0},this.emitPageEvent=h(((t,i)=>{const e=Number(i||this.current);this.duetPageChange.emit({component:"duet-pagination",from:e*this.take,to:e*this.take+this.take,current:e,take:this.take,type:"page",originalEvent:t})}),100),this.getEnteredNumber=h((t=>{this.emitPageEvent(t,this.numbersStore),this.current=Number(this.numbersStore),this.numbersStore="",this.duetPageChange.emit({component:"duet-pagination",from:this.current*this.take,to:this.current*this.take+this.take,current:this.current,take:this.take,type:"jump",originalEvent:t})}),500),this.numbersStore="",this.totalPages=10,this.internalSectionIndex=0,this.language=v(),this.theme="",this.jumpString="...",this.variation="default",this.accessibleDescribedBy=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleLabelsDefaults={en:{next_page:"Next page",previous_page:"Previous page",first_page:"First page",last_page:"Last page",jump_to:"Jump to page",go_to:"Go to page",description:"You may use arrow keys to select page number",pagination_label:"Pagination, choose a number to jump to a page",prev_section:"Show previous {0} page numbers, screen reader user should use arrowkeys to navigate",next_section:"Show next {0} page numbers, screen reader user should use arrowkeys to navigate"},fi:{next_page:"Seuraava sivu",previous_page:"Edellinen sivu",first_page:"Ensimmäinen sivu",last_page:"Viimeinen sivu",jump_to:"Siirry sivulle",go_to:"Siirry sivulle",description:"Voit käyttää nuolinäppäimiä sivunumeron valitsemiseen",pagination_label:"Sivutus, valitse sivunumero siirtyäksesi sivulle",prev_section:"Näytä edelliset {0} sivunumerot, käyttäjän pitää käyttää nuolinäppäimiä navigoidaksesi",next_section:"Näytä seuraavat {0} sivunumerot, käyttäjän pitää käyttää nuolinäppäimiä navigoidaksesi"},sv:{next_page:"Nästa sida",previous_page:"Föregående sida",first_page:"Första sidan",last_page:"Sista sidan",jump_to:"Hoppa till sida",go_to:"Hoppa till sida",description:"Du kan använda piltangenterna för att välja sida",pagination_label:"Sidutning, välj en siffra för att hoppa till en sida",prev_section:"Visa föregående {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera",next_section:"Visa nästa {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera"}},this.accessibleLabels=k(this.accessibleLabelsDefaults),this.take=5,this.visibleItems=5,this.total=1e3,this.ariaControls="",this.current=1}watchLanguageStateHandler(t,i){t!==i&&this.accessibleLabels===this.accessibleLabelsDefaults[i]&&(this.accessibleLabels=k(this.accessibleLabelsDefaults,t))}watchPropTotalHandler(){return this.calculatePageTake(),!0}watchStateHandler(t,i){return this.actionChain(t,i)}componentWillLoad(){this.internalSectionIndex=Math.ceil(this.current/this.visibleItems)-1,this.calculatePageTake(),r(this)}componentWillRender(){0!==this.internalSectionIndex&&this.internalSectionIndex!==this.totalPages&&this.calculatePageTake()}componentDidRender(){this.setFocus()}connectedCallback(){w(this)}disconnectedCallback(){f(this)}calculatePageTake(){this.totalPages=Math.ceil(this.total/this.take)}async onMouseHandler(t,i){t.preventDefault(),t.stopPropagation(),this.current=this.current+i,this.emitPageEvent(t)}async onKeyboardDown(t){let i=this.current;(d(t)||u(t))&&i--,(c(t)||g(t))&&i++,l(t)&&i<=this.totalPages&&(this.current=i,this.emitPageEvent(t)),p(t)&&this.shouldDisplayNavigation()&&(this.numbersStore=this.numbersStore+t.key,Number(this.numbersStore)>this.totalPages&&(this.numbersStore=this.totalPages+""),this.getEnteredNumber(t))}async setFocus(){const t=this.nativeNav.querySelector("li.duet-pagination-item-is-active duet-button");t&&await t.setFocus()}pageClickHandler(t){t.preventDefault();const i=Number(t.target.getAttribute("data-id"));this.current=i,this.emitPageEvent({},i)}sectionClickHandler(t,i){t.preventDefault();let e=this.internalSectionIndex+i;e*(this.take*this.visibleItems)>this.total&&(e=this.internalSectionIndex),this.internalSectionIndex=e>=0?e:0}jumpToStart(t){t.preventDefault(),this.internalSectionIndex=0,this.current=1,this.emitPageEvent(t)}jumpToEnd(t){t.preventDefault(),this.internalSectionIndex=Math.ceil(this.totalPages/this.take-1),this.current=this.totalPages,this.emitPageEvent(t)}renderPageNumbers(){const t=[];let i=this.internalSectionIndex*this.visibleItems;do{if(i++,i>this.totalPages)break;t.push(e("li",{class:{"duet-pagination-item":!0,"duet-pagination-item-is-active":i===this.current},role:"menuitem"},e("duet-button",{class:{"duet-pagination-link":!0},color:i!==this.current?"turva"!==this.theme?"secondary":"secondary-turva":"turva"!==this.theme?"primary":"primary-turva","data-id":i,"center-text":!0,variation:"plain",margin:"none",accessibleLabel:`${this.accessibleLabels.go_to} ${i}`,onClick:t=>this.pageClickHandler(t),theme:this.theme},e("div",{class:"duet-pagination-page-number","aria-hidden":!0},i))))}while(i<this.visibleItems+this.internalSectionIndex*this.visibleItems);return t}shouldDisplayNavigation(){return"compact"!==this.variation&&!(2*this.visibleItems>this.total/this.take)}render(){return e(s,{onKeyDown:t=>this.onKeyboardDown(t)},e("nav",{role:"navigation","aria-labelledby":this.accessibleLabelledBy?`${this.accessibleLabelledBy} ${this.listId}`:this.listId,"aria-describedby":this.accessibleDescribedBy?`${this.accessibleDescribedBy} ${this.listId}`:this.listId,"aria-descriptions":this.accessibleDescription,"aria-details":this.accessibleDetails,ref:t=>this.nativeNav=t,"aria-controls":this.ariaControls,class:{"duet-pagination-nav":!0,[`duet-pagination-variation-${this.variation}`]:!0}},""!==this.numbersStore&&e("div",{"aria-live":"assertive","aria-relevant":"text",class:"duet-pagination-overlay","aria-label":`${this.accessibleLabels.jump_to} ${this.numbersStore}`,part:"navigation-overlay"},e("duet-badge",{theme:this.theme},"jump to page : ",this.numbersStore)),e("ol",{id:this.listId,class:{"duet-pagination":!0,"duet-pagination-is-dimmed":""!==this.numbersStore},role:"menubar","aria-label":this.accessibleLabels.pagination_label,"aria-description":this.accessibleLabels.description},e("li",{class:{"duet-pagination-page-button":!0,"duet-pagination-button-first":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{disabled:0===this.internalSectionIndex&&this.current<=1,"data-direction":"back",onClick:t=>this.onMouseHandler(t,-1),"accessible-label":this.accessibleLabels.previous_page,"icon-name":"action-arrow-left-small",theme:this.theme})),0!==this.internalSectionIndex&&this.shouldDisplayNavigation()&&e(a,null,e("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},e("duet-button",{class:"duet-pagination-link duet-pagination-link-jump-back","center-text":"true",variation:"plain",color:"turva"!==this.theme?"secondary":"secondary-turva",margin:"none",accessibleLabel:this.accessibleLabels.first_page,onClick:t=>this.jumpToStart(t),theme:this.theme},e("div",{class:"duet-pagination-page-number"},"1"))),e("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},e("duet-button",{class:"duet-pagination-link duet-pagination-link-dots-back","center-text":"true",color:"turva"!==this.theme?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.prev_section.replace("{0}",`${this.visibleItems}`),onClick:t=>this.sectionClickHandler(t,-1),theme:this.theme},e("div",{class:"duet-pagination-page-number","aria-hidden":"true"},"...")))),this.renderPageNumbers(),this.internalSectionIndex*(this.visibleItems+2)<this.totalPages&&this.shouldDisplayNavigation()&&e(a,null,e("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},e("duet-button",{class:"duet-pagination-link duet-pagination-link-dots-forward","center-text":"true",color:"turva"!==this.theme?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.next_section.replace("{0}",`${this.visibleItems}`),onClick:t=>this.sectionClickHandler(t,1),theme:this.theme},e("div",{class:"duet-pagination-page-number","aria-hidden":"true"},"..."))),e("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},e("duet-button",{class:"duet-pagination-link duet-pagination-link-jump-forward","center-text":"true",color:"turva"!==this.theme?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.last_page,onClick:t=>this.jumpToEnd(t),theme:this.theme},e("div",{class:"duet-pagination-page-number"},this.totalPages)))),e("li",{class:{"duet-pagination-page-button":!0,"duet-pagination-button-last":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{disabled:this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1,class:"duet-date-dialog-next","accessible-label":this.accessibleLabels.next_page,onClick:t=>this.onMouseHandler(t,1),"icon-name":"action-arrow-right-small",theme:this.theme})))))}get element(){return n(this)}static get watchers(){return{language:["watchLanguageStateHandler"],total:["watchPropTotalHandler"],current:["watchStateHandler"]}}};y.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline-block;margin:0 auto}.duet-pagination-nav{position:relative}.duet-pagination ::part(button){border:0}.duet-pagination,.duet-pagination li{display:flex;flex-wrap:wrap;gap:0.1rem;align-items:center}.duet-pagination-item-is-active .duet-pagination-page-number{border-bottom-color:inherit;border-bottom-style:solid;border-bottom-width:2px}.duet-pagination duet-button{width:30px;min-width:36px;font-weight:600;text-decoration:none;border-left-width:0}.duet-pagination-overlay{position:absolute;top:1rem;z-index:300;width:100%;text-align:center}.duet-pagination.duet-pagination-is-dimmed{opacity:0.5}";const x=class{constructor(e){t(this,e),this.duetRangeStepUpdate=i(this,"duetRangeStepUpdate",7),this.leftBn=o("duetRangeStepper-left"),this.rightBn=o("duetRangeStepper-right"),this.handleClick=(t,i)=>{t.preventDefault(),this.stepIndex+=i,this.clampStepIndex(),this.handleStepClick(t)},this.language=v(),this.theme="",this.stepIndex=1,this.stepSize=50,this.total=1e3,this.ariaLabelsDefaults={en:{next_increment:"Next range increment",previous_increment:"Previous range increment",x_of_y:"{0}–{1} of {2}"},fi:{next_increment:"Seuraava välillä",previous_increment:"Edellinen välillä",x_of_y:"{0}–{1} / {2}"},sv:{next_increment:"Nästa intervall",previous_increment:"Föregående intervall",x_of_y:"{0}–{1} av {2}"}},this.ariaLabels=k(this.ariaLabelsDefaults),this.ariaControls=""}watchLanguageStateHandler(t,i){t!==i&&this.ariaLabels===this.ariaLabelsDefaults[i]&&(this.ariaLabels=k(this.ariaLabelsDefaults,t))}watchStepIndexStateHandler(t){this.leftBnRef&&this.rightBnRef&&(t<=1?(this.element===document.activeElement&&this.rightBnRef.setFocus(),this.leftBnRef.setAttribute("disabled","")):this.leftBnRef.removeAttribute("disabled"),t>=this.total/this.stepSize?(this.element===document.activeElement&&this.leftBnRef.setFocus(),this.rightBnRef.setAttribute("disabled","")):this.rightBnRef.removeAttribute("disabled"))}watchStepSizeStateHandler(t,i){t!==i&&(this.stepIndex*t>this.total&&(this.stepIndex=Math.ceil(this.total/t)),this.watchStepIndexStateHandler(this.stepIndex))}handleStepClick(t){this.duetRangeStepUpdate.emit({originalEvent:t,component:"duet-range-stepper",from:this.getFrom(),to:this.getTo(),index:this.stepIndex})}componentWillLoad(){r(this),this.clampStepIndex()}componentDidLoad(){this.watchStepIndexStateHandler(this.stepIndex)}connectedCallback(){w(this)}disconnectedCallback(){f(this)}clampStepIndex(){this.stepIndex<1?this.stepIndex=1:this.stepIndex*this.stepSize>this.total&&(this.stepIndex=Math.ceil(this.total/this.stepSize))}getFrom(){return Math.floor((this.stepIndex-1)*this.stepSize)+1}getTo(){return Math.min(Math.floor(this.stepIndex*this.stepSize),this.total)}generateStepSize(){return this.ariaLabels.x_of_y.replace("{0}",String(this.getFrom())).replace("{1}",String(this.getTo())).replace("{2}",String(this.total))}generatePreviousIncrementLabel(){return 1===this.getFrom()?"":this.ariaLabels.x_of_y.replace("{0}",String(Math.max(this.getFrom()-this.stepSize,1))).replace("{1}",String(Math.min(this.getFrom()-1,this.total))).replace("{2}",String(this.total))}generateNextIncrementLabel(){return this.getTo()===this.total?"":this.ariaLabels.x_of_y.replace("{0}",String(this.getTo()+1)).replace("{1}",String(Math.min(this.getTo()+this.stepSize,this.total))).replace("{2}",String(this.total))}async onKeyboardDown(t){let i=this.stepIndex,e=1;(d(t)||u(t)||m(t))&&(i--,e=-1,this.leftBnRef.setFocus()),(c(t)||g(t)||b(t))&&(i++,e=1),l(t)&&i>0&&i*this.stepSize<=this.total&&this.handleClick(t,e)}render(){return e("div",{class:{"duet-range-stepper":!0,"duet-theme-turva":"turva"===this.theme},onKeyDown:t=>this.onKeyboardDown(t),"aria-controls":this.ariaControls},e("span",{class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),e("duet-action-button",{class:"duet-range-step-button duet-range-step-minus",onClick:t=>this.handleClick(t,-1),id:this.leftBn,"accessible-label":`${this.ariaLabels.previous_increment} ${this.generatePreviousIncrementLabel()}`,ref:t=>this.leftBnRef=t,part:"navigation-arrow",iconName:"action-arrow-left-small"}),e("duet-action-button",{class:"duet-range-step-button duet-range-step-plus",onClick:t=>this.handleClick(t,1),"accessible-label":`${this.ariaLabels.next_increment} ${this.generateNextIncrementLabel()}`,id:this.rightBn,ref:t=>this.rightBnRef=t,part:"navigation-arrow",iconName:"action-arrow-right-small"}))}get element(){return n(this)}static get watchers(){return{language:["watchLanguageStateHandler"],stepIndex:["watchStepIndexStateHandler"],stepSize:["watchStepSizeStateHandler"]}}};x.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline-block;margin:0 auto}.duet-range-stepper{display:flex;flex-wrap:wrap;gap:0;align-items:baseline;justify-content:center;min-width:30px;min-height:30px;font-weight:600;text-decoration:none;border-left-width:0}.duet-range-stepper{white-space:nowrap}.duet-range-stepper .duet-range-step-counter{font-weight:600;color:rgb(0, 41, 77)}.duet-range-stepper ::part(button){border:0}";export{y as duet_pagination,x as duet_range_stepper}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{z as t}from"./p-7649b95e.js";function n(t){return t.split("-")[1]}function e(t){return"y"===t?"height":"width"}function o(t){return t.split("-")[0]}function r(t){return["top","bottom"].includes(o(t))?"x":"y"}function i(t,i,a){let{reference:s,floating:c}=t;const l=s.x+s.width/2-c.width/2,u=s.y+s.height/2-c.height/2,f=r(i),d=e(f),y=s[d]/2-c[d]/2,m="x"===f;let h;switch(o(i)){case"top":h={x:l,y:s.y-c.height};break;case"bottom":h={x:l,y:s.y+s.height};break;case"right":h={x:s.x+s.width,y:u};break;case"left":h={x:s.x-c.width,y:u};break;default:h={x:s.x,y:s.y}}switch(n(i)){case"start":h[f]-=y*(a&&m?-1:1);break;case"end":h[f]+=y*(a&&m?-1:1)}return h}function a(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function s(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function c(t,n){var e;void 0===n&&(n={});const{x:o,y:r,platform:i,rects:c,elements:l,strategy:u}=t,{boundary:f="clippingAncestors",rootBoundary:d="viewport",elementContext:y="floating",altBoundary:m=!1,padding:h=0}=n,p=a(h),x=l[m?"floating"===y?"reference":"floating":y],g=s(await i.getClippingRect({element:null==(e=await(null==i.isElement?void 0:i.isElement(x)))||e?x:x.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:f,rootBoundary:d,strategy:u})),w="floating"===y?{...c.floating,x:o,y:r}:c.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),v=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},A=s(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:w,offsetParent:b,strategy:u}):w);return{top:(g.top-A.top+p.top)/v.y,bottom:(A.bottom-g.bottom+p.bottom)/v.y,left:(g.left-A.left+p.left)/v.x,right:(A.right-g.right+p.right)/v.x}}const l=Math.min,u=Math.max;function f(t,n,e){return u(t,l(n,e))}const d=t=>({name:"arrow",options:t,async fn(o){const{element:i,padding:s=0}=t||{},{x:c,y:l,placement:u,rects:d,platform:y,elements:m}=o;if(null==i)return{};const h=a(s),p={x:c,y:l},x=r(u),g=e(x),w=await y.getDimensions(i),b="y"===x,v=b?"top":"left",A=b?"bottom":"right",k=b?"clientHeight":"clientWidth",S=d.reference[g]+d.reference[x]-p[x]-d.floating[g],R=p[x]-d.reference[x],P=await(null==y.getOffsetParent?void 0:y.getOffsetParent(i));let T=P?P[k]:0;T&&await(null==y.isElement?void 0:y.isElement(P))||(T=m.floating[k]||d.floating[g]);const C=h[v],D=T-w[g]-h[A],F=T/2-w[g]/2+(S/2-R/2),M=f(C,F,D),B=null!=n(u)&&F!=M&&d.reference[g]/2-(F<C?h[v]:h[A])-w[g]/2<0;return{[x]:p[x]-(B?F<C?C-F:D-F:0),data:{[x]:M,centerOffset:F-M}}}}),y={left:"right",right:"left",bottom:"top",top:"bottom"};function m(t){return t.replace(/left|right|bottom|top/g,(t=>y[t]))}const h={start:"end",end:"start"};function p(t){return t.replace(/start|end/g,(t=>h[t]))}const x=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(i){var a;const{placement:s,middlewareData:l,rects:u,initialPlacement:f,platform:d,elements:y}=i,{mainAxis:h=!0,crossAxis:x=!0,fallbackPlacements:g,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...A}=t,k=o(s),S=o(f)===f,R=await(null==d.isRTL?void 0:d.isRTL(y.floating)),P=g||(S||!v?[m(f)]:function(t){const n=m(t);return[p(t),n,p(n)]}(f));g||"none"===b||P.push(...function(t,e,r,i){const a=n(t);let s=function(t,n,e){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?n?r:o:n?o:r;case"left":case"right":return n?i:a;default:return[]}}(o(t),"start"===r,i);return a&&(s=s.map((t=>t+"-"+a)),e&&(s=s.concat(s.map(p)))),s}(f,v,b,R));const T=[f,...P],C=await c(i,A),D=[];let F=(null==(a=l.flip)?void 0:a.overflows)||[];if(h&&D.push(C[k]),x){const{main:t,cross:o}=function(t,o,i){void 0===i&&(i=!1);const a=n(t),s=r(t),c=e(s);let l="x"===s?a===(i?"end":"start")?"right":"left":"start"===a?"bottom":"top";return o.reference[c]>o.floating[c]&&(l=m(l)),{main:l,cross:m(l)}}(s,u,R);D.push(C[t],C[o])}if(F=[...F,{placement:s,overflows:D}],!D.every((t=>t<=0))){var M,B;const t=((null==(M=l.flip)?void 0:M.index)||0)+1,n=T[t];if(n)return{data:{index:t,overflows:F},reset:{placement:n}};let e=null==(B=F.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:B.placement;if(!e)switch(w){case"bestFit":{var L;const t=null==(L=F.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:L[0];t&&(e=t);break}case"initialPlacement":e=f}if(s!==e)return{reset:{placement:e}}}return{}}}},g=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){const{x:i,y:a}=e,s=await async function(t,e){const{placement:i,platform:a,elements:s}=t,c=await(null==a.isRTL?void 0:a.isRTL(s.floating)),l=o(i),u=n(i),f="x"===r(i),d=["left","top"].includes(l)?-1:1,y=c&&f?-1:1,m="function"==typeof e?e(t):e;let{mainAxis:h,crossAxis:p,alignmentAxis:x}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return u&&"number"==typeof x&&(p="end"===u?-1*x:x),f?{x:p*y,y:h*d}:{x:h*d,y:p*y}}(e,t);return{x:i+s.x,y:a+s.y,data:s}}}},w=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(n){const{x:e,y:i,placement:a}=n,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:t=>{let{x:n,y:e}=t;return{x:n,y:e}}},...d}=t,y={x:e,y:i},m=await c(n,d),h=r(o(a)),p="x"===h?"y":"x";let x=y[h],g=y[p];s&&(x=f(x+m["y"===h?"top":"left"],x,x-m["y"===h?"bottom":"right"])),l&&(g=f(g+m["y"===p?"top":"left"],g,g-m["y"===p?"bottom":"right"]));const w=u.fn({...n,[h]:x,[p]:g});return{...w,data:{x:w.x-e,y:w.y-i}}}}};function b(t){var n;return(null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function v(t){return b(t).getComputedStyle(t)}function A(t){return t instanceof b(t).Node}function k(t){return A(t)?(t.nodeName||"").toLowerCase():""}function S(t){return t instanceof b(t).HTMLElement}function R(t){return t instanceof b(t).Element}function P(t){return"undefined"!=typeof ShadowRoot&&(t instanceof b(t).ShadowRoot||t instanceof ShadowRoot)}function T(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=v(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!["inline","contents"].includes(r)}function C(t){return["table","td","th"].includes(k(t))}function D(t){const n=F(),e=v(t);return"none"!==e.transform||"none"!==e.perspective||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function F(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function M(t){return["html","body","#document"].includes(k(t))}const B=Math.min,L=Math.max,E=Math.round;function O(t){const n=v(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const r=S(t),i=r?t.offsetWidth:e,a=r?t.offsetHeight:o,s=E(e)!==i||E(o)!==a;return s&&(e=i,o=a),{width:e,height:o,fallback:s}}function j(t){return R(t)?t:t.contextElement}const N={x:1,y:1};function _(t){const n=j(t);if(!S(n))return N;const e=n.getBoundingClientRect(),{width:o,height:r,fallback:i}=O(n);let a=(i?E(e.width):e.width)/o,s=(i?E(e.height):e.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const z={x:0,y:0};function H(t,n,e){var o,r;if(void 0===n&&(n=!0),!F())return z;const i=t?b(t):window;return!e||n&&e!==i?z:{x:(null==(o=i.visualViewport)?void 0:o.offsetLeft)||0,y:(null==(r=i.visualViewport)?void 0:r.offsetTop)||0}}function V(t,n,e,o){void 0===n&&(n=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),i=j(t);let a=N;n&&(o?R(o)&&(a=_(o)):a=_(t));const c=H(i,e,o);let l=(r.left+c.x)/a.x,u=(r.top+c.y)/a.y,f=r.width/a.x,d=r.height/a.y;if(i){const t=b(i),n=o&&R(o)?b(o):o;let e=t.frameElement;for(;e&&o&&n!==t;){const t=_(e),n=e.getBoundingClientRect(),o=getComputedStyle(e);n.x+=(e.clientLeft+parseFloat(o.paddingLeft))*t.x,n.y+=(e.clientTop+parseFloat(o.paddingTop))*t.y,l*=t.x,u*=t.y,f*=t.x,d*=t.y,l+=n.x,u+=n.y,e=b(e).frameElement}}return s({width:f,height:d,x:l,y:u})}function W(t){return((A(t)?t.ownerDocument:t.document)||window.document).documentElement}function X(t){return R(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Y(t){return V(W(t)).left+X(t).scrollLeft}function q(t){if("html"===k(t))return t;const n=t.assignedSlot||t.parentNode||P(t)&&t.host||W(t);return P(n)?n.host:n}function G(t){const n=q(t);return M(n)?n.ownerDocument.body:S(n)&&T(n)?n:G(n)}function I(t,n){var e;void 0===n&&(n=[]);const o=G(t),r=o===(null==(e=t.ownerDocument)?void 0:e.body),i=b(o);return r?n.concat(i,i.visualViewport||[],T(o)?o:[]):n.concat(o,I(o))}function J(t,n,e){let o;if("viewport"===n)o=function(t,n){const e=b(t),o=W(t),r=e.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,c=0;if(r){i=r.width,a=r.height;const t=F();(!t||t&&"fixed"===n)&&(s=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:s,y:c}}(t,e);else if("document"===n)o=function(t){const n=W(t),e=X(t),o=t.ownerDocument.body,r=L(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),i=L(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let a=-e.scrollLeft+Y(t);const s=-e.scrollTop;return"rtl"===v(o).direction&&(a+=L(n.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:s}}(W(t));else if(R(n))o=function(t,n){const e=V(t,!0,"fixed"===n),o=e.top+t.clientTop,r=e.left+t.clientLeft,i=S(t)?_(t):{x:1,y:1};return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(n,e);else{const e=H(t);o={...n,x:n.x-e.x,y:n.y-e.y}}return s(o)}function K(t,n){const e=q(t);return!(e===n||!R(e)||M(e))&&("fixed"===v(e).position||K(e,n))}function Q(t,n){return S(t)&&"fixed"!==v(t).position?n?n(t):t.offsetParent:null}function U(t,n){const e=b(t);if(!S(t))return e;let o=Q(t,n);for(;o&&C(o)&&"static"===v(o).position;)o=Q(o,n);return o&&("html"===k(o)||"body"===k(o)&&"static"===v(o).position&&!D(o))?e:o||function(t){let n=q(t);for(;S(n)&&!M(n);){if(D(n))return n;n=q(n)}return null}(t)||e}function Z(t,n,e){const o=S(n),r=W(n),i="fixed"===e,a=V(t,!0,i,n);let s={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(o||!o&&!i)if(("body"!==k(n)||T(r))&&(s=X(n)),S(n)){const t=V(n,!0,i,n);c.x=t.x+n.clientLeft,c.y=t.y+n.clientTop}else r&&(c.x=Y(r));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}const $={getClippingRect:function(t){let{element:n,boundary:e,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===e?function(t,n){const e=n.get(t);if(e)return e;let o=I(t).filter((t=>R(t)&&"body"!==k(t))),r=null;const i="fixed"===v(t).position;let a=i?q(t):t;for(;R(a)&&!M(a);){const n=v(a),e=D(a);e||"fixed"!==n.position||(r=null),(i?!e&&!r:!e&&"static"===n.position&&r&&["absolute","fixed"].includes(r.position)||T(a)&&!e&&K(t,a))?o=o.filter((t=>t!==a)):r=n,a=q(a)}return n.set(t,o),o}(n,this._c):[].concat(e),o],a=i.reduce(((t,e)=>{const o=J(n,e,r);return t.top=L(o.top,t.top),t.right=B(o.right,t.right),t.bottom=B(o.bottom,t.bottom),t.left=L(o.left,t.left),t}),J(n,i[0],r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:n,offsetParent:e,strategy:o}=t;const r=S(e),i=W(e);if(e===i)return n;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const c={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==k(e)||T(i))&&(a=X(e)),S(e))){const t=V(e);s=_(e),c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-a.scrollLeft*s.x+c.x,y:n.y*s.y-a.scrollTop*s.y+c.y}},isElement:R,getDimensions:function(t){return O(t)},getOffsetParent:U,getDocumentElement:W,getScale:_,async getElementRects(t){let{reference:n,floating:e,strategy:o}=t;const r=this.getOffsetParent||U,i=this.getDimensions;return{reference:Z(n,await r(e),o),floating:{x:0,y:0,...await i(e)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===v(t).direction},tt=(t,n,e)=>{const o=new Map,r={platform:$,...e},a={...r.platform,_c:o};return(async(t,n,e)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:s}=e,c=a.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(n));let u=await s.getElementRects({reference:t,floating:n,strategy:r}),{x:f,y:d}=i(u,o,l),y=o,m={},h=0;for(let e=0;e<c.length;e++){const{name:a,fn:p}=c[e],{x,y:g,data:w,reset:b}=await p({x:f,y:d,initialPlacement:o,placement:y,strategy:r,middlewareData:m,rects:u,platform:s,elements:{reference:t,floating:n}});f=null!=x?x:f,d=null!=g?g:d,m={...m,[a]:{...m[a],...w}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(y=b.placement),b.rects&&(u=!0===b.rects?await s.getElementRects({reference:t,floating:n,strategy:r}):b.rects),({x:f,y:d}=i(u,y,l))),e=-1)}return{x:f,y:d,placement:y,strategy:r,middlewareData:m}})(t,n,{...r,platform:a})};class nt{constructor(t,n){this.element=t,this.target=n||document.body}go(){this.stub=document.createElement("div"),this.element.insertAdjacentElement("afterend",this.stub),this.target.appendChild(this.element),this.element.style.zIndex=t}resume(t=0){t?setTimeout(this._resume.bind(this),t):this._resume()}_resume(){this.element.style.zIndex="",this.stub.insertAdjacentElement("beforebegin",this.element),this.stub.remove()}}export{nt as T,d as a,tt as c,x as f,g as o,w as s}
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,a){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function o(e){try{l(a.next(e))}catch(e){r(e)}}function s(e){try{l(a["throw"](e))}catch(e){r(e)}}function l(e){e.done?n(e.value):i(e.value).then(o,s)}l((a=a.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},a,i,r,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(s){if(a)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(n=0)),n)try{if(a=1,i&&(r=s[0]&2?i["return"]:s[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;if(i=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){n.label=s[1];break}if(s[0]===6&&n.label<r[1]){n.label=r[1];r=s;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(s);break}if(r[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];i=0}finally{a=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register(["./p-ea8d7c61.system.js","./p-33b3aba4.system.js","./p-c8dc599d.system.js","./p-6b115b63.system.js","./p-b6d51921.system.js"],(function(e){"use strict";var t,n,a,i,r;return{setters:[function(e){t=e.r;n=e.h},function(e){a=e.i},function(e){i=e.a},function(e){r=e.a},function(){}],execute:function(){var o=function(e,t){if(t===void 0){t=2}if(e===0){return"0 Bytes"}var n=1024;var a=t<0?0:t;var i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"];var r=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,r)).toFixed(a))+" "+i[r]};var s=e("duet_upload_item",function(){function e(e){var n=this;t(this,e);this.fileUploadingInfo={fi:"Tiedosto latautuu",sv:"Filen laddas upp",en:"File is uploading"};this.onLinkClick=function(e){var t=n.data,a=t.url,i=t.meta;if(!!n.linkClickEvent){e.preventDefault();n.linkClickEvent.emit({component:"duet-upload",data:{name:n.data.item.name,url:a,meta:i}})}};this.theme="";this.data=undefined;this.type=undefined;this.showLinks=undefined;this.actions=undefined;this.label=undefined;this.categoryLabel=undefined;this.errorCodes=undefined;this.showCategory=undefined;this.linkClickEvent=undefined}e.prototype.componentWillLoad=function(){a(this)};e.prototype.focusActionButton=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!this.actionButton)return[3,2];return[4,this.actionButton.setFocus()];case 1:e.sent();e.label=2;case 2:return[2]}}))}))};e.prototype.getFileNameLine=function(){var e=this.data,t=e.item,a=e.size,s=e.uploaded,l=e.url,u=e.progress,c=e.error;var d=t.name;var h=n("span",{class:"duet-upload-item-name"},n("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),d);var m=n("span",{class:"duet-upload-item-size",style:{fontSize:"14px",fontWeight:"400"}},"(",o(a),")");switch(this.type){case"inprogress":return n("span",{class:"duet-upload-item-name",role:"status"},n("duet-paragraph",{class:"duet-upload-item-name",color:"gray-darker",margin:"none",weight:"semi-bold"},n("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),d),n("duet-visually-hidden",null,n("duet-paragraph",null,i(this.fileUploadingInfo))),n("duet-progress",{progress:Math.ceil(u),"aria-hidden":true}));case"pending":return n("span",{class:"duet-upload-item-name"},n("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),d);case"failure":return n("span",{class:"duet-upload-item-error",role:"status"},n("duet-paragraph",{class:"duet-upload-item-name",color:"danger",margin:"none",weight:"semi-bold"},n("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),d),n("duet-paragraph",{class:"duet-upload-item-error-label",size:"small",margin:"none",color:"danger"},r(c.type,this.errorCodes)));default:return s&&l&&this.showLinks?n("duet-paragraph",{color:"secondary",margin:"none",weight:"semi-bold"},n("duet-link",{onClick:this.onLinkClick,url:l,external:true},h),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),m):n("duet-paragraph",{color:"secondary",margin:"none",weight:"semi-bold"},h,n("duet-spacer",{size:"xx-small",direction:"horizontal"}),m)}};e.prototype.render=function(){var e=this;var t=this.data,a=t.uid,r=t.meta;var o=r&&r.badges?n("span",null,r.badges.map((function(e){return n("duet-badge",{color:"primary"},e)}))):undefined;var s="".concat(r&&r.badges?r.badges.join(","):""," ").concat(name);return n("div",{class:{"upload-item-row":true}},this.showCategory&&n("div",{class:"item-categories"},n("duet-heading",{class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},i(this.categoryLabel)),o),n("div",{class:{"item-name":true,"no-category":!this.showCategory}},!!this.label&&n("duet-heading",{class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},i(this.label)),this.getFileNameLine()),n("div",{class:"item-actions"},this.actions.map((function(t){return n("duet-action-button",{actionMeta:Object.assign({},r||{}),actionId:a||null,actionName:t.name,theme:e.theme,iconName:t.icon,iconColor:t.color,iconSize:t.size,background:t.background,"accessible-label":"".concat(s," ").concat(i(t.label)," "),accessibleTitle:false,ref:function(t){return e.actionButton=t}})}))))};return e}())}}}));
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as e,h as t}from"./p-27530b53.js";import{i as a}from"./p-4ebf1618.js";import{a as i}from"./p-076452be.js";import{a as s}from"./p-cf504df5.js";import"./p-5a9d75e1.js";const o=class{constructor(t){e(this,t),this.fileUploadingInfo={fi:"Tiedosto latautuu",sv:"Filen laddas upp",en:"File is uploading"},this.onLinkClick=e=>{const{url:t,meta:a}=this.data;this.linkClickEvent&&(e.preventDefault(),this.linkClickEvent.emit({component:"duet-upload",data:{name:this.data.item.name,url:t,meta:a}}))},this.theme="",this.data=void 0,this.type=void 0,this.showLinks=void 0,this.actions=void 0,this.label=void 0,this.categoryLabel=void 0,this.errorCodes=void 0,this.showCategory=void 0,this.linkClickEvent=void 0}componentWillLoad(){a(this)}async focusActionButton(){this.actionButton&&await this.actionButton.setFocus()}getFileNameLine(){const{item:e,size:a,uploaded:o,url:n,progress:r,error:l}=this.data,{name:d}=e,c=t("span",{class:"duet-upload-item-name"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),d),m=t("span",{class:"duet-upload-item-size",style:{fontSize:"14px",fontWeight:"400"}},"(",((e,t=2)=>{if(0===e)return"0 Bytes";const a=t<0?0:t,i=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,i)).toFixed(a))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][i]})(a),")");switch(this.type){case"inprogress":return t("span",{class:"duet-upload-item-name",role:"status"},t("duet-paragraph",{class:"duet-upload-item-name",color:"gray-darker",margin:"none",weight:"semi-bold"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),d),t("duet-visually-hidden",null,t("duet-paragraph",null,i(this.fileUploadingInfo))),t("duet-progress",{progress:Math.ceil(r),"aria-hidden":!0}));case"pending":return t("span",{class:"duet-upload-item-name"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),d);case"failure":return t("span",{class:"duet-upload-item-error",role:"status"},t("duet-paragraph",{class:"duet-upload-item-name",color:"danger",margin:"none",weight:"semi-bold"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),d),t("duet-paragraph",{class:"duet-upload-item-error-label",size:"small",margin:"none",color:"danger"},s(l.type,this.errorCodes)));default:return t("duet-paragraph",{color:"secondary",margin:"none",weight:"semi-bold"},o&&n&&this.showLinks?t("duet-link",{onClick:this.onLinkClick,url:n,external:!0},c):c,t("duet-spacer",{size:"xx-small",direction:"horizontal"}),m)}}render(){const{uid:e,meta:a}=this.data,s=a&&a.badges?t("span",null,a.badges.map((e=>t("duet-badge",{color:"primary"},e)))):void 0,o=`${a&&a.badges?a.badges.join(","):""} ${name}`;return t("div",{class:{"upload-item-row":!0}},this.showCategory&&t("div",{class:"item-categories"},t("duet-heading",{class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},i(this.categoryLabel)),s),t("div",{class:{"item-name":!0,"no-category":!this.showCategory}},!!this.label&&t("duet-heading",{class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},i(this.label)),this.getFileNameLine()),t("div",{class:"item-actions"},this.actions.map((s=>t("duet-action-button",{actionMeta:Object.assign({},a||{}),actionId:e||null,actionName:s.name,theme:this.theme,iconName:s.icon,iconColor:s.color,iconSize:s.size,background:s.background,"accessible-label":`${o} ${i(s.label)} `,accessibleTitle:!1,ref:e=>this.actionButton=e})))))}};export{o as duet_upload_item}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{h as t,r as e,c as i,H as a,g as s,F as d}from"./p-27530b53.js";import{i as l}from"./p-4ebf1618.js";import{f as o,d as n}from"./p-0b3f675e.js";import{i as r}from"./p-f077c646.js";import{g as h,c as u,d as b,a as p,s as m}from"./p-076452be.js";import{p as c,s as g}from"./p-7649b95e.js";import{b as f,a as y}from"./p-75f7a572.js";import{c as v}from"./p-c1325e35.js";import{g as x,a as w}from"./p-cf504df5.js";import"./p-5a9d75e1.js";const k=({data:e,groupId:i,alignment:a})=>{const s=`duet-editable-table duet-editable-table-content-${i}`;return"string"==typeof e?t("td",{innerHTML:e,class:s,part:`${i}content`,style:{verticalAlign:a}}):t("td",{class:s,part:`${i}content`,style:{verticalAlign:a}},e)},T=class{constructor(t){e(this,t),this.duetTableToggle=i(this,"duetTableToggle",7),this.duetMenuClick=i(this,"duetMenuClick",7),this.hasHeadSlotFirst=!1,this.hasHeadSlotLast=!1,this.hasFootSlot=!1,this.sortableDefaultLabel={fi:"Järjestä",en:"Click to sort",sv:"Klicka för att sortera"},this.actionColumnLabel={en:"Actions for rows",fi:"Toiminnot rivillä",sv:"Åtgärder för rader"},this.toggleColumn=(t,e)=>{e.preventDefault();const{sort_order:i,direction:a,index:s,key:d}=t;this.duetTableToggle.emit({sort_order:i,index:s,direction:a,key:d,component:"duet-editable-table",originalEvent:e})},this.handleKeyDown=(t,e)=>{r(e)&&this.toggleColumn(t,e)},this.language=h(),this.margin="auto",this.variation="striped",this.sticky=!1,this.stickyDistance="with-links",this.breakpoint="small",this.actions=void 0,this.columns=void 0,this.rows=void 0,this.sortable=!1,this.groupId="",this.theme="",this.accessibleRole=void 0,this.hideHeadVisually=!1}componentWillLoad(){l(this),this.hasHeadSlotFirst=!!this.element.querySelector("[slot='thead-first']"),this.hasHeadSlotLast=!!this.element.querySelector("[slot='thead-last']"),this.hasFootSlot=!!this.element.querySelector("[slot='tfoot']")}connectedCallback(){u(this)}disconnectedCallback(){b(this)}createLabel(e){const{sort_order:i,direction:a,index:s,label:d}=e,l=p(d);return this.sortable?t("span",{class:"duet-table-label","data-index":s},t("duet-button",{size:"small",icon:i&&1===a?"action-arrow-down-small":i&&-1===a?"action-arrow-up-small":"action-subtract-small","icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":!0,onClick:t=>this.toggleColumn(e,t),onKeyDown:t=>this.handleKeyDown(e,t)},l)):l}getSortedColumns(){return[...this.columns].sort(o(["index"]))}getRowSortOrder(){return[...this.columns].sort(o(["sort_order"])).filter((t=>t.sort_order)).map((t=>-1===t.direction?`-${t.key}`:t.key))}renderTableHeader(){if(!this.columns)return;const e=this.getSortedColumns();return t("tr",{class:{"duet-table-action-header":!!this.actions}},e.map((e=>{if(!1!==e.display){const i=this.createLabel(e);return""!==i?t("th",{scope:"col"},i):t("td",null)}})),this.actions&&t("th",{scope:"col",class:"duet-table-action-header-heading"},this.actions&&t("duet-visually-hidden",null,this.actionColumnLabel[this.language])))}renderActions(e,i){if(this.actions)return t("td",{class:"duet-text-right"},this.actions.map((a=>t("duet-action-button",{actionMeta:Object.assign({},(null==e?void 0:e.meta)||{},{index:i}),actionId:(null==e?void 0:e.uid)||(null==e?void 0:e.id)||null,actionName:a.name,theme:this.theme,iconName:a.icon,iconColor:a.color,iconSize:a.size,background:a.background,"accessible-label":`${e.actionDescription||""} ${p(a.label)} `}))))}renderTableBody(){const e=this.getSortedColumns(),i=this.getRowSortOrder();return[...this.rows].sort(o(i)).map(((i,a)=>t("tr",{class:{"duet-table-action-row":!!this.actions,"duet-editable-table-row":!0,[`duet-editable-table-row-${this.groupId}`]:!0},"data-meta":JSON.stringify(i.meta)},e.map((e=>{if(!1!==e.display)return t(k,{data:i[e.key]?i[e.key]:i.item,groupId:this.groupId})})),this.actions&&this.renderActions(i,a))))}render(){return t(a,{class:{[`duet-editable-table-${this.variation}`]:!0,"duet-editable-table":!0,[`duet-editable-table-${this.theme}`]:!0,"duet-editable-table-scrollable":"none-scrollable"===this.breakpoint,"duet-editable-table-sortable":this.sortable,"duet-editable-table-actions":!!this.actions,"duet-m-0":"none"===this.margin,"duet-theme-turva":"turva"===this.theme}},t("duet-table",{class:"duet-editable-table-table",sticky:this.sticky,stickyDistance:this.stickyDistance,margin:this.margin,theme:this.theme,variation:this.variation,breakpoint:this.breakpoint,"hide-head-visually":this.hideHeadVisually},t("table",{role:this.accessibleRole},t("caption",null,t("slot",{name:"tcaption"})),t("thead",null,this.hasHeadSlotFirst&&t("tr",null,t("td",{class:"duet-editable-table-actions-menu",colSpan:99},t("slot",{name:"thead-first"}))),this.renderTableHeader(),this.hasHeadSlotLast&&t("tr",null,t("td",{class:"duet-editable-table-actions-menu",colSpan:99},t("slot",{name:"thead-last"})))),t("tbody",null,this.renderTableBody()),this.hasFootSlot&&t("tfoot",null,t("tr",null,t("td",{class:"duet-editable-table-footer-menu",colSpan:99},t("slot",{name:"tfoot"})))))))}get element(){return s(this)}};T.style=".sc-duet-editable-table-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-editable-table-actions-menu.sc-duet-editable-table{position:relative;padding:0 !important;margin:0}.duet-editable-table-actions-menu-button.sc-duet-editable-table{position:relative;right:-16px;float:right;padding:0}.duet-editable-table-actions-menu-icon.sc-duet-editable-table .duet-icon.sc-duet-editable-table{max-width:16px;max-height:16px}.duet-editable-table-row.duet-table-action-row.sc-duet-editable-table .duet-text-right.sc-duet-editable-table{text-align:right}.duet-editable-table-header.sc-duet-editable-table tr.sc-duet-editable-table .duet-editable-table-header-hidden.sc-duet-editable-table{padding:0 !important;font-size:0;border-bottom:0}";const L={none:0,"with-links":16*parseFloat(c),"without-links":16*parseFloat(g)},S=class{constructor(t){e(this,t),this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)",this.handleMediaQueryChange=t=>{this.matchesBreakpoint=f.includes(this.breakpoint)?!t.matches:t.matches},this.matchesBreakpoint=!0,this.language=h(),this.theme=void 0,this.margin="auto",this.variation="striped",this.sticky=!1,this.stickyDistance="with-links",this.breakpoint="small",this.hideHeadVisually=!1}watchLanguageStateHandler(t,e){t!==e&&setTimeout((()=>this.copyHeadingsToCells()),50)}connectedCallback(){this.mq=matchMedia("none"===this.breakpoint||"none-scrollable"===this.breakpoint?"all":y[this.breakpoint]),this.mq.addEventListener("change",n(this.handleMediaQueryChange,50)),this.handleMediaQueryChange(this.mq),this.observer=new MutationObserver((()=>n(this.copyHeadingsToCells(),50))),this.observer.observe(this.element,{childList:!0,subtree:!0})}componentWillLoad(){if(l(this),this.copyHeadingsToCells(),this.sticky&&"none-scrollable"===this.breakpoint&&console.warn('[DUET WARNING]: sticky and breakpoint="none-scrollable" are incompatible. Scrollable takes precedence'),this.sticky){const t=L[this.stickyDistance];this.element.querySelectorAll(this.headingSelector).forEach((e=>e.style.top=`${t}px`))}}componentDidLoad(){this.observer&&this.observer.takeRecords(),u(this)}disconnectedCallback(){this.observer.disconnect(),this.observer=null,this.mq.removeListener(this.handleMediaQueryChange),this.mq=null,this.matchesBreakpoint=!0,b(this)}copyHeadingsToCells(){const t=this.element.querySelectorAll(this.headingSelector),e=this.element.querySelectorAll("tbody tr"),i=Array.from(t).map((t=>t.textContent.trim()));e.forEach((t=>{t.querySelectorAll("td").forEach(((t,e)=>{if(i[e]){const a=t.querySelector(".duet-table-cell-heading");if(!a||a.textContent!==i[e]){null==a||a.remove();const s=document.createElement("span");s.textContent=i[e],s.classList.add("duet-table-cell-heading"),s.setAttribute("aria-hidden","true"),s.inert=!0,t.prepend(s)}}}))}))}render(){return t(a,{class:{[`duet-table-${this.variation}`]:!0,"duet-table-flattened":!this.matchesBreakpoint,"duet-table-sticky":this.matchesBreakpoint&&this.sticky,"duet-table-scrollable":"none-scrollable"===this.breakpoint,"duet-m-0":"none"===this.margin,"duet-theme-turva":"turva"===this.theme,"duet-table-hide-head-visually":this.hideHeadVisually}},t("slot",null))}get element(){return s(this)}static get watchers(){return{language:["watchLanguageStateHandler"]}}};S.style='duet-table{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;font-variant-numeric:tabular-nums}duet-table table,duet-table thead,duet-table tbody,duet-table tfoot,duet-table th,duet-table td,duet-table tr{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}duet-table.duet-m-0{margin:0 !important}duet-table table{width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;text-align:left;border-spacing:0;border-collapse:separate}duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead,duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead *{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}duet-table.duet-theme-turva table{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}duet-table td{-webkit-hyphens:auto;hyphens:auto;color:rgb(0, 41, 77)}duet-table.duet-theme-turva td{color:rgb(23, 28, 58)}duet-table th{font-weight:600;line-height:1.25;color:rgb(101, 119, 135);text-align:left}duet-table.duet-theme-turva th{color:rgb(116, 116, 117)}duet-table tbody th{font-weight:600;color:rgb(0, 41, 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(0, 41, 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(101, 119, 135);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(225, 227, 230)}.duet-table-striped.duet-table-sticky.duet-theme-turva thead th{border-bottom-color:rgb(228, 228, 230)}.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(0, 80, 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(0, 80, 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(225, 227, 230)}.duet-table-striped.duet-theme-turva tfoot td{border-top-color:rgb(228, 228, 230)}.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(225, 227, 230)}.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:rgb(228, 228, 230)}.duet-table-fixed th,.duet-table-minimal th,.duet-table-plain th{padding:16px !important;border-bottom:1px solid rgb(101, 119, 135)}.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(68, 68, 69)}.duet-table-fixed tbody th,.duet-table-minimal tbody th,.duet-table-plain tbody th{padding-top:40px !important;border-bottom-color:rgb(225, 227, 230)}.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(228, 228, 230)}.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(225, 227, 230)}.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(228, 228, 230)}.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(225, 227, 230)}.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:rgb(228, 228, 230)}.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(225, 227, 230)}.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(225, 227, 230)}.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.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(225, 227, 230)}.duet-table-fixed:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.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(68, 68, 69, 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(225, 227, 230)}.duet-table-sortable:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.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}';const j=[{type:"default",system_message:"unknown error",message:{fi:"Tapahtui tuntematon virhe, ole hyvä ja yritä uudelleen.",sv:"Ett okänt fel uppstod, försök igen.",en:"An unknown error occured, please try again."}},{type:"400",system_message:"Bad Request: The server could not understand the request due to invalid syntax.",message:{fi:"Tiedostoa ei hyväksytty.",sv:"Servern avvisade din fil.",en:"The server rejected your file."}},{type:"401",system_message:"Not Authenticated: The client must authenticate itself to get the requested response...",message:{fi:"Vain kirjautunut käyttäjä voi lähettää tiedostoja.",sv:"Du måste vara inloggad för att ladda upp filer.",en:"You need to be logged in to upload files."}},{type:"403",system_message:"No Access: The client does not have access rights to the content.",message:{fi:"Ei oikeuksia lähettää tiedostoja.",sv:"Du har inte rätt åtkomsträttigheter för att ladda upp filer.",en:"You do not have the correct access rights to upload files."}},{type:"413",system_message:"Payload too large",message:{fi:"Tiedosto oli liian vastaanotettavaksi.",sv:"Filen var för stor för servern att hantera.",en:"The file was to large for the server to handle."}},{type:"415",system_message:"Unsupported media type",message:{fi:"Tiedoston tyyppi oli väärä.",sv:"Servern avvisade filen eftersom den hade fel typ.",en:"The server rejected the file because it had the wrong type."}},{type:"429",system_message:"Too many request from same address",message:{fi:"Liian monta yritystä, ole hyvä ja yritä myöhemmin uudelleen.",sv:"Servern har fått många förfrågningar från dig, försök igen senare.",en:"The server has received to many request from you, please try again later."}},{type:"500",system_message:"Internal Server Error",message:{fi:"Palvelin ilmoitti tuntemattomasta virheestä ja lataus epäonnistui.",sv:"Servern rapporterade ett okänt fel och uppladdningen misslyckades.",en:"The server reported an unknown error and the upload failed."}},{type:"duet-upload-100",system_message:"File extension not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den type.",en:"You cannot upload files with that extension."}},{type:"duet-upload-001",system_message:"File transfer failed",message:{fi:"Tiedoston lähetys keskeytyi, ole hyvä ja yritä uudelleen.",sv:"Din anslutning till servern avbröts, försök igen.",en:"Your connection to the server was interrupted, try again."}},{type:"duet-upload-101",system_message:"File mimetype not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den typ.",en:"You cannot upload files of that type."}},{type:"duet-upload-201",system_message:"File is too large",message:{fi:"Tiedosto on liian iso.",sv:"Filen är större än tillåtet.",en:"The file is larger than permitted."}},{type:"duet-upload-202",system_message:"The combined size of all files is too large",message:{fi:"Tiedostojen yhteenlaskettu koko on liian iso.",sv:"Du har nått den maximala kombinerade filstorleken.",en:"You have reached the maximum combined filesize."}},{type:"duet-upload-203",system_message:"Files to upload exceed total byte size limit",message:{fi:"Yritit lisätä tiedostoja, jotka ylittäisivät suurimman sallitun yhteenlasketun koon.",sv:"Du försökte lägga till filer som skulle överskrida den maximala kombinerade storleken.",en:"You tried to add files that would exceed the maximum combined size."}},{type:"duet-upload-301",system_message:"The maximum file limit has been reached",message:{fi:"Liitteiden maksimimäärä saavutettu.",sv:"Maximalt antal bilagor har uppnåtts.",en:"Maximum number of attachments reached."}},{type:"duet-upload-302",system_message:"Files to upload exceeds limits",message:{fi:"Et voi lähettää enempää kuin enimmäismäärän liitteitä.",sv:"Du kan inte ladda upp fler än det maximala antalet bilagor.",en:"You can't upload more than maximum number of attachments."}}],E=({label:e,categoryLabel:i})=>t("div",{class:"items-header"},i&&t("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none"},p(i)),t("duet-heading",{class:{"filename-header":!0,"no-category":!i},border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none"},p(e))),z=(t,e,i)=>{const{allowedMimetypes:a,allowedExtensions:s,maxBytes:d}=e;let l=!1,o=x("default",i);if(t){const{name:e,type:n,size:r}=t,h=((t,e)=>{if(!e||!t)return!0;const i=e.split(",");let a=!1;return i.forEach((e=>{const i=e.split("/"),s=t.split("/");i[0]!==s[0]||i[1]!==s[1]&&"*"!==i[1]||(a=!0)})),a})(n,a),u="all"===s||""===s||" "===s||void 0===s||((t,e)=>{if(!e)return!0;const i=t.split(".");return e.split(",").includes(i[i.length-1])})(e.toLowerCase(),s),b=((t,e)=>!e||!t||e>=t)(r,d);h||(o=x("duet-upload-101",i)),u||(o=x("duet-upload-100",i)),b||(o=x("duet-upload-201",i)),l=h&&u&&b}else l=!1;return{valid:l,errorMessage:l?void 0:p(o.message),errorSystem:l?void 0:o.system_message,errorType:l?void 0:o.type}},M=({payload:t,options:e,onFailure:i,onSuccess:a,onProgress:s})=>{const{type:d="POST",xhr:l,uri:o,argument:n=null,headers:r=null}=e;l.open(d,`${o}${n||""}`,!0);const{data:h,name:u}=t;return r&&Object.keys(r).forEach((t=>{l.setRequestHeader(t,r[t])})),"POST"===d&&(l.onreadystatechange=()=>{l.readyState===XMLHttpRequest.DONE&&l.status>=200&&l.status<300&&a(l,u,l.status),l.readyState===XMLHttpRequest.DONE&&l.status>=300&&l.status<999&&i(l,u,l.status)},s(u)),l.send(h),l},F=class{constructor(a){e(this,a),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=v("DuetButton"),this.labelId=v("DuetLabel"),this.uploadId=v("DuetUpload"),this.filesInProgress=new Map,this.fileMaxReached=!1,this.bytesMaxReached=!1,this.filesToUploadExceedsLimit=!1,this.filesToUploadTotalSizeIsAboveMax=!1,this.internalStatusMessageLabel=void 0,this.itemRefs=new Map,this.DefaultGroups={inprogress:"inprogress",success:"success",pending:"pending",failure:"failure"},this.kick=n((()=>{this.tick=Date.now()}),30),this.categoryLabel={en:"Category",sv:"Filtyp",fi:"Tiedostotyyppi"},this.listenForActionEvents=()=>{this.element.addEventListener("duetActionEvent",(t=>{const e=t.detail,{action:i,id:a,originalEvent:s}=e;switch(i){case"delete":this.onDelete(a,s);break;case"cancel":this.onCancel(a,s)}}))},this.verifyValidity=()=>{const{invalid:t,valid:e}=this.getFilesAsArray(),i=this.valid;this.valid=0===t.length&&0!==e.length,this.valid!==i&&this.duetState.emit({originalEvent:void 0,data:{valid:this.valid,from:"componentWillRender"},component:"duet-upload"})},this.getGroupFromItemData=t=>t.valid&&100===t.progress?this.DefaultGroups.success:t.progress>0&&100!==t.progress?this.DefaultGroups.inprogress:t.valid?t.pending?this.DefaultGroups.pending:t.group?t.group:"none":this.DefaultGroups.failure,this.mapFilesToUploadItems=(e,i,a)=>i===this.DefaultGroups.success?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i),type:"success",data:e,showLinks:this.showLinks,linkClickEvent:this.emitEvent?this.linkClick:void 0,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,ref:t=>{this.itemRefs.set(e.uid,t)}}):i===this.DefaultGroups.inprogress?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i),type:"inprogress",data:e,showLinks:this.showLinks,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,ref:t=>{this.itemRefs.set(e.uid,t)}}):i===this.DefaultGroups.pending?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i),type:"pending",data:e,showLinks:this.showLinks,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,ref:t=>{this.itemRefs.set(e.uid,t)}}):i===this.DefaultGroups.failure?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i),type:"failure",data:e,showLinks:this.showLinks,errorCodes:this.errorCodes,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,ref:t=>{this.itemRefs.set(e.uid,t)}}):e.group?e.html:"none",this.genHashName=()=>Date.now().toString(36)+Math.random(),this.updateValueInMap=(t,e,i,a=!0)=>{try{const a=this.files.get(t);a[e]=i,this.files.set(t,a),this.external&&"url"!==e&&this.trackProgress(t,"uploaded"===e)}catch(t){}a&&this.kick()},this.updateProgress=(t,e)=>{t.lengthComputable?(i=>{this.updateValueInMap(e,"progress",i),this.onProgress(e,i,t)})(t.loaded/t.total*100):console.log("cant read progress")},this.trackProgress=(t,e=!1)=>{e?this.filesInProgress.delete(t):this.filesInProgress.set(t,"inprogress"),0===this.filesInProgress.size&&this.onDone()},this.getFilesAsArray=()=>{const t=[],e=[];return this.files.forEach((i=>{i.valid&&!i.deleted?t.push(i):i.valid||i.deleted||e.push(i)})),{valid:t,invalid:e}},this.resetFormFields=()=>{this.nativeInput.value=""},this.startUpload=async(t,e)=>{const{bytesMaxReached:i,fileMaxReached:a}=this.validateTotals();i||a?this.kick():(this.metaData=e,this.nativeInput.click(),this.onUpload(t,e),t.stopPropagation(),t.preventDefault())},this.transferComplete=t=>{this.updateValueInMap(t,"progress",100,!1),this.trackProgress(t,!0)},this.transferDone=(t,e,i)=>{this.updateValueInMap(e,"status",i,!1),this.updateValueInMap(e,"uploaded",!0,!1);try{const i=JSON.parse(t.response);this.updateValueInMap(e,"url",i.url)}catch(t){this.updateValueInMap(e,"url",null),console.error("Server did not respond with expected response {url: string}")}},this.transferDoneWithFailure=(t,e,i)=>{try{const{error:i}=JSON.parse(t.response);this.updateValueInMap(e,"error",{message:i.message,type:i.type},!1)}catch(t){console.error("Server did not respond with expected response error:{message: string, type: int}"),this.updateValueInMap(e,"error",{type:i},!1)}this.updateValueInMap(e,"valid",!1,!0)},this.transferFailed=t=>{this.updateValueInMap(t,"error",w("duet-upload-001",this.errorCodes))},this.transferCanceled=t=>{this.files.delete(t),this.validateTotals(t),this.kick()},this.validateTotals=t=>{const e=((t,e)=>{let i=0;return!!(e&&(this.files.forEach((t=>{t.valid&&t.size&&(i+=t.size)})),i>=e))})(0,this.maxBytesTotal),i=((t,e)=>{let i=0;return!!(e&&(this.files.forEach((t=>{t.valid&&i++})),i>=e))})(0,this.maxFiles);return e&&t&&this.updateValueInMap(t,"error",w("duet-upload-202",this.errorCodes),!1),i&&t&&this.updateValueInMap(t,"error",w("duet-upload-301",this.errorCodes),!1),this.bytesMaxReached=e,this.fileMaxReached=i,{bytesMaxReached:e,fileMaxReached:i}},this.uploadFile=async(t,e=!1,i)=>{!e&&this.deferUpload?(this.updateValueInMap(t.item.name,"pending",!0,!1),this.updateValueInMap(t.item.name,"group","pending",!0)):e&&(this.updateValueInMap(t.item.name,"pending",!1,!1),this.updateValueInMap(t.item.name,"group",void 0,!0));try{if(!this.deferUpload||e){const e=new FormData;e.append("file",t.item),i&&e.append("key",i),e.append("uid",t.uid),e.append("name",t.item.name),e.append("metadata",JSON.stringify({uid:t.uid,url:this.uri,size:t.item.size,meta:t.meta})),t.xhr=await this.makeXHRPostRequest(e)}}catch(e){this.updateValueInMap(t.item.name,"valid",!1,!1)}},this.uploadPendingFiles=()=>{for(const[t,e]of Array.from(this.files.entries()))"pending"===e.group&&!0===e.pending&&this.uploadFile(e,!0,t)},this.getItemFromUID=t=>{for(const[e,i]of Array.from(this.files.entries()))if(i.uid===t)return{value:i,key:e};return null},this.handleExternalUploadButton=(t,e)=>{this.externalUploadButton&&(this.externalUploadButton.disabled=!(!t&&!e))},this.onDelete=(t,e)=>{const i=this.getItemFromUID(t).key,a=this.files.get(i);this.files.delete(i);const{bytesMaxReached:s,fileMaxReached:d}=this.validateTotals();this.handleExternalUploadButton(s,d),this.kick(),this.duetDelete.emit({originalEvent:e,data:{deletion:a},component:"duet-upload"}),this.external||a.pending||this.makeXHRDeleteRequest(a),this.resetFormFields()},this.onCancel=(t,e)=>{const i=this.getItemFromUID(t).key,a=this.files.get(i);this.files.delete(i);const{bytesMaxReached:s,fileMaxReached:d}=this.validateTotals();if(this.handleExternalUploadButton(s,d),!this.external){const{xhr:t}=a;t&&t.abort()}this.kick(),this.resetFormFields(),this.duetCancel.emit({originalEvent:e,data:{cancelled:a},component:"duet-upload"})},this.onUpload=(t,e)=>{this.duetUpload.emit({originalEvent:t,metaData:e,component:"duet-upload"})},this.onBlur=t=>{this.duetBlur.emit({originalEvent:t,component:"duet-upload"})},this.onProgress=(t,e,i)=>{this.duetChange.emit({originalEvent:i,data:{key:t,percentComplete:e},component:"duet-upload"})},this.onFocus=t=>{this.duetFocus.emit({originalEvent:t,component:"duet-upload"})},this.onReady=()=>{this.duetReady.emit({component:"duet-upload"})},this.onDone=()=>{this.duetDone.emit({component:"duet-upload",data:{files:this.files}})},this.filterMap=()=>{const t=Array.from(this.files.values()),e=[],i=[],a=[],s=[];let d=!1;return t.forEach((t=>{const l=this.getGroupFromItemData(t);t.meta&&t.meta.badges&&(d=!0),l===this.DefaultGroups.success?s.push({uid:t.uid,data:t}):l===this.DefaultGroups.inprogress?e.push({uid:t.uid,data:t}):l===this.DefaultGroups.pending?a.push({uid:t.uid,data:t}):l===this.DefaultGroups.failure?i.push({uid:t.uid,data:t}):t.group&&e.push({uid:t.uid,data:t})})),{pending:a,failure:i,success:s,inprogress:e,hasCategory:d}},this.getActions=t=>this.actions.filter((e=>e.map.includes(t))),this.renderUploadedItems=()=>{this.itemRefs.clear();const e=this.filterMap(),i=e.hasCategory,a=this.groups.map((a=>{const s=e[a.id];if(null==s?void 0:s.length)return t(d,null,!this.hideGroups&&t(E,{categoryLabel:i?this.categoryLabel:void 0,label:a.label}),s.map((t=>this.mapFilesToUploadItems(t.data,a.id,i))))}));return t(d,null,this.showUploadedItemsHeader&&t(E,{categoryLabel:i?this.categoryLabel:void 0,label:this.uploadedItemsHeaderLabel}),a)},this.tick=Date.now(),this.accessibleActiveDescendant=void 0,this.accessibleDescribedBy=void 0,this.accessibleControls=void 0,this.accessibleOwns=void 0,this.external=!1,this.middleware=null,this.deferUpload=!1,this.hideButton=!1,this.actions=[{icon:"action-delete",color:"color-danger",size:"x-small",background:"gray-lightest",name:"delete",map:["success","failure"],label:{fi:"Poista tiedosto",en:"Delete the file",sv:"Ta bort filen"}},{icon:"navigation-close",color:"primary",size:"x-small",background:"gray-lightest",name:"cancel",map:["inprogress","pending"],label:{fi:"Keskeytä lähetys",en:"Cancel the upload",sv:"Stop överföringen"}}],this.uri=void 0,this.showLinks=!1,this.caption=void 0,this.statusLabelDefaults={fi:{inProgress:"Lähetetään {filesUploaded} lähetettävästä {filesTotal} tiedostosta",inProgressWithErrors:"Lähetetään {filesInProgress} tiedostoa, lähetetty {filesUploaded} lähetettävästä {filesTotal} tiedostosta, {filesWithErrors} tiedostossa on virheitä",done:"Kaikki {filesTotal} tiedostoa lähetetty onnistuneesti",doneWithErrors:"Lataus valmis, {filesUploaded} tiedostoa ladattu onnistuneesti, {filesWithErrors} tiedostossa oli virheitä",files:"tiedostot",file:"tiedosto"},sv:{inProgress:"Adding {filesUploaded} of {filesTotal}",inProgressWithErrors:"Laddar upp {filesInProgress}, {filesUploaded} uppladdad av {filesTotal}, {filesWithErrors} misslyckades",done:"Alla {filesTotal} har lagts till",doneWithErrors:"Handling slutförd, {filesUploaded} har lagts till, {filesWithErrors} misslyckades",files:"filer",file:"fil"},en:{inProgress:"Adding {filesUploaded} of {filesTotal}",inProgressWithErrors:"Uploading {filesInProgress}, {filesUploaded} uploaded of {filesTotal}, {filesWithErrors} failed",done:"All {filesTotal} added successfully",doneWithErrors:"Action completed, {filesUploaded} has been added successfully, {filesWithErrors} had errors",files:"File",file:"file"}},this.statusMessageLabel=p(this.statusLabelDefaults),this.buttonLabelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add an attachment"},this.buttonLabel=p(this.buttonLabelDefaults),this.accessibleButtonLabel=void 0,this.theme="",this.disabled=!1,this.identifier=void 0,this.margin="auto",this.required=!1,this.alignment="middle",this.hideGroups=!1,this.files=new Map,this.valid=!this.required,this.labelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add attachments"},this.label=p(this.labelDefaults),this.descriptionDefaults={en:"You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytestotal} of files at a time, and add up to {maxfiles} attachments at a time each no larger than {maxbytes}.",sv:"Du kan bifoga följande filtyper: {filetypes} - samt de vanligaste videofilerna. Du kan ladda upp {maxbytestotal} av filer åt gången, och lägga till upp till {maxfiles} bilagor åt gången varje inte större än {maxbytes}.",fi:"Voit liittää seuraavat tiedostotyypit: {filetypes} - sekä yleisimmät videotiedostot. Voit lähettää {maxbytestotal} tiedostoa kerrallaan, ja lisätä enintään {maxfiles} liitettä kerrallaan, jokainen enintään {maxbytes} kokoisena."},this.description=p(this.descriptionDefaults),this.fileListEmptyDefaults={fi:"Ei vielä lisättyjä tiedostoja.",sv:"Inga filer har lagts till ännu.",en:"No files added yet."},this.fileListEmpty=p(this.fileListEmptyDefaults),this.error="",this.errorCodes=j,this.name=void 0,this.maxBytes=2e8,this.maxBytesTotal=void 0,this.maxFiles=99,this.allowedExtensions="all",this.allowedMimetypes="",this.multiple=!0,this.limitSelection=!1,this.value=void 0,this.externalUploadButtonId=void 0,this.captionOnBottom=!1,this.showUploadedItemsHeader=!1,this.uploadedItemsHeaderLabel={fi:"Ladattu tiedosto",sv:"Lägg till en bilaga",en:"Uploaded file"},this.hideHeader=!1,this.emitEvent=!1,this.groups=[{id:this.DefaultGroups.success,label:{fi:"Valmiit tiedostot",sv:"Files success",en:"Files success"}},{id:this.DefaultGroups.failure,label:{fi:"Tiedostot, joissa on virheitä",sv:"Filer med fel",en:"Files with errors"}},{id:this.DefaultGroups.inprogress,label:{fi:"Kesken olevat tiedostot",sv:"Filer inprogress",en:"Files inprogress"}},{id:this.DefaultGroups.pending,label:{en:"Files to upload",sv:"Filer att ladda",fi:"Ladattavat tiedostot"}}]}watchValidHandler(t,e){t!==e&&this.kick()}componentWillLoad(){this.internalStatusMessageLabel="string"==typeof this.statusMessageLabel?m(this.groups):this.statusMessageLabel,l(this),this.listenForActionEvents(),this.onReady(),this.externalUploadButton=document.querySelector(`#${this.externalUploadButtonId}`)}componentWillRender(){this.verifyValidity()}async setFocus(t){this.nativeInput&&this.nativeInput.focus(t)}async upload(t){const{bytesMaxReached:e,fileMaxReached:i}=this.validateTotals();if(e||i)return this.handleExternalUploadButton(e,i),void this.kick();this.metaData=t,this.nativeInput.click()}async uploadPending(){this.uploadPendingFiles()}async refresh(){this.kick(),await this.setFocus()}async getFiles(){return!(!this.files||0===this.files.size)&&this.getFilesAsArray()}async updateValue(t,e,i){this.updateValueInMap(t,e,i)}async focusActionButton(t){var e;await(null===(e=this.itemRefs.get(t))||void 0===e?void 0:e.focusActionButton())}render(){const e=this.identifier||this.uploadId,i=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024),s=Math.round(this.maxBytes/1024/1024);let l=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());return l=l.replace(/{maxbytes}/g,`${s.toString()} MB`),l=l.replace(/{maxbytestotal}/g,`${i.toString()} MB`),l=l.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", ")),this.externalUploadButton&&(this.externalUploadButton.ariaLabel=l),t(a,{class:{"duet-m-0":"none"===this.margin}},t("duet-fieldset",{"label-hidden":this.hideHeader,label:this.label,caption:this.captionOnBottom?void 0:l},t("slot",{name:"header"}),!this.files.size&&t("duet-empty-state",{id:this.labelId,part:this.identifier?`${this.identifier}-empty-state`:"duet-upload-empty-state",icon:"messaging-attachment"},t("duet-paragraph",{margin:"none"},this.fileListEmpty)),!!this.files.size&&t("slot",{name:"fileheader"}),!!this.files.size&&t("duet-upload-aria-status",{invalid:this.getFilesAsArray().invalid.length,valid:this.getFilesAsArray().valid.length,inprogress:this.filesInProgress.size,total:this.files.size,statusMessageLabel:this.internalStatusMessageLabel}),!!this.files.size&&this.renderUploadedItems(),!!this.files.size&&t("slot",{name:"filefooter"}),t("slot",{name:"uploadfooter"}),this.captionOnBottom&&t("duet-caption",{margin:"none",size:"small"},t("div",{class:"upload-bottom-caption"},l)),t("slot",{name:"afterfooter"}),!this.hideButton&&t(d,null,t("duet-spacer",{size:"large"}),t("duet-button",{id:this.buttonId,onClick:this.startUpload,"accessible-controls":e,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel,"accessible-owns":e,size:"small",variation:"secondary",fixed:!0,icon:"action-add-circle",part:this.identifier?`${this.identifier}-button-upload`:"duet-upload-button-upload"},this.buttonLabel)),(this.fileMaxReached||this.bytesMaxReached||this.filesToUploadExceedsLimit||this.filesToUploadTotalSizeIsAboveMax)&&t(d,null,t("duet-spacer",{size:"medium"}),t("duet-alert",{part:this.identifier?`${this.identifier}-error-notification`:"duet-upload-error-notification"},this.fileMaxReached&&w("duet-upload-301",this.errorCodes),this.bytesMaxReached&&w("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&w("duet-upload-302",this.errorCodes),this.filesToUploadTotalSizeIsAboveMax&&w("duet-upload-203",this.errorCodes))),t("duet-visually-hidden",{"aria-hidden":"true"},t("input",{ref:t=>{this.nativeInput=t},accept:this.limitSelection?`${this.allowedMimetypes},${this.allowedExtensions}`:void 0,onBlur:this.onBlur,onFocus:this.onFocus,onChange:t=>this.onChange(t),type:"file",class:{"duet-upload":!0},disabled:this.disabled,"aria-hidden":"true",required:this.required,name:this.name,id:this.identifier,multiple:this.multiple,tabIndex:-1}))))}makeXHRPostRequest(t){const e=new XMLHttpRequest,i=t.get("name");e.upload.addEventListener("progress",(t=>{this.updateProgress(t,i)})),e.upload.addEventListener("load",(()=>{this.transferComplete(i)})),e.upload.addEventListener("error",(()=>{this.transferFailed(i)})),e.upload.addEventListener("abort",(()=>{this.transferCanceled(i)}));let a={payload:{data:t,name:i},options:{type:"POST",uri:this.uri,xhr:e,argument:null,headers:void 0},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};return this.middleware&&(a=this.middleware(a)),M(a)}makeXHRDeleteRequest(t){const{uid:e,item:i}=t,a=new XMLHttpRequest;let s={payload:{data:null,name},options:{type:"DELETE",xhr:a,uri:this.uri,argument:`?key=${e}&name=${i.name}`,headers:{"x-fileuid":e,"x-filename":i.name}},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};return this.middleware&&(s=this.middleware(s)),M(s)}async onChange(t){var e;const i=Array.from(null===(e=this.nativeInput)||void 0===e?void 0:e.files);if(this.filesToUploadExceedsLimit=!1,this.files.size+i.length>this.maxFiles)return this.filesToUploadExceedsLimit=!0,void this.kick();if(this.filesToUploadTotalSizeIsAboveMax=!1,((t,e,i)=>{let a=0;return!!(i&&(this.files.forEach((t=>{t.valid&&t.size&&(a+=t.size)})),e.forEach((t=>{t.size&&(a+=t.size)})),a>=i))})(0,i,this.maxBytesTotal))return this.filesToUploadTotalSizeIsAboveMax=!0,void this.kick();if(i)for(const t of i){const{valid:e,errorMessage:i,errorType:a,errorSystem:s}=z(t,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),d={uid:this.genHashName(),item:t,size:t.size,meta:this.metaData,uploaded:!1,valid:e,error:{type:e?void 0:a,message:e?void 0:i,system_message:e?void 0:s},progress:0,deleted:!1,xhr:!1,url:!1};this.files.set(t.name,d),e&&!this.external?await this.uploadFile(d):e&&this.external?(this.updateValueInMap(d.item.name,"pending",!0,!1),this.updateValueInMap(d.item.name,"group","pending",!0)):e||this.updateValueInMap(t.name,"valid",!1,!0),this.kick()}this.resetFormFields(),this.metaData=void 0,this.duetChange.emit({originalEvent:t,data:{files:this.files},component:"duet-upload"})}get element(){return s(this)}static get watchers(){return{valid:["watchValidHandler"]}}};F.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}::slotted([slot=uploadfooter]){margin-top:20px}.duet-upload{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}duet-paragraph::part(duet-paragraph){word-break:break-word}duet-editable-table tfoot{display:none}.upload-bottom-caption{margin-top:12px;margin-bottom:16px;line-height:1.4rem}.items-header{display:none;flex-direction:row;margin-bottom:0}@media (min-width: 36em){.items-header{display:flex}}.items-header:not(:last-child),.items-header:not(:first-child){margin-top:12px}.items-header .category-header{width:35%}.items-header .filename-header{width:65%}.items-header .filename-header.no-category{width:100%}.upload-item-row{display:flex;flex-direction:column;gap:16px;align-content:center;align-items:center;padding:16px 0 16px 0;border-bottom:1px solid rgb(225, 227, 230)}@media (min-width: 36em){.upload-item-row{flex-direction:row;gap:10px}}.upload-item-row .item-categories{width:100%}@media (min-width: 36em){.upload-item-row .item-categories{width:35%}}.upload-item-row .item-name{position:relative;bottom:2px;width:100%;text-align:left}@media (min-width: 36em){.upload-item-row .item-name{width:50%}.upload-item-row .item-name.no-category{width:85%}}.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:block}@media (min-width: 36em){.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:none}}.upload-item-row .item-actions{width:100%;margin-left:-8px;text-align:left}@media (min-width: 36em){.upload-item-row .item-actions{width:15%;padding-top:0;margin-left:auto;text-align:right}}.upload-item-row .duet-upload-item-name duet-icon{position:relative;top:4px}.upload-item-row .duet-upload-item-name duet-progress{display:block;margin-top:16px}";export{T as duet_editable_table,S as duet_table,F as duet_upload}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as e,h as t,H as i,g as o}from"./p-27530b53.js";import{i as a}from"./p-4ebf1618.js";import{h as s}from"./p-9d915d45.js";import{c as n}from"./p-c1325e35.js";const l=class{constructor(t){e(this,t),this.errorId=n("DuetError"),this.labelId=n("DuetLabel"),this.checkHasTooltip=()=>{this.hasTooltip=s(this.element,"tooltip")},this.hasTooltip=!1,this.theme="",this.margin="auto",this.caption=void 0,this.label=void 0,this.error=void 0,this.accessibleLiveError="polite",this.labelHidden=!1}componentWillLoad(){a(this),this.checkHasTooltip()}render(){return t(i,{class:{"duet-m-0":"none"===this.margin}},t("fieldset",{"aria-labelledby":this.labelId,"aria-describedby":this.error?this.errorId:null,class:{"duet-fieldset":!0,"duet-theme-turva":"turva"===this.theme}},t("legend",{id:this.labelId},t("span",null,this.label),this.caption&&t("span",null,this.caption)),t("div",{class:{"duet-legend-wrapper":!0,"duet-legend-has-caption":!!this.caption,"duet-legend-has-tooltip":this.hasTooltip,"duet-legend-hidden":this.labelHidden}},t("div",{class:"duet-fieldset-label"},t("span",{"aria-hidden":"true"},this.label),t("slot",{onSlotchange:this.checkHasTooltip,name:"tooltip"})),this.caption&&t("div",{class:"duet-fieldset-caption","aria-hidden":"true"},t("duet-caption",{margin:"none"},this.caption))),t("slot",null),t("span",{class:"duet-fieldset-help",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&t("span",null,this.error))))}get element(){return o(this)}};l.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:12px !important;display:block;width:100%}:host(.duet-m-0){margin:0 !important}fieldset{position:relative;width:100%;min-width:0;border:0}fieldset legend{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}.duet-legend-wrapper{position:relative;display:block;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(0, 41, 77);text-align:left;background:transparent}.duet-theme-turva .duet-legend-wrapper{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-fieldset-label{margin-bottom:12px !important;margin-top:8px}.duet-legend-has-caption .duet-fieldset-label{margin-bottom:6px !important}.duet-legend-has-tooltip .duet-fieldset-label{padding-right:36px}@media (min-width: 48em){.duet-legend-has-tooltip .duet-fieldset-label{margin-bottom:3px !important;padding-right:0}}@media (min-width: 48em){.duet-legend-has-tooltip.duet-legend-has-caption .duet-fieldset-label{margin-bottom:-3px !important}}.duet-fieldset-caption{margin-bottom:12px !important}.duet-fieldset-help{display:block;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(222, 35, 98);border-radius:4px}.duet-fieldset-help span{display:block;margin-top:12px}.duet-theme-turva .duet-fieldset-help{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(224, 42, 13)}::slotted(duet-tooltip){position:absolute;top:4px;right:0}@media (min-width: 48em){::slotted(duet-tooltip){position:relative;right:auto}}.duet-legend-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}';export{l as duet_fieldset}