@duetds/components 9.14.0 → 9.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (719) hide show
  1. package/hydrate/index.js +231 -196
  2. package/lib/cjs/{a11y-utils-a934645c.js → a11y-utils-741fad59.js} +1 -1
  3. package/lib/cjs/{app-globals-6b9852f3.js → app-globals-c5cb9046.js} +1 -1
  4. package/lib/cjs/{common-strings-a54bbf77.js → common-strings-92c2f034.js} +23 -0
  5. package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
  6. package/lib/cjs/duet-alert.cjs.entry.js +20 -32
  7. package/lib/cjs/duet-badge.cjs.entry.js +16 -4
  8. package/lib/cjs/duet-banner.cjs.entry.js +3 -3
  9. package/lib/cjs/duet-breadcrumb.cjs.entry.js +7 -7
  10. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +5 -5
  11. package/lib/cjs/duet-button_2.cjs.entry.js +4 -4
  12. package/lib/cjs/duet-callout.cjs.entry.js +5 -5
  13. package/lib/cjs/duet-caption_4.cjs.entry.js +9 -9
  14. package/lib/cjs/duet-card.cjs.entry.js +8 -7
  15. package/lib/cjs/duet-checkbox.cjs.entry.js +2 -2
  16. package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
  17. package/lib/cjs/duet-chip.cjs.entry.js +3 -3
  18. package/lib/cjs/duet-choice_2.cjs.entry.js +28 -21
  19. package/lib/cjs/duet-collapsible.cjs.entry.js +3 -3
  20. package/lib/cjs/duet-combobox.cjs.entry.js +4 -4
  21. package/lib/cjs/duet-contact-card.cjs.entry.js +5 -5
  22. package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
  23. package/lib/cjs/duet-date-picker.cjs.entry.js +18 -8
  24. package/lib/cjs/duet-divider_2.cjs.entry.js +2 -2
  25. package/lib/cjs/duet-editable-table_3.cjs.entry.js +6 -6
  26. package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
  27. package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
  28. package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
  29. package/lib/cjs/duet-footer.cjs.entry.js +5 -5
  30. package/lib/cjs/duet-grid_2.cjs.entry.js +2 -2
  31. package/lib/cjs/duet-header_2.cjs.entry.js +4 -4
  32. package/lib/cjs/duet-hero.cjs.entry.js +6 -6
  33. package/lib/cjs/duet-icon.cjs.entry.js +5 -5
  34. package/lib/cjs/duet-input_2.cjs.entry.js +4 -4
  35. package/lib/cjs/duet-layout.cjs.entry.js +2 -2
  36. package/lib/cjs/duet-list_2.cjs.entry.js +4 -4
  37. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +4 -4
  38. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +4 -4
  39. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +6 -6
  40. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +8 -8
  41. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +4 -4
  42. package/lib/cjs/duet-menu-bar.cjs.entry.js +3 -3
  43. package/lib/cjs/duet-modal.cjs.entry.js +6 -6
  44. package/lib/cjs/duet-multiselect.cjs.entry.js +4 -4
  45. package/lib/cjs/duet-nav.cjs.entry.js +3 -3
  46. package/lib/cjs/duet-notification_2.cjs.entry.js +5 -5
  47. package/lib/cjs/duet-number-input.cjs.entry.js +4 -4
  48. package/lib/cjs/duet-overlay.cjs.entry.js +2 -2
  49. package/lib/cjs/duet-page-heading.cjs.entry.js +4 -4
  50. package/lib/cjs/duet-pagination_2.cjs.entry.js +3 -3
  51. package/lib/cjs/duet-panel.cjs.entry.js +2 -2
  52. package/lib/cjs/duet-phone-input.cjs.entry.js +4 -4
  53. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +4 -4
  54. package/lib/cjs/duet-progress.cjs.entry.js +3 -3
  55. package/lib/cjs/duet-promo-card.cjs.entry.js +5 -5
  56. package/lib/cjs/duet-radio_2.cjs.entry.js +3 -3
  57. package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
  58. package/lib/cjs/duet-scrollable_3.cjs.entry.js +23 -20
  59. package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
  60. package/lib/cjs/duet-select.cjs.entry.js +3 -3
  61. package/lib/cjs/duet-shaped-image.cjs.entry.js +4 -4
  62. package/lib/cjs/duet-share-chart-item.cjs.entry.js +2 -2
  63. package/lib/cjs/duet-share-chart.cjs.entry.js +8 -6
  64. package/lib/cjs/duet-show-more.cjs.entry.js +3 -3
  65. package/lib/cjs/duet-slideout-lang.cjs.entry.js +4 -4
  66. package/lib/cjs/duet-slideout-link.cjs.entry.js +8 -8
  67. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +6 -6
  68. package/lib/cjs/duet-slideout-panel.cjs.entry.js +11 -11
  69. package/lib/cjs/duet-slideout.cjs.entry.js +5 -5
  70. package/lib/cjs/duet-status-icon.cjs.entry.js +3 -3
  71. package/lib/cjs/duet-step_2.cjs.entry.js +4 -4
  72. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +4 -4
  73. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +6 -6
  74. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +7 -7
  75. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +3 -3
  76. package/lib/cjs/duet-submenu-bar.cjs.entry.js +7 -7
  77. package/lib/cjs/duet-textarea.cjs.entry.js +4 -4
  78. package/lib/cjs/duet-toggle.cjs.entry.js +2 -2
  79. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +4 -4
  80. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +6 -6
  81. package/lib/cjs/duet-toolbar-item.cjs.entry.js +9 -9
  82. package/lib/cjs/duet-toolbar-link.cjs.entry.js +4 -4
  83. package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
  84. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +8 -8
  85. package/lib/cjs/duet-tooltip.cjs.entry.js +3 -3
  86. package/lib/cjs/duet-tray.cjs.entry.js +5 -5
  87. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
  88. package/lib/cjs/duet-upload-item.cjs.entry.js +4 -4
  89. package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
  90. package/lib/cjs/duet.cjs.js +3 -3
  91. package/lib/cjs/{errorcodes.utils-9ce7ca99.js → errorcodes.utils-699bddbb.js} +1 -1
  92. package/lib/cjs/{focus-utils-fa11f04b.js → focus-utils-4a07d896.js} +1 -1
  93. package/lib/cjs/{index-3d15fb5e.js → index-80fa07e3.js} +1 -1
  94. package/lib/cjs/{language-utils-eaec2648.js → language-utils-ce60d2a9.js} +1 -1
  95. package/lib/cjs/loader.cjs.js +3 -3
  96. package/lib/cjs/{slot-utils-61317778.js → slot-utils-9c5efe2a.js} +1 -1
  97. package/lib/cjs/{themeable-component-46222401.js → themeable-component-1307284b.js} +1 -1
  98. package/lib/collection/common-strings.js +22 -0
  99. package/lib/collection/components/duet-alert/duet-alert.js +17 -29
  100. package/lib/collection/components/duet-badge/duet-badge.js +13 -2
  101. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
  102. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
  103. package/lib/collection/components/duet-callout/duet-callout.js +2 -2
  104. package/lib/collection/components/duet-card/duet-card.js +31 -4
  105. package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
  106. package/lib/collection/components/duet-choice/duet-choice.js +0 -21
  107. package/lib/collection/components/duet-choice-group/duet-choice-group.js +23 -14
  108. package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
  109. package/lib/collection/components/duet-date-picker/date-picker-day.js +6 -1
  110. package/lib/collection/components/duet-date-picker/date-utils.js +6 -1
  111. package/lib/collection/components/duet-date-picker/duet-date-picker.css +2 -2
  112. package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
  113. package/lib/collection/components/duet-heading/duet-heading.css +1 -0
  114. package/lib/collection/components/duet-hero/duet-hero.css +95 -0
  115. package/lib/collection/components/duet-icon/duet-icon.js +3 -3
  116. package/lib/collection/components/duet-link/duet-link.js +2 -2
  117. package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
  118. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
  119. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
  120. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
  121. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
  122. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
  123. package/lib/collection/components/duet-nav/duet-nav.js +1 -1
  124. package/lib/collection/components/duet-notification/duet-notification.js +2 -2
  125. package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
  126. package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
  127. package/lib/collection/components/duet-scrollable/duet-scrollable.js +6 -6
  128. package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
  129. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
  130. package/lib/collection/components/duet-share-chart/duet-share-chart.js +4 -2
  131. package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +1 -1
  132. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
  133. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
  134. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
  135. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
  136. package/lib/collection/components/duet-status-icon/duet-status-icon.js +2 -2
  137. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
  138. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
  139. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
  140. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
  141. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
  142. package/lib/collection/components/duet-tab-group/duet-tab-group.js +14 -11
  143. package/lib/collection/components/duet-table/duet-table.js +2 -2
  144. package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
  145. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
  146. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
  147. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
  148. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
  149. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +3 -3
  150. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
  151. package/lib/collection/components/duet-tray/duet-tray.js +2 -2
  152. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
  153. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  154. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  155. package/lib/dist-custom-elements/duet-alert.js +1 -1
  156. package/lib/dist-custom-elements/duet-badge.js +1 -1
  157. package/lib/dist-custom-elements/duet-banner.js +3 -3
  158. package/lib/dist-custom-elements/duet-breadcrumb.js +7 -7
  159. package/lib/dist-custom-elements/duet-breadcrumbs.js +3 -3
  160. package/lib/dist-custom-elements/duet-button.js +1 -1
  161. package/lib/dist-custom-elements/duet-callout.js +4 -4
  162. package/lib/dist-custom-elements/duet-caption.js +1 -1
  163. package/lib/dist-custom-elements/duet-card.js +9 -7
  164. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  165. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  166. package/lib/dist-custom-elements/duet-chip.js +1 -1
  167. package/lib/dist-custom-elements/duet-choice-group.js +31 -22
  168. package/lib/dist-custom-elements/duet-choice.js +5 -7
  169. package/lib/dist-custom-elements/duet-collapsible.js +3 -3
  170. package/lib/dist-custom-elements/duet-combobox.js +15 -15
  171. package/lib/dist-custom-elements/duet-contact-card.js +10 -10
  172. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  173. package/lib/dist-custom-elements/duet-date-picker.js +26 -16
  174. package/lib/dist-custom-elements/duet-divider.js +1 -1
  175. package/lib/dist-custom-elements/duet-editable-table.js +7 -7
  176. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  177. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  178. package/lib/dist-custom-elements/duet-file-chooser.js +2 -2
  179. package/lib/dist-custom-elements/duet-footer.js +8 -8
  180. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  181. package/lib/dist-custom-elements/duet-grid.js +1 -1
  182. package/lib/dist-custom-elements/duet-header.js +9 -9
  183. package/lib/dist-custom-elements/duet-heading.js +1 -1
  184. package/lib/dist-custom-elements/duet-hero.js +11 -11
  185. package/lib/dist-custom-elements/duet-icon.js +1 -1
  186. package/lib/dist-custom-elements/duet-input.js +1 -1
  187. package/lib/dist-custom-elements/duet-label.js +1 -1
  188. package/lib/dist-custom-elements/duet-layout.js +1 -1
  189. package/lib/dist-custom-elements/duet-link.js +1 -1
  190. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  191. package/lib/dist-custom-elements/duet-list.js +1 -1
  192. package/lib/dist-custom-elements/duet-logo.js +1 -1
  193. package/lib/dist-custom-elements/duet-menu-bar-button.js +4 -4
  194. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +4 -4
  195. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +6 -6
  196. package/lib/dist-custom-elements/duet-menu-bar-item.js +5 -5
  197. package/lib/dist-custom-elements/duet-menu-bar-link.js +4 -4
  198. package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
  199. package/lib/dist-custom-elements/duet-modal.js +9 -9
  200. package/lib/dist-custom-elements/duet-multiselect.js +9 -9
  201. package/lib/dist-custom-elements/duet-nav.js +2 -2
  202. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  203. package/lib/dist-custom-elements/duet-notification.js +4 -4
  204. package/lib/dist-custom-elements/duet-number-input.js +11 -11
  205. package/lib/dist-custom-elements/duet-overlay.js +1 -1
  206. package/lib/dist-custom-elements/duet-page-heading.js +5 -5
  207. package/lib/dist-custom-elements/duet-pagination.js +13 -13
  208. package/lib/dist-custom-elements/duet-panel.js +1 -1
  209. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  210. package/lib/dist-custom-elements/duet-phone-input.js +16 -16
  211. package/lib/dist-custom-elements/duet-popup-menu-item.js +1 -1
  212. package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
  213. package/lib/dist-custom-elements/duet-progress.js +1 -1
  214. package/lib/dist-custom-elements/duet-promo-card.js +5 -5
  215. package/lib/dist-custom-elements/duet-radio-group.js +8 -8
  216. package/lib/dist-custom-elements/duet-radio.js +1 -1
  217. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  218. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  219. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  220. package/lib/dist-custom-elements/duet-section-layout.js +4 -4
  221. package/lib/dist-custom-elements/duet-select.js +1 -1
  222. package/lib/dist-custom-elements/duet-shaped-image.js +3 -3
  223. package/lib/dist-custom-elements/duet-share-chart-item.js +2 -2
  224. package/lib/dist-custom-elements/duet-share-chart.js +6 -4
  225. package/lib/dist-custom-elements/duet-show-more.js +1 -1
  226. package/lib/dist-custom-elements/duet-slideout-lang.js +3 -3
  227. package/lib/dist-custom-elements/duet-slideout-link.js +5 -5
  228. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +6 -6
  229. package/lib/dist-custom-elements/duet-slideout-panel.js +8 -8
  230. package/lib/dist-custom-elements/duet-slideout.js +3 -3
  231. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  232. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  233. package/lib/dist-custom-elements/duet-status-icon.js +1 -1
  234. package/lib/dist-custom-elements/duet-step.js +4 -4
  235. package/lib/dist-custom-elements/duet-stepper.js +3 -3
  236. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +4 -4
  237. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +6 -6
  238. package/lib/dist-custom-elements/duet-submenu-bar-item.js +4 -4
  239. package/lib/dist-custom-elements/duet-submenu-bar-link.js +3 -3
  240. package/lib/dist-custom-elements/duet-submenu-bar.js +8 -8
  241. package/lib/dist-custom-elements/duet-tab-group.js +21 -18
  242. package/lib/dist-custom-elements/duet-tab.js +1 -1
  243. package/lib/dist-custom-elements/duet-table.js +1 -1
  244. package/lib/dist-custom-elements/duet-textarea.js +10 -10
  245. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  246. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +4 -4
  247. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +6 -6
  248. package/lib/dist-custom-elements/duet-toolbar-item.js +6 -6
  249. package/lib/dist-custom-elements/duet-toolbar-link.js +4 -4
  250. package/lib/dist-custom-elements/duet-toolbar.js +3 -3
  251. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  252. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  253. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  254. package/lib/dist-custom-elements/duet-tray.js +5 -5
  255. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  256. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  257. package/lib/dist-custom-elements/duet-upload.js +20 -20
  258. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  259. package/lib/dist-custom-elements/index.js +1 -1
  260. package/lib/dist-custom-elements/{p-a69bc735.js → p-0a932f51.js} +1 -1
  261. package/lib/dist-custom-elements/{p-ee948dc8.js → p-15d1bb49.js} +2 -2
  262. package/lib/dist-custom-elements/{p-92710b68.js → p-1901a05e.js} +1 -1
  263. package/lib/dist-custom-elements/{p-05fb2c81.js → p-1b1d5047.js} +4 -4
  264. package/lib/dist-custom-elements/{p-c7f33aed.js → p-1b591fcd.js} +1 -1
  265. package/lib/dist-custom-elements/{p-fddb3ec1.js → p-1f2176b1.js} +1 -1
  266. package/lib/dist-custom-elements/{p-f3b2867a.js → p-2e95d393.js} +3 -3
  267. package/lib/dist-custom-elements/{p-3471fa90.js → p-2fa067ff.js} +1 -1
  268. package/lib/dist-custom-elements/{p-d0bc3da2.js → p-307aa29d.js} +1 -1
  269. package/lib/dist-custom-elements/{p-db2b09ab.js → p-31316d91.js} +1 -1
  270. package/lib/dist-custom-elements/{p-9f715fa9.js → p-35af6d7a.js} +1 -1
  271. package/lib/dist-custom-elements/{p-e9c8ad74.js → p-3b352cea.js} +1 -1
  272. package/lib/dist-custom-elements/{p-a4513f7a.js → p-49fcb05d.js} +2 -2
  273. package/lib/dist-custom-elements/{p-d04e213c.js → p-4b8be370.js} +12 -12
  274. package/lib/dist-custom-elements/{p-61b4aec9.js → p-4c68ba95.js} +10 -10
  275. package/lib/dist-custom-elements/{p-96cabce8.js → p-5d684af3.js} +23 -35
  276. package/lib/dist-custom-elements/{p-dc970fdb.js → p-5ee14292.js} +1 -1
  277. package/lib/dist-custom-elements/{p-cc1b78ce.js → p-6098c129.js} +10 -10
  278. package/lib/dist-custom-elements/{p-85f0068e.js → p-62a4796f.js} +5 -5
  279. package/lib/dist-custom-elements/{p-65300e85.js → p-66c6751e.js} +5 -5
  280. package/lib/dist-custom-elements/{p-f479ee47.js → p-6b02ba40.js} +5 -5
  281. package/lib/dist-custom-elements/{p-5e16131c.js → p-8a6a51b2.js} +1 -1
  282. package/lib/dist-custom-elements/{p-9ac441e6.js → p-8d68da95.js} +3 -3
  283. package/lib/dist-custom-elements/{p-81360956.js → p-8debf5b8.js} +2 -2
  284. package/lib/dist-custom-elements/{p-3a815628.js → p-92467a66.js} +11 -11
  285. package/lib/dist-custom-elements/{p-f38adca4.js → p-9654a846.js} +5 -5
  286. package/lib/dist-custom-elements/{p-0a34fa11.js → p-9a9b2708.js} +1 -1
  287. package/lib/dist-custom-elements/{p-3883f329.js → p-9dc1ec50.js} +5 -5
  288. package/lib/dist-custom-elements/{p-10893657.js → p-9efbcc67.js} +1 -1
  289. package/lib/dist-custom-elements/{p-444e732a.js → p-a1876945.js} +5 -5
  290. package/lib/dist-custom-elements/{p-778364d6.js → p-a20321ec.js} +3 -3
  291. package/lib/{esm/common-strings-a48b3fba.js → dist-custom-elements/p-b7a93f1c.js} +23 -1
  292. package/lib/dist-custom-elements/{p-e77ffc34.js → p-d17f51c7.js} +3 -3
  293. package/lib/dist-custom-elements/{p-36f6ec52.js → p-d3345442.js} +2 -2
  294. package/lib/dist-custom-elements/{p-d5c72ea3.js → p-dd16af35.js} +4 -4
  295. package/lib/dist-custom-elements/{p-25f8ea4b.js → p-e371f35d.js} +2 -2
  296. package/lib/dist-custom-elements/{p-0e0a0525.js → p-e54a1871.js} +21 -4
  297. package/lib/dist-custom-elements/{p-f290964d.js → p-ea21cb5d.js} +5 -5
  298. package/lib/dist-custom-elements/{p-b3835995.js → p-f214be38.js} +3 -3
  299. package/lib/dist-custom-elements/{p-3419cd58.js → p-f5b135c5.js} +8 -8
  300. package/lib/dist-custom-elements/{p-706a9a13.js → p-ff94cac9.js} +2 -2
  301. package/lib/duet/duet.esm.js +1 -1
  302. package/lib/duet/duet.js +1 -1
  303. package/lib/duet/{p-7856f483.entry.js → p-0018881b.entry.js} +1 -1
  304. package/lib/duet/{p-fe9adf7c.system.entry.js → p-007eb67f.system.entry.js} +1 -1
  305. package/lib/duet/{p-9dc97ec5.entry.js → p-039cbd8d.entry.js} +1 -1
  306. package/lib/duet/{p-4e21f876.system.entry.js → p-05f7f78d.system.entry.js} +1 -1
  307. package/lib/duet/{p-6a900d10.entry.js → p-08f39b32.entry.js} +1 -1
  308. package/lib/duet/{p-19ad52bc.entry.js → p-0ad0afe1.entry.js} +1 -1
  309. package/lib/duet/{p-961dc1b6.entry.js → p-0bbfb836.entry.js} +1 -1
  310. package/lib/duet/{p-f947b5c5.system.entry.js → p-0beb2a3f.system.entry.js} +1 -1
  311. package/lib/duet/{p-11e013dd.entry.js → p-0d9f34ae.entry.js} +1 -1
  312. package/lib/duet/{p-4c44b9d0.system.entry.js → p-0dcf3c74.system.entry.js} +1 -1
  313. package/lib/duet/{p-dc3646e2.system.entry.js → p-0e442247.system.entry.js} +1 -1
  314. package/lib/duet/{p-322c0015.system.entry.js → p-0ff4932b.system.entry.js} +1 -1
  315. package/lib/duet/p-1192e8c9.entry.js +4 -0
  316. package/lib/duet/{p-8e7af8a4.system.entry.js → p-137beb16.system.entry.js} +1 -1
  317. package/lib/duet/{p-adcfa80c.system.entry.js → p-14ffb5c1.system.entry.js} +1 -1
  318. package/lib/duet/{p-463b0d7a.entry.js → p-15694ea7.entry.js} +1 -1
  319. package/lib/duet/{p-f7b6fecb.entry.js → p-17a1f7cd.entry.js} +1 -1
  320. package/lib/duet/p-18b56724.entry.js +4 -0
  321. package/lib/duet/{p-8a9fb89c.system.entry.js → p-18c66326.system.entry.js} +1 -1
  322. package/lib/duet/{p-c157389b.system.entry.js → p-1a46c899.system.entry.js} +1 -1
  323. package/lib/duet/{p-a2f05f0b.system.entry.js → p-1b393d78.system.entry.js} +1 -1
  324. package/lib/duet/{p-7fd0a219.system.js → p-1cc2eb98.system.js} +1 -1
  325. package/lib/duet/{p-3b9c02b1.entry.js → p-1daaef7a.entry.js} +1 -1
  326. package/lib/duet/{p-52746f84.entry.js → p-1dc4442a.entry.js} +1 -1
  327. package/lib/duet/{p-e70fad83.entry.js → p-1dd1cd21.entry.js} +1 -1
  328. package/lib/duet/{p-0bc88aac.system.entry.js → p-200f57b6.system.entry.js} +1 -1
  329. package/lib/duet/{p-413fc831.system.entry.js → p-2179e714.system.entry.js} +2 -2
  330. package/lib/duet/{p-0e4ff2a3.system.entry.js → p-22ab0759.system.entry.js} +1 -1
  331. package/lib/duet/{p-2ee8e84d.system.entry.js → p-24749596.system.entry.js} +1 -1
  332. package/lib/duet/p-24954951.js +4 -0
  333. package/lib/duet/{p-e8777cf4.entry.js → p-2500e9bc.entry.js} +1 -1
  334. package/lib/duet/{p-62cb44f1.entry.js → p-26b49f30.entry.js} +1 -1
  335. package/lib/duet/{p-78024429.system.entry.js → p-2bc08ca1.system.entry.js} +1 -1
  336. package/lib/duet/{p-147f5eb5.entry.js → p-2dc5c7c5.entry.js} +1 -1
  337. package/lib/duet/{p-75542e0e.entry.js → p-2dddb575.entry.js} +1 -1
  338. package/lib/duet/{p-f9b9fbf5.entry.js → p-3455bcd6.entry.js} +1 -1
  339. package/lib/duet/{p-6d5e6c51.system.entry.js → p-367a3dd8.system.entry.js} +1 -1
  340. package/lib/duet/{p-23d5c3fe.system.entry.js → p-38f30c2b.system.entry.js} +1 -1
  341. package/lib/duet/{p-38faf7e7.system.entry.js → p-3b816caf.system.entry.js} +1 -1
  342. package/lib/duet/{p-352b3557.system.entry.js → p-3f3571ae.system.entry.js} +1 -1
  343. package/lib/duet/{p-1a767c08.system.entry.js → p-3f8dd0b3.system.entry.js} +1 -1
  344. package/lib/duet/{p-f835eb92.system.entry.js → p-431b0896.system.entry.js} +1 -1
  345. package/lib/duet/{p-ed810e76.system.js → p-43d6b171.system.js} +1 -1
  346. package/lib/duet/{p-2e58b3ab.system.entry.js → p-451fe5ef.system.entry.js} +1 -1
  347. package/lib/duet/{p-4215bd92.system.entry.js → p-460c0029.system.entry.js} +1 -1
  348. package/lib/duet/{p-cb279bed.system.entry.js → p-47fd41c6.system.entry.js} +1 -1
  349. package/lib/duet/{p-704b8b7e.entry.js → p-48452fe6.entry.js} +1 -1
  350. package/lib/duet/{p-2e7454bd.system.entry.js → p-484c1cc2.system.entry.js} +1 -1
  351. package/lib/duet/{p-ebb0b51d.system.entry.js → p-4a7a6dcb.system.entry.js} +1 -1
  352. package/lib/duet/p-4ac878dd.system.entry.js +4 -0
  353. package/lib/duet/{p-52d80d96.js → p-50cb674e.js} +1 -1
  354. package/lib/duet/p-510aee05.entry.js +4 -0
  355. package/lib/duet/{p-07d21021.system.entry.js → p-531d399b.system.entry.js} +1 -1
  356. package/lib/duet/{p-9361e0ff.entry.js → p-544a2e7d.entry.js} +1 -1
  357. package/lib/duet/{p-83c0cfed.entry.js → p-552be4d4.entry.js} +1 -1
  358. package/lib/duet/{p-f58cbc59.system.entry.js → p-55eab330.system.entry.js} +1 -1
  359. package/lib/duet/{p-76c797cb.system.entry.js → p-56c024f4.system.entry.js} +1 -1
  360. package/lib/duet/{p-f3587718.system.entry.js → p-57b716e6.system.entry.js} +1 -1
  361. package/lib/duet/p-583b4f49.js +4 -0
  362. package/lib/duet/{p-7a022fb4.system.entry.js → p-58b34a23.system.entry.js} +1 -1
  363. package/lib/duet/{p-8cbe7888.system.entry.js → p-58d2375e.system.entry.js} +1 -1
  364. package/lib/duet/p-58f4c4ef.system.entry.js +4 -0
  365. package/lib/duet/{p-d6a2cc77.system.entry.js → p-5afe6d8e.system.entry.js} +1 -1
  366. package/lib/duet/{p-c70b52b6.entry.js → p-5b0337d8.entry.js} +1 -1
  367. package/lib/duet/{p-2a542c6a.entry.js → p-5b0f2f3d.entry.js} +1 -1
  368. package/lib/duet/{p-628a59a6.entry.js → p-5bcce1c4.entry.js} +1 -1
  369. package/lib/duet/{p-8f55b49a.system.entry.js → p-5cb10012.system.entry.js} +1 -1
  370. package/lib/duet/{p-d3e245f0.system.entry.js → p-5d987b8d.system.entry.js} +2 -2
  371. package/lib/duet/{p-cd27da84.entry.js → p-5e1045dc.entry.js} +1 -1
  372. package/lib/duet/{p-854605a6.js → p-5e658b40.js} +1 -1
  373. package/lib/duet/{p-89f89a39.system.entry.js → p-6015aa05.system.entry.js} +2 -2
  374. package/lib/duet/{p-49b6f9a1.entry.js → p-601e275c.entry.js} +1 -1
  375. package/lib/duet/p-60636c0f.js +4 -0
  376. package/lib/duet/{p-6f46b9da.system.entry.js → p-6106103e.system.entry.js} +1 -1
  377. package/lib/duet/{p-b728fce7.system.entry.js → p-612fe73a.system.entry.js} +1 -1
  378. package/lib/duet/p-61b2c1c9.entry.js +4 -0
  379. package/lib/duet/{p-7ce8fc32.system.entry.js → p-61bb70ea.system.entry.js} +2 -2
  380. package/lib/duet/{p-08f594ea.entry.js → p-6314d434.entry.js} +1 -1
  381. package/lib/duet/{p-6a4e23b5.entry.js → p-63d23d82.entry.js} +1 -1
  382. package/lib/duet/{p-20170d5a.entry.js → p-66dd8b2f.entry.js} +1 -1
  383. package/lib/duet/{p-c0020521.entry.js → p-6703c635.entry.js} +1 -1
  384. package/lib/duet/{p-99ffd1cf.system.js → p-694e5a97.system.js} +1 -1
  385. package/lib/duet/{p-af4c5e2b.entry.js → p-69b7e6dc.entry.js} +1 -1
  386. package/lib/duet/{p-7be7fb2c.entry.js → p-6b97b58c.entry.js} +1 -1
  387. package/lib/duet/p-6cdc13f4.entry.js +4 -0
  388. package/lib/duet/{p-d8fadd2d.entry.js → p-6ceeb4c1.entry.js} +1 -1
  389. package/lib/duet/{p-98af4e91.entry.js → p-6ec3fa80.entry.js} +1 -1
  390. package/lib/duet/{p-edb65a28.entry.js → p-6eed12c2.entry.js} +1 -1
  391. package/lib/duet/{p-eb7b2984.system.entry.js → p-6fb7afac.system.entry.js} +1 -1
  392. package/lib/duet/{p-2162fe62.entry.js → p-71507957.entry.js} +1 -1
  393. package/lib/duet/p-729bb657.entry.js +4 -0
  394. package/lib/duet/p-72baa999.entry.js +4 -0
  395. package/lib/duet/{p-430ef395.entry.js → p-72e617b1.entry.js} +1 -1
  396. package/lib/duet/{p-0e013c22.system.entry.js → p-72f4c54a.system.entry.js} +1 -1
  397. package/lib/duet/{p-8637a449.js → p-75a66b82.js} +1 -1
  398. package/lib/duet/{p-564022f1.entry.js → p-75eda30d.entry.js} +1 -1
  399. package/lib/duet/p-78df5993.entry.js +4 -0
  400. package/lib/duet/{p-16e80004.entry.js → p-7c597c01.entry.js} +1 -1
  401. package/lib/duet/p-7d4fb1da.system.js +4 -0
  402. package/lib/duet/{p-c371758a.system.entry.js → p-7f50e5e3.system.entry.js} +1 -1
  403. package/lib/duet/{p-86d288e5.entry.js → p-7f5b3bb1.entry.js} +1 -1
  404. package/lib/duet/{p-4a54ae2a.system.entry.js → p-80121038.system.entry.js} +2 -2
  405. package/lib/duet/{p-86929bf6.entry.js → p-8173aad1.entry.js} +1 -1
  406. package/lib/duet/{p-786418b7.system.entry.js → p-81dbbba7.system.entry.js} +1 -1
  407. package/lib/duet/{p-2c15a77e.entry.js → p-8303c23a.entry.js} +1 -1
  408. package/lib/duet/{p-119d8a9d.entry.js → p-8497c4a3.entry.js} +1 -1
  409. package/lib/duet/p-87633fff.system.js +4 -0
  410. package/lib/duet/p-8911207e.entry.js +4 -0
  411. package/lib/duet/p-894105da.entry.js +4 -0
  412. package/lib/duet/{p-18b21048.entry.js → p-8a7cfab8.entry.js} +1 -1
  413. package/lib/duet/{p-344834d8.system.entry.js → p-8c80b769.system.entry.js} +1 -1
  414. package/lib/duet/{p-ec22154d.entry.js → p-8ef88917.entry.js} +1 -1
  415. package/lib/duet/{p-fae74a37.system.entry.js → p-8fa3a4db.system.entry.js} +1 -1
  416. package/lib/duet/{p-2d14dafa.system.entry.js → p-930ea887.system.entry.js} +1 -1
  417. package/lib/duet/{p-17f215e8.entry.js → p-95137492.entry.js} +1 -1
  418. package/lib/duet/{p-593df331.entry.js → p-969327bd.entry.js} +1 -1
  419. package/lib/duet/{p-9921468e.entry.js → p-9715fa3d.entry.js} +1 -1
  420. package/lib/duet/p-9bff6ed8.entry.js +4 -0
  421. package/lib/duet/{p-c60c40a2.entry.js → p-9e93e46d.entry.js} +1 -1
  422. package/lib/duet/{p-3a75e6d3.entry.js → p-9f6fe3bd.entry.js} +1 -1
  423. package/lib/duet/{p-13f4076a.system.entry.js → p-9fe084e8.system.entry.js} +2 -2
  424. package/lib/duet/{p-44b3eb2c.entry.js → p-a12e5499.entry.js} +1 -1
  425. package/lib/duet/{p-0c16128f.entry.js → p-a20eeb3a.entry.js} +1 -1
  426. package/lib/duet/{p-a8527a22.system.entry.js → p-a3c50037.system.entry.js} +1 -1
  427. package/lib/duet/{p-07dd4405.system.entry.js → p-a48a6cf9.system.entry.js} +1 -1
  428. package/lib/duet/{p-baaa9e94.entry.js → p-a4f3a6d6.entry.js} +1 -1
  429. package/lib/duet/{p-01fe0f34.js → p-a68a90f3.js} +1 -1
  430. package/lib/duet/{p-903d05d9.system.entry.js → p-aa224793.system.entry.js} +1 -1
  431. package/lib/duet/{p-f1beb947.system.entry.js → p-aca600ee.system.entry.js} +1 -1
  432. package/lib/duet/{p-5c271084.system.entry.js → p-acac731e.system.entry.js} +1 -1
  433. package/lib/duet/{p-75e72c46.system.entry.js → p-ae3c38ec.system.entry.js} +1 -1
  434. package/lib/duet/{p-561dd467.system.entry.js → p-aee53cdc.system.entry.js} +1 -1
  435. package/lib/duet/{p-b65f6339.system.js → p-b197d195.system.js} +1 -1
  436. package/lib/duet/{p-4989501c.entry.js → p-b21962b0.entry.js} +1 -1
  437. package/lib/duet/{p-d647ef97.system.entry.js → p-b230c327.system.entry.js} +1 -1
  438. package/lib/duet/{p-936f0051.entry.js → p-b275f92a.entry.js} +1 -1
  439. package/lib/duet/{p-2455cbff.system.entry.js → p-b57e1a16.system.entry.js} +1 -1
  440. package/lib/duet/{p-89d45610.entry.js → p-b70e378a.entry.js} +1 -1
  441. package/lib/duet/p-b7f0f071.entry.js +4 -0
  442. package/lib/duet/p-bb3cd264.system.entry.js +4 -0
  443. package/lib/duet/{p-268d9b35.entry.js → p-c1652045.entry.js} +1 -1
  444. package/lib/duet/{p-82733ff7.entry.js → p-c16d08b2.entry.js} +1 -1
  445. package/lib/duet/{p-72b4c06f.js → p-c4a1cfd6.js} +1 -1
  446. package/lib/duet/{p-56bada0c.system.entry.js → p-c57ed342.system.entry.js} +1 -1
  447. package/lib/duet/{p-8edc7ed6.entry.js → p-c6b0afdd.entry.js} +1 -1
  448. package/lib/duet/{p-22932c08.system.entry.js → p-c7302b85.system.entry.js} +1 -1
  449. package/lib/duet/{p-670f33d1.system.js → p-c9798a8d.system.js} +1 -1
  450. package/lib/duet/p-cddad487.system.js +4 -0
  451. package/lib/duet/{p-2a96f88a.system.entry.js → p-cdfca639.system.entry.js} +1 -1
  452. package/lib/duet/{p-08f64c06.entry.js → p-ce447833.entry.js} +1 -1
  453. package/lib/duet/{p-201895ea.system.entry.js → p-d08d078b.system.entry.js} +1 -1
  454. package/lib/duet/{p-ac643c4d.entry.js → p-d1814664.entry.js} +1 -1
  455. package/lib/duet/{p-713918d1.system.entry.js → p-d28853ae.system.entry.js} +1 -1
  456. package/lib/duet/{p-42a0205d.entry.js → p-d3b64256.entry.js} +1 -1
  457. package/lib/duet/{p-11262ef8.system.entry.js → p-d3f723cf.system.entry.js} +1 -1
  458. package/lib/duet/{p-6db869c9.system.entry.js → p-d42f9e4f.system.entry.js} +1 -1
  459. package/lib/duet/p-d4630d55.system.js +4 -0
  460. package/lib/duet/{p-34485370.system.entry.js → p-d4859ceb.system.entry.js} +1 -1
  461. package/lib/duet/{p-1c2dcb63.entry.js → p-d5f395c0.entry.js} +1 -1
  462. package/lib/duet/{p-10310520.entry.js → p-d67c45eb.entry.js} +1 -1
  463. package/lib/duet/{p-22349ab1.system.entry.js → p-d71b8774.system.entry.js} +1 -1
  464. package/lib/duet/{p-901f7bd1.entry.js → p-d9a2772b.entry.js} +1 -1
  465. package/lib/duet/{p-fbc59efc.js → p-d9cafc77.js} +1 -1
  466. package/lib/duet/{p-0cef5003.system.entry.js → p-db82eb02.system.entry.js} +1 -1
  467. package/lib/duet/{p-5f678caa.entry.js → p-dc812f17.entry.js} +1 -1
  468. package/lib/duet/{p-c9751b3c.system.entry.js → p-de0a91b3.system.entry.js} +1 -1
  469. package/lib/duet/{p-7d63b0c0.entry.js → p-e007c11a.entry.js} +1 -1
  470. package/lib/duet/p-e24ab988.system.entry.js +4 -0
  471. package/lib/duet/{p-e6f40951.system.entry.js → p-e2949e43.system.entry.js} +1 -1
  472. package/lib/duet/p-e34ddfda.system.entry.js +4 -0
  473. package/lib/duet/{p-6a718c27.system.entry.js → p-e3a21063.system.entry.js} +1 -1
  474. package/lib/duet/p-e6cd1ffb.system.js +4 -0
  475. package/lib/duet/{p-b083c7df.system.entry.js → p-eb157d71.system.entry.js} +1 -1
  476. package/lib/duet/{p-ff97f8e4.system.entry.js → p-f052ccf2.system.entry.js} +1 -1
  477. package/lib/duet/{p-5b583276.entry.js → p-f0dce24e.entry.js} +1 -1
  478. package/lib/duet/{p-aaa700a4.entry.js → p-f1a06e83.entry.js} +1 -1
  479. package/lib/duet/{p-d06d2098.system.entry.js → p-f38175f1.system.entry.js} +1 -1
  480. package/lib/duet/{p-9ae77fe6.system.entry.js → p-f3a26af1.system.entry.js} +1 -1
  481. package/lib/duet/p-f69dc290.entry.js +4 -0
  482. package/lib/duet/{p-58d8549a.system.entry.js → p-f756e03d.system.entry.js} +1 -1
  483. package/lib/duet/{p-c4e34a8e.entry.js → p-f80ef600.entry.js} +1 -1
  484. package/lib/duet/{p-013232a8.system.entry.js → p-f83e4a46.system.entry.js} +1 -1
  485. package/lib/duet/{p-48fb5298.entry.js → p-f9536c83.entry.js} +1 -1
  486. package/lib/duet/{p-6cf2b2b8.entry.js → p-fa2d27c3.entry.js} +1 -1
  487. package/lib/duet/{p-d6368121.system.entry.js → p-fcb5179d.system.entry.js} +1 -1
  488. package/lib/duet/{p-eb237688.system.entry.js → p-fe7ba159.system.entry.js} +1 -1
  489. package/lib/duet/{p-063b31ef.entry.js → p-ff139142.entry.js} +1 -1
  490. package/lib/duet/{p-fb9c9879.system.entry.js → p-ffe9f317.system.entry.js} +1 -1
  491. package/lib/duet/p-fff88e02.entry.js +4 -0
  492. package/lib/esm/{a11y-utils-87967050.js → a11y-utils-fb6d24ef.js} +1 -1
  493. package/lib/esm/{app-globals-db5be99e.js → app-globals-595167e1.js} +1 -1
  494. package/lib/{dist-custom-elements/p-9b044291.js → esm/common-strings-1274857d.js} +23 -1
  495. package/lib/esm/duet-action-button.entry.js +3 -3
  496. package/lib/esm/duet-alert.entry.js +20 -32
  497. package/lib/esm/duet-badge.entry.js +16 -4
  498. package/lib/esm/duet-banner.entry.js +3 -3
  499. package/lib/esm/duet-breadcrumb.entry.js +7 -7
  500. package/lib/esm/duet-breadcrumbs.entry.js +5 -5
  501. package/lib/esm/duet-button_2.entry.js +4 -4
  502. package/lib/esm/duet-callout.entry.js +5 -5
  503. package/lib/esm/duet-caption_4.entry.js +9 -9
  504. package/lib/esm/duet-card.entry.js +8 -7
  505. package/lib/esm/duet-checkbox.entry.js +2 -2
  506. package/lib/esm/duet-checkmark.entry.js +4 -4
  507. package/lib/esm/duet-chip.entry.js +3 -3
  508. package/lib/esm/duet-choice_2.entry.js +28 -21
  509. package/lib/esm/duet-collapsible.entry.js +3 -3
  510. package/lib/esm/duet-combobox.entry.js +4 -4
  511. package/lib/esm/duet-contact-card.entry.js +5 -5
  512. package/lib/esm/duet-cookie-consent.entry.js +2 -2
  513. package/lib/esm/duet-date-picker.entry.js +18 -8
  514. package/lib/esm/duet-divider_2.entry.js +2 -2
  515. package/lib/esm/duet-editable-table_3.entry.js +6 -6
  516. package/lib/esm/duet-empty-state.entry.js +2 -2
  517. package/lib/esm/duet-fieldset.entry.js +6 -6
  518. package/lib/esm/duet-file-chooser.entry.js +2 -2
  519. package/lib/esm/duet-footer.entry.js +5 -5
  520. package/lib/esm/duet-grid_2.entry.js +2 -2
  521. package/lib/esm/duet-header_2.entry.js +4 -4
  522. package/lib/esm/duet-hero.entry.js +6 -6
  523. package/lib/esm/duet-icon.entry.js +5 -5
  524. package/lib/esm/duet-input_2.entry.js +4 -4
  525. package/lib/esm/duet-layout.entry.js +2 -2
  526. package/lib/esm/duet-list_2.entry.js +4 -4
  527. package/lib/esm/duet-menu-bar-button.entry.js +4 -4
  528. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +4 -4
  529. package/lib/esm/duet-menu-bar-dropdown.entry.js +6 -6
  530. package/lib/esm/duet-menu-bar-item.entry.js +8 -8
  531. package/lib/esm/duet-menu-bar-link.entry.js +4 -4
  532. package/lib/esm/duet-menu-bar.entry.js +3 -3
  533. package/lib/esm/duet-modal.entry.js +6 -6
  534. package/lib/esm/duet-multiselect.entry.js +4 -4
  535. package/lib/esm/duet-nav.entry.js +3 -3
  536. package/lib/esm/duet-notification_2.entry.js +5 -5
  537. package/lib/esm/duet-number-input.entry.js +4 -4
  538. package/lib/esm/duet-overlay.entry.js +2 -2
  539. package/lib/esm/duet-page-heading.entry.js +4 -4
  540. package/lib/esm/duet-pagination_2.entry.js +3 -3
  541. package/lib/esm/duet-panel.entry.js +2 -2
  542. package/lib/esm/duet-phone-input.entry.js +4 -4
  543. package/lib/esm/duet-popup-menu_2.entry.js +4 -4
  544. package/lib/esm/duet-progress.entry.js +3 -3
  545. package/lib/esm/duet-promo-card.entry.js +5 -5
  546. package/lib/esm/duet-radio_2.entry.js +3 -3
  547. package/lib/esm/duet-range-slider.entry.js +2 -2
  548. package/lib/esm/duet-scrollable_3.entry.js +23 -20
  549. package/lib/esm/duet-section-layout.entry.js +4 -4
  550. package/lib/esm/duet-select.entry.js +3 -3
  551. package/lib/esm/duet-shaped-image.entry.js +4 -4
  552. package/lib/esm/duet-share-chart-item.entry.js +2 -2
  553. package/lib/esm/duet-share-chart.entry.js +8 -6
  554. package/lib/esm/duet-show-more.entry.js +3 -3
  555. package/lib/esm/duet-slideout-lang.entry.js +4 -4
  556. package/lib/esm/duet-slideout-link.entry.js +8 -8
  557. package/lib/esm/duet-slideout-panel-dropdown.entry.js +6 -6
  558. package/lib/esm/duet-slideout-panel.entry.js +11 -11
  559. package/lib/esm/duet-slideout.entry.js +5 -5
  560. package/lib/esm/duet-status-icon.entry.js +3 -3
  561. package/lib/esm/duet-step_2.entry.js +4 -4
  562. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +4 -4
  563. package/lib/esm/duet-submenu-bar-dropdown.entry.js +6 -6
  564. package/lib/esm/duet-submenu-bar-item.entry.js +7 -7
  565. package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
  566. package/lib/esm/duet-submenu-bar.entry.js +7 -7
  567. package/lib/esm/duet-textarea.entry.js +4 -4
  568. package/lib/esm/duet-toggle.entry.js +2 -2
  569. package/lib/esm/duet-toolbar-dropdown-link.entry.js +4 -4
  570. package/lib/esm/duet-toolbar-dropdown.entry.js +6 -6
  571. package/lib/esm/duet-toolbar-item.entry.js +9 -9
  572. package/lib/esm/duet-toolbar-link.entry.js +4 -4
  573. package/lib/esm/duet-toolbar.entry.js +4 -4
  574. package/lib/esm/duet-tooltip-button_2.entry.js +8 -8
  575. package/lib/esm/duet-tooltip.entry.js +3 -3
  576. package/lib/esm/duet-tray.entry.js +5 -5
  577. package/lib/esm/duet-upload-aria-status.entry.js +2 -2
  578. package/lib/esm/duet-upload-item.entry.js +4 -4
  579. package/lib/esm/duet-visually-hidden.entry.js +2 -2
  580. package/lib/esm/duet.js +4 -4
  581. package/lib/esm/{errorcodes.utils-f17cc5a4.js → errorcodes.utils-7effaab9.js} +1 -1
  582. package/lib/esm/{focus-utils-28046c5d.js → focus-utils-2ff60ebe.js} +1 -1
  583. package/lib/esm/{index-04630419.js → index-4cc3ec50.js} +1 -1
  584. package/lib/esm/{language-utils-7caf2c7c.js → language-utils-aa864aed.js} +1 -1
  585. package/lib/esm/loader.js +4 -4
  586. package/lib/esm/{slot-utils-e3cda10f.js → slot-utils-28b6b964.js} +1 -1
  587. package/lib/esm/{themeable-component-ddf67193.js → themeable-component-35ed7853.js} +1 -1
  588. package/lib/esm-es5/{a11y-utils-87967050.js → a11y-utils-fb6d24ef.js} +1 -1
  589. package/lib/esm-es5/{app-globals-db5be99e.js → app-globals-595167e1.js} +1 -1
  590. package/lib/esm-es5/{common-strings-a48b3fba.js → common-strings-1274857d.js} +1 -1
  591. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  592. package/lib/esm-es5/duet-alert.entry.js +1 -1
  593. package/lib/esm-es5/duet-badge.entry.js +1 -1
  594. package/lib/esm-es5/duet-banner.entry.js +1 -1
  595. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  596. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  597. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  598. package/lib/esm-es5/duet-callout.entry.js +1 -1
  599. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  600. package/lib/esm-es5/duet-card.entry.js +1 -1
  601. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  602. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  603. package/lib/esm-es5/duet-chip.entry.js +1 -1
  604. package/lib/esm-es5/duet-choice_2.entry.js +2 -2
  605. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  606. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  607. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  608. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  609. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  610. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  611. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  612. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  613. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  614. package/lib/esm-es5/duet-file-chooser.entry.js +1 -1
  615. package/lib/esm-es5/duet-footer.entry.js +1 -1
  616. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  617. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  618. package/lib/esm-es5/duet-hero.entry.js +2 -2
  619. package/lib/esm-es5/duet-icon.entry.js +1 -1
  620. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  621. package/lib/esm-es5/duet-layout.entry.js +1 -1
  622. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  623. package/lib/esm-es5/duet-menu-bar-button.entry.js +2 -2
  624. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  625. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  626. package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
  627. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  628. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  629. package/lib/esm-es5/duet-modal.entry.js +1 -1
  630. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  631. package/lib/esm-es5/duet-nav.entry.js +1 -1
  632. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  633. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  634. package/lib/esm-es5/duet-overlay.entry.js +1 -1
  635. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  636. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  637. package/lib/esm-es5/duet-panel.entry.js +1 -1
  638. package/lib/esm-es5/duet-phone-input.entry.js +1 -1
  639. package/lib/esm-es5/duet-popup-menu_2.entry.js +1 -1
  640. package/lib/esm-es5/duet-progress.entry.js +1 -1
  641. package/lib/esm-es5/duet-promo-card.entry.js +1 -1
  642. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  643. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  644. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  645. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  646. package/lib/esm-es5/duet-select.entry.js +1 -1
  647. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  648. package/lib/esm-es5/duet-share-chart-item.entry.js +1 -1
  649. package/lib/esm-es5/duet-share-chart.entry.js +1 -1
  650. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  651. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  652. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  653. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +2 -2
  654. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  655. package/lib/esm-es5/duet-slideout.entry.js +1 -1
  656. package/lib/esm-es5/duet-status-icon.entry.js +1 -1
  657. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  658. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  659. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  660. package/lib/esm-es5/duet-submenu-bar-item.entry.js +1 -1
  661. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  662. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  663. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  664. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  665. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  666. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +2 -2
  667. package/lib/esm-es5/duet-toolbar-item.entry.js +2 -2
  668. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  669. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  670. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  671. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  672. package/lib/esm-es5/duet-tray.entry.js +1 -1
  673. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  674. package/lib/esm-es5/duet-upload-item.entry.js +1 -1
  675. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  676. package/lib/esm-es5/duet.js +1 -1
  677. package/lib/esm-es5/{errorcodes.utils-f17cc5a4.js → errorcodes.utils-7effaab9.js} +1 -1
  678. package/lib/esm-es5/focus-utils-2ff60ebe.js +4 -0
  679. package/lib/esm-es5/{index-04630419.js → index-4cc3ec50.js} +1 -1
  680. package/lib/esm-es5/{language-utils-7caf2c7c.js → language-utils-aa864aed.js} +1 -1
  681. package/lib/esm-es5/loader.js +1 -1
  682. package/lib/esm-es5/{slot-utils-e3cda10f.js → slot-utils-28b6b964.js} +1 -1
  683. package/lib/esm-es5/{themeable-component-ddf67193.js → themeable-component-35ed7853.js} +1 -1
  684. package/lib/types/common-strings.d.ts +2 -0
  685. package/lib/types/components/duet-alert/duet-alert.d.ts +5 -2
  686. package/lib/types/components/duet-badge/duet-badge.d.ts +1 -0
  687. package/lib/types/components/duet-card/duet-card.d.ts +6 -0
  688. package/lib/types/components/duet-choice/duet-choice.d.ts +0 -4
  689. package/lib/types/components/duet-choice-group/duet-choice-group.d.ts +2 -2
  690. package/lib/types/components.d.ts +10 -7
  691. package/package.json +4 -4
  692. package/lib/duet/p-13821573.system.entry.js +0 -4
  693. package/lib/duet/p-1f495ebe.entry.js +0 -4
  694. package/lib/duet/p-2dd204b0.entry.js +0 -4
  695. package/lib/duet/p-2fe381b6.entry.js +0 -4
  696. package/lib/duet/p-378546de.js +0 -4
  697. package/lib/duet/p-49b696b3.entry.js +0 -4
  698. package/lib/duet/p-4d81e7f6.system.js +0 -4
  699. package/lib/duet/p-51717f08.entry.js +0 -4
  700. package/lib/duet/p-51fc30ef.entry.js +0 -4
  701. package/lib/duet/p-6b99bf3d.system.js +0 -4
  702. package/lib/duet/p-72ad70a2.entry.js +0 -4
  703. package/lib/duet/p-76332920.system.js +0 -4
  704. package/lib/duet/p-82680aa5.system.js +0 -4
  705. package/lib/duet/p-834d6b2d.system.entry.js +0 -4
  706. package/lib/duet/p-870a420d.system.entry.js +0 -4
  707. package/lib/duet/p-89b2f873.system.js +0 -4
  708. package/lib/duet/p-8bb2ddda.entry.js +0 -4
  709. package/lib/duet/p-914292d2.entry.js +0 -4
  710. package/lib/duet/p-91be5d76.system.entry.js +0 -4
  711. package/lib/duet/p-b1b64718.system.entry.js +0 -4
  712. package/lib/duet/p-b4018154.entry.js +0 -4
  713. package/lib/duet/p-b84841d7.js +0 -4
  714. package/lib/duet/p-be26ac3a.entry.js +0 -4
  715. package/lib/duet/p-cc531319.js +0 -4
  716. package/lib/duet/p-cff34f13.entry.js +0 -4
  717. package/lib/duet/p-d6afc825.entry.js +0 -4
  718. package/lib/duet/p-f89feeb2.entry.js +0 -4
  719. package/lib/esm-es5/focus-utils-28046c5d.js +0 -4
@@ -1,5 +1,5 @@
1
1
  var __extends=this&&this.__extends||function(){var r=function(e,n){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]};return r(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var e,n=1,t=arguments.length;n<t;n++){e=arguments[n];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))r[i]=e[i]}return r};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(r,e,n,t){function i(r){return r instanceof n?r:new n((function(e){e(r)}))}return new(n||(n=Promise))((function(n,a){function f(r){try{o(t.next(r))}catch(r){a(r)}}function u(r){try{o(t["throw"](r))}catch(r){a(r)}}function o(r){r.done?n(r.value):i(r.value).then(f,u)}o((t=t.apply(r,e||[])).next())}))};var __generator=this&&this.__generator||function(r,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,f;return f={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(f[Symbol.iterator]=function(){return this}),f;function u(r){return function(e){return o([r,e])}}function o(u){if(t)throw new TypeError("Generator is already executing.");while(f&&(f=0,u[0]&&(n=0)),n)try{if(t=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1];a=u;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(u);break}if(a[2])n.ops.pop();n.trys.pop();continue}u=e.call(r,n)}catch(r){u=[6,r];i=0}finally{t=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(r,e,n){if(n||arguments.length===2)for(var t=0,i=e.length,a;t<i;t++){if(a||!(t in e)){if(!a)a=Array.prototype.slice.call(e,0,t);a[t]=e[t]}}return r.concat(a||Array.prototype.slice.call(e))};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register([],(function(r,e){"use strict";return{execute:function(){var n=this;var t=r("N","duet");var i={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:true,cmpDidRender:true,cmpDidUnload:false,cmpDidUpdate:true,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:true,cmpWillUpdate:false,connectedCallback:true,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:true,hostListenerTargetDocument:true,hostListenerTargetParent:false,hostListenerTargetWindow:true,hotModuleReplacement:false,hydrateClientSide:true,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",initializeNextTick:true,invisiblePrehydration:false,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:true,scopedSlotTextContentFix:false,scriptDataOpts:true,shadowDelegatesFocus:true,shadowDom:true,slot:true,slotChildNodesFix:true,slotRelocation:true,state:true,style:true,svg:true,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};var a=r("E",{cdnURILocal:"http://localhost:3334",cdnURIProd:"https://cdn.duetds.com/api",duetIconVersion:"4.2.4"});var f=Object.defineProperty;var u=function(r,e){for(var n in e)f(r,n,{get:e[n],enumerable:true})};var o=r("B",{isDev:false,isBrowser:true,isServer:false,isTesting:false});var l=new WeakMap;var v=function(r){return l.get(r)};var s=r("r",(function(r,e){return l.set(e.t=r,e)}));var c=function(r,e){var n={i:0,$hostElement$:r,u:e,o:new Map};{n.l=new Promise((function(r){return n.v=r}))}{n.h=new Promise((function(r){return n.p=r}));r["s-p"]=[];r["s-rc"]=[]}return l.set(r,n)};var d=function(r,e){return e in r};var h=function(r,e){return(0,console.error)(r,e)};var p=new Map;var m=function(r,n,t){var i=r.m.replace(/-/g,"_");var a=r.$;if(!a){return void 0}var f=p.get(a);if(f){return f[i]}
4
+ */System.register([],(function(r,e){"use strict";return{execute:function(){var n=this;var t=r("N","duet");var i={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:true,cmpDidRender:true,cmpDidUnload:false,cmpDidUpdate:true,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:true,cmpWillUpdate:false,connectedCallback:true,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:true,hostListenerTargetDocument:true,hostListenerTargetParent:false,hostListenerTargetWindow:true,hotModuleReplacement:false,hydrateClientSide:true,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",initializeNextTick:true,invisiblePrehydration:false,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:true,scopedSlotTextContentFix:false,scriptDataOpts:true,shadowDelegatesFocus:true,shadowDom:true,slot:true,slotChildNodesFix:true,slotRelocation:true,state:true,style:true,svg:true,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};var a=r("E",{cdnURILocal:"http://localhost:3334",cdnURIProd:"https://cdn.duetds.com/api",duetIconVersion:"4.2.5"});var f=Object.defineProperty;var u=function(r,e){for(var n in e)f(r,n,{get:e[n],enumerable:true})};var o=r("B",{isDev:false,isBrowser:true,isServer:false,isTesting:false});var l=new WeakMap;var v=function(r){return l.get(r)};var s=r("r",(function(r,e){return l.set(e.t=r,e)}));var c=function(r,e){var n={i:0,$hostElement$:r,u:e,o:new Map};{n.l=new Promise((function(r){return n.v=r}))}{n.h=new Promise((function(r){return n.p=r}));r["s-p"]=[];r["s-rc"]=[]}return l.set(r,n)};var d=function(r,e){return e in r};var h=function(r,e){return(0,console.error)(r,e)};var p=new Map;var m=function(r,n,t){var i=r.m.replace(/-/g,"_");var a=r.$;if(!a){return void 0}var f=p.get(a);if(f){return f[i]}
5
5
  /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return e.import("./".concat(a,".entry.js").concat("")).then((function(r){{p.set(a,r)}return r[i]}),h)};var y=new Map;var $="r";var b="o";var w="s";var g="t";var _="c";var S="s-id";var j="sty-id";var O="c-id";var k="slot-fb{display:contents}slot-fb[hidden]{display:none}";var x="http://www.w3.org/1999/xlink";var A=typeof window!=="undefined"?window:{};var C=r("d",A.document||{head:{}});var E={i:0,_:"",jmp:function(r){return r()},raf:function(r){return requestAnimationFrame(r)},ael:function(r,e,n,t){return r.addEventListener(e,n,t)},rel:function(r,e,n,t){return r.removeEventListener(e,n,t)},ce:function(r,e){return new CustomEvent(r,e)}};var T=function(){var r=false;try{C.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){r=true}}))}catch(r){}return r}();var D=r("p",(function(r){return Promise.resolve(r)}));var R=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(r){}return false}();var L=false;var N=[];var F=[];var M=function(r,e){return function(n){r.push(n);if(!L){L=true;if(e&&E.i&4){U(P)}else{E.raf(P)}}}};var I=function(r){for(var e=0;e<r.length;e++){try{r[e](performance.now())}catch(r){h(r)}}r.length=0};var P=function(){I(N);{I(F);if(L=N.length>0){E.raf(P)}}};var U=function(r){return D().then(r)};var W=M(F,true);var B={};var H="http://www.w3.org/2000/svg";var V="http://www.w3.org/1999/xhtml";var z=function(r){return r!=null};var G=function(r){r=typeof r;return r==="object"||r==="function"};function Q(r){var e,n,t;return(t=(n=(e=r.head)==null?void 0:e.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?t:void 0}var q={};u(q,{err:function(){return X},map:function(){return J},ok:function(){return K},unwrap:function(){return Y},unwrapErr:function(){return Z}});var K=function(r){return{isOk:true,isErr:false,value:r}};var X=function(r){return{isOk:false,isErr:true,value:r}};function J(r,e){if(r.isOk){var n=e(r.value);if(n instanceof Promise){return n.then((function(r){return K(r)}))}else{return K(n)}}if(r.isErr){var t=r.value;return X(t)}throw"should never get here"}var Y=function(r){if(r.isOk){return r.value}else{throw r.value}};var Z=function(r){if(r.isErr){return r.value}else{throw r.value}};var rr=r("h",(function(r,e){var n=[];for(var t=2;t<arguments.length;t++){n[t-2]=arguments[t]}var i=null;var a=null;var f=null;var u=false;var o=false;var l=[];var v=function(e){for(var n=0;n<e.length;n++){i=e[n];if(Array.isArray(i)){v(i)}else if(i!=null&&typeof i!=="boolean"){if(u=typeof r!=="function"&&!G(i)){i=String(i)}if(u&&o){l[l.length-1].S+=i}else{l.push(u?er(null,i):i)}o=u}}};v(n);if(e){if(e.key){a=e.key}if(e.name){f=e.name}{var s=e.className||e.class;if(s){e.class=typeof s!=="object"?s:Object.keys(s).filter((function(r){return s[r]})).join(" ")}}}if(typeof r==="function"){return r(e===null?{}:e,l,ir)}var c=er(r,null);c.j=e;if(l.length>0){c.O=l}{c.k=a}{c.A=f}return c}));var er=function(r,e){var n={i:0,C:r,S:e,T:null,O:null};{n.j=null}{n.k=null}{n.A=null}return n};var nr=r("H",{});var tr=function(r){return r&&r.C===nr};var ir={forEach:function(r,e){return r.map(ar).forEach(e)},map:function(r,e){return r.map(ar).map(e).map(fr)}};var ar=function(r){return{vattrs:r.j,vchildren:r.O,vkey:r.k,vname:r.A,vtag:r.C,vtext:r.S}};var fr=function(r){if(typeof r.vtag==="function"){var e=__assign({},r.vattrs);if(r.vkey){e.key=r.vkey}if(r.vname){e.name=r.vname}return rr.apply(void 0,__spreadArray([r.vtag,e],r.vchildren||[],false))}var n=er(r.vtag,r.vtext);n.j=r.vattrs;n.O=r.vchildren;n.k=r.vkey;n.A=r.vname;return n};var ur=function(r,e,n,t,i,a){if(n!==t){var f=d(r,e);var u=e.toLowerCase();if(e==="class"){var o=r.classList;var l=lr(n);var v=lr(t);if(r["s-si"]&&v.indexOf(r["s-si"])<0){v.push(r["s-si"])}o.remove.apply(o,l.filter((function(r){return r&&!v.includes(r)})));o.add.apply(o,v.filter((function(r){return r&&!l.includes(r)})))}else if(e==="style"){{for(var s in n){if(!t||t[s]==null){if(s.includes("-")){r.style.removeProperty(s)}else{r.style[s]=""}}}}for(var s in t){if(!n||t[s]!==n[s]){if(s.includes("-")){r.style.setProperty(s,t[s])}else{r.style[s]=t[s]}}}}else if(e==="key");else if(e==="ref"){if(t){t(r)}}else if(!f&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"){e=e.slice(3)}else if(d(A,u)){e=u.slice(2)}else{e=u[2]+e.slice(3)}if(n||t){var c=e.endsWith(vr);e=e.replace(sr,"");if(n){E.rel(r,e,n,c)}if(t){E.ael(r,e,t,c)}}}else{var h=G(t);if((f||h&&t!==null)&&!i){try{if(!r.tagName.includes("-")){var p=t==null?"":t;if(e==="list"){f=false}else if(n==null||r[e]!=p){if(typeof r.__lookupSetter__(e)==="function"){r[e]=p}else{r.setAttribute(e,p)}}}else{r[e]=t}}catch(r){}}var m=false;{if(u!==(u=u.replace(/^xlink\:?/,""))){e=u;m=true}}if(t==null||t===false){if(t!==false||r.getAttribute(e)===""){if(m){r.removeAttributeNS(x,e)}else{r.removeAttribute(e)}}}else if((!f||a&4||i)&&!h){t=t===true?"":t;if(m){r.setAttributeNS(x,e,t)}else{r.setAttribute(e,t)}}}}};var or=/\s/;var lr=function(r){return"object"==typeof r&&"baseVal"in r&&(r=r.baseVal),r?r.split(or):[]};var vr="Capture";var sr=new RegExp(vr+"$");var cr=function(r,e,n){var t=e.T.nodeType===11&&e.T.host?e.T.host:e.T;var i=r&&r.j||B;var a=e.j||B;{for(var f=0,u=dr(Object.keys(i));f<u.length;f++){var o=u[f];if(!(o in a)){ur(t,o,i[o],void 0,n,e.i)}}}for(var l=0,v=dr(Object.keys(a));l<v.length;l++){var o=v[l];ur(t,o,i[o],a[o],n,e.i)}};function dr(r){return r.includes("ref")?__spreadArray(__spreadArray([],r.filter((function(r){return r!=="ref"})),true),["ref"],false):r}var hr;var pr;var mr;var yr=false;var $r=false;var br=false;var wr=false;var gr=function(r,e,n,t){var a;var f=e.O[n];var u=0;var o;var l;var v;if(!yr){br=true;if(f.C==="slot"){if(hr){t.classList.add(hr+"-s")}f.i|=f.O?2:1}}if(f.S!==null){o=f.T=C.createTextNode(f.S)}else if(f.i&1){o=f.T=C.createTextNode("")}else{if(!wr){wr=f.C==="svg"}o=f.T=C.createElementNS(wr?H:V,!yr&&i.slotRelocation&&f.i&2?"slot-fb":f.C);if(wr&&f.C==="foreignObject"){wr=false}{cr(null,f,wr)}var s=o.getRootNode();var c=!s.querySelector("body");if(!c&&i.scoped&&z(hr)&&o["s-si"]!==hr){o.classList.add(o["s-si"]=hr)}{Mr(o,t)}if(f.O){for(u=0;u<f.O.length;++u){l=gr(r,f,u,o);if(l){o.appendChild(l)}}}{if(f.C==="svg"){wr=false}else if(o.tagName==="foreignObject"){wr=true}}}o["s-hn"]=mr;{if(f.i&(2|1)){o["s-sr"]=true;o["s-cr"]=pr;o["s-sn"]=f.A||"";o["s-rf"]=(a=f.j)==null?void 0:a.ref;v=r&&r.O&&r.O[n];if(v&&v.C===f.C&&r.T){{_r(r.T,false)}}}}return o};var _r=function(r,e){E.i|=1;var n=Array.from(r.__childNodes||r.childNodes);if(r["s-sr"]&&i.experimentalSlotFixes){var t=r;while(t=t.nextSibling){if(t&&t["s-sn"]===r["s-sn"]&&t["s-sh"]===mr){n.push(t)}}}for(var a=n.length-1;a>=0;a--){var f=n[a];if(f["s-hn"]!==mr&&f["s-ol"]){Nr(Ar(f),f,xr(f));f["s-ol"].remove();f["s-ol"]=void 0;f["s-sh"]=void 0;br=true}if(e){_r(f,e)}}E.i&=~1};var Sr=function(r,e,n,t,i,a){var f=r["s-cr"]&&r["s-cr"].parentNode||r;var u;if(f.shadowRoot&&f.tagName===mr){f=f.shadowRoot}for(;i<=a;++i){if(t[i]){u=gr(null,n,i,r);if(u){t[i].T=u;Nr(f,u,xr(e))}}}};var jr=function(r,e,n){for(var t=e;t<=n;++t){var i=r[t];if(i){var a=i.T;Lr(i);if(a){{$r=true;if(a["s-ol"]){a["s-ol"].remove()}else{_r(a,true)}}a.remove()}}}};var Or=function(r,e,n,t,i){if(i===void 0){i=false}var a=0;var f=0;var u=0;var o=0;var l=e.length-1;var v=e[0];var s=e[l];var c=t.length-1;var d=t[0];var h=t[c];var p;var m;while(a<=l&&f<=c){if(v==null){v=e[++a]}else if(s==null){s=e[--l]}else if(d==null){d=t[++f]}else if(h==null){h=t[--c]}else if(kr(v,d,i)){Cr(v,d,i);v=e[++a];d=t[++f]}else if(kr(s,h,i)){Cr(s,h,i);s=e[--l];h=t[--c]}else if(kr(v,h,i)){if(v.C==="slot"||h.C==="slot"){_r(v.T.parentNode,false)}Cr(v,h,i);Nr(r,v.T,s.T.nextSibling);v=e[++a];h=t[--c]}else if(kr(s,d,i)){if(v.C==="slot"||h.C==="slot"){_r(s.T.parentNode,false)}Cr(s,d,i);Nr(r,s.T,v.T);s=e[--l];d=t[++f]}else{u=-1;{for(o=a;o<=l;++o){if(e[o]&&e[o].k!==null&&e[o].k===d.k){u=o;break}}}if(u>=0){m=e[u];if(m.C!==d.C){p=gr(e&&e[f],n,u,r)}else{Cr(m,d,i);e[u]=void 0;p=m.T}d=t[++f]}else{p=gr(e&&e[f],n,f,r);d=t[++f]}if(p){{Nr(Ar(v.T),p,xr(v.T))}}}}if(a>l){Sr(r,t[c+1]==null?null:t[c+1].T,n,t,f,c)}else if(f>c){jr(e,a,l)}};var kr=function(r,e,n){if(n===void 0){n=false}if(r.C===e.C){if(r.C==="slot"){if("D"in r&&n&&r.T.nodeType!==8){return false}return r.A===e.A}if(!n){return r.k===e.k}return true}return false};var xr=function(r){return r&&r["s-ol"]||r};var Ar=function(r){return(r["s-ol"]?r["s-ol"]:r).parentNode};var Cr=function(r,e,n){if(n===void 0){n=false}var t=e.T=r.T;var a=r.O;var f=e.O;var u=e.C;var o=e.S;var l;if(o===null){{wr=u==="svg"?true:u==="foreignObject"?false:wr}{if(u==="slot"&&!yr);else{cr(r,e,wr)}}if(a!==null&&f!==null){Or(t,a,e,f,n)}else if(f!==null){if(r.S!==null){t.textContent=""}Sr(t,null,e,f,0,f.length-1)}else if(!n&&i.updatable&&a!==null){jr(a,0,a.length-1)}if(wr&&u==="svg"){wr=false}}else if(l=t["s-cr"]){l.parentNode.textContent=o}else if(r.S!==o){t.data=o}};var Er=function(r){var e=r.__childNodes||r.childNodes;for(var n=0,t=e;n<t.length;n++){var i=t[n];if(i.nodeType===1){if(i["s-sr"]){var a=i["s-sn"];i.hidden=false;for(var f=0,u=e;f<u.length;f++){var o=u[f];if(o!==i){if(o["s-hn"]!==i["s-hn"]||a!==""){if(o.nodeType===1&&(a===o.getAttribute("slot")||a===o["s-sn"])||o.nodeType===3&&a===o["s-sn"]){i.hidden=true;break}}else if(a===o["s-sn"]){if(o.nodeType===1||o.nodeType===3&&o.textContent.trim()!==""){i.hidden=true;break}}}}}Er(i)}}};var Tr=[];var Dr=function(r){var e;var n;var t;var a=r.__childNodes||r.childNodes;for(var f=0,u=a;f<u.length;f++){var o=u[f];if(o["s-sr"]&&(e=o["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;var l=o["s-sn"];var v=function(){e=n[t];if(!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==o["s-hn"]&&!i.experimentalSlotFixes){if(Rr(e,l)){var r=Tr.find((function(r){return r.R===e}));$r=true;e["s-sn"]=e["s-sn"]||l;if(r){r.R["s-sh"]=o["s-hn"];r.L=o}else{e["s-sh"]=o["s-hn"];Tr.push({L:o,R:e})}if(e["s-sr"]){Tr.map((function(n){if(Rr(n.R,e["s-sn"])){r=Tr.find((function(r){return r.R===e}));if(r&&!n.L){n.L=r.L}}}))}}else if(!Tr.some((function(r){return r.R===e}))){Tr.push({R:e})}}};for(t=n.length-1;t>=0;t--){v()}}if(o.nodeType===1){Dr(o)}}};var Rr=function(r,e){if(r.nodeType===1){if(r.getAttribute("slot")===null&&e===""){return true}if(r.getAttribute("slot")===e){return true}return false}if(r["s-sn"]===e){return true}return e===""};var Lr=function(r){{r.j&&r.j.ref&&r.j.ref(null);r.O&&r.O.map(Lr)}};var Nr=function(r,e,n){var t=r==null?void 0:r.insertBefore(e,n);{Mr(e,r)}return t};var Fr=function(r){var e=[];if(r){e.push.apply(e,__spreadArray(__spreadArray(__spreadArray([],r["s-scs"]||[],false),[r["s-si"],r["s-sc"]],false),Fr(r.parentElement),false))}return e};var Mr=function(r,e,n){if(n===void 0){n=false}var t;if(r&&e&&r.nodeType===1){var i=new Set(Fr(e).filter(Boolean));if(i.size){(t=r.classList)==null?void 0:t.add.apply(t,r["s-scs"]=Array.from(i));if(r["s-ol"]||n){for(var a=0,f=Array.from(r.__childNodes||r.childNodes);a<f.length;a++){var u=f[a];Mr(u,r,true)}}}}};var Ir=function(r,e,n){if(n===void 0){n=false}var t,i,a,f;var u=r.$hostElement$;var o=r.u;var l=r.N||er(null,null);var v=tr(e)?e:rr(null,null,e);mr=u.tagName;if(o.F){v.j=v.j||{};o.F.map((function(r){var e=r[0],n=r[1];return v.j[n]=u[e]}))}if(n&&v.j){for(var s=0,c=Object.keys(v.j);s<c.length;s++){var d=c[s];if(u.hasAttribute(d)&&!["key","ref","style","class"].includes(d)){v.j[d]=u[d]}}}v.C=null;v.i|=4;r.N=v;v.T=l.T=u.shadowRoot||u;{hr=u["s-sc"]}yr=(o.i&1)!==0;{pr=u["s-cr"];$r=false}Cr(l,v,n);{E.i|=1;if(br){Dr(v.T);for(var h=0,p=Tr;h<p.length;h++){var m=p[h];var y=m.R;if(!y["s-ol"]){var $=C.createTextNode("");$["s-nr"]=y;Nr(y.parentNode,y["s-ol"]=$,y)}}for(var b=0,w=Tr;b<w.length;b++){var m=w[b];var y=m.R;var g=m.L;if(g){var _=g.parentNode;var S=g.nextSibling;{var $=(t=y["s-ol"])==null?void 0:t.previousSibling;while($){var j=(i=$["s-nr"])!=null?i:null;if(j&&j["s-sn"]===y["s-sn"]&&_===j.parentNode){j=j.nextSibling;while(j===y||(j==null?void 0:j["s-sr"])){j=j==null?void 0:j.nextSibling}if(!j||!j["s-nr"]){S=j;break}}$=$.previousSibling}}if(!S&&_!==y.parentNode||y.nextSibling!==S){if(y!==S){if(!y["s-hn"]&&y["s-ol"]){y["s-hn"]=y["s-ol"].parentNode.nodeName}Nr(_,y,S);if(y.nodeType===1){y.hidden=(a=y["s-ih"])!=null?a:false}}}y&&typeof g["s-rf"]==="function"&&g["s-rf"](y)}else{if(y.nodeType===1){if(n){y["s-ih"]=(f=y.hidden)!=null?f:false}y.hidden=true}}}}if($r){Er(v.T)}E.i&=~1;Tr.length=0}pr=void 0};var Pr=function(r){var e=function(r){__extends(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}e.prototype.item=function(r){return this[r]};return e}(Array);var n=globalThis.Node&&Object.getOwnPropertyDescriptor(Node.prototype,"childNodes");if(!n){n=Object.getOwnPropertyDescriptor(r,"childNodes")}if(n)Object.defineProperty(r,"__childNodes",n);var t=Object.getOwnPropertyDescriptor(Element.prototype,"children");if(!t){t=Object.getOwnPropertyDescriptor(r,"children")}if(t)Object.defineProperty(r,"__children",t);Object.defineProperty(r,"children",{get:function(){return this.childNodes.filter((function(r){return r.nodeType===1}))}});Object.defineProperty(r,"childElementCount",{get:function(){return this.children.length}});if(!n)return;Object.defineProperty(r,"childNodes",{get:function(){var r,n;if(!E.i||!((r=v(this))==null?void 0:r.i)||(E.i&1)===0&&((n=v(this))==null?void 0:n.i)&2){var t=new e;var i=Wr(this.__childNodes);t.push.apply(t,i);return t}return e.from(this.__childNodes)}})};var Ur=function(r,e,n,t){var i;if(r["s-ol"]&&r["s-ol"].isConnected){i=r["s-ol"]}else{i=document.createTextNode("");i["s-nr"]=r}if(!e["s-cr"]||!e["s-cr"].parentNode)return;var a=e["s-cr"].parentNode;var f=n?a.__prepend||a.prepend:a.__appendChild||a.appendChild;if(typeof t!=="undefined"){{i["s-oo"]=t;var u=a.__childNodes||a.childNodes;var o=[i];u.forEach((function(r){if(r["s-nr"])o.push(r)}));o.sort((function(r,e){if(!r["s-oo"]||r["s-oo"]<e["s-oo"])return-1;else if(!e["s-oo"]||e["s-oo"]<r["s-oo"])return 1;return 0}));o.forEach((function(r){return f.call(a,r)}))}}else{f.call(a,i)}r["s-ol"]=i;r["s-sh"]=e["s-hn"]};var Wr=function(r){var e=[];for(var n=0;n<r.length;n++){var t=r[n]["s-nr"];if(t&&t.isConnected){e.push(t)}}return e};var Br=function(r,e){if(e===void 0){e=""}{return function(){return}}};var Hr=function(r,e){{return function(){return}}};var Vr=function(r,e,n,t){var i=Br("hydrateClient",e);var a=r.shadowRoot;var f=[];var u=[];var o=[];var l=a?[]:null;var v=er(e,null);v.T=r;if(!E.M){Gr(C.body,E.M=new Map)}r[S]=n;r.removeAttribute(S);t.N=zr(v,f,u,l,r,r,n,o);var s=0;var c=f.length;var d;for(s;s<c;s++){d=f[s];var h=d.I+"."+d.D;var p=E.M.get(h);var m=d.T;if(!a){m["s-hn"]=e.toUpperCase();if(d.C==="slot"){m["s-cr"]=r["s-cr"]}}if(p&&p.isConnected){if(a&&p["s-en"]===""){p.parentNode.insertBefore(m,p.nextSibling)}p.parentNode.removeChild(p);if(!a){m["s-oo"]=parseInt(d.D)}}E.M.delete(h)}var y=[];var $=0;var b=o.length;var w;var g;var _;var j;for($;$<b;$++){w=o[$];if(!w||!w.length)continue;_=w.length;g=0;for(g;g<_;g++){j=w[g];if(!y[j.hostId]){y[j.hostId]=E.M.get(j.hostId)}if(!y[j.hostId])continue;var O=y[j.hostId];if(!O.shadowRoot||!a){j.slot["s-cr"]=O["s-cr"];if(!j.slot["s-cr"]&&O.shadowRoot){j.slot["s-cr"]=O}else{var k=O.__childNodes||O.childNodes;j.slot["s-cr"]=k[0]}Ur(j.node,j.slot,false,j.node["s-oo"])}if(O.shadowRoot&&j.node.parentElement!==O){O.appendChild(j.node)}}}if(a){var x=0;var A=l.length;for(x;x<A;x++){a.appendChild(l[x])}Array.from(r.childNodes).forEach((function(r){if(r.nodeType===8&&typeof r["s-sn"]!=="string"){r.parentNode.removeChild(r)}}))}t.$hostElement$=r;i()};var zr=function(r,e,n,t,i,a,f,u){if(u===void 0){u=[]}var o;var l;var v;var s;var c=i["s-sc"];if(a.nodeType===1){o=a.getAttribute(O);if(o){l=o.split(".");if(l[0]===f||l[0]==="0"){v=Qr({i:0,I:l[0],D:l[1],P:l[2],U:l[3],C:a.tagName.toLowerCase(),T:a,j:{class:a.className}});e.push(v);a.removeAttribute(O);if(!r.O){r.O=[]}var d=v.T.getAttribute("s-sn");if(typeof d==="string"){if(v.C==="slot-fb"){qr(d,l[2],v,a,r,e,n,t,u)}v.T["s-sn"]=d;v.T.removeAttribute("s-sn")}if(v.U!==void 0){r.O[v.U]=v}if(c)a["s-si"]=c;r=v;if(t&&v.P==="0"){t[v.U]=v.T}}}if(a.shadowRoot){for(s=a.shadowRoot.childNodes.length-1;s>=0;s--){zr(r,e,n,t,i,a.shadowRoot.childNodes[s],f,u)}}var h=a.__childNodes||a.childNodes;for(s=h.length-1;s>=0;s--){zr(r,e,n,t,i,h[s],f,u)}}else if(a.nodeType===8){l=a.nodeValue.split(".");if(l[1]===f||l[1]==="0"){o=l[0];v=Qr({I:l[1],D:l[2],P:l[3],U:l[4]||"0",T:a,j:null,O:null,k:null,A:null,C:null,S:null});if(o===g){v.T=a.nextSibling;if(v.T&&v.T.nodeType===3){v.S=v.T.textContent;e.push(v);a.remove();if(f===v.I){if(!r.O){r.O=[]}r.O[v.U]=v}if(t&&v.P==="0"){t[v.U]=v.T}}}else if(o===_){v.T=a.nextSibling;if(v.T&&v.T.nodeType===8){e.push(v);a.remove()}}else if(v.I===f){if(o===w){v.C="slot";var d=a["s-sn"]=v.A=l[5]||"";qr(d,l[2],v,a,r,e,n,t,u)}else if(o===$){if(t){a.remove()}else{i["s-cr"]=a;a["s-cn"]=true}}}}}else if(r&&r.C==="style"){var p=er(null,a.textContent);p.T=a;p.U="0";r.O=[p]}return r};var Gr=function(r,e){if(r.nodeType===1){var n=r[S]||r.getAttribute(S);if(n){e.set(n,r)}var t=0;if(r.shadowRoot){for(;t<r.shadowRoot.childNodes.length;t++){Gr(r.shadowRoot.childNodes[t],e)}}var i=r.__childNodes||r.childNodes;for(t=0;t<i.length;t++){Gr(i[t],e)}}else if(r.nodeType===8){var a=r.nodeValue.split(".");if(a[0]===b){e.set(a[1]+"."+a[2],r);r.nodeValue="";r["s-en"]=a[3]}}};var Qr=function(r){var e={i:0,I:null,D:null,P:null,U:"0",T:null,j:null,O:null,k:null,A:null,C:null,S:null};return __assign(__assign({},e),r)};function qr(r,e,n,t,i,a,f,u,o){t["s-sr"]=true;var l=(i==null?void 0:i.T)?i.T["s-id"]||i.T.getAttribute("s-id"):"";if(u){var v=n.T=C.createElement(n.C);if(n.A){n.T.setAttribute("name",r)}if(l&&l!==n.I){i.T.insertBefore(v,i.T.children[0])}else{t.parentNode.insertBefore(n.T,t)}Kr(o,e,r,t,n.I);t.remove();if(n.P==="0"){u[n.U]=n.T}}else{var v=n.T;var s=l&&l!==n.I&&i.T.shadowRoot;Kr(o,e,r,t,s?l:n.I);if(s){i.T.insertBefore(v,i.T.children[0])}a.push(n)}f.push(n);if(!i.O){i.O=[]}i.O[n.U]=n}var Kr=function(r,e,n,t,i){var a=t.nextSibling;r[e]=r[e]||[];while(a&&((a["getAttribute"]&&a.getAttribute("slot")||a["s-sn"])===n||n===""&&!a["s-sn"]&&(a.nodeType===8&&a.nodeValue.indexOf(".")!==1||a.nodeType===3))){a["s-sn"]=n;r[e].push({slot:t,node:a,hostId:i});a=a.nextSibling}};var Xr=function(r,e){if(r!=null&&!G(r)){if(e&4){return r==="false"?false:r===""||!!r}if(e&2){return parseFloat(r)}if(e&1){return String(r)}return r}return r};var Jr=r("g",(function(r){return v(r).$hostElement$}));var Yr=r("c",(function(r,e,n){var t=Jr(r);return{emit:function(r){return Zr(t,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:r})}}}));var Zr=function(r,e,n){var t=E.ce(e,n);r.dispatchEvent(t);return t};var re=new WeakMap;var ee=function(r,e,n){var t=y.get(r);if(R&&n){t=t||new CSSStyleSheet;if(typeof t==="string"){t=e}else{t.replaceSync(e)}}else{t=e}y.set(r,t)};var ne=function(r,e,n){var t;var i=ie(e);var a=y.get(i);r=r.nodeType===11?r:C;if(a){if(typeof a==="string"){r=r.head||r;var f=re.get(r);var u=void 0;if(!f){re.set(r,f=new Set)}if(!f.has(i)){if(r.host&&(u=r.querySelector("[".concat(j,'="').concat(i,'"]')))){u.innerHTML=a}else{u=C.createElement("style");u.innerHTML=a;var o=(t=E.W)!=null?t:Q(C);if(o!=null){u.setAttribute("nonce",o)}if(!(e.i&1)){if(r.nodeName==="HEAD"){var l=r.querySelectorAll("link[rel=preconnect]");var v=l.length>0?l[l.length-1].nextSibling:r.querySelector("style");r.insertBefore(u,v)}else if("host"in r){if(R){var s=new CSSStyleSheet;s.replaceSync(a);r.adoptedStyleSheets=__spreadArray([s],r.adoptedStyleSheets,true)}else{var c=r.querySelector("style");if(c){c.innerHTML=a+c.innerHTML}else{r.prepend(u)}}}else{r.append(u)}}if(e.i&1&&r.nodeName!=="HEAD"){r.insertBefore(u,null)}}if(e.i&4){u.innerHTML+=k}if(f){f.add(i)}}}else if(!r.adoptedStyleSheets.includes(a)){r.adoptedStyleSheets=__spreadArray(__spreadArray([],r.adoptedStyleSheets,true),[a],false)}}return i};var te=function(r){var e=r.u;var n=r.$hostElement$;var t=e.i;var i=Br("attachStyles",e.m);var a=ne(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);if(t&10&&t&2){n["s-sc"]=a;n.classList.add(a+"-h");if(t&2){n.classList.add(a+"-s")}}i()};var ie=function(r,e){return"sc-"+r.m};var ae=function(r,e){if(e&&!r.B&&e["s-p"]){e["s-p"].push(new Promise((function(e){return r.B=e})))}};var fe=function(r,e){{r.i|=16}if(r.i&4){r.i|=512;return}ae(r,r.H);var n=function(){return ue(r,e)};return W(n)};var ue=function(r,e){var n=r.$hostElement$;var t=Br("scheduleUpdate",r.u.m);var i=r.t;if(!i){throw new Error("Can't render component <".concat(n.tagName.toLowerCase()," /> with invalid Stencil runtime! Make sure this imported component is compiled with a `externalRuntime: true` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime"))}var a;if(e){{r.i|=256;if(r.V){r.V.map((function(r){var e=r[0],n=r[1];return he(i,e,n)}));r.V=void 0}}{a=he(i,"componentWillLoad")}}{a=oe(a,(function(){return he(i,"componentWillRender")}))}t();return oe(a,(function(){return ve(r,i,e)}))};var oe=function(r,e){return le(r)?r.then(e).catch((function(r){console.error(r);e()})):e()};var le=function(r){return r instanceof Promise||r&&r.then&&typeof r.then==="function"};var ve=function(r,e,t){return __awaiter(n,void 0,void 0,(function(){var n,i,a,f,u,o,l;return __generator(this,(function(v){i=r.$hostElement$;a=Br("update",r.u.m);f=i["s-rc"];if(t){te(r)}u=Br("render",r.u.m);{se(r,e,i,t)}if(f){f.map((function(r){return r()}));i["s-rc"]=void 0}u();a();{o=(n=i["s-p"])!=null?n:[];l=function(){return ce(r)};if(o.length===0){l()}else{Promise.all(o).then(l);r.i|=4;o.length=0}}return[2]}))}))};var se=function(r,e,n,t){try{e=e.render();{r.i&=~16}{r.i|=2}{{{Ir(r,e,t)}}}}catch(e){h(e,r.$hostElement$)}return null};var ce=function(r){var e=r.u.m;var n=r.$hostElement$;var t=Br("postUpdate",e);var i=r.t;var a=r.H;{he(i,"componentDidRender")}if(!(r.i&64)){r.i|=64;{pe(n)}{he(i,"componentDidLoad")}t();{r.p(n);if(!a){de()}}}else{{he(i,"componentDidUpdate")}t()}{r.v(n)}{if(r.B){r.B();r.B=void 0}if(r.i&512){U((function(){return fe(r,false)}))}r.i&=~(4|512)}};var de=function(r){{pe(C.documentElement)}U((function(){return Zr(A,"appload",{detail:{namespace:t}})}))};var he=function(r,e,n){if(r&&r[e]){try{return r[e](n)}catch(r){h(r)}}return void 0};var pe=function(r){var e;return r.classList.add((e=i.hydratedSelectorName)!=null?e:"hydrated")};var me=function(r,e){return v(r).o.get(e)};var ye=function(r,e,n,t){var i=v(r);if(!i){throw new Error("Couldn't find host element for \"".concat(t.m,'" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).'))}var a=i.$hostElement$;var f=i.o.get(e);var u=i.i;var o=i.t;n=Xr(n,t.G[e][0]);var l=Number.isNaN(f)&&Number.isNaN(n);var s=n!==f&&!l;if((!(u&8)||f===void 0)&&s){i.o.set(e,n);if(o){if(t.q&&u&128){var c=t.q[e];if(c){c.map((function(r){try{o[r](n,f,e)}catch(r){h(r,a)}}))}}if((u&(2|16))===2){fe(i,false)}}}};var $e=function(r,e,n){var t,i;var a=r.prototype;if(e.G||(e.q||r.watchers)){if(r.watchers&&!e.q){e.q=r.watchers}var f=Object.entries((t=e.G)!=null?t:{});f.map((function(r){var t=r[0],i=r[1][0];if(i&31||n&2&&i&32){if((i&2048)===0){Object.defineProperty(a,t,{get:function(){return me(this,t)},set:function(r){ye(this,t,r,e)},configurable:true,enumerable:true})}else if(n&1&&i&2048){{Object.defineProperty(a,t,{get:function(){var r=v(this);var e=r?r.t:a;if(!e)return;return e[t]},configurable:true,enumerable:true})}if(i&4096){var f=Object.getOwnPropertyDescriptor(a,t).set;Object.defineProperty(a,t,{set:function(r){var n=this;var i=v(this);if(f){var a=i.$hostElement$[t];if(!i.o.get(t)&&a){i.o.set(t,a)}f.apply(this,[Xr(r,e.G[t][0])]);ye(this,t,i.$hostElement$[t],e);return}if(!i)return;var u=function(){var a=i.t[t];if(!i.o.get(t)&&a){i.o.set(t,a)}i.t[t]=Xr(r,e.G[t][0]);ye(n,t,i.t[t],e)};if(i.t){u()}else{i.h.then((function(){return u()}))}}})}}}else if(n&1&&i&64){Object.defineProperty(a,t,{value:function(){var r=[];for(var e=0;e<arguments.length;e++){r[e]=arguments[e]}var n;var i=v(this);return(n=i==null?void 0:i.l)==null?void 0:n.then((function(){var e;return(e=i.t)==null?void 0:e[t].apply(e,r)}))}})}}));if(n&1){var u=new Map;a.attributeChangedCallback=function(r,n,t){var i=this;E.jmp((function(){var f;var o=u.get(r);if(i.hasOwnProperty(o)){t=i[o];delete i[o]}else if(a.hasOwnProperty(o)&&typeof i[o]==="number"&&i[o]==t){return}else if(o==null){var l=v(i);var s=l==null?void 0:l.i;if(s&&!(s&8)&&s&128&&t!==n){var c=l.t;var d=(f=e.q)==null?void 0:f[r];d==null?void 0:d.forEach((function(e){if(c[e]!=null){c[e].call(c,t,n,r)}}))}return}var h=Object.getOwnPropertyDescriptor(a,o);if(!h.get||!!h.set){i[o]=t===null&&typeof i[o]==="boolean"?false:t}}))};r.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((i=e.q)!=null?i:{}),true),f.filter((function(r){var e=r[0],n=r[1];return n[0]&15})).map((function(r){var n=r[0],t=r[1];var i;var a=t[1]||n;u.set(a,n);if(t[0]&512){(i=e.F)==null?void 0:i.push([n,a])}return a})),true)))}}return r};var be=function(r,e,t,i){return __awaiter(n,void 0,void 0,(function(){var n,i,a,f,u,o,l,v,s,c,d;return __generator(this,(function(p){switch(p.label){case 0:if(!((e.i&32)===0))return[3,6];e.i|=32;i=t.$;if(!i)return[3,4];a=m(t);if(!(a&&"then"in a))return[3,2];f=Hr();return[4,a];case 1:n=p.sent();f();return[3,3];case 2:n=a;p.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t.m,"#").concat(e.K,'" was not found'))}if(!n.isProxied){{t.q=n.watchers}$e(n,t,2);n.isProxied=true}u=Br("createInstance",t.m);{e.i|=8}try{new n(e)}catch(r){h(r)}{e.i&=~8}{e.i|=128}u();we(e.t);return[3,5];case 4:n=r.constructor;o=r.localName;customElements.whenDefined(o).then((function(){return e.i|=128}));p.label=5;case 5:if(n&&n.style){l=void 0;if(typeof n.style==="string"){l=n.style}v=ie(t);if(!y.has(v)){s=Br("registerStyles",t.m);ee(v,l,!!(t.i&1));s()}}p.label=6;case 6:c=e.H;d=function(){return fe(e,true)};if(c&&c["s-rc"]){c["s-rc"].push(d)}else{d()}return[2]}}))}))};var we=function(r){{he(r,"connectedCallback")}};var ge=function(r){if((E.i&1)===0){var e=v(r);var n=e.u;var t=Br("connectedCallback",n.m);if(!(e.i&1)){e.i|=1;var i=void 0;{i=r.getAttribute(S);if(i){if(n.i&1){var a=ne(r.shadowRoot,n);r.classList.remove(a+"-h",a+"-s")}else if(n.i&2){var a=ie(n);r["s-sc"]=a}Vr(r,n.m,i,e)}}if(!i){if(n.i&(4|8)){_e(r)}}{var f=r;while(f=f.parentNode||f.host){if(f.nodeType===1&&f.hasAttribute("s-id")&&f["s-p"]||f["s-p"]){ae(e,e.H=f);break}}}if(n.G){Object.entries(n.G).map((function(e){var n=e[0],t=e[1][0];if(t&31&&r.hasOwnProperty(n)){var i=r[n];delete r[n];r[n]=i}}))}{U((function(){return be(r,e,n)}))}}else{xe(r,e,n.X);if(e==null?void 0:e.t){we(e.t)}else if(e==null?void 0:e.h){e.h.then((function(){return we(e.t)}))}}t()}};var _e=function(r){var e=r["s-cr"]=C.createComment("");e["s-cn"]=true;Nr(r,e,r.firstChild)};var Se=function(r){{he(r,"disconnectedCallback")}};var je=function(r){return __awaiter(n,void 0,void 0,(function(){var e;return __generator(this,(function(n){if((E.i&1)===0){e=v(r);{if(e.J){e.J.map((function(r){return r()}));e.J=void 0}}if(e==null?void 0:e.t){Se(e.t)}else if(e==null?void 0:e.h){e.h.then((function(){return Se(e.t)}))}}return[2]}))}))};var Oe=r("b",(function(r,e){if(e===void 0){e={}}var n;var t=Br();var i=[];var a=e.exclude||[];var f=A.customElements;var u=C.head;var o=u.querySelector("meta[charset]");var l=C.createElement("style");var s=[];var d;var h=true;Object.assign(E,e);E._=new URL(e.resourcesUrl||"./",C.baseURI).href;{E.i|=2}var p=false;r.map((function(r){r[1].map((function(e){var n;var t={i:e[0],m:e[1],G:e[2],X:e[3]};if(t.i&4){p=true}{t.G=e[2]}{t.X=e[3]}{t.F=[]}{t.q=(n=e[4])!=null?n:{}}var u=t.m;var o=function(r){__extends(e,r);function e(e){var n=r.call(this,e)||this;n.hasRegisteredEventListeners=false;e=n;c(e,t);if(t.i&1){{if(!e.shadowRoot){{e.attachShadow({mode:"open",delegatesFocus:!!(t.i&16)})}}else{if(e.shadowRoot.mode!=="open"){throw new Error("Unable to re-use existing shadow root for ".concat(t.m,"! Mode is set to ").concat(e.shadowRoot.mode," but Stencil only supports open shadow roots."))}}}}return n}e.prototype.connectedCallback=function(){var r=this;var e=v(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;xe(this,e,t.X)}if(d){clearTimeout(d);d=null}if(h){s.push(this)}else{E.jmp((function(){return ge(r)}))}};e.prototype.disconnectedCallback=function(){var r=this;E.jmp((function(){return je(r)}))};e.prototype.componentOnReady=function(){return v(this).h};return e}(HTMLElement);{{Pr(o.prototype)}}t.$=r[0];if(!a.includes(u)&&!f.get(u)){i.push(u);f.define(u,$e(o,t,1))}}))}));if(i.length>0){if(p){l.textContent+=k}if(l.innerHTML.length){l.setAttribute("data-styles","");var m=(n=E.W)!=null?n:Q(C);if(m!=null){l.setAttribute("nonce",m)}u.insertBefore(l,o?o.nextSibling:u.firstChild)}}h=false;if(s.length){s.map((function(r){return r.connectedCallback()}))}else{{E.jmp((function(){return d=setTimeout(de,30)}))}}t()}));var ke=r("F",(function(r,e){return e}));var xe=function(r,e,n,t){if(n){n.map((function(n){var t=n[0],i=n[1],a=n[2];var f=Ce(r,t);var u=Ae(e,a);var o=Ee(t);E.ael(f,i,u,o);(e.J=e.J||[]).push((function(){return E.rel(f,i,u,o)}))}))}};var Ae=function(r,e){return function(n){var t;try{{if(r.i&256){(t=r.t)==null?void 0:t[e](n)}else{(r.V=r.V||[]).push([e,n])}}}catch(r){h(r)}}};var Ce=function(r,e){if(e&4)return C;if(e&8)return A;if(e&16)return C.body;return r};var Ee=function(r){return T?{passive:(r&1)!==0,capture:(r&2)!==0}:(r&2)!==0};var Te=r("s",(function(r){return E.W=r}))}}}));
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(t,e,a,i){function d(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,n){function r(t){try{o(i.next(t))}catch(t){n(t)}}function l(t){try{o(i["throw"](t))}catch(t){n(t)}}function o(t){t.done?a(t.value):d(t.value).then(r,l)}o((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,d,n,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(t){return function(e){return o([t,e])}}function o(l){if(i)throw new TypeError("Generator is already executing.");while(r&&(r=0,l[0]&&(a=0)),a)try{if(i=1,d&&(n=l[0]&2?d["return"]:l[0]?d["throw"]||((n=d["return"])&&n.call(d),0):d.next)&&!(n=n.call(d,l[1])).done)return n;if(d=0,n)l=[l[0]&2,n.value];switch(l[0]){case 0:case 1:n=l;break;case 4:a.label++;return{value:l[1],done:false};case 5:a.label++;d=l[1];l=[0];continue;case 7:l=a.ops.pop();a.trys.pop();continue;default:if(!(n=a.trys,n=n.length>0&&n[n.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]<n[3])){a.label=l[1];break}if(l[0]===6&&a.label<n[1]){a.label=n[1];n=l;break}if(n&&a.label<n[2]){a.label=n[2];a.ops.push(l);break}if(n[2])a.ops.pop();a.trys.pop();continue}l=e.call(t,a)}catch(t){l=[6,t];d=0}finally{i=n=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,a){if(a||arguments.length===2)for(var i=0,d=e.length,n;i<d;i++){if(n||!(i in e)){if(!n)n=Array.prototype.slice.call(e,0,i);n[i]=e[i]}}return t.concat(n||Array.prototype.slice.call(e))};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register(["./p-ed810e76.system.js","./p-4d81e7f6.system.js","./p-41982d26.system.js","./p-752fa0fc.system.js","./p-7fd0a219.system.js","./p-64959c1d.system.js","./p-59777da7.system.js","./p-e6b5a1c7.system.js","./p-98636086.system.js","./p-99ffd1cf.system.js"],(function(t){"use strict";var e,a,i,d,n,r,l,o,s,u,h,f,b,c,p,m,g,v,y,x,w,k,_;return{setters:[function(t){e=t.h;a=t.r;i=t.c;d=t.H;n=t.g;r=t.F},function(t){l=t.i},function(t){o=t.f;s=t.d},function(t){u=t.i},function(t){h=t.a;f=t.c;b=t.d;c=t.g;p=t.s},function(t){m=t.p;g=t.s},function(t){v=t.b;y=t.a},function(t){x=t.c},function(t){w=t.p},function(t){k=t.g;_=t.a}],execute:function(){var T=function(t,a){var i=t.data,d=t.groupId,n=t.alignment;var r="duet-editable-table duet-editable-table-content-".concat(d);if(typeof i==="string"){return e("td",{innerHTML:i,class:r,part:"".concat(d,"content"),style:{verticalAlign:n}})}else{return e("td",{class:r,part:"".concat(d,"content"),style:{verticalAlign:n}},i)}};var j=".sc-duet-editable-table-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-editable-table-actions-menu.sc-duet-editable-table{position:relative;padding:0 !important;margin:0}.duet-editable-table-actions-menu-button.sc-duet-editable-table{position:relative;right:-16px;float:right;padding:0}.duet-editable-table-actions-menu-icon.sc-duet-editable-table .duet-icon.sc-duet-editable-table{max-width:16px;max-height:16px}.duet-editable-table-row.duet-table-action-row.sc-duet-editable-table .duet-text-right.sc-duet-editable-table{text-align:right}.duet-editable-table-header.sc-duet-editable-table tr.sc-duet-editable-table .duet-editable-table-header-hidden.sc-duet-editable-table{padding:0 !important;font-size:0;border-bottom:0}";var E=j;var S=t("duet_editable_table",function(){function t(t){var e=this;a(this,t);this.duetTableToggle=i(this,"duetTableToggle",7);this.duetMenuClick=i(this,"duetMenuClick",7);this.hasHeadSlotFirst=false;this.hasHeadSlotLast=false;this.hasFootSlot=false;this.sortableDefaultLabel={fi:"Järjestä",en:"Click to sort",sv:"Klicka för att sortera"};this.actionColumnLabel={en:"Actions for rows",fi:"Toiminnot rivillä",sv:"Åtgärder för rader"};this.toggleColumn=function(t,a){a.preventDefault();var i=t.sort_order,d=t.direction,n=t.index,r=t.key;e.duetTableToggle.emit({sort_order:i,index:n,direction:d,key:r,component:"duet-editable-table",originalEvent:a})};this.handleKeyDown=function(t,a){if(u(a)){e.toggleColumn(t,a)}};this.language=h();this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.actions=undefined;this.columns=undefined;this.rows=undefined;this.sortable=false;this.groupId="";this.theme="";this.accessibleRole=undefined;this.hideHeadVisually=false}t.prototype.componentWillLoad=function(){l(this);this.hasHeadSlotFirst=!!this.element.querySelector("[slot='thead-first']");this.hasHeadSlotLast=!!this.element.querySelector("[slot='thead-last']");this.hasFootSlot=!!this.element.querySelector("[slot='tfoot']")};t.prototype.connectedCallback=function(){f(this)};t.prototype.disconnectedCallback=function(){b(this)};t.prototype.createLabel=function(t){var a=this;var i=t.sort_order,d=t.direction,n=t.index,r=t.label;var l=c(r);if(!this.sortable){return l}var o=function(){if(!!i&&d===1){return"action-arrow-down-small"}else if(!!i&&d===-1){return"action-arrow-up-small"}return"action-subtract-small"};return e("span",{class:"duet-table-label","data-index":n},e("duet-button",{size:"small",icon:o(),"icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":true,onClick:function(e){return a.toggleColumn(t,e)},onKeyDown:function(e){return a.handleKeyDown(t,e)}},l))};t.prototype.getSortedColumns=function(){return __spreadArray([],this.columns,true).sort(o(["index"]))};t.prototype.getRowSortOrder=function(){var t=__spreadArray([],this.columns,true).sort(o(["sort_order"]));return t.filter((function(t){return t.sort_order})).map((function(t){return t.direction===-1?"-".concat(t.key):t.key}))};t.prototype.renderTableHeader=function(){var t=this;if(!this.columns){return}var a=this.getSortedColumns();return e("tr",{class:{"duet-table-action-header":!!this.actions}},a.map((function(a){if(a.display!==false){var i=t.createLabel(a);return i!==""?e("th",{scope:"col"},i):e("td",null)}})),this.actions&&e("th",{scope:"col",class:"duet-table-action-header-heading"},this.actions&&e("duet-visually-hidden",null,this.actionColumnLabel[this.language])))};t.prototype.renderActions=function(t,a){var i=this;if(!this.actions){return}return e("td",{class:"duet-text-right"},this.actions.map((function(d){return e("duet-action-button",{actionMeta:Object.assign({},(t===null||t===void 0?void 0:t.meta)||{},{index:a}),actionId:(t===null||t===void 0?void 0:t.uid)||(t===null||t===void 0?void 0:t.id)||null,actionName:d.name,theme:i.theme,iconName:d.icon,iconColor:d.color,iconSize:d.size,background:d.background,"accessible-label":"".concat(t.actionDescription||""," ").concat(c(d.label)," ")})})))};t.prototype.renderTableBody=function(){var t=this;var a=this.getSortedColumns();var i=this.getRowSortOrder();var d=__spreadArray([],this.rows,true).sort(o(i));return d.map((function(i,d){var n;return e("tr",{class:(n={"duet-table-action-row":!!t.actions,"duet-editable-table-row":true},n["duet-editable-table-row-".concat(t.groupId)]=true,n),"data-meta":JSON.stringify(i.meta)},a.map((function(a){var d=i[a.key]?i[a.key]:i.item;if(a.display!==false){return e(T,{data:d,groupId:t.groupId})}})),t.actions&&t.renderActions(i,d))}))};t.prototype.render=function(){var t;return e(d,{class:(t={},t["duet-editable-table-".concat(this.variation)]=true,t["duet-editable-table"]=true,t["duet-editable-table-".concat(this.theme)]=true,t["duet-editable-table-scrollable"]=this.breakpoint==="none-scrollable",t["duet-editable-table-sortable"]=this.sortable,t["duet-editable-table-actions"]=!!this.actions,t["duet-m-0"]=this.margin==="none",t["duet-theme-turva"]=this.theme==="turva",t)},e("duet-table",{class:"duet-editable-table-table",sticky:this.sticky,stickyDistance:this.stickyDistance,margin:this.margin,theme:this.theme,variation:this.variation,breakpoint:this.breakpoint,"hide-head-visually":this.hideHeadVisually},e("table",{role:this.accessibleRole},e("caption",null,e("slot",{name:"tcaption"})),e("thead",null,this.hasHeadSlotFirst&&e("tr",null,e("td",{class:"duet-editable-table-actions-menu",colSpan:99},e("slot",{name:"thead-first"}))),this.renderTableHeader(),this.hasHeadSlotLast&&e("tr",null,e("td",{class:"duet-editable-table-actions-menu",colSpan:99},e("slot",{name:"thead-last"})))),e("tbody",null,this.renderTableBody()),this.hasFootSlot&&e("tfoot",null,e("tr",null,e("td",{class:"duet-editable-table-footer-menu",colSpan:99},e("slot",{name:"tfoot"})))))))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());S.style=E;var L='duet-table{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;font-variant-numeric:tabular-nums}duet-table table,duet-table thead,duet-table tbody,duet-table tfoot,duet-table th,duet-table td,duet-table tr{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}duet-table.duet-m-0{margin:0 !important}duet-table table{width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;text-align:left;border-spacing:0;border-collapse:separate}duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead,duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead *{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}duet-table.duet-theme-turva table{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}duet-table td{-webkit-hyphens:auto;hyphens:auto;color:rgb(8, 42, 77)}duet-table.duet-theme-turva td{color:rgb(23, 28, 58)}duet-table th{font-weight:600;line-height:1.25;color:rgb(98, 121, 138);text-align:left}duet-table.duet-theme-turva th{color:rgb(143, 147, 158)}duet-table tbody th{font-weight:600;color:rgb(8, 42, 77)}duet-table.duet-theme-turva tbody th{color:rgb(23, 28, 58)}duet-table .duet-table-action-row td:last-child{justify-self:end;padding-right:20px !important;white-space:nowrap}duet-table span.duet-table-cell-heading{display:none}.duet-table-flattened table,.duet-table-flattened thead,.duet-table-flattened tbody,.duet-table-flattened tfoot,.duet-table-flattened th,.duet-table-flattened td,.duet-table-flattened tr{display:block}.duet-table-flattened thead tr{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}.duet-table-flattened td{line-height:1.25}.duet-table-flattened td:not(:last-child){margin-bottom:16px !important}.duet-table-flattened td span.duet-table-cell-heading{margin-bottom:4px !important;display:block;font-size:1rem;font-weight:600;color:rgb(8, 42, 77)}.duet-table-flattened.duet-theme-turva td span.duet-table-cell-heading{color:rgb(23, 28, 58)}.duet-table-flattened tbody td,.duet-table-flattened tbody th,.duet-table-flattened tfoot td{padding:0 !important;text-align:left !important}.duet-table-flattened tbody th{font-weight:600;line-height:1.25;color:rgb(98, 121, 138);text-align:left}.duet-table-sticky thead th,.duet-table-sticky thead td{position:sticky;top:0;background:rgb(255, 255, 255)}.duet-table-striped td,.duet-table-striped th{padding:20px !important}@media (max-width: 35.9375em){.duet-table-striped td,.duet-table-striped th{padding:20px 12px !important}}.duet-table-striped tbody th{background:rgb(255, 255, 255)}.duet-table-striped.duet-table-sticky thead th,.duet-table-striped.duet-table-sticky thead td{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-table-sticky.duet-theme-turva thead th,.duet-table-striped.duet-table-sticky.duet-theme-turva thead td{border-bottom-color:rgb(222, 224, 228)}.duet-table-striped tbody:not(:first-of-type) th{padding-top:40px !important}.duet-table-striped tbody:only-of-type tr:nth-of-type(odd){background:rgba(4, 81, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(4, 81, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tfoot td{border-top:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-theme-turva tfoot td{border-top-color:rgb(222, 224, 228)}.duet-table-striped.duet-table-flattened tbody:not(:first-of-type) th{padding-top:20px !important}.duet-table-striped.duet-table-flattened tr{padding:20px !important}.duet-table-striped.duet-table-flattened tfoot td{border-top:0}.duet-table-striped.duet-table-flattened tfoot tr{border-top:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:rgb(222, 224, 228)}.duet-table-fixed th,.duet-table-minimal th,.duet-table-plain th,.duet-table-fixed thead td,.duet-table-minimal thead td,.duet-table-plain thead td{padding:16px !important;border-bottom:1px solid rgb(98, 121, 138)}.duet-table-fixed th:first-child,.duet-table-minimal th:first-child,.duet-table-plain th:first-child,.duet-table-fixed thead td:first-child,.duet-table-minimal thead td:first-child,.duet-table-plain thead td:first-child{padding-left:0 !important}.duet-table-fixed th:last-child,.duet-table-minimal th:last-child,.duet-table-plain th:last-child,.duet-table-fixed thead td:last-child,.duet-table-minimal thead td:last-child,.duet-table-plain thead td:last-child{padding-right:0 !important}.duet-theme-turva.duet-table-fixed th,.duet-theme-turva.duet-table-minimal th,.duet-theme-turva.duet-table-plain th,.duet-theme-turva.duet-table-fixed thead td,.duet-theme-turva.duet-table-minimal thead td,.duet-theme-turva.duet-table-plain thead td{border-bottom-color:rgb(113, 118, 132)}.duet-table-fixed tbody th,.duet-table-minimal tbody th,.duet-table-plain tbody th{padding-top:40px !important;border-bottom-color:rgb(212, 223, 229)}.duet-theme-turva.duet-table-fixed tbody th,.duet-theme-turva.duet-table-minimal tbody th,.duet-theme-turva.duet-table-plain tbody th{border-bottom-color:rgb(222, 224, 228)}.duet-table-fixed td,.duet-table-minimal td,.duet-table-plain td{padding:16px !important}.duet-table-fixed td:first-child,.duet-table-minimal td:first-child,.duet-table-plain td:first-child{padding-left:0 !important}.duet-table-fixed td:last-child,.duet-table-minimal td:last-child,.duet-table-plain td:last-child{padding-right:0 !important}.duet-table-fixed tbody td,.duet-table-minimal tbody td,.duet-table-plain tbody td{border-bottom:1px solid rgb(212, 223, 229)}.duet-theme-turva.duet-table-fixed tbody td,.duet-theme-turva.duet-table-minimal tbody td,.duet-theme-turva.duet-table-plain tbody td{border-bottom-color:rgb(222, 224, 228)}.duet-table-flattened.duet-table-fixed tbody:first-of-type th,.duet-table-flattened.duet-table-minimal tbody:first-of-type th,.duet-table-flattened.duet-table-plain tbody:first-of-type th{padding-top:0 !important}.duet-table-flattened.duet-table-fixed td,.duet-table-flattened.duet-table-minimal td,.duet-table-flattened.duet-table-plain td,.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{border-bottom:0}.duet-table-flattened.duet-table-fixed tr,.duet-table-flattened.duet-table-minimal tr,.duet-table-flattened.duet-table-plain tr{padding:20px 0 !important}.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{padding-top:20px !important}.duet-table-flattened.duet-table-fixed tfoot td,.duet-table-flattened.duet-table-minimal tfoot td,.duet-table-flattened.duet-table-plain tfoot td{margin-bottom:4px !important}.duet-table-flattened.duet-table-fixed tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-minimal tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-plain tbody:not(:only-of-type) tr:first-child{border-bottom:0}.duet-table-plain.duet-table-flattened tbody tr{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:rgb(222, 224, 228)}.duet-table-minimal tbody tr,.duet-table-minimal tbody tr td{vertical-align:top;border-bottom:0 none}.duet-table-minimal tbody tr:last-of-type,.duet-table-minimal tbody tr:last-of-type td{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-minimal.duet-table-flattened tbody tr,.duet-table-minimal.duet-table-flattened tbody tr td{border-bottom:0 none}.duet-table-minimal.duet-table-flattened tbody tr td[data-heading]::before{display:none}.duet-table-minimal.duet-table-flattened tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-fixed table{table-layout:fixed}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td,.duet-table-fixed tbody tr td:first-child{padding:4px !important;vertical-align:text-bottom;border-bottom:0 none}.duet-table-fixed thead{display:none}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td{border-bottom:0 none}.duet-table-fixed:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-fixed:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-scrollable{position:relative;width:100%;overflow-x:auto;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0)), linear-gradient(-90deg, #fff 0%, rgba(255, 255, 255, 0)) 100% 0, radial-gradient(farthest-side at 0% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)) 100% 0%;background-repeat:no-repeat;background-attachment:local, local, scroll, scroll;background-size:100px 100%, 100px 100%, 12px 100%, 12px 100%}.duet-table-selected-column{background:rgba(0, 119, 179, 0.08)}.duet-theme-turva .duet-table-selected-column{background:rgba(113, 118, 132, 0.08)}.duet-table-sortable tbody tr td:first-child,.duet-table-sortable thead tr th:first-child{padding:20px}.duet-table-sortable:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-sortable:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-actions table{table-layout:auto}.duet-table-actions thead th:last-child{width:1px;white-space:nowrap}.duet-editable-table-table.duet-table-flattened tr{display:grid;grid-template-columns:repeat(2, 1fr);grid-auto-rows:auto;gap:10px}.duet-editable-table-table.duet-table-flattened tr.duet-table-action-row td:last-child::before{padding:0;content:""}.duet-editable-table-table.duet-table-flattened td{grid-column:1/2}.duet-editable-table-table.duet-table-flattened td:first-child{grid-row:1;grid-column:1}.duet-editable-table-table.duet-table-flattened td:last-child{grid-row:1;grid-column:2}duet-table.duet-theme-turva2.duet-theme-turva td{color:#172a3b}duet-table.duet-theme-turva2.duet-theme-turva tbody th{color:#172a3b}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva.duet-table-sticky thead th,duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva.duet-table-sticky thead td{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 42, 59, 0.04)}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 42, 59, 0.04)}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tfoot td{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody th,duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody td{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody td{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-fixed.duet-theme-turva:not(.duet-table-flattened) tfoot{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-sortable.duet-theme-turva:not(.duet-table-flattened) tfoot{border-top-color:#fbe1d1}';var z=L;var A={none:0,"with-links":parseFloat(m)*16,"without-links":parseFloat(g)*16};var F=t("duet_table",function(){function t(t){var e=this;a(this,t);this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)";this.handleMediaQueryChange=function(t){e.matchesBreakpoint=v.includes(e.breakpoint)?!t.matches:t.matches};this.matchesBreakpoint=true;this.language=h();this.theme=undefined;this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.hideHeadVisually=false}t.prototype.watchLanguageStateHandler=function(t,e){var a=this;if(t!==e){setTimeout((function(){return a.copyHeadingsToCells()}),50)}};t.prototype.connectedCallback=function(){var t=this;var e=this.breakpoint==="none"||this.breakpoint==="none-scrollable"?"all":y[this.breakpoint];this.mq=matchMedia(e);this.mq.addEventListener("change",s(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);this.observer=new MutationObserver((function(){return s(t.copyHeadingsToCells(),50)}));this.observer.observe(this.element,{childList:true,subtree:true})};t.prototype.componentWillLoad=function(){l(this);this.copyHeadingsToCells();if(this.sticky&&this.breakpoint==="none-scrollable"){console.warn('[DUET WARNING]: sticky and breakpoint="none-scrollable" are incompatible. Scrollable takes precedence')}if(this.sticky){var t=A[this.stickyDistance];var e=this.element.querySelectorAll(this.headingSelector);e.forEach((function(e){return e.style.top="".concat(t,"px")}))}};t.prototype.componentDidLoad=function(){this.observer?this.observer.takeRecords():null;f(this)};t.prototype.disconnectedCallback=function(){this.observer.disconnect();this.observer=null;this.mq.removeListener(this.handleMediaQueryChange);this.mq=null;this.matchesBreakpoint=true;b(this)};t.prototype.copyHeadingsToCells=function(){var t=this.element.querySelectorAll(this.headingSelector);var e=this.element.querySelectorAll("tbody tr");var a=Array.from(t).map((function(t){return t.textContent.trim()}));e.forEach((function(t){t.querySelectorAll("td").forEach((function(t,e){if(a[e]){var i=t.querySelector(".duet-table-cell-heading");if(!i||i.textContent!==a[e]){i===null||i===void 0?void 0:i.remove();var d=document.createElement("span");d.textContent=a[e];d.classList.add("duet-table-cell-heading");d.setAttribute("aria-hidden","true");d.inert=true;t.prepend(d)}}}))}))};t.prototype.render=function(){var t;return e(d,{key:"fc3dbefb9caed333ce27098bac9cad5154d0527d",class:(t={},t["duet-table-".concat(this.variation)]=true,t["duet-table-flattened"]=!this.matchesBreakpoint,t["duet-table-sticky"]=this.matchesBreakpoint&&this.sticky,t["duet-table-scrollable"]=this.breakpoint==="none-scrollable",t["duet-m-0"]=this.margin==="none",t["duet-theme-turva"]=this.theme==="turva",t["duet-table-hide-head-visually"]=this.hideHeadVisually,t)},e("slot",{key:"34742ef188f22769be8c47a122f782193529f933"}))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{language:["watchLanguageStateHandler"]}},enumerable:false,configurable:true});return t}());F.style=z;var M=[{type:"default",system_message:"unknown error",message:{fi:"Tapahtui tuntematon virhe, ole hyvä ja yritä uudelleen.",sv:"Ett okänt fel uppstod, försök igen.",en:"An unknown error occured, please try again."}},{type:"400",system_message:"Bad Request: The server could not understand the request due to invalid syntax.",message:{fi:"Tiedostoa ei hyväksytty.",sv:"Servern avvisade din fil.",en:"The server rejected your file."}},{type:"401",system_message:"Not Authenticated: The client must authenticate itself to get the requested response...",message:{fi:"Vain kirjautunut käyttäjä voi lähettää tiedostoja.",sv:"Du måste vara inloggad för att ladda upp filer.",en:"You need to be logged in to upload files."}},{type:"403",system_message:"No Access: The client does not have access rights to the content.",message:{fi:"Ei oikeuksia lähettää tiedostoja.",sv:"Du har inte rätt åtkomsträttigheter för att ladda upp filer.",en:"You do not have the correct access rights to upload files."}},{type:"413",system_message:"Payload too large",message:{fi:"Tiedosto oli liian vastaanotettavaksi.",sv:"Filen var för stor för servern att hantera.",en:"The file was to large for the server to handle."}},{type:"415",system_message:"Unsupported media type",message:{fi:"Tiedoston tyyppi oli väärä.",sv:"Servern avvisade filen eftersom den hade fel typ.",en:"The server rejected the file because it had the wrong type."}},{type:"429",system_message:"Too many request from same address",message:{fi:"Liian monta yritystä, ole hyvä ja yritä myöhemmin uudelleen.",sv:"Servern har fått många förfrågningar från dig, försök igen senare.",en:"The server has received to many request from you, please try again later."}},{type:"500",system_message:"Internal Server Error",message:{fi:"Palvelin ilmoitti tuntemattomasta virheestä ja lataus epäonnistui.",sv:"Servern rapporterade ett okänt fel och uppladdningen misslyckades.",en:"The server reported an unknown error and the upload failed."}},{type:"duet-upload-100",system_message:"File extension not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den type.",en:"You cannot upload files with that extension."}},{type:"duet-upload-001",system_message:"File transfer failed",message:{fi:"Tiedoston lähetys keskeytyi, ole hyvä ja yritä uudelleen.",sv:"Din anslutning till servern avbröts, försök igen.",en:"Your connection to the server was interrupted, try again."}},{type:"duet-upload-101",system_message:"File mimetype not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den typ.",en:"You cannot upload files of that type."}},{type:"duet-upload-201",system_message:"File is too large",message:{fi:"Tiedosto on liian iso.",sv:"Filen är större än tillåtet.",en:"The file is larger than permitted."}},{type:"duet-upload-202",system_message:"The combined size of all files is too large",message:{fi:"Tiedostojen yhteenlaskettu koko on liian iso.",sv:"Du har nått den maximala kombinerade filstorleken.",en:"You have reached the maximum combined filesize."}},{type:"duet-upload-203",system_message:"Files to upload exceed total byte size limit",message:{fi:"Yritit lisätä tiedostoja, jotka ylittäisivät suurimman sallitun yhteenlasketun koon.",sv:"Du försökte lägga till filer som skulle överskrida den maximala kombinerade storleken.",en:"You tried to add files that would exceed the maximum combined size."}},{type:"duet-upload-301",system_message:"The maximum file limit has been reached",message:{fi:"Liitteiden maksimimäärä saavutettu.",sv:"Maximalt antal bilagor har uppnåtts.",en:"Maximum number of attachments reached."}},{type:"duet-upload-302",system_message:"Files to upload exceeds limits",message:{fi:"Et voi lähettää enempää kuin enimmäismäärän liitteitä.",sv:"Du kan inte ladda upp fler än det maximala antalet bilagor.",en:"You can't upload more than maximum number of attachments."}}];var U={fi:"Liiteluettelo",sv:"Lista över bilagor",en:"Attachments list"};var D=function(t){var a=t.label,i=t.categoryLabel;return e("div",{class:"items-header",tabindex:"-1","aria-label":c(U)},i&&e("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},c(i)),e("duet-heading",{class:{"filename-header":true,"no-category":!i},border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},c(a)))};var C=function(t,e){if(!e){return true}var a=t.split(".");var i=e.split(",");var d=a[a.length-1];return i.includes(d)};var P=function(t,e){if(!e||!t){return true}var a=e.split(",");var i=false;a.forEach((function(e){var a=e.split("/");var d=t.split("/");if(a[0]===d[0]&&(a[1]===d[1]||a[1]==="*")){i=true}}));return i};var I=function(t,e){if(!e||!t){return true}return e>=t};var O=function(t,e,a){var i=e.allowedMimetypes,d=e.allowedExtensions,n=e.maxBytes;var r=false;var l=k("default",a);if(t){var o=t.name,s=t.type,u=t.size;var h=P(s,i);var f=d==="all"||d===""||d===" "||d===undefined?true:C(o.toLowerCase(),d);var b=I(u,n);if(!h){l=k("duet-upload-101",a)}if(!f){l=k("duet-upload-100",a)}if(!b){l=k("duet-upload-201",a)}r=h&&f&&b}else{r=false}return{valid:r,errorMessage:r?undefined:c(l.message),errorSystem:r?undefined:l.system_message,errorType:r?undefined:l.type}};var W=function(t,e){var a=0;if(e){t.forEach((function(t){if(t.valid&&t.size){a+=t.size}}));if(a>=e){return true}}return false};var R=function(t,e){var a=0;if(e){t.forEach((function(t){if(t.valid){a++}}));if(a>=e){return true}}return false};var N=function(t,e,a){if(t+e>a){return true}return false};var Y=function(t,e,a){var i=0;if(a){t.forEach((function(t){if(t.valid&&t.size){i+=t.size}}));e.forEach((function(t){if(t.size){i+=t.size}}));if(i>=a){return true}}return false};var q=function(t){var e=t.payload,a=t.options,i=t.onFailure,d=t.onSuccess,n=t.onProgress;var r=a.type,l=r===void 0?"POST":r,o=a.xhr,s=a.uri,u=a.argument,h=u===void 0?null:u,f=a.headers,b=f===void 0?null:f;o.open(l,"".concat(s).concat(h||""),true);var c=e.data,p=e.name;if(b){Object.keys(b).forEach((function(t){o.setRequestHeader(t,b[t])}))}if(l==="POST"){o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE&&o.status>=200&&o.status<300){d(o,p,o.status)}if(o.readyState===XMLHttpRequest.DONE&&o.status>=300&&o.status<999){i(o,p,o.status)}};n(p)}o.send(c);return o};var B="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}::slotted([slot=uploadfooter]){margin-top:20px}.duet-upload{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}duet-paragraph::part(duet-paragraph){word-break:break-word}duet-editable-table tfoot{display:none}.upload-bottom-caption{margin-top:12px;margin-bottom:16px;line-height:1.4rem}.items-header{display:none;flex-direction:row;margin-bottom:0}@media (min-width: 36em){.items-header{display:flex}}.items-header:not(:last-child),.items-header:not(:first-child){margin-top:12px}.items-header .category-header{width:35%}.items-header .filename-header{width:65%}.items-header .filename-header.no-category{width:100%}.upload-item-row{display:flex;flex-direction:column;gap:16px;align-content:center;align-items:center;padding:16px 0 16px 0;border-bottom:1px solid rgb(212, 223, 229)}@media (min-width: 36em){.upload-item-row{flex-direction:row;gap:10px}}.upload-item-row .item-categories{width:100%}@media (min-width: 36em){.upload-item-row .item-categories{width:35%}}.upload-item-row .item-name{position:relative;bottom:2px;width:100%;text-align:left}@media (min-width: 36em){.upload-item-row .item-name{width:50%}.upload-item-row .item-name.no-category{width:85%}}.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:block}@media (min-width: 36em){.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:none}}.upload-item-row .item-actions{width:100%;margin-left:-8px;text-align:left}@media (min-width: 36em){.upload-item-row .item-actions{width:15%;padding-top:0;margin-left:auto;text-align:right}}.upload-item-row .duet-upload-item-name duet-icon{position:relative;top:4px}.upload-item-row .duet-upload-item-name duet-progress{display:block;margin-top:16px}";var H=B;var J=t("duet_upload",function(){function t(t){var d=this;a(this,t);this.duetChange=i(this,"duetChange",3);this.duetBlur=i(this,"duetBlur",7);this.duetFocus=i(this,"duetFocus",7);this.duetReady=i(this,"duetReady",7);this.duetDone=i(this,"duetDone",3);this.duetState=i(this,"duetState",3);this.duetDelete=i(this,"duetDelete",3);this.duetCancel=i(this,"duetCancel",3);this.duetProgress=i(this,"duetProgress",3);this.duetUpload=i(this,"duetUpload",3);this.linkClick=i(this,"linkClick",3);this.buttonId=x("DuetButton");this.labelId=x("DuetLabel");this.uploadId=x("DuetUpload");this.filesInProgress=new Map;this.fileMaxReached=false;this.bytesMaxReached=false;this.filesToUploadExceedsLimit=false;this.filesToUploadTotalSizeIsAboveMax=false;this.internalStatusMessageLabel=undefined;this.itemRefs=new Map;this.DefaultGroups={inprogress:"inprogress",success:"success",pending:"pending",failure:"failure"};this.kick=s((function(){d.tick=Date.now()}),30);this.categoryLabel={en:"Category",sv:"Filtyp",fi:"Tiedostotyyppi"};this.listenForActionEvents=function(){d.element.addEventListener("duetActionEvent",(function(t){var e=t.detail;var a=e.action,i=e.id,n=e.originalEvent;switch(a){case"delete":d.onDelete(i,n);break;case"cancel":d.onCancel(i,n);break}}))};this.verifyValidity=function(){var t=d.getFilesAsArray(),e=t.invalid,a=t.valid;var i=d.valid;d.valid=e.length===0&&a.length!==0;if(d.valid!==i){d.duetState.emit({originalEvent:undefined,data:{valid:d.valid,from:"componentWillRender"},component:"duet-upload"})}};this.getGroupFromItemData=function(t){if(t.valid&&t.progress===100){return d.DefaultGroups.success}else if(t.progress>0&&t.progress!==100){return d.DefaultGroups.inprogress}else if(!t.valid){return d.DefaultGroups.failure}else if(t.pending){return d.DefaultGroups.pending}else if(t.group){return t.group}else{return"none"}};this.mapFilesToUploadItems=function(t,a,i,n){if(a===d.DefaultGroups.success){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"success",data:t,showLinks:d.showLinks,linkClickEvent:d.emitEvent?d.linkClick:undefined,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(a===d.DefaultGroups.inprogress){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"inprogress",data:t,showLinks:d.showLinks,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(a===d.DefaultGroups.pending){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"pending",data:t,showLinks:d.showLinks,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(a===d.DefaultGroups.failure){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"failure",data:t,showLinks:d.showLinks,errorCodes:d.errorCodes,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(t.group){return t.html}else{return"none"}};this.genHashName=function(){return Date.now().toString(36)+Math.random()};this.updateValueInMap=function(t,e,a,i){if(i===void 0){i=true}try{var n=d.files.get(t);n[e]=a;d.files.set(t,n);if(d.external&&e!=="url"){d.trackProgress(t,e==="uploaded")}}catch(t){}if(i){d.kick()}};this.updateProgress=function(t,e){var a=function(a){d.updateValueInMap(e,"progress",a);d.onProgress(e,a,t)};if(t.lengthComputable){var i=t.loaded/t.total*100;a(i)}else{console.log("cant read progress")}};this.trackProgress=function(t,e){if(e===void 0){e=false}if(e){d.filesInProgress.delete(t)}else{d.filesInProgress.set(t,"inprogress")}if(d.filesInProgress.size===0){d.onDone()}};this.getFilesAsArray=function(){var t=[];var e=[];d.files.forEach((function(a){if(a.valid&&!a.deleted){t.push(a)}else if(!a.valid&&!a.deleted){e.push(a)}}));return{valid:t,invalid:e}};this.resetFormFields=function(){d.nativeInput.value=""};this.startUpload=function(t){var e=[];for(var a=1;a<arguments.length;a++){e[a-1]=arguments[a]}return __awaiter(d,__spreadArray([t],e,true),void 0,(function(t,e){var a,i,d;if(e===void 0){e=undefined}return __generator(this,(function(n){a=this.validateTotals(),i=a.bytesMaxReached,d=a.fileMaxReached;if(i||d){this.kick();return[2]}this.metaData=e;this.nativeInput.click();this.onUpload(t,e);t.stopPropagation();t.preventDefault();return[2]}))}))};this.transferComplete=function(t){d.updateValueInMap(t,"progress",100,false);d.trackProgress(t,true)};this.transferDone=function(t,e,a){d.updateValueInMap(e,"status",a,false);d.updateValueInMap(e,"uploaded",true,false);try{var i=JSON.parse(t.response);d.updateValueInMap(e,"url",i.url)}catch(t){d.updateValueInMap(e,"url",null);console.error("Server did not respond with expected response {url: string}")}return};this.transferDoneWithFailure=function(t,e,a){try{var i=JSON.parse(t.response).error;d.updateValueInMap(e,"error",{message:i.message,type:i.type},false)}catch(t){console.error("Server did not respond with expected response error:{message: string, type: int}");d.updateValueInMap(e,"error",{type:a},false)}d.updateValueInMap(e,"valid",false,true)};this.transferFailed=function(t){d.updateValueInMap(t,"error",_("duet-upload-001",d.errorCodes))};this.transferCanceled=function(t){d.files.delete(t);d.validateTotals(t);d.kick()};this.validateTotals=function(t){var e=W(d.files,d.maxBytesTotal);var a=R(d.files,d.maxFiles);if(e&&t){d.updateValueInMap(t,"error",_("duet-upload-202",d.errorCodes),false)}if(a&&t){d.updateValueInMap(t,"error",_("duet-upload-301",d.errorCodes),false)}d.bytesMaxReached=e;d.fileMaxReached=a;return{bytesMaxReached:e,fileMaxReached:a}};this.uploadFile=function(t){var e=[];for(var a=1;a<arguments.length;a++){e[a-1]=arguments[a]}return __awaiter(d,__spreadArray([t],e,true),void 0,(function(t,e,a){var i,d,n;if(e===void 0){e=false}return __generator(this,(function(r){switch(r.label){case 0:if(!e&&this.deferUpload){this.updateValueInMap(t.item.name,"pending",true,false);this.updateValueInMap(t.item.name,"group","pending",true)}else if(e){this.updateValueInMap(t.item.name,"pending",false,false);this.updateValueInMap(t.item.name,"group",undefined,true)}r.label=1;case 1:r.trys.push([1,4,,5]);if(!(!this.deferUpload||e))return[3,3];i=new FormData;i.append("file",t.item);if(a){i.append("key",a)}i.append("uid",t.uid);i.append("name",t.item.name);i.append("metadata",JSON.stringify({uid:t.uid,url:this.uri,size:t.item.size,meta:t.meta}));d=t;return[4,this.makeXHRPostRequest(i)];case 2:d.xhr=r.sent();r.label=3;case 3:return[3,5];case 4:n=r.sent();this.updateValueInMap(t.item.name,"valid",false,false);return[3,5];case 5:return[2]}}))}))};this.uploadPendingFiles=function(){for(var t=0,e=Array.from(d.files.entries());t<e.length;t++){var a=e[t],i=a[0],n=a[1];if(n.group==="pending"&&n.pending===true){d.uploadFile(n,true,i)}}};this.getItemFromUID=function(t){for(var e=0,a=Array.from(d.files.entries());e<a.length;e++){var i=a[e],n=i[0],r=i[1];if(r.uid===t){return{value:r,key:n}}}return null};this.handleExternalUploadButton=function(t,e){if(d.externalUploadButton){if(t||e){d.externalUploadButton.disabled=true}else{d.externalUploadButton.disabled=false}}};this.onDelete=function(t,e){var a=d.getItemFromUID(t);var i=a.key;var n=d.files.get(i);d.files.delete(i);var r=d.validateTotals(),l=r.bytesMaxReached,o=r.fileMaxReached;d.handleExternalUploadButton(l,o);d.kick();d.duetDelete.emit({originalEvent:e,data:{deletion:n},component:"duet-upload"});if(!d.external&&!n.pending){d.makeXHRDeleteRequest(n)}d.resetFormFields()};this.onCancel=function(t,e){var a=d.getItemFromUID(t).key;var i=d.files.get(a);d.files.delete(a);var n=d.validateTotals(),r=n.bytesMaxReached,l=n.fileMaxReached;d.handleExternalUploadButton(r,l);if(!d.external){var o=i.xhr;if(o){o.abort()}}d.kick();d.resetFormFields();d.duetCancel.emit({originalEvent:e,data:{cancelled:i},component:"duet-upload"})};this.onUpload=function(t,e){d.duetUpload.emit({originalEvent:t,metaData:e,component:"duet-upload"})};this.onBlur=function(t){d.duetBlur.emit({originalEvent:t,component:"duet-upload"})};this.onProgress=function(t,e,a){d.duetChange.emit({originalEvent:a,data:{key:t,percentComplete:e},component:"duet-upload"})};this.onFocus=function(t){d.duetFocus.emit({originalEvent:t,component:"duet-upload"})};this.onReady=function(){d.duetReady.emit({component:"duet-upload"})};this.onDone=function(){d.duetDone.emit({component:"duet-upload",data:{files:d.files}})};this.filterMap=function(){var t=Array.from(d.files.values());var e=[];var a=[];var i=[];var n=[];var r=false;t.forEach((function(t){var l=d.getGroupFromItemData(t);if(t.meta&&!!t.meta.badges){r=true}if(l===d.DefaultGroups.success){n.push({uid:t.uid,data:t})}else if(l===d.DefaultGroups.inprogress){e.push({uid:t.uid,data:t})}else if(l===d.DefaultGroups.pending){i.push({uid:t.uid,data:t})}else if(l===d.DefaultGroups.failure){a.push({uid:t.uid,data:t})}else if(t.group){e.push({uid:t.uid,data:t})}}));return{pending:i,failure:a,success:n,inprogress:e,hasCategory:r}};this.getActions=function(t,e){return e.filter((function(e){return e.map.includes(t)}))};this.renderUploadedItems=function(){d.itemRefs.clear();var t=d.filterMap();var a=t.hasCategory;var i=d.hideCancelButton?d.actions.filter((function(t){return t.name!=="cancel"})):d.actions;var n=d.groups.map((function(n){var l=t[n.id];if(!(l===null||l===void 0?void 0:l.length)){return}return e(r,null,!d.hideGroups&&e(D,{categoryLabel:a?d.categoryLabel:undefined,label:n.label}),l.map((function(t){return d.mapFilesToUploadItems(t.data,n.id,a,i)})))}));return e(r,null,d.showUploadedItemsHeader&&e(D,{categoryLabel:a?d.categoryLabel:undefined,label:d.uploadedItemsHeaderLabel}),n)};this.tick=Date.now();this.accessibleActiveDescendant=undefined;this.accessibleDescribedBy=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.external=false;this.middleware=null;this.deferUpload=false;this.hideButton=false;this.actions=[{icon:"action-delete",color:"color-danger",size:"x-small",background:"gray-lightest",name:"delete",map:["success","failure"],label:{fi:"Poista tiedosto",en:"Delete the file",sv:"Ta bort filen"}},{icon:"navigation-close",color:"primary",size:"x-small",background:"gray-lightest",name:"cancel",map:["inprogress","pending"],label:{fi:"Keskeytä lähetys",en:"Cancel the upload",sv:"Stop överföringen"}}];this.uri=undefined;this.showLinks=false;this.caption=undefined;this.statusLabelDefaults={fi:{inProgress:"Lähetetään {filesUploaded}, yhteensä lähetettävänä {filesTotal}.",inProgressWithErrors:"Lähetetään {filesInProgress}, lähetetty {filesUploaded}, yhteensä lähetettävänä {filesTotal}, {filesWithErrors} epäonnistui",done:"Lähetys valmis, {filesTotal} lisätty onnistuneesti",doneWithErrors:"Lähetys valmis, {filesUploaded} lisätty onnistuneesti, {filesWithErrors} epäonnistui",files:"tiedostoa",file:"tiedosto"},sv:{inProgress:"Laddar upp {filesUploaded} av {filesTotal}",inProgressWithErrors:"Laddar upp {filesInProgress}, {filesUploaded} uppladdad av {filesTotal}, {filesWithErrors} misslyckades",done:"Uppladdningen slutförd, {filesTotal} har lagts till",doneWithErrors:"Uppladdningen slutförd, {filesUploaded} har lagts till, {filesWithErrors} misslyckades",files:"filer",file:"fil"},en:{inProgress:"Uploading {filesUploaded} of {filesTotal}",inProgressWithErrors:"Uploading {filesInProgress}, {filesUploaded} uploaded of {filesTotal}, {filesWithErrors} failed",done:"Upload completed, {filesTotal} added successfully",doneWithErrors:"Upload completed, {filesUploaded} added successfully, {filesWithErrors} failed.",files:"files",file:"file"}};this.statusMessageLabel=c(this.statusLabelDefaults);this.buttonLabelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add an attachment"};this.buttonLabel=c(this.buttonLabelDefaults);this.accessibleButtonLabel=undefined;this.theme="";this.disabled=false;this.identifier=undefined;this.margin="auto";this.required=false;this.alignment="middle";this.hideGroups=false;this.files=new Map;this.valid=!this.required;this.labelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add attachments"};this.label=c(this.labelDefaults);this.descriptionDefaults={en:"You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytestotal} of files at a time, and add up to {maxfiles} attachments at a time each no larger than {maxbytes}.",sv:"Du kan bifoga följande filtyper: {filetypes} - samt de vanligaste videofilerna. Du kan ladda upp {maxbytestotal} av filer åt gången, och lägga till upp till {maxfiles} bilagor åt gången varje inte större än {maxbytes}.",fi:"Voit liittää seuraavat tiedostotyypit: {filetypes} - sekä yleisimmät videotiedostot. Voit lähettää {maxbytestotal} tiedostoa kerrallaan, ja lisätä enintään {maxfiles} liitettä kerrallaan, jokainen enintään {maxbytes} kokoisena."};this.description=c(this.descriptionDefaults);this.fileListEmptyDefaults={fi:"Ei vielä lisättyjä tiedostoja.",sv:"Inga filer har lagts till ännu.",en:"No files added yet."};this.fileListEmpty=c(this.fileListEmptyDefaults);this.error="";this.errorCodes=M;this.name=undefined;this.maxBytes=2e8;this.maxBytesTotal=undefined;this.maxFiles=99;this.allowedExtensions="all";this.allowedMimetypes="";this.multiple=true;this.limitSelection=false;this.hideCancelButton=false;this.value=undefined;this.externalUploadButtonId=undefined;this.captionOnBottom=false;this.showUploadedItemsHeader=false;this.uploadedItemsHeaderLabel={fi:"Ladattu tiedosto",sv:"Lägg till en bilaga",en:"Uploaded file"};this.headerHeadingLevel="h3";this.hideHeader=false;this.emitEvent=false;this.actionButtonTitles={cancel:false,delete:false};this.renameDuplicates=false;this.groups=[{id:this.DefaultGroups.success,label:{fi:"Valmiit tiedostot",sv:"Files success",en:"Files success"}},{id:this.DefaultGroups.failure,label:{fi:"Tiedostot, joissa on virheitä",sv:"Filer med fel",en:"Files with errors"}},{id:this.DefaultGroups.inprogress,label:{fi:"Kesken olevat tiedostot",sv:"Filer inprogress",en:"Files inprogress"}},{id:this.DefaultGroups.pending,label:{en:"Files to upload",sv:"Filer att ladda",fi:"Ladattavat tiedostot"}}]}t.prototype.watchValidHandler=function(t,e){if(t!==e){this.kick()}};t.prototype.componentWillLoad=function(){if(typeof this.statusMessageLabel==="string"){this.internalStatusMessageLabel=p(this.groups)}else{this.internalStatusMessageLabel=this.statusMessageLabel}l(this);this.listenForActionEvents();this.onReady();this.externalUploadButton=document.querySelector("#".concat(this.externalUploadButtonId));this.processedButtonTitles=w(this.actionButtonTitles)};t.prototype.componentWillRender=function(){this.verifyValidity()};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.nativeInput){this.nativeInput.focus(t)}return[2]}))}))};t.prototype.upload=function(){return __awaiter(this,arguments,void 0,(function(t){var e,a,i;if(t===void 0){t=undefined}return __generator(this,(function(d){e=this.validateTotals(),a=e.bytesMaxReached,i=e.fileMaxReached;if(a||i){this.handleExternalUploadButton(a,i);this.kick();return[2]}this.metaData=t;this.nativeInput.click();return[2]}))}))};t.prototype.uploadPending=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.uploadPendingFiles();return[2]}))}))};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:this.kick();return[4,this.setFocus()];case 1:t.sent();return[2]}}))}))};t.prototype.getFiles=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.files||this.files.size===0){return[2,false]}return[2,this.getFilesAsArray()]}))}))};t.prototype.updateValue=function(t,e,a){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.updateValueInMap(t,e,a);return[2]}))}))};t.prototype.focusActionButton=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(a){switch(a.label){case 0:return[4,(e=this.itemRefs.get(t))===null||e===void 0?void 0:e.focusActionButton()];case 1:a.sent();return[2]}}))}))};t.prototype.render=function(){var t=this;var a=this.identifier||this.uploadId;var i=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024);var n=Math.round(this.maxBytes/1024/1024);var l=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());l=l.replace(/{maxbytes}/g,"".concat(n.toString()," MB"));l=l.replace(/{maxbytestotal}/g,"".concat(i.toString()," MB"));l=l.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", "));if(this.externalUploadButton){this.externalUploadButton.accessibleLabel="".concat(this.externalUploadButton.innerText,". ").concat(l)}return e(d,{key:"2cb6006c495f141141399d81c7e6f8e7967d2abf",class:{"duet-m-0":this.margin==="none"}},e("duet-fieldset",{key:"e3febb3aaed53ba1f63d0deaed3984233d081ff9","label-heading-level":this.headerHeadingLevel,"label-hidden":this.hideHeader,label:this.label},e("slot",{key:"0cb5e96677cee13c2cb2748ec95182ba44542e9c",name:"header"}),!this.files.size&&e("duet-empty-state",{key:"0b6ff2849bb502f136c3b4837ccdf19b5b2c1c18",id:this.labelId,part:this.identifier?"".concat(this.identifier,"-empty-state"):"duet-upload-empty-state",icon:"messaging-attachment"},e("duet-paragraph",{key:"69ddeab39e14da3d436467aa935f3695587547fb",margin:"none"},this.fileListEmpty)),!!this.files.size&&e("slot",{key:"df6739a9d4d7c5c02e72e3f430f29d854edf1a99",name:"fileheader"}),!!this.files.size&&e("duet-upload-aria-status",{key:"cbd6241618dbf7ca04c61e1d0725f4dc157e87af",invalid:this.getFilesAsArray().invalid.length,valid:this.getFilesAsArray().valid.length,inprogress:this.filesInProgress.size,total:this.files.size,statusMessageLabel:this.internalStatusMessageLabel}),!!this.files.size&&this.renderUploadedItems(),!!this.files.size&&e("slot",{key:"aacaa46c313c829d4e880bf7c7e1848f0ea189cf",name:"filefooter"}),e("slot",{key:"36551b5a589e7feee6077af241b9a25d297feb28",name:"uploadfooter"}),this.captionOnBottom&&e("duet-caption",{key:"d04226d485cc26a193935fa8e4fb98a462a0a505",margin:"none",size:"small"},e("div",{key:"6b45b8d84658fd393dc9522c5bc33288e39f7159",class:"upload-bottom-caption"},l)),e("slot",{key:"2f2b87ae68a5df22a1fd03e11616249a26be0791",name:"afterfooter"}),!this.hideButton&&e(r,{key:"113e78c43b0be73519c29617ab452a494f567683"},e("duet-spacer",{key:"292f0dbbd87d637d7abf982b8e296b282ae89375",size:"large"}),e("duet-button",{key:"774bc75ffb2f90878794215e7890d592abb7acd5",id:this.buttonId,onClick:this.startUpload,"accessible-controls":a,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel||"".concat(this.buttonLabel,". ").concat(l),"accessible-owns":a,size:"small",variation:"secondary",fixed:true,icon:"action-add-circle",part:this.identifier?"".concat(this.identifier,"-button-upload"):"duet-upload-button-upload"},this.buttonLabel)),(this.fileMaxReached||this.bytesMaxReached||this.filesToUploadExceedsLimit||this.filesToUploadTotalSizeIsAboveMax)&&e(r,{key:"7de2ffb0e3562b05cd46d1eb1d3360fc853cf601"},e("duet-spacer",{key:"fa336882d4bd468f1e9593946f48d73929d26f87",size:"medium"}),e("duet-alert",{key:"d9a8cac2323b3b10d4cb5c22d0ec19c9b2082694",part:this.identifier?"".concat(this.identifier,"-error-notification"):"duet-upload-error-notification"},this.fileMaxReached&&_("duet-upload-301",this.errorCodes),this.bytesMaxReached&&_("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&_("duet-upload-302",this.errorCodes),this.filesToUploadTotalSizeIsAboveMax&&_("duet-upload-203",this.errorCodes))),e("duet-visually-hidden",{key:"71318f80dd7ad1ef345bc1123be62719becdc52d","aria-hidden":"true"},e("input",{key:"a68a3d1d4490e75a2968e47a681f11cea7bc4d9b",ref:function(e){t.nativeInput=e},accept:!this.limitSelection?undefined:"".concat(this.allowedMimetypes,",").concat(this.allowedExtensions),onBlur:this.onBlur,onFocus:this.onFocus,onChange:function(e){return t.onChange(e)},type:"file",class:{"duet-upload":true},disabled:this.disabled,"aria-hidden":"true",required:this.required,name:this.name,id:this.identifier,multiple:this.multiple,tabIndex:-1}))))};t.prototype.makeXHRPostRequest=function(t){var e=this;var a=new XMLHttpRequest;var i=t.get("name");a.upload.addEventListener("progress",(function(t){e.updateProgress(t,i)}));a.upload.addEventListener("load",(function(){e.transferComplete(i)}));a.upload.addEventListener("error",(function(){e.transferFailed(i)}));a.upload.addEventListener("abort",(function(){e.transferCanceled(i)}));var d={payload:{data:t,name:i},options:{type:"POST",uri:this.uri,xhr:a,argument:null,headers:undefined},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){d=this.middleware(d)}return q(d)};t.prototype.makeXHRDeleteRequest=function(t){var e=t.uid,a=t.item;var i=new XMLHttpRequest;var d={"x-fileuid":e,"x-filename":a.name};var n={payload:{data:null,name:name},options:{type:"DELETE",xhr:i,uri:this.uri,argument:"?key=".concat(e,"&name=").concat(a.name),headers:d},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){n=this.middleware(n)}return q(n)};t.prototype.escapeSpecialCharacters=function(t){return(t+"").replace(/[\\"'(){}\[\]*?$^+]/g,"\\$&").replace(/\u0000/g,"\\0")};t.prototype.getRenamedFileName=function(t,e){var a=new RegExp("".concat(this.escapeSpecialCharacters(t)," \\(\\d+\\).").concat(e));var i=Array.from(this.files.entries()).map((function(t){var e=t[0],a=t[1];return e})).filter((function(i){return a.test(i)||i==="".concat(t,".").concat(e)})).sort((function(t,e){return t.split(".").slice(0,-1).join(".")>e.split(".").slice(0,-1).join(".")?1:-1})).pop().split(".").slice(0,-1).join(".");if(i===t){return"".concat(t," (1).").concat(e)}var d=parseInt(i.split("(").pop().slice(0,-1));return"".concat(t," (").concat(d+1,").").concat(e)};t.prototype.renameFiles=function(t){var e=this;return t.map((function(t){if(e.files.get(t.name)){var a=t.name.split(".");var i=a.pop();var d=a.join(".");var n=e.getRenamedFileName(d,i);return new File([t],n,{type:t.type,lastModified:t.lastModified})}else{return t}}))};t.prototype.onChange=function(t){return __awaiter(this,void 0,void 0,(function(){var e,a,i,d,n,r,l,o,s,u,h,f;return __generator(this,(function(b){switch(b.label){case 0:a=Array.from((e=this.nativeInput)===null||e===void 0?void 0:e.files);this.filesToUploadExceedsLimit=false;if(N(this.files.size,a.length,this.maxFiles)){this.filesToUploadExceedsLimit=true;this.kick();return[2]}this.filesToUploadTotalSizeIsAboveMax=false;if(Y(this.files,a,this.maxBytesTotal)){this.filesToUploadTotalSizeIsAboveMax=true;this.kick();return[2]}if(!a)return[3,6];if(this.renameDuplicates){a=this.renameFiles(a)}i=0,d=a;b.label=1;case 1:if(!(i<d.length))return[3,6];n=d[i];r=O(n,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),l=r.valid,o=r.errorMessage,s=r.errorType,u=r.errorSystem;h=this.genHashName();f={uid:h,item:n,size:n.size,meta:this.metaData,uploaded:false,valid:l,error:{type:l?undefined:s,message:l?undefined:o,system_message:l?undefined:u},progress:0,deleted:false,xhr:false,url:false};this.files.set(n.name,f);if(!(l&&!this.external))return[3,3];return[4,this.uploadFile(f)];case 2:b.sent();return[3,4];case 3:if(l&&this.external){this.updateValueInMap(f.item.name,"pending",true,false);this.updateValueInMap(f.item.name,"group","pending",true)}else if(!l){this.updateValueInMap(n.name,"valid",false,true)}b.label=4;case 4:this.kick();b.label=5;case 5:i++;return[3,1];case 6:this.resetFormFields();this.metaData=undefined;this.duetChange.emit({originalEvent:t,data:{files:this.files},component:"duet-upload"});return[2]}}))}))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{valid:["watchValidHandler"]}},enumerable:false,configurable:true});return t}());J.style=H}}}));
4
+ */System.register(["./p-43d6b171.system.js","./p-cddad487.system.js","./p-41982d26.system.js","./p-752fa0fc.system.js","./p-1cc2eb98.system.js","./p-64959c1d.system.js","./p-59777da7.system.js","./p-e6b5a1c7.system.js","./p-98636086.system.js","./p-694e5a97.system.js"],(function(t){"use strict";var e,a,i,d,n,r,l,o,s,u,h,f,b,c,p,m,g,v,y,x,w,k,_;return{setters:[function(t){e=t.h;a=t.r;i=t.c;d=t.H;n=t.g;r=t.F},function(t){l=t.i},function(t){o=t.f;s=t.d},function(t){u=t.i},function(t){h=t.a;f=t.c;b=t.d;c=t.g;p=t.s},function(t){m=t.p;g=t.s},function(t){v=t.b;y=t.a},function(t){x=t.c},function(t){w=t.p},function(t){k=t.g;_=t.a}],execute:function(){var T=function(t,a){var i=t.data,d=t.groupId,n=t.alignment;var r="duet-editable-table duet-editable-table-content-".concat(d);if(typeof i==="string"){return e("td",{innerHTML:i,class:r,part:"".concat(d,"content"),style:{verticalAlign:n}})}else{return e("td",{class:r,part:"".concat(d,"content"),style:{verticalAlign:n}},i)}};var j=".sc-duet-editable-table-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-editable-table-actions-menu.sc-duet-editable-table{position:relative;padding:0 !important;margin:0}.duet-editable-table-actions-menu-button.sc-duet-editable-table{position:relative;right:-16px;float:right;padding:0}.duet-editable-table-actions-menu-icon.sc-duet-editable-table .duet-icon.sc-duet-editable-table{max-width:16px;max-height:16px}.duet-editable-table-row.duet-table-action-row.sc-duet-editable-table .duet-text-right.sc-duet-editable-table{text-align:right}.duet-editable-table-header.sc-duet-editable-table tr.sc-duet-editable-table .duet-editable-table-header-hidden.sc-duet-editable-table{padding:0 !important;font-size:0;border-bottom:0}";var E=j;var S=t("duet_editable_table",function(){function t(t){var e=this;a(this,t);this.duetTableToggle=i(this,"duetTableToggle",7);this.duetMenuClick=i(this,"duetMenuClick",7);this.hasHeadSlotFirst=false;this.hasHeadSlotLast=false;this.hasFootSlot=false;this.sortableDefaultLabel={fi:"Järjestä",en:"Click to sort",sv:"Klicka för att sortera"};this.actionColumnLabel={en:"Actions for rows",fi:"Toiminnot rivillä",sv:"Åtgärder för rader"};this.toggleColumn=function(t,a){a.preventDefault();var i=t.sort_order,d=t.direction,n=t.index,r=t.key;e.duetTableToggle.emit({sort_order:i,index:n,direction:d,key:r,component:"duet-editable-table",originalEvent:a})};this.handleKeyDown=function(t,a){if(u(a)){e.toggleColumn(t,a)}};this.language=h();this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.actions=undefined;this.columns=undefined;this.rows=undefined;this.sortable=false;this.groupId="";this.theme="";this.accessibleRole=undefined;this.hideHeadVisually=false}t.prototype.componentWillLoad=function(){l(this);this.hasHeadSlotFirst=!!this.element.querySelector("[slot='thead-first']");this.hasHeadSlotLast=!!this.element.querySelector("[slot='thead-last']");this.hasFootSlot=!!this.element.querySelector("[slot='tfoot']")};t.prototype.connectedCallback=function(){f(this)};t.prototype.disconnectedCallback=function(){b(this)};t.prototype.createLabel=function(t){var a=this;var i=t.sort_order,d=t.direction,n=t.index,r=t.label;var l=c(r);if(!this.sortable){return l}var o=function(){if(!!i&&d===1){return"action-arrow-down-small"}else if(!!i&&d===-1){return"action-arrow-up-small"}return"action-subtract-small"};return e("span",{class:"duet-table-label","data-index":n},e("duet-button",{size:"small",icon:o(),"icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":true,onClick:function(e){return a.toggleColumn(t,e)},onKeyDown:function(e){return a.handleKeyDown(t,e)}},l))};t.prototype.getSortedColumns=function(){return __spreadArray([],this.columns,true).sort(o(["index"]))};t.prototype.getRowSortOrder=function(){var t=__spreadArray([],this.columns,true).sort(o(["sort_order"]));return t.filter((function(t){return t.sort_order})).map((function(t){return t.direction===-1?"-".concat(t.key):t.key}))};t.prototype.renderTableHeader=function(){var t=this;if(!this.columns){return}var a=this.getSortedColumns();return e("tr",{class:{"duet-table-action-header":!!this.actions}},a.map((function(a){if(a.display!==false){var i=t.createLabel(a);return i!==""?e("th",{scope:"col"},i):e("td",null)}})),this.actions&&e("th",{scope:"col",class:"duet-table-action-header-heading"},this.actions&&e("duet-visually-hidden",null,this.actionColumnLabel[this.language])))};t.prototype.renderActions=function(t,a){var i=this;if(!this.actions){return}return e("td",{class:"duet-text-right"},this.actions.map((function(d){return e("duet-action-button",{actionMeta:Object.assign({},(t===null||t===void 0?void 0:t.meta)||{},{index:a}),actionId:(t===null||t===void 0?void 0:t.uid)||(t===null||t===void 0?void 0:t.id)||null,actionName:d.name,theme:i.theme,iconName:d.icon,iconColor:d.color,iconSize:d.size,background:d.background,"accessible-label":"".concat(t.actionDescription||""," ").concat(c(d.label)," ")})})))};t.prototype.renderTableBody=function(){var t=this;var a=this.getSortedColumns();var i=this.getRowSortOrder();var d=__spreadArray([],this.rows,true).sort(o(i));return d.map((function(i,d){var n;return e("tr",{class:(n={"duet-table-action-row":!!t.actions,"duet-editable-table-row":true},n["duet-editable-table-row-".concat(t.groupId)]=true,n),"data-meta":JSON.stringify(i.meta)},a.map((function(a){var d=i[a.key]?i[a.key]:i.item;if(a.display!==false){return e(T,{data:d,groupId:t.groupId})}})),t.actions&&t.renderActions(i,d))}))};t.prototype.render=function(){var t;return e(d,{class:(t={},t["duet-editable-table-".concat(this.variation)]=true,t["duet-editable-table"]=true,t["duet-editable-table-".concat(this.theme)]=true,t["duet-editable-table-scrollable"]=this.breakpoint==="none-scrollable",t["duet-editable-table-sortable"]=this.sortable,t["duet-editable-table-actions"]=!!this.actions,t["duet-m-0"]=this.margin==="none",t["duet-theme-turva"]=this.theme==="turva",t)},e("duet-table",{class:"duet-editable-table-table",sticky:this.sticky,stickyDistance:this.stickyDistance,margin:this.margin,theme:this.theme,variation:this.variation,breakpoint:this.breakpoint,"hide-head-visually":this.hideHeadVisually},e("table",{role:this.accessibleRole},e("caption",null,e("slot",{name:"tcaption"})),e("thead",null,this.hasHeadSlotFirst&&e("tr",null,e("td",{class:"duet-editable-table-actions-menu",colSpan:99},e("slot",{name:"thead-first"}))),this.renderTableHeader(),this.hasHeadSlotLast&&e("tr",null,e("td",{class:"duet-editable-table-actions-menu",colSpan:99},e("slot",{name:"thead-last"})))),e("tbody",null,this.renderTableBody()),this.hasFootSlot&&e("tfoot",null,e("tr",null,e("td",{class:"duet-editable-table-footer-menu",colSpan:99},e("slot",{name:"tfoot"})))))))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());S.style=E;var L='duet-table{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;font-variant-numeric:tabular-nums}duet-table table,duet-table thead,duet-table tbody,duet-table tfoot,duet-table th,duet-table td,duet-table tr{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}duet-table.duet-m-0{margin:0 !important}duet-table table{width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;text-align:left;border-spacing:0;border-collapse:separate}duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead,duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead *{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}duet-table.duet-theme-turva table{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}duet-table td{-webkit-hyphens:auto;hyphens:auto;color:rgb(8, 42, 77)}duet-table.duet-theme-turva td{color:rgb(23, 28, 58)}duet-table th{font-weight:600;line-height:1.25;color:rgb(98, 121, 138);text-align:left}duet-table.duet-theme-turva th{color:rgb(143, 147, 158)}duet-table tbody th{font-weight:600;color:rgb(8, 42, 77)}duet-table.duet-theme-turva tbody th{color:rgb(23, 28, 58)}duet-table .duet-table-action-row td:last-child{justify-self:end;padding-right:20px !important;white-space:nowrap}duet-table span.duet-table-cell-heading{display:none}.duet-table-flattened table,.duet-table-flattened thead,.duet-table-flattened tbody,.duet-table-flattened tfoot,.duet-table-flattened th,.duet-table-flattened td,.duet-table-flattened tr{display:block}.duet-table-flattened thead tr{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}.duet-table-flattened td{line-height:1.25}.duet-table-flattened td:not(:last-child){margin-bottom:16px !important}.duet-table-flattened td span.duet-table-cell-heading{margin-bottom:4px !important;display:block;font-size:1rem;font-weight:600;color:rgb(8, 42, 77)}.duet-table-flattened.duet-theme-turva td span.duet-table-cell-heading{color:rgb(23, 28, 58)}.duet-table-flattened tbody td,.duet-table-flattened tbody th,.duet-table-flattened tfoot td{padding:0 !important;text-align:left !important}.duet-table-flattened tbody th{font-weight:600;line-height:1.25;color:rgb(98, 121, 138);text-align:left}.duet-table-sticky thead th,.duet-table-sticky thead td{position:sticky;top:0;background:rgb(255, 255, 255)}.duet-table-striped td,.duet-table-striped th{padding:20px !important}@media (max-width: 35.9375em){.duet-table-striped td,.duet-table-striped th{padding:20px 12px !important}}.duet-table-striped tbody th{background:rgb(255, 255, 255)}.duet-table-striped.duet-table-sticky thead th,.duet-table-striped.duet-table-sticky thead td{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-table-sticky.duet-theme-turva thead th,.duet-table-striped.duet-table-sticky.duet-theme-turva thead td{border-bottom-color:rgb(222, 224, 228)}.duet-table-striped tbody:not(:first-of-type) th{padding-top:40px !important}.duet-table-striped tbody:only-of-type tr:nth-of-type(odd){background:rgba(4, 81, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(4, 81, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tfoot td{border-top:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-theme-turva tfoot td{border-top-color:rgb(222, 224, 228)}.duet-table-striped.duet-table-flattened tbody:not(:first-of-type) th{padding-top:20px !important}.duet-table-striped.duet-table-flattened tr{padding:20px !important}.duet-table-striped.duet-table-flattened tfoot td{border-top:0}.duet-table-striped.duet-table-flattened tfoot tr{border-top:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:rgb(222, 224, 228)}.duet-table-fixed th,.duet-table-minimal th,.duet-table-plain th,.duet-table-fixed thead td,.duet-table-minimal thead td,.duet-table-plain thead td{padding:16px !important;border-bottom:1px solid rgb(98, 121, 138)}.duet-table-fixed th:first-child,.duet-table-minimal th:first-child,.duet-table-plain th:first-child,.duet-table-fixed thead td:first-child,.duet-table-minimal thead td:first-child,.duet-table-plain thead td:first-child{padding-left:0 !important}.duet-table-fixed th:last-child,.duet-table-minimal th:last-child,.duet-table-plain th:last-child,.duet-table-fixed thead td:last-child,.duet-table-minimal thead td:last-child,.duet-table-plain thead td:last-child{padding-right:0 !important}.duet-theme-turva.duet-table-fixed th,.duet-theme-turva.duet-table-minimal th,.duet-theme-turva.duet-table-plain th,.duet-theme-turva.duet-table-fixed thead td,.duet-theme-turva.duet-table-minimal thead td,.duet-theme-turva.duet-table-plain thead td{border-bottom-color:rgb(113, 118, 132)}.duet-table-fixed tbody th,.duet-table-minimal tbody th,.duet-table-plain tbody th{padding-top:40px !important;border-bottom-color:rgb(212, 223, 229)}.duet-theme-turva.duet-table-fixed tbody th,.duet-theme-turva.duet-table-minimal tbody th,.duet-theme-turva.duet-table-plain tbody th{border-bottom-color:rgb(222, 224, 228)}.duet-table-fixed td,.duet-table-minimal td,.duet-table-plain td{padding:16px !important}.duet-table-fixed td:first-child,.duet-table-minimal td:first-child,.duet-table-plain td:first-child{padding-left:0 !important}.duet-table-fixed td:last-child,.duet-table-minimal td:last-child,.duet-table-plain td:last-child{padding-right:0 !important}.duet-table-fixed tbody td,.duet-table-minimal tbody td,.duet-table-plain tbody td{border-bottom:1px solid rgb(212, 223, 229)}.duet-theme-turva.duet-table-fixed tbody td,.duet-theme-turva.duet-table-minimal tbody td,.duet-theme-turva.duet-table-plain tbody td{border-bottom-color:rgb(222, 224, 228)}.duet-table-flattened.duet-table-fixed tbody:first-of-type th,.duet-table-flattened.duet-table-minimal tbody:first-of-type th,.duet-table-flattened.duet-table-plain tbody:first-of-type th{padding-top:0 !important}.duet-table-flattened.duet-table-fixed td,.duet-table-flattened.duet-table-minimal td,.duet-table-flattened.duet-table-plain td,.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{border-bottom:0}.duet-table-flattened.duet-table-fixed tr,.duet-table-flattened.duet-table-minimal tr,.duet-table-flattened.duet-table-plain tr{padding:20px 0 !important}.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{padding-top:20px !important}.duet-table-flattened.duet-table-fixed tfoot td,.duet-table-flattened.duet-table-minimal tfoot td,.duet-table-flattened.duet-table-plain tfoot td{margin-bottom:4px !important}.duet-table-flattened.duet-table-fixed tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-minimal tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-plain tbody:not(:only-of-type) tr:first-child{border-bottom:0}.duet-table-plain.duet-table-flattened tbody tr{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:rgb(222, 224, 228)}.duet-table-minimal tbody tr,.duet-table-minimal tbody tr td{vertical-align:top;border-bottom:0 none}.duet-table-minimal tbody tr:last-of-type,.duet-table-minimal tbody tr:last-of-type td{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-minimal.duet-table-flattened tbody tr,.duet-table-minimal.duet-table-flattened tbody tr td{border-bottom:0 none}.duet-table-minimal.duet-table-flattened tbody tr td[data-heading]::before{display:none}.duet-table-minimal.duet-table-flattened tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-fixed table{table-layout:fixed}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td,.duet-table-fixed tbody tr td:first-child{padding:4px !important;vertical-align:text-bottom;border-bottom:0 none}.duet-table-fixed thead{display:none}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td{border-bottom:0 none}.duet-table-fixed:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-fixed:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-scrollable{position:relative;width:100%;overflow-x:auto;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0)), linear-gradient(-90deg, #fff 0%, rgba(255, 255, 255, 0)) 100% 0, radial-gradient(farthest-side at 0% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)) 100% 0%;background-repeat:no-repeat;background-attachment:local, local, scroll, scroll;background-size:100px 100%, 100px 100%, 12px 100%, 12px 100%}.duet-table-selected-column{background:rgba(0, 119, 179, 0.08)}.duet-theme-turva .duet-table-selected-column{background:rgba(113, 118, 132, 0.08)}.duet-table-sortable tbody tr td:first-child,.duet-table-sortable thead tr th:first-child{padding:20px}.duet-table-sortable:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-sortable:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-actions table{table-layout:auto}.duet-table-actions thead th:last-child{width:1px;white-space:nowrap}.duet-editable-table-table.duet-table-flattened tr{display:grid;grid-template-columns:repeat(2, 1fr);grid-auto-rows:auto;gap:10px}.duet-editable-table-table.duet-table-flattened tr.duet-table-action-row td:last-child::before{padding:0;content:""}.duet-editable-table-table.duet-table-flattened td{grid-column:1/2}.duet-editable-table-table.duet-table-flattened td:first-child{grid-row:1;grid-column:1}.duet-editable-table-table.duet-table-flattened td:last-child{grid-row:1;grid-column:2}duet-table.duet-theme-turva2.duet-theme-turva td{color:#172a3b}duet-table.duet-theme-turva2.duet-theme-turva tbody th{color:#172a3b}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva.duet-table-sticky thead th,duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva.duet-table-sticky thead td{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 42, 59, 0.04)}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 42, 59, 0.04)}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tfoot td{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody th,duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody td{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody td{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-fixed.duet-theme-turva:not(.duet-table-flattened) tfoot{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-sortable.duet-theme-turva:not(.duet-table-flattened) tfoot{border-top-color:#fbe1d1}';var z=L;var A={none:0,"with-links":parseFloat(m)*16,"without-links":parseFloat(g)*16};var F=t("duet_table",function(){function t(t){var e=this;a(this,t);this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)";this.handleMediaQueryChange=function(t){e.matchesBreakpoint=v.includes(e.breakpoint)?!t.matches:t.matches};this.matchesBreakpoint=true;this.language=h();this.theme=undefined;this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.hideHeadVisually=false}t.prototype.watchLanguageStateHandler=function(t,e){var a=this;if(t!==e){setTimeout((function(){return a.copyHeadingsToCells()}),50)}};t.prototype.connectedCallback=function(){var t=this;var e=this.breakpoint==="none"||this.breakpoint==="none-scrollable"?"all":y[this.breakpoint];this.mq=matchMedia(e);this.mq.addEventListener("change",s(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);this.observer=new MutationObserver((function(){return s(t.copyHeadingsToCells(),50)}));this.observer.observe(this.element,{childList:true,subtree:true})};t.prototype.componentWillLoad=function(){l(this);this.copyHeadingsToCells();if(this.sticky&&this.breakpoint==="none-scrollable"){console.warn('[DUET WARNING]: sticky and breakpoint="none-scrollable" are incompatible. Scrollable takes precedence')}if(this.sticky){var t=A[this.stickyDistance];var e=this.element.querySelectorAll(this.headingSelector);e.forEach((function(e){return e.style.top="".concat(t,"px")}))}};t.prototype.componentDidLoad=function(){this.observer?this.observer.takeRecords():null;f(this)};t.prototype.disconnectedCallback=function(){this.observer.disconnect();this.observer=null;this.mq.removeListener(this.handleMediaQueryChange);this.mq=null;this.matchesBreakpoint=true;b(this)};t.prototype.copyHeadingsToCells=function(){var t=this.element.querySelectorAll(this.headingSelector);var e=this.element.querySelectorAll("tbody tr");var a=Array.from(t).map((function(t){return t.textContent.trim()}));e.forEach((function(t){t.querySelectorAll("td").forEach((function(t,e){if(a[e]){var i=t.querySelector(".duet-table-cell-heading");if(!i||i.textContent!==a[e]){i===null||i===void 0?void 0:i.remove();var d=document.createElement("span");d.textContent=a[e];d.classList.add("duet-table-cell-heading");d.setAttribute("aria-hidden","true");d.inert=true;t.prepend(d)}}}))}))};t.prototype.render=function(){var t;return e(d,{key:"a4870b0cafe43e5aa7e5f2b018ec4c36a7d263a5",class:(t={},t["duet-table-".concat(this.variation)]=true,t["duet-table-flattened"]=!this.matchesBreakpoint,t["duet-table-sticky"]=this.matchesBreakpoint&&this.sticky,t["duet-table-scrollable"]=this.breakpoint==="none-scrollable",t["duet-m-0"]=this.margin==="none",t["duet-theme-turva"]=this.theme==="turva",t["duet-table-hide-head-visually"]=this.hideHeadVisually,t)},e("slot",{key:"fdf91dd956d54023aa8600a6992dfffddb242f21"}))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{language:["watchLanguageStateHandler"]}},enumerable:false,configurable:true});return t}());F.style=z;var M=[{type:"default",system_message:"unknown error",message:{fi:"Tapahtui tuntematon virhe, ole hyvä ja yritä uudelleen.",sv:"Ett okänt fel uppstod, försök igen.",en:"An unknown error occured, please try again."}},{type:"400",system_message:"Bad Request: The server could not understand the request due to invalid syntax.",message:{fi:"Tiedostoa ei hyväksytty.",sv:"Servern avvisade din fil.",en:"The server rejected your file."}},{type:"401",system_message:"Not Authenticated: The client must authenticate itself to get the requested response...",message:{fi:"Vain kirjautunut käyttäjä voi lähettää tiedostoja.",sv:"Du måste vara inloggad för att ladda upp filer.",en:"You need to be logged in to upload files."}},{type:"403",system_message:"No Access: The client does not have access rights to the content.",message:{fi:"Ei oikeuksia lähettää tiedostoja.",sv:"Du har inte rätt åtkomsträttigheter för att ladda upp filer.",en:"You do not have the correct access rights to upload files."}},{type:"413",system_message:"Payload too large",message:{fi:"Tiedosto oli liian vastaanotettavaksi.",sv:"Filen var för stor för servern att hantera.",en:"The file was to large for the server to handle."}},{type:"415",system_message:"Unsupported media type",message:{fi:"Tiedoston tyyppi oli väärä.",sv:"Servern avvisade filen eftersom den hade fel typ.",en:"The server rejected the file because it had the wrong type."}},{type:"429",system_message:"Too many request from same address",message:{fi:"Liian monta yritystä, ole hyvä ja yritä myöhemmin uudelleen.",sv:"Servern har fått många förfrågningar från dig, försök igen senare.",en:"The server has received to many request from you, please try again later."}},{type:"500",system_message:"Internal Server Error",message:{fi:"Palvelin ilmoitti tuntemattomasta virheestä ja lataus epäonnistui.",sv:"Servern rapporterade ett okänt fel och uppladdningen misslyckades.",en:"The server reported an unknown error and the upload failed."}},{type:"duet-upload-100",system_message:"File extension not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den type.",en:"You cannot upload files with that extension."}},{type:"duet-upload-001",system_message:"File transfer failed",message:{fi:"Tiedoston lähetys keskeytyi, ole hyvä ja yritä uudelleen.",sv:"Din anslutning till servern avbröts, försök igen.",en:"Your connection to the server was interrupted, try again."}},{type:"duet-upload-101",system_message:"File mimetype not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den typ.",en:"You cannot upload files of that type."}},{type:"duet-upload-201",system_message:"File is too large",message:{fi:"Tiedosto on liian iso.",sv:"Filen är större än tillåtet.",en:"The file is larger than permitted."}},{type:"duet-upload-202",system_message:"The combined size of all files is too large",message:{fi:"Tiedostojen yhteenlaskettu koko on liian iso.",sv:"Du har nått den maximala kombinerade filstorleken.",en:"You have reached the maximum combined filesize."}},{type:"duet-upload-203",system_message:"Files to upload exceed total byte size limit",message:{fi:"Yritit lisätä tiedostoja, jotka ylittäisivät suurimman sallitun yhteenlasketun koon.",sv:"Du försökte lägga till filer som skulle överskrida den maximala kombinerade storleken.",en:"You tried to add files that would exceed the maximum combined size."}},{type:"duet-upload-301",system_message:"The maximum file limit has been reached",message:{fi:"Liitteiden maksimimäärä saavutettu.",sv:"Maximalt antal bilagor har uppnåtts.",en:"Maximum number of attachments reached."}},{type:"duet-upload-302",system_message:"Files to upload exceeds limits",message:{fi:"Et voi lähettää enempää kuin enimmäismäärän liitteitä.",sv:"Du kan inte ladda upp fler än det maximala antalet bilagor.",en:"You can't upload more than maximum number of attachments."}}];var U={fi:"Liiteluettelo",sv:"Lista över bilagor",en:"Attachments list"};var D=function(t){var a=t.label,i=t.categoryLabel;return e("div",{class:"items-header",tabindex:"-1","aria-label":c(U)},i&&e("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},c(i)),e("duet-heading",{class:{"filename-header":true,"no-category":!i},border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},c(a)))};var C=function(t,e){if(!e){return true}var a=t.split(".");var i=e.split(",");var d=a[a.length-1];return i.includes(d)};var P=function(t,e){if(!e||!t){return true}var a=e.split(",");var i=false;a.forEach((function(e){var a=e.split("/");var d=t.split("/");if(a[0]===d[0]&&(a[1]===d[1]||a[1]==="*")){i=true}}));return i};var I=function(t,e){if(!e||!t){return true}return e>=t};var O=function(t,e,a){var i=e.allowedMimetypes,d=e.allowedExtensions,n=e.maxBytes;var r=false;var l=k("default",a);if(t){var o=t.name,s=t.type,u=t.size;var h=P(s,i);var f=d==="all"||d===""||d===" "||d===undefined?true:C(o.toLowerCase(),d);var b=I(u,n);if(!h){l=k("duet-upload-101",a)}if(!f){l=k("duet-upload-100",a)}if(!b){l=k("duet-upload-201",a)}r=h&&f&&b}else{r=false}return{valid:r,errorMessage:r?undefined:c(l.message),errorSystem:r?undefined:l.system_message,errorType:r?undefined:l.type}};var W=function(t,e){var a=0;if(e){t.forEach((function(t){if(t.valid&&t.size){a+=t.size}}));if(a>=e){return true}}return false};var R=function(t,e){var a=0;if(e){t.forEach((function(t){if(t.valid){a++}}));if(a>=e){return true}}return false};var N=function(t,e,a){if(t+e>a){return true}return false};var Y=function(t,e,a){var i=0;if(a){t.forEach((function(t){if(t.valid&&t.size){i+=t.size}}));e.forEach((function(t){if(t.size){i+=t.size}}));if(i>=a){return true}}return false};var q=function(t){var e=t.payload,a=t.options,i=t.onFailure,d=t.onSuccess,n=t.onProgress;var r=a.type,l=r===void 0?"POST":r,o=a.xhr,s=a.uri,u=a.argument,h=u===void 0?null:u,f=a.headers,b=f===void 0?null:f;o.open(l,"".concat(s).concat(h||""),true);var c=e.data,p=e.name;if(b){Object.keys(b).forEach((function(t){o.setRequestHeader(t,b[t])}))}if(l==="POST"){o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE&&o.status>=200&&o.status<300){d(o,p,o.status)}if(o.readyState===XMLHttpRequest.DONE&&o.status>=300&&o.status<999){i(o,p,o.status)}};n(p)}o.send(c);return o};var B="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}::slotted([slot=uploadfooter]){margin-top:20px}.duet-upload{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}duet-paragraph::part(duet-paragraph){word-break:break-word}duet-editable-table tfoot{display:none}.upload-bottom-caption{margin-top:12px;margin-bottom:16px;line-height:1.4rem}.items-header{display:none;flex-direction:row;margin-bottom:0}@media (min-width: 36em){.items-header{display:flex}}.items-header:not(:last-child),.items-header:not(:first-child){margin-top:12px}.items-header .category-header{width:35%}.items-header .filename-header{width:65%}.items-header .filename-header.no-category{width:100%}.upload-item-row{display:flex;flex-direction:column;gap:16px;align-content:center;align-items:center;padding:16px 0 16px 0;border-bottom:1px solid rgb(212, 223, 229)}@media (min-width: 36em){.upload-item-row{flex-direction:row;gap:10px}}.upload-item-row .item-categories{width:100%}@media (min-width: 36em){.upload-item-row .item-categories{width:35%}}.upload-item-row .item-name{position:relative;bottom:2px;width:100%;text-align:left}@media (min-width: 36em){.upload-item-row .item-name{width:50%}.upload-item-row .item-name.no-category{width:85%}}.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:block}@media (min-width: 36em){.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:none}}.upload-item-row .item-actions{width:100%;margin-left:-8px;text-align:left}@media (min-width: 36em){.upload-item-row .item-actions{width:15%;padding-top:0;margin-left:auto;text-align:right}}.upload-item-row .duet-upload-item-name duet-icon{position:relative;top:4px}.upload-item-row .duet-upload-item-name duet-progress{display:block;margin-top:16px}";var H=B;var J=t("duet_upload",function(){function t(t){var d=this;a(this,t);this.duetChange=i(this,"duetChange",3);this.duetBlur=i(this,"duetBlur",7);this.duetFocus=i(this,"duetFocus",7);this.duetReady=i(this,"duetReady",7);this.duetDone=i(this,"duetDone",3);this.duetState=i(this,"duetState",3);this.duetDelete=i(this,"duetDelete",3);this.duetCancel=i(this,"duetCancel",3);this.duetProgress=i(this,"duetProgress",3);this.duetUpload=i(this,"duetUpload",3);this.linkClick=i(this,"linkClick",3);this.buttonId=x("DuetButton");this.labelId=x("DuetLabel");this.uploadId=x("DuetUpload");this.filesInProgress=new Map;this.fileMaxReached=false;this.bytesMaxReached=false;this.filesToUploadExceedsLimit=false;this.filesToUploadTotalSizeIsAboveMax=false;this.internalStatusMessageLabel=undefined;this.itemRefs=new Map;this.DefaultGroups={inprogress:"inprogress",success:"success",pending:"pending",failure:"failure"};this.kick=s((function(){d.tick=Date.now()}),30);this.categoryLabel={en:"Category",sv:"Filtyp",fi:"Tiedostotyyppi"};this.listenForActionEvents=function(){d.element.addEventListener("duetActionEvent",(function(t){var e=t.detail;var a=e.action,i=e.id,n=e.originalEvent;switch(a){case"delete":d.onDelete(i,n);break;case"cancel":d.onCancel(i,n);break}}))};this.verifyValidity=function(){var t=d.getFilesAsArray(),e=t.invalid,a=t.valid;var i=d.valid;d.valid=e.length===0&&a.length!==0;if(d.valid!==i){d.duetState.emit({originalEvent:undefined,data:{valid:d.valid,from:"componentWillRender"},component:"duet-upload"})}};this.getGroupFromItemData=function(t){if(t.valid&&t.progress===100){return d.DefaultGroups.success}else if(t.progress>0&&t.progress!==100){return d.DefaultGroups.inprogress}else if(!t.valid){return d.DefaultGroups.failure}else if(t.pending){return d.DefaultGroups.pending}else if(t.group){return t.group}else{return"none"}};this.mapFilesToUploadItems=function(t,a,i,n){if(a===d.DefaultGroups.success){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"success",data:t,showLinks:d.showLinks,linkClickEvent:d.emitEvent?d.linkClick:undefined,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(a===d.DefaultGroups.inprogress){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"inprogress",data:t,showLinks:d.showLinks,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(a===d.DefaultGroups.pending){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"pending",data:t,showLinks:d.showLinks,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(a===d.DefaultGroups.failure){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"failure",data:t,showLinks:d.showLinks,errorCodes:d.errorCodes,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(t.group){return t.html}else{return"none"}};this.genHashName=function(){return Date.now().toString(36)+Math.random()};this.updateValueInMap=function(t,e,a,i){if(i===void 0){i=true}try{var n=d.files.get(t);n[e]=a;d.files.set(t,n);if(d.external&&e!=="url"){d.trackProgress(t,e==="uploaded")}}catch(t){}if(i){d.kick()}};this.updateProgress=function(t,e){var a=function(a){d.updateValueInMap(e,"progress",a);d.onProgress(e,a,t)};if(t.lengthComputable){var i=t.loaded/t.total*100;a(i)}else{console.log("cant read progress")}};this.trackProgress=function(t,e){if(e===void 0){e=false}if(e){d.filesInProgress.delete(t)}else{d.filesInProgress.set(t,"inprogress")}if(d.filesInProgress.size===0){d.onDone()}};this.getFilesAsArray=function(){var t=[];var e=[];d.files.forEach((function(a){if(a.valid&&!a.deleted){t.push(a)}else if(!a.valid&&!a.deleted){e.push(a)}}));return{valid:t,invalid:e}};this.resetFormFields=function(){d.nativeInput.value=""};this.startUpload=function(t){var e=[];for(var a=1;a<arguments.length;a++){e[a-1]=arguments[a]}return __awaiter(d,__spreadArray([t],e,true),void 0,(function(t,e){var a,i,d;if(e===void 0){e=undefined}return __generator(this,(function(n){a=this.validateTotals(),i=a.bytesMaxReached,d=a.fileMaxReached;if(i||d){this.kick();return[2]}this.metaData=e;this.nativeInput.click();this.onUpload(t,e);t.stopPropagation();t.preventDefault();return[2]}))}))};this.transferComplete=function(t){d.updateValueInMap(t,"progress",100,false);d.trackProgress(t,true)};this.transferDone=function(t,e,a){d.updateValueInMap(e,"status",a,false);d.updateValueInMap(e,"uploaded",true,false);try{var i=JSON.parse(t.response);d.updateValueInMap(e,"url",i.url)}catch(t){d.updateValueInMap(e,"url",null);console.error("Server did not respond with expected response {url: string}")}return};this.transferDoneWithFailure=function(t,e,a){try{var i=JSON.parse(t.response).error;d.updateValueInMap(e,"error",{message:i.message,type:i.type},false)}catch(t){console.error("Server did not respond with expected response error:{message: string, type: int}");d.updateValueInMap(e,"error",{type:a},false)}d.updateValueInMap(e,"valid",false,true)};this.transferFailed=function(t){d.updateValueInMap(t,"error",_("duet-upload-001",d.errorCodes))};this.transferCanceled=function(t){d.files.delete(t);d.validateTotals(t);d.kick()};this.validateTotals=function(t){var e=W(d.files,d.maxBytesTotal);var a=R(d.files,d.maxFiles);if(e&&t){d.updateValueInMap(t,"error",_("duet-upload-202",d.errorCodes),false)}if(a&&t){d.updateValueInMap(t,"error",_("duet-upload-301",d.errorCodes),false)}d.bytesMaxReached=e;d.fileMaxReached=a;return{bytesMaxReached:e,fileMaxReached:a}};this.uploadFile=function(t){var e=[];for(var a=1;a<arguments.length;a++){e[a-1]=arguments[a]}return __awaiter(d,__spreadArray([t],e,true),void 0,(function(t,e,a){var i,d,n;if(e===void 0){e=false}return __generator(this,(function(r){switch(r.label){case 0:if(!e&&this.deferUpload){this.updateValueInMap(t.item.name,"pending",true,false);this.updateValueInMap(t.item.name,"group","pending",true)}else if(e){this.updateValueInMap(t.item.name,"pending",false,false);this.updateValueInMap(t.item.name,"group",undefined,true)}r.label=1;case 1:r.trys.push([1,4,,5]);if(!(!this.deferUpload||e))return[3,3];i=new FormData;i.append("file",t.item);if(a){i.append("key",a)}i.append("uid",t.uid);i.append("name",t.item.name);i.append("metadata",JSON.stringify({uid:t.uid,url:this.uri,size:t.item.size,meta:t.meta}));d=t;return[4,this.makeXHRPostRequest(i)];case 2:d.xhr=r.sent();r.label=3;case 3:return[3,5];case 4:n=r.sent();this.updateValueInMap(t.item.name,"valid",false,false);return[3,5];case 5:return[2]}}))}))};this.uploadPendingFiles=function(){for(var t=0,e=Array.from(d.files.entries());t<e.length;t++){var a=e[t],i=a[0],n=a[1];if(n.group==="pending"&&n.pending===true){d.uploadFile(n,true,i)}}};this.getItemFromUID=function(t){for(var e=0,a=Array.from(d.files.entries());e<a.length;e++){var i=a[e],n=i[0],r=i[1];if(r.uid===t){return{value:r,key:n}}}return null};this.handleExternalUploadButton=function(t,e){if(d.externalUploadButton){if(t||e){d.externalUploadButton.disabled=true}else{d.externalUploadButton.disabled=false}}};this.onDelete=function(t,e){var a=d.getItemFromUID(t);var i=a.key;var n=d.files.get(i);d.files.delete(i);var r=d.validateTotals(),l=r.bytesMaxReached,o=r.fileMaxReached;d.handleExternalUploadButton(l,o);d.kick();d.duetDelete.emit({originalEvent:e,data:{deletion:n},component:"duet-upload"});if(!d.external&&!n.pending){d.makeXHRDeleteRequest(n)}d.resetFormFields()};this.onCancel=function(t,e){var a=d.getItemFromUID(t).key;var i=d.files.get(a);d.files.delete(a);var n=d.validateTotals(),r=n.bytesMaxReached,l=n.fileMaxReached;d.handleExternalUploadButton(r,l);if(!d.external){var o=i.xhr;if(o){o.abort()}}d.kick();d.resetFormFields();d.duetCancel.emit({originalEvent:e,data:{cancelled:i},component:"duet-upload"})};this.onUpload=function(t,e){d.duetUpload.emit({originalEvent:t,metaData:e,component:"duet-upload"})};this.onBlur=function(t){d.duetBlur.emit({originalEvent:t,component:"duet-upload"})};this.onProgress=function(t,e,a){d.duetChange.emit({originalEvent:a,data:{key:t,percentComplete:e},component:"duet-upload"})};this.onFocus=function(t){d.duetFocus.emit({originalEvent:t,component:"duet-upload"})};this.onReady=function(){d.duetReady.emit({component:"duet-upload"})};this.onDone=function(){d.duetDone.emit({component:"duet-upload",data:{files:d.files}})};this.filterMap=function(){var t=Array.from(d.files.values());var e=[];var a=[];var i=[];var n=[];var r=false;t.forEach((function(t){var l=d.getGroupFromItemData(t);if(t.meta&&!!t.meta.badges){r=true}if(l===d.DefaultGroups.success){n.push({uid:t.uid,data:t})}else if(l===d.DefaultGroups.inprogress){e.push({uid:t.uid,data:t})}else if(l===d.DefaultGroups.pending){i.push({uid:t.uid,data:t})}else if(l===d.DefaultGroups.failure){a.push({uid:t.uid,data:t})}else if(t.group){e.push({uid:t.uid,data:t})}}));return{pending:i,failure:a,success:n,inprogress:e,hasCategory:r}};this.getActions=function(t,e){return e.filter((function(e){return e.map.includes(t)}))};this.renderUploadedItems=function(){d.itemRefs.clear();var t=d.filterMap();var a=t.hasCategory;var i=d.hideCancelButton?d.actions.filter((function(t){return t.name!=="cancel"})):d.actions;var n=d.groups.map((function(n){var l=t[n.id];if(!(l===null||l===void 0?void 0:l.length)){return}return e(r,null,!d.hideGroups&&e(D,{categoryLabel:a?d.categoryLabel:undefined,label:n.label}),l.map((function(t){return d.mapFilesToUploadItems(t.data,n.id,a,i)})))}));return e(r,null,d.showUploadedItemsHeader&&e(D,{categoryLabel:a?d.categoryLabel:undefined,label:d.uploadedItemsHeaderLabel}),n)};this.tick=Date.now();this.accessibleActiveDescendant=undefined;this.accessibleDescribedBy=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.external=false;this.middleware=null;this.deferUpload=false;this.hideButton=false;this.actions=[{icon:"action-delete",color:"color-danger",size:"x-small",background:"gray-lightest",name:"delete",map:["success","failure"],label:{fi:"Poista tiedosto",en:"Delete the file",sv:"Ta bort filen"}},{icon:"navigation-close",color:"primary",size:"x-small",background:"gray-lightest",name:"cancel",map:["inprogress","pending"],label:{fi:"Keskeytä lähetys",en:"Cancel the upload",sv:"Stop överföringen"}}];this.uri=undefined;this.showLinks=false;this.caption=undefined;this.statusLabelDefaults={fi:{inProgress:"Lähetetään {filesUploaded}, yhteensä lähetettävänä {filesTotal}.",inProgressWithErrors:"Lähetetään {filesInProgress}, lähetetty {filesUploaded}, yhteensä lähetettävänä {filesTotal}, {filesWithErrors} epäonnistui",done:"Lähetys valmis, {filesTotal} lisätty onnistuneesti",doneWithErrors:"Lähetys valmis, {filesUploaded} lisätty onnistuneesti, {filesWithErrors} epäonnistui",files:"tiedostoa",file:"tiedosto"},sv:{inProgress:"Laddar upp {filesUploaded} av {filesTotal}",inProgressWithErrors:"Laddar upp {filesInProgress}, {filesUploaded} uppladdad av {filesTotal}, {filesWithErrors} misslyckades",done:"Uppladdningen slutförd, {filesTotal} har lagts till",doneWithErrors:"Uppladdningen slutförd, {filesUploaded} har lagts till, {filesWithErrors} misslyckades",files:"filer",file:"fil"},en:{inProgress:"Uploading {filesUploaded} of {filesTotal}",inProgressWithErrors:"Uploading {filesInProgress}, {filesUploaded} uploaded of {filesTotal}, {filesWithErrors} failed",done:"Upload completed, {filesTotal} added successfully",doneWithErrors:"Upload completed, {filesUploaded} added successfully, {filesWithErrors} failed.",files:"files",file:"file"}};this.statusMessageLabel=c(this.statusLabelDefaults);this.buttonLabelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add an attachment"};this.buttonLabel=c(this.buttonLabelDefaults);this.accessibleButtonLabel=undefined;this.theme="";this.disabled=false;this.identifier=undefined;this.margin="auto";this.required=false;this.alignment="middle";this.hideGroups=false;this.files=new Map;this.valid=!this.required;this.labelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add attachments"};this.label=c(this.labelDefaults);this.descriptionDefaults={en:"You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytestotal} of files at a time, and add up to {maxfiles} attachments at a time each no larger than {maxbytes}.",sv:"Du kan bifoga följande filtyper: {filetypes} - samt de vanligaste videofilerna. Du kan ladda upp {maxbytestotal} av filer åt gången, och lägga till upp till {maxfiles} bilagor åt gången varje inte större än {maxbytes}.",fi:"Voit liittää seuraavat tiedostotyypit: {filetypes} - sekä yleisimmät videotiedostot. Voit lähettää {maxbytestotal} tiedostoa kerrallaan, ja lisätä enintään {maxfiles} liitettä kerrallaan, jokainen enintään {maxbytes} kokoisena."};this.description=c(this.descriptionDefaults);this.fileListEmptyDefaults={fi:"Ei vielä lisättyjä tiedostoja.",sv:"Inga filer har lagts till ännu.",en:"No files added yet."};this.fileListEmpty=c(this.fileListEmptyDefaults);this.error="";this.errorCodes=M;this.name=undefined;this.maxBytes=2e8;this.maxBytesTotal=undefined;this.maxFiles=99;this.allowedExtensions="all";this.allowedMimetypes="";this.multiple=true;this.limitSelection=false;this.hideCancelButton=false;this.value=undefined;this.externalUploadButtonId=undefined;this.captionOnBottom=false;this.showUploadedItemsHeader=false;this.uploadedItemsHeaderLabel={fi:"Ladattu tiedosto",sv:"Lägg till en bilaga",en:"Uploaded file"};this.headerHeadingLevel="h3";this.hideHeader=false;this.emitEvent=false;this.actionButtonTitles={cancel:false,delete:false};this.renameDuplicates=false;this.groups=[{id:this.DefaultGroups.success,label:{fi:"Valmiit tiedostot",sv:"Files success",en:"Files success"}},{id:this.DefaultGroups.failure,label:{fi:"Tiedostot, joissa on virheitä",sv:"Filer med fel",en:"Files with errors"}},{id:this.DefaultGroups.inprogress,label:{fi:"Kesken olevat tiedostot",sv:"Filer inprogress",en:"Files inprogress"}},{id:this.DefaultGroups.pending,label:{en:"Files to upload",sv:"Filer att ladda",fi:"Ladattavat tiedostot"}}]}t.prototype.watchValidHandler=function(t,e){if(t!==e){this.kick()}};t.prototype.componentWillLoad=function(){if(typeof this.statusMessageLabel==="string"){this.internalStatusMessageLabel=p(this.groups)}else{this.internalStatusMessageLabel=this.statusMessageLabel}l(this);this.listenForActionEvents();this.onReady();this.externalUploadButton=document.querySelector("#".concat(this.externalUploadButtonId));this.processedButtonTitles=w(this.actionButtonTitles)};t.prototype.componentWillRender=function(){this.verifyValidity()};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.nativeInput){this.nativeInput.focus(t)}return[2]}))}))};t.prototype.upload=function(){return __awaiter(this,arguments,void 0,(function(t){var e,a,i;if(t===void 0){t=undefined}return __generator(this,(function(d){e=this.validateTotals(),a=e.bytesMaxReached,i=e.fileMaxReached;if(a||i){this.handleExternalUploadButton(a,i);this.kick();return[2]}this.metaData=t;this.nativeInput.click();return[2]}))}))};t.prototype.uploadPending=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.uploadPendingFiles();return[2]}))}))};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:this.kick();return[4,this.setFocus()];case 1:t.sent();return[2]}}))}))};t.prototype.getFiles=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.files||this.files.size===0){return[2,false]}return[2,this.getFilesAsArray()]}))}))};t.prototype.updateValue=function(t,e,a){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.updateValueInMap(t,e,a);return[2]}))}))};t.prototype.focusActionButton=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(a){switch(a.label){case 0:return[4,(e=this.itemRefs.get(t))===null||e===void 0?void 0:e.focusActionButton()];case 1:a.sent();return[2]}}))}))};t.prototype.render=function(){var t=this;var a=this.identifier||this.uploadId;var i=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024);var n=Math.round(this.maxBytes/1024/1024);var l=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());l=l.replace(/{maxbytes}/g,"".concat(n.toString()," MB"));l=l.replace(/{maxbytestotal}/g,"".concat(i.toString()," MB"));l=l.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", "));if(this.externalUploadButton){this.externalUploadButton.accessibleLabel="".concat(this.externalUploadButton.innerText,". ").concat(l)}return e(d,{key:"2cb6006c495f141141399d81c7e6f8e7967d2abf",class:{"duet-m-0":this.margin==="none"}},e("duet-fieldset",{key:"e3febb3aaed53ba1f63d0deaed3984233d081ff9","label-heading-level":this.headerHeadingLevel,"label-hidden":this.hideHeader,label:this.label},e("slot",{key:"0cb5e96677cee13c2cb2748ec95182ba44542e9c",name:"header"}),!this.files.size&&e("duet-empty-state",{key:"0b6ff2849bb502f136c3b4837ccdf19b5b2c1c18",id:this.labelId,part:this.identifier?"".concat(this.identifier,"-empty-state"):"duet-upload-empty-state",icon:"messaging-attachment"},e("duet-paragraph",{key:"69ddeab39e14da3d436467aa935f3695587547fb",margin:"none"},this.fileListEmpty)),!!this.files.size&&e("slot",{key:"df6739a9d4d7c5c02e72e3f430f29d854edf1a99",name:"fileheader"}),!!this.files.size&&e("duet-upload-aria-status",{key:"cbd6241618dbf7ca04c61e1d0725f4dc157e87af",invalid:this.getFilesAsArray().invalid.length,valid:this.getFilesAsArray().valid.length,inprogress:this.filesInProgress.size,total:this.files.size,statusMessageLabel:this.internalStatusMessageLabel}),!!this.files.size&&this.renderUploadedItems(),!!this.files.size&&e("slot",{key:"aacaa46c313c829d4e880bf7c7e1848f0ea189cf",name:"filefooter"}),e("slot",{key:"36551b5a589e7feee6077af241b9a25d297feb28",name:"uploadfooter"}),this.captionOnBottom&&e("duet-caption",{key:"d04226d485cc26a193935fa8e4fb98a462a0a505",margin:"none",size:"small"},e("div",{key:"6b45b8d84658fd393dc9522c5bc33288e39f7159",class:"upload-bottom-caption"},l)),e("slot",{key:"2f2b87ae68a5df22a1fd03e11616249a26be0791",name:"afterfooter"}),!this.hideButton&&e(r,{key:"113e78c43b0be73519c29617ab452a494f567683"},e("duet-spacer",{key:"292f0dbbd87d637d7abf982b8e296b282ae89375",size:"large"}),e("duet-button",{key:"774bc75ffb2f90878794215e7890d592abb7acd5",id:this.buttonId,onClick:this.startUpload,"accessible-controls":a,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel||"".concat(this.buttonLabel,". ").concat(l),"accessible-owns":a,size:"small",variation:"secondary",fixed:true,icon:"action-add-circle",part:this.identifier?"".concat(this.identifier,"-button-upload"):"duet-upload-button-upload"},this.buttonLabel)),(this.fileMaxReached||this.bytesMaxReached||this.filesToUploadExceedsLimit||this.filesToUploadTotalSizeIsAboveMax)&&e(r,{key:"7de2ffb0e3562b05cd46d1eb1d3360fc853cf601"},e("duet-spacer",{key:"fa336882d4bd468f1e9593946f48d73929d26f87",size:"medium"}),e("duet-alert",{key:"d9a8cac2323b3b10d4cb5c22d0ec19c9b2082694",part:this.identifier?"".concat(this.identifier,"-error-notification"):"duet-upload-error-notification"},this.fileMaxReached&&_("duet-upload-301",this.errorCodes),this.bytesMaxReached&&_("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&_("duet-upload-302",this.errorCodes),this.filesToUploadTotalSizeIsAboveMax&&_("duet-upload-203",this.errorCodes))),e("duet-visually-hidden",{key:"71318f80dd7ad1ef345bc1123be62719becdc52d","aria-hidden":"true"},e("input",{key:"a68a3d1d4490e75a2968e47a681f11cea7bc4d9b",ref:function(e){t.nativeInput=e},accept:!this.limitSelection?undefined:"".concat(this.allowedMimetypes,",").concat(this.allowedExtensions),onBlur:this.onBlur,onFocus:this.onFocus,onChange:function(e){return t.onChange(e)},type:"file",class:{"duet-upload":true},disabled:this.disabled,"aria-hidden":"true",required:this.required,name:this.name,id:this.identifier,multiple:this.multiple,tabIndex:-1}))))};t.prototype.makeXHRPostRequest=function(t){var e=this;var a=new XMLHttpRequest;var i=t.get("name");a.upload.addEventListener("progress",(function(t){e.updateProgress(t,i)}));a.upload.addEventListener("load",(function(){e.transferComplete(i)}));a.upload.addEventListener("error",(function(){e.transferFailed(i)}));a.upload.addEventListener("abort",(function(){e.transferCanceled(i)}));var d={payload:{data:t,name:i},options:{type:"POST",uri:this.uri,xhr:a,argument:null,headers:undefined},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){d=this.middleware(d)}return q(d)};t.prototype.makeXHRDeleteRequest=function(t){var e=t.uid,a=t.item;var i=new XMLHttpRequest;var d={"x-fileuid":e,"x-filename":a.name};var n={payload:{data:null,name:name},options:{type:"DELETE",xhr:i,uri:this.uri,argument:"?key=".concat(e,"&name=").concat(a.name),headers:d},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){n=this.middleware(n)}return q(n)};t.prototype.escapeSpecialCharacters=function(t){return(t+"").replace(/[\\"'(){}\[\]*?$^+]/g,"\\$&").replace(/\u0000/g,"\\0")};t.prototype.getRenamedFileName=function(t,e){var a=new RegExp("".concat(this.escapeSpecialCharacters(t)," \\(\\d+\\).").concat(e));var i=Array.from(this.files.entries()).map((function(t){var e=t[0],a=t[1];return e})).filter((function(i){return a.test(i)||i==="".concat(t,".").concat(e)})).sort((function(t,e){return t.split(".").slice(0,-1).join(".")>e.split(".").slice(0,-1).join(".")?1:-1})).pop().split(".").slice(0,-1).join(".");if(i===t){return"".concat(t," (1).").concat(e)}var d=parseInt(i.split("(").pop().slice(0,-1));return"".concat(t," (").concat(d+1,").").concat(e)};t.prototype.renameFiles=function(t){var e=this;return t.map((function(t){if(e.files.get(t.name)){var a=t.name.split(".");var i=a.pop();var d=a.join(".");var n=e.getRenamedFileName(d,i);return new File([t],n,{type:t.type,lastModified:t.lastModified})}else{return t}}))};t.prototype.onChange=function(t){return __awaiter(this,void 0,void 0,(function(){var e,a,i,d,n,r,l,o,s,u,h,f;return __generator(this,(function(b){switch(b.label){case 0:a=Array.from((e=this.nativeInput)===null||e===void 0?void 0:e.files);this.filesToUploadExceedsLimit=false;if(N(this.files.size,a.length,this.maxFiles)){this.filesToUploadExceedsLimit=true;this.kick();return[2]}this.filesToUploadTotalSizeIsAboveMax=false;if(Y(this.files,a,this.maxBytesTotal)){this.filesToUploadTotalSizeIsAboveMax=true;this.kick();return[2]}if(!a)return[3,6];if(this.renameDuplicates){a=this.renameFiles(a)}i=0,d=a;b.label=1;case 1:if(!(i<d.length))return[3,6];n=d[i];r=O(n,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),l=r.valid,o=r.errorMessage,s=r.errorType,u=r.errorSystem;h=this.genHashName();f={uid:h,item:n,size:n.size,meta:this.metaData,uploaded:false,valid:l,error:{type:l?undefined:s,message:l?undefined:o,system_message:l?undefined:u},progress:0,deleted:false,xhr:false,url:false};this.files.set(n.name,f);if(!(l&&!this.external))return[3,3];return[4,this.uploadFile(f)];case 2:b.sent();return[3,4];case 3:if(l&&this.external){this.updateValueInMap(f.item.name,"pending",true,false);this.updateValueInMap(f.item.name,"group","pending",true)}else if(!l){this.updateValueInMap(n.name,"valid",false,true)}b.label=4;case 4:this.kick();b.label=5;case 5:i++;return[3,1];case 6:this.resetFormFields();this.metaData=undefined;this.duetChange.emit({originalEvent:t,data:{files:this.files},component:"duet-upload"});return[2]}}))}))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{valid:["watchValidHandler"]}},enumerable:false,configurable:true});return t}());J.style=H}}}));
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,i,a){function d(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function n(e){try{s(a.next(e))}catch(e){o(e)}}function r(e){try{s(a["throw"](e))}catch(e){o(e)}}function s(e){e.done?i(e.value):d(e.value).then(n,r)}s((a=a.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,d,o,n;return n={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function r(e){return function(t){return s([e,t])}}function s(r){if(a)throw new TypeError("Generator is already executing.");while(n&&(n=0,r[0]&&(i=0)),i)try{if(a=1,d&&(o=r[0]&2?d["return"]:r[0]?d["throw"]||((o=d["return"])&&o.call(d),0):d.next)&&!(o=o.call(d,r[1])).done)return o;if(d=0,o)r=[r[0]&2,o.value];switch(r[0]){case 0:case 1:o=r;break;case 4:i.label++;return{value:r[1],done:false};case 5:i.label++;d=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!o||r[1]>o[0]&&r[1]<o[3])){i.label=r[1];break}if(r[0]===6&&i.label<o[1]){i.label=o[1];o=r;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(r);break}if(o[2])i.ops.pop();i.trys.pop();continue}r=t.call(e,i)}catch(e){r=[6,e];d=0}finally{a=o=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register(["./p-ed810e76.system.js","./p-49957220.system.js","./p-4d81e7f6.system.js","./p-76332920.system.js","./p-89b2f873.system.js","./p-752fa0fc.system.js","./p-7fd0a219.system.js","./p-6b99bf3d.system.js","./p-b1f33063.system.js","./p-59777da7.system.js","./p-98636086.system.js","./p-64959c1d.system.js"],(function(e){"use strict";var t,i,a,d,o,n,r,s,u,l,m,c,h,f,p,g,b;return{setters:[function(e){t=e.r;i=e.c;a=e.h;d=e.g},function(e){o=e.d;n=e.e},function(e){r=e.i},function(e){s=e.a},function(e){u=e.f},function(e){l=e.f},function(e){m=e.a;c=e.g;h=e.c;f=e.d},function(e){p=e.h},function(e){g=e.T},function(e){b=e.p},function(){},function(){}],execute:function(){var y='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-modal-container{position:fixed;top:0;right:0;bottom:0;left:0;z-index:900;max-height:100vh;overflow-y:auto;visibility:hidden;opacity:0;transition:300ms ease;transition-delay:200ms}.duet-modal-container.duet-modal-active{visibility:visible;opacity:1;transition:300ms ease;transition-delay:0s}.duet-modal-container.duet-disable-transitions{transition:none}.duet-modal-container.duet-modal-slide-up{overflow:hidden}::slotted(img){width:100%}.duet-modal-inner{display:flex;align-items:center;width:100%;min-height:100%;padding:20px 16px}@media (min-width: 36em){.duet-modal-inner{padding:48px 16px}}.duet-modal-inner.duet-modal-slide-up{align-items:stretch;justify-content:center;height:100%;padding-top:48px;padding-bottom:0;overflow:hidden}.duet-modal-inner.duet-modal-slide-up::after{position:absolute;bottom:0;z-index:300;display:block;width:100%;max-width:686px;height:48px;margin:auto;pointer-events:none;content:"";background:linear-gradient(rgba(255, 255, 255, 0), rgb(255, 255, 255))}.duet-modal-inner.duet-modal-slide-up::after.small{max-width:545px}.duet-modal-inner.duet-modal-slide-up::after.large{max-width:100%}@media (min-width: 36em){.duet-modal-inner.duet-modal-slide-up::after.large{max-width:1110px}}@media (max-width: 35.9375em){.duet-modal-inner.large{padding-right:0;padding-left:0}.duet-modal-inner.duet-modal-slide-up{padding:0;padding-top:28px}}.duet-modal{position:relative;width:100%;max-width:686px;margin:auto;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-weight:400;font-variant-numeric:tabular-nums;line-height:1.5;color:rgb(8, 42, 77);background:rgb(255, 255, 255);border-radius:16px;opacity:0;transition:300ms ease;transition-delay:0ms;transform:scale(0.96)}.duet-theme-turva .duet-modal{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-modal-active .duet-modal{opacity:1;transition:300ms ease;transition-delay:200ms;transform:none}.duet-modal-active .duet-modal.slide-up{top:0;transition:top 600ms ease}.duet-modal.loader{text-align:center;background:transparent}.duet-modal.loader .duet-modal-close{display:none}.duet-modal.loader .duet-modal-spinner{position:relative;height:120px}.duet-modal.loader .duet-modal-inner-slot-default{position:relative;backdrop-filter:blur(10px)}.duet-modal.loader duet-paragraph.duet-loader-message{position:absolute;opacity:0;transition:all 300ms ease;transform:scaleY(0);transform-origin:top}.duet-modal.loader duet-paragraph.duet-loader-message.show{opacity:1;transform:scaleY(1);transform-origin:bottom}.duet-modal.loader duet-paragraph.duet-loader-message.show::part(duet-paragraph){backdrop-filter:blur(10px)}.duet-disable-transitions .duet-modal{transition:none}.duet-modal.small{max-width:545px}.duet-modal.large{max-width:100%}@media (min-width: 36em){.duet-modal.large{max-width:1110px}}.duet-modal.slide-up{top:100vh;margin:0;overflow:auto;border-radius:16px 16px 0 0;opacity:1;transition:top 600ms ease}.duet-modal.duet-modal-has-sticky-header{height:100%;overflow:auto}.duet-modal:focus{outline:0}.duet-modal-body,.duet-modal-sticky-header{width:100%;padding:36px 28px}.duet-modal-body.duet-modal-gutter-none,.duet-modal-sticky-header.duet-modal-gutter-none{padding:0 !important}.duet-modal-body.duet-modal-gutter-small,.duet-modal-sticky-header.duet-modal-gutter-small{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}@media (max-width: 22.5em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 28px}}@media (max-width: 35.9375em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}}@media (min-width: 36em){.duet-modal-body,.duet-modal-sticky-header{padding:36px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:28px 72px}}@media (min-width: 48em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 72px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:36px 72px}}@media (min-width: 76.25em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 48px 48px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 94px}.small .duet-modal-body,.small .duet-modal-sticky-header{padding:36px 48px}}.duet-modal-header{text-align:center}.duet-modal-sticky-header{position:sticky;top:0;z-index:300;display:block;padding-bottom:12px;text-align:left;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229);border-radius:16px 16px 0 0}.duet-theme-turva .duet-modal-sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-modal-close{position:absolute;top:8px;right:8px}.duet-modal-heading{width:100%;padding-right:60px;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-style:normal;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);text-decoration:none;text-overflow:ellipsis;letter-spacing:-0.01rem;white-space:nowrap}.duet-modal-heading.duet-p-0{padding:0 !important}.duet-modal-heading.duet-m-0{margin:0 !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-modal{color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .duet-modal-sticky-header{background:#fdf7f2;border-bottom:1px solid #d4dde2}';var v=y;var x=600;var k=e("duet_modal",function(){function e(e){t(this,e);this.duetOpen=i(this,"duetOpen",7);this.duetClose=i(this,"duetClose",7);this.duetCloseComplete=i(this,"duetCloseComplete",7);this.duetBeforeClose=i(this,"duetBeforeClose",7);var a,d;this.hasStickyHeader=false;this.isAndroidDevice=((d=(a=navigator===null||navigator===void 0?void 0:navigator.userAgent)===null||a===void 0?void 0:a.toLowerCase())===null||d===void 0?void 0:d.indexOf("android"))>-1||null;this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(navigator===null||navigator===void 0?void 0:navigator.userAgent);this.accessibleLoaderAnnouncementDefaults=s;this.accessibleCloseLabelDefaults={fi:"Sulje ikkuna",sv:"Stäng fönstret",en:"Close the dialog"};this.handleAndroidResizeEvents=function(){if(document.activeElement.tagName=="INPUT"){window.setTimeout((function(){var e;try{(e=document===null||document===void 0?void 0:document.activeElement)===null||e===void 0?void 0:e.scrollIntoViewIfNeeded(true)}catch(e){}}),100)}};this.open=false;this.language=m();this.accessibleCloseLabel=c(this.accessibleCloseLabelDefaults,this.language);this.accessibleLoaderAnnouncement=c(this.accessibleLoaderAnnouncementDefaults,this.language);this.size="medium";this.accessibleDescribedBy=undefined;this.accessibleLabelledBy=undefined;this.accessibleLabel=undefined;this.accessibleDetails=undefined;this.accessibleDescription=undefined;this.variation="default";this.gutterSize="medium";this.theme="";this.heading="";this.headingLevel="h3";this.headingVisualLevel=undefined;this.icon="";this.color="";this.active=false;this.closeOnBlur=false;this.focusElementOnClose=undefined;this.accessibleAnnounceChanges=undefined}e.prototype.openChanged=function(){var e=this;if(this.open){if(this.modalEl&&this.modalEl.scrollTop){this.modalEl.scrollTop=0}this.focusedElBeforeOpen=document.activeElement;o(this.variation==="slide-up"?this.modalContentEl:this.modalEl,{reserveScrollBarGap:true});this.teleport.makeSiblingsInert();this.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((function(e){return e.remove()}));setTimeout((function(){if(e.variation==="loader"){e.addMessage(e.accessibleLoaderAnnouncement,false)}else{if(e.isAndroidDevice){e.modalEl.focus()}else{e.buttonEl.setFocus()}}}),x);setTimeout((function(){e.modalEl.classList.add("duet-disable-transitions")}),x+200);if(this.isAndroidDevice){window.addEventListener("resize",this.handleAndroidResizeEvents)}this.duetOpen.emit()}else{this.modalEl.classList.remove("duet-disable-transitions");this.modalEl.addEventListener("transitionend",(function(){return e.duetCloseComplete.emit()}),{once:true});n(this.variation==="slide-up"?this.modalContentEl:this.modalEl);this.duetClose.emit();this.teleport.removeInertFromSiblings();if(this.focusElementOnClose!==""){setTimeout((function(){var t=e.focusedElBeforeOpen;if(typeof e.focusElementOnClose==="string"){t=document.getElementById(e.focusElementOnClose)||t}else{t=e.focusElementOnClose||t}u(t)}),x)}if(this.isAndroidDevice){window.removeEventListener("resize",this.handleAndroidResizeEvents)}}};e.prototype.activeChanged=function(){this.open=this.active};e.prototype.componentWillLoad=function(){this.hasStickyHeader=p(this.element,"sticky-header");r(this)};e.prototype.componentDidLoad=function(){if(this.active){this.open=true;this.modalEl.classList.add("duet-disable-transitions")}};e.prototype.connectedCallback=function(){if(!this.teleport){this.teleport=new g(this.element)}if(this.teleport){this.teleport.activate()}h(this,[{prop:"accessibleCloseLabel",defaults:"accessibleCloseLabelDefaults"},{prop:"accessibleLoaderAnnouncement",defaults:"accessibleLoaderAnnouncementDefaults"}])};e.prototype.disconnectedCallback=function(){f(this);if(this.modalEl){n(this.modalEl)}};e.prototype.handleKeyUp=function(e){if(this.open){if(l(e)){this.closeModal(e)}}};e.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.open=true;return[2]}))}))};e.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.open=false;return[2]}))}))};e.prototype.focusCloseButton=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.buttonEl.setFocus();return[2]}))}))};e.prototype.scrollToTop=function(){return __awaiter(this,arguments,void 0,(function(e){var t,i,a,d;if(e===void 0){e=true}return __generator(this,(function(o){i=e?"smooth":"auto";if(this.variation==="slide-up"){a=((t=this.modalEl.querySelector(".duet-modal-sticky-header"))===null||t===void 0?void 0:t.clientHeight)||0;d=this.modalEl.querySelector(".duet-modal-body").computedStyleMap().get("padding-top");this.slotContainerEl.style.scrollMarginTop="".concat(a+d.value,"px");this.slotContainerEl.scrollIntoView({behavior:i})}else{this.modalEl.querySelector(".duet-modal-body").scrollIntoView({behavior:i})}return[2]}))}))};e.prototype.addMessage=function(e){return __awaiter(this,arguments,void 0,(function(e,t){var i;var a=this;if(t===void 0){t=true}return __generator(this,(function(d){i=document.createElement(t?"duet-paragraph":"duet-visually-hidden");i.textContent=e;i.classList.add("duet-loader-message");if(t){setTimeout((function(){a.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((function(e){return e.classList.remove("show")}));i.classList.add("show")}),10)}this.slotContainerEl.appendChild(i);return[2]}))}))};e.prototype.closeModal=function(e){var t=this;this.duetBeforeClose.emit({originalEvent:e,component:"duet-modal"});if(!e.defaultPrevented){setTimeout((function(){t.hide()}),1)}};e.prototype.render=function(){var e,t;var i=this;var d,o;var n=b("primary",this.theme);var r=b("secondary",this.theme);var s=a("div",{key:"9de636719074c96f49913c1a19b33329ae39a3a0",class:"duet-modal-close"},a("duet-button",{key:"1852a8322aaeb49c937cfd4b4d80d61073f12f96",ref:function(e){return i.buttonEl=e},variation:"plain",accessibleLabel:this.accessibleCloseLabel,color:r,iconSize:"large",icon:"navigation-close",iconOnly:true,margin:"none",theme:this.theme,onClick:function(e){return i.closeModal(e)},fixed:true}));return a("div",{key:"4c602c318db94b02ca730640b8c0c6fc7eb96453",ref:function(e){return i.modalEl=e},"aria-label":(d=this.accessibleLabel)!==null&&d!==void 0?d:this.heading,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-describedby":this.accessibleDescribedBy,role:this.variation==="loader"?"alert":"dialog","aria-modal":this.isSafariBrowser?false:true,tabindex:"-1",class:{"duet-modal-container":true,"duet-theme-turva":this.theme==="turva","duet-modal-active":this.open,"duet-modal-slide-up":this.variation==="slide-up","duet-modal-has-sticky-header":this.hasStickyHeader}},a("duet-overlay",{key:"c70e730388bdfa452ab51fb810304ba004022885","z-index":"-1",visible:this.open,variation:this.variation==="loader"?"white":"default"}),a("div",{key:"ceae3fcf909fdfa380eaddc2f8c9ac2637fc8810",ref:function(e){return i.modalInnerEl=e},class:(e={"duet-modal-inner":true},e[this.size]=true,e["duet-modal-slide-up"]=this.variation==="slide-up",e),onClick:function(e){if(i.closeOnBlur){var t=e.target||e.srcElement;if(t===i.modalInnerEl){i.closeModal(e)}}}},a("div",{key:"c0559f2b2d236a3e0fd339cd65900d400547fb70",ref:function(e){return i.modalContentEl=e},"aria-live":this.accessibleAnnounceChanges==="all"?"polite":null,"aria-atomic":this.accessibleAnnounceChanges==="all"?"true":null,class:(t={"duet-modal":true,"duet-modal-has-sticky-header":this.hasStickyHeader},t[this.size]=true,t[this.variation]=true,t)},this.gutterSize!=="none"&&!this.hasStickyHeader&&a("duet-spacer",{key:"81664165163cd30e192906cb50bb71a4906256ba"}),this.hasStickyHeader?a("div",{class:"duet-modal-sticky-header"},s,a("slot",{name:"sticky-header"})):s,a("div",{key:"92c81c3e5545b4a08b93b3174a888cc42837f2ac",class:{"duet-modal-body":true,"duet-modal-gutter-none":this.gutterSize==="none","duet-modal-gutter-small":this.gutterSize==="small","duet-modal-gutter-medium":this.gutterSize==="medium","duet-modal-gutter-large":this.gutterSize==="large"},"aria-live":this.accessibleAnnounceChanges==="heading"?"polite":null,"aria-atomic":this.accessibleAnnounceChanges==="heading"?"true":null},a("div",{key:"72936aa2c2d2551e34b2c2d7344f666d49c3d0f4",class:"duet-modal-header"},a("span",{key:"30ac91712c2d7065901679fcf1cd5cb0191cbb11",class:"duet-modal-inner-slot-top"},a("slot",{key:"c7e4bd42dfac73ebdfcf98f9d16438c14945d30b",name:"top"})),this.icon&&a("duet-icon",{key:"3664c556ad580c917e80e796df4236f89134ab9d",name:this.icon,size:"xx-large",color:this.color||n}),this.heading&&a("duet-heading",{key:"d77b16d2577ce36f4e135790a7f49d8a2b17096c","visual-level":(o=this.headingVisualLevel)!==null&&o!==void 0?o:this.headingLevel,level:this.headingLevel,theme:this.theme},this.heading)),this.variation==="loader"&&a("div",{key:"ed0fa900e15be0fef3166e61f2f7c860dab067f0",class:"duet-modal-spinner"},a("duet-spinner",{key:"1d15d8e837273755c1c6242098e198f51c1cda90",size:"large",color:b("primary",this.theme)})),a("div",{key:"4d06b9164f277a7cc586a6b754429764cccb1f2e","aria-live":this.variation==="loader"?"assertive":this.accessibleAnnounceChanges==="body"?"polite":null,"aria-atomic":this.accessibleAnnounceChanges==="body"?"true":null,class:"duet-modal-inner-slot-default",ref:function(e){return i.slotContainerEl=e}},a("slot",{key:"520b8542f921248916d3470204ce4ee2533da5ee"}))))))};Object.defineProperty(e.prototype,"element",{get:function(){return d(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{open:["openChanged"],active:["activeChanged"]}},enumerable:false,configurable:true});return e}());k.style=v}}}));
4
+ */System.register(["./p-43d6b171.system.js","./p-49957220.system.js","./p-cddad487.system.js","./p-87633fff.system.js","./p-7d4fb1da.system.js","./p-752fa0fc.system.js","./p-1cc2eb98.system.js","./p-d4630d55.system.js","./p-b1f33063.system.js","./p-59777da7.system.js","./p-98636086.system.js","./p-64959c1d.system.js"],(function(e){"use strict";var t,i,a,d,o,n,r,s,u,l,c,m,h,f,p,g,b;return{setters:[function(e){t=e.r;i=e.c;a=e.h;d=e.g},function(e){o=e.d;n=e.e},function(e){r=e.i},function(e){s=e.b},function(e){u=e.f},function(e){l=e.f},function(e){c=e.a;m=e.g;h=e.c;f=e.d},function(e){p=e.h},function(e){g=e.T},function(e){b=e.p},function(){},function(){}],execute:function(){var y='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-modal-container{position:fixed;top:0;right:0;bottom:0;left:0;z-index:900;max-height:100vh;overflow-y:auto;visibility:hidden;opacity:0;transition:300ms ease;transition-delay:200ms}.duet-modal-container.duet-modal-active{visibility:visible;opacity:1;transition:300ms ease;transition-delay:0s}.duet-modal-container.duet-disable-transitions{transition:none}.duet-modal-container.duet-modal-slide-up{overflow:hidden}::slotted(img){width:100%}.duet-modal-inner{display:flex;align-items:center;width:100%;min-height:100%;padding:20px 16px}@media (min-width: 36em){.duet-modal-inner{padding:48px 16px}}.duet-modal-inner.duet-modal-slide-up{align-items:stretch;justify-content:center;height:100%;padding-top:48px;padding-bottom:0;overflow:hidden}.duet-modal-inner.duet-modal-slide-up::after{position:absolute;bottom:0;z-index:300;display:block;width:100%;max-width:686px;height:48px;margin:auto;pointer-events:none;content:"";background:linear-gradient(rgba(255, 255, 255, 0), rgb(255, 255, 255))}.duet-modal-inner.duet-modal-slide-up::after.small{max-width:545px}.duet-modal-inner.duet-modal-slide-up::after.large{max-width:100%}@media (min-width: 36em){.duet-modal-inner.duet-modal-slide-up::after.large{max-width:1110px}}@media (max-width: 35.9375em){.duet-modal-inner.large{padding-right:0;padding-left:0}.duet-modal-inner.duet-modal-slide-up{padding:0;padding-top:28px}}.duet-modal{position:relative;width:100%;max-width:686px;margin:auto;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-weight:400;font-variant-numeric:tabular-nums;line-height:1.5;color:rgb(8, 42, 77);background:rgb(255, 255, 255);border-radius:16px;opacity:0;transition:300ms ease;transition-delay:0ms;transform:scale(0.96)}.duet-theme-turva .duet-modal{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-modal-active .duet-modal{opacity:1;transition:300ms ease;transition-delay:200ms;transform:none}.duet-modal-active .duet-modal.slide-up{top:0;transition:top 600ms ease}.duet-modal.loader{text-align:center;background:transparent}.duet-modal.loader .duet-modal-close{display:none}.duet-modal.loader .duet-modal-spinner{position:relative;height:120px}.duet-modal.loader .duet-modal-inner-slot-default{position:relative;backdrop-filter:blur(10px)}.duet-modal.loader duet-paragraph.duet-loader-message{position:absolute;opacity:0;transition:all 300ms ease;transform:scaleY(0);transform-origin:top}.duet-modal.loader duet-paragraph.duet-loader-message.show{opacity:1;transform:scaleY(1);transform-origin:bottom}.duet-modal.loader duet-paragraph.duet-loader-message.show::part(duet-paragraph){backdrop-filter:blur(10px)}.duet-disable-transitions .duet-modal{transition:none}.duet-modal.small{max-width:545px}.duet-modal.large{max-width:100%}@media (min-width: 36em){.duet-modal.large{max-width:1110px}}.duet-modal.slide-up{top:100vh;margin:0;overflow:auto;border-radius:16px 16px 0 0;opacity:1;transition:top 600ms ease}.duet-modal.duet-modal-has-sticky-header{height:100%;overflow:auto}.duet-modal:focus{outline:0}.duet-modal-body,.duet-modal-sticky-header{width:100%;padding:36px 28px}.duet-modal-body.duet-modal-gutter-none,.duet-modal-sticky-header.duet-modal-gutter-none{padding:0 !important}.duet-modal-body.duet-modal-gutter-small,.duet-modal-sticky-header.duet-modal-gutter-small{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}@media (max-width: 22.5em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 28px}}@media (max-width: 35.9375em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 20px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 36px}}@media (min-width: 36em){.duet-modal-body,.duet-modal-sticky-header{padding:36px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:28px 72px}}@media (min-width: 48em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 72px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:36px 72px}}@media (min-width: 76.25em){.duet-modal-body,.duet-modal-sticky-header{padding:36px 48px 48px}.duet-modal-body.duet-modal-gutter-large,.duet-modal-sticky-header.duet-modal-gutter-large{padding:48px 94px}.small .duet-modal-body,.small .duet-modal-sticky-header{padding:36px 48px}}.duet-modal-header{text-align:center}.duet-modal-sticky-header{position:sticky;top:0;z-index:300;display:block;padding-bottom:12px;text-align:left;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229);border-radius:16px 16px 0 0}.duet-theme-turva .duet-modal-sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-modal-close{position:absolute;top:8px;right:8px}.duet-modal-heading{width:100%;padding-right:60px;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-style:normal;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);text-decoration:none;text-overflow:ellipsis;letter-spacing:-0.01rem;white-space:nowrap}.duet-modal-heading.duet-p-0{padding:0 !important}.duet-modal-heading.duet-m-0{margin:0 !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-modal{color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .duet-modal-sticky-header{background:#fdf7f2;border-bottom:1px solid #d4dde2}';var v=y;var x=600;var k=e("duet_modal",function(){function e(e){t(this,e);this.duetOpen=i(this,"duetOpen",7);this.duetClose=i(this,"duetClose",7);this.duetCloseComplete=i(this,"duetCloseComplete",7);this.duetBeforeClose=i(this,"duetBeforeClose",7);var a,d;this.hasStickyHeader=false;this.isAndroidDevice=((d=(a=navigator===null||navigator===void 0?void 0:navigator.userAgent)===null||a===void 0?void 0:a.toLowerCase())===null||d===void 0?void 0:d.indexOf("android"))>-1||null;this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(navigator===null||navigator===void 0?void 0:navigator.userAgent);this.accessibleLoaderAnnouncementDefaults=s;this.accessibleCloseLabelDefaults={fi:"Sulje ikkuna",sv:"Stäng fönstret",en:"Close the dialog"};this.handleAndroidResizeEvents=function(){if(document.activeElement.tagName=="INPUT"){window.setTimeout((function(){var e;try{(e=document===null||document===void 0?void 0:document.activeElement)===null||e===void 0?void 0:e.scrollIntoViewIfNeeded(true)}catch(e){}}),100)}};this.open=false;this.language=c();this.accessibleCloseLabel=m(this.accessibleCloseLabelDefaults,this.language);this.accessibleLoaderAnnouncement=m(this.accessibleLoaderAnnouncementDefaults,this.language);this.size="medium";this.accessibleDescribedBy=undefined;this.accessibleLabelledBy=undefined;this.accessibleLabel=undefined;this.accessibleDetails=undefined;this.accessibleDescription=undefined;this.variation="default";this.gutterSize="medium";this.theme="";this.heading="";this.headingLevel="h3";this.headingVisualLevel=undefined;this.icon="";this.color="";this.active=false;this.closeOnBlur=false;this.focusElementOnClose=undefined;this.accessibleAnnounceChanges=undefined}e.prototype.openChanged=function(){var e=this;if(this.open){if(this.modalEl&&this.modalEl.scrollTop){this.modalEl.scrollTop=0}this.focusedElBeforeOpen=document.activeElement;o(this.variation==="slide-up"?this.modalContentEl:this.modalEl,{reserveScrollBarGap:true});this.teleport.makeSiblingsInert();this.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((function(e){return e.remove()}));setTimeout((function(){if(e.variation==="loader"){e.addMessage(e.accessibleLoaderAnnouncement,false)}else{if(e.isAndroidDevice){e.modalEl.focus()}else{e.buttonEl.setFocus()}}}),x);setTimeout((function(){e.modalEl.classList.add("duet-disable-transitions")}),x+200);if(this.isAndroidDevice){window.addEventListener("resize",this.handleAndroidResizeEvents)}this.duetOpen.emit()}else{this.modalEl.classList.remove("duet-disable-transitions");this.modalEl.addEventListener("transitionend",(function(){return e.duetCloseComplete.emit()}),{once:true});n(this.variation==="slide-up"?this.modalContentEl:this.modalEl);this.duetClose.emit();this.teleport.removeInertFromSiblings();if(this.focusElementOnClose!==""){setTimeout((function(){var t=e.focusedElBeforeOpen;if(typeof e.focusElementOnClose==="string"){t=document.getElementById(e.focusElementOnClose)||t}else{t=e.focusElementOnClose||t}u(t)}),x)}if(this.isAndroidDevice){window.removeEventListener("resize",this.handleAndroidResizeEvents)}}};e.prototype.activeChanged=function(){this.open=this.active};e.prototype.componentWillLoad=function(){this.hasStickyHeader=p(this.element,"sticky-header");r(this)};e.prototype.componentDidLoad=function(){if(this.active){this.open=true;this.modalEl.classList.add("duet-disable-transitions")}};e.prototype.connectedCallback=function(){if(!this.teleport){this.teleport=new g(this.element)}if(this.teleport){this.teleport.activate()}h(this,[{prop:"accessibleCloseLabel",defaults:"accessibleCloseLabelDefaults"},{prop:"accessibleLoaderAnnouncement",defaults:"accessibleLoaderAnnouncementDefaults"}])};e.prototype.disconnectedCallback=function(){f(this);if(this.modalEl){n(this.modalEl)}};e.prototype.handleKeyUp=function(e){if(this.open){if(l(e)){this.closeModal(e)}}};e.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.open=true;return[2]}))}))};e.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.open=false;return[2]}))}))};e.prototype.focusCloseButton=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.buttonEl.setFocus();return[2]}))}))};e.prototype.scrollToTop=function(){return __awaiter(this,arguments,void 0,(function(e){var t,i,a,d;if(e===void 0){e=true}return __generator(this,(function(o){i=e?"smooth":"auto";if(this.variation==="slide-up"){a=((t=this.modalEl.querySelector(".duet-modal-sticky-header"))===null||t===void 0?void 0:t.clientHeight)||0;d=this.modalEl.querySelector(".duet-modal-body").computedStyleMap().get("padding-top");this.slotContainerEl.style.scrollMarginTop="".concat(a+d.value,"px");this.slotContainerEl.scrollIntoView({behavior:i})}else{this.modalEl.querySelector(".duet-modal-body").scrollIntoView({behavior:i})}return[2]}))}))};e.prototype.addMessage=function(e){return __awaiter(this,arguments,void 0,(function(e,t){var i;var a=this;if(t===void 0){t=true}return __generator(this,(function(d){i=document.createElement(t?"duet-paragraph":"duet-visually-hidden");i.textContent=e;i.classList.add("duet-loader-message");if(t){setTimeout((function(){a.slotContainerEl.querySelectorAll(".duet-loader-message").forEach((function(e){return e.classList.remove("show")}));i.classList.add("show")}),10)}this.slotContainerEl.appendChild(i);return[2]}))}))};e.prototype.closeModal=function(e){var t=this;this.duetBeforeClose.emit({originalEvent:e,component:"duet-modal"});if(!e.defaultPrevented){setTimeout((function(){t.hide()}),1)}};e.prototype.render=function(){var e,t;var i=this;var d,o;var n=b("primary",this.theme);var r=b("secondary",this.theme);var s=a("div",{key:"9de636719074c96f49913c1a19b33329ae39a3a0",class:"duet-modal-close"},a("duet-button",{key:"1852a8322aaeb49c937cfd4b4d80d61073f12f96",ref:function(e){return i.buttonEl=e},variation:"plain",accessibleLabel:this.accessibleCloseLabel,color:r,iconSize:"large",icon:"navigation-close",iconOnly:true,margin:"none",theme:this.theme,onClick:function(e){return i.closeModal(e)},fixed:true}));return a("div",{key:"4c602c318db94b02ca730640b8c0c6fc7eb96453",ref:function(e){return i.modalEl=e},"aria-label":(d=this.accessibleLabel)!==null&&d!==void 0?d:this.heading,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-describedby":this.accessibleDescribedBy,role:this.variation==="loader"?"alert":"dialog","aria-modal":this.isSafariBrowser?false:true,tabindex:"-1",class:{"duet-modal-container":true,"duet-theme-turva":this.theme==="turva","duet-modal-active":this.open,"duet-modal-slide-up":this.variation==="slide-up","duet-modal-has-sticky-header":this.hasStickyHeader}},a("duet-overlay",{key:"c70e730388bdfa452ab51fb810304ba004022885","z-index":"-1",visible:this.open,variation:this.variation==="loader"?"white":"default"}),a("div",{key:"ceae3fcf909fdfa380eaddc2f8c9ac2637fc8810",ref:function(e){return i.modalInnerEl=e},class:(e={"duet-modal-inner":true},e[this.size]=true,e["duet-modal-slide-up"]=this.variation==="slide-up",e),onClick:function(e){if(i.closeOnBlur){var t=e.target||e.srcElement;if(t===i.modalInnerEl){i.closeModal(e)}}}},a("div",{key:"c0559f2b2d236a3e0fd339cd65900d400547fb70",ref:function(e){return i.modalContentEl=e},"aria-live":this.accessibleAnnounceChanges==="all"?"polite":null,"aria-atomic":this.accessibleAnnounceChanges==="all"?"true":null,class:(t={"duet-modal":true,"duet-modal-has-sticky-header":this.hasStickyHeader},t[this.size]=true,t[this.variation]=true,t)},this.gutterSize!=="none"&&!this.hasStickyHeader&&a("duet-spacer",{key:"81664165163cd30e192906cb50bb71a4906256ba"}),this.hasStickyHeader?a("div",{class:"duet-modal-sticky-header"},s,a("slot",{name:"sticky-header"})):s,a("div",{key:"92c81c3e5545b4a08b93b3174a888cc42837f2ac",class:{"duet-modal-body":true,"duet-modal-gutter-none":this.gutterSize==="none","duet-modal-gutter-small":this.gutterSize==="small","duet-modal-gutter-medium":this.gutterSize==="medium","duet-modal-gutter-large":this.gutterSize==="large"},"aria-live":this.accessibleAnnounceChanges==="heading"?"polite":null,"aria-atomic":this.accessibleAnnounceChanges==="heading"?"true":null},a("div",{key:"72936aa2c2d2551e34b2c2d7344f666d49c3d0f4",class:"duet-modal-header"},a("span",{key:"30ac91712c2d7065901679fcf1cd5cb0191cbb11",class:"duet-modal-inner-slot-top"},a("slot",{key:"c7e4bd42dfac73ebdfcf98f9d16438c14945d30b",name:"top"})),this.icon&&a("duet-icon",{key:"3664c556ad580c917e80e796df4236f89134ab9d",name:this.icon,size:"xx-large",color:this.color||n}),this.heading&&a("duet-heading",{key:"d77b16d2577ce36f4e135790a7f49d8a2b17096c","visual-level":(o=this.headingVisualLevel)!==null&&o!==void 0?o:this.headingLevel,level:this.headingLevel,theme:this.theme},this.heading)),this.variation==="loader"&&a("div",{key:"ed0fa900e15be0fef3166e61f2f7c860dab067f0",class:"duet-modal-spinner"},a("duet-spinner",{key:"1d15d8e837273755c1c6242098e198f51c1cda90",size:"large",color:b("primary",this.theme)})),a("div",{key:"4d06b9164f277a7cc586a6b754429764cccb1f2e","aria-live":this.variation==="loader"?"assertive":this.accessibleAnnounceChanges==="body"?"polite":null,"aria-atomic":this.accessibleAnnounceChanges==="body"?"true":null,class:"duet-modal-inner-slot-default",ref:function(e){return i.slotContainerEl=e}},a("slot",{key:"520b8542f921248916d3470204ce4ee2533da5ee"}))))))};Object.defineProperty(e.prototype,"element",{get:function(){return d(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{open:["openChanged"],active:["activeChanged"]}},enumerable:false,configurable:true});return e}());k.style=v}}}));
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,n,i){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function o(e){try{u(i["throw"](e))}catch(e){r(e)}}function u(e){e.done?n(e.value):a(e.value).then(s,o)}u((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,a,r,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return u([e,t])}}function u(o){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(n=0)),n)try{if(i=1,a&&(r=o[0]&2?a["return"]:o[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;if(a=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;a=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){n.label=o[1];break}if(o[0]===6&&n.label<r[1]){n.label=r[1];r=o;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(o);break}if(r[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];a=0}finally{i=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register(["./p-ed810e76.system.js","./p-4d81e7f6.system.js","./p-7fd0a219.system.js","./p-99ffd1cf.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,n,i,a,r,s;return{setters:[function(e){t=e.r;n=e.h;i=e.g},function(e){a=e.i},function(e){r=e.g},function(e){s=e.a},function(){}],execute:function(){var o=function(e,t){if(t===void 0){t=2}if(e===0){return"0 Bytes"}var n=1024;var i=t<0?0:t;var a=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"];var r=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,r)).toFixed(i))+" "+a[r]};var u=".file-link::part(duet-link){text-decoration:none}";var c=u;var d=e("duet_upload_item",function(){function e(e){var n=this;t(this,e);this.fileUploadingInfo={fi:"Tiedosto latautuu",sv:"Filen laddas upp",en:"File is uploading"};this.onLinkClick=function(e){var t=n.data,i=t.url,a=t.meta;if(!!n.linkClickEvent){e.preventDefault();n.linkClickEvent.emit({component:"duet-upload",data:{name:n.data.item.name,url:i,meta:a}})}};this.theme="";this.data=undefined;this.type=undefined;this.showLinks=undefined;this.actions=undefined;this.buttonTitles=undefined;this.label=undefined;this.categoryLabel=undefined;this.errorCodes=undefined;this.showCategory=undefined;this.linkClickEvent=undefined}e.prototype.componentWillLoad=function(){a(this)};e.prototype.focusActionButton=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!this.actionButton)return[3,2];return[4,this.actionButton.setFocus({preventScroll:true})];case 1:e.sent();this.actionButton.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"});e.label=2;case 2:return[2]}}))}))};e.prototype.getFileNameLine=function(){var e=this.data,t=e.item,i=e.size,a=e.uploaded,u=e.url,c=e.progress,d=e.error;var l=t.name;var f=n("span",{class:"duet-upload-item-name"},n("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),l);var h=n("span",{class:"duet-upload-item-size",style:{fontSize:"14px",fontWeight:"400"}},"(",o(i),")");switch(this.type){case"inprogress":return n("span",{class:"duet-upload-item-name",role:"status"},n("duet-paragraph",{class:"duet-upload-item-name",color:"gray-darker",margin:"none",weight:"semi-bold"},n("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),l),n("duet-visually-hidden",null,n("duet-paragraph",null,r(this.fileUploadingInfo))),n("duet-progress",{theme:this.theme,progress:Math.ceil(c),"aria-hidden":true}));case"pending":return n("span",{class:"duet-upload-item-name"},n("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),l);case"failure":return n("span",{class:"duet-upload-item-error",role:"status"},n("duet-paragraph",{class:"duet-upload-item-name",color:"danger",margin:"none",weight:"semi-bold"},n("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),l),n("duet-paragraph",{class:"duet-upload-item-error-label",size:"small",margin:"none",color:"danger"},s(d.type,this.errorCodes)));default:return a&&u&&this.showLinks?n("duet-paragraph",{color:"secondary",margin:"none",weight:"semi-bold"},n("duet-link",{class:"file-link",onClick:this.onLinkClick,url:u},f),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),h):n("duet-paragraph",{color:"secondary",margin:"none",weight:"semi-bold"},f,n("duet-spacer",{size:"xx-small",direction:"horizontal"}),h)}};e.prototype.getActionButtonTitle=function(e){if(this.buttonTitles[e.name]===true||this.buttonTitles[e.name]===false){return e}return r(this.buttonTitles[e.name])};e.prototype.render=function(){var e=this;var t=this.data,i=t.uid,a=t.meta,s=t.item;var o=a&&a.badges?n("span",null,a.badges.map((function(e){return n("duet-badge",{color:"primary"},e)}))):undefined;var u="".concat(a&&a.badges?a.badges.join(","):""," ").concat(s.name);return n("div",{key:"a0d382c608507d07d924abb73bcbbeffa09e0aee",class:{"upload-item-row":true}},this.showCategory&&n("div",{key:"4f7b9bb8c9494e062171d29e5cfc12a9a3e1027b",class:"item-categories"},n("duet-heading",{key:"477b02e94e76c857191fa6cd51f51bfd240bbbe7",class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},r(this.categoryLabel)),o),n("div",{key:"a12f1ea980d26df9122daf3dec6a4441716c88ff",class:{"item-name":true,"no-category":!this.showCategory}},!!this.label&&n("duet-heading",{key:"8cdca136f7a623a5b58fc863e02f15552ff73f0e",class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},r(this.label)),this.getFileNameLine()),n("div",{key:"33a97bcbb4daaf167e89fed5aacae4409b982177",class:"item-actions"},this.actions.map((function(t){return n("duet-action-button",{actionMeta:Object.assign({},a||{}),actionId:i||null,actionName:t.name,theme:e.theme,iconName:t.icon,iconColor:t.color,iconSize:t.size,background:t.background,"accessible-label":"".concat(u," ").concat(r(t.label)," "),accessibleTitle:e.getActionButtonTitle(t),ref:function(t){return e.actionButton=t}})}))))};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());d.style=c}}}));
4
+ */System.register(["./p-43d6b171.system.js","./p-cddad487.system.js","./p-1cc2eb98.system.js","./p-694e5a97.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,n,i,a,r,s;return{setters:[function(e){t=e.r;n=e.h;i=e.g},function(e){a=e.i},function(e){r=e.g},function(e){s=e.a},function(){}],execute:function(){var o=function(e,t){if(t===void 0){t=2}if(e===0){return"0 Bytes"}var n=1024;var i=t<0?0:t;var a=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"];var r=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,r)).toFixed(i))+" "+a[r]};var u=".file-link::part(duet-link){text-decoration:none}";var c=u;var d=e("duet_upload_item",function(){function e(e){var n=this;t(this,e);this.fileUploadingInfo={fi:"Tiedosto latautuu",sv:"Filen laddas upp",en:"File is uploading"};this.onLinkClick=function(e){var t=n.data,i=t.url,a=t.meta;if(!!n.linkClickEvent){e.preventDefault();n.linkClickEvent.emit({component:"duet-upload",data:{name:n.data.item.name,url:i,meta:a}})}};this.theme="";this.data=undefined;this.type=undefined;this.showLinks=undefined;this.actions=undefined;this.buttonTitles=undefined;this.label=undefined;this.categoryLabel=undefined;this.errorCodes=undefined;this.showCategory=undefined;this.linkClickEvent=undefined}e.prototype.componentWillLoad=function(){a(this)};e.prototype.focusActionButton=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!this.actionButton)return[3,2];return[4,this.actionButton.setFocus({preventScroll:true})];case 1:e.sent();this.actionButton.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"});e.label=2;case 2:return[2]}}))}))};e.prototype.getFileNameLine=function(){var e=this.data,t=e.item,i=e.size,a=e.uploaded,u=e.url,c=e.progress,d=e.error;var l=t.name;var f=n("span",{class:"duet-upload-item-name"},n("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),l);var h=n("span",{class:"duet-upload-item-size",style:{fontSize:"14px",fontWeight:"400"}},"(",o(i),")");switch(this.type){case"inprogress":return n("span",{class:"duet-upload-item-name",role:"status"},n("duet-paragraph",{class:"duet-upload-item-name",color:"gray-darker",margin:"none",weight:"semi-bold"},n("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),l),n("duet-visually-hidden",null,n("duet-paragraph",null,r(this.fileUploadingInfo))),n("duet-progress",{theme:this.theme,progress:Math.ceil(c),"aria-hidden":true}));case"pending":return n("span",{class:"duet-upload-item-name"},n("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),l);case"failure":return n("span",{class:"duet-upload-item-error",role:"status"},n("duet-paragraph",{class:"duet-upload-item-name",color:"danger",margin:"none",weight:"semi-bold"},n("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),l),n("duet-paragraph",{class:"duet-upload-item-error-label",size:"small",margin:"none",color:"danger"},s(d.type,this.errorCodes)));default:return a&&u&&this.showLinks?n("duet-paragraph",{color:"secondary",margin:"none",weight:"semi-bold"},n("duet-link",{class:"file-link",onClick:this.onLinkClick,url:u},f),n("duet-spacer",{size:"xx-small",direction:"horizontal"}),h):n("duet-paragraph",{color:"secondary",margin:"none",weight:"semi-bold"},f,n("duet-spacer",{size:"xx-small",direction:"horizontal"}),h)}};e.prototype.getActionButtonTitle=function(e){if(this.buttonTitles[e.name]===true||this.buttonTitles[e.name]===false){return e}return r(this.buttonTitles[e.name])};e.prototype.render=function(){var e=this;var t=this.data,i=t.uid,a=t.meta,s=t.item;var o=a&&a.badges?n("span",null,a.badges.map((function(e){return n("duet-badge",{color:"primary"},e)}))):undefined;var u="".concat(a&&a.badges?a.badges.join(","):""," ").concat(s.name);return n("div",{key:"a0d382c608507d07d924abb73bcbbeffa09e0aee",class:{"upload-item-row":true}},this.showCategory&&n("div",{key:"4f7b9bb8c9494e062171d29e5cfc12a9a3e1027b",class:"item-categories"},n("duet-heading",{key:"477b02e94e76c857191fa6cd51f51bfd240bbbe7",class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},r(this.categoryLabel)),o),n("div",{key:"a12f1ea980d26df9122daf3dec6a4441716c88ff",class:{"item-name":true,"no-category":!this.showCategory}},!!this.label&&n("duet-heading",{key:"8cdca136f7a623a5b58fc863e02f15552ff73f0e",class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},r(this.label)),this.getFileNameLine()),n("div",{key:"33a97bcbb4daaf167e89fed5aacae4409b982177",class:"item-actions"},this.actions.map((function(t){return n("duet-action-button",{actionMeta:Object.assign({},a||{}),actionId:i||null,actionName:t.name,theme:e.theme,iconName:t.icon,iconColor:t.color,iconSize:t.size,background:t.background,"accessible-label":"".concat(u," ").concat(r(t.label)," "),accessibleTitle:e.getActionButtonTitle(t),ref:function(t){return e.actionButton=t}})}))))};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());d.style=c}}}));