@duetds/components 9.12.1 → 9.12.2

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 (628) hide show
  1. package/hydrate/index.js +19 -25
  2. package/lib/cjs/{a11y-utils-eb7d7eaf.js → a11y-utils-e59debeb.js} +1 -1
  3. package/lib/cjs/{app-globals-0c7238c4.js → app-globals-f559c48a.js} +1 -1
  4. package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
  5. package/lib/cjs/duet-alert.cjs.entry.js +4 -4
  6. package/lib/cjs/duet-badge.cjs.entry.js +2 -2
  7. package/lib/cjs/duet-banner.cjs.entry.js +3 -3
  8. package/lib/cjs/duet-breadcrumb.cjs.entry.js +3 -3
  9. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +3 -3
  10. package/lib/cjs/duet-button_2.cjs.entry.js +3 -3
  11. package/lib/cjs/duet-callout.cjs.entry.js +3 -3
  12. package/lib/cjs/duet-caption_4.cjs.entry.js +5 -5
  13. package/lib/cjs/duet-card.cjs.entry.js +3 -3
  14. package/lib/cjs/duet-checkbox.cjs.entry.js +2 -2
  15. package/lib/cjs/duet-checkmark.cjs.entry.js +2 -2
  16. package/lib/cjs/duet-chip.cjs.entry.js +3 -3
  17. package/lib/cjs/duet-choice_2.cjs.entry.js +4 -4
  18. package/lib/cjs/duet-collapsible.cjs.entry.js +3 -3
  19. package/lib/cjs/duet-combobox.cjs.entry.js +4 -4
  20. package/lib/cjs/duet-contact-card.cjs.entry.js +3 -3
  21. package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
  22. package/lib/cjs/duet-date-picker.cjs.entry.js +5 -5
  23. package/lib/cjs/duet-divider_2.cjs.entry.js +2 -2
  24. package/lib/cjs/duet-editable-table_3.cjs.entry.js +4 -4
  25. package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
  26. package/lib/cjs/duet-fieldset.cjs.entry.js +3 -3
  27. package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
  28. package/lib/cjs/duet-footer.cjs.entry.js +4 -4
  29. package/lib/cjs/duet-grid_2.cjs.entry.js +2 -2
  30. package/lib/cjs/duet-header_2.cjs.entry.js +9 -6
  31. package/lib/cjs/duet-hero.cjs.entry.js +4 -4
  32. package/lib/cjs/duet-icon.cjs.entry.js +2 -2
  33. package/lib/cjs/duet-input_2.cjs.entry.js +4 -4
  34. package/lib/cjs/duet-layout.cjs.entry.js +2 -2
  35. package/lib/cjs/duet-list_2.cjs.entry.js +2 -2
  36. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +2 -2
  37. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +2 -2
  38. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +2 -2
  39. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +5 -5
  40. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +2 -2
  41. package/lib/cjs/duet-menu-bar.cjs.entry.js +3 -3
  42. package/lib/cjs/duet-modal.cjs.entry.js +5 -5
  43. package/lib/cjs/duet-multiselect.cjs.entry.js +4 -4
  44. package/lib/cjs/duet-nav.cjs.entry.js +2 -2
  45. package/lib/cjs/duet-notification_2.cjs.entry.js +3 -3
  46. package/lib/cjs/duet-number-input.cjs.entry.js +4 -4
  47. package/lib/cjs/duet-overlay.cjs.entry.js +2 -2
  48. package/lib/cjs/duet-page-heading.cjs.entry.js +2 -2
  49. package/lib/cjs/duet-pagination_2.cjs.entry.js +3 -3
  50. package/lib/cjs/duet-phone-input.cjs.entry.js +4 -4
  51. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +4 -4
  52. package/lib/cjs/duet-progress.cjs.entry.js +3 -3
  53. package/lib/cjs/duet-promo-card.cjs.entry.js +3 -3
  54. package/lib/cjs/duet-radio_2.cjs.entry.js +3 -3
  55. package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
  56. package/lib/cjs/duet-scrollable_3.cjs.entry.js +10 -10
  57. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
  58. package/lib/cjs/duet-select.cjs.entry.js +3 -3
  59. package/lib/cjs/duet-shaped-image.cjs.entry.js +2 -2
  60. package/lib/cjs/duet-share-chart-item.cjs.entry.js +1 -1
  61. package/lib/cjs/duet-share-chart.cjs.entry.js +11 -20
  62. package/lib/cjs/duet-show-more.cjs.entry.js +3 -3
  63. package/lib/cjs/duet-slideout-lang.cjs.entry.js +3 -3
  64. package/lib/cjs/duet-slideout-link.cjs.entry.js +5 -5
  65. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +2 -2
  66. package/lib/cjs/duet-slideout-panel.cjs.entry.js +5 -5
  67. package/lib/cjs/duet-slideout.cjs.entry.js +5 -5
  68. package/lib/cjs/duet-status-icon.cjs.entry.js +1 -1
  69. package/lib/cjs/duet-step_2.cjs.entry.js +3 -3
  70. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +2 -2
  71. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +2 -2
  72. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +5 -5
  73. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +2 -2
  74. package/lib/cjs/duet-submenu-bar.cjs.entry.js +2 -2
  75. package/lib/cjs/duet-textarea.cjs.entry.js +4 -4
  76. package/lib/cjs/duet-toggle.cjs.entry.js +2 -2
  77. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +2 -2
  78. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +2 -2
  79. package/lib/cjs/duet-toolbar-item.cjs.entry.js +5 -5
  80. package/lib/cjs/duet-toolbar-link.cjs.entry.js +2 -2
  81. package/lib/cjs/duet-toolbar.cjs.entry.js +2 -2
  82. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +3 -3
  83. package/lib/cjs/duet-tooltip.cjs.entry.js +3 -3
  84. package/lib/cjs/duet-tray.cjs.entry.js +3 -3
  85. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  86. package/lib/cjs/duet-upload-item.cjs.entry.js +4 -4
  87. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  88. package/lib/cjs/duet.cjs.js +2 -2
  89. package/lib/cjs/{errorcodes.utils-0f49bb86.js → errorcodes.utils-803bdf0f.js} +1 -1
  90. package/lib/cjs/{focus-utils-6f3c697c.js → focus-utils-aab4fc49.js} +1 -1
  91. package/lib/cjs/{index-12fb92a8.js → index-9f14a370.js} +1 -1
  92. package/lib/cjs/{language-utils-50137d46.js → language-utils-db49b98b.js} +1 -1
  93. package/lib/cjs/loader.cjs.js +2 -2
  94. package/lib/cjs/{slot-utils-474c87ed.js → slot-utils-018275a5.js} +1 -1
  95. package/lib/cjs/{themeable-component-de7d5c0a.js → themeable-component-59982a4b.js} +1 -1
  96. package/lib/collection/components/duet-logo/duet-logo.css +9 -0
  97. package/lib/collection/components/duet-logo/duet-logo.js +5 -2
  98. package/lib/collection/components/duet-share-chart/duet-share-chart.js +7 -16
  99. package/lib/collection/components/duet-tab-group/duet-tab-group.js +6 -6
  100. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  101. package/lib/dist-custom-elements/duet-alert.js +1 -1
  102. package/lib/dist-custom-elements/duet-badge.js +1 -1
  103. package/lib/dist-custom-elements/duet-banner.js +3 -3
  104. package/lib/dist-custom-elements/duet-breadcrumb.js +3 -3
  105. package/lib/dist-custom-elements/duet-breadcrumbs.js +1 -1
  106. package/lib/dist-custom-elements/duet-button.js +1 -1
  107. package/lib/dist-custom-elements/duet-callout.js +2 -2
  108. package/lib/dist-custom-elements/duet-caption.js +1 -1
  109. package/lib/dist-custom-elements/duet-card.js +3 -3
  110. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  111. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  112. package/lib/dist-custom-elements/duet-chip.js +1 -1
  113. package/lib/dist-custom-elements/duet-choice-group.js +8 -8
  114. package/lib/dist-custom-elements/duet-choice.js +4 -4
  115. package/lib/dist-custom-elements/duet-collapsible.js +3 -3
  116. package/lib/dist-custom-elements/duet-combobox.js +15 -15
  117. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  118. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  119. package/lib/dist-custom-elements/duet-date-picker.js +13 -13
  120. package/lib/dist-custom-elements/duet-divider.js +1 -1
  121. package/lib/dist-custom-elements/duet-editable-table.js +7 -7
  122. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  123. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  124. package/lib/dist-custom-elements/duet-file-chooser.js +2 -2
  125. package/lib/dist-custom-elements/duet-footer.js +7 -7
  126. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  127. package/lib/dist-custom-elements/duet-grid.js +1 -1
  128. package/lib/dist-custom-elements/duet-header.js +8 -8
  129. package/lib/dist-custom-elements/duet-heading.js +1 -1
  130. package/lib/dist-custom-elements/duet-hero.js +9 -9
  131. package/lib/dist-custom-elements/duet-icon.js +1 -1
  132. package/lib/dist-custom-elements/duet-input.js +1 -1
  133. package/lib/dist-custom-elements/duet-label.js +1 -1
  134. package/lib/dist-custom-elements/duet-layout.js +1 -1
  135. package/lib/dist-custom-elements/duet-link.js +1 -1
  136. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  137. package/lib/dist-custom-elements/duet-list.js +1 -1
  138. package/lib/dist-custom-elements/duet-logo.js +1 -1
  139. package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
  140. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
  141. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
  142. package/lib/dist-custom-elements/duet-menu-bar-item.js +2 -2
  143. package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
  144. package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
  145. package/lib/dist-custom-elements/duet-modal.js +8 -8
  146. package/lib/dist-custom-elements/duet-multiselect.js +9 -9
  147. package/lib/dist-custom-elements/duet-nav.js +1 -1
  148. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  149. package/lib/dist-custom-elements/duet-notification.js +2 -2
  150. package/lib/dist-custom-elements/duet-number-input.js +11 -11
  151. package/lib/dist-custom-elements/duet-overlay.js +1 -1
  152. package/lib/dist-custom-elements/duet-page-heading.js +3 -3
  153. package/lib/dist-custom-elements/duet-pagination.js +13 -13
  154. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  155. package/lib/dist-custom-elements/duet-phone-input.js +16 -16
  156. package/lib/dist-custom-elements/duet-popup-menu-item.js +1 -1
  157. package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
  158. package/lib/dist-custom-elements/duet-progress.js +1 -1
  159. package/lib/dist-custom-elements/duet-promo-card.js +3 -3
  160. package/lib/dist-custom-elements/duet-radio-group.js +8 -8
  161. package/lib/dist-custom-elements/duet-radio.js +1 -1
  162. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  163. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  164. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  165. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  166. package/lib/dist-custom-elements/duet-select.js +1 -1
  167. package/lib/dist-custom-elements/duet-shaped-image.js +1 -1
  168. package/lib/dist-custom-elements/duet-share-chart-item.js +1 -1
  169. package/lib/dist-custom-elements/duet-share-chart.js +9 -18
  170. package/lib/dist-custom-elements/duet-show-more.js +1 -1
  171. package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
  172. package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
  173. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
  174. package/lib/dist-custom-elements/duet-slideout-panel.js +2 -2
  175. package/lib/dist-custom-elements/duet-slideout.js +3 -3
  176. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  177. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  178. package/lib/dist-custom-elements/duet-status-icon.js +1 -1
  179. package/lib/dist-custom-elements/duet-step.js +4 -4
  180. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  181. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
  182. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +2 -2
  183. package/lib/dist-custom-elements/duet-submenu-bar-item.js +2 -2
  184. package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
  185. package/lib/dist-custom-elements/duet-submenu-bar.js +3 -3
  186. package/lib/dist-custom-elements/duet-tab-group.js +13 -13
  187. package/lib/dist-custom-elements/duet-tab.js +1 -1
  188. package/lib/dist-custom-elements/duet-table.js +1 -1
  189. package/lib/dist-custom-elements/duet-textarea.js +10 -10
  190. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  191. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
  192. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
  193. package/lib/dist-custom-elements/duet-toolbar-item.js +2 -2
  194. package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
  195. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  196. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  197. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  198. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  199. package/lib/dist-custom-elements/duet-tray.js +3 -3
  200. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  201. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  202. package/lib/dist-custom-elements/duet-upload.js +20 -20
  203. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  204. package/lib/dist-custom-elements/index.js +1 -1
  205. package/lib/dist-custom-elements/{p-4d548619.js → p-0b77ee39.js} +2 -2
  206. package/lib/dist-custom-elements/{p-d2076dc4.js → p-0c936fe5.js} +5 -5
  207. package/lib/dist-custom-elements/{p-a3ee9b04.js → p-14f9f7a0.js} +1 -1
  208. package/lib/dist-custom-elements/{p-e43cba09.js → p-16f01714.js} +1 -1
  209. package/lib/dist-custom-elements/{p-b5858313.js → p-1a647490.js} +4 -4
  210. package/lib/dist-custom-elements/{p-aa1176f3.js → p-1b344cf7.js} +1 -1
  211. package/lib/dist-custom-elements/{p-b7bb3a5e.js → p-1d53e17e.js} +2 -2
  212. package/lib/dist-custom-elements/{p-c42aabf4.js → p-1f214262.js} +1 -1
  213. package/lib/dist-custom-elements/{p-67ff4699.js → p-32a8ced7.js} +2 -2
  214. package/lib/dist-custom-elements/{p-9e5e7021.js → p-3600a7d8.js} +2 -2
  215. package/lib/dist-custom-elements/{p-197e9dc0.js → p-38225a71.js} +7 -4
  216. package/lib/dist-custom-elements/{p-2d794b1d.js → p-3d69644c.js} +8 -8
  217. package/lib/dist-custom-elements/{p-17d482c6.js → p-4f46d35d.js} +10 -10
  218. package/lib/dist-custom-elements/{p-610436af.js → p-5c0ef833.js} +12 -12
  219. package/lib/dist-custom-elements/{p-659d9275.js → p-5fb435c0.js} +1 -1
  220. package/lib/dist-custom-elements/{p-9d2dd122.js → p-64abcbeb.js} +1 -1
  221. package/lib/dist-custom-elements/{p-8275df70.js → p-64f1c43c.js} +3 -3
  222. package/lib/dist-custom-elements/{p-aca34830.js → p-69ca7615.js} +2 -2
  223. package/lib/dist-custom-elements/{p-63bf5af7.js → p-6f7ac4a5.js} +1 -1
  224. package/lib/dist-custom-elements/{p-e42a99da.js → p-6f969e11.js} +1 -1
  225. package/lib/dist-custom-elements/{p-7e522fe1.js → p-71245313.js} +10 -10
  226. package/lib/dist-custom-elements/{p-b1b35ed8.js → p-74971fe9.js} +1 -1
  227. package/lib/dist-custom-elements/{p-8d1c675d.js → p-7b0e3959.js} +1 -1
  228. package/lib/dist-custom-elements/{p-f0814752.js → p-93896e54.js} +7 -7
  229. package/lib/dist-custom-elements/{p-45e549db.js → p-9f5cbda4.js} +1 -1
  230. package/lib/dist-custom-elements/{p-7f3ef3e8.js → p-b1100334.js} +5 -5
  231. package/lib/dist-custom-elements/{p-06ac6648.js → p-b34c0bc0.js} +1 -1
  232. package/lib/dist-custom-elements/{p-fef4533f.js → p-b760d510.js} +2 -2
  233. package/lib/dist-custom-elements/{p-9f521e63.js → p-b7e3ed2c.js} +1 -1
  234. package/lib/dist-custom-elements/{p-ec27d97c.js → p-b879c406.js} +1 -1
  235. package/lib/dist-custom-elements/{p-4ac094e9.js → p-c4cf8fc4.js} +1 -1
  236. package/lib/dist-custom-elements/{p-7e303b62.js → p-ccf00480.js} +3 -3
  237. package/lib/dist-custom-elements/{p-b2a93a65.js → p-d6d3f142.js} +2 -2
  238. package/lib/dist-custom-elements/{p-aa47d8c8.js → p-daa2778f.js} +1 -1
  239. package/lib/dist-custom-elements/{p-dfe33d53.js → p-dbe0ddfd.js} +1 -1
  240. package/lib/dist-custom-elements/{p-de9060f8.js → p-e024b525.js} +1 -1
  241. package/lib/dist-custom-elements/{p-811ef13f.js → p-e40817b6.js} +1 -1
  242. package/lib/dist-custom-elements/{p-aa2c1980.js → p-e7c96fb9.js} +2 -2
  243. package/lib/dist-custom-elements/{p-f24d48e7.js → p-f42fd1a5.js} +5 -5
  244. package/lib/dist-custom-elements/{p-7e7fb279.js → p-ff3742a3.js} +2 -2
  245. package/lib/duet/duet.esm.js +1 -1
  246. package/lib/duet/duet.js +1 -1
  247. package/lib/duet/{p-5ab9b2f2.system.entry.js → p-00e5d987.system.entry.js} +1 -1
  248. package/lib/duet/{p-101ca8af.entry.js → p-013ff1b1.entry.js} +1 -1
  249. package/lib/duet/{p-0b311af8.system.entry.js → p-025452a3.system.entry.js} +1 -1
  250. package/lib/duet/{p-a6f60427.system.entry.js → p-02785b42.system.entry.js} +1 -1
  251. package/lib/duet/{p-5be207bf.entry.js → p-02922551.entry.js} +1 -1
  252. package/lib/duet/{p-5f47699f.system.entry.js → p-03eb030a.system.entry.js} +1 -1
  253. package/lib/duet/{p-dcb5349d.entry.js → p-0454a8c6.entry.js} +1 -1
  254. package/lib/duet/{p-657f06e2.system.entry.js → p-053c4b67.system.entry.js} +1 -1
  255. package/lib/duet/p-0a7ee399.js +4 -0
  256. package/lib/duet/{p-7f0ed16a.system.entry.js → p-0aa18687.system.entry.js} +1 -1
  257. package/lib/duet/{p-eeefee8e.entry.js → p-0b74ce31.entry.js} +1 -1
  258. package/lib/duet/{p-050296c6.system.entry.js → p-0dac0f34.system.entry.js} +1 -1
  259. package/lib/duet/{p-d3273de6.system.entry.js → p-0db9de80.system.entry.js} +1 -1
  260. package/lib/duet/{p-d18e475d.js → p-0e7cf850.js} +1 -1
  261. package/lib/duet/{p-7da43883.entry.js → p-0f945464.entry.js} +1 -1
  262. package/lib/duet/{p-7526e5be.entry.js → p-0fa3c05b.entry.js} +1 -1
  263. package/lib/duet/{p-650bdc25.entry.js → p-10bfafcf.entry.js} +1 -1
  264. package/lib/duet/{p-d496bebb.entry.js → p-11f51d65.entry.js} +1 -1
  265. package/lib/duet/{p-f78dca2e.entry.js → p-14108f66.entry.js} +1 -1
  266. package/lib/duet/{p-ceadecc7.entry.js → p-16432cd4.entry.js} +1 -1
  267. package/lib/duet/{p-32f02f64.system.entry.js → p-1bd4baef.system.entry.js} +1 -1
  268. package/lib/duet/{p-1a563828.system.entry.js → p-1c58f3a1.system.entry.js} +1 -1
  269. package/lib/duet/{p-0e9d4260.entry.js → p-1c8887ea.entry.js} +1 -1
  270. package/lib/duet/{p-29863ae9.system.entry.js → p-1df441b0.system.entry.js} +1 -1
  271. package/lib/duet/{p-5947c8fc.system.entry.js → p-1eed0b1c.system.entry.js} +1 -1
  272. package/lib/duet/{p-2da78b69.system.entry.js → p-1f45b3af.system.entry.js} +1 -1
  273. package/lib/duet/{p-2f81e969.entry.js → p-1f5772a7.entry.js} +1 -1
  274. package/lib/duet/{p-b6b5fcac.system.entry.js → p-21090503.system.entry.js} +1 -1
  275. package/lib/duet/{p-58d62f62.entry.js → p-21208eb0.entry.js} +1 -1
  276. package/lib/duet/{p-de09a768.entry.js → p-21fb0158.entry.js} +1 -1
  277. package/lib/duet/{p-c54d743f.entry.js → p-23eb5520.entry.js} +1 -1
  278. package/lib/duet/p-242bcacd.system.js +4 -0
  279. package/lib/duet/{p-312af8bd.entry.js → p-24dcf46b.entry.js} +1 -1
  280. package/lib/duet/p-25da61f0.entry.js +4 -0
  281. package/lib/duet/{p-93858ff9.js → p-27219a43.js} +1 -1
  282. package/lib/duet/{p-cf2d6343.system.entry.js → p-2819123b.system.entry.js} +1 -1
  283. package/lib/duet/{p-5ddb7055.entry.js → p-2a1dd592.entry.js} +1 -1
  284. package/lib/duet/{p-ec2870db.entry.js → p-2c09d10f.entry.js} +1 -1
  285. package/lib/duet/{p-dd3f683b.system.entry.js → p-326ef77a.system.entry.js} +1 -1
  286. package/lib/duet/{p-1c3fe02c.entry.js → p-32971abc.entry.js} +1 -1
  287. package/lib/duet/{p-8b2d95a9.system.entry.js → p-33e24f0b.system.entry.js} +1 -1
  288. package/lib/duet/{p-3ffb0c67.entry.js → p-35580d9e.entry.js} +1 -1
  289. package/lib/duet/{p-23829f27.system.entry.js → p-386fdf47.system.entry.js} +1 -1
  290. package/lib/duet/{p-597d57cf.entry.js → p-38d5c9e6.entry.js} +1 -1
  291. package/lib/duet/{p-41abde10.entry.js → p-3b7bc2eb.entry.js} +1 -1
  292. package/lib/duet/{p-3a63986f.system.entry.js → p-3bffb004.system.entry.js} +1 -1
  293. package/lib/duet/{p-3d1ab7fe.system.entry.js → p-3c412042.system.entry.js} +1 -1
  294. package/lib/duet/{p-9a86f97f.entry.js → p-3c7d3755.entry.js} +1 -1
  295. package/lib/duet/{p-69c35153.entry.js → p-3e995aa9.entry.js} +1 -1
  296. package/lib/duet/{p-08bba53e.js → p-40295380.js} +1 -1
  297. package/lib/duet/{p-cf86a2c5.system.entry.js → p-41bafdf1.system.entry.js} +1 -1
  298. package/lib/duet/{p-ed98e3ec.system.entry.js → p-437e64f1.system.entry.js} +1 -1
  299. package/lib/duet/{p-67cbf075.system.entry.js → p-43a8d843.system.entry.js} +1 -1
  300. package/lib/duet/{p-0ecbbcd0.system.entry.js → p-46ba82ab.system.entry.js} +1 -1
  301. package/lib/duet/{p-4da54416.system.entry.js → p-474c40d9.system.entry.js} +1 -1
  302. package/lib/duet/{p-051686ca.system.entry.js → p-4bb9c12b.system.entry.js} +1 -1
  303. package/lib/duet/{p-e6af90e5.system.entry.js → p-4c6198ef.system.entry.js} +1 -1
  304. package/lib/duet/{p-c35f014e.entry.js → p-4ca291e2.entry.js} +1 -1
  305. package/lib/duet/{p-9335920c.entry.js → p-4ded9936.entry.js} +1 -1
  306. package/lib/duet/{p-cc163e81.system.js → p-4e9fc9dc.system.js} +1 -1
  307. package/lib/duet/p-4f87023e.entry.js +4 -0
  308. package/lib/duet/{p-a7582ffa.system.entry.js → p-563804e0.system.entry.js} +1 -1
  309. package/lib/duet/{p-e8b29168.system.entry.js → p-5638079e.system.entry.js} +1 -1
  310. package/lib/duet/{p-27624e46.system.entry.js → p-586ba4e6.system.entry.js} +1 -1
  311. package/lib/duet/{p-912e1084.system.entry.js → p-587b5b14.system.entry.js} +1 -1
  312. package/lib/duet/{p-c0c9db4b.entry.js → p-594f7ff9.entry.js} +1 -1
  313. package/lib/duet/{p-9515506f.entry.js → p-5a144646.entry.js} +1 -1
  314. package/lib/duet/{p-06e4bb08.system.entry.js → p-5b0acd52.system.entry.js} +1 -1
  315. package/lib/duet/{p-63ce7199.system.entry.js → p-5d2cba5e.system.entry.js} +1 -1
  316. package/lib/duet/{p-40092524.system.js → p-5d7af988.system.js} +1 -1
  317. package/lib/duet/{p-dc54c51c.entry.js → p-5da25b76.entry.js} +1 -1
  318. package/lib/duet/{p-ad92101a.system.entry.js → p-618232f5.system.entry.js} +1 -1
  319. package/lib/duet/{p-d16254bc.system.js → p-61e21220.system.js} +1 -1
  320. package/lib/duet/{p-39d24328.system.entry.js → p-61f97ebd.system.entry.js} +1 -1
  321. package/lib/duet/{p-5cad5c31.system.entry.js → p-6288d368.system.entry.js} +1 -1
  322. package/lib/duet/{p-7a91e718.system.entry.js → p-628dc72c.system.entry.js} +1 -1
  323. package/lib/duet/{p-3ff6b3af.entry.js → p-62a9692f.entry.js} +1 -1
  324. package/lib/duet/{p-361f8626.system.entry.js → p-64709c5e.system.entry.js} +1 -1
  325. package/lib/duet/{p-1e413da2.entry.js → p-651d3dec.entry.js} +1 -1
  326. package/lib/duet/{p-1f18231b.system.entry.js → p-67d84e6e.system.entry.js} +1 -1
  327. package/lib/duet/{p-eac80482.entry.js → p-6916bba8.entry.js} +1 -1
  328. package/lib/duet/{p-654b8fd6.entry.js → p-69d12878.entry.js} +1 -1
  329. package/lib/duet/{p-f48761f3.entry.js → p-6a455c03.entry.js} +1 -1
  330. package/lib/duet/{p-292da4fb.system.entry.js → p-6ab8cc04.system.entry.js} +1 -1
  331. package/lib/duet/{p-d8326db8.entry.js → p-6bbb4dd9.entry.js} +1 -1
  332. package/lib/duet/{p-1d18b853.system.entry.js → p-6f5c7766.system.entry.js} +1 -1
  333. package/lib/duet/{p-fe992c7f.system.entry.js → p-7013ce09.system.entry.js} +1 -1
  334. package/lib/duet/{p-15210ebf.entry.js → p-7053f582.entry.js} +1 -1
  335. package/lib/duet/{p-064be793.entry.js → p-705d56cf.entry.js} +1 -1
  336. package/lib/duet/{p-03f6997b.system.entry.js → p-723a5a2f.system.entry.js} +1 -1
  337. package/lib/duet/{p-fd2005f3.entry.js → p-72b80f54.entry.js} +1 -1
  338. package/lib/duet/{p-9535e410.system.entry.js → p-78376f40.system.entry.js} +1 -1
  339. package/lib/duet/{p-54a78bb7.system.entry.js → p-79bccb1f.system.entry.js} +1 -1
  340. package/lib/duet/{p-b0e2711d.system.entry.js → p-7b01ab6d.system.entry.js} +1 -1
  341. package/lib/duet/{p-b3501770.system.entry.js → p-7b43d889.system.entry.js} +1 -1
  342. package/lib/duet/{p-3500d34b.entry.js → p-7d861055.entry.js} +1 -1
  343. package/lib/duet/{p-07e5c1ee.entry.js → p-7fe2a579.entry.js} +1 -1
  344. package/lib/duet/{p-9452de48.system.entry.js → p-7ff43e10.system.entry.js} +1 -1
  345. package/lib/duet/{p-4ecea3e6.system.entry.js → p-8173dd50.system.entry.js} +2 -2
  346. package/lib/duet/p-822bbe28.system.entry.js +4 -0
  347. package/lib/duet/{p-c2fad6a5.entry.js → p-82412ccb.entry.js} +1 -1
  348. package/lib/duet/{p-1f4598d2.system.entry.js → p-833d7be7.system.entry.js} +1 -1
  349. package/lib/duet/{p-1ee687f8.js → p-83ea5225.js} +1 -1
  350. package/lib/duet/{p-6febb548.entry.js → p-85d98f00.entry.js} +1 -1
  351. package/lib/duet/{p-3298b606.entry.js → p-88317c08.entry.js} +1 -1
  352. package/lib/duet/{p-e4687509.system.entry.js → p-89a1fa97.system.entry.js} +1 -1
  353. package/lib/duet/{p-c31db313.system.entry.js → p-8bf31541.system.entry.js} +1 -1
  354. package/lib/duet/{p-8962c32b.system.entry.js → p-8cfba882.system.entry.js} +1 -1
  355. package/lib/duet/{p-5aebfc50.system.entry.js → p-8d5ebdab.system.entry.js} +1 -1
  356. package/lib/duet/{p-0a2ca8d4.entry.js → p-8e0952b2.entry.js} +1 -1
  357. package/lib/duet/{p-33673113.system.entry.js → p-903b934c.system.entry.js} +1 -1
  358. package/lib/duet/{p-2ecba133.entry.js → p-911830a9.entry.js} +1 -1
  359. package/lib/duet/{p-04110930.entry.js → p-91d5d8cb.entry.js} +1 -1
  360. package/lib/duet/p-91df376b.entry.js +4 -0
  361. package/lib/duet/{p-262f5b02.entry.js → p-940ed1a1.entry.js} +1 -1
  362. package/lib/duet/{p-a90171c5.system.entry.js → p-9516f5fc.system.entry.js} +1 -1
  363. package/lib/duet/{p-7c9c8402.entry.js → p-987e96a5.entry.js} +1 -1
  364. package/lib/duet/{p-a237b26a.entry.js → p-98eddabd.entry.js} +1 -1
  365. package/lib/duet/{p-0616ff06.entry.js → p-9b88b8f4.entry.js} +1 -1
  366. package/lib/duet/{p-8ce6d5a4.entry.js → p-9cc1306c.entry.js} +1 -1
  367. package/lib/duet/{p-795182e4.system.entry.js → p-9e73ce43.system.entry.js} +1 -1
  368. package/lib/duet/{p-e3c5b05c.entry.js → p-a0a43bf4.entry.js} +1 -1
  369. package/lib/duet/{p-d2ebebb1.entry.js → p-a157e1cc.entry.js} +1 -1
  370. package/lib/duet/{p-181173c9.system.entry.js → p-a3a2f086.system.entry.js} +1 -1
  371. package/lib/duet/{p-067a03de.entry.js → p-a445ce8a.entry.js} +1 -1
  372. package/lib/duet/{p-01fb38a7.entry.js → p-a6c30abd.entry.js} +1 -1
  373. package/lib/duet/{p-4af8a986.system.entry.js → p-a820ff4d.system.entry.js} +1 -1
  374. package/lib/duet/{p-0e5663a5.system.js → p-adeb1555.system.js} +1 -1
  375. package/lib/duet/{p-c095dda3.system.js → p-af0e060c.system.js} +1 -1
  376. package/lib/duet/{p-89f663e3.entry.js → p-b159c0a9.entry.js} +1 -1
  377. package/lib/duet/{p-f2ea381a.system.entry.js → p-b3b3b6d2.system.entry.js} +2 -2
  378. package/lib/duet/{p-bc77d7d6.system.entry.js → p-b7a29ea3.system.entry.js} +1 -1
  379. package/lib/duet/{p-c0170c7f.system.entry.js → p-b87f5ff8.system.entry.js} +2 -2
  380. package/lib/duet/{p-61e0218c.js → p-b9189fc1.js} +1 -1
  381. package/lib/duet/{p-3d7cf9ac.entry.js → p-bca76d73.entry.js} +1 -1
  382. package/lib/duet/{p-597e39d7.js → p-bf06650e.js} +1 -1
  383. package/lib/duet/{p-2b9fce6b.entry.js → p-bf62ea4a.entry.js} +1 -1
  384. package/lib/duet/{p-12ba0e70.entry.js → p-c1884875.entry.js} +1 -1
  385. package/lib/duet/{p-26382102.entry.js → p-c1a9ca3f.entry.js} +1 -1
  386. package/lib/duet/{p-431e6648.entry.js → p-c1c77f83.entry.js} +1 -1
  387. package/lib/duet/{p-04f0d026.system.entry.js → p-c1db69bc.system.entry.js} +1 -1
  388. package/lib/duet/p-c4ea6d92.entry.js +4 -0
  389. package/lib/duet/{p-d343e764.entry.js → p-c6497425.entry.js} +1 -1
  390. package/lib/duet/{p-0565c078.entry.js → p-c8df1d39.entry.js} +1 -1
  391. package/lib/duet/{p-924f7ee7.entry.js → p-c9c52ec2.entry.js} +1 -1
  392. package/lib/duet/{p-a34354c3.entry.js → p-ca812b3c.entry.js} +1 -1
  393. package/lib/duet/{p-87e52e22.system.entry.js → p-cc2adccb.system.entry.js} +1 -1
  394. package/lib/duet/{p-4431973b.system.entry.js → p-ce063cbd.system.entry.js} +1 -1
  395. package/lib/duet/{p-0c7b1f02.js → p-d064df5e.js} +1 -1
  396. package/lib/duet/{p-4dd65e5d.entry.js → p-d17b23fc.entry.js} +1 -1
  397. package/lib/duet/{p-16dab8b1.system.entry.js → p-d5ceec92.system.entry.js} +1 -1
  398. package/lib/duet/{p-ea16c673.system.entry.js → p-d64b13f1.system.entry.js} +1 -1
  399. package/lib/duet/{p-260f26f5.system.js → p-d80ae90e.system.js} +1 -1
  400. package/lib/duet/{p-35166e3f.entry.js → p-d8323868.entry.js} +1 -1
  401. package/lib/duet/{p-0e332dee.system.entry.js → p-da1458e1.system.entry.js} +1 -1
  402. package/lib/duet/{p-d8bad54e.entry.js → p-dab809f9.entry.js} +1 -1
  403. package/lib/duet/{p-18ba9b1b.system.entry.js → p-db1a5bf4.system.entry.js} +1 -1
  404. package/lib/duet/{p-84c31ed7.system.entry.js → p-dc12856e.system.entry.js} +1 -1
  405. package/lib/duet/{p-85f8ab4a.system.js → p-dff0867d.system.js} +1 -1
  406. package/lib/duet/{p-9692fc04.entry.js → p-e06e9231.entry.js} +1 -1
  407. package/lib/duet/{p-c00b9de0.system.entry.js → p-e430fc87.system.entry.js} +1 -1
  408. package/lib/duet/{p-d727b6a0.system.js → p-e50a2f96.system.js} +1 -1
  409. package/lib/duet/{p-bbad70b3.system.entry.js → p-e6c3d5b0.system.entry.js} +1 -1
  410. package/lib/duet/{p-fc738e75.system.entry.js → p-e70e9c50.system.entry.js} +2 -2
  411. package/lib/duet/{p-65972f71.system.entry.js → p-e9b88155.system.entry.js} +2 -2
  412. package/lib/duet/{p-01108865.system.entry.js → p-e9e4825a.system.entry.js} +1 -1
  413. package/lib/duet/{p-eac6f6c4.system.entry.js → p-ebf7a3ac.system.entry.js} +1 -1
  414. package/lib/duet/{p-421491ad.system.entry.js → p-ede03d44.system.entry.js} +1 -1
  415. package/lib/duet/{p-0868b0ab.entry.js → p-ef4fea1b.entry.js} +1 -1
  416. package/lib/duet/{p-b02acbb7.system.entry.js → p-f0354143.system.entry.js} +1 -1
  417. package/lib/duet/{p-4e82ca26.entry.js → p-f0566568.entry.js} +1 -1
  418. package/lib/duet/{p-cccbf193.entry.js → p-f074b245.entry.js} +1 -1
  419. package/lib/duet/{p-13f29f11.system.entry.js → p-f2277c25.system.entry.js} +1 -1
  420. package/lib/duet/{p-5646f856.entry.js → p-f528fb99.entry.js} +1 -1
  421. package/lib/duet/{p-6232b9ae.system.entry.js → p-f58be348.system.entry.js} +1 -1
  422. package/lib/duet/{p-ee777922.entry.js → p-f713c32c.entry.js} +1 -1
  423. package/lib/duet/{p-6388394f.entry.js → p-f787b33c.entry.js} +1 -1
  424. package/lib/duet/{p-ca4ce779.system.entry.js → p-f87be171.system.entry.js} +1 -1
  425. package/lib/duet/{p-a856a264.system.entry.js → p-f9be6c4a.system.entry.js} +1 -1
  426. package/lib/duet/{p-7738ff68.system.entry.js → p-fa43f6c2.system.entry.js} +1 -1
  427. package/lib/duet/{p-aade89bd.entry.js → p-fa843791.entry.js} +1 -1
  428. package/lib/duet/{p-4ea2e217.entry.js → p-fc9148a1.entry.js} +1 -1
  429. package/lib/duet/{p-b0ad7329.entry.js → p-fcf1b096.entry.js} +1 -1
  430. package/lib/duet/{p-def5e665.entry.js → p-fdf1fec8.entry.js} +1 -1
  431. package/lib/duet/{p-10e64a2b.entry.js → p-feb01054.entry.js} +1 -1
  432. package/lib/esm/{a11y-utils-ce831a3f.js → a11y-utils-e494647a.js} +1 -1
  433. package/lib/esm/{app-globals-ccf6e0cb.js → app-globals-ba36fb7c.js} +1 -1
  434. package/lib/esm/duet-action-button.entry.js +3 -3
  435. package/lib/esm/duet-alert.entry.js +4 -4
  436. package/lib/esm/duet-badge.entry.js +2 -2
  437. package/lib/esm/duet-banner.entry.js +3 -3
  438. package/lib/esm/duet-breadcrumb.entry.js +3 -3
  439. package/lib/esm/duet-breadcrumbs.entry.js +3 -3
  440. package/lib/esm/duet-button_2.entry.js +3 -3
  441. package/lib/esm/duet-callout.entry.js +3 -3
  442. package/lib/esm/duet-caption_4.entry.js +5 -5
  443. package/lib/esm/duet-card.entry.js +3 -3
  444. package/lib/esm/duet-checkbox.entry.js +2 -2
  445. package/lib/esm/duet-checkmark.entry.js +2 -2
  446. package/lib/esm/duet-chip.entry.js +3 -3
  447. package/lib/esm/duet-choice_2.entry.js +4 -4
  448. package/lib/esm/duet-collapsible.entry.js +3 -3
  449. package/lib/esm/duet-combobox.entry.js +4 -4
  450. package/lib/esm/duet-contact-card.entry.js +3 -3
  451. package/lib/esm/duet-cookie-consent.entry.js +2 -2
  452. package/lib/esm/duet-date-picker.entry.js +5 -5
  453. package/lib/esm/duet-divider_2.entry.js +2 -2
  454. package/lib/esm/duet-editable-table_3.entry.js +4 -4
  455. package/lib/esm/duet-empty-state.entry.js +2 -2
  456. package/lib/esm/duet-fieldset.entry.js +3 -3
  457. package/lib/esm/duet-file-chooser.entry.js +2 -2
  458. package/lib/esm/duet-footer.entry.js +4 -4
  459. package/lib/esm/duet-grid_2.entry.js +2 -2
  460. package/lib/esm/duet-header_2.entry.js +9 -6
  461. package/lib/esm/duet-hero.entry.js +4 -4
  462. package/lib/esm/duet-icon.entry.js +2 -2
  463. package/lib/esm/duet-input_2.entry.js +4 -4
  464. package/lib/esm/duet-layout.entry.js +2 -2
  465. package/lib/esm/duet-list_2.entry.js +2 -2
  466. package/lib/esm/duet-menu-bar-button.entry.js +2 -2
  467. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +2 -2
  468. package/lib/esm/duet-menu-bar-dropdown.entry.js +2 -2
  469. package/lib/esm/duet-menu-bar-item.entry.js +5 -5
  470. package/lib/esm/duet-menu-bar-link.entry.js +2 -2
  471. package/lib/esm/duet-menu-bar.entry.js +3 -3
  472. package/lib/esm/duet-modal.entry.js +5 -5
  473. package/lib/esm/duet-multiselect.entry.js +4 -4
  474. package/lib/esm/duet-nav.entry.js +2 -2
  475. package/lib/esm/duet-notification_2.entry.js +3 -3
  476. package/lib/esm/duet-number-input.entry.js +4 -4
  477. package/lib/esm/duet-overlay.entry.js +2 -2
  478. package/lib/esm/duet-page-heading.entry.js +2 -2
  479. package/lib/esm/duet-pagination_2.entry.js +3 -3
  480. package/lib/esm/duet-phone-input.entry.js +4 -4
  481. package/lib/esm/duet-popup-menu_2.entry.js +4 -4
  482. package/lib/esm/duet-progress.entry.js +3 -3
  483. package/lib/esm/duet-promo-card.entry.js +3 -3
  484. package/lib/esm/duet-radio_2.entry.js +3 -3
  485. package/lib/esm/duet-range-slider.entry.js +2 -2
  486. package/lib/esm/duet-scrollable_3.entry.js +10 -10
  487. package/lib/esm/duet-section-layout.entry.js +1 -1
  488. package/lib/esm/duet-select.entry.js +3 -3
  489. package/lib/esm/duet-shaped-image.entry.js +2 -2
  490. package/lib/esm/duet-share-chart-item.entry.js +1 -1
  491. package/lib/esm/duet-share-chart.entry.js +11 -20
  492. package/lib/esm/duet-show-more.entry.js +3 -3
  493. package/lib/esm/duet-slideout-lang.entry.js +3 -3
  494. package/lib/esm/duet-slideout-link.entry.js +5 -5
  495. package/lib/esm/duet-slideout-panel-dropdown.entry.js +2 -2
  496. package/lib/esm/duet-slideout-panel.entry.js +5 -5
  497. package/lib/esm/duet-slideout.entry.js +5 -5
  498. package/lib/esm/duet-status-icon.entry.js +1 -1
  499. package/lib/esm/duet-step_2.entry.js +3 -3
  500. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +2 -2
  501. package/lib/esm/duet-submenu-bar-dropdown.entry.js +2 -2
  502. package/lib/esm/duet-submenu-bar-item.entry.js +5 -5
  503. package/lib/esm/duet-submenu-bar-link.entry.js +2 -2
  504. package/lib/esm/duet-submenu-bar.entry.js +2 -2
  505. package/lib/esm/duet-textarea.entry.js +4 -4
  506. package/lib/esm/duet-toggle.entry.js +2 -2
  507. package/lib/esm/duet-toolbar-dropdown-link.entry.js +2 -2
  508. package/lib/esm/duet-toolbar-dropdown.entry.js +2 -2
  509. package/lib/esm/duet-toolbar-item.entry.js +5 -5
  510. package/lib/esm/duet-toolbar-link.entry.js +2 -2
  511. package/lib/esm/duet-toolbar.entry.js +2 -2
  512. package/lib/esm/duet-tooltip-button_2.entry.js +3 -3
  513. package/lib/esm/duet-tooltip.entry.js +3 -3
  514. package/lib/esm/duet-tray.entry.js +3 -3
  515. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  516. package/lib/esm/duet-upload-item.entry.js +4 -4
  517. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  518. package/lib/esm/duet.js +3 -3
  519. package/lib/esm/{errorcodes.utils-d809738b.js → errorcodes.utils-f1b68042.js} +1 -1
  520. package/lib/esm/{focus-utils-107c9dcc.js → focus-utils-b131ac81.js} +1 -1
  521. package/lib/esm/{index-82e1aa6b.js → index-822baec2.js} +1 -1
  522. package/lib/esm/{language-utils-5ce51b7f.js → language-utils-2038d09e.js} +1 -1
  523. package/lib/esm/loader.js +3 -3
  524. package/lib/esm/{slot-utils-2a4783cb.js → slot-utils-5410a171.js} +1 -1
  525. package/lib/esm/{themeable-component-6ed84cf7.js → themeable-component-4e1ca2f5.js} +1 -1
  526. package/lib/esm-es5/{a11y-utils-ce831a3f.js → a11y-utils-e494647a.js} +1 -1
  527. package/lib/esm-es5/{app-globals-ccf6e0cb.js → app-globals-ba36fb7c.js} +1 -1
  528. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  529. package/lib/esm-es5/duet-alert.entry.js +1 -1
  530. package/lib/esm-es5/duet-badge.entry.js +1 -1
  531. package/lib/esm-es5/duet-banner.entry.js +1 -1
  532. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  533. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  534. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  535. package/lib/esm-es5/duet-callout.entry.js +1 -1
  536. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  537. package/lib/esm-es5/duet-card.entry.js +1 -1
  538. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  539. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  540. package/lib/esm-es5/duet-chip.entry.js +1 -1
  541. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  542. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  543. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  544. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  545. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  546. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  547. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  548. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  549. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  550. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  551. package/lib/esm-es5/duet-file-chooser.entry.js +1 -1
  552. package/lib/esm-es5/duet-footer.entry.js +1 -1
  553. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  554. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  555. package/lib/esm-es5/duet-hero.entry.js +1 -1
  556. package/lib/esm-es5/duet-icon.entry.js +1 -1
  557. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  558. package/lib/esm-es5/duet-layout.entry.js +1 -1
  559. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  560. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  561. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  562. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  563. package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
  564. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  565. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  566. package/lib/esm-es5/duet-modal.entry.js +1 -1
  567. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  568. package/lib/esm-es5/duet-nav.entry.js +1 -1
  569. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  570. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  571. package/lib/esm-es5/duet-overlay.entry.js +1 -1
  572. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  573. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  574. package/lib/esm-es5/duet-phone-input.entry.js +1 -1
  575. package/lib/esm-es5/duet-popup-menu_2.entry.js +1 -1
  576. package/lib/esm-es5/duet-progress.entry.js +1 -1
  577. package/lib/esm-es5/duet-promo-card.entry.js +1 -1
  578. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  579. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  580. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  581. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  582. package/lib/esm-es5/duet-select.entry.js +1 -1
  583. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  584. package/lib/esm-es5/duet-share-chart-item.entry.js +1 -1
  585. package/lib/esm-es5/duet-share-chart.entry.js +1 -1
  586. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  587. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  588. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  589. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  590. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  591. package/lib/esm-es5/duet-slideout.entry.js +1 -1
  592. package/lib/esm-es5/duet-status-icon.entry.js +1 -1
  593. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  594. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  595. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  596. package/lib/esm-es5/duet-submenu-bar-item.entry.js +1 -1
  597. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  598. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  599. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  600. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  601. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  602. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  603. package/lib/esm-es5/duet-toolbar-item.entry.js +1 -1
  604. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  605. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  606. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  607. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  608. package/lib/esm-es5/duet-tray.entry.js +1 -1
  609. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  610. package/lib/esm-es5/duet-upload-item.entry.js +1 -1
  611. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  612. package/lib/esm-es5/duet.js +1 -1
  613. package/lib/esm-es5/{errorcodes.utils-d809738b.js → errorcodes.utils-f1b68042.js} +1 -1
  614. package/lib/esm-es5/{focus-utils-107c9dcc.js → focus-utils-b131ac81.js} +1 -1
  615. package/lib/esm-es5/{index-82e1aa6b.js → index-822baec2.js} +1 -1
  616. package/lib/esm-es5/{language-utils-5ce51b7f.js → language-utils-2038d09e.js} +1 -1
  617. package/lib/esm-es5/loader.js +1 -1
  618. package/lib/esm-es5/{slot-utils-2a4783cb.js → slot-utils-5410a171.js} +1 -1
  619. package/lib/esm-es5/{themeable-component-6ed84cf7.js → themeable-component-4e1ca2f5.js} +1 -1
  620. package/lib/types/components/duet-share-chart/duet-share-chart.d.ts +0 -2
  621. package/package.json +4 -4
  622. package/lib/duet/p-3a7af916.entry.js +0 -4
  623. package/lib/duet/p-436ccd36.entry.js +0 -4
  624. package/lib/duet/p-53b8bc61.entry.js +0 -4
  625. package/lib/duet/p-71c36d89.entry.js +0 -4
  626. package/lib/duet/p-a284304c.system.js +0 -4
  627. package/lib/duet/p-dd766c73.js +0 -4
  628. package/lib/duet/p-fc15d9eb.system.entry.js +0 -4
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(t,e,a,i){function d(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,n){function r(t){try{o(i.next(t))}catch(t){n(t)}}function l(t){try{o(i["throw"](t))}catch(t){n(t)}}function o(t){t.done?a(t.value):d(t.value).then(r,l)}o((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,d,n,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(t){return function(e){return o([t,e])}}function o(l){if(i)throw new TypeError("Generator is already executing.");while(r&&(r=0,l[0]&&(a=0)),a)try{if(i=1,d&&(n=l[0]&2?d["return"]:l[0]?d["throw"]||((n=d["return"])&&n.call(d),0):d.next)&&!(n=n.call(d,l[1])).done)return n;if(d=0,n)l=[l[0]&2,n.value];switch(l[0]){case 0:case 1:n=l;break;case 4:a.label++;return{value:l[1],done:false};case 5:a.label++;d=l[1];l=[0];continue;case 7:l=a.ops.pop();a.trys.pop();continue;default:if(!(n=a.trys,n=n.length>0&&n[n.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]<n[3])){a.label=l[1];break}if(l[0]===6&&a.label<n[1]){a.label=n[1];n=l;break}if(n&&a.label<n[2]){a.label=n[2];a.ops.push(l);break}if(n[2])a.ops.pop();a.trys.pop();continue}l=e.call(t,a)}catch(t){l=[6,t];d=0}finally{i=n=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,a){if(a||arguments.length===2)for(var i=0,d=e.length,n;i<d;i++){if(n||!(i in e)){if(!n)n=Array.prototype.slice.call(e,0,i);n[i]=e[i]}}return t.concat(n||Array.prototype.slice.call(e))};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register(["./p-0e5663a5.system.js","./p-260f26f5.system.js","./p-41982d26.system.js","./p-752fa0fc.system.js","./p-d16254bc.system.js","./p-64959c1d.system.js","./p-9508ee67.system.js","./p-e6b5a1c7.system.js","./p-98636086.system.js","./p-40092524.system.js"],(function(t){"use strict";var e,a,i,d,n,r,l,o,s,u,h,f,b,c,p,m,g,v,y,x,w,k,_;return{setters:[function(t){e=t.h;a=t.r;i=t.c;d=t.H;n=t.g;r=t.F},function(t){l=t.i},function(t){o=t.f;s=t.d},function(t){u=t.i},function(t){h=t.a;f=t.c;b=t.d;c=t.g;p=t.s},function(t){m=t.p;g=t.s},function(t){v=t.b;y=t.a},function(t){x=t.c},function(t){w=t.p},function(t){k=t.g;_=t.a}],execute:function(){var T=function(t,a){var i=t.data,d=t.groupId,n=t.alignment;var r="duet-editable-table duet-editable-table-content-".concat(d);if(typeof i==="string"){return e("td",{innerHTML:i,class:r,part:"".concat(d,"content"),style:{verticalAlign:n}})}else{return e("td",{class:r,part:"".concat(d,"content"),style:{verticalAlign:n}},i)}};var j=".sc-duet-editable-table-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-editable-table-actions-menu.sc-duet-editable-table{position:relative;padding:0 !important;margin:0}.duet-editable-table-actions-menu-button.sc-duet-editable-table{position:relative;right:-16px;float:right;padding:0}.duet-editable-table-actions-menu-icon.sc-duet-editable-table .duet-icon.sc-duet-editable-table{max-width:16px;max-height:16px}.duet-editable-table-row.duet-table-action-row.sc-duet-editable-table .duet-text-right.sc-duet-editable-table{text-align:right}.duet-editable-table-header.sc-duet-editable-table tr.sc-duet-editable-table .duet-editable-table-header-hidden.sc-duet-editable-table{padding:0 !important;font-size:0;border-bottom:0}";var E=j;var S=t("duet_editable_table",function(){function t(t){var e=this;a(this,t);this.duetTableToggle=i(this,"duetTableToggle",7);this.duetMenuClick=i(this,"duetMenuClick",7);this.hasHeadSlotFirst=false;this.hasHeadSlotLast=false;this.hasFootSlot=false;this.sortableDefaultLabel={fi:"Järjestä",en:"Click to sort",sv:"Klicka för att sortera"};this.actionColumnLabel={en:"Actions for rows",fi:"Toiminnot rivillä",sv:"Åtgärder för rader"};this.toggleColumn=function(t,a){a.preventDefault();var i=t.sort_order,d=t.direction,n=t.index,r=t.key;e.duetTableToggle.emit({sort_order:i,index:n,direction:d,key:r,component:"duet-editable-table",originalEvent:a})};this.handleKeyDown=function(t,a){if(u(a)){e.toggleColumn(t,a)}};this.language=h();this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.actions=undefined;this.columns=undefined;this.rows=undefined;this.sortable=false;this.groupId="";this.theme="";this.accessibleRole=undefined;this.hideHeadVisually=false}t.prototype.componentWillLoad=function(){l(this);this.hasHeadSlotFirst=!!this.element.querySelector("[slot='thead-first']");this.hasHeadSlotLast=!!this.element.querySelector("[slot='thead-last']");this.hasFootSlot=!!this.element.querySelector("[slot='tfoot']")};t.prototype.connectedCallback=function(){f(this)};t.prototype.disconnectedCallback=function(){b(this)};t.prototype.createLabel=function(t){var a=this;var i=t.sort_order,d=t.direction,n=t.index,r=t.label;var l=c(r);if(!this.sortable){return l}var o=function(){if(!!i&&d===1){return"action-arrow-down-small"}else if(!!i&&d===-1){return"action-arrow-up-small"}return"action-subtract-small"};return e("span",{class:"duet-table-label","data-index":n},e("duet-button",{size:"small",icon:o(),"icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":true,onClick:function(e){return a.toggleColumn(t,e)},onKeyDown:function(e){return a.handleKeyDown(t,e)}},l))};t.prototype.getSortedColumns=function(){return __spreadArray([],this.columns,true).sort(o(["index"]))};t.prototype.getRowSortOrder=function(){var t=__spreadArray([],this.columns,true).sort(o(["sort_order"]));return t.filter((function(t){return t.sort_order})).map((function(t){return t.direction===-1?"-".concat(t.key):t.key}))};t.prototype.renderTableHeader=function(){var t=this;if(!this.columns){return}var a=this.getSortedColumns();return e("tr",{class:{"duet-table-action-header":!!this.actions}},a.map((function(a){if(a.display!==false){var i=t.createLabel(a);return i!==""?e("th",{scope:"col"},i):e("td",null)}})),this.actions&&e("th",{scope:"col",class:"duet-table-action-header-heading"},this.actions&&e("duet-visually-hidden",null,this.actionColumnLabel[this.language])))};t.prototype.renderActions=function(t,a){var i=this;if(!this.actions){return}return e("td",{class:"duet-text-right"},this.actions.map((function(d){return e("duet-action-button",{actionMeta:Object.assign({},(t===null||t===void 0?void 0:t.meta)||{},{index:a}),actionId:(t===null||t===void 0?void 0:t.uid)||(t===null||t===void 0?void 0:t.id)||null,actionName:d.name,theme:i.theme,iconName:d.icon,iconColor:d.color,iconSize:d.size,background:d.background,"accessible-label":"".concat(t.actionDescription||""," ").concat(c(d.label)," ")})})))};t.prototype.renderTableBody=function(){var t=this;var a=this.getSortedColumns();var i=this.getRowSortOrder();var d=__spreadArray([],this.rows,true).sort(o(i));return d.map((function(i,d){var n;return e("tr",{class:(n={"duet-table-action-row":!!t.actions,"duet-editable-table-row":true},n["duet-editable-table-row-".concat(t.groupId)]=true,n),"data-meta":JSON.stringify(i.meta)},a.map((function(a){var d=i[a.key]?i[a.key]:i.item;if(a.display!==false){return e(T,{data:d,groupId:t.groupId})}})),t.actions&&t.renderActions(i,d))}))};t.prototype.render=function(){var t;return e(d,{class:(t={},t["duet-editable-table-".concat(this.variation)]=true,t["duet-editable-table"]=true,t["duet-editable-table-".concat(this.theme)]=true,t["duet-editable-table-scrollable"]=this.breakpoint==="none-scrollable",t["duet-editable-table-sortable"]=this.sortable,t["duet-editable-table-actions"]=!!this.actions,t["duet-m-0"]=this.margin==="none",t["duet-theme-turva"]=this.theme==="turva",t)},e("duet-table",{class:"duet-editable-table-table",sticky:this.sticky,stickyDistance:this.stickyDistance,margin:this.margin,theme:this.theme,variation:this.variation,breakpoint:this.breakpoint,"hide-head-visually":this.hideHeadVisually},e("table",{role:this.accessibleRole},e("caption",null,e("slot",{name:"tcaption"})),e("thead",null,this.hasHeadSlotFirst&&e("tr",null,e("td",{class:"duet-editable-table-actions-menu",colSpan:99},e("slot",{name:"thead-first"}))),this.renderTableHeader(),this.hasHeadSlotLast&&e("tr",null,e("td",{class:"duet-editable-table-actions-menu",colSpan:99},e("slot",{name:"thead-last"})))),e("tbody",null,this.renderTableBody()),this.hasFootSlot&&e("tfoot",null,e("tr",null,e("td",{class:"duet-editable-table-footer-menu",colSpan:99},e("slot",{name:"tfoot"})))))))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());S.style=E;var L='duet-table{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;font-variant-numeric:tabular-nums}duet-table table,duet-table thead,duet-table tbody,duet-table tfoot,duet-table th,duet-table td,duet-table tr{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}duet-table.duet-m-0{margin:0 !important}duet-table table{width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;text-align:left;border-spacing:0;border-collapse:separate}duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead,duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead *{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}duet-table.duet-theme-turva table{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}duet-table td{-webkit-hyphens:auto;hyphens:auto;color:rgb(8, 42, 77)}duet-table.duet-theme-turva td{color:rgb(23, 28, 58)}duet-table th{font-weight:600;line-height:1.25;color:rgb(98, 121, 138);text-align:left}duet-table.duet-theme-turva th{color:rgb(143, 147, 158)}duet-table tbody th{font-weight:600;color:rgb(8, 42, 77)}duet-table.duet-theme-turva tbody th{color:rgb(23, 28, 58)}duet-table .duet-table-action-row td:last-child{justify-self:end;padding-right:20px !important;white-space:nowrap}duet-table span.duet-table-cell-heading{display:none}.duet-table-flattened table,.duet-table-flattened thead,.duet-table-flattened tbody,.duet-table-flattened tfoot,.duet-table-flattened th,.duet-table-flattened td,.duet-table-flattened tr{display:block}.duet-table-flattened thead tr{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}.duet-table-flattened td{line-height:1.25}.duet-table-flattened td:not(:last-child){margin-bottom:16px !important}.duet-table-flattened td span.duet-table-cell-heading{margin-bottom:4px !important;display:block;font-size:1rem;font-weight:600;color:rgb(8, 42, 77)}.duet-table-flattened.duet-theme-turva td span.duet-table-cell-heading{color:rgb(23, 28, 58)}.duet-table-flattened tbody td,.duet-table-flattened tbody th,.duet-table-flattened tfoot td{padding:0 !important;text-align:left !important}.duet-table-flattened tbody th{font-weight:600;line-height:1.25;color:rgb(98, 121, 138);text-align:left}.duet-table-sticky thead th,.duet-table-sticky thead td{position:sticky;top:0;background:rgb(255, 255, 255)}.duet-table-striped td,.duet-table-striped th{padding:20px !important}@media (max-width: 35.9375em){.duet-table-striped td,.duet-table-striped th{padding:20px 12px !important}}.duet-table-striped tbody th{background:rgb(255, 255, 255)}.duet-table-striped.duet-table-sticky thead th,.duet-table-striped.duet-table-sticky thead td{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-table-sticky.duet-theme-turva thead th,.duet-table-striped.duet-table-sticky.duet-theme-turva thead td{border-bottom-color:rgb(222, 224, 228)}.duet-table-striped tbody:not(:first-of-type) th{padding-top:40px !important}.duet-table-striped tbody:only-of-type tr:nth-of-type(odd){background:rgba(4, 81, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(4, 81, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tfoot td{border-top:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-theme-turva tfoot td{border-top-color:rgb(222, 224, 228)}.duet-table-striped.duet-table-flattened tbody:not(:first-of-type) th{padding-top:20px !important}.duet-table-striped.duet-table-flattened tr{padding:20px !important}.duet-table-striped.duet-table-flattened tfoot td{border-top:0}.duet-table-striped.duet-table-flattened tfoot tr{border-top:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:rgb(222, 224, 228)}.duet-table-fixed th,.duet-table-minimal th,.duet-table-plain th,.duet-table-fixed thead td,.duet-table-minimal thead td,.duet-table-plain thead td{padding:16px !important;border-bottom:1px solid rgb(98, 121, 138)}.duet-table-fixed th:first-child,.duet-table-minimal th:first-child,.duet-table-plain th:first-child,.duet-table-fixed thead td:first-child,.duet-table-minimal thead td:first-child,.duet-table-plain thead td:first-child{padding-left:0 !important}.duet-table-fixed th:last-child,.duet-table-minimal th:last-child,.duet-table-plain th:last-child,.duet-table-fixed thead td:last-child,.duet-table-minimal thead td:last-child,.duet-table-plain thead td:last-child{padding-right:0 !important}.duet-theme-turva.duet-table-fixed th,.duet-theme-turva.duet-table-minimal th,.duet-theme-turva.duet-table-plain th,.duet-theme-turva.duet-table-fixed thead td,.duet-theme-turva.duet-table-minimal thead td,.duet-theme-turva.duet-table-plain thead td{border-bottom-color:rgb(113, 118, 132)}.duet-table-fixed tbody th,.duet-table-minimal tbody th,.duet-table-plain tbody th{padding-top:40px !important;border-bottom-color:rgb(212, 223, 229)}.duet-theme-turva.duet-table-fixed tbody th,.duet-theme-turva.duet-table-minimal tbody th,.duet-theme-turva.duet-table-plain tbody th{border-bottom-color:rgb(222, 224, 228)}.duet-table-fixed td,.duet-table-minimal td,.duet-table-plain td{padding:16px !important}.duet-table-fixed td:first-child,.duet-table-minimal td:first-child,.duet-table-plain td:first-child{padding-left:0 !important}.duet-table-fixed td:last-child,.duet-table-minimal td:last-child,.duet-table-plain td:last-child{padding-right:0 !important}.duet-table-fixed tbody td,.duet-table-minimal tbody td,.duet-table-plain tbody td{border-bottom:1px solid rgb(212, 223, 229)}.duet-theme-turva.duet-table-fixed tbody td,.duet-theme-turva.duet-table-minimal tbody td,.duet-theme-turva.duet-table-plain tbody td{border-bottom-color:rgb(222, 224, 228)}.duet-table-flattened.duet-table-fixed tbody:first-of-type th,.duet-table-flattened.duet-table-minimal tbody:first-of-type th,.duet-table-flattened.duet-table-plain tbody:first-of-type th{padding-top:0 !important}.duet-table-flattened.duet-table-fixed td,.duet-table-flattened.duet-table-minimal td,.duet-table-flattened.duet-table-plain td,.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{border-bottom:0}.duet-table-flattened.duet-table-fixed tr,.duet-table-flattened.duet-table-minimal tr,.duet-table-flattened.duet-table-plain tr{padding:20px 0 !important}.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{padding-top:20px !important}.duet-table-flattened.duet-table-fixed tfoot td,.duet-table-flattened.duet-table-minimal tfoot td,.duet-table-flattened.duet-table-plain tfoot td{margin-bottom:4px !important}.duet-table-flattened.duet-table-fixed tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-minimal tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-plain tbody:not(:only-of-type) tr:first-child{border-bottom:0}.duet-table-plain.duet-table-flattened tbody tr{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:rgb(222, 224, 228)}.duet-table-minimal tbody tr,.duet-table-minimal tbody tr td{vertical-align:top;border-bottom:0 none}.duet-table-minimal tbody tr:last-of-type,.duet-table-minimal tbody tr:last-of-type td{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-minimal.duet-table-flattened tbody tr,.duet-table-minimal.duet-table-flattened tbody tr td{border-bottom:0 none}.duet-table-minimal.duet-table-flattened tbody tr td[data-heading]::before{display:none}.duet-table-minimal.duet-table-flattened tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-fixed table{table-layout:fixed}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td,.duet-table-fixed tbody tr td:first-child{padding:4px !important;vertical-align:text-bottom;border-bottom:0 none}.duet-table-fixed thead{display:none}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td{border-bottom:0 none}.duet-table-fixed:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-fixed:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-scrollable{position:relative;width:100%;overflow-x:auto;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0)), linear-gradient(-90deg, #fff 0%, rgba(255, 255, 255, 0)) 100% 0, radial-gradient(farthest-side at 0% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)) 100% 0%;background-repeat:no-repeat;background-attachment:local, local, scroll, scroll;background-size:100px 100%, 100px 100%, 12px 100%, 12px 100%}.duet-table-selected-column{background:rgba(0, 119, 179, 0.08)}.duet-theme-turva .duet-table-selected-column{background:rgba(113, 118, 132, 0.08)}.duet-table-sortable tbody tr td:first-child,.duet-table-sortable thead tr th:first-child{padding:20px}.duet-table-sortable:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-sortable:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-actions table{table-layout:auto}.duet-table-actions thead th:last-child{width:1px;white-space:nowrap}.duet-editable-table-table.duet-table-flattened tr{display:grid;grid-template-columns:repeat(2, 1fr);grid-auto-rows:auto;gap:10px}.duet-editable-table-table.duet-table-flattened tr.duet-table-action-row td:last-child::before{padding:0;content:""}.duet-editable-table-table.duet-table-flattened td{grid-column:1/2}.duet-editable-table-table.duet-table-flattened td:first-child{grid-row:1;grid-column:1}.duet-editable-table-table.duet-table-flattened td:last-child{grid-row:1;grid-column:2}duet-table.duet-theme-turva2.duet-theme-turva td{color:#172a3b}duet-table.duet-theme-turva2.duet-theme-turva tbody th{color:#172a3b}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva.duet-table-sticky thead th,duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva.duet-table-sticky thead td{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 42, 59, 0.04)}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 42, 59, 0.04)}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tfoot td{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody th,duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody td{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody td{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-fixed.duet-theme-turva:not(.duet-table-flattened) tfoot{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-sortable.duet-theme-turva:not(.duet-table-flattened) tfoot{border-top-color:#fbe1d1}';var z=L;var A={none:0,"with-links":parseFloat(m)*16,"without-links":parseFloat(g)*16};var F=t("duet_table",function(){function t(t){var e=this;a(this,t);this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)";this.handleMediaQueryChange=function(t){e.matchesBreakpoint=v.includes(e.breakpoint)?!t.matches:t.matches};this.matchesBreakpoint=true;this.language=h();this.theme=undefined;this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.hideHeadVisually=false}t.prototype.watchLanguageStateHandler=function(t,e){var a=this;if(t!==e){setTimeout((function(){return a.copyHeadingsToCells()}),50)}};t.prototype.connectedCallback=function(){var t=this;var e=this.breakpoint==="none"||this.breakpoint==="none-scrollable"?"all":y[this.breakpoint];this.mq=matchMedia(e);this.mq.addEventListener("change",s(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);this.observer=new MutationObserver((function(){return s(t.copyHeadingsToCells(),50)}));this.observer.observe(this.element,{childList:true,subtree:true})};t.prototype.componentWillLoad=function(){l(this);this.copyHeadingsToCells();if(this.sticky&&this.breakpoint==="none-scrollable"){console.warn('[DUET WARNING]: sticky and breakpoint="none-scrollable" are incompatible. Scrollable takes precedence')}if(this.sticky){var t=A[this.stickyDistance];var e=this.element.querySelectorAll(this.headingSelector);e.forEach((function(e){return e.style.top="".concat(t,"px")}))}};t.prototype.componentDidLoad=function(){this.observer?this.observer.takeRecords():null;f(this)};t.prototype.disconnectedCallback=function(){this.observer.disconnect();this.observer=null;this.mq.removeListener(this.handleMediaQueryChange);this.mq=null;this.matchesBreakpoint=true;b(this)};t.prototype.copyHeadingsToCells=function(){var t=this.element.querySelectorAll(this.headingSelector);var e=this.element.querySelectorAll("tbody tr");var a=Array.from(t).map((function(t){return t.textContent.trim()}));e.forEach((function(t){t.querySelectorAll("td").forEach((function(t,e){if(a[e]){var i=t.querySelector(".duet-table-cell-heading");if(!i||i.textContent!==a[e]){i===null||i===void 0?void 0:i.remove();var d=document.createElement("span");d.textContent=a[e];d.classList.add("duet-table-cell-heading");d.setAttribute("aria-hidden","true");d.inert=true;t.prepend(d)}}}))}))};t.prototype.render=function(){var t;return e(d,{key:"97ec17516c3b7f8a75b2f2d8b64e21358260e1e3",class:(t={},t["duet-table-".concat(this.variation)]=true,t["duet-table-flattened"]=!this.matchesBreakpoint,t["duet-table-sticky"]=this.matchesBreakpoint&&this.sticky,t["duet-table-scrollable"]=this.breakpoint==="none-scrollable",t["duet-m-0"]=this.margin==="none",t["duet-theme-turva"]=this.theme==="turva",t["duet-table-hide-head-visually"]=this.hideHeadVisually,t)},e("slot",{key:"174a174db7425f0abc109ad212ab9a665adc8797"}))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{language:["watchLanguageStateHandler"]}},enumerable:false,configurable:true});return t}());F.style=z;var M=[{type:"default",system_message:"unknown error",message:{fi:"Tapahtui tuntematon virhe, ole hyvä ja yritä uudelleen.",sv:"Ett okänt fel uppstod, försök igen.",en:"An unknown error occured, please try again."}},{type:"400",system_message:"Bad Request: The server could not understand the request due to invalid syntax.",message:{fi:"Tiedostoa ei hyväksytty.",sv:"Servern avvisade din fil.",en:"The server rejected your file."}},{type:"401",system_message:"Not Authenticated: The client must authenticate itself to get the requested response...",message:{fi:"Vain kirjautunut käyttäjä voi lähettää tiedostoja.",sv:"Du måste vara inloggad för att ladda upp filer.",en:"You need to be logged in to upload files."}},{type:"403",system_message:"No Access: The client does not have access rights to the content.",message:{fi:"Ei oikeuksia lähettää tiedostoja.",sv:"Du har inte rätt åtkomsträttigheter för att ladda upp filer.",en:"You do not have the correct access rights to upload files."}},{type:"413",system_message:"Payload too large",message:{fi:"Tiedosto oli liian vastaanotettavaksi.",sv:"Filen var för stor för servern att hantera.",en:"The file was to large for the server to handle."}},{type:"415",system_message:"Unsupported media type",message:{fi:"Tiedoston tyyppi oli väärä.",sv:"Servern avvisade filen eftersom den hade fel typ.",en:"The server rejected the file because it had the wrong type."}},{type:"429",system_message:"Too many request from same address",message:{fi:"Liian monta yritystä, ole hyvä ja yritä myöhemmin uudelleen.",sv:"Servern har fått många förfrågningar från dig, försök igen senare.",en:"The server has received to many request from you, please try again later."}},{type:"500",system_message:"Internal Server Error",message:{fi:"Palvelin ilmoitti tuntemattomasta virheestä ja lataus epäonnistui.",sv:"Servern rapporterade ett okänt fel och uppladdningen misslyckades.",en:"The server reported an unknown error and the upload failed."}},{type:"duet-upload-100",system_message:"File extension not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den type.",en:"You cannot upload files with that extension."}},{type:"duet-upload-001",system_message:"File transfer failed",message:{fi:"Tiedoston lähetys keskeytyi, ole hyvä ja yritä uudelleen.",sv:"Din anslutning till servern avbröts, försök igen.",en:"Your connection to the server was interrupted, try again."}},{type:"duet-upload-101",system_message:"File mimetype not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den typ.",en:"You cannot upload files of that type."}},{type:"duet-upload-201",system_message:"File is too large",message:{fi:"Tiedosto on liian iso.",sv:"Filen är större än tillåtet.",en:"The file is larger than permitted."}},{type:"duet-upload-202",system_message:"The combined size of all files is too large",message:{fi:"Tiedostojen yhteenlaskettu koko on liian iso.",sv:"Du har nått den maximala kombinerade filstorleken.",en:"You have reached the maximum combined filesize."}},{type:"duet-upload-203",system_message:"Files to upload exceed total byte size limit",message:{fi:"Yritit lisätä tiedostoja, jotka ylittäisivät suurimman sallitun yhteenlasketun koon.",sv:"Du försökte lägga till filer som skulle överskrida den maximala kombinerade storleken.",en:"You tried to add files that would exceed the maximum combined size."}},{type:"duet-upload-301",system_message:"The maximum file limit has been reached",message:{fi:"Liitteiden maksimimäärä saavutettu.",sv:"Maximalt antal bilagor har uppnåtts.",en:"Maximum number of attachments reached."}},{type:"duet-upload-302",system_message:"Files to upload exceeds limits",message:{fi:"Et voi lähettää enempää kuin enimmäismäärän liitteitä.",sv:"Du kan inte ladda upp fler än det maximala antalet bilagor.",en:"You can't upload more than maximum number of attachments."}}];var U={fi:"Liiteluettelo",sv:"Lista över bilagor",en:"Attachments list"};var D=function(t){var a=t.label,i=t.categoryLabel;return e("div",{class:"items-header",tabindex:"-1","aria-label":c(U)},i&&e("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},c(i)),e("duet-heading",{class:{"filename-header":true,"no-category":!i},border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},c(a)))};var C=function(t,e){if(!e){return true}var a=t.split(".");var i=e.split(",");var d=a[a.length-1];return i.includes(d)};var P=function(t,e){if(!e||!t){return true}var a=e.split(",");var i=false;a.forEach((function(e){var a=e.split("/");var d=t.split("/");if(a[0]===d[0]&&(a[1]===d[1]||a[1]==="*")){i=true}}));return i};var I=function(t,e){if(!e||!t){return true}return e>=t};var O=function(t,e,a){var i=e.allowedMimetypes,d=e.allowedExtensions,n=e.maxBytes;var r=false;var l=k("default",a);if(t){var o=t.name,s=t.type,u=t.size;var h=P(s,i);var f=d==="all"||d===""||d===" "||d===undefined?true:C(o.toLowerCase(),d);var b=I(u,n);if(!h){l=k("duet-upload-101",a)}if(!f){l=k("duet-upload-100",a)}if(!b){l=k("duet-upload-201",a)}r=h&&f&&b}else{r=false}return{valid:r,errorMessage:r?undefined:c(l.message),errorSystem:r?undefined:l.system_message,errorType:r?undefined:l.type}};var W=function(t,e){var a=0;if(e){t.forEach((function(t){if(t.valid&&t.size){a+=t.size}}));if(a>=e){return true}}return false};var R=function(t,e){var a=0;if(e){t.forEach((function(t){if(t.valid){a++}}));if(a>=e){return true}}return false};var N=function(t,e,a){if(t+e>a){return true}return false};var Y=function(t,e,a){var i=0;if(a){t.forEach((function(t){if(t.valid&&t.size){i+=t.size}}));e.forEach((function(t){if(t.size){i+=t.size}}));if(i>=a){return true}}return false};var q=function(t){var e=t.payload,a=t.options,i=t.onFailure,d=t.onSuccess,n=t.onProgress;var r=a.type,l=r===void 0?"POST":r,o=a.xhr,s=a.uri,u=a.argument,h=u===void 0?null:u,f=a.headers,b=f===void 0?null:f;o.open(l,"".concat(s).concat(h||""),true);var c=e.data,p=e.name;if(b){Object.keys(b).forEach((function(t){o.setRequestHeader(t,b[t])}))}if(l==="POST"){o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE&&o.status>=200&&o.status<300){d(o,p,o.status)}if(o.readyState===XMLHttpRequest.DONE&&o.status>=300&&o.status<999){i(o,p,o.status)}};n(p)}o.send(c);return o};var B="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}::slotted([slot=uploadfooter]){margin-top:20px}.duet-upload{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}duet-paragraph::part(duet-paragraph){word-break:break-word}duet-editable-table tfoot{display:none}.upload-bottom-caption{margin-top:12px;margin-bottom:16px;line-height:1.4rem}.items-header{display:none;flex-direction:row;margin-bottom:0}@media (min-width: 36em){.items-header{display:flex}}.items-header:not(:last-child),.items-header:not(:first-child){margin-top:12px}.items-header .category-header{width:35%}.items-header .filename-header{width:65%}.items-header .filename-header.no-category{width:100%}.upload-item-row{display:flex;flex-direction:column;gap:16px;align-content:center;align-items:center;padding:16px 0 16px 0;border-bottom:1px solid rgb(212, 223, 229)}@media (min-width: 36em){.upload-item-row{flex-direction:row;gap:10px}}.upload-item-row .item-categories{width:100%}@media (min-width: 36em){.upload-item-row .item-categories{width:35%}}.upload-item-row .item-name{position:relative;bottom:2px;width:100%;text-align:left}@media (min-width: 36em){.upload-item-row .item-name{width:50%}.upload-item-row .item-name.no-category{width:85%}}.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:block}@media (min-width: 36em){.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:none}}.upload-item-row .item-actions{width:100%;margin-left:-8px;text-align:left}@media (min-width: 36em){.upload-item-row .item-actions{width:15%;padding-top:0;margin-left:auto;text-align:right}}.upload-item-row .duet-upload-item-name duet-icon{position:relative;top:4px}.upload-item-row .duet-upload-item-name duet-progress{display:block;margin-top:16px}";var H=B;var J=t("duet_upload",function(){function t(t){var d=this;a(this,t);this.duetChange=i(this,"duetChange",3);this.duetBlur=i(this,"duetBlur",7);this.duetFocus=i(this,"duetFocus",7);this.duetReady=i(this,"duetReady",7);this.duetDone=i(this,"duetDone",3);this.duetState=i(this,"duetState",3);this.duetDelete=i(this,"duetDelete",3);this.duetCancel=i(this,"duetCancel",3);this.duetProgress=i(this,"duetProgress",3);this.duetUpload=i(this,"duetUpload",3);this.linkClick=i(this,"linkClick",3);this.buttonId=x("DuetButton");this.labelId=x("DuetLabel");this.uploadId=x("DuetUpload");this.filesInProgress=new Map;this.fileMaxReached=false;this.bytesMaxReached=false;this.filesToUploadExceedsLimit=false;this.filesToUploadTotalSizeIsAboveMax=false;this.internalStatusMessageLabel=undefined;this.itemRefs=new Map;this.DefaultGroups={inprogress:"inprogress",success:"success",pending:"pending",failure:"failure"};this.kick=s((function(){d.tick=Date.now()}),30);this.categoryLabel={en:"Category",sv:"Filtyp",fi:"Tiedostotyyppi"};this.listenForActionEvents=function(){d.element.addEventListener("duetActionEvent",(function(t){var e=t.detail;var a=e.action,i=e.id,n=e.originalEvent;switch(a){case"delete":d.onDelete(i,n);break;case"cancel":d.onCancel(i,n);break}}))};this.verifyValidity=function(){var t=d.getFilesAsArray(),e=t.invalid,a=t.valid;var i=d.valid;d.valid=e.length===0&&a.length!==0;if(d.valid!==i){d.duetState.emit({originalEvent:undefined,data:{valid:d.valid,from:"componentWillRender"},component:"duet-upload"})}};this.getGroupFromItemData=function(t){if(t.valid&&t.progress===100){return d.DefaultGroups.success}else if(t.progress>0&&t.progress!==100){return d.DefaultGroups.inprogress}else if(!t.valid){return d.DefaultGroups.failure}else if(t.pending){return d.DefaultGroups.pending}else if(t.group){return t.group}else{return"none"}};this.mapFilesToUploadItems=function(t,a,i,n){if(a===d.DefaultGroups.success){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"success",data:t,showLinks:d.showLinks,linkClickEvent:d.emitEvent?d.linkClick:undefined,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(a===d.DefaultGroups.inprogress){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"inprogress",data:t,showLinks:d.showLinks,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(a===d.DefaultGroups.pending){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"pending",data:t,showLinks:d.showLinks,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(a===d.DefaultGroups.failure){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"failure",data:t,showLinks:d.showLinks,errorCodes:d.errorCodes,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(t.group){return t.html}else{return"none"}};this.genHashName=function(){return Date.now().toString(36)+Math.random()};this.updateValueInMap=function(t,e,a,i){if(i===void 0){i=true}try{var n=d.files.get(t);n[e]=a;d.files.set(t,n);if(d.external&&e!=="url"){d.trackProgress(t,e==="uploaded")}}catch(t){}if(i){d.kick()}};this.updateProgress=function(t,e){var a=function(a){d.updateValueInMap(e,"progress",a);d.onProgress(e,a,t)};if(t.lengthComputable){var i=t.loaded/t.total*100;a(i)}else{console.log("cant read progress")}};this.trackProgress=function(t,e){if(e===void 0){e=false}if(e){d.filesInProgress.delete(t)}else{d.filesInProgress.set(t,"inprogress")}if(d.filesInProgress.size===0){d.onDone()}};this.getFilesAsArray=function(){var t=[];var e=[];d.files.forEach((function(a){if(a.valid&&!a.deleted){t.push(a)}else if(!a.valid&&!a.deleted){e.push(a)}}));return{valid:t,invalid:e}};this.resetFormFields=function(){d.nativeInput.value=""};this.startUpload=function(t){var e=[];for(var a=1;a<arguments.length;a++){e[a-1]=arguments[a]}return __awaiter(d,__spreadArray([t],e,true),void 0,(function(t,e){var a,i,d;if(e===void 0){e=undefined}return __generator(this,(function(n){a=this.validateTotals(),i=a.bytesMaxReached,d=a.fileMaxReached;if(i||d){this.kick();return[2]}this.metaData=e;this.nativeInput.click();this.onUpload(t,e);t.stopPropagation();t.preventDefault();return[2]}))}))};this.transferComplete=function(t){d.updateValueInMap(t,"progress",100,false);d.trackProgress(t,true)};this.transferDone=function(t,e,a){d.updateValueInMap(e,"status",a,false);d.updateValueInMap(e,"uploaded",true,false);try{var i=JSON.parse(t.response);d.updateValueInMap(e,"url",i.url)}catch(t){d.updateValueInMap(e,"url",null);console.error("Server did not respond with expected response {url: string}")}return};this.transferDoneWithFailure=function(t,e,a){try{var i=JSON.parse(t.response).error;d.updateValueInMap(e,"error",{message:i.message,type:i.type},false)}catch(t){console.error("Server did not respond with expected response error:{message: string, type: int}");d.updateValueInMap(e,"error",{type:a},false)}d.updateValueInMap(e,"valid",false,true)};this.transferFailed=function(t){d.updateValueInMap(t,"error",_("duet-upload-001",d.errorCodes))};this.transferCanceled=function(t){d.files.delete(t);d.validateTotals(t);d.kick()};this.validateTotals=function(t){var e=W(d.files,d.maxBytesTotal);var a=R(d.files,d.maxFiles);if(e&&t){d.updateValueInMap(t,"error",_("duet-upload-202",d.errorCodes),false)}if(a&&t){d.updateValueInMap(t,"error",_("duet-upload-301",d.errorCodes),false)}d.bytesMaxReached=e;d.fileMaxReached=a;return{bytesMaxReached:e,fileMaxReached:a}};this.uploadFile=function(t){var e=[];for(var a=1;a<arguments.length;a++){e[a-1]=arguments[a]}return __awaiter(d,__spreadArray([t],e,true),void 0,(function(t,e,a){var i,d,n;if(e===void 0){e=false}return __generator(this,(function(r){switch(r.label){case 0:if(!e&&this.deferUpload){this.updateValueInMap(t.item.name,"pending",true,false);this.updateValueInMap(t.item.name,"group","pending",true)}else if(e){this.updateValueInMap(t.item.name,"pending",false,false);this.updateValueInMap(t.item.name,"group",undefined,true)}r.label=1;case 1:r.trys.push([1,4,,5]);if(!(!this.deferUpload||e))return[3,3];i=new FormData;i.append("file",t.item);if(a){i.append("key",a)}i.append("uid",t.uid);i.append("name",t.item.name);i.append("metadata",JSON.stringify({uid:t.uid,url:this.uri,size:t.item.size,meta:t.meta}));d=t;return[4,this.makeXHRPostRequest(i)];case 2:d.xhr=r.sent();r.label=3;case 3:return[3,5];case 4:n=r.sent();this.updateValueInMap(t.item.name,"valid",false,false);return[3,5];case 5:return[2]}}))}))};this.uploadPendingFiles=function(){for(var t=0,e=Array.from(d.files.entries());t<e.length;t++){var a=e[t],i=a[0],n=a[1];if(n.group==="pending"&&n.pending===true){d.uploadFile(n,true,i)}}};this.getItemFromUID=function(t){for(var e=0,a=Array.from(d.files.entries());e<a.length;e++){var i=a[e],n=i[0],r=i[1];if(r.uid===t){return{value:r,key:n}}}return null};this.handleExternalUploadButton=function(t,e){if(d.externalUploadButton){if(t||e){d.externalUploadButton.disabled=true}else{d.externalUploadButton.disabled=false}}};this.onDelete=function(t,e){var a=d.getItemFromUID(t);var i=a.key;var n=d.files.get(i);d.files.delete(i);var r=d.validateTotals(),l=r.bytesMaxReached,o=r.fileMaxReached;d.handleExternalUploadButton(l,o);d.kick();d.duetDelete.emit({originalEvent:e,data:{deletion:n},component:"duet-upload"});if(!d.external&&!n.pending){d.makeXHRDeleteRequest(n)}d.resetFormFields()};this.onCancel=function(t,e){var a=d.getItemFromUID(t).key;var i=d.files.get(a);d.files.delete(a);var n=d.validateTotals(),r=n.bytesMaxReached,l=n.fileMaxReached;d.handleExternalUploadButton(r,l);if(!d.external){var o=i.xhr;if(o){o.abort()}}d.kick();d.resetFormFields();d.duetCancel.emit({originalEvent:e,data:{cancelled:i},component:"duet-upload"})};this.onUpload=function(t,e){d.duetUpload.emit({originalEvent:t,metaData:e,component:"duet-upload"})};this.onBlur=function(t){d.duetBlur.emit({originalEvent:t,component:"duet-upload"})};this.onProgress=function(t,e,a){d.duetChange.emit({originalEvent:a,data:{key:t,percentComplete:e},component:"duet-upload"})};this.onFocus=function(t){d.duetFocus.emit({originalEvent:t,component:"duet-upload"})};this.onReady=function(){d.duetReady.emit({component:"duet-upload"})};this.onDone=function(){d.duetDone.emit({component:"duet-upload",data:{files:d.files}})};this.filterMap=function(){var t=Array.from(d.files.values());var e=[];var a=[];var i=[];var n=[];var r=false;t.forEach((function(t){var l=d.getGroupFromItemData(t);if(t.meta&&!!t.meta.badges){r=true}if(l===d.DefaultGroups.success){n.push({uid:t.uid,data:t})}else if(l===d.DefaultGroups.inprogress){e.push({uid:t.uid,data:t})}else if(l===d.DefaultGroups.pending){i.push({uid:t.uid,data:t})}else if(l===d.DefaultGroups.failure){a.push({uid:t.uid,data:t})}else if(t.group){e.push({uid:t.uid,data:t})}}));return{pending:i,failure:a,success:n,inprogress:e,hasCategory:r}};this.getActions=function(t,e){return e.filter((function(e){return e.map.includes(t)}))};this.renderUploadedItems=function(){d.itemRefs.clear();var t=d.filterMap();var a=t.hasCategory;var i=d.hideCancelButton?d.actions.filter((function(t){return t.name!=="cancel"})):d.actions;var n=d.groups.map((function(n){var l=t[n.id];if(!(l===null||l===void 0?void 0:l.length)){return}return e(r,null,!d.hideGroups&&e(D,{categoryLabel:a?d.categoryLabel:undefined,label:n.label}),l.map((function(t){return d.mapFilesToUploadItems(t.data,n.id,a,i)})))}));return e(r,null,d.showUploadedItemsHeader&&e(D,{categoryLabel:a?d.categoryLabel:undefined,label:d.uploadedItemsHeaderLabel}),n)};this.tick=Date.now();this.accessibleActiveDescendant=undefined;this.accessibleDescribedBy=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.external=false;this.middleware=null;this.deferUpload=false;this.hideButton=false;this.actions=[{icon:"action-delete",color:"color-danger",size:"x-small",background:"gray-lightest",name:"delete",map:["success","failure"],label:{fi:"Poista tiedosto",en:"Delete the file",sv:"Ta bort filen"}},{icon:"navigation-close",color:"primary",size:"x-small",background:"gray-lightest",name:"cancel",map:["inprogress","pending"],label:{fi:"Keskeytä lähetys",en:"Cancel the upload",sv:"Stop överföringen"}}];this.uri=undefined;this.showLinks=false;this.caption=undefined;this.statusLabelDefaults={fi:{inProgress:"Lähetetään {filesUploaded}, yhteensä lähetettävänä {filesTotal}.",inProgressWithErrors:"Lähetetään {filesInProgress}, lähetetty {filesUploaded}, yhteensä lähetettävänä {filesTotal}, {filesWithErrors} epäonnistui",done:"Lähetys valmis, {filesTotal} lisätty onnistuneesti",doneWithErrors:"Lähetys valmis, {filesUploaded} lisätty onnistuneesti, {filesWithErrors} epäonnistui",files:"tiedostoa",file:"tiedosto"},sv:{inProgress:"Laddar upp {filesUploaded} av {filesTotal}",inProgressWithErrors:"Laddar upp {filesInProgress}, {filesUploaded} uppladdad av {filesTotal}, {filesWithErrors} misslyckades",done:"Uppladdningen slutförd, {filesTotal} har lagts till",doneWithErrors:"Uppladdningen slutförd, {filesUploaded} har lagts till, {filesWithErrors} misslyckades",files:"filer",file:"fil"},en:{inProgress:"Uploading {filesUploaded} of {filesTotal}",inProgressWithErrors:"Uploading {filesInProgress}, {filesUploaded} uploaded of {filesTotal}, {filesWithErrors} failed",done:"Upload completed, {filesTotal} added successfully",doneWithErrors:"Upload completed, {filesUploaded} added successfully, {filesWithErrors} failed.",files:"files",file:"file"}};this.statusMessageLabel=c(this.statusLabelDefaults);this.buttonLabelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add an attachment"};this.buttonLabel=c(this.buttonLabelDefaults);this.accessibleButtonLabel=undefined;this.theme="";this.disabled=false;this.identifier=undefined;this.margin="auto";this.required=false;this.alignment="middle";this.hideGroups=false;this.files=new Map;this.valid=!this.required;this.labelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add attachments"};this.label=c(this.labelDefaults);this.descriptionDefaults={en:"You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytestotal} of files at a time, and add up to {maxfiles} attachments at a time each no larger than {maxbytes}.",sv:"Du kan bifoga följande filtyper: {filetypes} - samt de vanligaste videofilerna. Du kan ladda upp {maxbytestotal} av filer åt gången, och lägga till upp till {maxfiles} bilagor åt gången varje inte större än {maxbytes}.",fi:"Voit liittää seuraavat tiedostotyypit: {filetypes} - sekä yleisimmät videotiedostot. Voit lähettää {maxbytestotal} tiedostoa kerrallaan, ja lisätä enintään {maxfiles} liitettä kerrallaan, jokainen enintään {maxbytes} kokoisena."};this.description=c(this.descriptionDefaults);this.fileListEmptyDefaults={fi:"Ei vielä lisättyjä tiedostoja.",sv:"Inga filer har lagts till ännu.",en:"No files added yet."};this.fileListEmpty=c(this.fileListEmptyDefaults);this.error="";this.errorCodes=M;this.name=undefined;this.maxBytes=2e8;this.maxBytesTotal=undefined;this.maxFiles=99;this.allowedExtensions="all";this.allowedMimetypes="";this.multiple=true;this.limitSelection=false;this.hideCancelButton=false;this.value=undefined;this.externalUploadButtonId=undefined;this.captionOnBottom=false;this.showUploadedItemsHeader=false;this.uploadedItemsHeaderLabel={fi:"Ladattu tiedosto",sv:"Lägg till en bilaga",en:"Uploaded file"};this.headerHeadingLevel="h3";this.hideHeader=false;this.emitEvent=false;this.actionButtonTitles={cancel:false,delete:false};this.renameDuplicates=false;this.groups=[{id:this.DefaultGroups.success,label:{fi:"Valmiit tiedostot",sv:"Files success",en:"Files success"}},{id:this.DefaultGroups.failure,label:{fi:"Tiedostot, joissa on virheitä",sv:"Filer med fel",en:"Files with errors"}},{id:this.DefaultGroups.inprogress,label:{fi:"Kesken olevat tiedostot",sv:"Filer inprogress",en:"Files inprogress"}},{id:this.DefaultGroups.pending,label:{en:"Files to upload",sv:"Filer att ladda",fi:"Ladattavat tiedostot"}}]}t.prototype.watchValidHandler=function(t,e){if(t!==e){this.kick()}};t.prototype.componentWillLoad=function(){if(typeof this.statusMessageLabel==="string"){this.internalStatusMessageLabel=p(this.groups)}else{this.internalStatusMessageLabel=this.statusMessageLabel}l(this);this.listenForActionEvents();this.onReady();this.externalUploadButton=document.querySelector("#".concat(this.externalUploadButtonId));this.processedButtonTitles=w(this.actionButtonTitles)};t.prototype.componentWillRender=function(){this.verifyValidity()};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.nativeInput){this.nativeInput.focus(t)}return[2]}))}))};t.prototype.upload=function(){return __awaiter(this,arguments,void 0,(function(t){var e,a,i;if(t===void 0){t=undefined}return __generator(this,(function(d){e=this.validateTotals(),a=e.bytesMaxReached,i=e.fileMaxReached;if(a||i){this.handleExternalUploadButton(a,i);this.kick();return[2]}this.metaData=t;this.nativeInput.click();return[2]}))}))};t.prototype.uploadPending=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.uploadPendingFiles();return[2]}))}))};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:this.kick();return[4,this.setFocus()];case 1:t.sent();return[2]}}))}))};t.prototype.getFiles=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.files||this.files.size===0){return[2,false]}return[2,this.getFilesAsArray()]}))}))};t.prototype.updateValue=function(t,e,a){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.updateValueInMap(t,e,a);return[2]}))}))};t.prototype.focusActionButton=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(a){switch(a.label){case 0:return[4,(e=this.itemRefs.get(t))===null||e===void 0?void 0:e.focusActionButton()];case 1:a.sent();return[2]}}))}))};t.prototype.render=function(){var t=this;var a=this.identifier||this.uploadId;var i=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024);var n=Math.round(this.maxBytes/1024/1024);var l=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());l=l.replace(/{maxbytes}/g,"".concat(n.toString()," MB"));l=l.replace(/{maxbytestotal}/g,"".concat(i.toString()," MB"));l=l.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", "));if(this.externalUploadButton){this.externalUploadButton.accessibleLabel="".concat(this.externalUploadButton.innerText,". ").concat(l)}return e(d,{key:"f9ee10da87fd3355fcdd111de9f144c0d7c2b166",class:{"duet-m-0":this.margin==="none"}},e("duet-fieldset",{key:"5a6c4b3035d050ce23a552a1c41979faa0c17cb0","label-heading-level":this.headerHeadingLevel,"label-hidden":this.hideHeader,label:this.label},e("slot",{key:"432dc470d2efd214fe1d88d543c38f406a4e780a",name:"header"}),!this.files.size&&e("duet-empty-state",{key:"52b0aab8690ef9199d1608041674a372e9a791c9",id:this.labelId,part:this.identifier?"".concat(this.identifier,"-empty-state"):"duet-upload-empty-state",icon:"messaging-attachment"},e("duet-paragraph",{key:"3b47a899fea671720085c8d3355cb7aa7b30189b",margin:"none"},this.fileListEmpty)),!!this.files.size&&e("slot",{key:"6e6d3af2664ebbbf73e244ef4693d7603d72da66",name:"fileheader"}),!!this.files.size&&e("duet-upload-aria-status",{key:"2ab9e83fb0412a27c031b264b9a677c2ec7c2595",invalid:this.getFilesAsArray().invalid.length,valid:this.getFilesAsArray().valid.length,inprogress:this.filesInProgress.size,total:this.files.size,statusMessageLabel:this.internalStatusMessageLabel}),!!this.files.size&&this.renderUploadedItems(),!!this.files.size&&e("slot",{key:"d545f2932dc0c960ea21bafa8ba7ee2bfa592143",name:"filefooter"}),e("slot",{key:"50e7c76f552cecf4d61d629a51fd6b96777fb648",name:"uploadfooter"}),this.captionOnBottom&&e("duet-caption",{key:"98e1b98cb84e96aa7cb4a974273c7fbf9d81db53",margin:"none",size:"small"},e("div",{key:"422397c62df67cfac2908473e490429b6ce35188",class:"upload-bottom-caption"},l)),e("slot",{key:"f62ca6af83cae8a0ad4c4ed2236c34b0aebf5e82",name:"afterfooter"}),!this.hideButton&&e(r,{key:"f9827fd2d5057ebe8a9206b9ae367e14382ea6b2"},e("duet-spacer",{key:"726f7fe1442e5beaf238abda4f7b4b984f673230",size:"large"}),e("duet-button",{key:"72a8245cb718d0a29f7ffe155688bed7e118ce2d",id:this.buttonId,onClick:this.startUpload,"accessible-controls":a,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel||"".concat(this.buttonLabel,". ").concat(l),"accessible-owns":a,size:"small",variation:"secondary",fixed:true,icon:"action-add-circle",part:this.identifier?"".concat(this.identifier,"-button-upload"):"duet-upload-button-upload"},this.buttonLabel)),(this.fileMaxReached||this.bytesMaxReached||this.filesToUploadExceedsLimit||this.filesToUploadTotalSizeIsAboveMax)&&e(r,{key:"9b42acb8206cd9db5b01b839dc458f5be93d2c30"},e("duet-spacer",{key:"8010d59d3fda9775fcfaac799a1d7923c36ca280",size:"medium"}),e("duet-alert",{key:"d78bb705dbfee5d5f3d161f030680effa67c5ca7",part:this.identifier?"".concat(this.identifier,"-error-notification"):"duet-upload-error-notification"},this.fileMaxReached&&_("duet-upload-301",this.errorCodes),this.bytesMaxReached&&_("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&_("duet-upload-302",this.errorCodes),this.filesToUploadTotalSizeIsAboveMax&&_("duet-upload-203",this.errorCodes))),e("duet-visually-hidden",{key:"37ab8ffec8b318cea26e2d538ab0653949211fb4","aria-hidden":"true"},e("input",{key:"195d6bf7e5360d3f10c3fc149927c9f911f11bf0",ref:function(e){t.nativeInput=e},accept:!this.limitSelection?undefined:"".concat(this.allowedMimetypes,",").concat(this.allowedExtensions),onBlur:this.onBlur,onFocus:this.onFocus,onChange:function(e){return t.onChange(e)},type:"file",class:{"duet-upload":true},disabled:this.disabled,"aria-hidden":"true",required:this.required,name:this.name,id:this.identifier,multiple:this.multiple,tabIndex:-1}))))};t.prototype.makeXHRPostRequest=function(t){var e=this;var a=new XMLHttpRequest;var i=t.get("name");a.upload.addEventListener("progress",(function(t){e.updateProgress(t,i)}));a.upload.addEventListener("load",(function(){e.transferComplete(i)}));a.upload.addEventListener("error",(function(){e.transferFailed(i)}));a.upload.addEventListener("abort",(function(){e.transferCanceled(i)}));var d={payload:{data:t,name:i},options:{type:"POST",uri:this.uri,xhr:a,argument:null,headers:undefined},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){d=this.middleware(d)}return q(d)};t.prototype.makeXHRDeleteRequest=function(t){var e=t.uid,a=t.item;var i=new XMLHttpRequest;var d={"x-fileuid":e,"x-filename":a.name};var n={payload:{data:null,name:name},options:{type:"DELETE",xhr:i,uri:this.uri,argument:"?key=".concat(e,"&name=").concat(a.name),headers:d},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){n=this.middleware(n)}return q(n)};t.prototype.escapeSpecialCharacters=function(t){return(t+"").replace(/[\\"'(){}\[\]*?$^+]/g,"\\$&").replace(/\u0000/g,"\\0")};t.prototype.getRenamedFileName=function(t,e){var a=new RegExp("".concat(this.escapeSpecialCharacters(t)," \\(\\d+\\).").concat(e));var i=Array.from(this.files.entries()).map((function(t){var e=t[0],a=t[1];return e})).filter((function(i){return a.test(i)||i==="".concat(t,".").concat(e)})).sort((function(t,e){return t.split(".").slice(0,-1).join(".")>e.split(".").slice(0,-1).join(".")?1:-1})).pop().split(".").slice(0,-1).join(".");if(i===t){return"".concat(t," (1).").concat(e)}var d=parseInt(i.split("(").pop().slice(0,-1));return"".concat(t," (").concat(d+1,").").concat(e)};t.prototype.renameFiles=function(t){var e=this;return t.map((function(t){if(e.files.get(t.name)){var a=t.name.split(".");var i=a.pop();var d=a.join(".");var n=e.getRenamedFileName(d,i);return new File([t],n,{type:t.type,lastModified:t.lastModified})}else{return t}}))};t.prototype.onChange=function(t){return __awaiter(this,void 0,void 0,(function(){var e,a,i,d,n,r,l,o,s,u,h,f;return __generator(this,(function(b){switch(b.label){case 0:a=Array.from((e=this.nativeInput)===null||e===void 0?void 0:e.files);this.filesToUploadExceedsLimit=false;if(N(this.files.size,a.length,this.maxFiles)){this.filesToUploadExceedsLimit=true;this.kick();return[2]}this.filesToUploadTotalSizeIsAboveMax=false;if(Y(this.files,a,this.maxBytesTotal)){this.filesToUploadTotalSizeIsAboveMax=true;this.kick();return[2]}if(!a)return[3,6];if(this.renameDuplicates){a=this.renameFiles(a)}i=0,d=a;b.label=1;case 1:if(!(i<d.length))return[3,6];n=d[i];r=O(n,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),l=r.valid,o=r.errorMessage,s=r.errorType,u=r.errorSystem;h=this.genHashName();f={uid:h,item:n,size:n.size,meta:this.metaData,uploaded:false,valid:l,error:{type:l?undefined:s,message:l?undefined:o,system_message:l?undefined:u},progress:0,deleted:false,xhr:false,url:false};this.files.set(n.name,f);if(!(l&&!this.external))return[3,3];return[4,this.uploadFile(f)];case 2:b.sent();return[3,4];case 3:if(l&&this.external){this.updateValueInMap(f.item.name,"pending",true,false);this.updateValueInMap(f.item.name,"group","pending",true)}else if(!l){this.updateValueInMap(n.name,"valid",false,true)}b.label=4;case 4:this.kick();b.label=5;case 5:i++;return[3,1];case 6:this.resetFormFields();this.metaData=undefined;this.duetChange.emit({originalEvent:t,data:{files:this.files},component:"duet-upload"});return[2]}}))}))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{valid:["watchValidHandler"]}},enumerable:false,configurable:true});return t}());J.style=H}}}));
4
+ */System.register(["./p-adeb1555.system.js","./p-d80ae90e.system.js","./p-41982d26.system.js","./p-752fa0fc.system.js","./p-61e21220.system.js","./p-64959c1d.system.js","./p-9508ee67.system.js","./p-e6b5a1c7.system.js","./p-98636086.system.js","./p-5d7af988.system.js"],(function(t){"use strict";var e,a,i,d,n,r,l,o,s,u,h,f,b,c,p,m,g,v,y,x,w,k,_;return{setters:[function(t){e=t.h;a=t.r;i=t.c;d=t.H;n=t.g;r=t.F},function(t){l=t.i},function(t){o=t.f;s=t.d},function(t){u=t.i},function(t){h=t.a;f=t.c;b=t.d;c=t.g;p=t.s},function(t){m=t.p;g=t.s},function(t){v=t.b;y=t.a},function(t){x=t.c},function(t){w=t.p},function(t){k=t.g;_=t.a}],execute:function(){var T=function(t,a){var i=t.data,d=t.groupId,n=t.alignment;var r="duet-editable-table duet-editable-table-content-".concat(d);if(typeof i==="string"){return e("td",{innerHTML:i,class:r,part:"".concat(d,"content"),style:{verticalAlign:n}})}else{return e("td",{class:r,part:"".concat(d,"content"),style:{verticalAlign:n}},i)}};var j=".sc-duet-editable-table-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-editable-table-actions-menu.sc-duet-editable-table{position:relative;padding:0 !important;margin:0}.duet-editable-table-actions-menu-button.sc-duet-editable-table{position:relative;right:-16px;float:right;padding:0}.duet-editable-table-actions-menu-icon.sc-duet-editable-table .duet-icon.sc-duet-editable-table{max-width:16px;max-height:16px}.duet-editable-table-row.duet-table-action-row.sc-duet-editable-table .duet-text-right.sc-duet-editable-table{text-align:right}.duet-editable-table-header.sc-duet-editable-table tr.sc-duet-editable-table .duet-editable-table-header-hidden.sc-duet-editable-table{padding:0 !important;font-size:0;border-bottom:0}";var E=j;var S=t("duet_editable_table",function(){function t(t){var e=this;a(this,t);this.duetTableToggle=i(this,"duetTableToggle",7);this.duetMenuClick=i(this,"duetMenuClick",7);this.hasHeadSlotFirst=false;this.hasHeadSlotLast=false;this.hasFootSlot=false;this.sortableDefaultLabel={fi:"Järjestä",en:"Click to sort",sv:"Klicka för att sortera"};this.actionColumnLabel={en:"Actions for rows",fi:"Toiminnot rivillä",sv:"Åtgärder för rader"};this.toggleColumn=function(t,a){a.preventDefault();var i=t.sort_order,d=t.direction,n=t.index,r=t.key;e.duetTableToggle.emit({sort_order:i,index:n,direction:d,key:r,component:"duet-editable-table",originalEvent:a})};this.handleKeyDown=function(t,a){if(u(a)){e.toggleColumn(t,a)}};this.language=h();this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.actions=undefined;this.columns=undefined;this.rows=undefined;this.sortable=false;this.groupId="";this.theme="";this.accessibleRole=undefined;this.hideHeadVisually=false}t.prototype.componentWillLoad=function(){l(this);this.hasHeadSlotFirst=!!this.element.querySelector("[slot='thead-first']");this.hasHeadSlotLast=!!this.element.querySelector("[slot='thead-last']");this.hasFootSlot=!!this.element.querySelector("[slot='tfoot']")};t.prototype.connectedCallback=function(){f(this)};t.prototype.disconnectedCallback=function(){b(this)};t.prototype.createLabel=function(t){var a=this;var i=t.sort_order,d=t.direction,n=t.index,r=t.label;var l=c(r);if(!this.sortable){return l}var o=function(){if(!!i&&d===1){return"action-arrow-down-small"}else if(!!i&&d===-1){return"action-arrow-up-small"}return"action-subtract-small"};return e("span",{class:"duet-table-label","data-index":n},e("duet-button",{size:"small",icon:o(),"icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":true,onClick:function(e){return a.toggleColumn(t,e)},onKeyDown:function(e){return a.handleKeyDown(t,e)}},l))};t.prototype.getSortedColumns=function(){return __spreadArray([],this.columns,true).sort(o(["index"]))};t.prototype.getRowSortOrder=function(){var t=__spreadArray([],this.columns,true).sort(o(["sort_order"]));return t.filter((function(t){return t.sort_order})).map((function(t){return t.direction===-1?"-".concat(t.key):t.key}))};t.prototype.renderTableHeader=function(){var t=this;if(!this.columns){return}var a=this.getSortedColumns();return e("tr",{class:{"duet-table-action-header":!!this.actions}},a.map((function(a){if(a.display!==false){var i=t.createLabel(a);return i!==""?e("th",{scope:"col"},i):e("td",null)}})),this.actions&&e("th",{scope:"col",class:"duet-table-action-header-heading"},this.actions&&e("duet-visually-hidden",null,this.actionColumnLabel[this.language])))};t.prototype.renderActions=function(t,a){var i=this;if(!this.actions){return}return e("td",{class:"duet-text-right"},this.actions.map((function(d){return e("duet-action-button",{actionMeta:Object.assign({},(t===null||t===void 0?void 0:t.meta)||{},{index:a}),actionId:(t===null||t===void 0?void 0:t.uid)||(t===null||t===void 0?void 0:t.id)||null,actionName:d.name,theme:i.theme,iconName:d.icon,iconColor:d.color,iconSize:d.size,background:d.background,"accessible-label":"".concat(t.actionDescription||""," ").concat(c(d.label)," ")})})))};t.prototype.renderTableBody=function(){var t=this;var a=this.getSortedColumns();var i=this.getRowSortOrder();var d=__spreadArray([],this.rows,true).sort(o(i));return d.map((function(i,d){var n;return e("tr",{class:(n={"duet-table-action-row":!!t.actions,"duet-editable-table-row":true},n["duet-editable-table-row-".concat(t.groupId)]=true,n),"data-meta":JSON.stringify(i.meta)},a.map((function(a){var d=i[a.key]?i[a.key]:i.item;if(a.display!==false){return e(T,{data:d,groupId:t.groupId})}})),t.actions&&t.renderActions(i,d))}))};t.prototype.render=function(){var t;return e(d,{class:(t={},t["duet-editable-table-".concat(this.variation)]=true,t["duet-editable-table"]=true,t["duet-editable-table-".concat(this.theme)]=true,t["duet-editable-table-scrollable"]=this.breakpoint==="none-scrollable",t["duet-editable-table-sortable"]=this.sortable,t["duet-editable-table-actions"]=!!this.actions,t["duet-m-0"]=this.margin==="none",t["duet-theme-turva"]=this.theme==="turva",t)},e("duet-table",{class:"duet-editable-table-table",sticky:this.sticky,stickyDistance:this.stickyDistance,margin:this.margin,theme:this.theme,variation:this.variation,breakpoint:this.breakpoint,"hide-head-visually":this.hideHeadVisually},e("table",{role:this.accessibleRole},e("caption",null,e("slot",{name:"tcaption"})),e("thead",null,this.hasHeadSlotFirst&&e("tr",null,e("td",{class:"duet-editable-table-actions-menu",colSpan:99},e("slot",{name:"thead-first"}))),this.renderTableHeader(),this.hasHeadSlotLast&&e("tr",null,e("td",{class:"duet-editable-table-actions-menu",colSpan:99},e("slot",{name:"thead-last"})))),e("tbody",null,this.renderTableBody()),this.hasFootSlot&&e("tfoot",null,e("tr",null,e("td",{class:"duet-editable-table-footer-menu",colSpan:99},e("slot",{name:"tfoot"})))))))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());S.style=E;var L='duet-table{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;font-variant-numeric:tabular-nums}duet-table table,duet-table thead,duet-table tbody,duet-table tfoot,duet-table th,duet-table td,duet-table tr{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}duet-table.duet-m-0{margin:0 !important}duet-table table{width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;text-align:left;border-spacing:0;border-collapse:separate}duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead,duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead *{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}duet-table.duet-theme-turva table{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}duet-table td{-webkit-hyphens:auto;hyphens:auto;color:rgb(8, 42, 77)}duet-table.duet-theme-turva td{color:rgb(23, 28, 58)}duet-table th{font-weight:600;line-height:1.25;color:rgb(98, 121, 138);text-align:left}duet-table.duet-theme-turva th{color:rgb(143, 147, 158)}duet-table tbody th{font-weight:600;color:rgb(8, 42, 77)}duet-table.duet-theme-turva tbody th{color:rgb(23, 28, 58)}duet-table .duet-table-action-row td:last-child{justify-self:end;padding-right:20px !important;white-space:nowrap}duet-table span.duet-table-cell-heading{display:none}.duet-table-flattened table,.duet-table-flattened thead,.duet-table-flattened tbody,.duet-table-flattened tfoot,.duet-table-flattened th,.duet-table-flattened td,.duet-table-flattened tr{display:block}.duet-table-flattened thead tr{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}.duet-table-flattened td{line-height:1.25}.duet-table-flattened td:not(:last-child){margin-bottom:16px !important}.duet-table-flattened td span.duet-table-cell-heading{margin-bottom:4px !important;display:block;font-size:1rem;font-weight:600;color:rgb(8, 42, 77)}.duet-table-flattened.duet-theme-turva td span.duet-table-cell-heading{color:rgb(23, 28, 58)}.duet-table-flattened tbody td,.duet-table-flattened tbody th,.duet-table-flattened tfoot td{padding:0 !important;text-align:left !important}.duet-table-flattened tbody th{font-weight:600;line-height:1.25;color:rgb(98, 121, 138);text-align:left}.duet-table-sticky thead th,.duet-table-sticky thead td{position:sticky;top:0;background:rgb(255, 255, 255)}.duet-table-striped td,.duet-table-striped th{padding:20px !important}@media (max-width: 35.9375em){.duet-table-striped td,.duet-table-striped th{padding:20px 12px !important}}.duet-table-striped tbody th{background:rgb(255, 255, 255)}.duet-table-striped.duet-table-sticky thead th,.duet-table-striped.duet-table-sticky thead td{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-table-sticky.duet-theme-turva thead th,.duet-table-striped.duet-table-sticky.duet-theme-turva thead td{border-bottom-color:rgb(222, 224, 228)}.duet-table-striped tbody:not(:first-of-type) th{padding-top:40px !important}.duet-table-striped tbody:only-of-type tr:nth-of-type(odd){background:rgba(4, 81, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(4, 81, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tfoot td{border-top:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-theme-turva tfoot td{border-top-color:rgb(222, 224, 228)}.duet-table-striped.duet-table-flattened tbody:not(:first-of-type) th{padding-top:20px !important}.duet-table-striped.duet-table-flattened tr{padding:20px !important}.duet-table-striped.duet-table-flattened tfoot td{border-top:0}.duet-table-striped.duet-table-flattened tfoot tr{border-top:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:rgb(222, 224, 228)}.duet-table-fixed th,.duet-table-minimal th,.duet-table-plain th,.duet-table-fixed thead td,.duet-table-minimal thead td,.duet-table-plain thead td{padding:16px !important;border-bottom:1px solid rgb(98, 121, 138)}.duet-table-fixed th:first-child,.duet-table-minimal th:first-child,.duet-table-plain th:first-child,.duet-table-fixed thead td:first-child,.duet-table-minimal thead td:first-child,.duet-table-plain thead td:first-child{padding-left:0 !important}.duet-table-fixed th:last-child,.duet-table-minimal th:last-child,.duet-table-plain th:last-child,.duet-table-fixed thead td:last-child,.duet-table-minimal thead td:last-child,.duet-table-plain thead td:last-child{padding-right:0 !important}.duet-theme-turva.duet-table-fixed th,.duet-theme-turva.duet-table-minimal th,.duet-theme-turva.duet-table-plain th,.duet-theme-turva.duet-table-fixed thead td,.duet-theme-turva.duet-table-minimal thead td,.duet-theme-turva.duet-table-plain thead td{border-bottom-color:rgb(113, 118, 132)}.duet-table-fixed tbody th,.duet-table-minimal tbody th,.duet-table-plain tbody th{padding-top:40px !important;border-bottom-color:rgb(212, 223, 229)}.duet-theme-turva.duet-table-fixed tbody th,.duet-theme-turva.duet-table-minimal tbody th,.duet-theme-turva.duet-table-plain tbody th{border-bottom-color:rgb(222, 224, 228)}.duet-table-fixed td,.duet-table-minimal td,.duet-table-plain td{padding:16px !important}.duet-table-fixed td:first-child,.duet-table-minimal td:first-child,.duet-table-plain td:first-child{padding-left:0 !important}.duet-table-fixed td:last-child,.duet-table-minimal td:last-child,.duet-table-plain td:last-child{padding-right:0 !important}.duet-table-fixed tbody td,.duet-table-minimal tbody td,.duet-table-plain tbody td{border-bottom:1px solid rgb(212, 223, 229)}.duet-theme-turva.duet-table-fixed tbody td,.duet-theme-turva.duet-table-minimal tbody td,.duet-theme-turva.duet-table-plain tbody td{border-bottom-color:rgb(222, 224, 228)}.duet-table-flattened.duet-table-fixed tbody:first-of-type th,.duet-table-flattened.duet-table-minimal tbody:first-of-type th,.duet-table-flattened.duet-table-plain tbody:first-of-type th{padding-top:0 !important}.duet-table-flattened.duet-table-fixed td,.duet-table-flattened.duet-table-minimal td,.duet-table-flattened.duet-table-plain td,.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{border-bottom:0}.duet-table-flattened.duet-table-fixed tr,.duet-table-flattened.duet-table-minimal tr,.duet-table-flattened.duet-table-plain tr{padding:20px 0 !important}.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{padding-top:20px !important}.duet-table-flattened.duet-table-fixed tfoot td,.duet-table-flattened.duet-table-minimal tfoot td,.duet-table-flattened.duet-table-plain tfoot td{margin-bottom:4px !important}.duet-table-flattened.duet-table-fixed tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-minimal tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-plain tbody:not(:only-of-type) tr:first-child{border-bottom:0}.duet-table-plain.duet-table-flattened tbody tr{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:rgb(222, 224, 228)}.duet-table-minimal tbody tr,.duet-table-minimal tbody tr td{vertical-align:top;border-bottom:0 none}.duet-table-minimal tbody tr:last-of-type,.duet-table-minimal tbody tr:last-of-type td{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-minimal.duet-table-flattened tbody tr,.duet-table-minimal.duet-table-flattened tbody tr td{border-bottom:0 none}.duet-table-minimal.duet-table-flattened tbody tr td[data-heading]::before{display:none}.duet-table-minimal.duet-table-flattened tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-fixed table{table-layout:fixed}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td,.duet-table-fixed tbody tr td:first-child{padding:4px !important;vertical-align:text-bottom;border-bottom:0 none}.duet-table-fixed thead{display:none}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td{border-bottom:0 none}.duet-table-fixed:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-fixed:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-scrollable{position:relative;width:100%;overflow-x:auto;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0)), linear-gradient(-90deg, #fff 0%, rgba(255, 255, 255, 0)) 100% 0, radial-gradient(farthest-side at 0% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)) 100% 0%;background-repeat:no-repeat;background-attachment:local, local, scroll, scroll;background-size:100px 100%, 100px 100%, 12px 100%, 12px 100%}.duet-table-selected-column{background:rgba(0, 119, 179, 0.08)}.duet-theme-turva .duet-table-selected-column{background:rgba(113, 118, 132, 0.08)}.duet-table-sortable tbody tr td:first-child,.duet-table-sortable thead tr th:first-child{padding:20px}.duet-table-sortable:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-sortable:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-actions table{table-layout:auto}.duet-table-actions thead th:last-child{width:1px;white-space:nowrap}.duet-editable-table-table.duet-table-flattened tr{display:grid;grid-template-columns:repeat(2, 1fr);grid-auto-rows:auto;gap:10px}.duet-editable-table-table.duet-table-flattened tr.duet-table-action-row td:last-child::before{padding:0;content:""}.duet-editable-table-table.duet-table-flattened td{grid-column:1/2}.duet-editable-table-table.duet-table-flattened td:first-child{grid-row:1;grid-column:1}.duet-editable-table-table.duet-table-flattened td:last-child{grid-row:1;grid-column:2}duet-table.duet-theme-turva2.duet-theme-turva td{color:#172a3b}duet-table.duet-theme-turva2.duet-theme-turva tbody th{color:#172a3b}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva.duet-table-sticky thead th,duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva.duet-table-sticky thead td{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 42, 59, 0.04)}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 42, 59, 0.04)}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tfoot td{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody th,duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody td{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody td{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-fixed.duet-theme-turva:not(.duet-table-flattened) tfoot{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-sortable.duet-theme-turva:not(.duet-table-flattened) tfoot{border-top-color:#fbe1d1}';var z=L;var A={none:0,"with-links":parseFloat(m)*16,"without-links":parseFloat(g)*16};var F=t("duet_table",function(){function t(t){var e=this;a(this,t);this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)";this.handleMediaQueryChange=function(t){e.matchesBreakpoint=v.includes(e.breakpoint)?!t.matches:t.matches};this.matchesBreakpoint=true;this.language=h();this.theme=undefined;this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.hideHeadVisually=false}t.prototype.watchLanguageStateHandler=function(t,e){var a=this;if(t!==e){setTimeout((function(){return a.copyHeadingsToCells()}),50)}};t.prototype.connectedCallback=function(){var t=this;var e=this.breakpoint==="none"||this.breakpoint==="none-scrollable"?"all":y[this.breakpoint];this.mq=matchMedia(e);this.mq.addEventListener("change",s(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);this.observer=new MutationObserver((function(){return s(t.copyHeadingsToCells(),50)}));this.observer.observe(this.element,{childList:true,subtree:true})};t.prototype.componentWillLoad=function(){l(this);this.copyHeadingsToCells();if(this.sticky&&this.breakpoint==="none-scrollable"){console.warn('[DUET WARNING]: sticky and breakpoint="none-scrollable" are incompatible. Scrollable takes precedence')}if(this.sticky){var t=A[this.stickyDistance];var e=this.element.querySelectorAll(this.headingSelector);e.forEach((function(e){return e.style.top="".concat(t,"px")}))}};t.prototype.componentDidLoad=function(){this.observer?this.observer.takeRecords():null;f(this)};t.prototype.disconnectedCallback=function(){this.observer.disconnect();this.observer=null;this.mq.removeListener(this.handleMediaQueryChange);this.mq=null;this.matchesBreakpoint=true;b(this)};t.prototype.copyHeadingsToCells=function(){var t=this.element.querySelectorAll(this.headingSelector);var e=this.element.querySelectorAll("tbody tr");var a=Array.from(t).map((function(t){return t.textContent.trim()}));e.forEach((function(t){t.querySelectorAll("td").forEach((function(t,e){if(a[e]){var i=t.querySelector(".duet-table-cell-heading");if(!i||i.textContent!==a[e]){i===null||i===void 0?void 0:i.remove();var d=document.createElement("span");d.textContent=a[e];d.classList.add("duet-table-cell-heading");d.setAttribute("aria-hidden","true");d.inert=true;t.prepend(d)}}}))}))};t.prototype.render=function(){var t;return e(d,{key:"97ec17516c3b7f8a75b2f2d8b64e21358260e1e3",class:(t={},t["duet-table-".concat(this.variation)]=true,t["duet-table-flattened"]=!this.matchesBreakpoint,t["duet-table-sticky"]=this.matchesBreakpoint&&this.sticky,t["duet-table-scrollable"]=this.breakpoint==="none-scrollable",t["duet-m-0"]=this.margin==="none",t["duet-theme-turva"]=this.theme==="turva",t["duet-table-hide-head-visually"]=this.hideHeadVisually,t)},e("slot",{key:"174a174db7425f0abc109ad212ab9a665adc8797"}))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{language:["watchLanguageStateHandler"]}},enumerable:false,configurable:true});return t}());F.style=z;var M=[{type:"default",system_message:"unknown error",message:{fi:"Tapahtui tuntematon virhe, ole hyvä ja yritä uudelleen.",sv:"Ett okänt fel uppstod, försök igen.",en:"An unknown error occured, please try again."}},{type:"400",system_message:"Bad Request: The server could not understand the request due to invalid syntax.",message:{fi:"Tiedostoa ei hyväksytty.",sv:"Servern avvisade din fil.",en:"The server rejected your file."}},{type:"401",system_message:"Not Authenticated: The client must authenticate itself to get the requested response...",message:{fi:"Vain kirjautunut käyttäjä voi lähettää tiedostoja.",sv:"Du måste vara inloggad för att ladda upp filer.",en:"You need to be logged in to upload files."}},{type:"403",system_message:"No Access: The client does not have access rights to the content.",message:{fi:"Ei oikeuksia lähettää tiedostoja.",sv:"Du har inte rätt åtkomsträttigheter för att ladda upp filer.",en:"You do not have the correct access rights to upload files."}},{type:"413",system_message:"Payload too large",message:{fi:"Tiedosto oli liian vastaanotettavaksi.",sv:"Filen var för stor för servern att hantera.",en:"The file was to large for the server to handle."}},{type:"415",system_message:"Unsupported media type",message:{fi:"Tiedoston tyyppi oli väärä.",sv:"Servern avvisade filen eftersom den hade fel typ.",en:"The server rejected the file because it had the wrong type."}},{type:"429",system_message:"Too many request from same address",message:{fi:"Liian monta yritystä, ole hyvä ja yritä myöhemmin uudelleen.",sv:"Servern har fått många förfrågningar från dig, försök igen senare.",en:"The server has received to many request from you, please try again later."}},{type:"500",system_message:"Internal Server Error",message:{fi:"Palvelin ilmoitti tuntemattomasta virheestä ja lataus epäonnistui.",sv:"Servern rapporterade ett okänt fel och uppladdningen misslyckades.",en:"The server reported an unknown error and the upload failed."}},{type:"duet-upload-100",system_message:"File extension not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den type.",en:"You cannot upload files with that extension."}},{type:"duet-upload-001",system_message:"File transfer failed",message:{fi:"Tiedoston lähetys keskeytyi, ole hyvä ja yritä uudelleen.",sv:"Din anslutning till servern avbröts, försök igen.",en:"Your connection to the server was interrupted, try again."}},{type:"duet-upload-101",system_message:"File mimetype not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den typ.",en:"You cannot upload files of that type."}},{type:"duet-upload-201",system_message:"File is too large",message:{fi:"Tiedosto on liian iso.",sv:"Filen är större än tillåtet.",en:"The file is larger than permitted."}},{type:"duet-upload-202",system_message:"The combined size of all files is too large",message:{fi:"Tiedostojen yhteenlaskettu koko on liian iso.",sv:"Du har nått den maximala kombinerade filstorleken.",en:"You have reached the maximum combined filesize."}},{type:"duet-upload-203",system_message:"Files to upload exceed total byte size limit",message:{fi:"Yritit lisätä tiedostoja, jotka ylittäisivät suurimman sallitun yhteenlasketun koon.",sv:"Du försökte lägga till filer som skulle överskrida den maximala kombinerade storleken.",en:"You tried to add files that would exceed the maximum combined size."}},{type:"duet-upload-301",system_message:"The maximum file limit has been reached",message:{fi:"Liitteiden maksimimäärä saavutettu.",sv:"Maximalt antal bilagor har uppnåtts.",en:"Maximum number of attachments reached."}},{type:"duet-upload-302",system_message:"Files to upload exceeds limits",message:{fi:"Et voi lähettää enempää kuin enimmäismäärän liitteitä.",sv:"Du kan inte ladda upp fler än det maximala antalet bilagor.",en:"You can't upload more than maximum number of attachments."}}];var U={fi:"Liiteluettelo",sv:"Lista över bilagor",en:"Attachments list"};var D=function(t){var a=t.label,i=t.categoryLabel;return e("div",{class:"items-header",tabindex:"-1","aria-label":c(U)},i&&e("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},c(i)),e("duet-heading",{class:{"filename-header":true,"no-category":!i},border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},c(a)))};var C=function(t,e){if(!e){return true}var a=t.split(".");var i=e.split(",");var d=a[a.length-1];return i.includes(d)};var P=function(t,e){if(!e||!t){return true}var a=e.split(",");var i=false;a.forEach((function(e){var a=e.split("/");var d=t.split("/");if(a[0]===d[0]&&(a[1]===d[1]||a[1]==="*")){i=true}}));return i};var I=function(t,e){if(!e||!t){return true}return e>=t};var O=function(t,e,a){var i=e.allowedMimetypes,d=e.allowedExtensions,n=e.maxBytes;var r=false;var l=k("default",a);if(t){var o=t.name,s=t.type,u=t.size;var h=P(s,i);var f=d==="all"||d===""||d===" "||d===undefined?true:C(o.toLowerCase(),d);var b=I(u,n);if(!h){l=k("duet-upload-101",a)}if(!f){l=k("duet-upload-100",a)}if(!b){l=k("duet-upload-201",a)}r=h&&f&&b}else{r=false}return{valid:r,errorMessage:r?undefined:c(l.message),errorSystem:r?undefined:l.system_message,errorType:r?undefined:l.type}};var W=function(t,e){var a=0;if(e){t.forEach((function(t){if(t.valid&&t.size){a+=t.size}}));if(a>=e){return true}}return false};var R=function(t,e){var a=0;if(e){t.forEach((function(t){if(t.valid){a++}}));if(a>=e){return true}}return false};var N=function(t,e,a){if(t+e>a){return true}return false};var Y=function(t,e,a){var i=0;if(a){t.forEach((function(t){if(t.valid&&t.size){i+=t.size}}));e.forEach((function(t){if(t.size){i+=t.size}}));if(i>=a){return true}}return false};var q=function(t){var e=t.payload,a=t.options,i=t.onFailure,d=t.onSuccess,n=t.onProgress;var r=a.type,l=r===void 0?"POST":r,o=a.xhr,s=a.uri,u=a.argument,h=u===void 0?null:u,f=a.headers,b=f===void 0?null:f;o.open(l,"".concat(s).concat(h||""),true);var c=e.data,p=e.name;if(b){Object.keys(b).forEach((function(t){o.setRequestHeader(t,b[t])}))}if(l==="POST"){o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE&&o.status>=200&&o.status<300){d(o,p,o.status)}if(o.readyState===XMLHttpRequest.DONE&&o.status>=300&&o.status<999){i(o,p,o.status)}};n(p)}o.send(c);return o};var B="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}::slotted([slot=uploadfooter]){margin-top:20px}.duet-upload{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}duet-paragraph::part(duet-paragraph){word-break:break-word}duet-editable-table tfoot{display:none}.upload-bottom-caption{margin-top:12px;margin-bottom:16px;line-height:1.4rem}.items-header{display:none;flex-direction:row;margin-bottom:0}@media (min-width: 36em){.items-header{display:flex}}.items-header:not(:last-child),.items-header:not(:first-child){margin-top:12px}.items-header .category-header{width:35%}.items-header .filename-header{width:65%}.items-header .filename-header.no-category{width:100%}.upload-item-row{display:flex;flex-direction:column;gap:16px;align-content:center;align-items:center;padding:16px 0 16px 0;border-bottom:1px solid rgb(212, 223, 229)}@media (min-width: 36em){.upload-item-row{flex-direction:row;gap:10px}}.upload-item-row .item-categories{width:100%}@media (min-width: 36em){.upload-item-row .item-categories{width:35%}}.upload-item-row .item-name{position:relative;bottom:2px;width:100%;text-align:left}@media (min-width: 36em){.upload-item-row .item-name{width:50%}.upload-item-row .item-name.no-category{width:85%}}.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:block}@media (min-width: 36em){.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:none}}.upload-item-row .item-actions{width:100%;margin-left:-8px;text-align:left}@media (min-width: 36em){.upload-item-row .item-actions{width:15%;padding-top:0;margin-left:auto;text-align:right}}.upload-item-row .duet-upload-item-name duet-icon{position:relative;top:4px}.upload-item-row .duet-upload-item-name duet-progress{display:block;margin-top:16px}";var H=B;var J=t("duet_upload",function(){function t(t){var d=this;a(this,t);this.duetChange=i(this,"duetChange",3);this.duetBlur=i(this,"duetBlur",7);this.duetFocus=i(this,"duetFocus",7);this.duetReady=i(this,"duetReady",7);this.duetDone=i(this,"duetDone",3);this.duetState=i(this,"duetState",3);this.duetDelete=i(this,"duetDelete",3);this.duetCancel=i(this,"duetCancel",3);this.duetProgress=i(this,"duetProgress",3);this.duetUpload=i(this,"duetUpload",3);this.linkClick=i(this,"linkClick",3);this.buttonId=x("DuetButton");this.labelId=x("DuetLabel");this.uploadId=x("DuetUpload");this.filesInProgress=new Map;this.fileMaxReached=false;this.bytesMaxReached=false;this.filesToUploadExceedsLimit=false;this.filesToUploadTotalSizeIsAboveMax=false;this.internalStatusMessageLabel=undefined;this.itemRefs=new Map;this.DefaultGroups={inprogress:"inprogress",success:"success",pending:"pending",failure:"failure"};this.kick=s((function(){d.tick=Date.now()}),30);this.categoryLabel={en:"Category",sv:"Filtyp",fi:"Tiedostotyyppi"};this.listenForActionEvents=function(){d.element.addEventListener("duetActionEvent",(function(t){var e=t.detail;var a=e.action,i=e.id,n=e.originalEvent;switch(a){case"delete":d.onDelete(i,n);break;case"cancel":d.onCancel(i,n);break}}))};this.verifyValidity=function(){var t=d.getFilesAsArray(),e=t.invalid,a=t.valid;var i=d.valid;d.valid=e.length===0&&a.length!==0;if(d.valid!==i){d.duetState.emit({originalEvent:undefined,data:{valid:d.valid,from:"componentWillRender"},component:"duet-upload"})}};this.getGroupFromItemData=function(t){if(t.valid&&t.progress===100){return d.DefaultGroups.success}else if(t.progress>0&&t.progress!==100){return d.DefaultGroups.inprogress}else if(!t.valid){return d.DefaultGroups.failure}else if(t.pending){return d.DefaultGroups.pending}else if(t.group){return t.group}else{return"none"}};this.mapFilesToUploadItems=function(t,a,i,n){if(a===d.DefaultGroups.success){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"success",data:t,showLinks:d.showLinks,linkClickEvent:d.emitEvent?d.linkClick:undefined,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(a===d.DefaultGroups.inprogress){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"inprogress",data:t,showLinks:d.showLinks,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(a===d.DefaultGroups.pending){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"pending",data:t,showLinks:d.showLinks,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(a===d.DefaultGroups.failure){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"failure",data:t,showLinks:d.showLinks,errorCodes:d.errorCodes,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(t.group){return t.html}else{return"none"}};this.genHashName=function(){return Date.now().toString(36)+Math.random()};this.updateValueInMap=function(t,e,a,i){if(i===void 0){i=true}try{var n=d.files.get(t);n[e]=a;d.files.set(t,n);if(d.external&&e!=="url"){d.trackProgress(t,e==="uploaded")}}catch(t){}if(i){d.kick()}};this.updateProgress=function(t,e){var a=function(a){d.updateValueInMap(e,"progress",a);d.onProgress(e,a,t)};if(t.lengthComputable){var i=t.loaded/t.total*100;a(i)}else{console.log("cant read progress")}};this.trackProgress=function(t,e){if(e===void 0){e=false}if(e){d.filesInProgress.delete(t)}else{d.filesInProgress.set(t,"inprogress")}if(d.filesInProgress.size===0){d.onDone()}};this.getFilesAsArray=function(){var t=[];var e=[];d.files.forEach((function(a){if(a.valid&&!a.deleted){t.push(a)}else if(!a.valid&&!a.deleted){e.push(a)}}));return{valid:t,invalid:e}};this.resetFormFields=function(){d.nativeInput.value=""};this.startUpload=function(t){var e=[];for(var a=1;a<arguments.length;a++){e[a-1]=arguments[a]}return __awaiter(d,__spreadArray([t],e,true),void 0,(function(t,e){var a,i,d;if(e===void 0){e=undefined}return __generator(this,(function(n){a=this.validateTotals(),i=a.bytesMaxReached,d=a.fileMaxReached;if(i||d){this.kick();return[2]}this.metaData=e;this.nativeInput.click();this.onUpload(t,e);t.stopPropagation();t.preventDefault();return[2]}))}))};this.transferComplete=function(t){d.updateValueInMap(t,"progress",100,false);d.trackProgress(t,true)};this.transferDone=function(t,e,a){d.updateValueInMap(e,"status",a,false);d.updateValueInMap(e,"uploaded",true,false);try{var i=JSON.parse(t.response);d.updateValueInMap(e,"url",i.url)}catch(t){d.updateValueInMap(e,"url",null);console.error("Server did not respond with expected response {url: string}")}return};this.transferDoneWithFailure=function(t,e,a){try{var i=JSON.parse(t.response).error;d.updateValueInMap(e,"error",{message:i.message,type:i.type},false)}catch(t){console.error("Server did not respond with expected response error:{message: string, type: int}");d.updateValueInMap(e,"error",{type:a},false)}d.updateValueInMap(e,"valid",false,true)};this.transferFailed=function(t){d.updateValueInMap(t,"error",_("duet-upload-001",d.errorCodes))};this.transferCanceled=function(t){d.files.delete(t);d.validateTotals(t);d.kick()};this.validateTotals=function(t){var e=W(d.files,d.maxBytesTotal);var a=R(d.files,d.maxFiles);if(e&&t){d.updateValueInMap(t,"error",_("duet-upload-202",d.errorCodes),false)}if(a&&t){d.updateValueInMap(t,"error",_("duet-upload-301",d.errorCodes),false)}d.bytesMaxReached=e;d.fileMaxReached=a;return{bytesMaxReached:e,fileMaxReached:a}};this.uploadFile=function(t){var e=[];for(var a=1;a<arguments.length;a++){e[a-1]=arguments[a]}return __awaiter(d,__spreadArray([t],e,true),void 0,(function(t,e,a){var i,d,n;if(e===void 0){e=false}return __generator(this,(function(r){switch(r.label){case 0:if(!e&&this.deferUpload){this.updateValueInMap(t.item.name,"pending",true,false);this.updateValueInMap(t.item.name,"group","pending",true)}else if(e){this.updateValueInMap(t.item.name,"pending",false,false);this.updateValueInMap(t.item.name,"group",undefined,true)}r.label=1;case 1:r.trys.push([1,4,,5]);if(!(!this.deferUpload||e))return[3,3];i=new FormData;i.append("file",t.item);if(a){i.append("key",a)}i.append("uid",t.uid);i.append("name",t.item.name);i.append("metadata",JSON.stringify({uid:t.uid,url:this.uri,size:t.item.size,meta:t.meta}));d=t;return[4,this.makeXHRPostRequest(i)];case 2:d.xhr=r.sent();r.label=3;case 3:return[3,5];case 4:n=r.sent();this.updateValueInMap(t.item.name,"valid",false,false);return[3,5];case 5:return[2]}}))}))};this.uploadPendingFiles=function(){for(var t=0,e=Array.from(d.files.entries());t<e.length;t++){var a=e[t],i=a[0],n=a[1];if(n.group==="pending"&&n.pending===true){d.uploadFile(n,true,i)}}};this.getItemFromUID=function(t){for(var e=0,a=Array.from(d.files.entries());e<a.length;e++){var i=a[e],n=i[0],r=i[1];if(r.uid===t){return{value:r,key:n}}}return null};this.handleExternalUploadButton=function(t,e){if(d.externalUploadButton){if(t||e){d.externalUploadButton.disabled=true}else{d.externalUploadButton.disabled=false}}};this.onDelete=function(t,e){var a=d.getItemFromUID(t);var i=a.key;var n=d.files.get(i);d.files.delete(i);var r=d.validateTotals(),l=r.bytesMaxReached,o=r.fileMaxReached;d.handleExternalUploadButton(l,o);d.kick();d.duetDelete.emit({originalEvent:e,data:{deletion:n},component:"duet-upload"});if(!d.external&&!n.pending){d.makeXHRDeleteRequest(n)}d.resetFormFields()};this.onCancel=function(t,e){var a=d.getItemFromUID(t).key;var i=d.files.get(a);d.files.delete(a);var n=d.validateTotals(),r=n.bytesMaxReached,l=n.fileMaxReached;d.handleExternalUploadButton(r,l);if(!d.external){var o=i.xhr;if(o){o.abort()}}d.kick();d.resetFormFields();d.duetCancel.emit({originalEvent:e,data:{cancelled:i},component:"duet-upload"})};this.onUpload=function(t,e){d.duetUpload.emit({originalEvent:t,metaData:e,component:"duet-upload"})};this.onBlur=function(t){d.duetBlur.emit({originalEvent:t,component:"duet-upload"})};this.onProgress=function(t,e,a){d.duetChange.emit({originalEvent:a,data:{key:t,percentComplete:e},component:"duet-upload"})};this.onFocus=function(t){d.duetFocus.emit({originalEvent:t,component:"duet-upload"})};this.onReady=function(){d.duetReady.emit({component:"duet-upload"})};this.onDone=function(){d.duetDone.emit({component:"duet-upload",data:{files:d.files}})};this.filterMap=function(){var t=Array.from(d.files.values());var e=[];var a=[];var i=[];var n=[];var r=false;t.forEach((function(t){var l=d.getGroupFromItemData(t);if(t.meta&&!!t.meta.badges){r=true}if(l===d.DefaultGroups.success){n.push({uid:t.uid,data:t})}else if(l===d.DefaultGroups.inprogress){e.push({uid:t.uid,data:t})}else if(l===d.DefaultGroups.pending){i.push({uid:t.uid,data:t})}else if(l===d.DefaultGroups.failure){a.push({uid:t.uid,data:t})}else if(t.group){e.push({uid:t.uid,data:t})}}));return{pending:i,failure:a,success:n,inprogress:e,hasCategory:r}};this.getActions=function(t,e){return e.filter((function(e){return e.map.includes(t)}))};this.renderUploadedItems=function(){d.itemRefs.clear();var t=d.filterMap();var a=t.hasCategory;var i=d.hideCancelButton?d.actions.filter((function(t){return t.name!=="cancel"})):d.actions;var n=d.groups.map((function(n){var l=t[n.id];if(!(l===null||l===void 0?void 0:l.length)){return}return e(r,null,!d.hideGroups&&e(D,{categoryLabel:a?d.categoryLabel:undefined,label:n.label}),l.map((function(t){return d.mapFilesToUploadItems(t.data,n.id,a,i)})))}));return e(r,null,d.showUploadedItemsHeader&&e(D,{categoryLabel:a?d.categoryLabel:undefined,label:d.uploadedItemsHeaderLabel}),n)};this.tick=Date.now();this.accessibleActiveDescendant=undefined;this.accessibleDescribedBy=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.external=false;this.middleware=null;this.deferUpload=false;this.hideButton=false;this.actions=[{icon:"action-delete",color:"color-danger",size:"x-small",background:"gray-lightest",name:"delete",map:["success","failure"],label:{fi:"Poista tiedosto",en:"Delete the file",sv:"Ta bort filen"}},{icon:"navigation-close",color:"primary",size:"x-small",background:"gray-lightest",name:"cancel",map:["inprogress","pending"],label:{fi:"Keskeytä lähetys",en:"Cancel the upload",sv:"Stop överföringen"}}];this.uri=undefined;this.showLinks=false;this.caption=undefined;this.statusLabelDefaults={fi:{inProgress:"Lähetetään {filesUploaded}, yhteensä lähetettävänä {filesTotal}.",inProgressWithErrors:"Lähetetään {filesInProgress}, lähetetty {filesUploaded}, yhteensä lähetettävänä {filesTotal}, {filesWithErrors} epäonnistui",done:"Lähetys valmis, {filesTotal} lisätty onnistuneesti",doneWithErrors:"Lähetys valmis, {filesUploaded} lisätty onnistuneesti, {filesWithErrors} epäonnistui",files:"tiedostoa",file:"tiedosto"},sv:{inProgress:"Laddar upp {filesUploaded} av {filesTotal}",inProgressWithErrors:"Laddar upp {filesInProgress}, {filesUploaded} uppladdad av {filesTotal}, {filesWithErrors} misslyckades",done:"Uppladdningen slutförd, {filesTotal} har lagts till",doneWithErrors:"Uppladdningen slutförd, {filesUploaded} har lagts till, {filesWithErrors} misslyckades",files:"filer",file:"fil"},en:{inProgress:"Uploading {filesUploaded} of {filesTotal}",inProgressWithErrors:"Uploading {filesInProgress}, {filesUploaded} uploaded of {filesTotal}, {filesWithErrors} failed",done:"Upload completed, {filesTotal} added successfully",doneWithErrors:"Upload completed, {filesUploaded} added successfully, {filesWithErrors} failed.",files:"files",file:"file"}};this.statusMessageLabel=c(this.statusLabelDefaults);this.buttonLabelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add an attachment"};this.buttonLabel=c(this.buttonLabelDefaults);this.accessibleButtonLabel=undefined;this.theme="";this.disabled=false;this.identifier=undefined;this.margin="auto";this.required=false;this.alignment="middle";this.hideGroups=false;this.files=new Map;this.valid=!this.required;this.labelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add attachments"};this.label=c(this.labelDefaults);this.descriptionDefaults={en:"You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytestotal} of files at a time, and add up to {maxfiles} attachments at a time each no larger than {maxbytes}.",sv:"Du kan bifoga följande filtyper: {filetypes} - samt de vanligaste videofilerna. Du kan ladda upp {maxbytestotal} av filer åt gången, och lägga till upp till {maxfiles} bilagor åt gången varje inte större än {maxbytes}.",fi:"Voit liittää seuraavat tiedostotyypit: {filetypes} - sekä yleisimmät videotiedostot. Voit lähettää {maxbytestotal} tiedostoa kerrallaan, ja lisätä enintään {maxfiles} liitettä kerrallaan, jokainen enintään {maxbytes} kokoisena."};this.description=c(this.descriptionDefaults);this.fileListEmptyDefaults={fi:"Ei vielä lisättyjä tiedostoja.",sv:"Inga filer har lagts till ännu.",en:"No files added yet."};this.fileListEmpty=c(this.fileListEmptyDefaults);this.error="";this.errorCodes=M;this.name=undefined;this.maxBytes=2e8;this.maxBytesTotal=undefined;this.maxFiles=99;this.allowedExtensions="all";this.allowedMimetypes="";this.multiple=true;this.limitSelection=false;this.hideCancelButton=false;this.value=undefined;this.externalUploadButtonId=undefined;this.captionOnBottom=false;this.showUploadedItemsHeader=false;this.uploadedItemsHeaderLabel={fi:"Ladattu tiedosto",sv:"Lägg till en bilaga",en:"Uploaded file"};this.headerHeadingLevel="h3";this.hideHeader=false;this.emitEvent=false;this.actionButtonTitles={cancel:false,delete:false};this.renameDuplicates=false;this.groups=[{id:this.DefaultGroups.success,label:{fi:"Valmiit tiedostot",sv:"Files success",en:"Files success"}},{id:this.DefaultGroups.failure,label:{fi:"Tiedostot, joissa on virheitä",sv:"Filer med fel",en:"Files with errors"}},{id:this.DefaultGroups.inprogress,label:{fi:"Kesken olevat tiedostot",sv:"Filer inprogress",en:"Files inprogress"}},{id:this.DefaultGroups.pending,label:{en:"Files to upload",sv:"Filer att ladda",fi:"Ladattavat tiedostot"}}]}t.prototype.watchValidHandler=function(t,e){if(t!==e){this.kick()}};t.prototype.componentWillLoad=function(){if(typeof this.statusMessageLabel==="string"){this.internalStatusMessageLabel=p(this.groups)}else{this.internalStatusMessageLabel=this.statusMessageLabel}l(this);this.listenForActionEvents();this.onReady();this.externalUploadButton=document.querySelector("#".concat(this.externalUploadButtonId));this.processedButtonTitles=w(this.actionButtonTitles)};t.prototype.componentWillRender=function(){this.verifyValidity()};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.nativeInput){this.nativeInput.focus(t)}return[2]}))}))};t.prototype.upload=function(){return __awaiter(this,arguments,void 0,(function(t){var e,a,i;if(t===void 0){t=undefined}return __generator(this,(function(d){e=this.validateTotals(),a=e.bytesMaxReached,i=e.fileMaxReached;if(a||i){this.handleExternalUploadButton(a,i);this.kick();return[2]}this.metaData=t;this.nativeInput.click();return[2]}))}))};t.prototype.uploadPending=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.uploadPendingFiles();return[2]}))}))};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:this.kick();return[4,this.setFocus()];case 1:t.sent();return[2]}}))}))};t.prototype.getFiles=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.files||this.files.size===0){return[2,false]}return[2,this.getFilesAsArray()]}))}))};t.prototype.updateValue=function(t,e,a){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.updateValueInMap(t,e,a);return[2]}))}))};t.prototype.focusActionButton=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(a){switch(a.label){case 0:return[4,(e=this.itemRefs.get(t))===null||e===void 0?void 0:e.focusActionButton()];case 1:a.sent();return[2]}}))}))};t.prototype.render=function(){var t=this;var a=this.identifier||this.uploadId;var i=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024);var n=Math.round(this.maxBytes/1024/1024);var l=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());l=l.replace(/{maxbytes}/g,"".concat(n.toString()," MB"));l=l.replace(/{maxbytestotal}/g,"".concat(i.toString()," MB"));l=l.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", "));if(this.externalUploadButton){this.externalUploadButton.accessibleLabel="".concat(this.externalUploadButton.innerText,". ").concat(l)}return e(d,{key:"f9ee10da87fd3355fcdd111de9f144c0d7c2b166",class:{"duet-m-0":this.margin==="none"}},e("duet-fieldset",{key:"5a6c4b3035d050ce23a552a1c41979faa0c17cb0","label-heading-level":this.headerHeadingLevel,"label-hidden":this.hideHeader,label:this.label},e("slot",{key:"432dc470d2efd214fe1d88d543c38f406a4e780a",name:"header"}),!this.files.size&&e("duet-empty-state",{key:"52b0aab8690ef9199d1608041674a372e9a791c9",id:this.labelId,part:this.identifier?"".concat(this.identifier,"-empty-state"):"duet-upload-empty-state",icon:"messaging-attachment"},e("duet-paragraph",{key:"3b47a899fea671720085c8d3355cb7aa7b30189b",margin:"none"},this.fileListEmpty)),!!this.files.size&&e("slot",{key:"6e6d3af2664ebbbf73e244ef4693d7603d72da66",name:"fileheader"}),!!this.files.size&&e("duet-upload-aria-status",{key:"2ab9e83fb0412a27c031b264b9a677c2ec7c2595",invalid:this.getFilesAsArray().invalid.length,valid:this.getFilesAsArray().valid.length,inprogress:this.filesInProgress.size,total:this.files.size,statusMessageLabel:this.internalStatusMessageLabel}),!!this.files.size&&this.renderUploadedItems(),!!this.files.size&&e("slot",{key:"d545f2932dc0c960ea21bafa8ba7ee2bfa592143",name:"filefooter"}),e("slot",{key:"50e7c76f552cecf4d61d629a51fd6b96777fb648",name:"uploadfooter"}),this.captionOnBottom&&e("duet-caption",{key:"98e1b98cb84e96aa7cb4a974273c7fbf9d81db53",margin:"none",size:"small"},e("div",{key:"422397c62df67cfac2908473e490429b6ce35188",class:"upload-bottom-caption"},l)),e("slot",{key:"f62ca6af83cae8a0ad4c4ed2236c34b0aebf5e82",name:"afterfooter"}),!this.hideButton&&e(r,{key:"f9827fd2d5057ebe8a9206b9ae367e14382ea6b2"},e("duet-spacer",{key:"726f7fe1442e5beaf238abda4f7b4b984f673230",size:"large"}),e("duet-button",{key:"72a8245cb718d0a29f7ffe155688bed7e118ce2d",id:this.buttonId,onClick:this.startUpload,"accessible-controls":a,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel||"".concat(this.buttonLabel,". ").concat(l),"accessible-owns":a,size:"small",variation:"secondary",fixed:true,icon:"action-add-circle",part:this.identifier?"".concat(this.identifier,"-button-upload"):"duet-upload-button-upload"},this.buttonLabel)),(this.fileMaxReached||this.bytesMaxReached||this.filesToUploadExceedsLimit||this.filesToUploadTotalSizeIsAboveMax)&&e(r,{key:"9b42acb8206cd9db5b01b839dc458f5be93d2c30"},e("duet-spacer",{key:"8010d59d3fda9775fcfaac799a1d7923c36ca280",size:"medium"}),e("duet-alert",{key:"d78bb705dbfee5d5f3d161f030680effa67c5ca7",part:this.identifier?"".concat(this.identifier,"-error-notification"):"duet-upload-error-notification"},this.fileMaxReached&&_("duet-upload-301",this.errorCodes),this.bytesMaxReached&&_("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&_("duet-upload-302",this.errorCodes),this.filesToUploadTotalSizeIsAboveMax&&_("duet-upload-203",this.errorCodes))),e("duet-visually-hidden",{key:"37ab8ffec8b318cea26e2d538ab0653949211fb4","aria-hidden":"true"},e("input",{key:"195d6bf7e5360d3f10c3fc149927c9f911f11bf0",ref:function(e){t.nativeInput=e},accept:!this.limitSelection?undefined:"".concat(this.allowedMimetypes,",").concat(this.allowedExtensions),onBlur:this.onBlur,onFocus:this.onFocus,onChange:function(e){return t.onChange(e)},type:"file",class:{"duet-upload":true},disabled:this.disabled,"aria-hidden":"true",required:this.required,name:this.name,id:this.identifier,multiple:this.multiple,tabIndex:-1}))))};t.prototype.makeXHRPostRequest=function(t){var e=this;var a=new XMLHttpRequest;var i=t.get("name");a.upload.addEventListener("progress",(function(t){e.updateProgress(t,i)}));a.upload.addEventListener("load",(function(){e.transferComplete(i)}));a.upload.addEventListener("error",(function(){e.transferFailed(i)}));a.upload.addEventListener("abort",(function(){e.transferCanceled(i)}));var d={payload:{data:t,name:i},options:{type:"POST",uri:this.uri,xhr:a,argument:null,headers:undefined},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){d=this.middleware(d)}return q(d)};t.prototype.makeXHRDeleteRequest=function(t){var e=t.uid,a=t.item;var i=new XMLHttpRequest;var d={"x-fileuid":e,"x-filename":a.name};var n={payload:{data:null,name:name},options:{type:"DELETE",xhr:i,uri:this.uri,argument:"?key=".concat(e,"&name=").concat(a.name),headers:d},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){n=this.middleware(n)}return q(n)};t.prototype.escapeSpecialCharacters=function(t){return(t+"").replace(/[\\"'(){}\[\]*?$^+]/g,"\\$&").replace(/\u0000/g,"\\0")};t.prototype.getRenamedFileName=function(t,e){var a=new RegExp("".concat(this.escapeSpecialCharacters(t)," \\(\\d+\\).").concat(e));var i=Array.from(this.files.entries()).map((function(t){var e=t[0],a=t[1];return e})).filter((function(i){return a.test(i)||i==="".concat(t,".").concat(e)})).sort((function(t,e){return t.split(".").slice(0,-1).join(".")>e.split(".").slice(0,-1).join(".")?1:-1})).pop().split(".").slice(0,-1).join(".");if(i===t){return"".concat(t," (1).").concat(e)}var d=parseInt(i.split("(").pop().slice(0,-1));return"".concat(t," (").concat(d+1,").").concat(e)};t.prototype.renameFiles=function(t){var e=this;return t.map((function(t){if(e.files.get(t.name)){var a=t.name.split(".");var i=a.pop();var d=a.join(".");var n=e.getRenamedFileName(d,i);return new File([t],n,{type:t.type,lastModified:t.lastModified})}else{return t}}))};t.prototype.onChange=function(t){return __awaiter(this,void 0,void 0,(function(){var e,a,i,d,n,r,l,o,s,u,h,f;return __generator(this,(function(b){switch(b.label){case 0:a=Array.from((e=this.nativeInput)===null||e===void 0?void 0:e.files);this.filesToUploadExceedsLimit=false;if(N(this.files.size,a.length,this.maxFiles)){this.filesToUploadExceedsLimit=true;this.kick();return[2]}this.filesToUploadTotalSizeIsAboveMax=false;if(Y(this.files,a,this.maxBytesTotal)){this.filesToUploadTotalSizeIsAboveMax=true;this.kick();return[2]}if(!a)return[3,6];if(this.renameDuplicates){a=this.renameFiles(a)}i=0,d=a;b.label=1;case 1:if(!(i<d.length))return[3,6];n=d[i];r=O(n,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),l=r.valid,o=r.errorMessage,s=r.errorType,u=r.errorSystem;h=this.genHashName();f={uid:h,item:n,size:n.size,meta:this.metaData,uploaded:false,valid:l,error:{type:l?undefined:s,message:l?undefined:o,system_message:l?undefined:u},progress:0,deleted:false,xhr:false,url:false};this.files.set(n.name,f);if(!(l&&!this.external))return[3,3];return[4,this.uploadFile(f)];case 2:b.sent();return[3,4];case 3:if(l&&this.external){this.updateValueInMap(f.item.name,"pending",true,false);this.updateValueInMap(f.item.name,"group","pending",true)}else if(!l){this.updateValueInMap(n.name,"valid",false,true)}b.label=4;case 4:this.kick();b.label=5;case 5:i++;return[3,1];case 6:this.resetFormFields();this.metaData=undefined;this.duetChange.emit({originalEvent:t,data:{files:this.files},component:"duet-upload"});return[2]}}))}))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{valid:["watchValidHandler"]}},enumerable:false,configurable:true});return t}());J.style=H}}}));
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(t,e,i,d){function s(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,l){function o(t){try{n(d.next(t))}catch(t){l(t)}}function a(t){try{n(d["throw"](t))}catch(t){l(t)}}function n(t){t.done?i(t.value):s(t.value).then(o,a)}n((d=d.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},d,s,l,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return n([t,e])}}function n(a){if(d)throw new TypeError("Generator is already executing.");while(o&&(o=0,a[0]&&(i=0)),i)try{if(d=1,s&&(l=a[0]&2?s["return"]:a[0]?s["throw"]||((l=s["return"])&&l.call(s),0):s.next)&&!(l=l.call(s,a[1])).done)return l;if(s=0,l)a=[a[0]&2,l.value];switch(a[0]){case 0:case 1:l=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;s=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(l=i.trys,l=l.length>0&&l[l.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!l||a[1]>l[0]&&a[1]<l[3])){i.label=a[1];break}if(a[0]===6&&i.label<l[1]){i.label=l[1];l=a;break}if(l&&i.label<l[2]){i.label=l[2];i.ops.push(a);break}if(l[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t];s=0}finally{d=l=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register(["./p-0e5663a5.system.js","./p-260f26f5.system.js","./p-d997b605.system.js"],(function(t){"use strict";var e,i,d,s,l,o;return{setters:[function(t){e=t.r;i=t.h;d=t.g;s=t.H},function(t){l=t.i},function(t){o=t.w}],execute:function(){var a="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-list-component{margin-bottom:16px !important;width:100%}.duet-list-component.duet-p-0{padding:0 !important}.duet-list-component.duet-m-0{margin:0 !important}";var n=a;var r=t("duet_list",function(){function t(t){e(this,t);this.theme="";this.margin="auto";this.padding="auto";this.mobile="left";this.breakpoint="small";this.variation="default";this.labelWidth="30";this.responsive=true}t.prototype.componentWillLoad=function(){l(this)};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e=this;return __generator(this,(function(i){t=this.element;this.mutationO=o(t,"duet-list-item",(function(){e.updateListItems()}));this.updateListItems();return[2]}))}))};t.prototype.disconnectedCallback=function(){if(this.mutationO){this.mutationO.disconnect();this.mutationO=undefined}};t.prototype.toggleClass=function(t,e,i){if(i){t.classList.add(e)}else{t.classList.remove(e)}};t.prototype.updateListItems=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e=this;return __generator(this,(function(i){t=Array.from(this.element.querySelectorAll("duet-list-item"));t.forEach((function(t){t.responsive=e.responsive;t.breakpoint=e.responsive?e.breakpoint||"small":undefined;t.classList.add("duet-list-width-".concat(e.labelWidth));t.classList.add("duet-list-variation-".concat(e.variation));e.toggleClass(t,"duet-p-0",e.padding==="none");e.toggleClass(t,"duet-list-mobile-center",e.mobile==="center");e.toggleClass(t,"duet-list-striped",e.variation==="striped");e.toggleClass(t,"duet-list-bordered",e.variation==="bordered");e.toggleClass(t,"duet-list-inner-bordered",e.variation==="inner-bordered");e.toggleClass(t,"duet-theme-turva",e.theme==="turva")}));return[2]}))}))};t.prototype.render=function(){return i("dl",{key:"c812a1b444858b533f9c34f809cea2c9ba67d841",class:{"duet-list-component":true,"duet-m-0":this.margin==="none"}},i("slot",{key:"177fb7013132331584b126edb4b11cca3723bfc9"}))};Object.defineProperty(t.prototype,"element",{get:function(){return d(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{theme:["updateListItems"],padding:["updateListItems"],mobile:["updateListItems"],responsive:["updateListItems"],breakpoint:["updateListItems"],variation:["updateListItems"],labelWidth:["updateListItems"]}},enumerable:false,configurable:true});return t}());r.style=n;var u='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;flex-direction:column;display:flex;width:100%;overflow:visible;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-style:normal;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77)}:host dt{padding-bottom:4px}:host dd{padding-top:0}:host dt,:host dd{flex-basis:100%}:host dt,:host dd{width:100%;margin-inline-start:0;-webkit-hyphens:auto;hyphens:auto;text-align:left;overflow-wrap:break-word}:host dt{font-weight:600}.duet-theme-turva :host dt{font-weight:700}:host dd{margin-left:auto}:host(.duet-list-striped) dt,:host(.duet-list-striped) dd{padding:16px}:host(.duet-list-striped) dt{padding-bottom:4px}:host(.duet-list-striped) dd{padding-top:0}:host(.duet-list-striped.duet-no-stacking) dt,:host(.duet-list-striped.duet-no-stacking) dd{padding:16px}:host(:not(.duet-list-striped)) dt,:host(:not(.duet-list-striped)) dd{padding:8px;padding-inline:0}:host(:not(.duet-list-striped)) dt{padding-bottom:4px}:host(:not(.duet-list-striped)) dd{padding-top:0}:host(:not(.duet-list-striped).duet-no-stacking) dt,:host(:not(.duet-list-striped).duet-no-stacking) dd{padding:8px;padding-inline:0}:host(.duet-p-0) dt,:host(.duet-p-0) dd{padding:0 !important}:host(.duet-list-mobile-center) dt,:host(.duet-list-mobile-center) dd{text-align:center}:host(.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)}:host(.duet-list-striped:nth-child(odd)) dt,:host(.duet-list-striped:nth-child(odd)) dd{background:rgb(245, 248, 250)}:host(.duet-list-striped.duet-theme-turva:nth-child(odd)) dt,:host(.duet-list-striped.duet-theme-turva:nth-child(odd)) dd{background:rgb(245, 247, 250)}:host(.duet-list-bordered){border-block-start:1px solid rgb(212, 223, 229)}:host(.duet-list-bordered:last-child){border-block-end:1px solid rgb(212, 223, 229)}:host(.duet-list-bordered.duet-theme-turva){border-block-start:1px solid rgb(222, 224, 228)}:host(.duet-list-bordered.duet-theme-turva:last-child){border-block-end:1px solid rgb(222, 224, 228)}:host(.duet-list-inner-bordered:not(:last-child)){border-block-end:1px solid rgb(212, 223, 229)}:host(.duet-list-inner-bordered.duet-theme-turva:not(:last-child)){border-block-end:1px solid rgb(222, 224, 228)}:host(.duet-no-stacking){flex-direction:row}:host(.duet-list-mobile-center.duet-no-stacking) dt,:host(.duet-list-mobile-center.duet-no-stacking) dd{text-align:left}:host(.duet-no-stacking.duet-list-width-30) dt{flex-basis:33%}:host(.duet-no-stacking.duet-list-width-30) dd{flex-basis:67%}:host(.duet-no-stacking.duet-list-width-50) dt{flex-basis:47%}:host(.duet-no-stacking.duet-list-width-50) dd{flex-basis:53%}:host(.duet-no-stacking.duet-list-width-70) dt{flex-basis:65%}:host(.duet-no-stacking.duet-list-width-70) dd{flex-basis:35%}:host(.duet-list-item-breakpoint-x-small){flex-direction:row}:host(.duet-list-item-breakpoint-x-small.duet-list-striped) dt,:host(.duet-list-item-breakpoint-x-small.duet-list-striped) dd{padding:16px}:host(.duet-list-item-breakpoint-x-small:not(.duet-list-striped)) dt,:host(.duet-list-item-breakpoint-x-small:not(.duet-list-striped)) dd{padding:8px;padding-inline:0}:host(.duet-list-item-breakpoint-x-small.duet-p-0) dt,:host(.duet-list-item-breakpoint-x-small.duet-p-0) dd{padding:0 !important}:host(.duet-list-item-breakpoint-x-small.duet-list-mobile-center) dt,:host(.duet-list-item-breakpoint-x-small.duet-list-mobile-center) dd{text-align:left}:host(.duet-list-item-breakpoint-x-small.duet-list-width-30) dt{flex-basis:33%}:host(.duet-list-item-breakpoint-x-small.duet-list-width-30) dd{flex-basis:67%}:host(.duet-list-item-breakpoint-x-small.duet-list-width-50) dt{flex-basis:47%}:host(.duet-list-item-breakpoint-x-small.duet-list-width-50) dd{flex-basis:53%}:host(.duet-list-item-breakpoint-x-small.duet-list-width-70) dt{flex-basis:65%}:host(.duet-list-item-breakpoint-x-small.duet-list-width-70) dd{flex-basis:35%}@media (max-width: 22.5em){:host(.duet-list-item-breakpoint-x-small){flex-direction:column}:host(.duet-list-item-breakpoint-x-small) dt{padding-bottom:4px}:host(.duet-list-item-breakpoint-x-small) dd{padding-top:0}:host(.duet-list-item-breakpoint-x-small.duet-list-striped) dt,:host(.duet-list-item-breakpoint-x-small.duet-list-striped) dd{padding:16px}:host(.duet-list-item-breakpoint-x-small.duet-list-striped) dt{padding-bottom:4px}:host(.duet-list-item-breakpoint-x-small.duet-list-striped) dd{padding-top:0}:host(.duet-list-item-breakpoint-x-small:not(.duet-list-striped)) dt,:host(.duet-list-item-breakpoint-x-small:not(.duet-list-striped)) dd{padding:8px;padding-inline:0}:host(.duet-list-item-breakpoint-x-small:not(.duet-list-striped)) dt{padding-bottom:4px}:host(.duet-list-item-breakpoint-x-small:not(.duet-list-striped)) dd{padding-top:0}:host(.duet-list-item-breakpoint-x-small.duet-p-0) dt,:host(.duet-list-item-breakpoint-x-small.duet-p-0) dd{padding:0 !important}:host(.duet-list-item-breakpoint-x-small.duet-list-mobile-center) dt,:host(.duet-list-item-breakpoint-x-small.duet-list-mobile-center) dd{text-align:center}:host(.duet-list-item-breakpoint-x-small.duet-list-width-30) dt,:host(.duet-list-item-breakpoint-x-small.duet-list-width-30) dd{flex-basis:100%}:host(.duet-list-item-breakpoint-x-small.duet-list-width-50) dt,:host(.duet-list-item-breakpoint-x-small.duet-list-width-50) dd{flex-basis:100%}:host(.duet-list-item-breakpoint-x-small.duet-list-width-70) dt,:host(.duet-list-item-breakpoint-x-small.duet-list-width-70) dd{flex-basis:100%}}@media (min-width: 36em){:host(.duet-list-item-breakpoint-small){flex-direction:row}:host(.duet-list-item-breakpoint-small.duet-list-striped) dt,:host(.duet-list-item-breakpoint-small.duet-list-striped) dd{padding:16px}:host(.duet-list-item-breakpoint-small:not(.duet-list-striped)) dt,:host(.duet-list-item-breakpoint-small:not(.duet-list-striped)) dd{padding:8px;padding-inline:0}:host(.duet-list-item-breakpoint-small.duet-p-0) dt,:host(.duet-list-item-breakpoint-small.duet-p-0) dd{padding:0 !important}:host(.duet-list-item-breakpoint-small.duet-list-mobile-center) dt,:host(.duet-list-item-breakpoint-small.duet-list-mobile-center) dd{text-align:left}:host(.duet-list-item-breakpoint-small.duet-list-width-30) dt{flex-basis:33%}:host(.duet-list-item-breakpoint-small.duet-list-width-30) dd{flex-basis:67%}:host(.duet-list-item-breakpoint-small.duet-list-width-50) dt{flex-basis:47%}:host(.duet-list-item-breakpoint-small.duet-list-width-50) dd{flex-basis:53%}:host(.duet-list-item-breakpoint-small.duet-list-width-70) dt{flex-basis:65%}:host(.duet-list-item-breakpoint-small.duet-list-width-70) dd{flex-basis:35%}}@media (min-width: 48em){:host(.duet-list-item-breakpoint-medium){flex-direction:row}:host(.duet-list-item-breakpoint-medium.duet-list-striped) dt,:host(.duet-list-item-breakpoint-medium.duet-list-striped) dd{padding:16px}:host(.duet-list-item-breakpoint-medium:not(.duet-list-striped)) dt,:host(.duet-list-item-breakpoint-medium:not(.duet-list-striped)) dd{padding:8px;padding-inline:0}:host(.duet-list-item-breakpoint-medium.duet-p-0) dt,:host(.duet-list-item-breakpoint-medium.duet-p-0) dd{padding:0 !important}:host(.duet-list-item-breakpoint-medium.duet-list-mobile-center) dt,:host(.duet-list-item-breakpoint-medium.duet-list-mobile-center) dd{text-align:left}:host(.duet-list-item-breakpoint-medium.duet-list-width-30) dt{flex-basis:33%}:host(.duet-list-item-breakpoint-medium.duet-list-width-30) dd{flex-basis:67%}:host(.duet-list-item-breakpoint-medium.duet-list-width-50) dt{flex-basis:47%}:host(.duet-list-item-breakpoint-medium.duet-list-width-50) dd{flex-basis:53%}:host(.duet-list-item-breakpoint-medium.duet-list-width-70) dt{flex-basis:65%}:host(.duet-list-item-breakpoint-medium.duet-list-width-70) dd{flex-basis:35%}}@media (min-width: 62em){:host(.duet-list-item-breakpoint-large){flex-direction:row}:host(.duet-list-item-breakpoint-large.duet-list-striped) dt,:host(.duet-list-item-breakpoint-large.duet-list-striped) dd{padding:16px}:host(.duet-list-item-breakpoint-large:not(.duet-list-striped)) dt,:host(.duet-list-item-breakpoint-large:not(.duet-list-striped)) dd{padding:8px;padding-inline:0}:host(.duet-list-item-breakpoint-large.duet-p-0) dt,:host(.duet-list-item-breakpoint-large.duet-p-0) dd{padding:0 !important}:host(.duet-list-item-breakpoint-large.duet-list-mobile-center) dt,:host(.duet-list-item-breakpoint-large.duet-list-mobile-center) dd{text-align:left}:host(.duet-list-item-breakpoint-large.duet-list-width-30) dt{flex-basis:33%}:host(.duet-list-item-breakpoint-large.duet-list-width-30) dd{flex-basis:67%}:host(.duet-list-item-breakpoint-large.duet-list-width-50) dt{flex-basis:47%}:host(.duet-list-item-breakpoint-large.duet-list-width-50) dd{flex-basis:53%}:host(.duet-list-item-breakpoint-large.duet-list-width-70) dt{flex-basis:65%}:host(.duet-list-item-breakpoint-large.duet-list-width-70) dd{flex-basis:35%}}@media (min-width: 64.0625em){:host(.duet-list-item-breakpoint-x-large){flex-direction:row}:host(.duet-list-item-breakpoint-x-large.duet-list-striped) dt,:host(.duet-list-item-breakpoint-x-large.duet-list-striped) dd{padding:16px}:host(.duet-list-item-breakpoint-x-large:not(.duet-list-striped)) dt,:host(.duet-list-item-breakpoint-x-large:not(.duet-list-striped)) dd{padding:8px;padding-inline:0}:host(.duet-list-item-breakpoint-x-large.duet-p-0) dt,:host(.duet-list-item-breakpoint-x-large.duet-p-0) dd{padding:0 !important}:host(.duet-list-item-breakpoint-x-large.duet-list-mobile-center) dt,:host(.duet-list-item-breakpoint-x-large.duet-list-mobile-center) dd{text-align:left}:host(.duet-list-item-breakpoint-x-large.duet-list-width-30) dt{flex-basis:33%}:host(.duet-list-item-breakpoint-x-large.duet-list-width-30) dd{flex-basis:67%}:host(.duet-list-item-breakpoint-x-large.duet-list-width-50) dt{flex-basis:47%}:host(.duet-list-item-breakpoint-x-large.duet-list-width-50) dd{flex-basis:53%}:host(.duet-list-item-breakpoint-x-large.duet-list-width-70) dt{flex-basis:65%}:host(.duet-list-item-breakpoint-x-large.duet-list-width-70) dd{flex-basis:35%}}:host(.duet-theme-turva2.duet-theme-turva){color:#172a3b}:host(.duet-theme-turva2.duet-list-striped.duet-theme-turva:nth-child(odd)) dt,:host(.duet-theme-turva2.duet-list-striped.duet-theme-turva:nth-child(odd)) dd{background:#f5f6f7}:host(.duet-theme-turva2.duet-list-bordered.duet-theme-turva){border-block-start:1px solid #d4dde2}:host(.duet-theme-turva2.duet-list-bordered.duet-theme-turva:last-child){border-block-end:1px solid #d4dde2}:host(.duet-theme-turva2.duet-list-inner-bordered.duet-theme-turva:not(:last-child)){border-block-end:1px solid #d4dde2}';var m=u;var p=t("duet_list_item",function(){function t(t){e(this,t);this.theme="";this.responsive=false;this.breakpoint="small"}t.prototype.componentWillLoad=function(){l(this)};t.prototype.render=function(){return i(s,{key:"6c13dd9dfcc83c4c21a09accb3d1263e51ef7685",class:{"duet-theme-turva":this.theme==="turva","duet-no-stacking":!this.responsive,"duet-list-item-breakpoint-x-small":this.breakpoint==="x-small","duet-list-item-breakpoint-small":this.breakpoint==="small","duet-list-item-breakpoint-medium":this.breakpoint==="medium","duet-list-item-breakpoint-large":this.breakpoint==="large","duet-list-item-breakpoint-x-large":this.breakpoint==="x-large"}},i("dt",{key:"db16f474643cbb2a074de19ed7a4a4ccfb302e4f"},i("slot",{key:"1ca0f7fe8ac90882c0835df5e8d907eeb743fb47",name:"label"})),i("dd",{key:"f4d207347f0995fe1188503a13b45adcacc39ad5"},i("slot",{key:"dbbcde25c28d4c8f5019c5a6ff90af3e3254965b",name:"value"})))};Object.defineProperty(t.prototype,"element",{get:function(){return d(this)},enumerable:false,configurable:true});return t}());p.style=m}}}));
4
+ */System.register(["./p-adeb1555.system.js","./p-d80ae90e.system.js","./p-d997b605.system.js"],(function(t){"use strict";var e,i,d,s,l,o;return{setters:[function(t){e=t.r;i=t.h;d=t.g;s=t.H},function(t){l=t.i},function(t){o=t.w}],execute:function(){var a="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-list-component{margin-bottom:16px !important;width:100%}.duet-list-component.duet-p-0{padding:0 !important}.duet-list-component.duet-m-0{margin:0 !important}";var n=a;var r=t("duet_list",function(){function t(t){e(this,t);this.theme="";this.margin="auto";this.padding="auto";this.mobile="left";this.breakpoint="small";this.variation="default";this.labelWidth="30";this.responsive=true}t.prototype.componentWillLoad=function(){l(this)};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e=this;return __generator(this,(function(i){t=this.element;this.mutationO=o(t,"duet-list-item",(function(){e.updateListItems()}));this.updateListItems();return[2]}))}))};t.prototype.disconnectedCallback=function(){if(this.mutationO){this.mutationO.disconnect();this.mutationO=undefined}};t.prototype.toggleClass=function(t,e,i){if(i){t.classList.add(e)}else{t.classList.remove(e)}};t.prototype.updateListItems=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e=this;return __generator(this,(function(i){t=Array.from(this.element.querySelectorAll("duet-list-item"));t.forEach((function(t){t.responsive=e.responsive;t.breakpoint=e.responsive?e.breakpoint||"small":undefined;t.classList.add("duet-list-width-".concat(e.labelWidth));t.classList.add("duet-list-variation-".concat(e.variation));e.toggleClass(t,"duet-p-0",e.padding==="none");e.toggleClass(t,"duet-list-mobile-center",e.mobile==="center");e.toggleClass(t,"duet-list-striped",e.variation==="striped");e.toggleClass(t,"duet-list-bordered",e.variation==="bordered");e.toggleClass(t,"duet-list-inner-bordered",e.variation==="inner-bordered");e.toggleClass(t,"duet-theme-turva",e.theme==="turva")}));return[2]}))}))};t.prototype.render=function(){return i("dl",{key:"c812a1b444858b533f9c34f809cea2c9ba67d841",class:{"duet-list-component":true,"duet-m-0":this.margin==="none"}},i("slot",{key:"177fb7013132331584b126edb4b11cca3723bfc9"}))};Object.defineProperty(t.prototype,"element",{get:function(){return d(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{theme:["updateListItems"],padding:["updateListItems"],mobile:["updateListItems"],responsive:["updateListItems"],breakpoint:["updateListItems"],variation:["updateListItems"],labelWidth:["updateListItems"]}},enumerable:false,configurable:true});return t}());r.style=n;var u='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;flex-direction:column;display:flex;width:100%;overflow:visible;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-style:normal;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77)}:host dt{padding-bottom:4px}:host dd{padding-top:0}:host dt,:host dd{flex-basis:100%}:host dt,:host dd{width:100%;margin-inline-start:0;-webkit-hyphens:auto;hyphens:auto;text-align:left;overflow-wrap:break-word}:host dt{font-weight:600}.duet-theme-turva :host dt{font-weight:700}:host dd{margin-left:auto}:host(.duet-list-striped) dt,:host(.duet-list-striped) dd{padding:16px}:host(.duet-list-striped) dt{padding-bottom:4px}:host(.duet-list-striped) dd{padding-top:0}:host(.duet-list-striped.duet-no-stacking) dt,:host(.duet-list-striped.duet-no-stacking) dd{padding:16px}:host(:not(.duet-list-striped)) dt,:host(:not(.duet-list-striped)) dd{padding:8px;padding-inline:0}:host(:not(.duet-list-striped)) dt{padding-bottom:4px}:host(:not(.duet-list-striped)) dd{padding-top:0}:host(:not(.duet-list-striped).duet-no-stacking) dt,:host(:not(.duet-list-striped).duet-no-stacking) dd{padding:8px;padding-inline:0}:host(.duet-p-0) dt,:host(.duet-p-0) dd{padding:0 !important}:host(.duet-list-mobile-center) dt,:host(.duet-list-mobile-center) dd{text-align:center}:host(.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)}:host(.duet-list-striped:nth-child(odd)) dt,:host(.duet-list-striped:nth-child(odd)) dd{background:rgb(245, 248, 250)}:host(.duet-list-striped.duet-theme-turva:nth-child(odd)) dt,:host(.duet-list-striped.duet-theme-turva:nth-child(odd)) dd{background:rgb(245, 247, 250)}:host(.duet-list-bordered){border-block-start:1px solid rgb(212, 223, 229)}:host(.duet-list-bordered:last-child){border-block-end:1px solid rgb(212, 223, 229)}:host(.duet-list-bordered.duet-theme-turva){border-block-start:1px solid rgb(222, 224, 228)}:host(.duet-list-bordered.duet-theme-turva:last-child){border-block-end:1px solid rgb(222, 224, 228)}:host(.duet-list-inner-bordered:not(:last-child)){border-block-end:1px solid rgb(212, 223, 229)}:host(.duet-list-inner-bordered.duet-theme-turva:not(:last-child)){border-block-end:1px solid rgb(222, 224, 228)}:host(.duet-no-stacking){flex-direction:row}:host(.duet-list-mobile-center.duet-no-stacking) dt,:host(.duet-list-mobile-center.duet-no-stacking) dd{text-align:left}:host(.duet-no-stacking.duet-list-width-30) dt{flex-basis:33%}:host(.duet-no-stacking.duet-list-width-30) dd{flex-basis:67%}:host(.duet-no-stacking.duet-list-width-50) dt{flex-basis:47%}:host(.duet-no-stacking.duet-list-width-50) dd{flex-basis:53%}:host(.duet-no-stacking.duet-list-width-70) dt{flex-basis:65%}:host(.duet-no-stacking.duet-list-width-70) dd{flex-basis:35%}:host(.duet-list-item-breakpoint-x-small){flex-direction:row}:host(.duet-list-item-breakpoint-x-small.duet-list-striped) dt,:host(.duet-list-item-breakpoint-x-small.duet-list-striped) dd{padding:16px}:host(.duet-list-item-breakpoint-x-small:not(.duet-list-striped)) dt,:host(.duet-list-item-breakpoint-x-small:not(.duet-list-striped)) dd{padding:8px;padding-inline:0}:host(.duet-list-item-breakpoint-x-small.duet-p-0) dt,:host(.duet-list-item-breakpoint-x-small.duet-p-0) dd{padding:0 !important}:host(.duet-list-item-breakpoint-x-small.duet-list-mobile-center) dt,:host(.duet-list-item-breakpoint-x-small.duet-list-mobile-center) dd{text-align:left}:host(.duet-list-item-breakpoint-x-small.duet-list-width-30) dt{flex-basis:33%}:host(.duet-list-item-breakpoint-x-small.duet-list-width-30) dd{flex-basis:67%}:host(.duet-list-item-breakpoint-x-small.duet-list-width-50) dt{flex-basis:47%}:host(.duet-list-item-breakpoint-x-small.duet-list-width-50) dd{flex-basis:53%}:host(.duet-list-item-breakpoint-x-small.duet-list-width-70) dt{flex-basis:65%}:host(.duet-list-item-breakpoint-x-small.duet-list-width-70) dd{flex-basis:35%}@media (max-width: 22.5em){:host(.duet-list-item-breakpoint-x-small){flex-direction:column}:host(.duet-list-item-breakpoint-x-small) dt{padding-bottom:4px}:host(.duet-list-item-breakpoint-x-small) dd{padding-top:0}:host(.duet-list-item-breakpoint-x-small.duet-list-striped) dt,:host(.duet-list-item-breakpoint-x-small.duet-list-striped) dd{padding:16px}:host(.duet-list-item-breakpoint-x-small.duet-list-striped) dt{padding-bottom:4px}:host(.duet-list-item-breakpoint-x-small.duet-list-striped) dd{padding-top:0}:host(.duet-list-item-breakpoint-x-small:not(.duet-list-striped)) dt,:host(.duet-list-item-breakpoint-x-small:not(.duet-list-striped)) dd{padding:8px;padding-inline:0}:host(.duet-list-item-breakpoint-x-small:not(.duet-list-striped)) dt{padding-bottom:4px}:host(.duet-list-item-breakpoint-x-small:not(.duet-list-striped)) dd{padding-top:0}:host(.duet-list-item-breakpoint-x-small.duet-p-0) dt,:host(.duet-list-item-breakpoint-x-small.duet-p-0) dd{padding:0 !important}:host(.duet-list-item-breakpoint-x-small.duet-list-mobile-center) dt,:host(.duet-list-item-breakpoint-x-small.duet-list-mobile-center) dd{text-align:center}:host(.duet-list-item-breakpoint-x-small.duet-list-width-30) dt,:host(.duet-list-item-breakpoint-x-small.duet-list-width-30) dd{flex-basis:100%}:host(.duet-list-item-breakpoint-x-small.duet-list-width-50) dt,:host(.duet-list-item-breakpoint-x-small.duet-list-width-50) dd{flex-basis:100%}:host(.duet-list-item-breakpoint-x-small.duet-list-width-70) dt,:host(.duet-list-item-breakpoint-x-small.duet-list-width-70) dd{flex-basis:100%}}@media (min-width: 36em){:host(.duet-list-item-breakpoint-small){flex-direction:row}:host(.duet-list-item-breakpoint-small.duet-list-striped) dt,:host(.duet-list-item-breakpoint-small.duet-list-striped) dd{padding:16px}:host(.duet-list-item-breakpoint-small:not(.duet-list-striped)) dt,:host(.duet-list-item-breakpoint-small:not(.duet-list-striped)) dd{padding:8px;padding-inline:0}:host(.duet-list-item-breakpoint-small.duet-p-0) dt,:host(.duet-list-item-breakpoint-small.duet-p-0) dd{padding:0 !important}:host(.duet-list-item-breakpoint-small.duet-list-mobile-center) dt,:host(.duet-list-item-breakpoint-small.duet-list-mobile-center) dd{text-align:left}:host(.duet-list-item-breakpoint-small.duet-list-width-30) dt{flex-basis:33%}:host(.duet-list-item-breakpoint-small.duet-list-width-30) dd{flex-basis:67%}:host(.duet-list-item-breakpoint-small.duet-list-width-50) dt{flex-basis:47%}:host(.duet-list-item-breakpoint-small.duet-list-width-50) dd{flex-basis:53%}:host(.duet-list-item-breakpoint-small.duet-list-width-70) dt{flex-basis:65%}:host(.duet-list-item-breakpoint-small.duet-list-width-70) dd{flex-basis:35%}}@media (min-width: 48em){:host(.duet-list-item-breakpoint-medium){flex-direction:row}:host(.duet-list-item-breakpoint-medium.duet-list-striped) dt,:host(.duet-list-item-breakpoint-medium.duet-list-striped) dd{padding:16px}:host(.duet-list-item-breakpoint-medium:not(.duet-list-striped)) dt,:host(.duet-list-item-breakpoint-medium:not(.duet-list-striped)) dd{padding:8px;padding-inline:0}:host(.duet-list-item-breakpoint-medium.duet-p-0) dt,:host(.duet-list-item-breakpoint-medium.duet-p-0) dd{padding:0 !important}:host(.duet-list-item-breakpoint-medium.duet-list-mobile-center) dt,:host(.duet-list-item-breakpoint-medium.duet-list-mobile-center) dd{text-align:left}:host(.duet-list-item-breakpoint-medium.duet-list-width-30) dt{flex-basis:33%}:host(.duet-list-item-breakpoint-medium.duet-list-width-30) dd{flex-basis:67%}:host(.duet-list-item-breakpoint-medium.duet-list-width-50) dt{flex-basis:47%}:host(.duet-list-item-breakpoint-medium.duet-list-width-50) dd{flex-basis:53%}:host(.duet-list-item-breakpoint-medium.duet-list-width-70) dt{flex-basis:65%}:host(.duet-list-item-breakpoint-medium.duet-list-width-70) dd{flex-basis:35%}}@media (min-width: 62em){:host(.duet-list-item-breakpoint-large){flex-direction:row}:host(.duet-list-item-breakpoint-large.duet-list-striped) dt,:host(.duet-list-item-breakpoint-large.duet-list-striped) dd{padding:16px}:host(.duet-list-item-breakpoint-large:not(.duet-list-striped)) dt,:host(.duet-list-item-breakpoint-large:not(.duet-list-striped)) dd{padding:8px;padding-inline:0}:host(.duet-list-item-breakpoint-large.duet-p-0) dt,:host(.duet-list-item-breakpoint-large.duet-p-0) dd{padding:0 !important}:host(.duet-list-item-breakpoint-large.duet-list-mobile-center) dt,:host(.duet-list-item-breakpoint-large.duet-list-mobile-center) dd{text-align:left}:host(.duet-list-item-breakpoint-large.duet-list-width-30) dt{flex-basis:33%}:host(.duet-list-item-breakpoint-large.duet-list-width-30) dd{flex-basis:67%}:host(.duet-list-item-breakpoint-large.duet-list-width-50) dt{flex-basis:47%}:host(.duet-list-item-breakpoint-large.duet-list-width-50) dd{flex-basis:53%}:host(.duet-list-item-breakpoint-large.duet-list-width-70) dt{flex-basis:65%}:host(.duet-list-item-breakpoint-large.duet-list-width-70) dd{flex-basis:35%}}@media (min-width: 64.0625em){:host(.duet-list-item-breakpoint-x-large){flex-direction:row}:host(.duet-list-item-breakpoint-x-large.duet-list-striped) dt,:host(.duet-list-item-breakpoint-x-large.duet-list-striped) dd{padding:16px}:host(.duet-list-item-breakpoint-x-large:not(.duet-list-striped)) dt,:host(.duet-list-item-breakpoint-x-large:not(.duet-list-striped)) dd{padding:8px;padding-inline:0}:host(.duet-list-item-breakpoint-x-large.duet-p-0) dt,:host(.duet-list-item-breakpoint-x-large.duet-p-0) dd{padding:0 !important}:host(.duet-list-item-breakpoint-x-large.duet-list-mobile-center) dt,:host(.duet-list-item-breakpoint-x-large.duet-list-mobile-center) dd{text-align:left}:host(.duet-list-item-breakpoint-x-large.duet-list-width-30) dt{flex-basis:33%}:host(.duet-list-item-breakpoint-x-large.duet-list-width-30) dd{flex-basis:67%}:host(.duet-list-item-breakpoint-x-large.duet-list-width-50) dt{flex-basis:47%}:host(.duet-list-item-breakpoint-x-large.duet-list-width-50) dd{flex-basis:53%}:host(.duet-list-item-breakpoint-x-large.duet-list-width-70) dt{flex-basis:65%}:host(.duet-list-item-breakpoint-x-large.duet-list-width-70) dd{flex-basis:35%}}:host(.duet-theme-turva2.duet-theme-turva){color:#172a3b}:host(.duet-theme-turva2.duet-list-striped.duet-theme-turva:nth-child(odd)) dt,:host(.duet-theme-turva2.duet-list-striped.duet-theme-turva:nth-child(odd)) dd{background:#f5f6f7}:host(.duet-theme-turva2.duet-list-bordered.duet-theme-turva){border-block-start:1px solid #d4dde2}:host(.duet-theme-turva2.duet-list-bordered.duet-theme-turva:last-child){border-block-end:1px solid #d4dde2}:host(.duet-theme-turva2.duet-list-inner-bordered.duet-theme-turva:not(:last-child)){border-block-end:1px solid #d4dde2}';var m=u;var p=t("duet_list_item",function(){function t(t){e(this,t);this.theme="";this.responsive=false;this.breakpoint="small"}t.prototype.componentWillLoad=function(){l(this)};t.prototype.render=function(){return i(s,{key:"6c13dd9dfcc83c4c21a09accb3d1263e51ef7685",class:{"duet-theme-turva":this.theme==="turva","duet-no-stacking":!this.responsive,"duet-list-item-breakpoint-x-small":this.breakpoint==="x-small","duet-list-item-breakpoint-small":this.breakpoint==="small","duet-list-item-breakpoint-medium":this.breakpoint==="medium","duet-list-item-breakpoint-large":this.breakpoint==="large","duet-list-item-breakpoint-x-large":this.breakpoint==="x-large"}},i("dt",{key:"db16f474643cbb2a074de19ed7a4a4ccfb302e4f"},i("slot",{key:"1ca0f7fe8ac90882c0835df5e8d907eeb743fb47",name:"label"})),i("dd",{key:"f4d207347f0995fe1188503a13b45adcacc39ad5"},i("slot",{key:"dbbcde25c28d4c8f5019c5a6ff90af3e3254965b",name:"value"})))};Object.defineProperty(t.prototype,"element",{get:function(){return d(this)},enumerable:false,configurable:true});return t}());p.style=m}}}));
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,i,a){function d(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function n(e){try{s(a.next(e))}catch(e){o(e)}}function r(e){try{s(a["throw"](e))}catch(e){o(e)}}function s(e){e.done?i(e.value):d(e.value).then(n,r)}s((a=a.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,d,o,n;return n={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function r(e){return function(t){return s([e,t])}}function s(r){if(a)throw new TypeError("Generator is already executing.");while(n&&(n=0,r[0]&&(i=0)),i)try{if(a=1,d&&(o=r[0]&2?d["return"]:r[0]?d["throw"]||((o=d["return"])&&o.call(d),0):d.next)&&!(o=o.call(d,r[1])).done)return o;if(d=0,o)r=[r[0]&2,o.value];switch(r[0]){case 0:case 1:o=r;break;case 4:i.label++;return{value:r[1],done:false};case 5:i.label++;d=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!o||r[1]>o[0]&&r[1]<o[3])){i.label=r[1];break}if(r[0]===6&&i.label<o[1]){i.label=o[1];o=r;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(r);break}if(o[2])i.ops.pop();i.trys.pop();continue}r=t.call(e,i)}catch(e){r=[6,e];d=0}finally{a=o=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register(["./p-0e5663a5.system.js","./p-49957220.system.js","./p-260f26f5.system.js","./p-76332920.system.js","./p-85f8ab4a.system.js","./p-752fa0fc.system.js","./p-d16254bc.system.js","./p-d727b6a0.system.js","./p-b1f33063.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,i,a,d,o,n,r,s,u,l,m,c,h,f,p,b;return{setters:[function(e){t=e.r;i=e.c;a=e.h;d=e.g},function(e){o=e.d;n=e.e},function(e){r=e.i},function(e){s=e.a},function(e){u=e.f},function(e){l=e.f},function(e){m=e.a;c=e.g;h=e.c;f=e.d},function(e){p=e.h},function(e){b=e.T},function(){}],execute:function(){var g='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-modal-container{position:fixed;top:0;right:0;bottom:0;left:0;z-index:900;max-height:100vh;overflow-y:auto;visibility:hidden;opacity:0;transition:300ms ease;transition-delay:200ms}.duet-modal-container.duet-modal-active{visibility:visible;opacity:1;transition:300ms ease;transition-delay:0s}.duet-modal-container.duet-disable-transitions{transition:none}.duet-modal-container.duet-modal-slide-up{overflow:hidden}::slotted(img){width:100%}.duet-modal-inner{display:flex;align-items:center;width:100%;min-height:100%;padding:20px 16px}@media (min-width: 36em){.duet-modal-inner{padding:48px 16px}}.duet-modal-inner.duet-modal-slide-up{align-items:stretch;justify-content:center;height:100%;padding-top:48px;padding-bottom:0;overflow:hidden}.duet-modal-inner.duet-modal-slide-up::after{position:absolute;bottom:0;z-index:300;display:block;width:100%;max-width:686px;height:48px;margin:auto;pointer-events:none;content:"";background:linear-gradient(rgba(255, 255, 255, 0), rgb(255, 255, 255))}.duet-modal-inner.duet-modal-slide-up::after.small{max-width:545px}.duet-modal-inner.duet-modal-slide-up::after.large{max-width:100%}@media (min-width: 36em){.duet-modal-inner.duet-modal-slide-up::after.large{max-width:1110px}}@media (max-width: 35.9375em){.duet-modal-inner.large{padding-right:0;padding-left:0}.duet-modal-inner.duet-modal-slide-up{padding:0;padding-top:28px}}.duet-modal{position:relative;width:100%;max-width:686px;margin:auto;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-weight:400;font-variant-numeric:tabular-nums;line-height:1.5;color:rgb(8, 42, 77);background:rgb(255, 255, 255);border-radius:16px;opacity:0;transition:300ms ease;transition-delay:0ms;transform:scale(0.96)}.duet-theme-turva .duet-modal{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-modal-active .duet-modal{opacity:1;transition:300ms ease;transition-delay:200ms;transform:none}.duet-modal-active .duet-modal.slide-up{top:0;transition:top 600ms ease}.duet-modal.loader{text-align:center;background:transparent}.duet-modal.loader .duet-modal-close{display:none}.duet-modal.loader .duet-modal-spinner{position:relative;height:120px}.duet-modal.loader .duet-modal-inner-slot-default{position:relative;backdrop-filter:blur(10px)}.duet-modal.loader duet-paragraph.duet-loader-message{position:absolute;opacity:0;transition:all 300ms ease;transform:scaleY(0);transform-origin:top}.duet-modal.loader duet-paragraph.duet-loader-message.show{opacity:1;transform:scaleY(1);transform-origin:bottom}.duet-modal.loader duet-paragraph.duet-loader-message.show::part(duet-paragraph){backdrop-filter:blur(10px)}.duet-disable-transitions .duet-modal{transition:none}.duet-modal.small{max-width:545px}.duet-modal.large{max-width:100%}@media (min-width: 36em){.duet-modal.large{max-width:1110px}}.duet-modal.slide-up{top:100vh;margin:0;overflow:auto;border-radius:16px 16px 0 0;opacity:1;transition:top 600ms ease}.duet-modal.duet-modal-has-sticky-header{height:100%;overflow:auto}.duet-modal:focus{outline:0}.duet-modal-body,.duet-modal-sticky-header{width:100%;padding:36px 28px}.duet-modal-body.duet-modal-gutter-none,.duet-modal-sticky-header.duet-modal-gutter-none{padding:0 !important}.duet-modal-body.duet-modal-gutter-small,.duet-modal-sticky-header.duet-modal-gutter-small{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}@media (max-width: 22.5em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 28px}}@media (max-width: 35.9375em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}}@media (min-width: 36em){.duet-modal-body,.duet-modal-sticky-header{padding:36px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:28px 72px}}@media (min-width: 48em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 72px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:36px 72px}}@media (min-width: 76.25em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 48px 48px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 94px}.small .duet-modal-body,.small .duet-modal-sticky-header{padding:36px 48px}}.duet-modal-header{text-align:center}.duet-modal-sticky-header{position:sticky;top:0;z-index:300;display:block;padding-bottom:12px;text-align:left;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229);border-radius:16px 16px 0 0}.duet-theme-turva .duet-modal-sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-modal-close{position:absolute;top:8px;right:8px}.duet-modal-heading{width:100%;padding-right:60px;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-style:normal;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);text-decoration:none;text-overflow:ellipsis;letter-spacing:-0.01rem;white-space:nowrap}.duet-modal-heading.duet-p-0{padding:0 !important}.duet-modal-heading.duet-m-0{margin:0 !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-modal{color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .duet-modal-sticky-header{background:#fdf7f2;border-bottom:1px solid #d4dde2}';var y=g;var v=600;var x=e("duet_modal",function(){function e(e){t(this,e);this.duetOpen=i(this,"duetOpen",7);this.duetClose=i(this,"duetClose",7);this.duetCloseComplete=i(this,"duetCloseComplete",7);this.duetBeforeClose=i(this,"duetBeforeClose",7);var a,d;this.hasStickyHeader=false;this.isAndroidDevice=((d=(a=navigator===null||navigator===void 0?void 0:navigator.userAgent)===null||a===void 0?void 0:a.toLowerCase())===null||d===void 0?void 0:d.indexOf("android"))>-1||null;this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(navigator===null||navigator===void 0?void 0:navigator.userAgent);this.accessibleLoaderAnnouncementDefaults=s;this.accessibleCloseLabelDefaults={fi:"Sulje ikkuna",sv:"Stäng fönstret",en:"Close the dialog"};this.handleAndroidResizeEvents=function(){if(document.activeElement.tagName=="INPUT"){window.setTimeout((function(){var e;try{(e=document===null||document===void 0?void 0:document.activeElement)===null||e===void 0?void 0:e.scrollIntoViewIfNeeded(true)}catch(e){}}),100)}};this.open=false;this.language=m();this.accessibleCloseLabel=c(this.accessibleCloseLabelDefaults,this.language);this.accessibleLoaderAnnouncement=c(this.accessibleLoaderAnnouncementDefaults,this.language);this.size="medium";this.accessibleDescribedBy=undefined;this.accessibleLabelledBy=undefined;this.accessibleLabel=undefined;this.accessibleDetails=undefined;this.accessibleDescription=undefined;this.variation="default";this.gutterSize="medium";this.theme="";this.heading="";this.headingLevel="h3";this.headingVisualLevel=undefined;this.icon="";this.color="";this.active=false;this.closeOnBlur=false}e.prototype.openChanged=function(){var e=this;if(this.open){if(this.modalEl&&this.modalEl.scrollTop){this.modalEl.scrollTop=0}this.focusedElBeforeOpen=document.activeElement;o(this.variation==="slide-up"?this.modalContentEl:this.modalEl,{reserveScrollBarGap:true});this.teleport.makeSiblingsInert();this.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((function(e){return e.remove()}));setTimeout((function(){if(e.variation==="loader"){e.addMessage(e.accessibleLoaderAnnouncement,false)}else{if(e.isAndroidDevice){e.modalEl.focus()}else{e.buttonEl.setFocus()}}}),v);setTimeout((function(){e.modalEl.classList.add("duet-disable-transitions")}),v+200);if(this.isAndroidDevice){window.addEventListener("resize",this.handleAndroidResizeEvents)}this.duetOpen.emit()}else{this.modalEl.classList.remove("duet-disable-transitions");this.modalEl.addEventListener("transitionend",(function(){return e.duetCloseComplete.emit()}),{once:true});n(this.variation==="slide-up"?this.modalContentEl:this.modalEl);this.duetClose.emit();this.teleport.removeInertFromSiblings();setTimeout((function(){u(e.focusedElBeforeOpen)}),v);if(this.isAndroidDevice){window.removeEventListener("resize",this.handleAndroidResizeEvents)}}};e.prototype.activeChanged=function(){this.open=this.active};e.prototype.componentWillLoad=function(){this.hasStickyHeader=p(this.element,"sticky-header");r(this)};e.prototype.componentDidLoad=function(){if(this.active){this.open=true;this.modalEl.classList.add("duet-disable-transitions")}};e.prototype.connectedCallback=function(){if(!this.teleport){this.teleport=new b(this.element)}if(this.teleport){this.teleport.activate()}h(this,[{prop:"accessibleCloseLabel",defaults:"accessibleCloseLabelDefaults"},{prop:"accessibleLoaderAnnouncement",defaults:"accessibleLoaderAnnouncementDefaults"}])};e.prototype.disconnectedCallback=function(){f(this);if(this.modalEl){n(this.modalEl)}};e.prototype.handleKeyUp=function(e){if(this.open){if(l(e)){this.closeModal(e)}}};e.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.open=true;return[2]}))}))};e.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.open=false;return[2]}))}))};e.prototype.scrollToTop=function(){return __awaiter(this,arguments,void 0,(function(e){var t,i,a,d;if(e===void 0){e=true}return __generator(this,(function(o){i=e?"smooth":"auto";if(this.variation==="slide-up"){a=((t=this.modalEl.querySelector(".duet-modal-sticky-header"))===null||t===void 0?void 0:t.clientHeight)||0;d=this.modalEl.querySelector(".duet-modal-body").computedStyleMap().get("padding-top");this.slotContainerEl.style.scrollMarginTop="".concat(a+d.value,"px");this.slotContainerEl.scrollIntoView({behavior:i})}else{this.modalEl.querySelector(".duet-modal-body").scrollIntoView({behavior:i})}return[2]}))}))};e.prototype.addMessage=function(e){return __awaiter(this,arguments,void 0,(function(e,t){var i;var a=this;if(t===void 0){t=true}return __generator(this,(function(d){i=document.createElement(t?"duet-paragraph":"duet-visually-hidden");i.textContent=e;i.classList.add("duet-loader-message");if(t){setTimeout((function(){a.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((function(e){return e.classList.remove("show")}));i.classList.add("show")}),10)}this.slotContainerEl.appendChild(i);return[2]}))}))};e.prototype.closeModal=function(e){var t=this;this.duetBeforeClose.emit({originalEvent:e,component:"duet-modal"});if(!e.defaultPrevented){setTimeout((function(){t.hide()}),1)}};e.prototype.render=function(){var e,t;var i=this;var d,o;var n="primary";var r="secondary";var s=a("div",{key:"675dc50327ab1e0f8033a2befcdf37cd4d3e0bf2",class:"duet-modal-close"},a("duet-button",{key:"4184913dd9b92a9b95f1d5e773800766530b97cf",ref:function(e){return i.buttonEl=e},variation:"plain",accessibleLabel:this.accessibleCloseLabel,color:r,iconSize:"large",icon:"navigation-close",iconOnly:true,margin:"none",theme:this.theme,onClick:function(e){return i.closeModal(e)},fixed:true}));if(this.theme==="turva"){n="primary-turva";r="secondary-turva"}return a("div",{key:"0751e3ddbaa09c8c1abc7986e3fabd97dba82be6",ref:function(e){return i.modalEl=e},"aria-label":(d=this.accessibleLabel)!==null&&d!==void 0?d:this.heading,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-describedby":this.accessibleDescribedBy,role:this.variation==="loader"?"alert":"dialog","aria-modal":this.isSafariBrowser?false:true,tabindex:"-1",class:{"duet-modal-container":true,"duet-theme-turva":this.theme==="turva","duet-modal-active":this.open,"duet-modal-slide-up":this.variation==="slide-up","duet-modal-has-sticky-header":this.hasStickyHeader}},a("duet-overlay",{key:"c1e924fd65887cf4378aab5b0a8a240ed48eb04a","z-index":"-1",visible:this.open,variation:this.variation==="loader"?"white":"default"}),a("div",{key:"a9e7ab02f299be796797683d7f1ba696bc5c884f",ref:function(e){return i.modalInnerEl=e},class:(e={"duet-modal-inner":true},e[this.size]=true,e["duet-modal-slide-up"]=this.variation==="slide-up",e),onClick:function(e){if(i.closeOnBlur){var t=e.target||e.srcElement;if(t===i.modalInnerEl){i.closeModal(e)}}}},a("div",{key:"86107c52f7cdb102f409586020bdeb116c041720",ref:function(e){return i.modalContentEl=e},class:(t={"duet-modal":true,"duet-modal-has-sticky-header":this.hasStickyHeader},t[this.size]=true,t[this.variation]=true,t)},this.gutterSize!=="none"&&!this.hasStickyHeader&&a("duet-spacer",{key:"c728a3caf6df68ed0c97baf1425c2ddab6a98f5b"}),this.hasStickyHeader?a("div",{class:"duet-modal-sticky-header"},s,a("slot",{name:"sticky-header"})):s,a("div",{key:"36b15d0c3595fdcecc6f14abb3578eefef74a8c9",class:{"duet-modal-body":true,"duet-modal-gutter-none":this.gutterSize==="none","duet-modal-gutter-small":this.gutterSize==="small","duet-modal-gutter-medium":this.gutterSize==="medium","duet-modal-gutter-large":this.gutterSize==="large"}},a("div",{key:"5dfb5b08e6593777e82f58c9a8d4db36cd3efbbc",class:"duet-modal-header"},a("span",{key:"0a95f7b53f47eb9e75ea99a007b0951b9a0fe11a",class:"duet-modal-inner-slot-top"},a("slot",{key:"56cbb6d090f309f66c7e79f90b3b8b4920501fca",name:"top"})),this.icon&&a("duet-icon",{key:"1918983d8ba93e09a80ab19f9dd2d5d88b9c483e",name:this.icon,size:"xx-large",color:this.color||n}),this.heading&&a("duet-heading",{key:"7e77994203cb473aa15b6e7356660278bad02d57","visual-level":(o=this.headingVisualLevel)!==null&&o!==void 0?o:this.headingLevel,level:this.headingLevel,theme:this.theme},this.heading)),this.variation==="loader"&&a("div",{key:"cb74816a66ac5eb67938c8a4358d0ecb2f7769f3",class:"duet-modal-spinner"},a("duet-spinner",{key:"70156c240cc4d32e660349992be704be48d55c54",size:"large",color:"primary"})),a("div",{key:"7d20cd4b16628ed66118f41c9f2cb626cb87fd6b",class:"duet-modal-inner-slot-default",ref:function(e){return i.slotContainerEl=e},"aria-live":this.variation==="loader"?"assertive":"off"},a("slot",{key:"229d35cca36167acf3d262376b3d11a6473d5635"}))))))};Object.defineProperty(e.prototype,"element",{get:function(){return d(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{open:["openChanged"],active:["activeChanged"]}},enumerable:false,configurable:true});return e}());x.style=y}}}));
4
+ */System.register(["./p-adeb1555.system.js","./p-49957220.system.js","./p-d80ae90e.system.js","./p-76332920.system.js","./p-dff0867d.system.js","./p-752fa0fc.system.js","./p-61e21220.system.js","./p-e50a2f96.system.js","./p-b1f33063.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,i,a,d,o,n,r,s,u,l,m,c,h,f,p,b;return{setters:[function(e){t=e.r;i=e.c;a=e.h;d=e.g},function(e){o=e.d;n=e.e},function(e){r=e.i},function(e){s=e.a},function(e){u=e.f},function(e){l=e.f},function(e){m=e.a;c=e.g;h=e.c;f=e.d},function(e){p=e.h},function(e){b=e.T},function(){}],execute:function(){var g='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-modal-container{position:fixed;top:0;right:0;bottom:0;left:0;z-index:900;max-height:100vh;overflow-y:auto;visibility:hidden;opacity:0;transition:300ms ease;transition-delay:200ms}.duet-modal-container.duet-modal-active{visibility:visible;opacity:1;transition:300ms ease;transition-delay:0s}.duet-modal-container.duet-disable-transitions{transition:none}.duet-modal-container.duet-modal-slide-up{overflow:hidden}::slotted(img){width:100%}.duet-modal-inner{display:flex;align-items:center;width:100%;min-height:100%;padding:20px 16px}@media (min-width: 36em){.duet-modal-inner{padding:48px 16px}}.duet-modal-inner.duet-modal-slide-up{align-items:stretch;justify-content:center;height:100%;padding-top:48px;padding-bottom:0;overflow:hidden}.duet-modal-inner.duet-modal-slide-up::after{position:absolute;bottom:0;z-index:300;display:block;width:100%;max-width:686px;height:48px;margin:auto;pointer-events:none;content:"";background:linear-gradient(rgba(255, 255, 255, 0), rgb(255, 255, 255))}.duet-modal-inner.duet-modal-slide-up::after.small{max-width:545px}.duet-modal-inner.duet-modal-slide-up::after.large{max-width:100%}@media (min-width: 36em){.duet-modal-inner.duet-modal-slide-up::after.large{max-width:1110px}}@media (max-width: 35.9375em){.duet-modal-inner.large{padding-right:0;padding-left:0}.duet-modal-inner.duet-modal-slide-up{padding:0;padding-top:28px}}.duet-modal{position:relative;width:100%;max-width:686px;margin:auto;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-weight:400;font-variant-numeric:tabular-nums;line-height:1.5;color:rgb(8, 42, 77);background:rgb(255, 255, 255);border-radius:16px;opacity:0;transition:300ms ease;transition-delay:0ms;transform:scale(0.96)}.duet-theme-turva .duet-modal{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-modal-active .duet-modal{opacity:1;transition:300ms ease;transition-delay:200ms;transform:none}.duet-modal-active .duet-modal.slide-up{top:0;transition:top 600ms ease}.duet-modal.loader{text-align:center;background:transparent}.duet-modal.loader .duet-modal-close{display:none}.duet-modal.loader .duet-modal-spinner{position:relative;height:120px}.duet-modal.loader .duet-modal-inner-slot-default{position:relative;backdrop-filter:blur(10px)}.duet-modal.loader duet-paragraph.duet-loader-message{position:absolute;opacity:0;transition:all 300ms ease;transform:scaleY(0);transform-origin:top}.duet-modal.loader duet-paragraph.duet-loader-message.show{opacity:1;transform:scaleY(1);transform-origin:bottom}.duet-modal.loader duet-paragraph.duet-loader-message.show::part(duet-paragraph){backdrop-filter:blur(10px)}.duet-disable-transitions .duet-modal{transition:none}.duet-modal.small{max-width:545px}.duet-modal.large{max-width:100%}@media (min-width: 36em){.duet-modal.large{max-width:1110px}}.duet-modal.slide-up{top:100vh;margin:0;overflow:auto;border-radius:16px 16px 0 0;opacity:1;transition:top 600ms ease}.duet-modal.duet-modal-has-sticky-header{height:100%;overflow:auto}.duet-modal:focus{outline:0}.duet-modal-body,.duet-modal-sticky-header{width:100%;padding:36px 28px}.duet-modal-body.duet-modal-gutter-none,.duet-modal-sticky-header.duet-modal-gutter-none{padding:0 !important}.duet-modal-body.duet-modal-gutter-small,.duet-modal-sticky-header.duet-modal-gutter-small{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}@media (max-width: 22.5em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 28px}}@media (max-width: 35.9375em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}}@media (min-width: 36em){.duet-modal-body,.duet-modal-sticky-header{padding:36px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:28px 72px}}@media (min-width: 48em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 72px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:36px 72px}}@media (min-width: 76.25em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 48px 48px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 94px}.small .duet-modal-body,.small .duet-modal-sticky-header{padding:36px 48px}}.duet-modal-header{text-align:center}.duet-modal-sticky-header{position:sticky;top:0;z-index:300;display:block;padding-bottom:12px;text-align:left;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229);border-radius:16px 16px 0 0}.duet-theme-turva .duet-modal-sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-modal-close{position:absolute;top:8px;right:8px}.duet-modal-heading{width:100%;padding-right:60px;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-style:normal;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);text-decoration:none;text-overflow:ellipsis;letter-spacing:-0.01rem;white-space:nowrap}.duet-modal-heading.duet-p-0{padding:0 !important}.duet-modal-heading.duet-m-0{margin:0 !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-modal{color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .duet-modal-sticky-header{background:#fdf7f2;border-bottom:1px solid #d4dde2}';var y=g;var v=600;var x=e("duet_modal",function(){function e(e){t(this,e);this.duetOpen=i(this,"duetOpen",7);this.duetClose=i(this,"duetClose",7);this.duetCloseComplete=i(this,"duetCloseComplete",7);this.duetBeforeClose=i(this,"duetBeforeClose",7);var a,d;this.hasStickyHeader=false;this.isAndroidDevice=((d=(a=navigator===null||navigator===void 0?void 0:navigator.userAgent)===null||a===void 0?void 0:a.toLowerCase())===null||d===void 0?void 0:d.indexOf("android"))>-1||null;this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(navigator===null||navigator===void 0?void 0:navigator.userAgent);this.accessibleLoaderAnnouncementDefaults=s;this.accessibleCloseLabelDefaults={fi:"Sulje ikkuna",sv:"Stäng fönstret",en:"Close the dialog"};this.handleAndroidResizeEvents=function(){if(document.activeElement.tagName=="INPUT"){window.setTimeout((function(){var e;try{(e=document===null||document===void 0?void 0:document.activeElement)===null||e===void 0?void 0:e.scrollIntoViewIfNeeded(true)}catch(e){}}),100)}};this.open=false;this.language=m();this.accessibleCloseLabel=c(this.accessibleCloseLabelDefaults,this.language);this.accessibleLoaderAnnouncement=c(this.accessibleLoaderAnnouncementDefaults,this.language);this.size="medium";this.accessibleDescribedBy=undefined;this.accessibleLabelledBy=undefined;this.accessibleLabel=undefined;this.accessibleDetails=undefined;this.accessibleDescription=undefined;this.variation="default";this.gutterSize="medium";this.theme="";this.heading="";this.headingLevel="h3";this.headingVisualLevel=undefined;this.icon="";this.color="";this.active=false;this.closeOnBlur=false}e.prototype.openChanged=function(){var e=this;if(this.open){if(this.modalEl&&this.modalEl.scrollTop){this.modalEl.scrollTop=0}this.focusedElBeforeOpen=document.activeElement;o(this.variation==="slide-up"?this.modalContentEl:this.modalEl,{reserveScrollBarGap:true});this.teleport.makeSiblingsInert();this.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((function(e){return e.remove()}));setTimeout((function(){if(e.variation==="loader"){e.addMessage(e.accessibleLoaderAnnouncement,false)}else{if(e.isAndroidDevice){e.modalEl.focus()}else{e.buttonEl.setFocus()}}}),v);setTimeout((function(){e.modalEl.classList.add("duet-disable-transitions")}),v+200);if(this.isAndroidDevice){window.addEventListener("resize",this.handleAndroidResizeEvents)}this.duetOpen.emit()}else{this.modalEl.classList.remove("duet-disable-transitions");this.modalEl.addEventListener("transitionend",(function(){return e.duetCloseComplete.emit()}),{once:true});n(this.variation==="slide-up"?this.modalContentEl:this.modalEl);this.duetClose.emit();this.teleport.removeInertFromSiblings();setTimeout((function(){u(e.focusedElBeforeOpen)}),v);if(this.isAndroidDevice){window.removeEventListener("resize",this.handleAndroidResizeEvents)}}};e.prototype.activeChanged=function(){this.open=this.active};e.prototype.componentWillLoad=function(){this.hasStickyHeader=p(this.element,"sticky-header");r(this)};e.prototype.componentDidLoad=function(){if(this.active){this.open=true;this.modalEl.classList.add("duet-disable-transitions")}};e.prototype.connectedCallback=function(){if(!this.teleport){this.teleport=new b(this.element)}if(this.teleport){this.teleport.activate()}h(this,[{prop:"accessibleCloseLabel",defaults:"accessibleCloseLabelDefaults"},{prop:"accessibleLoaderAnnouncement",defaults:"accessibleLoaderAnnouncementDefaults"}])};e.prototype.disconnectedCallback=function(){f(this);if(this.modalEl){n(this.modalEl)}};e.prototype.handleKeyUp=function(e){if(this.open){if(l(e)){this.closeModal(e)}}};e.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.open=true;return[2]}))}))};e.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.open=false;return[2]}))}))};e.prototype.scrollToTop=function(){return __awaiter(this,arguments,void 0,(function(e){var t,i,a,d;if(e===void 0){e=true}return __generator(this,(function(o){i=e?"smooth":"auto";if(this.variation==="slide-up"){a=((t=this.modalEl.querySelector(".duet-modal-sticky-header"))===null||t===void 0?void 0:t.clientHeight)||0;d=this.modalEl.querySelector(".duet-modal-body").computedStyleMap().get("padding-top");this.slotContainerEl.style.scrollMarginTop="".concat(a+d.value,"px");this.slotContainerEl.scrollIntoView({behavior:i})}else{this.modalEl.querySelector(".duet-modal-body").scrollIntoView({behavior:i})}return[2]}))}))};e.prototype.addMessage=function(e){return __awaiter(this,arguments,void 0,(function(e,t){var i;var a=this;if(t===void 0){t=true}return __generator(this,(function(d){i=document.createElement(t?"duet-paragraph":"duet-visually-hidden");i.textContent=e;i.classList.add("duet-loader-message");if(t){setTimeout((function(){a.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((function(e){return e.classList.remove("show")}));i.classList.add("show")}),10)}this.slotContainerEl.appendChild(i);return[2]}))}))};e.prototype.closeModal=function(e){var t=this;this.duetBeforeClose.emit({originalEvent:e,component:"duet-modal"});if(!e.defaultPrevented){setTimeout((function(){t.hide()}),1)}};e.prototype.render=function(){var e,t;var i=this;var d,o;var n="primary";var r="secondary";var s=a("div",{key:"675dc50327ab1e0f8033a2befcdf37cd4d3e0bf2",class:"duet-modal-close"},a("duet-button",{key:"4184913dd9b92a9b95f1d5e773800766530b97cf",ref:function(e){return i.buttonEl=e},variation:"plain",accessibleLabel:this.accessibleCloseLabel,color:r,iconSize:"large",icon:"navigation-close",iconOnly:true,margin:"none",theme:this.theme,onClick:function(e){return i.closeModal(e)},fixed:true}));if(this.theme==="turva"){n="primary-turva";r="secondary-turva"}return a("div",{key:"0751e3ddbaa09c8c1abc7986e3fabd97dba82be6",ref:function(e){return i.modalEl=e},"aria-label":(d=this.accessibleLabel)!==null&&d!==void 0?d:this.heading,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-describedby":this.accessibleDescribedBy,role:this.variation==="loader"?"alert":"dialog","aria-modal":this.isSafariBrowser?false:true,tabindex:"-1",class:{"duet-modal-container":true,"duet-theme-turva":this.theme==="turva","duet-modal-active":this.open,"duet-modal-slide-up":this.variation==="slide-up","duet-modal-has-sticky-header":this.hasStickyHeader}},a("duet-overlay",{key:"c1e924fd65887cf4378aab5b0a8a240ed48eb04a","z-index":"-1",visible:this.open,variation:this.variation==="loader"?"white":"default"}),a("div",{key:"a9e7ab02f299be796797683d7f1ba696bc5c884f",ref:function(e){return i.modalInnerEl=e},class:(e={"duet-modal-inner":true},e[this.size]=true,e["duet-modal-slide-up"]=this.variation==="slide-up",e),onClick:function(e){if(i.closeOnBlur){var t=e.target||e.srcElement;if(t===i.modalInnerEl){i.closeModal(e)}}}},a("div",{key:"86107c52f7cdb102f409586020bdeb116c041720",ref:function(e){return i.modalContentEl=e},class:(t={"duet-modal":true,"duet-modal-has-sticky-header":this.hasStickyHeader},t[this.size]=true,t[this.variation]=true,t)},this.gutterSize!=="none"&&!this.hasStickyHeader&&a("duet-spacer",{key:"c728a3caf6df68ed0c97baf1425c2ddab6a98f5b"}),this.hasStickyHeader?a("div",{class:"duet-modal-sticky-header"},s,a("slot",{name:"sticky-header"})):s,a("div",{key:"36b15d0c3595fdcecc6f14abb3578eefef74a8c9",class:{"duet-modal-body":true,"duet-modal-gutter-none":this.gutterSize==="none","duet-modal-gutter-small":this.gutterSize==="small","duet-modal-gutter-medium":this.gutterSize==="medium","duet-modal-gutter-large":this.gutterSize==="large"}},a("div",{key:"5dfb5b08e6593777e82f58c9a8d4db36cd3efbbc",class:"duet-modal-header"},a("span",{key:"0a95f7b53f47eb9e75ea99a007b0951b9a0fe11a",class:"duet-modal-inner-slot-top"},a("slot",{key:"56cbb6d090f309f66c7e79f90b3b8b4920501fca",name:"top"})),this.icon&&a("duet-icon",{key:"1918983d8ba93e09a80ab19f9dd2d5d88b9c483e",name:this.icon,size:"xx-large",color:this.color||n}),this.heading&&a("duet-heading",{key:"7e77994203cb473aa15b6e7356660278bad02d57","visual-level":(o=this.headingVisualLevel)!==null&&o!==void 0?o:this.headingLevel,level:this.headingLevel,theme:this.theme},this.heading)),this.variation==="loader"&&a("div",{key:"cb74816a66ac5eb67938c8a4358d0ecb2f7769f3",class:"duet-modal-spinner"},a("duet-spinner",{key:"70156c240cc4d32e660349992be704be48d55c54",size:"large",color:"primary"})),a("div",{key:"7d20cd4b16628ed66118f41c9f2cb626cb87fd6b",class:"duet-modal-inner-slot-default",ref:function(e){return i.slotContainerEl=e},"aria-live":this.variation==="loader"?"assertive":"off"},a("slot",{key:"229d35cca36167acf3d262376b3d11a6473d5635"}))))))};Object.defineProperty(e.prototype,"element",{get:function(){return d(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{open:["openChanged"],active:["activeChanged"]}},enumerable:false,configurable:true});return e}());x.style=y}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- System.register(["./p-0e5663a5.system.js","./p-9d336f77.system.js","./p-260f26f5.system.js","./p-d16254bc.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,i,n,a,o,r,s,d,h;return{setters:[function(e){t=e.r;i=e.c;n=e.h;a=e.H;o=e.g},function(e){r=e.a;s=e.b},function(e){d=e.i},function(e){h=e.a},function(){}],execute:function(){var u='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;width:100%}.duet-menu-bar{position:relative;top:0;z-index:2;display:flex;align-items:center;justify-content:center;background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07);transition:top 0.3s}.duet-menu-bar.hidden{top:-200px}.duet-menu-bar.bottom{z-index:1}@media (min-width: 62em){.duet-menu-bar{box-shadow:0 3px 6px 0 rgba(0, 41, 77, 0.1)}}.duet-menu-bar .top{display:none}.duet-menu-bar .bottom{display:none}.duet-menu-bar.horizontal-nav{position:relative}.duet-menu-bar.horizontal-nav .top{position:absolute;top:0;left:3.5%;display:block;width:93%;height:1px;background:rgb(245, 248, 250)}.duet-menu-bar.horizontal-nav .bottom{position:absolute;bottom:0;left:0;display:block;width:100%;height:1px;background:rgb(212, 223, 229)}.duet-menu-bar.horizontal-nav .more-left{position:absolute;top:0;left:0;z-index:1;width:56px;height:49px;pointer-events:none;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%)}@media (min-width: 62em){.duet-menu-bar.horizontal-nav .more-left{display:none}}.duet-menu-bar.horizontal-nav .more-right{position:absolute;top:0;right:0;z-index:1;width:56px;height:49px;pointer-events:none;background:linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%)}@media (min-width: 62em){.duet-menu-bar.horizontal-nav .more-right{display:none}}@media (pointer: fine){.duet-menu-bar.horizontal-nav{display:none}}@media (pointer: fine) and ((min-width: 62em)){.duet-menu-bar.horizontal-nav{display:flex}}.duet-menu-bar .container{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1440px;height:100%;height:3.25rem;padding:0 8px 0 20px;overflow-x:auto;scrollbar-width:none}.duet-menu-bar .container::-webkit-scrollbar{width:0;height:0}@media (min-width: 62em){.duet-menu-bar .container{height:5rem;padding:0 28px;overflow-x:visible}}.duet-menu-bar .container .list{height:100%;list-style-type:none}.duet-menu-bar .container ::slotted(*){height:100%}.duet-menu-bar .container>*{display:flex;align-items:center;justify-content:center;height:100%}.duet-menu-bar .container>:first-child{flex-basis:0;flex-grow:1;justify-content:flex-start}.duet-menu-bar .container>:last-child{flex-basis:0;flex-grow:1;justify-content:flex-end}.duet-menu-bar .container ::slotted(*){display:flex;align-items:center;justify-content:center;height:100%}.duet-menu-bar.duet-theme-turva{background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(23, 28, 58, 0.07)}@media (min-width: 62em){.duet-menu-bar.duet-theme-turva{box-shadow:0 3px 6px 0 rgba(23, 28, 58, 0.1)}}@media (min-width: 62em){.duet-menu-bar.duet-menu-bar-slim .container{height:4rem}}.center{font-size:1rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77)}.duet-theme-turva .center{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.right{font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 75, 129)}.duet-theme-turva .right{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host(.duet-theme-turva2) .duet-theme-turva .center{color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .right{color:#172a3b}';var l=u;var b=e("duet_menu_bar",function(){function e(e){var n=this;t(this,e);this.duetEvent=i(this,"duetEvent",7);this.mql=[window.matchMedia(r.replace(/'/g,"")),window.matchMedia(s.replace(/'/g,""))];this.boundMqlFunctions=[];this.previousYScroll=0;this.scrollbarCheck=function(){n.leftMoreVisible=n.container.scrollLeft>0;n.rightMoreVisible=n.container.scrollLeft!==n.container.scrollWidth-n.container.clientWidth};this.scrollToActive=function(){var e=n.element.querySelectorAll("[active]");var t;e.forEach((function(e){if(e.active){t=e}}));if(t&&t.offsetLeft){if(t.offsetLeft>50){n.container.scrollLeft=t.offsetLeft-n.element.getBoundingClientRect().width/2+t.offsetWidth/2}}};this.checkCenterSlot=function(){var e=n.element.querySelector('[slot="center"]');n.centerSlotUsed=!!e};this.changeLogoSize=function(){n.checkCenterSlot();if(n.mql[1].matches&&n.centerSlotUsed){n.logoSize="large"}else{n.logoSize="medium"}};this.handleLogoClick=function(e){n.duetEvent.emit({name:"logoClick",component:"duet-menu-bar",data:{logoHref:n.logoHref},originalEvent:e})};this.hidden=false;this.onBottom=false;this.logoSize="large";this.leftMoreVisible=false;this.rightMoreVisible=false;this.centerSlotUsed=false;this.theme="";this.language=h();this.logo=true;this.logoHref=undefined;this.logoLinkAccessibleLabel=undefined;this.accessibleLabel=undefined;this.hideOnScroll=false}e.prototype.checkScroll=function(){var e=this;if(!this.hideOnScroll){return}if(window.scrollY>this.previousYScroll){if(window.scrollY>100){if(this.hideOnScroll){clearTimeout(this.zindexTimer);this.onBottom=true}this.hidden=true}}else{if(window.scrollY<150){if(this.hideOnScroll){this.zindexTimer=setTimeout((function(){e.onBottom=false}),300)}this.hidden=false}}this.previousYScroll=window.scrollY};e.prototype.componentWillLoad=function(){d(this)};e.prototype.connectedCallback=function(){this.changeLogoSize();for(var e=0;e<this.mql.length;e++){if(this.mql[e].addEventListener){var t=this.changeLogoSize.bind(this);this.mql[e].addEventListener("change",t);this.boundMqlFunctions[e]=t}}this.checkCenterSlot()};e.prototype.disconnectedCallback=function(){for(var e=0;e<this.mql.length;e++){if(this.mql[e].removeEventListener){this.mql[e].removeEventListener("change",this.boundMqlFunctions[e])}}this.boundMqlFunctions=[]};e.prototype.componentDidLoad=function(){var e=this;setTimeout((function(){e.scrollbarCheck();e.scrollToActive();e.checkCenterSlot()}),0)};e.prototype.onWindowResize=function(){var e=this;clearTimeout(this.resizeTimer);this.resizeTimer=setTimeout((function(){e.scrollToActive()}),100)};e.prototype.render=function(){var e=this;var t=document.querySelectorAll("duet-slideout").length>0;var i=t&&!this.logo;return n(a,{key:"664846aed5fa5418883aa8e7d285f43bca31b9b7"},n("nav",{key:"67eb2be48aa07d8839de507ac2e7a3d549a7bf1b",class:{"duet-menu-bar":true,"duet-theme-turva":this.theme==="turva","horizontal-nav":i,"duet-menu-bar-slim":!this.centerSlotUsed,hidden:this.hidden&&this.hideOnScroll,bottom:this.onBottom},"aria-label":this.accessibleLabel},n("div",{key:"e4cb471892ccd3b07e2ba137cfe5f09d2aede935",class:"top"}),n("div",{key:"a3956e49657add3b004a7f48c1039c95e768cf3f",class:{container:true},ref:function(t){return e.container=t},onScroll:function(){return e.scrollbarCheck()}},this.logo&&n("div",{key:"daa83bf253d89d2691a128d4449ec3bd27a0fd1c"},n("duet-logo",{key:"519732ee4b3a9e8db70315d561859b569c3acf9d",size:this.logoSize,margin:"none",theme:this.theme,href:this.logoHref,accessibleLabel:this.logoLinkAccessibleLabel,onClick:this.handleLogoClick,language:this.language})),n("div",{key:"7baa6a6cfbfcfe80e4965d9a2ba8fbd5c2e908fb",class:"list center",role:"list"},n("div",{key:"214ec3b02204a0ff8f09f5ebe8545b3b52e4b27a",class:"more-left",hidden:!this.leftMoreVisible,role:"presentation"}),n("slot",{key:"8f039e09a7b69764151356d5697a2ab65e7b5a2e",name:"center"}),n("div",{key:"25fb60d81a3cb648049e51f9497282feddf24d48",class:"more-right",hidden:!this.rightMoreVisible,role:"presentation"})),n("div",{key:"b86943b205d836a309c61260e20599ff95bf1a1a",class:"list right",role:"list"},n("slot",{key:"16eaaf4fb82ae25c9fd3d8324134f100b0b77c19",name:"right"}))),n("div",{key:"637eb362a07458d226c916447385262fb2b0c32d",class:"bottom"})))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());b.style=l}}}));
4
+ System.register(["./p-adeb1555.system.js","./p-9d336f77.system.js","./p-d80ae90e.system.js","./p-61e21220.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,i,n,a,o,r,s,d,h;return{setters:[function(e){t=e.r;i=e.c;n=e.h;a=e.H;o=e.g},function(e){r=e.a;s=e.b},function(e){d=e.i},function(e){h=e.a},function(){}],execute:function(){var u='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;width:100%}.duet-menu-bar{position:relative;top:0;z-index:2;display:flex;align-items:center;justify-content:center;background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07);transition:top 0.3s}.duet-menu-bar.hidden{top:-200px}.duet-menu-bar.bottom{z-index:1}@media (min-width: 62em){.duet-menu-bar{box-shadow:0 3px 6px 0 rgba(0, 41, 77, 0.1)}}.duet-menu-bar .top{display:none}.duet-menu-bar .bottom{display:none}.duet-menu-bar.horizontal-nav{position:relative}.duet-menu-bar.horizontal-nav .top{position:absolute;top:0;left:3.5%;display:block;width:93%;height:1px;background:rgb(245, 248, 250)}.duet-menu-bar.horizontal-nav .bottom{position:absolute;bottom:0;left:0;display:block;width:100%;height:1px;background:rgb(212, 223, 229)}.duet-menu-bar.horizontal-nav .more-left{position:absolute;top:0;left:0;z-index:1;width:56px;height:49px;pointer-events:none;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%)}@media (min-width: 62em){.duet-menu-bar.horizontal-nav .more-left{display:none}}.duet-menu-bar.horizontal-nav .more-right{position:absolute;top:0;right:0;z-index:1;width:56px;height:49px;pointer-events:none;background:linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%)}@media (min-width: 62em){.duet-menu-bar.horizontal-nav .more-right{display:none}}@media (pointer: fine){.duet-menu-bar.horizontal-nav{display:none}}@media (pointer: fine) and ((min-width: 62em)){.duet-menu-bar.horizontal-nav{display:flex}}.duet-menu-bar .container{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1440px;height:100%;height:3.25rem;padding:0 8px 0 20px;overflow-x:auto;scrollbar-width:none}.duet-menu-bar .container::-webkit-scrollbar{width:0;height:0}@media (min-width: 62em){.duet-menu-bar .container{height:5rem;padding:0 28px;overflow-x:visible}}.duet-menu-bar .container .list{height:100%;list-style-type:none}.duet-menu-bar .container ::slotted(*){height:100%}.duet-menu-bar .container>*{display:flex;align-items:center;justify-content:center;height:100%}.duet-menu-bar .container>:first-child{flex-basis:0;flex-grow:1;justify-content:flex-start}.duet-menu-bar .container>:last-child{flex-basis:0;flex-grow:1;justify-content:flex-end}.duet-menu-bar .container ::slotted(*){display:flex;align-items:center;justify-content:center;height:100%}.duet-menu-bar.duet-theme-turva{background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(23, 28, 58, 0.07)}@media (min-width: 62em){.duet-menu-bar.duet-theme-turva{box-shadow:0 3px 6px 0 rgba(23, 28, 58, 0.1)}}@media (min-width: 62em){.duet-menu-bar.duet-menu-bar-slim .container{height:4rem}}.center{font-size:1rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77)}.duet-theme-turva .center{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.right{font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 75, 129)}.duet-theme-turva .right{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host(.duet-theme-turva2) .duet-theme-turva .center{color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .right{color:#172a3b}';var l=u;var b=e("duet_menu_bar",function(){function e(e){var n=this;t(this,e);this.duetEvent=i(this,"duetEvent",7);this.mql=[window.matchMedia(r.replace(/'/g,"")),window.matchMedia(s.replace(/'/g,""))];this.boundMqlFunctions=[];this.previousYScroll=0;this.scrollbarCheck=function(){n.leftMoreVisible=n.container.scrollLeft>0;n.rightMoreVisible=n.container.scrollLeft!==n.container.scrollWidth-n.container.clientWidth};this.scrollToActive=function(){var e=n.element.querySelectorAll("[active]");var t;e.forEach((function(e){if(e.active){t=e}}));if(t&&t.offsetLeft){if(t.offsetLeft>50){n.container.scrollLeft=t.offsetLeft-n.element.getBoundingClientRect().width/2+t.offsetWidth/2}}};this.checkCenterSlot=function(){var e=n.element.querySelector('[slot="center"]');n.centerSlotUsed=!!e};this.changeLogoSize=function(){n.checkCenterSlot();if(n.mql[1].matches&&n.centerSlotUsed){n.logoSize="large"}else{n.logoSize="medium"}};this.handleLogoClick=function(e){n.duetEvent.emit({name:"logoClick",component:"duet-menu-bar",data:{logoHref:n.logoHref},originalEvent:e})};this.hidden=false;this.onBottom=false;this.logoSize="large";this.leftMoreVisible=false;this.rightMoreVisible=false;this.centerSlotUsed=false;this.theme="";this.language=h();this.logo=true;this.logoHref=undefined;this.logoLinkAccessibleLabel=undefined;this.accessibleLabel=undefined;this.hideOnScroll=false}e.prototype.checkScroll=function(){var e=this;if(!this.hideOnScroll){return}if(window.scrollY>this.previousYScroll){if(window.scrollY>100){if(this.hideOnScroll){clearTimeout(this.zindexTimer);this.onBottom=true}this.hidden=true}}else{if(window.scrollY<150){if(this.hideOnScroll){this.zindexTimer=setTimeout((function(){e.onBottom=false}),300)}this.hidden=false}}this.previousYScroll=window.scrollY};e.prototype.componentWillLoad=function(){d(this)};e.prototype.connectedCallback=function(){this.changeLogoSize();for(var e=0;e<this.mql.length;e++){if(this.mql[e].addEventListener){var t=this.changeLogoSize.bind(this);this.mql[e].addEventListener("change",t);this.boundMqlFunctions[e]=t}}this.checkCenterSlot()};e.prototype.disconnectedCallback=function(){for(var e=0;e<this.mql.length;e++){if(this.mql[e].removeEventListener){this.mql[e].removeEventListener("change",this.boundMqlFunctions[e])}}this.boundMqlFunctions=[]};e.prototype.componentDidLoad=function(){var e=this;setTimeout((function(){e.scrollbarCheck();e.scrollToActive();e.checkCenterSlot()}),0)};e.prototype.onWindowResize=function(){var e=this;clearTimeout(this.resizeTimer);this.resizeTimer=setTimeout((function(){e.scrollToActive()}),100)};e.prototype.render=function(){var e=this;var t=document.querySelectorAll("duet-slideout").length>0;var i=t&&!this.logo;return n(a,{key:"664846aed5fa5418883aa8e7d285f43bca31b9b7"},n("nav",{key:"67eb2be48aa07d8839de507ac2e7a3d549a7bf1b",class:{"duet-menu-bar":true,"duet-theme-turva":this.theme==="turva","horizontal-nav":i,"duet-menu-bar-slim":!this.centerSlotUsed,hidden:this.hidden&&this.hideOnScroll,bottom:this.onBottom},"aria-label":this.accessibleLabel},n("div",{key:"e4cb471892ccd3b07e2ba137cfe5f09d2aede935",class:"top"}),n("div",{key:"a3956e49657add3b004a7f48c1039c95e768cf3f",class:{container:true},ref:function(t){return e.container=t},onScroll:function(){return e.scrollbarCheck()}},this.logo&&n("div",{key:"daa83bf253d89d2691a128d4449ec3bd27a0fd1c"},n("duet-logo",{key:"519732ee4b3a9e8db70315d561859b569c3acf9d",size:this.logoSize,margin:"none",theme:this.theme,href:this.logoHref,accessibleLabel:this.logoLinkAccessibleLabel,onClick:this.handleLogoClick,language:this.language})),n("div",{key:"7baa6a6cfbfcfe80e4965d9a2ba8fbd5c2e908fb",class:"list center",role:"list"},n("div",{key:"214ec3b02204a0ff8f09f5ebe8545b3b52e4b27a",class:"more-left",hidden:!this.leftMoreVisible,role:"presentation"}),n("slot",{key:"8f039e09a7b69764151356d5697a2ab65e7b5a2e",name:"center"}),n("div",{key:"25fb60d81a3cb648049e51f9497282feddf24d48",class:"more-right",hidden:!this.rightMoreVisible,role:"presentation"})),n("div",{key:"b86943b205d836a309c61260e20599ff95bf1a1a",class:"list right",role:"list"},n("slot",{key:"16eaaf4fb82ae25c9fd3d8324134f100b0b77c19",name:"right"}))),n("div",{key:"637eb362a07458d226c916447385262fb2b0c32d",class:"bottom"})))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());b.style=l}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,h as a,H as o,g as t}from"./p-597e39d7.js";import{i as r}from"./p-d18e475d.js";import{h as d,c as i}from"./p-08bba53e.js";import{g as n}from"./p-5de30279.js";import"./p-17efced0.js";const s=class{constructor(a){e(this,a),this.theme="",this.margin="auto",this.backgroundColor="",this.textColor="secondary",this.image="",this.headingLevel="h3",this.url=void 0}componentWillLoad(){r(this),this.hasPreHeadingSlot=d(this.element,"pre-heading"),this.hasHeadingSlot=d(this.element,"heading"),this.hasDescriptionSlot=d(this.element,"description"),this.hasActionSlot=d(this.element,"action"),i(this.element,"heading","span"),i(this.element,"description","span")}async setFocus(e){this.url&&this.aOrDivElement&&this.aOrDivElement.focus(e)}render(){const e=n(this.backgroundColor,this.theme);return a(o,{key:"d106a014e2f606089c38d6dc260b1ad45ca54957",class:{"duet-m-0":"none"===this.margin}},a("aside",{key:"5686290471d3dd623d00687c2d8589d68cf41a6b",class:{"duet-promo-card":!0,"duet-theme-turva":"turva"===this.theme,"no-bg-color":!this.backgroundColor,"duet-promo-card-link":!!this.url},style:{backgroundColor:e||"none"}},a(this.url?"a":"div",{key:"6969a22abb5eef82bd7b7be41f549f8e0068ee1b",href:this.url,class:"content-wrapper",ref:e=>this.aOrDivElement=e},a("img",{key:"bb0a3199e2fe2df65755fd95b1c7d864c24e4321",class:"image",src:this.image,alt:"",role:"presentation"}),a("div",{key:"33993c917fd1a136cde8a94968d3378ada24a87f",class:"content"},this.hasPreHeadingSlot&&a("div",{key:"7d29c53b121f8d7c1b9ed3c8a5f8b8320f23605a",class:"pre-heading"},a("slot",{key:"bbe8d30708743401c10d77e8e396d68a623b3799",name:"pre-heading"})),this.hasHeadingSlot&&a("div",{key:"e7f37460aabadc39bd6d58107df780f3370c20c6",class:"heading"},a("duet-heading",{key:"73014d60a050052991ca8b9cd4b708e09cc4b2c5",theme:this.theme,level:this.headingLevel,"visual-level":"h3",margin:"none",color:this.textColor},a("span",{key:"aeb47383807703238ef6b8e05d60b546e9ce5401"},a("slot",{key:"22c41d18e22855f6bf5a5a0f1a394cc80211412c",name:"heading"})))),this.hasDescriptionSlot&&a("div",{key:"f9062af866af231584a768fabb3cd41c93a5ecb3",class:"description"},a("duet-paragraph",{key:"a36fa27d4a90966385b9fd2a7da872ab7cab05ae",theme:this.theme,margin:"none",color:this.textColor},a("span",{key:"c447f09c8e3f8614a6b14259020308dd612fea18"},a("slot",{key:"1b25d2412516f52a3332d8b9694c8f203e2e32db",name:"description"})))),this.hasActionSlot&&a("div",{key:"724d901256f13542bb24489bf487a56d44fbd57b",class:"action"},a("slot",{key:"ea8b1fe60559b9b1ba9f1e6efa59ca7e587d7d13",name:"action"}))))))}get element(){return t(this)}};s.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:4px !important;margin-bottom:2px !important;display:block;width:auto}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-promo-card{display:flex;flex-direction:column;width:100%;height: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-style:normal;color:rgb(8, 42, 77);text-align:left;border-radius:20px}.duet-promo-card.duet-p-0{padding:0 !important}.duet-promo-card.duet-m-0{margin:0 !important}.duet-promo-card .content-wrapper{display:flex;flex-direction:column;height:100%;color:inherit;text-decoration:none}.duet-promo-card .content-wrapper:focus{border-radius:20px;outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-promo-card .image{position:relative;width:100%;overflow:hidden;border-top-left-radius:20px;border-top-right-radius:20px;object-fit:cover}.duet-promo-card .content{display:flex;flex-direction:column;flex-grow:1;gap:8px;padding:20px}@media (min-width: 36em){.duet-promo-card .content{padding:28px}}.duet-promo-card .action{display:flex;flex-grow:1;align-items:flex-end;padding-top:16px}.duet-promo-card.no-bg-color .content{padding:20px 0 0}.duet-promo-card.no-bg-color .image{border-radius:16px}.duet-promo-card.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-promo-card.duet-theme-turva .content-wrapper:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-promo-card-link{transition:box-shadow 300ms ease}.duet-promo-card-link:hover{box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(0, 41, 77, 0.1)}.duet-promo-card-link:hover.duet-theme-turva{box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(117, 117, 117, 0.15)}';export{s as duet_promo_card}
4
+ import{r as e,h as a,H as o,g as t}from"./p-bf06650e.js";import{i as r}from"./p-0e7cf850.js";import{h as d,c as i}from"./p-40295380.js";import{g as n}from"./p-5de30279.js";import"./p-17efced0.js";const s=class{constructor(a){e(this,a),this.theme="",this.margin="auto",this.backgroundColor="",this.textColor="secondary",this.image="",this.headingLevel="h3",this.url=void 0}componentWillLoad(){r(this),this.hasPreHeadingSlot=d(this.element,"pre-heading"),this.hasHeadingSlot=d(this.element,"heading"),this.hasDescriptionSlot=d(this.element,"description"),this.hasActionSlot=d(this.element,"action"),i(this.element,"heading","span"),i(this.element,"description","span")}async setFocus(e){this.url&&this.aOrDivElement&&this.aOrDivElement.focus(e)}render(){const e=n(this.backgroundColor,this.theme);return a(o,{key:"d106a014e2f606089c38d6dc260b1ad45ca54957",class:{"duet-m-0":"none"===this.margin}},a("aside",{key:"5686290471d3dd623d00687c2d8589d68cf41a6b",class:{"duet-promo-card":!0,"duet-theme-turva":"turva"===this.theme,"no-bg-color":!this.backgroundColor,"duet-promo-card-link":!!this.url},style:{backgroundColor:e||"none"}},a(this.url?"a":"div",{key:"6969a22abb5eef82bd7b7be41f549f8e0068ee1b",href:this.url,class:"content-wrapper",ref:e=>this.aOrDivElement=e},a("img",{key:"bb0a3199e2fe2df65755fd95b1c7d864c24e4321",class:"image",src:this.image,alt:"",role:"presentation"}),a("div",{key:"33993c917fd1a136cde8a94968d3378ada24a87f",class:"content"},this.hasPreHeadingSlot&&a("div",{key:"7d29c53b121f8d7c1b9ed3c8a5f8b8320f23605a",class:"pre-heading"},a("slot",{key:"bbe8d30708743401c10d77e8e396d68a623b3799",name:"pre-heading"})),this.hasHeadingSlot&&a("div",{key:"e7f37460aabadc39bd6d58107df780f3370c20c6",class:"heading"},a("duet-heading",{key:"73014d60a050052991ca8b9cd4b708e09cc4b2c5",theme:this.theme,level:this.headingLevel,"visual-level":"h3",margin:"none",color:this.textColor},a("span",{key:"aeb47383807703238ef6b8e05d60b546e9ce5401"},a("slot",{key:"22c41d18e22855f6bf5a5a0f1a394cc80211412c",name:"heading"})))),this.hasDescriptionSlot&&a("div",{key:"f9062af866af231584a768fabb3cd41c93a5ecb3",class:"description"},a("duet-paragraph",{key:"a36fa27d4a90966385b9fd2a7da872ab7cab05ae",theme:this.theme,margin:"none",color:this.textColor},a("span",{key:"c447f09c8e3f8614a6b14259020308dd612fea18"},a("slot",{key:"1b25d2412516f52a3332d8b9694c8f203e2e32db",name:"description"})))),this.hasActionSlot&&a("div",{key:"724d901256f13542bb24489bf487a56d44fbd57b",class:"action"},a("slot",{key:"ea8b1fe60559b9b1ba9f1e6efa59ca7e587d7d13",name:"action"}))))))}get element(){return t(this)}};s.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:4px !important;margin-bottom:2px !important;display:block;width:auto}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-promo-card{display:flex;flex-direction:column;width:100%;height: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-style:normal;color:rgb(8, 42, 77);text-align:left;border-radius:20px}.duet-promo-card.duet-p-0{padding:0 !important}.duet-promo-card.duet-m-0{margin:0 !important}.duet-promo-card .content-wrapper{display:flex;flex-direction:column;height:100%;color:inherit;text-decoration:none}.duet-promo-card .content-wrapper:focus{border-radius:20px;outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-promo-card .image{position:relative;width:100%;overflow:hidden;border-top-left-radius:20px;border-top-right-radius:20px;object-fit:cover}.duet-promo-card .content{display:flex;flex-direction:column;flex-grow:1;gap:8px;padding:20px}@media (min-width: 36em){.duet-promo-card .content{padding:28px}}.duet-promo-card .action{display:flex;flex-grow:1;align-items:flex-end;padding-top:16px}.duet-promo-card.no-bg-color .content{padding:20px 0 0}.duet-promo-card.no-bg-color .image{border-radius:16px}.duet-promo-card.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-promo-card.duet-theme-turva .content-wrapper:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-promo-card-link{transition:box-shadow 300ms ease}.duet-promo-card-link:hover{box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(0, 41, 77, 0.1)}.duet-promo-card-link:hover.duet-theme-turva{box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(117, 117, 117, 0.15)}';export{s as duet_promo_card}