@duetds/components 8.0.0 → 8.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (819) hide show
  1. package/hydrate/index.js +1 -220
  2. package/lib/cjs/duet-action-button.cjs.entry.js +1 -5
  3. package/lib/cjs/duet-alert.cjs.entry.js +2 -5
  4. package/lib/cjs/duet-badge.cjs.entry.js +1 -5
  5. package/lib/cjs/duet-banner.cjs.entry.js +1 -5
  6. package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -5
  7. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
  8. package/lib/cjs/duet-button_2.cjs.entry.js +1 -5
  9. package/lib/cjs/duet-callout.cjs.entry.js +1 -5
  10. package/lib/cjs/duet-caption_4.cjs.entry.js +1 -14
  11. package/lib/cjs/duet-card.cjs.entry.js +1 -5
  12. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -5
  13. package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
  14. package/lib/cjs/duet-chip.cjs.entry.js +1 -5
  15. package/lib/cjs/duet-choice_2.cjs.entry.js +2 -9
  16. package/lib/cjs/duet-collapsible.cjs.entry.js +1 -5
  17. package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
  18. package/lib/cjs/duet-contact-card.cjs.entry.js +1 -5
  19. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -5
  20. package/lib/cjs/duet-date-picker.cjs.entry.js +2 -6
  21. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  22. package/lib/cjs/duet-editable-table_3.cjs.entry.js +1 -8
  23. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -5
  24. package/lib/cjs/duet-fieldset.cjs.entry.js +1 -5
  25. package/lib/cjs/duet-footer.cjs.entry.js +1 -5
  26. package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
  27. package/lib/cjs/duet-header_2.cjs.entry.js +1 -5
  28. package/lib/cjs/duet-hero.cjs.entry.js +1 -5
  29. package/lib/cjs/duet-icon.cjs.entry.js +1 -5
  30. package/lib/cjs/duet-input_2.cjs.entry.js +1 -6
  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 -5
  34. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -5
  35. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -5
  36. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -5
  37. package/lib/cjs/duet-menu-bar.cjs.entry.js +1 -3
  38. package/lib/cjs/duet-modal.cjs.entry.js +2 -4
  39. package/lib/cjs/duet-multiselect.cjs.entry.js +1 -5
  40. package/lib/cjs/duet-nav.cjs.entry.js +1 -1
  41. package/lib/cjs/duet-notification_2.cjs.entry.js +1 -8
  42. package/lib/cjs/duet-number-input.cjs.entry.js +1 -5
  43. package/lib/cjs/duet-page-heading.cjs.entry.js +1 -5
  44. package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -4
  45. package/lib/cjs/duet-popup-menu-item.cjs.entry.js +1 -5
  46. package/lib/cjs/duet-popup-menu.cjs.entry.js +1 -1
  47. package/lib/cjs/duet-progress.cjs.entry.js +1 -5
  48. package/lib/cjs/duet-promo-card.cjs.entry.js +1 -5
  49. package/lib/cjs/duet-radio_2.cjs.entry.js +1 -5
  50. package/lib/cjs/duet-range-slider.cjs.entry.js +1 -5
  51. package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -7
  52. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
  53. package/lib/cjs/duet-select.cjs.entry.js +1 -5
  54. package/lib/cjs/duet-shaped-image.cjs.entry.js +1 -1
  55. package/lib/cjs/duet-show-more.cjs.entry.js +1 -5
  56. package/lib/cjs/duet-slideout-lang.cjs.entry.js +1 -5
  57. package/lib/cjs/duet-slideout-link.cjs.entry.js +1 -5
  58. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -5
  59. package/lib/cjs/duet-slideout-panel.cjs.entry.js +2 -6
  60. package/lib/cjs/duet-slideout.cjs.entry.js +2 -4
  61. package/lib/cjs/duet-step_2.cjs.entry.js +1 -8
  62. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -5
  63. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +1 -5
  64. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -5
  65. package/lib/cjs/duet-submenu-bar.cjs.entry.js +1 -5
  66. package/lib/cjs/duet-textarea.cjs.entry.js +1 -5
  67. package/lib/cjs/duet-toggle.cjs.entry.js +1 -5
  68. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -5
  69. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -5
  70. package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -5
  71. package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
  72. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +2 -9
  73. package/lib/cjs/duet-tooltip.cjs.entry.js +1 -3
  74. package/lib/cjs/duet-tray.cjs.entry.js +1 -5
  75. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -8
  76. package/lib/cjs/duet-upload-item.cjs.entry.js +1 -5
  77. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -5
  78. package/lib/cjs/duet.cjs.js +1 -1
  79. package/lib/cjs/{focus-utils-cc0e6f8e.js → focus-utils-66656094.js} +1 -1
  80. package/lib/cjs/{index-83a4e16a.js → index-780310fa.js} +1 -1
  81. package/lib/cjs/loader.cjs.js +1 -1
  82. package/lib/collection/components/duet-action-button/duet-action-button.js +2 -6
  83. package/lib/collection/components/duet-alert/duet-alert.js +2 -5
  84. package/lib/collection/components/duet-badge/duet-badge.js +0 -4
  85. package/lib/collection/components/duet-banner/duet-banner.js +0 -4
  86. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +0 -4
  87. package/lib/collection/components/duet-button/duet-button.js +5 -9
  88. package/lib/collection/components/duet-callout/duet-callout.js +0 -4
  89. package/lib/collection/components/duet-caption/duet-caption.js +1 -5
  90. package/lib/collection/components/duet-card/duet-card.js +3 -7
  91. package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -7
  92. package/lib/collection/components/duet-chip/duet-chip.js +4 -8
  93. package/lib/collection/components/duet-choice/duet-choice.js +3 -7
  94. package/lib/collection/components/duet-choice-group/duet-choice-group.js +0 -4
  95. package/lib/collection/components/duet-collapsible/duet-collapsible.js +3 -7
  96. package/lib/collection/components/duet-combobox/duet-combobox.js +3 -3
  97. package/lib/collection/components/duet-contact-card/duet-contact-card.js +0 -4
  98. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -5
  99. package/lib/collection/components/duet-date-picker/duet-date-picker.js +4 -8
  100. package/lib/collection/components/duet-divider/duet-divider.js +1 -1
  101. package/lib/collection/components/duet-editable-table/duet-editable-table.js +5 -9
  102. package/lib/collection/components/duet-empty-state/duet-empty-state.js +1 -5
  103. package/lib/collection/components/duet-fieldset/duet-fieldset.js +0 -4
  104. package/lib/collection/components/duet-footer/duet-footer.js +7 -11
  105. package/lib/collection/components/duet-grid/duet-grid.js +3 -3
  106. package/lib/collection/components/duet-header/duet-header.js +15 -19
  107. package/lib/collection/components/duet-heading/duet-heading.js +1 -5
  108. package/lib/collection/components/duet-hero/duet-hero.js +5 -9
  109. package/lib/collection/components/duet-icon/duet-icon.js +1 -5
  110. package/lib/collection/components/duet-input/duet-input.js +8 -10
  111. package/lib/collection/components/duet-label/duet-label.js +2 -6
  112. package/lib/collection/components/duet-layout/duet-layout.js +1 -1
  113. package/lib/collection/components/duet-link/duet-link.js +0 -4
  114. package/lib/collection/components/duet-list/duet-list.js +3 -3
  115. package/lib/collection/components/duet-logo/duet-logo.js +1 -1
  116. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +1 -3
  117. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +0 -4
  118. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +0 -4
  119. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +0 -4
  120. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +0 -4
  121. package/lib/collection/components/duet-modal/duet-modal.js +3 -5
  122. package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -9
  123. package/lib/collection/components/duet-notification/duet-notification.js +0 -4
  124. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +1 -5
  125. package/lib/collection/components/duet-number-input/duet-number-input.js +4 -8
  126. package/lib/collection/components/duet-page-heading/duet-page-heading.js +0 -4
  127. package/lib/collection/components/duet-pagination/duet-pagination.js +2 -4
  128. package/lib/collection/components/duet-paragraph/duet-paragraph.js +3 -7
  129. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +1 -1
  130. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -6
  131. package/lib/collection/components/duet-progress/duet-progress.js +0 -4
  132. package/lib/collection/components/duet-promo-card/duet-promo-card.js +0 -4
  133. package/lib/collection/components/duet-radio/duet-radio.js +3 -3
  134. package/lib/collection/components/duet-radio-group/duet-radio-group.js +0 -4
  135. package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -6
  136. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +1 -3
  137. package/lib/collection/components/duet-scrollable/duet-scrollable.js +0 -2
  138. package/lib/collection/components/duet-select/duet-select.js +5 -9
  139. package/lib/collection/components/duet-show-more/duet-show-more.js +1 -5
  140. package/lib/collection/components/duet-slideout/duet-slideout.js +1 -3
  141. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +0 -4
  142. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +0 -4
  143. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +0 -4
  144. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +0 -4
  145. package/lib/collection/components/duet-spacer/duet-spacer.js +2 -2
  146. package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
  147. package/lib/collection/components/duet-step/duet-step.js +2 -6
  148. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -5
  149. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +0 -4
  150. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +0 -4
  151. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +0 -4
  152. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +0 -4
  153. package/lib/collection/components/duet-tab/duet-tab.js +0 -4
  154. package/lib/collection/components/duet-tab-group/duet-tab-group.js +5 -7
  155. package/lib/collection/components/duet-textarea/duet-textarea.js +4 -8
  156. package/lib/collection/components/duet-toggle/duet-toggle.js +1 -5
  157. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +0 -4
  158. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +0 -4
  159. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +0 -4
  160. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +0 -4
  161. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +0 -4
  162. package/lib/collection/components/duet-tooltip/duet-tooltip.js +1 -3
  163. package/lib/collection/components/duet-tray/duet-tray.js +0 -4
  164. package/lib/collection/components/duet-upload/duet-upload.js +14 -18
  165. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +0 -7
  166. package/lib/collection/components/duet-upload-item/duet-upload-item.js +1 -5
  167. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +0 -4
  168. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  169. package/lib/dist-custom-elements/duet-alert.js +1 -1
  170. package/lib/dist-custom-elements/duet-badge.js +1 -1
  171. package/lib/dist-custom-elements/duet-banner.js +4 -8
  172. package/lib/dist-custom-elements/duet-breadcrumb.js +2 -6
  173. package/lib/dist-custom-elements/duet-breadcrumbs.js +1 -1
  174. package/lib/dist-custom-elements/duet-button.js +1 -1
  175. package/lib/dist-custom-elements/duet-callout.js +3 -7
  176. package/lib/dist-custom-elements/duet-caption.js +1 -1
  177. package/lib/dist-custom-elements/duet-card.js +3 -7
  178. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  179. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  180. package/lib/dist-custom-elements/duet-chip.js +2 -6
  181. package/lib/dist-custom-elements/duet-choice-group.js +8 -12
  182. package/lib/dist-custom-elements/duet-choice.js +5 -9
  183. package/lib/dist-custom-elements/duet-collapsible.js +2 -6
  184. package/lib/dist-custom-elements/duet-combobox.js +2 -2
  185. package/lib/dist-custom-elements/duet-contact-card.js +8 -12
  186. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -10
  187. package/lib/dist-custom-elements/duet-date-picker.js +12 -16
  188. package/lib/dist-custom-elements/duet-divider.js +1 -1
  189. package/lib/dist-custom-elements/duet-editable-table.js +7 -11
  190. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  191. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  192. package/lib/dist-custom-elements/duet-footer.js +4 -8
  193. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  194. package/lib/dist-custom-elements/duet-grid.js +1 -1
  195. package/lib/dist-custom-elements/duet-header.js +8 -12
  196. package/lib/dist-custom-elements/duet-heading.js +1 -1
  197. package/lib/dist-custom-elements/duet-hero.js +9 -13
  198. package/lib/dist-custom-elements/duet-icon.js +1 -1
  199. package/lib/dist-custom-elements/duet-input.js +1 -1
  200. package/lib/dist-custom-elements/duet-label.js +1 -1
  201. package/lib/dist-custom-elements/duet-layout.js +1 -1
  202. package/lib/dist-custom-elements/duet-link.js +1 -1
  203. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  204. package/lib/dist-custom-elements/duet-list.js +1 -1
  205. package/lib/dist-custom-elements/duet-logo.js +1 -1
  206. package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -6
  207. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -6
  208. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -6
  209. package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -6
  210. package/lib/dist-custom-elements/duet-menu-bar.js +2 -4
  211. package/lib/dist-custom-elements/duet-modal.js +7 -9
  212. package/lib/dist-custom-elements/duet-multiselect.js +10 -14
  213. package/lib/dist-custom-elements/duet-nav.js +1 -1
  214. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -8
  215. package/lib/dist-custom-elements/duet-notification.js +2 -6
  216. package/lib/dist-custom-elements/duet-number-input.js +11 -15
  217. package/lib/dist-custom-elements/duet-page-heading.js +2 -6
  218. package/lib/dist-custom-elements/duet-pagination.js +13 -15
  219. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  220. package/lib/dist-custom-elements/duet-popup-menu-item.js +2 -6
  221. package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
  222. package/lib/dist-custom-elements/duet-progress.js +1 -1
  223. package/lib/dist-custom-elements/duet-promo-card.js +3 -7
  224. package/lib/dist-custom-elements/duet-radio-group.js +8 -12
  225. package/lib/dist-custom-elements/duet-radio.js +1 -1
  226. package/lib/dist-custom-elements/duet-range-slider.js +2 -6
  227. package/lib/dist-custom-elements/duet-range-stepper.js +4 -6
  228. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  229. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  230. package/lib/dist-custom-elements/duet-select.js +1 -1
  231. package/lib/dist-custom-elements/duet-shaped-image.js +1 -1
  232. package/lib/dist-custom-elements/duet-show-more.js +5 -9
  233. package/lib/dist-custom-elements/duet-slideout-lang.js +2 -6
  234. package/lib/dist-custom-elements/duet-slideout-link.js +2 -6
  235. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -6
  236. package/lib/dist-custom-elements/duet-slideout-panel.js +2 -6
  237. package/lib/dist-custom-elements/duet-slideout.js +2 -4
  238. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  239. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  240. package/lib/dist-custom-elements/duet-step.js +4 -8
  241. package/lib/dist-custom-elements/duet-stepper.js +2 -6
  242. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -6
  243. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +2 -6
  244. package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -6
  245. package/lib/dist-custom-elements/duet-submenu-bar.js +2 -6
  246. package/lib/dist-custom-elements/duet-tab-group.js +13 -15
  247. package/lib/dist-custom-elements/duet-tab.js +1 -5
  248. package/lib/dist-custom-elements/duet-table.js +1 -1
  249. package/lib/dist-custom-elements/duet-textarea.js +10 -14
  250. package/lib/dist-custom-elements/duet-toggle.js +2 -6
  251. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -6
  252. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -6
  253. package/lib/dist-custom-elements/duet-toolbar-link.js +2 -6
  254. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  255. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  256. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  257. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  258. package/lib/dist-custom-elements/duet-tray.js +3 -7
  259. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  260. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  261. package/lib/dist-custom-elements/duet-upload.js +18 -22
  262. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  263. package/lib/dist-custom-elements/index.js +1 -1
  264. package/lib/dist-custom-elements/{p-0e282936.js → p-0e5f0ede.js} +5 -7
  265. package/lib/dist-custom-elements/{p-22af2160.js → p-1b3c4813.js} +1 -1
  266. package/lib/dist-custom-elements/{p-ce7a0836.js → p-231bc5cf.js} +1 -1
  267. package/lib/dist-custom-elements/{p-78b427e2.js → p-234dc8f4.js} +5 -7
  268. package/lib/dist-custom-elements/{p-ba7a34cd.js → p-27b6b841.js} +10 -14
  269. package/lib/dist-custom-elements/{p-84c65409.js → p-3d3afaae.js} +2 -6
  270. package/lib/dist-custom-elements/{p-dabae35a.js → p-3f89073c.js} +2 -9
  271. package/lib/dist-custom-elements/{p-d019896a.js → p-412f4846.js} +1 -1
  272. package/lib/dist-custom-elements/{p-d363a6c4.js → p-4d08c451.js} +2 -6
  273. package/lib/dist-custom-elements/{p-659bf49b.js → p-51734de9.js} +1 -1
  274. package/lib/dist-custom-elements/{p-6c16fe57.js → p-56b461b4.js} +1 -1
  275. package/lib/dist-custom-elements/{p-01270b45.js → p-62698106.js} +6 -9
  276. package/lib/dist-custom-elements/{p-bf9ea499.js → p-63964ed8.js} +1 -1
  277. package/lib/dist-custom-elements/{p-162263aa.js → p-63cffcb6.js} +1 -1
  278. package/lib/dist-custom-elements/{p-9e520c3a.js → p-6ff46c61.js} +3 -7
  279. package/lib/dist-custom-elements/{p-480a5be7.js → p-75cec87c.js} +1 -5
  280. package/lib/dist-custom-elements/{p-74e94bc1.js → p-790b4d17.js} +1 -1
  281. package/lib/dist-custom-elements/{p-7b274ffe.js → p-8011ee9c.js} +1 -5
  282. package/lib/dist-custom-elements/{p-8d7e2f66.js → p-84b16bb8.js} +3 -7
  283. package/lib/dist-custom-elements/{p-ef176315.js → p-8ef3a8fb.js} +1 -1
  284. package/lib/dist-custom-elements/{p-32b30c68.js → p-90e44a58.js} +4 -8
  285. package/lib/dist-custom-elements/{p-55b3b241.js → p-9cea78e2.js} +1 -1
  286. package/lib/dist-custom-elements/{p-1c02d280.js → p-a83c5173.js} +10 -12
  287. package/lib/dist-custom-elements/{p-2f3372c0.js → p-af5b70e1.js} +1 -1
  288. package/lib/dist-custom-elements/{p-a79c1568.js → p-bcbac220.js} +1 -5
  289. package/lib/dist-custom-elements/{p-24aae259.js → p-c1dbca09.js} +1 -5
  290. package/lib/dist-custom-elements/{p-6c770205.js → p-c524c1ec.js} +2 -6
  291. package/lib/dist-custom-elements/{p-d0cac9bf.js → p-c7ea14ec.js} +2 -6
  292. package/lib/dist-custom-elements/{p-71297fec.js → p-ccc0525b.js} +1 -5
  293. package/lib/dist-custom-elements/{p-8ac1057e.js → p-d07915a3.js} +3 -7
  294. package/lib/dist-custom-elements/{p-925ad8ed.js → p-df3b4525.js} +1 -5
  295. package/lib/dist-custom-elements/{p-abd29848.js → p-e28c315a.js} +1 -5
  296. package/lib/dist-custom-elements/{p-a64a4c3b.js → p-fc4ebd31.js} +8 -12
  297. package/lib/dist-custom-elements/{p-46ff61f9.js → p-fd70481d.js} +1 -5
  298. package/lib/duet/duet.esm.js +1 -1
  299. package/lib/duet/duet.js +1 -1
  300. package/lib/duet/p-0006b5d9.entry.js +4 -0
  301. package/lib/duet/p-01c4e0d2.system.entry.js +4 -0
  302. package/lib/duet/p-0425a615.system.entry.js +4 -0
  303. package/lib/duet/p-04bfa236.system.entry.js +4 -0
  304. package/lib/duet/{p-bec61f61.system.entry.js → p-060eb471.system.entry.js} +1 -1
  305. package/lib/duet/p-09dd7425.system.entry.js +4 -0
  306. package/lib/duet/{p-f35b1e67.entry.js → p-0d20f3d9.entry.js} +1 -1
  307. package/lib/duet/p-0e9e970f.system.entry.js +4 -0
  308. package/lib/duet/p-1401e524.entry.js +4 -0
  309. package/lib/duet/p-15d8afcf.system.entry.js +4 -0
  310. package/lib/duet/p-162561e0.system.entry.js +4 -0
  311. package/lib/duet/p-1890ca14.entry.js +4 -0
  312. package/lib/duet/p-1c2973e8.system.entry.js +4 -0
  313. package/lib/duet/{p-1ab09b3e.entry.js → p-22314e6f.entry.js} +1 -1
  314. package/lib/duet/p-22b174e8.system.entry.js +4 -0
  315. package/lib/duet/p-23521d15.system.entry.js +4 -0
  316. package/lib/duet/{p-ba876000.entry.js → p-24428e35.entry.js} +1 -1
  317. package/lib/duet/{p-8df0d238.system.entry.js → p-26fb144f.system.entry.js} +1 -1
  318. package/lib/duet/{p-2365860c.system.entry.js → p-285a8d84.system.entry.js} +1 -1
  319. package/lib/duet/p-2a23687b.system.entry.js +4 -0
  320. package/lib/duet/p-2a516c43.entry.js +4 -0
  321. package/lib/duet/p-2a53dac8.system.entry.js +4 -0
  322. package/lib/duet/{p-fdbe53c6.system.entry.js → p-2a9df44f.system.entry.js} +1 -1
  323. package/lib/duet/{p-439a6589.entry.js → p-2fa09b22.entry.js} +1 -1
  324. package/lib/duet/p-2fb4b111.entry.js +4 -0
  325. package/lib/duet/p-30edd295.entry.js +4 -0
  326. package/lib/duet/p-31ec5b52.entry.js +4 -0
  327. package/lib/duet/p-3211edb9.entry.js +4 -0
  328. package/lib/duet/{p-052388fa.entry.js → p-322093c6.entry.js} +1 -1
  329. package/lib/duet/p-33553884.entry.js +4 -0
  330. package/lib/duet/p-33cc5b2c.entry.js +4 -0
  331. package/lib/duet/p-350046fd.entry.js +4 -0
  332. package/lib/duet/p-35f81ca4.system.js +4 -0
  333. package/lib/duet/p-3693a90c.entry.js +4 -0
  334. package/lib/duet/p-373cf5f3.system.entry.js +4 -0
  335. package/lib/duet/p-39137beb.system.entry.js +4 -0
  336. package/lib/duet/p-3a8cad7a.system.entry.js +4 -0
  337. package/lib/duet/p-3dda03c8.entry.js +4 -0
  338. package/lib/duet/p-4192854d.entry.js +4 -0
  339. package/lib/duet/p-420e65a0.entry.js +4 -0
  340. package/lib/duet/p-4304a53a.entry.js +4 -0
  341. package/lib/duet/{p-cc833893.system.entry.js → p-47f0b173.system.entry.js} +2 -2
  342. package/lib/duet/p-485afe87.system.entry.js +4 -0
  343. package/lib/duet/p-48f614e6.entry.js +4 -0
  344. package/lib/duet/{p-f832d9f4.js → p-492a0843.js} +1 -1
  345. package/lib/duet/{p-c40681e4.system.entry.js → p-4a8b9bdf.system.entry.js} +1 -1
  346. package/lib/duet/p-4ab967fd.system.entry.js +4 -0
  347. package/lib/duet/{p-8bb82291.system.entry.js → p-4e1d0e08.system.entry.js} +1 -1
  348. package/lib/duet/p-519f358f.entry.js +4 -0
  349. package/lib/duet/p-529dba15.entry.js +4 -0
  350. package/lib/duet/p-534d9d99.system.entry.js +4 -0
  351. package/lib/duet/p-55282c06.system.entry.js +4 -0
  352. package/lib/duet/p-55e6fe9c.system.entry.js +4 -0
  353. package/lib/duet/p-5601c1da.system.entry.js +4 -0
  354. package/lib/duet/p-5996094c.system.entry.js +4 -0
  355. package/lib/duet/p-59b7a0b4.system.entry.js +4 -0
  356. package/lib/duet/p-5a98ec00.system.entry.js +4 -0
  357. package/lib/duet/{p-4b63bf44.system.entry.js → p-5e7523e0.system.entry.js} +1 -1
  358. package/lib/duet/p-6021aa8f.system.entry.js +4 -0
  359. package/lib/duet/p-603e4997.entry.js +4 -0
  360. package/lib/duet/p-6067c883.system.entry.js +4 -0
  361. package/lib/duet/{p-84a8f374.system.entry.js → p-60fe7ed5.system.entry.js} +1 -1
  362. package/lib/duet/{p-23d0d56b.entry.js → p-617c0967.entry.js} +1 -1
  363. package/lib/duet/p-6293ca6a.system.entry.js +4 -0
  364. package/lib/duet/{p-e3698acb.system.js → p-63529b85.system.js} +1 -1
  365. package/lib/duet/p-6363c2ae.system.entry.js +4 -0
  366. package/lib/duet/p-69872085.system.entry.js +4 -0
  367. package/lib/duet/p-6c06e5b0.entry.js +4 -0
  368. package/lib/duet/{p-bae4cd54.system.entry.js → p-6e768325.system.entry.js} +1 -1
  369. package/lib/duet/p-70b70b24.system.entry.js +4 -0
  370. package/lib/duet/p-7203d6cb.entry.js +4 -0
  371. package/lib/duet/p-73da97b9.entry.js +4 -0
  372. package/lib/duet/p-75be7414.system.entry.js +4 -0
  373. package/lib/duet/p-7cddf7fa.entry.js +4 -0
  374. package/lib/duet/p-7cf19325.entry.js +4 -0
  375. package/lib/duet/p-7d4d0926.entry.js +4 -0
  376. package/lib/duet/{p-23e577ac.entry.js → p-7fe5178e.entry.js} +1 -1
  377. package/lib/duet/p-80c3e3a1.entry.js +4 -0
  378. package/lib/duet/{p-77db8b7e.entry.js → p-831ca78f.entry.js} +1 -1
  379. package/lib/duet/p-84f90698.entry.js +4 -0
  380. package/lib/duet/p-85a502fd.system.entry.js +4 -0
  381. package/lib/duet/p-86b2e848.entry.js +4 -0
  382. package/lib/duet/p-872cccb9.system.entry.js +4 -0
  383. package/lib/duet/p-88230b5a.entry.js +4 -0
  384. package/lib/duet/p-8a13b5d6.entry.js +4 -0
  385. package/lib/duet/p-8a547ca4.entry.js +4 -0
  386. package/lib/duet/{p-55d8afce.entry.js → p-8b2ffad1.entry.js} +1 -1
  387. package/lib/duet/p-8d5dc152.entry.js +4 -0
  388. package/lib/duet/p-8e377844.system.entry.js +4 -0
  389. package/lib/duet/{p-74a48271.entry.js → p-8fac4d6c.entry.js} +1 -1
  390. package/lib/duet/p-902df276.entry.js +4 -0
  391. package/lib/duet/p-94a20b1a.system.entry.js +4 -0
  392. package/lib/duet/p-96d97ff0.system.entry.js +4 -0
  393. package/lib/duet/p-98e5fa0d.system.entry.js +4 -0
  394. package/lib/duet/p-9b09f1b5.system.entry.js +4 -0
  395. package/lib/duet/p-9b38ad5b.entry.js +4 -0
  396. package/lib/duet/p-9b3ba990.system.entry.js +4 -0
  397. package/lib/duet/{p-75a7542b.entry.js → p-9c8c1646.entry.js} +1 -1
  398. package/lib/duet/p-9cb61776.entry.js +4 -0
  399. package/lib/duet/p-9cd21d82.entry.js +4 -0
  400. package/lib/duet/{p-8341e3d0.js → p-9ce0052c.js} +1 -1
  401. package/lib/duet/p-9eb36ef5.entry.js +4 -0
  402. package/lib/duet/p-9f85c0bf.system.entry.js +4 -0
  403. package/lib/duet/p-9fc50bee.entry.js +4 -0
  404. package/lib/duet/p-a06f5f46.entry.js +4 -0
  405. package/lib/duet/p-a0877282.entry.js +4 -0
  406. package/lib/duet/{p-24f340af.entry.js → p-a7805231.entry.js} +1 -1
  407. package/lib/duet/p-a91e4da0.entry.js +4 -0
  408. package/lib/duet/p-ad312a9c.entry.js +4 -0
  409. package/lib/duet/p-ae66d0e5.system.entry.js +4 -0
  410. package/lib/duet/p-b0b1e787.entry.js +4 -0
  411. package/lib/duet/p-b189b25a.entry.js +4 -0
  412. package/lib/duet/p-b2f8e521.entry.js +4 -0
  413. package/lib/duet/p-b8316660.system.entry.js +4 -0
  414. package/lib/duet/p-b889959f.system.entry.js +4 -0
  415. package/lib/duet/p-baa7d58a.system.entry.js +4 -0
  416. package/lib/duet/{p-159c8e28.system.entry.js → p-bb2af2fc.system.entry.js} +1 -1
  417. package/lib/duet/p-bc09f943.system.entry.js +4 -0
  418. package/lib/duet/p-bdc404b2.entry.js +4 -0
  419. package/lib/duet/{p-8a6d783c.entry.js → p-c0203a7d.entry.js} +1 -1
  420. package/lib/duet/p-c04ac986.system.entry.js +4 -0
  421. package/lib/duet/p-c097b169.system.entry.js +4 -0
  422. package/lib/duet/p-c13939be.system.entry.js +4 -0
  423. package/lib/duet/p-c4c9407e.system.entry.js +4 -0
  424. package/lib/duet/p-c4fed7fe.system.entry.js +4 -0
  425. package/lib/duet/p-c957baf0.entry.js +4 -0
  426. package/lib/duet/p-cc150a23.entry.js +4 -0
  427. package/lib/duet/p-cc24ad5f.entry.js +4 -0
  428. package/lib/duet/p-cca3beb8.entry.js +4 -0
  429. package/lib/duet/p-cd04c25a.system.entry.js +4 -0
  430. package/lib/duet/p-cf02575f.entry.js +4 -0
  431. package/lib/duet/p-cfe7c37d.system.entry.js +4 -0
  432. package/lib/duet/p-d07d1962.entry.js +4 -0
  433. package/lib/duet/p-d3fbfb45.system.entry.js +4 -0
  434. package/lib/duet/p-d6ee5caf.system.entry.js +4 -0
  435. package/lib/duet/p-d753f503.entry.js +4 -0
  436. package/lib/duet/p-da637f8e.entry.js +4 -0
  437. package/lib/duet/p-dbaf4a89.system.entry.js +4 -0
  438. package/lib/duet/p-dc41c018.system.entry.js +4 -0
  439. package/lib/duet/p-dff82aea.entry.js +4 -0
  440. package/lib/duet/{p-1c05d649.system.js → p-e00e4eb8.system.js} +1 -1
  441. package/lib/duet/p-e0211391.entry.js +4 -0
  442. package/lib/duet/p-e10a1e54.system.entry.js +4 -0
  443. package/lib/duet/p-e1be2e2e.entry.js +4 -0
  444. package/lib/duet/p-e236d0ff.entry.js +4 -0
  445. package/lib/duet/p-e688c3c4.entry.js +4 -0
  446. package/lib/duet/p-e8576d91.system.entry.js +4 -0
  447. package/lib/duet/p-e897df9f.system.entry.js +4 -0
  448. package/lib/duet/p-eaad83ee.system.entry.js +4 -0
  449. package/lib/duet/p-ebe8a749.system.entry.js +4 -0
  450. package/lib/duet/p-ece4676f.entry.js +4 -0
  451. package/lib/duet/{p-bdfdecdf.system.entry.js → p-f1e6e170.system.entry.js} +1 -1
  452. package/lib/duet/p-f28c33ac.system.entry.js +4 -0
  453. package/lib/duet/p-f824f485.entry.js +4 -0
  454. package/lib/duet/p-fb053036.system.entry.js +4 -0
  455. package/lib/duet/p-fb87c349.system.entry.js +4 -0
  456. package/lib/duet/p-fe5ad66e.entry.js +4 -0
  457. package/lib/esm/duet-action-button.entry.js +1 -5
  458. package/lib/esm/duet-alert.entry.js +2 -5
  459. package/lib/esm/duet-badge.entry.js +1 -5
  460. package/lib/esm/duet-banner.entry.js +1 -5
  461. package/lib/esm/duet-breadcrumb.entry.js +1 -5
  462. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  463. package/lib/esm/duet-button_2.entry.js +1 -5
  464. package/lib/esm/duet-callout.entry.js +1 -5
  465. package/lib/esm/duet-caption_4.entry.js +1 -14
  466. package/lib/esm/duet-card.entry.js +1 -5
  467. package/lib/esm/duet-checkbox.entry.js +1 -5
  468. package/lib/esm/duet-checkmark.entry.js +1 -1
  469. package/lib/esm/duet-chip.entry.js +1 -5
  470. package/lib/esm/duet-choice_2.entry.js +2 -9
  471. package/lib/esm/duet-collapsible.entry.js +1 -5
  472. package/lib/esm/duet-combobox.entry.js +1 -1
  473. package/lib/esm/duet-contact-card.entry.js +1 -5
  474. package/lib/esm/duet-cookie-consent.entry.js +1 -5
  475. package/lib/esm/duet-date-picker.entry.js +2 -6
  476. package/lib/esm/duet-divider_2.entry.js +1 -1
  477. package/lib/esm/duet-editable-table_3.entry.js +1 -8
  478. package/lib/esm/duet-empty-state.entry.js +1 -5
  479. package/lib/esm/duet-fieldset.entry.js +1 -5
  480. package/lib/esm/duet-footer.entry.js +1 -5
  481. package/lib/esm/duet-grid_2.entry.js +1 -1
  482. package/lib/esm/duet-header_2.entry.js +1 -5
  483. package/lib/esm/duet-hero.entry.js +1 -5
  484. package/lib/esm/duet-icon.entry.js +1 -5
  485. package/lib/esm/duet-input_2.entry.js +1 -6
  486. package/lib/esm/duet-layout.entry.js +1 -1
  487. package/lib/esm/duet-list_2.entry.js +1 -1
  488. package/lib/esm/duet-menu-bar-button.entry.js +1 -5
  489. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -5
  490. package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -5
  491. package/lib/esm/duet-menu-bar-link.entry.js +1 -5
  492. package/lib/esm/duet-menu-bar.entry.js +1 -3
  493. package/lib/esm/duet-modal.entry.js +2 -4
  494. package/lib/esm/duet-multiselect.entry.js +1 -5
  495. package/lib/esm/duet-nav.entry.js +1 -1
  496. package/lib/esm/duet-notification_2.entry.js +1 -8
  497. package/lib/esm/duet-number-input.entry.js +1 -5
  498. package/lib/esm/duet-page-heading.entry.js +1 -5
  499. package/lib/esm/duet-pagination_2.entry.js +1 -4
  500. package/lib/esm/duet-popup-menu-item.entry.js +1 -5
  501. package/lib/esm/duet-popup-menu.entry.js +1 -1
  502. package/lib/esm/duet-progress.entry.js +1 -5
  503. package/lib/esm/duet-promo-card.entry.js +1 -5
  504. package/lib/esm/duet-radio_2.entry.js +1 -5
  505. package/lib/esm/duet-range-slider.entry.js +1 -5
  506. package/lib/esm/duet-scrollable_3.entry.js +1 -7
  507. package/lib/esm/duet-section-layout.entry.js +1 -1
  508. package/lib/esm/duet-select.entry.js +1 -5
  509. package/lib/esm/duet-shaped-image.entry.js +1 -1
  510. package/lib/esm/duet-show-more.entry.js +1 -5
  511. package/lib/esm/duet-slideout-lang.entry.js +1 -5
  512. package/lib/esm/duet-slideout-link.entry.js +1 -5
  513. package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -5
  514. package/lib/esm/duet-slideout-panel.entry.js +2 -6
  515. package/lib/esm/duet-slideout.entry.js +2 -4
  516. package/lib/esm/duet-step_2.entry.js +1 -8
  517. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -5
  518. package/lib/esm/duet-submenu-bar-dropdown.entry.js +1 -5
  519. package/lib/esm/duet-submenu-bar-link.entry.js +1 -5
  520. package/lib/esm/duet-submenu-bar.entry.js +1 -5
  521. package/lib/esm/duet-textarea.entry.js +1 -5
  522. package/lib/esm/duet-toggle.entry.js +1 -5
  523. package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -5
  524. package/lib/esm/duet-toolbar-dropdown.entry.js +1 -5
  525. package/lib/esm/duet-toolbar-link.entry.js +1 -5
  526. package/lib/esm/duet-toolbar.entry.js +1 -1
  527. package/lib/esm/duet-tooltip-button_2.entry.js +2 -9
  528. package/lib/esm/duet-tooltip.entry.js +1 -3
  529. package/lib/esm/duet-tray.entry.js +1 -5
  530. package/lib/esm/duet-upload-aria-status.entry.js +1 -8
  531. package/lib/esm/duet-upload-item.entry.js +1 -5
  532. package/lib/esm/duet-visually-hidden.entry.js +1 -5
  533. package/lib/esm/duet.js +2 -2
  534. package/lib/esm/{focus-utils-33e8d53f.js → focus-utils-35cd2abd.js} +1 -1
  535. package/lib/esm/{index-62aa2798.js → index-932c38d8.js} +1 -1
  536. package/lib/esm/loader.js +2 -2
  537. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  538. package/lib/esm-es5/duet-alert.entry.js +2 -2
  539. package/lib/esm-es5/duet-badge.entry.js +1 -1
  540. package/lib/esm-es5/duet-banner.entry.js +1 -1
  541. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  542. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  543. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  544. package/lib/esm-es5/duet-callout.entry.js +1 -1
  545. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  546. package/lib/esm-es5/duet-card.entry.js +1 -1
  547. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  548. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  549. package/lib/esm-es5/duet-chip.entry.js +1 -1
  550. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  551. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  552. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  553. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  554. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  555. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  556. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  557. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  558. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  559. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  560. package/lib/esm-es5/duet-footer.entry.js +1 -1
  561. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  562. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  563. package/lib/esm-es5/duet-hero.entry.js +1 -1
  564. package/lib/esm-es5/duet-icon.entry.js +1 -1
  565. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  566. package/lib/esm-es5/duet-layout.entry.js +1 -1
  567. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  568. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  569. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  570. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  571. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  572. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  573. package/lib/esm-es5/duet-modal.entry.js +1 -1
  574. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  575. package/lib/esm-es5/duet-nav.entry.js +1 -1
  576. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  577. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  578. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  579. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  580. package/lib/esm-es5/duet-popup-menu-item.entry.js +1 -1
  581. package/lib/esm-es5/duet-popup-menu.entry.js +1 -1
  582. package/lib/esm-es5/duet-progress.entry.js +1 -1
  583. package/lib/esm-es5/duet-promo-card.entry.js +1 -1
  584. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  585. package/lib/esm-es5/duet-range-slider.entry.js +2 -2
  586. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  587. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  588. package/lib/esm-es5/duet-select.entry.js +1 -1
  589. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  590. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  591. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  592. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  593. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  594. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  595. package/lib/esm-es5/duet-slideout.entry.js +1 -1
  596. package/lib/esm-es5/duet-step_2.entry.js +2 -2
  597. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  598. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  599. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  600. package/lib/esm-es5/duet-submenu-bar.entry.js +2 -2
  601. package/lib/esm-es5/duet-textarea.entry.js +2 -2
  602. package/lib/esm-es5/duet-toggle.entry.js +2 -2
  603. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  604. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  605. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  606. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  607. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  608. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  609. package/lib/esm-es5/duet-tray.entry.js +1 -1
  610. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  611. package/lib/esm-es5/duet-upload-item.entry.js +2 -2
  612. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  613. package/lib/esm-es5/duet.js +1 -1
  614. package/lib/esm-es5/{focus-utils-33e8d53f.js → focus-utils-35cd2abd.js} +1 -1
  615. package/lib/esm-es5/{index-62aa2798.js → index-932c38d8.js} +1 -1
  616. package/lib/esm-es5/loader.js +1 -1
  617. package/lib/types/components/duet-action-button/duet-action-button.d.ts +0 -1
  618. package/lib/types/components/duet-badge/duet-badge.d.ts +0 -1
  619. package/lib/types/components/duet-banner/duet-banner.d.ts +0 -1
  620. package/lib/types/components/duet-breadcrumbs/duet-breadcrumb.d.ts +0 -1
  621. package/lib/types/components/duet-button/duet-button.d.ts +0 -1
  622. package/lib/types/components/duet-callout/duet-callout.d.ts +0 -1
  623. package/lib/types/components/duet-caption/duet-caption.d.ts +0 -1
  624. package/lib/types/components/duet-card/duet-card.d.ts +0 -1
  625. package/lib/types/components/duet-checkbox/duet-checkbox.d.ts +0 -1
  626. package/lib/types/components/duet-chip/duet-chip.d.ts +0 -1
  627. package/lib/types/components/duet-choice/duet-choice.d.ts +0 -1
  628. package/lib/types/components/duet-choice-group/duet-choice-group.d.ts +0 -1
  629. package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +0 -1
  630. package/lib/types/components/duet-contact-card/duet-contact-card.d.ts +0 -1
  631. package/lib/types/components/duet-cookie-consent/duet-cookie-consent.d.ts +0 -1
  632. package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +0 -1
  633. package/lib/types/components/duet-editable-table/duet-editable-table.d.ts +0 -1
  634. package/lib/types/components/duet-empty-state/duet-empty-state.d.ts +0 -1
  635. package/lib/types/components/duet-fieldset/duet-fieldset.d.ts +0 -1
  636. package/lib/types/components/duet-footer/duet-footer.d.ts +0 -1
  637. package/lib/types/components/duet-header/duet-header.d.ts +0 -1
  638. package/lib/types/components/duet-heading/duet-heading.d.ts +0 -1
  639. package/lib/types/components/duet-hero/duet-hero.d.ts +0 -1
  640. package/lib/types/components/duet-icon/duet-icon.d.ts +0 -1
  641. package/lib/types/components/duet-label/duet-label.d.ts +0 -1
  642. package/lib/types/components/duet-link/duet-link.d.ts +0 -1
  643. package/lib/types/components/duet-menu-bar-button/duet-menu-bar-button.d.ts +0 -1
  644. package/lib/types/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.d.ts +0 -1
  645. package/lib/types/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.d.ts +0 -1
  646. package/lib/types/components/duet-menu-bar-link/duet-menu-bar-link.d.ts +0 -1
  647. package/lib/types/components/duet-multiselect/duet-multiselect.d.ts +0 -1
  648. package/lib/types/components/duet-notification/duet-notification.d.ts +0 -1
  649. package/lib/types/components/duet-notification-drawer/duet-notification-drawer.d.ts +0 -1
  650. package/lib/types/components/duet-number-input/duet-number-input.d.ts +0 -1
  651. package/lib/types/components/duet-page-heading/duet-page-heading.d.ts +0 -1
  652. package/lib/types/components/duet-paragraph/duet-paragraph.d.ts +0 -1
  653. package/lib/types/components/duet-popup-menu-item/duet-popup-menu-item.d.ts +0 -1
  654. package/lib/types/components/duet-progress/duet-progress.d.ts +0 -1
  655. package/lib/types/components/duet-promo-card/duet-promo-card.d.ts +0 -1
  656. package/lib/types/components/duet-radio-group/duet-radio-group.d.ts +0 -1
  657. package/lib/types/components/duet-range-slider/duet-range-slider.d.ts +0 -1
  658. package/lib/types/components/duet-select/duet-select.d.ts +0 -1
  659. package/lib/types/components/duet-show-more/duet-show-more.d.ts +0 -1
  660. package/lib/types/components/duet-slideout-lang/duet-slideout-lang.d.ts +0 -1
  661. package/lib/types/components/duet-slideout-link/duet-slideout-link.d.ts +0 -1
  662. package/lib/types/components/duet-slideout-panel/duet-slideout-panel.d.ts +0 -1
  663. package/lib/types/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.d.ts +0 -1
  664. package/lib/types/components/duet-step/duet-step.d.ts +0 -1
  665. package/lib/types/components/duet-stepper/duet-stepper.d.ts +0 -1
  666. package/lib/types/components/duet-submenu-bar/duet-submenu-bar.d.ts +0 -1
  667. package/lib/types/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.d.ts +0 -1
  668. package/lib/types/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.d.ts +0 -1
  669. package/lib/types/components/duet-submenu-bar-link/duet-submenu-bar-link.d.ts +0 -1
  670. package/lib/types/components/duet-tab/duet-tab.d.ts +0 -1
  671. package/lib/types/components/duet-textarea/duet-textarea.d.ts +0 -1
  672. package/lib/types/components/duet-toggle/duet-toggle.d.ts +0 -1
  673. package/lib/types/components/duet-toolbar-dropdown/duet-toolbar-dropdown.d.ts +0 -1
  674. package/lib/types/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.d.ts +0 -1
  675. package/lib/types/components/duet-toolbar-link/duet-toolbar-link.d.ts +0 -1
  676. package/lib/types/components/duet-tooltip/duet-tooltip-button.d.ts +0 -1
  677. package/lib/types/components/duet-tooltip/duet-tooltip-popup.d.ts +0 -1
  678. package/lib/types/components/duet-tray/duet-tray.d.ts +0 -1
  679. package/lib/types/components/duet-upload/duet-upload.d.ts +0 -1
  680. package/lib/types/components/duet-upload-aria-status/duet-upload-aria-status.d.ts +0 -4
  681. package/lib/types/components/duet-upload-item/duet-upload-item.d.ts +0 -1
  682. package/lib/types/components/duet-visually-hidden/duet-visually-hidden.d.ts +0 -1
  683. package/package.json +5 -5
  684. package/lib/cjs/nudge-84818dad.js +0 -15
  685. package/lib/collection/utils/nudge.js +0 -11
  686. package/lib/dist-custom-elements/p-432baa8a.js +0 -13
  687. package/lib/duet/p-049a6e11.system.entry.js +0 -4
  688. package/lib/duet/p-0521fafd.system.entry.js +0 -4
  689. package/lib/duet/p-0717c4c7.entry.js +0 -4
  690. package/lib/duet/p-080eb720.system.entry.js +0 -4
  691. package/lib/duet/p-0a29f14a.entry.js +0 -4
  692. package/lib/duet/p-0c40e7e7.system.entry.js +0 -4
  693. package/lib/duet/p-11dba68c.system.entry.js +0 -4
  694. package/lib/duet/p-155b532a.system.js +0 -4
  695. package/lib/duet/p-1b446001.system.entry.js +0 -4
  696. package/lib/duet/p-1fcdd1b4.system.entry.js +0 -4
  697. package/lib/duet/p-216daf71.system.entry.js +0 -4
  698. package/lib/duet/p-22879034.system.entry.js +0 -4
  699. package/lib/duet/p-25ce6276.entry.js +0 -4
  700. package/lib/duet/p-278295a6.entry.js +0 -4
  701. package/lib/duet/p-2b18fb02.entry.js +0 -4
  702. package/lib/duet/p-2c360aa2.entry.js +0 -4
  703. package/lib/duet/p-2f7f41b7.entry.js +0 -4
  704. package/lib/duet/p-307ad618.entry.js +0 -4
  705. package/lib/duet/p-32128bec.system.entry.js +0 -4
  706. package/lib/duet/p-33842a71.system.entry.js +0 -4
  707. package/lib/duet/p-3432e6d7.entry.js +0 -4
  708. package/lib/duet/p-3452a600.system.entry.js +0 -4
  709. package/lib/duet/p-3636a303.entry.js +0 -4
  710. package/lib/duet/p-36625239.entry.js +0 -4
  711. package/lib/duet/p-36e2660a.system.entry.js +0 -4
  712. package/lib/duet/p-373da7e9.system.entry.js +0 -4
  713. package/lib/duet/p-3823931d.system.entry.js +0 -4
  714. package/lib/duet/p-3a8e9b7d.entry.js +0 -4
  715. package/lib/duet/p-3da3807f.entry.js +0 -4
  716. package/lib/duet/p-3e12c85b.entry.js +0 -4
  717. package/lib/duet/p-3ef4e70b.system.entry.js +0 -4
  718. package/lib/duet/p-432baa8a.js +0 -4
  719. package/lib/duet/p-43b5a747.system.entry.js +0 -4
  720. package/lib/duet/p-46007ea5.system.entry.js +0 -4
  721. package/lib/duet/p-4a8c2fbd.entry.js +0 -4
  722. package/lib/duet/p-4d457562.entry.js +0 -4
  723. package/lib/duet/p-4d469e8a.entry.js +0 -4
  724. package/lib/duet/p-4dee86cc.system.entry.js +0 -4
  725. package/lib/duet/p-4f387d8d.system.entry.js +0 -4
  726. package/lib/duet/p-55daf42a.entry.js +0 -4
  727. package/lib/duet/p-579599b1.entry.js +0 -4
  728. package/lib/duet/p-597b4abf.system.entry.js +0 -4
  729. package/lib/duet/p-5988794d.system.entry.js +0 -4
  730. package/lib/duet/p-5cf4e9fa.entry.js +0 -4
  731. package/lib/duet/p-5d2d1ee9.entry.js +0 -4
  732. package/lib/duet/p-6099439d.entry.js +0 -4
  733. package/lib/duet/p-60e24406.entry.js +0 -4
  734. package/lib/duet/p-64ae892b.entry.js +0 -4
  735. package/lib/duet/p-655c5ef8.system.entry.js +0 -4
  736. package/lib/duet/p-657d12c6.system.entry.js +0 -4
  737. package/lib/duet/p-68eefbc0.entry.js +0 -4
  738. package/lib/duet/p-6a28213a.entry.js +0 -4
  739. package/lib/duet/p-6c0a2ef4.entry.js +0 -4
  740. package/lib/duet/p-6c13d426.entry.js +0 -4
  741. package/lib/duet/p-6c20accb.entry.js +0 -4
  742. package/lib/duet/p-6d35c23c.system.entry.js +0 -4
  743. package/lib/duet/p-70688378.entry.js +0 -4
  744. package/lib/duet/p-71a45359.system.entry.js +0 -4
  745. package/lib/duet/p-73093b97.entry.js +0 -4
  746. package/lib/duet/p-76bdf878.system.entry.js +0 -4
  747. package/lib/duet/p-77c137be.entry.js +0 -4
  748. package/lib/duet/p-77de34a7.entry.js +0 -4
  749. package/lib/duet/p-78958e35.system.entry.js +0 -4
  750. package/lib/duet/p-78dce48d.entry.js +0 -4
  751. package/lib/duet/p-7bcb3908.system.entry.js +0 -4
  752. package/lib/duet/p-7c19a049.entry.js +0 -4
  753. package/lib/duet/p-7d5115f0.system.entry.js +0 -4
  754. package/lib/duet/p-7db54371.system.entry.js +0 -4
  755. package/lib/duet/p-7e2f1643.system.entry.js +0 -4
  756. package/lib/duet/p-80734ccb.entry.js +0 -4
  757. package/lib/duet/p-812b9a45.system.entry.js +0 -4
  758. package/lib/duet/p-819906af.system.entry.js +0 -4
  759. package/lib/duet/p-821002cc.system.entry.js +0 -4
  760. package/lib/duet/p-8542bb1d.entry.js +0 -4
  761. package/lib/duet/p-87d24f60.system.entry.js +0 -4
  762. package/lib/duet/p-8ab86b55.system.entry.js +0 -4
  763. package/lib/duet/p-8ac1659f.entry.js +0 -4
  764. package/lib/duet/p-8c2eb582.system.entry.js +0 -4
  765. package/lib/duet/p-8c6bc7ce.system.entry.js +0 -4
  766. package/lib/duet/p-8dbc6fec.system.entry.js +0 -4
  767. package/lib/duet/p-923302a6.entry.js +0 -4
  768. package/lib/duet/p-92f87d29.system.entry.js +0 -4
  769. package/lib/duet/p-94260821.entry.js +0 -4
  770. package/lib/duet/p-95e2628e.entry.js +0 -4
  771. package/lib/duet/p-973db87a.system.entry.js +0 -4
  772. package/lib/duet/p-97db51fd.system.entry.js +0 -4
  773. package/lib/duet/p-9dd2e8b7.entry.js +0 -4
  774. package/lib/duet/p-9f11fac6.system.entry.js +0 -4
  775. package/lib/duet/p-a077314f.system.entry.js +0 -4
  776. package/lib/duet/p-a36d79bb.system.entry.js +0 -4
  777. package/lib/duet/p-a834b129.system.entry.js +0 -4
  778. package/lib/duet/p-a83f7b5d.entry.js +0 -4
  779. package/lib/duet/p-abe3d970.system.entry.js +0 -4
  780. package/lib/duet/p-adf27b5b.entry.js +0 -4
  781. package/lib/duet/p-aec26ab1.system.entry.js +0 -4
  782. package/lib/duet/p-b0f26d1f.entry.js +0 -4
  783. package/lib/duet/p-b5b09897.system.entry.js +0 -4
  784. package/lib/duet/p-b8873438.entry.js +0 -4
  785. package/lib/duet/p-bc56ef14.entry.js +0 -4
  786. package/lib/duet/p-bc6b41df.entry.js +0 -4
  787. package/lib/duet/p-bd190b40.system.entry.js +0 -4
  788. package/lib/duet/p-bdaebb9e.entry.js +0 -4
  789. package/lib/duet/p-bf3be553.system.entry.js +0 -4
  790. package/lib/duet/p-c078dccf.entry.js +0 -4
  791. package/lib/duet/p-c346eab9.system.entry.js +0 -4
  792. package/lib/duet/p-c4421950.entry.js +0 -4
  793. package/lib/duet/p-c531901e.entry.js +0 -4
  794. package/lib/duet/p-c67f6e71.entry.js +0 -4
  795. package/lib/duet/p-c876c531.entry.js +0 -4
  796. package/lib/duet/p-c9624ff8.system.entry.js +0 -4
  797. package/lib/duet/p-cecf203f.system.entry.js +0 -4
  798. package/lib/duet/p-cf1897db.entry.js +0 -4
  799. package/lib/duet/p-d166a0ec.system.entry.js +0 -4
  800. package/lib/duet/p-d26dbeb9.entry.js +0 -4
  801. package/lib/duet/p-d3381766.system.entry.js +0 -4
  802. package/lib/duet/p-d9e7da09.system.entry.js +0 -4
  803. package/lib/duet/p-dad5df60.entry.js +0 -4
  804. package/lib/duet/p-dd8cdf29.entry.js +0 -4
  805. package/lib/duet/p-decbebf5.system.entry.js +0 -4
  806. package/lib/duet/p-dfe18019.entry.js +0 -4
  807. package/lib/duet/p-e00b5c40.system.entry.js +0 -4
  808. package/lib/duet/p-e413a6de.system.js +0 -4
  809. package/lib/duet/p-e566241e.system.entry.js +0 -4
  810. package/lib/duet/p-e854cf9d.system.entry.js +0 -4
  811. package/lib/duet/p-e9d559ff.entry.js +0 -4
  812. package/lib/duet/p-ec61f9ab.entry.js +0 -4
  813. package/lib/duet/p-ed2b16ba.system.entry.js +0 -4
  814. package/lib/duet/p-fa746683.entry.js +0 -4
  815. package/lib/duet/p-fcec1712.entry.js +0 -4
  816. package/lib/duet/p-fe1d73a7.system.entry.js +0 -4
  817. package/lib/esm/nudge-350af17e.js +0 -13
  818. package/lib/esm-es5/nudge-350af17e.js +0 -4
  819. package/lib/types/utils/nudge.d.ts +0 -7
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,i,n){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function c(e){try{d(n.next(e))}catch(e){o(e)}}function a(e){try{d(n["throw"](e))}catch(e){o(e)}}function d(e){e.done?i(e.value):r(e.value).then(c,a)}d((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,c;return c={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function a(e){return function(t){return d([e,t])}}function d(a){if(n)throw new TypeError("Generator is already executing.");while(c&&(c=0,a[0]&&(i=0)),i)try{if(n=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];r=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-62aa2798.js";import{i as inheritGlobalTheme}from"./themeable-component-fdce4fd7.js";import{c as createID}from"./create-id-2b0cd46d.js";import{n as nudge}from"./nudge-350af17e.js";var duetChipCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:8px !important;margin-bottom:12px !important;position:relative;display:inline-block;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}.duet-chip-container{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:block;width:100%;padding:1px;hyphens:none;line-height:1.1;color:rgb(0, 41, 77) !important;text-align:center;cursor:pointer;background:rgb(255, 255, 255);border-color:rgb(144, 149, 153);border-style:solid;border-width:1px;border-radius:8px;transition:background-color 300ms ease, color 300ms ease, border-color 300ms ease}.duet-chip-container.duet-p-0{padding:0 !important}.duet-chip-container.duet-m-0{margin:0 !important}.duet-chip-container.duet-theme-turva{color:rgb(23, 28, 58) !important;background:rgb(255, 255, 255);border-color:rgb(23, 28, 58)}.duet-chip-container.duet-theme-turva:hover{border-color:rgb(198, 12, 48)}.duet-chip-container:hover{padding:0 !important;border-color:rgb(0, 119, 179);border-width:2px}.duet-chip-container.duet-chip-disabled{color:rgb(101, 119, 135) !important;cursor:default;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important}.duet-chip-container.duet-chip-disabled.duet-theme-turva{color:rgb(116, 116, 117) !important;background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-disabled:hover{background:rgb(245, 248, 250);border-color:rgb(245, 248, 250)}.duet-chip-container.duet-chip-disabled:hover.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-disabled button,.duet-chip-container.duet-chip-disabled label{cursor:default}.duet-chip-container button,.duet-chip-container label{display:flex;align-items:center;width:100%;height:100%;padding:7px 16px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:600;color:rgb(0, 41, 77) !important;cursor:pointer}.duet-chip-container button:focus,.duet-chip-container label:focus{outline:none}.duet-chip-container .duet-chip-icon-container{display:flex;align-items:center;height:16px;padding:0;transition:padding 300ms ease}.duet-chip-container.duet-chip-has-icon .duet-chip-icon-container{width:24px;height:16px;padding-right:10px}.duet-chip-container.duet-chip-has-icon.duet-chip-filter-checked .duet-chip-icon-container,.duet-chip-container.duet-chip-has-icon.duet-chip-radio-checked .duet-chip-icon-container{padding-right:11px;padding-left:3px}.duet-chip-container.duet-chip-has-icon button,.duet-chip-container.duet-chip-has-icon label{padding-left:10px}.duet-chip-container.duet-chip-has-popup button,.duet-chip-container.duet-chip-has-popup label{padding-right:8px}.duet-chip-container duet-icon:not(.check-mark){width:auto;transition:width 300ms ease, transform 300ms ease;transform:scaleX(1)}.duet-chip-container duet-icon.check-mark{width:0;overflow:hidden;transition:width 300ms ease, transform 300ms ease;transform:scaleX(0)}.duet-chip-container.duet-chip-filter-checked,.duet-chip-container.duet-chip-radio-checked{background:rgb(230, 242, 248);border-color:rgb(230, 242, 248)}.duet-chip-container.duet-chip-filter-checked:hover,.duet-chip-container.duet-chip-radio-checked:hover{background:rgb(205, 229, 241);border-color:rgb(205, 229, 241)}.duet-chip-container.duet-chip-filter-checked button,.duet-chip-container.duet-chip-filter-checked label,.duet-chip-container.duet-chip-radio-checked button,.duet-chip-container.duet-chip-radio-checked label{padding-left:10px}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container,.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container{padding-right:10px}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon:not(.check-mark),.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container duet-icon:not(.check-mark){width:0;overflow:hidden;transition:width 300ms ease, transform 300ms ease;transform:scaleX(0)}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon.check-mark,.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container duet-icon.check-mark{width:auto;transition:width 300ms ease, transform 300ms ease;transform:scaleX(1)}.duet-chip-container.duet-chip-filter-checked.duet-theme-turva,.duet-chip-container.duet-chip-radio-checked.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-filter-checked.duet-theme-turva:hover,.duet-chip-container.duet-chip-radio-checked.duet-theme-turva:hover{background:rgb(228, 228, 230);border-color:rgb(228, 228, 230)}.duet-chip-container div.duet-chip-popup-disclosure{padding-right:4.5px;padding-left:12.5px}.duet-chip-container div.duet-chip-popup-disclosure duet-icon{transition:transform 300ms ease}.duet-chip-container.duet-chip-filter-popup-open{background:rgb(243, 249, 252);border-color:rgb(243, 249, 252)}.duet-chip-container.duet-chip-filter-popup-open.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-filter-popup-open .duet-chip-popup-disclosure duet-icon{transform:rotate(180deg)}.duet-chip-container.duet-chip-input{display:flex;align-items:center;padding-right:0 !important}.duet-chip-container.duet-chip-input .duet-chip-input-button{flex-grow:1}.duet-chip-container.duet-chip-input .duet-chip-remove-button{width:26px;padding:8px 16px 8px 0;margin:-8px 0}:host(.user-is-tabbing) .duet-chip-focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-chip-focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-chip-container input{position:absolute !important;top:0;left:0;z-index:-1;width:100%;height:100%;cursor:pointer;opacity:0}';var DuetChip=function(){function e(e){var t=this;registerInstance(this,e);this.duetChange=createEvent(this,"duetChange",3);this.duetFocus=createEvent(this,"duetFocus",7);this.duetBlur=createEvent(this,"duetBlur",7);this.chipId=createID("DuetChip");this.popupSetUp=function(){var e=document.querySelector("duet-popup-menu#".concat(t.popup));if(e){t.popupElement=e;e.controller=t.element;var i=t.element.textContent;var n=t.value;if(!e.id){e.id="popup-menu"}e.addEventListener("duetToggle",(function(e){t.popupOpen=e.detail.open}));var r=function(){e.querySelectorAll("duet-popup-menu-item").forEach((function(e){e.active=false}))};e.querySelectorAll("duet-popup-menu-item").forEach((function(e){e.addEventListener("click",(function(o){var c;var a=(c=e.value)!==null&&c!==void 0?c:e.innerText;if(!e.active){r();e.active=true;t.element.textContent=e.innerText;t.value=a;t.checked=true}else{r();t.element.textContent=i;t.value=n;t.checked=false}t.emitChange(o);setTimeout((function(){if(t.popupElement.isOpen()){t.popupElement.hide()}}))}))}))}};this.onFocus=function(e){t.focus=true;t.duetFocus.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-chip"})};this.onBlur=function(e){t.focus=false;t.duetBlur.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-chip"})};this.emitChange=function(e){t.duetChange.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-chip"})};this.onFilterChange=function(e){t.checked=!t.checked;t.emitChange(e)};this.onRadioChange=function(e){var i=t.focusableElement;var n=i.checked;t.checked=n;t.emitChange(e)};this.onFilterClick=function(e){if(t.disabled){e.stopPropagation();e.preventDefault();return}if(t.popupElement){e.stopPropagation();e.preventDefault();t.popupElement.toggle()}};this.onRemoveClick=function(e){e.stopPropagation();e.preventDefault();t.element.remove()};this.focus=false;this.popupElement=undefined;this.popupOpen=undefined;this.accessibleLabel=undefined;this.variation="button";this.popup=undefined;this.icon="";this.theme="";this.identifier=undefined;this.value=undefined;this.name=undefined;this.checked=false;this.disabled=false}e.prototype.clearOtherRadioButtons=function(){var e=this;if(this.variation==="radio"&&this.checked){var t=document.querySelectorAll('duet-chip[variation="radio"][name="'.concat(this.name,'"]'));t.forEach((function(t){if(t!==e.element){t.checked=false}}))}};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.popupSetUp()};e.prototype.componentDidLoad=function(){nudge()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(i){setTimeout((function(){return t.focusableElement.focus(e)}),200);return[2]}))}))};e.prototype.render=function(){var e;var t=this;var i;var n=this.identifier||this.chipId;var r=(e={"duet-chip-container":true},e["duet-chip-".concat(this.variation)]=true,e["duet-chip-focus"]=this.focus,e["duet-chip-has-icon"]=!!this.icon,e["duet-chip-has-popup"]=this.variation==="filter"&&!!this.popupElement,e["duet-theme-turva"]=this.theme==="turva",e["duet-chip-filter-checked"]=this.variation==="filter"&&this.checked,e["duet-chip-radio-checked"]=this.variation==="radio"&&this.checked,e["duet-chip-filter-popup-open"]=this.popupOpen,e["duet-chip-disabled"]=this.disabled,e);var o={onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.focusableElement=e}};return h(Host,null,this.variation==="button"&&h("div",{class:r},h("button",Object.assign({id:n,"aria-label":this.accessibleLabel,"aria-disabled":this.disabled?"true":undefined,name:this.name,value:this.value,onClick:this.disabled?function(e){return e.stopPropagation()}:undefined},o),h("div",{class:"duet-chip-icon-container"},this.icon&&h("duet-icon",{name:this.icon,size:"x-small",margin:"none",color:"currentColor"})),h("slot",null))),this.variation==="input"&&h("div",{class:r},h("button",Object.assign({id:n,class:"duet-chip-input-button","aria-label":this.accessibleLabel},o),h("div",{class:"duet-chip-icon-container"},this.icon&&h("duet-icon",{name:this.icon,size:"x-small",margin:"none",color:"currentColor"})),h("slot",null)),h("button",{class:"duet-chip-remove-button",onClick:this.onRemoveClick},h("duet-icon",{name:"activity-close",size:"xx-small",margin:"none",color:"currentColor"}))),this.variation==="filter"&&h("div",{class:r},h("input",Object.assign({"aria-haspopup":this.popupElement&&"menu","aria-controls":(i=this.popupElement)===null||i===void 0?void 0:i.id,"aria-expanded":this.popupElement?this.popupOpen?"true":"false":undefined,"aria-disabled":this.disabled?"true":undefined,id:n,type:"checkbox",name:this.name,value:this.value,checked:this.checked,onClick:this.onFilterClick,onChange:this.onFilterChange},o)),h("label",{htmlFor:n},h("div",{class:"duet-chip-icon-container"},this.icon&&h("duet-icon",{name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),h("duet-icon",{name:"messaging-checked-small",size:"xx-small",margin:"none",color:"currentColor",class:"check-mark"})),h("slot",null),this.popupElement&&h("div",{class:"duet-chip-popup-disclosure"},h("duet-icon",{name:"action-arrow-down-small",size:"xxx-small",margin:"none",color:"currentColor"})))),this.variation==="radio"&&h("div",{class:r},h("input",Object.assign({"aria-disabled":this.disabled?"true":undefined,id:n,type:"radio",name:this.name,value:this.value,checked:this.checked,onChange:this.onRadioChange,onClick:this.disabled?function(e){return e.preventDefault()}:undefined},o)),h("label",{htmlFor:n},h("div",{class:"duet-chip-icon-container"},this.icon&&h("duet-icon",{name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),h("duet-icon",{name:"messaging-checked-small",size:"xx-small",margin:"none",color:"currentColor",class:"check-mark"})),h("slot",null))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{checked:["clearOtherRadioButtons"]}},enumerable:false,configurable:true});return e}();DuetChip.style=duetChipCss;export{DuetChip as duet_chip};
4
+ */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-932c38d8.js";import{i as inheritGlobalTheme}from"./themeable-component-fdce4fd7.js";import{c as createID}from"./create-id-2b0cd46d.js";var duetChipCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:8px !important;margin-bottom:12px !important;position:relative;display:inline-block;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}.duet-chip-container{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:block;width:100%;padding:1px;hyphens:none;line-height:1.1;color:rgb(0, 41, 77) !important;text-align:center;cursor:pointer;background:rgb(255, 255, 255);border-color:rgb(144, 149, 153);border-style:solid;border-width:1px;border-radius:8px;transition:background-color 300ms ease, color 300ms ease, border-color 300ms ease}.duet-chip-container.duet-p-0{padding:0 !important}.duet-chip-container.duet-m-0{margin:0 !important}.duet-chip-container.duet-theme-turva{color:rgb(23, 28, 58) !important;background:rgb(255, 255, 255);border-color:rgb(23, 28, 58)}.duet-chip-container.duet-theme-turva:hover{border-color:rgb(198, 12, 48)}.duet-chip-container:hover{padding:0 !important;border-color:rgb(0, 119, 179);border-width:2px}.duet-chip-container.duet-chip-disabled{color:rgb(101, 119, 135) !important;cursor:default;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important}.duet-chip-container.duet-chip-disabled.duet-theme-turva{color:rgb(116, 116, 117) !important;background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-disabled:hover{background:rgb(245, 248, 250);border-color:rgb(245, 248, 250)}.duet-chip-container.duet-chip-disabled:hover.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-disabled button,.duet-chip-container.duet-chip-disabled label{cursor:default}.duet-chip-container button,.duet-chip-container label{display:flex;align-items:center;width:100%;height:100%;padding:7px 16px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:600;color:rgb(0, 41, 77) !important;cursor:pointer}.duet-chip-container button:focus,.duet-chip-container label:focus{outline:none}.duet-chip-container .duet-chip-icon-container{display:flex;align-items:center;height:16px;padding:0;transition:padding 300ms ease}.duet-chip-container.duet-chip-has-icon .duet-chip-icon-container{width:24px;height:16px;padding-right:10px}.duet-chip-container.duet-chip-has-icon.duet-chip-filter-checked .duet-chip-icon-container,.duet-chip-container.duet-chip-has-icon.duet-chip-radio-checked .duet-chip-icon-container{padding-right:11px;padding-left:3px}.duet-chip-container.duet-chip-has-icon button,.duet-chip-container.duet-chip-has-icon label{padding-left:10px}.duet-chip-container.duet-chip-has-popup button,.duet-chip-container.duet-chip-has-popup label{padding-right:8px}.duet-chip-container duet-icon:not(.check-mark){width:auto;transition:width 300ms ease, transform 300ms ease;transform:scaleX(1)}.duet-chip-container duet-icon.check-mark{width:0;overflow:hidden;transition:width 300ms ease, transform 300ms ease;transform:scaleX(0)}.duet-chip-container.duet-chip-filter-checked,.duet-chip-container.duet-chip-radio-checked{background:rgb(230, 242, 248);border-color:rgb(230, 242, 248)}.duet-chip-container.duet-chip-filter-checked:hover,.duet-chip-container.duet-chip-radio-checked:hover{background:rgb(205, 229, 241);border-color:rgb(205, 229, 241)}.duet-chip-container.duet-chip-filter-checked button,.duet-chip-container.duet-chip-filter-checked label,.duet-chip-container.duet-chip-radio-checked button,.duet-chip-container.duet-chip-radio-checked label{padding-left:10px}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container,.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container{padding-right:10px}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon:not(.check-mark),.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container duet-icon:not(.check-mark){width:0;overflow:hidden;transition:width 300ms ease, transform 300ms ease;transform:scaleX(0)}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon.check-mark,.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container duet-icon.check-mark{width:auto;transition:width 300ms ease, transform 300ms ease;transform:scaleX(1)}.duet-chip-container.duet-chip-filter-checked.duet-theme-turva,.duet-chip-container.duet-chip-radio-checked.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-filter-checked.duet-theme-turva:hover,.duet-chip-container.duet-chip-radio-checked.duet-theme-turva:hover{background:rgb(228, 228, 230);border-color:rgb(228, 228, 230)}.duet-chip-container div.duet-chip-popup-disclosure{padding-right:4.5px;padding-left:12.5px}.duet-chip-container div.duet-chip-popup-disclosure duet-icon{transition:transform 300ms ease}.duet-chip-container.duet-chip-filter-popup-open{background:rgb(243, 249, 252);border-color:rgb(243, 249, 252)}.duet-chip-container.duet-chip-filter-popup-open.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-filter-popup-open .duet-chip-popup-disclosure duet-icon{transform:rotate(180deg)}.duet-chip-container.duet-chip-input{display:flex;align-items:center;padding-right:0 !important}.duet-chip-container.duet-chip-input .duet-chip-input-button{flex-grow:1}.duet-chip-container.duet-chip-input .duet-chip-remove-button{width:26px;padding:8px 16px 8px 0;margin:-8px 0}:host(.user-is-tabbing) .duet-chip-focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-chip-focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-chip-container input{position:absolute !important;top:0;left:0;z-index:-1;width:100%;height:100%;cursor:pointer;opacity:0}';var DuetChip=function(){function e(e){var t=this;registerInstance(this,e);this.duetChange=createEvent(this,"duetChange",3);this.duetFocus=createEvent(this,"duetFocus",7);this.duetBlur=createEvent(this,"duetBlur",7);this.chipId=createID("DuetChip");this.popupSetUp=function(){var e=document.querySelector("duet-popup-menu#".concat(t.popup));if(e){t.popupElement=e;e.controller=t.element;var i=t.element.textContent;var n=t.value;if(!e.id){e.id="popup-menu"}e.addEventListener("duetToggle",(function(e){t.popupOpen=e.detail.open}));var r=function(){e.querySelectorAll("duet-popup-menu-item").forEach((function(e){e.active=false}))};e.querySelectorAll("duet-popup-menu-item").forEach((function(e){e.addEventListener("click",(function(o){var c;var a=(c=e.value)!==null&&c!==void 0?c:e.innerText;if(!e.active){r();e.active=true;t.element.textContent=e.innerText;t.value=a;t.checked=true}else{r();t.element.textContent=i;t.value=n;t.checked=false}t.emitChange(o);setTimeout((function(){if(t.popupElement.isOpen()){t.popupElement.hide()}}))}))}))}};this.onFocus=function(e){t.focus=true;t.duetFocus.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-chip"})};this.onBlur=function(e){t.focus=false;t.duetBlur.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-chip"})};this.emitChange=function(e){t.duetChange.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-chip"})};this.onFilterChange=function(e){t.checked=!t.checked;t.emitChange(e)};this.onRadioChange=function(e){var i=t.focusableElement;var n=i.checked;t.checked=n;t.emitChange(e)};this.onFilterClick=function(e){if(t.disabled){e.stopPropagation();e.preventDefault();return}if(t.popupElement){e.stopPropagation();e.preventDefault();t.popupElement.toggle()}};this.onRemoveClick=function(e){e.stopPropagation();e.preventDefault();t.element.remove()};this.focus=false;this.popupElement=undefined;this.popupOpen=undefined;this.accessibleLabel=undefined;this.variation="button";this.popup=undefined;this.icon="";this.theme="";this.identifier=undefined;this.value=undefined;this.name=undefined;this.checked=false;this.disabled=false}e.prototype.clearOtherRadioButtons=function(){var e=this;if(this.variation==="radio"&&this.checked){var t=document.querySelectorAll('duet-chip[variation="radio"][name="'.concat(this.name,'"]'));t.forEach((function(t){if(t!==e.element){t.checked=false}}))}};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.popupSetUp()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(i){setTimeout((function(){return t.focusableElement.focus(e)}),200);return[2]}))}))};e.prototype.render=function(){var e;var t=this;var i;var n=this.identifier||this.chipId;var r=(e={"duet-chip-container":true},e["duet-chip-".concat(this.variation)]=true,e["duet-chip-focus"]=this.focus,e["duet-chip-has-icon"]=!!this.icon,e["duet-chip-has-popup"]=this.variation==="filter"&&!!this.popupElement,e["duet-theme-turva"]=this.theme==="turva",e["duet-chip-filter-checked"]=this.variation==="filter"&&this.checked,e["duet-chip-radio-checked"]=this.variation==="radio"&&this.checked,e["duet-chip-filter-popup-open"]=this.popupOpen,e["duet-chip-disabled"]=this.disabled,e);var o={onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.focusableElement=e}};return h(Host,null,this.variation==="button"&&h("div",{class:r},h("button",Object.assign({id:n,"aria-label":this.accessibleLabel,"aria-disabled":this.disabled?"true":undefined,name:this.name,value:this.value,onClick:this.disabled?function(e){return e.stopPropagation()}:undefined},o),h("div",{class:"duet-chip-icon-container"},this.icon&&h("duet-icon",{name:this.icon,size:"x-small",margin:"none",color:"currentColor"})),h("slot",null))),this.variation==="input"&&h("div",{class:r},h("button",Object.assign({id:n,class:"duet-chip-input-button","aria-label":this.accessibleLabel},o),h("div",{class:"duet-chip-icon-container"},this.icon&&h("duet-icon",{name:this.icon,size:"x-small",margin:"none",color:"currentColor"})),h("slot",null)),h("button",{class:"duet-chip-remove-button",onClick:this.onRemoveClick},h("duet-icon",{name:"activity-close",size:"xx-small",margin:"none",color:"currentColor"}))),this.variation==="filter"&&h("div",{class:r},h("input",Object.assign({"aria-haspopup":this.popupElement&&"menu","aria-controls":(i=this.popupElement)===null||i===void 0?void 0:i.id,"aria-expanded":this.popupElement?this.popupOpen?"true":"false":undefined,"aria-disabled":this.disabled?"true":undefined,id:n,type:"checkbox",name:this.name,value:this.value,checked:this.checked,onClick:this.onFilterClick,onChange:this.onFilterChange},o)),h("label",{htmlFor:n},h("div",{class:"duet-chip-icon-container"},this.icon&&h("duet-icon",{name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),h("duet-icon",{name:"messaging-checked-small",size:"xx-small",margin:"none",color:"currentColor",class:"check-mark"})),h("slot",null),this.popupElement&&h("div",{class:"duet-chip-popup-disclosure"},h("duet-icon",{name:"action-arrow-down-small",size:"xxx-small",margin:"none",color:"currentColor"})))),this.variation==="radio"&&h("div",{class:r},h("input",Object.assign({"aria-disabled":this.disabled?"true":undefined,id:n,type:"radio",name:this.name,value:this.value,checked:this.checked,onChange:this.onRadioChange,onClick:this.disabled?function(e){return e.preventDefault()}:undefined},o)),h("label",{htmlFor:n},h("div",{class:"duet-chip-icon-container"},this.icon&&h("duet-icon",{name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),h("duet-icon",{name:"messaging-checked-small",size:"xx-small",margin:"none",color:"currentColor",class:"check-mark"})),h("slot",null))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{checked:["clearOtherRadioButtons"]}},enumerable:false,configurable:true});return e}();DuetChip.style=duetChipCss;export{DuetChip as duet_chip};
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,c,i){function o(e){return e instanceof c?e:new c((function(t){t(e)}))}return new(c||(c=Promise))((function(c,r){function d(e){try{s(i.next(e))}catch(e){r(e)}}function h(e){try{s(i["throw"](e))}catch(e){r(e)}}function s(e){e.done?c(e.value):o(e.value).then(d,h)}s((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var c={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,o,r,d;return d={next:h(0),throw:h(1),return:h(2)},typeof Symbol==="function"&&(d[Symbol.iterator]=function(){return this}),d;function h(e){return function(t){return s([e,t])}}function s(h){if(i)throw new TypeError("Generator is already executing.");while(d&&(d=0,h[0]&&(c=0)),c)try{if(i=1,o&&(r=h[0]&2?o["return"]:h[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,h[1])).done)return r;if(o=0,r)h=[h[0]&2,r.value];switch(h[0]){case 0:case 1:r=h;break;case 4:c.label++;return{value:h[1],done:false};case 5:c.label++;o=h[1];h=[0];continue;case 7:h=c.ops.pop();c.trys.pop();continue;default:if(!(r=c.trys,r=r.length>0&&r[r.length-1])&&(h[0]===6||h[0]===2)){c=0;continue}if(h[0]===3&&(!r||h[1]>r[0]&&h[1]<r[3])){c.label=h[1];break}if(h[0]===6&&c.label<r[1]){c.label=r[1];r=h;break}if(r&&c.label<r[2]){c.label=r[2];c.ops.push(h);break}if(r[2])c.ops.pop();c.trys.pop();continue}h=t.call(e,c)}catch(e){h=[6,e];o=0}finally{i=r=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-62aa2798.js";import{i as inheritGlobalTheme}from"./themeable-component-fdce4fd7.js";import{h as hasSlot}from"./slot-query-7877f18f.js";import{D as DuetStringsExternalDefaults}from"./common-strings-71f2aabd.js";import{c as createID}from"./create-id-2b0cd46d.js";import{F as FocusGuard}from"./focus-utils-33e8d53f.js";import{i as isKeyboardClick,h as isQuestionKey,f as isEscapeKey}from"./keyboard-utils-5746e126.js";import{g as getLocaleString,a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-9ff76444.js";import{n as nudge}from"./nudge-350af17e.js";import"./string-utils-59ad4cb2.js";var messagingInfo={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 duetChoiceCss='*.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: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,.collapsible-force-expanded.collapsible.sc-duet-choice>.duet-choice-label.sc-duet-choice{padding-bottom:calc(1rem + 2px);border-bottom:0 !important;border-bottom-right-radius:0;border-bottom-left-radius:0}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){border-color:rgb(144, 149, 153)}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked) .duet-checkmark-container.sc-duet-choice{border-color:rgb(144, 149, 153)}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){border-color:rgb(116, 116, 117)}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked) .duet-checkmark-container.sc-duet-choice{border-color:rgb(116, 116, 117)}.duet-theme-turva .info .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){border-color:rgb(116, 116, 117)}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 #0077b3}.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 #171c3a}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-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(0, 119, 179);border-color:rgb(0, 119, 179);transition:none}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(23, 28, 58);border-color:rgb(23, 28, 58) !important}.duet-checkmark-container.duet-checkmark-radio.sc-duet-choice{border-radius:50%}[disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{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;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(225, 227, 230);border-top:0}.duet-choice-card-collapsible.duet-theme-turva.sc-duet-choice{background:rgb(255, 255, 255);border-color:rgb(228, 228, 230)}.duet-choice-card-collapsible.checked.sc-duet-choice{border-color:rgb(0, 119, 179)}.duet-choice-card-collapsible.checked.duet-theme-turva.sc-duet-choice{border-color:rgb(23, 28, 58)}.duet-choice-card-collapsible-disabled.sc-duet-choice{background:rgb(245, 248, 250);border-color:rgb(225, 227, 230)}.duet-choice-card-collapsible-disabled.checked.sc-duet-choice{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-collapsible-disabled.duet-theme-turva.checked.sc-duet-choice{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-card-info.sc-duet-choice .duet-choice-info-container.sc-duet-choice:focus{outline:none}.duet-choice-card-info.duet-choice-card-collapsed .duet-choice-info-container.sc-duet-choice-s>*,.duet-choice-card-info.duet-choice-card-collapsed .duet-choice-info-container .sc-duet-choice-s>*{display:none}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-collapsible.sc-duet-choice:not(.checked){border-color:rgb(144, 149, 153)}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-collapsible.sc-duet-choice:not(.checked){border-color:rgb(116, 116, 117)}.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-theme-turva.sc-duet-choice .duet-choice-info-toggle[aria-expanded=true].sc-duet-choice{background:rgb(245, 245, 247)}.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 #0077b3}.user-is-tabbing.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.checked.sc-duet-choice+.duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(0, 119, 179) !important}.duet-choice-info-toggle.sc-duet-choice duet-icon.sc-duet-choice{display:block}.duet-choice-info-toggle.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(0, 119, 179)}.duet-theme-turva.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(198, 12, 48)}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(144, 149, 153)}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(116, 116, 117)}.duet-choice-input.sc-duet-choice{position:absolute !important;width:100%;height:100%;opacity:0}';var DuetChoice=function(){function e(e){var t=this;registerInstance(this,e);this.duetChoiceReady=createEvent(this,"duetChoiceReady",7);this.duetChoiceRemove=createEvent(this,"duetChoiceRemove",7);this.duetChange=createEvent(this,"duetChange",7);this.duetFocus=createEvent(this,"duetFocus",7);this.duetBlur=createEvent(this,"duetBlur",7);this.hasHeader=false;this.choiceId=createID("DuetChoice");this.expandId=createID("DuetChoiceExpand");this.headerId=createID("DuetChoiceHeader");this.infoButtonId=createID("DuetChoiceInfoButton");this.onMouseEnter=function(){t.isHovering=true};this.onMouseLeave=function(){t.isHovering=false};this.onClick=function(e){t.toggleChecked(e)};this.handleKeyDown=function(e){if(isKeyboardClick(e)){t.toggleChecked(e)}if(isQuestionKey(e)&&t.hasInfo){t.toggleInfo()}};this.onChange=function(){t.checked=t.nativeInput.checked||false;t.duetChange.emit({checked:t.checked,value:t.value,component:"duet-choice"})};this.onBlur=function(e){t.duetBlur.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-choice"})};this.onFocus=function(e){t.duetFocus.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-choice"})};this.toggleChecked=function(e){e.preventDefault();e.stopPropagation();if(t.getDisabled()){return}t.isInfoOpen=false;if(t.type==="radio"&&t.checked){return}t.checked=!t.checked;t.duetChange.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-choice"})};this.toggleInfo=function(){t.isInfoOpen=!t.isInfoOpen;if(t.isInfoOpen){setTimeout((function(){var e;(e=t.infoContainer)===null||e===void 0?void 0:e.focus()}))}};this.isHovering=false;this.isInfoOpen=false;this.isBlurred=false;this.theme="";this.label="label";this.accessibleLabelInfoButtonDefaults=DuetStringsExternalDefaults;this.accessibleLabelInfoButton=getLocaleString(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.collapsibleForceExpanded=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=getLocaleString(this.infoLabelDefaults,getLanguage())}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasInfo=hasSlot(this.element,"info");this.hasHeader=hasSlot(this.element,"header");this.hasAdditional=hasSlot(this.element,"additional");this.hasLabel=hasSlot(this.element,"label");this.hasBeforeText=hasSlot(this.element,"before-text");this.duetChoiceReady.emit()};e.prototype.componentDidLoad=function(){nudge()};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,[{prop:"accessibleLabelInfoButton",defaults:"accessibleLabelInfoButtonDefaults"},{prop:"infoLabel",defaults:"infoLabelDefaults"}])};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this);this.duetChoiceRemove.emit()};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(isEscapeKey(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.getDisabled=function(){return this.disabled||this.groupDisabled};e.prototype.getExpanded=function(){return this.checked||this.collapsibleForceExpanded};e.prototype.getClassNames=function(){if(this.hasInfo&&!this.collapsible){return{checked:this.checked,"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{checked:this.checked,"duet-choice-card-collapsible":true,"duet-choice-card-collapsible-expanded":this.getExpanded(),"duet-choice-card-collapsed":!this.getExpanded(),"duet-choice-card-collapsible-disabled":this.getDisabled(),"duet-theme-turva":this.theme==="turva"}}return{checked:this.checked,"duet-choice-default-slot":true}};e.prototype.render=function(){var e=this;var t=this.element.closest("duet-choice-group");var c=t?t.label:undefined;var i=this.identifier||this.choiceId;return h(Host,{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","no-hover":this.isHovering,disabled:this.getDisabled()}},h("div",{class:{"duet-choice-card-flextainer":true,"duet-theme-turva":this.theme==="turva"}},h("div",{class:{"duet-choice-card":true,"has-icon":!!this.icon,"has-info":this.hasInfo,checked:this.checked,info:this.isInfoOpen,collapsible:this.collapsible,"collapsible-force-expanded":this.collapsibleForceExpanded,"duet-p-0":this.padding==="none"}},h("input",{class:"duet-choice-input",type:this.type,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,disabled:this.getDisabled(),required:this.required,id:i,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}}),h("label",{htmlFor:i,class:{"duet-choice-label":true,"has-before-text":this.hasBeforeText},onClick:this.onClick},this.hasBeforeText&&h("slot",{name:"before-text"}),this.icon&&h("div",{class:"duet-choice-card-icon"},h("duet-icon",{margin:"none",size:"small",name:this.icon,color:"currentColor"})),h("div",{class:"duet-choice-card-text"},c&&h("duet-visually-hidden",null,c,", "),h("div",null,this.hasLabel?h("slot",{name:"label"}):this.label),this.caption&&h("div",null,h("duet-spacer",{size:"xx-small"}),h("duet-caption",{margin:"none",selected:this.checked},this.caption)),this.hasAdditional&&h("div",null,h("duet-spacer",{size:"xx-small"}),h("slot",{name:"additional"}))),h("div",null,h("div",{class:{"duet-checkmark-container":true,"duet-checkmark-radio":this.type==="radio"}},this.checked&&h("div",{class:"duet-checkmark"}))))),this.hasInfo&&!this.collapsible&&h("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.getDisabled(),"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"},h("duet-visually-hidden",{"aria-hidden":!this.isBlurred?"true":"false"},this.accessibleLabelInfoButton),h("div",{class:"duet-choice-info-icon"},h("duet-icon",{icon:messagingInfo.svg,margin:"none",size:"small",color:"currentColor"})))),this.collapsible||this.hasInfo?h("div",{class:this.getClassNames(),id:this.expandId},h("span",{class:{"duet-choice-section-visible":this.collapsible?this.getExpanded():this.isInfoOpen,"duet-choice-section-hidden":this.collapsible?!this.getExpanded():!this.isInfoOpen}},h("span",{id:this.headerId},h("slot",{name:"header"})),this.hasInfo?h("span",{ref:function(t){return e.infoContainer=t},tabindex:"0",class:"duet-choice-info-container"},h("span",{"aria-relevant":"all","aria-atomic":"true","aria-live":this.isInfoOpen?"polite":"off"},h("slot",{name:"info"})),h("slot",null)):h("span",null,h("slot",null))),this.isInfoOpen&&h(FocusGuard,{moveFocusTo:this.infoButtonEl})):null)};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetChoice.style=duetChoiceCss;var duetChoiceGroupCss="*.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 DuetChoiceGroup=function(){function e(e){var t=this;registerInstance(this,e);this.choiceGroupName="duet-choice-group";this.choices=new Set;this.onSelect=function(e){if(e.detail.component!=="duet-choice"){return}var c=e.target;if(c&&t.choices.has(c)){t.value=c.value}};this.onChoiceReady=function(e){var c=e.target;if(c.closest("duet-choice-group")===t.element&&!t.choices.has(c)){t.choices.add(c);t.updateChoices()}};this.onChoiceRemove=function(e){var c=e.target;t.choices.delete(c);t.updateChoices()};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(){return __generator(this,(function(e){this.initialValue=this.value;this.updateChoices();return[2]}))}))};e.prototype.disconnectedCallback=function(){if(this.mutationO){this.mutationO.disconnect();this.mutationO=undefined}};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.componentDidLoad=function(){nudge()};e.prototype.updateChoices=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,c,i,o,r;return __generator(this,(function(d){t=(e=this.value)!==null&&e!==void 0?e:this.initialValue;c=false;for(i=0,o=this.choices;i<o.length;i++){r=o[i];r.name=this.name;r.groupDisabled=this.disabled;r.groupDirection=this.direction;r.groupResponsive=this.responsive;if(!c&&r.value===t){c=true;r.checked=true;if(typeof this.value==="undefined"){this.value=t}}else{r.checked=false}}if(!c){this.value=undefined}return[2]}))}))};e.prototype.render=function(){var e;return h(Host,{onDuetChange:this.onSelect,onDuetChoiceReady:this.onChoiceReady,onDuetChoiceRemove:this.onChoiceRemove,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"}},h("duet-fieldset",{label:this.label,labelHidden:this.labelHidden,compactLabel:true,caption:this.caption,error:this.error,margin:this.margin,theme:this.theme},this.tooltip&&h("duet-tooltip",{slot:"tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),h("div",{class:(e={},e[this.choiceGroupName]=true,e["duet-no-stacking"]=!this.responsive,e)},h("slot",null))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(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}();DuetChoiceGroup.style=duetChoiceGroupCss;export{DuetChoice as duet_choice,DuetChoiceGroup as duet_choice_group};
4
+ */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-932c38d8.js";import{i as inheritGlobalTheme}from"./themeable-component-fdce4fd7.js";import{h as hasSlot}from"./slot-query-7877f18f.js";import{D as DuetStringsExternalDefaults}from"./common-strings-71f2aabd.js";import{c as createID}from"./create-id-2b0cd46d.js";import{F as FocusGuard}from"./focus-utils-35cd2abd.js";import{i as isKeyboardClick,h as isQuestionKey,f as isEscapeKey}from"./keyboard-utils-5746e126.js";import{g as getLocaleString,a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-9ff76444.js";import"./string-utils-59ad4cb2.js";var messagingInfo={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 duetChoiceCss='*.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: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,.collapsible-force-expanded.collapsible.sc-duet-choice>.duet-choice-label.sc-duet-choice{padding-bottom:calc(1rem + 2px);border-bottom:0 !important;border-bottom-right-radius:0;border-bottom-left-radius:0}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){border-color:rgb(144, 149, 153)}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked) .duet-checkmark-container.sc-duet-choice{border-color:rgb(144, 149, 153)}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){border-color:rgb(116, 116, 117)}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked) .duet-checkmark-container.sc-duet-choice{border-color:rgb(116, 116, 117)}.duet-theme-turva .info .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){border-color:rgb(116, 116, 117)}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 #0077b3}.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 #171c3a}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-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(0, 119, 179);border-color:rgb(0, 119, 179);transition:none}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(23, 28, 58);border-color:rgb(23, 28, 58) !important}.duet-checkmark-container.duet-checkmark-radio.sc-duet-choice{border-radius:50%}[disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{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;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(225, 227, 230);border-top:0}.duet-choice-card-collapsible.duet-theme-turva.sc-duet-choice{background:rgb(255, 255, 255);border-color:rgb(228, 228, 230)}.duet-choice-card-collapsible.checked.sc-duet-choice{border-color:rgb(0, 119, 179)}.duet-choice-card-collapsible.checked.duet-theme-turva.sc-duet-choice{border-color:rgb(23, 28, 58)}.duet-choice-card-collapsible-disabled.sc-duet-choice{background:rgb(245, 248, 250);border-color:rgb(225, 227, 230)}.duet-choice-card-collapsible-disabled.checked.sc-duet-choice{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-collapsible-disabled.duet-theme-turva.checked.sc-duet-choice{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-card-info.sc-duet-choice .duet-choice-info-container.sc-duet-choice:focus{outline:none}.duet-choice-card-info.duet-choice-card-collapsed .duet-choice-info-container.sc-duet-choice-s>*,.duet-choice-card-info.duet-choice-card-collapsed .duet-choice-info-container .sc-duet-choice-s>*{display:none}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-collapsible.sc-duet-choice:not(.checked){border-color:rgb(144, 149, 153)}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-collapsible.sc-duet-choice:not(.checked){border-color:rgb(116, 116, 117)}.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-theme-turva.sc-duet-choice .duet-choice-info-toggle[aria-expanded=true].sc-duet-choice{background:rgb(245, 245, 247)}.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 #0077b3}.user-is-tabbing.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.checked.sc-duet-choice+.duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(0, 119, 179) !important}.duet-choice-info-toggle.sc-duet-choice duet-icon.sc-duet-choice{display:block}.duet-choice-info-toggle.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(0, 119, 179)}.duet-theme-turva.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(198, 12, 48)}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(144, 149, 153)}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(116, 116, 117)}.duet-choice-input.sc-duet-choice{position:absolute !important;width:100%;height:100%;opacity:0}';var DuetChoice=function(){function e(e){var t=this;registerInstance(this,e);this.duetChoiceReady=createEvent(this,"duetChoiceReady",7);this.duetChoiceRemove=createEvent(this,"duetChoiceRemove",7);this.duetChange=createEvent(this,"duetChange",7);this.duetFocus=createEvent(this,"duetFocus",7);this.duetBlur=createEvent(this,"duetBlur",7);this.hasHeader=false;this.choiceId=createID("DuetChoice");this.expandId=createID("DuetChoiceExpand");this.headerId=createID("DuetChoiceHeader");this.infoButtonId=createID("DuetChoiceInfoButton");this.onMouseEnter=function(){t.isHovering=true};this.onMouseLeave=function(){t.isHovering=false};this.onClick=function(e){t.toggleChecked(e)};this.handleKeyDown=function(e){if(isKeyboardClick(e)){t.toggleChecked(e)}if(isQuestionKey(e)&&t.hasInfo){t.toggleInfo()}};this.onChange=function(){t.checked=t.nativeInput.checked||false;t.duetChange.emit({checked:t.checked,value:t.value,component:"duet-choice"})};this.onBlur=function(e){t.duetBlur.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-choice"})};this.onFocus=function(e){t.duetFocus.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-choice"})};this.toggleChecked=function(e){e.preventDefault();e.stopPropagation();if(t.getDisabled()){return}t.isInfoOpen=false;if(t.type==="radio"&&t.checked){return}t.checked=!t.checked;t.duetChange.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-choice"})};this.toggleInfo=function(){t.isInfoOpen=!t.isInfoOpen;if(t.isInfoOpen){setTimeout((function(){var e;(e=t.infoContainer)===null||e===void 0?void 0:e.focus()}))}};this.isHovering=false;this.isInfoOpen=false;this.isBlurred=false;this.theme="";this.label="label";this.accessibleLabelInfoButtonDefaults=DuetStringsExternalDefaults;this.accessibleLabelInfoButton=getLocaleString(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.collapsibleForceExpanded=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=getLocaleString(this.infoLabelDefaults,getLanguage())}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasInfo=hasSlot(this.element,"info");this.hasHeader=hasSlot(this.element,"header");this.hasAdditional=hasSlot(this.element,"additional");this.hasLabel=hasSlot(this.element,"label");this.hasBeforeText=hasSlot(this.element,"before-text");this.duetChoiceReady.emit()};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,[{prop:"accessibleLabelInfoButton",defaults:"accessibleLabelInfoButtonDefaults"},{prop:"infoLabel",defaults:"infoLabelDefaults"}])};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this);this.duetChoiceRemove.emit()};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(isEscapeKey(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.getDisabled=function(){return this.disabled||this.groupDisabled};e.prototype.getExpanded=function(){return this.checked||this.collapsibleForceExpanded};e.prototype.getClassNames=function(){if(this.hasInfo&&!this.collapsible){return{checked:this.checked,"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{checked:this.checked,"duet-choice-card-collapsible":true,"duet-choice-card-collapsible-expanded":this.getExpanded(),"duet-choice-card-collapsed":!this.getExpanded(),"duet-choice-card-collapsible-disabled":this.getDisabled(),"duet-theme-turva":this.theme==="turva"}}return{checked:this.checked,"duet-choice-default-slot":true}};e.prototype.render=function(){var e=this;var t=this.element.closest("duet-choice-group");var c=t?t.label:undefined;var i=this.identifier||this.choiceId;return h(Host,{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","no-hover":this.isHovering,disabled:this.getDisabled()}},h("div",{class:{"duet-choice-card-flextainer":true,"duet-theme-turva":this.theme==="turva"}},h("div",{class:{"duet-choice-card":true,"has-icon":!!this.icon,"has-info":this.hasInfo,checked:this.checked,info:this.isInfoOpen,collapsible:this.collapsible,"collapsible-force-expanded":this.collapsibleForceExpanded,"duet-p-0":this.padding==="none"}},h("input",{class:"duet-choice-input",type:this.type,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,disabled:this.getDisabled(),required:this.required,id:i,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}}),h("label",{htmlFor:i,class:{"duet-choice-label":true,"has-before-text":this.hasBeforeText},onClick:this.onClick},this.hasBeforeText&&h("slot",{name:"before-text"}),this.icon&&h("div",{class:"duet-choice-card-icon"},h("duet-icon",{margin:"none",size:"small",name:this.icon,color:"currentColor"})),h("div",{class:"duet-choice-card-text"},c&&h("duet-visually-hidden",null,c,", "),h("div",null,this.hasLabel?h("slot",{name:"label"}):this.label),this.caption&&h("div",null,h("duet-spacer",{size:"xx-small"}),h("duet-caption",{margin:"none",selected:this.checked},this.caption)),this.hasAdditional&&h("div",null,h("duet-spacer",{size:"xx-small"}),h("slot",{name:"additional"}))),h("div",null,h("div",{class:{"duet-checkmark-container":true,"duet-checkmark-radio":this.type==="radio"}},this.checked&&h("div",{class:"duet-checkmark"}))))),this.hasInfo&&!this.collapsible&&h("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.getDisabled(),"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"},h("duet-visually-hidden",{"aria-hidden":!this.isBlurred?"true":"false"},this.accessibleLabelInfoButton),h("div",{class:"duet-choice-info-icon"},h("duet-icon",{icon:messagingInfo.svg,margin:"none",size:"small",color:"currentColor"})))),this.collapsible||this.hasInfo?h("div",{class:this.getClassNames(),id:this.expandId},h("span",{class:{"duet-choice-section-visible":this.collapsible?this.getExpanded():this.isInfoOpen,"duet-choice-section-hidden":this.collapsible?!this.getExpanded():!this.isInfoOpen}},h("span",{id:this.headerId},h("slot",{name:"header"})),this.hasInfo?h("span",{ref:function(t){return e.infoContainer=t},tabindex:"0",class:"duet-choice-info-container"},h("span",{"aria-relevant":"all","aria-atomic":"true","aria-live":this.isInfoOpen?"polite":"off"},h("slot",{name:"info"})),h("slot",null)):h("span",null,h("slot",null))),this.isInfoOpen&&h(FocusGuard,{moveFocusTo:this.infoButtonEl})):null)};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetChoice.style=duetChoiceCss;var duetChoiceGroupCss="*.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 DuetChoiceGroup=function(){function e(e){var t=this;registerInstance(this,e);this.choiceGroupName="duet-choice-group";this.choices=new Set;this.onSelect=function(e){if(e.detail.component!=="duet-choice"){return}var c=e.target;if(c&&t.choices.has(c)){t.value=c.value}};this.onChoiceReady=function(e){var c=e.target;if(c.closest("duet-choice-group")===t.element&&!t.choices.has(c)){t.choices.add(c);t.updateChoices()}};this.onChoiceRemove=function(e){var c=e.target;t.choices.delete(c);t.updateChoices()};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(){return __generator(this,(function(e){this.initialValue=this.value;this.updateChoices();return[2]}))}))};e.prototype.disconnectedCallback=function(){if(this.mutationO){this.mutationO.disconnect();this.mutationO=undefined}};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.updateChoices=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,c,i,o,r;return __generator(this,(function(d){t=(e=this.value)!==null&&e!==void 0?e:this.initialValue;c=false;for(i=0,o=this.choices;i<o.length;i++){r=o[i];r.name=this.name;r.groupDisabled=this.disabled;r.groupDirection=this.direction;r.groupResponsive=this.responsive;if(!c&&r.value===t){c=true;r.checked=true;if(typeof this.value==="undefined"){this.value=t}}else{r.checked=false}}if(!c){this.value=undefined}return[2]}))}))};e.prototype.render=function(){var e;return h(Host,{onDuetChange:this.onSelect,onDuetChoiceReady:this.onChoiceReady,onDuetChoiceRemove:this.onChoiceRemove,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"}},h("duet-fieldset",{label:this.label,labelHidden:this.labelHidden,compactLabel:true,caption:this.caption,error:this.error,margin:this.margin,theme:this.theme},this.tooltip&&h("duet-tooltip",{slot:"tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),h("div",{class:(e={},e[this.choiceGroupName]=true,e["duet-no-stacking"]=!this.responsive,e)},h("slot",null))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(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}();DuetChoiceGroup.style=duetChoiceGroupCss;export{DuetChoice as duet_choice,DuetChoiceGroup as duet_choice_group};
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,i,a){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function l(e){try{r(a.next(e))}catch(e){n(e)}}function s(e){try{r(a["throw"](e))}catch(e){n(e)}}function r(e){e.done?i(e.value):o(e.value).then(l,s)}r((a=a.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},a,o,n,l;return l={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function s(e){return function(t){return r([e,t])}}function r(s){if(a)throw new TypeError("Generator is already executing.");while(l&&(l=0,s[0]&&(i=0)),i)try{if(a=1,o&&(n=s[0]&2?o["return"]:s[0]?o["throw"]||((n=o["return"])&&n.call(o),0):o.next)&&!(n=n.call(o,s[1])).done)return n;if(o=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;o=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){i.label=s[1];break}if(s[0]===6&&i.label<n[1]){i.label=n[1];n=s;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(s);break}if(n[2])i.ops.pop();i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e];o=0}finally{a=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-62aa2798.js";import{a as actionArrowDownSmall}from"./action-arrow-down-small-82273dc8.js";import{f as font_size_medium,t as tokens}from"./tokens-e6b6db9b.js";import{i as inheritGlobalTheme}from"./themeable-component-fdce4fd7.js";import{h as hasSlot}from"./slot-query-7877f18f.js";import{c as createID}from"./create-id-2b0cd46d.js";import{i as isKeyboardClick}from"./keyboard-utils-5746e126.js";import{n as nudge}from"./nudge-350af17e.js";import{s as sanitizeString}from"./string-utils-59ad4cb2.js";var duetCollapsibleCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=after-heading]){display:inline-block}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;display:block;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(0, 41, 77)}:host(.duet-theme-turva){font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host(.duet-m-0){margin:0 !important}.duet-collapsible-content{display:none;padding-left:18px;margin-top:8px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.5;color:rgb(0, 41, 77)}@media (max-width: 35.9375em){.duet-collapsible-content{font-size:0.875rem}}.duet-collapsible-content.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host([open])>.duet-collapsible-content{display:block}.duet-collapsible-heading{-webkit-user-select:none;user-select:none;display:flex;align-items:center;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:600;line-height:1.5;color:rgb(0, 41, 77);text-align:left;cursor:pointer;border-radius:4px}.duet-collapsible-heading.full-width{width:100%}.duet-collapsible-heading.duet-collapsible-heading-centered{margin:auto}.duet-collapsible-heading.duet-collapsible-normal-weight{font-weight:400}.duet-collapsible-heading.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-collapsible-heading .duet-collapsible-heading-content{min-width:0}.duet-collapsible-heading.has-after-heading .duet-collapsible-heading-content+div{margin-left:16px}.duet-collapsible-heading.has-after-heading .duet-collapsible-heading-content+div.float-right{margin-left:auto}.duet-collapsible-heading:focus{outline:0}:host(.user-is-tabbing) .duet-collapsible-heading:focus{border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-collapsible-heading.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-collapsible-heading-icon{margin-right:8px !important;display:flex;align-items:center;justify-content:center;color:rgb(0, 41, 77);transition:transform 300ms ease}.duet-collapsible-heading-icon:last-child,.duet-collapsible-heading-icon:last-of-type{margin-right:0 !important}[aria-expanded=true] .duet-collapsible-heading-icon{transform:rotate(180deg)}';var DuetCollapsible=function(){function e(e){var t=this;registerInstance(this,e);this.duetToggle=createEvent(this,"duetToggle",7);this.id=createID("DuetCollapsible");this.handleKeyDown=function(e){if(isKeyboardClick(e)){t.handleClick(e)}};this.getFontSizeFromTokens=function(e){if(e===void 0){e=t.headingSize}if(!e){return font_size_medium}else{var i=/-/g;var a=e.replace(i,"_");return tokens["font_size_".concat(a)]}};this.getEquivalentIconSize=function(e){if(e===void 0){e=t.headingSize}switch(e){case"x-small":return"xx-small";case"small":return"xx-small";case"medium":return"xx-small";case"large":return"x-small";case"x-large":return"small";case"xx-large":return"medium";case"xxx-large":return"x-large";case"xxxx-large":return"xxx-large";default:return"xx-small"}};this.handleClick=function(e){e.preventDefault();t.open=!t.open;t.duetToggle.emit({component:"duet-collapsible",originalEvent:e})};this.theme="";this.accessibleLabel=undefined;this.heading="";this.headingFullWidth=false;this.centerHeading=false;this.headingWeight="semibold";this.headingSize=undefined;this.headingLevel=undefined;this.margin="auto";this.open=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasAfterHeading=hasSlot(this.element,"after-heading")};e.prototype.componentDidLoad=function(){nudge()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.nativeButton){this.element.classList.add("user-is-tabbing");this.nativeButton.focus(e)}return[2]}))}))};e.prototype.render=function(){var e=this;var t=this.headingLevel?sanitizeString(this.headingLevel):"div";return h(Host,{class:{"duet-m-0":this.margin==="none"}},h(t,null,h("button",{class:{"duet-collapsible-heading":true,"duet-collapsible-heading-centered":this.centerHeading,"duet-theme-turva":this.theme==="turva","duet-collapsible-normal-weight":this.headingWeight==="normal","has-after-heading":this.hasAfterHeading,"full-width":this.headingFullWidth},style:{"font-size":this.getFontSizeFromTokens()},role:"button",ref:function(t){return e.nativeButton=t},"aria-label":this.accessibleLabel,"aria-expanded":this.open?"true":"false","aria-controls":this.id,onClick:this.handleClick,onKeyDown:this.handleKeyDown},h("div",{class:"duet-collapsible-heading-icon"},h("duet-icon",{margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary",size:this.getEquivalentIconSize(),icon:actionArrowDownSmall.svg})),h("div",{class:"duet-collapsible-heading-content",part:"duet-collapsible-heading-content"},this.heading),this.hasAfterHeading&&h("div",{part:"duet-collapsible-after-heading"},h("slot",{name:"after-heading"})))),h("div",{id:this.id,class:{"duet-collapsible-content":true,"duet-theme-turva":this.theme==="turva"},part:"duet-collapsible-content"},h("slot",null)))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetCollapsible.style=duetCollapsibleCss;export{DuetCollapsible as duet_collapsible};
4
+ */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-932c38d8.js";import{a as actionArrowDownSmall}from"./action-arrow-down-small-82273dc8.js";import{f as font_size_medium,t as tokens}from"./tokens-e6b6db9b.js";import{i as inheritGlobalTheme}from"./themeable-component-fdce4fd7.js";import{h as hasSlot}from"./slot-query-7877f18f.js";import{c as createID}from"./create-id-2b0cd46d.js";import{i as isKeyboardClick}from"./keyboard-utils-5746e126.js";import{s as sanitizeString}from"./string-utils-59ad4cb2.js";var duetCollapsibleCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=after-heading]){display:inline-block}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;display:block;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(0, 41, 77)}:host(.duet-theme-turva){font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host(.duet-m-0){margin:0 !important}.duet-collapsible-content{display:none;padding-left:18px;margin-top:8px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.5;color:rgb(0, 41, 77)}@media (max-width: 35.9375em){.duet-collapsible-content{font-size:0.875rem}}.duet-collapsible-content.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host([open])>.duet-collapsible-content{display:block}.duet-collapsible-heading{-webkit-user-select:none;user-select:none;display:flex;align-items:center;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:600;line-height:1.5;color:rgb(0, 41, 77);text-align:left;cursor:pointer;border-radius:4px}.duet-collapsible-heading.full-width{width:100%}.duet-collapsible-heading.duet-collapsible-heading-centered{margin:auto}.duet-collapsible-heading.duet-collapsible-normal-weight{font-weight:400}.duet-collapsible-heading.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-collapsible-heading .duet-collapsible-heading-content{min-width:0}.duet-collapsible-heading.has-after-heading .duet-collapsible-heading-content+div{margin-left:16px}.duet-collapsible-heading.has-after-heading .duet-collapsible-heading-content+div.float-right{margin-left:auto}.duet-collapsible-heading:focus{outline:0}:host(.user-is-tabbing) .duet-collapsible-heading:focus{border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-collapsible-heading.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-collapsible-heading-icon{margin-right:8px !important;display:flex;align-items:center;justify-content:center;color:rgb(0, 41, 77);transition:transform 300ms ease}.duet-collapsible-heading-icon:last-child,.duet-collapsible-heading-icon:last-of-type{margin-right:0 !important}[aria-expanded=true] .duet-collapsible-heading-icon{transform:rotate(180deg)}';var DuetCollapsible=function(){function e(e){var t=this;registerInstance(this,e);this.duetToggle=createEvent(this,"duetToggle",7);this.id=createID("DuetCollapsible");this.handleKeyDown=function(e){if(isKeyboardClick(e)){t.handleClick(e)}};this.getFontSizeFromTokens=function(e){if(e===void 0){e=t.headingSize}if(!e){return font_size_medium}else{var i=/-/g;var a=e.replace(i,"_");return tokens["font_size_".concat(a)]}};this.getEquivalentIconSize=function(e){if(e===void 0){e=t.headingSize}switch(e){case"x-small":return"xx-small";case"small":return"xx-small";case"medium":return"xx-small";case"large":return"x-small";case"x-large":return"small";case"xx-large":return"medium";case"xxx-large":return"x-large";case"xxxx-large":return"xxx-large";default:return"xx-small"}};this.handleClick=function(e){e.preventDefault();t.open=!t.open;t.duetToggle.emit({component:"duet-collapsible",originalEvent:e})};this.theme="";this.accessibleLabel=undefined;this.heading="";this.headingFullWidth=false;this.centerHeading=false;this.headingWeight="semibold";this.headingSize=undefined;this.headingLevel=undefined;this.margin="auto";this.open=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasAfterHeading=hasSlot(this.element,"after-heading")};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.nativeButton){this.element.classList.add("user-is-tabbing");this.nativeButton.focus(e)}return[2]}))}))};e.prototype.render=function(){var e=this;var t=this.headingLevel?sanitizeString(this.headingLevel):"div";return h(Host,{class:{"duet-m-0":this.margin==="none"}},h(t,null,h("button",{class:{"duet-collapsible-heading":true,"duet-collapsible-heading-centered":this.centerHeading,"duet-theme-turva":this.theme==="turva","duet-collapsible-normal-weight":this.headingWeight==="normal","has-after-heading":this.hasAfterHeading,"full-width":this.headingFullWidth},style:{"font-size":this.getFontSizeFromTokens()},role:"button",ref:function(t){return e.nativeButton=t},"aria-label":this.accessibleLabel,"aria-expanded":this.open?"true":"false","aria-controls":this.id,onClick:this.handleClick,onKeyDown:this.handleKeyDown},h("div",{class:"duet-collapsible-heading-icon"},h("duet-icon",{margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary",size:this.getEquivalentIconSize(),icon:actionArrowDownSmall.svg})),h("div",{class:"duet-collapsible-heading-content",part:"duet-collapsible-heading-content"},this.heading),this.hasAfterHeading&&h("div",{part:"duet-collapsible-after-heading"},h("slot",{name:"after-heading"})))),h("div",{id:this.id,class:{"duet-collapsible-content":true,"duet-theme-turva":this.theme==="turva"},part:"duet-collapsible-content"},h("slot",null)))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetCollapsible.style=duetCollapsibleCss;export{DuetCollapsible as duet_collapsible};
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(o,t,e,i){function s(o){return o instanceof e?o:new e((function(t){t(o)}))}return new(e||(e=Promise))((function(e,c){function b(o){try{u(i.next(o))}catch(o){c(o)}}function n(o){try{u(i["throw"](o))}catch(o){c(o)}}function u(o){o.done?e(o.value):s(o.value).then(b,n)}u((i=i.apply(o,t||[])).next())}))};var __generator=this&&this.__generator||function(o,t){var e={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},i,s,c,b;return b={next:n(0),throw:n(1),return:n(2)},typeof Symbol==="function"&&(b[Symbol.iterator]=function(){return this}),b;function n(o){return function(t){return u([o,t])}}function u(n){if(i)throw new TypeError("Generator is already executing.");while(b&&(b=0,n[0]&&(e=0)),e)try{if(i=1,s&&(c=n[0]&2?s["return"]:n[0]?s["throw"]||((c=s["return"])&&c.call(s),0):s.next)&&!(c=c.call(s,n[1])).done)return c;if(s=0,c)n=[n[0]&2,c.value];switch(n[0]){case 0:case 1:c=n;break;case 4:e.label++;return{value:n[1],done:false};case 5:e.label++;s=n[1];n=[0];continue;case 7:n=e.ops.pop();e.trys.pop();continue;default:if(!(c=e.trys,c=c.length>0&&c[c.length-1])&&(n[0]===6||n[0]===2)){e=0;continue}if(n[0]===3&&(!c||n[1]>c[0]&&n[1]<c[3])){e.label=n[1];break}if(n[0]===6&&e.label<c[1]){e.label=c[1];c=n;break}if(c&&e.label<c[2]){e.label=c[2];e.ops.push(n);break}if(c[2])e.ops.pop();e.trys.pop();continue}n=t.call(o,e)}catch(o){n=[6,o];s=0}finally{i=c=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{h,F as Fragment,r as registerInstance,c as createEvent,H as Host,g as getElement}from"./index-62aa2798.js";import{i as inheritGlobalTheme}from"./themeable-component-fdce4fd7.js";import{d as debounce}from"./js-utils-a35dcc8c.js";import{j as isEnterKey,f as isEscapeKey,o as isTabKey,b as isArrowUpKey,c as isArrowDownKey}from"./keyboard-utils-5746e126.js";import{g as getLocaleString,a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-9ff76444.js";import{p as parsePossibleJSON}from"./string-utils-59ad4cb2.js";var SelectSingle=function(o){var t=o.item,e=o.search,i=e===void 0?"":e,s=o.selected;var c=i!==""?new RegExp("("+i.split(" ").join("|")+")","gi"):undefined;return h(Fragment,null,s&&h("duet-icon",{class:"option-icon",name:"messaging-checked",size:"xx-small",margin:"none"}),c?h("span",{class:"option-container","aria-hidden":"true"},h("span",{innerHTML:t.name.replace(c,'<span class="highlight">$&</span>')})):t.name,t.tags&&h("span",{class:"option-tags"},t.tags.join(", ")))};var DuetComboBoxSelect=function(o){var t=o.item,e=o.active,i=o.total,s=o.selected,c=o.label,b=c===void 0?undefined:c,n=o.clickHandler,u=n===void 0?function(o){o.preventDefault()}:n,r=o.keyHandler,d=r===void 0?function(o){o.preventDefault()}:r,a=o.search;return h("li",{class:{"list-item":true,option:true,active:e,selected:s},id:e?"active_item":"","data-index":t.id,"aria-selected":e?"true":undefined,"aria-current":s?"true":undefined,role:"option","aria-label":b||"".concat(t.name,", (").concat(t.id+1," of ").concat(i,")")},h("a",{tabindex:"-1",onClick:function(o){return u(o)},onKeyUp:function(o){return d(o)},class:"option-link","aria-label":b||"".concat(t.name,", (").concat(t.id+1," of ").concat(i,")"),"aria-hidden":"true"},h(SelectSingle,{item:t,search:a,selected:s})))};var duetComboboxCss='.sc-duet-combobox-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:inline-block;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";color:rgb(0, 41, 77)}.sc-duet-combobox-h a.sc-duet-combobox{color:rgb(0, 41, 77);transition:none}.duet-theme-turva.sc-duet-combobox-h{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-theme-turva.sc-duet-combobox-h a.sc-duet-combobox{color:rgb(23, 28, 58)}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.option.sc-duet-combobox .option-tags.sc-duet-combobox{color:rgb(116, 116, 117)}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.option.selected.sc-duet-combobox{background:rgb(244, 207, 214)}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover{color:rgb(255, 255, 255);background:rgb(198, 12, 48)}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox .option-tags.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus .option-tags.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover .option-tags.sc-duet-combobox{color:rgb(255, 255, 255)}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox a.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus a.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover a.sc-duet-combobox{color:rgb(255, 255, 255)}.duet-combobox-list.sc-duet-combobox{position:absolute;top:calc(100% - 12px);height:0;overflow:hidden;background:rgb(255, 255, 255);border-radius:0 4px;box-shadow:0 2px 10px 0 rgba(0, 41, 77, 0.1);opacity:0}.duet-combobox-list.open.sc-duet-combobox{z-index:700;display:block;height:auto;opacity:1}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox{max-height:200px;padding:0.75rem 0;margin:0;overflow-y:scroll;font-weight:600;list-style:none;cursor:pointer;scroll-behavior:smooth}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox{padding:4px 0}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:not(.selected){padding-left:16px}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:not(.selected) .highlight.sc-duet-combobox{text-decoration:underline}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.option.sc-duet-combobox .option-link.sc-duet-combobox{display:block;width:100%}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.option.sc-duet-combobox .option-tags.sc-duet-combobox{float:right;padding-right:0.875rem;font-weight:400;color:rgb(144, 149, 153)}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.option-link.sc-duet-combobox{display:block;width:100%}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.selected.sc-duet-combobox{padding-left:0;background:rgb(205, 229, 241)}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.selected.option.sc-duet-combobox .option-icon.sc-duet-combobox{padding:0 8px 0 8px}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.selected.option.sc-duet-combobox .option-tags.sc-duet-combobox{color:rgb(144, 149, 153)}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover{color:rgb(255, 255, 255);background:rgb(0, 119, 179)}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox .option-tags.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus .option-tags.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover .option-tags.sc-duet-combobox{color:rgb(255, 255, 255)}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox a.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus a.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover a.sc-duet-combobox{color:rgb(255, 255, 255)}';var DuetCombobox=function(){function o(o){var t=this;registerInstance(this,o);this.duetChange=createEvent(this,"duetChange",3);this.resizeObserver=new ResizeObserver(debounce((function(o){var e,i;if((o===null||o===void 0?void 0:o.length)===1){var s=(i=(e=o[0])===null||e===void 0?void 0:e.target)===null||i===void 0?void 0:i.getBoundingClientRect().width;t.listContainer.style.width="".concat(s+1,"px")}}),100));this.processedItems=null;this.inputWidth=0;this.inputValue="";this.selectionMsg="";this.listOpen=false;this.selectedItems=new Set;this.activeItem=undefined;this.accessibleLabelDefaults={en:{heading:"Select:",item:"{name}, ({current} of {total})",itemFiltered:"{name}, ({current} of {total}, {hiddenItems} filtered)"},fi:{heading:"Valitse:",item:"{name}, ({current}/{total})",itemFiltered:"{name}, ({current}/{total}, {hiddenItems} suodatettu)"},sv:{heading:"Välj:",item:"{name}, ({current} av {total})",itemFiltered:"{name}, ({current} av {total}, {hiddenItems} filtrerade)"}};this.accessibleLabels=getLocaleString(this.accessibleLabelDefaults,getLanguage());this.theme="";this.force=false;this.items=undefined;this.formatter=function(o){return o&&o.name?o.name:""};this.value=undefined;this.minCharacters=1;this.openListOnClick=false;this.filterType="startsWith"}o.prototype.activeItemHandler=function(o){this.input.accessibleActiveDescendant=this.listOpen&&(o||o===0)?"active_item":""};o.prototype.handleDocumentClick=function(o){var t=this;var e=o.composedPath();var i=e.every((function(o){return o!==t.element}));if(i){this.updateInputText(true);this.listOpen=false}};o.prototype.formatItem=function(o){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.formatter(o)]}))}))};o.prototype.processItems=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:this.items=this.processedItems=parsePossibleJSON(this.items);return[4,this.updateInputText()];case 1:o.sent();return[2]}}))}))};o.prototype.processValue=function(){return __awaiter(this,void 0,void 0,(function(){var o;var t=this;return __generator(this,(function(e){if(this.value){o=this.items.find((function(o){return o.value===t.value}));this.updateSelectedItems(o.id)}return[2]}))}))};o.prototype.processListOpenChange=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){if(this.openListOnClick){this.input.icon=this.listOpen?"action-arrow-up":"action-arrow-down"}return[2]}))}))};o.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};o.prototype.connectedCallback=function(){var o=this;this.items=this.processedItems=parsePossibleJSON(this.items);this.input=this.element.querySelector("duet-input");this.input.addEventListener("duetChange",this.updateInputValue.bind(this));this.input.addEventListener("click",(function(){if(!o.openListOnClick){o.inputValue.length>=o.minCharacters?o.listOpen=true:o.listOpen=false}else{o.listOpen=!o.listOpen}}));this.element.addEventListener("keydown",this.handleInputKeyDownEvent.bind(this));connectLanguageChangeObserver(this,{prop:"accessibleLabels",defaults:"accessibleLabelDefaults"});this.input.accessibleAutocomplete="list";this.input.accessibleControls="duet-combobox-list-element";this.processListOpenChange()};o.prototype.disconnectedCallback=function(){var o=this;this.input.removeEventListener("duetChange",this.updateInputValue.bind(this));this.input.removeEventListener("click",(function(){return o.inputValue.length?o.listOpen=true:o.listOpen=false}));this.element.removeEventListener("keydown",this.handleInputKeyDownEvent.bind(this));this.listElement.removeEventListener("click",(function(o){o.stopPropagation()}));this.resizeObserver.disconnect();disconnectLanguageChangeObserver(this)};o.prototype.componentDidLoad=function(){this.resizeObserver.observe(this.input);this.listElement.addEventListener("click",(function(o){o.stopPropagation()}));this.processValue()};o.prototype.onListClick=function(o,t){o.preventDefault();this.updateSelectedItems(t.id,true);this.listOpen=false;return this.listOpen};o.prototype.shouldListBeFiltered=function(){var o=this;if(this.selectedItems.size&&this.input.value===this.inputValue){var t=this.items.filter((function(t){return o.selectedItems.has(t.id)}));return!(this.formatter(t).toLowerCase()===this.input.value.toLowerCase())}return true};o.prototype.returnFilteredOrNonFiltered=function(){return this.processedItems?this.shouldListBeFiltered()?this.getFilteredItems():this.sortFilteredItems(this.processedItems):[]};o.prototype.updateSelectedItems=function(o,t){return __awaiter(this,void 0,void 0,(function(){var e;var i=this;return __generator(this,(function(s){switch(s.label){case 0:this.selectedItems.clear();if(this.selectedItems){if(this.selectedItems.has(o)){this.selectedItems.delete(o)}else{this.selectedItems.add(o)}}if(t){e=this.selectedItems.size===0?[]:this.items.filter((function(o){return i.selectedItems.has(o.id)}));this.duetChange.emit({value:e[0].value,item:e[0],component:"duet-combobox"})}return[4,this.updateInputText()];case 1:s.sent();return[2]}}))}))};o.prototype.updateInputText=function(o){if(o===void 0){o=false}return __awaiter(this,void 0,void 0,(function(){var t,e;var i=this;return __generator(this,(function(s){switch(s.label){case 0:t=this.selectedItems.size===0?[]:this.items.filter((function(o){return i.selectedItems.has(o.id)}));if(t.length===0&&this.selectedItems.size>0){this.selectedItems.clear();this.input.value="";this.value=undefined;this.activeItem=undefined}if(!(this.selectedItems.size===1))return[3,2];this.input.value="";e=this.input;return[4,this.formatItem(t[0])];case 1:e.value=s.sent();this.input.scrollLeft=this.input.scrollWidth;this.activeItem=undefined;this.value=t[0].value;s.label=2;case 2:if(o&&this.selectedItems.size===0){if(this.force){this.inputValue="";this.input.value=""}this.activeItem=undefined}this.listOpen=false;return[2]}}))}))};o.prototype.updateInputValue=function(o){var t;this.inputValue=o.detail.value;this.listOpen=String(this.inputValue).length>=this.minCharacters&&((t=this.getFilteredItems())===null||t===void 0?void 0:t.length)>0};o.prototype.handleInputKeyDownEvent=function(o){this.input.accessibleActiveDescendant=undefined;if(isEnterKey(o)){o.preventDefault();this.selectActiveItem();this.updateInputText(false);this.listOpen=false;return}if(isEscapeKey(o)||isTabKey(o)){this.updateInputText(true);this.listOpen=false;return}var t=this.activeItem;if(isArrowUpKey(o)){o.preventDefault();t=this.activeItem-1}else if(isArrowDownKey(o)){o.preventDefault();t=this.listOpen?this.activeItem+1:this.activeItem;this.listOpen=true}if(isArrowDownKey(o)||isArrowUpKey(o)){var e=this.shouldListBeFiltered()?this.getFilteredItems():this.processedItems;if(t<0||!t){t=0}if(t>=e.length){t=e.length-1}this.input.accessibleActiveDescendant="active_item";this.activeItem=t;this.scrollToActive()}this.announceActive();return};o.prototype.selectActiveItem=function(){if(this.activeItem===undefined){return}var o=this.returnFilteredOrNonFiltered();var t=o[this.activeItem];this.updateSelectedItems(t.id,true)};o.prototype.announceActive=function(o){if(!o){o=this.returnFilteredOrNonFiltered()}if(this.activeItem===undefined||this.activeItem===-1){return}var t=o[this.activeItem];this.selectionMsg=structuredClone(this.formatLabel(t,o.length,this.items.length))};o.prototype.scrollToActive=function(){var o=this.listElement.querySelector(".active");if(o){o.scrollIntoView({behavior:"smooth",block:"center"})}};o.prototype.formatLabel=function(o,t,e){if(!o||e===undefined){return""}var i=t===e?this.accessibleLabels.item:this.accessibleLabels.itemFiltered;return i.replace("{name}",String(o.name)).replace("{current}",String(this.activeItem+1)).replace("{total}",String(t)).replace("{hiddenItems}",String(e-t))};o.prototype.getFilteredItems=function(){var o=this;var t=this.processedItems.filter((function(t){var e,i,s,c;return((e=String(t.value))===null||e===void 0?void 0:e.toLowerCase()[o.filterType]((i=o.inputValue)===null||i===void 0?void 0:i.toLowerCase()))||((s=String(t.name))===null||s===void 0?void 0:s.toLowerCase()[o.filterType]((c=o.inputValue)===null||c===void 0?void 0:c.toLowerCase()))||o.selectedItems.has(t.id)}));return this.sortFilteredItems(t)};o.prototype.sortFilteredItems=function(o){var t=this;if(o.length>0){o.filter((function(o){return t.selectedItems.has(o.id)})).forEach((function(t){var e=o.indexOf(t);o.splice(e,1);o.unshift(t)}))}return o};o.prototype.render=function(){var o;var t=this;var e=this.returnFilteredOrNonFiltered();return h(Host,{role:"combobox","aria-expanded":this.listOpen?"true":"false","aria-owns":"duet-combobox-list-element","aria-haspopup":"listbox",class:(o={"duet-combobox":true},o["duet-theme-".concat(this.theme)]=true,o)},h("slot",null),h("div",{role:"list",class:{"duet-combobox-list":true,open:this.listOpen},ref:function(o){return t.listContainer=o}},h("ul",{class:{"duet-combobox-listbox-open":this.listOpen,"duet-combobox-listbox":true},role:"listbox",ref:function(o){return t.listElement=o},id:"duet-combobox-list-element"},e.map((function(o,i){return h(DuetComboBoxSelect,{item:o,active:i===t.activeItem,selected:t.selectedItems.has(o.id),search:t.inputValue,total:e.length,clickHandler:function(e){return t.onListClick(e,o)},label:t.formatLabel(o,e.length,t.items.length)})})))))};Object.defineProperty(o.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{activeItem:["activeItemHandler"],items:["processItems"],value:["processValue"],listOpen:["processListOpenChange"]}},enumerable:false,configurable:true});return o}();DuetCombobox.style=duetComboboxCss;export{DuetCombobox as duet_combobox};
4
+ */import{h,F as Fragment,r as registerInstance,c as createEvent,H as Host,g as getElement}from"./index-932c38d8.js";import{i as inheritGlobalTheme}from"./themeable-component-fdce4fd7.js";import{d as debounce}from"./js-utils-a35dcc8c.js";import{j as isEnterKey,f as isEscapeKey,o as isTabKey,b as isArrowUpKey,c as isArrowDownKey}from"./keyboard-utils-5746e126.js";import{g as getLocaleString,a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-9ff76444.js";import{p as parsePossibleJSON}from"./string-utils-59ad4cb2.js";var SelectSingle=function(o){var t=o.item,e=o.search,i=e===void 0?"":e,s=o.selected;var c=i!==""?new RegExp("("+i.split(" ").join("|")+")","gi"):undefined;return h(Fragment,null,s&&h("duet-icon",{class:"option-icon",name:"messaging-checked",size:"xx-small",margin:"none"}),c?h("span",{class:"option-container","aria-hidden":"true"},h("span",{innerHTML:t.name.replace(c,'<span class="highlight">$&</span>')})):t.name,t.tags&&h("span",{class:"option-tags"},t.tags.join(", ")))};var DuetComboBoxSelect=function(o){var t=o.item,e=o.active,i=o.total,s=o.selected,c=o.label,b=c===void 0?undefined:c,n=o.clickHandler,u=n===void 0?function(o){o.preventDefault()}:n,r=o.keyHandler,d=r===void 0?function(o){o.preventDefault()}:r,a=o.search;return h("li",{class:{"list-item":true,option:true,active:e,selected:s},id:e?"active_item":"","data-index":t.id,"aria-selected":e?"true":undefined,"aria-current":s?"true":undefined,role:"option","aria-label":b||"".concat(t.name,", (").concat(t.id+1," of ").concat(i,")")},h("a",{tabindex:"-1",onClick:function(o){return u(o)},onKeyUp:function(o){return d(o)},class:"option-link","aria-label":b||"".concat(t.name,", (").concat(t.id+1," of ").concat(i,")"),"aria-hidden":"true"},h(SelectSingle,{item:t,search:a,selected:s})))};var duetComboboxCss='.sc-duet-combobox-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:inline-block;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";color:rgb(0, 41, 77)}.sc-duet-combobox-h a.sc-duet-combobox{color:rgb(0, 41, 77);transition:none}.duet-theme-turva.sc-duet-combobox-h{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-theme-turva.sc-duet-combobox-h a.sc-duet-combobox{color:rgb(23, 28, 58)}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.option.sc-duet-combobox .option-tags.sc-duet-combobox{color:rgb(116, 116, 117)}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.option.selected.sc-duet-combobox{background:rgb(244, 207, 214)}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover{color:rgb(255, 255, 255);background:rgb(198, 12, 48)}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox .option-tags.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus .option-tags.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover .option-tags.sc-duet-combobox{color:rgb(255, 255, 255)}.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox a.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus a.sc-duet-combobox,.duet-theme-turva.sc-duet-combobox-h .duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover a.sc-duet-combobox{color:rgb(255, 255, 255)}.duet-combobox-list.sc-duet-combobox{position:absolute;top:calc(100% - 12px);height:0;overflow:hidden;background:rgb(255, 255, 255);border-radius:0 4px;box-shadow:0 2px 10px 0 rgba(0, 41, 77, 0.1);opacity:0}.duet-combobox-list.open.sc-duet-combobox{z-index:700;display:block;height:auto;opacity:1}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox{max-height:200px;padding:0.75rem 0;margin:0;overflow-y:scroll;font-weight:600;list-style:none;cursor:pointer;scroll-behavior:smooth}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox{padding:4px 0}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:not(.selected){padding-left:16px}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:not(.selected) .highlight.sc-duet-combobox{text-decoration:underline}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.option.sc-duet-combobox .option-link.sc-duet-combobox{display:block;width:100%}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.option.sc-duet-combobox .option-tags.sc-duet-combobox{float:right;padding-right:0.875rem;font-weight:400;color:rgb(144, 149, 153)}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.option-link.sc-duet-combobox{display:block;width:100%}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.selected.sc-duet-combobox{padding-left:0;background:rgb(205, 229, 241)}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.selected.option.sc-duet-combobox .option-icon.sc-duet-combobox{padding:0 8px 0 8px}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.selected.option.sc-duet-combobox .option-tags.sc-duet-combobox{color:rgb(144, 149, 153)}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover{color:rgb(255, 255, 255);background:rgb(0, 119, 179)}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox .option-tags.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus .option-tags.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover .option-tags.sc-duet-combobox{color:rgb(255, 255, 255)}.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.active.sc-duet-combobox a.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:focus a.sc-duet-combobox,.duet-combobox-list.sc-duet-combobox .duet-combobox-listbox.sc-duet-combobox .list-item.sc-duet-combobox:hover a.sc-duet-combobox{color:rgb(255, 255, 255)}';var DuetCombobox=function(){function o(o){var t=this;registerInstance(this,o);this.duetChange=createEvent(this,"duetChange",3);this.resizeObserver=new ResizeObserver(debounce((function(o){var e,i;if((o===null||o===void 0?void 0:o.length)===1){var s=(i=(e=o[0])===null||e===void 0?void 0:e.target)===null||i===void 0?void 0:i.getBoundingClientRect().width;t.listContainer.style.width="".concat(s+1,"px")}}),100));this.processedItems=null;this.inputWidth=0;this.inputValue="";this.selectionMsg="";this.listOpen=false;this.selectedItems=new Set;this.activeItem=undefined;this.accessibleLabelDefaults={en:{heading:"Select:",item:"{name}, ({current} of {total})",itemFiltered:"{name}, ({current} of {total}, {hiddenItems} filtered)"},fi:{heading:"Valitse:",item:"{name}, ({current}/{total})",itemFiltered:"{name}, ({current}/{total}, {hiddenItems} suodatettu)"},sv:{heading:"Välj:",item:"{name}, ({current} av {total})",itemFiltered:"{name}, ({current} av {total}, {hiddenItems} filtrerade)"}};this.accessibleLabels=getLocaleString(this.accessibleLabelDefaults,getLanguage());this.theme="";this.force=false;this.items=undefined;this.formatter=function(o){return o&&o.name?o.name:""};this.value=undefined;this.minCharacters=1;this.openListOnClick=false;this.filterType="startsWith"}o.prototype.activeItemHandler=function(o){this.input.accessibleActiveDescendant=this.listOpen&&(o||o===0)?"active_item":""};o.prototype.handleDocumentClick=function(o){var t=this;var e=o.composedPath();var i=e.every((function(o){return o!==t.element}));if(i){this.updateInputText(true);this.listOpen=false}};o.prototype.formatItem=function(o){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.formatter(o)]}))}))};o.prototype.processItems=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:this.items=this.processedItems=parsePossibleJSON(this.items);return[4,this.updateInputText()];case 1:o.sent();return[2]}}))}))};o.prototype.processValue=function(){return __awaiter(this,void 0,void 0,(function(){var o;var t=this;return __generator(this,(function(e){if(this.value){o=this.items.find((function(o){return o.value===t.value}));this.updateSelectedItems(o.id)}return[2]}))}))};o.prototype.processListOpenChange=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){if(this.openListOnClick){this.input.icon=this.listOpen?"action-arrow-up":"action-arrow-down"}return[2]}))}))};o.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};o.prototype.connectedCallback=function(){var o=this;this.items=this.processedItems=parsePossibleJSON(this.items);this.input=this.element.querySelector("duet-input");this.input.addEventListener("duetChange",this.updateInputValue.bind(this));this.input.addEventListener("click",(function(){if(!o.openListOnClick){o.inputValue.length>=o.minCharacters?o.listOpen=true:o.listOpen=false}else{o.listOpen=!o.listOpen}}));this.element.addEventListener("keydown",this.handleInputKeyDownEvent.bind(this));connectLanguageChangeObserver(this,{prop:"accessibleLabels",defaults:"accessibleLabelDefaults"});this.input.accessibleAutocomplete="list";this.input.accessibleControls="duet-combobox-list-element";this.processListOpenChange()};o.prototype.disconnectedCallback=function(){var o=this;this.input.removeEventListener("duetChange",this.updateInputValue.bind(this));this.input.removeEventListener("click",(function(){return o.inputValue.length?o.listOpen=true:o.listOpen=false}));this.element.removeEventListener("keydown",this.handleInputKeyDownEvent.bind(this));this.listElement.removeEventListener("click",(function(o){o.stopPropagation()}));this.resizeObserver.disconnect();disconnectLanguageChangeObserver(this)};o.prototype.componentDidLoad=function(){this.resizeObserver.observe(this.input);this.listElement.addEventListener("click",(function(o){o.stopPropagation()}));this.processValue()};o.prototype.onListClick=function(o,t){o.preventDefault();this.updateSelectedItems(t.id,true);this.listOpen=false;return this.listOpen};o.prototype.shouldListBeFiltered=function(){var o=this;if(this.selectedItems.size&&this.input.value===this.inputValue){var t=this.items.filter((function(t){return o.selectedItems.has(t.id)}));return!(this.formatter(t).toLowerCase()===this.input.value.toLowerCase())}return true};o.prototype.returnFilteredOrNonFiltered=function(){return this.processedItems?this.shouldListBeFiltered()?this.getFilteredItems():this.sortFilteredItems(this.processedItems):[]};o.prototype.updateSelectedItems=function(o,t){return __awaiter(this,void 0,void 0,(function(){var e;var i=this;return __generator(this,(function(s){switch(s.label){case 0:this.selectedItems.clear();if(this.selectedItems){if(this.selectedItems.has(o)){this.selectedItems.delete(o)}else{this.selectedItems.add(o)}}if(t){e=this.selectedItems.size===0?[]:this.items.filter((function(o){return i.selectedItems.has(o.id)}));this.duetChange.emit({value:e[0].value,item:e[0],component:"duet-combobox"})}return[4,this.updateInputText()];case 1:s.sent();return[2]}}))}))};o.prototype.updateInputText=function(o){if(o===void 0){o=false}return __awaiter(this,void 0,void 0,(function(){var t,e;var i=this;return __generator(this,(function(s){switch(s.label){case 0:t=this.selectedItems.size===0?[]:this.items.filter((function(o){return i.selectedItems.has(o.id)}));if(t.length===0&&this.selectedItems.size>0){this.selectedItems.clear();this.input.value="";this.value=undefined;this.activeItem=undefined}if(!(this.selectedItems.size===1))return[3,2];this.input.value="";e=this.input;return[4,this.formatItem(t[0])];case 1:e.value=s.sent();this.input.scrollLeft=this.input.scrollWidth;this.activeItem=undefined;this.value=t[0].value;s.label=2;case 2:if(o&&this.selectedItems.size===0){if(this.force){this.inputValue="";this.input.value=""}this.activeItem=undefined}this.listOpen=false;return[2]}}))}))};o.prototype.updateInputValue=function(o){var t;this.inputValue=o.detail.value;this.listOpen=String(this.inputValue).length>=this.minCharacters&&((t=this.getFilteredItems())===null||t===void 0?void 0:t.length)>0};o.prototype.handleInputKeyDownEvent=function(o){this.input.accessibleActiveDescendant=undefined;if(isEnterKey(o)){o.preventDefault();this.selectActiveItem();this.updateInputText(false);this.listOpen=false;return}if(isEscapeKey(o)||isTabKey(o)){this.updateInputText(true);this.listOpen=false;return}var t=this.activeItem;if(isArrowUpKey(o)){o.preventDefault();t=this.activeItem-1}else if(isArrowDownKey(o)){o.preventDefault();t=this.listOpen?this.activeItem+1:this.activeItem;this.listOpen=true}if(isArrowDownKey(o)||isArrowUpKey(o)){var e=this.shouldListBeFiltered()?this.getFilteredItems():this.processedItems;if(t<0||!t){t=0}if(t>=e.length){t=e.length-1}this.input.accessibleActiveDescendant="active_item";this.activeItem=t;this.scrollToActive()}this.announceActive();return};o.prototype.selectActiveItem=function(){if(this.activeItem===undefined){return}var o=this.returnFilteredOrNonFiltered();var t=o[this.activeItem];this.updateSelectedItems(t.id,true)};o.prototype.announceActive=function(o){if(!o){o=this.returnFilteredOrNonFiltered()}if(this.activeItem===undefined||this.activeItem===-1){return}var t=o[this.activeItem];this.selectionMsg=structuredClone(this.formatLabel(t,o.length,this.items.length))};o.prototype.scrollToActive=function(){var o=this.listElement.querySelector(".active");if(o){o.scrollIntoView({behavior:"smooth",block:"center"})}};o.prototype.formatLabel=function(o,t,e){if(!o||e===undefined){return""}var i=t===e?this.accessibleLabels.item:this.accessibleLabels.itemFiltered;return i.replace("{name}",String(o.name)).replace("{current}",String(this.activeItem+1)).replace("{total}",String(t)).replace("{hiddenItems}",String(e-t))};o.prototype.getFilteredItems=function(){var o=this;var t=this.processedItems.filter((function(t){var e,i,s,c;return((e=String(t.value))===null||e===void 0?void 0:e.toLowerCase()[o.filterType]((i=o.inputValue)===null||i===void 0?void 0:i.toLowerCase()))||((s=String(t.name))===null||s===void 0?void 0:s.toLowerCase()[o.filterType]((c=o.inputValue)===null||c===void 0?void 0:c.toLowerCase()))||o.selectedItems.has(t.id)}));return this.sortFilteredItems(t)};o.prototype.sortFilteredItems=function(o){var t=this;if(o.length>0){o.filter((function(o){return t.selectedItems.has(o.id)})).forEach((function(t){var e=o.indexOf(t);o.splice(e,1);o.unshift(t)}))}return o};o.prototype.render=function(){var o;var t=this;var e=this.returnFilteredOrNonFiltered();return h(Host,{role:"combobox","aria-expanded":this.listOpen?"true":"false","aria-owns":"duet-combobox-list-element","aria-haspopup":"listbox",class:(o={"duet-combobox":true},o["duet-theme-".concat(this.theme)]=true,o)},h("slot",null),h("div",{role:"list",class:{"duet-combobox-list":true,open:this.listOpen},ref:function(o){return t.listContainer=o}},h("ul",{class:{"duet-combobox-listbox-open":this.listOpen,"duet-combobox-listbox":true},role:"listbox",ref:function(o){return t.listElement=o},id:"duet-combobox-list-element"},e.map((function(o,i){return h(DuetComboBoxSelect,{item:o,active:i===t.activeItem,selected:t.selectedItems.has(o.id),search:t.inputValue,total:e.length,clickHandler:function(e){return t.onListClick(e,o)},label:t.formatLabel(o,e.length,t.items.length)})})))))};Object.defineProperty(o.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{activeItem:["activeItemHandler"],items:["processItems"],value:["processValue"],listOpen:["processListOpenChange"]}},enumerable:false,configurable:true});return o}();DuetCombobox.style=duetComboboxCss;export{DuetCombobox as duet_combobox};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-62aa2798.js";import{i as inheritGlobalTheme}from"./themeable-component-fdce4fd7.js";import{a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-9ff76444.js";import{n as nudge}from"./nudge-350af17e.js";import"./string-utils-59ad4cb2.js";var duetContactCardCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:12px !important;display:block}:host(.duet-m-0){margin:0 !important}::slotted(*){padding-top:1.5rem}@media (min-width: 48em){::slotted(*){grid-column:2/span 2;padding-top:0}}.duet-contact-card{display:grid;grid-template-columns:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(0, 41, 77)}.duet-contact-card.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}@media (min-width: 48em){.duet-contact-card{grid-template-columns:min-content minmax(0, 1fr) auto;gap:20px}}.duet-contact-card .image{width:4rem;height:4rem;margin-bottom:8px;border-radius:4px}@media (min-width: 48em){.duet-contact-card .image{width:6rem;height:6rem;padding-bottom:0}}.duet-contact-card .description{padding-bottom:8px}.duet-contact-card .email,.duet-contact-card .phone{display:grid;grid-template-columns:min-content auto;gap:8px;align-items:center;justify-content:flex-start;padding-bottom:8px;word-break:break-all}';var DuetContactCard=function(){function e(e){registerInstance(this,e);this.phoneLabel={en:"Phone",fi:"Puhelin",sv:"Telefon"};this.language=getLanguage();this.theme="";this.margin="auto";this.image=undefined;this.name=undefined;this.description=undefined;this.email=undefined;this.phone=undefined;this.buttonText=undefined;this.buttonIcon="form-date";this.buttonUrl=undefined}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.componentDidLoad=function(){nudge()};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this)};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.render=function(){var e=this.theme==="turva";var t=e?"turva":"default";return h(Host,{class:{"duet-m-0":this.margin==="none"}},h("div",{class:{"duet-contact-card":true,"duet-theme-turva":this.theme==="turva"},role:"group","aria-label":this.name},this.image?h("img",{class:"image",src:this.image,alt:this.name}):h("div",null),h("div",null,this.name&&h("duet-heading",{class:"name",level:"h3",margin:"none",theme:t},this.name),this.description&&h("duet-paragraph",{class:"description",margin:"none",theme:t},this.description),this.email&&h("div",{class:"email"},h("duet-icon",{name:"navigation-message",size:"x-small",color:"primary-dark",margin:"none",theme:t}),h("duet-link",{url:"mailto:".concat(this.email),accessibleLabel:"Email: ".concat(this.email),theme:t},this.email)),this.phone&&h("div",{class:"phone"},h("duet-icon",{name:"form-tel",size:"x-small",color:"primary-dark",margin:"none",theme:t}),h("duet-link",{url:"tel:".concat(this.phone),accessibleLabel:"".concat(this.phoneLabel[this.language],": ").concat(this.phone),theme:t},this.phone))),this.buttonUrl&&this.buttonText&&h("div",{class:"call-to-action"},h("duet-button",{variation:"default",icon:this.buttonIcon,fixed:true,margin:"none",url:this.buttonUrl,theme:t},this.buttonText)),h("div",null),h("slot",null)))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetContactCard.style=duetContactCardCss;export{DuetContactCard as duet_contact_card};
4
+ import{r as registerInstance,h,H as Host,g as getElement}from"./index-932c38d8.js";import{i as inheritGlobalTheme}from"./themeable-component-fdce4fd7.js";import{a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-9ff76444.js";import"./string-utils-59ad4cb2.js";var duetContactCardCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:12px !important;display:block}:host(.duet-m-0){margin:0 !important}::slotted(*){padding-top:1.5rem}@media (min-width: 48em){::slotted(*){grid-column:2/span 2;padding-top:0}}.duet-contact-card{display:grid;grid-template-columns:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(0, 41, 77)}.duet-contact-card.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}@media (min-width: 48em){.duet-contact-card{grid-template-columns:min-content minmax(0, 1fr) auto;gap:20px}}.duet-contact-card .image{width:4rem;height:4rem;margin-bottom:8px;border-radius:4px}@media (min-width: 48em){.duet-contact-card .image{width:6rem;height:6rem;padding-bottom:0}}.duet-contact-card .description{padding-bottom:8px}.duet-contact-card .email,.duet-contact-card .phone{display:grid;grid-template-columns:min-content auto;gap:8px;align-items:center;justify-content:flex-start;padding-bottom:8px;word-break:break-all}';var DuetContactCard=function(){function e(e){registerInstance(this,e);this.phoneLabel={en:"Phone",fi:"Puhelin",sv:"Telefon"};this.language=getLanguage();this.theme="";this.margin="auto";this.image=undefined;this.name=undefined;this.description=undefined;this.email=undefined;this.phone=undefined;this.buttonText=undefined;this.buttonIcon="form-date";this.buttonUrl=undefined}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this)};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.render=function(){var e=this.theme==="turva";var t=e?"turva":"default";return h(Host,{class:{"duet-m-0":this.margin==="none"}},h("div",{class:{"duet-contact-card":true,"duet-theme-turva":this.theme==="turva"},role:"group","aria-label":this.name},this.image?h("img",{class:"image",src:this.image,alt:this.name}):h("div",null),h("div",null,this.name&&h("duet-heading",{class:"name",level:"h3",margin:"none",theme:t},this.name),this.description&&h("duet-paragraph",{class:"description",margin:"none",theme:t},this.description),this.email&&h("div",{class:"email"},h("duet-icon",{name:"navigation-message",size:"x-small",color:"primary-dark",margin:"none",theme:t}),h("duet-link",{url:"mailto:".concat(this.email),accessibleLabel:"Email: ".concat(this.email),theme:t},this.email)),this.phone&&h("div",{class:"phone"},h("duet-icon",{name:"form-tel",size:"x-small",color:"primary-dark",margin:"none",theme:t}),h("duet-link",{url:"tel:".concat(this.phone),accessibleLabel:"".concat(this.phoneLabel[this.language],": ").concat(this.phone),theme:t},this.phone))),this.buttonUrl&&this.buttonText&&h("div",{class:"call-to-action"},h("duet-button",{variation:"default",icon:this.buttonIcon,fixed:true,margin:"none",url:this.buttonUrl,theme:t},this.buttonText)),h("div",null),h("slot",null)))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetContactCard.style=duetContactCardCss;export{DuetContactCard as duet_contact_card};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-62aa2798.js";import{i as inheritGlobalTheme}from"./themeable-component-fdce4fd7.js";import{n as nudge}from"./nudge-350af17e.js";var duetCookieConsentCss='*,*::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;position:fixed;right:0;bottom:0;left:0;z-index:950;display:block;width:100%;box-shadow:0 2px 20px 0 rgba(0, 0, 0, 0.2)}@media (min-width: 48em){:host{right:28px;bottom:28px;left:auto;width:25rem}}:host(:focus){outline:0}:host(.user-is-tabbing:not(.descendant-focused):focus){border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing:not(.descendant-focused).duet-theme-turva:focus){box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-cookie-consent{padding:20px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;color:rgb(255, 255, 255) !important;background-color:rgba(0, 21, 39, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent{background:rgba(0, 21, 39, 0.8);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}}.duet-cookie-consent.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";background-color:rgba(12, 14, 29, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent.duet-theme-turva{background:rgba(12, 14, 29, 0.8)}}@media (min-width: 48em){.duet-cookie-consent{padding:20px;border-radius:4px}}.duet-cookie-consent-content{display:flex;align-items:center;max-width:1110px;margin:0 auto}.duet-cookie-consent-content .expand{flex:1}::slotted(a){font-weight:600;color:rgb(255, 255, 255) !important;text-decoration:underline;white-space:nowrap}::slotted(a[target=_blank]){padding-right:16px;background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjZmZmIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjUgMmExLjUgMS41IDAgMDEuMTQgM0gzLjc1Yy0uMzggMC0uNy4yOC0uNzQuNjVsLS4wMS4xdjE0LjVjMCAuMzguMjguNy42NS43NGwuMS4wMWgxNC41Yy4zOCAwIC43LS4yOC43NC0uNjVsLjAxLS4xdi02Ljg5YTEuNSAxLjUgMCAwMTMgMHY2Ljg5QTMuNzUgMy43NSAwIDAxMTguMjUgMjRIMy43NUEzLjc1IDMuNzUgMCAwMTAgMjAuMjVWNS43NUEzLjc1IDMuNzUgMCAwMTMuNzUgMnptMTItMmMuNzggMCAxLjQyLjYgMS41IDEuMzZWNy41YTEuNSAxLjUgMCAwMS0zIC4xNFY1LjEybC01LjQ0IDUuNDRhMS41IDEuNSAwIDAxLTIuMjItMmwuMS0uMTJMMTguODggM0gxNi41QTEuNSAxLjUgMCAwMTE1IDEuNjRWMS41YzAtLjc4LjYtMS40MiAxLjM2LTEuNWguMTR6Ii8+PC9zdmc+") no-repeat right 50%;background-size:12px 10px}::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva ::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}';var DuetCookieConsent=function(){function e(e){var t=this;registerInstance(this,e);this.duetCookieConsent=createEvent(this,"duetCookieConsent",7);this.handleClick=function(e){e.preventDefault();t.duetCookieConsent.emit({component:"duet-cookie-consent"})};this.accessibleLabel="Hyväksyn evästeiden käytön";this.theme=""}e.prototype.handleFocusIn=function(e){var t=e.composedPath();var o=t[0];if(o!==this.element){this.element.classList.add("descendant-focused")}};e.prototype.handleFocusOut=function(){this.element.classList.remove("descendant-focused")};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.componentDidLoad=function(){nudge()};e.prototype.render=function(){return h(Host,{tabindex:"0",class:{"duet-theme-turva":this.theme==="turva"}},h("div",{class:{"duet-cookie-consent":true,"duet-theme-turva":this.theme==="turva"}},h("div",{class:"duet-cookie-consent-content"},h("div",{class:"expand"},h("slot",null)),h("duet-spacer",{size:"large",direction:"horizontal"}),h("div",null,h("duet-button",{variation:"negative",size:"small",onClick:this.handleClick,margin:"none","aria-label":this.accessibleLabel,theme:this.theme},"OK")))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetCookieConsent.style=duetCookieConsentCss;export{DuetCookieConsent as duet_cookie_consent};
4
+ import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-932c38d8.js";import{i as inheritGlobalTheme}from"./themeable-component-fdce4fd7.js";var duetCookieConsentCss='*,*::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;position:fixed;right:0;bottom:0;left:0;z-index:950;display:block;width:100%;box-shadow:0 2px 20px 0 rgba(0, 0, 0, 0.2)}@media (min-width: 48em){:host{right:28px;bottom:28px;left:auto;width:25rem}}:host(:focus){outline:0}:host(.user-is-tabbing:not(.descendant-focused):focus){border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing:not(.descendant-focused).duet-theme-turva:focus){box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-cookie-consent{padding:20px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;color:rgb(255, 255, 255) !important;background-color:rgba(0, 21, 39, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent{background:rgba(0, 21, 39, 0.8);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}}.duet-cookie-consent.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";background-color:rgba(12, 14, 29, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent.duet-theme-turva{background:rgba(12, 14, 29, 0.8)}}@media (min-width: 48em){.duet-cookie-consent{padding:20px;border-radius:4px}}.duet-cookie-consent-content{display:flex;align-items:center;max-width:1110px;margin:0 auto}.duet-cookie-consent-content .expand{flex:1}::slotted(a){font-weight:600;color:rgb(255, 255, 255) !important;text-decoration:underline;white-space:nowrap}::slotted(a[target=_blank]){padding-right:16px;background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjZmZmIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjUgMmExLjUgMS41IDAgMDEuMTQgM0gzLjc1Yy0uMzggMC0uNy4yOC0uNzQuNjVsLS4wMS4xdjE0LjVjMCAuMzguMjguNy42NS43NGwuMS4wMWgxNC41Yy4zOCAwIC43LS4yOC43NC0uNjVsLjAxLS4xdi02Ljg5YTEuNSAxLjUgMCAwMTMgMHY2Ljg5QTMuNzUgMy43NSAwIDAxMTguMjUgMjRIMy43NUEzLjc1IDMuNzUgMCAwMTAgMjAuMjVWNS43NUEzLjc1IDMuNzUgMCAwMTMuNzUgMnptMTItMmMuNzggMCAxLjQyLjYgMS41IDEuMzZWNy41YTEuNSAxLjUgMCAwMS0zIC4xNFY1LjEybC01LjQ0IDUuNDRhMS41IDEuNSAwIDAxLTIuMjItMmwuMS0uMTJMMTguODggM0gxNi41QTEuNSAxLjUgMCAwMTE1IDEuNjRWMS41YzAtLjc4LjYtMS40MiAxLjM2LTEuNWguMTR6Ii8+PC9zdmc+") no-repeat right 50%;background-size:12px 10px}::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva ::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}';var DuetCookieConsent=function(){function e(e){var t=this;registerInstance(this,e);this.duetCookieConsent=createEvent(this,"duetCookieConsent",7);this.handleClick=function(e){e.preventDefault();t.duetCookieConsent.emit({component:"duet-cookie-consent"})};this.accessibleLabel="Hyväksyn evästeiden käytön";this.theme=""}e.prototype.handleFocusIn=function(e){var t=e.composedPath();var o=t[0];if(o!==this.element){this.element.classList.add("descendant-focused")}};e.prototype.handleFocusOut=function(){this.element.classList.remove("descendant-focused")};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){return h(Host,{tabindex:"0",class:{"duet-theme-turva":this.theme==="turva"}},h("div",{class:{"duet-cookie-consent":true,"duet-theme-turva":this.theme==="turva"}},h("div",{class:"duet-cookie-consent-content"},h("div",{class:"expand"},h("slot",null)),h("duet-spacer",{size:"large",direction:"horizontal"}),h("div",null,h("duet-button",{variation:"negative",size:"small",onClick:this.handleClick,margin:"none","aria-label":this.accessibleLabel,theme:this.theme},"OK")))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetCookieConsent.style=duetCookieConsentCss;export{DuetCookieConsent as duet_cookie_consent};