@duetds/components 9.16.0 → 9.16.1

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 (673) hide show
  1. package/hydrate/index.js +44 -39
  2. package/lib/cjs/{a11y-utils-5a9c531a.js → a11y-utils-113bdcf1.js} +1 -1
  3. package/lib/cjs/{app-globals-1cf9bebc.js → app-globals-2ad7d0da.js} +1 -1
  4. package/lib/cjs/duet-action-button.cjs.entry.js +4 -4
  5. package/lib/cjs/duet-alert.cjs.entry.js +4 -4
  6. package/lib/cjs/duet-badge.cjs.entry.js +3 -3
  7. package/lib/cjs/duet-banner.cjs.entry.js +4 -4
  8. package/lib/cjs/duet-breadcrumb.cjs.entry.js +10 -19
  9. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +5 -5
  10. package/lib/cjs/duet-button_2.cjs.entry.js +5 -5
  11. package/lib/cjs/duet-callout.cjs.entry.js +3 -3
  12. package/lib/cjs/duet-caption_4.cjs.entry.js +6 -6
  13. package/lib/cjs/duet-card.cjs.entry.js +4 -4
  14. package/lib/cjs/duet-checkbox.cjs.entry.js +2 -2
  15. package/lib/cjs/duet-checkmark.cjs.entry.js +2 -2
  16. package/lib/cjs/duet-chip.cjs.entry.js +3 -3
  17. package/lib/cjs/duet-choice_2.cjs.entry.js +4 -4
  18. package/lib/cjs/duet-collapsible.cjs.entry.js +17 -8
  19. package/lib/cjs/duet-combobox.cjs.entry.js +4 -4
  20. package/lib/cjs/duet-contact-card.cjs.entry.js +3 -3
  21. package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
  22. package/lib/cjs/duet-date-picker.cjs.entry.js +5 -5
  23. package/lib/cjs/duet-divider_2.cjs.entry.js +3 -3
  24. package/lib/cjs/duet-editable-table_3.cjs.entry.js +5 -5
  25. package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
  26. package/lib/cjs/duet-fieldset.cjs.entry.js +3 -3
  27. package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
  28. package/lib/cjs/duet-footer.cjs.entry.js +4 -4
  29. package/lib/cjs/duet-grid_2.cjs.entry.js +2 -2
  30. package/lib/cjs/duet-header_2.cjs.entry.js +4 -4
  31. package/lib/cjs/duet-hero.cjs.entry.js +15 -11
  32. package/lib/cjs/duet-icon.cjs.entry.js +3 -3
  33. package/lib/cjs/duet-indicator.cjs.entry.js +2 -2
  34. package/lib/cjs/duet-input_2.cjs.entry.js +5 -5
  35. package/lib/cjs/duet-layout.cjs.entry.js +2 -2
  36. package/lib/cjs/duet-list_2.cjs.entry.js +2 -2
  37. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +2 -2
  38. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +2 -2
  39. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +2 -2
  40. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +5 -5
  41. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +2 -2
  42. package/lib/cjs/duet-menu-bar.cjs.entry.js +4 -4
  43. package/lib/cjs/duet-modal.cjs.entry.js +6 -6
  44. package/lib/cjs/duet-multiselect.cjs.entry.js +4 -4
  45. package/lib/cjs/duet-nav.cjs.entry.js +3 -3
  46. package/lib/cjs/duet-notification_2.cjs.entry.js +3 -3
  47. package/lib/cjs/duet-number-input.cjs.entry.js +4 -4
  48. package/lib/cjs/duet-overlay.cjs.entry.js +2 -2
  49. package/lib/cjs/duet-page-heading.cjs.entry.js +3 -3
  50. package/lib/cjs/duet-pagination_2.cjs.entry.js +4 -4
  51. package/lib/cjs/duet-panel.cjs.entry.js +3 -3
  52. package/lib/cjs/duet-phone-input.cjs.entry.js +4 -4
  53. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +4 -4
  54. package/lib/cjs/duet-progress.cjs.entry.js +3 -3
  55. package/lib/cjs/duet-promo-card.cjs.entry.js +4 -4
  56. package/lib/cjs/duet-radio_2.cjs.entry.js +3 -3
  57. package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
  58. package/lib/cjs/duet-scrollable_3.cjs.entry.js +5 -5
  59. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
  60. package/lib/cjs/duet-select.cjs.entry.js +3 -3
  61. package/lib/cjs/duet-shaped-image.cjs.entry.js +2 -2
  62. package/lib/cjs/duet-share-chart-item.cjs.entry.js +1 -1
  63. package/lib/cjs/duet-share-chart.cjs.entry.js +5 -5
  64. package/lib/cjs/duet-show-more.cjs.entry.js +3 -3
  65. package/lib/cjs/duet-slideout-lang.cjs.entry.js +3 -3
  66. package/lib/cjs/duet-slideout-link.cjs.entry.js +5 -5
  67. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +2 -2
  68. package/lib/cjs/duet-slideout-panel.cjs.entry.js +6 -6
  69. package/lib/cjs/duet-slideout.cjs.entry.js +6 -6
  70. package/lib/cjs/duet-status-icon.cjs.entry.js +1 -1
  71. package/lib/cjs/duet-step_2.cjs.entry.js +3 -3
  72. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +2 -2
  73. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +2 -2
  74. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +5 -5
  75. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +2 -2
  76. package/lib/cjs/duet-submenu-bar.cjs.entry.js +3 -3
  77. package/lib/cjs/duet-textarea.cjs.entry.js +4 -4
  78. package/lib/cjs/duet-toggle.cjs.entry.js +2 -2
  79. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +2 -2
  80. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +2 -2
  81. package/lib/cjs/duet-toolbar-item.cjs.entry.js +5 -5
  82. package/lib/cjs/duet-toolbar-link.cjs.entry.js +2 -2
  83. package/lib/cjs/duet-toolbar.cjs.entry.js +2 -2
  84. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +3 -3
  85. package/lib/cjs/duet-tooltip.cjs.entry.js +3 -3
  86. package/lib/cjs/duet-tray.cjs.entry.js +3 -3
  87. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  88. package/lib/cjs/duet-upload-item.cjs.entry.js +4 -4
  89. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  90. package/lib/cjs/duet.cjs.js +3 -3
  91. package/lib/cjs/{errorcodes.utils-cd519cbd.js → errorcodes.utils-b3a3ed44.js} +1 -1
  92. package/lib/cjs/{focus-utils-241733db.js → focus-utils-5c4526cd.js} +1 -1
  93. package/lib/cjs/{index-f3dac623.js → index-caee10a4.js} +1 -1
  94. package/lib/cjs/{language-utils-cf6db76f.js → language-utils-9e3aebfc.js} +1 -1
  95. package/lib/cjs/loader.cjs.js +3 -3
  96. package/lib/cjs/{slot-utils-872ee5f7.js → slot-utils-d034ca5f.js} +1 -1
  97. package/lib/cjs/{themeable-component-002fbe60.js → themeable-component-98732ad8.js} +1 -1
  98. package/lib/cjs/{token-utils-658c4c54.js → token-utils-c73ca50c.js} +3 -3
  99. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.css +1 -1
  100. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +8 -21
  101. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.css +3 -3
  102. package/lib/collection/components/duet-button/duet-button.css +3 -0
  103. package/lib/collection/components/duet-collapsible/duet-collapsible.js +15 -6
  104. package/lib/collection/components/duet-hero/duet-hero.css +4 -0
  105. package/lib/collection/components/duet-hero/duet-hero.js +10 -6
  106. package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +4 -0
  107. package/lib/collection/components/duet-nav/duet-nav.css +4 -0
  108. package/lib/collection/components/duet-page-heading/duet-page-heading.js +1 -1
  109. package/lib/collection/components/duet-panel/duet-panel.css +5 -4
  110. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +4 -0
  111. package/lib/collection/utils/token-utils.js +3 -3
  112. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  113. package/lib/dist-custom-elements/duet-alert.js +1 -1
  114. package/lib/dist-custom-elements/duet-badge.js +1 -1
  115. package/lib/dist-custom-elements/duet-banner.js +4 -4
  116. package/lib/dist-custom-elements/duet-breadcrumb.js +12 -21
  117. package/lib/dist-custom-elements/duet-breadcrumbs.js +3 -3
  118. package/lib/dist-custom-elements/duet-button.js +1 -1
  119. package/lib/dist-custom-elements/duet-callout.js +2 -2
  120. package/lib/dist-custom-elements/duet-caption.js +1 -1
  121. package/lib/dist-custom-elements/duet-card.js +4 -4
  122. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  123. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  124. package/lib/dist-custom-elements/duet-chip.js +1 -1
  125. package/lib/dist-custom-elements/duet-choice-group.js +8 -8
  126. package/lib/dist-custom-elements/duet-choice.js +4 -4
  127. package/lib/dist-custom-elements/duet-collapsible.js +18 -9
  128. package/lib/dist-custom-elements/duet-combobox.js +15 -15
  129. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  130. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  131. package/lib/dist-custom-elements/duet-date-picker.js +13 -13
  132. package/lib/dist-custom-elements/duet-divider.js +1 -1
  133. package/lib/dist-custom-elements/duet-editable-table.js +7 -7
  134. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  135. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  136. package/lib/dist-custom-elements/duet-file-chooser.js +2 -2
  137. package/lib/dist-custom-elements/duet-footer.js +7 -7
  138. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  139. package/lib/dist-custom-elements/duet-grid.js +1 -1
  140. package/lib/dist-custom-elements/duet-header.js +9 -9
  141. package/lib/dist-custom-elements/duet-heading.js +1 -1
  142. package/lib/dist-custom-elements/duet-hero.js +20 -16
  143. package/lib/dist-custom-elements/duet-icon.js +1 -1
  144. package/lib/dist-custom-elements/duet-indicator.js +1 -1
  145. package/lib/dist-custom-elements/duet-input.js +1 -1
  146. package/lib/dist-custom-elements/duet-label.js +1 -1
  147. package/lib/dist-custom-elements/duet-layout.js +1 -1
  148. package/lib/dist-custom-elements/duet-link.js +1 -1
  149. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  150. package/lib/dist-custom-elements/duet-list.js +1 -1
  151. package/lib/dist-custom-elements/duet-logo.js +1 -1
  152. package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
  153. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
  154. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
  155. package/lib/dist-custom-elements/duet-menu-bar-item.js +2 -2
  156. package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
  157. package/lib/dist-custom-elements/duet-menu-bar.js +3 -3
  158. package/lib/dist-custom-elements/duet-modal.js +9 -9
  159. package/lib/dist-custom-elements/duet-multiselect.js +9 -9
  160. package/lib/dist-custom-elements/duet-nav.js +2 -2
  161. package/lib/dist-custom-elements/duet-notification-drawer.js +6 -6
  162. package/lib/dist-custom-elements/duet-notification.js +3 -3
  163. package/lib/dist-custom-elements/duet-number-input.js +11 -11
  164. package/lib/dist-custom-elements/duet-overlay.js +1 -1
  165. package/lib/dist-custom-elements/duet-page-heading.js +4 -4
  166. package/lib/dist-custom-elements/duet-pagination.js +14 -14
  167. package/lib/dist-custom-elements/duet-panel.js +2 -2
  168. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  169. package/lib/dist-custom-elements/duet-phone-input.js +16 -16
  170. package/lib/dist-custom-elements/duet-popup-menu-item.js +1 -1
  171. package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
  172. package/lib/dist-custom-elements/duet-progress.js +1 -1
  173. package/lib/dist-custom-elements/duet-promo-card.js +4 -4
  174. package/lib/dist-custom-elements/duet-radio-group.js +8 -8
  175. package/lib/dist-custom-elements/duet-radio.js +1 -1
  176. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  177. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  178. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  179. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  180. package/lib/dist-custom-elements/duet-select.js +1 -1
  181. package/lib/dist-custom-elements/duet-shaped-image.js +1 -1
  182. package/lib/dist-custom-elements/duet-share-chart-item.js +1 -1
  183. package/lib/dist-custom-elements/duet-share-chart.js +3 -3
  184. package/lib/dist-custom-elements/duet-show-more.js +1 -1
  185. package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
  186. package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
  187. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
  188. package/lib/dist-custom-elements/duet-slideout-panel.js +5 -5
  189. package/lib/dist-custom-elements/duet-slideout.js +4 -4
  190. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  191. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  192. package/lib/dist-custom-elements/duet-status-icon.js +1 -1
  193. package/lib/dist-custom-elements/duet-step.js +4 -4
  194. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  195. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
  196. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +2 -2
  197. package/lib/dist-custom-elements/duet-submenu-bar-item.js +2 -2
  198. package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
  199. package/lib/dist-custom-elements/duet-submenu-bar.js +4 -4
  200. package/lib/dist-custom-elements/duet-tab-group.js +8 -8
  201. package/lib/dist-custom-elements/duet-tab.js +2 -2
  202. package/lib/dist-custom-elements/duet-table.js +1 -1
  203. package/lib/dist-custom-elements/duet-textarea.js +10 -10
  204. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  205. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
  206. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
  207. package/lib/dist-custom-elements/duet-toolbar-item.js +4 -4
  208. package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
  209. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  210. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  211. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  212. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  213. package/lib/dist-custom-elements/duet-tray.js +3 -3
  214. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  215. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  216. package/lib/dist-custom-elements/duet-upload.js +20 -20
  217. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  218. package/lib/dist-custom-elements/index.js +1 -1
  219. package/lib/dist-custom-elements/{p-6bcaf414.js → p-01808ae4.js} +2 -2
  220. package/lib/dist-custom-elements/{p-7e7dcf59.js → p-051e8432.js} +1 -1
  221. package/lib/dist-custom-elements/{p-292fa964.js → p-07aea296.js} +6 -6
  222. package/lib/dist-custom-elements/{p-21f19284.js → p-07d58c18.js} +7 -7
  223. package/lib/dist-custom-elements/{p-b74c6798.js → p-09eeb0d8.js} +5 -5
  224. package/lib/dist-custom-elements/{p-3663183a.js → p-1428bca8.js} +2 -2
  225. package/lib/dist-custom-elements/{p-8653283d.js → p-186bf66e.js} +2 -2
  226. package/lib/dist-custom-elements/{p-60ffc3cf.js → p-1be25f37.js} +1 -1
  227. package/lib/dist-custom-elements/{p-f75df296.js → p-1c3b7df5.js} +10 -10
  228. package/lib/dist-custom-elements/{p-c0f48cc4.js → p-211bbab4.js} +1 -1
  229. package/lib/dist-custom-elements/{p-7d6b4a88.js → p-21425713.js} +1 -1
  230. package/lib/dist-custom-elements/{p-8959f96f.js → p-2c6c022f.js} +2 -2
  231. package/lib/dist-custom-elements/{p-ab6148ae.js → p-2c95a055.js} +2 -2
  232. package/lib/dist-custom-elements/{p-4f923779.js → p-2dc31d71.js} +2 -2
  233. package/lib/dist-custom-elements/{p-bb928027.js → p-4228d649.js} +2 -2
  234. package/lib/dist-custom-elements/{p-139e1daa.js → p-45a25e1c.js} +1 -1
  235. package/lib/dist-custom-elements/{p-3972dc75.js → p-4c39b06e.js} +3 -3
  236. package/lib/dist-custom-elements/{p-bb3c4ead.js → p-4f0b365b.js} +1 -1
  237. package/lib/dist-custom-elements/{p-38dd3c2b.js → p-57091005.js} +12 -12
  238. package/lib/dist-custom-elements/{p-7a60242d.js → p-5a556f9a.js} +2 -2
  239. package/lib/dist-custom-elements/{p-1c66f5a0.js → p-5bf73913.js} +2 -2
  240. package/lib/dist-custom-elements/{p-41ce0759.js → p-5fac1036.js} +2 -2
  241. package/lib/dist-custom-elements/{p-1172497f.js → p-60827675.js} +2 -2
  242. package/lib/dist-custom-elements/{p-6c16fc37.js → p-63bad120.js} +2 -2
  243. package/lib/dist-custom-elements/{p-a019caf4.js → p-68221361.js} +8 -8
  244. package/lib/dist-custom-elements/{p-52a4d93a.js → p-747f6fa4.js} +1 -1
  245. package/lib/dist-custom-elements/{p-499da71e.js → p-78b6337a.js} +3 -3
  246. package/lib/dist-custom-elements/{p-21d23d6c.js → p-8284b970.js} +4 -4
  247. package/lib/dist-custom-elements/{p-6402ad5d.js → p-84c12085.js} +2 -2
  248. package/lib/dist-custom-elements/{p-d1f886eb.js → p-897cd468.js} +2 -2
  249. package/lib/dist-custom-elements/{p-886f39eb.js → p-8aa9471e.js} +10 -10
  250. package/lib/dist-custom-elements/{p-81d2c117.js → p-8e5437bd.js} +2 -2
  251. package/lib/dist-custom-elements/{p-42a5e1de.js → p-90ef4cdf.js} +1 -1
  252. package/lib/dist-custom-elements/{p-867790e2.js → p-979b130b.js} +5 -5
  253. package/lib/dist-custom-elements/{p-dc0c957e.js → p-afa85350.js} +5 -5
  254. package/lib/dist-custom-elements/{p-9aa4a7b3.js → p-c5dcc0ea.js} +1 -1
  255. package/lib/dist-custom-elements/{p-271a8315.js → p-cbb101aa.js} +2 -2
  256. package/lib/dist-custom-elements/{p-d40a8125.js → p-d723c019.js} +2 -2
  257. package/lib/dist-custom-elements/{p-24404a59.js → p-e167506b.js} +1 -1
  258. package/lib/dist-custom-elements/{p-a1827b91.js → p-e3b560d3.js} +3 -3
  259. package/lib/dist-custom-elements/{p-03c9ec22.js → p-f8c458d0.js} +1 -1
  260. package/lib/dist-custom-elements/{p-f5c2e1f7.js → p-fa3ebc1e.js} +1 -1
  261. package/lib/duet/duet.esm.js +1 -1
  262. package/lib/duet/duet.js +1 -1
  263. package/lib/duet/{p-151e589f.entry.js → p-00b27ded.entry.js} +1 -1
  264. package/lib/duet/{p-5df26556.system.entry.js → p-01f6825e.system.entry.js} +1 -1
  265. package/lib/duet/{p-fc154425.system.entry.js → p-021c152c.system.entry.js} +1 -1
  266. package/lib/duet/{p-9e2eef25.entry.js → p-032230dd.entry.js} +1 -1
  267. package/lib/duet/{p-adef3dfe.entry.js → p-03b5f65a.entry.js} +1 -1
  268. package/lib/duet/{p-66fbd83d.system.entry.js → p-03b9211c.system.entry.js} +1 -1
  269. package/lib/duet/{p-6d52ee47.entry.js → p-08b08728.entry.js} +1 -1
  270. package/lib/duet/{p-3f59cd08.js → p-08f35dcb.js} +1 -1
  271. package/lib/duet/{p-449238fa.entry.js → p-0b275971.entry.js} +1 -1
  272. package/lib/duet/{p-f922b327.entry.js → p-0c012ed1.entry.js} +1 -1
  273. package/lib/duet/{p-9bb58dc0.system.entry.js → p-0fec0e03.system.entry.js} +1 -1
  274. package/lib/duet/{p-85b614eb.entry.js → p-1060aa25.entry.js} +1 -1
  275. package/lib/duet/{p-29a57223.entry.js → p-1066dc94.entry.js} +1 -1
  276. package/lib/duet/{p-688647ad.js → p-106cd6ab.js} +1 -1
  277. package/lib/duet/{p-0db191ad.entry.js → p-118dae54.entry.js} +1 -1
  278. package/lib/duet/{p-59777da7.system.js → p-13eec75c.system.js} +1 -1
  279. package/lib/duet/{p-29287b24.entry.js → p-147a0d89.entry.js} +1 -1
  280. package/lib/duet/{p-bbb5ceff.system.entry.js → p-17db9cab.system.entry.js} +1 -1
  281. package/lib/duet/{p-a1166aa4.entry.js → p-17e9f5f2.entry.js} +1 -1
  282. package/lib/duet/p-1971f9b0.system.entry.js +4 -0
  283. package/lib/duet/{p-20ad3525.entry.js → p-1b7c7390.entry.js} +1 -1
  284. package/lib/duet/{p-770aa3e8.entry.js → p-1bb0af1a.entry.js} +1 -1
  285. package/lib/duet/{p-a07cef22.entry.js → p-1d2cadcc.entry.js} +1 -1
  286. package/lib/duet/{p-efd3c1ca.system.entry.js → p-1e5c76d7.system.entry.js} +1 -1
  287. package/lib/duet/{p-a0512a05.system.entry.js → p-1e6bf17e.system.entry.js} +1 -1
  288. package/lib/duet/{p-2a01ec55.system.entry.js → p-1f082e57.system.entry.js} +1 -1
  289. package/lib/duet/{p-31740db1.system.entry.js → p-2063c660.system.entry.js} +1 -1
  290. package/lib/duet/{p-b3e8a986.entry.js → p-2144ed7e.entry.js} +1 -1
  291. package/lib/duet/{p-ab8f38c1.entry.js → p-219cd158.entry.js} +1 -1
  292. package/lib/duet/{p-05e0ef86.system.entry.js → p-23486542.system.entry.js} +1 -1
  293. package/lib/duet/{p-f1f892da.system.entry.js → p-23601b3e.system.entry.js} +1 -1
  294. package/lib/duet/{p-d33eef1f.entry.js → p-236aec93.entry.js} +1 -1
  295. package/lib/duet/{p-1db742d9.system.entry.js → p-24c27df5.system.entry.js} +1 -1
  296. package/lib/duet/p-2747b44c.system.entry.js +4 -0
  297. package/lib/duet/{p-49e49df2.entry.js → p-27fecfaa.entry.js} +1 -1
  298. package/lib/duet/{p-8d82f49d.entry.js → p-28ac2fa8.entry.js} +1 -1
  299. package/lib/duet/{p-1e543545.entry.js → p-29f97ffb.entry.js} +1 -1
  300. package/lib/duet/{p-0e1edb8d.system.entry.js → p-2bbc034f.system.entry.js} +1 -1
  301. package/lib/duet/{p-817e80e5.entry.js → p-2c164336.entry.js} +1 -1
  302. package/lib/duet/{p-c73fad00.system.entry.js → p-2cf70fac.system.entry.js} +1 -1
  303. package/lib/duet/{p-d66c0235.entry.js → p-3390de84.entry.js} +1 -1
  304. package/lib/duet/{p-617a3a36.system.entry.js → p-33b6ad8b.system.entry.js} +1 -1
  305. package/lib/duet/{p-1ea05c4e.entry.js → p-3420a2e4.entry.js} +1 -1
  306. package/lib/duet/{p-8dad8fce.system.entry.js → p-34b57104.system.entry.js} +1 -1
  307. package/lib/duet/{p-489f6566.entry.js → p-354763bd.entry.js} +1 -1
  308. package/lib/duet/{p-249ece01.system.entry.js → p-364526bf.system.entry.js} +1 -1
  309. package/lib/duet/p-36a29933.js +4 -0
  310. package/lib/duet/{p-53f7c29f.entry.js → p-36b45ca1.entry.js} +1 -1
  311. package/lib/duet/{p-de4d3f16.entry.js → p-37687656.entry.js} +1 -1
  312. package/lib/duet/{p-17375bc6.system.entry.js → p-393f3d40.system.entry.js} +1 -1
  313. package/lib/duet/{p-79565bed.system.entry.js → p-39cd22a6.system.entry.js} +1 -1
  314. package/lib/duet/{p-bf53d017.entry.js → p-3ba94b3e.entry.js} +1 -1
  315. package/lib/duet/{p-185be698.system.entry.js → p-3c3bc9fb.system.entry.js} +1 -1
  316. package/lib/duet/p-3c7cc108.entry.js +4 -0
  317. package/lib/duet/{p-928c05ef.system.entry.js → p-430c421b.system.entry.js} +1 -1
  318. package/lib/duet/{p-0e414d45.system.entry.js → p-43e7ee1b.system.entry.js} +1 -1
  319. package/lib/duet/{p-c4eff1d7.system.entry.js → p-440018ce.system.entry.js} +1 -1
  320. package/lib/duet/{p-b137766b.entry.js → p-4452e6e8.entry.js} +1 -1
  321. package/lib/duet/{p-b50db31a.entry.js → p-4594e530.entry.js} +1 -1
  322. package/lib/duet/{p-75e98d7d.entry.js → p-46ac8eb2.entry.js} +1 -1
  323. package/lib/duet/{p-181b00e5.system.entry.js → p-48049d11.system.entry.js} +1 -1
  324. package/lib/duet/{p-891b2193.entry.js → p-480ed6f7.entry.js} +1 -1
  325. package/lib/duet/{p-757f068a.system.entry.js → p-49d3f1f8.system.entry.js} +1 -1
  326. package/lib/duet/{p-c861f3d9.entry.js → p-55ed83fd.entry.js} +1 -1
  327. package/lib/duet/{p-28439eeb.system.entry.js → p-56d797a7.system.entry.js} +1 -1
  328. package/lib/duet/p-578b1556.entry.js +4 -0
  329. package/lib/duet/{p-f50d1845.system.js → p-57941503.system.js} +1 -1
  330. package/lib/duet/{p-11158849.entry.js → p-58b1748d.entry.js} +1 -1
  331. package/lib/duet/{p-bb6d4e02.system.entry.js → p-5a623866.system.entry.js} +1 -1
  332. package/lib/duet/{p-68e43f24.entry.js → p-5af19c0d.entry.js} +1 -1
  333. package/lib/duet/{p-b737793a.system.entry.js → p-5be1c8ca.system.entry.js} +1 -1
  334. package/lib/duet/p-5cbbad67.entry.js +4 -0
  335. package/lib/duet/{p-a90271b5.system.entry.js → p-5db55c55.system.entry.js} +1 -1
  336. package/lib/duet/{p-69186487.entry.js → p-60672e19.entry.js} +1 -1
  337. package/lib/duet/{p-682a0ad1.js → p-63045d0e.js} +1 -1
  338. package/lib/duet/{p-709df441.entry.js → p-632bb443.entry.js} +1 -1
  339. package/lib/duet/{p-c398295a.entry.js → p-63b3eff1.entry.js} +1 -1
  340. package/lib/duet/{p-2ca74bdf.system.js → p-6592e02c.system.js} +1 -1
  341. package/lib/duet/{p-1c21d6bb.entry.js → p-65dac1a2.entry.js} +1 -1
  342. package/lib/duet/{p-d02c0a0b.entry.js → p-66663bdd.entry.js} +1 -1
  343. package/lib/duet/{p-34b4e0d4.system.entry.js → p-666775c7.system.entry.js} +1 -1
  344. package/lib/duet/{p-15745be0.system.entry.js → p-684278ce.system.entry.js} +1 -1
  345. package/lib/duet/{p-700d96c2.system.entry.js → p-6950f757.system.entry.js} +1 -1
  346. package/lib/duet/{p-b07a5883.system.entry.js → p-69a8abac.system.entry.js} +1 -1
  347. package/lib/duet/{p-143df6ab.entry.js → p-6b02af30.entry.js} +1 -1
  348. package/lib/duet/{p-5f1e33f1.system.entry.js → p-6b371ce8.system.entry.js} +1 -1
  349. package/lib/duet/{p-21352a03.system.entry.js → p-6bb80546.system.entry.js} +1 -1
  350. package/lib/duet/{p-1ea2eed2.entry.js → p-6bc99ba8.entry.js} +1 -1
  351. package/lib/duet/{p-335f3ad7.system.entry.js → p-6e575dd4.system.entry.js} +1 -1
  352. package/lib/duet/{p-1eac8308.entry.js → p-6f05d7e7.entry.js} +1 -1
  353. package/lib/duet/{p-e7f98811.entry.js → p-6f2c6bff.entry.js} +1 -1
  354. package/lib/duet/{p-ed9f7d82.system.entry.js → p-6fb94ef4.system.entry.js} +1 -1
  355. package/lib/duet/{p-f2c7e3ee.system.entry.js → p-7089e938.system.entry.js} +1 -1
  356. package/lib/duet/{p-adc02ebb.system.js → p-7132e6b1.system.js} +1 -1
  357. package/lib/duet/{p-296d890c.entry.js → p-73508ab7.entry.js} +1 -1
  358. package/lib/duet/p-7397dd4f.system.entry.js +4 -0
  359. package/lib/duet/{p-eecbc77f.system.entry.js → p-745b87a1.system.entry.js} +1 -1
  360. package/lib/duet/{p-38838777.system.entry.js → p-746cc1a2.system.entry.js} +1 -1
  361. package/lib/duet/{p-c1186d0d.entry.js → p-750e4ab4.entry.js} +1 -1
  362. package/lib/duet/{p-fcdf0b4f.entry.js → p-7732213d.entry.js} +1 -1
  363. package/lib/duet/{p-85ed8d2a.entry.js → p-7b28d664.entry.js} +1 -1
  364. package/lib/duet/{p-0b1f9ab1.entry.js → p-7b845013.entry.js} +1 -1
  365. package/lib/duet/{p-abbe0bdb.entry.js → p-7f2855e9.entry.js} +1 -1
  366. package/lib/duet/{p-ff81c192.system.entry.js → p-808c5e03.system.entry.js} +1 -1
  367. package/lib/duet/p-80bf7a6d.js +4 -0
  368. package/lib/duet/{p-7582d712.system.entry.js → p-8283b6dc.system.entry.js} +1 -1
  369. package/lib/duet/p-85023f68.entry.js +4 -0
  370. package/lib/duet/{p-e05bbc0f.entry.js → p-880bccc7.entry.js} +1 -1
  371. package/lib/duet/{p-a47b5cf0.system.entry.js → p-8810586f.system.entry.js} +2 -2
  372. package/lib/duet/{p-5c636299.system.entry.js → p-89363c87.system.entry.js} +1 -1
  373. package/lib/duet/{p-e89c1ca6.entry.js → p-89636372.entry.js} +1 -1
  374. package/lib/duet/{p-84c3c6a9.entry.js → p-8d42cd8e.entry.js} +1 -1
  375. package/lib/duet/{p-0ab42908.system.entry.js → p-8fa26acd.system.entry.js} +1 -1
  376. package/lib/duet/{p-a3ea8aa0.system.js → p-8fb46b02.system.js} +1 -1
  377. package/lib/duet/{p-12398ce3.entry.js → p-8fbb5ff5.entry.js} +1 -1
  378. package/lib/duet/p-9012c4d7.system.entry.js +4 -0
  379. package/lib/duet/{p-bcadf02c.system.entry.js → p-90448156.system.entry.js} +1 -1
  380. package/lib/duet/{p-6e9997df.system.entry.js → p-907af7da.system.entry.js} +1 -1
  381. package/lib/duet/p-9171868a.system.js +4 -0
  382. package/lib/duet/{p-58f230b9.entry.js → p-91ab1514.entry.js} +1 -1
  383. package/lib/duet/{p-8f0bdfa8.system.entry.js → p-935bb380.system.entry.js} +1 -1
  384. package/lib/duet/p-98c47715.entry.js +4 -0
  385. package/lib/duet/{p-6796f3c3.system.entry.js → p-990cd307.system.entry.js} +1 -1
  386. package/lib/duet/{p-ef3038cf.entry.js → p-9a099e32.entry.js} +1 -1
  387. package/lib/duet/p-9a68836b.entry.js +4 -0
  388. package/lib/duet/{p-9ddf4f25.entry.js → p-9a6959da.entry.js} +1 -1
  389. package/lib/duet/{p-777d0fdd.system.entry.js → p-9ac8d40d.system.entry.js} +1 -1
  390. package/lib/duet/{p-a652025e.system.entry.js → p-9ecf83ca.system.entry.js} +1 -1
  391. package/lib/duet/{p-53601652.entry.js → p-a19e945f.entry.js} +1 -1
  392. package/lib/duet/{p-9f6eba5f.system.entry.js → p-a28a52b8.system.entry.js} +1 -1
  393. package/lib/duet/{p-5a5d2bd5.system.entry.js → p-a331720c.system.entry.js} +2 -2
  394. package/lib/duet/{p-be76413c.system.entry.js → p-a607febe.system.entry.js} +1 -1
  395. package/lib/duet/{p-103e565a.system.entry.js → p-a7442f4e.system.entry.js} +1 -1
  396. package/lib/duet/p-a966bbcf.system.js +4 -0
  397. package/lib/duet/{p-9cf1f9b9.entry.js → p-aa75307b.entry.js} +1 -1
  398. package/lib/duet/{p-b31576e2.entry.js → p-abe3827d.entry.js} +1 -1
  399. package/lib/duet/{p-c7d0fd92.entry.js → p-accae6ec.entry.js} +1 -1
  400. package/lib/duet/p-ace83b4d.system.js +4 -0
  401. package/lib/duet/{p-32d67711.entry.js → p-ad14a7bb.entry.js} +1 -1
  402. package/lib/duet/{p-c0de9913.entry.js → p-ad570b3d.entry.js} +1 -1
  403. package/lib/duet/p-ad6ccb39.js +4 -0
  404. package/lib/duet/{p-839650fa.system.entry.js → p-aeb3d682.system.entry.js} +1 -1
  405. package/lib/duet/{p-9dc73fc9.system.entry.js → p-b09cf28d.system.entry.js} +2 -2
  406. package/lib/duet/{p-5610daf3.system.entry.js → p-b23fd2cf.system.entry.js} +1 -1
  407. package/lib/duet/{p-7da818b1.js → p-b25490a8.js} +1 -1
  408. package/lib/duet/{p-f7f9a565.system.entry.js → p-b58e595a.system.entry.js} +1 -1
  409. package/lib/duet/p-baaac8e6.system.entry.js +4 -0
  410. package/lib/duet/{p-c0ad7828.system.entry.js → p-bfaf639a.system.entry.js} +1 -1
  411. package/lib/duet/{p-96d506b1.entry.js → p-c1a87168.entry.js} +1 -1
  412. package/lib/duet/{p-9cbabc0b.system.entry.js → p-c27dc664.system.entry.js} +1 -1
  413. package/lib/duet/{p-578c23a4.system.entry.js → p-c51a586e.system.entry.js} +1 -1
  414. package/lib/duet/{p-f32df45c.entry.js → p-c797a3e6.entry.js} +1 -1
  415. package/lib/duet/{p-a195d9c1.entry.js → p-c97d9b65.entry.js} +1 -1
  416. package/lib/duet/{p-c282ebfd.entry.js → p-ccdecd17.entry.js} +1 -1
  417. package/lib/duet/p-d0b307cc.js +4 -0
  418. package/lib/duet/{p-39c9a066.system.entry.js → p-d2d74167.system.entry.js} +1 -1
  419. package/lib/duet/{p-b7706f3e.system.entry.js → p-d433e813.system.entry.js} +1 -1
  420. package/lib/duet/{p-144aab10.system.entry.js → p-d7d5874f.system.entry.js} +1 -1
  421. package/lib/duet/{p-c7fc62e7.system.entry.js → p-d8739243.system.entry.js} +1 -1
  422. package/lib/duet/{p-e30f0acf.entry.js → p-d93881ea.entry.js} +1 -1
  423. package/lib/duet/{p-b4f2405c.entry.js → p-da7ff7a2.entry.js} +1 -1
  424. package/lib/duet/{p-a142a88f.system.js → p-db398834.system.js} +1 -1
  425. package/lib/duet/{p-b5defe7d.entry.js → p-dbe48d3c.entry.js} +1 -1
  426. package/lib/duet/{p-00c65f9d.entry.js → p-dc172d1c.entry.js} +1 -1
  427. package/lib/duet/{p-73db1b4e.entry.js → p-dc332043.entry.js} +1 -1
  428. package/lib/duet/{p-0e638ebd.system.entry.js → p-ddc0706b.system.entry.js} +2 -2
  429. package/lib/duet/p-dde34236.entry.js +4 -0
  430. package/lib/duet/{p-8808de6e.system.entry.js → p-de531c22.system.entry.js} +1 -1
  431. package/lib/duet/{p-a15d9a7f.system.entry.js → p-dfb4edcc.system.entry.js} +1 -1
  432. package/lib/duet/{p-f743f28c.system.entry.js → p-e19b45d6.system.entry.js} +1 -1
  433. package/lib/duet/{p-67ce5fe7.system.entry.js → p-e2373985.system.entry.js} +2 -2
  434. package/lib/duet/{p-9c0eb1e6.entry.js → p-e2f6279e.entry.js} +1 -1
  435. package/lib/duet/{p-ec3ce240.entry.js → p-e39afbb1.entry.js} +1 -1
  436. package/lib/duet/{p-7677fb67.system.entry.js → p-e73a7c54.system.entry.js} +1 -1
  437. package/lib/duet/{p-fc168be9.system.entry.js → p-eaf7a202.system.entry.js} +1 -1
  438. package/lib/duet/{p-e4e4e4d7.system.entry.js → p-eb01f00b.system.entry.js} +1 -1
  439. package/lib/duet/{p-9aa64cd1.system.entry.js → p-eb19b715.system.entry.js} +2 -2
  440. package/lib/duet/{p-a1b74038.entry.js → p-eb817c52.entry.js} +1 -1
  441. package/lib/duet/{p-ce5b779c.system.entry.js → p-ed4b8ef4.system.entry.js} +1 -1
  442. package/lib/duet/{p-a388ed17.system.entry.js → p-f00388be.system.entry.js} +1 -1
  443. package/lib/duet/p-f033bc52.system.js +4 -0
  444. package/lib/duet/{p-e0308e1f.entry.js → p-f208d55c.entry.js} +1 -1
  445. package/lib/duet/{p-b9ea2688.system.entry.js → p-f3d5cc54.system.entry.js} +1 -1
  446. package/lib/duet/p-f57a788d.system.entry.js +4 -0
  447. package/lib/duet/{p-c327a6b9.entry.js → p-f7f0b74f.entry.js} +1 -1
  448. package/lib/duet/{p-1dcaf506.js → p-f92ce1f9.js} +1 -1
  449. package/lib/duet/p-fa69c713.system.entry.js +4 -0
  450. package/lib/duet/{p-297be33a.entry.js → p-fac03927.entry.js} +1 -1
  451. package/lib/duet/{p-0ee0acc5.entry.js → p-fe6123a8.entry.js} +1 -1
  452. package/lib/duet/{p-09f85d39.entry.js → p-feaa9ad0.entry.js} +1 -1
  453. package/lib/duet/{p-c70b69a7.system.entry.js → p-ff6049c7.system.entry.js} +1 -1
  454. package/lib/esm/{a11y-utils-056fbc86.js → a11y-utils-fcabbbe4.js} +1 -1
  455. package/lib/esm/{app-globals-2e3fbb8b.js → app-globals-df3febf1.js} +1 -1
  456. package/lib/esm/duet-action-button.entry.js +4 -4
  457. package/lib/esm/duet-alert.entry.js +4 -4
  458. package/lib/esm/duet-badge.entry.js +3 -3
  459. package/lib/esm/duet-banner.entry.js +4 -4
  460. package/lib/esm/duet-breadcrumb.entry.js +10 -19
  461. package/lib/esm/duet-breadcrumbs.entry.js +5 -5
  462. package/lib/esm/duet-button_2.entry.js +5 -5
  463. package/lib/esm/duet-callout.entry.js +3 -3
  464. package/lib/esm/duet-caption_4.entry.js +6 -6
  465. package/lib/esm/duet-card.entry.js +4 -4
  466. package/lib/esm/duet-checkbox.entry.js +2 -2
  467. package/lib/esm/duet-checkmark.entry.js +2 -2
  468. package/lib/esm/duet-chip.entry.js +3 -3
  469. package/lib/esm/duet-choice_2.entry.js +4 -4
  470. package/lib/esm/duet-collapsible.entry.js +17 -8
  471. package/lib/esm/duet-combobox.entry.js +4 -4
  472. package/lib/esm/duet-contact-card.entry.js +3 -3
  473. package/lib/esm/duet-cookie-consent.entry.js +2 -2
  474. package/lib/esm/duet-date-picker.entry.js +5 -5
  475. package/lib/esm/duet-divider_2.entry.js +3 -3
  476. package/lib/esm/duet-editable-table_3.entry.js +5 -5
  477. package/lib/esm/duet-empty-state.entry.js +2 -2
  478. package/lib/esm/duet-fieldset.entry.js +3 -3
  479. package/lib/esm/duet-file-chooser.entry.js +2 -2
  480. package/lib/esm/duet-footer.entry.js +4 -4
  481. package/lib/esm/duet-grid_2.entry.js +2 -2
  482. package/lib/esm/duet-header_2.entry.js +4 -4
  483. package/lib/esm/duet-hero.entry.js +15 -11
  484. package/lib/esm/duet-icon.entry.js +3 -3
  485. package/lib/esm/duet-indicator.entry.js +2 -2
  486. package/lib/esm/duet-input_2.entry.js +5 -5
  487. package/lib/esm/duet-layout.entry.js +2 -2
  488. package/lib/esm/duet-list_2.entry.js +2 -2
  489. package/lib/esm/duet-menu-bar-button.entry.js +2 -2
  490. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +2 -2
  491. package/lib/esm/duet-menu-bar-dropdown.entry.js +2 -2
  492. package/lib/esm/duet-menu-bar-item.entry.js +5 -5
  493. package/lib/esm/duet-menu-bar-link.entry.js +2 -2
  494. package/lib/esm/duet-menu-bar.entry.js +4 -4
  495. package/lib/esm/duet-modal.entry.js +6 -6
  496. package/lib/esm/duet-multiselect.entry.js +4 -4
  497. package/lib/esm/duet-nav.entry.js +3 -3
  498. package/lib/esm/duet-notification_2.entry.js +3 -3
  499. package/lib/esm/duet-number-input.entry.js +4 -4
  500. package/lib/esm/duet-overlay.entry.js +2 -2
  501. package/lib/esm/duet-page-heading.entry.js +3 -3
  502. package/lib/esm/duet-pagination_2.entry.js +4 -4
  503. package/lib/esm/duet-panel.entry.js +3 -3
  504. package/lib/esm/duet-phone-input.entry.js +4 -4
  505. package/lib/esm/duet-popup-menu_2.entry.js +4 -4
  506. package/lib/esm/duet-progress.entry.js +3 -3
  507. package/lib/esm/duet-promo-card.entry.js +4 -4
  508. package/lib/esm/duet-radio_2.entry.js +3 -3
  509. package/lib/esm/duet-range-slider.entry.js +2 -2
  510. package/lib/esm/duet-scrollable_3.entry.js +5 -5
  511. package/lib/esm/duet-section-layout.entry.js +1 -1
  512. package/lib/esm/duet-select.entry.js +3 -3
  513. package/lib/esm/duet-shaped-image.entry.js +2 -2
  514. package/lib/esm/duet-share-chart-item.entry.js +1 -1
  515. package/lib/esm/duet-share-chart.entry.js +5 -5
  516. package/lib/esm/duet-show-more.entry.js +3 -3
  517. package/lib/esm/duet-slideout-lang.entry.js +3 -3
  518. package/lib/esm/duet-slideout-link.entry.js +5 -5
  519. package/lib/esm/duet-slideout-panel-dropdown.entry.js +2 -2
  520. package/lib/esm/duet-slideout-panel.entry.js +6 -6
  521. package/lib/esm/duet-slideout.entry.js +6 -6
  522. package/lib/esm/duet-status-icon.entry.js +1 -1
  523. package/lib/esm/duet-step_2.entry.js +3 -3
  524. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +2 -2
  525. package/lib/esm/duet-submenu-bar-dropdown.entry.js +2 -2
  526. package/lib/esm/duet-submenu-bar-item.entry.js +5 -5
  527. package/lib/esm/duet-submenu-bar-link.entry.js +2 -2
  528. package/lib/esm/duet-submenu-bar.entry.js +3 -3
  529. package/lib/esm/duet-textarea.entry.js +4 -4
  530. package/lib/esm/duet-toggle.entry.js +2 -2
  531. package/lib/esm/duet-toolbar-dropdown-link.entry.js +2 -2
  532. package/lib/esm/duet-toolbar-dropdown.entry.js +2 -2
  533. package/lib/esm/duet-toolbar-item.entry.js +5 -5
  534. package/lib/esm/duet-toolbar-link.entry.js +2 -2
  535. package/lib/esm/duet-toolbar.entry.js +2 -2
  536. package/lib/esm/duet-tooltip-button_2.entry.js +3 -3
  537. package/lib/esm/duet-tooltip.entry.js +3 -3
  538. package/lib/esm/duet-tray.entry.js +3 -3
  539. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  540. package/lib/esm/duet-upload-item.entry.js +4 -4
  541. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  542. package/lib/esm/duet.js +4 -4
  543. package/lib/esm/{errorcodes.utils-1673d536.js → errorcodes.utils-2bbac3d7.js} +1 -1
  544. package/lib/esm/{focus-utils-ef5827e9.js → focus-utils-86d0936a.js} +1 -1
  545. package/lib/esm/{index-917bdca5.js → index-c99b5a3a.js} +1 -1
  546. package/lib/esm/{language-utils-fc71dceb.js → language-utils-0881a2a9.js} +1 -1
  547. package/lib/esm/loader.js +4 -4
  548. package/lib/esm/{slot-utils-e20aeb67.js → slot-utils-a65ef46f.js} +1 -1
  549. package/lib/esm/{themeable-component-5aa6dce7.js → themeable-component-e3661133.js} +1 -1
  550. package/lib/esm/{token-utils-06ae5c10.js → token-utils-cf052bc0.js} +3 -3
  551. package/lib/esm-es5/{a11y-utils-056fbc86.js → a11y-utils-fcabbbe4.js} +1 -1
  552. package/lib/esm-es5/{app-globals-2e3fbb8b.js → app-globals-df3febf1.js} +1 -1
  553. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  554. package/lib/esm-es5/duet-alert.entry.js +1 -1
  555. package/lib/esm-es5/duet-badge.entry.js +1 -1
  556. package/lib/esm-es5/duet-banner.entry.js +1 -1
  557. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  558. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  559. package/lib/esm-es5/duet-button_2.entry.js +2 -2
  560. package/lib/esm-es5/duet-callout.entry.js +1 -1
  561. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  562. package/lib/esm-es5/duet-card.entry.js +1 -1
  563. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  564. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  565. package/lib/esm-es5/duet-chip.entry.js +1 -1
  566. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  567. package/lib/esm-es5/duet-collapsible.entry.js +2 -2
  568. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  569. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  570. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  571. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  572. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  573. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  574. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  575. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  576. package/lib/esm-es5/duet-file-chooser.entry.js +1 -1
  577. package/lib/esm-es5/duet-footer.entry.js +1 -1
  578. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  579. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  580. package/lib/esm-es5/duet-hero.entry.js +1 -1
  581. package/lib/esm-es5/duet-icon.entry.js +1 -1
  582. package/lib/esm-es5/duet-indicator.entry.js +1 -1
  583. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  584. package/lib/esm-es5/duet-layout.entry.js +1 -1
  585. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  586. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  587. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  588. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  589. package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
  590. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  591. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  592. package/lib/esm-es5/duet-modal.entry.js +1 -1
  593. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  594. package/lib/esm-es5/duet-nav.entry.js +1 -1
  595. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  596. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  597. package/lib/esm-es5/duet-overlay.entry.js +1 -1
  598. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  599. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  600. package/lib/esm-es5/duet-panel.entry.js +1 -1
  601. package/lib/esm-es5/duet-phone-input.entry.js +2 -2
  602. package/lib/esm-es5/duet-popup-menu_2.entry.js +1 -1
  603. package/lib/esm-es5/duet-progress.entry.js +1 -1
  604. package/lib/esm-es5/duet-promo-card.entry.js +1 -1
  605. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  606. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  607. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  608. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  609. package/lib/esm-es5/duet-select.entry.js +1 -1
  610. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  611. package/lib/esm-es5/duet-share-chart-item.entry.js +1 -1
  612. package/lib/esm-es5/duet-share-chart.entry.js +1 -1
  613. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  614. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  615. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  616. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +2 -2
  617. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  618. package/lib/esm-es5/duet-slideout.entry.js +1 -1
  619. package/lib/esm-es5/duet-status-icon.entry.js +1 -1
  620. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  621. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  622. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  623. package/lib/esm-es5/duet-submenu-bar-item.entry.js +1 -1
  624. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  625. package/lib/esm-es5/duet-submenu-bar.entry.js +2 -2
  626. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  627. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  628. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  629. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  630. package/lib/esm-es5/duet-toolbar-item.entry.js +1 -1
  631. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  632. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  633. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  634. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  635. package/lib/esm-es5/duet-tray.entry.js +1 -1
  636. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  637. package/lib/esm-es5/duet-upload-item.entry.js +2 -2
  638. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  639. package/lib/esm-es5/duet.js +1 -1
  640. package/lib/esm-es5/{errorcodes.utils-1673d536.js → errorcodes.utils-2bbac3d7.js} +1 -1
  641. package/lib/esm-es5/{focus-utils-ef5827e9.js → focus-utils-86d0936a.js} +1 -1
  642. package/lib/esm-es5/{index-917bdca5.js → index-c99b5a3a.js} +1 -1
  643. package/lib/esm-es5/{language-utils-fc71dceb.js → language-utils-0881a2a9.js} +1 -1
  644. package/lib/esm-es5/loader.js +1 -1
  645. package/lib/esm-es5/{slot-utils-e20aeb67.js → slot-utils-a65ef46f.js} +1 -1
  646. package/lib/esm-es5/{themeable-component-5aa6dce7.js → themeable-component-e3661133.js} +1 -1
  647. package/lib/esm-es5/{token-utils-06ae5c10.js → token-utils-cf052bc0.js} +1 -1
  648. package/lib/types/components/duet-breadcrumbs/duet-breadcrumb.d.ts +2 -4
  649. package/lib/types/components/duet-hero/duet-hero.d.ts +1 -0
  650. package/lib/types/components.d.ts +2 -2
  651. package/package.json +4 -4
  652. package/lib/duet/p-07eaae93.js +0 -4
  653. package/lib/duet/p-0faea567.js +0 -4
  654. package/lib/duet/p-1099e3c1.entry.js +0 -4
  655. package/lib/duet/p-202295c7.system.entry.js +0 -4
  656. package/lib/duet/p-2a327afb.system.js +0 -4
  657. package/lib/duet/p-314579ab.system.entry.js +0 -4
  658. package/lib/duet/p-3ad777ed.system.js +0 -4
  659. package/lib/duet/p-3b48325f.entry.js +0 -4
  660. package/lib/duet/p-51680ed4.system.js +0 -4
  661. package/lib/duet/p-7c726fa5.entry.js +0 -4
  662. package/lib/duet/p-88433a46.system.entry.js +0 -4
  663. package/lib/duet/p-90f215e3.system.entry.js +0 -4
  664. package/lib/duet/p-931c3e0e.system.entry.js +0 -4
  665. package/lib/duet/p-9ecf394a.system.js +0 -4
  666. package/lib/duet/p-a2a4a889.entry.js +0 -4
  667. package/lib/duet/p-d329f24b.system.entry.js +0 -4
  668. package/lib/duet/p-dc68a5b4.entry.js +0 -4
  669. package/lib/duet/p-deec5fa6.entry.js +0 -4
  670. package/lib/duet/p-e63f5ff5.js +0 -4
  671. package/lib/duet/p-e78a7199.entry.js +0 -4
  672. package/lib/duet/p-f33021ec.system.entry.js +0 -4
  673. package/lib/duet/p-f587ebfc.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,c,h as t,H as o,g as i}from"./p-682a0ad1.js";import{i as d}from"./p-3f59cd08.js";import{a as h}from"./p-24954951.js";import{c as r}from"./p-5e59e970.js";import{i as s,h as a,s as u,u as n,f as l}from"./p-a45e3f8b.js";import{g as b,a as p,c as g,d as m}from"./p-7da818b1.js";import{h as f,c as v}from"./p-f587ebfc.js";import"./p-9c3c64b9.js";const k=class{constructor(t){e(this,t),this.duetChoiceReady=c(this,"duetChoiceReady",7),this.duetChange=c(this,"duetChange",7),this.duetFocus=c(this,"duetFocus",7),this.duetBlur=c(this,"duetBlur",7),this.hasHeader=!1,this.choiceId=r("DuetChoice"),this.expandId=r("DuetChoiceExpand"),this.headerId=r("DuetChoiceHeader"),this.infoButtonId=r("DuetChoiceInfoButton"),this.onMouseEnter=()=>{this.isHovering=!0},this.onMouseLeave=()=>{this.isHovering=!1},this.onClick=e=>{this.toggleChecked(e)},this.handleKeyDown=e=>{s(e)&&this.toggleChecked(e),a(e)&&this.hasInfo&&this.toggleInfo()},this.onChange=()=>{this.checked=this.nativeInput.checked||!1,this.duetChange.emit({checked:this.checked,value:this.value,component:"duet-choice"})},this.onBlur=e=>{this.duetBlur.emit({originalEvent:e,checked:this.checked,value:this.value,component:"duet-choice"})},this.onFocus=e=>{this.duetFocus.emit({originalEvent:e,checked:this.checked,value:this.value,component:"duet-choice"})},this.toggleChecked=e=>{e.preventDefault(),e.stopPropagation(),this.getDisabled()||"radio"===this.type&&this.checked||(this.checked=!this.checked,this.duetChange.emit({originalEvent:e,checked:this.checked,value:this.value,component:"duet-choice"}))},this.toggleInfo=()=>{this.isInfoOpen=!this.isInfoOpen,this.isInfoOpen&&setTimeout((()=>{var e;null===(e=this.infoContainer)||void 0===e||e.focus()}),150)},this.isHovering=!1,this.isInfoOpen=!1,this.theme="",this.label="label",this.accessibleLabelInfoButtonDefaults=h,this.accessibleLabelInfoButton=b(this.accessibleLabelInfoButtonDefaults),this.accessibleActiveDescendant=void 0,this.accessibleControls=void 0,this.accessibleOwns=void 0,this.accessibleDescribedBy=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.caption="",this.value=void 0,this.type="checkbox",this.name=void 0,this.checked=!1,this.collapsible=!1,this.collapsibleForceExpanded=!1,this.margin="auto",this.icon="",this.expand=!1,this.padding="auto",this.identifier=void 0,this.groupDirection=void 0,this.groupDisabled=void 0,this.groupResponsive=void 0,this.disabled=!1,this.required=!1,this.infoLabelDefaults={fi:"Lisätietoja vaihtoehdosta",en:"More information about",sv:"Mera information om"},this.infoLabel=b(this.infoLabelDefaults,p()),this.collapsibleNotificationDefaults={fi:"Tämä valinta sisältää lisätietoja, jotka avautuivat alle",en:"This choice has additional information opened below",sv:"Det här val har mer information som öppnades nedan"},this.collapsibleNotification=b(this.collapsibleNotificationDefaults,p())}componentWillLoad(){d(this),this.hasInfo=f(this.element,"info"),this.hasHeader=f(this.element,"header"),this.hasAdditional=f(this.element,"additional"),this.hasLabel=f(this.element,"label"),this.hasBeforeText=f(this.element,"before-text"),this.duetChoiceReady.emit()}connectedCallback(){g(this,[{prop:"accessibleLabelInfoButton",defaults:"accessibleLabelInfoButtonDefaults"},{prop:"infoLabel",defaults:"infoLabelDefaults"},{prop:"collapsibleNotification",defaults:"collapsibleNotificationDefaults"}]),u(this),this.duetChoiceReady.emit()}disconnectedCallback(){m(this),n(this)}async setFocus(e){this.nativeInput.focus(e)}async toggleInfoMethod(){this.isInfoOpen=!this.isInfoOpen}handleEscape(e){l(e)&&this.isInfoOpen&&(this.isInfoOpen=!1,this.infoButtonEl&&this.infoButtonEl.focus())}isCollapsibleAnnounceable(){if(!this.collapsible||!this.getExpanded())return!1;const e=Array.from(this.element.querySelectorAll(`#${this.choiceId}-collapsible-content > *`)||[]),c=["duet-paragraph","duet-heading","duet-fieldset"];return e.every((e=>c.includes(e.tagName.toLowerCase())))}getAriaDescribedby(){return this.accessibleDescribedBy?this.accessibleDescribedBy:(this.collapsible||this.hasInfo)&&this.getExpanded()?this.hasHeader?this.headerId:this.isCollapsibleAnnounceable()?this.expandId:`${this.choiceId}-collapsible-notification`:null}getDisabled(){return this.disabled||this.groupDisabled}getExpanded(){return this.checked||this.collapsibleForceExpanded}getClassNames(){return this.hasInfo&&!this.collapsible?{checked:this.checked,"duet-choice-card-info":!0,"duet-choice-card-info-expanded":this.isInfoOpen,"duet-choice-card-collapsed":!this.isInfoOpen,"duet-theme-turva":"turva"===this.theme}:!this.hasInfo&&this.collapsible?{checked:this.checked,"duet-choice-card-collapsible":!0,"duet-choice-card-collapsible-expanded":this.getExpanded(),"duet-choice-card-collapsed":!this.getExpanded(),"duet-choice-card-collapsible-disabled":this.getDisabled(),"duet-theme-turva":"turva"===this.theme}:{checked:this.checked,"duet-choice-default-slot":!0}}render(){const e=this.identifier||this.choiceId;return t(o,{class:{horizontal:"horizontal"===this.groupDirection&&!this.groupResponsive,"horizontal-responsive":"horizontal"===this.groupDirection&&this.groupResponsive,"duet-m-0":"none"===this.margin,"duet-expand":this.expand,"duet-theme-turva":"turva"===this.theme,"no-hover":this.isHovering,disabled:this.getDisabled()}},t("div",{class:{"duet-choice-card-flextainer":!0,"duet-theme-turva":"turva"===this.theme}},t("div",{class:{"duet-choice-card":!0,"has-icon":!!this.icon,"has-info":this.hasInfo,checked:this.checked,info:this.isInfoOpen,collapsible:this.collapsible,"collapsible-force-expanded":this.collapsibleForceExpanded,"duet-p-0":"none"===this.padding}},t("input",{class:"duet-choice-input",type:this.type,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,disabled:this.getDisabled(),required:this.required,id:e,name:this.name,value:this.value,checked:this.checked,"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-owns":this.accessibleOwns,"aria-describedby":this.getAriaDescribedby(),onKeyDown:this.handleKeyDown,ref:e=>this.nativeInput=e}),t("label",{htmlFor:e,class:{"duet-choice-label":!0,"has-before-text":this.hasBeforeText},onClick:this.onClick},this.hasBeforeText&&t("slot",{name:"before-text"}),this.icon&&t("div",{class:"duet-choice-card-icon"},t("duet-icon",{margin:"none",size:"small",name:this.icon,color:"currentColor"})),t("div",{class:"duet-choice-card-text"},t("div",null,this.hasLabel?t("slot",{name:"label"}):this.label),this.caption&&t("div",null,t("duet-spacer",{size:"xx-small"}),t("duet-caption",{margin:"none",selected:this.checked},this.caption)),this.hasAdditional&&t("div",null,t("duet-spacer",{size:"xx-small"}),t("slot",{name:"additional"}))),t("div",null,t("div",{class:{"duet-checkmark-container":!0,"duet-checkmark-radio":"radio"===this.type}},this.checked&&t("div",{class:"duet-checkmark"}))))),this.hasInfo&&!this.collapsible&&t("button",{ref:e=>this.infoButtonEl=e,id:this.infoButtonId,class:{"duet-choice-info-toggle":!0,"duet-theme-turva":"turva"===this.theme},onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onClick:this.toggleInfo,disabled:this.getDisabled(),"aria-expanded":this.isInfoOpen?"true":"false","aria-label":`${this.infoLabel} ${this.label}`,"aria-controls":this.expandId,tabindex:"radio"!==this.type||this.checked?"0":"-1",type:"button",onKeyUp:e=>this.handleEscape(e)},t("div",{class:"duet-choice-info-icon"},t("duet-icon",{icon:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M13.5 17.25A2.252 2.252 0 0 1 11.25 15v-3.75h-.75a.75.75 0 0 1 0-1.5h.75c.827 0 1.5.673 1.5 1.5V15c0 .414.336.75.75.75h.75a.75.75 0 0 1 0 1.5z"/><circle cx="11.625" cy="7.125" r="1.125"/><path d="M12 24C5.383 24 0 18.617 0 12S5.383 0 12 0s12 5.383 12 12-5.383 12-12 12zm0-22.5C6.21 1.5 1.5 6.21 1.5 12S6.21 22.5 12 22.5 22.5 17.79 22.5 12 17.79 1.5 12 1.5z"/></svg>',margin:"none",size:"small",color:"currentColor"})))),this.collapsible&&t("span",{id:`${this.choiceId}-collapsible-notification`,hidden:!0},this.collapsibleNotification),this.collapsible||this.hasInfo?t("div",{class:this.getClassNames(),id:this.expandId},t("span",{class:{"duet-choice-section-visible":this.collapsible?this.getExpanded():this.isInfoOpen,"duet-choice-section-hidden":this.collapsible?!this.getExpanded():!this.isInfoOpen}},t("span",{id:this.headerId},t("slot",{name:"header"})),this.hasInfo?t("span",{ref:e=>this.infoContainer=e,tabindex:"-1",class:"duet-choice-info-container",onKeyUp:e=>this.handleEscape(e)},t("span",null,t("slot",{name:"info"})),t("slot",null)):t("span",{id:`${this.choiceId}-collapsible-content`},t("slot",null)))):null)}get element(){return i(this)}};k.style='*.sc-duet-choice,*.sc-duet-choice::after,*.sc-duet-choice::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-choice-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;flex-direction:column;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}.sc-duet-choice-h:last-child,.sc-duet-choice-h:last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){.sc-duet-choice-h{width:100%}}.duet-expand.sc-duet-choice-h{width:100% !important}.duet-m-0.sc-duet-choice-h{margin:0 !important}.duet-fixed.sc-duet-choice-h{width:auto !important}.vertical.sc-duet-choice-h{margin-right:0 !important}@media (min-width: 48em){.horizontal.sc-duet-choice-h{margin-bottom:0 !important}}@media (min-width: 48em){.horizontal-responsive.sc-duet-choice-h{margin-bottom:0 !important;margin-right:16px !important}.horizontal-responsive.sc-duet-choice-h:last-child,.horizontal-responsive.sc-duet-choice-h:last-of-type{margin-right:0 !important}}.sc-duet-choice-h:last-child:not(:only-child){margin-right:0 !important}.duet-choice-card.sc-duet-choice{position:relative;display:block;width:100%;min-width:8rem;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;-webkit-hyphens:auto;hyphens:auto;line-height:1.1;color:rgb(8, 42, 77) !important;text-align:left;background:rgb(255, 255, 255);border-width:1px;border-radius:8px}.duet-choice-card.duet-p-0.sc-duet-choice{padding:0 !important}.duet-choice-card.duet-m-0.sc-duet-choice{margin:0 !important}.duet-theme-turva.sc-duet-choice .duet-choice-card.sc-duet-choice{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) !important}.duet-choice-card-flextainer.sc-duet-choice{display:flex}.duet-choice-label.sc-duet-choice{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:flex;gap:12px;align-items:center;justify-content:flex-start;width:100%;height:100%;min-height:3.875rem;padding:calc(1rem + 1px);font-size:1rem;font-weight:600;text-decoration:none;word-break:break-word;cursor:pointer;border:1px solid rgb(212, 223, 229);border-radius:8px;transition:background-color 150ms ease, border-color 300ms ease}.duet-choice-label.has-before-text.sc-duet-choice .duet-choice-card-icon.sc-duet-choice,.duet-choice-label.has-before-text.sc-duet-choice .duet-choice-card-text.sc-duet-choice{align-self:flex-start;margin-top:0.25rem}.duet-choice-label.sc-duet-choice>div.sc-duet-choice:last-child{flex:1;align-self:flex-start;justify-self:flex-end;margin-top:0.25rem}.has-info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-top-right-radius:0;border-bottom-right-radius:0}.info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-bottom-right-radius:0;border-bottom-left-radius:0}.duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:rgb(222, 224, 228)}.duet-theme-turva.sc-duet-choice .info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:rgb(222, 224, 228)}.duet-choice-label.sc-duet-choice:active{opacity:0.75;transition:none !important}.checked.sc-duet-choice>.duet-choice-label.sc-duet-choice{padding:1rem;background:rgb(240, 247, 250);border-color:rgb(0, 119, 179) !important;border-width:2px}.checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(0, 119, 179)}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice{background:rgb(245, 247, 250);border-color:rgb(23, 28, 58) !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(198, 12, 48)}.checked.collapsible.sc-duet-choice>.duet-choice-label.sc-duet-choice,.collapsible-force-expanded.collapsible.sc-duet-choice>.duet-choice-label.sc-duet-choice{padding-bottom:calc(1rem + 2px) !important;border-bottom:0 !important;border-bottom-right-radius:0;border-bottom-left-radius:0}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){border-color:rgb(0, 119, 179);border-width:2px}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked) .duet-checkmark-container.sc-duet-choice{border-color:rgb(127, 150, 165)}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){border-color:rgb(23, 28, 58)}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked) .duet-checkmark-container.sc-duet-choice{border-color:rgb(143, 147, 158)}.duet-theme-turva .info .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){border-color:rgb(143, 147, 158)}.sc-duet-choice-h:not(.no-hover):not(.disabled):not([checked]):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){padding:1rem}input.sc-duet-choice:focus{outline:0}input.sc-duet-choice:checked:focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3)}input.sc-duet-choice:not(:checked):focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva.sc-duet-choice input.sc-duet-choice:checked:focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2)}.duet-theme-turva.sc-duet-choice input.sc-duet-choice:not(:checked):focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{color:rgb(98, 121, 138) !important;cursor:default !important;background:rgb(245, 248, 250) !important;border-color:rgb(212, 223, 229) !important}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-choice-card-icon.sc-duet-choice{color:rgb(98, 121, 138)}.duet-theme-turva.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-choice-card-icon.sc-duet-choice{color:rgb(143, 147, 158)}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-checkmark.sc-duet-choice{border-color:rgb(98, 121, 138) !important}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice:hover,input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice:active,input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice:focus{box-shadow:none !important;opacity:1 !important;transition:none !important}.duet-theme-turva.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{color:rgb(143, 147, 158) !important;background:rgb(245, 247, 250) !important;border-color:rgb(222, 224, 228) !important}.duet-theme-turva.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-checkmark.sc-duet-choice{border-color:rgb(143, 147, 158) !important}.checked.sc-duet-choice>input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{border-color:rgb(127, 150, 165) !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{border-color:rgb(143, 147, 158) !important}.duet-checkmark-container.sc-duet-choice{position:relative;width:20px;height:20px;margin-left:auto;border:1px solid rgb(127, 150, 165);border-radius:4px;transition:border 300ms ease}.duet-theme-turva.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(143, 147, 158)}.checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(0, 119, 179);border-color:rgb(0, 119, 179);transition:none}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(23, 28, 58);border-color:rgb(23, 28, 58) !important}.duet-checkmark-container.duet-checkmark-radio.sc-duet-choice{border-radius:50%}[disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(181, 198, 208) !important;border-color:rgb(181, 198, 208) !important}.duet-theme-turva.sc-duet-choice [disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(199, 202, 207) !important}.checked.sc-duet-choice>[disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(181, 198, 208) !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>[disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(199, 202, 207) !important;border-color:rgb(199, 202, 207) !important}.duet-checkmark.sc-duet-choice{position:absolute;top:10px;left:3px;width:5.3333333333px;height:11.8518518519px;border-top:2px solid rgb(255, 255, 255);border-right:2px solid rgb(255, 255, 255);opacity:1;transform:scaleX(-1) rotate(135deg) translateZ(0);transform-origin:left top;animation-name:duet-checkmark;animation-duration:600ms;animation-timing-function:ease-out;animation-fill-mode:forwards}@keyframes duet-checkmark{0%{width:0;height:0;opacity:1}20%{width:5.3333333333px;height:0;opacity:1}40%,100%{width:5.3333333333px;height:11.8518518519px;opacity:1}}.duet-choice-card-icon.sc-duet-choice{position:relative;color:rgb(0, 119, 179)}.duet-theme-turva.sc-duet-choice .duet-choice-card-icon.sc-duet-choice{color:rgb(164, 4, 40)}.duet-choice-card-icon.sc-duet-choice duet-icon.sc-duet-choice{display:block}.duet-choice-section-hidden.sc-duet-choice{display:none}.duet-choice-card-info.duet-choice-card-collapsed.sc-duet-choice,.duet-choice-card-collapsed.duet-choice-card-collapsible.sc-duet-choice{position:relative;width:auto;padding:0 !important;background:unset !important;border:0;border-radius:0}.duet-choice-card-info.sc-duet-choice,.duet-choice-card-collapsible.sc-duet-choice{padding:20px !important;position:relative;width:100%;font-weight:400;color:rgb(8, 42, 77);border:1px solid rgb(212, 223, 229);border-top:0;border-radius:0 0 8px 8px;transition:border-color 300ms ease}@media (min-width: 36em){.duet-choice-card-info.sc-duet-choice,.duet-choice-card-collapsible.sc-duet-choice{padding:28px !important}}.duet-theme-turva.sc-duet-choice .duet-choice-card-info.sc-duet-choice,.duet-theme-turva.sc-duet-choice .duet-choice-card-collapsible.sc-duet-choice{color:rgb(23, 28, 58);border-color:rgb(23, 28, 58)}.checked.sc-duet-choice>.duet-choice-card-info.sc-duet-choice,.checked.sc-duet-choice>.duet-choice-card-collapsible.sc-duet-choice{display:block}.duet-choice-card-info-expanded.sc-duet-choice,.duet-choice-card-collapsible-expanded.sc-duet-choice{display:block}.duet-choice-card-collapsible.sc-duet-choice{background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-top:0}.duet-choice-card-collapsible.duet-theme-turva.sc-duet-choice{background:rgb(255, 255, 255);border-color:rgb(222, 224, 228)}.duet-choice-card-collapsible.checked.sc-duet-choice{padding:19px !important;padding-top:20px !important;border-color:rgb(0, 119, 179);border-width:2px}@media (min-width: 36em){.duet-choice-card-collapsible.checked.sc-duet-choice{padding:27px !important;padding-top:28px !important}}.duet-choice-card-collapsible.checked.duet-theme-turva.sc-duet-choice{border-color:rgb(23, 28, 58)}.duet-choice-card-collapsible-disabled.sc-duet-choice{background:rgb(245, 248, 250);border-color:rgb(212, 223, 229)}.duet-choice-card-collapsible-disabled.checked.sc-duet-choice{border-color:rgb(212, 223, 229)}.duet-choice-card-collapsible-disabled.duet-theme-turva.sc-duet-choice{background:rgb(245, 247, 250);border-color:rgb(222, 224, 228)}.duet-choice-card-collapsible-disabled.duet-theme-turva.checked.sc-duet-choice{border-color:rgb(222, 224, 228)}.duet-choice-card-info.sc-duet-choice{font-size:0.875rem;line-height:1.5;background:rgb(245, 248, 250);transition:150ms ease-out}.duet-choice-card-info.duet-theme-turva.sc-duet-choice{background:rgb(245, 247, 250);border-color:rgb(222, 224, 228)}.duet-choice-card-info.duet-choice-card-collapsed .duet-choice-info-container.sc-duet-choice-s>*,.duet-choice-card-info.duet-choice-card-collapsed .duet-choice-info-container .sc-duet-choice-s>*{display:none}.user-is-tabbing.sc-duet-choice-h .duet-choice-info-container.sc-duet-choice:focus{display:block;outline:none;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.disabled.sc-duet-choice-h .duet-choice-card-collapsible.sc-duet-choice{border-color:rgb(127, 150, 165)}.disabled.sc-duet-choice-h .duet-choice-card-collapsible.duet-theme-turva.sc-duet-choice{border-color:rgb(143, 147, 158)}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-collapsible.sc-duet-choice:not(.checked){border-color:rgb(0, 119, 179);border-width:2px}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-collapsible.sc-duet-choice:not(.checked){border-color:rgb(143, 147, 158)}[collapsible-force-expanded].sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-collapsible.sc-duet-choice:not(.checked){padding:19px !important;padding-top:20px !important}@media (min-width: 36em){[collapsible-force-expanded].sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-collapsible.sc-duet-choice:not(.checked){padding:27px !important;padding-top:28px !important}}.duet-choice-info-toggle.sc-duet-choice{display:flex;flex-shrink:0;align-items:flex-start;justify-content:center;width:57.6px;padding-top:1.25rem;cursor:pointer;background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-left:0 none;border-top-right-radius:8px;border-bottom-right-radius:8px;-webkit-appearance:none;appearance:none}.duet-choice-info-toggle[aria-expanded=true].sc-duet-choice{background:rgb(245, 248, 250);border-bottom-color:transparent;border-bottom-right-radius:0}.duet-theme-turva.sc-duet-choice .duet-choice-info-toggle[aria-expanded=true].sc-duet-choice{background:rgb(245, 247, 250)}.duet-choice-info-toggle[disabled].sc-duet-choice{pointer-events:none;background:rgb(245, 248, 250) !important;border-color:rgb(212, 223, 229) !important}.duet-choice-info-toggle[disabled].sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(127, 150, 165) !important}.duet-choice-info-toggle[disabled].duet-theme-turva.sc-duet-choice{background:rgb(245, 247, 250) !important;border-color:rgb(222, 224, 228) !important}.duet-choice-info-toggle[disabled].duet-theme-turva.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(143, 147, 158) !important}.duet-choice-info-toggle.sc-duet-choice:focus{outline:none}.user-is-tabbing.sc-duet-choice-h .duet-choice-info-toggle.sc-duet-choice:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.user-is-tabbing.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.checked.sc-duet-choice+.duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(0, 119, 179) !important}.duet-choice-info-toggle.sc-duet-choice duet-icon.sc-duet-choice{display:block}.duet-choice-info-toggle.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(0, 119, 179)}.duet-theme-turva.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(198, 12, 48)}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(127, 150, 165)}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(143, 147, 158)}.duet-choice-input.sc-duet-choice{position:absolute !important;width:100%;height:100%;opacity:0}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .duet-choice-card.sc-duet-choice{color:#172a3b !important}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:#b2c2cd}.info .duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:#b2c2cd}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice{background:#fdf7f2;border-color:#172a3b !important}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:#e61740}.duet-choice-label .duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:#172a3b;border-color:#172a3b !important}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.duet-choice-card-info.sc-duet-choice,.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.duet-choice-card-collapsible.sc-duet-choice{color:#172a3b;border-color:#172a3b}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.duet-choice-card-collapsible.sc-duet-choice{border-color:#b2c2cd}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.duet-choice-card-collapsible.checked.sc-duet-choice{border-color:#172a3b}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.duet-choice-card-info.sc-duet-choice{background:#fdf7f2;border-color:#b2c2cd}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:#7891a4}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.duet-choice-info-toggle.sc-duet-choice{border-color:#b2c2cd}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.duet-choice-info-toggle[aria-expanded=true].sc-duet-choice{background:#fdf7f2;border-bottom-color:transparent}.duet-theme-turva2.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-theme-turva.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){border-color:#172a3b}.duet-theme-turva2.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-theme-turva.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked) .duet-checkmark-container.sc-duet-choice{border-color:#7891a4}';const x=class{constructor(c){e(this,c),this.choiceGroupName="duet-choice-group",this.choices=new Set,this.childObserverCallback=e=>{e.some((e=>{var c;return(null===(c=e.removedNodes)||void 0===c?void 0:c.length)>0&&Array.from(e.removedNodes.values()).some((e=>"duet-choice"===e.nodeName.toLowerCase()))}))&&this.updateChoices()},this.onSelect=e=>{if("duet-choice"!==e.detail.component)return;const c=e.target;c&&this.choices.has(c)&&(this.value=c.value)},this.onChoiceReady=()=>{this.updateChoices()},this.direction="vertical",this.margin="auto",this.theme="",this.error="",this.name=void 0,this.label="Label",this.labelHidden=!1,this.caption=void 0,this.tooltip=void 0,this.tooltipDirection="auto",this.responsive=!1,this.breakpoint="small",this.value=void 0,this.disabled=void 0,this.required=!1,this.accessibleLiveError="polite"}removeDisabledAttributeWhenFalse(){this.disabled||this.element.removeAttribute("disabled")}async connectedCallback(){this.childObserver=new MutationObserver(this.childObserverCallback.bind(this)),this.childObserver.observe(this.element,{childList:!0,subtree:!0}),this.setInitialValue(),this.updateChoices()}disconnectedCallback(){this.childObserver&&(this.childObserver.disconnect(),this.childObserver=void 0)}componentWillLoad(){d(this),this.removeDisabledAttributeWhenFalse(),v(this.element,"tooltip","duet-tooltip",1,!0)}setInitialValue(){void 0===this.initialValue&&(this.initialValue=this.value)}async getInitialValue(){return this.initialValue}async updateChoices(){var e;const c=null!==(e=this.value)&&void 0!==e?e:this.initialValue;let t=!1;this.choices.clear(),this.element.querySelectorAll("duet-choice").forEach((e=>{e.closest("duet-choice-group")===this.element&&this.choices.add(e)}));for(const e of Array.from(this.choices))e.name=this.name,e.required=this.required,e.groupDisabled=this.disabled,e.groupDirection=this.direction,e.groupResponsive=this.responsive,t||e.value!==c?e.checked=!1:(t=!0,e.checked=!0,void 0===this.value&&(this.value=c));t||(this.value=void 0)}render(){return t(o,{onDuetChange:this.onSelect,onDuetChoiceReady:this.onChoiceReady,class:{horizontal:"horizontal"===this.direction,"duet-choice-group-breakpoint-x-small":this.responsive&&"x-small"===this.breakpoint,"duet-choice-group-breakpoint-small":this.responsive&&"small"===this.breakpoint,"duet-choice-group-breakpoint-medium":this.responsive&&"medium"===this.breakpoint,"duet-choice-group-breakpoint-large":this.responsive&&"large"===this.breakpoint,"duet-choice-group-breakpoint-x-large":this.responsive&&"x-large"===this.breakpoint}},t("duet-fieldset",{label:this.label,labelHidden:this.labelHidden,compactLabel:!0,caption:this.caption,error:this.error,margin:this.margin,theme:this.theme,"accessible-live-error":this.accessibleLiveError},this.tooltip&&t("duet-tooltip",{slot:"tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),t("slot",{name:"tooltip"}),t("div",{class:{[this.choiceGroupName]:!0,"duet-no-stacking":!this.responsive}},t("slot",null))))}get element(){return i(this)}static get watchers(){return{disabled:["removeDisabledAttributeWhenFalse","updateChoices"],value:["setInitialValue","updateChoices"],name:["updateChoices"],direction:["updateChoices"],responsive:["updateChoices"]}}};x.style="*.sc-duet-choice-group,*.sc-duet-choice-group::after,*.sc-duet-choice-group::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-choice-group-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{display:block;margin-bottom:-12px}.horizontal.sc-duet-choice-group-h .duet-choice-group.duet-no-stacking.sc-duet-choice-group{display:flex}@media (min-width: 48em){.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{margin-bottom:0}}@media (max-width: 35.9375em){.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{display:flex}}.horizontal.duet-choice-group-breakpoint-x-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}@media (max-width: 22.5em){.horizontal.duet-choice-group-breakpoint-x-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}}.horizontal.duet-choice-group-breakpoint-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 36em){.horizontal.duet-choice-group-breakpoint-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.horizontal.duet-choice-group-breakpoint-medium.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 48em){.horizontal.duet-choice-group-breakpoint-medium.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.horizontal.duet-choice-group-breakpoint-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 62em){.horizontal.duet-choice-group-breakpoint-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.horizontal.duet-choice-group-breakpoint-x-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 64.0625em){.horizontal.duet-choice-group-breakpoint-x-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.duet-choice-group.sc-duet-choice-group{position:relative;width:100%;margin-bottom:-12px}";export{k as duet_choice,x as duet_choice_group}
4
+ import{r as e,c,h as t,H as o,g as i}from"./p-63045d0e.js";import{i as d}from"./p-08f35dcb.js";import{a as h}from"./p-24954951.js";import{c as r}from"./p-5e59e970.js";import{i as s,h as a,s as u,u as n,f as l}from"./p-a45e3f8b.js";import{g as b,a as p,c as g,d as m}from"./p-b25490a8.js";import{h as v,c as f}from"./p-36a29933.js";import"./p-9c3c64b9.js";const k=class{constructor(t){e(this,t),this.duetChoiceReady=c(this,"duetChoiceReady",7),this.duetChange=c(this,"duetChange",7),this.duetFocus=c(this,"duetFocus",7),this.duetBlur=c(this,"duetBlur",7),this.hasHeader=!1,this.choiceId=r("DuetChoice"),this.expandId=r("DuetChoiceExpand"),this.headerId=r("DuetChoiceHeader"),this.infoButtonId=r("DuetChoiceInfoButton"),this.onMouseEnter=()=>{this.isHovering=!0},this.onMouseLeave=()=>{this.isHovering=!1},this.onClick=e=>{this.toggleChecked(e)},this.handleKeyDown=e=>{s(e)&&this.toggleChecked(e),a(e)&&this.hasInfo&&this.toggleInfo()},this.onChange=()=>{this.checked=this.nativeInput.checked||!1,this.duetChange.emit({checked:this.checked,value:this.value,component:"duet-choice"})},this.onBlur=e=>{this.duetBlur.emit({originalEvent:e,checked:this.checked,value:this.value,component:"duet-choice"})},this.onFocus=e=>{this.duetFocus.emit({originalEvent:e,checked:this.checked,value:this.value,component:"duet-choice"})},this.toggleChecked=e=>{e.preventDefault(),e.stopPropagation(),this.getDisabled()||"radio"===this.type&&this.checked||(this.checked=!this.checked,this.duetChange.emit({originalEvent:e,checked:this.checked,value:this.value,component:"duet-choice"}))},this.toggleInfo=()=>{this.isInfoOpen=!this.isInfoOpen,this.isInfoOpen&&setTimeout((()=>{var e;null===(e=this.infoContainer)||void 0===e||e.focus()}),150)},this.isHovering=!1,this.isInfoOpen=!1,this.theme="",this.label="label",this.accessibleLabelInfoButtonDefaults=h,this.accessibleLabelInfoButton=b(this.accessibleLabelInfoButtonDefaults),this.accessibleActiveDescendant=void 0,this.accessibleControls=void 0,this.accessibleOwns=void 0,this.accessibleDescribedBy=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.caption="",this.value=void 0,this.type="checkbox",this.name=void 0,this.checked=!1,this.collapsible=!1,this.collapsibleForceExpanded=!1,this.margin="auto",this.icon="",this.expand=!1,this.padding="auto",this.identifier=void 0,this.groupDirection=void 0,this.groupDisabled=void 0,this.groupResponsive=void 0,this.disabled=!1,this.required=!1,this.infoLabelDefaults={fi:"Lisätietoja vaihtoehdosta",en:"More information about",sv:"Mera information om"},this.infoLabel=b(this.infoLabelDefaults,p()),this.collapsibleNotificationDefaults={fi:"Tämä valinta sisältää lisätietoja, jotka avautuivat alle",en:"This choice has additional information opened below",sv:"Det här val har mer information som öppnades nedan"},this.collapsibleNotification=b(this.collapsibleNotificationDefaults,p())}componentWillLoad(){d(this),this.hasInfo=v(this.element,"info"),this.hasHeader=v(this.element,"header"),this.hasAdditional=v(this.element,"additional"),this.hasLabel=v(this.element,"label"),this.hasBeforeText=v(this.element,"before-text"),this.duetChoiceReady.emit()}connectedCallback(){g(this,[{prop:"accessibleLabelInfoButton",defaults:"accessibleLabelInfoButtonDefaults"},{prop:"infoLabel",defaults:"infoLabelDefaults"},{prop:"collapsibleNotification",defaults:"collapsibleNotificationDefaults"}]),u(this),this.duetChoiceReady.emit()}disconnectedCallback(){m(this),n(this)}async setFocus(e){this.nativeInput.focus(e)}async toggleInfoMethod(){this.isInfoOpen=!this.isInfoOpen}handleEscape(e){l(e)&&this.isInfoOpen&&(this.isInfoOpen=!1,this.infoButtonEl&&this.infoButtonEl.focus())}isCollapsibleAnnounceable(){if(!this.collapsible||!this.getExpanded())return!1;const e=Array.from(this.element.querySelectorAll(`#${this.choiceId}-collapsible-content > *`)||[]),c=["duet-paragraph","duet-heading","duet-fieldset"];return e.every((e=>c.includes(e.tagName.toLowerCase())))}getAriaDescribedby(){return this.accessibleDescribedBy?this.accessibleDescribedBy:(this.collapsible||this.hasInfo)&&this.getExpanded()?this.hasHeader?this.headerId:this.isCollapsibleAnnounceable()?this.expandId:`${this.choiceId}-collapsible-notification`:null}getDisabled(){return this.disabled||this.groupDisabled}getExpanded(){return this.checked||this.collapsibleForceExpanded}getClassNames(){return this.hasInfo&&!this.collapsible?{checked:this.checked,"duet-choice-card-info":!0,"duet-choice-card-info-expanded":this.isInfoOpen,"duet-choice-card-collapsed":!this.isInfoOpen,"duet-theme-turva":"turva"===this.theme}:!this.hasInfo&&this.collapsible?{checked:this.checked,"duet-choice-card-collapsible":!0,"duet-choice-card-collapsible-expanded":this.getExpanded(),"duet-choice-card-collapsed":!this.getExpanded(),"duet-choice-card-collapsible-disabled":this.getDisabled(),"duet-theme-turva":"turva"===this.theme}:{checked:this.checked,"duet-choice-default-slot":!0}}render(){const e=this.identifier||this.choiceId;return t(o,{class:{horizontal:"horizontal"===this.groupDirection&&!this.groupResponsive,"horizontal-responsive":"horizontal"===this.groupDirection&&this.groupResponsive,"duet-m-0":"none"===this.margin,"duet-expand":this.expand,"duet-theme-turva":"turva"===this.theme,"no-hover":this.isHovering,disabled:this.getDisabled()}},t("div",{class:{"duet-choice-card-flextainer":!0,"duet-theme-turva":"turva"===this.theme}},t("div",{class:{"duet-choice-card":!0,"has-icon":!!this.icon,"has-info":this.hasInfo,checked:this.checked,info:this.isInfoOpen,collapsible:this.collapsible,"collapsible-force-expanded":this.collapsibleForceExpanded,"duet-p-0":"none"===this.padding}},t("input",{class:"duet-choice-input",type:this.type,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,disabled:this.getDisabled(),required:this.required,id:e,name:this.name,value:this.value,checked:this.checked,"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-owns":this.accessibleOwns,"aria-describedby":this.getAriaDescribedby(),onKeyDown:this.handleKeyDown,ref:e=>this.nativeInput=e}),t("label",{htmlFor:e,class:{"duet-choice-label":!0,"has-before-text":this.hasBeforeText},onClick:this.onClick},this.hasBeforeText&&t("slot",{name:"before-text"}),this.icon&&t("div",{class:"duet-choice-card-icon"},t("duet-icon",{margin:"none",size:"small",name:this.icon,color:"currentColor"})),t("div",{class:"duet-choice-card-text"},t("div",null,this.hasLabel?t("slot",{name:"label"}):this.label),this.caption&&t("div",null,t("duet-spacer",{size:"xx-small"}),t("duet-caption",{margin:"none",selected:this.checked},this.caption)),this.hasAdditional&&t("div",null,t("duet-spacer",{size:"xx-small"}),t("slot",{name:"additional"}))),t("div",null,t("div",{class:{"duet-checkmark-container":!0,"duet-checkmark-radio":"radio"===this.type}},this.checked&&t("div",{class:"duet-checkmark"}))))),this.hasInfo&&!this.collapsible&&t("button",{ref:e=>this.infoButtonEl=e,id:this.infoButtonId,class:{"duet-choice-info-toggle":!0,"duet-theme-turva":"turva"===this.theme},onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onClick:this.toggleInfo,disabled:this.getDisabled(),"aria-expanded":this.isInfoOpen?"true":"false","aria-label":`${this.infoLabel} ${this.label}`,"aria-controls":this.expandId,tabindex:"radio"!==this.type||this.checked?"0":"-1",type:"button",onKeyUp:e=>this.handleEscape(e)},t("div",{class:"duet-choice-info-icon"},t("duet-icon",{icon:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M13.5 17.25A2.252 2.252 0 0 1 11.25 15v-3.75h-.75a.75.75 0 0 1 0-1.5h.75c.827 0 1.5.673 1.5 1.5V15c0 .414.336.75.75.75h.75a.75.75 0 0 1 0 1.5z"/><circle cx="11.625" cy="7.125" r="1.125"/><path d="M12 24C5.383 24 0 18.617 0 12S5.383 0 12 0s12 5.383 12 12-5.383 12-12 12zm0-22.5C6.21 1.5 1.5 6.21 1.5 12S6.21 22.5 12 22.5 22.5 17.79 22.5 12 17.79 1.5 12 1.5z"/></svg>',margin:"none",size:"small",color:"currentColor"})))),this.collapsible&&t("span",{id:`${this.choiceId}-collapsible-notification`,hidden:!0},this.collapsibleNotification),this.collapsible||this.hasInfo?t("div",{class:this.getClassNames(),id:this.expandId},t("span",{class:{"duet-choice-section-visible":this.collapsible?this.getExpanded():this.isInfoOpen,"duet-choice-section-hidden":this.collapsible?!this.getExpanded():!this.isInfoOpen}},t("span",{id:this.headerId},t("slot",{name:"header"})),this.hasInfo?t("span",{ref:e=>this.infoContainer=e,tabindex:"-1",class:"duet-choice-info-container",onKeyUp:e=>this.handleEscape(e)},t("span",null,t("slot",{name:"info"})),t("slot",null)):t("span",{id:`${this.choiceId}-collapsible-content`},t("slot",null)))):null)}get element(){return i(this)}};k.style='*.sc-duet-choice,*.sc-duet-choice::after,*.sc-duet-choice::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-choice-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;flex-direction:column;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}.sc-duet-choice-h:last-child,.sc-duet-choice-h:last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){.sc-duet-choice-h{width:100%}}.duet-expand.sc-duet-choice-h{width:100% !important}.duet-m-0.sc-duet-choice-h{margin:0 !important}.duet-fixed.sc-duet-choice-h{width:auto !important}.vertical.sc-duet-choice-h{margin-right:0 !important}@media (min-width: 48em){.horizontal.sc-duet-choice-h{margin-bottom:0 !important}}@media (min-width: 48em){.horizontal-responsive.sc-duet-choice-h{margin-bottom:0 !important;margin-right:16px !important}.horizontal-responsive.sc-duet-choice-h:last-child,.horizontal-responsive.sc-duet-choice-h:last-of-type{margin-right:0 !important}}.sc-duet-choice-h:last-child:not(:only-child){margin-right:0 !important}.duet-choice-card.sc-duet-choice{position:relative;display:block;width:100%;min-width:8rem;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;-webkit-hyphens:auto;hyphens:auto;line-height:1.1;color:rgb(8, 42, 77) !important;text-align:left;background:rgb(255, 255, 255);border-width:1px;border-radius:8px}.duet-choice-card.duet-p-0.sc-duet-choice{padding:0 !important}.duet-choice-card.duet-m-0.sc-duet-choice{margin:0 !important}.duet-theme-turva.sc-duet-choice .duet-choice-card.sc-duet-choice{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) !important}.duet-choice-card-flextainer.sc-duet-choice{display:flex}.duet-choice-label.sc-duet-choice{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:flex;gap:12px;align-items:center;justify-content:flex-start;width:100%;height:100%;min-height:3.875rem;padding:calc(1rem + 1px);font-size:1rem;font-weight:600;text-decoration:none;word-break:break-word;cursor:pointer;border:1px solid rgb(212, 223, 229);border-radius:8px;transition:background-color 150ms ease, border-color 300ms ease}.duet-choice-label.has-before-text.sc-duet-choice .duet-choice-card-icon.sc-duet-choice,.duet-choice-label.has-before-text.sc-duet-choice .duet-choice-card-text.sc-duet-choice{align-self:flex-start;margin-top:0.25rem}.duet-choice-label.sc-duet-choice>div.sc-duet-choice:last-child{flex:1;align-self:flex-start;justify-self:flex-end;margin-top:0.25rem}.has-info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-top-right-radius:0;border-bottom-right-radius:0}.info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-bottom-right-radius:0;border-bottom-left-radius:0}.duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:rgb(222, 224, 228)}.duet-theme-turva.sc-duet-choice .info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:rgb(222, 224, 228)}.duet-choice-label.sc-duet-choice:active{opacity:0.75;transition:none !important}.checked.sc-duet-choice>.duet-choice-label.sc-duet-choice{padding:1rem;background:rgb(240, 247, 250);border-color:rgb(0, 119, 179) !important;border-width:2px}.checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(0, 119, 179)}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice{background:rgb(245, 247, 250);border-color:rgb(23, 28, 58) !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(198, 12, 48)}.checked.collapsible.sc-duet-choice>.duet-choice-label.sc-duet-choice,.collapsible-force-expanded.collapsible.sc-duet-choice>.duet-choice-label.sc-duet-choice{padding-bottom:calc(1rem + 2px) !important;border-bottom:0 !important;border-bottom-right-radius:0;border-bottom-left-radius:0}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){border-color:rgb(0, 119, 179);border-width:2px}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked) .duet-checkmark-container.sc-duet-choice{border-color:rgb(127, 150, 165)}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){border-color:rgb(23, 28, 58)}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked) .duet-checkmark-container.sc-duet-choice{border-color:rgb(143, 147, 158)}.duet-theme-turva .info .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){border-color:rgb(143, 147, 158)}.sc-duet-choice-h:not(.no-hover):not(.disabled):not([checked]):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){padding:1rem}input.sc-duet-choice:focus{outline:0}input.sc-duet-choice:checked:focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3)}input.sc-duet-choice:not(:checked):focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva.sc-duet-choice input.sc-duet-choice:checked:focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2)}.duet-theme-turva.sc-duet-choice input.sc-duet-choice:not(:checked):focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{color:rgb(98, 121, 138) !important;cursor:default !important;background:rgb(245, 248, 250) !important;border-color:rgb(212, 223, 229) !important}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-choice-card-icon.sc-duet-choice{color:rgb(98, 121, 138)}.duet-theme-turva.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-choice-card-icon.sc-duet-choice{color:rgb(143, 147, 158)}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-checkmark.sc-duet-choice{border-color:rgb(98, 121, 138) !important}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice:hover,input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice:active,input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice:focus{box-shadow:none !important;opacity:1 !important;transition:none !important}.duet-theme-turva.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{color:rgb(143, 147, 158) !important;background:rgb(245, 247, 250) !important;border-color:rgb(222, 224, 228) !important}.duet-theme-turva.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-checkmark.sc-duet-choice{border-color:rgb(143, 147, 158) !important}.checked.sc-duet-choice>input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{border-color:rgb(127, 150, 165) !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{border-color:rgb(143, 147, 158) !important}.duet-checkmark-container.sc-duet-choice{position:relative;width:20px;height:20px;margin-left:auto;border:1px solid rgb(127, 150, 165);border-radius:4px;transition:border 300ms ease}.duet-theme-turva.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(143, 147, 158)}.checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(0, 119, 179);border-color:rgb(0, 119, 179);transition:none}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(23, 28, 58);border-color:rgb(23, 28, 58) !important}.duet-checkmark-container.duet-checkmark-radio.sc-duet-choice{border-radius:50%}[disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(181, 198, 208) !important;border-color:rgb(181, 198, 208) !important}.duet-theme-turva.sc-duet-choice [disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(199, 202, 207) !important}.checked.sc-duet-choice>[disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(181, 198, 208) !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>[disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(199, 202, 207) !important;border-color:rgb(199, 202, 207) !important}.duet-checkmark.sc-duet-choice{position:absolute;top:10px;left:3px;width:5.3333333333px;height:11.8518518519px;border-top:2px solid rgb(255, 255, 255);border-right:2px solid rgb(255, 255, 255);opacity:1;transform:scaleX(-1) rotate(135deg) translateZ(0);transform-origin:left top;animation-name:duet-checkmark;animation-duration:600ms;animation-timing-function:ease-out;animation-fill-mode:forwards}@keyframes duet-checkmark{0%{width:0;height:0;opacity:1}20%{width:5.3333333333px;height:0;opacity:1}40%,100%{width:5.3333333333px;height:11.8518518519px;opacity:1}}.duet-choice-card-icon.sc-duet-choice{position:relative;color:rgb(0, 119, 179)}.duet-theme-turva.sc-duet-choice .duet-choice-card-icon.sc-duet-choice{color:rgb(164, 4, 40)}.duet-choice-card-icon.sc-duet-choice duet-icon.sc-duet-choice{display:block}.duet-choice-section-hidden.sc-duet-choice{display:none}.duet-choice-card-info.duet-choice-card-collapsed.sc-duet-choice,.duet-choice-card-collapsed.duet-choice-card-collapsible.sc-duet-choice{position:relative;width:auto;padding:0 !important;background:unset !important;border:0;border-radius:0}.duet-choice-card-info.sc-duet-choice,.duet-choice-card-collapsible.sc-duet-choice{padding:20px !important;position:relative;width:100%;font-weight:400;color:rgb(8, 42, 77);border:1px solid rgb(212, 223, 229);border-top:0;border-radius:0 0 8px 8px;transition:border-color 300ms ease}@media (min-width: 36em){.duet-choice-card-info.sc-duet-choice,.duet-choice-card-collapsible.sc-duet-choice{padding:28px !important}}.duet-theme-turva.sc-duet-choice .duet-choice-card-info.sc-duet-choice,.duet-theme-turva.sc-duet-choice .duet-choice-card-collapsible.sc-duet-choice{color:rgb(23, 28, 58);border-color:rgb(23, 28, 58)}.checked.sc-duet-choice>.duet-choice-card-info.sc-duet-choice,.checked.sc-duet-choice>.duet-choice-card-collapsible.sc-duet-choice{display:block}.duet-choice-card-info-expanded.sc-duet-choice,.duet-choice-card-collapsible-expanded.sc-duet-choice{display:block}.duet-choice-card-collapsible.sc-duet-choice{background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-top:0}.duet-choice-card-collapsible.duet-theme-turva.sc-duet-choice{background:rgb(255, 255, 255);border-color:rgb(222, 224, 228)}.duet-choice-card-collapsible.checked.sc-duet-choice{padding:19px !important;padding-top:20px !important;border-color:rgb(0, 119, 179);border-width:2px}@media (min-width: 36em){.duet-choice-card-collapsible.checked.sc-duet-choice{padding:27px !important;padding-top:28px !important}}.duet-choice-card-collapsible.checked.duet-theme-turva.sc-duet-choice{border-color:rgb(23, 28, 58)}.duet-choice-card-collapsible-disabled.sc-duet-choice{background:rgb(245, 248, 250);border-color:rgb(212, 223, 229)}.duet-choice-card-collapsible-disabled.checked.sc-duet-choice{border-color:rgb(212, 223, 229)}.duet-choice-card-collapsible-disabled.duet-theme-turva.sc-duet-choice{background:rgb(245, 247, 250);border-color:rgb(222, 224, 228)}.duet-choice-card-collapsible-disabled.duet-theme-turva.checked.sc-duet-choice{border-color:rgb(222, 224, 228)}.duet-choice-card-info.sc-duet-choice{font-size:0.875rem;line-height:1.5;background:rgb(245, 248, 250);transition:150ms ease-out}.duet-choice-card-info.duet-theme-turva.sc-duet-choice{background:rgb(245, 247, 250);border-color:rgb(222, 224, 228)}.duet-choice-card-info.duet-choice-card-collapsed .duet-choice-info-container.sc-duet-choice-s>*,.duet-choice-card-info.duet-choice-card-collapsed .duet-choice-info-container .sc-duet-choice-s>*{display:none}.user-is-tabbing.sc-duet-choice-h .duet-choice-info-container.sc-duet-choice:focus{display:block;outline:none;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.disabled.sc-duet-choice-h .duet-choice-card-collapsible.sc-duet-choice{border-color:rgb(127, 150, 165)}.disabled.sc-duet-choice-h .duet-choice-card-collapsible.duet-theme-turva.sc-duet-choice{border-color:rgb(143, 147, 158)}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-collapsible.sc-duet-choice:not(.checked){border-color:rgb(0, 119, 179);border-width:2px}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-collapsible.sc-duet-choice:not(.checked){border-color:rgb(143, 147, 158)}[collapsible-force-expanded].sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-collapsible.sc-duet-choice:not(.checked){padding:19px !important;padding-top:20px !important}@media (min-width: 36em){[collapsible-force-expanded].sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-collapsible.sc-duet-choice:not(.checked){padding:27px !important;padding-top:28px !important}}.duet-choice-info-toggle.sc-duet-choice{display:flex;flex-shrink:0;align-items:flex-start;justify-content:center;width:57.6px;padding-top:1.25rem;cursor:pointer;background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-left:0 none;border-top-right-radius:8px;border-bottom-right-radius:8px;-webkit-appearance:none;appearance:none}.duet-choice-info-toggle[aria-expanded=true].sc-duet-choice{background:rgb(245, 248, 250);border-bottom-color:transparent;border-bottom-right-radius:0}.duet-theme-turva.sc-duet-choice .duet-choice-info-toggle[aria-expanded=true].sc-duet-choice{background:rgb(245, 247, 250)}.duet-choice-info-toggle[disabled].sc-duet-choice{pointer-events:none;background:rgb(245, 248, 250) !important;border-color:rgb(212, 223, 229) !important}.duet-choice-info-toggle[disabled].sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(127, 150, 165) !important}.duet-choice-info-toggle[disabled].duet-theme-turva.sc-duet-choice{background:rgb(245, 247, 250) !important;border-color:rgb(222, 224, 228) !important}.duet-choice-info-toggle[disabled].duet-theme-turva.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(143, 147, 158) !important}.duet-choice-info-toggle.sc-duet-choice:focus{outline:none}.user-is-tabbing.sc-duet-choice-h .duet-choice-info-toggle.sc-duet-choice:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.user-is-tabbing.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.checked.sc-duet-choice+.duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(0, 119, 179) !important}.duet-choice-info-toggle.sc-duet-choice duet-icon.sc-duet-choice{display:block}.duet-choice-info-toggle.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(0, 119, 179)}.duet-theme-turva.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(198, 12, 48)}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(127, 150, 165)}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(143, 147, 158)}.duet-choice-input.sc-duet-choice{position:absolute !important;width:100%;height:100%;opacity:0}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .duet-choice-card.sc-duet-choice{color:#172a3b !important}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:#b2c2cd}.info .duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:#b2c2cd}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice{background:#fdf7f2;border-color:#172a3b !important}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:#e61740}.duet-choice-label .duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:#172a3b;border-color:#172a3b !important}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.duet-choice-card-info.sc-duet-choice,.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.duet-choice-card-collapsible.sc-duet-choice{color:#172a3b;border-color:#172a3b}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.duet-choice-card-collapsible.sc-duet-choice{border-color:#b2c2cd}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.duet-choice-card-collapsible.checked.sc-duet-choice{border-color:#172a3b}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.duet-choice-card-info.sc-duet-choice{background:#fdf7f2;border-color:#b2c2cd}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:#7891a4}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.duet-choice-info-toggle.sc-duet-choice{border-color:#b2c2cd}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.duet-choice-info-toggle[aria-expanded=true].sc-duet-choice{background:#fdf7f2;border-bottom-color:transparent}.duet-theme-turva2.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-theme-turva.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){border-color:#172a3b}.duet-theme-turva2.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-theme-turva.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked) .duet-checkmark-container.sc-duet-choice{border-color:#7891a4}';const x=class{constructor(c){e(this,c),this.choiceGroupName="duet-choice-group",this.choices=new Set,this.childObserverCallback=e=>{e.some((e=>{var c;return(null===(c=e.removedNodes)||void 0===c?void 0:c.length)>0&&Array.from(e.removedNodes.values()).some((e=>"duet-choice"===e.nodeName.toLowerCase()))}))&&this.updateChoices()},this.onSelect=e=>{if("duet-choice"!==e.detail.component)return;const c=e.target;c&&this.choices.has(c)&&(this.value=c.value)},this.onChoiceReady=()=>{this.updateChoices()},this.direction="vertical",this.margin="auto",this.theme="",this.error="",this.name=void 0,this.label="Label",this.labelHidden=!1,this.caption=void 0,this.tooltip=void 0,this.tooltipDirection="auto",this.responsive=!1,this.breakpoint="small",this.value=void 0,this.disabled=void 0,this.required=!1,this.accessibleLiveError="polite"}removeDisabledAttributeWhenFalse(){this.disabled||this.element.removeAttribute("disabled")}async connectedCallback(){this.childObserver=new MutationObserver(this.childObserverCallback.bind(this)),this.childObserver.observe(this.element,{childList:!0,subtree:!0}),this.setInitialValue(),this.updateChoices()}disconnectedCallback(){this.childObserver&&(this.childObserver.disconnect(),this.childObserver=void 0)}componentWillLoad(){d(this),this.removeDisabledAttributeWhenFalse(),f(this.element,"tooltip","duet-tooltip",1,!0)}setInitialValue(){void 0===this.initialValue&&(this.initialValue=this.value)}async getInitialValue(){return this.initialValue}async updateChoices(){var e;const c=null!==(e=this.value)&&void 0!==e?e:this.initialValue;let t=!1;this.choices.clear(),this.element.querySelectorAll("duet-choice").forEach((e=>{e.closest("duet-choice-group")===this.element&&this.choices.add(e)}));for(const e of Array.from(this.choices))e.name=this.name,e.required=this.required,e.groupDisabled=this.disabled,e.groupDirection=this.direction,e.groupResponsive=this.responsive,t||e.value!==c?e.checked=!1:(t=!0,e.checked=!0,void 0===this.value&&(this.value=c));t||(this.value=void 0)}render(){return t(o,{onDuetChange:this.onSelect,onDuetChoiceReady:this.onChoiceReady,class:{horizontal:"horizontal"===this.direction,"duet-choice-group-breakpoint-x-small":this.responsive&&"x-small"===this.breakpoint,"duet-choice-group-breakpoint-small":this.responsive&&"small"===this.breakpoint,"duet-choice-group-breakpoint-medium":this.responsive&&"medium"===this.breakpoint,"duet-choice-group-breakpoint-large":this.responsive&&"large"===this.breakpoint,"duet-choice-group-breakpoint-x-large":this.responsive&&"x-large"===this.breakpoint}},t("duet-fieldset",{label:this.label,labelHidden:this.labelHidden,compactLabel:!0,caption:this.caption,error:this.error,margin:this.margin,theme:this.theme,"accessible-live-error":this.accessibleLiveError},this.tooltip&&t("duet-tooltip",{slot:"tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),t("slot",{name:"tooltip"}),t("div",{class:{[this.choiceGroupName]:!0,"duet-no-stacking":!this.responsive}},t("slot",null))))}get element(){return i(this)}static get watchers(){return{disabled:["removeDisabledAttributeWhenFalse","updateChoices"],value:["setInitialValue","updateChoices"],name:["updateChoices"],direction:["updateChoices"],responsive:["updateChoices"]}}};x.style="*.sc-duet-choice-group,*.sc-duet-choice-group::after,*.sc-duet-choice-group::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-choice-group-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{display:block;margin-bottom:-12px}.horizontal.sc-duet-choice-group-h .duet-choice-group.duet-no-stacking.sc-duet-choice-group{display:flex}@media (min-width: 48em){.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{margin-bottom:0}}@media (max-width: 35.9375em){.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{display:flex}}.horizontal.duet-choice-group-breakpoint-x-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}@media (max-width: 22.5em){.horizontal.duet-choice-group-breakpoint-x-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}}.horizontal.duet-choice-group-breakpoint-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 36em){.horizontal.duet-choice-group-breakpoint-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.horizontal.duet-choice-group-breakpoint-medium.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 48em){.horizontal.duet-choice-group-breakpoint-medium.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.horizontal.duet-choice-group-breakpoint-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 62em){.horizontal.duet-choice-group-breakpoint-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.horizontal.duet-choice-group-breakpoint-x-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 64.0625em){.horizontal.duet-choice-group-breakpoint-x-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.duet-choice-group.sc-duet-choice-group{position:relative;width:100%;margin-bottom:-12px}";export{k as duet_choice,x as duet_choice_group}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- System.register(["./p-a3ea8aa0.system.js","./p-f50d1845.system.js","./p-a142a88f.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,n,a,i,o,r,s,d,c;return{setters:[function(e){t=e.r;n=e.h;a=e.H;i=e.g},function(e){o=e.i},function(e){r=e.a;s=e.c;d=e.d;c=e.g},function(){}],execute:function(){var u='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-slideout-lang{display:flex;gap:16px;align-items:center;justify-content:flex-start;width:min-content;white-space:nowrap}::slotted(*){position:relative}::slotted(:not(:first-child)){padding-right:0;padding-left:0.5rem}::slotted(:not(:last-child))::after{position:absolute;top:25%;right:-14px;width:2px;height:50%;content:"";background:rgb(8, 42, 77)}.duet-theme-turva ::slotted(:not(:last-child))::after{background:rgb(23, 28, 58)}:host(.duet-theme-turva2) .duet-theme-turva ::slotted(:not(:last-child))::after{background:#172a3b}';var l=u;var b=e("duet_slideout_lang",function(){function e(e){t(this,e);this.chooseLangObject={en:"Choose language",fi:"Valitse kieli",sv:"Välj språk"};this.language=r();this.theme=""}e.prototype.componentWillLoad=function(){o(this)};e.prototype.connectedCallback=function(){s(this)};e.prototype.disconnectedCallback=function(){d(this)};e.prototype.render=function(){var e=c(this.chooseLangObject);return n(a,{key:"2d8d0ea8ccd8932027c97026ab0fd8ff94b13f5d"},n("div",{key:"8ecd4a30d2535356b74019ea8a6e6243bb05b88c",class:"duet-slideout-lang",role:"group","aria-label":e},n("duet-icon",{key:"825bf7a329128b49e03969c52b7abb3c76922fef",name:"navigation-language",margin:"none",color:"secondary",size:"small"}),n("slot",{key:"a43360f381937d2d74610b34de107c10e384a880"})))};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());b.style=l}}}));
4
+ System.register(["./p-8fb46b02.system.js","./p-57941503.system.js","./p-db398834.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,n,a,i,o,r,s,d,c;return{setters:[function(e){t=e.r;n=e.h;a=e.H;i=e.g},function(e){o=e.i},function(e){r=e.a;s=e.c;d=e.d;c=e.g},function(){}],execute:function(){var u='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-slideout-lang{display:flex;gap:16px;align-items:center;justify-content:flex-start;width:min-content;white-space:nowrap}::slotted(*){position:relative}::slotted(:not(:first-child)){padding-right:0;padding-left:0.5rem}::slotted(:not(:last-child))::after{position:absolute;top:25%;right:-14px;width:2px;height:50%;content:"";background:rgb(8, 42, 77)}.duet-theme-turva ::slotted(:not(:last-child))::after{background:rgb(23, 28, 58)}:host(.duet-theme-turva2) .duet-theme-turva ::slotted(:not(:last-child))::after{background:#172a3b}';var l=u;var b=e("duet_slideout_lang",function(){function e(e){t(this,e);this.chooseLangObject={en:"Choose language",fi:"Valitse kieli",sv:"Välj språk"};this.language=r();this.theme=""}e.prototype.componentWillLoad=function(){o(this)};e.prototype.connectedCallback=function(){s(this)};e.prototype.disconnectedCallback=function(){d(this)};e.prototype.render=function(){var e=c(this.chooseLangObject);return n(a,{key:"2d8d0ea8ccd8932027c97026ab0fd8ff94b13f5d"},n("div",{key:"8ecd4a30d2535356b74019ea8a6e6243bb05b88c",class:"duet-slideout-lang",role:"group","aria-label":e},n("duet-icon",{key:"825bf7a329128b49e03969c52b7abb3c76922fef",name:"navigation-language",margin:"none",color:"secondary",size:"small"}),n("slot",{key:"a43360f381937d2d74610b34de107c10e384a880"})))};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());b.style=l}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as t,c as e,h as i,H as o,g as s}from"./p-682a0ad1.js";import{i as l}from"./p-3f59cd08.js";import{c as a}from"./p-5e59e970.js";import{f as r,o as u,j as c,d,b as n,a as h,c as m}from"./p-a45e3f8b.js";import{a as b,c as p,d as f}from"./p-7da818b1.js";import{c as g}from"./p-f587ebfc.js";import{p as v}from"./p-9c3c64b9.js";const x=class{constructor(i){t(this,i),this.duetChange=e(this,"duetChange",3),this.duetFocus=e(this,"duetFocus",7),this.duetBlur=e(this,"duetBlur",7),this.errorId=a("DuetError"),this.labelId=a("DuetLabel"),this.topCaptionId=a("DuetCaptionTop"),this.selectedLangObject={en:"selected",fi:"valittu",sv:"vald"},this.selectAllLabel={en:"Select all",fi:"Valitse kaikki",sv:"Välj alla"},this.clearAllLabel={en:"Clear all",fi:"Tyhjennä kaikki",sv:"Rensa alla"},this.placeholderLabel={en:"Hint",fi:"Vihje",sv:"Tips"},this.onChange=t=>{this.duetChange.emit({originalEvent:t,value:this.value,component:"duet-multiselect"})},this.onBlur=t=>{this.duetBlur.emit({originalEvent:t,value:this.value,component:"duet-multiselect"})},this.onFocus=t=>{this.duetFocus.emit({originalEvent:t,value:this.value,component:"duet-multiselect"})},this.onMultiselectKeyDown=t=>{(r(t)||u(t))&&this.checkboxesVisible&&(this.checkboxesVisible=!1,this.multiselectElement.focus(),t.preventDefault())},this.onMultiselectInputKeyDown=t=>{c(t)&&(t.preventDefault(),this.toggleCheckboxes(),setTimeout((()=>{if(this.checkboxesVisible){const t=this.element.shadowRoot.querySelector(`#${this.getOptionIdentifier(this.allControls?-2:0)}`);t&&t.focus()}}),200))},this.onCheckboxKeyDown=(t,e)=>{let i;d(t)||n(t)?i=this.element.shadowRoot.querySelector(`#${this.getOptionIdentifier(e-1)}`):(h(t)||m(t))&&(i=this.element.shadowRoot.querySelector(`#${this.getOptionIdentifier(e+1)}`)),i&&(i.focus(),t.preventDefault(),this.activeDescendant=i.id)},this.toggleCheckboxes=()=>{this.checkboxesVisible=!this.checkboxesVisible},this.toggleCheckbox=(t,e)=>{this.value=function(t,e){return t.includes(e)?t.filter((t=>t!==e)):[...t,e]}(this.value,e),this.onChange(t)},this.handleSelectAllClick=t=>{this.value=this.processedItems,this.onChange(t)},this.handleClearAllClick=t=>{this.value=[],this.onChange(t)},this.getOptionIdentifier=t=>`${this.identifier}-option-${t}`,this.getDescribedBy=()=>{const t=[];return this.isCaptionVisible&&this.topCaptionId&&t.push(this.topCaptionId),this.accessibleDescribedBy&&t.push(this.accessibleDescribedBy),this.error&&t.push(this.errorId),t.length>0?t.join(" "):null},this.processedItems=[],this.processedGroups=[],this.checkboxesVisible=!1,this.activeDescendant="",this.language=b(),this.margin="auto",this.error="",this.accessibleLiveError="polite",this.expand=!1,this.value=[],this.theme="",this.labelHidden=!1,this.identifier=a("DuetMultiselect"),this.allControls=!1,this.placeholder="",this.caption=void 0,this.items=void 0,this.disabled=!1,this.label="label",this.labelColor=void 0,this.labelWeight=void 0,this.accessibleDescribedBy=void 0,this.tooltip="",this.tooltipDirection="auto"}handleFocus(t){t.composedPath().every((t=>t!==this.element))&&(this.checkboxesVisible=!1)}componentWillLoad(){l(this),this.isCaptionVisible=!!this.caption,g(this.element,"tooltip","duet-tooltip",1,!0),this.refresh()}connectedCallback(){p(this)}disconnectedCallback(){f(this)}async setFocus(t){this.multiselectElement&&this.multiselectElement.focus(t)}async selectWithValues(t){const e=this.processedItems.filter((e=>t.includes(e.value)));this.value=Array.from(new Set([...this.value,...e]))}async refresh(){const t=v(this.items);this.processedItems=[],this.processedGroups=[],t&&0!==t.length&&(this.processedGroups=void 0!==t[0].items?t:[{label:"",items:t}],this.processedGroups.forEach((t=>t.items.forEach((t=>this.processedItems.push(t))))))}render(){var t;return i(o,{key:"b8cb97bc0d21e85be3db01ef83438fcf7b4b5923",class:{"duet-m-0":"none"===this.margin,"duet-expand":this.expand}},i("div",{key:"d93b323c2643eac8e8c20914bbf67fe08d7bb117",class:{"duet-multiselect-container":!0,"duet-label-hidden":this.labelHidden,"duet-theme-turva":"turva"===this.theme,"duet-input-top-caption-shown":this.isCaptionVisible,"has-error":!!this.error},onKeyDown:t=>this.onMultiselectKeyDown(t)},i("duet-label",{key:"943b19c37d249d61065e1a61efb7641a2abf3f38",theme:"turva"===this.theme?"turva":"default",class:{"duet-has-tooltip":!!this.tooltip},color:this.labelColor,weight:this.labelWeight,id:this.labelId,for:this.identifier},this.label),this.tooltip&&i("duet-tooltip",{key:"c6cd56b231fdbe547f7ca92aea632eefa550f748",class:"duet-multiselect-tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),i("slot",{key:"1141d203347bf35375928fa88e20cf47ba9c7140",name:"tooltip"}),this.caption&&i("duet-caption",{key:"e1634b690e6ac67235b4720571d0ea596ba7e414",id:this.topCaptionId,size:"medium"},this.caption),i("div",{key:"b2d231bd277ea192e338aa42274665642bef854e",class:"duet-multiselect-wrapper"},i("button",{key:"807718e802825096cbc1cef4597d8cd2f44ffd71",id:this.identifier,ref:t=>this.multiselectElement=t,class:{"duet-multiselect":!0,"duet-multiselect-active":this.checkboxesVisible},tabindex:"0",onClick:()=>this.toggleCheckboxes(),onFocus:t=>this.onFocus(t),onBlur:t=>this.onBlur(t),role:"combobox","aria-expanded":this.checkboxesVisible?"true":"false","aria-haspopup":"listbox","aria-labelledby":this.labelId,"aria-describedby":this.getDescribedBy(),"aria-owns":`${this.identifier}-checkboxes`,onKeyDown:t=>this.onMultiselectInputKeyDown(t),disabled:this.disabled},i("span",{key:"b33e295a375ecae8c1a0f59af9fa1ac0e3a3a829",role:"textbox","aria-readonly":"true","aria-multiline":"false","aria-autocomplete":"none","aria-controls":`${this.identifier}-checkboxes`,"aria-label":this.placeholderLabel[this.language],class:"duet-multiselect-label"},this.placeholder),this.value&&this.value.length>0&&i("span",{key:"1f835b434209839e7f47d9c87815987f96a6e30a",class:"duet-multiselect-badge"},this.value.length,i("duet-visually-hidden",{key:"45b265df57cdc72a40695cd01fcf78c47dd5ddb1"},this.selectedLangObject[this.language],", ",this.value.map((t=>t.label)).join(", "))),i("svg",{key:"dd061d5dda63d16eb39f113f78cd0c5b6b3e0158",class:{"duet-multiselect-icon":!0,"duet-multiselect-icon--rotate":this.checkboxesVisible},fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},i("path",{key:"759232c06c78ac2c73bddc2afad5f4fce57f6667",d:"m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z"}))),i("div",{key:"7a4d4b2de7f4baac9066570471fdae9fa2bead13",id:`${this.identifier}-checkboxes`,role:"listbox",class:{"duet-multiselect-checkboxes":!0,"duet-multiselect-checkboxes-active":this.checkboxesVisible},"aria-activedescendant":this.activeDescendant,"aria-multiselectable":"true"},(null===(t=this.processedItems)||void 0===t?void 0:t.length)&&this.allControls&&i("div",{key:"69a2110105193b7a9b82c75ed856e6d8a9e8913e",class:"duet-multiselect-all-control-buttons"},i("button",{key:"ce760b620c954a99a9fe0fa65957d8601ad066c5",class:"duet-multiselect-select-all",onClick:this.handleSelectAllClick,id:this.getOptionIdentifier(-2),onKeyDown:t=>this.onCheckboxKeyDown(t,-2)},this.selectAllLabel[this.language]),i("button",{key:"3901f1df01f58804fd5d76a83198b514fd0afdf9",class:"duet-multiselect-clear-all",onClick:this.handleClearAllClick,id:this.getOptionIdentifier(-1),onKeyDown:t=>this.onCheckboxKeyDown(t,-1)},this.clearAllLabel[this.language])),this.processedItems&&this.processedGroups.map((t=>i("fieldset",null,t.label&&i("legend",null,t.label),t.items.map(((t,e)=>{var o,s;return i("duet-checkbox",{identifier:this.getOptionIdentifier(e),role:"option",label:t.label,value:t.value,key:t.value,checked:null===(o=this.value)||void 0===o?void 0:o.includes(t),"accessible-selected":(null===(s=this.value)||void 0===s?void 0:s.includes(t))?"true":void 0,disabled:!this.checkboxesVisible||t.disabled,onDuetChange:e=>this.toggleCheckbox(e,t),onKeyDown:t=>this.onCheckboxKeyDown(t,e),theme:this.theme})}))))))),i("span",{key:"cb7b91a522d2bf121f1f140298aea0c00920c24d",class:"duet-multiselect-help duet-multiselect-error",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&i("span",{key:"6070367e449abc5319b659fb95abb83fa0ee06e9"},this.error))))}get element(){return s(this)}static get watchers(){return{items:["refresh"]}}};x.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;max-width:100%;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}:host.duet-expand{width:100% !important}}:host(.duet-m-0){margin:0 !important}.duet-multiselect-tooltip,::slotted(duet-tooltip){position:absolute;top:12px;right:0}@media (min-width: 48em){.duet-multiselect-tooltip,::slotted(duet-tooltip){position:relative;top:4px;right:auto}}.duet-multiselect-placeholder{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-multiselect-container{position:relative;width:100%}.duet-multiselect-wrapper{position:relative;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.25}.duet-theme-turva .duet-multiselect-wrapper{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-multiselect{display:flex;align-items:center;justify-content:flex-start;width:100%;min-width:8rem;padding:12px 14px !important;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.5;color:rgb(8, 42, 77);text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:4px;transition:150ms ease}.duet-multiselect .duet-multiselect-label{overflow:hidden;text-overflow:ellipsis}.duet-multiselect:hover{border-color:rgb(127, 150, 165);box-shadow:0 0 0 1px #909599}.duet-theme-turva .duet-multiselect:hover{border-color:rgb(143, 147, 158);box-shadow:0 0 0 1px #747475}.has-error .duet-multiselect:hover{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-multiselect:hover{box-shadow:0 0 0 1px #e55039}.duet-multiselect:focus,.duet-multiselect.duet-multiselect-active{border-color:rgb(0, 119, 179);outline:0;box-shadow:0 0 0 1px #0077b3 !important;transition:none}.duet-theme-turva .duet-multiselect:focus,.duet-theme-turva .duet-multiselect.duet-multiselect-active{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.has-error .duet-multiselect:focus,.has-error .duet-multiselect.duet-multiselect-active{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-multiselect:focus,.duet-theme-turva.has-error .duet-multiselect.duet-multiselect-active{box-shadow:0 0 0 1px #e55039}.duet-multiselect[disabled]{color:rgb(8, 42, 77) !important;cursor:default !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important;box-shadow:none !important;opacity:1 !important;-webkit-text-fill-color:rgb(8, 42, 77) !important}.duet-theme-turva .duet-multiselect[disabled]{color:rgb(23, 28, 58) !important;background:rgb(245, 247, 250) !important;border-color:rgb(245, 247, 250) !important;-webkit-text-fill-color:rgb(23, 28, 58) !important}.duet-multiselect>:first-child{flex:1;min-height:24px}.duet-multiselect .duet-multiselect-badge{padding:4px 8px 4px;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.75rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);background:#d9ebf4;border-radius:20rem}.duet-theme-turva .duet-multiselect .duet-multiselect-badge{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-weight:700;color:rgb(23, 28, 58);background:#e8e8eb}.duet-multiselect .duet-multiselect-icon{margin-left:12px}.has-error .duet-multiselect{border-color:rgb(214, 28, 82) !important}.has-error .duet-multiselect .duet-multiselect-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-multiselect{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-multiselect .duet-multiselect-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva .duet-multiselect{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);border-color:rgb(143, 147, 158)}.duet-multiselect svg{width:20px;height:20px;color:rgb(8, 42, 77);pointer-events:none}.duet-theme-turva .duet-multiselect svg{color:rgb(23, 28, 58)}.duet-multiselect svg.duet-multiselect-icon--rotate{transform:rotate(180deg)}.duet-multiselect-checkboxes{position:absolute;z-index:700;width:100%;padding:16px;margin:8px 0 0;visibility:hidden;background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-radius:4px;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right}.duet-theme-turva .duet-multiselect-checkboxes{background:rgb(255, 255, 255);border-color:rgb(222, 224, 228);box-shadow:0 4px 10px 0 rgba(23, 28, 58, 0.15)}.duet-multiselect-checkboxes.duet-multiselect-checkboxes-active{visibility:visible;opacity:1;transition-property:transform, opacity;transform:scale(1.0001) translateZ(0) translateY(0)}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons{padding:8px 0;margin:-16px;margin-bottom:16px;border-bottom:1px solid rgb(212, 223, 229)}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button{padding:6px 16px;margin:-4px 0;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:600;color:rgb(0, 119, 179);cursor:pointer;border-radius:4px}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:focus,.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:first-child{border-right:1px solid rgb(212, 223, 229)}.duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons 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(198, 12, 48)}.duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:hover{color:rgb(23, 28, 58)}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:hover{color:rgb(8, 42, 77)}.duet-multiselect-checkboxes fieldset{margin-top:8px;margin-bottom:12px}.duet-multiselect-checkboxes fieldset+fieldset{margin-top:28px}.duet-multiselect-checkboxes legend{margin-bottom:12px;font-size:1rem;font-weight:600}.duet-multiselect-help{display:block;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(98, 121, 138);border-radius:4px}.duet-multiselect-help span{display:block;margin-top:8px}.duet-theme-turva .duet-multiselect-help{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(143, 147, 158)}.has-error .duet-multiselect-help{color:rgb(214, 28, 82)}.duet-theme-turva.has-error .duet-multiselect-help{color:rgb(214, 28, 82)}.duet-label-hidden duet-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}:host(.duet-theme-turva2) .duet-theme-turva .duet-multiselect:focus,:host(.duet-theme-turva2) .duet-theme-turva .duet-multiselect.duet-multiselect-active{border-color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .duet-multiselect[disabled]{color:#172a3b !important;background:#f5f6f7 !important;border-color:#f5f6f7 !important;-webkit-text-fill-color:#172a3b !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-multiselect{color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .duet-multiselect svg{color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .duet-multiselect .duet-multiselect-badge{color:#172a3b;background:#e8eaeb}:host(.duet-theme-turva2) .duet-theme-turva .duet-multiselect-checkboxes{border-color:#d4dde2}:host(.duet-theme-turva2) .duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button{color:#e61740}:host(.duet-theme-turva2) .duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:hover{color:#172a3b}';export{x as duet_multiselect}
4
+ import{r as t,c as e,h as i,H as o,g as s}from"./p-63045d0e.js";import{i as l}from"./p-08f35dcb.js";import{c as a}from"./p-5e59e970.js";import{f as r,o as u,j as c,d,b as n,a as h,c as m}from"./p-a45e3f8b.js";import{a as b,c as p,d as f}from"./p-b25490a8.js";import{c as g}from"./p-36a29933.js";import{p as v}from"./p-9c3c64b9.js";const x=class{constructor(i){t(this,i),this.duetChange=e(this,"duetChange",3),this.duetFocus=e(this,"duetFocus",7),this.duetBlur=e(this,"duetBlur",7),this.errorId=a("DuetError"),this.labelId=a("DuetLabel"),this.topCaptionId=a("DuetCaptionTop"),this.selectedLangObject={en:"selected",fi:"valittu",sv:"vald"},this.selectAllLabel={en:"Select all",fi:"Valitse kaikki",sv:"Välj alla"},this.clearAllLabel={en:"Clear all",fi:"Tyhjennä kaikki",sv:"Rensa alla"},this.placeholderLabel={en:"Hint",fi:"Vihje",sv:"Tips"},this.onChange=t=>{this.duetChange.emit({originalEvent:t,value:this.value,component:"duet-multiselect"})},this.onBlur=t=>{this.duetBlur.emit({originalEvent:t,value:this.value,component:"duet-multiselect"})},this.onFocus=t=>{this.duetFocus.emit({originalEvent:t,value:this.value,component:"duet-multiselect"})},this.onMultiselectKeyDown=t=>{(r(t)||u(t))&&this.checkboxesVisible&&(this.checkboxesVisible=!1,this.multiselectElement.focus(),t.preventDefault())},this.onMultiselectInputKeyDown=t=>{c(t)&&(t.preventDefault(),this.toggleCheckboxes(),setTimeout((()=>{if(this.checkboxesVisible){const t=this.element.shadowRoot.querySelector(`#${this.getOptionIdentifier(this.allControls?-2:0)}`);t&&t.focus()}}),200))},this.onCheckboxKeyDown=(t,e)=>{let i;d(t)||n(t)?i=this.element.shadowRoot.querySelector(`#${this.getOptionIdentifier(e-1)}`):(h(t)||m(t))&&(i=this.element.shadowRoot.querySelector(`#${this.getOptionIdentifier(e+1)}`)),i&&(i.focus(),t.preventDefault(),this.activeDescendant=i.id)},this.toggleCheckboxes=()=>{this.checkboxesVisible=!this.checkboxesVisible},this.toggleCheckbox=(t,e)=>{this.value=function(t,e){return t.includes(e)?t.filter((t=>t!==e)):[...t,e]}(this.value,e),this.onChange(t)},this.handleSelectAllClick=t=>{this.value=this.processedItems,this.onChange(t)},this.handleClearAllClick=t=>{this.value=[],this.onChange(t)},this.getOptionIdentifier=t=>`${this.identifier}-option-${t}`,this.getDescribedBy=()=>{const t=[];return this.isCaptionVisible&&this.topCaptionId&&t.push(this.topCaptionId),this.accessibleDescribedBy&&t.push(this.accessibleDescribedBy),this.error&&t.push(this.errorId),t.length>0?t.join(" "):null},this.processedItems=[],this.processedGroups=[],this.checkboxesVisible=!1,this.activeDescendant="",this.language=b(),this.margin="auto",this.error="",this.accessibleLiveError="polite",this.expand=!1,this.value=[],this.theme="",this.labelHidden=!1,this.identifier=a("DuetMultiselect"),this.allControls=!1,this.placeholder="",this.caption=void 0,this.items=void 0,this.disabled=!1,this.label="label",this.labelColor=void 0,this.labelWeight=void 0,this.accessibleDescribedBy=void 0,this.tooltip="",this.tooltipDirection="auto"}handleFocus(t){t.composedPath().every((t=>t!==this.element))&&(this.checkboxesVisible=!1)}componentWillLoad(){l(this),this.isCaptionVisible=!!this.caption,g(this.element,"tooltip","duet-tooltip",1,!0),this.refresh()}connectedCallback(){p(this)}disconnectedCallback(){f(this)}async setFocus(t){this.multiselectElement&&this.multiselectElement.focus(t)}async selectWithValues(t){const e=this.processedItems.filter((e=>t.includes(e.value)));this.value=Array.from(new Set([...this.value,...e]))}async refresh(){const t=v(this.items);this.processedItems=[],this.processedGroups=[],t&&0!==t.length&&(this.processedGroups=void 0!==t[0].items?t:[{label:"",items:t}],this.processedGroups.forEach((t=>t.items.forEach((t=>this.processedItems.push(t))))))}render(){var t;return i(o,{key:"b8cb97bc0d21e85be3db01ef83438fcf7b4b5923",class:{"duet-m-0":"none"===this.margin,"duet-expand":this.expand}},i("div",{key:"d93b323c2643eac8e8c20914bbf67fe08d7bb117",class:{"duet-multiselect-container":!0,"duet-label-hidden":this.labelHidden,"duet-theme-turva":"turva"===this.theme,"duet-input-top-caption-shown":this.isCaptionVisible,"has-error":!!this.error},onKeyDown:t=>this.onMultiselectKeyDown(t)},i("duet-label",{key:"943b19c37d249d61065e1a61efb7641a2abf3f38",theme:"turva"===this.theme?"turva":"default",class:{"duet-has-tooltip":!!this.tooltip},color:this.labelColor,weight:this.labelWeight,id:this.labelId,for:this.identifier},this.label),this.tooltip&&i("duet-tooltip",{key:"c6cd56b231fdbe547f7ca92aea632eefa550f748",class:"duet-multiselect-tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),i("slot",{key:"1141d203347bf35375928fa88e20cf47ba9c7140",name:"tooltip"}),this.caption&&i("duet-caption",{key:"e1634b690e6ac67235b4720571d0ea596ba7e414",id:this.topCaptionId,size:"medium"},this.caption),i("div",{key:"b2d231bd277ea192e338aa42274665642bef854e",class:"duet-multiselect-wrapper"},i("button",{key:"807718e802825096cbc1cef4597d8cd2f44ffd71",id:this.identifier,ref:t=>this.multiselectElement=t,class:{"duet-multiselect":!0,"duet-multiselect-active":this.checkboxesVisible},tabindex:"0",onClick:()=>this.toggleCheckboxes(),onFocus:t=>this.onFocus(t),onBlur:t=>this.onBlur(t),role:"combobox","aria-expanded":this.checkboxesVisible?"true":"false","aria-haspopup":"listbox","aria-labelledby":this.labelId,"aria-describedby":this.getDescribedBy(),"aria-owns":`${this.identifier}-checkboxes`,onKeyDown:t=>this.onMultiselectInputKeyDown(t),disabled:this.disabled},i("span",{key:"b33e295a375ecae8c1a0f59af9fa1ac0e3a3a829",role:"textbox","aria-readonly":"true","aria-multiline":"false","aria-autocomplete":"none","aria-controls":`${this.identifier}-checkboxes`,"aria-label":this.placeholderLabel[this.language],class:"duet-multiselect-label"},this.placeholder),this.value&&this.value.length>0&&i("span",{key:"1f835b434209839e7f47d9c87815987f96a6e30a",class:"duet-multiselect-badge"},this.value.length,i("duet-visually-hidden",{key:"45b265df57cdc72a40695cd01fcf78c47dd5ddb1"},this.selectedLangObject[this.language],", ",this.value.map((t=>t.label)).join(", "))),i("svg",{key:"dd061d5dda63d16eb39f113f78cd0c5b6b3e0158",class:{"duet-multiselect-icon":!0,"duet-multiselect-icon--rotate":this.checkboxesVisible},fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},i("path",{key:"759232c06c78ac2c73bddc2afad5f4fce57f6667",d:"m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z"}))),i("div",{key:"7a4d4b2de7f4baac9066570471fdae9fa2bead13",id:`${this.identifier}-checkboxes`,role:"listbox",class:{"duet-multiselect-checkboxes":!0,"duet-multiselect-checkboxes-active":this.checkboxesVisible},"aria-activedescendant":this.activeDescendant,"aria-multiselectable":"true"},(null===(t=this.processedItems)||void 0===t?void 0:t.length)&&this.allControls&&i("div",{key:"69a2110105193b7a9b82c75ed856e6d8a9e8913e",class:"duet-multiselect-all-control-buttons"},i("button",{key:"ce760b620c954a99a9fe0fa65957d8601ad066c5",class:"duet-multiselect-select-all",onClick:this.handleSelectAllClick,id:this.getOptionIdentifier(-2),onKeyDown:t=>this.onCheckboxKeyDown(t,-2)},this.selectAllLabel[this.language]),i("button",{key:"3901f1df01f58804fd5d76a83198b514fd0afdf9",class:"duet-multiselect-clear-all",onClick:this.handleClearAllClick,id:this.getOptionIdentifier(-1),onKeyDown:t=>this.onCheckboxKeyDown(t,-1)},this.clearAllLabel[this.language])),this.processedItems&&this.processedGroups.map((t=>i("fieldset",null,t.label&&i("legend",null,t.label),t.items.map(((t,e)=>{var o,s;return i("duet-checkbox",{identifier:this.getOptionIdentifier(e),role:"option",label:t.label,value:t.value,key:t.value,checked:null===(o=this.value)||void 0===o?void 0:o.includes(t),"accessible-selected":(null===(s=this.value)||void 0===s?void 0:s.includes(t))?"true":void 0,disabled:!this.checkboxesVisible||t.disabled,onDuetChange:e=>this.toggleCheckbox(e,t),onKeyDown:t=>this.onCheckboxKeyDown(t,e),theme:this.theme})}))))))),i("span",{key:"cb7b91a522d2bf121f1f140298aea0c00920c24d",class:"duet-multiselect-help duet-multiselect-error",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&i("span",{key:"6070367e449abc5319b659fb95abb83fa0ee06e9"},this.error))))}get element(){return s(this)}static get watchers(){return{items:["refresh"]}}};x.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;max-width:100%;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}:host.duet-expand{width:100% !important}}:host(.duet-m-0){margin:0 !important}.duet-multiselect-tooltip,::slotted(duet-tooltip){position:absolute;top:12px;right:0}@media (min-width: 48em){.duet-multiselect-tooltip,::slotted(duet-tooltip){position:relative;top:4px;right:auto}}.duet-multiselect-placeholder{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-multiselect-container{position:relative;width:100%}.duet-multiselect-wrapper{position:relative;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.25}.duet-theme-turva .duet-multiselect-wrapper{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-multiselect{display:flex;align-items:center;justify-content:flex-start;width:100%;min-width:8rem;padding:12px 14px !important;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.5;color:rgb(8, 42, 77);text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:4px;transition:150ms ease}.duet-multiselect .duet-multiselect-label{overflow:hidden;text-overflow:ellipsis}.duet-multiselect:hover{border-color:rgb(127, 150, 165);box-shadow:0 0 0 1px #909599}.duet-theme-turva .duet-multiselect:hover{border-color:rgb(143, 147, 158);box-shadow:0 0 0 1px #747475}.has-error .duet-multiselect:hover{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-multiselect:hover{box-shadow:0 0 0 1px #e55039}.duet-multiselect:focus,.duet-multiselect.duet-multiselect-active{border-color:rgb(0, 119, 179);outline:0;box-shadow:0 0 0 1px #0077b3 !important;transition:none}.duet-theme-turva .duet-multiselect:focus,.duet-theme-turva .duet-multiselect.duet-multiselect-active{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.has-error .duet-multiselect:focus,.has-error .duet-multiselect.duet-multiselect-active{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-multiselect:focus,.duet-theme-turva.has-error .duet-multiselect.duet-multiselect-active{box-shadow:0 0 0 1px #e55039}.duet-multiselect[disabled]{color:rgb(8, 42, 77) !important;cursor:default !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important;box-shadow:none !important;opacity:1 !important;-webkit-text-fill-color:rgb(8, 42, 77) !important}.duet-theme-turva .duet-multiselect[disabled]{color:rgb(23, 28, 58) !important;background:rgb(245, 247, 250) !important;border-color:rgb(245, 247, 250) !important;-webkit-text-fill-color:rgb(23, 28, 58) !important}.duet-multiselect>:first-child{flex:1;min-height:24px}.duet-multiselect .duet-multiselect-badge{padding:4px 8px 4px;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.75rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);background:#d9ebf4;border-radius:20rem}.duet-theme-turva .duet-multiselect .duet-multiselect-badge{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-weight:700;color:rgb(23, 28, 58);background:#e8e8eb}.duet-multiselect .duet-multiselect-icon{margin-left:12px}.has-error .duet-multiselect{border-color:rgb(214, 28, 82) !important}.has-error .duet-multiselect .duet-multiselect-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-multiselect{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-multiselect .duet-multiselect-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva .duet-multiselect{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);border-color:rgb(143, 147, 158)}.duet-multiselect svg{width:20px;height:20px;color:rgb(8, 42, 77);pointer-events:none}.duet-theme-turva .duet-multiselect svg{color:rgb(23, 28, 58)}.duet-multiselect svg.duet-multiselect-icon--rotate{transform:rotate(180deg)}.duet-multiselect-checkboxes{position:absolute;z-index:700;width:100%;padding:16px;margin:8px 0 0;visibility:hidden;background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-radius:4px;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right}.duet-theme-turva .duet-multiselect-checkboxes{background:rgb(255, 255, 255);border-color:rgb(222, 224, 228);box-shadow:0 4px 10px 0 rgba(23, 28, 58, 0.15)}.duet-multiselect-checkboxes.duet-multiselect-checkboxes-active{visibility:visible;opacity:1;transition-property:transform, opacity;transform:scale(1.0001) translateZ(0) translateY(0)}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons{padding:8px 0;margin:-16px;margin-bottom:16px;border-bottom:1px solid rgb(212, 223, 229)}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button{padding:6px 16px;margin:-4px 0;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:600;color:rgb(0, 119, 179);cursor:pointer;border-radius:4px}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:focus,.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:first-child{border-right:1px solid rgb(212, 223, 229)}.duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons 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(198, 12, 48)}.duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:hover{color:rgb(23, 28, 58)}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:hover{color:rgb(8, 42, 77)}.duet-multiselect-checkboxes fieldset{margin-top:8px;margin-bottom:12px}.duet-multiselect-checkboxes fieldset+fieldset{margin-top:28px}.duet-multiselect-checkboxes legend{margin-bottom:12px;font-size:1rem;font-weight:600}.duet-multiselect-help{display:block;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(98, 121, 138);border-radius:4px}.duet-multiselect-help span{display:block;margin-top:8px}.duet-theme-turva .duet-multiselect-help{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(143, 147, 158)}.has-error .duet-multiselect-help{color:rgb(214, 28, 82)}.duet-theme-turva.has-error .duet-multiselect-help{color:rgb(214, 28, 82)}.duet-label-hidden duet-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}:host(.duet-theme-turva2) .duet-theme-turva .duet-multiselect:focus,:host(.duet-theme-turva2) .duet-theme-turva .duet-multiselect.duet-multiselect-active{border-color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .duet-multiselect[disabled]{color:#172a3b !important;background:#f5f6f7 !important;border-color:#f5f6f7 !important;-webkit-text-fill-color:#172a3b !important}:host(.duet-theme-turva2) .duet-theme-turva .duet-multiselect{color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .duet-multiselect svg{color:#172a3b}:host(.duet-theme-turva2) .duet-theme-turva .duet-multiselect .duet-multiselect-badge{color:#172a3b;background:#e8eaeb}:host(.duet-theme-turva2) .duet-theme-turva .duet-multiselect-checkboxes{border-color:#d4dde2}:host(.duet-theme-turva2) .duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button{color:#e61740}:host(.duet-theme-turva2) .duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:hover{color:#172a3b}';export{x as duet_multiselect}
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(t,e,a,i){function d(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,n){function r(t){try{o(i.next(t))}catch(t){n(t)}}function l(t){try{o(i["throw"](t))}catch(t){n(t)}}function o(t){t.done?a(t.value):d(t.value).then(r,l)}o((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,d,n,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(t){return function(e){return o([t,e])}}function o(l){if(i)throw new TypeError("Generator is already executing.");while(r&&(r=0,l[0]&&(a=0)),a)try{if(i=1,d&&(n=l[0]&2?d["return"]:l[0]?d["throw"]||((n=d["return"])&&n.call(d),0):d.next)&&!(n=n.call(d,l[1])).done)return n;if(d=0,n)l=[l[0]&2,n.value];switch(l[0]){case 0:case 1:n=l;break;case 4:a.label++;return{value:l[1],done:false};case 5:a.label++;d=l[1];l=[0];continue;case 7:l=a.ops.pop();a.trys.pop();continue;default:if(!(n=a.trys,n=n.length>0&&n[n.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]<n[3])){a.label=l[1];break}if(l[0]===6&&a.label<n[1]){a.label=n[1];n=l;break}if(n&&a.label<n[2]){a.label=n[2];a.ops.push(l);break}if(n[2])a.ops.pop();a.trys.pop();continue}l=e.call(t,a)}catch(t){l=[6,t];d=0}finally{i=n=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,a){if(a||arguments.length===2)for(var i=0,d=e.length,n;i<d;i++){if(n||!(i in e)){if(!n)n=Array.prototype.slice.call(e,0,i);n[i]=e[i]}}return t.concat(n||Array.prototype.slice.call(e))};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */System.register(["./p-a3ea8aa0.system.js","./p-f50d1845.system.js","./p-41982d26.system.js","./p-752fa0fc.system.js","./p-a142a88f.system.js","./p-64959c1d.system.js","./p-59777da7.system.js","./p-e6b5a1c7.system.js","./p-98636086.system.js","./p-2ca74bdf.system.js"],(function(t){"use strict";var e,a,i,d,n,r,l,o,s,u,h,f,b,c,p,m,g,v,y,x,w,k,_;return{setters:[function(t){e=t.h;a=t.r;i=t.c;d=t.H;n=t.g;r=t.F},function(t){l=t.i},function(t){o=t.f;s=t.d},function(t){u=t.i},function(t){h=t.a;f=t.c;b=t.d;c=t.g;p=t.s},function(t){m=t.p;g=t.s},function(t){v=t.b;y=t.a},function(t){x=t.c},function(t){w=t.p},function(t){k=t.g;_=t.a}],execute:function(){var T=function(t,a){var i=t.data,d=t.groupId,n=t.alignment;var r="duet-editable-table duet-editable-table-content-".concat(d);if(typeof i==="string"){return e("td",{innerHTML:i,class:r,part:"".concat(d,"content"),style:{verticalAlign:n}})}else{return e("td",{class:r,part:"".concat(d,"content"),style:{verticalAlign:n}},i)}};var j=".sc-duet-editable-table-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-editable-table-actions-menu.sc-duet-editable-table{position:relative;padding:0 !important;margin:0}.duet-editable-table-actions-menu-button.sc-duet-editable-table{position:relative;right:-16px;float:right;padding:0}.duet-editable-table-actions-menu-icon.sc-duet-editable-table .duet-icon.sc-duet-editable-table{max-width:16px;max-height:16px}.duet-editable-table-row.duet-table-action-row.sc-duet-editable-table .duet-text-right.sc-duet-editable-table{text-align:right}.duet-editable-table-header.sc-duet-editable-table tr.sc-duet-editable-table .duet-editable-table-header-hidden.sc-duet-editable-table{padding:0 !important;font-size:0;border-bottom:0}";var E=j;var S=t("duet_editable_table",function(){function t(t){var e=this;a(this,t);this.duetTableToggle=i(this,"duetTableToggle",7);this.duetMenuClick=i(this,"duetMenuClick",7);this.hasHeadSlotFirst=false;this.hasHeadSlotLast=false;this.hasFootSlot=false;this.sortableDefaultLabel={fi:"Järjestä",en:"Click to sort",sv:"Klicka för att sortera"};this.actionColumnLabel={en:"Actions for rows",fi:"Toiminnot rivillä",sv:"Åtgärder för rader"};this.toggleColumn=function(t,a){a.preventDefault();var i=t.sort_order,d=t.direction,n=t.index,r=t.key;e.duetTableToggle.emit({sort_order:i,index:n,direction:d,key:r,component:"duet-editable-table",originalEvent:a})};this.handleKeyDown=function(t,a){if(u(a)){e.toggleColumn(t,a)}};this.language=h();this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.actions=undefined;this.columns=undefined;this.rows=undefined;this.sortable=false;this.groupId="";this.theme="";this.accessibleRole=undefined;this.hideHeadVisually=false}t.prototype.componentWillLoad=function(){l(this);this.hasHeadSlotFirst=!!this.element.querySelector("[slot='thead-first']");this.hasHeadSlotLast=!!this.element.querySelector("[slot='thead-last']");this.hasFootSlot=!!this.element.querySelector("[slot='tfoot']")};t.prototype.connectedCallback=function(){f(this)};t.prototype.disconnectedCallback=function(){b(this)};t.prototype.createLabel=function(t){var a=this;var i=t.sort_order,d=t.direction,n=t.index,r=t.label;var l=c(r);if(!this.sortable){return l}var o=function(){if(!!i&&d===1){return"action-arrow-down-small"}else if(!!i&&d===-1){return"action-arrow-up-small"}return"action-subtract-small"};return e("span",{class:"duet-table-label","data-index":n},e("duet-button",{size:"small",icon:o(),"icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":true,onClick:function(e){return a.toggleColumn(t,e)},onKeyDown:function(e){return a.handleKeyDown(t,e)}},l))};t.prototype.getSortedColumns=function(){return __spreadArray([],this.columns,true).sort(o(["index"]))};t.prototype.getRowSortOrder=function(){var t=__spreadArray([],this.columns,true).sort(o(["sort_order"]));return t.filter((function(t){return t.sort_order})).map((function(t){return t.direction===-1?"-".concat(t.key):t.key}))};t.prototype.renderTableHeader=function(){var t=this;if(!this.columns){return}var a=this.getSortedColumns();return e("tr",{class:{"duet-table-action-header":!!this.actions}},a.map((function(a){if(a.display!==false){var i=t.createLabel(a);return i!==""?e("th",{scope:"col"},i):e("td",null)}})),this.actions&&e("th",{scope:"col",class:"duet-table-action-header-heading"},this.actions&&e("duet-visually-hidden",null,this.actionColumnLabel[this.language])))};t.prototype.renderActions=function(t,a){var i=this;if(!this.actions){return}return e("td",{class:"duet-text-right"},this.actions.map((function(d){return e("duet-action-button",{actionMeta:Object.assign({},(t===null||t===void 0?void 0:t.meta)||{},{index:a}),actionId:(t===null||t===void 0?void 0:t.uid)||(t===null||t===void 0?void 0:t.id)||null,actionName:d.name,theme:i.theme,iconName:d.icon,iconColor:d.color,iconSize:d.size,background:d.background,"accessible-label":"".concat(t.actionDescription||""," ").concat(c(d.label)," ")})})))};t.prototype.renderTableBody=function(){var t=this;var a=this.getSortedColumns();var i=this.getRowSortOrder();var d=__spreadArray([],this.rows,true).sort(o(i));return d.map((function(i,d){var n;return e("tr",{class:(n={"duet-table-action-row":!!t.actions,"duet-editable-table-row":true},n["duet-editable-table-row-".concat(t.groupId)]=true,n),"data-meta":JSON.stringify(i.meta)},a.map((function(a){var d=i[a.key]?i[a.key]:i.item;if(a.display!==false){return e(T,{data:d,groupId:t.groupId})}})),t.actions&&t.renderActions(i,d))}))};t.prototype.render=function(){var t;return e(d,{class:(t={},t["duet-editable-table-".concat(this.variation)]=true,t["duet-editable-table"]=true,t["duet-editable-table-".concat(this.theme)]=true,t["duet-editable-table-scrollable"]=this.breakpoint==="none-scrollable",t["duet-editable-table-sortable"]=this.sortable,t["duet-editable-table-actions"]=!!this.actions,t["duet-m-0"]=this.margin==="none",t["duet-theme-turva"]=this.theme==="turva",t)},e("duet-table",{class:"duet-editable-table-table",sticky:this.sticky,stickyDistance:this.stickyDistance,margin:this.margin,theme:this.theme,variation:this.variation,breakpoint:this.breakpoint,"hide-head-visually":this.hideHeadVisually},e("table",{role:this.accessibleRole},e("caption",null,e("slot",{name:"tcaption"})),e("thead",null,this.hasHeadSlotFirst&&e("tr",null,e("td",{class:"duet-editable-table-actions-menu",colSpan:99},e("slot",{name:"thead-first"}))),this.renderTableHeader(),this.hasHeadSlotLast&&e("tr",null,e("td",{class:"duet-editable-table-actions-menu",colSpan:99},e("slot",{name:"thead-last"})))),e("tbody",null,this.renderTableBody()),this.hasFootSlot&&e("tfoot",null,e("tr",null,e("td",{class:"duet-editable-table-footer-menu",colSpan:99},e("slot",{name:"tfoot"})))))))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());S.style=E;var L='duet-table{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;font-variant-numeric:tabular-nums}duet-table table,duet-table thead,duet-table tbody,duet-table tfoot,duet-table th,duet-table td,duet-table tr{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}duet-table.duet-m-0{margin:0 !important}duet-table table{width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;text-align:left;border-spacing:0;border-collapse:separate}duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead,duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead *{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}duet-table.duet-theme-turva table{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}duet-table td{-webkit-hyphens:auto;hyphens:auto;color:rgb(8, 42, 77)}duet-table.duet-theme-turva td{color:rgb(23, 28, 58)}duet-table th{font-weight:600;line-height:1.25;color:rgb(98, 121, 138);text-align:left}duet-table.duet-theme-turva th{color:rgb(143, 147, 158)}duet-table tbody th{font-weight:600;color:rgb(8, 42, 77)}duet-table.duet-theme-turva tbody th{color:rgb(23, 28, 58)}duet-table .duet-table-action-row td:last-child{justify-self:end;padding-right:20px !important;white-space:nowrap}duet-table span.duet-table-cell-heading{display:none}.duet-table-flattened table,.duet-table-flattened thead,.duet-table-flattened tbody,.duet-table-flattened tfoot,.duet-table-flattened th,.duet-table-flattened td,.duet-table-flattened tr{display:block}.duet-table-flattened thead tr{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}.duet-table-flattened td{line-height:1.25}.duet-table-flattened td:not(:last-child){margin-bottom:16px !important}.duet-table-flattened td span.duet-table-cell-heading{margin-bottom:4px !important;display:block;font-size:1rem;font-weight:600;color:rgb(8, 42, 77)}.duet-table-flattened.duet-theme-turva td span.duet-table-cell-heading{color:rgb(23, 28, 58)}.duet-table-flattened tbody td,.duet-table-flattened tbody th,.duet-table-flattened tfoot td{padding:0 !important;text-align:left !important}.duet-table-flattened tbody th{font-weight:600;line-height:1.25;color:rgb(98, 121, 138);text-align:left}.duet-table-sticky thead th,.duet-table-sticky thead td{position:sticky;top:0;background:rgb(255, 255, 255)}.duet-table-striped td,.duet-table-striped th{padding:20px !important}@media (max-width: 35.9375em){.duet-table-striped td,.duet-table-striped th{padding:20px 12px !important}}.duet-table-striped tbody th{background:rgb(255, 255, 255)}.duet-table-striped.duet-table-sticky thead th,.duet-table-striped.duet-table-sticky thead td{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-table-sticky.duet-theme-turva thead th,.duet-table-striped.duet-table-sticky.duet-theme-turva thead td{border-bottom-color:rgb(222, 224, 228)}.duet-table-striped tbody:not(:first-of-type) th{padding-top:40px !important}.duet-table-striped tbody:only-of-type tr:nth-of-type(odd){background:rgba(4, 81, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(4, 81, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tfoot td{border-top:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-theme-turva tfoot td{border-top-color:rgb(222, 224, 228)}.duet-table-striped.duet-table-flattened tbody:not(:first-of-type) th{padding-top:20px !important}.duet-table-striped.duet-table-flattened tr{padding:20px !important}.duet-table-striped.duet-table-flattened tfoot td{border-top:0}.duet-table-striped.duet-table-flattened tfoot tr{border-top:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:rgb(222, 224, 228)}.duet-table-fixed th,.duet-table-minimal th,.duet-table-plain th,.duet-table-fixed thead td,.duet-table-minimal thead td,.duet-table-plain thead td{padding:16px !important;border-bottom:1px solid rgb(98, 121, 138)}.duet-table-fixed th:first-child,.duet-table-minimal th:first-child,.duet-table-plain th:first-child,.duet-table-fixed thead td:first-child,.duet-table-minimal thead td:first-child,.duet-table-plain thead td:first-child{padding-left:0 !important}.duet-table-fixed th:last-child,.duet-table-minimal th:last-child,.duet-table-plain th:last-child,.duet-table-fixed thead td:last-child,.duet-table-minimal thead td:last-child,.duet-table-plain thead td:last-child{padding-right:0 !important}.duet-theme-turva.duet-table-fixed th,.duet-theme-turva.duet-table-minimal th,.duet-theme-turva.duet-table-plain th,.duet-theme-turva.duet-table-fixed thead td,.duet-theme-turva.duet-table-minimal thead td,.duet-theme-turva.duet-table-plain thead td{border-bottom-color:rgb(113, 118, 132)}.duet-table-fixed tbody th,.duet-table-minimal tbody th,.duet-table-plain tbody th{padding-top:40px !important;border-bottom-color:rgb(212, 223, 229)}.duet-theme-turva.duet-table-fixed tbody th,.duet-theme-turva.duet-table-minimal tbody th,.duet-theme-turva.duet-table-plain tbody th{border-bottom-color:rgb(222, 224, 228)}.duet-table-fixed td,.duet-table-minimal td,.duet-table-plain td{padding:16px !important}.duet-table-fixed td:first-child,.duet-table-minimal td:first-child,.duet-table-plain td:first-child{padding-left:0 !important}.duet-table-fixed td:last-child,.duet-table-minimal td:last-child,.duet-table-plain td:last-child{padding-right:0 !important}.duet-table-fixed tbody td,.duet-table-minimal tbody td,.duet-table-plain tbody td{border-bottom:1px solid rgb(212, 223, 229)}.duet-theme-turva.duet-table-fixed tbody td,.duet-theme-turva.duet-table-minimal tbody td,.duet-theme-turva.duet-table-plain tbody td{border-bottom-color:rgb(222, 224, 228)}.duet-table-flattened.duet-table-fixed tbody:first-of-type th,.duet-table-flattened.duet-table-minimal tbody:first-of-type th,.duet-table-flattened.duet-table-plain tbody:first-of-type th{padding-top:0 !important}.duet-table-flattened.duet-table-fixed td,.duet-table-flattened.duet-table-minimal td,.duet-table-flattened.duet-table-plain td,.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{border-bottom:0}.duet-table-flattened.duet-table-fixed tr,.duet-table-flattened.duet-table-minimal tr,.duet-table-flattened.duet-table-plain tr{padding:20px 0 !important}.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{padding-top:20px !important}.duet-table-flattened.duet-table-fixed tfoot td,.duet-table-flattened.duet-table-minimal tfoot td,.duet-table-flattened.duet-table-plain tfoot td{margin-bottom:4px !important}.duet-table-flattened.duet-table-fixed tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-minimal tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-plain tbody:not(:only-of-type) tr:first-child{border-bottom:0}.duet-table-plain.duet-table-flattened tbody tr{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:rgb(222, 224, 228)}.duet-table-minimal tbody tr,.duet-table-minimal tbody tr td{vertical-align:top;border-bottom:0 none}.duet-table-minimal tbody tr:last-of-type,.duet-table-minimal tbody tr:last-of-type td{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-minimal.duet-table-flattened tbody tr,.duet-table-minimal.duet-table-flattened tbody tr td{border-bottom:0 none}.duet-table-minimal.duet-table-flattened tbody tr td[data-heading]::before{display:none}.duet-table-minimal.duet-table-flattened tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-fixed table{table-layout:fixed}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td,.duet-table-fixed tbody tr td:first-child{padding:4px !important;vertical-align:text-bottom;border-bottom:0 none}.duet-table-fixed thead{display:none}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td{border-bottom:0 none}.duet-table-fixed:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-fixed:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-scrollable{position:relative;width:100%;overflow-x:auto;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0)), linear-gradient(-90deg, #fff 0%, rgba(255, 255, 255, 0)) 100% 0, radial-gradient(farthest-side at 0% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)) 100% 0%;background-repeat:no-repeat;background-attachment:local, local, scroll, scroll;background-size:100px 100%, 100px 100%, 12px 100%, 12px 100%}.duet-table-selected-column{background:rgba(0, 119, 179, 0.08)}.duet-theme-turva .duet-table-selected-column{background:rgba(113, 118, 132, 0.08)}.duet-table-sortable tbody tr td:first-child,.duet-table-sortable thead tr th:first-child{padding:20px}.duet-table-sortable:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-sortable:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-actions table{table-layout:auto}.duet-table-actions thead th:last-child{width:1px;white-space:nowrap}.duet-editable-table-table.duet-table-flattened tr{display:grid;grid-template-columns:repeat(2, 1fr);grid-auto-rows:auto;gap:10px}.duet-editable-table-table.duet-table-flattened tr.duet-table-action-row td:last-child::before{padding:0;content:""}.duet-editable-table-table.duet-table-flattened td{grid-column:1/2}.duet-editable-table-table.duet-table-flattened td:first-child{grid-row:1;grid-column:1}.duet-editable-table-table.duet-table-flattened td:last-child{grid-row:1;grid-column:2}duet-table.duet-theme-turva2.duet-theme-turva td{color:#172a3b}duet-table.duet-theme-turva2.duet-theme-turva tbody th{color:#172a3b}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva.duet-table-sticky thead th,duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva.duet-table-sticky thead td{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 42, 59, 0.04)}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 42, 59, 0.04)}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tfoot td{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody th,duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody td{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody td{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-fixed.duet-theme-turva:not(.duet-table-flattened) tfoot{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-sortable.duet-theme-turva:not(.duet-table-flattened) tfoot{border-top-color:#fbe1d1}';var z=L;var A={none:0,"with-links":parseFloat(m)*16,"without-links":parseFloat(g)*16};var F=t("duet_table",function(){function t(t){var e=this;a(this,t);this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)";this.handleMediaQueryChange=function(t){e.matchesBreakpoint=v.includes(e.breakpoint)?!t.matches:t.matches};this.matchesBreakpoint=true;this.language=h();this.theme=undefined;this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.hideHeadVisually=false}t.prototype.watchLanguageStateHandler=function(t,e){var a=this;if(t!==e){setTimeout((function(){return a.copyHeadingsToCells()}),50)}};t.prototype.connectedCallback=function(){var t=this;var e=this.breakpoint==="none"||this.breakpoint==="none-scrollable"?"all":y[this.breakpoint];this.mq=matchMedia(e);this.mq.addEventListener("change",s(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);this.observer=new MutationObserver((function(){return s(t.copyHeadingsToCells(),50)}));this.observer.observe(this.element,{childList:true,subtree:true})};t.prototype.componentWillLoad=function(){l(this);this.copyHeadingsToCells();if(this.sticky&&this.breakpoint==="none-scrollable"){console.warn('[DUET WARNING]: sticky and breakpoint="none-scrollable" are incompatible. Scrollable takes precedence')}if(this.sticky){var t=A[this.stickyDistance];var e=this.element.querySelectorAll(this.headingSelector);e.forEach((function(e){return e.style.top="".concat(t,"px")}))}};t.prototype.componentDidLoad=function(){this.observer?this.observer.takeRecords():null;f(this)};t.prototype.disconnectedCallback=function(){this.observer.disconnect();this.observer=null;this.mq.removeListener(this.handleMediaQueryChange);this.mq=null;this.matchesBreakpoint=true;b(this)};t.prototype.copyHeadingsToCells=function(){var t=this.element.querySelectorAll(this.headingSelector);var e=this.element.querySelectorAll("tbody tr");var a=Array.from(t).map((function(t){return t.textContent.trim()}));e.forEach((function(t){t.querySelectorAll("td").forEach((function(t,e){if(a[e]){var i=t.querySelector(".duet-table-cell-heading");if(!i||i.textContent!==a[e]){i===null||i===void 0?void 0:i.remove();var d=document.createElement("span");d.textContent=a[e];d.classList.add("duet-table-cell-heading");d.setAttribute("aria-hidden","true");d.inert=true;t.prepend(d)}}}))}))};t.prototype.render=function(){var t;return e(d,{key:"147da4a8e086100e74e07d3bdb773b73b53072ec",class:(t={},t["duet-table-".concat(this.variation)]=true,t["duet-table-flattened"]=!this.matchesBreakpoint,t["duet-table-sticky"]=this.matchesBreakpoint&&this.sticky,t["duet-table-scrollable"]=this.breakpoint==="none-scrollable",t["duet-m-0"]=this.margin==="none",t["duet-theme-turva"]=this.theme==="turva",t["duet-table-hide-head-visually"]=this.hideHeadVisually,t)},e("slot",{key:"127854a0ecfcd4b3debf08383af581e80dce62b7"}))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{language:["watchLanguageStateHandler"]}},enumerable:false,configurable:true});return t}());F.style=z;var M=[{type:"default",system_message:"unknown error",message:{fi:"Tapahtui tuntematon virhe, ole hyvä ja yritä uudelleen.",sv:"Ett okänt fel uppstod, försök igen.",en:"An unknown error occured, please try again."}},{type:"400",system_message:"Bad Request: The server could not understand the request due to invalid syntax.",message:{fi:"Tiedostoa ei hyväksytty.",sv:"Servern avvisade din fil.",en:"The server rejected your file."}},{type:"401",system_message:"Not Authenticated: The client must authenticate itself to get the requested response...",message:{fi:"Vain kirjautunut käyttäjä voi lähettää tiedostoja.",sv:"Du måste vara inloggad för att ladda upp filer.",en:"You need to be logged in to upload files."}},{type:"403",system_message:"No Access: The client does not have access rights to the content.",message:{fi:"Ei oikeuksia lähettää tiedostoja.",sv:"Du har inte rätt åtkomsträttigheter för att ladda upp filer.",en:"You do not have the correct access rights to upload files."}},{type:"413",system_message:"Payload too large",message:{fi:"Tiedosto oli liian vastaanotettavaksi.",sv:"Filen var för stor för servern att hantera.",en:"The file was to large for the server to handle."}},{type:"415",system_message:"Unsupported media type",message:{fi:"Tiedoston tyyppi oli väärä.",sv:"Servern avvisade filen eftersom den hade fel typ.",en:"The server rejected the file because it had the wrong type."}},{type:"429",system_message:"Too many request from same address",message:{fi:"Liian monta yritystä, ole hyvä ja yritä myöhemmin uudelleen.",sv:"Servern har fått många förfrågningar från dig, försök igen senare.",en:"The server has received to many request from you, please try again later."}},{type:"500",system_message:"Internal Server Error",message:{fi:"Palvelin ilmoitti tuntemattomasta virheestä ja lataus epäonnistui.",sv:"Servern rapporterade ett okänt fel och uppladdningen misslyckades.",en:"The server reported an unknown error and the upload failed."}},{type:"duet-upload-100",system_message:"File extension not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den type.",en:"You cannot upload files with that extension."}},{type:"duet-upload-001",system_message:"File transfer failed",message:{fi:"Tiedoston lähetys keskeytyi, ole hyvä ja yritä uudelleen.",sv:"Din anslutning till servern avbröts, försök igen.",en:"Your connection to the server was interrupted, try again."}},{type:"duet-upload-101",system_message:"File mimetype not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den typ.",en:"You cannot upload files of that type."}},{type:"duet-upload-201",system_message:"File is too large",message:{fi:"Tiedosto on liian iso.",sv:"Filen är större än tillåtet.",en:"The file is larger than permitted."}},{type:"duet-upload-202",system_message:"The combined size of all files is too large",message:{fi:"Tiedostojen yhteenlaskettu koko on liian iso.",sv:"Du har nått den maximala kombinerade filstorleken.",en:"You have reached the maximum combined filesize."}},{type:"duet-upload-203",system_message:"Files to upload exceed total byte size limit",message:{fi:"Yritit lisätä tiedostoja, jotka ylittäisivät suurimman sallitun yhteenlasketun koon.",sv:"Du försökte lägga till filer som skulle överskrida den maximala kombinerade storleken.",en:"You tried to add files that would exceed the maximum combined size."}},{type:"duet-upload-301",system_message:"The maximum file limit has been reached",message:{fi:"Liitteiden maksimimäärä saavutettu.",sv:"Maximalt antal bilagor har uppnåtts.",en:"Maximum number of attachments reached."}},{type:"duet-upload-302",system_message:"Files to upload exceeds limits",message:{fi:"Et voi lähettää enempää kuin enimmäismäärän liitteitä.",sv:"Du kan inte ladda upp fler än det maximala antalet bilagor.",en:"You can't upload more than maximum number of attachments."}}];var U={fi:"Liiteluettelo",sv:"Lista över bilagor",en:"Attachments list"};var D=function(t){var a=t.label,i=t.categoryLabel;return e("div",{class:"items-header",tabindex:"-1","aria-label":c(U)},i&&e("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},c(i)),e("duet-heading",{class:{"filename-header":true,"no-category":!i},border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},c(a)))};var C=function(t,e){if(!e){return true}var a=t.split(".");var i=e.split(",");var d=a[a.length-1];return i.includes(d)};var P=function(t,e){if(!e||!t){return true}var a=e.split(",");var i=false;a.forEach((function(e){var a=e.split("/");var d=t.split("/");if(a[0]===d[0]&&(a[1]===d[1]||a[1]==="*")){i=true}}));return i};var I=function(t,e){if(!e||!t){return true}return e>=t};var O=function(t,e,a){var i=e.allowedMimetypes,d=e.allowedExtensions,n=e.maxBytes;var r=false;var l=k("default",a);if(t){var o=t.name,s=t.type,u=t.size;var h=P(s,i);var f=d==="all"||d===""||d===" "||d===undefined?true:C(o.toLowerCase(),d);var b=I(u,n);if(!h){l=k("duet-upload-101",a)}if(!f){l=k("duet-upload-100",a)}if(!b){l=k("duet-upload-201",a)}r=h&&f&&b}else{r=false}return{valid:r,errorMessage:r?undefined:c(l.message),errorSystem:r?undefined:l.system_message,errorType:r?undefined:l.type}};var W=function(t,e){var a=0;if(e){t.forEach((function(t){if(t.valid&&t.size){a+=t.size}}));if(a>=e){return true}}return false};var R=function(t,e){var a=0;if(e){t.forEach((function(t){if(t.valid){a++}}));if(a>=e){return true}}return false};var N=function(t,e,a){if(t+e>a){return true}return false};var Y=function(t,e,a){var i=0;if(a){t.forEach((function(t){if(t.valid&&t.size){i+=t.size}}));e.forEach((function(t){if(t.size){i+=t.size}}));if(i>=a){return true}}return false};var q=function(t){var e=t.payload,a=t.options,i=t.onFailure,d=t.onSuccess,n=t.onProgress;var r=a.type,l=r===void 0?"POST":r,o=a.xhr,s=a.uri,u=a.argument,h=u===void 0?null:u,f=a.headers,b=f===void 0?null:f;o.open(l,"".concat(s).concat(h||""),true);var c=e.data,p=e.name;if(b){Object.keys(b).forEach((function(t){o.setRequestHeader(t,b[t])}))}if(l==="POST"){o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE&&o.status>=200&&o.status<300){d(o,p,o.status)}if(o.readyState===XMLHttpRequest.DONE&&o.status>=300&&o.status<999){i(o,p,o.status)}};n(p)}o.send(c);return o};var B="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}::slotted([slot=uploadfooter]){margin-top:20px}.duet-upload{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}duet-paragraph::part(duet-paragraph){word-break:break-word}duet-editable-table tfoot{display:none}.upload-bottom-caption{margin-top:12px;margin-bottom:16px;line-height:1.4rem}.items-header{display:none;flex-direction:row;margin-bottom:0}@media (min-width: 36em){.items-header{display:flex}}.items-header:not(:last-child),.items-header:not(:first-child){margin-top:12px}.items-header .category-header{width:35%}.items-header .filename-header{width:65%}.items-header .filename-header.no-category{width:100%}.upload-item-row{display:flex;flex-direction:column;gap:16px;align-content:center;align-items:center;padding:16px 0 16px 0;border-bottom:1px solid rgb(212, 223, 229)}@media (min-width: 36em){.upload-item-row{flex-direction:row;gap:10px}}.upload-item-row .item-categories{width:100%}@media (min-width: 36em){.upload-item-row .item-categories{width:35%}}.upload-item-row .item-name{position:relative;bottom:2px;width:100%;text-align:left}@media (min-width: 36em){.upload-item-row .item-name{width:50%}.upload-item-row .item-name.no-category{width:85%}}.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:block}@media (min-width: 36em){.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:none}}.upload-item-row .item-actions{width:100%;margin-left:-8px;text-align:left}@media (min-width: 36em){.upload-item-row .item-actions{width:15%;padding-top:0;margin-left:auto;text-align:right}}.upload-item-row .duet-upload-item-name duet-icon{position:relative;top:4px}.upload-item-row .duet-upload-item-name duet-progress{display:block;margin-top:16px}";var H=B;var J=t("duet_upload",function(){function t(t){var d=this;a(this,t);this.duetChange=i(this,"duetChange",3);this.duetBlur=i(this,"duetBlur",7);this.duetFocus=i(this,"duetFocus",7);this.duetReady=i(this,"duetReady",7);this.duetDone=i(this,"duetDone",3);this.duetState=i(this,"duetState",3);this.duetDelete=i(this,"duetDelete",3);this.duetCancel=i(this,"duetCancel",3);this.duetProgress=i(this,"duetProgress",3);this.duetUpload=i(this,"duetUpload",3);this.linkClick=i(this,"linkClick",3);this.buttonId=x("DuetButton");this.labelId=x("DuetLabel");this.uploadId=x("DuetUpload");this.filesInProgress=new Map;this.fileMaxReached=false;this.bytesMaxReached=false;this.filesToUploadExceedsLimit=false;this.filesToUploadTotalSizeIsAboveMax=false;this.internalStatusMessageLabel=undefined;this.itemRefs=new Map;this.DefaultGroups={inprogress:"inprogress",success:"success",pending:"pending",failure:"failure"};this.kick=s((function(){d.tick=Date.now()}),30);this.categoryLabel={en:"Category",sv:"Filtyp",fi:"Tiedostotyyppi"};this.listenForActionEvents=function(){d.element.addEventListener("duetActionEvent",(function(t){var e=t.detail;var a=e.action,i=e.id,n=e.originalEvent;switch(a){case"delete":d.onDelete(i,n);break;case"cancel":d.onCancel(i,n);break}}))};this.verifyValidity=function(){var t=d.getFilesAsArray(),e=t.invalid,a=t.valid;var i=d.valid;d.valid=e.length===0&&a.length!==0;if(d.valid!==i){d.duetState.emit({originalEvent:undefined,data:{valid:d.valid,from:"componentWillRender"},component:"duet-upload"})}};this.getGroupFromItemData=function(t){if(t.valid&&t.progress===100){return d.DefaultGroups.success}else if(t.progress>0&&t.progress!==100){return d.DefaultGroups.inprogress}else if(!t.valid){return d.DefaultGroups.failure}else if(t.pending){return d.DefaultGroups.pending}else if(t.group){return t.group}else{return"none"}};this.mapFilesToUploadItems=function(t,a,i,n){if(a===d.DefaultGroups.success){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"success",data:t,showLinks:d.showLinks,linkClickEvent:d.emitEvent?d.linkClick:undefined,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(a===d.DefaultGroups.inprogress){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"inprogress",data:t,showLinks:d.showLinks,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(a===d.DefaultGroups.pending){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"pending",data:t,showLinks:d.showLinks,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(a===d.DefaultGroups.failure){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"failure",data:t,showLinks:d.showLinks,errorCodes:d.errorCodes,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(t.group){return t.html}else{return"none"}};this.genHashName=function(){return Date.now().toString(36)+Math.random()};this.updateValueInMap=function(t,e,a,i){if(i===void 0){i=true}try{var n=d.files.get(t);n[e]=a;d.files.set(t,n);if(d.external&&e!=="url"){d.trackProgress(t,e==="uploaded")}}catch(t){}if(i){d.kick()}};this.updateProgress=function(t,e){var a=function(a){d.updateValueInMap(e,"progress",a);d.onProgress(e,a,t)};if(t.lengthComputable){var i=t.loaded/t.total*100;a(i)}else{console.log("cant read progress")}};this.trackProgress=function(t,e){if(e===void 0){e=false}if(e){d.filesInProgress.delete(t)}else{d.filesInProgress.set(t,"inprogress")}if(d.filesInProgress.size===0){d.onDone()}};this.getFilesAsArray=function(){var t=[];var e=[];d.files.forEach((function(a){if(a.valid&&!a.deleted){t.push(a)}else if(!a.valid&&!a.deleted){e.push(a)}}));return{valid:t,invalid:e}};this.resetFormFields=function(){d.nativeInput.value=""};this.startUpload=function(t){var e=[];for(var a=1;a<arguments.length;a++){e[a-1]=arguments[a]}return __awaiter(d,__spreadArray([t],e,true),void 0,(function(t,e){var a,i,d;if(e===void 0){e=undefined}return __generator(this,(function(n){a=this.validateTotals(),i=a.bytesMaxReached,d=a.fileMaxReached;if(i||d){this.kick();return[2]}this.metaData=e;this.nativeInput.click();this.onUpload(t,e);t.stopPropagation();t.preventDefault();return[2]}))}))};this.transferComplete=function(t){d.updateValueInMap(t,"progress",100,false);d.trackProgress(t,true)};this.transferDone=function(t,e,a){d.updateValueInMap(e,"status",a,false);d.updateValueInMap(e,"uploaded",true,false);try{var i=JSON.parse(t.response);d.updateValueInMap(e,"url",i.url)}catch(t){d.updateValueInMap(e,"url",null);console.error("Server did not respond with expected response {url: string}")}return};this.transferDoneWithFailure=function(t,e,a){try{var i=JSON.parse(t.response).error;d.updateValueInMap(e,"error",{message:i.message,type:i.type},false)}catch(t){console.error("Server did not respond with expected response error:{message: string, type: int}");d.updateValueInMap(e,"error",{type:a},false)}d.updateValueInMap(e,"valid",false,true)};this.transferFailed=function(t){d.updateValueInMap(t,"error",_("duet-upload-001",d.errorCodes))};this.transferCanceled=function(t){d.files.delete(t);d.validateTotals(t);d.kick()};this.validateTotals=function(t){var e=W(d.files,d.maxBytesTotal);var a=R(d.files,d.maxFiles);if(e&&t){d.updateValueInMap(t,"error",_("duet-upload-202",d.errorCodes),false)}if(a&&t){d.updateValueInMap(t,"error",_("duet-upload-301",d.errorCodes),false)}d.bytesMaxReached=e;d.fileMaxReached=a;return{bytesMaxReached:e,fileMaxReached:a}};this.uploadFile=function(t){var e=[];for(var a=1;a<arguments.length;a++){e[a-1]=arguments[a]}return __awaiter(d,__spreadArray([t],e,true),void 0,(function(t,e,a){var i,d,n;if(e===void 0){e=false}return __generator(this,(function(r){switch(r.label){case 0:if(!e&&this.deferUpload){this.updateValueInMap(t.item.name,"pending",true,false);this.updateValueInMap(t.item.name,"group","pending",true)}else if(e){this.updateValueInMap(t.item.name,"pending",false,false);this.updateValueInMap(t.item.name,"group",undefined,true)}r.label=1;case 1:r.trys.push([1,4,,5]);if(!(!this.deferUpload||e))return[3,3];i=new FormData;i.append("file",t.item);if(a){i.append("key",a)}i.append("uid",t.uid);i.append("name",t.item.name);i.append("metadata",JSON.stringify({uid:t.uid,url:this.uri,size:t.item.size,meta:t.meta}));d=t;return[4,this.makeXHRPostRequest(i)];case 2:d.xhr=r.sent();r.label=3;case 3:return[3,5];case 4:n=r.sent();this.updateValueInMap(t.item.name,"valid",false,false);return[3,5];case 5:return[2]}}))}))};this.uploadPendingFiles=function(){for(var t=0,e=Array.from(d.files.entries());t<e.length;t++){var a=e[t],i=a[0],n=a[1];if(n.group==="pending"&&n.pending===true){d.uploadFile(n,true,i)}}};this.getItemFromUID=function(t){for(var e=0,a=Array.from(d.files.entries());e<a.length;e++){var i=a[e],n=i[0],r=i[1];if(r.uid===t){return{value:r,key:n}}}return null};this.handleExternalUploadButton=function(t,e){if(d.externalUploadButton){if(t||e){d.externalUploadButton.disabled=true}else{d.externalUploadButton.disabled=false}}};this.onDelete=function(t,e){var a=d.getItemFromUID(t);var i=a.key;var n=d.files.get(i);d.files.delete(i);var r=d.validateTotals(),l=r.bytesMaxReached,o=r.fileMaxReached;d.handleExternalUploadButton(l,o);d.kick();d.duetDelete.emit({originalEvent:e,data:{deletion:n},component:"duet-upload"});if(!d.external&&!n.pending){d.makeXHRDeleteRequest(n)}d.resetFormFields()};this.onCancel=function(t,e){var a=d.getItemFromUID(t).key;var i=d.files.get(a);d.files.delete(a);var n=d.validateTotals(),r=n.bytesMaxReached,l=n.fileMaxReached;d.handleExternalUploadButton(r,l);if(!d.external){var o=i.xhr;if(o){o.abort()}}d.kick();d.resetFormFields();d.duetCancel.emit({originalEvent:e,data:{cancelled:i},component:"duet-upload"})};this.onUpload=function(t,e){d.duetUpload.emit({originalEvent:t,metaData:e,component:"duet-upload"})};this.onBlur=function(t){d.duetBlur.emit({originalEvent:t,component:"duet-upload"})};this.onProgress=function(t,e,a){d.duetChange.emit({originalEvent:a,data:{key:t,percentComplete:e},component:"duet-upload"})};this.onFocus=function(t){d.duetFocus.emit({originalEvent:t,component:"duet-upload"})};this.onReady=function(){d.duetReady.emit({component:"duet-upload"})};this.onDone=function(){d.duetDone.emit({component:"duet-upload",data:{files:d.files}})};this.filterMap=function(){var t=Array.from(d.files.values());var e=[];var a=[];var i=[];var n=[];var r=false;t.forEach((function(t){var l=d.getGroupFromItemData(t);if(t.meta&&!!t.meta.badges){r=true}if(l===d.DefaultGroups.success){n.push({uid:t.uid,data:t})}else if(l===d.DefaultGroups.inprogress){e.push({uid:t.uid,data:t})}else if(l===d.DefaultGroups.pending){i.push({uid:t.uid,data:t})}else if(l===d.DefaultGroups.failure){a.push({uid:t.uid,data:t})}else if(t.group){e.push({uid:t.uid,data:t})}}));return{pending:i,failure:a,success:n,inprogress:e,hasCategory:r}};this.getActions=function(t,e){return e.filter((function(e){return e.map.includes(t)}))};this.renderUploadedItems=function(){d.itemRefs.clear();var t=d.filterMap();var a=t.hasCategory;var i=d.hideCancelButton?d.actions.filter((function(t){return t.name!=="cancel"})):d.actions;var n=d.groups.map((function(n){var l=t[n.id];if(!(l===null||l===void 0?void 0:l.length)){return}return e(r,null,!d.hideGroups&&e(D,{categoryLabel:a?d.categoryLabel:undefined,label:n.label}),l.map((function(t){return d.mapFilesToUploadItems(t.data,n.id,a,i)})))}));return e(r,null,d.showUploadedItemsHeader&&e(D,{categoryLabel:a?d.categoryLabel:undefined,label:d.uploadedItemsHeaderLabel}),n)};this.tick=Date.now();this.accessibleActiveDescendant=undefined;this.accessibleDescribedBy=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.external=false;this.middleware=null;this.deferUpload=false;this.hideButton=false;this.actions=[{icon:"action-delete",color:"color-danger",size:"x-small",background:"gray-lightest",name:"delete",map:["success","failure"],label:{fi:"Poista tiedosto",en:"Delete the file",sv:"Ta bort filen"}},{icon:"navigation-close",color:"primary",size:"x-small",background:"gray-lightest",name:"cancel",map:["inprogress","pending"],label:{fi:"Keskeytä lähetys",en:"Cancel the upload",sv:"Stop överföringen"}}];this.uri=undefined;this.showLinks=false;this.caption=undefined;this.statusLabelDefaults={fi:{inProgress:"Lähetetään {filesUploaded}, yhteensä lähetettävänä {filesTotal}.",inProgressWithErrors:"Lähetetään {filesInProgress}, lähetetty {filesUploaded}, yhteensä lähetettävänä {filesTotal}, {filesWithErrors} epäonnistui",done:"Lähetys valmis, {filesTotal} lisätty onnistuneesti",doneWithErrors:"Lähetys valmis, {filesUploaded} lisätty onnistuneesti, {filesWithErrors} epäonnistui",files:"tiedostoa",file:"tiedosto"},sv:{inProgress:"Laddar upp {filesUploaded} av {filesTotal}",inProgressWithErrors:"Laddar upp {filesInProgress}, {filesUploaded} uppladdad av {filesTotal}, {filesWithErrors} misslyckades",done:"Uppladdningen slutförd, {filesTotal} har lagts till",doneWithErrors:"Uppladdningen slutförd, {filesUploaded} har lagts till, {filesWithErrors} misslyckades",files:"filer",file:"fil"},en:{inProgress:"Uploading {filesUploaded} of {filesTotal}",inProgressWithErrors:"Uploading {filesInProgress}, {filesUploaded} uploaded of {filesTotal}, {filesWithErrors} failed",done:"Upload completed, {filesTotal} added successfully",doneWithErrors:"Upload completed, {filesUploaded} added successfully, {filesWithErrors} failed.",files:"files",file:"file"}};this.statusMessageLabel=c(this.statusLabelDefaults);this.buttonLabelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add an attachment"};this.buttonLabel=c(this.buttonLabelDefaults);this.accessibleButtonLabel=undefined;this.theme="";this.disabled=false;this.identifier=undefined;this.margin="auto";this.required=false;this.alignment="middle";this.hideGroups=false;this.files=new Map;this.valid=!this.required;this.labelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add attachments"};this.label=c(this.labelDefaults);this.descriptionDefaults={en:"You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytestotal} of files at a time, and add up to {maxfiles} attachments at a time each no larger than {maxbytes}.",sv:"Du kan bifoga följande filtyper: {filetypes} - samt de vanligaste videofilerna. Du kan ladda upp {maxbytestotal} av filer åt gången, och lägga till upp till {maxfiles} bilagor åt gången varje inte större än {maxbytes}.",fi:"Voit liittää seuraavat tiedostotyypit: {filetypes} - sekä yleisimmät videotiedostot. Voit lähettää {maxbytestotal} tiedostoa kerrallaan, ja lisätä enintään {maxfiles} liitettä kerrallaan, jokainen enintään {maxbytes} kokoisena."};this.description=c(this.descriptionDefaults);this.fileListEmptyDefaults={fi:"Ei vielä lisättyjä tiedostoja.",sv:"Inga filer har lagts till ännu.",en:"No files added yet."};this.fileListEmpty=c(this.fileListEmptyDefaults);this.error="";this.errorCodes=M;this.name=undefined;this.maxBytes=2e8;this.maxBytesTotal=undefined;this.maxFiles=99;this.allowedExtensions="all";this.allowedMimetypes="";this.multiple=true;this.limitSelection=false;this.hideCancelButton=false;this.value=undefined;this.externalUploadButtonId=undefined;this.captionOnBottom=false;this.showUploadedItemsHeader=false;this.uploadedItemsHeaderLabel={fi:"Ladattu tiedosto",sv:"Lägg till en bilaga",en:"Uploaded file"};this.headerHeadingLevel="h3";this.hideHeader=false;this.emitEvent=false;this.actionButtonTitles={cancel:false,delete:false};this.renameDuplicates=false;this.groups=[{id:this.DefaultGroups.success,label:{fi:"Valmiit tiedostot",sv:"Files success",en:"Files success"}},{id:this.DefaultGroups.failure,label:{fi:"Tiedostot, joissa on virheitä",sv:"Filer med fel",en:"Files with errors"}},{id:this.DefaultGroups.inprogress,label:{fi:"Kesken olevat tiedostot",sv:"Filer inprogress",en:"Files inprogress"}},{id:this.DefaultGroups.pending,label:{en:"Files to upload",sv:"Filer att ladda",fi:"Ladattavat tiedostot"}}]}t.prototype.watchValidHandler=function(t,e){if(t!==e){this.kick()}};t.prototype.componentWillLoad=function(){if(typeof this.statusMessageLabel==="string"){this.internalStatusMessageLabel=p(this.groups)}else{this.internalStatusMessageLabel=this.statusMessageLabel}l(this);this.listenForActionEvents();this.onReady();this.externalUploadButton=document.querySelector("#".concat(this.externalUploadButtonId));this.processedButtonTitles=w(this.actionButtonTitles)};t.prototype.componentWillRender=function(){this.verifyValidity()};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.nativeInput){this.nativeInput.focus(t)}return[2]}))}))};t.prototype.upload=function(){return __awaiter(this,arguments,void 0,(function(t){var e,a,i;if(t===void 0){t=undefined}return __generator(this,(function(d){e=this.validateTotals(),a=e.bytesMaxReached,i=e.fileMaxReached;if(a||i){this.handleExternalUploadButton(a,i);this.kick();return[2]}this.metaData=t;this.nativeInput.click();return[2]}))}))};t.prototype.uploadPending=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.uploadPendingFiles();return[2]}))}))};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:this.kick();return[4,this.setFocus()];case 1:t.sent();return[2]}}))}))};t.prototype.getFiles=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.files||this.files.size===0){return[2,false]}return[2,this.getFilesAsArray()]}))}))};t.prototype.updateValue=function(t,e,a){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.updateValueInMap(t,e,a);return[2]}))}))};t.prototype.focusActionButton=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(a){switch(a.label){case 0:return[4,(e=this.itemRefs.get(t))===null||e===void 0?void 0:e.focusActionButton()];case 1:a.sent();return[2]}}))}))};t.prototype.render=function(){var t=this;var a=this.identifier||this.uploadId;var i=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024);var n=Math.round(this.maxBytes/1024/1024);var l=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());l=l.replace(/{maxbytes}/g,"".concat(n.toString()," MB"));l=l.replace(/{maxbytestotal}/g,"".concat(i.toString()," MB"));l=l.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", "));if(this.externalUploadButton){this.externalUploadButton.accessibleLabel="".concat(this.externalUploadButton.innerText,". ").concat(l)}return e(d,{key:"c7f1bf7d8cf499d955da5205808a3ea5428035b2",class:{"duet-m-0":this.margin==="none"}},e("duet-fieldset",{key:"1460d528cb7fa48e6c6867100f4f12646eb28cf9","label-heading-level":this.headerHeadingLevel,"label-hidden":this.hideHeader,label:this.label},e("slot",{key:"dcc7b2faccc425c862b51d5c1732351973e5bb35",name:"header"}),!this.files.size&&e("duet-empty-state",{key:"cd063eb6f01f9c981e6d5489948905b6109077b6",id:this.labelId,part:this.identifier?"".concat(this.identifier,"-empty-state"):"duet-upload-empty-state",icon:"messaging-attachment"},e("duet-paragraph",{key:"6a233a0b84de2933ea96e01d3bf83a45e7a6e50c",margin:"none"},this.fileListEmpty)),!!this.files.size&&e("slot",{key:"3aafba5896461df3b1c8ddb13dd663c98a1983e0",name:"fileheader"}),!!this.files.size&&e("duet-upload-aria-status",{key:"f776236c6ba78c275e213a82c8c00b337f9b7594",invalid:this.getFilesAsArray().invalid.length,valid:this.getFilesAsArray().valid.length,inprogress:this.filesInProgress.size,total:this.files.size,statusMessageLabel:this.internalStatusMessageLabel}),!!this.files.size&&this.renderUploadedItems(),!!this.files.size&&e("slot",{key:"7e8c78fb32117643609ac7cd0b984207513ab742",name:"filefooter"}),e("slot",{key:"de74f9f77d8d78d0a738d5cb10af764c830d90a7",name:"uploadfooter"}),this.captionOnBottom&&e("duet-caption",{key:"7abd791a093afc3fb151847fc1e2ac955f0e59ee",margin:"none",size:"small"},e("div",{key:"5f68e2b352db0e0905a791647f0dafe74063897d",class:"upload-bottom-caption"},l)),e("slot",{key:"d286427445a790dc955f7ffc96ae2b5af7cb04e7",name:"afterfooter"}),!this.hideButton&&e(r,{key:"055b712495e396748b320913cab77e5377e4c38d"},e("duet-spacer",{key:"b5f63e77e82da67f1b5b88e88b70c9b14d7dbe1a",size:"large"}),e("duet-button",{key:"11feaaf6cf24744aecc3c4c159a03841e6cba34e",id:this.buttonId,onClick:this.startUpload,"accessible-controls":a,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel||"".concat(this.buttonLabel,". ").concat(l),"accessible-owns":a,size:"small",variation:"secondary",fixed:true,icon:"action-add-circle",part:this.identifier?"".concat(this.identifier,"-button-upload"):"duet-upload-button-upload"},this.buttonLabel)),(this.fileMaxReached||this.bytesMaxReached||this.filesToUploadExceedsLimit||this.filesToUploadTotalSizeIsAboveMax)&&e(r,{key:"7ce04c54d1dc3f550c956a81f032f816fdf78b46"},e("duet-spacer",{key:"b4a03f6aa7757f47018a7c906807d9065d1c71e2",size:"medium"}),e("duet-alert",{key:"9bb87f4fbed6c654fc01e6b981559b71d2d84386",part:this.identifier?"".concat(this.identifier,"-error-notification"):"duet-upload-error-notification"},this.fileMaxReached&&_("duet-upload-301",this.errorCodes),this.bytesMaxReached&&_("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&_("duet-upload-302",this.errorCodes),this.filesToUploadTotalSizeIsAboveMax&&_("duet-upload-203",this.errorCodes))),e("duet-visually-hidden",{key:"d3f9fb94e17554fcec4db21a9a66cadaf98fa073","aria-hidden":"true"},e("input",{key:"728996468d1dd97139be322580f2475d6917eb5f",ref:function(e){t.nativeInput=e},accept:!this.limitSelection?undefined:"".concat(this.allowedMimetypes,",").concat(this.allowedExtensions),onBlur:this.onBlur,onFocus:this.onFocus,onChange:function(e){return t.onChange(e)},type:"file",class:{"duet-upload":true},disabled:this.disabled,"aria-hidden":"true",required:this.required,name:this.name,id:this.identifier,multiple:this.multiple,tabIndex:-1}))))};t.prototype.makeXHRPostRequest=function(t){var e=this;var a=new XMLHttpRequest;var i=t.get("name");a.upload.addEventListener("progress",(function(t){e.updateProgress(t,i)}));a.upload.addEventListener("load",(function(){e.transferComplete(i)}));a.upload.addEventListener("error",(function(){e.transferFailed(i)}));a.upload.addEventListener("abort",(function(){e.transferCanceled(i)}));var d={payload:{data:t,name:i},options:{type:"POST",uri:this.uri,xhr:a,argument:null,headers:undefined},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){d=this.middleware(d)}return q(d)};t.prototype.makeXHRDeleteRequest=function(t){var e=t.uid,a=t.item;var i=new XMLHttpRequest;var d={"x-fileuid":e,"x-filename":a.name};var n={payload:{data:null,name:name},options:{type:"DELETE",xhr:i,uri:this.uri,argument:"?key=".concat(e,"&name=").concat(a.name),headers:d},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){n=this.middleware(n)}return q(n)};t.prototype.escapeSpecialCharacters=function(t){return(t+"").replace(/[\\"'(){}\[\]*?$^+]/g,"\\$&").replace(/\u0000/g,"\\0")};t.prototype.getRenamedFileName=function(t,e){var a=new RegExp("".concat(this.escapeSpecialCharacters(t)," \\(\\d+\\).").concat(e));var i=Array.from(this.files.entries()).map((function(t){var e=t[0],a=t[1];return e})).filter((function(i){return a.test(i)||i==="".concat(t,".").concat(e)})).sort((function(t,e){return t.split(".").slice(0,-1).join(".")>e.split(".").slice(0,-1).join(".")?1:-1})).pop().split(".").slice(0,-1).join(".");if(i===t){return"".concat(t," (1).").concat(e)}var d=parseInt(i.split("(").pop().slice(0,-1));return"".concat(t," (").concat(d+1,").").concat(e)};t.prototype.renameFiles=function(t){var e=this;return t.map((function(t){if(e.files.get(t.name)){var a=t.name.split(".");var i=a.pop();var d=a.join(".");var n=e.getRenamedFileName(d,i);return new File([t],n,{type:t.type,lastModified:t.lastModified})}else{return t}}))};t.prototype.onChange=function(t){return __awaiter(this,void 0,void 0,(function(){var e,a,i,d,n,r,l,o,s,u,h,f;return __generator(this,(function(b){switch(b.label){case 0:a=Array.from((e=this.nativeInput)===null||e===void 0?void 0:e.files);this.filesToUploadExceedsLimit=false;if(N(this.files.size,a.length,this.maxFiles)){this.filesToUploadExceedsLimit=true;this.kick();return[2]}this.filesToUploadTotalSizeIsAboveMax=false;if(Y(this.files,a,this.maxBytesTotal)){this.filesToUploadTotalSizeIsAboveMax=true;this.kick();return[2]}if(!a)return[3,6];if(this.renameDuplicates){a=this.renameFiles(a)}i=0,d=a;b.label=1;case 1:if(!(i<d.length))return[3,6];n=d[i];r=O(n,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),l=r.valid,o=r.errorMessage,s=r.errorType,u=r.errorSystem;h=this.genHashName();f={uid:h,item:n,size:n.size,meta:this.metaData,uploaded:false,valid:l,error:{type:l?undefined:s,message:l?undefined:o,system_message:l?undefined:u},progress:0,deleted:false,xhr:false,url:false};this.files.set(n.name,f);if(!(l&&!this.external))return[3,3];return[4,this.uploadFile(f)];case 2:b.sent();return[3,4];case 3:if(l&&this.external){this.updateValueInMap(f.item.name,"pending",true,false);this.updateValueInMap(f.item.name,"group","pending",true)}else if(!l){this.updateValueInMap(n.name,"valid",false,true)}b.label=4;case 4:this.kick();b.label=5;case 5:i++;return[3,1];case 6:this.resetFormFields();this.metaData=undefined;this.duetChange.emit({originalEvent:t,data:{files:this.files},component:"duet-upload"});return[2]}}))}))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{valid:["watchValidHandler"]}},enumerable:false,configurable:true});return t}());J.style=H}}}));
4
+ */System.register(["./p-8fb46b02.system.js","./p-57941503.system.js","./p-41982d26.system.js","./p-752fa0fc.system.js","./p-db398834.system.js","./p-64959c1d.system.js","./p-13eec75c.system.js","./p-e6b5a1c7.system.js","./p-98636086.system.js","./p-6592e02c.system.js"],(function(t){"use strict";var e,a,i,d,n,r,l,o,s,u,h,f,b,c,p,m,g,v,y,x,w,k,_;return{setters:[function(t){e=t.h;a=t.r;i=t.c;d=t.H;n=t.g;r=t.F},function(t){l=t.i},function(t){o=t.f;s=t.d},function(t){u=t.i},function(t){h=t.a;f=t.c;b=t.d;c=t.g;p=t.s},function(t){m=t.p;g=t.s},function(t){v=t.b;y=t.a},function(t){x=t.c},function(t){w=t.p},function(t){k=t.g;_=t.a}],execute:function(){var T=function(t,a){var i=t.data,d=t.groupId,n=t.alignment;var r="duet-editable-table duet-editable-table-content-".concat(d);if(typeof i==="string"){return e("td",{innerHTML:i,class:r,part:"".concat(d,"content"),style:{verticalAlign:n}})}else{return e("td",{class:r,part:"".concat(d,"content"),style:{verticalAlign:n}},i)}};var j=".sc-duet-editable-table-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-editable-table-actions-menu.sc-duet-editable-table{position:relative;padding:0 !important;margin:0}.duet-editable-table-actions-menu-button.sc-duet-editable-table{position:relative;right:-16px;float:right;padding:0}.duet-editable-table-actions-menu-icon.sc-duet-editable-table .duet-icon.sc-duet-editable-table{max-width:16px;max-height:16px}.duet-editable-table-row.duet-table-action-row.sc-duet-editable-table .duet-text-right.sc-duet-editable-table{text-align:right}.duet-editable-table-header.sc-duet-editable-table tr.sc-duet-editable-table .duet-editable-table-header-hidden.sc-duet-editable-table{padding:0 !important;font-size:0;border-bottom:0}";var E=j;var S=t("duet_editable_table",function(){function t(t){var e=this;a(this,t);this.duetTableToggle=i(this,"duetTableToggle",7);this.duetMenuClick=i(this,"duetMenuClick",7);this.hasHeadSlotFirst=false;this.hasHeadSlotLast=false;this.hasFootSlot=false;this.sortableDefaultLabel={fi:"Järjestä",en:"Click to sort",sv:"Klicka för att sortera"};this.actionColumnLabel={en:"Actions for rows",fi:"Toiminnot rivillä",sv:"Åtgärder för rader"};this.toggleColumn=function(t,a){a.preventDefault();var i=t.sort_order,d=t.direction,n=t.index,r=t.key;e.duetTableToggle.emit({sort_order:i,index:n,direction:d,key:r,component:"duet-editable-table",originalEvent:a})};this.handleKeyDown=function(t,a){if(u(a)){e.toggleColumn(t,a)}};this.language=h();this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.actions=undefined;this.columns=undefined;this.rows=undefined;this.sortable=false;this.groupId="";this.theme="";this.accessibleRole=undefined;this.hideHeadVisually=false}t.prototype.componentWillLoad=function(){l(this);this.hasHeadSlotFirst=!!this.element.querySelector("[slot='thead-first']");this.hasHeadSlotLast=!!this.element.querySelector("[slot='thead-last']");this.hasFootSlot=!!this.element.querySelector("[slot='tfoot']")};t.prototype.connectedCallback=function(){f(this)};t.prototype.disconnectedCallback=function(){b(this)};t.prototype.createLabel=function(t){var a=this;var i=t.sort_order,d=t.direction,n=t.index,r=t.label;var l=c(r);if(!this.sortable){return l}var o=function(){if(!!i&&d===1){return"action-arrow-down-small"}else if(!!i&&d===-1){return"action-arrow-up-small"}return"action-subtract-small"};return e("span",{class:"duet-table-label","data-index":n},e("duet-button",{size:"small",icon:o(),"icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":true,onClick:function(e){return a.toggleColumn(t,e)},onKeyDown:function(e){return a.handleKeyDown(t,e)}},l))};t.prototype.getSortedColumns=function(){return __spreadArray([],this.columns,true).sort(o(["index"]))};t.prototype.getRowSortOrder=function(){var t=__spreadArray([],this.columns,true).sort(o(["sort_order"]));return t.filter((function(t){return t.sort_order})).map((function(t){return t.direction===-1?"-".concat(t.key):t.key}))};t.prototype.renderTableHeader=function(){var t=this;if(!this.columns){return}var a=this.getSortedColumns();return e("tr",{class:{"duet-table-action-header":!!this.actions}},a.map((function(a){if(a.display!==false){var i=t.createLabel(a);return i!==""?e("th",{scope:"col"},i):e("td",null)}})),this.actions&&e("th",{scope:"col",class:"duet-table-action-header-heading"},this.actions&&e("duet-visually-hidden",null,this.actionColumnLabel[this.language])))};t.prototype.renderActions=function(t,a){var i=this;if(!this.actions){return}return e("td",{class:"duet-text-right"},this.actions.map((function(d){return e("duet-action-button",{actionMeta:Object.assign({},(t===null||t===void 0?void 0:t.meta)||{},{index:a}),actionId:(t===null||t===void 0?void 0:t.uid)||(t===null||t===void 0?void 0:t.id)||null,actionName:d.name,theme:i.theme,iconName:d.icon,iconColor:d.color,iconSize:d.size,background:d.background,"accessible-label":"".concat(t.actionDescription||""," ").concat(c(d.label)," ")})})))};t.prototype.renderTableBody=function(){var t=this;var a=this.getSortedColumns();var i=this.getRowSortOrder();var d=__spreadArray([],this.rows,true).sort(o(i));return d.map((function(i,d){var n;return e("tr",{class:(n={"duet-table-action-row":!!t.actions,"duet-editable-table-row":true},n["duet-editable-table-row-".concat(t.groupId)]=true,n),"data-meta":JSON.stringify(i.meta)},a.map((function(a){var d=i[a.key]?i[a.key]:i.item;if(a.display!==false){return e(T,{data:d,groupId:t.groupId})}})),t.actions&&t.renderActions(i,d))}))};t.prototype.render=function(){var t;return e(d,{class:(t={},t["duet-editable-table-".concat(this.variation)]=true,t["duet-editable-table"]=true,t["duet-editable-table-".concat(this.theme)]=true,t["duet-editable-table-scrollable"]=this.breakpoint==="none-scrollable",t["duet-editable-table-sortable"]=this.sortable,t["duet-editable-table-actions"]=!!this.actions,t["duet-m-0"]=this.margin==="none",t["duet-theme-turva"]=this.theme==="turva",t)},e("duet-table",{class:"duet-editable-table-table",sticky:this.sticky,stickyDistance:this.stickyDistance,margin:this.margin,theme:this.theme,variation:this.variation,breakpoint:this.breakpoint,"hide-head-visually":this.hideHeadVisually},e("table",{role:this.accessibleRole},e("caption",null,e("slot",{name:"tcaption"})),e("thead",null,this.hasHeadSlotFirst&&e("tr",null,e("td",{class:"duet-editable-table-actions-menu",colSpan:99},e("slot",{name:"thead-first"}))),this.renderTableHeader(),this.hasHeadSlotLast&&e("tr",null,e("td",{class:"duet-editable-table-actions-menu",colSpan:99},e("slot",{name:"thead-last"})))),e("tbody",null,this.renderTableBody()),this.hasFootSlot&&e("tfoot",null,e("tr",null,e("td",{class:"duet-editable-table-footer-menu",colSpan:99},e("slot",{name:"tfoot"})))))))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());S.style=E;var L='duet-table{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;font-variant-numeric:tabular-nums}duet-table table,duet-table thead,duet-table tbody,duet-table tfoot,duet-table th,duet-table td,duet-table tr{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}duet-table.duet-m-0{margin:0 !important}duet-table table{width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;text-align:left;border-spacing:0;border-collapse:separate}duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead,duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead *{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}duet-table.duet-theme-turva table{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}duet-table td{-webkit-hyphens:auto;hyphens:auto;color:rgb(8, 42, 77)}duet-table.duet-theme-turva td{color:rgb(23, 28, 58)}duet-table th{font-weight:600;line-height:1.25;color:rgb(98, 121, 138);text-align:left}duet-table.duet-theme-turva th{color:rgb(143, 147, 158)}duet-table tbody th{font-weight:600;color:rgb(8, 42, 77)}duet-table.duet-theme-turva tbody th{color:rgb(23, 28, 58)}duet-table .duet-table-action-row td:last-child{justify-self:end;padding-right:20px !important;white-space:nowrap}duet-table span.duet-table-cell-heading{display:none}.duet-table-flattened table,.duet-table-flattened thead,.duet-table-flattened tbody,.duet-table-flattened tfoot,.duet-table-flattened th,.duet-table-flattened td,.duet-table-flattened tr{display:block}.duet-table-flattened thead tr{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}.duet-table-flattened td{line-height:1.25}.duet-table-flattened td:not(:last-child){margin-bottom:16px !important}.duet-table-flattened td span.duet-table-cell-heading{margin-bottom:4px !important;display:block;font-size:1rem;font-weight:600;color:rgb(8, 42, 77)}.duet-table-flattened.duet-theme-turva td span.duet-table-cell-heading{color:rgb(23, 28, 58)}.duet-table-flattened tbody td,.duet-table-flattened tbody th,.duet-table-flattened tfoot td{padding:0 !important;text-align:left !important}.duet-table-flattened tbody th{font-weight:600;line-height:1.25;color:rgb(98, 121, 138);text-align:left}.duet-table-sticky thead th,.duet-table-sticky thead td{position:sticky;top:0;background:rgb(255, 255, 255)}.duet-table-striped td,.duet-table-striped th{padding:20px !important}@media (max-width: 35.9375em){.duet-table-striped td,.duet-table-striped th{padding:20px 12px !important}}.duet-table-striped tbody th{background:rgb(255, 255, 255)}.duet-table-striped.duet-table-sticky thead th,.duet-table-striped.duet-table-sticky thead td{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-table-sticky.duet-theme-turva thead th,.duet-table-striped.duet-table-sticky.duet-theme-turva thead td{border-bottom-color:rgb(222, 224, 228)}.duet-table-striped tbody:not(:first-of-type) th{padding-top:40px !important}.duet-table-striped tbody:only-of-type tr:nth-of-type(odd){background:rgba(4, 81, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(4, 81, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tfoot td{border-top:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-theme-turva tfoot td{border-top-color:rgb(222, 224, 228)}.duet-table-striped.duet-table-flattened tbody:not(:first-of-type) th{padding-top:20px !important}.duet-table-striped.duet-table-flattened tr{padding:20px !important}.duet-table-striped.duet-table-flattened tfoot td{border-top:0}.duet-table-striped.duet-table-flattened tfoot tr{border-top:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:rgb(222, 224, 228)}.duet-table-fixed th,.duet-table-minimal th,.duet-table-plain th,.duet-table-fixed thead td,.duet-table-minimal thead td,.duet-table-plain thead td{padding:16px !important;border-bottom:1px solid rgb(98, 121, 138)}.duet-table-fixed th:first-child,.duet-table-minimal th:first-child,.duet-table-plain th:first-child,.duet-table-fixed thead td:first-child,.duet-table-minimal thead td:first-child,.duet-table-plain thead td:first-child{padding-left:0 !important}.duet-table-fixed th:last-child,.duet-table-minimal th:last-child,.duet-table-plain th:last-child,.duet-table-fixed thead td:last-child,.duet-table-minimal thead td:last-child,.duet-table-plain thead td:last-child{padding-right:0 !important}.duet-theme-turva.duet-table-fixed th,.duet-theme-turva.duet-table-minimal th,.duet-theme-turva.duet-table-plain th,.duet-theme-turva.duet-table-fixed thead td,.duet-theme-turva.duet-table-minimal thead td,.duet-theme-turva.duet-table-plain thead td{border-bottom-color:rgb(113, 118, 132)}.duet-table-fixed tbody th,.duet-table-minimal tbody th,.duet-table-plain tbody th{padding-top:40px !important;border-bottom-color:rgb(212, 223, 229)}.duet-theme-turva.duet-table-fixed tbody th,.duet-theme-turva.duet-table-minimal tbody th,.duet-theme-turva.duet-table-plain tbody th{border-bottom-color:rgb(222, 224, 228)}.duet-table-fixed td,.duet-table-minimal td,.duet-table-plain td{padding:16px !important}.duet-table-fixed td:first-child,.duet-table-minimal td:first-child,.duet-table-plain td:first-child{padding-left:0 !important}.duet-table-fixed td:last-child,.duet-table-minimal td:last-child,.duet-table-plain td:last-child{padding-right:0 !important}.duet-table-fixed tbody td,.duet-table-minimal tbody td,.duet-table-plain tbody td{border-bottom:1px solid rgb(212, 223, 229)}.duet-theme-turva.duet-table-fixed tbody td,.duet-theme-turva.duet-table-minimal tbody td,.duet-theme-turva.duet-table-plain tbody td{border-bottom-color:rgb(222, 224, 228)}.duet-table-flattened.duet-table-fixed tbody:first-of-type th,.duet-table-flattened.duet-table-minimal tbody:first-of-type th,.duet-table-flattened.duet-table-plain tbody:first-of-type th{padding-top:0 !important}.duet-table-flattened.duet-table-fixed td,.duet-table-flattened.duet-table-minimal td,.duet-table-flattened.duet-table-plain td,.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{border-bottom:0}.duet-table-flattened.duet-table-fixed tr,.duet-table-flattened.duet-table-minimal tr,.duet-table-flattened.duet-table-plain tr{padding:20px 0 !important}.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{padding-top:20px !important}.duet-table-flattened.duet-table-fixed tfoot td,.duet-table-flattened.duet-table-minimal tfoot td,.duet-table-flattened.duet-table-plain tfoot td{margin-bottom:4px !important}.duet-table-flattened.duet-table-fixed tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-minimal tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-plain tbody:not(:only-of-type) tr:first-child{border-bottom:0}.duet-table-plain.duet-table-flattened tbody tr{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:rgb(222, 224, 228)}.duet-table-minimal tbody tr,.duet-table-minimal tbody tr td{vertical-align:top;border-bottom:0 none}.duet-table-minimal tbody tr:last-of-type,.duet-table-minimal tbody tr:last-of-type td{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-minimal.duet-table-flattened tbody tr,.duet-table-minimal.duet-table-flattened tbody tr td{border-bottom:0 none}.duet-table-minimal.duet-table-flattened tbody tr td[data-heading]::before{display:none}.duet-table-minimal.duet-table-flattened tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-fixed table{table-layout:fixed}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td,.duet-table-fixed tbody tr td:first-child{padding:4px !important;vertical-align:text-bottom;border-bottom:0 none}.duet-table-fixed thead{display:none}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td{border-bottom:0 none}.duet-table-fixed:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-fixed:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-scrollable{position:relative;width:100%;overflow-x:auto;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0)), linear-gradient(-90deg, #fff 0%, rgba(255, 255, 255, 0)) 100% 0, radial-gradient(farthest-side at 0% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)) 100% 0%;background-repeat:no-repeat;background-attachment:local, local, scroll, scroll;background-size:100px 100%, 100px 100%, 12px 100%, 12px 100%}.duet-table-selected-column{background:rgba(0, 119, 179, 0.08)}.duet-theme-turva .duet-table-selected-column{background:rgba(113, 118, 132, 0.08)}.duet-table-sortable tbody tr td:first-child,.duet-table-sortable thead tr th:first-child{padding:20px}.duet-table-sortable:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-sortable:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-actions table{table-layout:auto}.duet-table-actions thead th:last-child{width:1px;white-space:nowrap}.duet-editable-table-table.duet-table-flattened tr{display:grid;grid-template-columns:repeat(2, 1fr);grid-auto-rows:auto;gap:10px}.duet-editable-table-table.duet-table-flattened tr.duet-table-action-row td:last-child::before{padding:0;content:""}.duet-editable-table-table.duet-table-flattened td{grid-column:1/2}.duet-editable-table-table.duet-table-flattened td:first-child{grid-row:1;grid-column:1}.duet-editable-table-table.duet-table-flattened td:last-child{grid-row:1;grid-column:2}duet-table.duet-theme-turva2.duet-theme-turva td{color:#172a3b}duet-table.duet-theme-turva2.duet-theme-turva tbody th{color:#172a3b}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva.duet-table-sticky thead th,duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva.duet-table-sticky thead td{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 42, 59, 0.04)}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 42, 59, 0.04)}duet-table.duet-theme-turva2.duet-table-striped.duet-theme-turva tfoot td{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody th,duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody td{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-plain.duet-theme-turva tbody td{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-fixed.duet-theme-turva:not(.duet-table-flattened) tfoot{border-top-color:#fbe1d1}duet-table.duet-theme-turva2.duet-table-sortable.duet-theme-turva:not(.duet-table-flattened) tfoot{border-top-color:#fbe1d1}';var z=L;var A={none:0,"with-links":parseFloat(m)*16,"without-links":parseFloat(g)*16};var F=t("duet_table",function(){function t(t){var e=this;a(this,t);this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)";this.handleMediaQueryChange=function(t){e.matchesBreakpoint=v.includes(e.breakpoint)?!t.matches:t.matches};this.matchesBreakpoint=true;this.language=h();this.theme=undefined;this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.hideHeadVisually=false}t.prototype.watchLanguageStateHandler=function(t,e){var a=this;if(t!==e){setTimeout((function(){return a.copyHeadingsToCells()}),50)}};t.prototype.connectedCallback=function(){var t=this;var e=this.breakpoint==="none"||this.breakpoint==="none-scrollable"?"all":y[this.breakpoint];this.mq=matchMedia(e);this.mq.addEventListener("change",s(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);this.observer=new MutationObserver((function(){return s(t.copyHeadingsToCells(),50)}));this.observer.observe(this.element,{childList:true,subtree:true})};t.prototype.componentWillLoad=function(){l(this);this.copyHeadingsToCells();if(this.sticky&&this.breakpoint==="none-scrollable"){console.warn('[DUET WARNING]: sticky and breakpoint="none-scrollable" are incompatible. Scrollable takes precedence')}if(this.sticky){var t=A[this.stickyDistance];var e=this.element.querySelectorAll(this.headingSelector);e.forEach((function(e){return e.style.top="".concat(t,"px")}))}};t.prototype.componentDidLoad=function(){this.observer?this.observer.takeRecords():null;f(this)};t.prototype.disconnectedCallback=function(){this.observer.disconnect();this.observer=null;this.mq.removeListener(this.handleMediaQueryChange);this.mq=null;this.matchesBreakpoint=true;b(this)};t.prototype.copyHeadingsToCells=function(){var t=this.element.querySelectorAll(this.headingSelector);var e=this.element.querySelectorAll("tbody tr");var a=Array.from(t).map((function(t){return t.textContent.trim()}));e.forEach((function(t){t.querySelectorAll("td").forEach((function(t,e){if(a[e]){var i=t.querySelector(".duet-table-cell-heading");if(!i||i.textContent!==a[e]){i===null||i===void 0?void 0:i.remove();var d=document.createElement("span");d.textContent=a[e];d.classList.add("duet-table-cell-heading");d.setAttribute("aria-hidden","true");d.inert=true;t.prepend(d)}}}))}))};t.prototype.render=function(){var t;return e(d,{key:"147da4a8e086100e74e07d3bdb773b73b53072ec",class:(t={},t["duet-table-".concat(this.variation)]=true,t["duet-table-flattened"]=!this.matchesBreakpoint,t["duet-table-sticky"]=this.matchesBreakpoint&&this.sticky,t["duet-table-scrollable"]=this.breakpoint==="none-scrollable",t["duet-m-0"]=this.margin==="none",t["duet-theme-turva"]=this.theme==="turva",t["duet-table-hide-head-visually"]=this.hideHeadVisually,t)},e("slot",{key:"127854a0ecfcd4b3debf08383af581e80dce62b7"}))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{language:["watchLanguageStateHandler"]}},enumerable:false,configurable:true});return t}());F.style=z;var M=[{type:"default",system_message:"unknown error",message:{fi:"Tapahtui tuntematon virhe, ole hyvä ja yritä uudelleen.",sv:"Ett okänt fel uppstod, försök igen.",en:"An unknown error occured, please try again."}},{type:"400",system_message:"Bad Request: The server could not understand the request due to invalid syntax.",message:{fi:"Tiedostoa ei hyväksytty.",sv:"Servern avvisade din fil.",en:"The server rejected your file."}},{type:"401",system_message:"Not Authenticated: The client must authenticate itself to get the requested response...",message:{fi:"Vain kirjautunut käyttäjä voi lähettää tiedostoja.",sv:"Du måste vara inloggad för att ladda upp filer.",en:"You need to be logged in to upload files."}},{type:"403",system_message:"No Access: The client does not have access rights to the content.",message:{fi:"Ei oikeuksia lähettää tiedostoja.",sv:"Du har inte rätt åtkomsträttigheter för att ladda upp filer.",en:"You do not have the correct access rights to upload files."}},{type:"413",system_message:"Payload too large",message:{fi:"Tiedosto oli liian vastaanotettavaksi.",sv:"Filen var för stor för servern att hantera.",en:"The file was to large for the server to handle."}},{type:"415",system_message:"Unsupported media type",message:{fi:"Tiedoston tyyppi oli väärä.",sv:"Servern avvisade filen eftersom den hade fel typ.",en:"The server rejected the file because it had the wrong type."}},{type:"429",system_message:"Too many request from same address",message:{fi:"Liian monta yritystä, ole hyvä ja yritä myöhemmin uudelleen.",sv:"Servern har fått många förfrågningar från dig, försök igen senare.",en:"The server has received to many request from you, please try again later."}},{type:"500",system_message:"Internal Server Error",message:{fi:"Palvelin ilmoitti tuntemattomasta virheestä ja lataus epäonnistui.",sv:"Servern rapporterade ett okänt fel och uppladdningen misslyckades.",en:"The server reported an unknown error and the upload failed."}},{type:"duet-upload-100",system_message:"File extension not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den type.",en:"You cannot upload files with that extension."}},{type:"duet-upload-001",system_message:"File transfer failed",message:{fi:"Tiedoston lähetys keskeytyi, ole hyvä ja yritä uudelleen.",sv:"Din anslutning till servern avbröts, försök igen.",en:"Your connection to the server was interrupted, try again."}},{type:"duet-upload-101",system_message:"File mimetype not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den typ.",en:"You cannot upload files of that type."}},{type:"duet-upload-201",system_message:"File is too large",message:{fi:"Tiedosto on liian iso.",sv:"Filen är större än tillåtet.",en:"The file is larger than permitted."}},{type:"duet-upload-202",system_message:"The combined size of all files is too large",message:{fi:"Tiedostojen yhteenlaskettu koko on liian iso.",sv:"Du har nått den maximala kombinerade filstorleken.",en:"You have reached the maximum combined filesize."}},{type:"duet-upload-203",system_message:"Files to upload exceed total byte size limit",message:{fi:"Yritit lisätä tiedostoja, jotka ylittäisivät suurimman sallitun yhteenlasketun koon.",sv:"Du försökte lägga till filer som skulle överskrida den maximala kombinerade storleken.",en:"You tried to add files that would exceed the maximum combined size."}},{type:"duet-upload-301",system_message:"The maximum file limit has been reached",message:{fi:"Liitteiden maksimimäärä saavutettu.",sv:"Maximalt antal bilagor har uppnåtts.",en:"Maximum number of attachments reached."}},{type:"duet-upload-302",system_message:"Files to upload exceeds limits",message:{fi:"Et voi lähettää enempää kuin enimmäismäärän liitteitä.",sv:"Du kan inte ladda upp fler än det maximala antalet bilagor.",en:"You can't upload more than maximum number of attachments."}}];var U={fi:"Liiteluettelo",sv:"Lista över bilagor",en:"Attachments list"};var D=function(t){var a=t.label,i=t.categoryLabel;return e("div",{class:"items-header",tabindex:"-1","aria-label":c(U)},i&&e("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},c(i)),e("duet-heading",{class:{"filename-header":true,"no-category":!i},border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},c(a)))};var C=function(t,e){if(!e){return true}var a=t.split(".");var i=e.split(",");var d=a[a.length-1];return i.includes(d)};var P=function(t,e){if(!e||!t){return true}var a=e.split(",");var i=false;a.forEach((function(e){var a=e.split("/");var d=t.split("/");if(a[0]===d[0]&&(a[1]===d[1]||a[1]==="*")){i=true}}));return i};var I=function(t,e){if(!e||!t){return true}return e>=t};var O=function(t,e,a){var i=e.allowedMimetypes,d=e.allowedExtensions,n=e.maxBytes;var r=false;var l=k("default",a);if(t){var o=t.name,s=t.type,u=t.size;var h=P(s,i);var f=d==="all"||d===""||d===" "||d===undefined?true:C(o.toLowerCase(),d);var b=I(u,n);if(!h){l=k("duet-upload-101",a)}if(!f){l=k("duet-upload-100",a)}if(!b){l=k("duet-upload-201",a)}r=h&&f&&b}else{r=false}return{valid:r,errorMessage:r?undefined:c(l.message),errorSystem:r?undefined:l.system_message,errorType:r?undefined:l.type}};var W=function(t,e){var a=0;if(e){t.forEach((function(t){if(t.valid&&t.size){a+=t.size}}));if(a>=e){return true}}return false};var R=function(t,e){var a=0;if(e){t.forEach((function(t){if(t.valid){a++}}));if(a>=e){return true}}return false};var N=function(t,e,a){if(t+e>a){return true}return false};var Y=function(t,e,a){var i=0;if(a){t.forEach((function(t){if(t.valid&&t.size){i+=t.size}}));e.forEach((function(t){if(t.size){i+=t.size}}));if(i>=a){return true}}return false};var q=function(t){var e=t.payload,a=t.options,i=t.onFailure,d=t.onSuccess,n=t.onProgress;var r=a.type,l=r===void 0?"POST":r,o=a.xhr,s=a.uri,u=a.argument,h=u===void 0?null:u,f=a.headers,b=f===void 0?null:f;o.open(l,"".concat(s).concat(h||""),true);var c=e.data,p=e.name;if(b){Object.keys(b).forEach((function(t){o.setRequestHeader(t,b[t])}))}if(l==="POST"){o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE&&o.status>=200&&o.status<300){d(o,p,o.status)}if(o.readyState===XMLHttpRequest.DONE&&o.status>=300&&o.status<999){i(o,p,o.status)}};n(p)}o.send(c);return o};var B="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}::slotted([slot=uploadfooter]){margin-top:20px}.duet-upload{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}duet-paragraph::part(duet-paragraph){word-break:break-word}duet-editable-table tfoot{display:none}.upload-bottom-caption{margin-top:12px;margin-bottom:16px;line-height:1.4rem}.items-header{display:none;flex-direction:row;margin-bottom:0}@media (min-width: 36em){.items-header{display:flex}}.items-header:not(:last-child),.items-header:not(:first-child){margin-top:12px}.items-header .category-header{width:35%}.items-header .filename-header{width:65%}.items-header .filename-header.no-category{width:100%}.upload-item-row{display:flex;flex-direction:column;gap:16px;align-content:center;align-items:center;padding:16px 0 16px 0;border-bottom:1px solid rgb(212, 223, 229)}@media (min-width: 36em){.upload-item-row{flex-direction:row;gap:10px}}.upload-item-row .item-categories{width:100%}@media (min-width: 36em){.upload-item-row .item-categories{width:35%}}.upload-item-row .item-name{position:relative;bottom:2px;width:100%;text-align:left}@media (min-width: 36em){.upload-item-row .item-name{width:50%}.upload-item-row .item-name.no-category{width:85%}}.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:block}@media (min-width: 36em){.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:none}}.upload-item-row .item-actions{width:100%;margin-left:-8px;text-align:left}@media (min-width: 36em){.upload-item-row .item-actions{width:15%;padding-top:0;margin-left:auto;text-align:right}}.upload-item-row .duet-upload-item-name duet-icon{position:relative;top:4px}.upload-item-row .duet-upload-item-name duet-progress{display:block;margin-top:16px}";var H=B;var J=t("duet_upload",function(){function t(t){var d=this;a(this,t);this.duetChange=i(this,"duetChange",3);this.duetBlur=i(this,"duetBlur",7);this.duetFocus=i(this,"duetFocus",7);this.duetReady=i(this,"duetReady",7);this.duetDone=i(this,"duetDone",3);this.duetState=i(this,"duetState",3);this.duetDelete=i(this,"duetDelete",3);this.duetCancel=i(this,"duetCancel",3);this.duetProgress=i(this,"duetProgress",3);this.duetUpload=i(this,"duetUpload",3);this.linkClick=i(this,"linkClick",3);this.buttonId=x("DuetButton");this.labelId=x("DuetLabel");this.uploadId=x("DuetUpload");this.filesInProgress=new Map;this.fileMaxReached=false;this.bytesMaxReached=false;this.filesToUploadExceedsLimit=false;this.filesToUploadTotalSizeIsAboveMax=false;this.internalStatusMessageLabel=undefined;this.itemRefs=new Map;this.DefaultGroups={inprogress:"inprogress",success:"success",pending:"pending",failure:"failure"};this.kick=s((function(){d.tick=Date.now()}),30);this.categoryLabel={en:"Category",sv:"Filtyp",fi:"Tiedostotyyppi"};this.listenForActionEvents=function(){d.element.addEventListener("duetActionEvent",(function(t){var e=t.detail;var a=e.action,i=e.id,n=e.originalEvent;switch(a){case"delete":d.onDelete(i,n);break;case"cancel":d.onCancel(i,n);break}}))};this.verifyValidity=function(){var t=d.getFilesAsArray(),e=t.invalid,a=t.valid;var i=d.valid;d.valid=e.length===0&&a.length!==0;if(d.valid!==i){d.duetState.emit({originalEvent:undefined,data:{valid:d.valid,from:"componentWillRender"},component:"duet-upload"})}};this.getGroupFromItemData=function(t){if(t.valid&&t.progress===100){return d.DefaultGroups.success}else if(t.progress>0&&t.progress!==100){return d.DefaultGroups.inprogress}else if(!t.valid){return d.DefaultGroups.failure}else if(t.pending){return d.DefaultGroups.pending}else if(t.group){return t.group}else{return"none"}};this.mapFilesToUploadItems=function(t,a,i,n){if(a===d.DefaultGroups.success){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"success",data:t,showLinks:d.showLinks,linkClickEvent:d.emitEvent?d.linkClick:undefined,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(a===d.DefaultGroups.inprogress){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"inprogress",data:t,showLinks:d.showLinks,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(a===d.DefaultGroups.pending){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"pending",data:t,showLinks:d.showLinks,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(a===d.DefaultGroups.failure){return e("duet-upload-item",{theme:d.theme,actions:d.getActions(a,n),type:"failure",data:t,showLinks:d.showLinks,errorCodes:d.errorCodes,categoryLabel:d.categoryLabel,label:d.uploadedItemsHeaderLabel,showCategory:i,buttonTitles:d.processedButtonTitles,ref:function(e){d.itemRefs.set(t.uid,e)}})}else if(t.group){return t.html}else{return"none"}};this.genHashName=function(){return Date.now().toString(36)+Math.random()};this.updateValueInMap=function(t,e,a,i){if(i===void 0){i=true}try{var n=d.files.get(t);n[e]=a;d.files.set(t,n);if(d.external&&e!=="url"){d.trackProgress(t,e==="uploaded")}}catch(t){}if(i){d.kick()}};this.updateProgress=function(t,e){var a=function(a){d.updateValueInMap(e,"progress",a);d.onProgress(e,a,t)};if(t.lengthComputable){var i=t.loaded/t.total*100;a(i)}else{console.log("cant read progress")}};this.trackProgress=function(t,e){if(e===void 0){e=false}if(e){d.filesInProgress.delete(t)}else{d.filesInProgress.set(t,"inprogress")}if(d.filesInProgress.size===0){d.onDone()}};this.getFilesAsArray=function(){var t=[];var e=[];d.files.forEach((function(a){if(a.valid&&!a.deleted){t.push(a)}else if(!a.valid&&!a.deleted){e.push(a)}}));return{valid:t,invalid:e}};this.resetFormFields=function(){d.nativeInput.value=""};this.startUpload=function(t){var e=[];for(var a=1;a<arguments.length;a++){e[a-1]=arguments[a]}return __awaiter(d,__spreadArray([t],e,true),void 0,(function(t,e){var a,i,d;if(e===void 0){e=undefined}return __generator(this,(function(n){a=this.validateTotals(),i=a.bytesMaxReached,d=a.fileMaxReached;if(i||d){this.kick();return[2]}this.metaData=e;this.nativeInput.click();this.onUpload(t,e);t.stopPropagation();t.preventDefault();return[2]}))}))};this.transferComplete=function(t){d.updateValueInMap(t,"progress",100,false);d.trackProgress(t,true)};this.transferDone=function(t,e,a){d.updateValueInMap(e,"status",a,false);d.updateValueInMap(e,"uploaded",true,false);try{var i=JSON.parse(t.response);d.updateValueInMap(e,"url",i.url)}catch(t){d.updateValueInMap(e,"url",null);console.error("Server did not respond with expected response {url: string}")}return};this.transferDoneWithFailure=function(t,e,a){try{var i=JSON.parse(t.response).error;d.updateValueInMap(e,"error",{message:i.message,type:i.type},false)}catch(t){console.error("Server did not respond with expected response error:{message: string, type: int}");d.updateValueInMap(e,"error",{type:a},false)}d.updateValueInMap(e,"valid",false,true)};this.transferFailed=function(t){d.updateValueInMap(t,"error",_("duet-upload-001",d.errorCodes))};this.transferCanceled=function(t){d.files.delete(t);d.validateTotals(t);d.kick()};this.validateTotals=function(t){var e=W(d.files,d.maxBytesTotal);var a=R(d.files,d.maxFiles);if(e&&t){d.updateValueInMap(t,"error",_("duet-upload-202",d.errorCodes),false)}if(a&&t){d.updateValueInMap(t,"error",_("duet-upload-301",d.errorCodes),false)}d.bytesMaxReached=e;d.fileMaxReached=a;return{bytesMaxReached:e,fileMaxReached:a}};this.uploadFile=function(t){var e=[];for(var a=1;a<arguments.length;a++){e[a-1]=arguments[a]}return __awaiter(d,__spreadArray([t],e,true),void 0,(function(t,e,a){var i,d,n;if(e===void 0){e=false}return __generator(this,(function(r){switch(r.label){case 0:if(!e&&this.deferUpload){this.updateValueInMap(t.item.name,"pending",true,false);this.updateValueInMap(t.item.name,"group","pending",true)}else if(e){this.updateValueInMap(t.item.name,"pending",false,false);this.updateValueInMap(t.item.name,"group",undefined,true)}r.label=1;case 1:r.trys.push([1,4,,5]);if(!(!this.deferUpload||e))return[3,3];i=new FormData;i.append("file",t.item);if(a){i.append("key",a)}i.append("uid",t.uid);i.append("name",t.item.name);i.append("metadata",JSON.stringify({uid:t.uid,url:this.uri,size:t.item.size,meta:t.meta}));d=t;return[4,this.makeXHRPostRequest(i)];case 2:d.xhr=r.sent();r.label=3;case 3:return[3,5];case 4:n=r.sent();this.updateValueInMap(t.item.name,"valid",false,false);return[3,5];case 5:return[2]}}))}))};this.uploadPendingFiles=function(){for(var t=0,e=Array.from(d.files.entries());t<e.length;t++){var a=e[t],i=a[0],n=a[1];if(n.group==="pending"&&n.pending===true){d.uploadFile(n,true,i)}}};this.getItemFromUID=function(t){for(var e=0,a=Array.from(d.files.entries());e<a.length;e++){var i=a[e],n=i[0],r=i[1];if(r.uid===t){return{value:r,key:n}}}return null};this.handleExternalUploadButton=function(t,e){if(d.externalUploadButton){if(t||e){d.externalUploadButton.disabled=true}else{d.externalUploadButton.disabled=false}}};this.onDelete=function(t,e){var a=d.getItemFromUID(t);var i=a.key;var n=d.files.get(i);d.files.delete(i);var r=d.validateTotals(),l=r.bytesMaxReached,o=r.fileMaxReached;d.handleExternalUploadButton(l,o);d.kick();d.duetDelete.emit({originalEvent:e,data:{deletion:n},component:"duet-upload"});if(!d.external&&!n.pending){d.makeXHRDeleteRequest(n)}d.resetFormFields()};this.onCancel=function(t,e){var a=d.getItemFromUID(t).key;var i=d.files.get(a);d.files.delete(a);var n=d.validateTotals(),r=n.bytesMaxReached,l=n.fileMaxReached;d.handleExternalUploadButton(r,l);if(!d.external){var o=i.xhr;if(o){o.abort()}}d.kick();d.resetFormFields();d.duetCancel.emit({originalEvent:e,data:{cancelled:i},component:"duet-upload"})};this.onUpload=function(t,e){d.duetUpload.emit({originalEvent:t,metaData:e,component:"duet-upload"})};this.onBlur=function(t){d.duetBlur.emit({originalEvent:t,component:"duet-upload"})};this.onProgress=function(t,e,a){d.duetChange.emit({originalEvent:a,data:{key:t,percentComplete:e},component:"duet-upload"})};this.onFocus=function(t){d.duetFocus.emit({originalEvent:t,component:"duet-upload"})};this.onReady=function(){d.duetReady.emit({component:"duet-upload"})};this.onDone=function(){d.duetDone.emit({component:"duet-upload",data:{files:d.files}})};this.filterMap=function(){var t=Array.from(d.files.values());var e=[];var a=[];var i=[];var n=[];var r=false;t.forEach((function(t){var l=d.getGroupFromItemData(t);if(t.meta&&!!t.meta.badges){r=true}if(l===d.DefaultGroups.success){n.push({uid:t.uid,data:t})}else if(l===d.DefaultGroups.inprogress){e.push({uid:t.uid,data:t})}else if(l===d.DefaultGroups.pending){i.push({uid:t.uid,data:t})}else if(l===d.DefaultGroups.failure){a.push({uid:t.uid,data:t})}else if(t.group){e.push({uid:t.uid,data:t})}}));return{pending:i,failure:a,success:n,inprogress:e,hasCategory:r}};this.getActions=function(t,e){return e.filter((function(e){return e.map.includes(t)}))};this.renderUploadedItems=function(){d.itemRefs.clear();var t=d.filterMap();var a=t.hasCategory;var i=d.hideCancelButton?d.actions.filter((function(t){return t.name!=="cancel"})):d.actions;var n=d.groups.map((function(n){var l=t[n.id];if(!(l===null||l===void 0?void 0:l.length)){return}return e(r,null,!d.hideGroups&&e(D,{categoryLabel:a?d.categoryLabel:undefined,label:n.label}),l.map((function(t){return d.mapFilesToUploadItems(t.data,n.id,a,i)})))}));return e(r,null,d.showUploadedItemsHeader&&e(D,{categoryLabel:a?d.categoryLabel:undefined,label:d.uploadedItemsHeaderLabel}),n)};this.tick=Date.now();this.accessibleActiveDescendant=undefined;this.accessibleDescribedBy=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.external=false;this.middleware=null;this.deferUpload=false;this.hideButton=false;this.actions=[{icon:"action-delete",color:"color-danger",size:"x-small",background:"gray-lightest",name:"delete",map:["success","failure"],label:{fi:"Poista tiedosto",en:"Delete the file",sv:"Ta bort filen"}},{icon:"navigation-close",color:"primary",size:"x-small",background:"gray-lightest",name:"cancel",map:["inprogress","pending"],label:{fi:"Keskeytä lähetys",en:"Cancel the upload",sv:"Stop överföringen"}}];this.uri=undefined;this.showLinks=false;this.caption=undefined;this.statusLabelDefaults={fi:{inProgress:"Lähetetään {filesUploaded}, yhteensä lähetettävänä {filesTotal}.",inProgressWithErrors:"Lähetetään {filesInProgress}, lähetetty {filesUploaded}, yhteensä lähetettävänä {filesTotal}, {filesWithErrors} epäonnistui",done:"Lähetys valmis, {filesTotal} lisätty onnistuneesti",doneWithErrors:"Lähetys valmis, {filesUploaded} lisätty onnistuneesti, {filesWithErrors} epäonnistui",files:"tiedostoa",file:"tiedosto"},sv:{inProgress:"Laddar upp {filesUploaded} av {filesTotal}",inProgressWithErrors:"Laddar upp {filesInProgress}, {filesUploaded} uppladdad av {filesTotal}, {filesWithErrors} misslyckades",done:"Uppladdningen slutförd, {filesTotal} har lagts till",doneWithErrors:"Uppladdningen slutförd, {filesUploaded} har lagts till, {filesWithErrors} misslyckades",files:"filer",file:"fil"},en:{inProgress:"Uploading {filesUploaded} of {filesTotal}",inProgressWithErrors:"Uploading {filesInProgress}, {filesUploaded} uploaded of {filesTotal}, {filesWithErrors} failed",done:"Upload completed, {filesTotal} added successfully",doneWithErrors:"Upload completed, {filesUploaded} added successfully, {filesWithErrors} failed.",files:"files",file:"file"}};this.statusMessageLabel=c(this.statusLabelDefaults);this.buttonLabelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add an attachment"};this.buttonLabel=c(this.buttonLabelDefaults);this.accessibleButtonLabel=undefined;this.theme="";this.disabled=false;this.identifier=undefined;this.margin="auto";this.required=false;this.alignment="middle";this.hideGroups=false;this.files=new Map;this.valid=!this.required;this.labelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add attachments"};this.label=c(this.labelDefaults);this.descriptionDefaults={en:"You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytestotal} of files at a time, and add up to {maxfiles} attachments at a time each no larger than {maxbytes}.",sv:"Du kan bifoga följande filtyper: {filetypes} - samt de vanligaste videofilerna. Du kan ladda upp {maxbytestotal} av filer åt gången, och lägga till upp till {maxfiles} bilagor åt gången varje inte större än {maxbytes}.",fi:"Voit liittää seuraavat tiedostotyypit: {filetypes} - sekä yleisimmät videotiedostot. Voit lähettää {maxbytestotal} tiedostoa kerrallaan, ja lisätä enintään {maxfiles} liitettä kerrallaan, jokainen enintään {maxbytes} kokoisena."};this.description=c(this.descriptionDefaults);this.fileListEmptyDefaults={fi:"Ei vielä lisättyjä tiedostoja.",sv:"Inga filer har lagts till ännu.",en:"No files added yet."};this.fileListEmpty=c(this.fileListEmptyDefaults);this.error="";this.errorCodes=M;this.name=undefined;this.maxBytes=2e8;this.maxBytesTotal=undefined;this.maxFiles=99;this.allowedExtensions="all";this.allowedMimetypes="";this.multiple=true;this.limitSelection=false;this.hideCancelButton=false;this.value=undefined;this.externalUploadButtonId=undefined;this.captionOnBottom=false;this.showUploadedItemsHeader=false;this.uploadedItemsHeaderLabel={fi:"Ladattu tiedosto",sv:"Lägg till en bilaga",en:"Uploaded file"};this.headerHeadingLevel="h3";this.hideHeader=false;this.emitEvent=false;this.actionButtonTitles={cancel:false,delete:false};this.renameDuplicates=false;this.groups=[{id:this.DefaultGroups.success,label:{fi:"Valmiit tiedostot",sv:"Files success",en:"Files success"}},{id:this.DefaultGroups.failure,label:{fi:"Tiedostot, joissa on virheitä",sv:"Filer med fel",en:"Files with errors"}},{id:this.DefaultGroups.inprogress,label:{fi:"Kesken olevat tiedostot",sv:"Filer inprogress",en:"Files inprogress"}},{id:this.DefaultGroups.pending,label:{en:"Files to upload",sv:"Filer att ladda",fi:"Ladattavat tiedostot"}}]}t.prototype.watchValidHandler=function(t,e){if(t!==e){this.kick()}};t.prototype.componentWillLoad=function(){if(typeof this.statusMessageLabel==="string"){this.internalStatusMessageLabel=p(this.groups)}else{this.internalStatusMessageLabel=this.statusMessageLabel}l(this);this.listenForActionEvents();this.onReady();this.externalUploadButton=document.querySelector("#".concat(this.externalUploadButtonId));this.processedButtonTitles=w(this.actionButtonTitles)};t.prototype.componentWillRender=function(){this.verifyValidity()};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.nativeInput){this.nativeInput.focus(t)}return[2]}))}))};t.prototype.upload=function(){return __awaiter(this,arguments,void 0,(function(t){var e,a,i;if(t===void 0){t=undefined}return __generator(this,(function(d){e=this.validateTotals(),a=e.bytesMaxReached,i=e.fileMaxReached;if(a||i){this.handleExternalUploadButton(a,i);this.kick();return[2]}this.metaData=t;this.nativeInput.click();return[2]}))}))};t.prototype.uploadPending=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.uploadPendingFiles();return[2]}))}))};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:this.kick();return[4,this.setFocus()];case 1:t.sent();return[2]}}))}))};t.prototype.getFiles=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.files||this.files.size===0){return[2,false]}return[2,this.getFilesAsArray()]}))}))};t.prototype.updateValue=function(t,e,a){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.updateValueInMap(t,e,a);return[2]}))}))};t.prototype.focusActionButton=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(a){switch(a.label){case 0:return[4,(e=this.itemRefs.get(t))===null||e===void 0?void 0:e.focusActionButton()];case 1:a.sent();return[2]}}))}))};t.prototype.render=function(){var t=this;var a=this.identifier||this.uploadId;var i=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024);var n=Math.round(this.maxBytes/1024/1024);var l=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());l=l.replace(/{maxbytes}/g,"".concat(n.toString()," MB"));l=l.replace(/{maxbytestotal}/g,"".concat(i.toString()," MB"));l=l.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", "));if(this.externalUploadButton){this.externalUploadButton.accessibleLabel="".concat(this.externalUploadButton.innerText,". ").concat(l)}return e(d,{key:"c7f1bf7d8cf499d955da5205808a3ea5428035b2",class:{"duet-m-0":this.margin==="none"}},e("duet-fieldset",{key:"1460d528cb7fa48e6c6867100f4f12646eb28cf9","label-heading-level":this.headerHeadingLevel,"label-hidden":this.hideHeader,label:this.label},e("slot",{key:"dcc7b2faccc425c862b51d5c1732351973e5bb35",name:"header"}),!this.files.size&&e("duet-empty-state",{key:"cd063eb6f01f9c981e6d5489948905b6109077b6",id:this.labelId,part:this.identifier?"".concat(this.identifier,"-empty-state"):"duet-upload-empty-state",icon:"messaging-attachment"},e("duet-paragraph",{key:"6a233a0b84de2933ea96e01d3bf83a45e7a6e50c",margin:"none"},this.fileListEmpty)),!!this.files.size&&e("slot",{key:"3aafba5896461df3b1c8ddb13dd663c98a1983e0",name:"fileheader"}),!!this.files.size&&e("duet-upload-aria-status",{key:"f776236c6ba78c275e213a82c8c00b337f9b7594",invalid:this.getFilesAsArray().invalid.length,valid:this.getFilesAsArray().valid.length,inprogress:this.filesInProgress.size,total:this.files.size,statusMessageLabel:this.internalStatusMessageLabel}),!!this.files.size&&this.renderUploadedItems(),!!this.files.size&&e("slot",{key:"7e8c78fb32117643609ac7cd0b984207513ab742",name:"filefooter"}),e("slot",{key:"de74f9f77d8d78d0a738d5cb10af764c830d90a7",name:"uploadfooter"}),this.captionOnBottom&&e("duet-caption",{key:"7abd791a093afc3fb151847fc1e2ac955f0e59ee",margin:"none",size:"small"},e("div",{key:"5f68e2b352db0e0905a791647f0dafe74063897d",class:"upload-bottom-caption"},l)),e("slot",{key:"d286427445a790dc955f7ffc96ae2b5af7cb04e7",name:"afterfooter"}),!this.hideButton&&e(r,{key:"055b712495e396748b320913cab77e5377e4c38d"},e("duet-spacer",{key:"b5f63e77e82da67f1b5b88e88b70c9b14d7dbe1a",size:"large"}),e("duet-button",{key:"11feaaf6cf24744aecc3c4c159a03841e6cba34e",id:this.buttonId,onClick:this.startUpload,"accessible-controls":a,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel||"".concat(this.buttonLabel,". ").concat(l),"accessible-owns":a,size:"small",variation:"secondary",fixed:true,icon:"action-add-circle",part:this.identifier?"".concat(this.identifier,"-button-upload"):"duet-upload-button-upload"},this.buttonLabel)),(this.fileMaxReached||this.bytesMaxReached||this.filesToUploadExceedsLimit||this.filesToUploadTotalSizeIsAboveMax)&&e(r,{key:"7ce04c54d1dc3f550c956a81f032f816fdf78b46"},e("duet-spacer",{key:"b4a03f6aa7757f47018a7c906807d9065d1c71e2",size:"medium"}),e("duet-alert",{key:"9bb87f4fbed6c654fc01e6b981559b71d2d84386",part:this.identifier?"".concat(this.identifier,"-error-notification"):"duet-upload-error-notification"},this.fileMaxReached&&_("duet-upload-301",this.errorCodes),this.bytesMaxReached&&_("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&_("duet-upload-302",this.errorCodes),this.filesToUploadTotalSizeIsAboveMax&&_("duet-upload-203",this.errorCodes))),e("duet-visually-hidden",{key:"d3f9fb94e17554fcec4db21a9a66cadaf98fa073","aria-hidden":"true"},e("input",{key:"728996468d1dd97139be322580f2475d6917eb5f",ref:function(e){t.nativeInput=e},accept:!this.limitSelection?undefined:"".concat(this.allowedMimetypes,",").concat(this.allowedExtensions),onBlur:this.onBlur,onFocus:this.onFocus,onChange:function(e){return t.onChange(e)},type:"file",class:{"duet-upload":true},disabled:this.disabled,"aria-hidden":"true",required:this.required,name:this.name,id:this.identifier,multiple:this.multiple,tabIndex:-1}))))};t.prototype.makeXHRPostRequest=function(t){var e=this;var a=new XMLHttpRequest;var i=t.get("name");a.upload.addEventListener("progress",(function(t){e.updateProgress(t,i)}));a.upload.addEventListener("load",(function(){e.transferComplete(i)}));a.upload.addEventListener("error",(function(){e.transferFailed(i)}));a.upload.addEventListener("abort",(function(){e.transferCanceled(i)}));var d={payload:{data:t,name:i},options:{type:"POST",uri:this.uri,xhr:a,argument:null,headers:undefined},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){d=this.middleware(d)}return q(d)};t.prototype.makeXHRDeleteRequest=function(t){var e=t.uid,a=t.item;var i=new XMLHttpRequest;var d={"x-fileuid":e,"x-filename":a.name};var n={payload:{data:null,name:name},options:{type:"DELETE",xhr:i,uri:this.uri,argument:"?key=".concat(e,"&name=").concat(a.name),headers:d},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){n=this.middleware(n)}return q(n)};t.prototype.escapeSpecialCharacters=function(t){return(t+"").replace(/[\\"'(){}\[\]*?$^+]/g,"\\$&").replace(/\u0000/g,"\\0")};t.prototype.getRenamedFileName=function(t,e){var a=new RegExp("".concat(this.escapeSpecialCharacters(t)," \\(\\d+\\).").concat(e));var i=Array.from(this.files.entries()).map((function(t){var e=t[0],a=t[1];return e})).filter((function(i){return a.test(i)||i==="".concat(t,".").concat(e)})).sort((function(t,e){return t.split(".").slice(0,-1).join(".")>e.split(".").slice(0,-1).join(".")?1:-1})).pop().split(".").slice(0,-1).join(".");if(i===t){return"".concat(t," (1).").concat(e)}var d=parseInt(i.split("(").pop().slice(0,-1));return"".concat(t," (").concat(d+1,").").concat(e)};t.prototype.renameFiles=function(t){var e=this;return t.map((function(t){if(e.files.get(t.name)){var a=t.name.split(".");var i=a.pop();var d=a.join(".");var n=e.getRenamedFileName(d,i);return new File([t],n,{type:t.type,lastModified:t.lastModified})}else{return t}}))};t.prototype.onChange=function(t){return __awaiter(this,void 0,void 0,(function(){var e,a,i,d,n,r,l,o,s,u,h,f;return __generator(this,(function(b){switch(b.label){case 0:a=Array.from((e=this.nativeInput)===null||e===void 0?void 0:e.files);this.filesToUploadExceedsLimit=false;if(N(this.files.size,a.length,this.maxFiles)){this.filesToUploadExceedsLimit=true;this.kick();return[2]}this.filesToUploadTotalSizeIsAboveMax=false;if(Y(this.files,a,this.maxBytesTotal)){this.filesToUploadTotalSizeIsAboveMax=true;this.kick();return[2]}if(!a)return[3,6];if(this.renameDuplicates){a=this.renameFiles(a)}i=0,d=a;b.label=1;case 1:if(!(i<d.length))return[3,6];n=d[i];r=O(n,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),l=r.valid,o=r.errorMessage,s=r.errorType,u=r.errorSystem;h=this.genHashName();f={uid:h,item:n,size:n.size,meta:this.metaData,uploaded:false,valid:l,error:{type:l?undefined:s,message:l?undefined:o,system_message:l?undefined:u},progress:0,deleted:false,xhr:false,url:false};this.files.set(n.name,f);if(!(l&&!this.external))return[3,3];return[4,this.uploadFile(f)];case 2:b.sent();return[3,4];case 3:if(l&&this.external){this.updateValueInMap(f.item.name,"pending",true,false);this.updateValueInMap(f.item.name,"group","pending",true)}else if(!l){this.updateValueInMap(n.name,"valid",false,true)}b.label=4;case 4:this.kick();b.label=5;case 5:i++;return[3,1];case 6:this.resetFormFields();this.metaData=undefined;this.duetChange.emit({originalEvent:t,data:{files:this.files},component:"duet-upload"});return[2]}}))}))};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{valid:["watchValidHandler"]}},enumerable:false,configurable:true});return t}());J.style=H}}}));