@duetds/components 8.2.1 → 8.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (634) hide show
  1. package/hydrate/index.js +53 -19
  2. package/lib/cjs/duet-action-button.cjs.entry.js +1 -1
  3. package/lib/cjs/duet-alert.cjs.entry.js +1 -1
  4. package/lib/cjs/duet-badge.cjs.entry.js +1 -1
  5. package/lib/cjs/duet-banner.cjs.entry.js +1 -1
  6. package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
  7. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
  8. package/lib/cjs/duet-button_2.cjs.entry.js +4 -3
  9. package/lib/cjs/duet-callout.cjs.entry.js +1 -1
  10. package/lib/cjs/duet-caption_4.cjs.entry.js +4 -2
  11. package/lib/cjs/duet-card.cjs.entry.js +1 -1
  12. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  13. package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
  14. package/lib/cjs/duet-chip.cjs.entry.js +1 -1
  15. package/lib/cjs/duet-choice_2.cjs.entry.js +4 -3
  16. package/lib/cjs/duet-collapsible.cjs.entry.js +1 -1
  17. package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
  18. package/lib/cjs/duet-contact-card.cjs.entry.js +1 -1
  19. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  20. package/lib/cjs/duet-date-picker.cjs.entry.js +4 -2
  21. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  22. package/lib/cjs/duet-editable-table_3.cjs.entry.js +1 -1
  23. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  24. package/lib/cjs/duet-fieldset.cjs.entry.js +2 -2
  25. package/lib/cjs/duet-file-chooser.cjs.entry.js +1 -1
  26. package/lib/cjs/duet-footer.cjs.entry.js +1 -1
  27. package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
  28. package/lib/cjs/duet-header_2.cjs.entry.js +1 -1
  29. package/lib/cjs/duet-hero.cjs.entry.js +1 -1
  30. package/lib/cjs/duet-icon.cjs.entry.js +1 -1
  31. package/lib/cjs/duet-input_2.cjs.entry.js +4 -3
  32. package/lib/cjs/duet-layout.cjs.entry.js +1 -1
  33. package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
  34. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +1 -1
  35. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
  36. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
  37. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
  38. package/lib/cjs/duet-menu-bar.cjs.entry.js +1 -1
  39. package/lib/cjs/duet-modal.cjs.entry.js +2 -2
  40. package/lib/cjs/duet-multiselect.cjs.entry.js +4 -3
  41. package/lib/cjs/duet-nav.cjs.entry.js +1 -1
  42. package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
  43. package/lib/cjs/duet-number-input.cjs.entry.js +3 -2
  44. package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
  45. package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
  46. package/lib/cjs/duet-popup-menu-item.cjs.entry.js +1 -1
  47. package/lib/cjs/duet-popup-menu.cjs.entry.js +2 -2
  48. package/lib/cjs/duet-progress.cjs.entry.js +1 -1
  49. package/lib/cjs/duet-promo-card.cjs.entry.js +1 -1
  50. package/lib/cjs/duet-radio_2.cjs.entry.js +3 -2
  51. package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
  52. package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
  53. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
  54. package/lib/cjs/duet-select.cjs.entry.js +4 -3
  55. package/lib/cjs/duet-shaped-image.cjs.entry.js +1 -1
  56. package/lib/cjs/duet-show-more.cjs.entry.js +1 -1
  57. package/lib/cjs/duet-slideout-lang.cjs.entry.js +1 -1
  58. package/lib/cjs/duet-slideout-link.cjs.entry.js +1 -1
  59. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
  60. package/lib/cjs/duet-slideout-panel.cjs.entry.js +2 -2
  61. package/lib/cjs/duet-slideout.cjs.entry.js +13 -7
  62. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  63. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
  64. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +1 -1
  65. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
  66. package/lib/cjs/duet-submenu-bar.cjs.entry.js +1 -1
  67. package/lib/cjs/duet-textarea.cjs.entry.js +4 -3
  68. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  69. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -1
  70. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
  71. package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
  72. package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
  73. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +2 -2
  74. package/lib/cjs/duet-tooltip.cjs.entry.js +1 -1
  75. package/lib/cjs/duet-tray.cjs.entry.js +1 -1
  76. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  77. package/lib/cjs/duet-upload-item.cjs.entry.js +1 -1
  78. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  79. package/lib/cjs/duet.cjs.js +2 -2
  80. package/lib/cjs/{focus-utils-da71e7a7.js → focus-utils-cb2699e7.js} +1 -1
  81. package/lib/cjs/{index-476807e3.js → index-c51398ac.js} +1 -1
  82. package/lib/cjs/loader.cjs.js +2 -2
  83. package/lib/collection/components/duet-action-button/duet-action-button.js +2 -2
  84. package/lib/collection/components/duet-alert/duet-alert.js +1 -1
  85. package/lib/collection/components/duet-button/duet-button.css +14 -8
  86. package/lib/collection/components/duet-button/duet-button.js +7 -6
  87. package/lib/collection/components/duet-caption/duet-caption.js +1 -1
  88. package/lib/collection/components/duet-card/duet-card.js +3 -3
  89. package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
  90. package/lib/collection/components/duet-chip/duet-chip.js +5 -5
  91. package/lib/collection/components/duet-choice/duet-choice.js +3 -3
  92. package/lib/collection/components/duet-choice-group/duet-choice-group.js +5 -1
  93. package/lib/collection/components/duet-collapsible/duet-collapsible.js +3 -3
  94. package/lib/collection/components/duet-combobox/duet-combobox.js +3 -3
  95. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
  96. package/lib/collection/components/duet-date-picker/date-picker-input.js +2 -1
  97. package/lib/collection/components/duet-date-picker/duet-date-picker.js +7 -4
  98. package/lib/collection/components/duet-divider/duet-divider.js +1 -1
  99. package/lib/collection/components/duet-editable-table/duet-editable-table.js +5 -5
  100. package/lib/collection/components/duet-empty-state/duet-empty-state.js +1 -1
  101. package/lib/collection/components/duet-fieldset/duet-fieldset.js +1 -1
  102. package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
  103. package/lib/collection/components/duet-footer/duet-footer.js +7 -7
  104. package/lib/collection/components/duet-grid/duet-grid.js +3 -3
  105. package/lib/collection/components/duet-header/duet-header.js +15 -15
  106. package/lib/collection/components/duet-heading/duet-heading.css +18 -0
  107. package/lib/collection/components/duet-heading/duet-heading.js +21 -1
  108. package/lib/collection/components/duet-hero/duet-hero.js +5 -5
  109. package/lib/collection/components/duet-input/duet-input.css +4 -2
  110. package/lib/collection/components/duet-input/duet-input.js +13 -9
  111. package/lib/collection/components/duet-label/duet-label.js +2 -2
  112. package/lib/collection/components/duet-layout/duet-layout.js +1 -1
  113. package/lib/collection/components/duet-list/duet-list.js +3 -3
  114. package/lib/collection/components/duet-logo/duet-logo.js +1 -1
  115. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +1 -1
  116. package/lib/collection/components/duet-modal/duet-modal.js +4 -4
  117. package/lib/collection/components/duet-multiselect/duet-multiselect.css +4 -2
  118. package/lib/collection/components/duet-multiselect/duet-multiselect.js +10 -6
  119. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +1 -1
  120. package/lib/collection/components/duet-number-input/duet-number-input.js +9 -5
  121. package/lib/collection/components/duet-pagination/duet-pagination.js +2 -2
  122. package/lib/collection/components/duet-paragraph/duet-paragraph.js +3 -3
  123. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +1 -1
  124. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
  125. package/lib/collection/components/duet-radio/duet-radio.js +3 -3
  126. package/lib/collection/components/duet-radio-group/duet-radio-group.js +5 -1
  127. package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
  128. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +1 -1
  129. package/lib/collection/components/duet-select/duet-select.css +4 -2
  130. package/lib/collection/components/duet-select/duet-select.js +10 -6
  131. package/lib/collection/components/duet-show-more/duet-show-more.js +1 -1
  132. package/lib/collection/components/duet-slideout/duet-slideout.js +12 -6
  133. package/lib/collection/components/duet-spacer/duet-spacer.js +2 -2
  134. package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
  135. package/lib/collection/components/duet-step/duet-step.js +2 -2
  136. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  137. package/lib/collection/components/duet-tab-group/duet-tab-group.js +5 -5
  138. package/lib/collection/components/duet-textarea/duet-textarea.css +4 -2
  139. package/lib/collection/components/duet-textarea/duet-textarea.js +9 -5
  140. package/lib/collection/components/duet-toggle/duet-toggle.js +1 -1
  141. package/lib/collection/components/duet-tooltip/duet-tooltip.js +1 -1
  142. package/lib/collection/components/duet-upload/duet-upload.js +14 -14
  143. package/lib/collection/components/duet-upload-item/duet-upload-item.js +1 -1
  144. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  145. package/lib/dist-custom-elements/duet-alert.js +1 -1
  146. package/lib/dist-custom-elements/duet-badge.js +1 -1
  147. package/lib/dist-custom-elements/duet-banner.js +3 -3
  148. package/lib/dist-custom-elements/duet-breadcrumb.js +3 -3
  149. package/lib/dist-custom-elements/duet-breadcrumbs.js +1 -1
  150. package/lib/dist-custom-elements/duet-button.js +1 -1
  151. package/lib/dist-custom-elements/duet-callout.js +2 -2
  152. package/lib/dist-custom-elements/duet-caption.js +1 -1
  153. package/lib/dist-custom-elements/duet-card.js +3 -3
  154. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  155. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  156. package/lib/dist-custom-elements/duet-chip.js +2 -2
  157. package/lib/dist-custom-elements/duet-choice-group.js +10 -9
  158. package/lib/dist-custom-elements/duet-choice.js +5 -5
  159. package/lib/dist-custom-elements/duet-collapsible.js +2 -2
  160. package/lib/dist-custom-elements/duet-combobox.js +2 -2
  161. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  162. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  163. package/lib/dist-custom-elements/duet-date-picker.js +15 -13
  164. package/lib/dist-custom-elements/duet-divider.js +1 -1
  165. package/lib/dist-custom-elements/duet-editable-table.js +7 -7
  166. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  167. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  168. package/lib/dist-custom-elements/duet-file-chooser.js +2 -2
  169. package/lib/dist-custom-elements/duet-footer.js +4 -4
  170. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  171. package/lib/dist-custom-elements/duet-grid.js +1 -1
  172. package/lib/dist-custom-elements/duet-header.js +8 -8
  173. package/lib/dist-custom-elements/duet-heading.js +1 -1
  174. package/lib/dist-custom-elements/duet-hero.js +9 -9
  175. package/lib/dist-custom-elements/duet-icon.js +1 -1
  176. package/lib/dist-custom-elements/duet-input.js +1 -1
  177. package/lib/dist-custom-elements/duet-label.js +1 -1
  178. package/lib/dist-custom-elements/duet-layout.js +1 -1
  179. package/lib/dist-custom-elements/duet-link.js +1 -1
  180. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  181. package/lib/dist-custom-elements/duet-list.js +1 -1
  182. package/lib/dist-custom-elements/duet-logo.js +1 -1
  183. package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
  184. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
  185. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
  186. package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
  187. package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
  188. package/lib/dist-custom-elements/duet-modal.js +7 -7
  189. package/lib/dist-custom-elements/duet-multiselect.js +12 -11
  190. package/lib/dist-custom-elements/duet-nav.js +1 -1
  191. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  192. package/lib/dist-custom-elements/duet-notification.js +2 -2
  193. package/lib/dist-custom-elements/duet-number-input.js +14 -13
  194. package/lib/dist-custom-elements/duet-page-heading.js +2 -2
  195. package/lib/dist-custom-elements/duet-pagination.js +13 -13
  196. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  197. package/lib/dist-custom-elements/duet-popup-menu-item.js +2 -2
  198. package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
  199. package/lib/dist-custom-elements/duet-progress.js +1 -1
  200. package/lib/dist-custom-elements/duet-promo-card.js +3 -3
  201. package/lib/dist-custom-elements/duet-radio-group.js +10 -9
  202. package/lib/dist-custom-elements/duet-radio.js +1 -1
  203. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  204. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  205. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  206. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  207. package/lib/dist-custom-elements/duet-select.js +1 -1
  208. package/lib/dist-custom-elements/duet-shaped-image.js +1 -1
  209. package/lib/dist-custom-elements/duet-show-more.js +5 -5
  210. package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
  211. package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
  212. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
  213. package/lib/dist-custom-elements/duet-slideout-panel.js +2 -2
  214. package/lib/dist-custom-elements/duet-slideout.js +13 -7
  215. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  216. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  217. package/lib/dist-custom-elements/duet-step.js +4 -4
  218. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  219. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
  220. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +2 -2
  221. package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
  222. package/lib/dist-custom-elements/duet-submenu-bar.js +2 -2
  223. package/lib/dist-custom-elements/duet-tab-group.js +13 -13
  224. package/lib/dist-custom-elements/duet-tab.js +1 -1
  225. package/lib/dist-custom-elements/duet-table.js +1 -1
  226. package/lib/dist-custom-elements/duet-textarea.js +14 -13
  227. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  228. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
  229. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
  230. package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
  231. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  232. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  233. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  234. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  235. package/lib/dist-custom-elements/duet-tray.js +3 -3
  236. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  237. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  238. package/lib/dist-custom-elements/duet-upload.js +18 -18
  239. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  240. package/lib/dist-custom-elements/index.js +1 -1
  241. package/lib/dist-custom-elements/{p-7ce0e8cb.js → p-029fba28.js} +3 -3
  242. package/lib/dist-custom-elements/{p-90b6ffe0.js → p-046d07ed.js} +1 -1
  243. package/lib/dist-custom-elements/{p-1361c08f.js → p-09d8f6b5.js} +5 -5
  244. package/lib/dist-custom-elements/{p-f58b3efe.js → p-0fcede3e.js} +1 -1
  245. package/lib/dist-custom-elements/{p-4daba3d3.js → p-14821771.js} +1 -1
  246. package/lib/dist-custom-elements/{p-02c14895.js → p-178bd8b5.js} +1 -1
  247. package/lib/dist-custom-elements/{p-3ddc40a1.js → p-1f650bb2.js} +1 -1
  248. package/lib/dist-custom-elements/{p-fb2961bc.js → p-275c9f06.js} +2 -2
  249. package/lib/dist-custom-elements/{p-8bbf3e55.js → p-284885b1.js} +1 -1
  250. package/lib/dist-custom-elements/{p-60bba731.js → p-32b58440.js} +1 -1
  251. package/lib/dist-custom-elements/{p-fb75af05.js → p-3c266b7f.js} +1 -1
  252. package/lib/dist-custom-elements/{p-d19bb914.js → p-4207df32.js} +12 -11
  253. package/lib/dist-custom-elements/{p-7e52554a.js → p-48fe3f3e.js} +2 -2
  254. package/lib/dist-custom-elements/{p-dfd971b5.js → p-501109c4.js} +13 -12
  255. package/lib/dist-custom-elements/{p-62ee9ce2.js → p-5b940d4e.js} +3 -3
  256. package/lib/dist-custom-elements/{p-fa61d4fa.js → p-69f3125f.js} +1 -1
  257. package/lib/dist-custom-elements/{p-98996152.js → p-6db359de.js} +10 -10
  258. package/lib/dist-custom-elements/{p-9d8b2fae.js → p-6f02cea5.js} +6 -3
  259. package/lib/dist-custom-elements/{p-92471963.js → p-78ce0ce1.js} +5 -5
  260. package/lib/dist-custom-elements/{p-7765439c.js → p-a7f2d134.js} +3 -3
  261. package/lib/dist-custom-elements/{p-cf11c857.js → p-ab998a0f.js} +1 -1
  262. package/lib/dist-custom-elements/{p-6f1d95ff.js → p-bbff917c.js} +5 -5
  263. package/lib/dist-custom-elements/{p-53d82662.js → p-bdade4f6.js} +1 -1
  264. package/lib/dist-custom-elements/{p-ac901c78.js → p-c2ee0b56.js} +1 -1
  265. package/lib/dist-custom-elements/{p-ef876cc5.js → p-c3d0fd5f.js} +1 -1
  266. package/lib/dist-custom-elements/{p-b9582cd5.js → p-d1db33b3.js} +1 -1
  267. package/lib/dist-custom-elements/{p-def0c88d.js → p-d4a52c78.js} +1 -1
  268. package/lib/dist-custom-elements/{p-d91f6a50.js → p-d82ca991.js} +1 -1
  269. package/lib/dist-custom-elements/{p-92d1b647.js → p-ded7900f.js} +2 -2
  270. package/lib/dist-custom-elements/{p-eeb33e81.js → p-dfbd66be.js} +1 -1
  271. package/lib/dist-custom-elements/{p-21a6a70e.js → p-e9b96f04.js} +2 -2
  272. package/lib/dist-custom-elements/{p-fa713963.js → p-ea75dc3b.js} +1 -1
  273. package/lib/dist-custom-elements/{p-c5aebc44.js → p-f26cc3be.js} +2 -2
  274. package/lib/dist-custom-elements/{p-62198405.js → p-f37bade9.js} +7 -6
  275. package/lib/duet/duet.esm.js +1 -1
  276. package/lib/duet/duet.js +1 -1
  277. package/lib/duet/p-00b69a62.system.entry.js +4 -0
  278. package/lib/duet/{p-e4fed586.system.entry.js → p-00c58945.system.entry.js} +1 -1
  279. package/lib/duet/{p-e19b5fc8.entry.js → p-03043dae.entry.js} +1 -1
  280. package/lib/duet/{p-4f114158.system.entry.js → p-03380a61.system.entry.js} +1 -1
  281. package/lib/duet/{p-1fa8902f.system.entry.js → p-04dc3f5f.system.entry.js} +1 -1
  282. package/lib/duet/{p-b26b5e62.system.entry.js → p-0667f70f.system.entry.js} +1 -1
  283. package/lib/duet/{p-52643881.entry.js → p-076b9333.entry.js} +1 -1
  284. package/lib/duet/{p-f7a1f763.system.entry.js → p-0906d9df.system.entry.js} +1 -1
  285. package/lib/duet/{p-5c7f3468.system.entry.js → p-0b5a8f35.system.entry.js} +1 -1
  286. package/lib/duet/{p-5a2a0090.entry.js → p-0c61244e.entry.js} +1 -1
  287. package/lib/duet/{p-e486de80.system.entry.js → p-0d7d648a.system.entry.js} +1 -1
  288. package/lib/duet/p-0dd40c9c.entry.js +4 -0
  289. package/lib/duet/{p-0722dab6.system.entry.js → p-0fd839a0.system.entry.js} +1 -1
  290. package/lib/duet/{p-23fa9346.system.entry.js → p-10a2a9c1.system.entry.js} +1 -1
  291. package/lib/duet/p-111e21bb.system.entry.js +4 -0
  292. package/lib/duet/{p-fdb8dfcc.entry.js → p-11481bd0.entry.js} +1 -1
  293. package/lib/duet/{p-0630aa90.system.entry.js → p-127dcd36.system.entry.js} +1 -1
  294. package/lib/duet/{p-7df079f9.system.entry.js → p-133bd9d0.system.entry.js} +1 -1
  295. package/lib/duet/{p-d4948057.system.entry.js → p-1420bc81.system.entry.js} +1 -1
  296. package/lib/duet/{p-a7936672.system.entry.js → p-1abfbe28.system.entry.js} +1 -1
  297. package/lib/duet/{p-6cf47679.entry.js → p-1bbf5af6.entry.js} +1 -1
  298. package/lib/duet/{p-291b0ada.system.entry.js → p-1bdd4caa.system.entry.js} +1 -1
  299. package/lib/duet/{p-ca0b364e.system.entry.js → p-1c9a6018.system.entry.js} +1 -1
  300. package/lib/duet/{p-d5d42770.entry.js → p-202208dc.entry.js} +1 -1
  301. package/lib/duet/{p-67717c78.system.entry.js → p-2395f607.system.entry.js} +1 -1
  302. package/lib/duet/{p-64ea72f4.js → p-27bdda1e.js} +1 -1
  303. package/lib/duet/{p-60aecb64.system.entry.js → p-280b2ecc.system.entry.js} +1 -1
  304. package/lib/duet/p-295179c8.system.entry.js +4 -0
  305. package/lib/duet/{p-170a5c9e.entry.js → p-2c02c786.entry.js} +1 -1
  306. package/lib/duet/{p-ee38290b.entry.js → p-2d9cdfdb.entry.js} +1 -1
  307. package/lib/duet/{p-3c394198.entry.js → p-2db24634.entry.js} +1 -1
  308. package/lib/duet/{p-4d7c105a.entry.js → p-35811c5b.entry.js} +1 -1
  309. package/lib/duet/p-36c95931.system.entry.js +4 -0
  310. package/lib/duet/{p-a8559573.system.entry.js → p-371692de.system.entry.js} +1 -1
  311. package/lib/duet/{p-9dfe770b.entry.js → p-37be8296.entry.js} +1 -1
  312. package/lib/duet/{p-1824a282.system.entry.js → p-37d69db5.system.entry.js} +1 -1
  313. package/lib/duet/{p-e34b15a6.system.entry.js → p-3a63ecd6.system.entry.js} +1 -1
  314. package/lib/duet/p-3ca93619.system.entry.js +4 -0
  315. package/lib/duet/{p-c8f93bef.system.entry.js → p-3ccb1ee3.system.entry.js} +1 -1
  316. package/lib/duet/{p-3108add4.entry.js → p-3e03e275.entry.js} +1 -1
  317. package/lib/duet/{p-bd0bd000.system.entry.js → p-3ecd388c.system.entry.js} +1 -1
  318. package/lib/duet/{p-718c8ee1.entry.js → p-3fab3c3d.entry.js} +1 -1
  319. package/lib/duet/p-42cfad67.system.entry.js +4 -0
  320. package/lib/duet/{p-bd4ae595.system.entry.js → p-42e4ee86.system.entry.js} +1 -1
  321. package/lib/duet/p-4921ff47.entry.js +4 -0
  322. package/lib/duet/{p-8fed0e13.entry.js → p-4a397383.entry.js} +1 -1
  323. package/lib/duet/{p-d8d7858c.system.entry.js → p-4d9e4286.system.entry.js} +1 -1
  324. package/lib/duet/{p-249b4cfc.entry.js → p-4dd4b992.entry.js} +1 -1
  325. package/lib/duet/{p-3990d92d.entry.js → p-52091e26.entry.js} +1 -1
  326. package/lib/duet/{p-8ec80833.system.js → p-52737afc.system.js} +1 -1
  327. package/lib/duet/{p-5915fe9e.system.entry.js → p-52c59c2c.system.entry.js} +1 -1
  328. package/lib/duet/{p-06806757.system.entry.js → p-534e202a.system.entry.js} +1 -1
  329. package/lib/duet/{p-794782cd.entry.js → p-550162dd.entry.js} +1 -1
  330. package/lib/duet/{p-8d4bc222.system.entry.js → p-551ecb84.system.entry.js} +1 -1
  331. package/lib/duet/p-579d7632.entry.js +4 -0
  332. package/lib/duet/{p-cc73b676.system.entry.js → p-59eeaac0.system.entry.js} +1 -1
  333. package/lib/duet/{p-ec831316.system.entry.js → p-5d8d866f.system.entry.js} +2 -2
  334. package/lib/duet/{p-242a4d9e.system.entry.js → p-5f54e38a.system.entry.js} +1 -1
  335. package/lib/duet/{p-9bdd5e77.entry.js → p-5f71c6eb.entry.js} +1 -1
  336. package/lib/duet/{p-1b63c721.entry.js → p-61d46f06.entry.js} +1 -1
  337. package/lib/duet/{p-9d17d1e2.entry.js → p-65316fb3.entry.js} +1 -1
  338. package/lib/duet/p-660bc31f.entry.js +4 -0
  339. package/lib/duet/{p-73537a10.entry.js → p-6720adb2.entry.js} +1 -1
  340. package/lib/duet/{p-bc51e56f.entry.js → p-6d186557.entry.js} +1 -1
  341. package/lib/duet/{p-f55b70ae.system.entry.js → p-6edbe47c.system.entry.js} +1 -1
  342. package/lib/duet/{p-464c06a5.system.entry.js → p-6fdbd448.system.entry.js} +1 -1
  343. package/lib/duet/p-7023e868.system.entry.js +4 -0
  344. package/lib/duet/{p-9d0c29ad.system.entry.js → p-723172a8.system.entry.js} +1 -1
  345. package/lib/duet/{p-03151e84.entry.js → p-7308b57e.entry.js} +1 -1
  346. package/lib/duet/{p-e1d67353.system.entry.js → p-74553378.system.entry.js} +1 -1
  347. package/lib/duet/{p-faffedeb.system.entry.js → p-74591e44.system.entry.js} +1 -1
  348. package/lib/duet/{p-d491fdf1.entry.js → p-75ceea2b.entry.js} +1 -1
  349. package/lib/duet/{p-a9a76005.system.entry.js → p-78a54e54.system.entry.js} +1 -1
  350. package/lib/duet/{p-176660e8.system.entry.js → p-78a7f821.system.entry.js} +1 -1
  351. package/lib/duet/{p-c35fd74a.entry.js → p-7b6abc82.entry.js} +1 -1
  352. package/lib/duet/{p-794089ad.entry.js → p-7bb37b2e.entry.js} +1 -1
  353. package/lib/duet/{p-e171d23b.entry.js → p-7e1fe8b7.entry.js} +1 -1
  354. package/lib/duet/{p-aaf90349.entry.js → p-7ef64069.entry.js} +1 -1
  355. package/lib/duet/{p-e8fdc3d1.system.entry.js → p-7fd43c03.system.entry.js} +1 -1
  356. package/lib/duet/{p-c0b9535b.system.entry.js → p-831c1f80.system.entry.js} +1 -1
  357. package/lib/duet/{p-4ef9dde8.entry.js → p-86285221.entry.js} +1 -1
  358. package/lib/duet/{p-3e613ecb.system.entry.js → p-87565d7d.system.entry.js} +1 -1
  359. package/lib/duet/{p-64bb15cb.system.entry.js → p-88378c4b.system.entry.js} +1 -1
  360. package/lib/duet/{p-ce25c1c7.entry.js → p-88d19807.entry.js} +1 -1
  361. package/lib/duet/{p-f75db096.system.entry.js → p-89db0472.system.entry.js} +1 -1
  362. package/lib/duet/p-8b9c411d.entry.js +4 -0
  363. package/lib/duet/{p-062c3e81.entry.js → p-8dbbed25.entry.js} +1 -1
  364. package/lib/duet/{p-a8eba5d8.entry.js → p-9090cf21.entry.js} +1 -1
  365. package/lib/duet/{p-48eaa47f.entry.js → p-932d0abe.entry.js} +1 -1
  366. package/lib/duet/{p-519053d9.entry.js → p-9418d9ff.entry.js} +1 -1
  367. package/lib/duet/{p-c00ee143.system.entry.js → p-94c3e67c.system.entry.js} +1 -1
  368. package/lib/duet/{p-1c9be86d.entry.js → p-956c677f.entry.js} +1 -1
  369. package/lib/duet/{p-91dd51f0.system.entry.js → p-9699d4f1.system.entry.js} +1 -1
  370. package/lib/duet/p-9a352bf1.entry.js +4 -0
  371. package/lib/duet/p-9ab87585.system.entry.js +4 -0
  372. package/lib/duet/{p-876e256a.js → p-9f931d57.js} +1 -1
  373. package/lib/duet/{p-90626a7c.system.entry.js → p-a014d5d9.system.entry.js} +1 -1
  374. package/lib/duet/p-a1093ef2.entry.js +4 -0
  375. package/lib/duet/{p-94cc7d1b.system.entry.js → p-a2fb2ad9.system.entry.js} +1 -1
  376. package/lib/duet/p-a5e3febc.system.entry.js +4 -0
  377. package/lib/duet/{p-64b33796.entry.js → p-a70e6c6f.entry.js} +1 -1
  378. package/lib/duet/{p-45e34e81.system.entry.js → p-a75e499e.system.entry.js} +1 -1
  379. package/lib/duet/{p-ab2b432f.entry.js → p-aa38094c.entry.js} +1 -1
  380. package/lib/duet/{p-7f1ffc72.system.entry.js → p-aab87987.system.entry.js} +1 -1
  381. package/lib/duet/{p-81b98ab3.system.entry.js → p-ad200bf7.system.entry.js} +1 -1
  382. package/lib/duet/{p-77d702b7.system.entry.js → p-b17fc03d.system.entry.js} +1 -1
  383. package/lib/duet/{p-cb139257.system.entry.js → p-b230e70f.system.entry.js} +1 -1
  384. package/lib/duet/{p-b283d96a.entry.js → p-b3ee2fd3.entry.js} +1 -1
  385. package/lib/duet/{p-111837dd.entry.js → p-b57852d2.entry.js} +1 -1
  386. package/lib/duet/{p-f59d22b9.system.entry.js → p-b83e0014.system.entry.js} +1 -1
  387. package/lib/duet/{p-aa752b66.entry.js → p-b84be662.entry.js} +1 -1
  388. package/lib/duet/{p-f61f51f8.entry.js → p-ba9103db.entry.js} +1 -1
  389. package/lib/duet/p-bbd9ecae.entry.js +4 -0
  390. package/lib/duet/{p-f203d34a.system.entry.js → p-bd9e5b2b.system.entry.js} +1 -1
  391. package/lib/duet/{p-cdabe32b.entry.js → p-c0397a25.entry.js} +1 -1
  392. package/lib/duet/p-c1175891.entry.js +4 -0
  393. package/lib/duet/{p-b612619b.system.entry.js → p-c3722531.system.entry.js} +1 -1
  394. package/lib/duet/{p-5d924446.system.entry.js → p-c3832cba.system.entry.js} +1 -1
  395. package/lib/duet/{p-778a8d70.entry.js → p-c3be7176.entry.js} +1 -1
  396. package/lib/duet/{p-aab68cd0.system.entry.js → p-c641c3b4.system.entry.js} +1 -1
  397. package/lib/duet/{p-6e4a159f.entry.js → p-c75daf42.entry.js} +1 -1
  398. package/lib/duet/{p-551b5f11.entry.js → p-c8a02bae.entry.js} +1 -1
  399. package/lib/duet/{p-9072403e.entry.js → p-c90bc08e.entry.js} +1 -1
  400. package/lib/duet/p-cc4683e0.system.entry.js +4 -0
  401. package/lib/duet/p-ccd19d96.entry.js +4 -0
  402. package/lib/duet/{p-01bcca95.system.entry.js → p-cd1d3fe8.system.entry.js} +1 -1
  403. package/lib/duet/p-cdc6b261.entry.js +4 -0
  404. package/lib/duet/{p-3adf25ca.entry.js → p-ce96df8c.entry.js} +1 -1
  405. package/lib/duet/{p-299c3869.entry.js → p-cee353f7.entry.js} +1 -1
  406. package/lib/duet/{p-1bca2d80.entry.js → p-d1d036d5.entry.js} +1 -1
  407. package/lib/duet/{p-5dee116e.system.js → p-d1deec62.system.js} +1 -1
  408. package/lib/duet/{p-369303cc.entry.js → p-d6154923.entry.js} +1 -1
  409. package/lib/duet/{p-fb4a0c88.system.entry.js → p-d69aa4c2.system.entry.js} +1 -1
  410. package/lib/duet/{p-4fd91269.entry.js → p-d840ef25.entry.js} +1 -1
  411. package/lib/duet/p-daf4b399.entry.js +4 -0
  412. package/lib/duet/{p-c564ed20.system.entry.js → p-db48c8ed.system.entry.js} +1 -1
  413. package/lib/duet/{p-5cdab2eb.entry.js → p-de652eff.entry.js} +1 -1
  414. package/lib/duet/{p-6aaaf3d3.entry.js → p-e00f28fc.entry.js} +1 -1
  415. package/lib/duet/{p-ceef02de.entry.js → p-e2347276.entry.js} +1 -1
  416. package/lib/duet/{p-59648317.entry.js → p-e4bd0d7b.entry.js} +1 -1
  417. package/lib/duet/{p-f2946931.entry.js → p-e6949dbe.entry.js} +1 -1
  418. package/lib/duet/{p-aafc24b8.system.entry.js → p-e7b955f6.system.entry.js} +1 -1
  419. package/lib/duet/{p-00519b3f.entry.js → p-ea4fda73.entry.js} +1 -1
  420. package/lib/duet/{p-0db9f9d3.system.entry.js → p-ebc2f8fc.system.entry.js} +1 -1
  421. package/lib/duet/{p-b0810e57.system.entry.js → p-ecef885c.system.entry.js} +1 -1
  422. package/lib/duet/{p-ad80b81c.entry.js → p-eddc7880.entry.js} +1 -1
  423. package/lib/duet/p-eed152d0.system.js +4 -0
  424. package/lib/duet/{p-ca4a28ae.entry.js → p-efa9e31e.entry.js} +1 -1
  425. package/lib/duet/{p-aeb8e304.entry.js → p-efe336c5.entry.js} +1 -1
  426. package/lib/duet/p-f08d659e.entry.js +4 -0
  427. package/lib/duet/{p-f16eb916.entry.js → p-f237623c.entry.js} +1 -1
  428. package/lib/duet/{p-ed0a66cb.system.entry.js → p-f2f0f553.system.entry.js} +1 -1
  429. package/lib/duet/{p-f3fe9cd3.system.entry.js → p-f54f5ef3.system.entry.js} +1 -1
  430. package/lib/duet/{p-41bf8f79.system.entry.js → p-f637700c.system.entry.js} +1 -1
  431. package/lib/duet/{p-8a4f3512.entry.js → p-f64ba41c.entry.js} +1 -1
  432. package/lib/duet/{p-373772b4.entry.js → p-f65559ab.entry.js} +1 -1
  433. package/lib/duet/{p-f9c7c607.entry.js → p-f7c03d05.entry.js} +1 -1
  434. package/lib/duet/{p-0fe8a9ab.system.entry.js → p-f8ddd215.system.entry.js} +1 -1
  435. package/lib/duet/{p-4a357ae7.system.entry.js → p-fd153ee7.system.entry.js} +1 -1
  436. package/lib/esm/duet-action-button.entry.js +1 -1
  437. package/lib/esm/duet-alert.entry.js +1 -1
  438. package/lib/esm/duet-badge.entry.js +1 -1
  439. package/lib/esm/duet-banner.entry.js +1 -1
  440. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  441. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  442. package/lib/esm/duet-button_2.entry.js +4 -3
  443. package/lib/esm/duet-callout.entry.js +1 -1
  444. package/lib/esm/duet-caption_4.entry.js +4 -2
  445. package/lib/esm/duet-card.entry.js +1 -1
  446. package/lib/esm/duet-checkbox.entry.js +1 -1
  447. package/lib/esm/duet-checkmark.entry.js +1 -1
  448. package/lib/esm/duet-chip.entry.js +1 -1
  449. package/lib/esm/duet-choice_2.entry.js +4 -3
  450. package/lib/esm/duet-collapsible.entry.js +1 -1
  451. package/lib/esm/duet-combobox.entry.js +1 -1
  452. package/lib/esm/duet-contact-card.entry.js +1 -1
  453. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  454. package/lib/esm/duet-date-picker.entry.js +4 -2
  455. package/lib/esm/duet-divider_2.entry.js +1 -1
  456. package/lib/esm/duet-editable-table_3.entry.js +1 -1
  457. package/lib/esm/duet-empty-state.entry.js +1 -1
  458. package/lib/esm/duet-fieldset.entry.js +2 -2
  459. package/lib/esm/duet-file-chooser.entry.js +1 -1
  460. package/lib/esm/duet-footer.entry.js +1 -1
  461. package/lib/esm/duet-grid_2.entry.js +1 -1
  462. package/lib/esm/duet-header_2.entry.js +1 -1
  463. package/lib/esm/duet-hero.entry.js +1 -1
  464. package/lib/esm/duet-icon.entry.js +1 -1
  465. package/lib/esm/duet-input_2.entry.js +4 -3
  466. package/lib/esm/duet-layout.entry.js +1 -1
  467. package/lib/esm/duet-list_2.entry.js +1 -1
  468. package/lib/esm/duet-menu-bar-button.entry.js +1 -1
  469. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
  470. package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
  471. package/lib/esm/duet-menu-bar-link.entry.js +1 -1
  472. package/lib/esm/duet-menu-bar.entry.js +1 -1
  473. package/lib/esm/duet-modal.entry.js +2 -2
  474. package/lib/esm/duet-multiselect.entry.js +4 -3
  475. package/lib/esm/duet-nav.entry.js +1 -1
  476. package/lib/esm/duet-notification_2.entry.js +1 -1
  477. package/lib/esm/duet-number-input.entry.js +3 -2
  478. package/lib/esm/duet-page-heading.entry.js +1 -1
  479. package/lib/esm/duet-pagination_2.entry.js +1 -1
  480. package/lib/esm/duet-popup-menu-item.entry.js +1 -1
  481. package/lib/esm/duet-popup-menu.entry.js +2 -2
  482. package/lib/esm/duet-progress.entry.js +1 -1
  483. package/lib/esm/duet-promo-card.entry.js +1 -1
  484. package/lib/esm/duet-radio_2.entry.js +3 -2
  485. package/lib/esm/duet-range-slider.entry.js +1 -1
  486. package/lib/esm/duet-scrollable_3.entry.js +1 -1
  487. package/lib/esm/duet-section-layout.entry.js +1 -1
  488. package/lib/esm/duet-select.entry.js +4 -3
  489. package/lib/esm/duet-shaped-image.entry.js +1 -1
  490. package/lib/esm/duet-show-more.entry.js +1 -1
  491. package/lib/esm/duet-slideout-lang.entry.js +1 -1
  492. package/lib/esm/duet-slideout-link.entry.js +1 -1
  493. package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
  494. package/lib/esm/duet-slideout-panel.entry.js +2 -2
  495. package/lib/esm/duet-slideout.entry.js +13 -7
  496. package/lib/esm/duet-step_2.entry.js +1 -1
  497. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
  498. package/lib/esm/duet-submenu-bar-dropdown.entry.js +1 -1
  499. package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
  500. package/lib/esm/duet-submenu-bar.entry.js +1 -1
  501. package/lib/esm/duet-textarea.entry.js +4 -3
  502. package/lib/esm/duet-toggle.entry.js +1 -1
  503. package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
  504. package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
  505. package/lib/esm/duet-toolbar-link.entry.js +1 -1
  506. package/lib/esm/duet-toolbar.entry.js +1 -1
  507. package/lib/esm/duet-tooltip-button_2.entry.js +2 -2
  508. package/lib/esm/duet-tooltip.entry.js +1 -1
  509. package/lib/esm/duet-tray.entry.js +1 -1
  510. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  511. package/lib/esm/duet-upload-item.entry.js +1 -1
  512. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  513. package/lib/esm/duet.js +3 -3
  514. package/lib/esm/{focus-utils-447570ba.js → focus-utils-6bb7f477.js} +1 -1
  515. package/lib/esm/{index-bb1fb3bf.js → index-eeb87403.js} +1 -1
  516. package/lib/esm/loader.js +3 -3
  517. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  518. package/lib/esm-es5/duet-alert.entry.js +1 -1
  519. package/lib/esm-es5/duet-badge.entry.js +1 -1
  520. package/lib/esm-es5/duet-banner.entry.js +1 -1
  521. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  522. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  523. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  524. package/lib/esm-es5/duet-callout.entry.js +1 -1
  525. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  526. package/lib/esm-es5/duet-card.entry.js +1 -1
  527. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  528. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  529. package/lib/esm-es5/duet-chip.entry.js +1 -1
  530. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  531. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  532. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  533. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  534. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  535. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  536. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  537. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  538. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  539. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  540. package/lib/esm-es5/duet-file-chooser.entry.js +1 -1
  541. package/lib/esm-es5/duet-footer.entry.js +1 -1
  542. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  543. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  544. package/lib/esm-es5/duet-hero.entry.js +1 -1
  545. package/lib/esm-es5/duet-icon.entry.js +1 -1
  546. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  547. package/lib/esm-es5/duet-layout.entry.js +1 -1
  548. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  549. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  550. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  551. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +2 -2
  552. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  553. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  554. package/lib/esm-es5/duet-modal.entry.js +1 -1
  555. package/lib/esm-es5/duet-multiselect.entry.js +2 -2
  556. package/lib/esm-es5/duet-nav.entry.js +1 -1
  557. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  558. package/lib/esm-es5/duet-number-input.entry.js +2 -2
  559. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  560. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  561. package/lib/esm-es5/duet-popup-menu-item.entry.js +1 -1
  562. package/lib/esm-es5/duet-popup-menu.entry.js +1 -1
  563. package/lib/esm-es5/duet-progress.entry.js +1 -1
  564. package/lib/esm-es5/duet-promo-card.entry.js +1 -1
  565. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  566. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  567. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  568. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  569. package/lib/esm-es5/duet-select.entry.js +1 -1
  570. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  571. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  572. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  573. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  574. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  575. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  576. package/lib/esm-es5/duet-slideout.entry.js +1 -1
  577. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  578. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  579. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  580. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  581. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  582. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  583. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  584. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  585. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  586. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  587. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  588. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  589. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  590. package/lib/esm-es5/duet-tray.entry.js +1 -1
  591. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  592. package/lib/esm-es5/duet-upload-item.entry.js +1 -1
  593. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  594. package/lib/esm-es5/duet.js +1 -1
  595. package/lib/esm-es5/focus-utils-6bb7f477.js +4 -0
  596. package/lib/esm-es5/{index-bb1fb3bf.js → index-eeb87403.js} +1 -1
  597. package/lib/esm-es5/loader.js +1 -1
  598. package/lib/types/components/duet-choice-group/duet-choice-group.d.ts +3 -0
  599. package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +3 -0
  600. package/lib/types/components/duet-heading/duet-heading.d.ts +4 -0
  601. package/lib/types/components/duet-input/duet-input.d.ts +3 -0
  602. package/lib/types/components/duet-multiselect/duet-multiselect.d.ts +3 -0
  603. package/lib/types/components/duet-number-input/duet-number-input.d.ts +3 -0
  604. package/lib/types/components/duet-radio-group/duet-radio-group.d.ts +3 -0
  605. package/lib/types/components/duet-select/duet-select.d.ts +3 -0
  606. package/lib/types/components/duet-slideout/duet-slideout.d.ts +1 -1
  607. package/lib/types/components/duet-textarea/duet-textarea.d.ts +3 -0
  608. package/lib/types/components.d.ts +8 -0
  609. package/package.json +5 -5
  610. package/lib/duet/p-21d28d14.system.entry.js +0 -4
  611. package/lib/duet/p-21d4584d.system.entry.js +0 -4
  612. package/lib/duet/p-28f9bfa5.entry.js +0 -4
  613. package/lib/duet/p-2d344151.entry.js +0 -4
  614. package/lib/duet/p-4974ac97.entry.js +0 -4
  615. package/lib/duet/p-5d5735ef.entry.js +0 -4
  616. package/lib/duet/p-6e2a24de.system.entry.js +0 -4
  617. package/lib/duet/p-744d37b4.entry.js +0 -4
  618. package/lib/duet/p-7cb0d9f9.system.entry.js +0 -4
  619. package/lib/duet/p-89d51951.system.entry.js +0 -4
  620. package/lib/duet/p-8ce26cd2.system.entry.js +0 -4
  621. package/lib/duet/p-996d0515.system.entry.js +0 -4
  622. package/lib/duet/p-9e0d085e.entry.js +0 -4
  623. package/lib/duet/p-aa72c276.system.entry.js +0 -4
  624. package/lib/duet/p-afa204da.entry.js +0 -4
  625. package/lib/duet/p-bbebfd1d.entry.js +0 -4
  626. package/lib/duet/p-c8995aac.entry.js +0 -4
  627. package/lib/duet/p-cab83f17.entry.js +0 -4
  628. package/lib/duet/p-ce215826.system.js +0 -4
  629. package/lib/duet/p-d2b39891.system.entry.js +0 -4
  630. package/lib/duet/p-d9ffac40.entry.js +0 -4
  631. package/lib/duet/p-ef1e2a76.system.entry.js +0 -4
  632. package/lib/duet/p-f3a6b182.entry.js +0 -4
  633. package/lib/duet/p-f3cbbc74.entry.js +0 -4
  634. package/lib/esm-es5/focus-utils-447570ba.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{h as t,r as e,c as i,H as a,g as s,F as d}from"./p-876e256a.js";import{i as l}from"./p-a58bd561.js";import{f as o,d as n}from"./p-9e371678.js";import{i as r}from"./p-2bb2b022.js";import{a as h,c as u,d as b,g as p,s as m}from"./p-2e36d5bf.js";import{p as c,s as g}from"./p-f2aa1623.js";import{b as f,a as y}from"./p-9dff8650.js";import{c as v}from"./p-5e59e970.js";import{g as x,a as w}from"./p-fabb616b.js";import"./p-0e052642.js";const k=({data:e,groupId:i,alignment:a})=>{const s=`duet-editable-table duet-editable-table-content-${i}`;return"string"==typeof e?t("td",{innerHTML:e,class:s,part:`${i}content`,style:{verticalAlign:a}}):t("td",{class:s,part:`${i}content`,style:{verticalAlign:a}},e)},T=class{constructor(t){e(this,t),this.duetTableToggle=i(this,"duetTableToggle",7),this.duetMenuClick=i(this,"duetMenuClick",7),this.hasHeadSlotFirst=!1,this.hasHeadSlotLast=!1,this.hasFootSlot=!1,this.sortableDefaultLabel={fi:"Järjestä",en:"Click to sort",sv:"Klicka för att sortera"},this.actionColumnLabel={en:"Actions for rows",fi:"Toiminnot rivillä",sv:"Åtgärder för rader"},this.toggleColumn=(t,e)=>{e.preventDefault();const{sort_order:i,direction:a,index:s,key:d}=t;this.duetTableToggle.emit({sort_order:i,index:s,direction:a,key:d,component:"duet-editable-table",originalEvent:e})},this.handleKeyDown=(t,e)=>{r(e)&&this.toggleColumn(t,e)},this.language=h(),this.margin="auto",this.variation="striped",this.sticky=!1,this.stickyDistance="with-links",this.breakpoint="small",this.actions=void 0,this.columns=void 0,this.rows=void 0,this.sortable=!1,this.groupId="",this.theme="",this.accessibleRole=void 0,this.hideHeadVisually=!1}componentWillLoad(){l(this),this.hasHeadSlotFirst=!!this.element.querySelector("[slot='thead-first']"),this.hasHeadSlotLast=!!this.element.querySelector("[slot='thead-last']"),this.hasFootSlot=!!this.element.querySelector("[slot='tfoot']")}connectedCallback(){u(this)}disconnectedCallback(){b(this)}createLabel(e){const{sort_order:i,direction:a,index:s,label:d}=e,l=p(d);return this.sortable?t("span",{class:"duet-table-label","data-index":s},t("duet-button",{size:"small",icon:i&&1===a?"action-arrow-down-small":i&&-1===a?"action-arrow-up-small":"action-subtract-small","icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":!0,onClick:t=>this.toggleColumn(e,t),onKeyDown:t=>this.handleKeyDown(e,t)},l)):l}getSortedColumns(){return[...this.columns].sort(o(["index"]))}getRowSortOrder(){return[...this.columns].sort(o(["sort_order"])).filter((t=>t.sort_order)).map((t=>-1===t.direction?`-${t.key}`:t.key))}renderTableHeader(){if(!this.columns)return;const e=this.getSortedColumns();return t("tr",{class:{"duet-table-action-header":!!this.actions}},e.map((e=>{if(!1!==e.display){const i=this.createLabel(e);return""!==i?t("th",{scope:"col"},i):t("td",null)}})),this.actions&&t("th",{scope:"col",class:"duet-table-action-header-heading"},this.actions&&t("duet-visually-hidden",null,this.actionColumnLabel[this.language])))}renderActions(e,i){if(this.actions)return t("td",{class:"duet-text-right"},this.actions.map((a=>t("duet-action-button",{actionMeta:Object.assign({},(null==e?void 0:e.meta)||{},{index:i}),actionId:(null==e?void 0:e.uid)||(null==e?void 0:e.id)||null,actionName:a.name,theme:this.theme,iconName:a.icon,iconColor:a.color,iconSize:a.size,background:a.background,"accessible-label":`${e.actionDescription||""} ${p(a.label)} `}))))}renderTableBody(){const e=this.getSortedColumns(),i=this.getRowSortOrder();return[...this.rows].sort(o(i)).map(((i,a)=>t("tr",{class:{"duet-table-action-row":!!this.actions,"duet-editable-table-row":!0,[`duet-editable-table-row-${this.groupId}`]:!0},"data-meta":JSON.stringify(i.meta)},e.map((e=>{if(!1!==e.display)return t(k,{data:i[e.key]?i[e.key]:i.item,groupId:this.groupId})})),this.actions&&this.renderActions(i,a))))}render(){return t(a,{class:{[`duet-editable-table-${this.variation}`]:!0,"duet-editable-table":!0,[`duet-editable-table-${this.theme}`]:!0,"duet-editable-table-scrollable":"none-scrollable"===this.breakpoint,"duet-editable-table-sortable":this.sortable,"duet-editable-table-actions":!!this.actions,"duet-m-0":"none"===this.margin,"duet-theme-turva":"turva"===this.theme}},t("duet-table",{class:"duet-editable-table-table",sticky:this.sticky,stickyDistance:this.stickyDistance,margin:this.margin,theme:this.theme,variation:this.variation,breakpoint:this.breakpoint,"hide-head-visually":this.hideHeadVisually},t("table",{role:this.accessibleRole},t("caption",null,t("slot",{name:"tcaption"})),t("thead",null,this.hasHeadSlotFirst&&t("tr",null,t("td",{class:"duet-editable-table-actions-menu",colSpan:99},t("slot",{name:"thead-first"}))),this.renderTableHeader(),this.hasHeadSlotLast&&t("tr",null,t("td",{class:"duet-editable-table-actions-menu",colSpan:99},t("slot",{name:"thead-last"})))),t("tbody",null,this.renderTableBody()),this.hasFootSlot&&t("tfoot",null,t("tr",null,t("td",{class:"duet-editable-table-footer-menu",colSpan:99},t("slot",{name:"tfoot"})))))))}get element(){return s(this)}};T.style=".sc-duet-editable-table-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-editable-table-actions-menu.sc-duet-editable-table{position:relative;padding:0 !important;margin:0}.duet-editable-table-actions-menu-button.sc-duet-editable-table{position:relative;right:-16px;float:right;padding:0}.duet-editable-table-actions-menu-icon.sc-duet-editable-table .duet-icon.sc-duet-editable-table{max-width:16px;max-height:16px}.duet-editable-table-row.duet-table-action-row.sc-duet-editable-table .duet-text-right.sc-duet-editable-table{text-align:right}.duet-editable-table-header.sc-duet-editable-table tr.sc-duet-editable-table .duet-editable-table-header-hidden.sc-duet-editable-table{padding:0 !important;font-size:0;border-bottom:0}";const L={none:0,"with-links":16*parseFloat(c),"without-links":16*parseFloat(g)},S=class{constructor(t){e(this,t),this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)",this.handleMediaQueryChange=t=>{this.matchesBreakpoint=f.includes(this.breakpoint)?!t.matches:t.matches},this.matchesBreakpoint=!0,this.language=h(),this.theme=void 0,this.margin="auto",this.variation="striped",this.sticky=!1,this.stickyDistance="with-links",this.breakpoint="small",this.hideHeadVisually=!1}watchLanguageStateHandler(t,e){t!==e&&setTimeout((()=>this.copyHeadingsToCells()),50)}connectedCallback(){this.mq=matchMedia("none"===this.breakpoint||"none-scrollable"===this.breakpoint?"all":y[this.breakpoint]),this.mq.addEventListener("change",n(this.handleMediaQueryChange,50)),this.handleMediaQueryChange(this.mq),this.observer=new MutationObserver((()=>n(this.copyHeadingsToCells(),50))),this.observer.observe(this.element,{childList:!0,subtree:!0})}componentWillLoad(){if(l(this),this.copyHeadingsToCells(),this.sticky&&"none-scrollable"===this.breakpoint&&console.warn('[DUET WARNING]: sticky and breakpoint="none-scrollable" are incompatible. Scrollable takes precedence'),this.sticky){const t=L[this.stickyDistance];this.element.querySelectorAll(this.headingSelector).forEach((e=>e.style.top=`${t}px`))}}componentDidLoad(){this.observer&&this.observer.takeRecords(),u(this)}disconnectedCallback(){this.observer.disconnect(),this.observer=null,this.mq.removeListener(this.handleMediaQueryChange),this.mq=null,this.matchesBreakpoint=!0,b(this)}copyHeadingsToCells(){const t=this.element.querySelectorAll(this.headingSelector),e=this.element.querySelectorAll("tbody tr"),i=Array.from(t).map((t=>t.textContent.trim()));e.forEach((t=>{t.querySelectorAll("td").forEach(((t,e)=>{if(i[e]){const a=t.querySelector(".duet-table-cell-heading");if(!a||a.textContent!==i[e]){null==a||a.remove();const s=document.createElement("span");s.textContent=i[e],s.classList.add("duet-table-cell-heading"),s.setAttribute("aria-hidden","true"),s.inert=!0,t.prepend(s)}}}))}))}render(){return t(a,{class:{[`duet-table-${this.variation}`]:!0,"duet-table-flattened":!this.matchesBreakpoint,"duet-table-sticky":this.matchesBreakpoint&&this.sticky,"duet-table-scrollable":"none-scrollable"===this.breakpoint,"duet-m-0":"none"===this.margin,"duet-theme-turva":"turva"===this.theme,"duet-table-hide-head-visually":this.hideHeadVisually}},t("slot",null))}get element(){return s(this)}static get watchers(){return{language:["watchLanguageStateHandler"]}}};S.style='duet-table{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;font-variant-numeric:tabular-nums}duet-table table,duet-table thead,duet-table tbody,duet-table tfoot,duet-table th,duet-table td,duet-table tr{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}duet-table.duet-m-0{margin:0 !important}duet-table table{width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;text-align:left;border-spacing:0;border-collapse:separate}duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead,duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead *{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}duet-table.duet-theme-turva table{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}duet-table td{-webkit-hyphens:auto;hyphens:auto;color:rgb(0, 41, 77)}duet-table.duet-theme-turva td{color:rgb(23, 28, 58)}duet-table th{font-weight:600;line-height:1.25;color:rgb(101, 119, 135);text-align:left}duet-table.duet-theme-turva th{color:rgb(116, 116, 117)}duet-table tbody th{font-weight:600;color:rgb(0, 41, 77)}duet-table.duet-theme-turva tbody th{color:rgb(23, 28, 58)}duet-table .duet-table-action-row td:last-child{justify-self:end;padding-right:20px !important;white-space:nowrap}duet-table span.duet-table-cell-heading{display:none}.duet-table-flattened table,.duet-table-flattened thead,.duet-table-flattened tbody,.duet-table-flattened tfoot,.duet-table-flattened th,.duet-table-flattened td,.duet-table-flattened tr{display:block}.duet-table-flattened thead tr{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}.duet-table-flattened td{line-height:1.25}.duet-table-flattened td:not(:last-child){margin-bottom:16px !important}.duet-table-flattened td span.duet-table-cell-heading{margin-bottom:4px !important;display:block;font-size:1rem;font-weight:600;color:rgb(0, 41, 77)}.duet-table-flattened.duet-theme-turva td span.duet-table-cell-heading{color:rgb(23, 28, 58)}.duet-table-flattened tbody td,.duet-table-flattened tbody th,.duet-table-flattened tfoot td{padding:0 !important;text-align:left !important}.duet-table-flattened tbody th{font-weight:600;line-height:1.25;color:rgb(101, 119, 135);text-align:left}.duet-table-sticky thead th{position:sticky;top:0;background:rgb(255, 255, 255)}.duet-table-striped td,.duet-table-striped th{padding:20px !important}@media (max-width: 35.9375em){.duet-table-striped td,.duet-table-striped th{padding:20px 12px !important}}.duet-table-striped tbody th{background:rgb(255, 255, 255)}.duet-table-striped.duet-table-sticky thead th{border-bottom:1px solid rgb(225, 227, 230)}.duet-table-striped.duet-table-sticky.duet-theme-turva thead th{border-bottom-color:rgb(228, 228, 230)}.duet-table-striped tbody:not(:first-of-type) th{padding-top:40px !important}.duet-table-striped tbody:only-of-type tr:nth-of-type(odd){background:rgba(0, 80, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(0, 80, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tfoot td{border-top:1px solid rgb(225, 227, 230)}.duet-table-striped.duet-theme-turva tfoot td{border-top-color:rgb(228, 228, 230)}.duet-table-striped.duet-table-flattened tbody:not(:first-of-type) th{padding-top:20px !important}.duet-table-striped.duet-table-flattened tr{padding:20px !important}.duet-table-striped.duet-table-flattened tfoot td{border-top:0}.duet-table-striped.duet-table-flattened tfoot tr{border-top:1px solid rgb(225, 227, 230)}.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:rgb(228, 228, 230)}.duet-table-fixed th,.duet-table-minimal th,.duet-table-plain th{padding:16px !important;border-bottom:1px solid rgb(101, 119, 135)}.duet-table-fixed th:first-child,.duet-table-minimal th:first-child,.duet-table-plain th:first-child{padding-left:0 !important}.duet-table-fixed th:last-child,.duet-table-minimal th:last-child,.duet-table-plain th:last-child{padding-right:0 !important}.duet-theme-turva.duet-table-fixed th,.duet-theme-turva.duet-table-minimal th,.duet-theme-turva.duet-table-plain th{border-bottom-color:rgb(68, 68, 69)}.duet-table-fixed tbody th,.duet-table-minimal tbody th,.duet-table-plain tbody th{padding-top:40px !important;border-bottom-color:rgb(225, 227, 230)}.duet-theme-turva.duet-table-fixed tbody th,.duet-theme-turva.duet-table-minimal tbody th,.duet-theme-turva.duet-table-plain tbody th{border-bottom-color:rgb(228, 228, 230)}.duet-table-fixed td,.duet-table-minimal td,.duet-table-plain td{padding:16px !important}.duet-table-fixed td:first-child,.duet-table-minimal td:first-child,.duet-table-plain td:first-child{padding-left:0 !important}.duet-table-fixed td:last-child,.duet-table-minimal td:last-child,.duet-table-plain td:last-child{padding-right:0 !important}.duet-table-fixed tbody td,.duet-table-minimal tbody td,.duet-table-plain tbody td{border-bottom:1px solid rgb(225, 227, 230)}.duet-theme-turva.duet-table-fixed tbody td,.duet-theme-turva.duet-table-minimal tbody td,.duet-theme-turva.duet-table-plain tbody td{border-bottom-color:rgb(228, 228, 230)}.duet-table-flattened.duet-table-fixed tbody:first-of-type th,.duet-table-flattened.duet-table-minimal tbody:first-of-type th,.duet-table-flattened.duet-table-plain tbody:first-of-type th{padding-top:0 !important}.duet-table-flattened.duet-table-fixed td,.duet-table-flattened.duet-table-minimal td,.duet-table-flattened.duet-table-plain td,.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{border-bottom:0}.duet-table-flattened.duet-table-fixed tr,.duet-table-flattened.duet-table-minimal tr,.duet-table-flattened.duet-table-plain tr{padding:20px 0 !important}.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{padding-top:20px !important}.duet-table-flattened.duet-table-fixed tfoot td,.duet-table-flattened.duet-table-minimal tfoot td,.duet-table-flattened.duet-table-plain tfoot td{margin-bottom:4px !important}.duet-table-flattened.duet-table-fixed tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-minimal tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-plain tbody:not(:only-of-type) tr:first-child{border-bottom:0}.duet-table-plain.duet-table-flattened tbody tr{border-bottom:1px solid rgb(225, 227, 230)}.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:rgb(228, 228, 230)}.duet-table-minimal tbody tr,.duet-table-minimal tbody tr td{vertical-align:top;border-bottom:0 none}.duet-table-minimal tbody tr:last-of-type,.duet-table-minimal tbody tr:last-of-type td{border-bottom:1px solid rgb(225, 227, 230)}.duet-table-minimal.duet-table-flattened tbody tr,.duet-table-minimal.duet-table-flattened tbody tr td{border-bottom:0 none}.duet-table-minimal.duet-table-flattened tbody tr td[data-heading]::before{display:none}.duet-table-minimal.duet-table-flattened tfoot{border-top:1px solid rgb(225, 227, 230)}.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.duet-table-fixed table{table-layout:fixed}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td,.duet-table-fixed tbody tr td:first-child{padding:4px !important;vertical-align:text-bottom;border-bottom:0 none}.duet-table-fixed thead{display:none}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td{border-bottom:0 none}.duet-table-fixed:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(225, 227, 230)}.duet-table-fixed:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.duet-table-scrollable{position:relative;width:100%;overflow-x:auto;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0)), linear-gradient(-90deg, #fff 0%, rgba(255, 255, 255, 0)) 100% 0, radial-gradient(farthest-side at 0% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)) 100% 0%;background-repeat:no-repeat;background-attachment:local, local, scroll, scroll;background-size:100px 100%, 100px 100%, 12px 100%, 12px 100%}.duet-table-selected-column{background:rgba(0, 119, 179, 0.08)}.duet-theme-turva .duet-table-selected-column{background:rgba(68, 68, 69, 0.08)}.duet-table-sortable tbody tr td:first-child,.duet-table-sortable thead tr th:first-child{padding:20px}.duet-table-sortable:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(225, 227, 230)}.duet-table-sortable:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.duet-table-actions table{table-layout:auto}.duet-table-actions thead th:last-child{width:1px;white-space:nowrap}.duet-editable-table-table.duet-table-flattened tr{display:grid;grid-template-columns:repeat(2, 1fr);grid-auto-rows:auto;gap:10px}.duet-editable-table-table.duet-table-flattened tr.duet-table-action-row td:last-child::before{padding:0;content:""}.duet-editable-table-table.duet-table-flattened td{grid-column:1/2}.duet-editable-table-table.duet-table-flattened td:first-child{grid-row:1;grid-column:1}.duet-editable-table-table.duet-table-flattened td:last-child{grid-row:1;grid-column:2}';const j=[{type:"default",system_message:"unknown error",message:{fi:"Tapahtui tuntematon virhe, ole hyvä ja yritä uudelleen.",sv:"Ett okänt fel uppstod, försök igen.",en:"An unknown error occured, please try again."}},{type:"400",system_message:"Bad Request: The server could not understand the request due to invalid syntax.",message:{fi:"Tiedostoa ei hyväksytty.",sv:"Servern avvisade din fil.",en:"The server rejected your file."}},{type:"401",system_message:"Not Authenticated: The client must authenticate itself to get the requested response...",message:{fi:"Vain kirjautunut käyttäjä voi lähettää tiedostoja.",sv:"Du måste vara inloggad för att ladda upp filer.",en:"You need to be logged in to upload files."}},{type:"403",system_message:"No Access: The client does not have access rights to the content.",message:{fi:"Ei oikeuksia lähettää tiedostoja.",sv:"Du har inte rätt åtkomsträttigheter för att ladda upp filer.",en:"You do not have the correct access rights to upload files."}},{type:"413",system_message:"Payload too large",message:{fi:"Tiedosto oli liian vastaanotettavaksi.",sv:"Filen var för stor för servern att hantera.",en:"The file was to large for the server to handle."}},{type:"415",system_message:"Unsupported media type",message:{fi:"Tiedoston tyyppi oli väärä.",sv:"Servern avvisade filen eftersom den hade fel typ.",en:"The server rejected the file because it had the wrong type."}},{type:"429",system_message:"Too many request from same address",message:{fi:"Liian monta yritystä, ole hyvä ja yritä myöhemmin uudelleen.",sv:"Servern har fått många förfrågningar från dig, försök igen senare.",en:"The server has received to many request from you, please try again later."}},{type:"500",system_message:"Internal Server Error",message:{fi:"Palvelin ilmoitti tuntemattomasta virheestä ja lataus epäonnistui.",sv:"Servern rapporterade ett okänt fel och uppladdningen misslyckades.",en:"The server reported an unknown error and the upload failed."}},{type:"duet-upload-100",system_message:"File extension not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den type.",en:"You cannot upload files with that extension."}},{type:"duet-upload-001",system_message:"File transfer failed",message:{fi:"Tiedoston lähetys keskeytyi, ole hyvä ja yritä uudelleen.",sv:"Din anslutning till servern avbröts, försök igen.",en:"Your connection to the server was interrupted, try again."}},{type:"duet-upload-101",system_message:"File mimetype not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den typ.",en:"You cannot upload files of that type."}},{type:"duet-upload-201",system_message:"File is too large",message:{fi:"Tiedosto on liian iso.",sv:"Filen är större än tillåtet.",en:"The file is larger than permitted."}},{type:"duet-upload-202",system_message:"The combined size of all files is too large",message:{fi:"Tiedostojen yhteenlaskettu koko on liian iso.",sv:"Du har nått den maximala kombinerade filstorleken.",en:"You have reached the maximum combined filesize."}},{type:"duet-upload-203",system_message:"Files to upload exceed total byte size limit",message:{fi:"Yritit lisätä tiedostoja, jotka ylittäisivät suurimman sallitun yhteenlasketun koon.",sv:"Du försökte lägga till filer som skulle överskrida den maximala kombinerade storleken.",en:"You tried to add files that would exceed the maximum combined size."}},{type:"duet-upload-301",system_message:"The maximum file limit has been reached",message:{fi:"Liitteiden maksimimäärä saavutettu.",sv:"Maximalt antal bilagor har uppnåtts.",en:"Maximum number of attachments reached."}},{type:"duet-upload-302",system_message:"Files to upload exceeds limits",message:{fi:"Et voi lähettää enempää kuin enimmäismäärän liitteitä.",sv:"Du kan inte ladda upp fler än det maximala antalet bilagor.",en:"You can't upload more than maximum number of attachments."}}],E={fi:"Liiteluettelo",sv:"Lista över bilagor",en:"Attachments list"},z=({label:e,categoryLabel:i})=>t("div",{class:"items-header",tabindex:"-1","aria-label":p(E)},i&&t("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},p(i)),t("duet-heading",{class:{"filename-header":!0,"no-category":!i},border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},p(e))),M=(t,e,i)=>{const{allowedMimetypes:a,allowedExtensions:s,maxBytes:d}=e;let l=!1,o=x("default",i);if(t){const{name:e,type:n,size:r}=t,h=((t,e)=>{if(!e||!t)return!0;const i=e.split(",");let a=!1;return i.forEach((e=>{const i=e.split("/"),s=t.split("/");i[0]!==s[0]||i[1]!==s[1]&&"*"!==i[1]||(a=!0)})),a})(n,a),u="all"===s||""===s||" "===s||void 0===s||((t,e)=>{if(!e)return!0;const i=t.split(".");return e.split(",").includes(i[i.length-1])})(e.toLowerCase(),s),b=((t,e)=>!e||!t||e>=t)(r,d);h||(o=x("duet-upload-101",i)),u||(o=x("duet-upload-100",i)),b||(o=x("duet-upload-201",i)),l=h&&u&&b}else l=!1;return{valid:l,errorMessage:l?void 0:p(o.message),errorSystem:l?void 0:o.system_message,errorType:l?void 0:o.type}},F=({payload:t,options:e,onFailure:i,onSuccess:a,onProgress:s})=>{const{type:d="POST",xhr:l,uri:o,argument:n=null,headers:r=null}=e;l.open(d,`${o}${n||""}`,!0);const{data:h,name:u}=t;return r&&Object.keys(r).forEach((t=>{l.setRequestHeader(t,r[t])})),"POST"===d&&(l.onreadystatechange=()=>{l.readyState===XMLHttpRequest.DONE&&l.status>=200&&l.status<300&&a(l,u,l.status),l.readyState===XMLHttpRequest.DONE&&l.status>=300&&l.status<999&&i(l,u,l.status)},s(u)),l.send(h),l},C=class{constructor(a){e(this,a),this.duetChange=i(this,"duetChange",3),this.duetBlur=i(this,"duetBlur",7),this.duetFocus=i(this,"duetFocus",7),this.duetReady=i(this,"duetReady",7),this.duetDone=i(this,"duetDone",3),this.duetState=i(this,"duetState",3),this.duetDelete=i(this,"duetDelete",3),this.duetCancel=i(this,"duetCancel",3),this.duetProgress=i(this,"duetProgress",3),this.duetUpload=i(this,"duetUpload",3),this.linkClick=i(this,"linkClick",3),this.buttonId=v("DuetButton"),this.labelId=v("DuetLabel"),this.uploadId=v("DuetUpload"),this.filesInProgress=new Map,this.fileMaxReached=!1,this.bytesMaxReached=!1,this.filesToUploadExceedsLimit=!1,this.filesToUploadTotalSizeIsAboveMax=!1,this.internalStatusMessageLabel=void 0,this.itemRefs=new Map,this.DefaultGroups={inprogress:"inprogress",success:"success",pending:"pending",failure:"failure"},this.kick=n((()=>{this.tick=Date.now()}),30),this.categoryLabel={en:"Category",sv:"Filtyp",fi:"Tiedostotyyppi"},this.listenForActionEvents=()=>{this.element.addEventListener("duetActionEvent",(t=>{const e=t.detail,{action:i,id:a,originalEvent:s}=e;switch(i){case"delete":this.onDelete(a,s);break;case"cancel":this.onCancel(a,s)}}))},this.verifyValidity=()=>{const{invalid:t,valid:e}=this.getFilesAsArray(),i=this.valid;this.valid=0===t.length&&0!==e.length,this.valid!==i&&this.duetState.emit({originalEvent:void 0,data:{valid:this.valid,from:"componentWillRender"},component:"duet-upload"})},this.getGroupFromItemData=t=>t.valid&&100===t.progress?this.DefaultGroups.success:t.progress>0&&100!==t.progress?this.DefaultGroups.inprogress:t.valid?t.pending?this.DefaultGroups.pending:t.group?t.group:"none":this.DefaultGroups.failure,this.mapFilesToUploadItems=(e,i,a,s)=>i===this.DefaultGroups.success?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i,s),type:"success",data:e,showLinks:this.showLinks,linkClickEvent:this.emitEvent?this.linkClick:void 0,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,ref:t=>{this.itemRefs.set(e.uid,t)}}):i===this.DefaultGroups.inprogress?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i,s),type:"inprogress",data:e,showLinks:this.showLinks,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,ref:t=>{this.itemRefs.set(e.uid,t)}}):i===this.DefaultGroups.pending?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i,s),type:"pending",data:e,showLinks:this.showLinks,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,ref:t=>{this.itemRefs.set(e.uid,t)}}):i===this.DefaultGroups.failure?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i,s),type:"failure",data:e,showLinks:this.showLinks,errorCodes:this.errorCodes,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,ref:t=>{this.itemRefs.set(e.uid,t)}}):e.group?e.html:"none",this.genHashName=()=>Date.now().toString(36)+Math.random(),this.updateValueInMap=(t,e,i,a=!0)=>{try{const a=this.files.get(t);a[e]=i,this.files.set(t,a),this.external&&"url"!==e&&this.trackProgress(t,"uploaded"===e)}catch(t){}a&&this.kick()},this.updateProgress=(t,e)=>{t.lengthComputable?(i=>{this.updateValueInMap(e,"progress",i),this.onProgress(e,i,t)})(t.loaded/t.total*100):console.log("cant read progress")},this.trackProgress=(t,e=!1)=>{e?this.filesInProgress.delete(t):this.filesInProgress.set(t,"inprogress"),0===this.filesInProgress.size&&this.onDone()},this.getFilesAsArray=()=>{const t=[],e=[];return this.files.forEach((i=>{i.valid&&!i.deleted?t.push(i):i.valid||i.deleted||e.push(i)})),{valid:t,invalid:e}},this.resetFormFields=()=>{this.nativeInput.value=""},this.startUpload=async(t,e)=>{const{bytesMaxReached:i,fileMaxReached:a}=this.validateTotals();i||a?this.kick():(this.metaData=e,this.nativeInput.click(),this.onUpload(t,e),t.stopPropagation(),t.preventDefault())},this.transferComplete=t=>{this.updateValueInMap(t,"progress",100,!1),this.trackProgress(t,!0)},this.transferDone=(t,e,i)=>{this.updateValueInMap(e,"status",i,!1),this.updateValueInMap(e,"uploaded",!0,!1);try{const i=JSON.parse(t.response);this.updateValueInMap(e,"url",i.url)}catch(t){this.updateValueInMap(e,"url",null),console.error("Server did not respond with expected response {url: string}")}},this.transferDoneWithFailure=(t,e,i)=>{try{const{error:i}=JSON.parse(t.response);this.updateValueInMap(e,"error",{message:i.message,type:i.type},!1)}catch(t){console.error("Server did not respond with expected response error:{message: string, type: int}"),this.updateValueInMap(e,"error",{type:i},!1)}this.updateValueInMap(e,"valid",!1,!0)},this.transferFailed=t=>{this.updateValueInMap(t,"error",w("duet-upload-001",this.errorCodes))},this.transferCanceled=t=>{this.files.delete(t),this.validateTotals(t),this.kick()},this.validateTotals=t=>{const e=((t,e)=>{let i=0;return!!(e&&(this.files.forEach((t=>{t.valid&&t.size&&(i+=t.size)})),i>=e))})(0,this.maxBytesTotal),i=((t,e)=>{let i=0;return!!(e&&(this.files.forEach((t=>{t.valid&&i++})),i>=e))})(0,this.maxFiles);return e&&t&&this.updateValueInMap(t,"error",w("duet-upload-202",this.errorCodes),!1),i&&t&&this.updateValueInMap(t,"error",w("duet-upload-301",this.errorCodes),!1),this.bytesMaxReached=e,this.fileMaxReached=i,{bytesMaxReached:e,fileMaxReached:i}},this.uploadFile=async(t,e=!1,i)=>{!e&&this.deferUpload?(this.updateValueInMap(t.item.name,"pending",!0,!1),this.updateValueInMap(t.item.name,"group","pending",!0)):e&&(this.updateValueInMap(t.item.name,"pending",!1,!1),this.updateValueInMap(t.item.name,"group",void 0,!0));try{if(!this.deferUpload||e){const e=new FormData;e.append("file",t.item),i&&e.append("key",i),e.append("uid",t.uid),e.append("name",t.item.name),e.append("metadata",JSON.stringify({uid:t.uid,url:this.uri,size:t.item.size,meta:t.meta})),t.xhr=await this.makeXHRPostRequest(e)}}catch(e){this.updateValueInMap(t.item.name,"valid",!1,!1)}},this.uploadPendingFiles=()=>{for(const[t,e]of Array.from(this.files.entries()))"pending"===e.group&&!0===e.pending&&this.uploadFile(e,!0,t)},this.getItemFromUID=t=>{for(const[e,i]of Array.from(this.files.entries()))if(i.uid===t)return{value:i,key:e};return null},this.handleExternalUploadButton=(t,e)=>{this.externalUploadButton&&(this.externalUploadButton.disabled=!(!t&&!e))},this.onDelete=(t,e)=>{const i=this.getItemFromUID(t).key,a=this.files.get(i);this.files.delete(i);const{bytesMaxReached:s,fileMaxReached:d}=this.validateTotals();this.handleExternalUploadButton(s,d),this.kick(),this.duetDelete.emit({originalEvent:e,data:{deletion:a},component:"duet-upload"}),this.external||a.pending||this.makeXHRDeleteRequest(a),this.resetFormFields()},this.onCancel=(t,e)=>{const i=this.getItemFromUID(t).key,a=this.files.get(i);this.files.delete(i);const{bytesMaxReached:s,fileMaxReached:d}=this.validateTotals();if(this.handleExternalUploadButton(s,d),!this.external){const{xhr:t}=a;t&&t.abort()}this.kick(),this.resetFormFields(),this.duetCancel.emit({originalEvent:e,data:{cancelled:a},component:"duet-upload"})},this.onUpload=(t,e)=>{this.duetUpload.emit({originalEvent:t,metaData:e,component:"duet-upload"})},this.onBlur=t=>{this.duetBlur.emit({originalEvent:t,component:"duet-upload"})},this.onProgress=(t,e,i)=>{this.duetChange.emit({originalEvent:i,data:{key:t,percentComplete:e},component:"duet-upload"})},this.onFocus=t=>{this.duetFocus.emit({originalEvent:t,component:"duet-upload"})},this.onReady=()=>{this.duetReady.emit({component:"duet-upload"})},this.onDone=()=>{this.duetDone.emit({component:"duet-upload",data:{files:this.files}})},this.filterMap=()=>{const t=Array.from(this.files.values()),e=[],i=[],a=[],s=[];let d=!1;return t.forEach((t=>{const l=this.getGroupFromItemData(t);t.meta&&t.meta.badges&&(d=!0),l===this.DefaultGroups.success?s.push({uid:t.uid,data:t}):l===this.DefaultGroups.inprogress?e.push({uid:t.uid,data:t}):l===this.DefaultGroups.pending?a.push({uid:t.uid,data:t}):l===this.DefaultGroups.failure?i.push({uid:t.uid,data:t}):t.group&&e.push({uid:t.uid,data:t})})),{pending:a,failure:i,success:s,inprogress:e,hasCategory:d}},this.getActions=(t,e)=>e.filter((e=>e.map.includes(t))),this.renderUploadedItems=()=>{this.itemRefs.clear();const e=this.filterMap(),i=e.hasCategory,a=this.hideCancelButton?this.actions.filter((t=>"cancel"!==t.name)):this.actions,s=this.groups.map((s=>{const l=e[s.id];if(null==l?void 0:l.length)return t(d,null,!this.hideGroups&&t(z,{categoryLabel:i?this.categoryLabel:void 0,label:s.label}),l.map((t=>this.mapFilesToUploadItems(t.data,s.id,i,a))))}));return t(d,null,this.showUploadedItemsHeader&&t(z,{categoryLabel:i?this.categoryLabel:void 0,label:this.uploadedItemsHeaderLabel}),s)},this.tick=Date.now(),this.accessibleActiveDescendant=void 0,this.accessibleDescribedBy=void 0,this.accessibleControls=void 0,this.accessibleOwns=void 0,this.external=!1,this.middleware=null,this.deferUpload=!1,this.hideButton=!1,this.actions=[{icon:"action-delete",color:"color-danger",size:"x-small",background:"gray-lightest",name:"delete",map:["success","failure"],label:{fi:"Poista tiedosto",en:"Delete the file",sv:"Ta bort filen"}},{icon:"navigation-close",color:"primary",size:"x-small",background:"gray-lightest",name:"cancel",map:["inprogress","pending"],label:{fi:"Keskeytä lähetys",en:"Cancel the upload",sv:"Stop överföringen"}}],this.uri=void 0,this.showLinks=!1,this.caption=void 0,this.statusLabelDefaults={fi:{inProgress:"Lähetetään {filesUploaded}, 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=p(this.statusLabelDefaults),this.buttonLabelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add an attachment"},this.buttonLabel=p(this.buttonLabelDefaults),this.accessibleButtonLabel=void 0,this.theme="",this.disabled=!1,this.identifier=void 0,this.margin="auto",this.required=!1,this.alignment="middle",this.hideGroups=!1,this.files=new Map,this.valid=!this.required,this.labelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add attachments"},this.label=p(this.labelDefaults),this.descriptionDefaults={en:"You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytestotal} of files at a time, and add up to {maxfiles} attachments at a time each no larger than {maxbytes}.",sv:"Du kan bifoga följande filtyper: {filetypes} - samt de vanligaste videofilerna. Du kan ladda upp {maxbytestotal} av filer åt gången, och lägga till upp till {maxfiles} bilagor åt gången varje inte större än {maxbytes}.",fi:"Voit liittää seuraavat tiedostotyypit: {filetypes} - sekä yleisimmät videotiedostot. Voit lähettää {maxbytestotal} tiedostoa kerrallaan, ja lisätä enintään {maxfiles} liitettä kerrallaan, jokainen enintään {maxbytes} kokoisena."},this.description=p(this.descriptionDefaults),this.fileListEmptyDefaults={fi:"Ei vielä lisättyjä tiedostoja.",sv:"Inga filer har lagts till ännu.",en:"No files added yet."},this.fileListEmpty=p(this.fileListEmptyDefaults),this.error="",this.errorCodes=j,this.name=void 0,this.maxBytes=2e8,this.maxBytesTotal=void 0,this.maxFiles=99,this.allowedExtensions="all",this.allowedMimetypes="",this.multiple=!0,this.limitSelection=!1,this.hideCancelButton=!1,this.value=void 0,this.externalUploadButtonId=void 0,this.captionOnBottom=!1,this.showUploadedItemsHeader=!1,this.uploadedItemsHeaderLabel={fi:"Ladattu tiedosto",sv:"Lägg till en bilaga",en:"Uploaded file"},this.headerHeadingLevel="h3",this.hideHeader=!1,this.emitEvent=!1,this.groups=[{id:this.DefaultGroups.success,label:{fi:"Valmiit tiedostot",sv:"Files success",en:"Files success"}},{id:this.DefaultGroups.failure,label:{fi:"Tiedostot, joissa on virheitä",sv:"Filer med fel",en:"Files with errors"}},{id:this.DefaultGroups.inprogress,label:{fi:"Kesken olevat tiedostot",sv:"Filer inprogress",en:"Files inprogress"}},{id:this.DefaultGroups.pending,label:{en:"Files to upload",sv:"Filer att ladda",fi:"Ladattavat tiedostot"}}]}watchValidHandler(t,e){t!==e&&this.kick()}componentWillLoad(){this.internalStatusMessageLabel="string"==typeof this.statusMessageLabel?m(this.groups):this.statusMessageLabel,l(this),this.listenForActionEvents(),this.onReady(),this.externalUploadButton=document.querySelector(`#${this.externalUploadButtonId}`)}componentWillRender(){this.verifyValidity()}async setFocus(t){this.nativeInput&&this.nativeInput.focus(t)}async upload(t){const{bytesMaxReached:e,fileMaxReached:i}=this.validateTotals();if(e||i)return this.handleExternalUploadButton(e,i),void this.kick();this.metaData=t,this.nativeInput.click()}async uploadPending(){this.uploadPendingFiles()}async refresh(){this.kick(),await this.setFocus()}async getFiles(){return!(!this.files||0===this.files.size)&&this.getFilesAsArray()}async updateValue(t,e,i){this.updateValueInMap(t,e,i)}async focusActionButton(t){var e;await(null===(e=this.itemRefs.get(t))||void 0===e?void 0:e.focusActionButton())}render(){const e=this.identifier||this.uploadId,i=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024),s=Math.round(this.maxBytes/1024/1024);let l=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());return l=l.replace(/{maxbytes}/g,`${s.toString()} MB`),l=l.replace(/{maxbytestotal}/g,`${i.toString()} MB`),l=l.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", ")),this.externalUploadButton&&(this.externalUploadButton.accessibleLabel=l),t(a,{class:{"duet-m-0":"none"===this.margin}},t("duet-fieldset",{"label-heading-level":this.headerHeadingLevel,"label-hidden":this.hideHeader,label:this.label,caption:this.captionOnBottom?void 0:l},t("slot",{name:"header"}),!this.files.size&&t("duet-empty-state",{id:this.labelId,part:this.identifier?`${this.identifier}-empty-state`:"duet-upload-empty-state",icon:"messaging-attachment"},t("duet-paragraph",{margin:"none"},this.fileListEmpty)),!!this.files.size&&t("slot",{name:"fileheader"}),!!this.files.size&&t("duet-upload-aria-status",{invalid:this.getFilesAsArray().invalid.length,valid:this.getFilesAsArray().valid.length,inprogress:this.filesInProgress.size,total:this.files.size,statusMessageLabel:this.internalStatusMessageLabel}),!!this.files.size&&this.renderUploadedItems(),!!this.files.size&&t("slot",{name:"filefooter"}),t("slot",{name:"uploadfooter"}),this.captionOnBottom&&t("duet-caption",{margin:"none",size:"small"},t("div",{class:"upload-bottom-caption"},l)),t("slot",{name:"afterfooter"}),!this.hideButton&&t(d,null,t("duet-spacer",{size:"large"}),t("duet-button",{id:this.buttonId,onClick:this.startUpload,"accessible-controls":e,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel,"accessible-owns":e,size:"small",variation:"secondary",fixed:!0,icon:"action-add-circle",part:this.identifier?`${this.identifier}-button-upload`:"duet-upload-button-upload"},this.buttonLabel)),(this.fileMaxReached||this.bytesMaxReached||this.filesToUploadExceedsLimit||this.filesToUploadTotalSizeIsAboveMax)&&t(d,null,t("duet-spacer",{size:"medium"}),t("duet-alert",{part:this.identifier?`${this.identifier}-error-notification`:"duet-upload-error-notification"},this.fileMaxReached&&w("duet-upload-301",this.errorCodes),this.bytesMaxReached&&w("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&w("duet-upload-302",this.errorCodes),this.filesToUploadTotalSizeIsAboveMax&&w("duet-upload-203",this.errorCodes))),t("duet-visually-hidden",{"aria-hidden":"true"},t("input",{ref:t=>{this.nativeInput=t},accept:this.limitSelection?`${this.allowedMimetypes},${this.allowedExtensions}`:void 0,onBlur:this.onBlur,onFocus:this.onFocus,onChange:t=>this.onChange(t),type:"file",class:{"duet-upload":!0},disabled:this.disabled,"aria-hidden":"true",required:this.required,name:this.name,id:this.identifier,multiple:this.multiple,tabIndex:-1}))))}makeXHRPostRequest(t){const e=new XMLHttpRequest,i=t.get("name");e.upload.addEventListener("progress",(t=>{this.updateProgress(t,i)})),e.upload.addEventListener("load",(()=>{this.transferComplete(i)})),e.upload.addEventListener("error",(()=>{this.transferFailed(i)})),e.upload.addEventListener("abort",(()=>{this.transferCanceled(i)}));let a={payload:{data:t,name:i},options:{type:"POST",uri:this.uri,xhr:e,argument:null,headers:void 0},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};return this.middleware&&(a=this.middleware(a)),F(a)}makeXHRDeleteRequest(t){const{uid:e,item:i}=t,a=new XMLHttpRequest;let s={payload:{data:null,name},options:{type:"DELETE",xhr:a,uri:this.uri,argument:`?key=${e}&name=${i.name}`,headers:{"x-fileuid":e,"x-filename":i.name}},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};return this.middleware&&(s=this.middleware(s)),F(s)}async onChange(t){var e;const i=Array.from(null===(e=this.nativeInput)||void 0===e?void 0:e.files);if(this.filesToUploadExceedsLimit=!1,this.files.size+i.length>this.maxFiles)return this.filesToUploadExceedsLimit=!0,void this.kick();if(this.filesToUploadTotalSizeIsAboveMax=!1,((t,e,i)=>{let a=0;return!!(i&&(this.files.forEach((t=>{t.valid&&t.size&&(a+=t.size)})),e.forEach((t=>{t.size&&(a+=t.size)})),a>=i))})(0,i,this.maxBytesTotal))return this.filesToUploadTotalSizeIsAboveMax=!0,void this.kick();if(i)for(const t of i){const{valid:e,errorMessage:i,errorType:a,errorSystem:s}=M(t,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),d={uid:this.genHashName(),item:t,size:t.size,meta:this.metaData,uploaded:!1,valid:e,error:{type:e?void 0:a,message:e?void 0:i,system_message:e?void 0:s},progress:0,deleted:!1,xhr:!1,url:!1};this.files.set(t.name,d),e&&!this.external?await this.uploadFile(d):e&&this.external?(this.updateValueInMap(d.item.name,"pending",!0,!1),this.updateValueInMap(d.item.name,"group","pending",!0)):e||this.updateValueInMap(t.name,"valid",!1,!0),this.kick()}this.resetFormFields(),this.metaData=void 0,this.duetChange.emit({originalEvent:t,data:{files:this.files},component:"duet-upload"})}get element(){return s(this)}static get watchers(){return{valid:["watchValidHandler"]}}};C.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}::slotted([slot=uploadfooter]){margin-top:20px}.duet-upload{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}duet-paragraph::part(duet-paragraph){word-break:break-word}duet-editable-table tfoot{display:none}.upload-bottom-caption{margin-top:12px;margin-bottom:16px;line-height:1.4rem}.items-header{display:none;flex-direction:row;margin-bottom:0}@media (min-width: 36em){.items-header{display:flex}}.items-header:not(:last-child),.items-header:not(:first-child){margin-top:12px}.items-header .category-header{width:35%}.items-header .filename-header{width:65%}.items-header .filename-header.no-category{width:100%}.upload-item-row{display:flex;flex-direction:column;gap:16px;align-content:center;align-items:center;padding:16px 0 16px 0;border-bottom:1px solid rgb(225, 227, 230)}@media (min-width: 36em){.upload-item-row{flex-direction:row;gap:10px}}.upload-item-row .item-categories{width:100%}@media (min-width: 36em){.upload-item-row .item-categories{width:35%}}.upload-item-row .item-name{position:relative;bottom:2px;width:100%;text-align:left}@media (min-width: 36em){.upload-item-row .item-name{width:50%}.upload-item-row .item-name.no-category{width:85%}}.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:block}@media (min-width: 36em){.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:none}}.upload-item-row .item-actions{width:100%;margin-left:-8px;text-align:left}@media (min-width: 36em){.upload-item-row .item-actions{width:15%;padding-top:0;margin-left:auto;text-align:right}}.upload-item-row .duet-upload-item-name duet-icon{position:relative;top:4px}.upload-item-row .duet-upload-item-name duet-progress{display:block;margin-top:16px}";export{T as duet_editable_table,S as duet_table,C as duet_upload}
4
+ import{h as t,r as e,c as i,H as a,g as s,F as d}from"./p-9f931d57.js";import{i as l}from"./p-a58bd561.js";import{f as o,d as n}from"./p-9e371678.js";import{i as r}from"./p-2bb2b022.js";import{a as h,c as u,d as b,g as p,s as m}from"./p-2e36d5bf.js";import{p as c,s as g}from"./p-f2aa1623.js";import{b as f,a as y}from"./p-9dff8650.js";import{c as v}from"./p-5e59e970.js";import{g as x,a as w}from"./p-fabb616b.js";import"./p-0e052642.js";const k=({data:e,groupId:i,alignment:a})=>{const s=`duet-editable-table duet-editable-table-content-${i}`;return"string"==typeof e?t("td",{innerHTML:e,class:s,part:`${i}content`,style:{verticalAlign:a}}):t("td",{class:s,part:`${i}content`,style:{verticalAlign:a}},e)},T=class{constructor(t){e(this,t),this.duetTableToggle=i(this,"duetTableToggle",7),this.duetMenuClick=i(this,"duetMenuClick",7),this.hasHeadSlotFirst=!1,this.hasHeadSlotLast=!1,this.hasFootSlot=!1,this.sortableDefaultLabel={fi:"Järjestä",en:"Click to sort",sv:"Klicka för att sortera"},this.actionColumnLabel={en:"Actions for rows",fi:"Toiminnot rivillä",sv:"Åtgärder för rader"},this.toggleColumn=(t,e)=>{e.preventDefault();const{sort_order:i,direction:a,index:s,key:d}=t;this.duetTableToggle.emit({sort_order:i,index:s,direction:a,key:d,component:"duet-editable-table",originalEvent:e})},this.handleKeyDown=(t,e)=>{r(e)&&this.toggleColumn(t,e)},this.language=h(),this.margin="auto",this.variation="striped",this.sticky=!1,this.stickyDistance="with-links",this.breakpoint="small",this.actions=void 0,this.columns=void 0,this.rows=void 0,this.sortable=!1,this.groupId="",this.theme="",this.accessibleRole=void 0,this.hideHeadVisually=!1}componentWillLoad(){l(this),this.hasHeadSlotFirst=!!this.element.querySelector("[slot='thead-first']"),this.hasHeadSlotLast=!!this.element.querySelector("[slot='thead-last']"),this.hasFootSlot=!!this.element.querySelector("[slot='tfoot']")}connectedCallback(){u(this)}disconnectedCallback(){b(this)}createLabel(e){const{sort_order:i,direction:a,index:s,label:d}=e,l=p(d);return this.sortable?t("span",{class:"duet-table-label","data-index":s},t("duet-button",{size:"small",icon:i&&1===a?"action-arrow-down-small":i&&-1===a?"action-arrow-up-small":"action-subtract-small","icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":!0,onClick:t=>this.toggleColumn(e,t),onKeyDown:t=>this.handleKeyDown(e,t)},l)):l}getSortedColumns(){return[...this.columns].sort(o(["index"]))}getRowSortOrder(){return[...this.columns].sort(o(["sort_order"])).filter((t=>t.sort_order)).map((t=>-1===t.direction?`-${t.key}`:t.key))}renderTableHeader(){if(!this.columns)return;const e=this.getSortedColumns();return t("tr",{class:{"duet-table-action-header":!!this.actions}},e.map((e=>{if(!1!==e.display){const i=this.createLabel(e);return""!==i?t("th",{scope:"col"},i):t("td",null)}})),this.actions&&t("th",{scope:"col",class:"duet-table-action-header-heading"},this.actions&&t("duet-visually-hidden",null,this.actionColumnLabel[this.language])))}renderActions(e,i){if(this.actions)return t("td",{class:"duet-text-right"},this.actions.map((a=>t("duet-action-button",{actionMeta:Object.assign({},(null==e?void 0:e.meta)||{},{index:i}),actionId:(null==e?void 0:e.uid)||(null==e?void 0:e.id)||null,actionName:a.name,theme:this.theme,iconName:a.icon,iconColor:a.color,iconSize:a.size,background:a.background,"accessible-label":`${e.actionDescription||""} ${p(a.label)} `}))))}renderTableBody(){const e=this.getSortedColumns(),i=this.getRowSortOrder();return[...this.rows].sort(o(i)).map(((i,a)=>t("tr",{class:{"duet-table-action-row":!!this.actions,"duet-editable-table-row":!0,[`duet-editable-table-row-${this.groupId}`]:!0},"data-meta":JSON.stringify(i.meta)},e.map((e=>{if(!1!==e.display)return t(k,{data:i[e.key]?i[e.key]:i.item,groupId:this.groupId})})),this.actions&&this.renderActions(i,a))))}render(){return t(a,{class:{[`duet-editable-table-${this.variation}`]:!0,"duet-editable-table":!0,[`duet-editable-table-${this.theme}`]:!0,"duet-editable-table-scrollable":"none-scrollable"===this.breakpoint,"duet-editable-table-sortable":this.sortable,"duet-editable-table-actions":!!this.actions,"duet-m-0":"none"===this.margin,"duet-theme-turva":"turva"===this.theme}},t("duet-table",{class:"duet-editable-table-table",sticky:this.sticky,stickyDistance:this.stickyDistance,margin:this.margin,theme:this.theme,variation:this.variation,breakpoint:this.breakpoint,"hide-head-visually":this.hideHeadVisually},t("table",{role:this.accessibleRole},t("caption",null,t("slot",{name:"tcaption"})),t("thead",null,this.hasHeadSlotFirst&&t("tr",null,t("td",{class:"duet-editable-table-actions-menu",colSpan:99},t("slot",{name:"thead-first"}))),this.renderTableHeader(),this.hasHeadSlotLast&&t("tr",null,t("td",{class:"duet-editable-table-actions-menu",colSpan:99},t("slot",{name:"thead-last"})))),t("tbody",null,this.renderTableBody()),this.hasFootSlot&&t("tfoot",null,t("tr",null,t("td",{class:"duet-editable-table-footer-menu",colSpan:99},t("slot",{name:"tfoot"})))))))}get element(){return s(this)}};T.style=".sc-duet-editable-table-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-editable-table-actions-menu.sc-duet-editable-table{position:relative;padding:0 !important;margin:0}.duet-editable-table-actions-menu-button.sc-duet-editable-table{position:relative;right:-16px;float:right;padding:0}.duet-editable-table-actions-menu-icon.sc-duet-editable-table .duet-icon.sc-duet-editable-table{max-width:16px;max-height:16px}.duet-editable-table-row.duet-table-action-row.sc-duet-editable-table .duet-text-right.sc-duet-editable-table{text-align:right}.duet-editable-table-header.sc-duet-editable-table tr.sc-duet-editable-table .duet-editable-table-header-hidden.sc-duet-editable-table{padding:0 !important;font-size:0;border-bottom:0}";const L={none:0,"with-links":16*parseFloat(c),"without-links":16*parseFloat(g)},S=class{constructor(t){e(this,t),this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)",this.handleMediaQueryChange=t=>{this.matchesBreakpoint=f.includes(this.breakpoint)?!t.matches:t.matches},this.matchesBreakpoint=!0,this.language=h(),this.theme=void 0,this.margin="auto",this.variation="striped",this.sticky=!1,this.stickyDistance="with-links",this.breakpoint="small",this.hideHeadVisually=!1}watchLanguageStateHandler(t,e){t!==e&&setTimeout((()=>this.copyHeadingsToCells()),50)}connectedCallback(){this.mq=matchMedia("none"===this.breakpoint||"none-scrollable"===this.breakpoint?"all":y[this.breakpoint]),this.mq.addEventListener("change",n(this.handleMediaQueryChange,50)),this.handleMediaQueryChange(this.mq),this.observer=new MutationObserver((()=>n(this.copyHeadingsToCells(),50))),this.observer.observe(this.element,{childList:!0,subtree:!0})}componentWillLoad(){if(l(this),this.copyHeadingsToCells(),this.sticky&&"none-scrollable"===this.breakpoint&&console.warn('[DUET WARNING]: sticky and breakpoint="none-scrollable" are incompatible. Scrollable takes precedence'),this.sticky){const t=L[this.stickyDistance];this.element.querySelectorAll(this.headingSelector).forEach((e=>e.style.top=`${t}px`))}}componentDidLoad(){this.observer&&this.observer.takeRecords(),u(this)}disconnectedCallback(){this.observer.disconnect(),this.observer=null,this.mq.removeListener(this.handleMediaQueryChange),this.mq=null,this.matchesBreakpoint=!0,b(this)}copyHeadingsToCells(){const t=this.element.querySelectorAll(this.headingSelector),e=this.element.querySelectorAll("tbody tr"),i=Array.from(t).map((t=>t.textContent.trim()));e.forEach((t=>{t.querySelectorAll("td").forEach(((t,e)=>{if(i[e]){const a=t.querySelector(".duet-table-cell-heading");if(!a||a.textContent!==i[e]){null==a||a.remove();const s=document.createElement("span");s.textContent=i[e],s.classList.add("duet-table-cell-heading"),s.setAttribute("aria-hidden","true"),s.inert=!0,t.prepend(s)}}}))}))}render(){return t(a,{class:{[`duet-table-${this.variation}`]:!0,"duet-table-flattened":!this.matchesBreakpoint,"duet-table-sticky":this.matchesBreakpoint&&this.sticky,"duet-table-scrollable":"none-scrollable"===this.breakpoint,"duet-m-0":"none"===this.margin,"duet-theme-turva":"turva"===this.theme,"duet-table-hide-head-visually":this.hideHeadVisually}},t("slot",null))}get element(){return s(this)}static get watchers(){return{language:["watchLanguageStateHandler"]}}};S.style='duet-table{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;font-variant-numeric:tabular-nums}duet-table table,duet-table thead,duet-table tbody,duet-table tfoot,duet-table th,duet-table td,duet-table tr{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}duet-table.duet-m-0{margin:0 !important}duet-table table{width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;text-align:left;border-spacing:0;border-collapse:separate}duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead,duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead *{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}duet-table.duet-theme-turva table{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}duet-table td{-webkit-hyphens:auto;hyphens:auto;color:rgb(0, 41, 77)}duet-table.duet-theme-turva td{color:rgb(23, 28, 58)}duet-table th{font-weight:600;line-height:1.25;color:rgb(101, 119, 135);text-align:left}duet-table.duet-theme-turva th{color:rgb(116, 116, 117)}duet-table tbody th{font-weight:600;color:rgb(0, 41, 77)}duet-table.duet-theme-turva tbody th{color:rgb(23, 28, 58)}duet-table .duet-table-action-row td:last-child{justify-self:end;padding-right:20px !important;white-space:nowrap}duet-table span.duet-table-cell-heading{display:none}.duet-table-flattened table,.duet-table-flattened thead,.duet-table-flattened tbody,.duet-table-flattened tfoot,.duet-table-flattened th,.duet-table-flattened td,.duet-table-flattened tr{display:block}.duet-table-flattened thead tr{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}.duet-table-flattened td{line-height:1.25}.duet-table-flattened td:not(:last-child){margin-bottom:16px !important}.duet-table-flattened td span.duet-table-cell-heading{margin-bottom:4px !important;display:block;font-size:1rem;font-weight:600;color:rgb(0, 41, 77)}.duet-table-flattened.duet-theme-turva td span.duet-table-cell-heading{color:rgb(23, 28, 58)}.duet-table-flattened tbody td,.duet-table-flattened tbody th,.duet-table-flattened tfoot td{padding:0 !important;text-align:left !important}.duet-table-flattened tbody th{font-weight:600;line-height:1.25;color:rgb(101, 119, 135);text-align:left}.duet-table-sticky thead th{position:sticky;top:0;background:rgb(255, 255, 255)}.duet-table-striped td,.duet-table-striped th{padding:20px !important}@media (max-width: 35.9375em){.duet-table-striped td,.duet-table-striped th{padding:20px 12px !important}}.duet-table-striped tbody th{background:rgb(255, 255, 255)}.duet-table-striped.duet-table-sticky thead th{border-bottom:1px solid rgb(225, 227, 230)}.duet-table-striped.duet-table-sticky.duet-theme-turva thead th{border-bottom-color:rgb(228, 228, 230)}.duet-table-striped tbody:not(:first-of-type) th{padding-top:40px !important}.duet-table-striped tbody:only-of-type tr:nth-of-type(odd){background:rgba(0, 80, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(0, 80, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tfoot td{border-top:1px solid rgb(225, 227, 230)}.duet-table-striped.duet-theme-turva tfoot td{border-top-color:rgb(228, 228, 230)}.duet-table-striped.duet-table-flattened tbody:not(:first-of-type) th{padding-top:20px !important}.duet-table-striped.duet-table-flattened tr{padding:20px !important}.duet-table-striped.duet-table-flattened tfoot td{border-top:0}.duet-table-striped.duet-table-flattened tfoot tr{border-top:1px solid rgb(225, 227, 230)}.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:rgb(228, 228, 230)}.duet-table-fixed th,.duet-table-minimal th,.duet-table-plain th{padding:16px !important;border-bottom:1px solid rgb(101, 119, 135)}.duet-table-fixed th:first-child,.duet-table-minimal th:first-child,.duet-table-plain th:first-child{padding-left:0 !important}.duet-table-fixed th:last-child,.duet-table-minimal th:last-child,.duet-table-plain th:last-child{padding-right:0 !important}.duet-theme-turva.duet-table-fixed th,.duet-theme-turva.duet-table-minimal th,.duet-theme-turva.duet-table-plain th{border-bottom-color:rgb(68, 68, 69)}.duet-table-fixed tbody th,.duet-table-minimal tbody th,.duet-table-plain tbody th{padding-top:40px !important;border-bottom-color:rgb(225, 227, 230)}.duet-theme-turva.duet-table-fixed tbody th,.duet-theme-turva.duet-table-minimal tbody th,.duet-theme-turva.duet-table-plain tbody th{border-bottom-color:rgb(228, 228, 230)}.duet-table-fixed td,.duet-table-minimal td,.duet-table-plain td{padding:16px !important}.duet-table-fixed td:first-child,.duet-table-minimal td:first-child,.duet-table-plain td:first-child{padding-left:0 !important}.duet-table-fixed td:last-child,.duet-table-minimal td:last-child,.duet-table-plain td:last-child{padding-right:0 !important}.duet-table-fixed tbody td,.duet-table-minimal tbody td,.duet-table-plain tbody td{border-bottom:1px solid rgb(225, 227, 230)}.duet-theme-turva.duet-table-fixed tbody td,.duet-theme-turva.duet-table-minimal tbody td,.duet-theme-turva.duet-table-plain tbody td{border-bottom-color:rgb(228, 228, 230)}.duet-table-flattened.duet-table-fixed tbody:first-of-type th,.duet-table-flattened.duet-table-minimal tbody:first-of-type th,.duet-table-flattened.duet-table-plain tbody:first-of-type th{padding-top:0 !important}.duet-table-flattened.duet-table-fixed td,.duet-table-flattened.duet-table-minimal td,.duet-table-flattened.duet-table-plain td,.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{border-bottom:0}.duet-table-flattened.duet-table-fixed tr,.duet-table-flattened.duet-table-minimal tr,.duet-table-flattened.duet-table-plain tr{padding:20px 0 !important}.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{padding-top:20px !important}.duet-table-flattened.duet-table-fixed tfoot td,.duet-table-flattened.duet-table-minimal tfoot td,.duet-table-flattened.duet-table-plain tfoot td{margin-bottom:4px !important}.duet-table-flattened.duet-table-fixed tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-minimal tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-plain tbody:not(:only-of-type) tr:first-child{border-bottom:0}.duet-table-plain.duet-table-flattened tbody tr{border-bottom:1px solid rgb(225, 227, 230)}.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:rgb(228, 228, 230)}.duet-table-minimal tbody tr,.duet-table-minimal tbody tr td{vertical-align:top;border-bottom:0 none}.duet-table-minimal tbody tr:last-of-type,.duet-table-minimal tbody tr:last-of-type td{border-bottom:1px solid rgb(225, 227, 230)}.duet-table-minimal.duet-table-flattened tbody tr,.duet-table-minimal.duet-table-flattened tbody tr td{border-bottom:0 none}.duet-table-minimal.duet-table-flattened tbody tr td[data-heading]::before{display:none}.duet-table-minimal.duet-table-flattened tfoot{border-top:1px solid rgb(225, 227, 230)}.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.duet-table-fixed table{table-layout:fixed}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td,.duet-table-fixed tbody tr td:first-child{padding:4px !important;vertical-align:text-bottom;border-bottom:0 none}.duet-table-fixed thead{display:none}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td{border-bottom:0 none}.duet-table-fixed:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(225, 227, 230)}.duet-table-fixed:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.duet-table-scrollable{position:relative;width:100%;overflow-x:auto;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0)), linear-gradient(-90deg, #fff 0%, rgba(255, 255, 255, 0)) 100% 0, radial-gradient(farthest-side at 0% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)) 100% 0%;background-repeat:no-repeat;background-attachment:local, local, scroll, scroll;background-size:100px 100%, 100px 100%, 12px 100%, 12px 100%}.duet-table-selected-column{background:rgba(0, 119, 179, 0.08)}.duet-theme-turva .duet-table-selected-column{background:rgba(68, 68, 69, 0.08)}.duet-table-sortable tbody tr td:first-child,.duet-table-sortable thead tr th:first-child{padding:20px}.duet-table-sortable:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(225, 227, 230)}.duet-table-sortable:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.duet-table-actions table{table-layout:auto}.duet-table-actions thead th:last-child{width:1px;white-space:nowrap}.duet-editable-table-table.duet-table-flattened tr{display:grid;grid-template-columns:repeat(2, 1fr);grid-auto-rows:auto;gap:10px}.duet-editable-table-table.duet-table-flattened tr.duet-table-action-row td:last-child::before{padding:0;content:""}.duet-editable-table-table.duet-table-flattened td{grid-column:1/2}.duet-editable-table-table.duet-table-flattened td:first-child{grid-row:1;grid-column:1}.duet-editable-table-table.duet-table-flattened td:last-child{grid-row:1;grid-column:2}';const j=[{type:"default",system_message:"unknown error",message:{fi:"Tapahtui tuntematon virhe, ole hyvä ja yritä uudelleen.",sv:"Ett okänt fel uppstod, försök igen.",en:"An unknown error occured, please try again."}},{type:"400",system_message:"Bad Request: The server could not understand the request due to invalid syntax.",message:{fi:"Tiedostoa ei hyväksytty.",sv:"Servern avvisade din fil.",en:"The server rejected your file."}},{type:"401",system_message:"Not Authenticated: The client must authenticate itself to get the requested response...",message:{fi:"Vain kirjautunut käyttäjä voi lähettää tiedostoja.",sv:"Du måste vara inloggad för att ladda upp filer.",en:"You need to be logged in to upload files."}},{type:"403",system_message:"No Access: The client does not have access rights to the content.",message:{fi:"Ei oikeuksia lähettää tiedostoja.",sv:"Du har inte rätt åtkomsträttigheter för att ladda upp filer.",en:"You do not have the correct access rights to upload files."}},{type:"413",system_message:"Payload too large",message:{fi:"Tiedosto oli liian vastaanotettavaksi.",sv:"Filen var för stor för servern att hantera.",en:"The file was to large for the server to handle."}},{type:"415",system_message:"Unsupported media type",message:{fi:"Tiedoston tyyppi oli väärä.",sv:"Servern avvisade filen eftersom den hade fel typ.",en:"The server rejected the file because it had the wrong type."}},{type:"429",system_message:"Too many request from same address",message:{fi:"Liian monta yritystä, ole hyvä ja yritä myöhemmin uudelleen.",sv:"Servern har fått många förfrågningar från dig, försök igen senare.",en:"The server has received to many request from you, please try again later."}},{type:"500",system_message:"Internal Server Error",message:{fi:"Palvelin ilmoitti tuntemattomasta virheestä ja lataus epäonnistui.",sv:"Servern rapporterade ett okänt fel och uppladdningen misslyckades.",en:"The server reported an unknown error and the upload failed."}},{type:"duet-upload-100",system_message:"File extension not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den type.",en:"You cannot upload files with that extension."}},{type:"duet-upload-001",system_message:"File transfer failed",message:{fi:"Tiedoston lähetys keskeytyi, ole hyvä ja yritä uudelleen.",sv:"Din anslutning till servern avbröts, försök igen.",en:"Your connection to the server was interrupted, try again."}},{type:"duet-upload-101",system_message:"File mimetype not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den typ.",en:"You cannot upload files of that type."}},{type:"duet-upload-201",system_message:"File is too large",message:{fi:"Tiedosto on liian iso.",sv:"Filen är större än tillåtet.",en:"The file is larger than permitted."}},{type:"duet-upload-202",system_message:"The combined size of all files is too large",message:{fi:"Tiedostojen yhteenlaskettu koko on liian iso.",sv:"Du har nått den maximala kombinerade filstorleken.",en:"You have reached the maximum combined filesize."}},{type:"duet-upload-203",system_message:"Files to upload exceed total byte size limit",message:{fi:"Yritit lisätä tiedostoja, jotka ylittäisivät suurimman sallitun yhteenlasketun koon.",sv:"Du försökte lägga till filer som skulle överskrida den maximala kombinerade storleken.",en:"You tried to add files that would exceed the maximum combined size."}},{type:"duet-upload-301",system_message:"The maximum file limit has been reached",message:{fi:"Liitteiden maksimimäärä saavutettu.",sv:"Maximalt antal bilagor har uppnåtts.",en:"Maximum number of attachments reached."}},{type:"duet-upload-302",system_message:"Files to upload exceeds limits",message:{fi:"Et voi lähettää enempää kuin enimmäismäärän liitteitä.",sv:"Du kan inte ladda upp fler än det maximala antalet bilagor.",en:"You can't upload more than maximum number of attachments."}}],E={fi:"Liiteluettelo",sv:"Lista över bilagor",en:"Attachments list"},z=({label:e,categoryLabel:i})=>t("div",{class:"items-header",tabindex:"-1","aria-label":p(E)},i&&t("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},p(i)),t("duet-heading",{class:{"filename-header":!0,"no-category":!i},border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},p(e))),M=(t,e,i)=>{const{allowedMimetypes:a,allowedExtensions:s,maxBytes:d}=e;let l=!1,o=x("default",i);if(t){const{name:e,type:n,size:r}=t,h=((t,e)=>{if(!e||!t)return!0;const i=e.split(",");let a=!1;return i.forEach((e=>{const i=e.split("/"),s=t.split("/");i[0]!==s[0]||i[1]!==s[1]&&"*"!==i[1]||(a=!0)})),a})(n,a),u="all"===s||""===s||" "===s||void 0===s||((t,e)=>{if(!e)return!0;const i=t.split(".");return e.split(",").includes(i[i.length-1])})(e.toLowerCase(),s),b=((t,e)=>!e||!t||e>=t)(r,d);h||(o=x("duet-upload-101",i)),u||(o=x("duet-upload-100",i)),b||(o=x("duet-upload-201",i)),l=h&&u&&b}else l=!1;return{valid:l,errorMessage:l?void 0:p(o.message),errorSystem:l?void 0:o.system_message,errorType:l?void 0:o.type}},F=({payload:t,options:e,onFailure:i,onSuccess:a,onProgress:s})=>{const{type:d="POST",xhr:l,uri:o,argument:n=null,headers:r=null}=e;l.open(d,`${o}${n||""}`,!0);const{data:h,name:u}=t;return r&&Object.keys(r).forEach((t=>{l.setRequestHeader(t,r[t])})),"POST"===d&&(l.onreadystatechange=()=>{l.readyState===XMLHttpRequest.DONE&&l.status>=200&&l.status<300&&a(l,u,l.status),l.readyState===XMLHttpRequest.DONE&&l.status>=300&&l.status<999&&i(l,u,l.status)},s(u)),l.send(h),l},C=class{constructor(a){e(this,a),this.duetChange=i(this,"duetChange",3),this.duetBlur=i(this,"duetBlur",7),this.duetFocus=i(this,"duetFocus",7),this.duetReady=i(this,"duetReady",7),this.duetDone=i(this,"duetDone",3),this.duetState=i(this,"duetState",3),this.duetDelete=i(this,"duetDelete",3),this.duetCancel=i(this,"duetCancel",3),this.duetProgress=i(this,"duetProgress",3),this.duetUpload=i(this,"duetUpload",3),this.linkClick=i(this,"linkClick",3),this.buttonId=v("DuetButton"),this.labelId=v("DuetLabel"),this.uploadId=v("DuetUpload"),this.filesInProgress=new Map,this.fileMaxReached=!1,this.bytesMaxReached=!1,this.filesToUploadExceedsLimit=!1,this.filesToUploadTotalSizeIsAboveMax=!1,this.internalStatusMessageLabel=void 0,this.itemRefs=new Map,this.DefaultGroups={inprogress:"inprogress",success:"success",pending:"pending",failure:"failure"},this.kick=n((()=>{this.tick=Date.now()}),30),this.categoryLabel={en:"Category",sv:"Filtyp",fi:"Tiedostotyyppi"},this.listenForActionEvents=()=>{this.element.addEventListener("duetActionEvent",(t=>{const e=t.detail,{action:i,id:a,originalEvent:s}=e;switch(i){case"delete":this.onDelete(a,s);break;case"cancel":this.onCancel(a,s)}}))},this.verifyValidity=()=>{const{invalid:t,valid:e}=this.getFilesAsArray(),i=this.valid;this.valid=0===t.length&&0!==e.length,this.valid!==i&&this.duetState.emit({originalEvent:void 0,data:{valid:this.valid,from:"componentWillRender"},component:"duet-upload"})},this.getGroupFromItemData=t=>t.valid&&100===t.progress?this.DefaultGroups.success:t.progress>0&&100!==t.progress?this.DefaultGroups.inprogress:t.valid?t.pending?this.DefaultGroups.pending:t.group?t.group:"none":this.DefaultGroups.failure,this.mapFilesToUploadItems=(e,i,a,s)=>i===this.DefaultGroups.success?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i,s),type:"success",data:e,showLinks:this.showLinks,linkClickEvent:this.emitEvent?this.linkClick:void 0,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,ref:t=>{this.itemRefs.set(e.uid,t)}}):i===this.DefaultGroups.inprogress?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i,s),type:"inprogress",data:e,showLinks:this.showLinks,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,ref:t=>{this.itemRefs.set(e.uid,t)}}):i===this.DefaultGroups.pending?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i,s),type:"pending",data:e,showLinks:this.showLinks,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,ref:t=>{this.itemRefs.set(e.uid,t)}}):i===this.DefaultGroups.failure?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i,s),type:"failure",data:e,showLinks:this.showLinks,errorCodes:this.errorCodes,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,ref:t=>{this.itemRefs.set(e.uid,t)}}):e.group?e.html:"none",this.genHashName=()=>Date.now().toString(36)+Math.random(),this.updateValueInMap=(t,e,i,a=!0)=>{try{const a=this.files.get(t);a[e]=i,this.files.set(t,a),this.external&&"url"!==e&&this.trackProgress(t,"uploaded"===e)}catch(t){}a&&this.kick()},this.updateProgress=(t,e)=>{t.lengthComputable?(i=>{this.updateValueInMap(e,"progress",i),this.onProgress(e,i,t)})(t.loaded/t.total*100):console.log("cant read progress")},this.trackProgress=(t,e=!1)=>{e?this.filesInProgress.delete(t):this.filesInProgress.set(t,"inprogress"),0===this.filesInProgress.size&&this.onDone()},this.getFilesAsArray=()=>{const t=[],e=[];return this.files.forEach((i=>{i.valid&&!i.deleted?t.push(i):i.valid||i.deleted||e.push(i)})),{valid:t,invalid:e}},this.resetFormFields=()=>{this.nativeInput.value=""},this.startUpload=async(t,e)=>{const{bytesMaxReached:i,fileMaxReached:a}=this.validateTotals();i||a?this.kick():(this.metaData=e,this.nativeInput.click(),this.onUpload(t,e),t.stopPropagation(),t.preventDefault())},this.transferComplete=t=>{this.updateValueInMap(t,"progress",100,!1),this.trackProgress(t,!0)},this.transferDone=(t,e,i)=>{this.updateValueInMap(e,"status",i,!1),this.updateValueInMap(e,"uploaded",!0,!1);try{const i=JSON.parse(t.response);this.updateValueInMap(e,"url",i.url)}catch(t){this.updateValueInMap(e,"url",null),console.error("Server did not respond with expected response {url: string}")}},this.transferDoneWithFailure=(t,e,i)=>{try{const{error:i}=JSON.parse(t.response);this.updateValueInMap(e,"error",{message:i.message,type:i.type},!1)}catch(t){console.error("Server did not respond with expected response error:{message: string, type: int}"),this.updateValueInMap(e,"error",{type:i},!1)}this.updateValueInMap(e,"valid",!1,!0)},this.transferFailed=t=>{this.updateValueInMap(t,"error",w("duet-upload-001",this.errorCodes))},this.transferCanceled=t=>{this.files.delete(t),this.validateTotals(t),this.kick()},this.validateTotals=t=>{const e=((t,e)=>{let i=0;return!!(e&&(this.files.forEach((t=>{t.valid&&t.size&&(i+=t.size)})),i>=e))})(0,this.maxBytesTotal),i=((t,e)=>{let i=0;return!!(e&&(this.files.forEach((t=>{t.valid&&i++})),i>=e))})(0,this.maxFiles);return e&&t&&this.updateValueInMap(t,"error",w("duet-upload-202",this.errorCodes),!1),i&&t&&this.updateValueInMap(t,"error",w("duet-upload-301",this.errorCodes),!1),this.bytesMaxReached=e,this.fileMaxReached=i,{bytesMaxReached:e,fileMaxReached:i}},this.uploadFile=async(t,e=!1,i)=>{!e&&this.deferUpload?(this.updateValueInMap(t.item.name,"pending",!0,!1),this.updateValueInMap(t.item.name,"group","pending",!0)):e&&(this.updateValueInMap(t.item.name,"pending",!1,!1),this.updateValueInMap(t.item.name,"group",void 0,!0));try{if(!this.deferUpload||e){const e=new FormData;e.append("file",t.item),i&&e.append("key",i),e.append("uid",t.uid),e.append("name",t.item.name),e.append("metadata",JSON.stringify({uid:t.uid,url:this.uri,size:t.item.size,meta:t.meta})),t.xhr=await this.makeXHRPostRequest(e)}}catch(e){this.updateValueInMap(t.item.name,"valid",!1,!1)}},this.uploadPendingFiles=()=>{for(const[t,e]of Array.from(this.files.entries()))"pending"===e.group&&!0===e.pending&&this.uploadFile(e,!0,t)},this.getItemFromUID=t=>{for(const[e,i]of Array.from(this.files.entries()))if(i.uid===t)return{value:i,key:e};return null},this.handleExternalUploadButton=(t,e)=>{this.externalUploadButton&&(this.externalUploadButton.disabled=!(!t&&!e))},this.onDelete=(t,e)=>{const i=this.getItemFromUID(t).key,a=this.files.get(i);this.files.delete(i);const{bytesMaxReached:s,fileMaxReached:d}=this.validateTotals();this.handleExternalUploadButton(s,d),this.kick(),this.duetDelete.emit({originalEvent:e,data:{deletion:a},component:"duet-upload"}),this.external||a.pending||this.makeXHRDeleteRequest(a),this.resetFormFields()},this.onCancel=(t,e)=>{const i=this.getItemFromUID(t).key,a=this.files.get(i);this.files.delete(i);const{bytesMaxReached:s,fileMaxReached:d}=this.validateTotals();if(this.handleExternalUploadButton(s,d),!this.external){const{xhr:t}=a;t&&t.abort()}this.kick(),this.resetFormFields(),this.duetCancel.emit({originalEvent:e,data:{cancelled:a},component:"duet-upload"})},this.onUpload=(t,e)=>{this.duetUpload.emit({originalEvent:t,metaData:e,component:"duet-upload"})},this.onBlur=t=>{this.duetBlur.emit({originalEvent:t,component:"duet-upload"})},this.onProgress=(t,e,i)=>{this.duetChange.emit({originalEvent:i,data:{key:t,percentComplete:e},component:"duet-upload"})},this.onFocus=t=>{this.duetFocus.emit({originalEvent:t,component:"duet-upload"})},this.onReady=()=>{this.duetReady.emit({component:"duet-upload"})},this.onDone=()=>{this.duetDone.emit({component:"duet-upload",data:{files:this.files}})},this.filterMap=()=>{const t=Array.from(this.files.values()),e=[],i=[],a=[],s=[];let d=!1;return t.forEach((t=>{const l=this.getGroupFromItemData(t);t.meta&&t.meta.badges&&(d=!0),l===this.DefaultGroups.success?s.push({uid:t.uid,data:t}):l===this.DefaultGroups.inprogress?e.push({uid:t.uid,data:t}):l===this.DefaultGroups.pending?a.push({uid:t.uid,data:t}):l===this.DefaultGroups.failure?i.push({uid:t.uid,data:t}):t.group&&e.push({uid:t.uid,data:t})})),{pending:a,failure:i,success:s,inprogress:e,hasCategory:d}},this.getActions=(t,e)=>e.filter((e=>e.map.includes(t))),this.renderUploadedItems=()=>{this.itemRefs.clear();const e=this.filterMap(),i=e.hasCategory,a=this.hideCancelButton?this.actions.filter((t=>"cancel"!==t.name)):this.actions,s=this.groups.map((s=>{const l=e[s.id];if(null==l?void 0:l.length)return t(d,null,!this.hideGroups&&t(z,{categoryLabel:i?this.categoryLabel:void 0,label:s.label}),l.map((t=>this.mapFilesToUploadItems(t.data,s.id,i,a))))}));return t(d,null,this.showUploadedItemsHeader&&t(z,{categoryLabel:i?this.categoryLabel:void 0,label:this.uploadedItemsHeaderLabel}),s)},this.tick=Date.now(),this.accessibleActiveDescendant=void 0,this.accessibleDescribedBy=void 0,this.accessibleControls=void 0,this.accessibleOwns=void 0,this.external=!1,this.middleware=null,this.deferUpload=!1,this.hideButton=!1,this.actions=[{icon:"action-delete",color:"color-danger",size:"x-small",background:"gray-lightest",name:"delete",map:["success","failure"],label:{fi:"Poista tiedosto",en:"Delete the file",sv:"Ta bort filen"}},{icon:"navigation-close",color:"primary",size:"x-small",background:"gray-lightest",name:"cancel",map:["inprogress","pending"],label:{fi:"Keskeytä lähetys",en:"Cancel the upload",sv:"Stop överföringen"}}],this.uri=void 0,this.showLinks=!1,this.caption=void 0,this.statusLabelDefaults={fi:{inProgress:"Lähetetään {filesUploaded}, 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=p(this.statusLabelDefaults),this.buttonLabelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add an attachment"},this.buttonLabel=p(this.buttonLabelDefaults),this.accessibleButtonLabel=void 0,this.theme="",this.disabled=!1,this.identifier=void 0,this.margin="auto",this.required=!1,this.alignment="middle",this.hideGroups=!1,this.files=new Map,this.valid=!this.required,this.labelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add attachments"},this.label=p(this.labelDefaults),this.descriptionDefaults={en:"You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytestotal} of files at a time, and add up to {maxfiles} attachments at a time each no larger than {maxbytes}.",sv:"Du kan bifoga följande filtyper: {filetypes} - samt de vanligaste videofilerna. Du kan ladda upp {maxbytestotal} av filer åt gången, och lägga till upp till {maxfiles} bilagor åt gången varje inte större än {maxbytes}.",fi:"Voit liittää seuraavat tiedostotyypit: {filetypes} - sekä yleisimmät videotiedostot. Voit lähettää {maxbytestotal} tiedostoa kerrallaan, ja lisätä enintään {maxfiles} liitettä kerrallaan, jokainen enintään {maxbytes} kokoisena."},this.description=p(this.descriptionDefaults),this.fileListEmptyDefaults={fi:"Ei vielä lisättyjä tiedostoja.",sv:"Inga filer har lagts till ännu.",en:"No files added yet."},this.fileListEmpty=p(this.fileListEmptyDefaults),this.error="",this.errorCodes=j,this.name=void 0,this.maxBytes=2e8,this.maxBytesTotal=void 0,this.maxFiles=99,this.allowedExtensions="all",this.allowedMimetypes="",this.multiple=!0,this.limitSelection=!1,this.hideCancelButton=!1,this.value=void 0,this.externalUploadButtonId=void 0,this.captionOnBottom=!1,this.showUploadedItemsHeader=!1,this.uploadedItemsHeaderLabel={fi:"Ladattu tiedosto",sv:"Lägg till en bilaga",en:"Uploaded file"},this.headerHeadingLevel="h3",this.hideHeader=!1,this.emitEvent=!1,this.groups=[{id:this.DefaultGroups.success,label:{fi:"Valmiit tiedostot",sv:"Files success",en:"Files success"}},{id:this.DefaultGroups.failure,label:{fi:"Tiedostot, joissa on virheitä",sv:"Filer med fel",en:"Files with errors"}},{id:this.DefaultGroups.inprogress,label:{fi:"Kesken olevat tiedostot",sv:"Filer inprogress",en:"Files inprogress"}},{id:this.DefaultGroups.pending,label:{en:"Files to upload",sv:"Filer att ladda",fi:"Ladattavat tiedostot"}}]}watchValidHandler(t,e){t!==e&&this.kick()}componentWillLoad(){this.internalStatusMessageLabel="string"==typeof this.statusMessageLabel?m(this.groups):this.statusMessageLabel,l(this),this.listenForActionEvents(),this.onReady(),this.externalUploadButton=document.querySelector(`#${this.externalUploadButtonId}`)}componentWillRender(){this.verifyValidity()}async setFocus(t){this.nativeInput&&this.nativeInput.focus(t)}async upload(t){const{bytesMaxReached:e,fileMaxReached:i}=this.validateTotals();if(e||i)return this.handleExternalUploadButton(e,i),void this.kick();this.metaData=t,this.nativeInput.click()}async uploadPending(){this.uploadPendingFiles()}async refresh(){this.kick(),await this.setFocus()}async getFiles(){return!(!this.files||0===this.files.size)&&this.getFilesAsArray()}async updateValue(t,e,i){this.updateValueInMap(t,e,i)}async focusActionButton(t){var e;await(null===(e=this.itemRefs.get(t))||void 0===e?void 0:e.focusActionButton())}render(){const e=this.identifier||this.uploadId,i=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024),s=Math.round(this.maxBytes/1024/1024);let l=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());return l=l.replace(/{maxbytes}/g,`${s.toString()} MB`),l=l.replace(/{maxbytestotal}/g,`${i.toString()} MB`),l=l.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", ")),this.externalUploadButton&&(this.externalUploadButton.accessibleLabel=l),t(a,{class:{"duet-m-0":"none"===this.margin}},t("duet-fieldset",{"label-heading-level":this.headerHeadingLevel,"label-hidden":this.hideHeader,label:this.label,caption:this.captionOnBottom?void 0:l},t("slot",{name:"header"}),!this.files.size&&t("duet-empty-state",{id:this.labelId,part:this.identifier?`${this.identifier}-empty-state`:"duet-upload-empty-state",icon:"messaging-attachment"},t("duet-paragraph",{margin:"none"},this.fileListEmpty)),!!this.files.size&&t("slot",{name:"fileheader"}),!!this.files.size&&t("duet-upload-aria-status",{invalid:this.getFilesAsArray().invalid.length,valid:this.getFilesAsArray().valid.length,inprogress:this.filesInProgress.size,total:this.files.size,statusMessageLabel:this.internalStatusMessageLabel}),!!this.files.size&&this.renderUploadedItems(),!!this.files.size&&t("slot",{name:"filefooter"}),t("slot",{name:"uploadfooter"}),this.captionOnBottom&&t("duet-caption",{margin:"none",size:"small"},t("div",{class:"upload-bottom-caption"},l)),t("slot",{name:"afterfooter"}),!this.hideButton&&t(d,null,t("duet-spacer",{size:"large"}),t("duet-button",{id:this.buttonId,onClick:this.startUpload,"accessible-controls":e,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel,"accessible-owns":e,size:"small",variation:"secondary",fixed:!0,icon:"action-add-circle",part:this.identifier?`${this.identifier}-button-upload`:"duet-upload-button-upload"},this.buttonLabel)),(this.fileMaxReached||this.bytesMaxReached||this.filesToUploadExceedsLimit||this.filesToUploadTotalSizeIsAboveMax)&&t(d,null,t("duet-spacer",{size:"medium"}),t("duet-alert",{part:this.identifier?`${this.identifier}-error-notification`:"duet-upload-error-notification"},this.fileMaxReached&&w("duet-upload-301",this.errorCodes),this.bytesMaxReached&&w("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&w("duet-upload-302",this.errorCodes),this.filesToUploadTotalSizeIsAboveMax&&w("duet-upload-203",this.errorCodes))),t("duet-visually-hidden",{"aria-hidden":"true"},t("input",{ref:t=>{this.nativeInput=t},accept:this.limitSelection?`${this.allowedMimetypes},${this.allowedExtensions}`:void 0,onBlur:this.onBlur,onFocus:this.onFocus,onChange:t=>this.onChange(t),type:"file",class:{"duet-upload":!0},disabled:this.disabled,"aria-hidden":"true",required:this.required,name:this.name,id:this.identifier,multiple:this.multiple,tabIndex:-1}))))}makeXHRPostRequest(t){const e=new XMLHttpRequest,i=t.get("name");e.upload.addEventListener("progress",(t=>{this.updateProgress(t,i)})),e.upload.addEventListener("load",(()=>{this.transferComplete(i)})),e.upload.addEventListener("error",(()=>{this.transferFailed(i)})),e.upload.addEventListener("abort",(()=>{this.transferCanceled(i)}));let a={payload:{data:t,name:i},options:{type:"POST",uri:this.uri,xhr:e,argument:null,headers:void 0},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};return this.middleware&&(a=this.middleware(a)),F(a)}makeXHRDeleteRequest(t){const{uid:e,item:i}=t,a=new XMLHttpRequest;let s={payload:{data:null,name},options:{type:"DELETE",xhr:a,uri:this.uri,argument:`?key=${e}&name=${i.name}`,headers:{"x-fileuid":e,"x-filename":i.name}},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};return this.middleware&&(s=this.middleware(s)),F(s)}async onChange(t){var e;const i=Array.from(null===(e=this.nativeInput)||void 0===e?void 0:e.files);if(this.filesToUploadExceedsLimit=!1,this.files.size+i.length>this.maxFiles)return this.filesToUploadExceedsLimit=!0,void this.kick();if(this.filesToUploadTotalSizeIsAboveMax=!1,((t,e,i)=>{let a=0;return!!(i&&(this.files.forEach((t=>{t.valid&&t.size&&(a+=t.size)})),e.forEach((t=>{t.size&&(a+=t.size)})),a>=i))})(0,i,this.maxBytesTotal))return this.filesToUploadTotalSizeIsAboveMax=!0,void this.kick();if(i)for(const t of i){const{valid:e,errorMessage:i,errorType:a,errorSystem:s}=M(t,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),d={uid:this.genHashName(),item:t,size:t.size,meta:this.metaData,uploaded:!1,valid:e,error:{type:e?void 0:a,message:e?void 0:i,system_message:e?void 0:s},progress:0,deleted:!1,xhr:!1,url:!1};this.files.set(t.name,d),e&&!this.external?await this.uploadFile(d):e&&this.external?(this.updateValueInMap(d.item.name,"pending",!0,!1),this.updateValueInMap(d.item.name,"group","pending",!0)):e||this.updateValueInMap(t.name,"valid",!1,!0),this.kick()}this.resetFormFields(),this.metaData=void 0,this.duetChange.emit({originalEvent:t,data:{files:this.files},component:"duet-upload"})}get element(){return s(this)}static get watchers(){return{valid:["watchValidHandler"]}}};C.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}::slotted([slot=uploadfooter]){margin-top:20px}.duet-upload{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}duet-paragraph::part(duet-paragraph){word-break:break-word}duet-editable-table tfoot{display:none}.upload-bottom-caption{margin-top:12px;margin-bottom:16px;line-height:1.4rem}.items-header{display:none;flex-direction:row;margin-bottom:0}@media (min-width: 36em){.items-header{display:flex}}.items-header:not(:last-child),.items-header:not(:first-child){margin-top:12px}.items-header .category-header{width:35%}.items-header .filename-header{width:65%}.items-header .filename-header.no-category{width:100%}.upload-item-row{display:flex;flex-direction:column;gap:16px;align-content:center;align-items:center;padding:16px 0 16px 0;border-bottom:1px solid rgb(225, 227, 230)}@media (min-width: 36em){.upload-item-row{flex-direction:row;gap:10px}}.upload-item-row .item-categories{width:100%}@media (min-width: 36em){.upload-item-row .item-categories{width:35%}}.upload-item-row .item-name{position:relative;bottom:2px;width:100%;text-align:left}@media (min-width: 36em){.upload-item-row .item-name{width:50%}.upload-item-row .item-name.no-category{width:85%}}.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:block}@media (min-width: 36em){.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:none}}.upload-item-row .item-actions{width:100%;margin-left:-8px;text-align:left}@media (min-width: 36em){.upload-item-row .item-actions{width:15%;padding-top:0;margin-left:auto;text-align:right}}.upload-item-row .duet-upload-item-name duet-icon{position:relative;top:4px}.upload-item-row .duet-upload-item-name duet-progress{display:block;margin-top:16px}";export{T as duet_editable_table,S as duet_table,C as duet_upload}
@@ -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 __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,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://0.0.0.0:3334",cdnURIProd:"https://cdn.duetds.com/api",duetIconVersion:"4.0.32"});var f;var u;var o;var l=false;var v=false;var s=false;var c=false;var d=false;var h=r("B",{isDev:false,isBrowser:true,isServer:false,isTesting:false});var p=function(r,e){if(e===void 0){e=""}{return function(){return}}};var $=function(r,e){{return function(){return}}};var m="r";var y="o";var b="s";var w="t";var g="s-id";var _="sty-id";var S="c-id";var k="slot-fb{display:contents}slot-fb[hidden]{display:none}";var x="http://www.w3.org/1999/xlink";var j={};var C="http://www.w3.org/2000/svg";var O="http://www.w3.org/1999/xhtml";var A=function(r){return r!=null};var T=function(r){r=typeof r;return r==="object"||r==="function"};function R(r){var e,n,t;return(t=(n=(e=r.head)===null||e===void 0?void 0:e.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&t!==void 0?t:undefined}var L=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"&&!T(i)){i=String(i)}if(u&&o){l[l.length-1].t+=i}else{l.push(u?D(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,N)}var c=D(r,null);c.i=e;if(l.length>0){c.u=l}{c.o=a}{c.l=f}return c}));var D=function(r,e){var n={v:0,h:r,t:e,p:null,u:null};{n.i=null}{n.o=null}{n.l=null}return n};var F=r("H",{});var M=function(r){return r&&r.h===F};var N={forEach:function(r,e){return r.map(P).forEach(e)},map:function(r,e){return r.map(P).map(e).map(U)}};var P=function(r){return{vattrs:r.i,vchildren:r.u,vkey:r.o,vname:r.l,vtag:r.h,vtext:r.t}};var U=function(r){if(typeof r.vtag==="function"){var e=Object.assign({},r.vattrs);if(r.vkey){e.key=r.vkey}if(r.vname){e.name=r.vname}return L.apply(void 0,__spreadArray([r.vtag,e],r.vchildren||[],false))}var n=D(r.vtag,r.vtext);n.i=r.vattrs;n.u=r.vchildren;n.o=r.vkey;n.l=r.vname;return n};var E=function(r,e,n,t){var i=p("hydrateClient",e);var a=r.shadowRoot;var f=[];var u=[];var o=a?[]:null;var l=t.$=D(e,null);if(!ie.m){W(te.body,ie.m=new Map)}r[g]=n;r.removeAttribute(g);I(l,f,u,o,r,r,n);f.map((function(r){var n=r._+"."+r.S;var t=ie.m.get(n);var i=r.p;if(t&&ae&&t["s-en"]===""){t.parentNode.insertBefore(i,t.nextSibling)}if(!a){i["s-hn"]=e;if(t){i["s-ol"]=t;i["s-ol"]["s-nr"]=i}}ie.m.delete(n)}));if(a){o.map((function(r){if(r){a.appendChild(r)}}))}i()};var I=function(r,e,n,t,i,a,f){var u;var o;var l;var v;if(a.nodeType===1){u=a.getAttribute(S);if(u){o=u.split(".");if(o[0]===f||o[0]==="0"){l={v:0,_:o[0],S:o[1],k:o[2],j:o[3],h:a.tagName.toLowerCase(),p:a,i:null,u:null,o:null,l:null,t:null};e.push(l);a.removeAttribute(S);if(!r.u){r.u=[]}r.u[l.j]=l;r=l;if(t&&l.k==="0"){t[l.j]=l.p}}}for(v=a.childNodes.length-1;v>=0;v--){I(r,e,n,t,i,a.childNodes[v],f)}if(a.shadowRoot){for(v=a.shadowRoot.childNodes.length-1;v>=0;v--){I(r,e,n,t,i,a.shadowRoot.childNodes[v],f)}}}else if(a.nodeType===8){o=a.nodeValue.split(".");if(o[1]===f||o[1]==="0"){u=o[0];l={v:0,_:o[1],S:o[2],k:o[3],j:o[4],p:a,i:null,u:null,o:null,l:null,h:null,t:null};if(u===w){l.p=a.nextSibling;if(l.p&&l.p.nodeType===3){l.t=l.p.textContent;e.push(l);a.remove();if(!r.u){r.u=[]}r.u[l.j]=l;if(t&&l.k==="0"){t[l.j]=l.p}}}else if(l._===f){if(u===b){l.h="slot";if(o[5]){a["s-sn"]=l.l=o[5]}else{a["s-sn"]=""}a["s-sr"]=true;if(t){l.p=te.createElement(l.h);if(l.l){l.p.setAttribute("name",l.l)}a.parentNode.insertBefore(l.p,a);a.remove();if(l.k==="0"){t[l.j]=l.p}}n.push(l);if(!r.u){r.u=[]}r.u[l.j]=l}else if(u===m){if(t){a.remove()}else{i["s-cr"]=a;a["s-cn"]=true}}}}}else if(r&&r.h==="style"){var s=D(null,a.textContent);s.p=a;s.j="0";r.u=[s]}};var W=function(r,e){if(r.nodeType===1){var n=0;for(;n<r.childNodes.length;n++){W(r.childNodes[n],e)}if(r.shadowRoot){for(n=0;n<r.shadowRoot.childNodes.length;n++){W(r.shadowRoot.childNodes[n],e)}}}else if(r.nodeType===8){var t=r.nodeValue.split(".");if(t[0]===y){e.set(t[1]+"."+t[2],r);r.nodeValue="";r["s-en"]=t[3]}}};var B=function(r,e){if(r!=null&&!T(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 z=r("g",(function(r){return Gr(r).$hostElement$}));var H=r("c",(function(r,e,n){var t=z(r);return{emit:function(r){return Q(t,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:r})}}}));var Q=function(r,e,n){var t=ie.ce(e,n);r.dispatchEvent(t);return t};var V=new WeakMap;var q=function(r,e,n){var t=ee.get(r);if(ue&&n){t=t||new CSSStyleSheet;if(typeof t==="string"){t=e}else{t.replaceSync(e)}}else{t=e}ee.set(r,t)};var G=function(r,e,n){var t;var i=X(e);var a=ee.get(i);r=r.nodeType===11?r:te;if(a){if(typeof a==="string"){r=r.head||r;var f=V.get(r);var u=void 0;if(!f){V.set(r,f=new Set)}if(!f.has(i)){if(r.host&&(u=r.querySelector("[".concat(_,'="').concat(i,'"]')))){u.innerHTML=a}else{u=te.createElement("style");u.innerHTML=a;var o=(t=ie.C)!==null&&t!==void 0?t:R(te);if(o!=null){u.setAttribute("nonce",o)}r.insertBefore(u,r.querySelector("link"))}if(e.v&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 K=function(r){var e=r.O;var n=r.$hostElement$;var t=e.v;var i=p("attachStyles",e.A);var a=G(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);if(t&10){n["s-sc"]=a;n.classList.add(a+"-h");if(t&2){n.classList.add(a+"-s")}}i()};var X=function(r,e){return"sc-"+r.A};var J=function(r){return r.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{")};var Y=function(r,e,n,t,i,a){if(n!==t){var f=Jr(r,e);var u=e.toLowerCase();if(e==="class"){var o=r.classList;var l=rr(n);var v=rr(t);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(Jr(ne,u)){e=u.slice(2)}else{e=u[2]+e.slice(3)}if(n||t){var c=e.endsWith(er);e=e.replace(nr,"");if(n){ie.rel(r,e,n,c)}if(t){ie.ael(r,e,t,c)}}}else{var d=T(t);if((f||d&&t!==null)&&!i){try{if(!r.tagName.includes("-")){var h=t==null?"":t;if(e==="list"){f=false}else if(n==null||r[e]!=h){r[e]=h}}else{r[e]=t}}catch(r){}}var p=false;{if(u!==(u=u.replace(/^xlink\:?/,""))){e=u;p=true}}if(t==null||t===false){if(t!==false||r.getAttribute(e)===""){if(p){r.removeAttributeNS(x,e)}else{r.removeAttribute(e)}}}else if((!f||a&4||i)&&!d){t=t===true?"":t;if(p){r.setAttributeNS(x,e,t)}else{r.setAttribute(e,t)}}}}};var Z=/\s/;var rr=function(r){return!r?[]:r.split(Z)};var er="Capture";var nr=new RegExp(er+"$");var tr=function(r,e,n,t){var i=e.p.nodeType===11&&e.p.host?e.p.host:e.p;var a=r&&r.i||j;var f=e.i||j;{for(t in a){if(!(t in f)){Y(i,t,a[t],undefined,n,e.v)}}}for(t in f){Y(i,t,a[t],f[t],n,e.v)}};var ir=function(r,e,n,t){var i=e.u[n];var a=0;var v;var d;var h;if(!l){s=true;if(i.h==="slot"){if(f){t.classList.add(f+"-s")}i.v|=i.u?2:1}}if(i.t!==null){v=i.p=te.createTextNode(i.t)}else if(i.v&1){v=i.p=te.createTextNode("")}else{if(!c){c=i.h==="svg"}v=i.p=te.createElementNS(c?C:O,i.v&2?"slot-fb":i.h);if(c&&i.h==="foreignObject"){c=false}{tr(null,i,c)}if(A(f)&&v["s-si"]!==f){v.classList.add(v["s-si"]=f)}if(i.u){for(a=0;a<i.u.length;++a){d=ir(r,i,a,v);if(d){v.appendChild(d)}}}{if(i.h==="svg"){c=false}else if(v.tagName==="foreignObject"){c=true}}}v["s-hn"]=o;{if(i.v&(2|1)){v["s-sr"]=true;v["s-cr"]=u;v["s-sn"]=i.l||"";h=r&&r.u&&r.u[n];if(h&&h.h===i.h&&r.p){{ar(r.p,false)}}}}return v};var ar=function(r,e){ie.v|=1;var n=r.childNodes;for(var t=n.length-1;t>=0;t--){var i=n[t];if(i["s-hn"]!==o&&i["s-ol"]){sr(i).insertBefore(i,vr(i));i["s-ol"].remove();i["s-ol"]=undefined;i["s-sh"]=undefined;s=true}if(e){ar(i,e)}}ie.v&=~1};var fr=function(r,e,n,t,i,a){var f=r["s-cr"]&&r["s-cr"].parentNode||r;var u;if(f.shadowRoot&&f.tagName===o){f=f.shadowRoot}for(;i<=a;++i){if(t[i]){u=ir(null,n,i,r);if(u){t[i].p=u;f.insertBefore(u,vr(e))}}}};var ur=function(r,e,n){for(var t=e;t<=n;++t){var i=r[t];if(i){var a=i.p;mr(i);if(a){{v=true;if(a["s-ol"]){a["s-ol"].remove()}else{ar(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 $;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(lr(v,d,i)){cr(v,d,i);v=e[++a];d=t[++f]}else if(lr(s,h,i)){cr(s,h,i);s=e[--l];h=t[--c]}else if(lr(v,h,i)){if(v.h==="slot"||h.h==="slot"){ar(v.p.parentNode,false)}cr(v,h,i);r.insertBefore(v.p,s.p.nextSibling);v=e[++a];h=t[--c]}else if(lr(s,d,i)){if(v.h==="slot"||h.h==="slot"){ar(s.p.parentNode,false)}cr(s,d,i);r.insertBefore(s.p,v.p);s=e[--l];d=t[++f]}else{u=-1;{for(o=a;o<=l;++o){if(e[o]&&e[o].o!==null&&e[o].o===d.o){u=o;break}}}if(u>=0){$=e[u];if($.h!==d.h){p=ir(e&&e[f],n,u,r)}else{cr($,d,i);e[u]=undefined;p=$.p}d=t[++f]}else{p=ir(e&&e[f],n,f,r);d=t[++f]}if(p){{sr(v.p).insertBefore(p,vr(v.p))}}}}if(a>l){fr(r,t[c+1]==null?null:t[c+1].p,n,t,f,c)}else if(f>c){ur(e,a,l)}};var lr=function(r,e,n){if(n===void 0){n=false}if(r.h===e.h){if(r.h==="slot"){return r.l===e.l}if(!n){return r.o===e.o}return true}return false};var vr=function(r){return r&&r["s-ol"]||r};var sr=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.p=r.p;var i=r.u;var a=e.u;var f=e.h;var u=e.t;var o;if(u===null){{c=f==="svg"?true:f==="foreignObject"?false:c}{if(f==="slot");else{tr(r,e,c)}}if(i!==null&&a!==null){or(t,i,e,a,n)}else if(a!==null){if(r.t!==null){t.textContent=""}fr(t,null,e,a,0,a.length-1)}else if(i!==null){ur(i,0,i.length-1)}if(c&&f==="svg"){c=false}}else if(o=t["s-cr"]){o.parentNode.textContent=u}else if(r.t!==u){t.data=u}};var dr=function(r){var e=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"])){i.hidden=true;break}}else{if(o.nodeType===1||o.nodeType===3&&o.textContent.trim()!==""){i.hidden=true;break}}}}}dr(i)}}};var hr=[];var pr=function(r){var e;var n;var t;for(var a=0,f=r.childNodes;a<f.length;a++){var u=f[a];if(u["s-sr"]&&(e=u["s-cr"])&&e.parentNode){n=e.parentNode.childNodes;var o=u["s-sn"];var l=function(){e=n[t];if(!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==u["s-hn"]&&!i.experimentalSlotFixes){if($r(e,o)){var r=hr.find((function(r){return r.T===e}));v=true;e["s-sn"]=e["s-sn"]||o;if(r){r.T["s-sh"]=u["s-hn"];r.R=u}else{e["s-sh"]=u["s-hn"];hr.push({R:u,T:e})}if(e["s-sr"]){hr.map((function(n){if($r(n.T,e["s-sn"])){r=hr.find((function(r){return r.T===e}));if(r&&!n.R){n.R=r.R}}}))}}else if(!hr.some((function(r){return r.T===e}))){hr.push({T:e})}}};for(t=n.length-1;t>=0;t--){l()}}if(u.nodeType===1){pr(u)}}};var $r=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 mr=function(r){{r.i&&r.i.ref&&r.i.ref(null);r.u&&r.u.map(mr)}};var yr=function(r,e,n){if(n===void 0){n=false}var t,i,a,c;var d=r.$hostElement$;var h=r.O;var p=r.$||D(null,null);var $=M(e)?e:L(null,null,e);o=d.tagName;if(h.L){$.i=$.i||{};h.L.map((function(r){var e=r[0],n=r[1];return $.i[n]=d[e]}))}if(n&&$.i){for(var m=0,y=Object.keys($.i);m<y.length;m++){var b=y[m];if(d.hasAttribute(b)&&!["key","ref","style","class"].includes(b)){$.i[b]=d[b]}}}$.h=null;$.v|=4;r.$=$;$.p=p.p=d.shadowRoot||d;{f=d["s-sc"]}{u=d["s-cr"];l=(h.v&1)!==0;v=false}cr(p,$,n);{ie.v|=1;if(s){pr($.p);for(var w=0,g=hr;w<g.length;w++){var _=g[w];var S=_.T;if(!S["s-ol"]){var k=te.createTextNode("");k["s-nr"]=S;S.parentNode.insertBefore(S["s-ol"]=k,S)}}for(var x=0,j=hr;x<j.length;x++){var _=j[x];var S=_.T;var C=_.R;if(C){var O=C.parentNode;var A=C.nextSibling;{var k=(t=S["s-ol"])===null||t===void 0?void 0:t.previousSibling;while(k){var T=(i=k["s-nr"])!==null&&i!==void 0?i:null;if(T&&T["s-sn"]===S["s-sn"]&&O===T.parentNode){T=T.nextSibling;if(!T||!T["s-nr"]){A=T;break}}k=k.previousSibling}}if(!A&&O!==S.parentNode||S.nextSibling!==A){if(S!==A){if(!S["s-hn"]&&S["s-ol"]){S["s-hn"]=S["s-ol"].parentNode.nodeName}O.insertBefore(S,A);if(S.nodeType===1){S.hidden=(a=S["s-ih"])!==null&&a!==void 0?a:false}}}}else{if(S.nodeType===1){if(n){S["s-ih"]=(c=S.hidden)!==null&&c!==void 0?c:false}S.hidden=true}}}}if(v){dr($.p)}ie.v&=~1;hr.length=0}};var br=function(r,e){if(e&&!r.D&&e["s-p"]){e["s-p"].push(new Promise((function(e){return r.D=e})))}};var wr=function(r,e){{r.v|=16}if(r.v&4){r.v|=512;return}br(r,r.F);var n=function(){return gr(r,e)};return he(n)};var gr=function(r,e){var n=p("scheduleUpdate",r.O.A);var t=r.M;var i;if(e){{r.v|=256;if(r.N){r.N.map((function(r){var e=r[0],n=r[1];return Or(t,e,n)}));r.N=undefined}}{i=Or(t,"componentWillLoad")}}{i=_r(i,(function(){return Or(t,"componentWillRender")}))}n();return _r(i,(function(){return kr(r,t,e)}))};var _r=function(r,e){return Sr(r)?r.then(e):e()};var Sr=function(r){return r instanceof Promise||r&&r.then&&typeof r.then==="function"};var kr=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=p("update",r.O.A);f=i["s-rc"];if(t){K(r)}u=p("render",r.O.A);{xr(r,e,i,t)}if(f){f.map((function(r){return r()}));i["s-rc"]=undefined}u();a();{o=(n=i["s-p"])!==null&&n!==void 0?n:[];l=function(){return jr(r)};if(o.length===0){l()}else{Promise.all(o).then(l);r.v|=4;o.length=0}}return[2]}))}))};var xr=function(r,e,n,t){try{e=e.render();{r.v&=~16}{r.v|=2}{{{yr(r,e,t)}}}}catch(e){Yr(e,r.$hostElement$)}return null};var jr=function(r){var e=r.O.A;var n=r.$hostElement$;var t=p("postUpdate",e);var i=r.M;var a=r.F;{Or(i,"componentDidRender")}if(!(r.v&64)){r.v|=64;{Ar(n)}{Or(i,"componentDidLoad")}t();{r.P(n);if(!a){Cr()}}}else{{Or(i,"componentDidUpdate")}t()}{r.U(n)}{if(r.D){r.D();r.D=undefined}if(r.v&512){de((function(){return wr(r,false)}))}r.v&=~(4|512)}};var Cr=function(r){{Ar(te.documentElement)}de((function(){return Q(ne,"appload",{detail:{namespace:t}})}))};var Or=function(r,e,n){if(r&&r[e]){try{return r[e](n)}catch(r){Yr(r)}}return undefined};var Ar=function(r){return r.classList.add("hydrated")};var Tr=function(r,e){return Gr(r).I.get(e)};var Rr=function(r,e,n,t){var i=Gr(r);var a=i.$hostElement$;var f=i.I.get(e);var u=i.v;var o=i.M;n=B(n,t.W[e][0]);var l=Number.isNaN(f)&&Number.isNaN(n);var v=n!==f&&!l;if((!(u&8)||f===undefined)&&v){i.I.set(e,n);if(o){if(t.B&&u&128){var s=t.B[e];if(s){s.map((function(r){try{o[r](n,f,e)}catch(r){Yr(r,a)}}))}}if((u&(2|16))===2){wr(i,false)}}}};var Lr=function(r,e,n){var t;var i=r.prototype;if(e.W){if(r.watchers){e.B=r.watchers}var a=Object.entries(e.W);a.map((function(r){var t=r[0],a=r[1][0];if(a&31||n&2&&a&32){Object.defineProperty(i,t,{get:function(){return Tr(this,t)},set:function(r){Rr(this,t,r,e)},configurable:true,enumerable:true})}else if(n&1&&a&64){Object.defineProperty(i,t,{value:function(){var r=[];for(var e=0;e<arguments.length;e++){r[e]=arguments[e]}var n;var i=Gr(this);return(n=i===null||i===void 0?void 0:i.H)===null||n===void 0?void 0:n.then((function(){var e;return(e=i.M)===null||e===void 0?void 0:e[t].apply(e,r)}))}})}}));if(n&1){var f=new Map;i.attributeChangedCallback=function(r,n,t){var a=this;ie.jmp((function(){var u;var o=f.get(r);if(a.hasOwnProperty(o)){t=a[o];delete a[o]}else if(i.hasOwnProperty(o)&&typeof a[o]==="number"&&a[o]==t){return}else if(o==null){var l=Gr(a);var v=l===null||l===void 0?void 0:l.v;if(v&&!(v&8)&&v&128&&t!==n){var s=l.M;var c=(u=e.B)===null||u===void 0?void 0:u[r];c===null||c===void 0?void 0:c.forEach((function(e){if(s[e]!=null){s[e].call(s,t,n,r)}}))}return}a[o]=t===null&&typeof a[o]==="boolean"?false:t}))};r.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((t=e.B)!==null&&t!==void 0?t:{}),true),a.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;f.set(a,n);if(t[0]&512){(i=e.L)===null||i===void 0?void 0:i.push([n,a])}return a})),true)))}}return r};var Dr=function(r,e,t,i){return __awaiter(n,void 0,void 0,(function(){var r,n,i,a,f,u,o,l;return __generator(this,(function(v){switch(v.label){case 0:if(!((e.v&32)===0))return[3,3];e.v|=32;r=re(t);if(!r.then)return[3,2];n=$();return[4,r];case 1:r=v.sent();n();v.label=2;case 2:if(!r.isProxied){{t.B=r.watchers}Lr(r,t,2);r.isProxied=true}i=p("createInstance",t.A);{e.v|=8}try{new r(e)}catch(r){Yr(r)}{e.v&=~8}{e.v|=128}i();Fr(e.M);if(r.style){a=r.style;f=X(t);if(!ee.has(f)){u=p("registerStyles",t.A);q(f,a,!!(t.v&1));u()}}v.label=3;case 3:o=e.F;l=function(){return wr(e,true)};if(o&&o["s-rc"]){o["s-rc"].push(l)}else{l()}return[2]}}))}))};var Fr=function(r){{Or(r,"connectedCallback")}};var Mr=function(r){if((ie.v&1)===0){var e=Gr(r);var n=e.O;var t=p("connectedCallback",n.A);if(!(e.v&1)){e.v|=1;var i=void 0;{i=r.getAttribute(g);if(i){if(n.v&1){var a=G(r.shadowRoot,n);r.classList.remove(a+"-h",a+"-s")}E(r,n.A,i,e)}}if(!i){if(n.v&(4|8)){Nr(r)}}{var f=r;while(f=f.parentNode||f.host){if(f.nodeType===1&&f.hasAttribute("s-id")&&f["s-p"]||f["s-p"]){br(e,e.F=f);break}}}if(n.W){Object.entries(n.W).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}}))}{de((function(){return Dr(r,e,n)}))}}else{Br(r,e,n.V);if(e===null||e===void 0?void 0:e.M){Fr(e.M)}else if(e===null||e===void 0?void 0:e.q){e.q.then((function(){return Fr(e.M)}))}}t()}};var Nr=function(r){var e=r["s-cr"]=te.createComment("");e["s-cn"]=true;r.insertBefore(e,r.firstChild)};var Pr=function(r){{Or(r,"disconnectedCallback")}};var Ur=function(r){return __awaiter(n,void 0,void 0,(function(){var e;return __generator(this,(function(n){if((ie.v&1)===0){e=Gr(r);{if(e.G){e.G.map((function(r){return r()}));e.G=undefined}}if(e===null||e===void 0?void 0:e.M){Pr(e.M)}else if(e===null||e===void 0?void 0:e.q){e.q.then((function(){return Pr(e.M)}))}}return[2]}))}))};var Er=function(r,e){var n=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);if(e.v&8){var t=r.__lookupGetter__("childNodes");Object.defineProperty(r,"children",{get:function(){return this.childNodes.map((function(r){return r.nodeType===1}))}});Object.defineProperty(r,"childElementCount",{get:function(){return r.children.length}});Object.defineProperty(r,"childNodes",{get:function(){var r=t.call(this);if((ie.v&1)===0&&Gr(this).v&2){var e=new n;for(var i=0;i<r.length;i++){var a=r[i]["s-nr"];if(a){e.push(a)}}return e}return n.from(r)}})}};var Ir=r("b",(function(r,e){if(e===void 0){e={}}var n;var t=p();var i=e.exclude||[];var a=ne.customElements;var f=te.head;var u=f.querySelector("meta[charset]");var o=te.createElement("style");var l=[];var v=te.querySelectorAll("[".concat(_,"]"));var s;var c=true;var d=0;Object.assign(ie,e);ie.K=new URL(e.resourcesUrl||"./",te.baseURI).href;{ie.v|=2}{for(;d<v.length;d++){q(v[d].getAttribute(_),J(v[d].innerHTML),true)}}var h=false;r.map((function(r){r[1].map((function(e){var n;var t={v:e[0],A:e[1],W:e[2],V:e[3]};if(t.v&4){h=true}{t.W=e[2]}{t.V=e[3]}{t.L=[]}{t.B=(n=e[4])!==null&&n!==void 0?n:{}}var f=t.A;var u=function(r){__extends(e,r);function e(e){var n=r.call(this,e)||this;e=n;Xr(e,t);if(t.v&1){{{e.attachShadow({mode:"open",delegatesFocus:!!(t.v&16)})}}}return n}e.prototype.connectedCallback=function(){var r=this;if(s){clearTimeout(s);s=null}if(c){l.push(this)}else{ie.jmp((function(){return Mr(r)}))}};e.prototype.disconnectedCallback=function(){var r=this;ie.jmp((function(){return Ur(r)}))};e.prototype.componentOnReady=function(){return Gr(this).q};return e}(HTMLElement);{{Er(u.prototype,t)}}t.X=r[0];if(!i.includes(f)&&!a.get(f)){a.define(f,Lr(u,t,1))}}))}));if(h){o.innerHTML+=k}if(o.innerHTML.length){o.setAttribute("data-styles","");var $=(n=ie.C)!==null&&n!==void 0?n:R(te);if($!=null){o.setAttribute("nonce",$)}f.insertBefore(o,u?u.nextSibling:f.firstChild)}c=false;if(l.length){l.map((function(r){return r.connectedCallback()}))}else{{ie.jmp((function(){return s=setTimeout(Cr,30)}))}}t()}));var Wr=r("F",(function(r,e){return e}));var Br=function(r,e,n,t){if(n){n.map((function(n){var t=n[0],i=n[1],a=n[2];var f=Hr(r,t);var u=zr(e,a);var o=Qr(t);ie.ael(f,i,u,o);(e.G=e.G||[]).push((function(){return ie.rel(f,i,u,o)}))}))}};var zr=function(r,e){return function(n){try{{if(r.v&256){r.M[e](n)}else{(r.N=r.N||[]).push([e,n])}}}catch(r){Yr(r)}}};var Hr=function(r,e){if(e&4)return te;if(e&8)return ne;if(e&16)return te.body;return r};var Qr=function(r){return(r&2)!==0};var Vr=r("s",(function(r){return ie.C=r}));var qr=new WeakMap;var Gr=function(r){return qr.get(r)};var Kr=r("r",(function(r,e){return qr.set(e.M=r,e)}));var Xr=function(r,e){var n={v:0,$hostElement$:r,O:e,I:new Map};{n.H=new Promise((function(r){return n.U=r}))}{n.q=new Promise((function(r){return n.P=r}));r["s-p"]=[];r["s-rc"]=[]}Br(r,n,e.V);return qr.set(r,n)};var Jr=function(r,e){return e in r};var Yr=function(r,e){return(0,console.error)(r,e)};var Zr=new Map;var re=function(r,n,t){var i=r.A.replace(/-/g,"_");var a=r.X;var f=Zr.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,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://0.0.0.0:3334",cdnURIProd:"https://cdn.duetds.com/api",duetIconVersion:"4.0.33"});var f;var u;var o;var l=false;var v=false;var s=false;var c=false;var d=false;var h=r("B",{isDev:false,isBrowser:true,isServer:false,isTesting:false});var p=function(r,e){if(e===void 0){e=""}{return function(){return}}};var $=function(r,e){{return function(){return}}};var m="r";var y="o";var b="s";var w="t";var g="s-id";var _="sty-id";var S="c-id";var k="slot-fb{display:contents}slot-fb[hidden]{display:none}";var x="http://www.w3.org/1999/xlink";var j={};var C="http://www.w3.org/2000/svg";var O="http://www.w3.org/1999/xhtml";var A=function(r){return r!=null};var T=function(r){r=typeof r;return r==="object"||r==="function"};function R(r){var e,n,t;return(t=(n=(e=r.head)===null||e===void 0?void 0:e.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&t!==void 0?t:undefined}var L=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"&&!T(i)){i=String(i)}if(u&&o){l[l.length-1].t+=i}else{l.push(u?D(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,N)}var c=D(r,null);c.i=e;if(l.length>0){c.u=l}{c.o=a}{c.l=f}return c}));var D=function(r,e){var n={v:0,h:r,t:e,p:null,u:null};{n.i=null}{n.o=null}{n.l=null}return n};var F=r("H",{});var M=function(r){return r&&r.h===F};var N={forEach:function(r,e){return r.map(P).forEach(e)},map:function(r,e){return r.map(P).map(e).map(U)}};var P=function(r){return{vattrs:r.i,vchildren:r.u,vkey:r.o,vname:r.l,vtag:r.h,vtext:r.t}};var U=function(r){if(typeof r.vtag==="function"){var e=Object.assign({},r.vattrs);if(r.vkey){e.key=r.vkey}if(r.vname){e.name=r.vname}return L.apply(void 0,__spreadArray([r.vtag,e],r.vchildren||[],false))}var n=D(r.vtag,r.vtext);n.i=r.vattrs;n.u=r.vchildren;n.o=r.vkey;n.l=r.vname;return n};var E=function(r,e,n,t){var i=p("hydrateClient",e);var a=r.shadowRoot;var f=[];var u=[];var o=a?[]:null;var l=t.$=D(e,null);if(!ie.m){W(te.body,ie.m=new Map)}r[g]=n;r.removeAttribute(g);I(l,f,u,o,r,r,n);f.map((function(r){var n=r._+"."+r.S;var t=ie.m.get(n);var i=r.p;if(t&&ae&&t["s-en"]===""){t.parentNode.insertBefore(i,t.nextSibling)}if(!a){i["s-hn"]=e;if(t){i["s-ol"]=t;i["s-ol"]["s-nr"]=i}}ie.m.delete(n)}));if(a){o.map((function(r){if(r){a.appendChild(r)}}))}i()};var I=function(r,e,n,t,i,a,f){var u;var o;var l;var v;if(a.nodeType===1){u=a.getAttribute(S);if(u){o=u.split(".");if(o[0]===f||o[0]==="0"){l={v:0,_:o[0],S:o[1],k:o[2],j:o[3],h:a.tagName.toLowerCase(),p:a,i:null,u:null,o:null,l:null,t:null};e.push(l);a.removeAttribute(S);if(!r.u){r.u=[]}r.u[l.j]=l;r=l;if(t&&l.k==="0"){t[l.j]=l.p}}}for(v=a.childNodes.length-1;v>=0;v--){I(r,e,n,t,i,a.childNodes[v],f)}if(a.shadowRoot){for(v=a.shadowRoot.childNodes.length-1;v>=0;v--){I(r,e,n,t,i,a.shadowRoot.childNodes[v],f)}}}else if(a.nodeType===8){o=a.nodeValue.split(".");if(o[1]===f||o[1]==="0"){u=o[0];l={v:0,_:o[1],S:o[2],k:o[3],j:o[4],p:a,i:null,u:null,o:null,l:null,h:null,t:null};if(u===w){l.p=a.nextSibling;if(l.p&&l.p.nodeType===3){l.t=l.p.textContent;e.push(l);a.remove();if(!r.u){r.u=[]}r.u[l.j]=l;if(t&&l.k==="0"){t[l.j]=l.p}}}else if(l._===f){if(u===b){l.h="slot";if(o[5]){a["s-sn"]=l.l=o[5]}else{a["s-sn"]=""}a["s-sr"]=true;if(t){l.p=te.createElement(l.h);if(l.l){l.p.setAttribute("name",l.l)}a.parentNode.insertBefore(l.p,a);a.remove();if(l.k==="0"){t[l.j]=l.p}}n.push(l);if(!r.u){r.u=[]}r.u[l.j]=l}else if(u===m){if(t){a.remove()}else{i["s-cr"]=a;a["s-cn"]=true}}}}}else if(r&&r.h==="style"){var s=D(null,a.textContent);s.p=a;s.j="0";r.u=[s]}};var W=function(r,e){if(r.nodeType===1){var n=0;for(;n<r.childNodes.length;n++){W(r.childNodes[n],e)}if(r.shadowRoot){for(n=0;n<r.shadowRoot.childNodes.length;n++){W(r.shadowRoot.childNodes[n],e)}}}else if(r.nodeType===8){var t=r.nodeValue.split(".");if(t[0]===y){e.set(t[1]+"."+t[2],r);r.nodeValue="";r["s-en"]=t[3]}}};var B=function(r,e){if(r!=null&&!T(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 z=r("g",(function(r){return Gr(r).$hostElement$}));var H=r("c",(function(r,e,n){var t=z(r);return{emit:function(r){return Q(t,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:r})}}}));var Q=function(r,e,n){var t=ie.ce(e,n);r.dispatchEvent(t);return t};var V=new WeakMap;var q=function(r,e,n){var t=ee.get(r);if(ue&&n){t=t||new CSSStyleSheet;if(typeof t==="string"){t=e}else{t.replaceSync(e)}}else{t=e}ee.set(r,t)};var G=function(r,e,n){var t;var i=X(e);var a=ee.get(i);r=r.nodeType===11?r:te;if(a){if(typeof a==="string"){r=r.head||r;var f=V.get(r);var u=void 0;if(!f){V.set(r,f=new Set)}if(!f.has(i)){if(r.host&&(u=r.querySelector("[".concat(_,'="').concat(i,'"]')))){u.innerHTML=a}else{u=te.createElement("style");u.innerHTML=a;var o=(t=ie.C)!==null&&t!==void 0?t:R(te);if(o!=null){u.setAttribute("nonce",o)}r.insertBefore(u,r.querySelector("link"))}if(e.v&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 K=function(r){var e=r.O;var n=r.$hostElement$;var t=e.v;var i=p("attachStyles",e.A);var a=G(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);if(t&10){n["s-sc"]=a;n.classList.add(a+"-h");if(t&2){n.classList.add(a+"-s")}}i()};var X=function(r,e){return"sc-"+r.A};var J=function(r){return r.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{")};var Y=function(r,e,n,t,i,a){if(n!==t){var f=Jr(r,e);var u=e.toLowerCase();if(e==="class"){var o=r.classList;var l=rr(n);var v=rr(t);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(Jr(ne,u)){e=u.slice(2)}else{e=u[2]+e.slice(3)}if(n||t){var c=e.endsWith(er);e=e.replace(nr,"");if(n){ie.rel(r,e,n,c)}if(t){ie.ael(r,e,t,c)}}}else{var d=T(t);if((f||d&&t!==null)&&!i){try{if(!r.tagName.includes("-")){var h=t==null?"":t;if(e==="list"){f=false}else if(n==null||r[e]!=h){r[e]=h}}else{r[e]=t}}catch(r){}}var p=false;{if(u!==(u=u.replace(/^xlink\:?/,""))){e=u;p=true}}if(t==null||t===false){if(t!==false||r.getAttribute(e)===""){if(p){r.removeAttributeNS(x,e)}else{r.removeAttribute(e)}}}else if((!f||a&4||i)&&!d){t=t===true?"":t;if(p){r.setAttributeNS(x,e,t)}else{r.setAttribute(e,t)}}}}};var Z=/\s/;var rr=function(r){return!r?[]:r.split(Z)};var er="Capture";var nr=new RegExp(er+"$");var tr=function(r,e,n,t){var i=e.p.nodeType===11&&e.p.host?e.p.host:e.p;var a=r&&r.i||j;var f=e.i||j;{for(t in a){if(!(t in f)){Y(i,t,a[t],undefined,n,e.v)}}}for(t in f){Y(i,t,a[t],f[t],n,e.v)}};var ir=function(r,e,n,t){var i=e.u[n];var a=0;var v;var d;var h;if(!l){s=true;if(i.h==="slot"){if(f){t.classList.add(f+"-s")}i.v|=i.u?2:1}}if(i.t!==null){v=i.p=te.createTextNode(i.t)}else if(i.v&1){v=i.p=te.createTextNode("")}else{if(!c){c=i.h==="svg"}v=i.p=te.createElementNS(c?C:O,i.v&2?"slot-fb":i.h);if(c&&i.h==="foreignObject"){c=false}{tr(null,i,c)}if(A(f)&&v["s-si"]!==f){v.classList.add(v["s-si"]=f)}if(i.u){for(a=0;a<i.u.length;++a){d=ir(r,i,a,v);if(d){v.appendChild(d)}}}{if(i.h==="svg"){c=false}else if(v.tagName==="foreignObject"){c=true}}}v["s-hn"]=o;{if(i.v&(2|1)){v["s-sr"]=true;v["s-cr"]=u;v["s-sn"]=i.l||"";h=r&&r.u&&r.u[n];if(h&&h.h===i.h&&r.p){{ar(r.p,false)}}}}return v};var ar=function(r,e){ie.v|=1;var n=r.childNodes;for(var t=n.length-1;t>=0;t--){var i=n[t];if(i["s-hn"]!==o&&i["s-ol"]){sr(i).insertBefore(i,vr(i));i["s-ol"].remove();i["s-ol"]=undefined;i["s-sh"]=undefined;s=true}if(e){ar(i,e)}}ie.v&=~1};var fr=function(r,e,n,t,i,a){var f=r["s-cr"]&&r["s-cr"].parentNode||r;var u;if(f.shadowRoot&&f.tagName===o){f=f.shadowRoot}for(;i<=a;++i){if(t[i]){u=ir(null,n,i,r);if(u){t[i].p=u;f.insertBefore(u,vr(e))}}}};var ur=function(r,e,n){for(var t=e;t<=n;++t){var i=r[t];if(i){var a=i.p;mr(i);if(a){{v=true;if(a["s-ol"]){a["s-ol"].remove()}else{ar(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 $;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(lr(v,d,i)){cr(v,d,i);v=e[++a];d=t[++f]}else if(lr(s,h,i)){cr(s,h,i);s=e[--l];h=t[--c]}else if(lr(v,h,i)){if(v.h==="slot"||h.h==="slot"){ar(v.p.parentNode,false)}cr(v,h,i);r.insertBefore(v.p,s.p.nextSibling);v=e[++a];h=t[--c]}else if(lr(s,d,i)){if(v.h==="slot"||h.h==="slot"){ar(s.p.parentNode,false)}cr(s,d,i);r.insertBefore(s.p,v.p);s=e[--l];d=t[++f]}else{u=-1;{for(o=a;o<=l;++o){if(e[o]&&e[o].o!==null&&e[o].o===d.o){u=o;break}}}if(u>=0){$=e[u];if($.h!==d.h){p=ir(e&&e[f],n,u,r)}else{cr($,d,i);e[u]=undefined;p=$.p}d=t[++f]}else{p=ir(e&&e[f],n,f,r);d=t[++f]}if(p){{sr(v.p).insertBefore(p,vr(v.p))}}}}if(a>l){fr(r,t[c+1]==null?null:t[c+1].p,n,t,f,c)}else if(f>c){ur(e,a,l)}};var lr=function(r,e,n){if(n===void 0){n=false}if(r.h===e.h){if(r.h==="slot"){return r.l===e.l}if(!n){return r.o===e.o}return true}return false};var vr=function(r){return r&&r["s-ol"]||r};var sr=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.p=r.p;var i=r.u;var a=e.u;var f=e.h;var u=e.t;var o;if(u===null){{c=f==="svg"?true:f==="foreignObject"?false:c}{if(f==="slot");else{tr(r,e,c)}}if(i!==null&&a!==null){or(t,i,e,a,n)}else if(a!==null){if(r.t!==null){t.textContent=""}fr(t,null,e,a,0,a.length-1)}else if(i!==null){ur(i,0,i.length-1)}if(c&&f==="svg"){c=false}}else if(o=t["s-cr"]){o.parentNode.textContent=u}else if(r.t!==u){t.data=u}};var dr=function(r){var e=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"])){i.hidden=true;break}}else{if(o.nodeType===1||o.nodeType===3&&o.textContent.trim()!==""){i.hidden=true;break}}}}}dr(i)}}};var hr=[];var pr=function(r){var e;var n;var t;for(var a=0,f=r.childNodes;a<f.length;a++){var u=f[a];if(u["s-sr"]&&(e=u["s-cr"])&&e.parentNode){n=e.parentNode.childNodes;var o=u["s-sn"];var l=function(){e=n[t];if(!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==u["s-hn"]&&!i.experimentalSlotFixes){if($r(e,o)){var r=hr.find((function(r){return r.T===e}));v=true;e["s-sn"]=e["s-sn"]||o;if(r){r.T["s-sh"]=u["s-hn"];r.R=u}else{e["s-sh"]=u["s-hn"];hr.push({R:u,T:e})}if(e["s-sr"]){hr.map((function(n){if($r(n.T,e["s-sn"])){r=hr.find((function(r){return r.T===e}));if(r&&!n.R){n.R=r.R}}}))}}else if(!hr.some((function(r){return r.T===e}))){hr.push({T:e})}}};for(t=n.length-1;t>=0;t--){l()}}if(u.nodeType===1){pr(u)}}};var $r=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 mr=function(r){{r.i&&r.i.ref&&r.i.ref(null);r.u&&r.u.map(mr)}};var yr=function(r,e,n){if(n===void 0){n=false}var t,i,a,c;var d=r.$hostElement$;var h=r.O;var p=r.$||D(null,null);var $=M(e)?e:L(null,null,e);o=d.tagName;if(h.L){$.i=$.i||{};h.L.map((function(r){var e=r[0],n=r[1];return $.i[n]=d[e]}))}if(n&&$.i){for(var m=0,y=Object.keys($.i);m<y.length;m++){var b=y[m];if(d.hasAttribute(b)&&!["key","ref","style","class"].includes(b)){$.i[b]=d[b]}}}$.h=null;$.v|=4;r.$=$;$.p=p.p=d.shadowRoot||d;{f=d["s-sc"]}{u=d["s-cr"];l=(h.v&1)!==0;v=false}cr(p,$,n);{ie.v|=1;if(s){pr($.p);for(var w=0,g=hr;w<g.length;w++){var _=g[w];var S=_.T;if(!S["s-ol"]){var k=te.createTextNode("");k["s-nr"]=S;S.parentNode.insertBefore(S["s-ol"]=k,S)}}for(var x=0,j=hr;x<j.length;x++){var _=j[x];var S=_.T;var C=_.R;if(C){var O=C.parentNode;var A=C.nextSibling;{var k=(t=S["s-ol"])===null||t===void 0?void 0:t.previousSibling;while(k){var T=(i=k["s-nr"])!==null&&i!==void 0?i:null;if(T&&T["s-sn"]===S["s-sn"]&&O===T.parentNode){T=T.nextSibling;if(!T||!T["s-nr"]){A=T;break}}k=k.previousSibling}}if(!A&&O!==S.parentNode||S.nextSibling!==A){if(S!==A){if(!S["s-hn"]&&S["s-ol"]){S["s-hn"]=S["s-ol"].parentNode.nodeName}O.insertBefore(S,A);if(S.nodeType===1){S.hidden=(a=S["s-ih"])!==null&&a!==void 0?a:false}}}}else{if(S.nodeType===1){if(n){S["s-ih"]=(c=S.hidden)!==null&&c!==void 0?c:false}S.hidden=true}}}}if(v){dr($.p)}ie.v&=~1;hr.length=0}};var br=function(r,e){if(e&&!r.D&&e["s-p"]){e["s-p"].push(new Promise((function(e){return r.D=e})))}};var wr=function(r,e){{r.v|=16}if(r.v&4){r.v|=512;return}br(r,r.F);var n=function(){return gr(r,e)};return he(n)};var gr=function(r,e){var n=p("scheduleUpdate",r.O.A);var t=r.M;var i;if(e){{r.v|=256;if(r.N){r.N.map((function(r){var e=r[0],n=r[1];return Or(t,e,n)}));r.N=undefined}}{i=Or(t,"componentWillLoad")}}{i=_r(i,(function(){return Or(t,"componentWillRender")}))}n();return _r(i,(function(){return kr(r,t,e)}))};var _r=function(r,e){return Sr(r)?r.then(e):e()};var Sr=function(r){return r instanceof Promise||r&&r.then&&typeof r.then==="function"};var kr=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=p("update",r.O.A);f=i["s-rc"];if(t){K(r)}u=p("render",r.O.A);{xr(r,e,i,t)}if(f){f.map((function(r){return r()}));i["s-rc"]=undefined}u();a();{o=(n=i["s-p"])!==null&&n!==void 0?n:[];l=function(){return jr(r)};if(o.length===0){l()}else{Promise.all(o).then(l);r.v|=4;o.length=0}}return[2]}))}))};var xr=function(r,e,n,t){try{e=e.render();{r.v&=~16}{r.v|=2}{{{yr(r,e,t)}}}}catch(e){Yr(e,r.$hostElement$)}return null};var jr=function(r){var e=r.O.A;var n=r.$hostElement$;var t=p("postUpdate",e);var i=r.M;var a=r.F;{Or(i,"componentDidRender")}if(!(r.v&64)){r.v|=64;{Ar(n)}{Or(i,"componentDidLoad")}t();{r.P(n);if(!a){Cr()}}}else{{Or(i,"componentDidUpdate")}t()}{r.U(n)}{if(r.D){r.D();r.D=undefined}if(r.v&512){de((function(){return wr(r,false)}))}r.v&=~(4|512)}};var Cr=function(r){{Ar(te.documentElement)}de((function(){return Q(ne,"appload",{detail:{namespace:t}})}))};var Or=function(r,e,n){if(r&&r[e]){try{return r[e](n)}catch(r){Yr(r)}}return undefined};var Ar=function(r){return r.classList.add("hydrated")};var Tr=function(r,e){return Gr(r).I.get(e)};var Rr=function(r,e,n,t){var i=Gr(r);var a=i.$hostElement$;var f=i.I.get(e);var u=i.v;var o=i.M;n=B(n,t.W[e][0]);var l=Number.isNaN(f)&&Number.isNaN(n);var v=n!==f&&!l;if((!(u&8)||f===undefined)&&v){i.I.set(e,n);if(o){if(t.B&&u&128){var s=t.B[e];if(s){s.map((function(r){try{o[r](n,f,e)}catch(r){Yr(r,a)}}))}}if((u&(2|16))===2){wr(i,false)}}}};var Lr=function(r,e,n){var t;var i=r.prototype;if(e.W){if(r.watchers){e.B=r.watchers}var a=Object.entries(e.W);a.map((function(r){var t=r[0],a=r[1][0];if(a&31||n&2&&a&32){Object.defineProperty(i,t,{get:function(){return Tr(this,t)},set:function(r){Rr(this,t,r,e)},configurable:true,enumerable:true})}else if(n&1&&a&64){Object.defineProperty(i,t,{value:function(){var r=[];for(var e=0;e<arguments.length;e++){r[e]=arguments[e]}var n;var i=Gr(this);return(n=i===null||i===void 0?void 0:i.H)===null||n===void 0?void 0:n.then((function(){var e;return(e=i.M)===null||e===void 0?void 0:e[t].apply(e,r)}))}})}}));if(n&1){var f=new Map;i.attributeChangedCallback=function(r,n,t){var a=this;ie.jmp((function(){var u;var o=f.get(r);if(a.hasOwnProperty(o)){t=a[o];delete a[o]}else if(i.hasOwnProperty(o)&&typeof a[o]==="number"&&a[o]==t){return}else if(o==null){var l=Gr(a);var v=l===null||l===void 0?void 0:l.v;if(v&&!(v&8)&&v&128&&t!==n){var s=l.M;var c=(u=e.B)===null||u===void 0?void 0:u[r];c===null||c===void 0?void 0:c.forEach((function(e){if(s[e]!=null){s[e].call(s,t,n,r)}}))}return}a[o]=t===null&&typeof a[o]==="boolean"?false:t}))};r.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((t=e.B)!==null&&t!==void 0?t:{}),true),a.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;f.set(a,n);if(t[0]&512){(i=e.L)===null||i===void 0?void 0:i.push([n,a])}return a})),true)))}}return r};var Dr=function(r,e,t,i){return __awaiter(n,void 0,void 0,(function(){var r,n,i,a,f,u,o,l;return __generator(this,(function(v){switch(v.label){case 0:if(!((e.v&32)===0))return[3,3];e.v|=32;r=re(t);if(!r.then)return[3,2];n=$();return[4,r];case 1:r=v.sent();n();v.label=2;case 2:if(!r.isProxied){{t.B=r.watchers}Lr(r,t,2);r.isProxied=true}i=p("createInstance",t.A);{e.v|=8}try{new r(e)}catch(r){Yr(r)}{e.v&=~8}{e.v|=128}i();Fr(e.M);if(r.style){a=r.style;f=X(t);if(!ee.has(f)){u=p("registerStyles",t.A);q(f,a,!!(t.v&1));u()}}v.label=3;case 3:o=e.F;l=function(){return wr(e,true)};if(o&&o["s-rc"]){o["s-rc"].push(l)}else{l()}return[2]}}))}))};var Fr=function(r){{Or(r,"connectedCallback")}};var Mr=function(r){if((ie.v&1)===0){var e=Gr(r);var n=e.O;var t=p("connectedCallback",n.A);if(!(e.v&1)){e.v|=1;var i=void 0;{i=r.getAttribute(g);if(i){if(n.v&1){var a=G(r.shadowRoot,n);r.classList.remove(a+"-h",a+"-s")}E(r,n.A,i,e)}}if(!i){if(n.v&(4|8)){Nr(r)}}{var f=r;while(f=f.parentNode||f.host){if(f.nodeType===1&&f.hasAttribute("s-id")&&f["s-p"]||f["s-p"]){br(e,e.F=f);break}}}if(n.W){Object.entries(n.W).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}}))}{de((function(){return Dr(r,e,n)}))}}else{Br(r,e,n.V);if(e===null||e===void 0?void 0:e.M){Fr(e.M)}else if(e===null||e===void 0?void 0:e.q){e.q.then((function(){return Fr(e.M)}))}}t()}};var Nr=function(r){var e=r["s-cr"]=te.createComment("");e["s-cn"]=true;r.insertBefore(e,r.firstChild)};var Pr=function(r){{Or(r,"disconnectedCallback")}};var Ur=function(r){return __awaiter(n,void 0,void 0,(function(){var e;return __generator(this,(function(n){if((ie.v&1)===0){e=Gr(r);{if(e.G){e.G.map((function(r){return r()}));e.G=undefined}}if(e===null||e===void 0?void 0:e.M){Pr(e.M)}else if(e===null||e===void 0?void 0:e.q){e.q.then((function(){return Pr(e.M)}))}}return[2]}))}))};var Er=function(r,e){var n=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);if(e.v&8){var t=r.__lookupGetter__("childNodes");Object.defineProperty(r,"children",{get:function(){return this.childNodes.map((function(r){return r.nodeType===1}))}});Object.defineProperty(r,"childElementCount",{get:function(){return r.children.length}});Object.defineProperty(r,"childNodes",{get:function(){var r=t.call(this);if((ie.v&1)===0&&Gr(this).v&2){var e=new n;for(var i=0;i<r.length;i++){var a=r[i]["s-nr"];if(a){e.push(a)}}return e}return n.from(r)}})}};var Ir=r("b",(function(r,e){if(e===void 0){e={}}var n;var t=p();var i=e.exclude||[];var a=ne.customElements;var f=te.head;var u=f.querySelector("meta[charset]");var o=te.createElement("style");var l=[];var v=te.querySelectorAll("[".concat(_,"]"));var s;var c=true;var d=0;Object.assign(ie,e);ie.K=new URL(e.resourcesUrl||"./",te.baseURI).href;{ie.v|=2}{for(;d<v.length;d++){q(v[d].getAttribute(_),J(v[d].innerHTML),true)}}var h=false;r.map((function(r){r[1].map((function(e){var n;var t={v:e[0],A:e[1],W:e[2],V:e[3]};if(t.v&4){h=true}{t.W=e[2]}{t.V=e[3]}{t.L=[]}{t.B=(n=e[4])!==null&&n!==void 0?n:{}}var f=t.A;var u=function(r){__extends(e,r);function e(e){var n=r.call(this,e)||this;e=n;Xr(e,t);if(t.v&1){{{e.attachShadow({mode:"open",delegatesFocus:!!(t.v&16)})}}}return n}e.prototype.connectedCallback=function(){var r=this;if(s){clearTimeout(s);s=null}if(c){l.push(this)}else{ie.jmp((function(){return Mr(r)}))}};e.prototype.disconnectedCallback=function(){var r=this;ie.jmp((function(){return Ur(r)}))};e.prototype.componentOnReady=function(){return Gr(this).q};return e}(HTMLElement);{{Er(u.prototype,t)}}t.X=r[0];if(!i.includes(f)&&!a.get(f)){a.define(f,Lr(u,t,1))}}))}));if(h){o.innerHTML+=k}if(o.innerHTML.length){o.setAttribute("data-styles","");var $=(n=ie.C)!==null&&n!==void 0?n:R(te);if($!=null){o.setAttribute("nonce",$)}f.insertBefore(o,u?u.nextSibling:f.firstChild)}c=false;if(l.length){l.map((function(r){return r.connectedCallback()}))}else{{ie.jmp((function(){return s=setTimeout(Cr,30)}))}}t()}));var Wr=r("F",(function(r,e){return e}));var Br=function(r,e,n,t){if(n){n.map((function(n){var t=n[0],i=n[1],a=n[2];var f=Hr(r,t);var u=zr(e,a);var o=Qr(t);ie.ael(f,i,u,o);(e.G=e.G||[]).push((function(){return ie.rel(f,i,u,o)}))}))}};var zr=function(r,e){return function(n){try{{if(r.v&256){r.M[e](n)}else{(r.N=r.N||[]).push([e,n])}}}catch(r){Yr(r)}}};var Hr=function(r,e){if(e&4)return te;if(e&8)return ne;if(e&16)return te.body;return r};var Qr=function(r){return(r&2)!==0};var Vr=r("s",(function(r){return ie.C=r}));var qr=new WeakMap;var Gr=function(r){return qr.get(r)};var Kr=r("r",(function(r,e){return qr.set(e.M=r,e)}));var Xr=function(r,e){var n={v:0,$hostElement$:r,O:e,I:new Map};{n.H=new Promise((function(r){return n.U=r}))}{n.q=new Promise((function(r){return n.P=r}));r["s-p"]=[];r["s-rc"]=[]}Br(r,n,e.V);return qr.set(r,n)};var Jr=function(r,e){return e in r};var Yr=function(r,e){return(0,console.error)(r,e)};var Zr=new Map;var re=function(r,n,t){var i=r.A.replace(/-/g,"_");var a=r.X;var f=Zr.get(a);if(f){return f[i]}
5
5
  /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return e.import("./".concat(a,".entry.js").concat("")).then((function(r){{Zr.set(a,r)}return r[i]}),Yr)};var ee=new Map;var ne=typeof window!=="undefined"?window:{};var te=r("d",ne.document||{head:{}});var ie={v:0,K:"",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 ae=true;var fe=r("p",(function(r){return Promise.resolve(r)}));var ue=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(r){}return false}();var oe=[];var le=[];var ve=function(r,e){return function(n){r.push(n);if(!d){d=true;if(e&&ie.v&4){de(ce)}else{ie.raf(ce)}}}};var se=function(r){for(var e=0;e<r.length;e++){try{r[e](performance.now())}catch(r){Yr(r)}}r.length=0};var ce=function(){se(oe);{se(le);if(d=oe.length>0){ie.raf(ce)}}};var de=function(r){return fe().then(r)};var he=ve(le,true)}}}));
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(t,n,i,e){function o(t){return t instanceof i?t:new i((function(n){n(t)}))}return new(i||(i=Promise))((function(i,r){function a(t){try{s(e.next(t))}catch(t){r(t)}}function u(t){try{s(e["throw"](t))}catch(t){r(t)}}function s(t){t.done?i(t.value):o(t.value).then(a,u)}s((e=e.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},e,o,r,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(t){return function(n){return s([t,n])}}function s(u){if(e)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(i=0)),i)try{if(e=1,o&&(r=u[0]&2?o["return"]:u[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,u[1])).done)return r;if(o=0,r)u=[u[0]&2,r.value];switch(u[0]){case 0:case 1:r=u;break;case 4:i.label++;return{value:u[1],done:false};case 5:i.label++;o=u[1];u=[0];continue;case 7:u=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(u[0]===6||u[0]===2)){i=0;continue}if(u[0]===3&&(!r||u[1]>r[0]&&u[1]<r[3])){i.label=u[1];break}if(u[0]===6&&i.label<r[1]){i.label=r[1];r=u;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(u);break}if(r[2])i.ops.pop();i.trys.pop();continue}u=n.call(t,i)}catch(t){u=[6,t];o=0}finally{e=r=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register(["./p-8ec80833.system.js","./p-50f4bca2.system.js","./p-e6b5a1c7.system.js","./p-41982d26.system.js","./p-5795b0d9.system.js","./p-224f6c46.system.js","./p-23354cf7.system.js","./p-6ef75455.system.js","./p-e1868c94.system.js"],(function(t){"use strict";var n,i,e,o,r,a,u,s,c,d,h,b,f,l,p;return{setters:[function(t){n=t.r;i=t.c;e=t.h;o=t.H;r=t.g},function(t){a=t.i},function(t){u=t.c},function(t){s=t.d},function(t){c=t.i},function(t){d=t.g;h=t.c;b=t.d},function(t){f=t.c;l=t.g;p=t.s},function(){},function(){}],execute:function(){var m="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline-block;margin:0 auto}.duet-action-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-height:auto !important;padding:0 !important;margin:0 0 0 8px;color:rgb(0, 41, 77);white-space:nowrap;cursor:pointer;background:rgb(245, 248, 250);border-radius:50%;transition:background-color 300ms ease !important}.duet-action-button.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(245, 245, 247)}.duet-action-button duet-icon{display:block}@media (max-width: 35.9375em){.duet-action-button{width:32px;height:32px}}.duet-action-button:not(:disabled):hover{background:#e9ecee}.duet-action-button:not(:disabled):hover.duet-theme-turva{background:#e9e9eb}.duet-action-button:focus{outline:0;box-shadow:0 0 0 2px #0077b3 !important}.duet-action-button:focus.duet-theme-turva{box-shadow:0 0 0 2px #171c3a !important}.duet-action-button:active:focus{background:#dddfe1 !important;box-shadow:none}.duet-action-button:active:focus.duet-theme-turva{background:#ddddde !important}.duet-action-button:disabled{color:rgb(144, 149, 153);cursor:default;background:rgb(245, 248, 250);opacity:0.75}.duet-action-button.duet-theme-turva:disabled{color:rgb(116, 116, 117);background:rgb(245, 245, 247)}";var g=t("duet_action_button",function(){function t(t){var e=this;n(this,t);this.duetActionEvent=i(this,"duetActionEvent",6);this.listId=u("duet-action-button");this.emitPageEvent=s((function(t){e.duetActionEvent.emit({component:"duet-action-button",originalEvent:t,action:e.actionId,name:e.actionName,meta:e.actionMeta,id:e.listId})}));this.numbersStore="";this.theme="";this.iconName="action-arrow-left-small";this.iconColor="currentColor";this.iconSize="xx-small";this.actionName="default-action";this.actionId=undefined;this.actionMeta=undefined;this.disabled=false;this.color="";this.background="";this.accessibleTitle=true;this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLabelsDefaults={en:"Click to activate action",fi:"Klikkaa aktivoidaksesi toiminto",sv:"Klicka för att aktivera åtgärd"};this.accessibleLabel=d(this.accessibleLabelsDefaults);this.accessibleControls="";this.url=undefined}t.prototype.onKeyboardDown=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){if(c(t)){this.emitPageEvent(t)}return[2]}))}))};t.prototype.getTitle=function(){var t="";if(typeof this.accessibleTitle==="string"){t=this.accessibleTitle}if(this.accessibleTitle===true){t=f("".concat(this.actionName))}return t};t.prototype.onMouseHandler=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){t.preventDefault();this.duetActionEvent.emit({component:"duet-action-button",originalEvent:t,action:this.actionName,id:this.actionId,meta:this.actionMeta});return[2]}))}))};t.prototype.componentWillLoad=function(){a(this)};t.prototype.connectedCallback=function(){h(this,{prop:"accessibleLabel",defaults:"accessibleLabelsDefaults"})};t.prototype.disconnectedCallback=function(){b(this)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){if(this.nativeButton){this.nativeButton.focus(t)}return[2]}))}))};t.prototype.render=function(){var t;var n=this;var i=this.color==="currentColor"?"currentColor":l(this.color,this.theme);var r=l(this.background,this.theme);var a=r?p(r,-.1):r;var u=r?"\n button.duet-action-button {\n background: ".concat(r," !important;\n }\n button.duet-action-button:not(:disabled):hover {\n background: ").concat(a," !important;\n }\n "):"";var s={color:i,"border-color":l(this.iconColor,this.theme),"border-width":"1px","border-style":"solid"};var c={ref:function(t){return n.nativeButton=t},part:"button",style:s,disabled:this.disabled,id:this.listId,type:"button","aria-label":this.accessibleLabel,"aria-labelledby":this.accessibleLabelledBy,"aria-description":this.accessibleDescription,"aria-describedby":this.accessibleDescribedBy,"aria-details":this.accessibleDetails,"aria-controls":this.accessibleControls,title:this.getTitle(),class:(t={"duet-action-button":true,"duet-action-button--disabled":this.disabled},t["duet-action-button--".concat(this.theme)]=this.theme!=="",t["duet-theme-turva"]=this.theme==="turva",t)};return e(o,{onKeyDown:function(t){return n.onKeyboardDown(t)}},e("style",{innerHTML:u}),this.url&&!this.disabled?e("a",Object.assign({},c,{href:this.url}),e("duet-icon",{part:"icon",name:this.iconName,color:this.iconColor,margin:"none",size:this.iconSize})):e("button",Object.assign({},c,{onClick:function(t){return n.onMouseHandler(t)}}),e("duet-icon",{part:"icon",name:this.iconName,color:this.iconColor,margin:"none",size:this.iconSize}),e("duet-visually-hidden",null,e("slot",null))))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());g.style=m}}}));
4
+ */System.register(["./p-52737afc.system.js","./p-50f4bca2.system.js","./p-e6b5a1c7.system.js","./p-41982d26.system.js","./p-5795b0d9.system.js","./p-224f6c46.system.js","./p-23354cf7.system.js","./p-6ef75455.system.js","./p-e1868c94.system.js"],(function(t){"use strict";var n,i,e,o,r,a,u,s,c,d,h,b,f,l,p;return{setters:[function(t){n=t.r;i=t.c;e=t.h;o=t.H;r=t.g},function(t){a=t.i},function(t){u=t.c},function(t){s=t.d},function(t){c=t.i},function(t){d=t.g;h=t.c;b=t.d},function(t){f=t.c;l=t.g;p=t.s},function(){},function(){}],execute:function(){var m="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline-block;margin:0 auto}.duet-action-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-height:auto !important;padding:0 !important;margin:0 0 0 8px;color:rgb(0, 41, 77);white-space:nowrap;cursor:pointer;background:rgb(245, 248, 250);border-radius:50%;transition:background-color 300ms ease !important}.duet-action-button.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(245, 245, 247)}.duet-action-button duet-icon{display:block}@media (max-width: 35.9375em){.duet-action-button{width:32px;height:32px}}.duet-action-button:not(:disabled):hover{background:#e9ecee}.duet-action-button:not(:disabled):hover.duet-theme-turva{background:#e9e9eb}.duet-action-button:focus{outline:0;box-shadow:0 0 0 2px #0077b3 !important}.duet-action-button:focus.duet-theme-turva{box-shadow:0 0 0 2px #171c3a !important}.duet-action-button:active:focus{background:#dddfe1 !important;box-shadow:none}.duet-action-button:active:focus.duet-theme-turva{background:#ddddde !important}.duet-action-button:disabled{color:rgb(144, 149, 153);cursor:default;background:rgb(245, 248, 250);opacity:0.75}.duet-action-button.duet-theme-turva:disabled{color:rgb(116, 116, 117);background:rgb(245, 245, 247)}";var g=t("duet_action_button",function(){function t(t){var e=this;n(this,t);this.duetActionEvent=i(this,"duetActionEvent",6);this.listId=u("duet-action-button");this.emitPageEvent=s((function(t){e.duetActionEvent.emit({component:"duet-action-button",originalEvent:t,action:e.actionId,name:e.actionName,meta:e.actionMeta,id:e.listId})}));this.numbersStore="";this.theme="";this.iconName="action-arrow-left-small";this.iconColor="currentColor";this.iconSize="xx-small";this.actionName="default-action";this.actionId=undefined;this.actionMeta=undefined;this.disabled=false;this.color="";this.background="";this.accessibleTitle=true;this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLabelsDefaults={en:"Click to activate action",fi:"Klikkaa aktivoidaksesi toiminto",sv:"Klicka för att aktivera åtgärd"};this.accessibleLabel=d(this.accessibleLabelsDefaults);this.accessibleControls="";this.url=undefined}t.prototype.onKeyboardDown=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){if(c(t)){this.emitPageEvent(t)}return[2]}))}))};t.prototype.getTitle=function(){var t="";if(typeof this.accessibleTitle==="string"){t=this.accessibleTitle}if(this.accessibleTitle===true){t=f("".concat(this.actionName))}return t};t.prototype.onMouseHandler=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){t.preventDefault();this.duetActionEvent.emit({component:"duet-action-button",originalEvent:t,action:this.actionName,id:this.actionId,meta:this.actionMeta});return[2]}))}))};t.prototype.componentWillLoad=function(){a(this)};t.prototype.connectedCallback=function(){h(this,{prop:"accessibleLabel",defaults:"accessibleLabelsDefaults"})};t.prototype.disconnectedCallback=function(){b(this)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){if(this.nativeButton){this.nativeButton.focus(t)}return[2]}))}))};t.prototype.render=function(){var t;var n=this;var i=this.color==="currentColor"?"currentColor":l(this.color,this.theme);var r=l(this.background,this.theme);var a=r?p(r,-.1):r;var u=r?"\n button.duet-action-button {\n background: ".concat(r," !important;\n }\n button.duet-action-button:not(:disabled):hover {\n background: ").concat(a," !important;\n }\n "):"";var s={color:i,"border-color":l(this.iconColor,this.theme),"border-width":"1px","border-style":"solid"};var c={ref:function(t){return n.nativeButton=t},part:"button",style:s,disabled:this.disabled,id:this.listId,type:"button","aria-label":this.accessibleLabel,"aria-labelledby":this.accessibleLabelledBy,"aria-description":this.accessibleDescription,"aria-describedby":this.accessibleDescribedBy,"aria-details":this.accessibleDetails,"aria-controls":this.accessibleControls,title:this.getTitle(),class:(t={"duet-action-button":true,"duet-action-button--disabled":this.disabled},t["duet-action-button--".concat(this.theme)]=this.theme!=="",t["duet-theme-turva"]=this.theme==="turva",t)};return e(o,{onKeyDown:function(t){return n.onKeyboardDown(t)}},e("style",{innerHTML:u}),this.url&&!this.disabled?e("a",Object.assign({},c,{href:this.url}),e("duet-icon",{part:"icon",name:this.iconName,color:this.iconColor,margin:"none",size:this.iconSize})):e("button",Object.assign({},c,{onClick:function(t){return n.onMouseHandler(t)}}),e("duet-icon",{part:"icon",name:this.iconName,color:this.iconColor,margin:"none",size:this.iconSize}),e("duet-visually-hidden",null,e("slot",null))))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());g.style=m}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- System.register(["./p-8ec80833.system.js","./p-50f4bca2.system.js"],(function(e){"use strict";var t,o,a,r,n;return{setters:[function(e){t=e.r;o=e.h;a=e.H;r=e.g},function(e){n=e.i}],execute:function(){var i='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}.duet-toolbar-link{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 16px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 77, 128);text-align:center;text-decoration:none;white-space:nowrap}.duet-toolbar-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-toolbar-link:focus,.duet-toolbar-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-toolbar-link.negative{color:rgb(255, 255, 255)}.duet-toolbar-link.negative duet-icon{color:rgb(205, 229, 241)}.duet-toolbar-link.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-toolbar-link.duet-theme-turva.negative{color:rgb(255, 255, 255)}.duet-toolbar-link.duet-theme-turva.negative duet-icon{color:rgb(244, 207, 214)}.duet-toolbar-link:hover{color:rgb(0, 41, 77);background:rgb(243, 249, 252)}.duet-toolbar-link:hover.negative{color:rgb(255, 255, 255);background:rgba(0, 41, 77, 0.2)}.duet-toolbar-link:hover.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(245, 245, 247)}.duet-toolbar-link:hover.duet-theme-turva.negative{color:rgb(255, 255, 255);background:rgba(23, 28, 58, 0.2)}.duet-toolbar-link.active{color:rgb(0, 41, 77)}.duet-toolbar-link.active.negative{font-weight:600;color:rgb(255, 255, 255);background:rgba(23, 28, 58, 0.2)}.duet-toolbar-link.active.negative::after{display:none}.duet-toolbar-link.active::after{position:absolute;top:auto;bottom:1px;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(1px)}.duet-toolbar-link.active::after.duet-theme-turva{background:rgb(198, 12, 48)}.duet-toolbar-link.active.duet-theme-turva{color:rgb(23, 28, 58)}.duet-toolbar-link.active.duet-theme-turva::after{background:rgb(198, 12, 48)}.duet-toolbar-link.active.duet-theme-turva.negative{color:rgb(255, 255, 255);background:rgba(23, 28, 58, 0.2)}';var l=e("duet_toolbar_link",function(){function e(e){t(this,e);this.theme="";this.variation="default";this.active=false;this.href="#";this.icon=undefined;this.accessibleLabel=undefined}e.prototype.componentWillLoad=function(){n(this)};e.prototype.render=function(){var e;var t=this.variation==="negative"?"negative":"white";return o(a,null,o("a",{class:(e={"duet-toolbar-link":true,"duet-theme-turva":this.theme==="turva",active:this.active},e[t]=true,e),href:this.href,"aria-current":this.active?"true":"false","aria-label":this.accessibleLabel},this.icon&&o("duet-icon",{size:"x-small",name:this.icon,margin:"none",theme:this.theme,color:"currentColor"}),o("slot",null)))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());l.style=i}}}));
4
+ System.register(["./p-52737afc.system.js","./p-50f4bca2.system.js"],(function(e){"use strict";var t,o,a,r,n;return{setters:[function(e){t=e.r;o=e.h;a=e.H;r=e.g},function(e){n=e.i}],execute:function(){var i='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}.duet-toolbar-link{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 16px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 77, 128);text-align:center;text-decoration:none;white-space:nowrap}.duet-toolbar-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-toolbar-link:focus,.duet-toolbar-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-toolbar-link.negative{color:rgb(255, 255, 255)}.duet-toolbar-link.negative duet-icon{color:rgb(205, 229, 241)}.duet-toolbar-link.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-toolbar-link.duet-theme-turva.negative{color:rgb(255, 255, 255)}.duet-toolbar-link.duet-theme-turva.negative duet-icon{color:rgb(244, 207, 214)}.duet-toolbar-link:hover{color:rgb(0, 41, 77);background:rgb(243, 249, 252)}.duet-toolbar-link:hover.negative{color:rgb(255, 255, 255);background:rgba(0, 41, 77, 0.2)}.duet-toolbar-link:hover.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(245, 245, 247)}.duet-toolbar-link:hover.duet-theme-turva.negative{color:rgb(255, 255, 255);background:rgba(23, 28, 58, 0.2)}.duet-toolbar-link.active{color:rgb(0, 41, 77)}.duet-toolbar-link.active.negative{font-weight:600;color:rgb(255, 255, 255);background:rgba(23, 28, 58, 0.2)}.duet-toolbar-link.active.negative::after{display:none}.duet-toolbar-link.active::after{position:absolute;top:auto;bottom:1px;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(1px)}.duet-toolbar-link.active::after.duet-theme-turva{background:rgb(198, 12, 48)}.duet-toolbar-link.active.duet-theme-turva{color:rgb(23, 28, 58)}.duet-toolbar-link.active.duet-theme-turva::after{background:rgb(198, 12, 48)}.duet-toolbar-link.active.duet-theme-turva.negative{color:rgb(255, 255, 255);background:rgba(23, 28, 58, 0.2)}';var l=e("duet_toolbar_link",function(){function e(e){t(this,e);this.theme="";this.variation="default";this.active=false;this.href="#";this.icon=undefined;this.accessibleLabel=undefined}e.prototype.componentWillLoad=function(){n(this)};e.prototype.render=function(){var e;var t=this.variation==="negative"?"negative":"white";return o(a,null,o("a",{class:(e={"duet-toolbar-link":true,"duet-theme-turva":this.theme==="turva",active:this.active},e[t]=true,e),href:this.href,"aria-current":this.active?"true":"false","aria-label":this.accessibleLabel},this.icon&&o("duet-icon",{size:"x-small",name:this.icon,margin:"none",theme:this.theme,color:"currentColor"}),o("slot",null)))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());l.style=i}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,c as t,h as c,H as o,g as i}from"./p-876e256a.js";import{i as s}from"./p-a58bd561.js";import{c as d}from"./p-5e59e970.js";const h=class{constructor(c){e(this,c),this.duetChange=t(this,"duetChange",3),this.duetFocus=t(this,"duetFocus",7),this.duetBlur=t(this,"duetBlur",7),this.checkboxId=d("DuetCheckbox"),this.onChange=e=>{this.checked=!this.checked,this.duetChange.emit({originalEvent:e,checked:this.checked,value:this.value,component:"duet-checkbox"})},this.onBlur=e=>{this.duetBlur.emit({originalEvent:e,checked:this.checked,value:this.value,component:"duet-checkbox"})},this.onFocus=e=>{this.duetFocus.emit({originalEvent:e,checked:this.checked,value:this.value,component:"duet-checkbox"})},this.accessibleActiveDescendant=void 0,this.margin="auto",this.accessibleControls=void 0,this.accessibleIndex=void 0,this.accessibleOwns=void 0,this.accessibleDescribedBy=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleSelected=void 0,this.required=!1,this.theme="",this.disabled=!1,this.identifier=void 0,this.label="label",this.labelHidden=!1,this.name=void 0,this.role=void 0,this.checked=!1,this.value=void 0}componentWillLoad(){s(this),void 0===this.value&&(this.value=this.identifier)}async setFocus(e){this.nativeInput.focus(e)}render(){const e=this.identifier||this.checkboxId;return c(o,{class:{"duet-m-0":"none"===this.margin}},c("div",{class:{"duet-checkbox-container":!0,"duet-label-hidden":this.labelHidden,"duet-theme-turva":"turva"===this.theme}},c("input",{ref:e=>this.nativeInput=e,type:"checkbox",onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,value:this.value,class:{"duet-checkbox":!0,disabled:this.disabled},checked:this.checked,disabled:this.disabled,tabindex:this.accessibleIndex,"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-selected":this.accessibleSelected,required:this.required,role:this.role,name:this.name,id:e}),c("label",{class:"duet-label",htmlFor:e},c("span",null,this.label))))}get element(){return i(this)}};h.style='*.sc-duet-checkbox,*.sc-duet-checkbox::after,*.sc-duet-checkbox::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-checkbox-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:8px !important;margin-bottom:12px !important;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}.sc-duet-checkbox-h:last-child,.sc-duet-checkbox-h:last-of-type{margin-right:0 !important}.sc-duet-checkbox-h:last-child:not(:only-child){margin-bottom:0 !important}.duet-m-0.sc-duet-checkbox-h{margin:0 !important}.duet-label.sc-duet-checkbox{position:relative;z-index:100;display:inline;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(0, 41, 77);vertical-align:top;cursor:pointer;background:transparent;transition:300ms ease}.duet-theme-turva.sc-duet-checkbox .duet-label.sc-duet-checkbox{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-label.sc-duet-checkbox span.sc-duet-checkbox{display:inline-block;width:calc(100% - 32px);font-size:1rem;font-weight:400;vertical-align:top}.duet-checkbox-container.sc-duet-checkbox{position:relative;width:100%;height:100%}.duet-checkbox.sc-duet-checkbox{padding:14px !important;position:absolute;top:0;left:0;z-index:2;width:100%;height:100%;cursor:pointer;opacity:0}.duet-checkbox.sc-duet-checkbox+label.sc-duet-checkbox::before{z-index:100;display:inline-block;width:20px;height:20px;margin:2px 10px 1px 1px;vertical-align:top;content:"";background:rgb(255, 255, 255);border:1px solid rgb(0, 41, 77);border-radius:4px}.duet-theme-turva.sc-duet-checkbox .duet-checkbox.sc-duet-checkbox+label.sc-duet-checkbox::before{border-color:rgb(23, 28, 58)}.duet-checkbox.sc-duet-checkbox:checked+label.sc-duet-checkbox::before{background:rgb(0, 41, 77);border:1px solid rgb(0, 41, 77)}.duet-theme-turva.sc-duet-checkbox .duet-checkbox.sc-duet-checkbox:checked+label.sc-duet-checkbox::before{background:rgb(23, 28, 58);border-color:rgb(23, 28, 58)}.duet-checkbox.sc-duet-checkbox:focus+label.sc-duet-checkbox::before{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva.sc-duet-checkbox .duet-checkbox.sc-duet-checkbox:focus+label.sc-duet-checkbox::before{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-checkbox.sc-duet-checkbox+label.sc-duet-checkbox{position:static}.duet-checkbox.sc-duet-checkbox:checked+label.sc-duet-checkbox::after{position:absolute;top:6px;left:5px;z-index:200;width:12px;height:12px;pointer-events:none;content:"";background:transparent url("data:image/svg+xml,%3Csvg%20fill%3D%27white%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2724%27%20height%3D%2724%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M23.374.287a1.5%2C1.5%2C0%2C0%2C0-2.093.345L7.246%2C20.2%2C2.561%2C15.511A1.5%2C1.5%2C0%2C1%2C0%2C.439%2C17.632l5.935%2C5.934a1.525%2C1.525%2C0%2C0%2C0%2C2.279-.186l15.066-21A1.5%2C1.5%2C0%2C0%2C0%2C23.374.287Z%27%20%2F%3E%3C%2Fsvg%3E") no-repeat 0 0;background-size:100% auto}.duet-checkbox[disabled].sc-duet-checkbox{cursor:default}.duet-checkbox[disabled].sc-duet-checkbox+label.sc-duet-checkbox{color:rgb(101, 119, 135)}.duet-theme-turva.sc-duet-checkbox .duet-checkbox[disabled].sc-duet-checkbox+label.sc-duet-checkbox{color:rgb(116, 116, 117)}.duet-checkbox[disabled].sc-duet-checkbox+label.sc-duet-checkbox::before{border-color:rgb(207, 210, 212)}.duet-theme-turva.sc-duet-checkbox .duet-checkbox[disabled].sc-duet-checkbox+label.sc-duet-checkbox::before{border-color:rgb(207, 207, 209)}.duet-checkbox[disabled].sc-duet-checkbox:checked+label.sc-duet-checkbox::before{background:rgb(101, 119, 135);border:1px solid rgb(101, 119, 135)}.duet-theme-turva.sc-duet-checkbox .duet-checkbox[disabled].sc-duet-checkbox:checked+label.sc-duet-checkbox::before{background:rgb(116, 116, 117);border-color:rgb(116, 116, 117)}.duet-label-hidden.sc-duet-checkbox .duet-label.sc-duet-checkbox span.sc-duet-checkbox{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}';export{h as duet_checkbox}
4
+ import{r as e,c as t,h as c,H as o,g as i}from"./p-9f931d57.js";import{i as s}from"./p-a58bd561.js";import{c as d}from"./p-5e59e970.js";const h=class{constructor(c){e(this,c),this.duetChange=t(this,"duetChange",3),this.duetFocus=t(this,"duetFocus",7),this.duetBlur=t(this,"duetBlur",7),this.checkboxId=d("DuetCheckbox"),this.onChange=e=>{this.checked=!this.checked,this.duetChange.emit({originalEvent:e,checked:this.checked,value:this.value,component:"duet-checkbox"})},this.onBlur=e=>{this.duetBlur.emit({originalEvent:e,checked:this.checked,value:this.value,component:"duet-checkbox"})},this.onFocus=e=>{this.duetFocus.emit({originalEvent:e,checked:this.checked,value:this.value,component:"duet-checkbox"})},this.accessibleActiveDescendant=void 0,this.margin="auto",this.accessibleControls=void 0,this.accessibleIndex=void 0,this.accessibleOwns=void 0,this.accessibleDescribedBy=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleSelected=void 0,this.required=!1,this.theme="",this.disabled=!1,this.identifier=void 0,this.label="label",this.labelHidden=!1,this.name=void 0,this.role=void 0,this.checked=!1,this.value=void 0}componentWillLoad(){s(this),void 0===this.value&&(this.value=this.identifier)}async setFocus(e){this.nativeInput.focus(e)}render(){const e=this.identifier||this.checkboxId;return c(o,{class:{"duet-m-0":"none"===this.margin}},c("div",{class:{"duet-checkbox-container":!0,"duet-label-hidden":this.labelHidden,"duet-theme-turva":"turva"===this.theme}},c("input",{ref:e=>this.nativeInput=e,type:"checkbox",onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,value:this.value,class:{"duet-checkbox":!0,disabled:this.disabled},checked:this.checked,disabled:this.disabled,tabindex:this.accessibleIndex,"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-selected":this.accessibleSelected,required:this.required,role:this.role,name:this.name,id:e}),c("label",{class:"duet-label",htmlFor:e},c("span",null,this.label))))}get element(){return i(this)}};h.style='*.sc-duet-checkbox,*.sc-duet-checkbox::after,*.sc-duet-checkbox::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-checkbox-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:8px !important;margin-bottom:12px !important;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}.sc-duet-checkbox-h:last-child,.sc-duet-checkbox-h:last-of-type{margin-right:0 !important}.sc-duet-checkbox-h:last-child:not(:only-child){margin-bottom:0 !important}.duet-m-0.sc-duet-checkbox-h{margin:0 !important}.duet-label.sc-duet-checkbox{position:relative;z-index:100;display:inline;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(0, 41, 77);vertical-align:top;cursor:pointer;background:transparent;transition:300ms ease}.duet-theme-turva.sc-duet-checkbox .duet-label.sc-duet-checkbox{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-label.sc-duet-checkbox span.sc-duet-checkbox{display:inline-block;width:calc(100% - 32px);font-size:1rem;font-weight:400;vertical-align:top}.duet-checkbox-container.sc-duet-checkbox{position:relative;width:100%;height:100%}.duet-checkbox.sc-duet-checkbox{padding:14px !important;position:absolute;top:0;left:0;z-index:2;width:100%;height:100%;cursor:pointer;opacity:0}.duet-checkbox.sc-duet-checkbox+label.sc-duet-checkbox::before{z-index:100;display:inline-block;width:20px;height:20px;margin:2px 10px 1px 1px;vertical-align:top;content:"";background:rgb(255, 255, 255);border:1px solid rgb(0, 41, 77);border-radius:4px}.duet-theme-turva.sc-duet-checkbox .duet-checkbox.sc-duet-checkbox+label.sc-duet-checkbox::before{border-color:rgb(23, 28, 58)}.duet-checkbox.sc-duet-checkbox:checked+label.sc-duet-checkbox::before{background:rgb(0, 41, 77);border:1px solid rgb(0, 41, 77)}.duet-theme-turva.sc-duet-checkbox .duet-checkbox.sc-duet-checkbox:checked+label.sc-duet-checkbox::before{background:rgb(23, 28, 58);border-color:rgb(23, 28, 58)}.duet-checkbox.sc-duet-checkbox:focus+label.sc-duet-checkbox::before{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva.sc-duet-checkbox .duet-checkbox.sc-duet-checkbox:focus+label.sc-duet-checkbox::before{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-checkbox.sc-duet-checkbox+label.sc-duet-checkbox{position:static}.duet-checkbox.sc-duet-checkbox:checked+label.sc-duet-checkbox::after{position:absolute;top:6px;left:5px;z-index:200;width:12px;height:12px;pointer-events:none;content:"";background:transparent url("data:image/svg+xml,%3Csvg%20fill%3D%27white%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2724%27%20height%3D%2724%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M23.374.287a1.5%2C1.5%2C0%2C0%2C0-2.093.345L7.246%2C20.2%2C2.561%2C15.511A1.5%2C1.5%2C0%2C1%2C0%2C.439%2C17.632l5.935%2C5.934a1.525%2C1.525%2C0%2C0%2C0%2C2.279-.186l15.066-21A1.5%2C1.5%2C0%2C0%2C0%2C23.374.287Z%27%20%2F%3E%3C%2Fsvg%3E") no-repeat 0 0;background-size:100% auto}.duet-checkbox[disabled].sc-duet-checkbox{cursor:default}.duet-checkbox[disabled].sc-duet-checkbox+label.sc-duet-checkbox{color:rgb(101, 119, 135)}.duet-theme-turva.sc-duet-checkbox .duet-checkbox[disabled].sc-duet-checkbox+label.sc-duet-checkbox{color:rgb(116, 116, 117)}.duet-checkbox[disabled].sc-duet-checkbox+label.sc-duet-checkbox::before{border-color:rgb(207, 210, 212)}.duet-theme-turva.sc-duet-checkbox .duet-checkbox[disabled].sc-duet-checkbox+label.sc-duet-checkbox::before{border-color:rgb(207, 207, 209)}.duet-checkbox[disabled].sc-duet-checkbox:checked+label.sc-duet-checkbox::before{background:rgb(101, 119, 135);border:1px solid rgb(101, 119, 135)}.duet-theme-turva.sc-duet-checkbox .duet-checkbox[disabled].sc-duet-checkbox:checked+label.sc-duet-checkbox::before{background:rgb(116, 116, 117);border-color:rgb(116, 116, 117)}.duet-label-hidden.sc-duet-checkbox .duet-label.sc-duet-checkbox span.sc-duet-checkbox{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}';export{h as duet_checkbox}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- System.register(["./p-8ec80833.system.js","./p-50f4bca2.system.js"],(function(e){"use strict";var t,r,a,n,o;return{setters:[function(e){t=e.r;r=e.h;a=e.H;n=e.g},function(e){o=e.i}],execute:function(){var i="*,*::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;width:100%}.duet-toolbar{position:relative;z-index:3;display:flex;align-items:center;justify-content:center;background:rgb(255, 255, 255)}.duet-toolbar .container{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1384px;height:36px;margin:0 28px;border-bottom:1px solid rgb(225, 227, 230)}.duet-toolbar .list{display:flex;align-items:center;justify-content:space-between;height:100%;list-style-type:none}.duet-toolbar ::slotted(*){display:flex;align-items:center;justify-content:center;height:100%}.duet-toolbar.negative{background:rgb(0, 119, 179)}.duet-toolbar.negative .container{border-bottom:0}.duet-toolbar.duet-theme-turva{background:rgb(255, 255, 255)}.duet-toolbar.duet-theme-turva .container{border-bottom:1px solid rgb(228, 228, 230)}.duet-toolbar.duet-theme-turva.negative{background:rgb(198, 12, 48)}.duet-toolbar.duet-theme-turva.negative .container{border-bottom:0}";var s=e("duet_toolbar",function(){function e(e){t(this,e);this.theme="";this.variation="default";this.accessibleLabel=undefined}e.prototype.componentWillLoad=function(){o(this);var e=Array.from(this.element.children);for(var t=0,r=e;t<r.length;t++){var a=r[t];if(a.getAttribute("slot")==="left"){for(var n=0,i=Array.from(a.children);n<i.length;n++){var s=i[n];s.setAttribute("role","listitem")}}else if(a.getAttribute("slot")==="right"){for(var l=0,u=Array.from(a.children);l<u.length;l++){var s=u[l];s.setAttribute("role","listitem")}}}};e.prototype.render=function(){var e;var t=this.variation==="negative"?"negative":"default";return r(a,null,r("nav",{class:(e={"duet-toolbar":true,"duet-theme-turva":this.theme==="turva"},e[t]=true,e),"aria-label":this.accessibleLabel},r("div",{class:"container"},r("div",{class:"list",role:"list"},r("slot",{name:"left"})),r("div",{class:"list",role:"list"},r("slot",{name:"right"})))))};Object.defineProperty(e.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());s.style=i}}}));
4
+ System.register(["./p-52737afc.system.js","./p-50f4bca2.system.js"],(function(e){"use strict";var t,r,a,n,o;return{setters:[function(e){t=e.r;r=e.h;a=e.H;n=e.g},function(e){o=e.i}],execute:function(){var i="*,*::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;width:100%}.duet-toolbar{position:relative;z-index:3;display:flex;align-items:center;justify-content:center;background:rgb(255, 255, 255)}.duet-toolbar .container{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1384px;height:36px;margin:0 28px;border-bottom:1px solid rgb(225, 227, 230)}.duet-toolbar .list{display:flex;align-items:center;justify-content:space-between;height:100%;list-style-type:none}.duet-toolbar ::slotted(*){display:flex;align-items:center;justify-content:center;height:100%}.duet-toolbar.negative{background:rgb(0, 119, 179)}.duet-toolbar.negative .container{border-bottom:0}.duet-toolbar.duet-theme-turva{background:rgb(255, 255, 255)}.duet-toolbar.duet-theme-turva .container{border-bottom:1px solid rgb(228, 228, 230)}.duet-toolbar.duet-theme-turva.negative{background:rgb(198, 12, 48)}.duet-toolbar.duet-theme-turva.negative .container{border-bottom:0}";var s=e("duet_toolbar",function(){function e(e){t(this,e);this.theme="";this.variation="default";this.accessibleLabel=undefined}e.prototype.componentWillLoad=function(){o(this);var e=Array.from(this.element.children);for(var t=0,r=e;t<r.length;t++){var a=r[t];if(a.getAttribute("slot")==="left"){for(var n=0,i=Array.from(a.children);n<i.length;n++){var s=i[n];s.setAttribute("role","listitem")}}else if(a.getAttribute("slot")==="right"){for(var l=0,u=Array.from(a.children);l<u.length;l++){var s=u[l];s.setAttribute("role","listitem")}}}};e.prototype.render=function(){var e;var t=this.variation==="negative"?"negative":"default";return r(a,null,r("nav",{class:(e={"duet-toolbar":true,"duet-theme-turva":this.theme==="turva"},e[t]=true,e),"aria-label":this.accessibleLabel},r("div",{class:"container"},r("div",{class:"list",role:"list"},r("slot",{name:"left"})),r("div",{class:"list",role:"list"},r("slot",{name:"right"})))))};Object.defineProperty(e.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());s.style=i}}}));
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ import{r as t,c as e,h as i,H as s,g as n}from"./p-9f931d57.js";import{i as u}from"./p-a58bd561.js";import{c as r}from"./p-5e59e970.js";import{a,b as o,c as h,d as b,e as d,s as l,u as c}from"./p-2bb2b022.js";import{a as p,b as m,g,c as v,d as f}from"./p-2e36d5bf.js";import{s as x}from"./p-bb24a019.js";import"./p-0e052642.js";function w(t,e){let i;if("string"==typeof t){if(""===t)return null;let s=t.replace("−","-").replace("‐","-").replace("−","-").replace("–","-").replace("—","-");e&&(s=function(t,e,i=!1){let s;const n=new Intl.NumberFormat(e).format(.5).replace(/[0-9]/g,""),u=new Intl.NumberFormat("en-US").format(.5).replace(/[0-9]/g,""),r=new Intl.NumberFormat(e).format(1e3).replace(/[0-9]/g,""),a=new Intl.NumberFormat("en-US").format(1e3).replace(/[0-9]/g,"");return s=t.replace(n,"DECIMALSEPARATOR"),s=s.replace(r,i?"THOUSANDSEPARATOR":""),s=s.replace("DECIMALSEPARATOR",u),s=s.replace("THOUSANDSEPARATOR",a),s}(s,e,!1)),s=s.replace(/\s+/g,""),s=s.replace(/(?!^-?\d*\.{0,1}\d+$)/g,""),i=parseFloat(s)}if("number"==typeof t&&(i=parseFloat(String(t))),!isNaN(Number(i)))return Number(i);if(null==t)return null;throw new Error("Invalid value passed to SafeParseFloat")}const y=(t,e,i)=>Math.min(Math.max(t,e),i),A=class{constructor(i){t(this,i),this.duetChange=e(this,"duetChange",3),this.duetInput=e(this,"duetInput",3),this.duetBlur=e(this,"duetBlur",7),this.duetFocus=e(this,"duetFocus",7),this.inputId=r("DuetInput"),this.handleFocus=()=>{this.focusedValue=this.value},this.handleKeyDown=t=>{a(t)||o(t)?this.add(t):h(t)||b(t)?this.subtract(t):d(t)&&this.clearValue()},this.handleChange=t=>{const e=t.target;if(e&&e.value)try{let i=w(e.value,this.locale);(isNaN(i)||null==i)&&(i=this.min||0),this.setValue(i),this.duetInput.emit({component:"duet-number-input",originalEvent:t,value:w(this.value,this.locale).toString(),valueAsNumber:i})}catch(e){this.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}else this.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})},this.handleBlur=t=>{const e=t.target;var i;if(e)if(e.value)try{let s=w(e.value,this.locale);this.rounding&&(i=this.step,s=Math.round(s/i)*i),s=y(s,this.min,this.max),s===w(this.value,this.locale)&&s===w(this.focusedValue,this.locale)||(this.setValue(s),this.emitChange(t))}catch(e){this.emitNull(t)}else this.emitNull(t)},this.emitChange=t=>{const e=w(this.value,this.locale);this.duetChange.emit({originalEvent:t,value:e.toString(),valueAsNumber:e,component:"duet-number-input"})},this.emitNull=t=>{this.duetChange.emit({originalEvent:t,value:null,valueAsNumber:null,component:"duet-number-input"})},this.localizeValue=t=>t.toLocaleString(this.locale),this.setValue=t=>{this.value=this.localizeValue(t),this.duetInputElement.value=`${this.value} ${this.unit}`},this.add=t=>{t&&t.preventDefault();const e=w(this.value,this.locale);if(e===this.max)return;let i=null==e?this.min:e+this.step;i%this.step!=0&&(i-=i%this.step);const s=y(i,this.min,this.max);this.value=this.localizeValue(s),this.emitChange(t)},this.subtract=t=>{t&&t.preventDefault();const e=w(this.value,this.locale);if(e===this.min)return;let i=e-this.step;i%this.step!=0&&(i+=this.step-i%this.step),i=y(i,this.min,this.max),this.value=this.localizeValue(i),this.emitChange(t)},this.language=p(),this.locale=m(this.language).locale,this.unit=m(this.language).money,this.focusedValue=void 0,this.accessibleActiveDescendant=void 0,this.accessibleControls=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleOwns=void 0,this.accessibleDescribedBy=void 0,this.accessibleLiveDefaults={fi:"{current} euroa valittuna",en:"{current} euros selected",sv:"{current} euro valt"},this.accessibleLive=g(this.accessibleLiveDefaults,this.language),this.accessibleLiveEnabled=!0,this.accessibleAddDefaults={fi:"Lisää summaan",en:"Add to the amount",sv:"Lägg till beloppet"},this.accessibleAdd=g(this.accessibleAddDefaults,this.language),this.accessibleSubtractDefaults={fi:"Vähennä summasta",en:"Subtract from the amount",sv:"Dra från beloppet"},this.accessibleSubtract=g(this.accessibleSubtractDefaults,this.language),this.theme="",this.margin="auto",this.expand=!1,this.identifier=void 0,this.min=0,this.labelDefaults={fi:"Nimilappu",en:"Label",sv:"Etikett"},this.label=g(this.labelDefaults,this.language),this.labelHidden=!1,this.max=1e6,this.name=void 0,this.error="",this.tooltip="",this.step=5e3,this.rounding=!0,this.role=void 0,this.disabled=!1,this.required=!1,this.value=void 0}componentWillLoad(){u(this),this.value&&(this.value=this.localizeValue(w(this.value,this.locale)))}connectedCallback(){v(this,[{prop:"accessibleLive",defaults:"accessibleLiveDefaults"},{prop:"accessibleAdd",defaults:"accessibleAddDefaults"},{prop:"accessibleSubtract",defaults:"accessibleSubtractDefaults"},{prop:"label",defaults:"labelDefaults"}]),l(this)}disconnectedCallback(){f(this),c(this)}async setFocus(t){this.duetInputElement.setFocus(t)}async getValueAsNumber(){const t=w(this.value,this.locale);return null==this.value||isNaN(t)?null:t}clearValue(){this.value=null,this.duetInputElement.value=""}formatAnnouncement(){const t=this.value?w(this.value,this.locale):null;return null==t?"":this.accessibleLive.replace("{current}",t.toString(10))}render(){const t=this.identifier||this.inputId,e=`${this.localizeValue(this.max)} ${this.unit}`.length,n=this.value?w(this.value,this.locale):null;return i(s,{class:{"duet-theme-turva":"turva"===this.theme,"duet-expand":this.expand,"duet-m-0":"none"===this.margin}},i("div",{class:"duet-number-container"},i("duet-input",{ref:t=>this.duetInputElement=t,onDuetChange:t=>this.handleChange(t),onDuetFocus:this.handleFocus,onDuetBlur:t=>this.handleBlur(t),onKeyDown:t=>this.handleKeyDown(t),label:this.label,value:this.value?`${this.value} ${this.unit}`:"",error:this.error,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":null!=n?n:"",maxlength:e,name:this.name,component:"number",required:this.required,disabled:this.disabled,role:this.role,labelHidden:this.labelHidden,tooltip:this.tooltip,identifier:t,theme:this.theme,margin:"none",expand:!0,numericKeyboard:!0,autoComplete:"off",type:"text",accessibleActiveDescendant:this.accessibleActiveDescendant,accessibleLabelledBy:this.accessibleLabelledBy,accessibleDescription:this.accessibleDescription,accessibleDetails:this.accessibleDetails,accessibleControls:this.accessibleControls,accessibleOwns:this.accessibleOwns,accessibleDescribedBy:this.accessibleDescribedBy},i("slot",{name:"tooltip",onSlotchange:t=>x(t,this,"duet-tooltip")}),i("div",{class:{"duet-number-buttons":!0,"duet-no-label":this.labelHidden}},i("button",{"aria-controls":t,disabled:this.disabled,"aria-disabled":null==n||n===this.min?"true":"false",class:"duet-number-button duet-number-button-subtract",onClick:this.subtract,type:"button"},i("duet-visually-hidden",null,this.accessibleSubtract," ",this.step),i("duet-icon",{icon:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.75 12.788a.75.75 0 0 1 0-1.5h22.5a.75.75 0 0 1 0 1.5z"/></svg>',size:"small",margin:"none",color:"turva"===this.theme?"secondary-turva":"secondary"})),i("button",{"aria-controls":t,disabled:this.disabled,"aria-disabled":n===this.max?"true":"false",class:"duet-number-button duet-number-button-add",onClick:this.add,type:"button"},i("duet-visually-hidden",null,this.accessibleAdd," ",this.step),i("duet-icon",{icon:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M12 24a.75.75 0 0 1-.75-.75v-10.5H.75a.75.75 0 0 1 0-1.5h10.5V.75a.75.75 0 0 1 1.5 0v10.5h10.5a.75.75 0 0 1 0 1.5h-10.5v10.5A.75.75 0 0 1 12 24z"/></svg>',size:"small",margin:"none",color:"turva"===this.theme?"secondary-turva":"secondary"})))),this.accessibleLiveEnabled&&i("duet-visually-hidden",{"aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement())))}get element(){return n(this)}};A.style='*.sc-duet-number-input,*.sc-duet-number-input::after,*.sc-duet-number-input::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-number-input-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;line-height:1.25;text-align:left;vertical-align:bottom}.sc-duet-number-input-h:last-child,.sc-duet-number-input-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-number-input-h{width:calc(50% - 16px - 3px)}}.duet-expand.sc-duet-number-input-h{width:100% !important}.duet-m-0.sc-duet-number-input-h{margin:0 !important}.duet-number-container.sc-duet-number-input{position:relative;width:100%}.duet-number-buttons.sc-duet-number-input{-webkit-user-select:none;user-select:none;position:absolute;top:1px;right:1px;z-index:200;width:96px;height:calc(100% - 2px)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input{position:relative;display:inline-flex;align-items:center;justify-content:center;width:50%;height:100%;text-align:center;cursor:pointer;background:transparent;-webkit-appearance:none;appearance:none}.duet-number-buttons.sc-duet-number-input .duet-number-button[aria-disabled=true].sc-duet-number-input,.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:disabled{pointer-events:none}.duet-number-buttons.sc-duet-number-input .duet-number-button[aria-disabled=true].sc-duet-number-input duet-icon.sc-duet-number-input,.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:disabled duet-icon.sc-duet-number-input{opacity:0.4}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:active duet-icon.sc-duet-number-input{transform:translateY(1px)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:focus{outline:0}.user-is-tabbing.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:focus{z-index:2;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva .user-is-tabbing.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:focus{box-shadow:0 0 0 2px #171c3a !important}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:first-of-type{border-left:1px solid rgb(207, 210, 212)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:first-of-type::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:"";background:linear-gradient(to left, rgba(207, 210, 212, 0.2) 0%, rgba(207, 210, 212, 0.2) 1px, rgba(207, 210, 212, 0.1) 1px, rgba(207, 210, 212, 0) 100%)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:last-of-type::before{position:absolute;top:20%;left:0;width:1px;height:60%;content:"";background:rgb(225, 227, 230)}.duet-theme-turva.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:first-of-type::before{background:linear-gradient(to left, rgba(207, 207, 209, 0.2) 0%, rgba(207, 207, 209, 0.2) 1px, rgba(207, 207, 209, 0.1) 1px, rgba(207, 207, 209, 0) 100%)}.duet-theme-turva.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:last-of-type::before{background:rgb(228, 228, 230)}';export{A as duet_number_input}
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(t,o,e,r){function n(t){return t instanceof e?t:new e((function(o){o(t)}))}return new(e||(e=Promise))((function(e,a){function i(t){try{d(r.next(t))}catch(t){a(t)}}function u(t){try{d(r["throw"](t))}catch(t){a(t)}}function d(t){t.done?e(t.value):n(t.value).then(i,u)}d((r=r.apply(t,o||[])).next())}))};var __generator=this&&this.__generator||function(t,o){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,n,a,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(t){return function(o){return d([t,o])}}function d(u){if(r)throw new TypeError("Generator is already executing.");while(i&&(i=0,u[0]&&(e=0)),e)try{if(r=1,n&&(a=u[0]&2?n["return"]:u[0]?n["throw"]||((a=n["return"])&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;if(n=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;n=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(a=e.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){e.label=u[1];break}if(u[0]===6&&e.label<a[1]){e.label=a[1];a=u;break}if(a&&e.label<a[2]){e.label=a[2];e.ops.push(u);break}if(a[2])e.ops.pop();e.trys.pop();continue}u=o.call(t,e)}catch(t){u=[6,t];n=0}finally{r=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register(["./p-8ec80833.system.js","./p-50f4bca2.system.js","./p-5795b0d9.system.js"],(function(t){"use strict";var o,e,r,n,a,i;return{setters:[function(t){o=t.r;e=t.h;r=t.H;n=t.g},function(t){a=t.i},function(t){i=t.f}],execute:function(){var u='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}.duet-toolbar-dropdown{position:relative;height:100%}.duet-toolbar-dropdown button{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 16px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 77, 128);text-align:center;text-decoration:none;cursor:pointer}.duet-toolbar-dropdown button .label{display:flex;gap:0.5rem;align-items:center;justify-content:center}.duet-toolbar-dropdown button:hover{color:rgb(0, 41, 77);background:rgb(243, 249, 252)}.duet-toolbar-dropdown button.open .caret{transform:rotate(180deg)}.duet-toolbar-dropdown button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-toolbar-dropdown button.active,.duet-toolbar-dropdown button.open{color:rgb(0, 41, 77)}.duet-toolbar-dropdown button.active::after,.duet-toolbar-dropdown button.open::after{position:absolute;top:auto;bottom:1px;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(1px)}.duet-toolbar-dropdown .items{position:absolute;top:93%;right:0%;left:auto;z-index:600;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:175px;padding:8px;color:rgb(0, 41, 77);background:rgb(255, 255, 255);border-radius:8px;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.07), 0 4px 10px 0 rgba(0, 41, 77, 0.15)}.duet-toolbar-dropdown .items.hidden{display:none}.duet-toolbar-dropdown.right .items{right:auto;left:0%}.duet-toolbar-dropdown.duet-theme-turva button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-toolbar-dropdown.duet-theme-turva button:hover{color:rgb(23, 28, 58);background:rgb(245, 245, 247)}.duet-toolbar-dropdown.duet-theme-turva button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-toolbar-dropdown.duet-theme-turva button.active,.duet-toolbar-dropdown.duet-theme-turva button.open{color:rgb(23, 28, 58)}.duet-toolbar-dropdown.duet-theme-turva button.active::after,.duet-toolbar-dropdown.duet-theme-turva button.open::after{background:rgb(198, 12, 48)}.duet-toolbar-dropdown.duet-theme-turva .items{background:rgb(255, 255, 255)}.duet-toolbar-dropdown.negative button{color:rgb(255, 255, 255)}.duet-toolbar-dropdown.negative button:hover{color:rgb(255, 255, 255);background:rgba(0, 41, 77, 0.2)}.duet-toolbar-dropdown.negative button.active{font-weight:600;color:rgb(255, 255, 255);background:rgba(0, 41, 77, 0.2)}.duet-toolbar-dropdown.negative button.open{color:rgb(255, 255, 255);background:rgba(0, 41, 77, 0.2)}.duet-toolbar-dropdown.negative button duet-icon{color:rgb(205, 229, 241)}.duet-toolbar-dropdown.duet-theme-turva.negative button{color:rgb(255, 255, 255)}.duet-toolbar-dropdown.duet-theme-turva.negative button:hover{color:rgb(255, 255, 255);background:rgba(23, 28, 58, 0.2)}.duet-toolbar-dropdown.duet-theme-turva.negative button.active{font-weight:600;color:rgb(255, 255, 255);background:rgba(23, 28, 58, 0.2)}.duet-toolbar-dropdown.duet-theme-turva.negative button.open{color:rgb(255, 255, 255);background:rgba(23, 28, 58, 0.2)}.duet-toolbar-dropdown.duet-theme-turva.negative button duet-icon{color:rgb(244, 207, 214)}';var d=t("duet_toolbar_dropdown",function(){function t(t){var e=this;o(this,t);this.onClick=function(){e.open=!e.open};this.theme="";this.variation="default";this.accessibleLabel=undefined;this.active=false;this.open=false;this.icon=undefined}t.prototype.handleFocus=function(t){var o=this;var e=t.composedPath().every((function(t){return t!==o.element}));if(e){this.open=false}};t.prototype.componentWillLoad=function(){a(this)};t.prototype.handleEscape=function(t){if(i(t)){this.open=false;this.setFocus()}};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){this.button.focus(t);return[2]}))}))};t.prototype.render=function(){var t;var o=this;var n="right";if(this.element&&this.element.parentElement){n=this.element.parentElement.getAttribute("slot")==="left"?"right":"left"}var a=this.variation==="negative"?"negative":"white";return e(r,null,e("div",{class:(t={"duet-toolbar-dropdown":true,"duet-theme-turva":this.theme==="turva"},t[n]=true,t[a]=true,t)},e("button",{ref:function(t){return o.button=t},"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false","aria-label":this.accessibleLabel,id:"button",type:"button",class:{active:this.active,open:this.open},onClick:this.onClick,onKeyUp:function(t){return o.handleEscape(t)}},this.icon&&e("duet-icon",{theme:this.theme,name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),e("div",{class:"label"},e("slot",{name:"label"}),e("duet-icon",{class:"caret",theme:this.theme,name:"action-arrow-down-small",margin:"none",size:"xxx-small",color:"currentColor"}))),e("div",{tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:true,hidden:!this.open}},e("slot",null))))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());d.style=u}}}));
4
+ */System.register(["./p-52737afc.system.js","./p-50f4bca2.system.js","./p-5795b0d9.system.js"],(function(t){"use strict";var o,e,r,n,a,i;return{setters:[function(t){o=t.r;e=t.h;r=t.H;n=t.g},function(t){a=t.i},function(t){i=t.f}],execute:function(){var u='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}.duet-toolbar-dropdown{position:relative;height:100%}.duet-toolbar-dropdown button{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 16px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 77, 128);text-align:center;text-decoration:none;cursor:pointer}.duet-toolbar-dropdown button .label{display:flex;gap:0.5rem;align-items:center;justify-content:center}.duet-toolbar-dropdown button:hover{color:rgb(0, 41, 77);background:rgb(243, 249, 252)}.duet-toolbar-dropdown button.open .caret{transform:rotate(180deg)}.duet-toolbar-dropdown button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-toolbar-dropdown button.active,.duet-toolbar-dropdown button.open{color:rgb(0, 41, 77)}.duet-toolbar-dropdown button.active::after,.duet-toolbar-dropdown button.open::after{position:absolute;top:auto;bottom:1px;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(1px)}.duet-toolbar-dropdown .items{position:absolute;top:93%;right:0%;left:auto;z-index:600;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:175px;padding:8px;color:rgb(0, 41, 77);background:rgb(255, 255, 255);border-radius:8px;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.07), 0 4px 10px 0 rgba(0, 41, 77, 0.15)}.duet-toolbar-dropdown .items.hidden{display:none}.duet-toolbar-dropdown.right .items{right:auto;left:0%}.duet-toolbar-dropdown.duet-theme-turva button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-toolbar-dropdown.duet-theme-turva button:hover{color:rgb(23, 28, 58);background:rgb(245, 245, 247)}.duet-toolbar-dropdown.duet-theme-turva button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-toolbar-dropdown.duet-theme-turva button.active,.duet-toolbar-dropdown.duet-theme-turva button.open{color:rgb(23, 28, 58)}.duet-toolbar-dropdown.duet-theme-turva button.active::after,.duet-toolbar-dropdown.duet-theme-turva button.open::after{background:rgb(198, 12, 48)}.duet-toolbar-dropdown.duet-theme-turva .items{background:rgb(255, 255, 255)}.duet-toolbar-dropdown.negative button{color:rgb(255, 255, 255)}.duet-toolbar-dropdown.negative button:hover{color:rgb(255, 255, 255);background:rgba(0, 41, 77, 0.2)}.duet-toolbar-dropdown.negative button.active{font-weight:600;color:rgb(255, 255, 255);background:rgba(0, 41, 77, 0.2)}.duet-toolbar-dropdown.negative button.open{color:rgb(255, 255, 255);background:rgba(0, 41, 77, 0.2)}.duet-toolbar-dropdown.negative button duet-icon{color:rgb(205, 229, 241)}.duet-toolbar-dropdown.duet-theme-turva.negative button{color:rgb(255, 255, 255)}.duet-toolbar-dropdown.duet-theme-turva.negative button:hover{color:rgb(255, 255, 255);background:rgba(23, 28, 58, 0.2)}.duet-toolbar-dropdown.duet-theme-turva.negative button.active{font-weight:600;color:rgb(255, 255, 255);background:rgba(23, 28, 58, 0.2)}.duet-toolbar-dropdown.duet-theme-turva.negative button.open{color:rgb(255, 255, 255);background:rgba(23, 28, 58, 0.2)}.duet-toolbar-dropdown.duet-theme-turva.negative button duet-icon{color:rgb(244, 207, 214)}';var d=t("duet_toolbar_dropdown",function(){function t(t){var e=this;o(this,t);this.onClick=function(){e.open=!e.open};this.theme="";this.variation="default";this.accessibleLabel=undefined;this.active=false;this.open=false;this.icon=undefined}t.prototype.handleFocus=function(t){var o=this;var e=t.composedPath().every((function(t){return t!==o.element}));if(e){this.open=false}};t.prototype.componentWillLoad=function(){a(this)};t.prototype.handleEscape=function(t){if(i(t)){this.open=false;this.setFocus()}};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){this.button.focus(t);return[2]}))}))};t.prototype.render=function(){var t;var o=this;var n="right";if(this.element&&this.element.parentElement){n=this.element.parentElement.getAttribute("slot")==="left"?"right":"left"}var a=this.variation==="negative"?"negative":"white";return e(r,null,e("div",{class:(t={"duet-toolbar-dropdown":true,"duet-theme-turva":this.theme==="turva"},t[n]=true,t[a]=true,t)},e("button",{ref:function(t){return o.button=t},"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false","aria-label":this.accessibleLabel,id:"button",type:"button",class:{active:this.active,open:this.open},onClick:this.onClick,onKeyUp:function(t){return o.handleEscape(t)}},this.icon&&e("duet-icon",{theme:this.theme,name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),e("div",{class:"label"},e("slot",{name:"label"}),e("duet-icon",{class:"caret",theme:this.theme,name:"action-arrow-down-small",margin:"none",size:"xxx-small",color:"currentColor"}))),e("div",{tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:true,hidden:!this.open}},e("slot",null))))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());d.style=u}}}));