@duetds/components 7.0.2 → 7.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (606) hide show
  1. package/hydrate/index.js +45 -5
  2. package/lib/cjs/duet-action-button.cjs.entry.js +1 -1
  3. package/lib/cjs/duet-alert.cjs.entry.js +1 -1
  4. package/lib/cjs/duet-badge.cjs.entry.js +1 -1
  5. package/lib/cjs/duet-banner.cjs.entry.js +1 -1
  6. package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
  7. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
  8. package/lib/cjs/duet-button_2.cjs.entry.js +1 -1
  9. package/lib/cjs/duet-callout.cjs.entry.js +1 -1
  10. package/lib/cjs/duet-caption_4.cjs.entry.js +1 -1
  11. package/lib/cjs/duet-card.cjs.entry.js +1 -1
  12. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  13. package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
  14. package/lib/cjs/duet-chip.cjs.entry.js +26 -3
  15. package/lib/cjs/duet-choice_2.cjs.entry.js +2 -2
  16. package/lib/cjs/duet-collapsible.cjs.entry.js +1 -1
  17. package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
  18. package/lib/cjs/duet-contact-card.cjs.entry.js +1 -1
  19. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  20. package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
  21. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  22. package/lib/cjs/duet-editable-table_3.cjs.entry.js +1 -1
  23. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  24. package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
  25. package/lib/cjs/duet-footer.cjs.entry.js +1 -1
  26. package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
  27. package/lib/cjs/duet-header_2.cjs.entry.js +1 -1
  28. package/lib/cjs/duet-hero.cjs.entry.js +1 -1
  29. package/lib/cjs/duet-icon.cjs.entry.js +1 -1
  30. package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
  31. package/lib/cjs/duet-layout.cjs.entry.js +1 -1
  32. package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
  33. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +1 -1
  34. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
  35. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
  36. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
  37. package/lib/cjs/duet-menu-bar.cjs.entry.js +1 -1
  38. package/lib/cjs/duet-modal.cjs.entry.js +3 -3
  39. package/lib/cjs/duet-multiselect.cjs.entry.js +1 -1
  40. package/lib/cjs/duet-nav.cjs.entry.js +1 -1
  41. package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
  42. package/lib/cjs/duet-number-input.cjs.entry.js +1 -1
  43. package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
  44. package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
  45. package/lib/cjs/duet-popup-menu-item.cjs.entry.js +1 -1
  46. package/lib/cjs/duet-popup-menu.cjs.entry.js +2 -2
  47. package/lib/cjs/duet-progress.cjs.entry.js +1 -1
  48. package/lib/cjs/duet-promo-card.cjs.entry.js +5 -3
  49. package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
  50. package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
  51. package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
  52. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
  53. package/lib/cjs/duet-select.cjs.entry.js +1 -1
  54. package/lib/cjs/duet-shaped-image.cjs.entry.js +1 -1
  55. package/lib/cjs/duet-show-more.cjs.entry.js +1 -1
  56. package/lib/cjs/duet-slideout-lang.cjs.entry.js +1 -1
  57. package/lib/cjs/duet-slideout-link.cjs.entry.js +1 -1
  58. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
  59. package/lib/cjs/duet-slideout-panel.cjs.entry.js +2 -2
  60. package/lib/cjs/duet-slideout.cjs.entry.js +2 -2
  61. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  62. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
  63. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +1 -1
  64. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
  65. package/lib/cjs/duet-submenu-bar.cjs.entry.js +1 -1
  66. package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
  67. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  68. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -1
  69. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
  70. package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
  71. package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
  72. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +2 -2
  73. package/lib/cjs/duet-tooltip.cjs.entry.js +2 -2
  74. package/lib/cjs/duet-tray.cjs.entry.js +1 -1
  75. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  76. package/lib/cjs/duet-upload-item.cjs.entry.js +1 -1
  77. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  78. package/lib/cjs/duet.cjs.js +2 -2
  79. package/lib/cjs/{focus-utils-38735740.js → focus-utils-667a4f83.js} +1 -1
  80. package/lib/cjs/{index-293b429f.js → index-319e30bb.js} +1 -1
  81. package/lib/cjs/loader.cjs.js +2 -2
  82. package/lib/cjs/{teleport-04ad16c2.js → teleport-18e2b4b9.js} +14 -0
  83. package/lib/collection/components/duet-action-button/duet-action-button.js +2 -2
  84. package/lib/collection/components/duet-alert/duet-alert.js +1 -1
  85. package/lib/collection/components/duet-button/duet-button.js +5 -5
  86. package/lib/collection/components/duet-caption/duet-caption.js +1 -1
  87. package/lib/collection/components/duet-card/duet-card.js +3 -3
  88. package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
  89. package/lib/collection/components/duet-chip/duet-chip.css +5 -5
  90. package/lib/collection/components/duet-chip/duet-chip.js +33 -7
  91. package/lib/collection/components/duet-choice/duet-choice.js +3 -3
  92. package/lib/collection/components/duet-collapsible/duet-collapsible.js +3 -3
  93. package/lib/collection/components/duet-combobox/duet-combobox.js +3 -3
  94. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
  95. package/lib/collection/components/duet-date-picker/duet-date-picker.js +4 -4
  96. package/lib/collection/components/duet-divider/duet-divider.js +1 -1
  97. package/lib/collection/components/duet-editable-table/duet-editable-table.js +5 -5
  98. package/lib/collection/components/duet-empty-state/duet-empty-state.js +1 -1
  99. package/lib/collection/components/duet-footer/duet-footer.js +7 -7
  100. package/lib/collection/components/duet-grid/duet-grid.js +3 -3
  101. package/lib/collection/components/duet-header/duet-header.js +15 -15
  102. package/lib/collection/components/duet-heading/duet-heading.js +1 -1
  103. package/lib/collection/components/duet-hero/duet-hero.js +5 -5
  104. package/lib/collection/components/duet-icon/duet-icon.js +1 -1
  105. package/lib/collection/components/duet-input/duet-input.js +8 -8
  106. package/lib/collection/components/duet-label/duet-label.js +2 -2
  107. package/lib/collection/components/duet-layout/duet-layout.js +1 -1
  108. package/lib/collection/components/duet-list/duet-list.js +3 -3
  109. package/lib/collection/components/duet-logo/duet-logo.js +1 -1
  110. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +1 -1
  111. package/lib/collection/components/duet-modal/duet-modal.js +3 -3
  112. package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
  113. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +1 -1
  114. package/lib/collection/components/duet-number-input/duet-number-input.js +4 -4
  115. package/lib/collection/components/duet-pagination/duet-pagination.js +2 -2
  116. package/lib/collection/components/duet-paragraph/duet-paragraph.js +3 -3
  117. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +1 -1
  118. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
  119. package/lib/collection/components/duet-promo-card/duet-promo-card.css +7 -0
  120. package/lib/collection/components/duet-promo-card/duet-promo-card.js +20 -1
  121. package/lib/collection/components/duet-radio/duet-radio.js +3 -3
  122. package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
  123. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +1 -1
  124. package/lib/collection/components/duet-select/duet-select.js +5 -5
  125. package/lib/collection/components/duet-show-more/duet-show-more.js +1 -1
  126. package/lib/collection/components/duet-slideout/duet-slideout.js +1 -1
  127. package/lib/collection/components/duet-spacer/duet-spacer.js +2 -2
  128. package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
  129. package/lib/collection/components/duet-step/duet-step.js +2 -2
  130. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  131. package/lib/collection/components/duet-tab-group/duet-tab-group.js +5 -5
  132. package/lib/collection/components/duet-textarea/duet-textarea.js +4 -4
  133. package/lib/collection/components/duet-toggle/duet-toggle.js +1 -1
  134. package/lib/collection/components/duet-tooltip/duet-tooltip.js +1 -1
  135. package/lib/collection/components/duet-upload/duet-upload.js +14 -14
  136. package/lib/collection/components/duet-upload-item/duet-upload-item.js +1 -1
  137. package/lib/collection/utils/teleport.js +14 -0
  138. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  139. package/lib/dist-custom-elements/duet-alert.js +1 -1
  140. package/lib/dist-custom-elements/duet-badge.js +1 -1
  141. package/lib/dist-custom-elements/duet-banner.js +4 -4
  142. package/lib/dist-custom-elements/duet-breadcrumb.js +2 -2
  143. package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
  144. package/lib/dist-custom-elements/duet-button.js +1 -1
  145. package/lib/dist-custom-elements/duet-callout.js +3 -3
  146. package/lib/dist-custom-elements/duet-caption.js +1 -1
  147. package/lib/dist-custom-elements/duet-card.js +3 -3
  148. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  149. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  150. package/lib/dist-custom-elements/duet-chip.js +27 -4
  151. package/lib/dist-custom-elements/duet-choice-group.js +8 -8
  152. package/lib/dist-custom-elements/duet-choice.js +5 -5
  153. package/lib/dist-custom-elements/duet-collapsible.js +2 -2
  154. package/lib/dist-custom-elements/duet-combobox.js +2 -2
  155. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  156. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  157. package/lib/dist-custom-elements/duet-date-picker.js +12 -12
  158. package/lib/dist-custom-elements/duet-divider.js +1 -1
  159. package/lib/dist-custom-elements/duet-editable-table.js +7 -7
  160. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  161. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  162. package/lib/dist-custom-elements/duet-footer.js +4 -4
  163. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  164. package/lib/dist-custom-elements/duet-grid.js +1 -1
  165. package/lib/dist-custom-elements/duet-header.js +8 -8
  166. package/lib/dist-custom-elements/duet-heading.js +1 -1
  167. package/lib/dist-custom-elements/duet-hero.js +9 -9
  168. package/lib/dist-custom-elements/duet-icon.js +1 -1
  169. package/lib/dist-custom-elements/duet-input.js +1 -1
  170. package/lib/dist-custom-elements/duet-label.js +1 -1
  171. package/lib/dist-custom-elements/duet-layout.js +1 -1
  172. package/lib/dist-custom-elements/duet-link.js +1 -1
  173. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  174. package/lib/dist-custom-elements/duet-list.js +1 -1
  175. package/lib/dist-custom-elements/duet-logo.js +1 -1
  176. package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
  177. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
  178. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
  179. package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
  180. package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
  181. package/lib/dist-custom-elements/duet-modal.js +8 -8
  182. package/lib/dist-custom-elements/duet-multiselect.js +10 -10
  183. package/lib/dist-custom-elements/duet-nav.js +1 -1
  184. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  185. package/lib/dist-custom-elements/duet-notification.js +2 -2
  186. package/lib/dist-custom-elements/duet-number-input.js +11 -11
  187. package/lib/dist-custom-elements/duet-page-heading.js +2 -2
  188. package/lib/dist-custom-elements/duet-pagination.js +7 -7
  189. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  190. package/lib/dist-custom-elements/duet-popup-menu-item.js +2 -2
  191. package/lib/dist-custom-elements/duet-popup-menu.js +2 -2
  192. package/lib/dist-custom-elements/duet-progress.js +1 -1
  193. package/lib/dist-custom-elements/duet-promo-card.js +9 -6
  194. package/lib/dist-custom-elements/duet-radio-group.js +8 -8
  195. package/lib/dist-custom-elements/duet-radio.js +1 -1
  196. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  197. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  198. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  199. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  200. package/lib/dist-custom-elements/duet-select.js +1 -1
  201. package/lib/dist-custom-elements/duet-shaped-image.js +1 -1
  202. package/lib/dist-custom-elements/duet-show-more.js +5 -5
  203. package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
  204. package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
  205. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
  206. package/lib/dist-custom-elements/duet-slideout-panel.js +2 -2
  207. package/lib/dist-custom-elements/duet-slideout.js +2 -2
  208. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  209. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  210. package/lib/dist-custom-elements/duet-step.js +4 -4
  211. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  212. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
  213. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +2 -2
  214. package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
  215. package/lib/dist-custom-elements/duet-submenu-bar.js +2 -2
  216. package/lib/dist-custom-elements/duet-tab-group.js +13 -13
  217. package/lib/dist-custom-elements/duet-tab.js +1 -1
  218. package/lib/dist-custom-elements/duet-table.js +1 -1
  219. package/lib/dist-custom-elements/duet-textarea.js +10 -10
  220. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  221. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
  222. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
  223. package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
  224. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  225. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  226. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  227. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  228. package/lib/dist-custom-elements/duet-tray.js +3 -3
  229. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  230. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  231. package/lib/dist-custom-elements/duet-upload.js +18 -18
  232. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  233. package/lib/dist-custom-elements/index.js +1 -1
  234. package/lib/dist-custom-elements/{p-73fe1bc9.js → p-0a5bc76d.js} +1 -1
  235. package/lib/dist-custom-elements/{p-f4b0f495.js → p-0c12cea9.js} +1 -1
  236. package/lib/dist-custom-elements/{p-d3c39517.js → p-175941db.js} +2 -2
  237. package/lib/dist-custom-elements/{p-8c3e38ff.js → p-1aff20dc.js} +2 -2
  238. package/lib/dist-custom-elements/{p-8c4f8cf6.js → p-2007bad3.js} +1 -1
  239. package/lib/dist-custom-elements/{p-1d182f79.js → p-288a3be1.js} +1 -1
  240. package/lib/dist-custom-elements/{p-381457b7.js → p-2f34816f.js} +1 -1
  241. package/lib/dist-custom-elements/{p-738a4221.js → p-3af7a8f7.js} +8 -8
  242. package/lib/dist-custom-elements/{p-7334412f.js → p-3bae0600.js} +1 -1
  243. package/lib/dist-custom-elements/{p-19a0d6e2.js → p-3c204dbe.js} +2 -2
  244. package/lib/dist-custom-elements/{p-eb371ca2.js → p-3f6149bf.js} +1 -1
  245. package/lib/dist-custom-elements/{p-086d3a1e.js → p-42c5573b.js} +1 -1
  246. package/lib/dist-custom-elements/{p-d2e00066.js → p-57a42162.js} +1 -1
  247. package/lib/dist-custom-elements/{p-66c3c2ff.js → p-57e02127.js} +2 -2
  248. package/lib/dist-custom-elements/{p-e04f1726.js → p-5c3bcf22.js} +3 -3
  249. package/lib/dist-custom-elements/{p-673d137b.js → p-71d31bcd.js} +1 -1
  250. package/lib/{esm/teleport-4ede216d.js → dist-custom-elements/p-7394e25f.js} +14 -0
  251. package/lib/dist-custom-elements/{p-64515617.js → p-77f70890.js} +2 -2
  252. package/lib/dist-custom-elements/{p-a51f82c1.js → p-78123037.js} +10 -10
  253. package/lib/dist-custom-elements/{p-a57adc44.js → p-7b123b3e.js} +5 -5
  254. package/lib/dist-custom-elements/{p-30109959.js → p-805ba7b9.js} +1 -1
  255. package/lib/dist-custom-elements/{p-235d8a5c.js → p-8bd6e1bc.js} +1 -1
  256. package/lib/dist-custom-elements/{p-a703f4fc.js → p-9284aee2.js} +4 -4
  257. package/lib/dist-custom-elements/{p-1605b6bc.js → p-963c4150.js} +1 -1
  258. package/lib/dist-custom-elements/{p-8eb253dd.js → p-966b5d62.js} +5 -5
  259. package/lib/dist-custom-elements/{p-8419c6df.js → p-97227973.js} +3 -3
  260. package/lib/dist-custom-elements/{p-af940408.js → p-9c5d63ad.js} +1 -1
  261. package/lib/dist-custom-elements/{p-01db92de.js → p-a058928f.js} +1 -1
  262. package/lib/dist-custom-elements/{p-bef6a63e.js → p-b267cbea.js} +1 -1
  263. package/lib/dist-custom-elements/{p-514fd660.js → p-b2fb181b.js} +10 -10
  264. package/lib/dist-custom-elements/{p-62f4212c.js → p-b80858dd.js} +1 -1
  265. package/lib/dist-custom-elements/{p-edcc6460.js → p-bb04fe7f.js} +1 -1
  266. package/lib/dist-custom-elements/{p-afba26ca.js → p-cfb28a0c.js} +6 -6
  267. package/lib/dist-custom-elements/{p-9ec59f0c.js → p-dff1e67c.js} +3 -3
  268. package/lib/dist-custom-elements/{p-7780af95.js → p-e8712b99.js} +1 -1
  269. package/lib/duet/duet.esm.js +1 -1
  270. package/lib/duet/duet.js +1 -1
  271. package/lib/duet/{p-75175511.entry.js → p-01c7ea4c.entry.js} +1 -1
  272. package/lib/duet/p-03301834.system.entry.js +4 -0
  273. package/lib/duet/{p-a2cc9f13.entry.js → p-0378492d.entry.js} +1 -1
  274. package/lib/duet/{p-4cd69e6c.system.entry.js → p-03adf8c5.system.entry.js} +1 -1
  275. package/lib/duet/{p-2b612619.entry.js → p-0536d4f1.entry.js} +1 -1
  276. package/lib/duet/{p-2dc2aa5e.system.entry.js → p-07e6c008.system.entry.js} +1 -1
  277. package/lib/duet/{p-30cf2b59.system.entry.js → p-088a661f.system.entry.js} +1 -1
  278. package/lib/duet/{p-cac220a5.system.entry.js → p-0bdfb054.system.entry.js} +1 -1
  279. package/lib/duet/{p-29b6966f.system.entry.js → p-0ca57e44.system.entry.js} +1 -1
  280. package/lib/duet/{p-05d51dd5.system.entry.js → p-0e979bdf.system.entry.js} +1 -1
  281. package/lib/duet/{p-8a442edd.entry.js → p-0ffc30a9.entry.js} +1 -1
  282. package/lib/duet/{p-9ba60214.entry.js → p-123a88d7.entry.js} +1 -1
  283. package/lib/duet/{p-ec69b0b0.entry.js → p-141c3785.entry.js} +1 -1
  284. package/lib/duet/{p-11a9a53a.entry.js → p-1531761d.entry.js} +1 -1
  285. package/lib/duet/{p-a78acdab.entry.js → p-160e3d1a.entry.js} +1 -1
  286. package/lib/duet/p-16aa0b6d.js +4 -0
  287. package/lib/duet/{p-8186a629.system.entry.js → p-1707d400.system.entry.js} +1 -1
  288. package/lib/duet/{p-9ebc3482.entry.js → p-17b1d9eb.entry.js} +1 -1
  289. package/lib/duet/{p-ac145455.entry.js → p-17bdab0e.entry.js} +1 -1
  290. package/lib/duet/{p-91aa65aa.entry.js → p-1b798cdc.entry.js} +1 -1
  291. package/lib/duet/{p-bac04faa.system.entry.js → p-1f2e1726.system.entry.js} +1 -1
  292. package/lib/duet/{p-8e10f417.entry.js → p-207c9c44.entry.js} +1 -1
  293. package/lib/duet/{p-f23ee326.entry.js → p-289de2ad.entry.js} +1 -1
  294. package/lib/duet/{p-ba38dfac.entry.js → p-28ce8bb5.entry.js} +1 -1
  295. package/lib/duet/{p-d115d2e5.entry.js → p-2917eb62.entry.js} +1 -1
  296. package/lib/duet/{p-7b19a39e.entry.js → p-293a061c.entry.js} +1 -1
  297. package/lib/duet/p-2bf922c1.system.js +4 -0
  298. package/lib/duet/{p-66fb430d.system.entry.js → p-2ca652ba.system.entry.js} +1 -1
  299. package/lib/duet/{p-521cf68b.system.entry.js → p-311f9175.system.entry.js} +1 -1
  300. package/lib/duet/{p-063362dc.entry.js → p-315dbcb4.entry.js} +1 -1
  301. package/lib/duet/{p-9786696a.system.entry.js → p-327ade54.system.entry.js} +1 -1
  302. package/lib/duet/{p-6d08b396.entry.js → p-346e8e6c.entry.js} +1 -1
  303. package/lib/duet/{p-dedc7d3d.entry.js → p-34c79d16.entry.js} +1 -1
  304. package/lib/duet/p-38797671.system.js +4 -0
  305. package/lib/duet/{p-50e85eb6.entry.js → p-3bcf0e0c.entry.js} +1 -1
  306. package/lib/duet/{p-944c228b.system.entry.js → p-3cfb3848.system.entry.js} +1 -1
  307. package/lib/duet/{p-dd1962aa.system.entry.js → p-3dca9b7e.system.entry.js} +1 -1
  308. package/lib/duet/{p-2b4eeb12.system.entry.js → p-3f55918c.system.entry.js} +1 -1
  309. package/lib/duet/{p-020a3539.entry.js → p-40123642.entry.js} +1 -1
  310. package/lib/duet/{p-113fb7fd.entry.js → p-40144fe2.entry.js} +1 -1
  311. package/lib/duet/{p-f4ef94f9.system.entry.js → p-4468cf59.system.entry.js} +1 -1
  312. package/lib/duet/{p-c1549802.system.entry.js → p-462d86f5.system.entry.js} +1 -1
  313. package/lib/duet/{p-219f8ad0.system.entry.js → p-4934db85.system.entry.js} +1 -1
  314. package/lib/duet/{p-32ff5031.entry.js → p-4a28ce2a.entry.js} +1 -1
  315. package/lib/duet/{p-83e37d00.entry.js → p-4cf06df4.entry.js} +1 -1
  316. package/lib/duet/{p-b1d8a16c.system.entry.js → p-53e6d1bd.system.entry.js} +1 -1
  317. package/lib/duet/{p-9c940c92.system.entry.js → p-547cedf7.system.entry.js} +1 -1
  318. package/lib/duet/{p-85a99bfe.system.entry.js → p-5498fa78.system.entry.js} +1 -1
  319. package/lib/duet/{p-75d8ce27.entry.js → p-577b7a04.entry.js} +1 -1
  320. package/lib/duet/{p-70c0ef8f.system.entry.js → p-57c6e5ee.system.entry.js} +1 -1
  321. package/lib/duet/{p-cf7b7833.entry.js → p-5923daf6.entry.js} +1 -1
  322. package/lib/duet/{p-ef787a77.system.entry.js → p-5c5eabeb.system.entry.js} +1 -1
  323. package/lib/duet/{p-b9971754.entry.js → p-5c886ca3.entry.js} +1 -1
  324. package/lib/duet/{p-93e31a64.system.entry.js → p-5d391571.system.entry.js} +1 -1
  325. package/lib/duet/{p-cb21fdb1.system.entry.js → p-5fb5197f.system.entry.js} +1 -1
  326. package/lib/duet/{p-cd98fdce.entry.js → p-5fd8544a.entry.js} +1 -1
  327. package/lib/duet/{p-6f149655.entry.js → p-618be70d.entry.js} +1 -1
  328. package/lib/duet/{p-a7e3993f.entry.js → p-61b928b9.entry.js} +1 -1
  329. package/lib/duet/{p-9b1fd7a1.entry.js → p-6440b594.entry.js} +1 -1
  330. package/lib/duet/{p-e02549c8.entry.js → p-648b3208.entry.js} +1 -1
  331. package/lib/duet/{p-83373685.entry.js → p-675ade8b.entry.js} +1 -1
  332. package/lib/duet/{p-57983b03.entry.js → p-69a57654.entry.js} +1 -1
  333. package/lib/duet/{p-f4cac723.entry.js → p-6a43c3d5.entry.js} +1 -1
  334. package/lib/duet/{p-10403f18.system.entry.js → p-6c053c50.system.entry.js} +1 -1
  335. package/lib/duet/{p-07d1bca1.system.entry.js → p-6e3445f4.system.entry.js} +1 -1
  336. package/lib/duet/{p-b104c06e.system.entry.js → p-718bbfc5.system.entry.js} +1 -1
  337. package/lib/duet/{p-2a67ea70.entry.js → p-7233b7dc.entry.js} +1 -1
  338. package/lib/duet/p-7394e25f.js +4 -0
  339. package/lib/duet/{p-f9f5e865.system.entry.js → p-73a10c0b.system.entry.js} +1 -1
  340. package/lib/duet/{p-49307c34.system.entry.js → p-7552ad86.system.entry.js} +1 -1
  341. package/lib/duet/{p-7b6ac4e9.system.entry.js → p-75c3f4c0.system.entry.js} +1 -1
  342. package/lib/duet/{p-1a4048cd.entry.js → p-792ef5b7.entry.js} +1 -1
  343. package/lib/duet/{p-c4e79b8a.system.entry.js → p-7b932d97.system.entry.js} +1 -1
  344. package/lib/duet/{p-92d06e19.system.entry.js → p-7e9b2142.system.entry.js} +1 -1
  345. package/lib/duet/{p-1ab64109.entry.js → p-802b8355.entry.js} +1 -1
  346. package/lib/duet/{p-9de73eeb.entry.js → p-81b80553.entry.js} +1 -1
  347. package/lib/duet/{p-c186dac6.system.entry.js → p-82566733.system.entry.js} +1 -1
  348. package/lib/duet/{p-81570fd2.system.entry.js → p-833feae6.system.entry.js} +1 -1
  349. package/lib/duet/{p-ff25bae7.entry.js → p-8793bb34.entry.js} +1 -1
  350. package/lib/duet/{p-b27defab.entry.js → p-8a42beda.entry.js} +1 -1
  351. package/lib/duet/{p-8009931e.system.entry.js → p-8aa280f9.system.entry.js} +1 -1
  352. package/lib/duet/{p-2ca07ca9.entry.js → p-8b1b06da.entry.js} +1 -1
  353. package/lib/duet/{p-61fa14a1.entry.js → p-8fbf3ff6.entry.js} +1 -1
  354. package/lib/duet/{p-0b2b5e02.entry.js → p-90fa9e6e.entry.js} +1 -1
  355. package/lib/duet/p-91748013.entry.js +4 -0
  356. package/lib/duet/{p-0286b7a2.entry.js → p-91baec23.entry.js} +1 -1
  357. package/lib/duet/{p-ccb906e8.entry.js → p-92d02b5c.entry.js} +1 -1
  358. package/lib/duet/{p-f0adf23a.system.entry.js → p-937b5c95.system.entry.js} +1 -1
  359. package/lib/duet/{p-c462b305.entry.js → p-94215f65.entry.js} +1 -1
  360. package/lib/duet/{p-5ce0c9cb.entry.js → p-945fd23a.entry.js} +1 -1
  361. package/lib/duet/{p-9050da89.system.entry.js → p-992557fa.system.entry.js} +1 -1
  362. package/lib/duet/{p-9767cb04.entry.js → p-99f0fae9.entry.js} +1 -1
  363. package/lib/duet/{p-2efddfd9.system.entry.js → p-9a401f2c.system.entry.js} +1 -1
  364. package/lib/duet/{p-0ff6b102.system.entry.js → p-9ba197ac.system.entry.js} +2 -2
  365. package/lib/duet/{p-5c38a0ec.entry.js → p-9c8b9927.entry.js} +1 -1
  366. package/lib/duet/{p-d239ba69.system.entry.js → p-9da464aa.system.entry.js} +1 -1
  367. package/lib/duet/p-a09aa4ba.entry.js +4 -0
  368. package/lib/duet/{p-0643f59c.system.entry.js → p-a0d6fad9.system.entry.js} +1 -1
  369. package/lib/duet/{p-447b2d32.system.entry.js → p-a10f7f46.system.entry.js} +1 -1
  370. package/lib/duet/{p-cad0cb56.system.entry.js → p-a2b81ad4.system.entry.js} +1 -1
  371. package/lib/duet/{p-4975c703.system.entry.js → p-a37c4fbc.system.entry.js} +1 -1
  372. package/lib/duet/{p-aacda988.entry.js → p-a3c12f34.entry.js} +1 -1
  373. package/lib/duet/{p-2966e9fc.entry.js → p-a7498022.entry.js} +1 -1
  374. package/lib/duet/{p-a554240d.system.entry.js → p-a894d8ef.system.entry.js} +1 -1
  375. package/lib/duet/{p-042ddc0b.system.entry.js → p-a9c06558.system.entry.js} +1 -1
  376. package/lib/duet/{p-c116c4c8.system.entry.js → p-a9c261ba.system.entry.js} +1 -1
  377. package/lib/duet/{p-bb39dc49.system.entry.js → p-a9de62bc.system.entry.js} +1 -1
  378. package/lib/duet/{p-5984f636.system.entry.js → p-ad9f0652.system.entry.js} +1 -1
  379. package/lib/duet/{p-64d939e4.system.entry.js → p-aef57e05.system.entry.js} +1 -1
  380. package/lib/duet/{p-02ecdaa3.system.entry.js → p-af19e892.system.entry.js} +1 -1
  381. package/lib/duet/{p-6fdff4ce.system.entry.js → p-af2421e9.system.entry.js} +1 -1
  382. package/lib/duet/{p-b75316c7.system.entry.js → p-af5fe245.system.entry.js} +1 -1
  383. package/lib/duet/p-b06d3b6b.system.entry.js +4 -0
  384. package/lib/duet/{p-853022c3.entry.js → p-b10ebe0a.entry.js} +1 -1
  385. package/lib/duet/{p-d1501256.system.entry.js → p-b4aa698b.system.entry.js} +1 -1
  386. package/lib/duet/{p-7f7c02d3.js → p-b6d6d658.js} +1 -1
  387. package/lib/duet/{p-fde817b4.entry.js → p-b93753a5.entry.js} +1 -1
  388. package/lib/duet/{p-8f404baa.system.entry.js → p-ba6b526a.system.entry.js} +1 -1
  389. package/lib/duet/{p-c016688c.entry.js → p-be1e20e9.entry.js} +1 -1
  390. package/lib/duet/{p-3a537b33.entry.js → p-c1847f8b.entry.js} +1 -1
  391. package/lib/duet/{p-f6f47c4e.system.entry.js → p-c24c4722.system.entry.js} +1 -1
  392. package/lib/duet/{p-62186e95.system.entry.js → p-c6e8bfef.system.entry.js} +1 -1
  393. package/lib/duet/{p-87320ed1.entry.js → p-c72d03aa.entry.js} +1 -1
  394. package/lib/duet/p-c82bbd85.entry.js +4 -0
  395. package/lib/duet/{p-440e33f7.system.entry.js → p-c97ceb80.system.entry.js} +1 -1
  396. package/lib/duet/{p-a1ef9c8d.system.entry.js → p-cb221781.system.entry.js} +1 -1
  397. package/lib/duet/{p-2aa8003d.system.entry.js → p-cb8e71fc.system.entry.js} +1 -1
  398. package/lib/duet/{p-a2b56ad5.entry.js → p-cb94ffa6.entry.js} +1 -1
  399. package/lib/duet/{p-2988e130.system.entry.js → p-cbbe42f5.system.entry.js} +1 -1
  400. package/lib/duet/{p-3839659d.entry.js → p-ce33bf44.entry.js} +1 -1
  401. package/lib/duet/{p-f06a2407.system.entry.js → p-cfd0f787.system.entry.js} +1 -1
  402. package/lib/duet/{p-1ff390cc.entry.js → p-d085c819.entry.js} +1 -1
  403. package/lib/duet/{p-63a328be.entry.js → p-d1dded0d.entry.js} +1 -1
  404. package/lib/duet/{p-a78720f3.system.entry.js → p-d4f23a84.system.entry.js} +1 -1
  405. package/lib/duet/{p-5af292fc.system.entry.js → p-d55907fe.system.entry.js} +1 -1
  406. package/lib/duet/{p-3df81a44.system.js → p-d7159142.system.js} +1 -1
  407. package/lib/duet/{p-62a3aede.system.entry.js → p-daecfcdd.system.entry.js} +1 -1
  408. package/lib/duet/{p-8176ff86.entry.js → p-dbb06949.entry.js} +1 -1
  409. package/lib/duet/{p-d48bf1f7.entry.js → p-dcd5c72b.entry.js} +1 -1
  410. package/lib/duet/{p-e6c629ad.entry.js → p-de03d535.entry.js} +1 -1
  411. package/lib/duet/{p-af7954b6.system.entry.js → p-deb27a44.system.entry.js} +1 -1
  412. package/lib/duet/{p-3e8676ad.system.entry.js → p-df06d448.system.entry.js} +1 -1
  413. package/lib/duet/{p-884d94b6.system.entry.js → p-e3df0b45.system.entry.js} +1 -1
  414. package/lib/duet/{p-8a069add.system.entry.js → p-e58c8fec.system.entry.js} +1 -1
  415. package/lib/duet/{p-7524f91e.system.entry.js → p-e67b7a8a.system.entry.js} +1 -1
  416. package/lib/duet/{p-06b98dcf.entry.js → p-e8315560.entry.js} +1 -1
  417. package/lib/duet/{p-67482eec.entry.js → p-e8778e62.entry.js} +1 -1
  418. package/lib/duet/{p-c3191c9b.entry.js → p-e8bd1272.entry.js} +1 -1
  419. package/lib/duet/{p-3a6f80d9.system.entry.js → p-eabda61d.system.entry.js} +1 -1
  420. package/lib/duet/{p-9356610f.entry.js → p-eadc7225.entry.js} +1 -1
  421. package/lib/duet/{p-8f4c76b0.entry.js → p-eb6b1675.entry.js} +1 -1
  422. package/lib/duet/{p-75998bce.entry.js → p-eebdd34f.entry.js} +1 -1
  423. package/lib/duet/{p-232eb375.entry.js → p-eed2cb3c.entry.js} +1 -1
  424. package/lib/duet/{p-a37fe430.system.entry.js → p-ef58820c.system.entry.js} +1 -1
  425. package/lib/duet/{p-cbb118f1.entry.js → p-f2b2855c.entry.js} +1 -1
  426. package/lib/duet/{p-c3d6acad.system.entry.js → p-f3832666.system.entry.js} +1 -1
  427. package/lib/duet/{p-74c80dcb.system.js → p-f4a6807b.system.js} +1 -1
  428. package/lib/duet/{p-fd857889.system.entry.js → p-f9fc8bd8.system.entry.js} +1 -1
  429. package/lib/duet/{p-97fae0fb.entry.js → p-fa08ad7c.entry.js} +1 -1
  430. package/lib/esm/duet-action-button.entry.js +1 -1
  431. package/lib/esm/duet-alert.entry.js +1 -1
  432. package/lib/esm/duet-badge.entry.js +1 -1
  433. package/lib/esm/duet-banner.entry.js +1 -1
  434. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  435. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  436. package/lib/esm/duet-button_2.entry.js +1 -1
  437. package/lib/esm/duet-callout.entry.js +1 -1
  438. package/lib/esm/duet-caption_4.entry.js +1 -1
  439. package/lib/esm/duet-card.entry.js +1 -1
  440. package/lib/esm/duet-checkbox.entry.js +1 -1
  441. package/lib/esm/duet-checkmark.entry.js +1 -1
  442. package/lib/esm/duet-chip.entry.js +26 -3
  443. package/lib/esm/duet-choice_2.entry.js +2 -2
  444. package/lib/esm/duet-collapsible.entry.js +1 -1
  445. package/lib/esm/duet-combobox.entry.js +1 -1
  446. package/lib/esm/duet-contact-card.entry.js +1 -1
  447. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  448. package/lib/esm/duet-date-picker.entry.js +2 -2
  449. package/lib/esm/duet-divider_2.entry.js +1 -1
  450. package/lib/esm/duet-editable-table_3.entry.js +1 -1
  451. package/lib/esm/duet-empty-state.entry.js +1 -1
  452. package/lib/esm/duet-fieldset.entry.js +1 -1
  453. package/lib/esm/duet-footer.entry.js +1 -1
  454. package/lib/esm/duet-grid_2.entry.js +1 -1
  455. package/lib/esm/duet-header_2.entry.js +1 -1
  456. package/lib/esm/duet-hero.entry.js +1 -1
  457. package/lib/esm/duet-icon.entry.js +1 -1
  458. package/lib/esm/duet-input_2.entry.js +1 -1
  459. package/lib/esm/duet-layout.entry.js +1 -1
  460. package/lib/esm/duet-list_2.entry.js +1 -1
  461. package/lib/esm/duet-menu-bar-button.entry.js +1 -1
  462. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
  463. package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
  464. package/lib/esm/duet-menu-bar-link.entry.js +1 -1
  465. package/lib/esm/duet-menu-bar.entry.js +1 -1
  466. package/lib/esm/duet-modal.entry.js +3 -3
  467. package/lib/esm/duet-multiselect.entry.js +1 -1
  468. package/lib/esm/duet-nav.entry.js +1 -1
  469. package/lib/esm/duet-notification_2.entry.js +1 -1
  470. package/lib/esm/duet-number-input.entry.js +1 -1
  471. package/lib/esm/duet-page-heading.entry.js +1 -1
  472. package/lib/esm/duet-pagination_2.entry.js +1 -1
  473. package/lib/esm/duet-popup-menu-item.entry.js +1 -1
  474. package/lib/esm/duet-popup-menu.entry.js +2 -2
  475. package/lib/esm/duet-progress.entry.js +1 -1
  476. package/lib/esm/duet-promo-card.entry.js +5 -3
  477. package/lib/esm/duet-radio_2.entry.js +1 -1
  478. package/lib/esm/duet-range-slider.entry.js +1 -1
  479. package/lib/esm/duet-scrollable_3.entry.js +1 -1
  480. package/lib/esm/duet-section-layout.entry.js +1 -1
  481. package/lib/esm/duet-select.entry.js +1 -1
  482. package/lib/esm/duet-shaped-image.entry.js +1 -1
  483. package/lib/esm/duet-show-more.entry.js +1 -1
  484. package/lib/esm/duet-slideout-lang.entry.js +1 -1
  485. package/lib/esm/duet-slideout-link.entry.js +1 -1
  486. package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
  487. package/lib/esm/duet-slideout-panel.entry.js +2 -2
  488. package/lib/esm/duet-slideout.entry.js +2 -2
  489. package/lib/esm/duet-step_2.entry.js +1 -1
  490. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
  491. package/lib/esm/duet-submenu-bar-dropdown.entry.js +1 -1
  492. package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
  493. package/lib/esm/duet-submenu-bar.entry.js +1 -1
  494. package/lib/esm/duet-textarea.entry.js +1 -1
  495. package/lib/esm/duet-toggle.entry.js +1 -1
  496. package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
  497. package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
  498. package/lib/esm/duet-toolbar-link.entry.js +1 -1
  499. package/lib/esm/duet-toolbar.entry.js +1 -1
  500. package/lib/esm/duet-tooltip-button_2.entry.js +2 -2
  501. package/lib/esm/duet-tooltip.entry.js +2 -2
  502. package/lib/esm/duet-tray.entry.js +1 -1
  503. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  504. package/lib/esm/duet-upload-item.entry.js +1 -1
  505. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  506. package/lib/esm/duet.js +3 -3
  507. package/lib/esm/{focus-utils-ec77318a.js → focus-utils-eb9b1f72.js} +1 -1
  508. package/lib/esm/{index-cbdca10f.js → index-cc1bfc90.js} +1 -1
  509. package/lib/esm/loader.js +3 -3
  510. package/lib/{dist-custom-elements/p-63c149ab.js → esm/teleport-6b18ccae.js} +14 -0
  511. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  512. package/lib/esm-es5/duet-alert.entry.js +1 -1
  513. package/lib/esm-es5/duet-badge.entry.js +1 -1
  514. package/lib/esm-es5/duet-banner.entry.js +1 -1
  515. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  516. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  517. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  518. package/lib/esm-es5/duet-callout.entry.js +1 -1
  519. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  520. package/lib/esm-es5/duet-card.entry.js +1 -1
  521. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  522. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  523. package/lib/esm-es5/duet-chip.entry.js +2 -2
  524. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  525. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  526. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  527. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  528. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  529. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  530. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  531. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  532. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  533. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  534. package/lib/esm-es5/duet-footer.entry.js +1 -1
  535. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  536. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  537. package/lib/esm-es5/duet-hero.entry.js +1 -1
  538. package/lib/esm-es5/duet-icon.entry.js +1 -1
  539. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  540. package/lib/esm-es5/duet-layout.entry.js +1 -1
  541. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  542. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  543. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  544. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  545. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  546. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  547. package/lib/esm-es5/duet-modal.entry.js +1 -1
  548. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  549. package/lib/esm-es5/duet-nav.entry.js +1 -1
  550. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  551. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  552. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  553. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  554. package/lib/esm-es5/duet-popup-menu-item.entry.js +1 -1
  555. package/lib/esm-es5/duet-popup-menu.entry.js +1 -1
  556. package/lib/esm-es5/duet-progress.entry.js +1 -1
  557. package/lib/esm-es5/duet-promo-card.entry.js +1 -1
  558. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  559. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  560. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  561. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  562. package/lib/esm-es5/duet-select.entry.js +1 -1
  563. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  564. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  565. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  566. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  567. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  568. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  569. package/lib/esm-es5/duet-slideout.entry.js +1 -1
  570. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  571. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  572. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  573. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  574. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  575. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  576. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  577. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  578. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  579. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  580. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  581. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  582. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  583. package/lib/esm-es5/duet-tray.entry.js +1 -1
  584. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  585. package/lib/esm-es5/duet-upload-item.entry.js +1 -1
  586. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  587. package/lib/esm-es5/duet.js +1 -1
  588. package/lib/esm-es5/{focus-utils-ec77318a.js → focus-utils-eb9b1f72.js} +1 -1
  589. package/lib/esm-es5/{index-cbdca10f.js → index-cc1bfc90.js} +1 -1
  590. package/lib/esm-es5/loader.js +1 -1
  591. package/lib/esm-es5/teleport-6b18ccae.js +4 -0
  592. package/lib/types/components/duet-chip/duet-chip.d.ts +7 -1
  593. package/lib/types/components/duet-promo-card/duet-promo-card.d.ts +4 -0
  594. package/lib/types/components.d.ts +10 -2
  595. package/lib/types/utils/teleport.d.ts +3 -0
  596. package/package.json +5 -5
  597. package/lib/duet/p-09c7b65f.system.entry.js +0 -4
  598. package/lib/duet/p-45d92a24.system.js +0 -4
  599. package/lib/duet/p-5e35d78b.entry.js +0 -4
  600. package/lib/duet/p-63c149ab.js +0 -4
  601. package/lib/duet/p-7f330b01.entry.js +0 -4
  602. package/lib/duet/p-94fa4149.system.entry.js +0 -4
  603. package/lib/duet/p-bd14e44c.js +0 -4
  604. package/lib/duet/p-bf77a08c.entry.js +0 -4
  605. package/lib/duet/p-d2f22086.system.js +0 -4
  606. package/lib/esm-es5/teleport-4ede216d.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as t,c as i,h as e,H as o,g as a}from"./p-7f7c02d3.js";import{i as d}from"./p-4ebf1618.js";import{c as r}from"./p-c1325e35.js";import{f as s,w as n}from"./p-12721178.js";const h=class{constructor(e){t(this,e),this.duetChange=i(this,"duetChange",7),this.duetFocus=i(this,"duetFocus",7),this.duetBlur=i(this,"duetBlur",7),this.radioId=r("DuetRadio"),this.onClick=t=>{t.stopPropagation()},this.onChange=t=>{this.checked=this.nativeInput.checked||!1,this.checked&&!this.blockEvents&&this.duetChange.emit({originalEvent:t,checked:this.checked,value:this.value,component:"duet-radio"})},this.onBlur=t=>{this.duetBlur.emit({originalEvent:t,checked:this.checked,value:this.value,component:"duet-radio"})},this.onFocus=t=>{this.duetFocus.emit({originalEvent:t,checked:this.checked,value:this.value,component:"duet-radio"})},this.accessibleActiveDescendant=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleIndex=void 0,this.margin="auto",this.accessibleControls=void 0,this.accessibleOwns=void 0,this.accessibleDescribedBy=void 0,this.theme="",this.disabled=!1,this.required=!1,this.blockEvents=!1,this.identifier=void 0,this.label="label",this.name=void 0,this.role=void 0,this.groupDisabled=void 0,this.groupDirection=void 0,this.groupResponsive=void 0,this.checked=void 0,this.value=void 0}componentWillLoad(){d(this),this.hasLabel=!!this.element.querySelector(":scope > [slot='label']"),void 0===this.value&&(this.value=this.identifier)}async setFocus(t){this.nativeInput.focus(t)}render(){const t=this.identifier||this.radioId;return e(o,{onClick:this.onClick,class:{horizontal:"horizontal"===this.groupDirection&&!this.groupResponsive,"horizontal-responsive":"horizontal"===this.groupDirection&&this.groupResponsive,"duet-m-0":"none"===this.margin}},e("div",{class:{"duet-radio-container":!0,"duet-theme-turva":"turva"===this.theme}},e("input",{type:"radio",onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,value:this.value,tabindex:this.accessibleIndex,class:{"duet-radio":!0,disabled:this.disabled||this.groupDisabled},checked:this.checked,disabled:this.disabled||this.groupDisabled,required:this.required,"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,role:this.role,name:this.name,id:t,ref:t=>this.nativeInput=t}),e("label",{class:"duet-label",htmlFor:t},e("div",{class:"duet-label-content"},this.hasLabel?e("slot",{name:"label"}):this.label))))}get element(){return a(this)}};h.style='*.sc-duet-radio,*.sc-duet-radio::after,*.sc-duet-radio::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-radio-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:28px !important;margin-bottom:12px !important;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}.sc-duet-radio-h:last-child,.sc-duet-radio-h:last-of-type{margin-right:0 !important}.vertical.sc-duet-radio-h{margin-right:0 !important}.horizontal.sc-duet-radio-h{margin-bottom:0 !important;width:auto}.horizontal.sc-duet-radio-h .duet-label.sc-duet-radio .duet-label-content.sc-duet-radio{max-width:100%}@media (min-width: 48em){.horizontal-responsive.sc-duet-radio-h{margin-right:28px !important;margin-bottom:0 !important;width:auto}.horizontal-responsive.sc-duet-radio-h:last-child,.horizontal-responsive.sc-duet-radio-h:last-of-type{margin-right:0 !important}.horizontal-responsive.sc-duet-radio-h .duet-label.sc-duet-radio .duet-label-content.sc-duet-radio{max-width:100%}}.duet-m-0.sc-duet-radio-h{margin:0 !important}.sc-duet-radio-h:last-child:not(:only-child){margin-right:0 !important;margin-bottom:0 !important}.duet-label.sc-duet-radio{position:relative;z-index:100;display:flex;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;hyphens:auto;line-height:1.5;color:rgb(0, 41, 77);word-break:break-word;overflow-wrap:break-word;cursor:pointer;background:transparent}.duet-theme-turva.sc-duet-radio .duet-label.sc-duet-radio{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-label.sc-duet-radio .duet-label-content.sc-duet-radio{flex-grow:1;font-size:1rem}.duet-label-hidden.sc-duet-radio .duet-label.sc-duet-radio{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.duet-radio-container.sc-duet-radio{position:relative;width:100%;height:100%}.duet-radio.sc-duet-radio{padding:14px !important;position:absolute;top:0;left:0;z-index:200;width:100%;height:100%;cursor:pointer;opacity:0}.duet-radio.sc-duet-radio+label.sc-duet-radio::before{z-index:100;flex-shrink:0;width:20px;height:20px;margin:2px 10px 1px 1px;content:"";background:rgb(255, 255, 255);border:1px solid rgb(0, 41, 77);border-radius:50%}.duet-theme-turva.sc-duet-radio .duet-radio.sc-duet-radio+label.sc-duet-radio::before{border-color:rgb(23, 28, 58)}.duet-radio.sc-duet-radio:focus+label.sc-duet-radio::before{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-theme-turva.sc-duet-radio .duet-radio.sc-duet-radio:focus+label.sc-duet-radio::before{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-radio.sc-duet-radio:checked+label.sc-duet-radio::after{position:absolute;top:6px;left:5px;z-index:200;flex-shrink:0;width:12px;height:12px;content:"";background:rgb(0, 41, 77);border-radius:50%}.duet-theme-turva.sc-duet-radio .duet-radio.sc-duet-radio:checked+label.sc-duet-radio::after{background:rgb(23, 28, 58)}.duet-radio[disabled].sc-duet-radio{cursor:default}.duet-radio[disabled].sc-duet-radio+label.sc-duet-radio{color:rgb(101, 119, 135)}.duet-theme-turva.sc-duet-radio .duet-radio[disabled].sc-duet-radio+label.sc-duet-radio{color:rgb(116, 116, 117)}.duet-radio[disabled].sc-duet-radio+label.sc-duet-radio::before{border-color:rgb(207, 210, 212)}.duet-theme-turva.sc-duet-radio .duet-radio[disabled].sc-duet-radio+label.sc-duet-radio::before{border-color:rgb(207, 207, 209)}.duet-radio[disabled].sc-duet-radio:checked+label.sc-duet-radio::before{border:1px solid rgb(101, 119, 135)}.duet-radio[disabled].sc-duet-radio:checked+label.sc-duet-radio::after{background:rgb(101, 119, 135)}.duet-theme-turva.sc-duet-radio .duet-radio[disabled].sc-duet-radio:checked+label.sc-duet-radio::after{background:rgb(116, 116, 117);border-color:rgb(116, 116, 117)}';const u=class{constructor(i){t(this,i),this.onSelect=t=>{const i=t.target;i&&(this.value=i.value),t.cancelBubble=!0},this.direction="vertical",this.margin="auto",this.theme="",this.error="",this.tooltip="",this.tooltipDirection="auto",this.name=void 0,this.label="Label",this.labelHidden=!1,this.caption="",this.responsive=!1,this.value=void 0,this.disabled=void 0}async connectedCallback(){const t=this.element;if(void 0===this.value){const i=s(t,"duet-radio");void 0!==i&&(await i.componentOnReady(),void 0===this.value&&(this.value=i.value))}this.mutationO=n(t,"duet-radio",(t=>{void 0!==t?t.componentOnReady().then((()=>{this.value=t.value})):this.updateRadios()})),this.updateRadios()}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0)}componentWillLoad(){d(this)}async updateRadios(){const t=Array.from(this.element.querySelectorAll("duet-radio")),{value:i}=this;let e=!1;for(const o of t)o.name=this.name,o.groupDisabled=this.disabled,o.groupDirection=this.direction,o.groupResponsive=this.responsive,e||o.value!==i?o.checked=!1:(e=!0,o.checked=!0);e||(this.value=void 0)}render(){return e(o,{onDuetChange:this.onSelect,class:{horizontal:"horizontal"===this.direction}},e("duet-fieldset",{label:this.label,labelHidden:this.labelHidden,caption:this.caption,error:this.error,margin:this.margin,theme:this.theme},this.tooltip&&e("duet-tooltip",{slot:"tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),e("div",{class:{"duet-radio-group":!0,"duet-no-stacking":!this.responsive}},e("slot",null))))}get element(){return a(this)}static get watchers(){return{name:["updateRadios"],value:["updateRadios"],disabled:["updateRadios"],direction:["updateRadios"],responsive:["updateRadios"]}}};u.style="*.sc-duet-radio-group,*.sc-duet-radio-group::after,*.sc-duet-radio-group::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-radio-group-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.horizontal.sc-duet-radio-group-h .duet-radio-group.sc-duet-radio-group{display:block}@media (min-width: 48em){.horizontal.sc-duet-radio-group-h .duet-radio-group.sc-duet-radio-group{display:flex}}.horizontal.sc-duet-radio-group-h .duet-radio-group.duet-no-stacking.sc-duet-radio-group{display:flex}.deut-radio-group.sc-duet-radio-group{width:100%}";export{h as duet_radio,u as duet_radio_group}
4
+ import{r as t,c as i,h as e,H as o,g as a}from"./p-b6d6d658.js";import{i as d}from"./p-4ebf1618.js";import{c as r}from"./p-c1325e35.js";import{f as s,w as n}from"./p-12721178.js";const h=class{constructor(e){t(this,e),this.duetChange=i(this,"duetChange",7),this.duetFocus=i(this,"duetFocus",7),this.duetBlur=i(this,"duetBlur",7),this.radioId=r("DuetRadio"),this.onClick=t=>{t.stopPropagation()},this.onChange=t=>{this.checked=this.nativeInput.checked||!1,this.checked&&!this.blockEvents&&this.duetChange.emit({originalEvent:t,checked:this.checked,value:this.value,component:"duet-radio"})},this.onBlur=t=>{this.duetBlur.emit({originalEvent:t,checked:this.checked,value:this.value,component:"duet-radio"})},this.onFocus=t=>{this.duetFocus.emit({originalEvent:t,checked:this.checked,value:this.value,component:"duet-radio"})},this.accessibleActiveDescendant=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleIndex=void 0,this.margin="auto",this.accessibleControls=void 0,this.accessibleOwns=void 0,this.accessibleDescribedBy=void 0,this.theme="",this.disabled=!1,this.required=!1,this.blockEvents=!1,this.identifier=void 0,this.label="label",this.name=void 0,this.role=void 0,this.groupDisabled=void 0,this.groupDirection=void 0,this.groupResponsive=void 0,this.checked=void 0,this.value=void 0}componentWillLoad(){d(this),this.hasLabel=!!this.element.querySelector(":scope > [slot='label']"),void 0===this.value&&(this.value=this.identifier)}async setFocus(t){this.nativeInput.focus(t)}render(){const t=this.identifier||this.radioId;return e(o,{onClick:this.onClick,class:{horizontal:"horizontal"===this.groupDirection&&!this.groupResponsive,"horizontal-responsive":"horizontal"===this.groupDirection&&this.groupResponsive,"duet-m-0":"none"===this.margin}},e("div",{class:{"duet-radio-container":!0,"duet-theme-turva":"turva"===this.theme}},e("input",{type:"radio",onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,value:this.value,tabindex:this.accessibleIndex,class:{"duet-radio":!0,disabled:this.disabled||this.groupDisabled},checked:this.checked,disabled:this.disabled||this.groupDisabled,required:this.required,"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,role:this.role,name:this.name,id:t,ref:t=>this.nativeInput=t}),e("label",{class:"duet-label",htmlFor:t},e("div",{class:"duet-label-content"},this.hasLabel?e("slot",{name:"label"}):this.label))))}get element(){return a(this)}};h.style='*.sc-duet-radio,*.sc-duet-radio::after,*.sc-duet-radio::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-radio-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:28px !important;margin-bottom:12px !important;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}.sc-duet-radio-h:last-child,.sc-duet-radio-h:last-of-type{margin-right:0 !important}.vertical.sc-duet-radio-h{margin-right:0 !important}.horizontal.sc-duet-radio-h{margin-bottom:0 !important;width:auto}.horizontal.sc-duet-radio-h .duet-label.sc-duet-radio .duet-label-content.sc-duet-radio{max-width:100%}@media (min-width: 48em){.horizontal-responsive.sc-duet-radio-h{margin-right:28px !important;margin-bottom:0 !important;width:auto}.horizontal-responsive.sc-duet-radio-h:last-child,.horizontal-responsive.sc-duet-radio-h:last-of-type{margin-right:0 !important}.horizontal-responsive.sc-duet-radio-h .duet-label.sc-duet-radio .duet-label-content.sc-duet-radio{max-width:100%}}.duet-m-0.sc-duet-radio-h{margin:0 !important}.sc-duet-radio-h:last-child:not(:only-child){margin-right:0 !important;margin-bottom:0 !important}.duet-label.sc-duet-radio{position:relative;z-index:100;display:flex;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;hyphens:auto;line-height:1.5;color:rgb(0, 41, 77);word-break:break-word;overflow-wrap:break-word;cursor:pointer;background:transparent}.duet-theme-turva.sc-duet-radio .duet-label.sc-duet-radio{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-label.sc-duet-radio .duet-label-content.sc-duet-radio{flex-grow:1;font-size:1rem}.duet-label-hidden.sc-duet-radio .duet-label.sc-duet-radio{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.duet-radio-container.sc-duet-radio{position:relative;width:100%;height:100%}.duet-radio.sc-duet-radio{padding:14px !important;position:absolute;top:0;left:0;z-index:200;width:100%;height:100%;cursor:pointer;opacity:0}.duet-radio.sc-duet-radio+label.sc-duet-radio::before{z-index:100;flex-shrink:0;width:20px;height:20px;margin:2px 10px 1px 1px;content:"";background:rgb(255, 255, 255);border:1px solid rgb(0, 41, 77);border-radius:50%}.duet-theme-turva.sc-duet-radio .duet-radio.sc-duet-radio+label.sc-duet-radio::before{border-color:rgb(23, 28, 58)}.duet-radio.sc-duet-radio:focus+label.sc-duet-radio::before{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-theme-turva.sc-duet-radio .duet-radio.sc-duet-radio:focus+label.sc-duet-radio::before{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-radio.sc-duet-radio:checked+label.sc-duet-radio::after{position:absolute;top:6px;left:5px;z-index:200;flex-shrink:0;width:12px;height:12px;content:"";background:rgb(0, 41, 77);border-radius:50%}.duet-theme-turva.sc-duet-radio .duet-radio.sc-duet-radio:checked+label.sc-duet-radio::after{background:rgb(23, 28, 58)}.duet-radio[disabled].sc-duet-radio{cursor:default}.duet-radio[disabled].sc-duet-radio+label.sc-duet-radio{color:rgb(101, 119, 135)}.duet-theme-turva.sc-duet-radio .duet-radio[disabled].sc-duet-radio+label.sc-duet-radio{color:rgb(116, 116, 117)}.duet-radio[disabled].sc-duet-radio+label.sc-duet-radio::before{border-color:rgb(207, 210, 212)}.duet-theme-turva.sc-duet-radio .duet-radio[disabled].sc-duet-radio+label.sc-duet-radio::before{border-color:rgb(207, 207, 209)}.duet-radio[disabled].sc-duet-radio:checked+label.sc-duet-radio::before{border:1px solid rgb(101, 119, 135)}.duet-radio[disabled].sc-duet-radio:checked+label.sc-duet-radio::after{background:rgb(101, 119, 135)}.duet-theme-turva.sc-duet-radio .duet-radio[disabled].sc-duet-radio:checked+label.sc-duet-radio::after{background:rgb(116, 116, 117);border-color:rgb(116, 116, 117)}';const u=class{constructor(i){t(this,i),this.onSelect=t=>{const i=t.target;i&&(this.value=i.value),t.cancelBubble=!0},this.direction="vertical",this.margin="auto",this.theme="",this.error="",this.tooltip="",this.tooltipDirection="auto",this.name=void 0,this.label="Label",this.labelHidden=!1,this.caption="",this.responsive=!1,this.value=void 0,this.disabled=void 0}async connectedCallback(){const t=this.element;if(void 0===this.value){const i=s(t,"duet-radio");void 0!==i&&(await i.componentOnReady(),void 0===this.value&&(this.value=i.value))}this.mutationO=n(t,"duet-radio",(t=>{void 0!==t?t.componentOnReady().then((()=>{this.value=t.value})):this.updateRadios()})),this.updateRadios()}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0)}componentWillLoad(){d(this)}async updateRadios(){const t=Array.from(this.element.querySelectorAll("duet-radio")),{value:i}=this;let e=!1;for(const o of t)o.name=this.name,o.groupDisabled=this.disabled,o.groupDirection=this.direction,o.groupResponsive=this.responsive,e||o.value!==i?o.checked=!1:(e=!0,o.checked=!0);e||(this.value=void 0)}render(){return e(o,{onDuetChange:this.onSelect,class:{horizontal:"horizontal"===this.direction}},e("duet-fieldset",{label:this.label,labelHidden:this.labelHidden,caption:this.caption,error:this.error,margin:this.margin,theme:this.theme},this.tooltip&&e("duet-tooltip",{slot:"tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),e("div",{class:{"duet-radio-group":!0,"duet-no-stacking":!this.responsive}},e("slot",null))))}get element(){return a(this)}static get watchers(){return{name:["updateRadios"],value:["updateRadios"],disabled:["updateRadios"],direction:["updateRadios"],responsive:["updateRadios"]}}};u.style="*.sc-duet-radio-group,*.sc-duet-radio-group::after,*.sc-duet-radio-group::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-radio-group-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.horizontal.sc-duet-radio-group-h .duet-radio-group.sc-duet-radio-group{display:block}@media (min-width: 48em){.horizontal.sc-duet-radio-group-h .duet-radio-group.sc-duet-radio-group{display:flex}}.horizontal.sc-duet-radio-group-h .duet-radio-group.duet-no-stacking.sc-duet-radio-group{display:flex}.deut-radio-group.sc-duet-radio-group{width:100%}";export{h as duet_radio,u as duet_radio_group}
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,a,i){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,l){function o(e){try{s(i.next(e))}catch(e){l(e)}}function r(e){try{s(i["throw"](e))}catch(e){l(e)}}function s(e){e.done?a(e.value):n(e.value).then(o,r)}s((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},i,n,l,o;return o={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function r(e){return function(t){return s([e,t])}}function s(r){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,r[0]&&(a=0)),a)try{if(i=1,n&&(l=r[0]&2?n["return"]:r[0]?n["throw"]||((l=n["return"])&&l.call(n),0):n.next)&&!(l=l.call(n,r[1])).done)return l;if(n=0,l)r=[r[0]&2,l.value];switch(r[0]){case 0:case 1:l=r;break;case 4:a.label++;return{value:r[1],done:false};case 5:a.label++;n=r[1];r=[0];continue;case 7:r=a.ops.pop();a.trys.pop();continue;default:if(!(l=a.trys,l=l.length>0&&l[l.length-1])&&(r[0]===6||r[0]===2)){a=0;continue}if(r[0]===3&&(!l||r[1]>l[0]&&r[1]<l[3])){a.label=r[1];break}if(r[0]===6&&a.label<l[1]){a.label=l[1];l=r;break}if(l&&a.label<l[2]){a.label=l[2];a.ops.push(r);break}if(l[2])a.ops.pop();a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e];n=0}finally{i=l=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,a){if(a||arguments.length===2)for(var i=0,n=t.length,l;i<n;i++){if(l||!(i in t)){if(!l)l=Array.prototype.slice.call(t,0,i);l[i]=t[i]}}return e.concat(l||Array.prototype.slice.call(t))};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register(["./p-3df81a44.system.js","./p-33b3aba4.system.js","./p-34ea0849.system.js","./p-51721695.system.js","./p-43660fa9.system.js","./p-8c6e3c4f.system.js","./p-71a46879.system.js","./p-5f6bd5db.system.js","./p-6aa821df.system.js","./p-b6d51921.system.js"],(function(e){"use strict";var t,a,i,n,l,o,r,s,d,u,p,h,f,c,b,m,g,y,v,x,k,w;return{setters:[function(e){t=e.h;a=e.r;i=e.c;n=e.H;l=e.g;o=e.F},function(e){r=e.i},function(e){s=e.f;d=e.d},function(e){u=e.i},function(e){p=e.a;h=e.c;f=e.d;c=e.g;b=e.s},function(e){m=e.p;g=e.s},function(e){y=e.b;v=e.a},function(e){x=e.c},function(e){k=e.g;w=e.a},function(){}],execute:function(){var L=function(e,a){var i=e.data,n=e.groupId,l=e.alignment;var o="duet-editable-table duet-editable-table-content-".concat(n);if(typeof i==="string"){return t("td",{innerHTML:i,class:o,part:"".concat(n,"content"),style:{verticalAlign:l}})}else{return t("td",{class:o,part:"".concat(n,"content"),style:{verticalAlign:l}},i)}};var D=".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 M=e("duet_editable_table",function(){function e(e){var t=this;a(this,e);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(e,a){a.preventDefault();var i=e.sort_order,n=e.direction,l=e.index,o=e.key;t.duetTableToggle.emit({sort_order:i,index:l,direction:n,key:o,component:"duet-editable-table",originalEvent:a})};this.handleKeyDown=function(e,a){if(u(a)){t.toggleColumn(e,a)}};this.language=p();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}e.prototype.componentWillLoad=function(){r(this);this.hasHeadSlotFirst=!!this.element.querySelector("[slot='thead-first']");this.hasHeadSlotLast=!!this.element.querySelector("[slot='thead-last']");this.hasFootSlot=!!this.element.querySelector("[slot='tfoot']")};e.prototype.connectedCallback=function(){h(this)};e.prototype.disconnectedCallback=function(){f(this)};e.prototype.createLabel=function(e){var a=this;var i=e.sort_order,n=e.direction,l=e.index,o=e.label;var r=c(o);if(!this.sortable){return r}var s=function(){if(!!i&&n===1){return"action-arrow-down-small"}else if(!!i&&n===-1){return"action-arrow-up-small"}return"action-subtract-small"};return t("span",{class:"duet-table-label","data-index":l},t("duet-button",{size:"small",icon:s(),"icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":true,onClick:function(t){return a.toggleColumn(e,t)},onKeyDown:function(t){return a.handleKeyDown(e,t)}},r))};e.prototype.getSortedColumns=function(){return __spreadArray([],this.columns,true).sort(s(["index"]))};e.prototype.getRowSortOrder=function(){var e=__spreadArray([],this.columns,true).sort(s(["sort_order"]));return e.filter((function(e){return e.sort_order})).map((function(e){return e.direction===-1?"-".concat(e.key):e.key}))};e.prototype.renderTableHeader=function(){var e=this;if(!this.columns){return}var a=this.getSortedColumns();return t("tr",{class:{"duet-table-action-header":!!this.actions}},a.map((function(a){if(a.display!==false){var i=e.createLabel(a);return i!==""?t("th",{scope:"col"},i):t("td",null)}})),this.actions&&t("th",{scope:"col",class:"duet-table-action-header-heading"},this.actions&&t("duet-visually-hidden",null,this.actionColumnLabel[this.language])))};e.prototype.renderActions=function(e,a){var i=this;if(!this.actions){return}return t("td",{class:"duet-text-right"},this.actions.map((function(n){return t("duet-action-button",{actionMeta:Object.assign({},(e===null||e===void 0?void 0:e.meta)||{},{index:a}),actionId:(e===null||e===void 0?void 0:e.uid)||(e===null||e===void 0?void 0:e.id)||null,actionName:n.name,theme:i.theme,iconName:n.icon,iconColor:n.color,iconSize:n.size,background:n.background,"accessible-label":"".concat(e.actionDescription||""," ").concat(c(n.label)," ")})})))};e.prototype.renderTableBody=function(){var e=this;var a=this.getSortedColumns();var i=this.getRowSortOrder();var n=__spreadArray([],this.rows,true).sort(s(i));return n.map((function(i,n){var l;return t("tr",{class:(l={"duet-table-action-row":!!e.actions,"duet-editable-table-row":true},l["duet-editable-table-row-".concat(e.groupId)]=true,l),"data-meta":JSON.stringify(i.meta)},a.map((function(a){var n=i[a.key]?i[a.key]:i.item;if(a.display!==false){return t(L,{data:n,groupId:e.groupId})}})),e.actions&&e.renderActions(i,n))}))};e.prototype.render=function(){var e;return t(n,{class:(e={},e["duet-editable-table-".concat(this.variation)]=true,e["duet-editable-table"]=true,e["duet-editable-table-".concat(this.theme)]=true,e["duet-editable-table-scrollable"]=this.breakpoint==="none-scrollable",e["duet-editable-table-sortable"]=this.sortable,e["duet-editable-table-actions"]=!!this.actions,e["duet-m-0"]=this.margin==="none",e["duet-theme-turva"]=this.theme==="turva",e)},t("duet-table",{class:"duet-editable-table-table",sticky:this.sticky,stickyDistance:this.stickyDistance,margin:this.margin,theme:this.theme,variation:this.variation,breakpoint:this.breakpoint,"hide-head-visually":this.hideHeadVisually},t("table",{role:this.accessibleRole},t("caption",null,t("slot",{name:"tcaption"})),t("thead",null,this.hasHeadSlotFirst&&t("tr",null,t("td",{class:"duet-editable-table-actions-menu",colSpan:99},t("slot",{name:"thead-first"}))),this.renderTableHeader(),this.hasHeadSlotLast&&t("tr",null,t("td",{class:"duet-editable-table-actions-menu",colSpan:99},t("slot",{name:"thead-last"})))),t("tbody",null,this.renderTableBody()),this.hasFootSlot&&t("tfoot",null,t("tr",null,t("td",{class:"duet-editable-table-footer-menu",colSpan:99},t("slot",{name:"tfoot"})))))))};Object.defineProperty(e.prototype,"element",{get:function(){return l(this)},enumerable:false,configurable:true});return e}());M.style=D;var I='duet-table{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;font-variant-numeric:tabular-nums}duet-table table,duet-table thead,duet-table tbody,duet-table tfoot,duet-table th,duet-table td,duet-table tr{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}duet-table.duet-m-0{margin:0 !important}duet-table table{width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;text-align:left;border-spacing:0;border-collapse:separate}duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead,duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead *{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}duet-table.duet-theme-turva table{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}duet-table td{-webkit-hyphens:auto;hyphens:auto;color:rgb(0, 41, 77)}duet-table.duet-theme-turva td{color:rgb(23, 28, 58)}duet-table th{font-weight:600;line-height:1.25;color:rgb(101, 119, 135);text-align:left}duet-table.duet-theme-turva th{color:rgb(116, 116, 117)}duet-table tbody th{font-weight:600;color:rgb(0, 41, 77)}duet-table.duet-theme-turva tbody th{color:rgb(23, 28, 58)}duet-table .duet-table-action-row td:last-child{justify-self:end;padding-right:20px !important;white-space:nowrap}duet-table span.duet-table-cell-heading{display:none}.duet-table-flattened table,.duet-table-flattened thead,.duet-table-flattened tbody,.duet-table-flattened tfoot,.duet-table-flattened th,.duet-table-flattened td,.duet-table-flattened tr{display:block}.duet-table-flattened thead tr{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}.duet-table-flattened td{line-height:1.25}.duet-table-flattened td:not(:last-child){margin-bottom:16px !important}.duet-table-flattened td span.duet-table-cell-heading{margin-bottom:4px !important;display:block;font-size:1rem;font-weight:600;color:rgb(0, 41, 77)}.duet-table-flattened.duet-theme-turva td span.duet-table-cell-heading{color:rgb(23, 28, 58)}.duet-table-flattened tbody td,.duet-table-flattened tbody th,.duet-table-flattened tfoot td{padding:0 !important;text-align:left !important}.duet-table-flattened tbody th{font-weight:600;line-height:1.25;color:rgb(101, 119, 135);text-align:left}.duet-table-sticky thead th{position:sticky;top:0;background:rgb(255, 255, 255)}.duet-table-striped td,.duet-table-striped th{padding:20px !important}@media (max-width: 35.9375em){.duet-table-striped td,.duet-table-striped th{padding:20px 12px !important}}.duet-table-striped tbody th{background:rgb(255, 255, 255)}.duet-table-striped.duet-table-sticky thead th{border-bottom:1px solid rgb(225, 227, 230)}.duet-table-striped.duet-table-sticky.duet-theme-turva thead th{border-bottom-color:rgb(228, 228, 230)}.duet-table-striped tbody:not(:first-of-type) th{padding-top:40px !important}.duet-table-striped tbody:only-of-type tr:nth-of-type(odd){background:rgba(0, 80, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(0, 80, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tfoot td{border-top:1px solid rgb(225, 227, 230)}.duet-table-striped.duet-theme-turva tfoot td{border-top-color:rgb(228, 228, 230)}.duet-table-striped.duet-table-flattened tbody:not(:first-of-type) th{padding-top:20px !important}.duet-table-striped.duet-table-flattened tr{padding:20px !important}.duet-table-striped.duet-table-flattened tfoot td{border-top:0}.duet-table-striped.duet-table-flattened tfoot tr{border-top:1px solid rgb(225, 227, 230)}.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:rgb(228, 228, 230)}.duet-table-fixed th,.duet-table-minimal th,.duet-table-plain th{padding:16px !important;border-bottom:1px solid rgb(101, 119, 135)}.duet-table-fixed th:first-child,.duet-table-minimal th:first-child,.duet-table-plain th:first-child{padding-left:0 !important}.duet-table-fixed th:last-child,.duet-table-minimal th:last-child,.duet-table-plain th:last-child{padding-right:0 !important}.duet-theme-turva.duet-table-fixed th,.duet-theme-turva.duet-table-minimal th,.duet-theme-turva.duet-table-plain th{border-bottom-color:rgb(68, 68, 69)}.duet-table-fixed tbody th,.duet-table-minimal tbody th,.duet-table-plain tbody th{padding-top:40px !important;border-bottom-color:rgb(225, 227, 230)}.duet-theme-turva.duet-table-fixed tbody th,.duet-theme-turva.duet-table-minimal tbody th,.duet-theme-turva.duet-table-plain tbody th{border-bottom-color:rgb(228, 228, 230)}.duet-table-fixed td,.duet-table-minimal td,.duet-table-plain td{padding:16px !important}.duet-table-fixed td:first-child,.duet-table-minimal td:first-child,.duet-table-plain td:first-child{padding-left:0 !important}.duet-table-fixed td:last-child,.duet-table-minimal td:last-child,.duet-table-plain td:last-child{padding-right:0 !important}.duet-table-fixed tbody td,.duet-table-minimal tbody td,.duet-table-plain tbody td{border-bottom:1px solid rgb(225, 227, 230)}.duet-theme-turva.duet-table-fixed tbody td,.duet-theme-turva.duet-table-minimal tbody td,.duet-theme-turva.duet-table-plain tbody td{border-bottom-color:rgb(228, 228, 230)}.duet-table-flattened.duet-table-fixed tbody:first-of-type th,.duet-table-flattened.duet-table-minimal tbody:first-of-type th,.duet-table-flattened.duet-table-plain tbody:first-of-type th{padding-top:0 !important}.duet-table-flattened.duet-table-fixed td,.duet-table-flattened.duet-table-minimal td,.duet-table-flattened.duet-table-plain td,.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{border-bottom:0}.duet-table-flattened.duet-table-fixed tr,.duet-table-flattened.duet-table-minimal tr,.duet-table-flattened.duet-table-plain tr{padding:20px 0 !important}.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{padding-top:20px !important}.duet-table-flattened.duet-table-fixed tfoot td,.duet-table-flattened.duet-table-minimal tfoot td,.duet-table-flattened.duet-table-plain tfoot td{margin-bottom:4px !important}.duet-table-flattened.duet-table-fixed tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-minimal tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-plain tbody:not(:only-of-type) tr:first-child{border-bottom:0}.duet-table-plain.duet-table-flattened tbody tr{border-bottom:1px solid rgb(225, 227, 230)}.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:rgb(228, 228, 230)}.duet-table-minimal tbody tr,.duet-table-minimal tbody tr td{vertical-align:top;border-bottom:0 none}.duet-table-minimal tbody tr:last-of-type,.duet-table-minimal tbody tr:last-of-type td{border-bottom:1px solid rgb(225, 227, 230)}.duet-table-minimal.duet-table-flattened tbody tr,.duet-table-minimal.duet-table-flattened tbody tr td{border-bottom:0 none}.duet-table-minimal.duet-table-flattened tbody tr td[data-heading]::before{display:none}.duet-table-minimal.duet-table-flattened tfoot{border-top:1px solid rgb(225, 227, 230)}.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.duet-table-fixed table{table-layout:fixed}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td,.duet-table-fixed tbody tr td:first-child{padding:4px !important;vertical-align:text-bottom;border-bottom:0 none}.duet-table-fixed thead{display:none}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td{border-bottom:0 none}.duet-table-fixed:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(225, 227, 230)}.duet-table-fixed:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.duet-table-scrollable{position:relative;width:100%;overflow-x:auto;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0)), linear-gradient(-90deg, #fff 0%, rgba(255, 255, 255, 0)) 100% 0, radial-gradient(farthest-side at 0% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)) 100% 0%;background-repeat:no-repeat;background-attachment:local, local, scroll, scroll;background-size:100px 100%, 100px 100%, 12px 100%, 12px 100%}.duet-table-selected-column{background:rgba(0, 119, 179, 0.08)}.duet-theme-turva .duet-table-selected-column{background:rgba(68, 68, 69, 0.08)}.duet-table-sortable tbody tr td:first-child,.duet-table-sortable thead tr th:first-child{padding:20px}.duet-table-sortable:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(225, 227, 230)}.duet-table-sortable:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.duet-table-actions table{table-layout:auto}.duet-table-actions thead th:last-child{width:1px;white-space:nowrap}.duet-editable-table-table.duet-table-flattened tr{display:grid;grid-template-columns:repeat(2, 1fr);grid-auto-rows:auto;gap:10px}.duet-editable-table-table.duet-table-flattened tr.duet-table-action-row td:last-child::before{padding:0;content:""}.duet-editable-table-table.duet-table-flattened td{grid-column:1/2}.duet-editable-table-table.duet-table-flattened td:first-child{grid-row:1;grid-column:1}.duet-editable-table-table.duet-table-flattened td:last-child{grid-row:1;grid-column:2}';var S={none:0,"with-links":parseFloat(m)*16,"without-links":parseFloat(g)*16};var T=e("duet_table",function(){function e(e){var t=this;a(this,e);this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)";this.handleMediaQueryChange=function(e){t.matchesBreakpoint=y.includes(t.breakpoint)?!e.matches:e.matches};this.matchesBreakpoint=true;this.language=p();this.theme=undefined;this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.hideHeadVisually=false}e.prototype.watchLanguageStateHandler=function(e,t){var a=this;if(e!==t){setTimeout((function(){return a.copyHeadingsToCells()}),50)}};e.prototype.connectedCallback=function(){var e=this;var t=this.breakpoint==="none"||this.breakpoint==="none-scrollable"?"all":v[this.breakpoint];this.mq=matchMedia(t);this.mq.addEventListener("change",d(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);this.observer=new MutationObserver((function(){return d(e.copyHeadingsToCells(),50)}));this.observer.observe(this.element,{childList:true,subtree:true})};e.prototype.componentWillLoad=function(){r(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 e=S[this.stickyDistance];var t=this.element.querySelectorAll(this.headingSelector);t.forEach((function(t){return t.style.top="".concat(e,"px")}))}};e.prototype.componentDidLoad=function(){this.observer?this.observer.takeRecords():null;h(this)};e.prototype.disconnectedCallback=function(){this.observer.disconnect();this.observer=null;this.mq.removeListener(this.handleMediaQueryChange);this.mq=null;this.matchesBreakpoint=true;f(this)};e.prototype.copyHeadingsToCells=function(){var e=this.element.querySelectorAll(this.headingSelector);var t=this.element.querySelectorAll("tbody tr");var a=Array.from(e).map((function(e){return e.textContent.trim()}));t.forEach((function(e){e.querySelectorAll("td").forEach((function(e,t){if(a[t]){var i=e.querySelector(".duet-table-cell-heading");if(!i||i.textContent!==a[t]){i===null||i===void 0?void 0:i.remove();var n=document.createElement("span");n.textContent=a[t];n.classList.add("duet-table-cell-heading");n.setAttribute("aria-hidden","true");n.inert=true;e.prepend(n)}}}))}))};e.prototype.render=function(){var e;return t(n,{class:(e={},e["duet-table-".concat(this.variation)]=true,e["duet-table-flattened"]=!this.matchesBreakpoint,e["duet-table-sticky"]=this.matchesBreakpoint&&this.sticky,e["duet-table-scrollable"]=this.breakpoint==="none-scrollable",e["duet-m-0"]=this.margin==="none",e["duet-theme-turva"]=this.theme==="turva",e["duet-table-hide-head-visually"]=this.hideHeadVisually,e)},t("slot",null))};Object.defineProperty(e.prototype,"element",{get:function(){return l(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{language:["watchLanguageStateHandler"]}},enumerable:false,configurable:true});return e}());T.style=I;var _=[{type:"default",system_message:"unknown error",message:{fi:"Tapahtui tuntematon virhe, ole hyvä ja yritä uudelleen.",sv:"Ett okänt fel uppstod, försök igen.",en:"An unknown error occured, please try again."}},{type:"400",system_message:"Bad Request: The server could not understand the request due to invalid syntax.",message:{fi:"Tiedostoa ei hyväksytty.",sv:"Servern avvisade din fil.",en:"The server rejected your file."}},{type:"401",system_message:"Not Authenticated: The client must authenticate itself to get the requested response...",message:{fi:"Vain kirjautunut käyttäjä voi lähettää tiedostoja.",sv:"Du måste vara inloggad för att ladda upp filer.",en:"You need to be logged in to upload files."}},{type:"403",system_message:"No Access: The client does not have access rights to the content.",message:{fi:"Ei oikeuksia lähettää tiedostoja.",sv:"Du har inte rätt åtkomsträttigheter för att ladda upp filer.",en:"You do not have the correct access rights to upload files."}},{type:"413",system_message:"Payload too large",message:{fi:"Tiedosto oli liian vastaanotettavaksi.",sv:"Filen var för stor för servern att hantera.",en:"The file was to large for the server to handle."}},{type:"415",system_message:"Unsupported media type",message:{fi:"Tiedoston tyyppi oli väärä.",sv:"Servern avvisade filen eftersom den hade fel typ.",en:"The server rejected the file because it had the wrong type."}},{type:"429",system_message:"Too many request from same address",message:{fi:"Liian monta yritystä, ole hyvä ja yritä myöhemmin uudelleen.",sv:"Servern har fått många förfrågningar från dig, försök igen senare.",en:"The server has received to many request from you, please try again later."}},{type:"500",system_message:"Internal Server Error",message:{fi:"Palvelin ilmoitti tuntemattomasta virheestä ja lataus epäonnistui.",sv:"Servern rapporterade ett okänt fel och uppladdningen misslyckades.",en:"The server reported an unknown error and the upload failed."}},{type:"duet-upload-100",system_message:"File extension not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den type.",en:"You cannot upload files with that extension."}},{type:"duet-upload-001",system_message:"File transfer failed",message:{fi:"Tiedoston lähetys keskeytyi, ole hyvä ja yritä uudelleen.",sv:"Din anslutning till servern avbröts, försök igen.",en:"Your connection to the server was interrupted, try again."}},{type:"duet-upload-101",system_message:"File mimetype not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den typ.",en:"You cannot upload files of that type."}},{type:"duet-upload-201",system_message:"File is too large",message:{fi:"Tiedosto on liian iso.",sv:"Filen är större än tillåtet.",en:"The file is larger than permitted."}},{type:"duet-upload-202",system_message:"The combined size of all files is too large",message:{fi:"Tiedostojen yhteenlaskettu koko on liian iso.",sv:"Du har nått den maximala kombinerade filstorleken.",en:"You have reached the maximum combined filesize."}},{type:"duet-upload-203",system_message:"Files to upload exceed total byte size limit",message:{fi:"Yritit lisätä tiedostoja, jotka ylittäisivät suurimman sallitun yhteenlasketun koon.",sv:"Du försökte lägga till filer som skulle överskrida den maximala kombinerade storleken.",en:"You tried to add files that would exceed the maximum combined size."}},{type:"duet-upload-301",system_message:"The maximum file limit has been reached",message:{fi:"Liitteiden maksimimäärä saavutettu.",sv:"Maximalt antal bilagor har uppnåtts.",en:"Maximum number of attachments reached."}},{type:"duet-upload-302",system_message:"Files to upload exceeds limits",message:{fi:"Et voi lähettää enempää kuin enimmäismäärän liitteitä.",sv:"Du kan inte ladda upp fler än det maximala antalet bilagor.",en:"You can't upload more than maximum number of attachments."}}];var E={fi:"Liiteluettelo",sv:"Lista över bilagor",en:"Attachments list"};var F=function(e){var a=e.label,i=e.categoryLabel;return t("div",{class:"items-header",tabindex:"0","aria-label":c(E)},i&&t("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},c(i)),t("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(e,t){if(!t){return true}var a=e.split(".");var i=t.split(",");var n=a[a.length-1];return i.includes(n)};var U=function(e,t){if(!t||!e){return true}var a=t.split(",");var i=false;a.forEach((function(t){var a=t.split("/");var n=e.split("/");if(a[0]===n[0]&&(a[1]===n[1]||a[1]==="*")){i=true}}));return i};var z=function(e,t){if(!t||!e){return true}return t>=e};var A=function(e,t,a){var i=t.allowedMimetypes,n=t.allowedExtensions,l=t.maxBytes;var o=false;var r=k("default",a);if(e){var s=e.name,d=e.type,u=e.size;var p=U(d,i);var h=n==="all"||n===""||n===" "||n===undefined?true:C(s.toLowerCase(),n);var f=z(u,l);if(!p){r=k("duet-upload-101",a)}if(!h){r=k("duet-upload-100",a)}if(!f){r=k("duet-upload-201",a)}o=p&&h&&f}else{o=false}return{valid:o,errorMessage:o?undefined:c(r.message),errorSystem:o?undefined:r.system_message,errorType:o?undefined:r.type}};var R=function(e,t){var a=0;if(t){e.forEach((function(e){if(e.valid&&e.size){a+=e.size}}));if(a>=t){return true}}return false};var B=function(e,t){var a=0;if(t){e.forEach((function(e){if(e.valid){a++}}));if(a>=t){return true}}return false};var H=function(e,t,a){if(e+t>a){return true}return false};var P=function(e,t,a){var i=0;if(a){e.forEach((function(e){if(e.valid&&e.size){i+=e.size}}));t.forEach((function(e){if(e.size){i+=e.size}}));if(i>=a){return true}}return false};var j=function(e){var t=e.payload,a=e.options,i=e.onFailure,n=e.onSuccess,l=e.onProgress;var o=a.type,r=o===void 0?"POST":o,s=a.xhr,d=a.uri,u=a.argument,p=u===void 0?null:u,h=a.headers,f=h===void 0?null:h;s.open(r,"".concat(d).concat(p||""),true);var c=t.data,b=t.name;if(f){Object.keys(f).forEach((function(e){s.setRequestHeader(e,f[e])}))}if(r==="POST"){s.onreadystatechange=function(){if(s.readyState===XMLHttpRequest.DONE&&s.status>=200&&s.status<300){n(s,b,s.status)}if(s.readyState===XMLHttpRequest.DONE&&s.status>=300&&s.status<999){i(s,b,s.status)}};l(b)}s.send(c);return s};var V="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}::slotted([slot=uploadfooter]){margin-top:20px}.duet-upload{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}duet-paragraph::part(duet-paragraph){word-break:break-word}duet-editable-table tfoot{display:none}.upload-bottom-caption{margin-top:12px;margin-bottom:16px;line-height:1.4rem}.items-header{display:none;flex-direction:row;margin-bottom:0}@media (min-width: 36em){.items-header{display:flex}}.items-header:not(:last-child),.items-header:not(:first-child){margin-top:12px}.items-header .category-header{width:35%}.items-header .filename-header{width:65%}.items-header .filename-header.no-category{width:100%}.upload-item-row{display:flex;flex-direction:column;gap:16px;align-content:center;align-items:center;padding:16px 0 16px 0;border-bottom:1px solid rgb(225, 227, 230)}@media (min-width: 36em){.upload-item-row{flex-direction:row;gap:10px}}.upload-item-row .item-categories{width:100%}@media (min-width: 36em){.upload-item-row .item-categories{width:35%}}.upload-item-row .item-name{position:relative;bottom:2px;width:100%;text-align:left}@media (min-width: 36em){.upload-item-row .item-name{width:50%}.upload-item-row .item-name.no-category{width:85%}}.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:block}@media (min-width: 36em){.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:none}}.upload-item-row .item-actions{width:100%;margin-left:-8px;text-align:left}@media (min-width: 36em){.upload-item-row .item-actions{width:15%;padding-top:0;margin-left:auto;text-align:right}}.upload-item-row .duet-upload-item-name duet-icon{position:relative;top:4px}.upload-item-row .duet-upload-item-name duet-progress{display:block;margin-top:16px}";var q=e("duet_upload",function(){function e(e){var n=this;a(this,e);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=d((function(){n.tick=Date.now()}),30);this.categoryLabel={en:"Category",sv:"Filtyp",fi:"Tiedostotyyppi"};this.listenForActionEvents=function(){n.element.addEventListener("duetActionEvent",(function(e){var t=e.detail;var a=t.action,i=t.id,l=t.originalEvent;switch(a){case"delete":n.onDelete(i,l);break;case"cancel":n.onCancel(i,l);break}}))};this.verifyValidity=function(){var e=n.getFilesAsArray(),t=e.invalid,a=e.valid;var i=n.valid;n.valid=t.length===0&&a.length!==0;if(n.valid!==i){n.duetState.emit({originalEvent:undefined,data:{valid:n.valid,from:"componentWillRender"},component:"duet-upload"})}};this.getGroupFromItemData=function(e){if(e.valid&&e.progress===100){return n.DefaultGroups.success}else if(e.progress>0&&e.progress!==100){return n.DefaultGroups.inprogress}else if(!e.valid){return n.DefaultGroups.failure}else if(e.pending){return n.DefaultGroups.pending}else if(e.group){return e.group}else{return"none"}};this.mapFilesToUploadItems=function(e,a,i){if(a===n.DefaultGroups.success){return t("duet-upload-item",{theme:n.theme,actions:n.getActions(a),type:"success",data:e,showLinks:n.showLinks,linkClickEvent:n.emitEvent?n.linkClick:undefined,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:i,ref:function(t){n.itemRefs.set(e.uid,t)}})}else if(a===n.DefaultGroups.inprogress){return t("duet-upload-item",{theme:n.theme,actions:n.getActions(a),type:"inprogress",data:e,showLinks:n.showLinks,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:i,ref:function(t){n.itemRefs.set(e.uid,t)}})}else if(a===n.DefaultGroups.pending){return t("duet-upload-item",{theme:n.theme,actions:n.getActions(a),type:"pending",data:e,showLinks:n.showLinks,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:i,ref:function(t){n.itemRefs.set(e.uid,t)}})}else if(a===n.DefaultGroups.failure){return t("duet-upload-item",{theme:n.theme,actions:n.getActions(a),type:"failure",data:e,showLinks:n.showLinks,errorCodes:n.errorCodes,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:i,ref:function(t){n.itemRefs.set(e.uid,t)}})}else if(e.group){return e.html}else{return"none"}};this.genHashName=function(){return Date.now().toString(36)+Math.random()};this.updateValueInMap=function(e,t,a,i){if(i===void 0){i=true}try{var l=n.files.get(e);l[t]=a;n.files.set(e,l);if(n.external&&t!=="url"){n.trackProgress(e,t==="uploaded")}}catch(e){}if(i){n.kick()}};this.updateProgress=function(e,t){var a=function(a){n.updateValueInMap(t,"progress",a);n.onProgress(t,a,e)};if(e.lengthComputable){var i=e.loaded/e.total*100;a(i)}else{console.log("cant read progress")}};this.trackProgress=function(e,t){if(t===void 0){t=false}if(t){n.filesInProgress.delete(e)}else{n.filesInProgress.set(e,"inprogress")}if(n.filesInProgress.size===0){n.onDone()}};this.getFilesAsArray=function(){var e=[];var t=[];n.files.forEach((function(a){if(a.valid&&!a.deleted){e.push(a)}else if(!a.valid&&!a.deleted){t.push(a)}}));return{valid:e,invalid:t}};this.resetFormFields=function(){n.nativeInput.value=""};this.startUpload=function(e,t){if(t===void 0){t=undefined}return __awaiter(n,void 0,void 0,(function(){var a,i,n;return __generator(this,(function(l){a=this.validateTotals(),i=a.bytesMaxReached,n=a.fileMaxReached;if(i||n){this.kick();return[2]}this.metaData=t;this.nativeInput.click();this.onUpload(e,t);e.stopPropagation();e.preventDefault();return[2]}))}))};this.transferComplete=function(e){n.updateValueInMap(e,"progress",100,false);n.trackProgress(e,true)};this.transferDone=function(e,t,a){n.updateValueInMap(t,"status",a,false);n.updateValueInMap(t,"uploaded",true,false);try{var i=JSON.parse(e.response);n.updateValueInMap(t,"url",i.url)}catch(e){n.updateValueInMap(t,"url",null);console.error("Server did not respond with expected response {url: string}")}return};this.transferDoneWithFailure=function(e,t,a){try{var i=JSON.parse(e.response).error;n.updateValueInMap(t,"error",{message:i.message,type:i.type},false)}catch(e){console.error("Server did not respond with expected response error:{message: string, type: int}");n.updateValueInMap(t,"error",{type:a},false)}n.updateValueInMap(t,"valid",false,true)};this.transferFailed=function(e){n.updateValueInMap(e,"error",w("duet-upload-001",n.errorCodes))};this.transferCanceled=function(e){n.files.delete(e);n.validateTotals(e);n.kick()};this.validateTotals=function(e){var t=R(n.files,n.maxBytesTotal);var a=B(n.files,n.maxFiles);if(t&&e){n.updateValueInMap(e,"error",w("duet-upload-202",n.errorCodes),false)}if(a&&e){n.updateValueInMap(e,"error",w("duet-upload-301",n.errorCodes),false)}n.bytesMaxReached=t;n.fileMaxReached=a;return{bytesMaxReached:t,fileMaxReached:a}};this.uploadFile=function(e,t,a){if(t===void 0){t=false}return __awaiter(n,void 0,void 0,(function(){var i,n,l;return __generator(this,(function(o){switch(o.label){case 0:if(!t&&this.deferUpload){this.updateValueInMap(e.item.name,"pending",true,false);this.updateValueInMap(e.item.name,"group","pending",true)}else if(t){this.updateValueInMap(e.item.name,"pending",false,false);this.updateValueInMap(e.item.name,"group",undefined,true)}o.label=1;case 1:o.trys.push([1,4,,5]);if(!(!this.deferUpload||t))return[3,3];i=new FormData;i.append("file",e.item);if(a){i.append("key",a)}i.append("uid",e.uid);i.append("name",e.item.name);i.append("metadata",JSON.stringify({uid:e.uid,url:this.uri,size:e.item.size,meta:e.meta}));n=e;return[4,this.makeXHRPostRequest(i)];case 2:n.xhr=o.sent();o.label=3;case 3:return[3,5];case 4:l=o.sent();this.updateValueInMap(e.item.name,"valid",false,false);return[3,5];case 5:return[2]}}))}))};this.uploadPendingFiles=function(){for(var e=0,t=Array.from(n.files.entries());e<t.length;e++){var a=t[e],i=a[0],l=a[1];if(l.group==="pending"&&l.pending===true){n.uploadFile(l,true,i)}}};this.getItemFromUID=function(e){for(var t=0,a=Array.from(n.files.entries());t<a.length;t++){var i=a[t],l=i[0],o=i[1];if(o.uid===e){return{value:o,key:l}}}return null};this.handleExternalUploadButton=function(e,t){if(n.externalUploadButton){if(e||t){n.externalUploadButton.disabled=true}else{n.externalUploadButton.disabled=false}}};this.onDelete=function(e,t){var a=n.getItemFromUID(e);var i=a.key;var l=n.files.get(i);n.files.delete(i);var o=n.validateTotals(),r=o.bytesMaxReached,s=o.fileMaxReached;n.handleExternalUploadButton(r,s);n.kick();n.duetDelete.emit({originalEvent:t,data:{deletion:l},component:"duet-upload"});if(!n.external&&!l.pending){n.makeXHRDeleteRequest(l)}n.resetFormFields()};this.onCancel=function(e,t){var a=n.getItemFromUID(e).key;var i=n.files.get(a);n.files.delete(a);var l=n.validateTotals(),o=l.bytesMaxReached,r=l.fileMaxReached;n.handleExternalUploadButton(o,r);if(!n.external){var s=i.xhr;if(s){s.abort()}}n.kick();n.resetFormFields();n.duetCancel.emit({originalEvent:t,data:{cancelled:i},component:"duet-upload"})};this.onUpload=function(e,t){n.duetUpload.emit({originalEvent:e,metaData:t,component:"duet-upload"})};this.onBlur=function(e){n.duetBlur.emit({originalEvent:e,component:"duet-upload"})};this.onProgress=function(e,t,a){n.duetChange.emit({originalEvent:a,data:{key:e,percentComplete:t},component:"duet-upload"})};this.onFocus=function(e){n.duetFocus.emit({originalEvent:e,component:"duet-upload"})};this.onReady=function(){n.duetReady.emit({component:"duet-upload"})};this.onDone=function(){n.duetDone.emit({component:"duet-upload",data:{files:n.files}})};this.filterMap=function(){var e=Array.from(n.files.values());var t=[];var a=[];var i=[];var l=[];var o=false;e.forEach((function(e){var r=n.getGroupFromItemData(e);if(e.meta&&!!e.meta.badges){o=true}if(r===n.DefaultGroups.success){l.push({uid:e.uid,data:e})}else if(r===n.DefaultGroups.inprogress){t.push({uid:e.uid,data:e})}else if(r===n.DefaultGroups.pending){i.push({uid:e.uid,data:e})}else if(r===n.DefaultGroups.failure){a.push({uid:e.uid,data:e})}else if(e.group){t.push({uid:e.uid,data:e})}}));return{pending:i,failure:a,success:l,inprogress:t,hasCategory:o}};this.getActions=function(e){return n.actions.filter((function(t){return t.map.includes(e)}))};this.renderUploadedItems=function(){n.itemRefs.clear();var e=n.filterMap();var a=e.hasCategory;var i=n.groups.map((function(i){var l=e[i.id];if(!(l===null||l===void 0?void 0:l.length)){return}return t(o,null,!n.hideGroups&&t(F,{categoryLabel:a?n.categoryLabel:undefined,label:i.label}),l.map((function(e){return n.mapFilesToUploadItems(e.data,i.id,a)})))}));return t(o,null,n.showUploadedItemsHeader&&t(F,{categoryLabel:a?n.categoryLabel:undefined,label:n.uploadedItemsHeaderLabel}),i)};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=_;this.name=undefined;this.maxBytes=2e8;this.maxBytesTotal=undefined;this.maxFiles=99;this.allowedExtensions="all";this.allowedMimetypes="";this.multiple=true;this.limitSelection=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.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"}}]}e.prototype.watchValidHandler=function(e,t){if(e!==t){this.kick()}};e.prototype.componentWillLoad=function(){if(typeof this.statusMessageLabel==="string"){this.internalStatusMessageLabel=b(this.groups)}else{this.internalStatusMessageLabel=this.statusMessageLabel}r(this);this.listenForActionEvents();this.onReady();this.externalUploadButton=document.querySelector("#".concat(this.externalUploadButtonId))};e.prototype.componentWillRender=function(){this.verifyValidity()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.nativeInput){this.nativeInput.focus(e)}return[2]}))}))};e.prototype.upload=function(e){if(e===void 0){e=undefined}return __awaiter(this,void 0,void 0,(function(){var t,a,i;return __generator(this,(function(n){t=this.validateTotals(),a=t.bytesMaxReached,i=t.fileMaxReached;if(a||i){this.handleExternalUploadButton(a,i);this.kick();return[2]}this.metaData=e;this.nativeInput.click();return[2]}))}))};e.prototype.uploadPending=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.uploadPendingFiles();return[2]}))}))};e.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.kick();return[4,this.setFocus()];case 1:e.sent();return[2]}}))}))};e.prototype.getFiles=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(!this.files||this.files.size===0){return[2,false]}return[2,this.getFilesAsArray()]}))}))};e.prototype.updateValue=function(e,t,a){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.updateValueInMap(e,t,a);return[2]}))}))};e.prototype.focusActionButton=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(a){switch(a.label){case 0:return[4,(t=this.itemRefs.get(e))===null||t===void 0?void 0:t.focusActionButton()];case 1:a.sent();return[2]}}))}))};e.prototype.render=function(){var e=this;var a=this.identifier||this.uploadId;var i=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024);var l=Math.round(this.maxBytes/1024/1024);var r=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());r=r.replace(/{maxbytes}/g,"".concat(l.toString()," MB"));r=r.replace(/{maxbytestotal}/g,"".concat(i.toString()," MB"));r=r.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", "));if(this.externalUploadButton){this.externalUploadButton.ariaLabel=r}return t(n,{class:{"duet-m-0":this.margin==="none"}},t("duet-fieldset",{"label-heading-level":this.headerHeadingLevel,"label-hidden":this.hideHeader,label:this.label,caption:!this.captionOnBottom?r:undefined},t("slot",{name:"header"}),!this.files.size&&t("duet-empty-state",{id:this.labelId,part:this.identifier?"".concat(this.identifier,"-empty-state"):"duet-upload-empty-state",icon:"messaging-attachment"},t("duet-paragraph",{margin:"none"},this.fileListEmpty)),!!this.files.size&&t("slot",{name:"fileheader"}),!!this.files.size&&t("duet-upload-aria-status",{invalid:this.getFilesAsArray().invalid.length,valid:this.getFilesAsArray().valid.length,inprogress:this.filesInProgress.size,total:this.files.size,statusMessageLabel:this.internalStatusMessageLabel}),!!this.files.size&&this.renderUploadedItems(),!!this.files.size&&t("slot",{name:"filefooter"}),t("slot",{name:"uploadfooter"}),this.captionOnBottom&&t("duet-caption",{margin:"none",size:"small"},t("div",{class:"upload-bottom-caption"},r)),t("slot",{name:"afterfooter"}),!this.hideButton&&t(o,null,t("duet-spacer",{size:"large"}),t("duet-button",{id:this.buttonId,onClick:this.startUpload,"accessible-controls":a,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel,"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)&&t(o,null,t("duet-spacer",{size:"medium"}),t("duet-alert",{part:this.identifier?"".concat(this.identifier,"-error-notification"):"duet-upload-error-notification"},this.fileMaxReached&&w("duet-upload-301",this.errorCodes),this.bytesMaxReached&&w("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&w("duet-upload-302",this.errorCodes),this.filesToUploadTotalSizeIsAboveMax&&w("duet-upload-203",this.errorCodes))),t("duet-visually-hidden",{"aria-hidden":"true"},t("input",{ref:function(t){e.nativeInput=t},accept:!this.limitSelection?undefined:"".concat(this.allowedMimetypes,",").concat(this.allowedExtensions),onBlur:this.onBlur,onFocus:this.onFocus,onChange:function(t){return e.onChange(t)},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}))))};e.prototype.makeXHRPostRequest=function(e){var t=this;var a=new XMLHttpRequest;var i=e.get("name");a.upload.addEventListener("progress",(function(e){t.updateProgress(e,i)}));a.upload.addEventListener("load",(function(){t.transferComplete(i)}));a.upload.addEventListener("error",(function(){t.transferFailed(i)}));a.upload.addEventListener("abort",(function(){t.transferCanceled(i)}));var n={payload:{data:e,name:i},options:{type:"POST",uri:this.uri,xhr:a,argument:null,headers:undefined},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){n=this.middleware(n)}return j(n)};e.prototype.makeXHRDeleteRequest=function(e){var t=e.uid,a=e.item;var i=new XMLHttpRequest;var n={"x-fileuid":t,"x-filename":a.name};var l={payload:{data:null,name:name},options:{type:"DELETE",xhr:i,uri:this.uri,argument:"?key=".concat(t,"&name=").concat(a.name),headers:n},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){l=this.middleware(l)}return j(l)};e.prototype.onChange=function(e){return __awaiter(this,void 0,void 0,(function(){var t,a,i,n,l,o,r,s,d,u,p,h;return __generator(this,(function(f){switch(f.label){case 0:a=Array.from((t=this.nativeInput)===null||t===void 0?void 0:t.files);this.filesToUploadExceedsLimit=false;if(H(this.files.size,a.length,this.maxFiles)){this.filesToUploadExceedsLimit=true;this.kick();return[2]}this.filesToUploadTotalSizeIsAboveMax=false;if(P(this.files,a,this.maxBytesTotal)){this.filesToUploadTotalSizeIsAboveMax=true;this.kick();return[2]}if(!a)return[3,6];i=0,n=a;f.label=1;case 1:if(!(i<n.length))return[3,6];l=n[i];o=A(l,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),r=o.valid,s=o.errorMessage,d=o.errorType,u=o.errorSystem;p=this.genHashName();h={uid:p,item:l,size:l.size,meta:this.metaData,uploaded:false,valid:r,error:{type:r?undefined:d,message:r?undefined:s,system_message:r?undefined:u},progress:0,deleted:false,xhr:false,url:false};this.files.set(l.name,h);if(!(r&&!this.external))return[3,3];return[4,this.uploadFile(h)];case 2:f.sent();return[3,4];case 3:if(r&&this.external){this.updateValueInMap(h.item.name,"pending",true,false);this.updateValueInMap(h.item.name,"group","pending",true)}else if(!r){this.updateValueInMap(l.name,"valid",false,true)}f.label=4;case 4:this.kick();f.label=5;case 5:i++;return[3,1];case 6:this.resetFormFields();this.metaData=undefined;this.duetChange.emit({originalEvent:e,data:{files:this.files},component:"duet-upload"});return[2]}}))}))};Object.defineProperty(e.prototype,"element",{get:function(){return l(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{valid:["watchValidHandler"]}},enumerable:false,configurable:true});return e}());q.style=V}}}));
4
+ */System.register(["./p-d7159142.system.js","./p-33b3aba4.system.js","./p-34ea0849.system.js","./p-51721695.system.js","./p-43660fa9.system.js","./p-8c6e3c4f.system.js","./p-71a46879.system.js","./p-5f6bd5db.system.js","./p-6aa821df.system.js","./p-b6d51921.system.js"],(function(e){"use strict";var t,a,i,n,l,o,r,s,d,u,p,h,f,c,b,m,g,y,v,x,k,w;return{setters:[function(e){t=e.h;a=e.r;i=e.c;n=e.H;l=e.g;o=e.F},function(e){r=e.i},function(e){s=e.f;d=e.d},function(e){u=e.i},function(e){p=e.a;h=e.c;f=e.d;c=e.g;b=e.s},function(e){m=e.p;g=e.s},function(e){y=e.b;v=e.a},function(e){x=e.c},function(e){k=e.g;w=e.a},function(){}],execute:function(){var L=function(e,a){var i=e.data,n=e.groupId,l=e.alignment;var o="duet-editable-table duet-editable-table-content-".concat(n);if(typeof i==="string"){return t("td",{innerHTML:i,class:o,part:"".concat(n,"content"),style:{verticalAlign:l}})}else{return t("td",{class:o,part:"".concat(n,"content"),style:{verticalAlign:l}},i)}};var D=".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 M=e("duet_editable_table",function(){function e(e){var t=this;a(this,e);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(e,a){a.preventDefault();var i=e.sort_order,n=e.direction,l=e.index,o=e.key;t.duetTableToggle.emit({sort_order:i,index:l,direction:n,key:o,component:"duet-editable-table",originalEvent:a})};this.handleKeyDown=function(e,a){if(u(a)){t.toggleColumn(e,a)}};this.language=p();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}e.prototype.componentWillLoad=function(){r(this);this.hasHeadSlotFirst=!!this.element.querySelector("[slot='thead-first']");this.hasHeadSlotLast=!!this.element.querySelector("[slot='thead-last']");this.hasFootSlot=!!this.element.querySelector("[slot='tfoot']")};e.prototype.connectedCallback=function(){h(this)};e.prototype.disconnectedCallback=function(){f(this)};e.prototype.createLabel=function(e){var a=this;var i=e.sort_order,n=e.direction,l=e.index,o=e.label;var r=c(o);if(!this.sortable){return r}var s=function(){if(!!i&&n===1){return"action-arrow-down-small"}else if(!!i&&n===-1){return"action-arrow-up-small"}return"action-subtract-small"};return t("span",{class:"duet-table-label","data-index":l},t("duet-button",{size:"small",icon:s(),"icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":true,onClick:function(t){return a.toggleColumn(e,t)},onKeyDown:function(t){return a.handleKeyDown(e,t)}},r))};e.prototype.getSortedColumns=function(){return __spreadArray([],this.columns,true).sort(s(["index"]))};e.prototype.getRowSortOrder=function(){var e=__spreadArray([],this.columns,true).sort(s(["sort_order"]));return e.filter((function(e){return e.sort_order})).map((function(e){return e.direction===-1?"-".concat(e.key):e.key}))};e.prototype.renderTableHeader=function(){var e=this;if(!this.columns){return}var a=this.getSortedColumns();return t("tr",{class:{"duet-table-action-header":!!this.actions}},a.map((function(a){if(a.display!==false){var i=e.createLabel(a);return i!==""?t("th",{scope:"col"},i):t("td",null)}})),this.actions&&t("th",{scope:"col",class:"duet-table-action-header-heading"},this.actions&&t("duet-visually-hidden",null,this.actionColumnLabel[this.language])))};e.prototype.renderActions=function(e,a){var i=this;if(!this.actions){return}return t("td",{class:"duet-text-right"},this.actions.map((function(n){return t("duet-action-button",{actionMeta:Object.assign({},(e===null||e===void 0?void 0:e.meta)||{},{index:a}),actionId:(e===null||e===void 0?void 0:e.uid)||(e===null||e===void 0?void 0:e.id)||null,actionName:n.name,theme:i.theme,iconName:n.icon,iconColor:n.color,iconSize:n.size,background:n.background,"accessible-label":"".concat(e.actionDescription||""," ").concat(c(n.label)," ")})})))};e.prototype.renderTableBody=function(){var e=this;var a=this.getSortedColumns();var i=this.getRowSortOrder();var n=__spreadArray([],this.rows,true).sort(s(i));return n.map((function(i,n){var l;return t("tr",{class:(l={"duet-table-action-row":!!e.actions,"duet-editable-table-row":true},l["duet-editable-table-row-".concat(e.groupId)]=true,l),"data-meta":JSON.stringify(i.meta)},a.map((function(a){var n=i[a.key]?i[a.key]:i.item;if(a.display!==false){return t(L,{data:n,groupId:e.groupId})}})),e.actions&&e.renderActions(i,n))}))};e.prototype.render=function(){var e;return t(n,{class:(e={},e["duet-editable-table-".concat(this.variation)]=true,e["duet-editable-table"]=true,e["duet-editable-table-".concat(this.theme)]=true,e["duet-editable-table-scrollable"]=this.breakpoint==="none-scrollable",e["duet-editable-table-sortable"]=this.sortable,e["duet-editable-table-actions"]=!!this.actions,e["duet-m-0"]=this.margin==="none",e["duet-theme-turva"]=this.theme==="turva",e)},t("duet-table",{class:"duet-editable-table-table",sticky:this.sticky,stickyDistance:this.stickyDistance,margin:this.margin,theme:this.theme,variation:this.variation,breakpoint:this.breakpoint,"hide-head-visually":this.hideHeadVisually},t("table",{role:this.accessibleRole},t("caption",null,t("slot",{name:"tcaption"})),t("thead",null,this.hasHeadSlotFirst&&t("tr",null,t("td",{class:"duet-editable-table-actions-menu",colSpan:99},t("slot",{name:"thead-first"}))),this.renderTableHeader(),this.hasHeadSlotLast&&t("tr",null,t("td",{class:"duet-editable-table-actions-menu",colSpan:99},t("slot",{name:"thead-last"})))),t("tbody",null,this.renderTableBody()),this.hasFootSlot&&t("tfoot",null,t("tr",null,t("td",{class:"duet-editable-table-footer-menu",colSpan:99},t("slot",{name:"tfoot"})))))))};Object.defineProperty(e.prototype,"element",{get:function(){return l(this)},enumerable:false,configurable:true});return e}());M.style=D;var I='duet-table{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;font-variant-numeric:tabular-nums}duet-table table,duet-table thead,duet-table tbody,duet-table tfoot,duet-table th,duet-table td,duet-table tr{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}duet-table.duet-m-0{margin:0 !important}duet-table table{width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;text-align:left;border-spacing:0;border-collapse:separate}duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead,duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead *{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}duet-table.duet-theme-turva table{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}duet-table td{-webkit-hyphens:auto;hyphens:auto;color:rgb(0, 41, 77)}duet-table.duet-theme-turva td{color:rgb(23, 28, 58)}duet-table th{font-weight:600;line-height:1.25;color:rgb(101, 119, 135);text-align:left}duet-table.duet-theme-turva th{color:rgb(116, 116, 117)}duet-table tbody th{font-weight:600;color:rgb(0, 41, 77)}duet-table.duet-theme-turva tbody th{color:rgb(23, 28, 58)}duet-table .duet-table-action-row td:last-child{justify-self:end;padding-right:20px !important;white-space:nowrap}duet-table span.duet-table-cell-heading{display:none}.duet-table-flattened table,.duet-table-flattened thead,.duet-table-flattened tbody,.duet-table-flattened tfoot,.duet-table-flattened th,.duet-table-flattened td,.duet-table-flattened tr{display:block}.duet-table-flattened thead tr{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}.duet-table-flattened td{line-height:1.25}.duet-table-flattened td:not(:last-child){margin-bottom:16px !important}.duet-table-flattened td span.duet-table-cell-heading{margin-bottom:4px !important;display:block;font-size:1rem;font-weight:600;color:rgb(0, 41, 77)}.duet-table-flattened.duet-theme-turva td span.duet-table-cell-heading{color:rgb(23, 28, 58)}.duet-table-flattened tbody td,.duet-table-flattened tbody th,.duet-table-flattened tfoot td{padding:0 !important;text-align:left !important}.duet-table-flattened tbody th{font-weight:600;line-height:1.25;color:rgb(101, 119, 135);text-align:left}.duet-table-sticky thead th{position:sticky;top:0;background:rgb(255, 255, 255)}.duet-table-striped td,.duet-table-striped th{padding:20px !important}@media (max-width: 35.9375em){.duet-table-striped td,.duet-table-striped th{padding:20px 12px !important}}.duet-table-striped tbody th{background:rgb(255, 255, 255)}.duet-table-striped.duet-table-sticky thead th{border-bottom:1px solid rgb(225, 227, 230)}.duet-table-striped.duet-table-sticky.duet-theme-turva thead th{border-bottom-color:rgb(228, 228, 230)}.duet-table-striped tbody:not(:first-of-type) th{padding-top:40px !important}.duet-table-striped tbody:only-of-type tr:nth-of-type(odd){background:rgba(0, 80, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(0, 80, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tfoot td{border-top:1px solid rgb(225, 227, 230)}.duet-table-striped.duet-theme-turva tfoot td{border-top-color:rgb(228, 228, 230)}.duet-table-striped.duet-table-flattened tbody:not(:first-of-type) th{padding-top:20px !important}.duet-table-striped.duet-table-flattened tr{padding:20px !important}.duet-table-striped.duet-table-flattened tfoot td{border-top:0}.duet-table-striped.duet-table-flattened tfoot tr{border-top:1px solid rgb(225, 227, 230)}.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:rgb(228, 228, 230)}.duet-table-fixed th,.duet-table-minimal th,.duet-table-plain th{padding:16px !important;border-bottom:1px solid rgb(101, 119, 135)}.duet-table-fixed th:first-child,.duet-table-minimal th:first-child,.duet-table-plain th:first-child{padding-left:0 !important}.duet-table-fixed th:last-child,.duet-table-minimal th:last-child,.duet-table-plain th:last-child{padding-right:0 !important}.duet-theme-turva.duet-table-fixed th,.duet-theme-turva.duet-table-minimal th,.duet-theme-turva.duet-table-plain th{border-bottom-color:rgb(68, 68, 69)}.duet-table-fixed tbody th,.duet-table-minimal tbody th,.duet-table-plain tbody th{padding-top:40px !important;border-bottom-color:rgb(225, 227, 230)}.duet-theme-turva.duet-table-fixed tbody th,.duet-theme-turva.duet-table-minimal tbody th,.duet-theme-turva.duet-table-plain tbody th{border-bottom-color:rgb(228, 228, 230)}.duet-table-fixed td,.duet-table-minimal td,.duet-table-plain td{padding:16px !important}.duet-table-fixed td:first-child,.duet-table-minimal td:first-child,.duet-table-plain td:first-child{padding-left:0 !important}.duet-table-fixed td:last-child,.duet-table-minimal td:last-child,.duet-table-plain td:last-child{padding-right:0 !important}.duet-table-fixed tbody td,.duet-table-minimal tbody td,.duet-table-plain tbody td{border-bottom:1px solid rgb(225, 227, 230)}.duet-theme-turva.duet-table-fixed tbody td,.duet-theme-turva.duet-table-minimal tbody td,.duet-theme-turva.duet-table-plain tbody td{border-bottom-color:rgb(228, 228, 230)}.duet-table-flattened.duet-table-fixed tbody:first-of-type th,.duet-table-flattened.duet-table-minimal tbody:first-of-type th,.duet-table-flattened.duet-table-plain tbody:first-of-type th{padding-top:0 !important}.duet-table-flattened.duet-table-fixed td,.duet-table-flattened.duet-table-minimal td,.duet-table-flattened.duet-table-plain td,.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{border-bottom:0}.duet-table-flattened.duet-table-fixed tr,.duet-table-flattened.duet-table-minimal tr,.duet-table-flattened.duet-table-plain tr{padding:20px 0 !important}.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{padding-top:20px !important}.duet-table-flattened.duet-table-fixed tfoot td,.duet-table-flattened.duet-table-minimal tfoot td,.duet-table-flattened.duet-table-plain tfoot td{margin-bottom:4px !important}.duet-table-flattened.duet-table-fixed tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-minimal tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-plain tbody:not(:only-of-type) tr:first-child{border-bottom:0}.duet-table-plain.duet-table-flattened tbody tr{border-bottom:1px solid rgb(225, 227, 230)}.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:rgb(228, 228, 230)}.duet-table-minimal tbody tr,.duet-table-minimal tbody tr td{vertical-align:top;border-bottom:0 none}.duet-table-minimal tbody tr:last-of-type,.duet-table-minimal tbody tr:last-of-type td{border-bottom:1px solid rgb(225, 227, 230)}.duet-table-minimal.duet-table-flattened tbody tr,.duet-table-minimal.duet-table-flattened tbody tr td{border-bottom:0 none}.duet-table-minimal.duet-table-flattened tbody tr td[data-heading]::before{display:none}.duet-table-minimal.duet-table-flattened tfoot{border-top:1px solid rgb(225, 227, 230)}.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.duet-table-fixed table{table-layout:fixed}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td,.duet-table-fixed tbody tr td:first-child{padding:4px !important;vertical-align:text-bottom;border-bottom:0 none}.duet-table-fixed thead{display:none}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td{border-bottom:0 none}.duet-table-fixed:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(225, 227, 230)}.duet-table-fixed:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.duet-table-scrollable{position:relative;width:100%;overflow-x:auto;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0)), linear-gradient(-90deg, #fff 0%, rgba(255, 255, 255, 0)) 100% 0, radial-gradient(farthest-side at 0% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)) 100% 0%;background-repeat:no-repeat;background-attachment:local, local, scroll, scroll;background-size:100px 100%, 100px 100%, 12px 100%, 12px 100%}.duet-table-selected-column{background:rgba(0, 119, 179, 0.08)}.duet-theme-turva .duet-table-selected-column{background:rgba(68, 68, 69, 0.08)}.duet-table-sortable tbody tr td:first-child,.duet-table-sortable thead tr th:first-child{padding:20px}.duet-table-sortable:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(225, 227, 230)}.duet-table-sortable:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.duet-table-actions table{table-layout:auto}.duet-table-actions thead th:last-child{width:1px;white-space:nowrap}.duet-editable-table-table.duet-table-flattened tr{display:grid;grid-template-columns:repeat(2, 1fr);grid-auto-rows:auto;gap:10px}.duet-editable-table-table.duet-table-flattened tr.duet-table-action-row td:last-child::before{padding:0;content:""}.duet-editable-table-table.duet-table-flattened td{grid-column:1/2}.duet-editable-table-table.duet-table-flattened td:first-child{grid-row:1;grid-column:1}.duet-editable-table-table.duet-table-flattened td:last-child{grid-row:1;grid-column:2}';var S={none:0,"with-links":parseFloat(m)*16,"without-links":parseFloat(g)*16};var T=e("duet_table",function(){function e(e){var t=this;a(this,e);this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)";this.handleMediaQueryChange=function(e){t.matchesBreakpoint=y.includes(t.breakpoint)?!e.matches:e.matches};this.matchesBreakpoint=true;this.language=p();this.theme=undefined;this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.hideHeadVisually=false}e.prototype.watchLanguageStateHandler=function(e,t){var a=this;if(e!==t){setTimeout((function(){return a.copyHeadingsToCells()}),50)}};e.prototype.connectedCallback=function(){var e=this;var t=this.breakpoint==="none"||this.breakpoint==="none-scrollable"?"all":v[this.breakpoint];this.mq=matchMedia(t);this.mq.addEventListener("change",d(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);this.observer=new MutationObserver((function(){return d(e.copyHeadingsToCells(),50)}));this.observer.observe(this.element,{childList:true,subtree:true})};e.prototype.componentWillLoad=function(){r(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 e=S[this.stickyDistance];var t=this.element.querySelectorAll(this.headingSelector);t.forEach((function(t){return t.style.top="".concat(e,"px")}))}};e.prototype.componentDidLoad=function(){this.observer?this.observer.takeRecords():null;h(this)};e.prototype.disconnectedCallback=function(){this.observer.disconnect();this.observer=null;this.mq.removeListener(this.handleMediaQueryChange);this.mq=null;this.matchesBreakpoint=true;f(this)};e.prototype.copyHeadingsToCells=function(){var e=this.element.querySelectorAll(this.headingSelector);var t=this.element.querySelectorAll("tbody tr");var a=Array.from(e).map((function(e){return e.textContent.trim()}));t.forEach((function(e){e.querySelectorAll("td").forEach((function(e,t){if(a[t]){var i=e.querySelector(".duet-table-cell-heading");if(!i||i.textContent!==a[t]){i===null||i===void 0?void 0:i.remove();var n=document.createElement("span");n.textContent=a[t];n.classList.add("duet-table-cell-heading");n.setAttribute("aria-hidden","true");n.inert=true;e.prepend(n)}}}))}))};e.prototype.render=function(){var e;return t(n,{class:(e={},e["duet-table-".concat(this.variation)]=true,e["duet-table-flattened"]=!this.matchesBreakpoint,e["duet-table-sticky"]=this.matchesBreakpoint&&this.sticky,e["duet-table-scrollable"]=this.breakpoint==="none-scrollable",e["duet-m-0"]=this.margin==="none",e["duet-theme-turva"]=this.theme==="turva",e["duet-table-hide-head-visually"]=this.hideHeadVisually,e)},t("slot",null))};Object.defineProperty(e.prototype,"element",{get:function(){return l(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{language:["watchLanguageStateHandler"]}},enumerable:false,configurable:true});return e}());T.style=I;var _=[{type:"default",system_message:"unknown error",message:{fi:"Tapahtui tuntematon virhe, ole hyvä ja yritä uudelleen.",sv:"Ett okänt fel uppstod, försök igen.",en:"An unknown error occured, please try again."}},{type:"400",system_message:"Bad Request: The server could not understand the request due to invalid syntax.",message:{fi:"Tiedostoa ei hyväksytty.",sv:"Servern avvisade din fil.",en:"The server rejected your file."}},{type:"401",system_message:"Not Authenticated: The client must authenticate itself to get the requested response...",message:{fi:"Vain kirjautunut käyttäjä voi lähettää tiedostoja.",sv:"Du måste vara inloggad för att ladda upp filer.",en:"You need to be logged in to upload files."}},{type:"403",system_message:"No Access: The client does not have access rights to the content.",message:{fi:"Ei oikeuksia lähettää tiedostoja.",sv:"Du har inte rätt åtkomsträttigheter för att ladda upp filer.",en:"You do not have the correct access rights to upload files."}},{type:"413",system_message:"Payload too large",message:{fi:"Tiedosto oli liian vastaanotettavaksi.",sv:"Filen var för stor för servern att hantera.",en:"The file was to large for the server to handle."}},{type:"415",system_message:"Unsupported media type",message:{fi:"Tiedoston tyyppi oli väärä.",sv:"Servern avvisade filen eftersom den hade fel typ.",en:"The server rejected the file because it had the wrong type."}},{type:"429",system_message:"Too many request from same address",message:{fi:"Liian monta yritystä, ole hyvä ja yritä myöhemmin uudelleen.",sv:"Servern har fått många förfrågningar från dig, försök igen senare.",en:"The server has received to many request from you, please try again later."}},{type:"500",system_message:"Internal Server Error",message:{fi:"Palvelin ilmoitti tuntemattomasta virheestä ja lataus epäonnistui.",sv:"Servern rapporterade ett okänt fel och uppladdningen misslyckades.",en:"The server reported an unknown error and the upload failed."}},{type:"duet-upload-100",system_message:"File extension not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den type.",en:"You cannot upload files with that extension."}},{type:"duet-upload-001",system_message:"File transfer failed",message:{fi:"Tiedoston lähetys keskeytyi, ole hyvä ja yritä uudelleen.",sv:"Din anslutning till servern avbröts, försök igen.",en:"Your connection to the server was interrupted, try again."}},{type:"duet-upload-101",system_message:"File mimetype not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den typ.",en:"You cannot upload files of that type."}},{type:"duet-upload-201",system_message:"File is too large",message:{fi:"Tiedosto on liian iso.",sv:"Filen är större än tillåtet.",en:"The file is larger than permitted."}},{type:"duet-upload-202",system_message:"The combined size of all files is too large",message:{fi:"Tiedostojen yhteenlaskettu koko on liian iso.",sv:"Du har nått den maximala kombinerade filstorleken.",en:"You have reached the maximum combined filesize."}},{type:"duet-upload-203",system_message:"Files to upload exceed total byte size limit",message:{fi:"Yritit lisätä tiedostoja, jotka ylittäisivät suurimman sallitun yhteenlasketun koon.",sv:"Du försökte lägga till filer som skulle överskrida den maximala kombinerade storleken.",en:"You tried to add files that would exceed the maximum combined size."}},{type:"duet-upload-301",system_message:"The maximum file limit has been reached",message:{fi:"Liitteiden maksimimäärä saavutettu.",sv:"Maximalt antal bilagor har uppnåtts.",en:"Maximum number of attachments reached."}},{type:"duet-upload-302",system_message:"Files to upload exceeds limits",message:{fi:"Et voi lähettää enempää kuin enimmäismäärän liitteitä.",sv:"Du kan inte ladda upp fler än det maximala antalet bilagor.",en:"You can't upload more than maximum number of attachments."}}];var E={fi:"Liiteluettelo",sv:"Lista över bilagor",en:"Attachments list"};var F=function(e){var a=e.label,i=e.categoryLabel;return t("div",{class:"items-header",tabindex:"0","aria-label":c(E)},i&&t("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},c(i)),t("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(e,t){if(!t){return true}var a=e.split(".");var i=t.split(",");var n=a[a.length-1];return i.includes(n)};var U=function(e,t){if(!t||!e){return true}var a=t.split(",");var i=false;a.forEach((function(t){var a=t.split("/");var n=e.split("/");if(a[0]===n[0]&&(a[1]===n[1]||a[1]==="*")){i=true}}));return i};var z=function(e,t){if(!t||!e){return true}return t>=e};var A=function(e,t,a){var i=t.allowedMimetypes,n=t.allowedExtensions,l=t.maxBytes;var o=false;var r=k("default",a);if(e){var s=e.name,d=e.type,u=e.size;var p=U(d,i);var h=n==="all"||n===""||n===" "||n===undefined?true:C(s.toLowerCase(),n);var f=z(u,l);if(!p){r=k("duet-upload-101",a)}if(!h){r=k("duet-upload-100",a)}if(!f){r=k("duet-upload-201",a)}o=p&&h&&f}else{o=false}return{valid:o,errorMessage:o?undefined:c(r.message),errorSystem:o?undefined:r.system_message,errorType:o?undefined:r.type}};var R=function(e,t){var a=0;if(t){e.forEach((function(e){if(e.valid&&e.size){a+=e.size}}));if(a>=t){return true}}return false};var B=function(e,t){var a=0;if(t){e.forEach((function(e){if(e.valid){a++}}));if(a>=t){return true}}return false};var H=function(e,t,a){if(e+t>a){return true}return false};var P=function(e,t,a){var i=0;if(a){e.forEach((function(e){if(e.valid&&e.size){i+=e.size}}));t.forEach((function(e){if(e.size){i+=e.size}}));if(i>=a){return true}}return false};var j=function(e){var t=e.payload,a=e.options,i=e.onFailure,n=e.onSuccess,l=e.onProgress;var o=a.type,r=o===void 0?"POST":o,s=a.xhr,d=a.uri,u=a.argument,p=u===void 0?null:u,h=a.headers,f=h===void 0?null:h;s.open(r,"".concat(d).concat(p||""),true);var c=t.data,b=t.name;if(f){Object.keys(f).forEach((function(e){s.setRequestHeader(e,f[e])}))}if(r==="POST"){s.onreadystatechange=function(){if(s.readyState===XMLHttpRequest.DONE&&s.status>=200&&s.status<300){n(s,b,s.status)}if(s.readyState===XMLHttpRequest.DONE&&s.status>=300&&s.status<999){i(s,b,s.status)}};l(b)}s.send(c);return s};var V="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}::slotted([slot=uploadfooter]){margin-top:20px}.duet-upload{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}duet-paragraph::part(duet-paragraph){word-break:break-word}duet-editable-table tfoot{display:none}.upload-bottom-caption{margin-top:12px;margin-bottom:16px;line-height:1.4rem}.items-header{display:none;flex-direction:row;margin-bottom:0}@media (min-width: 36em){.items-header{display:flex}}.items-header:not(:last-child),.items-header:not(:first-child){margin-top:12px}.items-header .category-header{width:35%}.items-header .filename-header{width:65%}.items-header .filename-header.no-category{width:100%}.upload-item-row{display:flex;flex-direction:column;gap:16px;align-content:center;align-items:center;padding:16px 0 16px 0;border-bottom:1px solid rgb(225, 227, 230)}@media (min-width: 36em){.upload-item-row{flex-direction:row;gap:10px}}.upload-item-row .item-categories{width:100%}@media (min-width: 36em){.upload-item-row .item-categories{width:35%}}.upload-item-row .item-name{position:relative;bottom:2px;width:100%;text-align:left}@media (min-width: 36em){.upload-item-row .item-name{width:50%}.upload-item-row .item-name.no-category{width:85%}}.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:block}@media (min-width: 36em){.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:none}}.upload-item-row .item-actions{width:100%;margin-left:-8px;text-align:left}@media (min-width: 36em){.upload-item-row .item-actions{width:15%;padding-top:0;margin-left:auto;text-align:right}}.upload-item-row .duet-upload-item-name duet-icon{position:relative;top:4px}.upload-item-row .duet-upload-item-name duet-progress{display:block;margin-top:16px}";var q=e("duet_upload",function(){function e(e){var n=this;a(this,e);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=d((function(){n.tick=Date.now()}),30);this.categoryLabel={en:"Category",sv:"Filtyp",fi:"Tiedostotyyppi"};this.listenForActionEvents=function(){n.element.addEventListener("duetActionEvent",(function(e){var t=e.detail;var a=t.action,i=t.id,l=t.originalEvent;switch(a){case"delete":n.onDelete(i,l);break;case"cancel":n.onCancel(i,l);break}}))};this.verifyValidity=function(){var e=n.getFilesAsArray(),t=e.invalid,a=e.valid;var i=n.valid;n.valid=t.length===0&&a.length!==0;if(n.valid!==i){n.duetState.emit({originalEvent:undefined,data:{valid:n.valid,from:"componentWillRender"},component:"duet-upload"})}};this.getGroupFromItemData=function(e){if(e.valid&&e.progress===100){return n.DefaultGroups.success}else if(e.progress>0&&e.progress!==100){return n.DefaultGroups.inprogress}else if(!e.valid){return n.DefaultGroups.failure}else if(e.pending){return n.DefaultGroups.pending}else if(e.group){return e.group}else{return"none"}};this.mapFilesToUploadItems=function(e,a,i){if(a===n.DefaultGroups.success){return t("duet-upload-item",{theme:n.theme,actions:n.getActions(a),type:"success",data:e,showLinks:n.showLinks,linkClickEvent:n.emitEvent?n.linkClick:undefined,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:i,ref:function(t){n.itemRefs.set(e.uid,t)}})}else if(a===n.DefaultGroups.inprogress){return t("duet-upload-item",{theme:n.theme,actions:n.getActions(a),type:"inprogress",data:e,showLinks:n.showLinks,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:i,ref:function(t){n.itemRefs.set(e.uid,t)}})}else if(a===n.DefaultGroups.pending){return t("duet-upload-item",{theme:n.theme,actions:n.getActions(a),type:"pending",data:e,showLinks:n.showLinks,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:i,ref:function(t){n.itemRefs.set(e.uid,t)}})}else if(a===n.DefaultGroups.failure){return t("duet-upload-item",{theme:n.theme,actions:n.getActions(a),type:"failure",data:e,showLinks:n.showLinks,errorCodes:n.errorCodes,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:i,ref:function(t){n.itemRefs.set(e.uid,t)}})}else if(e.group){return e.html}else{return"none"}};this.genHashName=function(){return Date.now().toString(36)+Math.random()};this.updateValueInMap=function(e,t,a,i){if(i===void 0){i=true}try{var l=n.files.get(e);l[t]=a;n.files.set(e,l);if(n.external&&t!=="url"){n.trackProgress(e,t==="uploaded")}}catch(e){}if(i){n.kick()}};this.updateProgress=function(e,t){var a=function(a){n.updateValueInMap(t,"progress",a);n.onProgress(t,a,e)};if(e.lengthComputable){var i=e.loaded/e.total*100;a(i)}else{console.log("cant read progress")}};this.trackProgress=function(e,t){if(t===void 0){t=false}if(t){n.filesInProgress.delete(e)}else{n.filesInProgress.set(e,"inprogress")}if(n.filesInProgress.size===0){n.onDone()}};this.getFilesAsArray=function(){var e=[];var t=[];n.files.forEach((function(a){if(a.valid&&!a.deleted){e.push(a)}else if(!a.valid&&!a.deleted){t.push(a)}}));return{valid:e,invalid:t}};this.resetFormFields=function(){n.nativeInput.value=""};this.startUpload=function(e,t){if(t===void 0){t=undefined}return __awaiter(n,void 0,void 0,(function(){var a,i,n;return __generator(this,(function(l){a=this.validateTotals(),i=a.bytesMaxReached,n=a.fileMaxReached;if(i||n){this.kick();return[2]}this.metaData=t;this.nativeInput.click();this.onUpload(e,t);e.stopPropagation();e.preventDefault();return[2]}))}))};this.transferComplete=function(e){n.updateValueInMap(e,"progress",100,false);n.trackProgress(e,true)};this.transferDone=function(e,t,a){n.updateValueInMap(t,"status",a,false);n.updateValueInMap(t,"uploaded",true,false);try{var i=JSON.parse(e.response);n.updateValueInMap(t,"url",i.url)}catch(e){n.updateValueInMap(t,"url",null);console.error("Server did not respond with expected response {url: string}")}return};this.transferDoneWithFailure=function(e,t,a){try{var i=JSON.parse(e.response).error;n.updateValueInMap(t,"error",{message:i.message,type:i.type},false)}catch(e){console.error("Server did not respond with expected response error:{message: string, type: int}");n.updateValueInMap(t,"error",{type:a},false)}n.updateValueInMap(t,"valid",false,true)};this.transferFailed=function(e){n.updateValueInMap(e,"error",w("duet-upload-001",n.errorCodes))};this.transferCanceled=function(e){n.files.delete(e);n.validateTotals(e);n.kick()};this.validateTotals=function(e){var t=R(n.files,n.maxBytesTotal);var a=B(n.files,n.maxFiles);if(t&&e){n.updateValueInMap(e,"error",w("duet-upload-202",n.errorCodes),false)}if(a&&e){n.updateValueInMap(e,"error",w("duet-upload-301",n.errorCodes),false)}n.bytesMaxReached=t;n.fileMaxReached=a;return{bytesMaxReached:t,fileMaxReached:a}};this.uploadFile=function(e,t,a){if(t===void 0){t=false}return __awaiter(n,void 0,void 0,(function(){var i,n,l;return __generator(this,(function(o){switch(o.label){case 0:if(!t&&this.deferUpload){this.updateValueInMap(e.item.name,"pending",true,false);this.updateValueInMap(e.item.name,"group","pending",true)}else if(t){this.updateValueInMap(e.item.name,"pending",false,false);this.updateValueInMap(e.item.name,"group",undefined,true)}o.label=1;case 1:o.trys.push([1,4,,5]);if(!(!this.deferUpload||t))return[3,3];i=new FormData;i.append("file",e.item);if(a){i.append("key",a)}i.append("uid",e.uid);i.append("name",e.item.name);i.append("metadata",JSON.stringify({uid:e.uid,url:this.uri,size:e.item.size,meta:e.meta}));n=e;return[4,this.makeXHRPostRequest(i)];case 2:n.xhr=o.sent();o.label=3;case 3:return[3,5];case 4:l=o.sent();this.updateValueInMap(e.item.name,"valid",false,false);return[3,5];case 5:return[2]}}))}))};this.uploadPendingFiles=function(){for(var e=0,t=Array.from(n.files.entries());e<t.length;e++){var a=t[e],i=a[0],l=a[1];if(l.group==="pending"&&l.pending===true){n.uploadFile(l,true,i)}}};this.getItemFromUID=function(e){for(var t=0,a=Array.from(n.files.entries());t<a.length;t++){var i=a[t],l=i[0],o=i[1];if(o.uid===e){return{value:o,key:l}}}return null};this.handleExternalUploadButton=function(e,t){if(n.externalUploadButton){if(e||t){n.externalUploadButton.disabled=true}else{n.externalUploadButton.disabled=false}}};this.onDelete=function(e,t){var a=n.getItemFromUID(e);var i=a.key;var l=n.files.get(i);n.files.delete(i);var o=n.validateTotals(),r=o.bytesMaxReached,s=o.fileMaxReached;n.handleExternalUploadButton(r,s);n.kick();n.duetDelete.emit({originalEvent:t,data:{deletion:l},component:"duet-upload"});if(!n.external&&!l.pending){n.makeXHRDeleteRequest(l)}n.resetFormFields()};this.onCancel=function(e,t){var a=n.getItemFromUID(e).key;var i=n.files.get(a);n.files.delete(a);var l=n.validateTotals(),o=l.bytesMaxReached,r=l.fileMaxReached;n.handleExternalUploadButton(o,r);if(!n.external){var s=i.xhr;if(s){s.abort()}}n.kick();n.resetFormFields();n.duetCancel.emit({originalEvent:t,data:{cancelled:i},component:"duet-upload"})};this.onUpload=function(e,t){n.duetUpload.emit({originalEvent:e,metaData:t,component:"duet-upload"})};this.onBlur=function(e){n.duetBlur.emit({originalEvent:e,component:"duet-upload"})};this.onProgress=function(e,t,a){n.duetChange.emit({originalEvent:a,data:{key:e,percentComplete:t},component:"duet-upload"})};this.onFocus=function(e){n.duetFocus.emit({originalEvent:e,component:"duet-upload"})};this.onReady=function(){n.duetReady.emit({component:"duet-upload"})};this.onDone=function(){n.duetDone.emit({component:"duet-upload",data:{files:n.files}})};this.filterMap=function(){var e=Array.from(n.files.values());var t=[];var a=[];var i=[];var l=[];var o=false;e.forEach((function(e){var r=n.getGroupFromItemData(e);if(e.meta&&!!e.meta.badges){o=true}if(r===n.DefaultGroups.success){l.push({uid:e.uid,data:e})}else if(r===n.DefaultGroups.inprogress){t.push({uid:e.uid,data:e})}else if(r===n.DefaultGroups.pending){i.push({uid:e.uid,data:e})}else if(r===n.DefaultGroups.failure){a.push({uid:e.uid,data:e})}else if(e.group){t.push({uid:e.uid,data:e})}}));return{pending:i,failure:a,success:l,inprogress:t,hasCategory:o}};this.getActions=function(e){return n.actions.filter((function(t){return t.map.includes(e)}))};this.renderUploadedItems=function(){n.itemRefs.clear();var e=n.filterMap();var a=e.hasCategory;var i=n.groups.map((function(i){var l=e[i.id];if(!(l===null||l===void 0?void 0:l.length)){return}return t(o,null,!n.hideGroups&&t(F,{categoryLabel:a?n.categoryLabel:undefined,label:i.label}),l.map((function(e){return n.mapFilesToUploadItems(e.data,i.id,a)})))}));return t(o,null,n.showUploadedItemsHeader&&t(F,{categoryLabel:a?n.categoryLabel:undefined,label:n.uploadedItemsHeaderLabel}),i)};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=_;this.name=undefined;this.maxBytes=2e8;this.maxBytesTotal=undefined;this.maxFiles=99;this.allowedExtensions="all";this.allowedMimetypes="";this.multiple=true;this.limitSelection=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.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"}}]}e.prototype.watchValidHandler=function(e,t){if(e!==t){this.kick()}};e.prototype.componentWillLoad=function(){if(typeof this.statusMessageLabel==="string"){this.internalStatusMessageLabel=b(this.groups)}else{this.internalStatusMessageLabel=this.statusMessageLabel}r(this);this.listenForActionEvents();this.onReady();this.externalUploadButton=document.querySelector("#".concat(this.externalUploadButtonId))};e.prototype.componentWillRender=function(){this.verifyValidity()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.nativeInput){this.nativeInput.focus(e)}return[2]}))}))};e.prototype.upload=function(e){if(e===void 0){e=undefined}return __awaiter(this,void 0,void 0,(function(){var t,a,i;return __generator(this,(function(n){t=this.validateTotals(),a=t.bytesMaxReached,i=t.fileMaxReached;if(a||i){this.handleExternalUploadButton(a,i);this.kick();return[2]}this.metaData=e;this.nativeInput.click();return[2]}))}))};e.prototype.uploadPending=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.uploadPendingFiles();return[2]}))}))};e.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.kick();return[4,this.setFocus()];case 1:e.sent();return[2]}}))}))};e.prototype.getFiles=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(!this.files||this.files.size===0){return[2,false]}return[2,this.getFilesAsArray()]}))}))};e.prototype.updateValue=function(e,t,a){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.updateValueInMap(e,t,a);return[2]}))}))};e.prototype.focusActionButton=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(a){switch(a.label){case 0:return[4,(t=this.itemRefs.get(e))===null||t===void 0?void 0:t.focusActionButton()];case 1:a.sent();return[2]}}))}))};e.prototype.render=function(){var e=this;var a=this.identifier||this.uploadId;var i=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024);var l=Math.round(this.maxBytes/1024/1024);var r=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());r=r.replace(/{maxbytes}/g,"".concat(l.toString()," MB"));r=r.replace(/{maxbytestotal}/g,"".concat(i.toString()," MB"));r=r.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", "));if(this.externalUploadButton){this.externalUploadButton.ariaLabel=r}return t(n,{class:{"duet-m-0":this.margin==="none"}},t("duet-fieldset",{"label-heading-level":this.headerHeadingLevel,"label-hidden":this.hideHeader,label:this.label,caption:!this.captionOnBottom?r:undefined},t("slot",{name:"header"}),!this.files.size&&t("duet-empty-state",{id:this.labelId,part:this.identifier?"".concat(this.identifier,"-empty-state"):"duet-upload-empty-state",icon:"messaging-attachment"},t("duet-paragraph",{margin:"none"},this.fileListEmpty)),!!this.files.size&&t("slot",{name:"fileheader"}),!!this.files.size&&t("duet-upload-aria-status",{invalid:this.getFilesAsArray().invalid.length,valid:this.getFilesAsArray().valid.length,inprogress:this.filesInProgress.size,total:this.files.size,statusMessageLabel:this.internalStatusMessageLabel}),!!this.files.size&&this.renderUploadedItems(),!!this.files.size&&t("slot",{name:"filefooter"}),t("slot",{name:"uploadfooter"}),this.captionOnBottom&&t("duet-caption",{margin:"none",size:"small"},t("div",{class:"upload-bottom-caption"},r)),t("slot",{name:"afterfooter"}),!this.hideButton&&t(o,null,t("duet-spacer",{size:"large"}),t("duet-button",{id:this.buttonId,onClick:this.startUpload,"accessible-controls":a,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel,"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)&&t(o,null,t("duet-spacer",{size:"medium"}),t("duet-alert",{part:this.identifier?"".concat(this.identifier,"-error-notification"):"duet-upload-error-notification"},this.fileMaxReached&&w("duet-upload-301",this.errorCodes),this.bytesMaxReached&&w("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&w("duet-upload-302",this.errorCodes),this.filesToUploadTotalSizeIsAboveMax&&w("duet-upload-203",this.errorCodes))),t("duet-visually-hidden",{"aria-hidden":"true"},t("input",{ref:function(t){e.nativeInput=t},accept:!this.limitSelection?undefined:"".concat(this.allowedMimetypes,",").concat(this.allowedExtensions),onBlur:this.onBlur,onFocus:this.onFocus,onChange:function(t){return e.onChange(t)},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}))))};e.prototype.makeXHRPostRequest=function(e){var t=this;var a=new XMLHttpRequest;var i=e.get("name");a.upload.addEventListener("progress",(function(e){t.updateProgress(e,i)}));a.upload.addEventListener("load",(function(){t.transferComplete(i)}));a.upload.addEventListener("error",(function(){t.transferFailed(i)}));a.upload.addEventListener("abort",(function(){t.transferCanceled(i)}));var n={payload:{data:e,name:i},options:{type:"POST",uri:this.uri,xhr:a,argument:null,headers:undefined},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){n=this.middleware(n)}return j(n)};e.prototype.makeXHRDeleteRequest=function(e){var t=e.uid,a=e.item;var i=new XMLHttpRequest;var n={"x-fileuid":t,"x-filename":a.name};var l={payload:{data:null,name:name},options:{type:"DELETE",xhr:i,uri:this.uri,argument:"?key=".concat(t,"&name=").concat(a.name),headers:n},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){l=this.middleware(l)}return j(l)};e.prototype.onChange=function(e){return __awaiter(this,void 0,void 0,(function(){var t,a,i,n,l,o,r,s,d,u,p,h;return __generator(this,(function(f){switch(f.label){case 0:a=Array.from((t=this.nativeInput)===null||t===void 0?void 0:t.files);this.filesToUploadExceedsLimit=false;if(H(this.files.size,a.length,this.maxFiles)){this.filesToUploadExceedsLimit=true;this.kick();return[2]}this.filesToUploadTotalSizeIsAboveMax=false;if(P(this.files,a,this.maxBytesTotal)){this.filesToUploadTotalSizeIsAboveMax=true;this.kick();return[2]}if(!a)return[3,6];i=0,n=a;f.label=1;case 1:if(!(i<n.length))return[3,6];l=n[i];o=A(l,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),r=o.valid,s=o.errorMessage,d=o.errorType,u=o.errorSystem;p=this.genHashName();h={uid:p,item:l,size:l.size,meta:this.metaData,uploaded:false,valid:r,error:{type:r?undefined:d,message:r?undefined:s,system_message:r?undefined:u},progress:0,deleted:false,xhr:false,url:false};this.files.set(l.name,h);if(!(r&&!this.external))return[3,3];return[4,this.uploadFile(h)];case 2:f.sent();return[3,4];case 3:if(r&&this.external){this.updateValueInMap(h.item.name,"pending",true,false);this.updateValueInMap(h.item.name,"group","pending",true)}else if(!r){this.updateValueInMap(l.name,"valid",false,true)}f.label=4;case 4:this.kick();f.label=5;case 5:i++;return[3,1];case 6:this.resetFormFields();this.metaData=undefined;this.duetChange.emit({originalEvent:e,data:{files:this.files},component:"duet-upload"});return[2]}}))}))};Object.defineProperty(e.prototype,"element",{get:function(){return l(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{valid:["watchValidHandler"]}},enumerable:false,configurable:true});return e}());q.style=V}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as t,c as e,h as o,F as i,g as r}from"./p-7f7c02d3.js";import{a}from"./p-6fa39608.js";import{a as n}from"./p-f11208c3.js";import{D as d}from"./p-76f00bd5.js";import{i as s}from"./p-4ebf1618.js";import{a as l,g as p,c as m,d as u}from"./p-03baceb5.js";import{p as f}from"./p-5a9d75e1.js";const h={fi:{lahi:"© LähiTapiola",turva:"© Turva"},sv:{lahi:"© LokalTapiola",turva:"© Turva"},en:{lahi:"© LocalTapiola",turva:"© Turva"}},c=(t,e)=>({component:"duet-footer",data:e,originalEvent:t}),g=class{constructor(o){t(this,o),this.duetChange=e(this,"duetChange",3),this.duetLogoClick=e(this,"duetLogoClick",7),this.duetMenuClick=e(this,"duetMenuClick",7),this.duetItemClick=e(this,"duetItemClick",7),this.duetAnalytics=e(this,"duetAnalytics",7),this.duetEvent=e(this,"duetEvent",7),this.handleClick=t=>{t.data.analyticsId&&this.duetAnalytics.emit({component:"duet-footer",analyticsId:t.data.analyticsId}),this.duetChange.emit(t)},this.handleLogoClick=t=>{const e=c(t,{href:this.logoHref,label:"logo"});this.duetLogoClick.emit(e),this.handleClick(e)},this.handleMenuClick=(t,e)=>{const o=c(t,e);this.handleClick(o),this.duetMenuClick.emit(o)},this.handleItemClick=(t,e)=>{const o=c(t,e);this.handleClick(o),this.duetItemClick.emit(o)},this.emitDuetEvent=(t,e)=>{this.duetEvent.emit({component:"duet-footer",data:e,originalEvent:t})},this.processedMainItem=null,this.processedItems=null,this.processedMenu=null,this.theme="",this.variation="default",this.margin="auto",this.logoHref="/",this.language=l(),this.items=void 0,this.accessibleLabelExternalDefaults=d,this.accessibleLabelExternal=p(this.accessibleLabelExternalDefaults),this.menu=void 0}componentWillLoad(){s(this),this.refresh(),this.hasInfoSlot=!!this.element.querySelector(":scope > [slot='info']")}connectedCallback(){m(this,{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"})}disconnectedCallback(){u(this)}async refresh(){this.processedItems=f(this.items),this.processedMenu=f(this.menu)}renderFooterTop(){const t=o("div",{class:{"footer-top-logo":this.hasInfoSlot}},"simple"!==this.variation&&o("duet-logo",{href:this.logoHref,onClick:this.handleLogoClick,size:"large",inverse:!0,language:this.language,theme:this.theme})),e=this.processedItems&&"simple"!==this.variation&&this.processedItems.map((t=>o("a",{class:"duet-footer-link",href:t.href,id:t.id,target:t.external?"_blank":"_self",onClick:e=>this.handleItemClick(e,t),onMouseEnter:e=>this.emitDuetEvent(e,t),onTouchStart:e=>this.emitDuetEvent(e,t)},o("div",{class:"duet-footer-icon"},o("duet-icon",{size:"medium",margin:"none",name:t.icon,color:"currentColor"})),o("span",null,t.label),!t.hideArrow&&o(i,null,t.external&&o("duet-visually-hidden",null,", ",this.accessibleLabelExternal),o("div",{class:"duet-footer-arrow"},o("duet-icon",t.external?{icon:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M10.25 2a.75.75 0 1 1 0 1.5h-6.5A2.252 2.252 0 0 0 1.5 5.75v14.5a2.252 2.252 0 0 0 2.25 2.25h14.5a2.252 2.252 0 0 0 2.25-2.25v-6.5a.75.75 0 0 1 1.5 0v6.5A3.754 3.754 0 0 1 18.25 24H3.75A3.754 3.754 0 0 1 0 20.25V5.75A3.754 3.754 0 0 1 3.75 2zm12.985-2c.1 0 .198.02.29.058l.025.011a.726.726 0 0 1 .15.091l.066.059a.755.755 0 0 1 .109.138l.051.1c.04.092.06.192.06.293l-.001 6.363c0 .2-.078.389-.22.53a.743.743 0 0 1-.53.22.743.743 0 0 1-.53-.22.743.743 0 0 1-.22-.53V2.559L15.28 9.764a.75.75 0 0 1-1.06-1.06l7.204-7.205h-4.553a.744.744 0 0 1-.75-.75c0-.2.078-.388.22-.53A.743.743 0 0 1 16.87 0z"/></svg>',size:"xx-small",margin:"none",color:"currentColor"}:{icon:a.svg,size:"auto",margin:"none",color:"currentColor"}))))));return o(i,null,t,this.hasInfoSlot?o("div",{class:"footer-top-right-container"},o("slot",{name:"info"}),o("div",{class:"footer-top-items"},e)):e)}render(){const t=p(h),e="turva"===this.theme?t.turva:t.lahi;return o("footer",{class:{"duet-footer":!0,"duet-m-0":"none"===this.margin,"duet-theme-turva":"turva"===this.theme,"duet-footer-simple":"simple"===this.variation}},o("div",{class:"duet-footer-wrapper"},o("div",{class:"duet-footer-top",part:"top"},this.renderFooterTop()),o("slot",{name:"extra"}),o("p",{class:"duet-footer-menu",part:"menu"},o("span",{class:"duet-footer-copyright"},`${e} ${(new Date).getFullYear()}`),o("div",{class:"duet-footer-menu-links"},this.processedMenu&&o(i,null,this.processedMenu.map((t=>o("a",{href:t.href,id:t.id,target:t.external?"_blank":"_self",onClick:e=>this.handleMenuClick(e,t),onMouseEnter:e=>this.emitDuetEvent(e,t),onTouchStart:e=>this.emitDuetEvent(e,t)},t.label,t.external&&o(i,null,o("duet-visually-hidden",null,", ",this.accessibleLabelExternal),o("div",{class:"duet-footer-external"},o("duet-icon",{icon:n.svg,size:"xx-small",margin:"none",color:"currentColor"}))),o("span",{class:"duet-footer-divider",role:"presentation","aria-hidden":"true"},"/"))))))),o("p",{class:"duet-footer-copyright duet-footer-copyright-mobile"},`${e} ${(new Date).getFullYear()}`)))}get element(){return r(this)}static get watchers(){return{menu:["refresh"],items:["refresh"]}}};g.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;flex-shrink:0;width:100%}::slotted([slot=info]){padding:0 28px;margin-top:36px}@media (min-width: 62em){::slotted([slot=info]){padding:0;margin:0}}.duet-footer{display:block;width:100%;padding-top:20px;padding-bottom:16px;margin-top:48px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(255, 255, 255);text-align:left;background:rgb(0, 41, 77)}.duet-footer.duet-p-0{padding:0 !important}.duet-footer.duet-m-0{margin:0 !important}@media (min-width: 36em){.duet-footer{padding-top:36px}}@media (min-width: 62em){.duet-footer{padding-top:48px;padding-bottom:36px}}.duet-footer.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";background:rgb(198, 12, 48)}.duet-footer a{color:rgb(255, 255, 255);text-decoration:none}@media (min-width: 62em){.duet-footer a{border-radius:4px}}.duet-footer a:focus{outline:0}:host(.user-is-tabbing) .duet-footer a:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-theme-turva a:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-footer-wrapper{position:relative;margin:0 auto}@media (min-width: 62em){.duet-footer-wrapper{padding:0 72px 0 48px}}@media (min-width: 76.25em){.duet-footer-wrapper{max-width:1110px;padding:0 20px 0 0}}.duet-footer-top{width:100%}@media (min-width: 62em){.duet-footer-top{display:flex;flex-direction:row;align-items:center;justify-content:space-between}}.duet-footer-top .footer-top-logo{flex-grow:1}.duet-footer-top .footer-top-right-container{flex-grow:1.5}.duet-footer-top .footer-top-items{display:flex;flex-direction:column;justify-content:space-between}@media (min-width: 62em){.duet-footer-top .footer-top-items{flex-direction:row}}duet-logo{margin-left:16px !important}@media (min-width: 36em){duet-logo{margin-left:28px !important}}@media (min-width: 62em){duet-logo{margin-left:0 !important}}.duet-footer-link{padding:16px !important;display:flex;flex-direction:row;align-items:center;width:100%;font-weight:600;border-bottom:1px solid rgba(255, 255, 255, 0.2);transition:background-color 300ms ease}@media (min-width: 36em){.duet-footer-link{padding-right:20px !important;padding-left:28px !important}}@media (min-width: 62em){.duet-footer-link{width:auto;min-width:0;padding-right:0 !important;padding-left:0 !important;border:0}}.duet-footer-link:first-of-type{margin-top:20px;border-top:1px solid rgba(255, 255, 255, 0.2)}@media (min-width: 62em){.duet-footer-link:first-of-type{margin:0;border:0}}.duet-footer-link span{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.duet-footer-link:hover{background:rgba(0, 0, 0, 0.1)}@media (min-width: 62em){.duet-footer-link:hover{background:transparent}}.duet-footer-icon{display:flex;align-items:center;justify-content:center;padding:12px;margin-right:16px;background:rgb(0, 119, 179);border-radius:50%;transition:300ms ease}.duet-theme-turva .duet-footer-icon{background:transparent;box-shadow:0 0 0 1px rgb(255, 255, 255)}a:hover .duet-footer-icon{background:#006ba1}.duet-theme-turva a:hover .duet-footer-icon{background:transparent}.duet-footer-arrow{display:flex;align-items:center;justify-content:center;width:20px;min-width:20px;max-width:20px;height:20px;max-height:20px;margin-left:auto;color:rgb(255, 255, 255);transition:transform 300ms ease}@media (min-width: 62em){.duet-footer-arrow{width:10px;min-width:10px;margin-top:3px;margin-left:8px}}@media (min-width: 62em){.duet-footer-arrow{margin-right:0}}a:hover .duet-footer-arrow{transform:translateX(4px)}.duet-footer-arrow duet-icon{width:20px;height:20px}@media (min-width: 62em){.duet-footer-arrow duet-icon{width:10px;height:10px}}.duet-footer-menu{padding:20px !important;display:flex;gap:2rem;font-size:0.875rem}@media (min-width: 36em){.duet-footer-menu{padding:28px !important}}@media (min-width: 62em){.duet-footer-menu{padding-left:8px !important}}.duet-footer-menu a{display:inline-block;text-decoration:none;word-break:break-all}.duet-footer-menu a:hover,.duet-footer-menu a:focus{text-decoration:underline}.duet-footer-menu a:hover .duet-footer-divider,.duet-footer-menu a:focus .duet-footer-divider{text-decoration:none}.duet-footer-menu .duet-footer-divider{display:inline-block;margin:0 8px}.duet-footer-menu .duet-footer-divider-copyright{display:none}.duet-footer-menu .duet-footer-menu-links{flex:1}@media (min-width: 62em){.duet-footer-menu .duet-footer-menu-links{text-align:right}}.duet-footer-menu a:last-of-type .duet-footer-divider{display:none}.duet-footer-copyright{display:none;font-size:0.875rem;color:rgb(255, 255, 255)}@media (min-width: 62em){.duet-footer-copyright{display:inline}}.duet-footer-copyright.duet-footer-copyright-mobile{display:block;padding-top:0.5rem;padding-bottom:1.25rem;padding-left:2rem;text-align:left}@media (min-width: 62em){.duet-footer-copyright.duet-footer-copyright-mobile{display:none}}.duet-footer-simple{padding:0;margin:0;margin-top:16px;color:rgb(0, 41, 77);background:transparent !important;border-top:1px solid rgb(225, 227, 230)}.duet-footer-simple .duet-footer-wrapper{max-width:100%;padding:0 20px;margin:0}@media (min-width: 62em){.duet-footer-simple .duet-footer-wrapper{padding:0 36px}}@media (min-width: 106.25em){.duet-footer-simple .duet-footer-wrapper{padding:0 48px}}.duet-footer-simple .duet-footer-copyright,.duet-footer-simple .duet-footer-menu a{color:rgb(0, 41, 77)}.duet-footer-simple .duet-footer-menu{padding:20px 0 !important}.duet-footer-simple .duet-footer-copyright-mobile{padding-left:0}.duet-footer-simple.duet-theme-turva{color:rgb(23, 28, 58);border-color:rgb(228, 228, 230)}.duet-footer-simple.duet-theme-turva .duet-footer-copyright,.duet-footer-simple.duet-theme-turva .duet-footer-menu a{color:rgb(23, 28, 58)}.duet-footer-external{display:inline-block;margin-left:4px;color:rgb(0, 119, 179)}.duet-theme-turva .duet-footer-external{color:rgb(255, 255, 255)}.duet-footer-simple.duet-theme-turva .duet-footer-external{color:rgb(198, 12, 48)}';export{g as duet_footer}
4
+ import{r as t,c as e,h as o,F as i,g as r}from"./p-b6d6d658.js";import{a}from"./p-6fa39608.js";import{a as n}from"./p-f11208c3.js";import{D as d}from"./p-76f00bd5.js";import{i as s}from"./p-4ebf1618.js";import{a as l,g as p,c as m,d as u}from"./p-03baceb5.js";import{p as f}from"./p-5a9d75e1.js";const h={fi:{lahi:"© LähiTapiola",turva:"© Turva"},sv:{lahi:"© LokalTapiola",turva:"© Turva"},en:{lahi:"© LocalTapiola",turva:"© Turva"}},c=(t,e)=>({component:"duet-footer",data:e,originalEvent:t}),g=class{constructor(o){t(this,o),this.duetChange=e(this,"duetChange",3),this.duetLogoClick=e(this,"duetLogoClick",7),this.duetMenuClick=e(this,"duetMenuClick",7),this.duetItemClick=e(this,"duetItemClick",7),this.duetAnalytics=e(this,"duetAnalytics",7),this.duetEvent=e(this,"duetEvent",7),this.handleClick=t=>{t.data.analyticsId&&this.duetAnalytics.emit({component:"duet-footer",analyticsId:t.data.analyticsId}),this.duetChange.emit(t)},this.handleLogoClick=t=>{const e=c(t,{href:this.logoHref,label:"logo"});this.duetLogoClick.emit(e),this.handleClick(e)},this.handleMenuClick=(t,e)=>{const o=c(t,e);this.handleClick(o),this.duetMenuClick.emit(o)},this.handleItemClick=(t,e)=>{const o=c(t,e);this.handleClick(o),this.duetItemClick.emit(o)},this.emitDuetEvent=(t,e)=>{this.duetEvent.emit({component:"duet-footer",data:e,originalEvent:t})},this.processedMainItem=null,this.processedItems=null,this.processedMenu=null,this.theme="",this.variation="default",this.margin="auto",this.logoHref="/",this.language=l(),this.items=void 0,this.accessibleLabelExternalDefaults=d,this.accessibleLabelExternal=p(this.accessibleLabelExternalDefaults),this.menu=void 0}componentWillLoad(){s(this),this.refresh(),this.hasInfoSlot=!!this.element.querySelector(":scope > [slot='info']")}connectedCallback(){m(this,{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"})}disconnectedCallback(){u(this)}async refresh(){this.processedItems=f(this.items),this.processedMenu=f(this.menu)}renderFooterTop(){const t=o("div",{class:{"footer-top-logo":this.hasInfoSlot}},"simple"!==this.variation&&o("duet-logo",{href:this.logoHref,onClick:this.handleLogoClick,size:"large",inverse:!0,language:this.language,theme:this.theme})),e=this.processedItems&&"simple"!==this.variation&&this.processedItems.map((t=>o("a",{class:"duet-footer-link",href:t.href,id:t.id,target:t.external?"_blank":"_self",onClick:e=>this.handleItemClick(e,t),onMouseEnter:e=>this.emitDuetEvent(e,t),onTouchStart:e=>this.emitDuetEvent(e,t)},o("div",{class:"duet-footer-icon"},o("duet-icon",{size:"medium",margin:"none",name:t.icon,color:"currentColor"})),o("span",null,t.label),!t.hideArrow&&o(i,null,t.external&&o("duet-visually-hidden",null,", ",this.accessibleLabelExternal),o("div",{class:"duet-footer-arrow"},o("duet-icon",t.external?{icon:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M10.25 2a.75.75 0 1 1 0 1.5h-6.5A2.252 2.252 0 0 0 1.5 5.75v14.5a2.252 2.252 0 0 0 2.25 2.25h14.5a2.252 2.252 0 0 0 2.25-2.25v-6.5a.75.75 0 0 1 1.5 0v6.5A3.754 3.754 0 0 1 18.25 24H3.75A3.754 3.754 0 0 1 0 20.25V5.75A3.754 3.754 0 0 1 3.75 2zm12.985-2c.1 0 .198.02.29.058l.025.011a.726.726 0 0 1 .15.091l.066.059a.755.755 0 0 1 .109.138l.051.1c.04.092.06.192.06.293l-.001 6.363c0 .2-.078.389-.22.53a.743.743 0 0 1-.53.22.743.743 0 0 1-.53-.22.743.743 0 0 1-.22-.53V2.559L15.28 9.764a.75.75 0 0 1-1.06-1.06l7.204-7.205h-4.553a.744.744 0 0 1-.75-.75c0-.2.078-.388.22-.53A.743.743 0 0 1 16.87 0z"/></svg>',size:"xx-small",margin:"none",color:"currentColor"}:{icon:a.svg,size:"auto",margin:"none",color:"currentColor"}))))));return o(i,null,t,this.hasInfoSlot?o("div",{class:"footer-top-right-container"},o("slot",{name:"info"}),o("div",{class:"footer-top-items"},e)):e)}render(){const t=p(h),e="turva"===this.theme?t.turva:t.lahi;return o("footer",{class:{"duet-footer":!0,"duet-m-0":"none"===this.margin,"duet-theme-turva":"turva"===this.theme,"duet-footer-simple":"simple"===this.variation}},o("div",{class:"duet-footer-wrapper"},o("div",{class:"duet-footer-top",part:"top"},this.renderFooterTop()),o("slot",{name:"extra"}),o("p",{class:"duet-footer-menu",part:"menu"},o("span",{class:"duet-footer-copyright"},`${e} ${(new Date).getFullYear()}`),o("div",{class:"duet-footer-menu-links"},this.processedMenu&&o(i,null,this.processedMenu.map((t=>o("a",{href:t.href,id:t.id,target:t.external?"_blank":"_self",onClick:e=>this.handleMenuClick(e,t),onMouseEnter:e=>this.emitDuetEvent(e,t),onTouchStart:e=>this.emitDuetEvent(e,t)},t.label,t.external&&o(i,null,o("duet-visually-hidden",null,", ",this.accessibleLabelExternal),o("div",{class:"duet-footer-external"},o("duet-icon",{icon:n.svg,size:"xx-small",margin:"none",color:"currentColor"}))),o("span",{class:"duet-footer-divider",role:"presentation","aria-hidden":"true"},"/"))))))),o("p",{class:"duet-footer-copyright duet-footer-copyright-mobile"},`${e} ${(new Date).getFullYear()}`)))}get element(){return r(this)}static get watchers(){return{menu:["refresh"],items:["refresh"]}}};g.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;flex-shrink:0;width:100%}::slotted([slot=info]){padding:0 28px;margin-top:36px}@media (min-width: 62em){::slotted([slot=info]){padding:0;margin:0}}.duet-footer{display:block;width:100%;padding-top:20px;padding-bottom:16px;margin-top:48px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(255, 255, 255);text-align:left;background:rgb(0, 41, 77)}.duet-footer.duet-p-0{padding:0 !important}.duet-footer.duet-m-0{margin:0 !important}@media (min-width: 36em){.duet-footer{padding-top:36px}}@media (min-width: 62em){.duet-footer{padding-top:48px;padding-bottom:36px}}.duet-footer.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";background:rgb(198, 12, 48)}.duet-footer a{color:rgb(255, 255, 255);text-decoration:none}@media (min-width: 62em){.duet-footer a{border-radius:4px}}.duet-footer a:focus{outline:0}:host(.user-is-tabbing) .duet-footer a:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-theme-turva a:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-footer-wrapper{position:relative;margin:0 auto}@media (min-width: 62em){.duet-footer-wrapper{padding:0 72px 0 48px}}@media (min-width: 76.25em){.duet-footer-wrapper{max-width:1110px;padding:0 20px 0 0}}.duet-footer-top{width:100%}@media (min-width: 62em){.duet-footer-top{display:flex;flex-direction:row;align-items:center;justify-content:space-between}}.duet-footer-top .footer-top-logo{flex-grow:1}.duet-footer-top .footer-top-right-container{flex-grow:1.5}.duet-footer-top .footer-top-items{display:flex;flex-direction:column;justify-content:space-between}@media (min-width: 62em){.duet-footer-top .footer-top-items{flex-direction:row}}duet-logo{margin-left:16px !important}@media (min-width: 36em){duet-logo{margin-left:28px !important}}@media (min-width: 62em){duet-logo{margin-left:0 !important}}.duet-footer-link{padding:16px !important;display:flex;flex-direction:row;align-items:center;width:100%;font-weight:600;border-bottom:1px solid rgba(255, 255, 255, 0.2);transition:background-color 300ms ease}@media (min-width: 36em){.duet-footer-link{padding-right:20px !important;padding-left:28px !important}}@media (min-width: 62em){.duet-footer-link{width:auto;min-width:0;padding-right:0 !important;padding-left:0 !important;border:0}}.duet-footer-link:first-of-type{margin-top:20px;border-top:1px solid rgba(255, 255, 255, 0.2)}@media (min-width: 62em){.duet-footer-link:first-of-type{margin:0;border:0}}.duet-footer-link span{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.duet-footer-link:hover{background:rgba(0, 0, 0, 0.1)}@media (min-width: 62em){.duet-footer-link:hover{background:transparent}}.duet-footer-icon{display:flex;align-items:center;justify-content:center;padding:12px;margin-right:16px;background:rgb(0, 119, 179);border-radius:50%;transition:300ms ease}.duet-theme-turva .duet-footer-icon{background:transparent;box-shadow:0 0 0 1px rgb(255, 255, 255)}a:hover .duet-footer-icon{background:#006ba1}.duet-theme-turva a:hover .duet-footer-icon{background:transparent}.duet-footer-arrow{display:flex;align-items:center;justify-content:center;width:20px;min-width:20px;max-width:20px;height:20px;max-height:20px;margin-left:auto;color:rgb(255, 255, 255);transition:transform 300ms ease}@media (min-width: 62em){.duet-footer-arrow{width:10px;min-width:10px;margin-top:3px;margin-left:8px}}@media (min-width: 62em){.duet-footer-arrow{margin-right:0}}a:hover .duet-footer-arrow{transform:translateX(4px)}.duet-footer-arrow duet-icon{width:20px;height:20px}@media (min-width: 62em){.duet-footer-arrow duet-icon{width:10px;height:10px}}.duet-footer-menu{padding:20px !important;display:flex;gap:2rem;font-size:0.875rem}@media (min-width: 36em){.duet-footer-menu{padding:28px !important}}@media (min-width: 62em){.duet-footer-menu{padding-left:8px !important}}.duet-footer-menu a{display:inline-block;text-decoration:none;word-break:break-all}.duet-footer-menu a:hover,.duet-footer-menu a:focus{text-decoration:underline}.duet-footer-menu a:hover .duet-footer-divider,.duet-footer-menu a:focus .duet-footer-divider{text-decoration:none}.duet-footer-menu .duet-footer-divider{display:inline-block;margin:0 8px}.duet-footer-menu .duet-footer-divider-copyright{display:none}.duet-footer-menu .duet-footer-menu-links{flex:1}@media (min-width: 62em){.duet-footer-menu .duet-footer-menu-links{text-align:right}}.duet-footer-menu a:last-of-type .duet-footer-divider{display:none}.duet-footer-copyright{display:none;font-size:0.875rem;color:rgb(255, 255, 255)}@media (min-width: 62em){.duet-footer-copyright{display:inline}}.duet-footer-copyright.duet-footer-copyright-mobile{display:block;padding-top:0.5rem;padding-bottom:1.25rem;padding-left:2rem;text-align:left}@media (min-width: 62em){.duet-footer-copyright.duet-footer-copyright-mobile{display:none}}.duet-footer-simple{padding:0;margin:0;margin-top:16px;color:rgb(0, 41, 77);background:transparent !important;border-top:1px solid rgb(225, 227, 230)}.duet-footer-simple .duet-footer-wrapper{max-width:100%;padding:0 20px;margin:0}@media (min-width: 62em){.duet-footer-simple .duet-footer-wrapper{padding:0 36px}}@media (min-width: 106.25em){.duet-footer-simple .duet-footer-wrapper{padding:0 48px}}.duet-footer-simple .duet-footer-copyright,.duet-footer-simple .duet-footer-menu a{color:rgb(0, 41, 77)}.duet-footer-simple .duet-footer-menu{padding:20px 0 !important}.duet-footer-simple .duet-footer-copyright-mobile{padding-left:0}.duet-footer-simple.duet-theme-turva{color:rgb(23, 28, 58);border-color:rgb(228, 228, 230)}.duet-footer-simple.duet-theme-turva .duet-footer-copyright,.duet-footer-simple.duet-theme-turva .duet-footer-menu a{color:rgb(23, 28, 58)}.duet-footer-external{display:inline-block;margin-left:4px;color:rgb(0, 119, 179)}.duet-theme-turva .duet-footer-external{color:rgb(255, 255, 255)}.duet-footer-simple.duet-theme-turva .duet-footer-external{color:rgb(198, 12, 48)}';export{g as duet_footer}
@@ -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{a(d.next(t))}catch(t){l(t)}}function n(t){try{a(d["throw"](t))}catch(t){l(t)}}function a(t){t.done?i(t.value):s(t.value).then(o,n)}a((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:n(0),throw:n(1),return:n(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function n(t){return function(e){return a([t,e])}}function a(n){if(d)throw new TypeError("Generator is already executing.");while(o&&(o=0,n[0]&&(i=0)),i)try{if(d=1,s&&(l=n[0]&2?s["return"]:n[0]?s["throw"]||((l=s["return"])&&l.call(s),0):s.next)&&!(l=l.call(s,n[1])).done)return l;if(s=0,l)n=[n[0]&2,l.value];switch(n[0]){case 0:case 1:l=n;break;case 4:i.label++;return{value:n[1],done:false};case 5:i.label++;s=n[1];n=[0];continue;case 7:n=i.ops.pop();i.trys.pop();continue;default:if(!(l=i.trys,l=l.length>0&&l[l.length-1])&&(n[0]===6||n[0]===2)){i=0;continue}if(n[0]===3&&(!l||n[1]>l[0]&&n[1]<l[3])){i.label=n[1];break}if(n[0]===6&&i.label<l[1]){i.label=l[1];l=n;break}if(l&&i.label<l[2]){i.label=l[2];i.ops.push(n);break}if(l[2])i.ops.pop();i.trys.pop();continue}n=e.call(t,i)}catch(t){n=[6,t];s=0}finally{d=l=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register(["./p-3df81a44.system.js","./p-33b3aba4.system.js","./p-eb55ccd2.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 n="*,*::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 a=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",{class:{"duet-list-component":true,"duet-m-0":this.margin==="none"}},i("slot",null))};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}());a.style=n;var r='*,*::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(0, 41, 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;word-break:break-all;word-break: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, 245, 247)}:host(.duet-list-bordered){border-block-start:1px solid rgb(225, 227, 230)}:host(.duet-list-bordered:last-child){border-block-end:1px solid rgb(225, 227, 230)}:host(.duet-list-bordered.duet-theme-turva){border-block-start:1px solid rgb(228, 228, 230)}:host(.duet-list-bordered.duet-theme-turva:last-child){border-block-end:1px solid rgb(228, 228, 230)}:host(.duet-list-inner-bordered:not(:last-child)){border-block-end:1px solid rgb(225, 227, 230)}:host(.duet-list-inner-bordered.duet-theme-turva:not(:last-child)){border-block-end:1px solid rgb(228, 228, 230)}: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%}}';var u=t("duet_list_item",function(){function t(t){e(this,t);this.responsive=false;this.breakpoint="small"}t.prototype.render=function(){return i(s,{class:{"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",null,i("slot",{name:"label"})),i("dd",null,i("slot",{name:"value"})))};return t}());u.style=r}}}));
4
+ */System.register(["./p-d7159142.system.js","./p-33b3aba4.system.js","./p-eb55ccd2.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 n="*,*::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 a=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",{class:{"duet-list-component":true,"duet-m-0":this.margin==="none"}},i("slot",null))};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}());a.style=n;var r='*,*::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(0, 41, 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;word-break:break-all;word-break: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, 245, 247)}:host(.duet-list-bordered){border-block-start:1px solid rgb(225, 227, 230)}:host(.duet-list-bordered:last-child){border-block-end:1px solid rgb(225, 227, 230)}:host(.duet-list-bordered.duet-theme-turva){border-block-start:1px solid rgb(228, 228, 230)}:host(.duet-list-bordered.duet-theme-turva:last-child){border-block-end:1px solid rgb(228, 228, 230)}:host(.duet-list-inner-bordered:not(:last-child)){border-block-end:1px solid rgb(225, 227, 230)}:host(.duet-list-inner-bordered.duet-theme-turva:not(:last-child)){border-block-end:1px solid rgb(228, 228, 230)}: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%}}';var u=t("duet_list_item",function(){function t(t){e(this,t);this.responsive=false;this.breakpoint="small"}t.prototype.render=function(){return i(s,{class:{"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",null,i("slot",{name:"label"})),i("dd",null,i("slot",{name:"value"})))};return t}());u.style=r}}}));