@duetds/components 6.10.2 → 6.10.3

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 (602) hide show
  1. package/hydrate/index.js +4106 -3645
  2. package/lib/cjs/duet-action-button.cjs.entry.js +1 -1
  3. package/lib/cjs/duet-alert.cjs.entry.js +1 -1
  4. package/lib/cjs/duet-badge.cjs.entry.js +1 -1
  5. package/lib/cjs/duet-banner.cjs.entry.js +1 -1
  6. package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
  7. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
  8. package/lib/cjs/duet-button_2.cjs.entry.js +1 -1
  9. package/lib/cjs/duet-callout.cjs.entry.js +1 -1
  10. package/lib/cjs/duet-caption_4.cjs.entry.js +1 -1
  11. package/lib/cjs/duet-card.cjs.entry.js +1 -1
  12. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  13. package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
  14. package/lib/cjs/duet-chip.cjs.entry.js +95 -0
  15. package/lib/cjs/duet-choice_2.cjs.entry.js +24 -11
  16. package/lib/cjs/duet-collapsible.cjs.entry.js +1 -1
  17. package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
  18. package/lib/cjs/duet-contact-card.cjs.entry.js +1 -1
  19. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  20. package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
  21. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  22. package/lib/cjs/duet-editable-table_3.cjs.entry.js +4 -2
  23. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  24. package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
  25. package/lib/cjs/duet-footer.cjs.entry.js +1 -1
  26. package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
  27. package/lib/cjs/duet-header_2.cjs.entry.js +1 -1
  28. package/lib/cjs/duet-hero.cjs.entry.js +1 -1
  29. package/lib/cjs/duet-icon.cjs.entry.js +1 -1
  30. package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
  31. package/lib/cjs/duet-layout.cjs.entry.js +1 -1
  32. package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
  33. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +1 -1
  34. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
  35. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
  36. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
  37. package/lib/cjs/duet-menu-bar.cjs.entry.js +1 -1
  38. package/lib/cjs/duet-modal.cjs.entry.js +2 -2
  39. package/lib/cjs/duet-multiselect.cjs.entry.js +1 -1
  40. package/lib/cjs/duet-nav.cjs.entry.js +1 -1
  41. package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
  42. package/lib/cjs/duet-number-input.cjs.entry.js +8 -1
  43. package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
  44. package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
  45. package/lib/cjs/duet-popup-menu-item.cjs.entry.js +43 -0
  46. package/lib/cjs/duet-popup-menu.cjs.entry.js +109 -0
  47. package/lib/cjs/duet-progress.cjs.entry.js +1 -1
  48. package/lib/cjs/duet-promo-card.cjs.entry.js +1 -1
  49. package/lib/cjs/duet-radio_2.cjs.entry.js +5 -4
  50. package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
  51. package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
  52. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
  53. package/lib/cjs/duet-select.cjs.entry.js +1 -1
  54. package/lib/cjs/duet-shaped-image.cjs.entry.js +1 -1
  55. package/lib/cjs/duet-show-more.cjs.entry.js +95 -0
  56. package/lib/cjs/duet-slideout-lang.cjs.entry.js +1 -1
  57. package/lib/cjs/duet-slideout-link.cjs.entry.js +1 -1
  58. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
  59. package/lib/cjs/duet-slideout-panel.cjs.entry.js +2 -2
  60. package/lib/cjs/duet-slideout.cjs.entry.js +2 -2
  61. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  62. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
  63. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +1 -1
  64. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
  65. package/lib/cjs/duet-submenu-bar.cjs.entry.js +1 -1
  66. package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
  67. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  68. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -1
  69. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
  70. package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
  71. package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
  72. package/lib/cjs/duet-tooltip.cjs.entry.js +4 -1174
  73. package/lib/cjs/duet-tray.cjs.entry.js +1 -1
  74. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  75. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  76. package/lib/cjs/duet.cjs.js +2 -2
  77. package/lib/cjs/floating-ui.dom.esm-3801794e.js +1251 -0
  78. package/lib/cjs/{focus-utils-a7ec8d4d.js → focus-utils-fa8771cc.js} +1 -1
  79. package/lib/cjs/{index-b91d0c7f.js → index-ad229c23.js} +1 -1
  80. package/lib/cjs/loader.cjs.js +2 -2
  81. package/lib/collection/collection-manifest.json +4 -0
  82. package/lib/collection/components/duet-action-button/duet-action-button.js +2 -2
  83. package/lib/collection/components/duet-alert/duet-alert.js +1 -1
  84. package/lib/collection/components/duet-button/duet-button.js +5 -5
  85. package/lib/collection/components/duet-caption/duet-caption.js +1 -1
  86. package/lib/collection/components/duet-card/duet-card.js +3 -3
  87. package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
  88. package/lib/collection/components/duet-chip/duet-chip.css +174 -0
  89. package/lib/collection/components/duet-chip/duet-chip.js +320 -0
  90. package/lib/collection/components/duet-choice/duet-choice.css +48 -21
  91. package/lib/collection/components/duet-choice/duet-choice.js +42 -11
  92. package/lib/collection/components/duet-collapsible/duet-collapsible.js +3 -3
  93. package/lib/collection/components/duet-combobox/duet-combobox.js +3 -3
  94. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
  95. package/lib/collection/components/duet-date-picker/duet-date-picker.js +4 -4
  96. package/lib/collection/components/duet-divider/duet-divider.js +1 -1
  97. package/lib/collection/components/duet-editable-table/duet-editable-table.js +8 -6
  98. package/lib/collection/components/duet-empty-state/duet-empty-state.js +1 -1
  99. package/lib/collection/components/duet-footer/duet-footer.js +7 -7
  100. package/lib/collection/components/duet-grid/duet-grid.js +3 -3
  101. package/lib/collection/components/duet-header/duet-header.js +15 -15
  102. package/lib/collection/components/duet-heading/duet-heading.js +1 -1
  103. package/lib/collection/components/duet-hero/duet-hero.js +5 -5
  104. package/lib/collection/components/duet-icon/duet-icon.js +1 -1
  105. package/lib/collection/components/duet-input/duet-input.js +8 -8
  106. package/lib/collection/components/duet-label/duet-label.js +2 -2
  107. package/lib/collection/components/duet-layout/duet-layout.js +1 -1
  108. package/lib/collection/components/duet-list/duet-list.js +3 -3
  109. package/lib/collection/components/duet-logo/duet-logo.js +1 -1
  110. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +1 -1
  111. package/lib/collection/components/duet-modal/duet-modal.js +3 -3
  112. package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
  113. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +1 -1
  114. package/lib/collection/components/duet-number-input/duet-number-input.js +27 -4
  115. package/lib/collection/components/duet-pagination/duet-pagination.js +2 -2
  116. package/lib/collection/components/duet-paragraph/duet-paragraph.js +3 -3
  117. package/lib/collection/components/duet-popup-menu/duet-popup-menu.css +50 -0
  118. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +317 -0
  119. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.css +69 -0
  120. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +205 -0
  121. package/lib/collection/components/duet-radio/duet-radio.css +3 -3
  122. package/lib/collection/components/duet-radio/duet-radio.js +12 -6
  123. package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
  124. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +1 -1
  125. package/lib/collection/components/duet-select/duet-select.js +5 -5
  126. package/lib/collection/components/duet-show-more/duet-show-more.css +46 -0
  127. package/lib/collection/components/duet-show-more/duet-show-more.js +214 -0
  128. package/lib/collection/components/duet-slideout/duet-slideout.js +1 -1
  129. package/lib/collection/components/duet-spacer/duet-spacer.js +2 -2
  130. package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
  131. package/lib/collection/components/duet-step/duet-step.js +2 -2
  132. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  133. package/lib/collection/components/duet-tab-group/duet-tab-group.js +5 -5
  134. package/lib/collection/components/duet-textarea/duet-textarea.js +4 -4
  135. package/lib/collection/components/duet-toggle/duet-toggle.js +1 -1
  136. package/lib/collection/components/duet-tooltip/duet-tooltip.js +1 -1
  137. package/lib/collection/components/duet-upload/duet-upload.js +14 -14
  138. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  139. package/lib/dist-custom-elements/duet-alert.js +1 -1
  140. package/lib/dist-custom-elements/duet-badge.js +1 -1
  141. package/lib/dist-custom-elements/duet-banner.js +4 -4
  142. package/lib/dist-custom-elements/duet-breadcrumb.js +2 -2
  143. package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
  144. package/lib/dist-custom-elements/duet-button.js +1 -1
  145. package/lib/dist-custom-elements/duet-callout.js +3 -3
  146. package/lib/dist-custom-elements/duet-caption.js +1 -1
  147. package/lib/dist-custom-elements/duet-card.js +3 -3
  148. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  149. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  150. package/lib/dist-custom-elements/duet-chip.d.ts +11 -0
  151. package/lib/dist-custom-elements/duet-chip.js +125 -0
  152. package/lib/dist-custom-elements/duet-choice-group.js +6 -6
  153. package/lib/dist-custom-elements/duet-choice.js +28 -14
  154. package/lib/dist-custom-elements/duet-collapsible.js +2 -2
  155. package/lib/dist-custom-elements/duet-combobox.js +2 -2
  156. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  157. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  158. package/lib/dist-custom-elements/duet-date-picker.js +10 -10
  159. package/lib/dist-custom-elements/duet-divider.js +1 -1
  160. package/lib/dist-custom-elements/duet-editable-table.js +10 -8
  161. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  162. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  163. package/lib/dist-custom-elements/duet-footer.js +4 -4
  164. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  165. package/lib/dist-custom-elements/duet-grid.js +1 -1
  166. package/lib/dist-custom-elements/duet-header.js +8 -8
  167. package/lib/dist-custom-elements/duet-heading.js +1 -1
  168. package/lib/dist-custom-elements/duet-hero.js +9 -9
  169. package/lib/dist-custom-elements/duet-icon.js +1 -1
  170. package/lib/dist-custom-elements/duet-input.js +1 -1
  171. package/lib/dist-custom-elements/duet-label.js +1 -1
  172. package/lib/dist-custom-elements/duet-layout.js +1 -1
  173. package/lib/dist-custom-elements/duet-link.js +1 -1
  174. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  175. package/lib/dist-custom-elements/duet-list.js +1 -1
  176. package/lib/dist-custom-elements/duet-logo.js +1 -1
  177. package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
  178. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
  179. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
  180. package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
  181. package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
  182. package/lib/dist-custom-elements/duet-modal.js +7 -7
  183. package/lib/dist-custom-elements/duet-multiselect.js +8 -8
  184. package/lib/dist-custom-elements/duet-nav.js +1 -1
  185. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  186. package/lib/dist-custom-elements/duet-notification.js +2 -2
  187. package/lib/dist-custom-elements/duet-number-input.js +18 -10
  188. package/lib/dist-custom-elements/duet-page-heading.js +2 -2
  189. package/lib/dist-custom-elements/duet-pagination.js +7 -7
  190. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  191. package/lib/dist-custom-elements/duet-popup-menu-item.d.ts +11 -0
  192. package/lib/dist-custom-elements/duet-popup-menu-item.js +72 -0
  193. package/lib/dist-custom-elements/duet-popup-menu.d.ts +11 -0
  194. package/lib/dist-custom-elements/duet-popup-menu.js +137 -0
  195. package/lib/dist-custom-elements/duet-progress.js +1 -1
  196. package/lib/dist-custom-elements/duet-promo-card.js +3 -3
  197. package/lib/dist-custom-elements/duet-radio-group.js +6 -6
  198. package/lib/dist-custom-elements/duet-radio.js +6 -5
  199. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  200. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  201. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  202. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  203. package/lib/dist-custom-elements/duet-select.js +1 -1
  204. package/lib/dist-custom-elements/duet-shaped-image.js +1 -1
  205. package/lib/dist-custom-elements/duet-show-more.d.ts +11 -0
  206. package/lib/dist-custom-elements/duet-show-more.js +137 -0
  207. package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
  208. package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
  209. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
  210. package/lib/dist-custom-elements/duet-slideout-panel.js +2 -2
  211. package/lib/dist-custom-elements/duet-slideout.js +2 -2
  212. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  213. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  214. package/lib/dist-custom-elements/duet-step.js +4 -4
  215. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  216. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
  217. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +2 -2
  218. package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
  219. package/lib/dist-custom-elements/duet-submenu-bar.js +2 -2
  220. package/lib/dist-custom-elements/duet-tab-group.js +11 -11
  221. package/lib/dist-custom-elements/duet-tab.js +1 -1
  222. package/lib/dist-custom-elements/duet-table.js +1 -1
  223. package/lib/dist-custom-elements/duet-textarea.js +8 -8
  224. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  225. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
  226. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
  227. package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
  228. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  229. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  230. package/lib/dist-custom-elements/duet-tray.js +3 -3
  231. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  232. package/lib/dist-custom-elements/duet-upload.js +17 -17
  233. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  234. package/lib/dist-custom-elements/index.js +1 -1
  235. package/lib/dist-custom-elements/{p-39c6c68e.js → p-0639a930.js} +1 -1
  236. package/lib/dist-custom-elements/{p-227cc94f.js → p-06f56040.js} +1 -1
  237. package/lib/dist-custom-elements/{p-a0f68c00.js → p-0bab8976.js} +3 -3
  238. package/lib/dist-custom-elements/{p-beca0ced.js → p-1460c5f4.js} +1 -1
  239. package/lib/dist-custom-elements/{p-4197b9ee.js → p-362cf634.js} +2 -2
  240. package/lib/dist-custom-elements/{p-8fb68cb1.js → p-4524a59b.js} +2 -2
  241. package/lib/dist-custom-elements/{p-e6f6efa6.js → p-581d4969.js} +1 -1
  242. package/lib/dist-custom-elements/{p-00f8d4bc.js → p-59964344.js} +1 -1
  243. package/lib/dist-custom-elements/{p-6f4b6168.js → p-8549a5d3.js} +1 -1
  244. package/lib/dist-custom-elements/{p-62f3b6cb.js → p-87b42dc0.js} +3 -3
  245. package/lib/dist-custom-elements/{p-3595aea9.js → p-88a1aa29.js} +1 -1
  246. package/lib/dist-custom-elements/{p-c202693f.js → p-9a39285c.js} +1 -1
  247. package/lib/dist-custom-elements/{p-8638ba69.js → p-9e321809.js} +1 -1
  248. package/lib/dist-custom-elements/{p-419d2da0.js → p-a76c2c68.js} +6 -6
  249. package/lib/dist-custom-elements/{p-e3acab40.js → p-ab8093ce.js} +2 -2
  250. package/lib/dist-custom-elements/{p-58105b4f.js → p-abf2f8eb.js} +1 -1
  251. package/lib/dist-custom-elements/{p-f6b5ce88.js → p-b0a1fc7a.js} +1 -1
  252. package/lib/dist-custom-elements/{p-6de01596.js → p-b0e822ad.js} +1 -1
  253. package/lib/dist-custom-elements/{p-96b624ec.js → p-bd3f4de1.js} +1 -1
  254. package/lib/dist-custom-elements/{p-e3ac121c.js → p-c221f8d5.js} +5 -5
  255. package/lib/dist-custom-elements/{p-7d6d90bc.js → p-c3a8f22f.js} +1 -1
  256. package/lib/dist-custom-elements/{p-1b3de4b8.js → p-c5723f69.js} +1 -1
  257. package/lib/dist-custom-elements/{p-d6a6460a.js → p-c9cee36a.js} +1 -1
  258. package/lib/dist-custom-elements/{p-2747b8c6.js → p-d993c8ca.js} +4 -4
  259. package/lib/dist-custom-elements/{p-9e83a449.js → p-dade840c.js} +2 -2
  260. package/lib/dist-custom-elements/{p-ea756e9e.js → p-ddbc4897.js} +5 -5
  261. package/lib/dist-custom-elements/{p-38b3c30a.js → p-df10a767.js} +71 -274
  262. package/lib/dist-custom-elements/{p-2b132855.js → p-e550208a.js} +1 -1
  263. package/lib/dist-custom-elements/{p-28658e20.js → p-e6027c0e.js} +8 -8
  264. package/lib/dist-custom-elements/{p-eb29050b.js → p-f4a36471.js} +1 -1
  265. package/lib/dist-custom-elements/{p-05139591.js → p-f97098ff.js} +1 -1
  266. package/lib/dist-custom-elements/p-fa4af49a.js +278 -0
  267. package/lib/duet/duet.esm.js +1 -1
  268. package/lib/duet/duet.js +1 -1
  269. package/lib/duet/{p-17dc8da9.system.entry.js → p-000197bb.system.entry.js} +1 -1
  270. package/lib/duet/p-00c61228.system.entry.js +4 -0
  271. package/lib/duet/{p-2cab347d.system.entry.js → p-02a9b697.system.entry.js} +2 -2
  272. package/lib/duet/{p-42e270f3.entry.js → p-07795672.entry.js} +1 -1
  273. package/lib/duet/{p-1e6f5e74.system.entry.js → p-0b208f94.system.entry.js} +1 -1
  274. package/lib/duet/{p-931c3e1f.system.entry.js → p-0b4324b1.system.entry.js} +1 -1
  275. package/lib/duet/p-0c7c6acc.system.entry.js +4 -0
  276. package/lib/duet/{p-e9939ddb.system.entry.js → p-0de3b52d.system.entry.js} +1 -1
  277. package/lib/duet/{p-93ef4cc2.system.entry.js → p-0f05038e.system.entry.js} +1 -1
  278. package/lib/duet/{p-1d73a1d2.system.entry.js → p-0f49469b.system.entry.js} +1 -1
  279. package/lib/duet/{p-dc9bf216.entry.js → p-0fc4fd1f.entry.js} +1 -1
  280. package/lib/duet/{p-87f85912.system.entry.js → p-0fdddc6d.system.entry.js} +1 -1
  281. package/lib/duet/{p-0fbdbb6a.entry.js → p-0fe6e2f3.entry.js} +1 -1
  282. package/lib/duet/p-1090bfbd.entry.js +4 -0
  283. package/lib/duet/p-10d47bb3.entry.js +4 -0
  284. package/lib/duet/{p-8cf1327e.entry.js → p-10d57786.entry.js} +1 -1
  285. package/lib/duet/{p-75898c81.entry.js → p-17569309.entry.js} +1 -1
  286. package/lib/duet/{p-22e418ea.entry.js → p-18084aa4.entry.js} +1 -1
  287. package/lib/duet/{p-1d3647c6.system.entry.js → p-18b63745.system.entry.js} +1 -1
  288. package/lib/duet/{p-673127ac.system.entry.js → p-190e7c1f.system.entry.js} +1 -1
  289. package/lib/duet/{p-770d0c35.system.entry.js → p-193d3aaa.system.entry.js} +1 -1
  290. package/lib/duet/p-1983b903.system.entry.js +4 -0
  291. package/lib/duet/p-2271aa12.entry.js +4 -0
  292. package/lib/duet/{p-30c684e8.entry.js → p-242c1c1a.entry.js} +1 -1
  293. package/lib/duet/{p-f88ac93f.system.entry.js → p-26cfed76.system.entry.js} +1 -1
  294. package/lib/duet/p-26fb19cc.entry.js +4 -0
  295. package/lib/duet/{p-29ce564d.entry.js → p-29dd2b2b.entry.js} +1 -1
  296. package/lib/duet/{p-6c1a2b16.entry.js → p-2a8ca3eb.entry.js} +1 -1
  297. package/lib/duet/{p-65a5fdd5.entry.js → p-2ab30c7f.entry.js} +1 -1
  298. package/lib/duet/{p-5ad63594.entry.js → p-2f2554c2.entry.js} +1 -1
  299. package/lib/duet/p-31a14896.entry.js +4 -0
  300. package/lib/duet/{p-a4cc9386.system.entry.js → p-33ace290.system.entry.js} +1 -1
  301. package/lib/duet/{p-98202339.entry.js → p-33e8ba00.entry.js} +1 -1
  302. package/lib/duet/{p-3b70cce3.entry.js → p-346b440a.entry.js} +1 -1
  303. package/lib/duet/{p-1b11e540.entry.js → p-369190ba.entry.js} +1 -1
  304. package/lib/duet/{p-379e2995.system.entry.js → p-38b225ec.system.entry.js} +1 -1
  305. package/lib/duet/{p-ee909d5f.system.entry.js → p-3ae87f9a.system.entry.js} +1 -1
  306. package/lib/duet/p-3aebf88e.entry.js +4 -0
  307. package/lib/duet/p-3d4d7d03.system.entry.js +4 -0
  308. package/lib/duet/{p-03522bb4.entry.js → p-3fe319db.entry.js} +1 -1
  309. package/lib/duet/p-4047730e.entry.js +4 -0
  310. package/lib/duet/p-41993ad4.js +4 -0
  311. package/lib/duet/{p-925f2b45.entry.js → p-42199e80.entry.js} +1 -1
  312. package/lib/duet/p-4489355c.system.entry.js +4 -0
  313. package/lib/duet/{p-245a63f4.entry.js → p-45df6b17.entry.js} +1 -1
  314. package/lib/duet/{p-2a277fb6.entry.js → p-476bec1d.entry.js} +1 -1
  315. package/lib/duet/{p-ff5f4d38.entry.js → p-49cbf9cc.entry.js} +1 -1
  316. package/lib/duet/{p-72a2ff4d.entry.js → p-49f5f27e.entry.js} +1 -1
  317. package/lib/duet/p-4f40525e.system.entry.js +4 -0
  318. package/lib/duet/{p-9960de16.entry.js → p-53800205.entry.js} +1 -1
  319. package/lib/duet/{p-f5728af6.system.entry.js → p-54607ab5.system.entry.js} +1 -1
  320. package/lib/duet/{p-f8d00821.entry.js → p-5514488e.entry.js} +1 -1
  321. package/lib/duet/{p-cf9279b9.system.entry.js → p-5590d075.system.entry.js} +1 -1
  322. package/lib/duet/p-57ec25ee.entry.js +4 -0
  323. package/lib/duet/p-59570fb7.system.entry.js +4 -0
  324. package/lib/duet/{p-c794bee3.system.entry.js → p-596343b6.system.entry.js} +1 -1
  325. package/lib/duet/{p-a8a1d1f6.entry.js → p-5c5dd33e.entry.js} +1 -1
  326. package/lib/duet/p-5dfc4e72.entry.js +4 -0
  327. package/lib/duet/{p-4f4ed95d.system.entry.js → p-5f9fc349.system.entry.js} +1 -1
  328. package/lib/duet/{p-13384099.entry.js → p-60210fa0.entry.js} +1 -1
  329. package/lib/duet/{p-b3154717.entry.js → p-6059377c.entry.js} +1 -1
  330. package/lib/duet/{p-f4799c34.system.entry.js → p-61dbdf5a.system.entry.js} +1 -1
  331. package/lib/duet/{p-91df8a4a.system.entry.js → p-639c44ed.system.entry.js} +1 -1
  332. package/lib/duet/{p-073221c9.system.entry.js → p-642a879a.system.entry.js} +1 -1
  333. package/lib/duet/{p-d159787d.entry.js → p-645d04bc.entry.js} +1 -1
  334. package/lib/duet/{p-a31222e3.entry.js → p-65180079.entry.js} +1 -1
  335. package/lib/duet/{p-0738bb7d.system.entry.js → p-659b9600.system.entry.js} +1 -1
  336. package/lib/duet/{p-5c4a2f44.system.entry.js → p-679721de.system.entry.js} +1 -1
  337. package/lib/duet/{p-d6a1c0de.entry.js → p-67f35157.entry.js} +1 -1
  338. package/lib/duet/{p-bd1d0640.system.js → p-6dea5bde.system.js} +1 -1
  339. package/lib/duet/{p-4a97ca92.system.entry.js → p-6fafabc4.system.entry.js} +1 -1
  340. package/lib/duet/{p-8ec5c49e.entry.js → p-6ff2601a.entry.js} +1 -1
  341. package/lib/duet/{p-b4e863ee.system.entry.js → p-72a8644b.system.entry.js} +1 -1
  342. package/lib/duet/{p-30551712.system.entry.js → p-74bf128c.system.entry.js} +1 -1
  343. package/lib/duet/{p-de31586c.system.entry.js → p-7604e184.system.entry.js} +1 -1
  344. package/lib/duet/{p-5e7dc52a.system.entry.js → p-76c68d61.system.entry.js} +1 -1
  345. package/lib/duet/{p-6392cafe.entry.js → p-77432368.entry.js} +1 -1
  346. package/lib/duet/{p-36edc06c.system.entry.js → p-7b75c66a.system.entry.js} +1 -1
  347. package/lib/duet/{p-1df0bbf9.system.entry.js → p-7c81a1aa.system.entry.js} +1 -1
  348. package/lib/duet/{p-c654f863.system.entry.js → p-7ce403a2.system.entry.js} +1 -1
  349. package/lib/duet/{p-a6917de1.system.entry.js → p-7fd5d974.system.entry.js} +1 -1
  350. package/lib/duet/{p-e7af2cd8.system.entry.js → p-7fe4bf9c.system.entry.js} +1 -1
  351. package/lib/duet/{p-cad8060d.system.entry.js → p-8168ef41.system.entry.js} +2 -2
  352. package/lib/duet/{p-6a89c7d0.system.entry.js → p-8215e341.system.entry.js} +1 -1
  353. package/lib/duet/p-82b5380b.system.js +4 -0
  354. package/lib/duet/p-82ebc3a6.system.entry.js +4 -0
  355. package/lib/duet/{p-81668ed2.system.entry.js → p-831c76d5.system.entry.js} +1 -1
  356. package/lib/duet/{p-6ad538a7.system.entry.js → p-855f2712.system.entry.js} +1 -1
  357. package/lib/duet/{p-09daf29e.system.entry.js → p-87ea8cd4.system.entry.js} +1 -1
  358. package/lib/duet/{p-c7fbe38a.entry.js → p-8a06964b.entry.js} +1 -1
  359. package/lib/duet/{p-cb5ebe92.system.entry.js → p-8d9dc8b8.system.entry.js} +1 -1
  360. package/lib/duet/{p-058dfaad.entry.js → p-8fc58e21.entry.js} +1 -1
  361. package/lib/duet/{p-1b426189.entry.js → p-9277a98e.entry.js} +1 -1
  362. package/lib/duet/{p-c424c794.entry.js → p-9781cd5a.entry.js} +1 -1
  363. package/lib/duet/{p-91a5c4fd.system.entry.js → p-984be1b2.system.entry.js} +1 -1
  364. package/lib/duet/{p-2f8c7a7d.entry.js → p-9ad4b03e.entry.js} +1 -1
  365. package/lib/duet/{p-2528a411.system.entry.js → p-9b4b6a88.system.entry.js} +1 -1
  366. package/lib/duet/{p-2d3dbd85.system.entry.js → p-9cec464f.system.entry.js} +1 -1
  367. package/lib/duet/{p-39496689.entry.js → p-a1e03781.entry.js} +1 -1
  368. package/lib/duet/{p-d3323581.system.entry.js → p-a6f4302f.system.entry.js} +1 -1
  369. package/lib/duet/{p-62b68de6.system.js → p-a7774674.system.js} +1 -1
  370. package/lib/duet/{p-85ad609f.entry.js → p-a80b6e7d.entry.js} +1 -1
  371. package/lib/duet/{p-6486ab91.entry.js → p-a9fac1f4.entry.js} +1 -1
  372. package/lib/duet/{p-6766ef3d.system.entry.js → p-aa1c11b3.system.entry.js} +1 -1
  373. package/lib/duet/{p-d18383cd.entry.js → p-ab15c9ba.entry.js} +1 -1
  374. package/lib/duet/{p-fa400061.entry.js → p-b6f46697.entry.js} +1 -1
  375. package/lib/duet/{p-637f635a.entry.js → p-bb3ab94b.entry.js} +1 -1
  376. package/lib/duet/{p-7f8020bf.entry.js → p-bb450fde.entry.js} +1 -1
  377. package/lib/duet/{p-308b881b.js → p-bcb2eb05.js} +1 -1
  378. package/lib/duet/{p-fd33eb2c.entry.js → p-bd21ed24.entry.js} +1 -1
  379. package/lib/duet/{p-1f3d12d2.system.entry.js → p-be64cb47.system.entry.js} +1 -1
  380. package/lib/duet/{p-72d1f618.system.entry.js → p-bf5e03b7.system.entry.js} +1 -1
  381. package/lib/duet/{p-07300cb6.entry.js → p-c01a1e38.entry.js} +1 -1
  382. package/lib/duet/{p-62b435d1.system.entry.js → p-c20f14ee.system.entry.js} +1 -1
  383. package/lib/duet/{p-5f2e386e.entry.js → p-c56f6296.entry.js} +1 -1
  384. package/lib/duet/{p-779be7c6.system.entry.js → p-c591ed98.system.entry.js} +1 -1
  385. package/lib/duet/{p-ef033a06.system.entry.js → p-c838f35a.system.entry.js} +1 -1
  386. package/lib/duet/{p-909e088e.system.entry.js → p-c8af967c.system.entry.js} +1 -1
  387. package/lib/duet/{p-17d2c223.system.entry.js → p-cd14aa98.system.entry.js} +1 -1
  388. package/lib/duet/{p-e501bad4.system.entry.js → p-ced270b7.system.entry.js} +1 -1
  389. package/lib/duet/{p-ad3eba9a.entry.js → p-d1308874.entry.js} +1 -1
  390. package/lib/duet/{p-22dd2fab.entry.js → p-d1fdf904.entry.js} +1 -1
  391. package/lib/duet/{p-99a8b5f5.entry.js → p-d20bc0fc.entry.js} +1 -1
  392. package/lib/duet/{p-56b92797.entry.js → p-d309acda.entry.js} +1 -1
  393. package/lib/duet/{p-d85d8db5.entry.js → p-d707c91d.entry.js} +1 -1
  394. package/lib/duet/{p-5048f9a7.entry.js → p-d70c1993.entry.js} +1 -1
  395. package/lib/duet/{p-420dfc2c.entry.js → p-d837c30c.entry.js} +1 -1
  396. package/lib/duet/{p-62c70a95.entry.js → p-d90b9d82.entry.js} +1 -1
  397. package/lib/duet/{p-89d9030e.system.entry.js → p-d95542b2.system.entry.js} +1 -1
  398. package/lib/duet/{p-1a542b7c.system.entry.js → p-dcb58b72.system.entry.js} +1 -1
  399. package/lib/duet/p-df10a767.js +4 -0
  400. package/lib/duet/{p-ed78f6fe.system.entry.js → p-e13b266c.system.entry.js} +1 -1
  401. package/lib/duet/{p-c085e346.system.entry.js → p-e1470177.system.entry.js} +1 -1
  402. package/lib/duet/{p-a7c64d94.entry.js → p-e195ff77.entry.js} +1 -1
  403. package/lib/duet/{p-32237f45.entry.js → p-e26c92ae.entry.js} +1 -1
  404. package/lib/duet/{p-5c444839.entry.js → p-e33b158e.entry.js} +1 -1
  405. package/lib/duet/{p-1c7ad230.system.entry.js → p-e3a868e7.system.entry.js} +1 -1
  406. package/lib/duet/{p-6a42d57c.system.entry.js → p-e5ff4740.system.entry.js} +1 -1
  407. package/lib/duet/{p-bbadf525.system.entry.js → p-e664403b.system.entry.js} +1 -1
  408. package/lib/duet/{p-0dda8331.entry.js → p-e6701508.entry.js} +1 -1
  409. package/lib/duet/{p-8f7f4724.entry.js → p-ea0b3f23.entry.js} +1 -1
  410. package/lib/duet/{p-b76ce62b.entry.js → p-eaf5b796.entry.js} +1 -1
  411. package/lib/duet/{p-9c554b07.entry.js → p-f01b3bfa.entry.js} +1 -1
  412. package/lib/duet/{p-cfde4f9a.system.entry.js → p-f1bce38a.system.entry.js} +1 -1
  413. package/lib/duet/{p-8c404f51.system.entry.js → p-f3baf86a.system.entry.js} +1 -1
  414. package/lib/duet/{p-0b34d9b5.system.entry.js → p-f605a26a.system.entry.js} +1 -1
  415. package/lib/duet/{p-b906790d.entry.js → p-f9191467.entry.js} +1 -1
  416. package/lib/duet/p-f93a2b8c.system.js +4 -0
  417. package/lib/duet/{p-077edef7.entry.js → p-fb88df1a.entry.js} +1 -1
  418. package/lib/duet/{p-94d448f9.system.entry.js → p-fca2f60d.system.entry.js} +1 -1
  419. package/lib/duet/{p-eb9c8e60.entry.js → p-fcc9c563.entry.js} +1 -1
  420. package/lib/duet/{p-d7425b07.entry.js → p-fce75de7.entry.js} +1 -1
  421. package/lib/duet/{p-7dea5e1a.system.entry.js → p-fd760e06.system.entry.js} +1 -1
  422. package/lib/duet/{p-af3060c1.system.entry.js → p-ff0c5b5b.system.entry.js} +1 -1
  423. package/lib/duet/{p-6a07feba.entry.js → p-ff814fdc.entry.js} +1 -1
  424. package/lib/esm/duet-action-button.entry.js +1 -1
  425. package/lib/esm/duet-alert.entry.js +1 -1
  426. package/lib/esm/duet-badge.entry.js +1 -1
  427. package/lib/esm/duet-banner.entry.js +1 -1
  428. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  429. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  430. package/lib/esm/duet-button_2.entry.js +1 -1
  431. package/lib/esm/duet-callout.entry.js +1 -1
  432. package/lib/esm/duet-caption_4.entry.js +1 -1
  433. package/lib/esm/duet-card.entry.js +1 -1
  434. package/lib/esm/duet-checkbox.entry.js +1 -1
  435. package/lib/esm/duet-checkmark.entry.js +1 -1
  436. package/lib/esm/duet-chip.entry.js +91 -0
  437. package/lib/esm/duet-choice_2.entry.js +24 -11
  438. package/lib/esm/duet-collapsible.entry.js +1 -1
  439. package/lib/esm/duet-combobox.entry.js +1 -1
  440. package/lib/esm/duet-contact-card.entry.js +1 -1
  441. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  442. package/lib/esm/duet-date-picker.entry.js +2 -2
  443. package/lib/esm/duet-divider_2.entry.js +1 -1
  444. package/lib/esm/duet-editable-table_3.entry.js +4 -2
  445. package/lib/esm/duet-empty-state.entry.js +1 -1
  446. package/lib/esm/duet-fieldset.entry.js +1 -1
  447. package/lib/esm/duet-footer.entry.js +1 -1
  448. package/lib/esm/duet-grid_2.entry.js +1 -1
  449. package/lib/esm/duet-header_2.entry.js +1 -1
  450. package/lib/esm/duet-hero.entry.js +1 -1
  451. package/lib/esm/duet-icon.entry.js +1 -1
  452. package/lib/esm/duet-input_2.entry.js +1 -1
  453. package/lib/esm/duet-layout.entry.js +1 -1
  454. package/lib/esm/duet-list_2.entry.js +1 -1
  455. package/lib/esm/duet-menu-bar-button.entry.js +1 -1
  456. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
  457. package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
  458. package/lib/esm/duet-menu-bar-link.entry.js +1 -1
  459. package/lib/esm/duet-menu-bar.entry.js +1 -1
  460. package/lib/esm/duet-modal.entry.js +2 -2
  461. package/lib/esm/duet-multiselect.entry.js +1 -1
  462. package/lib/esm/duet-nav.entry.js +1 -1
  463. package/lib/esm/duet-notification_2.entry.js +1 -1
  464. package/lib/esm/duet-number-input.entry.js +8 -1
  465. package/lib/esm/duet-page-heading.entry.js +1 -1
  466. package/lib/esm/duet-pagination_2.entry.js +1 -1
  467. package/lib/esm/duet-popup-menu-item.entry.js +39 -0
  468. package/lib/esm/duet-popup-menu.entry.js +105 -0
  469. package/lib/esm/duet-progress.entry.js +1 -1
  470. package/lib/esm/duet-promo-card.entry.js +1 -1
  471. package/lib/esm/duet-radio_2.entry.js +5 -4
  472. package/lib/esm/duet-range-slider.entry.js +1 -1
  473. package/lib/esm/duet-scrollable_3.entry.js +1 -1
  474. package/lib/esm/duet-section-layout.entry.js +1 -1
  475. package/lib/esm/duet-select.entry.js +1 -1
  476. package/lib/esm/duet-shaped-image.entry.js +1 -1
  477. package/lib/esm/duet-show-more.entry.js +91 -0
  478. package/lib/esm/duet-slideout-lang.entry.js +1 -1
  479. package/lib/esm/duet-slideout-link.entry.js +1 -1
  480. package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
  481. package/lib/esm/duet-slideout-panel.entry.js +2 -2
  482. package/lib/esm/duet-slideout.entry.js +2 -2
  483. package/lib/esm/duet-step_2.entry.js +1 -1
  484. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
  485. package/lib/esm/duet-submenu-bar-dropdown.entry.js +1 -1
  486. package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
  487. package/lib/esm/duet-submenu-bar.entry.js +1 -1
  488. package/lib/esm/duet-textarea.entry.js +1 -1
  489. package/lib/esm/duet-toggle.entry.js +1 -1
  490. package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
  491. package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
  492. package/lib/esm/duet-toolbar-link.entry.js +1 -1
  493. package/lib/esm/duet-toolbar.entry.js +1 -1
  494. package/lib/esm/duet-tooltip.entry.js +2 -1172
  495. package/lib/esm/duet-tray.entry.js +1 -1
  496. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  497. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  498. package/lib/esm/duet.js +3 -3
  499. package/lib/esm/floating-ui.dom.esm-37dc174a.js +1245 -0
  500. package/lib/esm/{focus-utils-552e67ed.js → focus-utils-20785530.js} +1 -1
  501. package/lib/esm/{index-5aaf4b5b.js → index-dcb8c495.js} +1 -1
  502. package/lib/esm/loader.js +3 -3
  503. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  504. package/lib/esm-es5/duet-alert.entry.js +1 -1
  505. package/lib/esm-es5/duet-badge.entry.js +1 -1
  506. package/lib/esm-es5/duet-banner.entry.js +1 -1
  507. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  508. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  509. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  510. package/lib/esm-es5/duet-callout.entry.js +1 -1
  511. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  512. package/lib/esm-es5/duet-card.entry.js +1 -1
  513. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  514. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  515. package/lib/esm-es5/duet-chip.entry.js +4 -0
  516. package/lib/esm-es5/duet-choice_2.entry.js +2 -2
  517. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  518. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  519. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  520. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  521. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  522. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  523. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  524. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  525. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  526. package/lib/esm-es5/duet-footer.entry.js +1 -1
  527. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  528. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  529. package/lib/esm-es5/duet-hero.entry.js +1 -1
  530. package/lib/esm-es5/duet-icon.entry.js +1 -1
  531. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  532. package/lib/esm-es5/duet-layout.entry.js +1 -1
  533. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  534. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  535. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  536. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  537. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  538. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  539. package/lib/esm-es5/duet-modal.entry.js +1 -1
  540. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  541. package/lib/esm-es5/duet-nav.entry.js +1 -1
  542. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  543. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  544. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  545. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  546. package/lib/esm-es5/duet-popup-menu-item.entry.js +4 -0
  547. package/lib/esm-es5/duet-popup-menu.entry.js +4 -0
  548. package/lib/esm-es5/duet-progress.entry.js +1 -1
  549. package/lib/esm-es5/duet-promo-card.entry.js +1 -1
  550. package/lib/esm-es5/duet-radio_2.entry.js +2 -2
  551. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  552. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  553. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  554. package/lib/esm-es5/duet-select.entry.js +1 -1
  555. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  556. package/lib/esm-es5/duet-show-more.entry.js +4 -0
  557. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  558. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  559. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  560. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  561. package/lib/esm-es5/duet-slideout.entry.js +2 -2
  562. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  563. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  564. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  565. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  566. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  567. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  568. package/lib/esm-es5/duet-toggle.entry.js +2 -2
  569. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  570. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  571. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  572. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  573. package/lib/esm-es5/duet-tooltip.entry.js +2 -2
  574. package/lib/esm-es5/duet-tray.entry.js +1 -1
  575. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  576. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  577. package/lib/esm-es5/duet.js +1 -1
  578. package/lib/esm-es5/floating-ui.dom.esm-37dc174a.js +4 -0
  579. package/lib/esm-es5/{focus-utils-552e67ed.js → focus-utils-20785530.js} +1 -1
  580. package/lib/esm-es5/{index-5aaf4b5b.js → index-dcb8c495.js} +1 -1
  581. package/lib/esm-es5/loader.js +1 -1
  582. package/lib/types/components/duet-chip/duet-chip.d.ts +83 -0
  583. package/lib/types/components/duet-choice/duet-choice.d.ts +7 -0
  584. package/lib/types/components/duet-editable-table/duet-editable-table.d.ts +1 -0
  585. package/lib/types/components/duet-number-input/duet-number-input.d.ts +4 -0
  586. package/lib/types/components/duet-popup-menu/duet-popup-menu.d.ts +67 -0
  587. package/lib/types/components/duet-popup-menu-item/duet-popup-menu-item.d.ts +47 -0
  588. package/lib/types/components/duet-radio/duet-radio.d.ts +4 -0
  589. package/lib/types/components/duet-show-more/duet-show-more.d.ts +53 -0
  590. package/lib/types/components.d.ts +342 -0
  591. package/package.json +11 -6
  592. package/lib/duet/p-0952d4a4.system.entry.js +0 -4
  593. package/lib/duet/p-225d9dbe.js +0 -4
  594. package/lib/duet/p-3a0676ab.entry.js +0 -4
  595. package/lib/duet/p-55952227.system.entry.js +0 -4
  596. package/lib/duet/p-6a9319ad.system.entry.js +0 -4
  597. package/lib/duet/p-78cb4832.entry.js +0 -4
  598. package/lib/duet/p-80f4a443.system.js +0 -4
  599. package/lib/duet/p-8c9d67e4.entry.js +0 -4
  600. package/lib/duet/p-8faea849.entry.js +0 -4
  601. package/lib/duet/p-b17e6185.system.entry.js +0 -4
  602. package/lib/duet/p-c1ccc327.entry.js +0 -4
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{h as t,r as e,c as i,H as a,g as s,F as d}from"./p-308b881b.js";import{i as o}from"./p-4ebf1618.js";import{f as l,d as n}from"./p-0b3f675e.js";import{i as r}from"./p-f077c646.js";import{g as h,c as u,d as b,a as p,s as m}from"./p-076452be.js";import{p as c,s as g}from"./p-fd4785ab.js";import{b as f,a as y}from"./p-a76ceaf6.js";import{c as v}from"./p-c1325e35.js";import{p as x}from"./p-5a9d75e1.js";const w=({data:e,groupId:i,alignment:a})=>{const s=`duet-editable-table duet-editable-table-content-${i}`;return"string"==typeof e?t("td",{innerHTML:e,class:s,part:`${i}content`,style:{verticalAlign:a}}):t("td",{class:s,part:`${i}content`,style:{verticalAlign:a}},e)},k=class{constructor(t){e(this,t),this.duetTableToggle=i(this,"duetTableToggle",7),this.duetMenuClick=i(this,"duetMenuClick",7),this.hasHeadSlotFirst=!1,this.hasHeadSlotLast=!1,this.sortableDefaultLabel={fi:"Järjestä",en:"Click to sort",sv:"Klicka för att sortera"},this.actionColumnLabel={en:"Actions for rows",fi:"Toiminnot rivillä",sv:"Åtgärder för rader"},this.toggleColumn=(t,e)=>{e.preventDefault();const{sort_order:i,direction:a,index:s,key:d}=t;this.duetTableToggle.emit({sort_order:i,index:s,direction:a,key:d,component:"duet-editable-table",originalEvent:e})},this.handleKeyDown=(t,e)=>{r(e)&&this.toggleColumn(t,e)},this.language=h(),this.margin="auto",this.variation="striped",this.sticky=!1,this.stickyDistance="with-links",this.breakpoint="small",this.actions=void 0,this.columns=void 0,this.rows=void 0,this.sortable=!1,this.groupId="",this.theme="",this.accessibleRole=void 0,this.hideHeadVisually=!1}componentWillLoad(){o(this),this.hasHeadSlotFirst=!!this.element.querySelector("[slot='thead-first']"),this.hasHeadSlotLast=!!this.element.querySelector("[slot='thead-last']")}connectedCallback(){u(this)}disconnectedCallback(){b(this)}createLabel(e){const{sort_order:i,direction:a,index:s,label:d}=e,o=p(d);return this.sortable?t("span",{class:"duet-table-label","data-index":s},t("duet-button",{size:"small",icon:i&&1===a?"action-arrow-down-small":i&&-1===a?"action-arrow-up-small":"action-subtract-small","icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":!0,onClick:t=>this.toggleColumn(e,t),onKeyDown:t=>this.handleKeyDown(e,t)},o)):o}getSortedColumns(){return[...this.columns].sort(l(["index"]))}getRowSortOrder(){return[...this.columns].sort(l(["sort_order"])).filter((t=>t.sort_order)).map((t=>-1===t.direction?`-${t.key}`:t.key))}renderTableHeader(){if(!this.columns)return;const e=this.getSortedColumns();return t("tr",{class:{"duet-table-action-header":!!this.actions}},e.map((e=>{if(!1!==e.display){const i=this.createLabel(e);return""!==i?t("th",{scope:"col"},i):t("td",null)}})),this.actions&&t("th",{scope:"col",class:"duet-table-action-header-heading"},this.actions&&t("duet-visually-hidden",null,this.actionColumnLabel[this.language])))}renderActions(e,i){if(this.actions)return t("td",{class:"duet-text-right"},this.actions.map((a=>t("duet-action-button",{actionMeta:Object.assign({},(null==e?void 0:e.meta)||{},{index:i}),actionId:(null==e?void 0:e.uid)||(null==e?void 0:e.id)||null,actionName:a.name,theme:this.theme,iconName:a.icon,iconColor:a.color,iconSize:a.size,background:a.background,"accessible-label":`${e.actionDescription||""} ${p(a.label)} `}))))}renderTableBody(){const e=this.getSortedColumns(),i=this.getRowSortOrder();return[...this.rows].sort(l(i)).map(((i,a)=>t("tr",{class:{"duet-table-action-row":!!this.actions,"duet-editable-table-row":!0,[`duet-editable-table-row-${this.groupId}`]:!0},"data-meta":JSON.stringify(i.meta)},e.map((e=>{if(!1!==e.display)return t(w,{data:i[e.key]?i[e.key]:i.item,groupId:this.groupId})})),this.actions&&this.renderActions(i,a))))}render(){return t(a,{class:{[`duet-editable-table-${this.variation}`]:!0,"duet-editable-table":!0,[`duet-editable-table-${this.theme}`]:!0,"duet-editable-table-scrollable":"none-scrollable"===this.breakpoint,"duet-editable-table-sortable":this.sortable,"duet-editable-table-actions":!!this.actions,"duet-m-0":"none"===this.margin,"duet-theme-turva":"turva"===this.theme}},t("duet-table",{class:"duet-editable-table-table",sticky:this.sticky,stickyDistance:this.stickyDistance,margin:this.margin,theme:this.theme,variation:this.variation,breakpoint:this.breakpoint,"hide-head-visually":this.hideHeadVisually},t("table",{role:this.accessibleRole},t("caption",null,t("slot",{name:"tcaption"})),t("thead",null,this.hasHeadSlotFirst&&t("tr",null,t("td",{class:"duet-editable-table-actions-menu",colSpan:99},t("slot",{name:"thead-first"}))),this.renderTableHeader(),this.hasHeadSlotLast&&t("tr",null,t("td",{class:"duet-editable-table-actions-menu",colSpan:99},t("slot",{name:"thead-last"})))),t("tbody",null,this.renderTableBody()),t("tfoot",null,t("tr",null,t("th",{class:"duet-editable-table-footer-menu",colSpan:99},t("slot",{name:"tfoot"})))))))}get element(){return s(this)}};k.style=".sc-duet-editable-table-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-editable-table-actions-menu.sc-duet-editable-table{position:relative;padding:0 !important;margin:0}.duet-editable-table-actions-menu-button.sc-duet-editable-table{position:relative;right:-16px;float:right;padding:0}.duet-editable-table-actions-menu-icon.sc-duet-editable-table .duet-icon.sc-duet-editable-table{max-width:16px;max-height:16px}.duet-editable-table-row.duet-table-action-row.sc-duet-editable-table .duet-text-right.sc-duet-editable-table{text-align:right}.duet-editable-table-header.sc-duet-editable-table tr.sc-duet-editable-table .duet-editable-table-header-hidden.sc-duet-editable-table{padding:0 !important;font-size:0;border-bottom:0}";const z={none:0,"with-links":16*parseFloat(c),"without-links":16*parseFloat(g)},T=class{constructor(t){e(this,t),this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)",this.handleMediaQueryChange=t=>{this.matchesBreakpoint=f.includes(this.breakpoint)?!t.matches:t.matches},this.matchesBreakpoint=!0,this.language=h(),this.theme=void 0,this.margin="auto",this.variation="striped",this.sticky=!1,this.stickyDistance="with-links",this.breakpoint="small",this.hideHeadVisually=!1}watchLanguageStateHandler(t,e){t!==e&&setTimeout((()=>this.copyHeadingsToCells()),50)}connectedCallback(){this.mq=matchMedia("none"===this.breakpoint||"none-scrollable"===this.breakpoint?"all":y[this.breakpoint]),this.mq.addEventListener("change",n(this.handleMediaQueryChange,50)),this.handleMediaQueryChange(this.mq),this.observer=new MutationObserver((()=>n(this.copyHeadingsToCells(),50))),this.observer.observe(this.element,{childList:!0,subtree:!0})}componentWillLoad(){if(o(this),this.copyHeadingsToCells(),this.sticky&&"none-scrollable"===this.breakpoint&&console.warn('[DUET WARNING]: sticky and breakpoint="none-scrollable" are incompatible. Scrollable takes precedence'),this.sticky){const t=z[this.stickyDistance];this.element.querySelectorAll(this.headingSelector).forEach((e=>e.style.top=`${t}px`))}}componentDidLoad(){this.observer&&this.observer.takeRecords(),u(this)}disconnectedCallback(){this.observer.disconnect(),this.observer=null,this.mq.removeListener(this.handleMediaQueryChange),this.mq=null,this.matchesBreakpoint=!0,b(this)}copyHeadingsToCells(){const t=this.element.querySelectorAll(this.headingSelector),e=this.element.querySelectorAll("tbody tr"),i=Array.from(t).map((t=>t.textContent.trim()));e.forEach((t=>{t.querySelectorAll("td").forEach(((t,e)=>{i[e]&&(t.dataset.heading=i[e])}))}))}render(){return t(a,{class:{[`duet-table-${this.variation}`]:!0,"duet-table-flattened":!this.matchesBreakpoint,"duet-table-sticky":this.matchesBreakpoint&&this.sticky,"duet-table-scrollable":"none-scrollable"===this.breakpoint,"duet-m-0":"none"===this.margin,"duet-theme-turva":"turva"===this.theme,"duet-table-hide-head-visually":this.hideHeadVisually}},t("slot",null))}get element(){return s(this)}static get watchers(){return{language:["watchLanguageStateHandler"]}}};T.style='duet-table{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;font-variant-numeric:tabular-nums}duet-table table,duet-table thead,duet-table tbody,duet-table tfoot,duet-table th,duet-table td,duet-table tr{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}duet-table.duet-m-0{margin:0 !important}duet-table table{width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;text-align:left;border-spacing:0;border-collapse:separate}duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead,duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead *{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}duet-table.duet-theme-turva table{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}duet-table td{-webkit-hyphens:auto;hyphens:auto;color:rgb(0, 41, 77)}duet-table.duet-theme-turva td{color:rgb(23, 28, 58)}duet-table th{font-weight:600;line-height:1.25;color:rgb(101, 119, 135);text-align:left}duet-table.duet-theme-turva th{color:rgb(116, 116, 117)}duet-table tbody th{font-weight:600;color:rgb(0, 41, 77)}duet-table.duet-theme-turva tbody th{color:rgb(23, 28, 58)}duet-table .duet-table-action-row td:last-child{justify-self:end;padding-right:20px !important;white-space:nowrap}.duet-table-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 tbody td,.duet-table-flattened tbody th,.duet-table-flattened tfoot td{padding:0 !important;text-align:left !important}.duet-table-flattened tbody th{font-weight:600;line-height:1.25;color:rgb(101, 119, 135);text-align:left}.duet-table-flattened td[data-heading]::before{margin-bottom:4px !important;display:block;font-size:1rem;font-weight:600;color:rgb(0, 41, 77);content:attr(data-heading)}.duet-table-flattened.duet-theme-turva td[data-heading]::before{color:rgb(23, 28, 58)}.duet-table-sticky thead th{position:sticky;top:0;background:rgb(255, 255, 255)}.duet-table-striped td,.duet-table-striped th{padding:20px !important}@media (max-width: 35.9375em){.duet-table-striped td,.duet-table-striped th{padding:20px 12px !important}}.duet-table-striped tbody th{background:rgb(255, 255, 255)}.duet-table-striped.duet-table-sticky thead th{border-bottom:1px solid rgb(225, 227, 230)}.duet-table-striped.duet-table-sticky.duet-theme-turva thead th{border-bottom-color:rgb(228, 228, 230)}.duet-table-striped tbody:not(:first-of-type) th{padding-top:40px !important}.duet-table-striped tbody:only-of-type tr:nth-of-type(odd){background:rgba(0, 80, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(0, 80, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tfoot td{border-top:1px solid rgb(225, 227, 230)}.duet-table-striped.duet-theme-turva tfoot td{border-top-color:rgb(228, 228, 230)}.duet-table-striped.duet-table-flattened tbody:not(:first-of-type) th{padding-top:20px !important}.duet-table-striped.duet-table-flattened tr{padding:20px !important}.duet-table-striped.duet-table-flattened tfoot td{border-top:0}.duet-table-striped.duet-table-flattened tfoot tr{border-top:1px solid rgb(225, 227, 230)}.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:rgb(228, 228, 230)}.duet-table-fixed th,.duet-table-minimal th,.duet-table-plain th{padding:16px !important;border-bottom:1px solid rgb(101, 119, 135)}.duet-table-fixed th:first-child,.duet-table-minimal th:first-child,.duet-table-plain th:first-child{padding-left:0 !important}.duet-table-fixed th:last-child,.duet-table-minimal th:last-child,.duet-table-plain th:last-child{padding-right:0 !important}.duet-theme-turva.duet-table-fixed th,.duet-theme-turva.duet-table-minimal th,.duet-theme-turva.duet-table-plain th{border-bottom-color:rgb(68, 68, 69)}.duet-table-fixed tbody th,.duet-table-minimal tbody th,.duet-table-plain tbody th{padding-top:40px !important;border-bottom-color:rgb(225, 227, 230)}.duet-theme-turva.duet-table-fixed tbody th,.duet-theme-turva.duet-table-minimal tbody th,.duet-theme-turva.duet-table-plain tbody th{border-bottom-color:rgb(228, 228, 230)}.duet-table-fixed td,.duet-table-minimal td,.duet-table-plain td{padding:16px !important}.duet-table-fixed td:first-child,.duet-table-minimal td:first-child,.duet-table-plain td:first-child{padding-left:0 !important}.duet-table-fixed td:last-child,.duet-table-minimal td:last-child,.duet-table-plain td:last-child{padding-right:0 !important}.duet-table-fixed tbody td,.duet-table-minimal tbody td,.duet-table-plain tbody td{border-bottom:1px solid rgb(225, 227, 230)}.duet-theme-turva.duet-table-fixed tbody td,.duet-theme-turva.duet-table-minimal tbody td,.duet-theme-turva.duet-table-plain tbody td{border-bottom-color:rgb(228, 228, 230)}.duet-table-flattened.duet-table-fixed tbody:first-of-type th,.duet-table-flattened.duet-table-minimal tbody:first-of-type th,.duet-table-flattened.duet-table-plain tbody:first-of-type th{padding-top:0 !important}.duet-table-flattened.duet-table-fixed td,.duet-table-flattened.duet-table-minimal td,.duet-table-flattened.duet-table-plain td,.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{border-bottom:0}.duet-table-flattened.duet-table-fixed tr,.duet-table-flattened.duet-table-minimal tr,.duet-table-flattened.duet-table-plain tr{padding:20px 0 !important}.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{padding-top:20px !important}.duet-table-flattened.duet-table-fixed tfoot td,.duet-table-flattened.duet-table-minimal tfoot td,.duet-table-flattened.duet-table-plain tfoot td{margin-bottom:4px !important}.duet-table-flattened.duet-table-fixed tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-minimal tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-plain tbody:not(:only-of-type) tr:first-child{border-bottom:0}.duet-table-plain.duet-table-flattened tbody tr{border-bottom:1px solid rgb(225, 227, 230)}.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:rgb(228, 228, 230)}.duet-table-minimal tbody tr,.duet-table-minimal tbody tr td{vertical-align:top;border-bottom:0 none}.duet-table-minimal tbody tr:last-of-type,.duet-table-minimal tbody tr:last-of-type td{border-bottom:1px solid rgb(225, 227, 230)}.duet-table-minimal.duet-table-flattened tbody tr,.duet-table-minimal.duet-table-flattened tbody tr td{border-bottom:0 none}.duet-table-minimal.duet-table-flattened tbody tr td[data-heading]::before{display:none}.duet-table-minimal.duet-table-flattened tfoot{border-top:1px solid rgb(225, 227, 230)}.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.duet-table-fixed table{table-layout:fixed}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td,.duet-table-fixed tbody tr td:first-child{padding:4px !important;vertical-align:text-bottom;border-bottom:0 none}.duet-table-fixed thead{display:none}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td{border-bottom:0 none}.duet-table-fixed:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(225, 227, 230)}.duet-table-fixed:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.duet-table-scrollable{position:relative;width:100%;overflow-x:auto;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0)), linear-gradient(-90deg, #fff 0%, rgba(255, 255, 255, 0)) 100% 0, radial-gradient(farthest-side at 0% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)) 100% 0%;background-repeat:no-repeat;background-attachment:local, local, scroll, scroll;background-size:100px 100%, 100px 100%, 12px 100%, 12px 100%}.duet-table-selected-column{background:rgba(0, 119, 179, 0.08)}.duet-theme-turva .duet-table-selected-column{background:rgba(68, 68, 69, 0.08)}.duet-table-sortable tbody tr td:first-child,.duet-table-sortable thead tr th:first-child{padding:20px}.duet-table-sortable:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(225, 227, 230)}.duet-table-sortable:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.duet-table-actions table{table-layout:auto}.duet-table-actions thead th:last-child{width:1px;white-space:nowrap}.duet-editable-table-table.duet-table-flattened tr{display:grid;grid-template-columns:repeat(2, 1fr);grid-auto-rows:auto;gap:10px}.duet-editable-table-table.duet-table-flattened tr.duet-table-action-row td:last-child::before{padding:0;content:""}.duet-editable-table-table.duet-table-flattened td{grid-column:1/2}.duet-editable-table-table.duet-table-flattened td:first-child{grid-row:1;grid-column:1}.duet-editable-table-table.duet-table-flattened td:last-child{grid-row:1;grid-column:2}';const L=[{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-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."}}],M=(t,e)=>{let i={type:void 0,system_message:void 0,message:void 0};return i=(e=x(e)).filter((e=>e.type==t))[0],i||(i=e.filter((t=>"default"===t.type))[0]),i},S=(t,e)=>{const i=M(t,e),a=p(i.message);return""!==a&&a?a:i.system_message},E={fi:"Tiedosto latautuu",sv:"Filen laddas upp",en:"File is uploading"},j=({data:e,showLinks:i,type:a,actions:s,errorCodes:d,theme:o,label:l,categoryLabel:n,showCategory:r,onLinkClick:h})=>{const{uid:u,item:b,size:m,uploaded:c,url:g,meta:f,progress:y,error:v}=e,{name:x}=b,w=t=>{h&&(t.preventDefault(),h(x,g||"",f))},k=t("span",{class:"duet-upload-item-name"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),x),z=t("span",{class:"duet-upload-item-size",style:{fontSize:"14px",fontWeight:"400"}},"(",((t,e=2)=>{if(0===t)return"0 Bytes";const i=e<0?0:e,a=Math.floor(Math.log(t)/Math.log(1024));return parseFloat((t/Math.pow(1024,a)).toFixed(i))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][a]})(m),")"),T=f&&f.badges?t("span",null,f.badges.map((e=>t("duet-badge",{color:"primary"},e)))):void 0,L=`${f&&f.badges?f.badges.join(","):""} ${x}`;return t("div",{class:{"upload-item-row":!0}},r&&t("div",{class:"item-categories"},t("duet-heading",{class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},p(n)),T),t("div",{class:{"item-name":!0,"no-category":!r}},!!l&&t("duet-heading",{class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},p(l)),(()=>{switch(a){case"inprogress":return t("span",{class:"duet-upload-item-name",role:"status"},t("duet-paragraph",{class:"duet-upload-item-name",color:"gray-darker",margin:"none",weight:"semi-bold"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),x),t("duet-visually-hidden",null,t("duet-paragraph",null,p(E))),t("duet-progress",{progress:Math.ceil(y),"aria-hidden":!0}));case"pending":return t("span",{class:"duet-upload-item-name"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),x);case"failure":return t("span",{class:"duet-upload-item-error",role:"status"},t("duet-paragraph",{class:"duet-upload-item-name",color:"danger",margin:"none",weight:"semi-bold"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),x),t("duet-paragraph",{class:"duet-upload-item-error-label",size:"small",margin:"none",color:"danger"},S(v.type,d)));default:return t("duet-paragraph",{color:"secondary",margin:"none",weight:"semi-bold"},c&&g&&i?t("duet-link",{onClick:w,url:g,external:!0},k):k,t("duet-spacer",{size:"xx-small",direction:"horizontal"}),z)}})()),t("div",{class:"item-actions"},s.map((e=>t("duet-action-button",{actionMeta:Object.assign({},f||{}),actionId:u||null,actionName:e.name,theme:o,iconName:e.icon,iconColor:e.color,iconSize:e.size,background:e.background,"accessible-label":`${L} ${p(e.label)} `,accessibleTitle:!1})))))},C=({label:e,categoryLabel:i})=>t("div",{class:"items-header"},i&&t("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none"},p(i)),t("duet-heading",{class:{"filename-header":!0,"no-category":!i},border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none"},p(e))),F=(t,e,i)=>{const{allowedMimetypes:a,allowedExtensions:s,maxBytes:d}=e;let o=!1,l=M("default",i);if(t){const{name:e,type:n,size:r}=t,h=((t,e)=>{if(!e||!t)return!0;const i=e.split(",");let a=!1;return i.forEach((e=>{const i=e.split("/"),s=t.split("/");i[0]!==s[0]||i[1]!==s[1]&&"*"!==i[1]||(a=!0)})),a})(n,a),u="all"===s||""===s||" "===s||void 0===s||((t,e)=>{if(!e)return!0;const i=t.split(".");return e.split(",").includes(i[i.length-1])})(e.toLowerCase(),s),b=((t,e)=>!e||!t||e>=t)(r,d);h||(l=M("duet-upload-101",i)),u||(l=M("duet-upload-100",i)),b||(l=M("duet-upload-201",i)),o=h&&u&&b}else o=!1;return{valid:o,errorMessage:o?void 0:p(l.message),errorSystem:o?void 0:l.system_message,errorType:o?void 0:l.type}},$=({payload:t,options:e,onFailure:i,onSuccess:a,onProgress:s})=>{const{type:d="POST",xhr:o,uri:l,argument:n=null,headers:r=null}=e;o.open(d,`${l}${n||""}`,!0);const{data:h,name:u}=t;return r&&Object.keys(r).forEach((t=>{o.setRequestHeader(t,r[t])})),"POST"===d&&(o.onreadystatechange=()=>{o.readyState===XMLHttpRequest.DONE&&o.status>=200&&o.status<300&&a(o,u,o.status),o.readyState===XMLHttpRequest.DONE&&o.status>=300&&o.status<999&&i(o,u,o.status)},s(u)),o.send(h),o},D=class{constructor(a){e(this,a),this.duetChange=i(this,"duetChange",3),this.duetBlur=i(this,"duetBlur",7),this.duetFocus=i(this,"duetFocus",7),this.duetReady=i(this,"duetReady",7),this.duetDone=i(this,"duetDone",3),this.duetState=i(this,"duetState",3),this.duetDelete=i(this,"duetDelete",3),this.duetCancel=i(this,"duetCancel",3),this.duetProgress=i(this,"duetProgress",3),this.duetUpload=i(this,"duetUpload",3),this.linkClick=i(this,"linkClick",3),this.buttonId=v("DuetButton"),this.labelId=v("DuetLabel"),this.uploadId=v("DuetUpload"),this.filesInProgress=new Map,this.fileMaxReached=!1,this.bytesMaxReached=!1,this.filesToUploadExceedsLimit=!1,this.internalStatusMessageLabel=void 0,this.DefaultGroups={inprogress:"inprogress",success:"success",pending:"pending",failure:"failure"},this.kick=n((()=>{this.tick=Date.now()}),30),this.categoryLabel={en:"Category",sv:"Filtyp",fi:"Tiedostotyyppi"},this.listenForActionEvents=()=>{this.element.addEventListener("duetActionEvent",(t=>{const e=t.detail,{action:i,id:a,originalEvent:s}=e;switch(i){case"delete":this.onDelete(a,s);break;case"cancel":this.onCancel(a,s)}}))},this.verifyValidity=()=>{const{invalid:t,valid:e}=this.getFilesAsArray(),i=this.valid;this.valid=0===t.length&&0!==e.length,this.valid!==i&&this.duetState.emit({originalEvent:void 0,data:{valid:this.valid,from:"componentWillRender"},component:"duet-upload"})},this.getGroupFromItemData=t=>t.valid&&100===t.progress?this.DefaultGroups.success:t.progress>0&&100!==t.progress?this.DefaultGroups.inprogress:t.valid?t.pending?this.DefaultGroups.pending:t.group?t.group:"none":this.DefaultGroups.failure,this.mapFilesToUploadItems=(e,i,a)=>i===this.DefaultGroups.success?t(j,{theme:this.theme,actions:this.getActions(i),type:"success",data:e,showLinks:this.showLinks,onLinkClick:this.emitEvent?this.onLinkClick:void 0,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a}):i===this.DefaultGroups.inprogress?t(j,{theme:this.theme,actions:this.getActions(i),type:"inprogress",data:e,showLinks:this.showLinks,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a}):i===this.DefaultGroups.pending?t(j,{theme:this.theme,actions:this.getActions(i),type:"pending",data:e,showLinks:this.showLinks,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a}):i===this.DefaultGroups.failure?t(j,{theme:this.theme,actions:this.getActions(i),type:"failure",data:e,showLinks:this.showLinks,errorCodes:this.errorCodes,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a}):e.group?e.html:"none",this.genHashName=()=>Date.now().toString(36)+Math.random(),this.updateValueInMap=(t,e,i,a=!0)=>{try{const a=this.files.get(t);a[e]=i,this.files.set(t,a),this.external&&"url"!==e&&this.trackProgress(t,"uploaded"===e)}catch(s){}a&&this.kick()},this.updateProgress=(t,e)=>{t.lengthComputable?(i=>{this.updateValueInMap(e,"progress",i),this.onProgress(e,i,t)})(t.loaded/t.total*100):console.log("cant read progress")},this.trackProgress=(t,e=!1)=>{e?this.filesInProgress.delete(t):this.filesInProgress.set(t,"inprogress"),0===this.filesInProgress.size&&this.onDone()},this.getFilesAsArray=()=>{const t=[],e=[];return this.files.forEach((i=>{i.valid&&!i.deleted?t.push(i):i.valid||i.deleted||e.push(i)})),{valid:t,invalid:e}},this.resetFormFields=()=>{this.nativeInput.value=""},this.startUpload=async(t,e)=>{const{bytesMaxReached:i,fileMaxReached:a}=this.validateTotals();i||a?this.kick():(this.metaData=e,this.nativeInput.click(),this.onUpload(t,e),t.stopPropagation(),t.preventDefault())},this.transferComplete=t=>{this.updateValueInMap(t,"progress",100,!1),this.trackProgress(t,!0)},this.transferDone=(t,e,i)=>{this.updateValueInMap(e,"status",i,!1),this.updateValueInMap(e,"uploaded",!0,!1);try{const i=JSON.parse(t.response);this.updateValueInMap(e,"url",i.url)}catch(a){this.updateValueInMap(e,"url",null),console.error("Server did not respond with expected response {url: string}")}},this.transferDoneWithFailure=(t,e,i)=>{try{const{error:i}=JSON.parse(t.response);this.updateValueInMap(e,"error",{message:i.message,type:i.type},!1)}catch(a){console.error("Server did not respond with expected response error:{message: string, type: int}"),this.updateValueInMap(e,"error",{type:i},!1)}this.updateValueInMap(e,"valid",!1,!0)},this.transferFailed=t=>{this.updateValueInMap(t,"error",S("duet-upload-001",this.errorCodes))},this.transferCanceled=t=>{this.files.delete(t),this.validateTotals(t),this.kick()},this.validateTotals=t=>{const e=((t,e)=>{let i=0;return!!(e&&(this.files.forEach((t=>{t.valid&&t.size&&(i+=t.size)})),i>=e))})(0,this.maxBytesTotal),i=((t,e)=>{let i=0;return!!(e&&(this.files.forEach((t=>{t.valid&&i++})),i>=e))})(0,this.maxFiles);return e&&t&&this.updateValueInMap(t,"error",S("duet-upload-202",this.errorCodes),!1),i&&t&&this.updateValueInMap(t,"error",S("duet-upload-301",this.errorCodes),!1),this.bytesMaxReached=e,this.fileMaxReached=i,{bytesMaxReached:e,fileMaxReached:i}},this.uploadFile=async(t,e=!1,i)=>{!e&&this.deferUpload?(this.updateValueInMap(t.item.name,"pending",!0,!1),this.updateValueInMap(t.item.name,"group","pending",!0)):e&&(this.updateValueInMap(t.item.name,"pending",!1,!1),this.updateValueInMap(t.item.name,"group",void 0,!0));try{if(!this.deferUpload||e){const e=new FormData;e.append("file",t.item),i&&e.append("key",i),e.append("uid",t.uid),e.append("name",t.item.name),e.append("metadata",JSON.stringify({uid:t.uid,url:this.uri,size:t.item.size,meta:t.meta})),t.xhr=await this.makeXHRPostRequest(e)}}catch(a){this.updateValueInMap(t.item.name,"valid",!1,!1)}},this.uploadPendingFiles=()=>{for(const[t,e]of Array.from(this.files.entries()))"pending"===e.group&&!0===e.pending&&this.uploadFile(e,!0,t)},this.getItemFromUID=t=>{for(const[e,i]of Array.from(this.files.entries()))if(i.uid===t)return{value:i,key:e};return null},this.handleExternalUploadButton=(t,e)=>{this.externalUploadButton&&(this.externalUploadButton.disabled=!(!t&&!e))},this.onDelete=(t,e)=>{const i=this.getItemFromUID(t).key,a=this.files.get(i);this.files.delete(i);const{bytesMaxReached:s,fileMaxReached:d}=this.validateTotals();this.handleExternalUploadButton(s,d),this.kick(),this.duetDelete.emit({originalEvent:e,data:{deletion:a},component:"duet-upload"}),this.external||a.pending||this.makeXHRDeleteRequest(a),this.resetFormFields()},this.onCancel=(t,e)=>{const i=this.getItemFromUID(t).key,a=this.files.get(i);this.files.delete(i);const{bytesMaxReached:s,fileMaxReached:d}=this.validateTotals();if(this.handleExternalUploadButton(s,d),!this.external){const{xhr:t}=a;t&&t.abort()}this.kick(),this.resetFormFields(),this.duetCancel.emit({originalEvent:e,data:{cancelled:a},component:"duet-upload"})},this.onUpload=(t,e)=>{this.duetUpload.emit({originalEvent:t,metaData:e,component:"duet-upload"})},this.onBlur=t=>{this.duetBlur.emit({originalEvent:t,component:"duet-upload"})},this.onProgress=(t,e,i)=>{this.duetChange.emit({originalEvent:i,data:{key:t,percentComplete:e},component:"duet-upload"})},this.onFocus=t=>{this.duetFocus.emit({originalEvent:t,component:"duet-upload"})},this.onReady=()=>{this.duetReady.emit({component:"duet-upload"})},this.onDone=()=>{this.duetDone.emit({component:"duet-upload",data:{files:this.files}})},this.onLinkClick=(t,e,i)=>{this.emitEvent&&this.linkClick.emit({component:"duet-upload",data:{name:t,url:e,meta:i}})},this.filterMap=()=>{const t=Array.from(this.files.values()),e=[],i=[],a=[],s=[];let d=!1;return t.forEach((t=>{const o=this.getGroupFromItemData(t);t.meta&&t.meta.badges&&(d=!0),o===this.DefaultGroups.success?s.push({uid:t.uid,data:t}):o===this.DefaultGroups.inprogress?e.push({uid:t.uid,data:t}):o===this.DefaultGroups.pending?a.push({uid:t.uid,data:t}):o===this.DefaultGroups.failure?i.push({uid:t.uid,data:t}):t.group&&e.push({uid:t.uid,data:t})})),{pending:a,failure:i,success:s,inprogress:e,hasCategory:d}},this.getActions=t=>this.actions.filter((e=>e.map.includes(t))),this.renderUploadedItems=()=>{const e=this.filterMap(),i=e.hasCategory,a=this.groups.map((a=>{const s=e[a.id];if(null==s?void 0:s.length)return t(d,null,!this.hideGroups&&t(C,{categoryLabel:i?this.categoryLabel:void 0,label:a.label}),s.map((t=>this.mapFilesToUploadItems(t.data,a.id,i))))}));return t(d,null,this.showUploadedItemsHeader&&t(C,{categoryLabel:i?this.categoryLabel:void 0,label:this.uploadedItemsHeaderLabel}),a)},this.tick=Date.now(),this.accessibleActiveDescendant=void 0,this.accessibleDescribedBy=void 0,this.accessibleControls=void 0,this.accessibleOwns=void 0,this.external=!1,this.middleware=null,this.deferUpload=!1,this.hideButton=!1,this.actions=[{icon:"action-delete",color:"color-danger",size:"x-small",background:"gray-lightest",name:"delete",map:["success","failure"],label:{fi:"Poista tiedosto",en:"Delete the file",sv:"Ta bort filen"}},{icon:"navigation-close",color:"primary",size:"x-small",background:"gray-lightest",name:"cancel",map:["inprogress","pending"],label:{fi:"Keskeytä lähetys",en:"Cancel the upload",sv:"Stop överföringen"}}],this.uri=void 0,this.showLinks=!1,this.caption=void 0,this.statusLabelDefaults={fi:{inProgress:"Lähetetään {filesUploaded} lähetettävästä {filesTotal} tiedostosta",inProgressWithErrors:"Lähetetään {filesInProgress} tiedostoa, lähetetty {filesUploaded} lähetettävästä {filesTotal} tiedostosta, {filesWithErrors} tiedostossa on virheitä",done:"Kaikki {filesTotal} tiedostoa lähetetty onnistuneesti",doneWithErrors:"Lataus valmis, {filesUploaded} tiedostoa ladattu onnistuneesti, {filesWithErrors} tiedostossa oli virheitä",files:"tiedostot",file:"tiedosto"},sv:{inProgress:"Adding {filesUploaded} of {filesTotal}",inProgressWithErrors:"Laddar upp {filesInProgress}, {filesUploaded} uppladdad av {filesTotal}, {filesWithErrors} misslyckades",done:"Alla {filesTotal} har lagts till",doneWithErrors:"Handling slutförd, {filesUploaded} har lagts till, {filesWithErrors} misslyckades",files:"filer",file:"fil"},en:{inProgress:"Adding {filesUploaded} of {filesTotal}",inProgressWithErrors:"Uploading {filesInProgress}, {filesUploaded} uploaded of {filesTotal}, {filesWithErrors} failed",done:"All {filesTotal} added successfully",doneWithErrors:"Action completed, {filesUploaded} has been added successfully, {filesWithErrors} had errors",files:"File",file:"file"}},this.statusMessageLabel=p(this.statusLabelDefaults),this.buttonLabelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add an attachment"},this.buttonLabel=p(this.buttonLabelDefaults),this.accessibleButtonLabel=void 0,this.theme="",this.disabled=!1,this.identifier=void 0,this.margin="auto",this.required=!1,this.alignment="middle",this.hideGroups=!1,this.files=new Map,this.valid=!this.required,this.labelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add attachments"},this.label=p(this.labelDefaults),this.descriptionDefaults={en:"You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytestotal} of files at a time, and add up to {maxfiles} attachments at a time each no larger than {maxbytes}.",sv:"Du kan bifoga följande filtyper: {filetypes} - samt de vanligaste videofilerna. Du kan ladda upp {maxbytestotal} av filer åt gången, och lägga till upp till {maxfiles} bilagor åt gången varje inte större än {maxbytes}.",fi:"Voit liittää seuraavat tiedostotyypit: {filetypes} - sekä yleisimmät videotiedostot. Voit lähettää {maxbytestotal} tiedostoa kerrallaan, ja lisätä enintään {maxfiles} liitettä kerrallaan, jokainen enintään {maxbytes} kokoisena."},this.description=p(this.descriptionDefaults),this.fileListEmptyDefaults={fi:"Ei vielä lisättyjä tiedostoja.",sv:"Inga filer har lagts till ännu.",en:"No files added yet."},this.fileListEmpty=p(this.fileListEmptyDefaults),this.error="",this.errorCodes=L,this.name=void 0,this.maxBytes=2e8,this.maxBytesTotal=void 0,this.maxFiles=99,this.allowedExtensions="all",this.allowedMimetypes="*",this.multiple=!0,this.limitSelection=!1,this.value=void 0,this.externalUploadButtonId=void 0,this.captionOnBottom=!1,this.showUploadedItemsHeader=!1,this.uploadedItemsHeaderLabel={fi:"Ladattu tiedosto",sv:"Lägg till en bilaga",en:"Uploaded file"},this.hideHeader=!1,this.emitEvent=!1,this.groups=[{id:this.DefaultGroups.success,label:{fi:"Valmiit tiedostot",sv:"Files success",en:"Files success"}},{id:this.DefaultGroups.failure,label:{fi:"Tiedostot, joissa on virheitä",sv:"Filer med fel",en:"Files with errors"}},{id:this.DefaultGroups.inprogress,label:{fi:"Kesken olevat tiedostot",sv:"Filer inprogress",en:"Files inprogress"}},{id:this.DefaultGroups.pending,label:{en:"Files to upload",sv:"Filer att ladda",fi:"Ladattavat tiedostot"}}]}watchValidHandler(t,e){t!==e&&this.kick()}componentWillLoad(){this.internalStatusMessageLabel="string"==typeof this.statusMessageLabel?m(this.groups):this.statusMessageLabel,o(this),this.listenForActionEvents(),this.onReady(),this.externalUploadButton=document.querySelector(`#${this.externalUploadButtonId}`)}componentWillRender(){this.verifyValidity()}async setFocus(t){this.nativeInput&&this.nativeInput.focus(t)}async upload(t){const{bytesMaxReached:e,fileMaxReached:i}=this.validateTotals();if(e||i)return this.handleExternalUploadButton(e,i),void this.kick();this.metaData=t,this.nativeInput.click()}async uploadPending(){this.uploadPendingFiles()}async refresh(){this.kick(),await this.setFocus()}async getFiles(){return!(!this.files||0===this.files.size)&&this.getFilesAsArray()}async updateValue(t,e,i){this.updateValueInMap(t,e,i)}render(){const e=this.identifier||this.uploadId,i=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024),s=Math.round(this.maxBytes/1024/1024);let o=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());return o=o.replace(/{maxbytes}/g,`${s.toString()} MB`),o=o.replace(/{maxbytestotal}/g,`${i.toString()} MB`),o=o.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", ")),this.externalUploadButton&&(this.externalUploadButton.ariaLabel=o),t(a,{class:{"duet-m-0":"none"===this.margin}},t("duet-fieldset",{"label-hidden":this.hideHeader,label:this.label,caption:this.captionOnBottom?void 0:o},t("slot",{name:"header"}),!this.files.size&&t("duet-empty-state",{id:this.labelId,part:this.identifier?`${this.identifier}-empty-state`:"duet-upload-empty-state",icon:"messaging-attachment"},t("duet-paragraph",{margin:"none"},this.fileListEmpty)),!!this.files.size&&t("slot",{name:"fileheader"}),!!this.files.size&&t("duet-upload-aria-status",{invalid:this.getFilesAsArray().invalid.length,valid:this.getFilesAsArray().valid.length,inprogress:this.filesInProgress.size,total:this.files.size,statusMessageLabel:this.internalStatusMessageLabel}),!!this.files.size&&this.renderUploadedItems(),!!this.files.size&&t("slot",{name:"filefooter"}),t("slot",{name:"uploadfooter"}),this.captionOnBottom&&t("duet-caption",{margin:"none",size:"small"},t("div",{class:"upload-bottom-caption"},o)),t("slot",{name:"afterfooter"}),!this.hideButton&&t(d,null,t("duet-spacer",{size:"large"}),t("duet-button",{id:this.buttonId,onClick:this.startUpload,"accessible-controls":e,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel,"accessible-owns":e,size:"small",variation:"secondary",fixed:!0,icon:"action-add-circle",part:this.identifier?`${this.identifier}-button-upload`:"duet-upload-button-upload"},this.buttonLabel)),(this.fileMaxReached||this.bytesMaxReached||this.filesToUploadExceedsLimit)&&t(d,null,t("duet-spacer",{size:"medium"}),t("duet-alert",{part:this.identifier?`${this.identifier}-error-notification`:"duet-upload-error-notification"},this.fileMaxReached&&S("duet-upload-301",this.errorCodes),this.bytesMaxReached&&S("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&S("duet-upload-302",this.errorCodes))),t("duet-visually-hidden",{"aria-hidden":"true"},t("input",{ref:t=>{this.nativeInput=t},accept:this.limitSelection?`${this.allowedMimetypes},${this.allowedExtensions}`:void 0,onBlur:this.onBlur,onFocus:this.onFocus,onChange:t=>this.onChange(t),type:"file",class:{"duet-upload":!0},disabled:this.disabled,"aria-hidden":"true",required:this.required,name:this.name,id:this.identifier,multiple:this.multiple,tabIndex:-1}))))}makeXHRPostRequest(t){const e=new XMLHttpRequest,i=t.get("name");e.upload.addEventListener("progress",(t=>{this.updateProgress(t,i)})),e.upload.addEventListener("load",(()=>{this.transferComplete(i)})),e.upload.addEventListener("error",(()=>{this.transferFailed(i)})),e.upload.addEventListener("abort",(()=>{this.transferCanceled(i)}));let a={payload:{data:t,name:i},options:{type:"POST",uri:this.uri,xhr:e,argument:null,headers:void 0},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};return this.middleware&&(a=this.middleware(a)),$(a)}makeXHRDeleteRequest(t){const{uid:e,item:i}=t,a=new XMLHttpRequest;let s={payload:{data:null,name},options:{type:"DELETE",xhr:a,uri:this.uri,argument:`?key=${e}&name=${i.name}`,headers:{"x-fileuid":e,"x-filename":i.name}},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};return this.middleware&&(s=this.middleware(s)),$(s)}async onChange(t){var e;const i=Array.from(null===(e=this.nativeInput)||void 0===e?void 0:e.files);if(this.filesToUploadExceedsLimit=!1,this.files.size+i.length>this.maxFiles)return this.filesToUploadExceedsLimit=!0,void this.kick();if(i)for(const a of i){const{valid:t,errorMessage:e,errorType:i,errorSystem:s}=F(a,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),d={uid:this.genHashName(),item:a,size:a.size,meta:this.metaData,uploaded:!1,valid:t,error:{type:t?void 0:i,message:t?void 0:e,system_message:t?void 0:s},progress:0,deleted:!1,xhr:!1,url:!1};this.files.set(a.name,d),t&&!this.external?await this.uploadFile(d):t&&this.external?(this.updateValueInMap(d.item.name,"pending",!0,!1),this.updateValueInMap(d.item.name,"group","pending",!0)):t||this.updateValueInMap(a.name,"valid",!1,!0),this.kick()}this.resetFormFields(),this.metaData=void 0,this.duetChange.emit({originalEvent:t,data:{files:this.files},component:"duet-upload"})}get element(){return s(this)}static get watchers(){return{valid:["watchValidHandler"]}}};D.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}::slotted([slot=uploadfooter]){margin-top:20px}.duet-upload{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}duet-paragraph::part(duet-paragraph){word-break:break-word}duet-editable-table tfoot{display:none}.upload-bottom-caption{margin-top:12px;margin-bottom:16px;line-height:1.4rem}.items-header{display:none;flex-direction:row;margin-bottom:0}@media (min-width: 36em){.items-header{display:flex}}.items-header:not(:last-child),.items-header:not(:first-child){margin-top:12px}.items-header .category-header{width:35%}.items-header .filename-header{width:65%}.items-header .filename-header.no-category{width:100%}.upload-item-row{display:flex;flex-direction:column;gap:16px;align-content:center;align-items:center;padding:16px 0 16px 0;border-bottom:1px solid rgb(225, 227, 230)}@media (min-width: 36em){.upload-item-row{flex-direction:row;gap:10px}}.upload-item-row .item-categories{width:100%}@media (min-width: 36em){.upload-item-row .item-categories{width:35%}}.upload-item-row .item-name{position:relative;bottom:2px;width:100%;text-align:left}@media (min-width: 36em){.upload-item-row .item-name{width:50%}.upload-item-row .item-name.no-category{width:85%}}.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:block}@media (min-width: 36em){.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:none}}.upload-item-row .item-actions{width:100%;margin-left:-8px;text-align:left}@media (min-width: 36em){.upload-item-row .item-actions{width:15%;padding-top:0;margin-left:auto;text-align:right}}.upload-item-row .duet-upload-item-name duet-icon{position:relative;top:4px}.upload-item-row .duet-upload-item-name duet-progress{display:block;margin-top:16px}";export{k as duet_editable_table,T as duet_table,D as duet_upload}
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,o){function c(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function n(e){try{a(o.next(e))}catch(t){r(t)}}function s(e){try{a(o["throw"](e))}catch(t){r(t)}}function a(e){e.done?i(e.value):c(e.value).then(n,s)}a((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,c,r,n;return n={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function s(e){return function(t){return a([e,t])}}function a(s){if(o)throw new TypeError("Generator is already executing.");while(n&&(n=0,s[0]&&(i=0)),i)try{if(o=1,c&&(r=s[0]&2?c["return"]:s[0]?c["throw"]||((r=c["return"])&&r.call(c),0):c.next)&&!(r=r.call(c,s[1])).done)return r;if(c=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;c=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){i.label=s[1];break}if(s[0]===6&&i.label<r[1]){i.label=r[1];r=s;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(s);break}if(r[2])i.ops.pop();i.trys.pop();continue}s=t.call(e,i)}catch(a){s=[6,a];c=0}finally{o=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register(["./p-62b68de6.system.js","./p-33b3aba4.system.js","./p-c7ae95bd.system.js","./p-5f6bd5db.system.js","./p-bd1d0640.system.js","./p-51721695.system.js","./p-c8dc599d.system.js","./p-eb55ccd2.system.js","./p-b6d51921.system.js"],(function(e){"use strict";var t,i,o,c,r,n,s,a,d,h,u,l,p,b,g,f,m,k;return{setters:[function(e){t=e.r;i=e.c;o=e.h;c=e.H;r=e.g},function(e){n=e.i},function(e){s=e.D},function(e){a=e.c},function(e){d=e.F},function(e){h=e.i;u=e.h;l=e.f},function(e){p=e.g;b=e.a;g=e.c;f=e.d},function(e){m=e.f;k=e.w},function(){}],execute:function(){var v={title:"messaging-info",tags:"messaging info information circle",svg:'<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>'};var y='*.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(0, 41, 77) !important;text-align:left;background:rgb(255, 255, 255);border-width:2px}.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:1rem;align-items:center;justify-content:flex-start;width:100%;height:100%;min-height:3.875rem;padding:1rem;font-size:1rem;font-weight:600;text-decoration:none;word-break:break-word;cursor:pointer;border:2px solid rgb(225, 227, 230);border-radius:4px;transition:background-color 150ms 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(228, 228, 230)}.duet-theme-turva.sc-duet-choice .info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:rgb(228, 228, 230)}.duet-choice-label.sc-duet-choice:not(.no-hover):hover{border-color:rgb(144, 149, 153)}.duet-choice-label.sc-duet-choice:not(.no-hover):hover .duet-checkmark-container.sc-duet-choice{border-color:rgb(144, 149, 153)}.duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.no-hover):hover{border-color:rgb(116, 116, 117)}.duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.no-hover):hover .duet-checkmark-container.sc-duet-choice{border-color:rgb(116, 116, 117)}.duet-theme-turva.sc-duet-choice .info.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.no-hover):hover{border-color:rgb(116, 116, 117)}.duet-choice-label.sc-duet-choice:active{opacity:0.75;transition:none !important}.checked.sc-duet-choice .duet-choice-label.sc-duet-choice{color:rgb(0, 119, 179) !important;background:rgb(243, 249, 252);border-color:rgb(0, 119, 179) !important}.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{color:rgb(23, 28, 58) !important;background:rgb(245, 245, 247);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{border-bottom:0 !important;border-bottom-right-radius:0;border-bottom-left-radius:0}input.sc-duet-choice:focus{outline:0}.user-is-tabbing.sc-duet-choice-h input.sc-duet-choice:checked:focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3)}.user-is-tabbing.sc-duet-choice-h 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 rgb(0, 119, 179)}.user-is-tabbing.duet-theme-turva.sc-duet-choice-h input.sc-duet-choice:checked:focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2)}.user-is-tabbing.duet-theme-turva.sc-duet-choice-h 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 rgb(23, 28, 58)}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{color:rgb(101, 119, 135) !important;cursor:default !important;background:rgb(245, 248, 250) !important;border-color:rgb(225, 227, 230) !important}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-checkmark.sc-duet-choice{border-color:rgb(101, 119, 135) !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(116, 116, 117) !important;background:rgb(245, 245, 247) !important;border-color:rgb(228, 228, 230) !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(116, 116, 117) !important}.checked.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{background:rgb(225, 227, 230) !important;border-color:rgb(225, 227, 230) !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{background:rgb(228, 228, 230) !important;border-color:rgb(228, 228, 230) !important}.duet-checkmark-container.sc-duet-choice{position:relative;width:20px;height:20px;margin-left:auto;border:1px solid rgb(144, 149, 153);border-radius:4px;transition:border 300ms ease}.duet-theme-turva.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(116, 116, 117)}.checked.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-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{border-color:rgb(207, 210, 212) !important}.duet-theme-turva.sc-duet-choice [disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(207, 207, 209) !important}.checked.sc-duet-choice [disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(207, 210, 212) !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(207, 207, 209) !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}.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;z-index:200;width:100%;font-weight:400;color:rgb(0, 41, 77);border:2px solid rgb(225, 227, 230);border-top:0;border-radius:0 0 4px 4px}@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:2px solid rgb(0, 119, 179);border-top:0}.duet-choice-card-collapsible.duet-theme-turva.sc-duet-choice{background:rgb(255, 255, 255);border-color:rgb(23, 28, 58)}.duet-choice-card-collapsible-disabled.sc-duet-choice{background:rgb(245, 248, 250);border-color:rgb(225, 227, 230)}.duet-choice-card-collapsible-disabled.duet-theme-turva.sc-duet-choice{background:rgb(245, 245, 247);border-color:rgb(228, 228, 230)}.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, 245, 247);border-color:rgb(228, 228, 230)}.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:2px solid rgb(225, 227, 230);border-left:0 none;border-top-right-radius:4px;border-bottom-right-radius:4px;-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-choice-info-toggle[disabled].sc-duet-choice{pointer-events:none;background:rgb(245, 248, 250) !important;border-color:rgb(225, 227, 230) !important}.duet-choice-info-toggle[disabled].sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(144, 149, 153) !important}.duet-choice-info-toggle[disabled].duet-theme-turva.sc-duet-choice{background:rgb(245, 245, 247) !important;border-color:rgb(228, 228, 230) !important}.duet-choice-info-toggle[disabled].duet-theme-turva.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(116, 116, 117) !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 rgb(0, 119, 179)}.duet-choice-label.sc-duet-choice:not(.no-hover):hover .duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(144, 149, 153)}.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)}.duet-choice-input.sc-duet-choice{position:absolute !important;width:100%;height:100%;opacity:0}';var x=e("duet_choice",function(){function e(e){var o=this;t(this,e);this.duetChange=i(this,"duetChange",7);this.duetFocus=i(this,"duetFocus",7);this.duetBlur=i(this,"duetBlur",7);this.hasHeader=false;this.choiceId=a("DuetChoice");this.expandId=a("DuetChoiceExpand");this.headerId=a("DuetChoiceHeader");this.infoButtonId=a("DuetChoiceInfoButton");this.onMouseEnter=function(){o.isHovering=true};this.onMouseLeave=function(){o.isHovering=false};this.onClick=function(e){o.toggleChecked(e)};this.handleKeyDown=function(e){if(h(e)){o.toggleChecked(e)}if(u(e)&&o.hasInfo){o.toggleInfo()}};this.onChange=function(){o.checked=o.nativeInput.checked||false;o.duetChange.emit({checked:o.checked,value:o.value,component:"duet-choice"})};this.onBlur=function(e){o.duetBlur.emit({originalEvent:e,checked:o.checked,value:o.value,component:"duet-choice"})};this.onFocus=function(e){o.duetFocus.emit({originalEvent:e,checked:o.checked,value:o.value,component:"duet-choice"})};this.toggleChecked=function(e){e.preventDefault();e.stopPropagation();if(o.disabled||o.groupDisabled){return}o.isInfoOpen=false;if(o.type==="radio"&&o.checked){return}o.checked=!o.checked;o.duetChange.emit({originalEvent:e,checked:o.checked,value:o.value,component:"duet-choice"})};this.toggleInfo=function(){o.isInfoOpen=!o.isInfoOpen};this.isHovering=false;this.isInfoOpen=false;this.isBlurred=false;this.language=p();this.theme="";this.label="label";this.accessibleLabelInfoButtonDefaults=s;this.accessibleLabelInfoButton=b(this.accessibleLabelInfoButtonDefaults);this.accessibleActiveDescendant=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.caption="";this.value=undefined;this.type="checkbox";this.name=undefined;this.checked=false;this.collapsible=false;this.margin="auto";this.icon="";this.expand=false;this.padding="auto";this.identifier=undefined;this.groupDirection=undefined;this.groupDisabled=undefined;this.groupResponsive=undefined;this.disabled=false;this.required=false;this.infoLabelDefaults={fi:"Lisätietoja vaihtoehdosta",en:"More information about",sv:"Mera information om"};this.infoLabel=b(this.infoLabelDefaults,p())}e.prototype.watchLanguageStateHandler=function(e,t){if(e!==t&&this.accessibleLabelInfoButton===this.accessibleLabelInfoButtonDefaults[t]){this.accessibleLabelInfoButton=b(this.accessibleLabelInfoButtonDefaults,e)}if(e!==t&&this.infoLabel===this.infoLabelDefaults[t]){this.infoLabel=b(this.infoLabelDefaults,e)}};e.prototype.componentWillLoad=function(){n(this);this.hasInfo=!!this.element.querySelector("[slot='info']");this.hasHeader=!!this.element.querySelector('[slot="header"]');this.hasAdditional=!!this.element.querySelector(":scope > [slot='additional']");this.hasLabel=!!this.element.querySelector(":scope > [slot='label']");this.hasBeforeText=!!this.element.querySelector("[slot='before-text']")};e.prototype.connectedCallback=function(){g(this)};e.prototype.disconnectedCallback=function(){f(this)};e.prototype.handleHostBlur=function(e){if(this.hasInfo&&this.isInfoOpen&&this.isKeyDown){var t=this.element.contains(e===null||e===void 0?void 0:e.relatedTarget)||false;if(!t){this.toggleInfo()}}};e.prototype.handleHostKeyDown=function(){this.isKeyDown=true};e.prototype.handleHostKeyUp=function(e){this.isKeyDown=false;if(l(e)&&this.isInfoOpen){this.toggleInfo()}};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.nativeInput.focus(e);return[2]}))}))};e.prototype.toggleInfoMethod=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.isInfoOpen=!this.isInfoOpen;return[2]}))}))};e.prototype.getAriaDescribedby=function(){if(this.accessibleDescribedBy){return this.accessibleDescribedBy}if(this.collapsible||this.hasInfo){if(this.hasHeader){return this.headerId}else{return this.expandId}}return null};e.prototype.getClassNames=function(){if(this.hasInfo&&!this.collapsible){return{"duet-choice-card-info":true,"duet-choice-card-info-expanded":this.isInfoOpen,"duet-choice-card-collapsed":!this.isInfoOpen,"duet-theme-turva":this.theme==="turva"}}if(!this.hasInfo&&this.collapsible){return{"duet-choice-card-collapsible":true,"duet-choice-card-collapsible-expanded":this.checked,"duet-choice-card-collapsed":!this.checked,"duet-choice-card-collapsible-disabled":this.disabled||this.groupDisabled?true:false,"duet-theme-turva":this.theme==="turva"}}return{"duet-choice-default-slot":true}};e.prototype.render=function(){var e=this;var t=this.element.closest("duet-choice-group");var i=t?t.label:undefined;var r=this.identifier||this.choiceId;return o(c,{class:{horizontal:this.groupDirection==="horizontal"&&!this.groupResponsive,"horizontal-responsive":this.groupDirection==="horizontal"&&this.groupResponsive,"duet-m-0":this.margin==="none","duet-expand":this.expand,"duet-theme-turva":this.theme==="turva"}},o("div",{class:{"duet-choice-card-flextainer":true,"duet-theme-turva":this.theme==="turva"}},o("div",{class:{"duet-choice-card":true,"has-icon":!!this.icon,"has-info":this.hasInfo,checked:this.checked,info:this.isInfoOpen,collapsible:this.collapsible,"duet-p-0":this.padding==="none"}},o("input",{class:"duet-choice-input",type:this.type,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,disabled:this.disabled||this.groupDisabled,required:this.required,id:r,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:function(t){return e.nativeInput=t}}),o("label",{htmlFor:r,class:{"duet-choice-label":true,"no-hover":this.isHovering,"has-before-text":this.hasBeforeText},onClick:this.onClick},this.hasBeforeText&&o("slot",{name:"before-text"}),this.icon&&o("div",{class:"duet-choice-card-icon"},o("duet-icon",{margin:"none",size:"small",name:this.icon,color:"currentColor"})),o("div",{class:"duet-choice-card-text"},i&&o("duet-visually-hidden",null,i,", "),o("div",null,this.hasLabel?o("slot",{name:"label"}):this.label),this.caption&&o("div",null,o("duet-spacer",{size:"xx-small"}),o("duet-caption",{margin:"none",selected:this.checked},this.caption)),this.hasAdditional&&o("div",null,o("duet-spacer",{size:"xx-small"}),o("slot",{name:"additional"}))),o("div",null,o("div",{class:{"duet-checkmark-container":true,"duet-checkmark-radio":this.type==="radio"}},this.checked&&o("div",{class:"duet-checkmark"}))))),this.hasInfo&&!this.collapsible&&o("button",{ref:function(t){return e.infoButtonEl=t},id:this.infoButtonId,class:{"duet-choice-info-toggle":true,"duet-theme-turva":this.theme==="turva"},onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onClick:this.toggleInfo,disabled:this.disabled||this.groupDisabled,"aria-expanded":this.isInfoOpen?"true":"false","aria-label":"".concat(this.infoLabel," ").concat(this.label),"aria-controls":this.expandId,"aria-flowto":this.expandId,tabindex:this.type==="radio"&&!this.checked?"-1":"0",type:"button"},o("duet-visually-hidden",{"aria-hidden":!this.isBlurred?"true":"false"},this.accessibleLabelInfoButton),o("div",{class:"duet-choice-info-icon"},o("duet-icon",{icon:v.svg,margin:"none",size:"small",color:"currentColor"})))),this.collapsible||this.hasInfo?o("div",{class:this.getClassNames(),id:this.expandId},o("span",{class:{"duet-choice-section-visible":this.collapsible?this.checked:this.isInfoOpen,"duet-choice-section-hidden":this.collapsible?!this.checked:!this.isInfoOpen}},o("span",{id:this.headerId},o("slot",{name:"header"})),this.hasInfo?o("span",null,o("span",{"aria-relevant":"all","aria-atomic":"true","aria-live":this.isInfoOpen?"polite":"off"},o("slot",{name:"info"})),o("slot",null)):o("span",null,o("slot",null))),this.isInfoOpen&&o(d,{moveFocusTo:this.infoButtonEl})):null)};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{language:["watchLanguageStateHandler"]}},enumerable:false,configurable:true});return e}());x.style=y;var w="*.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}";var I=":scope duet-choice:not(:scope duet-choice duet-choice-group duet-choice):not(:scope duet-choice duet-fieldset duet-choice)";var C=e("duet_choice_group",function(){function e(e){var i=this;t(this,e);this.choiceGroupName="duet-choice-group";this.getChoices=function(){return Array.from(i.element.querySelectorAll(I))};this.isMyChoice=function(e){return i.getChoices().includes(e)};this.onSelect=function(e){if(e.detail.component!=="duet-choice"){return}var t=e.target;if(t&&i.isMyChoice(t)){i.value=t.value}e.cancelBubble=true};this.direction="vertical";this.margin="auto";this.theme="";this.error="";this.name=undefined;this.label="Label";this.labelHidden=false;this.caption=undefined;this.tooltip=undefined;this.tooltipDirection="auto";this.responsive=false;this.breakpoint="small";this.value=undefined;this.disabled=undefined}e.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;var i=this;return __generator(this,(function(o){switch(o.label){case 0:e=this.element;if(!(this.value===undefined))return[3,2];t=m(e,I);if(!(t!==undefined))return[3,2];return[4,t.componentOnReady()];case 1:o.sent();if(this.value===undefined){this.value=t.value}o.label=2;case 2:this.mutationO=k(e,I,(function(e){if(e!==undefined){e.componentOnReady().then((function(){if(i.isMyChoice(e)){i.value=e.value}}))}else{i.updateChoices()}}));this.updateChoices();return[2]}}))}))};e.prototype.disconnectedCallback=function(){if(this.mutationO){this.mutationO.disconnect();this.mutationO=undefined}};e.prototype.componentWillLoad=function(){n(this)};e.prototype.updateChoices=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,o,c,r;return __generator(this,(function(n){e=this.getChoices();t=this.value;i=false;for(o=0,c=e;o<c.length;o++){r=c[o];r.name=this.name;r.groupDisabled=this.disabled;r.groupDirection=this.direction;r.groupResponsive=this.responsive;if(!i&&r.value===t){i=true;r.checked=true}else{r.checked=false}}if(!i){this.value=undefined}return[2]}))}))};e.prototype.render=function(){var e;return o(c,{onDuetChange:this.onSelect,class:{horizontal:this.direction==="horizontal","duet-choice-group-breakpoint-x-small":this.responsive&&this.breakpoint==="x-small","duet-choice-group-breakpoint-small":this.responsive&&this.breakpoint==="small","duet-choice-group-breakpoint-medium":this.responsive&&this.breakpoint==="medium","duet-choice-group-breakpoint-large":this.responsive&&this.breakpoint==="large","duet-choice-group-breakpoint-x-large":this.responsive&&this.breakpoint==="x-large"}},o("duet-fieldset",{label:this.label,labelHidden:this.labelHidden,caption:this.caption,error:this.error,margin:this.margin,theme:this.theme},this.tooltip&&o("duet-tooltip",{slot:"tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),o("div",{class:(e={},e[this.choiceGroupName]=true,e["duet-no-stacking"]=!this.responsive,e)},o("slot",null))))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{value:["updateChoices"],disabled:["updateChoices"],name:["updateChoices"],direction:["updateChoices"],responsive:["updateChoices"]}},enumerable:false,configurable:true});return e}());C.style=w}}}));
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as e,c as t,h as c,H as i,g as o}from"./p-308b881b.js";import{i as h}from"./p-4ebf1618.js";import{D as d}from"./p-76f00bd5.js";import{c as s}from"./p-c1325e35.js";import{F as r}from"./p-225d9dbe.js";import{i as a,h as u,f as n}from"./p-f077c646.js";import{g as l,a as p,c as b,d as g}from"./p-076452be.js";import{f as m,w as k}from"./p-12721178.js";import"./p-5a9d75e1.js";const f=class{constructor(c){e(this,c),this.duetChange=t(this,"duetChange",7),this.duetFocus=t(this,"duetFocus",7),this.duetBlur=t(this,"duetBlur",7),this.hasHeader=!1,this.choiceId=s("DuetChoice"),this.expandId=s("DuetChoiceExpand"),this.headerId=s("DuetChoiceHeader"),this.infoButtonId=s("DuetChoiceInfoButton"),this.onMouseEnter=()=>{this.isHovering=!0},this.onMouseLeave=()=>{this.isHovering=!1},this.onClick=e=>{this.toggleChecked(e)},this.handleKeyDown=e=>{a(e)&&this.toggleChecked(e),u(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.disabled||this.groupDisabled||(this.isInfoOpen=!1,"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.isHovering=!1,this.isInfoOpen=!1,this.isBlurred=!1,this.language=l(),this.theme="",this.label="label",this.accessibleLabelInfoButtonDefaults=d,this.accessibleLabelInfoButton=p(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.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=p(this.infoLabelDefaults,l())}watchLanguageStateHandler(e,t){e!==t&&this.accessibleLabelInfoButton===this.accessibleLabelInfoButtonDefaults[t]&&(this.accessibleLabelInfoButton=p(this.accessibleLabelInfoButtonDefaults,e)),e!==t&&this.infoLabel===this.infoLabelDefaults[t]&&(this.infoLabel=p(this.infoLabelDefaults,e))}componentWillLoad(){h(this),this.hasInfo=!!this.element.querySelector("[slot='info']"),this.hasHeader=!!this.element.querySelector('[slot="header"]'),this.hasAdditional=!!this.element.querySelector(":scope > [slot='additional']"),this.hasLabel=!!this.element.querySelector(":scope > [slot='label']"),this.hasBeforeText=!!this.element.querySelector("[slot='before-text']")}connectedCallback(){b(this)}disconnectedCallback(){g(this)}handleHostBlur(e){this.hasInfo&&this.isInfoOpen&&this.isKeyDown&&(this.element.contains(null==e?void 0:e.relatedTarget)||this.toggleInfo())}handleHostKeyDown(){this.isKeyDown=!0}handleHostKeyUp(e){this.isKeyDown=!1,n(e)&&this.isInfoOpen&&this.toggleInfo()}async setFocus(e){this.nativeInput.focus(e)}async toggleInfoMethod(){this.isInfoOpen=!this.isInfoOpen}getAriaDescribedby(){return this.accessibleDescribedBy?this.accessibleDescribedBy:this.collapsible||this.hasInfo?this.hasHeader?this.headerId:this.expandId:null}getClassNames(){return this.hasInfo&&!this.collapsible?{"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?{"duet-choice-card-collapsible":!0,"duet-choice-card-collapsible-expanded":this.checked,"duet-choice-card-collapsed":!this.checked,"duet-choice-card-collapsible-disabled":!(!this.disabled&&!this.groupDisabled),"duet-theme-turva":"turva"===this.theme}:{"duet-choice-default-slot":!0}}render(){const e=this.element.closest("duet-choice-group"),t=e?e.label:void 0,o=this.identifier||this.choiceId;return c(i,{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}},c("div",{class:{"duet-choice-card-flextainer":!0,"duet-theme-turva":"turva"===this.theme}},c("div",{class:{"duet-choice-card":!0,"has-icon":!!this.icon,"has-info":this.hasInfo,checked:this.checked,info:this.isInfoOpen,collapsible:this.collapsible,"duet-p-0":"none"===this.padding}},c("input",{class:"duet-choice-input",type:this.type,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,disabled:this.disabled||this.groupDisabled,required:this.required,id:o,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}),c("label",{htmlFor:o,class:{"duet-choice-label":!0,"no-hover":this.isHovering,"has-before-text":this.hasBeforeText},onClick:this.onClick},this.hasBeforeText&&c("slot",{name:"before-text"}),this.icon&&c("div",{class:"duet-choice-card-icon"},c("duet-icon",{margin:"none",size:"small",name:this.icon,color:"currentColor"})),c("div",{class:"duet-choice-card-text"},t&&c("duet-visually-hidden",null,t,", "),c("div",null,this.hasLabel?c("slot",{name:"label"}):this.label),this.caption&&c("div",null,c("duet-spacer",{size:"xx-small"}),c("duet-caption",{margin:"none",selected:this.checked},this.caption)),this.hasAdditional&&c("div",null,c("duet-spacer",{size:"xx-small"}),c("slot",{name:"additional"}))),c("div",null,c("div",{class:{"duet-checkmark-container":!0,"duet-checkmark-radio":"radio"===this.type}},this.checked&&c("div",{class:"duet-checkmark"}))))),this.hasInfo&&!this.collapsible&&c("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.disabled||this.groupDisabled,"aria-expanded":this.isInfoOpen?"true":"false","aria-label":`${this.infoLabel} ${this.label}`,"aria-controls":this.expandId,"aria-flowto":this.expandId,tabindex:"radio"!==this.type||this.checked?"0":"-1",type:"button"},c("duet-visually-hidden",{"aria-hidden":this.isBlurred?"false":"true"},this.accessibleLabelInfoButton),c("div",{class:"duet-choice-info-icon"},c("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||this.hasInfo?c("div",{class:this.getClassNames(),id:this.expandId},c("span",{class:{"duet-choice-section-visible":this.collapsible?this.checked:this.isInfoOpen,"duet-choice-section-hidden":this.collapsible?!this.checked:!this.isInfoOpen}},c("span",{id:this.headerId},c("slot",{name:"header"})),this.hasInfo?c("span",null,c("span",{"aria-relevant":"all","aria-atomic":"true","aria-live":this.isInfoOpen?"polite":"off"},c("slot",{name:"info"})),c("slot",null)):c("span",null,c("slot",null))),this.isInfoOpen&&c(r,{moveFocusTo:this.infoButtonEl})):null)}get element(){return o(this)}static get watchers(){return{language:["watchLanguageStateHandler"]}}};f.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(0, 41, 77) !important;text-align:left;background:rgb(255, 255, 255);border-width:2px}.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:1rem;align-items:center;justify-content:flex-start;width:100%;height:100%;min-height:3.875rem;padding:1rem;font-size:1rem;font-weight:600;text-decoration:none;word-break:break-word;cursor:pointer;border:2px solid rgb(225, 227, 230);border-radius:4px;transition:background-color 150ms 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(228, 228, 230)}.duet-theme-turva.sc-duet-choice .info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:rgb(228, 228, 230)}.duet-choice-label.sc-duet-choice:not(.no-hover):hover{border-color:rgb(144, 149, 153)}.duet-choice-label.sc-duet-choice:not(.no-hover):hover .duet-checkmark-container.sc-duet-choice{border-color:rgb(144, 149, 153)}.duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.no-hover):hover{border-color:rgb(116, 116, 117)}.duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.no-hover):hover .duet-checkmark-container.sc-duet-choice{border-color:rgb(116, 116, 117)}.duet-theme-turva.sc-duet-choice .info.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.no-hover):hover{border-color:rgb(116, 116, 117)}.duet-choice-label.sc-duet-choice:active{opacity:0.75;transition:none !important}.checked.sc-duet-choice .duet-choice-label.sc-duet-choice{color:rgb(0, 119, 179) !important;background:rgb(243, 249, 252);border-color:rgb(0, 119, 179) !important}.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{color:rgb(23, 28, 58) !important;background:rgb(245, 245, 247);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{border-bottom:0 !important;border-bottom-right-radius:0;border-bottom-left-radius:0}input.sc-duet-choice:focus{outline:0}.user-is-tabbing.sc-duet-choice-h input.sc-duet-choice:checked:focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3)}.user-is-tabbing.sc-duet-choice-h 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 rgb(0, 119, 179)}.user-is-tabbing.duet-theme-turva.sc-duet-choice-h input.sc-duet-choice:checked:focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2)}.user-is-tabbing.duet-theme-turva.sc-duet-choice-h 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 rgb(23, 28, 58)}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{color:rgb(101, 119, 135) !important;cursor:default !important;background:rgb(245, 248, 250) !important;border-color:rgb(225, 227, 230) !important}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-checkmark.sc-duet-choice{border-color:rgb(101, 119, 135) !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(116, 116, 117) !important;background:rgb(245, 245, 247) !important;border-color:rgb(228, 228, 230) !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(116, 116, 117) !important}.checked.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{background:rgb(225, 227, 230) !important;border-color:rgb(225, 227, 230) !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{background:rgb(228, 228, 230) !important;border-color:rgb(228, 228, 230) !important}.duet-checkmark-container.sc-duet-choice{position:relative;width:20px;height:20px;margin-left:auto;border:1px solid rgb(144, 149, 153);border-radius:4px;transition:border 300ms ease}.duet-theme-turva.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(116, 116, 117)}.checked.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-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{border-color:rgb(207, 210, 212) !important}.duet-theme-turva.sc-duet-choice [disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(207, 207, 209) !important}.checked.sc-duet-choice [disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(207, 210, 212) !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(207, 207, 209) !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}.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;z-index:200;width:100%;font-weight:400;color:rgb(0, 41, 77);border:2px solid rgb(225, 227, 230);border-top:0;border-radius:0 0 4px 4px}@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:2px solid rgb(0, 119, 179);border-top:0}.duet-choice-card-collapsible.duet-theme-turva.sc-duet-choice{background:rgb(255, 255, 255);border-color:rgb(23, 28, 58)}.duet-choice-card-collapsible-disabled.sc-duet-choice{background:rgb(245, 248, 250);border-color:rgb(225, 227, 230)}.duet-choice-card-collapsible-disabled.duet-theme-turva.sc-duet-choice{background:rgb(245, 245, 247);border-color:rgb(228, 228, 230)}.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, 245, 247);border-color:rgb(228, 228, 230)}.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:2px solid rgb(225, 227, 230);border-left:0 none;border-top-right-radius:4px;border-bottom-right-radius:4px;-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-choice-info-toggle[disabled].sc-duet-choice{pointer-events:none;background:rgb(245, 248, 250) !important;border-color:rgb(225, 227, 230) !important}.duet-choice-info-toggle[disabled].sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(144, 149, 153) !important}.duet-choice-info-toggle[disabled].duet-theme-turva.sc-duet-choice{background:rgb(245, 245, 247) !important;border-color:rgb(228, 228, 230) !important}.duet-choice-info-toggle[disabled].duet-theme-turva.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(116, 116, 117) !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 rgb(0, 119, 179)}.duet-choice-label.sc-duet-choice:not(.no-hover):hover .duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(144, 149, 153)}.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)}.duet-choice-input.sc-duet-choice{position:absolute !important;width:100%;height:100%;opacity:0}';const v=":scope duet-choice:not(:scope duet-choice duet-choice-group duet-choice):not(:scope duet-choice duet-fieldset duet-choice)",x=class{constructor(t){e(this,t),this.choiceGroupName="duet-choice-group",this.getChoices=()=>Array.from(this.element.querySelectorAll(v)),this.isMyChoice=e=>this.getChoices().includes(e),this.onSelect=e=>{if("duet-choice"!==e.detail.component)return;const t=e.target;t&&this.isMyChoice(t)&&(this.value=t.value),e.cancelBubble=!0},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}async connectedCallback(){const e=this.element;if(void 0===this.value){const t=m(e,v);void 0!==t&&(await t.componentOnReady(),void 0===this.value&&(this.value=t.value))}this.mutationO=k(e,v,(e=>{void 0!==e?e.componentOnReady().then((()=>{this.isMyChoice(e)&&(this.value=e.value)})):this.updateChoices()})),this.updateChoices()}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0)}componentWillLoad(){h(this)}async updateChoices(){const e=this.getChoices(),{value:t}=this;let c=!1;for(const i of e)i.name=this.name,i.groupDisabled=this.disabled,i.groupDirection=this.direction,i.groupResponsive=this.responsive,c||i.value!==t?i.checked=!1:(c=!0,i.checked=!0);c||(this.value=void 0)}render(){return c(i,{onDuetChange:this.onSelect,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}},c("duet-fieldset",{label:this.label,labelHidden:this.labelHidden,caption:this.caption,error:this.error,margin:this.margin,theme:this.theme},this.tooltip&&c("duet-tooltip",{slot:"tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),c("div",{class:{[this.choiceGroupName]:!0,"duet-no-stacking":!this.responsive}},c("slot",null))))}get element(){return o(this)}static get watchers(){return{value:["updateChoices"],disabled:["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{f as duet_choice,x as duet_choice_group}